diff --git a/.cproject b/.cproject deleted file mode 100644 index f2af946..0000000 --- a/.cproject +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.mxproject b/.mxproject deleted file mode 100644 index db77c3a..0000000 --- a/.mxproject +++ /dev/null @@ -1,50 +0,0 @@ -[PreviousLibFiles] -LibFiles=Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_eth.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_eth_ex.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_rcc.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_rcc_ex.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_bus.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_rcc.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_crs.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_system.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_utils.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_flash.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_flash_ex.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_gpio.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_gpio_ex.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_gpio.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_hsem.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_hsem.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_dma.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_dma_ex.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_dma.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_dmamux.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_mdma.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_pwr.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_pwr_ex.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_pwr.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_cortex.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_cortex.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_def.h;Drivers\STM32H7xx_HAL_Driver\Inc\Legacy\stm32_hal_legacy.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_i2c.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_i2c_ex.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_exti.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_exti.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_fdcan.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_sdmmc.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_sd.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_delayblock.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_sd_ex.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_tim.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_tim_ex.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_tim.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_uart.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_usart.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_lpuart.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_uart_ex.h;Middlewares\Third_Party\FreeRTOS\Source\include\croutine.h;Middlewares\Third_Party\FreeRTOS\Source\include\deprecated_definitions.h;Middlewares\Third_Party\FreeRTOS\Source\include\event_groups.h;Middlewares\Third_Party\FreeRTOS\Source\include\FreeRTOS.h;Middlewares\Third_Party\FreeRTOS\Source\include\list.h;Middlewares\Third_Party\FreeRTOS\Source\include\message_buffer.h;Middlewares\Third_Party\FreeRTOS\Source\include\mpu_prototypes.h;Middlewares\Third_Party\FreeRTOS\Source\include\mpu_wrappers.h;Middlewares\Third_Party\FreeRTOS\Source\include\portable.h;Middlewares\Third_Party\FreeRTOS\Source\include\projdefs.h;Middlewares\Third_Party\FreeRTOS\Source\include\queue.h;Middlewares\Third_Party\FreeRTOS\Source\include\semphr.h;Middlewares\Third_Party\FreeRTOS\Source\include\stack_macros.h;Middlewares\Third_Party\FreeRTOS\Source\include\StackMacros.h;Middlewares\Third_Party\FreeRTOS\Source\include\stream_buffer.h;Middlewares\Third_Party\FreeRTOS\Source\include\task.h;Middlewares\Third_Party\FreeRTOS\Source\include\timers.h;Middlewares\Third_Party\FreeRTOS\Source\include\atomic.h;Middlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS\cmsis_os.h;Middlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F\portmacro.h;Middlewares\Third_Party\FatFs\src\diskio.h;Middlewares\Third_Party\FatFs\src\ff.h;Middlewares\Third_Party\FatFs\src\ff_gen_drv.h;Middlewares\Third_Party\FatFs\src\integer.h;Drivers\BSP\Components\lan8742\lan8742.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\ccp.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\chap_ms.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\chap-md5.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\chap-new.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\eap.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\eui64.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\fsm.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\ipcp.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\ipv6cp.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\lcp.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\magic.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\mppe.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\ppp.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\ppp_impl.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\ppp_opts.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\pppapi.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\pppcrypt.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\pppdebug.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\pppoe.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\pppol2tp.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\pppos.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\upap.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\vj.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\ecp.h;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_eth.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_eth_ex.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_rcc.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_rcc_ex.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_flash.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_flash_ex.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_gpio.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_hsem.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_dma.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_dma_ex.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_mdma.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_pwr.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_pwr_ex.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_cortex.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_i2c.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_i2c_ex.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_exti.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_fdcan.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_ll_sdmmc.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_ll_delayblock.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_sd.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_sd_ex.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_tim.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_tim_ex.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_uart.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_uart_ex.c;Middlewares\Third_Party\FreeRTOS\Source\croutine.c;Middlewares\Third_Party\FreeRTOS\Source\event_groups.c;Middlewares\Third_Party\FreeRTOS\Source\list.c;Middlewares\Third_Party\FreeRTOS\Source\queue.c;Middlewares\Third_Party\FreeRTOS\Source\stream_buffer.c;Middlewares\Third_Party\FreeRTOS\Source\tasks.c;Middlewares\Third_Party\FreeRTOS\Source\timers.c;Middlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS\cmsis_os.c;Middlewares\Third_Party\FreeRTOS\Source\portable\MemMang\heap_4.c;Middlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F\port.c;Middlewares\Third_Party\FatFs\src\diskio.c;Middlewares\Third_Party\FatFs\src\ff.c;Middlewares\Third_Party\FatFs\src\ff_gen_drv.c;Middlewares\Third_Party\FatFs\src\option\syscall.c;Middlewares\Third_Party\FatFs\src\option\ccsbcs.c;Drivers\BSP\Components\lan8742\lan8742.c;Middlewares\Third_Party\LwIP\src\netif\ppp\auth.c;Middlewares\Third_Party\LwIP\src\netif\ppp\ccp.c;Middlewares\Third_Party\LwIP\src\netif\ppp\chap_ms.c;Middlewares\Third_Party\LwIP\src\netif\ppp\chap-md5.c;Middlewares\Third_Party\LwIP\src\netif\ppp\chap-new.c;Middlewares\Third_Party\LwIP\src\netif\ppp\demand.c;Middlewares\Third_Party\LwIP\src\netif\ppp\eap.c;Middlewares\Third_Party\LwIP\src\netif\ppp\eui64.c;Middlewares\Third_Party\LwIP\src\netif\ppp\fsm.c;Middlewares\Third_Party\LwIP\src\netif\ppp\ipcp.c;Middlewares\Third_Party\LwIP\src\netif\ppp\ipv6cp.c;Middlewares\Third_Party\LwIP\src\netif\ppp\lcp.c;Middlewares\Third_Party\LwIP\src\netif\ppp\magic.c;Middlewares\Third_Party\LwIP\src\netif\ppp\mppe.c;Middlewares\Third_Party\LwIP\src\netif\ppp\multilink.c;Middlewares\Third_Party\LwIP\src\netif\ppp\ppp.c;Middlewares\Third_Party\LwIP\src\netif\ppp\pppapi.c;Middlewares\Third_Party\LwIP\src\netif\ppp\pppcrypt.c;Middlewares\Third_Party\LwIP\src\netif\ppp\pppoe.c;Middlewares\Third_Party\LwIP\src\netif\ppp\pppol2tp.c;Middlewares\Third_Party\LwIP\src\netif\ppp\pppos.c;Middlewares\Third_Party\LwIP\src\netif\ppp\upap.c;Middlewares\Third_Party\LwIP\src\netif\ppp\utils.c;Middlewares\Third_Party\LwIP\src\netif\ppp\vj.c;Middlewares\Third_Party\LwIP\src\netif\bridgeif.c;Middlewares\Third_Party\LwIP\src\netif\bridgeif_fdb.c;Middlewares\Third_Party\LwIP\src\netif\ethernet.c;Middlewares\Third_Party\LwIP\src\netif\lowpan6.c;Middlewares\Third_Party\LwIP\src\netif\lowpan6_ble.c;Middlewares\Third_Party\LwIP\src\netif\lowpan6_common.c;Middlewares\Third_Party\LwIP\src\netif\slipif.c;Middlewares\Third_Party\LwIP\src\netif\zepif.c;Middlewares\Third_Party\LwIP\src\netif\ppp\ecp.c;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_eth.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_eth_ex.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_rcc.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_rcc_ex.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_bus.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_rcc.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_crs.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_system.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_utils.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_flash.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_flash_ex.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_gpio.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_gpio_ex.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_gpio.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_hsem.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_hsem.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_dma.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_dma_ex.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_dma.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_dmamux.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_mdma.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_pwr.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_pwr_ex.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_pwr.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_cortex.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_cortex.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_def.h;Drivers\STM32H7xx_HAL_Driver\Inc\Legacy\stm32_hal_legacy.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_i2c.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_i2c_ex.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_exti.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_exti.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_fdcan.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_sdmmc.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_sd.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_delayblock.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_sd_ex.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_tim.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_tim_ex.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_tim.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_uart.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_usart.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_ll_lpuart.h;Drivers\STM32H7xx_HAL_Driver\Inc\stm32h7xx_hal_uart_ex.h;Middlewares\Third_Party\FreeRTOS\Source\include\croutine.h;Middlewares\Third_Party\FreeRTOS\Source\include\deprecated_definitions.h;Middlewares\Third_Party\FreeRTOS\Source\include\event_groups.h;Middlewares\Third_Party\FreeRTOS\Source\include\FreeRTOS.h;Middlewares\Third_Party\FreeRTOS\Source\include\list.h;Middlewares\Third_Party\FreeRTOS\Source\include\message_buffer.h;Middlewares\Third_Party\FreeRTOS\Source\include\mpu_prototypes.h;Middlewares\Third_Party\FreeRTOS\Source\include\mpu_wrappers.h;Middlewares\Third_Party\FreeRTOS\Source\include\portable.h;Middlewares\Third_Party\FreeRTOS\Source\include\projdefs.h;Middlewares\Third_Party\FreeRTOS\Source\include\queue.h;Middlewares\Third_Party\FreeRTOS\Source\include\semphr.h;Middlewares\Third_Party\FreeRTOS\Source\include\stack_macros.h;Middlewares\Third_Party\FreeRTOS\Source\include\StackMacros.h;Middlewares\Third_Party\FreeRTOS\Source\include\stream_buffer.h;Middlewares\Third_Party\FreeRTOS\Source\include\task.h;Middlewares\Third_Party\FreeRTOS\Source\include\timers.h;Middlewares\Third_Party\FreeRTOS\Source\include\atomic.h;Middlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS\cmsis_os.h;Middlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F\portmacro.h;Middlewares\Third_Party\FatFs\src\diskio.h;Middlewares\Third_Party\FatFs\src\ff.h;Middlewares\Third_Party\FatFs\src\ff_gen_drv.h;Middlewares\Third_Party\FatFs\src\integer.h;Drivers\BSP\Components\lan8742\lan8742.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\ccp.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\chap_ms.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\chap-md5.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\chap-new.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\eap.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\eui64.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\fsm.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\ipcp.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\ipv6cp.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\lcp.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\magic.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\mppe.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\ppp.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\ppp_impl.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\ppp_opts.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\pppapi.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\pppcrypt.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\pppdebug.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\pppoe.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\pppol2tp.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\pppos.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\upap.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\vj.h;Middlewares\Third_Party\LwIP\src\include\netif\ppp\ecp.h;Drivers\CMSIS\Device\ST\STM32H7xx\Include\stm32h723xx.h;Drivers\CMSIS\Device\ST\STM32H7xx\Include\stm32h7xx.h;Drivers\CMSIS\Device\ST\STM32H7xx\Include\system_stm32h7xx.h;Drivers\CMSIS\Device\ST\STM32H7xx\Source\Templates\system_stm32h7xx.c;Middlewares\Third_Party\LwIP\src\include\lwip\altcp.h;Middlewares\Third_Party\LwIP\src\include\lwip\altcp_tcp.h;Middlewares\Third_Party\LwIP\src\include\lwip\altcp_tls.h;Middlewares\Third_Party\LwIP\src\include\lwip\api.h;Middlewares\Third_Party\LwIP\src\include\lwip\arch.h;Middlewares\Third_Party\LwIP\src\include\lwip\autoip.h;Middlewares\Third_Party\LwIP\src\include\lwip\debug.h;Middlewares\Third_Party\LwIP\src\include\lwip\def.h;Middlewares\Third_Party\LwIP\src\include\lwip\dhcp.h;Middlewares\Third_Party\LwIP\src\include\lwip\dhcp6.h;Middlewares\Third_Party\LwIP\src\include\lwip\dns.h;Middlewares\Third_Party\LwIP\src\include\lwip\err.h;Middlewares\Third_Party\LwIP\src\include\lwip\errno.h;Middlewares\Third_Party\LwIP\src\include\lwip\etharp.h;Middlewares\Third_Party\LwIP\src\include\lwip\ethip6.h;Middlewares\Third_Party\LwIP\src\include\lwip\icmp.h;Middlewares\Third_Party\LwIP\src\include\lwip\icmp6.h;Middlewares\Third_Party\LwIP\src\include\lwip\if_api.h;Middlewares\Third_Party\LwIP\src\include\lwip\igmp.h;Middlewares\Third_Party\LwIP\src\include\lwip\inet.h;Middlewares\Third_Party\LwIP\src\include\lwip\inet_chksum.h;Middlewares\Third_Party\LwIP\src\include\lwip\init.h;Middlewares\Third_Party\LwIP\src\include\lwip\ip.h;Middlewares\Third_Party\LwIP\src\include\lwip\ip4.h;Middlewares\Third_Party\LwIP\src\include\lwip\ip4_addr.h;Middlewares\Third_Party\LwIP\src\include\lwip\ip4_frag.h;Middlewares\Third_Party\LwIP\src\include\lwip\ip6.h;Middlewares\Third_Party\LwIP\src\include\lwip\ip6_addr.h;Middlewares\Third_Party\LwIP\src\include\lwip\ip6_frag.h;Middlewares\Third_Party\LwIP\src\include\lwip\ip6_zone.h;Middlewares\Third_Party\LwIP\src\include\lwip\ip_addr.h;Middlewares\Third_Party\LwIP\src\include\lwip\mem.h;Middlewares\Third_Party\LwIP\src\include\lwip\memp.h;Middlewares\Third_Party\LwIP\src\include\lwip\mld6.h;Middlewares\Third_Party\LwIP\src\include\lwip\nd6.h;Middlewares\Third_Party\LwIP\src\include\lwip\netbuf.h;Middlewares\Third_Party\LwIP\src\include\lwip\netdb.h;Middlewares\Third_Party\LwIP\src\include\lwip\netif.h;Middlewares\Third_Party\LwIP\src\include\lwip\netifapi.h;Middlewares\Third_Party\LwIP\src\include\lwip\opt.h;Middlewares\Third_Party\LwIP\src\include\lwip\pbuf.h;Middlewares\Third_Party\LwIP\src\include\lwip\raw.h;Middlewares\Third_Party\LwIP\src\include\lwip\sio.h;Middlewares\Third_Party\LwIP\src\include\lwip\snmp.h;Middlewares\Third_Party\LwIP\src\include\lwip\sockets.h;Middlewares\Third_Party\LwIP\src\include\lwip\stats.h;Middlewares\Third_Party\LwIP\src\include\lwip\sys.h;Middlewares\Third_Party\LwIP\src\include\lwip\tcp.h;Middlewares\Third_Party\LwIP\src\include\lwip\tcpbase.h;Middlewares\Third_Party\LwIP\src\include\lwip\tcpip.h;Middlewares\Third_Party\LwIP\src\include\lwip\timeouts.h;Middlewares\Third_Party\LwIP\src\include\lwip\udp.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\altcp_proxyconnect.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\altcp_tls_mbedtls_opts.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\fs.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\httpd.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\httpd_opts.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\http_client.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\lwiperf.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\mdns.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\mdns_opts.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\mdns_priv.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\mqtt.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\mqtt_opts.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\mqtt_priv.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\netbiosns.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\netbiosns_opts.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\smtp.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\smtp_opts.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\snmp.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\snmpv3.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\snmp_core.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\snmp_mib2.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\snmp_opts.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\snmp_scalar.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\snmp_snmpv2_framework.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\snmp_snmpv2_usm.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\snmp_table.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\snmp_threadsync.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\sntp.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\sntp_opts.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\tftp_opts.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\tftp_server.h;Middlewares\Third_Party\LwIP\src\include\lwip\priv\altcp_priv.h;Middlewares\Third_Party\LwIP\src\include\lwip\priv\api_msg.h;Middlewares\Third_Party\LwIP\src\include\lwip\priv\memp_priv.h;Middlewares\Third_Party\LwIP\src\include\lwip\priv\memp_std.h;Middlewares\Third_Party\LwIP\src\include\lwip\priv\mem_priv.h;Middlewares\Third_Party\LwIP\src\include\lwip\priv\nd6_priv.h;Middlewares\Third_Party\LwIP\src\include\lwip\priv\raw_priv.h;Middlewares\Third_Party\LwIP\src\include\lwip\priv\sockets_priv.h;Middlewares\Third_Party\LwIP\src\include\lwip\priv\tcpip_priv.h;Middlewares\Third_Party\LwIP\src\include\lwip\priv\tcp_priv.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\autoip.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\dhcp.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\dhcp6.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\dns.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\etharp.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\ethernet.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\iana.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\icmp.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\icmp6.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\ieee.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\igmp.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\ip.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\ip4.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\ip6.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\mld6.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\nd6.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\tcp.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\udp.h;Middlewares\Third_Party\LwIP\src\include\netif\bridgeif.h;Middlewares\Third_Party\LwIP\src\include\netif\bridgeif_opts.h;Middlewares\Third_Party\LwIP\src\include\netif\etharp.h;Middlewares\Third_Party\LwIP\src\include\netif\ethernet.h;Middlewares\Third_Party\LwIP\src\include\netif\ieee802154.h;Middlewares\Third_Party\LwIP\src\include\netif\lowpan6.h;Middlewares\Third_Party\LwIP\src\include\netif\lowpan6_ble.h;Middlewares\Third_Party\LwIP\src\include\netif\lowpan6_common.h;Middlewares\Third_Party\LwIP\src\include\netif\lowpan6_opts.h;Middlewares\Third_Party\LwIP\src\include\netif\slipif.h;Middlewares\Third_Party\LwIP\src\include\netif\zepif.h;Middlewares\Third_Party\LwIP\src\include\compat\posix\netdb.h;Middlewares\Third_Party\LwIP\src\include\compat\posix\arpa\inet.h;Middlewares\Third_Party\LwIP\src\include\compat\posix\net\if.h;Middlewares\Third_Party\LwIP\src\include\compat\posix\sys\socket.h;Middlewares\Third_Party\LwIP\src\include\compat\stdc\errno.h;Middlewares\Third_Party\LwIP\system\arch\bpstruct.h;Middlewares\Third_Party\LwIP\system\arch\cc.h;Middlewares\Third_Party\LwIP\system\arch\cpu.h;Middlewares\Third_Party\LwIP\system\arch\epstruct.h;Middlewares\Third_Party\LwIP\system\arch\init.h;Middlewares\Third_Party\LwIP\system\arch\lib.h;Middlewares\Third_Party\LwIP\system\arch\perf.h;Middlewares\Third_Party\LwIP\system\arch\sys_arch.h;Middlewares\Third_Party\LwIP\src\api\api_lib.c;Middlewares\Third_Party\LwIP\src\api\api_msg.c;Middlewares\Third_Party\LwIP\src\api\err.c;Middlewares\Third_Party\LwIP\src\api\if_api.c;Middlewares\Third_Party\LwIP\src\api\netbuf.c;Middlewares\Third_Party\LwIP\src\api\netdb.c;Middlewares\Third_Party\LwIP\src\api\netifapi.c;Middlewares\Third_Party\LwIP\src\api\sockets.c;Middlewares\Third_Party\LwIP\src\api\tcpip.c;Middlewares\Third_Party\LwIP\src\core\altcp.c;Middlewares\Third_Party\LwIP\src\core\altcp_alloc.c;Middlewares\Third_Party\LwIP\src\core\altcp_tcp.c;Middlewares\Third_Party\LwIP\src\core\def.c;Middlewares\Third_Party\LwIP\src\core\dns.c;Middlewares\Third_Party\LwIP\src\core\inet_chksum.c;Middlewares\Third_Party\LwIP\src\core\init.c;Middlewares\Third_Party\LwIP\src\core\ip.c;Middlewares\Third_Party\LwIP\src\core\mem.c;Middlewares\Third_Party\LwIP\src\core\memp.c;Middlewares\Third_Party\LwIP\src\core\netif.c;Middlewares\Third_Party\LwIP\src\core\pbuf.c;Middlewares\Third_Party\LwIP\src\core\raw.c;Middlewares\Third_Party\LwIP\src\core\stats.c;Middlewares\Third_Party\LwIP\src\core\sys.c;Middlewares\Third_Party\LwIP\src\core\tcp.c;Middlewares\Third_Party\LwIP\src\core\tcp_in.c;Middlewares\Third_Party\LwIP\src\core\tcp_out.c;Middlewares\Third_Party\LwIP\src\core\timeouts.c;Middlewares\Third_Party\LwIP\src\core\udp.c;Middlewares\Third_Party\LwIP\src\core\ipv4\autoip.c;Middlewares\Third_Party\LwIP\src\core\ipv4\dhcp.c;Middlewares\Third_Party\LwIP\src\core\ipv4\etharp.c;Middlewares\Third_Party\LwIP\src\core\ipv4\icmp.c;Middlewares\Third_Party\LwIP\src\core\ipv4\igmp.c;Middlewares\Third_Party\LwIP\src\core\ipv4\ip4.c;Middlewares\Third_Party\LwIP\src\core\ipv4\ip4_addr.c;Middlewares\Third_Party\LwIP\src\core\ipv4\ip4_frag.c;Middlewares\Third_Party\LwIP\src\core\ipv6\dhcp6.c;Middlewares\Third_Party\LwIP\src\core\ipv6\ethip6.c;Middlewares\Third_Party\LwIP\src\core\ipv6\icmp6.c;Middlewares\Third_Party\LwIP\src\core\ipv6\inet6.c;Middlewares\Third_Party\LwIP\src\core\ipv6\ip6.c;Middlewares\Third_Party\LwIP\src\core\ipv6\ip6_addr.c;Middlewares\Third_Party\LwIP\src\core\ipv6\ip6_frag.c;Middlewares\Third_Party\LwIP\src\core\ipv6\mld6.c;Middlewares\Third_Party\LwIP\src\core\ipv6\nd6.c;Middlewares\Third_Party\LwIP\system\OS\sys_arch.c;Middlewares\Third_Party\LwIP\src\apps\mqtt\mqtt.c;Middlewares\Third_Party\LwIP\src\include\lwip\altcp.h;Middlewares\Third_Party\LwIP\src\include\lwip\altcp_tcp.h;Middlewares\Third_Party\LwIP\src\include\lwip\altcp_tls.h;Middlewares\Third_Party\LwIP\src\include\lwip\api.h;Middlewares\Third_Party\LwIP\src\include\lwip\arch.h;Middlewares\Third_Party\LwIP\src\include\lwip\autoip.h;Middlewares\Third_Party\LwIP\src\include\lwip\debug.h;Middlewares\Third_Party\LwIP\src\include\lwip\def.h;Middlewares\Third_Party\LwIP\src\include\lwip\dhcp.h;Middlewares\Third_Party\LwIP\src\include\lwip\dhcp6.h;Middlewares\Third_Party\LwIP\src\include\lwip\dns.h;Middlewares\Third_Party\LwIP\src\include\lwip\err.h;Middlewares\Third_Party\LwIP\src\include\lwip\errno.h;Middlewares\Third_Party\LwIP\src\include\lwip\etharp.h;Middlewares\Third_Party\LwIP\src\include\lwip\ethip6.h;Middlewares\Third_Party\LwIP\src\include\lwip\icmp.h;Middlewares\Third_Party\LwIP\src\include\lwip\icmp6.h;Middlewares\Third_Party\LwIP\src\include\lwip\if_api.h;Middlewares\Third_Party\LwIP\src\include\lwip\igmp.h;Middlewares\Third_Party\LwIP\src\include\lwip\inet.h;Middlewares\Third_Party\LwIP\src\include\lwip\inet_chksum.h;Middlewares\Third_Party\LwIP\src\include\lwip\init.h;Middlewares\Third_Party\LwIP\src\include\lwip\ip.h;Middlewares\Third_Party\LwIP\src\include\lwip\ip4.h;Middlewares\Third_Party\LwIP\src\include\lwip\ip4_addr.h;Middlewares\Third_Party\LwIP\src\include\lwip\ip4_frag.h;Middlewares\Third_Party\LwIP\src\include\lwip\ip6.h;Middlewares\Third_Party\LwIP\src\include\lwip\ip6_addr.h;Middlewares\Third_Party\LwIP\src\include\lwip\ip6_frag.h;Middlewares\Third_Party\LwIP\src\include\lwip\ip6_zone.h;Middlewares\Third_Party\LwIP\src\include\lwip\ip_addr.h;Middlewares\Third_Party\LwIP\src\include\lwip\mem.h;Middlewares\Third_Party\LwIP\src\include\lwip\memp.h;Middlewares\Third_Party\LwIP\src\include\lwip\mld6.h;Middlewares\Third_Party\LwIP\src\include\lwip\nd6.h;Middlewares\Third_Party\LwIP\src\include\lwip\netbuf.h;Middlewares\Third_Party\LwIP\src\include\lwip\netdb.h;Middlewares\Third_Party\LwIP\src\include\lwip\netif.h;Middlewares\Third_Party\LwIP\src\include\lwip\netifapi.h;Middlewares\Third_Party\LwIP\src\include\lwip\opt.h;Middlewares\Third_Party\LwIP\src\include\lwip\pbuf.h;Middlewares\Third_Party\LwIP\src\include\lwip\raw.h;Middlewares\Third_Party\LwIP\src\include\lwip\sio.h;Middlewares\Third_Party\LwIP\src\include\lwip\snmp.h;Middlewares\Third_Party\LwIP\src\include\lwip\sockets.h;Middlewares\Third_Party\LwIP\src\include\lwip\stats.h;Middlewares\Third_Party\LwIP\src\include\lwip\sys.h;Middlewares\Third_Party\LwIP\src\include\lwip\tcp.h;Middlewares\Third_Party\LwIP\src\include\lwip\tcpbase.h;Middlewares\Third_Party\LwIP\src\include\lwip\tcpip.h;Middlewares\Third_Party\LwIP\src\include\lwip\timeouts.h;Middlewares\Third_Party\LwIP\src\include\lwip\udp.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\altcp_proxyconnect.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\altcp_tls_mbedtls_opts.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\fs.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\httpd.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\httpd_opts.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\http_client.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\lwiperf.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\mdns.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\mdns_opts.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\mdns_priv.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\mqtt.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\mqtt_opts.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\mqtt_priv.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\netbiosns.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\netbiosns_opts.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\smtp.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\smtp_opts.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\snmp.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\snmpv3.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\snmp_core.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\snmp_mib2.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\snmp_opts.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\snmp_scalar.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\snmp_snmpv2_framework.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\snmp_snmpv2_usm.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\snmp_table.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\snmp_threadsync.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\sntp.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\sntp_opts.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\tftp_opts.h;Middlewares\Third_Party\LwIP\src\include\lwip\apps\tftp_server.h;Middlewares\Third_Party\LwIP\src\include\lwip\priv\altcp_priv.h;Middlewares\Third_Party\LwIP\src\include\lwip\priv\api_msg.h;Middlewares\Third_Party\LwIP\src\include\lwip\priv\memp_priv.h;Middlewares\Third_Party\LwIP\src\include\lwip\priv\memp_std.h;Middlewares\Third_Party\LwIP\src\include\lwip\priv\mem_priv.h;Middlewares\Third_Party\LwIP\src\include\lwip\priv\nd6_priv.h;Middlewares\Third_Party\LwIP\src\include\lwip\priv\raw_priv.h;Middlewares\Third_Party\LwIP\src\include\lwip\priv\sockets_priv.h;Middlewares\Third_Party\LwIP\src\include\lwip\priv\tcpip_priv.h;Middlewares\Third_Party\LwIP\src\include\lwip\priv\tcp_priv.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\autoip.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\dhcp.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\dhcp6.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\dns.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\etharp.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\ethernet.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\iana.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\icmp.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\icmp6.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\ieee.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\igmp.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\ip.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\ip4.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\ip6.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\mld6.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\nd6.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\tcp.h;Middlewares\Third_Party\LwIP\src\include\lwip\prot\udp.h;Middlewares\Third_Party\LwIP\src\include\netif\bridgeif.h;Middlewares\Third_Party\LwIP\src\include\netif\bridgeif_opts.h;Middlewares\Third_Party\LwIP\src\include\netif\etharp.h;Middlewares\Third_Party\LwIP\src\include\netif\ethernet.h;Middlewares\Third_Party\LwIP\src\include\netif\ieee802154.h;Middlewares\Third_Party\LwIP\src\include\netif\lowpan6.h;Middlewares\Third_Party\LwIP\src\include\netif\lowpan6_ble.h;Middlewares\Third_Party\LwIP\src\include\netif\lowpan6_common.h;Middlewares\Third_Party\LwIP\src\include\netif\lowpan6_opts.h;Middlewares\Third_Party\LwIP\src\include\netif\slipif.h;Middlewares\Third_Party\LwIP\src\include\netif\zepif.h;Middlewares\Third_Party\LwIP\src\include\compat\posix\netdb.h;Middlewares\Third_Party\LwIP\src\include\compat\posix\arpa\inet.h;Middlewares\Third_Party\LwIP\src\include\compat\posix\net\if.h;Middlewares\Third_Party\LwIP\src\include\compat\posix\sys\socket.h;Middlewares\Third_Party\LwIP\src\include\compat\stdc\errno.h;Middlewares\Third_Party\LwIP\system\arch\bpstruct.h;Middlewares\Third_Party\LwIP\system\arch\cc.h;Middlewares\Third_Party\LwIP\system\arch\cpu.h;Middlewares\Third_Party\LwIP\system\arch\epstruct.h;Middlewares\Third_Party\LwIP\system\arch\init.h;Middlewares\Third_Party\LwIP\system\arch\lib.h;Middlewares\Third_Party\LwIP\system\arch\perf.h;Middlewares\Third_Party\LwIP\system\arch\sys_arch.h;Drivers\CMSIS\Include\cmsis_armcc.h;Drivers\CMSIS\Include\cmsis_armclang.h;Drivers\CMSIS\Include\cmsis_armclang_ltm.h;Drivers\CMSIS\Include\cmsis_compiler.h;Drivers\CMSIS\Include\cmsis_gcc.h;Drivers\CMSIS\Include\cmsis_iccarm.h;Drivers\CMSIS\Include\cmsis_version.h;Drivers\CMSIS\Include\core_armv81mml.h;Drivers\CMSIS\Include\core_armv8mbl.h;Drivers\CMSIS\Include\core_armv8mml.h;Drivers\CMSIS\Include\core_cm0.h;Drivers\CMSIS\Include\core_cm0plus.h;Drivers\CMSIS\Include\core_cm1.h;Drivers\CMSIS\Include\core_cm23.h;Drivers\CMSIS\Include\core_cm3.h;Drivers\CMSIS\Include\core_cm33.h;Drivers\CMSIS\Include\core_cm35p.h;Drivers\CMSIS\Include\core_cm4.h;Drivers\CMSIS\Include\core_cm7.h;Drivers\CMSIS\Include\core_sc000.h;Drivers\CMSIS\Include\core_sc300.h;Drivers\CMSIS\Include\mpu_armv7.h;Drivers\CMSIS\Include\mpu_armv8.h;Drivers\CMSIS\Include\tz_context.h; - -[PreviousUsedCubeIDEFiles] -SourceFiles=Core\Src\main.c;Core\Src\freertos.c;FATFS\Target\bsp_driver_sd.c;FATFS\Target\sd_diskio.c;FATFS\App\fatfs.c;FATFS\Target\fatfs_platform.c;LWIP\App\lwip.c;LWIP\Target\ethernetif.c;Core\Src\stm32h7xx_it.c;Core\Src\stm32h7xx_hal_msp.c;Core\Src\stm32h7xx_hal_timebase_tim.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_eth.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_eth_ex.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_rcc.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_rcc_ex.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_flash.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_flash_ex.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_gpio.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_hsem.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_dma.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_dma_ex.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_mdma.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_pwr.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_pwr_ex.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_cortex.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_i2c.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_i2c_ex.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_exti.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_fdcan.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_ll_sdmmc.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_ll_delayblock.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_sd.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_sd_ex.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_tim.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_tim_ex.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_uart.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_uart_ex.c;Middlewares\Third_Party\FreeRTOS\Source\croutine.c;Middlewares\Third_Party\FreeRTOS\Source\event_groups.c;Middlewares\Third_Party\FreeRTOS\Source\list.c;Middlewares\Third_Party\FreeRTOS\Source\queue.c;Middlewares\Third_Party\FreeRTOS\Source\stream_buffer.c;Middlewares\Third_Party\FreeRTOS\Source\tasks.c;Middlewares\Third_Party\FreeRTOS\Source\timers.c;Middlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS\cmsis_os.c;Middlewares\Third_Party\FreeRTOS\Source\portable\MemMang\heap_4.c;Middlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F\port.c;Middlewares\Third_Party\FatFs\src\diskio.c;Middlewares\Third_Party\FatFs\src\ff.c;Middlewares\Third_Party\FatFs\src\ff_gen_drv.c;Middlewares\Third_Party\FatFs\src\option\syscall.c;Middlewares\Third_Party\FatFs\src\option\ccsbcs.c;Drivers\BSP\Components\lan8742\lan8742.c;Middlewares\Third_Party\LwIP\src\netif\ppp\auth.c;Middlewares\Third_Party\LwIP\src\netif\ppp\ccp.c;Middlewares\Third_Party\LwIP\src\netif\ppp\chap_ms.c;Middlewares\Third_Party\LwIP\src\netif\ppp\chap-md5.c;Middlewares\Third_Party\LwIP\src\netif\ppp\chap-new.c;Middlewares\Third_Party\LwIP\src\netif\ppp\demand.c;Middlewares\Third_Party\LwIP\src\netif\ppp\eap.c;Middlewares\Third_Party\LwIP\src\netif\ppp\eui64.c;Middlewares\Third_Party\LwIP\src\netif\ppp\fsm.c;Middlewares\Third_Party\LwIP\src\netif\ppp\ipcp.c;Middlewares\Third_Party\LwIP\src\netif\ppp\ipv6cp.c;Middlewares\Third_Party\LwIP\src\netif\ppp\lcp.c;Middlewares\Third_Party\LwIP\src\netif\ppp\magic.c;Middlewares\Third_Party\LwIP\src\netif\ppp\mppe.c;Middlewares\Third_Party\LwIP\src\netif\ppp\multilink.c;Middlewares\Third_Party\LwIP\src\netif\ppp\ppp.c;Middlewares\Third_Party\LwIP\src\netif\ppp\pppapi.c;Middlewares\Third_Party\LwIP\src\netif\ppp\pppcrypt.c;Middlewares\Third_Party\LwIP\src\netif\ppp\pppoe.c;Middlewares\Third_Party\LwIP\src\netif\ppp\pppol2tp.c;Middlewares\Third_Party\LwIP\src\netif\ppp\pppos.c;Middlewares\Third_Party\LwIP\src\netif\ppp\upap.c;Middlewares\Third_Party\LwIP\src\netif\ppp\utils.c;Middlewares\Third_Party\LwIP\src\netif\ppp\vj.c;Middlewares\Third_Party\LwIP\src\netif\bridgeif.c;Middlewares\Third_Party\LwIP\src\netif\bridgeif_fdb.c;Middlewares\Third_Party\LwIP\src\netif\ethernet.c;Middlewares\Third_Party\LwIP\src\netif\lowpan6.c;Middlewares\Third_Party\LwIP\src\netif\lowpan6_ble.c;Middlewares\Third_Party\LwIP\src\netif\lowpan6_common.c;Middlewares\Third_Party\LwIP\src\netif\slipif.c;Middlewares\Third_Party\LwIP\src\netif\zepif.c;Middlewares\Third_Party\LwIP\src\netif\ppp\ecp.c;Drivers\CMSIS\Device\ST\STM32H7xx\Source\Templates\system_stm32h7xx.c;Middlewares\Third_Party\LwIP\src\api\api_lib.c;Middlewares\Third_Party\LwIP\src\api\api_msg.c;Middlewares\Third_Party\LwIP\src\api\err.c;Middlewares\Third_Party\LwIP\src\api\if_api.c;Middlewares\Third_Party\LwIP\src\api\netbuf.c;Middlewares\Third_Party\LwIP\src\api\netdb.c;Middlewares\Third_Party\LwIP\src\api\netifapi.c;Middlewares\Third_Party\LwIP\src\api\sockets.c;Middlewares\Third_Party\LwIP\src\api\tcpip.c;Middlewares\Third_Party\LwIP\src\core\altcp.c;Middlewares\Third_Party\LwIP\src\core\altcp_alloc.c;Middlewares\Third_Party\LwIP\src\core\altcp_tcp.c;Middlewares\Third_Party\LwIP\src\core\def.c;Middlewares\Third_Party\LwIP\src\core\dns.c;Middlewares\Third_Party\LwIP\src\core\inet_chksum.c;Middlewares\Third_Party\LwIP\src\core\init.c;Middlewares\Third_Party\LwIP\src\core\ip.c;Middlewares\Third_Party\LwIP\src\core\mem.c;Middlewares\Third_Party\LwIP\src\core\memp.c;Middlewares\Third_Party\LwIP\src\core\netif.c;Middlewares\Third_Party\LwIP\src\core\pbuf.c;Middlewares\Third_Party\LwIP\src\core\raw.c;Middlewares\Third_Party\LwIP\src\core\stats.c;Middlewares\Third_Party\LwIP\src\core\sys.c;Middlewares\Third_Party\LwIP\src\core\tcp.c;Middlewares\Third_Party\LwIP\src\core\tcp_in.c;Middlewares\Third_Party\LwIP\src\core\tcp_out.c;Middlewares\Third_Party\LwIP\src\core\timeouts.c;Middlewares\Third_Party\LwIP\src\core\udp.c;Middlewares\Third_Party\LwIP\src\core\ipv4\autoip.c;Middlewares\Third_Party\LwIP\src\core\ipv4\dhcp.c;Middlewares\Third_Party\LwIP\src\core\ipv4\etharp.c;Middlewares\Third_Party\LwIP\src\core\ipv4\icmp.c;Middlewares\Third_Party\LwIP\src\core\ipv4\igmp.c;Middlewares\Third_Party\LwIP\src\core\ipv4\ip4.c;Middlewares\Third_Party\LwIP\src\core\ipv4\ip4_addr.c;Middlewares\Third_Party\LwIP\src\core\ipv4\ip4_frag.c;Middlewares\Third_Party\LwIP\src\core\ipv6\dhcp6.c;Middlewares\Third_Party\LwIP\src\core\ipv6\ethip6.c;Middlewares\Third_Party\LwIP\src\core\ipv6\icmp6.c;Middlewares\Third_Party\LwIP\src\core\ipv6\inet6.c;Middlewares\Third_Party\LwIP\src\core\ipv6\ip6.c;Middlewares\Third_Party\LwIP\src\core\ipv6\ip6_addr.c;Middlewares\Third_Party\LwIP\src\core\ipv6\ip6_frag.c;Middlewares\Third_Party\LwIP\src\core\ipv6\mld6.c;Middlewares\Third_Party\LwIP\src\core\ipv6\nd6.c;Middlewares\Third_Party\LwIP\system\OS\sys_arch.c;Middlewares\Third_Party\LwIP\src\apps\mqtt\mqtt.c;Core\Src\system_stm32h7xx.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_eth.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_eth_ex.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_rcc.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_rcc_ex.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_flash.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_flash_ex.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_gpio.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_hsem.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_dma.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_dma_ex.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_mdma.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_pwr.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_pwr_ex.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_cortex.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_i2c.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_i2c_ex.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_exti.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_fdcan.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_ll_sdmmc.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_ll_delayblock.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_sd.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_sd_ex.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_tim.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_tim_ex.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_uart.c;Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_uart_ex.c;Middlewares\Third_Party\FreeRTOS\Source\croutine.c;Middlewares\Third_Party\FreeRTOS\Source\event_groups.c;Middlewares\Third_Party\FreeRTOS\Source\list.c;Middlewares\Third_Party\FreeRTOS\Source\queue.c;Middlewares\Third_Party\FreeRTOS\Source\stream_buffer.c;Middlewares\Third_Party\FreeRTOS\Source\tasks.c;Middlewares\Third_Party\FreeRTOS\Source\timers.c;Middlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS\cmsis_os.c;Middlewares\Third_Party\FreeRTOS\Source\portable\MemMang\heap_4.c;Middlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F\port.c;Middlewares\Third_Party\FatFs\src\diskio.c;Middlewares\Third_Party\FatFs\src\ff.c;Middlewares\Third_Party\FatFs\src\ff_gen_drv.c;Middlewares\Third_Party\FatFs\src\option\syscall.c;Middlewares\Third_Party\FatFs\src\option\ccsbcs.c;Drivers\BSP\Components\lan8742\lan8742.c;Middlewares\Third_Party\LwIP\src\netif\ppp\auth.c;Middlewares\Third_Party\LwIP\src\netif\ppp\ccp.c;Middlewares\Third_Party\LwIP\src\netif\ppp\chap_ms.c;Middlewares\Third_Party\LwIP\src\netif\ppp\chap-md5.c;Middlewares\Third_Party\LwIP\src\netif\ppp\chap-new.c;Middlewares\Third_Party\LwIP\src\netif\ppp\demand.c;Middlewares\Third_Party\LwIP\src\netif\ppp\eap.c;Middlewares\Third_Party\LwIP\src\netif\ppp\eui64.c;Middlewares\Third_Party\LwIP\src\netif\ppp\fsm.c;Middlewares\Third_Party\LwIP\src\netif\ppp\ipcp.c;Middlewares\Third_Party\LwIP\src\netif\ppp\ipv6cp.c;Middlewares\Third_Party\LwIP\src\netif\ppp\lcp.c;Middlewares\Third_Party\LwIP\src\netif\ppp\magic.c;Middlewares\Third_Party\LwIP\src\netif\ppp\mppe.c;Middlewares\Third_Party\LwIP\src\netif\ppp\multilink.c;Middlewares\Third_Party\LwIP\src\netif\ppp\ppp.c;Middlewares\Third_Party\LwIP\src\netif\ppp\pppapi.c;Middlewares\Third_Party\LwIP\src\netif\ppp\pppcrypt.c;Middlewares\Third_Party\LwIP\src\netif\ppp\pppoe.c;Middlewares\Third_Party\LwIP\src\netif\ppp\pppol2tp.c;Middlewares\Third_Party\LwIP\src\netif\ppp\pppos.c;Middlewares\Third_Party\LwIP\src\netif\ppp\upap.c;Middlewares\Third_Party\LwIP\src\netif\ppp\utils.c;Middlewares\Third_Party\LwIP\src\netif\ppp\vj.c;Middlewares\Third_Party\LwIP\src\netif\bridgeif.c;Middlewares\Third_Party\LwIP\src\netif\bridgeif_fdb.c;Middlewares\Third_Party\LwIP\src\netif\ethernet.c;Middlewares\Third_Party\LwIP\src\netif\lowpan6.c;Middlewares\Third_Party\LwIP\src\netif\lowpan6_ble.c;Middlewares\Third_Party\LwIP\src\netif\lowpan6_common.c;Middlewares\Third_Party\LwIP\src\netif\slipif.c;Middlewares\Third_Party\LwIP\src\netif\zepif.c;Middlewares\Third_Party\LwIP\src\netif\ppp\ecp.c;Drivers\CMSIS\Device\ST\STM32H7xx\Source\Templates\system_stm32h7xx.c;Middlewares\Third_Party\LwIP\src\api\api_lib.c;Middlewares\Third_Party\LwIP\src\api\api_msg.c;Middlewares\Third_Party\LwIP\src\api\err.c;Middlewares\Third_Party\LwIP\src\api\if_api.c;Middlewares\Third_Party\LwIP\src\api\netbuf.c;Middlewares\Third_Party\LwIP\src\api\netdb.c;Middlewares\Third_Party\LwIP\src\api\netifapi.c;Middlewares\Third_Party\LwIP\src\api\sockets.c;Middlewares\Third_Party\LwIP\src\api\tcpip.c;Middlewares\Third_Party\LwIP\src\core\altcp.c;Middlewares\Third_Party\LwIP\src\core\altcp_alloc.c;Middlewares\Third_Party\LwIP\src\core\altcp_tcp.c;Middlewares\Third_Party\LwIP\src\core\def.c;Middlewares\Third_Party\LwIP\src\core\dns.c;Middlewares\Third_Party\LwIP\src\core\inet_chksum.c;Middlewares\Third_Party\LwIP\src\core\init.c;Middlewares\Third_Party\LwIP\src\core\ip.c;Middlewares\Third_Party\LwIP\src\core\mem.c;Middlewares\Third_Party\LwIP\src\core\memp.c;Middlewares\Third_Party\LwIP\src\core\netif.c;Middlewares\Third_Party\LwIP\src\core\pbuf.c;Middlewares\Third_Party\LwIP\src\core\raw.c;Middlewares\Third_Party\LwIP\src\core\stats.c;Middlewares\Third_Party\LwIP\src\core\sys.c;Middlewares\Third_Party\LwIP\src\core\tcp.c;Middlewares\Third_Party\LwIP\src\core\tcp_in.c;Middlewares\Third_Party\LwIP\src\core\tcp_out.c;Middlewares\Third_Party\LwIP\src\core\timeouts.c;Middlewares\Third_Party\LwIP\src\core\udp.c;Middlewares\Third_Party\LwIP\src\core\ipv4\autoip.c;Middlewares\Third_Party\LwIP\src\core\ipv4\dhcp.c;Middlewares\Third_Party\LwIP\src\core\ipv4\etharp.c;Middlewares\Third_Party\LwIP\src\core\ipv4\icmp.c;Middlewares\Third_Party\LwIP\src\core\ipv4\igmp.c;Middlewares\Third_Party\LwIP\src\core\ipv4\ip4.c;Middlewares\Third_Party\LwIP\src\core\ipv4\ip4_addr.c;Middlewares\Third_Party\LwIP\src\core\ipv4\ip4_frag.c;Middlewares\Third_Party\LwIP\src\core\ipv6\dhcp6.c;Middlewares\Third_Party\LwIP\src\core\ipv6\ethip6.c;Middlewares\Third_Party\LwIP\src\core\ipv6\icmp6.c;Middlewares\Third_Party\LwIP\src\core\ipv6\inet6.c;Middlewares\Third_Party\LwIP\src\core\ipv6\ip6.c;Middlewares\Third_Party\LwIP\src\core\ipv6\ip6_addr.c;Middlewares\Third_Party\LwIP\src\core\ipv6\ip6_frag.c;Middlewares\Third_Party\LwIP\src\core\ipv6\mld6.c;Middlewares\Third_Party\LwIP\src\core\ipv6\nd6.c;Middlewares\Third_Party\LwIP\system\OS\sys_arch.c;Middlewares\Third_Party\LwIP\src\apps\mqtt\mqtt.c;Core\Src\system_stm32h7xx.c;;;Middlewares\Third_Party\FatFs\src\diskio.c;Middlewares\Third_Party\FatFs\src\ff.c;Middlewares\Third_Party\FatFs\src\ff_gen_drv.c;Middlewares\Third_Party\FatFs\src\option\syscall.c;Middlewares\Third_Party\FatFs\src\option\ccsbcs.c;Middlewares\Third_Party\FreeRTOS\Source\croutine.c;Middlewares\Third_Party\FreeRTOS\Source\event_groups.c;Middlewares\Third_Party\FreeRTOS\Source\list.c;Middlewares\Third_Party\FreeRTOS\Source\queue.c;Middlewares\Third_Party\FreeRTOS\Source\stream_buffer.c;Middlewares\Third_Party\FreeRTOS\Source\tasks.c;Middlewares\Third_Party\FreeRTOS\Source\timers.c;Middlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS\cmsis_os.c;Middlewares\Third_Party\FreeRTOS\Source\portable\MemMang\heap_4.c;Middlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F\port.c;Middlewares\Third_Party\LwIP\src\netif\ppp\auth.c;Middlewares\Third_Party\LwIP\src\netif\ppp\ccp.c;Middlewares\Third_Party\LwIP\src\netif\ppp\chap_ms.c;Middlewares\Third_Party\LwIP\src\netif\ppp\chap-md5.c;Middlewares\Third_Party\LwIP\src\netif\ppp\chap-new.c;Middlewares\Third_Party\LwIP\src\netif\ppp\demand.c;Middlewares\Third_Party\LwIP\src\netif\ppp\eap.c;Middlewares\Third_Party\LwIP\src\netif\ppp\eui64.c;Middlewares\Third_Party\LwIP\src\netif\ppp\fsm.c;Middlewares\Third_Party\LwIP\src\netif\ppp\ipcp.c;Middlewares\Third_Party\LwIP\src\netif\ppp\ipv6cp.c;Middlewares\Third_Party\LwIP\src\netif\ppp\lcp.c;Middlewares\Third_Party\LwIP\src\netif\ppp\magic.c;Middlewares\Third_Party\LwIP\src\netif\ppp\mppe.c;Middlewares\Third_Party\LwIP\src\netif\ppp\multilink.c;Middlewares\Third_Party\LwIP\src\netif\ppp\ppp.c;Middlewares\Third_Party\LwIP\src\netif\ppp\pppapi.c;Middlewares\Third_Party\LwIP\src\netif\ppp\pppcrypt.c;Middlewares\Third_Party\LwIP\src\netif\ppp\pppoe.c;Middlewares\Third_Party\LwIP\src\netif\ppp\pppol2tp.c;Middlewares\Third_Party\LwIP\src\netif\ppp\pppos.c;Middlewares\Third_Party\LwIP\src\netif\ppp\upap.c;Middlewares\Third_Party\LwIP\src\netif\ppp\utils.c;Middlewares\Third_Party\LwIP\src\netif\ppp\vj.c;Middlewares\Third_Party\LwIP\src\netif\bridgeif.c;Middlewares\Third_Party\LwIP\src\netif\bridgeif_fdb.c;Middlewares\Third_Party\LwIP\src\netif\ethernet.c;Middlewares\Third_Party\LwIP\src\netif\lowpan6.c;Middlewares\Third_Party\LwIP\src\netif\lowpan6_ble.c;Middlewares\Third_Party\LwIP\src\netif\lowpan6_common.c;Middlewares\Third_Party\LwIP\src\netif\slipif.c;Middlewares\Third_Party\LwIP\src\netif\zepif.c;Middlewares\Third_Party\LwIP\src\netif\ppp\ecp.c;Middlewares\Third_Party\LwIP\src\api\api_lib.c;Middlewares\Third_Party\LwIP\src\api\api_msg.c;Middlewares\Third_Party\LwIP\src\api\err.c;Middlewares\Third_Party\LwIP\src\api\if_api.c;Middlewares\Third_Party\LwIP\src\api\netbuf.c;Middlewares\Third_Party\LwIP\src\api\netdb.c;Middlewares\Third_Party\LwIP\src\api\netifapi.c;Middlewares\Third_Party\LwIP\src\api\sockets.c;Middlewares\Third_Party\LwIP\src\api\tcpip.c;Middlewares\Third_Party\LwIP\src\core\altcp.c;Middlewares\Third_Party\LwIP\src\core\altcp_alloc.c;Middlewares\Third_Party\LwIP\src\core\altcp_tcp.c;Middlewares\Third_Party\LwIP\src\core\def.c;Middlewares\Third_Party\LwIP\src\core\dns.c;Middlewares\Third_Party\LwIP\src\core\inet_chksum.c;Middlewares\Third_Party\LwIP\src\core\init.c;Middlewares\Third_Party\LwIP\src\core\ip.c;Middlewares\Third_Party\LwIP\src\core\mem.c;Middlewares\Third_Party\LwIP\src\core\memp.c;Middlewares\Third_Party\LwIP\src\core\netif.c;Middlewares\Third_Party\LwIP\src\core\pbuf.c;Middlewares\Third_Party\LwIP\src\core\raw.c;Middlewares\Third_Party\LwIP\src\core\stats.c;Middlewares\Third_Party\LwIP\src\core\sys.c;Middlewares\Third_Party\LwIP\src\core\tcp.c;Middlewares\Third_Party\LwIP\src\core\tcp_in.c;Middlewares\Third_Party\LwIP\src\core\tcp_out.c;Middlewares\Third_Party\LwIP\src\core\timeouts.c;Middlewares\Third_Party\LwIP\src\core\udp.c;Middlewares\Third_Party\LwIP\src\core\ipv4\autoip.c;Middlewares\Third_Party\LwIP\src\core\ipv4\dhcp.c;Middlewares\Third_Party\LwIP\src\core\ipv4\etharp.c;Middlewares\Third_Party\LwIP\src\core\ipv4\icmp.c;Middlewares\Third_Party\LwIP\src\core\ipv4\igmp.c;Middlewares\Third_Party\LwIP\src\core\ipv4\ip4.c;Middlewares\Third_Party\LwIP\src\core\ipv4\ip4_addr.c;Middlewares\Third_Party\LwIP\src\core\ipv4\ip4_frag.c;Middlewares\Third_Party\LwIP\src\core\ipv6\dhcp6.c;Middlewares\Third_Party\LwIP\src\core\ipv6\ethip6.c;Middlewares\Third_Party\LwIP\src\core\ipv6\icmp6.c;Middlewares\Third_Party\LwIP\src\core\ipv6\inet6.c;Middlewares\Third_Party\LwIP\src\core\ipv6\ip6.c;Middlewares\Third_Party\LwIP\src\core\ipv6\ip6_addr.c;Middlewares\Third_Party\LwIP\src\core\ipv6\ip6_frag.c;Middlewares\Third_Party\LwIP\src\core\ipv6\mld6.c;Middlewares\Third_Party\LwIP\src\core\ipv6\nd6.c;Middlewares\Third_Party\LwIP\system\OS\sys_arch.c;Middlewares\Third_Party\LwIP\src\apps\mqtt\mqtt.c; -HeaderPath=Middlewares\Third_Party\LwIP\src\include;Middlewares\Third_Party\LwIP\system;Middlewares\Third_Party\LwIP\src\include;Middlewares\Third_Party\LwIP\system;Drivers\STM32H7xx_HAL_Driver\Inc;Drivers\STM32H7xx_HAL_Driver\Inc\Legacy;Middlewares\Third_Party\FreeRTOS\Source\include;Middlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS;Middlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F;Middlewares\Third_Party\FatFs\src;Drivers\BSP\Components\lan8742;Middlewares\Third_Party\LwIP\src\include\netif\ppp;Drivers\CMSIS\Device\ST\STM32H7xx\Include;Middlewares\Third_Party\LwIP\src\include\lwip;Middlewares\Third_Party\LwIP\src\include\lwip\apps;Middlewares\Third_Party\LwIP\src\include\lwip\priv;Middlewares\Third_Party\LwIP\src\include\lwip\prot;Middlewares\Third_Party\LwIP\src\include\netif;Middlewares\Third_Party\LwIP\src\include\compat\posix;Middlewares\Third_Party\LwIP\src\include\compat\posix\arpa;Middlewares\Third_Party\LwIP\src\include\compat\posix\net;Middlewares\Third_Party\LwIP\src\include\compat\posix\sys;Middlewares\Third_Party\LwIP\src\include\compat\stdc;Middlewares\Third_Party\LwIP\system\arch;Drivers\CMSIS\Include;Core\Inc;FATFS\Target;FATFS\App;LWIP\App;LWIP\Target; -CDefines=USE_HAL_DRIVER;STM32H723xx;USE_HAL_DRIVER;USE_HAL_DRIVER; - -[PreviousGenFiles] -AdvancedFolderStructure=true -HeaderFileListSize=12 -HeaderFiles#0=..\Core\Inc\FreeRTOSConfig.h -HeaderFiles#1=..\FATFS\Target\ffconf.h -HeaderFiles#2=..\FATFS\Target\bsp_driver_sd.h -HeaderFiles#3=..\FATFS\Target\sd_diskio.h -HeaderFiles#4=..\FATFS\App\fatfs.h -HeaderFiles#5=..\FATFS\Target\fatfs_platform.h -HeaderFiles#6=..\LWIP\App\lwip.h -HeaderFiles#7=..\LWIP\Target\lwipopts.h -HeaderFiles#8=..\LWIP\Target\ethernetif.h -HeaderFiles#9=..\Core\Inc\stm32h7xx_it.h -HeaderFiles#10=..\Core\Inc\stm32h7xx_hal_conf.h -HeaderFiles#11=..\Core\Inc\main.h -HeaderFolderListSize=5 -HeaderPath#0=..\Core\Inc -HeaderPath#1=..\FATFS\Target -HeaderPath#2=..\FATFS\App -HeaderPath#3=..\LWIP\App -HeaderPath#4=..\LWIP\Target -HeaderFiles=; -SourceFileListSize=11 -SourceFiles#0=..\Core\Src\freertos.c -SourceFiles#1=..\FATFS\Target\bsp_driver_sd.c -SourceFiles#2=..\FATFS\Target\sd_diskio.c -SourceFiles#3=..\FATFS\App\fatfs.c -SourceFiles#4=..\FATFS\Target\fatfs_platform.c -SourceFiles#5=..\LWIP\App\lwip.c -SourceFiles#6=..\LWIP\Target\ethernetif.c -SourceFiles#7=..\Core\Src\stm32h7xx_it.c -SourceFiles#8=..\Core\Src\stm32h7xx_hal_msp.c -SourceFiles#9=..\Core\Src\stm32h7xx_hal_timebase_tim.c -SourceFiles#10=..\Core\Src\main.c -SourceFolderListSize=5 -SourcePath#0=..\Core\Src -SourcePath#1=..\FATFS\Target -SourcePath#2=..\FATFS\App -SourcePath#3=..\LWIP\App -SourcePath#4=..\LWIP\Target -SourceFiles=; - diff --git a/.project b/.project deleted file mode 100644 index 4d66f3c..0000000 --- a/.project +++ /dev/null @@ -1,32 +0,0 @@ - - - TBD_TaxiBoard - - - - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - clean,full,incremental, - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - full,incremental, - - - - - - com.st.stm32cube.ide.mcu.MCUProjectNature - com.st.stm32cube.ide.mcu.MCUCubeProjectNature - org.eclipse.cdt.core.cnature - com.st.stm32cube.ide.mcu.MCUCubeIdeServicesRevAev2ProjectNature - com.st.stm32cube.ide.mcu.MCUAdvancedStructureProjectNature - com.st.stm32cube.ide.mcu.MCUSingleCpuProjectNature - com.st.stm32cube.ide.mcu.MCURootProjectNature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - - diff --git a/.settings/com.st.stm32cube.ide.mcu.sfrview.prefs b/.settings/com.st.stm32cube.ide.mcu.sfrview.prefs deleted file mode 100644 index 98a69fc..0000000 --- a/.settings/com.st.stm32cube.ide.mcu.sfrview.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -sfrviewstate={"fFavorites"\:{"fLists"\:{}},"fProperties"\:{"fNodeProperties"\:{}}} diff --git a/.settings/language.settings.xml b/.settings/language.settings.xml deleted file mode 100644 index adaa474..0000000 --- a/.settings/language.settings.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.settings/org.eclipse.cdt.codan.core.prefs b/.settings/org.eclipse.cdt.codan.core.prefs deleted file mode 100644 index 3e86936..0000000 --- a/.settings/org.eclipse.cdt.codan.core.prefs +++ /dev/null @@ -1,76 +0,0 @@ -com.st.stm32cube.ide.mcu.ide.oss.source.checker.libnano.problem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Float formatting support\\")"} -eclipse.preferences.version=1 -org.eclipse.cdt.codan.checkers.errnoreturn.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"No return\\")",implicit\=>false} -org.eclipse.cdt.codan.checkers.errreturnvalue.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Unused return value\\")"} -org.eclipse.cdt.codan.checkers.localvarreturn=-Warning -org.eclipse.cdt.codan.checkers.localvarreturn.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Returning the address of a local variable\\")"} -org.eclipse.cdt.codan.checkers.nocommentinside.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Nesting comments\\")"} -org.eclipse.cdt.codan.checkers.nolinecomment.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Line comments\\")"} -org.eclipse.cdt.codan.checkers.noreturn.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"No return value\\")",implicit\=>false} -org.eclipse.cdt.codan.internal.checkers.AbstractClassCreation.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Abstract class cannot be instantiated\\")"} -org.eclipse.cdt.codan.internal.checkers.AmbiguousProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Ambiguous problem\\")"} -org.eclipse.cdt.codan.internal.checkers.AssignmentInConditionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Assignment in condition\\")"} -org.eclipse.cdt.codan.internal.checkers.AssignmentToItselfProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Assignment to itself\\")"} -org.eclipse.cdt.codan.internal.checkers.BlacklistProblem=-Warning -org.eclipse.cdt.codan.internal.checkers.BlacklistProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Function or method is blacklisted\\")",blacklist\=>()} -org.eclipse.cdt.codan.internal.checkers.CStyleCastProblem=-Warning -org.eclipse.cdt.codan.internal.checkers.CStyleCastProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"C-Style cast instead of C++ cast\\")",checkMacro\=>true} -org.eclipse.cdt.codan.internal.checkers.CaseBreakProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"No break at end of case\\")",no_break_comment\=>"no break",last_case_param\=>false,empty_case_param\=>false,enable_fallthrough_quickfix_param\=>false} -org.eclipse.cdt.codan.internal.checkers.CatchByReference.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Catching by reference is recommended\\")",unknown\=>false,exceptions\=>()} -org.eclipse.cdt.codan.internal.checkers.CircularReferenceProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Circular inheritance\\")"} -org.eclipse.cdt.codan.internal.checkers.ClassMembersInitialization.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Class members should be properly initialized\\")",skip\=>true} -org.eclipse.cdt.codan.internal.checkers.CopyrightProblem=-Warning -org.eclipse.cdt.codan.internal.checkers.CopyrightProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Lack of copyright information\\")",regex\=>".*Copyright.*"} -org.eclipse.cdt.codan.internal.checkers.DecltypeAutoProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Invalid 'decltype(auto)' specifier\\")"} -org.eclipse.cdt.codan.internal.checkers.FieldResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Field cannot be resolved\\")"} -org.eclipse.cdt.codan.internal.checkers.FloatCompareProblem=-Warning -org.eclipse.cdt.codan.internal.checkers.FloatCompareProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Direct float comparison\\")"} -org.eclipse.cdt.codan.internal.checkers.FunctionResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Function cannot be resolved\\")"} -org.eclipse.cdt.codan.internal.checkers.GotoStatementProblem=-Warning -org.eclipse.cdt.codan.internal.checkers.GotoStatementProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Goto statement used\\")"} -org.eclipse.cdt.codan.internal.checkers.InvalidArguments.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Invalid arguments\\")"} -org.eclipse.cdt.codan.internal.checkers.InvalidTemplateArgumentsProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Invalid template argument\\")"} -org.eclipse.cdt.codan.internal.checkers.LabelStatementNotFoundProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Label statement not found\\")"} -org.eclipse.cdt.codan.internal.checkers.MagicNumberProblem=-Warning -org.eclipse.cdt.codan.internal.checkers.MagicNumberProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Avoid magic numbers\\")",checkArray\=>true,checkOperatorParen\=>true,exceptions\=>(1,0,-1,2,1.0,0.0,-1.0)} -org.eclipse.cdt.codan.internal.checkers.MemberDeclarationNotFoundProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Member declaration not found\\")"} -org.eclipse.cdt.codan.internal.checkers.MethodResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Method cannot be resolved\\")"} -org.eclipse.cdt.codan.internal.checkers.MissCaseProblem=-Warning -org.eclipse.cdt.codan.internal.checkers.MissCaseProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Missing cases in switch\\")"} -org.eclipse.cdt.codan.internal.checkers.MissDefaultProblem=-Warning -org.eclipse.cdt.codan.internal.checkers.MissDefaultProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Missing default in switch\\")",defaultWithAllEnums\=>false} -org.eclipse.cdt.codan.internal.checkers.MissReferenceProblem=-Warning -org.eclipse.cdt.codan.internal.checkers.MissReferenceProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Missing reference return value in assignment operator\\")"} -org.eclipse.cdt.codan.internal.checkers.MissSelfCheckProblem=-Warning -org.eclipse.cdt.codan.internal.checkers.MissSelfCheckProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Missing self check in assignment operator\\")"} -org.eclipse.cdt.codan.internal.checkers.MultipleDeclarationsProblem=-Warning -org.eclipse.cdt.codan.internal.checkers.MultipleDeclarationsProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Multiple variable declaration\\")"} -org.eclipse.cdt.codan.internal.checkers.NamingConventionFunctionChecker.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Name convention for function\\")",pattern\=>"^[a-z]",macro\=>true,exceptions\=>()} -org.eclipse.cdt.codan.internal.checkers.NoDiscardProblem=Warning -org.eclipse.cdt.codan.internal.checkers.NoDiscardProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Return value not evaluated\\")",macro\=>true} -org.eclipse.cdt.codan.internal.checkers.NonVirtualDestructorProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Class has a virtual method and non-virtual destructor\\")"} -org.eclipse.cdt.codan.internal.checkers.OverloadProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Invalid overload\\")"} -org.eclipse.cdt.codan.internal.checkers.RedeclarationProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Invalid redeclaration\\")"} -org.eclipse.cdt.codan.internal.checkers.RedefinitionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Invalid redefinition\\")"} -org.eclipse.cdt.codan.internal.checkers.ReturnStyleProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Return with parenthesis\\")"} -org.eclipse.cdt.codan.internal.checkers.ScanfFormatStringSecurityProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Format String Vulnerability\\")"} -org.eclipse.cdt.codan.internal.checkers.ShallowCopyProblem=-Warning -org.eclipse.cdt.codan.internal.checkers.ShallowCopyProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Miss copy constructor or assignment operator\\")",onlynew\=>false} -org.eclipse.cdt.codan.internal.checkers.StatementHasNoEffectProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Statement has no effect\\")",macro\=>true,exceptions\=>()} -org.eclipse.cdt.codan.internal.checkers.StaticVariableInHeaderProblem=-Warning -org.eclipse.cdt.codan.internal.checkers.StaticVariableInHeaderProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Static variable in header file\\")"} -org.eclipse.cdt.codan.internal.checkers.StructuredBindingDeclarationProblem=Error -org.eclipse.cdt.codan.internal.checkers.StructuredBindingDeclarationProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Invalid structured binding declaration\\")"} -org.eclipse.cdt.codan.internal.checkers.SuggestedParenthesisProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Suggested parenthesis around expression\\")",paramNot\=>false} -org.eclipse.cdt.codan.internal.checkers.SuspiciousSemicolonProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Suspicious semicolon\\")",else\=>false,afterelse\=>false} -org.eclipse.cdt.codan.internal.checkers.SymbolShadowingProblem=-Warning -org.eclipse.cdt.codan.internal.checkers.SymbolShadowingProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Symbol shadowing\\")",paramFuncParameters\=>true} -org.eclipse.cdt.codan.internal.checkers.TypeResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Type cannot be resolved\\")"} -org.eclipse.cdt.codan.internal.checkers.UnusedFunctionDeclarationProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Unused function declaration\\")",macro\=>true} -org.eclipse.cdt.codan.internal.checkers.UnusedStaticFunctionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Unused static function\\")",macro\=>true} -org.eclipse.cdt.codan.internal.checkers.UnusedVariableDeclarationProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Unused variable declaration in file scope\\")",macro\=>true,exceptions\=>("@(\#)","$Id")} -org.eclipse.cdt.codan.internal.checkers.UsingInHeaderProblem=-Warning -org.eclipse.cdt.codan.internal.checkers.UsingInHeaderProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Using directive in header\\")"} -org.eclipse.cdt.codan.internal.checkers.VariableResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Symbol is not resolved\\")"} -org.eclipse.cdt.codan.internal.checkers.VirtualMethodCallProblem=-Error -org.eclipse.cdt.codan.internal.checkers.VirtualMethodCallProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},suppression_comment\=>"@suppress(\\"Virtual method call in constructor/destructor\\")"} diff --git a/.settings/org.eclipse.cdt.core.prefs b/.settings/org.eclipse.cdt.core.prefs deleted file mode 100644 index c8ec5df..0000000 --- a/.settings/org.eclipse.cdt.core.prefs +++ /dev/null @@ -1,6 +0,0 @@ -doxygen/doxygen_new_line_after_brief=true -doxygen/doxygen_use_brief_tag=false -doxygen/doxygen_use_javadoc_tags=true -doxygen/doxygen_use_pre_tag=false -doxygen/doxygen_use_structural_commands=false -eclipse.preferences.version=1 diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 99f26c0..0000000 --- a/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/.settings/stm32cubeide.project.prefs b/.settings/stm32cubeide.project.prefs deleted file mode 100644 index 4b9a8ab..0000000 --- a/.settings/stm32cubeide.project.prefs +++ /dev/null @@ -1,6 +0,0 @@ -2F62501ED4689FB349E356AB974DBE57=142717C5F4082A60DD9609231D0F077D -635E684B79701B039C64EA45C3F84D30=BB961CC53A0667278ACD89DFF06E1D9F -66BE74F758C12D739921AEA421D593D3=4 -8DF89ED150041C4CBC7CB9A9CAA90856=142717C5F4082A60DD9609231D0F077D -DC22A860405A8BF2F2C095E5B6529F12=3689951419DD9ED3A6AC68932BCB3771 -eclipse.preferences.version=1 diff --git a/Core/Inc/FreeRTOSConfig.h b/Core/Inc/FreeRTOSConfig.h deleted file mode 100644 index 9927e0f..0000000 --- a/Core/Inc/FreeRTOSConfig.h +++ /dev/null @@ -1,147 +0,0 @@ -/* USER CODE BEGIN Header */ -/* - * FreeRTOS Kernel V10.3.1 - * Portion Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Portion Copyright (C) 2019 StMicroelectronics, Inc. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ -/* USER CODE END Header */ - -#ifndef FREERTOS_CONFIG_H -#define FREERTOS_CONFIG_H - -/*----------------------------------------------------------- - * Application specific definitions. - * - * These definitions should be adjusted for your particular hardware and - * application requirements. - * - * These parameters and more are described within the 'configuration' section of the - * FreeRTOS API documentation available on the FreeRTOS.org web site. - * - * See http://www.freertos.org/a00110.html - *----------------------------------------------------------*/ - -/* USER CODE BEGIN Includes */ -/* Section where include file can be added */ -/* USER CODE END Includes */ - -/* Ensure definitions are only used by the compiler, and not by the assembler. */ -#if defined(__ICCARM__) || defined(__CC_ARM) || defined(__GNUC__) - #include - extern uint32_t SystemCoreClock; -#endif -#define configENABLE_FPU 0 -#define configENABLE_MPU 0 - -#define configUSE_PREEMPTION 1 -#define configSUPPORT_STATIC_ALLOCATION 1 -#define configSUPPORT_DYNAMIC_ALLOCATION 1 -#define configUSE_IDLE_HOOK 0 -#define configUSE_TICK_HOOK 0 -#define configCPU_CLOCK_HZ ( SystemCoreClock ) -#define configTICK_RATE_HZ ((TickType_t)1000) -#define configMAX_PRIORITIES ( 7 ) -#define configMINIMAL_STACK_SIZE ((uint16_t)256) -#define configTOTAL_HEAP_SIZE ((size_t)30720) -#define configMAX_TASK_NAME_LEN ( 16 ) -#define configUSE_16_BIT_TICKS 0 -#define configUSE_MUTEXES 1 -#define configQUEUE_REGISTRY_SIZE 8 -#define configCHECK_FOR_STACK_OVERFLOW 1 -#define configUSE_PORT_OPTIMISED_TASK_SELECTION 1 -/* USER CODE BEGIN MESSAGE_BUFFER_LENGTH_TYPE */ -/* Defaults to size_t for backward compatibility, but can be changed - if lengths will always be less than the number of bytes in a size_t. */ -#define configMESSAGE_BUFFER_LENGTH_TYPE size_t -/* USER CODE END MESSAGE_BUFFER_LENGTH_TYPE */ - -/* Co-routine definitions. */ -#define configUSE_CO_ROUTINES 0 -#define configMAX_CO_ROUTINE_PRIORITIES ( 2 ) - -/* Software timer definitions. */ -#define configUSE_TIMERS 1 -#define configTIMER_TASK_PRIORITY ( 2 ) -#define configTIMER_QUEUE_LENGTH 10 -#define configTIMER_TASK_STACK_DEPTH 512 - -/* Set the following definitions to 1 to include the API function, or zero -to exclude the API function. */ -#define INCLUDE_vTaskPrioritySet 1 -#define INCLUDE_uxTaskPriorityGet 1 -#define INCLUDE_vTaskDelete 1 -#define INCLUDE_vTaskCleanUpResources 0 -#define INCLUDE_vTaskSuspend 1 -#define INCLUDE_vTaskDelayUntil 1 -#define INCLUDE_vTaskDelay 1 -#define INCLUDE_xTaskGetSchedulerState 1 - -/* Cortex-M specific definitions. */ -#ifdef __NVIC_PRIO_BITS - /* __BVIC_PRIO_BITS will be specified when CMSIS is being used. */ - #define configPRIO_BITS __NVIC_PRIO_BITS -#else - #define configPRIO_BITS 4 -#endif - -/* The lowest interrupt priority that can be used in a call to a "set priority" -function. */ -#define configLIBRARY_LOWEST_INTERRUPT_PRIORITY 15 - -/* The highest interrupt priority that can be used by any interrupt service -routine that makes calls to interrupt safe FreeRTOS API functions. DO NOT CALL -INTERRUPT SAFE FREERTOS API FUNCTIONS FROM ANY INTERRUPT THAT HAS A HIGHER -PRIORITY THAN THIS! (higher priorities are lower numeric values. */ -#define configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY 5 - -/* Interrupt priorities used by the kernel port layer itself. These are generic -to all Cortex-M ports, and do not rely on any particular library functions. */ -#define configKERNEL_INTERRUPT_PRIORITY ( configLIBRARY_LOWEST_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) ) -/* !!!! configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to zero !!!! -See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */ -#define configMAX_SYSCALL_INTERRUPT_PRIORITY ( configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) ) - -/* Normal assert() semantics without relying on the provision of an assert.h -header file. */ -/* USER CODE BEGIN 1 */ -#define configASSERT( x ) if ((x) == 0) {taskDISABLE_INTERRUPTS(); for( ;; );} -#define INCLUDE_uxTaskGetStackHighWaterMark 1 // To check stack usage of task -/* USER CODE END 1 */ - -/* Definitions that map the FreeRTOS port interrupt handlers to their CMSIS -standard names. */ -#define vPortSVCHandler SVC_Handler -#define xPortPendSVHandler PendSV_Handler - -/* IMPORTANT: This define is commented when used with STM32Cube firmware, when the timebase source is SysTick, - to prevent overwriting SysTick_Handler defined within STM32Cube HAL */ - -#define xPortSysTickHandler SysTick_Handler - -/* USER CODE BEGIN Defines */ -/* Section where parameter definitions can be added (for instance, to override default ones in FreeRTOS.h) */ -/* USER CODE END Defines */ - -#endif /* FREERTOS_CONFIG_H */ diff --git a/Core/Inc/main.h b/Core/Inc/main.h deleted file mode 100644 index 6444909..0000000 --- a/Core/Inc/main.h +++ /dev/null @@ -1,83 +0,0 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * @file : main.h - * @brief : Header for main.c file. - * This file contains the common defines of the application. - ****************************************************************************** - * @attention - * - * Copyright (c) 2024 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ -/* USER CODE END Header */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef __MAIN_H -#define __MAIN_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" - -/* Private includes ----------------------------------------------------------*/ -/* USER CODE BEGIN Includes */ - -/* USER CODE END Includes */ - -/* Exported types ------------------------------------------------------------*/ -/* USER CODE BEGIN ET */ - -/* USER CODE END ET */ - -/* Exported constants --------------------------------------------------------*/ -/* USER CODE BEGIN EC */ - -/* USER CODE END EC */ - -/* Exported macro ------------------------------------------------------------*/ -/* USER CODE BEGIN EM */ - -/* USER CODE END EM */ - -/* Exported functions prototypes ---------------------------------------------*/ -void Error_Handler(void); - -/* USER CODE BEGIN EFP */ - -/* USER CODE END EFP */ - -/* Private defines -----------------------------------------------------------*/ -#define mLED_Pin GPIO_PIN_15 -#define mLED_GPIO_Port GPIOA -#define SD_LED_Pin GPIO_PIN_10 -#define SD_LED_GPIO_Port GPIOE -#define sdDetect_Pin GPIO_PIN_15 -#define sdDetect_GPIO_Port GPIOB -#define VIN_IG_Pin GPIO_PIN_11 -#define VIN_IG_GPIO_Port GPIOE -#define VIN_ON_Pin GPIO_PIN_12 -#define VIN_ON_GPIO_Port GPIOE -#define PICO_EN_Pin GPIO_PIN_9 -#define PICO_EN_GPIO_Port GPIOE -#define VIN_1_4_Pin GPIO_PIN_13 -#define VIN_1_4_GPIO_Port GPIOE - -/* USER CODE BEGIN Private defines */ - -/* USER CODE END Private defines */ - -#ifdef __cplusplus -} -#endif - -#endif /* __MAIN_H */ diff --git a/Core/Inc/stm32h7xx_hal_conf.h b/Core/Inc/stm32h7xx_hal_conf.h deleted file mode 100644 index 52236ed..0000000 --- a/Core/Inc/stm32h7xx_hal_conf.h +++ /dev/null @@ -1,515 +0,0 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * @file stm32h7xx_hal_conf.h - * @author MCD Application Team - * @brief HAL configuration file. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ -/* USER CODE END Header */ -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_HAL_CONF_H -#define STM32H7xx_HAL_CONF_H - -#ifdef __cplusplus - extern "C" { -#endif - -/* Exported types ------------------------------------------------------------*/ -/* Exported constants --------------------------------------------------------*/ - -/* ########################## Module Selection ############################## */ -/** - * @brief This is the list of modules to be used in the HAL driver - */ -#define HAL_MODULE_ENABLED - - /* #define HAL_ADC_MODULE_ENABLED */ -#define HAL_FDCAN_MODULE_ENABLED -/* #define HAL_FMAC_MODULE_ENABLED */ -/* #define HAL_CEC_MODULE_ENABLED */ -/* #define HAL_COMP_MODULE_ENABLED */ -/* #define HAL_CORDIC_MODULE_ENABLED */ -/* #define HAL_CRC_MODULE_ENABLED */ -/* #define HAL_CRYP_MODULE_ENABLED */ -/* #define HAL_DAC_MODULE_ENABLED */ -/* #define HAL_DCMI_MODULE_ENABLED */ -/* #define HAL_DMA2D_MODULE_ENABLED */ -#define HAL_ETH_MODULE_ENABLED -/* #define HAL_ETH_LEGACY_MODULE_ENABLED */ -/* #define HAL_NAND_MODULE_ENABLED */ -/* #define HAL_NOR_MODULE_ENABLED */ -/* #define HAL_OTFDEC_MODULE_ENABLED */ -/* #define HAL_SRAM_MODULE_ENABLED */ -/* #define HAL_SDRAM_MODULE_ENABLED */ -/* #define HAL_HASH_MODULE_ENABLED */ -/* #define HAL_HRTIM_MODULE_ENABLED */ -/* #define HAL_HSEM_MODULE_ENABLED */ -/* #define HAL_GFXMMU_MODULE_ENABLED */ -/* #define HAL_JPEG_MODULE_ENABLED */ -/* #define HAL_OPAMP_MODULE_ENABLED */ -/* #define HAL_OSPI_MODULE_ENABLED */ -/* #define HAL_OSPI_MODULE_ENABLED */ -/* #define HAL_I2S_MODULE_ENABLED */ -/* #define HAL_SMBUS_MODULE_ENABLED */ -/* #define HAL_IWDG_MODULE_ENABLED */ -/* #define HAL_LPTIM_MODULE_ENABLED */ -/* #define HAL_LTDC_MODULE_ENABLED */ -/* #define HAL_QSPI_MODULE_ENABLED */ -/* #define HAL_RAMECC_MODULE_ENABLED */ -/* #define HAL_RNG_MODULE_ENABLED */ -/* #define HAL_RTC_MODULE_ENABLED */ -/* #define HAL_SAI_MODULE_ENABLED */ -#define HAL_SD_MODULE_ENABLED -/* #define HAL_MMC_MODULE_ENABLED */ -/* #define HAL_SPDIFRX_MODULE_ENABLED */ -/* #define HAL_SPI_MODULE_ENABLED */ -/* #define HAL_SWPMI_MODULE_ENABLED */ -#define HAL_TIM_MODULE_ENABLED -#define HAL_UART_MODULE_ENABLED -/* #define HAL_USART_MODULE_ENABLED */ -/* #define HAL_IRDA_MODULE_ENABLED */ -/* #define HAL_SMARTCARD_MODULE_ENABLED */ -/* #define HAL_WWDG_MODULE_ENABLED */ -/* #define HAL_PCD_MODULE_ENABLED */ -/* #define HAL_HCD_MODULE_ENABLED */ -/* #define HAL_DFSDM_MODULE_ENABLED */ -/* #define HAL_DSI_MODULE_ENABLED */ -/* #define HAL_JPEG_MODULE_ENABLED */ -/* #define HAL_MDIOS_MODULE_ENABLED */ -/* #define HAL_PSSI_MODULE_ENABLED */ -/* #define HAL_DTS_MODULE_ENABLED */ -#define HAL_GPIO_MODULE_ENABLED -#define HAL_DMA_MODULE_ENABLED -#define HAL_MDMA_MODULE_ENABLED -#define HAL_RCC_MODULE_ENABLED -#define HAL_FLASH_MODULE_ENABLED -#define HAL_EXTI_MODULE_ENABLED -#define HAL_PWR_MODULE_ENABLED -#define HAL_I2C_MODULE_ENABLED -#define HAL_CORTEX_MODULE_ENABLED -#define HAL_HSEM_MODULE_ENABLED - -/* ########################## Oscillator Values adaptation ####################*/ -/** - * @brief Adjust the value of External High Speed oscillator (HSE) used in your application. - * This value is used by the RCC HAL module to compute the system frequency - * (when HSE is used as system clock source, directly or through the PLL). - */ -#if !defined (HSE_VALUE) -#define HSE_VALUE (25000000UL) /*!< Value of the External oscillator in Hz : FPGA case fixed to 60MHZ */ -#endif /* HSE_VALUE */ - -#if !defined (HSE_STARTUP_TIMEOUT) - #define HSE_STARTUP_TIMEOUT (100UL) /*!< Time out for HSE start up, in ms */ -#endif /* HSE_STARTUP_TIMEOUT */ - -/** - * @brief Internal oscillator (CSI) default value. - * This value is the default CSI value after Reset. - */ -#if !defined (CSI_VALUE) - #define CSI_VALUE (4000000UL) /*!< Value of the Internal oscillator in Hz*/ -#endif /* CSI_VALUE */ - -/** - * @brief Internal High Speed oscillator (HSI) value. - * This value is used by the RCC HAL module to compute the system frequency - * (when HSI is used as system clock source, directly or through the PLL). - */ -#if !defined (HSI_VALUE) - #define HSI_VALUE (64000000UL) /*!< Value of the Internal oscillator in Hz*/ -#endif /* HSI_VALUE */ - -/** - * @brief External Low Speed oscillator (LSE) value. - * This value is used by the UART, RTC HAL module to compute the system frequency - */ -#if !defined (LSE_VALUE) - #define LSE_VALUE (32768UL) /*!< Value of the External oscillator in Hz*/ -#endif /* LSE_VALUE */ - -#if !defined (LSE_STARTUP_TIMEOUT) - #define LSE_STARTUP_TIMEOUT (5000UL) /*!< Time out for LSE start up, in ms */ -#endif /* LSE_STARTUP_TIMEOUT */ - -#if !defined (LSI_VALUE) - #define LSI_VALUE (32000UL) /*!< LSI Typical Value in Hz*/ -#endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz - The real value may vary depending on the variations - in voltage and temperature.*/ - -/** - * @brief External clock source for I2S peripheral - * This value is used by the I2S HAL module to compute the I2S clock source - * frequency, this source is inserted directly through I2S_CKIN pad. - */ -#if !defined (EXTERNAL_CLOCK_VALUE) - #define EXTERNAL_CLOCK_VALUE 12288000UL /*!< Value of the External clock in Hz*/ -#endif /* EXTERNAL_CLOCK_VALUE */ - -/* Tip: To avoid modifying this file each time you need to use different HSE, - === you can define the HSE value in your toolchain compiler preprocessor. */ - -/* ########################### System Configuration ######################### */ -/** - * @brief This is the HAL system configuration section - */ -#define VDD_VALUE (3300UL) /*!< Value of VDD in mv */ -#define TICK_INT_PRIORITY (15UL) /*!< tick interrupt priority */ -#define USE_RTOS 0 -#define USE_SD_TRANSCEIVER 0U /*!< use uSD Transceiver */ -#define USE_SPI_CRC 0U /*!< use CRC in SPI */ - -#define USE_HAL_ADC_REGISTER_CALLBACKS 0U /* ADC register callback disabled */ -#define USE_HAL_CEC_REGISTER_CALLBACKS 0U /* CEC register callback disabled */ -#define USE_HAL_COMP_REGISTER_CALLBACKS 0U /* COMP register callback disabled */ -#define USE_HAL_CORDIC_REGISTER_CALLBACKS 0U /* CORDIC register callback disabled */ -#define USE_HAL_CRYP_REGISTER_CALLBACKS 0U /* CRYP register callback disabled */ -#define USE_HAL_DAC_REGISTER_CALLBACKS 0U /* DAC register callback disabled */ -#define USE_HAL_DCMI_REGISTER_CALLBACKS 0U /* DCMI register callback disabled */ -#define USE_HAL_DFSDM_REGISTER_CALLBACKS 0U /* DFSDM register callback disabled */ -#define USE_HAL_DMA2D_REGISTER_CALLBACKS 0U /* DMA2D register callback disabled */ -#define USE_HAL_DSI_REGISTER_CALLBACKS 0U /* DSI register callback disabled */ -#define USE_HAL_DTS_REGISTER_CALLBACKS 0U /* DTS register callback disabled */ -#define USE_HAL_ETH_REGISTER_CALLBACKS 0U /* ETH register callback disabled */ -#define USE_HAL_FDCAN_REGISTER_CALLBACKS 0U /* FDCAN register callback disabled */ -#define USE_HAL_FMAC_REGISTER_CALLBACKS 0U /* FMAC register callback disabled */ -#define USE_HAL_NAND_REGISTER_CALLBACKS 0U /* NAND register callback disabled */ -#define USE_HAL_NOR_REGISTER_CALLBACKS 0U /* NOR register callback disabled */ -#define USE_HAL_SDRAM_REGISTER_CALLBACKS 0U /* SDRAM register callback disabled */ -#define USE_HAL_SRAM_REGISTER_CALLBACKS 0U /* SRAM register callback disabled */ -#define USE_HAL_HASH_REGISTER_CALLBACKS 0U /* HASH register callback disabled */ -#define USE_HAL_HCD_REGISTER_CALLBACKS 0U /* HCD register callback disabled */ -#define USE_HAL_GFXMMU_REGISTER_CALLBACKS 0U /* GFXMMU register callback disabled */ -#define USE_HAL_HRTIM_REGISTER_CALLBACKS 0U /* HRTIM register callback disabled */ -#define USE_HAL_I2C_REGISTER_CALLBACKS 0U /* I2C register callback disabled */ -#define USE_HAL_I2S_REGISTER_CALLBACKS 0U /* I2S register callback disabled */ -#define USE_HAL_IRDA_REGISTER_CALLBACKS 0U /* IRDA register callback disabled */ -#define USE_HAL_JPEG_REGISTER_CALLBACKS 0U /* JPEG register callback disabled */ -#define USE_HAL_LPTIM_REGISTER_CALLBACKS 0U /* LPTIM register callback disabled */ -#define USE_HAL_LTDC_REGISTER_CALLBACKS 0U /* LTDC register callback disabled */ -#define USE_HAL_MDIOS_REGISTER_CALLBACKS 0U /* MDIO register callback disabled */ -#define USE_HAL_MMC_REGISTER_CALLBACKS 0U /* MMC register callback disabled */ -#define USE_HAL_OPAMP_REGISTER_CALLBACKS 0U /* MDIO register callback disabled */ -#define USE_HAL_OSPI_REGISTER_CALLBACKS 0U /* OSPI register callback disabled */ -#define USE_HAL_OTFDEC_REGISTER_CALLBACKS 0U /* OTFDEC register callback disabled */ -#define USE_HAL_PCD_REGISTER_CALLBACKS 0U /* PCD register callback disabled */ -#define USE_HAL_QSPI_REGISTER_CALLBACKS 0U /* QSPI register callback disabled */ -#define USE_HAL_RNG_REGISTER_CALLBACKS 0U /* RNG register callback disabled */ -#define USE_HAL_RTC_REGISTER_CALLBACKS 0U /* RTC register callback disabled */ -#define USE_HAL_SAI_REGISTER_CALLBACKS 0U /* SAI register callback disabled */ -#define USE_HAL_SD_REGISTER_CALLBACKS 0U /* SD register callback disabled */ -#define USE_HAL_SMARTCARD_REGISTER_CALLBACKS 0U /* SMARTCARD register callback disabled */ -#define USE_HAL_SPDIFRX_REGISTER_CALLBACKS 0U /* SPDIFRX register callback disabled */ -#define USE_HAL_SMBUS_REGISTER_CALLBACKS 0U /* SMBUS register callback disabled */ -#define USE_HAL_SPI_REGISTER_CALLBACKS 0U /* SPI register callback disabled */ -#define USE_HAL_SWPMI_REGISTER_CALLBACKS 0U /* SWPMI register callback disabled */ -#define USE_HAL_TIM_REGISTER_CALLBACKS 0U /* TIM register callback disabled */ -#define USE_HAL_UART_REGISTER_CALLBACKS 0U /* UART register callback disabled */ -#define USE_HAL_USART_REGISTER_CALLBACKS 0U /* USART register callback disabled */ -#define USE_HAL_WWDG_REGISTER_CALLBACKS 0U /* WWDG register callback disabled */ - -/* ########################### Ethernet Configuration ######################### */ -#define ETH_TX_DESC_CNT 4U /* number of Ethernet Tx DMA descriptors */ -#define ETH_RX_DESC_CNT 4U /* number of Ethernet Rx DMA descriptors */ - -#define ETH_MAC_ADDR0 (0x02UL) -#define ETH_MAC_ADDR1 (0x00UL) -#define ETH_MAC_ADDR2 (0x00UL) -#define ETH_MAC_ADDR3 (0x00UL) -#define ETH_MAC_ADDR4 (0x00UL) -#define ETH_MAC_ADDR5 (0x00UL) - -/* ########################## Assert Selection ############################## */ -/** - * @brief Uncomment the line below to expanse the "assert_param" macro in the - * HAL drivers code - */ -/* #define USE_FULL_ASSERT 1U */ - -/* Includes ------------------------------------------------------------------*/ -/** - * @brief Include module's header file - */ - -#ifdef HAL_RCC_MODULE_ENABLED - #include "stm32h7xx_hal_rcc.h" -#endif /* HAL_RCC_MODULE_ENABLED */ - -#ifdef HAL_GPIO_MODULE_ENABLED - #include "stm32h7xx_hal_gpio.h" -#endif /* HAL_GPIO_MODULE_ENABLED */ - -#ifdef HAL_DMA_MODULE_ENABLED - #include "stm32h7xx_hal_dma.h" -#endif /* HAL_DMA_MODULE_ENABLED */ - -#ifdef HAL_MDMA_MODULE_ENABLED - #include "stm32h7xx_hal_mdma.h" -#endif /* HAL_MDMA_MODULE_ENABLED */ - -#ifdef HAL_HASH_MODULE_ENABLED - #include "stm32h7xx_hal_hash.h" -#endif /* HAL_HASH_MODULE_ENABLED */ - -#ifdef HAL_DCMI_MODULE_ENABLED - #include "stm32h7xx_hal_dcmi.h" -#endif /* HAL_DCMI_MODULE_ENABLED */ - -#ifdef HAL_DMA2D_MODULE_ENABLED - #include "stm32h7xx_hal_dma2d.h" -#endif /* HAL_DMA2D_MODULE_ENABLED */ - -#ifdef HAL_DSI_MODULE_ENABLED - #include "stm32h7xx_hal_dsi.h" -#endif /* HAL_DSI_MODULE_ENABLED */ - -#ifdef HAL_DFSDM_MODULE_ENABLED - #include "stm32h7xx_hal_dfsdm.h" -#endif /* HAL_DFSDM_MODULE_ENABLED */ - -#ifdef HAL_DTS_MODULE_ENABLED - #include "stm32h7xx_hal_dts.h" -#endif /* HAL_DTS_MODULE_ENABLED */ - -#ifdef HAL_ETH_MODULE_ENABLED - #include "stm32h7xx_hal_eth.h" -#endif /* HAL_ETH_MODULE_ENABLED */ - -#ifdef HAL_ETH_LEGACY_MODULE_ENABLED - #include "stm32h7xx_hal_eth_legacy.h" -#endif /* HAL_ETH_LEGACY_MODULE_ENABLED */ - -#ifdef HAL_EXTI_MODULE_ENABLED - #include "stm32h7xx_hal_exti.h" -#endif /* HAL_EXTI_MODULE_ENABLED */ - -#ifdef HAL_CORTEX_MODULE_ENABLED - #include "stm32h7xx_hal_cortex.h" -#endif /* HAL_CORTEX_MODULE_ENABLED */ - -#ifdef HAL_ADC_MODULE_ENABLED - #include "stm32h7xx_hal_adc.h" -#endif /* HAL_ADC_MODULE_ENABLED */ - -#ifdef HAL_FDCAN_MODULE_ENABLED - #include "stm32h7xx_hal_fdcan.h" -#endif /* HAL_FDCAN_MODULE_ENABLED */ - -#ifdef HAL_CEC_MODULE_ENABLED - #include "stm32h7xx_hal_cec.h" -#endif /* HAL_CEC_MODULE_ENABLED */ - -#ifdef HAL_COMP_MODULE_ENABLED - #include "stm32h7xx_hal_comp.h" -#endif /* HAL_COMP_MODULE_ENABLED */ - -#ifdef HAL_CORDIC_MODULE_ENABLED - #include "stm32h7xx_hal_cordic.h" -#endif /* HAL_CORDIC_MODULE_ENABLED */ - -#ifdef HAL_CRC_MODULE_ENABLED - #include "stm32h7xx_hal_crc.h" -#endif /* HAL_CRC_MODULE_ENABLED */ - -#ifdef HAL_CRYP_MODULE_ENABLED - #include "stm32h7xx_hal_cryp.h" -#endif /* HAL_CRYP_MODULE_ENABLED */ - -#ifdef HAL_DAC_MODULE_ENABLED - #include "stm32h7xx_hal_dac.h" -#endif /* HAL_DAC_MODULE_ENABLED */ - -#ifdef HAL_FLASH_MODULE_ENABLED - #include "stm32h7xx_hal_flash.h" -#endif /* HAL_FLASH_MODULE_ENABLED */ - -#ifdef HAL_GFXMMU_MODULE_ENABLED - #include "stm32h7xx_hal_gfxmmu.h" -#endif /* HAL_GFXMMU_MODULE_ENABLED */ - -#ifdef HAL_FMAC_MODULE_ENABLED - #include "stm32h7xx_hal_fmac.h" -#endif /* HAL_FMAC_MODULE_ENABLED */ - -#ifdef HAL_HRTIM_MODULE_ENABLED - #include "stm32h7xx_hal_hrtim.h" -#endif /* HAL_HRTIM_MODULE_ENABLED */ - -#ifdef HAL_HSEM_MODULE_ENABLED - #include "stm32h7xx_hal_hsem.h" -#endif /* HAL_HSEM_MODULE_ENABLED */ - -#ifdef HAL_SRAM_MODULE_ENABLED - #include "stm32h7xx_hal_sram.h" -#endif /* HAL_SRAM_MODULE_ENABLED */ - -#ifdef HAL_NOR_MODULE_ENABLED - #include "stm32h7xx_hal_nor.h" -#endif /* HAL_NOR_MODULE_ENABLED */ - -#ifdef HAL_NAND_MODULE_ENABLED - #include "stm32h7xx_hal_nand.h" -#endif /* HAL_NAND_MODULE_ENABLED */ - -#ifdef HAL_I2C_MODULE_ENABLED - #include "stm32h7xx_hal_i2c.h" -#endif /* HAL_I2C_MODULE_ENABLED */ - -#ifdef HAL_I2S_MODULE_ENABLED - #include "stm32h7xx_hal_i2s.h" -#endif /* HAL_I2S_MODULE_ENABLED */ - -#ifdef HAL_IWDG_MODULE_ENABLED - #include "stm32h7xx_hal_iwdg.h" -#endif /* HAL_IWDG_MODULE_ENABLED */ - -#ifdef HAL_JPEG_MODULE_ENABLED - #include "stm32h7xx_hal_jpeg.h" -#endif /* HAL_JPEG_MODULE_ENABLED */ - -#ifdef HAL_MDIOS_MODULE_ENABLED - #include "stm32h7xx_hal_mdios.h" -#endif /* HAL_MDIOS_MODULE_ENABLED */ - -#ifdef HAL_MMC_MODULE_ENABLED - #include "stm32h7xx_hal_mmc.h" -#endif /* HAL_MMC_MODULE_ENABLED */ - -#ifdef HAL_LPTIM_MODULE_ENABLED -#include "stm32h7xx_hal_lptim.h" -#endif /* HAL_LPTIM_MODULE_ENABLED */ - -#ifdef HAL_LTDC_MODULE_ENABLED -#include "stm32h7xx_hal_ltdc.h" -#endif /* HAL_LTDC_MODULE_ENABLED */ - -#ifdef HAL_OPAMP_MODULE_ENABLED -#include "stm32h7xx_hal_opamp.h" -#endif /* HAL_OPAMP_MODULE_ENABLED */ - -#ifdef HAL_OSPI_MODULE_ENABLED - #include "stm32h7xx_hal_ospi.h" -#endif /* HAL_OSPI_MODULE_ENABLED */ - -#ifdef HAL_OTFDEC_MODULE_ENABLED -#include "stm32h7xx_hal_otfdec.h" -#endif /* HAL_OTFDEC_MODULE_ENABLED */ - -#ifdef HAL_PSSI_MODULE_ENABLED - #include "stm32h7xx_hal_pssi.h" -#endif /* HAL_PSSI_MODULE_ENABLED */ - -#ifdef HAL_PWR_MODULE_ENABLED - #include "stm32h7xx_hal_pwr.h" -#endif /* HAL_PWR_MODULE_ENABLED */ - -#ifdef HAL_QSPI_MODULE_ENABLED - #include "stm32h7xx_hal_qspi.h" -#endif /* HAL_QSPI_MODULE_ENABLED */ - -#ifdef HAL_RAMECC_MODULE_ENABLED - #include "stm32h7xx_hal_ramecc.h" -#endif /* HAL_RAMECC_MODULE_ENABLED */ - -#ifdef HAL_RNG_MODULE_ENABLED - #include "stm32h7xx_hal_rng.h" -#endif /* HAL_RNG_MODULE_ENABLED */ - -#ifdef HAL_RTC_MODULE_ENABLED - #include "stm32h7xx_hal_rtc.h" -#endif /* HAL_RTC_MODULE_ENABLED */ - -#ifdef HAL_SAI_MODULE_ENABLED - #include "stm32h7xx_hal_sai.h" -#endif /* HAL_SAI_MODULE_ENABLED */ - -#ifdef HAL_SD_MODULE_ENABLED - #include "stm32h7xx_hal_sd.h" -#endif /* HAL_SD_MODULE_ENABLED */ - -#ifdef HAL_SDRAM_MODULE_ENABLED - #include "stm32h7xx_hal_sdram.h" -#endif /* HAL_SDRAM_MODULE_ENABLED */ - -#ifdef HAL_SPI_MODULE_ENABLED - #include "stm32h7xx_hal_spi.h" -#endif /* HAL_SPI_MODULE_ENABLED */ - -#ifdef HAL_SPDIFRX_MODULE_ENABLED - #include "stm32h7xx_hal_spdifrx.h" -#endif /* HAL_SPDIFRX_MODULE_ENABLED */ - -#ifdef HAL_SWPMI_MODULE_ENABLED - #include "stm32h7xx_hal_swpmi.h" -#endif /* HAL_SWPMI_MODULE_ENABLED */ - -#ifdef HAL_TIM_MODULE_ENABLED - #include "stm32h7xx_hal_tim.h" -#endif /* HAL_TIM_MODULE_ENABLED */ - -#ifdef HAL_UART_MODULE_ENABLED - #include "stm32h7xx_hal_uart.h" -#endif /* HAL_UART_MODULE_ENABLED */ - -#ifdef HAL_USART_MODULE_ENABLED - #include "stm32h7xx_hal_usart.h" -#endif /* HAL_USART_MODULE_ENABLED */ - -#ifdef HAL_IRDA_MODULE_ENABLED - #include "stm32h7xx_hal_irda.h" -#endif /* HAL_IRDA_MODULE_ENABLED */ - -#ifdef HAL_SMARTCARD_MODULE_ENABLED - #include "stm32h7xx_hal_smartcard.h" -#endif /* HAL_SMARTCARD_MODULE_ENABLED */ - -#ifdef HAL_SMBUS_MODULE_ENABLED - #include "stm32h7xx_hal_smbus.h" -#endif /* HAL_SMBUS_MODULE_ENABLED */ - -#ifdef HAL_WWDG_MODULE_ENABLED - #include "stm32h7xx_hal_wwdg.h" -#endif /* HAL_WWDG_MODULE_ENABLED */ - -#ifdef HAL_PCD_MODULE_ENABLED - #include "stm32h7xx_hal_pcd.h" -#endif /* HAL_PCD_MODULE_ENABLED */ - -#ifdef HAL_HCD_MODULE_ENABLED - #include "stm32h7xx_hal_hcd.h" -#endif /* HAL_HCD_MODULE_ENABLED */ - -/* Exported macro ------------------------------------------------------------*/ -#ifdef USE_FULL_ASSERT -/** - * @brief The assert_param macro is used for function's parameters check. - * @param expr: If expr is false, it calls assert_failed function - * which reports the name of the source file and the source - * line number of the call that failed. - * If expr is true, it returns no value. - * @retval None - */ - #define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__)) -/* Exported functions ------------------------------------------------------- */ - void assert_failed(uint8_t *file, uint32_t line); -#else - #define assert_param(expr) ((void)0U) -#endif /* USE_FULL_ASSERT */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_HAL_CONF_H */ diff --git a/Core/Inc/stm32h7xx_it.h b/Core/Inc/stm32h7xx_it.h deleted file mode 100644 index eeb2401..0000000 --- a/Core/Inc/stm32h7xx_it.h +++ /dev/null @@ -1,71 +0,0 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * @file stm32h7xx_it.h - * @brief This file contains the headers of the interrupt handlers. - ****************************************************************************** - * @attention - * - * Copyright (c) 2024 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ -/* USER CODE END Header */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef __STM32H7xx_IT_H -#define __STM32H7xx_IT_H - -#ifdef __cplusplus - extern "C" { -#endif - -/* Private includes ----------------------------------------------------------*/ -/* USER CODE BEGIN Includes */ - -/* USER CODE END Includes */ - -/* Exported types ------------------------------------------------------------*/ -/* USER CODE BEGIN ET */ - -/* USER CODE END ET */ - -/* Exported constants --------------------------------------------------------*/ -/* USER CODE BEGIN EC */ - -/* USER CODE END EC */ - -/* Exported macro ------------------------------------------------------------*/ -/* USER CODE BEGIN EM */ - -/* USER CODE END EM */ - -/* Exported functions prototypes ---------------------------------------------*/ -void NMI_Handler(void); -void HardFault_Handler(void); -void MemManage_Handler(void); -void BusFault_Handler(void); -void UsageFault_Handler(void); -void DebugMon_Handler(void); -void DMA1_Stream0_IRQHandler(void); -void FDCAN1_IT0_IRQHandler(void); -void FDCAN2_IT0_IRQHandler(void); -void SDMMC1_IRQHandler(void); -void TIM6_DAC_IRQHandler(void); -void ETH_IRQHandler(void); -void MDMA_IRQHandler(void); -void FDCAN3_IT0_IRQHandler(void); -/* USER CODE BEGIN EFP */ - -/* USER CODE END EFP */ - -#ifdef __cplusplus -} -#endif - -#endif /* __STM32H7xx_IT_H */ diff --git a/Core/Src/freertos.c b/Core/Src/freertos.c deleted file mode 100644 index bfab709..0000000 --- a/Core/Src/freertos.c +++ /dev/null @@ -1,102 +0,0 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * File Name : freertos.c - * Description : Code for freertos applications - ****************************************************************************** - * @attention - * - * Copyright (c) 2024 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ -/* USER CODE END Header */ - -/* Includes ------------------------------------------------------------------*/ -#include "FreeRTOS.h" -#include "task.h" -#include "main.h" - -/* Private includes ----------------------------------------------------------*/ -/* USER CODE BEGIN Includes */ - -/* USER CODE END Includes */ - -/* Private typedef -----------------------------------------------------------*/ -/* USER CODE BEGIN PTD */ - -/* USER CODE END PTD */ - -/* Private define ------------------------------------------------------------*/ -/* USER CODE BEGIN PD */ - -/* USER CODE END PD */ - -/* Private macro -------------------------------------------------------------*/ -/* USER CODE BEGIN PM */ - -/* USER CODE END PM */ - -/* Private variables ---------------------------------------------------------*/ -/* USER CODE BEGIN Variables */ - -/* USER CODE END Variables */ - -/* Private function prototypes -----------------------------------------------*/ -/* USER CODE BEGIN FunctionPrototypes */ - -/* USER CODE END FunctionPrototypes */ - -/* GetIdleTaskMemory prototype (linked to static allocation support) */ -void vApplicationGetIdleTaskMemory( StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize ); - -/* GetTimerTaskMemory prototype (linked to static allocation support) */ -void vApplicationGetTimerTaskMemory( StaticTask_t **ppxTimerTaskTCBBuffer, StackType_t **ppxTimerTaskStackBuffer, uint32_t *pulTimerTaskStackSize ); - -/* Hook prototypes */ -void vApplicationStackOverflowHook(xTaskHandle xTask, signed char *pcTaskName); - -/* USER CODE BEGIN 4 */ -__weak void vApplicationStackOverflowHook(xTaskHandle xTask, signed char *pcTaskName) -{ - /* Run time stack overflow checking is performed if - configCHECK_FOR_STACK_OVERFLOW is defined to 1 or 2. This hook function is - called if a stack overflow is detected. */ -} -/* USER CODE END 4 */ - -/* USER CODE BEGIN GET_IDLE_TASK_MEMORY */ -static StaticTask_t xIdleTaskTCBBuffer; -static StackType_t xIdleStack[configMINIMAL_STACK_SIZE]; - -void vApplicationGetIdleTaskMemory( StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize ) -{ - *ppxIdleTaskTCBBuffer = &xIdleTaskTCBBuffer; - *ppxIdleTaskStackBuffer = &xIdleStack[0]; - *pulIdleTaskStackSize = configMINIMAL_STACK_SIZE; - /* place for user code */ -} -/* USER CODE END GET_IDLE_TASK_MEMORY */ - -/* USER CODE BEGIN GET_TIMER_TASK_MEMORY */ -static StaticTask_t xTimerTaskTCBBuffer; -static StackType_t xTimerStack[configTIMER_TASK_STACK_DEPTH]; - -void vApplicationGetTimerTaskMemory( StaticTask_t **ppxTimerTaskTCBBuffer, StackType_t **ppxTimerTaskStackBuffer, uint32_t *pulTimerTaskStackSize ) -{ - *ppxTimerTaskTCBBuffer = &xTimerTaskTCBBuffer; - *ppxTimerTaskStackBuffer = &xTimerStack[0]; - *pulTimerTaskStackSize = configTIMER_TASK_STACK_DEPTH; - /* place for user code */ -} -/* USER CODE END GET_TIMER_TASK_MEMORY */ - -/* Private application code --------------------------------------------------*/ -/* USER CODE BEGIN Application */ - -/* USER CODE END Application */ diff --git a/Core/Src/main.c b/Core/Src/main.c deleted file mode 100644 index c8f82ee..0000000 --- a/Core/Src/main.c +++ /dev/null @@ -1,958 +0,0 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * @file : main.c - * @brief : Main program body - ****************************************************************************** - * @attention - * - * Copyright (c) 2024 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ -/* USER CODE END Header */ -/* Includes ------------------------------------------------------------------*/ -#include "main.h" -#include "cmsis_os.h" -#include "fatfs.h" -#include "lwip.h" - -/* Private includes ----------------------------------------------------------*/ -/* USER CODE BEGIN Includes */ -#include -#include -#include "lwip/api.h" -#include "lwftpc.h" -/* USER CODE END Includes */ - -/* Private typedef -----------------------------------------------------------*/ -/* USER CODE BEGIN PTD */ - -/* USER CODE END PTD */ - -/* Private define ------------------------------------------------------------*/ -/* USER CODE BEGIN PD */ - -/* USER CODE END PD */ - -/* Private macro -------------------------------------------------------------*/ -/* USER CODE BEGIN PM */ - -/* USER CODE END PM */ - -/* Private variables ---------------------------------------------------------*/ - -FDCAN_HandleTypeDef hfdcan1; -FDCAN_HandleTypeDef hfdcan2; -FDCAN_HandleTypeDef hfdcan3; - -SD_HandleTypeDef hsd1; - -TIM_HandleTypeDef htim3; - -UART_HandleTypeDef huart4; -UART_HandleTypeDef huart7; -UART_HandleTypeDef huart8; -DMA_HandleTypeDef hdma_uart8_rx; - -MDMA_HandleTypeDef hmdma_mdma_channel0_sdmmc1_end_data_0; -osThreadId defaultTaskHandle; -uint32_t defaultTaskBuffer[ 4096 ]; -osStaticThreadDef_t defaultTaskControlBlock; -osThreadId debugTaskHandle; -uint32_t debugTaskBuffer[ 2048 ]; -osStaticThreadDef_t debugTaskControlBlock; -/* USER CODE BEGIN PV */ -#define FTPSemaphore 0 -static lwftp_session_t s; -sys_sem_t ftpsem; -uint8_t CLI_IP[4] = { 192, 168, 0, 120 }; // client addr -uint8_t SVR_IP[4] = { 192, 168, 0, 100 }; // server addr -u16_t SVR_PORT = 21; -char *USER = "anonymous"; -char *PASS = "email@example.com"; - -/* USER CODE END PV */ - -/* Private function prototypes -----------------------------------------------*/ -void SystemClock_Config(void); -static void MPU_Config(void); -static void MX_GPIO_Init(void); -static void MX_DMA_Init(void); -static void MX_MDMA_Init(void); -static void MX_FDCAN3_Init(void); -static void MX_SDMMC1_SD_Init(void); -static void MX_TIM3_Init(void); -static void MX_UART4_Init(void); -static void MX_UART7_Init(void); -static void MX_FDCAN1_Init(void); -static void MX_FDCAN2_Init(void); -static void MX_UART8_Init(void); -void StartDefaultTask(void const * argument); -void StartDebugTask(void const * argument); - -/* USER CODE BEGIN PFP */ -// Function to send the data to the server -void lwftp_init(void); - -/* USER CODE END PFP */ - -/* Private user code ---------------------------------------------------------*/ -/* USER CODE BEGIN 0 */ -int _write(int32_t file, uint8_t *ptr, int32_t len) { - for (int32_t i = 0; i < len; ++i) - ITM_SendChar(*ptr++); - return len; -} -/* USER CODE END 0 */ - -/** - * @brief The application entry point. - * @retval int - */ -int main(void) -{ - /* USER CODE BEGIN 1 */ - - /* USER CODE END 1 */ - - /* MPU Configuration--------------------------------------------------------*/ - MPU_Config(); -/* Enable the CPU Cache */ - - /* Enable I-Cache---------------------------------------------------------*/ - SCB_EnableICache(); - - /* Enable D-Cache---------------------------------------------------------*/ - SCB_EnableDCache(); - - /* MCU Configuration--------------------------------------------------------*/ - - /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ - HAL_Init(); - - /* USER CODE BEGIN Init */ - - /* USER CODE END Init */ - - /* Configure the system clock */ - SystemClock_Config(); - - /* USER CODE BEGIN SysInit */ - - /* USER CODE END SysInit */ - - /* Initialize all configured peripherals */ - MX_GPIO_Init(); - MX_DMA_Init(); - MX_MDMA_Init(); - MX_FDCAN3_Init(); - MX_SDMMC1_SD_Init(); - MX_TIM3_Init(); - MX_UART4_Init(); - MX_UART7_Init(); - MX_FDCAN1_Init(); - MX_FDCAN2_Init(); - MX_FATFS_Init(); - MX_UART8_Init(); - /* USER CODE BEGIN 2 */ -#define RTOS_MODE 1 -#if RTOS_MODE - /* USER CODE END 2 */ - - /* USER CODE BEGIN RTOS_MUTEX */ - /* add mutexes, ... */ - /* USER CODE END RTOS_MUTEX */ - - /* USER CODE BEGIN RTOS_SEMAPHORES */ - /* add semaphores, ... */ - /* USER CODE END RTOS_SEMAPHORES */ - - /* USER CODE BEGIN RTOS_TIMERS */ - /* start timers, add new ones, ... */ - /* USER CODE END RTOS_TIMERS */ - - /* USER CODE BEGIN RTOS_QUEUES */ - /* add queues, ... */ - /* USER CODE END RTOS_QUEUES */ - - /* Create the thread(s) */ - /* definition and creation of defaultTask */ - osThreadStaticDef(defaultTask, StartDefaultTask, osPriorityNormal, 0, 4096, defaultTaskBuffer, &defaultTaskControlBlock); - defaultTaskHandle = osThreadCreate(osThread(defaultTask), NULL); - - /* definition and creation of debugTask */ - osThreadStaticDef(debugTask, StartDebugTask, osPriorityNormal, 0, 2048, debugTaskBuffer, &debugTaskControlBlock); - debugTaskHandle = osThreadCreate(osThread(debugTask), NULL); - - /* USER CODE BEGIN RTOS_THREADS */ - /* add threads, ... */ - /* USER CODE END RTOS_THREADS */ - - /* Start scheduler */ - osKernelStart(); - - /* We should never get here as control is now taken by the scheduler */ - /* Infinite loop */ - /* USER CODE BEGIN WHILE */ -#else - - MX_LWIP_Init(); - while (1) { - MX_LWIP_Process(); - - /* USER CODE END WHILE */ - - /* USER CODE BEGIN 3 */ - } -#endif - /* USER CODE END 3 */ -} - -/** - * @brief System Clock Configuration - * @retval None - */ -void SystemClock_Config(void) -{ - RCC_OscInitTypeDef RCC_OscInitStruct = {0}; - RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; - - /** Supply configuration update enable - */ - HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY); - - /** Configure the main internal regulator output voltage - */ - __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE0); - - while(!__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY)) {} - - /** Initializes the RCC Oscillators according to the specified parameters - * in the RCC_OscInitTypeDef structure. - */ - RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE; - RCC_OscInitStruct.HSEState = RCC_HSE_ON; - RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; - RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE; - RCC_OscInitStruct.PLL.PLLM = 5; - RCC_OscInitStruct.PLL.PLLN = 96; - RCC_OscInitStruct.PLL.PLLP = 1; - RCC_OscInitStruct.PLL.PLLQ = 4; - RCC_OscInitStruct.PLL.PLLR = 2; - RCC_OscInitStruct.PLL.PLLRGE = RCC_PLL1VCIRANGE_2; - RCC_OscInitStruct.PLL.PLLVCOSEL = RCC_PLL1VCOWIDE; - RCC_OscInitStruct.PLL.PLLFRACN = 0; - if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) - { - Error_Handler(); - } - - /** Initializes the CPU, AHB and APB buses clocks - */ - RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK - |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2 - |RCC_CLOCKTYPE_D3PCLK1|RCC_CLOCKTYPE_D1PCLK1; - RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; - RCC_ClkInitStruct.SYSCLKDivider = RCC_SYSCLK_DIV1; - RCC_ClkInitStruct.AHBCLKDivider = RCC_HCLK_DIV2; - RCC_ClkInitStruct.APB3CLKDivider = RCC_APB3_DIV2; - RCC_ClkInitStruct.APB1CLKDivider = RCC_APB1_DIV2; - RCC_ClkInitStruct.APB2CLKDivider = RCC_APB2_DIV2; - RCC_ClkInitStruct.APB4CLKDivider = RCC_APB4_DIV2; - - if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_3) != HAL_OK) - { - Error_Handler(); - } -} - -/** - * @brief FDCAN1 Initialization Function - * @param None - * @retval None - */ -static void MX_FDCAN1_Init(void) -{ - - /* USER CODE BEGIN FDCAN1_Init 0 */ - - /* USER CODE END FDCAN1_Init 0 */ - - /* USER CODE BEGIN FDCAN1_Init 1 */ - - /* USER CODE END FDCAN1_Init 1 */ - hfdcan1.Instance = FDCAN1; - hfdcan1.Init.FrameFormat = FDCAN_FRAME_FD_BRS; - hfdcan1.Init.Mode = FDCAN_MODE_NORMAL; - hfdcan1.Init.AutoRetransmission = DISABLE; - hfdcan1.Init.TransmitPause = DISABLE; - hfdcan1.Init.ProtocolException = DISABLE; - hfdcan1.Init.NominalPrescaler = 6; - hfdcan1.Init.NominalSyncJumpWidth = 4; - hfdcan1.Init.NominalTimeSeg1 = 29; - hfdcan1.Init.NominalTimeSeg2 = 10; - hfdcan1.Init.DataPrescaler = 4; - hfdcan1.Init.DataSyncJumpWidth = 4; - hfdcan1.Init.DataTimeSeg1 = 11; - hfdcan1.Init.DataTimeSeg2 = 3; - hfdcan1.Init.MessageRAMOffset = 0; - hfdcan1.Init.StdFiltersNbr = 0; - hfdcan1.Init.ExtFiltersNbr = 0; - hfdcan1.Init.RxFifo0ElmtsNbr = 8; - hfdcan1.Init.RxFifo0ElmtSize = FDCAN_DATA_BYTES_64; - hfdcan1.Init.RxFifo1ElmtsNbr = 0; - hfdcan1.Init.RxFifo1ElmtSize = FDCAN_DATA_BYTES_64; - hfdcan1.Init.RxBuffersNbr = 0; - hfdcan1.Init.RxBufferSize = FDCAN_DATA_BYTES_64; - hfdcan1.Init.TxEventsNbr = 8; - hfdcan1.Init.TxBuffersNbr = 0; - hfdcan1.Init.TxFifoQueueElmtsNbr = 8; - hfdcan1.Init.TxFifoQueueMode = FDCAN_TX_FIFO_OPERATION; - hfdcan1.Init.TxElmtSize = FDCAN_DATA_BYTES_64; - if (HAL_FDCAN_Init(&hfdcan1) != HAL_OK) - { - Error_Handler(); - } - /* USER CODE BEGIN FDCAN1_Init 2 */ - - /* USER CODE END FDCAN1_Init 2 */ - -} - -/** - * @brief FDCAN2 Initialization Function - * @param None - * @retval None - */ -static void MX_FDCAN2_Init(void) -{ - - /* USER CODE BEGIN FDCAN2_Init 0 */ - - /* USER CODE END FDCAN2_Init 0 */ - - /* USER CODE BEGIN FDCAN2_Init 1 */ - - /* USER CODE END FDCAN2_Init 1 */ - hfdcan2.Instance = FDCAN2; - hfdcan2.Init.FrameFormat = FDCAN_FRAME_FD_BRS; - hfdcan2.Init.Mode = FDCAN_MODE_NORMAL; - hfdcan2.Init.AutoRetransmission = DISABLE; - hfdcan2.Init.TransmitPause = DISABLE; - hfdcan2.Init.ProtocolException = DISABLE; - hfdcan2.Init.NominalPrescaler = 6; - hfdcan2.Init.NominalSyncJumpWidth = 4; - hfdcan2.Init.NominalTimeSeg1 = 29; - hfdcan2.Init.NominalTimeSeg2 = 10; - hfdcan2.Init.DataPrescaler = 4; - hfdcan2.Init.DataSyncJumpWidth = 4; - hfdcan2.Init.DataTimeSeg1 = 11; - hfdcan2.Init.DataTimeSeg2 = 3; - hfdcan2.Init.MessageRAMOffset = 512; - hfdcan2.Init.StdFiltersNbr = 0; - hfdcan2.Init.ExtFiltersNbr = 0; - hfdcan2.Init.RxFifo0ElmtsNbr = 8; - hfdcan2.Init.RxFifo0ElmtSize = FDCAN_DATA_BYTES_64; - hfdcan2.Init.RxFifo1ElmtsNbr = 0; - hfdcan2.Init.RxFifo1ElmtSize = FDCAN_DATA_BYTES_64; - hfdcan2.Init.RxBuffersNbr = 0; - hfdcan2.Init.RxBufferSize = FDCAN_DATA_BYTES_64; - hfdcan2.Init.TxEventsNbr = 8; - hfdcan2.Init.TxBuffersNbr = 0; - hfdcan2.Init.TxFifoQueueElmtsNbr = 8; - hfdcan2.Init.TxFifoQueueMode = FDCAN_TX_FIFO_OPERATION; - hfdcan2.Init.TxElmtSize = FDCAN_DATA_BYTES_64; - if (HAL_FDCAN_Init(&hfdcan2) != HAL_OK) - { - Error_Handler(); - } - /* USER CODE BEGIN FDCAN2_Init 2 */ - - /* USER CODE END FDCAN2_Init 2 */ - -} - -/** - * @brief FDCAN3 Initialization Function - * @param None - * @retval None - */ -static void MX_FDCAN3_Init(void) -{ - - /* USER CODE BEGIN FDCAN3_Init 0 */ - - /* USER CODE END FDCAN3_Init 0 */ - - /* USER CODE BEGIN FDCAN3_Init 1 */ - - /* USER CODE END FDCAN3_Init 1 */ - hfdcan3.Instance = FDCAN3; - hfdcan3.Init.FrameFormat = FDCAN_FRAME_FD_BRS; - hfdcan3.Init.Mode = FDCAN_MODE_NORMAL; - hfdcan3.Init.AutoRetransmission = DISABLE; - hfdcan3.Init.TransmitPause = DISABLE; - hfdcan3.Init.ProtocolException = DISABLE; - hfdcan3.Init.NominalPrescaler = 6; - hfdcan3.Init.NominalSyncJumpWidth = 4; - hfdcan3.Init.NominalTimeSeg1 = 29; - hfdcan3.Init.NominalTimeSeg2 = 10; - hfdcan3.Init.DataPrescaler = 4; - hfdcan3.Init.DataSyncJumpWidth = 4; - hfdcan3.Init.DataTimeSeg1 = 11; - hfdcan3.Init.DataTimeSeg2 = 3; - hfdcan3.Init.MessageRAMOffset = 1024; - hfdcan3.Init.StdFiltersNbr = 0; - hfdcan3.Init.ExtFiltersNbr = 0; - hfdcan3.Init.RxFifo0ElmtsNbr = 8; - hfdcan3.Init.RxFifo0ElmtSize = FDCAN_DATA_BYTES_64; - hfdcan3.Init.RxFifo1ElmtsNbr = 0; - hfdcan3.Init.RxFifo1ElmtSize = FDCAN_DATA_BYTES_64; - hfdcan3.Init.RxBuffersNbr = 0; - hfdcan3.Init.RxBufferSize = FDCAN_DATA_BYTES_64; - hfdcan3.Init.TxEventsNbr = 8; - hfdcan3.Init.TxBuffersNbr = 0; - hfdcan3.Init.TxFifoQueueElmtsNbr = 8; - hfdcan3.Init.TxFifoQueueMode = FDCAN_TX_FIFO_OPERATION; - hfdcan3.Init.TxElmtSize = FDCAN_DATA_BYTES_64; - if (HAL_FDCAN_Init(&hfdcan3) != HAL_OK) - { - Error_Handler(); - } - /* USER CODE BEGIN FDCAN3_Init 2 */ - - /* USER CODE END FDCAN3_Init 2 */ - -} - -/** - * @brief SDMMC1 Initialization Function - * @param None - * @retval None - */ -static void MX_SDMMC1_SD_Init(void) -{ - - /* USER CODE BEGIN SDMMC1_Init 0 */ - - /* USER CODE END SDMMC1_Init 0 */ - - /* USER CODE BEGIN SDMMC1_Init 1 */ - - /* USER CODE END SDMMC1_Init 1 */ - hsd1.Instance = SDMMC1; - hsd1.Init.ClockEdge = SDMMC_CLOCK_EDGE_RISING; - hsd1.Init.ClockPowerSave = SDMMC_CLOCK_POWER_SAVE_DISABLE; - hsd1.Init.BusWide = SDMMC_BUS_WIDE_4B; - hsd1.Init.HardwareFlowControl = SDMMC_HARDWARE_FLOW_CONTROL_ENABLE; - hsd1.Init.ClockDiv = 1; - /* USER CODE BEGIN SDMMC1_Init 2 */ - - /* USER CODE END SDMMC1_Init 2 */ - -} - -/** - * @brief TIM3 Initialization Function - * @param None - * @retval None - */ -static void MX_TIM3_Init(void) -{ - - /* USER CODE BEGIN TIM3_Init 0 */ - - /* USER CODE END TIM3_Init 0 */ - - TIM_ClockConfigTypeDef sClockSourceConfig = {0}; - TIM_MasterConfigTypeDef sMasterConfig = {0}; - - /* USER CODE BEGIN TIM3_Init 1 */ - - /* USER CODE END TIM3_Init 1 */ - htim3.Instance = TIM3; - htim3.Init.Prescaler = 119; - htim3.Init.CounterMode = TIM_COUNTERMODE_UP; - htim3.Init.Period = 65535; - htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; - htim3.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; - if (HAL_TIM_Base_Init(&htim3) != HAL_OK) - { - Error_Handler(); - } - sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL; - if (HAL_TIM_ConfigClockSource(&htim3, &sClockSourceConfig) != HAL_OK) - { - Error_Handler(); - } - sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; - sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; - if (HAL_TIMEx_MasterConfigSynchronization(&htim3, &sMasterConfig) != HAL_OK) - { - Error_Handler(); - } - /* USER CODE BEGIN TIM3_Init 2 */ - - /* USER CODE END TIM3_Init 2 */ - -} - -/** - * @brief UART4 Initialization Function - * @param None - * @retval None - */ -static void MX_UART4_Init(void) -{ - - /* USER CODE BEGIN UART4_Init 0 */ - - /* USER CODE END UART4_Init 0 */ - - /* USER CODE BEGIN UART4_Init 1 */ - - /* USER CODE END UART4_Init 1 */ - huart4.Instance = UART4; - huart4.Init.BaudRate = 9600; - huart4.Init.WordLength = UART_WORDLENGTH_8B; - huart4.Init.StopBits = UART_STOPBITS_1; - huart4.Init.Parity = UART_PARITY_NONE; - huart4.Init.Mode = UART_MODE_TX_RX; - huart4.Init.HwFlowCtl = UART_HWCONTROL_NONE; - huart4.Init.OverSampling = UART_OVERSAMPLING_16; - huart4.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE; - huart4.Init.ClockPrescaler = UART_PRESCALER_DIV1; - huart4.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT; - if (HAL_UART_Init(&huart4) != HAL_OK) - { - Error_Handler(); - } - if (HAL_UARTEx_SetTxFifoThreshold(&huart4, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK) - { - Error_Handler(); - } - if (HAL_UARTEx_SetRxFifoThreshold(&huart4, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK) - { - Error_Handler(); - } - if (HAL_UARTEx_DisableFifoMode(&huart4) != HAL_OK) - { - Error_Handler(); - } - /* USER CODE BEGIN UART4_Init 2 */ - - /* USER CODE END UART4_Init 2 */ - -} - -/** - * @brief UART7 Initialization Function - * @param None - * @retval None - */ -static void MX_UART7_Init(void) -{ - - /* USER CODE BEGIN UART7_Init 0 */ - - /* USER CODE END UART7_Init 0 */ - - /* USER CODE BEGIN UART7_Init 1 */ - - /* USER CODE END UART7_Init 1 */ - huart7.Instance = UART7; - huart7.Init.BaudRate = 115200; - huart7.Init.WordLength = UART_WORDLENGTH_8B; - huart7.Init.StopBits = UART_STOPBITS_1; - huart7.Init.Parity = UART_PARITY_NONE; - huart7.Init.Mode = UART_MODE_TX_RX; - huart7.Init.HwFlowCtl = UART_HWCONTROL_NONE; - huart7.Init.OverSampling = UART_OVERSAMPLING_16; - huart7.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE; - huart7.Init.ClockPrescaler = UART_PRESCALER_DIV1; - huart7.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT; - if (HAL_UART_Init(&huart7) != HAL_OK) - { - Error_Handler(); - } - if (HAL_UARTEx_SetTxFifoThreshold(&huart7, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK) - { - Error_Handler(); - } - if (HAL_UARTEx_SetRxFifoThreshold(&huart7, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK) - { - Error_Handler(); - } - if (HAL_UARTEx_DisableFifoMode(&huart7) != HAL_OK) - { - Error_Handler(); - } - /* USER CODE BEGIN UART7_Init 2 */ - - /* USER CODE END UART7_Init 2 */ - -} - -/** - * @brief UART8 Initialization Function - * @param None - * @retval None - */ -static void MX_UART8_Init(void) -{ - - /* USER CODE BEGIN UART8_Init 0 */ - - /* USER CODE END UART8_Init 0 */ - - /* USER CODE BEGIN UART8_Init 1 */ - - /* USER CODE END UART8_Init 1 */ - huart8.Instance = UART8; - huart8.Init.BaudRate = 115200; - huart8.Init.WordLength = UART_WORDLENGTH_8B; - huart8.Init.StopBits = UART_STOPBITS_1; - huart8.Init.Parity = UART_PARITY_NONE; - huart8.Init.Mode = UART_MODE_TX_RX; - huart8.Init.HwFlowCtl = UART_HWCONTROL_NONE; - huart8.Init.OverSampling = UART_OVERSAMPLING_16; - huart8.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE; - huart8.Init.ClockPrescaler = UART_PRESCALER_DIV1; - huart8.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT; - if (HAL_UART_Init(&huart8) != HAL_OK) - { - Error_Handler(); - } - if (HAL_UARTEx_SetTxFifoThreshold(&huart8, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK) - { - Error_Handler(); - } - if (HAL_UARTEx_SetRxFifoThreshold(&huart8, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK) - { - Error_Handler(); - } - if (HAL_UARTEx_DisableFifoMode(&huart8) != HAL_OK) - { - Error_Handler(); - } - /* USER CODE BEGIN UART8_Init 2 */ - - /* USER CODE END UART8_Init 2 */ - -} - -/** - * Enable DMA controller clock - */ -static void MX_DMA_Init(void) -{ - - /* DMA controller clock enable */ - __HAL_RCC_DMA1_CLK_ENABLE(); - - /* DMA interrupt init */ - /* DMA1_Stream0_IRQn interrupt configuration */ - HAL_NVIC_SetPriority(DMA1_Stream0_IRQn, 5, 0); - HAL_NVIC_EnableIRQ(DMA1_Stream0_IRQn); - -} - -/** - * Enable MDMA controller clock - * Configure MDMA for global transfers - * hmdma_mdma_channel0_sdmmc1_end_data_0 - */ -static void MX_MDMA_Init(void) -{ - - /* MDMA controller clock enable */ - __HAL_RCC_MDMA_CLK_ENABLE(); - /* Local variables */ - - /* Configure MDMA channel MDMA_Channel0 */ - /* Configure MDMA request hmdma_mdma_channel0_sdmmc1_end_data_0 on MDMA_Channel0 */ - hmdma_mdma_channel0_sdmmc1_end_data_0.Instance = MDMA_Channel0; - hmdma_mdma_channel0_sdmmc1_end_data_0.Init.Request = MDMA_REQUEST_SDMMC1_END_DATA; - hmdma_mdma_channel0_sdmmc1_end_data_0.Init.TransferTriggerMode = MDMA_BUFFER_TRANSFER; - hmdma_mdma_channel0_sdmmc1_end_data_0.Init.Priority = MDMA_PRIORITY_LOW; - hmdma_mdma_channel0_sdmmc1_end_data_0.Init.Endianness = MDMA_LITTLE_ENDIANNESS_PRESERVE; - hmdma_mdma_channel0_sdmmc1_end_data_0.Init.SourceInc = MDMA_SRC_INC_BYTE; - hmdma_mdma_channel0_sdmmc1_end_data_0.Init.DestinationInc = MDMA_DEST_INC_BYTE; - hmdma_mdma_channel0_sdmmc1_end_data_0.Init.SourceDataSize = MDMA_SRC_DATASIZE_BYTE; - hmdma_mdma_channel0_sdmmc1_end_data_0.Init.DestDataSize = MDMA_DEST_DATASIZE_BYTE; - hmdma_mdma_channel0_sdmmc1_end_data_0.Init.DataAlignment = MDMA_DATAALIGN_PACKENABLE; - hmdma_mdma_channel0_sdmmc1_end_data_0.Init.BufferTransferLength = 1; - hmdma_mdma_channel0_sdmmc1_end_data_0.Init.SourceBurst = MDMA_SOURCE_BURST_SINGLE; - hmdma_mdma_channel0_sdmmc1_end_data_0.Init.DestBurst = MDMA_DEST_BURST_SINGLE; - hmdma_mdma_channel0_sdmmc1_end_data_0.Init.SourceBlockAddressOffset = 0; - hmdma_mdma_channel0_sdmmc1_end_data_0.Init.DestBlockAddressOffset = 0; - if (HAL_MDMA_Init(&hmdma_mdma_channel0_sdmmc1_end_data_0) != HAL_OK) - { - Error_Handler(); - } - - /* Configure post request address and data masks */ - if (HAL_MDMA_ConfigPostRequestMask(&hmdma_mdma_channel0_sdmmc1_end_data_0, 0, 0) != HAL_OK) - { - Error_Handler(); - } - - /* MDMA interrupt initialization */ - /* MDMA_IRQn interrupt configuration */ - HAL_NVIC_SetPriority(MDMA_IRQn, 5, 0); - HAL_NVIC_EnableIRQ(MDMA_IRQn); - -} - -/** - * @brief GPIO Initialization Function - * @param None - * @retval None - */ -static void MX_GPIO_Init(void) -{ - GPIO_InitTypeDef GPIO_InitStruct = {0}; -/* USER CODE BEGIN MX_GPIO_Init_1 */ -/* USER CODE END MX_GPIO_Init_1 */ - - /* GPIO Ports Clock Enable */ - __HAL_RCC_GPIOB_CLK_ENABLE(); - __HAL_RCC_GPIOA_CLK_ENABLE(); - __HAL_RCC_GPIOD_CLK_ENABLE(); - __HAL_RCC_GPIOC_CLK_ENABLE(); - __HAL_RCC_GPIOH_CLK_ENABLE(); - __HAL_RCC_GPIOE_CLK_ENABLE(); - - /*Configure GPIO pin Output Level */ - HAL_GPIO_WritePin(mLED_GPIO_Port, mLED_Pin, GPIO_PIN_RESET); - - /*Configure GPIO pin Output Level */ - HAL_GPIO_WritePin(GPIOE, SD_LED_Pin|VIN_ON_Pin|PICO_EN_Pin, GPIO_PIN_RESET); - - /*Configure GPIO pin : mLED_Pin */ - GPIO_InitStruct.Pin = mLED_Pin; - GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; - GPIO_InitStruct.Pull = GPIO_NOPULL; - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - HAL_GPIO_Init(mLED_GPIO_Port, &GPIO_InitStruct); - - /*Configure GPIO pins : SD_LED_Pin VIN_ON_Pin PICO_EN_Pin */ - GPIO_InitStruct.Pin = SD_LED_Pin|VIN_ON_Pin|PICO_EN_Pin; - GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; - GPIO_InitStruct.Pull = GPIO_NOPULL; - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - HAL_GPIO_Init(GPIOE, &GPIO_InitStruct); - - /*Configure GPIO pin : sdDetect_Pin */ - GPIO_InitStruct.Pin = sdDetect_Pin; - GPIO_InitStruct.Mode = GPIO_MODE_INPUT; - GPIO_InitStruct.Pull = GPIO_NOPULL; - HAL_GPIO_Init(sdDetect_GPIO_Port, &GPIO_InitStruct); - - /*Configure GPIO pins : VIN_IG_Pin VIN_1_4_Pin */ - GPIO_InitStruct.Pin = VIN_IG_Pin|VIN_1_4_Pin; - GPIO_InitStruct.Mode = GPIO_MODE_INPUT; - GPIO_InitStruct.Pull = GPIO_NOPULL; - HAL_GPIO_Init(GPIOE, &GPIO_InitStruct); - -/* USER CODE BEGIN MX_GPIO_Init_2 */ -/* USER CODE END MX_GPIO_Init_2 */ -} - -/* USER CODE BEGIN 4 */ -void lwftp_init(void) { - IP4_ADDR(&s.cli_ip, CLI_IP[0], CLI_IP[1], CLI_IP[2], CLI_IP[3]); - IP4_ADDR(&s.svr_ip, SVR_IP[0], SVR_IP[1], SVR_IP[2], SVR_IP[3]); - s.svr_port = SVR_PORT; - s.user = USER; - s.pass = PASS; - - printf("\n>> lwftp: cli ip: %d.%d.%d.%d\r\n", CLI_IP[0], CLI_IP[1], CLI_IP[2], CLI_IP[3]); - printf(">> lwftp: svr ip: %d.%d.%d.%d\r\n", SVR_IP[0], SVR_IP[1], SVR_IP[2], SVR_IP[3]); - printf(">> lwftp: svr port: %d\r\n", s.svr_port); - printf(">> lwftp: username: %s\r\n", s.user); - printf(">> lwftp: password: %s\r\n\n", s.pass); - -#if FTPSemaphore - sys_sem_new(&ftpsem, 0); // the semaphore would prevent simultaneous access to lwftp_send -#endif - - /* Thread for Control connection*/ - sys_thread_new("lwftp_ctrl_thread", lwftp_ctrl_thread, (void*) &s, - DEFAULT_THREAD_STACKSIZE, osPriorityNormal); - - /* Thread for Data connection*/ - sys_thread_new("lwftp_data_thread", lwftp_data_thread, (void*) &s, - DEFAULT_THREAD_STACKSIZE, osPriorityNormal); -} - -/* USER CODE END 4 */ - -/* USER CODE BEGIN Header_StartDefaultTask */ -/** - * @brief Function implementing the defaultTask thread. - * @param argument: Not used - * @retval None - */ -/* USER CODE END Header_StartDefaultTask */ -void StartDefaultTask(void const * argument) -{ - /* init code for LWIP */ - MX_LWIP_Init(); - /* USER CODE BEGIN 5 */ - printf("[INFO] Remaining stack size of task: %ld\r\n", - uxTaskGetStackHighWaterMark(NULL)); - lwftp_init(); - - osDelay(5000); // run code aft 5s - err_t err; -// err = lwftp_list(&s); -// err = lwftp_store(&s, "foobar.txt", "TESTTESTTESTTESTTESTTESTTEST\r\n"); - err = lwftp_retrieve(&s, "ftp_test_1.txt"); - - printf("%d\r\n",err); - - /* Infinite loop */ - for (;;) { - osDelay(1); - } - /* USER CODE END 5 */ -} - -/* USER CODE BEGIN Header_StartDebugTask */ -/** -* @brief Function implementing the debugTask thread. -* @param argument: Not used -* @retval None -*/ -/* USER CODE END Header_StartDebugTask */ -void StartDebugTask(void const * argument) -{ - /* USER CODE BEGIN StartDebugTask */ - /* Infinite loop */ - for(;;) - { - osDelay(1); - } - /* USER CODE END StartDebugTask */ -} - -/* MPU Configuration */ - -void MPU_Config(void) -{ - MPU_Region_InitTypeDef MPU_InitStruct = {0}; - - /* Disables the MPU */ - HAL_MPU_Disable(); - - /** Initializes and configures the Region and the memory to be protected - */ - MPU_InitStruct.Enable = MPU_REGION_ENABLE; - MPU_InitStruct.Number = MPU_REGION_NUMBER0; - MPU_InitStruct.BaseAddress = 0x0; - MPU_InitStruct.Size = MPU_REGION_SIZE_4GB; - MPU_InitStruct.SubRegionDisable = 0x87; - MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL0; - MPU_InitStruct.AccessPermission = MPU_REGION_NO_ACCESS; - MPU_InitStruct.DisableExec = MPU_INSTRUCTION_ACCESS_DISABLE; - MPU_InitStruct.IsShareable = MPU_ACCESS_SHAREABLE; - MPU_InitStruct.IsCacheable = MPU_ACCESS_NOT_CACHEABLE; - MPU_InitStruct.IsBufferable = MPU_ACCESS_NOT_BUFFERABLE; - - HAL_MPU_ConfigRegion(&MPU_InitStruct); - - /** Initializes and configures the Region and the memory to be protected - */ - MPU_InitStruct.Number = MPU_REGION_NUMBER1; - MPU_InitStruct.BaseAddress = 0x30000000; - MPU_InitStruct.Size = MPU_REGION_SIZE_32KB; - MPU_InitStruct.SubRegionDisable = 0x0; - MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL1; - MPU_InitStruct.AccessPermission = MPU_REGION_FULL_ACCESS; - MPU_InitStruct.IsShareable = MPU_ACCESS_NOT_SHAREABLE; - - HAL_MPU_ConfigRegion(&MPU_InitStruct); - - /** Initializes and configures the Region and the memory to be protected - */ - MPU_InitStruct.Number = MPU_REGION_NUMBER2; - MPU_InitStruct.Size = MPU_REGION_SIZE_512B; - MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL0; - MPU_InitStruct.IsShareable = MPU_ACCESS_SHAREABLE; - MPU_InitStruct.IsBufferable = MPU_ACCESS_BUFFERABLE; - - HAL_MPU_ConfigRegion(&MPU_InitStruct); - - /** Initializes and configures the Region and the memory to be protected - */ - MPU_InitStruct.Number = MPU_REGION_NUMBER3; - MPU_InitStruct.BaseAddress = 0x24000000; - MPU_InitStruct.Size = MPU_REGION_SIZE_128KB; - MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL1; - MPU_InitStruct.DisableExec = MPU_INSTRUCTION_ACCESS_ENABLE; - MPU_InitStruct.IsBufferable = MPU_ACCESS_NOT_BUFFERABLE; - - HAL_MPU_ConfigRegion(&MPU_InitStruct); - /* Enables the MPU */ - HAL_MPU_Enable(MPU_PRIVILEGED_DEFAULT); - -} - -/** - * @brief Period elapsed callback in non blocking mode - * @note This function is called when TIM6 interrupt took place, inside - * HAL_TIM_IRQHandler(). It makes a direct call to HAL_IncTick() to increment - * a global variable "uwTick" used as application time base. - * @param htim : TIM handle - * @retval None - */ -void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) -{ - /* USER CODE BEGIN Callback 0 */ - - /* USER CODE END Callback 0 */ - if (htim->Instance == TIM6) { - HAL_IncTick(); - } - /* USER CODE BEGIN Callback 1 */ - - /* USER CODE END Callback 1 */ -} - -/** - * @brief This function is executed in case of error occurrence. - * @retval None - */ -void Error_Handler(void) -{ - /* USER CODE BEGIN Error_Handler_Debug */ - /* User can add his own implementation to report the HAL error return state */ - __disable_irq(); - while (1) { - } - /* USER CODE END Error_Handler_Debug */ -} - -#ifdef USE_FULL_ASSERT -/** - * @brief Reports the name of the source file and the source line number - * where the assert_param error has occurred. - * @param file: pointer to the source file name - * @param line: assert_param error line source number - * @retval None - */ -void assert_failed(uint8_t *file, uint32_t line) -{ - /* USER CODE BEGIN 6 */ - /* User can add his own implementation to report the file name and line number, - ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */ - /* USER CODE END 6 */ -} -#endif /* USE_FULL_ASSERT */ diff --git a/Core/Src/stm32h7xx_hal_msp.c b/Core/Src/stm32h7xx_hal_msp.c deleted file mode 100644 index 19f82d0..0000000 --- a/Core/Src/stm32h7xx_hal_msp.c +++ /dev/null @@ -1,645 +0,0 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * @file stm32h7xx_hal_msp.c - * @brief This file provides code for the MSP Initialization - * and de-Initialization codes. - ****************************************************************************** - * @attention - * - * Copyright (c) 2024 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ -/* USER CODE END Header */ - -/* Includes ------------------------------------------------------------------*/ -#include "main.h" - -/* USER CODE BEGIN Includes */ - -/* USER CODE END Includes */ -extern DMA_HandleTypeDef hdma_uart8_rx; - -/* Private typedef -----------------------------------------------------------*/ -/* USER CODE BEGIN TD */ - -/* USER CODE END TD */ - -/* Private define ------------------------------------------------------------*/ -/* USER CODE BEGIN Define */ - -/* USER CODE END Define */ - -/* Private macro -------------------------------------------------------------*/ -/* USER CODE BEGIN Macro */ - -/* USER CODE END Macro */ - -/* Private variables ---------------------------------------------------------*/ -/* USER CODE BEGIN PV */ - -/* USER CODE END PV */ - -/* Private function prototypes -----------------------------------------------*/ -/* USER CODE BEGIN PFP */ - -/* USER CODE END PFP */ - -/* External functions --------------------------------------------------------*/ -/* USER CODE BEGIN ExternalFunctions */ - -/* USER CODE END ExternalFunctions */ - -/* USER CODE BEGIN 0 */ - -/* USER CODE END 0 */ -/** - * Initializes the Global MSP. - */ -void HAL_MspInit(void) -{ - /* USER CODE BEGIN MspInit 0 */ - - /* USER CODE END MspInit 0 */ - - __HAL_RCC_SYSCFG_CLK_ENABLE(); - - /* System interrupt init*/ - /* PendSV_IRQn interrupt configuration */ - HAL_NVIC_SetPriority(PendSV_IRQn, 15, 0); - - /* USER CODE BEGIN MspInit 1 */ - - /* USER CODE END MspInit 1 */ -} - -static uint32_t HAL_RCC_FDCAN_CLK_ENABLED=0; - -/** -* @brief FDCAN MSP Initialization -* This function configures the hardware resources used in this example -* @param hfdcan: FDCAN handle pointer -* @retval None -*/ -void HAL_FDCAN_MspInit(FDCAN_HandleTypeDef* hfdcan) -{ - GPIO_InitTypeDef GPIO_InitStruct = {0}; - RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0}; - if(hfdcan->Instance==FDCAN1) - { - /* USER CODE BEGIN FDCAN1_MspInit 0 */ - - /* USER CODE END FDCAN1_MspInit 0 */ - - /** Initializes the peripherals clock - */ - PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_FDCAN; - PeriphClkInitStruct.FdcanClockSelection = RCC_FDCANCLKSOURCE_PLL; - if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK) - { - Error_Handler(); - } - - /* Peripheral clock enable */ - HAL_RCC_FDCAN_CLK_ENABLED++; - if(HAL_RCC_FDCAN_CLK_ENABLED==1){ - __HAL_RCC_FDCAN_CLK_ENABLE(); - } - - __HAL_RCC_GPIOB_CLK_ENABLE(); - /**FDCAN1 GPIO Configuration - PB9 ------> FDCAN1_TX - PB8 ------> FDCAN1_RX - */ - GPIO_InitStruct.Pin = GPIO_PIN_9|GPIO_PIN_8; - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - GPIO_InitStruct.Pull = GPIO_NOPULL; - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - GPIO_InitStruct.Alternate = GPIO_AF9_FDCAN1; - HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - - /* FDCAN1 interrupt Init */ - HAL_NVIC_SetPriority(FDCAN1_IT0_IRQn, 5, 0); - HAL_NVIC_EnableIRQ(FDCAN1_IT0_IRQn); - /* USER CODE BEGIN FDCAN1_MspInit 1 */ - - /* USER CODE END FDCAN1_MspInit 1 */ - } - else if(hfdcan->Instance==FDCAN2) - { - /* USER CODE BEGIN FDCAN2_MspInit 0 */ - - /* USER CODE END FDCAN2_MspInit 0 */ - - /** Initializes the peripherals clock - */ - PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_FDCAN; - PeriphClkInitStruct.FdcanClockSelection = RCC_FDCANCLKSOURCE_PLL; - if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK) - { - Error_Handler(); - } - - /* Peripheral clock enable */ - HAL_RCC_FDCAN_CLK_ENABLED++; - if(HAL_RCC_FDCAN_CLK_ENABLED==1){ - __HAL_RCC_FDCAN_CLK_ENABLE(); - } - - __HAL_RCC_GPIOB_CLK_ENABLE(); - /**FDCAN2 GPIO Configuration - PB6 ------> FDCAN2_TX - PB5 ------> FDCAN2_RX - */ - GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_5; - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - GPIO_InitStruct.Pull = GPIO_NOPULL; - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - GPIO_InitStruct.Alternate = GPIO_AF9_FDCAN2; - HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - - /* FDCAN2 interrupt Init */ - HAL_NVIC_SetPriority(FDCAN2_IT0_IRQn, 5, 0); - HAL_NVIC_EnableIRQ(FDCAN2_IT0_IRQn); - /* USER CODE BEGIN FDCAN2_MspInit 1 */ - - /* USER CODE END FDCAN2_MspInit 1 */ - } - else if(hfdcan->Instance==FDCAN3) - { - /* USER CODE BEGIN FDCAN3_MspInit 0 */ - - /* USER CODE END FDCAN3_MspInit 0 */ - - /** Initializes the peripherals clock - */ - PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_FDCAN; - PeriphClkInitStruct.FdcanClockSelection = RCC_FDCANCLKSOURCE_PLL; - if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK) - { - Error_Handler(); - } - - /* Peripheral clock enable */ - HAL_RCC_FDCAN_CLK_ENABLED++; - if(HAL_RCC_FDCAN_CLK_ENABLED==1){ - __HAL_RCC_FDCAN_CLK_ENABLE(); - } - - __HAL_RCC_GPIOD_CLK_ENABLE(); - /**FDCAN3 GPIO Configuration - PD13 ------> FDCAN3_TX - PD12 ------> FDCAN3_RX - */ - GPIO_InitStruct.Pin = GPIO_PIN_13|GPIO_PIN_12; - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - GPIO_InitStruct.Pull = GPIO_NOPULL; - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - GPIO_InitStruct.Alternate = GPIO_AF5_FDCAN3; - HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); - - /* FDCAN3 interrupt Init */ - HAL_NVIC_SetPriority(FDCAN3_IT0_IRQn, 5, 0); - HAL_NVIC_EnableIRQ(FDCAN3_IT0_IRQn); - /* USER CODE BEGIN FDCAN3_MspInit 1 */ - - /* USER CODE END FDCAN3_MspInit 1 */ - } - -} - -/** -* @brief FDCAN MSP De-Initialization -* This function freeze the hardware resources used in this example -* @param hfdcan: FDCAN handle pointer -* @retval None -*/ -void HAL_FDCAN_MspDeInit(FDCAN_HandleTypeDef* hfdcan) -{ - if(hfdcan->Instance==FDCAN1) - { - /* USER CODE BEGIN FDCAN1_MspDeInit 0 */ - - /* USER CODE END FDCAN1_MspDeInit 0 */ - /* Peripheral clock disable */ - HAL_RCC_FDCAN_CLK_ENABLED--; - if(HAL_RCC_FDCAN_CLK_ENABLED==0){ - __HAL_RCC_FDCAN_CLK_DISABLE(); - } - - /**FDCAN1 GPIO Configuration - PB9 ------> FDCAN1_TX - PB8 ------> FDCAN1_RX - */ - HAL_GPIO_DeInit(GPIOB, GPIO_PIN_9|GPIO_PIN_8); - - /* FDCAN1 interrupt DeInit */ - HAL_NVIC_DisableIRQ(FDCAN1_IT0_IRQn); - /* USER CODE BEGIN FDCAN1_MspDeInit 1 */ - - /* USER CODE END FDCAN1_MspDeInit 1 */ - } - else if(hfdcan->Instance==FDCAN2) - { - /* USER CODE BEGIN FDCAN2_MspDeInit 0 */ - - /* USER CODE END FDCAN2_MspDeInit 0 */ - /* Peripheral clock disable */ - HAL_RCC_FDCAN_CLK_ENABLED--; - if(HAL_RCC_FDCAN_CLK_ENABLED==0){ - __HAL_RCC_FDCAN_CLK_DISABLE(); - } - - /**FDCAN2 GPIO Configuration - PB6 ------> FDCAN2_TX - PB5 ------> FDCAN2_RX - */ - HAL_GPIO_DeInit(GPIOB, GPIO_PIN_6|GPIO_PIN_5); - - /* FDCAN2 interrupt DeInit */ - HAL_NVIC_DisableIRQ(FDCAN2_IT0_IRQn); - /* USER CODE BEGIN FDCAN2_MspDeInit 1 */ - - /* USER CODE END FDCAN2_MspDeInit 1 */ - } - else if(hfdcan->Instance==FDCAN3) - { - /* USER CODE BEGIN FDCAN3_MspDeInit 0 */ - - /* USER CODE END FDCAN3_MspDeInit 0 */ - /* Peripheral clock disable */ - HAL_RCC_FDCAN_CLK_ENABLED--; - if(HAL_RCC_FDCAN_CLK_ENABLED==0){ - __HAL_RCC_FDCAN_CLK_DISABLE(); - } - - /**FDCAN3 GPIO Configuration - PD13 ------> FDCAN3_TX - PD12 ------> FDCAN3_RX - */ - HAL_GPIO_DeInit(GPIOD, GPIO_PIN_13|GPIO_PIN_12); - - /* FDCAN3 interrupt DeInit */ - HAL_NVIC_DisableIRQ(FDCAN3_IT0_IRQn); - /* USER CODE BEGIN FDCAN3_MspDeInit 1 */ - - /* USER CODE END FDCAN3_MspDeInit 1 */ - } - -} - -/** -* @brief SD MSP Initialization -* This function configures the hardware resources used in this example -* @param hsd: SD handle pointer -* @retval None -*/ -void HAL_SD_MspInit(SD_HandleTypeDef* hsd) -{ - GPIO_InitTypeDef GPIO_InitStruct = {0}; - RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0}; - if(hsd->Instance==SDMMC1) - { - /* USER CODE BEGIN SDMMC1_MspInit 0 */ - - /* USER CODE END SDMMC1_MspInit 0 */ - - /** Initializes the peripherals clock - */ - PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_SDMMC; - PeriphClkInitStruct.SdmmcClockSelection = RCC_SDMMCCLKSOURCE_PLL; - if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK) - { - Error_Handler(); - } - - /* Peripheral clock enable */ - __HAL_RCC_SDMMC1_CLK_ENABLE(); - - __HAL_RCC_GPIOD_CLK_ENABLE(); - __HAL_RCC_GPIOC_CLK_ENABLE(); - /**SDMMC1 GPIO Configuration - PD2 ------> SDMMC1_CMD - PC11 ------> SDMMC1_D3 - PC10 ------> SDMMC1_D2 - PC12 ------> SDMMC1_CK - PC9 ------> SDMMC1_D1 - PC8 ------> SDMMC1_D0 - */ - GPIO_InitStruct.Pin = GPIO_PIN_2; - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - GPIO_InitStruct.Pull = GPIO_NOPULL; - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - GPIO_InitStruct.Alternate = GPIO_AF12_SDMMC1; - HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); - - GPIO_InitStruct.Pin = GPIO_PIN_11|GPIO_PIN_10|GPIO_PIN_12|GPIO_PIN_9 - |GPIO_PIN_8; - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - GPIO_InitStruct.Pull = GPIO_NOPULL; - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - GPIO_InitStruct.Alternate = GPIO_AF12_SDMMC1; - HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); - - /* SDMMC1 interrupt Init */ - HAL_NVIC_SetPriority(SDMMC1_IRQn, 5, 0); - HAL_NVIC_EnableIRQ(SDMMC1_IRQn); - /* USER CODE BEGIN SDMMC1_MspInit 1 */ - - /* USER CODE END SDMMC1_MspInit 1 */ - } - -} - -/** -* @brief SD MSP De-Initialization -* This function freeze the hardware resources used in this example -* @param hsd: SD handle pointer -* @retval None -*/ -void HAL_SD_MspDeInit(SD_HandleTypeDef* hsd) -{ - if(hsd->Instance==SDMMC1) - { - /* USER CODE BEGIN SDMMC1_MspDeInit 0 */ - - /* USER CODE END SDMMC1_MspDeInit 0 */ - /* Peripheral clock disable */ - __HAL_RCC_SDMMC1_CLK_DISABLE(); - - /**SDMMC1 GPIO Configuration - PD2 ------> SDMMC1_CMD - PC11 ------> SDMMC1_D3 - PC10 ------> SDMMC1_D2 - PC12 ------> SDMMC1_CK - PC9 ------> SDMMC1_D1 - PC8 ------> SDMMC1_D0 - */ - HAL_GPIO_DeInit(GPIOD, GPIO_PIN_2); - - HAL_GPIO_DeInit(GPIOC, GPIO_PIN_11|GPIO_PIN_10|GPIO_PIN_12|GPIO_PIN_9 - |GPIO_PIN_8); - - /* SDMMC1 interrupt DeInit */ - HAL_NVIC_DisableIRQ(SDMMC1_IRQn); - /* USER CODE BEGIN SDMMC1_MspDeInit 1 */ - - /* USER CODE END SDMMC1_MspDeInit 1 */ - } - -} - -/** -* @brief TIM_Base MSP Initialization -* 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) -{ - if(htim_base->Instance==TIM3) - { - /* USER CODE BEGIN TIM3_MspInit 0 */ - - /* USER CODE END TIM3_MspInit 0 */ - /* Peripheral clock enable */ - __HAL_RCC_TIM3_CLK_ENABLE(); - /* USER CODE BEGIN TIM3_MspInit 1 */ - - /* USER CODE END TIM3_MspInit 1 */ - } - -} - -/** -* @brief TIM_Base MSP De-Initialization -* This function freeze the hardware resources used in this example -* @param htim_base: TIM_Base handle pointer -* @retval None -*/ -void HAL_TIM_Base_MspDeInit(TIM_HandleTypeDef* htim_base) -{ - if(htim_base->Instance==TIM3) - { - /* USER CODE BEGIN TIM3_MspDeInit 0 */ - - /* USER CODE END TIM3_MspDeInit 0 */ - /* Peripheral clock disable */ - __HAL_RCC_TIM3_CLK_DISABLE(); - /* USER CODE BEGIN TIM3_MspDeInit 1 */ - - /* USER CODE END TIM3_MspDeInit 1 */ - } - -} - -/** -* @brief UART MSP Initialization -* This function configures the hardware resources used in this example -* @param huart: UART handle pointer -* @retval None -*/ -void HAL_UART_MspInit(UART_HandleTypeDef* huart) -{ - GPIO_InitTypeDef GPIO_InitStruct = {0}; - RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0}; - if(huart->Instance==UART4) - { - /* USER CODE BEGIN UART4_MspInit 0 */ - - /* USER CODE END UART4_MspInit 0 */ - - /** Initializes the peripherals clock - */ - PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_UART4; - PeriphClkInitStruct.Usart234578ClockSelection = RCC_USART234578CLKSOURCE_D2PCLK1; - if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK) - { - Error_Handler(); - } - - /* Peripheral clock enable */ - __HAL_RCC_UART4_CLK_ENABLE(); - - __HAL_RCC_GPIOD_CLK_ENABLE(); - /**UART4 GPIO Configuration - PD0 ------> UART4_RX - PD1 ------> UART4_TX - */ - GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1; - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - GPIO_InitStruct.Pull = GPIO_NOPULL; - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - GPIO_InitStruct.Alternate = GPIO_AF8_UART4; - HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); - - /* USER CODE BEGIN UART4_MspInit 1 */ - - /* USER CODE END UART4_MspInit 1 */ - } - else if(huart->Instance==UART7) - { - /* USER CODE BEGIN UART7_MspInit 0 */ - - /* USER CODE END UART7_MspInit 0 */ - - /** Initializes the peripherals clock - */ - PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_UART7; - PeriphClkInitStruct.Usart234578ClockSelection = RCC_USART234578CLKSOURCE_D2PCLK1; - if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK) - { - Error_Handler(); - } - - /* Peripheral clock enable */ - __HAL_RCC_UART7_CLK_ENABLE(); - - __HAL_RCC_GPIOE_CLK_ENABLE(); - /**UART7 GPIO Configuration - PE7 ------> UART7_RX - PE8 ------> UART7_TX - */ - GPIO_InitStruct.Pin = GPIO_PIN_7|GPIO_PIN_8; - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - GPIO_InitStruct.Pull = GPIO_NOPULL; - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - GPIO_InitStruct.Alternate = GPIO_AF7_UART7; - HAL_GPIO_Init(GPIOE, &GPIO_InitStruct); - - /* USER CODE BEGIN UART7_MspInit 1 */ - - /* USER CODE END UART7_MspInit 1 */ - } - else if(huart->Instance==UART8) - { - /* USER CODE BEGIN UART8_MspInit 0 */ - - /* USER CODE END UART8_MspInit 0 */ - - /** Initializes the peripherals clock - */ - PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_UART8; - PeriphClkInitStruct.Usart234578ClockSelection = RCC_USART234578CLKSOURCE_D2PCLK1; - if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK) - { - Error_Handler(); - } - - /* Peripheral clock enable */ - __HAL_RCC_UART8_CLK_ENABLE(); - - __HAL_RCC_GPIOE_CLK_ENABLE(); - /**UART8 GPIO Configuration - PE1 ------> UART8_TX - PE0 ------> UART8_RX - */ - GPIO_InitStruct.Pin = GPIO_PIN_1|GPIO_PIN_0; - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - GPIO_InitStruct.Pull = GPIO_NOPULL; - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - GPIO_InitStruct.Alternate = GPIO_AF8_UART8; - HAL_GPIO_Init(GPIOE, &GPIO_InitStruct); - - /* UART8 DMA Init */ - /* UART8_RX Init */ - hdma_uart8_rx.Instance = DMA1_Stream0; - hdma_uart8_rx.Init.Request = DMA_REQUEST_UART8_RX; - hdma_uart8_rx.Init.Direction = DMA_PERIPH_TO_MEMORY; - hdma_uart8_rx.Init.PeriphInc = DMA_PINC_DISABLE; - hdma_uart8_rx.Init.MemInc = DMA_MINC_ENABLE; - hdma_uart8_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; - hdma_uart8_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; - hdma_uart8_rx.Init.Mode = DMA_CIRCULAR; - hdma_uart8_rx.Init.Priority = DMA_PRIORITY_LOW; - hdma_uart8_rx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; - if (HAL_DMA_Init(&hdma_uart8_rx) != HAL_OK) - { - Error_Handler(); - } - - __HAL_LINKDMA(huart,hdmarx,hdma_uart8_rx); - - /* USER CODE BEGIN UART8_MspInit 1 */ - - /* USER CODE END UART8_MspInit 1 */ - } - -} - -/** -* @brief UART MSP De-Initialization -* This function freeze the hardware resources used in this example -* @param huart: UART handle pointer -* @retval None -*/ -void HAL_UART_MspDeInit(UART_HandleTypeDef* huart) -{ - if(huart->Instance==UART4) - { - /* USER CODE BEGIN UART4_MspDeInit 0 */ - - /* USER CODE END UART4_MspDeInit 0 */ - /* Peripheral clock disable */ - __HAL_RCC_UART4_CLK_DISABLE(); - - /**UART4 GPIO Configuration - PD0 ------> UART4_RX - PD1 ------> UART4_TX - */ - HAL_GPIO_DeInit(GPIOD, GPIO_PIN_0|GPIO_PIN_1); - - /* USER CODE BEGIN UART4_MspDeInit 1 */ - - /* USER CODE END UART4_MspDeInit 1 */ - } - else if(huart->Instance==UART7) - { - /* USER CODE BEGIN UART7_MspDeInit 0 */ - - /* USER CODE END UART7_MspDeInit 0 */ - /* Peripheral clock disable */ - __HAL_RCC_UART7_CLK_DISABLE(); - - /**UART7 GPIO Configuration - PE7 ------> UART7_RX - PE8 ------> UART7_TX - */ - HAL_GPIO_DeInit(GPIOE, GPIO_PIN_7|GPIO_PIN_8); - - /* USER CODE BEGIN UART7_MspDeInit 1 */ - - /* USER CODE END UART7_MspDeInit 1 */ - } - else if(huart->Instance==UART8) - { - /* USER CODE BEGIN UART8_MspDeInit 0 */ - - /* USER CODE END UART8_MspDeInit 0 */ - /* Peripheral clock disable */ - __HAL_RCC_UART8_CLK_DISABLE(); - - /**UART8 GPIO Configuration - PE1 ------> UART8_TX - PE0 ------> UART8_RX - */ - HAL_GPIO_DeInit(GPIOE, GPIO_PIN_1|GPIO_PIN_0); - - /* UART8 DMA DeInit */ - HAL_DMA_DeInit(huart->hdmarx); - /* USER CODE BEGIN UART8_MspDeInit 1 */ - - /* USER CODE END UART8_MspDeInit 1 */ - } - -} - -/* USER CODE BEGIN 1 */ - -/* USER CODE END 1 */ diff --git a/Core/Src/stm32h7xx_hal_timebase_tim.c b/Core/Src/stm32h7xx_hal_timebase_tim.c deleted file mode 100644 index 8810acf..0000000 --- a/Core/Src/stm32h7xx_hal_timebase_tim.c +++ /dev/null @@ -1,131 +0,0 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * @file stm32h7xx_hal_timebase_tim.c - * @brief HAL time base based on the hardware TIM. - ****************************************************************************** - * @attention - * - * Copyright (c) 2024 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ -/* USER CODE END Header */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" -#include "stm32h7xx_hal_tim.h" - -/* Private typedef -----------------------------------------------------------*/ -/* Private define ------------------------------------------------------------*/ -/* Private macro -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -TIM_HandleTypeDef htim6; -/* Private function prototypes -----------------------------------------------*/ -/* Private functions ---------------------------------------------------------*/ - -/** - * @brief This function configures the TIM6 as a time base source. - * The time source is configured to have 1ms time base with a dedicated - * Tick interrupt priority. - * @note This function is called automatically at the beginning of program after - * 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) -{ - RCC_ClkInitTypeDef clkconfig; - uint32_t uwTimclock, uwAPB1Prescaler; - - uint32_t uwPrescalerValue; - uint32_t pFLatency; -/*Configure the TIM6 IRQ priority */ - if (TickPriority < (1UL << __NVIC_PRIO_BITS)) - { - HAL_NVIC_SetPriority(TIM6_DAC_IRQn, TickPriority ,0U); - - /* Enable the TIM6 global Interrupt */ - HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn); - uwTickPrio = TickPriority; - } - else - { - return HAL_ERROR; - } - - /* Enable TIM6 clock */ - __HAL_RCC_TIM6_CLK_ENABLE(); - - /* Get clock configuration */ - HAL_RCC_GetClockConfig(&clkconfig, &pFLatency); - - /* Get APB1 prescaler */ - uwAPB1Prescaler = clkconfig.APB1CLKDivider; - /* Compute TIM6 clock */ - if (uwAPB1Prescaler == RCC_HCLK_DIV1) - { - uwTimclock = HAL_RCC_GetPCLK1Freq(); - } - else - { - uwTimclock = 2UL * HAL_RCC_GetPCLK1Freq(); - } - - /* Compute the prescaler value to have TIM6 counter clock equal to 1MHz */ - uwPrescalerValue = (uint32_t) ((uwTimclock / 1000000U) - 1U); - - /* Initialize TIM6 */ - htim6.Instance = TIM6; - - /* Initialize TIMx peripheral as follow: - - + 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; - htim6.Init.Prescaler = uwPrescalerValue; - htim6.Init.ClockDivision = 0; - htim6.Init.CounterMode = TIM_COUNTERMODE_UP; - - if(HAL_TIM_Base_Init(&htim6) == HAL_OK) - { - /* Start the TIM time Base generation in interrupt mode */ - return HAL_TIM_Base_Start_IT(&htim6); - } - - /* Return function status */ - return HAL_ERROR; -} - -/** - * @brief Suspend Tick increment. - * @note Disable the tick increment by disabling TIM6 update interrupt. - * @param None - * @retval None - */ -void HAL_SuspendTick(void) -{ - /* Disable TIM6 update Interrupt */ - __HAL_TIM_DISABLE_IT(&htim6, TIM_IT_UPDATE); -} - -/** - * @brief Resume Tick increment. - * @note Enable the tick increment by Enabling TIM6 update interrupt. - * @param None - * @retval None - */ -void HAL_ResumeTick(void) -{ - /* Enable TIM6 Update interrupt */ - __HAL_TIM_ENABLE_IT(&htim6, TIM_IT_UPDATE); -} - diff --git a/Core/Src/stm32h7xx_it.c b/Core/Src/stm32h7xx_it.c deleted file mode 100644 index fb68af1..0000000 --- a/Core/Src/stm32h7xx_it.c +++ /dev/null @@ -1,283 +0,0 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * @file stm32h7xx_it.c - * @brief Interrupt Service Routines. - ****************************************************************************** - * @attention - * - * Copyright (c) 2024 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ -/* USER CODE END Header */ - -/* Includes ------------------------------------------------------------------*/ -#include "main.h" -#include "stm32h7xx_it.h" -/* Private includes ----------------------------------------------------------*/ -/* USER CODE BEGIN Includes */ -/* USER CODE END Includes */ - -/* Private typedef -----------------------------------------------------------*/ -/* USER CODE BEGIN TD */ - -/* USER CODE END TD */ - -/* Private define ------------------------------------------------------------*/ -/* USER CODE BEGIN PD */ - -/* USER CODE END PD */ - -/* Private macro -------------------------------------------------------------*/ -/* USER CODE BEGIN PM */ - -/* USER CODE END PM */ - -/* Private variables ---------------------------------------------------------*/ -/* USER CODE BEGIN PV */ - -/* USER CODE END PV */ - -/* Private function prototypes -----------------------------------------------*/ -/* USER CODE BEGIN PFP */ - -/* USER CODE END PFP */ - -/* Private user code ---------------------------------------------------------*/ -/* USER CODE BEGIN 0 */ - -/* USER CODE END 0 */ - -/* External variables --------------------------------------------------------*/ -extern ETH_HandleTypeDef heth; -extern FDCAN_HandleTypeDef hfdcan1; -extern FDCAN_HandleTypeDef hfdcan2; -extern FDCAN_HandleTypeDef hfdcan3; -extern MDMA_HandleTypeDef hmdma_mdma_channel0_sdmmc1_end_data_0; -extern SD_HandleTypeDef hsd1; -extern DMA_HandleTypeDef hdma_uart8_rx; -extern TIM_HandleTypeDef htim6; - -/* USER CODE BEGIN EV */ - -/* USER CODE END EV */ - -/******************************************************************************/ -/* Cortex Processor Interruption and Exception Handlers */ -/******************************************************************************/ -/** - * @brief This function handles Non maskable interrupt. - */ -void NMI_Handler(void) -{ - /* USER CODE BEGIN NonMaskableInt_IRQn 0 */ - - /* USER CODE END NonMaskableInt_IRQn 0 */ - /* USER CODE BEGIN NonMaskableInt_IRQn 1 */ - while (1) - { - } - /* USER CODE END NonMaskableInt_IRQn 1 */ -} - -/** - * @brief This function handles Hard fault interrupt. - */ -void HardFault_Handler(void) -{ - /* USER CODE BEGIN HardFault_IRQn 0 */ - - /* USER CODE END HardFault_IRQn 0 */ - while (1) - { - /* USER CODE BEGIN W1_HardFault_IRQn 0 */ - /* USER CODE END W1_HardFault_IRQn 0 */ - } -} - -/** - * @brief This function handles Memory management fault. - */ -void MemManage_Handler(void) -{ - /* USER CODE BEGIN MemoryManagement_IRQn 0 */ - - /* USER CODE END MemoryManagement_IRQn 0 */ - while (1) - { - /* USER CODE BEGIN W1_MemoryManagement_IRQn 0 */ - /* USER CODE END W1_MemoryManagement_IRQn 0 */ - } -} - -/** - * @brief This function handles Pre-fetch fault, memory access fault. - */ -void BusFault_Handler(void) -{ - /* USER CODE BEGIN BusFault_IRQn 0 */ - - /* USER CODE END BusFault_IRQn 0 */ - while (1) - { - /* USER CODE BEGIN W1_BusFault_IRQn 0 */ - /* USER CODE END W1_BusFault_IRQn 0 */ - } -} - -/** - * @brief This function handles Undefined instruction or illegal state. - */ -void UsageFault_Handler(void) -{ - /* USER CODE BEGIN UsageFault_IRQn 0 */ - - /* USER CODE END UsageFault_IRQn 0 */ - while (1) - { - /* USER CODE BEGIN W1_UsageFault_IRQn 0 */ - /* USER CODE END W1_UsageFault_IRQn 0 */ - } -} - -/** - * @brief This function handles Debug monitor. - */ -void DebugMon_Handler(void) -{ - /* USER CODE BEGIN DebugMonitor_IRQn 0 */ - - /* USER CODE END DebugMonitor_IRQn 0 */ - /* USER CODE BEGIN DebugMonitor_IRQn 1 */ - - /* USER CODE END DebugMonitor_IRQn 1 */ -} - -/******************************************************************************/ -/* STM32H7xx Peripheral Interrupt Handlers */ -/* Add here the Interrupt Handlers for the used peripherals. */ -/* For the available peripheral interrupt handler names, */ -/* please refer to the startup file (startup_stm32h7xx.s). */ -/******************************************************************************/ - -/** - * @brief This function handles DMA1 stream0 global interrupt. - */ -void DMA1_Stream0_IRQHandler(void) -{ - /* USER CODE BEGIN DMA1_Stream0_IRQn 0 */ - - /* USER CODE END DMA1_Stream0_IRQn 0 */ - HAL_DMA_IRQHandler(&hdma_uart8_rx); - /* USER CODE BEGIN DMA1_Stream0_IRQn 1 */ - - /* USER CODE END DMA1_Stream0_IRQn 1 */ -} - -/** - * @brief This function handles FDCAN1 interrupt 0. - */ -void FDCAN1_IT0_IRQHandler(void) -{ - /* USER CODE BEGIN FDCAN1_IT0_IRQn 0 */ - - /* USER CODE END FDCAN1_IT0_IRQn 0 */ - HAL_FDCAN_IRQHandler(&hfdcan1); - /* USER CODE BEGIN FDCAN1_IT0_IRQn 1 */ - - /* USER CODE END FDCAN1_IT0_IRQn 1 */ -} - -/** - * @brief This function handles FDCAN2 interrupt 0. - */ -void FDCAN2_IT0_IRQHandler(void) -{ - /* USER CODE BEGIN FDCAN2_IT0_IRQn 0 */ - - /* USER CODE END FDCAN2_IT0_IRQn 0 */ - HAL_FDCAN_IRQHandler(&hfdcan2); - /* USER CODE BEGIN FDCAN2_IT0_IRQn 1 */ - - /* USER CODE END FDCAN2_IT0_IRQn 1 */ -} - -/** - * @brief This function handles SDMMC1 global interrupt. - */ -void SDMMC1_IRQHandler(void) -{ - /* USER CODE BEGIN SDMMC1_IRQn 0 */ - - /* USER CODE END SDMMC1_IRQn 0 */ - HAL_SD_IRQHandler(&hsd1); - /* USER CODE BEGIN SDMMC1_IRQn 1 */ - - /* USER CODE END SDMMC1_IRQn 1 */ -} - -/** - * @brief This function handles TIM6 global interrupt, DAC1_CH1 and DAC1_CH2 underrun error interrupts. - */ -void TIM6_DAC_IRQHandler(void) -{ - /* USER CODE BEGIN TIM6_DAC_IRQn 0 */ - - /* USER CODE END TIM6_DAC_IRQn 0 */ - HAL_TIM_IRQHandler(&htim6); - /* USER CODE BEGIN TIM6_DAC_IRQn 1 */ - - /* USER CODE END TIM6_DAC_IRQn 1 */ -} - -/** - * @brief This function handles Ethernet global interrupt. - */ -void ETH_IRQHandler(void) -{ - /* USER CODE BEGIN ETH_IRQn 0 */ - - /* USER CODE END ETH_IRQn 0 */ - HAL_ETH_IRQHandler(&heth); - /* USER CODE BEGIN ETH_IRQn 1 */ - - /* USER CODE END ETH_IRQn 1 */ -} - -/** - * @brief This function handles MDMA global interrupt. - */ -void MDMA_IRQHandler(void) -{ - /* USER CODE BEGIN MDMA_IRQn 0 */ - - /* USER CODE END MDMA_IRQn 0 */ - HAL_MDMA_IRQHandler(&hmdma_mdma_channel0_sdmmc1_end_data_0); - /* USER CODE BEGIN MDMA_IRQn 1 */ - - /* USER CODE END MDMA_IRQn 1 */ -} - -/** - * @brief This function handles FDCAN3 interrupt 0. - */ -void FDCAN3_IT0_IRQHandler(void) -{ - /* USER CODE BEGIN FDCAN3_IT0_IRQn 0 */ - - /* USER CODE END FDCAN3_IT0_IRQn 0 */ - HAL_FDCAN_IRQHandler(&hfdcan3); - /* USER CODE BEGIN FDCAN3_IT0_IRQn 1 */ - - /* USER CODE END FDCAN3_IT0_IRQn 1 */ -} - -/* USER CODE BEGIN 1 */ - -/* USER CODE END 1 */ diff --git a/Core/Src/syscalls.c b/Core/Src/syscalls.c deleted file mode 100644 index d190edf..0000000 --- a/Core/Src/syscalls.c +++ /dev/null @@ -1,176 +0,0 @@ -/** - ****************************************************************************** - * @file syscalls.c - * @author Auto-generated by STM32CubeIDE - * @brief STM32CubeIDE Minimal System calls file - * - * For more information about which c-functions - * need which of these lowlevel functions - * please consult the Newlib libc-manual - ****************************************************************************** - * @attention - * - * Copyright (c) 2020-2023 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Includes */ -#include -#include -#include -#include -#include -#include -#include -#include - - -/* Variables */ -extern int __io_putchar(int ch) __attribute__((weak)); -extern int __io_getchar(void) __attribute__((weak)); - - -char *__env[1] = { 0 }; -char **environ = __env; - - -/* Functions */ -void initialise_monitor_handles() -{ -} - -int _getpid(void) -{ - return 1; -} - -int _kill(int pid, int sig) -{ - (void)pid; - (void)sig; - errno = EINVAL; - return -1; -} - -void _exit (int status) -{ - _kill(status, -1); - while (1) {} /* Make sure we hang here */ -} - -__attribute__((weak)) int _read(int file, char *ptr, int len) -{ - (void)file; - int DataIdx; - - for (DataIdx = 0; DataIdx < len; DataIdx++) - { - *ptr++ = __io_getchar(); - } - - return len; -} - -__attribute__((weak)) int _write(int file, char *ptr, int len) -{ - (void)file; - int DataIdx; - - for (DataIdx = 0; DataIdx < len; DataIdx++) - { - __io_putchar(*ptr++); - } - return len; -} - -int _close(int file) -{ - (void)file; - return -1; -} - - -int _fstat(int file, struct stat *st) -{ - (void)file; - st->st_mode = S_IFCHR; - return 0; -} - -int _isatty(int file) -{ - (void)file; - return 1; -} - -int _lseek(int file, int ptr, int dir) -{ - (void)file; - (void)ptr; - (void)dir; - return 0; -} - -int _open(char *path, int flags, ...) -{ - (void)path; - (void)flags; - /* Pretend like we always fail */ - return -1; -} - -int _wait(int *status) -{ - (void)status; - errno = ECHILD; - return -1; -} - -int _unlink(char *name) -{ - (void)name; - errno = ENOENT; - return -1; -} - -int _times(struct tms *buf) -{ - (void)buf; - return -1; -} - -int _stat(char *file, struct stat *st) -{ - (void)file; - st->st_mode = S_IFCHR; - return 0; -} - -int _link(char *old, char *new) -{ - (void)old; - (void)new; - errno = EMLINK; - return -1; -} - -int _fork(void) -{ - errno = EAGAIN; - return -1; -} - -int _execve(char *name, char **argv, char **env) -{ - (void)name; - (void)argv; - (void)env; - errno = ENOMEM; - return -1; -} diff --git a/Core/Src/sysmem.c b/Core/Src/sysmem.c deleted file mode 100644 index 921ecef..0000000 --- a/Core/Src/sysmem.c +++ /dev/null @@ -1,79 +0,0 @@ -/** - ****************************************************************************** - * @file sysmem.c - * @author Generated by STM32CubeIDE - * @brief STM32CubeIDE System Memory calls file - * - * For more information about which C functions - * need which of these lowlevel functions - * please consult the newlib libc manual - ****************************************************************************** - * @attention - * - * Copyright (c) 2023 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Includes */ -#include -#include - -/** - * Pointer to the current high watermark of the heap usage - */ -static uint8_t *__sbrk_heap_end = NULL; - -/** - * @brief _sbrk() allocates memory to the newlib heap and is used by malloc - * and others from the C library - * - * @verbatim - * ############################################################################ - * # .data # .bss # newlib heap # MSP stack # - * # # # # Reserved by _Min_Stack_Size # - * ############################################################################ - * ^-- RAM start ^-- _end _estack, RAM end --^ - * @endverbatim - * - * This implementation starts allocating at the '_end' linker symbol - * The '_Min_Stack_Size' linker symbol reserves a memory for the MSP stack - * The implementation considers '_estack' linker symbol to be RAM end - * NOTE: If the MSP stack, at any point during execution, grows larger than the - * reserved size, please increase the '_Min_Stack_Size'. - * - * @param incr Memory size - * @return Pointer to allocated memory - */ -void *_sbrk(ptrdiff_t incr) -{ - 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; - const uint8_t *max_heap = (uint8_t *)stack_limit; - uint8_t *prev_heap_end; - - /* Initialize heap end at first call */ - if (NULL == __sbrk_heap_end) - { - __sbrk_heap_end = &_end; - } - - /* Protect heap from growing into the reserved MSP stack */ - if (__sbrk_heap_end + incr > max_heap) - { - errno = ENOMEM; - return (void *)-1; - } - - prev_heap_end = __sbrk_heap_end; - __sbrk_heap_end += incr; - - return (void *)prev_heap_end; -} diff --git a/Core/Src/system_stm32h7xx.c b/Core/Src/system_stm32h7xx.c deleted file mode 100644 index 86e6784..0000000 --- a/Core/Src/system_stm32h7xx.c +++ /dev/null @@ -1,450 +0,0 @@ -/** - ****************************************************************************** - * @file system_stm32h7xx.c - * @author MCD Application Team - * @brief CMSIS Cortex-Mx Device Peripheral Access Layer System Source File. - * - * This file provides two functions and one global variable to be called from - * user application: - * - SystemInit(): This function is called at startup just after reset and - * before branch to main program. This call is made inside - * the "startup_stm32h7xx.s" file. - * - * - SystemCoreClock variable: Contains the core clock, it can be used - * by the user application to setup the SysTick - * timer or configure other parameters. - * - * - SystemCoreClockUpdate(): Updates the variable SystemCoreClock and must - * be called whenever the core clock is changed - * during program execution. - * - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/** @addtogroup CMSIS - * @{ - */ - -/** @addtogroup stm32h7xx_system - * @{ - */ - -/** @addtogroup STM32H7xx_System_Private_Includes - * @{ - */ - -#include "stm32h7xx.h" -#include - -#if !defined (HSE_VALUE) -#define HSE_VALUE ((uint32_t)25000000) /*!< Value of the External oscillator in Hz */ -#endif /* HSE_VALUE */ - -#if !defined (CSI_VALUE) - #define CSI_VALUE ((uint32_t)4000000) /*!< Value of the Internal oscillator in Hz*/ -#endif /* CSI_VALUE */ - -#if !defined (HSI_VALUE) - #define HSI_VALUE ((uint32_t)64000000) /*!< Value of the Internal oscillator in Hz*/ -#endif /* HSI_VALUE */ - - -/** - * @} - */ - -/** @addtogroup STM32H7xx_System_Private_TypesDefinitions - * @{ - */ - -/** - * @} - */ - -/** @addtogroup STM32H7xx_System_Private_Defines - * @{ - */ - -/************************* Miscellaneous Configuration ************************/ -/*!< Uncomment the following line if you need to use initialized data in D2 domain SRAM (AHB SRAM) */ -/* #define DATA_IN_D2_SRAM */ - -/* Note: Following vector table addresses must be defined in line with linker - configuration. */ -/*!< Uncomment the following line if you need to relocate the vector table - anywhere in FLASH BANK1 or AXI SRAM, else the vector table is kept at the automatic - remap of boot address selected */ -/* #define USER_VECT_TAB_ADDRESS */ - -#if defined(USER_VECT_TAB_ADDRESS) -#if defined(DUAL_CORE) && defined(CORE_CM4) -/*!< Uncomment the following line if you need to relocate your vector Table - in D2 AXI SRAM else user remap will be done in FLASH BANK2. */ -/* #define VECT_TAB_SRAM */ -#if defined(VECT_TAB_SRAM) -#define VECT_TAB_BASE_ADDRESS D2_AXISRAM_BASE /*!< Vector Table base address field. - This value must be a multiple of 0x400. */ -#define VECT_TAB_OFFSET 0x00000000U /*!< Vector Table base offset field. - This value must be a multiple of 0x400. */ -#else -#define VECT_TAB_BASE_ADDRESS FLASH_BANK2_BASE /*!< Vector Table base address field. - This value must be a multiple of 0x400. */ -#define VECT_TAB_OFFSET 0x00000000U /*!< Vector Table base offset field. - This value must be a multiple of 0x400. */ -#endif /* VECT_TAB_SRAM */ -#else -/*!< Uncomment the following line if you need to relocate your vector Table - in D1 AXI SRAM else user remap will be done in FLASH BANK1. */ -/* #define VECT_TAB_SRAM */ -#if defined(VECT_TAB_SRAM) -#define VECT_TAB_BASE_ADDRESS D1_AXISRAM_BASE /*!< Vector Table base address field. - This value must be a multiple of 0x400. */ -#define VECT_TAB_OFFSET 0x00000000U /*!< Vector Table base offset field. - This value must be a multiple of 0x400. */ -#else -#define VECT_TAB_BASE_ADDRESS FLASH_BANK1_BASE /*!< Vector Table base address field. - This value must be a multiple of 0x400. */ -#define VECT_TAB_OFFSET 0x00000000U /*!< Vector Table base offset field. - This value must be a multiple of 0x400. */ -#endif /* VECT_TAB_SRAM */ -#endif /* DUAL_CORE && CORE_CM4 */ -#endif /* USER_VECT_TAB_ADDRESS */ -/******************************************************************************/ - -/** - * @} - */ - -/** @addtogroup STM32H7xx_System_Private_Macros - * @{ - */ - -/** - * @} - */ - -/** @addtogroup STM32H7xx_System_Private_Variables - * @{ - */ - /* This variable is updated in three ways: - 1) by calling CMSIS function SystemCoreClockUpdate() - 2) by calling HAL API function HAL_RCC_GetHCLKFreq() - 3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency - Note: If you use this function to configure the system clock; then there - is no need to call the 2 first functions listed above, since SystemCoreClock - variable is updated automatically. - */ - uint32_t SystemCoreClock = 64000000; - uint32_t SystemD2Clock = 64000000; - const uint8_t D1CorePrescTable[16] = {0, 0, 0, 0, 1, 2, 3, 4, 1, 2, 3, 4, 6, 7, 8, 9}; - -/** - * @} - */ - -/** @addtogroup STM32H7xx_System_Private_FunctionPrototypes - * @{ - */ - -/** - * @} - */ - -/** @addtogroup STM32H7xx_System_Private_Functions - * @{ - */ - -/** - * @brief Setup the microcontroller system - * Initialize the FPU setting and vector table location - * configuration. - * @param None - * @retval None - */ -void SystemInit (void) -{ -#if defined (DATA_IN_D2_SRAM) - __IO uint32_t tmpreg; -#endif /* DATA_IN_D2_SRAM */ - - /* FPU settings ------------------------------------------------------------*/ - #if (__FPU_PRESENT == 1) && (__FPU_USED == 1) - SCB->CPACR |= ((3UL << (10*2))|(3UL << (11*2))); /* set CP10 and CP11 Full Access */ - #endif - /* Reset the RCC clock configuration to the default reset state ------------*/ - - /* Increasing the CPU frequency */ - if(FLASH_LATENCY_DEFAULT > (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY))) - { - /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ - MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(FLASH_LATENCY_DEFAULT)); - } - - /* Set HSION bit */ - RCC->CR |= RCC_CR_HSION; - - /* Reset CFGR register */ - RCC->CFGR = 0x00000000; - - /* Reset HSEON, HSECSSON, CSION, HSI48ON, CSIKERON, PLL1ON, PLL2ON and PLL3ON bits */ - RCC->CR &= 0xEAF6ED7FU; - - /* Decreasing the number of wait states because of lower CPU frequency */ - if(FLASH_LATENCY_DEFAULT < (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY))) - { - /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ - MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(FLASH_LATENCY_DEFAULT)); - } - -#if defined(D3_SRAM_BASE) - /* Reset D1CFGR register */ - RCC->D1CFGR = 0x00000000; - - /* Reset D2CFGR register */ - RCC->D2CFGR = 0x00000000; - - /* Reset D3CFGR register */ - RCC->D3CFGR = 0x00000000; -#else - /* Reset CDCFGR1 register */ - RCC->CDCFGR1 = 0x00000000; - - /* Reset CDCFGR2 register */ - RCC->CDCFGR2 = 0x00000000; - - /* Reset SRDCFGR register */ - RCC->SRDCFGR = 0x00000000; -#endif - /* Reset PLLCKSELR register */ - RCC->PLLCKSELR = 0x02020200; - - /* Reset PLLCFGR register */ - RCC->PLLCFGR = 0x01FF0000; - /* Reset PLL1DIVR register */ - RCC->PLL1DIVR = 0x01010280; - /* Reset PLL1FRACR register */ - RCC->PLL1FRACR = 0x00000000; - - /* Reset PLL2DIVR register */ - RCC->PLL2DIVR = 0x01010280; - - /* Reset PLL2FRACR register */ - - RCC->PLL2FRACR = 0x00000000; - /* Reset PLL3DIVR register */ - RCC->PLL3DIVR = 0x01010280; - - /* Reset PLL3FRACR register */ - RCC->PLL3FRACR = 0x00000000; - - /* Reset HSEBYP bit */ - RCC->CR &= 0xFFFBFFFFU; - - /* Disable all interrupts */ - RCC->CIER = 0x00000000; - -#if (STM32H7_DEV_ID == 0x450UL) - /* dual core CM7 or single core line */ - if((DBGMCU->IDCODE & 0xFFFF0000U) < 0x20000000U) - { - /* if stm32h7 revY*/ - /* Change the switch matrix read issuing capability to 1 for the AXI SRAM target (Target 7) */ - *((__IO uint32_t*)0x51008108) = 0x000000001U; - } -#endif /* STM32H7_DEV_ID */ - -#if defined(DATA_IN_D2_SRAM) - /* in case of initialized data in D2 SRAM (AHB SRAM), enable the D2 SRAM clock (AHB SRAM clock) */ -#if defined(RCC_AHB2ENR_D2SRAM3EN) - RCC->AHB2ENR |= (RCC_AHB2ENR_D2SRAM1EN | RCC_AHB2ENR_D2SRAM2EN | RCC_AHB2ENR_D2SRAM3EN); -#elif defined(RCC_AHB2ENR_D2SRAM2EN) - RCC->AHB2ENR |= (RCC_AHB2ENR_D2SRAM1EN | RCC_AHB2ENR_D2SRAM2EN); -#else - RCC->AHB2ENR |= (RCC_AHB2ENR_AHBSRAM1EN | RCC_AHB2ENR_AHBSRAM2EN); -#endif /* RCC_AHB2ENR_D2SRAM3EN */ - - tmpreg = RCC->AHB2ENR; - (void) tmpreg; -#endif /* DATA_IN_D2_SRAM */ - -#if defined(DUAL_CORE) && defined(CORE_CM4) - /* Configure the Vector Table location add offset address for cortex-M4 ------------------*/ -#if defined(USER_VECT_TAB_ADDRESS) - SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal D2 AXI-RAM or in Internal FLASH */ -#endif /* USER_VECT_TAB_ADDRESS */ - -#else - /* - * Disable the FMC bank1 (enabled after reset). - * This, prevents CPU speculation access on this bank which blocks the use of FMC during - * 24us. During this time the others FMC master (such as LTDC) cannot use it! - */ - FMC_Bank1_R->BTCR[0] = 0x000030D2; - - /* Configure the Vector Table location -------------------------------------*/ -#if defined(USER_VECT_TAB_ADDRESS) - SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal D1 AXI-RAM or in Internal FLASH */ -#endif /* USER_VECT_TAB_ADDRESS */ - -#endif /*DUAL_CORE && CORE_CM4*/ -} - -/** - * @brief Update SystemCoreClock variable according to Clock Register Values. - * The SystemCoreClock variable contains the core clock , it can - * be used by the user application to setup the SysTick timer or configure - * other parameters. - * - * @note Each time the core clock changes, this function must be called - * to update SystemCoreClock variable value. Otherwise, any configuration - * based on this variable will be incorrect. - * - * @note - The system frequency computed by this function is not the real - * frequency in the chip. It is calculated based on the predefined - * constant and the selected clock source: - * - * - If SYSCLK source is CSI, SystemCoreClock will contain the CSI_VALUE(*) - * - If SYSCLK source is HSI, SystemCoreClock will contain the HSI_VALUE(**) - * - If SYSCLK source is HSE, SystemCoreClock will contain the HSE_VALUE(***) - * - If SYSCLK source is PLL, SystemCoreClock will contain the CSI_VALUE(*), - * HSI_VALUE(**) or HSE_VALUE(***) multiplied/divided by the PLL factors. - * - * (*) CSI_VALUE is a constant defined in stm32h7xx_hal.h file (default value - * 4 MHz) but the real value may vary depending on the variations - * in voltage and temperature. - * (**) HSI_VALUE is a constant defined in stm32h7xx_hal.h file (default value - * 64 MHz) but the real value may vary depending on the variations - * in voltage and temperature. - * - * (***)HSE_VALUE is a constant defined in stm32h7xx_hal.h file (default value - * 25 MHz), user has to ensure that HSE_VALUE is same as the real - * frequency of the crystal used. Otherwise, this function may - * have wrong result. - * - * - The result of this function could be not correct when using fractional - * value for HSE crystal. - * @param None - * @retval None - */ -void SystemCoreClockUpdate (void) -{ - uint32_t pllp, pllsource, pllm, pllfracen, hsivalue, tmp; - uint32_t common_system_clock; - float_t fracn1, pllvco; - - - /* Get SYSCLK source -------------------------------------------------------*/ - - switch (RCC->CFGR & RCC_CFGR_SWS) - { - case RCC_CFGR_SWS_HSI: /* HSI used as system clock source */ - common_system_clock = (uint32_t) (HSI_VALUE >> ((RCC->CR & RCC_CR_HSIDIV)>> 3)); - break; - - case RCC_CFGR_SWS_CSI: /* CSI used as system clock source */ - common_system_clock = CSI_VALUE; - break; - - case RCC_CFGR_SWS_HSE: /* HSE used as system clock source */ - common_system_clock = HSE_VALUE; - break; - - case RCC_CFGR_SWS_PLL1: /* PLL1 used as system clock source */ - - /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLLM) * PLLN - SYSCLK = PLL_VCO / PLLR - */ - pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC); - pllm = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM1)>> 4) ; - pllfracen = ((RCC->PLLCFGR & RCC_PLLCFGR_PLL1FRACEN)>>RCC_PLLCFGR_PLL1FRACEN_Pos); - fracn1 = (float_t)(uint32_t)(pllfracen* ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1)>> 3)); - - if (pllm != 0U) - { - switch (pllsource) - { - case RCC_PLLCKSELR_PLLSRC_HSI: /* HSI used as PLL clock source */ - - hsivalue = (HSI_VALUE >> ((RCC->CR & RCC_CR_HSIDIV)>> 3)) ; - pllvco = ( (float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1/(float_t)0x2000) +(float_t)1 ); - - break; - - case RCC_PLLCKSELR_PLLSRC_CSI: /* CSI used as PLL clock source */ - pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1/(float_t)0x2000) +(float_t)1 ); - break; - - case RCC_PLLCKSELR_PLLSRC_HSE: /* HSE used as PLL clock source */ - pllvco = ((float_t)HSE_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1/(float_t)0x2000) +(float_t)1 ); - break; - - default: - hsivalue = (HSI_VALUE >> ((RCC->CR & RCC_CR_HSIDIV)>> 3)) ; - pllvco = ((float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1/(float_t)0x2000) +(float_t)1 ); - break; - } - pllp = (((RCC->PLL1DIVR & RCC_PLL1DIVR_P1) >>9) + 1U ) ; - common_system_clock = (uint32_t)(float_t)(pllvco/(float_t)pllp); - } - else - { - common_system_clock = 0U; - } - break; - - default: - common_system_clock = (uint32_t) (HSI_VALUE >> ((RCC->CR & RCC_CR_HSIDIV)>> 3)); - break; - } - - /* Compute SystemClock frequency --------------------------------------------------*/ -#if defined (RCC_D1CFGR_D1CPRE) - tmp = D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE)>> RCC_D1CFGR_D1CPRE_Pos]; - - /* common_system_clock frequency : CM7 CPU frequency */ - common_system_clock >>= tmp; - - /* SystemD2Clock frequency : CM4 CPU, AXI and AHBs Clock frequency */ - SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE)>> RCC_D1CFGR_HPRE_Pos]) & 0x1FU)); - -#else - tmp = D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE)>> RCC_CDCFGR1_CDCPRE_Pos]; - - /* common_system_clock frequency : CM7 CPU frequency */ - common_system_clock >>= tmp; - - /* SystemD2Clock frequency : AXI and AHBs Clock frequency */ - SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_HPRE)>> RCC_CDCFGR1_HPRE_Pos]) & 0x1FU)); - -#endif - -#if defined(DUAL_CORE) && defined(CORE_CM4) - SystemCoreClock = SystemD2Clock; -#else - SystemCoreClock = common_system_clock; -#endif /* DUAL_CORE && CORE_CM4 */ -} - - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ diff --git a/Core/Startup/startup_stm32h723vghx.s b/Core/Startup/startup_stm32h723vghx.s deleted file mode 100644 index 73d8bd2..0000000 --- a/Core/Startup/startup_stm32h723vghx.s +++ /dev/null @@ -1,756 +0,0 @@ -/** - ****************************************************************************** - * @file startup_stm32h723xx.s - * @author MCD Application Team - * @brief STM32H723xx Devices vector table for GCC based toolchain. - * This module performs: - * - Set the initial SP - * - Set the initial PC == Reset_Handler, - * - Set the vector table entries with the exceptions ISR address - * - Branches to main in the C library (which eventually - * calls main()). - * After Reset the Cortex-M processor is in Thread mode, - * priority is Privileged, and the Stack is set to Main. - ****************************************************************************** - * @attention - * - * Copyright (c) 2019 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - - .syntax unified - .cpu cortex-m7 - .fpu softvfp - .thumb - -.global g_pfnVectors -.global Default_Handler - -/* start address for the initialization values of the .data section. -defined in linker script */ -.word _sidata -/* start address for the .data section. defined in linker script */ -.word _sdata -/* end address for the .data section. defined in linker script */ -.word _edata -/* start address for the .bss section. defined in linker script */ -.word _sbss -/* end address for the .bss section. defined in linker script */ -.word _ebss -/* stack used for SystemInit_ExtMemCtl; always internal RAM used */ - -/** - * @brief This is the code that gets called when the processor first - * starts execution following a reset event. Only the absolutely - * necessary set is performed, after which the application - * supplied main() routine is called. - * @param None - * @retval : None -*/ - - .section .text.Reset_Handler - .weak Reset_Handler - .type Reset_Handler, %function -Reset_Handler: - ldr sp, =_estack /* set stack pointer */ - -/* Call the clock system initialization function.*/ - bl SystemInit - -/* Copy the data segment initializers from flash to SRAM */ - ldr r0, =_sdata - ldr r1, =_edata - ldr r2, =_sidata - movs r3, #0 - b LoopCopyDataInit - -CopyDataInit: - ldr r4, [r2, r3] - str r4, [r0, r3] - adds r3, r3, #4 - -LoopCopyDataInit: - adds r4, r0, r3 - cmp r4, r1 - bcc CopyDataInit -/* Zero fill the bss segment. */ - ldr r2, =_sbss - ldr r4, =_ebss - movs r3, #0 - b LoopFillZerobss - -FillZerobss: - str r3, [r2] - adds r2, r2, #4 - -LoopFillZerobss: - cmp r2, r4 - bcc FillZerobss - -/* Call static constructors */ - bl __libc_init_array -/* Call the application's entry point.*/ - bl main - bx lr -.size Reset_Handler, .-Reset_Handler - -/** - * @brief This is the code that gets called when the processor receives an - * unexpected interrupt. This simply enters an infinite loop, preserving - * the system state for examination by a debugger. - * @param None - * @retval None -*/ - .section .text.Default_Handler,"ax",%progbits -Default_Handler: -Infinite_Loop: - b Infinite_Loop - .size Default_Handler, .-Default_Handler -/****************************************************************************** -* -* The minimal vector table for a Cortex M. Note that the proper constructs -* must be placed on this to ensure that it ends up at physical address -* 0x0000.0000. -* -*******************************************************************************/ - .section .isr_vector,"a",%progbits - .type g_pfnVectors, %object - .size g_pfnVectors, .-g_pfnVectors - - -g_pfnVectors: - .word _estack - .word Reset_Handler - - .word NMI_Handler - .word HardFault_Handler - .word MemManage_Handler - .word BusFault_Handler - .word UsageFault_Handler - .word 0 - .word 0 - .word 0 - .word 0 - .word SVC_Handler - .word DebugMon_Handler - .word 0 - .word PendSV_Handler - .word SysTick_Handler - - /* External Interrupts */ - .word WWDG_IRQHandler /* Window WatchDog */ - .word PVD_AVD_IRQHandler /* PVD/AVD through EXTI Line detection */ - .word TAMP_STAMP_IRQHandler /* Tamper and TimeStamps through the EXTI line */ - .word RTC_WKUP_IRQHandler /* RTC Wakeup through the EXTI line */ - .word FLASH_IRQHandler /* FLASH */ - .word RCC_IRQHandler /* RCC */ - .word EXTI0_IRQHandler /* EXTI Line0 */ - .word EXTI1_IRQHandler /* EXTI Line1 */ - .word EXTI2_IRQHandler /* EXTI Line2 */ - .word EXTI3_IRQHandler /* EXTI Line3 */ - .word EXTI4_IRQHandler /* EXTI Line4 */ - .word DMA1_Stream0_IRQHandler /* DMA1 Stream 0 */ - .word DMA1_Stream1_IRQHandler /* DMA1 Stream 1 */ - .word DMA1_Stream2_IRQHandler /* DMA1 Stream 2 */ - .word DMA1_Stream3_IRQHandler /* DMA1 Stream 3 */ - .word DMA1_Stream4_IRQHandler /* DMA1 Stream 4 */ - .word DMA1_Stream5_IRQHandler /* DMA1 Stream 5 */ - .word DMA1_Stream6_IRQHandler /* DMA1 Stream 6 */ - .word ADC_IRQHandler /* ADC1, ADC2 and ADC3s */ - .word FDCAN1_IT0_IRQHandler /* FDCAN1 interrupt line 0 */ - .word FDCAN2_IT0_IRQHandler /* FDCAN2 interrupt line 0 */ - .word FDCAN1_IT1_IRQHandler /* FDCAN1 interrupt line 1 */ - .word FDCAN2_IT1_IRQHandler /* FDCAN2 interrupt line 1 */ - .word EXTI9_5_IRQHandler /* External Line[9:5]s */ - .word TIM1_BRK_IRQHandler /* TIM1 Break interrupt */ - .word TIM1_UP_IRQHandler /* TIM1 Update interrupt */ - .word TIM1_TRG_COM_IRQHandler /* TIM1 Trigger and Commutation interrupt */ - .word TIM1_CC_IRQHandler /* TIM1 Capture Compare */ - .word TIM2_IRQHandler /* TIM2 */ - .word TIM3_IRQHandler /* TIM3 */ - .word TIM4_IRQHandler /* TIM4 */ - .word I2C1_EV_IRQHandler /* I2C1 Event */ - .word I2C1_ER_IRQHandler /* I2C1 Error */ - .word I2C2_EV_IRQHandler /* I2C2 Event */ - .word I2C2_ER_IRQHandler /* I2C2 Error */ - .word SPI1_IRQHandler /* SPI1 */ - .word SPI2_IRQHandler /* SPI2 */ - .word USART1_IRQHandler /* USART1 */ - .word USART2_IRQHandler /* USART2 */ - .word USART3_IRQHandler /* USART3 */ - .word EXTI15_10_IRQHandler /* External Line[15:10]s */ - .word RTC_Alarm_IRQHandler /* RTC Alarm (A and B) through EXTI Line */ - .word 0 /* Reserved */ - .word TIM8_BRK_TIM12_IRQHandler /* TIM8 Break and TIM12 */ - .word TIM8_UP_TIM13_IRQHandler /* TIM8 Update and TIM13 */ - .word TIM8_TRG_COM_TIM14_IRQHandler /* TIM8 Trigger and Commutation and TIM14 */ - .word TIM8_CC_IRQHandler /* TIM8 Capture Compare */ - .word DMA1_Stream7_IRQHandler /* DMA1 Stream7 */ - .word FMC_IRQHandler /* FMC */ - .word SDMMC1_IRQHandler /* SDMMC1 */ - .word TIM5_IRQHandler /* TIM5 */ - .word SPI3_IRQHandler /* SPI3 */ - .word UART4_IRQHandler /* UART4 */ - .word UART5_IRQHandler /* UART5 */ - .word TIM6_DAC_IRQHandler /* TIM6 and DAC1&2 underrun errors */ - .word TIM7_IRQHandler /* TIM7 */ - .word DMA2_Stream0_IRQHandler /* DMA2 Stream 0 */ - .word DMA2_Stream1_IRQHandler /* DMA2 Stream 1 */ - .word DMA2_Stream2_IRQHandler /* DMA2 Stream 2 */ - .word DMA2_Stream3_IRQHandler /* DMA2 Stream 3 */ - .word DMA2_Stream4_IRQHandler /* DMA2 Stream 4 */ - .word ETH_IRQHandler /* Ethernet */ - .word ETH_WKUP_IRQHandler /* Ethernet Wakeup through EXTI line */ - .word FDCAN_CAL_IRQHandler /* FDCAN calibration unit interrupt*/ - .word 0 /* Reserved */ - .word 0 /* Reserved */ - .word 0 /* Reserved */ - .word 0 /* Reserved */ - .word DMA2_Stream5_IRQHandler /* DMA2 Stream 5 */ - .word DMA2_Stream6_IRQHandler /* DMA2 Stream 6 */ - .word DMA2_Stream7_IRQHandler /* DMA2 Stream 7 */ - .word USART6_IRQHandler /* USART6 */ - .word I2C3_EV_IRQHandler /* I2C3 event */ - .word I2C3_ER_IRQHandler /* I2C3 error */ - .word OTG_HS_EP1_OUT_IRQHandler /* USB OTG HS End Point 1 Out */ - .word OTG_HS_EP1_IN_IRQHandler /* USB OTG HS End Point 1 In */ - .word OTG_HS_WKUP_IRQHandler /* USB OTG HS Wakeup through EXTI */ - .word OTG_HS_IRQHandler /* USB OTG HS */ - .word DCMI_PSSI_IRQHandler /* DCMI, PSSI */ - .word 0 /* Reserved */ - .word RNG_IRQHandler /* Rng */ - .word FPU_IRQHandler /* FPU */ - .word UART7_IRQHandler /* UART7 */ - .word UART8_IRQHandler /* UART8 */ - .word SPI4_IRQHandler /* SPI4 */ - .word SPI5_IRQHandler /* SPI5 */ - .word SPI6_IRQHandler /* SPI6 */ - .word SAI1_IRQHandler /* SAI1 */ - .word LTDC_IRQHandler /* LTDC */ - .word LTDC_ER_IRQHandler /* LTDC error */ - .word DMA2D_IRQHandler /* DMA2D */ - .word 0 /* Reserved */ - .word OCTOSPI1_IRQHandler /* OCTOSPI1 */ - .word LPTIM1_IRQHandler /* LPTIM1 */ - .word CEC_IRQHandler /* HDMI_CEC */ - .word I2C4_EV_IRQHandler /* I2C4 Event */ - .word I2C4_ER_IRQHandler /* I2C4 Error */ - .word SPDIF_RX_IRQHandler /* SPDIF_RX */ - .word 0 /* Reserved */ - .word 0 /* Reserved */ - .word 0 /* Reserved */ - .word 0 /* Reserved */ - .word DMAMUX1_OVR_IRQHandler /* DMAMUX1 Overrun interrupt */ - .word 0 /* Reserved */ - .word 0 /* Reserved */ - .word 0 /* Reserved */ - .word 0 /* Reserved */ - .word 0 /* Reserved */ - .word 0 /* Reserved */ - .word 0 /* Reserved */ - .word DFSDM1_FLT0_IRQHandler /* DFSDM Filter0 Interrupt */ - .word DFSDM1_FLT1_IRQHandler /* DFSDM Filter1 Interrupt */ - .word DFSDM1_FLT2_IRQHandler /* DFSDM Filter2 Interrupt */ - .word DFSDM1_FLT3_IRQHandler /* DFSDM Filter3 Interrupt */ - .word 0 /* Reserved */ - .word SWPMI1_IRQHandler /* Serial Wire Interface 1 global interrupt */ - .word TIM15_IRQHandler /* TIM15 global Interrupt */ - .word TIM16_IRQHandler /* TIM16 global Interrupt */ - .word TIM17_IRQHandler /* TIM17 global Interrupt */ - .word MDIOS_WKUP_IRQHandler /* MDIOS Wakeup Interrupt */ - .word MDIOS_IRQHandler /* MDIOS global Interrupt */ - .word 0 /* Reserved */ - .word MDMA_IRQHandler /* MDMA global Interrupt */ - .word 0 /* Reserved */ - .word SDMMC2_IRQHandler /* SDMMC2 global Interrupt */ - .word HSEM1_IRQHandler /* HSEM1 global Interrupt */ - .word 0 /* Reserved */ - .word ADC3_IRQHandler /* ADC3 global Interrupt */ - .word DMAMUX2_OVR_IRQHandler /* DMAMUX Overrun interrupt */ - .word BDMA_Channel0_IRQHandler /* BDMA Channel 0 global Interrupt */ - .word BDMA_Channel1_IRQHandler /* BDMA Channel 1 global Interrupt */ - .word BDMA_Channel2_IRQHandler /* BDMA Channel 2 global Interrupt */ - .word BDMA_Channel3_IRQHandler /* BDMA Channel 3 global Interrupt */ - .word BDMA_Channel4_IRQHandler /* BDMA Channel 4 global Interrupt */ - .word BDMA_Channel5_IRQHandler /* BDMA Channel 5 global Interrupt */ - .word BDMA_Channel6_IRQHandler /* BDMA Channel 6 global Interrupt */ - .word BDMA_Channel7_IRQHandler /* BDMA Channel 7 global Interrupt */ - .word COMP1_IRQHandler /* COMP1 global Interrupt */ - .word LPTIM2_IRQHandler /* LP TIM2 global interrupt */ - .word LPTIM3_IRQHandler /* LP TIM3 global interrupt */ - .word LPTIM4_IRQHandler /* LP TIM4 global interrupt */ - .word LPTIM5_IRQHandler /* LP TIM5 global interrupt */ - .word LPUART1_IRQHandler /* LP UART1 interrupt */ - .word 0 /* Reserved */ - .word CRS_IRQHandler /* Clock Recovery Global Interrupt */ - .word ECC_IRQHandler /* ECC diagnostic Global Interrupt */ - .word SAI4_IRQHandler /* SAI4 global interrupt */ - .word DTS_IRQHandler /* Digital Temperature Sensor interrupt */ - .word 0 /* Reserved */ - .word WAKEUP_PIN_IRQHandler /* Interrupt for all 6 wake-up pins */ - .word OCTOSPI2_IRQHandler /* OCTOSPI2 Interrupt */ - .word 0 /* Reserved */ - .word 0 /* Reserved */ - .word FMAC_IRQHandler /* FMAC Interrupt */ - .word CORDIC_IRQHandler /* CORDIC Interrupt */ - .word UART9_IRQHandler /* UART9 Interrupt */ - .word USART10_IRQHandler /* UART10 Interrupt */ - .word I2C5_EV_IRQHandler /* I2C5 Event Interrupt */ - .word I2C5_ER_IRQHandler /* I2C5 Error Interrupt */ - .word FDCAN3_IT0_IRQHandler /* FDCAN3 interrupt line 0 */ - .word FDCAN3_IT1_IRQHandler /* FDCAN3 interrupt line 1 */ - .word TIM23_IRQHandler /* TIM23 global interrupt */ - .word TIM24_IRQHandler /* TIM24 global interrupt */ - -/******************************************************************************* -* -* Provide weak aliases for each Exception handler to the Default_Handler. -* As they are weak aliases, any function with the same name will override -* this definition. -* -*******************************************************************************/ - .weak NMI_Handler - .thumb_set NMI_Handler,Default_Handler - - .weak HardFault_Handler - .thumb_set HardFault_Handler,Default_Handler - - .weak MemManage_Handler - .thumb_set MemManage_Handler,Default_Handler - - .weak BusFault_Handler - .thumb_set BusFault_Handler,Default_Handler - - .weak UsageFault_Handler - .thumb_set UsageFault_Handler,Default_Handler - - .weak SVC_Handler - .thumb_set SVC_Handler,Default_Handler - - .weak DebugMon_Handler - .thumb_set DebugMon_Handler,Default_Handler - - .weak PendSV_Handler - .thumb_set PendSV_Handler,Default_Handler - - .weak SysTick_Handler - .thumb_set SysTick_Handler,Default_Handler - - .weak WWDG_IRQHandler - .thumb_set WWDG_IRQHandler,Default_Handler - - .weak PVD_AVD_IRQHandler - .thumb_set PVD_AVD_IRQHandler,Default_Handler - - .weak TAMP_STAMP_IRQHandler - .thumb_set TAMP_STAMP_IRQHandler,Default_Handler - - .weak RTC_WKUP_IRQHandler - .thumb_set RTC_WKUP_IRQHandler,Default_Handler - - .weak FLASH_IRQHandler - .thumb_set FLASH_IRQHandler,Default_Handler - - .weak RCC_IRQHandler - .thumb_set RCC_IRQHandler,Default_Handler - - .weak EXTI0_IRQHandler - .thumb_set EXTI0_IRQHandler,Default_Handler - - .weak EXTI1_IRQHandler - .thumb_set EXTI1_IRQHandler,Default_Handler - - .weak EXTI2_IRQHandler - .thumb_set EXTI2_IRQHandler,Default_Handler - - .weak EXTI3_IRQHandler - .thumb_set EXTI3_IRQHandler,Default_Handler - - .weak EXTI4_IRQHandler - .thumb_set EXTI4_IRQHandler,Default_Handler - - .weak DMA1_Stream0_IRQHandler - .thumb_set DMA1_Stream0_IRQHandler,Default_Handler - - .weak DMA1_Stream1_IRQHandler - .thumb_set DMA1_Stream1_IRQHandler,Default_Handler - - .weak DMA1_Stream2_IRQHandler - .thumb_set DMA1_Stream2_IRQHandler,Default_Handler - - .weak DMA1_Stream3_IRQHandler - .thumb_set DMA1_Stream3_IRQHandler,Default_Handler - - .weak DMA1_Stream4_IRQHandler - .thumb_set DMA1_Stream4_IRQHandler,Default_Handler - - .weak DMA1_Stream5_IRQHandler - .thumb_set DMA1_Stream5_IRQHandler,Default_Handler - - .weak DMA1_Stream6_IRQHandler - .thumb_set DMA1_Stream6_IRQHandler,Default_Handler - - .weak ADC_IRQHandler - .thumb_set ADC_IRQHandler,Default_Handler - - .weak FDCAN1_IT0_IRQHandler - .thumb_set FDCAN1_IT0_IRQHandler,Default_Handler - - .weak FDCAN2_IT0_IRQHandler - .thumb_set FDCAN2_IT0_IRQHandler,Default_Handler - - .weak FDCAN1_IT1_IRQHandler - .thumb_set FDCAN1_IT1_IRQHandler,Default_Handler - - .weak FDCAN2_IT1_IRQHandler - .thumb_set FDCAN2_IT1_IRQHandler,Default_Handler - - .weak EXTI9_5_IRQHandler - .thumb_set EXTI9_5_IRQHandler,Default_Handler - - .weak TIM1_BRK_IRQHandler - .thumb_set TIM1_BRK_IRQHandler,Default_Handler - - .weak TIM1_UP_IRQHandler - .thumb_set TIM1_UP_IRQHandler,Default_Handler - - .weak TIM1_TRG_COM_IRQHandler - .thumb_set TIM1_TRG_COM_IRQHandler,Default_Handler - - .weak TIM1_CC_IRQHandler - .thumb_set TIM1_CC_IRQHandler,Default_Handler - - .weak TIM2_IRQHandler - .thumb_set TIM2_IRQHandler,Default_Handler - - .weak TIM3_IRQHandler - .thumb_set TIM3_IRQHandler,Default_Handler - - .weak TIM4_IRQHandler - .thumb_set TIM4_IRQHandler,Default_Handler - - .weak I2C1_EV_IRQHandler - .thumb_set I2C1_EV_IRQHandler,Default_Handler - - .weak I2C1_ER_IRQHandler - .thumb_set I2C1_ER_IRQHandler,Default_Handler - - .weak I2C2_EV_IRQHandler - .thumb_set I2C2_EV_IRQHandler,Default_Handler - - .weak I2C2_ER_IRQHandler - .thumb_set I2C2_ER_IRQHandler,Default_Handler - - .weak SPI1_IRQHandler - .thumb_set SPI1_IRQHandler,Default_Handler - - .weak SPI2_IRQHandler - .thumb_set SPI2_IRQHandler,Default_Handler - - .weak USART1_IRQHandler - .thumb_set USART1_IRQHandler,Default_Handler - - .weak USART2_IRQHandler - .thumb_set USART2_IRQHandler,Default_Handler - - .weak USART3_IRQHandler - .thumb_set USART3_IRQHandler,Default_Handler - - .weak EXTI15_10_IRQHandler - .thumb_set EXTI15_10_IRQHandler,Default_Handler - - .weak RTC_Alarm_IRQHandler - .thumb_set RTC_Alarm_IRQHandler,Default_Handler - - .weak TIM8_BRK_TIM12_IRQHandler - .thumb_set TIM8_BRK_TIM12_IRQHandler,Default_Handler - - .weak TIM8_UP_TIM13_IRQHandler - .thumb_set TIM8_UP_TIM13_IRQHandler,Default_Handler - - .weak TIM8_TRG_COM_TIM14_IRQHandler - .thumb_set TIM8_TRG_COM_TIM14_IRQHandler,Default_Handler - - .weak TIM8_CC_IRQHandler - .thumb_set TIM8_CC_IRQHandler,Default_Handler - - .weak DMA1_Stream7_IRQHandler - .thumb_set DMA1_Stream7_IRQHandler,Default_Handler - - .weak FMC_IRQHandler - .thumb_set FMC_IRQHandler,Default_Handler - - .weak SDMMC1_IRQHandler - .thumb_set SDMMC1_IRQHandler,Default_Handler - - .weak TIM5_IRQHandler - .thumb_set TIM5_IRQHandler,Default_Handler - - .weak SPI3_IRQHandler - .thumb_set SPI3_IRQHandler,Default_Handler - - .weak UART4_IRQHandler - .thumb_set UART4_IRQHandler,Default_Handler - - .weak UART5_IRQHandler - .thumb_set UART5_IRQHandler,Default_Handler - - .weak TIM6_DAC_IRQHandler - .thumb_set TIM6_DAC_IRQHandler,Default_Handler - - .weak TIM7_IRQHandler - .thumb_set TIM7_IRQHandler,Default_Handler - - .weak DMA2_Stream0_IRQHandler - .thumb_set DMA2_Stream0_IRQHandler,Default_Handler - - .weak DMA2_Stream1_IRQHandler - .thumb_set DMA2_Stream1_IRQHandler,Default_Handler - - .weak DMA2_Stream2_IRQHandler - .thumb_set DMA2_Stream2_IRQHandler,Default_Handler - - .weak DMA2_Stream3_IRQHandler - .thumb_set DMA2_Stream3_IRQHandler,Default_Handler - - .weak DMA2_Stream4_IRQHandler - .thumb_set DMA2_Stream4_IRQHandler,Default_Handler - - .weak ETH_IRQHandler - .thumb_set ETH_IRQHandler,Default_Handler - - .weak ETH_WKUP_IRQHandler - .thumb_set ETH_WKUP_IRQHandler,Default_Handler - - .weak FDCAN_CAL_IRQHandler - .thumb_set FDCAN_CAL_IRQHandler,Default_Handler - - .weak DMA2_Stream5_IRQHandler - .thumb_set DMA2_Stream5_IRQHandler,Default_Handler - - .weak DMA2_Stream6_IRQHandler - .thumb_set DMA2_Stream6_IRQHandler,Default_Handler - - .weak DMA2_Stream7_IRQHandler - .thumb_set DMA2_Stream7_IRQHandler,Default_Handler - - .weak USART6_IRQHandler - .thumb_set USART6_IRQHandler,Default_Handler - - .weak I2C3_EV_IRQHandler - .thumb_set I2C3_EV_IRQHandler,Default_Handler - - .weak I2C3_ER_IRQHandler - .thumb_set I2C3_ER_IRQHandler,Default_Handler - - .weak OTG_HS_EP1_OUT_IRQHandler - .thumb_set OTG_HS_EP1_OUT_IRQHandler,Default_Handler - - .weak OTG_HS_EP1_IN_IRQHandler - .thumb_set OTG_HS_EP1_IN_IRQHandler,Default_Handler - - .weak OTG_HS_WKUP_IRQHandler - .thumb_set OTG_HS_WKUP_IRQHandler,Default_Handler - - .weak OTG_HS_IRQHandler - .thumb_set OTG_HS_IRQHandler,Default_Handler - - .weak DCMI_PSSI_IRQHandler - .thumb_set DCMI_PSSI_IRQHandler,Default_Handler - - .weak RNG_IRQHandler - .thumb_set RNG_IRQHandler,Default_Handler - - .weak FPU_IRQHandler - .thumb_set FPU_IRQHandler,Default_Handler - - .weak UART7_IRQHandler - .thumb_set UART7_IRQHandler,Default_Handler - - .weak UART8_IRQHandler - .thumb_set UART8_IRQHandler,Default_Handler - - .weak SPI4_IRQHandler - .thumb_set SPI4_IRQHandler,Default_Handler - - .weak SPI5_IRQHandler - .thumb_set SPI5_IRQHandler,Default_Handler - - .weak SPI6_IRQHandler - .thumb_set SPI6_IRQHandler,Default_Handler - - .weak SAI1_IRQHandler - .thumb_set SAI1_IRQHandler,Default_Handler - - .weak LTDC_IRQHandler - .thumb_set LTDC_IRQHandler,Default_Handler - - .weak LTDC_ER_IRQHandler - .thumb_set LTDC_ER_IRQHandler,Default_Handler - - .weak DMA2D_IRQHandler - .thumb_set DMA2D_IRQHandler,Default_Handler - - .weak OCTOSPI1_IRQHandler - .thumb_set OCTOSPI1_IRQHandler,Default_Handler - - .weak LPTIM1_IRQHandler - .thumb_set LPTIM1_IRQHandler,Default_Handler - - .weak CEC_IRQHandler - .thumb_set CEC_IRQHandler,Default_Handler - - .weak I2C4_EV_IRQHandler - .thumb_set I2C4_EV_IRQHandler,Default_Handler - - .weak I2C4_ER_IRQHandler - .thumb_set I2C4_ER_IRQHandler,Default_Handler - - .weak SPDIF_RX_IRQHandler - .thumb_set SPDIF_RX_IRQHandler,Default_Handler - - .weak DMAMUX1_OVR_IRQHandler - .thumb_set DMAMUX1_OVR_IRQHandler,Default_Handler - - .weak DFSDM1_FLT0_IRQHandler - .thumb_set DFSDM1_FLT0_IRQHandler,Default_Handler - - .weak DFSDM1_FLT1_IRQHandler - .thumb_set DFSDM1_FLT1_IRQHandler,Default_Handler - - .weak DFSDM1_FLT2_IRQHandler - .thumb_set DFSDM1_FLT2_IRQHandler,Default_Handler - - .weak DFSDM1_FLT3_IRQHandler - .thumb_set DFSDM1_FLT3_IRQHandler,Default_Handler - - .weak SWPMI1_IRQHandler - .thumb_set SWPMI1_IRQHandler,Default_Handler - - .weak TIM15_IRQHandler - .thumb_set TIM15_IRQHandler,Default_Handler - - .weak TIM16_IRQHandler - .thumb_set TIM16_IRQHandler,Default_Handler - - .weak TIM17_IRQHandler - .thumb_set TIM17_IRQHandler,Default_Handler - - .weak MDIOS_WKUP_IRQHandler - .thumb_set MDIOS_WKUP_IRQHandler,Default_Handler - - .weak MDIOS_IRQHandler - .thumb_set MDIOS_IRQHandler,Default_Handler - - .weak MDMA_IRQHandler - .thumb_set MDMA_IRQHandler,Default_Handler - - .weak SDMMC2_IRQHandler - .thumb_set SDMMC2_IRQHandler,Default_Handler - - .weak HSEM1_IRQHandler - .thumb_set HSEM1_IRQHandler,Default_Handler - - .weak ADC3_IRQHandler - .thumb_set ADC3_IRQHandler,Default_Handler - - .weak DMAMUX2_OVR_IRQHandler - .thumb_set DMAMUX2_OVR_IRQHandler,Default_Handler - - .weak BDMA_Channel0_IRQHandler - .thumb_set BDMA_Channel0_IRQHandler,Default_Handler - - .weak BDMA_Channel1_IRQHandler - .thumb_set BDMA_Channel1_IRQHandler,Default_Handler - - .weak BDMA_Channel2_IRQHandler - .thumb_set BDMA_Channel2_IRQHandler,Default_Handler - - .weak BDMA_Channel3_IRQHandler - .thumb_set BDMA_Channel3_IRQHandler,Default_Handler - - .weak BDMA_Channel4_IRQHandler - .thumb_set BDMA_Channel4_IRQHandler,Default_Handler - - .weak BDMA_Channel5_IRQHandler - .thumb_set BDMA_Channel5_IRQHandler,Default_Handler - - .weak BDMA_Channel6_IRQHandler - .thumb_set BDMA_Channel6_IRQHandler,Default_Handler - - .weak BDMA_Channel7_IRQHandler - .thumb_set BDMA_Channel7_IRQHandler,Default_Handler - - .weak COMP1_IRQHandler - .thumb_set COMP1_IRQHandler,Default_Handler - - .weak LPTIM2_IRQHandler - .thumb_set LPTIM2_IRQHandler,Default_Handler - - .weak LPTIM3_IRQHandler - .thumb_set LPTIM3_IRQHandler,Default_Handler - - .weak LPTIM4_IRQHandler - .thumb_set LPTIM4_IRQHandler,Default_Handler - - .weak LPTIM5_IRQHandler - .thumb_set LPTIM5_IRQHandler,Default_Handler - - .weak LPUART1_IRQHandler - .thumb_set LPUART1_IRQHandler,Default_Handler - - .weak CRS_IRQHandler - .thumb_set CRS_IRQHandler,Default_Handler - - .weak ECC_IRQHandler - .thumb_set ECC_IRQHandler,Default_Handler - - .weak SAI4_IRQHandler - .thumb_set SAI4_IRQHandler,Default_Handler - - .weak DTS_IRQHandler - .thumb_set DTS_IRQHandler,Default_Handler - - .weak WAKEUP_PIN_IRQHandler - .thumb_set WAKEUP_PIN_IRQHandler,Default_Handler - - .weak OCTOSPI2_IRQHandler - .thumb_set OCTOSPI2_IRQHandler,Default_Handler - - .weak FMAC_IRQHandler - .thumb_set FMAC_IRQHandler,Default_Handler - - .weak CORDIC_IRQHandler - .thumb_set CORDIC_IRQHandler,Default_Handler - - .weak UART9_IRQHandler - .thumb_set UART9_IRQHandler,Default_Handler - - .weak USART10_IRQHandler - .thumb_set USART10_IRQHandler,Default_Handler - - .weak I2C5_EV_IRQHandler - .thumb_set I2C5_EV_IRQHandler,Default_Handler - - .weak I2C5_ER_IRQHandler - .thumb_set I2C5_ER_IRQHandler,Default_Handler - - .weak FDCAN3_IT0_IRQHandler - .thumb_set FDCAN3_IT0_IRQHandler,Default_Handler - - .weak FDCAN3_IT1_IRQHandler - .thumb_set FDCAN3_IT1_IRQHandler,Default_Handler - - .weak TIM23_IRQHandler - .thumb_set TIM23_IRQHandler,Default_Handler - - .weak TIM24_IRQHandler - .thumb_set TIM24_IRQHandler,Default_Handler - - diff --git a/Debug/Core/Src/freertos.cyclo b/Debug/Core/Src/freertos.cyclo deleted file mode 100644 index 1fcc95a..0000000 --- a/Debug/Core/Src/freertos.cyclo +++ /dev/null @@ -1,3 +0,0 @@ -../Core/Src/freertos.c:65:13:vApplicationStackOverflowHook 1 -../Core/Src/freertos.c:77:6:vApplicationGetIdleTaskMemory 1 -../Core/Src/freertos.c:90:6:vApplicationGetTimerTaskMemory 1 diff --git a/Debug/Core/Src/freertos.d b/Debug/Core/Src/freertos.d deleted file mode 100644 index 2eaa058..0000000 --- a/Debug/Core/Src/freertos.d +++ /dev/null @@ -1,98 +0,0 @@ -Core/Src/freertos.o: ../Core/Src/freertos.c \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Core/Inc/main.h ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Core/Src/freertos.o b/Debug/Core/Src/freertos.o deleted file mode 100644 index c8c50c0..0000000 Binary files a/Debug/Core/Src/freertos.o and /dev/null differ diff --git a/Debug/Core/Src/freertos.su b/Debug/Core/Src/freertos.su deleted file mode 100644 index 4771319..0000000 --- a/Debug/Core/Src/freertos.su +++ /dev/null @@ -1,3 +0,0 @@ -../Core/Src/freertos.c:65:13:vApplicationStackOverflowHook 16 static -../Core/Src/freertos.c:77:6:vApplicationGetIdleTaskMemory 24 static -../Core/Src/freertos.c:90:6:vApplicationGetTimerTaskMemory 24 static diff --git a/Debug/Core/Src/main.cyclo b/Debug/Core/Src/main.cyclo deleted file mode 100644 index 6f599e8..0000000 --- a/Debug/Core/Src/main.cyclo +++ /dev/null @@ -1,21 +0,0 @@ -../Drivers/CMSIS/Include/core_cm7.h:2660:26:ITM_SendChar 4 -../Core/Src/main.c:107:5:_write 2 -../Core/Src/main.c:118:5:main 5 -../Core/Src/main.c:221:6:SystemClock_Config 4 -../Core/Src/main.c:280:13:MX_FDCAN1_Init 2 -../Core/Src/main.c:333:13:MX_FDCAN2_Init 2 -../Core/Src/main.c:386:13:MX_FDCAN3_Init 2 -../Core/Src/main.c:439:13:MX_SDMMC1_SD_Init 1 -../Core/Src/main.c:466:13:MX_TIM3_Init 4 -../Core/Src/main.c:511:13:MX_UART4_Init 5 -../Core/Src/main.c:559:13:MX_UART7_Init 5 -../Core/Src/main.c:607:13:MX_UART8_Init 5 -../Core/Src/main.c:653:13:MX_DMA_Init 1 -../Core/Src/main.c:671:13:MX_MDMA_Init 3 -../Core/Src/main.c:718:13:MX_GPIO_Init 1 -../Core/Src/main.c:769:6:lwftp_init 1 -../Core/Src/main.c:804:6:StartDefaultTask 1 -../Core/Src/main.c:835:6:StartDebugTask 1 -../Core/Src/main.c:848:6:MPU_Config 1 -../Core/Src/main.c:916:6:HAL_TIM_PeriodElapsedCallback 2 -../Core/Src/main.c:933:6:Error_Handler 1 diff --git a/Debug/Core/Src/main.d b/Debug/Core/Src/main.d deleted file mode 100644 index c1f1087..0000000 --- a/Debug/Core/Src/main.d +++ /dev/null @@ -1,206 +0,0 @@ -Core/Src/main.o: ../Core/Src/main.c ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../FATFS/App/fatfs.h ../Middlewares/Third_Party/FatFs/src/ff.h \ - ../Middlewares/Third_Party/FatFs/src/integer.h ../FATFS/Target/ffconf.h \ - ../FATFS/Target/bsp_driver_sd.h ../FATFS/Target/fatfs_platform.h \ - ../Middlewares/Third_Party/FatFs/src/ff_gen_drv.h \ - ../Middlewares/Third_Party/FatFs/src/diskio.h \ - ../Middlewares/Third_Party/FatFs/src/ff.h ../FATFS/Target/sd_diskio.h \ - ../LWIP/App/lwip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/netif/etharp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/etharp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ethernet.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ieee.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/etharp.h \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ethernet.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/dhcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h \ - ../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h \ - ../LWIP/Target/ethernetif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcpip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/api.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netbuf.h \ - C:/_NoSleep/STM32/TBD_TaxiBoard/LWFTPC/lwftpc.h -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../FATFS/App/fatfs.h: -../Middlewares/Third_Party/FatFs/src/ff.h: -../Middlewares/Third_Party/FatFs/src/integer.h: -../FATFS/Target/ffconf.h: -../FATFS/Target/bsp_driver_sd.h: -../FATFS/Target/fatfs_platform.h: -../Middlewares/Third_Party/FatFs/src/ff_gen_drv.h: -../Middlewares/Third_Party/FatFs/src/diskio.h: -../Middlewares/Third_Party/FatFs/src/ff.h: -../FATFS/Target/sd_diskio.h: -../LWIP/App/lwip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/netif/etharp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/etharp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ethernet.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ieee.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/etharp.h: -../Middlewares/Third_Party/LwIP/src/include/netif/ethernet.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/dhcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h: -../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h: -../LWIP/Target/ethernetif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcpip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/api.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netbuf.h: -C:/_NoSleep/STM32/TBD_TaxiBoard/LWFTPC/lwftpc.h: diff --git a/Debug/Core/Src/main.o b/Debug/Core/Src/main.o deleted file mode 100644 index 3f64a42..0000000 Binary files a/Debug/Core/Src/main.o and /dev/null differ diff --git a/Debug/Core/Src/main.su b/Debug/Core/Src/main.su deleted file mode 100644 index 4daca66..0000000 --- a/Debug/Core/Src/main.su +++ /dev/null @@ -1,21 +0,0 @@ -../Drivers/CMSIS/Include/core_cm7.h:2660:26:ITM_SendChar 16 static,ignoring_inline_asm -../Core/Src/main.c:107:5:_write 32 static -../Core/Src/main.c:118:5:main 88 static,ignoring_inline_asm -../Core/Src/main.c:221:6:SystemClock_Config 120 static -../Core/Src/main.c:280:13:MX_FDCAN1_Init 8 static -../Core/Src/main.c:333:13:MX_FDCAN2_Init 8 static -../Core/Src/main.c:386:13:MX_FDCAN3_Init 8 static -../Core/Src/main.c:439:13:MX_SDMMC1_SD_Init 4 static -../Core/Src/main.c:466:13:MX_TIM3_Init 40 static -../Core/Src/main.c:511:13:MX_UART4_Init 8 static -../Core/Src/main.c:559:13:MX_UART7_Init 8 static -../Core/Src/main.c:607:13:MX_UART8_Init 8 static -../Core/Src/main.c:653:13:MX_DMA_Init 16 static -../Core/Src/main.c:671:13:MX_MDMA_Init 16 static -../Core/Src/main.c:718:13:MX_GPIO_Init 56 static -../Core/Src/main.c:769:6:lwftp_init 16 static -../Core/Src/main.c:804:6:StartDefaultTask 24 static -../Core/Src/main.c:835:6:StartDebugTask 16 static -../Core/Src/main.c:848:6:MPU_Config 24 static -../Core/Src/main.c:916:6:HAL_TIM_PeriodElapsedCallback 16 static -../Core/Src/main.c:933:6:Error_Handler 4 static,ignoring_inline_asm diff --git a/Debug/Core/Src/stm32h7xx_hal_msp.cyclo b/Debug/Core/Src/stm32h7xx_hal_msp.cyclo deleted file mode 100644 index f232532..0000000 --- a/Debug/Core/Src/stm32h7xx_hal_msp.cyclo +++ /dev/null @@ -1,9 +0,0 @@ -../Core/Src/stm32h7xx_hal_msp.c:65:6:HAL_MspInit 1 -../Core/Src/stm32h7xx_hal_msp.c:90:6:HAL_FDCAN_MspInit 10 -../Core/Src/stm32h7xx_hal_msp.c:223:6:HAL_FDCAN_MspDeInit 7 -../Core/Src/stm32h7xx_hal_msp.c:303:6:HAL_SD_MspInit 3 -../Core/Src/stm32h7xx_hal_msp.c:366:6:HAL_SD_MspDeInit 2 -../Core/Src/stm32h7xx_hal_msp.c:404:6:HAL_TIM_Base_MspInit 2 -../Core/Src/stm32h7xx_hal_msp.c:426:6:HAL_TIM_Base_MspDeInit 2 -../Core/Src/stm32h7xx_hal_msp.c:448:6:HAL_UART_MspInit 8 -../Core/Src/stm32h7xx_hal_msp.c:582:6:HAL_UART_MspDeInit 4 diff --git a/Debug/Core/Src/stm32h7xx_hal_msp.d b/Debug/Core/Src/stm32h7xx_hal_msp.d deleted file mode 100644 index 418e428..0000000 --- a/Debug/Core/Src/stm32h7xx_hal_msp.d +++ /dev/null @@ -1,80 +0,0 @@ -Core/Src/stm32h7xx_hal_msp.o: ../Core/Src/stm32h7xx_hal_msp.c \ - ../Core/Inc/main.h ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Core/Src/stm32h7xx_hal_msp.o b/Debug/Core/Src/stm32h7xx_hal_msp.o deleted file mode 100644 index daf160a..0000000 Binary files a/Debug/Core/Src/stm32h7xx_hal_msp.o and /dev/null differ diff --git a/Debug/Core/Src/stm32h7xx_hal_msp.su b/Debug/Core/Src/stm32h7xx_hal_msp.su deleted file mode 100644 index 563e3a0..0000000 --- a/Debug/Core/Src/stm32h7xx_hal_msp.su +++ /dev/null @@ -1,9 +0,0 @@ -../Core/Src/stm32h7xx_hal_msp.c:65:6:HAL_MspInit 16 static -../Core/Src/stm32h7xx_hal_msp.c:90:6:HAL_FDCAN_MspInit 248 static -../Core/Src/stm32h7xx_hal_msp.c:223:6:HAL_FDCAN_MspDeInit 16 static -../Core/Src/stm32h7xx_hal_msp.c:303:6:HAL_SD_MspInit 240 static -../Core/Src/stm32h7xx_hal_msp.c:366:6:HAL_SD_MspDeInit 16 static -../Core/Src/stm32h7xx_hal_msp.c:404:6:HAL_TIM_Base_MspInit 24 static -../Core/Src/stm32h7xx_hal_msp.c:426:6:HAL_TIM_Base_MspDeInit 16 static -../Core/Src/stm32h7xx_hal_msp.c:448:6:HAL_UART_MspInit 248 static -../Core/Src/stm32h7xx_hal_msp.c:582:6:HAL_UART_MspDeInit 16 static diff --git a/Debug/Core/Src/stm32h7xx_hal_timebase_tim.cyclo b/Debug/Core/Src/stm32h7xx_hal_timebase_tim.cyclo deleted file mode 100644 index dd0e910..0000000 --- a/Debug/Core/Src/stm32h7xx_hal_timebase_tim.cyclo +++ /dev/null @@ -1,3 +0,0 @@ -../Core/Src/stm32h7xx_hal_timebase_tim.c:41:19:HAL_InitTick 4 -../Core/Src/stm32h7xx_hal_timebase_tim.c:114:6:HAL_SuspendTick 1 -../Core/Src/stm32h7xx_hal_timebase_tim.c:126:6:HAL_ResumeTick 1 diff --git a/Debug/Core/Src/stm32h7xx_hal_timebase_tim.d b/Debug/Core/Src/stm32h7xx_hal_timebase_tim.d deleted file mode 100644 index abbafec..0000000 --- a/Debug/Core/Src/stm32h7xx_hal_timebase_tim.d +++ /dev/null @@ -1,80 +0,0 @@ -Core/Src/stm32h7xx_hal_timebase_tim.o: \ - ../Core/Src/stm32h7xx_hal_timebase_tim.c \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Core/Src/stm32h7xx_hal_timebase_tim.o b/Debug/Core/Src/stm32h7xx_hal_timebase_tim.o deleted file mode 100644 index 30750bf..0000000 Binary files a/Debug/Core/Src/stm32h7xx_hal_timebase_tim.o and /dev/null differ diff --git a/Debug/Core/Src/stm32h7xx_hal_timebase_tim.su b/Debug/Core/Src/stm32h7xx_hal_timebase_tim.su deleted file mode 100644 index 65815f1..0000000 --- a/Debug/Core/Src/stm32h7xx_hal_timebase_tim.su +++ /dev/null @@ -1,3 +0,0 @@ -../Core/Src/stm32h7xx_hal_timebase_tim.c:41:19:HAL_InitTick 72 static -../Core/Src/stm32h7xx_hal_timebase_tim.c:114:6:HAL_SuspendTick 4 static -../Core/Src/stm32h7xx_hal_timebase_tim.c:126:6:HAL_ResumeTick 4 static diff --git a/Debug/Core/Src/stm32h7xx_it.cyclo b/Debug/Core/Src/stm32h7xx_it.cyclo deleted file mode 100644 index 7982d4f..0000000 --- a/Debug/Core/Src/stm32h7xx_it.cyclo +++ /dev/null @@ -1,14 +0,0 @@ -../Core/Src/stm32h7xx_it.c:77:6:NMI_Handler 1 -../Core/Src/stm32h7xx_it.c:92:6:HardFault_Handler 1 -../Core/Src/stm32h7xx_it.c:107:6:MemManage_Handler 1 -../Core/Src/stm32h7xx_it.c:122:6:BusFault_Handler 1 -../Core/Src/stm32h7xx_it.c:137:6:UsageFault_Handler 1 -../Core/Src/stm32h7xx_it.c:152:6:DebugMon_Handler 1 -../Core/Src/stm32h7xx_it.c:172:6:DMA1_Stream0_IRQHandler 1 -../Core/Src/stm32h7xx_it.c:186:6:FDCAN1_IT0_IRQHandler 1 -../Core/Src/stm32h7xx_it.c:200:6:FDCAN2_IT0_IRQHandler 1 -../Core/Src/stm32h7xx_it.c:214:6:SDMMC1_IRQHandler 1 -../Core/Src/stm32h7xx_it.c:228:6:TIM6_DAC_IRQHandler 1 -../Core/Src/stm32h7xx_it.c:242:6:ETH_IRQHandler 1 -../Core/Src/stm32h7xx_it.c:256:6:MDMA_IRQHandler 1 -../Core/Src/stm32h7xx_it.c:270:6:FDCAN3_IT0_IRQHandler 1 diff --git a/Debug/Core/Src/stm32h7xx_it.d b/Debug/Core/Src/stm32h7xx_it.d deleted file mode 100644 index 6970edd..0000000 --- a/Debug/Core/Src/stm32h7xx_it.d +++ /dev/null @@ -1,82 +0,0 @@ -Core/Src/stm32h7xx_it.o: ../Core/Src/stm32h7xx_it.c ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Core/Inc/stm32h7xx_it.h -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Core/Inc/stm32h7xx_it.h: diff --git a/Debug/Core/Src/stm32h7xx_it.o b/Debug/Core/Src/stm32h7xx_it.o deleted file mode 100644 index 3f3dd35..0000000 Binary files a/Debug/Core/Src/stm32h7xx_it.o and /dev/null differ diff --git a/Debug/Core/Src/stm32h7xx_it.su b/Debug/Core/Src/stm32h7xx_it.su deleted file mode 100644 index 959cae1..0000000 --- a/Debug/Core/Src/stm32h7xx_it.su +++ /dev/null @@ -1,14 +0,0 @@ -../Core/Src/stm32h7xx_it.c:77:6:NMI_Handler 4 static -../Core/Src/stm32h7xx_it.c:92:6:HardFault_Handler 4 static -../Core/Src/stm32h7xx_it.c:107:6:MemManage_Handler 4 static -../Core/Src/stm32h7xx_it.c:122:6:BusFault_Handler 4 static -../Core/Src/stm32h7xx_it.c:137:6:UsageFault_Handler 4 static -../Core/Src/stm32h7xx_it.c:152:6:DebugMon_Handler 4 static -../Core/Src/stm32h7xx_it.c:172:6:DMA1_Stream0_IRQHandler 8 static -../Core/Src/stm32h7xx_it.c:186:6:FDCAN1_IT0_IRQHandler 8 static -../Core/Src/stm32h7xx_it.c:200:6:FDCAN2_IT0_IRQHandler 8 static -../Core/Src/stm32h7xx_it.c:214:6:SDMMC1_IRQHandler 8 static -../Core/Src/stm32h7xx_it.c:228:6:TIM6_DAC_IRQHandler 8 static -../Core/Src/stm32h7xx_it.c:242:6:ETH_IRQHandler 8 static -../Core/Src/stm32h7xx_it.c:256:6:MDMA_IRQHandler 8 static -../Core/Src/stm32h7xx_it.c:270:6:FDCAN3_IT0_IRQHandler 8 static diff --git a/Debug/Core/Src/subdir.mk b/Debug/Core/Src/subdir.mk deleted file mode 100644 index 52d127c..0000000 --- a/Debug/Core/Src/subdir.mk +++ /dev/null @@ -1,48 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -# Toolchain: GNU Tools for STM32 (11.3.rel1) -################################################################################ - -# Add inputs and outputs from these tool invocations to the build variables -C_SRCS += \ -../Core/Src/freertos.c \ -../Core/Src/main.c \ -../Core/Src/stm32h7xx_hal_msp.c \ -../Core/Src/stm32h7xx_hal_timebase_tim.c \ -../Core/Src/stm32h7xx_it.c \ -../Core/Src/syscalls.c \ -../Core/Src/sysmem.c \ -../Core/Src/system_stm32h7xx.c - -OBJS += \ -./Core/Src/freertos.o \ -./Core/Src/main.o \ -./Core/Src/stm32h7xx_hal_msp.o \ -./Core/Src/stm32h7xx_hal_timebase_tim.o \ -./Core/Src/stm32h7xx_it.o \ -./Core/Src/syscalls.o \ -./Core/Src/sysmem.o \ -./Core/Src/system_stm32h7xx.o - -C_DEPS += \ -./Core/Src/freertos.d \ -./Core/Src/main.d \ -./Core/Src/stm32h7xx_hal_msp.d \ -./Core/Src/stm32h7xx_hal_timebase_tim.d \ -./Core/Src/stm32h7xx_it.d \ -./Core/Src/syscalls.d \ -./Core/Src/sysmem.d \ -./Core/Src/system_stm32h7xx.d - - -# Each subdirectory must supply rules for building sources it contributes -Core/Src/%.o Core/Src/%.su Core/Src/%.cyclo: ../Core/Src/%.c Core/Src/subdir.mk - arm-none-eabi-gcc "$<" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DDATA_IN_D2_SRAM -DUSE_HAL_DRIVER -DSTM32H723xx -c -I../Core/Inc -I../FATFS/Target -I../FATFS/App -I../LWIP/App -I../LWIP/Target -I../Middlewares/Third_Party/LwIP/src/include -I../Middlewares/Third_Party/LwIP/system -I../Drivers/STM32H7xx_HAL_Driver/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/Third_Party/FatFs/src -I../Drivers/BSP/Components/lan8742 -I../Middlewares/Third_Party/LwIP/src/include/netif/ppp -I../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../Middlewares/Third_Party/LwIP/src/include/lwip -I../Middlewares/Third_Party/LwIP/src/include/lwip/apps -I../Middlewares/Third_Party/LwIP/src/include/lwip/priv -I../Middlewares/Third_Party/LwIP/src/include/lwip/prot -I../Middlewares/Third_Party/LwIP/src/include/netif -I../Middlewares/Third_Party/LwIP/src/include/compat/posix -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/arpa -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/net -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/sys -I../Middlewares/Third_Party/LwIP/src/include/compat/stdc -I../Middlewares/Third_Party/LwIP/system/arch -I../Drivers/CMSIS/Include -I"C:/_NoSleep/STM32/TBD_TaxiBoard/LWFTPC" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "$@" - -clean: clean-Core-2f-Src - -clean-Core-2f-Src: - -$(RM) ./Core/Src/freertos.cyclo ./Core/Src/freertos.d ./Core/Src/freertos.o ./Core/Src/freertos.su ./Core/Src/main.cyclo ./Core/Src/main.d ./Core/Src/main.o ./Core/Src/main.su ./Core/Src/stm32h7xx_hal_msp.cyclo ./Core/Src/stm32h7xx_hal_msp.d ./Core/Src/stm32h7xx_hal_msp.o ./Core/Src/stm32h7xx_hal_msp.su ./Core/Src/stm32h7xx_hal_timebase_tim.cyclo ./Core/Src/stm32h7xx_hal_timebase_tim.d ./Core/Src/stm32h7xx_hal_timebase_tim.o ./Core/Src/stm32h7xx_hal_timebase_tim.su ./Core/Src/stm32h7xx_it.cyclo ./Core/Src/stm32h7xx_it.d ./Core/Src/stm32h7xx_it.o ./Core/Src/stm32h7xx_it.su ./Core/Src/syscalls.cyclo ./Core/Src/syscalls.d ./Core/Src/syscalls.o ./Core/Src/syscalls.su ./Core/Src/sysmem.cyclo ./Core/Src/sysmem.d ./Core/Src/sysmem.o ./Core/Src/sysmem.su ./Core/Src/system_stm32h7xx.cyclo ./Core/Src/system_stm32h7xx.d ./Core/Src/system_stm32h7xx.o ./Core/Src/system_stm32h7xx.su - -.PHONY: clean-Core-2f-Src - diff --git a/Debug/Core/Src/syscalls.cyclo b/Debug/Core/Src/syscalls.cyclo deleted file mode 100644 index 6cbfdd0..0000000 --- a/Debug/Core/Src/syscalls.cyclo +++ /dev/null @@ -1,18 +0,0 @@ -../Core/Src/syscalls.c:44:6:initialise_monitor_handles 1 -../Core/Src/syscalls.c:48:5:_getpid 1 -../Core/Src/syscalls.c:53:5:_kill 1 -../Core/Src/syscalls.c:61:6:_exit 1 -../Core/Src/syscalls.c:67:27:_read 2 -../Core/Src/syscalls.c:80:27:_write 2 -../Core/Src/syscalls.c:92:5:_close 1 -../Core/Src/syscalls.c:99:5:_fstat 1 -../Core/Src/syscalls.c:106:5:_isatty 1 -../Core/Src/syscalls.c:112:5:_lseek 1 -../Core/Src/syscalls.c:120:5:_open 1 -../Core/Src/syscalls.c:128:5:_wait 1 -../Core/Src/syscalls.c:135:5:_unlink 1 -../Core/Src/syscalls.c:142:5:_times 1 -../Core/Src/syscalls.c:148:5:_stat 1 -../Core/Src/syscalls.c:155:5:_link 1 -../Core/Src/syscalls.c:163:5:_fork 1 -../Core/Src/syscalls.c:169:5:_execve 1 diff --git a/Debug/Core/Src/syscalls.d b/Debug/Core/Src/syscalls.d deleted file mode 100644 index c8e2259..0000000 --- a/Debug/Core/Src/syscalls.d +++ /dev/null @@ -1,94 +0,0 @@ -Core/Src/syscalls.o: ../Core/Src/syscalls.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/errno.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/lwip/errno.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Core/Src/syscalls.o b/Debug/Core/Src/syscalls.o deleted file mode 100644 index 6f4b2a5..0000000 Binary files a/Debug/Core/Src/syscalls.o and /dev/null differ diff --git a/Debug/Core/Src/syscalls.su b/Debug/Core/Src/syscalls.su deleted file mode 100644 index e06feaf..0000000 --- a/Debug/Core/Src/syscalls.su +++ /dev/null @@ -1,18 +0,0 @@ -../Core/Src/syscalls.c:44:6:initialise_monitor_handles 4 static -../Core/Src/syscalls.c:48:5:_getpid 4 static -../Core/Src/syscalls.c:53:5:_kill 16 static -../Core/Src/syscalls.c:61:6:_exit 16 static -../Core/Src/syscalls.c:67:27:_read 32 static -../Core/Src/syscalls.c:80:27:_write 32 static -../Core/Src/syscalls.c:92:5:_close 16 static -../Core/Src/syscalls.c:99:5:_fstat 16 static -../Core/Src/syscalls.c:106:5:_isatty 16 static -../Core/Src/syscalls.c:112:5:_lseek 24 static -../Core/Src/syscalls.c:120:5:_open 12 static -../Core/Src/syscalls.c:128:5:_wait 16 static -../Core/Src/syscalls.c:135:5:_unlink 16 static -../Core/Src/syscalls.c:142:5:_times 16 static -../Core/Src/syscalls.c:148:5:_stat 16 static -../Core/Src/syscalls.c:155:5:_link 16 static -../Core/Src/syscalls.c:163:5:_fork 4 static -../Core/Src/syscalls.c:169:5:_execve 24 static diff --git a/Debug/Core/Src/sysmem.cyclo b/Debug/Core/Src/sysmem.cyclo deleted file mode 100644 index 0090c10..0000000 --- a/Debug/Core/Src/sysmem.cyclo +++ /dev/null @@ -1 +0,0 @@ -../Core/Src/sysmem.c:53:7:_sbrk 3 diff --git a/Debug/Core/Src/sysmem.d b/Debug/Core/Src/sysmem.d deleted file mode 100644 index 322dee5..0000000 --- a/Debug/Core/Src/sysmem.d +++ /dev/null @@ -1,94 +0,0 @@ -Core/Src/sysmem.o: ../Core/Src/sysmem.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/errno.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/lwip/errno.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Core/Src/sysmem.o b/Debug/Core/Src/sysmem.o deleted file mode 100644 index 8693971..0000000 Binary files a/Debug/Core/Src/sysmem.o and /dev/null differ diff --git a/Debug/Core/Src/sysmem.su b/Debug/Core/Src/sysmem.su deleted file mode 100644 index 12d5f17..0000000 --- a/Debug/Core/Src/sysmem.su +++ /dev/null @@ -1 +0,0 @@ -../Core/Src/sysmem.c:53:7:_sbrk 32 static diff --git a/Debug/Core/Src/system_stm32h7xx.cyclo b/Debug/Core/Src/system_stm32h7xx.cyclo deleted file mode 100644 index 89c4fc2..0000000 --- a/Debug/Core/Src/system_stm32h7xx.cyclo +++ /dev/null @@ -1,2 +0,0 @@ -../Core/Src/system_stm32h7xx.c:175:6:SystemInit 3 -../Core/Src/system_stm32h7xx.c:340:6:SystemCoreClockUpdate 10 diff --git a/Debug/Core/Src/system_stm32h7xx.d b/Debug/Core/Src/system_stm32h7xx.d deleted file mode 100644 index a063a93..0000000 --- a/Debug/Core/Src/system_stm32h7xx.d +++ /dev/null @@ -1,79 +0,0 @@ -Core/Src/system_stm32h7xx.o: ../Core/Src/system_stm32h7xx.c \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Core/Src/system_stm32h7xx.o b/Debug/Core/Src/system_stm32h7xx.o deleted file mode 100644 index b3e6fc6..0000000 Binary files a/Debug/Core/Src/system_stm32h7xx.o and /dev/null differ diff --git a/Debug/Core/Src/system_stm32h7xx.su b/Debug/Core/Src/system_stm32h7xx.su deleted file mode 100644 index ceeaf63..0000000 --- a/Debug/Core/Src/system_stm32h7xx.su +++ /dev/null @@ -1,2 +0,0 @@ -../Core/Src/system_stm32h7xx.c:175:6:SystemInit 16 static -../Core/Src/system_stm32h7xx.c:340:6:SystemCoreClockUpdate 48 static diff --git a/Debug/Core/Startup/startup_stm32h723vghx.d b/Debug/Core/Startup/startup_stm32h723vghx.d deleted file mode 100644 index 67df352..0000000 --- a/Debug/Core/Startup/startup_stm32h723vghx.d +++ /dev/null @@ -1,2 +0,0 @@ -Core/Startup/startup_stm32h723vghx.o: \ - ../Core/Startup/startup_stm32h723vghx.s diff --git a/Debug/Core/Startup/startup_stm32h723vghx.o b/Debug/Core/Startup/startup_stm32h723vghx.o deleted file mode 100644 index d414b80..0000000 Binary files a/Debug/Core/Startup/startup_stm32h723vghx.o and /dev/null differ diff --git a/Debug/Core/Startup/subdir.mk b/Debug/Core/Startup/subdir.mk deleted file mode 100644 index 1bf9eaf..0000000 --- a/Debug/Core/Startup/subdir.mk +++ /dev/null @@ -1,27 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -# Toolchain: GNU Tools for STM32 (11.3.rel1) -################################################################################ - -# Add inputs and outputs from these tool invocations to the build variables -S_SRCS += \ -../Core/Startup/startup_stm32h723vghx.s - -OBJS += \ -./Core/Startup/startup_stm32h723vghx.o - -S_DEPS += \ -./Core/Startup/startup_stm32h723vghx.d - - -# Each subdirectory must supply rules for building sources it contributes -Core/Startup/%.o: ../Core/Startup/%.s Core/Startup/subdir.mk - arm-none-eabi-gcc -mcpu=cortex-m7 -g3 -DDEBUG -c -I"C:/_NoSleep/STM32/TBD_TaxiBoard/LWFTPC" -x assembler-with-cpp -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "$@" "$<" - -clean: clean-Core-2f-Startup - -clean-Core-2f-Startup: - -$(RM) ./Core/Startup/startup_stm32h723vghx.d ./Core/Startup/startup_stm32h723vghx.o - -.PHONY: clean-Core-2f-Startup - diff --git a/Debug/Drivers/BSP/Components/lan8742/lan8742.cyclo b/Debug/Drivers/BSP/Components/lan8742/lan8742.cyclo deleted file mode 100644 index f20159c..0000000 --- a/Debug/Drivers/BSP/Components/lan8742/lan8742.cyclo +++ /dev/null @@ -1,14 +0,0 @@ -../Drivers/BSP/Components/lan8742/lan8742.c:63:10:LAN8742_RegisterBusIO 5 -../Drivers/BSP/Components/lan8742/lan8742.c:88:10:LAN8742_Init 15 -../Drivers/BSP/Components/lan8742/lan8742.c:188:9:LAN8742_DeInit 4 -../Drivers/BSP/Components/lan8742/lan8742.c:213:9:LAN8742_DisablePowerDownMode 3 -../Drivers/BSP/Components/lan8742/lan8742.c:243:9:LAN8742_EnablePowerDownMode 3 -../Drivers/BSP/Components/lan8742/lan8742.c:273:9:LAN8742_StartAutoNego 3 -../Drivers/BSP/Components/lan8742/lan8742.c:309:9:LAN8742_GetLinkState 15 -../Drivers/BSP/Components/lan8742/lan8742.c:401:9:LAN8742_SetLinkState 7 -../Drivers/BSP/Components/lan8742/lan8742.c:453:9:LAN8742_EnableLoopbackMode 3 -../Drivers/BSP/Components/lan8742/lan8742.c:483:9:LAN8742_DisableLoopbackMode 3 -../Drivers/BSP/Components/lan8742/lan8742.c:523:9:LAN8742_EnableIT 3 -../Drivers/BSP/Components/lan8742/lan8742.c:563:9:LAN8742_DisableIT 3 -../Drivers/BSP/Components/lan8742/lan8742.c:602:10:LAN8742_ClearIT 2 -../Drivers/BSP/Components/lan8742/lan8742.c:632:9:LAN8742_GetITStatus 2 diff --git a/Debug/Drivers/BSP/Components/lan8742/lan8742.d b/Debug/Drivers/BSP/Components/lan8742/lan8742.d deleted file mode 100644 index 47f281d..0000000 --- a/Debug/Drivers/BSP/Components/lan8742/lan8742.d +++ /dev/null @@ -1,4 +0,0 @@ -Drivers/BSP/Components/lan8742/lan8742.o: \ - ../Drivers/BSP/Components/lan8742/lan8742.c \ - ../Drivers/BSP/Components/lan8742/lan8742.h -../Drivers/BSP/Components/lan8742/lan8742.h: diff --git a/Debug/Drivers/BSP/Components/lan8742/lan8742.o b/Debug/Drivers/BSP/Components/lan8742/lan8742.o deleted file mode 100644 index e07f11b..0000000 Binary files a/Debug/Drivers/BSP/Components/lan8742/lan8742.o and /dev/null differ diff --git a/Debug/Drivers/BSP/Components/lan8742/lan8742.su b/Debug/Drivers/BSP/Components/lan8742/lan8742.su deleted file mode 100644 index c75843a..0000000 --- a/Debug/Drivers/BSP/Components/lan8742/lan8742.su +++ /dev/null @@ -1,14 +0,0 @@ -../Drivers/BSP/Components/lan8742/lan8742.c:63:10:LAN8742_RegisterBusIO 16 static -../Drivers/BSP/Components/lan8742/lan8742.c:88:10:LAN8742_Init 32 static -../Drivers/BSP/Components/lan8742/lan8742.c:188:9:LAN8742_DeInit 16 static -../Drivers/BSP/Components/lan8742/lan8742.c:213:9:LAN8742_DisablePowerDownMode 24 static -../Drivers/BSP/Components/lan8742/lan8742.c:243:9:LAN8742_EnablePowerDownMode 24 static -../Drivers/BSP/Components/lan8742/lan8742.c:273:9:LAN8742_StartAutoNego 24 static -../Drivers/BSP/Components/lan8742/lan8742.c:309:9:LAN8742_GetLinkState 24 static -../Drivers/BSP/Components/lan8742/lan8742.c:401:9:LAN8742_SetLinkState 24 static -../Drivers/BSP/Components/lan8742/lan8742.c:453:9:LAN8742_EnableLoopbackMode 24 static -../Drivers/BSP/Components/lan8742/lan8742.c:483:9:LAN8742_DisableLoopbackMode 24 static -../Drivers/BSP/Components/lan8742/lan8742.c:523:9:LAN8742_EnableIT 24 static -../Drivers/BSP/Components/lan8742/lan8742.c:563:9:LAN8742_DisableIT 24 static -../Drivers/BSP/Components/lan8742/lan8742.c:602:10:LAN8742_ClearIT 24 static -../Drivers/BSP/Components/lan8742/lan8742.c:632:9:LAN8742_GetITStatus 24 static diff --git a/Debug/Drivers/BSP/Components/lan8742/subdir.mk b/Debug/Drivers/BSP/Components/lan8742/subdir.mk deleted file mode 100644 index 6dee59e..0000000 --- a/Debug/Drivers/BSP/Components/lan8742/subdir.mk +++ /dev/null @@ -1,27 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -# Toolchain: GNU Tools for STM32 (11.3.rel1) -################################################################################ - -# Add inputs and outputs from these tool invocations to the build variables -C_SRCS += \ -../Drivers/BSP/Components/lan8742/lan8742.c - -OBJS += \ -./Drivers/BSP/Components/lan8742/lan8742.o - -C_DEPS += \ -./Drivers/BSP/Components/lan8742/lan8742.d - - -# Each subdirectory must supply rules for building sources it contributes -Drivers/BSP/Components/lan8742/%.o Drivers/BSP/Components/lan8742/%.su Drivers/BSP/Components/lan8742/%.cyclo: ../Drivers/BSP/Components/lan8742/%.c Drivers/BSP/Components/lan8742/subdir.mk - arm-none-eabi-gcc "$<" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DDATA_IN_D2_SRAM -DUSE_HAL_DRIVER -DSTM32H723xx -c -I../Core/Inc -I../FATFS/Target -I../FATFS/App -I../LWIP/App -I../LWIP/Target -I../Middlewares/Third_Party/LwIP/src/include -I../Middlewares/Third_Party/LwIP/system -I../Drivers/STM32H7xx_HAL_Driver/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/Third_Party/FatFs/src -I../Drivers/BSP/Components/lan8742 -I../Middlewares/Third_Party/LwIP/src/include/netif/ppp -I../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../Middlewares/Third_Party/LwIP/src/include/lwip -I../Middlewares/Third_Party/LwIP/src/include/lwip/apps -I../Middlewares/Third_Party/LwIP/src/include/lwip/priv -I../Middlewares/Third_Party/LwIP/src/include/lwip/prot -I../Middlewares/Third_Party/LwIP/src/include/netif -I../Middlewares/Third_Party/LwIP/src/include/compat/posix -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/arpa -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/net -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/sys -I../Middlewares/Third_Party/LwIP/src/include/compat/stdc -I../Middlewares/Third_Party/LwIP/system/arch -I../Drivers/CMSIS/Include -I"C:/_NoSleep/STM32/TBD_TaxiBoard/LWFTPC" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "$@" - -clean: clean-Drivers-2f-BSP-2f-Components-2f-lan8742 - -clean-Drivers-2f-BSP-2f-Components-2f-lan8742: - -$(RM) ./Drivers/BSP/Components/lan8742/lan8742.cyclo ./Drivers/BSP/Components/lan8742/lan8742.d ./Drivers/BSP/Components/lan8742/lan8742.o ./Drivers/BSP/Components/lan8742/lan8742.su - -.PHONY: clean-Drivers-2f-BSP-2f-Components-2f-lan8742 - diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.cyclo b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.cyclo deleted file mode 100644 index 949f040..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.cyclo +++ /dev/null @@ -1,54 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:134:19:HAL_Init 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:187:19:HAL_DeInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:228:13:HAL_MspInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:239:13:HAL_MspDeInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:262:26:HAL_InitTick 4 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:327:13:HAL_IncTick 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:338:17:HAL_GetTick 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:347:10:HAL_GetTickPrio 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:356:19:HAL_SetTickFreq 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:388:21:HAL_GetTickFreq 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:404:13:HAL_Delay 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:430:13:HAL_SuspendTick 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:446:13:HAL_ResumeTick 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:456:10:HAL_GetHalVersion 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:465:10:HAL_GetREVID 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:474:10:HAL_GetDEVID 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:483:10:HAL_GetUIDw0 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:492:10:HAL_GetUIDw1 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:501:10:HAL_GetUIDw2 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:520:6:HAL_SYSCFG_VREFBUF_VoltageScalingConfig 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:536:6:HAL_SYSCFG_VREFBUF_HighImpedanceConfig 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:548:6:HAL_SYSCFG_VREFBUF_TrimmingConfig 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:560:19:HAL_SYSCFG_EnableVREFBUF 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:586:6:HAL_SYSCFG_DisableVREFBUF 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:600:6:HAL_SYSCFG_ETHInterfaceSelect 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:630:6:HAL_SYSCFG_AnalogSwitchConfig 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:648:6:HAL_SYSCFG_EnableBOOST 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:660:6:HAL_SYSCFG_DisableBOOST 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:676:6:HAL_SYSCFG_CM7BootAddConfig 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:775:6:HAL_EnableCompensationCell 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:786:6:HAL_DisableCompensationCell 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:799:6:HAL_SYSCFG_EnableIOSpeedOptimize 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:815:6:HAL_SYSCFG_DisableIOSpeedOptimize 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:832:6:HAL_SYSCFG_CompensationCodeSelect 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:849:6:HAL_SYSCFG_CompensationCodeConfig 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:883:6:HAL_SYSCFG_ADC2ALT_Rout0Config 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:898:6:HAL_SYSCFG_ADC2ALT_Rout1Config 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:911:6:HAL_DBGMCU_EnableDBGSleepMode 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:920:6:HAL_DBGMCU_DisableDBGSleepMode 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:930:6:HAL_DBGMCU_EnableDBGStopMode 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:939:6:HAL_DBGMCU_DisableDBGStopMode 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:948:6:HAL_DBGMCU_EnableDBGStandbyMode 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:957:6:HAL_DBGMCU_DisableDBGStandbyMode 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:1023:6:HAL_EnableDomain3DBGStopMode 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:1032:6:HAL_DisableDomain3DBGStopMode 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:1043:6:HAL_EnableDomain3DBGStandbyMode 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:1052:6:HAL_DisableDomain3DBGStandbyMode 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:1064:6:HAL_SetFMCMemorySwappingConfig 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:1076:10:HAL_GetFMCMemorySwappingConfig 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:1093:6:HAL_EXTI_EdgeConfig 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:1119:6:HAL_EXTI_GenerateSWInterrupt 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:1134:6:HAL_EXTI_D1_ClearFlag 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:1169:6:HAL_EXTI_D1_EventInputConfig 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:1263:6:HAL_EXTI_D3_EventInputConfig 3 diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.d b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.d deleted file mode 100644 index e428be2..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.d +++ /dev/null @@ -1,80 +0,0 @@ -Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o: \ - ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o deleted file mode 100644 index 1c0b05b..0000000 Binary files a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o and /dev/null differ diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.su b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.su deleted file mode 100644 index 30153a4..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.su +++ /dev/null @@ -1,54 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:134:19:HAL_Init 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:187:19:HAL_DeInit 8 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:228:13:HAL_MspInit 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:239:13:HAL_MspDeInit 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:262:26:HAL_InitTick 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:327:13:HAL_IncTick 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:338:17:HAL_GetTick 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:347:10:HAL_GetTickPrio 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:356:19:HAL_SetTickFreq 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:388:21:HAL_GetTickFreq 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:404:13:HAL_Delay 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:430:13:HAL_SuspendTick 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:446:13:HAL_ResumeTick 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:456:10:HAL_GetHalVersion 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:465:10:HAL_GetREVID 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:474:10:HAL_GetDEVID 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:483:10:HAL_GetUIDw0 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:492:10:HAL_GetUIDw1 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:501:10:HAL_GetUIDw2 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:520:6:HAL_SYSCFG_VREFBUF_VoltageScalingConfig 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:536:6:HAL_SYSCFG_VREFBUF_HighImpedanceConfig 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:548:6:HAL_SYSCFG_VREFBUF_TrimmingConfig 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:560:19:HAL_SYSCFG_EnableVREFBUF 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:586:6:HAL_SYSCFG_DisableVREFBUF 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:600:6:HAL_SYSCFG_ETHInterfaceSelect 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:630:6:HAL_SYSCFG_AnalogSwitchConfig 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:648:6:HAL_SYSCFG_EnableBOOST 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:660:6:HAL_SYSCFG_DisableBOOST 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:676:6:HAL_SYSCFG_CM7BootAddConfig 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:775:6:HAL_EnableCompensationCell 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:786:6:HAL_DisableCompensationCell 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:799:6:HAL_SYSCFG_EnableIOSpeedOptimize 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:815:6:HAL_SYSCFG_DisableIOSpeedOptimize 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:832:6:HAL_SYSCFG_CompensationCodeSelect 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:849:6:HAL_SYSCFG_CompensationCodeConfig 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:883:6:HAL_SYSCFG_ADC2ALT_Rout0Config 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:898:6:HAL_SYSCFG_ADC2ALT_Rout1Config 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:911:6:HAL_DBGMCU_EnableDBGSleepMode 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:920:6:HAL_DBGMCU_DisableDBGSleepMode 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:930:6:HAL_DBGMCU_EnableDBGStopMode 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:939:6:HAL_DBGMCU_DisableDBGStopMode 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:948:6:HAL_DBGMCU_EnableDBGStandbyMode 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:957:6:HAL_DBGMCU_DisableDBGStandbyMode 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:1023:6:HAL_EnableDomain3DBGStopMode 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:1032:6:HAL_DisableDomain3DBGStopMode 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:1043:6:HAL_EnableDomain3DBGStandbyMode 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:1052:6:HAL_DisableDomain3DBGStandbyMode 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:1064:6:HAL_SetFMCMemorySwappingConfig 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:1076:10:HAL_GetFMCMemorySwappingConfig 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:1093:6:HAL_EXTI_EdgeConfig 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:1119:6:HAL_EXTI_GenerateSWInterrupt 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:1134:6:HAL_EXTI_D1_ClearFlag 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:1169:6:HAL_EXTI_D1_EventInputConfig 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:1263:6:HAL_EXTI_D3_EventInputConfig 32 static diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.cyclo b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.cyclo deleted file mode 100644 index 7f39479..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.cyclo +++ /dev/null @@ -1,33 +0,0 @@ -../Drivers/CMSIS/Include/core_cm7.h:1871:22:__NVIC_SetPriorityGrouping 1 -../Drivers/CMSIS/Include/core_cm7.h:1890:26:__NVIC_GetPriorityGrouping 1 -../Drivers/CMSIS/Include/core_cm7.h:1902:22:__NVIC_EnableIRQ 2 -../Drivers/CMSIS/Include/core_cm7.h:1940:22:__NVIC_DisableIRQ 2 -../Drivers/CMSIS/Include/core_cm7.h:1959:26:__NVIC_GetPendingIRQ 2 -../Drivers/CMSIS/Include/core_cm7.h:1978:22:__NVIC_SetPendingIRQ 2 -../Drivers/CMSIS/Include/core_cm7.h:1993:22:__NVIC_ClearPendingIRQ 2 -../Drivers/CMSIS/Include/core_cm7.h:2010:26:__NVIC_GetActive 2 -../Drivers/CMSIS/Include/core_cm7.h:2032:22:__NVIC_SetPriority 2 -../Drivers/CMSIS/Include/core_cm7.h:2054:26:__NVIC_GetPriority 2 -../Drivers/CMSIS/Include/core_cm7.h:2079:26:NVIC_EncodePriority 2 -../Drivers/CMSIS/Include/core_cm7.h:2106:22:NVIC_DecodePriority 2 -../Drivers/CMSIS/Include/core_cm7.h:2156:34:__NVIC_SystemReset 1 -../Drivers/CMSIS/Include/core_cm7.h:2618:26:SysTick_Config 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:142:6:HAL_NVIC_SetPriorityGrouping 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:164:6:HAL_NVIC_SetPriority 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:186:6:HAL_NVIC_EnableIRQ 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:202:6:HAL_NVIC_DisableIRQ 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:215:6:HAL_NVIC_SystemReset 0 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:228:10:HAL_SYSTICK_Config 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:256:6:HAL_MPU_Disable 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:279:6:HAL_MPU_Enable 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:297:6:HAL_MPU_ConfigRegion 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:341:10:HAL_NVIC_GetPriorityGrouping 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:368:6:HAL_NVIC_GetPriority 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:383:6:HAL_NVIC_SetPendingIRQ 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:401:10:HAL_NVIC_GetPendingIRQ 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:417:6:HAL_NVIC_ClearPendingIRQ 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:434:10:HAL_NVIC_GetActive 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:451:6:HAL_SYSTICK_CLKSourceConfig 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:469:6:HAL_SYSTICK_IRQHandler 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:478:13:HAL_SYSTICK_Callback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:509:10:HAL_GetCurrentCPUID 1 diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.d b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.d deleted file mode 100644 index db481be..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.d +++ /dev/null @@ -1,80 +0,0 @@ -Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o: \ - ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o deleted file mode 100644 index 102b926..0000000 Binary files a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o and /dev/null differ diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.su b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.su deleted file mode 100644 index 767d15f..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.su +++ /dev/null @@ -1,33 +0,0 @@ -../Drivers/CMSIS/Include/core_cm7.h:1871:22:__NVIC_SetPriorityGrouping 24 static -../Drivers/CMSIS/Include/core_cm7.h:1890:26:__NVIC_GetPriorityGrouping 4 static -../Drivers/CMSIS/Include/core_cm7.h:1902:22:__NVIC_EnableIRQ 16 static,ignoring_inline_asm -../Drivers/CMSIS/Include/core_cm7.h:1940:22:__NVIC_DisableIRQ 16 static,ignoring_inline_asm -../Drivers/CMSIS/Include/core_cm7.h:1959:26:__NVIC_GetPendingIRQ 16 static -../Drivers/CMSIS/Include/core_cm7.h:1978:22:__NVIC_SetPendingIRQ 16 static -../Drivers/CMSIS/Include/core_cm7.h:1993:22:__NVIC_ClearPendingIRQ 16 static -../Drivers/CMSIS/Include/core_cm7.h:2010:26:__NVIC_GetActive 16 static -../Drivers/CMSIS/Include/core_cm7.h:2032:22:__NVIC_SetPriority 16 static -../Drivers/CMSIS/Include/core_cm7.h:2054:26:__NVIC_GetPriority 16 static -../Drivers/CMSIS/Include/core_cm7.h:2079:26:NVIC_EncodePriority 40 static -../Drivers/CMSIS/Include/core_cm7.h:2106:22:NVIC_DecodePriority 40 static -../Drivers/CMSIS/Include/core_cm7.h:2156:34:__NVIC_SystemReset 4 static,ignoring_inline_asm -../Drivers/CMSIS/Include/core_cm7.h:2618:26:SysTick_Config 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:142:6:HAL_NVIC_SetPriorityGrouping 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:164:6:HAL_NVIC_SetPriority 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:186:6:HAL_NVIC_EnableIRQ 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:202:6:HAL_NVIC_DisableIRQ 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:215:6:HAL_NVIC_SystemReset 8 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:228:10:HAL_SYSTICK_Config 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:256:6:HAL_MPU_Disable 4 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:279:6:HAL_MPU_Enable 16 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:297:6:HAL_MPU_ConfigRegion 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:341:10:HAL_NVIC_GetPriorityGrouping 8 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:368:6:HAL_NVIC_GetPriority 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:383:6:HAL_NVIC_SetPendingIRQ 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:401:10:HAL_NVIC_GetPendingIRQ 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:417:6:HAL_NVIC_ClearPendingIRQ 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:434:10:HAL_NVIC_GetActive 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:451:6:HAL_SYSTICK_CLKSourceConfig 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:469:6:HAL_SYSTICK_IRQHandler 8 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:478:13:HAL_SYSTICK_Callback 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:509:10:HAL_GetCurrentCPUID 4 static diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.cyclo b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.cyclo deleted file mode 100644 index 34496ad..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.cyclo +++ /dev/null @@ -1,17 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:216:19:HAL_DMA_Init 98 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:468:19:HAL_DMA_DeInit 47 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:625:19:HAL_DMA_Start 36 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:681:19:HAL_DMA_Start_IT 82 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:781:19:HAL_DMA_Abort 106 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:897:19:HAL_DMA_Abort_IT 79 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:981:19:HAL_DMA_PollForTransfer 112 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:1208:6:HAL_DMA_IRQHandler 222 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:1578:19:HAL_DMA_RegisterCallback 10 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:1645:19:HAL_DMA_UnRegisterCallback 11 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:1736:22:HAL_DMA_GetState 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:1747:10:HAL_DMA_GetError 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:1773:13:DMA_SetConfig 55 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:1860:17:DMA_CalcBaseAndBitshift 19 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:1896:26:DMA_CheckFifoParam 15 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:1990:13:DMA_CalcDMAMUXChannelBaseAndMask 12 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:2025:13:DMA_CalcDMAMUXRequestGenBaseAndMask 12 diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.d b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.d deleted file mode 100644 index f49bd5b..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.d +++ /dev/null @@ -1,80 +0,0 @@ -Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o: \ - ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o deleted file mode 100644 index 4df4929..0000000 Binary files a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o and /dev/null differ diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.su b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.su deleted file mode 100644 index 8daecf5..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.su +++ /dev/null @@ -1,17 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:216:19:HAL_DMA_Init 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:468:19:HAL_DMA_DeInit 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:625:19:HAL_DMA_Start 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:681:19:HAL_DMA_Start_IT 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:781:19:HAL_DMA_Abort 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:897:19:HAL_DMA_Abort_IT 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:981:19:HAL_DMA_PollForTransfer 48 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:1208:6:HAL_DMA_IRQHandler 48 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:1578:19:HAL_DMA_RegisterCallback 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:1645:19:HAL_DMA_UnRegisterCallback 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:1736:22:HAL_DMA_GetState 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:1747:10:HAL_DMA_GetError 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:1773:13:DMA_SetConfig 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:1860:17:DMA_CalcBaseAndBitshift 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:1896:26:DMA_CheckFifoParam 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:1990:13:DMA_CalcDMAMUXChannelBaseAndMask 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:2025:13:DMA_CalcDMAMUXRequestGenBaseAndMask 24 static diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.cyclo b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.cyclo deleted file mode 100644 index 4ddefe6..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.cyclo +++ /dev/null @@ -1,9 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c:120:19:HAL_DMAEx_MultiBufferStart 63 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c:217:19:HAL_DMAEx_MultiBufferStart_IT 111 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c:357:19:HAL_DMAEx_ChangeMemory 20 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c:396:19:HAL_DMAEx_ConfigMuxSync 19 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c:464:19:HAL_DMAEx_ConfigMuxRequestGenerator 20 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c:530:19:HAL_DMAEx_EnableMuxRequestGenerator 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c:556:19:HAL_DMAEx_DisableMuxRequestGenerator 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c:582:6:HAL_DMAEx_MUX_IRQHandler 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c:648:13:DMA_MultiBufferSetConfig 20 diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.d b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.d deleted file mode 100644 index 7be382b..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.d +++ /dev/null @@ -1,80 +0,0 @@ -Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o: \ - ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o deleted file mode 100644 index 3443786..0000000 Binary files a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o and /dev/null differ diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.su b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.su deleted file mode 100644 index b27c6e9..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.su +++ /dev/null @@ -1,9 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c:120:19:HAL_DMAEx_MultiBufferStart 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c:217:19:HAL_DMAEx_MultiBufferStart_IT 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c:357:19:HAL_DMAEx_ChangeMemory 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c:396:19:HAL_DMAEx_ConfigMuxSync 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c:464:19:HAL_DMAEx_ConfigMuxRequestGenerator 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c:530:19:HAL_DMAEx_EnableMuxRequestGenerator 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c:556:19:HAL_DMAEx_DisableMuxRequestGenerator 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c:582:6:HAL_DMAEx_MUX_IRQHandler 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c:648:13:DMA_MultiBufferSetConfig 24 static diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.cyclo b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.cyclo deleted file mode 100644 index 5b8d31e..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.cyclo +++ /dev/null @@ -1,56 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:307:19:HAL_ETH_Init 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:425:19:HAL_ETH_DeInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:458:13:HAL_ETH_MspInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:473:13:HAL_ETH_MspDeInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:709:19:HAL_ETH_Start 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:755:19:HAL_ETH_Start_IT 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:818:19:HAL_ETH_Stop 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:856:19:HAL_ETH_Stop_IT 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:916:19:HAL_ETH_Transmit 10 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:991:19:HAL_ETH_Transmit_IT 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:1037:19:HAL_ETH_ReadData 14 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:1150:13:ETH_UpdateDescriptor 9 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:1225:19:HAL_ETH_RegisterRxAllocateCallback 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:1246:19:HAL_ETH_UnRegisterRxAllocateCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:1259:13:HAL_ETH_RxAllocateCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:1276:13:HAL_ETH_RxLinkCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:1295:19:HAL_ETH_RegisterRxLinkCallback 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:1315:19:HAL_ETH_UnRegisterRxLinkCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:1330:19:HAL_ETH_GetRxDataErrorCode 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:1345:19:HAL_ETH_RegisterTxFreeCallback 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:1365:19:HAL_ETH_UnRegisterTxFreeCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:1378:13:HAL_ETH_TxFreeCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:1393:19:HAL_ETH_ReleaseTxPacket 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:1832:6:HAL_ETH_IRQHandler 13 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2025:13:HAL_ETH_TxCpltCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2040:13:HAL_ETH_RxCpltCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2055:13:HAL_ETH_ErrorCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2070:13:HAL_ETH_PMTCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2085:13:HAL_ETH_EEECallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2100:13:HAL_ETH_WakeUpCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2118:19:HAL_ETH_ReadPHYRegister 4 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2174:19:HAL_ETH_WritePHYRegister 4 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2247:19:HAL_ETH_GetMACConfig 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2322:19:HAL_ETH_GetDMAConfig 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2355:19:HAL_ETH_SetMACConfig 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2382:19:HAL_ETH_SetDMAConfig 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2407:6:HAL_ETH_SetMDIOClockRange 9 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2460:19:HAL_ETH_SetMACFilterConfig 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2494:19:HAL_ETH_GetMACFilterConfig 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2531:19:HAL_ETH_SetSourceMACAddrMatch 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2566:19:HAL_ETH_SetHashTable 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2588:6:HAL_ETH_SetRxVLANIdentifier 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2610:6:HAL_ETH_EnterPowerDownMode 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2632:6:HAL_ETH_ExitPowerDownMode 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2656:19:HAL_ETH_SetWakeUpFilter 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2705:22:HAL_ETH_GetState 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2716:10:HAL_ETH_GetError 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2727:10:HAL_ETH_GetDMAError 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2738:10:HAL_ETH_GetMACError 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2749:10:HAL_ETH_GetMACWakeUpSource 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2767:13:ETH_SetMACConfig 8 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2844:13:ETH_SetDMAConfig 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2886:13:ETH_MACDMAConfig 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2960:13:ETH_DMATxDescListInit 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2998:13:ETH_DMARxDescListInit 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:3045:17:ETH_Prepare_Tx_Descriptors 26 diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.d b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.d deleted file mode 100644 index 861f55d..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.d +++ /dev/null @@ -1,80 +0,0 @@ -Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o: \ - ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o deleted file mode 100644 index 17f7c83..0000000 Binary files a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o and /dev/null differ diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.su b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.su deleted file mode 100644 index 0950563..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.su +++ /dev/null @@ -1,56 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:307:19:HAL_ETH_Init 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:425:19:HAL_ETH_DeInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:458:13:HAL_ETH_MspInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:473:13:HAL_ETH_MspDeInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:709:19:HAL_ETH_Start 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:755:19:HAL_ETH_Start_IT 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:818:19:HAL_ETH_Stop 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:856:19:HAL_ETH_Stop_IT 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:916:19:HAL_ETH_Transmit 32 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:991:19:HAL_ETH_Transmit_IT 16 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:1037:19:HAL_ETH_ReadData 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:1150:13:ETH_UpdateDescriptor 40 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:1225:19:HAL_ETH_RegisterRxAllocateCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:1246:19:HAL_ETH_UnRegisterRxAllocateCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:1259:13:HAL_ETH_RxAllocateCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:1276:13:HAL_ETH_RxLinkCallback 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:1295:19:HAL_ETH_RegisterRxLinkCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:1315:19:HAL_ETH_UnRegisterRxLinkCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:1330:19:HAL_ETH_GetRxDataErrorCode 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:1345:19:HAL_ETH_RegisterTxFreeCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:1365:19:HAL_ETH_UnRegisterTxFreeCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:1378:13:HAL_ETH_TxFreeCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:1393:19:HAL_ETH_ReleaseTxPacket 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:1832:6:HAL_ETH_IRQHandler 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2025:13:HAL_ETH_TxCpltCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2040:13:HAL_ETH_RxCpltCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2055:13:HAL_ETH_ErrorCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2070:13:HAL_ETH_PMTCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2085:13:HAL_ETH_EEECallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2100:13:HAL_ETH_WakeUpCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2118:19:HAL_ETH_ReadPHYRegister 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2174:19:HAL_ETH_WritePHYRegister 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2247:19:HAL_ETH_GetMACConfig 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2322:19:HAL_ETH_GetDMAConfig 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2355:19:HAL_ETH_SetMACConfig 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2382:19:HAL_ETH_SetDMAConfig 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2407:6:HAL_ETH_SetMDIOClockRange 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2460:19:HAL_ETH_SetMACFilterConfig 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2494:19:HAL_ETH_GetMACFilterConfig 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2531:19:HAL_ETH_SetSourceMACAddrMatch 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2566:19:HAL_ETH_SetHashTable 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2588:6:HAL_ETH_SetRxVLANIdentifier 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2610:6:HAL_ETH_EnterPowerDownMode 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2632:6:HAL_ETH_ExitPowerDownMode 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2656:19:HAL_ETH_SetWakeUpFilter 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2705:22:HAL_ETH_GetState 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2716:10:HAL_ETH_GetError 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2727:10:HAL_ETH_GetDMAError 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2738:10:HAL_ETH_GetMACError 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2749:10:HAL_ETH_GetMACWakeUpSource 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2767:13:ETH_SetMACConfig 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2844:13:ETH_SetDMAConfig 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2886:13:ETH_MACDMAConfig 152 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2960:13:ETH_DMATxDescListInit 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:2998:13:ETH_DMARxDescListInit 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c:3045:17:ETH_Prepare_Tx_Descriptors 56 static,ignoring_inline_asm diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.cyclo b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.cyclo deleted file mode 100644 index 3c65666..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.cyclo +++ /dev/null @@ -1,20 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:94:6:HAL_ETHEx_EnableARPOffload 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:105:6:HAL_ETHEx_DisableARPOffload 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:117:6:HAL_ETHEx_SetARPAddressMatch 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:135:19:HAL_ETHEx_SetL4FilterConfig 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:175:19:HAL_ETHEx_GetL4FilterConfig 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:212:19:HAL_ETHEx_SetL3FilterConfig 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:266:19:HAL_ETHEx_GetL3FilterConfig 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:307:6:HAL_ETHEx_EnableL3L4Filtering 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:319:6:HAL_ETHEx_DisableL3L4Filtering 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:333:19:HAL_ETHEx_GetRxVLANConfig 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:366:19:HAL_ETHEx_SetRxVLANConfig 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:394:6:HAL_ETHEx_SetVLANHashTable 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:410:19:HAL_ETHEx_GetTxVLANConfig 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:445:19:HAL_ETHEx_SetTxVLANConfig 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:476:6:HAL_ETHEx_SetTxVLANIdentifier 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:494:6:HAL_ETHEx_EnableVLANProcessing 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:506:6:HAL_ETHEx_DisableVLANProcessing 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:520:6:HAL_ETHEx_EnterLPIMode 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:538:6:HAL_ETHEx_ExitLPIMode 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:554:10:HAL_ETHEx_GetMACLPIEvent 1 diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.d b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.d deleted file mode 100644 index b5afaca..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.d +++ /dev/null @@ -1,80 +0,0 @@ -Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o: \ - ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o deleted file mode 100644 index a4575c2..0000000 Binary files a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o and /dev/null differ diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.su b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.su deleted file mode 100644 index 5253700..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.su +++ /dev/null @@ -1,20 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:94:6:HAL_ETHEx_EnableARPOffload 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:105:6:HAL_ETHEx_DisableARPOffload 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:117:6:HAL_ETHEx_SetARPAddressMatch 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:135:19:HAL_ETHEx_SetL4FilterConfig 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:175:19:HAL_ETHEx_GetL4FilterConfig 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:212:19:HAL_ETHEx_SetL3FilterConfig 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:266:19:HAL_ETHEx_GetL3FilterConfig 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:307:6:HAL_ETHEx_EnableL3L4Filtering 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:319:6:HAL_ETHEx_DisableL3L4Filtering 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:333:19:HAL_ETHEx_GetRxVLANConfig 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:366:19:HAL_ETHEx_SetRxVLANConfig 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:394:6:HAL_ETHEx_SetVLANHashTable 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:410:19:HAL_ETHEx_GetTxVLANConfig 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:445:19:HAL_ETHEx_SetTxVLANConfig 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:476:6:HAL_ETHEx_SetTxVLANIdentifier 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:494:6:HAL_ETHEx_EnableVLANProcessing 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:506:6:HAL_ETHEx_DisableVLANProcessing 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:520:6:HAL_ETHEx_EnterLPIMode 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:538:6:HAL_ETHEx_ExitLPIMode 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c:554:10:HAL_ETHEx_GetMACLPIEvent 16 static diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.cyclo b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.cyclo deleted file mode 100644 index d54adf1..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.cyclo +++ /dev/null @@ -1,9 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c:170:19:HAL_EXTI_SetConfigLine 12 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c:374:19:HAL_EXTI_GetConfigLine 12 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c:512:19:HAL_EXTI_ClearConfigLine 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c:612:19:HAL_EXTI_RegisterCallback 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c:644:19:HAL_EXTI_GetHandle 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c:685:6:HAL_EXTI_IRQHandler 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c:737:10:HAL_EXTI_GetPending 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c:785:6:HAL_EXTI_ClearPending 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c:824:6:HAL_EXTI_GenerateSWI 1 diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.d b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.d deleted file mode 100644 index 0843b74..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.d +++ /dev/null @@ -1,80 +0,0 @@ -Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o: \ - ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o deleted file mode 100644 index 7645eae..0000000 Binary files a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o and /dev/null differ diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.su b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.su deleted file mode 100644 index 89fdcbd..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.su +++ /dev/null @@ -1,9 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c:170:19:HAL_EXTI_SetConfigLine 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c:374:19:HAL_EXTI_GetConfigLine 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c:512:19:HAL_EXTI_ClearConfigLine 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c:612:19:HAL_EXTI_RegisterCallback 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c:644:19:HAL_EXTI_GetHandle 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c:685:6:HAL_EXTI_IRQHandler 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c:737:10:HAL_EXTI_GetPending 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c:785:6:HAL_EXTI_ClearPending 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c:824:6:HAL_EXTI_GenerateSWI 32 static diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.cyclo b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.cyclo deleted file mode 100644 index 255d4a9..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.cyclo +++ /dev/null @@ -1,100 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:287:19:HAL_FDCAN_Init 22 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:592:19:HAL_FDCAN_DeInit 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:638:13:HAL_FDCAN_MspInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:653:13:HAL_FDCAN_MspDeInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:668:19:HAL_FDCAN_EnterPowerDownMode 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:703:19:HAL_FDCAN_ExitPowerDownMode 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:1658:19:HAL_FDCAN_ConfigClockCalibration 4 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:1726:10:HAL_FDCAN_GetClockCalibrationState 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:1740:19:HAL_FDCAN_ResetClockCalibrationState 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:1776:10:HAL_FDCAN_GetClockCalibrationCounter 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:1807:19:HAL_FDCAN_ConfigFilter 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:1919:19:HAL_FDCAN_ConfigGlobalFilter 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:1959:19:HAL_FDCAN_ConfigExtendedIdMask 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:1993:19:HAL_FDCAN_ConfigRxFifoOverwrite 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2036:19:HAL_FDCAN_ConfigFifoWatermark 4 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2086:19:HAL_FDCAN_ConfigRamWatchdog 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2116:19:HAL_FDCAN_ConfigTimestampCounter 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2146:19:HAL_FDCAN_EnableTimestampCounter 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2174:19:HAL_FDCAN_DisableTimestampCounter 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2199:10:HAL_FDCAN_GetTimestampCounter 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2210:19:HAL_FDCAN_ResetTimestampCounter 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2241:19:HAL_FDCAN_ConfigTimeoutCounter 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2270:19:HAL_FDCAN_EnableTimeoutCounter 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2295:19:HAL_FDCAN_DisableTimeoutCounter 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2320:10:HAL_FDCAN_GetTimeoutCounter 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2331:19:HAL_FDCAN_ResetTimeoutCounter 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2361:19:HAL_FDCAN_ConfigTxDelayCompensation 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2390:19:HAL_FDCAN_EnableTxDelayCompensation 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2415:19:HAL_FDCAN_DisableTxDelayCompensation 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2441:19:HAL_FDCAN_EnableISOMode 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2467:19:HAL_FDCAN_DisableISOMode 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2493:19:HAL_FDCAN_EnableEdgeFiltering 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2519:19:HAL_FDCAN_DisableEdgeFiltering 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2579:19:HAL_FDCAN_Start 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2610:19:HAL_FDCAN_Stop 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2692:19:HAL_FDCAN_AddMessageToTxFifoQ 4 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2770:19:HAL_FDCAN_AddMessageToTxBuffer 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2838:19:HAL_FDCAN_EnableTxBufferRequest 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2865:10:HAL_FDCAN_GetLatestTxFifoQRequestBuffer 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2879:19:HAL_FDCAN_AbortTxRequest 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2908:19:HAL_FDCAN_GetRxMessage 18 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3103:19:HAL_FDCAN_GetTxEvent 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3198:19:HAL_FDCAN_GetHighPriorityMessageStatus 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3216:19:HAL_FDCAN_GetProtocolStatus 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3247:19:HAL_FDCAN_GetErrorCounters 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3274:10:HAL_FDCAN_IsRxBufferMessageAvailable 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3311:10:HAL_FDCAN_IsTxBufferMessagePending 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3331:10:HAL_FDCAN_GetRxFifoFillLevel 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3358:10:HAL_FDCAN_GetTxFifoFreeLevel 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3376:10:HAL_FDCAN_IsRestrictedOperationMode 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3392:19:HAL_FDCAN_ExitRestrictedOperationMode 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3458:19:HAL_FDCAN_TT_ConfigOperation 10 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3636:19:HAL_FDCAN_TT_ConfigReferenceMessage 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3684:19:HAL_FDCAN_TT_ConfigTrigger 11 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3794:19:HAL_FDCAN_TT_SetGlobalTime 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3868:19:HAL_FDCAN_TT_SetClockSynchronization 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3944:19:HAL_FDCAN_TT_ConfigStopWatch 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4005:19:HAL_FDCAN_TT_ConfigRegisterTimeMark 11 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4126:19:HAL_FDCAN_TT_EnableRegisterTimeMarkPulse 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4176:19:HAL_FDCAN_TT_DisableRegisterTimeMarkPulse 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4226:19:HAL_FDCAN_TT_EnableTriggerTimeMarkPulse 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4287:19:HAL_FDCAN_TT_DisableTriggerTimeMarkPulse 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4348:19:HAL_FDCAN_TT_EnableHardwareGapControl 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4409:19:HAL_FDCAN_TT_DisableHardwareGapControl 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4472:19:HAL_FDCAN_TT_EnableTimeMarkGapControl 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4533:19:HAL_FDCAN_TT_DisableTimeMarkGapControl 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4594:19:HAL_FDCAN_TT_SetNextIsGap 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4664:19:HAL_FDCAN_TT_SetEndOfGap 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4738:19:HAL_FDCAN_TT_ConfigExternalSyncPhase 4 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4779:19:HAL_FDCAN_TT_EnableExternalSynchronization 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4829:19:HAL_FDCAN_TT_DisableExternalSynchronization 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4880:19:HAL_FDCAN_TT_GetOperationStatus 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4944:19:HAL_FDCAN_ConfigInterruptLines 4 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4986:19:HAL_FDCAN_TT_ConfigInterruptLines 4 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5032:19:HAL_FDCAN_ActivateNotification 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5095:19:HAL_FDCAN_DeactivateNotification 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5154:19:HAL_FDCAN_TT_ActivateNotification 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5204:19:HAL_FDCAN_TT_DeactivateNotification 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5250:6:HAL_FDCAN_IRQHandler 33 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5680:13:HAL_FDCAN_ClockCalibrationCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5699:13:HAL_FDCAN_TxEventFifoCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5718:13:HAL_FDCAN_RxFifo0Callback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5737:13:HAL_FDCAN_RxFifo1Callback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5754:13:HAL_FDCAN_TxFifoEmptyCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5772:13:HAL_FDCAN_TxBufferCompleteCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5791:13:HAL_FDCAN_TxBufferAbortCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5808:13:HAL_FDCAN_RxBufferNewMessageCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5824:13:HAL_FDCAN_TimestampWraparoundCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5840:13:HAL_FDCAN_TimeoutOccurredCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5856:13:HAL_FDCAN_HighPriorityMessageCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5872:13:HAL_FDCAN_ErrorCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5890:13:HAL_FDCAN_ErrorStatusCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5909:13:HAL_FDCAN_TT_ScheduleSyncCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5928:13:HAL_FDCAN_TT_TimeMarkCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5950:13:HAL_FDCAN_TT_StopWatchCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5970:13:HAL_FDCAN_TT_GlobalTimeCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:6006:24:HAL_FDCAN_GetState 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:6018:10:HAL_FDCAN_GetError 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:6042:26:FDCAN_CalcultateRamBlockAddresses 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:6141:13:FDCAN_CopyMessageToRAM 3 diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.d b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.d deleted file mode 100644 index 26c626f..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.d +++ /dev/null @@ -1,80 +0,0 @@ -Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o: \ - ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o deleted file mode 100644 index eb62a08..0000000 Binary files a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o and /dev/null differ diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.su b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.su deleted file mode 100644 index a983a37..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.su +++ /dev/null @@ -1,100 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:287:19:HAL_FDCAN_Init 104 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:592:19:HAL_FDCAN_DeInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:638:13:HAL_FDCAN_MspInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:653:13:HAL_FDCAN_MspDeInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:668:19:HAL_FDCAN_EnterPowerDownMode 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:703:19:HAL_FDCAN_ExitPowerDownMode 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:1658:19:HAL_FDCAN_ConfigClockCalibration 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:1726:10:HAL_FDCAN_GetClockCalibrationState 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:1740:19:HAL_FDCAN_ResetClockCalibrationState 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:1776:10:HAL_FDCAN_GetClockCalibrationCounter 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:1807:19:HAL_FDCAN_ConfigFilter 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:1919:19:HAL_FDCAN_ConfigGlobalFilter 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:1959:19:HAL_FDCAN_ConfigExtendedIdMask 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:1993:19:HAL_FDCAN_ConfigRxFifoOverwrite 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2036:19:HAL_FDCAN_ConfigFifoWatermark 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2086:19:HAL_FDCAN_ConfigRamWatchdog 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2116:19:HAL_FDCAN_ConfigTimestampCounter 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2146:19:HAL_FDCAN_EnableTimestampCounter 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2174:19:HAL_FDCAN_DisableTimestampCounter 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2199:10:HAL_FDCAN_GetTimestampCounter 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2210:19:HAL_FDCAN_ResetTimestampCounter 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2241:19:HAL_FDCAN_ConfigTimeoutCounter 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2270:19:HAL_FDCAN_EnableTimeoutCounter 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2295:19:HAL_FDCAN_DisableTimeoutCounter 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2320:10:HAL_FDCAN_GetTimeoutCounter 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2331:19:HAL_FDCAN_ResetTimeoutCounter 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2361:19:HAL_FDCAN_ConfigTxDelayCompensation 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2390:19:HAL_FDCAN_EnableTxDelayCompensation 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2415:19:HAL_FDCAN_DisableTxDelayCompensation 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2441:19:HAL_FDCAN_EnableISOMode 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2467:19:HAL_FDCAN_DisableISOMode 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2493:19:HAL_FDCAN_EnableEdgeFiltering 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2519:19:HAL_FDCAN_DisableEdgeFiltering 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2579:19:HAL_FDCAN_Start 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2610:19:HAL_FDCAN_Stop 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2692:19:HAL_FDCAN_AddMessageToTxFifoQ 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2770:19:HAL_FDCAN_AddMessageToTxBuffer 56 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2838:19:HAL_FDCAN_EnableTxBufferRequest 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2865:10:HAL_FDCAN_GetLatestTxFifoQRequestBuffer 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2879:19:HAL_FDCAN_AbortTxRequest 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:2908:19:HAL_FDCAN_GetRxMessage 48 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3103:19:HAL_FDCAN_GetTxEvent 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3198:19:HAL_FDCAN_GetHighPriorityMessageStatus 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3216:19:HAL_FDCAN_GetProtocolStatus 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3247:19:HAL_FDCAN_GetErrorCounters 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3274:10:HAL_FDCAN_IsRxBufferMessageAvailable 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3311:10:HAL_FDCAN_IsTxBufferMessagePending 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3331:10:HAL_FDCAN_GetRxFifoFillLevel 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3358:10:HAL_FDCAN_GetTxFifoFreeLevel 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3376:10:HAL_FDCAN_IsRestrictedOperationMode 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3392:19:HAL_FDCAN_ExitRestrictedOperationMode 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3458:19:HAL_FDCAN_TT_ConfigOperation 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3636:19:HAL_FDCAN_TT_ConfigReferenceMessage 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3684:19:HAL_FDCAN_TT_ConfigTrigger 48 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3794:19:HAL_FDCAN_TT_SetGlobalTime 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3868:19:HAL_FDCAN_TT_SetClockSynchronization 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:3944:19:HAL_FDCAN_TT_ConfigStopWatch 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4005:19:HAL_FDCAN_TT_ConfigRegisterTimeMark 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4126:19:HAL_FDCAN_TT_EnableRegisterTimeMarkPulse 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4176:19:HAL_FDCAN_TT_DisableRegisterTimeMarkPulse 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4226:19:HAL_FDCAN_TT_EnableTriggerTimeMarkPulse 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4287:19:HAL_FDCAN_TT_DisableTriggerTimeMarkPulse 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4348:19:HAL_FDCAN_TT_EnableHardwareGapControl 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4409:19:HAL_FDCAN_TT_DisableHardwareGapControl 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4472:19:HAL_FDCAN_TT_EnableTimeMarkGapControl 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4533:19:HAL_FDCAN_TT_DisableTimeMarkGapControl 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4594:19:HAL_FDCAN_TT_SetNextIsGap 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4664:19:HAL_FDCAN_TT_SetEndOfGap 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4738:19:HAL_FDCAN_TT_ConfigExternalSyncPhase 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4779:19:HAL_FDCAN_TT_EnableExternalSynchronization 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4829:19:HAL_FDCAN_TT_DisableExternalSynchronization 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4880:19:HAL_FDCAN_TT_GetOperationStatus 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4944:19:HAL_FDCAN_ConfigInterruptLines 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:4986:19:HAL_FDCAN_TT_ConfigInterruptLines 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5032:19:HAL_FDCAN_ActivateNotification 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5095:19:HAL_FDCAN_DeactivateNotification 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5154:19:HAL_FDCAN_TT_ActivateNotification 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5204:19:HAL_FDCAN_TT_DeactivateNotification 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5250:6:HAL_FDCAN_IRQHandler 96 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5680:13:HAL_FDCAN_ClockCalibrationCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5699:13:HAL_FDCAN_TxEventFifoCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5718:13:HAL_FDCAN_RxFifo0Callback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5737:13:HAL_FDCAN_RxFifo1Callback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5754:13:HAL_FDCAN_TxFifoEmptyCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5772:13:HAL_FDCAN_TxBufferCompleteCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5791:13:HAL_FDCAN_TxBufferAbortCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5808:13:HAL_FDCAN_RxBufferNewMessageCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5824:13:HAL_FDCAN_TimestampWraparoundCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5840:13:HAL_FDCAN_TimeoutOccurredCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5856:13:HAL_FDCAN_HighPriorityMessageCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5872:13:HAL_FDCAN_ErrorCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5890:13:HAL_FDCAN_ErrorStatusCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5909:13:HAL_FDCAN_TT_ScheduleSyncCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5928:13:HAL_FDCAN_TT_TimeMarkCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5950:13:HAL_FDCAN_TT_StopWatchCallback 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:5970:13:HAL_FDCAN_TT_GlobalTimeCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:6006:24:HAL_FDCAN_GetState 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:6018:10:HAL_FDCAN_GetError 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:6042:26:FDCAN_CalcultateRamBlockAddresses 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c:6141:13:FDCAN_CopyMessageToRAM 40 static diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.cyclo b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.cyclo deleted file mode 100644 index 52ee4a9..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.cyclo +++ /dev/null @@ -1,14 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:154:19:HAL_FLASH_Program 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:317:19:HAL_FLASH_Program_IT 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:471:6:HAL_FLASH_IRQHandler 15 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:741:13:HAL_FLASH_EndOfOperationCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:759:13:HAL_FLASH_OperationErrorCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:792:19:HAL_FLASH_Unlock 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:829:19:HAL_FLASH_Lock 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:858:19:HAL_FLASH_OB_Unlock 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:880:19:HAL_FLASH_OB_Lock 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:898:19:HAL_FLASH_OB_Launch 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:976:10:HAL_FLASH_GetError 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:1001:19:FLASH_WaitForLastOperation 9 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:1085:19:FLASH_OB_WaitForLastOperation 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:1124:19:FLASH_CRC_WaitForLastOperation 8 diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.d b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.d deleted file mode 100644 index 514ca90..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.d +++ /dev/null @@ -1,80 +0,0 @@ -Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o: \ - ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o deleted file mode 100644 index 63aaad2..0000000 Binary files a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o and /dev/null differ diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.su b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.su deleted file mode 100644 index f666ec8..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.su +++ /dev/null @@ -1,14 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:154:19:HAL_FLASH_Program 48 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:317:19:HAL_FLASH_Program_IT 48 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:471:6:HAL_FLASH_IRQHandler 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:741:13:HAL_FLASH_EndOfOperationCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:759:13:HAL_FLASH_OperationErrorCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:792:19:HAL_FLASH_Unlock 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:829:19:HAL_FLASH_Lock 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:858:19:HAL_FLASH_OB_Unlock 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:880:19:HAL_FLASH_OB_Lock 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:898:19:HAL_FLASH_OB_Launch 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:976:10:HAL_FLASH_GetError 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:1001:19:FLASH_WaitForLastOperation 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:1085:19:FLASH_OB_WaitForLastOperation 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:1124:19:FLASH_CRC_WaitForLastOperation 24 static diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.cyclo b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.cyclo deleted file mode 100644 index 1565cf4..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.cyclo +++ /dev/null @@ -1,30 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:176:19:HAL_FLASHEx_Erase 11 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:293:19:HAL_FLASHEx_Erase_IT 8 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:414:19:HAL_FLASHEx_OBProgram 14 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:557:6:HAL_FLASHEx_OBGetConfig 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:625:19:HAL_FLASHEx_Unlock_Bank1 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:647:19:HAL_FLASHEx_Lock_Bank1 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:700:19:HAL_FLASHEx_ComputeCRC 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:848:13:FLASH_MassErase 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:925:6:FLASH_Erase_Sector 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:982:13:FLASH_OB_EnableWRP 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1017:13:FLASH_OB_DisableWRP 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1056:13:FLASH_OB_GetWRP 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1102:13:FLASH_OB_RDPConfig 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1119:17:FLASH_OB_GetRDP 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1175:13:FLASH_OB_UserConfig 11 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1363:17:FLASH_OB_GetUser 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1397:13:FLASH_OB_PCROPConfig 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1446:13:FLASH_OB_GetPCROP 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1482:13:FLASH_OB_BOR_LevelConfig 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1499:17:FLASH_OB_GetBOR 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1514:13:FLASH_OB_BootAddConfig 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1552:13:FLASH_OB_GetBootAdd 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1636:13:FLASH_OB_SecureAreaConfig 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1678:13:FLASH_OB_GetSecureArea 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1711:13:FLASH_CRC_AddSector 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1743:13:FLASH_CRC_SelectAddress 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1804:13:FLASH_OB_SharedRAM_Config 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1818:17:FLASH_OB_SharedRAM_GetConfig 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1831:13:FLASH_OB_CPUFreq_BoostConfig 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1845:17:FLASH_OB_CPUFreq_GetBoost 1 diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.d b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.d deleted file mode 100644 index f49746f..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.d +++ /dev/null @@ -1,80 +0,0 @@ -Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o: \ - ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o deleted file mode 100644 index 67fa8f3..0000000 Binary files a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o and /dev/null differ diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.su b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.su deleted file mode 100644 index 655976d..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.su +++ /dev/null @@ -1,30 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:176:19:HAL_FLASHEx_Erase 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:293:19:HAL_FLASHEx_Erase_IT 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:414:19:HAL_FLASHEx_OBProgram 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:557:6:HAL_FLASHEx_OBGetConfig 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:625:19:HAL_FLASHEx_Unlock_Bank1 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:647:19:HAL_FLASHEx_Lock_Bank1 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:700:19:HAL_FLASHEx_ComputeCRC 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:848:13:FLASH_MassErase 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:925:6:FLASH_Erase_Sector 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:982:13:FLASH_OB_EnableWRP 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1017:13:FLASH_OB_DisableWRP 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1056:13:FLASH_OB_GetWRP 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1102:13:FLASH_OB_RDPConfig 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1119:17:FLASH_OB_GetRDP 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1175:13:FLASH_OB_UserConfig 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1363:17:FLASH_OB_GetUser 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1397:13:FLASH_OB_PCROPConfig 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1446:13:FLASH_OB_GetPCROP 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1482:13:FLASH_OB_BOR_LevelConfig 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1499:17:FLASH_OB_GetBOR 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1514:13:FLASH_OB_BootAddConfig 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1552:13:FLASH_OB_GetBootAdd 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1636:13:FLASH_OB_SecureAreaConfig 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1678:13:FLASH_OB_GetSecureArea 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1711:13:FLASH_CRC_AddSector 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1743:13:FLASH_CRC_SelectAddress 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1804:13:FLASH_OB_SharedRAM_Config 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1818:17:FLASH_OB_SharedRAM_GetConfig 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1831:13:FLASH_OB_CPUFreq_BoostConfig 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:1845:17:FLASH_OB_CPUFreq_GetBoost 4 static diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.cyclo b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.cyclo deleted file mode 100644 index 7f18224..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.cyclo +++ /dev/null @@ -1,8 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c:165:6:HAL_GPIO_Init 21 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c:302:6:HAL_GPIO_DeInit 13 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c:389:15:HAL_GPIO_ReadPin 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c:423:6:HAL_GPIO_WritePin 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c:445:6:HAL_GPIO_TogglePin 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c:470:19:HAL_GPIO_LockPin 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c:505:6:HAL_GPIO_EXTI_IRQHandler 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c:528:13:HAL_GPIO_EXTI_Callback 1 diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.d b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.d deleted file mode 100644 index f712f37..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.d +++ /dev/null @@ -1,80 +0,0 @@ -Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o: \ - ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o deleted file mode 100644 index 87875a3..0000000 Binary files a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o and /dev/null differ diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.su b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.su deleted file mode 100644 index db18f74..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.su +++ /dev/null @@ -1,8 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c:165:6:HAL_GPIO_Init 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c:302:6:HAL_GPIO_DeInit 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c:389:15:HAL_GPIO_ReadPin 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c:423:6:HAL_GPIO_WritePin 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c:445:6:HAL_GPIO_TogglePin 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c:470:19:HAL_GPIO_LockPin 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c:505:6:HAL_GPIO_EXTI_IRQHandler 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c:528:13:HAL_GPIO_EXTI_Callback 16 static diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.cyclo b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.cyclo deleted file mode 100644 index 5be35c7..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.cyclo +++ /dev/null @@ -1,11 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c:159:20:HAL_HSEM_Take 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c:196:19:HAL_HSEM_FastTake 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c:225:10:HAL_HSEM_IsSemTaken 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c:237:7:HAL_HSEM_Release 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c:258:6:HAL_HSEM_ReleaseAll 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c:290:7:HAL_HSEM_SetClearKey 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c:302:10:HAL_HSEM_GetClearKey 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c:329:6:HAL_HSEM_ActivateNotification 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c:353:6:HAL_HSEM_DeactivateNotification 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c:376:6:HAL_HSEM_IRQHandler 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c:422:13:HAL_HSEM_FreeCallback 1 diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.d b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.d deleted file mode 100644 index 0c0c8e0..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.d +++ /dev/null @@ -1,80 +0,0 @@ -Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o: \ - ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o deleted file mode 100644 index 0451969..0000000 Binary files a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o and /dev/null differ diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.su b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.su deleted file mode 100644 index 654cf48..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.su +++ /dev/null @@ -1,11 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c:159:20:HAL_HSEM_Take 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c:196:19:HAL_HSEM_FastTake 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c:225:10:HAL_HSEM_IsSemTaken 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c:237:7:HAL_HSEM_Release 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c:258:6:HAL_HSEM_ReleaseAll 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c:290:7:HAL_HSEM_SetClearKey 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c:302:10:HAL_HSEM_GetClearKey 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c:329:6:HAL_HSEM_ActivateNotification 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c:353:6:HAL_HSEM_DeactivateNotification 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c:376:6:HAL_HSEM_IRQHandler 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c:422:13:HAL_HSEM_FreeCallback 16 static diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.cyclo b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.cyclo deleted file mode 100644 index b220e84..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.cyclo +++ /dev/null @@ -1,81 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:528:19:HAL_I2C_Init 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:638:19:HAL_I2C_DeInit 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:684:13:HAL_I2C_MspInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:700:13:HAL_I2C_MspDeInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:1107:19:HAL_I2C_Master_Transmit 12 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:1226:19:HAL_I2C_Master_Receive 12 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:1344:19:HAL_I2C_Slave_Transmit 15 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:1500:19:HAL_I2C_Slave_Receive 12 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:1630:19:HAL_I2C_Master_Transmit_IT 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:1701:19:HAL_I2C_Master_Receive_IT 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:1770:19:HAL_I2C_Slave_Transmit_IT 4 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:1834:19:HAL_I2C_Slave_Receive_IT 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:1886:19:HAL_I2C_Master_Transmit_DMA 8 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:2033:19:HAL_I2C_Master_Receive_DMA 8 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:2178:19:HAL_I2C_Slave_Transmit_DMA 9 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:2314:19:HAL_I2C_Slave_Receive_DMA 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:2422:19:HAL_I2C_Mem_Write 15 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:2559:19:HAL_I2C_Mem_Read 15 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:2696:19:HAL_I2C_Mem_Write_IT 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:2783:19:HAL_I2C_Mem_Read_IT 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:2869:19:HAL_I2C_Mem_Write_DMA 10 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:3015:19:HAL_I2C_Mem_Read_DMA 10 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:3160:19:HAL_I2C_IsDeviceReady 16 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:3302:19:HAL_I2C_Master_Seq_Transmit_IT 9 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:3393:19:HAL_I2C_Master_Seq_Transmit_DMA 12 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:3561:19:HAL_I2C_Master_Seq_Receive_IT 9 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:3648:19:HAL_I2C_Master_Seq_Receive_DMA 12 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:3814:19:HAL_I2C_Slave_Seq_Transmit_IT 11 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:3914:19:HAL_I2C_Slave_Seq_Transmit_DMA 17 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4098:19:HAL_I2C_Slave_Seq_Receive_IT 11 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4198:19:HAL_I2C_Slave_Seq_Receive_DMA 17 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4378:19:HAL_I2C_EnableListen_IT 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4402:19:HAL_I2C_DisableListen_IT 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4435:19:HAL_I2C_Master_Abort_IT 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4497:6:HAL_I2C_EV_IRQHandler 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4516:6:HAL_I2C_ER_IRQHandler 8 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4568:13:HAL_I2C_MasterTxCpltCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4584:13:HAL_I2C_MasterRxCpltCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4599:13:HAL_I2C_SlaveTxCpltCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4615:13:HAL_I2C_SlaveRxCpltCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4633:13:HAL_I2C_AddrCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4651:13:HAL_I2C_ListenCpltCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4667:13:HAL_I2C_MemTxCpltCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4683:13:HAL_I2C_MemRxCpltCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4699:13:HAL_I2C_ErrorCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4715:13:HAL_I2C_AbortCpltCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4750:22:HAL_I2C_GetState 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4762:21:HAL_I2C_GetMode 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4773:10:HAL_I2C_GetError 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4798:26:I2C_Master_ISR_IT 22 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4944:26:I2C_Mem_ISR_IT 20 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:5081:26:I2C_Slave_ISR_IT 25 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:5222:26:I2C_Master_ISR_DMA 18 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:5362:26:I2C_Mem_ISR_DMA 18 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:5501:26:I2C_Slave_ISR_DMA 59 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:5646:26:I2C_RequestMemoryWrite 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:5701:26:I2C_RequestMemoryRead 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:5750:13:I2C_ITAddrCplt 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:5845:13:I2C_ITMasterSeqCplt 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:5898:13:I2C_ITSlaveSeqCplt 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:5972:13:I2C_ITMasterCplt 12 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6115:13:I2C_ITSlaveCplt 48 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6274:13:I2C_ITListenCplt 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6325:13:I2C_ITError 19 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6454:13:I2C_TreatErrorCallback 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6492:13:I2C_Flush_TXDR 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6513:13:I2C_DMAMasterTransmitCplt 4 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6563:13:I2C_DMASlaveTransmitCplt 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6591:13:I2C_DMAMasterReceiveCplt 4 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6641:13:I2C_DMASlaveReceiveCplt 19 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6669:13:I2C_DMAError 39 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6708:13:I2C_DMAAbort 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6737:26:I2C_WaitOnFlagUntilTimeout 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6771:26:I2C_WaitOnTXISFlagUntilTimeout 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6812:26:I2C_WaitOnSTOPFlagUntilTimeout 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6850:26:I2C_WaitOnRXNEFlagUntilTimeout 10 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6926:26:I2C_IsErrorOccurred 17 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:7067:13:I2C_TransferConfig 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:7094:13:I2C_Enable_IRQ 12 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:7171:13:I2C_Disable_IRQ 9 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:7234:13:I2C_ConvertOtherXferOptions 3 diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.d b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.d deleted file mode 100644 index 10fe760..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.d +++ /dev/null @@ -1,80 +0,0 @@ -Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o: \ - ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o deleted file mode 100644 index a266c19..0000000 Binary files a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o and /dev/null differ diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.su b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.su deleted file mode 100644 index 3010100..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.su +++ /dev/null @@ -1,81 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:528:19:HAL_I2C_Init 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:638:19:HAL_I2C_DeInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:684:13:HAL_I2C_MspInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:700:13:HAL_I2C_MspDeInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:1107:19:HAL_I2C_Master_Transmit 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:1226:19:HAL_I2C_Master_Receive 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:1344:19:HAL_I2C_Slave_Transmit 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:1500:19:HAL_I2C_Slave_Receive 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:1630:19:HAL_I2C_Master_Transmit_IT 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:1701:19:HAL_I2C_Master_Receive_IT 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:1770:19:HAL_I2C_Slave_Transmit_IT 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:1834:19:HAL_I2C_Slave_Receive_IT 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:1886:19:HAL_I2C_Master_Transmit_DMA 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:2033:19:HAL_I2C_Master_Receive_DMA 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:2178:19:HAL_I2C_Slave_Transmit_DMA 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:2314:19:HAL_I2C_Slave_Receive_DMA 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:2422:19:HAL_I2C_Mem_Write 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:2559:19:HAL_I2C_Mem_Read 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:2696:19:HAL_I2C_Mem_Write_IT 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:2783:19:HAL_I2C_Mem_Read_IT 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:2869:19:HAL_I2C_Mem_Write_DMA 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:3015:19:HAL_I2C_Mem_Read_DMA 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:3160:19:HAL_I2C_IsDeviceReady 48 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:3302:19:HAL_I2C_Master_Seq_Transmit_IT 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:3393:19:HAL_I2C_Master_Seq_Transmit_DMA 48 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:3561:19:HAL_I2C_Master_Seq_Receive_IT 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:3648:19:HAL_I2C_Master_Seq_Receive_DMA 48 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:3814:19:HAL_I2C_Slave_Seq_Transmit_IT 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:3914:19:HAL_I2C_Slave_Seq_Transmit_DMA 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4098:19:HAL_I2C_Slave_Seq_Receive_IT 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4198:19:HAL_I2C_Slave_Seq_Receive_DMA 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4378:19:HAL_I2C_EnableListen_IT 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4402:19:HAL_I2C_DisableListen_IT 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4435:19:HAL_I2C_Master_Abort_IT 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4497:6:HAL_I2C_EV_IRQHandler 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4516:6:HAL_I2C_ER_IRQHandler 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4568:13:HAL_I2C_MasterTxCpltCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4584:13:HAL_I2C_MasterRxCpltCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4599:13:HAL_I2C_SlaveTxCpltCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4615:13:HAL_I2C_SlaveRxCpltCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4633:13:HAL_I2C_AddrCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4651:13:HAL_I2C_ListenCpltCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4667:13:HAL_I2C_MemTxCpltCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4683:13:HAL_I2C_MemRxCpltCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4699:13:HAL_I2C_ErrorCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4715:13:HAL_I2C_AbortCpltCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4750:22:HAL_I2C_GetState 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4762:21:HAL_I2C_GetMode 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4773:10:HAL_I2C_GetError 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4798:26:I2C_Master_ISR_IT 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:4944:26:I2C_Mem_ISR_IT 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:5081:26:I2C_Slave_ISR_IT 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:5222:26:I2C_Master_ISR_DMA 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:5362:26:I2C_Mem_ISR_DMA 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:5501:26:I2C_Slave_ISR_DMA 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:5646:26:I2C_RequestMemoryWrite 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:5701:26:I2C_RequestMemoryRead 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:5750:13:I2C_ITAddrCplt 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:5845:13:I2C_ITMasterSeqCplt 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:5898:13:I2C_ITSlaveSeqCplt 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:5972:13:I2C_ITMasterCplt 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6115:13:I2C_ITSlaveCplt 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6274:13:I2C_ITListenCplt 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6325:13:I2C_ITError 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6454:13:I2C_TreatErrorCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6492:13:I2C_Flush_TXDR 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6513:13:I2C_DMAMasterTransmitCplt 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6563:13:I2C_DMASlaveTransmitCplt 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6591:13:I2C_DMAMasterReceiveCplt 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6641:13:I2C_DMASlaveReceiveCplt 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6669:13:I2C_DMAError 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6708:13:I2C_DMAAbort 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6737:26:I2C_WaitOnFlagUntilTimeout 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6771:26:I2C_WaitOnTXISFlagUntilTimeout 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6812:26:I2C_WaitOnSTOPFlagUntilTimeout 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6850:26:I2C_WaitOnRXNEFlagUntilTimeout 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:6926:26:I2C_IsErrorOccurred 48 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:7067:13:I2C_TransferConfig 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:7094:13:I2C_Enable_IRQ 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:7171:13:I2C_Disable_IRQ 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c:7234:13:I2C_ConvertOtherXferOptions 16 static diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.cyclo b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.cyclo deleted file mode 100644 index a259241..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.cyclo +++ /dev/null @@ -1,6 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.c:96:19:HAL_I2CEx_ConfigAnalogFilter 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.c:140:19:HAL_I2CEx_ConfigDigitalFilter 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.c:208:19:HAL_I2CEx_EnableWakeUp 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.c:247:19:HAL_I2CEx_DisableWakeUp 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.c:316:6:HAL_I2CEx_EnableFastModePlus 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.c:347:6:HAL_I2CEx_DisableFastModePlus 1 diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.d b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.d deleted file mode 100644 index 8bd88b4..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.d +++ /dev/null @@ -1,80 +0,0 @@ -Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o: \ - ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.c \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o deleted file mode 100644 index 40e8b8d..0000000 Binary files a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o and /dev/null differ diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.su b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.su deleted file mode 100644 index f5125f3..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.su +++ /dev/null @@ -1,6 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.c:96:19:HAL_I2CEx_ConfigAnalogFilter 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.c:140:19:HAL_I2CEx_ConfigDigitalFilter 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.c:208:19:HAL_I2CEx_EnableWakeUp 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.c:247:19:HAL_I2CEx_DisableWakeUp 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.c:316:6:HAL_I2CEx_EnableFastModePlus 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.c:347:6:HAL_I2CEx_DisableFastModePlus 24 static diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.cyclo b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.cyclo deleted file mode 100644 index 1af2ba1..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.cyclo +++ /dev/null @@ -1,21 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:218:19:HAL_MDMA_Init 4 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:294:19:HAL_MDMA_DeInit 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:347:19:HAL_MDMA_ConfigPostRequestMask 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:409:19:HAL_MDMA_RegisterCallback 10 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:474:19:HAL_MDMA_UnRegisterCallback 11 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:568:19:HAL_MDMA_LinkedList_CreateNode 13 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:711:19:HAL_MDMA_LinkedList_AddNode 18 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:844:19:HAL_MDMA_LinkedList_RemoveNode 16 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:957:19:HAL_MDMA_LinkedList_EnableCircularMode 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:1001:19:HAL_MDMA_LinkedList_DisableCircularMode 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:1072:19:HAL_MDMA_Start 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:1132:19:HAL_MDMA_Start_IT 8 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:1215:19:HAL_MDMA_Abort 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:1280:19:HAL_MDMA_Abort_IT 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:1315:19:HAL_MDMA_PollForTransfer 20 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:1462:19:HAL_MDMA_GenerateSWRequest 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:1504:6:HAL_MDMA_IRQHandler 28 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:1722:23:HAL_MDMA_GetState 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:1733:10:HAL_MDMA_GetError 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:1760:13:MDMA_SetConfig 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:1814:13:MDMA_Init 5 diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.d b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.d deleted file mode 100644 index 25edddb..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.d +++ /dev/null @@ -1,80 +0,0 @@ -Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o: \ - ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o deleted file mode 100644 index eb4d9e2..0000000 Binary files a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o and /dev/null differ diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.su b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.su deleted file mode 100644 index 5e80aff..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.su +++ /dev/null @@ -1,21 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:218:19:HAL_MDMA_Init 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:294:19:HAL_MDMA_DeInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:347:19:HAL_MDMA_ConfigPostRequestMask 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:409:19:HAL_MDMA_RegisterCallback 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:474:19:HAL_MDMA_UnRegisterCallback 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:568:19:HAL_MDMA_LinkedList_CreateNode 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:711:19:HAL_MDMA_LinkedList_AddNode 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:844:19:HAL_MDMA_LinkedList_RemoveNode 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:957:19:HAL_MDMA_LinkedList_EnableCircularMode 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:1001:19:HAL_MDMA_LinkedList_DisableCircularMode 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:1072:19:HAL_MDMA_Start 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:1132:19:HAL_MDMA_Start_IT 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:1215:19:HAL_MDMA_Abort 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:1280:19:HAL_MDMA_Abort_IT 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:1315:19:HAL_MDMA_PollForTransfer 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:1462:19:HAL_MDMA_GenerateSWRequest 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:1504:6:HAL_MDMA_IRQHandler 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:1722:23:HAL_MDMA_GetState 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:1733:10:HAL_MDMA_GetError 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:1760:13:MDMA_SetConfig 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c:1814:13:MDMA_Init 24 static diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.cyclo b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.cyclo deleted file mode 100644 index 7254bb6..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.cyclo +++ /dev/null @@ -1,17 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:225:6:HAL_PWR_DeInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:236:6:HAL_PWR_EnableBkUpAccess 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:249:6:HAL_PWR_DisableBkUpAccess 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:415:6:HAL_PWR_ConfigPVD 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:470:6:HAL_PWR_EnablePVD 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:480:6:HAL_PWR_DisablePVD 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:507:6:HAL_PWR_EnableWakeUpPin 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:536:6:HAL_PWR_DisableWakeUpPin 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:564:6:HAL_PWR_EnterSLEEPMode 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:615:6:HAL_PWR_EnterSTOPMode 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:686:6:HAL_PWR_EnterSTANDBYMode 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:738:6:HAL_PWR_EnableSleepOnExit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:751:6:HAL_PWR_DisableSleepOnExit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:764:6:HAL_PWR_EnableSEVOnPend 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:776:6:HAL_PWR_DisableSEVOnPend 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:805:6:HAL_PWR_PVD_IRQHandler 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:850:13:HAL_PWR_PVDCallback 1 diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.d b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.d deleted file mode 100644 index 32ca4a3..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.d +++ /dev/null @@ -1,80 +0,0 @@ -Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o: \ - ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o deleted file mode 100644 index 3444697..0000000 Binary files a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o and /dev/null differ diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.su b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.su deleted file mode 100644 index 3e10d44..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.su +++ /dev/null @@ -1,17 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:225:6:HAL_PWR_DeInit 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:236:6:HAL_PWR_EnableBkUpAccess 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:249:6:HAL_PWR_DisableBkUpAccess 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:415:6:HAL_PWR_ConfigPVD 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:470:6:HAL_PWR_EnablePVD 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:480:6:HAL_PWR_DisablePVD 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:507:6:HAL_PWR_EnableWakeUpPin 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:536:6:HAL_PWR_DisableWakeUpPin 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:564:6:HAL_PWR_EnterSLEEPMode 16 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:615:6:HAL_PWR_EnterSTOPMode 16 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:686:6:HAL_PWR_EnterSTANDBYMode 4 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:738:6:HAL_PWR_EnableSleepOnExit 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:751:6:HAL_PWR_DisableSleepOnExit 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:764:6:HAL_PWR_EnableSEVOnPend 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:776:6:HAL_PWR_DisableSEVOnPend 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:805:6:HAL_PWR_PVD_IRQHandler 8 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c:850:13:HAL_PWR_PVDCallback 4 static diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.cyclo b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.cyclo deleted file mode 100644 index ff427ab..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.cyclo +++ /dev/null @@ -1,38 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:313:19:HAL_PWREx_ConfigSupply 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:385:10:HAL_PWREx_GetSupplyConfig 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:413:19:HAL_PWREx_ControlVoltageScaling 4 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:512:10:HAL_PWREx_GetVoltageRange 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:538:19:HAL_PWREx_ControlStopModeVoltageScaling 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:553:10:HAL_PWREx_GetStopModeVoltageRange 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:816:6:HAL_PWREx_EnterSTOPMode 4 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:939:6:HAL_PWREx_ClearPendingEvent 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:986:6:HAL_PWREx_EnterSTANDBYMode 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1081:6:HAL_PWREx_ConfigD3Domain 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1212:6:HAL_PWREx_EnableFlashPowerDown 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1226:6:HAL_PWREx_DisableFlashPowerDown 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1302:6:HAL_PWREx_EnableWakeUpPin 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1344:6:HAL_PWREx_DisableWakeUpPin 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1369:10:HAL_PWREx_GetWakeupFlag 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1394:19:HAL_PWREx_ClearWakeupFlag 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1416:6:HAL_PWREx_WAKEUP_PIN_IRQHandler 4 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1477:13:HAL_PWREx_WKUP1_Callback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1488:13:HAL_PWREx_WKUP2_Callback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1512:13:HAL_PWREx_WKUP4_Callback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1536:13:HAL_PWREx_WKUP6_Callback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1625:19:HAL_PWREx_EnableBkUpReg 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1651:19:HAL_PWREx_DisableBkUpReg 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1677:19:HAL_PWREx_EnableUSBReg 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1703:19:HAL_PWREx_DisableUSBReg 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1729:6:HAL_PWREx_EnableUSBVoltageDetector 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1739:6:HAL_PWREx_DisableUSBVoltageDetector 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1755:6:HAL_PWREx_EnableBatteryCharging 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1771:6:HAL_PWREx_DisableBatteryCharging 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1861:6:HAL_PWREx_EnableMonitoring 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1871:6:HAL_PWREx_DisableMonitoring 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1882:10:HAL_PWREx_GetTemperatureLevel 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1913:10:HAL_PWREx_GetVBATLevel 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1976:6:HAL_PWREx_ConfigAVD 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:2025:6:HAL_PWREx_EnableAVD 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:2035:6:HAL_PWREx_DisableAVD 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:2046:6:HAL_PWREx_PVD_AVD_IRQHandler 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:2119:13:HAL_PWREx_AVDCallback 1 diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.d b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.d deleted file mode 100644 index f80bde7..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.d +++ /dev/null @@ -1,80 +0,0 @@ -Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o: \ - ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o deleted file mode 100644 index 4884bc2..0000000 Binary files a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o and /dev/null differ diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.su b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.su deleted file mode 100644 index c138574..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.su +++ /dev/null @@ -1,38 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:313:19:HAL_PWREx_ConfigSupply 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:385:10:HAL_PWREx_GetSupplyConfig 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:413:19:HAL_PWREx_ControlVoltageScaling 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:512:10:HAL_PWREx_GetVoltageRange 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:538:19:HAL_PWREx_ControlStopModeVoltageScaling 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:553:10:HAL_PWREx_GetStopModeVoltageRange 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:816:6:HAL_PWREx_EnterSTOPMode 24 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:939:6:HAL_PWREx_ClearPendingEvent 4 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:986:6:HAL_PWREx_EnterSTANDBYMode 16 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1081:6:HAL_PWREx_ConfigD3Domain 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1212:6:HAL_PWREx_EnableFlashPowerDown 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1226:6:HAL_PWREx_DisableFlashPowerDown 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1302:6:HAL_PWREx_EnableWakeUpPin 80 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1344:6:HAL_PWREx_DisableWakeUpPin 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1369:10:HAL_PWREx_GetWakeupFlag 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1394:19:HAL_PWREx_ClearWakeupFlag 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1416:6:HAL_PWREx_WAKEUP_PIN_IRQHandler 8 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1477:13:HAL_PWREx_WKUP1_Callback 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1488:13:HAL_PWREx_WKUP2_Callback 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1512:13:HAL_PWREx_WKUP4_Callback 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1536:13:HAL_PWREx_WKUP6_Callback 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1625:19:HAL_PWREx_EnableBkUpReg 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1651:19:HAL_PWREx_DisableBkUpReg 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1677:19:HAL_PWREx_EnableUSBReg 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1703:19:HAL_PWREx_DisableUSBReg 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1729:6:HAL_PWREx_EnableUSBVoltageDetector 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1739:6:HAL_PWREx_DisableUSBVoltageDetector 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1755:6:HAL_PWREx_EnableBatteryCharging 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1771:6:HAL_PWREx_DisableBatteryCharging 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1861:6:HAL_PWREx_EnableMonitoring 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1871:6:HAL_PWREx_DisableMonitoring 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1882:10:HAL_PWREx_GetTemperatureLevel 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1913:10:HAL_PWREx_GetVBATLevel 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:1976:6:HAL_PWREx_ConfigAVD 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:2025:6:HAL_PWREx_EnableAVD 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:2035:6:HAL_PWREx_DisableAVD 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:2046:6:HAL_PWREx_PVD_AVD_IRQHandler 8 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c:2119:13:HAL_PWREx_AVDCallback 4 static diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.cyclo b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.cyclo deleted file mode 100644 index 97101d2..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.cyclo +++ /dev/null @@ -1,14 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c:188:19:HAL_RCC_DeInit 18 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c:405:26:HAL_RCC_OscConfig 81 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c:922:19:HAL_RCC_ClockConfig 36 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c:1286:6:HAL_RCC_MCOConfig 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c:1340:6:HAL_RCC_EnableCSS 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c:1349:6:HAL_RCC_DisableCSS 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c:1388:10:HAL_RCC_GetSysClockFreq 12 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c:1485:10:HAL_RCC_GetHCLKFreq 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c:1517:10:HAL_RCC_GetPCLK1Freq 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c:1535:10:HAL_RCC_GetPCLK2Freq 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c:1552:6:HAL_RCC_GetOscConfig 10 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c:1718:6:HAL_RCC_GetClockConfig 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c:1774:6:HAL_RCC_NMI_IRQHandler 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c:1791:13:HAL_RCC_CSSCallback 1 diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.d b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.d deleted file mode 100644 index 87f298c..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.d +++ /dev/null @@ -1,80 +0,0 @@ -Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o: \ - ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o deleted file mode 100644 index bcb6d2f..0000000 Binary files a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o and /dev/null differ diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.su b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.su deleted file mode 100644 index 97ae8e5..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.su +++ /dev/null @@ -1,14 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c:188:19:HAL_RCC_DeInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c:405:26:HAL_RCC_OscConfig 56 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c:922:19:HAL_RCC_ClockConfig 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c:1286:6:HAL_RCC_MCOConfig 56 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c:1340:6:HAL_RCC_EnableCSS 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c:1349:6:HAL_RCC_DisableCSS 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c:1388:10:HAL_RCC_GetSysClockFreq 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c:1485:10:HAL_RCC_GetHCLKFreq 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c:1517:10:HAL_RCC_GetPCLK1Freq 8 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c:1535:10:HAL_RCC_GetPCLK2Freq 8 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c:1552:6:HAL_RCC_GetOscConfig 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c:1718:6:HAL_RCC_GetClockConfig 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c:1774:6:HAL_RCC_NMI_IRQHandler 8 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c:1791:13:HAL_RCC_CSSCallback 4 static diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.cyclo b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.cyclo deleted file mode 100644 index ea09280..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.cyclo +++ /dev/null @@ -1,28 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:105:19:HAL_RCCEx_PeriphCLKConfig 203 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:1692:6:HAL_RCCEx_GetPeriphCLKConfig 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:1881:10:HAL_RCCEx_GetPeriphCLKFreq 128 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:2904:10:HAL_RCCEx_GetD1PCLK1Freq 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:2921:10:HAL_RCCEx_GetD3PCLK1Freq 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:2945:6:HAL_RCCEx_GetPLL2ClockFreq 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3014:6:HAL_RCCEx_GetPLL3ClockFreq 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3082:6:HAL_RCCEx_GetPLL1ClockFreq 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3143:10:HAL_RCCEx_GetD1SysClockFreq 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3183:6:HAL_RCCEx_EnableLSECSS 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3193:6:HAL_RCCEx_DisableLSECSS 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3205:6:HAL_RCCEx_EnableLSECSS_IT 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3232:6:HAL_RCCEx_WakeUpStopCLKConfig 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3247:6:HAL_RCCEx_KerWakeUpStopCLKConfig 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3301:6:HAL_RCCEx_WWDGxSysResetConfig 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3382:6:HAL_RCCEx_CRSConfig 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3432:6:HAL_RCCEx_CRSSoftwareSynchronizationGenerate 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3442:6:HAL_RCCEx_CRSGetSynchronizationInfo 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3475:10:HAL_RCCEx_CRSWaitSynchronization 11 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3559:6:HAL_RCCEx_CRS_IRQHandler 12 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3624:13:HAL_RCCEx_CRS_SyncOkCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3635:13:HAL_RCCEx_CRS_SyncWarnCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3646:13:HAL_RCCEx_CRS_ExpectedSyncCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3662:13:HAL_RCCEx_CRS_ErrorCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3693:26:RCCEx_PLL2_Config 8 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3798:26:RCCEx_PLL3_Config 8 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3895:6:HAL_RCCEx_LSECSS_IRQHandler 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3914:13:HAL_RCCEx_LSECSS_Callback 1 diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.d b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.d deleted file mode 100644 index ae495ab..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.d +++ /dev/null @@ -1,80 +0,0 @@ -Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o: \ - ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o deleted file mode 100644 index c4b85dc..0000000 Binary files a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o and /dev/null differ diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.su b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.su deleted file mode 100644 index 9f19b9b..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.su +++ /dev/null @@ -1,28 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:105:19:HAL_RCCEx_PeriphCLKConfig 312 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:1692:6:HAL_RCCEx_GetPeriphCLKConfig 48 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:1881:10:HAL_RCCEx_GetPeriphCLKFreq 72 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:2904:10:HAL_RCCEx_GetD1PCLK1Freq 8 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:2921:10:HAL_RCCEx_GetD3PCLK1Freq 8 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:2945:6:HAL_RCCEx_GetPLL2ClockFreq 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3014:6:HAL_RCCEx_GetPLL3ClockFreq 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3082:6:HAL_RCCEx_GetPLL1ClockFreq 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3143:10:HAL_RCCEx_GetD1SysClockFreq 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3183:6:HAL_RCCEx_EnableLSECSS 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3193:6:HAL_RCCEx_DisableLSECSS 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3205:6:HAL_RCCEx_EnableLSECSS_IT 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3232:6:HAL_RCCEx_WakeUpStopCLKConfig 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3247:6:HAL_RCCEx_KerWakeUpStopCLKConfig 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3301:6:HAL_RCCEx_WWDGxSysResetConfig 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3382:6:HAL_RCCEx_CRSConfig 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3432:6:HAL_RCCEx_CRSSoftwareSynchronizationGenerate 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3442:6:HAL_RCCEx_CRSGetSynchronizationInfo 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3475:10:HAL_RCCEx_CRSWaitSynchronization 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3559:6:HAL_RCCEx_CRS_IRQHandler 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3624:13:HAL_RCCEx_CRS_SyncOkCallback 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3635:13:HAL_RCCEx_CRS_SyncWarnCallback 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3646:13:HAL_RCCEx_CRS_ExpectedSyncCallback 4 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3662:13:HAL_RCCEx_CRS_ErrorCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3693:26:RCCEx_PLL2_Config 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3798:26:RCCEx_PLL3_Config 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3895:6:HAL_RCCEx_LSECSS_IRQHandler 8 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c:3914:13:HAL_RCCEx_LSECSS_Callback 4 static diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.cyclo b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.cyclo deleted file mode 100644 index 7310c94..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.cyclo +++ /dev/null @@ -1,43 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:338:19:HAL_SD_Init 12 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:469:19:HAL_SD_InitCard 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:559:19:HAL_SD_DeInit 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:616:13:HAL_SD_MspInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:631:13:HAL_SD_MspDeInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:672:19:HAL_SD_ReadBlocks 20 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:857:19:HAL_SD_WriteBlocks 20 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:1044:19:HAL_SD_ReadBlocks_IT 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:1139:19:HAL_SD_WriteBlocks_IT 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:1236:19:HAL_SD_ReadBlocks_DMA 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:1335:19:HAL_SD_WriteBlocks_DMA 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:1431:19:HAL_SD_Erase 11 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:1533:6:HAL_SD_IRQHandler 32 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:1768:21:HAL_SD_GetState 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:1779:10:HAL_SD_GetError 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:1789:13:HAL_SD_TxCpltCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:1804:13:HAL_SD_RxCpltCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:1819:13:HAL_SD_ErrorCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:1834:13:HAL_SD_AbortCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:2160:19:HAL_SD_GetCardCID 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:2193:19:HAL_SD_GetCardCSD 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:2307:19:HAL_SD_GetCardStatus 4 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:2377:19:HAL_SD_GetCardInfo 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:2402:19:HAL_SD_ConfigWideBusOperation 17 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:2566:19:HAL_SD_ConfigSpeedBusOperation 17 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:2864:25:HAL_SD_GetCardState 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:2887:19:HAL_SD_Abort 14 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:2983:19:HAL_SD_Abort_IT 4 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:3040:17:SD_InitCard 12 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:3137:17:SD_PowerON 13 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:3306:13:SD_PowerOFF 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:3319:17:SD_SendSDStatus 14 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:3425:17:SD_SendStatus 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:3452:17:SD_WideBus_Enable 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:3499:17:SD_WideBus_Disable 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:3548:17:SD_FindSCR 11 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:3644:13:SD_Read_IT 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:3679:13:SD_Write_IT 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:3717:10:SD_SwitchSpeed 13 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:4090:13:HAL_SDEx_Read_DMADoubleBuf0CpltCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:4105:13:HAL_SDEx_Read_DMADoubleBuf1CpltCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:4120:13:HAL_SDEx_Write_DMADoubleBuf0CpltCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:4135:13:HAL_SDEx_Write_DMADoubleBuf1CpltCallback 1 diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.d b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.d deleted file mode 100644 index 1e22a53..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.d +++ /dev/null @@ -1,80 +0,0 @@ -Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o: \ - ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o deleted file mode 100644 index 7b4cf07..0000000 Binary files a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o and /dev/null differ diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.su b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.su deleted file mode 100644 index 2a31d08..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.su +++ /dev/null @@ -1,43 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:338:19:HAL_SD_Init 48 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:469:19:HAL_SD_InitCard 64 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:559:19:HAL_SD_DeInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:616:13:HAL_SD_MspInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:631:13:HAL_SD_MspDeInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:672:19:HAL_SD_ReadBlocks 80 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:857:19:HAL_SD_WriteBlocks 80 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:1044:19:HAL_SD_ReadBlocks_IT 56 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:1139:19:HAL_SD_WriteBlocks_IT 56 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:1236:19:HAL_SD_ReadBlocks_DMA 56 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:1335:19:HAL_SD_WriteBlocks_DMA 56 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:1431:19:HAL_SD_Erase 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:1533:6:HAL_SD_IRQHandler 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:1768:21:HAL_SD_GetState 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:1779:10:HAL_SD_GetError 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:1789:13:HAL_SD_TxCpltCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:1804:13:HAL_SD_RxCpltCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:1819:13:HAL_SD_ErrorCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:1834:13:HAL_SD_AbortCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:2160:19:HAL_SD_GetCardCID 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:2193:19:HAL_SD_GetCardCSD 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:2307:19:HAL_SD_GetCardStatus 88 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:2377:19:HAL_SD_GetCardInfo 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:2402:19:HAL_SD_ConfigWideBusOperation 64 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:2566:19:HAL_SD_ConfigSpeedBusOperation 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:2864:25:HAL_SD_GetCardState 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:2887:19:HAL_SD_Abort 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:2983:19:HAL_SD_Abort_IT 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:3040:17:SD_InitCard 72 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:3137:17:SD_PowerON 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:3306:13:SD_PowerOFF 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:3319:17:SD_SendSDStatus 56 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:3425:17:SD_SendStatus 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:3452:17:SD_WideBus_Enable 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:3499:17:SD_WideBus_Disable 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:3548:17:SD_FindSCR 64 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:3644:13:SD_Read_IT 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:3679:13:SD_Write_IT 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:3717:10:SD_SwitchSpeed 128 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:4090:13:HAL_SDEx_Read_DMADoubleBuf0CpltCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:4105:13:HAL_SDEx_Read_DMADoubleBuf1CpltCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:4120:13:HAL_SDEx_Write_DMADoubleBuf0CpltCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c:4135:13:HAL_SDEx_Write_DMADoubleBuf1CpltCallback 16 static diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.cyclo b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.cyclo deleted file mode 100644 index 4010063..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.cyclo +++ /dev/null @@ -1,4 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.c:83:19:HAL_SDEx_ConfigDMAMultiBuffer 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.c:109:19:HAL_SDEx_ReadBlocksDMAMultiBuffer 8 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.c:195:19:HAL_SDEx_WriteBlocksDMAMultiBuffer 8 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.c:279:19:HAL_SDEx_ChangeDMABuffer 2 diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.d b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.d deleted file mode 100644 index 204d84d..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.d +++ /dev/null @@ -1,80 +0,0 @@ -Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o: \ - ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.c \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o deleted file mode 100644 index 2391c5a..0000000 Binary files a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o and /dev/null differ diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.su b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.su deleted file mode 100644 index b6a4c19..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.su +++ /dev/null @@ -1,4 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.c:83:19:HAL_SDEx_ConfigDMAMultiBuffer 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.c:109:19:HAL_SDEx_ReadBlocksDMAMultiBuffer 64 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.c:195:19:HAL_SDEx_WriteBlocksDMAMultiBuffer 64 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.c:279:19:HAL_SDEx_ChangeDMABuffer 24 static diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.cyclo b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.cyclo deleted file mode 100644 index a78d2e2..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.cyclo +++ /dev/null @@ -1,121 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:269:19:HAL_TIM_Base_Init 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:329:19:HAL_TIM_Base_DeInit 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:372:13:HAL_TIM_Base_MspInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:387:13:HAL_TIM_Base_MspDeInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:403:19:HAL_TIM_Base_Start 14 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:442:19:HAL_TIM_Base_Stop 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:462:19:HAL_TIM_Base_Start_IT 14 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:504:19:HAL_TIM_Base_Stop_IT 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:529:19:HAL_TIM_Base_Start_DMA 18 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:598:19:HAL_TIM_Base_Stop_DMA 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:653:19:HAL_TIM_OC_Init 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:713:19:HAL_TIM_OC_DeInit 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:756:13:HAL_TIM_OC_MspInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:771:13:HAL_TIM_OC_MspDeInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:794:19:HAL_TIM_OC_Start 30 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:850:19:HAL_TIM_OC_Stop 16 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:885:19:HAL_TIM_OC_Start_IT 35 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:978:19:HAL_TIM_OC_Stop_IT 21 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:1055:19:HAL_TIM_OC_Start_DMA 47 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:1219:19:HAL_TIM_OC_Stop_DMA 21 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:1322:19:HAL_TIM_PWM_Init 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:1382:19:HAL_TIM_PWM_DeInit 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:1425:13:HAL_TIM_PWM_MspInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:1440:13:HAL_TIM_PWM_MspDeInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:1463:19:HAL_TIM_PWM_Start 30 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:1519:19:HAL_TIM_PWM_Stop 16 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:1554:19:HAL_TIM_PWM_Start_IT 35 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:1647:19:HAL_TIM_PWM_Stop_IT 21 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:1724:19:HAL_TIM_PWM_Start_DMA 47 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:1887:19:HAL_TIM_PWM_Stop_DMA 21 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:1990:19:HAL_TIM_IC_Init 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2050:19:HAL_TIM_IC_DeInit 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2093:13:HAL_TIM_IC_MspInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2108:13:HAL_TIM_IC_MspDeInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2129:19:HAL_TIM_IC_Start 31 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2181:19:HAL_TIM_IC_Stop 11 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2211:19:HAL_TIM_IC_Start_IT 36 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2303:19:HAL_TIM_IC_Stop_IT 16 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2375:19:HAL_TIM_IC_Start_DMA 43 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2534:19:HAL_TIM_IC_Stop_DMA 16 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2639:19:HAL_TIM_OnePulse_Init 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2708:19:HAL_TIM_OnePulse_DeInit 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2753:13:HAL_TIM_OnePulse_MspInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2768:13:HAL_TIM_OnePulse_MspDeInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2788:19:HAL_TIM_OnePulse_Start 11 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2845:19:HAL_TIM_OnePulse_Stop 11 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2888:19:HAL_TIM_OnePulse_Start_IT 11 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2951:19:HAL_TIM_OnePulse_Stop_IT 11 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:3030:19:HAL_TIM_Encoder_Init 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:3145:19:HAL_TIM_Encoder_DeInit 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:3190:13:HAL_TIM_Encoder_MspInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:3205:13:HAL_TIM_Encoder_MspDeInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:3225:19:HAL_TIM_Encoder_Start 13 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:3319:19:HAL_TIM_Encoder_Stop 15 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:3379:19:HAL_TIM_Encoder_Start_IT 13 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:3479:19:HAL_TIM_Encoder_Stop_IT 15 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:3544:19:HAL_TIM_Encoder_Start_DMA 32 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:3757:19:HAL_TIM_Encoder_Stop_DMA 15 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:3834:6:HAL_TIM_IRQHandler 23 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:4064:19:HAL_TIM_OC_ConfigChannel 8 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:4163:19:HAL_TIM_IC_ConfigChannel 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:4264:19:HAL_TIM_PWM_ConfigChannel 8 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:4412:19:HAL_TIM_OnePulse_ConfigChannel 8 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:4567:19:HAL_TIM_DMABurst_WriteStart 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:4626:19:HAL_TIM_DMABurst_MultiWriteStart 25 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:4810:19:HAL_TIM_DMABurst_WriteStop 14 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:4918:19:HAL_TIM_DMABurst_ReadStart 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:4976:19:HAL_TIM_DMABurst_MultiReadStart 25 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5160:19:HAL_TIM_DMABurst_ReadStop 14 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5244:19:HAL_TIM_GenerateEvent 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5283:19:HAL_TIM_ConfigOCrefClear 18 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5441:19:HAL_TIM_ConfigClockSource 30 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5600:19:HAL_TIM_ConfigTI1Input 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5632:19:HAL_TIM_SlaveConfigSynchro 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5672:19:HAL_TIM_SlaveConfigSynchro_IT 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5715:10:HAL_TIM_ReadCapturedValue 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5799:13:HAL_TIM_PeriodElapsedCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5814:13:HAL_TIM_PeriodElapsedHalfCpltCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5829:13:HAL_TIM_OC_DelayElapsedCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5844:13:HAL_TIM_IC_CaptureCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5859:13:HAL_TIM_IC_CaptureHalfCpltCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5874:13:HAL_TIM_PWM_PulseFinishedCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5889:13:HAL_TIM_PWM_PulseFinishedHalfCpltCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5904:13:HAL_TIM_TriggerCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5919:13:HAL_TIM_TriggerHalfCpltCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5934:13:HAL_TIM_ErrorCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6492:22:HAL_TIM_Base_GetState 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6502:22:HAL_TIM_OC_GetState 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6512:22:HAL_TIM_PWM_GetState 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6522:22:HAL_TIM_IC_GetState 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6532:22:HAL_TIM_OnePulse_GetState 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6542:22:HAL_TIM_Encoder_GetState 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6552:23:HAL_TIM_GetActiveChannel 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6570:29:HAL_TIM_GetChannelState 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6587:30:HAL_TIM_DMABurstState 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6612:6:TIM_DMAError 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6655:13:TIM_DMADelayPulseCplt 9 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6714:6:TIM_DMADelayPulseHalfCplt 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6753:6:TIM_DMACaptureCplt 9 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6816:6:TIM_DMACaptureHalfCplt 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6855:13:TIM_DMAPeriodElapsedCplt 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6876:13:TIM_DMAPeriodElapsedHalfCplt 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6892:13:TIM_DMATriggerCplt 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6913:13:TIM_DMATriggerHalfCplt 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6930:6:TIM_Base_SetConfig 23 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6978:13:TIM_OC1_SetConfig 11 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7053:6:TIM_OC2_SetConfig 8 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7129:13:TIM_OC3_SetConfig 8 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7203:13:TIM_OC4_SetConfig 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7263:13:TIM_OC5_SetConfig 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7316:13:TIM_OC6_SetConfig 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7370:26:TIM_SlaveTimer_SetConfig 36 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7514:6:TIM_TI1_SetConfig 12 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7561:13:TIM_TI1_ConfigInputStage 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7604:13:TIM_TI2_SetConfig 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7644:13:TIM_TI2_ConfigInputStage 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7687:13:TIM_TI3_SetConfig 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7735:13:TIM_TI4_SetConfig 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7791:13:TIM_ITRx_SetConfig 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7821:6:TIM_ETR_SetConfig 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7853:6:TIM_CCxChannelCmd 1 diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.d b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.d deleted file mode 100644 index ddba55b..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.d +++ /dev/null @@ -1,80 +0,0 @@ -Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o: \ - ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o deleted file mode 100644 index 3bd6ecd..0000000 Binary files a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o and /dev/null differ diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.su b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.su deleted file mode 100644 index d1887a0..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.su +++ /dev/null @@ -1,121 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:269:19:HAL_TIM_Base_Init 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:329:19:HAL_TIM_Base_DeInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:372:13:HAL_TIM_Base_MspInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:387:13:HAL_TIM_Base_MspDeInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:403:19:HAL_TIM_Base_Start 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:442:19:HAL_TIM_Base_Stop 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:462:19:HAL_TIM_Base_Start_IT 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:504:19:HAL_TIM_Base_Stop_IT 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:529:19:HAL_TIM_Base_Start_DMA 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:598:19:HAL_TIM_Base_Stop_DMA 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:653:19:HAL_TIM_OC_Init 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:713:19:HAL_TIM_OC_DeInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:756:13:HAL_TIM_OC_MspInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:771:13:HAL_TIM_OC_MspDeInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:794:19:HAL_TIM_OC_Start 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:850:19:HAL_TIM_OC_Stop 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:885:19:HAL_TIM_OC_Start_IT 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:978:19:HAL_TIM_OC_Stop_IT 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:1055:19:HAL_TIM_OC_Start_DMA 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:1219:19:HAL_TIM_OC_Stop_DMA 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:1322:19:HAL_TIM_PWM_Init 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:1382:19:HAL_TIM_PWM_DeInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:1425:13:HAL_TIM_PWM_MspInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:1440:13:HAL_TIM_PWM_MspDeInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:1463:19:HAL_TIM_PWM_Start 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:1519:19:HAL_TIM_PWM_Stop 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:1554:19:HAL_TIM_PWM_Start_IT 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:1647:19:HAL_TIM_PWM_Stop_IT 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:1724:19:HAL_TIM_PWM_Start_DMA 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:1887:19:HAL_TIM_PWM_Stop_DMA 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:1990:19:HAL_TIM_IC_Init 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2050:19:HAL_TIM_IC_DeInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2093:13:HAL_TIM_IC_MspInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2108:13:HAL_TIM_IC_MspDeInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2129:19:HAL_TIM_IC_Start 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2181:19:HAL_TIM_IC_Stop 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2211:19:HAL_TIM_IC_Start_IT 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2303:19:HAL_TIM_IC_Stop_IT 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2375:19:HAL_TIM_IC_Start_DMA 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2534:19:HAL_TIM_IC_Stop_DMA 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2639:19:HAL_TIM_OnePulse_Init 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2708:19:HAL_TIM_OnePulse_DeInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2753:13:HAL_TIM_OnePulse_MspInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2768:13:HAL_TIM_OnePulse_MspDeInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2788:19:HAL_TIM_OnePulse_Start 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2845:19:HAL_TIM_OnePulse_Stop 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2888:19:HAL_TIM_OnePulse_Start_IT 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:2951:19:HAL_TIM_OnePulse_Stop_IT 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:3030:19:HAL_TIM_Encoder_Init 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:3145:19:HAL_TIM_Encoder_DeInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:3190:13:HAL_TIM_Encoder_MspInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:3205:13:HAL_TIM_Encoder_MspDeInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:3225:19:HAL_TIM_Encoder_Start 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:3319:19:HAL_TIM_Encoder_Stop 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:3379:19:HAL_TIM_Encoder_Start_IT 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:3479:19:HAL_TIM_Encoder_Stop_IT 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:3544:19:HAL_TIM_Encoder_Start_DMA 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:3757:19:HAL_TIM_Encoder_Stop_DMA 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:3834:6:HAL_TIM_IRQHandler 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:4064:19:HAL_TIM_OC_ConfigChannel 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:4163:19:HAL_TIM_IC_ConfigChannel 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:4264:19:HAL_TIM_PWM_ConfigChannel 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:4412:19:HAL_TIM_OnePulse_ConfigChannel 56 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:4567:19:HAL_TIM_DMABurst_WriteStart 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:4626:19:HAL_TIM_DMABurst_MultiWriteStart 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:4810:19:HAL_TIM_DMABurst_WriteStop 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:4918:19:HAL_TIM_DMABurst_ReadStart 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:4976:19:HAL_TIM_DMABurst_MultiReadStart 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5160:19:HAL_TIM_DMABurst_ReadStop 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5244:19:HAL_TIM_GenerateEvent 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5283:19:HAL_TIM_ConfigOCrefClear 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5441:19:HAL_TIM_ConfigClockSource 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5600:19:HAL_TIM_ConfigTI1Input 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5632:19:HAL_TIM_SlaveConfigSynchro 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5672:19:HAL_TIM_SlaveConfigSynchro_IT 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5715:10:HAL_TIM_ReadCapturedValue 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5799:13:HAL_TIM_PeriodElapsedCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5814:13:HAL_TIM_PeriodElapsedHalfCpltCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5829:13:HAL_TIM_OC_DelayElapsedCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5844:13:HAL_TIM_IC_CaptureCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5859:13:HAL_TIM_IC_CaptureHalfCpltCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5874:13:HAL_TIM_PWM_PulseFinishedCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5889:13:HAL_TIM_PWM_PulseFinishedHalfCpltCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5904:13:HAL_TIM_TriggerCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5919:13:HAL_TIM_TriggerHalfCpltCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:5934:13:HAL_TIM_ErrorCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6492:22:HAL_TIM_Base_GetState 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6502:22:HAL_TIM_OC_GetState 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6512:22:HAL_TIM_PWM_GetState 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6522:22:HAL_TIM_IC_GetState 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6532:22:HAL_TIM_OnePulse_GetState 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6542:22:HAL_TIM_Encoder_GetState 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6552:23:HAL_TIM_GetActiveChannel 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6570:29:HAL_TIM_GetChannelState 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6587:30:HAL_TIM_DMABurstState 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6612:6:TIM_DMAError 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6655:13:TIM_DMADelayPulseCplt 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6714:6:TIM_DMADelayPulseHalfCplt 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6753:6:TIM_DMACaptureCplt 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6816:6:TIM_DMACaptureHalfCplt 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6855:13:TIM_DMAPeriodElapsedCplt 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6876:13:TIM_DMAPeriodElapsedHalfCplt 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6892:13:TIM_DMATriggerCplt 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6913:13:TIM_DMATriggerHalfCplt 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6930:6:TIM_Base_SetConfig 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:6978:13:TIM_OC1_SetConfig 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7053:6:TIM_OC2_SetConfig 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7129:13:TIM_OC3_SetConfig 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7203:13:TIM_OC4_SetConfig 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7263:13:TIM_OC5_SetConfig 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7316:13:TIM_OC6_SetConfig 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7370:26:TIM_SlaveTimer_SetConfig 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7514:6:TIM_TI1_SetConfig 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7561:13:TIM_TI1_ConfigInputStage 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7604:13:TIM_TI2_SetConfig 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7644:13:TIM_TI2_ConfigInputStage 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7687:13:TIM_TI3_SetConfig 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7735:13:TIM_TI4_SetConfig 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7791:13:TIM_ITRx_SetConfig 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7821:6:TIM_ETR_SetConfig 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c:7853:6:TIM_CCxChannelCmd 32 static diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.cyclo b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.cyclo deleted file mode 100644 index 8d7f11c..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.cyclo +++ /dev/null @@ -1,48 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:152:19:HAL_TIMEx_HallSensor_Init 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:254:19:HAL_TIMEx_HallSensor_DeInit 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:299:13:HAL_TIMEx_HallSensor_MspInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:314:13:HAL_TIMEx_HallSensor_MspDeInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:329:19:HAL_TIMEx_HallSensor_Start 17 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:383:19:HAL_TIMEx_HallSensor_Stop 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:411:19:HAL_TIMEx_HallSensor_Start_IT 17 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:468:19:HAL_TIMEx_HallSensor_Stop_IT 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:501:19:HAL_TIMEx_HallSensor_Start_DMA 20 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:577:19:HAL_TIMEx_HallSensor_Stop_DMA 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:639:19:HAL_TIMEx_OCN_Start 20 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:690:19:HAL_TIMEx_OCN_Stop 8 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:722:19:HAL_TIMEx_OCN_Start_IT 25 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:809:19:HAL_TIMEx_OCN_Stop_IT 14 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:884:19:HAL_TIMEx_OCN_Start_DMA 34 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1022:19:HAL_TIMEx_OCN_Stop_DMA 13 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1123:19:HAL_TIMEx_PWMN_Start 20 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1173:19:HAL_TIMEx_PWMN_Stop 8 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1205:19:HAL_TIMEx_PWMN_Start_IT 25 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1291:19:HAL_TIMEx_PWMN_Stop_IT 14 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1366:19:HAL_TIMEx_PWMN_Start_DMA 34 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1504:19:HAL_TIMEx_PWMN_Stop_DMA 13 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1595:19:HAL_TIMEx_OnePulseN_Start 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1644:19:HAL_TIMEx_OnePulseN_Stop 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1683:19:HAL_TIMEx_OnePulseN_Start_IT 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1738:19:HAL_TIMEx_OnePulseN_Stop_IT 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1821:19:HAL_TIMEx_ConfigCommutEvent 8 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1880:19:HAL_TIMEx_ConfigCommutEvent_IT 8 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1943:19:HAL_TIMEx_ConfigCommutEvent_DMA 8 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1993:19:HAL_TIMEx_MasterConfigSynchronization 14 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2066:19:HAL_TIMEx_ConfigBreakDeadTime 8 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2153:19:HAL_TIMEx_ConfigBreakInput 10 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2337:19:HAL_TIMEx_RemapConfig 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2431:20:HAL_TIMEx_TISelection 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2476:19:HAL_TIMEx_GroupChannel5 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2515:19:HAL_TIMEx_DisarmBreakInput 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2570:19:HAL_TIMEx_ReArmBreakInput 11 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2660:13:HAL_TIMEx_CommutCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2674:13:HAL_TIMEx_CommutHalfCpltCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2689:13:HAL_TIMEx_BreakCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2704:13:HAL_TIMEx_Break2Callback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2737:22:HAL_TIMEx_HallSensor_GetState 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2752:29:HAL_TIMEx_GetChannelNState 4 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2781:6:TIMEx_DMACommutationCplt 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2800:6:TIMEx_DMACommutationHalfCplt 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2820:13:TIM_DMADelayPulseNCplt 9 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2879:13:TIM_DMAErrorCCxN 4 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2924:13:TIM_CCxNChannelCmd 1 diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.d b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.d deleted file mode 100644 index bde049f..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.d +++ /dev/null @@ -1,80 +0,0 @@ -Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o: \ - ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o deleted file mode 100644 index ac3b99e..0000000 Binary files a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o and /dev/null differ diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.su b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.su deleted file mode 100644 index 99072ca..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.su +++ /dev/null @@ -1,48 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:152:19:HAL_TIMEx_HallSensor_Init 48 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:254:19:HAL_TIMEx_HallSensor_DeInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:299:13:HAL_TIMEx_HallSensor_MspInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:314:13:HAL_TIMEx_HallSensor_MspDeInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:329:19:HAL_TIMEx_HallSensor_Start 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:383:19:HAL_TIMEx_HallSensor_Stop 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:411:19:HAL_TIMEx_HallSensor_Start_IT 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:468:19:HAL_TIMEx_HallSensor_Stop_IT 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:501:19:HAL_TIMEx_HallSensor_Start_DMA 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:577:19:HAL_TIMEx_HallSensor_Stop_DMA 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:639:19:HAL_TIMEx_OCN_Start 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:690:19:HAL_TIMEx_OCN_Stop 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:722:19:HAL_TIMEx_OCN_Start_IT 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:809:19:HAL_TIMEx_OCN_Stop_IT 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:884:19:HAL_TIMEx_OCN_Start_DMA 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1022:19:HAL_TIMEx_OCN_Stop_DMA 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1123:19:HAL_TIMEx_PWMN_Start 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1173:19:HAL_TIMEx_PWMN_Stop 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1205:19:HAL_TIMEx_PWMN_Start_IT 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1291:19:HAL_TIMEx_PWMN_Stop_IT 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1366:19:HAL_TIMEx_PWMN_Start_DMA 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1504:19:HAL_TIMEx_PWMN_Stop_DMA 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1595:19:HAL_TIMEx_OnePulseN_Start 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1644:19:HAL_TIMEx_OnePulseN_Stop 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1683:19:HAL_TIMEx_OnePulseN_Start_IT 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1738:19:HAL_TIMEx_OnePulseN_Stop_IT 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1821:19:HAL_TIMEx_ConfigCommutEvent 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1880:19:HAL_TIMEx_ConfigCommutEvent_IT 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1943:19:HAL_TIMEx_ConfigCommutEvent_DMA 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:1993:19:HAL_TIMEx_MasterConfigSynchronization 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2066:19:HAL_TIMEx_ConfigBreakDeadTime 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2153:19:HAL_TIMEx_ConfigBreakInput 48 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2337:19:HAL_TIMEx_RemapConfig 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2431:20:HAL_TIMEx_TISelection 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2476:19:HAL_TIMEx_GroupChannel5 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2515:19:HAL_TIMEx_DisarmBreakInput 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2570:19:HAL_TIMEx_ReArmBreakInput 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2660:13:HAL_TIMEx_CommutCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2674:13:HAL_TIMEx_CommutHalfCpltCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2689:13:HAL_TIMEx_BreakCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2704:13:HAL_TIMEx_Break2Callback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2737:22:HAL_TIMEx_HallSensor_GetState 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2752:29:HAL_TIMEx_GetChannelNState 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2781:6:TIMEx_DMACommutationCplt 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2800:6:TIMEx_DMACommutationHalfCplt 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2820:13:TIM_DMADelayPulseNCplt 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2879:13:TIM_DMAErrorCCxN 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c:2924:13:TIM_CCxNChannelCmd 32 static diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.cyclo b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.cyclo deleted file mode 100644 index 0648c5c..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.cyclo +++ /dev/null @@ -1,70 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:307:19:HAL_UART_Init 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:380:19:HAL_HalfDuplex_Init 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:453:19:HAL_LIN_Init 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:550:19:HAL_MultiProcessor_Init 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:624:19:HAL_UART_DeInit 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:671:13:HAL_UART_MspInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:686:13:HAL_UART_MspDeInit 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:1120:19:HAL_UART_Transmit 10 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:1210:19:HAL_UART_Receive 15 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:1294:19:HAL_UART_Transmit_IT 11 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:1362:19:HAL_UART_Receive_IT 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:1403:19:HAL_UART_Transmit_DMA 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:1473:19:HAL_UART_Receive_DMA 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:1509:19:HAL_UART_DMAPause 9 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:1539:19:HAL_UART_DMAResume 8 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:1570:19:HAL_UART_DMAStop 13 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:1645:19:HAL_UART_Abort 16 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:1748:19:HAL_UART_AbortTransmit 9 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:1807:19:HAL_UART_AbortReceive 10 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:1875:19:HAL_UART_Abort_IT 19 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2028:19:HAL_UART_AbortTransmit_IT 8 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2119:19:HAL_UART_AbortReceive_IT 9 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2212:6:HAL_UART_IRQHandler 75 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2542:13:HAL_UART_TxCpltCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2557:13:HAL_UART_TxHalfCpltCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2572:13:HAL_UART_RxCpltCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2587:13:HAL_UART_RxHalfCpltCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2602:13:HAL_UART_ErrorCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2617:13:HAL_UART_AbortCpltCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2632:13:HAL_UART_AbortTransmitCpltCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2647:13:HAL_UART_AbortReceiveCpltCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2664:13:HAL_UARTEx_RxEventCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2712:6:HAL_UART_ReceiverTimeout_Config 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2727:19:HAL_UART_EnableReceiverTimeout 4 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2765:19:HAL_UART_DisableReceiverTimeout 4 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2803:19:HAL_MultiProcessor_EnableMuteMode 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2823:19:HAL_MultiProcessor_DisableMuteMode 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2843:6:HAL_MultiProcessor_EnterMuteMode 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2853:19:HAL_HalfDuplex_EnableTransmitter 4 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2876:19:HAL_HalfDuplex_EnableReceiver 4 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2900:19:HAL_LIN_SendBreak 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2945:23:HAL_UART_GetState 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2961:10:HAL_UART_GetError 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3007:19:UART_SetConfig 121 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3271:6:UART_AdvFeatureConfig 10 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3345:19:UART_CheckIdleState 8 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3414:19:UART_WaitOnFlagUntilTimeout 8 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3482:19:UART_Start_Receive_IT 20 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3554:19:UART_Start_Receive_DMA 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3611:13:UART_EndTxTransfer 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3627:13:UART_EndRxTransfer 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3653:13:UART_DMATransmitCplt 4 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3687:13:UART_DMATxHalfCplt 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3705:13:UART_DMAReceiveCplt 8 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3766:13:UART_DMARxHalfCplt 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3804:13:UART_DMAError 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3844:13:UART_DMAAbortOnError 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3867:13:UART_DMATxAbortCallback 4 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3922:13:UART_DMARxAbortCallback 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3974:13:UART_DMATxOnlyAbortCallback 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:4007:13:UART_DMARxOnlyAbortCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:4040:13:UART_TxISR_8BIT 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:4069:13:UART_TxISR_16BIT 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:4101:13:UART_TxISR_8BIT_FIFOEN 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:4141:13:UART_TxISR_16BIT_FIFOEN 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:4182:13:UART_EndTransmit_IT 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:4207:13:UART_RxISR_8BIT 11 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:4298:13:UART_RxISR_16BIT 11 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:4391:13:UART_RxISR_8BIT_FIFOEN 25 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:4553:13:UART_RxISR_16BIT_FIFOEN 25 diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.d b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.d deleted file mode 100644 index 0622b7a..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.d +++ /dev/null @@ -1,80 +0,0 @@ -Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o: \ - ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o deleted file mode 100644 index a91da8e..0000000 Binary files a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o and /dev/null differ diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.su b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.su deleted file mode 100644 index 3e7b582..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.su +++ /dev/null @@ -1,70 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:307:19:HAL_UART_Init 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:380:19:HAL_HalfDuplex_Init 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:453:19:HAL_LIN_Init 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:550:19:HAL_MultiProcessor_Init 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:624:19:HAL_UART_DeInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:671:13:HAL_UART_MspInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:686:13:HAL_UART_MspDeInit 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:1120:19:HAL_UART_Transmit 48 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:1210:19:HAL_UART_Receive 48 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:1294:19:HAL_UART_Transmit_IT 72 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:1362:19:HAL_UART_Receive_IT 48 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:1403:19:HAL_UART_Transmit_DMA 48 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:1473:19:HAL_UART_Receive_DMA 48 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:1509:19:HAL_UART_DMAPause 120 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:1539:19:HAL_UART_DMAResume 112 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:1570:19:HAL_UART_DMAStop 72 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:1645:19:HAL_UART_Abort 136 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:1748:19:HAL_UART_AbortTransmit 88 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:1807:19:HAL_UART_AbortReceive 112 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:1875:19:HAL_UART_Abort_IT 144 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2028:19:HAL_UART_AbortTransmit_IT 88 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2119:19:HAL_UART_AbortReceive_IT 112 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2212:6:HAL_UART_IRQHandler 240 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2542:13:HAL_UART_TxCpltCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2557:13:HAL_UART_TxHalfCpltCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2572:13:HAL_UART_RxCpltCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2587:13:HAL_UART_RxHalfCpltCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2602:13:HAL_UART_ErrorCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2617:13:HAL_UART_AbortCpltCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2632:13:HAL_UART_AbortTransmitCpltCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2647:13:HAL_UART_AbortReceiveCpltCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2664:13:HAL_UARTEx_RxEventCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2712:6:HAL_UART_ReceiverTimeout_Config 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2727:19:HAL_UART_EnableReceiverTimeout 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2765:19:HAL_UART_DisableReceiverTimeout 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2803:19:HAL_MultiProcessor_EnableMuteMode 40 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2823:19:HAL_MultiProcessor_DisableMuteMode 40 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2843:6:HAL_MultiProcessor_EnterMuteMode 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2853:19:HAL_HalfDuplex_EnableTransmitter 64 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2876:19:HAL_HalfDuplex_EnableReceiver 64 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2900:19:HAL_LIN_SendBreak 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2945:23:HAL_UART_GetState 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:2961:10:HAL_UART_GetError 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3007:19:UART_SetConfig 104 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3271:6:UART_AdvFeatureConfig 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3345:19:UART_CheckIdleState 104 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3414:19:UART_WaitOnFlagUntilTimeout 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3482:19:UART_Start_Receive_IT 144 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3554:19:UART_Start_Receive_DMA 96 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3611:13:UART_EndTxTransfer 64 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3627:13:UART_EndRxTransfer 88 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3653:13:UART_DMATransmitCplt 72 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3687:13:UART_DMATxHalfCplt 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3705:13:UART_DMAReceiveCplt 120 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3766:13:UART_DMARxHalfCplt 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3804:13:UART_DMAError 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3844:13:UART_DMAAbortOnError 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3867:13:UART_DMATxAbortCallback 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3922:13:UART_DMARxAbortCallback 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:3974:13:UART_DMATxOnlyAbortCallback 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:4007:13:UART_DMARxOnlyAbortCallback 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:4040:13:UART_TxISR_8BIT 64 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:4069:13:UART_TxISR_16BIT 72 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:4101:13:UART_TxISR_8BIT_FIFOEN 72 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:4141:13:UART_TxISR_16BIT_FIFOEN 72 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:4182:13:UART_EndTransmit_IT 40 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:4207:13:UART_RxISR_8BIT 120 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:4298:13:UART_RxISR_16BIT 120 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:4391:13:UART_RxISR_8BIT_FIFOEN 184 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c:4553:13:UART_RxISR_16BIT_FIFOEN 192 static,ignoring_inline_asm diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.cyclo b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.cyclo deleted file mode 100644 index 4a5ac70..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.cyclo +++ /dev/null @@ -1,18 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:166:19:HAL_RS485Ex_Init 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:272:13:HAL_UARTEx_WakeupCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:287:13:HAL_UARTEx_RxFifoFullCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:302:13:HAL_UARTEx_TxFifoEmptyCallback 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:387:19:HAL_MultiProcessorEx_AddressLength_Set 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:425:19:HAL_UARTEx_StopModeWakeUpSourceConfig 4 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:480:19:HAL_UARTEx_EnableStopMode 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:499:19:HAL_UARTEx_DisableStopMode 3 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:518:19:HAL_UARTEx_EnableFifoMode 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:559:19:HAL_UARTEx_DisableFifoMode 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:605:19:HAL_UARTEx_SetTxFifoThreshold 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:654:19:HAL_UARTEx_SetRxFifoThreshold 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:711:19:HAL_UARTEx_ReceiveToIdle 20 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:834:19:HAL_UARTEx_ReceiveToIdle_IT 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:895:19:HAL_UARTEx_ReceiveToIdle_DMA 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:963:29:HAL_UARTEx_GetRxEventType 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:987:13:UARTEx_Wakeup_AddressConfig 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:1005:13:UARTEx_SetNbDataToProcess 2 diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.d b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.d deleted file mode 100644 index d525292..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.d +++ /dev/null @@ -1,80 +0,0 @@ -Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o: \ - ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o deleted file mode 100644 index f4897d4..0000000 Binary files a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o and /dev/null differ diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.su b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.su deleted file mode 100644 index 5ab233f..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.su +++ /dev/null @@ -1,18 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:166:19:HAL_RS485Ex_Init 32 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:272:13:HAL_UARTEx_WakeupCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:287:13:HAL_UARTEx_RxFifoFullCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:302:13:HAL_UARTEx_TxFifoEmptyCallback 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:387:19:HAL_MultiProcessorEx_AddressLength_Set 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:425:19:HAL_UARTEx_StopModeWakeUpSourceConfig 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:480:19:HAL_UARTEx_EnableStopMode 40 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:499:19:HAL_UARTEx_DisableStopMode 40 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:518:19:HAL_UARTEx_EnableFifoMode 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:559:19:HAL_UARTEx_DisableFifoMode 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:605:19:HAL_UARTEx_SetTxFifoThreshold 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:654:19:HAL_UARTEx_SetRxFifoThreshold 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:711:19:HAL_UARTEx_ReceiveToIdle 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:834:19:HAL_UARTEx_ReceiveToIdle_IT 56 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:895:19:HAL_UARTEx_ReceiveToIdle_DMA 56 static,ignoring_inline_asm -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:963:29:HAL_UARTEx_GetRxEventType 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:987:13:UARTEx_Wakeup_AddressConfig 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c:1005:13:UARTEx_SetNbDataToProcess 24 static diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.cyclo b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.cyclo deleted file mode 100644 index ae23ebd..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.cyclo +++ /dev/null @@ -1,3 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.c:101:19:DelayBlock_Enable 9 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.c:171:19:DelayBlock_Disable 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.c:185:19:DelayBlock_Configure 1 diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.d b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.d deleted file mode 100644 index 1ffd401..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.d +++ /dev/null @@ -1,80 +0,0 @@ -Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o: \ - ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.c \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o deleted file mode 100644 index 0604d1f..0000000 Binary files a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o and /dev/null differ diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.su b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.su deleted file mode 100644 index 354ccc4..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.su +++ /dev/null @@ -1,3 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.c:101:19:DelayBlock_Enable 48 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.c:171:19:DelayBlock_Disable 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.c:185:19:DelayBlock_Configure 24 static diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.cyclo b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.cyclo deleted file mode 100644 index 9f00e95..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.cyclo +++ /dev/null @@ -1,49 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:200:19:SDMMC_Init 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:251:10:SDMMC_ReadFIFO 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:263:19:SDMMC_WriteFIFO 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:295:19:SDMMC_PowerState_ON 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:308:19:SDMMC_PowerState_Cycle 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:321:19:SDMMC_PowerState_OFF 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:338:10:SDMMC_GetPowerState 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:351:19:SDMMC_SendCommand 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:381:9:SDMMC_GetCommandResponse 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:398:10:SDMMC_GetResponse 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:419:19:SDMMC_ConfigData 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:454:10:SDMMC_GetDataCounter 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:464:10:SDMMC_GetFIFOCount 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:478:19:SDMMC_SetSDMMCReadWaitMode 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:513:10:SDMMC_CmdBlockLength 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:537:10:SDMMC_CmdReadSingleBlock 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:561:10:SDMMC_CmdReadMultiBlock 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:585:10:SDMMC_CmdWriteSingleBlock 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:609:10:SDMMC_CmdWriteMultiBlock 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:633:10:SDMMC_CmdSDEraseStartAdd 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:657:10:SDMMC_CmdSDEraseEndAdd 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:681:10:SDMMC_CmdEraseStartAdd 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:705:10:SDMMC_CmdEraseEndAdd 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:730:10:SDMMC_CmdErase 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:754:10:SDMMC_CmdStopTransfer 2 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:791:10:SDMMC_CmdSelDesel 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:815:10:SDMMC_CmdGoIdleState 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:838:10:SDMMC_CmdOperCond 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:869:10:SDMMC_CmdAppCommand 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:897:10:SDMMC_CmdAppOperCommand 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:921:10:SDMMC_CmdBusWidth 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:944:10:SDMMC_CmdSendSCR 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:968:10:SDMMC_CmdSendCID 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:993:10:SDMMC_CmdSendCSD 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1018:10:SDMMC_CmdSetRelAdd 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1043:10:SDMMC_CmdSetRelAddMmc 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1068:10:SDMMC_CmdSleepMmc 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1093:10:SDMMC_CmdSendStatus 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1116:10:SDMMC_CmdStatusRegister 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1141:10:SDMMC_CmdOpCondition 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1165:10:SDMMC_CmdSwitch 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1191:10:SDMMC_CmdVoltageSwitch 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1215:10:SDMMC_CmdSendEXTCSD 1 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1258:10:SDMMC_GetCmdResp1 26 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1393:10:SDMMC_GetCmdResp2 6 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1437:10:SDMMC_GetCmdResp3 5 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1477:10:SDMMC_GetCmdResp6 10 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1551:10:SDMMC_GetCmdResp7 7 -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1612:17:SDMMC_GetCmdError 3 diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.d b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.d deleted file mode 100644 index fd447e2..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.d +++ /dev/null @@ -1,80 +0,0 @@ -Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o: \ - ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o deleted file mode 100644 index fe7b092..0000000 Binary files a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o and /dev/null differ diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.su b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.su deleted file mode 100644 index ea361f3..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.su +++ /dev/null @@ -1,49 +0,0 @@ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:200:19:SDMMC_Init 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:251:10:SDMMC_ReadFIFO 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:263:19:SDMMC_WriteFIFO 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:295:19:SDMMC_PowerState_ON 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:308:19:SDMMC_PowerState_Cycle 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:321:19:SDMMC_PowerState_OFF 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:338:10:SDMMC_GetPowerState 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:351:19:SDMMC_SendCommand 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:381:9:SDMMC_GetCommandResponse 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:398:10:SDMMC_GetResponse 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:419:19:SDMMC_ConfigData 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:454:10:SDMMC_GetDataCounter 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:464:10:SDMMC_GetFIFOCount 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:478:19:SDMMC_SetSDMMCReadWaitMode 16 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:513:10:SDMMC_CmdBlockLength 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:537:10:SDMMC_CmdReadSingleBlock 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:561:10:SDMMC_CmdReadMultiBlock 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:585:10:SDMMC_CmdWriteSingleBlock 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:609:10:SDMMC_CmdWriteMultiBlock 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:633:10:SDMMC_CmdSDEraseStartAdd 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:657:10:SDMMC_CmdSDEraseEndAdd 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:681:10:SDMMC_CmdEraseStartAdd 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:705:10:SDMMC_CmdEraseEndAdd 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:730:10:SDMMC_CmdErase 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:754:10:SDMMC_CmdStopTransfer 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:791:10:SDMMC_CmdSelDesel 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:815:10:SDMMC_CmdGoIdleState 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:838:10:SDMMC_CmdOperCond 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:869:10:SDMMC_CmdAppCommand 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:897:10:SDMMC_CmdAppOperCommand 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:921:10:SDMMC_CmdBusWidth 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:944:10:SDMMC_CmdSendSCR 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:968:10:SDMMC_CmdSendCID 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:993:10:SDMMC_CmdSendCSD 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1018:10:SDMMC_CmdSetRelAdd 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1043:10:SDMMC_CmdSetRelAddMmc 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1068:10:SDMMC_CmdSleepMmc 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1093:10:SDMMC_CmdSendStatus 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1116:10:SDMMC_CmdStatusRegister 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1141:10:SDMMC_CmdOpCondition 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1165:10:SDMMC_CmdSwitch 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1191:10:SDMMC_CmdVoltageSwitch 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1215:10:SDMMC_CmdSendEXTCSD 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1258:10:SDMMC_GetCmdResp1 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1393:10:SDMMC_GetCmdResp2 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1437:10:SDMMC_GetCmdResp3 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1477:10:SDMMC_GetCmdResp6 40 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1551:10:SDMMC_GetCmdResp7 24 static -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c:1612:17:SDMMC_GetCmdError 24 static diff --git a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/subdir.mk b/Debug/Drivers/STM32H7xx_HAL_Driver/Src/subdir.mk deleted file mode 100644 index 54a053b..0000000 --- a/Debug/Drivers/STM32H7xx_HAL_Driver/Src/subdir.mk +++ /dev/null @@ -1,106 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -# Toolchain: GNU Tools for STM32 (11.3.rel1) -################################################################################ - -# Add inputs and outputs from these tool invocations to the build variables -C_SRCS += \ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c \ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c \ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c \ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c \ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c \ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c \ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c \ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c \ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c \ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c \ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c \ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c \ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c \ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.c \ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c \ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c \ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c \ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c \ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c \ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c \ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.c \ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c \ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c \ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c \ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c \ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.c \ -../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c - -OBJS += \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - -C_DEPS += \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.d \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.d \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.d \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.d \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.d \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.d \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.d \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.d \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.d \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.d \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.d \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.d \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.d \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.d \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.d \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.d \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.d \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.d \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.d \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.d \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.d \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.d \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.d \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.d \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.d \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.d \ -./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.d - - -# Each subdirectory must supply rules for building sources it contributes -Drivers/STM32H7xx_HAL_Driver/Src/%.o Drivers/STM32H7xx_HAL_Driver/Src/%.su Drivers/STM32H7xx_HAL_Driver/Src/%.cyclo: ../Drivers/STM32H7xx_HAL_Driver/Src/%.c Drivers/STM32H7xx_HAL_Driver/Src/subdir.mk - arm-none-eabi-gcc "$<" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DDATA_IN_D2_SRAM -DUSE_HAL_DRIVER -DSTM32H723xx -c -I../Core/Inc -I../FATFS/Target -I../FATFS/App -I../LWIP/App -I../LWIP/Target -I../Middlewares/Third_Party/LwIP/src/include -I../Middlewares/Third_Party/LwIP/system -I../Drivers/STM32H7xx_HAL_Driver/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/Third_Party/FatFs/src -I../Drivers/BSP/Components/lan8742 -I../Middlewares/Third_Party/LwIP/src/include/netif/ppp -I../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../Middlewares/Third_Party/LwIP/src/include/lwip -I../Middlewares/Third_Party/LwIP/src/include/lwip/apps -I../Middlewares/Third_Party/LwIP/src/include/lwip/priv -I../Middlewares/Third_Party/LwIP/src/include/lwip/prot -I../Middlewares/Third_Party/LwIP/src/include/netif -I../Middlewares/Third_Party/LwIP/src/include/compat/posix -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/arpa -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/net -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/sys -I../Middlewares/Third_Party/LwIP/src/include/compat/stdc -I../Middlewares/Third_Party/LwIP/system/arch -I../Drivers/CMSIS/Include -I"C:/_NoSleep/STM32/TBD_TaxiBoard/LWFTPC" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "$@" - -clean: clean-Drivers-2f-STM32H7xx_HAL_Driver-2f-Src - -clean-Drivers-2f-STM32H7xx_HAL_Driver-2f-Src: - -$(RM) ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.cyclo ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.su ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.cyclo ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.su ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.cyclo ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.su ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.cyclo ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.su ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.cyclo ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.su ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.cyclo ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.su ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.cyclo ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.su ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.cyclo ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.su ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.cyclo ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.su ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.cyclo ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.su ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.cyclo ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.su ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.cyclo ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.su ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.cyclo ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.su ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.cyclo ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.su ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.cyclo ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.su ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.cyclo ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.su ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.cyclo ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.su ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.cyclo ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.su ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.cyclo ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.su ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.cyclo ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.su ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.cyclo ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.su ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.cyclo ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.su ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.cyclo ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.su ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.cyclo ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.su ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.cyclo ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.su ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.cyclo ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - -$(RM) ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.su ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.cyclo ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.su - -.PHONY: clean-Drivers-2f-STM32H7xx_HAL_Driver-2f-Src - diff --git a/Debug/FATFS/App/fatfs.cyclo b/Debug/FATFS/App/fatfs.cyclo deleted file mode 100644 index fd3a79a..0000000 --- a/Debug/FATFS/App/fatfs.cyclo +++ /dev/null @@ -1,2 +0,0 @@ -../FATFS/App/fatfs.c:30:6:MX_FATFS_Init 1 -../FATFS/App/fatfs.c:45:7:get_fattime 1 diff --git a/Debug/FATFS/App/fatfs.d b/Debug/FATFS/App/fatfs.d deleted file mode 100644 index 9316492..0000000 --- a/Debug/FATFS/App/fatfs.d +++ /dev/null @@ -1,130 +0,0 @@ -FATFS/App/fatfs.o: ../FATFS/App/fatfs.c ../FATFS/App/fatfs.h \ - ../Middlewares/Third_Party/FatFs/src/ff.h \ - ../Middlewares/Third_Party/FatFs/src/integer.h ../FATFS/Target/ffconf.h \ - ../Core/Inc/main.h ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../FATFS/Target/bsp_driver_sd.h ../FATFS/Target/fatfs_platform.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FatFs/src/ff_gen_drv.h \ - ../Middlewares/Third_Party/FatFs/src/diskio.h \ - ../Middlewares/Third_Party/FatFs/src/ff.h ../FATFS/Target/sd_diskio.h -../FATFS/App/fatfs.h: -../Middlewares/Third_Party/FatFs/src/ff.h: -../Middlewares/Third_Party/FatFs/src/integer.h: -../FATFS/Target/ffconf.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../FATFS/Target/bsp_driver_sd.h: -../FATFS/Target/fatfs_platform.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FatFs/src/ff_gen_drv.h: -../Middlewares/Third_Party/FatFs/src/diskio.h: -../Middlewares/Third_Party/FatFs/src/ff.h: -../FATFS/Target/sd_diskio.h: diff --git a/Debug/FATFS/App/fatfs.o b/Debug/FATFS/App/fatfs.o deleted file mode 100644 index e7da2b2..0000000 Binary files a/Debug/FATFS/App/fatfs.o and /dev/null differ diff --git a/Debug/FATFS/App/fatfs.su b/Debug/FATFS/App/fatfs.su deleted file mode 100644 index fe846d1..0000000 --- a/Debug/FATFS/App/fatfs.su +++ /dev/null @@ -1,2 +0,0 @@ -../FATFS/App/fatfs.c:30:6:MX_FATFS_Init 8 static -../FATFS/App/fatfs.c:45:7:get_fattime 4 static diff --git a/Debug/FATFS/App/subdir.mk b/Debug/FATFS/App/subdir.mk deleted file mode 100644 index 34f3e55..0000000 --- a/Debug/FATFS/App/subdir.mk +++ /dev/null @@ -1,27 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -# Toolchain: GNU Tools for STM32 (11.3.rel1) -################################################################################ - -# Add inputs and outputs from these tool invocations to the build variables -C_SRCS += \ -../FATFS/App/fatfs.c - -OBJS += \ -./FATFS/App/fatfs.o - -C_DEPS += \ -./FATFS/App/fatfs.d - - -# Each subdirectory must supply rules for building sources it contributes -FATFS/App/%.o FATFS/App/%.su FATFS/App/%.cyclo: ../FATFS/App/%.c FATFS/App/subdir.mk - arm-none-eabi-gcc "$<" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DDATA_IN_D2_SRAM -DUSE_HAL_DRIVER -DSTM32H723xx -c -I../Core/Inc -I../FATFS/Target -I../FATFS/App -I../LWIP/App -I../LWIP/Target -I../Middlewares/Third_Party/LwIP/src/include -I../Middlewares/Third_Party/LwIP/system -I../Drivers/STM32H7xx_HAL_Driver/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/Third_Party/FatFs/src -I../Drivers/BSP/Components/lan8742 -I../Middlewares/Third_Party/LwIP/src/include/netif/ppp -I../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../Middlewares/Third_Party/LwIP/src/include/lwip -I../Middlewares/Third_Party/LwIP/src/include/lwip/apps -I../Middlewares/Third_Party/LwIP/src/include/lwip/priv -I../Middlewares/Third_Party/LwIP/src/include/lwip/prot -I../Middlewares/Third_Party/LwIP/src/include/netif -I../Middlewares/Third_Party/LwIP/src/include/compat/posix -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/arpa -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/net -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/sys -I../Middlewares/Third_Party/LwIP/src/include/compat/stdc -I../Middlewares/Third_Party/LwIP/system/arch -I../Drivers/CMSIS/Include -I"C:/_NoSleep/STM32/TBD_TaxiBoard/LWFTPC" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "$@" - -clean: clean-FATFS-2f-App - -clean-FATFS-2f-App: - -$(RM) ./FATFS/App/fatfs.cyclo ./FATFS/App/fatfs.d ./FATFS/App/fatfs.o ./FATFS/App/fatfs.su - -.PHONY: clean-FATFS-2f-App - diff --git a/Debug/FATFS/Target/bsp_driver_sd.cyclo b/Debug/FATFS/Target/bsp_driver_sd.cyclo deleted file mode 100644 index 3f3e2f6..0000000 --- a/Debug/FATFS/Target/bsp_driver_sd.cyclo +++ /dev/null @@ -1,16 +0,0 @@ -../FATFS/Target/bsp_driver_sd.c:42:16:BSP_SD_Init 4 -../FATFS/Target/bsp_driver_sd.c:73:16:BSP_SD_ITConfig 1 -../FATFS/Target/bsp_driver_sd.c:93:16:BSP_SD_ReadBlocks 2 -../FATFS/Target/bsp_driver_sd.c:116:16:BSP_SD_WriteBlocks 2 -../FATFS/Target/bsp_driver_sd.c:138:16:BSP_SD_ReadBlocks_DMA 2 -../FATFS/Target/bsp_driver_sd.c:161:16:BSP_SD_WriteBlocks_DMA 2 -../FATFS/Target/bsp_driver_sd.c:183:16:BSP_SD_Erase 2 -../FATFS/Target/bsp_driver_sd.c:207:16:BSP_SD_GetCardState 1 -../FATFS/Target/bsp_driver_sd.c:217:13:BSP_SD_GetCardInfo 1 -../FATFS/Target/bsp_driver_sd.c:231:6:HAL_SD_AbortCallback 1 -../FATFS/Target/bsp_driver_sd.c:241:6:HAL_SD_TxCpltCallback 1 -../FATFS/Target/bsp_driver_sd.c:251:6:HAL_SD_RxCpltCallback 1 -../FATFS/Target/bsp_driver_sd.c:262:13:BSP_SD_AbortCallback 1 -../FATFS/Target/bsp_driver_sd.c:272:13:BSP_SD_WriteCpltCallback 1 -../FATFS/Target/bsp_driver_sd.c:282:13:BSP_SD_ReadCpltCallback 1 -../FATFS/Target/bsp_driver_sd.c:293:16:BSP_SD_IsDetected 2 diff --git a/Debug/FATFS/Target/bsp_driver_sd.d b/Debug/FATFS/Target/bsp_driver_sd.d deleted file mode 100644 index d948f1d..0000000 --- a/Debug/FATFS/Target/bsp_driver_sd.d +++ /dev/null @@ -1,83 +0,0 @@ -FATFS/Target/bsp_driver_sd.o: ../FATFS/Target/bsp_driver_sd.c \ - ../FATFS/Target/bsp_driver_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../FATFS/Target/fatfs_platform.h -../FATFS/Target/bsp_driver_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../FATFS/Target/fatfs_platform.h: diff --git a/Debug/FATFS/Target/bsp_driver_sd.o b/Debug/FATFS/Target/bsp_driver_sd.o deleted file mode 100644 index c4eaca6..0000000 Binary files a/Debug/FATFS/Target/bsp_driver_sd.o and /dev/null differ diff --git a/Debug/FATFS/Target/bsp_driver_sd.su b/Debug/FATFS/Target/bsp_driver_sd.su deleted file mode 100644 index 7786cd6..0000000 --- a/Debug/FATFS/Target/bsp_driver_sd.su +++ /dev/null @@ -1,16 +0,0 @@ -../FATFS/Target/bsp_driver_sd.c:42:16:BSP_SD_Init 16 static -../FATFS/Target/bsp_driver_sd.c:73:16:BSP_SD_ITConfig 4 static -../FATFS/Target/bsp_driver_sd.c:93:16:BSP_SD_ReadBlocks 40 static -../FATFS/Target/bsp_driver_sd.c:116:16:BSP_SD_WriteBlocks 40 static -../FATFS/Target/bsp_driver_sd.c:138:16:BSP_SD_ReadBlocks_DMA 32 static -../FATFS/Target/bsp_driver_sd.c:161:16:BSP_SD_WriteBlocks_DMA 32 static -../FATFS/Target/bsp_driver_sd.c:183:16:BSP_SD_Erase 24 static -../FATFS/Target/bsp_driver_sd.c:207:16:BSP_SD_GetCardState 8 static -../FATFS/Target/bsp_driver_sd.c:217:13:BSP_SD_GetCardInfo 16 static -../FATFS/Target/bsp_driver_sd.c:231:6:HAL_SD_AbortCallback 16 static -../FATFS/Target/bsp_driver_sd.c:241:6:HAL_SD_TxCpltCallback 16 static -../FATFS/Target/bsp_driver_sd.c:251:6:HAL_SD_RxCpltCallback 16 static -../FATFS/Target/bsp_driver_sd.c:262:13:BSP_SD_AbortCallback 4 static -../FATFS/Target/bsp_driver_sd.c:272:13:BSP_SD_WriteCpltCallback 4 static -../FATFS/Target/bsp_driver_sd.c:282:13:BSP_SD_ReadCpltCallback 4 static -../FATFS/Target/bsp_driver_sd.c:293:16:BSP_SD_IsDetected 16 static diff --git a/Debug/FATFS/Target/fatfs_platform.cyclo b/Debug/FATFS/Target/fatfs_platform.cyclo deleted file mode 100644 index 7822056..0000000 --- a/Debug/FATFS/Target/fatfs_platform.cyclo +++ /dev/null @@ -1 +0,0 @@ -../FATFS/Target/fatfs_platform.c:21:9:BSP_PlatformIsDetected 2 diff --git a/Debug/FATFS/Target/fatfs_platform.d b/Debug/FATFS/Target/fatfs_platform.d deleted file mode 100644 index d5aff44..0000000 --- a/Debug/FATFS/Target/fatfs_platform.d +++ /dev/null @@ -1,81 +0,0 @@ -FATFS/Target/fatfs_platform.o: ../FATFS/Target/fatfs_platform.c \ - ../FATFS/Target/fatfs_platform.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h -../FATFS/Target/fatfs_platform.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: diff --git a/Debug/FATFS/Target/fatfs_platform.o b/Debug/FATFS/Target/fatfs_platform.o deleted file mode 100644 index 1ac1ada..0000000 Binary files a/Debug/FATFS/Target/fatfs_platform.o and /dev/null differ diff --git a/Debug/FATFS/Target/fatfs_platform.su b/Debug/FATFS/Target/fatfs_platform.su deleted file mode 100644 index c157f48..0000000 --- a/Debug/FATFS/Target/fatfs_platform.su +++ /dev/null @@ -1 +0,0 @@ -../FATFS/Target/fatfs_platform.c:21:9:BSP_PlatformIsDetected 16 static diff --git a/Debug/FATFS/Target/sd_diskio.cyclo b/Debug/FATFS/Target/sd_diskio.cyclo deleted file mode 100644 index 6dc4f5c..0000000 --- a/Debug/FATFS/Target/sd_diskio.cyclo +++ /dev/null @@ -1,9 +0,0 @@ -../FATFS/Target/sd_diskio.c:138:12:SD_CheckStatusWithTimeout 3 -../FATFS/Target/sd_diskio.c:159:16:SD_CheckStatus 2 -../FATFS/Target/sd_diskio.c:176:9:SD_initialize 6 -../FATFS/Target/sd_diskio.c:233:9:SD_status 1 -../FATFS/Target/sd_diskio.c:250:9:SD_read 7 -../FATFS/Target/sd_diskio.c:411:9:SD_write 7 -../FATFS/Target/sd_diskio.c:578:9:SD_ioctl 6 -../FATFS/Target/sd_diskio.c:633:6:BSP_SD_WriteCpltCallback 1 -../FATFS/Target/sd_diskio.c:653:6:BSP_SD_ReadCpltCallback 1 diff --git a/Debug/FATFS/Target/sd_diskio.d b/Debug/FATFS/Target/sd_diskio.d deleted file mode 100644 index d0d200e..0000000 --- a/Debug/FATFS/Target/sd_diskio.d +++ /dev/null @@ -1,128 +0,0 @@ -FATFS/Target/sd_diskio.o: ../FATFS/Target/sd_diskio.c \ - ../Middlewares/Third_Party/FatFs/src/ff_gen_drv.h \ - ../Middlewares/Third_Party/FatFs/src/diskio.h \ - ../Middlewares/Third_Party/FatFs/src/integer.h \ - ../Middlewares/Third_Party/FatFs/src/ff.h ../FATFS/Target/ffconf.h \ - ../Core/Inc/main.h ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../FATFS/Target/bsp_driver_sd.h ../FATFS/Target/fatfs_platform.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../FATFS/Target/sd_diskio.h -../Middlewares/Third_Party/FatFs/src/ff_gen_drv.h: -../Middlewares/Third_Party/FatFs/src/diskio.h: -../Middlewares/Third_Party/FatFs/src/integer.h: -../Middlewares/Third_Party/FatFs/src/ff.h: -../FATFS/Target/ffconf.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../FATFS/Target/bsp_driver_sd.h: -../FATFS/Target/fatfs_platform.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../FATFS/Target/sd_diskio.h: diff --git a/Debug/FATFS/Target/sd_diskio.o b/Debug/FATFS/Target/sd_diskio.o deleted file mode 100644 index 4c1566a..0000000 Binary files a/Debug/FATFS/Target/sd_diskio.o and /dev/null differ diff --git a/Debug/FATFS/Target/sd_diskio.su b/Debug/FATFS/Target/sd_diskio.su deleted file mode 100644 index 8fd255c..0000000 --- a/Debug/FATFS/Target/sd_diskio.su +++ /dev/null @@ -1,9 +0,0 @@ -../FATFS/Target/sd_diskio.c:138:12:SD_CheckStatusWithTimeout 24 static -../FATFS/Target/sd_diskio.c:159:16:SD_CheckStatus 16 static -../FATFS/Target/sd_diskio.c:176:9:SD_initialize 40 static -../FATFS/Target/sd_diskio.c:233:9:SD_status 16 static -../FATFS/Target/sd_diskio.c:250:9:SD_read 48 static -../FATFS/Target/sd_diskio.c:411:9:SD_write 48 static -../FATFS/Target/sd_diskio.c:578:9:SD_ioctl 56 static -../FATFS/Target/sd_diskio.c:633:6:BSP_SD_WriteCpltCallback 8 static -../FATFS/Target/sd_diskio.c:653:6:BSP_SD_ReadCpltCallback 8 static diff --git a/Debug/FATFS/Target/subdir.mk b/Debug/FATFS/Target/subdir.mk deleted file mode 100644 index 235c089..0000000 --- a/Debug/FATFS/Target/subdir.mk +++ /dev/null @@ -1,33 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -# Toolchain: GNU Tools for STM32 (11.3.rel1) -################################################################################ - -# Add inputs and outputs from these tool invocations to the build variables -C_SRCS += \ -../FATFS/Target/bsp_driver_sd.c \ -../FATFS/Target/fatfs_platform.c \ -../FATFS/Target/sd_diskio.c - -OBJS += \ -./FATFS/Target/bsp_driver_sd.o \ -./FATFS/Target/fatfs_platform.o \ -./FATFS/Target/sd_diskio.o - -C_DEPS += \ -./FATFS/Target/bsp_driver_sd.d \ -./FATFS/Target/fatfs_platform.d \ -./FATFS/Target/sd_diskio.d - - -# Each subdirectory must supply rules for building sources it contributes -FATFS/Target/%.o FATFS/Target/%.su FATFS/Target/%.cyclo: ../FATFS/Target/%.c FATFS/Target/subdir.mk - arm-none-eabi-gcc "$<" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DDATA_IN_D2_SRAM -DUSE_HAL_DRIVER -DSTM32H723xx -c -I../Core/Inc -I../FATFS/Target -I../FATFS/App -I../LWIP/App -I../LWIP/Target -I../Middlewares/Third_Party/LwIP/src/include -I../Middlewares/Third_Party/LwIP/system -I../Drivers/STM32H7xx_HAL_Driver/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/Third_Party/FatFs/src -I../Drivers/BSP/Components/lan8742 -I../Middlewares/Third_Party/LwIP/src/include/netif/ppp -I../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../Middlewares/Third_Party/LwIP/src/include/lwip -I../Middlewares/Third_Party/LwIP/src/include/lwip/apps -I../Middlewares/Third_Party/LwIP/src/include/lwip/priv -I../Middlewares/Third_Party/LwIP/src/include/lwip/prot -I../Middlewares/Third_Party/LwIP/src/include/netif -I../Middlewares/Third_Party/LwIP/src/include/compat/posix -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/arpa -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/net -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/sys -I../Middlewares/Third_Party/LwIP/src/include/compat/stdc -I../Middlewares/Third_Party/LwIP/system/arch -I../Drivers/CMSIS/Include -I"C:/_NoSleep/STM32/TBD_TaxiBoard/LWFTPC" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "$@" - -clean: clean-FATFS-2f-Target - -clean-FATFS-2f-Target: - -$(RM) ./FATFS/Target/bsp_driver_sd.cyclo ./FATFS/Target/bsp_driver_sd.d ./FATFS/Target/bsp_driver_sd.o ./FATFS/Target/bsp_driver_sd.su ./FATFS/Target/fatfs_platform.cyclo ./FATFS/Target/fatfs_platform.d ./FATFS/Target/fatfs_platform.o ./FATFS/Target/fatfs_platform.su ./FATFS/Target/sd_diskio.cyclo ./FATFS/Target/sd_diskio.d ./FATFS/Target/sd_diskio.o ./FATFS/Target/sd_diskio.su - -.PHONY: clean-FATFS-2f-Target - diff --git a/Debug/LWFTPC/lwftpc.cyclo b/Debug/LWFTPC/lwftpc.cyclo deleted file mode 100644 index 22b5942..0000000 --- a/Debug/LWFTPC/lwftpc.cyclo +++ /dev/null @@ -1,8 +0,0 @@ -../LWFTPC/lwftpc.c:12:7:lwftp_send 2 -../LWFTPC/lwftpc.c:27:7:lwftp_data_open 4 -../LWFTPC/lwftpc.c:65:7:lwftp_store 3 -../LWFTPC/lwftpc.c:88:7:lwftp_retrieve 2 -../LWFTPC/lwftpc.c:103:7:lwftp_list 2 -../LWFTPC/lwftpc.c:117:6:onDataReceived 1 -../LWFTPC/lwftpc.c:144:6:lwftp_data_thread 6 -../LWFTPC/lwftpc.c:167:6:lwftp_ctrl_thread 20 diff --git a/Debug/LWFTPC/lwftpc.d b/Debug/LWFTPC/lwftpc.d deleted file mode 100644 index 9aa3fe3..0000000 --- a/Debug/LWFTPC/lwftpc.d +++ /dev/null @@ -1,149 +0,0 @@ -LWFTPC/lwftpc.o: ../LWFTPC/lwftpc.c ../LWFTPC/lwftpc.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/api.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h \ - ../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h -../LWFTPC/lwftpc.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/api.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h: -../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: diff --git a/Debug/LWFTPC/lwftpc.o b/Debug/LWFTPC/lwftpc.o deleted file mode 100644 index adad9e3..0000000 Binary files a/Debug/LWFTPC/lwftpc.o and /dev/null differ diff --git a/Debug/LWFTPC/lwftpc.su b/Debug/LWFTPC/lwftpc.su deleted file mode 100644 index 8cd0584..0000000 --- a/Debug/LWFTPC/lwftpc.su +++ /dev/null @@ -1,8 +0,0 @@ -../LWFTPC/lwftpc.c:12:7:lwftp_send 32 static -../LWFTPC/lwftpc.c:27:7:lwftp_data_open 48 static -../LWFTPC/lwftpc.c:65:7:lwftp_store 296 static -../LWFTPC/lwftpc.c:88:7:lwftp_retrieve 280 static -../LWFTPC/lwftpc.c:103:7:lwftp_list 24 static -../LWFTPC/lwftpc.c:117:6:onDataReceived 16 static -../LWFTPC/lwftpc.c:144:6:lwftp_data_thread 32 static -../LWFTPC/lwftpc.c:167:6:lwftp_ctrl_thread 288 static diff --git a/Debug/LWFTPC/subdir.mk b/Debug/LWFTPC/subdir.mk deleted file mode 100644 index 2d25f4a..0000000 --- a/Debug/LWFTPC/subdir.mk +++ /dev/null @@ -1,27 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -# Toolchain: GNU Tools for STM32 (11.3.rel1) -################################################################################ - -# Add inputs and outputs from these tool invocations to the build variables -C_SRCS += \ -../LWFTPC/lwftpc.c - -OBJS += \ -./LWFTPC/lwftpc.o - -C_DEPS += \ -./LWFTPC/lwftpc.d - - -# Each subdirectory must supply rules for building sources it contributes -LWFTPC/%.o LWFTPC/%.su LWFTPC/%.cyclo: ../LWFTPC/%.c LWFTPC/subdir.mk - arm-none-eabi-gcc "$<" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DDATA_IN_D2_SRAM -DUSE_HAL_DRIVER -DSTM32H723xx -c -I../Core/Inc -I../FATFS/Target -I../FATFS/App -I../LWIP/App -I../LWIP/Target -I../Middlewares/Third_Party/LwIP/src/include -I../Middlewares/Third_Party/LwIP/system -I../Drivers/STM32H7xx_HAL_Driver/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/Third_Party/FatFs/src -I../Drivers/BSP/Components/lan8742 -I../Middlewares/Third_Party/LwIP/src/include/netif/ppp -I../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../Middlewares/Third_Party/LwIP/src/include/lwip -I../Middlewares/Third_Party/LwIP/src/include/lwip/apps -I../Middlewares/Third_Party/LwIP/src/include/lwip/priv -I../Middlewares/Third_Party/LwIP/src/include/lwip/prot -I../Middlewares/Third_Party/LwIP/src/include/netif -I../Middlewares/Third_Party/LwIP/src/include/compat/posix -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/arpa -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/net -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/sys -I../Middlewares/Third_Party/LwIP/src/include/compat/stdc -I../Middlewares/Third_Party/LwIP/system/arch -I../Drivers/CMSIS/Include -I"C:/_NoSleep/STM32/TBD_TaxiBoard/LWFTPC" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "$@" - -clean: clean-LWFTPC - -clean-LWFTPC: - -$(RM) ./LWFTPC/lwftpc.cyclo ./LWFTPC/lwftpc.d ./LWFTPC/lwftpc.o ./LWFTPC/lwftpc.su - -.PHONY: clean-LWFTPC - diff --git a/Debug/LWIP/App/lwip.cyclo b/Debug/LWIP/App/lwip.cyclo deleted file mode 100644 index 3cb44f7..0000000 --- a/Debug/LWIP/App/lwip.cyclo +++ /dev/null @@ -1,2 +0,0 @@ -../LWIP/App/lwip.c:58:6:MX_LWIP_Init 1 -../LWIP/App/lwip.c:121:13:ethernet_link_status_updated 1 diff --git a/Debug/LWIP/App/lwip.d b/Debug/LWIP/App/lwip.d deleted file mode 100644 index 24aaf8a..0000000 --- a/Debug/LWIP/App/lwip.d +++ /dev/null @@ -1,185 +0,0 @@ -LWIP/App/lwip.o: ../LWIP/App/lwip.c ../LWIP/App/lwip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/netif/etharp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/etharp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ethernet.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ieee.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/etharp.h \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ethernet.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/dhcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h \ - ../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../LWIP/Target/ethernetif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcpip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/init.h -../LWIP/App/lwip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/netif/etharp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/etharp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ethernet.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ieee.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/etharp.h: -../Middlewares/Third_Party/LwIP/src/include/netif/ethernet.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/dhcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h: -../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../LWIP/Target/ethernetif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcpip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/init.h: diff --git a/Debug/LWIP/App/lwip.o b/Debug/LWIP/App/lwip.o deleted file mode 100644 index 944edc0..0000000 Binary files a/Debug/LWIP/App/lwip.o and /dev/null differ diff --git a/Debug/LWIP/App/lwip.su b/Debug/LWIP/App/lwip.su deleted file mode 100644 index e90d9fb..0000000 --- a/Debug/LWIP/App/lwip.su +++ /dev/null @@ -1,2 +0,0 @@ -../LWIP/App/lwip.c:58:6:MX_LWIP_Init 64 static -../LWIP/App/lwip.c:121:13:ethernet_link_status_updated 16 static diff --git a/Debug/LWIP/App/subdir.mk b/Debug/LWIP/App/subdir.mk deleted file mode 100644 index 1aa87a3..0000000 --- a/Debug/LWIP/App/subdir.mk +++ /dev/null @@ -1,27 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -# Toolchain: GNU Tools for STM32 (11.3.rel1) -################################################################################ - -# Add inputs and outputs from these tool invocations to the build variables -C_SRCS += \ -../LWIP/App/lwip.c - -OBJS += \ -./LWIP/App/lwip.o - -C_DEPS += \ -./LWIP/App/lwip.d - - -# Each subdirectory must supply rules for building sources it contributes -LWIP/App/%.o LWIP/App/%.su LWIP/App/%.cyclo: ../LWIP/App/%.c LWIP/App/subdir.mk - arm-none-eabi-gcc "$<" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DDATA_IN_D2_SRAM -DUSE_HAL_DRIVER -DSTM32H723xx -c -I../Core/Inc -I../FATFS/Target -I../FATFS/App -I../LWIP/App -I../LWIP/Target -I../Middlewares/Third_Party/LwIP/src/include -I../Middlewares/Third_Party/LwIP/system -I../Drivers/STM32H7xx_HAL_Driver/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/Third_Party/FatFs/src -I../Drivers/BSP/Components/lan8742 -I../Middlewares/Third_Party/LwIP/src/include/netif/ppp -I../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../Middlewares/Third_Party/LwIP/src/include/lwip -I../Middlewares/Third_Party/LwIP/src/include/lwip/apps -I../Middlewares/Third_Party/LwIP/src/include/lwip/priv -I../Middlewares/Third_Party/LwIP/src/include/lwip/prot -I../Middlewares/Third_Party/LwIP/src/include/netif -I../Middlewares/Third_Party/LwIP/src/include/compat/posix -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/arpa -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/net -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/sys -I../Middlewares/Third_Party/LwIP/src/include/compat/stdc -I../Middlewares/Third_Party/LwIP/system/arch -I../Drivers/CMSIS/Include -I"C:/_NoSleep/STM32/TBD_TaxiBoard/LWFTPC" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "$@" - -clean: clean-LWIP-2f-App - -clean-LWIP-2f-App: - -$(RM) ./LWIP/App/lwip.cyclo ./LWIP/App/lwip.d ./LWIP/App/lwip.o ./LWIP/App/lwip.su - -.PHONY: clean-LWIP-2f-App - diff --git a/Debug/LWIP/Target/ethernetif.cyclo b/Debug/LWIP/Target/ethernetif.cyclo deleted file mode 100644 index fcc55fd..0000000 --- a/Debug/LWIP/Target/ethernetif.cyclo +++ /dev/null @@ -1,21 +0,0 @@ -../LWIP/Target/ethernetif.c:159:6:HAL_ETH_RxCpltCallback 1 -../LWIP/Target/ethernetif.c:168:6:HAL_ETH_TxCpltCallback 1 -../LWIP/Target/ethernetif.c:177:6:HAL_ETH_ErrorCallback 2 -../LWIP/Target/ethernetif.c:199:13:low_level_init 7 -../LWIP/Target/ethernetif.c:367:14:low_level_output 7 -../LWIP/Target/ethernetif.c:425:22:low_level_input 2 -../LWIP/Target/ethernetif.c:446:13:ethernetif_input 5 -../LWIP/Target/ethernetif.c:503:7:ethernetif_init 2 -../LWIP/Target/ethernetif.c:554:6:pbuf_free_custom 2 -../LWIP/Target/ethernetif.c:577:7:sys_now 1 -../LWIP/Target/ethernetif.c:590:6:HAL_ETH_MspInit 2 -../LWIP/Target/ethernetif.c:647:6:HAL_ETH_MspDeInit 2 -../LWIP/Target/ethernetif.c:693:9:ETH_PHY_IO_Init 1 -../LWIP/Target/ethernetif.c:710:9:ETH_PHY_IO_DeInit 1 -../LWIP/Target/ethernetif.c:722:9:ETH_PHY_IO_ReadReg 2 -../LWIP/Target/ethernetif.c:739:9:ETH_PHY_IO_WriteReg 2 -../LWIP/Target/ethernetif.c:753:9:ETH_PHY_IO_GetTick 1 -../LWIP/Target/ethernetif.c:763:6:ethernet_link_thread 10 -../LWIP/Target/ethernetif.c:833:6:HAL_ETH_RxAllocateCallback 2 -../LWIP/Target/ethernetif.c:855:6:HAL_ETH_RxLinkCallback 5 -../LWIP/Target/ethernetif.c:895:6:HAL_ETH_TxFreeCallback 1 diff --git a/Debug/LWIP/Target/ethernetif.d b/Debug/LWIP/Target/ethernetif.d deleted file mode 100644 index d4d057e..0000000 --- a/Debug/LWIP/Target/ethernetif.d +++ /dev/null @@ -1,183 +0,0 @@ -LWIP/Target/ethernetif.o: ../LWIP/Target/ethernetif.c ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h \ - ../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ethernet.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ethernet.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ieee.h \ - ../Middlewares/Third_Party/LwIP/src/include/netif/etharp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/etharp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/etharp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ethip6.h \ - ../LWIP/Target/ethernetif.h ../Drivers/BSP/Components/lan8742/lan8742.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcpip.h -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h: -../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/LwIP/src/include/netif/ethernet.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ethernet.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ieee.h: -../Middlewares/Third_Party/LwIP/src/include/netif/etharp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/etharp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/etharp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ethip6.h: -../LWIP/Target/ethernetif.h: -../Drivers/BSP/Components/lan8742/lan8742.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcpip.h: diff --git a/Debug/LWIP/Target/ethernetif.o b/Debug/LWIP/Target/ethernetif.o deleted file mode 100644 index 8b9776f..0000000 Binary files a/Debug/LWIP/Target/ethernetif.o and /dev/null differ diff --git a/Debug/LWIP/Target/ethernetif.su b/Debug/LWIP/Target/ethernetif.su deleted file mode 100644 index 468e3a3..0000000 --- a/Debug/LWIP/Target/ethernetif.su +++ /dev/null @@ -1,21 +0,0 @@ -../LWIP/Target/ethernetif.c:159:6:HAL_ETH_RxCpltCallback 16 static -../LWIP/Target/ethernetif.c:168:6:HAL_ETH_TxCpltCallback 16 static -../LWIP/Target/ethernetif.c:177:6:HAL_ETH_ErrorCallback 16 static -../LWIP/Target/ethernetif.c:199:13:low_level_init 192 static -../LWIP/Target/ethernetif.c:367:14:low_level_output 80 static -../LWIP/Target/ethernetif.c:425:22:low_level_input 24 static -../LWIP/Target/ethernetif.c:446:13:ethernetif_input 24 static -../LWIP/Target/ethernetif.c:503:7:ethernetif_init 16 static -../LWIP/Target/ethernetif.c:554:6:pbuf_free_custom 24 static -../LWIP/Target/ethernetif.c:577:7:sys_now 8 static -../LWIP/Target/ethernetif.c:590:6:HAL_ETH_MspInit 64 static -../LWIP/Target/ethernetif.c:647:6:HAL_ETH_MspDeInit 16 static -../LWIP/Target/ethernetif.c:693:9:ETH_PHY_IO_Init 8 static -../LWIP/Target/ethernetif.c:710:9:ETH_PHY_IO_DeInit 4 static -../LWIP/Target/ethernetif.c:722:9:ETH_PHY_IO_ReadReg 24 static -../LWIP/Target/ethernetif.c:739:9:ETH_PHY_IO_WriteReg 24 static -../LWIP/Target/ethernetif.c:753:9:ETH_PHY_IO_GetTick 8 static -../LWIP/Target/ethernetif.c:763:6:ethernet_link_thread 136 static -../LWIP/Target/ethernetif.c:833:6:HAL_ETH_RxAllocateCallback 32 static -../LWIP/Target/ethernetif.c:855:6:HAL_ETH_RxLinkCallback 56 static,ignoring_inline_asm -../LWIP/Target/ethernetif.c:895:6:HAL_ETH_TxFreeCallback 16 static diff --git a/Debug/LWIP/Target/subdir.mk b/Debug/LWIP/Target/subdir.mk deleted file mode 100644 index 580a048..0000000 --- a/Debug/LWIP/Target/subdir.mk +++ /dev/null @@ -1,27 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -# Toolchain: GNU Tools for STM32 (11.3.rel1) -################################################################################ - -# Add inputs and outputs from these tool invocations to the build variables -C_SRCS += \ -../LWIP/Target/ethernetif.c - -OBJS += \ -./LWIP/Target/ethernetif.o - -C_DEPS += \ -./LWIP/Target/ethernetif.d - - -# Each subdirectory must supply rules for building sources it contributes -LWIP/Target/%.o LWIP/Target/%.su LWIP/Target/%.cyclo: ../LWIP/Target/%.c LWIP/Target/subdir.mk - arm-none-eabi-gcc "$<" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DDATA_IN_D2_SRAM -DUSE_HAL_DRIVER -DSTM32H723xx -c -I../Core/Inc -I../FATFS/Target -I../FATFS/App -I../LWIP/App -I../LWIP/Target -I../Middlewares/Third_Party/LwIP/src/include -I../Middlewares/Third_Party/LwIP/system -I../Drivers/STM32H7xx_HAL_Driver/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/Third_Party/FatFs/src -I../Drivers/BSP/Components/lan8742 -I../Middlewares/Third_Party/LwIP/src/include/netif/ppp -I../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../Middlewares/Third_Party/LwIP/src/include/lwip -I../Middlewares/Third_Party/LwIP/src/include/lwip/apps -I../Middlewares/Third_Party/LwIP/src/include/lwip/priv -I../Middlewares/Third_Party/LwIP/src/include/lwip/prot -I../Middlewares/Third_Party/LwIP/src/include/netif -I../Middlewares/Third_Party/LwIP/src/include/compat/posix -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/arpa -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/net -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/sys -I../Middlewares/Third_Party/LwIP/src/include/compat/stdc -I../Middlewares/Third_Party/LwIP/system/arch -I../Drivers/CMSIS/Include -I"C:/_NoSleep/STM32/TBD_TaxiBoard/LWFTPC" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "$@" - -clean: clean-LWIP-2f-Target - -clean-LWIP-2f-Target: - -$(RM) ./LWIP/Target/ethernetif.cyclo ./LWIP/Target/ethernetif.d ./LWIP/Target/ethernetif.o ./LWIP/Target/ethernetif.su - -.PHONY: clean-LWIP-2f-Target - diff --git a/Debug/Middlewares/Third_Party/FatFs/src/diskio.cyclo b/Debug/Middlewares/Third_Party/FatFs/src/diskio.cyclo deleted file mode 100644 index 3f72106..0000000 --- a/Debug/Middlewares/Third_Party/FatFs/src/diskio.cyclo +++ /dev/null @@ -1,6 +0,0 @@ -../Middlewares/Third_Party/FatFs/src/diskio.c:36:9:disk_status 1 -../Middlewares/Third_Party/FatFs/src/diskio.c:51:9:disk_initialize 2 -../Middlewares/Third_Party/FatFs/src/diskio.c:73:9:disk_read 1 -../Middlewares/Third_Party/FatFs/src/diskio.c:95:9:disk_write 1 -../Middlewares/Third_Party/FatFs/src/diskio.c:117:9:disk_ioctl 1 -../Middlewares/Third_Party/FatFs/src/diskio.c:135:14:get_fattime 1 diff --git a/Debug/Middlewares/Third_Party/FatFs/src/diskio.d b/Debug/Middlewares/Third_Party/FatFs/src/diskio.d deleted file mode 100644 index 9ce71d3..0000000 --- a/Debug/Middlewares/Third_Party/FatFs/src/diskio.d +++ /dev/null @@ -1,127 +0,0 @@ -Middlewares/Third_Party/FatFs/src/diskio.o: \ - ../Middlewares/Third_Party/FatFs/src/diskio.c \ - ../Middlewares/Third_Party/FatFs/src/diskio.h \ - ../Middlewares/Third_Party/FatFs/src/integer.h \ - ../Middlewares/Third_Party/FatFs/src/ff_gen_drv.h \ - ../Middlewares/Third_Party/FatFs/src/ff.h ../FATFS/Target/ffconf.h \ - ../Core/Inc/main.h ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../FATFS/Target/bsp_driver_sd.h ../FATFS/Target/fatfs_platform.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h -../Middlewares/Third_Party/FatFs/src/diskio.h: -../Middlewares/Third_Party/FatFs/src/integer.h: -../Middlewares/Third_Party/FatFs/src/ff_gen_drv.h: -../Middlewares/Third_Party/FatFs/src/ff.h: -../FATFS/Target/ffconf.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../FATFS/Target/bsp_driver_sd.h: -../FATFS/Target/fatfs_platform.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: diff --git a/Debug/Middlewares/Third_Party/FatFs/src/diskio.o b/Debug/Middlewares/Third_Party/FatFs/src/diskio.o deleted file mode 100644 index abe04e9..0000000 Binary files a/Debug/Middlewares/Third_Party/FatFs/src/diskio.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/FatFs/src/diskio.su b/Debug/Middlewares/Third_Party/FatFs/src/diskio.su deleted file mode 100644 index 25fd2db..0000000 --- a/Debug/Middlewares/Third_Party/FatFs/src/diskio.su +++ /dev/null @@ -1,6 +0,0 @@ -../Middlewares/Third_Party/FatFs/src/diskio.c:36:9:disk_status 24 static -../Middlewares/Third_Party/FatFs/src/diskio.c:51:9:disk_initialize 24 static -../Middlewares/Third_Party/FatFs/src/diskio.c:73:9:disk_read 40 static -../Middlewares/Third_Party/FatFs/src/diskio.c:95:9:disk_write 40 static -../Middlewares/Third_Party/FatFs/src/diskio.c:117:9:disk_ioctl 24 static -../Middlewares/Third_Party/FatFs/src/diskio.c:135:14:get_fattime 4 static diff --git a/Debug/Middlewares/Third_Party/FatFs/src/ff.cyclo b/Debug/Middlewares/Third_Party/FatFs/src/ff.cyclo deleted file mode 100644 index ce991a7..0000000 --- a/Debug/Middlewares/Third_Party/FatFs/src/ff.cyclo +++ /dev/null @@ -1,83 +0,0 @@ -../Middlewares/Third_Party/FatFs/src/ff.c:613:6:ld_word 1 -../Middlewares/Third_Party/FatFs/src/ff.c:623:7:ld_dword 1 -../Middlewares/Third_Party/FatFs/src/ff.c:636:7:ld_qword 1 -../Middlewares/Third_Party/FatFs/src/ff.c:654:6:st_word 1 -../Middlewares/Third_Party/FatFs/src/ff.c:661:6:st_dword 1 -../Middlewares/Third_Party/FatFs/src/ff.c:671:6:st_qword 1 -../Middlewares/Third_Party/FatFs/src/ff.c:693:6:mem_cpy 3 -../Middlewares/Third_Party/FatFs/src/ff.c:706:6:mem_set 2 -../Middlewares/Third_Party/FatFs/src/ff.c:716:5:mem_cmp 3 -../Middlewares/Third_Party/FatFs/src/ff.c:729:5:chk_chr 3 -../Middlewares/Third_Party/FatFs/src/ff.c:742:5:lock_fs 3 -../Middlewares/Third_Party/FatFs/src/ff.c:751:6:unlock_fs 5 -../Middlewares/Third_Party/FatFs/src/ff.c:771:9:chk_lock 11 -../Middlewares/Third_Party/FatFs/src/ff.c:798:5:enq_lock 3 -../Middlewares/Third_Party/FatFs/src/ff.c:808:6:inc_lock 12 -../Middlewares/Third_Party/FatFs/src/ff.c:840:9:dec_lock 5 -../Middlewares/Third_Party/FatFs/src/ff.c:863:6:clear_lock 3 -../Middlewares/Third_Party/FatFs/src/ff.c:883:9:sync_window 5 -../Middlewares/Third_Party/FatFs/src/ff.c:912:9:move_window 4 -../Middlewares/Third_Party/FatFs/src/ff.c:944:9:sync_fs 5 -../Middlewares/Third_Party/FatFs/src/ff.c:983:7:clust2sect 2 -../Middlewares/Third_Party/FatFs/src/ff.c:1001:7:get_fat 21 -../Middlewares/Third_Party/FatFs/src/ff.c:1081:9:put_fat 14 -../Middlewares/Third_Party/FatFs/src/ff.c:1146:7:find_bitmap 9 -../Middlewares/Third_Party/FatFs/src/ff.c:1187:9:change_bitmap 6 -../Middlewares/Third_Party/FatFs/src/ff.c:1223:9:fill_first_frag 4 -../Middlewares/Third_Party/FatFs/src/ff.c:1246:9:fill_last_frag 4 -../Middlewares/Third_Party/FatFs/src/ff.c:1271:9:remove_chain 22 -../Middlewares/Third_Party/FatFs/src/ff.c:1351:7:create_chain 31 -../Middlewares/Third_Party/FatFs/src/ff.c:1440:7:clmt_clust 3 -../Middlewares/Third_Party/FatFs/src/ff.c:1470:9:dir_sdi 13 -../Middlewares/Third_Party/FatFs/src/ff.c:1519:9:dir_next 18 -../Middlewares/Third_Party/FatFs/src/ff.c:1589:9:dir_alloc 10 -../Middlewares/Third_Party/FatFs/src/ff.c:1632:7:ld_clust 2 -../Middlewares/Third_Party/FatFs/src/ff.c:1650:6:st_clust 2 -../Middlewares/Third_Party/FatFs/src/ff.c:1677:5:cmp_lfn 10 -../Middlewares/Third_Party/FatFs/src/ff.c:1713:5:pick_lfn 8 -../Middlewares/Third_Party/FatFs/src/ff.c:1751:6:put_lfn 6 -../Middlewares/Third_Party/FatFs/src/ff.c:1789:6:gen_numname 11 -../Middlewares/Third_Party/FatFs/src/ff.c:1848:6:sum_sfn 2 -../Middlewares/Third_Party/FatFs/src/ff.c:1871:6:xdir_sum 3 -../Middlewares/Third_Party/FatFs/src/ff.c:1893:6:xname_sum 2 -../Middlewares/Third_Party/FatFs/src/ff.c:1912:7:xsum32 1 -../Middlewares/Third_Party/FatFs/src/ff.c:1929:6:get_xdir_info 7 -../Middlewares/Third_Party/FatFs/src/ff.c:1978:9:load_xdir 16 -../Middlewares/Third_Party/FatFs/src/ff.c:2028:9:load_obj_dir 2 -../Middlewares/Third_Party/FatFs/src/ff.c:2056:9:store_xdir 6 -../Middlewares/Third_Party/FatFs/src/ff.c:2089:6:create_xdir 5 -../Middlewares/Third_Party/FatFs/src/ff.c:2131:9:dir_read 19 -../Middlewares/Third_Party/FatFs/src/ff.c:2210:9:dir_find 26 -../Middlewares/Third_Party/FatFs/src/ff.c:2292:9:dir_register 25 -../Middlewares/Third_Party/FatFs/src/ff.c:2396:9:dir_remove 8 -../Middlewares/Third_Party/FatFs/src/ff.c:2444:6:get_fileinfo 19 -../Middlewares/Third_Party/FatFs/src/ff.c:2618:9:create_name 44 -../Middlewares/Third_Party/FatFs/src/ff.c:2813:9:follow_path 11 -../Middlewares/Third_Party/FatFs/src/ff.c:2904:5:get_ldnumber 8 -../Middlewares/Third_Party/FatFs/src/ff.c:2965:6:check_fs 9 -../Middlewares/Third_Party/FatFs/src/ff.c:2993:9:find_volume 65 -../Middlewares/Third_Party/FatFs/src/ff.c:3216:9:validate 8 -../Middlewares/Third_Party/FatFs/src/ff.c:3260:9:f_mount 8 -../Middlewares/Third_Party/FatFs/src/ff.c:3308:9:f_open 38 -../Middlewares/Third_Party/FatFs/src/ff.c:3511:9:f_read 23 -../Middlewares/Third_Party/FatFs/src/ff.c:3611:9:f_write 28 -../Middlewares/Third_Party/FatFs/src/ff.c:3732:9:f_sync 11 -../Middlewares/Third_Party/FatFs/src/ff.c:3813:9:f_close 4 -../Middlewares/Third_Party/FatFs/src/ff.c:4001:9:f_lseek 48 -../Middlewares/Third_Party/FatFs/src/ff.c:4162:9:f_opendir 13 -../Middlewares/Third_Party/FatFs/src/ff.c:4232:9:f_closedir 4 -../Middlewares/Third_Party/FatFs/src/ff.c:4265:9:f_readdir 6 -../Middlewares/Third_Party/FatFs/src/ff.c:4353:9:f_stat 5 -../Middlewares/Third_Party/FatFs/src/ff.c:4388:9:f_getfree 21 -../Middlewares/Third_Party/FatFs/src/ff.c:4475:9:f_truncate 14 -../Middlewares/Third_Party/FatFs/src/ff.c:4525:9:f_unlink 17 -../Middlewares/Third_Party/FatFs/src/ff.c:4620:9:f_mkdir 18 -../Middlewares/Third_Party/FatFs/src/ff.c:4717:9:f_rename 24 -../Middlewares/Third_Party/FatFs/src/ff.c:5301:9:f_mkfs 132 -../Middlewares/Third_Party/FatFs/src/ff.c:5830:8:f_gets 6 -../Middlewares/Third_Party/FatFs/src/ff.c:5917:6:putc_bfd 5 -../Middlewares/Third_Party/FatFs/src/ff.c:5973:5:putc_flush 4 -../Middlewares/Third_Party/FatFs/src/ff.c:5987:6:putc_init 1 -../Middlewares/Third_Party/FatFs/src/ff.c:5998:5:f_putc 1 -../Middlewares/Third_Party/FatFs/src/ff.c:6018:5:f_puts 2 -../Middlewares/Third_Party/FatFs/src/ff.c:6038:5:f_printf 37 diff --git a/Debug/Middlewares/Third_Party/FatFs/src/ff.d b/Debug/Middlewares/Third_Party/FatFs/src/ff.d deleted file mode 100644 index dd3ded9..0000000 --- a/Debug/Middlewares/Third_Party/FatFs/src/ff.d +++ /dev/null @@ -1,125 +0,0 @@ -Middlewares/Third_Party/FatFs/src/ff.o: \ - ../Middlewares/Third_Party/FatFs/src/ff.c \ - ../Middlewares/Third_Party/FatFs/src/ff.h \ - ../Middlewares/Third_Party/FatFs/src/integer.h ../FATFS/Target/ffconf.h \ - ../Core/Inc/main.h ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../FATFS/Target/bsp_driver_sd.h ../FATFS/Target/fatfs_platform.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FatFs/src/diskio.h -../Middlewares/Third_Party/FatFs/src/ff.h: -../Middlewares/Third_Party/FatFs/src/integer.h: -../FATFS/Target/ffconf.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../FATFS/Target/bsp_driver_sd.h: -../FATFS/Target/fatfs_platform.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FatFs/src/diskio.h: diff --git a/Debug/Middlewares/Third_Party/FatFs/src/ff.o b/Debug/Middlewares/Third_Party/FatFs/src/ff.o deleted file mode 100644 index f7fa02f..0000000 Binary files a/Debug/Middlewares/Third_Party/FatFs/src/ff.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/FatFs/src/ff.su b/Debug/Middlewares/Third_Party/FatFs/src/ff.su deleted file mode 100644 index ac4850e..0000000 --- a/Debug/Middlewares/Third_Party/FatFs/src/ff.su +++ /dev/null @@ -1,83 +0,0 @@ -../Middlewares/Third_Party/FatFs/src/ff.c:613:6:ld_word 24 static -../Middlewares/Third_Party/FatFs/src/ff.c:623:7:ld_dword 24 static -../Middlewares/Third_Party/FatFs/src/ff.c:636:7:ld_qword 144 static -../Middlewares/Third_Party/FatFs/src/ff.c:654:6:st_word 16 static -../Middlewares/Third_Party/FatFs/src/ff.c:661:6:st_dword 16 static -../Middlewares/Third_Party/FatFs/src/ff.c:671:6:st_qword 24 static -../Middlewares/Third_Party/FatFs/src/ff.c:693:6:mem_cpy 32 static -../Middlewares/Third_Party/FatFs/src/ff.c:706:6:mem_set 32 static -../Middlewares/Third_Party/FatFs/src/ff.c:716:5:mem_cmp 40 static -../Middlewares/Third_Party/FatFs/src/ff.c:729:5:chk_chr 16 static -../Middlewares/Third_Party/FatFs/src/ff.c:742:5:lock_fs 16 static -../Middlewares/Third_Party/FatFs/src/ff.c:751:6:unlock_fs 16 static -../Middlewares/Third_Party/FatFs/src/ff.c:771:9:chk_lock 24 static -../Middlewares/Third_Party/FatFs/src/ff.c:798:5:enq_lock 16 static -../Middlewares/Third_Party/FatFs/src/ff.c:808:6:inc_lock 24 static -../Middlewares/Third_Party/FatFs/src/ff.c:840:9:dec_lock 24 static -../Middlewares/Third_Party/FatFs/src/ff.c:863:6:clear_lock 24 static -../Middlewares/Third_Party/FatFs/src/ff.c:883:9:sync_window 32 static -../Middlewares/Third_Party/FatFs/src/ff.c:912:9:move_window 24 static -../Middlewares/Third_Party/FatFs/src/ff.c:944:9:sync_fs 24 static -../Middlewares/Third_Party/FatFs/src/ff.c:983:7:clust2sect 16 static -../Middlewares/Third_Party/FatFs/src/ff.c:1001:7:get_fat 56 static -../Middlewares/Third_Party/FatFs/src/ff.c:1081:9:put_fat 48 static -../Middlewares/Third_Party/FatFs/src/ff.c:1146:7:find_bitmap 48 static -../Middlewares/Third_Party/FatFs/src/ff.c:1187:9:change_bitmap 40 static -../Middlewares/Third_Party/FatFs/src/ff.c:1223:9:fill_first_frag 32 static -../Middlewares/Third_Party/FatFs/src/ff.c:1246:9:fill_last_frag 32 static -../Middlewares/Third_Party/FatFs/src/ff.c:1271:9:remove_chain 48 static -../Middlewares/Third_Party/FatFs/src/ff.c:1351:7:create_chain 40 static -../Middlewares/Third_Party/FatFs/src/ff.c:1440:7:clmt_clust 56 static -../Middlewares/Third_Party/FatFs/src/ff.c:1470:9:dir_sdi 32 static -../Middlewares/Third_Party/FatFs/src/ff.c:1519:9:dir_next 32 static -../Middlewares/Third_Party/FatFs/src/ff.c:1589:9:dir_alloc 32 static -../Middlewares/Third_Party/FatFs/src/ff.c:1632:7:ld_clust 24 static -../Middlewares/Third_Party/FatFs/src/ff.c:1650:6:st_clust 24 static -../Middlewares/Third_Party/FatFs/src/ff.c:1677:5:cmp_lfn 40 static -../Middlewares/Third_Party/FatFs/src/ff.c:1713:5:pick_lfn 32 static -../Middlewares/Third_Party/FatFs/src/ff.c:1751:6:put_lfn 40 static -../Middlewares/Third_Party/FatFs/src/ff.c:1789:6:gen_numname 56 static -../Middlewares/Third_Party/FatFs/src/ff.c:1848:6:sum_sfn 24 static -../Middlewares/Third_Party/FatFs/src/ff.c:1871:6:xdir_sum 32 static -../Middlewares/Third_Party/FatFs/src/ff.c:1893:6:xname_sum 24 static -../Middlewares/Third_Party/FatFs/src/ff.c:1912:7:xsum32 16 static -../Middlewares/Third_Party/FatFs/src/ff.c:1929:6:get_xdir_info 32 static -../Middlewares/Third_Party/FatFs/src/ff.c:1978:9:load_xdir 40 static -../Middlewares/Third_Party/FatFs/src/ff.c:2028:9:load_obj_dir 32 static -../Middlewares/Third_Party/FatFs/src/ff.c:2056:9:store_xdir 40 static -../Middlewares/Third_Party/FatFs/src/ff.c:2089:6:create_xdir 32 static -../Middlewares/Third_Party/FatFs/src/ff.c:2131:9:dir_read 32 static -../Middlewares/Third_Party/FatFs/src/ff.c:2210:9:dir_find 48 static -../Middlewares/Third_Party/FatFs/src/ff.c:2292:9:dir_register 152 static -../Middlewares/Third_Party/FatFs/src/ff.c:2396:9:dir_remove 32 static -../Middlewares/Third_Party/FatFs/src/ff.c:2444:6:get_fileinfo 48 static -../Middlewares/Third_Party/FatFs/src/ff.c:2618:9:create_name 48 static -../Middlewares/Third_Party/FatFs/src/ff.c:2813:9:follow_path 32 static -../Middlewares/Third_Party/FatFs/src/ff.c:2904:5:get_ldnumber 32 static -../Middlewares/Third_Party/FatFs/src/ff.c:2965:6:check_fs 16 static -../Middlewares/Third_Party/FatFs/src/ff.c:2993:9:find_volume 144 static -../Middlewares/Third_Party/FatFs/src/ff.c:3216:9:validate 24 static -../Middlewares/Third_Party/FatFs/src/ff.c:3260:9:f_mount 40 static -../Middlewares/Third_Party/FatFs/src/ff.c:3308:9:f_open 1312 static -../Middlewares/Third_Party/FatFs/src/ff.c:3511:9:f_read 128 static -../Middlewares/Third_Party/FatFs/src/ff.c:3611:9:f_write 104 static -../Middlewares/Third_Party/FatFs/src/ff.c:3732:9:f_sync 1232 static -../Middlewares/Third_Party/FatFs/src/ff.c:3813:9:f_close 24 static -../Middlewares/Third_Party/FatFs/src/ff.c:4001:9:f_lseek 264 static -../Middlewares/Third_Party/FatFs/src/ff.c:4162:9:f_opendir 1152 static -../Middlewares/Third_Party/FatFs/src/ff.c:4232:9:f_closedir 24 static -../Middlewares/Third_Party/FatFs/src/ff.c:4265:9:f_readdir 1144 static -../Middlewares/Third_Party/FatFs/src/ff.c:4353:9:f_stat 1224 static -../Middlewares/Third_Party/FatFs/src/ff.c:4388:9:f_getfree 112 static -../Middlewares/Third_Party/FatFs/src/ff.c:4475:9:f_truncate 32 static -../Middlewares/Third_Party/FatFs/src/ff.c:4525:9:f_unlink 1360 static -../Middlewares/Third_Party/FatFs/src/ff.c:4620:9:f_mkdir 1264 static -../Middlewares/Third_Party/FatFs/src/ff.c:4717:9:f_rename 1392 static -../Middlewares/Third_Party/FatFs/src/ff.c:5301:9:f_mkfs 176 static -../Middlewares/Third_Party/FatFs/src/ff.c:5830:8:f_gets 40 static -../Middlewares/Third_Party/FatFs/src/ff.c:5917:6:putc_bfd 24 static -../Middlewares/Third_Party/FatFs/src/ff.c:5973:5:putc_flush 24 static -../Middlewares/Third_Party/FatFs/src/ff.c:5987:6:putc_init 16 static -../Middlewares/Third_Party/FatFs/src/ff.c:5998:5:f_putc 96 static -../Middlewares/Third_Party/FatFs/src/ff.c:6018:5:f_puts 96 static -../Middlewares/Third_Party/FatFs/src/ff.c:6038:5:f_printf 164 static diff --git a/Debug/Middlewares/Third_Party/FatFs/src/ff_gen_drv.cyclo b/Debug/Middlewares/Third_Party/FatFs/src/ff_gen_drv.cyclo deleted file mode 100644 index 6eb9535..0000000 --- a/Debug/Middlewares/Third_Party/FatFs/src/ff_gen_drv.cyclo +++ /dev/null @@ -1,5 +0,0 @@ -../Middlewares/Third_Party/FatFs/src/ff_gen_drv.c:39:9:FATFS_LinkDriverEx 2 -../Middlewares/Third_Party/FatFs/src/ff_gen_drv.c:68:9:FATFS_LinkDriver 1 -../Middlewares/Third_Party/FatFs/src/ff_gen_drv.c:80:9:FATFS_UnLinkDriverEx 3 -../Middlewares/Third_Party/FatFs/src/ff_gen_drv.c:106:9:FATFS_UnLinkDriver 1 -../Middlewares/Third_Party/FatFs/src/ff_gen_drv.c:116:9:FATFS_GetAttachedDriversNbr 1 diff --git a/Debug/Middlewares/Third_Party/FatFs/src/ff_gen_drv.d b/Debug/Middlewares/Third_Party/FatFs/src/ff_gen_drv.d deleted file mode 100644 index 222182a..0000000 --- a/Debug/Middlewares/Third_Party/FatFs/src/ff_gen_drv.d +++ /dev/null @@ -1,127 +0,0 @@ -Middlewares/Third_Party/FatFs/src/ff_gen_drv.o: \ - ../Middlewares/Third_Party/FatFs/src/ff_gen_drv.c \ - ../Middlewares/Third_Party/FatFs/src/ff_gen_drv.h \ - ../Middlewares/Third_Party/FatFs/src/diskio.h \ - ../Middlewares/Third_Party/FatFs/src/integer.h \ - ../Middlewares/Third_Party/FatFs/src/ff.h ../FATFS/Target/ffconf.h \ - ../Core/Inc/main.h ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../FATFS/Target/bsp_driver_sd.h ../FATFS/Target/fatfs_platform.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h -../Middlewares/Third_Party/FatFs/src/ff_gen_drv.h: -../Middlewares/Third_Party/FatFs/src/diskio.h: -../Middlewares/Third_Party/FatFs/src/integer.h: -../Middlewares/Third_Party/FatFs/src/ff.h: -../FATFS/Target/ffconf.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../FATFS/Target/bsp_driver_sd.h: -../FATFS/Target/fatfs_platform.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: diff --git a/Debug/Middlewares/Third_Party/FatFs/src/ff_gen_drv.o b/Debug/Middlewares/Third_Party/FatFs/src/ff_gen_drv.o deleted file mode 100644 index 5faf696..0000000 Binary files a/Debug/Middlewares/Third_Party/FatFs/src/ff_gen_drv.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/FatFs/src/ff_gen_drv.su b/Debug/Middlewares/Third_Party/FatFs/src/ff_gen_drv.su deleted file mode 100644 index e610e3d..0000000 --- a/Debug/Middlewares/Third_Party/FatFs/src/ff_gen_drv.su +++ /dev/null @@ -1,5 +0,0 @@ -../Middlewares/Third_Party/FatFs/src/ff_gen_drv.c:39:9:FATFS_LinkDriverEx 32 static -../Middlewares/Third_Party/FatFs/src/ff_gen_drv.c:68:9:FATFS_LinkDriver 16 static -../Middlewares/Third_Party/FatFs/src/ff_gen_drv.c:80:9:FATFS_UnLinkDriverEx 24 static -../Middlewares/Third_Party/FatFs/src/ff_gen_drv.c:106:9:FATFS_UnLinkDriver 16 static -../Middlewares/Third_Party/FatFs/src/ff_gen_drv.c:116:9:FATFS_GetAttachedDriversNbr 4 static diff --git a/Debug/Middlewares/Third_Party/FatFs/src/option/ccsbcs.cyclo b/Debug/Middlewares/Third_Party/FatFs/src/option/ccsbcs.cyclo deleted file mode 100644 index 57f6a42..0000000 --- a/Debug/Middlewares/Third_Party/FatFs/src/option/ccsbcs.cyclo +++ /dev/null @@ -1,2 +0,0 @@ -../Middlewares/Third_Party/FatFs/src/option/ccsbcs.c:275:7:ff_convert 6 -../Middlewares/Third_Party/FatFs/src/option/ccsbcs.c:303:7:ff_wtoupper 15 diff --git a/Debug/Middlewares/Third_Party/FatFs/src/option/ccsbcs.d b/Debug/Middlewares/Third_Party/FatFs/src/option/ccsbcs.d deleted file mode 100644 index 979fbda..0000000 --- a/Debug/Middlewares/Third_Party/FatFs/src/option/ccsbcs.d +++ /dev/null @@ -1,124 +0,0 @@ -Middlewares/Third_Party/FatFs/src/option/ccsbcs.o: \ - ../Middlewares/Third_Party/FatFs/src/option/ccsbcs.c \ - ../Middlewares/Third_Party/FatFs/src/option/../ff.h \ - ../Middlewares/Third_Party/FatFs/src/option/../integer.h \ - ../FATFS/Target/ffconf.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../FATFS/Target/bsp_driver_sd.h ../FATFS/Target/fatfs_platform.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h -../Middlewares/Third_Party/FatFs/src/option/../ff.h: -../Middlewares/Third_Party/FatFs/src/option/../integer.h: -../FATFS/Target/ffconf.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../FATFS/Target/bsp_driver_sd.h: -../FATFS/Target/fatfs_platform.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: diff --git a/Debug/Middlewares/Third_Party/FatFs/src/option/ccsbcs.o b/Debug/Middlewares/Third_Party/FatFs/src/option/ccsbcs.o deleted file mode 100644 index 9e23bd9..0000000 Binary files a/Debug/Middlewares/Third_Party/FatFs/src/option/ccsbcs.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/FatFs/src/option/ccsbcs.su b/Debug/Middlewares/Third_Party/FatFs/src/option/ccsbcs.su deleted file mode 100644 index 3d35439..0000000 --- a/Debug/Middlewares/Third_Party/FatFs/src/option/ccsbcs.su +++ /dev/null @@ -1,2 +0,0 @@ -../Middlewares/Third_Party/FatFs/src/option/ccsbcs.c:275:7:ff_convert 24 static -../Middlewares/Third_Party/FatFs/src/option/ccsbcs.c:303:7:ff_wtoupper 32 static diff --git a/Debug/Middlewares/Third_Party/FatFs/src/option/subdir.mk b/Debug/Middlewares/Third_Party/FatFs/src/option/subdir.mk deleted file mode 100644 index 19f8fe6..0000000 --- a/Debug/Middlewares/Third_Party/FatFs/src/option/subdir.mk +++ /dev/null @@ -1,30 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -# Toolchain: GNU Tools for STM32 (11.3.rel1) -################################################################################ - -# Add inputs and outputs from these tool invocations to the build variables -C_SRCS += \ -../Middlewares/Third_Party/FatFs/src/option/ccsbcs.c \ -../Middlewares/Third_Party/FatFs/src/option/syscall.c - -OBJS += \ -./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o \ -./Middlewares/Third_Party/FatFs/src/option/syscall.o - -C_DEPS += \ -./Middlewares/Third_Party/FatFs/src/option/ccsbcs.d \ -./Middlewares/Third_Party/FatFs/src/option/syscall.d - - -# Each subdirectory must supply rules for building sources it contributes -Middlewares/Third_Party/FatFs/src/option/%.o Middlewares/Third_Party/FatFs/src/option/%.su Middlewares/Third_Party/FatFs/src/option/%.cyclo: ../Middlewares/Third_Party/FatFs/src/option/%.c Middlewares/Third_Party/FatFs/src/option/subdir.mk - arm-none-eabi-gcc "$<" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DDATA_IN_D2_SRAM -DUSE_HAL_DRIVER -DSTM32H723xx -c -I../Core/Inc -I../FATFS/Target -I../FATFS/App -I../LWIP/App -I../LWIP/Target -I../Middlewares/Third_Party/LwIP/src/include -I../Middlewares/Third_Party/LwIP/system -I../Drivers/STM32H7xx_HAL_Driver/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/Third_Party/FatFs/src -I../Drivers/BSP/Components/lan8742 -I../Middlewares/Third_Party/LwIP/src/include/netif/ppp -I../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../Middlewares/Third_Party/LwIP/src/include/lwip -I../Middlewares/Third_Party/LwIP/src/include/lwip/apps -I../Middlewares/Third_Party/LwIP/src/include/lwip/priv -I../Middlewares/Third_Party/LwIP/src/include/lwip/prot -I../Middlewares/Third_Party/LwIP/src/include/netif -I../Middlewares/Third_Party/LwIP/src/include/compat/posix -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/arpa -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/net -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/sys -I../Middlewares/Third_Party/LwIP/src/include/compat/stdc -I../Middlewares/Third_Party/LwIP/system/arch -I../Drivers/CMSIS/Include -I"C:/_NoSleep/STM32/TBD_TaxiBoard/LWFTPC" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "$@" - -clean: clean-Middlewares-2f-Third_Party-2f-FatFs-2f-src-2f-option - -clean-Middlewares-2f-Third_Party-2f-FatFs-2f-src-2f-option: - -$(RM) ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.cyclo ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.d ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.su ./Middlewares/Third_Party/FatFs/src/option/syscall.cyclo ./Middlewares/Third_Party/FatFs/src/option/syscall.d ./Middlewares/Third_Party/FatFs/src/option/syscall.o ./Middlewares/Third_Party/FatFs/src/option/syscall.su - -.PHONY: clean-Middlewares-2f-Third_Party-2f-FatFs-2f-src-2f-option - diff --git a/Debug/Middlewares/Third_Party/FatFs/src/option/syscall.cyclo b/Debug/Middlewares/Third_Party/FatFs/src/option/syscall.cyclo deleted file mode 100644 index b2312a0..0000000 --- a/Debug/Middlewares/Third_Party/FatFs/src/option/syscall.cyclo +++ /dev/null @@ -1,4 +0,0 @@ -../Middlewares/Third_Party/FatFs/src/option/syscall.c:36:5:ff_cre_syncobj 1 -../Middlewares/Third_Party/FatFs/src/option/syscall.c:77:5:ff_del_syncobj 1 -../Middlewares/Third_Party/FatFs/src/option/syscall.c:98:5:ff_req_grant 2 -../Middlewares/Third_Party/FatFs/src/option/syscall.c:135:6:ff_rel_grant 1 diff --git a/Debug/Middlewares/Third_Party/FatFs/src/option/syscall.d b/Debug/Middlewares/Third_Party/FatFs/src/option/syscall.d deleted file mode 100644 index 3ed7a4c..0000000 --- a/Debug/Middlewares/Third_Party/FatFs/src/option/syscall.d +++ /dev/null @@ -1,124 +0,0 @@ -Middlewares/Third_Party/FatFs/src/option/syscall.o: \ - ../Middlewares/Third_Party/FatFs/src/option/syscall.c \ - ../Middlewares/Third_Party/FatFs/src/option/../ff.h \ - ../Middlewares/Third_Party/FatFs/src/option/../integer.h \ - ../FATFS/Target/ffconf.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../FATFS/Target/bsp_driver_sd.h ../FATFS/Target/fatfs_platform.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h -../Middlewares/Third_Party/FatFs/src/option/../ff.h: -../Middlewares/Third_Party/FatFs/src/option/../integer.h: -../FATFS/Target/ffconf.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../FATFS/Target/bsp_driver_sd.h: -../FATFS/Target/fatfs_platform.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: diff --git a/Debug/Middlewares/Third_Party/FatFs/src/option/syscall.o b/Debug/Middlewares/Third_Party/FatFs/src/option/syscall.o deleted file mode 100644 index 4c0c3a7..0000000 Binary files a/Debug/Middlewares/Third_Party/FatFs/src/option/syscall.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/FatFs/src/option/syscall.su b/Debug/Middlewares/Third_Party/FatFs/src/option/syscall.su deleted file mode 100644 index 60f8be2..0000000 --- a/Debug/Middlewares/Third_Party/FatFs/src/option/syscall.su +++ /dev/null @@ -1,4 +0,0 @@ -../Middlewares/Third_Party/FatFs/src/option/syscall.c:36:5:ff_cre_syncobj 32 static -../Middlewares/Third_Party/FatFs/src/option/syscall.c:77:5:ff_del_syncobj 16 static -../Middlewares/Third_Party/FatFs/src/option/syscall.c:98:5:ff_req_grant 24 static -../Middlewares/Third_Party/FatFs/src/option/syscall.c:135:6:ff_rel_grant 16 static diff --git a/Debug/Middlewares/Third_Party/FatFs/src/subdir.mk b/Debug/Middlewares/Third_Party/FatFs/src/subdir.mk deleted file mode 100644 index 6d1fb94..0000000 --- a/Debug/Middlewares/Third_Party/FatFs/src/subdir.mk +++ /dev/null @@ -1,33 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -# Toolchain: GNU Tools for STM32 (11.3.rel1) -################################################################################ - -# Add inputs and outputs from these tool invocations to the build variables -C_SRCS += \ -../Middlewares/Third_Party/FatFs/src/diskio.c \ -../Middlewares/Third_Party/FatFs/src/ff.c \ -../Middlewares/Third_Party/FatFs/src/ff_gen_drv.c - -OBJS += \ -./Middlewares/Third_Party/FatFs/src/diskio.o \ -./Middlewares/Third_Party/FatFs/src/ff.o \ -./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - -C_DEPS += \ -./Middlewares/Third_Party/FatFs/src/diskio.d \ -./Middlewares/Third_Party/FatFs/src/ff.d \ -./Middlewares/Third_Party/FatFs/src/ff_gen_drv.d - - -# Each subdirectory must supply rules for building sources it contributes -Middlewares/Third_Party/FatFs/src/%.o Middlewares/Third_Party/FatFs/src/%.su Middlewares/Third_Party/FatFs/src/%.cyclo: ../Middlewares/Third_Party/FatFs/src/%.c Middlewares/Third_Party/FatFs/src/subdir.mk - arm-none-eabi-gcc "$<" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DDATA_IN_D2_SRAM -DUSE_HAL_DRIVER -DSTM32H723xx -c -I../Core/Inc -I../FATFS/Target -I../FATFS/App -I../LWIP/App -I../LWIP/Target -I../Middlewares/Third_Party/LwIP/src/include -I../Middlewares/Third_Party/LwIP/system -I../Drivers/STM32H7xx_HAL_Driver/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/Third_Party/FatFs/src -I../Drivers/BSP/Components/lan8742 -I../Middlewares/Third_Party/LwIP/src/include/netif/ppp -I../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../Middlewares/Third_Party/LwIP/src/include/lwip -I../Middlewares/Third_Party/LwIP/src/include/lwip/apps -I../Middlewares/Third_Party/LwIP/src/include/lwip/priv -I../Middlewares/Third_Party/LwIP/src/include/lwip/prot -I../Middlewares/Third_Party/LwIP/src/include/netif -I../Middlewares/Third_Party/LwIP/src/include/compat/posix -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/arpa -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/net -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/sys -I../Middlewares/Third_Party/LwIP/src/include/compat/stdc -I../Middlewares/Third_Party/LwIP/system/arch -I../Drivers/CMSIS/Include -I"C:/_NoSleep/STM32/TBD_TaxiBoard/LWFTPC" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "$@" - -clean: clean-Middlewares-2f-Third_Party-2f-FatFs-2f-src - -clean-Middlewares-2f-Third_Party-2f-FatFs-2f-src: - -$(RM) ./Middlewares/Third_Party/FatFs/src/diskio.cyclo ./Middlewares/Third_Party/FatFs/src/diskio.d ./Middlewares/Third_Party/FatFs/src/diskio.o ./Middlewares/Third_Party/FatFs/src/diskio.su ./Middlewares/Third_Party/FatFs/src/ff.cyclo ./Middlewares/Third_Party/FatFs/src/ff.d ./Middlewares/Third_Party/FatFs/src/ff.o ./Middlewares/Third_Party/FatFs/src/ff.su ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.cyclo ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.d ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.su - -.PHONY: clean-Middlewares-2f-Third_Party-2f-FatFs-2f-src - diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.cyclo b/Debug/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.cyclo deleted file mode 100644 index ce38697..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.cyclo +++ /dev/null @@ -1,56 +0,0 @@ -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:103:31:makeFreeRtosPriority 2 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:116:19:makeCmsisPriority 2 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:130:12:inHandlerMode 1 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:150:10:osKernelStart 1 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:165:9:osKernelRunning 2 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:184:10:osKernelSysTick 2 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:202:12:osThreadCreate 4 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:240:12:osThreadGetId 1 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:255:10:osThreadTerminate 1 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:270:10:osThreadYield 1 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:284:10:osThreadSetPriority 1 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:300:12:osThreadGetPriority 2 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:322:10:osDelay 2 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:357:11:osTimerCreate 4 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:404:10:osTimerStart 6 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:443:10:osTimerStop 5 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:472:10:osTimerDelete 3 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:502:9:osSignalSet 5 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:543:9:osSignalWait 8 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:597:11:osMutexCreate 2 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:626:10:osMutexWait 9 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:666:10:osMutexRelease 5 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:690:10:osMutexDelete 2 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:712:15:osSemaphoreCreate 5 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:779:9:osSemaphoreWait 9 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:819:10:osSemaphoreRelease 5 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:846:10:osSemaphoreDelete 2 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:883:10:osPoolCreate 5 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:936:7:osPoolAlloc 5 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:977:7:osPoolCAlloc 2 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:996:10:osPoolFree 6 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1040:14:osMessageCreate 3 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1067:10:osMessagePut 6 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1099:9:osMessageGet 10 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1168:11:osMailCreate 4 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1214:7:osMailAlloc 2 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1236:7:osMailCAlloc 3 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1257:10:osMailPut 6 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1290:9:osMailGet 10 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1346:10:osMailFree 2 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1362:6:osSystickHandler 2 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1432:10:osThreadSuspend 1 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1448:10:osThreadResume 3 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1472:10:osThreadSuspendAll 1 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1483:10:osThreadResumeAll 2 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1500:10:osDelayUntil 2 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1520:10:osAbortDelay 1 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1541:10:osThreadList 1 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1555:9:osMessagePeek 7 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1596:10:osMessageWaiting 2 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1612:10:osMessageAvailableSpace 1 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1622:10:osMessageDelete 2 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1638:11:osRecursiveMutexCreate 1 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1664:10:osRecursiveMutexRelease 1 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1685:10:osRecursiveMutexWait 1 -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1724:10:osSemaphoreGetCount 1 diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.d b/Debug/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.d deleted file mode 100644 index 6f93a0c..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.d +++ /dev/null @@ -1,38 +0,0 @@ -Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o: \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o b/Debug/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o deleted file mode 100644 index 3b7c5ee..0000000 Binary files a/Debug/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.su b/Debug/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.su deleted file mode 100644 index c930655..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.su +++ /dev/null @@ -1,56 +0,0 @@ -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:103:31:makeFreeRtosPriority 24 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:116:19:makeCmsisPriority 24 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:130:12:inHandlerMode 16 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:150:10:osKernelStart 8 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:165:9:osKernelRunning 8 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:184:10:osKernelSysTick 8 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:202:12:osThreadCreate 56 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:240:12:osThreadGetId 8 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:255:10:osThreadTerminate 16 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:270:10:osThreadYield 4 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:284:10:osThreadSetPriority 16 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:300:12:osThreadGetPriority 16 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:322:10:osDelay 24 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:357:11:osTimerCreate 32 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:404:10:osTimerStart 40 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:443:10:osTimerStop 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:472:10:osTimerDelete 32 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:502:9:osSignalSet 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:543:9:osSignalWait 48 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:597:11:osMutexCreate 16 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:626:10:osMutexWait 24 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:666:10:osMutexRelease 24 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:690:10:osMutexDelete 16 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:712:15:osSemaphoreCreate 32 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:779:9:osSemaphoreWait 24 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:819:10:osSemaphoreRelease 24 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:846:10:osSemaphoreDelete 16 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:883:10:osPoolCreate 32 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:936:7:osPoolAlloc 48 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:977:7:osPoolCAlloc 24 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:996:10:osPoolFree 24 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1040:14:osMessageCreate 32 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1067:10:osMessagePut 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1099:9:osMessageGet 56 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1168:11:osMailCreate 40 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1214:7:osMailAlloc 24 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1236:7:osMailCAlloc 24 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1257:10:osMailPut 24 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1290:9:osMailGet 56 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1346:10:osMailFree 16 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1362:6:osSystickHandler 8 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1432:10:osThreadSuspend 16 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1448:10:osThreadResume 16 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1472:10:osThreadSuspendAll 8 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1483:10:osThreadResumeAll 8 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1500:10:osDelayUntil 24 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1520:10:osAbortDelay 16 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1541:10:osThreadList 16 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1555:9:osMessagePeek 48 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1596:10:osMessageWaiting 16 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1612:10:osMessageAvailableSpace 16 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1622:10:osMessageDelete 16 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1638:11:osRecursiveMutexCreate 16 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1664:10:osRecursiveMutexRelease 16 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1685:10:osRecursiveMutexWait 16 static -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:1724:10:osSemaphoreGetCount 16 static diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/subdir.mk b/Debug/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/subdir.mk deleted file mode 100644 index 2219b77..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/subdir.mk +++ /dev/null @@ -1,27 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -# Toolchain: GNU Tools for STM32 (11.3.rel1) -################################################################################ - -# Add inputs and outputs from these tool invocations to the build variables -C_SRCS += \ -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c - -OBJS += \ -./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - -C_DEPS += \ -./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.d - - -# Each subdirectory must supply rules for building sources it contributes -Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/%.o Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/%.su Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/%.cyclo: ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/%.c Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/subdir.mk - arm-none-eabi-gcc "$<" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DDATA_IN_D2_SRAM -DUSE_HAL_DRIVER -DSTM32H723xx -c -I../Core/Inc -I../FATFS/Target -I../FATFS/App -I../LWIP/App -I../LWIP/Target -I../Middlewares/Third_Party/LwIP/src/include -I../Middlewares/Third_Party/LwIP/system -I../Drivers/STM32H7xx_HAL_Driver/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/Third_Party/FatFs/src -I../Drivers/BSP/Components/lan8742 -I../Middlewares/Third_Party/LwIP/src/include/netif/ppp -I../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../Middlewares/Third_Party/LwIP/src/include/lwip -I../Middlewares/Third_Party/LwIP/src/include/lwip/apps -I../Middlewares/Third_Party/LwIP/src/include/lwip/priv -I../Middlewares/Third_Party/LwIP/src/include/lwip/prot -I../Middlewares/Third_Party/LwIP/src/include/netif -I../Middlewares/Third_Party/LwIP/src/include/compat/posix -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/arpa -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/net -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/sys -I../Middlewares/Third_Party/LwIP/src/include/compat/stdc -I../Middlewares/Third_Party/LwIP/system/arch -I../Drivers/CMSIS/Include -I"C:/_NoSleep/STM32/TBD_TaxiBoard/LWFTPC" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "$@" - -clean: clean-Middlewares-2f-Third_Party-2f-FreeRTOS-2f-Source-2f-CMSIS_RTOS - -clean-Middlewares-2f-Third_Party-2f-FreeRTOS-2f-Source-2f-CMSIS_RTOS: - -$(RM) ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.cyclo ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.d ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.su - -.PHONY: clean-Middlewares-2f-Third_Party-2f-FreeRTOS-2f-Source-2f-CMSIS_RTOS - diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/croutine.cyclo b/Debug/Middlewares/Third_Party/FreeRTOS/Source/croutine.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/croutine.d b/Debug/Middlewares/Third_Party/FreeRTOS/Source/croutine.d deleted file mode 100644 index 917ef11..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/croutine.d +++ /dev/null @@ -1,22 +0,0 @@ -Middlewares/Third_Party/FreeRTOS/Source/croutine.o: \ - ../Middlewares/Third_Party/FreeRTOS/Source/croutine.c \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/croutine.h -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/croutine.h: diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/croutine.o b/Debug/Middlewares/Third_Party/FreeRTOS/Source/croutine.o deleted file mode 100644 index d1097b5..0000000 Binary files a/Debug/Middlewares/Third_Party/FreeRTOS/Source/croutine.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/croutine.su b/Debug/Middlewares/Third_Party/FreeRTOS/Source/croutine.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/event_groups.cyclo b/Debug/Middlewares/Third_Party/FreeRTOS/Source/event_groups.cyclo deleted file mode 100644 index 56c4d2b..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/event_groups.cyclo +++ /dev/null @@ -1,11 +0,0 @@ -../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c:93:21:xEventGroupCreateStatic 4 -../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c:145:21:xEventGroupCreate 2 -../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c:191:13:xEventGroupSync 12 -../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c:311:13:xEventGroupWaitBits 17 -../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c:461:13:xEventGroupClearBits 3 -../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c:503:13:xEventGroupGetBitsFromISR 1 -../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c:519:13:xEventGroupSetBits 9 -../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c:613:6:vEventGroupDelete 4 -../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c:657:6:vEventGroupSetBitsCallback 1 -../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c:665:6:vEventGroupClearBitsCallback 1 -../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c:671:19:prvTestWaitCondition 4 diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/event_groups.d b/Debug/Middlewares/Third_Party/FreeRTOS/Source/event_groups.d deleted file mode 100644 index a2c9c62..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/event_groups.d +++ /dev/null @@ -1,28 +0,0 @@ -Middlewares/Third_Party/FreeRTOS/Source/event_groups.o: \ - ../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/event_groups.o b/Debug/Middlewares/Third_Party/FreeRTOS/Source/event_groups.o deleted file mode 100644 index d9745f9..0000000 Binary files a/Debug/Middlewares/Third_Party/FreeRTOS/Source/event_groups.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/event_groups.su b/Debug/Middlewares/Third_Party/FreeRTOS/Source/event_groups.su deleted file mode 100644 index b97429e..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/event_groups.su +++ /dev/null @@ -1,11 +0,0 @@ -../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c:93:21:xEventGroupCreateStatic 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c:145:21:xEventGroupCreate 16 static -../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c:191:13:xEventGroupSync 56 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c:311:13:xEventGroupWaitBits 72 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c:461:13:xEventGroupClearBits 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c:503:13:xEventGroupGetBitsFromISR 40 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c:519:13:xEventGroupSetBits 64 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c:613:6:vEventGroupDelete 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c:657:6:vEventGroupSetBitsCallback 16 static -../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c:665:6:vEventGroupClearBitsCallback 16 static -../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c:671:19:prvTestWaitCondition 32 static diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/list.cyclo b/Debug/Middlewares/Third_Party/FreeRTOS/Source/list.cyclo deleted file mode 100644 index 8d6cdb0..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/list.cyclo +++ /dev/null @@ -1,5 +0,0 @@ -../Middlewares/Third_Party/FreeRTOS/Source/list.c:37:6:vListInitialise 1 -../Middlewares/Third_Party/FreeRTOS/Source/list.c:62:6:vListInitialiseItem 1 -../Middlewares/Third_Party/FreeRTOS/Source/list.c:74:6:vListInsertEnd 1 -../Middlewares/Third_Party/FreeRTOS/Source/list.c:103:6:vListInsert 3 -../Middlewares/Third_Party/FreeRTOS/Source/list.c:170:13:uxListRemove 2 diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/list.d b/Debug/Middlewares/Third_Party/FreeRTOS/Source/list.d deleted file mode 100644 index a46554b..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/list.d +++ /dev/null @@ -1,18 +0,0 @@ -Middlewares/Third_Party/FreeRTOS/Source/list.o: \ - ../Middlewares/Third_Party/FreeRTOS/Source/list.c \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/list.o b/Debug/Middlewares/Third_Party/FreeRTOS/Source/list.o deleted file mode 100644 index 6432af1..0000000 Binary files a/Debug/Middlewares/Third_Party/FreeRTOS/Source/list.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/list.su b/Debug/Middlewares/Third_Party/FreeRTOS/Source/list.su deleted file mode 100644 index 85c9323..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/list.su +++ /dev/null @@ -1,5 +0,0 @@ -../Middlewares/Third_Party/FreeRTOS/Source/list.c:37:6:vListInitialise 16 static -../Middlewares/Third_Party/FreeRTOS/Source/list.c:62:6:vListInitialiseItem 16 static -../Middlewares/Third_Party/FreeRTOS/Source/list.c:74:6:vListInsertEnd 24 static -../Middlewares/Third_Party/FreeRTOS/Source/list.c:103:6:vListInsert 24 static -../Middlewares/Third_Party/FreeRTOS/Source/list.c:170:13:uxListRemove 24 static diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.cyclo b/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.cyclo deleted file mode 100644 index 6e44697..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.cyclo +++ /dev/null @@ -1,13 +0,0 @@ -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c:187:14:pxPortInitialiseStack 1 -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c:217:13:prvTaskExitError 3 -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c:242:6:SVC_Handler 1 -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c:261:13:prvPortStartFirstTask 1 -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c:287:12:xPortStartScheduler 5 -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c:395:6:vPortEndScheduler 2 -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c:403:6:vPortEnterCritical 3 -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c:420:6:vPortExitCritical 3 -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c:431:6:PendSV_Handler 1 -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c:488:6:SysTick_Handler 2 -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c:679:30:vPortSetupTimerInterrupt 1 -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c:701:13:vPortEnableVFP 1 -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c:717:7:vPortValidateInterruptPriority 4 diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.d b/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.d deleted file mode 100644 index 24dc560..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.d +++ /dev/null @@ -1,20 +0,0 @@ -Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o: \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o b/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o deleted file mode 100644 index 4c36497..0000000 Binary files a/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.su b/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.su deleted file mode 100644 index 5a725d2..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.su +++ /dev/null @@ -1,13 +0,0 @@ -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c:187:14:pxPortInitialiseStack 24 static -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c:217:13:prvTaskExitError 24 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c:242:6:SVC_Handler 0 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c:261:13:prvPortStartFirstTask 0 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c:287:12:xPortStartScheduler 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c:395:6:vPortEndScheduler 16 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c:403:6:vPortEnterCritical 16 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c:420:6:vPortExitCritical 16 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c:431:6:PendSV_Handler 0 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c:488:6:SysTick_Handler 16 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c:679:30:vPortSetupTimerInterrupt 4 static -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c:701:13:vPortEnableVFP 0 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c:717:7:vPortValidateInterruptPriority 24 static,ignoring_inline_asm diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/subdir.mk b/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/subdir.mk deleted file mode 100644 index c7380ce..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/subdir.mk +++ /dev/null @@ -1,27 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -# Toolchain: GNU Tools for STM32 (11.3.rel1) -################################################################################ - -# Add inputs and outputs from these tool invocations to the build variables -C_SRCS += \ -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c - -OBJS += \ -./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - -C_DEPS += \ -./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.d - - -# Each subdirectory must supply rules for building sources it contributes -Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/%.o Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/%.su Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/%.cyclo: ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/%.c Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/subdir.mk - arm-none-eabi-gcc "$<" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DDATA_IN_D2_SRAM -DUSE_HAL_DRIVER -DSTM32H723xx -c -I../Core/Inc -I../FATFS/Target -I../FATFS/App -I../LWIP/App -I../LWIP/Target -I../Middlewares/Third_Party/LwIP/src/include -I../Middlewares/Third_Party/LwIP/system -I../Drivers/STM32H7xx_HAL_Driver/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/Third_Party/FatFs/src -I../Drivers/BSP/Components/lan8742 -I../Middlewares/Third_Party/LwIP/src/include/netif/ppp -I../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../Middlewares/Third_Party/LwIP/src/include/lwip -I../Middlewares/Third_Party/LwIP/src/include/lwip/apps -I../Middlewares/Third_Party/LwIP/src/include/lwip/priv -I../Middlewares/Third_Party/LwIP/src/include/lwip/prot -I../Middlewares/Third_Party/LwIP/src/include/netif -I../Middlewares/Third_Party/LwIP/src/include/compat/posix -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/arpa -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/net -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/sys -I../Middlewares/Third_Party/LwIP/src/include/compat/stdc -I../Middlewares/Third_Party/LwIP/system/arch -I../Drivers/CMSIS/Include -I"C:/_NoSleep/STM32/TBD_TaxiBoard/LWFTPC" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "$@" - -clean: clean-Middlewares-2f-Third_Party-2f-FreeRTOS-2f-Source-2f-portable-2f-GCC-2f-ARM_CM4F - -clean-Middlewares-2f-Third_Party-2f-FreeRTOS-2f-Source-2f-portable-2f-GCC-2f-ARM_CM4F: - -$(RM) ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.cyclo ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.d ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.su - -.PHONY: clean-Middlewares-2f-Third_Party-2f-FreeRTOS-2f-Source-2f-portable-2f-GCC-2f-ARM_CM4F - diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.cyclo b/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.cyclo deleted file mode 100644 index 0fae04d..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.cyclo +++ /dev/null @@ -1,8 +0,0 @@ -../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c:115:7:pvPortMalloc 15 -../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c:266:6:vPortFree 6 -../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c:315:8:xPortGetFreeHeapSize 1 -../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c:321:8:xPortGetMinimumEverFreeHeapSize 1 -../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c:327:6:vPortInitialiseBlocks 1 -../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c:333:13:prvHeapInit 2 -../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c:381:13:prvInsertBlockIntoFreeList 6 -../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c:442:6:vPortGetHeapStats 5 diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.d b/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.d deleted file mode 100644 index 3239dc9..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.d +++ /dev/null @@ -1,20 +0,0 @@ -Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o: \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o b/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o deleted file mode 100644 index a87569b..0000000 Binary files a/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.su b/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.su deleted file mode 100644 index 03dea47..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.su +++ /dev/null @@ -1,8 +0,0 @@ -../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c:115:7:pvPortMalloc 48 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c:266:6:vPortFree 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c:315:8:xPortGetFreeHeapSize 4 static -../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c:321:8:xPortGetMinimumEverFreeHeapSize 4 static -../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c:327:6:vPortInitialiseBlocks 4 static -../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c:333:13:prvHeapInit 24 static -../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c:381:13:prvInsertBlockIntoFreeList 24 static -../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c:442:6:vPortGetHeapStats 32 static diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/subdir.mk b/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/subdir.mk deleted file mode 100644 index 2162488..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/subdir.mk +++ /dev/null @@ -1,27 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -# Toolchain: GNU Tools for STM32 (11.3.rel1) -################################################################################ - -# Add inputs and outputs from these tool invocations to the build variables -C_SRCS += \ -../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c - -OBJS += \ -./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - -C_DEPS += \ -./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.d - - -# Each subdirectory must supply rules for building sources it contributes -Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/%.o Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/%.su Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/%.cyclo: ../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/%.c Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/subdir.mk - arm-none-eabi-gcc "$<" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DDATA_IN_D2_SRAM -DUSE_HAL_DRIVER -DSTM32H723xx -c -I../Core/Inc -I../FATFS/Target -I../FATFS/App -I../LWIP/App -I../LWIP/Target -I../Middlewares/Third_Party/LwIP/src/include -I../Middlewares/Third_Party/LwIP/system -I../Drivers/STM32H7xx_HAL_Driver/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/Third_Party/FatFs/src -I../Drivers/BSP/Components/lan8742 -I../Middlewares/Third_Party/LwIP/src/include/netif/ppp -I../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../Middlewares/Third_Party/LwIP/src/include/lwip -I../Middlewares/Third_Party/LwIP/src/include/lwip/apps -I../Middlewares/Third_Party/LwIP/src/include/lwip/priv -I../Middlewares/Third_Party/LwIP/src/include/lwip/prot -I../Middlewares/Third_Party/LwIP/src/include/netif -I../Middlewares/Third_Party/LwIP/src/include/compat/posix -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/arpa -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/net -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/sys -I../Middlewares/Third_Party/LwIP/src/include/compat/stdc -I../Middlewares/Third_Party/LwIP/system/arch -I../Drivers/CMSIS/Include -I"C:/_NoSleep/STM32/TBD_TaxiBoard/LWFTPC" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "$@" - -clean: clean-Middlewares-2f-Third_Party-2f-FreeRTOS-2f-Source-2f-portable-2f-MemMang - -clean-Middlewares-2f-Third_Party-2f-FreeRTOS-2f-Source-2f-portable-2f-MemMang: - -$(RM) ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.cyclo ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.d ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.su - -.PHONY: clean-Middlewares-2f-Third_Party-2f-FreeRTOS-2f-Source-2f-portable-2f-MemMang - diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/queue.cyclo b/Debug/Middlewares/Third_Party/FreeRTOS/Source/queue.cyclo deleted file mode 100644 index 5e0f982..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/queue.cyclo +++ /dev/null @@ -1,31 +0,0 @@ -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:255:12:xQueueGenericReset 5 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:310:16:xQueueGenericCreateStatic 11 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:368:16:xQueueGenericCreate 3 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:422:13:prvInitialiseNewQueue 2 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:466:14:prvInitialiseMutex 2 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:496:16:xQueueCreateMutex 1 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:512:16:xQueueCreateMutexStatic 1 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:740:12:xQueueGenericSend 23 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:950:12:xQueueGenericSendFromISR 14 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:1112:12:xQueueGiveFromISR 11 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:1277:12:xQueueReceive 19 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:1418:12:xQueueSemaphoreTake 21 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:1636:12:xQueuePeek 19 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:1785:12:xQueueReceiveFromISR 10 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:1876:12:xQueuePeekFromISR 7 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:1930:13:uxQueueMessagesWaiting 2 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:1946:13:uxQueueSpacesAvailable 2 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:1963:13:uxQueueMessagesWaitingFromISR 2 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:1975:6:vQueueDelete 3 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:2049:21:prvGetDisinheritPriorityAfterTimeout 2 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:2074:19:prvCopyDataToQueue 8 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:2153:13:prvCopyDataFromQueue 3 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:2171:13:prvUnlockQueue 7 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:2291:19:prvIsQueueEmpty 2 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:2312:12:xQueueIsQueueEmptyFromISR 3 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:2331:19:prvIsQueueFull 2 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:2352:12:xQueueIsQueueFullFromISR 3 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:2648:7:vQueueAddToRegistry 3 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:2677:14:pcQueueGetName 3 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:2705:7:vQueueUnregisterQueue 3 -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:2737:7:vQueueWaitForMessageRestricted 4 diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/queue.d b/Debug/Middlewares/Third_Party/FreeRTOS/Source/queue.d deleted file mode 100644 index 23ff8db..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/queue.d +++ /dev/null @@ -1,24 +0,0 @@ -Middlewares/Third_Party/FreeRTOS/Source/queue.o: \ - ../Middlewares/Third_Party/FreeRTOS/Source/queue.c \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/queue.o b/Debug/Middlewares/Third_Party/FreeRTOS/Source/queue.o deleted file mode 100644 index f413f7f..0000000 Binary files a/Debug/Middlewares/Third_Party/FreeRTOS/Source/queue.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/queue.su b/Debug/Middlewares/Third_Party/FreeRTOS/Source/queue.su deleted file mode 100644 index 6c3322c..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/queue.su +++ /dev/null @@ -1,31 +0,0 @@ -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:255:12:xQueueGenericReset 24 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:310:16:xQueueGenericCreateStatic 64 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:368:16:xQueueGenericCreate 48 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:422:13:prvInitialiseNewQueue 24 static -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:466:14:prvInitialiseMutex 16 static -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:496:16:xQueueCreateMutex 32 static -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:512:16:xQueueCreateMutexStatic 40 static -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:740:12:xQueueGenericSend 64 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:950:12:xQueueGenericSendFromISR 72 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:1112:12:xQueueGiveFromISR 64 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:1277:12:xQueueReceive 56 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:1418:12:xQueueSemaphoreTake 64 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:1636:12:xQueuePeek 64 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:1785:12:xQueueReceiveFromISR 64 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:1876:12:xQueuePeekFromISR 56 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:1930:13:uxQueueMessagesWaiting 24 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:1946:13:uxQueueSpacesAvailable 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:1963:13:uxQueueMessagesWaitingFromISR 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:1975:6:vQueueDelete 24 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:2049:21:prvGetDisinheritPriorityAfterTimeout 24 static -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:2074:19:prvCopyDataToQueue 32 static -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:2153:13:prvCopyDataFromQueue 16 static -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:2171:13:prvUnlockQueue 24 static -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:2291:19:prvIsQueueEmpty 24 static -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:2312:12:xQueueIsQueueEmptyFromISR 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:2331:19:prvIsQueueFull 24 static -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:2352:12:xQueueIsQueueFullFromISR 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:2648:7:vQueueAddToRegistry 24 static -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:2677:14:pcQueueGetName 24 static -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:2705:7:vQueueUnregisterQueue 24 static -../Middlewares/Third_Party/FreeRTOS/Source/queue.c:2737:7:vQueueWaitForMessageRestricted 32 static diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.cyclo b/Debug/Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.cyclo deleted file mode 100644 index 3c2da12..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.cyclo +++ /dev/null @@ -1,22 +0,0 @@ -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:219:23:xStreamBufferGenericCreate 7 -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:283:23:xStreamBufferGenericCreateStatic 10 -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:359:6:vStreamBufferDelete 3 -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:392:12:xStreamBufferReset 4 -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:441:12:xStreamBufferSetTriggerLevel 4 -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:470:8:xStreamBufferSpacesAvailable 3 -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:494:8:xStreamBufferBytesAvailable 2 -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:506:8:xStreamBufferSend 13 -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:610:8:xStreamBufferSendFromISR 7 -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:661:15:prvWriteMessageToBuffer 5 -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:713:8:xStreamBufferReceive 11 -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:817:8:xStreamBufferNextMessageLengthBytes 5 -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:861:8:xStreamBufferReceiveFromISR 7 -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:918:15:prvReadMessageFromBuffer 3 -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:970:12:xStreamBufferIsEmpty 3 -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:993:12:xStreamBufferIsFull 4 -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:1028:12:xStreamBufferSendCompletedFromISR 3 -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:1058:12:xStreamBufferReceiveCompletedFromISR 3 -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:1088:15:prvWriteBytesToBuffer 6 -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:1134:15:prvReadBytesFromBuffer 7 -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:1189:15:prvBytesInBuffer 2 -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:1209:13:prvInitialiseNewStreamBuffer 2 diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.d b/Debug/Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.d deleted file mode 100644 index c5439ea..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.d +++ /dev/null @@ -1,22 +0,0 @@ -Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o: \ - ../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/stream_buffer.h -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/stream_buffer.h: diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o b/Debug/Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o deleted file mode 100644 index e627f7c..0000000 Binary files a/Debug/Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.su b/Debug/Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.su deleted file mode 100644 index ea54a6c..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.su +++ /dev/null @@ -1,22 +0,0 @@ -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:219:23:xStreamBufferGenericCreate 56 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:283:23:xStreamBufferGenericCreateStatic 72 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:359:6:vStreamBufferDelete 24 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:392:12:xStreamBufferReset 40 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:441:12:xStreamBufferSetTriggerLevel 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:470:8:xStreamBufferSpacesAvailable 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:494:8:xStreamBufferBytesAvailable 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:506:8:xStreamBufferSend 72 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:610:8:xStreamBufferSendFromISR 72 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:661:15:prvWriteMessageToBuffer 32 static -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:713:8:xStreamBufferReceive 64 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:817:8:xStreamBufferNextMessageLengthBytes 48 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:861:8:xStreamBufferReceiveFromISR 72 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:918:15:prvReadMessageFromBuffer 40 static -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:970:12:xStreamBufferIsEmpty 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:993:12:xStreamBufferIsFull 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:1028:12:xStreamBufferSendCompletedFromISR 56 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:1058:12:xStreamBufferReceiveCompletedFromISR 56 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:1088:15:prvWriteBytesToBuffer 48 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:1134:15:prvReadBytesFromBuffer 48 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:1189:15:prvBytesInBuffer 24 static -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c:1209:13:prvInitialiseNewStreamBuffer 32 static,ignoring_inline_asm diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/subdir.mk b/Debug/Middlewares/Third_Party/FreeRTOS/Source/subdir.mk deleted file mode 100644 index a12bb56..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/subdir.mk +++ /dev/null @@ -1,45 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -# Toolchain: GNU Tools for STM32 (11.3.rel1) -################################################################################ - -# Add inputs and outputs from these tool invocations to the build variables -C_SRCS += \ -../Middlewares/Third_Party/FreeRTOS/Source/croutine.c \ -../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c \ -../Middlewares/Third_Party/FreeRTOS/Source/list.c \ -../Middlewares/Third_Party/FreeRTOS/Source/queue.c \ -../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c \ -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c \ -../Middlewares/Third_Party/FreeRTOS/Source/timers.c - -OBJS += \ -./Middlewares/Third_Party/FreeRTOS/Source/croutine.o \ -./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o \ -./Middlewares/Third_Party/FreeRTOS/Source/list.o \ -./Middlewares/Third_Party/FreeRTOS/Source/queue.o \ -./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o \ -./Middlewares/Third_Party/FreeRTOS/Source/tasks.o \ -./Middlewares/Third_Party/FreeRTOS/Source/timers.o - -C_DEPS += \ -./Middlewares/Third_Party/FreeRTOS/Source/croutine.d \ -./Middlewares/Third_Party/FreeRTOS/Source/event_groups.d \ -./Middlewares/Third_Party/FreeRTOS/Source/list.d \ -./Middlewares/Third_Party/FreeRTOS/Source/queue.d \ -./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.d \ -./Middlewares/Third_Party/FreeRTOS/Source/tasks.d \ -./Middlewares/Third_Party/FreeRTOS/Source/timers.d - - -# Each subdirectory must supply rules for building sources it contributes -Middlewares/Third_Party/FreeRTOS/Source/%.o Middlewares/Third_Party/FreeRTOS/Source/%.su Middlewares/Third_Party/FreeRTOS/Source/%.cyclo: ../Middlewares/Third_Party/FreeRTOS/Source/%.c Middlewares/Third_Party/FreeRTOS/Source/subdir.mk - arm-none-eabi-gcc "$<" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DDATA_IN_D2_SRAM -DUSE_HAL_DRIVER -DSTM32H723xx -c -I../Core/Inc -I../FATFS/Target -I../FATFS/App -I../LWIP/App -I../LWIP/Target -I../Middlewares/Third_Party/LwIP/src/include -I../Middlewares/Third_Party/LwIP/system -I../Drivers/STM32H7xx_HAL_Driver/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/Third_Party/FatFs/src -I../Drivers/BSP/Components/lan8742 -I../Middlewares/Third_Party/LwIP/src/include/netif/ppp -I../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../Middlewares/Third_Party/LwIP/src/include/lwip -I../Middlewares/Third_Party/LwIP/src/include/lwip/apps -I../Middlewares/Third_Party/LwIP/src/include/lwip/priv -I../Middlewares/Third_Party/LwIP/src/include/lwip/prot -I../Middlewares/Third_Party/LwIP/src/include/netif -I../Middlewares/Third_Party/LwIP/src/include/compat/posix -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/arpa -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/net -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/sys -I../Middlewares/Third_Party/LwIP/src/include/compat/stdc -I../Middlewares/Third_Party/LwIP/system/arch -I../Drivers/CMSIS/Include -I"C:/_NoSleep/STM32/TBD_TaxiBoard/LWFTPC" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "$@" - -clean: clean-Middlewares-2f-Third_Party-2f-FreeRTOS-2f-Source - -clean-Middlewares-2f-Third_Party-2f-FreeRTOS-2f-Source: - -$(RM) ./Middlewares/Third_Party/FreeRTOS/Source/croutine.cyclo ./Middlewares/Third_Party/FreeRTOS/Source/croutine.d ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o ./Middlewares/Third_Party/FreeRTOS/Source/croutine.su ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.cyclo ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.d ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.su ./Middlewares/Third_Party/FreeRTOS/Source/list.cyclo ./Middlewares/Third_Party/FreeRTOS/Source/list.d ./Middlewares/Third_Party/FreeRTOS/Source/list.o ./Middlewares/Third_Party/FreeRTOS/Source/list.su ./Middlewares/Third_Party/FreeRTOS/Source/queue.cyclo ./Middlewares/Third_Party/FreeRTOS/Source/queue.d ./Middlewares/Third_Party/FreeRTOS/Source/queue.o ./Middlewares/Third_Party/FreeRTOS/Source/queue.su ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.cyclo ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.d ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.su ./Middlewares/Third_Party/FreeRTOS/Source/tasks.cyclo ./Middlewares/Third_Party/FreeRTOS/Source/tasks.d ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o ./Middlewares/Third_Party/FreeRTOS/Source/tasks.su ./Middlewares/Third_Party/FreeRTOS/Source/timers.cyclo ./Middlewares/Third_Party/FreeRTOS/Source/timers.d ./Middlewares/Third_Party/FreeRTOS/Source/timers.o ./Middlewares/Third_Party/FreeRTOS/Source/timers.su - -.PHONY: clean-Middlewares-2f-Third_Party-2f-FreeRTOS-2f-Source - diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/tasks.cyclo b/Debug/Middlewares/Third_Party/FreeRTOS/Source/tasks.cyclo deleted file mode 100644 index 931ce56..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/tasks.cyclo +++ /dev/null @@ -1,56 +0,0 @@ -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:581:15:xTaskCreateStatic 6 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:733:13:xTaskCreate 4 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:824:13:prvInitialiseNewTask 7 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1077:13:prvAddNewTaskToReadyList 7 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1162:7:vTaskDelete 9 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1257:7:vTaskDelayUntil 11 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1341:7:vTaskDelay 4 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1478:14:uxTaskPriorityGet 2 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1500:14:uxTaskPriorityGetFromISR 2 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1540:7:vTaskPrioritySet 14 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1704:7:vTaskSuspend 11 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1805:20:prvTaskIsTaskSuspended 5 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1851:7:vTaskResume 6 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1905:13:xTaskResumeFromISR 5 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1975:6:vTaskStartScheduler 5 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:2099:6:vTaskEndScheduler 1 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:2110:6:vTaskSuspendAll 1 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:2194:12:xTaskResumeAll 11 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:2304:12:xTaskGetTickCount 1 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:2319:12:xTaskGetTickCountFromISR 1 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:2350:13:uxTaskGetNumberOfTasks 1 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:2358:7:pcTaskGetName 3 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:2609:12:xTaskCatchUpTicks 2 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:2707:12:xTaskIncrementTick 11 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:2989:6:vTaskSwitchContext 5 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3064:6:vTaskPlaceOnEventList 2 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3081:6:vTaskPlaceOnUnorderedEventList 3 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3107:7:vTaskPlaceOnEventListRestricted 3 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3138:12:xTaskRemoveFromEventList 4 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3206:6:vTaskRemoveFromUnorderedEventList 4 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3254:6:vTaskSetTimeOutState 2 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3266:6:vTaskInternalSetTimeOutState 1 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3274:12:xTaskCheckForTimeOut 7 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3337:6:vTaskMissedYield 1 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3392:8:prvIdleTask 2 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3607:13:prvInitialiseTaskLists 2 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3639:13:prvCheckTasksWaitingTermination 2 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3799:32:prvTaskCheckFreeStackSpace 2 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3859:14:uxTaskGetStackHighWaterMark 2 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3887:14:prvDeleteTCB 4 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3943:13:prvResetNextTaskUnblockTime 2 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3969:15:xTaskGetCurrentTaskHandle 1 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3986:13:xTaskGetSchedulerState 3 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:4014:13:xTaskPriorityInherit 7 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:4104:13:xTaskPriorityDisinherit 8 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:4184:7:vTaskPriorityDisinheritAfterTimeout 10 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:4602:12:uxTaskResetEventItemValue 1 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:4618:15:pvTaskIncrementMutexHeldCount 2 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:4635:11:ulTaskNotifyTake 5 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:4703:13:xTaskNotifyWait 5 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:4783:13:xTaskGenericNotify 13 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:4897:13:xTaskGenericNotifyFromISR 15 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:5026:7:vTaskNotifyGiveFromISR 7 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:5112:13:xTaskNotifyStateClear 3 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:5143:11:ulTaskNotifyValueClear 2 -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:5177:13:prvAddCurrentTaskToDelayedList 6 diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/tasks.d b/Debug/Middlewares/Third_Party/FreeRTOS/Source/tasks.d deleted file mode 100644 index 953067b..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/tasks.d +++ /dev/null @@ -1,26 +0,0 @@ -Middlewares/Third_Party/FreeRTOS/Source/tasks.o: \ - ../Middlewares/Third_Party/FreeRTOS/Source/tasks.c \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/stack_macros.h -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/stack_macros.h: diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/tasks.o b/Debug/Middlewares/Third_Party/FreeRTOS/Source/tasks.o deleted file mode 100644 index 6b9d868..0000000 Binary files a/Debug/Middlewares/Third_Party/FreeRTOS/Source/tasks.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/tasks.su b/Debug/Middlewares/Third_Party/FreeRTOS/Source/tasks.su deleted file mode 100644 index 570bd94..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/tasks.su +++ /dev/null @@ -1,56 +0,0 @@ -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:581:15:xTaskCreateStatic 64 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:733:13:xTaskCreate 56 static -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:824:13:prvInitialiseNewTask 40 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1077:13:prvAddNewTaskToReadyList 16 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1162:7:vTaskDelete 24 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1257:7:vTaskDelayUntil 48 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1341:7:vTaskDelay 24 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1478:14:uxTaskPriorityGet 24 static -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1500:14:uxTaskPriorityGetFromISR 40 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1540:7:vTaskPrioritySet 40 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1704:7:vTaskSuspend 24 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1805:20:prvTaskIsTaskSuspended 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1851:7:vTaskResume 24 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1905:13:xTaskResumeFromISR 48 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1975:6:vTaskStartScheduler 48 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:2099:6:vTaskEndScheduler 16 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:2110:6:vTaskSuspendAll 4 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:2194:12:xTaskResumeAll 24 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:2304:12:xTaskGetTickCount 16 static -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:2319:12:xTaskGetTickCountFromISR 16 static -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:2350:13:uxTaskGetNumberOfTasks 4 static -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:2358:7:pcTaskGetName 24 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:2609:12:xTaskCatchUpTicks 24 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:2707:12:xTaskIncrementTick 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:2989:6:vTaskSwitchContext 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3064:6:vTaskPlaceOnEventList 24 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3081:6:vTaskPlaceOnUnorderedEventList 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3107:7:vTaskPlaceOnEventListRestricted 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3138:12:xTaskRemoveFromEventList 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3206:6:vTaskRemoveFromUnorderedEventList 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3254:6:vTaskSetTimeOutState 24 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3266:6:vTaskInternalSetTimeOutState 16 static -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3274:12:xTaskCheckForTimeOut 40 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3337:6:vTaskMissedYield 4 static -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3392:8:prvIdleTask 16 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3607:13:prvInitialiseTaskLists 16 static -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3639:13:prvCheckTasksWaitingTermination 16 static -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3799:32:prvTaskCheckFreeStackSpace 24 static -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3859:14:uxTaskGetStackHighWaterMark 32 static -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3887:14:prvDeleteTCB 24 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3943:13:prvResetNextTaskUnblockTime 16 static -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3969:15:xTaskGetCurrentTaskHandle 16 static -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:3986:13:xTaskGetSchedulerState 16 static -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:4014:13:xTaskPriorityInherit 24 static -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:4104:13:xTaskPriorityDisinherit 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:4184:7:vTaskPriorityDisinheritAfterTimeout 40 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:4602:12:uxTaskResetEventItemValue 16 static -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:4618:15:pvTaskIncrementMutexHeldCount 4 static -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:4635:11:ulTaskNotifyTake 24 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:4703:13:xTaskNotifyWait 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:4783:13:xTaskGenericNotify 48 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:4897:13:xTaskGenericNotifyFromISR 64 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:5026:7:vTaskNotifyGiveFromISR 48 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:5112:13:xTaskNotifyStateClear 24 static -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:5143:11:ulTaskNotifyValueClear 24 static -../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:5177:13:prvAddCurrentTaskToDelayedList 24 static diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/timers.cyclo b/Debug/Middlewares/Third_Party/FreeRTOS/Source/timers.cyclo deleted file mode 100644 index c399a08..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/timers.cyclo +++ /dev/null @@ -1,23 +0,0 @@ -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:227:12:xTimerCreateTimerTask 4 -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:282:16:xTimerCreate 2 -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:309:16:xTimerCreateStatic 4 -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:349:13:prvInitialiseNewTimer 4 -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:381:12:xTimerGenericCommand 5 -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:424:14:xTimerGetTimerDaemonTaskHandle 2 -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:433:12:xTimerGetPeriod 2 -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:442:6:vTimerSetReloadMode 3 -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:462:13:uxTimerGetReloadMode 3 -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:487:12:xTimerGetExpiryTime 2 -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:498:14:pcTimerGetName 2 -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:507:13:prvProcessExpiredTimer 4 -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:548:8:prvTimerTask 1 -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:584:13:prvProcessTimerOrBlockTask 7 -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:644:19:prvGetNextExpireTime 3 -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:670:19:prvSampleTimeNow 2 -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:693:19:prvInsertTimerInActiveList 5 -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:734:13:prvProcessReceivedCommands 13 -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:882:13:prvSwitchTimerLists 5 -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:941:13:prvCheckForValidListAndQueue 3 -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:992:12:xTimerIsTimerActive 3 -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:1017:7:pvTimerGetTimerID 2 -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:1034:6:vTimerSetTimerID 2 diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/timers.d b/Debug/Middlewares/Third_Party/FreeRTOS/Source/timers.d deleted file mode 100644 index 221036f..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/timers.d +++ /dev/null @@ -1,26 +0,0 @@ -Middlewares/Third_Party/FreeRTOS/Source/timers.o: \ - ../Middlewares/Third_Party/FreeRTOS/Source/timers.c \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/timers.o b/Debug/Middlewares/Third_Party/FreeRTOS/Source/timers.o deleted file mode 100644 index 128f07a..0000000 Binary files a/Debug/Middlewares/Third_Party/FreeRTOS/Source/timers.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/FreeRTOS/Source/timers.su b/Debug/Middlewares/Third_Party/FreeRTOS/Source/timers.su deleted file mode 100644 index aef1688..0000000 --- a/Debug/Middlewares/Third_Party/FreeRTOS/Source/timers.su +++ /dev/null @@ -1,23 +0,0 @@ -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:227:12:xTimerCreateTimerTask 48 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:282:16:xTimerCreate 40 static -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:309:16:xTimerCreateStatic 48 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:349:13:prvInitialiseNewTimer 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:381:12:xTimerGenericCommand 48 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:424:14:xTimerGetTimerDaemonTaskHandle 16 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:433:12:xTimerGetPeriod 24 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:442:6:vTimerSetReloadMode 24 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:462:13:uxTimerGetReloadMode 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:487:12:xTimerGetExpiryTime 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:498:14:pcTimerGetName 24 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:507:13:prvProcessExpiredTimer 40 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:548:8:prvTimerTask 24 static -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:584:13:prvProcessTimerOrBlockTask 24 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:644:19:prvGetNextExpireTime 24 static -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:670:19:prvSampleTimeNow 24 static -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:693:19:prvInsertTimerInActiveList 32 static -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:734:13:prvProcessReceivedCommands 56 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:882:13:prvSwitchTimerLists 40 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:941:13:prvCheckForValidListAndQueue 16 static -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:992:12:xTimerIsTimerActive 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:1017:7:pvTimerGetTimerID 32 static,ignoring_inline_asm -../Middlewares/Third_Party/FreeRTOS/Source/timers.c:1034:6:vTimerSetTimerID 24 static,ignoring_inline_asm diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/api_lib.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/api/api_lib.cyclo deleted file mode 100644 index 0fb9b59..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/api/api_lib.cyclo +++ /dev/null @@ -1,28 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:118:1:netconn_apimsg 2 -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:149:1:netconn_new_with_proto_and_callback 7 -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:192:1:netconn_prepare_delete 3 -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:233:1:netconn_delete 3 -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:269:1:netconn_getaddr 4 -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:307:1:netconn_bind 3 -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:351:1:netconn_bind_if 2 -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:377:1:netconn_connect 3 -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:409:1:netconn_disconnect 2 -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:434:1:netconn_listen_with_backlog 2 -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:471:1:netconn_accept 11 -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:579:1:netconn_recv_data 17 -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:677:1:netconn_tcp_recvd_msg 3 -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:689:1:netconn_tcp_recvd 3 -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:703:1:netconn_recv_data_tcp 11 -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:782:1:netconn_recv_tcp_pbuf 3 -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:803:1:netconn_recv_tcp_pbuf_flags 3 -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:822:1:netconn_recv_udp_raw_netbuf 3 -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:842:1:netconn_recv_udp_raw_netbuf_flags 3 -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:860:1:netconn_recv 7 -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:922:1:netconn_sendto 3 -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:941:1:netconn_send 2 -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:974:1:netconn_write_partly 1 -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:997:1:netconn_write_vectors_partly 16 -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:1089:1:netconn_close_shutdown 2 -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:1125:1:netconn_close 1 -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:1139:1:netconn_err 2 -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:1163:1:netconn_shutdown 3 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/api_lib.d b/Debug/Middlewares/Third_Party/LwIP/src/api/api_lib.d deleted file mode 100644 index 509d35a..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/api/api_lib.d +++ /dev/null @@ -1,201 +0,0 @@ -Middlewares/Third_Party/LwIP/src/api/api_lib.o: \ - ../Middlewares/Third_Party/LwIP/src/api/api_lib.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/api.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h \ - ../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/raw.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/udp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/udp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/api_msg.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/igmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcpip_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcpip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/tcp.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/api.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h: -../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/raw.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/udp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/udp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/api_msg.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/igmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcpip_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcpip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/tcp.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/api_lib.o b/Debug/Middlewares/Third_Party/LwIP/src/api/api_lib.o deleted file mode 100644 index 8327e83..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/api/api_lib.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/api_lib.su b/Debug/Middlewares/Third_Party/LwIP/src/api/api_lib.su deleted file mode 100644 index 49ce174..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/api/api_lib.su +++ /dev/null @@ -1,28 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:118:1:netconn_apimsg 24 static -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:149:1:netconn_new_with_proto_and_callback 56 static -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:192:1:netconn_prepare_delete 56 static -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:233:1:netconn_delete 24 static -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:269:1:netconn_getaddr 64 static -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:307:1:netconn_bind 64 static -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:351:1:netconn_bind_if 56 static -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:377:1:netconn_connect 64 static -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:409:1:netconn_disconnect 56 static -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:434:1:netconn_listen_with_backlog 56 static -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:471:1:netconn_accept 32 static -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:579:1:netconn_recv_data 40 static -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:677:1:netconn_tcp_recvd_msg 24 static -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:689:1:netconn_tcp_recvd 56 static -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:703:1:netconn_recv_data_tcp 72 static -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:782:1:netconn_recv_tcp_pbuf 16 static -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:803:1:netconn_recv_tcp_pbuf_flags 24 static -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:822:1:netconn_recv_udp_raw_netbuf 16 static -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:842:1:netconn_recv_udp_raw_netbuf_flags 24 static -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:860:1:netconn_recv 32 static -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:922:1:netconn_sendto 24 static -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:941:1:netconn_send 56 static -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:974:1:netconn_write_partly 40 static -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:997:1:netconn_write_vectors_partly 80 static -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:1089:1:netconn_close_shutdown 56 static -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:1125:1:netconn_close 16 static -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:1139:1:netconn_err 24 static -../Middlewares/Third_Party/LwIP/src/api/api_lib.c:1163:1:netconn_shutdown 16 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/api_msg.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/api/api_msg.cyclo deleted file mode 100644 index 63862a1..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/api/api_msg.cyclo +++ /dev/null @@ -1,28 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:115:1:lwip_netconn_err_to_msg 6 -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:131:1:lwip_netconn_is_err_msg 5 -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:218:1:recv_udp 10 -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:293:1:recv_tcp 11 -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:357:1:poll_tcp 11 -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:398:1:sent_tcp 9 -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:432:1:err_tcp 15 -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:514:1:setup_tcp 1 -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:533:1:accept_function 12 -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:609:1:pcb_new 8 -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:680:1:lwip_netconn_do_newconn 2 -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:705:1:netconn_alloc 6 -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:794:1:netconn_free 4 -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:827:1:netconn_drain 9 -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:920:1:lwip_netconn_do_close_internal 36 -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:1113:1:lwip_netconn_do_delconn 19 -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:1216:1:lwip_netconn_do_bind 4 -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:1256:1:lwip_netconn_do_bind_if 5 -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:1301:1:lwip_netconn_do_connected 14 -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:1350:1:lwip_netconn_do_connect 11 -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:1425:1:lwip_netconn_do_disconnect 2 -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:1449:1:lwip_netconn_do_listen 10 -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:1532:1:lwip_netconn_do_send 5 -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:1589:1:lwip_netconn_do_recv 5 -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:1640:1:lwip_netconn_do_writemore 42 -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:1813:1:lwip_netconn_do_write 10 -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:1867:1:lwip_netconn_do_getaddr 11 -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:1934:1:lwip_netconn_do_close 12 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/api_msg.d b/Debug/Middlewares/Third_Party/LwIP/src/api/api_msg.d deleted file mode 100644 index ed06c05..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/api/api_msg.d +++ /dev/null @@ -1,201 +0,0 @@ -Middlewares/Third_Party/LwIP/src/api/api_msg.o: \ - ../Middlewares/Third_Party/LwIP/src/api/api_msg.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/api_msg.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h \ - ../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/igmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/api.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcpip_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcpip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/udp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/udp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/raw.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/dns.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mld6.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/api_msg.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h: -../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/igmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/api.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcpip_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcpip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/udp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/udp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/raw.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/dns.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mld6.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/api_msg.o b/Debug/Middlewares/Third_Party/LwIP/src/api/api_msg.o deleted file mode 100644 index 905f88c..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/api/api_msg.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/api_msg.su b/Debug/Middlewares/Third_Party/LwIP/src/api/api_msg.su deleted file mode 100644 index bd92c74..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/api/api_msg.su +++ /dev/null @@ -1,28 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:115:1:lwip_netconn_err_to_msg 16 static -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:131:1:lwip_netconn_is_err_msg 16 static -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:218:1:recv_udp 40 static -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:293:1:recv_tcp 40 static -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:357:1:poll_tcp 24 static -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:398:1:sent_tcp 32 static -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:432:1:err_tcp 40 static -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:514:1:setup_tcp 24 static -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:533:1:accept_function 48 static -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:609:1:pcb_new 32 static -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:680:1:lwip_netconn_do_newconn 24 static -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:705:1:netconn_alloc 32 static -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:794:1:netconn_free 16 static -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:827:1:netconn_drain 32 static -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:920:1:lwip_netconn_do_close_internal 32 static -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:1113:1:lwip_netconn_do_delconn 24 static -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:1216:1:lwip_netconn_do_bind 24 static -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:1256:1:lwip_netconn_do_bind_if 32 static -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:1301:1:lwip_netconn_do_connected 40 static -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:1350:1:lwip_netconn_do_connect 32 static -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:1425:1:lwip_netconn_do_disconnect 24 static -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:1449:1:lwip_netconn_do_listen 32 static -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:1532:1:lwip_netconn_do_send 24 static -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:1589:1:lwip_netconn_do_recv 32 static -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:1640:1:lwip_netconn_do_writemore 40 static -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:1813:1:lwip_netconn_do_write 24 static -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:1867:1:lwip_netconn_do_getaddr 24 static -../Middlewares/Third_Party/LwIP/src/api/api_msg.c:1934:1:lwip_netconn_do_close 24 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/err.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/api/err.cyclo deleted file mode 100644 index 197ab2c..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/api/err.cyclo +++ /dev/null @@ -1,2 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/api/err.c:69:1:err_to_errno 3 -../Middlewares/Third_Party/LwIP/src/api/err.c:107:1:lwip_strerr 3 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/err.d b/Debug/Middlewares/Third_Party/LwIP/src/api/err.d deleted file mode 100644 index f524fca..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/api/err.d +++ /dev/null @@ -1,137 +0,0 @@ -Middlewares/Third_Party/LwIP/src/api/err.o: \ - ../Middlewares/Third_Party/LwIP/src/api/err.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h \ - ../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/errno.h -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h: -../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/errno.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/err.o b/Debug/Middlewares/Third_Party/LwIP/src/api/err.o deleted file mode 100644 index ce912f5..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/api/err.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/err.su b/Debug/Middlewares/Third_Party/LwIP/src/api/err.su deleted file mode 100644 index f127e4f..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/api/err.su +++ /dev/null @@ -1,2 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/api/err.c:69:1:err_to_errno 16 static -../Middlewares/Third_Party/LwIP/src/api/err.c:107:1:lwip_strerr 16 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/if_api.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/api/if_api.cyclo deleted file mode 100644 index 6aee94c..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/api/if_api.cyclo +++ /dev/null @@ -1,2 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/api/if_api.c:61:1:lwip_if_indextoname 1 -../Middlewares/Third_Party/LwIP/src/api/if_api.c:86:1:lwip_if_nametoindex 1 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/if_api.d b/Debug/Middlewares/Third_Party/LwIP/src/api/if_api.d deleted file mode 100644 index 065ed83..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/api/if_api.d +++ /dev/null @@ -1,171 +0,0 @@ -Middlewares/Third_Party/LwIP/src/api/if_api.o: \ - ../Middlewares/Third_Party/LwIP/src/api/if_api.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/errno.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/if_api.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netifapi.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/sockets_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/sockets.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/inet.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h \ - ../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/errno.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/if_api.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netifapi.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/sockets_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/sockets.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/inet.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h: -../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/if_api.o b/Debug/Middlewares/Third_Party/LwIP/src/api/if_api.o deleted file mode 100644 index 955c147..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/api/if_api.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/if_api.su b/Debug/Middlewares/Third_Party/LwIP/src/api/if_api.su deleted file mode 100644 index 72be15e..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/api/if_api.su +++ /dev/null @@ -1,2 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/api/if_api.c:61:1:lwip_if_indextoname 16 static -../Middlewares/Third_Party/LwIP/src/api/if_api.c:86:1:lwip_if_nametoindex 16 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/netbuf.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/api/netbuf.cyclo deleted file mode 100644 index 8a651b9..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/api/netbuf.cyclo +++ /dev/null @@ -1,9 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/api/netbuf.c:63:9:netbuf_new 2 -../Middlewares/Third_Party/LwIP/src/api/netbuf.c:81:1:netbuf_delete 3 -../Middlewares/Third_Party/LwIP/src/api/netbuf.c:102:1:netbuf_alloc 5 -../Middlewares/Third_Party/LwIP/src/api/netbuf.c:127:1:netbuf_free 3 -../Middlewares/Third_Party/LwIP/src/api/netbuf.c:151:1:netbuf_ref 4 -../Middlewares/Third_Party/LwIP/src/api/netbuf.c:176:1:netbuf_chain 3 -../Middlewares/Third_Party/LwIP/src/api/netbuf.c:196:1:netbuf_data 5 -../Middlewares/Third_Party/LwIP/src/api/netbuf.c:222:1:netbuf_next 4 -../Middlewares/Third_Party/LwIP/src/api/netbuf.c:244:1:netbuf_first 2 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/netbuf.d b/Debug/Middlewares/Third_Party/LwIP/src/api/netbuf.d deleted file mode 100644 index d2ac743..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/api/netbuf.d +++ /dev/null @@ -1,121 +0,0 @@ -Middlewares/Third_Party/LwIP/src/api/netbuf.o: \ - ../Middlewares/Third_Party/LwIP/src/api/netbuf.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/netbuf.o b/Debug/Middlewares/Third_Party/LwIP/src/api/netbuf.o deleted file mode 100644 index 094241f..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/api/netbuf.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/netbuf.su b/Debug/Middlewares/Third_Party/LwIP/src/api/netbuf.su deleted file mode 100644 index 0a5bba8..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/api/netbuf.su +++ /dev/null @@ -1,9 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/api/netbuf.c:63:9:netbuf_new 16 static -../Middlewares/Third_Party/LwIP/src/api/netbuf.c:81:1:netbuf_delete 16 static -../Middlewares/Third_Party/LwIP/src/api/netbuf.c:102:1:netbuf_alloc 16 static -../Middlewares/Third_Party/LwIP/src/api/netbuf.c:127:1:netbuf_free 16 static -../Middlewares/Third_Party/LwIP/src/api/netbuf.c:151:1:netbuf_ref 24 static -../Middlewares/Third_Party/LwIP/src/api/netbuf.c:176:1:netbuf_chain 16 static -../Middlewares/Third_Party/LwIP/src/api/netbuf.c:196:1:netbuf_data 24 static -../Middlewares/Third_Party/LwIP/src/api/netbuf.c:222:1:netbuf_next 16 static -../Middlewares/Third_Party/LwIP/src/api/netbuf.c:244:1:netbuf_first 16 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/netdb.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/api/netdb.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/netdb.d b/Debug/Middlewares/Third_Party/LwIP/src/api/netdb.d deleted file mode 100644 index 6d739e2..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/api/netdb.d +++ /dev/null @@ -1,95 +0,0 @@ -Middlewares/Third_Party/LwIP/src/api/netdb.o: \ - ../Middlewares/Third_Party/LwIP/src/api/netdb.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netdb.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/lwip/netdb.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/netdb.o b/Debug/Middlewares/Third_Party/LwIP/src/api/netdb.o deleted file mode 100644 index e1de9fa..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/api/netdb.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/netdb.su b/Debug/Middlewares/Third_Party/LwIP/src/api/netdb.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/netifapi.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/api/netifapi.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/netifapi.d b/Debug/Middlewares/Third_Party/LwIP/src/api/netifapi.d deleted file mode 100644 index d226aaa..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/api/netifapi.d +++ /dev/null @@ -1,93 +0,0 @@ -Middlewares/Third_Party/LwIP/src/api/netifapi.o: \ - ../Middlewares/Third_Party/LwIP/src/api/netifapi.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/netifapi.o b/Debug/Middlewares/Third_Party/LwIP/src/api/netifapi.o deleted file mode 100644 index 8f9b56e..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/api/netifapi.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/netifapi.su b/Debug/Middlewares/Third_Party/LwIP/src/api/netifapi.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/sockets.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/api/sockets.cyclo deleted file mode 100644 index dcc74c8..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/api/sockets.cyclo +++ /dev/null @@ -1,54 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/api/sockets.c:320:1:lwip_socket_thread_init 1 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:327:1:lwip_socket_thread_cleanup 1 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:411:1:tryget_socket_unconn_nouse 3 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:422:1:lwip_socket_dbg_get_socket 1 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:429:1:tryget_socket_unconn 1 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:442:1:tryget_socket_unconn_locked 1 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:460:1:tryget_socket 3 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:479:1:get_socket 2 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:501:1:alloc_socket 6 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:548:1:free_socket_locked 1 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:572:1:free_socket_free_elements 4 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:594:1:free_socket 2 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:620:1:lwip_accept 21 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:718:1:lwip_bind 9 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:772:1:lwip_close 6 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:813:1:lwip_connect 11 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:881:1:lwip_listen 8 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:920:1:lwip_recv_tcp 22 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1023:1:lwip_sock_make_addr 6 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1056:1:lwip_recv_tcp_from 6 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1088:1:lwip_recvfrom_udp_raw 18 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1199:1:lwip_recvfrom 9 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1252:1:lwip_read 1 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1258:1:lwip_readv 1 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1275:1:lwip_recv 1 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1281:1:lwip_recvmsg 24 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1382:1:lwip_send 6 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1422:1:lwip_sendmsg 30 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1585:1:lwip_sendto 16 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1685:1:lwip_socket 8 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1746:1:lwip_write 1 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1752:1:lwip_writev 1 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1771:1:lwip_link_select_cb 2 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1795:1:lwip_unlink_select_cb 5 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1835:1:lwip_selscan 32 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1964:1:lwip_select 43 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:2193:1:lwip_pollscan 19 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:2319:1:lwip_poll 13 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:2438:1:lwip_poll_should_wake 8 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:2477:1:event_callback 15 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:2576:13:select_check_waiters 19 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:2655:1:lwip_shutdown 12 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:2700:1:lwip_getaddrname 6 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:2747:1:lwip_getpeername 1 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:2753:1:lwip_getsockname 1 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:2759:1:lwip_getsockopt 7 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:2859:1:lwip_sockopt_to_ipopt 5 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:2882:1:lwip_getsockopt_impl 55 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:3205:1:lwip_setsockopt 6 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:3303:1:lwip_setsockopt_impl 47 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:3743:1:lwip_ioctl 8 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:3836:1:lwip_fcntl 14 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:3919:1:lwip_inet_ntop 4 -../Middlewares/Third_Party/LwIP/src/api/sockets.c:3952:1:lwip_inet_pton 2 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/sockets.d b/Debug/Middlewares/Third_Party/LwIP/src/api/sockets.d deleted file mode 100644 index 09a8d26..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/api/sockets.d +++ /dev/null @@ -1,205 +0,0 @@ -Middlewares/Third_Party/LwIP/src/api/sockets.o: \ - ../Middlewares/Third_Party/LwIP/src/api/sockets.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/sockets.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/inet.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/errno.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/sockets_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h \ - ../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/api.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/igmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/raw.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/udp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/udp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcpip_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcpip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mld6.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/sockets.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/inet.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/errno.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/sockets_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h: -../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/api.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/igmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/raw.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/udp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/udp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcpip_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcpip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mld6.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/sockets.o b/Debug/Middlewares/Third_Party/LwIP/src/api/sockets.o deleted file mode 100644 index c9d80ee..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/api/sockets.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/sockets.su b/Debug/Middlewares/Third_Party/LwIP/src/api/sockets.su deleted file mode 100644 index 2ab408a..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/api/sockets.su +++ /dev/null @@ -1,54 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/api/sockets.c:320:1:lwip_socket_thread_init 4 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:327:1:lwip_socket_thread_cleanup 4 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:411:1:tryget_socket_unconn_nouse 24 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:422:1:lwip_socket_dbg_get_socket 16 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:429:1:tryget_socket_unconn 24 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:442:1:tryget_socket_unconn_locked 24 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:460:1:tryget_socket 24 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:479:1:get_socket 24 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:501:1:alloc_socket 24 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:548:1:free_socket_locked 24 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:572:1:free_socket_free_elements 24 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:594:1:free_socket 32 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:620:1:lwip_accept 112 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:718:1:lwip_bind 48 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:772:1:lwip_close 32 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:813:1:lwip_connect 48 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:881:1:lwip_listen 40 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:920:1:lwip_recv_tcp 56 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1023:1:lwip_sock_make_addr 56 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1056:1:lwip_recv_tcp_from 40 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1088:1:lwip_recvfrom_udp_raw 64 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1199:1:lwip_recvfrom 96 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1252:1:lwip_read 32 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1258:1:lwip_readv 56 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1275:1:lwip_recv 32 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1281:1:lwip_recvmsg 80 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1382:1:lwip_send 48 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1422:1:lwip_sendmsg 120 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1585:1:lwip_sendto 64 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1685:1:lwip_socket 32 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1746:1:lwip_write 24 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1752:1:lwip_writev 56 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1771:1:lwip_link_select_cb 16 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1795:1:lwip_unlink_select_cb 16 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1835:1:lwip_selscan 104 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:1964:1:lwip_select 136 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:2193:1:lwip_pollscan 56 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:2319:1:lwip_poll 72 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:2438:1:lwip_poll_should_wake 32 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:2477:1:event_callback 48 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:2576:13:select_check_waiters 40 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:2655:1:lwip_shutdown 48 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:2700:1:lwip_getaddrname 72 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:2747:1:lwip_getpeername 24 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:2753:1:lwip_getsockname 24 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:2759:1:lwip_getsockopt 48 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:2859:1:lwip_sockopt_to_ipopt 16 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:2882:1:lwip_getsockopt_impl 32 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:3205:1:lwip_setsockopt 48 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:3303:1:lwip_setsockopt_impl 40 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:3743:1:lwip_ioctl 40 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:3836:1:lwip_fcntl 56 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:3919:1:lwip_inet_ntop 32 static -../Middlewares/Third_Party/LwIP/src/api/sockets.c:3952:1:lwip_inet_pton 32 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/subdir.mk b/Debug/Middlewares/Third_Party/LwIP/src/api/subdir.mk deleted file mode 100644 index 0f411a6..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/api/subdir.mk +++ /dev/null @@ -1,51 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -# Toolchain: GNU Tools for STM32 (11.3.rel1) -################################################################################ - -# Add inputs and outputs from these tool invocations to the build variables -C_SRCS += \ -../Middlewares/Third_Party/LwIP/src/api/api_lib.c \ -../Middlewares/Third_Party/LwIP/src/api/api_msg.c \ -../Middlewares/Third_Party/LwIP/src/api/err.c \ -../Middlewares/Third_Party/LwIP/src/api/if_api.c \ -../Middlewares/Third_Party/LwIP/src/api/netbuf.c \ -../Middlewares/Third_Party/LwIP/src/api/netdb.c \ -../Middlewares/Third_Party/LwIP/src/api/netifapi.c \ -../Middlewares/Third_Party/LwIP/src/api/sockets.c \ -../Middlewares/Third_Party/LwIP/src/api/tcpip.c - -OBJS += \ -./Middlewares/Third_Party/LwIP/src/api/api_lib.o \ -./Middlewares/Third_Party/LwIP/src/api/api_msg.o \ -./Middlewares/Third_Party/LwIP/src/api/err.o \ -./Middlewares/Third_Party/LwIP/src/api/if_api.o \ -./Middlewares/Third_Party/LwIP/src/api/netbuf.o \ -./Middlewares/Third_Party/LwIP/src/api/netdb.o \ -./Middlewares/Third_Party/LwIP/src/api/netifapi.o \ -./Middlewares/Third_Party/LwIP/src/api/sockets.o \ -./Middlewares/Third_Party/LwIP/src/api/tcpip.o - -C_DEPS += \ -./Middlewares/Third_Party/LwIP/src/api/api_lib.d \ -./Middlewares/Third_Party/LwIP/src/api/api_msg.d \ -./Middlewares/Third_Party/LwIP/src/api/err.d \ -./Middlewares/Third_Party/LwIP/src/api/if_api.d \ -./Middlewares/Third_Party/LwIP/src/api/netbuf.d \ -./Middlewares/Third_Party/LwIP/src/api/netdb.d \ -./Middlewares/Third_Party/LwIP/src/api/netifapi.d \ -./Middlewares/Third_Party/LwIP/src/api/sockets.d \ -./Middlewares/Third_Party/LwIP/src/api/tcpip.d - - -# Each subdirectory must supply rules for building sources it contributes -Middlewares/Third_Party/LwIP/src/api/%.o Middlewares/Third_Party/LwIP/src/api/%.su Middlewares/Third_Party/LwIP/src/api/%.cyclo: ../Middlewares/Third_Party/LwIP/src/api/%.c Middlewares/Third_Party/LwIP/src/api/subdir.mk - arm-none-eabi-gcc "$<" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DDATA_IN_D2_SRAM -DUSE_HAL_DRIVER -DSTM32H723xx -c -I../Core/Inc -I../FATFS/Target -I../FATFS/App -I../LWIP/App -I../LWIP/Target -I../Middlewares/Third_Party/LwIP/src/include -I../Middlewares/Third_Party/LwIP/system -I../Drivers/STM32H7xx_HAL_Driver/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/Third_Party/FatFs/src -I../Drivers/BSP/Components/lan8742 -I../Middlewares/Third_Party/LwIP/src/include/netif/ppp -I../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../Middlewares/Third_Party/LwIP/src/include/lwip -I../Middlewares/Third_Party/LwIP/src/include/lwip/apps -I../Middlewares/Third_Party/LwIP/src/include/lwip/priv -I../Middlewares/Third_Party/LwIP/src/include/lwip/prot -I../Middlewares/Third_Party/LwIP/src/include/netif -I../Middlewares/Third_Party/LwIP/src/include/compat/posix -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/arpa -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/net -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/sys -I../Middlewares/Third_Party/LwIP/src/include/compat/stdc -I../Middlewares/Third_Party/LwIP/system/arch -I../Drivers/CMSIS/Include -I"C:/_NoSleep/STM32/TBD_TaxiBoard/LWFTPC" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "$@" - -clean: clean-Middlewares-2f-Third_Party-2f-LwIP-2f-src-2f-api - -clean-Middlewares-2f-Third_Party-2f-LwIP-2f-src-2f-api: - -$(RM) ./Middlewares/Third_Party/LwIP/src/api/api_lib.cyclo ./Middlewares/Third_Party/LwIP/src/api/api_lib.d ./Middlewares/Third_Party/LwIP/src/api/api_lib.o ./Middlewares/Third_Party/LwIP/src/api/api_lib.su ./Middlewares/Third_Party/LwIP/src/api/api_msg.cyclo ./Middlewares/Third_Party/LwIP/src/api/api_msg.d ./Middlewares/Third_Party/LwIP/src/api/api_msg.o ./Middlewares/Third_Party/LwIP/src/api/api_msg.su ./Middlewares/Third_Party/LwIP/src/api/err.cyclo ./Middlewares/Third_Party/LwIP/src/api/err.d ./Middlewares/Third_Party/LwIP/src/api/err.o ./Middlewares/Third_Party/LwIP/src/api/err.su ./Middlewares/Third_Party/LwIP/src/api/if_api.cyclo ./Middlewares/Third_Party/LwIP/src/api/if_api.d ./Middlewares/Third_Party/LwIP/src/api/if_api.o ./Middlewares/Third_Party/LwIP/src/api/if_api.su ./Middlewares/Third_Party/LwIP/src/api/netbuf.cyclo ./Middlewares/Third_Party/LwIP/src/api/netbuf.d ./Middlewares/Third_Party/LwIP/src/api/netbuf.o ./Middlewares/Third_Party/LwIP/src/api/netbuf.su ./Middlewares/Third_Party/LwIP/src/api/netdb.cyclo ./Middlewares/Third_Party/LwIP/src/api/netdb.d ./Middlewares/Third_Party/LwIP/src/api/netdb.o ./Middlewares/Third_Party/LwIP/src/api/netdb.su ./Middlewares/Third_Party/LwIP/src/api/netifapi.cyclo ./Middlewares/Third_Party/LwIP/src/api/netifapi.d ./Middlewares/Third_Party/LwIP/src/api/netifapi.o ./Middlewares/Third_Party/LwIP/src/api/netifapi.su ./Middlewares/Third_Party/LwIP/src/api/sockets.cyclo ./Middlewares/Third_Party/LwIP/src/api/sockets.d ./Middlewares/Third_Party/LwIP/src/api/sockets.o ./Middlewares/Third_Party/LwIP/src/api/sockets.su ./Middlewares/Third_Party/LwIP/src/api/tcpip.cyclo ./Middlewares/Third_Party/LwIP/src/api/tcpip.d ./Middlewares/Third_Party/LwIP/src/api/tcpip.o ./Middlewares/Third_Party/LwIP/src/api/tcpip.su - -.PHONY: clean-Middlewares-2f-Third_Party-2f-LwIP-2f-src-2f-api - diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/tcpip.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/api/tcpip.cyclo deleted file mode 100644 index 9501b81..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/api/tcpip.cyclo +++ /dev/null @@ -1,17 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:84:1:tcpip_timeouts_mbox_fetch 4 -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:127:1:tcpip_thread 3 -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:156:1:tcpip_thread_handle_msg 6 -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:240:1:tcpip_inpkt 4 -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:283:1:tcpip_input 2 -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:309:1:tcpip_callback 3 -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:345:1:tcpip_try_callback 4 -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:437:1:tcpip_send_msg_wait_sem 1 -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:473:1:tcpip_api_call 1 -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:531:1:tcpip_callbackmsg_new 2 -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:552:1:tcpip_callbackmsg_delete 1 -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:567:1:tcpip_callbackmsg_trycallback 2 -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:586:1:tcpip_callbackmsg_trycallback_fromisr 2 -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:602:1:tcpip_init 3 -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:627:1:pbuf_free_int 1 -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:640:1:pbuf_free_callback 1 -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:653:1:mem_free_callback 1 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/tcpip.d b/Debug/Middlewares/Third_Party/LwIP/src/api/tcpip.d deleted file mode 100644 index 22eab0d..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/api/tcpip.d +++ /dev/null @@ -1,187 +0,0 @@ -Middlewares/Third_Party/LwIP/src/api/tcpip.o: \ - ../Middlewares/Third_Party/LwIP/src/api/tcpip.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcpip_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcpip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h \ - ../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/init.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/etharp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ethernet.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ieee.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/etharp.h \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ethernet.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcpip_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcpip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h: -../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/init.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/etharp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ethernet.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ieee.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/etharp.h: -../Middlewares/Third_Party/LwIP/src/include/netif/ethernet.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/tcpip.o b/Debug/Middlewares/Third_Party/LwIP/src/api/tcpip.o deleted file mode 100644 index cb68a47..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/api/tcpip.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/api/tcpip.su b/Debug/Middlewares/Third_Party/LwIP/src/api/tcpip.su deleted file mode 100644 index 01701b0..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/api/tcpip.su +++ /dev/null @@ -1,17 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:84:1:tcpip_timeouts_mbox_fetch 24 static -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:127:1:tcpip_thread 24 static -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:156:1:tcpip_thread_handle_msg 16 static -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:240:1:tcpip_inpkt 32 static -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:283:1:tcpip_input 16 static -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:309:1:tcpip_callback 24 static -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:345:1:tcpip_try_callback 24 static -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:437:1:tcpip_send_msg_wait_sem 24 static -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:473:1:tcpip_api_call 24 static -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:531:1:tcpip_callbackmsg_new 24 static -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:552:1:tcpip_callbackmsg_delete 16 static -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:567:1:tcpip_callbackmsg_trycallback 16 static -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:586:1:tcpip_callbackmsg_trycallback_fromisr 16 static -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:602:1:tcpip_init 24 static -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:627:1:pbuf_free_int 24 static -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:640:1:pbuf_free_callback 16 static -../Middlewares/Third_Party/LwIP/src/api/tcpip.c:653:1:mem_free_callback 16 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.cyclo deleted file mode 100644 index f56fde8..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.cyclo +++ /dev/null @@ -1,39 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:153:1:mqtt_msg_type_to_str 2 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:170:1:msg_generate_packet_id 2 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:184:1:mqtt_ringbuf_put 2 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:195:1:mqtt_ringbuf_get_ptr 1 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:201:1:mqtt_ringbuf_advance_get_idx 3 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:213:1:mqtt_ringbuf_len 2 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:234:1:mqtt_output_send 13 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:287:1:mqtt_create_request 4 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:313:1:mqtt_append_request 5 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:342:1:mqtt_delete_request 2 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:356:1:mqtt_take_request 7 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:391:1:mqtt_request_time_elapsed 6 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:420:1:mqtt_clear_requests 3 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:436:1:mqtt_init_requests 3 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:451:1:mqtt_output_append_u8 1 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:457:6:mqtt_output_append_u16 1 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:464:1:mqtt_output_append_buf 2 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:473:1:mqtt_output_append_string 2 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:494:1:mqtt_output_append_fixed_header 3 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:514:1:mqtt_output_check_space 3 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:537:1:mqtt_close 6 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:576:1:mqtt_cyclic_timer 10 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:635:1:pub_ack_rec_rel_response 2 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:656:1:mqtt_incomming_suback 3 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:672:1:mqtt_message_received 38 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:839:1:mqtt_parse_incoming 14 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:932:1:mqtt_tcp_recv_cb 7 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:976:1:mqtt_tcp_sent_cb 4 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:1009:1:mqtt_tcp_err_cb 2 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:1027:1:mqtt_tcp_poll_cb 2 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:1044:1:mqtt_tcp_connect_cb 2 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:1097:1:mqtt_publish 12 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:1173:1:mqtt_sub_unsub 11 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:1238:1:mqtt_set_inpub_callback 2 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:1254:1:mqtt_client_new 1 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:1266:1:mqtt_client_free 1 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:1283:1:mqtt_client_connect 30 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:1437:1:mqtt_disconnect 3 -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:1456:1:mqtt_client_is_connected 2 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.d b/Debug/Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.d deleted file mode 100644 index f032221..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.d +++ /dev/null @@ -1,193 +0,0 @@ -Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o: \ - ../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/apps/mqtt.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/apps/mqtt_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/iana.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/apps/mqtt_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/altcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h \ - ../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/altcp_tcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/altcp_tls.h -../Middlewares/Third_Party/LwIP/src/include/lwip/apps/mqtt.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/apps/mqtt_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/iana.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/apps/mqtt_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/altcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h: -../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/altcp_tcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/altcp_tls.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o b/Debug/Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o deleted file mode 100644 index d2ace03..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.su b/Debug/Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.su deleted file mode 100644 index 837ac47..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.su +++ /dev/null @@ -1,39 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:153:1:mqtt_msg_type_to_str 16 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:170:1:msg_generate_packet_id 16 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:184:1:mqtt_ringbuf_put 16 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:195:1:mqtt_ringbuf_get_ptr 16 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:201:1:mqtt_ringbuf_advance_get_idx 16 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:213:1:mqtt_ringbuf_len 24 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:234:1:mqtt_output_send 32 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:287:1:mqtt_create_request 32 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:313:1:mqtt_append_request 32 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:342:1:mqtt_delete_request 16 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:356:1:mqtt_take_request 24 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:391:1:mqtt_request_time_elapsed 24 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:420:1:mqtt_clear_requests 24 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:436:1:mqtt_init_requests 24 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:451:1:mqtt_output_append_u8 16 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:457:6:mqtt_output_append_u16 16 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:464:1:mqtt_output_append_buf 32 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:473:1:mqtt_output_append_string 32 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:494:1:mqtt_output_append_fixed_header 16 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:514:1:mqtt_output_check_space 32 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:537:1:mqtt_close 24 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:576:1:mqtt_cyclic_timer 32 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:635:1:pub_ack_rec_rel_response 32 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:656:1:mqtt_incomming_suback 16 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:672:1:mqtt_message_received 72 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:839:1:mqtt_parse_incoming 40 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:932:1:mqtt_tcp_recv_cb 32 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:976:1:mqtt_tcp_sent_cb 32 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:1009:1:mqtt_tcp_err_cb 24 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:1027:1:mqtt_tcp_poll_cb 24 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:1044:1:mqtt_tcp_connect_cb 32 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:1097:1:mqtt_publish 56 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:1173:1:mqtt_sub_unsub 56 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:1238:1:mqtt_set_inpub_callback 24 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:1254:1:mqtt_client_new 8 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:1266:1:mqtt_client_free 16 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:1283:1:mqtt_client_connect 56 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:1437:1:mqtt_disconnect 16 static -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c:1456:1:mqtt_client_is_connected 16 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/apps/mqtt/subdir.mk b/Debug/Middlewares/Third_Party/LwIP/src/apps/mqtt/subdir.mk deleted file mode 100644 index b2c62ce..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/apps/mqtt/subdir.mk +++ /dev/null @@ -1,27 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -# Toolchain: GNU Tools for STM32 (11.3.rel1) -################################################################################ - -# Add inputs and outputs from these tool invocations to the build variables -C_SRCS += \ -../Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c - -OBJS += \ -./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - -C_DEPS += \ -./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.d - - -# Each subdirectory must supply rules for building sources it contributes -Middlewares/Third_Party/LwIP/src/apps/mqtt/%.o Middlewares/Third_Party/LwIP/src/apps/mqtt/%.su Middlewares/Third_Party/LwIP/src/apps/mqtt/%.cyclo: ../Middlewares/Third_Party/LwIP/src/apps/mqtt/%.c Middlewares/Third_Party/LwIP/src/apps/mqtt/subdir.mk - arm-none-eabi-gcc "$<" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DDATA_IN_D2_SRAM -DUSE_HAL_DRIVER -DSTM32H723xx -c -I../Core/Inc -I../FATFS/Target -I../FATFS/App -I../LWIP/App -I../LWIP/Target -I../Middlewares/Third_Party/LwIP/src/include -I../Middlewares/Third_Party/LwIP/system -I../Drivers/STM32H7xx_HAL_Driver/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/Third_Party/FatFs/src -I../Drivers/BSP/Components/lan8742 -I../Middlewares/Third_Party/LwIP/src/include/netif/ppp -I../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../Middlewares/Third_Party/LwIP/src/include/lwip -I../Middlewares/Third_Party/LwIP/src/include/lwip/apps -I../Middlewares/Third_Party/LwIP/src/include/lwip/priv -I../Middlewares/Third_Party/LwIP/src/include/lwip/prot -I../Middlewares/Third_Party/LwIP/src/include/netif -I../Middlewares/Third_Party/LwIP/src/include/compat/posix -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/arpa -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/net -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/sys -I../Middlewares/Third_Party/LwIP/src/include/compat/stdc -I../Middlewares/Third_Party/LwIP/system/arch -I../Drivers/CMSIS/Include -I"C:/_NoSleep/STM32/TBD_TaxiBoard/LWFTPC" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "$@" - -clean: clean-Middlewares-2f-Third_Party-2f-LwIP-2f-src-2f-apps-2f-mqtt - -clean-Middlewares-2f-Third_Party-2f-LwIP-2f-src-2f-apps-2f-mqtt: - -$(RM) ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.cyclo ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.d ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.su - -.PHONY: clean-Middlewares-2f-Third_Party-2f-LwIP-2f-src-2f-apps-2f-mqtt - diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/altcp.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/altcp.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/altcp.d b/Debug/Middlewares/Third_Party/LwIP/src/core/altcp.d deleted file mode 100644 index 6eca718..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/altcp.d +++ /dev/null @@ -1,93 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/altcp.o: \ - ../Middlewares/Third_Party/LwIP/src/core/altcp.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/altcp.o b/Debug/Middlewares/Third_Party/LwIP/src/core/altcp.o deleted file mode 100644 index aa043d3..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/altcp.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/altcp.su b/Debug/Middlewares/Third_Party/LwIP/src/core/altcp.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/altcp_alloc.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/altcp_alloc.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/altcp_alloc.d b/Debug/Middlewares/Third_Party/LwIP/src/core/altcp_alloc.d deleted file mode 100644 index 97cca27..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/altcp_alloc.d +++ /dev/null @@ -1,93 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o: \ - ../Middlewares/Third_Party/LwIP/src/core/altcp_alloc.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o b/Debug/Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o deleted file mode 100644 index 9518712..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/altcp_alloc.su b/Debug/Middlewares/Third_Party/LwIP/src/core/altcp_alloc.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/altcp_tcp.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/altcp_tcp.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/altcp_tcp.d b/Debug/Middlewares/Third_Party/LwIP/src/core/altcp_tcp.d deleted file mode 100644 index 05f92ac..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/altcp_tcp.d +++ /dev/null @@ -1,93 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o: \ - ../Middlewares/Third_Party/LwIP/src/core/altcp_tcp.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o b/Debug/Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o deleted file mode 100644 index 310de09..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/altcp_tcp.su b/Debug/Middlewares/Third_Party/LwIP/src/core/altcp_tcp.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/def.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/def.cyclo deleted file mode 100644 index 850ccb0..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/def.cyclo +++ /dev/null @@ -1,6 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/def.c:76:1:lwip_htons 1 -../Middlewares/Third_Party/LwIP/src/core/def.c:90:1:lwip_htonl 1 -../Middlewares/Third_Party/LwIP/src/core/def.c:105:1:lwip_strnstr 6 -../Middlewares/Third_Party/LwIP/src/core/def.c:128:1:lwip_stricmp 6 -../Middlewares/Third_Party/LwIP/src/core/def.c:163:1:lwip_strnicmp 7 -../Middlewares/Third_Party/LwIP/src/core/def.c:199:1:lwip_itoa 8 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/def.d b/Debug/Middlewares/Third_Party/LwIP/src/core/def.d deleted file mode 100644 index 5ffd1b0..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/def.d +++ /dev/null @@ -1,95 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/def.o: \ - ../Middlewares/Third_Party/LwIP/src/core/def.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/def.o b/Debug/Middlewares/Third_Party/LwIP/src/core/def.o deleted file mode 100644 index 4129c2f..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/def.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/def.su b/Debug/Middlewares/Third_Party/LwIP/src/core/def.su deleted file mode 100644 index ddb6a0a..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/def.su +++ /dev/null @@ -1,6 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/def.c:76:1:lwip_htons 16 static -../Middlewares/Third_Party/LwIP/src/core/def.c:90:1:lwip_htonl 16 static -../Middlewares/Third_Party/LwIP/src/core/def.c:105:1:lwip_strnstr 32 static -../Middlewares/Third_Party/LwIP/src/core/def.c:128:1:lwip_stricmp 24 static -../Middlewares/Third_Party/LwIP/src/core/def.c:163:1:lwip_strnicmp 32 static -../Middlewares/Third_Party/LwIP/src/core/def.c:199:1:lwip_itoa 40 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/dns.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/dns.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/dns.d b/Debug/Middlewares/Third_Party/LwIP/src/core/dns.d deleted file mode 100644 index 9b0f27f..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/dns.d +++ /dev/null @@ -1,93 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/dns.o: \ - ../Middlewares/Third_Party/LwIP/src/core/dns.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/dns.o b/Debug/Middlewares/Third_Party/LwIP/src/core/dns.o deleted file mode 100644 index 6057fff..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/dns.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/dns.su b/Debug/Middlewares/Third_Party/LwIP/src/core/dns.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/inet_chksum.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/inet_chksum.cyclo deleted file mode 100644 index f1af66f..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/inet_chksum.cyclo +++ /dev/null @@ -1,9 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/inet_chksum.c:133:1:lwip_standard_chksum 6 -../Middlewares/Third_Party/LwIP/src/core/inet_chksum.c:260:1:inet_cksum_pseudo_base 4 -../Middlewares/Third_Party/LwIP/src/core/inet_chksum.c:310:1:inet_chksum_pseudo 1 -../Middlewares/Third_Party/LwIP/src/core/inet_chksum.c:379:1:ip_chksum_pseudo 1 -../Middlewares/Third_Party/LwIP/src/core/inet_chksum.c:399:1:inet_cksum_pseudo_partial_base 7 -../Middlewares/Third_Party/LwIP/src/core/inet_chksum.c:456:1:inet_chksum_pseudo_partial 1 -../Middlewares/Third_Party/LwIP/src/core/inet_chksum.c:526:1:ip_chksum_pseudo_partial 1 -../Middlewares/Third_Party/LwIP/src/core/inet_chksum.c:555:1:inet_chksum 1 -../Middlewares/Third_Party/LwIP/src/core/inet_chksum.c:568:1:inet_chksum_pbuf 4 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/inet_chksum.d b/Debug/Middlewares/Third_Party/LwIP/src/core/inet_chksum.d deleted file mode 100644 index 5926c43..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/inet_chksum.d +++ /dev/null @@ -1,109 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/inet_chksum.o: \ - ../Middlewares/Third_Party/LwIP/src/core/inet_chksum.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/inet_chksum.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/inet_chksum.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/inet_chksum.o b/Debug/Middlewares/Third_Party/LwIP/src/core/inet_chksum.o deleted file mode 100644 index 5304413..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/inet_chksum.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/inet_chksum.su b/Debug/Middlewares/Third_Party/LwIP/src/core/inet_chksum.su deleted file mode 100644 index f49ae34..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/inet_chksum.su +++ /dev/null @@ -1,9 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/inet_chksum.c:133:1:lwip_standard_chksum 40 static -../Middlewares/Third_Party/LwIP/src/core/inet_chksum.c:260:1:inet_cksum_pseudo_base 32 static -../Middlewares/Third_Party/LwIP/src/core/inet_chksum.c:310:1:inet_chksum_pseudo 32 static -../Middlewares/Third_Party/LwIP/src/core/inet_chksum.c:379:1:ip_chksum_pseudo 32 static -../Middlewares/Third_Party/LwIP/src/core/inet_chksum.c:399:1:inet_cksum_pseudo_partial_base 40 static -../Middlewares/Third_Party/LwIP/src/core/inet_chksum.c:456:1:inet_chksum_pseudo_partial 40 static -../Middlewares/Third_Party/LwIP/src/core/inet_chksum.c:526:1:ip_chksum_pseudo_partial 32 static -../Middlewares/Third_Party/LwIP/src/core/inet_chksum.c:555:1:inet_chksum 16 static -../Middlewares/Third_Party/LwIP/src/core/inet_chksum.c:568:1:inet_chksum_pbuf 32 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/init.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/init.cyclo deleted file mode 100644 index ab7904d..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/init.cyclo +++ /dev/null @@ -1 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/init.c:332:1:lwip_init 1 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/init.d b/Debug/Middlewares/Third_Party/LwIP/src/core/init.d deleted file mode 100644 index 53532ca..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/init.d +++ /dev/null @@ -1,221 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/init.o: \ - ../Middlewares/Third_Party/LwIP/src/core/init.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/init.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/sockets.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/inet.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/errno.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/raw.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/udp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/udp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/tcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/igmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/dns.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/etharp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ethernet.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ieee.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/etharp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/nd6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mld6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/api.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_impl.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/init.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/sockets.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/inet.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/errno.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/raw.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/udp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/udp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/tcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/igmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/dns.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/etharp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ethernet.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ieee.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/etharp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/nd6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mld6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/api.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netbuf.h: -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h: -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_impl.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/init.o b/Debug/Middlewares/Third_Party/LwIP/src/core/init.o deleted file mode 100644 index 18b3377..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/init.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/init.su b/Debug/Middlewares/Third_Party/LwIP/src/core/init.su deleted file mode 100644 index 2da7773..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/init.su +++ /dev/null @@ -1 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/init.c:332:1:lwip_init 16 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ip.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/ip.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ip.d b/Debug/Middlewares/Third_Party/LwIP/src/core/ip.d deleted file mode 100644 index 9bcb661..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ip.d +++ /dev/null @@ -1,131 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/ip.o: \ - ../Middlewares/Third_Party/LwIP/src/core/ip.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ip.o b/Debug/Middlewares/Third_Party/LwIP/src/core/ip.o deleted file mode 100644 index ecce88b..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/ip.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ip.su b/Debug/Middlewares/Third_Party/LwIP/src/core/ip.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.d b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.d deleted file mode 100644 index 6e48ff1..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.d +++ /dev/null @@ -1,93 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o: \ - ../Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o deleted file mode 100644 index 8a8a190..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.su b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.d b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.d deleted file mode 100644 index 8eb0266..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.d +++ /dev/null @@ -1,93 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o: \ - ../Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o deleted file mode 100644 index f38dd04..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.su b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.cyclo deleted file mode 100644 index 785b548..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.cyclo +++ /dev/null @@ -1,14 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c:168:1:etharp_free_entry 2 -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c:197:1:etharp_tmr 9 -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c:256:1:etharp_find_entry 29 -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c:422:1:etharp_update_arp_entry 8 -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c:559:1:etharp_cleanup_netif 4 -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c:583:1:etharp_find_addr 5 -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c:612:1:etharp_get_entry 6 -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c:641:1:etharp_input 11 -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c:748:1:etharp_output_to_arp_index 7 -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c:791:1:etharp_output 16 -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c:933:1:etharp_query 23 -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c:1101:1:etharp_raw 5 -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c:1181:1:etharp_request_dst 1 -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c:1198:1:etharp_request 1 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.d b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.d deleted file mode 100644 index 9f00bdb..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.d +++ /dev/null @@ -1,143 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o: \ - ../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/etharp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ethernet.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ieee.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/etharp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/snmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/dhcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/autoip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/iana.h \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ethernet.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/etharp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ethernet.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ieee.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/etharp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/snmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/dhcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/autoip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/iana.h: -../Middlewares/Third_Party/LwIP/src/include/netif/ethernet.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o deleted file mode 100644 index 8a23fe0..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.su b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.su deleted file mode 100644 index 1528cfc..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.su +++ /dev/null @@ -1,14 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c:168:1:etharp_free_entry 16 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c:197:1:etharp_tmr 16 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c:256:1:etharp_find_entry 48 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c:422:1:etharp_update_arp_entry 40 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c:559:1:etharp_cleanup_netif 24 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c:583:1:etharp_find_addr 32 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c:612:1:etharp_get_entry 24 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c:641:1:etharp_input 56 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c:748:1:etharp_output_to_arp_index 32 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c:791:1:etharp_output 48 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c:933:1:etharp_query 56 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c:1101:1:etharp_raw 48 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c:1181:1:etharp_request_dst 40 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c:1198:1:etharp_request 16 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.cyclo deleted file mode 100644 index 509fac0..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.cyclo +++ /dev/null @@ -1,4 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.c:80:1:icmp_input 18 -../Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.c:308:1:icmp_dest_unreach 1 -../Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.c:323:1:icmp_time_exceeded 1 -../Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.c:340:1:icmp_send_response 4 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.d b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.d deleted file mode 100644 index ccfdc38..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.d +++ /dev/null @@ -1,137 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o: \ - ../Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/inet_chksum.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/inet_chksum.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o deleted file mode 100644 index 294e660..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.su b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.su deleted file mode 100644 index ff5baf3..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.su +++ /dev/null @@ -1,4 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.c:80:1:icmp_input 64 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.c:308:1:icmp_dest_unreach 16 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.c:323:1:icmp_time_exceeded 16 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.c:340:1:icmp_send_response 56 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.d b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.d deleted file mode 100644 index 1e92176..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.d +++ /dev/null @@ -1,93 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o: \ - ../Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o deleted file mode 100644 index 35945a1..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.su b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.cyclo deleted file mode 100644 index b989d17..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.cyclo +++ /dev/null @@ -1,6 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.c:152:1:ip4_route 13 -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.c:374:1:ip4_input_accept 5 -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.c:426:1:ip4_input 25 -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.c:787:1:ip4_output_if 4 -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.c:827:1:ip4_output_if_src 9 -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.c:1028:1:ip4_output 3 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.d b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.d deleted file mode 100644 index dc6d855..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.d +++ /dev/null @@ -1,159 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o: \ - ../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_frag.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/inet_chksum.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/igmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/raw_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/udp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/udp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/tcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/autoip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/iana.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_frag.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/inet_chksum.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/igmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/raw_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/udp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/udp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/tcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/autoip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/iana.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o deleted file mode 100644 index 370f5a0..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.su b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.su deleted file mode 100644 index 1b750df..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.su +++ /dev/null @@ -1,6 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.c:152:1:ip4_route 24 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.c:374:1:ip4_input_accept 16 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.c:426:1:ip4_input 32 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.c:787:1:ip4_output_if 48 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.c:827:1:ip4_output_if_src 40 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.c:1028:1:ip4_output 48 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.cyclo deleted file mode 100644 index 58c5231..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.cyclo +++ /dev/null @@ -1,6 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.c:58:1:ip4_addr_isbroadcast_u32 7 -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.c:93:1:ip4_addr_netmask_valid 5 -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.c:123:1:ipaddr_addr 2 -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.c:145:1:ip4addr_aton 28 -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.c:267:1:ip4addr_ntoa 1 -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.c:283:1:ip4addr_ntoa_r 6 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.d b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.d deleted file mode 100644 index fb5be65..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.d +++ /dev/null @@ -1,121 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o: \ - ../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o deleted file mode 100644 index f235164..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.su b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.su deleted file mode 100644 index c8832bb..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.su +++ /dev/null @@ -1,6 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.c:58:1:ip4_addr_isbroadcast_u32 24 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.c:93:1:ip4_addr_netmask_valid 24 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.c:123:1:ipaddr_addr 24 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.c:145:1:ip4addr_aton 48 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.c:267:1:ip4addr_ntoa 16 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.c:283:1:ip4addr_ntoa_r 56 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.cyclo deleted file mode 100644 index b6d3020..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.cyclo +++ /dev/null @@ -1,11 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.c:128:1:ip_reass_tmr 3 -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.c:164:1:ip_reass_free_complete_datagram 9 -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.c:227:1:ip_reass_remove_oldest_datagram 11 -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.c:278:1:ip_reass_enqueue_new_datagram 4 -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.c:317:1:ip_reass_dequeue_datagram 3 -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.c:344:1:ip_reass_chain_frag_into_datagram_and_validate 30 -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.c:503:1:ip4_reass 28 -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.c:699:1:ip_frag_alloc_pbuf_custom_ref 1 -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.c:706:1:ip_frag_free_pbuf_custom_ref 2 -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.c:715:1:ipfrag_free_pbuf_custom 4 -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.c:740:1:ip4_frag 15 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.d b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.d deleted file mode 100644 index 06b2d04..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.d +++ /dev/null @@ -1,139 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o: \ - ../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_frag.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/inet_chksum.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_frag.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/inet_chksum.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o deleted file mode 100644 index fa9a39f..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.su b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.su deleted file mode 100644 index e7ecbae..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.su +++ /dev/null @@ -1,11 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.c:128:1:ip_reass_tmr 24 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.c:164:1:ip_reass_free_complete_datagram 40 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.c:227:1:ip_reass_remove_oldest_datagram 48 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.c:278:1:ip_reass_enqueue_new_datagram 24 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.c:317:1:ip_reass_dequeue_datagram 16 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.c:344:1:ip_reass_chain_frag_into_datagram_and_validate 56 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.c:503:1:ip4_reass 64 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.c:699:1:ip_frag_alloc_pbuf_custom_ref 8 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.c:706:1:ip_frag_free_pbuf_custom_ref 16 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.c:715:1:ipfrag_free_pbuf_custom 24 static -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.c:740:1:ip4_frag 88 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/subdir.mk b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/subdir.mk deleted file mode 100644 index 34d97f2..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv4/subdir.mk +++ /dev/null @@ -1,48 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -# Toolchain: GNU Tools for STM32 (11.3.rel1) -################################################################################ - -# Add inputs and outputs from these tool invocations to the build variables -C_SRCS += \ -../Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.c \ -../Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.c \ -../Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c \ -../Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.c \ -../Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.c \ -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.c \ -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.c \ -../Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.c - -OBJS += \ -./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o \ -./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o \ -./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o \ -./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o \ -./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o \ -./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o \ -./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o \ -./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - -C_DEPS += \ -./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.d \ -./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.d \ -./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.d \ -./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.d \ -./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.d \ -./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.d \ -./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.d \ -./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.d - - -# Each subdirectory must supply rules for building sources it contributes -Middlewares/Third_Party/LwIP/src/core/ipv4/%.o Middlewares/Third_Party/LwIP/src/core/ipv4/%.su Middlewares/Third_Party/LwIP/src/core/ipv4/%.cyclo: ../Middlewares/Third_Party/LwIP/src/core/ipv4/%.c Middlewares/Third_Party/LwIP/src/core/ipv4/subdir.mk - arm-none-eabi-gcc "$<" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DDATA_IN_D2_SRAM -DUSE_HAL_DRIVER -DSTM32H723xx -c -I../Core/Inc -I../FATFS/Target -I../FATFS/App -I../LWIP/App -I../LWIP/Target -I../Middlewares/Third_Party/LwIP/src/include -I../Middlewares/Third_Party/LwIP/system -I../Drivers/STM32H7xx_HAL_Driver/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/Third_Party/FatFs/src -I../Drivers/BSP/Components/lan8742 -I../Middlewares/Third_Party/LwIP/src/include/netif/ppp -I../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../Middlewares/Third_Party/LwIP/src/include/lwip -I../Middlewares/Third_Party/LwIP/src/include/lwip/apps -I../Middlewares/Third_Party/LwIP/src/include/lwip/priv -I../Middlewares/Third_Party/LwIP/src/include/lwip/prot -I../Middlewares/Third_Party/LwIP/src/include/netif -I../Middlewares/Third_Party/LwIP/src/include/compat/posix -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/arpa -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/net -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/sys -I../Middlewares/Third_Party/LwIP/src/include/compat/stdc -I../Middlewares/Third_Party/LwIP/system/arch -I../Drivers/CMSIS/Include -I"C:/_NoSleep/STM32/TBD_TaxiBoard/LWFTPC" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "$@" - -clean: clean-Middlewares-2f-Third_Party-2f-LwIP-2f-src-2f-core-2f-ipv4 - -clean-Middlewares-2f-Third_Party-2f-LwIP-2f-src-2f-core-2f-ipv4: - -$(RM) ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.cyclo ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.d ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.su ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.cyclo ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.d ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.su ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.cyclo ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.d ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.su ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.cyclo ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.d ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.su ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.cyclo ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.d ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.su ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.cyclo ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.d ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.su ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.cyclo ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.d ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.su ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.cyclo ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.d ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.su - -.PHONY: clean-Middlewares-2f-Third_Party-2f-LwIP-2f-src-2f-core-2f-ipv4 - diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.d b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.d deleted file mode 100644 index 10aa96e..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.d +++ /dev/null @@ -1,93 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o: \ - ../Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o deleted file mode 100644 index 114d10a..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.su b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.d b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.d deleted file mode 100644 index 382f439..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.d +++ /dev/null @@ -1,93 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o: \ - ../Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o deleted file mode 100644 index b260a58..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.su b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.d b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.d deleted file mode 100644 index e4fd0e8..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.d +++ /dev/null @@ -1,93 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o: \ - ../Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o deleted file mode 100644 index 418b8c4..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.su b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.d b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.d deleted file mode 100644 index 2624524..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.d +++ /dev/null @@ -1,93 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o: \ - ../Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o deleted file mode 100644 index 993517b..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.su b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.d b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.d deleted file mode 100644 index 078a105..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.d +++ /dev/null @@ -1,93 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o: \ - ../Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o deleted file mode 100644 index d45b66c..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.su b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.d b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.d deleted file mode 100644 index 720248a..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.d +++ /dev/null @@ -1,93 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o: \ - ../Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o deleted file mode 100644 index 4f7782e..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.su b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.d b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.d deleted file mode 100644 index 1419437..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.d +++ /dev/null @@ -1,139 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o: \ - ../Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_frag.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/icmp6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/nd6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_frag.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/icmp6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/nd6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o deleted file mode 100644 index 916c246..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.su b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.d b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.d deleted file mode 100644 index 77959eb..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.d +++ /dev/null @@ -1,93 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o: \ - ../Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o deleted file mode 100644 index 9e01678..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.su b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.d b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.d deleted file mode 100644 index 07c5e9f..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.d +++ /dev/null @@ -1,93 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o: \ - ../Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o deleted file mode 100644 index ebc625b..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.su b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/subdir.mk b/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/subdir.mk deleted file mode 100644 index c9d6e3f..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/ipv6/subdir.mk +++ /dev/null @@ -1,51 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -# Toolchain: GNU Tools for STM32 (11.3.rel1) -################################################################################ - -# Add inputs and outputs from these tool invocations to the build variables -C_SRCS += \ -../Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.c \ -../Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.c \ -../Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.c \ -../Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.c \ -../Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.c \ -../Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.c \ -../Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.c \ -../Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.c \ -../Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.c - -OBJS += \ -./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o \ -./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o \ -./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o \ -./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o \ -./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o \ -./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o \ -./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o \ -./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o \ -./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - -C_DEPS += \ -./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.d \ -./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.d \ -./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.d \ -./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.d \ -./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.d \ -./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.d \ -./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.d \ -./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.d \ -./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.d - - -# Each subdirectory must supply rules for building sources it contributes -Middlewares/Third_Party/LwIP/src/core/ipv6/%.o Middlewares/Third_Party/LwIP/src/core/ipv6/%.su Middlewares/Third_Party/LwIP/src/core/ipv6/%.cyclo: ../Middlewares/Third_Party/LwIP/src/core/ipv6/%.c Middlewares/Third_Party/LwIP/src/core/ipv6/subdir.mk - arm-none-eabi-gcc "$<" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DDATA_IN_D2_SRAM -DUSE_HAL_DRIVER -DSTM32H723xx -c -I../Core/Inc -I../FATFS/Target -I../FATFS/App -I../LWIP/App -I../LWIP/Target -I../Middlewares/Third_Party/LwIP/src/include -I../Middlewares/Third_Party/LwIP/system -I../Drivers/STM32H7xx_HAL_Driver/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/Third_Party/FatFs/src -I../Drivers/BSP/Components/lan8742 -I../Middlewares/Third_Party/LwIP/src/include/netif/ppp -I../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../Middlewares/Third_Party/LwIP/src/include/lwip -I../Middlewares/Third_Party/LwIP/src/include/lwip/apps -I../Middlewares/Third_Party/LwIP/src/include/lwip/priv -I../Middlewares/Third_Party/LwIP/src/include/lwip/prot -I../Middlewares/Third_Party/LwIP/src/include/netif -I../Middlewares/Third_Party/LwIP/src/include/compat/posix -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/arpa -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/net -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/sys -I../Middlewares/Third_Party/LwIP/src/include/compat/stdc -I../Middlewares/Third_Party/LwIP/system/arch -I../Drivers/CMSIS/Include -I"C:/_NoSleep/STM32/TBD_TaxiBoard/LWFTPC" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "$@" - -clean: clean-Middlewares-2f-Third_Party-2f-LwIP-2f-src-2f-core-2f-ipv6 - -clean-Middlewares-2f-Third_Party-2f-LwIP-2f-src-2f-core-2f-ipv6: - -$(RM) ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.cyclo ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.d ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.su ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.cyclo ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.d ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.su ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.cyclo ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.d ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.su ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.cyclo ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.d ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.su ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.cyclo ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.d ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.su ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.cyclo ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.d ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.su ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.cyclo ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.d ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.su ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.cyclo ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.d ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.su ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.cyclo ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.d ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.su - -.PHONY: clean-Middlewares-2f-Third_Party-2f-LwIP-2f-src-2f-core-2f-ipv6 - diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/mem.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/mem.cyclo deleted file mode 100644 index 0f55d90..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/mem.cyclo +++ /dev/null @@ -1,9 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/mem.c:451:1:ptr_to_mem 1 -../Middlewares/Third_Party/LwIP/src/core/mem.c:457:1:mem_to_ptr 1 -../Middlewares/Third_Party/LwIP/src/core/mem.c:474:1:plug_holes 14 -../Middlewares/Third_Party/LwIP/src/core/mem.c:516:1:mem_init 2 -../Middlewares/Third_Party/LwIP/src/core/mem.c:551:1:mem_link_valid 7 -../Middlewares/Third_Party/LwIP/src/core/mem.c:617:1:mem_free 8 -../Middlewares/Third_Party/LwIP/src/core/mem.c:699:1:mem_trim 19 -../Middlewares/Third_Party/LwIP/src/core/mem.c:831:1:mem_malloc 19 -../Middlewares/Third_Party/LwIP/src/core/mem.c:999:1:mem_calloc 3 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/mem.d b/Debug/Middlewares/Third_Party/LwIP/src/core/mem.d deleted file mode 100644 index 6e63024..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/mem.d +++ /dev/null @@ -1,147 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/mem.o: \ - ../Middlewares/Third_Party/LwIP/src/core/mem.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/mem.o b/Debug/Middlewares/Third_Party/LwIP/src/core/mem.o deleted file mode 100644 index 8e33236..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/mem.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/mem.su b/Debug/Middlewares/Third_Party/LwIP/src/core/mem.su deleted file mode 100644 index cf61ec5..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/mem.su +++ /dev/null @@ -1,9 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/mem.c:451:1:ptr_to_mem 16 static -../Middlewares/Third_Party/LwIP/src/core/mem.c:457:1:mem_to_ptr 16 static -../Middlewares/Third_Party/LwIP/src/core/mem.c:474:1:plug_holes 32 static -../Middlewares/Third_Party/LwIP/src/core/mem.c:516:1:mem_init 16 static -../Middlewares/Third_Party/LwIP/src/core/mem.c:551:1:mem_link_valid 32 static -../Middlewares/Third_Party/LwIP/src/core/mem.c:617:1:mem_free 40 static -../Middlewares/Third_Party/LwIP/src/core/mem.c:699:1:mem_trim 40 static -../Middlewares/Third_Party/LwIP/src/core/mem.c:831:1:mem_malloc 40 static -../Middlewares/Third_Party/LwIP/src/core/mem.c:999:1:mem_calloc 24 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/memp.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/memp.cyclo deleted file mode 100644 index cc5be74..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/memp.cyclo +++ /dev/null @@ -1,8 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/memp.c:175:1:memp_init_pool 2 -../Middlewares/Third_Party/LwIP/src/core/memp.c:224:1:memp_init 2 -../Middlewares/Third_Party/LwIP/src/core/memp.c:245:1:do_memp_malloc_pool 3 -../Middlewares/Third_Party/LwIP/src/core/memp.c:311:1:memp_malloc_pool 3 -../Middlewares/Third_Party/LwIP/src/core/memp.c:337:1:memp_malloc 2 -../Middlewares/Third_Party/LwIP/src/core/memp.c:359:1:do_memp_free_pool 2 -../Middlewares/Third_Party/LwIP/src/core/memp.c:403:1:memp_free_pool 4 -../Middlewares/Third_Party/LwIP/src/core/memp.c:420:1:memp_free 3 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/memp.d b/Debug/Middlewares/Third_Party/LwIP/src/core/memp.d deleted file mode 100644 index c5ff0cc..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/memp.d +++ /dev/null @@ -1,233 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/memp.o: \ - ../Middlewares/Third_Party/LwIP/src/core/memp.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/raw.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/udp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/udp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/tcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/altcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_frag.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/api.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcpip_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcpip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/api_msg.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/igmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/sockets_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/sockets.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/inet.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/errno.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/etharp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ethernet.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ieee.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/etharp.h \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netdb.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/dns.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/nd6_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_frag.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mld6.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/raw.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/udp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/udp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/tcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/altcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_frag.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/api.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcpip_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcpip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/api_msg.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/igmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/sockets_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/sockets.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/inet.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/errno.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/etharp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ethernet.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ieee.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/etharp.h: -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netdb.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/dns.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/nd6_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_frag.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mld6.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/memp.o b/Debug/Middlewares/Third_Party/LwIP/src/core/memp.o deleted file mode 100644 index b572111..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/memp.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/memp.su b/Debug/Middlewares/Third_Party/LwIP/src/core/memp.su deleted file mode 100644 index 822791f..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/memp.su +++ /dev/null @@ -1,8 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/memp.c:175:1:memp_init_pool 24 static -../Middlewares/Third_Party/LwIP/src/core/memp.c:224:1:memp_init 16 static -../Middlewares/Third_Party/LwIP/src/core/memp.c:245:1:do_memp_malloc_pool 24 static -../Middlewares/Third_Party/LwIP/src/core/memp.c:311:1:memp_malloc_pool 16 static -../Middlewares/Third_Party/LwIP/src/core/memp.c:337:1:memp_malloc 24 static -../Middlewares/Third_Party/LwIP/src/core/memp.c:359:1:do_memp_free_pool 24 static -../Middlewares/Third_Party/LwIP/src/core/memp.c:403:1:memp_free_pool 16 static -../Middlewares/Third_Party/LwIP/src/core/memp.c:420:1:memp_free 16 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/netif.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/netif.cyclo deleted file mode 100644 index 6ad03fd..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/netif.cyclo +++ /dev/null @@ -1,25 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/netif.c:177:1:netif_init 1 -../Middlewares/Third_Party/LwIP/src/core/netif.c:217:1:netif_input 4 -../Middlewares/Third_Party/LwIP/src/core/netif.c:239:1:netif_add_noaddr 1 -../Middlewares/Third_Party/LwIP/src/core/netif.c:276:1:netif_add 26 -../Middlewares/Third_Party/LwIP/src/core/netif.c:442:1:netif_do_ip_addr_changed 1 -../Middlewares/Third_Party/LwIP/src/core/netif.c:457:1:netif_do_set_ipaddr 5 -../Middlewares/Third_Party/LwIP/src/core/netif.c:500:1:netif_set_ipaddr 3 -../Middlewares/Third_Party/LwIP/src/core/netif.c:523:1:netif_do_set_netmask 3 -../Middlewares/Third_Party/LwIP/src/core/netif.c:560:1:netif_set_netmask 3 -../Middlewares/Third_Party/LwIP/src/core/netif.c:587:1:netif_do_set_gw 3 -../Middlewares/Third_Party/LwIP/src/core/netif.c:621:1:netif_set_gw 3 -../Middlewares/Third_Party/LwIP/src/core/netif.c:658:1:netif_set_addr 8 -../Middlewares/Third_Party/LwIP/src/core/netif.c:737:1:netif_remove 9 -../Middlewares/Third_Party/LwIP/src/core/netif.c:822:1:netif_set_default 3 -../Middlewares/Third_Party/LwIP/src/core/netif.c:844:1:netif_set_up 3 -../Middlewares/Third_Party/LwIP/src/core/netif.c:875:1:netif_issue_reports 7 -../Middlewares/Third_Party/LwIP/src/core/netif.c:919:1:netif_set_down 4 -../Middlewares/Third_Party/LwIP/src/core/netif.c:988:1:netif_set_link_up 4 -../Middlewares/Third_Party/LwIP/src/core/netif.c:1026:1:netif_set_link_down 4 -../Middlewares/Third_Party/LwIP/src/core/netif.c:1051:1:netif_set_link_callback 2 -../Middlewares/Third_Party/LwIP/src/core/netif.c:1619:1:netif_null_output_ip4 1 -../Middlewares/Third_Party/LwIP/src/core/netif.c:1637:1:netif_name_to_index 2 -../Middlewares/Third_Party/LwIP/src/core/netif.c:1656:1:netif_index_to_name 2 -../Middlewares/Third_Party/LwIP/src/core/netif.c:1676:1:netif_get_by_index 4 -../Middlewares/Third_Party/LwIP/src/core/netif.c:1701:1:netif_find 6 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/netif.d b/Debug/Middlewares/Third_Party/LwIP/src/core/netif.d deleted file mode 100644 index e53f0b4..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/netif.d +++ /dev/null @@ -1,201 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/netif.o: \ - ../Middlewares/Third_Party/LwIP/src/core/netif.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/tcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/udp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/udp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/raw_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/snmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/igmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/etharp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ethernet.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ieee.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/etharp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h \ - ../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ethernet.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/tcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/udp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/udp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/raw_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/snmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/igmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/etharp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ethernet.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ieee.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/etharp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h: -../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/LwIP/src/include/netif/ethernet.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/netif.o b/Debug/Middlewares/Third_Party/LwIP/src/core/netif.o deleted file mode 100644 index ffc0f2b..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/netif.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/netif.su b/Debug/Middlewares/Third_Party/LwIP/src/core/netif.su deleted file mode 100644 index d9b9c53..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/netif.su +++ /dev/null @@ -1,25 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/netif.c:177:1:netif_init 4 static -../Middlewares/Third_Party/LwIP/src/core/netif.c:217:1:netif_input 16 static -../Middlewares/Third_Party/LwIP/src/core/netif.c:239:1:netif_add_noaddr 40 static -../Middlewares/Third_Party/LwIP/src/core/netif.c:276:1:netif_add 40 static -../Middlewares/Third_Party/LwIP/src/core/netif.c:442:1:netif_do_ip_addr_changed 16 static -../Middlewares/Third_Party/LwIP/src/core/netif.c:457:1:netif_do_set_ipaddr 32 static -../Middlewares/Third_Party/LwIP/src/core/netif.c:500:1:netif_set_ipaddr 24 static -../Middlewares/Third_Party/LwIP/src/core/netif.c:523:1:netif_do_set_netmask 48 static -../Middlewares/Third_Party/LwIP/src/core/netif.c:560:1:netif_set_netmask 24 static -../Middlewares/Third_Party/LwIP/src/core/netif.c:587:1:netif_do_set_gw 48 static -../Middlewares/Third_Party/LwIP/src/core/netif.c:621:1:netif_set_gw 24 static -../Middlewares/Third_Party/LwIP/src/core/netif.c:658:1:netif_set_addr 40 static -../Middlewares/Third_Party/LwIP/src/core/netif.c:737:1:netif_remove 24 static -../Middlewares/Third_Party/LwIP/src/core/netif.c:822:1:netif_set_default 16 static -../Middlewares/Third_Party/LwIP/src/core/netif.c:844:1:netif_set_up 16 static -../Middlewares/Third_Party/LwIP/src/core/netif.c:875:1:netif_issue_reports 16 static -../Middlewares/Third_Party/LwIP/src/core/netif.c:919:1:netif_set_down 16 static -../Middlewares/Third_Party/LwIP/src/core/netif.c:988:1:netif_set_link_up 16 static -../Middlewares/Third_Party/LwIP/src/core/netif.c:1026:1:netif_set_link_down 16 static -../Middlewares/Third_Party/LwIP/src/core/netif.c:1051:1:netif_set_link_callback 16 static -../Middlewares/Third_Party/LwIP/src/core/netif.c:1619:1:netif_null_output_ip4 24 static -../Middlewares/Third_Party/LwIP/src/core/netif.c:1637:1:netif_name_to_index 24 static -../Middlewares/Third_Party/LwIP/src/core/netif.c:1656:1:netif_index_to_name 24 static -../Middlewares/Third_Party/LwIP/src/core/netif.c:1676:1:netif_get_by_index 24 static -../Middlewares/Third_Party/LwIP/src/core/netif.c:1701:1:netif_find 24 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/pbuf.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/pbuf.cyclo deleted file mode 100644 index d368360..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/pbuf.cyclo +++ /dev/null @@ -1,37 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:128:1:pbuf_free_ooseq 3 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:148:1:pbuf_free_ooseq_callback 1 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:157:1:pbuf_pool_is_empty 3 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:179:1:pbuf_init_alloced_pbuf 1 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:224:1:pbuf_alloc 17 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:327:1:pbuf_alloc_reference 4 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:363:1:pbuf_alloced_custom 3 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:402:1:pbuf_realloc 10 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:473:1:pbuf_add_header_impl 9 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:551:1:pbuf_add_header 1 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:561:1:pbuf_add_header_force 1 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:582:1:pbuf_remove_header 6 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:616:1:pbuf_header_impl 2 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:646:1:pbuf_header 1 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:656:1:pbuf_header_force 1 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:671:1:pbuf_free_header 4 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:725:1:pbuf_free 11 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:809:1:pbuf_clen 2 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:829:1:pbuf_ref 3 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:853:1:pbuf_cat 6 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:895:1:pbuf_chain 1 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:912:1:pbuf_dechain 5 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:961:1:pbuf_copy 18 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:1027:1:pbuf_copy_partial 8 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:1074:1:pbuf_get_contiguous 7 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:1152:1:pbuf_skip_const 4 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:1178:1:pbuf_skip 1 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:1196:1:pbuf_take 12 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:1240:1:pbuf_take_at 6 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:1278:1:pbuf_coalesce 3 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:1306:1:pbuf_clone 3 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:1371:1:pbuf_get_at 2 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:1389:1:pbuf_try_get_at 3 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:1411:1:pbuf_put_at 3 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:1434:1:pbuf_memcmp 6 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:1476:1:pbuf_memfind 4 -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:1503:1:pbuf_strstr 5 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/pbuf.d b/Debug/Middlewares/Third_Party/LwIP/src/core/pbuf.d deleted file mode 100644 index 9bcc062..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/pbuf.d +++ /dev/null @@ -1,185 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/pbuf.o: \ - ../Middlewares/Third_Party/LwIP/src/core/pbuf.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h \ - ../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/tcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcpip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h: -../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/tcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcpip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/pbuf.o b/Debug/Middlewares/Third_Party/LwIP/src/core/pbuf.o deleted file mode 100644 index 637c0f5..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/pbuf.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/pbuf.su b/Debug/Middlewares/Third_Party/LwIP/src/core/pbuf.su deleted file mode 100644 index c1cc3a5..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/pbuf.su +++ /dev/null @@ -1,37 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:128:1:pbuf_free_ooseq 16 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:148:1:pbuf_free_ooseq_callback 16 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:157:1:pbuf_pool_is_empty 16 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:179:1:pbuf_init_alloced_pbuf 24 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:224:1:pbuf_alloc 56 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:327:1:pbuf_alloc_reference 32 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:363:1:pbuf_alloced_custom 40 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:402:1:pbuf_realloc 24 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:473:1:pbuf_add_header_impl 32 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:551:1:pbuf_add_header 16 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:561:1:pbuf_add_header_force 16 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:582:1:pbuf_remove_header 24 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:616:1:pbuf_header_impl 16 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:646:1:pbuf_header 16 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:656:1:pbuf_header_force 16 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:671:1:pbuf_free_header 32 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:725:1:pbuf_free 40 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:809:1:pbuf_clen 24 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:829:1:pbuf_ref 24 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:853:1:pbuf_cat 24 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:895:1:pbuf_chain 16 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:912:1:pbuf_dechain 24 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:961:1:pbuf_copy 32 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:1027:1:pbuf_copy_partial 40 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:1074:1:pbuf_get_contiguous 32 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:1152:1:pbuf_skip_const 32 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:1178:1:pbuf_skip 32 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:1196:1:pbuf_take 40 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:1240:1:pbuf_take_at 40 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:1278:1:pbuf_coalesce 24 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:1306:1:pbuf_clone 24 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:1371:1:pbuf_get_at 24 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:1389:1:pbuf_try_get_at 24 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:1411:1:pbuf_put_at 24 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:1434:1:pbuf_memcmp 40 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:1476:1:pbuf_memfind 32 static -../Middlewares/Third_Party/LwIP/src/core/pbuf.c:1503:1:pbuf_strstr 24 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/raw.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/raw.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/raw.d b/Debug/Middlewares/Third_Party/LwIP/src/core/raw.d deleted file mode 100644 index 1c76d04..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/raw.d +++ /dev/null @@ -1,93 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/raw.o: \ - ../Middlewares/Third_Party/LwIP/src/core/raw.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/raw.o b/Debug/Middlewares/Third_Party/LwIP/src/core/raw.o deleted file mode 100644 index 4b51d06..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/raw.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/raw.su b/Debug/Middlewares/Third_Party/LwIP/src/core/raw.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/stats.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/stats.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/stats.d b/Debug/Middlewares/Third_Party/LwIP/src/core/stats.d deleted file mode 100644 index 964667b..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/stats.d +++ /dev/null @@ -1,93 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/stats.o: \ - ../Middlewares/Third_Party/LwIP/src/core/stats.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/stats.o b/Debug/Middlewares/Third_Party/LwIP/src/core/stats.o deleted file mode 100644 index ae42d0b..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/stats.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/stats.su b/Debug/Middlewares/Third_Party/LwIP/src/core/stats.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/subdir.mk b/Debug/Middlewares/Third_Party/LwIP/src/core/subdir.mk deleted file mode 100644 index bb2c224..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/subdir.mk +++ /dev/null @@ -1,84 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -# Toolchain: GNU Tools for STM32 (11.3.rel1) -################################################################################ - -# Add inputs and outputs from these tool invocations to the build variables -C_SRCS += \ -../Middlewares/Third_Party/LwIP/src/core/altcp.c \ -../Middlewares/Third_Party/LwIP/src/core/altcp_alloc.c \ -../Middlewares/Third_Party/LwIP/src/core/altcp_tcp.c \ -../Middlewares/Third_Party/LwIP/src/core/def.c \ -../Middlewares/Third_Party/LwIP/src/core/dns.c \ -../Middlewares/Third_Party/LwIP/src/core/inet_chksum.c \ -../Middlewares/Third_Party/LwIP/src/core/init.c \ -../Middlewares/Third_Party/LwIP/src/core/ip.c \ -../Middlewares/Third_Party/LwIP/src/core/mem.c \ -../Middlewares/Third_Party/LwIP/src/core/memp.c \ -../Middlewares/Third_Party/LwIP/src/core/netif.c \ -../Middlewares/Third_Party/LwIP/src/core/pbuf.c \ -../Middlewares/Third_Party/LwIP/src/core/raw.c \ -../Middlewares/Third_Party/LwIP/src/core/stats.c \ -../Middlewares/Third_Party/LwIP/src/core/sys.c \ -../Middlewares/Third_Party/LwIP/src/core/tcp.c \ -../Middlewares/Third_Party/LwIP/src/core/tcp_in.c \ -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c \ -../Middlewares/Third_Party/LwIP/src/core/timeouts.c \ -../Middlewares/Third_Party/LwIP/src/core/udp.c - -OBJS += \ -./Middlewares/Third_Party/LwIP/src/core/altcp.o \ -./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o \ -./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o \ -./Middlewares/Third_Party/LwIP/src/core/def.o \ -./Middlewares/Third_Party/LwIP/src/core/dns.o \ -./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o \ -./Middlewares/Third_Party/LwIP/src/core/init.o \ -./Middlewares/Third_Party/LwIP/src/core/ip.o \ -./Middlewares/Third_Party/LwIP/src/core/mem.o \ -./Middlewares/Third_Party/LwIP/src/core/memp.o \ -./Middlewares/Third_Party/LwIP/src/core/netif.o \ -./Middlewares/Third_Party/LwIP/src/core/pbuf.o \ -./Middlewares/Third_Party/LwIP/src/core/raw.o \ -./Middlewares/Third_Party/LwIP/src/core/stats.o \ -./Middlewares/Third_Party/LwIP/src/core/sys.o \ -./Middlewares/Third_Party/LwIP/src/core/tcp.o \ -./Middlewares/Third_Party/LwIP/src/core/tcp_in.o \ -./Middlewares/Third_Party/LwIP/src/core/tcp_out.o \ -./Middlewares/Third_Party/LwIP/src/core/timeouts.o \ -./Middlewares/Third_Party/LwIP/src/core/udp.o - -C_DEPS += \ -./Middlewares/Third_Party/LwIP/src/core/altcp.d \ -./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.d \ -./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.d \ -./Middlewares/Third_Party/LwIP/src/core/def.d \ -./Middlewares/Third_Party/LwIP/src/core/dns.d \ -./Middlewares/Third_Party/LwIP/src/core/inet_chksum.d \ -./Middlewares/Third_Party/LwIP/src/core/init.d \ -./Middlewares/Third_Party/LwIP/src/core/ip.d \ -./Middlewares/Third_Party/LwIP/src/core/mem.d \ -./Middlewares/Third_Party/LwIP/src/core/memp.d \ -./Middlewares/Third_Party/LwIP/src/core/netif.d \ -./Middlewares/Third_Party/LwIP/src/core/pbuf.d \ -./Middlewares/Third_Party/LwIP/src/core/raw.d \ -./Middlewares/Third_Party/LwIP/src/core/stats.d \ -./Middlewares/Third_Party/LwIP/src/core/sys.d \ -./Middlewares/Third_Party/LwIP/src/core/tcp.d \ -./Middlewares/Third_Party/LwIP/src/core/tcp_in.d \ -./Middlewares/Third_Party/LwIP/src/core/tcp_out.d \ -./Middlewares/Third_Party/LwIP/src/core/timeouts.d \ -./Middlewares/Third_Party/LwIP/src/core/udp.d - - -# Each subdirectory must supply rules for building sources it contributes -Middlewares/Third_Party/LwIP/src/core/%.o Middlewares/Third_Party/LwIP/src/core/%.su Middlewares/Third_Party/LwIP/src/core/%.cyclo: ../Middlewares/Third_Party/LwIP/src/core/%.c Middlewares/Third_Party/LwIP/src/core/subdir.mk - arm-none-eabi-gcc "$<" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DDATA_IN_D2_SRAM -DUSE_HAL_DRIVER -DSTM32H723xx -c -I../Core/Inc -I../FATFS/Target -I../FATFS/App -I../LWIP/App -I../LWIP/Target -I../Middlewares/Third_Party/LwIP/src/include -I../Middlewares/Third_Party/LwIP/system -I../Drivers/STM32H7xx_HAL_Driver/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/Third_Party/FatFs/src -I../Drivers/BSP/Components/lan8742 -I../Middlewares/Third_Party/LwIP/src/include/netif/ppp -I../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../Middlewares/Third_Party/LwIP/src/include/lwip -I../Middlewares/Third_Party/LwIP/src/include/lwip/apps -I../Middlewares/Third_Party/LwIP/src/include/lwip/priv -I../Middlewares/Third_Party/LwIP/src/include/lwip/prot -I../Middlewares/Third_Party/LwIP/src/include/netif -I../Middlewares/Third_Party/LwIP/src/include/compat/posix -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/arpa -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/net -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/sys -I../Middlewares/Third_Party/LwIP/src/include/compat/stdc -I../Middlewares/Third_Party/LwIP/system/arch -I../Drivers/CMSIS/Include -I"C:/_NoSleep/STM32/TBD_TaxiBoard/LWFTPC" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "$@" - -clean: clean-Middlewares-2f-Third_Party-2f-LwIP-2f-src-2f-core - -clean-Middlewares-2f-Third_Party-2f-LwIP-2f-src-2f-core: - -$(RM) ./Middlewares/Third_Party/LwIP/src/core/altcp.cyclo ./Middlewares/Third_Party/LwIP/src/core/altcp.d ./Middlewares/Third_Party/LwIP/src/core/altcp.o ./Middlewares/Third_Party/LwIP/src/core/altcp.su ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.cyclo ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.d ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.su ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.cyclo ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.d ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.su ./Middlewares/Third_Party/LwIP/src/core/def.cyclo ./Middlewares/Third_Party/LwIP/src/core/def.d ./Middlewares/Third_Party/LwIP/src/core/def.o ./Middlewares/Third_Party/LwIP/src/core/def.su ./Middlewares/Third_Party/LwIP/src/core/dns.cyclo ./Middlewares/Third_Party/LwIP/src/core/dns.d ./Middlewares/Third_Party/LwIP/src/core/dns.o ./Middlewares/Third_Party/LwIP/src/core/dns.su ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.cyclo ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.d ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.su ./Middlewares/Third_Party/LwIP/src/core/init.cyclo ./Middlewares/Third_Party/LwIP/src/core/init.d ./Middlewares/Third_Party/LwIP/src/core/init.o ./Middlewares/Third_Party/LwIP/src/core/init.su ./Middlewares/Third_Party/LwIP/src/core/ip.cyclo ./Middlewares/Third_Party/LwIP/src/core/ip.d ./Middlewares/Third_Party/LwIP/src/core/ip.o ./Middlewares/Third_Party/LwIP/src/core/ip.su ./Middlewares/Third_Party/LwIP/src/core/mem.cyclo ./Middlewares/Third_Party/LwIP/src/core/mem.d ./Middlewares/Third_Party/LwIP/src/core/mem.o ./Middlewares/Third_Party/LwIP/src/core/mem.su ./Middlewares/Third_Party/LwIP/src/core/memp.cyclo ./Middlewares/Third_Party/LwIP/src/core/memp.d ./Middlewares/Third_Party/LwIP/src/core/memp.o ./Middlewares/Third_Party/LwIP/src/core/memp.su ./Middlewares/Third_Party/LwIP/src/core/netif.cyclo ./Middlewares/Third_Party/LwIP/src/core/netif.d ./Middlewares/Third_Party/LwIP/src/core/netif.o ./Middlewares/Third_Party/LwIP/src/core/netif.su ./Middlewares/Third_Party/LwIP/src/core/pbuf.cyclo ./Middlewares/Third_Party/LwIP/src/core/pbuf.d ./Middlewares/Third_Party/LwIP/src/core/pbuf.o ./Middlewares/Third_Party/LwIP/src/core/pbuf.su ./Middlewares/Third_Party/LwIP/src/core/raw.cyclo ./Middlewares/Third_Party/LwIP/src/core/raw.d ./Middlewares/Third_Party/LwIP/src/core/raw.o ./Middlewares/Third_Party/LwIP/src/core/raw.su ./Middlewares/Third_Party/LwIP/src/core/stats.cyclo ./Middlewares/Third_Party/LwIP/src/core/stats.d ./Middlewares/Third_Party/LwIP/src/core/stats.o ./Middlewares/Third_Party/LwIP/src/core/stats.su ./Middlewares/Third_Party/LwIP/src/core/sys.cyclo ./Middlewares/Third_Party/LwIP/src/core/sys.d ./Middlewares/Third_Party/LwIP/src/core/sys.o ./Middlewares/Third_Party/LwIP/src/core/sys.su ./Middlewares/Third_Party/LwIP/src/core/tcp.cyclo ./Middlewares/Third_Party/LwIP/src/core/tcp.d ./Middlewares/Third_Party/LwIP/src/core/tcp.o ./Middlewares/Third_Party/LwIP/src/core/tcp.su ./Middlewares/Third_Party/LwIP/src/core/tcp_in.cyclo ./Middlewares/Third_Party/LwIP/src/core/tcp_in.d ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o ./Middlewares/Third_Party/LwIP/src/core/tcp_in.su ./Middlewares/Third_Party/LwIP/src/core/tcp_out.cyclo ./Middlewares/Third_Party/LwIP/src/core/tcp_out.d ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o ./Middlewares/Third_Party/LwIP/src/core/tcp_out.su ./Middlewares/Third_Party/LwIP/src/core/timeouts.cyclo ./Middlewares/Third_Party/LwIP/src/core/timeouts.d ./Middlewares/Third_Party/LwIP/src/core/timeouts.o ./Middlewares/Third_Party/LwIP/src/core/timeouts.su ./Middlewares/Third_Party/LwIP/src/core/udp.cyclo ./Middlewares/Third_Party/LwIP/src/core/udp.d ./Middlewares/Third_Party/LwIP/src/core/udp.o ./Middlewares/Third_Party/LwIP/src/core/udp.su - -.PHONY: clean-Middlewares-2f-Third_Party-2f-LwIP-2f-src-2f-core - diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/sys.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/sys.cyclo deleted file mode 100644 index 89b26d7..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/sys.cyclo +++ /dev/null @@ -1 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/sys.c:135:1:sys_msleep 3 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/sys.d b/Debug/Middlewares/Third_Party/LwIP/src/core/sys.d deleted file mode 100644 index 11c6eac..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/sys.d +++ /dev/null @@ -1,133 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/sys.o: \ - ../Middlewares/Third_Party/LwIP/src/core/sys.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/sys.o b/Debug/Middlewares/Third_Party/LwIP/src/core/sys.o deleted file mode 100644 index 3fda8db..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/sys.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/sys.su b/Debug/Middlewares/Third_Party/LwIP/src/core/sys.su deleted file mode 100644 index d5daec3..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/sys.su +++ /dev/null @@ -1 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/sys.c:135:1:sys_msleep 24 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/tcp.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/tcp.cyclo deleted file mode 100644 index bd13c6b..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/tcp.cyclo +++ /dev/null @@ -1,52 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/tcp.c:201:1:tcp_init 1 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:210:1:tcp_free 2 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:221:1:tcp_free_listen 2 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:234:1:tcp_tmr 2 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:251:1:tcp_remove_listener 4 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:269:1:tcp_listen_closed 4 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:348:1:tcp_close_shutdown 20 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:409:1:tcp_close_shutdown_fin 11 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:484:1:tcp_close 3 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:515:1:tcp_shutdown 10 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:563:1:tcp_abandon 14 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:638:1:tcp_abort 1 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:661:1:tcp_bind 17 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:763:1:tcp_bind_netif 2 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:778:1:tcp_accept_null 2 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:825:1:tcp_listen_with_backlog 1 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:848:1:tcp_listen_with_backlog_and_err 10 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:930:1:tcp_update_rcv_ann_wnd 5 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:968:1:tcp_recved 6 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1011:1:tcp_new_port 6 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1067:1:tcp_connect 18 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1192:1:tcp_slowtmr 63 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1479:1:tcp_fasttmr 7 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1526:1:tcp_txnow 3 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1539:1:tcp_process_refused_data 9 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1608:1:tcp_segs_free 2 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1623:1:tcp_seg_free 3 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1644:1:tcp_setprio 2 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1662:1:tcp_seg_copy 3 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1684:1:tcp_recv_null 4 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1706:1:tcp_kill_prio 8 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1752:1:tcp_kill_state 7 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1784:1:tcp_kill_timewait 4 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1811:1:tcp_handle_closepend 3 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1834:1:tcp_alloc 6 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1945:1:tcp_new 1 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1962:1:tcp_new_ip_type 1 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1988:1:tcp_arg 2 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:2011:1:tcp_recv 3 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:2031:1:tcp_sent 3 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:2057:1:tcp_err 3 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:2076:1:tcp_accept 3 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:2105:1:tcp_poll 3 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:2127:1:tcp_pcb_purge 7 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:2177:1:tcp_pcb_remove 13 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:2215:1:tcp_next_iss 2 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:2238:1:tcp_eff_send_mss_netif 5 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:2299:1:tcp_netif_ip_addr_changed_pcblist 4 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:2331:1:tcp_netif_ip_addr_changed 7 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:2354:1:tcp_debug_state_str 1 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:2360:1:tcp_tcp_get_tcp_addrinfo 7 -../Middlewares/Third_Party/LwIP/src/core/tcp.c:2386:1:tcp_free_ooseq 2 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/tcp.d b/Debug/Middlewares/Third_Party/LwIP/src/core/tcp.d deleted file mode 100644 index a32b77b..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/tcp.d +++ /dev/null @@ -1,145 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/tcp.o: \ - ../Middlewares/Third_Party/LwIP/src/core/tcp.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/tcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/nd6.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/tcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/nd6.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/tcp.o b/Debug/Middlewares/Third_Party/LwIP/src/core/tcp.o deleted file mode 100644 index 431a0c1..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/tcp.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/tcp.su b/Debug/Middlewares/Third_Party/LwIP/src/core/tcp.su deleted file mode 100644 index 17c1295..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/tcp.su +++ /dev/null @@ -1,52 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/tcp.c:201:1:tcp_init 8 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:210:1:tcp_free 16 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:221:1:tcp_free_listen 16 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:234:1:tcp_tmr 8 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:251:1:tcp_remove_listener 24 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:269:1:tcp_listen_closed 24 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:348:1:tcp_close_shutdown 48 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:409:1:tcp_close_shutdown_fin 24 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:484:1:tcp_close 16 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:515:1:tcp_shutdown 24 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:563:1:tcp_abandon 64 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:638:1:tcp_abort 16 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:661:1:tcp_bind 40 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:763:1:tcp_bind_netif 16 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:778:1:tcp_accept_null 24 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:825:1:tcp_listen_with_backlog 16 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:848:1:tcp_listen_with_backlog_and_err 40 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:930:1:tcp_update_rcv_ann_wnd 24 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:968:1:tcp_recved 24 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1011:1:tcp_new_port 16 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1067:1:tcp_connect 48 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1192:1:tcp_slowtmr 80 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1479:1:tcp_fasttmr 16 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1526:1:tcp_txnow 16 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1539:1:tcp_process_refused_data 32 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1608:1:tcp_segs_free 24 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1623:1:tcp_seg_free 16 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1644:1:tcp_setprio 16 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1662:1:tcp_seg_copy 24 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1684:1:tcp_recv_null 24 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1706:1:tcp_kill_prio 32 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1752:1:tcp_kill_state 32 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1784:1:tcp_kill_timewait 24 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1811:1:tcp_handle_closepend 16 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1834:1:tcp_alloc 24 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1945:1:tcp_new 8 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1962:1:tcp_new_ip_type 24 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:1988:1:tcp_arg 16 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:2011:1:tcp_recv 16 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:2031:1:tcp_sent 16 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:2057:1:tcp_err 16 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:2076:1:tcp_accept 24 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:2105:1:tcp_poll 24 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:2127:1:tcp_pcb_purge 16 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:2177:1:tcp_pcb_remove 24 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:2215:1:tcp_next_iss 16 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:2238:1:tcp_eff_send_mss_netif 32 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:2299:1:tcp_netif_ip_addr_changed_pcblist 24 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:2331:1:tcp_netif_ip_addr_changed 24 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:2354:1:tcp_debug_state_str 16 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:2360:1:tcp_tcp_get_tcp_addrinfo 24 static -../Middlewares/Third_Party/LwIP/src/core/tcp.c:2386:1:tcp_free_ooseq 16 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/tcp_in.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/tcp_in.cyclo deleted file mode 100644 index f5521f3..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/tcp_in.cyclo +++ /dev/null @@ -1,11 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/tcp_in.c:118:1:tcp_input 73 -../Middlewares/Third_Party/LwIP/src/core/tcp_in.c:600:1:tcp_input_delayed_close 5 -../Middlewares/Third_Party/LwIP/src/core/tcp_in.c:630:1:tcp_listen_input 8 -../Middlewares/Third_Party/LwIP/src/core/tcp_in.c:739:1:tcp_timewait_input 8 -../Middlewares/Third_Party/LwIP/src/core/tcp_in.c:788:1:tcp_process 72 -../Middlewares/Third_Party/LwIP/src/core/tcp_in.c:1051:1:tcp_oos_insert_segment 8 -../Middlewares/Third_Party/LwIP/src/core/tcp_in.c:1088:1:tcp_free_acked_segments 8 -../Middlewares/Third_Party/LwIP/src/core/tcp_in.c:1141:1:tcp_receive 109 -../Middlewares/Third_Party/LwIP/src/core/tcp_in.c:1888:1:tcp_get_next_optbyte 3 -../Middlewares/Third_Party/LwIP/src/core/tcp_in.c:1909:1:tcp_parseopt 13 -../Middlewares/Third_Party/LwIP/src/core/tcp_in.c:2029:1:tcp_trigger_input_pcb_close 1 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/tcp_in.d b/Debug/Middlewares/Third_Party/LwIP/src/core/tcp_in.d deleted file mode 100644 index 19c242c..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/tcp_in.d +++ /dev/null @@ -1,147 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/tcp_in.o: \ - ../Middlewares/Third_Party/LwIP/src/core/tcp_in.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/tcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/inet_chksum.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/nd6.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/tcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/inet_chksum.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/nd6.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/tcp_in.o b/Debug/Middlewares/Third_Party/LwIP/src/core/tcp_in.o deleted file mode 100644 index 2e5a17d..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/tcp_in.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/tcp_in.su b/Debug/Middlewares/Third_Party/LwIP/src/core/tcp_in.su deleted file mode 100644 index 0578f9e..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/tcp_in.su +++ /dev/null @@ -1,11 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/tcp_in.c:118:1:tcp_input 64 static -../Middlewares/Third_Party/LwIP/src/core/tcp_in.c:600:1:tcp_input_delayed_close 16 static -../Middlewares/Third_Party/LwIP/src/core/tcp_in.c:630:1:tcp_listen_input 56 static -../Middlewares/Third_Party/LwIP/src/core/tcp_in.c:739:1:tcp_timewait_input 32 static -../Middlewares/Third_Party/LwIP/src/core/tcp_in.c:788:1:tcp_process 64 static -../Middlewares/Third_Party/LwIP/src/core/tcp_in.c:1051:1:tcp_oos_insert_segment 32 static -../Middlewares/Third_Party/LwIP/src/core/tcp_in.c:1088:1:tcp_free_acked_segments 40 static -../Middlewares/Third_Party/LwIP/src/core/tcp_in.c:1141:1:tcp_receive 96 static -../Middlewares/Third_Party/LwIP/src/core/tcp_in.c:1888:1:tcp_get_next_optbyte 16 static -../Middlewares/Third_Party/LwIP/src/core/tcp_in.c:1909:1:tcp_parseopt 24 static -../Middlewares/Third_Party/LwIP/src/core/tcp_in.c:2029:1:tcp_trigger_input_pcb_close 4 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/tcp_out.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/tcp_out.cyclo deleted file mode 100644 index c5aef97..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/tcp_out.cyclo +++ /dev/null @@ -1,24 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:132:1:tcp_route 3 -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:158:1:tcp_create_segment 6 -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:225:1:tcp_pbuf_prealloc 11 -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:305:1:tcp_write_checks 14 -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:390:1:tcp_write 59 -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:827:1:tcp_split_unsent_seg 15 -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1001:1:tcp_send_fin 5 -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1032:1:tcp_enqueue_flags 17 -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1237:1:tcp_output 42 -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1432:1:tcp_output_segment_busy 3 -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1455:1:tcp_output_segment 10 -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1631:1:tcp_rexmit_rto_prepare 8 -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1686:1:tcp_rexmit_rto_commit 3 -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1707:1:tcp_rexmit_rto 3 -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1724:1:tcp_rexmit 8 -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1783:1:tcp_rexmit_fast 7 -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1818:1:tcp_output_alloc_header_common 3 -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1853:1:tcp_output_alloc_header 3 -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1872:1:tcp_output_fill_options 3 -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1921:1:tcp_output_control_segment 4 -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1980:1:tcp_rst 4 -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:2019:1:tcp_send_empty_ack 4 -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:2078:1:tcp_keepalive 3 -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:2116:1:tcp_zero_window_probe 9 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/tcp_out.d b/Debug/Middlewares/Third_Party/LwIP/src/core/tcp_out.d deleted file mode 100644 index c147897..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/tcp_out.d +++ /dev/null @@ -1,145 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/tcp_out.o: \ - ../Middlewares/Third_Party/LwIP/src/core/tcp_out.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/tcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/inet_chksum.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/tcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/inet_chksum.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/tcp_out.o b/Debug/Middlewares/Third_Party/LwIP/src/core/tcp_out.o deleted file mode 100644 index c902585..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/tcp_out.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/tcp_out.su b/Debug/Middlewares/Third_Party/LwIP/src/core/tcp_out.su deleted file mode 100644 index 8dabebd..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/tcp_out.su +++ /dev/null @@ -1,24 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:132:1:tcp_route 24 static -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:158:1:tcp_create_segment 40 static -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:225:1:tcp_pbuf_prealloc 32 static -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:305:1:tcp_write_checks 16 static -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:390:1:tcp_write 128 static -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:827:1:tcp_split_unsent_seg 56 static -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1001:1:tcp_send_fin 32 static -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1032:1:tcp_enqueue_flags 40 static -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1237:1:tcp_output 56 static -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1432:1:tcp_output_segment_busy 16 static -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1455:1:tcp_output_segment 64 static -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1631:1:tcp_rexmit_rto_prepare 32 static -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1686:1:tcp_rexmit_rto_commit 16 static -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1707:1:tcp_rexmit_rto 16 static -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1724:1:tcp_rexmit 32 static -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1783:1:tcp_rexmit_fast 16 static -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1818:1:tcp_output_alloc_header_common 32 static -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1853:1:tcp_output_alloc_header 56 static -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1872:1:tcp_output_fill_options 40 static -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1921:1:tcp_output_control_segment 48 static -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:1980:1:tcp_rst 56 static -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:2019:1:tcp_send_empty_ack 40 static -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:2078:1:tcp_keepalive 32 static -../Middlewares/Third_Party/LwIP/src/core/tcp_out.c:2116:1:tcp_zero_window_probe 56 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/timeouts.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/timeouts.cyclo deleted file mode 100644 index 77cf02a..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/timeouts.cyclo +++ /dev/null @@ -1,10 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/timeouts.c:144:1:tcpip_tcp_timer 3 -../Middlewares/Third_Party/LwIP/src/core/timeouts.c:166:1:tcp_timer_needed 4 -../Middlewares/Third_Party/LwIP/src/core/timeouts.c:183:1:sys_timeout_abs 8 -../Middlewares/Third_Party/LwIP/src/core/timeouts.c:232:1:lwip_cyclic_timer 2 -../Middlewares/Third_Party/LwIP/src/core/timeouts.c:264:6:sys_timeouts_init 2 -../Middlewares/Third_Party/LwIP/src/core/timeouts.c:290:1:sys_timeout 2 -../Middlewares/Third_Party/LwIP/src/core/timeouts.c:317:1:sys_untimeout 6 -../Middlewares/Third_Party/LwIP/src/core/timeouts.c:352:1:sys_check_timeouts 4 -../Middlewares/Third_Party/LwIP/src/core/timeouts.c:404:1:sys_restart_timeouts 3 -../Middlewares/Third_Party/LwIP/src/core/timeouts.c:426:1:sys_timeouts_sleeptime 4 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/timeouts.d b/Debug/Middlewares/Third_Party/LwIP/src/core/timeouts.d deleted file mode 100644 index 996438b..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/timeouts.d +++ /dev/null @@ -1,213 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/timeouts.o: \ - ../Middlewares/Third_Party/LwIP/src/core/timeouts.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h \ - ../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/tcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcpip_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcpip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_frag.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/etharp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ethernet.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ieee.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/etharp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/dhcp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/autoip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/igmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/dns.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/nd6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_frag.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mld6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/dhcp6.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h: -../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/tcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcpip_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcpip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_frag.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/etharp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ethernet.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ieee.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/etharp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/dhcp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/autoip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/igmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/dns.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/nd6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_frag.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mld6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/dhcp6.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/timeouts.o b/Debug/Middlewares/Third_Party/LwIP/src/core/timeouts.o deleted file mode 100644 index 4433cc3..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/timeouts.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/timeouts.su b/Debug/Middlewares/Third_Party/LwIP/src/core/timeouts.su deleted file mode 100644 index 89b582f..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/timeouts.su +++ /dev/null @@ -1,10 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/timeouts.c:144:1:tcpip_tcp_timer 16 static -../Middlewares/Third_Party/LwIP/src/core/timeouts.c:166:1:tcp_timer_needed 8 static -../Middlewares/Third_Party/LwIP/src/core/timeouts.c:183:1:sys_timeout_abs 32 static -../Middlewares/Third_Party/LwIP/src/core/timeouts.c:232:1:lwip_cyclic_timer 32 static -../Middlewares/Third_Party/LwIP/src/core/timeouts.c:264:6:sys_timeouts_init 16 static -../Middlewares/Third_Party/LwIP/src/core/timeouts.c:290:1:sys_timeout 32 static -../Middlewares/Third_Party/LwIP/src/core/timeouts.c:317:1:sys_untimeout 24 static -../Middlewares/Third_Party/LwIP/src/core/timeouts.c:352:1:sys_check_timeouts 24 static -../Middlewares/Third_Party/LwIP/src/core/timeouts.c:404:1:sys_restart_timeouts 24 static -../Middlewares/Third_Party/LwIP/src/core/timeouts.c:426:1:sys_timeouts_sleeptime 16 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/udp.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/core/udp.cyclo deleted file mode 100644 index 3055021..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/udp.cyclo +++ /dev/null @@ -1,17 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/udp.c:87:1:udp_init 1 -../Middlewares/Third_Party/LwIP/src/core/udp.c:100:1:udp_new_port 5 -../Middlewares/Third_Party/LwIP/src/core/udp.c:130:1:udp_input_local_match 13 -../Middlewares/Third_Party/LwIP/src/core/udp.c:194:1:udp_input 25 -../Middlewares/Third_Party/LwIP/src/core/udp.c:467:1:udp_send 3 -../Middlewares/Third_Party/LwIP/src/core/udp.c:520:1:udp_sendto 6 -../Middlewares/Third_Party/LwIP/src/core/udp.c:624:1:udp_sendto_if 9 -../Middlewares/Third_Party/LwIP/src/core/udp.c:699:1:udp_sendto_if_src 14 -../Middlewares/Third_Party/LwIP/src/core/udp.c:932:1:udp_bind 17 -../Middlewares/Third_Party/LwIP/src/core/udp.c:1042:1:udp_bind_netif 2 -../Middlewares/Third_Party/LwIP/src/core/udp.c:1071:1:udp_connect 8 -../Middlewares/Third_Party/LwIP/src/core/udp.c:1126:1:udp_disconnect 2 -../Middlewares/Third_Party/LwIP/src/core/udp.c:1158:1:udp_recv 2 -../Middlewares/Third_Party/LwIP/src/core/udp.c:1179:1:udp_remove 6 -../Middlewares/Third_Party/LwIP/src/core/udp.c:1218:1:udp_new 2 -../Middlewares/Third_Party/LwIP/src/core/udp.c:1255:1:udp_new_ip_type 1 -../Middlewares/Third_Party/LwIP/src/core/udp.c:1278:6:udp_netif_ip_addr_changed 7 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/udp.d b/Debug/Middlewares/Third_Party/LwIP/src/core/udp.d deleted file mode 100644 index 91e6984..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/udp.d +++ /dev/null @@ -1,149 +0,0 @@ -Middlewares/Third_Party/LwIP/src/core/udp.o: \ - ../Middlewares/Third_Party/LwIP/src/core/udp.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/udp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/udp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/inet_chksum.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/icmp6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/snmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/dhcp.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/udp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/udp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/inet_chksum.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/icmp6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/snmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/dhcp.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/udp.o b/Debug/Middlewares/Third_Party/LwIP/src/core/udp.o deleted file mode 100644 index c9fbc2b..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/core/udp.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/core/udp.su b/Debug/Middlewares/Third_Party/LwIP/src/core/udp.su deleted file mode 100644 index 3865a30..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/core/udp.su +++ /dev/null @@ -1,17 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/core/udp.c:87:1:udp_init 8 static -../Middlewares/Third_Party/LwIP/src/core/udp.c:100:1:udp_new_port 16 static -../Middlewares/Third_Party/LwIP/src/core/udp.c:130:1:udp_input_local_match 24 static -../Middlewares/Third_Party/LwIP/src/core/udp.c:194:1:udp_input 64 static -../Middlewares/Third_Party/LwIP/src/core/udp.c:467:1:udp_send 16 static -../Middlewares/Third_Party/LwIP/src/core/udp.c:520:1:udp_sendto 40 static -../Middlewares/Third_Party/LwIP/src/core/udp.c:624:1:udp_sendto_if 40 static -../Middlewares/Third_Party/LwIP/src/core/udp.c:699:1:udp_sendto_if_src 56 static -../Middlewares/Third_Party/LwIP/src/core/udp.c:932:1:udp_bind 32 static -../Middlewares/Third_Party/LwIP/src/core/udp.c:1042:1:udp_bind_netif 16 static -../Middlewares/Third_Party/LwIP/src/core/udp.c:1071:1:udp_connect 32 static -../Middlewares/Third_Party/LwIP/src/core/udp.c:1126:1:udp_disconnect 16 static -../Middlewares/Third_Party/LwIP/src/core/udp.c:1158:1:udp_recv 24 static -../Middlewares/Third_Party/LwIP/src/core/udp.c:1179:1:udp_remove 24 static -../Middlewares/Third_Party/LwIP/src/core/udp.c:1218:1:udp_new 16 static -../Middlewares/Third_Party/LwIP/src/core/udp.c:1255:1:udp_new_ip_type 24 static -../Middlewares/Third_Party/LwIP/src/core/udp.c:1278:6:udp_netif_ip_addr_changed 24 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/bridgeif.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/bridgeif.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/bridgeif.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/bridgeif.d deleted file mode 100644 index 155ffad..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/bridgeif.d +++ /dev/null @@ -1,183 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/bridgeif.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/bridgeif.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/bridgeif.h \ - ../Middlewares/Third_Party/LwIP/src/include/netif/bridgeif_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ethernet.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ieee.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcpip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h \ - ../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/etharp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/etharp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ethip6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/snmp.h -../Middlewares/Third_Party/LwIP/src/include/netif/bridgeif.h: -../Middlewares/Third_Party/LwIP/src/include/netif/bridgeif_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ethernet.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ieee.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcpip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h: -../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/etharp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/etharp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ethip6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/snmp.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/bridgeif.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/bridgeif.o deleted file mode 100644 index 825f117..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/bridgeif.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/bridgeif.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/bridgeif.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.cyclo deleted file mode 100644 index ff1bed7..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.cyclo +++ /dev/null @@ -1,5 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.c:76:1:bridgeif_fdb_update_src 10 -../Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.c:128:1:bridgeif_fdb_get_dst_ports 5 -../Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.c:153:1:bridgeif_fdb_age_one_second 7 -../Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.c:180:1:bridgeif_age_tmr 2 -../Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.c:195:1:bridgeif_fdb_init 3 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.d deleted file mode 100644 index 7186d7d..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.d +++ /dev/null @@ -1,171 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/bridgeif.h \ - ../Middlewares/Third_Party/LwIP/src/include/netif/bridgeif_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ethernet.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ieee.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/tcpip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h \ - ../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h -../Middlewares/Third_Party/LwIP/src/include/netif/bridgeif.h: -../Middlewares/Third_Party/LwIP/src/include/netif/bridgeif_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ethernet.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ieee.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/tcpip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h: -../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o deleted file mode 100644 index 47b8314..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.su deleted file mode 100644 index d4ac644..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.su +++ /dev/null @@ -1,5 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.c:76:1:bridgeif_fdb_update_src 40 static -../Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.c:128:1:bridgeif_fdb_get_dst_ports 32 static -../Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.c:153:1:bridgeif_fdb_age_one_second 32 static -../Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.c:180:1:bridgeif_age_tmr 24 static -../Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.c:195:1:bridgeif_fdb_init 32 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ethernet.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/ethernet.cyclo deleted file mode 100644 index a1c1deb..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ethernet.cyclo +++ /dev/null @@ -1,2 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/netif/ethernet.c:81:1:ethernet_input 14 -../Middlewares/Third_Party/LwIP/src/netif/ethernet.c:270:1:ethernet_output 3 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ethernet.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/ethernet.d deleted file mode 100644 index 9ca4598..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ethernet.d +++ /dev/null @@ -1,145 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/ethernet.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/ethernet.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ethernet.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ethernet.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ieee.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/etharp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/etharp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/snmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/netif/ethernet.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ethernet.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ieee.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/etharp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/etharp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/snmp.h: -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ethernet.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/ethernet.o deleted file mode 100644 index 012357e..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/ethernet.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ethernet.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/ethernet.su deleted file mode 100644 index b04052e..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ethernet.su +++ /dev/null @@ -1,2 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/netif/ethernet.c:81:1:ethernet_input 32 static -../Middlewares/Third_Party/LwIP/src/netif/ethernet.c:270:1:ethernet_output 32 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6.d deleted file mode 100644 index a478b92..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6.d +++ /dev/null @@ -1,97 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/lowpan6.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/lowpan6.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/lowpan6.h \ - ../Middlewares/Third_Party/LwIP/src/include/netif/lowpan6_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/netif/lowpan6.h: -../Middlewares/Third_Party/LwIP/src/include/netif/lowpan6_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6.o deleted file mode 100644 index cbce0f1..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.d deleted file mode 100644 index f051309..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.d +++ /dev/null @@ -1,97 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/lowpan6_ble.h \ - ../Middlewares/Third_Party/LwIP/src/include/netif/lowpan6_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/netif/lowpan6_ble.h: -../Middlewares/Third_Party/LwIP/src/include/netif/lowpan6_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o deleted file mode 100644 index 9273e9e..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.d deleted file mode 100644 index 718be56..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.d +++ /dev/null @@ -1,97 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/lowpan6_common.h \ - ../Middlewares/Third_Party/LwIP/src/include/netif/lowpan6_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/netif/lowpan6_common.h: -../Middlewares/Third_Party/LwIP/src/include/netif/lowpan6_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o deleted file mode 100644 index 4d680d3..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/auth.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/auth.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/auth.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/auth.d deleted file mode 100644 index 17b7bc8..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/auth.d +++ /dev/null @@ -1,95 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/ppp/auth.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o deleted file mode 100644 index 861fa0a..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/auth.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/auth.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.d deleted file mode 100644 index cbb0924..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.d +++ /dev/null @@ -1,95 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o deleted file mode 100644 index 73554e4..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.d deleted file mode 100644 index e60ef97..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.d +++ /dev/null @@ -1,95 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o deleted file mode 100644 index fa21c56..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.d deleted file mode 100644 index 584b81f..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.d +++ /dev/null @@ -1,95 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o deleted file mode 100644 index cada44a..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.d deleted file mode 100644 index 71db3e2..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.d +++ /dev/null @@ -1,95 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o deleted file mode 100644 index 8eb53ad..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/demand.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/demand.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/demand.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/demand.d deleted file mode 100644 index 26e4954..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/demand.d +++ /dev/null @@ -1,95 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/ppp/demand.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o deleted file mode 100644 index f62fdb2..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/demand.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/demand.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/eap.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/eap.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/eap.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/eap.d deleted file mode 100644 index 9bb5111..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/eap.d +++ /dev/null @@ -1,95 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/ppp/eap.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o deleted file mode 100644 index 0215fe0..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/eap.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/eap.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.d deleted file mode 100644 index ed07264..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.d +++ /dev/null @@ -1,95 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o deleted file mode 100644 index a6449c2..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.d deleted file mode 100644 index 12c7b66..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.d +++ /dev/null @@ -1,95 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o deleted file mode 100644 index aaf0477..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.d deleted file mode 100644 index 0428859..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.d +++ /dev/null @@ -1,95 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o deleted file mode 100644 index 9dbe0f7..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.d deleted file mode 100644 index c0ff03d..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.d +++ /dev/null @@ -1,95 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o deleted file mode 100644 index 1345ea4..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.d deleted file mode 100644 index 1d483d7..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.d +++ /dev/null @@ -1,95 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o deleted file mode 100644 index 3399b91..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.d deleted file mode 100644 index edfb631..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.d +++ /dev/null @@ -1,95 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o deleted file mode 100644 index 09714a6..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/magic.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/magic.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/magic.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/magic.d deleted file mode 100644 index 9cd92e5..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/magic.d +++ /dev/null @@ -1,95 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/ppp/magic.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o deleted file mode 100644 index 7121603..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/magic.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/magic.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.d deleted file mode 100644 index 2fe78f6..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.d +++ /dev/null @@ -1,95 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o deleted file mode 100644 index ccd3dfa..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.d deleted file mode 100644 index c5f8c92..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.d +++ /dev/null @@ -1,95 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o deleted file mode 100644 index c189295..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.d deleted file mode 100644 index 6d9d51e..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.d +++ /dev/null @@ -1,95 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o deleted file mode 100644 index 658081e..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.d deleted file mode 100644 index 82689f7..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.d +++ /dev/null @@ -1,95 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o deleted file mode 100644 index 5346538..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.d deleted file mode 100644 index 4158a84..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.d +++ /dev/null @@ -1,95 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o deleted file mode 100644 index 57bb9a1..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.d deleted file mode 100644 index 11922b8..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.d +++ /dev/null @@ -1,95 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o deleted file mode 100644 index 5c3f5a3..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.d deleted file mode 100644 index 86db1a2..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.d +++ /dev/null @@ -1,95 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o deleted file mode 100644 index 9ac1fe7..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.d deleted file mode 100644 index 4672313..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.d +++ /dev/null @@ -1,95 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o deleted file mode 100644 index 48872a1..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/subdir.mk b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/subdir.mk deleted file mode 100644 index f509d33..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/subdir.mk +++ /dev/null @@ -1,99 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -# Toolchain: GNU Tools for STM32 (11.3.rel1) -################################################################################ - -# Add inputs and outputs from these tool invocations to the build variables -C_SRCS += \ -../Middlewares/Third_Party/LwIP/src/netif/ppp/auth.c \ -../Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.c \ -../Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.c \ -../Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.c \ -../Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.c \ -../Middlewares/Third_Party/LwIP/src/netif/ppp/demand.c \ -../Middlewares/Third_Party/LwIP/src/netif/ppp/eap.c \ -../Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.c \ -../Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.c \ -../Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.c \ -../Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.c \ -../Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.c \ -../Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.c \ -../Middlewares/Third_Party/LwIP/src/netif/ppp/magic.c \ -../Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.c \ -../Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.c \ -../Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.c \ -../Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.c \ -../Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.c \ -../Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.c \ -../Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.c \ -../Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.c \ -../Middlewares/Third_Party/LwIP/src/netif/ppp/upap.c \ -../Middlewares/Third_Party/LwIP/src/netif/ppp/utils.c \ -../Middlewares/Third_Party/LwIP/src/netif/ppp/vj.c - -OBJS += \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - -C_DEPS += \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.d \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.d \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.d \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.d \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.d \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.d \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.d \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.d \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.d \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.d \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.d \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.d \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.d \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.d \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.d \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.d \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.d \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.d \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.d \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.d \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.d \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.d \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.d \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.d \ -./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.d - - -# Each subdirectory must supply rules for building sources it contributes -Middlewares/Third_Party/LwIP/src/netif/ppp/%.o Middlewares/Third_Party/LwIP/src/netif/ppp/%.su Middlewares/Third_Party/LwIP/src/netif/ppp/%.cyclo: ../Middlewares/Third_Party/LwIP/src/netif/ppp/%.c Middlewares/Third_Party/LwIP/src/netif/ppp/subdir.mk - arm-none-eabi-gcc "$<" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DDATA_IN_D2_SRAM -DUSE_HAL_DRIVER -DSTM32H723xx -c -I../Core/Inc -I../FATFS/Target -I../FATFS/App -I../LWIP/App -I../LWIP/Target -I../Middlewares/Third_Party/LwIP/src/include -I../Middlewares/Third_Party/LwIP/system -I../Drivers/STM32H7xx_HAL_Driver/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/Third_Party/FatFs/src -I../Drivers/BSP/Components/lan8742 -I../Middlewares/Third_Party/LwIP/src/include/netif/ppp -I../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../Middlewares/Third_Party/LwIP/src/include/lwip -I../Middlewares/Third_Party/LwIP/src/include/lwip/apps -I../Middlewares/Third_Party/LwIP/src/include/lwip/priv -I../Middlewares/Third_Party/LwIP/src/include/lwip/prot -I../Middlewares/Third_Party/LwIP/src/include/netif -I../Middlewares/Third_Party/LwIP/src/include/compat/posix -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/arpa -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/net -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/sys -I../Middlewares/Third_Party/LwIP/src/include/compat/stdc -I../Middlewares/Third_Party/LwIP/system/arch -I../Drivers/CMSIS/Include -I"C:/_NoSleep/STM32/TBD_TaxiBoard/LWFTPC" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "$@" - -clean: clean-Middlewares-2f-Third_Party-2f-LwIP-2f-src-2f-netif-2f-ppp - -clean-Middlewares-2f-Third_Party-2f-LwIP-2f-src-2f-netif-2f-ppp: - -$(RM) ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.cyclo ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.d ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.su ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.cyclo ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.d ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.su ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.cyclo ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.d ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.su ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.cyclo ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.d ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.su ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.cyclo ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.d ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.su ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.cyclo ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.d ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.su ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.cyclo ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.d ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.su ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.cyclo ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.d ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.su ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.cyclo ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.d ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.su ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.cyclo ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.d ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.su ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.cyclo ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.d ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.su ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.cyclo ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.d ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.su ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.cyclo ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.d ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.su ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.cyclo ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.d ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.su ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.cyclo ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.d ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.su ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.cyclo ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.d ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.su ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.cyclo ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.d ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.su ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.cyclo ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.d ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.su ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.cyclo ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.d ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.su ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.cyclo ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.d ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.su ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.cyclo ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.d ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.su ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.cyclo ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.d ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.su ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.cyclo ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.d ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.su ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.cyclo ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.d ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.su ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.cyclo ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.d ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.su - -.PHONY: clean-Middlewares-2f-Third_Party-2f-LwIP-2f-src-2f-netif-2f-ppp - diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/upap.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/upap.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/upap.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/upap.d deleted file mode 100644 index 430e307..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/upap.d +++ /dev/null @@ -1,95 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/ppp/upap.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o deleted file mode 100644 index 47c67c7..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/upap.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/upap.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/utils.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/utils.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/utils.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/utils.d deleted file mode 100644 index 8d5417b..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/utils.d +++ /dev/null @@ -1,95 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/ppp/utils.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o deleted file mode 100644 index 313af24..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/utils.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/utils.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/vj.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/vj.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/vj.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/vj.d deleted file mode 100644 index fec82a3..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/vj.d +++ /dev/null @@ -1,95 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/ppp/vj.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h -../Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o deleted file mode 100644 index 14ef045..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/vj.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/ppp/vj.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/slipif.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/slipif.cyclo deleted file mode 100644 index 8b8f886..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/slipif.cyclo +++ /dev/null @@ -1,7 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/netif/slipif.c:116:1:slipif_output 8 -../Middlewares/Third_Party/LwIP/src/netif/slipif.c:172:1:slipif_output_v4 1 -../Middlewares/Third_Party/LwIP/src/netif/slipif.c:207:1:slipif_rxbyte 18 -../Middlewares/Third_Party/LwIP/src/netif/slipif.c:310:1:slipif_rxbyte_input 3 -../Middlewares/Third_Party/LwIP/src/netif/slipif.c:330:1:slipif_loop_thread 2 -../Middlewares/Third_Party/LwIP/src/netif/slipif.c:360:1:slipif_init 4 -../Middlewares/Third_Party/LwIP/src/netif/slipif.c:426:1:slipif_poll 4 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/slipif.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/slipif.d deleted file mode 100644 index 033c6b1..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/slipif.d +++ /dev/null @@ -1,165 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/slipif.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/slipif.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/slipif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/snmp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h \ - ../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/sio.h -../Middlewares/Third_Party/LwIP/src/include/netif/slipif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/netif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/snmp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h: -../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/sio.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/slipif.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/slipif.o deleted file mode 100644 index 9df5e8d..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/slipif.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/slipif.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/slipif.su deleted file mode 100644 index 962aea3..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/slipif.su +++ /dev/null @@ -1,7 +0,0 @@ -../Middlewares/Third_Party/LwIP/src/netif/slipif.c:116:1:slipif_output 32 static -../Middlewares/Third_Party/LwIP/src/netif/slipif.c:172:1:slipif_output_v4 24 static -../Middlewares/Third_Party/LwIP/src/netif/slipif.c:207:1:slipif_rxbyte 24 static -../Middlewares/Third_Party/LwIP/src/netif/slipif.c:310:1:slipif_rxbyte_input 24 static -../Middlewares/Third_Party/LwIP/src/netif/slipif.c:330:1:slipif_loop_thread 32 static -../Middlewares/Third_Party/LwIP/src/netif/slipif.c:360:1:slipif_init 32 static -../Middlewares/Third_Party/LwIP/src/netif/slipif.c:426:1:slipif_poll 24 static diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/subdir.mk b/Debug/Middlewares/Third_Party/LwIP/src/netif/subdir.mk deleted file mode 100644 index 23786be..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/subdir.mk +++ /dev/null @@ -1,48 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -# Toolchain: GNU Tools for STM32 (11.3.rel1) -################################################################################ - -# Add inputs and outputs from these tool invocations to the build variables -C_SRCS += \ -../Middlewares/Third_Party/LwIP/src/netif/bridgeif.c \ -../Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.c \ -../Middlewares/Third_Party/LwIP/src/netif/ethernet.c \ -../Middlewares/Third_Party/LwIP/src/netif/lowpan6.c \ -../Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.c \ -../Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.c \ -../Middlewares/Third_Party/LwIP/src/netif/slipif.c \ -../Middlewares/Third_Party/LwIP/src/netif/zepif.c - -OBJS += \ -./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o \ -./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o \ -./Middlewares/Third_Party/LwIP/src/netif/ethernet.o \ -./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o \ -./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o \ -./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o \ -./Middlewares/Third_Party/LwIP/src/netif/slipif.o \ -./Middlewares/Third_Party/LwIP/src/netif/zepif.o - -C_DEPS += \ -./Middlewares/Third_Party/LwIP/src/netif/bridgeif.d \ -./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.d \ -./Middlewares/Third_Party/LwIP/src/netif/ethernet.d \ -./Middlewares/Third_Party/LwIP/src/netif/lowpan6.d \ -./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.d \ -./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.d \ -./Middlewares/Third_Party/LwIP/src/netif/slipif.d \ -./Middlewares/Third_Party/LwIP/src/netif/zepif.d - - -# Each subdirectory must supply rules for building sources it contributes -Middlewares/Third_Party/LwIP/src/netif/%.o Middlewares/Third_Party/LwIP/src/netif/%.su Middlewares/Third_Party/LwIP/src/netif/%.cyclo: ../Middlewares/Third_Party/LwIP/src/netif/%.c Middlewares/Third_Party/LwIP/src/netif/subdir.mk - arm-none-eabi-gcc "$<" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DDATA_IN_D2_SRAM -DUSE_HAL_DRIVER -DSTM32H723xx -c -I../Core/Inc -I../FATFS/Target -I../FATFS/App -I../LWIP/App -I../LWIP/Target -I../Middlewares/Third_Party/LwIP/src/include -I../Middlewares/Third_Party/LwIP/system -I../Drivers/STM32H7xx_HAL_Driver/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/Third_Party/FatFs/src -I../Drivers/BSP/Components/lan8742 -I../Middlewares/Third_Party/LwIP/src/include/netif/ppp -I../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../Middlewares/Third_Party/LwIP/src/include/lwip -I../Middlewares/Third_Party/LwIP/src/include/lwip/apps -I../Middlewares/Third_Party/LwIP/src/include/lwip/priv -I../Middlewares/Third_Party/LwIP/src/include/lwip/prot -I../Middlewares/Third_Party/LwIP/src/include/netif -I../Middlewares/Third_Party/LwIP/src/include/compat/posix -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/arpa -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/net -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/sys -I../Middlewares/Third_Party/LwIP/src/include/compat/stdc -I../Middlewares/Third_Party/LwIP/system/arch -I../Drivers/CMSIS/Include -I"C:/_NoSleep/STM32/TBD_TaxiBoard/LWFTPC" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "$@" - -clean: clean-Middlewares-2f-Third_Party-2f-LwIP-2f-src-2f-netif - -clean-Middlewares-2f-Third_Party-2f-LwIP-2f-src-2f-netif: - -$(RM) ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.cyclo ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.d ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.su ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.cyclo ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.d ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.su ./Middlewares/Third_Party/LwIP/src/netif/ethernet.cyclo ./Middlewares/Third_Party/LwIP/src/netif/ethernet.d ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o ./Middlewares/Third_Party/LwIP/src/netif/ethernet.su ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.cyclo ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.d ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.su ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.cyclo ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.d ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.su ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.cyclo ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.d ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.su ./Middlewares/Third_Party/LwIP/src/netif/slipif.cyclo ./Middlewares/Third_Party/LwIP/src/netif/slipif.d ./Middlewares/Third_Party/LwIP/src/netif/slipif.o ./Middlewares/Third_Party/LwIP/src/netif/slipif.su ./Middlewares/Third_Party/LwIP/src/netif/zepif.cyclo ./Middlewares/Third_Party/LwIP/src/netif/zepif.d ./Middlewares/Third_Party/LwIP/src/netif/zepif.o ./Middlewares/Third_Party/LwIP/src/netif/zepif.su - -.PHONY: clean-Middlewares-2f-Third_Party-2f-LwIP-2f-src-2f-netif - diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/zepif.cyclo b/Debug/Middlewares/Third_Party/LwIP/src/netif/zepif.cyclo deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/zepif.d b/Debug/Middlewares/Third_Party/LwIP/src/netif/zepif.d deleted file mode 100644 index 32c79d7..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/src/netif/zepif.d +++ /dev/null @@ -1,99 +0,0 @@ -Middlewares/Third_Party/LwIP/src/netif/zepif.o: \ - ../Middlewares/Third_Party/LwIP/src/netif/zepif.c \ - ../Middlewares/Third_Party/LwIP/src/include/netif/zepif.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/netif/lowpan6.h \ - ../Middlewares/Third_Party/LwIP/src/include/netif/lowpan6_opts.h -../Middlewares/Third_Party/LwIP/src/include/netif/zepif.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/netif/lowpan6.h: -../Middlewares/Third_Party/LwIP/src/include/netif/lowpan6_opts.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/zepif.o b/Debug/Middlewares/Third_Party/LwIP/src/netif/zepif.o deleted file mode 100644 index 93b7ae5..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/src/netif/zepif.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/src/netif/zepif.su b/Debug/Middlewares/Third_Party/LwIP/src/netif/zepif.su deleted file mode 100644 index e69de29..0000000 diff --git a/Debug/Middlewares/Third_Party/LwIP/system/OS/subdir.mk b/Debug/Middlewares/Third_Party/LwIP/system/OS/subdir.mk deleted file mode 100644 index 9326a49..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/system/OS/subdir.mk +++ /dev/null @@ -1,27 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -# Toolchain: GNU Tools for STM32 (11.3.rel1) -################################################################################ - -# Add inputs and outputs from these tool invocations to the build variables -C_SRCS += \ -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c - -OBJS += \ -./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - -C_DEPS += \ -./Middlewares/Third_Party/LwIP/system/OS/sys_arch.d - - -# Each subdirectory must supply rules for building sources it contributes -Middlewares/Third_Party/LwIP/system/OS/%.o Middlewares/Third_Party/LwIP/system/OS/%.su Middlewares/Third_Party/LwIP/system/OS/%.cyclo: ../Middlewares/Third_Party/LwIP/system/OS/%.c Middlewares/Third_Party/LwIP/system/OS/subdir.mk - arm-none-eabi-gcc "$<" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DDATA_IN_D2_SRAM -DUSE_HAL_DRIVER -DSTM32H723xx -c -I../Core/Inc -I../FATFS/Target -I../FATFS/App -I../LWIP/App -I../LWIP/Target -I../Middlewares/Third_Party/LwIP/src/include -I../Middlewares/Third_Party/LwIP/system -I../Drivers/STM32H7xx_HAL_Driver/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/Third_Party/FatFs/src -I../Drivers/BSP/Components/lan8742 -I../Middlewares/Third_Party/LwIP/src/include/netif/ppp -I../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../Middlewares/Third_Party/LwIP/src/include/lwip -I../Middlewares/Third_Party/LwIP/src/include/lwip/apps -I../Middlewares/Third_Party/LwIP/src/include/lwip/priv -I../Middlewares/Third_Party/LwIP/src/include/lwip/prot -I../Middlewares/Third_Party/LwIP/src/include/netif -I../Middlewares/Third_Party/LwIP/src/include/compat/posix -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/arpa -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/net -I../Middlewares/Third_Party/LwIP/src/include/compat/posix/sys -I../Middlewares/Third_Party/LwIP/src/include/compat/stdc -I../Middlewares/Third_Party/LwIP/system/arch -I../Drivers/CMSIS/Include -I"C:/_NoSleep/STM32/TBD_TaxiBoard/LWFTPC" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "$@" - -clean: clean-Middlewares-2f-Third_Party-2f-LwIP-2f-system-2f-OS - -clean-Middlewares-2f-Third_Party-2f-LwIP-2f-system-2f-OS: - -$(RM) ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.cyclo ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.d ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.su - -.PHONY: clean-Middlewares-2f-Third_Party-2f-LwIP-2f-system-2f-OS - diff --git a/Debug/Middlewares/Third_Party/LwIP/system/OS/sys_arch.cyclo b/Debug/Middlewares/Third_Party/LwIP/system/OS/sys_arch.cyclo deleted file mode 100644 index 937e921..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/system/OS/sys_arch.cyclo +++ /dev/null @@ -1,23 +0,0 @@ -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:50:7:sys_mbox_new 2 -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:77:6:sys_mbox_free 1 -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:104:6:sys_mbox_post 2 -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:116:7:sys_mbox_trypost 2 -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:143:7:sys_mbox_trypost_fromisr 1 -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:164:7:sys_arch_mbox_fetch 3 -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:213:7:sys_arch_mbox_tryfetch 2 -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:235:5:sys_mbox_valid 2 -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:243:6:sys_mbox_set_invalid 1 -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:251:7:sys_sem_new 3 -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:303:7:sys_arch_sem_wait 4 -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:341:6:sys_sem_signal 1 -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:348:6:sys_sem_free 1 -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:357:5:sys_sem_valid 2 -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:366:6:sys_sem_set_invalid 1 -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:379:6:sys_init 1 -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:393:7:sys_mutex_new 2 -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:420:6:sys_mutex_free 1 -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:430:6:sys_mutex_lock 1 -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:441:6:sys_mutex_unlock 1 -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:455:14:sys_thread_new 1 -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:486:12:sys_arch_protect 1 -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:506:6:sys_arch_unprotect 1 diff --git a/Debug/Middlewares/Third_Party/LwIP/system/OS/sys_arch.d b/Debug/Middlewares/Third_Party/LwIP/system/OS/sys_arch.d deleted file mode 100644 index 4c96c49..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/system/OS/sys_arch.d +++ /dev/null @@ -1,147 +0,0 @@ -Middlewares/Third_Party/LwIP/system/OS/sys_arch.o: \ - ../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cc.h \ - ../Middlewares/Third_Party/LwIP/system/arch/cpu.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h \ - ../LWIP/Target/lwipopts.h ../Core/Inc/main.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h \ - ../Core/Inc/stm32h7xx_hal_conf.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h \ - ../Drivers/CMSIS/Include/core_cm7.h \ - ../Drivers/CMSIS/Include/cmsis_version.h \ - ../Drivers/CMSIS/Include/cmsis_compiler.h \ - ../Drivers/CMSIS/Include/cmsis_gcc.h \ - ../Drivers/CMSIS/Include/mpu_armv7.h \ - ../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h \ - ../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/def.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/err.h \ - ../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \ - ../Core/Inc/FreeRTOSConfig.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \ - ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h \ - ../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h -../Middlewares/Third_Party/LwIP/src/include/lwip/debug.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/arch.h: -../Middlewares/Third_Party/LwIP/system/arch/cc.h: -../Middlewares/Third_Party/LwIP/system/arch/cpu.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/opt.h: -../LWIP/Target/lwipopts.h: -../Core/Inc/main.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h: -../Core/Inc/stm32h7xx_hal_conf.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h: -../Drivers/CMSIS/Include/core_cm7.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h: -../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/def.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/sys.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/err.h: -../Middlewares/Third_Party/LwIP/system/arch/sys_arch.h: -../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h: -../Core/Inc/FreeRTOSConfig.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h: -../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/list.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/task.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h: -../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/mem.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/stats.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/memp.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h: -../Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h: diff --git a/Debug/Middlewares/Third_Party/LwIP/system/OS/sys_arch.o b/Debug/Middlewares/Third_Party/LwIP/system/OS/sys_arch.o deleted file mode 100644 index cff5a31..0000000 Binary files a/Debug/Middlewares/Third_Party/LwIP/system/OS/sys_arch.o and /dev/null differ diff --git a/Debug/Middlewares/Third_Party/LwIP/system/OS/sys_arch.su b/Debug/Middlewares/Third_Party/LwIP/system/OS/sys_arch.su deleted file mode 100644 index 6366b9f..0000000 --- a/Debug/Middlewares/Third_Party/LwIP/system/OS/sys_arch.su +++ /dev/null @@ -1,23 +0,0 @@ -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:50:7:sys_mbox_new 32 static -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:77:6:sys_mbox_free 16 static -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:104:6:sys_mbox_post 16 static -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:116:7:sys_mbox_trypost 24 static -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:143:7:sys_mbox_trypost_fromisr 16 static -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:164:7:sys_arch_mbox_fetch 56 static -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:213:7:sys_arch_mbox_tryfetch 32 static -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:235:5:sys_mbox_valid 16 static -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:243:6:sys_mbox_set_invalid 16 static -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:251:7:sys_sem_new 24 static -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:303:7:sys_arch_sem_wait 24 static -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:341:6:sys_sem_signal 16 static -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:348:6:sys_sem_free 16 static -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:357:5:sys_sem_valid 16 static -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:366:6:sys_sem_set_invalid 16 static -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:379:6:sys_init 8 static -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:393:7:sys_mutex_new 24 static -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:420:6:sys_mutex_free 16 static -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:430:6:sys_mutex_lock 16 static -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:441:6:sys_mutex_unlock 16 static -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:455:14:sys_thread_new 56 static -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:486:12:sys_arch_protect 8 static -../Middlewares/Third_Party/LwIP/system/OS/sys_arch.c:506:6:sys_arch_unprotect 16 static diff --git a/Debug/TBD_TaxiBoard.elf b/Debug/TBD_TaxiBoard.elf deleted file mode 100644 index 1c2f752..0000000 Binary files a/Debug/TBD_TaxiBoard.elf and /dev/null differ diff --git a/Debug/TBD_TaxiBoard.list b/Debug/TBD_TaxiBoard.list deleted file mode 100644 index 5e2b281..0000000 --- a/Debug/TBD_TaxiBoard.list +++ /dev/null @@ -1,91105 +0,0 @@ - -TBD_TaxiBoard.elf: file format elf32-littlearm - -Sections: -Idx Name Size VMA LMA File off Algn - 0 .isr_vector 000002cc 08000000 08000000 00010000 2**0 - CONTENTS, ALLOC, LOAD, READONLY, DATA - 1 .text 000229f4 080002d0 080002d0 000102d0 2**4 - CONTENTS, ALLOC, LOAD, READONLY, CODE - 2 .rodata 00004224 08022cc4 08022cc4 00032cc4 2**2 - CONTENTS, ALLOC, LOAD, READONLY, DATA - 3 .ARM 00000008 08026ee8 08026ee8 00036ee8 2**2 - CONTENTS, ALLOC, LOAD, READONLY, DATA - 4 .init_array 00000004 08026ef0 08026ef0 00036ef0 2**2 - CONTENTS, ALLOC, LOAD, DATA - 5 .fini_array 00000004 08026ef4 08026ef4 00036ef4 2**2 - CONTENTS, ALLOC, LOAD, DATA - 6 .data 000000a4 24000000 08026ef8 00040000 2**2 - CONTENTS, ALLOC, LOAD, DATA - 7 .bss 0001a68c 240000a4 08026f9c 000400a4 2**2 - ALLOC - 8 ._user_heap_stack 00006000 2401a730 08026f9c 0004a730 2**0 - ALLOC - 9 .lwip_sec 00000160 30000000 30000000 00050000 2**2 - ALLOC - 10 .ARM.attributes 0000002e 00000000 00000000 000400a4 2**0 - CONTENTS, READONLY - 11 .comment 00000043 00000000 00000000 000400d2 2**0 - CONTENTS, READONLY - 12 .debug_info 00046c14 00000000 00000000 00040115 2**0 - CONTENTS, READONLY, DEBUGGING, OCTETS - 13 .debug_abbrev 00009da5 00000000 00000000 00086d29 2**0 - CONTENTS, READONLY, DEBUGGING, OCTETS - 14 .debug_aranges 00003268 00000000 00000000 00090ad0 2**3 - CONTENTS, READONLY, DEBUGGING, OCTETS - 15 .debug_rnglists 000027cc 00000000 00000000 00093d38 2**0 - CONTENTS, READONLY, DEBUGGING, OCTETS - 16 .debug_macro 0004a444 00000000 00000000 00096504 2**0 - CONTENTS, READONLY, DEBUGGING, OCTETS - 17 .debug_line 000516b3 00000000 00000000 000e0948 2**0 - CONTENTS, READONLY, DEBUGGING, OCTETS - 18 .debug_str 00183e93 00000000 00000000 00131ffb 2**0 - CONTENTS, READONLY, DEBUGGING, OCTETS - 19 .debug_frame 0000de4c 00000000 00000000 002b5e90 2**2 - CONTENTS, READONLY, DEBUGGING, OCTETS - 20 .debug_line_str 0000004e 00000000 00000000 002c3cdc 2**0 - CONTENTS, READONLY, DEBUGGING, OCTETS - -Disassembly of section .text: - -080002d0 <__do_global_dtors_aux>: - 80002d0: b510 push {r4, lr} - 80002d2: 4c05 ldr r4, [pc, #20] ; (80002e8 <__do_global_dtors_aux+0x18>) - 80002d4: 7823 ldrb r3, [r4, #0] - 80002d6: b933 cbnz r3, 80002e6 <__do_global_dtors_aux+0x16> - 80002d8: 4b04 ldr r3, [pc, #16] ; (80002ec <__do_global_dtors_aux+0x1c>) - 80002da: b113 cbz r3, 80002e2 <__do_global_dtors_aux+0x12> - 80002dc: 4804 ldr r0, [pc, #16] ; (80002f0 <__do_global_dtors_aux+0x20>) - 80002de: f3af 8000 nop.w - 80002e2: 2301 movs r3, #1 - 80002e4: 7023 strb r3, [r4, #0] - 80002e6: bd10 pop {r4, pc} - 80002e8: 240000a4 .word 0x240000a4 - 80002ec: 00000000 .word 0x00000000 - 80002f0: 08022cac .word 0x08022cac - -080002f4 : - 80002f4: b508 push {r3, lr} - 80002f6: 4b03 ldr r3, [pc, #12] ; (8000304 ) - 80002f8: b11b cbz r3, 8000302 - 80002fa: 4903 ldr r1, [pc, #12] ; (8000308 ) - 80002fc: 4803 ldr r0, [pc, #12] ; (800030c ) - 80002fe: f3af 8000 nop.w - 8000302: bd08 pop {r3, pc} - 8000304: 00000000 .word 0x00000000 - 8000308: 240000a8 .word 0x240000a8 - 800030c: 08022cac .word 0x08022cac - -08000310 : - 8000310: f810 2b01 ldrb.w r2, [r0], #1 - 8000314: f811 3b01 ldrb.w r3, [r1], #1 - 8000318: 2a01 cmp r2, #1 - 800031a: bf28 it cs - 800031c: 429a cmpcs r2, r3 - 800031e: d0f7 beq.n 8000310 - 8000320: 1ad0 subs r0, r2, r3 - 8000322: 4770 bx lr - -08000324 : - 8000324: 4603 mov r3, r0 - 8000326: f813 2b01 ldrb.w r2, [r3], #1 - 800032a: 2a00 cmp r2, #0 - 800032c: d1fb bne.n 8000326 - 800032e: 1a18 subs r0, r3, r0 - 8000330: 3801 subs r0, #1 - 8000332: 4770 bx lr - ... - -08000340 : - 8000340: f001 01ff and.w r1, r1, #255 ; 0xff - 8000344: 2a10 cmp r2, #16 - 8000346: db2b blt.n 80003a0 - 8000348: f010 0f07 tst.w r0, #7 - 800034c: d008 beq.n 8000360 - 800034e: f810 3b01 ldrb.w r3, [r0], #1 - 8000352: 3a01 subs r2, #1 - 8000354: 428b cmp r3, r1 - 8000356: d02d beq.n 80003b4 - 8000358: f010 0f07 tst.w r0, #7 - 800035c: b342 cbz r2, 80003b0 - 800035e: d1f6 bne.n 800034e - 8000360: b4f0 push {r4, r5, r6, r7} - 8000362: ea41 2101 orr.w r1, r1, r1, lsl #8 - 8000366: ea41 4101 orr.w r1, r1, r1, lsl #16 - 800036a: f022 0407 bic.w r4, r2, #7 - 800036e: f07f 0700 mvns.w r7, #0 - 8000372: 2300 movs r3, #0 - 8000374: e8f0 5602 ldrd r5, r6, [r0], #8 - 8000378: 3c08 subs r4, #8 - 800037a: ea85 0501 eor.w r5, r5, r1 - 800037e: ea86 0601 eor.w r6, r6, r1 - 8000382: fa85 f547 uadd8 r5, r5, r7 - 8000386: faa3 f587 sel r5, r3, r7 - 800038a: fa86 f647 uadd8 r6, r6, r7 - 800038e: faa5 f687 sel r6, r5, r7 - 8000392: b98e cbnz r6, 80003b8 - 8000394: d1ee bne.n 8000374 - 8000396: bcf0 pop {r4, r5, r6, r7} - 8000398: f001 01ff and.w r1, r1, #255 ; 0xff - 800039c: f002 0207 and.w r2, r2, #7 - 80003a0: b132 cbz r2, 80003b0 - 80003a2: f810 3b01 ldrb.w r3, [r0], #1 - 80003a6: 3a01 subs r2, #1 - 80003a8: ea83 0301 eor.w r3, r3, r1 - 80003ac: b113 cbz r3, 80003b4 - 80003ae: d1f8 bne.n 80003a2 - 80003b0: 2000 movs r0, #0 - 80003b2: 4770 bx lr - 80003b4: 3801 subs r0, #1 - 80003b6: 4770 bx lr - 80003b8: 2d00 cmp r5, #0 - 80003ba: bf06 itte eq - 80003bc: 4635 moveq r5, r6 - 80003be: 3803 subeq r0, #3 - 80003c0: 3807 subne r0, #7 - 80003c2: f015 0f01 tst.w r5, #1 - 80003c6: d107 bne.n 80003d8 - 80003c8: 3001 adds r0, #1 - 80003ca: f415 7f80 tst.w r5, #256 ; 0x100 - 80003ce: bf02 ittt eq - 80003d0: 3001 addeq r0, #1 - 80003d2: f415 3fc0 tsteq.w r5, #98304 ; 0x18000 - 80003d6: 3001 addeq r0, #1 - 80003d8: bcf0 pop {r4, r5, r6, r7} - 80003da: 3801 subs r0, #1 - 80003dc: 4770 bx lr - 80003de: bf00 nop - -080003e0 <__aeabi_uldivmod>: - 80003e0: b953 cbnz r3, 80003f8 <__aeabi_uldivmod+0x18> - 80003e2: b94a cbnz r2, 80003f8 <__aeabi_uldivmod+0x18> - 80003e4: 2900 cmp r1, #0 - 80003e6: bf08 it eq - 80003e8: 2800 cmpeq r0, #0 - 80003ea: bf1c itt ne - 80003ec: f04f 31ff movne.w r1, #4294967295 - 80003f0: f04f 30ff movne.w r0, #4294967295 - 80003f4: f000 b970 b.w 80006d8 <__aeabi_idiv0> - 80003f8: f1ad 0c08 sub.w ip, sp, #8 - 80003fc: e96d ce04 strd ip, lr, [sp, #-16]! - 8000400: f000 f806 bl 8000410 <__udivmoddi4> - 8000404: f8dd e004 ldr.w lr, [sp, #4] - 8000408: e9dd 2302 ldrd r2, r3, [sp, #8] - 800040c: b004 add sp, #16 - 800040e: 4770 bx lr - -08000410 <__udivmoddi4>: - 8000410: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} - 8000414: 9e08 ldr r6, [sp, #32] - 8000416: 460d mov r5, r1 - 8000418: 4604 mov r4, r0 - 800041a: 460f mov r7, r1 - 800041c: 2b00 cmp r3, #0 - 800041e: d14a bne.n 80004b6 <__udivmoddi4+0xa6> - 8000420: 428a cmp r2, r1 - 8000422: 4694 mov ip, r2 - 8000424: d965 bls.n 80004f2 <__udivmoddi4+0xe2> - 8000426: fab2 f382 clz r3, r2 - 800042a: b143 cbz r3, 800043e <__udivmoddi4+0x2e> - 800042c: fa02 fc03 lsl.w ip, r2, r3 - 8000430: f1c3 0220 rsb r2, r3, #32 - 8000434: 409f lsls r7, r3 - 8000436: fa20 f202 lsr.w r2, r0, r2 - 800043a: 4317 orrs r7, r2 - 800043c: 409c lsls r4, r3 - 800043e: ea4f 4e1c mov.w lr, ip, lsr #16 - 8000442: fa1f f58c uxth.w r5, ip - 8000446: fbb7 f1fe udiv r1, r7, lr - 800044a: 0c22 lsrs r2, r4, #16 - 800044c: fb0e 7711 mls r7, lr, r1, r7 - 8000450: ea42 4207 orr.w r2, r2, r7, lsl #16 - 8000454: fb01 f005 mul.w r0, r1, r5 - 8000458: 4290 cmp r0, r2 - 800045a: d90a bls.n 8000472 <__udivmoddi4+0x62> - 800045c: eb1c 0202 adds.w r2, ip, r2 - 8000460: f101 37ff add.w r7, r1, #4294967295 - 8000464: f080 811c bcs.w 80006a0 <__udivmoddi4+0x290> - 8000468: 4290 cmp r0, r2 - 800046a: f240 8119 bls.w 80006a0 <__udivmoddi4+0x290> - 800046e: 3902 subs r1, #2 - 8000470: 4462 add r2, ip - 8000472: 1a12 subs r2, r2, r0 - 8000474: b2a4 uxth r4, r4 - 8000476: fbb2 f0fe udiv r0, r2, lr - 800047a: fb0e 2210 mls r2, lr, r0, r2 - 800047e: ea44 4402 orr.w r4, r4, r2, lsl #16 - 8000482: fb00 f505 mul.w r5, r0, r5 - 8000486: 42a5 cmp r5, r4 - 8000488: d90a bls.n 80004a0 <__udivmoddi4+0x90> - 800048a: eb1c 0404 adds.w r4, ip, r4 - 800048e: f100 32ff add.w r2, r0, #4294967295 - 8000492: f080 8107 bcs.w 80006a4 <__udivmoddi4+0x294> - 8000496: 42a5 cmp r5, r4 - 8000498: f240 8104 bls.w 80006a4 <__udivmoddi4+0x294> - 800049c: 4464 add r4, ip - 800049e: 3802 subs r0, #2 - 80004a0: ea40 4001 orr.w r0, r0, r1, lsl #16 - 80004a4: 1b64 subs r4, r4, r5 - 80004a6: 2100 movs r1, #0 - 80004a8: b11e cbz r6, 80004b2 <__udivmoddi4+0xa2> - 80004aa: 40dc lsrs r4, r3 - 80004ac: 2300 movs r3, #0 - 80004ae: e9c6 4300 strd r4, r3, [r6] - 80004b2: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} - 80004b6: 428b cmp r3, r1 - 80004b8: d908 bls.n 80004cc <__udivmoddi4+0xbc> - 80004ba: 2e00 cmp r6, #0 - 80004bc: f000 80ed beq.w 800069a <__udivmoddi4+0x28a> - 80004c0: 2100 movs r1, #0 - 80004c2: e9c6 0500 strd r0, r5, [r6] - 80004c6: 4608 mov r0, r1 - 80004c8: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} - 80004cc: fab3 f183 clz r1, r3 - 80004d0: 2900 cmp r1, #0 - 80004d2: d149 bne.n 8000568 <__udivmoddi4+0x158> - 80004d4: 42ab cmp r3, r5 - 80004d6: d302 bcc.n 80004de <__udivmoddi4+0xce> - 80004d8: 4282 cmp r2, r0 - 80004da: f200 80f8 bhi.w 80006ce <__udivmoddi4+0x2be> - 80004de: 1a84 subs r4, r0, r2 - 80004e0: eb65 0203 sbc.w r2, r5, r3 - 80004e4: 2001 movs r0, #1 - 80004e6: 4617 mov r7, r2 - 80004e8: 2e00 cmp r6, #0 - 80004ea: d0e2 beq.n 80004b2 <__udivmoddi4+0xa2> - 80004ec: e9c6 4700 strd r4, r7, [r6] - 80004f0: e7df b.n 80004b2 <__udivmoddi4+0xa2> - 80004f2: b902 cbnz r2, 80004f6 <__udivmoddi4+0xe6> - 80004f4: deff udf #255 ; 0xff - 80004f6: fab2 f382 clz r3, r2 - 80004fa: 2b00 cmp r3, #0 - 80004fc: f040 8090 bne.w 8000620 <__udivmoddi4+0x210> - 8000500: 1a8a subs r2, r1, r2 - 8000502: ea4f 471c mov.w r7, ip, lsr #16 - 8000506: fa1f fe8c uxth.w lr, ip - 800050a: 2101 movs r1, #1 - 800050c: fbb2 f5f7 udiv r5, r2, r7 - 8000510: fb07 2015 mls r0, r7, r5, r2 - 8000514: 0c22 lsrs r2, r4, #16 - 8000516: ea42 4200 orr.w r2, r2, r0, lsl #16 - 800051a: fb0e f005 mul.w r0, lr, r5 - 800051e: 4290 cmp r0, r2 - 8000520: d908 bls.n 8000534 <__udivmoddi4+0x124> - 8000522: eb1c 0202 adds.w r2, ip, r2 - 8000526: f105 38ff add.w r8, r5, #4294967295 - 800052a: d202 bcs.n 8000532 <__udivmoddi4+0x122> - 800052c: 4290 cmp r0, r2 - 800052e: f200 80cb bhi.w 80006c8 <__udivmoddi4+0x2b8> - 8000532: 4645 mov r5, r8 - 8000534: 1a12 subs r2, r2, r0 - 8000536: b2a4 uxth r4, r4 - 8000538: fbb2 f0f7 udiv r0, r2, r7 - 800053c: fb07 2210 mls r2, r7, r0, r2 - 8000540: ea44 4402 orr.w r4, r4, r2, lsl #16 - 8000544: fb0e fe00 mul.w lr, lr, r0 - 8000548: 45a6 cmp lr, r4 - 800054a: d908 bls.n 800055e <__udivmoddi4+0x14e> - 800054c: eb1c 0404 adds.w r4, ip, r4 - 8000550: f100 32ff add.w r2, r0, #4294967295 - 8000554: d202 bcs.n 800055c <__udivmoddi4+0x14c> - 8000556: 45a6 cmp lr, r4 - 8000558: f200 80bb bhi.w 80006d2 <__udivmoddi4+0x2c2> - 800055c: 4610 mov r0, r2 - 800055e: eba4 040e sub.w r4, r4, lr - 8000562: ea40 4005 orr.w r0, r0, r5, lsl #16 - 8000566: e79f b.n 80004a8 <__udivmoddi4+0x98> - 8000568: f1c1 0720 rsb r7, r1, #32 - 800056c: 408b lsls r3, r1 - 800056e: fa22 fc07 lsr.w ip, r2, r7 - 8000572: ea4c 0c03 orr.w ip, ip, r3 - 8000576: fa05 f401 lsl.w r4, r5, r1 - 800057a: fa20 f307 lsr.w r3, r0, r7 - 800057e: 40fd lsrs r5, r7 - 8000580: ea4f 491c mov.w r9, ip, lsr #16 - 8000584: 4323 orrs r3, r4 - 8000586: fbb5 f8f9 udiv r8, r5, r9 - 800058a: fa1f fe8c uxth.w lr, ip - 800058e: fb09 5518 mls r5, r9, r8, r5 - 8000592: 0c1c lsrs r4, r3, #16 - 8000594: ea44 4405 orr.w r4, r4, r5, lsl #16 - 8000598: fb08 f50e mul.w r5, r8, lr - 800059c: 42a5 cmp r5, r4 - 800059e: fa02 f201 lsl.w r2, r2, r1 - 80005a2: fa00 f001 lsl.w r0, r0, r1 - 80005a6: d90b bls.n 80005c0 <__udivmoddi4+0x1b0> - 80005a8: eb1c 0404 adds.w r4, ip, r4 - 80005ac: f108 3aff add.w sl, r8, #4294967295 - 80005b0: f080 8088 bcs.w 80006c4 <__udivmoddi4+0x2b4> - 80005b4: 42a5 cmp r5, r4 - 80005b6: f240 8085 bls.w 80006c4 <__udivmoddi4+0x2b4> - 80005ba: f1a8 0802 sub.w r8, r8, #2 - 80005be: 4464 add r4, ip - 80005c0: 1b64 subs r4, r4, r5 - 80005c2: b29d uxth r5, r3 - 80005c4: fbb4 f3f9 udiv r3, r4, r9 - 80005c8: fb09 4413 mls r4, r9, r3, r4 - 80005cc: ea45 4404 orr.w r4, r5, r4, lsl #16 - 80005d0: fb03 fe0e mul.w lr, r3, lr - 80005d4: 45a6 cmp lr, r4 - 80005d6: d908 bls.n 80005ea <__udivmoddi4+0x1da> - 80005d8: eb1c 0404 adds.w r4, ip, r4 - 80005dc: f103 35ff add.w r5, r3, #4294967295 - 80005e0: d26c bcs.n 80006bc <__udivmoddi4+0x2ac> - 80005e2: 45a6 cmp lr, r4 - 80005e4: d96a bls.n 80006bc <__udivmoddi4+0x2ac> - 80005e6: 3b02 subs r3, #2 - 80005e8: 4464 add r4, ip - 80005ea: ea43 4308 orr.w r3, r3, r8, lsl #16 - 80005ee: fba3 9502 umull r9, r5, r3, r2 - 80005f2: eba4 040e sub.w r4, r4, lr - 80005f6: 42ac cmp r4, r5 - 80005f8: 46c8 mov r8, r9 - 80005fa: 46ae mov lr, r5 - 80005fc: d356 bcc.n 80006ac <__udivmoddi4+0x29c> - 80005fe: d053 beq.n 80006a8 <__udivmoddi4+0x298> - 8000600: b156 cbz r6, 8000618 <__udivmoddi4+0x208> - 8000602: ebb0 0208 subs.w r2, r0, r8 - 8000606: eb64 040e sbc.w r4, r4, lr - 800060a: fa04 f707 lsl.w r7, r4, r7 - 800060e: 40ca lsrs r2, r1 - 8000610: 40cc lsrs r4, r1 - 8000612: 4317 orrs r7, r2 - 8000614: e9c6 7400 strd r7, r4, [r6] - 8000618: 4618 mov r0, r3 - 800061a: 2100 movs r1, #0 - 800061c: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} - 8000620: f1c3 0120 rsb r1, r3, #32 - 8000624: fa02 fc03 lsl.w ip, r2, r3 - 8000628: fa20 f201 lsr.w r2, r0, r1 - 800062c: fa25 f101 lsr.w r1, r5, r1 - 8000630: 409d lsls r5, r3 - 8000632: 432a orrs r2, r5 - 8000634: ea4f 471c mov.w r7, ip, lsr #16 - 8000638: fa1f fe8c uxth.w lr, ip - 800063c: fbb1 f0f7 udiv r0, r1, r7 - 8000640: fb07 1510 mls r5, r7, r0, r1 - 8000644: 0c11 lsrs r1, r2, #16 - 8000646: ea41 4105 orr.w r1, r1, r5, lsl #16 - 800064a: fb00 f50e mul.w r5, r0, lr - 800064e: 428d cmp r5, r1 - 8000650: fa04 f403 lsl.w r4, r4, r3 - 8000654: d908 bls.n 8000668 <__udivmoddi4+0x258> - 8000656: eb1c 0101 adds.w r1, ip, r1 - 800065a: f100 38ff add.w r8, r0, #4294967295 - 800065e: d22f bcs.n 80006c0 <__udivmoddi4+0x2b0> - 8000660: 428d cmp r5, r1 - 8000662: d92d bls.n 80006c0 <__udivmoddi4+0x2b0> - 8000664: 3802 subs r0, #2 - 8000666: 4461 add r1, ip - 8000668: 1b49 subs r1, r1, r5 - 800066a: b292 uxth r2, r2 - 800066c: fbb1 f5f7 udiv r5, r1, r7 - 8000670: fb07 1115 mls r1, r7, r5, r1 - 8000674: ea42 4201 orr.w r2, r2, r1, lsl #16 - 8000678: fb05 f10e mul.w r1, r5, lr - 800067c: 4291 cmp r1, r2 - 800067e: d908 bls.n 8000692 <__udivmoddi4+0x282> - 8000680: eb1c 0202 adds.w r2, ip, r2 - 8000684: f105 38ff add.w r8, r5, #4294967295 - 8000688: d216 bcs.n 80006b8 <__udivmoddi4+0x2a8> - 800068a: 4291 cmp r1, r2 - 800068c: d914 bls.n 80006b8 <__udivmoddi4+0x2a8> - 800068e: 3d02 subs r5, #2 - 8000690: 4462 add r2, ip - 8000692: 1a52 subs r2, r2, r1 - 8000694: ea45 4100 orr.w r1, r5, r0, lsl #16 - 8000698: e738 b.n 800050c <__udivmoddi4+0xfc> - 800069a: 4631 mov r1, r6 - 800069c: 4630 mov r0, r6 - 800069e: e708 b.n 80004b2 <__udivmoddi4+0xa2> - 80006a0: 4639 mov r1, r7 - 80006a2: e6e6 b.n 8000472 <__udivmoddi4+0x62> - 80006a4: 4610 mov r0, r2 - 80006a6: e6fb b.n 80004a0 <__udivmoddi4+0x90> - 80006a8: 4548 cmp r0, r9 - 80006aa: d2a9 bcs.n 8000600 <__udivmoddi4+0x1f0> - 80006ac: ebb9 0802 subs.w r8, r9, r2 - 80006b0: eb65 0e0c sbc.w lr, r5, ip - 80006b4: 3b01 subs r3, #1 - 80006b6: e7a3 b.n 8000600 <__udivmoddi4+0x1f0> - 80006b8: 4645 mov r5, r8 - 80006ba: e7ea b.n 8000692 <__udivmoddi4+0x282> - 80006bc: 462b mov r3, r5 - 80006be: e794 b.n 80005ea <__udivmoddi4+0x1da> - 80006c0: 4640 mov r0, r8 - 80006c2: e7d1 b.n 8000668 <__udivmoddi4+0x258> - 80006c4: 46d0 mov r8, sl - 80006c6: e77b b.n 80005c0 <__udivmoddi4+0x1b0> - 80006c8: 3d02 subs r5, #2 - 80006ca: 4462 add r2, ip - 80006cc: e732 b.n 8000534 <__udivmoddi4+0x124> - 80006ce: 4608 mov r0, r1 - 80006d0: e70a b.n 80004e8 <__udivmoddi4+0xd8> - 80006d2: 4464 add r4, ip - 80006d4: 3802 subs r0, #2 - 80006d6: e742 b.n 800055e <__udivmoddi4+0x14e> - -080006d8 <__aeabi_idiv0>: - 80006d8: 4770 bx lr - 80006da: bf00 nop - -080006dc : -/* Hook prototypes */ -void vApplicationStackOverflowHook(xTaskHandle xTask, signed char *pcTaskName); - -/* USER CODE BEGIN 4 */ -__weak void vApplicationStackOverflowHook(xTaskHandle xTask, signed char *pcTaskName) -{ - 80006dc: b480 push {r7} - 80006de: b083 sub sp, #12 - 80006e0: af00 add r7, sp, #0 - 80006e2: 6078 str r0, [r7, #4] - 80006e4: 6039 str r1, [r7, #0] - /* Run time stack overflow checking is performed if - configCHECK_FOR_STACK_OVERFLOW is defined to 1 or 2. This hook function is - called if a stack overflow is detected. */ -} - 80006e6: bf00 nop - 80006e8: 370c adds r7, #12 - 80006ea: 46bd mov sp, r7 - 80006ec: f85d 7b04 ldr.w r7, [sp], #4 - 80006f0: 4770 bx lr - ... - -080006f4 : -/* USER CODE BEGIN GET_IDLE_TASK_MEMORY */ -static StaticTask_t xIdleTaskTCBBuffer; -static StackType_t xIdleStack[configMINIMAL_STACK_SIZE]; - -void vApplicationGetIdleTaskMemory( StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize ) -{ - 80006f4: b480 push {r7} - 80006f6: b085 sub sp, #20 - 80006f8: af00 add r7, sp, #0 - 80006fa: 60f8 str r0, [r7, #12] - 80006fc: 60b9 str r1, [r7, #8] - 80006fe: 607a str r2, [r7, #4] - *ppxIdleTaskTCBBuffer = &xIdleTaskTCBBuffer; - 8000700: 68fb ldr r3, [r7, #12] - 8000702: 4a07 ldr r2, [pc, #28] ; (8000720 ) - 8000704: 601a str r2, [r3, #0] - *ppxIdleTaskStackBuffer = &xIdleStack[0]; - 8000706: 68bb ldr r3, [r7, #8] - 8000708: 4a06 ldr r2, [pc, #24] ; (8000724 ) - 800070a: 601a str r2, [r3, #0] - *pulIdleTaskStackSize = configMINIMAL_STACK_SIZE; - 800070c: 687b ldr r3, [r7, #4] - 800070e: f44f 7280 mov.w r2, #256 ; 0x100 - 8000712: 601a str r2, [r3, #0] - /* place for user code */ -} - 8000714: bf00 nop - 8000716: 3714 adds r7, #20 - 8000718: 46bd mov sp, r7 - 800071a: f85d 7b04 ldr.w r7, [sp], #4 - 800071e: 4770 bx lr - 8000720: 240000c0 .word 0x240000c0 - 8000724: 24000114 .word 0x24000114 - -08000728 : -/* USER CODE BEGIN GET_TIMER_TASK_MEMORY */ -static StaticTask_t xTimerTaskTCBBuffer; -static StackType_t xTimerStack[configTIMER_TASK_STACK_DEPTH]; - -void vApplicationGetTimerTaskMemory( StaticTask_t **ppxTimerTaskTCBBuffer, StackType_t **ppxTimerTaskStackBuffer, uint32_t *pulTimerTaskStackSize ) -{ - 8000728: b480 push {r7} - 800072a: b085 sub sp, #20 - 800072c: af00 add r7, sp, #0 - 800072e: 60f8 str r0, [r7, #12] - 8000730: 60b9 str r1, [r7, #8] - 8000732: 607a str r2, [r7, #4] - *ppxTimerTaskTCBBuffer = &xTimerTaskTCBBuffer; - 8000734: 68fb ldr r3, [r7, #12] - 8000736: 4a07 ldr r2, [pc, #28] ; (8000754 ) - 8000738: 601a str r2, [r3, #0] - *ppxTimerTaskStackBuffer = &xTimerStack[0]; - 800073a: 68bb ldr r3, [r7, #8] - 800073c: 4a06 ldr r2, [pc, #24] ; (8000758 ) - 800073e: 601a str r2, [r3, #0] - *pulTimerTaskStackSize = configTIMER_TASK_STACK_DEPTH; - 8000740: 687b ldr r3, [r7, #4] - 8000742: f44f 7200 mov.w r2, #512 ; 0x200 - 8000746: 601a str r2, [r3, #0] - /* place for user code */ -} - 8000748: bf00 nop - 800074a: 3714 adds r7, #20 - 800074c: 46bd mov sp, r7 - 800074e: f85d 7b04 ldr.w r7, [sp], #4 - 8000752: 4770 bx lr - 8000754: 24000514 .word 0x24000514 - 8000758: 24000568 .word 0x24000568 - -0800075c : - \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted. - \param [in] ch Character to transmit. - \returns Character to transmit. - */ -__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch) -{ - 800075c: b480 push {r7} - 800075e: b083 sub sp, #12 - 8000760: af00 add r7, sp, #0 - 8000762: 6078 str r0, [r7, #4] - if (((ITM->TCR & ITM_TCR_ITMENA_Msk) != 0UL) && /* ITM enabled */ - 8000764: f04f 4360 mov.w r3, #3758096384 ; 0xe0000000 - 8000768: f8d3 3e80 ldr.w r3, [r3, #3712] ; 0xe80 - 800076c: f003 0301 and.w r3, r3, #1 - 8000770: 2b00 cmp r3, #0 - 8000772: d013 beq.n 800079c - ((ITM->TER & 1UL ) != 0UL) ) /* ITM Port #0 enabled */ - 8000774: f04f 4360 mov.w r3, #3758096384 ; 0xe0000000 - 8000778: f8d3 3e00 ldr.w r3, [r3, #3584] ; 0xe00 - 800077c: f003 0301 and.w r3, r3, #1 - if (((ITM->TCR & ITM_TCR_ITMENA_Msk) != 0UL) && /* ITM enabled */ - 8000780: 2b00 cmp r3, #0 - 8000782: d00b beq.n 800079c - { - while (ITM->PORT[0U].u32 == 0UL) - 8000784: e000 b.n 8000788 - { - __NOP(); - 8000786: bf00 nop - while (ITM->PORT[0U].u32 == 0UL) - 8000788: f04f 4360 mov.w r3, #3758096384 ; 0xe0000000 - 800078c: 681b ldr r3, [r3, #0] - 800078e: 2b00 cmp r3, #0 - 8000790: d0f9 beq.n 8000786 - } - ITM->PORT[0U].u8 = (uint8_t)ch; - 8000792: f04f 4360 mov.w r3, #3758096384 ; 0xe0000000 - 8000796: 687a ldr r2, [r7, #4] - 8000798: b2d2 uxtb r2, r2 - 800079a: 701a strb r2, [r3, #0] - } - return (ch); - 800079c: 687b ldr r3, [r7, #4] -} - 800079e: 4618 mov r0, r3 - 80007a0: 370c adds r7, #12 - 80007a2: 46bd mov sp, r7 - 80007a4: f85d 7b04 ldr.w r7, [sp], #4 - 80007a8: 4770 bx lr - -080007aa <_write>: - -/* USER CODE END PFP */ - -/* Private user code ---------------------------------------------------------*/ -/* USER CODE BEGIN 0 */ -int _write(int32_t file, uint8_t *ptr, int32_t len) { - 80007aa: b580 push {r7, lr} - 80007ac: b086 sub sp, #24 - 80007ae: af00 add r7, sp, #0 - 80007b0: 60f8 str r0, [r7, #12] - 80007b2: 60b9 str r1, [r7, #8] - 80007b4: 607a str r2, [r7, #4] - for (int32_t i = 0; i < len; ++i) - 80007b6: 2300 movs r3, #0 - 80007b8: 617b str r3, [r7, #20] - 80007ba: e009 b.n 80007d0 <_write+0x26> - ITM_SendChar(*ptr++); - 80007bc: 68bb ldr r3, [r7, #8] - 80007be: 1c5a adds r2, r3, #1 - 80007c0: 60ba str r2, [r7, #8] - 80007c2: 781b ldrb r3, [r3, #0] - 80007c4: 4618 mov r0, r3 - 80007c6: f7ff ffc9 bl 800075c - for (int32_t i = 0; i < len; ++i) - 80007ca: 697b ldr r3, [r7, #20] - 80007cc: 3301 adds r3, #1 - 80007ce: 617b str r3, [r7, #20] - 80007d0: 697a ldr r2, [r7, #20] - 80007d2: 687b ldr r3, [r7, #4] - 80007d4: 429a cmp r2, r3 - 80007d6: dbf1 blt.n 80007bc <_write+0x12> - return len; - 80007d8: 687b ldr r3, [r7, #4] -} - 80007da: 4618 mov r0, r3 - 80007dc: 3718 adds r7, #24 - 80007de: 46bd mov sp, r7 - 80007e0: bd80 pop {r7, pc} - ... - -080007e4
: -/** - * @brief The application entry point. - * @retval int - */ -int main(void) -{ - 80007e4: b5b0 push {r4, r5, r7, lr} - 80007e6: b092 sub sp, #72 ; 0x48 - 80007e8: af00 add r7, sp, #0 - /* USER CODE BEGIN 1 */ - - /* USER CODE END 1 */ - - /* MPU Configuration--------------------------------------------------------*/ - MPU_Config(); - 80007ea: f000 fe13 bl 8001414 - if (SCB->CCR & SCB_CCR_IC_Msk) return; /* return if ICache is already enabled */ - 80007ee: 4b55 ldr r3, [pc, #340] ; (8000944 ) - 80007f0: 695b ldr r3, [r3, #20] - 80007f2: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 80007f6: 2b00 cmp r3, #0 - 80007f8: d11b bne.n 8000832 - \details Acts as a special kind of Data Memory Barrier. - It completes when all explicit memory accesses before this instruction complete. - */ -__STATIC_FORCEINLINE void __DSB(void) -{ - __ASM volatile ("dsb 0xF":::"memory"); - 80007fa: f3bf 8f4f dsb sy -} - 80007fe: bf00 nop - __ASM volatile ("isb 0xF":::"memory"); - 8000800: f3bf 8f6f isb sy -} - 8000804: bf00 nop - SCB->ICIALLU = 0UL; /* invalidate I-Cache */ - 8000806: 4b4f ldr r3, [pc, #316] ; (8000944 ) - 8000808: 2200 movs r2, #0 - 800080a: f8c3 2250 str.w r2, [r3, #592] ; 0x250 - __ASM volatile ("dsb 0xF":::"memory"); - 800080e: f3bf 8f4f dsb sy -} - 8000812: bf00 nop - __ASM volatile ("isb 0xF":::"memory"); - 8000814: f3bf 8f6f isb sy -} - 8000818: bf00 nop - SCB->CCR |= (uint32_t)SCB_CCR_IC_Msk; /* enable I-Cache */ - 800081a: 4b4a ldr r3, [pc, #296] ; (8000944 ) - 800081c: 695b ldr r3, [r3, #20] - 800081e: 4a49 ldr r2, [pc, #292] ; (8000944 ) - 8000820: f443 3300 orr.w r3, r3, #131072 ; 0x20000 - 8000824: 6153 str r3, [r2, #20] - __ASM volatile ("dsb 0xF":::"memory"); - 8000826: f3bf 8f4f dsb sy -} - 800082a: bf00 nop - __ASM volatile ("isb 0xF":::"memory"); - 800082c: f3bf 8f6f isb sy -} - 8000830: e000 b.n 8000834 - if (SCB->CCR & SCB_CCR_IC_Msk) return; /* return if ICache is already enabled */ - 8000832: bf00 nop - if (SCB->CCR & SCB_CCR_DC_Msk) return; /* return if DCache is already enabled */ - 8000834: 4b43 ldr r3, [pc, #268] ; (8000944 ) - 8000836: 695b ldr r3, [r3, #20] - 8000838: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 800083c: 2b00 cmp r3, #0 - 800083e: d138 bne.n 80008b2 - SCB->CSSELR = 0U; /* select Level 1 data cache */ - 8000840: 4b40 ldr r3, [pc, #256] ; (8000944 ) - 8000842: 2200 movs r2, #0 - 8000844: f8c3 2084 str.w r2, [r3, #132] ; 0x84 - __ASM volatile ("dsb 0xF":::"memory"); - 8000848: f3bf 8f4f dsb sy -} - 800084c: bf00 nop - ccsidr = SCB->CCSIDR; - 800084e: 4b3d ldr r3, [pc, #244] ; (8000944 ) - 8000850: f8d3 3080 ldr.w r3, [r3, #128] ; 0x80 - 8000854: 647b str r3, [r7, #68] ; 0x44 - sets = (uint32_t)(CCSIDR_SETS(ccsidr)); - 8000856: 6c7b ldr r3, [r7, #68] ; 0x44 - 8000858: 0b5b lsrs r3, r3, #13 - 800085a: f3c3 030e ubfx r3, r3, #0, #15 - 800085e: 643b str r3, [r7, #64] ; 0x40 - ways = (uint32_t)(CCSIDR_WAYS(ccsidr)); - 8000860: 6c7b ldr r3, [r7, #68] ; 0x44 - 8000862: 08db lsrs r3, r3, #3 - 8000864: f3c3 0309 ubfx r3, r3, #0, #10 - 8000868: 63fb str r3, [r7, #60] ; 0x3c - SCB->DCISW = (((sets << SCB_DCISW_SET_Pos) & SCB_DCISW_SET_Msk) | - 800086a: 6c3b ldr r3, [r7, #64] ; 0x40 - 800086c: 015a lsls r2, r3, #5 - 800086e: f643 73e0 movw r3, #16352 ; 0x3fe0 - 8000872: 4013 ands r3, r2 - ((ways << SCB_DCISW_WAY_Pos) & SCB_DCISW_WAY_Msk) ); - 8000874: 6bfa ldr r2, [r7, #60] ; 0x3c - 8000876: 0792 lsls r2, r2, #30 - SCB->DCISW = (((sets << SCB_DCISW_SET_Pos) & SCB_DCISW_SET_Msk) | - 8000878: 4932 ldr r1, [pc, #200] ; (8000944 ) - 800087a: 4313 orrs r3, r2 - 800087c: f8c1 3260 str.w r3, [r1, #608] ; 0x260 - } while (ways-- != 0U); - 8000880: 6bfb ldr r3, [r7, #60] ; 0x3c - 8000882: 1e5a subs r2, r3, #1 - 8000884: 63fa str r2, [r7, #60] ; 0x3c - 8000886: 2b00 cmp r3, #0 - 8000888: d1ef bne.n 800086a - } while(sets-- != 0U); - 800088a: 6c3b ldr r3, [r7, #64] ; 0x40 - 800088c: 1e5a subs r2, r3, #1 - 800088e: 643a str r2, [r7, #64] ; 0x40 - 8000890: 2b00 cmp r3, #0 - 8000892: d1e5 bne.n 8000860 - __ASM volatile ("dsb 0xF":::"memory"); - 8000894: f3bf 8f4f dsb sy -} - 8000898: bf00 nop - SCB->CCR |= (uint32_t)SCB_CCR_DC_Msk; /* enable D-Cache */ - 800089a: 4b2a ldr r3, [pc, #168] ; (8000944 ) - 800089c: 695b ldr r3, [r3, #20] - 800089e: 4a29 ldr r2, [pc, #164] ; (8000944 ) - 80008a0: f443 3380 orr.w r3, r3, #65536 ; 0x10000 - 80008a4: 6153 str r3, [r2, #20] - __ASM volatile ("dsb 0xF":::"memory"); - 80008a6: f3bf 8f4f dsb sy -} - 80008aa: bf00 nop - __ASM volatile ("isb 0xF":::"memory"); - 80008ac: f3bf 8f6f isb sy -} - 80008b0: e000 b.n 80008b4 - if (SCB->CCR & SCB_CCR_DC_Msk) return; /* return if DCache is already enabled */ - 80008b2: bf00 nop - SCB_EnableDCache(); - - /* MCU Configuration--------------------------------------------------------*/ - - /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ - HAL_Init(); - 80008b4: f001 fd06 bl 80022c4 - /* USER CODE BEGIN Init */ - - /* USER CODE END Init */ - - /* Configure the system clock */ - SystemClock_Config(); - 80008b8: f000 f84e bl 8000958 - /* USER CODE BEGIN SysInit */ - - /* USER CODE END SysInit */ - - /* Initialize all configured peripherals */ - MX_GPIO_Init(); - 80008bc: f000 fbc2 bl 8001044 - MX_DMA_Init(); - 80008c0: f000 fb3c bl 8000f3c - MX_MDMA_Init(); - 80008c4: f000 fb5a bl 8000f7c - MX_FDCAN3_Init(); - 80008c8: f000 f980 bl 8000bcc - MX_SDMMC1_SD_Init(); - 80008cc: f000 f9e4 bl 8000c98 - MX_TIM3_Init(); - 80008d0: f000 fa02 bl 8000cd8 - MX_UART4_Init(); - 80008d4: f000 fa4e bl 8000d74 - MX_UART7_Init(); - 80008d8: f000 fa98 bl 8000e0c - MX_FDCAN1_Init(); - 80008dc: f000 f8aa bl 8000a34 - MX_FDCAN2_Init(); - 80008e0: f000 f90e bl 8000b00 - MX_FATFS_Init(); - 80008e4: f00e f8b4 bl 800ea50 - MX_UART8_Init(); - 80008e8: f000 fadc bl 8000ea4 - /* add queues, ... */ - /* USER CODE END RTOS_QUEUES */ - - /* Create the thread(s) */ - /* definition and creation of defaultTask */ - osThreadStaticDef(defaultTask, StartDefaultTask, osPriorityNormal, 0, 4096, defaultTaskBuffer, &defaultTaskControlBlock); - 80008ec: 4b16 ldr r3, [pc, #88] ; (8000948 ) - 80008ee: f107 0420 add.w r4, r7, #32 - 80008f2: 461d mov r5, r3 - 80008f4: cd0f ldmia r5!, {r0, r1, r2, r3} - 80008f6: c40f stmia r4!, {r0, r1, r2, r3} - 80008f8: e895 0007 ldmia.w r5, {r0, r1, r2} - 80008fc: e884 0007 stmia.w r4, {r0, r1, r2} - defaultTaskHandle = osThreadCreate(osThread(defaultTask), NULL); - 8000900: f107 0320 add.w r3, r7, #32 - 8000904: 2100 movs r1, #0 - 8000906: 4618 mov r0, r3 - 8000908: f00f fcee bl 80102e8 - 800090c: 4603 mov r3, r0 - 800090e: 4a0f ldr r2, [pc, #60] ; (800094c ) - 8000910: 6013 str r3, [r2, #0] - - /* definition and creation of debugTask */ - osThreadStaticDef(debugTask, StartDebugTask, osPriorityNormal, 0, 2048, debugTaskBuffer, &debugTaskControlBlock); - 8000912: 4b0f ldr r3, [pc, #60] ; (8000950 ) - 8000914: 1d3c adds r4, r7, #4 - 8000916: 461d mov r5, r3 - 8000918: cd0f ldmia r5!, {r0, r1, r2, r3} - 800091a: c40f stmia r4!, {r0, r1, r2, r3} - 800091c: e895 0007 ldmia.w r5, {r0, r1, r2} - 8000920: e884 0007 stmia.w r4, {r0, r1, r2} - debugTaskHandle = osThreadCreate(osThread(debugTask), NULL); - 8000924: 1d3b adds r3, r7, #4 - 8000926: 2100 movs r1, #0 - 8000928: 4618 mov r0, r3 - 800092a: f00f fcdd bl 80102e8 - 800092e: 4603 mov r3, r0 - 8000930: 4a08 ldr r2, [pc, #32] ; (8000954 ) - 8000932: 6013 str r3, [r2, #0] - /* USER CODE BEGIN RTOS_THREADS */ - /* add threads, ... */ - /* USER CODE END RTOS_THREADS */ - - /* Start scheduler */ - osKernelStart(); - 8000934: f00f fcb5 bl 80102a2 - 8000938: 2300 movs r3, #0 - - /* USER CODE BEGIN 3 */ - } -#endif - /* USER CODE END 3 */ -} - 800093a: 4618 mov r0, r3 - 800093c: 3748 adds r7, #72 ; 0x48 - 800093e: 46bd mov sp, r7 - 8000940: bdb0 pop {r4, r5, r7, pc} - 8000942: bf00 nop - 8000944: e000ed00 .word 0xe000ed00 - 8000948: 08022cf0 .word 0x08022cf0 - 800094c: 240012b0 .word 0x240012b0 - 8000950: 08022d18 .word 0x08022d18 - 8000954: 24005308 .word 0x24005308 - -08000958 : -/** - * @brief System Clock Configuration - * @retval None - */ -void SystemClock_Config(void) -{ - 8000958: b580 push {r7, lr} - 800095a: b09c sub sp, #112 ; 0x70 - 800095c: af00 add r7, sp, #0 - RCC_OscInitTypeDef RCC_OscInitStruct = {0}; - 800095e: f107 0324 add.w r3, r7, #36 ; 0x24 - 8000962: 224c movs r2, #76 ; 0x4c - 8000964: 2100 movs r1, #0 - 8000966: 4618 mov r0, r3 - 8000968: f021 f9ba bl 8021ce0 - RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; - 800096c: 1d3b adds r3, r7, #4 - 800096e: 2220 movs r2, #32 - 8000970: 2100 movs r1, #0 - 8000972: 4618 mov r0, r3 - 8000974: f021 f9b4 bl 8021ce0 - - /** Supply configuration update enable - */ - HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY); - 8000978: 2002 movs r0, #2 - 800097a: f006 fb7d bl 8007078 - - /** Configure the main internal regulator output voltage - */ - __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE0); - 800097e: 2300 movs r3, #0 - 8000980: 603b str r3, [r7, #0] - 8000982: 4b2b ldr r3, [pc, #172] ; (8000a30 ) - 8000984: 699b ldr r3, [r3, #24] - 8000986: 4a2a ldr r2, [pc, #168] ; (8000a30 ) - 8000988: f423 4340 bic.w r3, r3, #49152 ; 0xc000 - 800098c: 6193 str r3, [r2, #24] - 800098e: 4b28 ldr r3, [pc, #160] ; (8000a30 ) - 8000990: 699b ldr r3, [r3, #24] - 8000992: f403 4340 and.w r3, r3, #49152 ; 0xc000 - 8000996: 603b str r3, [r7, #0] - 8000998: 683b ldr r3, [r7, #0] - - while(!__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY)) {} - 800099a: bf00 nop - 800099c: 4b24 ldr r3, [pc, #144] ; (8000a30 ) - 800099e: 699b ldr r3, [r3, #24] - 80009a0: f403 5300 and.w r3, r3, #8192 ; 0x2000 - 80009a4: f5b3 5f00 cmp.w r3, #8192 ; 0x2000 - 80009a8: d1f8 bne.n 800099c - - /** Initializes the RCC Oscillators according to the specified parameters - * in the RCC_OscInitTypeDef structure. - */ - RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE; - 80009aa: 2301 movs r3, #1 - 80009ac: 627b str r3, [r7, #36] ; 0x24 - RCC_OscInitStruct.HSEState = RCC_HSE_ON; - 80009ae: f44f 3380 mov.w r3, #65536 ; 0x10000 - 80009b2: 62bb str r3, [r7, #40] ; 0x28 - RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; - 80009b4: 2302 movs r3, #2 - 80009b6: 64bb str r3, [r7, #72] ; 0x48 - RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE; - 80009b8: 2302 movs r3, #2 - 80009ba: 64fb str r3, [r7, #76] ; 0x4c - RCC_OscInitStruct.PLL.PLLM = 5; - 80009bc: 2305 movs r3, #5 - 80009be: 653b str r3, [r7, #80] ; 0x50 - RCC_OscInitStruct.PLL.PLLN = 96; - 80009c0: 2360 movs r3, #96 ; 0x60 - 80009c2: 657b str r3, [r7, #84] ; 0x54 - RCC_OscInitStruct.PLL.PLLP = 1; - 80009c4: 2301 movs r3, #1 - 80009c6: 65bb str r3, [r7, #88] ; 0x58 - RCC_OscInitStruct.PLL.PLLQ = 4; - 80009c8: 2304 movs r3, #4 - 80009ca: 65fb str r3, [r7, #92] ; 0x5c - RCC_OscInitStruct.PLL.PLLR = 2; - 80009cc: 2302 movs r3, #2 - 80009ce: 663b str r3, [r7, #96] ; 0x60 - RCC_OscInitStruct.PLL.PLLRGE = RCC_PLL1VCIRANGE_2; - 80009d0: 2308 movs r3, #8 - 80009d2: 667b str r3, [r7, #100] ; 0x64 - RCC_OscInitStruct.PLL.PLLVCOSEL = RCC_PLL1VCOWIDE; - 80009d4: 2300 movs r3, #0 - 80009d6: 66bb str r3, [r7, #104] ; 0x68 - RCC_OscInitStruct.PLL.PLLFRACN = 0; - 80009d8: 2300 movs r3, #0 - 80009da: 66fb str r3, [r7, #108] ; 0x6c - if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) - 80009dc: f107 0324 add.w r3, r7, #36 ; 0x24 - 80009e0: 4618 mov r0, r3 - 80009e2: f006 fb83 bl 80070ec - 80009e6: 4603 mov r3, r0 - 80009e8: 2b00 cmp r3, #0 - 80009ea: d001 beq.n 80009f0 - { - Error_Handler(); - 80009ec: f000 fd82 bl 80014f4 - } - - /** Initializes the CPU, AHB and APB buses clocks - */ - RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK - 80009f0: 233f movs r3, #63 ; 0x3f - 80009f2: 607b str r3, [r7, #4] - |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2 - |RCC_CLOCKTYPE_D3PCLK1|RCC_CLOCKTYPE_D1PCLK1; - RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; - 80009f4: 2303 movs r3, #3 - 80009f6: 60bb str r3, [r7, #8] - RCC_ClkInitStruct.SYSCLKDivider = RCC_SYSCLK_DIV1; - 80009f8: 2300 movs r3, #0 - 80009fa: 60fb str r3, [r7, #12] - RCC_ClkInitStruct.AHBCLKDivider = RCC_HCLK_DIV2; - 80009fc: 2308 movs r3, #8 - 80009fe: 613b str r3, [r7, #16] - RCC_ClkInitStruct.APB3CLKDivider = RCC_APB3_DIV2; - 8000a00: 2340 movs r3, #64 ; 0x40 - 8000a02: 617b str r3, [r7, #20] - RCC_ClkInitStruct.APB1CLKDivider = RCC_APB1_DIV2; - 8000a04: 2340 movs r3, #64 ; 0x40 - 8000a06: 61bb str r3, [r7, #24] - RCC_ClkInitStruct.APB2CLKDivider = RCC_APB2_DIV2; - 8000a08: f44f 6380 mov.w r3, #1024 ; 0x400 - 8000a0c: 61fb str r3, [r7, #28] - RCC_ClkInitStruct.APB4CLKDivider = RCC_APB4_DIV2; - 8000a0e: 2340 movs r3, #64 ; 0x40 - 8000a10: 623b str r3, [r7, #32] - - if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_3) != HAL_OK) - 8000a12: 1d3b adds r3, r7, #4 - 8000a14: 2103 movs r1, #3 - 8000a16: 4618 mov r0, r3 - 8000a18: f006 ff42 bl 80078a0 - 8000a1c: 4603 mov r3, r0 - 8000a1e: 2b00 cmp r3, #0 - 8000a20: d001 beq.n 8000a26 - { - Error_Handler(); - 8000a22: f000 fd67 bl 80014f4 - } -} - 8000a26: bf00 nop - 8000a28: 3770 adds r7, #112 ; 0x70 - 8000a2a: 46bd mov sp, r7 - 8000a2c: bd80 pop {r7, pc} - 8000a2e: bf00 nop - 8000a30: 58024800 .word 0x58024800 - -08000a34 : - * @brief FDCAN1 Initialization Function - * @param None - * @retval None - */ -static void MX_FDCAN1_Init(void) -{ - 8000a34: b580 push {r7, lr} - 8000a36: af00 add r7, sp, #0 - /* USER CODE END FDCAN1_Init 0 */ - - /* USER CODE BEGIN FDCAN1_Init 1 */ - - /* USER CODE END FDCAN1_Init 1 */ - hfdcan1.Instance = FDCAN1; - 8000a38: 4b2f ldr r3, [pc, #188] ; (8000af8 ) - 8000a3a: 4a30 ldr r2, [pc, #192] ; (8000afc ) - 8000a3c: 601a str r2, [r3, #0] - hfdcan1.Init.FrameFormat = FDCAN_FRAME_FD_BRS; - 8000a3e: 4b2e ldr r3, [pc, #184] ; (8000af8 ) - 8000a40: f44f 7240 mov.w r2, #768 ; 0x300 - 8000a44: 609a str r2, [r3, #8] - hfdcan1.Init.Mode = FDCAN_MODE_NORMAL; - 8000a46: 4b2c ldr r3, [pc, #176] ; (8000af8 ) - 8000a48: 2200 movs r2, #0 - 8000a4a: 60da str r2, [r3, #12] - hfdcan1.Init.AutoRetransmission = DISABLE; - 8000a4c: 4b2a ldr r3, [pc, #168] ; (8000af8 ) - 8000a4e: 2200 movs r2, #0 - 8000a50: 741a strb r2, [r3, #16] - hfdcan1.Init.TransmitPause = DISABLE; - 8000a52: 4b29 ldr r3, [pc, #164] ; (8000af8 ) - 8000a54: 2200 movs r2, #0 - 8000a56: 745a strb r2, [r3, #17] - hfdcan1.Init.ProtocolException = DISABLE; - 8000a58: 4b27 ldr r3, [pc, #156] ; (8000af8 ) - 8000a5a: 2200 movs r2, #0 - 8000a5c: 749a strb r2, [r3, #18] - hfdcan1.Init.NominalPrescaler = 6; - 8000a5e: 4b26 ldr r3, [pc, #152] ; (8000af8 ) - 8000a60: 2206 movs r2, #6 - 8000a62: 615a str r2, [r3, #20] - hfdcan1.Init.NominalSyncJumpWidth = 4; - 8000a64: 4b24 ldr r3, [pc, #144] ; (8000af8 ) - 8000a66: 2204 movs r2, #4 - 8000a68: 619a str r2, [r3, #24] - hfdcan1.Init.NominalTimeSeg1 = 29; - 8000a6a: 4b23 ldr r3, [pc, #140] ; (8000af8 ) - 8000a6c: 221d movs r2, #29 - 8000a6e: 61da str r2, [r3, #28] - hfdcan1.Init.NominalTimeSeg2 = 10; - 8000a70: 4b21 ldr r3, [pc, #132] ; (8000af8 ) - 8000a72: 220a movs r2, #10 - 8000a74: 621a str r2, [r3, #32] - hfdcan1.Init.DataPrescaler = 4; - 8000a76: 4b20 ldr r3, [pc, #128] ; (8000af8 ) - 8000a78: 2204 movs r2, #4 - 8000a7a: 625a str r2, [r3, #36] ; 0x24 - hfdcan1.Init.DataSyncJumpWidth = 4; - 8000a7c: 4b1e ldr r3, [pc, #120] ; (8000af8 ) - 8000a7e: 2204 movs r2, #4 - 8000a80: 629a str r2, [r3, #40] ; 0x28 - hfdcan1.Init.DataTimeSeg1 = 11; - 8000a82: 4b1d ldr r3, [pc, #116] ; (8000af8 ) - 8000a84: 220b movs r2, #11 - 8000a86: 62da str r2, [r3, #44] ; 0x2c - hfdcan1.Init.DataTimeSeg2 = 3; - 8000a88: 4b1b ldr r3, [pc, #108] ; (8000af8 ) - 8000a8a: 2203 movs r2, #3 - 8000a8c: 631a str r2, [r3, #48] ; 0x30 - hfdcan1.Init.MessageRAMOffset = 0; - 8000a8e: 4b1a ldr r3, [pc, #104] ; (8000af8 ) - 8000a90: 2200 movs r2, #0 - 8000a92: 635a str r2, [r3, #52] ; 0x34 - hfdcan1.Init.StdFiltersNbr = 0; - 8000a94: 4b18 ldr r3, [pc, #96] ; (8000af8 ) - 8000a96: 2200 movs r2, #0 - 8000a98: 639a str r2, [r3, #56] ; 0x38 - hfdcan1.Init.ExtFiltersNbr = 0; - 8000a9a: 4b17 ldr r3, [pc, #92] ; (8000af8 ) - 8000a9c: 2200 movs r2, #0 - 8000a9e: 63da str r2, [r3, #60] ; 0x3c - hfdcan1.Init.RxFifo0ElmtsNbr = 8; - 8000aa0: 4b15 ldr r3, [pc, #84] ; (8000af8 ) - 8000aa2: 2208 movs r2, #8 - 8000aa4: 641a str r2, [r3, #64] ; 0x40 - hfdcan1.Init.RxFifo0ElmtSize = FDCAN_DATA_BYTES_64; - 8000aa6: 4b14 ldr r3, [pc, #80] ; (8000af8 ) - 8000aa8: 2212 movs r2, #18 - 8000aaa: 645a str r2, [r3, #68] ; 0x44 - hfdcan1.Init.RxFifo1ElmtsNbr = 0; - 8000aac: 4b12 ldr r3, [pc, #72] ; (8000af8 ) - 8000aae: 2200 movs r2, #0 - 8000ab0: 649a str r2, [r3, #72] ; 0x48 - hfdcan1.Init.RxFifo1ElmtSize = FDCAN_DATA_BYTES_64; - 8000ab2: 4b11 ldr r3, [pc, #68] ; (8000af8 ) - 8000ab4: 2212 movs r2, #18 - 8000ab6: 64da str r2, [r3, #76] ; 0x4c - hfdcan1.Init.RxBuffersNbr = 0; - 8000ab8: 4b0f ldr r3, [pc, #60] ; (8000af8 ) - 8000aba: 2200 movs r2, #0 - 8000abc: 651a str r2, [r3, #80] ; 0x50 - hfdcan1.Init.RxBufferSize = FDCAN_DATA_BYTES_64; - 8000abe: 4b0e ldr r3, [pc, #56] ; (8000af8 ) - 8000ac0: 2212 movs r2, #18 - 8000ac2: 655a str r2, [r3, #84] ; 0x54 - hfdcan1.Init.TxEventsNbr = 8; - 8000ac4: 4b0c ldr r3, [pc, #48] ; (8000af8 ) - 8000ac6: 2208 movs r2, #8 - 8000ac8: 659a str r2, [r3, #88] ; 0x58 - hfdcan1.Init.TxBuffersNbr = 0; - 8000aca: 4b0b ldr r3, [pc, #44] ; (8000af8 ) - 8000acc: 2200 movs r2, #0 - 8000ace: 65da str r2, [r3, #92] ; 0x5c - hfdcan1.Init.TxFifoQueueElmtsNbr = 8; - 8000ad0: 4b09 ldr r3, [pc, #36] ; (8000af8 ) - 8000ad2: 2208 movs r2, #8 - 8000ad4: 661a str r2, [r3, #96] ; 0x60 - hfdcan1.Init.TxFifoQueueMode = FDCAN_TX_FIFO_OPERATION; - 8000ad6: 4b08 ldr r3, [pc, #32] ; (8000af8 ) - 8000ad8: 2200 movs r2, #0 - 8000ada: 665a str r2, [r3, #100] ; 0x64 - hfdcan1.Init.TxElmtSize = FDCAN_DATA_BYTES_64; - 8000adc: 4b06 ldr r3, [pc, #24] ; (8000af8 ) - 8000ade: 2212 movs r2, #18 - 8000ae0: 669a str r2, [r3, #104] ; 0x68 - if (HAL_FDCAN_Init(&hfdcan1) != HAL_OK) - 8000ae2: 4805 ldr r0, [pc, #20] ; (8000af8 ) - 8000ae4: f004 fffe bl 8005ae4 - 8000ae8: 4603 mov r3, r0 - 8000aea: 2b00 cmp r3, #0 - 8000aec: d001 beq.n 8000af2 - { - Error_Handler(); - 8000aee: f000 fd01 bl 80014f4 - } - /* USER CODE BEGIN FDCAN1_Init 2 */ - - /* USER CODE END FDCAN1_Init 2 */ - -} - 8000af2: bf00 nop - 8000af4: bd80 pop {r7, pc} - 8000af6: bf00 nop - 8000af8: 24000d68 .word 0x24000d68 - 8000afc: 4000a000 .word 0x4000a000 - -08000b00 : - * @brief FDCAN2 Initialization Function - * @param None - * @retval None - */ -static void MX_FDCAN2_Init(void) -{ - 8000b00: b580 push {r7, lr} - 8000b02: af00 add r7, sp, #0 - /* USER CODE END FDCAN2_Init 0 */ - - /* USER CODE BEGIN FDCAN2_Init 1 */ - - /* USER CODE END FDCAN2_Init 1 */ - hfdcan2.Instance = FDCAN2; - 8000b04: 4b2f ldr r3, [pc, #188] ; (8000bc4 ) - 8000b06: 4a30 ldr r2, [pc, #192] ; (8000bc8 ) - 8000b08: 601a str r2, [r3, #0] - hfdcan2.Init.FrameFormat = FDCAN_FRAME_FD_BRS; - 8000b0a: 4b2e ldr r3, [pc, #184] ; (8000bc4 ) - 8000b0c: f44f 7240 mov.w r2, #768 ; 0x300 - 8000b10: 609a str r2, [r3, #8] - hfdcan2.Init.Mode = FDCAN_MODE_NORMAL; - 8000b12: 4b2c ldr r3, [pc, #176] ; (8000bc4 ) - 8000b14: 2200 movs r2, #0 - 8000b16: 60da str r2, [r3, #12] - hfdcan2.Init.AutoRetransmission = DISABLE; - 8000b18: 4b2a ldr r3, [pc, #168] ; (8000bc4 ) - 8000b1a: 2200 movs r2, #0 - 8000b1c: 741a strb r2, [r3, #16] - hfdcan2.Init.TransmitPause = DISABLE; - 8000b1e: 4b29 ldr r3, [pc, #164] ; (8000bc4 ) - 8000b20: 2200 movs r2, #0 - 8000b22: 745a strb r2, [r3, #17] - hfdcan2.Init.ProtocolException = DISABLE; - 8000b24: 4b27 ldr r3, [pc, #156] ; (8000bc4 ) - 8000b26: 2200 movs r2, #0 - 8000b28: 749a strb r2, [r3, #18] - hfdcan2.Init.NominalPrescaler = 6; - 8000b2a: 4b26 ldr r3, [pc, #152] ; (8000bc4 ) - 8000b2c: 2206 movs r2, #6 - 8000b2e: 615a str r2, [r3, #20] - hfdcan2.Init.NominalSyncJumpWidth = 4; - 8000b30: 4b24 ldr r3, [pc, #144] ; (8000bc4 ) - 8000b32: 2204 movs r2, #4 - 8000b34: 619a str r2, [r3, #24] - hfdcan2.Init.NominalTimeSeg1 = 29; - 8000b36: 4b23 ldr r3, [pc, #140] ; (8000bc4 ) - 8000b38: 221d movs r2, #29 - 8000b3a: 61da str r2, [r3, #28] - hfdcan2.Init.NominalTimeSeg2 = 10; - 8000b3c: 4b21 ldr r3, [pc, #132] ; (8000bc4 ) - 8000b3e: 220a movs r2, #10 - 8000b40: 621a str r2, [r3, #32] - hfdcan2.Init.DataPrescaler = 4; - 8000b42: 4b20 ldr r3, [pc, #128] ; (8000bc4 ) - 8000b44: 2204 movs r2, #4 - 8000b46: 625a str r2, [r3, #36] ; 0x24 - hfdcan2.Init.DataSyncJumpWidth = 4; - 8000b48: 4b1e ldr r3, [pc, #120] ; (8000bc4 ) - 8000b4a: 2204 movs r2, #4 - 8000b4c: 629a str r2, [r3, #40] ; 0x28 - hfdcan2.Init.DataTimeSeg1 = 11; - 8000b4e: 4b1d ldr r3, [pc, #116] ; (8000bc4 ) - 8000b50: 220b movs r2, #11 - 8000b52: 62da str r2, [r3, #44] ; 0x2c - hfdcan2.Init.DataTimeSeg2 = 3; - 8000b54: 4b1b ldr r3, [pc, #108] ; (8000bc4 ) - 8000b56: 2203 movs r2, #3 - 8000b58: 631a str r2, [r3, #48] ; 0x30 - hfdcan2.Init.MessageRAMOffset = 512; - 8000b5a: 4b1a ldr r3, [pc, #104] ; (8000bc4 ) - 8000b5c: f44f 7200 mov.w r2, #512 ; 0x200 - 8000b60: 635a str r2, [r3, #52] ; 0x34 - hfdcan2.Init.StdFiltersNbr = 0; - 8000b62: 4b18 ldr r3, [pc, #96] ; (8000bc4 ) - 8000b64: 2200 movs r2, #0 - 8000b66: 639a str r2, [r3, #56] ; 0x38 - hfdcan2.Init.ExtFiltersNbr = 0; - 8000b68: 4b16 ldr r3, [pc, #88] ; (8000bc4 ) - 8000b6a: 2200 movs r2, #0 - 8000b6c: 63da str r2, [r3, #60] ; 0x3c - hfdcan2.Init.RxFifo0ElmtsNbr = 8; - 8000b6e: 4b15 ldr r3, [pc, #84] ; (8000bc4 ) - 8000b70: 2208 movs r2, #8 - 8000b72: 641a str r2, [r3, #64] ; 0x40 - hfdcan2.Init.RxFifo0ElmtSize = FDCAN_DATA_BYTES_64; - 8000b74: 4b13 ldr r3, [pc, #76] ; (8000bc4 ) - 8000b76: 2212 movs r2, #18 - 8000b78: 645a str r2, [r3, #68] ; 0x44 - hfdcan2.Init.RxFifo1ElmtsNbr = 0; - 8000b7a: 4b12 ldr r3, [pc, #72] ; (8000bc4 ) - 8000b7c: 2200 movs r2, #0 - 8000b7e: 649a str r2, [r3, #72] ; 0x48 - hfdcan2.Init.RxFifo1ElmtSize = FDCAN_DATA_BYTES_64; - 8000b80: 4b10 ldr r3, [pc, #64] ; (8000bc4 ) - 8000b82: 2212 movs r2, #18 - 8000b84: 64da str r2, [r3, #76] ; 0x4c - hfdcan2.Init.RxBuffersNbr = 0; - 8000b86: 4b0f ldr r3, [pc, #60] ; (8000bc4 ) - 8000b88: 2200 movs r2, #0 - 8000b8a: 651a str r2, [r3, #80] ; 0x50 - hfdcan2.Init.RxBufferSize = FDCAN_DATA_BYTES_64; - 8000b8c: 4b0d ldr r3, [pc, #52] ; (8000bc4 ) - 8000b8e: 2212 movs r2, #18 - 8000b90: 655a str r2, [r3, #84] ; 0x54 - hfdcan2.Init.TxEventsNbr = 8; - 8000b92: 4b0c ldr r3, [pc, #48] ; (8000bc4 ) - 8000b94: 2208 movs r2, #8 - 8000b96: 659a str r2, [r3, #88] ; 0x58 - hfdcan2.Init.TxBuffersNbr = 0; - 8000b98: 4b0a ldr r3, [pc, #40] ; (8000bc4 ) - 8000b9a: 2200 movs r2, #0 - 8000b9c: 65da str r2, [r3, #92] ; 0x5c - hfdcan2.Init.TxFifoQueueElmtsNbr = 8; - 8000b9e: 4b09 ldr r3, [pc, #36] ; (8000bc4 ) - 8000ba0: 2208 movs r2, #8 - 8000ba2: 661a str r2, [r3, #96] ; 0x60 - hfdcan2.Init.TxFifoQueueMode = FDCAN_TX_FIFO_OPERATION; - 8000ba4: 4b07 ldr r3, [pc, #28] ; (8000bc4 ) - 8000ba6: 2200 movs r2, #0 - 8000ba8: 665a str r2, [r3, #100] ; 0x64 - hfdcan2.Init.TxElmtSize = FDCAN_DATA_BYTES_64; - 8000baa: 4b06 ldr r3, [pc, #24] ; (8000bc4 ) - 8000bac: 2212 movs r2, #18 - 8000bae: 669a str r2, [r3, #104] ; 0x68 - if (HAL_FDCAN_Init(&hfdcan2) != HAL_OK) - 8000bb0: 4804 ldr r0, [pc, #16] ; (8000bc4 ) - 8000bb2: f004 ff97 bl 8005ae4 - 8000bb6: 4603 mov r3, r0 - 8000bb8: 2b00 cmp r3, #0 - 8000bba: d001 beq.n 8000bc0 - { - Error_Handler(); - 8000bbc: f000 fc9a bl 80014f4 - } - /* USER CODE BEGIN FDCAN2_Init 2 */ - - /* USER CODE END FDCAN2_Init 2 */ - -} - 8000bc0: bf00 nop - 8000bc2: bd80 pop {r7, pc} - 8000bc4: 24000e08 .word 0x24000e08 - 8000bc8: 4000a400 .word 0x4000a400 - -08000bcc : - * @brief FDCAN3 Initialization Function - * @param None - * @retval None - */ -static void MX_FDCAN3_Init(void) -{ - 8000bcc: b580 push {r7, lr} - 8000bce: af00 add r7, sp, #0 - /* USER CODE END FDCAN3_Init 0 */ - - /* USER CODE BEGIN FDCAN3_Init 1 */ - - /* USER CODE END FDCAN3_Init 1 */ - hfdcan3.Instance = FDCAN3; - 8000bd0: 4b2f ldr r3, [pc, #188] ; (8000c90 ) - 8000bd2: 4a30 ldr r2, [pc, #192] ; (8000c94 ) - 8000bd4: 601a str r2, [r3, #0] - hfdcan3.Init.FrameFormat = FDCAN_FRAME_FD_BRS; - 8000bd6: 4b2e ldr r3, [pc, #184] ; (8000c90 ) - 8000bd8: f44f 7240 mov.w r2, #768 ; 0x300 - 8000bdc: 609a str r2, [r3, #8] - hfdcan3.Init.Mode = FDCAN_MODE_NORMAL; - 8000bde: 4b2c ldr r3, [pc, #176] ; (8000c90 ) - 8000be0: 2200 movs r2, #0 - 8000be2: 60da str r2, [r3, #12] - hfdcan3.Init.AutoRetransmission = DISABLE; - 8000be4: 4b2a ldr r3, [pc, #168] ; (8000c90 ) - 8000be6: 2200 movs r2, #0 - 8000be8: 741a strb r2, [r3, #16] - hfdcan3.Init.TransmitPause = DISABLE; - 8000bea: 4b29 ldr r3, [pc, #164] ; (8000c90 ) - 8000bec: 2200 movs r2, #0 - 8000bee: 745a strb r2, [r3, #17] - hfdcan3.Init.ProtocolException = DISABLE; - 8000bf0: 4b27 ldr r3, [pc, #156] ; (8000c90 ) - 8000bf2: 2200 movs r2, #0 - 8000bf4: 749a strb r2, [r3, #18] - hfdcan3.Init.NominalPrescaler = 6; - 8000bf6: 4b26 ldr r3, [pc, #152] ; (8000c90 ) - 8000bf8: 2206 movs r2, #6 - 8000bfa: 615a str r2, [r3, #20] - hfdcan3.Init.NominalSyncJumpWidth = 4; - 8000bfc: 4b24 ldr r3, [pc, #144] ; (8000c90 ) - 8000bfe: 2204 movs r2, #4 - 8000c00: 619a str r2, [r3, #24] - hfdcan3.Init.NominalTimeSeg1 = 29; - 8000c02: 4b23 ldr r3, [pc, #140] ; (8000c90 ) - 8000c04: 221d movs r2, #29 - 8000c06: 61da str r2, [r3, #28] - hfdcan3.Init.NominalTimeSeg2 = 10; - 8000c08: 4b21 ldr r3, [pc, #132] ; (8000c90 ) - 8000c0a: 220a movs r2, #10 - 8000c0c: 621a str r2, [r3, #32] - hfdcan3.Init.DataPrescaler = 4; - 8000c0e: 4b20 ldr r3, [pc, #128] ; (8000c90 ) - 8000c10: 2204 movs r2, #4 - 8000c12: 625a str r2, [r3, #36] ; 0x24 - hfdcan3.Init.DataSyncJumpWidth = 4; - 8000c14: 4b1e ldr r3, [pc, #120] ; (8000c90 ) - 8000c16: 2204 movs r2, #4 - 8000c18: 629a str r2, [r3, #40] ; 0x28 - hfdcan3.Init.DataTimeSeg1 = 11; - 8000c1a: 4b1d ldr r3, [pc, #116] ; (8000c90 ) - 8000c1c: 220b movs r2, #11 - 8000c1e: 62da str r2, [r3, #44] ; 0x2c - hfdcan3.Init.DataTimeSeg2 = 3; - 8000c20: 4b1b ldr r3, [pc, #108] ; (8000c90 ) - 8000c22: 2203 movs r2, #3 - 8000c24: 631a str r2, [r3, #48] ; 0x30 - hfdcan3.Init.MessageRAMOffset = 1024; - 8000c26: 4b1a ldr r3, [pc, #104] ; (8000c90 ) - 8000c28: f44f 6280 mov.w r2, #1024 ; 0x400 - 8000c2c: 635a str r2, [r3, #52] ; 0x34 - hfdcan3.Init.StdFiltersNbr = 0; - 8000c2e: 4b18 ldr r3, [pc, #96] ; (8000c90 ) - 8000c30: 2200 movs r2, #0 - 8000c32: 639a str r2, [r3, #56] ; 0x38 - hfdcan3.Init.ExtFiltersNbr = 0; - 8000c34: 4b16 ldr r3, [pc, #88] ; (8000c90 ) - 8000c36: 2200 movs r2, #0 - 8000c38: 63da str r2, [r3, #60] ; 0x3c - hfdcan3.Init.RxFifo0ElmtsNbr = 8; - 8000c3a: 4b15 ldr r3, [pc, #84] ; (8000c90 ) - 8000c3c: 2208 movs r2, #8 - 8000c3e: 641a str r2, [r3, #64] ; 0x40 - hfdcan3.Init.RxFifo0ElmtSize = FDCAN_DATA_BYTES_64; - 8000c40: 4b13 ldr r3, [pc, #76] ; (8000c90 ) - 8000c42: 2212 movs r2, #18 - 8000c44: 645a str r2, [r3, #68] ; 0x44 - hfdcan3.Init.RxFifo1ElmtsNbr = 0; - 8000c46: 4b12 ldr r3, [pc, #72] ; (8000c90 ) - 8000c48: 2200 movs r2, #0 - 8000c4a: 649a str r2, [r3, #72] ; 0x48 - hfdcan3.Init.RxFifo1ElmtSize = FDCAN_DATA_BYTES_64; - 8000c4c: 4b10 ldr r3, [pc, #64] ; (8000c90 ) - 8000c4e: 2212 movs r2, #18 - 8000c50: 64da str r2, [r3, #76] ; 0x4c - hfdcan3.Init.RxBuffersNbr = 0; - 8000c52: 4b0f ldr r3, [pc, #60] ; (8000c90 ) - 8000c54: 2200 movs r2, #0 - 8000c56: 651a str r2, [r3, #80] ; 0x50 - hfdcan3.Init.RxBufferSize = FDCAN_DATA_BYTES_64; - 8000c58: 4b0d ldr r3, [pc, #52] ; (8000c90 ) - 8000c5a: 2212 movs r2, #18 - 8000c5c: 655a str r2, [r3, #84] ; 0x54 - hfdcan3.Init.TxEventsNbr = 8; - 8000c5e: 4b0c ldr r3, [pc, #48] ; (8000c90 ) - 8000c60: 2208 movs r2, #8 - 8000c62: 659a str r2, [r3, #88] ; 0x58 - hfdcan3.Init.TxBuffersNbr = 0; - 8000c64: 4b0a ldr r3, [pc, #40] ; (8000c90 ) - 8000c66: 2200 movs r2, #0 - 8000c68: 65da str r2, [r3, #92] ; 0x5c - hfdcan3.Init.TxFifoQueueElmtsNbr = 8; - 8000c6a: 4b09 ldr r3, [pc, #36] ; (8000c90 ) - 8000c6c: 2208 movs r2, #8 - 8000c6e: 661a str r2, [r3, #96] ; 0x60 - hfdcan3.Init.TxFifoQueueMode = FDCAN_TX_FIFO_OPERATION; - 8000c70: 4b07 ldr r3, [pc, #28] ; (8000c90 ) - 8000c72: 2200 movs r2, #0 - 8000c74: 665a str r2, [r3, #100] ; 0x64 - hfdcan3.Init.TxElmtSize = FDCAN_DATA_BYTES_64; - 8000c76: 4b06 ldr r3, [pc, #24] ; (8000c90 ) - 8000c78: 2212 movs r2, #18 - 8000c7a: 669a str r2, [r3, #104] ; 0x68 - if (HAL_FDCAN_Init(&hfdcan3) != HAL_OK) - 8000c7c: 4804 ldr r0, [pc, #16] ; (8000c90 ) - 8000c7e: f004 ff31 bl 8005ae4 - 8000c82: 4603 mov r3, r0 - 8000c84: 2b00 cmp r3, #0 - 8000c86: d001 beq.n 8000c8c - { - Error_Handler(); - 8000c88: f000 fc34 bl 80014f4 - } - /* USER CODE BEGIN FDCAN3_Init 2 */ - - /* USER CODE END FDCAN3_Init 2 */ - -} - 8000c8c: bf00 nop - 8000c8e: bd80 pop {r7, pc} - 8000c90: 24000ea8 .word 0x24000ea8 - 8000c94: 4000d400 .word 0x4000d400 - -08000c98 : - * @brief SDMMC1 Initialization Function - * @param None - * @retval None - */ -static void MX_SDMMC1_SD_Init(void) -{ - 8000c98: b480 push {r7} - 8000c9a: af00 add r7, sp, #0 - /* USER CODE END SDMMC1_Init 0 */ - - /* USER CODE BEGIN SDMMC1_Init 1 */ - - /* USER CODE END SDMMC1_Init 1 */ - hsd1.Instance = SDMMC1; - 8000c9c: 4b0c ldr r3, [pc, #48] ; (8000cd0 ) - 8000c9e: 4a0d ldr r2, [pc, #52] ; (8000cd4 ) - 8000ca0: 601a str r2, [r3, #0] - hsd1.Init.ClockEdge = SDMMC_CLOCK_EDGE_RISING; - 8000ca2: 4b0b ldr r3, [pc, #44] ; (8000cd0 ) - 8000ca4: 2200 movs r2, #0 - 8000ca6: 605a str r2, [r3, #4] - hsd1.Init.ClockPowerSave = SDMMC_CLOCK_POWER_SAVE_DISABLE; - 8000ca8: 4b09 ldr r3, [pc, #36] ; (8000cd0 ) - 8000caa: 2200 movs r2, #0 - 8000cac: 609a str r2, [r3, #8] - hsd1.Init.BusWide = SDMMC_BUS_WIDE_4B; - 8000cae: 4b08 ldr r3, [pc, #32] ; (8000cd0 ) - 8000cb0: f44f 4280 mov.w r2, #16384 ; 0x4000 - 8000cb4: 60da str r2, [r3, #12] - hsd1.Init.HardwareFlowControl = SDMMC_HARDWARE_FLOW_CONTROL_ENABLE; - 8000cb6: 4b06 ldr r3, [pc, #24] ; (8000cd0 ) - 8000cb8: f44f 3200 mov.w r2, #131072 ; 0x20000 - 8000cbc: 611a str r2, [r3, #16] - hsd1.Init.ClockDiv = 1; - 8000cbe: 4b04 ldr r3, [pc, #16] ; (8000cd0 ) - 8000cc0: 2201 movs r2, #1 - 8000cc2: 615a str r2, [r3, #20] - /* USER CODE BEGIN SDMMC1_Init 2 */ - - /* USER CODE END SDMMC1_Init 2 */ - -} - 8000cc4: bf00 nop - 8000cc6: 46bd mov sp, r7 - 8000cc8: f85d 7b04 ldr.w r7, [sp], #4 - 8000ccc: 4770 bx lr - 8000cce: bf00 nop - 8000cd0: 24000f48 .word 0x24000f48 - 8000cd4: 52007000 .word 0x52007000 - -08000cd8 : - * @brief TIM3 Initialization Function - * @param None - * @retval None - */ -static void MX_TIM3_Init(void) -{ - 8000cd8: b580 push {r7, lr} - 8000cda: b088 sub sp, #32 - 8000cdc: af00 add r7, sp, #0 - - /* USER CODE BEGIN TIM3_Init 0 */ - - /* USER CODE END TIM3_Init 0 */ - - TIM_ClockConfigTypeDef sClockSourceConfig = {0}; - 8000cde: f107 0310 add.w r3, r7, #16 - 8000ce2: 2200 movs r2, #0 - 8000ce4: 601a str r2, [r3, #0] - 8000ce6: 605a str r2, [r3, #4] - 8000ce8: 609a str r2, [r3, #8] - 8000cea: 60da str r2, [r3, #12] - TIM_MasterConfigTypeDef sMasterConfig = {0}; - 8000cec: 1d3b adds r3, r7, #4 - 8000cee: 2200 movs r2, #0 - 8000cf0: 601a str r2, [r3, #0] - 8000cf2: 605a str r2, [r3, #4] - 8000cf4: 609a str r2, [r3, #8] - - /* USER CODE BEGIN TIM3_Init 1 */ - - /* USER CODE END TIM3_Init 1 */ - htim3.Instance = TIM3; - 8000cf6: 4b1d ldr r3, [pc, #116] ; (8000d6c ) - 8000cf8: 4a1d ldr r2, [pc, #116] ; (8000d70 ) - 8000cfa: 601a str r2, [r3, #0] - htim3.Init.Prescaler = 119; - 8000cfc: 4b1b ldr r3, [pc, #108] ; (8000d6c ) - 8000cfe: 2277 movs r2, #119 ; 0x77 - 8000d00: 605a str r2, [r3, #4] - htim3.Init.CounterMode = TIM_COUNTERMODE_UP; - 8000d02: 4b1a ldr r3, [pc, #104] ; (8000d6c ) - 8000d04: 2200 movs r2, #0 - 8000d06: 609a str r2, [r3, #8] - htim3.Init.Period = 65535; - 8000d08: 4b18 ldr r3, [pc, #96] ; (8000d6c ) - 8000d0a: f64f 72ff movw r2, #65535 ; 0xffff - 8000d0e: 60da str r2, [r3, #12] - htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; - 8000d10: 4b16 ldr r3, [pc, #88] ; (8000d6c ) - 8000d12: 2200 movs r2, #0 - 8000d14: 611a str r2, [r3, #16] - htim3.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; - 8000d16: 4b15 ldr r3, [pc, #84] ; (8000d6c ) - 8000d18: 2200 movs r2, #0 - 8000d1a: 619a str r2, [r3, #24] - if (HAL_TIM_Base_Init(&htim3) != HAL_OK) - 8000d1c: 4813 ldr r0, [pc, #76] ; (8000d6c ) - 8000d1e: f00b f9d7 bl 800c0d0 - 8000d22: 4603 mov r3, r0 - 8000d24: 2b00 cmp r3, #0 - 8000d26: d001 beq.n 8000d2c - { - Error_Handler(); - 8000d28: f000 fbe4 bl 80014f4 - } - sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL; - 8000d2c: f44f 5380 mov.w r3, #4096 ; 0x1000 - 8000d30: 613b str r3, [r7, #16] - if (HAL_TIM_ConfigClockSource(&htim3, &sClockSourceConfig) != HAL_OK) - 8000d32: f107 0310 add.w r3, r7, #16 - 8000d36: 4619 mov r1, r3 - 8000d38: 480c ldr r0, [pc, #48] ; (8000d6c ) - 8000d3a: f00b fbc7 bl 800c4cc - 8000d3e: 4603 mov r3, r0 - 8000d40: 2b00 cmp r3, #0 - 8000d42: d001 beq.n 8000d48 - { - Error_Handler(); - 8000d44: f000 fbd6 bl 80014f4 - } - sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; - 8000d48: 2300 movs r3, #0 - 8000d4a: 607b str r3, [r7, #4] - sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; - 8000d4c: 2300 movs r3, #0 - 8000d4e: 60fb str r3, [r7, #12] - if (HAL_TIMEx_MasterConfigSynchronization(&htim3, &sMasterConfig) != HAL_OK) - 8000d50: 1d3b adds r3, r7, #4 - 8000d52: 4619 mov r1, r3 - 8000d54: 4805 ldr r0, [pc, #20] ; (8000d6c ) - 8000d56: f00b fe1d bl 800c994 - 8000d5a: 4603 mov r3, r0 - 8000d5c: 2b00 cmp r3, #0 - 8000d5e: d001 beq.n 8000d64 - { - Error_Handler(); - 8000d60: f000 fbc8 bl 80014f4 - } - /* USER CODE BEGIN TIM3_Init 2 */ - - /* USER CODE END TIM3_Init 2 */ - -} - 8000d64: bf00 nop - 8000d66: 3720 adds r7, #32 - 8000d68: 46bd mov sp, r7 - 8000d6a: bd80 pop {r7, pc} - 8000d6c: 24000fc4 .word 0x24000fc4 - 8000d70: 40000400 .word 0x40000400 - -08000d74 : - * @brief UART4 Initialization Function - * @param None - * @retval None - */ -static void MX_UART4_Init(void) -{ - 8000d74: b580 push {r7, lr} - 8000d76: af00 add r7, sp, #0 - /* USER CODE END UART4_Init 0 */ - - /* USER CODE BEGIN UART4_Init 1 */ - - /* USER CODE END UART4_Init 1 */ - huart4.Instance = UART4; - 8000d78: 4b22 ldr r3, [pc, #136] ; (8000e04 ) - 8000d7a: 4a23 ldr r2, [pc, #140] ; (8000e08 ) - 8000d7c: 601a str r2, [r3, #0] - huart4.Init.BaudRate = 9600; - 8000d7e: 4b21 ldr r3, [pc, #132] ; (8000e04 ) - 8000d80: f44f 5216 mov.w r2, #9600 ; 0x2580 - 8000d84: 605a str r2, [r3, #4] - huart4.Init.WordLength = UART_WORDLENGTH_8B; - 8000d86: 4b1f ldr r3, [pc, #124] ; (8000e04 ) - 8000d88: 2200 movs r2, #0 - 8000d8a: 609a str r2, [r3, #8] - huart4.Init.StopBits = UART_STOPBITS_1; - 8000d8c: 4b1d ldr r3, [pc, #116] ; (8000e04 ) - 8000d8e: 2200 movs r2, #0 - 8000d90: 60da str r2, [r3, #12] - huart4.Init.Parity = UART_PARITY_NONE; - 8000d92: 4b1c ldr r3, [pc, #112] ; (8000e04 ) - 8000d94: 2200 movs r2, #0 - 8000d96: 611a str r2, [r3, #16] - huart4.Init.Mode = UART_MODE_TX_RX; - 8000d98: 4b1a ldr r3, [pc, #104] ; (8000e04 ) - 8000d9a: 220c movs r2, #12 - 8000d9c: 615a str r2, [r3, #20] - huart4.Init.HwFlowCtl = UART_HWCONTROL_NONE; - 8000d9e: 4b19 ldr r3, [pc, #100] ; (8000e04 ) - 8000da0: 2200 movs r2, #0 - 8000da2: 619a str r2, [r3, #24] - huart4.Init.OverSampling = UART_OVERSAMPLING_16; - 8000da4: 4b17 ldr r3, [pc, #92] ; (8000e04 ) - 8000da6: 2200 movs r2, #0 - 8000da8: 61da str r2, [r3, #28] - huart4.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE; - 8000daa: 4b16 ldr r3, [pc, #88] ; (8000e04 ) - 8000dac: 2200 movs r2, #0 - 8000dae: 621a str r2, [r3, #32] - huart4.Init.ClockPrescaler = UART_PRESCALER_DIV1; - 8000db0: 4b14 ldr r3, [pc, #80] ; (8000e04 ) - 8000db2: 2200 movs r2, #0 - 8000db4: 625a str r2, [r3, #36] ; 0x24 - huart4.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT; - 8000db6: 4b13 ldr r3, [pc, #76] ; (8000e04 ) - 8000db8: 2200 movs r2, #0 - 8000dba: 629a str r2, [r3, #40] ; 0x28 - if (HAL_UART_Init(&huart4) != HAL_OK) - 8000dbc: 4811 ldr r0, [pc, #68] ; (8000e04 ) - 8000dbe: f00b fea3 bl 800cb08 - 8000dc2: 4603 mov r3, r0 - 8000dc4: 2b00 cmp r3, #0 - 8000dc6: d001 beq.n 8000dcc - { - Error_Handler(); - 8000dc8: f000 fb94 bl 80014f4 - } - if (HAL_UARTEx_SetTxFifoThreshold(&huart4, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK) - 8000dcc: 2100 movs r1, #0 - 8000dce: 480d ldr r0, [pc, #52] ; (8000e04 ) - 8000dd0: f00c ffa9 bl 800dd26 - 8000dd4: 4603 mov r3, r0 - 8000dd6: 2b00 cmp r3, #0 - 8000dd8: d001 beq.n 8000dde - { - Error_Handler(); - 8000dda: f000 fb8b bl 80014f4 - } - if (HAL_UARTEx_SetRxFifoThreshold(&huart4, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK) - 8000dde: 2100 movs r1, #0 - 8000de0: 4808 ldr r0, [pc, #32] ; (8000e04 ) - 8000de2: f00c ffde bl 800dda2 - 8000de6: 4603 mov r3, r0 - 8000de8: 2b00 cmp r3, #0 - 8000dea: d001 beq.n 8000df0 - { - Error_Handler(); - 8000dec: f000 fb82 bl 80014f4 - } - if (HAL_UARTEx_DisableFifoMode(&huart4) != HAL_OK) - 8000df0: 4804 ldr r0, [pc, #16] ; (8000e04 ) - 8000df2: f00c ff5f bl 800dcb4 - 8000df6: 4603 mov r3, r0 - 8000df8: 2b00 cmp r3, #0 - 8000dfa: d001 beq.n 8000e00 - { - Error_Handler(); - 8000dfc: f000 fb7a bl 80014f4 - } - /* USER CODE BEGIN UART4_Init 2 */ - - /* USER CODE END UART4_Init 2 */ - -} - 8000e00: bf00 nop - 8000e02: bd80 pop {r7, pc} - 8000e04: 24001010 .word 0x24001010 - 8000e08: 40004c00 .word 0x40004c00 - -08000e0c : - * @brief UART7 Initialization Function - * @param None - * @retval None - */ -static void MX_UART7_Init(void) -{ - 8000e0c: b580 push {r7, lr} - 8000e0e: af00 add r7, sp, #0 - /* USER CODE END UART7_Init 0 */ - - /* USER CODE BEGIN UART7_Init 1 */ - - /* USER CODE END UART7_Init 1 */ - huart7.Instance = UART7; - 8000e10: 4b22 ldr r3, [pc, #136] ; (8000e9c ) - 8000e12: 4a23 ldr r2, [pc, #140] ; (8000ea0 ) - 8000e14: 601a str r2, [r3, #0] - huart7.Init.BaudRate = 115200; - 8000e16: 4b21 ldr r3, [pc, #132] ; (8000e9c ) - 8000e18: f44f 32e1 mov.w r2, #115200 ; 0x1c200 - 8000e1c: 605a str r2, [r3, #4] - huart7.Init.WordLength = UART_WORDLENGTH_8B; - 8000e1e: 4b1f ldr r3, [pc, #124] ; (8000e9c ) - 8000e20: 2200 movs r2, #0 - 8000e22: 609a str r2, [r3, #8] - huart7.Init.StopBits = UART_STOPBITS_1; - 8000e24: 4b1d ldr r3, [pc, #116] ; (8000e9c ) - 8000e26: 2200 movs r2, #0 - 8000e28: 60da str r2, [r3, #12] - huart7.Init.Parity = UART_PARITY_NONE; - 8000e2a: 4b1c ldr r3, [pc, #112] ; (8000e9c ) - 8000e2c: 2200 movs r2, #0 - 8000e2e: 611a str r2, [r3, #16] - huart7.Init.Mode = UART_MODE_TX_RX; - 8000e30: 4b1a ldr r3, [pc, #104] ; (8000e9c ) - 8000e32: 220c movs r2, #12 - 8000e34: 615a str r2, [r3, #20] - huart7.Init.HwFlowCtl = UART_HWCONTROL_NONE; - 8000e36: 4b19 ldr r3, [pc, #100] ; (8000e9c ) - 8000e38: 2200 movs r2, #0 - 8000e3a: 619a str r2, [r3, #24] - huart7.Init.OverSampling = UART_OVERSAMPLING_16; - 8000e3c: 4b17 ldr r3, [pc, #92] ; (8000e9c ) - 8000e3e: 2200 movs r2, #0 - 8000e40: 61da str r2, [r3, #28] - huart7.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE; - 8000e42: 4b16 ldr r3, [pc, #88] ; (8000e9c ) - 8000e44: 2200 movs r2, #0 - 8000e46: 621a str r2, [r3, #32] - huart7.Init.ClockPrescaler = UART_PRESCALER_DIV1; - 8000e48: 4b14 ldr r3, [pc, #80] ; (8000e9c ) - 8000e4a: 2200 movs r2, #0 - 8000e4c: 625a str r2, [r3, #36] ; 0x24 - huart7.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT; - 8000e4e: 4b13 ldr r3, [pc, #76] ; (8000e9c ) - 8000e50: 2200 movs r2, #0 - 8000e52: 629a str r2, [r3, #40] ; 0x28 - if (HAL_UART_Init(&huart7) != HAL_OK) - 8000e54: 4811 ldr r0, [pc, #68] ; (8000e9c ) - 8000e56: f00b fe57 bl 800cb08 - 8000e5a: 4603 mov r3, r0 - 8000e5c: 2b00 cmp r3, #0 - 8000e5e: d001 beq.n 8000e64 - { - Error_Handler(); - 8000e60: f000 fb48 bl 80014f4 - } - if (HAL_UARTEx_SetTxFifoThreshold(&huart7, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK) - 8000e64: 2100 movs r1, #0 - 8000e66: 480d ldr r0, [pc, #52] ; (8000e9c ) - 8000e68: f00c ff5d bl 800dd26 - 8000e6c: 4603 mov r3, r0 - 8000e6e: 2b00 cmp r3, #0 - 8000e70: d001 beq.n 8000e76 - { - Error_Handler(); - 8000e72: f000 fb3f bl 80014f4 - } - if (HAL_UARTEx_SetRxFifoThreshold(&huart7, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK) - 8000e76: 2100 movs r1, #0 - 8000e78: 4808 ldr r0, [pc, #32] ; (8000e9c ) - 8000e7a: f00c ff92 bl 800dda2 - 8000e7e: 4603 mov r3, r0 - 8000e80: 2b00 cmp r3, #0 - 8000e82: d001 beq.n 8000e88 - { - Error_Handler(); - 8000e84: f000 fb36 bl 80014f4 - } - if (HAL_UARTEx_DisableFifoMode(&huart7) != HAL_OK) - 8000e88: 4804 ldr r0, [pc, #16] ; (8000e9c ) - 8000e8a: f00c ff13 bl 800dcb4 - 8000e8e: 4603 mov r3, r0 - 8000e90: 2b00 cmp r3, #0 - 8000e92: d001 beq.n 8000e98 - { - Error_Handler(); - 8000e94: f000 fb2e bl 80014f4 - } - /* USER CODE BEGIN UART7_Init 2 */ - - /* USER CODE END UART7_Init 2 */ - -} - 8000e98: bf00 nop - 8000e9a: bd80 pop {r7, pc} - 8000e9c: 240010a4 .word 0x240010a4 - 8000ea0: 40007800 .word 0x40007800 - -08000ea4 : - * @brief UART8 Initialization Function - * @param None - * @retval None - */ -static void MX_UART8_Init(void) -{ - 8000ea4: b580 push {r7, lr} - 8000ea6: af00 add r7, sp, #0 - /* USER CODE END UART8_Init 0 */ - - /* USER CODE BEGIN UART8_Init 1 */ - - /* USER CODE END UART8_Init 1 */ - huart8.Instance = UART8; - 8000ea8: 4b22 ldr r3, [pc, #136] ; (8000f34 ) - 8000eaa: 4a23 ldr r2, [pc, #140] ; (8000f38 ) - 8000eac: 601a str r2, [r3, #0] - huart8.Init.BaudRate = 115200; - 8000eae: 4b21 ldr r3, [pc, #132] ; (8000f34 ) - 8000eb0: f44f 32e1 mov.w r2, #115200 ; 0x1c200 - 8000eb4: 605a str r2, [r3, #4] - huart8.Init.WordLength = UART_WORDLENGTH_8B; - 8000eb6: 4b1f ldr r3, [pc, #124] ; (8000f34 ) - 8000eb8: 2200 movs r2, #0 - 8000eba: 609a str r2, [r3, #8] - huart8.Init.StopBits = UART_STOPBITS_1; - 8000ebc: 4b1d ldr r3, [pc, #116] ; (8000f34 ) - 8000ebe: 2200 movs r2, #0 - 8000ec0: 60da str r2, [r3, #12] - huart8.Init.Parity = UART_PARITY_NONE; - 8000ec2: 4b1c ldr r3, [pc, #112] ; (8000f34 ) - 8000ec4: 2200 movs r2, #0 - 8000ec6: 611a str r2, [r3, #16] - huart8.Init.Mode = UART_MODE_TX_RX; - 8000ec8: 4b1a ldr r3, [pc, #104] ; (8000f34 ) - 8000eca: 220c movs r2, #12 - 8000ecc: 615a str r2, [r3, #20] - huart8.Init.HwFlowCtl = UART_HWCONTROL_NONE; - 8000ece: 4b19 ldr r3, [pc, #100] ; (8000f34 ) - 8000ed0: 2200 movs r2, #0 - 8000ed2: 619a str r2, [r3, #24] - huart8.Init.OverSampling = UART_OVERSAMPLING_16; - 8000ed4: 4b17 ldr r3, [pc, #92] ; (8000f34 ) - 8000ed6: 2200 movs r2, #0 - 8000ed8: 61da str r2, [r3, #28] - huart8.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE; - 8000eda: 4b16 ldr r3, [pc, #88] ; (8000f34 ) - 8000edc: 2200 movs r2, #0 - 8000ede: 621a str r2, [r3, #32] - huart8.Init.ClockPrescaler = UART_PRESCALER_DIV1; - 8000ee0: 4b14 ldr r3, [pc, #80] ; (8000f34 ) - 8000ee2: 2200 movs r2, #0 - 8000ee4: 625a str r2, [r3, #36] ; 0x24 - huart8.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT; - 8000ee6: 4b13 ldr r3, [pc, #76] ; (8000f34 ) - 8000ee8: 2200 movs r2, #0 - 8000eea: 629a str r2, [r3, #40] ; 0x28 - if (HAL_UART_Init(&huart8) != HAL_OK) - 8000eec: 4811 ldr r0, [pc, #68] ; (8000f34 ) - 8000eee: f00b fe0b bl 800cb08 - 8000ef2: 4603 mov r3, r0 - 8000ef4: 2b00 cmp r3, #0 - 8000ef6: d001 beq.n 8000efc - { - Error_Handler(); - 8000ef8: f000 fafc bl 80014f4 - } - if (HAL_UARTEx_SetTxFifoThreshold(&huart8, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK) - 8000efc: 2100 movs r1, #0 - 8000efe: 480d ldr r0, [pc, #52] ; (8000f34 ) - 8000f00: f00c ff11 bl 800dd26 - 8000f04: 4603 mov r3, r0 - 8000f06: 2b00 cmp r3, #0 - 8000f08: d001 beq.n 8000f0e - { - Error_Handler(); - 8000f0a: f000 faf3 bl 80014f4 - } - if (HAL_UARTEx_SetRxFifoThreshold(&huart8, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK) - 8000f0e: 2100 movs r1, #0 - 8000f10: 4808 ldr r0, [pc, #32] ; (8000f34 ) - 8000f12: f00c ff46 bl 800dda2 - 8000f16: 4603 mov r3, r0 - 8000f18: 2b00 cmp r3, #0 - 8000f1a: d001 beq.n 8000f20 - { - Error_Handler(); - 8000f1c: f000 faea bl 80014f4 - } - if (HAL_UARTEx_DisableFifoMode(&huart8) != HAL_OK) - 8000f20: 4804 ldr r0, [pc, #16] ; (8000f34 ) - 8000f22: f00c fec7 bl 800dcb4 - 8000f26: 4603 mov r3, r0 - 8000f28: 2b00 cmp r3, #0 - 8000f2a: d001 beq.n 8000f30 - { - Error_Handler(); - 8000f2c: f000 fae2 bl 80014f4 - } - /* USER CODE BEGIN UART8_Init 2 */ - - /* USER CODE END UART8_Init 2 */ - -} - 8000f30: bf00 nop - 8000f32: bd80 pop {r7, pc} - 8000f34: 24001138 .word 0x24001138 - 8000f38: 40007c00 .word 0x40007c00 - -08000f3c : - -/** - * Enable DMA controller clock - */ -static void MX_DMA_Init(void) -{ - 8000f3c: b580 push {r7, lr} - 8000f3e: b082 sub sp, #8 - 8000f40: af00 add r7, sp, #0 - - /* DMA controller clock enable */ - __HAL_RCC_DMA1_CLK_ENABLE(); - 8000f42: 4b0d ldr r3, [pc, #52] ; (8000f78 ) - 8000f44: f8d3 30d8 ldr.w r3, [r3, #216] ; 0xd8 - 8000f48: 4a0b ldr r2, [pc, #44] ; (8000f78 ) - 8000f4a: f043 0301 orr.w r3, r3, #1 - 8000f4e: f8c2 30d8 str.w r3, [r2, #216] ; 0xd8 - 8000f52: 4b09 ldr r3, [pc, #36] ; (8000f78 ) - 8000f54: f8d3 30d8 ldr.w r3, [r3, #216] ; 0xd8 - 8000f58: f003 0301 and.w r3, r3, #1 - 8000f5c: 607b str r3, [r7, #4] - 8000f5e: 687b ldr r3, [r7, #4] - - /* DMA interrupt init */ - /* DMA1_Stream0_IRQn interrupt configuration */ - HAL_NVIC_SetPriority(DMA1_Stream0_IRQn, 5, 0); - 8000f60: 2200 movs r2, #0 - 8000f62: 2105 movs r1, #5 - 8000f64: 200b movs r0, #11 - 8000f66: f001 faf9 bl 800255c - HAL_NVIC_EnableIRQ(DMA1_Stream0_IRQn); - 8000f6a: 200b movs r0, #11 - 8000f6c: f001 fb10 bl 8002590 - -} - 8000f70: bf00 nop - 8000f72: 3708 adds r7, #8 - 8000f74: 46bd mov sp, r7 - 8000f76: bd80 pop {r7, pc} - 8000f78: 58024400 .word 0x58024400 - -08000f7c : - * Enable MDMA controller clock - * Configure MDMA for global transfers - * hmdma_mdma_channel0_sdmmc1_end_data_0 - */ -static void MX_MDMA_Init(void) -{ - 8000f7c: b580 push {r7, lr} - 8000f7e: b082 sub sp, #8 - 8000f80: af00 add r7, sp, #0 - - /* MDMA controller clock enable */ - __HAL_RCC_MDMA_CLK_ENABLE(); - 8000f82: 4b2d ldr r3, [pc, #180] ; (8001038 ) - 8000f84: f8d3 30d4 ldr.w r3, [r3, #212] ; 0xd4 - 8000f88: 4a2b ldr r2, [pc, #172] ; (8001038 ) - 8000f8a: f043 0301 orr.w r3, r3, #1 - 8000f8e: f8c2 30d4 str.w r3, [r2, #212] ; 0xd4 - 8000f92: 4b29 ldr r3, [pc, #164] ; (8001038 ) - 8000f94: f8d3 30d4 ldr.w r3, [r3, #212] ; 0xd4 - 8000f98: f003 0301 and.w r3, r3, #1 - 8000f9c: 607b str r3, [r7, #4] - 8000f9e: 687b ldr r3, [r7, #4] - /* Local variables */ - - /* Configure MDMA channel MDMA_Channel0 */ - /* Configure MDMA request hmdma_mdma_channel0_sdmmc1_end_data_0 on MDMA_Channel0 */ - hmdma_mdma_channel0_sdmmc1_end_data_0.Instance = MDMA_Channel0; - 8000fa0: 4b26 ldr r3, [pc, #152] ; (800103c ) - 8000fa2: 4a27 ldr r2, [pc, #156] ; (8001040 ) - 8000fa4: 601a str r2, [r3, #0] - hmdma_mdma_channel0_sdmmc1_end_data_0.Init.Request = MDMA_REQUEST_SDMMC1_END_DATA; - 8000fa6: 4b25 ldr r3, [pc, #148] ; (800103c ) - 8000fa8: 221d movs r2, #29 - 8000faa: 605a str r2, [r3, #4] - hmdma_mdma_channel0_sdmmc1_end_data_0.Init.TransferTriggerMode = MDMA_BUFFER_TRANSFER; - 8000fac: 4b23 ldr r3, [pc, #140] ; (800103c ) - 8000fae: 2200 movs r2, #0 - 8000fb0: 609a str r2, [r3, #8] - hmdma_mdma_channel0_sdmmc1_end_data_0.Init.Priority = MDMA_PRIORITY_LOW; - 8000fb2: 4b22 ldr r3, [pc, #136] ; (800103c ) - 8000fb4: 2200 movs r2, #0 - 8000fb6: 60da str r2, [r3, #12] - hmdma_mdma_channel0_sdmmc1_end_data_0.Init.Endianness = MDMA_LITTLE_ENDIANNESS_PRESERVE; - 8000fb8: 4b20 ldr r3, [pc, #128] ; (800103c ) - 8000fba: 2200 movs r2, #0 - 8000fbc: 611a str r2, [r3, #16] - hmdma_mdma_channel0_sdmmc1_end_data_0.Init.SourceInc = MDMA_SRC_INC_BYTE; - 8000fbe: 4b1f ldr r3, [pc, #124] ; (800103c ) - 8000fc0: 2202 movs r2, #2 - 8000fc2: 615a str r2, [r3, #20] - hmdma_mdma_channel0_sdmmc1_end_data_0.Init.DestinationInc = MDMA_DEST_INC_BYTE; - 8000fc4: 4b1d ldr r3, [pc, #116] ; (800103c ) - 8000fc6: 2208 movs r2, #8 - 8000fc8: 619a str r2, [r3, #24] - hmdma_mdma_channel0_sdmmc1_end_data_0.Init.SourceDataSize = MDMA_SRC_DATASIZE_BYTE; - 8000fca: 4b1c ldr r3, [pc, #112] ; (800103c ) - 8000fcc: 2200 movs r2, #0 - 8000fce: 61da str r2, [r3, #28] - hmdma_mdma_channel0_sdmmc1_end_data_0.Init.DestDataSize = MDMA_DEST_DATASIZE_BYTE; - 8000fd0: 4b1a ldr r3, [pc, #104] ; (800103c ) - 8000fd2: 2200 movs r2, #0 - 8000fd4: 621a str r2, [r3, #32] - hmdma_mdma_channel0_sdmmc1_end_data_0.Init.DataAlignment = MDMA_DATAALIGN_PACKENABLE; - 8000fd6: 4b19 ldr r3, [pc, #100] ; (800103c ) - 8000fd8: f04f 7200 mov.w r2, #33554432 ; 0x2000000 - 8000fdc: 625a str r2, [r3, #36] ; 0x24 - hmdma_mdma_channel0_sdmmc1_end_data_0.Init.BufferTransferLength = 1; - 8000fde: 4b17 ldr r3, [pc, #92] ; (800103c ) - 8000fe0: 2201 movs r2, #1 - 8000fe2: 629a str r2, [r3, #40] ; 0x28 - hmdma_mdma_channel0_sdmmc1_end_data_0.Init.SourceBurst = MDMA_SOURCE_BURST_SINGLE; - 8000fe4: 4b15 ldr r3, [pc, #84] ; (800103c ) - 8000fe6: 2200 movs r2, #0 - 8000fe8: 62da str r2, [r3, #44] ; 0x2c - hmdma_mdma_channel0_sdmmc1_end_data_0.Init.DestBurst = MDMA_DEST_BURST_SINGLE; - 8000fea: 4b14 ldr r3, [pc, #80] ; (800103c ) - 8000fec: 2200 movs r2, #0 - 8000fee: 631a str r2, [r3, #48] ; 0x30 - hmdma_mdma_channel0_sdmmc1_end_data_0.Init.SourceBlockAddressOffset = 0; - 8000ff0: 4b12 ldr r3, [pc, #72] ; (800103c ) - 8000ff2: 2200 movs r2, #0 - 8000ff4: 635a str r2, [r3, #52] ; 0x34 - hmdma_mdma_channel0_sdmmc1_end_data_0.Init.DestBlockAddressOffset = 0; - 8000ff6: 4b11 ldr r3, [pc, #68] ; (800103c ) - 8000ff8: 2200 movs r2, #0 - 8000ffa: 639a str r2, [r3, #56] ; 0x38 - if (HAL_MDMA_Init(&hmdma_mdma_channel0_sdmmc1_end_data_0) != HAL_OK) - 8000ffc: 480f ldr r0, [pc, #60] ; (800103c ) - 8000ffe: f005 fdb0 bl 8006b62 - 8001002: 4603 mov r3, r0 - 8001004: 2b00 cmp r3, #0 - 8001006: d001 beq.n 800100c - { - Error_Handler(); - 8001008: f000 fa74 bl 80014f4 - } - - /* Configure post request address and data masks */ - if (HAL_MDMA_ConfigPostRequestMask(&hmdma_mdma_channel0_sdmmc1_end_data_0, 0, 0) != HAL_OK) - 800100c: 2200 movs r2, #0 - 800100e: 2100 movs r1, #0 - 8001010: 480a ldr r0, [pc, #40] ; (800103c ) - 8001012: f005 fdf2 bl 8006bfa - 8001016: 4603 mov r3, r0 - 8001018: 2b00 cmp r3, #0 - 800101a: d001 beq.n 8001020 - { - Error_Handler(); - 800101c: f000 fa6a bl 80014f4 - } - - /* MDMA interrupt initialization */ - /* MDMA_IRQn interrupt configuration */ - HAL_NVIC_SetPriority(MDMA_IRQn, 5, 0); - 8001020: 2200 movs r2, #0 - 8001022: 2105 movs r1, #5 - 8001024: 207a movs r0, #122 ; 0x7a - 8001026: f001 fa99 bl 800255c - HAL_NVIC_EnableIRQ(MDMA_IRQn); - 800102a: 207a movs r0, #122 ; 0x7a - 800102c: f001 fab0 bl 8002590 - -} - 8001030: bf00 nop - 8001032: 3708 adds r7, #8 - 8001034: 46bd mov sp, r7 - 8001036: bd80 pop {r7, pc} - 8001038: 58024400 .word 0x58024400 - 800103c: 24001244 .word 0x24001244 - 8001040: 52000040 .word 0x52000040 - -08001044 : - * @brief GPIO Initialization Function - * @param None - * @retval None - */ -static void MX_GPIO_Init(void) -{ - 8001044: b580 push {r7, lr} - 8001046: b08c sub sp, #48 ; 0x30 - 8001048: af00 add r7, sp, #0 - GPIO_InitTypeDef GPIO_InitStruct = {0}; - 800104a: f107 031c add.w r3, r7, #28 - 800104e: 2200 movs r2, #0 - 8001050: 601a str r2, [r3, #0] - 8001052: 605a str r2, [r3, #4] - 8001054: 609a str r2, [r3, #8] - 8001056: 60da str r2, [r3, #12] - 8001058: 611a str r2, [r3, #16] -/* USER CODE BEGIN MX_GPIO_Init_1 */ -/* USER CODE END MX_GPIO_Init_1 */ - - /* GPIO Ports Clock Enable */ - __HAL_RCC_GPIOB_CLK_ENABLE(); - 800105a: 4b51 ldr r3, [pc, #324] ; (80011a0 ) - 800105c: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 8001060: 4a4f ldr r2, [pc, #316] ; (80011a0 ) - 8001062: f043 0302 orr.w r3, r3, #2 - 8001066: f8c2 30e0 str.w r3, [r2, #224] ; 0xe0 - 800106a: 4b4d ldr r3, [pc, #308] ; (80011a0 ) - 800106c: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 8001070: f003 0302 and.w r3, r3, #2 - 8001074: 61bb str r3, [r7, #24] - 8001076: 69bb ldr r3, [r7, #24] - __HAL_RCC_GPIOA_CLK_ENABLE(); - 8001078: 4b49 ldr r3, [pc, #292] ; (80011a0 ) - 800107a: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 800107e: 4a48 ldr r2, [pc, #288] ; (80011a0 ) - 8001080: f043 0301 orr.w r3, r3, #1 - 8001084: f8c2 30e0 str.w r3, [r2, #224] ; 0xe0 - 8001088: 4b45 ldr r3, [pc, #276] ; (80011a0 ) - 800108a: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 800108e: f003 0301 and.w r3, r3, #1 - 8001092: 617b str r3, [r7, #20] - 8001094: 697b ldr r3, [r7, #20] - __HAL_RCC_GPIOD_CLK_ENABLE(); - 8001096: 4b42 ldr r3, [pc, #264] ; (80011a0 ) - 8001098: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 800109c: 4a40 ldr r2, [pc, #256] ; (80011a0 ) - 800109e: f043 0308 orr.w r3, r3, #8 - 80010a2: f8c2 30e0 str.w r3, [r2, #224] ; 0xe0 - 80010a6: 4b3e ldr r3, [pc, #248] ; (80011a0 ) - 80010a8: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 80010ac: f003 0308 and.w r3, r3, #8 - 80010b0: 613b str r3, [r7, #16] - 80010b2: 693b ldr r3, [r7, #16] - __HAL_RCC_GPIOC_CLK_ENABLE(); - 80010b4: 4b3a ldr r3, [pc, #232] ; (80011a0 ) - 80010b6: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 80010ba: 4a39 ldr r2, [pc, #228] ; (80011a0 ) - 80010bc: f043 0304 orr.w r3, r3, #4 - 80010c0: f8c2 30e0 str.w r3, [r2, #224] ; 0xe0 - 80010c4: 4b36 ldr r3, [pc, #216] ; (80011a0 ) - 80010c6: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 80010ca: f003 0304 and.w r3, r3, #4 - 80010ce: 60fb str r3, [r7, #12] - 80010d0: 68fb ldr r3, [r7, #12] - __HAL_RCC_GPIOH_CLK_ENABLE(); - 80010d2: 4b33 ldr r3, [pc, #204] ; (80011a0 ) - 80010d4: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 80010d8: 4a31 ldr r2, [pc, #196] ; (80011a0 ) - 80010da: f043 0380 orr.w r3, r3, #128 ; 0x80 - 80010de: f8c2 30e0 str.w r3, [r2, #224] ; 0xe0 - 80010e2: 4b2f ldr r3, [pc, #188] ; (80011a0 ) - 80010e4: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 80010e8: f003 0380 and.w r3, r3, #128 ; 0x80 - 80010ec: 60bb str r3, [r7, #8] - 80010ee: 68bb ldr r3, [r7, #8] - __HAL_RCC_GPIOE_CLK_ENABLE(); - 80010f0: 4b2b ldr r3, [pc, #172] ; (80011a0 ) - 80010f2: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 80010f6: 4a2a ldr r2, [pc, #168] ; (80011a0 ) - 80010f8: f043 0310 orr.w r3, r3, #16 - 80010fc: f8c2 30e0 str.w r3, [r2, #224] ; 0xe0 - 8001100: 4b27 ldr r3, [pc, #156] ; (80011a0 ) - 8001102: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 8001106: f003 0310 and.w r3, r3, #16 - 800110a: 607b str r3, [r7, #4] - 800110c: 687b ldr r3, [r7, #4] - - /*Configure GPIO pin Output Level */ - HAL_GPIO_WritePin(mLED_GPIO_Port, mLED_Pin, GPIO_PIN_RESET); - 800110e: 2200 movs r2, #0 - 8001110: f44f 4100 mov.w r1, #32768 ; 0x8000 - 8001114: 4823 ldr r0, [pc, #140] ; (80011a4 ) - 8001116: f005 fd0b bl 8006b30 - - /*Configure GPIO pin Output Level */ - HAL_GPIO_WritePin(GPIOE, SD_LED_Pin|VIN_ON_Pin|PICO_EN_Pin, GPIO_PIN_RESET); - 800111a: 2200 movs r2, #0 - 800111c: f44f 51b0 mov.w r1, #5632 ; 0x1600 - 8001120: 4821 ldr r0, [pc, #132] ; (80011a8 ) - 8001122: f005 fd05 bl 8006b30 - - /*Configure GPIO pin : mLED_Pin */ - GPIO_InitStruct.Pin = mLED_Pin; - 8001126: f44f 4300 mov.w r3, #32768 ; 0x8000 - 800112a: 61fb str r3, [r7, #28] - GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; - 800112c: 2301 movs r3, #1 - 800112e: 623b str r3, [r7, #32] - GPIO_InitStruct.Pull = GPIO_NOPULL; - 8001130: 2300 movs r3, #0 - 8001132: 627b str r3, [r7, #36] ; 0x24 - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 8001134: 2300 movs r3, #0 - 8001136: 62bb str r3, [r7, #40] ; 0x28 - HAL_GPIO_Init(mLED_GPIO_Port, &GPIO_InitStruct); - 8001138: f107 031c add.w r3, r7, #28 - 800113c: 4619 mov r1, r3 - 800113e: 4819 ldr r0, [pc, #100] ; (80011a4 ) - 8001140: f005 fb36 bl 80067b0 - - /*Configure GPIO pins : SD_LED_Pin VIN_ON_Pin PICO_EN_Pin */ - GPIO_InitStruct.Pin = SD_LED_Pin|VIN_ON_Pin|PICO_EN_Pin; - 8001144: f44f 53b0 mov.w r3, #5632 ; 0x1600 - 8001148: 61fb str r3, [r7, #28] - GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; - 800114a: 2301 movs r3, #1 - 800114c: 623b str r3, [r7, #32] - GPIO_InitStruct.Pull = GPIO_NOPULL; - 800114e: 2300 movs r3, #0 - 8001150: 627b str r3, [r7, #36] ; 0x24 - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 8001152: 2300 movs r3, #0 - 8001154: 62bb str r3, [r7, #40] ; 0x28 - HAL_GPIO_Init(GPIOE, &GPIO_InitStruct); - 8001156: f107 031c add.w r3, r7, #28 - 800115a: 4619 mov r1, r3 - 800115c: 4812 ldr r0, [pc, #72] ; (80011a8 ) - 800115e: f005 fb27 bl 80067b0 - - /*Configure GPIO pin : sdDetect_Pin */ - GPIO_InitStruct.Pin = sdDetect_Pin; - 8001162: f44f 4300 mov.w r3, #32768 ; 0x8000 - 8001166: 61fb str r3, [r7, #28] - GPIO_InitStruct.Mode = GPIO_MODE_INPUT; - 8001168: 2300 movs r3, #0 - 800116a: 623b str r3, [r7, #32] - GPIO_InitStruct.Pull = GPIO_NOPULL; - 800116c: 2300 movs r3, #0 - 800116e: 627b str r3, [r7, #36] ; 0x24 - HAL_GPIO_Init(sdDetect_GPIO_Port, &GPIO_InitStruct); - 8001170: f107 031c add.w r3, r7, #28 - 8001174: 4619 mov r1, r3 - 8001176: 480d ldr r0, [pc, #52] ; (80011ac ) - 8001178: f005 fb1a bl 80067b0 - - /*Configure GPIO pins : VIN_IG_Pin VIN_1_4_Pin */ - GPIO_InitStruct.Pin = VIN_IG_Pin|VIN_1_4_Pin; - 800117c: f44f 5320 mov.w r3, #10240 ; 0x2800 - 8001180: 61fb str r3, [r7, #28] - GPIO_InitStruct.Mode = GPIO_MODE_INPUT; - 8001182: 2300 movs r3, #0 - 8001184: 623b str r3, [r7, #32] - GPIO_InitStruct.Pull = GPIO_NOPULL; - 8001186: 2300 movs r3, #0 - 8001188: 627b str r3, [r7, #36] ; 0x24 - HAL_GPIO_Init(GPIOE, &GPIO_InitStruct); - 800118a: f107 031c add.w r3, r7, #28 - 800118e: 4619 mov r1, r3 - 8001190: 4805 ldr r0, [pc, #20] ; (80011a8 ) - 8001192: f005 fb0d bl 80067b0 - -/* USER CODE BEGIN MX_GPIO_Init_2 */ -/* USER CODE END MX_GPIO_Init_2 */ -} - 8001196: bf00 nop - 8001198: 3730 adds r7, #48 ; 0x30 - 800119a: 46bd mov sp, r7 - 800119c: bd80 pop {r7, pc} - 800119e: bf00 nop - 80011a0: 58024400 .word 0x58024400 - 80011a4: 58020000 .word 0x58020000 - 80011a8: 58021000 .word 0x58021000 - 80011ac: 58020400 .word 0x58020400 - -080011b0 : - -/* USER CODE BEGIN 4 */ -void lwftp_init(void) { - 80011b0: b580 push {r7, lr} - 80011b2: b082 sub sp, #8 - 80011b4: af02 add r7, sp, #8 - IP4_ADDR(&s.cli_ip, CLI_IP[0], CLI_IP[1], CLI_IP[2], CLI_IP[3]); - 80011b6: 4b6e ldr r3, [pc, #440] ; (8001370 ) - 80011b8: 781b ldrb r3, [r3, #0] - 80011ba: 061a lsls r2, r3, #24 - 80011bc: 4b6c ldr r3, [pc, #432] ; (8001370 ) - 80011be: 785b ldrb r3, [r3, #1] - 80011c0: 041b lsls r3, r3, #16 - 80011c2: 431a orrs r2, r3 - 80011c4: 4b6a ldr r3, [pc, #424] ; (8001370 ) - 80011c6: 789b ldrb r3, [r3, #2] - 80011c8: 021b lsls r3, r3, #8 - 80011ca: 4313 orrs r3, r2 - 80011cc: 4a68 ldr r2, [pc, #416] ; (8001370 ) - 80011ce: 78d2 ldrb r2, [r2, #3] - 80011d0: 4313 orrs r3, r2 - 80011d2: 061a lsls r2, r3, #24 - 80011d4: 4b66 ldr r3, [pc, #408] ; (8001370 ) - 80011d6: 781b ldrb r3, [r3, #0] - 80011d8: 0619 lsls r1, r3, #24 - 80011da: 4b65 ldr r3, [pc, #404] ; (8001370 ) - 80011dc: 785b ldrb r3, [r3, #1] - 80011de: 041b lsls r3, r3, #16 - 80011e0: 4319 orrs r1, r3 - 80011e2: 4b63 ldr r3, [pc, #396] ; (8001370 ) - 80011e4: 789b ldrb r3, [r3, #2] - 80011e6: 021b lsls r3, r3, #8 - 80011e8: 430b orrs r3, r1 - 80011ea: 4961 ldr r1, [pc, #388] ; (8001370 ) - 80011ec: 78c9 ldrb r1, [r1, #3] - 80011ee: 430b orrs r3, r1 - 80011f0: 021b lsls r3, r3, #8 - 80011f2: f403 037f and.w r3, r3, #16711680 ; 0xff0000 - 80011f6: 431a orrs r2, r3 - 80011f8: 4b5d ldr r3, [pc, #372] ; (8001370 ) - 80011fa: 781b ldrb r3, [r3, #0] - 80011fc: 0619 lsls r1, r3, #24 - 80011fe: 4b5c ldr r3, [pc, #368] ; (8001370 ) - 8001200: 785b ldrb r3, [r3, #1] - 8001202: 041b lsls r3, r3, #16 - 8001204: 4319 orrs r1, r3 - 8001206: 4b5a ldr r3, [pc, #360] ; (8001370 ) - 8001208: 789b ldrb r3, [r3, #2] - 800120a: 021b lsls r3, r3, #8 - 800120c: 430b orrs r3, r1 - 800120e: 4958 ldr r1, [pc, #352] ; (8001370 ) - 8001210: 78c9 ldrb r1, [r1, #3] - 8001212: 430b orrs r3, r1 - 8001214: 0a1b lsrs r3, r3, #8 - 8001216: f403 437f and.w r3, r3, #65280 ; 0xff00 - 800121a: 431a orrs r2, r3 - 800121c: 4b54 ldr r3, [pc, #336] ; (8001370 ) - 800121e: 781b ldrb r3, [r3, #0] - 8001220: 0619 lsls r1, r3, #24 - 8001222: 4b53 ldr r3, [pc, #332] ; (8001370 ) - 8001224: 785b ldrb r3, [r3, #1] - 8001226: 041b lsls r3, r3, #16 - 8001228: 4319 orrs r1, r3 - 800122a: 4b51 ldr r3, [pc, #324] ; (8001370 ) - 800122c: 789b ldrb r3, [r3, #2] - 800122e: 021b lsls r3, r3, #8 - 8001230: 430b orrs r3, r1 - 8001232: 494f ldr r1, [pc, #316] ; (8001370 ) - 8001234: 78c9 ldrb r1, [r1, #3] - 8001236: 430b orrs r3, r1 - 8001238: 0e1b lsrs r3, r3, #24 - 800123a: 4313 orrs r3, r2 - 800123c: 4a4d ldr r2, [pc, #308] ; (8001374 ) - 800123e: 6013 str r3, [r2, #0] - IP4_ADDR(&s.svr_ip, SVR_IP[0], SVR_IP[1], SVR_IP[2], SVR_IP[3]); - 8001240: 4b4d ldr r3, [pc, #308] ; (8001378 ) - 8001242: 781b ldrb r3, [r3, #0] - 8001244: 061a lsls r2, r3, #24 - 8001246: 4b4c ldr r3, [pc, #304] ; (8001378 ) - 8001248: 785b ldrb r3, [r3, #1] - 800124a: 041b lsls r3, r3, #16 - 800124c: 431a orrs r2, r3 - 800124e: 4b4a ldr r3, [pc, #296] ; (8001378 ) - 8001250: 789b ldrb r3, [r3, #2] - 8001252: 021b lsls r3, r3, #8 - 8001254: 4313 orrs r3, r2 - 8001256: 4a48 ldr r2, [pc, #288] ; (8001378 ) - 8001258: 78d2 ldrb r2, [r2, #3] - 800125a: 4313 orrs r3, r2 - 800125c: 061a lsls r2, r3, #24 - 800125e: 4b46 ldr r3, [pc, #280] ; (8001378 ) - 8001260: 781b ldrb r3, [r3, #0] - 8001262: 0619 lsls r1, r3, #24 - 8001264: 4b44 ldr r3, [pc, #272] ; (8001378 ) - 8001266: 785b ldrb r3, [r3, #1] - 8001268: 041b lsls r3, r3, #16 - 800126a: 4319 orrs r1, r3 - 800126c: 4b42 ldr r3, [pc, #264] ; (8001378 ) - 800126e: 789b ldrb r3, [r3, #2] - 8001270: 021b lsls r3, r3, #8 - 8001272: 430b orrs r3, r1 - 8001274: 4940 ldr r1, [pc, #256] ; (8001378 ) - 8001276: 78c9 ldrb r1, [r1, #3] - 8001278: 430b orrs r3, r1 - 800127a: 021b lsls r3, r3, #8 - 800127c: f403 037f and.w r3, r3, #16711680 ; 0xff0000 - 8001280: 431a orrs r2, r3 - 8001282: 4b3d ldr r3, [pc, #244] ; (8001378 ) - 8001284: 781b ldrb r3, [r3, #0] - 8001286: 0619 lsls r1, r3, #24 - 8001288: 4b3b ldr r3, [pc, #236] ; (8001378 ) - 800128a: 785b ldrb r3, [r3, #1] - 800128c: 041b lsls r3, r3, #16 - 800128e: 4319 orrs r1, r3 - 8001290: 4b39 ldr r3, [pc, #228] ; (8001378 ) - 8001292: 789b ldrb r3, [r3, #2] - 8001294: 021b lsls r3, r3, #8 - 8001296: 430b orrs r3, r1 - 8001298: 4937 ldr r1, [pc, #220] ; (8001378 ) - 800129a: 78c9 ldrb r1, [r1, #3] - 800129c: 430b orrs r3, r1 - 800129e: 0a1b lsrs r3, r3, #8 - 80012a0: f403 437f and.w r3, r3, #65280 ; 0xff00 - 80012a4: 431a orrs r2, r3 - 80012a6: 4b34 ldr r3, [pc, #208] ; (8001378 ) - 80012a8: 781b ldrb r3, [r3, #0] - 80012aa: 0619 lsls r1, r3, #24 - 80012ac: 4b32 ldr r3, [pc, #200] ; (8001378 ) - 80012ae: 785b ldrb r3, [r3, #1] - 80012b0: 041b lsls r3, r3, #16 - 80012b2: 4319 orrs r1, r3 - 80012b4: 4b30 ldr r3, [pc, #192] ; (8001378 ) - 80012b6: 789b ldrb r3, [r3, #2] - 80012b8: 021b lsls r3, r3, #8 - 80012ba: 430b orrs r3, r1 - 80012bc: 492e ldr r1, [pc, #184] ; (8001378 ) - 80012be: 78c9 ldrb r1, [r1, #3] - 80012c0: 430b orrs r3, r1 - 80012c2: 0e1b lsrs r3, r3, #24 - 80012c4: 4313 orrs r3, r2 - 80012c6: 4a2b ldr r2, [pc, #172] ; (8001374 ) - 80012c8: 6053 str r3, [r2, #4] - s.svr_port = SVR_PORT; - 80012ca: 4b2c ldr r3, [pc, #176] ; (800137c ) - 80012cc: 881a ldrh r2, [r3, #0] - 80012ce: 4b29 ldr r3, [pc, #164] ; (8001374 ) - 80012d0: 811a strh r2, [r3, #8] - s.user = USER; - 80012d2: 4b2b ldr r3, [pc, #172] ; (8001380 ) - 80012d4: 681b ldr r3, [r3, #0] - 80012d6: 4a27 ldr r2, [pc, #156] ; (8001374 ) - 80012d8: 60d3 str r3, [r2, #12] - s.pass = PASS; - 80012da: 4b2a ldr r3, [pc, #168] ; (8001384 ) - 80012dc: 681b ldr r3, [r3, #0] - 80012de: 4a25 ldr r2, [pc, #148] ; (8001374 ) - 80012e0: 6113 str r3, [r2, #16] - - printf("\n>> lwftp: cli ip: %d.%d.%d.%d\r\n", CLI_IP[0], CLI_IP[1], CLI_IP[2], CLI_IP[3]); - 80012e2: 4b23 ldr r3, [pc, #140] ; (8001370 ) - 80012e4: 781b ldrb r3, [r3, #0] - 80012e6: 4619 mov r1, r3 - 80012e8: 4b21 ldr r3, [pc, #132] ; (8001370 ) - 80012ea: 785b ldrb r3, [r3, #1] - 80012ec: 461a mov r2, r3 - 80012ee: 4b20 ldr r3, [pc, #128] ; (8001370 ) - 80012f0: 789b ldrb r3, [r3, #2] - 80012f2: 4618 mov r0, r3 - 80012f4: 4b1e ldr r3, [pc, #120] ; (8001370 ) - 80012f6: 78db ldrb r3, [r3, #3] - 80012f8: 9300 str r3, [sp, #0] - 80012fa: 4603 mov r3, r0 - 80012fc: 4822 ldr r0, [pc, #136] ; (8001388 ) - 80012fe: f020 fb43 bl 8021988 - printf(">> lwftp: svr ip: %d.%d.%d.%d\r\n", SVR_IP[0], SVR_IP[1], SVR_IP[2], SVR_IP[3]); - 8001302: 4b1d ldr r3, [pc, #116] ; (8001378 ) - 8001304: 781b ldrb r3, [r3, #0] - 8001306: 4619 mov r1, r3 - 8001308: 4b1b ldr r3, [pc, #108] ; (8001378 ) - 800130a: 785b ldrb r3, [r3, #1] - 800130c: 461a mov r2, r3 - 800130e: 4b1a ldr r3, [pc, #104] ; (8001378 ) - 8001310: 789b ldrb r3, [r3, #2] - 8001312: 4618 mov r0, r3 - 8001314: 4b18 ldr r3, [pc, #96] ; (8001378 ) - 8001316: 78db ldrb r3, [r3, #3] - 8001318: 9300 str r3, [sp, #0] - 800131a: 4603 mov r3, r0 - 800131c: 481b ldr r0, [pc, #108] ; (800138c ) - 800131e: f020 fb33 bl 8021988 - printf(">> lwftp: svr port: %d\r\n", s.svr_port); - 8001322: 4b14 ldr r3, [pc, #80] ; (8001374 ) - 8001324: 891b ldrh r3, [r3, #8] - 8001326: 4619 mov r1, r3 - 8001328: 4819 ldr r0, [pc, #100] ; (8001390 ) - 800132a: f020 fb2d bl 8021988 - printf(">> lwftp: username: %s\r\n", s.user); - 800132e: 4b11 ldr r3, [pc, #68] ; (8001374 ) - 8001330: 68db ldr r3, [r3, #12] - 8001332: 4619 mov r1, r3 - 8001334: 4817 ldr r0, [pc, #92] ; (8001394 ) - 8001336: f020 fb27 bl 8021988 - printf(">> lwftp: password: %s\r\n\n", s.pass); - 800133a: 4b0e ldr r3, [pc, #56] ; (8001374 ) - 800133c: 691b ldr r3, [r3, #16] - 800133e: 4619 mov r1, r3 - 8001340: 4815 ldr r0, [pc, #84] ; (8001398 ) - 8001342: f020 fb21 bl 8021988 -#if FTPSemaphore - sys_sem_new(&ftpsem, 0); // the semaphore would prevent simultaneous access to lwftp_send -#endif - - /* Thread for Control connection*/ - sys_thread_new("lwftp_ctrl_thread", lwftp_ctrl_thread, (void*) &s, - 8001346: 2300 movs r3, #0 - 8001348: 9300 str r3, [sp, #0] - 800134a: f44f 6300 mov.w r3, #2048 ; 0x800 - 800134e: 4a09 ldr r2, [pc, #36] ; (8001374 ) - 8001350: 4912 ldr r1, [pc, #72] ; (800139c ) - 8001352: 4813 ldr r0, [pc, #76] ; (80013a0 ) - 8001354: f020 f958 bl 8021608 - DEFAULT_THREAD_STACKSIZE, osPriorityNormal); - - /* Thread for Data connection*/ - sys_thread_new("lwftp_data_thread", lwftp_data_thread, (void*) &s, - 8001358: 2300 movs r3, #0 - 800135a: 9300 str r3, [sp, #0] - 800135c: f44f 6300 mov.w r3, #2048 ; 0x800 - 8001360: 4a04 ldr r2, [pc, #16] ; (8001374 ) - 8001362: 4910 ldr r1, [pc, #64] ; (80013a4 ) - 8001364: 4810 ldr r0, [pc, #64] ; (80013a8 ) - 8001366: f020 f94f bl 8021608 - DEFAULT_THREAD_STACKSIZE, osPriorityNormal); -} - 800136a: bf00 nop - 800136c: 46bd mov sp, r7 - 800136e: bd80 pop {r7, pc} - 8001370: 24000000 .word 0x24000000 - 8001374: 24007360 .word 0x24007360 - 8001378: 24000004 .word 0x24000004 - 800137c: 24000008 .word 0x24000008 - 8001380: 2400000c .word 0x2400000c - 8001384: 24000010 .word 0x24000010 - 8001388: 08022d34 .word 0x08022d34 - 800138c: 08022d58 .word 0x08022d58 - 8001390: 08022d78 .word 0x08022d78 - 8001394: 08022d94 .word 0x08022d94 - 8001398: 08022db0 .word 0x08022db0 - 800139c: 0800f251 .word 0x0800f251 - 80013a0: 08022dcc .word 0x08022dcc - 80013a4: 0800f1c9 .word 0x0800f1c9 - 80013a8: 08022de0 .word 0x08022de0 - -080013ac : - * @param argument: Not used - * @retval None - */ -/* USER CODE END Header_StartDefaultTask */ -void StartDefaultTask(void const * argument) -{ - 80013ac: b580 push {r7, lr} - 80013ae: b084 sub sp, #16 - 80013b0: af00 add r7, sp, #0 - 80013b2: 6078 str r0, [r7, #4] - /* init code for LWIP */ - MX_LWIP_Init(); - 80013b4: f00e f8c4 bl 800f540 - /* USER CODE BEGIN 5 */ - printf("[INFO] Remaining stack size of task: %ld\r\n", - 80013b8: 2000 movs r0, #0 - 80013ba: f011 f939 bl 8012630 - 80013be: 4603 mov r3, r0 - 80013c0: 4619 mov r1, r3 - 80013c2: 480c ldr r0, [pc, #48] ; (80013f4 ) - 80013c4: f020 fae0 bl 8021988 - uxTaskGetStackHighWaterMark(NULL)); - lwftp_init(); - 80013c8: f7ff fef2 bl 80011b0 - - osDelay(5000); // run code aft 5s - 80013cc: f241 3088 movw r0, #5000 ; 0x1388 - 80013d0: f00e ffd6 bl 8010380 - err_t err; -// err = lwftp_list(&s); -// err = lwftp_store(&s, "foobar.txt", "TESTTESTTESTTESTTESTTESTTEST\r\n"); - err = lwftp_retrieve(&s, "ftp_test_1.txt"); - 80013d4: 4908 ldr r1, [pc, #32] ; (80013f8 ) - 80013d6: 4809 ldr r0, [pc, #36] ; (80013fc ) - 80013d8: f00d fe9e bl 800f118 - 80013dc: 4603 mov r3, r0 - 80013de: 73fb strb r3, [r7, #15] - - printf("%d\r\n",err); - 80013e0: f997 300f ldrsb.w r3, [r7, #15] - 80013e4: 4619 mov r1, r3 - 80013e6: 4806 ldr r0, [pc, #24] ; (8001400 ) - 80013e8: f020 face bl 8021988 - - /* Infinite loop */ - for (;;) { - osDelay(1); - 80013ec: 2001 movs r0, #1 - 80013ee: f00e ffc7 bl 8010380 - 80013f2: e7fb b.n 80013ec - 80013f4: 08022df4 .word 0x08022df4 - 80013f8: 08022e20 .word 0x08022e20 - 80013fc: 24007360 .word 0x24007360 - 8001400: 08022e30 .word 0x08022e30 - -08001404 : -* @param argument: Not used -* @retval None -*/ -/* USER CODE END Header_StartDebugTask */ -void StartDebugTask(void const * argument) -{ - 8001404: b580 push {r7, lr} - 8001406: b082 sub sp, #8 - 8001408: af00 add r7, sp, #0 - 800140a: 6078 str r0, [r7, #4] - /* USER CODE BEGIN StartDebugTask */ - /* Infinite loop */ - for(;;) - { - osDelay(1); - 800140c: 2001 movs r0, #1 - 800140e: f00e ffb7 bl 8010380 - 8001412: e7fb b.n 800140c - -08001414 : -} - -/* MPU Configuration */ - -void MPU_Config(void) -{ - 8001414: b580 push {r7, lr} - 8001416: b084 sub sp, #16 - 8001418: af00 add r7, sp, #0 - MPU_Region_InitTypeDef MPU_InitStruct = {0}; - 800141a: 463b mov r3, r7 - 800141c: 2200 movs r2, #0 - 800141e: 601a str r2, [r3, #0] - 8001420: 605a str r2, [r3, #4] - 8001422: 609a str r2, [r3, #8] - 8001424: 60da str r2, [r3, #12] - - /* Disables the MPU */ - HAL_MPU_Disable(); - 8001426: f001 f8c1 bl 80025ac - - /** Initializes and configures the Region and the memory to be protected - */ - MPU_InitStruct.Enable = MPU_REGION_ENABLE; - 800142a: 2301 movs r3, #1 - 800142c: 703b strb r3, [r7, #0] - MPU_InitStruct.Number = MPU_REGION_NUMBER0; - 800142e: 2300 movs r3, #0 - 8001430: 707b strb r3, [r7, #1] - MPU_InitStruct.BaseAddress = 0x0; - 8001432: 2300 movs r3, #0 - 8001434: 607b str r3, [r7, #4] - MPU_InitStruct.Size = MPU_REGION_SIZE_4GB; - 8001436: 231f movs r3, #31 - 8001438: 723b strb r3, [r7, #8] - MPU_InitStruct.SubRegionDisable = 0x87; - 800143a: 2387 movs r3, #135 ; 0x87 - 800143c: 727b strb r3, [r7, #9] - MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL0; - 800143e: 2300 movs r3, #0 - 8001440: 72bb strb r3, [r7, #10] - MPU_InitStruct.AccessPermission = MPU_REGION_NO_ACCESS; - 8001442: 2300 movs r3, #0 - 8001444: 72fb strb r3, [r7, #11] - MPU_InitStruct.DisableExec = MPU_INSTRUCTION_ACCESS_DISABLE; - 8001446: 2301 movs r3, #1 - 8001448: 733b strb r3, [r7, #12] - MPU_InitStruct.IsShareable = MPU_ACCESS_SHAREABLE; - 800144a: 2301 movs r3, #1 - 800144c: 737b strb r3, [r7, #13] - MPU_InitStruct.IsCacheable = MPU_ACCESS_NOT_CACHEABLE; - 800144e: 2300 movs r3, #0 - 8001450: 73bb strb r3, [r7, #14] - MPU_InitStruct.IsBufferable = MPU_ACCESS_NOT_BUFFERABLE; - 8001452: 2300 movs r3, #0 - 8001454: 73fb strb r3, [r7, #15] - - HAL_MPU_ConfigRegion(&MPU_InitStruct); - 8001456: 463b mov r3, r7 - 8001458: 4618 mov r0, r3 - 800145a: f001 f8df bl 800261c - - /** Initializes and configures the Region and the memory to be protected - */ - MPU_InitStruct.Number = MPU_REGION_NUMBER1; - 800145e: 2301 movs r3, #1 - 8001460: 707b strb r3, [r7, #1] - MPU_InitStruct.BaseAddress = 0x30000000; - 8001462: f04f 5340 mov.w r3, #805306368 ; 0x30000000 - 8001466: 607b str r3, [r7, #4] - MPU_InitStruct.Size = MPU_REGION_SIZE_32KB; - 8001468: 230e movs r3, #14 - 800146a: 723b strb r3, [r7, #8] - MPU_InitStruct.SubRegionDisable = 0x0; - 800146c: 2300 movs r3, #0 - 800146e: 727b strb r3, [r7, #9] - MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL1; - 8001470: 2301 movs r3, #1 - 8001472: 72bb strb r3, [r7, #10] - MPU_InitStruct.AccessPermission = MPU_REGION_FULL_ACCESS; - 8001474: 2303 movs r3, #3 - 8001476: 72fb strb r3, [r7, #11] - MPU_InitStruct.IsShareable = MPU_ACCESS_NOT_SHAREABLE; - 8001478: 2300 movs r3, #0 - 800147a: 737b strb r3, [r7, #13] - - HAL_MPU_ConfigRegion(&MPU_InitStruct); - 800147c: 463b mov r3, r7 - 800147e: 4618 mov r0, r3 - 8001480: f001 f8cc bl 800261c - - /** Initializes and configures the Region and the memory to be protected - */ - MPU_InitStruct.Number = MPU_REGION_NUMBER2; - 8001484: 2302 movs r3, #2 - 8001486: 707b strb r3, [r7, #1] - MPU_InitStruct.Size = MPU_REGION_SIZE_512B; - 8001488: 2308 movs r3, #8 - 800148a: 723b strb r3, [r7, #8] - MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL0; - 800148c: 2300 movs r3, #0 - 800148e: 72bb strb r3, [r7, #10] - MPU_InitStruct.IsShareable = MPU_ACCESS_SHAREABLE; - 8001490: 2301 movs r3, #1 - 8001492: 737b strb r3, [r7, #13] - MPU_InitStruct.IsBufferable = MPU_ACCESS_BUFFERABLE; - 8001494: 2301 movs r3, #1 - 8001496: 73fb strb r3, [r7, #15] - - HAL_MPU_ConfigRegion(&MPU_InitStruct); - 8001498: 463b mov r3, r7 - 800149a: 4618 mov r0, r3 - 800149c: f001 f8be bl 800261c - - /** Initializes and configures the Region and the memory to be protected - */ - MPU_InitStruct.Number = MPU_REGION_NUMBER3; - 80014a0: 2303 movs r3, #3 - 80014a2: 707b strb r3, [r7, #1] - MPU_InitStruct.BaseAddress = 0x24000000; - 80014a4: f04f 5310 mov.w r3, #603979776 ; 0x24000000 - 80014a8: 607b str r3, [r7, #4] - MPU_InitStruct.Size = MPU_REGION_SIZE_128KB; - 80014aa: 2310 movs r3, #16 - 80014ac: 723b strb r3, [r7, #8] - MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL1; - 80014ae: 2301 movs r3, #1 - 80014b0: 72bb strb r3, [r7, #10] - MPU_InitStruct.DisableExec = MPU_INSTRUCTION_ACCESS_ENABLE; - 80014b2: 2300 movs r3, #0 - 80014b4: 733b strb r3, [r7, #12] - MPU_InitStruct.IsBufferable = MPU_ACCESS_NOT_BUFFERABLE; - 80014b6: 2300 movs r3, #0 - 80014b8: 73fb strb r3, [r7, #15] - - HAL_MPU_ConfigRegion(&MPU_InitStruct); - 80014ba: 463b mov r3, r7 - 80014bc: 4618 mov r0, r3 - 80014be: f001 f8ad bl 800261c - /* Enables the MPU */ - HAL_MPU_Enable(MPU_PRIVILEGED_DEFAULT); - 80014c2: 2004 movs r0, #4 - 80014c4: f001 f88a bl 80025dc - -} - 80014c8: bf00 nop - 80014ca: 3710 adds r7, #16 - 80014cc: 46bd mov sp, r7 - 80014ce: bd80 pop {r7, pc} - -080014d0 : - * a global variable "uwTick" used as application time base. - * @param htim : TIM handle - * @retval None - */ -void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) -{ - 80014d0: b580 push {r7, lr} - 80014d2: b082 sub sp, #8 - 80014d4: af00 add r7, sp, #0 - 80014d6: 6078 str r0, [r7, #4] - /* USER CODE BEGIN Callback 0 */ - - /* USER CODE END Callback 0 */ - if (htim->Instance == TIM6) { - 80014d8: 687b ldr r3, [r7, #4] - 80014da: 681b ldr r3, [r3, #0] - 80014dc: 4a04 ldr r2, [pc, #16] ; (80014f0 ) - 80014de: 4293 cmp r3, r2 - 80014e0: d101 bne.n 80014e6 - HAL_IncTick(); - 80014e2: f000 ff2b bl 800233c - } - /* USER CODE BEGIN Callback 1 */ - - /* USER CODE END Callback 1 */ -} - 80014e6: bf00 nop - 80014e8: 3708 adds r7, #8 - 80014ea: 46bd mov sp, r7 - 80014ec: bd80 pop {r7, pc} - 80014ee: bf00 nop - 80014f0: 40001000 .word 0x40001000 - -080014f4 : -/** - * @brief This function is executed in case of error occurrence. - * @retval None - */ -void Error_Handler(void) -{ - 80014f4: b480 push {r7} - 80014f6: af00 add r7, sp, #0 - __ASM volatile ("cpsid i" : : : "memory"); - 80014f8: b672 cpsid i -} - 80014fa: bf00 nop - /* USER CODE BEGIN Error_Handler_Debug */ - /* User can add his own implementation to report the HAL error return state */ - __disable_irq(); - while (1) { - 80014fc: e7fe b.n 80014fc - ... - -08001500 : -/* USER CODE END 0 */ -/** - * Initializes the Global MSP. - */ -void HAL_MspInit(void) -{ - 8001500: b580 push {r7, lr} - 8001502: b082 sub sp, #8 - 8001504: af00 add r7, sp, #0 - /* USER CODE BEGIN MspInit 0 */ - - /* USER CODE END MspInit 0 */ - - __HAL_RCC_SYSCFG_CLK_ENABLE(); - 8001506: 4b0c ldr r3, [pc, #48] ; (8001538 ) - 8001508: f8d3 30f4 ldr.w r3, [r3, #244] ; 0xf4 - 800150c: 4a0a ldr r2, [pc, #40] ; (8001538 ) - 800150e: f043 0302 orr.w r3, r3, #2 - 8001512: f8c2 30f4 str.w r3, [r2, #244] ; 0xf4 - 8001516: 4b08 ldr r3, [pc, #32] ; (8001538 ) - 8001518: f8d3 30f4 ldr.w r3, [r3, #244] ; 0xf4 - 800151c: f003 0302 and.w r3, r3, #2 - 8001520: 607b str r3, [r7, #4] - 8001522: 687b ldr r3, [r7, #4] - - /* System interrupt init*/ - /* PendSV_IRQn interrupt configuration */ - HAL_NVIC_SetPriority(PendSV_IRQn, 15, 0); - 8001524: 2200 movs r2, #0 - 8001526: 210f movs r1, #15 - 8001528: f06f 0001 mvn.w r0, #1 - 800152c: f001 f816 bl 800255c - - /* USER CODE BEGIN MspInit 1 */ - - /* USER CODE END MspInit 1 */ -} - 8001530: bf00 nop - 8001532: 3708 adds r7, #8 - 8001534: 46bd mov sp, r7 - 8001536: bd80 pop {r7, pc} - 8001538: 58024400 .word 0x58024400 - -0800153c : -* This function configures the hardware resources used in this example -* @param hfdcan: FDCAN handle pointer -* @retval None -*/ -void HAL_FDCAN_MspInit(FDCAN_HandleTypeDef* hfdcan) -{ - 800153c: b580 push {r7, lr} - 800153e: b0bc sub sp, #240 ; 0xf0 - 8001540: af00 add r7, sp, #0 - 8001542: 6078 str r0, [r7, #4] - GPIO_InitTypeDef GPIO_InitStruct = {0}; - 8001544: f107 03dc add.w r3, r7, #220 ; 0xdc - 8001548: 2200 movs r2, #0 - 800154a: 601a str r2, [r3, #0] - 800154c: 605a str r2, [r3, #4] - 800154e: 609a str r2, [r3, #8] - 8001550: 60da str r2, [r3, #12] - 8001552: 611a str r2, [r3, #16] - RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0}; - 8001554: f107 0320 add.w r3, r7, #32 - 8001558: 22b8 movs r2, #184 ; 0xb8 - 800155a: 2100 movs r1, #0 - 800155c: 4618 mov r0, r3 - 800155e: f020 fbbf bl 8021ce0 - if(hfdcan->Instance==FDCAN1) - 8001562: 687b ldr r3, [r7, #4] - 8001564: 681b ldr r3, [r3, #0] - 8001566: 4a8e ldr r2, [pc, #568] ; (80017a0 ) - 8001568: 4293 cmp r3, r2 - 800156a: d159 bne.n 8001620 - - /* USER CODE END FDCAN1_MspInit 0 */ - - /** Initializes the peripherals clock - */ - PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_FDCAN; - 800156c: f44f 4200 mov.w r2, #32768 ; 0x8000 - 8001570: f04f 0300 mov.w r3, #0 - 8001574: e9c7 2308 strd r2, r3, [r7, #32] - PeriphClkInitStruct.FdcanClockSelection = RCC_FDCANCLKSOURCE_PLL; - 8001578: f04f 5380 mov.w r3, #268435456 ; 0x10000000 - 800157c: f8c7 308c str.w r3, [r7, #140] ; 0x8c - if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK) - 8001580: f107 0320 add.w r3, r7, #32 - 8001584: 4618 mov r0, r3 - 8001586: f006 fd59 bl 800803c - 800158a: 4603 mov r3, r0 - 800158c: 2b00 cmp r3, #0 - 800158e: d001 beq.n 8001594 - { - Error_Handler(); - 8001590: f7ff ffb0 bl 80014f4 - } - - /* Peripheral clock enable */ - HAL_RCC_FDCAN_CLK_ENABLED++; - 8001594: 4b83 ldr r3, [pc, #524] ; (80017a4 ) - 8001596: 681b ldr r3, [r3, #0] - 8001598: 3301 adds r3, #1 - 800159a: 4a82 ldr r2, [pc, #520] ; (80017a4 ) - 800159c: 6013 str r3, [r2, #0] - if(HAL_RCC_FDCAN_CLK_ENABLED==1){ - 800159e: 4b81 ldr r3, [pc, #516] ; (80017a4 ) - 80015a0: 681b ldr r3, [r3, #0] - 80015a2: 2b01 cmp r3, #1 - 80015a4: d10e bne.n 80015c4 - __HAL_RCC_FDCAN_CLK_ENABLE(); - 80015a6: 4b80 ldr r3, [pc, #512] ; (80017a8 ) - 80015a8: f8d3 30ec ldr.w r3, [r3, #236] ; 0xec - 80015ac: 4a7e ldr r2, [pc, #504] ; (80017a8 ) - 80015ae: f443 7380 orr.w r3, r3, #256 ; 0x100 - 80015b2: f8c2 30ec str.w r3, [r2, #236] ; 0xec - 80015b6: 4b7c ldr r3, [pc, #496] ; (80017a8 ) - 80015b8: f8d3 30ec ldr.w r3, [r3, #236] ; 0xec - 80015bc: f403 7380 and.w r3, r3, #256 ; 0x100 - 80015c0: 61fb str r3, [r7, #28] - 80015c2: 69fb ldr r3, [r7, #28] - } - - __HAL_RCC_GPIOB_CLK_ENABLE(); - 80015c4: 4b78 ldr r3, [pc, #480] ; (80017a8 ) - 80015c6: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 80015ca: 4a77 ldr r2, [pc, #476] ; (80017a8 ) - 80015cc: f043 0302 orr.w r3, r3, #2 - 80015d0: f8c2 30e0 str.w r3, [r2, #224] ; 0xe0 - 80015d4: 4b74 ldr r3, [pc, #464] ; (80017a8 ) - 80015d6: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 80015da: f003 0302 and.w r3, r3, #2 - 80015de: 61bb str r3, [r7, #24] - 80015e0: 69bb ldr r3, [r7, #24] - /**FDCAN1 GPIO Configuration - PB9 ------> FDCAN1_TX - PB8 ------> FDCAN1_RX - */ - GPIO_InitStruct.Pin = GPIO_PIN_9|GPIO_PIN_8; - 80015e2: f44f 7340 mov.w r3, #768 ; 0x300 - 80015e6: f8c7 30dc str.w r3, [r7, #220] ; 0xdc - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 80015ea: 2302 movs r3, #2 - 80015ec: f8c7 30e0 str.w r3, [r7, #224] ; 0xe0 - GPIO_InitStruct.Pull = GPIO_NOPULL; - 80015f0: 2300 movs r3, #0 - 80015f2: f8c7 30e4 str.w r3, [r7, #228] ; 0xe4 - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 80015f6: 2300 movs r3, #0 - 80015f8: f8c7 30e8 str.w r3, [r7, #232] ; 0xe8 - GPIO_InitStruct.Alternate = GPIO_AF9_FDCAN1; - 80015fc: 2309 movs r3, #9 - 80015fe: f8c7 30ec str.w r3, [r7, #236] ; 0xec - HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - 8001602: f107 03dc add.w r3, r7, #220 ; 0xdc - 8001606: 4619 mov r1, r3 - 8001608: 4868 ldr r0, [pc, #416] ; (80017ac ) - 800160a: f005 f8d1 bl 80067b0 - - /* FDCAN1 interrupt Init */ - HAL_NVIC_SetPriority(FDCAN1_IT0_IRQn, 5, 0); - 800160e: 2200 movs r2, #0 - 8001610: 2105 movs r1, #5 - 8001612: 2013 movs r0, #19 - 8001614: f000 ffa2 bl 800255c - HAL_NVIC_EnableIRQ(FDCAN1_IT0_IRQn); - 8001618: 2013 movs r0, #19 - 800161a: f000 ffb9 bl 8002590 - /* USER CODE BEGIN FDCAN3_MspInit 1 */ - - /* USER CODE END FDCAN3_MspInit 1 */ - } - -} - 800161e: e0bb b.n 8001798 - else if(hfdcan->Instance==FDCAN2) - 8001620: 687b ldr r3, [r7, #4] - 8001622: 681b ldr r3, [r3, #0] - 8001624: 4a62 ldr r2, [pc, #392] ; (80017b0 ) - 8001626: 4293 cmp r3, r2 - 8001628: d158 bne.n 80016dc - PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_FDCAN; - 800162a: f44f 4200 mov.w r2, #32768 ; 0x8000 - 800162e: f04f 0300 mov.w r3, #0 - 8001632: e9c7 2308 strd r2, r3, [r7, #32] - PeriphClkInitStruct.FdcanClockSelection = RCC_FDCANCLKSOURCE_PLL; - 8001636: f04f 5380 mov.w r3, #268435456 ; 0x10000000 - 800163a: f8c7 308c str.w r3, [r7, #140] ; 0x8c - if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK) - 800163e: f107 0320 add.w r3, r7, #32 - 8001642: 4618 mov r0, r3 - 8001644: f006 fcfa bl 800803c - 8001648: 4603 mov r3, r0 - 800164a: 2b00 cmp r3, #0 - 800164c: d001 beq.n 8001652 - Error_Handler(); - 800164e: f7ff ff51 bl 80014f4 - HAL_RCC_FDCAN_CLK_ENABLED++; - 8001652: 4b54 ldr r3, [pc, #336] ; (80017a4 ) - 8001654: 681b ldr r3, [r3, #0] - 8001656: 3301 adds r3, #1 - 8001658: 4a52 ldr r2, [pc, #328] ; (80017a4 ) - 800165a: 6013 str r3, [r2, #0] - if(HAL_RCC_FDCAN_CLK_ENABLED==1){ - 800165c: 4b51 ldr r3, [pc, #324] ; (80017a4 ) - 800165e: 681b ldr r3, [r3, #0] - 8001660: 2b01 cmp r3, #1 - 8001662: d10e bne.n 8001682 - __HAL_RCC_FDCAN_CLK_ENABLE(); - 8001664: 4b50 ldr r3, [pc, #320] ; (80017a8 ) - 8001666: f8d3 30ec ldr.w r3, [r3, #236] ; 0xec - 800166a: 4a4f ldr r2, [pc, #316] ; (80017a8 ) - 800166c: f443 7380 orr.w r3, r3, #256 ; 0x100 - 8001670: f8c2 30ec str.w r3, [r2, #236] ; 0xec - 8001674: 4b4c ldr r3, [pc, #304] ; (80017a8 ) - 8001676: f8d3 30ec ldr.w r3, [r3, #236] ; 0xec - 800167a: f403 7380 and.w r3, r3, #256 ; 0x100 - 800167e: 617b str r3, [r7, #20] - 8001680: 697b ldr r3, [r7, #20] - __HAL_RCC_GPIOB_CLK_ENABLE(); - 8001682: 4b49 ldr r3, [pc, #292] ; (80017a8 ) - 8001684: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 8001688: 4a47 ldr r2, [pc, #284] ; (80017a8 ) - 800168a: f043 0302 orr.w r3, r3, #2 - 800168e: f8c2 30e0 str.w r3, [r2, #224] ; 0xe0 - 8001692: 4b45 ldr r3, [pc, #276] ; (80017a8 ) - 8001694: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 8001698: f003 0302 and.w r3, r3, #2 - 800169c: 613b str r3, [r7, #16] - 800169e: 693b ldr r3, [r7, #16] - GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_5; - 80016a0: 2360 movs r3, #96 ; 0x60 - 80016a2: f8c7 30dc str.w r3, [r7, #220] ; 0xdc - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 80016a6: 2302 movs r3, #2 - 80016a8: f8c7 30e0 str.w r3, [r7, #224] ; 0xe0 - GPIO_InitStruct.Pull = GPIO_NOPULL; - 80016ac: 2300 movs r3, #0 - 80016ae: f8c7 30e4 str.w r3, [r7, #228] ; 0xe4 - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 80016b2: 2300 movs r3, #0 - 80016b4: f8c7 30e8 str.w r3, [r7, #232] ; 0xe8 - GPIO_InitStruct.Alternate = GPIO_AF9_FDCAN2; - 80016b8: 2309 movs r3, #9 - 80016ba: f8c7 30ec str.w r3, [r7, #236] ; 0xec - HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - 80016be: f107 03dc add.w r3, r7, #220 ; 0xdc - 80016c2: 4619 mov r1, r3 - 80016c4: 4839 ldr r0, [pc, #228] ; (80017ac ) - 80016c6: f005 f873 bl 80067b0 - HAL_NVIC_SetPriority(FDCAN2_IT0_IRQn, 5, 0); - 80016ca: 2200 movs r2, #0 - 80016cc: 2105 movs r1, #5 - 80016ce: 2014 movs r0, #20 - 80016d0: f000 ff44 bl 800255c - HAL_NVIC_EnableIRQ(FDCAN2_IT0_IRQn); - 80016d4: 2014 movs r0, #20 - 80016d6: f000 ff5b bl 8002590 -} - 80016da: e05d b.n 8001798 - else if(hfdcan->Instance==FDCAN3) - 80016dc: 687b ldr r3, [r7, #4] - 80016de: 681b ldr r3, [r3, #0] - 80016e0: 4a34 ldr r2, [pc, #208] ; (80017b4 ) - 80016e2: 4293 cmp r3, r2 - 80016e4: d158 bne.n 8001798 - PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_FDCAN; - 80016e6: f44f 4200 mov.w r2, #32768 ; 0x8000 - 80016ea: f04f 0300 mov.w r3, #0 - 80016ee: e9c7 2308 strd r2, r3, [r7, #32] - PeriphClkInitStruct.FdcanClockSelection = RCC_FDCANCLKSOURCE_PLL; - 80016f2: f04f 5380 mov.w r3, #268435456 ; 0x10000000 - 80016f6: f8c7 308c str.w r3, [r7, #140] ; 0x8c - if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK) - 80016fa: f107 0320 add.w r3, r7, #32 - 80016fe: 4618 mov r0, r3 - 8001700: f006 fc9c bl 800803c - 8001704: 4603 mov r3, r0 - 8001706: 2b00 cmp r3, #0 - 8001708: d001 beq.n 800170e - Error_Handler(); - 800170a: f7ff fef3 bl 80014f4 - HAL_RCC_FDCAN_CLK_ENABLED++; - 800170e: 4b25 ldr r3, [pc, #148] ; (80017a4 ) - 8001710: 681b ldr r3, [r3, #0] - 8001712: 3301 adds r3, #1 - 8001714: 4a23 ldr r2, [pc, #140] ; (80017a4 ) - 8001716: 6013 str r3, [r2, #0] - if(HAL_RCC_FDCAN_CLK_ENABLED==1){ - 8001718: 4b22 ldr r3, [pc, #136] ; (80017a4 ) - 800171a: 681b ldr r3, [r3, #0] - 800171c: 2b01 cmp r3, #1 - 800171e: d10e bne.n 800173e - __HAL_RCC_FDCAN_CLK_ENABLE(); - 8001720: 4b21 ldr r3, [pc, #132] ; (80017a8 ) - 8001722: f8d3 30ec ldr.w r3, [r3, #236] ; 0xec - 8001726: 4a20 ldr r2, [pc, #128] ; (80017a8 ) - 8001728: f443 7380 orr.w r3, r3, #256 ; 0x100 - 800172c: f8c2 30ec str.w r3, [r2, #236] ; 0xec - 8001730: 4b1d ldr r3, [pc, #116] ; (80017a8 ) - 8001732: f8d3 30ec ldr.w r3, [r3, #236] ; 0xec - 8001736: f403 7380 and.w r3, r3, #256 ; 0x100 - 800173a: 60fb str r3, [r7, #12] - 800173c: 68fb ldr r3, [r7, #12] - __HAL_RCC_GPIOD_CLK_ENABLE(); - 800173e: 4b1a ldr r3, [pc, #104] ; (80017a8 ) - 8001740: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 8001744: 4a18 ldr r2, [pc, #96] ; (80017a8 ) - 8001746: f043 0308 orr.w r3, r3, #8 - 800174a: f8c2 30e0 str.w r3, [r2, #224] ; 0xe0 - 800174e: 4b16 ldr r3, [pc, #88] ; (80017a8 ) - 8001750: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 8001754: f003 0308 and.w r3, r3, #8 - 8001758: 60bb str r3, [r7, #8] - 800175a: 68bb ldr r3, [r7, #8] - GPIO_InitStruct.Pin = GPIO_PIN_13|GPIO_PIN_12; - 800175c: f44f 5340 mov.w r3, #12288 ; 0x3000 - 8001760: f8c7 30dc str.w r3, [r7, #220] ; 0xdc - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8001764: 2302 movs r3, #2 - 8001766: f8c7 30e0 str.w r3, [r7, #224] ; 0xe0 - GPIO_InitStruct.Pull = GPIO_NOPULL; - 800176a: 2300 movs r3, #0 - 800176c: f8c7 30e4 str.w r3, [r7, #228] ; 0xe4 - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 8001770: 2300 movs r3, #0 - 8001772: f8c7 30e8 str.w r3, [r7, #232] ; 0xe8 - GPIO_InitStruct.Alternate = GPIO_AF5_FDCAN3; - 8001776: 2305 movs r3, #5 - 8001778: f8c7 30ec str.w r3, [r7, #236] ; 0xec - HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); - 800177c: f107 03dc add.w r3, r7, #220 ; 0xdc - 8001780: 4619 mov r1, r3 - 8001782: 480d ldr r0, [pc, #52] ; (80017b8 ) - 8001784: f005 f814 bl 80067b0 - HAL_NVIC_SetPriority(FDCAN3_IT0_IRQn, 5, 0); - 8001788: 2200 movs r2, #0 - 800178a: 2105 movs r1, #5 - 800178c: 209f movs r0, #159 ; 0x9f - 800178e: f000 fee5 bl 800255c - HAL_NVIC_EnableIRQ(FDCAN3_IT0_IRQn); - 8001792: 209f movs r0, #159 ; 0x9f - 8001794: f000 fefc bl 8002590 -} - 8001798: bf00 nop - 800179a: 37f0 adds r7, #240 ; 0xf0 - 800179c: 46bd mov sp, r7 - 800179e: bd80 pop {r7, pc} - 80017a0: 4000a000 .word 0x4000a000 - 80017a4: 24007380 .word 0x24007380 - 80017a8: 58024400 .word 0x58024400 - 80017ac: 58020400 .word 0x58020400 - 80017b0: 4000a400 .word 0x4000a400 - 80017b4: 4000d400 .word 0x4000d400 - 80017b8: 58020c00 .word 0x58020c00 - -080017bc : -* This function configures the hardware resources used in this example -* @param hsd: SD handle pointer -* @retval None -*/ -void HAL_SD_MspInit(SD_HandleTypeDef* hsd) -{ - 80017bc: b580 push {r7, lr} - 80017be: b0ba sub sp, #232 ; 0xe8 - 80017c0: af00 add r7, sp, #0 - 80017c2: 6078 str r0, [r7, #4] - GPIO_InitTypeDef GPIO_InitStruct = {0}; - 80017c4: f107 03d4 add.w r3, r7, #212 ; 0xd4 - 80017c8: 2200 movs r2, #0 - 80017ca: 601a str r2, [r3, #0] - 80017cc: 605a str r2, [r3, #4] - 80017ce: 609a str r2, [r3, #8] - 80017d0: 60da str r2, [r3, #12] - 80017d2: 611a str r2, [r3, #16] - RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0}; - 80017d4: f107 0318 add.w r3, r7, #24 - 80017d8: 22b8 movs r2, #184 ; 0xb8 - 80017da: 2100 movs r1, #0 - 80017dc: 4618 mov r0, r3 - 80017de: f020 fa7f bl 8021ce0 - if(hsd->Instance==SDMMC1) - 80017e2: 687b ldr r3, [r7, #4] - 80017e4: 681b ldr r3, [r3, #0] - 80017e6: 4a3c ldr r2, [pc, #240] ; (80018d8 ) - 80017e8: 4293 cmp r3, r2 - 80017ea: d171 bne.n 80018d0 - - /* USER CODE END SDMMC1_MspInit 0 */ - - /** Initializes the peripherals clock - */ - PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_SDMMC; - 80017ec: f44f 3280 mov.w r2, #65536 ; 0x10000 - 80017f0: f04f 0300 mov.w r3, #0 - 80017f4: e9c7 2306 strd r2, r3, [r7, #24] - PeriphClkInitStruct.SdmmcClockSelection = RCC_SDMMCCLKSOURCE_PLL; - 80017f8: 2300 movs r3, #0 - 80017fa: 66bb str r3, [r7, #104] ; 0x68 - if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK) - 80017fc: f107 0318 add.w r3, r7, #24 - 8001800: 4618 mov r0, r3 - 8001802: f006 fc1b bl 800803c - 8001806: 4603 mov r3, r0 - 8001808: 2b00 cmp r3, #0 - 800180a: d001 beq.n 8001810 - { - Error_Handler(); - 800180c: f7ff fe72 bl 80014f4 - } - - /* Peripheral clock enable */ - __HAL_RCC_SDMMC1_CLK_ENABLE(); - 8001810: 4b32 ldr r3, [pc, #200] ; (80018dc ) - 8001812: f8d3 30d4 ldr.w r3, [r3, #212] ; 0xd4 - 8001816: 4a31 ldr r2, [pc, #196] ; (80018dc ) - 8001818: f443 3380 orr.w r3, r3, #65536 ; 0x10000 - 800181c: f8c2 30d4 str.w r3, [r2, #212] ; 0xd4 - 8001820: 4b2e ldr r3, [pc, #184] ; (80018dc ) - 8001822: f8d3 30d4 ldr.w r3, [r3, #212] ; 0xd4 - 8001826: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 800182a: 617b str r3, [r7, #20] - 800182c: 697b ldr r3, [r7, #20] - - __HAL_RCC_GPIOD_CLK_ENABLE(); - 800182e: 4b2b ldr r3, [pc, #172] ; (80018dc ) - 8001830: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 8001834: 4a29 ldr r2, [pc, #164] ; (80018dc ) - 8001836: f043 0308 orr.w r3, r3, #8 - 800183a: f8c2 30e0 str.w r3, [r2, #224] ; 0xe0 - 800183e: 4b27 ldr r3, [pc, #156] ; (80018dc ) - 8001840: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 8001844: f003 0308 and.w r3, r3, #8 - 8001848: 613b str r3, [r7, #16] - 800184a: 693b ldr r3, [r7, #16] - __HAL_RCC_GPIOC_CLK_ENABLE(); - 800184c: 4b23 ldr r3, [pc, #140] ; (80018dc ) - 800184e: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 8001852: 4a22 ldr r2, [pc, #136] ; (80018dc ) - 8001854: f043 0304 orr.w r3, r3, #4 - 8001858: f8c2 30e0 str.w r3, [r2, #224] ; 0xe0 - 800185c: 4b1f ldr r3, [pc, #124] ; (80018dc ) - 800185e: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 8001862: f003 0304 and.w r3, r3, #4 - 8001866: 60fb str r3, [r7, #12] - 8001868: 68fb ldr r3, [r7, #12] - PC10 ------> SDMMC1_D2 - PC12 ------> SDMMC1_CK - PC9 ------> SDMMC1_D1 - PC8 ------> SDMMC1_D0 - */ - GPIO_InitStruct.Pin = GPIO_PIN_2; - 800186a: 2304 movs r3, #4 - 800186c: f8c7 30d4 str.w r3, [r7, #212] ; 0xd4 - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8001870: 2302 movs r3, #2 - 8001872: f8c7 30d8 str.w r3, [r7, #216] ; 0xd8 - GPIO_InitStruct.Pull = GPIO_NOPULL; - 8001876: 2300 movs r3, #0 - 8001878: f8c7 30dc str.w r3, [r7, #220] ; 0xdc - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 800187c: 2303 movs r3, #3 - 800187e: f8c7 30e0 str.w r3, [r7, #224] ; 0xe0 - GPIO_InitStruct.Alternate = GPIO_AF12_SDMMC1; - 8001882: 230c movs r3, #12 - 8001884: f8c7 30e4 str.w r3, [r7, #228] ; 0xe4 - HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); - 8001888: f107 03d4 add.w r3, r7, #212 ; 0xd4 - 800188c: 4619 mov r1, r3 - 800188e: 4814 ldr r0, [pc, #80] ; (80018e0 ) - 8001890: f004 ff8e bl 80067b0 - - GPIO_InitStruct.Pin = GPIO_PIN_11|GPIO_PIN_10|GPIO_PIN_12|GPIO_PIN_9 - 8001894: f44f 53f8 mov.w r3, #7936 ; 0x1f00 - 8001898: f8c7 30d4 str.w r3, [r7, #212] ; 0xd4 - |GPIO_PIN_8; - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 800189c: 2302 movs r3, #2 - 800189e: f8c7 30d8 str.w r3, [r7, #216] ; 0xd8 - GPIO_InitStruct.Pull = GPIO_NOPULL; - 80018a2: 2300 movs r3, #0 - 80018a4: f8c7 30dc str.w r3, [r7, #220] ; 0xdc - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 80018a8: 2303 movs r3, #3 - 80018aa: f8c7 30e0 str.w r3, [r7, #224] ; 0xe0 - GPIO_InitStruct.Alternate = GPIO_AF12_SDMMC1; - 80018ae: 230c movs r3, #12 - 80018b0: f8c7 30e4 str.w r3, [r7, #228] ; 0xe4 - HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); - 80018b4: f107 03d4 add.w r3, r7, #212 ; 0xd4 - 80018b8: 4619 mov r1, r3 - 80018ba: 480a ldr r0, [pc, #40] ; (80018e4 ) - 80018bc: f004 ff78 bl 80067b0 - - /* SDMMC1 interrupt Init */ - HAL_NVIC_SetPriority(SDMMC1_IRQn, 5, 0); - 80018c0: 2200 movs r2, #0 - 80018c2: 2105 movs r1, #5 - 80018c4: 2031 movs r0, #49 ; 0x31 - 80018c6: f000 fe49 bl 800255c - HAL_NVIC_EnableIRQ(SDMMC1_IRQn); - 80018ca: 2031 movs r0, #49 ; 0x31 - 80018cc: f000 fe60 bl 8002590 - /* USER CODE BEGIN SDMMC1_MspInit 1 */ - - /* USER CODE END SDMMC1_MspInit 1 */ - } - -} - 80018d0: bf00 nop - 80018d2: 37e8 adds r7, #232 ; 0xe8 - 80018d4: 46bd mov sp, r7 - 80018d6: bd80 pop {r7, pc} - 80018d8: 52007000 .word 0x52007000 - 80018dc: 58024400 .word 0x58024400 - 80018e0: 58020c00 .word 0x58020c00 - 80018e4: 58020800 .word 0x58020800 - -080018e8 : -* 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) -{ - 80018e8: b480 push {r7} - 80018ea: b085 sub sp, #20 - 80018ec: af00 add r7, sp, #0 - 80018ee: 6078 str r0, [r7, #4] - if(htim_base->Instance==TIM3) - 80018f0: 687b ldr r3, [r7, #4] - 80018f2: 681b ldr r3, [r3, #0] - 80018f4: 4a0b ldr r2, [pc, #44] ; (8001924 ) - 80018f6: 4293 cmp r3, r2 - 80018f8: d10e bne.n 8001918 - { - /* USER CODE BEGIN TIM3_MspInit 0 */ - - /* USER CODE END TIM3_MspInit 0 */ - /* Peripheral clock enable */ - __HAL_RCC_TIM3_CLK_ENABLE(); - 80018fa: 4b0b ldr r3, [pc, #44] ; (8001928 ) - 80018fc: f8d3 30e8 ldr.w r3, [r3, #232] ; 0xe8 - 8001900: 4a09 ldr r2, [pc, #36] ; (8001928 ) - 8001902: f043 0302 orr.w r3, r3, #2 - 8001906: f8c2 30e8 str.w r3, [r2, #232] ; 0xe8 - 800190a: 4b07 ldr r3, [pc, #28] ; (8001928 ) - 800190c: f8d3 30e8 ldr.w r3, [r3, #232] ; 0xe8 - 8001910: f003 0302 and.w r3, r3, #2 - 8001914: 60fb str r3, [r7, #12] - 8001916: 68fb ldr r3, [r7, #12] - /* USER CODE BEGIN TIM3_MspInit 1 */ - - /* USER CODE END TIM3_MspInit 1 */ - } - -} - 8001918: bf00 nop - 800191a: 3714 adds r7, #20 - 800191c: 46bd mov sp, r7 - 800191e: f85d 7b04 ldr.w r7, [sp], #4 - 8001922: 4770 bx lr - 8001924: 40000400 .word 0x40000400 - 8001928: 58024400 .word 0x58024400 - -0800192c : -* This function configures the hardware resources used in this example -* @param huart: UART handle pointer -* @retval None -*/ -void HAL_UART_MspInit(UART_HandleTypeDef* huart) -{ - 800192c: b580 push {r7, lr} - 800192e: b0bc sub sp, #240 ; 0xf0 - 8001930: af00 add r7, sp, #0 - 8001932: 6078 str r0, [r7, #4] - GPIO_InitTypeDef GPIO_InitStruct = {0}; - 8001934: f107 03dc add.w r3, r7, #220 ; 0xdc - 8001938: 2200 movs r2, #0 - 800193a: 601a str r2, [r3, #0] - 800193c: 605a str r2, [r3, #4] - 800193e: 609a str r2, [r3, #8] - 8001940: 60da str r2, [r3, #12] - 8001942: 611a str r2, [r3, #16] - RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0}; - 8001944: f107 0320 add.w r3, r7, #32 - 8001948: 22b8 movs r2, #184 ; 0xb8 - 800194a: 2100 movs r1, #0 - 800194c: 4618 mov r0, r3 - 800194e: f020 f9c7 bl 8021ce0 - if(huart->Instance==UART4) - 8001952: 687b ldr r3, [r7, #4] - 8001954: 681b ldr r3, [r3, #0] - 8001956: 4a8a ldr r2, [pc, #552] ; (8001b80 ) - 8001958: 4293 cmp r3, r2 - 800195a: d146 bne.n 80019ea - - /* USER CODE END UART4_MspInit 0 */ - - /** Initializes the peripherals clock - */ - PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_UART4; - 800195c: f04f 0202 mov.w r2, #2 - 8001960: f04f 0300 mov.w r3, #0 - 8001964: e9c7 2308 strd r2, r3, [r7, #32] - PeriphClkInitStruct.Usart234578ClockSelection = RCC_USART234578CLKSOURCE_D2PCLK1; - 8001968: 2300 movs r3, #0 - 800196a: f8c7 3094 str.w r3, [r7, #148] ; 0x94 - if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK) - 800196e: f107 0320 add.w r3, r7, #32 - 8001972: 4618 mov r0, r3 - 8001974: f006 fb62 bl 800803c - 8001978: 4603 mov r3, r0 - 800197a: 2b00 cmp r3, #0 - 800197c: d001 beq.n 8001982 - { - Error_Handler(); - 800197e: f7ff fdb9 bl 80014f4 - } - - /* Peripheral clock enable */ - __HAL_RCC_UART4_CLK_ENABLE(); - 8001982: 4b80 ldr r3, [pc, #512] ; (8001b84 ) - 8001984: f8d3 30e8 ldr.w r3, [r3, #232] ; 0xe8 - 8001988: 4a7e ldr r2, [pc, #504] ; (8001b84 ) - 800198a: f443 2300 orr.w r3, r3, #524288 ; 0x80000 - 800198e: f8c2 30e8 str.w r3, [r2, #232] ; 0xe8 - 8001992: 4b7c ldr r3, [pc, #496] ; (8001b84 ) - 8001994: f8d3 30e8 ldr.w r3, [r3, #232] ; 0xe8 - 8001998: f403 2300 and.w r3, r3, #524288 ; 0x80000 - 800199c: 61fb str r3, [r7, #28] - 800199e: 69fb ldr r3, [r7, #28] - - __HAL_RCC_GPIOD_CLK_ENABLE(); - 80019a0: 4b78 ldr r3, [pc, #480] ; (8001b84 ) - 80019a2: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 80019a6: 4a77 ldr r2, [pc, #476] ; (8001b84 ) - 80019a8: f043 0308 orr.w r3, r3, #8 - 80019ac: f8c2 30e0 str.w r3, [r2, #224] ; 0xe0 - 80019b0: 4b74 ldr r3, [pc, #464] ; (8001b84 ) - 80019b2: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 80019b6: f003 0308 and.w r3, r3, #8 - 80019ba: 61bb str r3, [r7, #24] - 80019bc: 69bb ldr r3, [r7, #24] - /**UART4 GPIO Configuration - PD0 ------> UART4_RX - PD1 ------> UART4_TX - */ - GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1; - 80019be: 2303 movs r3, #3 - 80019c0: f8c7 30dc str.w r3, [r7, #220] ; 0xdc - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 80019c4: 2302 movs r3, #2 - 80019c6: f8c7 30e0 str.w r3, [r7, #224] ; 0xe0 - GPIO_InitStruct.Pull = GPIO_NOPULL; - 80019ca: 2300 movs r3, #0 - 80019cc: f8c7 30e4 str.w r3, [r7, #228] ; 0xe4 - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 80019d0: 2300 movs r3, #0 - 80019d2: f8c7 30e8 str.w r3, [r7, #232] ; 0xe8 - GPIO_InitStruct.Alternate = GPIO_AF8_UART4; - 80019d6: 2308 movs r3, #8 - 80019d8: f8c7 30ec str.w r3, [r7, #236] ; 0xec - HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); - 80019dc: f107 03dc add.w r3, r7, #220 ; 0xdc - 80019e0: 4619 mov r1, r3 - 80019e2: 4869 ldr r0, [pc, #420] ; (8001b88 ) - 80019e4: f004 fee4 bl 80067b0 - /* USER CODE BEGIN UART8_MspInit 1 */ - - /* USER CODE END UART8_MspInit 1 */ - } - -} - 80019e8: e0c6 b.n 8001b78 - else if(huart->Instance==UART7) - 80019ea: 687b ldr r3, [r7, #4] - 80019ec: 681b ldr r3, [r3, #0] - 80019ee: 4a67 ldr r2, [pc, #412] ; (8001b8c ) - 80019f0: 4293 cmp r3, r2 - 80019f2: d147 bne.n 8001a84 - PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_UART7; - 80019f4: f04f 0202 mov.w r2, #2 - 80019f8: f04f 0300 mov.w r3, #0 - 80019fc: e9c7 2308 strd r2, r3, [r7, #32] - PeriphClkInitStruct.Usart234578ClockSelection = RCC_USART234578CLKSOURCE_D2PCLK1; - 8001a00: 2300 movs r3, #0 - 8001a02: f8c7 3094 str.w r3, [r7, #148] ; 0x94 - if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK) - 8001a06: f107 0320 add.w r3, r7, #32 - 8001a0a: 4618 mov r0, r3 - 8001a0c: f006 fb16 bl 800803c - 8001a10: 4603 mov r3, r0 - 8001a12: 2b00 cmp r3, #0 - 8001a14: d001 beq.n 8001a1a - Error_Handler(); - 8001a16: f7ff fd6d bl 80014f4 - __HAL_RCC_UART7_CLK_ENABLE(); - 8001a1a: 4b5a ldr r3, [pc, #360] ; (8001b84 ) - 8001a1c: f8d3 30e8 ldr.w r3, [r3, #232] ; 0xe8 - 8001a20: 4a58 ldr r2, [pc, #352] ; (8001b84 ) - 8001a22: f043 4380 orr.w r3, r3, #1073741824 ; 0x40000000 - 8001a26: f8c2 30e8 str.w r3, [r2, #232] ; 0xe8 - 8001a2a: 4b56 ldr r3, [pc, #344] ; (8001b84 ) - 8001a2c: f8d3 30e8 ldr.w r3, [r3, #232] ; 0xe8 - 8001a30: f003 4380 and.w r3, r3, #1073741824 ; 0x40000000 - 8001a34: 617b str r3, [r7, #20] - 8001a36: 697b ldr r3, [r7, #20] - __HAL_RCC_GPIOE_CLK_ENABLE(); - 8001a38: 4b52 ldr r3, [pc, #328] ; (8001b84 ) - 8001a3a: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 8001a3e: 4a51 ldr r2, [pc, #324] ; (8001b84 ) - 8001a40: f043 0310 orr.w r3, r3, #16 - 8001a44: f8c2 30e0 str.w r3, [r2, #224] ; 0xe0 - 8001a48: 4b4e ldr r3, [pc, #312] ; (8001b84 ) - 8001a4a: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 8001a4e: f003 0310 and.w r3, r3, #16 - 8001a52: 613b str r3, [r7, #16] - 8001a54: 693b ldr r3, [r7, #16] - GPIO_InitStruct.Pin = GPIO_PIN_7|GPIO_PIN_8; - 8001a56: f44f 73c0 mov.w r3, #384 ; 0x180 - 8001a5a: f8c7 30dc str.w r3, [r7, #220] ; 0xdc - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8001a5e: 2302 movs r3, #2 - 8001a60: f8c7 30e0 str.w r3, [r7, #224] ; 0xe0 - GPIO_InitStruct.Pull = GPIO_NOPULL; - 8001a64: 2300 movs r3, #0 - 8001a66: f8c7 30e4 str.w r3, [r7, #228] ; 0xe4 - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 8001a6a: 2300 movs r3, #0 - 8001a6c: f8c7 30e8 str.w r3, [r7, #232] ; 0xe8 - GPIO_InitStruct.Alternate = GPIO_AF7_UART7; - 8001a70: 2307 movs r3, #7 - 8001a72: f8c7 30ec str.w r3, [r7, #236] ; 0xec - HAL_GPIO_Init(GPIOE, &GPIO_InitStruct); - 8001a76: f107 03dc add.w r3, r7, #220 ; 0xdc - 8001a7a: 4619 mov r1, r3 - 8001a7c: 4844 ldr r0, [pc, #272] ; (8001b90 ) - 8001a7e: f004 fe97 bl 80067b0 -} - 8001a82: e079 b.n 8001b78 - else if(huart->Instance==UART8) - 8001a84: 687b ldr r3, [r7, #4] - 8001a86: 681b ldr r3, [r3, #0] - 8001a88: 4a42 ldr r2, [pc, #264] ; (8001b94 ) - 8001a8a: 4293 cmp r3, r2 - 8001a8c: d174 bne.n 8001b78 - PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_UART8; - 8001a8e: f04f 0202 mov.w r2, #2 - 8001a92: f04f 0300 mov.w r3, #0 - 8001a96: e9c7 2308 strd r2, r3, [r7, #32] - PeriphClkInitStruct.Usart234578ClockSelection = RCC_USART234578CLKSOURCE_D2PCLK1; - 8001a9a: 2300 movs r3, #0 - 8001a9c: f8c7 3094 str.w r3, [r7, #148] ; 0x94 - if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK) - 8001aa0: f107 0320 add.w r3, r7, #32 - 8001aa4: 4618 mov r0, r3 - 8001aa6: f006 fac9 bl 800803c - 8001aaa: 4603 mov r3, r0 - 8001aac: 2b00 cmp r3, #0 - 8001aae: d001 beq.n 8001ab4 - Error_Handler(); - 8001ab0: f7ff fd20 bl 80014f4 - __HAL_RCC_UART8_CLK_ENABLE(); - 8001ab4: 4b33 ldr r3, [pc, #204] ; (8001b84 ) - 8001ab6: f8d3 30e8 ldr.w r3, [r3, #232] ; 0xe8 - 8001aba: 4a32 ldr r2, [pc, #200] ; (8001b84 ) - 8001abc: f043 4300 orr.w r3, r3, #2147483648 ; 0x80000000 - 8001ac0: f8c2 30e8 str.w r3, [r2, #232] ; 0xe8 - 8001ac4: 4b2f ldr r3, [pc, #188] ; (8001b84 ) - 8001ac6: f8d3 30e8 ldr.w r3, [r3, #232] ; 0xe8 - 8001aca: f003 4300 and.w r3, r3, #2147483648 ; 0x80000000 - 8001ace: 60fb str r3, [r7, #12] - 8001ad0: 68fb ldr r3, [r7, #12] - __HAL_RCC_GPIOE_CLK_ENABLE(); - 8001ad2: 4b2c ldr r3, [pc, #176] ; (8001b84 ) - 8001ad4: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 8001ad8: 4a2a ldr r2, [pc, #168] ; (8001b84 ) - 8001ada: f043 0310 orr.w r3, r3, #16 - 8001ade: f8c2 30e0 str.w r3, [r2, #224] ; 0xe0 - 8001ae2: 4b28 ldr r3, [pc, #160] ; (8001b84 ) - 8001ae4: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 8001ae8: f003 0310 and.w r3, r3, #16 - 8001aec: 60bb str r3, [r7, #8] - 8001aee: 68bb ldr r3, [r7, #8] - GPIO_InitStruct.Pin = GPIO_PIN_1|GPIO_PIN_0; - 8001af0: 2303 movs r3, #3 - 8001af2: f8c7 30dc str.w r3, [r7, #220] ; 0xdc - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8001af6: 2302 movs r3, #2 - 8001af8: f8c7 30e0 str.w r3, [r7, #224] ; 0xe0 - GPIO_InitStruct.Pull = GPIO_NOPULL; - 8001afc: 2300 movs r3, #0 - 8001afe: f8c7 30e4 str.w r3, [r7, #228] ; 0xe4 - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 8001b02: 2300 movs r3, #0 - 8001b04: f8c7 30e8 str.w r3, [r7, #232] ; 0xe8 - GPIO_InitStruct.Alternate = GPIO_AF8_UART8; - 8001b08: 2308 movs r3, #8 - 8001b0a: f8c7 30ec str.w r3, [r7, #236] ; 0xec - HAL_GPIO_Init(GPIOE, &GPIO_InitStruct); - 8001b0e: f107 03dc add.w r3, r7, #220 ; 0xdc - 8001b12: 4619 mov r1, r3 - 8001b14: 481e ldr r0, [pc, #120] ; (8001b90 ) - 8001b16: f004 fe4b bl 80067b0 - hdma_uart8_rx.Instance = DMA1_Stream0; - 8001b1a: 4b1f ldr r3, [pc, #124] ; (8001b98 ) - 8001b1c: 4a1f ldr r2, [pc, #124] ; (8001b9c ) - 8001b1e: 601a str r2, [r3, #0] - hdma_uart8_rx.Init.Request = DMA_REQUEST_UART8_RX; - 8001b20: 4b1d ldr r3, [pc, #116] ; (8001b98 ) - 8001b22: 2251 movs r2, #81 ; 0x51 - 8001b24: 605a str r2, [r3, #4] - hdma_uart8_rx.Init.Direction = DMA_PERIPH_TO_MEMORY; - 8001b26: 4b1c ldr r3, [pc, #112] ; (8001b98 ) - 8001b28: 2200 movs r2, #0 - 8001b2a: 609a str r2, [r3, #8] - hdma_uart8_rx.Init.PeriphInc = DMA_PINC_DISABLE; - 8001b2c: 4b1a ldr r3, [pc, #104] ; (8001b98 ) - 8001b2e: 2200 movs r2, #0 - 8001b30: 60da str r2, [r3, #12] - hdma_uart8_rx.Init.MemInc = DMA_MINC_ENABLE; - 8001b32: 4b19 ldr r3, [pc, #100] ; (8001b98 ) - 8001b34: f44f 6280 mov.w r2, #1024 ; 0x400 - 8001b38: 611a str r2, [r3, #16] - hdma_uart8_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; - 8001b3a: 4b17 ldr r3, [pc, #92] ; (8001b98 ) - 8001b3c: 2200 movs r2, #0 - 8001b3e: 615a str r2, [r3, #20] - hdma_uart8_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; - 8001b40: 4b15 ldr r3, [pc, #84] ; (8001b98 ) - 8001b42: 2200 movs r2, #0 - 8001b44: 619a str r2, [r3, #24] - hdma_uart8_rx.Init.Mode = DMA_CIRCULAR; - 8001b46: 4b14 ldr r3, [pc, #80] ; (8001b98 ) - 8001b48: f44f 7280 mov.w r2, #256 ; 0x100 - 8001b4c: 61da str r2, [r3, #28] - hdma_uart8_rx.Init.Priority = DMA_PRIORITY_LOW; - 8001b4e: 4b12 ldr r3, [pc, #72] ; (8001b98 ) - 8001b50: 2200 movs r2, #0 - 8001b52: 621a str r2, [r3, #32] - hdma_uart8_rx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; - 8001b54: 4b10 ldr r3, [pc, #64] ; (8001b98 ) - 8001b56: 2200 movs r2, #0 - 8001b58: 625a str r2, [r3, #36] ; 0x24 - if (HAL_DMA_Init(&hdma_uart8_rx) != HAL_OK) - 8001b5a: 480f ldr r0, [pc, #60] ; (8001b98 ) - 8001b5c: f000 fda2 bl 80026a4 - 8001b60: 4603 mov r3, r0 - 8001b62: 2b00 cmp r3, #0 - 8001b64: d001 beq.n 8001b6a - Error_Handler(); - 8001b66: f7ff fcc5 bl 80014f4 - __HAL_LINKDMA(huart,hdmarx,hdma_uart8_rx); - 8001b6a: 687b ldr r3, [r7, #4] - 8001b6c: 4a0a ldr r2, [pc, #40] ; (8001b98 ) - 8001b6e: f8c3 2080 str.w r2, [r3, #128] ; 0x80 - 8001b72: 4a09 ldr r2, [pc, #36] ; (8001b98 ) - 8001b74: 687b ldr r3, [r7, #4] - 8001b76: 6393 str r3, [r2, #56] ; 0x38 -} - 8001b78: bf00 nop - 8001b7a: 37f0 adds r7, #240 ; 0xf0 - 8001b7c: 46bd mov sp, r7 - 8001b7e: bd80 pop {r7, pc} - 8001b80: 40004c00 .word 0x40004c00 - 8001b84: 58024400 .word 0x58024400 - 8001b88: 58020c00 .word 0x58020c00 - 8001b8c: 40007800 .word 0x40007800 - 8001b90: 58021000 .word 0x58021000 - 8001b94: 40007c00 .word 0x40007c00 - 8001b98: 240011cc .word 0x240011cc - 8001b9c: 40020010 .word 0x40020010 - -08001ba0 : - * 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) -{ - 8001ba0: b580 push {r7, lr} - 8001ba2: b090 sub sp, #64 ; 0x40 - 8001ba4: af00 add r7, sp, #0 - 8001ba6: 6078 str r0, [r7, #4] - uint32_t uwTimclock, uwAPB1Prescaler; - - uint32_t uwPrescalerValue; - uint32_t pFLatency; -/*Configure the TIM6 IRQ priority */ - if (TickPriority < (1UL << __NVIC_PRIO_BITS)) - 8001ba8: 687b ldr r3, [r7, #4] - 8001baa: 2b0f cmp r3, #15 - 8001bac: d827 bhi.n 8001bfe - { - HAL_NVIC_SetPriority(TIM6_DAC_IRQn, TickPriority ,0U); - 8001bae: 2200 movs r2, #0 - 8001bb0: 6879 ldr r1, [r7, #4] - 8001bb2: 2036 movs r0, #54 ; 0x36 - 8001bb4: f000 fcd2 bl 800255c - - /* Enable the TIM6 global Interrupt */ - HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn); - 8001bb8: 2036 movs r0, #54 ; 0x36 - 8001bba: f000 fce9 bl 8002590 - uwTickPrio = TickPriority; - 8001bbe: 4a29 ldr r2, [pc, #164] ; (8001c64 ) - 8001bc0: 687b ldr r3, [r7, #4] - 8001bc2: 6013 str r3, [r2, #0] - { - return HAL_ERROR; - } - - /* Enable TIM6 clock */ - __HAL_RCC_TIM6_CLK_ENABLE(); - 8001bc4: 4b28 ldr r3, [pc, #160] ; (8001c68 ) - 8001bc6: f8d3 30e8 ldr.w r3, [r3, #232] ; 0xe8 - 8001bca: 4a27 ldr r2, [pc, #156] ; (8001c68 ) - 8001bcc: f043 0310 orr.w r3, r3, #16 - 8001bd0: f8c2 30e8 str.w r3, [r2, #232] ; 0xe8 - 8001bd4: 4b24 ldr r3, [pc, #144] ; (8001c68 ) - 8001bd6: f8d3 30e8 ldr.w r3, [r3, #232] ; 0xe8 - 8001bda: f003 0310 and.w r3, r3, #16 - 8001bde: 60fb str r3, [r7, #12] - 8001be0: 68fb ldr r3, [r7, #12] - - /* Get clock configuration */ - HAL_RCC_GetClockConfig(&clkconfig, &pFLatency); - 8001be2: f107 0210 add.w r2, r7, #16 - 8001be6: f107 0314 add.w r3, r7, #20 - 8001bea: 4611 mov r1, r2 - 8001bec: 4618 mov r0, r3 - 8001bee: f006 f9e3 bl 8007fb8 - - /* Get APB1 prescaler */ - uwAPB1Prescaler = clkconfig.APB1CLKDivider; - 8001bf2: 6abb ldr r3, [r7, #40] ; 0x28 - 8001bf4: 63bb str r3, [r7, #56] ; 0x38 - /* Compute TIM6 clock */ - if (uwAPB1Prescaler == RCC_HCLK_DIV1) - 8001bf6: 6bbb ldr r3, [r7, #56] ; 0x38 - 8001bf8: 2b00 cmp r3, #0 - 8001bfa: d106 bne.n 8001c0a - 8001bfc: e001 b.n 8001c02 - return HAL_ERROR; - 8001bfe: 2301 movs r3, #1 - 8001c00: e02b b.n 8001c5a - { - uwTimclock = HAL_RCC_GetPCLK1Freq(); - 8001c02: f006 f9ad bl 8007f60 - 8001c06: 63f8 str r0, [r7, #60] ; 0x3c - 8001c08: e004 b.n 8001c14 - } - else - { - uwTimclock = 2UL * HAL_RCC_GetPCLK1Freq(); - 8001c0a: f006 f9a9 bl 8007f60 - 8001c0e: 4603 mov r3, r0 - 8001c10: 005b lsls r3, r3, #1 - 8001c12: 63fb str r3, [r7, #60] ; 0x3c - } - - /* Compute the prescaler value to have TIM6 counter clock equal to 1MHz */ - uwPrescalerValue = (uint32_t) ((uwTimclock / 1000000U) - 1U); - 8001c14: 6bfb ldr r3, [r7, #60] ; 0x3c - 8001c16: 4a15 ldr r2, [pc, #84] ; (8001c6c ) - 8001c18: fba2 2303 umull r2, r3, r2, r3 - 8001c1c: 0c9b lsrs r3, r3, #18 - 8001c1e: 3b01 subs r3, #1 - 8001c20: 637b str r3, [r7, #52] ; 0x34 - - /* Initialize TIM6 */ - htim6.Instance = TIM6; - 8001c22: 4b13 ldr r3, [pc, #76] ; (8001c70 ) - 8001c24: 4a13 ldr r2, [pc, #76] ; (8001c74 ) - 8001c26: 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; - 8001c28: 4b11 ldr r3, [pc, #68] ; (8001c70 ) - 8001c2a: f240 32e7 movw r2, #999 ; 0x3e7 - 8001c2e: 60da str r2, [r3, #12] - htim6.Init.Prescaler = uwPrescalerValue; - 8001c30: 4a0f ldr r2, [pc, #60] ; (8001c70 ) - 8001c32: 6b7b ldr r3, [r7, #52] ; 0x34 - 8001c34: 6053 str r3, [r2, #4] - htim6.Init.ClockDivision = 0; - 8001c36: 4b0e ldr r3, [pc, #56] ; (8001c70 ) - 8001c38: 2200 movs r2, #0 - 8001c3a: 611a str r2, [r3, #16] - htim6.Init.CounterMode = TIM_COUNTERMODE_UP; - 8001c3c: 4b0c ldr r3, [pc, #48] ; (8001c70 ) - 8001c3e: 2200 movs r2, #0 - 8001c40: 609a str r2, [r3, #8] - - if(HAL_TIM_Base_Init(&htim6) == HAL_OK) - 8001c42: 480b ldr r0, [pc, #44] ; (8001c70 ) - 8001c44: f00a fa44 bl 800c0d0 - 8001c48: 4603 mov r3, r0 - 8001c4a: 2b00 cmp r3, #0 - 8001c4c: d104 bne.n 8001c58 - { - /* Start the TIM time Base generation in interrupt mode */ - return HAL_TIM_Base_Start_IT(&htim6); - 8001c4e: 4808 ldr r0, [pc, #32] ; (8001c70 ) - 8001c50: f00a fa96 bl 800c180 - 8001c54: 4603 mov r3, r0 - 8001c56: e000 b.n 8001c5a - } - - /* Return function status */ - return HAL_ERROR; - 8001c58: 2301 movs r3, #1 -} - 8001c5a: 4618 mov r0, r3 - 8001c5c: 3740 adds r7, #64 ; 0x40 - 8001c5e: 46bd mov sp, r7 - 8001c60: bd80 pop {r7, pc} - 8001c62: bf00 nop - 8001c64: 2400001c .word 0x2400001c - 8001c68: 58024400 .word 0x58024400 - 8001c6c: 431bde83 .word 0x431bde83 - 8001c70: 24007384 .word 0x24007384 - 8001c74: 40001000 .word 0x40001000 - -08001c78 : -/******************************************************************************/ -/** - * @brief This function handles Non maskable interrupt. - */ -void NMI_Handler(void) -{ - 8001c78: b480 push {r7} - 8001c7a: 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) - 8001c7c: e7fe b.n 8001c7c - -08001c7e : - -/** - * @brief This function handles Hard fault interrupt. - */ -void HardFault_Handler(void) -{ - 8001c7e: b480 push {r7} - 8001c80: af00 add r7, sp, #0 - /* USER CODE BEGIN HardFault_IRQn 0 */ - - /* USER CODE END HardFault_IRQn 0 */ - while (1) - 8001c82: e7fe b.n 8001c82 - -08001c84 : - -/** - * @brief This function handles Memory management fault. - */ -void MemManage_Handler(void) -{ - 8001c84: b480 push {r7} - 8001c86: af00 add r7, sp, #0 - /* USER CODE BEGIN MemoryManagement_IRQn 0 */ - - /* USER CODE END MemoryManagement_IRQn 0 */ - while (1) - 8001c88: e7fe b.n 8001c88 - -08001c8a : - -/** - * @brief This function handles Pre-fetch fault, memory access fault. - */ -void BusFault_Handler(void) -{ - 8001c8a: b480 push {r7} - 8001c8c: af00 add r7, sp, #0 - /* USER CODE BEGIN BusFault_IRQn 0 */ - - /* USER CODE END BusFault_IRQn 0 */ - while (1) - 8001c8e: e7fe b.n 8001c8e - -08001c90 : - -/** - * @brief This function handles Undefined instruction or illegal state. - */ -void UsageFault_Handler(void) -{ - 8001c90: b480 push {r7} - 8001c92: af00 add r7, sp, #0 - /* USER CODE BEGIN UsageFault_IRQn 0 */ - - /* USER CODE END UsageFault_IRQn 0 */ - while (1) - 8001c94: e7fe b.n 8001c94 - -08001c96 : - -/** - * @brief This function handles Debug monitor. - */ -void DebugMon_Handler(void) -{ - 8001c96: b480 push {r7} - 8001c98: af00 add r7, sp, #0 - - /* USER CODE END DebugMonitor_IRQn 0 */ - /* USER CODE BEGIN DebugMonitor_IRQn 1 */ - - /* USER CODE END DebugMonitor_IRQn 1 */ -} - 8001c9a: bf00 nop - 8001c9c: 46bd mov sp, r7 - 8001c9e: f85d 7b04 ldr.w r7, [sp], #4 - 8001ca2: 4770 bx lr - -08001ca4 : - -/** - * @brief This function handles DMA1 stream0 global interrupt. - */ -void DMA1_Stream0_IRQHandler(void) -{ - 8001ca4: b580 push {r7, lr} - 8001ca6: af00 add r7, sp, #0 - /* USER CODE BEGIN DMA1_Stream0_IRQn 0 */ - - /* USER CODE END DMA1_Stream0_IRQn 0 */ - HAL_DMA_IRQHandler(&hdma_uart8_rx); - 8001ca8: 4802 ldr r0, [pc, #8] ; (8001cb4 ) - 8001caa: f001 f853 bl 8002d54 - /* USER CODE BEGIN DMA1_Stream0_IRQn 1 */ - - /* USER CODE END DMA1_Stream0_IRQn 1 */ -} - 8001cae: bf00 nop - 8001cb0: bd80 pop {r7, pc} - 8001cb2: bf00 nop - 8001cb4: 240011cc .word 0x240011cc - -08001cb8 : - -/** - * @brief This function handles FDCAN1 interrupt 0. - */ -void FDCAN1_IT0_IRQHandler(void) -{ - 8001cb8: b580 push {r7, lr} - 8001cba: af00 add r7, sp, #0 - /* USER CODE BEGIN FDCAN1_IT0_IRQn 0 */ - - /* USER CODE END FDCAN1_IT0_IRQn 0 */ - HAL_FDCAN_IRQHandler(&hfdcan1); - 8001cbc: 4802 ldr r0, [pc, #8] ; (8001cc8 ) - 8001cbe: f004 f8ef bl 8005ea0 - /* USER CODE BEGIN FDCAN1_IT0_IRQn 1 */ - - /* USER CODE END FDCAN1_IT0_IRQn 1 */ -} - 8001cc2: bf00 nop - 8001cc4: bd80 pop {r7, pc} - 8001cc6: bf00 nop - 8001cc8: 24000d68 .word 0x24000d68 - -08001ccc : - -/** - * @brief This function handles FDCAN2 interrupt 0. - */ -void FDCAN2_IT0_IRQHandler(void) -{ - 8001ccc: b580 push {r7, lr} - 8001cce: af00 add r7, sp, #0 - /* USER CODE BEGIN FDCAN2_IT0_IRQn 0 */ - - /* USER CODE END FDCAN2_IT0_IRQn 0 */ - HAL_FDCAN_IRQHandler(&hfdcan2); - 8001cd0: 4802 ldr r0, [pc, #8] ; (8001cdc ) - 8001cd2: f004 f8e5 bl 8005ea0 - /* USER CODE BEGIN FDCAN2_IT0_IRQn 1 */ - - /* USER CODE END FDCAN2_IT0_IRQn 1 */ -} - 8001cd6: bf00 nop - 8001cd8: bd80 pop {r7, pc} - 8001cda: bf00 nop - 8001cdc: 24000e08 .word 0x24000e08 - -08001ce0 : - -/** - * @brief This function handles SDMMC1 global interrupt. - */ -void SDMMC1_IRQHandler(void) -{ - 8001ce0: b580 push {r7, lr} - 8001ce2: af00 add r7, sp, #0 - /* USER CODE BEGIN SDMMC1_IRQn 0 */ - - /* USER CODE END SDMMC1_IRQn 0 */ - HAL_SD_IRQHandler(&hsd1); - 8001ce4: 4802 ldr r0, [pc, #8] ; (8001cf0 ) - 8001ce6: f008 ffff bl 800ace8 - /* USER CODE BEGIN SDMMC1_IRQn 1 */ - - /* USER CODE END SDMMC1_IRQn 1 */ -} - 8001cea: bf00 nop - 8001cec: bd80 pop {r7, pc} - 8001cee: bf00 nop - 8001cf0: 24000f48 .word 0x24000f48 - -08001cf4 : - -/** - * @brief This function handles TIM6 global interrupt, DAC1_CH1 and DAC1_CH2 underrun error interrupts. - */ -void TIM6_DAC_IRQHandler(void) -{ - 8001cf4: b580 push {r7, lr} - 8001cf6: af00 add r7, sp, #0 - /* USER CODE BEGIN TIM6_DAC_IRQn 0 */ - - /* USER CODE END TIM6_DAC_IRQn 0 */ - HAL_TIM_IRQHandler(&htim6); - 8001cf8: 4802 ldr r0, [pc, #8] ; (8001d04 ) - 8001cfa: f00a fac7 bl 800c28c - /* USER CODE BEGIN TIM6_DAC_IRQn 1 */ - - /* USER CODE END TIM6_DAC_IRQn 1 */ -} - 8001cfe: bf00 nop - 8001d00: bd80 pop {r7, pc} - 8001d02: bf00 nop - 8001d04: 24007384 .word 0x24007384 - -08001d08 : - -/** - * @brief This function handles Ethernet global interrupt. - */ -void ETH_IRQHandler(void) -{ - 8001d08: b580 push {r7, lr} - 8001d0a: af00 add r7, sp, #0 - /* USER CODE BEGIN ETH_IRQn 0 */ - - /* USER CODE END ETH_IRQn 0 */ - HAL_ETH_IRQHandler(&heth); - 8001d0c: 4802 ldr r0, [pc, #8] ; (8001d18 ) - 8001d0e: f002 fd4b bl 80047a8 - /* USER CODE BEGIN ETH_IRQn 1 */ - - /* USER CODE END ETH_IRQn 1 */ -} - 8001d12: bf00 nop - 8001d14: bd80 pop {r7, pc} - 8001d16: bf00 nop - 8001d18: 2400bdcc .word 0x2400bdcc - -08001d1c : - -/** - * @brief This function handles MDMA global interrupt. - */ -void MDMA_IRQHandler(void) -{ - 8001d1c: b580 push {r7, lr} - 8001d1e: af00 add r7, sp, #0 - /* USER CODE BEGIN MDMA_IRQn 0 */ - - /* USER CODE END MDMA_IRQn 0 */ - HAL_MDMA_IRQHandler(&hmdma_mdma_channel0_sdmmc1_end_data_0); - 8001d20: 4802 ldr r0, [pc, #8] ; (8001d2c ) - 8001d22: f004 ffbd bl 8006ca0 - /* USER CODE BEGIN MDMA_IRQn 1 */ - - /* USER CODE END MDMA_IRQn 1 */ -} - 8001d26: bf00 nop - 8001d28: bd80 pop {r7, pc} - 8001d2a: bf00 nop - 8001d2c: 24001244 .word 0x24001244 - -08001d30 : - -/** - * @brief This function handles FDCAN3 interrupt 0. - */ -void FDCAN3_IT0_IRQHandler(void) -{ - 8001d30: b580 push {r7, lr} - 8001d32: af00 add r7, sp, #0 - /* USER CODE BEGIN FDCAN3_IT0_IRQn 0 */ - - /* USER CODE END FDCAN3_IT0_IRQn 0 */ - HAL_FDCAN_IRQHandler(&hfdcan3); - 8001d34: 4802 ldr r0, [pc, #8] ; (8001d40 ) - 8001d36: f004 f8b3 bl 8005ea0 - /* USER CODE BEGIN FDCAN3_IT0_IRQn 1 */ - - /* USER CODE END FDCAN3_IT0_IRQn 1 */ -} - 8001d3a: bf00 nop - 8001d3c: bd80 pop {r7, pc} - 8001d3e: bf00 nop - 8001d40: 24000ea8 .word 0x24000ea8 - -08001d44 <_getpid>: -void initialise_monitor_handles() -{ -} - -int _getpid(void) -{ - 8001d44: b480 push {r7} - 8001d46: af00 add r7, sp, #0 - return 1; - 8001d48: 2301 movs r3, #1 -} - 8001d4a: 4618 mov r0, r3 - 8001d4c: 46bd mov sp, r7 - 8001d4e: f85d 7b04 ldr.w r7, [sp], #4 - 8001d52: 4770 bx lr - -08001d54 <_kill>: - -int _kill(int pid, int sig) -{ - 8001d54: b480 push {r7} - 8001d56: b083 sub sp, #12 - 8001d58: af00 add r7, sp, #0 - 8001d5a: 6078 str r0, [r7, #4] - 8001d5c: 6039 str r1, [r7, #0] - (void)pid; - (void)sig; - errno = EINVAL; - 8001d5e: 4b05 ldr r3, [pc, #20] ; (8001d74 <_kill+0x20>) - 8001d60: 2216 movs r2, #22 - 8001d62: 601a str r2, [r3, #0] - return -1; - 8001d64: f04f 33ff mov.w r3, #4294967295 -} - 8001d68: 4618 mov r0, r3 - 8001d6a: 370c adds r7, #12 - 8001d6c: 46bd mov sp, r7 - 8001d6e: f85d 7b04 ldr.w r7, [sp], #4 - 8001d72: 4770 bx lr - 8001d74: 2401a5e0 .word 0x2401a5e0 - -08001d78 <_exit>: - -void _exit (int status) -{ - 8001d78: b580 push {r7, lr} - 8001d7a: b082 sub sp, #8 - 8001d7c: af00 add r7, sp, #0 - 8001d7e: 6078 str r0, [r7, #4] - _kill(status, -1); - 8001d80: f04f 31ff mov.w r1, #4294967295 - 8001d84: 6878 ldr r0, [r7, #4] - 8001d86: f7ff ffe5 bl 8001d54 <_kill> - while (1) {} /* Make sure we hang here */ - 8001d8a: e7fe b.n 8001d8a <_exit+0x12> - -08001d8c <_read>: -} - -__attribute__((weak)) int _read(int file, char *ptr, int len) -{ - 8001d8c: b580 push {r7, lr} - 8001d8e: b086 sub sp, #24 - 8001d90: af00 add r7, sp, #0 - 8001d92: 60f8 str r0, [r7, #12] - 8001d94: 60b9 str r1, [r7, #8] - 8001d96: 607a str r2, [r7, #4] - (void)file; - int DataIdx; - - for (DataIdx = 0; DataIdx < len; DataIdx++) - 8001d98: 2300 movs r3, #0 - 8001d9a: 617b str r3, [r7, #20] - 8001d9c: e00a b.n 8001db4 <_read+0x28> - { - *ptr++ = __io_getchar(); - 8001d9e: f3af 8000 nop.w - 8001da2: 4601 mov r1, r0 - 8001da4: 68bb ldr r3, [r7, #8] - 8001da6: 1c5a adds r2, r3, #1 - 8001da8: 60ba str r2, [r7, #8] - 8001daa: b2ca uxtb r2, r1 - 8001dac: 701a strb r2, [r3, #0] - for (DataIdx = 0; DataIdx < len; DataIdx++) - 8001dae: 697b ldr r3, [r7, #20] - 8001db0: 3301 adds r3, #1 - 8001db2: 617b str r3, [r7, #20] - 8001db4: 697a ldr r2, [r7, #20] - 8001db6: 687b ldr r3, [r7, #4] - 8001db8: 429a cmp r2, r3 - 8001dba: dbf0 blt.n 8001d9e <_read+0x12> - } - - return len; - 8001dbc: 687b ldr r3, [r7, #4] -} - 8001dbe: 4618 mov r0, r3 - 8001dc0: 3718 adds r7, #24 - 8001dc2: 46bd mov sp, r7 - 8001dc4: bd80 pop {r7, pc} - -08001dc6 <_close>: - } - return len; -} - -int _close(int file) -{ - 8001dc6: b480 push {r7} - 8001dc8: b083 sub sp, #12 - 8001dca: af00 add r7, sp, #0 - 8001dcc: 6078 str r0, [r7, #4] - (void)file; - return -1; - 8001dce: f04f 33ff mov.w r3, #4294967295 -} - 8001dd2: 4618 mov r0, r3 - 8001dd4: 370c adds r7, #12 - 8001dd6: 46bd mov sp, r7 - 8001dd8: f85d 7b04 ldr.w r7, [sp], #4 - 8001ddc: 4770 bx lr - -08001dde <_fstat>: - - -int _fstat(int file, struct stat *st) -{ - 8001dde: b480 push {r7} - 8001de0: b083 sub sp, #12 - 8001de2: af00 add r7, sp, #0 - 8001de4: 6078 str r0, [r7, #4] - 8001de6: 6039 str r1, [r7, #0] - (void)file; - st->st_mode = S_IFCHR; - 8001de8: 683b ldr r3, [r7, #0] - 8001dea: f44f 5200 mov.w r2, #8192 ; 0x2000 - 8001dee: 605a str r2, [r3, #4] - return 0; - 8001df0: 2300 movs r3, #0 -} - 8001df2: 4618 mov r0, r3 - 8001df4: 370c adds r7, #12 - 8001df6: 46bd mov sp, r7 - 8001df8: f85d 7b04 ldr.w r7, [sp], #4 - 8001dfc: 4770 bx lr - -08001dfe <_isatty>: - -int _isatty(int file) -{ - 8001dfe: b480 push {r7} - 8001e00: b083 sub sp, #12 - 8001e02: af00 add r7, sp, #0 - 8001e04: 6078 str r0, [r7, #4] - (void)file; - return 1; - 8001e06: 2301 movs r3, #1 -} - 8001e08: 4618 mov r0, r3 - 8001e0a: 370c adds r7, #12 - 8001e0c: 46bd mov sp, r7 - 8001e0e: f85d 7b04 ldr.w r7, [sp], #4 - 8001e12: 4770 bx lr - -08001e14 <_lseek>: - -int _lseek(int file, int ptr, int dir) -{ - 8001e14: b480 push {r7} - 8001e16: b085 sub sp, #20 - 8001e18: af00 add r7, sp, #0 - 8001e1a: 60f8 str r0, [r7, #12] - 8001e1c: 60b9 str r1, [r7, #8] - 8001e1e: 607a str r2, [r7, #4] - (void)file; - (void)ptr; - (void)dir; - return 0; - 8001e20: 2300 movs r3, #0 -} - 8001e22: 4618 mov r0, r3 - 8001e24: 3714 adds r7, #20 - 8001e26: 46bd mov sp, r7 - 8001e28: f85d 7b04 ldr.w r7, [sp], #4 - 8001e2c: 4770 bx lr - ... - -08001e30 <_sbrk>: - * - * @param incr Memory size - * @return Pointer to allocated memory - */ -void *_sbrk(ptrdiff_t incr) -{ - 8001e30: b480 push {r7} - 8001e32: b087 sub sp, #28 - 8001e34: af00 add r7, sp, #0 - 8001e36: 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; - 8001e38: 4a14 ldr r2, [pc, #80] ; (8001e8c <_sbrk+0x5c>) - 8001e3a: 4b15 ldr r3, [pc, #84] ; (8001e90 <_sbrk+0x60>) - 8001e3c: 1ad3 subs r3, r2, r3 - 8001e3e: 617b str r3, [r7, #20] - const uint8_t *max_heap = (uint8_t *)stack_limit; - 8001e40: 697b ldr r3, [r7, #20] - 8001e42: 613b str r3, [r7, #16] - uint8_t *prev_heap_end; - - /* Initialize heap end at first call */ - if (NULL == __sbrk_heap_end) - 8001e44: 4b13 ldr r3, [pc, #76] ; (8001e94 <_sbrk+0x64>) - 8001e46: 681b ldr r3, [r3, #0] - 8001e48: 2b00 cmp r3, #0 - 8001e4a: d102 bne.n 8001e52 <_sbrk+0x22> - { - __sbrk_heap_end = &_end; - 8001e4c: 4b11 ldr r3, [pc, #68] ; (8001e94 <_sbrk+0x64>) - 8001e4e: 4a12 ldr r2, [pc, #72] ; (8001e98 <_sbrk+0x68>) - 8001e50: 601a str r2, [r3, #0] - } - - /* Protect heap from growing into the reserved MSP stack */ - if (__sbrk_heap_end + incr > max_heap) - 8001e52: 4b10 ldr r3, [pc, #64] ; (8001e94 <_sbrk+0x64>) - 8001e54: 681a ldr r2, [r3, #0] - 8001e56: 687b ldr r3, [r7, #4] - 8001e58: 4413 add r3, r2 - 8001e5a: 693a ldr r2, [r7, #16] - 8001e5c: 429a cmp r2, r3 - 8001e5e: d205 bcs.n 8001e6c <_sbrk+0x3c> - { - errno = ENOMEM; - 8001e60: 4b0e ldr r3, [pc, #56] ; (8001e9c <_sbrk+0x6c>) - 8001e62: 220c movs r2, #12 - 8001e64: 601a str r2, [r3, #0] - return (void *)-1; - 8001e66: f04f 33ff mov.w r3, #4294967295 - 8001e6a: e009 b.n 8001e80 <_sbrk+0x50> - } - - prev_heap_end = __sbrk_heap_end; - 8001e6c: 4b09 ldr r3, [pc, #36] ; (8001e94 <_sbrk+0x64>) - 8001e6e: 681b ldr r3, [r3, #0] - 8001e70: 60fb str r3, [r7, #12] - __sbrk_heap_end += incr; - 8001e72: 4b08 ldr r3, [pc, #32] ; (8001e94 <_sbrk+0x64>) - 8001e74: 681a ldr r2, [r3, #0] - 8001e76: 687b ldr r3, [r7, #4] - 8001e78: 4413 add r3, r2 - 8001e7a: 4a06 ldr r2, [pc, #24] ; (8001e94 <_sbrk+0x64>) - 8001e7c: 6013 str r3, [r2, #0] - - return (void *)prev_heap_end; - 8001e7e: 68fb ldr r3, [r7, #12] -} - 8001e80: 4618 mov r0, r3 - 8001e82: 371c adds r7, #28 - 8001e84: 46bd mov sp, r7 - 8001e86: f85d 7b04 ldr.w r7, [sp], #4 - 8001e8a: 4770 bx lr - 8001e8c: 24050000 .word 0x24050000 - 8001e90: 00004000 .word 0x00004000 - 8001e94: 240073d0 .word 0x240073d0 - 8001e98: 2401a730 .word 0x2401a730 - 8001e9c: 2401a5e0 .word 0x2401a5e0 - -08001ea0 : - * configuration. - * @param None - * @retval None - */ -void SystemInit (void) -{ - 8001ea0: b480 push {r7} - 8001ea2: b083 sub sp, #12 - 8001ea4: af00 add r7, sp, #0 - __IO uint32_t tmpreg; -#endif /* DATA_IN_D2_SRAM */ - - /* FPU settings ------------------------------------------------------------*/ - #if (__FPU_PRESENT == 1) && (__FPU_USED == 1) - SCB->CPACR |= ((3UL << (10*2))|(3UL << (11*2))); /* set CP10 and CP11 Full Access */ - 8001ea6: 4b3a ldr r3, [pc, #232] ; (8001f90 ) - 8001ea8: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 - 8001eac: 4a38 ldr r2, [pc, #224] ; (8001f90 ) - 8001eae: f443 0370 orr.w r3, r3, #15728640 ; 0xf00000 - 8001eb2: f8c2 3088 str.w r3, [r2, #136] ; 0x88 - #endif - /* Reset the RCC clock configuration to the default reset state ------------*/ - - /* Increasing the CPU frequency */ - if(FLASH_LATENCY_DEFAULT > (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY))) - 8001eb6: 4b37 ldr r3, [pc, #220] ; (8001f94 ) - 8001eb8: 681b ldr r3, [r3, #0] - 8001eba: f003 030f and.w r3, r3, #15 - 8001ebe: 2b06 cmp r3, #6 - 8001ec0: d807 bhi.n 8001ed2 - { - /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ - MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(FLASH_LATENCY_DEFAULT)); - 8001ec2: 4b34 ldr r3, [pc, #208] ; (8001f94 ) - 8001ec4: 681b ldr r3, [r3, #0] - 8001ec6: f023 030f bic.w r3, r3, #15 - 8001eca: 4a32 ldr r2, [pc, #200] ; (8001f94 ) - 8001ecc: f043 0307 orr.w r3, r3, #7 - 8001ed0: 6013 str r3, [r2, #0] - } - - /* Set HSION bit */ - RCC->CR |= RCC_CR_HSION; - 8001ed2: 4b31 ldr r3, [pc, #196] ; (8001f98 ) - 8001ed4: 681b ldr r3, [r3, #0] - 8001ed6: 4a30 ldr r2, [pc, #192] ; (8001f98 ) - 8001ed8: f043 0301 orr.w r3, r3, #1 - 8001edc: 6013 str r3, [r2, #0] - - /* Reset CFGR register */ - RCC->CFGR = 0x00000000; - 8001ede: 4b2e ldr r3, [pc, #184] ; (8001f98 ) - 8001ee0: 2200 movs r2, #0 - 8001ee2: 611a str r2, [r3, #16] - - /* Reset HSEON, HSECSSON, CSION, HSI48ON, CSIKERON, PLL1ON, PLL2ON and PLL3ON bits */ - RCC->CR &= 0xEAF6ED7FU; - 8001ee4: 4b2c ldr r3, [pc, #176] ; (8001f98 ) - 8001ee6: 681a ldr r2, [r3, #0] - 8001ee8: 492b ldr r1, [pc, #172] ; (8001f98 ) - 8001eea: 4b2c ldr r3, [pc, #176] ; (8001f9c ) - 8001eec: 4013 ands r3, r2 - 8001eee: 600b str r3, [r1, #0] - - /* Decreasing the number of wait states because of lower CPU frequency */ - if(FLASH_LATENCY_DEFAULT < (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY))) - 8001ef0: 4b28 ldr r3, [pc, #160] ; (8001f94 ) - 8001ef2: 681b ldr r3, [r3, #0] - 8001ef4: f003 0308 and.w r3, r3, #8 - 8001ef8: 2b00 cmp r3, #0 - 8001efa: d007 beq.n 8001f0c - { - /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ - MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(FLASH_LATENCY_DEFAULT)); - 8001efc: 4b25 ldr r3, [pc, #148] ; (8001f94 ) - 8001efe: 681b ldr r3, [r3, #0] - 8001f00: f023 030f bic.w r3, r3, #15 - 8001f04: 4a23 ldr r2, [pc, #140] ; (8001f94 ) - 8001f06: f043 0307 orr.w r3, r3, #7 - 8001f0a: 6013 str r3, [r2, #0] - } - -#if defined(D3_SRAM_BASE) - /* Reset D1CFGR register */ - RCC->D1CFGR = 0x00000000; - 8001f0c: 4b22 ldr r3, [pc, #136] ; (8001f98 ) - 8001f0e: 2200 movs r2, #0 - 8001f10: 619a str r2, [r3, #24] - - /* Reset D2CFGR register */ - RCC->D2CFGR = 0x00000000; - 8001f12: 4b21 ldr r3, [pc, #132] ; (8001f98 ) - 8001f14: 2200 movs r2, #0 - 8001f16: 61da str r2, [r3, #28] - - /* Reset D3CFGR register */ - RCC->D3CFGR = 0x00000000; - 8001f18: 4b1f ldr r3, [pc, #124] ; (8001f98 ) - 8001f1a: 2200 movs r2, #0 - 8001f1c: 621a str r2, [r3, #32] - - /* Reset SRDCFGR register */ - RCC->SRDCFGR = 0x00000000; -#endif - /* Reset PLLCKSELR register */ - RCC->PLLCKSELR = 0x02020200; - 8001f1e: 4b1e ldr r3, [pc, #120] ; (8001f98 ) - 8001f20: 4a1f ldr r2, [pc, #124] ; (8001fa0 ) - 8001f22: 629a str r2, [r3, #40] ; 0x28 - - /* Reset PLLCFGR register */ - RCC->PLLCFGR = 0x01FF0000; - 8001f24: 4b1c ldr r3, [pc, #112] ; (8001f98 ) - 8001f26: 4a1f ldr r2, [pc, #124] ; (8001fa4 ) - 8001f28: 62da str r2, [r3, #44] ; 0x2c - /* Reset PLL1DIVR register */ - RCC->PLL1DIVR = 0x01010280; - 8001f2a: 4b1b ldr r3, [pc, #108] ; (8001f98 ) - 8001f2c: 4a1e ldr r2, [pc, #120] ; (8001fa8 ) - 8001f2e: 631a str r2, [r3, #48] ; 0x30 - /* Reset PLL1FRACR register */ - RCC->PLL1FRACR = 0x00000000; - 8001f30: 4b19 ldr r3, [pc, #100] ; (8001f98 ) - 8001f32: 2200 movs r2, #0 - 8001f34: 635a str r2, [r3, #52] ; 0x34 - - /* Reset PLL2DIVR register */ - RCC->PLL2DIVR = 0x01010280; - 8001f36: 4b18 ldr r3, [pc, #96] ; (8001f98 ) - 8001f38: 4a1b ldr r2, [pc, #108] ; (8001fa8 ) - 8001f3a: 639a str r2, [r3, #56] ; 0x38 - - /* Reset PLL2FRACR register */ - - RCC->PLL2FRACR = 0x00000000; - 8001f3c: 4b16 ldr r3, [pc, #88] ; (8001f98 ) - 8001f3e: 2200 movs r2, #0 - 8001f40: 63da str r2, [r3, #60] ; 0x3c - /* Reset PLL3DIVR register */ - RCC->PLL3DIVR = 0x01010280; - 8001f42: 4b15 ldr r3, [pc, #84] ; (8001f98 ) - 8001f44: 4a18 ldr r2, [pc, #96] ; (8001fa8 ) - 8001f46: 641a str r2, [r3, #64] ; 0x40 - - /* Reset PLL3FRACR register */ - RCC->PLL3FRACR = 0x00000000; - 8001f48: 4b13 ldr r3, [pc, #76] ; (8001f98 ) - 8001f4a: 2200 movs r2, #0 - 8001f4c: 645a str r2, [r3, #68] ; 0x44 - - /* Reset HSEBYP bit */ - RCC->CR &= 0xFFFBFFFFU; - 8001f4e: 4b12 ldr r3, [pc, #72] ; (8001f98 ) - 8001f50: 681b ldr r3, [r3, #0] - 8001f52: 4a11 ldr r2, [pc, #68] ; (8001f98 ) - 8001f54: f423 2380 bic.w r3, r3, #262144 ; 0x40000 - 8001f58: 6013 str r3, [r2, #0] - - /* Disable all interrupts */ - RCC->CIER = 0x00000000; - 8001f5a: 4b0f ldr r3, [pc, #60] ; (8001f98 ) - 8001f5c: 2200 movs r2, #0 - 8001f5e: 661a str r2, [r3, #96] ; 0x60 -#if defined(DATA_IN_D2_SRAM) - /* in case of initialized data in D2 SRAM (AHB SRAM), enable the D2 SRAM clock (AHB SRAM clock) */ -#if defined(RCC_AHB2ENR_D2SRAM3EN) - RCC->AHB2ENR |= (RCC_AHB2ENR_D2SRAM1EN | RCC_AHB2ENR_D2SRAM2EN | RCC_AHB2ENR_D2SRAM3EN); -#elif defined(RCC_AHB2ENR_D2SRAM2EN) - RCC->AHB2ENR |= (RCC_AHB2ENR_D2SRAM1EN | RCC_AHB2ENR_D2SRAM2EN); - 8001f60: 4b0d ldr r3, [pc, #52] ; (8001f98 ) - 8001f62: f8d3 30dc ldr.w r3, [r3, #220] ; 0xdc - 8001f66: 4a0c ldr r2, [pc, #48] ; (8001f98 ) - 8001f68: f043 43c0 orr.w r3, r3, #1610612736 ; 0x60000000 - 8001f6c: f8c2 30dc str.w r3, [r2, #220] ; 0xdc -#else - RCC->AHB2ENR |= (RCC_AHB2ENR_AHBSRAM1EN | RCC_AHB2ENR_AHBSRAM2EN); -#endif /* RCC_AHB2ENR_D2SRAM3EN */ - - tmpreg = RCC->AHB2ENR; - 8001f70: 4b09 ldr r3, [pc, #36] ; (8001f98 ) - 8001f72: f8d3 30dc ldr.w r3, [r3, #220] ; 0xdc - 8001f76: 607b str r3, [r7, #4] - (void) tmpreg; - 8001f78: 687b ldr r3, [r7, #4] - /* - * Disable the FMC bank1 (enabled after reset). - * This, prevents CPU speculation access on this bank which blocks the use of FMC during - * 24us. During this time the others FMC master (such as LTDC) cannot use it! - */ - FMC_Bank1_R->BTCR[0] = 0x000030D2; - 8001f7a: 4b0c ldr r3, [pc, #48] ; (8001fac ) - 8001f7c: f243 02d2 movw r2, #12498 ; 0x30d2 - 8001f80: 601a str r2, [r3, #0] -#if defined(USER_VECT_TAB_ADDRESS) - SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal D1 AXI-RAM or in Internal FLASH */ -#endif /* USER_VECT_TAB_ADDRESS */ - -#endif /*DUAL_CORE && CORE_CM4*/ -} - 8001f82: bf00 nop - 8001f84: 370c adds r7, #12 - 8001f86: 46bd mov sp, r7 - 8001f88: f85d 7b04 ldr.w r7, [sp], #4 - 8001f8c: 4770 bx lr - 8001f8e: bf00 nop - 8001f90: e000ed00 .word 0xe000ed00 - 8001f94: 52002000 .word 0x52002000 - 8001f98: 58024400 .word 0x58024400 - 8001f9c: eaf6ed7f .word 0xeaf6ed7f - 8001fa0: 02020200 .word 0x02020200 - 8001fa4: 01ff0000 .word 0x01ff0000 - 8001fa8: 01010280 .word 0x01010280 - 8001fac: 52004000 .word 0x52004000 - -08001fb0 : - - .section .text.Reset_Handler - .weak Reset_Handler - .type Reset_Handler, %function -Reset_Handler: - ldr sp, =_estack /* set stack pointer */ - 8001fb0: f8df d034 ldr.w sp, [pc, #52] ; 8001fe8 - -/* Call the clock system initialization function.*/ - bl SystemInit - 8001fb4: f7ff ff74 bl 8001ea0 - -/* Copy the data segment initializers from flash to SRAM */ - ldr r0, =_sdata - 8001fb8: 480c ldr r0, [pc, #48] ; (8001fec ) - ldr r1, =_edata - 8001fba: 490d ldr r1, [pc, #52] ; (8001ff0 ) - ldr r2, =_sidata - 8001fbc: 4a0d ldr r2, [pc, #52] ; (8001ff4 ) - movs r3, #0 - 8001fbe: 2300 movs r3, #0 - b LoopCopyDataInit - 8001fc0: e002 b.n 8001fc8 - -08001fc2 : - -CopyDataInit: - ldr r4, [r2, r3] - 8001fc2: 58d4 ldr r4, [r2, r3] - str r4, [r0, r3] - 8001fc4: 50c4 str r4, [r0, r3] - adds r3, r3, #4 - 8001fc6: 3304 adds r3, #4 - -08001fc8 : - -LoopCopyDataInit: - adds r4, r0, r3 - 8001fc8: 18c4 adds r4, r0, r3 - cmp r4, r1 - 8001fca: 428c cmp r4, r1 - bcc CopyDataInit - 8001fcc: d3f9 bcc.n 8001fc2 -/* Zero fill the bss segment. */ - ldr r2, =_sbss - 8001fce: 4a0a ldr r2, [pc, #40] ; (8001ff8 ) - ldr r4, =_ebss - 8001fd0: 4c0a ldr r4, [pc, #40] ; (8001ffc ) - movs r3, #0 - 8001fd2: 2300 movs r3, #0 - b LoopFillZerobss - 8001fd4: e001 b.n 8001fda - -08001fd6 : - -FillZerobss: - str r3, [r2] - 8001fd6: 6013 str r3, [r2, #0] - adds r2, r2, #4 - 8001fd8: 3204 adds r2, #4 - -08001fda : - -LoopFillZerobss: - cmp r2, r4 - 8001fda: 42a2 cmp r2, r4 - bcc FillZerobss - 8001fdc: d3fb bcc.n 8001fd6 - -/* Call static constructors */ - bl __libc_init_array - 8001fde: f01f fedb bl 8021d98 <__libc_init_array> -/* Call the application's entry point.*/ - bl main - 8001fe2: f7fe fbff bl 80007e4
- bx lr - 8001fe6: 4770 bx lr - ldr sp, =_estack /* set stack pointer */ - 8001fe8: 24050000 .word 0x24050000 - ldr r0, =_sdata - 8001fec: 24000000 .word 0x24000000 - ldr r1, =_edata - 8001ff0: 240000a4 .word 0x240000a4 - ldr r2, =_sidata - 8001ff4: 08026ef8 .word 0x08026ef8 - ldr r2, =_sbss - 8001ff8: 240000a4 .word 0x240000a4 - ldr r4, =_ebss - 8001ffc: 2401a730 .word 0x2401a730 - -08002000 : - * @retval None -*/ - .section .text.Default_Handler,"ax",%progbits -Default_Handler: -Infinite_Loop: - b Infinite_Loop - 8002000: e7fe b.n 8002000 - -08002002 : - * @param ioctx: holds device IO functions. - * @retval LAN8742_STATUS_OK if OK - * LAN8742_STATUS_ERROR if missing mandatory function - */ -int32_t LAN8742_RegisterBusIO(lan8742_Object_t *pObj, lan8742_IOCtx_t *ioctx) -{ - 8002002: b480 push {r7} - 8002004: b083 sub sp, #12 - 8002006: af00 add r7, sp, #0 - 8002008: 6078 str r0, [r7, #4] - 800200a: 6039 str r1, [r7, #0] - if(!pObj || !ioctx->ReadReg || !ioctx->WriteReg || !ioctx->GetTick) - 800200c: 687b ldr r3, [r7, #4] - 800200e: 2b00 cmp r3, #0 - 8002010: d00b beq.n 800202a - 8002012: 683b ldr r3, [r7, #0] - 8002014: 68db ldr r3, [r3, #12] - 8002016: 2b00 cmp r3, #0 - 8002018: d007 beq.n 800202a - 800201a: 683b ldr r3, [r7, #0] - 800201c: 689b ldr r3, [r3, #8] - 800201e: 2b00 cmp r3, #0 - 8002020: d003 beq.n 800202a - 8002022: 683b ldr r3, [r7, #0] - 8002024: 691b ldr r3, [r3, #16] - 8002026: 2b00 cmp r3, #0 - 8002028: d102 bne.n 8002030 - { - return LAN8742_STATUS_ERROR; - 800202a: f04f 33ff mov.w r3, #4294967295 - 800202e: e014 b.n 800205a - } - - pObj->IO.Init = ioctx->Init; - 8002030: 683b ldr r3, [r7, #0] - 8002032: 681a ldr r2, [r3, #0] - 8002034: 687b ldr r3, [r7, #4] - 8002036: 609a str r2, [r3, #8] - pObj->IO.DeInit = ioctx->DeInit; - 8002038: 683b ldr r3, [r7, #0] - 800203a: 685a ldr r2, [r3, #4] - 800203c: 687b ldr r3, [r7, #4] - 800203e: 60da str r2, [r3, #12] - pObj->IO.ReadReg = ioctx->ReadReg; - 8002040: 683b ldr r3, [r7, #0] - 8002042: 68da ldr r2, [r3, #12] - 8002044: 687b ldr r3, [r7, #4] - 8002046: 615a str r2, [r3, #20] - pObj->IO.WriteReg = ioctx->WriteReg; - 8002048: 683b ldr r3, [r7, #0] - 800204a: 689a ldr r2, [r3, #8] - 800204c: 687b ldr r3, [r7, #4] - 800204e: 611a str r2, [r3, #16] - pObj->IO.GetTick = ioctx->GetTick; - 8002050: 683b ldr r3, [r7, #0] - 8002052: 691a ldr r2, [r3, #16] - 8002054: 687b ldr r3, [r7, #4] - 8002056: 619a str r2, [r3, #24] - - return LAN8742_STATUS_OK; - 8002058: 2300 movs r3, #0 -} - 800205a: 4618 mov r0, r3 - 800205c: 370c adds r7, #12 - 800205e: 46bd mov sp, r7 - 8002060: f85d 7b04 ldr.w r7, [sp], #4 - 8002064: 4770 bx lr - -08002066 : - * LAN8742_STATUS_READ_ERROR if connot read register - * LAN8742_STATUS_WRITE_ERROR if connot write to register - * LAN8742_STATUS_RESET_TIMEOUT if cannot perform a software reset - */ - int32_t LAN8742_Init(lan8742_Object_t *pObj) - { - 8002066: b580 push {r7, lr} - 8002068: b086 sub sp, #24 - 800206a: af00 add r7, sp, #0 - 800206c: 6078 str r0, [r7, #4] - uint32_t tickstart = 0, regvalue = 0, addr = 0; - 800206e: 2300 movs r3, #0 - 8002070: 60fb str r3, [r7, #12] - 8002072: 2300 movs r3, #0 - 8002074: 60bb str r3, [r7, #8] - 8002076: 2300 movs r3, #0 - 8002078: 617b str r3, [r7, #20] - int32_t status = LAN8742_STATUS_OK; - 800207a: 2300 movs r3, #0 - 800207c: 613b str r3, [r7, #16] - - if(pObj->Is_Initialized == 0) - 800207e: 687b ldr r3, [r7, #4] - 8002080: 685b ldr r3, [r3, #4] - 8002082: 2b00 cmp r3, #0 - 8002084: d17c bne.n 8002180 - { - if(pObj->IO.Init != 0) - 8002086: 687b ldr r3, [r7, #4] - 8002088: 689b ldr r3, [r3, #8] - 800208a: 2b00 cmp r3, #0 - 800208c: d002 beq.n 8002094 - { - /* GPIO and Clocks initialization */ - pObj->IO.Init(); - 800208e: 687b ldr r3, [r7, #4] - 8002090: 689b ldr r3, [r3, #8] - 8002092: 4798 blx r3 - } - - /* for later check */ - pObj->DevAddr = LAN8742_MAX_DEV_ADDR + 1; - 8002094: 687b ldr r3, [r7, #4] - 8002096: 2220 movs r2, #32 - 8002098: 601a str r2, [r3, #0] - - /* Get the device address from special mode register */ - for(addr = 0; addr <= LAN8742_MAX_DEV_ADDR; addr ++) - 800209a: 2300 movs r3, #0 - 800209c: 617b str r3, [r7, #20] - 800209e: e01c b.n 80020da - { - if(pObj->IO.ReadReg(addr, LAN8742_SMR, ®value) < 0) - 80020a0: 687b ldr r3, [r7, #4] - 80020a2: 695b ldr r3, [r3, #20] - 80020a4: f107 0208 add.w r2, r7, #8 - 80020a8: 2112 movs r1, #18 - 80020aa: 6978 ldr r0, [r7, #20] - 80020ac: 4798 blx r3 - 80020ae: 4603 mov r3, r0 - 80020b0: 2b00 cmp r3, #0 - 80020b2: da03 bge.n 80020bc - { - status = LAN8742_STATUS_READ_ERROR; - 80020b4: f06f 0304 mvn.w r3, #4 - 80020b8: 613b str r3, [r7, #16] - /* Can't read from this device address - continue with next address */ - continue; - 80020ba: e00b b.n 80020d4 - } - - if((regvalue & LAN8742_SMR_PHY_ADDR) == addr) - 80020bc: 68bb ldr r3, [r7, #8] - 80020be: f003 031f and.w r3, r3, #31 - 80020c2: 697a ldr r2, [r7, #20] - 80020c4: 429a cmp r2, r3 - 80020c6: d105 bne.n 80020d4 - { - pObj->DevAddr = addr; - 80020c8: 687b ldr r3, [r7, #4] - 80020ca: 697a ldr r2, [r7, #20] - 80020cc: 601a str r2, [r3, #0] - status = LAN8742_STATUS_OK; - 80020ce: 2300 movs r3, #0 - 80020d0: 613b str r3, [r7, #16] - break; - 80020d2: e005 b.n 80020e0 - for(addr = 0; addr <= LAN8742_MAX_DEV_ADDR; addr ++) - 80020d4: 697b ldr r3, [r7, #20] - 80020d6: 3301 adds r3, #1 - 80020d8: 617b str r3, [r7, #20] - 80020da: 697b ldr r3, [r7, #20] - 80020dc: 2b1f cmp r3, #31 - 80020de: d9df bls.n 80020a0 - } - } - - if(pObj->DevAddr > LAN8742_MAX_DEV_ADDR) - 80020e0: 687b ldr r3, [r7, #4] - 80020e2: 681b ldr r3, [r3, #0] - 80020e4: 2b1f cmp r3, #31 - 80020e6: d902 bls.n 80020ee - { - status = LAN8742_STATUS_ADDRESS_ERROR; - 80020e8: f06f 0302 mvn.w r3, #2 - 80020ec: 613b str r3, [r7, #16] - } - - /* if device address is matched */ - if(status == LAN8742_STATUS_OK) - 80020ee: 693b ldr r3, [r7, #16] - 80020f0: 2b00 cmp r3, #0 - 80020f2: d145 bne.n 8002180 - { - /* set a software reset */ - if(pObj->IO.WriteReg(pObj->DevAddr, LAN8742_BCR, LAN8742_BCR_SOFT_RESET) >= 0) - 80020f4: 687b ldr r3, [r7, #4] - 80020f6: 691b ldr r3, [r3, #16] - 80020f8: 687a ldr r2, [r7, #4] - 80020fa: 6810 ldr r0, [r2, #0] - 80020fc: f44f 4200 mov.w r2, #32768 ; 0x8000 - 8002100: 2100 movs r1, #0 - 8002102: 4798 blx r3 - 8002104: 4603 mov r3, r0 - 8002106: 2b00 cmp r3, #0 - 8002108: db37 blt.n 800217a - { - /* get software reset status */ - if(pObj->IO.ReadReg(pObj->DevAddr, LAN8742_BCR, ®value) >= 0) - 800210a: 687b ldr r3, [r7, #4] - 800210c: 695b ldr r3, [r3, #20] - 800210e: 687a ldr r2, [r7, #4] - 8002110: 6810 ldr r0, [r2, #0] - 8002112: f107 0208 add.w r2, r7, #8 - 8002116: 2100 movs r1, #0 - 8002118: 4798 blx r3 - 800211a: 4603 mov r3, r0 - 800211c: 2b00 cmp r3, #0 - 800211e: db28 blt.n 8002172 - { - tickstart = pObj->IO.GetTick(); - 8002120: 687b ldr r3, [r7, #4] - 8002122: 699b ldr r3, [r3, #24] - 8002124: 4798 blx r3 - 8002126: 4603 mov r3, r0 - 8002128: 60fb str r3, [r7, #12] - - /* wait until software reset is done or timeout occured */ - while(regvalue & LAN8742_BCR_SOFT_RESET) - 800212a: e01c b.n 8002166 - { - if((pObj->IO.GetTick() - tickstart) <= LAN8742_SW_RESET_TO) - 800212c: 687b ldr r3, [r7, #4] - 800212e: 699b ldr r3, [r3, #24] - 8002130: 4798 blx r3 - 8002132: 4603 mov r3, r0 - 8002134: 461a mov r2, r3 - 8002136: 68fb ldr r3, [r7, #12] - 8002138: 1ad3 subs r3, r2, r3 - 800213a: f5b3 7ffa cmp.w r3, #500 ; 0x1f4 - 800213e: d80e bhi.n 800215e - { - if(pObj->IO.ReadReg(pObj->DevAddr, LAN8742_BCR, ®value) < 0) - 8002140: 687b ldr r3, [r7, #4] - 8002142: 695b ldr r3, [r3, #20] - 8002144: 687a ldr r2, [r7, #4] - 8002146: 6810 ldr r0, [r2, #0] - 8002148: f107 0208 add.w r2, r7, #8 - 800214c: 2100 movs r1, #0 - 800214e: 4798 blx r3 - 8002150: 4603 mov r3, r0 - 8002152: 2b00 cmp r3, #0 - 8002154: da07 bge.n 8002166 - { - status = LAN8742_STATUS_READ_ERROR; - 8002156: f06f 0304 mvn.w r3, #4 - 800215a: 613b str r3, [r7, #16] - break; - 800215c: e010 b.n 8002180 - } - } - else - { - status = LAN8742_STATUS_RESET_TIMEOUT; - 800215e: f06f 0301 mvn.w r3, #1 - 8002162: 613b str r3, [r7, #16] - break; - 8002164: e00c b.n 8002180 - while(regvalue & LAN8742_BCR_SOFT_RESET) - 8002166: 68bb ldr r3, [r7, #8] - 8002168: f403 4300 and.w r3, r3, #32768 ; 0x8000 - 800216c: 2b00 cmp r3, #0 - 800216e: d1dd bne.n 800212c - 8002170: e006 b.n 8002180 - } - } - } - else - { - status = LAN8742_STATUS_READ_ERROR; - 8002172: f06f 0304 mvn.w r3, #4 - 8002176: 613b str r3, [r7, #16] - 8002178: e002 b.n 8002180 - } - } - else - { - status = LAN8742_STATUS_WRITE_ERROR; - 800217a: f06f 0303 mvn.w r3, #3 - 800217e: 613b str r3, [r7, #16] - } - } - } - - if(status == LAN8742_STATUS_OK) - 8002180: 693b ldr r3, [r7, #16] - 8002182: 2b00 cmp r3, #0 - 8002184: d112 bne.n 80021ac - { - tickstart = pObj->IO.GetTick(); - 8002186: 687b ldr r3, [r7, #4] - 8002188: 699b ldr r3, [r3, #24] - 800218a: 4798 blx r3 - 800218c: 4603 mov r3, r0 - 800218e: 60fb str r3, [r7, #12] - - /* Wait for 2s to perform initialization */ - while((pObj->IO.GetTick() - tickstart) <= LAN8742_INIT_TO) - 8002190: bf00 nop - 8002192: 687b ldr r3, [r7, #4] - 8002194: 699b ldr r3, [r3, #24] - 8002196: 4798 blx r3 - 8002198: 4603 mov r3, r0 - 800219a: 461a mov r2, r3 - 800219c: 68fb ldr r3, [r7, #12] - 800219e: 1ad3 subs r3, r2, r3 - 80021a0: f5b3 6ffa cmp.w r3, #2000 ; 0x7d0 - 80021a4: d9f5 bls.n 8002192 - { - } - pObj->Is_Initialized = 1; - 80021a6: 687b ldr r3, [r7, #4] - 80021a8: 2201 movs r2, #1 - 80021aa: 605a str r2, [r3, #4] - } - - return status; - 80021ac: 693b ldr r3, [r7, #16] - } - 80021ae: 4618 mov r0, r3 - 80021b0: 3718 adds r7, #24 - 80021b2: 46bd mov sp, r7 - 80021b4: bd80 pop {r7, pc} - -080021b6 : - * LAN8742_STATUS_10MBITS_HALFDUPLEX if 10Mb/s HD - * LAN8742_STATUS_READ_ERROR if connot read register - * LAN8742_STATUS_WRITE_ERROR if connot write to register - */ -int32_t LAN8742_GetLinkState(lan8742_Object_t *pObj) -{ - 80021b6: b580 push {r7, lr} - 80021b8: b084 sub sp, #16 - 80021ba: af00 add r7, sp, #0 - 80021bc: 6078 str r0, [r7, #4] - uint32_t readval = 0; - 80021be: 2300 movs r3, #0 - 80021c0: 60fb str r3, [r7, #12] - - /* Read Status register */ - if(pObj->IO.ReadReg(pObj->DevAddr, LAN8742_BSR, &readval) < 0) - 80021c2: 687b ldr r3, [r7, #4] - 80021c4: 695b ldr r3, [r3, #20] - 80021c6: 687a ldr r2, [r7, #4] - 80021c8: 6810 ldr r0, [r2, #0] - 80021ca: f107 020c add.w r2, r7, #12 - 80021ce: 2101 movs r1, #1 - 80021d0: 4798 blx r3 - 80021d2: 4603 mov r3, r0 - 80021d4: 2b00 cmp r3, #0 - 80021d6: da02 bge.n 80021de - { - return LAN8742_STATUS_READ_ERROR; - 80021d8: f06f 0304 mvn.w r3, #4 - 80021dc: e06e b.n 80022bc - } - - /* Read Status register again */ - if(pObj->IO.ReadReg(pObj->DevAddr, LAN8742_BSR, &readval) < 0) - 80021de: 687b ldr r3, [r7, #4] - 80021e0: 695b ldr r3, [r3, #20] - 80021e2: 687a ldr r2, [r7, #4] - 80021e4: 6810 ldr r0, [r2, #0] - 80021e6: f107 020c add.w r2, r7, #12 - 80021ea: 2101 movs r1, #1 - 80021ec: 4798 blx r3 - 80021ee: 4603 mov r3, r0 - 80021f0: 2b00 cmp r3, #0 - 80021f2: da02 bge.n 80021fa - { - return LAN8742_STATUS_READ_ERROR; - 80021f4: f06f 0304 mvn.w r3, #4 - 80021f8: e060 b.n 80022bc - } - - if((readval & LAN8742_BSR_LINK_STATUS) == 0) - 80021fa: 68fb ldr r3, [r7, #12] - 80021fc: f003 0304 and.w r3, r3, #4 - 8002200: 2b00 cmp r3, #0 - 8002202: d101 bne.n 8002208 - { - /* Return Link Down status */ - return LAN8742_STATUS_LINK_DOWN; - 8002204: 2301 movs r3, #1 - 8002206: e059 b.n 80022bc - } - - /* Check Auto negotiaition */ - if(pObj->IO.ReadReg(pObj->DevAddr, LAN8742_BCR, &readval) < 0) - 8002208: 687b ldr r3, [r7, #4] - 800220a: 695b ldr r3, [r3, #20] - 800220c: 687a ldr r2, [r7, #4] - 800220e: 6810 ldr r0, [r2, #0] - 8002210: f107 020c add.w r2, r7, #12 - 8002214: 2100 movs r1, #0 - 8002216: 4798 blx r3 - 8002218: 4603 mov r3, r0 - 800221a: 2b00 cmp r3, #0 - 800221c: da02 bge.n 8002224 - { - return LAN8742_STATUS_READ_ERROR; - 800221e: f06f 0304 mvn.w r3, #4 - 8002222: e04b b.n 80022bc - } - - if((readval & LAN8742_BCR_AUTONEGO_EN) != LAN8742_BCR_AUTONEGO_EN) - 8002224: 68fb ldr r3, [r7, #12] - 8002226: f403 5380 and.w r3, r3, #4096 ; 0x1000 - 800222a: 2b00 cmp r3, #0 - 800222c: d11b bne.n 8002266 - { - if(((readval & LAN8742_BCR_SPEED_SELECT) == LAN8742_BCR_SPEED_SELECT) && ((readval & LAN8742_BCR_DUPLEX_MODE) == LAN8742_BCR_DUPLEX_MODE)) - 800222e: 68fb ldr r3, [r7, #12] - 8002230: f403 5300 and.w r3, r3, #8192 ; 0x2000 - 8002234: 2b00 cmp r3, #0 - 8002236: d006 beq.n 8002246 - 8002238: 68fb ldr r3, [r7, #12] - 800223a: f403 7380 and.w r3, r3, #256 ; 0x100 - 800223e: 2b00 cmp r3, #0 - 8002240: d001 beq.n 8002246 - { - return LAN8742_STATUS_100MBITS_FULLDUPLEX; - 8002242: 2302 movs r3, #2 - 8002244: e03a b.n 80022bc - } - else if ((readval & LAN8742_BCR_SPEED_SELECT) == LAN8742_BCR_SPEED_SELECT) - 8002246: 68fb ldr r3, [r7, #12] - 8002248: f403 5300 and.w r3, r3, #8192 ; 0x2000 - 800224c: 2b00 cmp r3, #0 - 800224e: d001 beq.n 8002254 - { - return LAN8742_STATUS_100MBITS_HALFDUPLEX; - 8002250: 2303 movs r3, #3 - 8002252: e033 b.n 80022bc - } - else if ((readval & LAN8742_BCR_DUPLEX_MODE) == LAN8742_BCR_DUPLEX_MODE) - 8002254: 68fb ldr r3, [r7, #12] - 8002256: f403 7380 and.w r3, r3, #256 ; 0x100 - 800225a: 2b00 cmp r3, #0 - 800225c: d001 beq.n 8002262 - { - return LAN8742_STATUS_10MBITS_FULLDUPLEX; - 800225e: 2304 movs r3, #4 - 8002260: e02c b.n 80022bc - } - else - { - return LAN8742_STATUS_10MBITS_HALFDUPLEX; - 8002262: 2305 movs r3, #5 - 8002264: e02a b.n 80022bc - } - } - else /* Auto Nego enabled */ - { - if(pObj->IO.ReadReg(pObj->DevAddr, LAN8742_PHYSCSR, &readval) < 0) - 8002266: 687b ldr r3, [r7, #4] - 8002268: 695b ldr r3, [r3, #20] - 800226a: 687a ldr r2, [r7, #4] - 800226c: 6810 ldr r0, [r2, #0] - 800226e: f107 020c add.w r2, r7, #12 - 8002272: 211f movs r1, #31 - 8002274: 4798 blx r3 - 8002276: 4603 mov r3, r0 - 8002278: 2b00 cmp r3, #0 - 800227a: da02 bge.n 8002282 - { - return LAN8742_STATUS_READ_ERROR; - 800227c: f06f 0304 mvn.w r3, #4 - 8002280: e01c b.n 80022bc - } - - /* Check if auto nego not done */ - if((readval & LAN8742_PHYSCSR_AUTONEGO_DONE) == 0) - 8002282: 68fb ldr r3, [r7, #12] - 8002284: f403 5380 and.w r3, r3, #4096 ; 0x1000 - 8002288: 2b00 cmp r3, #0 - 800228a: d101 bne.n 8002290 - { - return LAN8742_STATUS_AUTONEGO_NOTDONE; - 800228c: 2306 movs r3, #6 - 800228e: e015 b.n 80022bc - } - - if((readval & LAN8742_PHYSCSR_HCDSPEEDMASK) == LAN8742_PHYSCSR_100BTX_FD) - 8002290: 68fb ldr r3, [r7, #12] - 8002292: f003 031c and.w r3, r3, #28 - 8002296: 2b18 cmp r3, #24 - 8002298: d101 bne.n 800229e - { - return LAN8742_STATUS_100MBITS_FULLDUPLEX; - 800229a: 2302 movs r3, #2 - 800229c: e00e b.n 80022bc - } - else if ((readval & LAN8742_PHYSCSR_HCDSPEEDMASK) == LAN8742_PHYSCSR_100BTX_HD) - 800229e: 68fb ldr r3, [r7, #12] - 80022a0: f003 031c and.w r3, r3, #28 - 80022a4: 2b08 cmp r3, #8 - 80022a6: d101 bne.n 80022ac - { - return LAN8742_STATUS_100MBITS_HALFDUPLEX; - 80022a8: 2303 movs r3, #3 - 80022aa: e007 b.n 80022bc - } - else if ((readval & LAN8742_PHYSCSR_HCDSPEEDMASK) == LAN8742_PHYSCSR_10BT_FD) - 80022ac: 68fb ldr r3, [r7, #12] - 80022ae: f003 031c and.w r3, r3, #28 - 80022b2: 2b14 cmp r3, #20 - 80022b4: d101 bne.n 80022ba - { - return LAN8742_STATUS_10MBITS_FULLDUPLEX; - 80022b6: 2304 movs r3, #4 - 80022b8: e000 b.n 80022bc - } - else - { - return LAN8742_STATUS_10MBITS_HALFDUPLEX; - 80022ba: 2305 movs r3, #5 - } - } -} - 80022bc: 4618 mov r0, r3 - 80022be: 3710 adds r7, #16 - 80022c0: 46bd mov sp, r7 - 80022c2: bd80 pop {r7, pc} - -080022c4 : - * 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) -{ - 80022c4: b580 push {r7, lr} - 80022c6: b082 sub sp, #8 - 80022c8: af00 add r7, sp, #0 - __HAL_ART_CONFIG_BASE_ADDRESS(0x08100000UL); /* Configure the Cortex-M4 ART Base address to the Flash Bank 2 : */ - __HAL_ART_ENABLE(); /* Enable the Cortex-M4 ART */ -#endif /* DUAL_CORE && CORE_CM4 */ - - /* Set Interrupt Group Priority */ - HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4); - 80022ca: 2003 movs r0, #3 - 80022cc: f000 f93b bl 8002546 - - /* Update the SystemCoreClock global variable */ -#if defined(RCC_D1CFGR_D1CPRE) - common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE)>> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU); - 80022d0: f005 fc9c bl 8007c0c - 80022d4: 4602 mov r2, r0 - 80022d6: 4b15 ldr r3, [pc, #84] ; (800232c ) - 80022d8: 699b ldr r3, [r3, #24] - 80022da: 0a1b lsrs r3, r3, #8 - 80022dc: f003 030f and.w r3, r3, #15 - 80022e0: 4913 ldr r1, [pc, #76] ; (8002330 ) - 80022e2: 5ccb ldrb r3, [r1, r3] - 80022e4: f003 031f and.w r3, r3, #31 - 80022e8: fa22 f303 lsr.w r3, r2, r3 - 80022ec: 607b str r3, [r7, #4] - common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE)>> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU); -#endif - - /* Update the SystemD2Clock global variable */ -#if defined(RCC_D1CFGR_HPRE) - SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE)>> RCC_D1CFGR_HPRE_Pos]) & 0x1FU)); - 80022ee: 4b0f ldr r3, [pc, #60] ; (800232c ) - 80022f0: 699b ldr r3, [r3, #24] - 80022f2: f003 030f and.w r3, r3, #15 - 80022f6: 4a0e ldr r2, [pc, #56] ; (8002330 ) - 80022f8: 5cd3 ldrb r3, [r2, r3] - 80022fa: f003 031f and.w r3, r3, #31 - 80022fe: 687a ldr r2, [r7, #4] - 8002300: fa22 f303 lsr.w r3, r2, r3 - 8002304: 4a0b ldr r2, [pc, #44] ; (8002334 ) - 8002306: 6013 str r3, [r2, #0] -#endif - -#if defined(DUAL_CORE) && defined(CORE_CM4) - SystemCoreClock = SystemD2Clock; -#else - SystemCoreClock = common_system_clock; - 8002308: 4a0b ldr r2, [pc, #44] ; (8002338 ) - 800230a: 687b ldr r3, [r7, #4] - 800230c: 6013 str r3, [r2, #0] -#endif /* DUAL_CORE && CORE_CM4 */ - - /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */ - if(HAL_InitTick(TICK_INT_PRIORITY) != HAL_OK) - 800230e: 200f movs r0, #15 - 8002310: f7ff fc46 bl 8001ba0 - 8002314: 4603 mov r3, r0 - 8002316: 2b00 cmp r3, #0 - 8002318: d001 beq.n 800231e - { - return HAL_ERROR; - 800231a: 2301 movs r3, #1 - 800231c: e002 b.n 8002324 - } - - /* Init the low level hardware */ - HAL_MspInit(); - 800231e: f7ff f8ef bl 8001500 - - /* Return function status */ - return HAL_OK; - 8002322: 2300 movs r3, #0 -} - 8002324: 4618 mov r0, r3 - 8002326: 3708 adds r7, #8 - 8002328: 46bd mov sp, r7 - 800232a: bd80 pop {r7, pc} - 800232c: 58024400 .word 0x58024400 - 8002330: 08026b40 .word 0x08026b40 - 8002334: 24000018 .word 0x24000018 - 8002338: 24000014 .word 0x24000014 - -0800233c : - * @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) -{ - 800233c: b480 push {r7} - 800233e: af00 add r7, sp, #0 - uwTick += (uint32_t)uwTickFreq; - 8002340: 4b06 ldr r3, [pc, #24] ; (800235c ) - 8002342: 781b ldrb r3, [r3, #0] - 8002344: 461a mov r2, r3 - 8002346: 4b06 ldr r3, [pc, #24] ; (8002360 ) - 8002348: 681b ldr r3, [r3, #0] - 800234a: 4413 add r3, r2 - 800234c: 4a04 ldr r2, [pc, #16] ; (8002360 ) - 800234e: 6013 str r3, [r2, #0] -} - 8002350: bf00 nop - 8002352: 46bd mov sp, r7 - 8002354: f85d 7b04 ldr.w r7, [sp], #4 - 8002358: 4770 bx lr - 800235a: bf00 nop - 800235c: 24000020 .word 0x24000020 - 8002360: 240073d4 .word 0x240073d4 - -08002364 : - * @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) -{ - 8002364: b480 push {r7} - 8002366: af00 add r7, sp, #0 - return uwTick; - 8002368: 4b03 ldr r3, [pc, #12] ; (8002378 ) - 800236a: 681b ldr r3, [r3, #0] -} - 800236c: 4618 mov r0, r3 - 800236e: 46bd mov sp, r7 - 8002370: f85d 7b04 ldr.w r7, [sp], #4 - 8002374: 4770 bx lr - 8002376: bf00 nop - 8002378: 240073d4 .word 0x240073d4 - -0800237c : - * implementations in user file. - * @param Delay specifies the delay time length, in milliseconds. - * @retval None - */ -__weak void HAL_Delay(uint32_t Delay) -{ - 800237c: b580 push {r7, lr} - 800237e: b084 sub sp, #16 - 8002380: af00 add r7, sp, #0 - 8002382: 6078 str r0, [r7, #4] - uint32_t tickstart = HAL_GetTick(); - 8002384: f7ff ffee bl 8002364 - 8002388: 60b8 str r0, [r7, #8] - uint32_t wait = Delay; - 800238a: 687b ldr r3, [r7, #4] - 800238c: 60fb str r3, [r7, #12] - - /* Add a freq to guarantee minimum wait */ - if (wait < HAL_MAX_DELAY) - 800238e: 68fb ldr r3, [r7, #12] - 8002390: f1b3 3fff cmp.w r3, #4294967295 - 8002394: d005 beq.n 80023a2 - { - wait += (uint32_t)(uwTickFreq); - 8002396: 4b0a ldr r3, [pc, #40] ; (80023c0 ) - 8002398: 781b ldrb r3, [r3, #0] - 800239a: 461a mov r2, r3 - 800239c: 68fb ldr r3, [r7, #12] - 800239e: 4413 add r3, r2 - 80023a0: 60fb str r3, [r7, #12] - } - - while ((HAL_GetTick() - tickstart) < wait) - 80023a2: bf00 nop - 80023a4: f7ff ffde bl 8002364 - 80023a8: 4602 mov r2, r0 - 80023aa: 68bb ldr r3, [r7, #8] - 80023ac: 1ad3 subs r3, r2, r3 - 80023ae: 68fa ldr r2, [r7, #12] - 80023b0: 429a cmp r2, r3 - 80023b2: d8f7 bhi.n 80023a4 - { - } -} - 80023b4: bf00 nop - 80023b6: bf00 nop - 80023b8: 3710 adds r7, #16 - 80023ba: 46bd mov sp, r7 - 80023bc: bd80 pop {r7, pc} - 80023be: bf00 nop - 80023c0: 24000020 .word 0x24000020 - -080023c4 : - * @arg SYSCFG_ETH_MII : Select the Media Independent Interface - * @arg SYSCFG_ETH_RMII: Select the Reduced Media Independent Interface - * @retval None - */ -void HAL_SYSCFG_ETHInterfaceSelect(uint32_t SYSCFG_ETHInterface) -{ - 80023c4: b480 push {r7} - 80023c6: b083 sub sp, #12 - 80023c8: af00 add r7, sp, #0 - 80023ca: 6078 str r0, [r7, #4] - /* Check the parameter */ - assert_param(IS_SYSCFG_ETHERNET_CONFIG(SYSCFG_ETHInterface)); - - MODIFY_REG(SYSCFG->PMCR, SYSCFG_PMCR_EPIS_SEL, (uint32_t)(SYSCFG_ETHInterface)); - 80023cc: 4b06 ldr r3, [pc, #24] ; (80023e8 ) - 80023ce: 685b ldr r3, [r3, #4] - 80023d0: f423 0260 bic.w r2, r3, #14680064 ; 0xe00000 - 80023d4: 4904 ldr r1, [pc, #16] ; (80023e8 ) - 80023d6: 687b ldr r3, [r7, #4] - 80023d8: 4313 orrs r3, r2 - 80023da: 604b str r3, [r1, #4] -} - 80023dc: bf00 nop - 80023de: 370c adds r7, #12 - 80023e0: 46bd mov sp, r7 - 80023e2: f85d 7b04 ldr.w r7, [sp], #4 - 80023e6: 4770 bx lr - 80023e8: 58000400 .word 0x58000400 - -080023ec <__NVIC_SetPriorityGrouping>: -{ - 80023ec: b480 push {r7} - 80023ee: b085 sub sp, #20 - 80023f0: af00 add r7, sp, #0 - 80023f2: 6078 str r0, [r7, #4] - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - 80023f4: 687b ldr r3, [r7, #4] - 80023f6: f003 0307 and.w r3, r3, #7 - 80023fa: 60fb str r3, [r7, #12] - reg_value = SCB->AIRCR; /* read old register configuration */ - 80023fc: 4b0b ldr r3, [pc, #44] ; (800242c <__NVIC_SetPriorityGrouping+0x40>) - 80023fe: 68db ldr r3, [r3, #12] - 8002400: 60bb str r3, [r7, #8] - reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ - 8002402: 68ba ldr r2, [r7, #8] - 8002404: f64f 03ff movw r3, #63743 ; 0xf8ff - 8002408: 4013 ands r3, r2 - 800240a: 60bb str r3, [r7, #8] - (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ - 800240c: 68fb ldr r3, [r7, #12] - 800240e: 021a lsls r2, r3, #8 - ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - 8002410: 68bb ldr r3, [r7, #8] - 8002412: 431a orrs r2, r3 - reg_value = (reg_value | - 8002414: 4b06 ldr r3, [pc, #24] ; (8002430 <__NVIC_SetPriorityGrouping+0x44>) - 8002416: 4313 orrs r3, r2 - 8002418: 60bb str r3, [r7, #8] - SCB->AIRCR = reg_value; - 800241a: 4a04 ldr r2, [pc, #16] ; (800242c <__NVIC_SetPriorityGrouping+0x40>) - 800241c: 68bb ldr r3, [r7, #8] - 800241e: 60d3 str r3, [r2, #12] -} - 8002420: bf00 nop - 8002422: 3714 adds r7, #20 - 8002424: 46bd mov sp, r7 - 8002426: f85d 7b04 ldr.w r7, [sp], #4 - 800242a: 4770 bx lr - 800242c: e000ed00 .word 0xe000ed00 - 8002430: 05fa0000 .word 0x05fa0000 - -08002434 <__NVIC_GetPriorityGrouping>: -{ - 8002434: b480 push {r7} - 8002436: af00 add r7, sp, #0 - return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); - 8002438: 4b04 ldr r3, [pc, #16] ; (800244c <__NVIC_GetPriorityGrouping+0x18>) - 800243a: 68db ldr r3, [r3, #12] - 800243c: 0a1b lsrs r3, r3, #8 - 800243e: f003 0307 and.w r3, r3, #7 -} - 8002442: 4618 mov r0, r3 - 8002444: 46bd mov sp, r7 - 8002446: f85d 7b04 ldr.w r7, [sp], #4 - 800244a: 4770 bx lr - 800244c: e000ed00 .word 0xe000ed00 - -08002450 <__NVIC_EnableIRQ>: -{ - 8002450: b480 push {r7} - 8002452: b083 sub sp, #12 - 8002454: af00 add r7, sp, #0 - 8002456: 4603 mov r3, r0 - 8002458: 80fb strh r3, [r7, #6] - if ((int32_t)(IRQn) >= 0) - 800245a: f9b7 3006 ldrsh.w r3, [r7, #6] - 800245e: 2b00 cmp r3, #0 - 8002460: db0b blt.n 800247a <__NVIC_EnableIRQ+0x2a> - NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - 8002462: 88fb ldrh r3, [r7, #6] - 8002464: f003 021f and.w r2, r3, #31 - 8002468: 4907 ldr r1, [pc, #28] ; (8002488 <__NVIC_EnableIRQ+0x38>) - 800246a: f9b7 3006 ldrsh.w r3, [r7, #6] - 800246e: 095b lsrs r3, r3, #5 - 8002470: 2001 movs r0, #1 - 8002472: fa00 f202 lsl.w r2, r0, r2 - 8002476: f841 2023 str.w r2, [r1, r3, lsl #2] -} - 800247a: bf00 nop - 800247c: 370c adds r7, #12 - 800247e: 46bd mov sp, r7 - 8002480: f85d 7b04 ldr.w r7, [sp], #4 - 8002484: 4770 bx lr - 8002486: bf00 nop - 8002488: e000e100 .word 0xe000e100 - -0800248c <__NVIC_SetPriority>: -{ - 800248c: b480 push {r7} - 800248e: b083 sub sp, #12 - 8002490: af00 add r7, sp, #0 - 8002492: 4603 mov r3, r0 - 8002494: 6039 str r1, [r7, #0] - 8002496: 80fb strh r3, [r7, #6] - if ((int32_t)(IRQn) >= 0) - 8002498: f9b7 3006 ldrsh.w r3, [r7, #6] - 800249c: 2b00 cmp r3, #0 - 800249e: db0a blt.n 80024b6 <__NVIC_SetPriority+0x2a> - NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - 80024a0: 683b ldr r3, [r7, #0] - 80024a2: b2da uxtb r2, r3 - 80024a4: 490c ldr r1, [pc, #48] ; (80024d8 <__NVIC_SetPriority+0x4c>) - 80024a6: f9b7 3006 ldrsh.w r3, [r7, #6] - 80024aa: 0112 lsls r2, r2, #4 - 80024ac: b2d2 uxtb r2, r2 - 80024ae: 440b add r3, r1 - 80024b0: f883 2300 strb.w r2, [r3, #768] ; 0x300 -} - 80024b4: e00a b.n 80024cc <__NVIC_SetPriority+0x40> - SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - 80024b6: 683b ldr r3, [r7, #0] - 80024b8: b2da uxtb r2, r3 - 80024ba: 4908 ldr r1, [pc, #32] ; (80024dc <__NVIC_SetPriority+0x50>) - 80024bc: 88fb ldrh r3, [r7, #6] - 80024be: f003 030f and.w r3, r3, #15 - 80024c2: 3b04 subs r3, #4 - 80024c4: 0112 lsls r2, r2, #4 - 80024c6: b2d2 uxtb r2, r2 - 80024c8: 440b add r3, r1 - 80024ca: 761a strb r2, [r3, #24] -} - 80024cc: bf00 nop - 80024ce: 370c adds r7, #12 - 80024d0: 46bd mov sp, r7 - 80024d2: f85d 7b04 ldr.w r7, [sp], #4 - 80024d6: 4770 bx lr - 80024d8: e000e100 .word 0xe000e100 - 80024dc: e000ed00 .word 0xe000ed00 - -080024e0 : -{ - 80024e0: b480 push {r7} - 80024e2: b089 sub sp, #36 ; 0x24 - 80024e4: af00 add r7, sp, #0 - 80024e6: 60f8 str r0, [r7, #12] - 80024e8: 60b9 str r1, [r7, #8] - 80024ea: 607a str r2, [r7, #4] - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - 80024ec: 68fb ldr r3, [r7, #12] - 80024ee: f003 0307 and.w r3, r3, #7 - 80024f2: 61fb str r3, [r7, #28] - PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - 80024f4: 69fb ldr r3, [r7, #28] - 80024f6: f1c3 0307 rsb r3, r3, #7 - 80024fa: 2b04 cmp r3, #4 - 80024fc: bf28 it cs - 80024fe: 2304 movcs r3, #4 - 8002500: 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)); - 8002502: 69fb ldr r3, [r7, #28] - 8002504: 3304 adds r3, #4 - 8002506: 2b06 cmp r3, #6 - 8002508: d902 bls.n 8002510 - 800250a: 69fb ldr r3, [r7, #28] - 800250c: 3b03 subs r3, #3 - 800250e: e000 b.n 8002512 - 8002510: 2300 movs r3, #0 - 8002512: 617b str r3, [r7, #20] - ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - 8002514: f04f 32ff mov.w r2, #4294967295 - 8002518: 69bb ldr r3, [r7, #24] - 800251a: fa02 f303 lsl.w r3, r2, r3 - 800251e: 43da mvns r2, r3 - 8002520: 68bb ldr r3, [r7, #8] - 8002522: 401a ands r2, r3 - 8002524: 697b ldr r3, [r7, #20] - 8002526: 409a lsls r2, r3 - ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) - 8002528: f04f 31ff mov.w r1, #4294967295 - 800252c: 697b ldr r3, [r7, #20] - 800252e: fa01 f303 lsl.w r3, r1, r3 - 8002532: 43d9 mvns r1, r3 - 8002534: 687b ldr r3, [r7, #4] - 8002536: 400b ands r3, r1 - ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - 8002538: 4313 orrs r3, r2 -} - 800253a: 4618 mov r0, r3 - 800253c: 3724 adds r7, #36 ; 0x24 - 800253e: 46bd mov sp, r7 - 8002540: f85d 7b04 ldr.w r7, [sp], #4 - 8002544: 4770 bx lr - -08002546 : - * @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) -{ - 8002546: b580 push {r7, lr} - 8002548: b082 sub sp, #8 - 800254a: af00 add r7, sp, #0 - 800254c: 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); - 800254e: 6878 ldr r0, [r7, #4] - 8002550: f7ff ff4c bl 80023ec <__NVIC_SetPriorityGrouping> -} - 8002554: bf00 nop - 8002556: 3708 adds r7, #8 - 8002558: 46bd mov sp, r7 - 800255a: bd80 pop {r7, pc} - -0800255c : - * 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) -{ - 800255c: b580 push {r7, lr} - 800255e: b086 sub sp, #24 - 8002560: af00 add r7, sp, #0 - 8002562: 4603 mov r3, r0 - 8002564: 60b9 str r1, [r7, #8] - 8002566: 607a str r2, [r7, #4] - 8002568: 81fb strh r3, [r7, #14] - - /* Check the parameters */ - assert_param(IS_NVIC_SUB_PRIORITY(SubPriority)); - assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority)); - - prioritygroup = NVIC_GetPriorityGrouping(); - 800256a: f7ff ff63 bl 8002434 <__NVIC_GetPriorityGrouping> - 800256e: 6178 str r0, [r7, #20] - - NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority)); - 8002570: 687a ldr r2, [r7, #4] - 8002572: 68b9 ldr r1, [r7, #8] - 8002574: 6978 ldr r0, [r7, #20] - 8002576: f7ff ffb3 bl 80024e0 - 800257a: 4602 mov r2, r0 - 800257c: f9b7 300e ldrsh.w r3, [r7, #14] - 8002580: 4611 mov r1, r2 - 8002582: 4618 mov r0, r3 - 8002584: f7ff ff82 bl 800248c <__NVIC_SetPriority> -} - 8002588: bf00 nop - 800258a: 3718 adds r7, #24 - 800258c: 46bd mov sp, r7 - 800258e: bd80 pop {r7, pc} - -08002590 : - * 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 (stm32h7xxxx.h)) - * @retval None - */ -void HAL_NVIC_EnableIRQ(IRQn_Type IRQn) -{ - 8002590: b580 push {r7, lr} - 8002592: b082 sub sp, #8 - 8002594: af00 add r7, sp, #0 - 8002596: 4603 mov r3, r0 - 8002598: 80fb strh r3, [r7, #6] - /* Check the parameters */ - assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); - - /* Enable interrupt */ - NVIC_EnableIRQ(IRQn); - 800259a: f9b7 3006 ldrsh.w r3, [r7, #6] - 800259e: 4618 mov r0, r3 - 80025a0: f7ff ff56 bl 8002450 <__NVIC_EnableIRQ> -} - 80025a4: bf00 nop - 80025a6: 3708 adds r7, #8 - 80025a8: 46bd mov sp, r7 - 80025aa: bd80 pop {r7, pc} - -080025ac : -/** - * @brief Disables the MPU - * @retval None - */ -void HAL_MPU_Disable(void) -{ - 80025ac: b480 push {r7} - 80025ae: af00 add r7, sp, #0 - \details Ensures the apparent order of the explicit memory operations before - and after the instruction, without ensuring their completion. - */ -__STATIC_FORCEINLINE void __DMB(void) -{ - __ASM volatile ("dmb 0xF":::"memory"); - 80025b0: f3bf 8f5f dmb sy -} - 80025b4: bf00 nop - /* Make sure outstanding transfers are done */ - __DMB(); - - /* Disable fault exceptions */ - SCB->SHCSR &= ~SCB_SHCSR_MEMFAULTENA_Msk; - 80025b6: 4b07 ldr r3, [pc, #28] ; (80025d4 ) - 80025b8: 6a5b ldr r3, [r3, #36] ; 0x24 - 80025ba: 4a06 ldr r2, [pc, #24] ; (80025d4 ) - 80025bc: f423 3380 bic.w r3, r3, #65536 ; 0x10000 - 80025c0: 6253 str r3, [r2, #36] ; 0x24 - - /* Disable the MPU and clear the control register*/ - MPU->CTRL = 0; - 80025c2: 4b05 ldr r3, [pc, #20] ; (80025d8 ) - 80025c4: 2200 movs r2, #0 - 80025c6: 605a str r2, [r3, #4] -} - 80025c8: bf00 nop - 80025ca: 46bd mov sp, r7 - 80025cc: f85d 7b04 ldr.w r7, [sp], #4 - 80025d0: 4770 bx lr - 80025d2: bf00 nop - 80025d4: e000ed00 .word 0xe000ed00 - 80025d8: e000ed90 .word 0xe000ed90 - -080025dc : - * @arg MPU_PRIVILEGED_DEFAULT - * @arg MPU_HFNMI_PRIVDEF - * @retval None - */ -void HAL_MPU_Enable(uint32_t MPU_Control) -{ - 80025dc: b480 push {r7} - 80025de: b083 sub sp, #12 - 80025e0: af00 add r7, sp, #0 - 80025e2: 6078 str r0, [r7, #4] - /* Enable the MPU */ - MPU->CTRL = MPU_Control | MPU_CTRL_ENABLE_Msk; - 80025e4: 4a0b ldr r2, [pc, #44] ; (8002614 ) - 80025e6: 687b ldr r3, [r7, #4] - 80025e8: f043 0301 orr.w r3, r3, #1 - 80025ec: 6053 str r3, [r2, #4] - - /* Enable fault exceptions */ - SCB->SHCSR |= SCB_SHCSR_MEMFAULTENA_Msk; - 80025ee: 4b0a ldr r3, [pc, #40] ; (8002618 ) - 80025f0: 6a5b ldr r3, [r3, #36] ; 0x24 - 80025f2: 4a09 ldr r2, [pc, #36] ; (8002618 ) - 80025f4: f443 3380 orr.w r3, r3, #65536 ; 0x10000 - 80025f8: 6253 str r3, [r2, #36] ; 0x24 - __ASM volatile ("dsb 0xF":::"memory"); - 80025fa: f3bf 8f4f dsb sy -} - 80025fe: bf00 nop - __ASM volatile ("isb 0xF":::"memory"); - 8002600: f3bf 8f6f isb sy -} - 8002604: bf00 nop - - /* Ensure MPU setting take effects */ - __DSB(); - __ISB(); -} - 8002606: bf00 nop - 8002608: 370c adds r7, #12 - 800260a: 46bd mov sp, r7 - 800260c: f85d 7b04 ldr.w r7, [sp], #4 - 8002610: 4770 bx lr - 8002612: bf00 nop - 8002614: e000ed90 .word 0xe000ed90 - 8002618: e000ed00 .word 0xe000ed00 - -0800261c : - * @param MPU_Init Pointer to a MPU_Region_InitTypeDef structure that contains - * the initialization and configuration information. - * @retval None - */ -void HAL_MPU_ConfigRegion(MPU_Region_InitTypeDef *MPU_Init) -{ - 800261c: b480 push {r7} - 800261e: b083 sub sp, #12 - 8002620: af00 add r7, sp, #0 - 8002622: 6078 str r0, [r7, #4] - /* Check the parameters */ - assert_param(IS_MPU_REGION_NUMBER(MPU_Init->Number)); - assert_param(IS_MPU_REGION_ENABLE(MPU_Init->Enable)); - - /* Set the Region number */ - MPU->RNR = MPU_Init->Number; - 8002624: 687b ldr r3, [r7, #4] - 8002626: 785a ldrb r2, [r3, #1] - 8002628: 4b1d ldr r3, [pc, #116] ; (80026a0 ) - 800262a: 609a str r2, [r3, #8] - - if ((MPU_Init->Enable) != 0UL) - 800262c: 687b ldr r3, [r7, #4] - 800262e: 781b ldrb r3, [r3, #0] - 8002630: 2b00 cmp r3, #0 - 8002632: d029 beq.n 8002688 - assert_param(IS_MPU_ACCESS_CACHEABLE(MPU_Init->IsCacheable)); - assert_param(IS_MPU_ACCESS_BUFFERABLE(MPU_Init->IsBufferable)); - assert_param(IS_MPU_SUB_REGION_DISABLE(MPU_Init->SubRegionDisable)); - assert_param(IS_MPU_REGION_SIZE(MPU_Init->Size)); - - MPU->RBAR = MPU_Init->BaseAddress; - 8002634: 4a1a ldr r2, [pc, #104] ; (80026a0 ) - 8002636: 687b ldr r3, [r7, #4] - 8002638: 685b ldr r3, [r3, #4] - 800263a: 60d3 str r3, [r2, #12] - MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) | - 800263c: 687b ldr r3, [r7, #4] - 800263e: 7b1b ldrb r3, [r3, #12] - 8002640: 071a lsls r2, r3, #28 - ((uint32_t)MPU_Init->AccessPermission << MPU_RASR_AP_Pos) | - 8002642: 687b ldr r3, [r7, #4] - 8002644: 7adb ldrb r3, [r3, #11] - 8002646: 061b lsls r3, r3, #24 - MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) | - 8002648: 431a orrs r2, r3 - ((uint32_t)MPU_Init->TypeExtField << MPU_RASR_TEX_Pos) | - 800264a: 687b ldr r3, [r7, #4] - 800264c: 7a9b ldrb r3, [r3, #10] - 800264e: 04db lsls r3, r3, #19 - ((uint32_t)MPU_Init->AccessPermission << MPU_RASR_AP_Pos) | - 8002650: 431a orrs r2, r3 - ((uint32_t)MPU_Init->IsShareable << MPU_RASR_S_Pos) | - 8002652: 687b ldr r3, [r7, #4] - 8002654: 7b5b ldrb r3, [r3, #13] - 8002656: 049b lsls r3, r3, #18 - ((uint32_t)MPU_Init->TypeExtField << MPU_RASR_TEX_Pos) | - 8002658: 431a orrs r2, r3 - ((uint32_t)MPU_Init->IsCacheable << MPU_RASR_C_Pos) | - 800265a: 687b ldr r3, [r7, #4] - 800265c: 7b9b ldrb r3, [r3, #14] - 800265e: 045b lsls r3, r3, #17 - ((uint32_t)MPU_Init->IsShareable << MPU_RASR_S_Pos) | - 8002660: 431a orrs r2, r3 - ((uint32_t)MPU_Init->IsBufferable << MPU_RASR_B_Pos) | - 8002662: 687b ldr r3, [r7, #4] - 8002664: 7bdb ldrb r3, [r3, #15] - 8002666: 041b lsls r3, r3, #16 - ((uint32_t)MPU_Init->IsCacheable << MPU_RASR_C_Pos) | - 8002668: 431a orrs r2, r3 - ((uint32_t)MPU_Init->SubRegionDisable << MPU_RASR_SRD_Pos) | - 800266a: 687b ldr r3, [r7, #4] - 800266c: 7a5b ldrb r3, [r3, #9] - 800266e: 021b lsls r3, r3, #8 - ((uint32_t)MPU_Init->IsBufferable << MPU_RASR_B_Pos) | - 8002670: 431a orrs r2, r3 - ((uint32_t)MPU_Init->Size << MPU_RASR_SIZE_Pos) | - 8002672: 687b ldr r3, [r7, #4] - 8002674: 7a1b ldrb r3, [r3, #8] - 8002676: 005b lsls r3, r3, #1 - ((uint32_t)MPU_Init->SubRegionDisable << MPU_RASR_SRD_Pos) | - 8002678: 4313 orrs r3, r2 - ((uint32_t)MPU_Init->Enable << MPU_RASR_ENABLE_Pos); - 800267a: 687a ldr r2, [r7, #4] - 800267c: 7812 ldrb r2, [r2, #0] - 800267e: 4611 mov r1, r2 - MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) | - 8002680: 4a07 ldr r2, [pc, #28] ; (80026a0 ) - ((uint32_t)MPU_Init->Size << MPU_RASR_SIZE_Pos) | - 8002682: 430b orrs r3, r1 - MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) | - 8002684: 6113 str r3, [r2, #16] - else - { - MPU->RBAR = 0x00; - MPU->RASR = 0x00; - } -} - 8002686: e005 b.n 8002694 - MPU->RBAR = 0x00; - 8002688: 4b05 ldr r3, [pc, #20] ; (80026a0 ) - 800268a: 2200 movs r2, #0 - 800268c: 60da str r2, [r3, #12] - MPU->RASR = 0x00; - 800268e: 4b04 ldr r3, [pc, #16] ; (80026a0 ) - 8002690: 2200 movs r2, #0 - 8002692: 611a str r2, [r3, #16] -} - 8002694: bf00 nop - 8002696: 370c adds r7, #12 - 8002698: 46bd mov sp, r7 - 800269a: f85d 7b04 ldr.w r7, [sp], #4 - 800269e: 4770 bx lr - 80026a0: e000ed90 .word 0xe000ed90 - -080026a4 : - * @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) -{ - 80026a4: b580 push {r7, lr} - 80026a6: b086 sub sp, #24 - 80026a8: af00 add r7, sp, #0 - 80026aa: 6078 str r0, [r7, #4] - uint32_t registerValue; - uint32_t tickstart = HAL_GetTick(); - 80026ac: f7ff fe5a bl 8002364 - 80026b0: 6138 str r0, [r7, #16] - DMA_Base_Registers *regs_dma; - BDMA_Base_Registers *regs_bdma; - - /* Check the DMA peripheral handle */ - if(hdma == NULL) - 80026b2: 687b ldr r3, [r7, #4] - 80026b4: 2b00 cmp r3, #0 - 80026b6: d101 bne.n 80026bc - { - return HAL_ERROR; - 80026b8: 2301 movs r3, #1 - 80026ba: e312 b.n 8002ce2 - assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(hdma->Init.PeriphDataAlignment)); - assert_param(IS_DMA_MEMORY_DATA_SIZE(hdma->Init.MemDataAlignment)); - assert_param(IS_DMA_MODE(hdma->Init.Mode)); - assert_param(IS_DMA_PRIORITY(hdma->Init.Priority)); - - if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */ - 80026bc: 687b ldr r3, [r7, #4] - 80026be: 681b ldr r3, [r3, #0] - 80026c0: 4a66 ldr r2, [pc, #408] ; (800285c ) - 80026c2: 4293 cmp r3, r2 - 80026c4: d04a beq.n 800275c - 80026c6: 687b ldr r3, [r7, #4] - 80026c8: 681b ldr r3, [r3, #0] - 80026ca: 4a65 ldr r2, [pc, #404] ; (8002860 ) - 80026cc: 4293 cmp r3, r2 - 80026ce: d045 beq.n 800275c - 80026d0: 687b ldr r3, [r7, #4] - 80026d2: 681b ldr r3, [r3, #0] - 80026d4: 4a63 ldr r2, [pc, #396] ; (8002864 ) - 80026d6: 4293 cmp r3, r2 - 80026d8: d040 beq.n 800275c - 80026da: 687b ldr r3, [r7, #4] - 80026dc: 681b ldr r3, [r3, #0] - 80026de: 4a62 ldr r2, [pc, #392] ; (8002868 ) - 80026e0: 4293 cmp r3, r2 - 80026e2: d03b beq.n 800275c - 80026e4: 687b ldr r3, [r7, #4] - 80026e6: 681b ldr r3, [r3, #0] - 80026e8: 4a60 ldr r2, [pc, #384] ; (800286c ) - 80026ea: 4293 cmp r3, r2 - 80026ec: d036 beq.n 800275c - 80026ee: 687b ldr r3, [r7, #4] - 80026f0: 681b ldr r3, [r3, #0] - 80026f2: 4a5f ldr r2, [pc, #380] ; (8002870 ) - 80026f4: 4293 cmp r3, r2 - 80026f6: d031 beq.n 800275c - 80026f8: 687b ldr r3, [r7, #4] - 80026fa: 681b ldr r3, [r3, #0] - 80026fc: 4a5d ldr r2, [pc, #372] ; (8002874 ) - 80026fe: 4293 cmp r3, r2 - 8002700: d02c beq.n 800275c - 8002702: 687b ldr r3, [r7, #4] - 8002704: 681b ldr r3, [r3, #0] - 8002706: 4a5c ldr r2, [pc, #368] ; (8002878 ) - 8002708: 4293 cmp r3, r2 - 800270a: d027 beq.n 800275c - 800270c: 687b ldr r3, [r7, #4] - 800270e: 681b ldr r3, [r3, #0] - 8002710: 4a5a ldr r2, [pc, #360] ; (800287c ) - 8002712: 4293 cmp r3, r2 - 8002714: d022 beq.n 800275c - 8002716: 687b ldr r3, [r7, #4] - 8002718: 681b ldr r3, [r3, #0] - 800271a: 4a59 ldr r2, [pc, #356] ; (8002880 ) - 800271c: 4293 cmp r3, r2 - 800271e: d01d beq.n 800275c - 8002720: 687b ldr r3, [r7, #4] - 8002722: 681b ldr r3, [r3, #0] - 8002724: 4a57 ldr r2, [pc, #348] ; (8002884 ) - 8002726: 4293 cmp r3, r2 - 8002728: d018 beq.n 800275c - 800272a: 687b ldr r3, [r7, #4] - 800272c: 681b ldr r3, [r3, #0] - 800272e: 4a56 ldr r2, [pc, #344] ; (8002888 ) - 8002730: 4293 cmp r3, r2 - 8002732: d013 beq.n 800275c - 8002734: 687b ldr r3, [r7, #4] - 8002736: 681b ldr r3, [r3, #0] - 8002738: 4a54 ldr r2, [pc, #336] ; (800288c ) - 800273a: 4293 cmp r3, r2 - 800273c: d00e beq.n 800275c - 800273e: 687b ldr r3, [r7, #4] - 8002740: 681b ldr r3, [r3, #0] - 8002742: 4a53 ldr r2, [pc, #332] ; (8002890 ) - 8002744: 4293 cmp r3, r2 - 8002746: d009 beq.n 800275c - 8002748: 687b ldr r3, [r7, #4] - 800274a: 681b ldr r3, [r3, #0] - 800274c: 4a51 ldr r2, [pc, #324] ; (8002894 ) - 800274e: 4293 cmp r3, r2 - 8002750: d004 beq.n 800275c - 8002752: 687b ldr r3, [r7, #4] - 8002754: 681b ldr r3, [r3, #0] - 8002756: 4a50 ldr r2, [pc, #320] ; (8002898 ) - 8002758: 4293 cmp r3, r2 - 800275a: d101 bne.n 8002760 - 800275c: 2301 movs r3, #1 - 800275e: e000 b.n 8002762 - 8002760: 2300 movs r3, #0 - 8002762: 2b00 cmp r3, #0 - 8002764: f000 813c beq.w 80029e0 - assert_param(IS_DMA_MEMORY_BURST(hdma->Init.MemBurst)); - assert_param(IS_DMA_PERIPHERAL_BURST(hdma->Init.PeriphBurst)); - } - - /* Change DMA peripheral state */ - hdma->State = HAL_DMA_STATE_BUSY; - 8002768: 687b ldr r3, [r7, #4] - 800276a: 2202 movs r2, #2 - 800276c: f883 2035 strb.w r2, [r3, #53] ; 0x35 - - /* Allocate lock resource */ - __HAL_UNLOCK(hdma); - 8002770: 687b ldr r3, [r7, #4] - 8002772: 2200 movs r2, #0 - 8002774: f883 2034 strb.w r2, [r3, #52] ; 0x34 - - /* Disable the peripheral */ - __HAL_DMA_DISABLE(hdma); - 8002778: 687b ldr r3, [r7, #4] - 800277a: 681b ldr r3, [r3, #0] - 800277c: 4a37 ldr r2, [pc, #220] ; (800285c ) - 800277e: 4293 cmp r3, r2 - 8002780: d04a beq.n 8002818 - 8002782: 687b ldr r3, [r7, #4] - 8002784: 681b ldr r3, [r3, #0] - 8002786: 4a36 ldr r2, [pc, #216] ; (8002860 ) - 8002788: 4293 cmp r3, r2 - 800278a: d045 beq.n 8002818 - 800278c: 687b ldr r3, [r7, #4] - 800278e: 681b ldr r3, [r3, #0] - 8002790: 4a34 ldr r2, [pc, #208] ; (8002864 ) - 8002792: 4293 cmp r3, r2 - 8002794: d040 beq.n 8002818 - 8002796: 687b ldr r3, [r7, #4] - 8002798: 681b ldr r3, [r3, #0] - 800279a: 4a33 ldr r2, [pc, #204] ; (8002868 ) - 800279c: 4293 cmp r3, r2 - 800279e: d03b beq.n 8002818 - 80027a0: 687b ldr r3, [r7, #4] - 80027a2: 681b ldr r3, [r3, #0] - 80027a4: 4a31 ldr r2, [pc, #196] ; (800286c ) - 80027a6: 4293 cmp r3, r2 - 80027a8: d036 beq.n 8002818 - 80027aa: 687b ldr r3, [r7, #4] - 80027ac: 681b ldr r3, [r3, #0] - 80027ae: 4a30 ldr r2, [pc, #192] ; (8002870 ) - 80027b0: 4293 cmp r3, r2 - 80027b2: d031 beq.n 8002818 - 80027b4: 687b ldr r3, [r7, #4] - 80027b6: 681b ldr r3, [r3, #0] - 80027b8: 4a2e ldr r2, [pc, #184] ; (8002874 ) - 80027ba: 4293 cmp r3, r2 - 80027bc: d02c beq.n 8002818 - 80027be: 687b ldr r3, [r7, #4] - 80027c0: 681b ldr r3, [r3, #0] - 80027c2: 4a2d ldr r2, [pc, #180] ; (8002878 ) - 80027c4: 4293 cmp r3, r2 - 80027c6: d027 beq.n 8002818 - 80027c8: 687b ldr r3, [r7, #4] - 80027ca: 681b ldr r3, [r3, #0] - 80027cc: 4a2b ldr r2, [pc, #172] ; (800287c ) - 80027ce: 4293 cmp r3, r2 - 80027d0: d022 beq.n 8002818 - 80027d2: 687b ldr r3, [r7, #4] - 80027d4: 681b ldr r3, [r3, #0] - 80027d6: 4a2a ldr r2, [pc, #168] ; (8002880 ) - 80027d8: 4293 cmp r3, r2 - 80027da: d01d beq.n 8002818 - 80027dc: 687b ldr r3, [r7, #4] - 80027de: 681b ldr r3, [r3, #0] - 80027e0: 4a28 ldr r2, [pc, #160] ; (8002884 ) - 80027e2: 4293 cmp r3, r2 - 80027e4: d018 beq.n 8002818 - 80027e6: 687b ldr r3, [r7, #4] - 80027e8: 681b ldr r3, [r3, #0] - 80027ea: 4a27 ldr r2, [pc, #156] ; (8002888 ) - 80027ec: 4293 cmp r3, r2 - 80027ee: d013 beq.n 8002818 - 80027f0: 687b ldr r3, [r7, #4] - 80027f2: 681b ldr r3, [r3, #0] - 80027f4: 4a25 ldr r2, [pc, #148] ; (800288c ) - 80027f6: 4293 cmp r3, r2 - 80027f8: d00e beq.n 8002818 - 80027fa: 687b ldr r3, [r7, #4] - 80027fc: 681b ldr r3, [r3, #0] - 80027fe: 4a24 ldr r2, [pc, #144] ; (8002890 ) - 8002800: 4293 cmp r3, r2 - 8002802: d009 beq.n 8002818 - 8002804: 687b ldr r3, [r7, #4] - 8002806: 681b ldr r3, [r3, #0] - 8002808: 4a22 ldr r2, [pc, #136] ; (8002894 ) - 800280a: 4293 cmp r3, r2 - 800280c: d004 beq.n 8002818 - 800280e: 687b ldr r3, [r7, #4] - 8002810: 681b ldr r3, [r3, #0] - 8002812: 4a21 ldr r2, [pc, #132] ; (8002898 ) - 8002814: 4293 cmp r3, r2 - 8002816: d108 bne.n 800282a - 8002818: 687b ldr r3, [r7, #4] - 800281a: 681b ldr r3, [r3, #0] - 800281c: 681a ldr r2, [r3, #0] - 800281e: 687b ldr r3, [r7, #4] - 8002820: 681b ldr r3, [r3, #0] - 8002822: f022 0201 bic.w r2, r2, #1 - 8002826: 601a str r2, [r3, #0] - 8002828: e007 b.n 800283a - 800282a: 687b ldr r3, [r7, #4] - 800282c: 681b ldr r3, [r3, #0] - 800282e: 681a ldr r2, [r3, #0] - 8002830: 687b ldr r3, [r7, #4] - 8002832: 681b ldr r3, [r3, #0] - 8002834: f022 0201 bic.w r2, r2, #1 - 8002838: 601a str r2, [r3, #0] - - /* Check if the DMA Stream is effectively disabled */ - while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U) - 800283a: e02f b.n 800289c - { - /* Check for the Timeout */ - if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT) - 800283c: f7ff fd92 bl 8002364 - 8002840: 4602 mov r2, r0 - 8002842: 693b ldr r3, [r7, #16] - 8002844: 1ad3 subs r3, r2, r3 - 8002846: 2b05 cmp r3, #5 - 8002848: d928 bls.n 800289c - { - /* Update error code */ - hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT; - 800284a: 687b ldr r3, [r7, #4] - 800284c: 2220 movs r2, #32 - 800284e: 655a str r2, [r3, #84] ; 0x54 - - /* Change the DMA state */ - hdma->State = HAL_DMA_STATE_ERROR; - 8002850: 687b ldr r3, [r7, #4] - 8002852: 2203 movs r2, #3 - 8002854: f883 2035 strb.w r2, [r3, #53] ; 0x35 - - return HAL_ERROR; - 8002858: 2301 movs r3, #1 - 800285a: e242 b.n 8002ce2 - 800285c: 40020010 .word 0x40020010 - 8002860: 40020028 .word 0x40020028 - 8002864: 40020040 .word 0x40020040 - 8002868: 40020058 .word 0x40020058 - 800286c: 40020070 .word 0x40020070 - 8002870: 40020088 .word 0x40020088 - 8002874: 400200a0 .word 0x400200a0 - 8002878: 400200b8 .word 0x400200b8 - 800287c: 40020410 .word 0x40020410 - 8002880: 40020428 .word 0x40020428 - 8002884: 40020440 .word 0x40020440 - 8002888: 40020458 .word 0x40020458 - 800288c: 40020470 .word 0x40020470 - 8002890: 40020488 .word 0x40020488 - 8002894: 400204a0 .word 0x400204a0 - 8002898: 400204b8 .word 0x400204b8 - while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U) - 800289c: 687b ldr r3, [r7, #4] - 800289e: 681b ldr r3, [r3, #0] - 80028a0: 681b ldr r3, [r3, #0] - 80028a2: f003 0301 and.w r3, r3, #1 - 80028a6: 2b00 cmp r3, #0 - 80028a8: d1c8 bne.n 800283c - } - } - - /* Get the CR register value */ - registerValue = ((DMA_Stream_TypeDef *)hdma->Instance)->CR; - 80028aa: 687b ldr r3, [r7, #4] - 80028ac: 681b ldr r3, [r3, #0] - 80028ae: 681b ldr r3, [r3, #0] - 80028b0: 617b str r3, [r7, #20] - - /* Clear CHSEL, MBURST, PBURST, PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, CT and DBM bits */ - registerValue &= ((uint32_t)~(DMA_SxCR_MBURST | DMA_SxCR_PBURST | \ - 80028b2: 697a ldr r2, [r7, #20] - 80028b4: 4b83 ldr r3, [pc, #524] ; (8002ac4 ) - 80028b6: 4013 ands r3, r2 - 80028b8: 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 */ - registerValue |= hdma->Init.Direction | - 80028ba: 687b ldr r3, [r7, #4] - 80028bc: 689a ldr r2, [r3, #8] - hdma->Init.PeriphInc | hdma->Init.MemInc | - 80028be: 687b ldr r3, [r7, #4] - 80028c0: 68db ldr r3, [r3, #12] - registerValue |= hdma->Init.Direction | - 80028c2: 431a orrs r2, r3 - hdma->Init.PeriphInc | hdma->Init.MemInc | - 80028c4: 687b ldr r3, [r7, #4] - 80028c6: 691b ldr r3, [r3, #16] - 80028c8: 431a orrs r2, r3 - hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment | - 80028ca: 687b ldr r3, [r7, #4] - 80028cc: 695b ldr r3, [r3, #20] - hdma->Init.PeriphInc | hdma->Init.MemInc | - 80028ce: 431a orrs r2, r3 - hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment | - 80028d0: 687b ldr r3, [r7, #4] - 80028d2: 699b ldr r3, [r3, #24] - 80028d4: 431a orrs r2, r3 - hdma->Init.Mode | hdma->Init.Priority; - 80028d6: 687b ldr r3, [r7, #4] - 80028d8: 69db ldr r3, [r3, #28] - hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment | - 80028da: 431a orrs r2, r3 - hdma->Init.Mode | hdma->Init.Priority; - 80028dc: 687b ldr r3, [r7, #4] - 80028de: 6a1b ldr r3, [r3, #32] - 80028e0: 4313 orrs r3, r2 - registerValue |= hdma->Init.Direction | - 80028e2: 697a ldr r2, [r7, #20] - 80028e4: 4313 orrs r3, r2 - 80028e6: 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) - 80028e8: 687b ldr r3, [r7, #4] - 80028ea: 6a5b ldr r3, [r3, #36] ; 0x24 - 80028ec: 2b04 cmp r3, #4 - 80028ee: d107 bne.n 8002900 - { - /* Get memory burst and peripheral burst */ - registerValue |= hdma->Init.MemBurst | hdma->Init.PeriphBurst; - 80028f0: 687b ldr r3, [r7, #4] - 80028f2: 6ada ldr r2, [r3, #44] ; 0x2c - 80028f4: 687b ldr r3, [r7, #4] - 80028f6: 6b1b ldr r3, [r3, #48] ; 0x30 - 80028f8: 4313 orrs r3, r2 - 80028fa: 697a ldr r2, [r7, #20] - 80028fc: 4313 orrs r3, r2 - 80028fe: 617b str r3, [r7, #20] - lock when transferring data to/from USART/UART */ -#if (STM32H7_DEV_ID == 0x450UL) - if((DBGMCU->IDCODE & 0xFFFF0000U) >= 0x20000000U) - { -#endif /* STM32H7_DEV_ID == 0x450UL */ - if(IS_DMA_UART_USART_REQUEST(hdma->Init.Request) != 0U) - 8002900: 687b ldr r3, [r7, #4] - 8002902: 685b ldr r3, [r3, #4] - 8002904: 2b28 cmp r3, #40 ; 0x28 - 8002906: d903 bls.n 8002910 - 8002908: 687b ldr r3, [r7, #4] - 800290a: 685b ldr r3, [r3, #4] - 800290c: 2b2e cmp r3, #46 ; 0x2e - 800290e: d91f bls.n 8002950 - 8002910: 687b ldr r3, [r7, #4] - 8002912: 685b ldr r3, [r3, #4] - 8002914: 2b3e cmp r3, #62 ; 0x3e - 8002916: d903 bls.n 8002920 - 8002918: 687b ldr r3, [r7, #4] - 800291a: 685b ldr r3, [r3, #4] - 800291c: 2b42 cmp r3, #66 ; 0x42 - 800291e: d917 bls.n 8002950 - 8002920: 687b ldr r3, [r7, #4] - 8002922: 685b ldr r3, [r3, #4] - 8002924: 2b46 cmp r3, #70 ; 0x46 - 8002926: d903 bls.n 8002930 - 8002928: 687b ldr r3, [r7, #4] - 800292a: 685b ldr r3, [r3, #4] - 800292c: 2b48 cmp r3, #72 ; 0x48 - 800292e: d90f bls.n 8002950 - 8002930: 687b ldr r3, [r7, #4] - 8002932: 685b ldr r3, [r3, #4] - 8002934: 2b4e cmp r3, #78 ; 0x4e - 8002936: d903 bls.n 8002940 - 8002938: 687b ldr r3, [r7, #4] - 800293a: 685b ldr r3, [r3, #4] - 800293c: 2b52 cmp r3, #82 ; 0x52 - 800293e: d907 bls.n 8002950 - 8002940: 687b ldr r3, [r7, #4] - 8002942: 685b ldr r3, [r3, #4] - 8002944: 2b73 cmp r3, #115 ; 0x73 - 8002946: d905 bls.n 8002954 - 8002948: 687b ldr r3, [r7, #4] - 800294a: 685b ldr r3, [r3, #4] - 800294c: 2b77 cmp r3, #119 ; 0x77 - 800294e: d801 bhi.n 8002954 - 8002950: 2301 movs r3, #1 - 8002952: e000 b.n 8002956 - 8002954: 2300 movs r3, #0 - 8002956: 2b00 cmp r3, #0 - 8002958: d003 beq.n 8002962 - { - registerValue |= DMA_SxCR_TRBUFF; - 800295a: 697b ldr r3, [r7, #20] - 800295c: f443 1380 orr.w r3, r3, #1048576 ; 0x100000 - 8002960: 617b str r3, [r7, #20] -#if (STM32H7_DEV_ID == 0x450UL) - } -#endif /* STM32H7_DEV_ID == 0x450UL */ - - /* Write to DMA Stream CR register */ - ((DMA_Stream_TypeDef *)hdma->Instance)->CR = registerValue; - 8002962: 687b ldr r3, [r7, #4] - 8002964: 681b ldr r3, [r3, #0] - 8002966: 697a ldr r2, [r7, #20] - 8002968: 601a str r2, [r3, #0] - - /* Get the FCR register value */ - registerValue = ((DMA_Stream_TypeDef *)hdma->Instance)->FCR; - 800296a: 687b ldr r3, [r7, #4] - 800296c: 681b ldr r3, [r3, #0] - 800296e: 695b ldr r3, [r3, #20] - 8002970: 617b str r3, [r7, #20] - - /* Clear Direct mode and FIFO threshold bits */ - registerValue &= (uint32_t)~(DMA_SxFCR_DMDIS | DMA_SxFCR_FTH); - 8002972: 697b ldr r3, [r7, #20] - 8002974: f023 0307 bic.w r3, r3, #7 - 8002978: 617b str r3, [r7, #20] - - /* Prepare the DMA Stream FIFO configuration */ - registerValue |= hdma->Init.FIFOMode; - 800297a: 687b ldr r3, [r7, #4] - 800297c: 6a5b ldr r3, [r3, #36] ; 0x24 - 800297e: 697a ldr r2, [r7, #20] - 8002980: 4313 orrs r3, r2 - 8002982: 617b str r3, [r7, #20] - - /* the FIFO threshold is not used when the FIFO mode is disabled */ - if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE) - 8002984: 687b ldr r3, [r7, #4] - 8002986: 6a5b ldr r3, [r3, #36] ; 0x24 - 8002988: 2b04 cmp r3, #4 - 800298a: d117 bne.n 80029bc - { - /* Get the FIFO threshold */ - registerValue |= hdma->Init.FIFOThreshold; - 800298c: 687b ldr r3, [r7, #4] - 800298e: 6a9b ldr r3, [r3, #40] ; 0x28 - 8002990: 697a ldr r2, [r7, #20] - 8002992: 4313 orrs r3, r2 - 8002994: 617b str r3, [r7, #20] - - /* Check compatibility between FIFO threshold level and size of the memory burst */ - /* for INCR4, INCR8, INCR16 */ - if(hdma->Init.MemBurst != DMA_MBURST_SINGLE) - 8002996: 687b ldr r3, [r7, #4] - 8002998: 6adb ldr r3, [r3, #44] ; 0x2c - 800299a: 2b00 cmp r3, #0 - 800299c: d00e beq.n 80029bc - { - if (DMA_CheckFifoParam(hdma) != HAL_OK) - 800299e: 6878 ldr r0, [r7, #4] - 80029a0: f001 f9b4 bl 8003d0c - 80029a4: 4603 mov r3, r0 - 80029a6: 2b00 cmp r3, #0 - 80029a8: d008 beq.n 80029bc - { - /* Update error code */ - hdma->ErrorCode = HAL_DMA_ERROR_PARAM; - 80029aa: 687b ldr r3, [r7, #4] - 80029ac: 2240 movs r2, #64 ; 0x40 - 80029ae: 655a str r2, [r3, #84] ; 0x54 - - /* Change the DMA state */ - hdma->State = HAL_DMA_STATE_READY; - 80029b0: 687b ldr r3, [r7, #4] - 80029b2: 2201 movs r2, #1 - 80029b4: f883 2035 strb.w r2, [r3, #53] ; 0x35 - - return HAL_ERROR; - 80029b8: 2301 movs r3, #1 - 80029ba: e192 b.n 8002ce2 - } - } - } - - /* Write to DMA Stream FCR */ - ((DMA_Stream_TypeDef *)hdma->Instance)->FCR = registerValue; - 80029bc: 687b ldr r3, [r7, #4] - 80029be: 681b ldr r3, [r3, #0] - 80029c0: 697a ldr r2, [r7, #20] - 80029c2: 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 = (DMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma); - 80029c4: 6878 ldr r0, [r7, #4] - 80029c6: f001 f8ef bl 8003ba8 - 80029ca: 4603 mov r3, r0 - 80029cc: 60bb str r3, [r7, #8] - - /* Clear all interrupt flags */ - regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU); - 80029ce: 687b ldr r3, [r7, #4] - 80029d0: 6ddb ldr r3, [r3, #92] ; 0x5c - 80029d2: f003 031f and.w r3, r3, #31 - 80029d6: 223f movs r2, #63 ; 0x3f - 80029d8: 409a lsls r2, r3 - 80029da: 68bb ldr r3, [r7, #8] - 80029dc: 609a str r2, [r3, #8] - 80029de: e0c8 b.n 8002b72 - } - else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */ - 80029e0: 687b ldr r3, [r7, #4] - 80029e2: 681b ldr r3, [r3, #0] - 80029e4: 4a38 ldr r2, [pc, #224] ; (8002ac8 ) - 80029e6: 4293 cmp r3, r2 - 80029e8: d022 beq.n 8002a30 - 80029ea: 687b ldr r3, [r7, #4] - 80029ec: 681b ldr r3, [r3, #0] - 80029ee: 4a37 ldr r2, [pc, #220] ; (8002acc ) - 80029f0: 4293 cmp r3, r2 - 80029f2: d01d beq.n 8002a30 - 80029f4: 687b ldr r3, [r7, #4] - 80029f6: 681b ldr r3, [r3, #0] - 80029f8: 4a35 ldr r2, [pc, #212] ; (8002ad0 ) - 80029fa: 4293 cmp r3, r2 - 80029fc: d018 beq.n 8002a30 - 80029fe: 687b ldr r3, [r7, #4] - 8002a00: 681b ldr r3, [r3, #0] - 8002a02: 4a34 ldr r2, [pc, #208] ; (8002ad4 ) - 8002a04: 4293 cmp r3, r2 - 8002a06: d013 beq.n 8002a30 - 8002a08: 687b ldr r3, [r7, #4] - 8002a0a: 681b ldr r3, [r3, #0] - 8002a0c: 4a32 ldr r2, [pc, #200] ; (8002ad8 ) - 8002a0e: 4293 cmp r3, r2 - 8002a10: d00e beq.n 8002a30 - 8002a12: 687b ldr r3, [r7, #4] - 8002a14: 681b ldr r3, [r3, #0] - 8002a16: 4a31 ldr r2, [pc, #196] ; (8002adc ) - 8002a18: 4293 cmp r3, r2 - 8002a1a: d009 beq.n 8002a30 - 8002a1c: 687b ldr r3, [r7, #4] - 8002a1e: 681b ldr r3, [r3, #0] - 8002a20: 4a2f ldr r2, [pc, #188] ; (8002ae0 ) - 8002a22: 4293 cmp r3, r2 - 8002a24: d004 beq.n 8002a30 - 8002a26: 687b ldr r3, [r7, #4] - 8002a28: 681b ldr r3, [r3, #0] - 8002a2a: 4a2e ldr r2, [pc, #184] ; (8002ae4 ) - 8002a2c: 4293 cmp r3, r2 - 8002a2e: d101 bne.n 8002a34 - 8002a30: 2301 movs r3, #1 - 8002a32: e000 b.n 8002a36 - 8002a34: 2300 movs r3, #0 - 8002a36: 2b00 cmp r3, #0 - 8002a38: f000 8092 beq.w 8002b60 - { - if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U) - 8002a3c: 687b ldr r3, [r7, #4] - 8002a3e: 681b ldr r3, [r3, #0] - 8002a40: 4a21 ldr r2, [pc, #132] ; (8002ac8 ) - 8002a42: 4293 cmp r3, r2 - 8002a44: d021 beq.n 8002a8a - 8002a46: 687b ldr r3, [r7, #4] - 8002a48: 681b ldr r3, [r3, #0] - 8002a4a: 4a20 ldr r2, [pc, #128] ; (8002acc ) - 8002a4c: 4293 cmp r3, r2 - 8002a4e: d01c beq.n 8002a8a - 8002a50: 687b ldr r3, [r7, #4] - 8002a52: 681b ldr r3, [r3, #0] - 8002a54: 4a1e ldr r2, [pc, #120] ; (8002ad0 ) - 8002a56: 4293 cmp r3, r2 - 8002a58: d017 beq.n 8002a8a - 8002a5a: 687b ldr r3, [r7, #4] - 8002a5c: 681b ldr r3, [r3, #0] - 8002a5e: 4a1d ldr r2, [pc, #116] ; (8002ad4 ) - 8002a60: 4293 cmp r3, r2 - 8002a62: d012 beq.n 8002a8a - 8002a64: 687b ldr r3, [r7, #4] - 8002a66: 681b ldr r3, [r3, #0] - 8002a68: 4a1b ldr r2, [pc, #108] ; (8002ad8 ) - 8002a6a: 4293 cmp r3, r2 - 8002a6c: d00d beq.n 8002a8a - 8002a6e: 687b ldr r3, [r7, #4] - 8002a70: 681b ldr r3, [r3, #0] - 8002a72: 4a1a ldr r2, [pc, #104] ; (8002adc ) - 8002a74: 4293 cmp r3, r2 - 8002a76: d008 beq.n 8002a8a - 8002a78: 687b ldr r3, [r7, #4] - 8002a7a: 681b ldr r3, [r3, #0] - 8002a7c: 4a18 ldr r2, [pc, #96] ; (8002ae0 ) - 8002a7e: 4293 cmp r3, r2 - 8002a80: d003 beq.n 8002a8a - 8002a82: 687b ldr r3, [r7, #4] - 8002a84: 681b ldr r3, [r3, #0] - 8002a86: 4a17 ldr r2, [pc, #92] ; (8002ae4 ) - 8002a88: 4293 cmp r3, r2 - /* Check the request parameter */ - assert_param(IS_BDMA_REQUEST(hdma->Init.Request)); - } - - /* Change DMA peripheral state */ - hdma->State = HAL_DMA_STATE_BUSY; - 8002a8a: 687b ldr r3, [r7, #4] - 8002a8c: 2202 movs r2, #2 - 8002a8e: f883 2035 strb.w r2, [r3, #53] ; 0x35 - - /* Allocate lock resource */ - __HAL_UNLOCK(hdma); - 8002a92: 687b ldr r3, [r7, #4] - 8002a94: 2200 movs r2, #0 - 8002a96: f883 2034 strb.w r2, [r3, #52] ; 0x34 - - /* Get the CR register value */ - registerValue = ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR; - 8002a9a: 687b ldr r3, [r7, #4] - 8002a9c: 681b ldr r3, [r3, #0] - 8002a9e: 681b ldr r3, [r3, #0] - 8002aa0: 617b str r3, [r7, #20] - - /* Clear PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, MEM2MEM, DBM and CT bits */ - registerValue &= ((uint32_t)~(BDMA_CCR_PL | BDMA_CCR_MSIZE | BDMA_CCR_PSIZE | \ - 8002aa2: 697a ldr r2, [r7, #20] - 8002aa4: 4b10 ldr r3, [pc, #64] ; (8002ae8 ) - 8002aa6: 4013 ands r3, r2 - 8002aa8: 617b str r3, [r7, #20] - BDMA_CCR_MINC | BDMA_CCR_PINC | BDMA_CCR_CIRC | \ - BDMA_CCR_DIR | BDMA_CCR_MEM2MEM | BDMA_CCR_DBM | \ - BDMA_CCR_CT)); - - /* Prepare the DMA Channel configuration */ - registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) | - 8002aaa: 687b ldr r3, [r7, #4] - 8002aac: 689b ldr r3, [r3, #8] - 8002aae: 2b40 cmp r3, #64 ; 0x40 - 8002ab0: d01c beq.n 8002aec - 8002ab2: 687b ldr r3, [r7, #4] - 8002ab4: 689b ldr r3, [r3, #8] - 8002ab6: 2b80 cmp r3, #128 ; 0x80 - 8002ab8: d102 bne.n 8002ac0 - 8002aba: f44f 4380 mov.w r3, #16384 ; 0x4000 - 8002abe: e016 b.n 8002aee - 8002ac0: 2300 movs r3, #0 - 8002ac2: e014 b.n 8002aee - 8002ac4: fe10803f .word 0xfe10803f - 8002ac8: 58025408 .word 0x58025408 - 8002acc: 5802541c .word 0x5802541c - 8002ad0: 58025430 .word 0x58025430 - 8002ad4: 58025444 .word 0x58025444 - 8002ad8: 58025458 .word 0x58025458 - 8002adc: 5802546c .word 0x5802546c - 8002ae0: 58025480 .word 0x58025480 - 8002ae4: 58025494 .word 0x58025494 - 8002ae8: fffe000f .word 0xfffe000f - 8002aec: 2310 movs r3, #16 - DMA_TO_BDMA_PERIPHERAL_INC(hdma->Init.PeriphInc) | - 8002aee: 687a ldr r2, [r7, #4] - 8002af0: 68d2 ldr r2, [r2, #12] - 8002af2: 08d2 lsrs r2, r2, #3 - registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) | - 8002af4: 431a orrs r2, r3 - DMA_TO_BDMA_MEMORY_INC(hdma->Init.MemInc) | - 8002af6: 687b ldr r3, [r7, #4] - 8002af8: 691b ldr r3, [r3, #16] - 8002afa: 08db lsrs r3, r3, #3 - DMA_TO_BDMA_PERIPHERAL_INC(hdma->Init.PeriphInc) | - 8002afc: 431a orrs r2, r3 - DMA_TO_BDMA_PDATA_SIZE(hdma->Init.PeriphDataAlignment) | - 8002afe: 687b ldr r3, [r7, #4] - 8002b00: 695b ldr r3, [r3, #20] - 8002b02: 08db lsrs r3, r3, #3 - DMA_TO_BDMA_MEMORY_INC(hdma->Init.MemInc) | - 8002b04: 431a orrs r2, r3 - DMA_TO_BDMA_MDATA_SIZE(hdma->Init.MemDataAlignment) | - 8002b06: 687b ldr r3, [r7, #4] - 8002b08: 699b ldr r3, [r3, #24] - 8002b0a: 08db lsrs r3, r3, #3 - DMA_TO_BDMA_PDATA_SIZE(hdma->Init.PeriphDataAlignment) | - 8002b0c: 431a orrs r2, r3 - DMA_TO_BDMA_MODE(hdma->Init.Mode) | - 8002b0e: 687b ldr r3, [r7, #4] - 8002b10: 69db ldr r3, [r3, #28] - 8002b12: 08db lsrs r3, r3, #3 - DMA_TO_BDMA_MDATA_SIZE(hdma->Init.MemDataAlignment) | - 8002b14: 431a orrs r2, r3 - DMA_TO_BDMA_PRIORITY(hdma->Init.Priority); - 8002b16: 687b ldr r3, [r7, #4] - 8002b18: 6a1b ldr r3, [r3, #32] - 8002b1a: 091b lsrs r3, r3, #4 - DMA_TO_BDMA_MODE(hdma->Init.Mode) | - 8002b1c: 4313 orrs r3, r2 - registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) | - 8002b1e: 697a ldr r2, [r7, #20] - 8002b20: 4313 orrs r3, r2 - 8002b22: 617b str r3, [r7, #20] - - /* Write to DMA Channel CR register */ - ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR = registerValue; - 8002b24: 687b ldr r3, [r7, #4] - 8002b26: 681b ldr r3, [r3, #0] - 8002b28: 697a ldr r2, [r7, #20] - 8002b2a: 601a str r2, [r3, #0] - - /* calculation of the channel index */ - hdma->StreamIndex = (((uint32_t)((uint32_t*)hdma->Instance) - (uint32_t)BDMA_Channel0) / ((uint32_t)BDMA_Channel1 - (uint32_t)BDMA_Channel0)) << 2U; - 8002b2c: 687b ldr r3, [r7, #4] - 8002b2e: 681b ldr r3, [r3, #0] - 8002b30: 461a mov r2, r3 - 8002b32: 4b6e ldr r3, [pc, #440] ; (8002cec ) - 8002b34: 4413 add r3, r2 - 8002b36: 4a6e ldr r2, [pc, #440] ; (8002cf0 ) - 8002b38: fba2 2303 umull r2, r3, r2, r3 - 8002b3c: 091b lsrs r3, r3, #4 - 8002b3e: 009a lsls r2, r3, #2 - 8002b40: 687b ldr r3, [r7, #4] - 8002b42: 65da str r2, [r3, #92] ; 0x5c - - /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate - DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */ - regs_bdma = (BDMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma); - 8002b44: 6878 ldr r0, [r7, #4] - 8002b46: f001 f82f bl 8003ba8 - 8002b4a: 4603 mov r3, r0 - 8002b4c: 60fb str r3, [r7, #12] - - /* Clear all interrupt flags */ - regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU)); - 8002b4e: 687b ldr r3, [r7, #4] - 8002b50: 6ddb ldr r3, [r3, #92] ; 0x5c - 8002b52: f003 031f and.w r3, r3, #31 - 8002b56: 2201 movs r2, #1 - 8002b58: 409a lsls r2, r3 - 8002b5a: 68fb ldr r3, [r7, #12] - 8002b5c: 605a str r2, [r3, #4] - 8002b5e: e008 b.n 8002b72 - } - else - { - hdma->ErrorCode = HAL_DMA_ERROR_PARAM; - 8002b60: 687b ldr r3, [r7, #4] - 8002b62: 2240 movs r2, #64 ; 0x40 - 8002b64: 655a str r2, [r3, #84] ; 0x54 - hdma->State = HAL_DMA_STATE_ERROR; - 8002b66: 687b ldr r3, [r7, #4] - 8002b68: 2203 movs r2, #3 - 8002b6a: f883 2035 strb.w r2, [r3, #53] ; 0x35 - - return HAL_ERROR; - 8002b6e: 2301 movs r3, #1 - 8002b70: e0b7 b.n 8002ce2 - } - - if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */ - 8002b72: 687b ldr r3, [r7, #4] - 8002b74: 681b ldr r3, [r3, #0] - 8002b76: 4a5f ldr r2, [pc, #380] ; (8002cf4 ) - 8002b78: 4293 cmp r3, r2 - 8002b7a: d072 beq.n 8002c62 - 8002b7c: 687b ldr r3, [r7, #4] - 8002b7e: 681b ldr r3, [r3, #0] - 8002b80: 4a5d ldr r2, [pc, #372] ; (8002cf8 ) - 8002b82: 4293 cmp r3, r2 - 8002b84: d06d beq.n 8002c62 - 8002b86: 687b ldr r3, [r7, #4] - 8002b88: 681b ldr r3, [r3, #0] - 8002b8a: 4a5c ldr r2, [pc, #368] ; (8002cfc ) - 8002b8c: 4293 cmp r3, r2 - 8002b8e: d068 beq.n 8002c62 - 8002b90: 687b ldr r3, [r7, #4] - 8002b92: 681b ldr r3, [r3, #0] - 8002b94: 4a5a ldr r2, [pc, #360] ; (8002d00 ) - 8002b96: 4293 cmp r3, r2 - 8002b98: d063 beq.n 8002c62 - 8002b9a: 687b ldr r3, [r7, #4] - 8002b9c: 681b ldr r3, [r3, #0] - 8002b9e: 4a59 ldr r2, [pc, #356] ; (8002d04 ) - 8002ba0: 4293 cmp r3, r2 - 8002ba2: d05e beq.n 8002c62 - 8002ba4: 687b ldr r3, [r7, #4] - 8002ba6: 681b ldr r3, [r3, #0] - 8002ba8: 4a57 ldr r2, [pc, #348] ; (8002d08 ) - 8002baa: 4293 cmp r3, r2 - 8002bac: d059 beq.n 8002c62 - 8002bae: 687b ldr r3, [r7, #4] - 8002bb0: 681b ldr r3, [r3, #0] - 8002bb2: 4a56 ldr r2, [pc, #344] ; (8002d0c ) - 8002bb4: 4293 cmp r3, r2 - 8002bb6: d054 beq.n 8002c62 - 8002bb8: 687b ldr r3, [r7, #4] - 8002bba: 681b ldr r3, [r3, #0] - 8002bbc: 4a54 ldr r2, [pc, #336] ; (8002d10 ) - 8002bbe: 4293 cmp r3, r2 - 8002bc0: d04f beq.n 8002c62 - 8002bc2: 687b ldr r3, [r7, #4] - 8002bc4: 681b ldr r3, [r3, #0] - 8002bc6: 4a53 ldr r2, [pc, #332] ; (8002d14 ) - 8002bc8: 4293 cmp r3, r2 - 8002bca: d04a beq.n 8002c62 - 8002bcc: 687b ldr r3, [r7, #4] - 8002bce: 681b ldr r3, [r3, #0] - 8002bd0: 4a51 ldr r2, [pc, #324] ; (8002d18 ) - 8002bd2: 4293 cmp r3, r2 - 8002bd4: d045 beq.n 8002c62 - 8002bd6: 687b ldr r3, [r7, #4] - 8002bd8: 681b ldr r3, [r3, #0] - 8002bda: 4a50 ldr r2, [pc, #320] ; (8002d1c ) - 8002bdc: 4293 cmp r3, r2 - 8002bde: d040 beq.n 8002c62 - 8002be0: 687b ldr r3, [r7, #4] - 8002be2: 681b ldr r3, [r3, #0] - 8002be4: 4a4e ldr r2, [pc, #312] ; (8002d20 ) - 8002be6: 4293 cmp r3, r2 - 8002be8: d03b beq.n 8002c62 - 8002bea: 687b ldr r3, [r7, #4] - 8002bec: 681b ldr r3, [r3, #0] - 8002bee: 4a4d ldr r2, [pc, #308] ; (8002d24 ) - 8002bf0: 4293 cmp r3, r2 - 8002bf2: d036 beq.n 8002c62 - 8002bf4: 687b ldr r3, [r7, #4] - 8002bf6: 681b ldr r3, [r3, #0] - 8002bf8: 4a4b ldr r2, [pc, #300] ; (8002d28 ) - 8002bfa: 4293 cmp r3, r2 - 8002bfc: d031 beq.n 8002c62 - 8002bfe: 687b ldr r3, [r7, #4] - 8002c00: 681b ldr r3, [r3, #0] - 8002c02: 4a4a ldr r2, [pc, #296] ; (8002d2c ) - 8002c04: 4293 cmp r3, r2 - 8002c06: d02c beq.n 8002c62 - 8002c08: 687b ldr r3, [r7, #4] - 8002c0a: 681b ldr r3, [r3, #0] - 8002c0c: 4a48 ldr r2, [pc, #288] ; (8002d30 ) - 8002c0e: 4293 cmp r3, r2 - 8002c10: d027 beq.n 8002c62 - 8002c12: 687b ldr r3, [r7, #4] - 8002c14: 681b ldr r3, [r3, #0] - 8002c16: 4a47 ldr r2, [pc, #284] ; (8002d34 ) - 8002c18: 4293 cmp r3, r2 - 8002c1a: d022 beq.n 8002c62 - 8002c1c: 687b ldr r3, [r7, #4] - 8002c1e: 681b ldr r3, [r3, #0] - 8002c20: 4a45 ldr r2, [pc, #276] ; (8002d38 ) - 8002c22: 4293 cmp r3, r2 - 8002c24: d01d beq.n 8002c62 - 8002c26: 687b ldr r3, [r7, #4] - 8002c28: 681b ldr r3, [r3, #0] - 8002c2a: 4a44 ldr r2, [pc, #272] ; (8002d3c ) - 8002c2c: 4293 cmp r3, r2 - 8002c2e: d018 beq.n 8002c62 - 8002c30: 687b ldr r3, [r7, #4] - 8002c32: 681b ldr r3, [r3, #0] - 8002c34: 4a42 ldr r2, [pc, #264] ; (8002d40 ) - 8002c36: 4293 cmp r3, r2 - 8002c38: d013 beq.n 8002c62 - 8002c3a: 687b ldr r3, [r7, #4] - 8002c3c: 681b ldr r3, [r3, #0] - 8002c3e: 4a41 ldr r2, [pc, #260] ; (8002d44 ) - 8002c40: 4293 cmp r3, r2 - 8002c42: d00e beq.n 8002c62 - 8002c44: 687b ldr r3, [r7, #4] - 8002c46: 681b ldr r3, [r3, #0] - 8002c48: 4a3f ldr r2, [pc, #252] ; (8002d48 ) - 8002c4a: 4293 cmp r3, r2 - 8002c4c: d009 beq.n 8002c62 - 8002c4e: 687b ldr r3, [r7, #4] - 8002c50: 681b ldr r3, [r3, #0] - 8002c52: 4a3e ldr r2, [pc, #248] ; (8002d4c ) - 8002c54: 4293 cmp r3, r2 - 8002c56: d004 beq.n 8002c62 - 8002c58: 687b ldr r3, [r7, #4] - 8002c5a: 681b ldr r3, [r3, #0] - 8002c5c: 4a3c ldr r2, [pc, #240] ; (8002d50 ) - 8002c5e: 4293 cmp r3, r2 - 8002c60: d101 bne.n 8002c66 - 8002c62: 2301 movs r3, #1 - 8002c64: e000 b.n 8002c68 - 8002c66: 2300 movs r3, #0 - 8002c68: 2b00 cmp r3, #0 - 8002c6a: d032 beq.n 8002cd2 - { - /* Initialize parameters for DMAMUX channel : - DMAmuxChannel, DMAmuxChannelStatus and DMAmuxChannelStatusMask - */ - DMA_CalcDMAMUXChannelBaseAndMask(hdma); - 8002c6c: 6878 ldr r0, [r7, #4] - 8002c6e: f001 f8c9 bl 8003e04 - - if(hdma->Init.Direction == DMA_MEMORY_TO_MEMORY) - 8002c72: 687b ldr r3, [r7, #4] - 8002c74: 689b ldr r3, [r3, #8] - 8002c76: 2b80 cmp r3, #128 ; 0x80 - 8002c78: d102 bne.n 8002c80 - { - /* if memory to memory force the request to 0*/ - hdma->Init.Request = DMA_REQUEST_MEM2MEM; - 8002c7a: 687b ldr r3, [r7, #4] - 8002c7c: 2200 movs r2, #0 - 8002c7e: 605a str r2, [r3, #4] - } - - /* Set peripheral request to DMAMUX channel */ - hdma->DMAmuxChannel->CCR = (hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID); - 8002c80: 687b ldr r3, [r7, #4] - 8002c82: 685a ldr r2, [r3, #4] - 8002c84: 687b ldr r3, [r7, #4] - 8002c86: 6e1b ldr r3, [r3, #96] ; 0x60 - 8002c88: b2d2 uxtb r2, r2 - 8002c8a: 601a str r2, [r3, #0] - - /* Clear the DMAMUX synchro overrun flag */ - hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask; - 8002c8c: 687b ldr r3, [r7, #4] - 8002c8e: 6e5b ldr r3, [r3, #100] ; 0x64 - 8002c90: 687a ldr r2, [r7, #4] - 8002c92: 6e92 ldr r2, [r2, #104] ; 0x68 - 8002c94: 605a str r2, [r3, #4] - - /* Initialize parameters for DMAMUX request generator : - if the DMA request is DMA_REQUEST_GENERATOR0 to DMA_REQUEST_GENERATOR7 - */ - if((hdma->Init.Request >= DMA_REQUEST_GENERATOR0) && (hdma->Init.Request <= DMA_REQUEST_GENERATOR7)) - 8002c96: 687b ldr r3, [r7, #4] - 8002c98: 685b ldr r3, [r3, #4] - 8002c9a: 2b00 cmp r3, #0 - 8002c9c: d010 beq.n 8002cc0 - 8002c9e: 687b ldr r3, [r7, #4] - 8002ca0: 685b ldr r3, [r3, #4] - 8002ca2: 2b08 cmp r3, #8 - 8002ca4: d80c bhi.n 8002cc0 - { - /* Initialize parameters for DMAMUX request generator : - DMAmuxRequestGen, DMAmuxRequestGenStatus and DMAmuxRequestGenStatusMask */ - DMA_CalcDMAMUXRequestGenBaseAndMask(hdma); - 8002ca6: 6878 ldr r0, [r7, #4] - 8002ca8: f001 f946 bl 8003f38 - - /* Reset the DMAMUX request generator register */ - hdma->DMAmuxRequestGen->RGCR = 0U; - 8002cac: 687b ldr r3, [r7, #4] - 8002cae: 6edb ldr r3, [r3, #108] ; 0x6c - 8002cb0: 2200 movs r2, #0 - 8002cb2: 601a str r2, [r3, #0] - - /* Clear the DMAMUX request generator overrun flag */ - hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask; - 8002cb4: 687b ldr r3, [r7, #4] - 8002cb6: 6f1b ldr r3, [r3, #112] ; 0x70 - 8002cb8: 687a ldr r2, [r7, #4] - 8002cba: 6f52 ldr r2, [r2, #116] ; 0x74 - 8002cbc: 605a str r2, [r3, #4] - 8002cbe: e008 b.n 8002cd2 - } - else - { - hdma->DMAmuxRequestGen = 0U; - 8002cc0: 687b ldr r3, [r7, #4] - 8002cc2: 2200 movs r2, #0 - 8002cc4: 66da str r2, [r3, #108] ; 0x6c - hdma->DMAmuxRequestGenStatus = 0U; - 8002cc6: 687b ldr r3, [r7, #4] - 8002cc8: 2200 movs r2, #0 - 8002cca: 671a str r2, [r3, #112] ; 0x70 - hdma->DMAmuxRequestGenStatusMask = 0U; - 8002ccc: 687b ldr r3, [r7, #4] - 8002cce: 2200 movs r2, #0 - 8002cd0: 675a str r2, [r3, #116] ; 0x74 - } - } - - /* Initialize the error code */ - hdma->ErrorCode = HAL_DMA_ERROR_NONE; - 8002cd2: 687b ldr r3, [r7, #4] - 8002cd4: 2200 movs r2, #0 - 8002cd6: 655a str r2, [r3, #84] ; 0x54 - - /* Initialize the DMA state */ - hdma->State = HAL_DMA_STATE_READY; - 8002cd8: 687b ldr r3, [r7, #4] - 8002cda: 2201 movs r2, #1 - 8002cdc: f883 2035 strb.w r2, [r3, #53] ; 0x35 - - return HAL_OK; - 8002ce0: 2300 movs r3, #0 -} - 8002ce2: 4618 mov r0, r3 - 8002ce4: 3718 adds r7, #24 - 8002ce6: 46bd mov sp, r7 - 8002ce8: bd80 pop {r7, pc} - 8002cea: bf00 nop - 8002cec: a7fdabf8 .word 0xa7fdabf8 - 8002cf0: cccccccd .word 0xcccccccd - 8002cf4: 40020010 .word 0x40020010 - 8002cf8: 40020028 .word 0x40020028 - 8002cfc: 40020040 .word 0x40020040 - 8002d00: 40020058 .word 0x40020058 - 8002d04: 40020070 .word 0x40020070 - 8002d08: 40020088 .word 0x40020088 - 8002d0c: 400200a0 .word 0x400200a0 - 8002d10: 400200b8 .word 0x400200b8 - 8002d14: 40020410 .word 0x40020410 - 8002d18: 40020428 .word 0x40020428 - 8002d1c: 40020440 .word 0x40020440 - 8002d20: 40020458 .word 0x40020458 - 8002d24: 40020470 .word 0x40020470 - 8002d28: 40020488 .word 0x40020488 - 8002d2c: 400204a0 .word 0x400204a0 - 8002d30: 400204b8 .word 0x400204b8 - 8002d34: 58025408 .word 0x58025408 - 8002d38: 5802541c .word 0x5802541c - 8002d3c: 58025430 .word 0x58025430 - 8002d40: 58025444 .word 0x58025444 - 8002d44: 58025458 .word 0x58025458 - 8002d48: 5802546c .word 0x5802546c - 8002d4c: 58025480 .word 0x58025480 - 8002d50: 58025494 .word 0x58025494 - -08002d54 : - * @param hdma: pointer to a DMA_HandleTypeDef structure that contains - * the configuration information for the specified DMA Stream. - * @retval None - */ -void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma) -{ - 8002d54: b580 push {r7, lr} - 8002d56: b08a sub sp, #40 ; 0x28 - 8002d58: af00 add r7, sp, #0 - 8002d5a: 6078 str r0, [r7, #4] - uint32_t tmpisr_dma, tmpisr_bdma; - uint32_t ccr_reg; - __IO uint32_t count = 0U; - 8002d5c: 2300 movs r3, #0 - 8002d5e: 60fb str r3, [r7, #12] - uint32_t timeout = SystemCoreClock / 9600U; - 8002d60: 4b67 ldr r3, [pc, #412] ; (8002f00 ) - 8002d62: 681b ldr r3, [r3, #0] - 8002d64: 4a67 ldr r2, [pc, #412] ; (8002f04 ) - 8002d66: fba2 2303 umull r2, r3, r2, r3 - 8002d6a: 0a9b lsrs r3, r3, #10 - 8002d6c: 627b str r3, [r7, #36] ; 0x24 - - /* calculate DMA base and stream number */ - DMA_Base_Registers *regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress; - 8002d6e: 687b ldr r3, [r7, #4] - 8002d70: 6d9b ldr r3, [r3, #88] ; 0x58 - 8002d72: 623b str r3, [r7, #32] - BDMA_Base_Registers *regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress; - 8002d74: 687b ldr r3, [r7, #4] - 8002d76: 6d9b ldr r3, [r3, #88] ; 0x58 - 8002d78: 61fb str r3, [r7, #28] - - tmpisr_dma = regs_dma->ISR; - 8002d7a: 6a3b ldr r3, [r7, #32] - 8002d7c: 681b ldr r3, [r3, #0] - 8002d7e: 61bb str r3, [r7, #24] - tmpisr_bdma = regs_bdma->ISR; - 8002d80: 69fb ldr r3, [r7, #28] - 8002d82: 681b ldr r3, [r3, #0] - 8002d84: 617b str r3, [r7, #20] - - if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */ - 8002d86: 687b ldr r3, [r7, #4] - 8002d88: 681b ldr r3, [r3, #0] - 8002d8a: 4a5f ldr r2, [pc, #380] ; (8002f08 ) - 8002d8c: 4293 cmp r3, r2 - 8002d8e: d04a beq.n 8002e26 - 8002d90: 687b ldr r3, [r7, #4] - 8002d92: 681b ldr r3, [r3, #0] - 8002d94: 4a5d ldr r2, [pc, #372] ; (8002f0c ) - 8002d96: 4293 cmp r3, r2 - 8002d98: d045 beq.n 8002e26 - 8002d9a: 687b ldr r3, [r7, #4] - 8002d9c: 681b ldr r3, [r3, #0] - 8002d9e: 4a5c ldr r2, [pc, #368] ; (8002f10 ) - 8002da0: 4293 cmp r3, r2 - 8002da2: d040 beq.n 8002e26 - 8002da4: 687b ldr r3, [r7, #4] - 8002da6: 681b ldr r3, [r3, #0] - 8002da8: 4a5a ldr r2, [pc, #360] ; (8002f14 ) - 8002daa: 4293 cmp r3, r2 - 8002dac: d03b beq.n 8002e26 - 8002dae: 687b ldr r3, [r7, #4] - 8002db0: 681b ldr r3, [r3, #0] - 8002db2: 4a59 ldr r2, [pc, #356] ; (8002f18 ) - 8002db4: 4293 cmp r3, r2 - 8002db6: d036 beq.n 8002e26 - 8002db8: 687b ldr r3, [r7, #4] - 8002dba: 681b ldr r3, [r3, #0] - 8002dbc: 4a57 ldr r2, [pc, #348] ; (8002f1c ) - 8002dbe: 4293 cmp r3, r2 - 8002dc0: d031 beq.n 8002e26 - 8002dc2: 687b ldr r3, [r7, #4] - 8002dc4: 681b ldr r3, [r3, #0] - 8002dc6: 4a56 ldr r2, [pc, #344] ; (8002f20 ) - 8002dc8: 4293 cmp r3, r2 - 8002dca: d02c beq.n 8002e26 - 8002dcc: 687b ldr r3, [r7, #4] - 8002dce: 681b ldr r3, [r3, #0] - 8002dd0: 4a54 ldr r2, [pc, #336] ; (8002f24 ) - 8002dd2: 4293 cmp r3, r2 - 8002dd4: d027 beq.n 8002e26 - 8002dd6: 687b ldr r3, [r7, #4] - 8002dd8: 681b ldr r3, [r3, #0] - 8002dda: 4a53 ldr r2, [pc, #332] ; (8002f28 ) - 8002ddc: 4293 cmp r3, r2 - 8002dde: d022 beq.n 8002e26 - 8002de0: 687b ldr r3, [r7, #4] - 8002de2: 681b ldr r3, [r3, #0] - 8002de4: 4a51 ldr r2, [pc, #324] ; (8002f2c ) - 8002de6: 4293 cmp r3, r2 - 8002de8: d01d beq.n 8002e26 - 8002dea: 687b ldr r3, [r7, #4] - 8002dec: 681b ldr r3, [r3, #0] - 8002dee: 4a50 ldr r2, [pc, #320] ; (8002f30 ) - 8002df0: 4293 cmp r3, r2 - 8002df2: d018 beq.n 8002e26 - 8002df4: 687b ldr r3, [r7, #4] - 8002df6: 681b ldr r3, [r3, #0] - 8002df8: 4a4e ldr r2, [pc, #312] ; (8002f34 ) - 8002dfa: 4293 cmp r3, r2 - 8002dfc: d013 beq.n 8002e26 - 8002dfe: 687b ldr r3, [r7, #4] - 8002e00: 681b ldr r3, [r3, #0] - 8002e02: 4a4d ldr r2, [pc, #308] ; (8002f38 ) - 8002e04: 4293 cmp r3, r2 - 8002e06: d00e beq.n 8002e26 - 8002e08: 687b ldr r3, [r7, #4] - 8002e0a: 681b ldr r3, [r3, #0] - 8002e0c: 4a4b ldr r2, [pc, #300] ; (8002f3c ) - 8002e0e: 4293 cmp r3, r2 - 8002e10: d009 beq.n 8002e26 - 8002e12: 687b ldr r3, [r7, #4] - 8002e14: 681b ldr r3, [r3, #0] - 8002e16: 4a4a ldr r2, [pc, #296] ; (8002f40 ) - 8002e18: 4293 cmp r3, r2 - 8002e1a: d004 beq.n 8002e26 - 8002e1c: 687b ldr r3, [r7, #4] - 8002e1e: 681b ldr r3, [r3, #0] - 8002e20: 4a48 ldr r2, [pc, #288] ; (8002f44 ) - 8002e22: 4293 cmp r3, r2 - 8002e24: d101 bne.n 8002e2a - 8002e26: 2301 movs r3, #1 - 8002e28: e000 b.n 8002e2c - 8002e2a: 2300 movs r3, #0 - 8002e2c: 2b00 cmp r3, #0 - 8002e2e: f000 842b beq.w 8003688 - { - /* Transfer Error Interrupt management ***************************************/ - if ((tmpisr_dma & (DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U) - 8002e32: 687b ldr r3, [r7, #4] - 8002e34: 6ddb ldr r3, [r3, #92] ; 0x5c - 8002e36: f003 031f and.w r3, r3, #31 - 8002e3a: 2208 movs r2, #8 - 8002e3c: 409a lsls r2, r3 - 8002e3e: 69bb ldr r3, [r7, #24] - 8002e40: 4013 ands r3, r2 - 8002e42: 2b00 cmp r3, #0 - 8002e44: f000 80a2 beq.w 8002f8c - { - if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TE) != 0U) - 8002e48: 687b ldr r3, [r7, #4] - 8002e4a: 681b ldr r3, [r3, #0] - 8002e4c: 4a2e ldr r2, [pc, #184] ; (8002f08 ) - 8002e4e: 4293 cmp r3, r2 - 8002e50: d04a beq.n 8002ee8 - 8002e52: 687b ldr r3, [r7, #4] - 8002e54: 681b ldr r3, [r3, #0] - 8002e56: 4a2d ldr r2, [pc, #180] ; (8002f0c ) - 8002e58: 4293 cmp r3, r2 - 8002e5a: d045 beq.n 8002ee8 - 8002e5c: 687b ldr r3, [r7, #4] - 8002e5e: 681b ldr r3, [r3, #0] - 8002e60: 4a2b ldr r2, [pc, #172] ; (8002f10 ) - 8002e62: 4293 cmp r3, r2 - 8002e64: d040 beq.n 8002ee8 - 8002e66: 687b ldr r3, [r7, #4] - 8002e68: 681b ldr r3, [r3, #0] - 8002e6a: 4a2a ldr r2, [pc, #168] ; (8002f14 ) - 8002e6c: 4293 cmp r3, r2 - 8002e6e: d03b beq.n 8002ee8 - 8002e70: 687b ldr r3, [r7, #4] - 8002e72: 681b ldr r3, [r3, #0] - 8002e74: 4a28 ldr r2, [pc, #160] ; (8002f18 ) - 8002e76: 4293 cmp r3, r2 - 8002e78: d036 beq.n 8002ee8 - 8002e7a: 687b ldr r3, [r7, #4] - 8002e7c: 681b ldr r3, [r3, #0] - 8002e7e: 4a27 ldr r2, [pc, #156] ; (8002f1c ) - 8002e80: 4293 cmp r3, r2 - 8002e82: d031 beq.n 8002ee8 - 8002e84: 687b ldr r3, [r7, #4] - 8002e86: 681b ldr r3, [r3, #0] - 8002e88: 4a25 ldr r2, [pc, #148] ; (8002f20 ) - 8002e8a: 4293 cmp r3, r2 - 8002e8c: d02c beq.n 8002ee8 - 8002e8e: 687b ldr r3, [r7, #4] - 8002e90: 681b ldr r3, [r3, #0] - 8002e92: 4a24 ldr r2, [pc, #144] ; (8002f24 ) - 8002e94: 4293 cmp r3, r2 - 8002e96: d027 beq.n 8002ee8 - 8002e98: 687b ldr r3, [r7, #4] - 8002e9a: 681b ldr r3, [r3, #0] - 8002e9c: 4a22 ldr r2, [pc, #136] ; (8002f28 ) - 8002e9e: 4293 cmp r3, r2 - 8002ea0: d022 beq.n 8002ee8 - 8002ea2: 687b ldr r3, [r7, #4] - 8002ea4: 681b ldr r3, [r3, #0] - 8002ea6: 4a21 ldr r2, [pc, #132] ; (8002f2c ) - 8002ea8: 4293 cmp r3, r2 - 8002eaa: d01d beq.n 8002ee8 - 8002eac: 687b ldr r3, [r7, #4] - 8002eae: 681b ldr r3, [r3, #0] - 8002eb0: 4a1f ldr r2, [pc, #124] ; (8002f30 ) - 8002eb2: 4293 cmp r3, r2 - 8002eb4: d018 beq.n 8002ee8 - 8002eb6: 687b ldr r3, [r7, #4] - 8002eb8: 681b ldr r3, [r3, #0] - 8002eba: 4a1e ldr r2, [pc, #120] ; (8002f34 ) - 8002ebc: 4293 cmp r3, r2 - 8002ebe: d013 beq.n 8002ee8 - 8002ec0: 687b ldr r3, [r7, #4] - 8002ec2: 681b ldr r3, [r3, #0] - 8002ec4: 4a1c ldr r2, [pc, #112] ; (8002f38 ) - 8002ec6: 4293 cmp r3, r2 - 8002ec8: d00e beq.n 8002ee8 - 8002eca: 687b ldr r3, [r7, #4] - 8002ecc: 681b ldr r3, [r3, #0] - 8002ece: 4a1b ldr r2, [pc, #108] ; (8002f3c ) - 8002ed0: 4293 cmp r3, r2 - 8002ed2: d009 beq.n 8002ee8 - 8002ed4: 687b ldr r3, [r7, #4] - 8002ed6: 681b ldr r3, [r3, #0] - 8002ed8: 4a19 ldr r2, [pc, #100] ; (8002f40 ) - 8002eda: 4293 cmp r3, r2 - 8002edc: d004 beq.n 8002ee8 - 8002ede: 687b ldr r3, [r7, #4] - 8002ee0: 681b ldr r3, [r3, #0] - 8002ee2: 4a18 ldr r2, [pc, #96] ; (8002f44 ) - 8002ee4: 4293 cmp r3, r2 - 8002ee6: d12f bne.n 8002f48 - 8002ee8: 687b ldr r3, [r7, #4] - 8002eea: 681b ldr r3, [r3, #0] - 8002eec: 681b ldr r3, [r3, #0] - 8002eee: f003 0304 and.w r3, r3, #4 - 8002ef2: 2b00 cmp r3, #0 - 8002ef4: bf14 ite ne - 8002ef6: 2301 movne r3, #1 - 8002ef8: 2300 moveq r3, #0 - 8002efa: b2db uxtb r3, r3 - 8002efc: e02e b.n 8002f5c - 8002efe: bf00 nop - 8002f00: 24000014 .word 0x24000014 - 8002f04: 1b4e81b5 .word 0x1b4e81b5 - 8002f08: 40020010 .word 0x40020010 - 8002f0c: 40020028 .word 0x40020028 - 8002f10: 40020040 .word 0x40020040 - 8002f14: 40020058 .word 0x40020058 - 8002f18: 40020070 .word 0x40020070 - 8002f1c: 40020088 .word 0x40020088 - 8002f20: 400200a0 .word 0x400200a0 - 8002f24: 400200b8 .word 0x400200b8 - 8002f28: 40020410 .word 0x40020410 - 8002f2c: 40020428 .word 0x40020428 - 8002f30: 40020440 .word 0x40020440 - 8002f34: 40020458 .word 0x40020458 - 8002f38: 40020470 .word 0x40020470 - 8002f3c: 40020488 .word 0x40020488 - 8002f40: 400204a0 .word 0x400204a0 - 8002f44: 400204b8 .word 0x400204b8 - 8002f48: 687b ldr r3, [r7, #4] - 8002f4a: 681b ldr r3, [r3, #0] - 8002f4c: 681b ldr r3, [r3, #0] - 8002f4e: f003 0308 and.w r3, r3, #8 - 8002f52: 2b00 cmp r3, #0 - 8002f54: bf14 ite ne - 8002f56: 2301 movne r3, #1 - 8002f58: 2300 moveq r3, #0 - 8002f5a: b2db uxtb r3, r3 - 8002f5c: 2b00 cmp r3, #0 - 8002f5e: d015 beq.n 8002f8c - { - /* Disable the transfer error interrupt */ - ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TE); - 8002f60: 687b ldr r3, [r7, #4] - 8002f62: 681b ldr r3, [r3, #0] - 8002f64: 681a ldr r2, [r3, #0] - 8002f66: 687b ldr r3, [r7, #4] - 8002f68: 681b ldr r3, [r3, #0] - 8002f6a: f022 0204 bic.w r2, r2, #4 - 8002f6e: 601a str r2, [r3, #0] - - /* Clear the transfer error flag */ - regs_dma->IFCR = DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU); - 8002f70: 687b ldr r3, [r7, #4] - 8002f72: 6ddb ldr r3, [r3, #92] ; 0x5c - 8002f74: f003 031f and.w r3, r3, #31 - 8002f78: 2208 movs r2, #8 - 8002f7a: 409a lsls r2, r3 - 8002f7c: 6a3b ldr r3, [r7, #32] - 8002f7e: 609a str r2, [r3, #8] - - /* Update error code */ - hdma->ErrorCode |= HAL_DMA_ERROR_TE; - 8002f80: 687b ldr r3, [r7, #4] - 8002f82: 6d5b ldr r3, [r3, #84] ; 0x54 - 8002f84: f043 0201 orr.w r2, r3, #1 - 8002f88: 687b ldr r3, [r7, #4] - 8002f8a: 655a str r2, [r3, #84] ; 0x54 - } - } - /* FIFO Error Interrupt management ******************************************/ - if ((tmpisr_dma & (DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U) - 8002f8c: 687b ldr r3, [r7, #4] - 8002f8e: 6ddb ldr r3, [r3, #92] ; 0x5c - 8002f90: f003 031f and.w r3, r3, #31 - 8002f94: 69ba ldr r2, [r7, #24] - 8002f96: fa22 f303 lsr.w r3, r2, r3 - 8002f9a: f003 0301 and.w r3, r3, #1 - 8002f9e: 2b00 cmp r3, #0 - 8002fa0: d06e beq.n 8003080 - { - if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_FE) != 0U) - 8002fa2: 687b ldr r3, [r7, #4] - 8002fa4: 681b ldr r3, [r3, #0] - 8002fa6: 4a69 ldr r2, [pc, #420] ; (800314c ) - 8002fa8: 4293 cmp r3, r2 - 8002faa: d04a beq.n 8003042 - 8002fac: 687b ldr r3, [r7, #4] - 8002fae: 681b ldr r3, [r3, #0] - 8002fb0: 4a67 ldr r2, [pc, #412] ; (8003150 ) - 8002fb2: 4293 cmp r3, r2 - 8002fb4: d045 beq.n 8003042 - 8002fb6: 687b ldr r3, [r7, #4] - 8002fb8: 681b ldr r3, [r3, #0] - 8002fba: 4a66 ldr r2, [pc, #408] ; (8003154 ) - 8002fbc: 4293 cmp r3, r2 - 8002fbe: d040 beq.n 8003042 - 8002fc0: 687b ldr r3, [r7, #4] - 8002fc2: 681b ldr r3, [r3, #0] - 8002fc4: 4a64 ldr r2, [pc, #400] ; (8003158 ) - 8002fc6: 4293 cmp r3, r2 - 8002fc8: d03b beq.n 8003042 - 8002fca: 687b ldr r3, [r7, #4] - 8002fcc: 681b ldr r3, [r3, #0] - 8002fce: 4a63 ldr r2, [pc, #396] ; (800315c ) - 8002fd0: 4293 cmp r3, r2 - 8002fd2: d036 beq.n 8003042 - 8002fd4: 687b ldr r3, [r7, #4] - 8002fd6: 681b ldr r3, [r3, #0] - 8002fd8: 4a61 ldr r2, [pc, #388] ; (8003160 ) - 8002fda: 4293 cmp r3, r2 - 8002fdc: d031 beq.n 8003042 - 8002fde: 687b ldr r3, [r7, #4] - 8002fe0: 681b ldr r3, [r3, #0] - 8002fe2: 4a60 ldr r2, [pc, #384] ; (8003164 ) - 8002fe4: 4293 cmp r3, r2 - 8002fe6: d02c beq.n 8003042 - 8002fe8: 687b ldr r3, [r7, #4] - 8002fea: 681b ldr r3, [r3, #0] - 8002fec: 4a5e ldr r2, [pc, #376] ; (8003168 ) - 8002fee: 4293 cmp r3, r2 - 8002ff0: d027 beq.n 8003042 - 8002ff2: 687b ldr r3, [r7, #4] - 8002ff4: 681b ldr r3, [r3, #0] - 8002ff6: 4a5d ldr r2, [pc, #372] ; (800316c ) - 8002ff8: 4293 cmp r3, r2 - 8002ffa: d022 beq.n 8003042 - 8002ffc: 687b ldr r3, [r7, #4] - 8002ffe: 681b ldr r3, [r3, #0] - 8003000: 4a5b ldr r2, [pc, #364] ; (8003170 ) - 8003002: 4293 cmp r3, r2 - 8003004: d01d beq.n 8003042 - 8003006: 687b ldr r3, [r7, #4] - 8003008: 681b ldr r3, [r3, #0] - 800300a: 4a5a ldr r2, [pc, #360] ; (8003174 ) - 800300c: 4293 cmp r3, r2 - 800300e: d018 beq.n 8003042 - 8003010: 687b ldr r3, [r7, #4] - 8003012: 681b ldr r3, [r3, #0] - 8003014: 4a58 ldr r2, [pc, #352] ; (8003178 ) - 8003016: 4293 cmp r3, r2 - 8003018: d013 beq.n 8003042 - 800301a: 687b ldr r3, [r7, #4] - 800301c: 681b ldr r3, [r3, #0] - 800301e: 4a57 ldr r2, [pc, #348] ; (800317c ) - 8003020: 4293 cmp r3, r2 - 8003022: d00e beq.n 8003042 - 8003024: 687b ldr r3, [r7, #4] - 8003026: 681b ldr r3, [r3, #0] - 8003028: 4a55 ldr r2, [pc, #340] ; (8003180 ) - 800302a: 4293 cmp r3, r2 - 800302c: d009 beq.n 8003042 - 800302e: 687b ldr r3, [r7, #4] - 8003030: 681b ldr r3, [r3, #0] - 8003032: 4a54 ldr r2, [pc, #336] ; (8003184 ) - 8003034: 4293 cmp r3, r2 - 8003036: d004 beq.n 8003042 - 8003038: 687b ldr r3, [r7, #4] - 800303a: 681b ldr r3, [r3, #0] - 800303c: 4a52 ldr r2, [pc, #328] ; (8003188 ) - 800303e: 4293 cmp r3, r2 - 8003040: d10a bne.n 8003058 - 8003042: 687b ldr r3, [r7, #4] - 8003044: 681b ldr r3, [r3, #0] - 8003046: 695b ldr r3, [r3, #20] - 8003048: f003 0380 and.w r3, r3, #128 ; 0x80 - 800304c: 2b00 cmp r3, #0 - 800304e: bf14 ite ne - 8003050: 2301 movne r3, #1 - 8003052: 2300 moveq r3, #0 - 8003054: b2db uxtb r3, r3 - 8003056: e003 b.n 8003060 - 8003058: 687b ldr r3, [r7, #4] - 800305a: 681b ldr r3, [r3, #0] - 800305c: 681b ldr r3, [r3, #0] - 800305e: 2300 movs r3, #0 - 8003060: 2b00 cmp r3, #0 - 8003062: d00d beq.n 8003080 - { - /* Clear the FIFO error flag */ - regs_dma->IFCR = DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU); - 8003064: 687b ldr r3, [r7, #4] - 8003066: 6ddb ldr r3, [r3, #92] ; 0x5c - 8003068: f003 031f and.w r3, r3, #31 - 800306c: 2201 movs r2, #1 - 800306e: 409a lsls r2, r3 - 8003070: 6a3b ldr r3, [r7, #32] - 8003072: 609a str r2, [r3, #8] - - /* Update error code */ - hdma->ErrorCode |= HAL_DMA_ERROR_FE; - 8003074: 687b ldr r3, [r7, #4] - 8003076: 6d5b ldr r3, [r3, #84] ; 0x54 - 8003078: f043 0202 orr.w r2, r3, #2 - 800307c: 687b ldr r3, [r7, #4] - 800307e: 655a str r2, [r3, #84] ; 0x54 - } - } - /* Direct Mode Error Interrupt management ***********************************/ - if ((tmpisr_dma & (DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U) - 8003080: 687b ldr r3, [r7, #4] - 8003082: 6ddb ldr r3, [r3, #92] ; 0x5c - 8003084: f003 031f and.w r3, r3, #31 - 8003088: 2204 movs r2, #4 - 800308a: 409a lsls r2, r3 - 800308c: 69bb ldr r3, [r7, #24] - 800308e: 4013 ands r3, r2 - 8003090: 2b00 cmp r3, #0 - 8003092: f000 808f beq.w 80031b4 - { - if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_DME) != 0U) - 8003096: 687b ldr r3, [r7, #4] - 8003098: 681b ldr r3, [r3, #0] - 800309a: 4a2c ldr r2, [pc, #176] ; (800314c ) - 800309c: 4293 cmp r3, r2 - 800309e: d04a beq.n 8003136 - 80030a0: 687b ldr r3, [r7, #4] - 80030a2: 681b ldr r3, [r3, #0] - 80030a4: 4a2a ldr r2, [pc, #168] ; (8003150 ) - 80030a6: 4293 cmp r3, r2 - 80030a8: d045 beq.n 8003136 - 80030aa: 687b ldr r3, [r7, #4] - 80030ac: 681b ldr r3, [r3, #0] - 80030ae: 4a29 ldr r2, [pc, #164] ; (8003154 ) - 80030b0: 4293 cmp r3, r2 - 80030b2: d040 beq.n 8003136 - 80030b4: 687b ldr r3, [r7, #4] - 80030b6: 681b ldr r3, [r3, #0] - 80030b8: 4a27 ldr r2, [pc, #156] ; (8003158 ) - 80030ba: 4293 cmp r3, r2 - 80030bc: d03b beq.n 8003136 - 80030be: 687b ldr r3, [r7, #4] - 80030c0: 681b ldr r3, [r3, #0] - 80030c2: 4a26 ldr r2, [pc, #152] ; (800315c ) - 80030c4: 4293 cmp r3, r2 - 80030c6: d036 beq.n 8003136 - 80030c8: 687b ldr r3, [r7, #4] - 80030ca: 681b ldr r3, [r3, #0] - 80030cc: 4a24 ldr r2, [pc, #144] ; (8003160 ) - 80030ce: 4293 cmp r3, r2 - 80030d0: d031 beq.n 8003136 - 80030d2: 687b ldr r3, [r7, #4] - 80030d4: 681b ldr r3, [r3, #0] - 80030d6: 4a23 ldr r2, [pc, #140] ; (8003164 ) - 80030d8: 4293 cmp r3, r2 - 80030da: d02c beq.n 8003136 - 80030dc: 687b ldr r3, [r7, #4] - 80030de: 681b ldr r3, [r3, #0] - 80030e0: 4a21 ldr r2, [pc, #132] ; (8003168 ) - 80030e2: 4293 cmp r3, r2 - 80030e4: d027 beq.n 8003136 - 80030e6: 687b ldr r3, [r7, #4] - 80030e8: 681b ldr r3, [r3, #0] - 80030ea: 4a20 ldr r2, [pc, #128] ; (800316c ) - 80030ec: 4293 cmp r3, r2 - 80030ee: d022 beq.n 8003136 - 80030f0: 687b ldr r3, [r7, #4] - 80030f2: 681b ldr r3, [r3, #0] - 80030f4: 4a1e ldr r2, [pc, #120] ; (8003170 ) - 80030f6: 4293 cmp r3, r2 - 80030f8: d01d beq.n 8003136 - 80030fa: 687b ldr r3, [r7, #4] - 80030fc: 681b ldr r3, [r3, #0] - 80030fe: 4a1d ldr r2, [pc, #116] ; (8003174 ) - 8003100: 4293 cmp r3, r2 - 8003102: d018 beq.n 8003136 - 8003104: 687b ldr r3, [r7, #4] - 8003106: 681b ldr r3, [r3, #0] - 8003108: 4a1b ldr r2, [pc, #108] ; (8003178 ) - 800310a: 4293 cmp r3, r2 - 800310c: d013 beq.n 8003136 - 800310e: 687b ldr r3, [r7, #4] - 8003110: 681b ldr r3, [r3, #0] - 8003112: 4a1a ldr r2, [pc, #104] ; (800317c ) - 8003114: 4293 cmp r3, r2 - 8003116: d00e beq.n 8003136 - 8003118: 687b ldr r3, [r7, #4] - 800311a: 681b ldr r3, [r3, #0] - 800311c: 4a18 ldr r2, [pc, #96] ; (8003180 ) - 800311e: 4293 cmp r3, r2 - 8003120: d009 beq.n 8003136 - 8003122: 687b ldr r3, [r7, #4] - 8003124: 681b ldr r3, [r3, #0] - 8003126: 4a17 ldr r2, [pc, #92] ; (8003184 ) - 8003128: 4293 cmp r3, r2 - 800312a: d004 beq.n 8003136 - 800312c: 687b ldr r3, [r7, #4] - 800312e: 681b ldr r3, [r3, #0] - 8003130: 4a15 ldr r2, [pc, #84] ; (8003188 ) - 8003132: 4293 cmp r3, r2 - 8003134: d12a bne.n 800318c - 8003136: 687b ldr r3, [r7, #4] - 8003138: 681b ldr r3, [r3, #0] - 800313a: 681b ldr r3, [r3, #0] - 800313c: f003 0302 and.w r3, r3, #2 - 8003140: 2b00 cmp r3, #0 - 8003142: bf14 ite ne - 8003144: 2301 movne r3, #1 - 8003146: 2300 moveq r3, #0 - 8003148: b2db uxtb r3, r3 - 800314a: e023 b.n 8003194 - 800314c: 40020010 .word 0x40020010 - 8003150: 40020028 .word 0x40020028 - 8003154: 40020040 .word 0x40020040 - 8003158: 40020058 .word 0x40020058 - 800315c: 40020070 .word 0x40020070 - 8003160: 40020088 .word 0x40020088 - 8003164: 400200a0 .word 0x400200a0 - 8003168: 400200b8 .word 0x400200b8 - 800316c: 40020410 .word 0x40020410 - 8003170: 40020428 .word 0x40020428 - 8003174: 40020440 .word 0x40020440 - 8003178: 40020458 .word 0x40020458 - 800317c: 40020470 .word 0x40020470 - 8003180: 40020488 .word 0x40020488 - 8003184: 400204a0 .word 0x400204a0 - 8003188: 400204b8 .word 0x400204b8 - 800318c: 687b ldr r3, [r7, #4] - 800318e: 681b ldr r3, [r3, #0] - 8003190: 681b ldr r3, [r3, #0] - 8003192: 2300 movs r3, #0 - 8003194: 2b00 cmp r3, #0 - 8003196: d00d beq.n 80031b4 - { - /* Clear the direct mode error flag */ - regs_dma->IFCR = DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU); - 8003198: 687b ldr r3, [r7, #4] - 800319a: 6ddb ldr r3, [r3, #92] ; 0x5c - 800319c: f003 031f and.w r3, r3, #31 - 80031a0: 2204 movs r2, #4 - 80031a2: 409a lsls r2, r3 - 80031a4: 6a3b ldr r3, [r7, #32] - 80031a6: 609a str r2, [r3, #8] - - /* Update error code */ - hdma->ErrorCode |= HAL_DMA_ERROR_DME; - 80031a8: 687b ldr r3, [r7, #4] - 80031aa: 6d5b ldr r3, [r3, #84] ; 0x54 - 80031ac: f043 0204 orr.w r2, r3, #4 - 80031b0: 687b ldr r3, [r7, #4] - 80031b2: 655a str r2, [r3, #84] ; 0x54 - } - } - /* Half Transfer Complete Interrupt management ******************************/ - if ((tmpisr_dma & (DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U) - 80031b4: 687b ldr r3, [r7, #4] - 80031b6: 6ddb ldr r3, [r3, #92] ; 0x5c - 80031b8: f003 031f and.w r3, r3, #31 - 80031bc: 2210 movs r2, #16 - 80031be: 409a lsls r2, r3 - 80031c0: 69bb ldr r3, [r7, #24] - 80031c2: 4013 ands r3, r2 - 80031c4: 2b00 cmp r3, #0 - 80031c6: f000 80a6 beq.w 8003316 - { - if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_HT) != 0U) - 80031ca: 687b ldr r3, [r7, #4] - 80031cc: 681b ldr r3, [r3, #0] - 80031ce: 4a85 ldr r2, [pc, #532] ; (80033e4 ) - 80031d0: 4293 cmp r3, r2 - 80031d2: d04a beq.n 800326a - 80031d4: 687b ldr r3, [r7, #4] - 80031d6: 681b ldr r3, [r3, #0] - 80031d8: 4a83 ldr r2, [pc, #524] ; (80033e8 ) - 80031da: 4293 cmp r3, r2 - 80031dc: d045 beq.n 800326a - 80031de: 687b ldr r3, [r7, #4] - 80031e0: 681b ldr r3, [r3, #0] - 80031e2: 4a82 ldr r2, [pc, #520] ; (80033ec ) - 80031e4: 4293 cmp r3, r2 - 80031e6: d040 beq.n 800326a - 80031e8: 687b ldr r3, [r7, #4] - 80031ea: 681b ldr r3, [r3, #0] - 80031ec: 4a80 ldr r2, [pc, #512] ; (80033f0 ) - 80031ee: 4293 cmp r3, r2 - 80031f0: d03b beq.n 800326a - 80031f2: 687b ldr r3, [r7, #4] - 80031f4: 681b ldr r3, [r3, #0] - 80031f6: 4a7f ldr r2, [pc, #508] ; (80033f4 ) - 80031f8: 4293 cmp r3, r2 - 80031fa: d036 beq.n 800326a - 80031fc: 687b ldr r3, [r7, #4] - 80031fe: 681b ldr r3, [r3, #0] - 8003200: 4a7d ldr r2, [pc, #500] ; (80033f8 ) - 8003202: 4293 cmp r3, r2 - 8003204: d031 beq.n 800326a - 8003206: 687b ldr r3, [r7, #4] - 8003208: 681b ldr r3, [r3, #0] - 800320a: 4a7c ldr r2, [pc, #496] ; (80033fc ) - 800320c: 4293 cmp r3, r2 - 800320e: d02c beq.n 800326a - 8003210: 687b ldr r3, [r7, #4] - 8003212: 681b ldr r3, [r3, #0] - 8003214: 4a7a ldr r2, [pc, #488] ; (8003400 ) - 8003216: 4293 cmp r3, r2 - 8003218: d027 beq.n 800326a - 800321a: 687b ldr r3, [r7, #4] - 800321c: 681b ldr r3, [r3, #0] - 800321e: 4a79 ldr r2, [pc, #484] ; (8003404 ) - 8003220: 4293 cmp r3, r2 - 8003222: d022 beq.n 800326a - 8003224: 687b ldr r3, [r7, #4] - 8003226: 681b ldr r3, [r3, #0] - 8003228: 4a77 ldr r2, [pc, #476] ; (8003408 ) - 800322a: 4293 cmp r3, r2 - 800322c: d01d beq.n 800326a - 800322e: 687b ldr r3, [r7, #4] - 8003230: 681b ldr r3, [r3, #0] - 8003232: 4a76 ldr r2, [pc, #472] ; (800340c ) - 8003234: 4293 cmp r3, r2 - 8003236: d018 beq.n 800326a - 8003238: 687b ldr r3, [r7, #4] - 800323a: 681b ldr r3, [r3, #0] - 800323c: 4a74 ldr r2, [pc, #464] ; (8003410 ) - 800323e: 4293 cmp r3, r2 - 8003240: d013 beq.n 800326a - 8003242: 687b ldr r3, [r7, #4] - 8003244: 681b ldr r3, [r3, #0] - 8003246: 4a73 ldr r2, [pc, #460] ; (8003414 ) - 8003248: 4293 cmp r3, r2 - 800324a: d00e beq.n 800326a - 800324c: 687b ldr r3, [r7, #4] - 800324e: 681b ldr r3, [r3, #0] - 8003250: 4a71 ldr r2, [pc, #452] ; (8003418 ) - 8003252: 4293 cmp r3, r2 - 8003254: d009 beq.n 800326a - 8003256: 687b ldr r3, [r7, #4] - 8003258: 681b ldr r3, [r3, #0] - 800325a: 4a70 ldr r2, [pc, #448] ; (800341c ) - 800325c: 4293 cmp r3, r2 - 800325e: d004 beq.n 800326a - 8003260: 687b ldr r3, [r7, #4] - 8003262: 681b ldr r3, [r3, #0] - 8003264: 4a6e ldr r2, [pc, #440] ; (8003420 ) - 8003266: 4293 cmp r3, r2 - 8003268: d10a bne.n 8003280 - 800326a: 687b ldr r3, [r7, #4] - 800326c: 681b ldr r3, [r3, #0] - 800326e: 681b ldr r3, [r3, #0] - 8003270: f003 0308 and.w r3, r3, #8 - 8003274: 2b00 cmp r3, #0 - 8003276: bf14 ite ne - 8003278: 2301 movne r3, #1 - 800327a: 2300 moveq r3, #0 - 800327c: b2db uxtb r3, r3 - 800327e: e009 b.n 8003294 - 8003280: 687b ldr r3, [r7, #4] - 8003282: 681b ldr r3, [r3, #0] - 8003284: 681b ldr r3, [r3, #0] - 8003286: f003 0304 and.w r3, r3, #4 - 800328a: 2b00 cmp r3, #0 - 800328c: bf14 ite ne - 800328e: 2301 movne r3, #1 - 8003290: 2300 moveq r3, #0 - 8003292: b2db uxtb r3, r3 - 8003294: 2b00 cmp r3, #0 - 8003296: d03e beq.n 8003316 - { - /* Clear the half transfer complete flag */ - regs_dma->IFCR = DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU); - 8003298: 687b ldr r3, [r7, #4] - 800329a: 6ddb ldr r3, [r3, #92] ; 0x5c - 800329c: f003 031f and.w r3, r3, #31 - 80032a0: 2210 movs r2, #16 - 80032a2: 409a lsls r2, r3 - 80032a4: 6a3b ldr r3, [r7, #32] - 80032a6: 609a str r2, [r3, #8] - - /* Multi_Buffering mode enabled */ - if(((((DMA_Stream_TypeDef *)hdma->Instance)->CR) & (uint32_t)(DMA_SxCR_DBM)) != 0U) - 80032a8: 687b ldr r3, [r7, #4] - 80032aa: 681b ldr r3, [r3, #0] - 80032ac: 681b ldr r3, [r3, #0] - 80032ae: f403 2380 and.w r3, r3, #262144 ; 0x40000 - 80032b2: 2b00 cmp r3, #0 - 80032b4: d018 beq.n 80032e8 - { - /* Current memory buffer used is Memory 0 */ - if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CT) == 0U) - 80032b6: 687b ldr r3, [r7, #4] - 80032b8: 681b ldr r3, [r3, #0] - 80032ba: 681b ldr r3, [r3, #0] - 80032bc: f403 2300 and.w r3, r3, #524288 ; 0x80000 - 80032c0: 2b00 cmp r3, #0 - 80032c2: d108 bne.n 80032d6 - { - if(hdma->XferHalfCpltCallback != NULL) - 80032c4: 687b ldr r3, [r7, #4] - 80032c6: 6c1b ldr r3, [r3, #64] ; 0x40 - 80032c8: 2b00 cmp r3, #0 - 80032ca: d024 beq.n 8003316 - { - /* Half transfer callback */ - hdma->XferHalfCpltCallback(hdma); - 80032cc: 687b ldr r3, [r7, #4] - 80032ce: 6c1b ldr r3, [r3, #64] ; 0x40 - 80032d0: 6878 ldr r0, [r7, #4] - 80032d2: 4798 blx r3 - 80032d4: e01f b.n 8003316 - } - } - /* Current memory buffer used is Memory 1 */ - else - { - if(hdma->XferM1HalfCpltCallback != NULL) - 80032d6: 687b ldr r3, [r7, #4] - 80032d8: 6c9b ldr r3, [r3, #72] ; 0x48 - 80032da: 2b00 cmp r3, #0 - 80032dc: d01b beq.n 8003316 - { - /* Half transfer callback */ - hdma->XferM1HalfCpltCallback(hdma); - 80032de: 687b ldr r3, [r7, #4] - 80032e0: 6c9b ldr r3, [r3, #72] ; 0x48 - 80032e2: 6878 ldr r0, [r7, #4] - 80032e4: 4798 blx r3 - 80032e6: e016 b.n 8003316 - } - } - else - { - /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */ - if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) == 0U) - 80032e8: 687b ldr r3, [r7, #4] - 80032ea: 681b ldr r3, [r3, #0] - 80032ec: 681b ldr r3, [r3, #0] - 80032ee: f403 7380 and.w r3, r3, #256 ; 0x100 - 80032f2: 2b00 cmp r3, #0 - 80032f4: d107 bne.n 8003306 - { - /* Disable the half transfer interrupt */ - ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_HT); - 80032f6: 687b ldr r3, [r7, #4] - 80032f8: 681b ldr r3, [r3, #0] - 80032fa: 681a ldr r2, [r3, #0] - 80032fc: 687b ldr r3, [r7, #4] - 80032fe: 681b ldr r3, [r3, #0] - 8003300: f022 0208 bic.w r2, r2, #8 - 8003304: 601a str r2, [r3, #0] - } - - if(hdma->XferHalfCpltCallback != NULL) - 8003306: 687b ldr r3, [r7, #4] - 8003308: 6c1b ldr r3, [r3, #64] ; 0x40 - 800330a: 2b00 cmp r3, #0 - 800330c: d003 beq.n 8003316 - { - /* Half transfer callback */ - hdma->XferHalfCpltCallback(hdma); - 800330e: 687b ldr r3, [r7, #4] - 8003310: 6c1b ldr r3, [r3, #64] ; 0x40 - 8003312: 6878 ldr r0, [r7, #4] - 8003314: 4798 blx r3 - } - } - } - } - /* Transfer Complete Interrupt management ***********************************/ - if ((tmpisr_dma & (DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U) - 8003316: 687b ldr r3, [r7, #4] - 8003318: 6ddb ldr r3, [r3, #92] ; 0x5c - 800331a: f003 031f and.w r3, r3, #31 - 800331e: 2220 movs r2, #32 - 8003320: 409a lsls r2, r3 - 8003322: 69bb ldr r3, [r7, #24] - 8003324: 4013 ands r3, r2 - 8003326: 2b00 cmp r3, #0 - 8003328: f000 8110 beq.w 800354c - { - if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TC) != 0U) - 800332c: 687b ldr r3, [r7, #4] - 800332e: 681b ldr r3, [r3, #0] - 8003330: 4a2c ldr r2, [pc, #176] ; (80033e4 ) - 8003332: 4293 cmp r3, r2 - 8003334: d04a beq.n 80033cc - 8003336: 687b ldr r3, [r7, #4] - 8003338: 681b ldr r3, [r3, #0] - 800333a: 4a2b ldr r2, [pc, #172] ; (80033e8 ) - 800333c: 4293 cmp r3, r2 - 800333e: d045 beq.n 80033cc - 8003340: 687b ldr r3, [r7, #4] - 8003342: 681b ldr r3, [r3, #0] - 8003344: 4a29 ldr r2, [pc, #164] ; (80033ec ) - 8003346: 4293 cmp r3, r2 - 8003348: d040 beq.n 80033cc - 800334a: 687b ldr r3, [r7, #4] - 800334c: 681b ldr r3, [r3, #0] - 800334e: 4a28 ldr r2, [pc, #160] ; (80033f0 ) - 8003350: 4293 cmp r3, r2 - 8003352: d03b beq.n 80033cc - 8003354: 687b ldr r3, [r7, #4] - 8003356: 681b ldr r3, [r3, #0] - 8003358: 4a26 ldr r2, [pc, #152] ; (80033f4 ) - 800335a: 4293 cmp r3, r2 - 800335c: d036 beq.n 80033cc - 800335e: 687b ldr r3, [r7, #4] - 8003360: 681b ldr r3, [r3, #0] - 8003362: 4a25 ldr r2, [pc, #148] ; (80033f8 ) - 8003364: 4293 cmp r3, r2 - 8003366: d031 beq.n 80033cc - 8003368: 687b ldr r3, [r7, #4] - 800336a: 681b ldr r3, [r3, #0] - 800336c: 4a23 ldr r2, [pc, #140] ; (80033fc ) - 800336e: 4293 cmp r3, r2 - 8003370: d02c beq.n 80033cc - 8003372: 687b ldr r3, [r7, #4] - 8003374: 681b ldr r3, [r3, #0] - 8003376: 4a22 ldr r2, [pc, #136] ; (8003400 ) - 8003378: 4293 cmp r3, r2 - 800337a: d027 beq.n 80033cc - 800337c: 687b ldr r3, [r7, #4] - 800337e: 681b ldr r3, [r3, #0] - 8003380: 4a20 ldr r2, [pc, #128] ; (8003404 ) - 8003382: 4293 cmp r3, r2 - 8003384: d022 beq.n 80033cc - 8003386: 687b ldr r3, [r7, #4] - 8003388: 681b ldr r3, [r3, #0] - 800338a: 4a1f ldr r2, [pc, #124] ; (8003408 ) - 800338c: 4293 cmp r3, r2 - 800338e: d01d beq.n 80033cc - 8003390: 687b ldr r3, [r7, #4] - 8003392: 681b ldr r3, [r3, #0] - 8003394: 4a1d ldr r2, [pc, #116] ; (800340c ) - 8003396: 4293 cmp r3, r2 - 8003398: d018 beq.n 80033cc - 800339a: 687b ldr r3, [r7, #4] - 800339c: 681b ldr r3, [r3, #0] - 800339e: 4a1c ldr r2, [pc, #112] ; (8003410 ) - 80033a0: 4293 cmp r3, r2 - 80033a2: d013 beq.n 80033cc - 80033a4: 687b ldr r3, [r7, #4] - 80033a6: 681b ldr r3, [r3, #0] - 80033a8: 4a1a ldr r2, [pc, #104] ; (8003414 ) - 80033aa: 4293 cmp r3, r2 - 80033ac: d00e beq.n 80033cc - 80033ae: 687b ldr r3, [r7, #4] - 80033b0: 681b ldr r3, [r3, #0] - 80033b2: 4a19 ldr r2, [pc, #100] ; (8003418 ) - 80033b4: 4293 cmp r3, r2 - 80033b6: d009 beq.n 80033cc - 80033b8: 687b ldr r3, [r7, #4] - 80033ba: 681b ldr r3, [r3, #0] - 80033bc: 4a17 ldr r2, [pc, #92] ; (800341c ) - 80033be: 4293 cmp r3, r2 - 80033c0: d004 beq.n 80033cc - 80033c2: 687b ldr r3, [r7, #4] - 80033c4: 681b ldr r3, [r3, #0] - 80033c6: 4a16 ldr r2, [pc, #88] ; (8003420 ) - 80033c8: 4293 cmp r3, r2 - 80033ca: d12b bne.n 8003424 - 80033cc: 687b ldr r3, [r7, #4] - 80033ce: 681b ldr r3, [r3, #0] - 80033d0: 681b ldr r3, [r3, #0] - 80033d2: f003 0310 and.w r3, r3, #16 - 80033d6: 2b00 cmp r3, #0 - 80033d8: bf14 ite ne - 80033da: 2301 movne r3, #1 - 80033dc: 2300 moveq r3, #0 - 80033de: b2db uxtb r3, r3 - 80033e0: e02a b.n 8003438 - 80033e2: bf00 nop - 80033e4: 40020010 .word 0x40020010 - 80033e8: 40020028 .word 0x40020028 - 80033ec: 40020040 .word 0x40020040 - 80033f0: 40020058 .word 0x40020058 - 80033f4: 40020070 .word 0x40020070 - 80033f8: 40020088 .word 0x40020088 - 80033fc: 400200a0 .word 0x400200a0 - 8003400: 400200b8 .word 0x400200b8 - 8003404: 40020410 .word 0x40020410 - 8003408: 40020428 .word 0x40020428 - 800340c: 40020440 .word 0x40020440 - 8003410: 40020458 .word 0x40020458 - 8003414: 40020470 .word 0x40020470 - 8003418: 40020488 .word 0x40020488 - 800341c: 400204a0 .word 0x400204a0 - 8003420: 400204b8 .word 0x400204b8 - 8003424: 687b ldr r3, [r7, #4] - 8003426: 681b ldr r3, [r3, #0] - 8003428: 681b ldr r3, [r3, #0] - 800342a: f003 0302 and.w r3, r3, #2 - 800342e: 2b00 cmp r3, #0 - 8003430: bf14 ite ne - 8003432: 2301 movne r3, #1 - 8003434: 2300 moveq r3, #0 - 8003436: b2db uxtb r3, r3 - 8003438: 2b00 cmp r3, #0 - 800343a: f000 8087 beq.w 800354c - { - /* Clear the transfer complete flag */ - regs_dma->IFCR = DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU); - 800343e: 687b ldr r3, [r7, #4] - 8003440: 6ddb ldr r3, [r3, #92] ; 0x5c - 8003442: f003 031f and.w r3, r3, #31 - 8003446: 2220 movs r2, #32 - 8003448: 409a lsls r2, r3 - 800344a: 6a3b ldr r3, [r7, #32] - 800344c: 609a str r2, [r3, #8] - - if(HAL_DMA_STATE_ABORT == hdma->State) - 800344e: 687b ldr r3, [r7, #4] - 8003450: f893 3035 ldrb.w r3, [r3, #53] ; 0x35 - 8003454: b2db uxtb r3, r3 - 8003456: 2b04 cmp r3, #4 - 8003458: d139 bne.n 80034ce - { - /* Disable all the transfer interrupts */ - ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME); - 800345a: 687b ldr r3, [r7, #4] - 800345c: 681b ldr r3, [r3, #0] - 800345e: 681a ldr r2, [r3, #0] - 8003460: 687b ldr r3, [r7, #4] - 8003462: 681b ldr r3, [r3, #0] - 8003464: f022 0216 bic.w r2, r2, #22 - 8003468: 601a str r2, [r3, #0] - ((DMA_Stream_TypeDef *)hdma->Instance)->FCR &= ~(DMA_IT_FE); - 800346a: 687b ldr r3, [r7, #4] - 800346c: 681b ldr r3, [r3, #0] - 800346e: 695a ldr r2, [r3, #20] - 8003470: 687b ldr r3, [r7, #4] - 8003472: 681b ldr r3, [r3, #0] - 8003474: f022 0280 bic.w r2, r2, #128 ; 0x80 - 8003478: 615a str r2, [r3, #20] - - if((hdma->XferHalfCpltCallback != NULL) || (hdma->XferM1HalfCpltCallback != NULL)) - 800347a: 687b ldr r3, [r7, #4] - 800347c: 6c1b ldr r3, [r3, #64] ; 0x40 - 800347e: 2b00 cmp r3, #0 - 8003480: d103 bne.n 800348a - 8003482: 687b ldr r3, [r7, #4] - 8003484: 6c9b ldr r3, [r3, #72] ; 0x48 - 8003486: 2b00 cmp r3, #0 - 8003488: d007 beq.n 800349a - { - ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_HT); - 800348a: 687b ldr r3, [r7, #4] - 800348c: 681b ldr r3, [r3, #0] - 800348e: 681a ldr r2, [r3, #0] - 8003490: 687b ldr r3, [r7, #4] - 8003492: 681b ldr r3, [r3, #0] - 8003494: f022 0208 bic.w r2, r2, #8 - 8003498: 601a str r2, [r3, #0] - } - - /* Clear all interrupt flags at correct offset within the register */ - regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU); - 800349a: 687b ldr r3, [r7, #4] - 800349c: 6ddb ldr r3, [r3, #92] ; 0x5c - 800349e: f003 031f and.w r3, r3, #31 - 80034a2: 223f movs r2, #63 ; 0x3f - 80034a4: 409a lsls r2, r3 - 80034a6: 6a3b ldr r3, [r7, #32] - 80034a8: 609a str r2, [r3, #8] - - /* Change the DMA state */ - hdma->State = HAL_DMA_STATE_READY; - 80034aa: 687b ldr r3, [r7, #4] - 80034ac: 2201 movs r2, #1 - 80034ae: f883 2035 strb.w r2, [r3, #53] ; 0x35 - - /* Process Unlocked */ - __HAL_UNLOCK(hdma); - 80034b2: 687b ldr r3, [r7, #4] - 80034b4: 2200 movs r2, #0 - 80034b6: f883 2034 strb.w r2, [r3, #52] ; 0x34 - - if(hdma->XferAbortCallback != NULL) - 80034ba: 687b ldr r3, [r7, #4] - 80034bc: 6d1b ldr r3, [r3, #80] ; 0x50 - 80034be: 2b00 cmp r3, #0 - 80034c0: f000 834a beq.w 8003b58 - { - hdma->XferAbortCallback(hdma); - 80034c4: 687b ldr r3, [r7, #4] - 80034c6: 6d1b ldr r3, [r3, #80] ; 0x50 - 80034c8: 6878 ldr r0, [r7, #4] - 80034ca: 4798 blx r3 - } - return; - 80034cc: e344 b.n 8003b58 - } - - if(((((DMA_Stream_TypeDef *)hdma->Instance)->CR) & (uint32_t)(DMA_SxCR_DBM)) != 0U) - 80034ce: 687b ldr r3, [r7, #4] - 80034d0: 681b ldr r3, [r3, #0] - 80034d2: 681b ldr r3, [r3, #0] - 80034d4: f403 2380 and.w r3, r3, #262144 ; 0x40000 - 80034d8: 2b00 cmp r3, #0 - 80034da: d018 beq.n 800350e - { - /* Current memory buffer used is Memory 0 */ - if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CT) == 0U) - 80034dc: 687b ldr r3, [r7, #4] - 80034de: 681b ldr r3, [r3, #0] - 80034e0: 681b ldr r3, [r3, #0] - 80034e2: f403 2300 and.w r3, r3, #524288 ; 0x80000 - 80034e6: 2b00 cmp r3, #0 - 80034e8: d108 bne.n 80034fc - { - if(hdma->XferM1CpltCallback != NULL) - 80034ea: 687b ldr r3, [r7, #4] - 80034ec: 6c5b ldr r3, [r3, #68] ; 0x44 - 80034ee: 2b00 cmp r3, #0 - 80034f0: d02c beq.n 800354c - { - /* Transfer complete Callback for memory1 */ - hdma->XferM1CpltCallback(hdma); - 80034f2: 687b ldr r3, [r7, #4] - 80034f4: 6c5b ldr r3, [r3, #68] ; 0x44 - 80034f6: 6878 ldr r0, [r7, #4] - 80034f8: 4798 blx r3 - 80034fa: e027 b.n 800354c - } - } - /* Current memory buffer used is Memory 1 */ - else - { - if(hdma->XferCpltCallback != NULL) - 80034fc: 687b ldr r3, [r7, #4] - 80034fe: 6bdb ldr r3, [r3, #60] ; 0x3c - 8003500: 2b00 cmp r3, #0 - 8003502: d023 beq.n 800354c - { - /* Transfer complete Callback for memory0 */ - hdma->XferCpltCallback(hdma); - 8003504: 687b ldr r3, [r7, #4] - 8003506: 6bdb ldr r3, [r3, #60] ; 0x3c - 8003508: 6878 ldr r0, [r7, #4] - 800350a: 4798 blx r3 - 800350c: e01e b.n 800354c - } - } - /* Disable the transfer complete interrupt if the DMA mode is not CIRCULAR */ - else - { - if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) == 0U) - 800350e: 687b ldr r3, [r7, #4] - 8003510: 681b ldr r3, [r3, #0] - 8003512: 681b ldr r3, [r3, #0] - 8003514: f403 7380 and.w r3, r3, #256 ; 0x100 - 8003518: 2b00 cmp r3, #0 - 800351a: d10f bne.n 800353c - { - /* Disable the transfer complete interrupt */ - ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC); - 800351c: 687b ldr r3, [r7, #4] - 800351e: 681b ldr r3, [r3, #0] - 8003520: 681a ldr r2, [r3, #0] - 8003522: 687b ldr r3, [r7, #4] - 8003524: 681b ldr r3, [r3, #0] - 8003526: f022 0210 bic.w r2, r2, #16 - 800352a: 601a str r2, [r3, #0] - - /* Change the DMA state */ - hdma->State = HAL_DMA_STATE_READY; - 800352c: 687b ldr r3, [r7, #4] - 800352e: 2201 movs r2, #1 - 8003530: f883 2035 strb.w r2, [r3, #53] ; 0x35 - - /* Process Unlocked */ - __HAL_UNLOCK(hdma); - 8003534: 687b ldr r3, [r7, #4] - 8003536: 2200 movs r2, #0 - 8003538: f883 2034 strb.w r2, [r3, #52] ; 0x34 - } - - if(hdma->XferCpltCallback != NULL) - 800353c: 687b ldr r3, [r7, #4] - 800353e: 6bdb ldr r3, [r3, #60] ; 0x3c - 8003540: 2b00 cmp r3, #0 - 8003542: d003 beq.n 800354c - { - /* Transfer complete callback */ - hdma->XferCpltCallback(hdma); - 8003544: 687b ldr r3, [r7, #4] - 8003546: 6bdb ldr r3, [r3, #60] ; 0x3c - 8003548: 6878 ldr r0, [r7, #4] - 800354a: 4798 blx r3 - } - } - } - - /* manage error case */ - if(hdma->ErrorCode != HAL_DMA_ERROR_NONE) - 800354c: 687b ldr r3, [r7, #4] - 800354e: 6d5b ldr r3, [r3, #84] ; 0x54 - 8003550: 2b00 cmp r3, #0 - 8003552: f000 8306 beq.w 8003b62 - { - if((hdma->ErrorCode & HAL_DMA_ERROR_TE) != 0U) - 8003556: 687b ldr r3, [r7, #4] - 8003558: 6d5b ldr r3, [r3, #84] ; 0x54 - 800355a: f003 0301 and.w r3, r3, #1 - 800355e: 2b00 cmp r3, #0 - 8003560: f000 8088 beq.w 8003674 - { - hdma->State = HAL_DMA_STATE_ABORT; - 8003564: 687b ldr r3, [r7, #4] - 8003566: 2204 movs r2, #4 - 8003568: f883 2035 strb.w r2, [r3, #53] ; 0x35 - - /* Disable the stream */ - __HAL_DMA_DISABLE(hdma); - 800356c: 687b ldr r3, [r7, #4] - 800356e: 681b ldr r3, [r3, #0] - 8003570: 4a7a ldr r2, [pc, #488] ; (800375c ) - 8003572: 4293 cmp r3, r2 - 8003574: d04a beq.n 800360c - 8003576: 687b ldr r3, [r7, #4] - 8003578: 681b ldr r3, [r3, #0] - 800357a: 4a79 ldr r2, [pc, #484] ; (8003760 ) - 800357c: 4293 cmp r3, r2 - 800357e: d045 beq.n 800360c - 8003580: 687b ldr r3, [r7, #4] - 8003582: 681b ldr r3, [r3, #0] - 8003584: 4a77 ldr r2, [pc, #476] ; (8003764 ) - 8003586: 4293 cmp r3, r2 - 8003588: d040 beq.n 800360c - 800358a: 687b ldr r3, [r7, #4] - 800358c: 681b ldr r3, [r3, #0] - 800358e: 4a76 ldr r2, [pc, #472] ; (8003768 ) - 8003590: 4293 cmp r3, r2 - 8003592: d03b beq.n 800360c - 8003594: 687b ldr r3, [r7, #4] - 8003596: 681b ldr r3, [r3, #0] - 8003598: 4a74 ldr r2, [pc, #464] ; (800376c ) - 800359a: 4293 cmp r3, r2 - 800359c: d036 beq.n 800360c - 800359e: 687b ldr r3, [r7, #4] - 80035a0: 681b ldr r3, [r3, #0] - 80035a2: 4a73 ldr r2, [pc, #460] ; (8003770 ) - 80035a4: 4293 cmp r3, r2 - 80035a6: d031 beq.n 800360c - 80035a8: 687b ldr r3, [r7, #4] - 80035aa: 681b ldr r3, [r3, #0] - 80035ac: 4a71 ldr r2, [pc, #452] ; (8003774 ) - 80035ae: 4293 cmp r3, r2 - 80035b0: d02c beq.n 800360c - 80035b2: 687b ldr r3, [r7, #4] - 80035b4: 681b ldr r3, [r3, #0] - 80035b6: 4a70 ldr r2, [pc, #448] ; (8003778 ) - 80035b8: 4293 cmp r3, r2 - 80035ba: d027 beq.n 800360c - 80035bc: 687b ldr r3, [r7, #4] - 80035be: 681b ldr r3, [r3, #0] - 80035c0: 4a6e ldr r2, [pc, #440] ; (800377c ) - 80035c2: 4293 cmp r3, r2 - 80035c4: d022 beq.n 800360c - 80035c6: 687b ldr r3, [r7, #4] - 80035c8: 681b ldr r3, [r3, #0] - 80035ca: 4a6d ldr r2, [pc, #436] ; (8003780 ) - 80035cc: 4293 cmp r3, r2 - 80035ce: d01d beq.n 800360c - 80035d0: 687b ldr r3, [r7, #4] - 80035d2: 681b ldr r3, [r3, #0] - 80035d4: 4a6b ldr r2, [pc, #428] ; (8003784 ) - 80035d6: 4293 cmp r3, r2 - 80035d8: d018 beq.n 800360c - 80035da: 687b ldr r3, [r7, #4] - 80035dc: 681b ldr r3, [r3, #0] - 80035de: 4a6a ldr r2, [pc, #424] ; (8003788 ) - 80035e0: 4293 cmp r3, r2 - 80035e2: d013 beq.n 800360c - 80035e4: 687b ldr r3, [r7, #4] - 80035e6: 681b ldr r3, [r3, #0] - 80035e8: 4a68 ldr r2, [pc, #416] ; (800378c ) - 80035ea: 4293 cmp r3, r2 - 80035ec: d00e beq.n 800360c - 80035ee: 687b ldr r3, [r7, #4] - 80035f0: 681b ldr r3, [r3, #0] - 80035f2: 4a67 ldr r2, [pc, #412] ; (8003790 ) - 80035f4: 4293 cmp r3, r2 - 80035f6: d009 beq.n 800360c - 80035f8: 687b ldr r3, [r7, #4] - 80035fa: 681b ldr r3, [r3, #0] - 80035fc: 4a65 ldr r2, [pc, #404] ; (8003794 ) - 80035fe: 4293 cmp r3, r2 - 8003600: d004 beq.n 800360c - 8003602: 687b ldr r3, [r7, #4] - 8003604: 681b ldr r3, [r3, #0] - 8003606: 4a64 ldr r2, [pc, #400] ; (8003798 ) - 8003608: 4293 cmp r3, r2 - 800360a: d108 bne.n 800361e - 800360c: 687b ldr r3, [r7, #4] - 800360e: 681b ldr r3, [r3, #0] - 8003610: 681a ldr r2, [r3, #0] - 8003612: 687b ldr r3, [r7, #4] - 8003614: 681b ldr r3, [r3, #0] - 8003616: f022 0201 bic.w r2, r2, #1 - 800361a: 601a str r2, [r3, #0] - 800361c: e007 b.n 800362e - 800361e: 687b ldr r3, [r7, #4] - 8003620: 681b ldr r3, [r3, #0] - 8003622: 681a ldr r2, [r3, #0] - 8003624: 687b ldr r3, [r7, #4] - 8003626: 681b ldr r3, [r3, #0] - 8003628: f022 0201 bic.w r2, r2, #1 - 800362c: 601a str r2, [r3, #0] - - do - { - if (++count > timeout) - 800362e: 68fb ldr r3, [r7, #12] - 8003630: 3301 adds r3, #1 - 8003632: 60fb str r3, [r7, #12] - 8003634: 6a7a ldr r2, [r7, #36] ; 0x24 - 8003636: 429a cmp r2, r3 - 8003638: d307 bcc.n 800364a - { - break; - } - } - while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U); - 800363a: 687b ldr r3, [r7, #4] - 800363c: 681b ldr r3, [r3, #0] - 800363e: 681b ldr r3, [r3, #0] - 8003640: f003 0301 and.w r3, r3, #1 - 8003644: 2b00 cmp r3, #0 - 8003646: d1f2 bne.n 800362e - 8003648: e000 b.n 800364c - break; - 800364a: bf00 nop - - if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U) - 800364c: 687b ldr r3, [r7, #4] - 800364e: 681b ldr r3, [r3, #0] - 8003650: 681b ldr r3, [r3, #0] - 8003652: f003 0301 and.w r3, r3, #1 - 8003656: 2b00 cmp r3, #0 - 8003658: d004 beq.n 8003664 - { - /* Change the DMA state to error if DMA disable fails */ - hdma->State = HAL_DMA_STATE_ERROR; - 800365a: 687b ldr r3, [r7, #4] - 800365c: 2203 movs r2, #3 - 800365e: f883 2035 strb.w r2, [r3, #53] ; 0x35 - 8003662: e003 b.n 800366c - } - else - { - /* Change the DMA state to Ready if DMA disable success */ - hdma->State = HAL_DMA_STATE_READY; - 8003664: 687b ldr r3, [r7, #4] - 8003666: 2201 movs r2, #1 - 8003668: f883 2035 strb.w r2, [r3, #53] ; 0x35 - } - - /* Process Unlocked */ - __HAL_UNLOCK(hdma); - 800366c: 687b ldr r3, [r7, #4] - 800366e: 2200 movs r2, #0 - 8003670: f883 2034 strb.w r2, [r3, #52] ; 0x34 - } - - if(hdma->XferErrorCallback != NULL) - 8003674: 687b ldr r3, [r7, #4] - 8003676: 6cdb ldr r3, [r3, #76] ; 0x4c - 8003678: 2b00 cmp r3, #0 - 800367a: f000 8272 beq.w 8003b62 - { - /* Transfer error callback */ - hdma->XferErrorCallback(hdma); - 800367e: 687b ldr r3, [r7, #4] - 8003680: 6cdb ldr r3, [r3, #76] ; 0x4c - 8003682: 6878 ldr r0, [r7, #4] - 8003684: 4798 blx r3 - 8003686: e26c b.n 8003b62 - } - } - } - else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */ - 8003688: 687b ldr r3, [r7, #4] - 800368a: 681b ldr r3, [r3, #0] - 800368c: 4a43 ldr r2, [pc, #268] ; (800379c ) - 800368e: 4293 cmp r3, r2 - 8003690: d022 beq.n 80036d8 - 8003692: 687b ldr r3, [r7, #4] - 8003694: 681b ldr r3, [r3, #0] - 8003696: 4a42 ldr r2, [pc, #264] ; (80037a0 ) - 8003698: 4293 cmp r3, r2 - 800369a: d01d beq.n 80036d8 - 800369c: 687b ldr r3, [r7, #4] - 800369e: 681b ldr r3, [r3, #0] - 80036a0: 4a40 ldr r2, [pc, #256] ; (80037a4 ) - 80036a2: 4293 cmp r3, r2 - 80036a4: d018 beq.n 80036d8 - 80036a6: 687b ldr r3, [r7, #4] - 80036a8: 681b ldr r3, [r3, #0] - 80036aa: 4a3f ldr r2, [pc, #252] ; (80037a8 ) - 80036ac: 4293 cmp r3, r2 - 80036ae: d013 beq.n 80036d8 - 80036b0: 687b ldr r3, [r7, #4] - 80036b2: 681b ldr r3, [r3, #0] - 80036b4: 4a3d ldr r2, [pc, #244] ; (80037ac ) - 80036b6: 4293 cmp r3, r2 - 80036b8: d00e beq.n 80036d8 - 80036ba: 687b ldr r3, [r7, #4] - 80036bc: 681b ldr r3, [r3, #0] - 80036be: 4a3c ldr r2, [pc, #240] ; (80037b0 ) - 80036c0: 4293 cmp r3, r2 - 80036c2: d009 beq.n 80036d8 - 80036c4: 687b ldr r3, [r7, #4] - 80036c6: 681b ldr r3, [r3, #0] - 80036c8: 4a3a ldr r2, [pc, #232] ; (80037b4 ) - 80036ca: 4293 cmp r3, r2 - 80036cc: d004 beq.n 80036d8 - 80036ce: 687b ldr r3, [r7, #4] - 80036d0: 681b ldr r3, [r3, #0] - 80036d2: 4a39 ldr r2, [pc, #228] ; (80037b8 ) - 80036d4: 4293 cmp r3, r2 - 80036d6: d101 bne.n 80036dc - 80036d8: 2301 movs r3, #1 - 80036da: e000 b.n 80036de - 80036dc: 2300 movs r3, #0 - 80036de: 2b00 cmp r3, #0 - 80036e0: f000 823f beq.w 8003b62 - { - ccr_reg = (((BDMA_Channel_TypeDef *)hdma->Instance)->CCR); - 80036e4: 687b ldr r3, [r7, #4] - 80036e6: 681b ldr r3, [r3, #0] - 80036e8: 681b ldr r3, [r3, #0] - 80036ea: 613b str r3, [r7, #16] - - /* Half Transfer Complete Interrupt management ******************************/ - if (((tmpisr_bdma & (BDMA_FLAG_HT0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_HTIE) != 0U)) - 80036ec: 687b ldr r3, [r7, #4] - 80036ee: 6ddb ldr r3, [r3, #92] ; 0x5c - 80036f0: f003 031f and.w r3, r3, #31 - 80036f4: 2204 movs r2, #4 - 80036f6: 409a lsls r2, r3 - 80036f8: 697b ldr r3, [r7, #20] - 80036fa: 4013 ands r3, r2 - 80036fc: 2b00 cmp r3, #0 - 80036fe: f000 80cd beq.w 800389c - 8003702: 693b ldr r3, [r7, #16] - 8003704: f003 0304 and.w r3, r3, #4 - 8003708: 2b00 cmp r3, #0 - 800370a: f000 80c7 beq.w 800389c - { - /* Clear the half transfer complete flag */ - regs_bdma->IFCR = (BDMA_ISR_HTIF0 << (hdma->StreamIndex & 0x1FU)); - 800370e: 687b ldr r3, [r7, #4] - 8003710: 6ddb ldr r3, [r3, #92] ; 0x5c - 8003712: f003 031f and.w r3, r3, #31 - 8003716: 2204 movs r2, #4 - 8003718: 409a lsls r2, r3 - 800371a: 69fb ldr r3, [r7, #28] - 800371c: 605a str r2, [r3, #4] - - /* Disable the transfer complete interrupt if the DMA mode is Double Buffering */ - if((ccr_reg & BDMA_CCR_DBM) != 0U) - 800371e: 693b ldr r3, [r7, #16] - 8003720: f403 4300 and.w r3, r3, #32768 ; 0x8000 - 8003724: 2b00 cmp r3, #0 - 8003726: d049 beq.n 80037bc - { - /* Current memory buffer used is Memory 0 */ - if((ccr_reg & BDMA_CCR_CT) == 0U) - 8003728: 693b ldr r3, [r7, #16] - 800372a: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 800372e: 2b00 cmp r3, #0 - 8003730: d109 bne.n 8003746 - { - if(hdma->XferM1HalfCpltCallback != NULL) - 8003732: 687b ldr r3, [r7, #4] - 8003734: 6c9b ldr r3, [r3, #72] ; 0x48 - 8003736: 2b00 cmp r3, #0 - 8003738: f000 8210 beq.w 8003b5c - { - /* Half transfer Callback for Memory 1 */ - hdma->XferM1HalfCpltCallback(hdma); - 800373c: 687b ldr r3, [r7, #4] - 800373e: 6c9b ldr r3, [r3, #72] ; 0x48 - 8003740: 6878 ldr r0, [r7, #4] - 8003742: 4798 blx r3 - if((ccr_reg & BDMA_CCR_DBM) != 0U) - 8003744: e20a b.n 8003b5c - } - } - /* Current memory buffer used is Memory 1 */ - else - { - if(hdma->XferHalfCpltCallback != NULL) - 8003746: 687b ldr r3, [r7, #4] - 8003748: 6c1b ldr r3, [r3, #64] ; 0x40 - 800374a: 2b00 cmp r3, #0 - 800374c: f000 8206 beq.w 8003b5c - { - /* Half transfer Callback for Memory 0 */ - hdma->XferHalfCpltCallback(hdma); - 8003750: 687b ldr r3, [r7, #4] - 8003752: 6c1b ldr r3, [r3, #64] ; 0x40 - 8003754: 6878 ldr r0, [r7, #4] - 8003756: 4798 blx r3 - if((ccr_reg & BDMA_CCR_DBM) != 0U) - 8003758: e200 b.n 8003b5c - 800375a: bf00 nop - 800375c: 40020010 .word 0x40020010 - 8003760: 40020028 .word 0x40020028 - 8003764: 40020040 .word 0x40020040 - 8003768: 40020058 .word 0x40020058 - 800376c: 40020070 .word 0x40020070 - 8003770: 40020088 .word 0x40020088 - 8003774: 400200a0 .word 0x400200a0 - 8003778: 400200b8 .word 0x400200b8 - 800377c: 40020410 .word 0x40020410 - 8003780: 40020428 .word 0x40020428 - 8003784: 40020440 .word 0x40020440 - 8003788: 40020458 .word 0x40020458 - 800378c: 40020470 .word 0x40020470 - 8003790: 40020488 .word 0x40020488 - 8003794: 400204a0 .word 0x400204a0 - 8003798: 400204b8 .word 0x400204b8 - 800379c: 58025408 .word 0x58025408 - 80037a0: 5802541c .word 0x5802541c - 80037a4: 58025430 .word 0x58025430 - 80037a8: 58025444 .word 0x58025444 - 80037ac: 58025458 .word 0x58025458 - 80037b0: 5802546c .word 0x5802546c - 80037b4: 58025480 .word 0x58025480 - 80037b8: 58025494 .word 0x58025494 - } - } - } - else - { - if((ccr_reg & BDMA_CCR_CIRC) == 0U) - 80037bc: 693b ldr r3, [r7, #16] - 80037be: f003 0320 and.w r3, r3, #32 - 80037c2: 2b00 cmp r3, #0 - 80037c4: d160 bne.n 8003888 - { - /* Disable the half transfer interrupt */ - __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT); - 80037c6: 687b ldr r3, [r7, #4] - 80037c8: 681b ldr r3, [r3, #0] - 80037ca: 4a7f ldr r2, [pc, #508] ; (80039c8 ) - 80037cc: 4293 cmp r3, r2 - 80037ce: d04a beq.n 8003866 - 80037d0: 687b ldr r3, [r7, #4] - 80037d2: 681b ldr r3, [r3, #0] - 80037d4: 4a7d ldr r2, [pc, #500] ; (80039cc ) - 80037d6: 4293 cmp r3, r2 - 80037d8: d045 beq.n 8003866 - 80037da: 687b ldr r3, [r7, #4] - 80037dc: 681b ldr r3, [r3, #0] - 80037de: 4a7c ldr r2, [pc, #496] ; (80039d0 ) - 80037e0: 4293 cmp r3, r2 - 80037e2: d040 beq.n 8003866 - 80037e4: 687b ldr r3, [r7, #4] - 80037e6: 681b ldr r3, [r3, #0] - 80037e8: 4a7a ldr r2, [pc, #488] ; (80039d4 ) - 80037ea: 4293 cmp r3, r2 - 80037ec: d03b beq.n 8003866 - 80037ee: 687b ldr r3, [r7, #4] - 80037f0: 681b ldr r3, [r3, #0] - 80037f2: 4a79 ldr r2, [pc, #484] ; (80039d8 ) - 80037f4: 4293 cmp r3, r2 - 80037f6: d036 beq.n 8003866 - 80037f8: 687b ldr r3, [r7, #4] - 80037fa: 681b ldr r3, [r3, #0] - 80037fc: 4a77 ldr r2, [pc, #476] ; (80039dc ) - 80037fe: 4293 cmp r3, r2 - 8003800: d031 beq.n 8003866 - 8003802: 687b ldr r3, [r7, #4] - 8003804: 681b ldr r3, [r3, #0] - 8003806: 4a76 ldr r2, [pc, #472] ; (80039e0 ) - 8003808: 4293 cmp r3, r2 - 800380a: d02c beq.n 8003866 - 800380c: 687b ldr r3, [r7, #4] - 800380e: 681b ldr r3, [r3, #0] - 8003810: 4a74 ldr r2, [pc, #464] ; (80039e4 ) - 8003812: 4293 cmp r3, r2 - 8003814: d027 beq.n 8003866 - 8003816: 687b ldr r3, [r7, #4] - 8003818: 681b ldr r3, [r3, #0] - 800381a: 4a73 ldr r2, [pc, #460] ; (80039e8 ) - 800381c: 4293 cmp r3, r2 - 800381e: d022 beq.n 8003866 - 8003820: 687b ldr r3, [r7, #4] - 8003822: 681b ldr r3, [r3, #0] - 8003824: 4a71 ldr r2, [pc, #452] ; (80039ec ) - 8003826: 4293 cmp r3, r2 - 8003828: d01d beq.n 8003866 - 800382a: 687b ldr r3, [r7, #4] - 800382c: 681b ldr r3, [r3, #0] - 800382e: 4a70 ldr r2, [pc, #448] ; (80039f0 ) - 8003830: 4293 cmp r3, r2 - 8003832: d018 beq.n 8003866 - 8003834: 687b ldr r3, [r7, #4] - 8003836: 681b ldr r3, [r3, #0] - 8003838: 4a6e ldr r2, [pc, #440] ; (80039f4 ) - 800383a: 4293 cmp r3, r2 - 800383c: d013 beq.n 8003866 - 800383e: 687b ldr r3, [r7, #4] - 8003840: 681b ldr r3, [r3, #0] - 8003842: 4a6d ldr r2, [pc, #436] ; (80039f8 ) - 8003844: 4293 cmp r3, r2 - 8003846: d00e beq.n 8003866 - 8003848: 687b ldr r3, [r7, #4] - 800384a: 681b ldr r3, [r3, #0] - 800384c: 4a6b ldr r2, [pc, #428] ; (80039fc ) - 800384e: 4293 cmp r3, r2 - 8003850: d009 beq.n 8003866 - 8003852: 687b ldr r3, [r7, #4] - 8003854: 681b ldr r3, [r3, #0] - 8003856: 4a6a ldr r2, [pc, #424] ; (8003a00 ) - 8003858: 4293 cmp r3, r2 - 800385a: d004 beq.n 8003866 - 800385c: 687b ldr r3, [r7, #4] - 800385e: 681b ldr r3, [r3, #0] - 8003860: 4a68 ldr r2, [pc, #416] ; (8003a04 ) - 8003862: 4293 cmp r3, r2 - 8003864: d108 bne.n 8003878 - 8003866: 687b ldr r3, [r7, #4] - 8003868: 681b ldr r3, [r3, #0] - 800386a: 681a ldr r2, [r3, #0] - 800386c: 687b ldr r3, [r7, #4] - 800386e: 681b ldr r3, [r3, #0] - 8003870: f022 0208 bic.w r2, r2, #8 - 8003874: 601a str r2, [r3, #0] - 8003876: e007 b.n 8003888 - 8003878: 687b ldr r3, [r7, #4] - 800387a: 681b ldr r3, [r3, #0] - 800387c: 681a ldr r2, [r3, #0] - 800387e: 687b ldr r3, [r7, #4] - 8003880: 681b ldr r3, [r3, #0] - 8003882: f022 0204 bic.w r2, r2, #4 - 8003886: 601a str r2, [r3, #0] - } - - /* DMA peripheral state is not updated in Half Transfer */ - /* but in Transfer Complete case */ - - if(hdma->XferHalfCpltCallback != NULL) - 8003888: 687b ldr r3, [r7, #4] - 800388a: 6c1b ldr r3, [r3, #64] ; 0x40 - 800388c: 2b00 cmp r3, #0 - 800388e: f000 8165 beq.w 8003b5c - { - /* Half transfer callback */ - hdma->XferHalfCpltCallback(hdma); - 8003892: 687b ldr r3, [r7, #4] - 8003894: 6c1b ldr r3, [r3, #64] ; 0x40 - 8003896: 6878 ldr r0, [r7, #4] - 8003898: 4798 blx r3 - if((ccr_reg & BDMA_CCR_DBM) != 0U) - 800389a: e15f b.n 8003b5c - } - } - } - - /* Transfer Complete Interrupt management ***********************************/ - else if (((tmpisr_bdma & (BDMA_FLAG_TC0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_TCIE) != 0U)) - 800389c: 687b ldr r3, [r7, #4] - 800389e: 6ddb ldr r3, [r3, #92] ; 0x5c - 80038a0: f003 031f and.w r3, r3, #31 - 80038a4: 2202 movs r2, #2 - 80038a6: 409a lsls r2, r3 - 80038a8: 697b ldr r3, [r7, #20] - 80038aa: 4013 ands r3, r2 - 80038ac: 2b00 cmp r3, #0 - 80038ae: f000 80c5 beq.w 8003a3c - 80038b2: 693b ldr r3, [r7, #16] - 80038b4: f003 0302 and.w r3, r3, #2 - 80038b8: 2b00 cmp r3, #0 - 80038ba: f000 80bf beq.w 8003a3c - { - /* Clear the transfer complete flag */ - regs_bdma->IFCR = (BDMA_ISR_TCIF0) << (hdma->StreamIndex & 0x1FU); - 80038be: 687b ldr r3, [r7, #4] - 80038c0: 6ddb ldr r3, [r3, #92] ; 0x5c - 80038c2: f003 031f and.w r3, r3, #31 - 80038c6: 2202 movs r2, #2 - 80038c8: 409a lsls r2, r3 - 80038ca: 69fb ldr r3, [r7, #28] - 80038cc: 605a str r2, [r3, #4] - - /* Disable the transfer complete interrupt if the DMA mode is Double Buffering */ - if((ccr_reg & BDMA_CCR_DBM) != 0U) - 80038ce: 693b ldr r3, [r7, #16] - 80038d0: f403 4300 and.w r3, r3, #32768 ; 0x8000 - 80038d4: 2b00 cmp r3, #0 - 80038d6: d018 beq.n 800390a - { - /* Current memory buffer used is Memory 0 */ - if((ccr_reg & BDMA_CCR_CT) == 0U) - 80038d8: 693b ldr r3, [r7, #16] - 80038da: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 80038de: 2b00 cmp r3, #0 - 80038e0: d109 bne.n 80038f6 - { - if(hdma->XferM1CpltCallback != NULL) - 80038e2: 687b ldr r3, [r7, #4] - 80038e4: 6c5b ldr r3, [r3, #68] ; 0x44 - 80038e6: 2b00 cmp r3, #0 - 80038e8: f000 813a beq.w 8003b60 - { - /* Transfer complete Callback for Memory 1 */ - hdma->XferM1CpltCallback(hdma); - 80038ec: 687b ldr r3, [r7, #4] - 80038ee: 6c5b ldr r3, [r3, #68] ; 0x44 - 80038f0: 6878 ldr r0, [r7, #4] - 80038f2: 4798 blx r3 - if((ccr_reg & BDMA_CCR_DBM) != 0U) - 80038f4: e134 b.n 8003b60 - } - } - /* Current memory buffer used is Memory 1 */ - else - { - if(hdma->XferCpltCallback != NULL) - 80038f6: 687b ldr r3, [r7, #4] - 80038f8: 6bdb ldr r3, [r3, #60] ; 0x3c - 80038fa: 2b00 cmp r3, #0 - 80038fc: f000 8130 beq.w 8003b60 - { - /* Transfer complete Callback for Memory 0 */ - hdma->XferCpltCallback(hdma); - 8003900: 687b ldr r3, [r7, #4] - 8003902: 6bdb ldr r3, [r3, #60] ; 0x3c - 8003904: 6878 ldr r0, [r7, #4] - 8003906: 4798 blx r3 - if((ccr_reg & BDMA_CCR_DBM) != 0U) - 8003908: e12a b.n 8003b60 - } - } - } - else - { - if((ccr_reg & BDMA_CCR_CIRC) == 0U) - 800390a: 693b ldr r3, [r7, #16] - 800390c: f003 0320 and.w r3, r3, #32 - 8003910: 2b00 cmp r3, #0 - 8003912: f040 8089 bne.w 8003a28 - { - /* Disable the transfer complete and error interrupt, if the DMA mode is not CIRCULAR */ - __HAL_DMA_DISABLE_IT(hdma, DMA_IT_TE | DMA_IT_TC); - 8003916: 687b ldr r3, [r7, #4] - 8003918: 681b ldr r3, [r3, #0] - 800391a: 4a2b ldr r2, [pc, #172] ; (80039c8 ) - 800391c: 4293 cmp r3, r2 - 800391e: d04a beq.n 80039b6 - 8003920: 687b ldr r3, [r7, #4] - 8003922: 681b ldr r3, [r3, #0] - 8003924: 4a29 ldr r2, [pc, #164] ; (80039cc ) - 8003926: 4293 cmp r3, r2 - 8003928: d045 beq.n 80039b6 - 800392a: 687b ldr r3, [r7, #4] - 800392c: 681b ldr r3, [r3, #0] - 800392e: 4a28 ldr r2, [pc, #160] ; (80039d0 ) - 8003930: 4293 cmp r3, r2 - 8003932: d040 beq.n 80039b6 - 8003934: 687b ldr r3, [r7, #4] - 8003936: 681b ldr r3, [r3, #0] - 8003938: 4a26 ldr r2, [pc, #152] ; (80039d4 ) - 800393a: 4293 cmp r3, r2 - 800393c: d03b beq.n 80039b6 - 800393e: 687b ldr r3, [r7, #4] - 8003940: 681b ldr r3, [r3, #0] - 8003942: 4a25 ldr r2, [pc, #148] ; (80039d8 ) - 8003944: 4293 cmp r3, r2 - 8003946: d036 beq.n 80039b6 - 8003948: 687b ldr r3, [r7, #4] - 800394a: 681b ldr r3, [r3, #0] - 800394c: 4a23 ldr r2, [pc, #140] ; (80039dc ) - 800394e: 4293 cmp r3, r2 - 8003950: d031 beq.n 80039b6 - 8003952: 687b ldr r3, [r7, #4] - 8003954: 681b ldr r3, [r3, #0] - 8003956: 4a22 ldr r2, [pc, #136] ; (80039e0 ) - 8003958: 4293 cmp r3, r2 - 800395a: d02c beq.n 80039b6 - 800395c: 687b ldr r3, [r7, #4] - 800395e: 681b ldr r3, [r3, #0] - 8003960: 4a20 ldr r2, [pc, #128] ; (80039e4 ) - 8003962: 4293 cmp r3, r2 - 8003964: d027 beq.n 80039b6 - 8003966: 687b ldr r3, [r7, #4] - 8003968: 681b ldr r3, [r3, #0] - 800396a: 4a1f ldr r2, [pc, #124] ; (80039e8 ) - 800396c: 4293 cmp r3, r2 - 800396e: d022 beq.n 80039b6 - 8003970: 687b ldr r3, [r7, #4] - 8003972: 681b ldr r3, [r3, #0] - 8003974: 4a1d ldr r2, [pc, #116] ; (80039ec ) - 8003976: 4293 cmp r3, r2 - 8003978: d01d beq.n 80039b6 - 800397a: 687b ldr r3, [r7, #4] - 800397c: 681b ldr r3, [r3, #0] - 800397e: 4a1c ldr r2, [pc, #112] ; (80039f0 ) - 8003980: 4293 cmp r3, r2 - 8003982: d018 beq.n 80039b6 - 8003984: 687b ldr r3, [r7, #4] - 8003986: 681b ldr r3, [r3, #0] - 8003988: 4a1a ldr r2, [pc, #104] ; (80039f4 ) - 800398a: 4293 cmp r3, r2 - 800398c: d013 beq.n 80039b6 - 800398e: 687b ldr r3, [r7, #4] - 8003990: 681b ldr r3, [r3, #0] - 8003992: 4a19 ldr r2, [pc, #100] ; (80039f8 ) - 8003994: 4293 cmp r3, r2 - 8003996: d00e beq.n 80039b6 - 8003998: 687b ldr r3, [r7, #4] - 800399a: 681b ldr r3, [r3, #0] - 800399c: 4a17 ldr r2, [pc, #92] ; (80039fc ) - 800399e: 4293 cmp r3, r2 - 80039a0: d009 beq.n 80039b6 - 80039a2: 687b ldr r3, [r7, #4] - 80039a4: 681b ldr r3, [r3, #0] - 80039a6: 4a16 ldr r2, [pc, #88] ; (8003a00 ) - 80039a8: 4293 cmp r3, r2 - 80039aa: d004 beq.n 80039b6 - 80039ac: 687b ldr r3, [r7, #4] - 80039ae: 681b ldr r3, [r3, #0] - 80039b0: 4a14 ldr r2, [pc, #80] ; (8003a04 ) - 80039b2: 4293 cmp r3, r2 - 80039b4: d128 bne.n 8003a08 - 80039b6: 687b ldr r3, [r7, #4] - 80039b8: 681b ldr r3, [r3, #0] - 80039ba: 681a ldr r2, [r3, #0] - 80039bc: 687b ldr r3, [r7, #4] - 80039be: 681b ldr r3, [r3, #0] - 80039c0: f022 0214 bic.w r2, r2, #20 - 80039c4: 601a str r2, [r3, #0] - 80039c6: e027 b.n 8003a18 - 80039c8: 40020010 .word 0x40020010 - 80039cc: 40020028 .word 0x40020028 - 80039d0: 40020040 .word 0x40020040 - 80039d4: 40020058 .word 0x40020058 - 80039d8: 40020070 .word 0x40020070 - 80039dc: 40020088 .word 0x40020088 - 80039e0: 400200a0 .word 0x400200a0 - 80039e4: 400200b8 .word 0x400200b8 - 80039e8: 40020410 .word 0x40020410 - 80039ec: 40020428 .word 0x40020428 - 80039f0: 40020440 .word 0x40020440 - 80039f4: 40020458 .word 0x40020458 - 80039f8: 40020470 .word 0x40020470 - 80039fc: 40020488 .word 0x40020488 - 8003a00: 400204a0 .word 0x400204a0 - 8003a04: 400204b8 .word 0x400204b8 - 8003a08: 687b ldr r3, [r7, #4] - 8003a0a: 681b ldr r3, [r3, #0] - 8003a0c: 681a ldr r2, [r3, #0] - 8003a0e: 687b ldr r3, [r7, #4] - 8003a10: 681b ldr r3, [r3, #0] - 8003a12: f022 020a bic.w r2, r2, #10 - 8003a16: 601a str r2, [r3, #0] - - /* Change the DMA state */ - hdma->State = HAL_DMA_STATE_READY; - 8003a18: 687b ldr r3, [r7, #4] - 8003a1a: 2201 movs r2, #1 - 8003a1c: f883 2035 strb.w r2, [r3, #53] ; 0x35 - - /* Process Unlocked */ - __HAL_UNLOCK(hdma); - 8003a20: 687b ldr r3, [r7, #4] - 8003a22: 2200 movs r2, #0 - 8003a24: f883 2034 strb.w r2, [r3, #52] ; 0x34 - } - - if(hdma->XferCpltCallback != NULL) - 8003a28: 687b ldr r3, [r7, #4] - 8003a2a: 6bdb ldr r3, [r3, #60] ; 0x3c - 8003a2c: 2b00 cmp r3, #0 - 8003a2e: f000 8097 beq.w 8003b60 - { - /* Transfer complete callback */ - hdma->XferCpltCallback(hdma); - 8003a32: 687b ldr r3, [r7, #4] - 8003a34: 6bdb ldr r3, [r3, #60] ; 0x3c - 8003a36: 6878 ldr r0, [r7, #4] - 8003a38: 4798 blx r3 - if((ccr_reg & BDMA_CCR_DBM) != 0U) - 8003a3a: e091 b.n 8003b60 - } - } - } - /* Transfer Error Interrupt management **************************************/ - else if (((tmpisr_bdma & (BDMA_FLAG_TE0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_TEIE) != 0U)) - 8003a3c: 687b ldr r3, [r7, #4] - 8003a3e: 6ddb ldr r3, [r3, #92] ; 0x5c - 8003a40: f003 031f and.w r3, r3, #31 - 8003a44: 2208 movs r2, #8 - 8003a46: 409a lsls r2, r3 - 8003a48: 697b ldr r3, [r7, #20] - 8003a4a: 4013 ands r3, r2 - 8003a4c: 2b00 cmp r3, #0 - 8003a4e: f000 8088 beq.w 8003b62 - 8003a52: 693b ldr r3, [r7, #16] - 8003a54: f003 0308 and.w r3, r3, #8 - 8003a58: 2b00 cmp r3, #0 - 8003a5a: f000 8082 beq.w 8003b62 - { - /* When a DMA transfer error occurs */ - /* A hardware clear of its EN bits is performed */ - /* Disable ALL DMA IT */ - __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE)); - 8003a5e: 687b ldr r3, [r7, #4] - 8003a60: 681b ldr r3, [r3, #0] - 8003a62: 4a41 ldr r2, [pc, #260] ; (8003b68 ) - 8003a64: 4293 cmp r3, r2 - 8003a66: d04a beq.n 8003afe - 8003a68: 687b ldr r3, [r7, #4] - 8003a6a: 681b ldr r3, [r3, #0] - 8003a6c: 4a3f ldr r2, [pc, #252] ; (8003b6c ) - 8003a6e: 4293 cmp r3, r2 - 8003a70: d045 beq.n 8003afe - 8003a72: 687b ldr r3, [r7, #4] - 8003a74: 681b ldr r3, [r3, #0] - 8003a76: 4a3e ldr r2, [pc, #248] ; (8003b70 ) - 8003a78: 4293 cmp r3, r2 - 8003a7a: d040 beq.n 8003afe - 8003a7c: 687b ldr r3, [r7, #4] - 8003a7e: 681b ldr r3, [r3, #0] - 8003a80: 4a3c ldr r2, [pc, #240] ; (8003b74 ) - 8003a82: 4293 cmp r3, r2 - 8003a84: d03b beq.n 8003afe - 8003a86: 687b ldr r3, [r7, #4] - 8003a88: 681b ldr r3, [r3, #0] - 8003a8a: 4a3b ldr r2, [pc, #236] ; (8003b78 ) - 8003a8c: 4293 cmp r3, r2 - 8003a8e: d036 beq.n 8003afe - 8003a90: 687b ldr r3, [r7, #4] - 8003a92: 681b ldr r3, [r3, #0] - 8003a94: 4a39 ldr r2, [pc, #228] ; (8003b7c ) - 8003a96: 4293 cmp r3, r2 - 8003a98: d031 beq.n 8003afe - 8003a9a: 687b ldr r3, [r7, #4] - 8003a9c: 681b ldr r3, [r3, #0] - 8003a9e: 4a38 ldr r2, [pc, #224] ; (8003b80 ) - 8003aa0: 4293 cmp r3, r2 - 8003aa2: d02c beq.n 8003afe - 8003aa4: 687b ldr r3, [r7, #4] - 8003aa6: 681b ldr r3, [r3, #0] - 8003aa8: 4a36 ldr r2, [pc, #216] ; (8003b84 ) - 8003aaa: 4293 cmp r3, r2 - 8003aac: d027 beq.n 8003afe - 8003aae: 687b ldr r3, [r7, #4] - 8003ab0: 681b ldr r3, [r3, #0] - 8003ab2: 4a35 ldr r2, [pc, #212] ; (8003b88 ) - 8003ab4: 4293 cmp r3, r2 - 8003ab6: d022 beq.n 8003afe - 8003ab8: 687b ldr r3, [r7, #4] - 8003aba: 681b ldr r3, [r3, #0] - 8003abc: 4a33 ldr r2, [pc, #204] ; (8003b8c ) - 8003abe: 4293 cmp r3, r2 - 8003ac0: d01d beq.n 8003afe - 8003ac2: 687b ldr r3, [r7, #4] - 8003ac4: 681b ldr r3, [r3, #0] - 8003ac6: 4a32 ldr r2, [pc, #200] ; (8003b90 ) - 8003ac8: 4293 cmp r3, r2 - 8003aca: d018 beq.n 8003afe - 8003acc: 687b ldr r3, [r7, #4] - 8003ace: 681b ldr r3, [r3, #0] - 8003ad0: 4a30 ldr r2, [pc, #192] ; (8003b94 ) - 8003ad2: 4293 cmp r3, r2 - 8003ad4: d013 beq.n 8003afe - 8003ad6: 687b ldr r3, [r7, #4] - 8003ad8: 681b ldr r3, [r3, #0] - 8003ada: 4a2f ldr r2, [pc, #188] ; (8003b98 ) - 8003adc: 4293 cmp r3, r2 - 8003ade: d00e beq.n 8003afe - 8003ae0: 687b ldr r3, [r7, #4] - 8003ae2: 681b ldr r3, [r3, #0] - 8003ae4: 4a2d ldr r2, [pc, #180] ; (8003b9c ) - 8003ae6: 4293 cmp r3, r2 - 8003ae8: d009 beq.n 8003afe - 8003aea: 687b ldr r3, [r7, #4] - 8003aec: 681b ldr r3, [r3, #0] - 8003aee: 4a2c ldr r2, [pc, #176] ; (8003ba0 ) - 8003af0: 4293 cmp r3, r2 - 8003af2: d004 beq.n 8003afe - 8003af4: 687b ldr r3, [r7, #4] - 8003af6: 681b ldr r3, [r3, #0] - 8003af8: 4a2a ldr r2, [pc, #168] ; (8003ba4 ) - 8003afa: 4293 cmp r3, r2 - 8003afc: d108 bne.n 8003b10 - 8003afe: 687b ldr r3, [r7, #4] - 8003b00: 681b ldr r3, [r3, #0] - 8003b02: 681a ldr r2, [r3, #0] - 8003b04: 687b ldr r3, [r7, #4] - 8003b06: 681b ldr r3, [r3, #0] - 8003b08: f022 021c bic.w r2, r2, #28 - 8003b0c: 601a str r2, [r3, #0] - 8003b0e: e007 b.n 8003b20 - 8003b10: 687b ldr r3, [r7, #4] - 8003b12: 681b ldr r3, [r3, #0] - 8003b14: 681a ldr r2, [r3, #0] - 8003b16: 687b ldr r3, [r7, #4] - 8003b18: 681b ldr r3, [r3, #0] - 8003b1a: f022 020e bic.w r2, r2, #14 - 8003b1e: 601a str r2, [r3, #0] - - /* Clear all flags */ - regs_bdma->IFCR = (BDMA_ISR_GIF0) << (hdma->StreamIndex & 0x1FU); - 8003b20: 687b ldr r3, [r7, #4] - 8003b22: 6ddb ldr r3, [r3, #92] ; 0x5c - 8003b24: f003 031f and.w r3, r3, #31 - 8003b28: 2201 movs r2, #1 - 8003b2a: 409a lsls r2, r3 - 8003b2c: 69fb ldr r3, [r7, #28] - 8003b2e: 605a str r2, [r3, #4] - - /* Update error code */ - hdma->ErrorCode = HAL_DMA_ERROR_TE; - 8003b30: 687b ldr r3, [r7, #4] - 8003b32: 2201 movs r2, #1 - 8003b34: 655a str r2, [r3, #84] ; 0x54 - - /* Change the DMA state */ - hdma->State = HAL_DMA_STATE_READY; - 8003b36: 687b ldr r3, [r7, #4] - 8003b38: 2201 movs r2, #1 - 8003b3a: f883 2035 strb.w r2, [r3, #53] ; 0x35 - - /* Process Unlocked */ - __HAL_UNLOCK(hdma); - 8003b3e: 687b ldr r3, [r7, #4] - 8003b40: 2200 movs r2, #0 - 8003b42: f883 2034 strb.w r2, [r3, #52] ; 0x34 - - if (hdma->XferErrorCallback != NULL) - 8003b46: 687b ldr r3, [r7, #4] - 8003b48: 6cdb ldr r3, [r3, #76] ; 0x4c - 8003b4a: 2b00 cmp r3, #0 - 8003b4c: d009 beq.n 8003b62 - { - /* Transfer error callback */ - hdma->XferErrorCallback(hdma); - 8003b4e: 687b ldr r3, [r7, #4] - 8003b50: 6cdb ldr r3, [r3, #76] ; 0x4c - 8003b52: 6878 ldr r0, [r7, #4] - 8003b54: 4798 blx r3 - 8003b56: e004 b.n 8003b62 - return; - 8003b58: bf00 nop - 8003b5a: e002 b.n 8003b62 - if((ccr_reg & BDMA_CCR_DBM) != 0U) - 8003b5c: bf00 nop - 8003b5e: e000 b.n 8003b62 - if((ccr_reg & BDMA_CCR_DBM) != 0U) - 8003b60: bf00 nop - } - else - { - /* Nothing To Do */ - } -} - 8003b62: 3728 adds r7, #40 ; 0x28 - 8003b64: 46bd mov sp, r7 - 8003b66: bd80 pop {r7, pc} - 8003b68: 40020010 .word 0x40020010 - 8003b6c: 40020028 .word 0x40020028 - 8003b70: 40020040 .word 0x40020040 - 8003b74: 40020058 .word 0x40020058 - 8003b78: 40020070 .word 0x40020070 - 8003b7c: 40020088 .word 0x40020088 - 8003b80: 400200a0 .word 0x400200a0 - 8003b84: 400200b8 .word 0x400200b8 - 8003b88: 40020410 .word 0x40020410 - 8003b8c: 40020428 .word 0x40020428 - 8003b90: 40020440 .word 0x40020440 - 8003b94: 40020458 .word 0x40020458 - 8003b98: 40020470 .word 0x40020470 - 8003b9c: 40020488 .word 0x40020488 - 8003ba0: 400204a0 .word 0x400204a0 - 8003ba4: 400204b8 .word 0x400204b8 - -08003ba8 : - * @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) -{ - 8003ba8: b480 push {r7} - 8003baa: b085 sub sp, #20 - 8003bac: af00 add r7, sp, #0 - 8003bae: 6078 str r0, [r7, #4] - if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */ - 8003bb0: 687b ldr r3, [r7, #4] - 8003bb2: 681b ldr r3, [r3, #0] - 8003bb4: 4a42 ldr r2, [pc, #264] ; (8003cc0 ) - 8003bb6: 4293 cmp r3, r2 - 8003bb8: d04a beq.n 8003c50 - 8003bba: 687b ldr r3, [r7, #4] - 8003bbc: 681b ldr r3, [r3, #0] - 8003bbe: 4a41 ldr r2, [pc, #260] ; (8003cc4 ) - 8003bc0: 4293 cmp r3, r2 - 8003bc2: d045 beq.n 8003c50 - 8003bc4: 687b ldr r3, [r7, #4] - 8003bc6: 681b ldr r3, [r3, #0] - 8003bc8: 4a3f ldr r2, [pc, #252] ; (8003cc8 ) - 8003bca: 4293 cmp r3, r2 - 8003bcc: d040 beq.n 8003c50 - 8003bce: 687b ldr r3, [r7, #4] - 8003bd0: 681b ldr r3, [r3, #0] - 8003bd2: 4a3e ldr r2, [pc, #248] ; (8003ccc ) - 8003bd4: 4293 cmp r3, r2 - 8003bd6: d03b beq.n 8003c50 - 8003bd8: 687b ldr r3, [r7, #4] - 8003bda: 681b ldr r3, [r3, #0] - 8003bdc: 4a3c ldr r2, [pc, #240] ; (8003cd0 ) - 8003bde: 4293 cmp r3, r2 - 8003be0: d036 beq.n 8003c50 - 8003be2: 687b ldr r3, [r7, #4] - 8003be4: 681b ldr r3, [r3, #0] - 8003be6: 4a3b ldr r2, [pc, #236] ; (8003cd4 ) - 8003be8: 4293 cmp r3, r2 - 8003bea: d031 beq.n 8003c50 - 8003bec: 687b ldr r3, [r7, #4] - 8003bee: 681b ldr r3, [r3, #0] - 8003bf0: 4a39 ldr r2, [pc, #228] ; (8003cd8 ) - 8003bf2: 4293 cmp r3, r2 - 8003bf4: d02c beq.n 8003c50 - 8003bf6: 687b ldr r3, [r7, #4] - 8003bf8: 681b ldr r3, [r3, #0] - 8003bfa: 4a38 ldr r2, [pc, #224] ; (8003cdc ) - 8003bfc: 4293 cmp r3, r2 - 8003bfe: d027 beq.n 8003c50 - 8003c00: 687b ldr r3, [r7, #4] - 8003c02: 681b ldr r3, [r3, #0] - 8003c04: 4a36 ldr r2, [pc, #216] ; (8003ce0 ) - 8003c06: 4293 cmp r3, r2 - 8003c08: d022 beq.n 8003c50 - 8003c0a: 687b ldr r3, [r7, #4] - 8003c0c: 681b ldr r3, [r3, #0] - 8003c0e: 4a35 ldr r2, [pc, #212] ; (8003ce4 ) - 8003c10: 4293 cmp r3, r2 - 8003c12: d01d beq.n 8003c50 - 8003c14: 687b ldr r3, [r7, #4] - 8003c16: 681b ldr r3, [r3, #0] - 8003c18: 4a33 ldr r2, [pc, #204] ; (8003ce8 ) - 8003c1a: 4293 cmp r3, r2 - 8003c1c: d018 beq.n 8003c50 - 8003c1e: 687b ldr r3, [r7, #4] - 8003c20: 681b ldr r3, [r3, #0] - 8003c22: 4a32 ldr r2, [pc, #200] ; (8003cec ) - 8003c24: 4293 cmp r3, r2 - 8003c26: d013 beq.n 8003c50 - 8003c28: 687b ldr r3, [r7, #4] - 8003c2a: 681b ldr r3, [r3, #0] - 8003c2c: 4a30 ldr r2, [pc, #192] ; (8003cf0 ) - 8003c2e: 4293 cmp r3, r2 - 8003c30: d00e beq.n 8003c50 - 8003c32: 687b ldr r3, [r7, #4] - 8003c34: 681b ldr r3, [r3, #0] - 8003c36: 4a2f ldr r2, [pc, #188] ; (8003cf4 ) - 8003c38: 4293 cmp r3, r2 - 8003c3a: d009 beq.n 8003c50 - 8003c3c: 687b ldr r3, [r7, #4] - 8003c3e: 681b ldr r3, [r3, #0] - 8003c40: 4a2d ldr r2, [pc, #180] ; (8003cf8 ) - 8003c42: 4293 cmp r3, r2 - 8003c44: d004 beq.n 8003c50 - 8003c46: 687b ldr r3, [r7, #4] - 8003c48: 681b ldr r3, [r3, #0] - 8003c4a: 4a2c ldr r2, [pc, #176] ; (8003cfc ) - 8003c4c: 4293 cmp r3, r2 - 8003c4e: d101 bne.n 8003c54 - 8003c50: 2301 movs r3, #1 - 8003c52: e000 b.n 8003c56 - 8003c54: 2300 movs r3, #0 - 8003c56: 2b00 cmp r3, #0 - 8003c58: d024 beq.n 8003ca4 - { - uint32_t stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 16U) / 24U; - 8003c5a: 687b ldr r3, [r7, #4] - 8003c5c: 681b ldr r3, [r3, #0] - 8003c5e: b2db uxtb r3, r3 - 8003c60: 3b10 subs r3, #16 - 8003c62: 4a27 ldr r2, [pc, #156] ; (8003d00 ) - 8003c64: fba2 2303 umull r2, r3, r2, r3 - 8003c68: 091b lsrs r3, r3, #4 - 8003c6a: 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 & 0x7U]; - 8003c6c: 68fb ldr r3, [r7, #12] - 8003c6e: f003 0307 and.w r3, r3, #7 - 8003c72: 4a24 ldr r2, [pc, #144] ; (8003d04 ) - 8003c74: 5cd3 ldrb r3, [r2, r3] - 8003c76: 461a mov r2, r3 - 8003c78: 687b ldr r3, [r7, #4] - 8003c7a: 65da str r2, [r3, #92] ; 0x5c - - if (stream_number > 3U) - 8003c7c: 68fb ldr r3, [r7, #12] - 8003c7e: 2b03 cmp r3, #3 - 8003c80: d908 bls.n 8003c94 - { - /* return pointer to HISR and HIFCR */ - hdma->StreamBaseAddress = (((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0x3FFU)) + 4U); - 8003c82: 687b ldr r3, [r7, #4] - 8003c84: 681b ldr r3, [r3, #0] - 8003c86: 461a mov r2, r3 - 8003c88: 4b1f ldr r3, [pc, #124] ; (8003d08 ) - 8003c8a: 4013 ands r3, r2 - 8003c8c: 1d1a adds r2, r3, #4 - 8003c8e: 687b ldr r3, [r7, #4] - 8003c90: 659a str r2, [r3, #88] ; 0x58 - 8003c92: e00d b.n 8003cb0 - } - else - { - /* return pointer to LISR and LIFCR */ - hdma->StreamBaseAddress = ((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0x3FFU)); - 8003c94: 687b ldr r3, [r7, #4] - 8003c96: 681b ldr r3, [r3, #0] - 8003c98: 461a mov r2, r3 - 8003c9a: 4b1b ldr r3, [pc, #108] ; (8003d08 ) - 8003c9c: 4013 ands r3, r2 - 8003c9e: 687a ldr r2, [r7, #4] - 8003ca0: 6593 str r3, [r2, #88] ; 0x58 - 8003ca2: e005 b.n 8003cb0 - } - } - else /* BDMA instance(s) */ - { - /* return pointer to ISR and IFCR */ - hdma->StreamBaseAddress = ((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0xFFU)); - 8003ca4: 687b ldr r3, [r7, #4] - 8003ca6: 681b ldr r3, [r3, #0] - 8003ca8: f023 02ff bic.w r2, r3, #255 ; 0xff - 8003cac: 687b ldr r3, [r7, #4] - 8003cae: 659a str r2, [r3, #88] ; 0x58 - } - - return hdma->StreamBaseAddress; - 8003cb0: 687b ldr r3, [r7, #4] - 8003cb2: 6d9b ldr r3, [r3, #88] ; 0x58 -} - 8003cb4: 4618 mov r0, r3 - 8003cb6: 3714 adds r7, #20 - 8003cb8: 46bd mov sp, r7 - 8003cba: f85d 7b04 ldr.w r7, [sp], #4 - 8003cbe: 4770 bx lr - 8003cc0: 40020010 .word 0x40020010 - 8003cc4: 40020028 .word 0x40020028 - 8003cc8: 40020040 .word 0x40020040 - 8003ccc: 40020058 .word 0x40020058 - 8003cd0: 40020070 .word 0x40020070 - 8003cd4: 40020088 .word 0x40020088 - 8003cd8: 400200a0 .word 0x400200a0 - 8003cdc: 400200b8 .word 0x400200b8 - 8003ce0: 40020410 .word 0x40020410 - 8003ce4: 40020428 .word 0x40020428 - 8003ce8: 40020440 .word 0x40020440 - 8003cec: 40020458 .word 0x40020458 - 8003cf0: 40020470 .word 0x40020470 - 8003cf4: 40020488 .word 0x40020488 - 8003cf8: 400204a0 .word 0x400204a0 - 8003cfc: 400204b8 .word 0x400204b8 - 8003d00: aaaaaaab .word 0xaaaaaaab - 8003d04: 08026b50 .word 0x08026b50 - 8003d08: fffffc00 .word 0xfffffc00 - -08003d0c : - * @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) -{ - 8003d0c: b480 push {r7} - 8003d0e: b085 sub sp, #20 - 8003d10: af00 add r7, sp, #0 - 8003d12: 6078 str r0, [r7, #4] - HAL_StatusTypeDef status = HAL_OK; - 8003d14: 2300 movs r3, #0 - 8003d16: 73fb strb r3, [r7, #15] - - /* Memory Data size equal to Byte */ - if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_BYTE) - 8003d18: 687b ldr r3, [r7, #4] - 8003d1a: 699b ldr r3, [r3, #24] - 8003d1c: 2b00 cmp r3, #0 - 8003d1e: d120 bne.n 8003d62 - { - switch (hdma->Init.FIFOThreshold) - 8003d20: 687b ldr r3, [r7, #4] - 8003d22: 6a9b ldr r3, [r3, #40] ; 0x28 - 8003d24: 2b03 cmp r3, #3 - 8003d26: d858 bhi.n 8003dda - 8003d28: a201 add r2, pc, #4 ; (adr r2, 8003d30 ) - 8003d2a: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8003d2e: bf00 nop - 8003d30: 08003d41 .word 0x08003d41 - 8003d34: 08003d53 .word 0x08003d53 - 8003d38: 08003d41 .word 0x08003d41 - 8003d3c: 08003ddb .word 0x08003ddb - { - case DMA_FIFO_THRESHOLD_1QUARTERFULL: - case DMA_FIFO_THRESHOLD_3QUARTERSFULL: - - if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1) - 8003d40: 687b ldr r3, [r7, #4] - 8003d42: 6adb ldr r3, [r3, #44] ; 0x2c - 8003d44: f003 7380 and.w r3, r3, #16777216 ; 0x1000000 - 8003d48: 2b00 cmp r3, #0 - 8003d4a: d048 beq.n 8003dde - { - status = HAL_ERROR; - 8003d4c: 2301 movs r3, #1 - 8003d4e: 73fb strb r3, [r7, #15] - } - break; - 8003d50: e045 b.n 8003dde - - case DMA_FIFO_THRESHOLD_HALFFULL: - if (hdma->Init.MemBurst == DMA_MBURST_INC16) - 8003d52: 687b ldr r3, [r7, #4] - 8003d54: 6adb ldr r3, [r3, #44] ; 0x2c - 8003d56: f1b3 7fc0 cmp.w r3, #25165824 ; 0x1800000 - 8003d5a: d142 bne.n 8003de2 - { - status = HAL_ERROR; - 8003d5c: 2301 movs r3, #1 - 8003d5e: 73fb strb r3, [r7, #15] - } - break; - 8003d60: e03f b.n 8003de2 - break; - } - } - - /* Memory Data size equal to Half-Word */ - else if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_HALFWORD) - 8003d62: 687b ldr r3, [r7, #4] - 8003d64: 699b ldr r3, [r3, #24] - 8003d66: f5b3 5f00 cmp.w r3, #8192 ; 0x2000 - 8003d6a: d123 bne.n 8003db4 - { - switch (hdma->Init.FIFOThreshold) - 8003d6c: 687b ldr r3, [r7, #4] - 8003d6e: 6a9b ldr r3, [r3, #40] ; 0x28 - 8003d70: 2b03 cmp r3, #3 - 8003d72: d838 bhi.n 8003de6 - 8003d74: a201 add r2, pc, #4 ; (adr r2, 8003d7c ) - 8003d76: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8003d7a: bf00 nop - 8003d7c: 08003d8d .word 0x08003d8d - 8003d80: 08003d93 .word 0x08003d93 - 8003d84: 08003d8d .word 0x08003d8d - 8003d88: 08003da5 .word 0x08003da5 - { - case DMA_FIFO_THRESHOLD_1QUARTERFULL: - case DMA_FIFO_THRESHOLD_3QUARTERSFULL: - status = HAL_ERROR; - 8003d8c: 2301 movs r3, #1 - 8003d8e: 73fb strb r3, [r7, #15] - break; - 8003d90: e030 b.n 8003df4 - - case DMA_FIFO_THRESHOLD_HALFFULL: - if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1) - 8003d92: 687b ldr r3, [r7, #4] - 8003d94: 6adb ldr r3, [r3, #44] ; 0x2c - 8003d96: f003 7380 and.w r3, r3, #16777216 ; 0x1000000 - 8003d9a: 2b00 cmp r3, #0 - 8003d9c: d025 beq.n 8003dea - { - status = HAL_ERROR; - 8003d9e: 2301 movs r3, #1 - 8003da0: 73fb strb r3, [r7, #15] - } - break; - 8003da2: e022 b.n 8003dea - - case DMA_FIFO_THRESHOLD_FULL: - if (hdma->Init.MemBurst == DMA_MBURST_INC16) - 8003da4: 687b ldr r3, [r7, #4] - 8003da6: 6adb ldr r3, [r3, #44] ; 0x2c - 8003da8: f1b3 7fc0 cmp.w r3, #25165824 ; 0x1800000 - 8003dac: d11f bne.n 8003dee - { - status = HAL_ERROR; - 8003dae: 2301 movs r3, #1 - 8003db0: 73fb strb r3, [r7, #15] - } - break; - 8003db2: e01c b.n 8003dee - } - - /* Memory Data size equal to Word */ - else - { - switch (hdma->Init.FIFOThreshold) - 8003db4: 687b ldr r3, [r7, #4] - 8003db6: 6a9b ldr r3, [r3, #40] ; 0x28 - 8003db8: 2b02 cmp r3, #2 - 8003dba: d902 bls.n 8003dc2 - 8003dbc: 2b03 cmp r3, #3 - 8003dbe: d003 beq.n 8003dc8 - status = HAL_ERROR; - } - break; - - default: - break; - 8003dc0: e018 b.n 8003df4 - status = HAL_ERROR; - 8003dc2: 2301 movs r3, #1 - 8003dc4: 73fb strb r3, [r7, #15] - break; - 8003dc6: e015 b.n 8003df4 - if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1) - 8003dc8: 687b ldr r3, [r7, #4] - 8003dca: 6adb ldr r3, [r3, #44] ; 0x2c - 8003dcc: f003 7380 and.w r3, r3, #16777216 ; 0x1000000 - 8003dd0: 2b00 cmp r3, #0 - 8003dd2: d00e beq.n 8003df2 - status = HAL_ERROR; - 8003dd4: 2301 movs r3, #1 - 8003dd6: 73fb strb r3, [r7, #15] - break; - 8003dd8: e00b b.n 8003df2 - break; - 8003dda: bf00 nop - 8003ddc: e00a b.n 8003df4 - break; - 8003dde: bf00 nop - 8003de0: e008 b.n 8003df4 - break; - 8003de2: bf00 nop - 8003de4: e006 b.n 8003df4 - break; - 8003de6: bf00 nop - 8003de8: e004 b.n 8003df4 - break; - 8003dea: bf00 nop - 8003dec: e002 b.n 8003df4 - break; - 8003dee: bf00 nop - 8003df0: e000 b.n 8003df4 - break; - 8003df2: bf00 nop - } - } - - return status; - 8003df4: 7bfb ldrb r3, [r7, #15] -} - 8003df6: 4618 mov r0, r3 - 8003df8: 3714 adds r7, #20 - 8003dfa: 46bd mov sp, r7 - 8003dfc: f85d 7b04 ldr.w r7, [sp], #4 - 8003e00: 4770 bx lr - 8003e02: bf00 nop - -08003e04 : - * @param hdma: pointer to a DMA_HandleTypeDef structure that contains - * the configuration information for the specified DMA Stream. - * @retval HAL status - */ -static void DMA_CalcDMAMUXChannelBaseAndMask(DMA_HandleTypeDef *hdma) -{ - 8003e04: b480 push {r7} - 8003e06: b085 sub sp, #20 - 8003e08: af00 add r7, sp, #0 - 8003e0a: 6078 str r0, [r7, #4] - uint32_t stream_number; - uint32_t stream_baseaddress = (uint32_t)((uint32_t*)hdma->Instance); - 8003e0c: 687b ldr r3, [r7, #4] - 8003e0e: 681b ldr r3, [r3, #0] - 8003e10: 60bb str r3, [r7, #8] - - if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U) - 8003e12: 687b ldr r3, [r7, #4] - 8003e14: 681b ldr r3, [r3, #0] - 8003e16: 4a38 ldr r2, [pc, #224] ; (8003ef8 ) - 8003e18: 4293 cmp r3, r2 - 8003e1a: d022 beq.n 8003e62 - 8003e1c: 687b ldr r3, [r7, #4] - 8003e1e: 681b ldr r3, [r3, #0] - 8003e20: 4a36 ldr r2, [pc, #216] ; (8003efc ) - 8003e22: 4293 cmp r3, r2 - 8003e24: d01d beq.n 8003e62 - 8003e26: 687b ldr r3, [r7, #4] - 8003e28: 681b ldr r3, [r3, #0] - 8003e2a: 4a35 ldr r2, [pc, #212] ; (8003f00 ) - 8003e2c: 4293 cmp r3, r2 - 8003e2e: d018 beq.n 8003e62 - 8003e30: 687b ldr r3, [r7, #4] - 8003e32: 681b ldr r3, [r3, #0] - 8003e34: 4a33 ldr r2, [pc, #204] ; (8003f04 ) - 8003e36: 4293 cmp r3, r2 - 8003e38: d013 beq.n 8003e62 - 8003e3a: 687b ldr r3, [r7, #4] - 8003e3c: 681b ldr r3, [r3, #0] - 8003e3e: 4a32 ldr r2, [pc, #200] ; (8003f08 ) - 8003e40: 4293 cmp r3, r2 - 8003e42: d00e beq.n 8003e62 - 8003e44: 687b ldr r3, [r7, #4] - 8003e46: 681b ldr r3, [r3, #0] - 8003e48: 4a30 ldr r2, [pc, #192] ; (8003f0c ) - 8003e4a: 4293 cmp r3, r2 - 8003e4c: d009 beq.n 8003e62 - 8003e4e: 687b ldr r3, [r7, #4] - 8003e50: 681b ldr r3, [r3, #0] - 8003e52: 4a2f ldr r2, [pc, #188] ; (8003f10 ) - 8003e54: 4293 cmp r3, r2 - 8003e56: d004 beq.n 8003e62 - 8003e58: 687b ldr r3, [r7, #4] - 8003e5a: 681b ldr r3, [r3, #0] - 8003e5c: 4a2d ldr r2, [pc, #180] ; (8003f14 ) - 8003e5e: 4293 cmp r3, r2 - 8003e60: d101 bne.n 8003e66 - 8003e62: 2301 movs r3, #1 - 8003e64: e000 b.n 8003e68 - 8003e66: 2300 movs r3, #0 - 8003e68: 2b00 cmp r3, #0 - 8003e6a: d01a beq.n 8003ea2 - { - /* BDMA Channels are connected to DMAMUX2 channels */ - stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 8U) / 20U; - 8003e6c: 687b ldr r3, [r7, #4] - 8003e6e: 681b ldr r3, [r3, #0] - 8003e70: b2db uxtb r3, r3 - 8003e72: 3b08 subs r3, #8 - 8003e74: 4a28 ldr r2, [pc, #160] ; (8003f18 ) - 8003e76: fba2 2303 umull r2, r3, r2, r3 - 8003e7a: 091b lsrs r3, r3, #4 - 8003e7c: 60fb str r3, [r7, #12] - hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX2_Channel0) + (stream_number * 4U))); - 8003e7e: 68fa ldr r2, [r7, #12] - 8003e80: 4b26 ldr r3, [pc, #152] ; (8003f1c ) - 8003e82: 4413 add r3, r2 - 8003e84: 009b lsls r3, r3, #2 - 8003e86: 461a mov r2, r3 - 8003e88: 687b ldr r3, [r7, #4] - 8003e8a: 661a str r2, [r3, #96] ; 0x60 - hdma->DMAmuxChannelStatus = DMAMUX2_ChannelStatus; - 8003e8c: 687b ldr r3, [r7, #4] - 8003e8e: 4a24 ldr r2, [pc, #144] ; (8003f20 ) - 8003e90: 665a str r2, [r3, #100] ; 0x64 - hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU); - 8003e92: 68fb ldr r3, [r7, #12] - 8003e94: f003 031f and.w r3, r3, #31 - 8003e98: 2201 movs r2, #1 - 8003e9a: 409a lsls r2, r3 - 8003e9c: 687b ldr r3, [r7, #4] - 8003e9e: 669a str r2, [r3, #104] ; 0x68 - } - hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_Channel0) + (stream_number * 4U))); - hdma->DMAmuxChannelStatus = DMAMUX1_ChannelStatus; - hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU); - } -} - 8003ea0: e024 b.n 8003eec - stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 16U) / 24U; - 8003ea2: 687b ldr r3, [r7, #4] - 8003ea4: 681b ldr r3, [r3, #0] - 8003ea6: b2db uxtb r3, r3 - 8003ea8: 3b10 subs r3, #16 - 8003eaa: 4a1e ldr r2, [pc, #120] ; (8003f24 ) - 8003eac: fba2 2303 umull r2, r3, r2, r3 - 8003eb0: 091b lsrs r3, r3, #4 - 8003eb2: 60fb str r3, [r7, #12] - if((stream_baseaddress <= ((uint32_t)DMA2_Stream7) ) && \ - 8003eb4: 68bb ldr r3, [r7, #8] - 8003eb6: 4a1c ldr r2, [pc, #112] ; (8003f28 ) - 8003eb8: 4293 cmp r3, r2 - 8003eba: d806 bhi.n 8003eca - 8003ebc: 68bb ldr r3, [r7, #8] - 8003ebe: 4a1b ldr r2, [pc, #108] ; (8003f2c ) - 8003ec0: 4293 cmp r3, r2 - 8003ec2: d902 bls.n 8003eca - stream_number += 8U; - 8003ec4: 68fb ldr r3, [r7, #12] - 8003ec6: 3308 adds r3, #8 - 8003ec8: 60fb str r3, [r7, #12] - hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_Channel0) + (stream_number * 4U))); - 8003eca: 68fa ldr r2, [r7, #12] - 8003ecc: 4b18 ldr r3, [pc, #96] ; (8003f30 ) - 8003ece: 4413 add r3, r2 - 8003ed0: 009b lsls r3, r3, #2 - 8003ed2: 461a mov r2, r3 - 8003ed4: 687b ldr r3, [r7, #4] - 8003ed6: 661a str r2, [r3, #96] ; 0x60 - hdma->DMAmuxChannelStatus = DMAMUX1_ChannelStatus; - 8003ed8: 687b ldr r3, [r7, #4] - 8003eda: 4a16 ldr r2, [pc, #88] ; (8003f34 ) - 8003edc: 665a str r2, [r3, #100] ; 0x64 - hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU); - 8003ede: 68fb ldr r3, [r7, #12] - 8003ee0: f003 031f and.w r3, r3, #31 - 8003ee4: 2201 movs r2, #1 - 8003ee6: 409a lsls r2, r3 - 8003ee8: 687b ldr r3, [r7, #4] - 8003eea: 669a str r2, [r3, #104] ; 0x68 -} - 8003eec: bf00 nop - 8003eee: 3714 adds r7, #20 - 8003ef0: 46bd mov sp, r7 - 8003ef2: f85d 7b04 ldr.w r7, [sp], #4 - 8003ef6: 4770 bx lr - 8003ef8: 58025408 .word 0x58025408 - 8003efc: 5802541c .word 0x5802541c - 8003f00: 58025430 .word 0x58025430 - 8003f04: 58025444 .word 0x58025444 - 8003f08: 58025458 .word 0x58025458 - 8003f0c: 5802546c .word 0x5802546c - 8003f10: 58025480 .word 0x58025480 - 8003f14: 58025494 .word 0x58025494 - 8003f18: cccccccd .word 0xcccccccd - 8003f1c: 16009600 .word 0x16009600 - 8003f20: 58025880 .word 0x58025880 - 8003f24: aaaaaaab .word 0xaaaaaaab - 8003f28: 400204b8 .word 0x400204b8 - 8003f2c: 4002040f .word 0x4002040f - 8003f30: 10008200 .word 0x10008200 - 8003f34: 40020880 .word 0x40020880 - -08003f38 : - * @param hdma: pointer to a DMA_HandleTypeDef structure that contains - * the configuration information for the specified DMA Stream. - * @retval HAL status - */ -static void DMA_CalcDMAMUXRequestGenBaseAndMask(DMA_HandleTypeDef *hdma) -{ - 8003f38: b480 push {r7} - 8003f3a: b085 sub sp, #20 - 8003f3c: af00 add r7, sp, #0 - 8003f3e: 6078 str r0, [r7, #4] - uint32_t request = hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID; - 8003f40: 687b ldr r3, [r7, #4] - 8003f42: 685b ldr r3, [r3, #4] - 8003f44: b2db uxtb r3, r3 - 8003f46: 60fb str r3, [r7, #12] - - if((request >= DMA_REQUEST_GENERATOR0) && (request <= DMA_REQUEST_GENERATOR7)) - 8003f48: 68fb ldr r3, [r7, #12] - 8003f4a: 2b00 cmp r3, #0 - 8003f4c: d04a beq.n 8003fe4 - 8003f4e: 68fb ldr r3, [r7, #12] - 8003f50: 2b08 cmp r3, #8 - 8003f52: d847 bhi.n 8003fe4 - { - if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U) - 8003f54: 687b ldr r3, [r7, #4] - 8003f56: 681b ldr r3, [r3, #0] - 8003f58: 4a25 ldr r2, [pc, #148] ; (8003ff0 ) - 8003f5a: 4293 cmp r3, r2 - 8003f5c: d022 beq.n 8003fa4 - 8003f5e: 687b ldr r3, [r7, #4] - 8003f60: 681b ldr r3, [r3, #0] - 8003f62: 4a24 ldr r2, [pc, #144] ; (8003ff4 ) - 8003f64: 4293 cmp r3, r2 - 8003f66: d01d beq.n 8003fa4 - 8003f68: 687b ldr r3, [r7, #4] - 8003f6a: 681b ldr r3, [r3, #0] - 8003f6c: 4a22 ldr r2, [pc, #136] ; (8003ff8 ) - 8003f6e: 4293 cmp r3, r2 - 8003f70: d018 beq.n 8003fa4 - 8003f72: 687b ldr r3, [r7, #4] - 8003f74: 681b ldr r3, [r3, #0] - 8003f76: 4a21 ldr r2, [pc, #132] ; (8003ffc ) - 8003f78: 4293 cmp r3, r2 - 8003f7a: d013 beq.n 8003fa4 - 8003f7c: 687b ldr r3, [r7, #4] - 8003f7e: 681b ldr r3, [r3, #0] - 8003f80: 4a1f ldr r2, [pc, #124] ; (8004000 ) - 8003f82: 4293 cmp r3, r2 - 8003f84: d00e beq.n 8003fa4 - 8003f86: 687b ldr r3, [r7, #4] - 8003f88: 681b ldr r3, [r3, #0] - 8003f8a: 4a1e ldr r2, [pc, #120] ; (8004004 ) - 8003f8c: 4293 cmp r3, r2 - 8003f8e: d009 beq.n 8003fa4 - 8003f90: 687b ldr r3, [r7, #4] - 8003f92: 681b ldr r3, [r3, #0] - 8003f94: 4a1c ldr r2, [pc, #112] ; (8004008 ) - 8003f96: 4293 cmp r3, r2 - 8003f98: d004 beq.n 8003fa4 - 8003f9a: 687b ldr r3, [r7, #4] - 8003f9c: 681b ldr r3, [r3, #0] - 8003f9e: 4a1b ldr r2, [pc, #108] ; (800400c ) - 8003fa0: 4293 cmp r3, r2 - 8003fa2: d101 bne.n 8003fa8 - 8003fa4: 2301 movs r3, #1 - 8003fa6: e000 b.n 8003faa - 8003fa8: 2300 movs r3, #0 - 8003faa: 2b00 cmp r3, #0 - 8003fac: d00a beq.n 8003fc4 - { - /* BDMA Channels are connected to DMAMUX2 request generator blocks */ - hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX2_RequestGenerator0) + ((request - 1U) * 4U))); - 8003fae: 68fa ldr r2, [r7, #12] - 8003fb0: 4b17 ldr r3, [pc, #92] ; (8004010 ) - 8003fb2: 4413 add r3, r2 - 8003fb4: 009b lsls r3, r3, #2 - 8003fb6: 461a mov r2, r3 - 8003fb8: 687b ldr r3, [r7, #4] - 8003fba: 66da str r2, [r3, #108] ; 0x6c - - hdma->DMAmuxRequestGenStatus = DMAMUX2_RequestGenStatus; - 8003fbc: 687b ldr r3, [r7, #4] - 8003fbe: 4a15 ldr r2, [pc, #84] ; (8004014 ) - 8003fc0: 671a str r2, [r3, #112] ; 0x70 - 8003fc2: e009 b.n 8003fd8 - } - else - { - /* DMA1 and DMA2 Streams use DMAMUX1 request generator blocks */ - hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_RequestGenerator0) + ((request - 1U) * 4U))); - 8003fc4: 68fa ldr r2, [r7, #12] - 8003fc6: 4b14 ldr r3, [pc, #80] ; (8004018 ) - 8003fc8: 4413 add r3, r2 - 8003fca: 009b lsls r3, r3, #2 - 8003fcc: 461a mov r2, r3 - 8003fce: 687b ldr r3, [r7, #4] - 8003fd0: 66da str r2, [r3, #108] ; 0x6c - - hdma->DMAmuxRequestGenStatus = DMAMUX1_RequestGenStatus; - 8003fd2: 687b ldr r3, [r7, #4] - 8003fd4: 4a11 ldr r2, [pc, #68] ; (800401c ) - 8003fd6: 671a str r2, [r3, #112] ; 0x70 - } - - hdma->DMAmuxRequestGenStatusMask = 1UL << (request - 1U); - 8003fd8: 68fb ldr r3, [r7, #12] - 8003fda: 3b01 subs r3, #1 - 8003fdc: 2201 movs r2, #1 - 8003fde: 409a lsls r2, r3 - 8003fe0: 687b ldr r3, [r7, #4] - 8003fe2: 675a str r2, [r3, #116] ; 0x74 - } -} - 8003fe4: bf00 nop - 8003fe6: 3714 adds r7, #20 - 8003fe8: 46bd mov sp, r7 - 8003fea: f85d 7b04 ldr.w r7, [sp], #4 - 8003fee: 4770 bx lr - 8003ff0: 58025408 .word 0x58025408 - 8003ff4: 5802541c .word 0x5802541c - 8003ff8: 58025430 .word 0x58025430 - 8003ffc: 58025444 .word 0x58025444 - 8004000: 58025458 .word 0x58025458 - 8004004: 5802546c .word 0x5802546c - 8004008: 58025480 .word 0x58025480 - 800400c: 58025494 .word 0x58025494 - 8004010: 1600963f .word 0x1600963f - 8004014: 58025940 .word 0x58025940 - 8004018: 1000823f .word 0x1000823f - 800401c: 40020940 .word 0x40020940 - -08004020 : - * @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) -{ - 8004020: b580 push {r7, lr} - 8004022: b084 sub sp, #16 - 8004024: af00 add r7, sp, #0 - 8004026: 6078 str r0, [r7, #4] - uint32_t tickstart; - - if (heth == NULL) - 8004028: 687b ldr r3, [r7, #4] - 800402a: 2b00 cmp r3, #0 - 800402c: d101 bne.n 8004032 - { - return HAL_ERROR; - 800402e: 2301 movs r3, #1 - 8004030: e0cf b.n 80041d2 - } - if (heth->gState == HAL_ETH_STATE_RESET) - 8004032: 687b ldr r3, [r7, #4] - 8004034: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 8004038: 2b00 cmp r3, #0 - 800403a: d106 bne.n 800404a - { - heth->gState = HAL_ETH_STATE_BUSY; - 800403c: 687b ldr r3, [r7, #4] - 800403e: 2223 movs r2, #35 ; 0x23 - 8004040: f8c3 2084 str.w r2, [r3, #132] ; 0x84 - - /* Init the low level hardware */ - heth->MspInitCallback(heth); -#else - /* Init the low level hardware : GPIO, CLOCK, NVIC. */ - HAL_ETH_MspInit(heth); - 8004044: 6878 ldr r0, [r7, #4] - 8004046: f00b fe73 bl 800fd30 - -#endif /* (USE_HAL_ETH_REGISTER_CALLBACKS) */ - } - - __HAL_RCC_SYSCFG_CLK_ENABLE(); - 800404a: 4b64 ldr r3, [pc, #400] ; (80041dc ) - 800404c: f8d3 30f4 ldr.w r3, [r3, #244] ; 0xf4 - 8004050: 4a62 ldr r2, [pc, #392] ; (80041dc ) - 8004052: f043 0302 orr.w r3, r3, #2 - 8004056: f8c2 30f4 str.w r3, [r2, #244] ; 0xf4 - 800405a: 4b60 ldr r3, [pc, #384] ; (80041dc ) - 800405c: f8d3 30f4 ldr.w r3, [r3, #244] ; 0xf4 - 8004060: f003 0302 and.w r3, r3, #2 - 8004064: 60bb str r3, [r7, #8] - 8004066: 68bb ldr r3, [r7, #8] - - if (heth->Init.MediaInterface == HAL_ETH_MII_MODE) - 8004068: 687b ldr r3, [r7, #4] - 800406a: 7a1b ldrb r3, [r3, #8] - 800406c: 2b00 cmp r3, #0 - 800406e: d103 bne.n 8004078 - { - HAL_SYSCFG_ETHInterfaceSelect(SYSCFG_ETH_MII); - 8004070: 2000 movs r0, #0 - 8004072: f7fe f9a7 bl 80023c4 - 8004076: e003 b.n 8004080 - } - else - { - HAL_SYSCFG_ETHInterfaceSelect(SYSCFG_ETH_RMII); - 8004078: f44f 0000 mov.w r0, #8388608 ; 0x800000 - 800407c: f7fe f9a2 bl 80023c4 - } - - /* Dummy read to sync with ETH */ - (void)SYSCFG->PMCR; - 8004080: 4b57 ldr r3, [pc, #348] ; (80041e0 ) - 8004082: 685b ldr r3, [r3, #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 */ - SET_BIT(heth->Instance->DMAMR, ETH_DMAMR_SWR); - 8004084: 687b ldr r3, [r7, #4] - 8004086: 681b ldr r3, [r3, #0] - 8004088: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 800408c: 681b ldr r3, [r3, #0] - 800408e: 687a ldr r2, [r7, #4] - 8004090: 6812 ldr r2, [r2, #0] - 8004092: f043 0301 orr.w r3, r3, #1 - 8004096: f502 5280 add.w r2, r2, #4096 ; 0x1000 - 800409a: 6013 str r3, [r2, #0] - - /* Get tick */ - tickstart = HAL_GetTick(); - 800409c: f7fe f962 bl 8002364 - 80040a0: 60f8 str r0, [r7, #12] - - /* Wait for software reset */ - while (READ_BIT(heth->Instance->DMAMR, ETH_DMAMR_SWR) > 0U) - 80040a2: e011 b.n 80040c8 - { - if (((HAL_GetTick() - tickstart) > ETH_SWRESET_TIMEOUT)) - 80040a4: f7fe f95e bl 8002364 - 80040a8: 4602 mov r2, r0 - 80040aa: 68fb ldr r3, [r7, #12] - 80040ac: 1ad3 subs r3, r2, r3 - 80040ae: f5b3 7ffa cmp.w r3, #500 ; 0x1f4 - 80040b2: d909 bls.n 80040c8 - { - /* Set Error Code */ - heth->ErrorCode = HAL_ETH_ERROR_TIMEOUT; - 80040b4: 687b ldr r3, [r7, #4] - 80040b6: 2204 movs r2, #4 - 80040b8: f8c3 2088 str.w r2, [r3, #136] ; 0x88 - /* Set State as Error */ - heth->gState = HAL_ETH_STATE_ERROR; - 80040bc: 687b ldr r3, [r7, #4] - 80040be: 22e0 movs r2, #224 ; 0xe0 - 80040c0: f8c3 2084 str.w r2, [r3, #132] ; 0x84 - /* Return Error */ - return HAL_ERROR; - 80040c4: 2301 movs r3, #1 - 80040c6: e084 b.n 80041d2 - while (READ_BIT(heth->Instance->DMAMR, ETH_DMAMR_SWR) > 0U) - 80040c8: 687b ldr r3, [r7, #4] - 80040ca: 681b ldr r3, [r3, #0] - 80040cc: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80040d0: 681b ldr r3, [r3, #0] - 80040d2: f003 0301 and.w r3, r3, #1 - 80040d6: 2b00 cmp r3, #0 - 80040d8: d1e4 bne.n 80040a4 - } - } - - /*------------------ MDIO CSR Clock Range Configuration --------------------*/ - HAL_ETH_SetMDIOClockRange(heth); - 80040da: 6878 ldr r0, [r7, #4] - 80040dc: f000 ff28 bl 8004f30 - - /*------------------ MAC LPI 1US Tic Counter Configuration --------------------*/ - WRITE_REG(heth->Instance->MAC1USTCR, (((uint32_t)HAL_RCC_GetHCLKFreq() / ETH_MAC_US_TICK) - 1U)); - 80040e0: f003 ff0e bl 8007f00 - 80040e4: 4603 mov r3, r0 - 80040e6: 4a3f ldr r2, [pc, #252] ; (80041e4 ) - 80040e8: fba2 2303 umull r2, r3, r2, r3 - 80040ec: 0c9a lsrs r2, r3, #18 - 80040ee: 687b ldr r3, [r7, #4] - 80040f0: 681b ldr r3, [r3, #0] - 80040f2: 3a01 subs r2, #1 - 80040f4: f8c3 20dc str.w r2, [r3, #220] ; 0xdc - - /*------------------ MAC, MTL and DMA default Configuration ----------------*/ - ETH_MACDMAConfig(heth); - 80040f8: 6878 ldr r0, [r7, #4] - 80040fa: f001 f921 bl 8005340 - - /* SET DSL to 64 bit */ - MODIFY_REG(heth->Instance->DMACCR, ETH_DMACCR_DSL, ETH_DMACCR_DSL_64BIT); - 80040fe: 687b ldr r3, [r7, #4] - 8004100: 681b ldr r3, [r3, #0] - 8004102: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8004106: f8d3 3100 ldr.w r3, [r3, #256] ; 0x100 - 800410a: f423 13e0 bic.w r3, r3, #1835008 ; 0x1c0000 - 800410e: 687a ldr r2, [r7, #4] - 8004110: 6812 ldr r2, [r2, #0] - 8004112: f443 2300 orr.w r3, r3, #524288 ; 0x80000 - 8004116: f502 5280 add.w r2, r2, #4096 ; 0x1000 - 800411a: f8c2 3100 str.w r3, [r2, #256] ; 0x100 - - /* Set Receive Buffers Length (must be a multiple of 4) */ - if ((heth->Init.RxBuffLen % 0x4U) != 0x0U) - 800411e: 687b ldr r3, [r7, #4] - 8004120: 695b ldr r3, [r3, #20] - 8004122: f003 0303 and.w r3, r3, #3 - 8004126: 2b00 cmp r3, #0 - 8004128: d009 beq.n 800413e - { - /* Set Error Code */ - heth->ErrorCode = HAL_ETH_ERROR_PARAM; - 800412a: 687b ldr r3, [r7, #4] - 800412c: 2201 movs r2, #1 - 800412e: f8c3 2088 str.w r2, [r3, #136] ; 0x88 - /* Set State as Error */ - heth->gState = HAL_ETH_STATE_ERROR; - 8004132: 687b ldr r3, [r7, #4] - 8004134: 22e0 movs r2, #224 ; 0xe0 - 8004136: f8c3 2084 str.w r2, [r3, #132] ; 0x84 - /* Return Error */ - return HAL_ERROR; - 800413a: 2301 movs r3, #1 - 800413c: e049 b.n 80041d2 - } - else - { - MODIFY_REG(heth->Instance->DMACRCR, ETH_DMACRCR_RBSZ, ((heth->Init.RxBuffLen) << 1)); - 800413e: 687b ldr r3, [r7, #4] - 8004140: 681b ldr r3, [r3, #0] - 8004142: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8004146: f8d3 2108 ldr.w r2, [r3, #264] ; 0x108 - 800414a: 4b27 ldr r3, [pc, #156] ; (80041e8 ) - 800414c: 4013 ands r3, r2 - 800414e: 687a ldr r2, [r7, #4] - 8004150: 6952 ldr r2, [r2, #20] - 8004152: 0051 lsls r1, r2, #1 - 8004154: 687a ldr r2, [r7, #4] - 8004156: 6812 ldr r2, [r2, #0] - 8004158: 430b orrs r3, r1 - 800415a: f502 5280 add.w r2, r2, #4096 ; 0x1000 - 800415e: f8c2 3108 str.w r3, [r2, #264] ; 0x108 - } - - /*------------------ DMA Tx Descriptors Configuration ----------------------*/ - ETH_DMATxDescListInit(heth); - 8004162: 6878 ldr r0, [r7, #4] - 8004164: f001 f989 bl 800547a - - /*------------------ DMA Rx Descriptors Configuration ----------------------*/ - ETH_DMARxDescListInit(heth); - 8004168: 6878 ldr r0, [r7, #4] - 800416a: f001 f9cf bl 800550c - - /*--------------------- ETHERNET MAC Address Configuration ------------------*/ - /* Set MAC addr bits 32 to 47 */ - heth->Instance->MACA0HR = (((uint32_t)(heth->Init.MACAddr[5]) << 8) | (uint32_t)heth->Init.MACAddr[4]); - 800416e: 687b ldr r3, [r7, #4] - 8004170: 685b ldr r3, [r3, #4] - 8004172: 3305 adds r3, #5 - 8004174: 781b ldrb r3, [r3, #0] - 8004176: 021a lsls r2, r3, #8 - 8004178: 687b ldr r3, [r7, #4] - 800417a: 685b ldr r3, [r3, #4] - 800417c: 3304 adds r3, #4 - 800417e: 781b ldrb r3, [r3, #0] - 8004180: 4619 mov r1, r3 - 8004182: 687b ldr r3, [r7, #4] - 8004184: 681b ldr r3, [r3, #0] - 8004186: 430a orrs r2, r1 - 8004188: f8c3 2300 str.w r2, [r3, #768] ; 0x300 - /* Set MAC addr bits 0 to 31 */ - heth->Instance->MACA0LR = (((uint32_t)(heth->Init.MACAddr[3]) << 24) | ((uint32_t)(heth->Init.MACAddr[2]) << 16) | - 800418c: 687b ldr r3, [r7, #4] - 800418e: 685b ldr r3, [r3, #4] - 8004190: 3303 adds r3, #3 - 8004192: 781b ldrb r3, [r3, #0] - 8004194: 061a lsls r2, r3, #24 - 8004196: 687b ldr r3, [r7, #4] - 8004198: 685b ldr r3, [r3, #4] - 800419a: 3302 adds r3, #2 - 800419c: 781b ldrb r3, [r3, #0] - 800419e: 041b lsls r3, r3, #16 - 80041a0: 431a orrs r2, r3 - ((uint32_t)(heth->Init.MACAddr[1]) << 8) | (uint32_t)heth->Init.MACAddr[0]); - 80041a2: 687b ldr r3, [r7, #4] - 80041a4: 685b ldr r3, [r3, #4] - 80041a6: 3301 adds r3, #1 - 80041a8: 781b ldrb r3, [r3, #0] - 80041aa: 021b lsls r3, r3, #8 - heth->Instance->MACA0LR = (((uint32_t)(heth->Init.MACAddr[3]) << 24) | ((uint32_t)(heth->Init.MACAddr[2]) << 16) | - 80041ac: 431a orrs r2, r3 - ((uint32_t)(heth->Init.MACAddr[1]) << 8) | (uint32_t)heth->Init.MACAddr[0]); - 80041ae: 687b ldr r3, [r7, #4] - 80041b0: 685b ldr r3, [r3, #4] - 80041b2: 781b ldrb r3, [r3, #0] - 80041b4: 4619 mov r1, r3 - heth->Instance->MACA0LR = (((uint32_t)(heth->Init.MACAddr[3]) << 24) | ((uint32_t)(heth->Init.MACAddr[2]) << 16) | - 80041b6: 687b ldr r3, [r7, #4] - 80041b8: 681b ldr r3, [r3, #0] - ((uint32_t)(heth->Init.MACAddr[1]) << 8) | (uint32_t)heth->Init.MACAddr[0]); - 80041ba: 430a orrs r2, r1 - heth->Instance->MACA0LR = (((uint32_t)(heth->Init.MACAddr[3]) << 24) | ((uint32_t)(heth->Init.MACAddr[2]) << 16) | - 80041bc: f8c3 2304 str.w r2, [r3, #772] ; 0x304 - - heth->ErrorCode = HAL_ETH_ERROR_NONE; - 80041c0: 687b ldr r3, [r7, #4] - 80041c2: 2200 movs r2, #0 - 80041c4: f8c3 2088 str.w r2, [r3, #136] ; 0x88 - heth->gState = HAL_ETH_STATE_READY; - 80041c8: 687b ldr r3, [r7, #4] - 80041ca: 2210 movs r2, #16 - 80041cc: f8c3 2084 str.w r2, [r3, #132] ; 0x84 - - return HAL_OK; - 80041d0: 2300 movs r3, #0 -} - 80041d2: 4618 mov r0, r3 - 80041d4: 3710 adds r7, #16 - 80041d6: 46bd mov sp, r7 - 80041d8: bd80 pop {r7, pc} - 80041da: bf00 nop - 80041dc: 58024400 .word 0x58024400 - 80041e0: 58000400 .word 0x58000400 - 80041e4: 431bde83 .word 0x431bde83 - 80041e8: ffff8001 .word 0xffff8001 - -080041ec : - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_Start_IT(ETH_HandleTypeDef *heth) -{ - 80041ec: b580 push {r7, lr} - 80041ee: b082 sub sp, #8 - 80041f0: af00 add r7, sp, #0 - 80041f2: 6078 str r0, [r7, #4] - if (heth->gState == HAL_ETH_STATE_READY) - 80041f4: 687b ldr r3, [r7, #4] - 80041f6: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 80041fa: 2b10 cmp r3, #16 - 80041fc: d179 bne.n 80042f2 - { - heth->gState = HAL_ETH_STATE_BUSY; - 80041fe: 687b ldr r3, [r7, #4] - 8004200: 2223 movs r2, #35 ; 0x23 - 8004202: f8c3 2084 str.w r2, [r3, #132] ; 0x84 - - /* save IT mode to ETH Handle */ - heth->RxDescList.ItMode = 1U; - 8004206: 687b ldr r3, [r7, #4] - 8004208: 2201 movs r2, #1 - 800420a: 659a str r2, [r3, #88] ; 0x58 - /* Disable Rx MMC Interrupts */ - SET_BIT(heth->Instance->MMCRIMR, ETH_MMCRIMR_RXLPITRCIM | ETH_MMCRIMR_RXLPIUSCIM | \ - 800420c: 687b ldr r3, [r7, #4] - 800420e: 681b ldr r3, [r3, #0] - 8004210: f8d3 170c ldr.w r1, [r3, #1804] ; 0x70c - 8004214: 687b ldr r3, [r7, #4] - 8004216: 681a ldr r2, [r3, #0] - 8004218: 4b38 ldr r3, [pc, #224] ; (80042fc ) - 800421a: 430b orrs r3, r1 - 800421c: f8c2 370c str.w r3, [r2, #1804] ; 0x70c - ETH_MMCRIMR_RXUCGPIM | ETH_MMCRIMR_RXALGNERPIM | ETH_MMCRIMR_RXCRCERPIM); - - /* Disable Tx MMC Interrupts */ - SET_BIT(heth->Instance->MMCTIMR, ETH_MMCTIMR_TXLPITRCIM | ETH_MMCTIMR_TXLPIUSCIM | \ - 8004220: 687b ldr r3, [r7, #4] - 8004222: 681b ldr r3, [r3, #0] - 8004224: f8d3 1710 ldr.w r1, [r3, #1808] ; 0x710 - 8004228: 687b ldr r3, [r7, #4] - 800422a: 681a ldr r2, [r3, #0] - 800422c: 4b34 ldr r3, [pc, #208] ; (8004300 ) - 800422e: 430b orrs r3, r1 - 8004230: f8c2 3710 str.w r3, [r2, #1808] ; 0x710 - ETH_MMCTIMR_TXGPKTIM | ETH_MMCTIMR_TXMCOLGPIM | ETH_MMCTIMR_TXSCOLGPIM); - - /* Set nombre of descriptors to build */ - heth->RxDescList.RxBuildDescCnt = ETH_RX_DESC_CNT; - 8004234: 687b ldr r3, [r7, #4] - 8004236: 2204 movs r2, #4 - 8004238: 66da str r2, [r3, #108] ; 0x6c - - /* Build all descriptors */ - ETH_UpdateDescriptor(heth); - 800423a: 6878 ldr r0, [r7, #4] - 800423c: f000 f9eb bl 8004616 - - /* Enable the MAC transmission */ - SET_BIT(heth->Instance->MACCR, ETH_MACCR_TE); - 8004240: 687b ldr r3, [r7, #4] - 8004242: 681b ldr r3, [r3, #0] - 8004244: 681a ldr r2, [r3, #0] - 8004246: 687b ldr r3, [r7, #4] - 8004248: 681b ldr r3, [r3, #0] - 800424a: f042 0202 orr.w r2, r2, #2 - 800424e: 601a str r2, [r3, #0] - - /* Enable the MAC reception */ - SET_BIT(heth->Instance->MACCR, ETH_MACCR_RE); - 8004250: 687b ldr r3, [r7, #4] - 8004252: 681b ldr r3, [r3, #0] - 8004254: 681a ldr r2, [r3, #0] - 8004256: 687b ldr r3, [r7, #4] - 8004258: 681b ldr r3, [r3, #0] - 800425a: f042 0201 orr.w r2, r2, #1 - 800425e: 601a str r2, [r3, #0] - - /* Set the Flush Transmit FIFO bit */ - SET_BIT(heth->Instance->MTLTQOMR, ETH_MTLTQOMR_FTQ); - 8004260: 687b ldr r3, [r7, #4] - 8004262: 681b ldr r3, [r3, #0] - 8004264: f8d3 2d00 ldr.w r2, [r3, #3328] ; 0xd00 - 8004268: 687b ldr r3, [r7, #4] - 800426a: 681b ldr r3, [r3, #0] - 800426c: f042 0201 orr.w r2, r2, #1 - 8004270: f8c3 2d00 str.w r2, [r3, #3328] ; 0xd00 - - /* Enable the DMA transmission */ - SET_BIT(heth->Instance->DMACTCR, ETH_DMACTCR_ST); - 8004274: 687b ldr r3, [r7, #4] - 8004276: 681b ldr r3, [r3, #0] - 8004278: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 800427c: f8d3 3104 ldr.w r3, [r3, #260] ; 0x104 - 8004280: 687a ldr r2, [r7, #4] - 8004282: 6812 ldr r2, [r2, #0] - 8004284: f043 0301 orr.w r3, r3, #1 - 8004288: f502 5280 add.w r2, r2, #4096 ; 0x1000 - 800428c: f8c2 3104 str.w r3, [r2, #260] ; 0x104 - - /* Enable the DMA reception */ - SET_BIT(heth->Instance->DMACRCR, ETH_DMACRCR_SR); - 8004290: 687b ldr r3, [r7, #4] - 8004292: 681b ldr r3, [r3, #0] - 8004294: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8004298: f8d3 3108 ldr.w r3, [r3, #264] ; 0x108 - 800429c: 687a ldr r2, [r7, #4] - 800429e: 6812 ldr r2, [r2, #0] - 80042a0: f043 0301 orr.w r3, r3, #1 - 80042a4: f502 5280 add.w r2, r2, #4096 ; 0x1000 - 80042a8: f8c2 3108 str.w r3, [r2, #264] ; 0x108 - - /* Clear Tx and Rx process stopped flags */ - heth->Instance->DMACSR |= (ETH_DMACSR_TPS | ETH_DMACSR_RPS); - 80042ac: 687b ldr r3, [r7, #4] - 80042ae: 681b ldr r3, [r3, #0] - 80042b0: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80042b4: f8d3 3160 ldr.w r3, [r3, #352] ; 0x160 - 80042b8: 687a ldr r2, [r7, #4] - 80042ba: 6812 ldr r2, [r2, #0] - 80042bc: f443 7381 orr.w r3, r3, #258 ; 0x102 - 80042c0: f502 5280 add.w r2, r2, #4096 ; 0x1000 - 80042c4: f8c2 3160 str.w r3, [r2, #352] ; 0x160 - /* Enable ETH DMA interrupts: - - Tx complete interrupt - - Rx complete interrupt - - Fatal bus interrupt - */ - __HAL_ETH_DMA_ENABLE_IT(heth, (ETH_DMACIER_NIE | ETH_DMACIER_RIE | ETH_DMACIER_TIE | - 80042c8: 687b ldr r3, [r7, #4] - 80042ca: 681b ldr r3, [r3, #0] - 80042cc: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80042d0: f8d3 1134 ldr.w r1, [r3, #308] ; 0x134 - 80042d4: 687b ldr r3, [r7, #4] - 80042d6: 681a ldr r2, [r3, #0] - 80042d8: f24d 03c1 movw r3, #53441 ; 0xd0c1 - 80042dc: 430b orrs r3, r1 - 80042de: f502 5280 add.w r2, r2, #4096 ; 0x1000 - 80042e2: f8c2 3134 str.w r3, [r2, #308] ; 0x134 - ETH_DMACIER_FBEE | ETH_DMACIER_AIE | ETH_DMACIER_RBUE)); - - heth->gState = HAL_ETH_STATE_STARTED; - 80042e6: 687b ldr r3, [r7, #4] - 80042e8: 2223 movs r2, #35 ; 0x23 - 80042ea: f8c3 2084 str.w r2, [r3, #132] ; 0x84 - return HAL_OK; - 80042ee: 2300 movs r3, #0 - 80042f0: e000 b.n 80042f4 - } - else - { - return HAL_ERROR; - 80042f2: 2301 movs r3, #1 - } -} - 80042f4: 4618 mov r0, r3 - 80042f6: 3708 adds r7, #8 - 80042f8: 46bd mov sp, r7 - 80042fa: bd80 pop {r7, pc} - 80042fc: 0c020060 .word 0x0c020060 - 8004300: 0c20c000 .word 0x0c20c000 - -08004304 : - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_Stop_IT(ETH_HandleTypeDef *heth) -{ - 8004304: b480 push {r7} - 8004306: b085 sub sp, #20 - 8004308: af00 add r7, sp, #0 - 800430a: 6078 str r0, [r7, #4] - ETH_DMADescTypeDef *dmarxdesc; - uint32_t descindex; - - if (heth->gState == HAL_ETH_STATE_STARTED) - 800430c: 687b ldr r3, [r7, #4] - 800430e: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 8004312: 2b23 cmp r3, #35 ; 0x23 - 8004314: d165 bne.n 80043e2 - { - /* Set the ETH peripheral state to BUSY */ - heth->gState = HAL_ETH_STATE_BUSY; - 8004316: 687b ldr r3, [r7, #4] - 8004318: 2223 movs r2, #35 ; 0x23 - 800431a: f8c3 2084 str.w r2, [r3, #132] ; 0x84 - /* Disable interrupts: - - Tx complete interrupt - - Rx complete interrupt - - Fatal bus interrupt - */ - __HAL_ETH_DMA_DISABLE_IT(heth, (ETH_DMACIER_NIE | ETH_DMACIER_RIE | ETH_DMACIER_TIE | - 800431e: 687b ldr r3, [r7, #4] - 8004320: 681b ldr r3, [r3, #0] - 8004322: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8004326: f8d3 1134 ldr.w r1, [r3, #308] ; 0x134 - 800432a: 687b ldr r3, [r7, #4] - 800432c: 681a ldr r2, [r3, #0] - 800432e: 4b30 ldr r3, [pc, #192] ; (80043f0 ) - 8004330: 400b ands r3, r1 - 8004332: f502 5280 add.w r2, r2, #4096 ; 0x1000 - 8004336: f8c2 3134 str.w r3, [r2, #308] ; 0x134 - ETH_DMACIER_FBEE | ETH_DMACIER_AIE | ETH_DMACIER_RBUE)); - - /* Disable the DMA transmission */ - CLEAR_BIT(heth->Instance->DMACTCR, ETH_DMACTCR_ST); - 800433a: 687b ldr r3, [r7, #4] - 800433c: 681b ldr r3, [r3, #0] - 800433e: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8004342: f8d3 3104 ldr.w r3, [r3, #260] ; 0x104 - 8004346: 687a ldr r2, [r7, #4] - 8004348: 6812 ldr r2, [r2, #0] - 800434a: f023 0301 bic.w r3, r3, #1 - 800434e: f502 5280 add.w r2, r2, #4096 ; 0x1000 - 8004352: f8c2 3104 str.w r3, [r2, #260] ; 0x104 - - /* Disable the DMA reception */ - CLEAR_BIT(heth->Instance->DMACRCR, ETH_DMACRCR_SR); - 8004356: 687b ldr r3, [r7, #4] - 8004358: 681b ldr r3, [r3, #0] - 800435a: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 800435e: f8d3 3108 ldr.w r3, [r3, #264] ; 0x108 - 8004362: 687a ldr r2, [r7, #4] - 8004364: 6812 ldr r2, [r2, #0] - 8004366: f023 0301 bic.w r3, r3, #1 - 800436a: f502 5280 add.w r2, r2, #4096 ; 0x1000 - 800436e: f8c2 3108 str.w r3, [r2, #264] ; 0x108 - - /* Disable the MAC reception */ - CLEAR_BIT(heth->Instance->MACCR, ETH_MACCR_RE); - 8004372: 687b ldr r3, [r7, #4] - 8004374: 681b ldr r3, [r3, #0] - 8004376: 681a ldr r2, [r3, #0] - 8004378: 687b ldr r3, [r7, #4] - 800437a: 681b ldr r3, [r3, #0] - 800437c: f022 0201 bic.w r2, r2, #1 - 8004380: 601a str r2, [r3, #0] - /* Set the Flush Transmit FIFO bit */ - SET_BIT(heth->Instance->MTLTQOMR, ETH_MTLTQOMR_FTQ); - 8004382: 687b ldr r3, [r7, #4] - 8004384: 681b ldr r3, [r3, #0] - 8004386: f8d3 2d00 ldr.w r2, [r3, #3328] ; 0xd00 - 800438a: 687b ldr r3, [r7, #4] - 800438c: 681b ldr r3, [r3, #0] - 800438e: f042 0201 orr.w r2, r2, #1 - 8004392: f8c3 2d00 str.w r2, [r3, #3328] ; 0xd00 - - /* Disable the MAC transmission */ - CLEAR_BIT(heth->Instance->MACCR, ETH_MACCR_TE); - 8004396: 687b ldr r3, [r7, #4] - 8004398: 681b ldr r3, [r3, #0] - 800439a: 681a ldr r2, [r3, #0] - 800439c: 687b ldr r3, [r7, #4] - 800439e: 681b ldr r3, [r3, #0] - 80043a0: f022 0202 bic.w r2, r2, #2 - 80043a4: 601a str r2, [r3, #0] - - /* Clear IOC bit to all Rx descriptors */ - for (descindex = 0; descindex < (uint32_t)ETH_RX_DESC_CNT; descindex++) - 80043a6: 2300 movs r3, #0 - 80043a8: 60fb str r3, [r7, #12] - 80043aa: e00e b.n 80043ca - { - dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descindex]; - 80043ac: 687b ldr r3, [r7, #4] - 80043ae: 68fa ldr r2, [r7, #12] - 80043b0: 3212 adds r2, #18 - 80043b2: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 80043b6: 60bb str r3, [r7, #8] - CLEAR_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCRF_IOC); - 80043b8: 68bb ldr r3, [r7, #8] - 80043ba: 68db ldr r3, [r3, #12] - 80043bc: f023 4280 bic.w r2, r3, #1073741824 ; 0x40000000 - 80043c0: 68bb ldr r3, [r7, #8] - 80043c2: 60da str r2, [r3, #12] - for (descindex = 0; descindex < (uint32_t)ETH_RX_DESC_CNT; descindex++) - 80043c4: 68fb ldr r3, [r7, #12] - 80043c6: 3301 adds r3, #1 - 80043c8: 60fb str r3, [r7, #12] - 80043ca: 68fb ldr r3, [r7, #12] - 80043cc: 2b03 cmp r3, #3 - 80043ce: d9ed bls.n 80043ac - } - - heth->RxDescList.ItMode = 0U; - 80043d0: 687b ldr r3, [r7, #4] - 80043d2: 2200 movs r2, #0 - 80043d4: 659a str r2, [r3, #88] ; 0x58 - - heth->gState = HAL_ETH_STATE_READY; - 80043d6: 687b ldr r3, [r7, #4] - 80043d8: 2210 movs r2, #16 - 80043da: f8c3 2084 str.w r2, [r3, #132] ; 0x84 - - /* Return function status */ - return HAL_OK; - 80043de: 2300 movs r3, #0 - 80043e0: e000 b.n 80043e4 - } - else - { - return HAL_ERROR; - 80043e2: 2301 movs r3, #1 - } -} - 80043e4: 4618 mov r0, r3 - 80043e6: 3714 adds r7, #20 - 80043e8: 46bd mov sp, r7 - 80043ea: f85d 7b04 ldr.w r7, [sp], #4 - 80043ee: 4770 bx lr - 80043f0: ffff2f3e .word 0xffff2f3e - -080043f4 : - * the configuration information for ETHERNET module - * @param pTxConfig: Hold the configuration of packet to be transmitted - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_Transmit_IT(ETH_HandleTypeDef *heth, ETH_TxPacketConfig *pTxConfig) -{ - 80043f4: b580 push {r7, lr} - 80043f6: b082 sub sp, #8 - 80043f8: af00 add r7, sp, #0 - 80043fa: 6078 str r0, [r7, #4] - 80043fc: 6039 str r1, [r7, #0] - if (pTxConfig == NULL) - 80043fe: 683b ldr r3, [r7, #0] - 8004400: 2b00 cmp r3, #0 - 8004402: d109 bne.n 8004418 - { - heth->ErrorCode |= HAL_ETH_ERROR_PARAM; - 8004404: 687b ldr r3, [r7, #4] - 8004406: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 - 800440a: f043 0201 orr.w r2, r3, #1 - 800440e: 687b ldr r3, [r7, #4] - 8004410: f8c3 2088 str.w r2, [r3, #136] ; 0x88 - return HAL_ERROR; - 8004414: 2301 movs r3, #1 - 8004416: e03a b.n 800448e - } - - if (heth->gState == HAL_ETH_STATE_STARTED) - 8004418: 687b ldr r3, [r7, #4] - 800441a: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 800441e: 2b23 cmp r3, #35 ; 0x23 - 8004420: d134 bne.n 800448c - { - /* Save the packet pointer to release. */ - heth->TxDescList.CurrentPacketAddress = (uint32_t *)pTxConfig->pData; - 8004422: 683b ldr r3, [r7, #0] - 8004424: 6b5a ldr r2, [r3, #52] ; 0x34 - 8004426: 687b ldr r3, [r7, #4] - 8004428: 63da str r2, [r3, #60] ; 0x3c - - /* Config DMA Tx descriptor by Tx Packet info */ - if (ETH_Prepare_Tx_Descriptors(heth, pTxConfig, 1) != HAL_ETH_ERROR_NONE) - 800442a: 2201 movs r2, #1 - 800442c: 6839 ldr r1, [r7, #0] - 800442e: 6878 ldr r0, [r7, #4] - 8004430: f001 f8ca bl 80055c8 - 8004434: 4603 mov r3, r0 - 8004436: 2b00 cmp r3, #0 - 8004438: d009 beq.n 800444e - { - heth->ErrorCode |= HAL_ETH_ERROR_BUSY; - 800443a: 687b ldr r3, [r7, #4] - 800443c: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 - 8004440: f043 0202 orr.w r2, r3, #2 - 8004444: 687b ldr r3, [r7, #4] - 8004446: f8c3 2088 str.w r2, [r3, #136] ; 0x88 - return HAL_ERROR; - 800444a: 2301 movs r3, #1 - 800444c: e01f b.n 800448e - __ASM volatile ("dsb 0xF":::"memory"); - 800444e: f3bf 8f4f dsb sy -} - 8004452: bf00 nop - - /* Ensure completion of descriptor preparation before transmission start */ - __DSB(); - - /* Incr current tx desc index */ - INCR_TX_DESC_INDEX(heth->TxDescList.CurTxDesc, 1U); - 8004454: 687b ldr r3, [r7, #4] - 8004456: 6a9b ldr r3, [r3, #40] ; 0x28 - 8004458: 1c5a adds r2, r3, #1 - 800445a: 687b ldr r3, [r7, #4] - 800445c: 629a str r2, [r3, #40] ; 0x28 - 800445e: 687b ldr r3, [r7, #4] - 8004460: 6a9b ldr r3, [r3, #40] ; 0x28 - 8004462: 2b03 cmp r3, #3 - 8004464: d904 bls.n 8004470 - 8004466: 687b ldr r3, [r7, #4] - 8004468: 6a9b ldr r3, [r3, #40] ; 0x28 - 800446a: 1f1a subs r2, r3, #4 - 800446c: 687b ldr r3, [r7, #4] - 800446e: 629a str r2, [r3, #40] ; 0x28 - - /* Start transmission */ - /* issue a poll command to Tx DMA by writing address of next immediate free descriptor */ - WRITE_REG(heth->Instance->DMACTDTPR, (uint32_t)(heth->TxDescList.TxDesc[heth->TxDescList.CurTxDesc])); - 8004470: 687b ldr r3, [r7, #4] - 8004472: 6a99 ldr r1, [r3, #40] ; 0x28 - 8004474: 687b ldr r3, [r7, #4] - 8004476: 681a ldr r2, [r3, #0] - 8004478: 687b ldr r3, [r7, #4] - 800447a: 3106 adds r1, #6 - 800447c: f853 3021 ldr.w r3, [r3, r1, lsl #2] - 8004480: f502 5280 add.w r2, r2, #4096 ; 0x1000 - 8004484: f8c2 3120 str.w r3, [r2, #288] ; 0x120 - - return HAL_OK; - 8004488: 2300 movs r3, #0 - 800448a: e000 b.n 800448e - - } - else - { - return HAL_ERROR; - 800448c: 2301 movs r3, #1 - } -} - 800448e: 4618 mov r0, r3 - 8004490: 3708 adds r7, #8 - 8004492: 46bd mov sp, r7 - 8004494: bd80 pop {r7, pc} - -08004496 : - * the configuration information for ETHERNET module - * @param pAppBuff: Pointer to an application buffer to receive the packet. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_ReadData(ETH_HandleTypeDef *heth, void **pAppBuff) -{ - 8004496: b580 push {r7, lr} - 8004498: b088 sub sp, #32 - 800449a: af00 add r7, sp, #0 - 800449c: 6078 str r0, [r7, #4] - 800449e: 6039 str r1, [r7, #0] - uint32_t descidx; - ETH_DMADescTypeDef *dmarxdesc; - uint32_t desccnt = 0U; - 80044a0: 2300 movs r3, #0 - 80044a2: 617b str r3, [r7, #20] - uint32_t desccntmax; - uint32_t bufflength; - uint8_t rxdataready = 0U; - 80044a4: 2300 movs r3, #0 - 80044a6: 73fb strb r3, [r7, #15] - - - if (pAppBuff == NULL) - 80044a8: 683b ldr r3, [r7, #0] - 80044aa: 2b00 cmp r3, #0 - 80044ac: d109 bne.n 80044c2 - { - heth->ErrorCode |= HAL_ETH_ERROR_PARAM; - 80044ae: 687b ldr r3, [r7, #4] - 80044b0: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 - 80044b4: f043 0201 orr.w r2, r3, #1 - 80044b8: 687b ldr r3, [r7, #4] - 80044ba: f8c3 2088 str.w r2, [r3, #136] ; 0x88 - return HAL_ERROR; - 80044be: 2301 movs r3, #1 - 80044c0: e0a5 b.n 800460e - } - - if (heth->gState != HAL_ETH_STATE_STARTED) - 80044c2: 687b ldr r3, [r7, #4] - 80044c4: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 80044c8: 2b23 cmp r3, #35 ; 0x23 - 80044ca: d001 beq.n 80044d0 - { - return HAL_ERROR; - 80044cc: 2301 movs r3, #1 - 80044ce: e09e b.n 800460e - } - - descidx = heth->RxDescList.RxDescIdx; - 80044d0: 687b ldr r3, [r7, #4] - 80044d2: 6ddb ldr r3, [r3, #92] ; 0x5c - 80044d4: 61fb str r3, [r7, #28] - dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descidx]; - 80044d6: 687b ldr r3, [r7, #4] - 80044d8: 69fa ldr r2, [r7, #28] - 80044da: 3212 adds r2, #18 - 80044dc: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 80044e0: 61bb str r3, [r7, #24] - desccntmax = ETH_RX_DESC_CNT - heth->RxDescList.RxBuildDescCnt; - 80044e2: 687b ldr r3, [r7, #4] - 80044e4: 6edb ldr r3, [r3, #108] ; 0x6c - 80044e6: f1c3 0304 rsb r3, r3, #4 - 80044ea: 60bb str r3, [r7, #8] - - /* Check if descriptor is not owned by DMA */ - while ((READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_OWN) == (uint32_t)RESET) && (desccnt < desccntmax) - 80044ec: e067 b.n 80045be - && (rxdataready == 0U)) - { - if (READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_CTXT) != (uint32_t)RESET) - 80044ee: 69bb ldr r3, [r7, #24] - 80044f0: 68db ldr r3, [r3, #12] - 80044f2: f003 4380 and.w r3, r3, #1073741824 ; 0x40000000 - 80044f6: 2b00 cmp r3, #0 - 80044f8: d007 beq.n 800450a - { - /* Get timestamp high */ - heth->RxDescList.TimeStamp.TimeStampHigh = dmarxdesc->DESC1; - 80044fa: 69bb ldr r3, [r7, #24] - 80044fc: 685a ldr r2, [r3, #4] - 80044fe: 687b ldr r3, [r7, #4] - 8004500: 679a str r2, [r3, #120] ; 0x78 - /* Get timestamp low */ - heth->RxDescList.TimeStamp.TimeStampLow = dmarxdesc->DESC0; - 8004502: 69bb ldr r3, [r7, #24] - 8004504: 681a ldr r2, [r3, #0] - 8004506: 687b ldr r3, [r7, #4] - 8004508: 675a str r2, [r3, #116] ; 0x74 - } - if ((READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_FD) != (uint32_t)RESET) || (heth->RxDescList.pRxStart != NULL)) - 800450a: 69bb ldr r3, [r7, #24] - 800450c: 68db ldr r3, [r3, #12] - 800450e: f003 5300 and.w r3, r3, #536870912 ; 0x20000000 - 8004512: 2b00 cmp r3, #0 - 8004514: d103 bne.n 800451e - 8004516: 687b ldr r3, [r7, #4] - 8004518: 6fdb ldr r3, [r3, #124] ; 0x7c - 800451a: 2b00 cmp r3, #0 - 800451c: d03d beq.n 800459a - { - /* Check if first descriptor */ - if (READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_FD) != (uint32_t)RESET) - 800451e: 69bb ldr r3, [r7, #24] - 8004520: 68db ldr r3, [r3, #12] - 8004522: f003 5300 and.w r3, r3, #536870912 ; 0x20000000 - 8004526: 2b00 cmp r3, #0 - 8004528: d005 beq.n 8004536 - { - heth->RxDescList.RxDescCnt = 0; - 800452a: 687b ldr r3, [r7, #4] - 800452c: 2200 movs r2, #0 - 800452e: 661a str r2, [r3, #96] ; 0x60 - heth->RxDescList.RxDataLength = 0; - 8004530: 687b ldr r3, [r7, #4] - 8004532: 2200 movs r2, #0 - 8004534: 665a str r2, [r3, #100] ; 0x64 - } - - /* Check if last descriptor */ - bufflength = heth->Init.RxBuffLen; - 8004536: 687b ldr r3, [r7, #4] - 8004538: 695b ldr r3, [r3, #20] - 800453a: 613b str r3, [r7, #16] - if (READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_LD) != (uint32_t)RESET) - 800453c: 69bb ldr r3, [r7, #24] - 800453e: 68db ldr r3, [r3, #12] - 8004540: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 8004544: 2b00 cmp r3, #0 - 8004546: d00d beq.n 8004564 - { - bufflength = READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_PL) - heth->RxDescList.RxDataLength; - 8004548: 69bb ldr r3, [r7, #24] - 800454a: 68db ldr r3, [r3, #12] - 800454c: f3c3 020e ubfx r2, r3, #0, #15 - 8004550: 687b ldr r3, [r7, #4] - 8004552: 6e5b ldr r3, [r3, #100] ; 0x64 - 8004554: 1ad3 subs r3, r2, r3 - 8004556: 613b str r3, [r7, #16] - - /* Save Last descriptor index */ - heth->RxDescList.pRxLastRxDesc = dmarxdesc->DESC3; - 8004558: 69bb ldr r3, [r7, #24] - 800455a: 68da ldr r2, [r3, #12] - 800455c: 687b ldr r3, [r7, #4] - 800455e: 671a str r2, [r3, #112] ; 0x70 - - /* Packet ready */ - rxdataready = 1; - 8004560: 2301 movs r3, #1 - 8004562: 73fb strb r3, [r7, #15] - /*Call registered Link callback*/ - heth->rxLinkCallback(&heth->RxDescList.pRxStart, &heth->RxDescList.pRxEnd, - (uint8_t *)dmarxdesc->BackupAddr0, bufflength); -#else - /* Link callback */ - HAL_ETH_RxLinkCallback(&heth->RxDescList.pRxStart, &heth->RxDescList.pRxEnd, - 8004564: 687b ldr r3, [r7, #4] - 8004566: f103 007c add.w r0, r3, #124 ; 0x7c - 800456a: 687b ldr r3, [r7, #4] - 800456c: f103 0180 add.w r1, r3, #128 ; 0x80 - (uint8_t *)dmarxdesc->BackupAddr0, (uint16_t) bufflength); - 8004570: 69bb ldr r3, [r7, #24] - 8004572: 691b ldr r3, [r3, #16] - HAL_ETH_RxLinkCallback(&heth->RxDescList.pRxStart, &heth->RxDescList.pRxEnd, - 8004574: 461a mov r2, r3 - 8004576: 693b ldr r3, [r7, #16] - 8004578: b29b uxth r3, r3 - 800457a: f00b fd99 bl 80100b0 -#endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ - heth->RxDescList.RxDescCnt++; - 800457e: 687b ldr r3, [r7, #4] - 8004580: 6e1b ldr r3, [r3, #96] ; 0x60 - 8004582: 1c5a adds r2, r3, #1 - 8004584: 687b ldr r3, [r7, #4] - 8004586: 661a str r2, [r3, #96] ; 0x60 - heth->RxDescList.RxDataLength += bufflength; - 8004588: 687b ldr r3, [r7, #4] - 800458a: 6e5a ldr r2, [r3, #100] ; 0x64 - 800458c: 693b ldr r3, [r7, #16] - 800458e: 441a add r2, r3 - 8004590: 687b ldr r3, [r7, #4] - 8004592: 665a str r2, [r3, #100] ; 0x64 - - /* Clear buffer pointer */ - dmarxdesc->BackupAddr0 = 0; - 8004594: 69bb ldr r3, [r7, #24] - 8004596: 2200 movs r2, #0 - 8004598: 611a str r2, [r3, #16] - } - - /* Increment current rx descriptor index */ - INCR_RX_DESC_INDEX(descidx, 1U); - 800459a: 69fb ldr r3, [r7, #28] - 800459c: 3301 adds r3, #1 - 800459e: 61fb str r3, [r7, #28] - 80045a0: 69fb ldr r3, [r7, #28] - 80045a2: 2b03 cmp r3, #3 - 80045a4: d902 bls.n 80045ac - 80045a6: 69fb ldr r3, [r7, #28] - 80045a8: 3b04 subs r3, #4 - 80045aa: 61fb str r3, [r7, #28] - /* Get current descriptor address */ - dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descidx]; - 80045ac: 687b ldr r3, [r7, #4] - 80045ae: 69fa ldr r2, [r7, #28] - 80045b0: 3212 adds r2, #18 - 80045b2: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 80045b6: 61bb str r3, [r7, #24] - desccnt++; - 80045b8: 697b ldr r3, [r7, #20] - 80045ba: 3301 adds r3, #1 - 80045bc: 617b str r3, [r7, #20] - while ((READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_OWN) == (uint32_t)RESET) && (desccnt < desccntmax) - 80045be: 69bb ldr r3, [r7, #24] - 80045c0: 68db ldr r3, [r3, #12] - && (rxdataready == 0U)) - 80045c2: 2b00 cmp r3, #0 - 80045c4: db06 blt.n 80045d4 - while ((READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_OWN) == (uint32_t)RESET) && (desccnt < desccntmax) - 80045c6: 697a ldr r2, [r7, #20] - 80045c8: 68bb ldr r3, [r7, #8] - 80045ca: 429a cmp r2, r3 - 80045cc: d202 bcs.n 80045d4 - && (rxdataready == 0U)) - 80045ce: 7bfb ldrb r3, [r7, #15] - 80045d0: 2b00 cmp r3, #0 - 80045d2: d08c beq.n 80044ee - } - - heth->RxDescList.RxBuildDescCnt += desccnt; - 80045d4: 687b ldr r3, [r7, #4] - 80045d6: 6eda ldr r2, [r3, #108] ; 0x6c - 80045d8: 697b ldr r3, [r7, #20] - 80045da: 441a add r2, r3 - 80045dc: 687b ldr r3, [r7, #4] - 80045de: 66da str r2, [r3, #108] ; 0x6c - if ((heth->RxDescList.RxBuildDescCnt) != 0U) - 80045e0: 687b ldr r3, [r7, #4] - 80045e2: 6edb ldr r3, [r3, #108] ; 0x6c - 80045e4: 2b00 cmp r3, #0 - 80045e6: d002 beq.n 80045ee - { - /* Update Descriptors */ - ETH_UpdateDescriptor(heth); - 80045e8: 6878 ldr r0, [r7, #4] - 80045ea: f000 f814 bl 8004616 - } - - heth->RxDescList.RxDescIdx = descidx; - 80045ee: 687b ldr r3, [r7, #4] - 80045f0: 69fa ldr r2, [r7, #28] - 80045f2: 65da str r2, [r3, #92] ; 0x5c - - if (rxdataready == 1U) - 80045f4: 7bfb ldrb r3, [r7, #15] - 80045f6: 2b01 cmp r3, #1 - 80045f8: d108 bne.n 800460c - { - /* Return received packet */ - *pAppBuff = heth->RxDescList.pRxStart; - 80045fa: 687b ldr r3, [r7, #4] - 80045fc: 6fda ldr r2, [r3, #124] ; 0x7c - 80045fe: 683b ldr r3, [r7, #0] - 8004600: 601a str r2, [r3, #0] - /* Reset first element */ - heth->RxDescList.pRxStart = NULL; - 8004602: 687b ldr r3, [r7, #4] - 8004604: 2200 movs r2, #0 - 8004606: 67da str r2, [r3, #124] ; 0x7c - - return HAL_OK; - 8004608: 2300 movs r3, #0 - 800460a: e000 b.n 800460e - } - - /* Packet not ready */ - return HAL_ERROR; - 800460c: 2301 movs r3, #1 -} - 800460e: 4618 mov r0, r3 - 8004610: 3720 adds r7, #32 - 8004612: 46bd mov sp, r7 - 8004614: bd80 pop {r7, pc} - -08004616 : - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval HAL status - */ -static void ETH_UpdateDescriptor(ETH_HandleTypeDef *heth) -{ - 8004616: b580 push {r7, lr} - 8004618: b088 sub sp, #32 - 800461a: af00 add r7, sp, #0 - 800461c: 6078 str r0, [r7, #4] - uint32_t descidx; - uint32_t desccount; - ETH_DMADescTypeDef *dmarxdesc; - uint8_t *buff = NULL; - 800461e: 2300 movs r3, #0 - 8004620: 60fb str r3, [r7, #12] - uint8_t allocStatus = 1U; - 8004622: 2301 movs r3, #1 - 8004624: 74fb strb r3, [r7, #19] - - descidx = heth->RxDescList.RxBuildDescIdx; - 8004626: 687b ldr r3, [r7, #4] - 8004628: 6e9b ldr r3, [r3, #104] ; 0x68 - 800462a: 61fb str r3, [r7, #28] - dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descidx]; - 800462c: 687b ldr r3, [r7, #4] - 800462e: 69fa ldr r2, [r7, #28] - 8004630: 3212 adds r2, #18 - 8004632: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8004636: 617b str r3, [r7, #20] - desccount = heth->RxDescList.RxBuildDescCnt; - 8004638: 687b ldr r3, [r7, #4] - 800463a: 6edb ldr r3, [r3, #108] ; 0x6c - 800463c: 61bb str r3, [r7, #24] - - while ((desccount > 0U) && (allocStatus != 0U)) - 800463e: e03b b.n 80046b8 - { - /* Check if a buffer's attached the descriptor */ - if (READ_REG(dmarxdesc->BackupAddr0) == 0U) - 8004640: 697b ldr r3, [r7, #20] - 8004642: 691b ldr r3, [r3, #16] - 8004644: 2b00 cmp r3, #0 - 8004646: d112 bne.n 800466e -#if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) - /*Call registered Allocate callback*/ - heth->rxAllocateCallback(&buff); -#else - /* Allocate callback */ - HAL_ETH_RxAllocateCallback(&buff); - 8004648: f107 030c add.w r3, r7, #12 - 800464c: 4618 mov r0, r3 - 800464e: f00b fcff bl 8010050 -#endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ - if (buff == NULL) - 8004652: 68fb ldr r3, [r7, #12] - 8004654: 2b00 cmp r3, #0 - 8004656: d102 bne.n 800465e - { - allocStatus = 0U; - 8004658: 2300 movs r3, #0 - 800465a: 74fb strb r3, [r7, #19] - 800465c: e007 b.n 800466e - } - else - { - WRITE_REG(dmarxdesc->BackupAddr0, (uint32_t)buff); - 800465e: 68fb ldr r3, [r7, #12] - 8004660: 461a mov r2, r3 - 8004662: 697b ldr r3, [r7, #20] - 8004664: 611a str r2, [r3, #16] - WRITE_REG(dmarxdesc->DESC0, (uint32_t)buff); - 8004666: 68fb ldr r3, [r7, #12] - 8004668: 461a mov r2, r3 - 800466a: 697b ldr r3, [r7, #20] - 800466c: 601a str r2, [r3, #0] - } - } - - if (allocStatus != 0U) - 800466e: 7cfb ldrb r3, [r7, #19] - 8004670: 2b00 cmp r3, #0 - 8004672: d021 beq.n 80046b8 - __ASM volatile ("dmb 0xF":::"memory"); - 8004674: f3bf 8f5f dmb sy -} - 8004678: bf00 nop - { - /* Ensure rest of descriptor is written to RAM before the OWN bit */ - __DMB(); - - if (heth->RxDescList.ItMode != 0U) - 800467a: 687b ldr r3, [r7, #4] - 800467c: 6d9b ldr r3, [r3, #88] ; 0x58 - 800467e: 2b00 cmp r3, #0 - 8004680: d004 beq.n 800468c - { - WRITE_REG(dmarxdesc->DESC3, ETH_DMARXNDESCRF_OWN | ETH_DMARXNDESCRF_BUF1V | ETH_DMARXNDESCRF_IOC); - 8004682: 697b ldr r3, [r7, #20] - 8004684: f04f 4241 mov.w r2, #3238002688 ; 0xc1000000 - 8004688: 60da str r2, [r3, #12] - 800468a: e003 b.n 8004694 - } - else - { - WRITE_REG(dmarxdesc->DESC3, ETH_DMARXNDESCRF_OWN | ETH_DMARXNDESCRF_BUF1V); - 800468c: 697b ldr r3, [r7, #20] - 800468e: f04f 4201 mov.w r2, #2164260864 ; 0x81000000 - 8004692: 60da str r2, [r3, #12] - } - - /* Increment current rx descriptor index */ - INCR_RX_DESC_INDEX(descidx, 1U); - 8004694: 69fb ldr r3, [r7, #28] - 8004696: 3301 adds r3, #1 - 8004698: 61fb str r3, [r7, #28] - 800469a: 69fb ldr r3, [r7, #28] - 800469c: 2b03 cmp r3, #3 - 800469e: d902 bls.n 80046a6 - 80046a0: 69fb ldr r3, [r7, #28] - 80046a2: 3b04 subs r3, #4 - 80046a4: 61fb str r3, [r7, #28] - /* Get current descriptor address */ - dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descidx]; - 80046a6: 687b ldr r3, [r7, #4] - 80046a8: 69fa ldr r2, [r7, #28] - 80046aa: 3212 adds r2, #18 - 80046ac: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 80046b0: 617b str r3, [r7, #20] - desccount--; - 80046b2: 69bb ldr r3, [r7, #24] - 80046b4: 3b01 subs r3, #1 - 80046b6: 61bb str r3, [r7, #24] - while ((desccount > 0U) && (allocStatus != 0U)) - 80046b8: 69bb ldr r3, [r7, #24] - 80046ba: 2b00 cmp r3, #0 - 80046bc: d002 beq.n 80046c4 - 80046be: 7cfb ldrb r3, [r7, #19] - 80046c0: 2b00 cmp r3, #0 - 80046c2: d1bd bne.n 8004640 - } - } - - if (heth->RxDescList.RxBuildDescCnt != desccount) - 80046c4: 687b ldr r3, [r7, #4] - 80046c6: 6edb ldr r3, [r3, #108] ; 0x6c - 80046c8: 69ba ldr r2, [r7, #24] - 80046ca: 429a cmp r2, r3 - 80046cc: d00d beq.n 80046ea - { - /* Set the Tail pointer address */ - WRITE_REG(heth->Instance->DMACRDTPR, 0); - 80046ce: 687b ldr r3, [r7, #4] - 80046d0: 681b ldr r3, [r3, #0] - 80046d2: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80046d6: 461a mov r2, r3 - 80046d8: 2300 movs r3, #0 - 80046da: f8c2 3128 str.w r3, [r2, #296] ; 0x128 - - heth->RxDescList.RxBuildDescIdx = descidx; - 80046de: 687b ldr r3, [r7, #4] - 80046e0: 69fa ldr r2, [r7, #28] - 80046e2: 669a str r2, [r3, #104] ; 0x68 - heth->RxDescList.RxBuildDescCnt = desccount; - 80046e4: 687b ldr r3, [r7, #4] - 80046e6: 69ba ldr r2, [r7, #24] - 80046e8: 66da str r2, [r3, #108] ; 0x6c - } -} - 80046ea: bf00 nop - 80046ec: 3720 adds r7, #32 - 80046ee: 46bd mov sp, r7 - 80046f0: bd80 pop {r7, pc} - -080046f2 : - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_ReleaseTxPacket(ETH_HandleTypeDef *heth) -{ - 80046f2: b580 push {r7, lr} - 80046f4: b086 sub sp, #24 - 80046f6: af00 add r7, sp, #0 - 80046f8: 6078 str r0, [r7, #4] - ETH_TxDescListTypeDef *dmatxdesclist = &heth->TxDescList; - 80046fa: 687b ldr r3, [r7, #4] - 80046fc: 3318 adds r3, #24 - 80046fe: 60bb str r3, [r7, #8] - uint32_t numOfBuf = dmatxdesclist->BuffersInUse; - 8004700: 68bb ldr r3, [r7, #8] - 8004702: 6a9b ldr r3, [r3, #40] ; 0x28 - 8004704: 617b str r3, [r7, #20] - uint32_t idx = dmatxdesclist->releaseIndex; - 8004706: 68bb ldr r3, [r7, #8] - 8004708: 6adb ldr r3, [r3, #44] ; 0x2c - 800470a: 613b str r3, [r7, #16] - uint8_t pktTxStatus = 1U; - 800470c: 2301 movs r3, #1 - 800470e: 73fb strb r3, [r7, #15] -#ifdef HAL_ETH_USE_PTP - ETH_TimeStampTypeDef *timestamp = &heth->TxTimestamp; -#endif /* HAL_ETH_USE_PTP */ - - /* Loop through buffers in use. */ - while ((numOfBuf != 0U) && (pktTxStatus != 0U)) - 8004710: e03f b.n 8004792 - { - pktInUse = 1U; - 8004712: 2301 movs r3, #1 - 8004714: 73bb strb r3, [r7, #14] - numOfBuf--; - 8004716: 697b ldr r3, [r7, #20] - 8004718: 3b01 subs r3, #1 - 800471a: 617b str r3, [r7, #20] - /* If no packet, just examine the next packet. */ - if (dmatxdesclist->PacketAddress[idx] == NULL) - 800471c: 68ba ldr r2, [r7, #8] - 800471e: 693b ldr r3, [r7, #16] - 8004720: 3304 adds r3, #4 - 8004722: 009b lsls r3, r3, #2 - 8004724: 4413 add r3, r2 - 8004726: 685b ldr r3, [r3, #4] - 8004728: 2b00 cmp r3, #0 - 800472a: d106 bne.n 800473a - { - /* No packet in use, skip to next. */ - idx = (idx + 1U) & (ETH_TX_DESC_CNT - 1U); - 800472c: 693b ldr r3, [r7, #16] - 800472e: 3301 adds r3, #1 - 8004730: f003 0303 and.w r3, r3, #3 - 8004734: 613b str r3, [r7, #16] - pktInUse = 0U; - 8004736: 2300 movs r3, #0 - 8004738: 73bb strb r3, [r7, #14] - } - - if (pktInUse != 0U) - 800473a: 7bbb ldrb r3, [r7, #14] - 800473c: 2b00 cmp r3, #0 - 800473e: d028 beq.n 8004792 - { - /* Determine if the packet has been transmitted. */ - if ((heth->Init.TxDesc[idx].DESC3 & ETH_DMATXNDESCRF_OWN) == 0U) - 8004740: 687b ldr r3, [r7, #4] - 8004742: 68d9 ldr r1, [r3, #12] - 8004744: 693a ldr r2, [r7, #16] - 8004746: 4613 mov r3, r2 - 8004748: 005b lsls r3, r3, #1 - 800474a: 4413 add r3, r2 - 800474c: 00db lsls r3, r3, #3 - 800474e: 440b add r3, r1 - 8004750: 68db ldr r3, [r3, #12] - 8004752: 2b00 cmp r3, #0 - 8004754: db1b blt.n 800478e -#ifdef HAL_ETH_USE_PTP - /* Handle Ptp */ - HAL_ETH_TxPtpCallback(dmatxdesclist->PacketAddress[idx], timestamp); -#endif /* HAL_ETH_USE_PTP */ - /* Release the packet. */ - HAL_ETH_TxFreeCallback(dmatxdesclist->PacketAddress[idx]); - 8004756: 68ba ldr r2, [r7, #8] - 8004758: 693b ldr r3, [r7, #16] - 800475a: 3304 adds r3, #4 - 800475c: 009b lsls r3, r3, #2 - 800475e: 4413 add r3, r2 - 8004760: 685b ldr r3, [r3, #4] - 8004762: 4618 mov r0, r3 - 8004764: f00b fd0c bl 8010180 -#endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ - - /* Clear the entry in the in-use array. */ - dmatxdesclist->PacketAddress[idx] = NULL; - 8004768: 68ba ldr r2, [r7, #8] - 800476a: 693b ldr r3, [r7, #16] - 800476c: 3304 adds r3, #4 - 800476e: 009b lsls r3, r3, #2 - 8004770: 4413 add r3, r2 - 8004772: 2200 movs r2, #0 - 8004774: 605a str r2, [r3, #4] - - /* Update the transmit relesae index and number of buffers in use. */ - idx = (idx + 1U) & (ETH_TX_DESC_CNT - 1U); - 8004776: 693b ldr r3, [r7, #16] - 8004778: 3301 adds r3, #1 - 800477a: f003 0303 and.w r3, r3, #3 - 800477e: 613b str r3, [r7, #16] - dmatxdesclist->BuffersInUse = numOfBuf; - 8004780: 68bb ldr r3, [r7, #8] - 8004782: 697a ldr r2, [r7, #20] - 8004784: 629a str r2, [r3, #40] ; 0x28 - dmatxdesclist->releaseIndex = idx; - 8004786: 68bb ldr r3, [r7, #8] - 8004788: 693a ldr r2, [r7, #16] - 800478a: 62da str r2, [r3, #44] ; 0x2c - 800478c: e001 b.n 8004792 - } - else - { - /* Get out of the loop! */ - pktTxStatus = 0U; - 800478e: 2300 movs r3, #0 - 8004790: 73fb strb r3, [r7, #15] - while ((numOfBuf != 0U) && (pktTxStatus != 0U)) - 8004792: 697b ldr r3, [r7, #20] - 8004794: 2b00 cmp r3, #0 - 8004796: d002 beq.n 800479e - 8004798: 7bfb ldrb r3, [r7, #15] - 800479a: 2b00 cmp r3, #0 - 800479c: d1b9 bne.n 8004712 - } - } - } - return HAL_OK; - 800479e: 2300 movs r3, #0 -} - 80047a0: 4618 mov r0, r3 - 80047a2: 3718 adds r7, #24 - 80047a4: 46bd mov sp, r7 - 80047a6: bd80 pop {r7, pc} - -080047a8 : - * @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) -{ - 80047a8: b580 push {r7, lr} - 80047aa: b084 sub sp, #16 - 80047ac: af00 add r7, sp, #0 - 80047ae: 6078 str r0, [r7, #4] - uint32_t macirqenable; - /* Packet received */ - if (__HAL_ETH_DMA_GET_IT(heth, ETH_DMACSR_RI)) - 80047b0: 687b ldr r3, [r7, #4] - 80047b2: 681b ldr r3, [r3, #0] - 80047b4: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80047b8: f8d3 3160 ldr.w r3, [r3, #352] ; 0x160 - 80047bc: f003 0340 and.w r3, r3, #64 ; 0x40 - 80047c0: 2b40 cmp r3, #64 ; 0x40 - 80047c2: d115 bne.n 80047f0 - { - if (__HAL_ETH_DMA_GET_IT_SOURCE(heth, ETH_DMACIER_RIE)) - 80047c4: 687b ldr r3, [r7, #4] - 80047c6: 681b ldr r3, [r3, #0] - 80047c8: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80047cc: f8d3 3134 ldr.w r3, [r3, #308] ; 0x134 - 80047d0: f003 0340 and.w r3, r3, #64 ; 0x40 - 80047d4: 2b40 cmp r3, #64 ; 0x40 - 80047d6: d10b bne.n 80047f0 - { - /* Clear the Eth DMA Rx IT pending bits */ - __HAL_ETH_DMA_CLEAR_IT(heth, ETH_DMACSR_RI | ETH_DMACSR_NIS); - 80047d8: 687b ldr r3, [r7, #4] - 80047da: 681b ldr r3, [r3, #0] - 80047dc: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80047e0: 461a mov r2, r3 - 80047e2: f248 0340 movw r3, #32832 ; 0x8040 - 80047e6: f8c2 3160 str.w r3, [r2, #352] ; 0x160 -#if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) - /*Call registered Receive complete callback*/ - heth->RxCpltCallback(heth); -#else - /* Receive complete callback */ - HAL_ETH_RxCpltCallback(heth); - 80047ea: 6878 ldr r0, [r7, #4] - 80047ec: f00a ffea bl 800f7c4 -#endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ - } - } - - /* Packet transmitted */ - if (__HAL_ETH_DMA_GET_IT(heth, ETH_DMACSR_TI)) - 80047f0: 687b ldr r3, [r7, #4] - 80047f2: 681b ldr r3, [r3, #0] - 80047f4: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80047f8: f8d3 3160 ldr.w r3, [r3, #352] ; 0x160 - 80047fc: f003 0301 and.w r3, r3, #1 - 8004800: 2b01 cmp r3, #1 - 8004802: d115 bne.n 8004830 - { - if (__HAL_ETH_DMA_GET_IT_SOURCE(heth, ETH_DMACIER_TIE)) - 8004804: 687b ldr r3, [r7, #4] - 8004806: 681b ldr r3, [r3, #0] - 8004808: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 800480c: f8d3 3134 ldr.w r3, [r3, #308] ; 0x134 - 8004810: f003 0301 and.w r3, r3, #1 - 8004814: 2b01 cmp r3, #1 - 8004816: d10b bne.n 8004830 - { - /* Clear the Eth DMA Tx IT pending bits */ - __HAL_ETH_DMA_CLEAR_IT(heth, ETH_DMACSR_TI | ETH_DMACSR_NIS); - 8004818: 687b ldr r3, [r7, #4] - 800481a: 681b ldr r3, [r3, #0] - 800481c: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8004820: 461a mov r2, r3 - 8004822: f248 0301 movw r3, #32769 ; 0x8001 - 8004826: f8c2 3160 str.w r3, [r2, #352] ; 0x160 -#if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) - /*Call registered Transmit complete callback*/ - heth->TxCpltCallback(heth); -#else - /* Transfer complete callback */ - HAL_ETH_TxCpltCallback(heth); - 800482a: 6878 ldr r0, [r7, #4] - 800482c: f00a ffda bl 800f7e4 - } - } - - - /* ETH DMA Error */ - if (__HAL_ETH_DMA_GET_IT(heth, ETH_DMACSR_AIS)) - 8004830: 687b ldr r3, [r7, #4] - 8004832: 681b ldr r3, [r3, #0] - 8004834: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8004838: f8d3 3160 ldr.w r3, [r3, #352] ; 0x160 - 800483c: f403 4380 and.w r3, r3, #16384 ; 0x4000 - 8004840: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 - 8004844: d153 bne.n 80048ee - { - if (__HAL_ETH_DMA_GET_IT_SOURCE(heth, ETH_DMACIER_AIE)) - 8004846: 687b ldr r3, [r7, #4] - 8004848: 681b ldr r3, [r3, #0] - 800484a: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 800484e: f8d3 3134 ldr.w r3, [r3, #308] ; 0x134 - 8004852: f403 4380 and.w r3, r3, #16384 ; 0x4000 - 8004856: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 - 800485a: d148 bne.n 80048ee - { - heth->ErrorCode |= HAL_ETH_ERROR_DMA; - 800485c: 687b ldr r3, [r7, #4] - 800485e: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 - 8004862: f043 0208 orr.w r2, r3, #8 - 8004866: 687b ldr r3, [r7, #4] - 8004868: f8c3 2088 str.w r2, [r3, #136] ; 0x88 - - /* if fatal bus error occurred */ - if (__HAL_ETH_DMA_GET_IT(heth, ETH_DMACSR_FBE)) - 800486c: 687b ldr r3, [r7, #4] - 800486e: 681b ldr r3, [r3, #0] - 8004870: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8004874: f8d3 3160 ldr.w r3, [r3, #352] ; 0x160 - 8004878: f403 5380 and.w r3, r3, #4096 ; 0x1000 - 800487c: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 - 8004880: d11e bne.n 80048c0 - { - /* Get DMA error code */ - heth->DMAErrorCode = READ_BIT(heth->Instance->DMACSR, (ETH_DMACSR_FBE | ETH_DMACSR_TPS | ETH_DMACSR_RPS)); - 8004882: 687b ldr r3, [r7, #4] - 8004884: 681b ldr r3, [r3, #0] - 8004886: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 800488a: f8d3 2160 ldr.w r2, [r3, #352] ; 0x160 - 800488e: f241 1302 movw r3, #4354 ; 0x1102 - 8004892: 4013 ands r3, r2 - 8004894: 687a ldr r2, [r7, #4] - 8004896: f8c2 308c str.w r3, [r2, #140] ; 0x8c - - /* Disable all interrupts */ - __HAL_ETH_DMA_DISABLE_IT(heth, ETH_DMACIER_NIE | ETH_DMACIER_AIE); - 800489a: 687b ldr r3, [r7, #4] - 800489c: 681b ldr r3, [r3, #0] - 800489e: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80048a2: f8d3 3134 ldr.w r3, [r3, #308] ; 0x134 - 80048a6: 687a ldr r2, [r7, #4] - 80048a8: 6812 ldr r2, [r2, #0] - 80048aa: f423 4340 bic.w r3, r3, #49152 ; 0xc000 - 80048ae: f502 5280 add.w r2, r2, #4096 ; 0x1000 - 80048b2: f8c2 3134 str.w r3, [r2, #308] ; 0x134 - - /* Set HAL state to ERROR */ - heth->gState = HAL_ETH_STATE_ERROR; - 80048b6: 687b ldr r3, [r7, #4] - 80048b8: 22e0 movs r2, #224 ; 0xe0 - 80048ba: f8c3 2084 str.w r2, [r3, #132] ; 0x84 - 80048be: e013 b.n 80048e8 - } - else - { - /* Get DMA error status */ - heth->DMAErrorCode = READ_BIT(heth->Instance->DMACSR, (ETH_DMACSR_CDE | ETH_DMACSR_ETI | ETH_DMACSR_RWT | - 80048c0: 687b ldr r3, [r7, #4] - 80048c2: 681b ldr r3, [r3, #0] - 80048c4: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80048c8: f8d3 3160 ldr.w r3, [r3, #352] ; 0x160 - 80048cc: f403 42cd and.w r2, r3, #26240 ; 0x6680 - 80048d0: 687b ldr r3, [r7, #4] - 80048d2: f8c3 208c str.w r2, [r3, #140] ; 0x8c - ETH_DMACSR_RBU | ETH_DMACSR_AIS)); - - /* Clear the interrupt summary flag */ - __HAL_ETH_DMA_CLEAR_IT(heth, (ETH_DMACSR_CDE | ETH_DMACSR_ETI | ETH_DMACSR_RWT | - 80048d6: 687b ldr r3, [r7, #4] - 80048d8: 681b ldr r3, [r3, #0] - 80048da: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80048de: 461a mov r2, r3 - 80048e0: f44f 43cd mov.w r3, #26240 ; 0x6680 - 80048e4: f8c2 3160 str.w r3, [r2, #352] ; 0x160 -#if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) - /* Call registered Error callback*/ - heth->ErrorCallback(heth); -#else - /* Ethernet DMA Error callback */ - HAL_ETH_ErrorCallback(heth); - 80048e8: 6878 ldr r0, [r7, #4] - 80048ea: f00a ff8b bl 800f804 - - } - } - - /* ETH MAC Error IT */ - macirqenable = heth->Instance->MACIER; - 80048ee: 687b ldr r3, [r7, #4] - 80048f0: 681b ldr r3, [r3, #0] - 80048f2: f8d3 30b4 ldr.w r3, [r3, #180] ; 0xb4 - 80048f6: 60fb str r3, [r7, #12] - if (((macirqenable & ETH_MACIER_RXSTSIE) == ETH_MACIER_RXSTSIE) || \ - 80048f8: 68fb ldr r3, [r7, #12] - 80048fa: f403 4380 and.w r3, r3, #16384 ; 0x4000 - 80048fe: 2b00 cmp r3, #0 - 8004900: d104 bne.n 800490c - ((macirqenable & ETH_MACIER_TXSTSIE) == ETH_MACIER_TXSTSIE)) - 8004902: 68fb ldr r3, [r7, #12] - 8004904: f403 5300 and.w r3, r3, #8192 ; 0x2000 - if (((macirqenable & ETH_MACIER_RXSTSIE) == ETH_MACIER_RXSTSIE) || \ - 8004908: 2b00 cmp r3, #0 - 800490a: d019 beq.n 8004940 - { - heth->ErrorCode |= HAL_ETH_ERROR_MAC; - 800490c: 687b ldr r3, [r7, #4] - 800490e: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 - 8004912: f043 0210 orr.w r2, r3, #16 - 8004916: 687b ldr r3, [r7, #4] - 8004918: f8c3 2088 str.w r2, [r3, #136] ; 0x88 - - /* Get MAC Rx Tx status and clear Status register pending bit */ - heth->MACErrorCode = READ_REG(heth->Instance->MACRXTXSR); - 800491c: 687b ldr r3, [r7, #4] - 800491e: 681b ldr r3, [r3, #0] - 8004920: f8d3 20b8 ldr.w r2, [r3, #184] ; 0xb8 - 8004924: 687b ldr r3, [r7, #4] - 8004926: f8c3 2090 str.w r2, [r3, #144] ; 0x90 - - heth->gState = HAL_ETH_STATE_ERROR; - 800492a: 687b ldr r3, [r7, #4] - 800492c: 22e0 movs r2, #224 ; 0xe0 - 800492e: f8c3 2084 str.w r2, [r3, #132] ; 0x84 -#if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) - /* Call registered Error callback*/ - heth->ErrorCallback(heth); -#else - /* Ethernet Error callback */ - HAL_ETH_ErrorCallback(heth); - 8004932: 6878 ldr r0, [r7, #4] - 8004934: f00a ff66 bl 800f804 -#endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ - - heth->MACErrorCode = (uint32_t)(0x0U); - 8004938: 687b ldr r3, [r7, #4] - 800493a: 2200 movs r2, #0 - 800493c: f8c3 2090 str.w r2, [r3, #144] ; 0x90 - } - - /* ETH PMT IT */ - if (__HAL_ETH_MAC_GET_IT(heth, ETH_MAC_PMT_IT)) - 8004940: 687b ldr r3, [r7, #4] - 8004942: 681b ldr r3, [r3, #0] - 8004944: f8d3 30b0 ldr.w r3, [r3, #176] ; 0xb0 - 8004948: f003 0310 and.w r3, r3, #16 - 800494c: 2b10 cmp r3, #16 - 800494e: d10f bne.n 8004970 - { - /* Get MAC Wake-up source and clear the status register pending bit */ - heth->MACWakeUpEvent = READ_BIT(heth->Instance->MACPCSR, (ETH_MACPCSR_RWKPRCVD | ETH_MACPCSR_MGKPRCVD)); - 8004950: 687b ldr r3, [r7, #4] - 8004952: 681b ldr r3, [r3, #0] - 8004954: f8d3 30c0 ldr.w r3, [r3, #192] ; 0xc0 - 8004958: f003 0260 and.w r2, r3, #96 ; 0x60 - 800495c: 687b ldr r3, [r7, #4] - 800495e: f8c3 2094 str.w r2, [r3, #148] ; 0x94 -#if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) - /* Call registered PMT callback*/ - heth->PMTCallback(heth); -#else - /* Ethernet PMT callback */ - HAL_ETH_PMTCallback(heth); - 8004962: 6878 ldr r0, [r7, #4] - 8004964: f000 f830 bl 80049c8 -#endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ - - heth->MACWakeUpEvent = (uint32_t)(0x0U); - 8004968: 687b ldr r3, [r7, #4] - 800496a: 2200 movs r2, #0 - 800496c: f8c3 2094 str.w r2, [r3, #148] ; 0x94 - } - - /* ETH EEE IT */ - if (__HAL_ETH_MAC_GET_IT(heth, ETH_MAC_LPI_IT)) - 8004970: 687b ldr r3, [r7, #4] - 8004972: 681b ldr r3, [r3, #0] - 8004974: f8d3 30b0 ldr.w r3, [r3, #176] ; 0xb0 - 8004978: f003 0320 and.w r3, r3, #32 - 800497c: 2b20 cmp r3, #32 - 800497e: d10f bne.n 80049a0 - { - /* Get MAC LPI interrupt source and clear the status register pending bit */ - heth->MACLPIEvent = READ_BIT(heth->Instance->MACPCSR, 0x0000000FU); - 8004980: 687b ldr r3, [r7, #4] - 8004982: 681b ldr r3, [r3, #0] - 8004984: f8d3 30c0 ldr.w r3, [r3, #192] ; 0xc0 - 8004988: f003 020f and.w r2, r3, #15 - 800498c: 687b ldr r3, [r7, #4] - 800498e: f8c3 2098 str.w r2, [r3, #152] ; 0x98 -#if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) - /* Call registered EEE callback*/ - heth->EEECallback(heth); -#else - /* Ethernet EEE callback */ - HAL_ETH_EEECallback(heth); - 8004992: 6878 ldr r0, [r7, #4] - 8004994: f000 f822 bl 80049dc -#endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ - - heth->MACLPIEvent = (uint32_t)(0x0U); - 8004998: 687b ldr r3, [r7, #4] - 800499a: 2200 movs r2, #0 - 800499c: f8c3 2098 str.w r2, [r3, #152] ; 0x98 -#endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ - } - } -#else /* USE_HAL_ETH_REGISTER_CALLBACKS */ - /* check ETH WAKEUP exti flag */ - if (__HAL_ETH_WAKEUP_EXTI_GET_FLAG(ETH_WAKEUP_EXTI_LINE) != (uint32_t)RESET) - 80049a0: 4b08 ldr r3, [pc, #32] ; (80049c4 ) - 80049a2: 6a9b ldr r3, [r3, #40] ; 0x28 - 80049a4: f403 0380 and.w r3, r3, #4194304 ; 0x400000 - 80049a8: 2b00 cmp r3, #0 - 80049aa: d006 beq.n 80049ba - { - /* Clear ETH WAKEUP Exti pending bit */ - __HAL_ETH_WAKEUP_EXTI_CLEAR_FLAG(ETH_WAKEUP_EXTI_LINE); - 80049ac: 4b05 ldr r3, [pc, #20] ; (80049c4 ) - 80049ae: f44f 0280 mov.w r2, #4194304 ; 0x400000 - 80049b2: 629a str r2, [r3, #40] ; 0x28 -#if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) - /* Call registered WakeUp callback*/ - heth->WakeUpCallback(heth); -#else - /* ETH WAKEUP callback */ - HAL_ETH_WakeUpCallback(heth); - 80049b4: 6878 ldr r0, [r7, #4] - 80049b6: f000 f81b bl 80049f0 -#endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ - } -#endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ -} - 80049ba: bf00 nop - 80049bc: 3710 adds r7, #16 - 80049be: 46bd mov sp, r7 - 80049c0: bd80 pop {r7, pc} - 80049c2: bf00 nop - 80049c4: 58000080 .word 0x58000080 - -080049c8 : - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval None - */ -__weak void HAL_ETH_PMTCallback(ETH_HandleTypeDef *heth) -{ - 80049c8: b480 push {r7} - 80049ca: b083 sub sp, #12 - 80049cc: af00 add r7, sp, #0 - 80049ce: 6078 str r0, [r7, #4] - /* Prevent unused argument(s) compilation warning */ - UNUSED(heth); - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_ETH_PMTCallback could be implemented in the user file - */ -} - 80049d0: bf00 nop - 80049d2: 370c adds r7, #12 - 80049d4: 46bd mov sp, r7 - 80049d6: f85d 7b04 ldr.w r7, [sp], #4 - 80049da: 4770 bx lr - -080049dc : - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval None - */ -__weak void HAL_ETH_EEECallback(ETH_HandleTypeDef *heth) -{ - 80049dc: b480 push {r7} - 80049de: b083 sub sp, #12 - 80049e0: af00 add r7, sp, #0 - 80049e2: 6078 str r0, [r7, #4] - /* Prevent unused argument(s) compilation warning */ - UNUSED(heth); - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_ETH_EEECallback could be implemented in the user file - */ -} - 80049e4: bf00 nop - 80049e6: 370c adds r7, #12 - 80049e8: 46bd mov sp, r7 - 80049ea: f85d 7b04 ldr.w r7, [sp], #4 - 80049ee: 4770 bx lr - -080049f0 : - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval None - */ -__weak void HAL_ETH_WakeUpCallback(ETH_HandleTypeDef *heth) -{ - 80049f0: b480 push {r7} - 80049f2: b083 sub sp, #12 - 80049f4: af00 add r7, sp, #0 - 80049f6: 6078 str r0, [r7, #4] - /* Prevent unused argument(s) compilation warning */ - UNUSED(heth); - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_ETH_WakeUpCallback could be implemented in the user file - */ -} - 80049f8: bf00 nop - 80049fa: 370c adds r7, #12 - 80049fc: 46bd mov sp, r7 - 80049fe: f85d 7b04 ldr.w r7, [sp], #4 - 8004a02: 4770 bx lr - -08004a04 : - * @param pRegValue: parameter to hold read value - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_ReadPHYRegister(ETH_HandleTypeDef *heth, uint32_t PHYAddr, uint32_t PHYReg, - uint32_t *pRegValue) -{ - 8004a04: b580 push {r7, lr} - 8004a06: b086 sub sp, #24 - 8004a08: af00 add r7, sp, #0 - 8004a0a: 60f8 str r0, [r7, #12] - 8004a0c: 60b9 str r1, [r7, #8] - 8004a0e: 607a str r2, [r7, #4] - 8004a10: 603b str r3, [r7, #0] - uint32_t tickstart; - uint32_t tmpreg; - - /* Check for the Busy flag */ - if (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) != (uint32_t)RESET) - 8004a12: 68fb ldr r3, [r7, #12] - 8004a14: 681b ldr r3, [r3, #0] - 8004a16: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 - 8004a1a: f003 0301 and.w r3, r3, #1 - 8004a1e: 2b00 cmp r3, #0 - 8004a20: d001 beq.n 8004a26 - { - return HAL_ERROR; - 8004a22: 2301 movs r3, #1 - 8004a24: e03e b.n 8004aa4 - } - - /* Get the MACMDIOAR value */ - WRITE_REG(tmpreg, heth->Instance->MACMDIOAR); - 8004a26: 68fb ldr r3, [r7, #12] - 8004a28: 681b ldr r3, [r3, #0] - 8004a2a: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 - 8004a2e: 617b str r3, [r7, #20] - - Set the PHY device address - - Set the PHY register address - - Set the read mode - - Set the MII Busy bit */ - - MODIFY_REG(tmpreg, ETH_MACMDIOAR_PA, (PHYAddr << 21)); - 8004a30: 697b ldr r3, [r7, #20] - 8004a32: f023 7278 bic.w r2, r3, #65011712 ; 0x3e00000 - 8004a36: 68bb ldr r3, [r7, #8] - 8004a38: 055b lsls r3, r3, #21 - 8004a3a: 4313 orrs r3, r2 - 8004a3c: 617b str r3, [r7, #20] - MODIFY_REG(tmpreg, ETH_MACMDIOAR_RDA, (PHYReg << 16)); - 8004a3e: 697b ldr r3, [r7, #20] - 8004a40: f423 12f8 bic.w r2, r3, #2031616 ; 0x1f0000 - 8004a44: 687b ldr r3, [r7, #4] - 8004a46: 041b lsls r3, r3, #16 - 8004a48: 4313 orrs r3, r2 - 8004a4a: 617b str r3, [r7, #20] - MODIFY_REG(tmpreg, ETH_MACMDIOAR_MOC, ETH_MACMDIOAR_MOC_RD); - 8004a4c: 697b ldr r3, [r7, #20] - 8004a4e: f043 030c orr.w r3, r3, #12 - 8004a52: 617b str r3, [r7, #20] - SET_BIT(tmpreg, ETH_MACMDIOAR_MB); - 8004a54: 697b ldr r3, [r7, #20] - 8004a56: f043 0301 orr.w r3, r3, #1 - 8004a5a: 617b str r3, [r7, #20] - - /* Write the result value into the MDII Address register */ - WRITE_REG(heth->Instance->MACMDIOAR, tmpreg); - 8004a5c: 68fb ldr r3, [r7, #12] - 8004a5e: 681b ldr r3, [r3, #0] - 8004a60: 697a ldr r2, [r7, #20] - 8004a62: f8c3 2200 str.w r2, [r3, #512] ; 0x200 - - tickstart = HAL_GetTick(); - 8004a66: f7fd fc7d bl 8002364 - 8004a6a: 6138 str r0, [r7, #16] - - /* Wait for the Busy flag */ - while (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) > 0U) - 8004a6c: e009 b.n 8004a82 - { - if (((HAL_GetTick() - tickstart) > ETH_MDIO_BUS_TIMEOUT)) - 8004a6e: f7fd fc79 bl 8002364 - 8004a72: 4602 mov r2, r0 - 8004a74: 693b ldr r3, [r7, #16] - 8004a76: 1ad3 subs r3, r2, r3 - 8004a78: f5b3 7f7a cmp.w r3, #1000 ; 0x3e8 - 8004a7c: d901 bls.n 8004a82 - { - return HAL_ERROR; - 8004a7e: 2301 movs r3, #1 - 8004a80: e010 b.n 8004aa4 - while (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) > 0U) - 8004a82: 68fb ldr r3, [r7, #12] - 8004a84: 681b ldr r3, [r3, #0] - 8004a86: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 - 8004a8a: f003 0301 and.w r3, r3, #1 - 8004a8e: 2b00 cmp r3, #0 - 8004a90: d1ed bne.n 8004a6e - } - } - - /* Get MACMIIDR value */ - WRITE_REG(*pRegValue, (uint16_t)heth->Instance->MACMDIODR); - 8004a92: 68fb ldr r3, [r7, #12] - 8004a94: 681b ldr r3, [r3, #0] - 8004a96: f8d3 3204 ldr.w r3, [r3, #516] ; 0x204 - 8004a9a: b29b uxth r3, r3 - 8004a9c: 461a mov r2, r3 - 8004a9e: 683b ldr r3, [r7, #0] - 8004aa0: 601a str r2, [r3, #0] - - return HAL_OK; - 8004aa2: 2300 movs r3, #0 -} - 8004aa4: 4618 mov r0, r3 - 8004aa6: 3718 adds r7, #24 - 8004aa8: 46bd mov sp, r7 - 8004aaa: bd80 pop {r7, pc} - -08004aac : - * @param RegValue: the value to write - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_WritePHYRegister(ETH_HandleTypeDef *heth, uint32_t PHYAddr, uint32_t PHYReg, - uint32_t RegValue) -{ - 8004aac: b580 push {r7, lr} - 8004aae: b086 sub sp, #24 - 8004ab0: af00 add r7, sp, #0 - 8004ab2: 60f8 str r0, [r7, #12] - 8004ab4: 60b9 str r1, [r7, #8] - 8004ab6: 607a str r2, [r7, #4] - 8004ab8: 603b str r3, [r7, #0] - uint32_t tickstart; - uint32_t tmpreg; - - /* Check for the Busy flag */ - if (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) != (uint32_t)RESET) - 8004aba: 68fb ldr r3, [r7, #12] - 8004abc: 681b ldr r3, [r3, #0] - 8004abe: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 - 8004ac2: f003 0301 and.w r3, r3, #1 - 8004ac6: 2b00 cmp r3, #0 - 8004ac8: d001 beq.n 8004ace - { - return HAL_ERROR; - 8004aca: 2301 movs r3, #1 - 8004acc: e03c b.n 8004b48 - } - - /* Get the MACMDIOAR value */ - WRITE_REG(tmpreg, heth->Instance->MACMDIOAR); - 8004ace: 68fb ldr r3, [r7, #12] - 8004ad0: 681b ldr r3, [r3, #0] - 8004ad2: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 - 8004ad6: 617b str r3, [r7, #20] - - Set the PHY device address - - Set the PHY register address - - Set the write mode - - Set the MII Busy bit */ - - MODIFY_REG(tmpreg, ETH_MACMDIOAR_PA, (PHYAddr << 21)); - 8004ad8: 697b ldr r3, [r7, #20] - 8004ada: f023 7278 bic.w r2, r3, #65011712 ; 0x3e00000 - 8004ade: 68bb ldr r3, [r7, #8] - 8004ae0: 055b lsls r3, r3, #21 - 8004ae2: 4313 orrs r3, r2 - 8004ae4: 617b str r3, [r7, #20] - MODIFY_REG(tmpreg, ETH_MACMDIOAR_RDA, (PHYReg << 16)); - 8004ae6: 697b ldr r3, [r7, #20] - 8004ae8: f423 12f8 bic.w r2, r3, #2031616 ; 0x1f0000 - 8004aec: 687b ldr r3, [r7, #4] - 8004aee: 041b lsls r3, r3, #16 - 8004af0: 4313 orrs r3, r2 - 8004af2: 617b str r3, [r7, #20] - MODIFY_REG(tmpreg, ETH_MACMDIOAR_MOC, ETH_MACMDIOAR_MOC_WR); - 8004af4: 697b ldr r3, [r7, #20] - 8004af6: f023 030c bic.w r3, r3, #12 - 8004afa: f043 0304 orr.w r3, r3, #4 - 8004afe: 617b str r3, [r7, #20] - SET_BIT(tmpreg, ETH_MACMDIOAR_MB); - 8004b00: 697b ldr r3, [r7, #20] - 8004b02: f043 0301 orr.w r3, r3, #1 - 8004b06: 617b str r3, [r7, #20] - - - /* Give the value to the MII data register */ - WRITE_REG(ETH->MACMDIODR, (uint16_t)RegValue); - 8004b08: 683b ldr r3, [r7, #0] - 8004b0a: b29a uxth r2, r3 - 8004b0c: 4b10 ldr r3, [pc, #64] ; (8004b50 ) - 8004b0e: f8c3 2204 str.w r2, [r3, #516] ; 0x204 - - /* Write the result value into the MII Address register */ - WRITE_REG(ETH->MACMDIOAR, tmpreg); - 8004b12: 4a0f ldr r2, [pc, #60] ; (8004b50 ) - 8004b14: 697b ldr r3, [r7, #20] - 8004b16: f8c2 3200 str.w r3, [r2, #512] ; 0x200 - - tickstart = HAL_GetTick(); - 8004b1a: f7fd fc23 bl 8002364 - 8004b1e: 6138 str r0, [r7, #16] - - /* Wait for the Busy flag */ - while (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) > 0U) - 8004b20: e009 b.n 8004b36 - { - if (((HAL_GetTick() - tickstart) > ETH_MDIO_BUS_TIMEOUT)) - 8004b22: f7fd fc1f bl 8002364 - 8004b26: 4602 mov r2, r0 - 8004b28: 693b ldr r3, [r7, #16] - 8004b2a: 1ad3 subs r3, r2, r3 - 8004b2c: f5b3 7f7a cmp.w r3, #1000 ; 0x3e8 - 8004b30: d901 bls.n 8004b36 - { - return HAL_ERROR; - 8004b32: 2301 movs r3, #1 - 8004b34: e008 b.n 8004b48 - while (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) > 0U) - 8004b36: 68fb ldr r3, [r7, #12] - 8004b38: 681b ldr r3, [r3, #0] - 8004b3a: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 - 8004b3e: f003 0301 and.w r3, r3, #1 - 8004b42: 2b00 cmp r3, #0 - 8004b44: d1ed bne.n 8004b22 - } - } - - return HAL_OK; - 8004b46: 2300 movs r3, #0 -} - 8004b48: 4618 mov r0, r3 - 8004b4a: 3718 adds r7, #24 - 8004b4c: 46bd mov sp, r7 - 8004b4e: bd80 pop {r7, pc} - 8004b50: 40028000 .word 0x40028000 - -08004b54 : - * @param macconf: pointer to a ETH_MACConfigTypeDef structure that will hold - * the configuration of the MAC. - * @retval HAL Status - */ -HAL_StatusTypeDef HAL_ETH_GetMACConfig(ETH_HandleTypeDef *heth, ETH_MACConfigTypeDef *macconf) -{ - 8004b54: b480 push {r7} - 8004b56: b083 sub sp, #12 - 8004b58: af00 add r7, sp, #0 - 8004b5a: 6078 str r0, [r7, #4] - 8004b5c: 6039 str r1, [r7, #0] - if (macconf == NULL) - 8004b5e: 683b ldr r3, [r7, #0] - 8004b60: 2b00 cmp r3, #0 - 8004b62: d101 bne.n 8004b68 - { - return HAL_ERROR; - 8004b64: 2301 movs r3, #1 - 8004b66: e1c3 b.n 8004ef0 - } - - /* Get MAC parameters */ - macconf->PreambleLength = READ_BIT(heth->Instance->MACCR, ETH_MACCR_PRELEN); - 8004b68: 687b ldr r3, [r7, #4] - 8004b6a: 681b ldr r3, [r3, #0] - 8004b6c: 681b ldr r3, [r3, #0] - 8004b6e: f003 020c and.w r2, r3, #12 - 8004b72: 683b ldr r3, [r7, #0] - 8004b74: 62da str r2, [r3, #44] ; 0x2c - macconf->DeferralCheck = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DC) >> 4) > 0U) ? ENABLE : DISABLE; - 8004b76: 687b ldr r3, [r7, #4] - 8004b78: 681b ldr r3, [r3, #0] - 8004b7a: 681b ldr r3, [r3, #0] - 8004b7c: f003 0310 and.w r3, r3, #16 - 8004b80: 2b00 cmp r3, #0 - 8004b82: bf14 ite ne - 8004b84: 2301 movne r3, #1 - 8004b86: 2300 moveq r3, #0 - 8004b88: b2db uxtb r3, r3 - 8004b8a: 461a mov r2, r3 - 8004b8c: 683b ldr r3, [r7, #0] - 8004b8e: f883 2028 strb.w r2, [r3, #40] ; 0x28 - macconf->BackOffLimit = READ_BIT(heth->Instance->MACCR, ETH_MACCR_BL); - 8004b92: 687b ldr r3, [r7, #4] - 8004b94: 681b ldr r3, [r3, #0] - 8004b96: 681b ldr r3, [r3, #0] - 8004b98: f003 0260 and.w r2, r3, #96 ; 0x60 - 8004b9c: 683b ldr r3, [r7, #0] - 8004b9e: 625a str r2, [r3, #36] ; 0x24 - macconf->RetryTransmission = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DR) >> 8) == 0U) ? ENABLE : DISABLE; - 8004ba0: 687b ldr r3, [r7, #4] - 8004ba2: 681b ldr r3, [r3, #0] - 8004ba4: 681b ldr r3, [r3, #0] - 8004ba6: f403 7380 and.w r3, r3, #256 ; 0x100 - 8004baa: 2b00 cmp r3, #0 - 8004bac: bf0c ite eq - 8004bae: 2301 moveq r3, #1 - 8004bb0: 2300 movne r3, #0 - 8004bb2: b2db uxtb r3, r3 - 8004bb4: 461a mov r2, r3 - 8004bb6: 683b ldr r3, [r7, #0] - 8004bb8: f883 2020 strb.w r2, [r3, #32] - macconf->CarrierSenseDuringTransmit = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DCRS) >> 9) > 0U) - 8004bbc: 687b ldr r3, [r7, #4] - 8004bbe: 681b ldr r3, [r3, #0] - 8004bc0: 681b ldr r3, [r3, #0] - 8004bc2: f403 7300 and.w r3, r3, #512 ; 0x200 - ? ENABLE : DISABLE; - 8004bc6: 2b00 cmp r3, #0 - 8004bc8: bf14 ite ne - 8004bca: 2301 movne r3, #1 - 8004bcc: 2300 moveq r3, #0 - 8004bce: b2db uxtb r3, r3 - 8004bd0: 461a mov r2, r3 - macconf->CarrierSenseDuringTransmit = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DCRS) >> 9) > 0U) - 8004bd2: 683b ldr r3, [r7, #0] - 8004bd4: 77da strb r2, [r3, #31] - macconf->ReceiveOwn = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DO) >> 10) == 0U) ? ENABLE : DISABLE; - 8004bd6: 687b ldr r3, [r7, #4] - 8004bd8: 681b ldr r3, [r3, #0] - 8004bda: 681b ldr r3, [r3, #0] - 8004bdc: f403 6380 and.w r3, r3, #1024 ; 0x400 - 8004be0: 2b00 cmp r3, #0 - 8004be2: bf0c ite eq - 8004be4: 2301 moveq r3, #1 - 8004be6: 2300 movne r3, #0 - 8004be8: b2db uxtb r3, r3 - 8004bea: 461a mov r2, r3 - 8004bec: 683b ldr r3, [r7, #0] - 8004bee: 779a strb r2, [r3, #30] - macconf->CarrierSenseBeforeTransmit = ((READ_BIT(heth->Instance->MACCR, - 8004bf0: 687b ldr r3, [r7, #4] - 8004bf2: 681b ldr r3, [r3, #0] - 8004bf4: 681b ldr r3, [r3, #0] - ETH_MACCR_ECRSFD) >> 11) > 0U) ? ENABLE : DISABLE; - 8004bf6: f403 6300 and.w r3, r3, #2048 ; 0x800 - 8004bfa: 2b00 cmp r3, #0 - 8004bfc: bf14 ite ne - 8004bfe: 2301 movne r3, #1 - 8004c00: 2300 moveq r3, #0 - 8004c02: b2db uxtb r3, r3 - 8004c04: 461a mov r2, r3 - macconf->CarrierSenseBeforeTransmit = ((READ_BIT(heth->Instance->MACCR, - 8004c06: 683b ldr r3, [r7, #0] - 8004c08: 775a strb r2, [r3, #29] - macconf->LoopbackMode = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_LM) >> 12) > 0U) ? ENABLE : DISABLE; - 8004c0a: 687b ldr r3, [r7, #4] - 8004c0c: 681b ldr r3, [r3, #0] - 8004c0e: 681b ldr r3, [r3, #0] - 8004c10: f403 5380 and.w r3, r3, #4096 ; 0x1000 - 8004c14: 2b00 cmp r3, #0 - 8004c16: bf14 ite ne - 8004c18: 2301 movne r3, #1 - 8004c1a: 2300 moveq r3, #0 - 8004c1c: b2db uxtb r3, r3 - 8004c1e: 461a mov r2, r3 - 8004c20: 683b ldr r3, [r7, #0] - 8004c22: 771a strb r2, [r3, #28] - macconf->DuplexMode = READ_BIT(heth->Instance->MACCR, ETH_MACCR_DM); - 8004c24: 687b ldr r3, [r7, #4] - 8004c26: 681b ldr r3, [r3, #0] - 8004c28: 681b ldr r3, [r3, #0] - 8004c2a: f403 5200 and.w r2, r3, #8192 ; 0x2000 - 8004c2e: 683b ldr r3, [r7, #0] - 8004c30: 619a str r2, [r3, #24] - macconf->Speed = READ_BIT(heth->Instance->MACCR, ETH_MACCR_FES); - 8004c32: 687b ldr r3, [r7, #4] - 8004c34: 681b ldr r3, [r3, #0] - 8004c36: 681b ldr r3, [r3, #0] - 8004c38: f403 4280 and.w r2, r3, #16384 ; 0x4000 - 8004c3c: 683b ldr r3, [r7, #0] - 8004c3e: 615a str r2, [r3, #20] - macconf->JumboPacket = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_JE) >> 16) > 0U) ? ENABLE : DISABLE; - 8004c40: 687b ldr r3, [r7, #4] - 8004c42: 681b ldr r3, [r3, #0] - 8004c44: 681b ldr r3, [r3, #0] - 8004c46: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 8004c4a: 2b00 cmp r3, #0 - 8004c4c: bf14 ite ne - 8004c4e: 2301 movne r3, #1 - 8004c50: 2300 moveq r3, #0 - 8004c52: b2db uxtb r3, r3 - 8004c54: 461a mov r2, r3 - 8004c56: 683b ldr r3, [r7, #0] - 8004c58: 749a strb r2, [r3, #18] - macconf->Jabber = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_JD) >> 17) == 0U) ? ENABLE : DISABLE; - 8004c5a: 687b ldr r3, [r7, #4] - 8004c5c: 681b ldr r3, [r3, #0] - 8004c5e: 681b ldr r3, [r3, #0] - 8004c60: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8004c64: 2b00 cmp r3, #0 - 8004c66: bf0c ite eq - 8004c68: 2301 moveq r3, #1 - 8004c6a: 2300 movne r3, #0 - 8004c6c: b2db uxtb r3, r3 - 8004c6e: 461a mov r2, r3 - 8004c70: 683b ldr r3, [r7, #0] - 8004c72: 745a strb r2, [r3, #17] - macconf->Watchdog = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_WD) >> 19) == 0U) ? ENABLE : DISABLE; - 8004c74: 687b ldr r3, [r7, #4] - 8004c76: 681b ldr r3, [r3, #0] - 8004c78: 681b ldr r3, [r3, #0] - 8004c7a: f403 2300 and.w r3, r3, #524288 ; 0x80000 - 8004c7e: 2b00 cmp r3, #0 - 8004c80: bf0c ite eq - 8004c82: 2301 moveq r3, #1 - 8004c84: 2300 movne r3, #0 - 8004c86: b2db uxtb r3, r3 - 8004c88: 461a mov r2, r3 - 8004c8a: 683b ldr r3, [r7, #0] - 8004c8c: 741a strb r2, [r3, #16] - macconf->AutomaticPadCRCStrip = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_ACS) >> 20) > 0U) ? ENABLE : DISABLE; - 8004c8e: 687b ldr r3, [r7, #4] - 8004c90: 681b ldr r3, [r3, #0] - 8004c92: 681b ldr r3, [r3, #0] - 8004c94: f403 1380 and.w r3, r3, #1048576 ; 0x100000 - 8004c98: 2b00 cmp r3, #0 - 8004c9a: bf14 ite ne - 8004c9c: 2301 movne r3, #1 - 8004c9e: 2300 moveq r3, #0 - 8004ca0: b2db uxtb r3, r3 - 8004ca2: 461a mov r2, r3 - 8004ca4: 683b ldr r3, [r7, #0] - 8004ca6: 73da strb r2, [r3, #15] - macconf->CRCStripTypePacket = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_CST) >> 21) > 0U) ? ENABLE : DISABLE; - 8004ca8: 687b ldr r3, [r7, #4] - 8004caa: 681b ldr r3, [r3, #0] - 8004cac: 681b ldr r3, [r3, #0] - 8004cae: f403 1300 and.w r3, r3, #2097152 ; 0x200000 - 8004cb2: 2b00 cmp r3, #0 - 8004cb4: bf14 ite ne - 8004cb6: 2301 movne r3, #1 - 8004cb8: 2300 moveq r3, #0 - 8004cba: b2db uxtb r3, r3 - 8004cbc: 461a mov r2, r3 - 8004cbe: 683b ldr r3, [r7, #0] - 8004cc0: 739a strb r2, [r3, #14] - macconf->Support2KPacket = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_S2KP) >> 22) > 0U) ? ENABLE : DISABLE; - 8004cc2: 687b ldr r3, [r7, #4] - 8004cc4: 681b ldr r3, [r3, #0] - 8004cc6: 681b ldr r3, [r3, #0] - 8004cc8: f403 0380 and.w r3, r3, #4194304 ; 0x400000 - 8004ccc: 2b00 cmp r3, #0 - 8004cce: bf14 ite ne - 8004cd0: 2301 movne r3, #1 - 8004cd2: 2300 moveq r3, #0 - 8004cd4: b2db uxtb r3, r3 - 8004cd6: 461a mov r2, r3 - 8004cd8: 683b ldr r3, [r7, #0] - 8004cda: 735a strb r2, [r3, #13] - macconf->GiantPacketSizeLimitControl = ((READ_BIT(heth->Instance->MACCR, - 8004cdc: 687b ldr r3, [r7, #4] - 8004cde: 681b ldr r3, [r3, #0] - 8004ce0: 681b ldr r3, [r3, #0] - ETH_MACCR_GPSLCE) >> 23) > 0U) ? ENABLE : DISABLE; - 8004ce2: f403 0300 and.w r3, r3, #8388608 ; 0x800000 - 8004ce6: 2b00 cmp r3, #0 - 8004ce8: bf14 ite ne - 8004cea: 2301 movne r3, #1 - 8004cec: 2300 moveq r3, #0 - 8004cee: b2db uxtb r3, r3 - 8004cf0: 461a mov r2, r3 - macconf->GiantPacketSizeLimitControl = ((READ_BIT(heth->Instance->MACCR, - 8004cf2: 683b ldr r3, [r7, #0] - 8004cf4: 731a strb r2, [r3, #12] - macconf->InterPacketGapVal = READ_BIT(heth->Instance->MACCR, ETH_MACCR_IPG); - 8004cf6: 687b ldr r3, [r7, #4] - 8004cf8: 681b ldr r3, [r3, #0] - 8004cfa: 681b ldr r3, [r3, #0] - 8004cfc: f003 62e0 and.w r2, r3, #117440512 ; 0x7000000 - 8004d00: 683b ldr r3, [r7, #0] - 8004d02: 609a str r2, [r3, #8] - macconf->ChecksumOffload = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_IPC) >> 27) > 0U) ? ENABLE : DISABLE; - 8004d04: 687b ldr r3, [r7, #4] - 8004d06: 681b ldr r3, [r3, #0] - 8004d08: 681b ldr r3, [r3, #0] - 8004d0a: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 - 8004d0e: 2b00 cmp r3, #0 - 8004d10: bf14 ite ne - 8004d12: 2301 movne r3, #1 - 8004d14: 2300 moveq r3, #0 - 8004d16: b2db uxtb r3, r3 - 8004d18: 461a mov r2, r3 - 8004d1a: 683b ldr r3, [r7, #0] - 8004d1c: 711a strb r2, [r3, #4] - macconf->SourceAddrControl = READ_BIT(heth->Instance->MACCR, ETH_MACCR_SARC); - 8004d1e: 687b ldr r3, [r7, #4] - 8004d20: 681b ldr r3, [r3, #0] - 8004d22: 681b ldr r3, [r3, #0] - 8004d24: f003 42e0 and.w r2, r3, #1879048192 ; 0x70000000 - 8004d28: 683b ldr r3, [r7, #0] - 8004d2a: 601a str r2, [r3, #0] - - macconf->GiantPacketSizeLimit = READ_BIT(heth->Instance->MACECR, ETH_MACECR_GPSL); - 8004d2c: 687b ldr r3, [r7, #4] - 8004d2e: 681b ldr r3, [r3, #0] - 8004d30: 685b ldr r3, [r3, #4] - 8004d32: f3c3 020d ubfx r2, r3, #0, #14 - 8004d36: 683b ldr r3, [r7, #0] - 8004d38: 635a str r2, [r3, #52] ; 0x34 - macconf->CRCCheckingRxPackets = ((READ_BIT(heth->Instance->MACECR, ETH_MACECR_DCRCC) >> 16) == 0U) ? ENABLE : DISABLE; - 8004d3a: 687b ldr r3, [r7, #4] - 8004d3c: 681b ldr r3, [r3, #0] - 8004d3e: 685b ldr r3, [r3, #4] - 8004d40: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 8004d44: 2b00 cmp r3, #0 - 8004d46: bf0c ite eq - 8004d48: 2301 moveq r3, #1 - 8004d4a: 2300 movne r3, #0 - 8004d4c: b2db uxtb r3, r3 - 8004d4e: 461a mov r2, r3 - 8004d50: 683b ldr r3, [r7, #0] - 8004d52: f883 2032 strb.w r2, [r3, #50] ; 0x32 - macconf->SlowProtocolDetect = ((READ_BIT(heth->Instance->MACECR, ETH_MACECR_SPEN) >> 17) > 0U) ? ENABLE : DISABLE; - 8004d56: 687b ldr r3, [r7, #4] - 8004d58: 681b ldr r3, [r3, #0] - 8004d5a: 685b ldr r3, [r3, #4] - 8004d5c: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8004d60: 2b00 cmp r3, #0 - 8004d62: bf14 ite ne - 8004d64: 2301 movne r3, #1 - 8004d66: 2300 moveq r3, #0 - 8004d68: b2db uxtb r3, r3 - 8004d6a: 461a mov r2, r3 - 8004d6c: 683b ldr r3, [r7, #0] - 8004d6e: f883 2031 strb.w r2, [r3, #49] ; 0x31 - macconf->UnicastSlowProtocolPacketDetect = ((READ_BIT(heth->Instance->MACECR, - 8004d72: 687b ldr r3, [r7, #4] - 8004d74: 681b ldr r3, [r3, #0] - 8004d76: 685b ldr r3, [r3, #4] - ETH_MACECR_USP) >> 18) > 0U) ? ENABLE : DISABLE; - 8004d78: f403 2380 and.w r3, r3, #262144 ; 0x40000 - 8004d7c: 2b00 cmp r3, #0 - 8004d7e: bf14 ite ne - 8004d80: 2301 movne r3, #1 - 8004d82: 2300 moveq r3, #0 - 8004d84: b2db uxtb r3, r3 - 8004d86: 461a mov r2, r3 - macconf->UnicastSlowProtocolPacketDetect = ((READ_BIT(heth->Instance->MACECR, - 8004d88: 683b ldr r3, [r7, #0] - 8004d8a: f883 2030 strb.w r2, [r3, #48] ; 0x30 - macconf->ExtendedInterPacketGap = ((READ_BIT(heth->Instance->MACECR, ETH_MACECR_EIPGEN) >> 24) > 0U) - 8004d8e: 687b ldr r3, [r7, #4] - 8004d90: 681b ldr r3, [r3, #0] - 8004d92: 685b ldr r3, [r3, #4] - 8004d94: f003 7380 and.w r3, r3, #16777216 ; 0x1000000 - ? ENABLE : DISABLE; - 8004d98: 2b00 cmp r3, #0 - 8004d9a: bf14 ite ne - 8004d9c: 2301 movne r3, #1 - 8004d9e: 2300 moveq r3, #0 - 8004da0: b2db uxtb r3, r3 - 8004da2: 461a mov r2, r3 - macconf->ExtendedInterPacketGap = ((READ_BIT(heth->Instance->MACECR, ETH_MACECR_EIPGEN) >> 24) > 0U) - 8004da4: 683b ldr r3, [r7, #0] - 8004da6: f883 2038 strb.w r2, [r3, #56] ; 0x38 - macconf->ExtendedInterPacketGapVal = READ_BIT(heth->Instance->MACECR, ETH_MACECR_EIPG) >> 25; - 8004daa: 687b ldr r3, [r7, #4] - 8004dac: 681b ldr r3, [r3, #0] - 8004dae: 685b ldr r3, [r3, #4] - 8004db0: 0e5b lsrs r3, r3, #25 - 8004db2: f003 021f and.w r2, r3, #31 - 8004db6: 683b ldr r3, [r7, #0] - 8004db8: 63da str r2, [r3, #60] ; 0x3c - - - macconf->ProgrammableWatchdog = ((READ_BIT(heth->Instance->MACWTR, ETH_MACWTR_PWE) >> 8) > 0U) ? ENABLE : DISABLE; - 8004dba: 687b ldr r3, [r7, #4] - 8004dbc: 681b ldr r3, [r3, #0] - 8004dbe: 68db ldr r3, [r3, #12] - 8004dc0: f403 7380 and.w r3, r3, #256 ; 0x100 - 8004dc4: 2b00 cmp r3, #0 - 8004dc6: bf14 ite ne - 8004dc8: 2301 movne r3, #1 - 8004dca: 2300 moveq r3, #0 - 8004dcc: b2db uxtb r3, r3 - 8004dce: 461a mov r2, r3 - 8004dd0: 683b ldr r3, [r7, #0] - 8004dd2: f883 2040 strb.w r2, [r3, #64] ; 0x40 - macconf->WatchdogTimeout = READ_BIT(heth->Instance->MACWTR, ETH_MACWTR_WTO); - 8004dd6: 687b ldr r3, [r7, #4] - 8004dd8: 681b ldr r3, [r3, #0] - 8004dda: 68db ldr r3, [r3, #12] - 8004ddc: f003 020f and.w r2, r3, #15 - 8004de0: 683b ldr r3, [r7, #0] - 8004de2: 645a str r2, [r3, #68] ; 0x44 - - macconf->TransmitFlowControl = ((READ_BIT(heth->Instance->MACTFCR, ETH_MACTFCR_TFE) >> 1) > 0U) ? ENABLE : DISABLE; - 8004de4: 687b ldr r3, [r7, #4] - 8004de6: 681b ldr r3, [r3, #0] - 8004de8: 6f1b ldr r3, [r3, #112] ; 0x70 - 8004dea: f003 0302 and.w r3, r3, #2 - 8004dee: 2b00 cmp r3, #0 - 8004df0: bf14 ite ne - 8004df2: 2301 movne r3, #1 - 8004df4: 2300 moveq r3, #0 - 8004df6: b2db uxtb r3, r3 - 8004df8: 461a mov r2, r3 - 8004dfa: 683b ldr r3, [r7, #0] - 8004dfc: f883 2054 strb.w r2, [r3, #84] ; 0x54 - macconf->ZeroQuantaPause = ((READ_BIT(heth->Instance->MACTFCR, ETH_MACTFCR_DZPQ) >> 7) == 0U) ? ENABLE : DISABLE; - 8004e00: 687b ldr r3, [r7, #4] - 8004e02: 681b ldr r3, [r3, #0] - 8004e04: 6f1b ldr r3, [r3, #112] ; 0x70 - 8004e06: f003 0380 and.w r3, r3, #128 ; 0x80 - 8004e0a: 2b00 cmp r3, #0 - 8004e0c: bf0c ite eq - 8004e0e: 2301 moveq r3, #1 - 8004e10: 2300 movne r3, #0 - 8004e12: b2db uxtb r3, r3 - 8004e14: 461a mov r2, r3 - 8004e16: 683b ldr r3, [r7, #0] - 8004e18: f883 204c strb.w r2, [r3, #76] ; 0x4c - macconf->PauseLowThreshold = READ_BIT(heth->Instance->MACTFCR, ETH_MACTFCR_PLT); - 8004e1c: 687b ldr r3, [r7, #4] - 8004e1e: 681b ldr r3, [r3, #0] - 8004e20: 6f1b ldr r3, [r3, #112] ; 0x70 - 8004e22: f003 0270 and.w r2, r3, #112 ; 0x70 - 8004e26: 683b ldr r3, [r7, #0] - 8004e28: 651a str r2, [r3, #80] ; 0x50 - macconf->PauseTime = (READ_BIT(heth->Instance->MACTFCR, ETH_MACTFCR_PT) >> 16); - 8004e2a: 687b ldr r3, [r7, #4] - 8004e2c: 681b ldr r3, [r3, #0] - 8004e2e: 6f1b ldr r3, [r3, #112] ; 0x70 - 8004e30: 0c1b lsrs r3, r3, #16 - 8004e32: b29a uxth r2, r3 - 8004e34: 683b ldr r3, [r7, #0] - 8004e36: 649a str r2, [r3, #72] ; 0x48 - - - macconf->ReceiveFlowControl = (READ_BIT(heth->Instance->MACRFCR, ETH_MACRFCR_RFE) > 0U) ? ENABLE : DISABLE; - 8004e38: 687b ldr r3, [r7, #4] - 8004e3a: 681b ldr r3, [r3, #0] - 8004e3c: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8004e40: f003 0301 and.w r3, r3, #1 - 8004e44: 2b00 cmp r3, #0 - 8004e46: bf14 ite ne - 8004e48: 2301 movne r3, #1 - 8004e4a: 2300 moveq r3, #0 - 8004e4c: b2db uxtb r3, r3 - 8004e4e: 461a mov r2, r3 - 8004e50: 683b ldr r3, [r7, #0] - 8004e52: f883 2056 strb.w r2, [r3, #86] ; 0x56 - macconf->UnicastPausePacketDetect = ((READ_BIT(heth->Instance->MACRFCR, ETH_MACRFCR_UP) >> 1) > 0U) - 8004e56: 687b ldr r3, [r7, #4] - 8004e58: 681b ldr r3, [r3, #0] - 8004e5a: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8004e5e: f003 0302 and.w r3, r3, #2 - ? ENABLE : DISABLE; - 8004e62: 2b00 cmp r3, #0 - 8004e64: bf14 ite ne - 8004e66: 2301 movne r3, #1 - 8004e68: 2300 moveq r3, #0 - 8004e6a: b2db uxtb r3, r3 - 8004e6c: 461a mov r2, r3 - macconf->UnicastPausePacketDetect = ((READ_BIT(heth->Instance->MACRFCR, ETH_MACRFCR_UP) >> 1) > 0U) - 8004e6e: 683b ldr r3, [r7, #0] - 8004e70: f883 2055 strb.w r2, [r3, #85] ; 0x55 - - macconf->TransmitQueueMode = READ_BIT(heth->Instance->MTLTQOMR, (ETH_MTLTQOMR_TTC | ETH_MTLTQOMR_TSF)); - 8004e74: 687b ldr r3, [r7, #4] - 8004e76: 681b ldr r3, [r3, #0] - 8004e78: f8d3 3d00 ldr.w r3, [r3, #3328] ; 0xd00 - 8004e7c: f003 0272 and.w r2, r3, #114 ; 0x72 - 8004e80: 683b ldr r3, [r7, #0] - 8004e82: 659a str r2, [r3, #88] ; 0x58 - - macconf->ReceiveQueueMode = READ_BIT(heth->Instance->MTLRQOMR, (ETH_MTLRQOMR_RTC | ETH_MTLRQOMR_RSF)); - 8004e84: 687b ldr r3, [r7, #4] - 8004e86: 681b ldr r3, [r3, #0] - 8004e88: f8d3 3d30 ldr.w r3, [r3, #3376] ; 0xd30 - 8004e8c: f003 0223 and.w r2, r3, #35 ; 0x23 - 8004e90: 683b ldr r3, [r7, #0] - 8004e92: 65da str r2, [r3, #92] ; 0x5c - macconf->ForwardRxUndersizedGoodPacket = ((READ_BIT(heth->Instance->MTLRQOMR, - 8004e94: 687b ldr r3, [r7, #4] - 8004e96: 681b ldr r3, [r3, #0] - 8004e98: f8d3 3d30 ldr.w r3, [r3, #3376] ; 0xd30 - ETH_MTLRQOMR_FUP) >> 3) > 0U) ? ENABLE : DISABLE; - 8004e9c: f003 0308 and.w r3, r3, #8 - 8004ea0: 2b00 cmp r3, #0 - 8004ea2: bf14 ite ne - 8004ea4: 2301 movne r3, #1 - 8004ea6: 2300 moveq r3, #0 - 8004ea8: b2db uxtb r3, r3 - 8004eaa: 461a mov r2, r3 - macconf->ForwardRxUndersizedGoodPacket = ((READ_BIT(heth->Instance->MTLRQOMR, - 8004eac: 683b ldr r3, [r7, #0] - 8004eae: f883 2062 strb.w r2, [r3, #98] ; 0x62 - macconf->ForwardRxErrorPacket = ((READ_BIT(heth->Instance->MTLRQOMR, ETH_MTLRQOMR_FEP) >> 4) > 0U) ? ENABLE : DISABLE; - 8004eb2: 687b ldr r3, [r7, #4] - 8004eb4: 681b ldr r3, [r3, #0] - 8004eb6: f8d3 3d30 ldr.w r3, [r3, #3376] ; 0xd30 - 8004eba: f003 0310 and.w r3, r3, #16 - 8004ebe: 2b00 cmp r3, #0 - 8004ec0: bf14 ite ne - 8004ec2: 2301 movne r3, #1 - 8004ec4: 2300 moveq r3, #0 - 8004ec6: b2db uxtb r3, r3 - 8004ec8: 461a mov r2, r3 - 8004eca: 683b ldr r3, [r7, #0] - 8004ecc: f883 2061 strb.w r2, [r3, #97] ; 0x61 - macconf->DropTCPIPChecksumErrorPacket = ((READ_BIT(heth->Instance->MTLRQOMR, - 8004ed0: 687b ldr r3, [r7, #4] - 8004ed2: 681b ldr r3, [r3, #0] - 8004ed4: f8d3 3d30 ldr.w r3, [r3, #3376] ; 0xd30 - ETH_MTLRQOMR_DISTCPEF) >> 6) == 0U) ? ENABLE : DISABLE; - 8004ed8: f003 0340 and.w r3, r3, #64 ; 0x40 - 8004edc: 2b00 cmp r3, #0 - 8004ede: bf0c ite eq - 8004ee0: 2301 moveq r3, #1 - 8004ee2: 2300 movne r3, #0 - 8004ee4: b2db uxtb r3, r3 - 8004ee6: 461a mov r2, r3 - macconf->DropTCPIPChecksumErrorPacket = ((READ_BIT(heth->Instance->MTLRQOMR, - 8004ee8: 683b ldr r3, [r7, #0] - 8004eea: f883 2060 strb.w r2, [r3, #96] ; 0x60 - - return HAL_OK; - 8004eee: 2300 movs r3, #0 -} - 8004ef0: 4618 mov r0, r3 - 8004ef2: 370c adds r7, #12 - 8004ef4: 46bd mov sp, r7 - 8004ef6: f85d 7b04 ldr.w r7, [sp], #4 - 8004efa: 4770 bx lr - -08004efc : - * @param macconf: pointer to a ETH_MACConfigTypeDef structure that contains - * the configuration of the MAC. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_SetMACConfig(ETH_HandleTypeDef *heth, ETH_MACConfigTypeDef *macconf) -{ - 8004efc: b580 push {r7, lr} - 8004efe: b082 sub sp, #8 - 8004f00: af00 add r7, sp, #0 - 8004f02: 6078 str r0, [r7, #4] - 8004f04: 6039 str r1, [r7, #0] - if (macconf == NULL) - 8004f06: 683b ldr r3, [r7, #0] - 8004f08: 2b00 cmp r3, #0 - 8004f0a: d101 bne.n 8004f10 - { - return HAL_ERROR; - 8004f0c: 2301 movs r3, #1 - 8004f0e: e00b b.n 8004f28 - } - - if (heth->gState == HAL_ETH_STATE_READY) - 8004f10: 687b ldr r3, [r7, #4] - 8004f12: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 8004f16: 2b10 cmp r3, #16 - 8004f18: d105 bne.n 8004f26 - { - ETH_SetMACConfig(heth, macconf); - 8004f1a: 6839 ldr r1, [r7, #0] - 8004f1c: 6878 ldr r0, [r7, #4] - 8004f1e: f000 f86d bl 8004ffc - - return HAL_OK; - 8004f22: 2300 movs r3, #0 - 8004f24: e000 b.n 8004f28 - } - else - { - return HAL_ERROR; - 8004f26: 2301 movs r3, #1 - } -} - 8004f28: 4618 mov r0, r3 - 8004f2a: 3708 adds r7, #8 - 8004f2c: 46bd mov sp, r7 - 8004f2e: bd80 pop {r7, pc} - -08004f30 : - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval None - */ -void HAL_ETH_SetMDIOClockRange(ETH_HandleTypeDef *heth) -{ - 8004f30: b580 push {r7, lr} - 8004f32: b084 sub sp, #16 - 8004f34: af00 add r7, sp, #0 - 8004f36: 6078 str r0, [r7, #4] - uint32_t hclk; - uint32_t tmpreg; - - /* Get the ETHERNET MACMDIOAR value */ - tmpreg = (heth->Instance)->MACMDIOAR; - 8004f38: 687b ldr r3, [r7, #4] - 8004f3a: 681b ldr r3, [r3, #0] - 8004f3c: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 - 8004f40: 60fb str r3, [r7, #12] - - /* Clear CSR Clock Range bits */ - tmpreg &= ~ETH_MACMDIOAR_CR; - 8004f42: 68fb ldr r3, [r7, #12] - 8004f44: f423 6370 bic.w r3, r3, #3840 ; 0xf00 - 8004f48: 60fb str r3, [r7, #12] - - /* Get hclk frequency value */ - hclk = HAL_RCC_GetHCLKFreq(); - 8004f4a: f002 ffd9 bl 8007f00 - 8004f4e: 60b8 str r0, [r7, #8] - - /* Set CR bits depending on hclk value */ - if ((hclk >= 20000000U) && (hclk < 35000000U)) - 8004f50: 68bb ldr r3, [r7, #8] - 8004f52: 4a1e ldr r2, [pc, #120] ; (8004fcc ) - 8004f54: 4293 cmp r3, r2 - 8004f56: d908 bls.n 8004f6a - 8004f58: 68bb ldr r3, [r7, #8] - 8004f5a: 4a1d ldr r2, [pc, #116] ; (8004fd0 ) - 8004f5c: 4293 cmp r3, r2 - 8004f5e: d804 bhi.n 8004f6a - { - /* CSR Clock Range between 20-35 MHz */ - tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV16; - 8004f60: 68fb ldr r3, [r7, #12] - 8004f62: f443 7300 orr.w r3, r3, #512 ; 0x200 - 8004f66: 60fb str r3, [r7, #12] - 8004f68: e027 b.n 8004fba - } - else if ((hclk >= 35000000U) && (hclk < 60000000U)) - 8004f6a: 68bb ldr r3, [r7, #8] - 8004f6c: 4a18 ldr r2, [pc, #96] ; (8004fd0 ) - 8004f6e: 4293 cmp r3, r2 - 8004f70: d908 bls.n 8004f84 - 8004f72: 68bb ldr r3, [r7, #8] - 8004f74: 4a17 ldr r2, [pc, #92] ; (8004fd4 ) - 8004f76: 4293 cmp r3, r2 - 8004f78: d204 bcs.n 8004f84 - { - /* CSR Clock Range between 35-60 MHz */ - tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV26; - 8004f7a: 68fb ldr r3, [r7, #12] - 8004f7c: f443 7340 orr.w r3, r3, #768 ; 0x300 - 8004f80: 60fb str r3, [r7, #12] - 8004f82: e01a b.n 8004fba - } - else if ((hclk >= 60000000U) && (hclk < 100000000U)) - 8004f84: 68bb ldr r3, [r7, #8] - 8004f86: 4a13 ldr r2, [pc, #76] ; (8004fd4 ) - 8004f88: 4293 cmp r3, r2 - 8004f8a: d303 bcc.n 8004f94 - 8004f8c: 68bb ldr r3, [r7, #8] - 8004f8e: 4a12 ldr r2, [pc, #72] ; (8004fd8 ) - 8004f90: 4293 cmp r3, r2 - 8004f92: d911 bls.n 8004fb8 - { - /* CSR Clock Range between 60-100 MHz */ - tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV42; - } - else if ((hclk >= 100000000U) && (hclk < 150000000U)) - 8004f94: 68bb ldr r3, [r7, #8] - 8004f96: 4a10 ldr r2, [pc, #64] ; (8004fd8 ) - 8004f98: 4293 cmp r3, r2 - 8004f9a: d908 bls.n 8004fae - 8004f9c: 68bb ldr r3, [r7, #8] - 8004f9e: 4a0f ldr r2, [pc, #60] ; (8004fdc ) - 8004fa0: 4293 cmp r3, r2 - 8004fa2: d804 bhi.n 8004fae - { - /* CSR Clock Range between 100-150 MHz */ - tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV62; - 8004fa4: 68fb ldr r3, [r7, #12] - 8004fa6: f443 7380 orr.w r3, r3, #256 ; 0x100 - 8004faa: 60fb str r3, [r7, #12] - 8004fac: e005 b.n 8004fba - } - else /* (hclk >= 150000000)&&(hclk <= 200000000) */ - { - /* CSR Clock Range between 150-200 MHz */ - tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV102; - 8004fae: 68fb ldr r3, [r7, #12] - 8004fb0: f443 6380 orr.w r3, r3, #1024 ; 0x400 - 8004fb4: 60fb str r3, [r7, #12] - 8004fb6: e000 b.n 8004fba - tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV42; - 8004fb8: bf00 nop - } - - /* Configure the CSR Clock Range */ - (heth->Instance)->MACMDIOAR = (uint32_t)tmpreg; - 8004fba: 687b ldr r3, [r7, #4] - 8004fbc: 681b ldr r3, [r3, #0] - 8004fbe: 68fa ldr r2, [r7, #12] - 8004fc0: f8c3 2200 str.w r2, [r3, #512] ; 0x200 -} - 8004fc4: bf00 nop - 8004fc6: 3710 adds r7, #16 - 8004fc8: 46bd mov sp, r7 - 8004fca: bd80 pop {r7, pc} - 8004fcc: 01312cff .word 0x01312cff - 8004fd0: 02160ebf .word 0x02160ebf - 8004fd4: 03938700 .word 0x03938700 - 8004fd8: 05f5e0ff .word 0x05f5e0ff - 8004fdc: 08f0d17f .word 0x08f0d17f - -08004fe0 : - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval ETH DMA Error Code - */ -uint32_t HAL_ETH_GetDMAError(ETH_HandleTypeDef *heth) -{ - 8004fe0: b480 push {r7} - 8004fe2: b083 sub sp, #12 - 8004fe4: af00 add r7, sp, #0 - 8004fe6: 6078 str r0, [r7, #4] - return heth->DMAErrorCode; - 8004fe8: 687b ldr r3, [r7, #4] - 8004fea: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c -} - 8004fee: 4618 mov r0, r3 - 8004ff0: 370c adds r7, #12 - 8004ff2: 46bd mov sp, r7 - 8004ff4: f85d 7b04 ldr.w r7, [sp], #4 - 8004ff8: 4770 bx lr - ... - -08004ffc : - * @{ - */ - - -static void ETH_SetMACConfig(ETH_HandleTypeDef *heth, ETH_MACConfigTypeDef *macconf) -{ - 8004ffc: b480 push {r7} - 8004ffe: b085 sub sp, #20 - 8005000: af00 add r7, sp, #0 - 8005002: 6078 str r0, [r7, #4] - 8005004: 6039 str r1, [r7, #0] - uint32_t macregval; - - /*------------------------ MACCR Configuration --------------------*/ - macregval = (macconf->InterPacketGapVal | - 8005006: 683b ldr r3, [r7, #0] - 8005008: 689a ldr r2, [r3, #8] - macconf->SourceAddrControl | - 800500a: 683b ldr r3, [r7, #0] - 800500c: 681b ldr r3, [r3, #0] - macregval = (macconf->InterPacketGapVal | - 800500e: 431a orrs r2, r3 - ((uint32_t)macconf->ChecksumOffload << 27) | - 8005010: 683b ldr r3, [r7, #0] - 8005012: 791b ldrb r3, [r3, #4] - 8005014: 06db lsls r3, r3, #27 - macconf->SourceAddrControl | - 8005016: 431a orrs r2, r3 - ((uint32_t)macconf->GiantPacketSizeLimitControl << 23) | - 8005018: 683b ldr r3, [r7, #0] - 800501a: 7b1b ldrb r3, [r3, #12] - 800501c: 05db lsls r3, r3, #23 - ((uint32_t)macconf->ChecksumOffload << 27) | - 800501e: 431a orrs r2, r3 - ((uint32_t)macconf->Support2KPacket << 22) | - 8005020: 683b ldr r3, [r7, #0] - 8005022: 7b5b ldrb r3, [r3, #13] - 8005024: 059b lsls r3, r3, #22 - ((uint32_t)macconf->GiantPacketSizeLimitControl << 23) | - 8005026: 431a orrs r2, r3 - ((uint32_t)macconf->CRCStripTypePacket << 21) | - 8005028: 683b ldr r3, [r7, #0] - 800502a: 7b9b ldrb r3, [r3, #14] - 800502c: 055b lsls r3, r3, #21 - ((uint32_t)macconf->Support2KPacket << 22) | - 800502e: 431a orrs r2, r3 - ((uint32_t)macconf->AutomaticPadCRCStrip << 20) | - 8005030: 683b ldr r3, [r7, #0] - 8005032: 7bdb ldrb r3, [r3, #15] - 8005034: 051b lsls r3, r3, #20 - ((uint32_t)macconf->CRCStripTypePacket << 21) | - 8005036: 4313 orrs r3, r2 - ((uint32_t)((macconf->Watchdog == DISABLE) ? 1U : 0U) << 19) | - 8005038: 683a ldr r2, [r7, #0] - 800503a: 7c12 ldrb r2, [r2, #16] - 800503c: 2a00 cmp r2, #0 - 800503e: d102 bne.n 8005046 - 8005040: f44f 2200 mov.w r2, #524288 ; 0x80000 - 8005044: e000 b.n 8005048 - 8005046: 2200 movs r2, #0 - ((uint32_t)macconf->AutomaticPadCRCStrip << 20) | - 8005048: 4313 orrs r3, r2 - ((uint32_t)((macconf->Jabber == DISABLE) ? 1U : 0U) << 17) | - 800504a: 683a ldr r2, [r7, #0] - 800504c: 7c52 ldrb r2, [r2, #17] - 800504e: 2a00 cmp r2, #0 - 8005050: d102 bne.n 8005058 - 8005052: f44f 3200 mov.w r2, #131072 ; 0x20000 - 8005056: e000 b.n 800505a - 8005058: 2200 movs r2, #0 - ((uint32_t)((macconf->Watchdog == DISABLE) ? 1U : 0U) << 19) | - 800505a: 431a orrs r2, r3 - ((uint32_t)macconf->JumboPacket << 16) | - 800505c: 683b ldr r3, [r7, #0] - 800505e: 7c9b ldrb r3, [r3, #18] - 8005060: 041b lsls r3, r3, #16 - ((uint32_t)((macconf->Jabber == DISABLE) ? 1U : 0U) << 17) | - 8005062: 431a orrs r2, r3 - macconf->Speed | - 8005064: 683b ldr r3, [r7, #0] - 8005066: 695b ldr r3, [r3, #20] - ((uint32_t)macconf->JumboPacket << 16) | - 8005068: 431a orrs r2, r3 - macconf->DuplexMode | - 800506a: 683b ldr r3, [r7, #0] - 800506c: 699b ldr r3, [r3, #24] - macconf->Speed | - 800506e: 431a orrs r2, r3 - ((uint32_t)macconf->LoopbackMode << 12) | - 8005070: 683b ldr r3, [r7, #0] - 8005072: 7f1b ldrb r3, [r3, #28] - 8005074: 031b lsls r3, r3, #12 - macconf->DuplexMode | - 8005076: 431a orrs r2, r3 - ((uint32_t)macconf->CarrierSenseBeforeTransmit << 11) | - 8005078: 683b ldr r3, [r7, #0] - 800507a: 7f5b ldrb r3, [r3, #29] - 800507c: 02db lsls r3, r3, #11 - ((uint32_t)macconf->LoopbackMode << 12) | - 800507e: 4313 orrs r3, r2 - ((uint32_t)((macconf->ReceiveOwn == DISABLE) ? 1U : 0U) << 10) | - 8005080: 683a ldr r2, [r7, #0] - 8005082: 7f92 ldrb r2, [r2, #30] - 8005084: 2a00 cmp r2, #0 - 8005086: d102 bne.n 800508e - 8005088: f44f 6280 mov.w r2, #1024 ; 0x400 - 800508c: e000 b.n 8005090 - 800508e: 2200 movs r2, #0 - ((uint32_t)macconf->CarrierSenseBeforeTransmit << 11) | - 8005090: 431a orrs r2, r3 - ((uint32_t)macconf->CarrierSenseDuringTransmit << 9) | - 8005092: 683b ldr r3, [r7, #0] - 8005094: 7fdb ldrb r3, [r3, #31] - 8005096: 025b lsls r3, r3, #9 - ((uint32_t)((macconf->ReceiveOwn == DISABLE) ? 1U : 0U) << 10) | - 8005098: 4313 orrs r3, r2 - ((uint32_t)((macconf->RetryTransmission == DISABLE) ? 1U : 0U) << 8) | - 800509a: 683a ldr r2, [r7, #0] - 800509c: f892 2020 ldrb.w r2, [r2, #32] - 80050a0: 2a00 cmp r2, #0 - 80050a2: d102 bne.n 80050aa - 80050a4: f44f 7280 mov.w r2, #256 ; 0x100 - 80050a8: e000 b.n 80050ac - 80050aa: 2200 movs r2, #0 - ((uint32_t)macconf->CarrierSenseDuringTransmit << 9) | - 80050ac: 431a orrs r2, r3 - macconf->BackOffLimit | - 80050ae: 683b ldr r3, [r7, #0] - 80050b0: 6a5b ldr r3, [r3, #36] ; 0x24 - ((uint32_t)((macconf->RetryTransmission == DISABLE) ? 1U : 0U) << 8) | - 80050b2: 431a orrs r2, r3 - ((uint32_t)macconf->DeferralCheck << 4) | - 80050b4: 683b ldr r3, [r7, #0] - 80050b6: f893 3028 ldrb.w r3, [r3, #40] ; 0x28 - 80050ba: 011b lsls r3, r3, #4 - macconf->BackOffLimit | - 80050bc: 431a orrs r2, r3 - macconf->PreambleLength); - 80050be: 683b ldr r3, [r7, #0] - 80050c0: 6adb ldr r3, [r3, #44] ; 0x2c - macregval = (macconf->InterPacketGapVal | - 80050c2: 4313 orrs r3, r2 - 80050c4: 60fb str r3, [r7, #12] - - /* Write to MACCR */ - MODIFY_REG(heth->Instance->MACCR, ETH_MACCR_MASK, macregval); - 80050c6: 687b ldr r3, [r7, #4] - 80050c8: 681b ldr r3, [r3, #0] - 80050ca: 681a ldr r2, [r3, #0] - 80050cc: 4b56 ldr r3, [pc, #344] ; (8005228 ) - 80050ce: 4013 ands r3, r2 - 80050d0: 687a ldr r2, [r7, #4] - 80050d2: 6812 ldr r2, [r2, #0] - 80050d4: 68f9 ldr r1, [r7, #12] - 80050d6: 430b orrs r3, r1 - 80050d8: 6013 str r3, [r2, #0] - - /*------------------------ MACECR Configuration --------------------*/ - macregval = ((macconf->ExtendedInterPacketGapVal << 25) | - 80050da: 683b ldr r3, [r7, #0] - 80050dc: 6bdb ldr r3, [r3, #60] ; 0x3c - 80050de: 065a lsls r2, r3, #25 - ((uint32_t)macconf->ExtendedInterPacketGap << 24) | - 80050e0: 683b ldr r3, [r7, #0] - 80050e2: f893 3038 ldrb.w r3, [r3, #56] ; 0x38 - 80050e6: 061b lsls r3, r3, #24 - macregval = ((macconf->ExtendedInterPacketGapVal << 25) | - 80050e8: 431a orrs r2, r3 - ((uint32_t)macconf->UnicastSlowProtocolPacketDetect << 18) | - 80050ea: 683b ldr r3, [r7, #0] - 80050ec: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 - 80050f0: 049b lsls r3, r3, #18 - ((uint32_t)macconf->ExtendedInterPacketGap << 24) | - 80050f2: 431a orrs r2, r3 - ((uint32_t)macconf->SlowProtocolDetect << 17) | - 80050f4: 683b ldr r3, [r7, #0] - 80050f6: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 80050fa: 045b lsls r3, r3, #17 - ((uint32_t)macconf->UnicastSlowProtocolPacketDetect << 18) | - 80050fc: 4313 orrs r3, r2 - ((uint32_t)((macconf->CRCCheckingRxPackets == DISABLE) ? 1U : 0U) << 16) | - 80050fe: 683a ldr r2, [r7, #0] - 8005100: f892 2032 ldrb.w r2, [r2, #50] ; 0x32 - 8005104: 2a00 cmp r2, #0 - 8005106: d102 bne.n 800510e - 8005108: f44f 3280 mov.w r2, #65536 ; 0x10000 - 800510c: e000 b.n 8005110 - 800510e: 2200 movs r2, #0 - ((uint32_t)macconf->SlowProtocolDetect << 17) | - 8005110: 431a orrs r2, r3 - macconf->GiantPacketSizeLimit); - 8005112: 683b ldr r3, [r7, #0] - 8005114: 6b5b ldr r3, [r3, #52] ; 0x34 - macregval = ((macconf->ExtendedInterPacketGapVal << 25) | - 8005116: 4313 orrs r3, r2 - 8005118: 60fb str r3, [r7, #12] - - /* Write to MACECR */ - MODIFY_REG(heth->Instance->MACECR, ETH_MACECR_MASK, macregval); - 800511a: 687b ldr r3, [r7, #4] - 800511c: 681b ldr r3, [r3, #0] - 800511e: 685a ldr r2, [r3, #4] - 8005120: 4b42 ldr r3, [pc, #264] ; (800522c ) - 8005122: 4013 ands r3, r2 - 8005124: 687a ldr r2, [r7, #4] - 8005126: 6812 ldr r2, [r2, #0] - 8005128: 68f9 ldr r1, [r7, #12] - 800512a: 430b orrs r3, r1 - 800512c: 6053 str r3, [r2, #4] - - /*------------------------ MACWTR Configuration --------------------*/ - macregval = (((uint32_t)macconf->ProgrammableWatchdog << 8) | - 800512e: 683b ldr r3, [r7, #0] - 8005130: f893 3040 ldrb.w r3, [r3, #64] ; 0x40 - 8005134: 021a lsls r2, r3, #8 - macconf->WatchdogTimeout); - 8005136: 683b ldr r3, [r7, #0] - 8005138: 6c5b ldr r3, [r3, #68] ; 0x44 - macregval = (((uint32_t)macconf->ProgrammableWatchdog << 8) | - 800513a: 4313 orrs r3, r2 - 800513c: 60fb str r3, [r7, #12] - - /* Write to MACWTR */ - MODIFY_REG(heth->Instance->MACWTR, ETH_MACWTR_MASK, macregval); - 800513e: 687b ldr r3, [r7, #4] - 8005140: 681b ldr r3, [r3, #0] - 8005142: 68da ldr r2, [r3, #12] - 8005144: 4b3a ldr r3, [pc, #232] ; (8005230 ) - 8005146: 4013 ands r3, r2 - 8005148: 687a ldr r2, [r7, #4] - 800514a: 6812 ldr r2, [r2, #0] - 800514c: 68f9 ldr r1, [r7, #12] - 800514e: 430b orrs r3, r1 - 8005150: 60d3 str r3, [r2, #12] - - /*------------------------ MACTFCR Configuration --------------------*/ - macregval = (((uint32_t)macconf->TransmitFlowControl << 1) | - 8005152: 683b ldr r3, [r7, #0] - 8005154: f893 3054 ldrb.w r3, [r3, #84] ; 0x54 - 8005158: 005a lsls r2, r3, #1 - macconf->PauseLowThreshold | - 800515a: 683b ldr r3, [r7, #0] - 800515c: 6d1b ldr r3, [r3, #80] ; 0x50 - macregval = (((uint32_t)macconf->TransmitFlowControl << 1) | - 800515e: 4313 orrs r3, r2 - ((uint32_t)((macconf->ZeroQuantaPause == DISABLE) ? 1U : 0U) << 7) | - 8005160: 683a ldr r2, [r7, #0] - 8005162: f892 204c ldrb.w r2, [r2, #76] ; 0x4c - 8005166: 2a00 cmp r2, #0 - 8005168: d101 bne.n 800516e - 800516a: 2280 movs r2, #128 ; 0x80 - 800516c: e000 b.n 8005170 - 800516e: 2200 movs r2, #0 - macconf->PauseLowThreshold | - 8005170: 431a orrs r2, r3 - (macconf->PauseTime << 16)); - 8005172: 683b ldr r3, [r7, #0] - 8005174: 6c9b ldr r3, [r3, #72] ; 0x48 - 8005176: 041b lsls r3, r3, #16 - macregval = (((uint32_t)macconf->TransmitFlowControl << 1) | - 8005178: 4313 orrs r3, r2 - 800517a: 60fb str r3, [r7, #12] - - /* Write to MACTFCR */ - MODIFY_REG(heth->Instance->MACTFCR, ETH_MACTFCR_MASK, macregval); - 800517c: 687b ldr r3, [r7, #4] - 800517e: 681b ldr r3, [r3, #0] - 8005180: 6f1a ldr r2, [r3, #112] ; 0x70 - 8005182: f64f 730d movw r3, #65293 ; 0xff0d - 8005186: 4013 ands r3, r2 - 8005188: 687a ldr r2, [r7, #4] - 800518a: 6812 ldr r2, [r2, #0] - 800518c: 68f9 ldr r1, [r7, #12] - 800518e: 430b orrs r3, r1 - 8005190: 6713 str r3, [r2, #112] ; 0x70 - - /*------------------------ MACRFCR Configuration --------------------*/ - macregval = ((uint32_t)macconf->ReceiveFlowControl | - 8005192: 683b ldr r3, [r7, #0] - 8005194: f893 3056 ldrb.w r3, [r3, #86] ; 0x56 - 8005198: 461a mov r2, r3 - ((uint32_t)macconf->UnicastPausePacketDetect << 1)); - 800519a: 683b ldr r3, [r7, #0] - 800519c: f893 3055 ldrb.w r3, [r3, #85] ; 0x55 - 80051a0: 005b lsls r3, r3, #1 - macregval = ((uint32_t)macconf->ReceiveFlowControl | - 80051a2: 4313 orrs r3, r2 - 80051a4: 60fb str r3, [r7, #12] - - /* Write to MACRFCR */ - MODIFY_REG(heth->Instance->MACRFCR, ETH_MACRFCR_MASK, macregval); - 80051a6: 687b ldr r3, [r7, #4] - 80051a8: 681b ldr r3, [r3, #0] - 80051aa: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 80051ae: f023 0103 bic.w r1, r3, #3 - 80051b2: 687b ldr r3, [r7, #4] - 80051b4: 681b ldr r3, [r3, #0] - 80051b6: 68fa ldr r2, [r7, #12] - 80051b8: 430a orrs r2, r1 - 80051ba: f8c3 2090 str.w r2, [r3, #144] ; 0x90 - - /*------------------------ MTLTQOMR Configuration --------------------*/ - /* Write to MTLTQOMR */ - MODIFY_REG(heth->Instance->MTLTQOMR, ETH_MTLTQOMR_MASK, macconf->TransmitQueueMode); - 80051be: 687b ldr r3, [r7, #4] - 80051c0: 681b ldr r3, [r3, #0] - 80051c2: f8d3 3d00 ldr.w r3, [r3, #3328] ; 0xd00 - 80051c6: f023 0172 bic.w r1, r3, #114 ; 0x72 - 80051ca: 683b ldr r3, [r7, #0] - 80051cc: 6d9a ldr r2, [r3, #88] ; 0x58 - 80051ce: 687b ldr r3, [r7, #4] - 80051d0: 681b ldr r3, [r3, #0] - 80051d2: 430a orrs r2, r1 - 80051d4: f8c3 2d00 str.w r2, [r3, #3328] ; 0xd00 - - /*------------------------ MTLRQOMR Configuration --------------------*/ - macregval = (macconf->ReceiveQueueMode | - 80051d8: 683b ldr r3, [r7, #0] - 80051da: 6ddb ldr r3, [r3, #92] ; 0x5c - ((uint32_t)((macconf->DropTCPIPChecksumErrorPacket == DISABLE) ? 1U : 0U) << 6) | - 80051dc: 683a ldr r2, [r7, #0] - 80051de: f892 2060 ldrb.w r2, [r2, #96] ; 0x60 - 80051e2: 2a00 cmp r2, #0 - 80051e4: d101 bne.n 80051ea - 80051e6: 2240 movs r2, #64 ; 0x40 - 80051e8: e000 b.n 80051ec - 80051ea: 2200 movs r2, #0 - macregval = (macconf->ReceiveQueueMode | - 80051ec: 431a orrs r2, r3 - ((uint32_t)macconf->ForwardRxErrorPacket << 4) | - 80051ee: 683b ldr r3, [r7, #0] - 80051f0: f893 3061 ldrb.w r3, [r3, #97] ; 0x61 - 80051f4: 011b lsls r3, r3, #4 - ((uint32_t)((macconf->DropTCPIPChecksumErrorPacket == DISABLE) ? 1U : 0U) << 6) | - 80051f6: 431a orrs r2, r3 - ((uint32_t)macconf->ForwardRxUndersizedGoodPacket << 3)); - 80051f8: 683b ldr r3, [r7, #0] - 80051fa: f893 3062 ldrb.w r3, [r3, #98] ; 0x62 - 80051fe: 00db lsls r3, r3, #3 - macregval = (macconf->ReceiveQueueMode | - 8005200: 4313 orrs r3, r2 - 8005202: 60fb str r3, [r7, #12] - - /* Write to MTLRQOMR */ - MODIFY_REG(heth->Instance->MTLRQOMR, ETH_MTLRQOMR_MASK, macregval); - 8005204: 687b ldr r3, [r7, #4] - 8005206: 681b ldr r3, [r3, #0] - 8005208: f8d3 3d30 ldr.w r3, [r3, #3376] ; 0xd30 - 800520c: f023 017b bic.w r1, r3, #123 ; 0x7b - 8005210: 687b ldr r3, [r7, #4] - 8005212: 681b ldr r3, [r3, #0] - 8005214: 68fa ldr r2, [r7, #12] - 8005216: 430a orrs r2, r1 - 8005218: f8c3 2d30 str.w r2, [r3, #3376] ; 0xd30 -} - 800521c: bf00 nop - 800521e: 3714 adds r7, #20 - 8005220: 46bd mov sp, r7 - 8005222: f85d 7b04 ldr.w r7, [sp], #4 - 8005226: 4770 bx lr - 8005228: 00048083 .word 0x00048083 - 800522c: c0f88000 .word 0xc0f88000 - 8005230: fffffef0 .word 0xfffffef0 - -08005234 : - -static void ETH_SetDMAConfig(ETH_HandleTypeDef *heth, ETH_DMAConfigTypeDef *dmaconf) -{ - 8005234: b480 push {r7} - 8005236: b085 sub sp, #20 - 8005238: af00 add r7, sp, #0 - 800523a: 6078 str r0, [r7, #4] - 800523c: 6039 str r1, [r7, #0] - uint32_t dmaregval; - - /*------------------------ DMAMR Configuration --------------------*/ - MODIFY_REG(heth->Instance->DMAMR, ETH_DMAMR_MASK, dmaconf->DMAArbitration); - 800523e: 687b ldr r3, [r7, #4] - 8005240: 681b ldr r3, [r3, #0] - 8005242: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8005246: 681a ldr r2, [r3, #0] - 8005248: 4b38 ldr r3, [pc, #224] ; (800532c ) - 800524a: 4013 ands r3, r2 - 800524c: 683a ldr r2, [r7, #0] - 800524e: 6811 ldr r1, [r2, #0] - 8005250: 687a ldr r2, [r7, #4] - 8005252: 6812 ldr r2, [r2, #0] - 8005254: 430b orrs r3, r1 - 8005256: f502 5280 add.w r2, r2, #4096 ; 0x1000 - 800525a: 6013 str r3, [r2, #0] - - /*------------------------ DMASBMR Configuration --------------------*/ - dmaregval = (((uint32_t)dmaconf->AddressAlignedBeats << 12) | - 800525c: 683b ldr r3, [r7, #0] - 800525e: 791b ldrb r3, [r3, #4] - 8005260: 031a lsls r2, r3, #12 - dmaconf->BurstMode | - 8005262: 683b ldr r3, [r7, #0] - 8005264: 689b ldr r3, [r3, #8] - dmaregval = (((uint32_t)dmaconf->AddressAlignedBeats << 12) | - 8005266: 431a orrs r2, r3 - ((uint32_t)dmaconf->RebuildINCRxBurst << 15)); - 8005268: 683b ldr r3, [r7, #0] - 800526a: 7b1b ldrb r3, [r3, #12] - 800526c: 03db lsls r3, r3, #15 - dmaregval = (((uint32_t)dmaconf->AddressAlignedBeats << 12) | - 800526e: 4313 orrs r3, r2 - 8005270: 60fb str r3, [r7, #12] - - MODIFY_REG(heth->Instance->DMASBMR, ETH_DMASBMR_MASK, dmaregval); - 8005272: 687b ldr r3, [r7, #4] - 8005274: 681b ldr r3, [r3, #0] - 8005276: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 800527a: 685a ldr r2, [r3, #4] - 800527c: 4b2c ldr r3, [pc, #176] ; (8005330 ) - 800527e: 4013 ands r3, r2 - 8005280: 687a ldr r2, [r7, #4] - 8005282: 6812 ldr r2, [r2, #0] - 8005284: 68f9 ldr r1, [r7, #12] - 8005286: 430b orrs r3, r1 - 8005288: f502 5280 add.w r2, r2, #4096 ; 0x1000 - 800528c: 6053 str r3, [r2, #4] - - /*------------------------ DMACCR Configuration --------------------*/ - dmaregval = (((uint32_t)dmaconf->PBLx8Mode << 16) | - 800528e: 683b ldr r3, [r7, #0] - 8005290: 7b5b ldrb r3, [r3, #13] - 8005292: 041a lsls r2, r3, #16 - dmaconf->MaximumSegmentSize); - 8005294: 683b ldr r3, [r7, #0] - 8005296: 6a1b ldr r3, [r3, #32] - dmaregval = (((uint32_t)dmaconf->PBLx8Mode << 16) | - 8005298: 4313 orrs r3, r2 - 800529a: 60fb str r3, [r7, #12] - - MODIFY_REG(heth->Instance->DMACCR, ETH_DMACCR_MASK, dmaregval); - 800529c: 687b ldr r3, [r7, #4] - 800529e: 681b ldr r3, [r3, #0] - 80052a0: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80052a4: f8d3 2100 ldr.w r2, [r3, #256] ; 0x100 - 80052a8: 4b22 ldr r3, [pc, #136] ; (8005334 ) - 80052aa: 4013 ands r3, r2 - 80052ac: 687a ldr r2, [r7, #4] - 80052ae: 6812 ldr r2, [r2, #0] - 80052b0: 68f9 ldr r1, [r7, #12] - 80052b2: 430b orrs r3, r1 - 80052b4: f502 5280 add.w r2, r2, #4096 ; 0x1000 - 80052b8: f8c2 3100 str.w r3, [r2, #256] ; 0x100 - - /*------------------------ DMACTCR Configuration --------------------*/ - dmaregval = (dmaconf->TxDMABurstLength | - 80052bc: 683b ldr r3, [r7, #0] - 80052be: 691a ldr r2, [r3, #16] - ((uint32_t)dmaconf->SecondPacketOperate << 4) | - 80052c0: 683b ldr r3, [r7, #0] - 80052c2: 7d1b ldrb r3, [r3, #20] - 80052c4: 011b lsls r3, r3, #4 - dmaregval = (dmaconf->TxDMABurstLength | - 80052c6: 431a orrs r2, r3 - ((uint32_t)dmaconf->TCPSegmentation << 12)); - 80052c8: 683b ldr r3, [r7, #0] - 80052ca: 7f5b ldrb r3, [r3, #29] - 80052cc: 031b lsls r3, r3, #12 - dmaregval = (dmaconf->TxDMABurstLength | - 80052ce: 4313 orrs r3, r2 - 80052d0: 60fb str r3, [r7, #12] - - MODIFY_REG(heth->Instance->DMACTCR, ETH_DMACTCR_MASK, dmaregval); - 80052d2: 687b ldr r3, [r7, #4] - 80052d4: 681b ldr r3, [r3, #0] - 80052d6: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80052da: f8d3 2104 ldr.w r2, [r3, #260] ; 0x104 - 80052de: 4b16 ldr r3, [pc, #88] ; (8005338 ) - 80052e0: 4013 ands r3, r2 - 80052e2: 687a ldr r2, [r7, #4] - 80052e4: 6812 ldr r2, [r2, #0] - 80052e6: 68f9 ldr r1, [r7, #12] - 80052e8: 430b orrs r3, r1 - 80052ea: f502 5280 add.w r2, r2, #4096 ; 0x1000 - 80052ee: f8c2 3104 str.w r3, [r2, #260] ; 0x104 - - /*------------------------ DMACRCR Configuration --------------------*/ - dmaregval = (((uint32_t)dmaconf->FlushRxPacket << 31) | - 80052f2: 683b ldr r3, [r7, #0] - 80052f4: 7f1b ldrb r3, [r3, #28] - 80052f6: 07da lsls r2, r3, #31 - dmaconf->RxDMABurstLength); - 80052f8: 683b ldr r3, [r7, #0] - 80052fa: 699b ldr r3, [r3, #24] - dmaregval = (((uint32_t)dmaconf->FlushRxPacket << 31) | - 80052fc: 4313 orrs r3, r2 - 80052fe: 60fb str r3, [r7, #12] - - /* Write to DMACRCR */ - MODIFY_REG(heth->Instance->DMACRCR, ETH_DMACRCR_MASK, dmaregval); - 8005300: 687b ldr r3, [r7, #4] - 8005302: 681b ldr r3, [r3, #0] - 8005304: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8005308: f8d3 2108 ldr.w r2, [r3, #264] ; 0x108 - 800530c: 4b0b ldr r3, [pc, #44] ; (800533c ) - 800530e: 4013 ands r3, r2 - 8005310: 687a ldr r2, [r7, #4] - 8005312: 6812 ldr r2, [r2, #0] - 8005314: 68f9 ldr r1, [r7, #12] - 8005316: 430b orrs r3, r1 - 8005318: f502 5280 add.w r2, r2, #4096 ; 0x1000 - 800531c: f8c2 3108 str.w r3, [r2, #264] ; 0x108 -} - 8005320: bf00 nop - 8005322: 3714 adds r7, #20 - 8005324: 46bd mov sp, r7 - 8005326: f85d 7b04 ldr.w r7, [sp], #4 - 800532a: 4770 bx lr - 800532c: ffff87fd .word 0xffff87fd - 8005330: ffff2ffe .word 0xffff2ffe - 8005334: fffec000 .word 0xfffec000 - 8005338: ffc0efef .word 0xffc0efef - 800533c: 7fc0ffff .word 0x7fc0ffff - -08005340 : - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval HAL status - */ -static void ETH_MACDMAConfig(ETH_HandleTypeDef *heth) -{ - 8005340: b580 push {r7, lr} - 8005342: b0a4 sub sp, #144 ; 0x90 - 8005344: af00 add r7, sp, #0 - 8005346: 6078 str r0, [r7, #4] - ETH_MACConfigTypeDef macDefaultConf; - ETH_DMAConfigTypeDef dmaDefaultConf; - - /*--------------- ETHERNET MAC registers default Configuration --------------*/ - macDefaultConf.AutomaticPadCRCStrip = ENABLE; - 8005348: 2301 movs r3, #1 - 800534a: f887 303b strb.w r3, [r7, #59] ; 0x3b - macDefaultConf.BackOffLimit = ETH_BACKOFFLIMIT_10; - 800534e: 2300 movs r3, #0 - 8005350: 653b str r3, [r7, #80] ; 0x50 - macDefaultConf.CarrierSenseBeforeTransmit = DISABLE; - 8005352: 2300 movs r3, #0 - 8005354: f887 3049 strb.w r3, [r7, #73] ; 0x49 - macDefaultConf.CarrierSenseDuringTransmit = DISABLE; - 8005358: 2300 movs r3, #0 - 800535a: f887 304b strb.w r3, [r7, #75] ; 0x4b - macDefaultConf.ChecksumOffload = ENABLE; - 800535e: 2301 movs r3, #1 - 8005360: f887 3030 strb.w r3, [r7, #48] ; 0x30 - macDefaultConf.CRCCheckingRxPackets = ENABLE; - 8005364: 2301 movs r3, #1 - 8005366: f887 305e strb.w r3, [r7, #94] ; 0x5e - macDefaultConf.CRCStripTypePacket = ENABLE; - 800536a: 2301 movs r3, #1 - 800536c: f887 303a strb.w r3, [r7, #58] ; 0x3a - macDefaultConf.DeferralCheck = DISABLE; - 8005370: 2300 movs r3, #0 - 8005372: f887 3054 strb.w r3, [r7, #84] ; 0x54 - macDefaultConf.DropTCPIPChecksumErrorPacket = ENABLE; - 8005376: 2301 movs r3, #1 - 8005378: f887 308c strb.w r3, [r7, #140] ; 0x8c - macDefaultConf.DuplexMode = ETH_FULLDUPLEX_MODE; - 800537c: f44f 5300 mov.w r3, #8192 ; 0x2000 - 8005380: 647b str r3, [r7, #68] ; 0x44 - macDefaultConf.ExtendedInterPacketGap = DISABLE; - 8005382: 2300 movs r3, #0 - 8005384: f887 3064 strb.w r3, [r7, #100] ; 0x64 - macDefaultConf.ExtendedInterPacketGapVal = 0x0; - 8005388: 2300 movs r3, #0 - 800538a: 66bb str r3, [r7, #104] ; 0x68 - macDefaultConf.ForwardRxErrorPacket = DISABLE; - 800538c: 2300 movs r3, #0 - 800538e: f887 308d strb.w r3, [r7, #141] ; 0x8d - macDefaultConf.ForwardRxUndersizedGoodPacket = DISABLE; - 8005392: 2300 movs r3, #0 - 8005394: f887 308e strb.w r3, [r7, #142] ; 0x8e - macDefaultConf.GiantPacketSizeLimit = 0x618; - 8005398: f44f 63c3 mov.w r3, #1560 ; 0x618 - 800539c: 663b str r3, [r7, #96] ; 0x60 - macDefaultConf.GiantPacketSizeLimitControl = DISABLE; - 800539e: 2300 movs r3, #0 - 80053a0: f887 3038 strb.w r3, [r7, #56] ; 0x38 - macDefaultConf.InterPacketGapVal = ETH_INTERPACKETGAP_96BIT; - 80053a4: 2300 movs r3, #0 - 80053a6: 637b str r3, [r7, #52] ; 0x34 - macDefaultConf.Jabber = ENABLE; - 80053a8: 2301 movs r3, #1 - 80053aa: f887 303d strb.w r3, [r7, #61] ; 0x3d - macDefaultConf.JumboPacket = DISABLE; - 80053ae: 2300 movs r3, #0 - 80053b0: f887 303e strb.w r3, [r7, #62] ; 0x3e - macDefaultConf.LoopbackMode = DISABLE; - 80053b4: 2300 movs r3, #0 - 80053b6: f887 3048 strb.w r3, [r7, #72] ; 0x48 - macDefaultConf.PauseLowThreshold = ETH_PAUSELOWTHRESHOLD_MINUS_4; - 80053ba: 2300 movs r3, #0 - 80053bc: 67fb str r3, [r7, #124] ; 0x7c - macDefaultConf.PauseTime = 0x0; - 80053be: 2300 movs r3, #0 - 80053c0: 677b str r3, [r7, #116] ; 0x74 - macDefaultConf.PreambleLength = ETH_PREAMBLELENGTH_7; - 80053c2: 2300 movs r3, #0 - 80053c4: 65bb str r3, [r7, #88] ; 0x58 - macDefaultConf.ProgrammableWatchdog = DISABLE; - 80053c6: 2300 movs r3, #0 - 80053c8: f887 306c strb.w r3, [r7, #108] ; 0x6c - macDefaultConf.ReceiveFlowControl = DISABLE; - 80053cc: 2300 movs r3, #0 - 80053ce: f887 3082 strb.w r3, [r7, #130] ; 0x82 - macDefaultConf.ReceiveOwn = ENABLE; - 80053d2: 2301 movs r3, #1 - 80053d4: f887 304a strb.w r3, [r7, #74] ; 0x4a - macDefaultConf.ReceiveQueueMode = ETH_RECEIVESTOREFORWARD; - 80053d8: 2320 movs r3, #32 - 80053da: f8c7 3088 str.w r3, [r7, #136] ; 0x88 - macDefaultConf.RetryTransmission = ENABLE; - 80053de: 2301 movs r3, #1 - 80053e0: f887 304c strb.w r3, [r7, #76] ; 0x4c - macDefaultConf.SlowProtocolDetect = DISABLE; - 80053e4: 2300 movs r3, #0 - 80053e6: f887 305d strb.w r3, [r7, #93] ; 0x5d - macDefaultConf.SourceAddrControl = ETH_SOURCEADDRESS_REPLACE_ADDR0; - 80053ea: f04f 5340 mov.w r3, #805306368 ; 0x30000000 - 80053ee: 62fb str r3, [r7, #44] ; 0x2c - macDefaultConf.Speed = ETH_SPEED_100M; - 80053f0: f44f 4380 mov.w r3, #16384 ; 0x4000 - 80053f4: 643b str r3, [r7, #64] ; 0x40 - macDefaultConf.Support2KPacket = DISABLE; - 80053f6: 2300 movs r3, #0 - 80053f8: f887 3039 strb.w r3, [r7, #57] ; 0x39 - macDefaultConf.TransmitQueueMode = ETH_TRANSMITSTOREFORWARD; - 80053fc: 2302 movs r3, #2 - 80053fe: f8c7 3084 str.w r3, [r7, #132] ; 0x84 - macDefaultConf.TransmitFlowControl = DISABLE; - 8005402: 2300 movs r3, #0 - 8005404: f887 3080 strb.w r3, [r7, #128] ; 0x80 - macDefaultConf.UnicastPausePacketDetect = DISABLE; - 8005408: 2300 movs r3, #0 - 800540a: f887 3081 strb.w r3, [r7, #129] ; 0x81 - macDefaultConf.UnicastSlowProtocolPacketDetect = DISABLE; - 800540e: 2300 movs r3, #0 - 8005410: f887 305c strb.w r3, [r7, #92] ; 0x5c - macDefaultConf.Watchdog = ENABLE; - 8005414: 2301 movs r3, #1 - 8005416: f887 303c strb.w r3, [r7, #60] ; 0x3c - macDefaultConf.WatchdogTimeout = ETH_MACWTR_WTO_2KB; - 800541a: 2300 movs r3, #0 - 800541c: 673b str r3, [r7, #112] ; 0x70 - macDefaultConf.ZeroQuantaPause = ENABLE; - 800541e: 2301 movs r3, #1 - 8005420: f887 3078 strb.w r3, [r7, #120] ; 0x78 - - /* MAC default configuration */ - ETH_SetMACConfig(heth, &macDefaultConf); - 8005424: f107 032c add.w r3, r7, #44 ; 0x2c - 8005428: 4619 mov r1, r3 - 800542a: 6878 ldr r0, [r7, #4] - 800542c: f7ff fde6 bl 8004ffc - - /*--------------- ETHERNET DMA registers default Configuration --------------*/ - dmaDefaultConf.AddressAlignedBeats = ENABLE; - 8005430: 2301 movs r3, #1 - 8005432: 733b strb r3, [r7, #12] - dmaDefaultConf.BurstMode = ETH_BURSTLENGTH_FIXED; - 8005434: 2301 movs r3, #1 - 8005436: 613b str r3, [r7, #16] - dmaDefaultConf.DMAArbitration = ETH_DMAARBITRATION_RX1_TX1; - 8005438: 2300 movs r3, #0 - 800543a: 60bb str r3, [r7, #8] - dmaDefaultConf.FlushRxPacket = DISABLE; - 800543c: 2300 movs r3, #0 - 800543e: f887 3024 strb.w r3, [r7, #36] ; 0x24 - dmaDefaultConf.PBLx8Mode = DISABLE; - 8005442: 2300 movs r3, #0 - 8005444: 757b strb r3, [r7, #21] - dmaDefaultConf.RebuildINCRxBurst = DISABLE; - 8005446: 2300 movs r3, #0 - 8005448: 753b strb r3, [r7, #20] - dmaDefaultConf.RxDMABurstLength = ETH_RXDMABURSTLENGTH_32BEAT; - 800544a: f44f 1300 mov.w r3, #2097152 ; 0x200000 - 800544e: 623b str r3, [r7, #32] - dmaDefaultConf.SecondPacketOperate = DISABLE; - 8005450: 2300 movs r3, #0 - 8005452: 773b strb r3, [r7, #28] - dmaDefaultConf.TxDMABurstLength = ETH_TXDMABURSTLENGTH_32BEAT; - 8005454: f44f 1300 mov.w r3, #2097152 ; 0x200000 - 8005458: 61bb str r3, [r7, #24] - dmaDefaultConf.TCPSegmentation = DISABLE; - 800545a: 2300 movs r3, #0 - 800545c: f887 3025 strb.w r3, [r7, #37] ; 0x25 - dmaDefaultConf.MaximumSegmentSize = ETH_SEGMENT_SIZE_DEFAULT; - 8005460: f44f 7306 mov.w r3, #536 ; 0x218 - 8005464: 62bb str r3, [r7, #40] ; 0x28 - - /* DMA default configuration */ - ETH_SetDMAConfig(heth, &dmaDefaultConf); - 8005466: f107 0308 add.w r3, r7, #8 - 800546a: 4619 mov r1, r3 - 800546c: 6878 ldr r0, [r7, #4] - 800546e: f7ff fee1 bl 8005234 -} - 8005472: bf00 nop - 8005474: 3790 adds r7, #144 ; 0x90 - 8005476: 46bd mov sp, r7 - 8005478: bd80 pop {r7, pc} - -0800547a : - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval None - */ -static void ETH_DMATxDescListInit(ETH_HandleTypeDef *heth) -{ - 800547a: b480 push {r7} - 800547c: b085 sub sp, #20 - 800547e: af00 add r7, sp, #0 - 8005480: 6078 str r0, [r7, #4] - ETH_DMADescTypeDef *dmatxdesc; - uint32_t i; - - /* Fill each DMATxDesc descriptor with the right values */ - for (i = 0; i < (uint32_t)ETH_TX_DESC_CNT; i++) - 8005482: 2300 movs r3, #0 - 8005484: 60fb str r3, [r7, #12] - 8005486: e01d b.n 80054c4 - { - dmatxdesc = heth->Init.TxDesc + i; - 8005488: 687b ldr r3, [r7, #4] - 800548a: 68d9 ldr r1, [r3, #12] - 800548c: 68fa ldr r2, [r7, #12] - 800548e: 4613 mov r3, r2 - 8005490: 005b lsls r3, r3, #1 - 8005492: 4413 add r3, r2 - 8005494: 00db lsls r3, r3, #3 - 8005496: 440b add r3, r1 - 8005498: 60bb str r3, [r7, #8] - - WRITE_REG(dmatxdesc->DESC0, 0x0); - 800549a: 68bb ldr r3, [r7, #8] - 800549c: 2200 movs r2, #0 - 800549e: 601a str r2, [r3, #0] - WRITE_REG(dmatxdesc->DESC1, 0x0); - 80054a0: 68bb ldr r3, [r7, #8] - 80054a2: 2200 movs r2, #0 - 80054a4: 605a str r2, [r3, #4] - WRITE_REG(dmatxdesc->DESC2, 0x0); - 80054a6: 68bb ldr r3, [r7, #8] - 80054a8: 2200 movs r2, #0 - 80054aa: 609a str r2, [r3, #8] - WRITE_REG(dmatxdesc->DESC3, 0x0); - 80054ac: 68bb ldr r3, [r7, #8] - 80054ae: 2200 movs r2, #0 - 80054b0: 60da str r2, [r3, #12] - - WRITE_REG(heth->TxDescList.TxDesc[i], (uint32_t)dmatxdesc); - 80054b2: 68b9 ldr r1, [r7, #8] - 80054b4: 687b ldr r3, [r7, #4] - 80054b6: 68fa ldr r2, [r7, #12] - 80054b8: 3206 adds r2, #6 - 80054ba: f843 1022 str.w r1, [r3, r2, lsl #2] - for (i = 0; i < (uint32_t)ETH_TX_DESC_CNT; i++) - 80054be: 68fb ldr r3, [r7, #12] - 80054c0: 3301 adds r3, #1 - 80054c2: 60fb str r3, [r7, #12] - 80054c4: 68fb ldr r3, [r7, #12] - 80054c6: 2b03 cmp r3, #3 - 80054c8: d9de bls.n 8005488 - - } - - heth->TxDescList.CurTxDesc = 0; - 80054ca: 687b ldr r3, [r7, #4] - 80054cc: 2200 movs r2, #0 - 80054ce: 629a str r2, [r3, #40] ; 0x28 - - /* Set Transmit Descriptor Ring Length */ - WRITE_REG(heth->Instance->DMACTDRLR, (ETH_TX_DESC_CNT - 1U)); - 80054d0: 687b ldr r3, [r7, #4] - 80054d2: 681b ldr r3, [r3, #0] - 80054d4: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80054d8: 461a mov r2, r3 - 80054da: 2303 movs r3, #3 - 80054dc: f8c2 312c str.w r3, [r2, #300] ; 0x12c - - /* Set Transmit Descriptor List Address */ - WRITE_REG(heth->Instance->DMACTDLAR, (uint32_t) heth->Init.TxDesc); - 80054e0: 687b ldr r3, [r7, #4] - 80054e2: 68da ldr r2, [r3, #12] - 80054e4: 687b ldr r3, [r7, #4] - 80054e6: 681b ldr r3, [r3, #0] - 80054e8: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80054ec: f8c3 2114 str.w r2, [r3, #276] ; 0x114 - - /* Set Transmit Descriptor Tail pointer */ - WRITE_REG(heth->Instance->DMACTDTPR, (uint32_t) heth->Init.TxDesc); - 80054f0: 687b ldr r3, [r7, #4] - 80054f2: 68da ldr r2, [r3, #12] - 80054f4: 687b ldr r3, [r7, #4] - 80054f6: 681b ldr r3, [r3, #0] - 80054f8: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80054fc: f8c3 2120 str.w r2, [r3, #288] ; 0x120 -} - 8005500: bf00 nop - 8005502: 3714 adds r7, #20 - 8005504: 46bd mov sp, r7 - 8005506: f85d 7b04 ldr.w r7, [sp], #4 - 800550a: 4770 bx lr - -0800550c : - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval None - */ -static void ETH_DMARxDescListInit(ETH_HandleTypeDef *heth) -{ - 800550c: b480 push {r7} - 800550e: b085 sub sp, #20 - 8005510: af00 add r7, sp, #0 - 8005512: 6078 str r0, [r7, #4] - ETH_DMADescTypeDef *dmarxdesc; - uint32_t i; - - for (i = 0; i < (uint32_t)ETH_RX_DESC_CNT; i++) - 8005514: 2300 movs r3, #0 - 8005516: 60fb str r3, [r7, #12] - 8005518: e023 b.n 8005562 - { - dmarxdesc = heth->Init.RxDesc + i; - 800551a: 687b ldr r3, [r7, #4] - 800551c: 6919 ldr r1, [r3, #16] - 800551e: 68fa ldr r2, [r7, #12] - 8005520: 4613 mov r3, r2 - 8005522: 005b lsls r3, r3, #1 - 8005524: 4413 add r3, r2 - 8005526: 00db lsls r3, r3, #3 - 8005528: 440b add r3, r1 - 800552a: 60bb str r3, [r7, #8] - - WRITE_REG(dmarxdesc->DESC0, 0x0); - 800552c: 68bb ldr r3, [r7, #8] - 800552e: 2200 movs r2, #0 - 8005530: 601a str r2, [r3, #0] - WRITE_REG(dmarxdesc->DESC1, 0x0); - 8005532: 68bb ldr r3, [r7, #8] - 8005534: 2200 movs r2, #0 - 8005536: 605a str r2, [r3, #4] - WRITE_REG(dmarxdesc->DESC2, 0x0); - 8005538: 68bb ldr r3, [r7, #8] - 800553a: 2200 movs r2, #0 - 800553c: 609a str r2, [r3, #8] - WRITE_REG(dmarxdesc->DESC3, 0x0); - 800553e: 68bb ldr r3, [r7, #8] - 8005540: 2200 movs r2, #0 - 8005542: 60da str r2, [r3, #12] - WRITE_REG(dmarxdesc->BackupAddr0, 0x0); - 8005544: 68bb ldr r3, [r7, #8] - 8005546: 2200 movs r2, #0 - 8005548: 611a str r2, [r3, #16] - WRITE_REG(dmarxdesc->BackupAddr1, 0x0); - 800554a: 68bb ldr r3, [r7, #8] - 800554c: 2200 movs r2, #0 - 800554e: 615a str r2, [r3, #20] - - - /* Set Rx descritors addresses */ - WRITE_REG(heth->RxDescList.RxDesc[i], (uint32_t)dmarxdesc); - 8005550: 68b9 ldr r1, [r7, #8] - 8005552: 687b ldr r3, [r7, #4] - 8005554: 68fa ldr r2, [r7, #12] - 8005556: 3212 adds r2, #18 - 8005558: f843 1022 str.w r1, [r3, r2, lsl #2] - for (i = 0; i < (uint32_t)ETH_RX_DESC_CNT; i++) - 800555c: 68fb ldr r3, [r7, #12] - 800555e: 3301 adds r3, #1 - 8005560: 60fb str r3, [r7, #12] - 8005562: 68fb ldr r3, [r7, #12] - 8005564: 2b03 cmp r3, #3 - 8005566: d9d8 bls.n 800551a - - } - - WRITE_REG(heth->RxDescList.RxDescIdx, 0); - 8005568: 687b ldr r3, [r7, #4] - 800556a: 2200 movs r2, #0 - 800556c: 65da str r2, [r3, #92] ; 0x5c - WRITE_REG(heth->RxDescList.RxDescCnt, 0); - 800556e: 687b ldr r3, [r7, #4] - 8005570: 2200 movs r2, #0 - 8005572: 661a str r2, [r3, #96] ; 0x60 - WRITE_REG(heth->RxDescList.RxBuildDescIdx, 0); - 8005574: 687b ldr r3, [r7, #4] - 8005576: 2200 movs r2, #0 - 8005578: 669a str r2, [r3, #104] ; 0x68 - WRITE_REG(heth->RxDescList.RxBuildDescCnt, 0); - 800557a: 687b ldr r3, [r7, #4] - 800557c: 2200 movs r2, #0 - 800557e: 66da str r2, [r3, #108] ; 0x6c - WRITE_REG(heth->RxDescList.ItMode, 0); - 8005580: 687b ldr r3, [r7, #4] - 8005582: 2200 movs r2, #0 - 8005584: 659a str r2, [r3, #88] ; 0x58 - - /* Set Receive Descriptor Ring Length */ - WRITE_REG(heth->Instance->DMACRDRLR, ((uint32_t)(ETH_RX_DESC_CNT - 1U))); - 8005586: 687b ldr r3, [r7, #4] - 8005588: 681b ldr r3, [r3, #0] - 800558a: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 800558e: 461a mov r2, r3 - 8005590: 2303 movs r3, #3 - 8005592: f8c2 3130 str.w r3, [r2, #304] ; 0x130 - - /* Set Receive Descriptor List Address */ - WRITE_REG(heth->Instance->DMACRDLAR, (uint32_t) heth->Init.RxDesc); - 8005596: 687b ldr r3, [r7, #4] - 8005598: 691a ldr r2, [r3, #16] - 800559a: 687b ldr r3, [r7, #4] - 800559c: 681b ldr r3, [r3, #0] - 800559e: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80055a2: f8c3 211c str.w r2, [r3, #284] ; 0x11c - - /* Set Receive Descriptor Tail pointer Address */ - WRITE_REG(heth->Instance->DMACRDTPR, ((uint32_t)(heth->Init.RxDesc + (uint32_t)(ETH_RX_DESC_CNT - 1U)))); - 80055a6: 687b ldr r3, [r7, #4] - 80055a8: 691b ldr r3, [r3, #16] - 80055aa: f103 0248 add.w r2, r3, #72 ; 0x48 - 80055ae: 687b ldr r3, [r7, #4] - 80055b0: 681b ldr r3, [r3, #0] - 80055b2: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80055b6: f8c3 2128 str.w r2, [r3, #296] ; 0x128 -} - 80055ba: bf00 nop - 80055bc: 3714 adds r7, #20 - 80055be: 46bd mov sp, r7 - 80055c0: f85d 7b04 ldr.w r7, [sp], #4 - 80055c4: 4770 bx lr - ... - -080055c8 : - * @param pTxConfig: Tx packet configuration - * @param ItMode: Enable or disable Tx EOT interrept - * @retval Status - */ -static uint32_t ETH_Prepare_Tx_Descriptors(ETH_HandleTypeDef *heth, ETH_TxPacketConfig *pTxConfig, uint32_t ItMode) -{ - 80055c8: b480 push {r7} - 80055ca: b08d sub sp, #52 ; 0x34 - 80055cc: af00 add r7, sp, #0 - 80055ce: 60f8 str r0, [r7, #12] - 80055d0: 60b9 str r1, [r7, #8] - 80055d2: 607a str r2, [r7, #4] - ETH_TxDescListTypeDef *dmatxdesclist = &heth->TxDescList; - 80055d4: 68fb ldr r3, [r7, #12] - 80055d6: 3318 adds r3, #24 - 80055d8: 617b str r3, [r7, #20] - uint32_t descidx = dmatxdesclist->CurTxDesc; - 80055da: 697b ldr r3, [r7, #20] - 80055dc: 691b ldr r3, [r3, #16] - 80055de: 62fb str r3, [r7, #44] ; 0x2c - uint32_t firstdescidx = dmatxdesclist->CurTxDesc; - 80055e0: 697b ldr r3, [r7, #20] - 80055e2: 691b ldr r3, [r3, #16] - 80055e4: 613b str r3, [r7, #16] - uint32_t idx; - uint32_t descnbr = 0; - 80055e6: 2300 movs r3, #0 - 80055e8: 627b str r3, [r7, #36] ; 0x24 - ETH_DMADescTypeDef *dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx]; - 80055ea: 697b ldr r3, [r7, #20] - 80055ec: 6afa ldr r2, [r7, #44] ; 0x2c - 80055ee: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 80055f2: 623b str r3, [r7, #32] - - ETH_BufferTypeDef *txbuffer = pTxConfig->TxBuffer; - 80055f4: 68bb ldr r3, [r7, #8] - 80055f6: 689b ldr r3, [r3, #8] - 80055f8: 61fb str r3, [r7, #28] - uint32_t bd_count = 0; - 80055fa: 2300 movs r3, #0 - 80055fc: 61bb str r3, [r7, #24] - - /* Current Tx Descriptor Owned by DMA: cannot be used by the application */ - if ((READ_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCWBF_OWN) == ETH_DMATXNDESCWBF_OWN) - 80055fe: 6a3b ldr r3, [r7, #32] - 8005600: 68db ldr r3, [r3, #12] - 8005602: f003 4300 and.w r3, r3, #2147483648 ; 0x80000000 - 8005606: f1b3 4f00 cmp.w r3, #2147483648 ; 0x80000000 - 800560a: d007 beq.n 800561c - || (dmatxdesclist->PacketAddress[descidx] != NULL)) - 800560c: 697a ldr r2, [r7, #20] - 800560e: 6afb ldr r3, [r7, #44] ; 0x2c - 8005610: 3304 adds r3, #4 - 8005612: 009b lsls r3, r3, #2 - 8005614: 4413 add r3, r2 - 8005616: 685b ldr r3, [r3, #4] - 8005618: 2b00 cmp r3, #0 - 800561a: d001 beq.n 8005620 - { - return HAL_ETH_ERROR_BUSY; - 800561c: 2302 movs r3, #2 - 800561e: e259 b.n 8005ad4 - - /***************************************************************************/ - /***************** Context descriptor configuration (Optional) **********/ - /***************************************************************************/ - /* If VLAN tag is enabled for this packet */ - if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_VLANTAG) != (uint32_t)RESET) - 8005620: 68bb ldr r3, [r7, #8] - 8005622: 681b ldr r3, [r3, #0] - 8005624: f003 0304 and.w r3, r3, #4 - 8005628: 2b00 cmp r3, #0 - 800562a: d044 beq.n 80056b6 - { - /* Set vlan tag value */ - MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXCDESC_VT, pTxConfig->VlanTag); - 800562c: 6a3b ldr r3, [r7, #32] - 800562e: 68da ldr r2, [r3, #12] - 8005630: 4b75 ldr r3, [pc, #468] ; (8005808 ) - 8005632: 4013 ands r3, r2 - 8005634: 68ba ldr r2, [r7, #8] - 8005636: 6a52 ldr r2, [r2, #36] ; 0x24 - 8005638: 431a orrs r2, r3 - 800563a: 6a3b ldr r3, [r7, #32] - 800563c: 60da str r2, [r3, #12] - /* Set vlan tag valid bit */ - SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_VLTV); - 800563e: 6a3b ldr r3, [r7, #32] - 8005640: 68db ldr r3, [r3, #12] - 8005642: f443 3280 orr.w r2, r3, #65536 ; 0x10000 - 8005646: 6a3b ldr r3, [r7, #32] - 8005648: 60da str r2, [r3, #12] - /* Set the descriptor as the vlan input source */ - SET_BIT(heth->Instance->MACVIR, ETH_MACVIR_VLTI); - 800564a: 68fb ldr r3, [r7, #12] - 800564c: 681b ldr r3, [r3, #0] - 800564e: 6e1a ldr r2, [r3, #96] ; 0x60 - 8005650: 68fb ldr r3, [r7, #12] - 8005652: 681b ldr r3, [r3, #0] - 8005654: f442 1280 orr.w r2, r2, #1048576 ; 0x100000 - 8005658: 661a str r2, [r3, #96] ; 0x60 - - /* if inner VLAN is enabled */ - if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_INNERVLANTAG) != (uint32_t)RESET) - 800565a: 68bb ldr r3, [r7, #8] - 800565c: 681b ldr r3, [r3, #0] - 800565e: f003 0308 and.w r3, r3, #8 - 8005662: 2b00 cmp r3, #0 - 8005664: d027 beq.n 80056b6 - { - /* Set inner vlan tag value */ - MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXCDESC_IVT, (pTxConfig->InnerVlanTag << 16)); - 8005666: 6a3b ldr r3, [r7, #32] - 8005668: 689b ldr r3, [r3, #8] - 800566a: b29a uxth r2, r3 - 800566c: 68bb ldr r3, [r7, #8] - 800566e: 6adb ldr r3, [r3, #44] ; 0x2c - 8005670: 041b lsls r3, r3, #16 - 8005672: 431a orrs r2, r3 - 8005674: 6a3b ldr r3, [r7, #32] - 8005676: 609a str r2, [r3, #8] - /* Set inner vlan tag valid bit */ - SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_IVLTV); - 8005678: 6a3b ldr r3, [r7, #32] - 800567a: 68db ldr r3, [r3, #12] - 800567c: f443 3200 orr.w r2, r3, #131072 ; 0x20000 - 8005680: 6a3b ldr r3, [r7, #32] - 8005682: 60da str r2, [r3, #12] - - /* Set Vlan Tag control */ - MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXCDESC_IVTIR, pTxConfig->InnerVlanCtrl); - 8005684: 6a3b ldr r3, [r7, #32] - 8005686: 68db ldr r3, [r3, #12] - 8005688: f423 2240 bic.w r2, r3, #786432 ; 0xc0000 - 800568c: 68bb ldr r3, [r7, #8] - 800568e: 6b1b ldr r3, [r3, #48] ; 0x30 - 8005690: 431a orrs r2, r3 - 8005692: 6a3b ldr r3, [r7, #32] - 8005694: 60da str r2, [r3, #12] - - /* Set the descriptor as the inner vlan input source */ - SET_BIT(heth->Instance->MACIVIR, ETH_MACIVIR_VLTI); - 8005696: 68fb ldr r3, [r7, #12] - 8005698: 681b ldr r3, [r3, #0] - 800569a: 6e5a ldr r2, [r3, #100] ; 0x64 - 800569c: 68fb ldr r3, [r7, #12] - 800569e: 681b ldr r3, [r3, #0] - 80056a0: f442 1280 orr.w r2, r2, #1048576 ; 0x100000 - 80056a4: 665a str r2, [r3, #100] ; 0x64 - /* Enable double VLAN processing */ - SET_BIT(heth->Instance->MACVTR, ETH_MACVTR_EDVLP); - 80056a6: 68fb ldr r3, [r7, #12] - 80056a8: 681b ldr r3, [r3, #0] - 80056aa: 6d1a ldr r2, [r3, #80] ; 0x50 - 80056ac: 68fb ldr r3, [r7, #12] - 80056ae: 681b ldr r3, [r3, #0] - 80056b0: f042 6280 orr.w r2, r2, #67108864 ; 0x4000000 - 80056b4: 651a str r2, [r3, #80] ; 0x50 - } - } - - /* if tcp segmentation is enabled for this packet */ - if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_TSO) != (uint32_t)RESET) - 80056b6: 68bb ldr r3, [r7, #8] - 80056b8: 681b ldr r3, [r3, #0] - 80056ba: f003 0310 and.w r3, r3, #16 - 80056be: 2b00 cmp r3, #0 - 80056c0: d00e beq.n 80056e0 - { - /* Set MSS value */ - MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXCDESC_MSS, pTxConfig->MaxSegmentSize); - 80056c2: 6a3b ldr r3, [r7, #32] - 80056c4: 689a ldr r2, [r3, #8] - 80056c6: 4b51 ldr r3, [pc, #324] ; (800580c ) - 80056c8: 4013 ands r3, r2 - 80056ca: 68ba ldr r2, [r7, #8] - 80056cc: 6992 ldr r2, [r2, #24] - 80056ce: 431a orrs r2, r3 - 80056d0: 6a3b ldr r3, [r7, #32] - 80056d2: 609a str r2, [r3, #8] - /* Set MSS valid bit */ - SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_TCMSSV); - 80056d4: 6a3b ldr r3, [r7, #32] - 80056d6: 68db ldr r3, [r3, #12] - 80056d8: f043 6280 orr.w r2, r3, #67108864 ; 0x4000000 - 80056dc: 6a3b ldr r3, [r7, #32] - 80056de: 60da str r2, [r3, #12] - } - - if ((READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_VLANTAG) != (uint32_t)RESET) - 80056e0: 68bb ldr r3, [r7, #8] - 80056e2: 681b ldr r3, [r3, #0] - 80056e4: f003 0304 and.w r3, r3, #4 - 80056e8: 2b00 cmp r3, #0 - 80056ea: d105 bne.n 80056f8 - || (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_TSO) != (uint32_t)RESET)) - 80056ec: 68bb ldr r3, [r7, #8] - 80056ee: 681b ldr r3, [r3, #0] - 80056f0: f003 0310 and.w r3, r3, #16 - 80056f4: 2b00 cmp r3, #0 - 80056f6: d036 beq.n 8005766 - { - /* Set as context descriptor */ - SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_CTXT); - 80056f8: 6a3b ldr r3, [r7, #32] - 80056fa: 68db ldr r3, [r3, #12] - 80056fc: f043 4280 orr.w r2, r3, #1073741824 ; 0x40000000 - 8005700: 6a3b ldr r3, [r7, #32] - 8005702: 60da str r2, [r3, #12] - __ASM volatile ("dmb 0xF":::"memory"); - 8005704: f3bf 8f5f dmb sy -} - 8005708: bf00 nop - /* Ensure rest of descriptor is written to RAM before the OWN bit */ - __DMB(); - /* Set own bit */ - SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_OWN); - 800570a: 6a3b ldr r3, [r7, #32] - 800570c: 68db ldr r3, [r3, #12] - 800570e: f043 4200 orr.w r2, r3, #2147483648 ; 0x80000000 - 8005712: 6a3b ldr r3, [r7, #32] - 8005714: 60da str r2, [r3, #12] - /* Increment current tx descriptor index */ - INCR_TX_DESC_INDEX(descidx, 1U); - 8005716: 6afb ldr r3, [r7, #44] ; 0x2c - 8005718: 3301 adds r3, #1 - 800571a: 62fb str r3, [r7, #44] ; 0x2c - 800571c: 6afb ldr r3, [r7, #44] ; 0x2c - 800571e: 2b03 cmp r3, #3 - 8005720: d902 bls.n 8005728 - 8005722: 6afb ldr r3, [r7, #44] ; 0x2c - 8005724: 3b04 subs r3, #4 - 8005726: 62fb str r3, [r7, #44] ; 0x2c - /* Get current descriptor address */ - dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx]; - 8005728: 697b ldr r3, [r7, #20] - 800572a: 6afa ldr r2, [r7, #44] ; 0x2c - 800572c: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8005730: 623b str r3, [r7, #32] - - descnbr += 1U; - 8005732: 6a7b ldr r3, [r7, #36] ; 0x24 - 8005734: 3301 adds r3, #1 - 8005736: 627b str r3, [r7, #36] ; 0x24 - - /* Current Tx Descriptor Owned by DMA: cannot be used by the application */ - if (READ_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCWBF_OWN) == ETH_DMATXNDESCWBF_OWN) - 8005738: 6a3b ldr r3, [r7, #32] - 800573a: 68db ldr r3, [r3, #12] - 800573c: f003 4300 and.w r3, r3, #2147483648 ; 0x80000000 - 8005740: f1b3 4f00 cmp.w r3, #2147483648 ; 0x80000000 - 8005744: d10f bne.n 8005766 - { - dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[firstdescidx]; - 8005746: 697b ldr r3, [r7, #20] - 8005748: 693a ldr r2, [r7, #16] - 800574a: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 800574e: 623b str r3, [r7, #32] - __ASM volatile ("dmb 0xF":::"memory"); - 8005750: f3bf 8f5f dmb sy -} - 8005754: bf00 nop - /* Ensure rest of descriptor is written to RAM before the OWN bit */ - __DMB(); - /* Clear own bit */ - CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_OWN); - 8005756: 6a3b ldr r3, [r7, #32] - 8005758: 68db ldr r3, [r3, #12] - 800575a: f023 4200 bic.w r2, r3, #2147483648 ; 0x80000000 - 800575e: 6a3b ldr r3, [r7, #32] - 8005760: 60da str r2, [r3, #12] - - return HAL_ETH_ERROR_BUSY; - 8005762: 2302 movs r3, #2 - 8005764: e1b6 b.n 8005ad4 - - /***************************************************************************/ - /***************** Normal descriptors configuration *****************/ - /***************************************************************************/ - - descnbr += 1U; - 8005766: 6a7b ldr r3, [r7, #36] ; 0x24 - 8005768: 3301 adds r3, #1 - 800576a: 627b str r3, [r7, #36] ; 0x24 - - /* Set header or buffer 1 address */ - WRITE_REG(dmatxdesc->DESC0, (uint32_t)txbuffer->buffer); - 800576c: 69fb ldr r3, [r7, #28] - 800576e: 681b ldr r3, [r3, #0] - 8005770: 461a mov r2, r3 - 8005772: 6a3b ldr r3, [r7, #32] - 8005774: 601a str r2, [r3, #0] - /* Set header or buffer 1 Length */ - MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B1L, txbuffer->len); - 8005776: 6a3b ldr r3, [r7, #32] - 8005778: 689a ldr r2, [r3, #8] - 800577a: 4b24 ldr r3, [pc, #144] ; (800580c ) - 800577c: 4013 ands r3, r2 - 800577e: 69fa ldr r2, [r7, #28] - 8005780: 6852 ldr r2, [r2, #4] - 8005782: 431a orrs r2, r3 - 8005784: 6a3b ldr r3, [r7, #32] - 8005786: 609a str r2, [r3, #8] - - if (txbuffer->next != NULL) - 8005788: 69fb ldr r3, [r7, #28] - 800578a: 689b ldr r3, [r3, #8] - 800578c: 2b00 cmp r3, #0 - 800578e: d012 beq.n 80057b6 - { - txbuffer = txbuffer->next; - 8005790: 69fb ldr r3, [r7, #28] - 8005792: 689b ldr r3, [r3, #8] - 8005794: 61fb str r3, [r7, #28] - /* Set buffer 2 address */ - WRITE_REG(dmatxdesc->DESC1, (uint32_t)txbuffer->buffer); - 8005796: 69fb ldr r3, [r7, #28] - 8005798: 681b ldr r3, [r3, #0] - 800579a: 461a mov r2, r3 - 800579c: 6a3b ldr r3, [r7, #32] - 800579e: 605a str r2, [r3, #4] - /* Set buffer 2 Length */ - MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B2L, (txbuffer->len << 16)); - 80057a0: 6a3b ldr r3, [r7, #32] - 80057a2: 689a ldr r2, [r3, #8] - 80057a4: 4b1a ldr r3, [pc, #104] ; (8005810 ) - 80057a6: 4013 ands r3, r2 - 80057a8: 69fa ldr r2, [r7, #28] - 80057aa: 6852 ldr r2, [r2, #4] - 80057ac: 0412 lsls r2, r2, #16 - 80057ae: 431a orrs r2, r3 - 80057b0: 6a3b ldr r3, [r7, #32] - 80057b2: 609a str r2, [r3, #8] - 80057b4: e008 b.n 80057c8 - } - else - { - WRITE_REG(dmatxdesc->DESC1, 0x0); - 80057b6: 6a3b ldr r3, [r7, #32] - 80057b8: 2200 movs r2, #0 - 80057ba: 605a str r2, [r3, #4] - /* Set buffer 2 Length */ - MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B2L, 0x0U); - 80057bc: 6a3b ldr r3, [r7, #32] - 80057be: 689a ldr r2, [r3, #8] - 80057c0: 4b13 ldr r3, [pc, #76] ; (8005810 ) - 80057c2: 4013 ands r3, r2 - 80057c4: 6a3a ldr r2, [r7, #32] - 80057c6: 6093 str r3, [r2, #8] - } - - if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_TSO) != (uint32_t)RESET) - 80057c8: 68bb ldr r3, [r7, #8] - 80057ca: 681b ldr r3, [r3, #0] - 80057cc: f003 0310 and.w r3, r3, #16 - 80057d0: 2b00 cmp r3, #0 - 80057d2: d021 beq.n 8005818 - { - /* Set TCP Header length */ - MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_THL, (pTxConfig->TCPHeaderLen << 19)); - 80057d4: 6a3b ldr r3, [r7, #32] - 80057d6: 68db ldr r3, [r3, #12] - 80057d8: f423 02f0 bic.w r2, r3, #7864320 ; 0x780000 - 80057dc: 68bb ldr r3, [r7, #8] - 80057de: 6a1b ldr r3, [r3, #32] - 80057e0: 04db lsls r3, r3, #19 - 80057e2: 431a orrs r2, r3 - 80057e4: 6a3b ldr r3, [r7, #32] - 80057e6: 60da str r2, [r3, #12] - /* Set TCP payload length */ - MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_TPL, pTxConfig->PayloadLen); - 80057e8: 6a3b ldr r3, [r7, #32] - 80057ea: 68da ldr r2, [r3, #12] - 80057ec: 4b09 ldr r3, [pc, #36] ; (8005814 ) - 80057ee: 4013 ands r3, r2 - 80057f0: 68ba ldr r2, [r7, #8] - 80057f2: 69d2 ldr r2, [r2, #28] - 80057f4: 431a orrs r2, r3 - 80057f6: 6a3b ldr r3, [r7, #32] - 80057f8: 60da str r2, [r3, #12] - /* Set TCP Segmentation Enabled bit */ - SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_TSE); - 80057fa: 6a3b ldr r3, [r7, #32] - 80057fc: 68db ldr r3, [r3, #12] - 80057fe: f443 2280 orr.w r2, r3, #262144 ; 0x40000 - 8005802: 6a3b ldr r3, [r7, #32] - 8005804: 60da str r2, [r3, #12] - 8005806: e02e b.n 8005866 - 8005808: ffff0000 .word 0xffff0000 - 800580c: ffffc000 .word 0xffffc000 - 8005810: c000ffff .word 0xc000ffff - 8005814: fffc0000 .word 0xfffc0000 - } - else - { - MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_FL, pTxConfig->Length); - 8005818: 6a3b ldr r3, [r7, #32] - 800581a: 68da ldr r2, [r3, #12] - 800581c: 4b7b ldr r3, [pc, #492] ; (8005a0c ) - 800581e: 4013 ands r3, r2 - 8005820: 68ba ldr r2, [r7, #8] - 8005822: 6852 ldr r2, [r2, #4] - 8005824: 431a orrs r2, r3 - 8005826: 6a3b ldr r3, [r7, #32] - 8005828: 60da str r2, [r3, #12] - - if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_CSUM) != (uint32_t)RESET) - 800582a: 68bb ldr r3, [r7, #8] - 800582c: 681b ldr r3, [r3, #0] - 800582e: f003 0301 and.w r3, r3, #1 - 8005832: 2b00 cmp r3, #0 - 8005834: d008 beq.n 8005848 - { - MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CIC, pTxConfig->ChecksumCtrl); - 8005836: 6a3b ldr r3, [r7, #32] - 8005838: 68db ldr r3, [r3, #12] - 800583a: f423 3240 bic.w r2, r3, #196608 ; 0x30000 - 800583e: 68bb ldr r3, [r7, #8] - 8005840: 695b ldr r3, [r3, #20] - 8005842: 431a orrs r2, r3 - 8005844: 6a3b ldr r3, [r7, #32] - 8005846: 60da str r2, [r3, #12] - } - - if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_CRCPAD) != (uint32_t)RESET) - 8005848: 68bb ldr r3, [r7, #8] - 800584a: 681b ldr r3, [r3, #0] - 800584c: f003 0320 and.w r3, r3, #32 - 8005850: 2b00 cmp r3, #0 - 8005852: d008 beq.n 8005866 - { - MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CPC, pTxConfig->CRCPadCtrl); - 8005854: 6a3b ldr r3, [r7, #32] - 8005856: 68db ldr r3, [r3, #12] - 8005858: f023 6240 bic.w r2, r3, #201326592 ; 0xc000000 - 800585c: 68bb ldr r3, [r7, #8] - 800585e: 691b ldr r3, [r3, #16] - 8005860: 431a orrs r2, r3 - 8005862: 6a3b ldr r3, [r7, #32] - 8005864: 60da str r2, [r3, #12] - } - } - - if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_VLANTAG) != (uint32_t)RESET) - 8005866: 68bb ldr r3, [r7, #8] - 8005868: 681b ldr r3, [r3, #0] - 800586a: f003 0304 and.w r3, r3, #4 - 800586e: 2b00 cmp r3, #0 - 8005870: d008 beq.n 8005884 - { - /* Set Vlan Tag control */ - MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_VTIR, pTxConfig->VlanCtrl); - 8005872: 6a3b ldr r3, [r7, #32] - 8005874: 689b ldr r3, [r3, #8] - 8005876: f423 4240 bic.w r2, r3, #49152 ; 0xc000 - 800587a: 68bb ldr r3, [r7, #8] - 800587c: 6a9b ldr r3, [r3, #40] ; 0x28 - 800587e: 431a orrs r2, r3 - 8005880: 6a3b ldr r3, [r7, #32] - 8005882: 609a str r2, [r3, #8] - } - - /* Mark it as First Descriptor */ - SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_FD); - 8005884: 6a3b ldr r3, [r7, #32] - 8005886: 68db ldr r3, [r3, #12] - 8005888: f043 5200 orr.w r2, r3, #536870912 ; 0x20000000 - 800588c: 6a3b ldr r3, [r7, #32] - 800588e: 60da str r2, [r3, #12] - /* Mark it as NORMAL descriptor */ - CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CTXT); - 8005890: 6a3b ldr r3, [r7, #32] - 8005892: 68db ldr r3, [r3, #12] - 8005894: f023 4280 bic.w r2, r3, #1073741824 ; 0x40000000 - 8005898: 6a3b ldr r3, [r7, #32] - 800589a: 60da str r2, [r3, #12] - __ASM volatile ("dmb 0xF":::"memory"); - 800589c: f3bf 8f5f dmb sy -} - 80058a0: bf00 nop - /* Ensure rest of descriptor is written to RAM before the OWN bit */ - __DMB(); - /* set OWN bit of FIRST descriptor */ - SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_OWN); - 80058a2: 6a3b ldr r3, [r7, #32] - 80058a4: 68db ldr r3, [r3, #12] - 80058a6: f043 4200 orr.w r2, r3, #2147483648 ; 0x80000000 - 80058aa: 6a3b ldr r3, [r7, #32] - 80058ac: 60da str r2, [r3, #12] - - /* If source address insertion/replacement is enabled for this packet */ - if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_SAIC) != (uint32_t)RESET) - 80058ae: 68bb ldr r3, [r7, #8] - 80058b0: 681b ldr r3, [r3, #0] - 80058b2: f003 0302 and.w r3, r3, #2 - 80058b6: 2b00 cmp r3, #0 - 80058b8: f000 80da beq.w 8005a70 - { - MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_SAIC, pTxConfig->SrcAddrCtrl); - 80058bc: 6a3b ldr r3, [r7, #32] - 80058be: 68db ldr r3, [r3, #12] - 80058c0: f023 7260 bic.w r2, r3, #58720256 ; 0x3800000 - 80058c4: 68bb ldr r3, [r7, #8] - 80058c6: 68db ldr r3, [r3, #12] - 80058c8: 431a orrs r2, r3 - 80058ca: 6a3b ldr r3, [r7, #32] - 80058cc: 60da str r2, [r3, #12] - } - - /* only if the packet is split into more than one descriptors > 1 */ - while (txbuffer->next != NULL) - 80058ce: e0cf b.n 8005a70 - { - /* Clear the LD bit of previous descriptor */ - CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_LD); - 80058d0: 6a3b ldr r3, [r7, #32] - 80058d2: 68db ldr r3, [r3, #12] - 80058d4: f023 5280 bic.w r2, r3, #268435456 ; 0x10000000 - 80058d8: 6a3b ldr r3, [r7, #32] - 80058da: 60da str r2, [r3, #12] - /* Increment current tx descriptor index */ - INCR_TX_DESC_INDEX(descidx, 1U); - 80058dc: 6afb ldr r3, [r7, #44] ; 0x2c - 80058de: 3301 adds r3, #1 - 80058e0: 62fb str r3, [r7, #44] ; 0x2c - 80058e2: 6afb ldr r3, [r7, #44] ; 0x2c - 80058e4: 2b03 cmp r3, #3 - 80058e6: d902 bls.n 80058ee - 80058e8: 6afb ldr r3, [r7, #44] ; 0x2c - 80058ea: 3b04 subs r3, #4 - 80058ec: 62fb str r3, [r7, #44] ; 0x2c - /* Get current descriptor address */ - dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx]; - 80058ee: 697b ldr r3, [r7, #20] - 80058f0: 6afa ldr r2, [r7, #44] ; 0x2c - 80058f2: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 80058f6: 623b str r3, [r7, #32] - - /* Clear the FD bit of new Descriptor */ - CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_FD); - 80058f8: 6a3b ldr r3, [r7, #32] - 80058fa: 68db ldr r3, [r3, #12] - 80058fc: f023 5200 bic.w r2, r3, #536870912 ; 0x20000000 - 8005900: 6a3b ldr r3, [r7, #32] - 8005902: 60da str r2, [r3, #12] - - /* Current Tx Descriptor Owned by DMA: cannot be used by the application */ - if ((READ_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_OWN) == ETH_DMATXNDESCRF_OWN) - 8005904: 6a3b ldr r3, [r7, #32] - 8005906: 68db ldr r3, [r3, #12] - 8005908: f003 4300 and.w r3, r3, #2147483648 ; 0x80000000 - 800590c: f1b3 4f00 cmp.w r3, #2147483648 ; 0x80000000 - 8005910: d007 beq.n 8005922 - || (dmatxdesclist->PacketAddress[descidx] != NULL)) - 8005912: 697a ldr r2, [r7, #20] - 8005914: 6afb ldr r3, [r7, #44] ; 0x2c - 8005916: 3304 adds r3, #4 - 8005918: 009b lsls r3, r3, #2 - 800591a: 4413 add r3, r2 - 800591c: 685b ldr r3, [r3, #4] - 800591e: 2b00 cmp r3, #0 - 8005920: d029 beq.n 8005976 - { - descidx = firstdescidx; - 8005922: 693b ldr r3, [r7, #16] - 8005924: 62fb str r3, [r7, #44] ; 0x2c - dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx]; - 8005926: 697b ldr r3, [r7, #20] - 8005928: 6afa ldr r2, [r7, #44] ; 0x2c - 800592a: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 800592e: 623b str r3, [r7, #32] - - /* clear previous desc own bit */ - for (idx = 0; idx < descnbr; idx ++) - 8005930: 2300 movs r3, #0 - 8005932: 62bb str r3, [r7, #40] ; 0x28 - 8005934: e019 b.n 800596a - __ASM volatile ("dmb 0xF":::"memory"); - 8005936: f3bf 8f5f dmb sy -} - 800593a: bf00 nop - { - /* Ensure rest of descriptor is written to RAM before the OWN bit */ - __DMB(); - - CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_OWN); - 800593c: 6a3b ldr r3, [r7, #32] - 800593e: 68db ldr r3, [r3, #12] - 8005940: f023 4200 bic.w r2, r3, #2147483648 ; 0x80000000 - 8005944: 6a3b ldr r3, [r7, #32] - 8005946: 60da str r2, [r3, #12] - - /* Increment current tx descriptor index */ - INCR_TX_DESC_INDEX(descidx, 1U); - 8005948: 6afb ldr r3, [r7, #44] ; 0x2c - 800594a: 3301 adds r3, #1 - 800594c: 62fb str r3, [r7, #44] ; 0x2c - 800594e: 6afb ldr r3, [r7, #44] ; 0x2c - 8005950: 2b03 cmp r3, #3 - 8005952: d902 bls.n 800595a - 8005954: 6afb ldr r3, [r7, #44] ; 0x2c - 8005956: 3b04 subs r3, #4 - 8005958: 62fb str r3, [r7, #44] ; 0x2c - /* Get current descriptor address */ - dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx]; - 800595a: 697b ldr r3, [r7, #20] - 800595c: 6afa ldr r2, [r7, #44] ; 0x2c - 800595e: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8005962: 623b str r3, [r7, #32] - for (idx = 0; idx < descnbr; idx ++) - 8005964: 6abb ldr r3, [r7, #40] ; 0x28 - 8005966: 3301 adds r3, #1 - 8005968: 62bb str r3, [r7, #40] ; 0x28 - 800596a: 6aba ldr r2, [r7, #40] ; 0x28 - 800596c: 6a7b ldr r3, [r7, #36] ; 0x24 - 800596e: 429a cmp r2, r3 - 8005970: d3e1 bcc.n 8005936 - } - - return HAL_ETH_ERROR_BUSY; - 8005972: 2302 movs r3, #2 - 8005974: e0ae b.n 8005ad4 - } - - descnbr += 1U; - 8005976: 6a7b ldr r3, [r7, #36] ; 0x24 - 8005978: 3301 adds r3, #1 - 800597a: 627b str r3, [r7, #36] ; 0x24 - - /* Get the next Tx buffer in the list */ - txbuffer = txbuffer->next; - 800597c: 69fb ldr r3, [r7, #28] - 800597e: 689b ldr r3, [r3, #8] - 8005980: 61fb str r3, [r7, #28] - - /* Set header or buffer 1 address */ - WRITE_REG(dmatxdesc->DESC0, (uint32_t)txbuffer->buffer); - 8005982: 69fb ldr r3, [r7, #28] - 8005984: 681b ldr r3, [r3, #0] - 8005986: 461a mov r2, r3 - 8005988: 6a3b ldr r3, [r7, #32] - 800598a: 601a str r2, [r3, #0] - /* Set header or buffer 1 Length */ - MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B1L, txbuffer->len); - 800598c: 6a3b ldr r3, [r7, #32] - 800598e: 689a ldr r2, [r3, #8] - 8005990: 4b1f ldr r3, [pc, #124] ; (8005a10 ) - 8005992: 4013 ands r3, r2 - 8005994: 69fa ldr r2, [r7, #28] - 8005996: 6852 ldr r2, [r2, #4] - 8005998: 431a orrs r2, r3 - 800599a: 6a3b ldr r3, [r7, #32] - 800599c: 609a str r2, [r3, #8] - - if (txbuffer->next != NULL) - 800599e: 69fb ldr r3, [r7, #28] - 80059a0: 689b ldr r3, [r3, #8] - 80059a2: 2b00 cmp r3, #0 - 80059a4: d012 beq.n 80059cc - { - /* Get the next Tx buffer in the list */ - txbuffer = txbuffer->next; - 80059a6: 69fb ldr r3, [r7, #28] - 80059a8: 689b ldr r3, [r3, #8] - 80059aa: 61fb str r3, [r7, #28] - /* Set buffer 2 address */ - WRITE_REG(dmatxdesc->DESC1, (uint32_t)txbuffer->buffer); - 80059ac: 69fb ldr r3, [r7, #28] - 80059ae: 681b ldr r3, [r3, #0] - 80059b0: 461a mov r2, r3 - 80059b2: 6a3b ldr r3, [r7, #32] - 80059b4: 605a str r2, [r3, #4] - /* Set buffer 2 Length */ - MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B2L, (txbuffer->len << 16)); - 80059b6: 6a3b ldr r3, [r7, #32] - 80059b8: 689a ldr r2, [r3, #8] - 80059ba: 4b16 ldr r3, [pc, #88] ; (8005a14 ) - 80059bc: 4013 ands r3, r2 - 80059be: 69fa ldr r2, [r7, #28] - 80059c0: 6852 ldr r2, [r2, #4] - 80059c2: 0412 lsls r2, r2, #16 - 80059c4: 431a orrs r2, r3 - 80059c6: 6a3b ldr r3, [r7, #32] - 80059c8: 609a str r2, [r3, #8] - 80059ca: e008 b.n 80059de - } - else - { - WRITE_REG(dmatxdesc->DESC1, 0x0); - 80059cc: 6a3b ldr r3, [r7, #32] - 80059ce: 2200 movs r2, #0 - 80059d0: 605a str r2, [r3, #4] - /* Set buffer 2 Length */ - MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B2L, 0x0U); - 80059d2: 6a3b ldr r3, [r7, #32] - 80059d4: 689a ldr r2, [r3, #8] - 80059d6: 4b0f ldr r3, [pc, #60] ; (8005a14 ) - 80059d8: 4013 ands r3, r2 - 80059da: 6a3a ldr r2, [r7, #32] - 80059dc: 6093 str r3, [r2, #8] - } - - if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_TSO) != (uint32_t)RESET) - 80059de: 68bb ldr r3, [r7, #8] - 80059e0: 681b ldr r3, [r3, #0] - 80059e2: f003 0310 and.w r3, r3, #16 - 80059e6: 2b00 cmp r3, #0 - 80059e8: d018 beq.n 8005a1c - { - /* Set TCP payload length */ - MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_TPL, pTxConfig->PayloadLen); - 80059ea: 6a3b ldr r3, [r7, #32] - 80059ec: 68da ldr r2, [r3, #12] - 80059ee: 4b0a ldr r3, [pc, #40] ; (8005a18 ) - 80059f0: 4013 ands r3, r2 - 80059f2: 68ba ldr r2, [r7, #8] - 80059f4: 69d2 ldr r2, [r2, #28] - 80059f6: 431a orrs r2, r3 - 80059f8: 6a3b ldr r3, [r7, #32] - 80059fa: 60da str r2, [r3, #12] - /* Set TCP Segmentation Enabled bit */ - SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_TSE); - 80059fc: 6a3b ldr r3, [r7, #32] - 80059fe: 68db ldr r3, [r3, #12] - 8005a00: f443 2280 orr.w r2, r3, #262144 ; 0x40000 - 8005a04: 6a3b ldr r3, [r7, #32] - 8005a06: 60da str r2, [r3, #12] - 8005a08: e020 b.n 8005a4c - 8005a0a: bf00 nop - 8005a0c: ffff8000 .word 0xffff8000 - 8005a10: ffffc000 .word 0xffffc000 - 8005a14: c000ffff .word 0xc000ffff - 8005a18: fffc0000 .word 0xfffc0000 - } - else - { - /* Set the packet length */ - MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_FL, pTxConfig->Length); - 8005a1c: 6a3b ldr r3, [r7, #32] - 8005a1e: 68da ldr r2, [r3, #12] - 8005a20: 4b2f ldr r3, [pc, #188] ; (8005ae0 ) - 8005a22: 4013 ands r3, r2 - 8005a24: 68ba ldr r2, [r7, #8] - 8005a26: 6852 ldr r2, [r2, #4] - 8005a28: 431a orrs r2, r3 - 8005a2a: 6a3b ldr r3, [r7, #32] - 8005a2c: 60da str r2, [r3, #12] - - if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_CSUM) != (uint32_t)RESET) - 8005a2e: 68bb ldr r3, [r7, #8] - 8005a30: 681b ldr r3, [r3, #0] - 8005a32: f003 0301 and.w r3, r3, #1 - 8005a36: 2b00 cmp r3, #0 - 8005a38: d008 beq.n 8005a4c - { - /* Checksum Insertion Control */ - MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CIC, pTxConfig->ChecksumCtrl); - 8005a3a: 6a3b ldr r3, [r7, #32] - 8005a3c: 68db ldr r3, [r3, #12] - 8005a3e: f423 3240 bic.w r2, r3, #196608 ; 0x30000 - 8005a42: 68bb ldr r3, [r7, #8] - 8005a44: 695b ldr r3, [r3, #20] - 8005a46: 431a orrs r2, r3 - 8005a48: 6a3b ldr r3, [r7, #32] - 8005a4a: 60da str r2, [r3, #12] - } - } - - bd_count += 1U; - 8005a4c: 69bb ldr r3, [r7, #24] - 8005a4e: 3301 adds r3, #1 - 8005a50: 61bb str r3, [r7, #24] - __ASM volatile ("dmb 0xF":::"memory"); - 8005a52: f3bf 8f5f dmb sy -} - 8005a56: bf00 nop - - /* Ensure rest of descriptor is written to RAM before the OWN bit */ - __DMB(); - /* Set Own bit */ - SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_OWN); - 8005a58: 6a3b ldr r3, [r7, #32] - 8005a5a: 68db ldr r3, [r3, #12] - 8005a5c: f043 4200 orr.w r2, r3, #2147483648 ; 0x80000000 - 8005a60: 6a3b ldr r3, [r7, #32] - 8005a62: 60da str r2, [r3, #12] - /* Mark it as NORMAL descriptor */ - CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CTXT); - 8005a64: 6a3b ldr r3, [r7, #32] - 8005a66: 68db ldr r3, [r3, #12] - 8005a68: f023 4280 bic.w r2, r3, #1073741824 ; 0x40000000 - 8005a6c: 6a3b ldr r3, [r7, #32] - 8005a6e: 60da str r2, [r3, #12] - while (txbuffer->next != NULL) - 8005a70: 69fb ldr r3, [r7, #28] - 8005a72: 689b ldr r3, [r3, #8] - 8005a74: 2b00 cmp r3, #0 - 8005a76: f47f af2b bne.w 80058d0 - } - - if (ItMode != ((uint32_t)RESET)) - 8005a7a: 687b ldr r3, [r7, #4] - 8005a7c: 2b00 cmp r3, #0 - 8005a7e: d006 beq.n 8005a8e - { - /* Set Interrupt on completion bit */ - SET_BIT(dmatxdesc->DESC2, ETH_DMATXNDESCRF_IOC); - 8005a80: 6a3b ldr r3, [r7, #32] - 8005a82: 689b ldr r3, [r3, #8] - 8005a84: f043 4200 orr.w r2, r3, #2147483648 ; 0x80000000 - 8005a88: 6a3b ldr r3, [r7, #32] - 8005a8a: 609a str r2, [r3, #8] - 8005a8c: e005 b.n 8005a9a - } - else - { - /* Clear Interrupt on completion bit */ - CLEAR_BIT(dmatxdesc->DESC2, ETH_DMATXNDESCRF_IOC); - 8005a8e: 6a3b ldr r3, [r7, #32] - 8005a90: 689b ldr r3, [r3, #8] - 8005a92: f023 4200 bic.w r2, r3, #2147483648 ; 0x80000000 - 8005a96: 6a3b ldr r3, [r7, #32] - 8005a98: 609a str r2, [r3, #8] - } - - /* Mark it as LAST descriptor */ - SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_LD); - 8005a9a: 6a3b ldr r3, [r7, #32] - 8005a9c: 68db ldr r3, [r3, #12] - 8005a9e: f043 5280 orr.w r2, r3, #268435456 ; 0x10000000 - 8005aa2: 6a3b ldr r3, [r7, #32] - 8005aa4: 60da str r2, [r3, #12] - /* Save the current packet address to expose it to the application */ - dmatxdesclist->PacketAddress[descidx] = dmatxdesclist->CurrentPacketAddress; - 8005aa6: 697b ldr r3, [r7, #20] - 8005aa8: 6a5a ldr r2, [r3, #36] ; 0x24 - 8005aaa: 6979 ldr r1, [r7, #20] - 8005aac: 6afb ldr r3, [r7, #44] ; 0x2c - 8005aae: 3304 adds r3, #4 - 8005ab0: 009b lsls r3, r3, #2 - 8005ab2: 440b add r3, r1 - 8005ab4: 605a str r2, [r3, #4] - - dmatxdesclist->CurTxDesc = descidx; - 8005ab6: 697b ldr r3, [r7, #20] - 8005ab8: 6afa ldr r2, [r7, #44] ; 0x2c - 8005aba: 611a str r2, [r3, #16] - __ASM volatile ("cpsid i" : : : "memory"); - 8005abc: b672 cpsid i -} - 8005abe: bf00 nop - - /* disable the interrupt */ - __disable_irq(); - - dmatxdesclist->BuffersInUse += bd_count + 1U; - 8005ac0: 697b ldr r3, [r7, #20] - 8005ac2: 6a9a ldr r2, [r3, #40] ; 0x28 - 8005ac4: 69bb ldr r3, [r7, #24] - 8005ac6: 4413 add r3, r2 - 8005ac8: 1c5a adds r2, r3, #1 - 8005aca: 697b ldr r3, [r7, #20] - 8005acc: 629a str r2, [r3, #40] ; 0x28 - __ASM volatile ("cpsie i" : : : "memory"); - 8005ace: b662 cpsie i -} - 8005ad0: bf00 nop - /* Enable interrupts back */ - __enable_irq(); - - - /* Return function status */ - return HAL_ETH_ERROR_NONE; - 8005ad2: 2300 movs r3, #0 -} - 8005ad4: 4618 mov r0, r3 - 8005ad6: 3734 adds r7, #52 ; 0x34 - 8005ad8: 46bd mov sp, r7 - 8005ada: f85d 7b04 ldr.w r7, [sp], #4 - 8005ade: 4770 bx lr - 8005ae0: ffff8000 .word 0xffff8000 - -08005ae4 : - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_Init(FDCAN_HandleTypeDef *hfdcan) -{ - 8005ae4: b580 push {r7, lr} - 8005ae6: b098 sub sp, #96 ; 0x60 - 8005ae8: af00 add r7, sp, #0 - 8005aea: 6078 str r0, [r7, #4] - uint32_t tickstart; - HAL_StatusTypeDef status; - const uint32_t CvtEltSize[] = {0, 0, 0, 0, 0, 1, 2, 3, 4, 0, 5, 0, 0, 0, 6, 0, 0, 0, 7}; - 8005aec: 4a84 ldr r2, [pc, #528] ; (8005d00 ) - 8005aee: f107 030c add.w r3, r7, #12 - 8005af2: 4611 mov r1, r2 - 8005af4: 224c movs r2, #76 ; 0x4c - 8005af6: 4618 mov r0, r3 - 8005af8: f01c f975 bl 8021de6 - - /* Check FDCAN handle */ - if (hfdcan == NULL) - 8005afc: 687b ldr r3, [r7, #4] - 8005afe: 2b00 cmp r3, #0 - 8005b00: d101 bne.n 8005b06 - { - return HAL_ERROR; - 8005b02: 2301 movs r3, #1 - 8005b04: e1c6 b.n 8005e94 - } - - /* Check FDCAN instance */ - if (hfdcan->Instance == FDCAN1) - 8005b06: 687b ldr r3, [r7, #4] - 8005b08: 681b ldr r3, [r3, #0] - 8005b0a: 4a7e ldr r2, [pc, #504] ; (8005d04 ) - 8005b0c: 4293 cmp r3, r2 - 8005b0e: d106 bne.n 8005b1e - { - hfdcan->ttcan = (TTCAN_TypeDef *)((uint32_t)hfdcan->Instance + 0x100U); - 8005b10: 687b ldr r3, [r7, #4] - 8005b12: 681b ldr r3, [r3, #0] - 8005b14: f503 7380 add.w r3, r3, #256 ; 0x100 - 8005b18: 461a mov r2, r3 - 8005b1a: 687b ldr r3, [r7, #4] - 8005b1c: 605a str r2, [r3, #4] - - /* Init the low level hardware: CLOCK, NVIC */ - hfdcan->MspInitCallback(hfdcan); - } -#else - if (hfdcan->State == HAL_FDCAN_STATE_RESET) - 8005b1e: 687b ldr r3, [r7, #4] - 8005b20: f893 3098 ldrb.w r3, [r3, #152] ; 0x98 - 8005b24: b2db uxtb r3, r3 - 8005b26: 2b00 cmp r3, #0 - 8005b28: d106 bne.n 8005b38 - { - /* Allocate lock resource and initialize it */ - hfdcan->Lock = HAL_UNLOCKED; - 8005b2a: 687b ldr r3, [r7, #4] - 8005b2c: 2200 movs r2, #0 - 8005b2e: f883 2099 strb.w r2, [r3, #153] ; 0x99 - - /* Init the low level hardware: CLOCK, NVIC */ - HAL_FDCAN_MspInit(hfdcan); - 8005b32: 6878 ldr r0, [r7, #4] - 8005b34: f7fb fd02 bl 800153c - } -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - - /* Exit from Sleep mode */ - CLEAR_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_CSR); - 8005b38: 687b ldr r3, [r7, #4] - 8005b3a: 681b ldr r3, [r3, #0] - 8005b3c: 699a ldr r2, [r3, #24] - 8005b3e: 687b ldr r3, [r7, #4] - 8005b40: 681b ldr r3, [r3, #0] - 8005b42: f022 0210 bic.w r2, r2, #16 - 8005b46: 619a str r2, [r3, #24] - - /* Get tick */ - tickstart = HAL_GetTick(); - 8005b48: f7fc fc0c bl 8002364 - 8005b4c: 65f8 str r0, [r7, #92] ; 0x5c - - /* Check Sleep mode acknowledge */ - while ((hfdcan->Instance->CCCR & FDCAN_CCCR_CSA) == FDCAN_CCCR_CSA) - 8005b4e: e014 b.n 8005b7a - { - if ((HAL_GetTick() - tickstart) > FDCAN_TIMEOUT_VALUE) - 8005b50: f7fc fc08 bl 8002364 - 8005b54: 4602 mov r2, r0 - 8005b56: 6dfb ldr r3, [r7, #92] ; 0x5c - 8005b58: 1ad3 subs r3, r2, r3 - 8005b5a: 2b0a cmp r3, #10 - 8005b5c: d90d bls.n 8005b7a - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_TIMEOUT; - 8005b5e: 687b ldr r3, [r7, #4] - 8005b60: f8d3 309c ldr.w r3, [r3, #156] ; 0x9c - 8005b64: f043 0201 orr.w r2, r3, #1 - 8005b68: 687b ldr r3, [r7, #4] - 8005b6a: f8c3 209c str.w r2, [r3, #156] ; 0x9c - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - 8005b6e: 687b ldr r3, [r7, #4] - 8005b70: 2203 movs r2, #3 - 8005b72: f883 2098 strb.w r2, [r3, #152] ; 0x98 - - return HAL_ERROR; - 8005b76: 2301 movs r3, #1 - 8005b78: e18c b.n 8005e94 - while ((hfdcan->Instance->CCCR & FDCAN_CCCR_CSA) == FDCAN_CCCR_CSA) - 8005b7a: 687b ldr r3, [r7, #4] - 8005b7c: 681b ldr r3, [r3, #0] - 8005b7e: 699b ldr r3, [r3, #24] - 8005b80: f003 0308 and.w r3, r3, #8 - 8005b84: 2b08 cmp r3, #8 - 8005b86: d0e3 beq.n 8005b50 - } - } - - /* Request initialisation */ - SET_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_INIT); - 8005b88: 687b ldr r3, [r7, #4] - 8005b8a: 681b ldr r3, [r3, #0] - 8005b8c: 699a ldr r2, [r3, #24] - 8005b8e: 687b ldr r3, [r7, #4] - 8005b90: 681b ldr r3, [r3, #0] - 8005b92: f042 0201 orr.w r2, r2, #1 - 8005b96: 619a str r2, [r3, #24] - - /* Get tick */ - tickstart = HAL_GetTick(); - 8005b98: f7fc fbe4 bl 8002364 - 8005b9c: 65f8 str r0, [r7, #92] ; 0x5c - - /* Wait until the INIT bit into CCCR register is set */ - while ((hfdcan->Instance->CCCR & FDCAN_CCCR_INIT) == 0U) - 8005b9e: e014 b.n 8005bca - { - /* Check for the Timeout */ - if ((HAL_GetTick() - tickstart) > FDCAN_TIMEOUT_VALUE) - 8005ba0: f7fc fbe0 bl 8002364 - 8005ba4: 4602 mov r2, r0 - 8005ba6: 6dfb ldr r3, [r7, #92] ; 0x5c - 8005ba8: 1ad3 subs r3, r2, r3 - 8005baa: 2b0a cmp r3, #10 - 8005bac: d90d bls.n 8005bca - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_TIMEOUT; - 8005bae: 687b ldr r3, [r7, #4] - 8005bb0: f8d3 309c ldr.w r3, [r3, #156] ; 0x9c - 8005bb4: f043 0201 orr.w r2, r3, #1 - 8005bb8: 687b ldr r3, [r7, #4] - 8005bba: f8c3 209c str.w r2, [r3, #156] ; 0x9c - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - 8005bbe: 687b ldr r3, [r7, #4] - 8005bc0: 2203 movs r2, #3 - 8005bc2: f883 2098 strb.w r2, [r3, #152] ; 0x98 - - return HAL_ERROR; - 8005bc6: 2301 movs r3, #1 - 8005bc8: e164 b.n 8005e94 - while ((hfdcan->Instance->CCCR & FDCAN_CCCR_INIT) == 0U) - 8005bca: 687b ldr r3, [r7, #4] - 8005bcc: 681b ldr r3, [r3, #0] - 8005bce: 699b ldr r3, [r3, #24] - 8005bd0: f003 0301 and.w r3, r3, #1 - 8005bd4: 2b00 cmp r3, #0 - 8005bd6: d0e3 beq.n 8005ba0 - } - } - - /* Enable configuration change */ - SET_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_CCE); - 8005bd8: 687b ldr r3, [r7, #4] - 8005bda: 681b ldr r3, [r3, #0] - 8005bdc: 699a ldr r2, [r3, #24] - 8005bde: 687b ldr r3, [r7, #4] - 8005be0: 681b ldr r3, [r3, #0] - 8005be2: f042 0202 orr.w r2, r2, #2 - 8005be6: 619a str r2, [r3, #24] - - /* Set the no automatic retransmission */ - if (hfdcan->Init.AutoRetransmission == ENABLE) - 8005be8: 687b ldr r3, [r7, #4] - 8005bea: 7c1b ldrb r3, [r3, #16] - 8005bec: 2b01 cmp r3, #1 - 8005bee: d108 bne.n 8005c02 - { - CLEAR_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_DAR); - 8005bf0: 687b ldr r3, [r7, #4] - 8005bf2: 681b ldr r3, [r3, #0] - 8005bf4: 699a ldr r2, [r3, #24] - 8005bf6: 687b ldr r3, [r7, #4] - 8005bf8: 681b ldr r3, [r3, #0] - 8005bfa: f022 0240 bic.w r2, r2, #64 ; 0x40 - 8005bfe: 619a str r2, [r3, #24] - 8005c00: e007 b.n 8005c12 - } - else - { - SET_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_DAR); - 8005c02: 687b ldr r3, [r7, #4] - 8005c04: 681b ldr r3, [r3, #0] - 8005c06: 699a ldr r2, [r3, #24] - 8005c08: 687b ldr r3, [r7, #4] - 8005c0a: 681b ldr r3, [r3, #0] - 8005c0c: f042 0240 orr.w r2, r2, #64 ; 0x40 - 8005c10: 619a str r2, [r3, #24] - } - - /* Set the transmit pause feature */ - if (hfdcan->Init.TransmitPause == ENABLE) - 8005c12: 687b ldr r3, [r7, #4] - 8005c14: 7c5b ldrb r3, [r3, #17] - 8005c16: 2b01 cmp r3, #1 - 8005c18: d108 bne.n 8005c2c - { - SET_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_TXP); - 8005c1a: 687b ldr r3, [r7, #4] - 8005c1c: 681b ldr r3, [r3, #0] - 8005c1e: 699a ldr r2, [r3, #24] - 8005c20: 687b ldr r3, [r7, #4] - 8005c22: 681b ldr r3, [r3, #0] - 8005c24: f442 4280 orr.w r2, r2, #16384 ; 0x4000 - 8005c28: 619a str r2, [r3, #24] - 8005c2a: e007 b.n 8005c3c - } - else - { - CLEAR_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_TXP); - 8005c2c: 687b ldr r3, [r7, #4] - 8005c2e: 681b ldr r3, [r3, #0] - 8005c30: 699a ldr r2, [r3, #24] - 8005c32: 687b ldr r3, [r7, #4] - 8005c34: 681b ldr r3, [r3, #0] - 8005c36: f422 4280 bic.w r2, r2, #16384 ; 0x4000 - 8005c3a: 619a str r2, [r3, #24] - } - - /* Set the Protocol Exception Handling */ - if (hfdcan->Init.ProtocolException == ENABLE) - 8005c3c: 687b ldr r3, [r7, #4] - 8005c3e: 7c9b ldrb r3, [r3, #18] - 8005c40: 2b01 cmp r3, #1 - 8005c42: d108 bne.n 8005c56 - { - CLEAR_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_PXHD); - 8005c44: 687b ldr r3, [r7, #4] - 8005c46: 681b ldr r3, [r3, #0] - 8005c48: 699a ldr r2, [r3, #24] - 8005c4a: 687b ldr r3, [r7, #4] - 8005c4c: 681b ldr r3, [r3, #0] - 8005c4e: f422 5280 bic.w r2, r2, #4096 ; 0x1000 - 8005c52: 619a str r2, [r3, #24] - 8005c54: e007 b.n 8005c66 - } - else - { - SET_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_PXHD); - 8005c56: 687b ldr r3, [r7, #4] - 8005c58: 681b ldr r3, [r3, #0] - 8005c5a: 699a ldr r2, [r3, #24] - 8005c5c: 687b ldr r3, [r7, #4] - 8005c5e: 681b ldr r3, [r3, #0] - 8005c60: f442 5280 orr.w r2, r2, #4096 ; 0x1000 - 8005c64: 619a str r2, [r3, #24] - } - - /* Set FDCAN Frame Format */ - MODIFY_REG(hfdcan->Instance->CCCR, FDCAN_FRAME_FD_BRS, hfdcan->Init.FrameFormat); - 8005c66: 687b ldr r3, [r7, #4] - 8005c68: 681b ldr r3, [r3, #0] - 8005c6a: 699b ldr r3, [r3, #24] - 8005c6c: f423 7140 bic.w r1, r3, #768 ; 0x300 - 8005c70: 687b ldr r3, [r7, #4] - 8005c72: 689a ldr r2, [r3, #8] - 8005c74: 687b ldr r3, [r7, #4] - 8005c76: 681b ldr r3, [r3, #0] - 8005c78: 430a orrs r2, r1 - 8005c7a: 619a str r2, [r3, #24] - - /* Reset FDCAN Operation Mode */ - CLEAR_BIT(hfdcan->Instance->CCCR, (FDCAN_CCCR_TEST | FDCAN_CCCR_MON | FDCAN_CCCR_ASM)); - 8005c7c: 687b ldr r3, [r7, #4] - 8005c7e: 681b ldr r3, [r3, #0] - 8005c80: 699a ldr r2, [r3, #24] - 8005c82: 687b ldr r3, [r7, #4] - 8005c84: 681b ldr r3, [r3, #0] - 8005c86: f022 02a4 bic.w r2, r2, #164 ; 0xa4 - 8005c8a: 619a str r2, [r3, #24] - CLEAR_BIT(hfdcan->Instance->TEST, FDCAN_TEST_LBCK); - 8005c8c: 687b ldr r3, [r7, #4] - 8005c8e: 681b ldr r3, [r3, #0] - 8005c90: 691a ldr r2, [r3, #16] - 8005c92: 687b ldr r3, [r7, #4] - 8005c94: 681b ldr r3, [r3, #0] - 8005c96: f022 0210 bic.w r2, r2, #16 - 8005c9a: 611a str r2, [r3, #16] - CCCR.TEST | 0 | 0 | 0 | 1 | 1 - CCCR.MON | 0 | 0 | 1 | 1 | 0 - TEST.LBCK | 0 | 0 | 0 | 1 | 1 - CCCR.ASM | 0 | 1 | 0 | 0 | 0 - */ - if (hfdcan->Init.Mode == FDCAN_MODE_RESTRICTED_OPERATION) - 8005c9c: 687b ldr r3, [r7, #4] - 8005c9e: 68db ldr r3, [r3, #12] - 8005ca0: 2b01 cmp r3, #1 - 8005ca2: d108 bne.n 8005cb6 - { - /* Enable Restricted Operation mode */ - SET_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_ASM); - 8005ca4: 687b ldr r3, [r7, #4] - 8005ca6: 681b ldr r3, [r3, #0] - 8005ca8: 699a ldr r2, [r3, #24] - 8005caa: 687b ldr r3, [r7, #4] - 8005cac: 681b ldr r3, [r3, #0] - 8005cae: f042 0204 orr.w r2, r2, #4 - 8005cb2: 619a str r2, [r3, #24] - 8005cb4: e030 b.n 8005d18 - } - else if (hfdcan->Init.Mode != FDCAN_MODE_NORMAL) - 8005cb6: 687b ldr r3, [r7, #4] - 8005cb8: 68db ldr r3, [r3, #12] - 8005cba: 2b00 cmp r3, #0 - 8005cbc: d02c beq.n 8005d18 - { - if (hfdcan->Init.Mode != FDCAN_MODE_BUS_MONITORING) - 8005cbe: 687b ldr r3, [r7, #4] - 8005cc0: 68db ldr r3, [r3, #12] - 8005cc2: 2b02 cmp r3, #2 - 8005cc4: d020 beq.n 8005d08 - { - /* Enable write access to TEST register */ - SET_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_TEST); - 8005cc6: 687b ldr r3, [r7, #4] - 8005cc8: 681b ldr r3, [r3, #0] - 8005cca: 699a ldr r2, [r3, #24] - 8005ccc: 687b ldr r3, [r7, #4] - 8005cce: 681b ldr r3, [r3, #0] - 8005cd0: f042 0280 orr.w r2, r2, #128 ; 0x80 - 8005cd4: 619a str r2, [r3, #24] - - /* Enable LoopBack mode */ - SET_BIT(hfdcan->Instance->TEST, FDCAN_TEST_LBCK); - 8005cd6: 687b ldr r3, [r7, #4] - 8005cd8: 681b ldr r3, [r3, #0] - 8005cda: 691a ldr r2, [r3, #16] - 8005cdc: 687b ldr r3, [r7, #4] - 8005cde: 681b ldr r3, [r3, #0] - 8005ce0: f042 0210 orr.w r2, r2, #16 - 8005ce4: 611a str r2, [r3, #16] - - if (hfdcan->Init.Mode == FDCAN_MODE_INTERNAL_LOOPBACK) - 8005ce6: 687b ldr r3, [r7, #4] - 8005ce8: 68db ldr r3, [r3, #12] - 8005cea: 2b03 cmp r3, #3 - 8005cec: d114 bne.n 8005d18 - { - SET_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_MON); - 8005cee: 687b ldr r3, [r7, #4] - 8005cf0: 681b ldr r3, [r3, #0] - 8005cf2: 699a ldr r2, [r3, #24] - 8005cf4: 687b ldr r3, [r7, #4] - 8005cf6: 681b ldr r3, [r3, #0] - 8005cf8: f042 0220 orr.w r2, r2, #32 - 8005cfc: 619a str r2, [r3, #24] - 8005cfe: e00b b.n 8005d18 - 8005d00: 08022e38 .word 0x08022e38 - 8005d04: 4000a000 .word 0x4000a000 - } - } - else - { - /* Enable bus monitoring mode */ - SET_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_MON); - 8005d08: 687b ldr r3, [r7, #4] - 8005d0a: 681b ldr r3, [r3, #0] - 8005d0c: 699a ldr r2, [r3, #24] - 8005d0e: 687b ldr r3, [r7, #4] - 8005d10: 681b ldr r3, [r3, #0] - 8005d12: f042 0220 orr.w r2, r2, #32 - 8005d16: 619a str r2, [r3, #24] - { - /* Nothing to do: normal mode */ - } - - /* Set the nominal bit timing register */ - hfdcan->Instance->NBTP = ((((uint32_t)hfdcan->Init.NominalSyncJumpWidth - 1U) << FDCAN_NBTP_NSJW_Pos) | \ - 8005d18: 687b ldr r3, [r7, #4] - 8005d1a: 699b ldr r3, [r3, #24] - 8005d1c: 3b01 subs r3, #1 - 8005d1e: 065a lsls r2, r3, #25 - (((uint32_t)hfdcan->Init.NominalTimeSeg1 - 1U) << FDCAN_NBTP_NTSEG1_Pos) | \ - 8005d20: 687b ldr r3, [r7, #4] - 8005d22: 69db ldr r3, [r3, #28] - 8005d24: 3b01 subs r3, #1 - 8005d26: 021b lsls r3, r3, #8 - hfdcan->Instance->NBTP = ((((uint32_t)hfdcan->Init.NominalSyncJumpWidth - 1U) << FDCAN_NBTP_NSJW_Pos) | \ - 8005d28: 431a orrs r2, r3 - (((uint32_t)hfdcan->Init.NominalTimeSeg2 - 1U) << FDCAN_NBTP_NTSEG2_Pos) | \ - 8005d2a: 687b ldr r3, [r7, #4] - 8005d2c: 6a1b ldr r3, [r3, #32] - 8005d2e: 3b01 subs r3, #1 - (((uint32_t)hfdcan->Init.NominalTimeSeg1 - 1U) << FDCAN_NBTP_NTSEG1_Pos) | \ - 8005d30: ea42 0103 orr.w r1, r2, r3 - (((uint32_t)hfdcan->Init.NominalPrescaler - 1U) << FDCAN_NBTP_NBRP_Pos)); - 8005d34: 687b ldr r3, [r7, #4] - 8005d36: 695b ldr r3, [r3, #20] - 8005d38: 3b01 subs r3, #1 - 8005d3a: 041a lsls r2, r3, #16 - hfdcan->Instance->NBTP = ((((uint32_t)hfdcan->Init.NominalSyncJumpWidth - 1U) << FDCAN_NBTP_NSJW_Pos) | \ - 8005d3c: 687b ldr r3, [r7, #4] - 8005d3e: 681b ldr r3, [r3, #0] - (((uint32_t)hfdcan->Init.NominalTimeSeg2 - 1U) << FDCAN_NBTP_NTSEG2_Pos) | \ - 8005d40: 430a orrs r2, r1 - hfdcan->Instance->NBTP = ((((uint32_t)hfdcan->Init.NominalSyncJumpWidth - 1U) << FDCAN_NBTP_NSJW_Pos) | \ - 8005d42: 61da str r2, [r3, #28] - - /* If FD operation with BRS is selected, set the data bit timing register */ - if (hfdcan->Init.FrameFormat == FDCAN_FRAME_FD_BRS) - 8005d44: 687b ldr r3, [r7, #4] - 8005d46: 689b ldr r3, [r3, #8] - 8005d48: f5b3 7f40 cmp.w r3, #768 ; 0x300 - 8005d4c: d115 bne.n 8005d7a - { - hfdcan->Instance->DBTP = ((((uint32_t)hfdcan->Init.DataSyncJumpWidth - 1U) << FDCAN_DBTP_DSJW_Pos) | \ - 8005d4e: 687b ldr r3, [r7, #4] - 8005d50: 6a9b ldr r3, [r3, #40] ; 0x28 - 8005d52: 1e5a subs r2, r3, #1 - (((uint32_t)hfdcan->Init.DataTimeSeg1 - 1U) << FDCAN_DBTP_DTSEG1_Pos) | \ - 8005d54: 687b ldr r3, [r7, #4] - 8005d56: 6adb ldr r3, [r3, #44] ; 0x2c - 8005d58: 3b01 subs r3, #1 - 8005d5a: 021b lsls r3, r3, #8 - hfdcan->Instance->DBTP = ((((uint32_t)hfdcan->Init.DataSyncJumpWidth - 1U) << FDCAN_DBTP_DSJW_Pos) | \ - 8005d5c: 431a orrs r2, r3 - (((uint32_t)hfdcan->Init.DataTimeSeg2 - 1U) << FDCAN_DBTP_DTSEG2_Pos) | \ - 8005d5e: 687b ldr r3, [r7, #4] - 8005d60: 6b1b ldr r3, [r3, #48] ; 0x30 - 8005d62: 3b01 subs r3, #1 - 8005d64: 011b lsls r3, r3, #4 - (((uint32_t)hfdcan->Init.DataTimeSeg1 - 1U) << FDCAN_DBTP_DTSEG1_Pos) | \ - 8005d66: ea42 0103 orr.w r1, r2, r3 - (((uint32_t)hfdcan->Init.DataPrescaler - 1U) << FDCAN_DBTP_DBRP_Pos)); - 8005d6a: 687b ldr r3, [r7, #4] - 8005d6c: 6a5b ldr r3, [r3, #36] ; 0x24 - 8005d6e: 3b01 subs r3, #1 - 8005d70: 041a lsls r2, r3, #16 - hfdcan->Instance->DBTP = ((((uint32_t)hfdcan->Init.DataSyncJumpWidth - 1U) << FDCAN_DBTP_DSJW_Pos) | \ - 8005d72: 687b ldr r3, [r7, #4] - 8005d74: 681b ldr r3, [r3, #0] - (((uint32_t)hfdcan->Init.DataTimeSeg2 - 1U) << FDCAN_DBTP_DTSEG2_Pos) | \ - 8005d76: 430a orrs r2, r1 - hfdcan->Instance->DBTP = ((((uint32_t)hfdcan->Init.DataSyncJumpWidth - 1U) << FDCAN_DBTP_DSJW_Pos) | \ - 8005d78: 60da str r2, [r3, #12] - } - - if (hfdcan->Init.TxFifoQueueElmtsNbr > 0U) - 8005d7a: 687b ldr r3, [r7, #4] - 8005d7c: 6e1b ldr r3, [r3, #96] ; 0x60 - 8005d7e: 2b00 cmp r3, #0 - 8005d80: d00a beq.n 8005d98 - { - /* Select between Tx FIFO and Tx Queue operation modes */ - SET_BIT(hfdcan->Instance->TXBC, hfdcan->Init.TxFifoQueueMode); - 8005d82: 687b ldr r3, [r7, #4] - 8005d84: 681b ldr r3, [r3, #0] - 8005d86: f8d3 10c0 ldr.w r1, [r3, #192] ; 0xc0 - 8005d8a: 687b ldr r3, [r7, #4] - 8005d8c: 6e5a ldr r2, [r3, #100] ; 0x64 - 8005d8e: 687b ldr r3, [r7, #4] - 8005d90: 681b ldr r3, [r3, #0] - 8005d92: 430a orrs r2, r1 - 8005d94: f8c3 20c0 str.w r2, [r3, #192] ; 0xc0 - } - - /* Configure Tx element size */ - if ((hfdcan->Init.TxBuffersNbr + hfdcan->Init.TxFifoQueueElmtsNbr) > 0U) - 8005d98: 687b ldr r3, [r7, #4] - 8005d9a: 6dda ldr r2, [r3, #92] ; 0x5c - 8005d9c: 687b ldr r3, [r7, #4] - 8005d9e: 6e1b ldr r3, [r3, #96] ; 0x60 - 8005da0: 4413 add r3, r2 - 8005da2: 2b00 cmp r3, #0 - 8005da4: d011 beq.n 8005dca - { - MODIFY_REG(hfdcan->Instance->TXESC, FDCAN_TXESC_TBDS, CvtEltSize[hfdcan->Init.TxElmtSize]); - 8005da6: 687b ldr r3, [r7, #4] - 8005da8: 681b ldr r3, [r3, #0] - 8005daa: f8d3 30c8 ldr.w r3, [r3, #200] ; 0xc8 - 8005dae: f023 0107 bic.w r1, r3, #7 - 8005db2: 687b ldr r3, [r7, #4] - 8005db4: 6e9b ldr r3, [r3, #104] ; 0x68 - 8005db6: 009b lsls r3, r3, #2 - 8005db8: 3360 adds r3, #96 ; 0x60 - 8005dba: 443b add r3, r7 - 8005dbc: f853 2c54 ldr.w r2, [r3, #-84] - 8005dc0: 687b ldr r3, [r7, #4] - 8005dc2: 681b ldr r3, [r3, #0] - 8005dc4: 430a orrs r2, r1 - 8005dc6: f8c3 20c8 str.w r2, [r3, #200] ; 0xc8 - } - - /* Configure Rx FIFO 0 element size */ - if (hfdcan->Init.RxFifo0ElmtsNbr > 0U) - 8005dca: 687b ldr r3, [r7, #4] - 8005dcc: 6c1b ldr r3, [r3, #64] ; 0x40 - 8005dce: 2b00 cmp r3, #0 - 8005dd0: d011 beq.n 8005df6 - { - MODIFY_REG(hfdcan->Instance->RXESC, FDCAN_RXESC_F0DS, (CvtEltSize[hfdcan->Init.RxFifo0ElmtSize] << FDCAN_RXESC_F0DS_Pos)); - 8005dd2: 687b ldr r3, [r7, #4] - 8005dd4: 681b ldr r3, [r3, #0] - 8005dd6: f8d3 30bc ldr.w r3, [r3, #188] ; 0xbc - 8005dda: f023 0107 bic.w r1, r3, #7 - 8005dde: 687b ldr r3, [r7, #4] - 8005de0: 6c5b ldr r3, [r3, #68] ; 0x44 - 8005de2: 009b lsls r3, r3, #2 - 8005de4: 3360 adds r3, #96 ; 0x60 - 8005de6: 443b add r3, r7 - 8005de8: f853 2c54 ldr.w r2, [r3, #-84] - 8005dec: 687b ldr r3, [r7, #4] - 8005dee: 681b ldr r3, [r3, #0] - 8005df0: 430a orrs r2, r1 - 8005df2: f8c3 20bc str.w r2, [r3, #188] ; 0xbc - } - - /* Configure Rx FIFO 1 element size */ - if (hfdcan->Init.RxFifo1ElmtsNbr > 0U) - 8005df6: 687b ldr r3, [r7, #4] - 8005df8: 6c9b ldr r3, [r3, #72] ; 0x48 - 8005dfa: 2b00 cmp r3, #0 - 8005dfc: d012 beq.n 8005e24 - { - MODIFY_REG(hfdcan->Instance->RXESC, FDCAN_RXESC_F1DS, (CvtEltSize[hfdcan->Init.RxFifo1ElmtSize] << FDCAN_RXESC_F1DS_Pos)); - 8005dfe: 687b ldr r3, [r7, #4] - 8005e00: 681b ldr r3, [r3, #0] - 8005e02: f8d3 30bc ldr.w r3, [r3, #188] ; 0xbc - 8005e06: f023 0170 bic.w r1, r3, #112 ; 0x70 - 8005e0a: 687b ldr r3, [r7, #4] - 8005e0c: 6cdb ldr r3, [r3, #76] ; 0x4c - 8005e0e: 009b lsls r3, r3, #2 - 8005e10: 3360 adds r3, #96 ; 0x60 - 8005e12: 443b add r3, r7 - 8005e14: f853 3c54 ldr.w r3, [r3, #-84] - 8005e18: 011a lsls r2, r3, #4 - 8005e1a: 687b ldr r3, [r7, #4] - 8005e1c: 681b ldr r3, [r3, #0] - 8005e1e: 430a orrs r2, r1 - 8005e20: f8c3 20bc str.w r2, [r3, #188] ; 0xbc - } - - /* Configure Rx buffer element size */ - if (hfdcan->Init.RxBuffersNbr > 0U) - 8005e24: 687b ldr r3, [r7, #4] - 8005e26: 6d1b ldr r3, [r3, #80] ; 0x50 - 8005e28: 2b00 cmp r3, #0 - 8005e2a: d012 beq.n 8005e52 - { - MODIFY_REG(hfdcan->Instance->RXESC, FDCAN_RXESC_RBDS, (CvtEltSize[hfdcan->Init.RxBufferSize] << FDCAN_RXESC_RBDS_Pos)); - 8005e2c: 687b ldr r3, [r7, #4] - 8005e2e: 681b ldr r3, [r3, #0] - 8005e30: f8d3 30bc ldr.w r3, [r3, #188] ; 0xbc - 8005e34: f423 61e0 bic.w r1, r3, #1792 ; 0x700 - 8005e38: 687b ldr r3, [r7, #4] - 8005e3a: 6d5b ldr r3, [r3, #84] ; 0x54 - 8005e3c: 009b lsls r3, r3, #2 - 8005e3e: 3360 adds r3, #96 ; 0x60 - 8005e40: 443b add r3, r7 - 8005e42: f853 3c54 ldr.w r3, [r3, #-84] - 8005e46: 021a lsls r2, r3, #8 - 8005e48: 687b ldr r3, [r7, #4] - 8005e4a: 681b ldr r3, [r3, #0] - 8005e4c: 430a orrs r2, r1 - 8005e4e: f8c3 20bc str.w r2, [r3, #188] ; 0xbc - } - - /* By default operation mode is set to Event-driven communication. - If Time-triggered communication is needed, user should call the - HAL_FDCAN_TT_ConfigOperation function just after the HAL_FDCAN_Init */ - if (hfdcan->Instance == FDCAN1) - 8005e52: 687b ldr r3, [r7, #4] - 8005e54: 681b ldr r3, [r3, #0] - 8005e56: 4a11 ldr r2, [pc, #68] ; (8005e9c ) - 8005e58: 4293 cmp r3, r2 - 8005e5a: d107 bne.n 8005e6c - { - CLEAR_BIT(hfdcan->ttcan->TTOCF, FDCAN_TTOCF_OM); - 8005e5c: 687b ldr r3, [r7, #4] - 8005e5e: 685b ldr r3, [r3, #4] - 8005e60: 689a ldr r2, [r3, #8] - 8005e62: 687b ldr r3, [r7, #4] - 8005e64: 685b ldr r3, [r3, #4] - 8005e66: f022 0203 bic.w r2, r2, #3 - 8005e6a: 609a str r2, [r3, #8] - } - - /* Initialize the Latest Tx FIFO/Queue request buffer index */ - hfdcan->LatestTxFifoQRequest = 0U; - 8005e6c: 687b ldr r3, [r7, #4] - 8005e6e: 2200 movs r2, #0 - 8005e70: f8c3 2094 str.w r2, [r3, #148] ; 0x94 - - /* Initialize the error code */ - hfdcan->ErrorCode = HAL_FDCAN_ERROR_NONE; - 8005e74: 687b ldr r3, [r7, #4] - 8005e76: 2200 movs r2, #0 - 8005e78: f8c3 209c str.w r2, [r3, #156] ; 0x9c - - /* Initialize the FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_READY; - 8005e7c: 687b ldr r3, [r7, #4] - 8005e7e: 2201 movs r2, #1 - 8005e80: f883 2098 strb.w r2, [r3, #152] ; 0x98 - - /* Calculate each RAM block address */ - status = FDCAN_CalcultateRamBlockAddresses(hfdcan); - 8005e84: 6878 ldr r0, [r7, #4] - 8005e86: f000 fb0d bl 80064a4 - 8005e8a: 4603 mov r3, r0 - 8005e8c: f887 305b strb.w r3, [r7, #91] ; 0x5b - - /* Return function status */ - return status; - 8005e90: f897 305b ldrb.w r3, [r7, #91] ; 0x5b -} - 8005e94: 4618 mov r0, r3 - 8005e96: 3760 adds r7, #96 ; 0x60 - 8005e98: 46bd mov sp, r7 - 8005e9a: bd80 pop {r7, pc} - 8005e9c: 4000a000 .word 0x4000a000 - -08005ea0 : - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -void HAL_FDCAN_IRQHandler(FDCAN_HandleTypeDef *hfdcan) -{ - 8005ea0: b580 push {r7, lr} - 8005ea2: b096 sub sp, #88 ; 0x58 - 8005ea4: af00 add r7, sp, #0 - 8005ea6: 6078 str r0, [r7, #4] - uint32_t itsourceIE; - uint32_t itsourceTTIE; - uint32_t itflagIR; - uint32_t itflagTTIR; - - ClkCalibrationITs = (FDCAN_CCU->IR << 30); - 8005ea8: 4b95 ldr r3, [pc, #596] ; (8006100 ) - 8005eaa: 691b ldr r3, [r3, #16] - 8005eac: 079b lsls r3, r3, #30 - 8005eae: 657b str r3, [r7, #84] ; 0x54 - ClkCalibrationITs &= (FDCAN_CCU->IE << 30); - 8005eb0: 4b93 ldr r3, [pc, #588] ; (8006100 ) - 8005eb2: 695b ldr r3, [r3, #20] - 8005eb4: 079b lsls r3, r3, #30 - 8005eb6: 6d7a ldr r2, [r7, #84] ; 0x54 - 8005eb8: 4013 ands r3, r2 - 8005eba: 657b str r3, [r7, #84] ; 0x54 - TxEventFifoITs = hfdcan->Instance->IR & FDCAN_TX_EVENT_FIFO_MASK; - 8005ebc: 687b ldr r3, [r7, #4] - 8005ebe: 681b ldr r3, [r3, #0] - 8005ec0: 6d1b ldr r3, [r3, #80] ; 0x50 - 8005ec2: f403 4370 and.w r3, r3, #61440 ; 0xf000 - 8005ec6: 653b str r3, [r7, #80] ; 0x50 - TxEventFifoITs &= hfdcan->Instance->IE; - 8005ec8: 687b ldr r3, [r7, #4] - 8005eca: 681b ldr r3, [r3, #0] - 8005ecc: 6d5b ldr r3, [r3, #84] ; 0x54 - 8005ece: 6d3a ldr r2, [r7, #80] ; 0x50 - 8005ed0: 4013 ands r3, r2 - 8005ed2: 653b str r3, [r7, #80] ; 0x50 - RxFifo0ITs = hfdcan->Instance->IR & FDCAN_RX_FIFO0_MASK; - 8005ed4: 687b ldr r3, [r7, #4] - 8005ed6: 681b ldr r3, [r3, #0] - 8005ed8: 6d1b ldr r3, [r3, #80] ; 0x50 - 8005eda: f003 030f and.w r3, r3, #15 - 8005ede: 64fb str r3, [r7, #76] ; 0x4c - RxFifo0ITs &= hfdcan->Instance->IE; - 8005ee0: 687b ldr r3, [r7, #4] - 8005ee2: 681b ldr r3, [r3, #0] - 8005ee4: 6d5b ldr r3, [r3, #84] ; 0x54 - 8005ee6: 6cfa ldr r2, [r7, #76] ; 0x4c - 8005ee8: 4013 ands r3, r2 - 8005eea: 64fb str r3, [r7, #76] ; 0x4c - RxFifo1ITs = hfdcan->Instance->IR & FDCAN_RX_FIFO1_MASK; - 8005eec: 687b ldr r3, [r7, #4] - 8005eee: 681b ldr r3, [r3, #0] - 8005ef0: 6d1b ldr r3, [r3, #80] ; 0x50 - 8005ef2: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 8005ef6: 64bb str r3, [r7, #72] ; 0x48 - RxFifo1ITs &= hfdcan->Instance->IE; - 8005ef8: 687b ldr r3, [r7, #4] - 8005efa: 681b ldr r3, [r3, #0] - 8005efc: 6d5b ldr r3, [r3, #84] ; 0x54 - 8005efe: 6cba ldr r2, [r7, #72] ; 0x48 - 8005f00: 4013 ands r3, r2 - 8005f02: 64bb str r3, [r7, #72] ; 0x48 - Errors = hfdcan->Instance->IR & FDCAN_ERROR_MASK; - 8005f04: 687b ldr r3, [r7, #4] - 8005f06: 681b ldr r3, [r3, #0] - 8005f08: 6d1b ldr r3, [r3, #80] ; 0x50 - 8005f0a: f003 5371 and.w r3, r3, #1010827264 ; 0x3c400000 - 8005f0e: 647b str r3, [r7, #68] ; 0x44 - Errors &= hfdcan->Instance->IE; - 8005f10: 687b ldr r3, [r7, #4] - 8005f12: 681b ldr r3, [r3, #0] - 8005f14: 6d5b ldr r3, [r3, #84] ; 0x54 - 8005f16: 6c7a ldr r2, [r7, #68] ; 0x44 - 8005f18: 4013 ands r3, r2 - 8005f1a: 647b str r3, [r7, #68] ; 0x44 - ErrorStatusITs = hfdcan->Instance->IR & FDCAN_ERROR_STATUS_MASK; - 8005f1c: 687b ldr r3, [r7, #4] - 8005f1e: 681b ldr r3, [r3, #0] - 8005f20: 6d1b ldr r3, [r3, #80] ; 0x50 - 8005f22: f003 7360 and.w r3, r3, #58720256 ; 0x3800000 - 8005f26: 643b str r3, [r7, #64] ; 0x40 - ErrorStatusITs &= hfdcan->Instance->IE; - 8005f28: 687b ldr r3, [r7, #4] - 8005f2a: 681b ldr r3, [r3, #0] - 8005f2c: 6d5b ldr r3, [r3, #84] ; 0x54 - 8005f2e: 6c3a ldr r2, [r7, #64] ; 0x40 - 8005f30: 4013 ands r3, r2 - 8005f32: 643b str r3, [r7, #64] ; 0x40 - itsourceIE = hfdcan->Instance->IE; - 8005f34: 687b ldr r3, [r7, #4] - 8005f36: 681b ldr r3, [r3, #0] - 8005f38: 6d5b ldr r3, [r3, #84] ; 0x54 - 8005f3a: 63fb str r3, [r7, #60] ; 0x3c - itflagIR = hfdcan->Instance->IR; - 8005f3c: 687b ldr r3, [r7, #4] - 8005f3e: 681b ldr r3, [r3, #0] - 8005f40: 6d1b ldr r3, [r3, #80] ; 0x50 - 8005f42: 63bb str r3, [r7, #56] ; 0x38 - - /* High Priority Message interrupt management *******************************/ - if (FDCAN_CHECK_IT_SOURCE(itsourceIE, FDCAN_IT_RX_HIGH_PRIORITY_MSG) != RESET) - 8005f44: 6bfb ldr r3, [r7, #60] ; 0x3c - 8005f46: f403 7380 and.w r3, r3, #256 ; 0x100 - 8005f4a: 2b00 cmp r3, #0 - 8005f4c: d00f beq.n 8005f6e - { - if (FDCAN_CHECK_FLAG(itflagIR, FDCAN_FLAG_RX_HIGH_PRIORITY_MSG) != RESET) - 8005f4e: 6bbb ldr r3, [r7, #56] ; 0x38 - 8005f50: f403 7380 and.w r3, r3, #256 ; 0x100 - 8005f54: 2b00 cmp r3, #0 - 8005f56: d00a beq.n 8005f6e - { - /* Clear the High Priority Message flag */ - __HAL_FDCAN_CLEAR_FLAG(hfdcan, FDCAN_FLAG_RX_HIGH_PRIORITY_MSG); - 8005f58: 687b ldr r3, [r7, #4] - 8005f5a: 681b ldr r3, [r3, #0] - 8005f5c: f44f 7280 mov.w r2, #256 ; 0x100 - 8005f60: 651a str r2, [r3, #80] ; 0x50 - 8005f62: 4b67 ldr r3, [pc, #412] ; (8006100 ) - 8005f64: 2200 movs r2, #0 - 8005f66: 611a str r2, [r3, #16] -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->HighPriorityMessageCallback(hfdcan); -#else - /* High Priority Message Callback */ - HAL_FDCAN_HighPriorityMessageCallback(hfdcan); - 8005f68: 6878 ldr r0, [r7, #4] - 8005f6a: f000 fa4f bl 800640c -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - } - - /* Transmission Abort interrupt management **********************************/ - if (FDCAN_CHECK_IT_SOURCE(itsourceIE, FDCAN_IT_TX_ABORT_COMPLETE) != RESET) - 8005f6e: 6bfb ldr r3, [r7, #60] ; 0x3c - 8005f70: f403 6380 and.w r3, r3, #1024 ; 0x400 - 8005f74: 2b00 cmp r3, #0 - 8005f76: d01c beq.n 8005fb2 - { - if (FDCAN_CHECK_FLAG(itflagIR, FDCAN_FLAG_TX_ABORT_COMPLETE) != RESET) - 8005f78: 6bbb ldr r3, [r7, #56] ; 0x38 - 8005f7a: f403 6380 and.w r3, r3, #1024 ; 0x400 - 8005f7e: 2b00 cmp r3, #0 - 8005f80: d017 beq.n 8005fb2 - { - /* List of aborted monitored buffers */ - AbortedBuffers = hfdcan->Instance->TXBCF; - 8005f82: 687b ldr r3, [r7, #4] - 8005f84: 681b ldr r3, [r3, #0] - 8005f86: f8d3 30dc ldr.w r3, [r3, #220] ; 0xdc - 8005f8a: 637b str r3, [r7, #52] ; 0x34 - AbortedBuffers &= hfdcan->Instance->TXBCIE; - 8005f8c: 687b ldr r3, [r7, #4] - 8005f8e: 681b ldr r3, [r3, #0] - 8005f90: f8d3 30e4 ldr.w r3, [r3, #228] ; 0xe4 - 8005f94: 6b7a ldr r2, [r7, #52] ; 0x34 - 8005f96: 4013 ands r3, r2 - 8005f98: 637b str r3, [r7, #52] ; 0x34 - - /* Clear the Transmission Cancellation flag */ - __HAL_FDCAN_CLEAR_FLAG(hfdcan, FDCAN_FLAG_TX_ABORT_COMPLETE); - 8005f9a: 687b ldr r3, [r7, #4] - 8005f9c: 681b ldr r3, [r3, #0] - 8005f9e: f44f 6280 mov.w r2, #1024 ; 0x400 - 8005fa2: 651a str r2, [r3, #80] ; 0x50 - 8005fa4: 4b56 ldr r3, [pc, #344] ; (8006100 ) - 8005fa6: 2200 movs r2, #0 - 8005fa8: 611a str r2, [r3, #16] -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->TxBufferAbortCallback(hfdcan, AbortedBuffers); -#else - /* Transmission Cancellation Callback */ - HAL_FDCAN_TxBufferAbortCallback(hfdcan, AbortedBuffers); - 8005faa: 6b79 ldr r1, [r7, #52] ; 0x34 - 8005fac: 6878 ldr r0, [r7, #4] - 8005fae: f000 fa04 bl 80063ba -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - } - - /* Clock calibration unit interrupts management *****************************/ - if (ClkCalibrationITs != 0U) - 8005fb2: 6d7b ldr r3, [r7, #84] ; 0x54 - 8005fb4: 2b00 cmp r3, #0 - 8005fb6: d00d beq.n 8005fd4 - { - /* Clear the Clock Calibration flags */ - __HAL_FDCAN_CLEAR_FLAG(hfdcan, ClkCalibrationITs); - 8005fb8: 687b ldr r3, [r7, #4] - 8005fba: 681a ldr r2, [r3, #0] - 8005fbc: 6d79 ldr r1, [r7, #84] ; 0x54 - 8005fbe: 4b51 ldr r3, [pc, #324] ; (8006104 ) - 8005fc0: 400b ands r3, r1 - 8005fc2: 6513 str r3, [r2, #80] ; 0x50 - 8005fc4: 4a4e ldr r2, [pc, #312] ; (8006100 ) - 8005fc6: 6d7b ldr r3, [r7, #84] ; 0x54 - 8005fc8: 0f9b lsrs r3, r3, #30 - 8005fca: 6113 str r3, [r2, #16] -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->ClockCalibrationCallback(hfdcan, ClkCalibrationITs); -#else - /* Clock Calibration Callback */ - HAL_FDCAN_ClockCalibrationCallback(hfdcan, ClkCalibrationITs); - 8005fcc: 6d79 ldr r1, [r7, #84] ; 0x54 - 8005fce: 6878 ldr r0, [r7, #4] - 8005fd0: f000 f9b2 bl 8006338 -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - - /* Tx event FIFO interrupts management **************************************/ - if (TxEventFifoITs != 0U) - 8005fd4: 6d3b ldr r3, [r7, #80] ; 0x50 - 8005fd6: 2b00 cmp r3, #0 - 8005fd8: d00d beq.n 8005ff6 - { - /* Clear the Tx Event FIFO flags */ - __HAL_FDCAN_CLEAR_FLAG(hfdcan, TxEventFifoITs); - 8005fda: 687b ldr r3, [r7, #4] - 8005fdc: 681a ldr r2, [r3, #0] - 8005fde: 6d39 ldr r1, [r7, #80] ; 0x50 - 8005fe0: 4b48 ldr r3, [pc, #288] ; (8006104 ) - 8005fe2: 400b ands r3, r1 - 8005fe4: 6513 str r3, [r2, #80] ; 0x50 - 8005fe6: 4a46 ldr r2, [pc, #280] ; (8006100 ) - 8005fe8: 6d3b ldr r3, [r7, #80] ; 0x50 - 8005fea: 0f9b lsrs r3, r3, #30 - 8005fec: 6113 str r3, [r2, #16] -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->TxEventFifoCallback(hfdcan, TxEventFifoITs); -#else - /* Tx Event FIFO Callback */ - HAL_FDCAN_TxEventFifoCallback(hfdcan, TxEventFifoITs); - 8005fee: 6d39 ldr r1, [r7, #80] ; 0x50 - 8005ff0: 6878 ldr r0, [r7, #4] - 8005ff2: f000 f9ac bl 800634e -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - - /* Rx FIFO 0 interrupts management ******************************************/ - if (RxFifo0ITs != 0U) - 8005ff6: 6cfb ldr r3, [r7, #76] ; 0x4c - 8005ff8: 2b00 cmp r3, #0 - 8005ffa: d00d beq.n 8006018 - { - /* Clear the Rx FIFO 0 flags */ - __HAL_FDCAN_CLEAR_FLAG(hfdcan, RxFifo0ITs); - 8005ffc: 687b ldr r3, [r7, #4] - 8005ffe: 681a ldr r2, [r3, #0] - 8006000: 6cf9 ldr r1, [r7, #76] ; 0x4c - 8006002: 4b40 ldr r3, [pc, #256] ; (8006104 ) - 8006004: 400b ands r3, r1 - 8006006: 6513 str r3, [r2, #80] ; 0x50 - 8006008: 4a3d ldr r2, [pc, #244] ; (8006100 ) - 800600a: 6cfb ldr r3, [r7, #76] ; 0x4c - 800600c: 0f9b lsrs r3, r3, #30 - 800600e: 6113 str r3, [r2, #16] -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->RxFifo0Callback(hfdcan, RxFifo0ITs); -#else - /* Rx FIFO 0 Callback */ - HAL_FDCAN_RxFifo0Callback(hfdcan, RxFifo0ITs); - 8006010: 6cf9 ldr r1, [r7, #76] ; 0x4c - 8006012: 6878 ldr r0, [r7, #4] - 8006014: f000 f9a6 bl 8006364 -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - - /* Rx FIFO 1 interrupts management ******************************************/ - if (RxFifo1ITs != 0U) - 8006018: 6cbb ldr r3, [r7, #72] ; 0x48 - 800601a: 2b00 cmp r3, #0 - 800601c: d00d beq.n 800603a - { - /* Clear the Rx FIFO 1 flags */ - __HAL_FDCAN_CLEAR_FLAG(hfdcan, RxFifo1ITs); - 800601e: 687b ldr r3, [r7, #4] - 8006020: 681a ldr r2, [r3, #0] - 8006022: 6cb9 ldr r1, [r7, #72] ; 0x48 - 8006024: 4b37 ldr r3, [pc, #220] ; (8006104 ) - 8006026: 400b ands r3, r1 - 8006028: 6513 str r3, [r2, #80] ; 0x50 - 800602a: 4a35 ldr r2, [pc, #212] ; (8006100 ) - 800602c: 6cbb ldr r3, [r7, #72] ; 0x48 - 800602e: 0f9b lsrs r3, r3, #30 - 8006030: 6113 str r3, [r2, #16] -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->RxFifo1Callback(hfdcan, RxFifo1ITs); -#else - /* Rx FIFO 1 Callback */ - HAL_FDCAN_RxFifo1Callback(hfdcan, RxFifo1ITs); - 8006032: 6cb9 ldr r1, [r7, #72] ; 0x48 - 8006034: 6878 ldr r0, [r7, #4] - 8006036: f000 f9a0 bl 800637a -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - - /* Tx FIFO empty interrupt management ***************************************/ - if (FDCAN_CHECK_IT_SOURCE(itsourceIE, FDCAN_IT_TX_FIFO_EMPTY) != RESET) - 800603a: 6bfb ldr r3, [r7, #60] ; 0x3c - 800603c: f403 6300 and.w r3, r3, #2048 ; 0x800 - 8006040: 2b00 cmp r3, #0 - 8006042: d00f beq.n 8006064 - { - if (FDCAN_CHECK_FLAG(itflagIR, FDCAN_FLAG_TX_FIFO_EMPTY) != RESET) - 8006044: 6bbb ldr r3, [r7, #56] ; 0x38 - 8006046: f403 6300 and.w r3, r3, #2048 ; 0x800 - 800604a: 2b00 cmp r3, #0 - 800604c: d00a beq.n 8006064 - { - /* Clear the Tx FIFO empty flag */ - __HAL_FDCAN_CLEAR_FLAG(hfdcan, FDCAN_FLAG_TX_FIFO_EMPTY); - 800604e: 687b ldr r3, [r7, #4] - 8006050: 681b ldr r3, [r3, #0] - 8006052: f44f 6200 mov.w r2, #2048 ; 0x800 - 8006056: 651a str r2, [r3, #80] ; 0x50 - 8006058: 4b29 ldr r3, [pc, #164] ; (8006100 ) - 800605a: 2200 movs r2, #0 - 800605c: 611a str r2, [r3, #16] -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->TxFifoEmptyCallback(hfdcan); -#else - /* Tx FIFO empty Callback */ - HAL_FDCAN_TxFifoEmptyCallback(hfdcan); - 800605e: 6878 ldr r0, [r7, #4] - 8006060: f000 f996 bl 8006390 -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - } - - /* Transmission Complete interrupt management *******************************/ - if (FDCAN_CHECK_IT_SOURCE(itsourceIE, FDCAN_IT_TX_COMPLETE) != RESET) - 8006064: 6bfb ldr r3, [r7, #60] ; 0x3c - 8006066: f403 7300 and.w r3, r3, #512 ; 0x200 - 800606a: 2b00 cmp r3, #0 - 800606c: d01c beq.n 80060a8 - { - if (FDCAN_CHECK_FLAG(itflagIR, FDCAN_FLAG_TX_COMPLETE) != RESET) - 800606e: 6bbb ldr r3, [r7, #56] ; 0x38 - 8006070: f403 7300 and.w r3, r3, #512 ; 0x200 - 8006074: 2b00 cmp r3, #0 - 8006076: d017 beq.n 80060a8 - { - /* List of transmitted monitored buffers */ - TransmittedBuffers = hfdcan->Instance->TXBTO; - 8006078: 687b ldr r3, [r7, #4] - 800607a: 681b ldr r3, [r3, #0] - 800607c: f8d3 30d8 ldr.w r3, [r3, #216] ; 0xd8 - 8006080: 633b str r3, [r7, #48] ; 0x30 - TransmittedBuffers &= hfdcan->Instance->TXBTIE; - 8006082: 687b ldr r3, [r7, #4] - 8006084: 681b ldr r3, [r3, #0] - 8006086: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 800608a: 6b3a ldr r2, [r7, #48] ; 0x30 - 800608c: 4013 ands r3, r2 - 800608e: 633b str r3, [r7, #48] ; 0x30 - - /* Clear the Transmission Complete flag */ - __HAL_FDCAN_CLEAR_FLAG(hfdcan, FDCAN_FLAG_TX_COMPLETE); - 8006090: 687b ldr r3, [r7, #4] - 8006092: 681b ldr r3, [r3, #0] - 8006094: f44f 7200 mov.w r2, #512 ; 0x200 - 8006098: 651a str r2, [r3, #80] ; 0x50 - 800609a: 4b19 ldr r3, [pc, #100] ; (8006100 ) - 800609c: 2200 movs r2, #0 - 800609e: 611a str r2, [r3, #16] -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->TxBufferCompleteCallback(hfdcan, TransmittedBuffers); -#else - /* Transmission Complete Callback */ - HAL_FDCAN_TxBufferCompleteCallback(hfdcan, TransmittedBuffers); - 80060a0: 6b39 ldr r1, [r7, #48] ; 0x30 - 80060a2: 6878 ldr r0, [r7, #4] - 80060a4: f000 f97e bl 80063a4 -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - } - - /* Rx Buffer New Message interrupt management *******************************/ - if (FDCAN_CHECK_IT_SOURCE(itsourceIE, FDCAN_IT_RX_BUFFER_NEW_MESSAGE) != RESET) - 80060a8: 6bfb ldr r3, [r7, #60] ; 0x3c - 80060aa: f403 2300 and.w r3, r3, #524288 ; 0x80000 - 80060ae: 2b00 cmp r3, #0 - 80060b0: d00f beq.n 80060d2 - { - if (FDCAN_CHECK_FLAG(itflagIR, FDCAN_FLAG_RX_BUFFER_NEW_MESSAGE) != RESET) - 80060b2: 6bbb ldr r3, [r7, #56] ; 0x38 - 80060b4: f403 2300 and.w r3, r3, #524288 ; 0x80000 - 80060b8: 2b00 cmp r3, #0 - 80060ba: d00a beq.n 80060d2 - { - /* Clear the Rx Buffer New Message flag */ - __HAL_FDCAN_CLEAR_FLAG(hfdcan, FDCAN_FLAG_RX_BUFFER_NEW_MESSAGE); - 80060bc: 687b ldr r3, [r7, #4] - 80060be: 681b ldr r3, [r3, #0] - 80060c0: f44f 2200 mov.w r2, #524288 ; 0x80000 - 80060c4: 651a str r2, [r3, #80] ; 0x50 - 80060c6: 4b0e ldr r3, [pc, #56] ; (8006100 ) - 80060c8: 2200 movs r2, #0 - 80060ca: 611a str r2, [r3, #16] -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->RxBufferNewMessageCallback(hfdcan); -#else - /* Rx Buffer New Message Callback */ - HAL_FDCAN_RxBufferNewMessageCallback(hfdcan); - 80060cc: 6878 ldr r0, [r7, #4] - 80060ce: f000 f97f bl 80063d0 -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - } - - /* Timestamp Wraparound interrupt management ********************************/ - if (FDCAN_CHECK_IT_SOURCE(itsourceIE, FDCAN_IT_TIMESTAMP_WRAPAROUND) != RESET) - 80060d2: 6bfb ldr r3, [r7, #60] ; 0x3c - 80060d4: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 80060d8: 2b00 cmp r3, #0 - 80060da: d015 beq.n 8006108 - { - if (FDCAN_CHECK_FLAG(itflagIR, FDCAN_FLAG_TIMESTAMP_WRAPAROUND) != RESET) - 80060dc: 6bbb ldr r3, [r7, #56] ; 0x38 - 80060de: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 80060e2: 2b00 cmp r3, #0 - 80060e4: d010 beq.n 8006108 - { - /* Clear the Timestamp Wraparound flag */ - __HAL_FDCAN_CLEAR_FLAG(hfdcan, FDCAN_FLAG_TIMESTAMP_WRAPAROUND); - 80060e6: 687b ldr r3, [r7, #4] - 80060e8: 681b ldr r3, [r3, #0] - 80060ea: f44f 3280 mov.w r2, #65536 ; 0x10000 - 80060ee: 651a str r2, [r3, #80] ; 0x50 - 80060f0: 4b03 ldr r3, [pc, #12] ; (8006100 ) - 80060f2: 2200 movs r2, #0 - 80060f4: 611a str r2, [r3, #16] -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->TimestampWraparoundCallback(hfdcan); -#else - /* Timestamp Wraparound Callback */ - HAL_FDCAN_TimestampWraparoundCallback(hfdcan); - 80060f6: 6878 ldr r0, [r7, #4] - 80060f8: f000 f974 bl 80063e4 - 80060fc: e004 b.n 8006108 - 80060fe: bf00 nop - 8006100: 4000a800 .word 0x4000a800 - 8006104: 3fcfffff .word 0x3fcfffff -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - } - - /* Timeout Occurred interrupt management ************************************/ - if (FDCAN_CHECK_IT_SOURCE(itsourceIE, FDCAN_IT_TIMEOUT_OCCURRED) != RESET) - 8006108: 6bfb ldr r3, [r7, #60] ; 0x3c - 800610a: f403 2380 and.w r3, r3, #262144 ; 0x40000 - 800610e: 2b00 cmp r3, #0 - 8006110: d00f beq.n 8006132 - { - if (FDCAN_CHECK_FLAG(itflagIR, FDCAN_FLAG_TIMEOUT_OCCURRED) != RESET) - 8006112: 6bbb ldr r3, [r7, #56] ; 0x38 - 8006114: f403 2380 and.w r3, r3, #262144 ; 0x40000 - 8006118: 2b00 cmp r3, #0 - 800611a: d00a beq.n 8006132 - { - /* Clear the Timeout Occurred flag */ - __HAL_FDCAN_CLEAR_FLAG(hfdcan, FDCAN_FLAG_TIMEOUT_OCCURRED); - 800611c: 687b ldr r3, [r7, #4] - 800611e: 681b ldr r3, [r3, #0] - 8006120: f44f 2280 mov.w r2, #262144 ; 0x40000 - 8006124: 651a str r2, [r3, #80] ; 0x50 - 8006126: 4b81 ldr r3, [pc, #516] ; (800632c ) - 8006128: 2200 movs r2, #0 - 800612a: 611a str r2, [r3, #16] -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->TimeoutOccurredCallback(hfdcan); -#else - /* Timeout Occurred Callback */ - HAL_FDCAN_TimeoutOccurredCallback(hfdcan); - 800612c: 6878 ldr r0, [r7, #4] - 800612e: f000 f963 bl 80063f8 -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - } - - /* Message RAM access failure interrupt management **************************/ - if (FDCAN_CHECK_IT_SOURCE(itsourceIE, FDCAN_IT_RAM_ACCESS_FAILURE) != RESET) - 8006132: 6bfb ldr r3, [r7, #60] ; 0x3c - 8006134: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8006138: 2b00 cmp r3, #0 - 800613a: d014 beq.n 8006166 - { - if (FDCAN_CHECK_FLAG(itflagIR, FDCAN_FLAG_RAM_ACCESS_FAILURE) != RESET) - 800613c: 6bbb ldr r3, [r7, #56] ; 0x38 - 800613e: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8006142: 2b00 cmp r3, #0 - 8006144: d00f beq.n 8006166 - { - /* Clear the Message RAM access failure flag */ - __HAL_FDCAN_CLEAR_FLAG(hfdcan, FDCAN_FLAG_RAM_ACCESS_FAILURE); - 8006146: 687b ldr r3, [r7, #4] - 8006148: 681b ldr r3, [r3, #0] - 800614a: f44f 3200 mov.w r2, #131072 ; 0x20000 - 800614e: 651a str r2, [r3, #80] ; 0x50 - 8006150: 4b76 ldr r3, [pc, #472] ; (800632c ) - 8006152: 2200 movs r2, #0 - 8006154: 611a str r2, [r3, #16] - - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_RAM_ACCESS; - 8006156: 687b ldr r3, [r7, #4] - 8006158: f8d3 309c ldr.w r3, [r3, #156] ; 0x9c - 800615c: f043 0280 orr.w r2, r3, #128 ; 0x80 - 8006160: 687b ldr r3, [r7, #4] - 8006162: f8c3 209c str.w r2, [r3, #156] ; 0x9c - } - } - - /* Error Status interrupts management ***************************************/ - if (ErrorStatusITs != 0U) - 8006166: 6c3b ldr r3, [r7, #64] ; 0x40 - 8006168: 2b00 cmp r3, #0 - 800616a: d00d beq.n 8006188 - { - /* Clear the Error flags */ - __HAL_FDCAN_CLEAR_FLAG(hfdcan, ErrorStatusITs); - 800616c: 687b ldr r3, [r7, #4] - 800616e: 681a ldr r2, [r3, #0] - 8006170: 6c39 ldr r1, [r7, #64] ; 0x40 - 8006172: 4b6f ldr r3, [pc, #444] ; (8006330 ) - 8006174: 400b ands r3, r1 - 8006176: 6513 str r3, [r2, #80] ; 0x50 - 8006178: 4a6c ldr r2, [pc, #432] ; (800632c ) - 800617a: 6c3b ldr r3, [r7, #64] ; 0x40 - 800617c: 0f9b lsrs r3, r3, #30 - 800617e: 6113 str r3, [r2, #16] -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->ErrorStatusCallback(hfdcan, ErrorStatusITs); -#else - /* Error Status Callback */ - HAL_FDCAN_ErrorStatusCallback(hfdcan, ErrorStatusITs); - 8006180: 6c39 ldr r1, [r7, #64] ; 0x40 - 8006182: 6878 ldr r0, [r7, #4] - 8006184: f000 f956 bl 8006434 -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - - /* Error interrupts management **********************************************/ - if (Errors != 0U) - 8006188: 6c7b ldr r3, [r7, #68] ; 0x44 - 800618a: 2b00 cmp r3, #0 - 800618c: d011 beq.n 80061b2 - { - /* Clear the Error flags */ - __HAL_FDCAN_CLEAR_FLAG(hfdcan, Errors); - 800618e: 687b ldr r3, [r7, #4] - 8006190: 681a ldr r2, [r3, #0] - 8006192: 6c79 ldr r1, [r7, #68] ; 0x44 - 8006194: 4b66 ldr r3, [pc, #408] ; (8006330 ) - 8006196: 400b ands r3, r1 - 8006198: 6513 str r3, [r2, #80] ; 0x50 - 800619a: 4a64 ldr r2, [pc, #400] ; (800632c ) - 800619c: 6c7b ldr r3, [r7, #68] ; 0x44 - 800619e: 0f9b lsrs r3, r3, #30 - 80061a0: 6113 str r3, [r2, #16] - - /* Update error code */ - hfdcan->ErrorCode |= Errors; - 80061a2: 687b ldr r3, [r7, #4] - 80061a4: f8d3 209c ldr.w r2, [r3, #156] ; 0x9c - 80061a8: 6c7b ldr r3, [r7, #68] ; 0x44 - 80061aa: 431a orrs r2, r3 - 80061ac: 687b ldr r3, [r7, #4] - 80061ae: f8c3 209c str.w r2, [r3, #156] ; 0x9c - } - - if (hfdcan->Instance == FDCAN1) - 80061b2: 687b ldr r3, [r7, #4] - 80061b4: 681b ldr r3, [r3, #0] - 80061b6: 4a5f ldr r2, [pc, #380] ; (8006334 ) - 80061b8: 4293 cmp r3, r2 - 80061ba: f040 80aa bne.w 8006312 - { - if ((hfdcan->ttcan->TTOCF & FDCAN_TTOCF_OM) != 0U) - 80061be: 687b ldr r3, [r7, #4] - 80061c0: 685b ldr r3, [r3, #4] - 80061c2: 689b ldr r3, [r3, #8] - 80061c4: f003 0303 and.w r3, r3, #3 - 80061c8: 2b00 cmp r3, #0 - 80061ca: f000 80a2 beq.w 8006312 - { - TTSchedSyncITs = hfdcan->ttcan->TTIR & FDCAN_TT_SCHEDULE_SYNC_MASK; - 80061ce: 687b ldr r3, [r7, #4] - 80061d0: 685b ldr r3, [r3, #4] - 80061d2: 6a1b ldr r3, [r3, #32] - 80061d4: f003 030f and.w r3, r3, #15 - 80061d8: 62fb str r3, [r7, #44] ; 0x2c - TTSchedSyncITs &= hfdcan->ttcan->TTIE; - 80061da: 687b ldr r3, [r7, #4] - 80061dc: 685b ldr r3, [r3, #4] - 80061de: 6a5b ldr r3, [r3, #36] ; 0x24 - 80061e0: 6afa ldr r2, [r7, #44] ; 0x2c - 80061e2: 4013 ands r3, r2 - 80061e4: 62fb str r3, [r7, #44] ; 0x2c - TTTimeMarkITs = hfdcan->ttcan->TTIR & FDCAN_TT_TIME_MARK_MASK; - 80061e6: 687b ldr r3, [r7, #4] - 80061e8: 685b ldr r3, [r3, #4] - 80061ea: 6a1b ldr r3, [r3, #32] - 80061ec: f003 0330 and.w r3, r3, #48 ; 0x30 - 80061f0: 62bb str r3, [r7, #40] ; 0x28 - TTTimeMarkITs &= hfdcan->ttcan->TTIE; - 80061f2: 687b ldr r3, [r7, #4] - 80061f4: 685b ldr r3, [r3, #4] - 80061f6: 6a5b ldr r3, [r3, #36] ; 0x24 - 80061f8: 6aba ldr r2, [r7, #40] ; 0x28 - 80061fa: 4013 ands r3, r2 - 80061fc: 62bb str r3, [r7, #40] ; 0x28 - TTGlobTimeITs = hfdcan->ttcan->TTIR & FDCAN_TT_GLOBAL_TIME_MASK; - 80061fe: 687b ldr r3, [r7, #4] - 8006200: 685b ldr r3, [r3, #4] - 8006202: 6a1b ldr r3, [r3, #32] - 8006204: f403 73c0 and.w r3, r3, #384 ; 0x180 - 8006208: 627b str r3, [r7, #36] ; 0x24 - TTGlobTimeITs &= hfdcan->ttcan->TTIE; - 800620a: 687b ldr r3, [r7, #4] - 800620c: 685b ldr r3, [r3, #4] - 800620e: 6a5b ldr r3, [r3, #36] ; 0x24 - 8006210: 6a7a ldr r2, [r7, #36] ; 0x24 - 8006212: 4013 ands r3, r2 - 8006214: 627b str r3, [r7, #36] ; 0x24 - TTDistErrors = hfdcan->ttcan->TTIR & FDCAN_TT_DISTURBING_ERROR_MASK; - 8006216: 687b ldr r3, [r7, #4] - 8006218: 685b ldr r3, [r3, #4] - 800621a: 6a1b ldr r3, [r3, #32] - 800621c: f403 43fc and.w r3, r3, #32256 ; 0x7e00 - 8006220: 623b str r3, [r7, #32] - TTDistErrors &= hfdcan->ttcan->TTIE; - 8006222: 687b ldr r3, [r7, #4] - 8006224: 685b ldr r3, [r3, #4] - 8006226: 6a5b ldr r3, [r3, #36] ; 0x24 - 8006228: 6a3a ldr r2, [r7, #32] - 800622a: 4013 ands r3, r2 - 800622c: 623b str r3, [r7, #32] - TTFatalErrors = hfdcan->ttcan->TTIR & FDCAN_TT_FATAL_ERROR_MASK; - 800622e: 687b ldr r3, [r7, #4] - 8006230: 685b ldr r3, [r3, #4] - 8006232: 6a1b ldr r3, [r3, #32] - 8006234: f403 23f0 and.w r3, r3, #491520 ; 0x78000 - 8006238: 61fb str r3, [r7, #28] - TTFatalErrors &= hfdcan->ttcan->TTIE; - 800623a: 687b ldr r3, [r7, #4] - 800623c: 685b ldr r3, [r3, #4] - 800623e: 6a5b ldr r3, [r3, #36] ; 0x24 - 8006240: 69fa ldr r2, [r7, #28] - 8006242: 4013 ands r3, r2 - 8006244: 61fb str r3, [r7, #28] - itsourceTTIE = hfdcan->ttcan->TTIE; - 8006246: 687b ldr r3, [r7, #4] - 8006248: 685b ldr r3, [r3, #4] - 800624a: 6a5b ldr r3, [r3, #36] ; 0x24 - 800624c: 61bb str r3, [r7, #24] - itflagTTIR = hfdcan->ttcan->TTIR; - 800624e: 687b ldr r3, [r7, #4] - 8006250: 685b ldr r3, [r3, #4] - 8006252: 6a1b ldr r3, [r3, #32] - 8006254: 617b str r3, [r7, #20] - - /* TT Schedule Synchronization interrupts management **********************/ - if (TTSchedSyncITs != 0U) - 8006256: 6afb ldr r3, [r7, #44] ; 0x2c - 8006258: 2b00 cmp r3, #0 - 800625a: d007 beq.n 800626c - { - /* Clear the TT Schedule Synchronization flags */ - __HAL_FDCAN_TT_CLEAR_FLAG(hfdcan, TTSchedSyncITs); - 800625c: 687b ldr r3, [r7, #4] - 800625e: 685b ldr r3, [r3, #4] - 8006260: 6afa ldr r2, [r7, #44] ; 0x2c - 8006262: 621a str r2, [r3, #32] -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->TT_ScheduleSyncCallback(hfdcan, TTSchedSyncITs); -#else - /* TT Schedule Synchronization Callback */ - HAL_FDCAN_TT_ScheduleSyncCallback(hfdcan, TTSchedSyncITs); - 8006264: 6af9 ldr r1, [r7, #44] ; 0x2c - 8006266: 6878 ldr r0, [r7, #4] - 8006268: f000 f8ef bl 800644a -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - - /* TT Time Mark interrupts management *************************************/ - if (TTTimeMarkITs != 0U) - 800626c: 6abb ldr r3, [r7, #40] ; 0x28 - 800626e: 2b00 cmp r3, #0 - 8006270: d007 beq.n 8006282 - { - /* Clear the TT Time Mark flags */ - __HAL_FDCAN_TT_CLEAR_FLAG(hfdcan, TTTimeMarkITs); - 8006272: 687b ldr r3, [r7, #4] - 8006274: 685b ldr r3, [r3, #4] - 8006276: 6aba ldr r2, [r7, #40] ; 0x28 - 8006278: 621a str r2, [r3, #32] -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->TT_TimeMarkCallback(hfdcan, TTTimeMarkITs); -#else - /* TT Time Mark Callback */ - HAL_FDCAN_TT_TimeMarkCallback(hfdcan, TTTimeMarkITs); - 800627a: 6ab9 ldr r1, [r7, #40] ; 0x28 - 800627c: 6878 ldr r0, [r7, #4] - 800627e: f000 f8ef bl 8006460 -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - - /* TT Stop Watch interrupt management *************************************/ - if (FDCAN_CHECK_IT_SOURCE(itsourceTTIE, FDCAN_TT_IT_STOP_WATCH) != RESET) - 8006282: 69bb ldr r3, [r7, #24] - 8006284: f003 0340 and.w r3, r3, #64 ; 0x40 - 8006288: 2b00 cmp r3, #0 - 800628a: d019 beq.n 80062c0 - { - if (FDCAN_CHECK_FLAG(itflagTTIR, FDCAN_TT_FLAG_STOP_WATCH) != RESET) - 800628c: 697b ldr r3, [r7, #20] - 800628e: f003 0340 and.w r3, r3, #64 ; 0x40 - 8006292: 2b00 cmp r3, #0 - 8006294: d014 beq.n 80062c0 - { - /* Retrieve Stop watch Time and Cycle count */ - SWTime = ((hfdcan->ttcan->TTCPT & FDCAN_TTCPT_SWV) >> FDCAN_TTCPT_SWV_Pos); - 8006296: 687b ldr r3, [r7, #4] - 8006298: 685b ldr r3, [r3, #4] - 800629a: 6bdb ldr r3, [r3, #60] ; 0x3c - 800629c: 0c1b lsrs r3, r3, #16 - 800629e: b29b uxth r3, r3 - 80062a0: 613b str r3, [r7, #16] - SWCycleCount = ((hfdcan->ttcan->TTCPT & FDCAN_TTCPT_CCV) >> FDCAN_TTCPT_CCV_Pos); - 80062a2: 687b ldr r3, [r7, #4] - 80062a4: 685b ldr r3, [r3, #4] - 80062a6: 6bdb ldr r3, [r3, #60] ; 0x3c - 80062a8: f003 033f and.w r3, r3, #63 ; 0x3f - 80062ac: 60fb str r3, [r7, #12] - - /* Clear the TT Stop Watch flag */ - __HAL_FDCAN_TT_CLEAR_FLAG(hfdcan, FDCAN_TT_FLAG_STOP_WATCH); - 80062ae: 687b ldr r3, [r7, #4] - 80062b0: 685b ldr r3, [r3, #4] - 80062b2: 2240 movs r2, #64 ; 0x40 - 80062b4: 621a str r2, [r3, #32] -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->TT_StopWatchCallback(hfdcan, SWTime, SWCycleCount); -#else - /* TT Stop Watch Callback */ - HAL_FDCAN_TT_StopWatchCallback(hfdcan, SWTime, SWCycleCount); - 80062b6: 68fa ldr r2, [r7, #12] - 80062b8: 6939 ldr r1, [r7, #16] - 80062ba: 6878 ldr r0, [r7, #4] - 80062bc: f000 f8db bl 8006476 -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - } - - /* TT Global Time interrupts management ***********************************/ - if (TTGlobTimeITs != 0U) - 80062c0: 6a7b ldr r3, [r7, #36] ; 0x24 - 80062c2: 2b00 cmp r3, #0 - 80062c4: d007 beq.n 80062d6 - { - /* Clear the TT Global Time flags */ - __HAL_FDCAN_TT_CLEAR_FLAG(hfdcan, TTGlobTimeITs); - 80062c6: 687b ldr r3, [r7, #4] - 80062c8: 685b ldr r3, [r3, #4] - 80062ca: 6a7a ldr r2, [r7, #36] ; 0x24 - 80062cc: 621a str r2, [r3, #32] -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->TT_GlobalTimeCallback(hfdcan, TTGlobTimeITs); -#else - /* TT Global Time Callback */ - HAL_FDCAN_TT_GlobalTimeCallback(hfdcan, TTGlobTimeITs); - 80062ce: 6a79 ldr r1, [r7, #36] ; 0x24 - 80062d0: 6878 ldr r0, [r7, #4] - 80062d2: f000 f8dc bl 800648e -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - - /* TT Disturbing Error interrupts management ******************************/ - if (TTDistErrors != 0U) - 80062d6: 6a3b ldr r3, [r7, #32] - 80062d8: 2b00 cmp r3, #0 - 80062da: d00b beq.n 80062f4 - { - /* Clear the TT Disturbing Error flags */ - __HAL_FDCAN_TT_CLEAR_FLAG(hfdcan, TTDistErrors); - 80062dc: 687b ldr r3, [r7, #4] - 80062de: 685b ldr r3, [r3, #4] - 80062e0: 6a3a ldr r2, [r7, #32] - 80062e2: 621a str r2, [r3, #32] - - /* Update error code */ - hfdcan->ErrorCode |= TTDistErrors; - 80062e4: 687b ldr r3, [r7, #4] - 80062e6: f8d3 209c ldr.w r2, [r3, #156] ; 0x9c - 80062ea: 6a3b ldr r3, [r7, #32] - 80062ec: 431a orrs r2, r3 - 80062ee: 687b ldr r3, [r7, #4] - 80062f0: f8c3 209c str.w r2, [r3, #156] ; 0x9c - } - - /* TT Fatal Error interrupts management ***********************************/ - if (TTFatalErrors != 0U) - 80062f4: 69fb ldr r3, [r7, #28] - 80062f6: 2b00 cmp r3, #0 - 80062f8: d00b beq.n 8006312 - { - /* Clear the TT Fatal Error flags */ - __HAL_FDCAN_TT_CLEAR_FLAG(hfdcan, TTFatalErrors); - 80062fa: 687b ldr r3, [r7, #4] - 80062fc: 685b ldr r3, [r3, #4] - 80062fe: 69fa ldr r2, [r7, #28] - 8006300: 621a str r2, [r3, #32] - - /* Update error code */ - hfdcan->ErrorCode |= TTFatalErrors; - 8006302: 687b ldr r3, [r7, #4] - 8006304: f8d3 209c ldr.w r2, [r3, #156] ; 0x9c - 8006308: 69fb ldr r3, [r7, #28] - 800630a: 431a orrs r2, r3 - 800630c: 687b ldr r3, [r7, #4] - 800630e: f8c3 209c str.w r2, [r3, #156] ; 0x9c - } - } - } - - if (hfdcan->ErrorCode != HAL_FDCAN_ERROR_NONE) - 8006312: 687b ldr r3, [r7, #4] - 8006314: f8d3 309c ldr.w r3, [r3, #156] ; 0x9c - 8006318: 2b00 cmp r3, #0 - 800631a: d002 beq.n 8006322 -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->ErrorCallback(hfdcan); -#else - /* Error Callback */ - HAL_FDCAN_ErrorCallback(hfdcan); - 800631c: 6878 ldr r0, [r7, #4] - 800631e: f000 f87f bl 8006420 -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } -} - 8006322: bf00 nop - 8006324: 3758 adds r7, #88 ; 0x58 - 8006326: 46bd mov sp, r7 - 8006328: bd80 pop {r7, pc} - 800632a: bf00 nop - 800632c: 4000a800 .word 0x4000a800 - 8006330: 3fcfffff .word 0x3fcfffff - 8006334: 4000a000 .word 0x4000a000 - -08006338 : - * @param ClkCalibrationITs indicates which Clock Calibration interrupts are signaled. - * This parameter can be any combination of @arg FDCAN_Clock_Calibration_Interrupts. - * @retval None - */ -__weak void HAL_FDCAN_ClockCalibrationCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t ClkCalibrationITs) -{ - 8006338: b480 push {r7} - 800633a: b083 sub sp, #12 - 800633c: af00 add r7, sp, #0 - 800633e: 6078 str r0, [r7, #4] - 8006340: 6039 str r1, [r7, #0] - UNUSED(ClkCalibrationITs); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_ClockCalibrationCallback could be implemented in the user file - */ -} - 8006342: bf00 nop - 8006344: 370c adds r7, #12 - 8006346: 46bd mov sp, r7 - 8006348: f85d 7b04 ldr.w r7, [sp], #4 - 800634c: 4770 bx lr - -0800634e : - * @param TxEventFifoITs indicates which Tx Event FIFO interrupts are signaled. - * This parameter can be any combination of @arg FDCAN_Tx_Event_Fifo_Interrupts. - * @retval None - */ -__weak void HAL_FDCAN_TxEventFifoCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t TxEventFifoITs) -{ - 800634e: b480 push {r7} - 8006350: b083 sub sp, #12 - 8006352: af00 add r7, sp, #0 - 8006354: 6078 str r0, [r7, #4] - 8006356: 6039 str r1, [r7, #0] - UNUSED(TxEventFifoITs); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_TxEventFifoCallback could be implemented in the user file - */ -} - 8006358: bf00 nop - 800635a: 370c adds r7, #12 - 800635c: 46bd mov sp, r7 - 800635e: f85d 7b04 ldr.w r7, [sp], #4 - 8006362: 4770 bx lr - -08006364 : - * @param RxFifo0ITs indicates which Rx FIFO 0 interrupts are signaled. - * This parameter can be any combination of @arg FDCAN_Rx_Fifo0_Interrupts. - * @retval None - */ -__weak void HAL_FDCAN_RxFifo0Callback(FDCAN_HandleTypeDef *hfdcan, uint32_t RxFifo0ITs) -{ - 8006364: b480 push {r7} - 8006366: b083 sub sp, #12 - 8006368: af00 add r7, sp, #0 - 800636a: 6078 str r0, [r7, #4] - 800636c: 6039 str r1, [r7, #0] - UNUSED(RxFifo0ITs); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_RxFifo0Callback could be implemented in the user file - */ -} - 800636e: bf00 nop - 8006370: 370c adds r7, #12 - 8006372: 46bd mov sp, r7 - 8006374: f85d 7b04 ldr.w r7, [sp], #4 - 8006378: 4770 bx lr - -0800637a : - * @param RxFifo1ITs indicates which Rx FIFO 1 interrupts are signaled. - * This parameter can be any combination of @arg FDCAN_Rx_Fifo1_Interrupts. - * @retval None - */ -__weak void HAL_FDCAN_RxFifo1Callback(FDCAN_HandleTypeDef *hfdcan, uint32_t RxFifo1ITs) -{ - 800637a: b480 push {r7} - 800637c: b083 sub sp, #12 - 800637e: af00 add r7, sp, #0 - 8006380: 6078 str r0, [r7, #4] - 8006382: 6039 str r1, [r7, #0] - UNUSED(RxFifo1ITs); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_RxFifo1Callback could be implemented in the user file - */ -} - 8006384: bf00 nop - 8006386: 370c adds r7, #12 - 8006388: 46bd mov sp, r7 - 800638a: f85d 7b04 ldr.w r7, [sp], #4 - 800638e: 4770 bx lr - -08006390 : - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval None - */ -__weak void HAL_FDCAN_TxFifoEmptyCallback(FDCAN_HandleTypeDef *hfdcan) -{ - 8006390: b480 push {r7} - 8006392: b083 sub sp, #12 - 8006394: af00 add r7, sp, #0 - 8006396: 6078 str r0, [r7, #4] - UNUSED(hfdcan); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_TxFifoEmptyCallback could be implemented in the user file - */ -} - 8006398: bf00 nop - 800639a: 370c adds r7, #12 - 800639c: 46bd mov sp, r7 - 800639e: f85d 7b04 ldr.w r7, [sp], #4 - 80063a2: 4770 bx lr - -080063a4 : - * @param BufferIndexes Indexes of the transmitted buffers. - * This parameter can be any combination of @arg FDCAN_Tx_location. - * @retval None - */ -__weak void HAL_FDCAN_TxBufferCompleteCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t BufferIndexes) -{ - 80063a4: b480 push {r7} - 80063a6: b083 sub sp, #12 - 80063a8: af00 add r7, sp, #0 - 80063aa: 6078 str r0, [r7, #4] - 80063ac: 6039 str r1, [r7, #0] - UNUSED(BufferIndexes); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_TxBufferCompleteCallback could be implemented in the user file - */ -} - 80063ae: bf00 nop - 80063b0: 370c adds r7, #12 - 80063b2: 46bd mov sp, r7 - 80063b4: f85d 7b04 ldr.w r7, [sp], #4 - 80063b8: 4770 bx lr - -080063ba : - * @param BufferIndexes Indexes of the aborted buffers. - * This parameter can be any combination of @arg FDCAN_Tx_location. - * @retval None - */ -__weak void HAL_FDCAN_TxBufferAbortCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t BufferIndexes) -{ - 80063ba: b480 push {r7} - 80063bc: b083 sub sp, #12 - 80063be: af00 add r7, sp, #0 - 80063c0: 6078 str r0, [r7, #4] - 80063c2: 6039 str r1, [r7, #0] - UNUSED(BufferIndexes); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_TxBufferAbortCallback could be implemented in the user file - */ -} - 80063c4: bf00 nop - 80063c6: 370c adds r7, #12 - 80063c8: 46bd mov sp, r7 - 80063ca: f85d 7b04 ldr.w r7, [sp], #4 - 80063ce: 4770 bx lr - -080063d0 : - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval None - */ -__weak void HAL_FDCAN_RxBufferNewMessageCallback(FDCAN_HandleTypeDef *hfdcan) -{ - 80063d0: b480 push {r7} - 80063d2: b083 sub sp, #12 - 80063d4: af00 add r7, sp, #0 - 80063d6: 6078 str r0, [r7, #4] - UNUSED(hfdcan); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_RxBufferNewMessageCallback could be implemented in the user file - */ -} - 80063d8: bf00 nop - 80063da: 370c adds r7, #12 - 80063dc: 46bd mov sp, r7 - 80063de: f85d 7b04 ldr.w r7, [sp], #4 - 80063e2: 4770 bx lr - -080063e4 : - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval None - */ -__weak void HAL_FDCAN_TimestampWraparoundCallback(FDCAN_HandleTypeDef *hfdcan) -{ - 80063e4: b480 push {r7} - 80063e6: b083 sub sp, #12 - 80063e8: af00 add r7, sp, #0 - 80063ea: 6078 str r0, [r7, #4] - UNUSED(hfdcan); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_TimestampWraparoundCallback could be implemented in the user file - */ -} - 80063ec: bf00 nop - 80063ee: 370c adds r7, #12 - 80063f0: 46bd mov sp, r7 - 80063f2: f85d 7b04 ldr.w r7, [sp], #4 - 80063f6: 4770 bx lr - -080063f8 : - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval None - */ -__weak void HAL_FDCAN_TimeoutOccurredCallback(FDCAN_HandleTypeDef *hfdcan) -{ - 80063f8: b480 push {r7} - 80063fa: b083 sub sp, #12 - 80063fc: af00 add r7, sp, #0 - 80063fe: 6078 str r0, [r7, #4] - UNUSED(hfdcan); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_TimeoutOccurredCallback could be implemented in the user file - */ -} - 8006400: bf00 nop - 8006402: 370c adds r7, #12 - 8006404: 46bd mov sp, r7 - 8006406: f85d 7b04 ldr.w r7, [sp], #4 - 800640a: 4770 bx lr - -0800640c : - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval None - */ -__weak void HAL_FDCAN_HighPriorityMessageCallback(FDCAN_HandleTypeDef *hfdcan) -{ - 800640c: b480 push {r7} - 800640e: b083 sub sp, #12 - 8006410: af00 add r7, sp, #0 - 8006412: 6078 str r0, [r7, #4] - UNUSED(hfdcan); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_HighPriorityMessageCallback could be implemented in the user file - */ -} - 8006414: bf00 nop - 8006416: 370c adds r7, #12 - 8006418: 46bd mov sp, r7 - 800641a: f85d 7b04 ldr.w r7, [sp], #4 - 800641e: 4770 bx lr - -08006420 : - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval None - */ -__weak void HAL_FDCAN_ErrorCallback(FDCAN_HandleTypeDef *hfdcan) -{ - 8006420: b480 push {r7} - 8006422: b083 sub sp, #12 - 8006424: af00 add r7, sp, #0 - 8006426: 6078 str r0, [r7, #4] - UNUSED(hfdcan); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_ErrorCallback could be implemented in the user file - */ -} - 8006428: bf00 nop - 800642a: 370c adds r7, #12 - 800642c: 46bd mov sp, r7 - 800642e: f85d 7b04 ldr.w r7, [sp], #4 - 8006432: 4770 bx lr - -08006434 : - * @param ErrorStatusITs indicates which Error Status interrupts are signaled. - * This parameter can be any combination of @arg FDCAN_Error_Status_Interrupts. - * @retval None - */ -__weak void HAL_FDCAN_ErrorStatusCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t ErrorStatusITs) -{ - 8006434: b480 push {r7} - 8006436: b083 sub sp, #12 - 8006438: af00 add r7, sp, #0 - 800643a: 6078 str r0, [r7, #4] - 800643c: 6039 str r1, [r7, #0] - UNUSED(ErrorStatusITs); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_ErrorStatusCallback could be implemented in the user file - */ -} - 800643e: bf00 nop - 8006440: 370c adds r7, #12 - 8006442: 46bd mov sp, r7 - 8006444: f85d 7b04 ldr.w r7, [sp], #4 - 8006448: 4770 bx lr - -0800644a : - * @param TTSchedSyncITs indicates which TT Schedule Synchronization interrupts are signaled. - * This parameter can be any combination of @arg FDCAN_TTScheduleSynchronization_Interrupts. - * @retval None - */ -__weak void HAL_FDCAN_TT_ScheduleSyncCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t TTSchedSyncITs) -{ - 800644a: b480 push {r7} - 800644c: b083 sub sp, #12 - 800644e: af00 add r7, sp, #0 - 8006450: 6078 str r0, [r7, #4] - 8006452: 6039 str r1, [r7, #0] - UNUSED(TTSchedSyncITs); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_TT_ScheduleSyncCallback could be implemented in the user file - */ -} - 8006454: bf00 nop - 8006456: 370c adds r7, #12 - 8006458: 46bd mov sp, r7 - 800645a: f85d 7b04 ldr.w r7, [sp], #4 - 800645e: 4770 bx lr - -08006460 : - * @param TTTimeMarkITs indicates which TT Schedule Synchronization interrupts are signaled. - * This parameter can be any combination of @arg FDCAN_TTTimeMark_Interrupts. - * @retval None - */ -__weak void HAL_FDCAN_TT_TimeMarkCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t TTTimeMarkITs) -{ - 8006460: b480 push {r7} - 8006462: b083 sub sp, #12 - 8006464: af00 add r7, sp, #0 - 8006466: 6078 str r0, [r7, #4] - 8006468: 6039 str r1, [r7, #0] - UNUSED(TTTimeMarkITs); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_TT_TimeMarkCallback could be implemented in the user file - */ -} - 800646a: bf00 nop - 800646c: 370c adds r7, #12 - 800646e: 46bd mov sp, r7 - 8006470: f85d 7b04 ldr.w r7, [sp], #4 - 8006474: 4770 bx lr - -08006476 : - * @param SWCycleCount Cycle count value captured together with SWTime. - * This parameter is a number between 0 and 0x3F. - * @retval None - */ -__weak void HAL_FDCAN_TT_StopWatchCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t SWTime, uint32_t SWCycleCount) -{ - 8006476: b480 push {r7} - 8006478: b085 sub sp, #20 - 800647a: af00 add r7, sp, #0 - 800647c: 60f8 str r0, [r7, #12] - 800647e: 60b9 str r1, [r7, #8] - 8006480: 607a str r2, [r7, #4] - UNUSED(SWCycleCount); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_TT_StopWatchCallback could be implemented in the user file - */ -} - 8006482: bf00 nop - 8006484: 3714 adds r7, #20 - 8006486: 46bd mov sp, r7 - 8006488: f85d 7b04 ldr.w r7, [sp], #4 - 800648c: 4770 bx lr - -0800648e : - * @param TTGlobTimeITs indicates which TT Global Time interrupts are signaled. - * This parameter can be any combination of @arg FDCAN_TTGlobalTime_Interrupts. - * @retval None - */ -__weak void HAL_FDCAN_TT_GlobalTimeCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t TTGlobTimeITs) -{ - 800648e: b480 push {r7} - 8006490: b083 sub sp, #12 - 8006492: af00 add r7, sp, #0 - 8006494: 6078 str r0, [r7, #4] - 8006496: 6039 str r1, [r7, #0] - UNUSED(TTGlobTimeITs); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_TT_GlobalTimeCallback could be implemented in the user file - */ -} - 8006498: bf00 nop - 800649a: 370c adds r7, #12 - 800649c: 46bd mov sp, r7 - 800649e: f85d 7b04 ldr.w r7, [sp], #4 - 80064a2: 4770 bx lr - -080064a4 : - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -static HAL_StatusTypeDef FDCAN_CalcultateRamBlockAddresses(FDCAN_HandleTypeDef *hfdcan) -{ - 80064a4: b480 push {r7} - 80064a6: b085 sub sp, #20 - 80064a8: af00 add r7, sp, #0 - 80064aa: 6078 str r0, [r7, #4] - uint32_t RAMcounter; - uint32_t StartAddress; - - StartAddress = hfdcan->Init.MessageRAMOffset; - 80064ac: 687b ldr r3, [r7, #4] - 80064ae: 6b5b ldr r3, [r3, #52] ; 0x34 - 80064b0: 60bb str r3, [r7, #8] - - /* Standard filter list start address */ - MODIFY_REG(hfdcan->Instance->SIDFC, FDCAN_SIDFC_FLSSA, (StartAddress << FDCAN_SIDFC_FLSSA_Pos)); - 80064b2: 687b ldr r3, [r7, #4] - 80064b4: 681b ldr r3, [r3, #0] - 80064b6: f8d3 2084 ldr.w r2, [r3, #132] ; 0x84 - 80064ba: 4ba7 ldr r3, [pc, #668] ; (8006758 ) - 80064bc: 4013 ands r3, r2 - 80064be: 68ba ldr r2, [r7, #8] - 80064c0: 0091 lsls r1, r2, #2 - 80064c2: 687a ldr r2, [r7, #4] - 80064c4: 6812 ldr r2, [r2, #0] - 80064c6: 430b orrs r3, r1 - 80064c8: f8c2 3084 str.w r3, [r2, #132] ; 0x84 - - /* Standard filter elements number */ - MODIFY_REG(hfdcan->Instance->SIDFC, FDCAN_SIDFC_LSS, (hfdcan->Init.StdFiltersNbr << FDCAN_SIDFC_LSS_Pos)); - 80064cc: 687b ldr r3, [r7, #4] - 80064ce: 681b ldr r3, [r3, #0] - 80064d0: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 80064d4: f423 017f bic.w r1, r3, #16711680 ; 0xff0000 - 80064d8: 687b ldr r3, [r7, #4] - 80064da: 6b9b ldr r3, [r3, #56] ; 0x38 - 80064dc: 041a lsls r2, r3, #16 - 80064de: 687b ldr r3, [r7, #4] - 80064e0: 681b ldr r3, [r3, #0] - 80064e2: 430a orrs r2, r1 - 80064e4: f8c3 2084 str.w r2, [r3, #132] ; 0x84 - - /* Extended filter list start address */ - StartAddress += hfdcan->Init.StdFiltersNbr; - 80064e8: 687b ldr r3, [r7, #4] - 80064ea: 6b9b ldr r3, [r3, #56] ; 0x38 - 80064ec: 68ba ldr r2, [r7, #8] - 80064ee: 4413 add r3, r2 - 80064f0: 60bb str r3, [r7, #8] - MODIFY_REG(hfdcan->Instance->XIDFC, FDCAN_XIDFC_FLESA, (StartAddress << FDCAN_XIDFC_FLESA_Pos)); - 80064f2: 687b ldr r3, [r7, #4] - 80064f4: 681b ldr r3, [r3, #0] - 80064f6: f8d3 2088 ldr.w r2, [r3, #136] ; 0x88 - 80064fa: 4b97 ldr r3, [pc, #604] ; (8006758 ) - 80064fc: 4013 ands r3, r2 - 80064fe: 68ba ldr r2, [r7, #8] - 8006500: 0091 lsls r1, r2, #2 - 8006502: 687a ldr r2, [r7, #4] - 8006504: 6812 ldr r2, [r2, #0] - 8006506: 430b orrs r3, r1 - 8006508: f8c2 3088 str.w r3, [r2, #136] ; 0x88 - - /* Extended filter elements number */ - MODIFY_REG(hfdcan->Instance->XIDFC, FDCAN_XIDFC_LSE, (hfdcan->Init.ExtFiltersNbr << FDCAN_XIDFC_LSE_Pos)); - 800650c: 687b ldr r3, [r7, #4] - 800650e: 681b ldr r3, [r3, #0] - 8006510: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 - 8006514: f423 01fe bic.w r1, r3, #8323072 ; 0x7f0000 - 8006518: 687b ldr r3, [r7, #4] - 800651a: 6bdb ldr r3, [r3, #60] ; 0x3c - 800651c: 041a lsls r2, r3, #16 - 800651e: 687b ldr r3, [r7, #4] - 8006520: 681b ldr r3, [r3, #0] - 8006522: 430a orrs r2, r1 - 8006524: f8c3 2088 str.w r2, [r3, #136] ; 0x88 - - /* Rx FIFO 0 start address */ - StartAddress += (hfdcan->Init.ExtFiltersNbr * 2U); - 8006528: 687b ldr r3, [r7, #4] - 800652a: 6bdb ldr r3, [r3, #60] ; 0x3c - 800652c: 005b lsls r3, r3, #1 - 800652e: 68ba ldr r2, [r7, #8] - 8006530: 4413 add r3, r2 - 8006532: 60bb str r3, [r7, #8] - MODIFY_REG(hfdcan->Instance->RXF0C, FDCAN_RXF0C_F0SA, (StartAddress << FDCAN_RXF0C_F0SA_Pos)); - 8006534: 687b ldr r3, [r7, #4] - 8006536: 681b ldr r3, [r3, #0] - 8006538: f8d3 20a0 ldr.w r2, [r3, #160] ; 0xa0 - 800653c: 4b86 ldr r3, [pc, #536] ; (8006758 ) - 800653e: 4013 ands r3, r2 - 8006540: 68ba ldr r2, [r7, #8] - 8006542: 0091 lsls r1, r2, #2 - 8006544: 687a ldr r2, [r7, #4] - 8006546: 6812 ldr r2, [r2, #0] - 8006548: 430b orrs r3, r1 - 800654a: f8c2 30a0 str.w r3, [r2, #160] ; 0xa0 - - /* Rx FIFO 0 elements number */ - MODIFY_REG(hfdcan->Instance->RXF0C, FDCAN_RXF0C_F0S, (hfdcan->Init.RxFifo0ElmtsNbr << FDCAN_RXF0C_F0S_Pos)); - 800654e: 687b ldr r3, [r7, #4] - 8006550: 681b ldr r3, [r3, #0] - 8006552: f8d3 30a0 ldr.w r3, [r3, #160] ; 0xa0 - 8006556: f423 01fe bic.w r1, r3, #8323072 ; 0x7f0000 - 800655a: 687b ldr r3, [r7, #4] - 800655c: 6c1b ldr r3, [r3, #64] ; 0x40 - 800655e: 041a lsls r2, r3, #16 - 8006560: 687b ldr r3, [r7, #4] - 8006562: 681b ldr r3, [r3, #0] - 8006564: 430a orrs r2, r1 - 8006566: f8c3 20a0 str.w r2, [r3, #160] ; 0xa0 - - /* Rx FIFO 1 start address */ - StartAddress += (hfdcan->Init.RxFifo0ElmtsNbr * hfdcan->Init.RxFifo0ElmtSize); - 800656a: 687b ldr r3, [r7, #4] - 800656c: 6c1b ldr r3, [r3, #64] ; 0x40 - 800656e: 687a ldr r2, [r7, #4] - 8006570: 6c52 ldr r2, [r2, #68] ; 0x44 - 8006572: fb02 f303 mul.w r3, r2, r3 - 8006576: 68ba ldr r2, [r7, #8] - 8006578: 4413 add r3, r2 - 800657a: 60bb str r3, [r7, #8] - MODIFY_REG(hfdcan->Instance->RXF1C, FDCAN_RXF1C_F1SA, (StartAddress << FDCAN_RXF1C_F1SA_Pos)); - 800657c: 687b ldr r3, [r7, #4] - 800657e: 681b ldr r3, [r3, #0] - 8006580: f8d3 20b0 ldr.w r2, [r3, #176] ; 0xb0 - 8006584: 4b74 ldr r3, [pc, #464] ; (8006758 ) - 8006586: 4013 ands r3, r2 - 8006588: 68ba ldr r2, [r7, #8] - 800658a: 0091 lsls r1, r2, #2 - 800658c: 687a ldr r2, [r7, #4] - 800658e: 6812 ldr r2, [r2, #0] - 8006590: 430b orrs r3, r1 - 8006592: f8c2 30b0 str.w r3, [r2, #176] ; 0xb0 - - /* Rx FIFO 1 elements number */ - MODIFY_REG(hfdcan->Instance->RXF1C, FDCAN_RXF1C_F1S, (hfdcan->Init.RxFifo1ElmtsNbr << FDCAN_RXF1C_F1S_Pos)); - 8006596: 687b ldr r3, [r7, #4] - 8006598: 681b ldr r3, [r3, #0] - 800659a: f8d3 30b0 ldr.w r3, [r3, #176] ; 0xb0 - 800659e: f423 01fe bic.w r1, r3, #8323072 ; 0x7f0000 - 80065a2: 687b ldr r3, [r7, #4] - 80065a4: 6c9b ldr r3, [r3, #72] ; 0x48 - 80065a6: 041a lsls r2, r3, #16 - 80065a8: 687b ldr r3, [r7, #4] - 80065aa: 681b ldr r3, [r3, #0] - 80065ac: 430a orrs r2, r1 - 80065ae: f8c3 20b0 str.w r2, [r3, #176] ; 0xb0 - - /* Rx buffer list start address */ - StartAddress += (hfdcan->Init.RxFifo1ElmtsNbr * hfdcan->Init.RxFifo1ElmtSize); - 80065b2: 687b ldr r3, [r7, #4] - 80065b4: 6c9b ldr r3, [r3, #72] ; 0x48 - 80065b6: 687a ldr r2, [r7, #4] - 80065b8: 6cd2 ldr r2, [r2, #76] ; 0x4c - 80065ba: fb02 f303 mul.w r3, r2, r3 - 80065be: 68ba ldr r2, [r7, #8] - 80065c0: 4413 add r3, r2 - 80065c2: 60bb str r3, [r7, #8] - MODIFY_REG(hfdcan->Instance->RXBC, FDCAN_RXBC_RBSA, (StartAddress << FDCAN_RXBC_RBSA_Pos)); - 80065c4: 687b ldr r3, [r7, #4] - 80065c6: 681b ldr r3, [r3, #0] - 80065c8: f8d3 20ac ldr.w r2, [r3, #172] ; 0xac - 80065cc: 4b62 ldr r3, [pc, #392] ; (8006758 ) - 80065ce: 4013 ands r3, r2 - 80065d0: 68ba ldr r2, [r7, #8] - 80065d2: 0091 lsls r1, r2, #2 - 80065d4: 687a ldr r2, [r7, #4] - 80065d6: 6812 ldr r2, [r2, #0] - 80065d8: 430b orrs r3, r1 - 80065da: f8c2 30ac str.w r3, [r2, #172] ; 0xac - - /* Tx event FIFO start address */ - StartAddress += (hfdcan->Init.RxBuffersNbr * hfdcan->Init.RxBufferSize); - 80065de: 687b ldr r3, [r7, #4] - 80065e0: 6d1b ldr r3, [r3, #80] ; 0x50 - 80065e2: 687a ldr r2, [r7, #4] - 80065e4: 6d52 ldr r2, [r2, #84] ; 0x54 - 80065e6: fb02 f303 mul.w r3, r2, r3 - 80065ea: 68ba ldr r2, [r7, #8] - 80065ec: 4413 add r3, r2 - 80065ee: 60bb str r3, [r7, #8] - MODIFY_REG(hfdcan->Instance->TXEFC, FDCAN_TXEFC_EFSA, (StartAddress << FDCAN_TXEFC_EFSA_Pos)); - 80065f0: 687b ldr r3, [r7, #4] - 80065f2: 681b ldr r3, [r3, #0] - 80065f4: f8d3 20f0 ldr.w r2, [r3, #240] ; 0xf0 - 80065f8: 4b57 ldr r3, [pc, #348] ; (8006758 ) - 80065fa: 4013 ands r3, r2 - 80065fc: 68ba ldr r2, [r7, #8] - 80065fe: 0091 lsls r1, r2, #2 - 8006600: 687a ldr r2, [r7, #4] - 8006602: 6812 ldr r2, [r2, #0] - 8006604: 430b orrs r3, r1 - 8006606: f8c2 30f0 str.w r3, [r2, #240] ; 0xf0 - - /* Tx event FIFO elements number */ - MODIFY_REG(hfdcan->Instance->TXEFC, FDCAN_TXEFC_EFS, (hfdcan->Init.TxEventsNbr << FDCAN_TXEFC_EFS_Pos)); - 800660a: 687b ldr r3, [r7, #4] - 800660c: 681b ldr r3, [r3, #0] - 800660e: f8d3 30f0 ldr.w r3, [r3, #240] ; 0xf0 - 8006612: f423 117c bic.w r1, r3, #4128768 ; 0x3f0000 - 8006616: 687b ldr r3, [r7, #4] - 8006618: 6d9b ldr r3, [r3, #88] ; 0x58 - 800661a: 041a lsls r2, r3, #16 - 800661c: 687b ldr r3, [r7, #4] - 800661e: 681b ldr r3, [r3, #0] - 8006620: 430a orrs r2, r1 - 8006622: f8c3 20f0 str.w r2, [r3, #240] ; 0xf0 - - /* Tx buffer list start address */ - StartAddress += (hfdcan->Init.TxEventsNbr * 2U); - 8006626: 687b ldr r3, [r7, #4] - 8006628: 6d9b ldr r3, [r3, #88] ; 0x58 - 800662a: 005b lsls r3, r3, #1 - 800662c: 68ba ldr r2, [r7, #8] - 800662e: 4413 add r3, r2 - 8006630: 60bb str r3, [r7, #8] - MODIFY_REG(hfdcan->Instance->TXBC, FDCAN_TXBC_TBSA, (StartAddress << FDCAN_TXBC_TBSA_Pos)); - 8006632: 687b ldr r3, [r7, #4] - 8006634: 681b ldr r3, [r3, #0] - 8006636: f8d3 20c0 ldr.w r2, [r3, #192] ; 0xc0 - 800663a: 4b47 ldr r3, [pc, #284] ; (8006758 ) - 800663c: 4013 ands r3, r2 - 800663e: 68ba ldr r2, [r7, #8] - 8006640: 0091 lsls r1, r2, #2 - 8006642: 687a ldr r2, [r7, #4] - 8006644: 6812 ldr r2, [r2, #0] - 8006646: 430b orrs r3, r1 - 8006648: f8c2 30c0 str.w r3, [r2, #192] ; 0xc0 - - /* Dedicated Tx buffers number */ - MODIFY_REG(hfdcan->Instance->TXBC, FDCAN_TXBC_NDTB, (hfdcan->Init.TxBuffersNbr << FDCAN_TXBC_NDTB_Pos)); - 800664c: 687b ldr r3, [r7, #4] - 800664e: 681b ldr r3, [r3, #0] - 8006650: f8d3 30c0 ldr.w r3, [r3, #192] ; 0xc0 - 8006654: f423 117c bic.w r1, r3, #4128768 ; 0x3f0000 - 8006658: 687b ldr r3, [r7, #4] - 800665a: 6ddb ldr r3, [r3, #92] ; 0x5c - 800665c: 041a lsls r2, r3, #16 - 800665e: 687b ldr r3, [r7, #4] - 8006660: 681b ldr r3, [r3, #0] - 8006662: 430a orrs r2, r1 - 8006664: f8c3 20c0 str.w r2, [r3, #192] ; 0xc0 - - /* Tx FIFO/queue elements number */ - MODIFY_REG(hfdcan->Instance->TXBC, FDCAN_TXBC_TFQS, (hfdcan->Init.TxFifoQueueElmtsNbr << FDCAN_TXBC_TFQS_Pos)); - 8006668: 687b ldr r3, [r7, #4] - 800666a: 681b ldr r3, [r3, #0] - 800666c: f8d3 30c0 ldr.w r3, [r3, #192] ; 0xc0 - 8006670: f023 517c bic.w r1, r3, #1056964608 ; 0x3f000000 - 8006674: 687b ldr r3, [r7, #4] - 8006676: 6e1b ldr r3, [r3, #96] ; 0x60 - 8006678: 061a lsls r2, r3, #24 - 800667a: 687b ldr r3, [r7, #4] - 800667c: 681b ldr r3, [r3, #0] - 800667e: 430a orrs r2, r1 - 8006680: f8c3 20c0 str.w r2, [r3, #192] ; 0xc0 - - hfdcan->msgRam.StandardFilterSA = SRAMCAN_BASE + (hfdcan->Init.MessageRAMOffset * 4U); - 8006684: 687b ldr r3, [r7, #4] - 8006686: 6b5a ldr r2, [r3, #52] ; 0x34 - 8006688: 4b34 ldr r3, [pc, #208] ; (800675c ) - 800668a: 4413 add r3, r2 - 800668c: 009a lsls r2, r3, #2 - 800668e: 687b ldr r3, [r7, #4] - 8006690: 66da str r2, [r3, #108] ; 0x6c - hfdcan->msgRam.ExtendedFilterSA = hfdcan->msgRam.StandardFilterSA + (hfdcan->Init.StdFiltersNbr * 4U); - 8006692: 687b ldr r3, [r7, #4] - 8006694: 6eda ldr r2, [r3, #108] ; 0x6c - 8006696: 687b ldr r3, [r7, #4] - 8006698: 6b9b ldr r3, [r3, #56] ; 0x38 - 800669a: 009b lsls r3, r3, #2 - 800669c: 441a add r2, r3 - 800669e: 687b ldr r3, [r7, #4] - 80066a0: 671a str r2, [r3, #112] ; 0x70 - hfdcan->msgRam.RxFIFO0SA = hfdcan->msgRam.ExtendedFilterSA + (hfdcan->Init.ExtFiltersNbr * 2U * 4U); - 80066a2: 687b ldr r3, [r7, #4] - 80066a4: 6f1a ldr r2, [r3, #112] ; 0x70 - 80066a6: 687b ldr r3, [r7, #4] - 80066a8: 6bdb ldr r3, [r3, #60] ; 0x3c - 80066aa: 00db lsls r3, r3, #3 - 80066ac: 441a add r2, r3 - 80066ae: 687b ldr r3, [r7, #4] - 80066b0: 675a str r2, [r3, #116] ; 0x74 - hfdcan->msgRam.RxFIFO1SA = hfdcan->msgRam.RxFIFO0SA + (hfdcan->Init.RxFifo0ElmtsNbr * hfdcan->Init.RxFifo0ElmtSize * 4U); - 80066b2: 687b ldr r3, [r7, #4] - 80066b4: 6f5a ldr r2, [r3, #116] ; 0x74 - 80066b6: 687b ldr r3, [r7, #4] - 80066b8: 6c1b ldr r3, [r3, #64] ; 0x40 - 80066ba: 6879 ldr r1, [r7, #4] - 80066bc: 6c49 ldr r1, [r1, #68] ; 0x44 - 80066be: fb01 f303 mul.w r3, r1, r3 - 80066c2: 009b lsls r3, r3, #2 - 80066c4: 441a add r2, r3 - 80066c6: 687b ldr r3, [r7, #4] - 80066c8: 679a str r2, [r3, #120] ; 0x78 - hfdcan->msgRam.RxBufferSA = hfdcan->msgRam.RxFIFO1SA + (hfdcan->Init.RxFifo1ElmtsNbr * hfdcan->Init.RxFifo1ElmtSize * 4U); - 80066ca: 687b ldr r3, [r7, #4] - 80066cc: 6f9a ldr r2, [r3, #120] ; 0x78 - 80066ce: 687b ldr r3, [r7, #4] - 80066d0: 6c9b ldr r3, [r3, #72] ; 0x48 - 80066d2: 6879 ldr r1, [r7, #4] - 80066d4: 6cc9 ldr r1, [r1, #76] ; 0x4c - 80066d6: fb01 f303 mul.w r3, r1, r3 - 80066da: 009b lsls r3, r3, #2 - 80066dc: 441a add r2, r3 - 80066de: 687b ldr r3, [r7, #4] - 80066e0: 67da str r2, [r3, #124] ; 0x7c - hfdcan->msgRam.TxEventFIFOSA = hfdcan->msgRam.RxBufferSA + (hfdcan->Init.RxBuffersNbr * hfdcan->Init.RxBufferSize * 4U); - 80066e2: 687b ldr r3, [r7, #4] - 80066e4: 6fda ldr r2, [r3, #124] ; 0x7c - 80066e6: 687b ldr r3, [r7, #4] - 80066e8: 6d1b ldr r3, [r3, #80] ; 0x50 - 80066ea: 6879 ldr r1, [r7, #4] - 80066ec: 6d49 ldr r1, [r1, #84] ; 0x54 - 80066ee: fb01 f303 mul.w r3, r1, r3 - 80066f2: 009b lsls r3, r3, #2 - 80066f4: 441a add r2, r3 - 80066f6: 687b ldr r3, [r7, #4] - 80066f8: f8c3 2080 str.w r2, [r3, #128] ; 0x80 - hfdcan->msgRam.TxBufferSA = hfdcan->msgRam.TxEventFIFOSA + (hfdcan->Init.TxEventsNbr * 2U * 4U); - 80066fc: 687b ldr r3, [r7, #4] - 80066fe: f8d3 2080 ldr.w r2, [r3, #128] ; 0x80 - 8006702: 687b ldr r3, [r7, #4] - 8006704: 6d9b ldr r3, [r3, #88] ; 0x58 - 8006706: 00db lsls r3, r3, #3 - 8006708: 441a add r2, r3 - 800670a: 687b ldr r3, [r7, #4] - 800670c: f8c3 2084 str.w r2, [r3, #132] ; 0x84 - hfdcan->msgRam.TxFIFOQSA = hfdcan->msgRam.TxBufferSA + (hfdcan->Init.TxBuffersNbr * hfdcan->Init.TxElmtSize * 4U); - 8006710: 687b ldr r3, [r7, #4] - 8006712: f8d3 2084 ldr.w r2, [r3, #132] ; 0x84 - 8006716: 687b ldr r3, [r7, #4] - 8006718: 6ddb ldr r3, [r3, #92] ; 0x5c - 800671a: 6879 ldr r1, [r7, #4] - 800671c: 6e89 ldr r1, [r1, #104] ; 0x68 - 800671e: fb01 f303 mul.w r3, r1, r3 - 8006722: 009b lsls r3, r3, #2 - 8006724: 441a add r2, r3 - 8006726: 687b ldr r3, [r7, #4] - 8006728: f8c3 2088 str.w r2, [r3, #136] ; 0x88 - - hfdcan->msgRam.EndAddress = hfdcan->msgRam.TxFIFOQSA + (hfdcan->Init.TxFifoQueueElmtsNbr * hfdcan->Init.TxElmtSize * 4U); - 800672c: 687b ldr r3, [r7, #4] - 800672e: f8d3 2088 ldr.w r2, [r3, #136] ; 0x88 - 8006732: 687b ldr r3, [r7, #4] - 8006734: 6e1b ldr r3, [r3, #96] ; 0x60 - 8006736: 6879 ldr r1, [r7, #4] - 8006738: 6e89 ldr r1, [r1, #104] ; 0x68 - 800673a: fb01 f303 mul.w r3, r1, r3 - 800673e: 009b lsls r3, r3, #2 - 8006740: 441a add r2, r3 - 8006742: 687b ldr r3, [r7, #4] - 8006744: f8c3 2090 str.w r2, [r3, #144] ; 0x90 - - if (hfdcan->msgRam.EndAddress > FDCAN_MESSAGE_RAM_END_ADDRESS) /* Last address of the Message RAM */ - 8006748: 687b ldr r3, [r7, #4] - 800674a: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 800674e: 4a04 ldr r2, [pc, #16] ; (8006760 ) - 8006750: 4293 cmp r3, r2 - 8006752: d915 bls.n 8006780 - 8006754: e006 b.n 8006764 - 8006756: bf00 nop - 8006758: ffff0003 .word 0xffff0003 - 800675c: 10002b00 .word 0x10002b00 - 8006760: 4000d3fc .word 0x4000d3fc - { - /* Update error code. - Message RAM overflow */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_PARAM; - 8006764: 687b ldr r3, [r7, #4] - 8006766: f8d3 309c ldr.w r3, [r3, #156] ; 0x9c - 800676a: f043 0220 orr.w r2, r3, #32 - 800676e: 687b ldr r3, [r7, #4] - 8006770: f8c3 209c str.w r2, [r3, #156] ; 0x9c - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - 8006774: 687b ldr r3, [r7, #4] - 8006776: 2203 movs r2, #3 - 8006778: f883 2098 strb.w r2, [r3, #152] ; 0x98 - - return HAL_ERROR; - 800677c: 2301 movs r3, #1 - 800677e: e010 b.n 80067a2 - } - else - { - /* Flush the allocated Message RAM area */ - for (RAMcounter = hfdcan->msgRam.StandardFilterSA; RAMcounter < hfdcan->msgRam.EndAddress; RAMcounter += 4U) - 8006780: 687b ldr r3, [r7, #4] - 8006782: 6edb ldr r3, [r3, #108] ; 0x6c - 8006784: 60fb str r3, [r7, #12] - 8006786: e005 b.n 8006794 - { - *(uint32_t *)(RAMcounter) = 0x00000000; - 8006788: 68fb ldr r3, [r7, #12] - 800678a: 2200 movs r2, #0 - 800678c: 601a str r2, [r3, #0] - for (RAMcounter = hfdcan->msgRam.StandardFilterSA; RAMcounter < hfdcan->msgRam.EndAddress; RAMcounter += 4U) - 800678e: 68fb ldr r3, [r7, #12] - 8006790: 3304 adds r3, #4 - 8006792: 60fb str r3, [r7, #12] - 8006794: 687b ldr r3, [r7, #4] - 8006796: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 800679a: 68fa ldr r2, [r7, #12] - 800679c: 429a cmp r2, r3 - 800679e: d3f3 bcc.n 8006788 - } - } - - /* Return function status */ - return HAL_OK; - 80067a0: 2300 movs r3, #0 -} - 80067a2: 4618 mov r0, r3 - 80067a4: 3714 adds r7, #20 - 80067a6: 46bd mov sp, r7 - 80067a8: f85d 7b04 ldr.w r7, [sp], #4 - 80067ac: 4770 bx lr - 80067ae: bf00 nop - -080067b0 : - * @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) -{ - 80067b0: b480 push {r7} - 80067b2: b089 sub sp, #36 ; 0x24 - 80067b4: af00 add r7, sp, #0 - 80067b6: 6078 str r0, [r7, #4] - 80067b8: 6039 str r1, [r7, #0] - uint32_t position = 0x00U; - 80067ba: 2300 movs r3, #0 - 80067bc: 61fb str r3, [r7, #28] - EXTI_Core_TypeDef *EXTI_CurrentCPU; - -#if defined(DUAL_CORE) && defined(CORE_CM4) - EXTI_CurrentCPU = EXTI_D2; /* EXTI for CM4 CPU */ -#else - EXTI_CurrentCPU = EXTI_D1; /* EXTI for CM7 CPU */ - 80067be: 4b86 ldr r3, [pc, #536] ; (80069d8 ) - 80067c0: 617b str r3, [r7, #20] - assert_param(IS_GPIO_ALL_INSTANCE(GPIOx)); - assert_param(IS_GPIO_PIN(GPIO_Init->Pin)); - assert_param(IS_GPIO_MODE(GPIO_Init->Mode)); - - /* Configure the port pins */ - while (((GPIO_Init->Pin) >> position) != 0x00U) - 80067c2: e18c b.n 8006ade - { - /* Get current io position */ - iocurrent = (GPIO_Init->Pin) & (1UL << position); - 80067c4: 683b ldr r3, [r7, #0] - 80067c6: 681a ldr r2, [r3, #0] - 80067c8: 2101 movs r1, #1 - 80067ca: 69fb ldr r3, [r7, #28] - 80067cc: fa01 f303 lsl.w r3, r1, r3 - 80067d0: 4013 ands r3, r2 - 80067d2: 613b str r3, [r7, #16] - - if (iocurrent != 0x00U) - 80067d4: 693b ldr r3, [r7, #16] - 80067d6: 2b00 cmp r3, #0 - 80067d8: f000 817e beq.w 8006ad8 - { - /*--------------------- GPIO Mode Configuration ------------------------*/ - /* In case of Output or Alternate function mode selection */ - if (((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF)) - 80067dc: 683b ldr r3, [r7, #0] - 80067de: 685b ldr r3, [r3, #4] - 80067e0: f003 0303 and.w r3, r3, #3 - 80067e4: 2b01 cmp r3, #1 - 80067e6: d005 beq.n 80067f4 - 80067e8: 683b ldr r3, [r7, #0] - 80067ea: 685b ldr r3, [r3, #4] - 80067ec: f003 0303 and.w r3, r3, #3 - 80067f0: 2b02 cmp r3, #2 - 80067f2: d130 bne.n 8006856 - { - /* Check the Speed parameter */ - assert_param(IS_GPIO_SPEED(GPIO_Init->Speed)); - - /* Configure the IO Speed */ - temp = GPIOx->OSPEEDR; - 80067f4: 687b ldr r3, [r7, #4] - 80067f6: 689b ldr r3, [r3, #8] - 80067f8: 61bb str r3, [r7, #24] - temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U)); - 80067fa: 69fb ldr r3, [r7, #28] - 80067fc: 005b lsls r3, r3, #1 - 80067fe: 2203 movs r2, #3 - 8006800: fa02 f303 lsl.w r3, r2, r3 - 8006804: 43db mvns r3, r3 - 8006806: 69ba ldr r2, [r7, #24] - 8006808: 4013 ands r3, r2 - 800680a: 61bb str r3, [r7, #24] - temp |= (GPIO_Init->Speed << (position * 2U)); - 800680c: 683b ldr r3, [r7, #0] - 800680e: 68da ldr r2, [r3, #12] - 8006810: 69fb ldr r3, [r7, #28] - 8006812: 005b lsls r3, r3, #1 - 8006814: fa02 f303 lsl.w r3, r2, r3 - 8006818: 69ba ldr r2, [r7, #24] - 800681a: 4313 orrs r3, r2 - 800681c: 61bb str r3, [r7, #24] - GPIOx->OSPEEDR = temp; - 800681e: 687b ldr r3, [r7, #4] - 8006820: 69ba ldr r2, [r7, #24] - 8006822: 609a str r2, [r3, #8] - - /* Configure the IO Output Type */ - temp = GPIOx->OTYPER; - 8006824: 687b ldr r3, [r7, #4] - 8006826: 685b ldr r3, [r3, #4] - 8006828: 61bb str r3, [r7, #24] - temp &= ~(GPIO_OTYPER_OT0 << position) ; - 800682a: 2201 movs r2, #1 - 800682c: 69fb ldr r3, [r7, #28] - 800682e: fa02 f303 lsl.w r3, r2, r3 - 8006832: 43db mvns r3, r3 - 8006834: 69ba ldr r2, [r7, #24] - 8006836: 4013 ands r3, r2 - 8006838: 61bb str r3, [r7, #24] - temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); - 800683a: 683b ldr r3, [r7, #0] - 800683c: 685b ldr r3, [r3, #4] - 800683e: 091b lsrs r3, r3, #4 - 8006840: f003 0201 and.w r2, r3, #1 - 8006844: 69fb ldr r3, [r7, #28] - 8006846: fa02 f303 lsl.w r3, r2, r3 - 800684a: 69ba ldr r2, [r7, #24] - 800684c: 4313 orrs r3, r2 - 800684e: 61bb str r3, [r7, #24] - GPIOx->OTYPER = temp; - 8006850: 687b ldr r3, [r7, #4] - 8006852: 69ba ldr r2, [r7, #24] - 8006854: 605a str r2, [r3, #4] - } - - if ((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG) - 8006856: 683b ldr r3, [r7, #0] - 8006858: 685b ldr r3, [r3, #4] - 800685a: f003 0303 and.w r3, r3, #3 - 800685e: 2b03 cmp r3, #3 - 8006860: d017 beq.n 8006892 - { - /* Check the Pull parameter */ - assert_param(IS_GPIO_PULL(GPIO_Init->Pull)); - - /* Activate the Pull-up or Pull down resistor for the current IO */ - temp = GPIOx->PUPDR; - 8006862: 687b ldr r3, [r7, #4] - 8006864: 68db ldr r3, [r3, #12] - 8006866: 61bb str r3, [r7, #24] - temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U)); - 8006868: 69fb ldr r3, [r7, #28] - 800686a: 005b lsls r3, r3, #1 - 800686c: 2203 movs r2, #3 - 800686e: fa02 f303 lsl.w r3, r2, r3 - 8006872: 43db mvns r3, r3 - 8006874: 69ba ldr r2, [r7, #24] - 8006876: 4013 ands r3, r2 - 8006878: 61bb str r3, [r7, #24] - temp |= ((GPIO_Init->Pull) << (position * 2U)); - 800687a: 683b ldr r3, [r7, #0] - 800687c: 689a ldr r2, [r3, #8] - 800687e: 69fb ldr r3, [r7, #28] - 8006880: 005b lsls r3, r3, #1 - 8006882: fa02 f303 lsl.w r3, r2, r3 - 8006886: 69ba ldr r2, [r7, #24] - 8006888: 4313 orrs r3, r2 - 800688a: 61bb str r3, [r7, #24] - GPIOx->PUPDR = temp; - 800688c: 687b ldr r3, [r7, #4] - 800688e: 69ba ldr r2, [r7, #24] - 8006890: 60da str r2, [r3, #12] - } - - /* In case of Alternate function mode selection */ - if ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF) - 8006892: 683b ldr r3, [r7, #0] - 8006894: 685b ldr r3, [r3, #4] - 8006896: f003 0303 and.w r3, r3, #3 - 800689a: 2b02 cmp r3, #2 - 800689c: d123 bne.n 80068e6 - /* Check the Alternate function parameters */ - assert_param(IS_GPIO_AF_INSTANCE(GPIOx)); - assert_param(IS_GPIO_AF(GPIO_Init->Alternate)); - - /* Configure Alternate function mapped with the current IO */ - temp = GPIOx->AFR[position >> 3U]; - 800689e: 69fb ldr r3, [r7, #28] - 80068a0: 08da lsrs r2, r3, #3 - 80068a2: 687b ldr r3, [r7, #4] - 80068a4: 3208 adds r2, #8 - 80068a6: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 80068aa: 61bb str r3, [r7, #24] - temp &= ~(0xFU << ((position & 0x07U) * 4U)); - 80068ac: 69fb ldr r3, [r7, #28] - 80068ae: f003 0307 and.w r3, r3, #7 - 80068b2: 009b lsls r3, r3, #2 - 80068b4: 220f movs r2, #15 - 80068b6: fa02 f303 lsl.w r3, r2, r3 - 80068ba: 43db mvns r3, r3 - 80068bc: 69ba ldr r2, [r7, #24] - 80068be: 4013 ands r3, r2 - 80068c0: 61bb str r3, [r7, #24] - temp |= ((GPIO_Init->Alternate) << ((position & 0x07U) * 4U)); - 80068c2: 683b ldr r3, [r7, #0] - 80068c4: 691a ldr r2, [r3, #16] - 80068c6: 69fb ldr r3, [r7, #28] - 80068c8: f003 0307 and.w r3, r3, #7 - 80068cc: 009b lsls r3, r3, #2 - 80068ce: fa02 f303 lsl.w r3, r2, r3 - 80068d2: 69ba ldr r2, [r7, #24] - 80068d4: 4313 orrs r3, r2 - 80068d6: 61bb str r3, [r7, #24] - GPIOx->AFR[position >> 3U] = temp; - 80068d8: 69fb ldr r3, [r7, #28] - 80068da: 08da lsrs r2, r3, #3 - 80068dc: 687b ldr r3, [r7, #4] - 80068de: 3208 adds r2, #8 - 80068e0: 69b9 ldr r1, [r7, #24] - 80068e2: f843 1022 str.w r1, [r3, r2, lsl #2] - } - - /* Configure IO Direction mode (Input, Output, Alternate or Analog) */ - temp = GPIOx->MODER; - 80068e6: 687b ldr r3, [r7, #4] - 80068e8: 681b ldr r3, [r3, #0] - 80068ea: 61bb str r3, [r7, #24] - temp &= ~(GPIO_MODER_MODE0 << (position * 2U)); - 80068ec: 69fb ldr r3, [r7, #28] - 80068ee: 005b lsls r3, r3, #1 - 80068f0: 2203 movs r2, #3 - 80068f2: fa02 f303 lsl.w r3, r2, r3 - 80068f6: 43db mvns r3, r3 - 80068f8: 69ba ldr r2, [r7, #24] - 80068fa: 4013 ands r3, r2 - 80068fc: 61bb str r3, [r7, #24] - temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U)); - 80068fe: 683b ldr r3, [r7, #0] - 8006900: 685b ldr r3, [r3, #4] - 8006902: f003 0203 and.w r2, r3, #3 - 8006906: 69fb ldr r3, [r7, #28] - 8006908: 005b lsls r3, r3, #1 - 800690a: fa02 f303 lsl.w r3, r2, r3 - 800690e: 69ba ldr r2, [r7, #24] - 8006910: 4313 orrs r3, r2 - 8006912: 61bb str r3, [r7, #24] - GPIOx->MODER = temp; - 8006914: 687b ldr r3, [r7, #4] - 8006916: 69ba ldr r2, [r7, #24] - 8006918: 601a str r2, [r3, #0] - - /*--------------------- EXTI Mode Configuration ------------------------*/ - /* Configure the External Interrupt or event for the current IO */ - if ((GPIO_Init->Mode & EXTI_MODE) != 0x00U) - 800691a: 683b ldr r3, [r7, #0] - 800691c: 685b ldr r3, [r3, #4] - 800691e: f403 3340 and.w r3, r3, #196608 ; 0x30000 - 8006922: 2b00 cmp r3, #0 - 8006924: f000 80d8 beq.w 8006ad8 - { - /* Enable SYSCFG Clock */ - __HAL_RCC_SYSCFG_CLK_ENABLE(); - 8006928: 4b2c ldr r3, [pc, #176] ; (80069dc ) - 800692a: f8d3 30f4 ldr.w r3, [r3, #244] ; 0xf4 - 800692e: 4a2b ldr r2, [pc, #172] ; (80069dc ) - 8006930: f043 0302 orr.w r3, r3, #2 - 8006934: f8c2 30f4 str.w r3, [r2, #244] ; 0xf4 - 8006938: 4b28 ldr r3, [pc, #160] ; (80069dc ) - 800693a: f8d3 30f4 ldr.w r3, [r3, #244] ; 0xf4 - 800693e: f003 0302 and.w r3, r3, #2 - 8006942: 60fb str r3, [r7, #12] - 8006944: 68fb ldr r3, [r7, #12] - - temp = SYSCFG->EXTICR[position >> 2U]; - 8006946: 4a26 ldr r2, [pc, #152] ; (80069e0 ) - 8006948: 69fb ldr r3, [r7, #28] - 800694a: 089b lsrs r3, r3, #2 - 800694c: 3302 adds r3, #2 - 800694e: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8006952: 61bb str r3, [r7, #24] - temp &= ~(0x0FUL << (4U * (position & 0x03U))); - 8006954: 69fb ldr r3, [r7, #28] - 8006956: f003 0303 and.w r3, r3, #3 - 800695a: 009b lsls r3, r3, #2 - 800695c: 220f movs r2, #15 - 800695e: fa02 f303 lsl.w r3, r2, r3 - 8006962: 43db mvns r3, r3 - 8006964: 69ba ldr r2, [r7, #24] - 8006966: 4013 ands r3, r2 - 8006968: 61bb str r3, [r7, #24] - temp |= (GPIO_GET_INDEX(GPIOx) << (4U * (position & 0x03U))); - 800696a: 687b ldr r3, [r7, #4] - 800696c: 4a1d ldr r2, [pc, #116] ; (80069e4 ) - 800696e: 4293 cmp r3, r2 - 8006970: d04a beq.n 8006a08 - 8006972: 687b ldr r3, [r7, #4] - 8006974: 4a1c ldr r2, [pc, #112] ; (80069e8 ) - 8006976: 4293 cmp r3, r2 - 8006978: d02b beq.n 80069d2 - 800697a: 687b ldr r3, [r7, #4] - 800697c: 4a1b ldr r2, [pc, #108] ; (80069ec ) - 800697e: 4293 cmp r3, r2 - 8006980: d025 beq.n 80069ce - 8006982: 687b ldr r3, [r7, #4] - 8006984: 4a1a ldr r2, [pc, #104] ; (80069f0 ) - 8006986: 4293 cmp r3, r2 - 8006988: d01f beq.n 80069ca - 800698a: 687b ldr r3, [r7, #4] - 800698c: 4a19 ldr r2, [pc, #100] ; (80069f4 ) - 800698e: 4293 cmp r3, r2 - 8006990: d019 beq.n 80069c6 - 8006992: 687b ldr r3, [r7, #4] - 8006994: 4a18 ldr r2, [pc, #96] ; (80069f8 ) - 8006996: 4293 cmp r3, r2 - 8006998: d013 beq.n 80069c2 - 800699a: 687b ldr r3, [r7, #4] - 800699c: 4a17 ldr r2, [pc, #92] ; (80069fc ) - 800699e: 4293 cmp r3, r2 - 80069a0: d00d beq.n 80069be - 80069a2: 687b ldr r3, [r7, #4] - 80069a4: 4a16 ldr r2, [pc, #88] ; (8006a00 ) - 80069a6: 4293 cmp r3, r2 - 80069a8: d007 beq.n 80069ba - 80069aa: 687b ldr r3, [r7, #4] - 80069ac: 4a15 ldr r2, [pc, #84] ; (8006a04 ) - 80069ae: 4293 cmp r3, r2 - 80069b0: d101 bne.n 80069b6 - 80069b2: 2309 movs r3, #9 - 80069b4: e029 b.n 8006a0a - 80069b6: 230a movs r3, #10 - 80069b8: e027 b.n 8006a0a - 80069ba: 2307 movs r3, #7 - 80069bc: e025 b.n 8006a0a - 80069be: 2306 movs r3, #6 - 80069c0: e023 b.n 8006a0a - 80069c2: 2305 movs r3, #5 - 80069c4: e021 b.n 8006a0a - 80069c6: 2304 movs r3, #4 - 80069c8: e01f b.n 8006a0a - 80069ca: 2303 movs r3, #3 - 80069cc: e01d b.n 8006a0a - 80069ce: 2302 movs r3, #2 - 80069d0: e01b b.n 8006a0a - 80069d2: 2301 movs r3, #1 - 80069d4: e019 b.n 8006a0a - 80069d6: bf00 nop - 80069d8: 58000080 .word 0x58000080 - 80069dc: 58024400 .word 0x58024400 - 80069e0: 58000400 .word 0x58000400 - 80069e4: 58020000 .word 0x58020000 - 80069e8: 58020400 .word 0x58020400 - 80069ec: 58020800 .word 0x58020800 - 80069f0: 58020c00 .word 0x58020c00 - 80069f4: 58021000 .word 0x58021000 - 80069f8: 58021400 .word 0x58021400 - 80069fc: 58021800 .word 0x58021800 - 8006a00: 58021c00 .word 0x58021c00 - 8006a04: 58022400 .word 0x58022400 - 8006a08: 2300 movs r3, #0 - 8006a0a: 69fa ldr r2, [r7, #28] - 8006a0c: f002 0203 and.w r2, r2, #3 - 8006a10: 0092 lsls r2, r2, #2 - 8006a12: 4093 lsls r3, r2 - 8006a14: 69ba ldr r2, [r7, #24] - 8006a16: 4313 orrs r3, r2 - 8006a18: 61bb str r3, [r7, #24] - SYSCFG->EXTICR[position >> 2U] = temp; - 8006a1a: 4938 ldr r1, [pc, #224] ; (8006afc ) - 8006a1c: 69fb ldr r3, [r7, #28] - 8006a1e: 089b lsrs r3, r3, #2 - 8006a20: 3302 adds r3, #2 - 8006a22: 69ba ldr r2, [r7, #24] - 8006a24: f841 2023 str.w r2, [r1, r3, lsl #2] - - /* Clear Rising Falling edge configuration */ - temp = EXTI->RTSR1; - 8006a28: f04f 43b0 mov.w r3, #1476395008 ; 0x58000000 - 8006a2c: 681b ldr r3, [r3, #0] - 8006a2e: 61bb str r3, [r7, #24] - temp &= ~(iocurrent); - 8006a30: 693b ldr r3, [r7, #16] - 8006a32: 43db mvns r3, r3 - 8006a34: 69ba ldr r2, [r7, #24] - 8006a36: 4013 ands r3, r2 - 8006a38: 61bb str r3, [r7, #24] - if ((GPIO_Init->Mode & TRIGGER_RISING) != 0x00U) - 8006a3a: 683b ldr r3, [r7, #0] - 8006a3c: 685b ldr r3, [r3, #4] - 8006a3e: f403 1380 and.w r3, r3, #1048576 ; 0x100000 - 8006a42: 2b00 cmp r3, #0 - 8006a44: d003 beq.n 8006a4e - { - temp |= iocurrent; - 8006a46: 69ba ldr r2, [r7, #24] - 8006a48: 693b ldr r3, [r7, #16] - 8006a4a: 4313 orrs r3, r2 - 8006a4c: 61bb str r3, [r7, #24] - } - EXTI->RTSR1 = temp; - 8006a4e: f04f 42b0 mov.w r2, #1476395008 ; 0x58000000 - 8006a52: 69bb ldr r3, [r7, #24] - 8006a54: 6013 str r3, [r2, #0] - - temp = EXTI->FTSR1; - 8006a56: f04f 43b0 mov.w r3, #1476395008 ; 0x58000000 - 8006a5a: 685b ldr r3, [r3, #4] - 8006a5c: 61bb str r3, [r7, #24] - temp &= ~(iocurrent); - 8006a5e: 693b ldr r3, [r7, #16] - 8006a60: 43db mvns r3, r3 - 8006a62: 69ba ldr r2, [r7, #24] - 8006a64: 4013 ands r3, r2 - 8006a66: 61bb str r3, [r7, #24] - if ((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00U) - 8006a68: 683b ldr r3, [r7, #0] - 8006a6a: 685b ldr r3, [r3, #4] - 8006a6c: f403 1300 and.w r3, r3, #2097152 ; 0x200000 - 8006a70: 2b00 cmp r3, #0 - 8006a72: d003 beq.n 8006a7c - { - temp |= iocurrent; - 8006a74: 69ba ldr r2, [r7, #24] - 8006a76: 693b ldr r3, [r7, #16] - 8006a78: 4313 orrs r3, r2 - 8006a7a: 61bb str r3, [r7, #24] - } - EXTI->FTSR1 = temp; - 8006a7c: f04f 42b0 mov.w r2, #1476395008 ; 0x58000000 - 8006a80: 69bb ldr r3, [r7, #24] - 8006a82: 6053 str r3, [r2, #4] - - temp = EXTI_CurrentCPU->EMR1; - 8006a84: 697b ldr r3, [r7, #20] - 8006a86: 685b ldr r3, [r3, #4] - 8006a88: 61bb str r3, [r7, #24] - temp &= ~(iocurrent); - 8006a8a: 693b ldr r3, [r7, #16] - 8006a8c: 43db mvns r3, r3 - 8006a8e: 69ba ldr r2, [r7, #24] - 8006a90: 4013 ands r3, r2 - 8006a92: 61bb str r3, [r7, #24] - if ((GPIO_Init->Mode & EXTI_EVT) != 0x00U) - 8006a94: 683b ldr r3, [r7, #0] - 8006a96: 685b ldr r3, [r3, #4] - 8006a98: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8006a9c: 2b00 cmp r3, #0 - 8006a9e: d003 beq.n 8006aa8 - { - temp |= iocurrent; - 8006aa0: 69ba ldr r2, [r7, #24] - 8006aa2: 693b ldr r3, [r7, #16] - 8006aa4: 4313 orrs r3, r2 - 8006aa6: 61bb str r3, [r7, #24] - } - EXTI_CurrentCPU->EMR1 = temp; - 8006aa8: 697b ldr r3, [r7, #20] - 8006aaa: 69ba ldr r2, [r7, #24] - 8006aac: 605a str r2, [r3, #4] - - /* Clear EXTI line configuration */ - temp = EXTI_CurrentCPU->IMR1; - 8006aae: 697b ldr r3, [r7, #20] - 8006ab0: 681b ldr r3, [r3, #0] - 8006ab2: 61bb str r3, [r7, #24] - temp &= ~(iocurrent); - 8006ab4: 693b ldr r3, [r7, #16] - 8006ab6: 43db mvns r3, r3 - 8006ab8: 69ba ldr r2, [r7, #24] - 8006aba: 4013 ands r3, r2 - 8006abc: 61bb str r3, [r7, #24] - if ((GPIO_Init->Mode & EXTI_IT) != 0x00U) - 8006abe: 683b ldr r3, [r7, #0] - 8006ac0: 685b ldr r3, [r3, #4] - 8006ac2: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 8006ac6: 2b00 cmp r3, #0 - 8006ac8: d003 beq.n 8006ad2 - { - temp |= iocurrent; - 8006aca: 69ba ldr r2, [r7, #24] - 8006acc: 693b ldr r3, [r7, #16] - 8006ace: 4313 orrs r3, r2 - 8006ad0: 61bb str r3, [r7, #24] - } - EXTI_CurrentCPU->IMR1 = temp; - 8006ad2: 697b ldr r3, [r7, #20] - 8006ad4: 69ba ldr r2, [r7, #24] - 8006ad6: 601a str r2, [r3, #0] - } - } - - position++; - 8006ad8: 69fb ldr r3, [r7, #28] - 8006ada: 3301 adds r3, #1 - 8006adc: 61fb str r3, [r7, #28] - while (((GPIO_Init->Pin) >> position) != 0x00U) - 8006ade: 683b ldr r3, [r7, #0] - 8006ae0: 681a ldr r2, [r3, #0] - 8006ae2: 69fb ldr r3, [r7, #28] - 8006ae4: fa22 f303 lsr.w r3, r2, r3 - 8006ae8: 2b00 cmp r3, #0 - 8006aea: f47f ae6b bne.w 80067c4 - } -} - 8006aee: bf00 nop - 8006af0: bf00 nop - 8006af2: 3724 adds r7, #36 ; 0x24 - 8006af4: 46bd mov sp, r7 - 8006af6: f85d 7b04 ldr.w r7, [sp], #4 - 8006afa: 4770 bx lr - 8006afc: 58000400 .word 0x58000400 - -08006b00 : - * @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) -{ - 8006b00: b480 push {r7} - 8006b02: b085 sub sp, #20 - 8006b04: af00 add r7, sp, #0 - 8006b06: 6078 str r0, [r7, #4] - 8006b08: 460b mov r3, r1 - 8006b0a: 807b strh r3, [r7, #2] - GPIO_PinState bitstatus; - - /* Check the parameters */ - assert_param(IS_GPIO_PIN(GPIO_Pin)); - - if ((GPIOx->IDR & GPIO_Pin) != 0x00U) - 8006b0c: 687b ldr r3, [r7, #4] - 8006b0e: 691a ldr r2, [r3, #16] - 8006b10: 887b ldrh r3, [r7, #2] - 8006b12: 4013 ands r3, r2 - 8006b14: 2b00 cmp r3, #0 - 8006b16: d002 beq.n 8006b1e - { - bitstatus = GPIO_PIN_SET; - 8006b18: 2301 movs r3, #1 - 8006b1a: 73fb strb r3, [r7, #15] - 8006b1c: e001 b.n 8006b22 - } - else - { - bitstatus = GPIO_PIN_RESET; - 8006b1e: 2300 movs r3, #0 - 8006b20: 73fb strb r3, [r7, #15] - } - return bitstatus; - 8006b22: 7bfb ldrb r3, [r7, #15] -} - 8006b24: 4618 mov r0, r3 - 8006b26: 3714 adds r7, #20 - 8006b28: 46bd mov sp, r7 - 8006b2a: f85d 7b04 ldr.w r7, [sp], #4 - 8006b2e: 4770 bx lr - -08006b30 : - * @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) -{ - 8006b30: b480 push {r7} - 8006b32: b083 sub sp, #12 - 8006b34: af00 add r7, sp, #0 - 8006b36: 6078 str r0, [r7, #4] - 8006b38: 460b mov r3, r1 - 8006b3a: 807b strh r3, [r7, #2] - 8006b3c: 4613 mov r3, r2 - 8006b3e: 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) - 8006b40: 787b ldrb r3, [r7, #1] - 8006b42: 2b00 cmp r3, #0 - 8006b44: d003 beq.n 8006b4e - { - GPIOx->BSRR = GPIO_Pin; - 8006b46: 887a ldrh r2, [r7, #2] - 8006b48: 687b ldr r3, [r7, #4] - 8006b4a: 619a str r2, [r3, #24] - } - else - { - GPIOx->BSRR = (uint32_t)GPIO_Pin << GPIO_NUMBER; - } -} - 8006b4c: e003 b.n 8006b56 - GPIOx->BSRR = (uint32_t)GPIO_Pin << GPIO_NUMBER; - 8006b4e: 887b ldrh r3, [r7, #2] - 8006b50: 041a lsls r2, r3, #16 - 8006b52: 687b ldr r3, [r7, #4] - 8006b54: 619a str r2, [r3, #24] -} - 8006b56: bf00 nop - 8006b58: 370c adds r7, #12 - 8006b5a: 46bd mov sp, r7 - 8006b5c: f85d 7b04 ldr.w r7, [sp], #4 - 8006b60: 4770 bx lr - -08006b62 : - * @param hmdma: Pointer to a MDMA_HandleTypeDef structure that contains - * the configuration information for the specified MDMA Channel. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_MDMA_Init(MDMA_HandleTypeDef *hmdma) -{ - 8006b62: b580 push {r7, lr} - 8006b64: b084 sub sp, #16 - 8006b66: af00 add r7, sp, #0 - 8006b68: 6078 str r0, [r7, #4] - uint32_t tickstart = HAL_GetTick(); - 8006b6a: f7fb fbfb bl 8002364 - 8006b6e: 60f8 str r0, [r7, #12] - - /* Check the MDMA peripheral handle */ - if(hmdma == NULL) - 8006b70: 687b ldr r3, [r7, #4] - 8006b72: 2b00 cmp r3, #0 - 8006b74: d101 bne.n 8006b7a - { - return HAL_ERROR; - 8006b76: 2301 movs r3, #1 - 8006b78: e03b b.n 8006bf2 - assert_param(IS_MDMA_BLOCK_ADDR_OFFSET(hmdma->Init.SourceBlockAddressOffset)); - assert_param(IS_MDMA_BLOCK_ADDR_OFFSET(hmdma->Init.DestBlockAddressOffset)); - - - /* Allocate lock resource */ - __HAL_UNLOCK(hmdma); - 8006b7a: 687b ldr r3, [r7, #4] - 8006b7c: 2200 movs r2, #0 - 8006b7e: f883 203c strb.w r2, [r3, #60] ; 0x3c - - /* Change MDMA peripheral state */ - hmdma->State = HAL_MDMA_STATE_BUSY; - 8006b82: 687b ldr r3, [r7, #4] - 8006b84: 2202 movs r2, #2 - 8006b86: f883 203d strb.w r2, [r3, #61] ; 0x3d - - /* Disable the MDMA channel */ - __HAL_MDMA_DISABLE(hmdma); - 8006b8a: 687b ldr r3, [r7, #4] - 8006b8c: 681b ldr r3, [r3, #0] - 8006b8e: 68da ldr r2, [r3, #12] - 8006b90: 687b ldr r3, [r7, #4] - 8006b92: 681b ldr r3, [r3, #0] - 8006b94: f022 0201 bic.w r2, r2, #1 - 8006b98: 60da str r2, [r3, #12] - - /* Check if the MDMA channel is effectively disabled */ - while((hmdma->Instance->CCR & MDMA_CCR_EN) != 0U) - 8006b9a: e00f b.n 8006bbc - { - /* Check for the Timeout */ - if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_MDMA_ABORT) - 8006b9c: f7fb fbe2 bl 8002364 - 8006ba0: 4602 mov r2, r0 - 8006ba2: 68fb ldr r3, [r7, #12] - 8006ba4: 1ad3 subs r3, r2, r3 - 8006ba6: 2b05 cmp r3, #5 - 8006ba8: d908 bls.n 8006bbc - { - /* Update error code */ - hmdma->ErrorCode = HAL_MDMA_ERROR_TIMEOUT; - 8006baa: 687b ldr r3, [r7, #4] - 8006bac: 2240 movs r2, #64 ; 0x40 - 8006bae: 669a str r2, [r3, #104] ; 0x68 - - /* Change the MDMA state */ - hmdma->State = HAL_MDMA_STATE_ERROR; - 8006bb0: 687b ldr r3, [r7, #4] - 8006bb2: 2203 movs r2, #3 - 8006bb4: f883 203d strb.w r2, [r3, #61] ; 0x3d - - return HAL_ERROR; - 8006bb8: 2301 movs r3, #1 - 8006bba: e01a b.n 8006bf2 - while((hmdma->Instance->CCR & MDMA_CCR_EN) != 0U) - 8006bbc: 687b ldr r3, [r7, #4] - 8006bbe: 681b ldr r3, [r3, #0] - 8006bc0: 68db ldr r3, [r3, #12] - 8006bc2: f003 0301 and.w r3, r3, #1 - 8006bc6: 2b00 cmp r3, #0 - 8006bc8: d1e8 bne.n 8006b9c - } - } - - /* Initialize the MDMA channel registers */ - MDMA_Init(hmdma); - 8006bca: 6878 ldr r0, [r7, #4] - 8006bcc: f000 f9bc bl 8006f48 - - /* Reset the MDMA first/last linkedlist node addresses and node counter */ - hmdma->FirstLinkedListNodeAddress = 0; - 8006bd0: 687b ldr r3, [r7, #4] - 8006bd2: 2200 movs r2, #0 - 8006bd4: 65da str r2, [r3, #92] ; 0x5c - hmdma->LastLinkedListNodeAddress = 0; - 8006bd6: 687b ldr r3, [r7, #4] - 8006bd8: 2200 movs r2, #0 - 8006bda: 661a str r2, [r3, #96] ; 0x60 - hmdma->LinkedListNodeCounter = 0; - 8006bdc: 687b ldr r3, [r7, #4] - 8006bde: 2200 movs r2, #0 - 8006be0: 665a str r2, [r3, #100] ; 0x64 - - /* Initialize the error code */ - hmdma->ErrorCode = HAL_MDMA_ERROR_NONE; - 8006be2: 687b ldr r3, [r7, #4] - 8006be4: 2200 movs r2, #0 - 8006be6: 669a str r2, [r3, #104] ; 0x68 - - /* Initialize the MDMA state */ - hmdma->State = HAL_MDMA_STATE_READY; - 8006be8: 687b ldr r3, [r7, #4] - 8006bea: 2201 movs r2, #1 - 8006bec: f883 203d strb.w r2, [r3, #61] ; 0x3d - - return HAL_OK; - 8006bf0: 2300 movs r3, #0 -} - 8006bf2: 4618 mov r0, r3 - 8006bf4: 3710 adds r7, #16 - 8006bf6: 46bd mov sp, r7 - 8006bf8: bd80 pop {r7, pc} - -08006bfa : - * @param MaskData: specifies the value to be written to MaskAddress after a request is served. - * MaskAddress and MaskData could be used to automatically clear a peripheral flag when the request is served. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_MDMA_ConfigPostRequestMask(MDMA_HandleTypeDef *hmdma, uint32_t MaskAddress, uint32_t MaskData) -{ - 8006bfa: b480 push {r7} - 8006bfc: b087 sub sp, #28 - 8006bfe: af00 add r7, sp, #0 - 8006c00: 60f8 str r0, [r7, #12] - 8006c02: 60b9 str r1, [r7, #8] - 8006c04: 607a str r2, [r7, #4] - HAL_StatusTypeDef status = HAL_OK; - 8006c06: 2300 movs r3, #0 - 8006c08: 75fb strb r3, [r7, #23] - - /* Check the MDMA peripheral handle */ - if(hmdma == NULL) - 8006c0a: 68fb ldr r3, [r7, #12] - 8006c0c: 2b00 cmp r3, #0 - 8006c0e: d101 bne.n 8006c14 - { - return HAL_ERROR; - 8006c10: 2301 movs r3, #1 - 8006c12: e03e b.n 8006c92 - } - - /* Process locked */ - __HAL_LOCK(hmdma); - 8006c14: 68fb ldr r3, [r7, #12] - 8006c16: f893 303c ldrb.w r3, [r3, #60] ; 0x3c - 8006c1a: 2b01 cmp r3, #1 - 8006c1c: d101 bne.n 8006c22 - 8006c1e: 2302 movs r3, #2 - 8006c20: e037 b.n 8006c92 - 8006c22: 68fb ldr r3, [r7, #12] - 8006c24: 2201 movs r2, #1 - 8006c26: f883 203c strb.w r2, [r3, #60] ; 0x3c - - if(HAL_MDMA_STATE_READY == hmdma->State) - 8006c2a: 68fb ldr r3, [r7, #12] - 8006c2c: f893 303d ldrb.w r3, [r3, #61] ; 0x3d - 8006c30: b2db uxtb r3, r3 - 8006c32: 2b01 cmp r3, #1 - 8006c34: d126 bne.n 8006c84 - { - /* if HW request set Post Request MaskAddress and MaskData, */ - if((hmdma->Instance->CTCR & MDMA_CTCR_SWRM) == 0U) - 8006c36: 68fb ldr r3, [r7, #12] - 8006c38: 681b ldr r3, [r3, #0] - 8006c3a: 691b ldr r3, [r3, #16] - 8006c3c: f003 4380 and.w r3, r3, #1073741824 ; 0x40000000 - 8006c40: 2b00 cmp r3, #0 - 8006c42: d11c bne.n 8006c7e - { - /* Set the HW request clear Mask and Data */ - hmdma->Instance->CMAR = MaskAddress; - 8006c44: 68fb ldr r3, [r7, #12] - 8006c46: 681b ldr r3, [r3, #0] - 8006c48: 68ba ldr r2, [r7, #8] - 8006c4a: 631a str r2, [r3, #48] ; 0x30 - hmdma->Instance->CMDR = MaskData; - 8006c4c: 68fb ldr r3, [r7, #12] - 8006c4e: 681b ldr r3, [r3, #0] - 8006c50: 687a ldr r2, [r7, #4] - 8006c52: 635a str r2, [r3, #52] ; 0x34 - -If the request is done by SW : BWM could be set to 1 or 0. - -If the request is done by a peripheral : - If mask address not set (0) => BWM must be set to 0 - If mask address set (different than 0) => BWM could be set to 1 or 0 - */ - if(MaskAddress == 0U) - 8006c54: 68bb ldr r3, [r7, #8] - 8006c56: 2b00 cmp r3, #0 - 8006c58: d108 bne.n 8006c6c - { - hmdma->Instance->CTCR &= ~MDMA_CTCR_BWM; - 8006c5a: 68fb ldr r3, [r7, #12] - 8006c5c: 681b ldr r3, [r3, #0] - 8006c5e: 691a ldr r2, [r3, #16] - 8006c60: 68fb ldr r3, [r7, #12] - 8006c62: 681b ldr r3, [r3, #0] - 8006c64: f022 4200 bic.w r2, r2, #2147483648 ; 0x80000000 - 8006c68: 611a str r2, [r3, #16] - 8006c6a: e00d b.n 8006c88 - } - else - { - hmdma->Instance->CTCR |= MDMA_CTCR_BWM; - 8006c6c: 68fb ldr r3, [r7, #12] - 8006c6e: 681b ldr r3, [r3, #0] - 8006c70: 691a ldr r2, [r3, #16] - 8006c72: 68fb ldr r3, [r7, #12] - 8006c74: 681b ldr r3, [r3, #0] - 8006c76: f042 4200 orr.w r2, r2, #2147483648 ; 0x80000000 - 8006c7a: 611a str r2, [r3, #16] - 8006c7c: e004 b.n 8006c88 - } - } - else - { - /* Return error status */ - status = HAL_ERROR; - 8006c7e: 2301 movs r3, #1 - 8006c80: 75fb strb r3, [r7, #23] - 8006c82: e001 b.n 8006c88 - } - } - else - { - /* Return error status */ - status = HAL_ERROR; - 8006c84: 2301 movs r3, #1 - 8006c86: 75fb strb r3, [r7, #23] - } - /* Release Lock */ - __HAL_UNLOCK(hmdma); - 8006c88: 68fb ldr r3, [r7, #12] - 8006c8a: 2200 movs r2, #0 - 8006c8c: f883 203c strb.w r2, [r3, #60] ; 0x3c - - return status; - 8006c90: 7dfb ldrb r3, [r7, #23] -} - 8006c92: 4618 mov r0, r3 - 8006c94: 371c adds r7, #28 - 8006c96: 46bd mov sp, r7 - 8006c98: f85d 7b04 ldr.w r7, [sp], #4 - 8006c9c: 4770 bx lr - ... - -08006ca0 : - * @param hmdma: pointer to a MDMA_HandleTypeDef structure that contains - * the configuration information for the specified MDMA Channel. - * @retval None - */ -void HAL_MDMA_IRQHandler(MDMA_HandleTypeDef *hmdma) -{ - 8006ca0: b580 push {r7, lr} - 8006ca2: b086 sub sp, #24 - 8006ca4: af00 add r7, sp, #0 - 8006ca6: 6078 str r0, [r7, #4] - __IO uint32_t count = 0; - 8006ca8: 2300 movs r3, #0 - 8006caa: 60bb str r3, [r7, #8] - uint32_t timeout = SystemCoreClock / 9600U; - 8006cac: 4b91 ldr r3, [pc, #580] ; (8006ef4 ) - 8006cae: 681b ldr r3, [r3, #0] - 8006cb0: 4a91 ldr r2, [pc, #580] ; (8006ef8 ) - 8006cb2: fba2 2303 umull r2, r3, r2, r3 - 8006cb6: 0a9b lsrs r3, r3, #10 - 8006cb8: 617b str r3, [r7, #20] - - uint32_t generalIntFlag, errorFlag; - - /* General Interrupt Flag management ****************************************/ - generalIntFlag = 1UL << ((((uint32_t)hmdma->Instance - (uint32_t)(MDMA_Channel0))/HAL_MDMA_CHANNEL_SIZE) & 0x1FU); - 8006cba: 687b ldr r3, [r7, #4] - 8006cbc: 681b ldr r3, [r3, #0] - 8006cbe: 461a mov r2, r3 - 8006cc0: 4b8e ldr r3, [pc, #568] ; (8006efc ) - 8006cc2: 4413 add r3, r2 - 8006cc4: 099b lsrs r3, r3, #6 - 8006cc6: f003 031f and.w r3, r3, #31 - 8006cca: 2201 movs r2, #1 - 8006ccc: fa02 f303 lsl.w r3, r2, r3 - 8006cd0: 613b str r3, [r7, #16] - if((MDMA->GISR0 & generalIntFlag) == 0U) - 8006cd2: f04f 43a4 mov.w r3, #1375731712 ; 0x52000000 - 8006cd6: 681a ldr r2, [r3, #0] - 8006cd8: 693b ldr r3, [r7, #16] - 8006cda: 4013 ands r3, r2 - 8006cdc: 2b00 cmp r3, #0 - 8006cde: f000 812d beq.w 8006f3c - { - return; /* the General interrupt flag for the current channel is down , nothing to do */ - } - - /* Transfer Error Interrupt management ***************************************/ - if((__HAL_MDMA_GET_FLAG(hmdma, MDMA_FLAG_TE) != 0U)) - 8006ce2: 687b ldr r3, [r7, #4] - 8006ce4: 681b ldr r3, [r3, #0] - 8006ce6: 681b ldr r3, [r3, #0] - 8006ce8: f003 0301 and.w r3, r3, #1 - 8006cec: 2b00 cmp r3, #0 - 8006cee: d054 beq.n 8006d9a - { - if(__HAL_MDMA_GET_IT_SOURCE(hmdma, MDMA_IT_TE) != 0U) - 8006cf0: 687b ldr r3, [r7, #4] - 8006cf2: 681b ldr r3, [r3, #0] - 8006cf4: 68db ldr r3, [r3, #12] - 8006cf6: f003 0302 and.w r3, r3, #2 - 8006cfa: 2b00 cmp r3, #0 - 8006cfc: d04d beq.n 8006d9a - { - /* Disable the transfer error interrupt */ - __HAL_MDMA_DISABLE_IT(hmdma, MDMA_IT_TE); - 8006cfe: 687b ldr r3, [r7, #4] - 8006d00: 681b ldr r3, [r3, #0] - 8006d02: 68da ldr r2, [r3, #12] - 8006d04: 687b ldr r3, [r7, #4] - 8006d06: 681b ldr r3, [r3, #0] - 8006d08: f022 0202 bic.w r2, r2, #2 - 8006d0c: 60da str r2, [r3, #12] - - /* Get the transfer error source flag */ - errorFlag = hmdma->Instance->CESR; - 8006d0e: 687b ldr r3, [r7, #4] - 8006d10: 681b ldr r3, [r3, #0] - 8006d12: 689b ldr r3, [r3, #8] - 8006d14: 60fb str r3, [r7, #12] - - if((errorFlag & MDMA_CESR_TED) == 0U) - 8006d16: 68fb ldr r3, [r7, #12] - 8006d18: f003 0380 and.w r3, r3, #128 ; 0x80 - 8006d1c: 2b00 cmp r3, #0 - 8006d1e: d106 bne.n 8006d2e - { - /* Update error code : Read Transfer error */ - hmdma->ErrorCode |= HAL_MDMA_ERROR_READ_XFER; - 8006d20: 687b ldr r3, [r7, #4] - 8006d22: 6e9b ldr r3, [r3, #104] ; 0x68 - 8006d24: f043 0201 orr.w r2, r3, #1 - 8006d28: 687b ldr r3, [r7, #4] - 8006d2a: 669a str r2, [r3, #104] ; 0x68 - 8006d2c: e005 b.n 8006d3a - } - else - { - /* Update error code : Write Transfer error */ - hmdma->ErrorCode |= HAL_MDMA_ERROR_WRITE_XFER; - 8006d2e: 687b ldr r3, [r7, #4] - 8006d30: 6e9b ldr r3, [r3, #104] ; 0x68 - 8006d32: f043 0202 orr.w r2, r3, #2 - 8006d36: 687b ldr r3, [r7, #4] - 8006d38: 669a str r2, [r3, #104] ; 0x68 - } - - if((errorFlag & MDMA_CESR_TEMD) != 0U) - 8006d3a: 68fb ldr r3, [r7, #12] - 8006d3c: f403 7300 and.w r3, r3, #512 ; 0x200 - 8006d40: 2b00 cmp r3, #0 - 8006d42: d005 beq.n 8006d50 - { - /* Update error code : Error Mask Data */ - hmdma->ErrorCode |= HAL_MDMA_ERROR_MASK_DATA; - 8006d44: 687b ldr r3, [r7, #4] - 8006d46: 6e9b ldr r3, [r3, #104] ; 0x68 - 8006d48: f043 0204 orr.w r2, r3, #4 - 8006d4c: 687b ldr r3, [r7, #4] - 8006d4e: 669a str r2, [r3, #104] ; 0x68 - } - - if((errorFlag & MDMA_CESR_TELD) != 0U) - 8006d50: 68fb ldr r3, [r7, #12] - 8006d52: f403 7380 and.w r3, r3, #256 ; 0x100 - 8006d56: 2b00 cmp r3, #0 - 8006d58: d005 beq.n 8006d66 - { - /* Update error code : Error Linked list */ - hmdma->ErrorCode |= HAL_MDMA_ERROR_LINKED_LIST; - 8006d5a: 687b ldr r3, [r7, #4] - 8006d5c: 6e9b ldr r3, [r3, #104] ; 0x68 - 8006d5e: f043 0208 orr.w r2, r3, #8 - 8006d62: 687b ldr r3, [r7, #4] - 8006d64: 669a str r2, [r3, #104] ; 0x68 - } - - if((errorFlag & MDMA_CESR_ASE) != 0U) - 8006d66: 68fb ldr r3, [r7, #12] - 8006d68: f403 6380 and.w r3, r3, #1024 ; 0x400 - 8006d6c: 2b00 cmp r3, #0 - 8006d6e: d005 beq.n 8006d7c - { - /* Update error code : Address/Size alignment error */ - hmdma->ErrorCode |= HAL_MDMA_ERROR_ALIGNMENT; - 8006d70: 687b ldr r3, [r7, #4] - 8006d72: 6e9b ldr r3, [r3, #104] ; 0x68 - 8006d74: f043 0210 orr.w r2, r3, #16 - 8006d78: 687b ldr r3, [r7, #4] - 8006d7a: 669a str r2, [r3, #104] ; 0x68 - } - - if((errorFlag & MDMA_CESR_BSE) != 0U) - 8006d7c: 68fb ldr r3, [r7, #12] - 8006d7e: f403 6300 and.w r3, r3, #2048 ; 0x800 - 8006d82: 2b00 cmp r3, #0 - 8006d84: d005 beq.n 8006d92 - { - /* Update error code : Block Size error error */ - hmdma->ErrorCode |= HAL_MDMA_ERROR_BLOCK_SIZE; - 8006d86: 687b ldr r3, [r7, #4] - 8006d88: 6e9b ldr r3, [r3, #104] ; 0x68 - 8006d8a: f043 0220 orr.w r2, r3, #32 - 8006d8e: 687b ldr r3, [r7, #4] - 8006d90: 669a str r2, [r3, #104] ; 0x68 - } - - /* Clear the transfer error flags */ - __HAL_MDMA_CLEAR_FLAG(hmdma, MDMA_FLAG_TE); - 8006d92: 687b ldr r3, [r7, #4] - 8006d94: 681b ldr r3, [r3, #0] - 8006d96: 2201 movs r2, #1 - 8006d98: 605a str r2, [r3, #4] - } - } - - /* Buffer Transfer Complete Interrupt management ******************************/ - if((__HAL_MDMA_GET_FLAG(hmdma, MDMA_FLAG_BFTC) != 0U)) - 8006d9a: 687b ldr r3, [r7, #4] - 8006d9c: 681b ldr r3, [r3, #0] - 8006d9e: 681b ldr r3, [r3, #0] - 8006da0: f003 0310 and.w r3, r3, #16 - 8006da4: 2b00 cmp r3, #0 - 8006da6: d012 beq.n 8006dce - { - if(__HAL_MDMA_GET_IT_SOURCE(hmdma, MDMA_IT_BFTC) != 0U) - 8006da8: 687b ldr r3, [r7, #4] - 8006daa: 681b ldr r3, [r3, #0] - 8006dac: 68db ldr r3, [r3, #12] - 8006dae: f003 0320 and.w r3, r3, #32 - 8006db2: 2b00 cmp r3, #0 - 8006db4: d00b beq.n 8006dce - { - /* Clear the buffer transfer complete flag */ - __HAL_MDMA_CLEAR_FLAG(hmdma, MDMA_FLAG_BFTC); - 8006db6: 687b ldr r3, [r7, #4] - 8006db8: 681b ldr r3, [r3, #0] - 8006dba: 2210 movs r2, #16 - 8006dbc: 605a str r2, [r3, #4] - - if(hmdma->XferBufferCpltCallback != NULL) - 8006dbe: 687b ldr r3, [r7, #4] - 8006dc0: 6c9b ldr r3, [r3, #72] ; 0x48 - 8006dc2: 2b00 cmp r3, #0 - 8006dc4: d003 beq.n 8006dce - { - /* Buffer transfer callback */ - hmdma->XferBufferCpltCallback(hmdma); - 8006dc6: 687b ldr r3, [r7, #4] - 8006dc8: 6c9b ldr r3, [r3, #72] ; 0x48 - 8006dca: 6878 ldr r0, [r7, #4] - 8006dcc: 4798 blx r3 - } - } - } - - /* Block Transfer Complete Interrupt management ******************************/ - if((__HAL_MDMA_GET_FLAG(hmdma, MDMA_FLAG_BT) != 0U)) - 8006dce: 687b ldr r3, [r7, #4] - 8006dd0: 681b ldr r3, [r3, #0] - 8006dd2: 681b ldr r3, [r3, #0] - 8006dd4: f003 0308 and.w r3, r3, #8 - 8006dd8: 2b00 cmp r3, #0 - 8006dda: d012 beq.n 8006e02 - { - if(__HAL_MDMA_GET_IT_SOURCE(hmdma, MDMA_IT_BT) != 0U) - 8006ddc: 687b ldr r3, [r7, #4] - 8006dde: 681b ldr r3, [r3, #0] - 8006de0: 68db ldr r3, [r3, #12] - 8006de2: f003 0310 and.w r3, r3, #16 - 8006de6: 2b00 cmp r3, #0 - 8006de8: d00b beq.n 8006e02 - { - /* Clear the block transfer complete flag */ - __HAL_MDMA_CLEAR_FLAG(hmdma, MDMA_FLAG_BT); - 8006dea: 687b ldr r3, [r7, #4] - 8006dec: 681b ldr r3, [r3, #0] - 8006dee: 2208 movs r2, #8 - 8006df0: 605a str r2, [r3, #4] - - if(hmdma->XferBlockCpltCallback != NULL) - 8006df2: 687b ldr r3, [r7, #4] - 8006df4: 6cdb ldr r3, [r3, #76] ; 0x4c - 8006df6: 2b00 cmp r3, #0 - 8006df8: d003 beq.n 8006e02 - { - /* Block transfer callback */ - hmdma->XferBlockCpltCallback(hmdma); - 8006dfa: 687b ldr r3, [r7, #4] - 8006dfc: 6cdb ldr r3, [r3, #76] ; 0x4c - 8006dfe: 6878 ldr r0, [r7, #4] - 8006e00: 4798 blx r3 - } - } - } - - /* Repeated Block Transfer Complete Interrupt management ******************************/ - if((__HAL_MDMA_GET_FLAG(hmdma, MDMA_FLAG_BRT) != 0U)) - 8006e02: 687b ldr r3, [r7, #4] - 8006e04: 681b ldr r3, [r3, #0] - 8006e06: 681b ldr r3, [r3, #0] - 8006e08: f003 0304 and.w r3, r3, #4 - 8006e0c: 2b00 cmp r3, #0 - 8006e0e: d012 beq.n 8006e36 - { - if(__HAL_MDMA_GET_IT_SOURCE(hmdma, MDMA_IT_BRT) != 0U) - 8006e10: 687b ldr r3, [r7, #4] - 8006e12: 681b ldr r3, [r3, #0] - 8006e14: 68db ldr r3, [r3, #12] - 8006e16: f003 0308 and.w r3, r3, #8 - 8006e1a: 2b00 cmp r3, #0 - 8006e1c: d00b beq.n 8006e36 - { - /* Clear the repeat block transfer complete flag */ - __HAL_MDMA_CLEAR_FLAG(hmdma, MDMA_FLAG_BRT); - 8006e1e: 687b ldr r3, [r7, #4] - 8006e20: 681b ldr r3, [r3, #0] - 8006e22: 2204 movs r2, #4 - 8006e24: 605a str r2, [r3, #4] - - if(hmdma->XferRepeatBlockCpltCallback != NULL) - 8006e26: 687b ldr r3, [r7, #4] - 8006e28: 6d1b ldr r3, [r3, #80] ; 0x50 - 8006e2a: 2b00 cmp r3, #0 - 8006e2c: d003 beq.n 8006e36 - { - /* Repeated Block transfer callback */ - hmdma->XferRepeatBlockCpltCallback(hmdma); - 8006e2e: 687b ldr r3, [r7, #4] - 8006e30: 6d1b ldr r3, [r3, #80] ; 0x50 - 8006e32: 6878 ldr r0, [r7, #4] - 8006e34: 4798 blx r3 - } - } - } - - /* Channel Transfer Complete Interrupt management ***********************************/ - if((__HAL_MDMA_GET_FLAG(hmdma, MDMA_FLAG_CTC) != 0U)) - 8006e36: 687b ldr r3, [r7, #4] - 8006e38: 681b ldr r3, [r3, #0] - 8006e3a: 681b ldr r3, [r3, #0] - 8006e3c: f003 0302 and.w r3, r3, #2 - 8006e40: 2b00 cmp r3, #0 - 8006e42: d039 beq.n 8006eb8 - { - if(__HAL_MDMA_GET_IT_SOURCE(hmdma, MDMA_IT_CTC) != 0U) - 8006e44: 687b ldr r3, [r7, #4] - 8006e46: 681b ldr r3, [r3, #0] - 8006e48: 68db ldr r3, [r3, #12] - 8006e4a: f003 0304 and.w r3, r3, #4 - 8006e4e: 2b00 cmp r3, #0 - 8006e50: d032 beq.n 8006eb8 - { - /* Disable all the transfer interrupts */ - __HAL_MDMA_DISABLE_IT(hmdma, (MDMA_IT_TE | MDMA_IT_CTC | MDMA_IT_BT | MDMA_IT_BRT | MDMA_IT_BFTC)); - 8006e52: 687b ldr r3, [r7, #4] - 8006e54: 681b ldr r3, [r3, #0] - 8006e56: 68da ldr r2, [r3, #12] - 8006e58: 687b ldr r3, [r7, #4] - 8006e5a: 681b ldr r3, [r3, #0] - 8006e5c: f022 023e bic.w r2, r2, #62 ; 0x3e - 8006e60: 60da str r2, [r3, #12] - - if(HAL_MDMA_STATE_ABORT == hmdma->State) - 8006e62: 687b ldr r3, [r7, #4] - 8006e64: f893 303d ldrb.w r3, [r3, #61] ; 0x3d - 8006e68: b2db uxtb r3, r3 - 8006e6a: 2b04 cmp r3, #4 - 8006e6c: d110 bne.n 8006e90 - { - /* Process Unlocked */ - __HAL_UNLOCK(hmdma); - 8006e6e: 687b ldr r3, [r7, #4] - 8006e70: 2200 movs r2, #0 - 8006e72: f883 203c strb.w r2, [r3, #60] ; 0x3c - - /* Change the DMA state */ - hmdma->State = HAL_MDMA_STATE_READY; - 8006e76: 687b ldr r3, [r7, #4] - 8006e78: 2201 movs r2, #1 - 8006e7a: f883 203d strb.w r2, [r3, #61] ; 0x3d - - if(hmdma->XferAbortCallback != NULL) - 8006e7e: 687b ldr r3, [r7, #4] - 8006e80: 6d9b ldr r3, [r3, #88] ; 0x58 - 8006e82: 2b00 cmp r3, #0 - 8006e84: d05c beq.n 8006f40 - { - hmdma->XferAbortCallback(hmdma); - 8006e86: 687b ldr r3, [r7, #4] - 8006e88: 6d9b ldr r3, [r3, #88] ; 0x58 - 8006e8a: 6878 ldr r0, [r7, #4] - 8006e8c: 4798 blx r3 - } - return; - 8006e8e: e057 b.n 8006f40 - } - - /* Clear the Channel Transfer Complete flag */ - __HAL_MDMA_CLEAR_FLAG(hmdma, MDMA_FLAG_CTC); - 8006e90: 687b ldr r3, [r7, #4] - 8006e92: 681b ldr r3, [r3, #0] - 8006e94: 2202 movs r2, #2 - 8006e96: 605a str r2, [r3, #4] - - /* Process Unlocked */ - __HAL_UNLOCK(hmdma); - 8006e98: 687b ldr r3, [r7, #4] - 8006e9a: 2200 movs r2, #0 - 8006e9c: f883 203c strb.w r2, [r3, #60] ; 0x3c - - /* Change MDMA peripheral state */ - hmdma->State = HAL_MDMA_STATE_READY; - 8006ea0: 687b ldr r3, [r7, #4] - 8006ea2: 2201 movs r2, #1 - 8006ea4: f883 203d strb.w r2, [r3, #61] ; 0x3d - - if(hmdma->XferCpltCallback != NULL) - 8006ea8: 687b ldr r3, [r7, #4] - 8006eaa: 6c5b ldr r3, [r3, #68] ; 0x44 - 8006eac: 2b00 cmp r3, #0 - 8006eae: d003 beq.n 8006eb8 - { - /* Channel Transfer Complete callback */ - hmdma->XferCpltCallback(hmdma); - 8006eb0: 687b ldr r3, [r7, #4] - 8006eb2: 6c5b ldr r3, [r3, #68] ; 0x44 - 8006eb4: 6878 ldr r0, [r7, #4] - 8006eb6: 4798 blx r3 - } - } - } - - /* manage error case */ - if(hmdma->ErrorCode != HAL_MDMA_ERROR_NONE) - 8006eb8: 687b ldr r3, [r7, #4] - 8006eba: 6e9b ldr r3, [r3, #104] ; 0x68 - 8006ebc: 2b00 cmp r3, #0 - 8006ebe: d040 beq.n 8006f42 - { - hmdma->State = HAL_MDMA_STATE_ABORT; - 8006ec0: 687b ldr r3, [r7, #4] - 8006ec2: 2204 movs r2, #4 - 8006ec4: f883 203d strb.w r2, [r3, #61] ; 0x3d - - /* Disable the channel */ - __HAL_MDMA_DISABLE(hmdma); - 8006ec8: 687b ldr r3, [r7, #4] - 8006eca: 681b ldr r3, [r3, #0] - 8006ecc: 68da ldr r2, [r3, #12] - 8006ece: 687b ldr r3, [r7, #4] - 8006ed0: 681b ldr r3, [r3, #0] - 8006ed2: f022 0201 bic.w r2, r2, #1 - 8006ed6: 60da str r2, [r3, #12] - - do - { - if (++count > timeout) - 8006ed8: 68bb ldr r3, [r7, #8] - 8006eda: 3301 adds r3, #1 - 8006edc: 60bb str r3, [r7, #8] - 8006ede: 697a ldr r2, [r7, #20] - 8006ee0: 429a cmp r2, r3 - 8006ee2: d30d bcc.n 8006f00 - { - break; - } - } - while((hmdma->Instance->CCR & MDMA_CCR_EN) != 0U); - 8006ee4: 687b ldr r3, [r7, #4] - 8006ee6: 681b ldr r3, [r3, #0] - 8006ee8: 68db ldr r3, [r3, #12] - 8006eea: f003 0301 and.w r3, r3, #1 - 8006eee: 2b00 cmp r3, #0 - 8006ef0: d1f2 bne.n 8006ed8 - 8006ef2: e006 b.n 8006f02 - 8006ef4: 24000014 .word 0x24000014 - 8006ef8: 1b4e81b5 .word 0x1b4e81b5 - 8006efc: adffffc0 .word 0xadffffc0 - break; - 8006f00: bf00 nop - - /* Process Unlocked */ - __HAL_UNLOCK(hmdma); - 8006f02: 687b ldr r3, [r7, #4] - 8006f04: 2200 movs r2, #0 - 8006f06: f883 203c strb.w r2, [r3, #60] ; 0x3c - - if((hmdma->Instance->CCR & MDMA_CCR_EN) != 0U) - 8006f0a: 687b ldr r3, [r7, #4] - 8006f0c: 681b ldr r3, [r3, #0] - 8006f0e: 68db ldr r3, [r3, #12] - 8006f10: f003 0301 and.w r3, r3, #1 - 8006f14: 2b00 cmp r3, #0 - 8006f16: d004 beq.n 8006f22 - { - /* Change the MDMA state to error if MDMA disable fails */ - hmdma->State = HAL_MDMA_STATE_ERROR; - 8006f18: 687b ldr r3, [r7, #4] - 8006f1a: 2203 movs r2, #3 - 8006f1c: f883 203d strb.w r2, [r3, #61] ; 0x3d - 8006f20: e003 b.n 8006f2a - } - else - { - /* Change the MDMA state to Ready if MDMA disable success */ - hmdma->State = HAL_MDMA_STATE_READY; - 8006f22: 687b ldr r3, [r7, #4] - 8006f24: 2201 movs r2, #1 - 8006f26: f883 203d strb.w r2, [r3, #61] ; 0x3d - } - - - if (hmdma->XferErrorCallback != NULL) - 8006f2a: 687b ldr r3, [r7, #4] - 8006f2c: 6d5b ldr r3, [r3, #84] ; 0x54 - 8006f2e: 2b00 cmp r3, #0 - 8006f30: d007 beq.n 8006f42 - { - /* Transfer error callback */ - hmdma->XferErrorCallback(hmdma); - 8006f32: 687b ldr r3, [r7, #4] - 8006f34: 6d5b ldr r3, [r3, #84] ; 0x54 - 8006f36: 6878 ldr r0, [r7, #4] - 8006f38: 4798 blx r3 - 8006f3a: e002 b.n 8006f42 - return; /* the General interrupt flag for the current channel is down , nothing to do */ - 8006f3c: bf00 nop - 8006f3e: e000 b.n 8006f42 - return; - 8006f40: bf00 nop - } - } -} - 8006f42: 3718 adds r7, #24 - 8006f44: 46bd mov sp, r7 - 8006f46: bd80 pop {r7, pc} - -08006f48 : - * @param hmdma: pointer to a MDMA_HandleTypeDef structure that contains - * the configuration information for the specified MDMA Channel. - * @retval None - */ -static void MDMA_Init(MDMA_HandleTypeDef *hmdma) -{ - 8006f48: b480 push {r7} - 8006f4a: b085 sub sp, #20 - 8006f4c: af00 add r7, sp, #0 - 8006f4e: 6078 str r0, [r7, #4] - uint32_t blockoffset; - - /* Prepare the MDMA Channel configuration */ - hmdma->Instance->CCR = hmdma->Init.Priority | hmdma->Init.Endianness; - 8006f50: 687b ldr r3, [r7, #4] - 8006f52: 68d9 ldr r1, [r3, #12] - 8006f54: 687b ldr r3, [r7, #4] - 8006f56: 691a ldr r2, [r3, #16] - 8006f58: 687b ldr r3, [r7, #4] - 8006f5a: 681b ldr r3, [r3, #0] - 8006f5c: 430a orrs r2, r1 - 8006f5e: 60da str r2, [r3, #12] - - /* Write new CTCR Register value */ - hmdma->Instance->CTCR = hmdma->Init.SourceInc | hmdma->Init.DestinationInc | \ - 8006f60: 687b ldr r3, [r7, #4] - 8006f62: 695a ldr r2, [r3, #20] - 8006f64: 687b ldr r3, [r7, #4] - 8006f66: 699b ldr r3, [r3, #24] - 8006f68: 431a orrs r2, r3 - hmdma->Init.SourceDataSize | hmdma->Init.DestDataSize | \ - 8006f6a: 687b ldr r3, [r7, #4] - 8006f6c: 69db ldr r3, [r3, #28] - hmdma->Instance->CTCR = hmdma->Init.SourceInc | hmdma->Init.DestinationInc | \ - 8006f6e: 431a orrs r2, r3 - hmdma->Init.SourceDataSize | hmdma->Init.DestDataSize | \ - 8006f70: 687b ldr r3, [r7, #4] - 8006f72: 6a1b ldr r3, [r3, #32] - 8006f74: 431a orrs r2, r3 - hmdma->Init.DataAlignment | hmdma->Init.SourceBurst | \ - 8006f76: 687b ldr r3, [r7, #4] - 8006f78: 6a5b ldr r3, [r3, #36] ; 0x24 - hmdma->Init.SourceDataSize | hmdma->Init.DestDataSize | \ - 8006f7a: 431a orrs r2, r3 - hmdma->Init.DataAlignment | hmdma->Init.SourceBurst | \ - 8006f7c: 687b ldr r3, [r7, #4] - 8006f7e: 6adb ldr r3, [r3, #44] ; 0x2c - 8006f80: 431a orrs r2, r3 - hmdma->Init.DestBurst | \ - 8006f82: 687b ldr r3, [r7, #4] - 8006f84: 6b1b ldr r3, [r3, #48] ; 0x30 - hmdma->Init.DataAlignment | hmdma->Init.SourceBurst | \ - 8006f86: 431a orrs r2, r3 - ((hmdma->Init.BufferTransferLength - 1U) << MDMA_CTCR_TLEN_Pos) | \ - 8006f88: 687b ldr r3, [r7, #4] - 8006f8a: 6a9b ldr r3, [r3, #40] ; 0x28 - 8006f8c: 3b01 subs r3, #1 - 8006f8e: 049b lsls r3, r3, #18 - hmdma->Init.DestBurst | \ - 8006f90: ea42 0103 orr.w r1, r2, r3 - hmdma->Init.TransferTriggerMode; - 8006f94: 687b ldr r3, [r7, #4] - 8006f96: 689a ldr r2, [r3, #8] - hmdma->Instance->CTCR = hmdma->Init.SourceInc | hmdma->Init.DestinationInc | \ - 8006f98: 687b ldr r3, [r7, #4] - 8006f9a: 681b ldr r3, [r3, #0] - ((hmdma->Init.BufferTransferLength - 1U) << MDMA_CTCR_TLEN_Pos) | \ - 8006f9c: 430a orrs r2, r1 - hmdma->Instance->CTCR = hmdma->Init.SourceInc | hmdma->Init.DestinationInc | \ - 8006f9e: 611a str r2, [r3, #16] - - /* If SW request set the CTCR register to SW Request Mode */ - if(hmdma->Init.Request == MDMA_REQUEST_SW) - 8006fa0: 687b ldr r3, [r7, #4] - 8006fa2: 685b ldr r3, [r3, #4] - 8006fa4: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 - 8006fa8: d107 bne.n 8006fba - -If the request is done by SW : BWM could be set to 1 or 0. - -If the request is done by a peripheral : - If mask address not set (0) => BWM must be set to 0 - If mask address set (different than 0) => BWM could be set to 1 or 0 - */ - hmdma->Instance->CTCR |= (MDMA_CTCR_SWRM | MDMA_CTCR_BWM); - 8006faa: 687b ldr r3, [r7, #4] - 8006fac: 681b ldr r3, [r3, #0] - 8006fae: 691a ldr r2, [r3, #16] - 8006fb0: 687b ldr r3, [r7, #4] - 8006fb2: 681b ldr r3, [r3, #0] - 8006fb4: f042 4240 orr.w r2, r2, #3221225472 ; 0xc0000000 - 8006fb8: 611a str r2, [r3, #16] - } - - /* Reset CBNDTR Register */ - hmdma->Instance->CBNDTR = 0; - 8006fba: 687b ldr r3, [r7, #4] - 8006fbc: 681b ldr r3, [r3, #0] - 8006fbe: 2200 movs r2, #0 - 8006fc0: 615a str r2, [r3, #20] - - /* if block source address offset is negative set the Block Repeat Source address Update Mode to decrement */ - if(hmdma->Init.SourceBlockAddressOffset < 0) - 8006fc2: 687b ldr r3, [r7, #4] - 8006fc4: 6b5b ldr r3, [r3, #52] ; 0x34 - 8006fc6: 2b00 cmp r3, #0 - 8006fc8: da11 bge.n 8006fee - { - hmdma->Instance->CBNDTR |= MDMA_CBNDTR_BRSUM; - 8006fca: 687b ldr r3, [r7, #4] - 8006fcc: 681b ldr r3, [r3, #0] - 8006fce: 695a ldr r2, [r3, #20] - 8006fd0: 687b ldr r3, [r7, #4] - 8006fd2: 681b ldr r3, [r3, #0] - 8006fd4: f442 2280 orr.w r2, r2, #262144 ; 0x40000 - 8006fd8: 615a str r2, [r3, #20] - /* Write new CBRUR Register value : source repeat block offset */ - blockoffset = (uint32_t)(- hmdma->Init.SourceBlockAddressOffset); - 8006fda: 687b ldr r3, [r7, #4] - 8006fdc: 6b5b ldr r3, [r3, #52] ; 0x34 - 8006fde: 425b negs r3, r3 - 8006fe0: 60fb str r3, [r7, #12] - hmdma->Instance->CBRUR = (blockoffset & 0x0000FFFFU); - 8006fe2: 687b ldr r3, [r7, #4] - 8006fe4: 681b ldr r3, [r3, #0] - 8006fe6: 68fa ldr r2, [r7, #12] - 8006fe8: b292 uxth r2, r2 - 8006fea: 621a str r2, [r3, #32] - 8006fec: e006 b.n 8006ffc - } - else - { - /* Write new CBRUR Register value : source repeat block offset */ - hmdma->Instance->CBRUR = (((uint32_t)hmdma->Init.SourceBlockAddressOffset) & 0x0000FFFFU); - 8006fee: 687b ldr r3, [r7, #4] - 8006ff0: 6b5b ldr r3, [r3, #52] ; 0x34 - 8006ff2: 461a mov r2, r3 - 8006ff4: 687b ldr r3, [r7, #4] - 8006ff6: 681b ldr r3, [r3, #0] - 8006ff8: b292 uxth r2, r2 - 8006ffa: 621a str r2, [r3, #32] - } - - /* If block destination address offset is negative set the Block Repeat destination address Update Mode to decrement */ - if(hmdma->Init.DestBlockAddressOffset < 0) - 8006ffc: 687b ldr r3, [r7, #4] - 8006ffe: 6b9b ldr r3, [r3, #56] ; 0x38 - 8007000: 2b00 cmp r3, #0 - 8007002: da15 bge.n 8007030 - { - hmdma->Instance->CBNDTR |= MDMA_CBNDTR_BRDUM; - 8007004: 687b ldr r3, [r7, #4] - 8007006: 681b ldr r3, [r3, #0] - 8007008: 695a ldr r2, [r3, #20] - 800700a: 687b ldr r3, [r7, #4] - 800700c: 681b ldr r3, [r3, #0] - 800700e: f442 2200 orr.w r2, r2, #524288 ; 0x80000 - 8007012: 615a str r2, [r3, #20] - /* Write new CBRUR Register value : destination repeat block offset */ - blockoffset = (uint32_t)(- hmdma->Init.DestBlockAddressOffset); - 8007014: 687b ldr r3, [r7, #4] - 8007016: 6b9b ldr r3, [r3, #56] ; 0x38 - 8007018: 425b negs r3, r3 - 800701a: 60fb str r3, [r7, #12] - hmdma->Instance->CBRUR |= ((blockoffset & 0x0000FFFFU) << MDMA_CBRUR_DUV_Pos); - 800701c: 687b ldr r3, [r7, #4] - 800701e: 681b ldr r3, [r3, #0] - 8007020: 6a19 ldr r1, [r3, #32] - 8007022: 68fb ldr r3, [r7, #12] - 8007024: 041a lsls r2, r3, #16 - 8007026: 687b ldr r3, [r7, #4] - 8007028: 681b ldr r3, [r3, #0] - 800702a: 430a orrs r2, r1 - 800702c: 621a str r2, [r3, #32] - 800702e: e009 b.n 8007044 - } - else - { - /*write new CBRUR Register value : destination repeat block offset */ - hmdma->Instance->CBRUR |= ((((uint32_t)hmdma->Init.DestBlockAddressOffset) & 0x0000FFFFU) << MDMA_CBRUR_DUV_Pos); - 8007030: 687b ldr r3, [r7, #4] - 8007032: 681b ldr r3, [r3, #0] - 8007034: 6a19 ldr r1, [r3, #32] - 8007036: 687b ldr r3, [r7, #4] - 8007038: 6b9b ldr r3, [r3, #56] ; 0x38 - 800703a: 041a lsls r2, r3, #16 - 800703c: 687b ldr r3, [r7, #4] - 800703e: 681b ldr r3, [r3, #0] - 8007040: 430a orrs r2, r1 - 8007042: 621a str r2, [r3, #32] - } - - /* if HW request set the HW request and the requet CleraMask and ClearData MaskData, */ - if(hmdma->Init.Request != MDMA_REQUEST_SW) - 8007044: 687b ldr r3, [r7, #4] - 8007046: 685b ldr r3, [r3, #4] - 8007048: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 - 800704c: d006 beq.n 800705c - { - /* Set the HW request in CTRB register */ - hmdma->Instance->CTBR = hmdma->Init.Request & MDMA_CTBR_TSEL; - 800704e: 687b ldr r3, [r7, #4] - 8007050: 685a ldr r2, [r3, #4] - 8007052: 687b ldr r3, [r7, #4] - 8007054: 681b ldr r3, [r3, #0] - 8007056: b2d2 uxtb r2, r2 - 8007058: 629a str r2, [r3, #40] ; 0x28 - 800705a: e003 b.n 8007064 - } - else /* SW request : reset the CTBR register */ - { - hmdma->Instance->CTBR = 0; - 800705c: 687b ldr r3, [r7, #4] - 800705e: 681b ldr r3, [r3, #0] - 8007060: 2200 movs r2, #0 - 8007062: 629a str r2, [r3, #40] ; 0x28 - } - - /* Write Link Address Register */ - hmdma->Instance->CLAR = 0; - 8007064: 687b ldr r3, [r7, #4] - 8007066: 681b ldr r3, [r3, #0] - 8007068: 2200 movs r2, #0 - 800706a: 625a str r2, [r3, #36] ; 0x24 -} - 800706c: bf00 nop - 800706e: 3714 adds r7, #20 - 8007070: 46bd mov sp, r7 - 8007072: f85d 7b04 ldr.w r7, [sp], #4 - 8007076: 4770 bx lr - -08007078 : - * PWR_SMPS_2V5_SUPPLIES_EXT are used only for lines that supports SMPS - * regulator. - * @retval HAL status. - */ -HAL_StatusTypeDef HAL_PWREx_ConfigSupply (uint32_t SupplySource) -{ - 8007078: b580 push {r7, lr} - 800707a: b084 sub sp, #16 - 800707c: af00 add r7, sp, #0 - 800707e: 6078 str r0, [r7, #4] - /* Check the parameters */ - assert_param (IS_PWR_SUPPLY (SupplySource)); - - /* Check if supply source was configured */ -#if defined (PWR_FLAG_SCUEN) - if (__HAL_PWR_GET_FLAG (PWR_FLAG_SCUEN) == 0U) - 8007080: 4b19 ldr r3, [pc, #100] ; (80070e8 ) - 8007082: 68db ldr r3, [r3, #12] - 8007084: f003 0304 and.w r3, r3, #4 - 8007088: 2b04 cmp r3, #4 - 800708a: d00a beq.n 80070a2 -#else - if ((PWR->CR3 & (PWR_CR3_SMPSEN | PWR_CR3_LDOEN | PWR_CR3_BYPASS)) != (PWR_CR3_SMPSEN | PWR_CR3_LDOEN)) -#endif /* defined (PWR_FLAG_SCUEN) */ - { - /* Check supply configuration */ - if ((PWR->CR3 & PWR_SUPPLY_CONFIG_MASK) != SupplySource) - 800708c: 4b16 ldr r3, [pc, #88] ; (80070e8 ) - 800708e: 68db ldr r3, [r3, #12] - 8007090: f003 0307 and.w r3, r3, #7 - 8007094: 687a ldr r2, [r7, #4] - 8007096: 429a cmp r2, r3 - 8007098: d001 beq.n 800709e - { - /* Supply configuration update locked, can't apply a new supply config */ - return HAL_ERROR; - 800709a: 2301 movs r3, #1 - 800709c: e01f b.n 80070de - else - { - /* Supply configuration update locked, but new supply configuration - matches with old supply configuration : nothing to do - */ - return HAL_OK; - 800709e: 2300 movs r3, #0 - 80070a0: e01d b.n 80070de - } - } - - /* Set the power supply configuration */ - MODIFY_REG (PWR->CR3, PWR_SUPPLY_CONFIG_MASK, SupplySource); - 80070a2: 4b11 ldr r3, [pc, #68] ; (80070e8 ) - 80070a4: 68db ldr r3, [r3, #12] - 80070a6: f023 0207 bic.w r2, r3, #7 - 80070aa: 490f ldr r1, [pc, #60] ; (80070e8 ) - 80070ac: 687b ldr r3, [r7, #4] - 80070ae: 4313 orrs r3, r2 - 80070b0: 60cb str r3, [r1, #12] - - /* Get tick */ - tickstart = HAL_GetTick (); - 80070b2: f7fb f957 bl 8002364 - 80070b6: 60f8 str r0, [r7, #12] - - /* Wait till voltage level flag is set */ - while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U) - 80070b8: e009 b.n 80070ce - { - if ((HAL_GetTick () - tickstart) > PWR_FLAG_SETTING_DELAY) - 80070ba: f7fb f953 bl 8002364 - 80070be: 4602 mov r2, r0 - 80070c0: 68fb ldr r3, [r7, #12] - 80070c2: 1ad3 subs r3, r2, r3 - 80070c4: f5b3 7f7a cmp.w r3, #1000 ; 0x3e8 - 80070c8: d901 bls.n 80070ce - { - return HAL_ERROR; - 80070ca: 2301 movs r3, #1 - 80070cc: e007 b.n 80070de - while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U) - 80070ce: 4b06 ldr r3, [pc, #24] ; (80070e8 ) - 80070d0: 685b ldr r3, [r3, #4] - 80070d2: f403 5300 and.w r3, r3, #8192 ; 0x2000 - 80070d6: f5b3 5f00 cmp.w r3, #8192 ; 0x2000 - 80070da: d1ee bne.n 80070ba - } - } - } -#endif /* defined (SMPS) */ - - return HAL_OK; - 80070dc: 2300 movs r3, #0 -} - 80070de: 4618 mov r0, r3 - 80070e0: 3710 adds r7, #16 - 80070e2: 46bd mov sp, r7 - 80070e4: bd80 pop {r7, pc} - 80070e6: bf00 nop - 80070e8: 58024800 .word 0x58024800 - -080070ec : - * supported by this function. User should request a transition to HSE Off - * first and then HSE On or HSE Bypass. - * @retval HAL status - */ -__weak HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) -{ - 80070ec: b580 push {r7, lr} - 80070ee: b08c sub sp, #48 ; 0x30 - 80070f0: af00 add r7, sp, #0 - 80070f2: 6078 str r0, [r7, #4] - uint32_t tickstart; - uint32_t temp1_pllckcfg, temp2_pllckcfg; - - /* Check Null pointer */ - if (RCC_OscInitStruct == NULL) - 80070f4: 687b ldr r3, [r7, #4] - 80070f6: 2b00 cmp r3, #0 - 80070f8: d101 bne.n 80070fe - { - return HAL_ERROR; - 80070fa: 2301 movs r3, #1 - 80070fc: e3c8 b.n 8007890 - } - - /* Check the parameters */ - assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); - /*------------------------------- HSE Configuration ------------------------*/ - if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) - 80070fe: 687b ldr r3, [r7, #4] - 8007100: 681b ldr r3, [r3, #0] - 8007102: f003 0301 and.w r3, r3, #1 - 8007106: 2b00 cmp r3, #0 - 8007108: f000 8087 beq.w 800721a - { - /* Check the parameters */ - assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); - - const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE(); - 800710c: 4b88 ldr r3, [pc, #544] ; (8007330 ) - 800710e: 691b ldr r3, [r3, #16] - 8007110: f003 0338 and.w r3, r3, #56 ; 0x38 - 8007114: 62fb str r3, [r7, #44] ; 0x2c - const uint32_t temp_pllckselr = RCC->PLLCKSELR; - 8007116: 4b86 ldr r3, [pc, #536] ; (8007330 ) - 8007118: 6a9b ldr r3, [r3, #40] ; 0x28 - 800711a: 62bb str r3, [r7, #40] ; 0x28 - /* When the HSE is used as system clock or clock source for PLL in these cases HSE will not disabled */ - if ((temp_sysclksrc == RCC_CFGR_SWS_HSE) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_HSE))) - 800711c: 6afb ldr r3, [r7, #44] ; 0x2c - 800711e: 2b10 cmp r3, #16 - 8007120: d007 beq.n 8007132 - 8007122: 6afb ldr r3, [r7, #44] ; 0x2c - 8007124: 2b18 cmp r3, #24 - 8007126: d110 bne.n 800714a - 8007128: 6abb ldr r3, [r7, #40] ; 0x28 - 800712a: f003 0303 and.w r3, r3, #3 - 800712e: 2b02 cmp r3, #2 - 8007130: d10b bne.n 800714a - { - if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 8007132: 4b7f ldr r3, [pc, #508] ; (8007330 ) - 8007134: 681b ldr r3, [r3, #0] - 8007136: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 800713a: 2b00 cmp r3, #0 - 800713c: d06c beq.n 8007218 - 800713e: 687b ldr r3, [r7, #4] - 8007140: 685b ldr r3, [r3, #4] - 8007142: 2b00 cmp r3, #0 - 8007144: d168 bne.n 8007218 - { - return HAL_ERROR; - 8007146: 2301 movs r3, #1 - 8007148: e3a2 b.n 8007890 - } - } - else - { - /* Set the new HSE configuration ---------------------------------------*/ - __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); - 800714a: 687b ldr r3, [r7, #4] - 800714c: 685b ldr r3, [r3, #4] - 800714e: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8007152: d106 bne.n 8007162 - 8007154: 4b76 ldr r3, [pc, #472] ; (8007330 ) - 8007156: 681b ldr r3, [r3, #0] - 8007158: 4a75 ldr r2, [pc, #468] ; (8007330 ) - 800715a: f443 3380 orr.w r3, r3, #65536 ; 0x10000 - 800715e: 6013 str r3, [r2, #0] - 8007160: e02e b.n 80071c0 - 8007162: 687b ldr r3, [r7, #4] - 8007164: 685b ldr r3, [r3, #4] - 8007166: 2b00 cmp r3, #0 - 8007168: d10c bne.n 8007184 - 800716a: 4b71 ldr r3, [pc, #452] ; (8007330 ) - 800716c: 681b ldr r3, [r3, #0] - 800716e: 4a70 ldr r2, [pc, #448] ; (8007330 ) - 8007170: f423 3380 bic.w r3, r3, #65536 ; 0x10000 - 8007174: 6013 str r3, [r2, #0] - 8007176: 4b6e ldr r3, [pc, #440] ; (8007330 ) - 8007178: 681b ldr r3, [r3, #0] - 800717a: 4a6d ldr r2, [pc, #436] ; (8007330 ) - 800717c: f423 2380 bic.w r3, r3, #262144 ; 0x40000 - 8007180: 6013 str r3, [r2, #0] - 8007182: e01d b.n 80071c0 - 8007184: 687b ldr r3, [r7, #4] - 8007186: 685b ldr r3, [r3, #4] - 8007188: f5b3 2fa0 cmp.w r3, #327680 ; 0x50000 - 800718c: d10c bne.n 80071a8 - 800718e: 4b68 ldr r3, [pc, #416] ; (8007330 ) - 8007190: 681b ldr r3, [r3, #0] - 8007192: 4a67 ldr r2, [pc, #412] ; (8007330 ) - 8007194: f443 2380 orr.w r3, r3, #262144 ; 0x40000 - 8007198: 6013 str r3, [r2, #0] - 800719a: 4b65 ldr r3, [pc, #404] ; (8007330 ) - 800719c: 681b ldr r3, [r3, #0] - 800719e: 4a64 ldr r2, [pc, #400] ; (8007330 ) - 80071a0: f443 3380 orr.w r3, r3, #65536 ; 0x10000 - 80071a4: 6013 str r3, [r2, #0] - 80071a6: e00b b.n 80071c0 - 80071a8: 4b61 ldr r3, [pc, #388] ; (8007330 ) - 80071aa: 681b ldr r3, [r3, #0] - 80071ac: 4a60 ldr r2, [pc, #384] ; (8007330 ) - 80071ae: f423 3380 bic.w r3, r3, #65536 ; 0x10000 - 80071b2: 6013 str r3, [r2, #0] - 80071b4: 4b5e ldr r3, [pc, #376] ; (8007330 ) - 80071b6: 681b ldr r3, [r3, #0] - 80071b8: 4a5d ldr r2, [pc, #372] ; (8007330 ) - 80071ba: f423 2380 bic.w r3, r3, #262144 ; 0x40000 - 80071be: 6013 str r3, [r2, #0] - - /* Check the HSE State */ - if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF) - 80071c0: 687b ldr r3, [r7, #4] - 80071c2: 685b ldr r3, [r3, #4] - 80071c4: 2b00 cmp r3, #0 - 80071c6: d013 beq.n 80071f0 - { - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 80071c8: f7fb f8cc bl 8002364 - 80071cc: 6278 str r0, [r7, #36] ; 0x24 - - /* Wait till HSE is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U) - 80071ce: e008 b.n 80071e2 - { - if ((uint32_t)(HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) - 80071d0: f7fb f8c8 bl 8002364 - 80071d4: 4602 mov r2, r0 - 80071d6: 6a7b ldr r3, [r7, #36] ; 0x24 - 80071d8: 1ad3 subs r3, r2, r3 - 80071da: 2b64 cmp r3, #100 ; 0x64 - 80071dc: d901 bls.n 80071e2 - { - return HAL_TIMEOUT; - 80071de: 2303 movs r3, #3 - 80071e0: e356 b.n 8007890 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U) - 80071e2: 4b53 ldr r3, [pc, #332] ; (8007330 ) - 80071e4: 681b ldr r3, [r3, #0] - 80071e6: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 80071ea: 2b00 cmp r3, #0 - 80071ec: d0f0 beq.n 80071d0 - 80071ee: e014 b.n 800721a - } - } - else - { - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 80071f0: f7fb f8b8 bl 8002364 - 80071f4: 6278 str r0, [r7, #36] ; 0x24 - - /* Wait till HSE is disabled */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) - 80071f6: e008 b.n 800720a - { - if ((uint32_t)(HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) - 80071f8: f7fb f8b4 bl 8002364 - 80071fc: 4602 mov r2, r0 - 80071fe: 6a7b ldr r3, [r7, #36] ; 0x24 - 8007200: 1ad3 subs r3, r2, r3 - 8007202: 2b64 cmp r3, #100 ; 0x64 - 8007204: d901 bls.n 800720a - { - return HAL_TIMEOUT; - 8007206: 2303 movs r3, #3 - 8007208: e342 b.n 8007890 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) - 800720a: 4b49 ldr r3, [pc, #292] ; (8007330 ) - 800720c: 681b ldr r3, [r3, #0] - 800720e: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8007212: 2b00 cmp r3, #0 - 8007214: d1f0 bne.n 80071f8 - 8007216: e000 b.n 800721a - if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 8007218: bf00 nop - } - } - } - } - /*----------------------------- HSI Configuration --------------------------*/ - if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) - 800721a: 687b ldr r3, [r7, #4] - 800721c: 681b ldr r3, [r3, #0] - 800721e: f003 0302 and.w r3, r3, #2 - 8007222: 2b00 cmp r3, #0 - 8007224: f000 808c beq.w 8007340 - /* Check the parameters */ - assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState)); - assert_param(IS_RCC_HSICALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue)); - - /* When the HSI is used as system clock it will not be disabled */ - const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE(); - 8007228: 4b41 ldr r3, [pc, #260] ; (8007330 ) - 800722a: 691b ldr r3, [r3, #16] - 800722c: f003 0338 and.w r3, r3, #56 ; 0x38 - 8007230: 623b str r3, [r7, #32] - const uint32_t temp_pllckselr = RCC->PLLCKSELR; - 8007232: 4b3f ldr r3, [pc, #252] ; (8007330 ) - 8007234: 6a9b ldr r3, [r3, #40] ; 0x28 - 8007236: 61fb str r3, [r7, #28] - if ((temp_sysclksrc == RCC_CFGR_SWS_HSI) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_HSI))) - 8007238: 6a3b ldr r3, [r7, #32] - 800723a: 2b00 cmp r3, #0 - 800723c: d007 beq.n 800724e - 800723e: 6a3b ldr r3, [r7, #32] - 8007240: 2b18 cmp r3, #24 - 8007242: d137 bne.n 80072b4 - 8007244: 69fb ldr r3, [r7, #28] - 8007246: f003 0303 and.w r3, r3, #3 - 800724a: 2b00 cmp r3, #0 - 800724c: d132 bne.n 80072b4 - { - /* When HSI is used as system clock it will not be disabled */ - if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF)) - 800724e: 4b38 ldr r3, [pc, #224] ; (8007330 ) - 8007250: 681b ldr r3, [r3, #0] - 8007252: f003 0304 and.w r3, r3, #4 - 8007256: 2b00 cmp r3, #0 - 8007258: d005 beq.n 8007266 - 800725a: 687b ldr r3, [r7, #4] - 800725c: 68db ldr r3, [r3, #12] - 800725e: 2b00 cmp r3, #0 - 8007260: d101 bne.n 8007266 - { - return HAL_ERROR; - 8007262: 2301 movs r3, #1 - 8007264: e314 b.n 8007890 - } - /* Otherwise, only HSI division and calibration are allowed */ - else - { - /* Enable the Internal High Speed oscillator (HSI, HSIDIV2, HSIDIV4, or HSIDIV8) */ - __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIState); - 8007266: 4b32 ldr r3, [pc, #200] ; (8007330 ) - 8007268: 681b ldr r3, [r3, #0] - 800726a: f023 0219 bic.w r2, r3, #25 - 800726e: 687b ldr r3, [r7, #4] - 8007270: 68db ldr r3, [r3, #12] - 8007272: 492f ldr r1, [pc, #188] ; (8007330 ) - 8007274: 4313 orrs r3, r2 - 8007276: 600b str r3, [r1, #0] - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 8007278: f7fb f874 bl 8002364 - 800727c: 6278 str r0, [r7, #36] ; 0x24 - - /* Wait till HSI is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U) - 800727e: e008 b.n 8007292 - { - if ((uint32_t)(HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) - 8007280: f7fb f870 bl 8002364 - 8007284: 4602 mov r2, r0 - 8007286: 6a7b ldr r3, [r7, #36] ; 0x24 - 8007288: 1ad3 subs r3, r2, r3 - 800728a: 2b02 cmp r3, #2 - 800728c: d901 bls.n 8007292 - { - return HAL_TIMEOUT; - 800728e: 2303 movs r3, #3 - 8007290: e2fe b.n 8007890 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U) - 8007292: 4b27 ldr r3, [pc, #156] ; (8007330 ) - 8007294: 681b ldr r3, [r3, #0] - 8007296: f003 0304 and.w r3, r3, #4 - 800729a: 2b00 cmp r3, #0 - 800729c: d0f0 beq.n 8007280 - } - } - /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ - __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 800729e: 4b24 ldr r3, [pc, #144] ; (8007330 ) - 80072a0: 685b ldr r3, [r3, #4] - 80072a2: f023 42fe bic.w r2, r3, #2130706432 ; 0x7f000000 - 80072a6: 687b ldr r3, [r7, #4] - 80072a8: 691b ldr r3, [r3, #16] - 80072aa: 061b lsls r3, r3, #24 - 80072ac: 4920 ldr r1, [pc, #128] ; (8007330 ) - 80072ae: 4313 orrs r3, r2 - 80072b0: 604b str r3, [r1, #4] - if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF)) - 80072b2: e045 b.n 8007340 - } - - else - { - /* Check the HSI State */ - if ((RCC_OscInitStruct->HSIState) != RCC_HSI_OFF) - 80072b4: 687b ldr r3, [r7, #4] - 80072b6: 68db ldr r3, [r3, #12] - 80072b8: 2b00 cmp r3, #0 - 80072ba: d026 beq.n 800730a - { - /* Enable the Internal High Speed oscillator (HSI, HSIDIV2,HSIDIV4, or HSIDIV8) */ - __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIState); - 80072bc: 4b1c ldr r3, [pc, #112] ; (8007330 ) - 80072be: 681b ldr r3, [r3, #0] - 80072c0: f023 0219 bic.w r2, r3, #25 - 80072c4: 687b ldr r3, [r7, #4] - 80072c6: 68db ldr r3, [r3, #12] - 80072c8: 4919 ldr r1, [pc, #100] ; (8007330 ) - 80072ca: 4313 orrs r3, r2 - 80072cc: 600b str r3, [r1, #0] - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 80072ce: f7fb f849 bl 8002364 - 80072d2: 6278 str r0, [r7, #36] ; 0x24 - - /* Wait till HSI is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U) - 80072d4: e008 b.n 80072e8 - { - if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) - 80072d6: f7fb f845 bl 8002364 - 80072da: 4602 mov r2, r0 - 80072dc: 6a7b ldr r3, [r7, #36] ; 0x24 - 80072de: 1ad3 subs r3, r2, r3 - 80072e0: 2b02 cmp r3, #2 - 80072e2: d901 bls.n 80072e8 - { - return HAL_TIMEOUT; - 80072e4: 2303 movs r3, #3 - 80072e6: e2d3 b.n 8007890 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U) - 80072e8: 4b11 ldr r3, [pc, #68] ; (8007330 ) - 80072ea: 681b ldr r3, [r3, #0] - 80072ec: f003 0304 and.w r3, r3, #4 - 80072f0: 2b00 cmp r3, #0 - 80072f2: d0f0 beq.n 80072d6 - } - } - - /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ - __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 80072f4: 4b0e ldr r3, [pc, #56] ; (8007330 ) - 80072f6: 685b ldr r3, [r3, #4] - 80072f8: f023 42fe bic.w r2, r3, #2130706432 ; 0x7f000000 - 80072fc: 687b ldr r3, [r7, #4] - 80072fe: 691b ldr r3, [r3, #16] - 8007300: 061b lsls r3, r3, #24 - 8007302: 490b ldr r1, [pc, #44] ; (8007330 ) - 8007304: 4313 orrs r3, r2 - 8007306: 604b str r3, [r1, #4] - 8007308: e01a b.n 8007340 - } - else - { - /* Disable the Internal High Speed oscillator (HSI). */ - __HAL_RCC_HSI_DISABLE(); - 800730a: 4b09 ldr r3, [pc, #36] ; (8007330 ) - 800730c: 681b ldr r3, [r3, #0] - 800730e: 4a08 ldr r2, [pc, #32] ; (8007330 ) - 8007310: f023 0301 bic.w r3, r3, #1 - 8007314: 6013 str r3, [r2, #0] - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 8007316: f7fb f825 bl 8002364 - 800731a: 6278 str r0, [r7, #36] ; 0x24 - - /* Wait till HSI is disabled */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) - 800731c: e00a b.n 8007334 - { - if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) - 800731e: f7fb f821 bl 8002364 - 8007322: 4602 mov r2, r0 - 8007324: 6a7b ldr r3, [r7, #36] ; 0x24 - 8007326: 1ad3 subs r3, r2, r3 - 8007328: 2b02 cmp r3, #2 - 800732a: d903 bls.n 8007334 - { - return HAL_TIMEOUT; - 800732c: 2303 movs r3, #3 - 800732e: e2af b.n 8007890 - 8007330: 58024400 .word 0x58024400 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) - 8007334: 4b96 ldr r3, [pc, #600] ; (8007590 ) - 8007336: 681b ldr r3, [r3, #0] - 8007338: f003 0304 and.w r3, r3, #4 - 800733c: 2b00 cmp r3, #0 - 800733e: d1ee bne.n 800731e - } - } - } - } - /*----------------------------- CSI Configuration --------------------------*/ - if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_CSI) == RCC_OSCILLATORTYPE_CSI) - 8007340: 687b ldr r3, [r7, #4] - 8007342: 681b ldr r3, [r3, #0] - 8007344: f003 0310 and.w r3, r3, #16 - 8007348: 2b00 cmp r3, #0 - 800734a: d06a beq.n 8007422 - /* Check the parameters */ - assert_param(IS_RCC_CSI(RCC_OscInitStruct->CSIState)); - assert_param(IS_RCC_CSICALIBRATION_VALUE(RCC_OscInitStruct->CSICalibrationValue)); - - /* When the CSI is used as system clock it will not disabled */ - const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE(); - 800734c: 4b90 ldr r3, [pc, #576] ; (8007590 ) - 800734e: 691b ldr r3, [r3, #16] - 8007350: f003 0338 and.w r3, r3, #56 ; 0x38 - 8007354: 61bb str r3, [r7, #24] - const uint32_t temp_pllckselr = RCC->PLLCKSELR; - 8007356: 4b8e ldr r3, [pc, #568] ; (8007590 ) - 8007358: 6a9b ldr r3, [r3, #40] ; 0x28 - 800735a: 617b str r3, [r7, #20] - if ((temp_sysclksrc == RCC_CFGR_SWS_CSI) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_CSI))) - 800735c: 69bb ldr r3, [r7, #24] - 800735e: 2b08 cmp r3, #8 - 8007360: d007 beq.n 8007372 - 8007362: 69bb ldr r3, [r7, #24] - 8007364: 2b18 cmp r3, #24 - 8007366: d11b bne.n 80073a0 - 8007368: 697b ldr r3, [r7, #20] - 800736a: f003 0303 and.w r3, r3, #3 - 800736e: 2b01 cmp r3, #1 - 8007370: d116 bne.n 80073a0 - { - /* When CSI is used as system clock it will not disabled */ - if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON)) - 8007372: 4b87 ldr r3, [pc, #540] ; (8007590 ) - 8007374: 681b ldr r3, [r3, #0] - 8007376: f403 7380 and.w r3, r3, #256 ; 0x100 - 800737a: 2b00 cmp r3, #0 - 800737c: d005 beq.n 800738a - 800737e: 687b ldr r3, [r7, #4] - 8007380: 69db ldr r3, [r3, #28] - 8007382: 2b80 cmp r3, #128 ; 0x80 - 8007384: d001 beq.n 800738a - { - return HAL_ERROR; - 8007386: 2301 movs r3, #1 - 8007388: e282 b.n 8007890 - } - /* Otherwise, just the calibration is allowed */ - else - { - /* Adjusts the Internal High Speed oscillator (CSI) calibration value.*/ - __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue); - 800738a: 4b81 ldr r3, [pc, #516] ; (8007590 ) - 800738c: 68db ldr r3, [r3, #12] - 800738e: f023 527c bic.w r2, r3, #1056964608 ; 0x3f000000 - 8007392: 687b ldr r3, [r7, #4] - 8007394: 6a1b ldr r3, [r3, #32] - 8007396: 061b lsls r3, r3, #24 - 8007398: 497d ldr r1, [pc, #500] ; (8007590 ) - 800739a: 4313 orrs r3, r2 - 800739c: 60cb str r3, [r1, #12] - if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON)) - 800739e: e040 b.n 8007422 - } - } - else - { - /* Check the CSI State */ - if ((RCC_OscInitStruct->CSIState) != RCC_CSI_OFF) - 80073a0: 687b ldr r3, [r7, #4] - 80073a2: 69db ldr r3, [r3, #28] - 80073a4: 2b00 cmp r3, #0 - 80073a6: d023 beq.n 80073f0 - { - /* Enable the Internal High Speed oscillator (CSI). */ - __HAL_RCC_CSI_ENABLE(); - 80073a8: 4b79 ldr r3, [pc, #484] ; (8007590 ) - 80073aa: 681b ldr r3, [r3, #0] - 80073ac: 4a78 ldr r2, [pc, #480] ; (8007590 ) - 80073ae: f043 0380 orr.w r3, r3, #128 ; 0x80 - 80073b2: 6013 str r3, [r2, #0] - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 80073b4: f7fa ffd6 bl 8002364 - 80073b8: 6278 str r0, [r7, #36] ; 0x24 - - /* Wait till CSI is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U) - 80073ba: e008 b.n 80073ce - { - if ((HAL_GetTick() - tickstart) > CSI_TIMEOUT_VALUE) - 80073bc: f7fa ffd2 bl 8002364 - 80073c0: 4602 mov r2, r0 - 80073c2: 6a7b ldr r3, [r7, #36] ; 0x24 - 80073c4: 1ad3 subs r3, r2, r3 - 80073c6: 2b02 cmp r3, #2 - 80073c8: d901 bls.n 80073ce - { - return HAL_TIMEOUT; - 80073ca: 2303 movs r3, #3 - 80073cc: e260 b.n 8007890 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U) - 80073ce: 4b70 ldr r3, [pc, #448] ; (8007590 ) - 80073d0: 681b ldr r3, [r3, #0] - 80073d2: f403 7380 and.w r3, r3, #256 ; 0x100 - 80073d6: 2b00 cmp r3, #0 - 80073d8: d0f0 beq.n 80073bc - } - } - - /* Adjusts the Internal High Speed oscillator (CSI) calibration value.*/ - __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue); - 80073da: 4b6d ldr r3, [pc, #436] ; (8007590 ) - 80073dc: 68db ldr r3, [r3, #12] - 80073de: f023 527c bic.w r2, r3, #1056964608 ; 0x3f000000 - 80073e2: 687b ldr r3, [r7, #4] - 80073e4: 6a1b ldr r3, [r3, #32] - 80073e6: 061b lsls r3, r3, #24 - 80073e8: 4969 ldr r1, [pc, #420] ; (8007590 ) - 80073ea: 4313 orrs r3, r2 - 80073ec: 60cb str r3, [r1, #12] - 80073ee: e018 b.n 8007422 - } - else - { - /* Disable the Internal High Speed oscillator (CSI). */ - __HAL_RCC_CSI_DISABLE(); - 80073f0: 4b67 ldr r3, [pc, #412] ; (8007590 ) - 80073f2: 681b ldr r3, [r3, #0] - 80073f4: 4a66 ldr r2, [pc, #408] ; (8007590 ) - 80073f6: f023 0380 bic.w r3, r3, #128 ; 0x80 - 80073fa: 6013 str r3, [r2, #0] - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 80073fc: f7fa ffb2 bl 8002364 - 8007400: 6278 str r0, [r7, #36] ; 0x24 - - /* Wait till CSI is disabled */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) - 8007402: e008 b.n 8007416 - { - if ((HAL_GetTick() - tickstart) > CSI_TIMEOUT_VALUE) - 8007404: f7fa ffae bl 8002364 - 8007408: 4602 mov r2, r0 - 800740a: 6a7b ldr r3, [r7, #36] ; 0x24 - 800740c: 1ad3 subs r3, r2, r3 - 800740e: 2b02 cmp r3, #2 - 8007410: d901 bls.n 8007416 - { - return HAL_TIMEOUT; - 8007412: 2303 movs r3, #3 - 8007414: e23c b.n 8007890 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) - 8007416: 4b5e ldr r3, [pc, #376] ; (8007590 ) - 8007418: 681b ldr r3, [r3, #0] - 800741a: f403 7380 and.w r3, r3, #256 ; 0x100 - 800741e: 2b00 cmp r3, #0 - 8007420: d1f0 bne.n 8007404 - } - } - } - } - /*------------------------------ LSI Configuration -------------------------*/ - if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI) - 8007422: 687b ldr r3, [r7, #4] - 8007424: 681b ldr r3, [r3, #0] - 8007426: f003 0308 and.w r3, r3, #8 - 800742a: 2b00 cmp r3, #0 - 800742c: d036 beq.n 800749c - { - /* Check the parameters */ - assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState)); - - /* Check the LSI State */ - if ((RCC_OscInitStruct->LSIState) != RCC_LSI_OFF) - 800742e: 687b ldr r3, [r7, #4] - 8007430: 695b ldr r3, [r3, #20] - 8007432: 2b00 cmp r3, #0 - 8007434: d019 beq.n 800746a - { - /* Enable the Internal Low Speed oscillator (LSI). */ - __HAL_RCC_LSI_ENABLE(); - 8007436: 4b56 ldr r3, [pc, #344] ; (8007590 ) - 8007438: 6f5b ldr r3, [r3, #116] ; 0x74 - 800743a: 4a55 ldr r2, [pc, #340] ; (8007590 ) - 800743c: f043 0301 orr.w r3, r3, #1 - 8007440: 6753 str r3, [r2, #116] ; 0x74 - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 8007442: f7fa ff8f bl 8002364 - 8007446: 6278 str r0, [r7, #36] ; 0x24 - - /* Wait till LSI is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U) - 8007448: e008 b.n 800745c - { - if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) - 800744a: f7fa ff8b bl 8002364 - 800744e: 4602 mov r2, r0 - 8007450: 6a7b ldr r3, [r7, #36] ; 0x24 - 8007452: 1ad3 subs r3, r2, r3 - 8007454: 2b02 cmp r3, #2 - 8007456: d901 bls.n 800745c - { - return HAL_TIMEOUT; - 8007458: 2303 movs r3, #3 - 800745a: e219 b.n 8007890 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U) - 800745c: 4b4c ldr r3, [pc, #304] ; (8007590 ) - 800745e: 6f5b ldr r3, [r3, #116] ; 0x74 - 8007460: f003 0302 and.w r3, r3, #2 - 8007464: 2b00 cmp r3, #0 - 8007466: d0f0 beq.n 800744a - 8007468: e018 b.n 800749c - } - } - else - { - /* Disable the Internal Low Speed oscillator (LSI). */ - __HAL_RCC_LSI_DISABLE(); - 800746a: 4b49 ldr r3, [pc, #292] ; (8007590 ) - 800746c: 6f5b ldr r3, [r3, #116] ; 0x74 - 800746e: 4a48 ldr r2, [pc, #288] ; (8007590 ) - 8007470: f023 0301 bic.w r3, r3, #1 - 8007474: 6753 str r3, [r2, #116] ; 0x74 - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 8007476: f7fa ff75 bl 8002364 - 800747a: 6278 str r0, [r7, #36] ; 0x24 - - /* Wait till LSI is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U) - 800747c: e008 b.n 8007490 - { - if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) - 800747e: f7fa ff71 bl 8002364 - 8007482: 4602 mov r2, r0 - 8007484: 6a7b ldr r3, [r7, #36] ; 0x24 - 8007486: 1ad3 subs r3, r2, r3 - 8007488: 2b02 cmp r3, #2 - 800748a: d901 bls.n 8007490 - { - return HAL_TIMEOUT; - 800748c: 2303 movs r3, #3 - 800748e: e1ff b.n 8007890 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U) - 8007490: 4b3f ldr r3, [pc, #252] ; (8007590 ) - 8007492: 6f5b ldr r3, [r3, #116] ; 0x74 - 8007494: f003 0302 and.w r3, r3, #2 - 8007498: 2b00 cmp r3, #0 - 800749a: d1f0 bne.n 800747e - } - } - } - - /*------------------------------ HSI48 Configuration -------------------------*/ - if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI48) == RCC_OSCILLATORTYPE_HSI48) - 800749c: 687b ldr r3, [r7, #4] - 800749e: 681b ldr r3, [r3, #0] - 80074a0: f003 0320 and.w r3, r3, #32 - 80074a4: 2b00 cmp r3, #0 - 80074a6: d036 beq.n 8007516 - { - /* Check the parameters */ - assert_param(IS_RCC_HSI48(RCC_OscInitStruct->HSI48State)); - - /* Check the HSI48 State */ - if ((RCC_OscInitStruct->HSI48State) != RCC_HSI48_OFF) - 80074a8: 687b ldr r3, [r7, #4] - 80074aa: 699b ldr r3, [r3, #24] - 80074ac: 2b00 cmp r3, #0 - 80074ae: d019 beq.n 80074e4 - { - /* Enable the Internal Low Speed oscillator (HSI48). */ - __HAL_RCC_HSI48_ENABLE(); - 80074b0: 4b37 ldr r3, [pc, #220] ; (8007590 ) - 80074b2: 681b ldr r3, [r3, #0] - 80074b4: 4a36 ldr r2, [pc, #216] ; (8007590 ) - 80074b6: f443 5380 orr.w r3, r3, #4096 ; 0x1000 - 80074ba: 6013 str r3, [r2, #0] - - /* Get time-out */ - tickstart = HAL_GetTick(); - 80074bc: f7fa ff52 bl 8002364 - 80074c0: 6278 str r0, [r7, #36] ; 0x24 - - /* Wait till HSI48 is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == 0U) - 80074c2: e008 b.n 80074d6 - { - if ((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE) - 80074c4: f7fa ff4e bl 8002364 - 80074c8: 4602 mov r2, r0 - 80074ca: 6a7b ldr r3, [r7, #36] ; 0x24 - 80074cc: 1ad3 subs r3, r2, r3 - 80074ce: 2b02 cmp r3, #2 - 80074d0: d901 bls.n 80074d6 - { - return HAL_TIMEOUT; - 80074d2: 2303 movs r3, #3 - 80074d4: e1dc b.n 8007890 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == 0U) - 80074d6: 4b2e ldr r3, [pc, #184] ; (8007590 ) - 80074d8: 681b ldr r3, [r3, #0] - 80074da: f403 5300 and.w r3, r3, #8192 ; 0x2000 - 80074de: 2b00 cmp r3, #0 - 80074e0: d0f0 beq.n 80074c4 - 80074e2: e018 b.n 8007516 - } - } - else - { - /* Disable the Internal Low Speed oscillator (HSI48). */ - __HAL_RCC_HSI48_DISABLE(); - 80074e4: 4b2a ldr r3, [pc, #168] ; (8007590 ) - 80074e6: 681b ldr r3, [r3, #0] - 80074e8: 4a29 ldr r2, [pc, #164] ; (8007590 ) - 80074ea: f423 5380 bic.w r3, r3, #4096 ; 0x1000 - 80074ee: 6013 str r3, [r2, #0] - - /* Get time-out */ - tickstart = HAL_GetTick(); - 80074f0: f7fa ff38 bl 8002364 - 80074f4: 6278 str r0, [r7, #36] ; 0x24 - - /* Wait till HSI48 is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != 0U) - 80074f6: e008 b.n 800750a - { - if ((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE) - 80074f8: f7fa ff34 bl 8002364 - 80074fc: 4602 mov r2, r0 - 80074fe: 6a7b ldr r3, [r7, #36] ; 0x24 - 8007500: 1ad3 subs r3, r2, r3 - 8007502: 2b02 cmp r3, #2 - 8007504: d901 bls.n 800750a - { - return HAL_TIMEOUT; - 8007506: 2303 movs r3, #3 - 8007508: e1c2 b.n 8007890 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != 0U) - 800750a: 4b21 ldr r3, [pc, #132] ; (8007590 ) - 800750c: 681b ldr r3, [r3, #0] - 800750e: f403 5300 and.w r3, r3, #8192 ; 0x2000 - 8007512: 2b00 cmp r3, #0 - 8007514: d1f0 bne.n 80074f8 - } - } - } - } - /*------------------------------ LSE Configuration -------------------------*/ - if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE) - 8007516: 687b ldr r3, [r7, #4] - 8007518: 681b ldr r3, [r3, #0] - 800751a: f003 0304 and.w r3, r3, #4 - 800751e: 2b00 cmp r3, #0 - 8007520: f000 8086 beq.w 8007630 - { - /* Check the parameters */ - assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState)); - - /* Enable write access to Backup domain */ - PWR->CR1 |= PWR_CR1_DBP; - 8007524: 4b1b ldr r3, [pc, #108] ; (8007594 ) - 8007526: 681b ldr r3, [r3, #0] - 8007528: 4a1a ldr r2, [pc, #104] ; (8007594 ) - 800752a: f443 7380 orr.w r3, r3, #256 ; 0x100 - 800752e: 6013 str r3, [r2, #0] - - /* Wait for Backup domain Write protection disable */ - tickstart = HAL_GetTick(); - 8007530: f7fa ff18 bl 8002364 - 8007534: 6278 str r0, [r7, #36] ; 0x24 - - while ((PWR->CR1 & PWR_CR1_DBP) == 0U) - 8007536: e008 b.n 800754a - { - if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - 8007538: f7fa ff14 bl 8002364 - 800753c: 4602 mov r2, r0 - 800753e: 6a7b ldr r3, [r7, #36] ; 0x24 - 8007540: 1ad3 subs r3, r2, r3 - 8007542: 2b64 cmp r3, #100 ; 0x64 - 8007544: d901 bls.n 800754a - { - return HAL_TIMEOUT; - 8007546: 2303 movs r3, #3 - 8007548: e1a2 b.n 8007890 - while ((PWR->CR1 & PWR_CR1_DBP) == 0U) - 800754a: 4b12 ldr r3, [pc, #72] ; (8007594 ) - 800754c: 681b ldr r3, [r3, #0] - 800754e: f403 7380 and.w r3, r3, #256 ; 0x100 - 8007552: 2b00 cmp r3, #0 - 8007554: d0f0 beq.n 8007538 - } - } - - /* Set the new LSE configuration -----------------------------------------*/ - __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState); - 8007556: 687b ldr r3, [r7, #4] - 8007558: 689b ldr r3, [r3, #8] - 800755a: 2b01 cmp r3, #1 - 800755c: d106 bne.n 800756c - 800755e: 4b0c ldr r3, [pc, #48] ; (8007590 ) - 8007560: 6f1b ldr r3, [r3, #112] ; 0x70 - 8007562: 4a0b ldr r2, [pc, #44] ; (8007590 ) - 8007564: f043 0301 orr.w r3, r3, #1 - 8007568: 6713 str r3, [r2, #112] ; 0x70 - 800756a: e032 b.n 80075d2 - 800756c: 687b ldr r3, [r7, #4] - 800756e: 689b ldr r3, [r3, #8] - 8007570: 2b00 cmp r3, #0 - 8007572: d111 bne.n 8007598 - 8007574: 4b06 ldr r3, [pc, #24] ; (8007590 ) - 8007576: 6f1b ldr r3, [r3, #112] ; 0x70 - 8007578: 4a05 ldr r2, [pc, #20] ; (8007590 ) - 800757a: f023 0301 bic.w r3, r3, #1 - 800757e: 6713 str r3, [r2, #112] ; 0x70 - 8007580: 4b03 ldr r3, [pc, #12] ; (8007590 ) - 8007582: 6f1b ldr r3, [r3, #112] ; 0x70 - 8007584: 4a02 ldr r2, [pc, #8] ; (8007590 ) - 8007586: f023 0304 bic.w r3, r3, #4 - 800758a: 6713 str r3, [r2, #112] ; 0x70 - 800758c: e021 b.n 80075d2 - 800758e: bf00 nop - 8007590: 58024400 .word 0x58024400 - 8007594: 58024800 .word 0x58024800 - 8007598: 687b ldr r3, [r7, #4] - 800759a: 689b ldr r3, [r3, #8] - 800759c: 2b05 cmp r3, #5 - 800759e: d10c bne.n 80075ba - 80075a0: 4b83 ldr r3, [pc, #524] ; (80077b0 ) - 80075a2: 6f1b ldr r3, [r3, #112] ; 0x70 - 80075a4: 4a82 ldr r2, [pc, #520] ; (80077b0 ) - 80075a6: f043 0304 orr.w r3, r3, #4 - 80075aa: 6713 str r3, [r2, #112] ; 0x70 - 80075ac: 4b80 ldr r3, [pc, #512] ; (80077b0 ) - 80075ae: 6f1b ldr r3, [r3, #112] ; 0x70 - 80075b0: 4a7f ldr r2, [pc, #508] ; (80077b0 ) - 80075b2: f043 0301 orr.w r3, r3, #1 - 80075b6: 6713 str r3, [r2, #112] ; 0x70 - 80075b8: e00b b.n 80075d2 - 80075ba: 4b7d ldr r3, [pc, #500] ; (80077b0 ) - 80075bc: 6f1b ldr r3, [r3, #112] ; 0x70 - 80075be: 4a7c ldr r2, [pc, #496] ; (80077b0 ) - 80075c0: f023 0301 bic.w r3, r3, #1 - 80075c4: 6713 str r3, [r2, #112] ; 0x70 - 80075c6: 4b7a ldr r3, [pc, #488] ; (80077b0 ) - 80075c8: 6f1b ldr r3, [r3, #112] ; 0x70 - 80075ca: 4a79 ldr r2, [pc, #484] ; (80077b0 ) - 80075cc: f023 0304 bic.w r3, r3, #4 - 80075d0: 6713 str r3, [r2, #112] ; 0x70 - /* Check the LSE State */ - if ((RCC_OscInitStruct->LSEState) != RCC_LSE_OFF) - 80075d2: 687b ldr r3, [r7, #4] - 80075d4: 689b ldr r3, [r3, #8] - 80075d6: 2b00 cmp r3, #0 - 80075d8: d015 beq.n 8007606 - { - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 80075da: f7fa fec3 bl 8002364 - 80075de: 6278 str r0, [r7, #36] ; 0x24 - - /* Wait till LSE is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U) - 80075e0: e00a b.n 80075f8 - { - if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 80075e2: f7fa febf bl 8002364 - 80075e6: 4602 mov r2, r0 - 80075e8: 6a7b ldr r3, [r7, #36] ; 0x24 - 80075ea: 1ad3 subs r3, r2, r3 - 80075ec: f241 3288 movw r2, #5000 ; 0x1388 - 80075f0: 4293 cmp r3, r2 - 80075f2: d901 bls.n 80075f8 - { - return HAL_TIMEOUT; - 80075f4: 2303 movs r3, #3 - 80075f6: e14b b.n 8007890 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U) - 80075f8: 4b6d ldr r3, [pc, #436] ; (80077b0 ) - 80075fa: 6f1b ldr r3, [r3, #112] ; 0x70 - 80075fc: f003 0302 and.w r3, r3, #2 - 8007600: 2b00 cmp r3, #0 - 8007602: d0ee beq.n 80075e2 - 8007604: e014 b.n 8007630 - } - } - else - { - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 8007606: f7fa fead bl 8002364 - 800760a: 6278 str r0, [r7, #36] ; 0x24 - - /* Wait till LSE is disabled */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U) - 800760c: e00a b.n 8007624 - { - if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 800760e: f7fa fea9 bl 8002364 - 8007612: 4602 mov r2, r0 - 8007614: 6a7b ldr r3, [r7, #36] ; 0x24 - 8007616: 1ad3 subs r3, r2, r3 - 8007618: f241 3288 movw r2, #5000 ; 0x1388 - 800761c: 4293 cmp r3, r2 - 800761e: d901 bls.n 8007624 - { - return HAL_TIMEOUT; - 8007620: 2303 movs r3, #3 - 8007622: e135 b.n 8007890 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U) - 8007624: 4b62 ldr r3, [pc, #392] ; (80077b0 ) - 8007626: 6f1b ldr r3, [r3, #112] ; 0x70 - 8007628: f003 0302 and.w r3, r3, #2 - 800762c: 2b00 cmp r3, #0 - 800762e: d1ee bne.n 800760e - } - } - /*-------------------------------- PLL Configuration -----------------------*/ - /* Check the parameters */ - assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState)); - if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE) - 8007630: 687b ldr r3, [r7, #4] - 8007632: 6a5b ldr r3, [r3, #36] ; 0x24 - 8007634: 2b00 cmp r3, #0 - 8007636: f000 812a beq.w 800788e - { - /* Check if the PLL is used as system clock or not */ - if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_CFGR_SWS_PLL1) - 800763a: 4b5d ldr r3, [pc, #372] ; (80077b0 ) - 800763c: 691b ldr r3, [r3, #16] - 800763e: f003 0338 and.w r3, r3, #56 ; 0x38 - 8007642: 2b18 cmp r3, #24 - 8007644: f000 80ba beq.w 80077bc - { - if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON) - 8007648: 687b ldr r3, [r7, #4] - 800764a: 6a5b ldr r3, [r3, #36] ; 0x24 - 800764c: 2b02 cmp r3, #2 - 800764e: f040 8095 bne.w 800777c - assert_param(IS_RCC_PLLQ_VALUE(RCC_OscInitStruct->PLL.PLLQ)); - assert_param(IS_RCC_PLLR_VALUE(RCC_OscInitStruct->PLL.PLLR)); - assert_param(IS_RCC_PLLFRACN_VALUE(RCC_OscInitStruct->PLL.PLLFRACN)); - - /* Disable the main PLL. */ - __HAL_RCC_PLL_DISABLE(); - 8007652: 4b57 ldr r3, [pc, #348] ; (80077b0 ) - 8007654: 681b ldr r3, [r3, #0] - 8007656: 4a56 ldr r2, [pc, #344] ; (80077b0 ) - 8007658: f023 7380 bic.w r3, r3, #16777216 ; 0x1000000 - 800765c: 6013 str r3, [r2, #0] - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 800765e: f7fa fe81 bl 8002364 - 8007662: 6278 str r0, [r7, #36] ; 0x24 - - /* Wait till PLL is disabled */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U) - 8007664: e008 b.n 8007678 - { - if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 8007666: f7fa fe7d bl 8002364 - 800766a: 4602 mov r2, r0 - 800766c: 6a7b ldr r3, [r7, #36] ; 0x24 - 800766e: 1ad3 subs r3, r2, r3 - 8007670: 2b02 cmp r3, #2 - 8007672: d901 bls.n 8007678 - { - return HAL_TIMEOUT; - 8007674: 2303 movs r3, #3 - 8007676: e10b b.n 8007890 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U) - 8007678: 4b4d ldr r3, [pc, #308] ; (80077b0 ) - 800767a: 681b ldr r3, [r3, #0] - 800767c: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 8007680: 2b00 cmp r3, #0 - 8007682: d1f0 bne.n 8007666 - } - } - - /* Configure the main PLL clock source, multiplication and division factors. */ - __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource, - 8007684: 4b4a ldr r3, [pc, #296] ; (80077b0 ) - 8007686: 6a9a ldr r2, [r3, #40] ; 0x28 - 8007688: 4b4a ldr r3, [pc, #296] ; (80077b4 ) - 800768a: 4013 ands r3, r2 - 800768c: 687a ldr r2, [r7, #4] - 800768e: 6a91 ldr r1, [r2, #40] ; 0x28 - 8007690: 687a ldr r2, [r7, #4] - 8007692: 6ad2 ldr r2, [r2, #44] ; 0x2c - 8007694: 0112 lsls r2, r2, #4 - 8007696: 430a orrs r2, r1 - 8007698: 4945 ldr r1, [pc, #276] ; (80077b0 ) - 800769a: 4313 orrs r3, r2 - 800769c: 628b str r3, [r1, #40] ; 0x28 - 800769e: 687b ldr r3, [r7, #4] - 80076a0: 6b1b ldr r3, [r3, #48] ; 0x30 - 80076a2: 3b01 subs r3, #1 - 80076a4: f3c3 0208 ubfx r2, r3, #0, #9 - 80076a8: 687b ldr r3, [r7, #4] - 80076aa: 6b5b ldr r3, [r3, #52] ; 0x34 - 80076ac: 3b01 subs r3, #1 - 80076ae: 025b lsls r3, r3, #9 - 80076b0: b29b uxth r3, r3 - 80076b2: 431a orrs r2, r3 - 80076b4: 687b ldr r3, [r7, #4] - 80076b6: 6b9b ldr r3, [r3, #56] ; 0x38 - 80076b8: 3b01 subs r3, #1 - 80076ba: 041b lsls r3, r3, #16 - 80076bc: f403 03fe and.w r3, r3, #8323072 ; 0x7f0000 - 80076c0: 431a orrs r2, r3 - 80076c2: 687b ldr r3, [r7, #4] - 80076c4: 6bdb ldr r3, [r3, #60] ; 0x3c - 80076c6: 3b01 subs r3, #1 - 80076c8: 061b lsls r3, r3, #24 - 80076ca: f003 43fe and.w r3, r3, #2130706432 ; 0x7f000000 - 80076ce: 4938 ldr r1, [pc, #224] ; (80077b0 ) - 80076d0: 4313 orrs r3, r2 - 80076d2: 630b str r3, [r1, #48] ; 0x30 - RCC_OscInitStruct->PLL.PLLP, - RCC_OscInitStruct->PLL.PLLQ, - RCC_OscInitStruct->PLL.PLLR); - - /* Disable PLLFRACN . */ - __HAL_RCC_PLLFRACN_DISABLE(); - 80076d4: 4b36 ldr r3, [pc, #216] ; (80077b0 ) - 80076d6: 6adb ldr r3, [r3, #44] ; 0x2c - 80076d8: 4a35 ldr r2, [pc, #212] ; (80077b0 ) - 80076da: f023 0301 bic.w r3, r3, #1 - 80076de: 62d3 str r3, [r2, #44] ; 0x2c - - /* Configure PLL PLL1FRACN */ - __HAL_RCC_PLLFRACN_CONFIG(RCC_OscInitStruct->PLL.PLLFRACN); - 80076e0: 4b33 ldr r3, [pc, #204] ; (80077b0 ) - 80076e2: 6b5a ldr r2, [r3, #52] ; 0x34 - 80076e4: 4b34 ldr r3, [pc, #208] ; (80077b8 ) - 80076e6: 4013 ands r3, r2 - 80076e8: 687a ldr r2, [r7, #4] - 80076ea: 6c92 ldr r2, [r2, #72] ; 0x48 - 80076ec: 00d2 lsls r2, r2, #3 - 80076ee: 4930 ldr r1, [pc, #192] ; (80077b0 ) - 80076f0: 4313 orrs r3, r2 - 80076f2: 634b str r3, [r1, #52] ; 0x34 - - /* Select PLL1 input reference frequency range: VCI */ - __HAL_RCC_PLL_VCIRANGE(RCC_OscInitStruct->PLL.PLLRGE) ; - 80076f4: 4b2e ldr r3, [pc, #184] ; (80077b0 ) - 80076f6: 6adb ldr r3, [r3, #44] ; 0x2c - 80076f8: f023 020c bic.w r2, r3, #12 - 80076fc: 687b ldr r3, [r7, #4] - 80076fe: 6c1b ldr r3, [r3, #64] ; 0x40 - 8007700: 492b ldr r1, [pc, #172] ; (80077b0 ) - 8007702: 4313 orrs r3, r2 - 8007704: 62cb str r3, [r1, #44] ; 0x2c - - /* Select PLL1 output frequency range : VCO */ - __HAL_RCC_PLL_VCORANGE(RCC_OscInitStruct->PLL.PLLVCOSEL) ; - 8007706: 4b2a ldr r3, [pc, #168] ; (80077b0 ) - 8007708: 6adb ldr r3, [r3, #44] ; 0x2c - 800770a: f023 0202 bic.w r2, r3, #2 - 800770e: 687b ldr r3, [r7, #4] - 8007710: 6c5b ldr r3, [r3, #68] ; 0x44 - 8007712: 4927 ldr r1, [pc, #156] ; (80077b0 ) - 8007714: 4313 orrs r3, r2 - 8007716: 62cb str r3, [r1, #44] ; 0x2c - - /* Enable PLL System Clock output. */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVP); - 8007718: 4b25 ldr r3, [pc, #148] ; (80077b0 ) - 800771a: 6adb ldr r3, [r3, #44] ; 0x2c - 800771c: 4a24 ldr r2, [pc, #144] ; (80077b0 ) - 800771e: f443 3380 orr.w r3, r3, #65536 ; 0x10000 - 8007722: 62d3 str r3, [r2, #44] ; 0x2c - - /* Enable PLL1Q Clock output. */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ); - 8007724: 4b22 ldr r3, [pc, #136] ; (80077b0 ) - 8007726: 6adb ldr r3, [r3, #44] ; 0x2c - 8007728: 4a21 ldr r2, [pc, #132] ; (80077b0 ) - 800772a: f443 3300 orr.w r3, r3, #131072 ; 0x20000 - 800772e: 62d3 str r3, [r2, #44] ; 0x2c - - /* Enable PLL1R Clock output. */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVR); - 8007730: 4b1f ldr r3, [pc, #124] ; (80077b0 ) - 8007732: 6adb ldr r3, [r3, #44] ; 0x2c - 8007734: 4a1e ldr r2, [pc, #120] ; (80077b0 ) - 8007736: f443 2380 orr.w r3, r3, #262144 ; 0x40000 - 800773a: 62d3 str r3, [r2, #44] ; 0x2c - - /* Enable PLL1FRACN . */ - __HAL_RCC_PLLFRACN_ENABLE(); - 800773c: 4b1c ldr r3, [pc, #112] ; (80077b0 ) - 800773e: 6adb ldr r3, [r3, #44] ; 0x2c - 8007740: 4a1b ldr r2, [pc, #108] ; (80077b0 ) - 8007742: f043 0301 orr.w r3, r3, #1 - 8007746: 62d3 str r3, [r2, #44] ; 0x2c - - /* Enable the main PLL. */ - __HAL_RCC_PLL_ENABLE(); - 8007748: 4b19 ldr r3, [pc, #100] ; (80077b0 ) - 800774a: 681b ldr r3, [r3, #0] - 800774c: 4a18 ldr r2, [pc, #96] ; (80077b0 ) - 800774e: f043 7380 orr.w r3, r3, #16777216 ; 0x1000000 - 8007752: 6013 str r3, [r2, #0] - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 8007754: f7fa fe06 bl 8002364 - 8007758: 6278 str r0, [r7, #36] ; 0x24 - - /* Wait till PLL is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U) - 800775a: e008 b.n 800776e - { - if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 800775c: f7fa fe02 bl 8002364 - 8007760: 4602 mov r2, r0 - 8007762: 6a7b ldr r3, [r7, #36] ; 0x24 - 8007764: 1ad3 subs r3, r2, r3 - 8007766: 2b02 cmp r3, #2 - 8007768: d901 bls.n 800776e - { - return HAL_TIMEOUT; - 800776a: 2303 movs r3, #3 - 800776c: e090 b.n 8007890 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U) - 800776e: 4b10 ldr r3, [pc, #64] ; (80077b0 ) - 8007770: 681b ldr r3, [r3, #0] - 8007772: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 8007776: 2b00 cmp r3, #0 - 8007778: d0f0 beq.n 800775c - 800777a: e088 b.n 800788e - } - } - else - { - /* Disable the main PLL. */ - __HAL_RCC_PLL_DISABLE(); - 800777c: 4b0c ldr r3, [pc, #48] ; (80077b0 ) - 800777e: 681b ldr r3, [r3, #0] - 8007780: 4a0b ldr r2, [pc, #44] ; (80077b0 ) - 8007782: f023 7380 bic.w r3, r3, #16777216 ; 0x1000000 - 8007786: 6013 str r3, [r2, #0] - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 8007788: f7fa fdec bl 8002364 - 800778c: 6278 str r0, [r7, #36] ; 0x24 - - /* Wait till PLL is disabled */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U) - 800778e: e008 b.n 80077a2 - { - if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 8007790: f7fa fde8 bl 8002364 - 8007794: 4602 mov r2, r0 - 8007796: 6a7b ldr r3, [r7, #36] ; 0x24 - 8007798: 1ad3 subs r3, r2, r3 - 800779a: 2b02 cmp r3, #2 - 800779c: d901 bls.n 80077a2 - { - return HAL_TIMEOUT; - 800779e: 2303 movs r3, #3 - 80077a0: e076 b.n 8007890 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U) - 80077a2: 4b03 ldr r3, [pc, #12] ; (80077b0 ) - 80077a4: 681b ldr r3, [r3, #0] - 80077a6: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 80077aa: 2b00 cmp r3, #0 - 80077ac: d1f0 bne.n 8007790 - 80077ae: e06e b.n 800788e - 80077b0: 58024400 .word 0x58024400 - 80077b4: fffffc0c .word 0xfffffc0c - 80077b8: ffff0007 .word 0xffff0007 - } - } - else - { - /* Do not return HAL_ERROR if request repeats the current configuration */ - temp1_pllckcfg = RCC->PLLCKSELR; - 80077bc: 4b36 ldr r3, [pc, #216] ; (8007898 ) - 80077be: 6a9b ldr r3, [r3, #40] ; 0x28 - 80077c0: 613b str r3, [r7, #16] - temp2_pllckcfg = RCC->PLL1DIVR; - 80077c2: 4b35 ldr r3, [pc, #212] ; (8007898 ) - 80077c4: 6b1b ldr r3, [r3, #48] ; 0x30 - 80077c6: 60fb str r3, [r7, #12] - if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) || - 80077c8: 687b ldr r3, [r7, #4] - 80077ca: 6a5b ldr r3, [r3, #36] ; 0x24 - 80077cc: 2b01 cmp r3, #1 - 80077ce: d031 beq.n 8007834 - (READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 80077d0: 693b ldr r3, [r7, #16] - 80077d2: f003 0203 and.w r2, r3, #3 - 80077d6: 687b ldr r3, [r7, #4] - 80077d8: 6a9b ldr r3, [r3, #40] ; 0x28 - if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) || - 80077da: 429a cmp r2, r3 - 80077dc: d12a bne.n 8007834 - ((READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos) != RCC_OscInitStruct->PLL.PLLM) || - 80077de: 693b ldr r3, [r7, #16] - 80077e0: 091b lsrs r3, r3, #4 - 80077e2: f003 023f and.w r2, r3, #63 ; 0x3f - 80077e6: 687b ldr r3, [r7, #4] - 80077e8: 6adb ldr r3, [r3, #44] ; 0x2c - (READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 80077ea: 429a cmp r2, r3 - 80077ec: d122 bne.n 8007834 - (READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_N1) != (RCC_OscInitStruct->PLL.PLLN - 1U)) || - 80077ee: 68fb ldr r3, [r7, #12] - 80077f0: f3c3 0208 ubfx r2, r3, #0, #9 - 80077f4: 687b ldr r3, [r7, #4] - 80077f6: 6b1b ldr r3, [r3, #48] ; 0x30 - 80077f8: 3b01 subs r3, #1 - ((READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos) != RCC_OscInitStruct->PLL.PLLM) || - 80077fa: 429a cmp r2, r3 - 80077fc: d11a bne.n 8007834 - ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) != (RCC_OscInitStruct->PLL.PLLP - 1U)) || - 80077fe: 68fb ldr r3, [r7, #12] - 8007800: 0a5b lsrs r3, r3, #9 - 8007802: f003 027f and.w r2, r3, #127 ; 0x7f - 8007806: 687b ldr r3, [r7, #4] - 8007808: 6b5b ldr r3, [r3, #52] ; 0x34 - 800780a: 3b01 subs r3, #1 - (READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_N1) != (RCC_OscInitStruct->PLL.PLLN - 1U)) || - 800780c: 429a cmp r2, r3 - 800780e: d111 bne.n 8007834 - ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) != (RCC_OscInitStruct->PLL.PLLQ - 1U)) || - 8007810: 68fb ldr r3, [r7, #12] - 8007812: 0c1b lsrs r3, r3, #16 - 8007814: f003 027f and.w r2, r3, #127 ; 0x7f - 8007818: 687b ldr r3, [r7, #4] - 800781a: 6b9b ldr r3, [r3, #56] ; 0x38 - 800781c: 3b01 subs r3, #1 - ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) != (RCC_OscInitStruct->PLL.PLLP - 1U)) || - 800781e: 429a cmp r2, r3 - 8007820: d108 bne.n 8007834 - ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_R1) >> RCC_PLL1DIVR_R1_Pos) != (RCC_OscInitStruct->PLL.PLLR - 1U))) - 8007822: 68fb ldr r3, [r7, #12] - 8007824: 0e1b lsrs r3, r3, #24 - 8007826: f003 027f and.w r2, r3, #127 ; 0x7f - 800782a: 687b ldr r3, [r7, #4] - 800782c: 6bdb ldr r3, [r3, #60] ; 0x3c - 800782e: 3b01 subs r3, #1 - ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) != (RCC_OscInitStruct->PLL.PLLQ - 1U)) || - 8007830: 429a cmp r2, r3 - 8007832: d001 beq.n 8007838 - { - return HAL_ERROR; - 8007834: 2301 movs r3, #1 - 8007836: e02b b.n 8007890 - } - else - { - /* Check if only fractional part needs to be updated */ - temp1_pllckcfg = ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> RCC_PLL1FRACR_FRACN1_Pos); - 8007838: 4b17 ldr r3, [pc, #92] ; (8007898 ) - 800783a: 6b5b ldr r3, [r3, #52] ; 0x34 - 800783c: 08db lsrs r3, r3, #3 - 800783e: f3c3 030c ubfx r3, r3, #0, #13 - 8007842: 613b str r3, [r7, #16] - if (RCC_OscInitStruct->PLL.PLLFRACN != temp1_pllckcfg) - 8007844: 687b ldr r3, [r7, #4] - 8007846: 6c9b ldr r3, [r3, #72] ; 0x48 - 8007848: 693a ldr r2, [r7, #16] - 800784a: 429a cmp r2, r3 - 800784c: d01f beq.n 800788e - { - assert_param(IS_RCC_PLLFRACN_VALUE(RCC_OscInitStruct->PLL.PLLFRACN)); - /* Disable PLL1FRACEN */ - __HAL_RCC_PLLFRACN_DISABLE(); - 800784e: 4b12 ldr r3, [pc, #72] ; (8007898 ) - 8007850: 6adb ldr r3, [r3, #44] ; 0x2c - 8007852: 4a11 ldr r2, [pc, #68] ; (8007898 ) - 8007854: f023 0301 bic.w r3, r3, #1 - 8007858: 62d3 str r3, [r2, #44] ; 0x2c - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 800785a: f7fa fd83 bl 8002364 - 800785e: 6278 str r0, [r7, #36] ; 0x24 - /* Wait at least 2 CK_REF (PLL input source divided by M) period to make sure next latched value will be taken into account. */ - while ((HAL_GetTick() - tickstart) < PLL_FRAC_TIMEOUT_VALUE) - 8007860: bf00 nop - 8007862: f7fa fd7f bl 8002364 - 8007866: 4602 mov r2, r0 - 8007868: 6a7b ldr r3, [r7, #36] ; 0x24 - 800786a: 4293 cmp r3, r2 - 800786c: d0f9 beq.n 8007862 - { - } - /* Configure PLL1 PLL1FRACN */ - __HAL_RCC_PLLFRACN_CONFIG(RCC_OscInitStruct->PLL.PLLFRACN); - 800786e: 4b0a ldr r3, [pc, #40] ; (8007898 ) - 8007870: 6b5a ldr r2, [r3, #52] ; 0x34 - 8007872: 4b0a ldr r3, [pc, #40] ; (800789c ) - 8007874: 4013 ands r3, r2 - 8007876: 687a ldr r2, [r7, #4] - 8007878: 6c92 ldr r2, [r2, #72] ; 0x48 - 800787a: 00d2 lsls r2, r2, #3 - 800787c: 4906 ldr r1, [pc, #24] ; (8007898 ) - 800787e: 4313 orrs r3, r2 - 8007880: 634b str r3, [r1, #52] ; 0x34 - /* Enable PLL1FRACEN to latch new value. */ - __HAL_RCC_PLLFRACN_ENABLE(); - 8007882: 4b05 ldr r3, [pc, #20] ; (8007898 ) - 8007884: 6adb ldr r3, [r3, #44] ; 0x2c - 8007886: 4a04 ldr r2, [pc, #16] ; (8007898 ) - 8007888: f043 0301 orr.w r3, r3, #1 - 800788c: 62d3 str r3, [r2, #44] ; 0x2c - } - } - } - } - return HAL_OK; - 800788e: 2300 movs r3, #0 -} - 8007890: 4618 mov r0, r3 - 8007892: 3730 adds r7, #48 ; 0x30 - 8007894: 46bd mov sp, r7 - 8007896: bd80 pop {r7, pc} - 8007898: 58024400 .word 0x58024400 - 800789c: ffff0007 .word 0xffff0007 - -080078a0 : - * D1CPRE[3:0] bits to ensure that Domain1 core clock 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) -{ - 80078a0: b580 push {r7, lr} - 80078a2: b086 sub sp, #24 - 80078a4: af00 add r7, sp, #0 - 80078a6: 6078 str r0, [r7, #4] - 80078a8: 6039 str r1, [r7, #0] - HAL_StatusTypeDef halstatus; - uint32_t tickstart; - uint32_t common_system_clock; - - /* Check Null pointer */ - if (RCC_ClkInitStruct == NULL) - 80078aa: 687b ldr r3, [r7, #4] - 80078ac: 2b00 cmp r3, #0 - 80078ae: d101 bne.n 80078b4 - { - return HAL_ERROR; - 80078b0: 2301 movs r3, #1 - 80078b2: e19c b.n 8007bee - /* 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()) - 80078b4: 4b8a ldr r3, [pc, #552] ; (8007ae0 ) - 80078b6: 681b ldr r3, [r3, #0] - 80078b8: f003 030f and.w r3, r3, #15 - 80078bc: 683a ldr r2, [r7, #0] - 80078be: 429a cmp r2, r3 - 80078c0: d910 bls.n 80078e4 - { - /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ - __HAL_FLASH_SET_LATENCY(FLatency); - 80078c2: 4b87 ldr r3, [pc, #540] ; (8007ae0 ) - 80078c4: 681b ldr r3, [r3, #0] - 80078c6: f023 020f bic.w r2, r3, #15 - 80078ca: 4985 ldr r1, [pc, #532] ; (8007ae0 ) - 80078cc: 683b ldr r3, [r7, #0] - 80078ce: 4313 orrs r3, r2 - 80078d0: 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) - 80078d2: 4b83 ldr r3, [pc, #524] ; (8007ae0 ) - 80078d4: 681b ldr r3, [r3, #0] - 80078d6: f003 030f and.w r3, r3, #15 - 80078da: 683a ldr r2, [r7, #0] - 80078dc: 429a cmp r2, r3 - 80078de: d001 beq.n 80078e4 - { - return HAL_ERROR; - 80078e0: 2301 movs r3, #1 - 80078e2: e184 b.n 8007bee - - } - - /* Increasing the BUS frequency divider */ - /*-------------------------- D1PCLK1/CDPCLK1 Configuration ---------------------------*/ - if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1) - 80078e4: 687b ldr r3, [r7, #4] - 80078e6: 681b ldr r3, [r3, #0] - 80078e8: f003 0304 and.w r3, r3, #4 - 80078ec: 2b00 cmp r3, #0 - 80078ee: d010 beq.n 8007912 - { -#if defined (RCC_D1CFGR_D1PPRE) - if ((RCC_ClkInitStruct->APB3CLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_D1PPRE)) - 80078f0: 687b ldr r3, [r7, #4] - 80078f2: 691a ldr r2, [r3, #16] - 80078f4: 4b7b ldr r3, [pc, #492] ; (8007ae4 ) - 80078f6: 699b ldr r3, [r3, #24] - 80078f8: f003 0370 and.w r3, r3, #112 ; 0x70 - 80078fc: 429a cmp r2, r3 - 80078fe: d908 bls.n 8007912 - { - assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider)); - MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider); - 8007900: 4b78 ldr r3, [pc, #480] ; (8007ae4 ) - 8007902: 699b ldr r3, [r3, #24] - 8007904: f023 0270 bic.w r2, r3, #112 ; 0x70 - 8007908: 687b ldr r3, [r7, #4] - 800790a: 691b ldr r3, [r3, #16] - 800790c: 4975 ldr r1, [pc, #468] ; (8007ae4 ) - 800790e: 4313 orrs r3, r2 - 8007910: 618b str r3, [r1, #24] - } -#endif - } - - /*-------------------------- PCLK1 Configuration ---------------------------*/ - if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) - 8007912: 687b ldr r3, [r7, #4] - 8007914: 681b ldr r3, [r3, #0] - 8007916: f003 0308 and.w r3, r3, #8 - 800791a: 2b00 cmp r3, #0 - 800791c: d010 beq.n 8007940 - { -#if defined (RCC_D2CFGR_D2PPRE1) - if ((RCC_ClkInitStruct->APB1CLKDivider) > (RCC->D2CFGR & RCC_D2CFGR_D2PPRE1)) - 800791e: 687b ldr r3, [r7, #4] - 8007920: 695a ldr r2, [r3, #20] - 8007922: 4b70 ldr r3, [pc, #448] ; (8007ae4 ) - 8007924: 69db ldr r3, [r3, #28] - 8007926: f003 0370 and.w r3, r3, #112 ; 0x70 - 800792a: 429a cmp r2, r3 - 800792c: d908 bls.n 8007940 - { - assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider)); - MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, (RCC_ClkInitStruct->APB1CLKDivider)); - 800792e: 4b6d ldr r3, [pc, #436] ; (8007ae4 ) - 8007930: 69db ldr r3, [r3, #28] - 8007932: f023 0270 bic.w r2, r3, #112 ; 0x70 - 8007936: 687b ldr r3, [r7, #4] - 8007938: 695b ldr r3, [r3, #20] - 800793a: 496a ldr r1, [pc, #424] ; (8007ae4 ) - 800793c: 4313 orrs r3, r2 - 800793e: 61cb str r3, [r1, #28] - MODIFY_REG(RCC->CDCFGR2, RCC_CDCFGR2_CDPPRE1, (RCC_ClkInitStruct->APB1CLKDivider)); - } -#endif - } - /*-------------------------- PCLK2 Configuration ---------------------------*/ - if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) - 8007940: 687b ldr r3, [r7, #4] - 8007942: 681b ldr r3, [r3, #0] - 8007944: f003 0310 and.w r3, r3, #16 - 8007948: 2b00 cmp r3, #0 - 800794a: d010 beq.n 800796e - { -#if defined(RCC_D2CFGR_D2PPRE2) - if ((RCC_ClkInitStruct->APB2CLKDivider) > (RCC->D2CFGR & RCC_D2CFGR_D2PPRE2)) - 800794c: 687b ldr r3, [r7, #4] - 800794e: 699a ldr r2, [r3, #24] - 8007950: 4b64 ldr r3, [pc, #400] ; (8007ae4 ) - 8007952: 69db ldr r3, [r3, #28] - 8007954: f403 63e0 and.w r3, r3, #1792 ; 0x700 - 8007958: 429a cmp r2, r3 - 800795a: d908 bls.n 800796e - { - assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider)); - MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, (RCC_ClkInitStruct->APB2CLKDivider)); - 800795c: 4b61 ldr r3, [pc, #388] ; (8007ae4 ) - 800795e: 69db ldr r3, [r3, #28] - 8007960: f423 62e0 bic.w r2, r3, #1792 ; 0x700 - 8007964: 687b ldr r3, [r7, #4] - 8007966: 699b ldr r3, [r3, #24] - 8007968: 495e ldr r1, [pc, #376] ; (8007ae4 ) - 800796a: 4313 orrs r3, r2 - 800796c: 61cb str r3, [r1, #28] - } -#endif - } - - /*-------------------------- D3PCLK1 Configuration ---------------------------*/ - if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D3PCLK1) == RCC_CLOCKTYPE_D3PCLK1) - 800796e: 687b ldr r3, [r7, #4] - 8007970: 681b ldr r3, [r3, #0] - 8007972: f003 0320 and.w r3, r3, #32 - 8007976: 2b00 cmp r3, #0 - 8007978: d010 beq.n 800799c - { -#if defined(RCC_D3CFGR_D3PPRE) - if ((RCC_ClkInitStruct->APB4CLKDivider) > (RCC->D3CFGR & RCC_D3CFGR_D3PPRE)) - 800797a: 687b ldr r3, [r7, #4] - 800797c: 69da ldr r2, [r3, #28] - 800797e: 4b59 ldr r3, [pc, #356] ; (8007ae4 ) - 8007980: 6a1b ldr r3, [r3, #32] - 8007982: f003 0370 and.w r3, r3, #112 ; 0x70 - 8007986: 429a cmp r2, r3 - 8007988: d908 bls.n 800799c - { - assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider)); - MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, (RCC_ClkInitStruct->APB4CLKDivider)); - 800798a: 4b56 ldr r3, [pc, #344] ; (8007ae4 ) - 800798c: 6a1b ldr r3, [r3, #32] - 800798e: f023 0270 bic.w r2, r3, #112 ; 0x70 - 8007992: 687b ldr r3, [r7, #4] - 8007994: 69db ldr r3, [r3, #28] - 8007996: 4953 ldr r1, [pc, #332] ; (8007ae4 ) - 8007998: 4313 orrs r3, r2 - 800799a: 620b str r3, [r1, #32] - } -#endif - } - - /*-------------------------- HCLK Configuration --------------------------*/ - if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) - 800799c: 687b ldr r3, [r7, #4] - 800799e: 681b ldr r3, [r3, #0] - 80079a0: f003 0302 and.w r3, r3, #2 - 80079a4: 2b00 cmp r3, #0 - 80079a6: d010 beq.n 80079ca - { -#if defined (RCC_D1CFGR_HPRE) - if ((RCC_ClkInitStruct->AHBCLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_HPRE)) - 80079a8: 687b ldr r3, [r7, #4] - 80079aa: 68da ldr r2, [r3, #12] - 80079ac: 4b4d ldr r3, [pc, #308] ; (8007ae4 ) - 80079ae: 699b ldr r3, [r3, #24] - 80079b0: f003 030f and.w r3, r3, #15 - 80079b4: 429a cmp r2, r3 - 80079b6: d908 bls.n 80079ca - { - /* Set the new HCLK clock divider */ - assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); - MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); - 80079b8: 4b4a ldr r3, [pc, #296] ; (8007ae4 ) - 80079ba: 699b ldr r3, [r3, #24] - 80079bc: f023 020f bic.w r2, r3, #15 - 80079c0: 687b ldr r3, [r7, #4] - 80079c2: 68db ldr r3, [r3, #12] - 80079c4: 4947 ldr r1, [pc, #284] ; (8007ae4 ) - 80079c6: 4313 orrs r3, r2 - 80079c8: 618b str r3, [r1, #24] - } -#endif - } - - /*------------------------- SYSCLK Configuration -------------------------*/ - if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) - 80079ca: 687b ldr r3, [r7, #4] - 80079cc: 681b ldr r3, [r3, #0] - 80079ce: f003 0301 and.w r3, r3, #1 - 80079d2: 2b00 cmp r3, #0 - 80079d4: d055 beq.n 8007a82 - { - assert_param(IS_RCC_SYSCLK(RCC_ClkInitStruct->SYSCLKDivider)); - assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); -#if defined(RCC_D1CFGR_D1CPRE) - MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1CPRE, RCC_ClkInitStruct->SYSCLKDivider); - 80079d6: 4b43 ldr r3, [pc, #268] ; (8007ae4 ) - 80079d8: 699b ldr r3, [r3, #24] - 80079da: f423 6270 bic.w r2, r3, #3840 ; 0xf00 - 80079de: 687b ldr r3, [r7, #4] - 80079e0: 689b ldr r3, [r3, #8] - 80079e2: 4940 ldr r1, [pc, #256] ; (8007ae4 ) - 80079e4: 4313 orrs r3, r2 - 80079e6: 618b str r3, [r1, #24] -#else - MODIFY_REG(RCC->CDCFGR1, RCC_CDCFGR1_CDCPRE, RCC_ClkInitStruct->SYSCLKDivider); -#endif - /* HSE is selected as System Clock Source */ - if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) - 80079e8: 687b ldr r3, [r7, #4] - 80079ea: 685b ldr r3, [r3, #4] - 80079ec: 2b02 cmp r3, #2 - 80079ee: d107 bne.n 8007a00 - { - /* Check the HSE ready flag */ - if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U) - 80079f0: 4b3c ldr r3, [pc, #240] ; (8007ae4 ) - 80079f2: 681b ldr r3, [r3, #0] - 80079f4: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 80079f8: 2b00 cmp r3, #0 - 80079fa: d121 bne.n 8007a40 - { - return HAL_ERROR; - 80079fc: 2301 movs r3, #1 - 80079fe: e0f6 b.n 8007bee - } - } - /* PLL is selected as System Clock Source */ - else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) - 8007a00: 687b ldr r3, [r7, #4] - 8007a02: 685b ldr r3, [r3, #4] - 8007a04: 2b03 cmp r3, #3 - 8007a06: d107 bne.n 8007a18 - { - /* Check the PLL ready flag */ - if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U) - 8007a08: 4b36 ldr r3, [pc, #216] ; (8007ae4 ) - 8007a0a: 681b ldr r3, [r3, #0] - 8007a0c: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 8007a10: 2b00 cmp r3, #0 - 8007a12: d115 bne.n 8007a40 - { - return HAL_ERROR; - 8007a14: 2301 movs r3, #1 - 8007a16: e0ea b.n 8007bee - } - } - /* CSI is selected as System Clock Source */ - else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_CSI) - 8007a18: 687b ldr r3, [r7, #4] - 8007a1a: 685b ldr r3, [r3, #4] - 8007a1c: 2b01 cmp r3, #1 - 8007a1e: d107 bne.n 8007a30 - { - /* Check the PLL ready flag */ - if (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U) - 8007a20: 4b30 ldr r3, [pc, #192] ; (8007ae4 ) - 8007a22: 681b ldr r3, [r3, #0] - 8007a24: f403 7380 and.w r3, r3, #256 ; 0x100 - 8007a28: 2b00 cmp r3, #0 - 8007a2a: d109 bne.n 8007a40 - { - return HAL_ERROR; - 8007a2c: 2301 movs r3, #1 - 8007a2e: e0de b.n 8007bee - } - /* HSI is selected as System Clock Source */ - else - { - /* Check the HSI ready flag */ - if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U) - 8007a30: 4b2c ldr r3, [pc, #176] ; (8007ae4 ) - 8007a32: 681b ldr r3, [r3, #0] - 8007a34: f003 0304 and.w r3, r3, #4 - 8007a38: 2b00 cmp r3, #0 - 8007a3a: d101 bne.n 8007a40 - { - return HAL_ERROR; - 8007a3c: 2301 movs r3, #1 - 8007a3e: e0d6 b.n 8007bee - } - } - MODIFY_REG(RCC->CFGR, RCC_CFGR_SW, RCC_ClkInitStruct->SYSCLKSource); - 8007a40: 4b28 ldr r3, [pc, #160] ; (8007ae4 ) - 8007a42: 691b ldr r3, [r3, #16] - 8007a44: f023 0207 bic.w r2, r3, #7 - 8007a48: 687b ldr r3, [r7, #4] - 8007a4a: 685b ldr r3, [r3, #4] - 8007a4c: 4925 ldr r1, [pc, #148] ; (8007ae4 ) - 8007a4e: 4313 orrs r3, r2 - 8007a50: 610b str r3, [r1, #16] - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 8007a52: f7fa fc87 bl 8002364 - 8007a56: 6178 str r0, [r7, #20] - - while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 8007a58: e00a b.n 8007a70 - { - if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE) - 8007a5a: f7fa fc83 bl 8002364 - 8007a5e: 4602 mov r2, r0 - 8007a60: 697b ldr r3, [r7, #20] - 8007a62: 1ad3 subs r3, r2, r3 - 8007a64: f241 3288 movw r2, #5000 ; 0x1388 - 8007a68: 4293 cmp r3, r2 - 8007a6a: d901 bls.n 8007a70 - { - return HAL_TIMEOUT; - 8007a6c: 2303 movs r3, #3 - 8007a6e: e0be b.n 8007bee - while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 8007a70: 4b1c ldr r3, [pc, #112] ; (8007ae4 ) - 8007a72: 691b ldr r3, [r3, #16] - 8007a74: f003 0238 and.w r2, r3, #56 ; 0x38 - 8007a78: 687b ldr r3, [r7, #4] - 8007a7a: 685b ldr r3, [r3, #4] - 8007a7c: 00db lsls r3, r3, #3 - 8007a7e: 429a cmp r2, r3 - 8007a80: d1eb bne.n 8007a5a - - } - - /* Decreasing the BUS frequency divider */ - /*-------------------------- HCLK Configuration --------------------------*/ - if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) - 8007a82: 687b ldr r3, [r7, #4] - 8007a84: 681b ldr r3, [r3, #0] - 8007a86: f003 0302 and.w r3, r3, #2 - 8007a8a: 2b00 cmp r3, #0 - 8007a8c: d010 beq.n 8007ab0 - { -#if defined(RCC_D1CFGR_HPRE) - if ((RCC_ClkInitStruct->AHBCLKDivider) < (RCC->D1CFGR & RCC_D1CFGR_HPRE)) - 8007a8e: 687b ldr r3, [r7, #4] - 8007a90: 68da ldr r2, [r3, #12] - 8007a92: 4b14 ldr r3, [pc, #80] ; (8007ae4 ) - 8007a94: 699b ldr r3, [r3, #24] - 8007a96: f003 030f and.w r3, r3, #15 - 8007a9a: 429a cmp r2, r3 - 8007a9c: d208 bcs.n 8007ab0 - { - /* Set the new HCLK clock divider */ - assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); - MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); - 8007a9e: 4b11 ldr r3, [pc, #68] ; (8007ae4 ) - 8007aa0: 699b ldr r3, [r3, #24] - 8007aa2: f023 020f bic.w r2, r3, #15 - 8007aa6: 687b ldr r3, [r7, #4] - 8007aa8: 68db ldr r3, [r3, #12] - 8007aaa: 490e ldr r1, [pc, #56] ; (8007ae4 ) - 8007aac: 4313 orrs r3, r2 - 8007aae: 618b str r3, [r1, #24] - } -#endif - } - - /* Decreasing the number of wait states because of lower CPU frequency */ - if (FLatency < __HAL_FLASH_GET_LATENCY()) - 8007ab0: 4b0b ldr r3, [pc, #44] ; (8007ae0 ) - 8007ab2: 681b ldr r3, [r3, #0] - 8007ab4: f003 030f and.w r3, r3, #15 - 8007ab8: 683a ldr r2, [r7, #0] - 8007aba: 429a cmp r2, r3 - 8007abc: d214 bcs.n 8007ae8 - { - /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ - __HAL_FLASH_SET_LATENCY(FLatency); - 8007abe: 4b08 ldr r3, [pc, #32] ; (8007ae0 ) - 8007ac0: 681b ldr r3, [r3, #0] - 8007ac2: f023 020f bic.w r2, r3, #15 - 8007ac6: 4906 ldr r1, [pc, #24] ; (8007ae0 ) - 8007ac8: 683b ldr r3, [r7, #0] - 8007aca: 4313 orrs r3, r2 - 8007acc: 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) - 8007ace: 4b04 ldr r3, [pc, #16] ; (8007ae0 ) - 8007ad0: 681b ldr r3, [r3, #0] - 8007ad2: f003 030f and.w r3, r3, #15 - 8007ad6: 683a ldr r2, [r7, #0] - 8007ad8: 429a cmp r2, r3 - 8007ada: d005 beq.n 8007ae8 - { - return HAL_ERROR; - 8007adc: 2301 movs r3, #1 - 8007ade: e086 b.n 8007bee - 8007ae0: 52002000 .word 0x52002000 - 8007ae4: 58024400 .word 0x58024400 - } - } - - /*-------------------------- D1PCLK1/CDPCLK Configuration ---------------------------*/ - if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1) - 8007ae8: 687b ldr r3, [r7, #4] - 8007aea: 681b ldr r3, [r3, #0] - 8007aec: f003 0304 and.w r3, r3, #4 - 8007af0: 2b00 cmp r3, #0 - 8007af2: d010 beq.n 8007b16 - { -#if defined(RCC_D1CFGR_D1PPRE) - if ((RCC_ClkInitStruct->APB3CLKDivider) < (RCC->D1CFGR & RCC_D1CFGR_D1PPRE)) - 8007af4: 687b ldr r3, [r7, #4] - 8007af6: 691a ldr r2, [r3, #16] - 8007af8: 4b3f ldr r3, [pc, #252] ; (8007bf8 ) - 8007afa: 699b ldr r3, [r3, #24] - 8007afc: f003 0370 and.w r3, r3, #112 ; 0x70 - 8007b00: 429a cmp r2, r3 - 8007b02: d208 bcs.n 8007b16 - { - assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider)); - MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider); - 8007b04: 4b3c ldr r3, [pc, #240] ; (8007bf8 ) - 8007b06: 699b ldr r3, [r3, #24] - 8007b08: f023 0270 bic.w r2, r3, #112 ; 0x70 - 8007b0c: 687b ldr r3, [r7, #4] - 8007b0e: 691b ldr r3, [r3, #16] - 8007b10: 4939 ldr r1, [pc, #228] ; (8007bf8 ) - 8007b12: 4313 orrs r3, r2 - 8007b14: 618b str r3, [r1, #24] - } -#endif - } - - /*-------------------------- PCLK1 Configuration ---------------------------*/ - if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) - 8007b16: 687b ldr r3, [r7, #4] - 8007b18: 681b ldr r3, [r3, #0] - 8007b1a: f003 0308 and.w r3, r3, #8 - 8007b1e: 2b00 cmp r3, #0 - 8007b20: d010 beq.n 8007b44 - { -#if defined(RCC_D2CFGR_D2PPRE1) - if ((RCC_ClkInitStruct->APB1CLKDivider) < (RCC->D2CFGR & RCC_D2CFGR_D2PPRE1)) - 8007b22: 687b ldr r3, [r7, #4] - 8007b24: 695a ldr r2, [r3, #20] - 8007b26: 4b34 ldr r3, [pc, #208] ; (8007bf8 ) - 8007b28: 69db ldr r3, [r3, #28] - 8007b2a: f003 0370 and.w r3, r3, #112 ; 0x70 - 8007b2e: 429a cmp r2, r3 - 8007b30: d208 bcs.n 8007b44 - { - assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider)); - MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, (RCC_ClkInitStruct->APB1CLKDivider)); - 8007b32: 4b31 ldr r3, [pc, #196] ; (8007bf8 ) - 8007b34: 69db ldr r3, [r3, #28] - 8007b36: f023 0270 bic.w r2, r3, #112 ; 0x70 - 8007b3a: 687b ldr r3, [r7, #4] - 8007b3c: 695b ldr r3, [r3, #20] - 8007b3e: 492e ldr r1, [pc, #184] ; (8007bf8 ) - 8007b40: 4313 orrs r3, r2 - 8007b42: 61cb str r3, [r1, #28] - } -#endif - } - - /*-------------------------- PCLK2 Configuration ---------------------------*/ - if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) - 8007b44: 687b ldr r3, [r7, #4] - 8007b46: 681b ldr r3, [r3, #0] - 8007b48: f003 0310 and.w r3, r3, #16 - 8007b4c: 2b00 cmp r3, #0 - 8007b4e: d010 beq.n 8007b72 - { -#if defined (RCC_D2CFGR_D2PPRE2) - if ((RCC_ClkInitStruct->APB2CLKDivider) < (RCC->D2CFGR & RCC_D2CFGR_D2PPRE2)) - 8007b50: 687b ldr r3, [r7, #4] - 8007b52: 699a ldr r2, [r3, #24] - 8007b54: 4b28 ldr r3, [pc, #160] ; (8007bf8 ) - 8007b56: 69db ldr r3, [r3, #28] - 8007b58: f403 63e0 and.w r3, r3, #1792 ; 0x700 - 8007b5c: 429a cmp r2, r3 - 8007b5e: d208 bcs.n 8007b72 - { - assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider)); - MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, (RCC_ClkInitStruct->APB2CLKDivider)); - 8007b60: 4b25 ldr r3, [pc, #148] ; (8007bf8 ) - 8007b62: 69db ldr r3, [r3, #28] - 8007b64: f423 62e0 bic.w r2, r3, #1792 ; 0x700 - 8007b68: 687b ldr r3, [r7, #4] - 8007b6a: 699b ldr r3, [r3, #24] - 8007b6c: 4922 ldr r1, [pc, #136] ; (8007bf8 ) - 8007b6e: 4313 orrs r3, r2 - 8007b70: 61cb str r3, [r1, #28] - } -#endif - } - - /*-------------------------- D3PCLK1/SRDPCLK1 Configuration ---------------------------*/ - if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D3PCLK1) == RCC_CLOCKTYPE_D3PCLK1) - 8007b72: 687b ldr r3, [r7, #4] - 8007b74: 681b ldr r3, [r3, #0] - 8007b76: f003 0320 and.w r3, r3, #32 - 8007b7a: 2b00 cmp r3, #0 - 8007b7c: d010 beq.n 8007ba0 - { -#if defined(RCC_D3CFGR_D3PPRE) - if ((RCC_ClkInitStruct->APB4CLKDivider) < (RCC->D3CFGR & RCC_D3CFGR_D3PPRE)) - 8007b7e: 687b ldr r3, [r7, #4] - 8007b80: 69da ldr r2, [r3, #28] - 8007b82: 4b1d ldr r3, [pc, #116] ; (8007bf8 ) - 8007b84: 6a1b ldr r3, [r3, #32] - 8007b86: f003 0370 and.w r3, r3, #112 ; 0x70 - 8007b8a: 429a cmp r2, r3 - 8007b8c: d208 bcs.n 8007ba0 - { - assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider)); - MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, (RCC_ClkInitStruct->APB4CLKDivider)); - 8007b8e: 4b1a ldr r3, [pc, #104] ; (8007bf8 ) - 8007b90: 6a1b ldr r3, [r3, #32] - 8007b92: f023 0270 bic.w r2, r3, #112 ; 0x70 - 8007b96: 687b ldr r3, [r7, #4] - 8007b98: 69db ldr r3, [r3, #28] - 8007b9a: 4917 ldr r1, [pc, #92] ; (8007bf8 ) - 8007b9c: 4313 orrs r3, r2 - 8007b9e: 620b str r3, [r1, #32] -#endif - } - - /* Update the SystemCoreClock global variable */ -#if defined(RCC_D1CFGR_D1CPRE) - common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU); - 8007ba0: f000 f834 bl 8007c0c - 8007ba4: 4602 mov r2, r0 - 8007ba6: 4b14 ldr r3, [pc, #80] ; (8007bf8 ) - 8007ba8: 699b ldr r3, [r3, #24] - 8007baa: 0a1b lsrs r3, r3, #8 - 8007bac: f003 030f and.w r3, r3, #15 - 8007bb0: 4912 ldr r1, [pc, #72] ; (8007bfc ) - 8007bb2: 5ccb ldrb r3, [r1, r3] - 8007bb4: f003 031f and.w r3, r3, #31 - 8007bb8: fa22 f303 lsr.w r3, r2, r3 - 8007bbc: 613b str r3, [r7, #16] -#else - common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU); -#endif - -#if defined(RCC_D1CFGR_HPRE) - SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU)); - 8007bbe: 4b0e ldr r3, [pc, #56] ; (8007bf8 ) - 8007bc0: 699b ldr r3, [r3, #24] - 8007bc2: f003 030f and.w r3, r3, #15 - 8007bc6: 4a0d ldr r2, [pc, #52] ; (8007bfc ) - 8007bc8: 5cd3 ldrb r3, [r2, r3] - 8007bca: f003 031f and.w r3, r3, #31 - 8007bce: 693a ldr r2, [r7, #16] - 8007bd0: fa22 f303 lsr.w r3, r2, r3 - 8007bd4: 4a0a ldr r2, [pc, #40] ; (8007c00 ) - 8007bd6: 6013 str r3, [r2, #0] -#endif - -#if defined(DUAL_CORE) && defined(CORE_CM4) - SystemCoreClock = SystemD2Clock; -#else - SystemCoreClock = common_system_clock; - 8007bd8: 4a0a ldr r2, [pc, #40] ; (8007c04 ) - 8007bda: 693b ldr r3, [r7, #16] - 8007bdc: 6013 str r3, [r2, #0] -#endif /* DUAL_CORE && CORE_CM4 */ - - /* Configure the source of time base considering new system clocks settings*/ - halstatus = HAL_InitTick(uwTickPrio); - 8007bde: 4b0a ldr r3, [pc, #40] ; (8007c08 ) - 8007be0: 681b ldr r3, [r3, #0] - 8007be2: 4618 mov r0, r3 - 8007be4: f7f9 ffdc bl 8001ba0 - 8007be8: 4603 mov r3, r0 - 8007bea: 73fb strb r3, [r7, #15] - - return halstatus; - 8007bec: 7bfb ldrb r3, [r7, #15] -} - 8007bee: 4618 mov r0, r3 - 8007bf0: 3718 adds r7, #24 - 8007bf2: 46bd mov sp, r7 - 8007bf4: bd80 pop {r7, pc} - 8007bf6: bf00 nop - 8007bf8: 58024400 .word 0x58024400 - 8007bfc: 08026b40 .word 0x08026b40 - 8007c00: 24000018 .word 0x24000018 - 8007c04: 24000014 .word 0x24000014 - 8007c08: 2400001c .word 0x2400001c - -08007c0c : - * - * - * @retval SYSCLK frequency - */ -uint32_t HAL_RCC_GetSysClockFreq(void) -{ - 8007c0c: b480 push {r7} - 8007c0e: b089 sub sp, #36 ; 0x24 - 8007c10: af00 add r7, sp, #0 - float_t fracn1, pllvco; - uint32_t sysclockfreq; - - /* Get SYSCLK source -------------------------------------------------------*/ - - switch (RCC->CFGR & RCC_CFGR_SWS) - 8007c12: 4bb3 ldr r3, [pc, #716] ; (8007ee0 ) - 8007c14: 691b ldr r3, [r3, #16] - 8007c16: f003 0338 and.w r3, r3, #56 ; 0x38 - 8007c1a: 2b18 cmp r3, #24 - 8007c1c: f200 8155 bhi.w 8007eca - 8007c20: a201 add r2, pc, #4 ; (adr r2, 8007c28 ) - 8007c22: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8007c26: bf00 nop - 8007c28: 08007c8d .word 0x08007c8d - 8007c2c: 08007ecb .word 0x08007ecb - 8007c30: 08007ecb .word 0x08007ecb - 8007c34: 08007ecb .word 0x08007ecb - 8007c38: 08007ecb .word 0x08007ecb - 8007c3c: 08007ecb .word 0x08007ecb - 8007c40: 08007ecb .word 0x08007ecb - 8007c44: 08007ecb .word 0x08007ecb - 8007c48: 08007cb3 .word 0x08007cb3 - 8007c4c: 08007ecb .word 0x08007ecb - 8007c50: 08007ecb .word 0x08007ecb - 8007c54: 08007ecb .word 0x08007ecb - 8007c58: 08007ecb .word 0x08007ecb - 8007c5c: 08007ecb .word 0x08007ecb - 8007c60: 08007ecb .word 0x08007ecb - 8007c64: 08007ecb .word 0x08007ecb - 8007c68: 08007cb9 .word 0x08007cb9 - 8007c6c: 08007ecb .word 0x08007ecb - 8007c70: 08007ecb .word 0x08007ecb - 8007c74: 08007ecb .word 0x08007ecb - 8007c78: 08007ecb .word 0x08007ecb - 8007c7c: 08007ecb .word 0x08007ecb - 8007c80: 08007ecb .word 0x08007ecb - 8007c84: 08007ecb .word 0x08007ecb - 8007c88: 08007cbf .word 0x08007cbf - { - case RCC_CFGR_SWS_HSI: /* HSI used as system clock source */ - - if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U) - 8007c8c: 4b94 ldr r3, [pc, #592] ; (8007ee0 ) - 8007c8e: 681b ldr r3, [r3, #0] - 8007c90: f003 0320 and.w r3, r3, #32 - 8007c94: 2b00 cmp r3, #0 - 8007c96: d009 beq.n 8007cac - { - sysclockfreq = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3)); - 8007c98: 4b91 ldr r3, [pc, #580] ; (8007ee0 ) - 8007c9a: 681b ldr r3, [r3, #0] - 8007c9c: 08db lsrs r3, r3, #3 - 8007c9e: f003 0303 and.w r3, r3, #3 - 8007ca2: 4a90 ldr r2, [pc, #576] ; (8007ee4 ) - 8007ca4: fa22 f303 lsr.w r3, r2, r3 - 8007ca8: 61bb str r3, [r7, #24] - else - { - sysclockfreq = (uint32_t) HSI_VALUE; - } - - break; - 8007caa: e111 b.n 8007ed0 - sysclockfreq = (uint32_t) HSI_VALUE; - 8007cac: 4b8d ldr r3, [pc, #564] ; (8007ee4 ) - 8007cae: 61bb str r3, [r7, #24] - break; - 8007cb0: e10e b.n 8007ed0 - - case RCC_CFGR_SWS_CSI: /* CSI used as system clock source */ - sysclockfreq = CSI_VALUE; - 8007cb2: 4b8d ldr r3, [pc, #564] ; (8007ee8 ) - 8007cb4: 61bb str r3, [r7, #24] - break; - 8007cb6: e10b b.n 8007ed0 - - case RCC_CFGR_SWS_HSE: /* HSE used as system clock source */ - sysclockfreq = HSE_VALUE; - 8007cb8: 4b8c ldr r3, [pc, #560] ; (8007eec ) - 8007cba: 61bb str r3, [r7, #24] - break; - 8007cbc: e108 b.n 8007ed0 - case RCC_CFGR_SWS_PLL1: /* PLL1 used as system clock source */ - - /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLLM) * PLLN - SYSCLK = PLL_VCO / PLLR - */ - pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC); - 8007cbe: 4b88 ldr r3, [pc, #544] ; (8007ee0 ) - 8007cc0: 6a9b ldr r3, [r3, #40] ; 0x28 - 8007cc2: f003 0303 and.w r3, r3, #3 - 8007cc6: 617b str r3, [r7, #20] - pllm = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM1) >> 4) ; - 8007cc8: 4b85 ldr r3, [pc, #532] ; (8007ee0 ) - 8007cca: 6a9b ldr r3, [r3, #40] ; 0x28 - 8007ccc: 091b lsrs r3, r3, #4 - 8007cce: f003 033f and.w r3, r3, #63 ; 0x3f - 8007cd2: 613b str r3, [r7, #16] - pllfracen = ((RCC-> PLLCFGR & RCC_PLLCFGR_PLL1FRACEN) >> RCC_PLLCFGR_PLL1FRACEN_Pos); - 8007cd4: 4b82 ldr r3, [pc, #520] ; (8007ee0 ) - 8007cd6: 6adb ldr r3, [r3, #44] ; 0x2c - 8007cd8: f003 0301 and.w r3, r3, #1 - 8007cdc: 60fb str r3, [r7, #12] - fracn1 = (float_t)(uint32_t)(pllfracen * ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> 3)); - 8007cde: 4b80 ldr r3, [pc, #512] ; (8007ee0 ) - 8007ce0: 6b5b ldr r3, [r3, #52] ; 0x34 - 8007ce2: 08db lsrs r3, r3, #3 - 8007ce4: f3c3 030c ubfx r3, r3, #0, #13 - 8007ce8: 68fa ldr r2, [r7, #12] - 8007cea: fb02 f303 mul.w r3, r2, r3 - 8007cee: ee07 3a90 vmov s15, r3 - 8007cf2: eef8 7a67 vcvt.f32.u32 s15, s15 - 8007cf6: edc7 7a02 vstr s15, [r7, #8] - - if (pllm != 0U) - 8007cfa: 693b ldr r3, [r7, #16] - 8007cfc: 2b00 cmp r3, #0 - 8007cfe: f000 80e1 beq.w 8007ec4 - 8007d02: 697b ldr r3, [r7, #20] - 8007d04: 2b02 cmp r3, #2 - 8007d06: f000 8083 beq.w 8007e10 - 8007d0a: 697b ldr r3, [r7, #20] - 8007d0c: 2b02 cmp r3, #2 - 8007d0e: f200 80a1 bhi.w 8007e54 - 8007d12: 697b ldr r3, [r7, #20] - 8007d14: 2b00 cmp r3, #0 - 8007d16: d003 beq.n 8007d20 - 8007d18: 697b ldr r3, [r7, #20] - 8007d1a: 2b01 cmp r3, #1 - 8007d1c: d056 beq.n 8007dcc - 8007d1e: e099 b.n 8007e54 - { - switch (pllsource) - { - case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */ - - if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U) - 8007d20: 4b6f ldr r3, [pc, #444] ; (8007ee0 ) - 8007d22: 681b ldr r3, [r3, #0] - 8007d24: f003 0320 and.w r3, r3, #32 - 8007d28: 2b00 cmp r3, #0 - 8007d2a: d02d beq.n 8007d88 - { - hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3)); - 8007d2c: 4b6c ldr r3, [pc, #432] ; (8007ee0 ) - 8007d2e: 681b ldr r3, [r3, #0] - 8007d30: 08db lsrs r3, r3, #3 - 8007d32: f003 0303 and.w r3, r3, #3 - 8007d36: 4a6b ldr r2, [pc, #428] ; (8007ee4 ) - 8007d38: fa22 f303 lsr.w r3, r2, r3 - 8007d3c: 607b str r3, [r7, #4] - pllvco = ((float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1); - 8007d3e: 687b ldr r3, [r7, #4] - 8007d40: ee07 3a90 vmov s15, r3 - 8007d44: eef8 6a67 vcvt.f32.u32 s13, s15 - 8007d48: 693b ldr r3, [r7, #16] - 8007d4a: ee07 3a90 vmov s15, r3 - 8007d4e: eef8 7a67 vcvt.f32.u32 s15, s15 - 8007d52: ee86 7aa7 vdiv.f32 s14, s13, s15 - 8007d56: 4b62 ldr r3, [pc, #392] ; (8007ee0 ) - 8007d58: 6b1b ldr r3, [r3, #48] ; 0x30 - 8007d5a: f3c3 0308 ubfx r3, r3, #0, #9 - 8007d5e: ee07 3a90 vmov s15, r3 - 8007d62: eef8 6a67 vcvt.f32.u32 s13, s15 - 8007d66: ed97 6a02 vldr s12, [r7, #8] - 8007d6a: eddf 5a61 vldr s11, [pc, #388] ; 8007ef0 - 8007d6e: eec6 7a25 vdiv.f32 s15, s12, s11 - 8007d72: ee76 7aa7 vadd.f32 s15, s13, s15 - 8007d76: eef7 6a00 vmov.f32 s13, #112 ; 0x3f800000 1.0 - 8007d7a: ee77 7aa6 vadd.f32 s15, s15, s13 - 8007d7e: ee67 7a27 vmul.f32 s15, s14, s15 - 8007d82: edc7 7a07 vstr s15, [r7, #28] - } - else - { - pllvco = ((float_t)HSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1); - } - break; - 8007d86: e087 b.n 8007e98 - pllvco = ((float_t)HSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1); - 8007d88: 693b ldr r3, [r7, #16] - 8007d8a: ee07 3a90 vmov s15, r3 - 8007d8e: eef8 7a67 vcvt.f32.u32 s15, s15 - 8007d92: eddf 6a58 vldr s13, [pc, #352] ; 8007ef4 - 8007d96: ee86 7aa7 vdiv.f32 s14, s13, s15 - 8007d9a: 4b51 ldr r3, [pc, #324] ; (8007ee0 ) - 8007d9c: 6b1b ldr r3, [r3, #48] ; 0x30 - 8007d9e: f3c3 0308 ubfx r3, r3, #0, #9 - 8007da2: ee07 3a90 vmov s15, r3 - 8007da6: eef8 6a67 vcvt.f32.u32 s13, s15 - 8007daa: ed97 6a02 vldr s12, [r7, #8] - 8007dae: eddf 5a50 vldr s11, [pc, #320] ; 8007ef0 - 8007db2: eec6 7a25 vdiv.f32 s15, s12, s11 - 8007db6: ee76 7aa7 vadd.f32 s15, s13, s15 - 8007dba: eef7 6a00 vmov.f32 s13, #112 ; 0x3f800000 1.0 - 8007dbe: ee77 7aa6 vadd.f32 s15, s15, s13 - 8007dc2: ee67 7a27 vmul.f32 s15, s14, s15 - 8007dc6: edc7 7a07 vstr s15, [r7, #28] - break; - 8007dca: e065 b.n 8007e98 - - case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */ - pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1); - 8007dcc: 693b ldr r3, [r7, #16] - 8007dce: ee07 3a90 vmov s15, r3 - 8007dd2: eef8 7a67 vcvt.f32.u32 s15, s15 - 8007dd6: eddf 6a48 vldr s13, [pc, #288] ; 8007ef8 - 8007dda: ee86 7aa7 vdiv.f32 s14, s13, s15 - 8007dde: 4b40 ldr r3, [pc, #256] ; (8007ee0 ) - 8007de0: 6b1b ldr r3, [r3, #48] ; 0x30 - 8007de2: f3c3 0308 ubfx r3, r3, #0, #9 - 8007de6: ee07 3a90 vmov s15, r3 - 8007dea: eef8 6a67 vcvt.f32.u32 s13, s15 - 8007dee: ed97 6a02 vldr s12, [r7, #8] - 8007df2: eddf 5a3f vldr s11, [pc, #252] ; 8007ef0 - 8007df6: eec6 7a25 vdiv.f32 s15, s12, s11 - 8007dfa: ee76 7aa7 vadd.f32 s15, s13, s15 - 8007dfe: eef7 6a00 vmov.f32 s13, #112 ; 0x3f800000 1.0 - 8007e02: ee77 7aa6 vadd.f32 s15, s15, s13 - 8007e06: ee67 7a27 vmul.f32 s15, s14, s15 - 8007e0a: edc7 7a07 vstr s15, [r7, #28] - break; - 8007e0e: e043 b.n 8007e98 - - case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */ - pllvco = ((float_t)HSE_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1); - 8007e10: 693b ldr r3, [r7, #16] - 8007e12: ee07 3a90 vmov s15, r3 - 8007e16: eef8 7a67 vcvt.f32.u32 s15, s15 - 8007e1a: eddf 6a38 vldr s13, [pc, #224] ; 8007efc - 8007e1e: ee86 7aa7 vdiv.f32 s14, s13, s15 - 8007e22: 4b2f ldr r3, [pc, #188] ; (8007ee0 ) - 8007e24: 6b1b ldr r3, [r3, #48] ; 0x30 - 8007e26: f3c3 0308 ubfx r3, r3, #0, #9 - 8007e2a: ee07 3a90 vmov s15, r3 - 8007e2e: eef8 6a67 vcvt.f32.u32 s13, s15 - 8007e32: ed97 6a02 vldr s12, [r7, #8] - 8007e36: eddf 5a2e vldr s11, [pc, #184] ; 8007ef0 - 8007e3a: eec6 7a25 vdiv.f32 s15, s12, s11 - 8007e3e: ee76 7aa7 vadd.f32 s15, s13, s15 - 8007e42: eef7 6a00 vmov.f32 s13, #112 ; 0x3f800000 1.0 - 8007e46: ee77 7aa6 vadd.f32 s15, s15, s13 - 8007e4a: ee67 7a27 vmul.f32 s15, s14, s15 - 8007e4e: edc7 7a07 vstr s15, [r7, #28] - break; - 8007e52: e021 b.n 8007e98 - - default: - pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1); - 8007e54: 693b ldr r3, [r7, #16] - 8007e56: ee07 3a90 vmov s15, r3 - 8007e5a: eef8 7a67 vcvt.f32.u32 s15, s15 - 8007e5e: eddf 6a26 vldr s13, [pc, #152] ; 8007ef8 - 8007e62: ee86 7aa7 vdiv.f32 s14, s13, s15 - 8007e66: 4b1e ldr r3, [pc, #120] ; (8007ee0 ) - 8007e68: 6b1b ldr r3, [r3, #48] ; 0x30 - 8007e6a: f3c3 0308 ubfx r3, r3, #0, #9 - 8007e6e: ee07 3a90 vmov s15, r3 - 8007e72: eef8 6a67 vcvt.f32.u32 s13, s15 - 8007e76: ed97 6a02 vldr s12, [r7, #8] - 8007e7a: eddf 5a1d vldr s11, [pc, #116] ; 8007ef0 - 8007e7e: eec6 7a25 vdiv.f32 s15, s12, s11 - 8007e82: ee76 7aa7 vadd.f32 s15, s13, s15 - 8007e86: eef7 6a00 vmov.f32 s13, #112 ; 0x3f800000 1.0 - 8007e8a: ee77 7aa6 vadd.f32 s15, s15, s13 - 8007e8e: ee67 7a27 vmul.f32 s15, s14, s15 - 8007e92: edc7 7a07 vstr s15, [r7, #28] - break; - 8007e96: bf00 nop - } - pllp = (((RCC->PLL1DIVR & RCC_PLL1DIVR_P1) >> 9) + 1U) ; - 8007e98: 4b11 ldr r3, [pc, #68] ; (8007ee0 ) - 8007e9a: 6b1b ldr r3, [r3, #48] ; 0x30 - 8007e9c: 0a5b lsrs r3, r3, #9 - 8007e9e: f003 037f and.w r3, r3, #127 ; 0x7f - 8007ea2: 3301 adds r3, #1 - 8007ea4: 603b str r3, [r7, #0] - sysclockfreq = (uint32_t)(float_t)(pllvco / (float_t)pllp); - 8007ea6: 683b ldr r3, [r7, #0] - 8007ea8: ee07 3a90 vmov s15, r3 - 8007eac: eeb8 7a67 vcvt.f32.u32 s14, s15 - 8007eb0: edd7 6a07 vldr s13, [r7, #28] - 8007eb4: eec6 7a87 vdiv.f32 s15, s13, s14 - 8007eb8: eefc 7ae7 vcvt.u32.f32 s15, s15 - 8007ebc: ee17 3a90 vmov r3, s15 - 8007ec0: 61bb str r3, [r7, #24] - } - else - { - sysclockfreq = 0U; - } - break; - 8007ec2: e005 b.n 8007ed0 - sysclockfreq = 0U; - 8007ec4: 2300 movs r3, #0 - 8007ec6: 61bb str r3, [r7, #24] - break; - 8007ec8: e002 b.n 8007ed0 - - default: - sysclockfreq = CSI_VALUE; - 8007eca: 4b07 ldr r3, [pc, #28] ; (8007ee8 ) - 8007ecc: 61bb str r3, [r7, #24] - break; - 8007ece: bf00 nop - } - - return sysclockfreq; - 8007ed0: 69bb ldr r3, [r7, #24] -} - 8007ed2: 4618 mov r0, r3 - 8007ed4: 3724 adds r7, #36 ; 0x24 - 8007ed6: 46bd mov sp, r7 - 8007ed8: f85d 7b04 ldr.w r7, [sp], #4 - 8007edc: 4770 bx lr - 8007ede: bf00 nop - 8007ee0: 58024400 .word 0x58024400 - 8007ee4: 03d09000 .word 0x03d09000 - 8007ee8: 003d0900 .word 0x003d0900 - 8007eec: 017d7840 .word 0x017d7840 - 8007ef0: 46000000 .word 0x46000000 - 8007ef4: 4c742400 .word 0x4c742400 - 8007ef8: 4a742400 .word 0x4a742400 - 8007efc: 4bbebc20 .word 0x4bbebc20 - -08007f00 : - * @note The SystemD2Clock CMSIS variable is used to store System domain2 Clock Frequency - * and updated within this function - * @retval HCLK frequency - */ -uint32_t HAL_RCC_GetHCLKFreq(void) -{ - 8007f00: b580 push {r7, lr} - 8007f02: b082 sub sp, #8 - 8007f04: af00 add r7, sp, #0 - uint32_t common_system_clock; - -#if defined(RCC_D1CFGR_D1CPRE) - common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos] & 0x1FU); - 8007f06: f7ff fe81 bl 8007c0c - 8007f0a: 4602 mov r2, r0 - 8007f0c: 4b10 ldr r3, [pc, #64] ; (8007f50 ) - 8007f0e: 699b ldr r3, [r3, #24] - 8007f10: 0a1b lsrs r3, r3, #8 - 8007f12: f003 030f and.w r3, r3, #15 - 8007f16: 490f ldr r1, [pc, #60] ; (8007f54 ) - 8007f18: 5ccb ldrb r3, [r1, r3] - 8007f1a: f003 031f and.w r3, r3, #31 - 8007f1e: fa22 f303 lsr.w r3, r2, r3 - 8007f22: 607b str r3, [r7, #4] -#else - common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos] & 0x1FU); -#endif - -#if defined(RCC_D1CFGR_HPRE) - SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU)); - 8007f24: 4b0a ldr r3, [pc, #40] ; (8007f50 ) - 8007f26: 699b ldr r3, [r3, #24] - 8007f28: f003 030f and.w r3, r3, #15 - 8007f2c: 4a09 ldr r2, [pc, #36] ; (8007f54 ) - 8007f2e: 5cd3 ldrb r3, [r2, r3] - 8007f30: f003 031f and.w r3, r3, #31 - 8007f34: 687a ldr r2, [r7, #4] - 8007f36: fa22 f303 lsr.w r3, r2, r3 - 8007f3a: 4a07 ldr r2, [pc, #28] ; (8007f58 ) - 8007f3c: 6013 str r3, [r2, #0] -#endif - -#if defined(DUAL_CORE) && defined(CORE_CM4) - SystemCoreClock = SystemD2Clock; -#else - SystemCoreClock = common_system_clock; - 8007f3e: 4a07 ldr r2, [pc, #28] ; (8007f5c ) - 8007f40: 687b ldr r3, [r7, #4] - 8007f42: 6013 str r3, [r2, #0] -#endif /* DUAL_CORE && CORE_CM4 */ - - return SystemD2Clock; - 8007f44: 4b04 ldr r3, [pc, #16] ; (8007f58 ) - 8007f46: 681b ldr r3, [r3, #0] -} - 8007f48: 4618 mov r0, r3 - 8007f4a: 3708 adds r7, #8 - 8007f4c: 46bd mov sp, r7 - 8007f4e: bd80 pop {r7, pc} - 8007f50: 58024400 .word 0x58024400 - 8007f54: 08026b40 .word 0x08026b40 - 8007f58: 24000018 .word 0x24000018 - 8007f5c: 24000014 .word 0x24000014 - -08007f60 : - * @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) -{ - 8007f60: b580 push {r7, lr} - 8007f62: af00 add r7, sp, #0 -#if defined (RCC_D2CFGR_D2PPRE1) - /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/ - return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->D2CFGR & RCC_D2CFGR_D2PPRE1) >> RCC_D2CFGR_D2PPRE1_Pos]) & 0x1FU)); - 8007f64: f7ff ffcc bl 8007f00 - 8007f68: 4602 mov r2, r0 - 8007f6a: 4b06 ldr r3, [pc, #24] ; (8007f84 ) - 8007f6c: 69db ldr r3, [r3, #28] - 8007f6e: 091b lsrs r3, r3, #4 - 8007f70: f003 0307 and.w r3, r3, #7 - 8007f74: 4904 ldr r1, [pc, #16] ; (8007f88 ) - 8007f76: 5ccb ldrb r3, [r1, r3] - 8007f78: f003 031f and.w r3, r3, #31 - 8007f7c: fa22 f303 lsr.w r3, r2, r3 -#else - /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/ - return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE1) >> RCC_CDCFGR2_CDPPRE1_Pos]) & 0x1FU)); -#endif -} - 8007f80: 4618 mov r0, r3 - 8007f82: bd80 pop {r7, pc} - 8007f84: 58024400 .word 0x58024400 - 8007f88: 08026b40 .word 0x08026b40 - -08007f8c : - * @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 PCLK1 frequency - */ -uint32_t HAL_RCC_GetPCLK2Freq(void) -{ - 8007f8c: b580 push {r7, lr} - 8007f8e: af00 add r7, sp, #0 - /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/ -#if defined(RCC_D2CFGR_D2PPRE2) - return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->D2CFGR & RCC_D2CFGR_D2PPRE2) >> RCC_D2CFGR_D2PPRE2_Pos]) & 0x1FU)); - 8007f90: f7ff ffb6 bl 8007f00 - 8007f94: 4602 mov r2, r0 - 8007f96: 4b06 ldr r3, [pc, #24] ; (8007fb0 ) - 8007f98: 69db ldr r3, [r3, #28] - 8007f9a: 0a1b lsrs r3, r3, #8 - 8007f9c: f003 0307 and.w r3, r3, #7 - 8007fa0: 4904 ldr r1, [pc, #16] ; (8007fb4 ) - 8007fa2: 5ccb ldrb r3, [r1, r3] - 8007fa4: f003 031f and.w r3, r3, #31 - 8007fa8: fa22 f303 lsr.w r3, r2, r3 -#else - return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE2) >> RCC_CDCFGR2_CDPPRE2_Pos]) & 0x1FU)); -#endif -} - 8007fac: 4618 mov r0, r3 - 8007fae: bd80 pop {r7, pc} - 8007fb0: 58024400 .word 0x58024400 - 8007fb4: 08026b40 .word 0x08026b40 - -08007fb8 : - * will be configured. - * @param pFLatency: Pointer on the Flash Latency. - * @retval None - */ -void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency) -{ - 8007fb8: b480 push {r7} - 8007fba: b083 sub sp, #12 - 8007fbc: af00 add r7, sp, #0 - 8007fbe: 6078 str r0, [r7, #4] - 8007fc0: 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_D1PCLK1 | RCC_CLOCKTYPE_PCLK1 | - 8007fc2: 687b ldr r3, [r7, #4] - 8007fc4: 223f movs r2, #63 ; 0x3f - 8007fc6: 601a str r2, [r3, #0] - RCC_CLOCKTYPE_PCLK2 | RCC_CLOCKTYPE_D3PCLK1 ; - - /* Get the SYSCLK configuration --------------------------------------------*/ - RCC_ClkInitStruct->SYSCLKSource = (uint32_t)(RCC->CFGR & RCC_CFGR_SW); - 8007fc8: 4b1a ldr r3, [pc, #104] ; (8008034 ) - 8007fca: 691b ldr r3, [r3, #16] - 8007fcc: f003 0207 and.w r2, r3, #7 - 8007fd0: 687b ldr r3, [r7, #4] - 8007fd2: 605a str r2, [r3, #4] - -#if defined(RCC_D1CFGR_D1CPRE) - /* Get the SYSCLK configuration ----------------------------------------------*/ - RCC_ClkInitStruct->SYSCLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_D1CPRE); - 8007fd4: 4b17 ldr r3, [pc, #92] ; (8008034 ) - 8007fd6: 699b ldr r3, [r3, #24] - 8007fd8: f403 6270 and.w r2, r3, #3840 ; 0xf00 - 8007fdc: 687b ldr r3, [r7, #4] - 8007fde: 609a str r2, [r3, #8] - - /* Get the D1HCLK configuration ----------------------------------------------*/ - RCC_ClkInitStruct->AHBCLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_HPRE); - 8007fe0: 4b14 ldr r3, [pc, #80] ; (8008034 ) - 8007fe2: 699b ldr r3, [r3, #24] - 8007fe4: f003 020f and.w r2, r3, #15 - 8007fe8: 687b ldr r3, [r7, #4] - 8007fea: 60da str r2, [r3, #12] - - /* Get the APB3 configuration ----------------------------------------------*/ - RCC_ClkInitStruct->APB3CLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_D1PPRE); - 8007fec: 4b11 ldr r3, [pc, #68] ; (8008034 ) - 8007fee: 699b ldr r3, [r3, #24] - 8007ff0: f003 0270 and.w r2, r3, #112 ; 0x70 - 8007ff4: 687b ldr r3, [r7, #4] - 8007ff6: 611a str r2, [r3, #16] - - /* Get the APB1 configuration ----------------------------------------------*/ - RCC_ClkInitStruct->APB1CLKDivider = (uint32_t)(RCC->D2CFGR & RCC_D2CFGR_D2PPRE1); - 8007ff8: 4b0e ldr r3, [pc, #56] ; (8008034 ) - 8007ffa: 69db ldr r3, [r3, #28] - 8007ffc: f003 0270 and.w r2, r3, #112 ; 0x70 - 8008000: 687b ldr r3, [r7, #4] - 8008002: 615a str r2, [r3, #20] - - /* Get the APB2 configuration ----------------------------------------------*/ - RCC_ClkInitStruct->APB2CLKDivider = (uint32_t)(RCC->D2CFGR & RCC_D2CFGR_D2PPRE2); - 8008004: 4b0b ldr r3, [pc, #44] ; (8008034 ) - 8008006: 69db ldr r3, [r3, #28] - 8008008: f403 62e0 and.w r2, r3, #1792 ; 0x700 - 800800c: 687b ldr r3, [r7, #4] - 800800e: 619a str r2, [r3, #24] - - /* Get the APB4 configuration ----------------------------------------------*/ - RCC_ClkInitStruct->APB4CLKDivider = (uint32_t)(RCC->D3CFGR & RCC_D3CFGR_D3PPRE); - 8008010: 4b08 ldr r3, [pc, #32] ; (8008034 ) - 8008012: 6a1b ldr r3, [r3, #32] - 8008014: f003 0270 and.w r2, r3, #112 ; 0x70 - 8008018: 687b ldr r3, [r7, #4] - 800801a: 61da str r2, [r3, #28] - /* Get the APB4 configuration ----------------------------------------------*/ - RCC_ClkInitStruct->APB4CLKDivider = (uint32_t)(RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE); -#endif - - /* Get the Flash Wait State (Latency) configuration ------------------------*/ - *pFLatency = (uint32_t)(FLASH->ACR & FLASH_ACR_LATENCY); - 800801c: 4b06 ldr r3, [pc, #24] ; (8008038 ) - 800801e: 681b ldr r3, [r3, #0] - 8008020: f003 020f and.w r2, r3, #15 - 8008024: 683b ldr r3, [r7, #0] - 8008026: 601a str r2, [r3, #0] -} - 8008028: bf00 nop - 800802a: 370c adds r7, #12 - 800802c: 46bd mov sp, r7 - 800802e: f85d 7b04 ldr.w r7, [sp], #4 - 8008032: 4770 bx lr - 8008034: 58024400 .word 0x58024400 - 8008038: 52002000 .word 0x52002000 - -0800803c : - * (*) : Available on some STM32H7 lines only. - * - * @retval HAL status - */ -HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) -{ - 800803c: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr} - 8008040: b0c6 sub sp, #280 ; 0x118 - 8008042: af00 add r7, sp, #0 - 8008044: f8c7 0104 str.w r0, [r7, #260] ; 0x104 - uint32_t tmpreg; - uint32_t tickstart; - HAL_StatusTypeDef ret = HAL_OK; /* Intermediate status */ - 8008048: 2300 movs r3, #0 - 800804a: f887 3117 strb.w r3, [r7, #279] ; 0x117 - HAL_StatusTypeDef status = HAL_OK; /* Final status */ - 800804e: 2300 movs r3, #0 - 8008050: f887 3116 strb.w r3, [r7, #278] ; 0x116 - - /*---------------------------- SPDIFRX configuration -------------------------------*/ - - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPDIFRX) == RCC_PERIPHCLK_SPDIFRX) - 8008054: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008058: e9d3 2300 ldrd r2, r3, [r3] - 800805c: f002 6400 and.w r4, r2, #134217728 ; 0x8000000 - 8008060: 2500 movs r5, #0 - 8008062: ea54 0305 orrs.w r3, r4, r5 - 8008066: d049 beq.n 80080fc - { - - switch (PeriphClkInit->SpdifrxClockSelection) - 8008068: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 800806c: 6e5b ldr r3, [r3, #100] ; 0x64 - 800806e: f5b3 1f40 cmp.w r3, #3145728 ; 0x300000 - 8008072: d02f beq.n 80080d4 - 8008074: f5b3 1f40 cmp.w r3, #3145728 ; 0x300000 - 8008078: d828 bhi.n 80080cc - 800807a: f5b3 1f00 cmp.w r3, #2097152 ; 0x200000 - 800807e: d01a beq.n 80080b6 - 8008080: f5b3 1f00 cmp.w r3, #2097152 ; 0x200000 - 8008084: d822 bhi.n 80080cc - 8008086: 2b00 cmp r3, #0 - 8008088: d003 beq.n 8008092 - 800808a: f5b3 1f80 cmp.w r3, #1048576 ; 0x100000 - 800808e: d007 beq.n 80080a0 - 8008090: e01c b.n 80080cc - { - case RCC_SPDIFRXCLKSOURCE_PLL: /* PLL is used as clock source for SPDIFRX*/ - /* Enable PLL1Q Clock output generated form System PLL . */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ); - 8008092: 4bab ldr r3, [pc, #684] ; (8008340 ) - 8008094: 6adb ldr r3, [r3, #44] ; 0x2c - 8008096: 4aaa ldr r2, [pc, #680] ; (8008340 ) - 8008098: f443 3300 orr.w r3, r3, #131072 ; 0x20000 - 800809c: 62d3 str r3, [r2, #44] ; 0x2c - - /* SPDIFRX clock source configuration done later after clock selection check */ - break; - 800809e: e01a b.n 80080d6 - - case RCC_SPDIFRXCLKSOURCE_PLL2: /* PLL2 is used as clock source for SPDIFRX*/ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE); - 80080a0: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80080a4: 3308 adds r3, #8 - 80080a6: 2102 movs r1, #2 - 80080a8: 4618 mov r0, r3 - 80080aa: f002 fa49 bl 800a540 - 80080ae: 4603 mov r3, r0 - 80080b0: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - /* SPDIFRX clock source configuration done later after clock selection check */ - break; - 80080b4: e00f b.n 80080d6 - - case RCC_SPDIFRXCLKSOURCE_PLL3: /* PLL3 is used as clock source for SPDIFRX*/ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE); - 80080b6: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80080ba: 3328 adds r3, #40 ; 0x28 - 80080bc: 2102 movs r1, #2 - 80080be: 4618 mov r0, r3 - 80080c0: f002 faf0 bl 800a6a4 - 80080c4: 4603 mov r3, r0 - 80080c6: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - /* SPDIFRX clock source configuration done later after clock selection check */ - break; - 80080ca: e004 b.n 80080d6 - /* Internal OSC clock is used as source of SPDIFRX clock*/ - /* SPDIFRX clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - 80080cc: 2301 movs r3, #1 - 80080ce: f887 3117 strb.w r3, [r7, #279] ; 0x117 - break; - 80080d2: e000 b.n 80080d6 - break; - 80080d4: bf00 nop - } - - if (ret == HAL_OK) - 80080d6: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 80080da: 2b00 cmp r3, #0 - 80080dc: d10a bne.n 80080f4 - { - /* Set the source of SPDIFRX clock*/ - __HAL_RCC_SPDIFRX_CONFIG(PeriphClkInit->SpdifrxClockSelection); - 80080de: 4b98 ldr r3, [pc, #608] ; (8008340 ) - 80080e0: 6d1b ldr r3, [r3, #80] ; 0x50 - 80080e2: f423 1140 bic.w r1, r3, #3145728 ; 0x300000 - 80080e6: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80080ea: 6e5b ldr r3, [r3, #100] ; 0x64 - 80080ec: 4a94 ldr r2, [pc, #592] ; (8008340 ) - 80080ee: 430b orrs r3, r1 - 80080f0: 6513 str r3, [r2, #80] ; 0x50 - 80080f2: e003 b.n 80080fc - } - else - { - /* set overall return value */ - status = ret; - 80080f4: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 80080f8: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } - } - - /*---------------------------- SAI1 configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1) - 80080fc: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008100: e9d3 2300 ldrd r2, r3, [r3] - 8008104: f402 7880 and.w r8, r2, #256 ; 0x100 - 8008108: f04f 0900 mov.w r9, #0 - 800810c: ea58 0309 orrs.w r3, r8, r9 - 8008110: d047 beq.n 80081a2 - { - switch (PeriphClkInit->Sai1ClockSelection) - 8008112: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008116: 6d9b ldr r3, [r3, #88] ; 0x58 - 8008118: 2b04 cmp r3, #4 - 800811a: d82a bhi.n 8008172 - 800811c: a201 add r2, pc, #4 ; (adr r2, 8008124 ) - 800811e: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8008122: bf00 nop - 8008124: 08008139 .word 0x08008139 - 8008128: 08008147 .word 0x08008147 - 800812c: 0800815d .word 0x0800815d - 8008130: 0800817b .word 0x0800817b - 8008134: 0800817b .word 0x0800817b - { - case RCC_SAI1CLKSOURCE_PLL: /* PLL is used as clock source for SAI1*/ - /* Enable SAI Clock output generated form System PLL . */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ); - 8008138: 4b81 ldr r3, [pc, #516] ; (8008340 ) - 800813a: 6adb ldr r3, [r3, #44] ; 0x2c - 800813c: 4a80 ldr r2, [pc, #512] ; (8008340 ) - 800813e: f443 3300 orr.w r3, r3, #131072 ; 0x20000 - 8008142: 62d3 str r3, [r2, #44] ; 0x2c - - /* SAI1 clock source configuration done later after clock selection check */ - break; - 8008144: e01a b.n 800817c - - case RCC_SAI1CLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI1*/ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE); - 8008146: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 800814a: 3308 adds r3, #8 - 800814c: 2100 movs r1, #0 - 800814e: 4618 mov r0, r3 - 8008150: f002 f9f6 bl 800a540 - 8008154: 4603 mov r3, r0 - 8008156: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - /* SAI1 clock source configuration done later after clock selection check */ - break; - 800815a: e00f b.n 800817c - - case RCC_SAI1CLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI1*/ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE); - 800815c: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008160: 3328 adds r3, #40 ; 0x28 - 8008162: 2100 movs r1, #0 - 8008164: 4618 mov r0, r3 - 8008166: f002 fa9d bl 800a6a4 - 800816a: 4603 mov r3, r0 - 800816c: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - /* SAI1 clock source configuration done later after clock selection check */ - break; - 8008170: e004 b.n 800817c - /* HSI, HSE, or CSI oscillator is used as source of SAI1 clock */ - /* SAI1 clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - 8008172: 2301 movs r3, #1 - 8008174: f887 3117 strb.w r3, [r7, #279] ; 0x117 - break; - 8008178: e000 b.n 800817c - break; - 800817a: bf00 nop - } - - if (ret == HAL_OK) - 800817c: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8008180: 2b00 cmp r3, #0 - 8008182: d10a bne.n 800819a - { - /* Set the source of SAI1 clock*/ - __HAL_RCC_SAI1_CONFIG(PeriphClkInit->Sai1ClockSelection); - 8008184: 4b6e ldr r3, [pc, #440] ; (8008340 ) - 8008186: 6d1b ldr r3, [r3, #80] ; 0x50 - 8008188: f023 0107 bic.w r1, r3, #7 - 800818c: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008190: 6d9b ldr r3, [r3, #88] ; 0x58 - 8008192: 4a6b ldr r2, [pc, #428] ; (8008340 ) - 8008194: 430b orrs r3, r1 - 8008196: 6513 str r3, [r2, #80] ; 0x50 - 8008198: e003 b.n 80081a2 - } - else - { - /* set overall return value */ - status = ret; - 800819a: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 800819e: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } -#endif /*SAI2B*/ - -#if defined(SAI4) - /*---------------------------- SAI4A configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI4A) == RCC_PERIPHCLK_SAI4A) - 80081a2: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80081a6: e9d3 2300 ldrd r2, r3, [r3] - 80081aa: f402 6a80 and.w sl, r2, #1024 ; 0x400 - 80081ae: f04f 0b00 mov.w fp, #0 - 80081b2: ea5a 030b orrs.w r3, sl, fp - 80081b6: d05b beq.n 8008270 - { - switch (PeriphClkInit->Sai4AClockSelection) - 80081b8: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80081bc: f8d3 30a4 ldr.w r3, [r3, #164] ; 0xa4 - 80081c0: f5b3 0f20 cmp.w r3, #10485760 ; 0xa00000 - 80081c4: d03b beq.n 800823e - 80081c6: f5b3 0f20 cmp.w r3, #10485760 ; 0xa00000 - 80081ca: d834 bhi.n 8008236 - 80081cc: f5b3 0f00 cmp.w r3, #8388608 ; 0x800000 - 80081d0: d037 beq.n 8008242 - 80081d2: f5b3 0f00 cmp.w r3, #8388608 ; 0x800000 - 80081d6: d82e bhi.n 8008236 - 80081d8: f5b3 0fc0 cmp.w r3, #6291456 ; 0x600000 - 80081dc: d033 beq.n 8008246 - 80081de: f5b3 0fc0 cmp.w r3, #6291456 ; 0x600000 - 80081e2: d828 bhi.n 8008236 - 80081e4: f5b3 0f80 cmp.w r3, #4194304 ; 0x400000 - 80081e8: d01a beq.n 8008220 - 80081ea: f5b3 0f80 cmp.w r3, #4194304 ; 0x400000 - 80081ee: d822 bhi.n 8008236 - 80081f0: 2b00 cmp r3, #0 - 80081f2: d003 beq.n 80081fc - 80081f4: f5b3 1f00 cmp.w r3, #2097152 ; 0x200000 - 80081f8: d007 beq.n 800820a - 80081fa: e01c b.n 8008236 - { - case RCC_SAI4ACLKSOURCE_PLL: /* PLL is used as clock source for SAI2*/ - /* Enable SAI Clock output generated form System PLL . */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ); - 80081fc: 4b50 ldr r3, [pc, #320] ; (8008340 ) - 80081fe: 6adb ldr r3, [r3, #44] ; 0x2c - 8008200: 4a4f ldr r2, [pc, #316] ; (8008340 ) - 8008202: f443 3300 orr.w r3, r3, #131072 ; 0x20000 - 8008206: 62d3 str r3, [r2, #44] ; 0x2c - - /* SAI1 clock source configuration done later after clock selection check */ - break; - 8008208: e01e b.n 8008248 - - case RCC_SAI4ACLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2*/ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE); - 800820a: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 800820e: 3308 adds r3, #8 - 8008210: 2100 movs r1, #0 - 8008212: 4618 mov r0, r3 - 8008214: f002 f994 bl 800a540 - 8008218: 4603 mov r3, r0 - 800821a: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - /* SAI2 clock source configuration done later after clock selection check */ - break; - 800821e: e013 b.n 8008248 - - case RCC_SAI4ACLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2*/ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE); - 8008220: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008224: 3328 adds r3, #40 ; 0x28 - 8008226: 2100 movs r1, #0 - 8008228: 4618 mov r0, r3 - 800822a: f002 fa3b bl 800a6a4 - 800822e: 4603 mov r3, r0 - 8008230: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - /* SAI1 clock source configuration done later after clock selection check */ - break; - 8008234: e008 b.n 8008248 - /* SAI4A clock source configuration done later after clock selection check */ - break; -#endif /* RCC_VER_3_0 */ - - default: - ret = HAL_ERROR; - 8008236: 2301 movs r3, #1 - 8008238: f887 3117 strb.w r3, [r7, #279] ; 0x117 - break; - 800823c: e004 b.n 8008248 - break; - 800823e: bf00 nop - 8008240: e002 b.n 8008248 - break; - 8008242: bf00 nop - 8008244: e000 b.n 8008248 - break; - 8008246: bf00 nop - } - - if (ret == HAL_OK) - 8008248: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 800824c: 2b00 cmp r3, #0 - 800824e: d10b bne.n 8008268 - { - /* Set the source of SAI4A clock*/ - __HAL_RCC_SAI4A_CONFIG(PeriphClkInit->Sai4AClockSelection); - 8008250: 4b3b ldr r3, [pc, #236] ; (8008340 ) - 8008252: 6d9b ldr r3, [r3, #88] ; 0x58 - 8008254: f423 0160 bic.w r1, r3, #14680064 ; 0xe00000 - 8008258: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 800825c: f8d3 30a4 ldr.w r3, [r3, #164] ; 0xa4 - 8008260: 4a37 ldr r2, [pc, #220] ; (8008340 ) - 8008262: 430b orrs r3, r1 - 8008264: 6593 str r3, [r2, #88] ; 0x58 - 8008266: e003 b.n 8008270 - } - else - { - /* set overall return value */ - status = ret; - 8008268: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 800826c: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } - } - /*---------------------------- SAI4B configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI4B) == RCC_PERIPHCLK_SAI4B) - 8008270: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008274: e9d3 2300 ldrd r2, r3, [r3] - 8008278: f402 6300 and.w r3, r2, #2048 ; 0x800 - 800827c: f8c7 30f8 str.w r3, [r7, #248] ; 0xf8 - 8008280: 2300 movs r3, #0 - 8008282: f8c7 30fc str.w r3, [r7, #252] ; 0xfc - 8008286: e9d7 123e ldrd r1, r2, [r7, #248] ; 0xf8 - 800828a: 460b mov r3, r1 - 800828c: 4313 orrs r3, r2 - 800828e: d05d beq.n 800834c - { - switch (PeriphClkInit->Sai4BClockSelection) - 8008290: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008294: f8d3 30a8 ldr.w r3, [r3, #168] ; 0xa8 - 8008298: f1b3 6fa0 cmp.w r3, #83886080 ; 0x5000000 - 800829c: d03b beq.n 8008316 - 800829e: f1b3 6fa0 cmp.w r3, #83886080 ; 0x5000000 - 80082a2: d834 bhi.n 800830e - 80082a4: f1b3 6f80 cmp.w r3, #67108864 ; 0x4000000 - 80082a8: d037 beq.n 800831a - 80082aa: f1b3 6f80 cmp.w r3, #67108864 ; 0x4000000 - 80082ae: d82e bhi.n 800830e - 80082b0: f1b3 7f40 cmp.w r3, #50331648 ; 0x3000000 - 80082b4: d033 beq.n 800831e - 80082b6: f1b3 7f40 cmp.w r3, #50331648 ; 0x3000000 - 80082ba: d828 bhi.n 800830e - 80082bc: f1b3 7f00 cmp.w r3, #33554432 ; 0x2000000 - 80082c0: d01a beq.n 80082f8 - 80082c2: f1b3 7f00 cmp.w r3, #33554432 ; 0x2000000 - 80082c6: d822 bhi.n 800830e - 80082c8: 2b00 cmp r3, #0 - 80082ca: d003 beq.n 80082d4 - 80082cc: f1b3 7f80 cmp.w r3, #16777216 ; 0x1000000 - 80082d0: d007 beq.n 80082e2 - 80082d2: e01c b.n 800830e - { - case RCC_SAI4BCLKSOURCE_PLL: /* PLL is used as clock source for SAI2*/ - /* Enable SAI Clock output generated form System PLL . */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ); - 80082d4: 4b1a ldr r3, [pc, #104] ; (8008340 ) - 80082d6: 6adb ldr r3, [r3, #44] ; 0x2c - 80082d8: 4a19 ldr r2, [pc, #100] ; (8008340 ) - 80082da: f443 3300 orr.w r3, r3, #131072 ; 0x20000 - 80082de: 62d3 str r3, [r2, #44] ; 0x2c - - /* SAI1 clock source configuration done later after clock selection check */ - break; - 80082e0: e01e b.n 8008320 - - case RCC_SAI4BCLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2*/ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE); - 80082e2: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80082e6: 3308 adds r3, #8 - 80082e8: 2100 movs r1, #0 - 80082ea: 4618 mov r0, r3 - 80082ec: f002 f928 bl 800a540 - 80082f0: 4603 mov r3, r0 - 80082f2: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - /* SAI2 clock source configuration done later after clock selection check */ - break; - 80082f6: e013 b.n 8008320 - - case RCC_SAI4BCLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2*/ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE); - 80082f8: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80082fc: 3328 adds r3, #40 ; 0x28 - 80082fe: 2100 movs r1, #0 - 8008300: 4618 mov r0, r3 - 8008302: f002 f9cf bl 800a6a4 - 8008306: 4603 mov r3, r0 - 8008308: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - /* SAI1 clock source configuration done later after clock selection check */ - break; - 800830c: e008 b.n 8008320 - /* SAI4B clock source configuration done later after clock selection check */ - break; -#endif /* RCC_VER_3_0 */ - - default: - ret = HAL_ERROR; - 800830e: 2301 movs r3, #1 - 8008310: f887 3117 strb.w r3, [r7, #279] ; 0x117 - break; - 8008314: e004 b.n 8008320 - break; - 8008316: bf00 nop - 8008318: e002 b.n 8008320 - break; - 800831a: bf00 nop - 800831c: e000 b.n 8008320 - break; - 800831e: bf00 nop - } - - if (ret == HAL_OK) - 8008320: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8008324: 2b00 cmp r3, #0 - 8008326: d10d bne.n 8008344 - { - /* Set the source of SAI4B clock*/ - __HAL_RCC_SAI4B_CONFIG(PeriphClkInit->Sai4BClockSelection); - 8008328: 4b05 ldr r3, [pc, #20] ; (8008340 ) - 800832a: 6d9b ldr r3, [r3, #88] ; 0x58 - 800832c: f023 61e0 bic.w r1, r3, #117440512 ; 0x7000000 - 8008330: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008334: f8d3 30a8 ldr.w r3, [r3, #168] ; 0xa8 - 8008338: 4a01 ldr r2, [pc, #4] ; (8008340 ) - 800833a: 430b orrs r3, r1 - 800833c: 6593 str r3, [r2, #88] ; 0x58 - 800833e: e005 b.n 800834c - 8008340: 58024400 .word 0x58024400 - } - else - { - /* set overall return value */ - status = ret; - 8008344: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8008348: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } -#endif /*QUADSPI*/ - -#if defined(OCTOSPI1) || defined(OCTOSPI2) - /*---------------------------- OCTOSPI configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_OSPI) == RCC_PERIPHCLK_OSPI) - 800834c: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008350: e9d3 2300 ldrd r2, r3, [r3] - 8008354: f002 7300 and.w r3, r2, #33554432 ; 0x2000000 - 8008358: f8c7 30f0 str.w r3, [r7, #240] ; 0xf0 - 800835c: 2300 movs r3, #0 - 800835e: f8c7 30f4 str.w r3, [r7, #244] ; 0xf4 - 8008362: e9d7 123c ldrd r1, r2, [r7, #240] ; 0xf0 - 8008366: 460b mov r3, r1 - 8008368: 4313 orrs r3, r2 - 800836a: d03a beq.n 80083e2 - { - switch (PeriphClkInit->OspiClockSelection) - 800836c: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008370: 6cdb ldr r3, [r3, #76] ; 0x4c - 8008372: 2b30 cmp r3, #48 ; 0x30 - 8008374: d01f beq.n 80083b6 - 8008376: 2b30 cmp r3, #48 ; 0x30 - 8008378: d819 bhi.n 80083ae - 800837a: 2b20 cmp r3, #32 - 800837c: d00c beq.n 8008398 - 800837e: 2b20 cmp r3, #32 - 8008380: d815 bhi.n 80083ae - 8008382: 2b00 cmp r3, #0 - 8008384: d019 beq.n 80083ba - 8008386: 2b10 cmp r3, #16 - 8008388: d111 bne.n 80083ae - { - case RCC_OSPICLKSOURCE_PLL: /* PLL is used as clock source for OSPI*/ - /* Enable OSPI Clock output generated form System PLL . */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ); - 800838a: 4baa ldr r3, [pc, #680] ; (8008634 ) - 800838c: 6adb ldr r3, [r3, #44] ; 0x2c - 800838e: 4aa9 ldr r2, [pc, #676] ; (8008634 ) - 8008390: f443 3300 orr.w r3, r3, #131072 ; 0x20000 - 8008394: 62d3 str r3, [r2, #44] ; 0x2c - - /* OSPI clock source configuration done later after clock selection check */ - break; - 8008396: e011 b.n 80083bc - - case RCC_OSPICLKSOURCE_PLL2: /* PLL2 is used as clock source for OSPI*/ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE); - 8008398: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 800839c: 3308 adds r3, #8 - 800839e: 2102 movs r1, #2 - 80083a0: 4618 mov r0, r3 - 80083a2: f002 f8cd bl 800a540 - 80083a6: 4603 mov r3, r0 - 80083a8: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - /* OSPI clock source configuration done later after clock selection check */ - break; - 80083ac: e006 b.n 80083bc - case RCC_OSPICLKSOURCE_HCLK: - /* HCLK clock selected as OSPI kernel peripheral clock */ - break; - - default: - ret = HAL_ERROR; - 80083ae: 2301 movs r3, #1 - 80083b0: f887 3117 strb.w r3, [r7, #279] ; 0x117 - break; - 80083b4: e002 b.n 80083bc - break; - 80083b6: bf00 nop - 80083b8: e000 b.n 80083bc - break; - 80083ba: bf00 nop - } - - if (ret == HAL_OK) - 80083bc: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 80083c0: 2b00 cmp r3, #0 - 80083c2: d10a bne.n 80083da - { - /* Set the source of OSPI clock*/ - __HAL_RCC_OSPI_CONFIG(PeriphClkInit->OspiClockSelection); - 80083c4: 4b9b ldr r3, [pc, #620] ; (8008634 ) - 80083c6: 6cdb ldr r3, [r3, #76] ; 0x4c - 80083c8: f023 0130 bic.w r1, r3, #48 ; 0x30 - 80083cc: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80083d0: 6cdb ldr r3, [r3, #76] ; 0x4c - 80083d2: 4a98 ldr r2, [pc, #608] ; (8008634 ) - 80083d4: 430b orrs r3, r1 - 80083d6: 64d3 str r3, [r2, #76] ; 0x4c - 80083d8: e003 b.n 80083e2 - } - else - { - /* set overall return value */ - status = ret; - 80083da: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 80083de: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } - } -#endif /*OCTOSPI*/ - - /*---------------------------- SPI1/2/3 configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI123) == RCC_PERIPHCLK_SPI123) - 80083e2: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80083e6: e9d3 2300 ldrd r2, r3, [r3] - 80083ea: f402 5380 and.w r3, r2, #4096 ; 0x1000 - 80083ee: f8c7 30e8 str.w r3, [r7, #232] ; 0xe8 - 80083f2: 2300 movs r3, #0 - 80083f4: f8c7 30ec str.w r3, [r7, #236] ; 0xec - 80083f8: e9d7 123a ldrd r1, r2, [r7, #232] ; 0xe8 - 80083fc: 460b mov r3, r1 - 80083fe: 4313 orrs r3, r2 - 8008400: d051 beq.n 80084a6 - { - switch (PeriphClkInit->Spi123ClockSelection) - 8008402: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008406: 6ddb ldr r3, [r3, #92] ; 0x5c - 8008408: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 - 800840c: d035 beq.n 800847a - 800840e: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 - 8008412: d82e bhi.n 8008472 - 8008414: f5b3 5f40 cmp.w r3, #12288 ; 0x3000 - 8008418: d031 beq.n 800847e - 800841a: f5b3 5f40 cmp.w r3, #12288 ; 0x3000 - 800841e: d828 bhi.n 8008472 - 8008420: f5b3 5f00 cmp.w r3, #8192 ; 0x2000 - 8008424: d01a beq.n 800845c - 8008426: f5b3 5f00 cmp.w r3, #8192 ; 0x2000 - 800842a: d822 bhi.n 8008472 - 800842c: 2b00 cmp r3, #0 - 800842e: d003 beq.n 8008438 - 8008430: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 - 8008434: d007 beq.n 8008446 - 8008436: e01c b.n 8008472 - { - case RCC_SPI123CLKSOURCE_PLL: /* PLL is used as clock source for SPI1/2/3 */ - /* Enable SPI Clock output generated form System PLL . */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ); - 8008438: 4b7e ldr r3, [pc, #504] ; (8008634 ) - 800843a: 6adb ldr r3, [r3, #44] ; 0x2c - 800843c: 4a7d ldr r2, [pc, #500] ; (8008634 ) - 800843e: f443 3300 orr.w r3, r3, #131072 ; 0x20000 - 8008442: 62d3 str r3, [r2, #44] ; 0x2c - - /* SPI1/2/3 clock source configuration done later after clock selection check */ - break; - 8008444: e01c b.n 8008480 - - case RCC_SPI123CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI1/2/3 */ - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE); - 8008446: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 800844a: 3308 adds r3, #8 - 800844c: 2100 movs r1, #0 - 800844e: 4618 mov r0, r3 - 8008450: f002 f876 bl 800a540 - 8008454: 4603 mov r3, r0 - 8008456: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - /* SPI1/2/3 clock source configuration done later after clock selection check */ - break; - 800845a: e011 b.n 8008480 - - case RCC_SPI123CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI1/2/3 */ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE); - 800845c: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008460: 3328 adds r3, #40 ; 0x28 - 8008462: 2100 movs r1, #0 - 8008464: 4618 mov r0, r3 - 8008466: f002 f91d bl 800a6a4 - 800846a: 4603 mov r3, r0 - 800846c: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - /* SPI1/2/3 clock source configuration done later after clock selection check */ - break; - 8008470: e006 b.n 8008480 - /* HSI, HSE, or CSI oscillator is used as source of SPI1/2/3 clock */ - /* SPI1/2/3 clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - 8008472: 2301 movs r3, #1 - 8008474: f887 3117 strb.w r3, [r7, #279] ; 0x117 - break; - 8008478: e002 b.n 8008480 - break; - 800847a: bf00 nop - 800847c: e000 b.n 8008480 - break; - 800847e: bf00 nop - } - - if (ret == HAL_OK) - 8008480: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8008484: 2b00 cmp r3, #0 - 8008486: d10a bne.n 800849e - { - /* Set the source of SPI1/2/3 clock*/ - __HAL_RCC_SPI123_CONFIG(PeriphClkInit->Spi123ClockSelection); - 8008488: 4b6a ldr r3, [pc, #424] ; (8008634 ) - 800848a: 6d1b ldr r3, [r3, #80] ; 0x50 - 800848c: f423 41e0 bic.w r1, r3, #28672 ; 0x7000 - 8008490: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008494: 6ddb ldr r3, [r3, #92] ; 0x5c - 8008496: 4a67 ldr r2, [pc, #412] ; (8008634 ) - 8008498: 430b orrs r3, r1 - 800849a: 6513 str r3, [r2, #80] ; 0x50 - 800849c: e003 b.n 80084a6 - } - else - { - /* set overall return value */ - status = ret; - 800849e: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 80084a2: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } - } - - /*---------------------------- SPI4/5 configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI45) == RCC_PERIPHCLK_SPI45) - 80084a6: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80084aa: e9d3 2300 ldrd r2, r3, [r3] - 80084ae: f402 5300 and.w r3, r2, #8192 ; 0x2000 - 80084b2: f8c7 30e0 str.w r3, [r7, #224] ; 0xe0 - 80084b6: 2300 movs r3, #0 - 80084b8: f8c7 30e4 str.w r3, [r7, #228] ; 0xe4 - 80084bc: e9d7 1238 ldrd r1, r2, [r7, #224] ; 0xe0 - 80084c0: 460b mov r3, r1 - 80084c2: 4313 orrs r3, r2 - 80084c4: d053 beq.n 800856e - { - switch (PeriphClkInit->Spi45ClockSelection) - 80084c6: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80084ca: 6e1b ldr r3, [r3, #96] ; 0x60 - 80084cc: f5b3 2fa0 cmp.w r3, #327680 ; 0x50000 - 80084d0: d033 beq.n 800853a - 80084d2: f5b3 2fa0 cmp.w r3, #327680 ; 0x50000 - 80084d6: d82c bhi.n 8008532 - 80084d8: f5b3 2f80 cmp.w r3, #262144 ; 0x40000 - 80084dc: d02f beq.n 800853e - 80084de: f5b3 2f80 cmp.w r3, #262144 ; 0x40000 - 80084e2: d826 bhi.n 8008532 - 80084e4: f5b3 3f40 cmp.w r3, #196608 ; 0x30000 - 80084e8: d02b beq.n 8008542 - 80084ea: f5b3 3f40 cmp.w r3, #196608 ; 0x30000 - 80084ee: d820 bhi.n 8008532 - 80084f0: f5b3 3f00 cmp.w r3, #131072 ; 0x20000 - 80084f4: d012 beq.n 800851c - 80084f6: f5b3 3f00 cmp.w r3, #131072 ; 0x20000 - 80084fa: d81a bhi.n 8008532 - 80084fc: 2b00 cmp r3, #0 - 80084fe: d022 beq.n 8008546 - 8008500: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8008504: d115 bne.n 8008532 - /* SPI4/5 clock source configuration done later after clock selection check */ - break; - - case RCC_SPI45CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI4/5 */ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE); - 8008506: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 800850a: 3308 adds r3, #8 - 800850c: 2101 movs r1, #1 - 800850e: 4618 mov r0, r3 - 8008510: f002 f816 bl 800a540 - 8008514: 4603 mov r3, r0 - 8008516: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - /* SPI4/5 clock source configuration done later after clock selection check */ - break; - 800851a: e015 b.n 8008548 - case RCC_SPI45CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI4/5 */ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE); - 800851c: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008520: 3328 adds r3, #40 ; 0x28 - 8008522: 2101 movs r1, #1 - 8008524: 4618 mov r0, r3 - 8008526: f002 f8bd bl 800a6a4 - 800852a: 4603 mov r3, r0 - 800852c: f887 3117 strb.w r3, [r7, #279] ; 0x117 - /* SPI4/5 clock source configuration done later after clock selection check */ - break; - 8008530: e00a b.n 8008548 - /* HSE, oscillator is used as source of SPI4/5 clock */ - /* SPI4/5 clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - 8008532: 2301 movs r3, #1 - 8008534: f887 3117 strb.w r3, [r7, #279] ; 0x117 - break; - 8008538: e006 b.n 8008548 - break; - 800853a: bf00 nop - 800853c: e004 b.n 8008548 - break; - 800853e: bf00 nop - 8008540: e002 b.n 8008548 - break; - 8008542: bf00 nop - 8008544: e000 b.n 8008548 - break; - 8008546: bf00 nop - } - - if (ret == HAL_OK) - 8008548: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 800854c: 2b00 cmp r3, #0 - 800854e: d10a bne.n 8008566 - { - /* Set the source of SPI4/5 clock*/ - __HAL_RCC_SPI45_CONFIG(PeriphClkInit->Spi45ClockSelection); - 8008550: 4b38 ldr r3, [pc, #224] ; (8008634 ) - 8008552: 6d1b ldr r3, [r3, #80] ; 0x50 - 8008554: f423 21e0 bic.w r1, r3, #458752 ; 0x70000 - 8008558: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 800855c: 6e1b ldr r3, [r3, #96] ; 0x60 - 800855e: 4a35 ldr r2, [pc, #212] ; (8008634 ) - 8008560: 430b orrs r3, r1 - 8008562: 6513 str r3, [r2, #80] ; 0x50 - 8008564: e003 b.n 800856e - } - else - { - /* set overall return value */ - status = ret; - 8008566: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 800856a: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } - } - - /*---------------------------- SPI6 configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI6) == RCC_PERIPHCLK_SPI6) - 800856e: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008572: e9d3 2300 ldrd r2, r3, [r3] - 8008576: f402 4380 and.w r3, r2, #16384 ; 0x4000 - 800857a: f8c7 30d8 str.w r3, [r7, #216] ; 0xd8 - 800857e: 2300 movs r3, #0 - 8008580: f8c7 30dc str.w r3, [r7, #220] ; 0xdc - 8008584: e9d7 1236 ldrd r1, r2, [r7, #216] ; 0xd8 - 8008588: 460b mov r3, r1 - 800858a: 4313 orrs r3, r2 - 800858c: d058 beq.n 8008640 - { - switch (PeriphClkInit->Spi6ClockSelection) - 800858e: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008592: f8d3 30ac ldr.w r3, [r3, #172] ; 0xac - 8008596: f1b3 4fa0 cmp.w r3, #1342177280 ; 0x50000000 - 800859a: d033 beq.n 8008604 - 800859c: f1b3 4fa0 cmp.w r3, #1342177280 ; 0x50000000 - 80085a0: d82c bhi.n 80085fc - 80085a2: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 - 80085a6: d02f beq.n 8008608 - 80085a8: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 - 80085ac: d826 bhi.n 80085fc - 80085ae: f1b3 5f40 cmp.w r3, #805306368 ; 0x30000000 - 80085b2: d02b beq.n 800860c - 80085b4: f1b3 5f40 cmp.w r3, #805306368 ; 0x30000000 - 80085b8: d820 bhi.n 80085fc - 80085ba: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000 - 80085be: d012 beq.n 80085e6 - 80085c0: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000 - 80085c4: d81a bhi.n 80085fc - 80085c6: 2b00 cmp r3, #0 - 80085c8: d022 beq.n 8008610 - 80085ca: f1b3 5f80 cmp.w r3, #268435456 ; 0x10000000 - 80085ce: d115 bne.n 80085fc - /* SPI6 clock source configuration done later after clock selection check */ - break; - - case RCC_SPI6CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI6*/ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE); - 80085d0: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80085d4: 3308 adds r3, #8 - 80085d6: 2101 movs r1, #1 - 80085d8: 4618 mov r0, r3 - 80085da: f001 ffb1 bl 800a540 - 80085de: 4603 mov r3, r0 - 80085e0: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - /* SPI6 clock source configuration done later after clock selection check */ - break; - 80085e4: e015 b.n 8008612 - case RCC_SPI6CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI6*/ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE); - 80085e6: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80085ea: 3328 adds r3, #40 ; 0x28 - 80085ec: 2101 movs r1, #1 - 80085ee: 4618 mov r0, r3 - 80085f0: f002 f858 bl 800a6a4 - 80085f4: 4603 mov r3, r0 - 80085f6: f887 3117 strb.w r3, [r7, #279] ; 0x117 - /* SPI6 clock source configuration done later after clock selection check */ - break; - 80085fa: e00a b.n 8008612 - /* SPI6 clock source configuration done later after clock selection check */ - break; -#endif - - default: - ret = HAL_ERROR; - 80085fc: 2301 movs r3, #1 - 80085fe: f887 3117 strb.w r3, [r7, #279] ; 0x117 - break; - 8008602: e006 b.n 8008612 - break; - 8008604: bf00 nop - 8008606: e004 b.n 8008612 - break; - 8008608: bf00 nop - 800860a: e002 b.n 8008612 - break; - 800860c: bf00 nop - 800860e: e000 b.n 8008612 - break; - 8008610: bf00 nop - } - - if (ret == HAL_OK) - 8008612: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8008616: 2b00 cmp r3, #0 - 8008618: d10e bne.n 8008638 - { - /* Set the source of SPI6 clock*/ - __HAL_RCC_SPI6_CONFIG(PeriphClkInit->Spi6ClockSelection); - 800861a: 4b06 ldr r3, [pc, #24] ; (8008634 ) - 800861c: 6d9b ldr r3, [r3, #88] ; 0x58 - 800861e: f023 41e0 bic.w r1, r3, #1879048192 ; 0x70000000 - 8008622: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008626: f8d3 30ac ldr.w r3, [r3, #172] ; 0xac - 800862a: 4a02 ldr r2, [pc, #8] ; (8008634 ) - 800862c: 430b orrs r3, r1 - 800862e: 6593 str r3, [r2, #88] ; 0x58 - 8008630: e006 b.n 8008640 - 8008632: bf00 nop - 8008634: 58024400 .word 0x58024400 - } - else - { - /* set overall return value */ - status = ret; - 8008638: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 800863c: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } -#endif /*DSI*/ - -#if defined(FDCAN1) || defined(FDCAN2) - /*---------------------------- FDCAN configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FDCAN) == RCC_PERIPHCLK_FDCAN) - 8008640: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008644: e9d3 2300 ldrd r2, r3, [r3] - 8008648: f402 4300 and.w r3, r2, #32768 ; 0x8000 - 800864c: f8c7 30d0 str.w r3, [r7, #208] ; 0xd0 - 8008650: 2300 movs r3, #0 - 8008652: f8c7 30d4 str.w r3, [r7, #212] ; 0xd4 - 8008656: e9d7 1234 ldrd r1, r2, [r7, #208] ; 0xd0 - 800865a: 460b mov r3, r1 - 800865c: 4313 orrs r3, r2 - 800865e: d037 beq.n 80086d0 - { - switch (PeriphClkInit->FdcanClockSelection) - 8008660: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008664: 6edb ldr r3, [r3, #108] ; 0x6c - 8008666: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000 - 800866a: d00e beq.n 800868a - 800866c: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000 - 8008670: d816 bhi.n 80086a0 - 8008672: 2b00 cmp r3, #0 - 8008674: d018 beq.n 80086a8 - 8008676: f1b3 5f80 cmp.w r3, #268435456 ; 0x10000000 - 800867a: d111 bne.n 80086a0 - { - case RCC_FDCANCLKSOURCE_PLL: /* PLL is used as clock source for FDCAN*/ - /* Enable FDCAN Clock output generated form System PLL . */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ); - 800867c: 4bc4 ldr r3, [pc, #784] ; (8008990 ) - 800867e: 6adb ldr r3, [r3, #44] ; 0x2c - 8008680: 4ac3 ldr r2, [pc, #780] ; (8008990 ) - 8008682: f443 3300 orr.w r3, r3, #131072 ; 0x20000 - 8008686: 62d3 str r3, [r2, #44] ; 0x2c - - /* FDCAN clock source configuration done later after clock selection check */ - break; - 8008688: e00f b.n 80086aa - - case RCC_FDCANCLKSOURCE_PLL2: /* PLL2 is used as clock source for FDCAN*/ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE); - 800868a: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 800868e: 3308 adds r3, #8 - 8008690: 2101 movs r1, #1 - 8008692: 4618 mov r0, r3 - 8008694: f001 ff54 bl 800a540 - 8008698: 4603 mov r3, r0 - 800869a: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - /* FDCAN clock source configuration done later after clock selection check */ - break; - 800869e: e004 b.n 80086aa - /* HSE is used as clock source for FDCAN*/ - /* FDCAN clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - 80086a0: 2301 movs r3, #1 - 80086a2: f887 3117 strb.w r3, [r7, #279] ; 0x117 - break; - 80086a6: e000 b.n 80086aa - break; - 80086a8: bf00 nop - } - - if (ret == HAL_OK) - 80086aa: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 80086ae: 2b00 cmp r3, #0 - 80086b0: d10a bne.n 80086c8 - { - /* Set the source of FDCAN clock*/ - __HAL_RCC_FDCAN_CONFIG(PeriphClkInit->FdcanClockSelection); - 80086b2: 4bb7 ldr r3, [pc, #732] ; (8008990 ) - 80086b4: 6d1b ldr r3, [r3, #80] ; 0x50 - 80086b6: f023 5140 bic.w r1, r3, #805306368 ; 0x30000000 - 80086ba: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80086be: 6edb ldr r3, [r3, #108] ; 0x6c - 80086c0: 4ab3 ldr r2, [pc, #716] ; (8008990 ) - 80086c2: 430b orrs r3, r1 - 80086c4: 6513 str r3, [r2, #80] ; 0x50 - 80086c6: e003 b.n 80086d0 - } - else - { - /* set overall return value */ - status = ret; - 80086c8: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 80086cc: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } - } -#endif /*FDCAN1 || FDCAN2*/ - - /*---------------------------- FMC configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FMC) == RCC_PERIPHCLK_FMC) - 80086d0: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80086d4: e9d3 2300 ldrd r2, r3, [r3] - 80086d8: f002 7380 and.w r3, r2, #16777216 ; 0x1000000 - 80086dc: f8c7 30c8 str.w r3, [r7, #200] ; 0xc8 - 80086e0: 2300 movs r3, #0 - 80086e2: f8c7 30cc str.w r3, [r7, #204] ; 0xcc - 80086e6: e9d7 1232 ldrd r1, r2, [r7, #200] ; 0xc8 - 80086ea: 460b mov r3, r1 - 80086ec: 4313 orrs r3, r2 - 80086ee: d039 beq.n 8008764 - { - switch (PeriphClkInit->FmcClockSelection) - 80086f0: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80086f4: 6c9b ldr r3, [r3, #72] ; 0x48 - 80086f6: 2b03 cmp r3, #3 - 80086f8: d81c bhi.n 8008734 - 80086fa: a201 add r2, pc, #4 ; (adr r2, 8008700 ) - 80086fc: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8008700: 0800873d .word 0x0800873d - 8008704: 08008711 .word 0x08008711 - 8008708: 0800871f .word 0x0800871f - 800870c: 0800873d .word 0x0800873d - { - case RCC_FMCCLKSOURCE_PLL: /* PLL is used as clock source for FMC*/ - /* Enable FMC Clock output generated form System PLL . */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ); - 8008710: 4b9f ldr r3, [pc, #636] ; (8008990 ) - 8008712: 6adb ldr r3, [r3, #44] ; 0x2c - 8008714: 4a9e ldr r2, [pc, #632] ; (8008990 ) - 8008716: f443 3300 orr.w r3, r3, #131072 ; 0x20000 - 800871a: 62d3 str r3, [r2, #44] ; 0x2c - - /* FMC clock source configuration done later after clock selection check */ - break; - 800871c: e00f b.n 800873e - - case RCC_FMCCLKSOURCE_PLL2: /* PLL2 is used as clock source for FMC*/ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE); - 800871e: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008722: 3308 adds r3, #8 - 8008724: 2102 movs r1, #2 - 8008726: 4618 mov r0, r3 - 8008728: f001 ff0a bl 800a540 - 800872c: 4603 mov r3, r0 - 800872e: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - /* FMC clock source configuration done later after clock selection check */ - break; - 8008732: e004 b.n 800873e - case RCC_FMCCLKSOURCE_HCLK: - /* D1/CD HCLK clock selected as FMC kernel peripheral clock */ - break; - - default: - ret = HAL_ERROR; - 8008734: 2301 movs r3, #1 - 8008736: f887 3117 strb.w r3, [r7, #279] ; 0x117 - break; - 800873a: e000 b.n 800873e - break; - 800873c: bf00 nop - } - - if (ret == HAL_OK) - 800873e: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8008742: 2b00 cmp r3, #0 - 8008744: d10a bne.n 800875c - { - /* Set the source of FMC clock*/ - __HAL_RCC_FMC_CONFIG(PeriphClkInit->FmcClockSelection); - 8008746: 4b92 ldr r3, [pc, #584] ; (8008990 ) - 8008748: 6cdb ldr r3, [r3, #76] ; 0x4c - 800874a: f023 0103 bic.w r1, r3, #3 - 800874e: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008752: 6c9b ldr r3, [r3, #72] ; 0x48 - 8008754: 4a8e ldr r2, [pc, #568] ; (8008990 ) - 8008756: 430b orrs r3, r1 - 8008758: 64d3 str r3, [r2, #76] ; 0x4c - 800875a: e003 b.n 8008764 - } - else - { - /* set overall return value */ - status = ret; - 800875c: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8008760: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } - } - - /*---------------------------- RTC configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC) - 8008764: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008768: e9d3 2300 ldrd r2, r3, [r3] - 800876c: f402 0380 and.w r3, r2, #4194304 ; 0x400000 - 8008770: f8c7 30c0 str.w r3, [r7, #192] ; 0xc0 - 8008774: 2300 movs r3, #0 - 8008776: f8c7 30c4 str.w r3, [r7, #196] ; 0xc4 - 800877a: e9d7 1230 ldrd r1, r2, [r7, #192] ; 0xc0 - 800877e: 460b mov r3, r1 - 8008780: 4313 orrs r3, r2 - 8008782: f000 8099 beq.w 80088b8 - { - /* check for RTC Parameters used to output RTCCLK */ - assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); - - /* Enable write access to Backup domain */ - SET_BIT(PWR->CR1, PWR_CR1_DBP); - 8008786: 4b83 ldr r3, [pc, #524] ; (8008994 ) - 8008788: 681b ldr r3, [r3, #0] - 800878a: 4a82 ldr r2, [pc, #520] ; (8008994 ) - 800878c: f443 7380 orr.w r3, r3, #256 ; 0x100 - 8008790: 6013 str r3, [r2, #0] - - /* Wait for Backup domain Write protection disable */ - tickstart = HAL_GetTick(); - 8008792: f7f9 fde7 bl 8002364 - 8008796: f8c7 0110 str.w r0, [r7, #272] ; 0x110 - - while ((PWR->CR1 & PWR_CR1_DBP) == 0U) - 800879a: e00b b.n 80087b4 - { - if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - 800879c: f7f9 fde2 bl 8002364 - 80087a0: 4602 mov r2, r0 - 80087a2: f8d7 3110 ldr.w r3, [r7, #272] ; 0x110 - 80087a6: 1ad3 subs r3, r2, r3 - 80087a8: 2b64 cmp r3, #100 ; 0x64 - 80087aa: d903 bls.n 80087b4 - { - ret = HAL_TIMEOUT; - 80087ac: 2303 movs r3, #3 - 80087ae: f887 3117 strb.w r3, [r7, #279] ; 0x117 - break; - 80087b2: e005 b.n 80087c0 - while ((PWR->CR1 & PWR_CR1_DBP) == 0U) - 80087b4: 4b77 ldr r3, [pc, #476] ; (8008994 ) - 80087b6: 681b ldr r3, [r3, #0] - 80087b8: f403 7380 and.w r3, r3, #256 ; 0x100 - 80087bc: 2b00 cmp r3, #0 - 80087be: d0ed beq.n 800879c - } - } - - if (ret == HAL_OK) - 80087c0: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 80087c4: 2b00 cmp r3, #0 - 80087c6: d173 bne.n 80088b0 - { - /* Reset the Backup domain only if the RTC Clock source selection is modified */ - if ((RCC->BDCR & RCC_BDCR_RTCSEL) != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL)) - 80087c8: 4b71 ldr r3, [pc, #452] ; (8008990 ) - 80087ca: 6f1a ldr r2, [r3, #112] ; 0x70 - 80087cc: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80087d0: f8d3 30b0 ldr.w r3, [r3, #176] ; 0xb0 - 80087d4: 4053 eors r3, r2 - 80087d6: f403 7340 and.w r3, r3, #768 ; 0x300 - 80087da: 2b00 cmp r3, #0 - 80087dc: d015 beq.n 800880a - { - /* Store the content of BDCR register before the reset of Backup Domain */ - tmpreg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL)); - 80087de: 4b6c ldr r3, [pc, #432] ; (8008990 ) - 80087e0: 6f1b ldr r3, [r3, #112] ; 0x70 - 80087e2: f423 7340 bic.w r3, r3, #768 ; 0x300 - 80087e6: f8c7 310c str.w r3, [r7, #268] ; 0x10c - /* RTC Clock selection can be changed only if the Backup Domain is reset */ - __HAL_RCC_BACKUPRESET_FORCE(); - 80087ea: 4b69 ldr r3, [pc, #420] ; (8008990 ) - 80087ec: 6f1b ldr r3, [r3, #112] ; 0x70 - 80087ee: 4a68 ldr r2, [pc, #416] ; (8008990 ) - 80087f0: f443 3380 orr.w r3, r3, #65536 ; 0x10000 - 80087f4: 6713 str r3, [r2, #112] ; 0x70 - __HAL_RCC_BACKUPRESET_RELEASE(); - 80087f6: 4b66 ldr r3, [pc, #408] ; (8008990 ) - 80087f8: 6f1b ldr r3, [r3, #112] ; 0x70 - 80087fa: 4a65 ldr r2, [pc, #404] ; (8008990 ) - 80087fc: f423 3380 bic.w r3, r3, #65536 ; 0x10000 - 8008800: 6713 str r3, [r2, #112] ; 0x70 - /* Restore the Content of BDCR register */ - RCC->BDCR = tmpreg; - 8008802: 4a63 ldr r2, [pc, #396] ; (8008990 ) - 8008804: f8d7 310c ldr.w r3, [r7, #268] ; 0x10c - 8008808: 6713 str r3, [r2, #112] ; 0x70 - } - - /* If LSE is selected as RTC clock source (and enabled prior to Backup Domain reset), wait for LSE reactivation */ - if (PeriphClkInit->RTCClockSelection == RCC_RTCCLKSOURCE_LSE) - 800880a: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 800880e: f8d3 30b0 ldr.w r3, [r3, #176] ; 0xb0 - 8008812: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 8008816: d118 bne.n 800884a - { - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 8008818: f7f9 fda4 bl 8002364 - 800881c: f8c7 0110 str.w r0, [r7, #272] ; 0x110 - - /* Wait till LSE is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U) - 8008820: e00d b.n 800883e - { - if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 8008822: f7f9 fd9f bl 8002364 - 8008826: 4602 mov r2, r0 - 8008828: f8d7 3110 ldr.w r3, [r7, #272] ; 0x110 - 800882c: 1ad2 subs r2, r2, r3 - 800882e: f241 3388 movw r3, #5000 ; 0x1388 - 8008832: 429a cmp r2, r3 - 8008834: d903 bls.n 800883e - { - ret = HAL_TIMEOUT; - 8008836: 2303 movs r3, #3 - 8008838: f887 3117 strb.w r3, [r7, #279] ; 0x117 - break; - 800883c: e005 b.n 800884a - while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U) - 800883e: 4b54 ldr r3, [pc, #336] ; (8008990 ) - 8008840: 6f1b ldr r3, [r3, #112] ; 0x70 - 8008842: f003 0302 and.w r3, r3, #2 - 8008846: 2b00 cmp r3, #0 - 8008848: d0eb beq.n 8008822 - } - } - } - - if (ret == HAL_OK) - 800884a: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 800884e: 2b00 cmp r3, #0 - 8008850: d129 bne.n 80088a6 - { - __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection); - 8008852: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008856: f8d3 30b0 ldr.w r3, [r3, #176] ; 0xb0 - 800885a: f403 7340 and.w r3, r3, #768 ; 0x300 - 800885e: f5b3 7f40 cmp.w r3, #768 ; 0x300 - 8008862: d10e bne.n 8008882 - 8008864: 4b4a ldr r3, [pc, #296] ; (8008990 ) - 8008866: 691b ldr r3, [r3, #16] - 8008868: f423 517c bic.w r1, r3, #16128 ; 0x3f00 - 800886c: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008870: f8d3 30b0 ldr.w r3, [r3, #176] ; 0xb0 - 8008874: 091a lsrs r2, r3, #4 - 8008876: 4b48 ldr r3, [pc, #288] ; (8008998 ) - 8008878: 4013 ands r3, r2 - 800887a: 4a45 ldr r2, [pc, #276] ; (8008990 ) - 800887c: 430b orrs r3, r1 - 800887e: 6113 str r3, [r2, #16] - 8008880: e005 b.n 800888e - 8008882: 4b43 ldr r3, [pc, #268] ; (8008990 ) - 8008884: 691b ldr r3, [r3, #16] - 8008886: 4a42 ldr r2, [pc, #264] ; (8008990 ) - 8008888: f423 537c bic.w r3, r3, #16128 ; 0x3f00 - 800888c: 6113 str r3, [r2, #16] - 800888e: 4b40 ldr r3, [pc, #256] ; (8008990 ) - 8008890: 6f19 ldr r1, [r3, #112] ; 0x70 - 8008892: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008896: f8d3 30b0 ldr.w r3, [r3, #176] ; 0xb0 - 800889a: f3c3 030b ubfx r3, r3, #0, #12 - 800889e: 4a3c ldr r2, [pc, #240] ; (8008990 ) - 80088a0: 430b orrs r3, r1 - 80088a2: 6713 str r3, [r2, #112] ; 0x70 - 80088a4: e008 b.n 80088b8 - } - else - { - /* set overall return value */ - status = ret; - 80088a6: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 80088aa: f887 3116 strb.w r3, [r7, #278] ; 0x116 - 80088ae: e003 b.n 80088b8 - } - } - else - { - /* set overall return value */ - status = ret; - 80088b0: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 80088b4: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } - } - - - /*-------------------------- USART1/6 configuration --------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART16) == RCC_PERIPHCLK_USART16) - 80088b8: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80088bc: e9d3 2300 ldrd r2, r3, [r3] - 80088c0: f002 0301 and.w r3, r2, #1 - 80088c4: f8c7 30b8 str.w r3, [r7, #184] ; 0xb8 - 80088c8: 2300 movs r3, #0 - 80088ca: f8c7 30bc str.w r3, [r7, #188] ; 0xbc - 80088ce: e9d7 122e ldrd r1, r2, [r7, #184] ; 0xb8 - 80088d2: 460b mov r3, r1 - 80088d4: 4313 orrs r3, r2 - 80088d6: f000 808f beq.w 80089f8 - { - switch (PeriphClkInit->Usart16ClockSelection) - 80088da: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80088de: 6f9b ldr r3, [r3, #120] ; 0x78 - 80088e0: 2b28 cmp r3, #40 ; 0x28 - 80088e2: d871 bhi.n 80089c8 - 80088e4: a201 add r2, pc, #4 ; (adr r2, 80088ec ) - 80088e6: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 80088ea: bf00 nop - 80088ec: 080089d1 .word 0x080089d1 - 80088f0: 080089c9 .word 0x080089c9 - 80088f4: 080089c9 .word 0x080089c9 - 80088f8: 080089c9 .word 0x080089c9 - 80088fc: 080089c9 .word 0x080089c9 - 8008900: 080089c9 .word 0x080089c9 - 8008904: 080089c9 .word 0x080089c9 - 8008908: 080089c9 .word 0x080089c9 - 800890c: 0800899d .word 0x0800899d - 8008910: 080089c9 .word 0x080089c9 - 8008914: 080089c9 .word 0x080089c9 - 8008918: 080089c9 .word 0x080089c9 - 800891c: 080089c9 .word 0x080089c9 - 8008920: 080089c9 .word 0x080089c9 - 8008924: 080089c9 .word 0x080089c9 - 8008928: 080089c9 .word 0x080089c9 - 800892c: 080089b3 .word 0x080089b3 - 8008930: 080089c9 .word 0x080089c9 - 8008934: 080089c9 .word 0x080089c9 - 8008938: 080089c9 .word 0x080089c9 - 800893c: 080089c9 .word 0x080089c9 - 8008940: 080089c9 .word 0x080089c9 - 8008944: 080089c9 .word 0x080089c9 - 8008948: 080089c9 .word 0x080089c9 - 800894c: 080089d1 .word 0x080089d1 - 8008950: 080089c9 .word 0x080089c9 - 8008954: 080089c9 .word 0x080089c9 - 8008958: 080089c9 .word 0x080089c9 - 800895c: 080089c9 .word 0x080089c9 - 8008960: 080089c9 .word 0x080089c9 - 8008964: 080089c9 .word 0x080089c9 - 8008968: 080089c9 .word 0x080089c9 - 800896c: 080089d1 .word 0x080089d1 - 8008970: 080089c9 .word 0x080089c9 - 8008974: 080089c9 .word 0x080089c9 - 8008978: 080089c9 .word 0x080089c9 - 800897c: 080089c9 .word 0x080089c9 - 8008980: 080089c9 .word 0x080089c9 - 8008984: 080089c9 .word 0x080089c9 - 8008988: 080089c9 .word 0x080089c9 - 800898c: 080089d1 .word 0x080089d1 - 8008990: 58024400 .word 0x58024400 - 8008994: 58024800 .word 0x58024800 - 8008998: 00ffffcf .word 0x00ffffcf - case RCC_USART16CLKSOURCE_PCLK2: /* CD/D2 PCLK2 as clock source for USART1/6 */ - /* USART1/6 clock source configuration done later after clock selection check */ - break; - - case RCC_USART16CLKSOURCE_PLL2: /* PLL2 is used as clock source for USART1/6 */ - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE); - 800899c: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80089a0: 3308 adds r3, #8 - 80089a2: 2101 movs r1, #1 - 80089a4: 4618 mov r0, r3 - 80089a6: f001 fdcb bl 800a540 - 80089aa: 4603 mov r3, r0 - 80089ac: f887 3117 strb.w r3, [r7, #279] ; 0x117 - /* USART1/6 clock source configuration done later after clock selection check */ - break; - 80089b0: e00f b.n 80089d2 - - case RCC_USART16CLKSOURCE_PLL3: /* PLL3 is used as clock source for USART1/6 */ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE); - 80089b2: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80089b6: 3328 adds r3, #40 ; 0x28 - 80089b8: 2101 movs r1, #1 - 80089ba: 4618 mov r0, r3 - 80089bc: f001 fe72 bl 800a6a4 - 80089c0: 4603 mov r3, r0 - 80089c2: f887 3117 strb.w r3, [r7, #279] ; 0x117 - /* USART1/6 clock source configuration done later after clock selection check */ - break; - 80089c6: e004 b.n 80089d2 - /* LSE, oscillator is used as source of USART1/6 clock */ - /* USART1/6 clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - 80089c8: 2301 movs r3, #1 - 80089ca: f887 3117 strb.w r3, [r7, #279] ; 0x117 - break; - 80089ce: e000 b.n 80089d2 - break; - 80089d0: bf00 nop - } - - if (ret == HAL_OK) - 80089d2: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 80089d6: 2b00 cmp r3, #0 - 80089d8: d10a bne.n 80089f0 - { - /* Set the source of USART1/6 clock */ - __HAL_RCC_USART16_CONFIG(PeriphClkInit->Usart16ClockSelection); - 80089da: 4bbf ldr r3, [pc, #764] ; (8008cd8 ) - 80089dc: 6d5b ldr r3, [r3, #84] ; 0x54 - 80089de: f023 0138 bic.w r1, r3, #56 ; 0x38 - 80089e2: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80089e6: 6f9b ldr r3, [r3, #120] ; 0x78 - 80089e8: 4abb ldr r2, [pc, #748] ; (8008cd8 ) - 80089ea: 430b orrs r3, r1 - 80089ec: 6553 str r3, [r2, #84] ; 0x54 - 80089ee: e003 b.n 80089f8 - } - else - { - /* set overall return value */ - status = ret; - 80089f0: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 80089f4: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } - } - - /*-------------------------- USART2/3/4/5/7/8 Configuration --------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART234578) == RCC_PERIPHCLK_USART234578) - 80089f8: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80089fc: e9d3 2300 ldrd r2, r3, [r3] - 8008a00: f002 0302 and.w r3, r2, #2 - 8008a04: f8c7 30b0 str.w r3, [r7, #176] ; 0xb0 - 8008a08: 2300 movs r3, #0 - 8008a0a: f8c7 30b4 str.w r3, [r7, #180] ; 0xb4 - 8008a0e: e9d7 122c ldrd r1, r2, [r7, #176] ; 0xb0 - 8008a12: 460b mov r3, r1 - 8008a14: 4313 orrs r3, r2 - 8008a16: d041 beq.n 8008a9c - { - switch (PeriphClkInit->Usart234578ClockSelection) - 8008a18: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008a1c: 6f5b ldr r3, [r3, #116] ; 0x74 - 8008a1e: 2b05 cmp r3, #5 - 8008a20: d824 bhi.n 8008a6c - 8008a22: a201 add r2, pc, #4 ; (adr r2, 8008a28 ) - 8008a24: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8008a28: 08008a75 .word 0x08008a75 - 8008a2c: 08008a41 .word 0x08008a41 - 8008a30: 08008a57 .word 0x08008a57 - 8008a34: 08008a75 .word 0x08008a75 - 8008a38: 08008a75 .word 0x08008a75 - 8008a3c: 08008a75 .word 0x08008a75 - case RCC_USART234578CLKSOURCE_PCLK1: /* CD/D2 PCLK1 as clock source for USART2/3/4/5/7/8 */ - /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */ - break; - - case RCC_USART234578CLKSOURCE_PLL2: /* PLL2 is used as clock source for USART2/3/4/5/7/8 */ - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE); - 8008a40: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008a44: 3308 adds r3, #8 - 8008a46: 2101 movs r1, #1 - 8008a48: 4618 mov r0, r3 - 8008a4a: f001 fd79 bl 800a540 - 8008a4e: 4603 mov r3, r0 - 8008a50: f887 3117 strb.w r3, [r7, #279] ; 0x117 - /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */ - break; - 8008a54: e00f b.n 8008a76 - - case RCC_USART234578CLKSOURCE_PLL3: /* PLL3 is used as clock source for USART2/3/4/5/7/8 */ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE); - 8008a56: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008a5a: 3328 adds r3, #40 ; 0x28 - 8008a5c: 2101 movs r1, #1 - 8008a5e: 4618 mov r0, r3 - 8008a60: f001 fe20 bl 800a6a4 - 8008a64: 4603 mov r3, r0 - 8008a66: f887 3117 strb.w r3, [r7, #279] ; 0x117 - /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */ - break; - 8008a6a: e004 b.n 8008a76 - /* LSE, oscillator is used as source of USART2/3/4/5/7/8 clock */ - /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - 8008a6c: 2301 movs r3, #1 - 8008a6e: f887 3117 strb.w r3, [r7, #279] ; 0x117 - break; - 8008a72: e000 b.n 8008a76 - break; - 8008a74: bf00 nop - } - - if (ret == HAL_OK) - 8008a76: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8008a7a: 2b00 cmp r3, #0 - 8008a7c: d10a bne.n 8008a94 - { - /* Set the source of USART2/3/4/5/7/8 clock */ - __HAL_RCC_USART234578_CONFIG(PeriphClkInit->Usart234578ClockSelection); - 8008a7e: 4b96 ldr r3, [pc, #600] ; (8008cd8 ) - 8008a80: 6d5b ldr r3, [r3, #84] ; 0x54 - 8008a82: f023 0107 bic.w r1, r3, #7 - 8008a86: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008a8a: 6f5b ldr r3, [r3, #116] ; 0x74 - 8008a8c: 4a92 ldr r2, [pc, #584] ; (8008cd8 ) - 8008a8e: 430b orrs r3, r1 - 8008a90: 6553 str r3, [r2, #84] ; 0x54 - 8008a92: e003 b.n 8008a9c - } - else - { - /* set overall return value */ - status = ret; - 8008a94: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8008a98: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } - } - - /*-------------------------- LPUART1 Configuration -------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPUART1) == RCC_PERIPHCLK_LPUART1) - 8008a9c: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008aa0: e9d3 2300 ldrd r2, r3, [r3] - 8008aa4: f002 0304 and.w r3, r2, #4 - 8008aa8: f8c7 30a8 str.w r3, [r7, #168] ; 0xa8 - 8008aac: 2300 movs r3, #0 - 8008aae: f8c7 30ac str.w r3, [r7, #172] ; 0xac - 8008ab2: e9d7 122a ldrd r1, r2, [r7, #168] ; 0xa8 - 8008ab6: 460b mov r3, r1 - 8008ab8: 4313 orrs r3, r2 - 8008aba: d044 beq.n 8008b46 - { - switch (PeriphClkInit->Lpuart1ClockSelection) - 8008abc: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008ac0: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8008ac4: 2b05 cmp r3, #5 - 8008ac6: d825 bhi.n 8008b14 - 8008ac8: a201 add r2, pc, #4 ; (adr r2, 8008ad0 ) - 8008aca: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8008ace: bf00 nop - 8008ad0: 08008b1d .word 0x08008b1d - 8008ad4: 08008ae9 .word 0x08008ae9 - 8008ad8: 08008aff .word 0x08008aff - 8008adc: 08008b1d .word 0x08008b1d - 8008ae0: 08008b1d .word 0x08008b1d - 8008ae4: 08008b1d .word 0x08008b1d - case RCC_LPUART1CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPUART1 */ - /* LPUART1 clock source configuration done later after clock selection check */ - break; - - case RCC_LPUART1CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPUART1 */ - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE); - 8008ae8: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008aec: 3308 adds r3, #8 - 8008aee: 2101 movs r1, #1 - 8008af0: 4618 mov r0, r3 - 8008af2: f001 fd25 bl 800a540 - 8008af6: 4603 mov r3, r0 - 8008af8: f887 3117 strb.w r3, [r7, #279] ; 0x117 - /* LPUART1 clock source configuration done later after clock selection check */ - break; - 8008afc: e00f b.n 8008b1e - - case RCC_LPUART1CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPUART1 */ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE); - 8008afe: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008b02: 3328 adds r3, #40 ; 0x28 - 8008b04: 2101 movs r1, #1 - 8008b06: 4618 mov r0, r3 - 8008b08: f001 fdcc bl 800a6a4 - 8008b0c: 4603 mov r3, r0 - 8008b0e: f887 3117 strb.w r3, [r7, #279] ; 0x117 - /* LPUART1 clock source configuration done later after clock selection check */ - break; - 8008b12: e004 b.n 8008b1e - /* LSE, oscillator is used as source of LPUART1 clock */ - /* LPUART1 clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - 8008b14: 2301 movs r3, #1 - 8008b16: f887 3117 strb.w r3, [r7, #279] ; 0x117 - break; - 8008b1a: e000 b.n 8008b1e - break; - 8008b1c: bf00 nop - } - - if (ret == HAL_OK) - 8008b1e: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8008b22: 2b00 cmp r3, #0 - 8008b24: d10b bne.n 8008b3e - { - /* Set the source of LPUART1 clock */ - __HAL_RCC_LPUART1_CONFIG(PeriphClkInit->Lpuart1ClockSelection); - 8008b26: 4b6c ldr r3, [pc, #432] ; (8008cd8 ) - 8008b28: 6d9b ldr r3, [r3, #88] ; 0x58 - 8008b2a: f023 0107 bic.w r1, r3, #7 - 8008b2e: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008b32: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8008b36: 4a68 ldr r2, [pc, #416] ; (8008cd8 ) - 8008b38: 430b orrs r3, r1 - 8008b3a: 6593 str r3, [r2, #88] ; 0x58 - 8008b3c: e003 b.n 8008b46 - } - else - { - /* set overall return value */ - status = ret; - 8008b3e: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8008b42: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } - } - - /*---------------------------- LPTIM1 configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM1) == RCC_PERIPHCLK_LPTIM1) - 8008b46: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008b4a: e9d3 2300 ldrd r2, r3, [r3] - 8008b4e: f002 0320 and.w r3, r2, #32 - 8008b52: f8c7 30a0 str.w r3, [r7, #160] ; 0xa0 - 8008b56: 2300 movs r3, #0 - 8008b58: f8c7 30a4 str.w r3, [r7, #164] ; 0xa4 - 8008b5c: e9d7 1228 ldrd r1, r2, [r7, #160] ; 0xa0 - 8008b60: 460b mov r3, r1 - 8008b62: 4313 orrs r3, r2 - 8008b64: d055 beq.n 8008c12 - { - switch (PeriphClkInit->Lptim1ClockSelection) - 8008b66: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008b6a: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c - 8008b6e: f1b3 4fa0 cmp.w r3, #1342177280 ; 0x50000000 - 8008b72: d033 beq.n 8008bdc - 8008b74: f1b3 4fa0 cmp.w r3, #1342177280 ; 0x50000000 - 8008b78: d82c bhi.n 8008bd4 - 8008b7a: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 - 8008b7e: d02f beq.n 8008be0 - 8008b80: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 - 8008b84: d826 bhi.n 8008bd4 - 8008b86: f1b3 5f40 cmp.w r3, #805306368 ; 0x30000000 - 8008b8a: d02b beq.n 8008be4 - 8008b8c: f1b3 5f40 cmp.w r3, #805306368 ; 0x30000000 - 8008b90: d820 bhi.n 8008bd4 - 8008b92: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000 - 8008b96: d012 beq.n 8008bbe - 8008b98: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000 - 8008b9c: d81a bhi.n 8008bd4 - 8008b9e: 2b00 cmp r3, #0 - 8008ba0: d022 beq.n 8008be8 - 8008ba2: f1b3 5f80 cmp.w r3, #268435456 ; 0x10000000 - 8008ba6: d115 bne.n 8008bd4 - /* LPTIM1 clock source configuration done later after clock selection check */ - break; - - case RCC_LPTIM1CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM1*/ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE); - 8008ba8: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008bac: 3308 adds r3, #8 - 8008bae: 2100 movs r1, #0 - 8008bb0: 4618 mov r0, r3 - 8008bb2: f001 fcc5 bl 800a540 - 8008bb6: 4603 mov r3, r0 - 8008bb8: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - /* LPTIM1 clock source configuration done later after clock selection check */ - break; - 8008bbc: e015 b.n 8008bea - - case RCC_LPTIM1CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM1*/ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE); - 8008bbe: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008bc2: 3328 adds r3, #40 ; 0x28 - 8008bc4: 2102 movs r1, #2 - 8008bc6: 4618 mov r0, r3 - 8008bc8: f001 fd6c bl 800a6a4 - 8008bcc: 4603 mov r3, r0 - 8008bce: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - /* LPTIM1 clock source configuration done later after clock selection check */ - break; - 8008bd2: e00a b.n 8008bea - /* HSI, HSE, or CSI oscillator is used as source of LPTIM1 clock */ - /* LPTIM1 clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - 8008bd4: 2301 movs r3, #1 - 8008bd6: f887 3117 strb.w r3, [r7, #279] ; 0x117 - break; - 8008bda: e006 b.n 8008bea - break; - 8008bdc: bf00 nop - 8008bde: e004 b.n 8008bea - break; - 8008be0: bf00 nop - 8008be2: e002 b.n 8008bea - break; - 8008be4: bf00 nop - 8008be6: e000 b.n 8008bea - break; - 8008be8: bf00 nop - } - - if (ret == HAL_OK) - 8008bea: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8008bee: 2b00 cmp r3, #0 - 8008bf0: d10b bne.n 8008c0a - { - /* Set the source of LPTIM1 clock*/ - __HAL_RCC_LPTIM1_CONFIG(PeriphClkInit->Lptim1ClockSelection); - 8008bf2: 4b39 ldr r3, [pc, #228] ; (8008cd8 ) - 8008bf4: 6d5b ldr r3, [r3, #84] ; 0x54 - 8008bf6: f023 41e0 bic.w r1, r3, #1879048192 ; 0x70000000 - 8008bfa: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008bfe: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c - 8008c02: 4a35 ldr r2, [pc, #212] ; (8008cd8 ) - 8008c04: 430b orrs r3, r1 - 8008c06: 6553 str r3, [r2, #84] ; 0x54 - 8008c08: e003 b.n 8008c12 - } - else - { - /* set overall return value */ - status = ret; - 8008c0a: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8008c0e: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } - } - - /*---------------------------- LPTIM2 configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM2) == RCC_PERIPHCLK_LPTIM2) - 8008c12: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008c16: e9d3 2300 ldrd r2, r3, [r3] - 8008c1a: f002 0340 and.w r3, r2, #64 ; 0x40 - 8008c1e: f8c7 3098 str.w r3, [r7, #152] ; 0x98 - 8008c22: 2300 movs r3, #0 - 8008c24: f8c7 309c str.w r3, [r7, #156] ; 0x9c - 8008c28: e9d7 1226 ldrd r1, r2, [r7, #152] ; 0x98 - 8008c2c: 460b mov r3, r1 - 8008c2e: 4313 orrs r3, r2 - 8008c30: d058 beq.n 8008ce4 - { - switch (PeriphClkInit->Lptim2ClockSelection) - 8008c32: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008c36: f8d3 3098 ldr.w r3, [r3, #152] ; 0x98 - 8008c3a: f5b3 5fa0 cmp.w r3, #5120 ; 0x1400 - 8008c3e: d033 beq.n 8008ca8 - 8008c40: f5b3 5fa0 cmp.w r3, #5120 ; 0x1400 - 8008c44: d82c bhi.n 8008ca0 - 8008c46: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 - 8008c4a: d02f beq.n 8008cac - 8008c4c: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 - 8008c50: d826 bhi.n 8008ca0 - 8008c52: f5b3 6f40 cmp.w r3, #3072 ; 0xc00 - 8008c56: d02b beq.n 8008cb0 - 8008c58: f5b3 6f40 cmp.w r3, #3072 ; 0xc00 - 8008c5c: d820 bhi.n 8008ca0 - 8008c5e: f5b3 6f00 cmp.w r3, #2048 ; 0x800 - 8008c62: d012 beq.n 8008c8a - 8008c64: f5b3 6f00 cmp.w r3, #2048 ; 0x800 - 8008c68: d81a bhi.n 8008ca0 - 8008c6a: 2b00 cmp r3, #0 - 8008c6c: d022 beq.n 8008cb4 - 8008c6e: f5b3 6f80 cmp.w r3, #1024 ; 0x400 - 8008c72: d115 bne.n 8008ca0 - /* LPTIM2 clock source configuration done later after clock selection check */ - break; - - case RCC_LPTIM2CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM2*/ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE); - 8008c74: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008c78: 3308 adds r3, #8 - 8008c7a: 2100 movs r1, #0 - 8008c7c: 4618 mov r0, r3 - 8008c7e: f001 fc5f bl 800a540 - 8008c82: 4603 mov r3, r0 - 8008c84: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - /* LPTIM2 clock source configuration done later after clock selection check */ - break; - 8008c88: e015 b.n 8008cb6 - - case RCC_LPTIM2CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM2*/ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE); - 8008c8a: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008c8e: 3328 adds r3, #40 ; 0x28 - 8008c90: 2102 movs r1, #2 - 8008c92: 4618 mov r0, r3 - 8008c94: f001 fd06 bl 800a6a4 - 8008c98: 4603 mov r3, r0 - 8008c9a: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - /* LPTIM2 clock source configuration done later after clock selection check */ - break; - 8008c9e: e00a b.n 8008cb6 - /* HSI, HSE, or CSI oscillator is used as source of LPTIM2 clock */ - /* LPTIM2 clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - 8008ca0: 2301 movs r3, #1 - 8008ca2: f887 3117 strb.w r3, [r7, #279] ; 0x117 - break; - 8008ca6: e006 b.n 8008cb6 - break; - 8008ca8: bf00 nop - 8008caa: e004 b.n 8008cb6 - break; - 8008cac: bf00 nop - 8008cae: e002 b.n 8008cb6 - break; - 8008cb0: bf00 nop - 8008cb2: e000 b.n 8008cb6 - break; - 8008cb4: bf00 nop - } - - if (ret == HAL_OK) - 8008cb6: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8008cba: 2b00 cmp r3, #0 - 8008cbc: d10e bne.n 8008cdc - { - /* Set the source of LPTIM2 clock*/ - __HAL_RCC_LPTIM2_CONFIG(PeriphClkInit->Lptim2ClockSelection); - 8008cbe: 4b06 ldr r3, [pc, #24] ; (8008cd8 ) - 8008cc0: 6d9b ldr r3, [r3, #88] ; 0x58 - 8008cc2: f423 51e0 bic.w r1, r3, #7168 ; 0x1c00 - 8008cc6: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008cca: f8d3 3098 ldr.w r3, [r3, #152] ; 0x98 - 8008cce: 4a02 ldr r2, [pc, #8] ; (8008cd8 ) - 8008cd0: 430b orrs r3, r1 - 8008cd2: 6593 str r3, [r2, #88] ; 0x58 - 8008cd4: e006 b.n 8008ce4 - 8008cd6: bf00 nop - 8008cd8: 58024400 .word 0x58024400 - } - else - { - /* set overall return value */ - status = ret; - 8008cdc: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8008ce0: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } - } - - /*---------------------------- LPTIM345 configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM345) == RCC_PERIPHCLK_LPTIM345) - 8008ce4: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008ce8: e9d3 2300 ldrd r2, r3, [r3] - 8008cec: f002 0380 and.w r3, r2, #128 ; 0x80 - 8008cf0: f8c7 3090 str.w r3, [r7, #144] ; 0x90 - 8008cf4: 2300 movs r3, #0 - 8008cf6: f8c7 3094 str.w r3, [r7, #148] ; 0x94 - 8008cfa: e9d7 1224 ldrd r1, r2, [r7, #144] ; 0x90 - 8008cfe: 460b mov r3, r1 - 8008d00: 4313 orrs r3, r2 - 8008d02: d055 beq.n 8008db0 - { - switch (PeriphClkInit->Lptim345ClockSelection) - 8008d04: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008d08: f8d3 309c ldr.w r3, [r3, #156] ; 0x9c - 8008d0c: f5b3 4f20 cmp.w r3, #40960 ; 0xa000 - 8008d10: d033 beq.n 8008d7a - 8008d12: f5b3 4f20 cmp.w r3, #40960 ; 0xa000 - 8008d16: d82c bhi.n 8008d72 - 8008d18: f5b3 4f00 cmp.w r3, #32768 ; 0x8000 - 8008d1c: d02f beq.n 8008d7e - 8008d1e: f5b3 4f00 cmp.w r3, #32768 ; 0x8000 - 8008d22: d826 bhi.n 8008d72 - 8008d24: f5b3 4fc0 cmp.w r3, #24576 ; 0x6000 - 8008d28: d02b beq.n 8008d82 - 8008d2a: f5b3 4fc0 cmp.w r3, #24576 ; 0x6000 - 8008d2e: d820 bhi.n 8008d72 - 8008d30: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 - 8008d34: d012 beq.n 8008d5c - 8008d36: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 - 8008d3a: d81a bhi.n 8008d72 - 8008d3c: 2b00 cmp r3, #0 - 8008d3e: d022 beq.n 8008d86 - 8008d40: f5b3 5f00 cmp.w r3, #8192 ; 0x2000 - 8008d44: d115 bne.n 8008d72 - case RCC_LPTIM345CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPTIM3/4/5 */ - /* LPTIM3/4/5 clock source configuration done later after clock selection check */ - break; - - case RCC_LPTIM345CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM3/4/5 */ - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE); - 8008d46: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008d4a: 3308 adds r3, #8 - 8008d4c: 2100 movs r1, #0 - 8008d4e: 4618 mov r0, r3 - 8008d50: f001 fbf6 bl 800a540 - 8008d54: 4603 mov r3, r0 - 8008d56: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - /* LPTIM3/4/5 clock source configuration done later after clock selection check */ - break; - 8008d5a: e015 b.n 8008d88 - - case RCC_LPTIM345CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM3/4/5 */ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE); - 8008d5c: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008d60: 3328 adds r3, #40 ; 0x28 - 8008d62: 2102 movs r1, #2 - 8008d64: 4618 mov r0, r3 - 8008d66: f001 fc9d bl 800a6a4 - 8008d6a: 4603 mov r3, r0 - 8008d6c: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - /* LPTIM3/4/5 clock source configuration done later after clock selection check */ - break; - 8008d70: e00a b.n 8008d88 - /* HSI, HSE, or CSI oscillator is used as source of LPTIM3/4/5 clock */ - /* LPTIM3/4/5 clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - 8008d72: 2301 movs r3, #1 - 8008d74: f887 3117 strb.w r3, [r7, #279] ; 0x117 - break; - 8008d78: e006 b.n 8008d88 - break; - 8008d7a: bf00 nop - 8008d7c: e004 b.n 8008d88 - break; - 8008d7e: bf00 nop - 8008d80: e002 b.n 8008d88 - break; - 8008d82: bf00 nop - 8008d84: e000 b.n 8008d88 - break; - 8008d86: bf00 nop - } - - if (ret == HAL_OK) - 8008d88: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8008d8c: 2b00 cmp r3, #0 - 8008d8e: d10b bne.n 8008da8 - { - /* Set the source of LPTIM3/4/5 clock */ - __HAL_RCC_LPTIM345_CONFIG(PeriphClkInit->Lptim345ClockSelection); - 8008d90: 4ba0 ldr r3, [pc, #640] ; (8009014 ) - 8008d92: 6d9b ldr r3, [r3, #88] ; 0x58 - 8008d94: f423 4160 bic.w r1, r3, #57344 ; 0xe000 - 8008d98: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008d9c: f8d3 309c ldr.w r3, [r3, #156] ; 0x9c - 8008da0: 4a9c ldr r2, [pc, #624] ; (8009014 ) - 8008da2: 430b orrs r3, r1 - 8008da4: 6593 str r3, [r2, #88] ; 0x58 - 8008da6: e003 b.n 8008db0 - } - else - { - /* set overall return value */ - status = ret; - 8008da8: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8008dac: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } - } - - /*------------------------------ I2C1/2/3/5* Configuration ------------------------*/ -#if defined(I2C5) - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C1235) == RCC_PERIPHCLK_I2C1235) - 8008db0: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008db4: e9d3 2300 ldrd r2, r3, [r3] - 8008db8: f002 0308 and.w r3, r2, #8 - 8008dbc: f8c7 3088 str.w r3, [r7, #136] ; 0x88 - 8008dc0: 2300 movs r3, #0 - 8008dc2: f8c7 308c str.w r3, [r7, #140] ; 0x8c - 8008dc6: e9d7 1222 ldrd r1, r2, [r7, #136] ; 0x88 - 8008dca: 460b mov r3, r1 - 8008dcc: 4313 orrs r3, r2 - 8008dce: d01e beq.n 8008e0e - { - /* Check the parameters */ - assert_param(IS_RCC_I2C1235CLKSOURCE(PeriphClkInit->I2c1235ClockSelection)); - - if ((PeriphClkInit->I2c1235ClockSelection) == RCC_I2C1235CLKSOURCE_PLL3) - 8008dd0: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008dd4: f8d3 3080 ldr.w r3, [r3, #128] ; 0x80 - 8008dd8: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 - 8008ddc: d10c bne.n 8008df8 - { - if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK) - 8008dde: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008de2: 3328 adds r3, #40 ; 0x28 - 8008de4: 2102 movs r1, #2 - 8008de6: 4618 mov r0, r3 - 8008de8: f001 fc5c bl 800a6a4 - 8008dec: 4603 mov r3, r0 - 8008dee: 2b00 cmp r3, #0 - 8008df0: d002 beq.n 8008df8 - { - status = HAL_ERROR; - 8008df2: 2301 movs r3, #1 - 8008df4: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } - } - - __HAL_RCC_I2C1235_CONFIG(PeriphClkInit->I2c1235ClockSelection); - 8008df8: 4b86 ldr r3, [pc, #536] ; (8009014 ) - 8008dfa: 6d5b ldr r3, [r3, #84] ; 0x54 - 8008dfc: f423 5140 bic.w r1, r3, #12288 ; 0x3000 - 8008e00: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008e04: f8d3 3080 ldr.w r3, [r3, #128] ; 0x80 - 8008e08: 4a82 ldr r2, [pc, #520] ; (8009014 ) - 8008e0a: 430b orrs r3, r1 - 8008e0c: 6553 str r3, [r2, #84] ; 0x54 - - } -#endif /* I2C5 */ - - /*------------------------------ I2C4 Configuration ------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C4) == RCC_PERIPHCLK_I2C4) - 8008e0e: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008e12: e9d3 2300 ldrd r2, r3, [r3] - 8008e16: f002 0310 and.w r3, r2, #16 - 8008e1a: f8c7 3080 str.w r3, [r7, #128] ; 0x80 - 8008e1e: 2300 movs r3, #0 - 8008e20: f8c7 3084 str.w r3, [r7, #132] ; 0x84 - 8008e24: e9d7 1220 ldrd r1, r2, [r7, #128] ; 0x80 - 8008e28: 460b mov r3, r1 - 8008e2a: 4313 orrs r3, r2 - 8008e2c: d01e beq.n 8008e6c - { - /* Check the parameters */ - assert_param(IS_RCC_I2C4CLKSOURCE(PeriphClkInit->I2c4ClockSelection)); - - if ((PeriphClkInit->I2c4ClockSelection) == RCC_I2C4CLKSOURCE_PLL3) - 8008e2e: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008e32: f8d3 3094 ldr.w r3, [r3, #148] ; 0x94 - 8008e36: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 8008e3a: d10c bne.n 8008e56 - { - if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK) - 8008e3c: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008e40: 3328 adds r3, #40 ; 0x28 - 8008e42: 2102 movs r1, #2 - 8008e44: 4618 mov r0, r3 - 8008e46: f001 fc2d bl 800a6a4 - 8008e4a: 4603 mov r3, r0 - 8008e4c: 2b00 cmp r3, #0 - 8008e4e: d002 beq.n 8008e56 - { - status = HAL_ERROR; - 8008e50: 2301 movs r3, #1 - 8008e52: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } - } - - __HAL_RCC_I2C4_CONFIG(PeriphClkInit->I2c4ClockSelection); - 8008e56: 4b6f ldr r3, [pc, #444] ; (8009014 ) - 8008e58: 6d9b ldr r3, [r3, #88] ; 0x58 - 8008e5a: f423 7140 bic.w r1, r3, #768 ; 0x300 - 8008e5e: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008e62: f8d3 3094 ldr.w r3, [r3, #148] ; 0x94 - 8008e66: 4a6b ldr r2, [pc, #428] ; (8009014 ) - 8008e68: 430b orrs r3, r1 - 8008e6a: 6593 str r3, [r2, #88] ; 0x58 - - } - - /*---------------------------- ADC configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_ADC) == RCC_PERIPHCLK_ADC) - 8008e6c: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008e70: e9d3 2300 ldrd r2, r3, [r3] - 8008e74: f402 2300 and.w r3, r2, #524288 ; 0x80000 - 8008e78: 67bb str r3, [r7, #120] ; 0x78 - 8008e7a: 2300 movs r3, #0 - 8008e7c: 67fb str r3, [r7, #124] ; 0x7c - 8008e7e: e9d7 121e ldrd r1, r2, [r7, #120] ; 0x78 - 8008e82: 460b mov r3, r1 - 8008e84: 4313 orrs r3, r2 - 8008e86: d03e beq.n 8008f06 - { - switch (PeriphClkInit->AdcClockSelection) - 8008e88: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008e8c: f8d3 30a0 ldr.w r3, [r3, #160] ; 0xa0 - 8008e90: f5b3 3f00 cmp.w r3, #131072 ; 0x20000 - 8008e94: d022 beq.n 8008edc - 8008e96: f5b3 3f00 cmp.w r3, #131072 ; 0x20000 - 8008e9a: d81b bhi.n 8008ed4 - 8008e9c: 2b00 cmp r3, #0 - 8008e9e: d003 beq.n 8008ea8 - 8008ea0: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8008ea4: d00b beq.n 8008ebe - 8008ea6: e015 b.n 8008ed4 - { - - case RCC_ADCCLKSOURCE_PLL2: /* PLL2 is used as clock source for ADC*/ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE); - 8008ea8: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008eac: 3308 adds r3, #8 - 8008eae: 2100 movs r1, #0 - 8008eb0: 4618 mov r0, r3 - 8008eb2: f001 fb45 bl 800a540 - 8008eb6: 4603 mov r3, r0 - 8008eb8: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - /* ADC clock source configuration done later after clock selection check */ - break; - 8008ebc: e00f b.n 8008ede - - case RCC_ADCCLKSOURCE_PLL3: /* PLL3 is used as clock source for ADC*/ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE); - 8008ebe: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008ec2: 3328 adds r3, #40 ; 0x28 - 8008ec4: 2102 movs r1, #2 - 8008ec6: 4618 mov r0, r3 - 8008ec8: f001 fbec bl 800a6a4 - 8008ecc: 4603 mov r3, r0 - 8008ece: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - /* ADC clock source configuration done later after clock selection check */ - break; - 8008ed2: e004 b.n 8008ede - /* HSI, HSE, or CSI oscillator is used as source of ADC clock */ - /* ADC clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - 8008ed4: 2301 movs r3, #1 - 8008ed6: f887 3117 strb.w r3, [r7, #279] ; 0x117 - break; - 8008eda: e000 b.n 8008ede - break; - 8008edc: bf00 nop - } - - if (ret == HAL_OK) - 8008ede: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8008ee2: 2b00 cmp r3, #0 - 8008ee4: d10b bne.n 8008efe - { - /* Set the source of ADC clock*/ - __HAL_RCC_ADC_CONFIG(PeriphClkInit->AdcClockSelection); - 8008ee6: 4b4b ldr r3, [pc, #300] ; (8009014 ) - 8008ee8: 6d9b ldr r3, [r3, #88] ; 0x58 - 8008eea: f423 3140 bic.w r1, r3, #196608 ; 0x30000 - 8008eee: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008ef2: f8d3 30a0 ldr.w r3, [r3, #160] ; 0xa0 - 8008ef6: 4a47 ldr r2, [pc, #284] ; (8009014 ) - 8008ef8: 430b orrs r3, r1 - 8008efa: 6593 str r3, [r2, #88] ; 0x58 - 8008efc: e003 b.n 8008f06 - } - else - { - /* set overall return value */ - status = ret; - 8008efe: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8008f02: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } - } - - /*------------------------------ USB Configuration -------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USB) == RCC_PERIPHCLK_USB) - 8008f06: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008f0a: e9d3 2300 ldrd r2, r3, [r3] - 8008f0e: f402 2380 and.w r3, r2, #262144 ; 0x40000 - 8008f12: 673b str r3, [r7, #112] ; 0x70 - 8008f14: 2300 movs r3, #0 - 8008f16: 677b str r3, [r7, #116] ; 0x74 - 8008f18: e9d7 121c ldrd r1, r2, [r7, #112] ; 0x70 - 8008f1c: 460b mov r3, r1 - 8008f1e: 4313 orrs r3, r2 - 8008f20: d03b beq.n 8008f9a - { - - switch (PeriphClkInit->UsbClockSelection) - 8008f22: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008f26: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 8008f2a: f5b3 1f40 cmp.w r3, #3145728 ; 0x300000 - 8008f2e: d01f beq.n 8008f70 - 8008f30: f5b3 1f40 cmp.w r3, #3145728 ; 0x300000 - 8008f34: d818 bhi.n 8008f68 - 8008f36: f5b3 1f80 cmp.w r3, #1048576 ; 0x100000 - 8008f3a: d003 beq.n 8008f44 - 8008f3c: f5b3 1f00 cmp.w r3, #2097152 ; 0x200000 - 8008f40: d007 beq.n 8008f52 - 8008f42: e011 b.n 8008f68 - { - case RCC_USBCLKSOURCE_PLL: /* PLL is used as clock source for USB*/ - /* Enable USB Clock output generated form System USB . */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ); - 8008f44: 4b33 ldr r3, [pc, #204] ; (8009014 ) - 8008f46: 6adb ldr r3, [r3, #44] ; 0x2c - 8008f48: 4a32 ldr r2, [pc, #200] ; (8009014 ) - 8008f4a: f443 3300 orr.w r3, r3, #131072 ; 0x20000 - 8008f4e: 62d3 str r3, [r2, #44] ; 0x2c - - /* USB clock source configuration done later after clock selection check */ - break; - 8008f50: e00f b.n 8008f72 - - case RCC_USBCLKSOURCE_PLL3: /* PLL3 is used as clock source for USB*/ - - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE); - 8008f52: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008f56: 3328 adds r3, #40 ; 0x28 - 8008f58: 2101 movs r1, #1 - 8008f5a: 4618 mov r0, r3 - 8008f5c: f001 fba2 bl 800a6a4 - 8008f60: 4603 mov r3, r0 - 8008f62: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - /* USB clock source configuration done later after clock selection check */ - break; - 8008f66: e004 b.n 8008f72 - /* HSI48 oscillator is used as source of USB clock */ - /* USB clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - 8008f68: 2301 movs r3, #1 - 8008f6a: f887 3117 strb.w r3, [r7, #279] ; 0x117 - break; - 8008f6e: e000 b.n 8008f72 - break; - 8008f70: bf00 nop - } - - if (ret == HAL_OK) - 8008f72: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8008f76: 2b00 cmp r3, #0 - 8008f78: d10b bne.n 8008f92 - { - /* Set the source of USB clock*/ - __HAL_RCC_USB_CONFIG(PeriphClkInit->UsbClockSelection); - 8008f7a: 4b26 ldr r3, [pc, #152] ; (8009014 ) - 8008f7c: 6d5b ldr r3, [r3, #84] ; 0x54 - 8008f7e: f423 1140 bic.w r1, r3, #3145728 ; 0x300000 - 8008f82: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008f86: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 8008f8a: 4a22 ldr r2, [pc, #136] ; (8009014 ) - 8008f8c: 430b orrs r3, r1 - 8008f8e: 6553 str r3, [r2, #84] ; 0x54 - 8008f90: e003 b.n 8008f9a - } - else - { - /* set overall return value */ - status = ret; - 8008f92: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8008f96: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } - - } - - /*------------------------------------- SDMMC Configuration ------------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SDMMC) == RCC_PERIPHCLK_SDMMC) - 8008f9a: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008f9e: e9d3 2300 ldrd r2, r3, [r3] - 8008fa2: f402 3380 and.w r3, r2, #65536 ; 0x10000 - 8008fa6: 66bb str r3, [r7, #104] ; 0x68 - 8008fa8: 2300 movs r3, #0 - 8008faa: 66fb str r3, [r7, #108] ; 0x6c - 8008fac: e9d7 121a ldrd r1, r2, [r7, #104] ; 0x68 - 8008fb0: 460b mov r3, r1 - 8008fb2: 4313 orrs r3, r2 - 8008fb4: d034 beq.n 8009020 - { - /* Check the parameters */ - assert_param(IS_RCC_SDMMC(PeriphClkInit->SdmmcClockSelection)); - - switch (PeriphClkInit->SdmmcClockSelection) - 8008fb6: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008fba: 6d1b ldr r3, [r3, #80] ; 0x50 - 8008fbc: 2b00 cmp r3, #0 - 8008fbe: d003 beq.n 8008fc8 - 8008fc0: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8008fc4: d007 beq.n 8008fd6 - 8008fc6: e011 b.n 8008fec - { - case RCC_SDMMCCLKSOURCE_PLL: /* PLL is used as clock source for SDMMC*/ - /* Enable SDMMC Clock output generated form System PLL . */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ); - 8008fc8: 4b12 ldr r3, [pc, #72] ; (8009014 ) - 8008fca: 6adb ldr r3, [r3, #44] ; 0x2c - 8008fcc: 4a11 ldr r2, [pc, #68] ; (8009014 ) - 8008fce: f443 3300 orr.w r3, r3, #131072 ; 0x20000 - 8008fd2: 62d3 str r3, [r2, #44] ; 0x2c - - /* SDMMC clock source configuration done later after clock selection check */ - break; - 8008fd4: e00e b.n 8008ff4 - - case RCC_SDMMCCLKSOURCE_PLL2: /* PLL2 is used as clock source for SDMMC*/ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE); - 8008fd6: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8008fda: 3308 adds r3, #8 - 8008fdc: 2102 movs r1, #2 - 8008fde: 4618 mov r0, r3 - 8008fe0: f001 faae bl 800a540 - 8008fe4: 4603 mov r3, r0 - 8008fe6: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - /* SDMMC clock source configuration done later after clock selection check */ - break; - 8008fea: e003 b.n 8008ff4 - - default: - ret = HAL_ERROR; - 8008fec: 2301 movs r3, #1 - 8008fee: f887 3117 strb.w r3, [r7, #279] ; 0x117 - break; - 8008ff2: bf00 nop - } - - if (ret == HAL_OK) - 8008ff4: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8008ff8: 2b00 cmp r3, #0 - 8008ffa: d10d bne.n 8009018 - { - /* Set the source of SDMMC clock*/ - __HAL_RCC_SDMMC_CONFIG(PeriphClkInit->SdmmcClockSelection); - 8008ffc: 4b05 ldr r3, [pc, #20] ; (8009014 ) - 8008ffe: 6cdb ldr r3, [r3, #76] ; 0x4c - 8009000: f423 3180 bic.w r1, r3, #65536 ; 0x10000 - 8009004: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8009008: 6d1b ldr r3, [r3, #80] ; 0x50 - 800900a: 4a02 ldr r2, [pc, #8] ; (8009014 ) - 800900c: 430b orrs r3, r1 - 800900e: 64d3 str r3, [r2, #76] ; 0x4c - 8009010: e006 b.n 8009020 - 8009012: bf00 nop - 8009014: 58024400 .word 0x58024400 - } - else - { - /* set overall return value */ - status = ret; - 8009018: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 800901c: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } - } - -#if defined(LTDC) - /*-------------------------------------- LTDC Configuration -----------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LTDC) == RCC_PERIPHCLK_LTDC) - 8009020: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8009024: e9d3 2300 ldrd r2, r3, [r3] - 8009028: f002 5300 and.w r3, r2, #536870912 ; 0x20000000 - 800902c: 663b str r3, [r7, #96] ; 0x60 - 800902e: 2300 movs r3, #0 - 8009030: 667b str r3, [r7, #100] ; 0x64 - 8009032: e9d7 1218 ldrd r1, r2, [r7, #96] ; 0x60 - 8009036: 460b mov r3, r1 - 8009038: 4313 orrs r3, r2 - 800903a: d00c beq.n 8009056 - { - if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK) - 800903c: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8009040: 3328 adds r3, #40 ; 0x28 - 8009042: 2102 movs r1, #2 - 8009044: 4618 mov r0, r3 - 8009046: f001 fb2d bl 800a6a4 - 800904a: 4603 mov r3, r0 - 800904c: 2b00 cmp r3, #0 - 800904e: d002 beq.n 8009056 - { - status = HAL_ERROR; - 8009050: 2301 movs r3, #1 - 8009052: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } - } -#endif /* LTDC */ - - /*------------------------------ RNG Configuration -------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RNG) == RCC_PERIPHCLK_RNG) - 8009056: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 800905a: e9d3 2300 ldrd r2, r3, [r3] - 800905e: f402 3300 and.w r3, r2, #131072 ; 0x20000 - 8009062: 65bb str r3, [r7, #88] ; 0x58 - 8009064: 2300 movs r3, #0 - 8009066: 65fb str r3, [r7, #92] ; 0x5c - 8009068: e9d7 1216 ldrd r1, r2, [r7, #88] ; 0x58 - 800906c: 460b mov r3, r1 - 800906e: 4313 orrs r3, r2 - 8009070: d036 beq.n 80090e0 - { - - switch (PeriphClkInit->RngClockSelection) - 8009072: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8009076: 6fdb ldr r3, [r3, #124] ; 0x7c - 8009078: f5b3 7f40 cmp.w r3, #768 ; 0x300 - 800907c: d018 beq.n 80090b0 - 800907e: f5b3 7f40 cmp.w r3, #768 ; 0x300 - 8009082: d811 bhi.n 80090a8 - 8009084: f5b3 7f00 cmp.w r3, #512 ; 0x200 - 8009088: d014 beq.n 80090b4 - 800908a: f5b3 7f00 cmp.w r3, #512 ; 0x200 - 800908e: d80b bhi.n 80090a8 - 8009090: 2b00 cmp r3, #0 - 8009092: d011 beq.n 80090b8 - 8009094: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 8009098: d106 bne.n 80090a8 - { - case RCC_RNGCLKSOURCE_PLL: /* PLL is used as clock source for RNG*/ - /* Enable RNG Clock output generated form System RNG . */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ); - 800909a: 4bb7 ldr r3, [pc, #732] ; (8009378 ) - 800909c: 6adb ldr r3, [r3, #44] ; 0x2c - 800909e: 4ab6 ldr r2, [pc, #728] ; (8009378 ) - 80090a0: f443 3300 orr.w r3, r3, #131072 ; 0x20000 - 80090a4: 62d3 str r3, [r2, #44] ; 0x2c - - /* RNG clock source configuration done later after clock selection check */ - break; - 80090a6: e008 b.n 80090ba - /* HSI48 oscillator is used as source of RNG clock */ - /* RNG clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - 80090a8: 2301 movs r3, #1 - 80090aa: f887 3117 strb.w r3, [r7, #279] ; 0x117 - break; - 80090ae: e004 b.n 80090ba - break; - 80090b0: bf00 nop - 80090b2: e002 b.n 80090ba - break; - 80090b4: bf00 nop - 80090b6: e000 b.n 80090ba - break; - 80090b8: bf00 nop - } - - if (ret == HAL_OK) - 80090ba: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 80090be: 2b00 cmp r3, #0 - 80090c0: d10a bne.n 80090d8 - { - /* Set the source of RNG clock*/ - __HAL_RCC_RNG_CONFIG(PeriphClkInit->RngClockSelection); - 80090c2: 4bad ldr r3, [pc, #692] ; (8009378 ) - 80090c4: 6d5b ldr r3, [r3, #84] ; 0x54 - 80090c6: f423 7140 bic.w r1, r3, #768 ; 0x300 - 80090ca: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80090ce: 6fdb ldr r3, [r3, #124] ; 0x7c - 80090d0: 4aa9 ldr r2, [pc, #676] ; (8009378 ) - 80090d2: 430b orrs r3, r1 - 80090d4: 6553 str r3, [r2, #84] ; 0x54 - 80090d6: e003 b.n 80090e0 - } - else - { - /* set overall return value */ - status = ret; - 80090d8: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 80090dc: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } - - } - - /*------------------------------ SWPMI1 Configuration ------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SWPMI1) == RCC_PERIPHCLK_SWPMI1) - 80090e0: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80090e4: e9d3 2300 ldrd r2, r3, [r3] - 80090e8: f402 1380 and.w r3, r2, #1048576 ; 0x100000 - 80090ec: 653b str r3, [r7, #80] ; 0x50 - 80090ee: 2300 movs r3, #0 - 80090f0: 657b str r3, [r7, #84] ; 0x54 - 80090f2: e9d7 1214 ldrd r1, r2, [r7, #80] ; 0x50 - 80090f6: 460b mov r3, r1 - 80090f8: 4313 orrs r3, r2 - 80090fa: d009 beq.n 8009110 - { - /* Check the parameters */ - assert_param(IS_RCC_SWPMI1CLKSOURCE(PeriphClkInit->Swpmi1ClockSelection)); - - /* Configure the SWPMI1 interface clock source */ - __HAL_RCC_SWPMI1_CONFIG(PeriphClkInit->Swpmi1ClockSelection); - 80090fc: 4b9e ldr r3, [pc, #632] ; (8009378 ) - 80090fe: 6d1b ldr r3, [r3, #80] ; 0x50 - 8009100: f023 4100 bic.w r1, r3, #2147483648 ; 0x80000000 - 8009104: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8009108: 6f1b ldr r3, [r3, #112] ; 0x70 - 800910a: 4a9b ldr r2, [pc, #620] ; (8009378 ) - 800910c: 430b orrs r3, r1 - 800910e: 6513 str r3, [r2, #80] ; 0x50 - /* Configure the HRTIM1 clock source */ - __HAL_RCC_HRTIM1_CONFIG(PeriphClkInit->Hrtim1ClockSelection); - } -#endif /*HRTIM1*/ - /*------------------------------ DFSDM1 Configuration ------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_DFSDM1) == RCC_PERIPHCLK_DFSDM1) - 8009110: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8009114: e9d3 2300 ldrd r2, r3, [r3] - 8009118: f402 1300 and.w r3, r2, #2097152 ; 0x200000 - 800911c: 64bb str r3, [r7, #72] ; 0x48 - 800911e: 2300 movs r3, #0 - 8009120: 64fb str r3, [r7, #76] ; 0x4c - 8009122: e9d7 1212 ldrd r1, r2, [r7, #72] ; 0x48 - 8009126: 460b mov r3, r1 - 8009128: 4313 orrs r3, r2 - 800912a: d009 beq.n 8009140 - { - /* Check the parameters */ - assert_param(IS_RCC_DFSDM1CLKSOURCE(PeriphClkInit->Dfsdm1ClockSelection)); - - /* Configure the DFSDM1 interface clock source */ - __HAL_RCC_DFSDM1_CONFIG(PeriphClkInit->Dfsdm1ClockSelection); - 800912c: 4b92 ldr r3, [pc, #584] ; (8009378 ) - 800912e: 6d1b ldr r3, [r3, #80] ; 0x50 - 8009130: f023 7180 bic.w r1, r3, #16777216 ; 0x1000000 - 8009134: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8009138: 6e9b ldr r3, [r3, #104] ; 0x68 - 800913a: 4a8f ldr r2, [pc, #572] ; (8009378 ) - 800913c: 430b orrs r3, r1 - 800913e: 6513 str r3, [r2, #80] ; 0x50 - __HAL_RCC_DFSDM2_CONFIG(PeriphClkInit->Dfsdm2ClockSelection); - } -#endif /* DFSDM2 */ - - /*------------------------------------ TIM configuration --------------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_TIM) == RCC_PERIPHCLK_TIM) - 8009140: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8009144: e9d3 2300 ldrd r2, r3, [r3] - 8009148: f002 4380 and.w r3, r2, #1073741824 ; 0x40000000 - 800914c: 643b str r3, [r7, #64] ; 0x40 - 800914e: 2300 movs r3, #0 - 8009150: 647b str r3, [r7, #68] ; 0x44 - 8009152: e9d7 1210 ldrd r1, r2, [r7, #64] ; 0x40 - 8009156: 460b mov r3, r1 - 8009158: 4313 orrs r3, r2 - 800915a: d00e beq.n 800917a - { - /* Check the parameters */ - assert_param(IS_RCC_TIMPRES(PeriphClkInit->TIMPresSelection)); - - /* Configure Timer Prescaler */ - __HAL_RCC_TIMCLKPRESCALER(PeriphClkInit->TIMPresSelection); - 800915c: 4b86 ldr r3, [pc, #536] ; (8009378 ) - 800915e: 691b ldr r3, [r3, #16] - 8009160: 4a85 ldr r2, [pc, #532] ; (8009378 ) - 8009162: f423 4300 bic.w r3, r3, #32768 ; 0x8000 - 8009166: 6113 str r3, [r2, #16] - 8009168: 4b83 ldr r3, [pc, #524] ; (8009378 ) - 800916a: 6919 ldr r1, [r3, #16] - 800916c: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8009170: f8d3 30b4 ldr.w r3, [r3, #180] ; 0xb4 - 8009174: 4a80 ldr r2, [pc, #512] ; (8009378 ) - 8009176: 430b orrs r3, r1 - 8009178: 6113 str r3, [r2, #16] - } - - /*------------------------------------ CKPER configuration --------------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CKPER) == RCC_PERIPHCLK_CKPER) - 800917a: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 800917e: e9d3 2300 ldrd r2, r3, [r3] - 8009182: f002 4300 and.w r3, r2, #2147483648 ; 0x80000000 - 8009186: 63bb str r3, [r7, #56] ; 0x38 - 8009188: 2300 movs r3, #0 - 800918a: 63fb str r3, [r7, #60] ; 0x3c - 800918c: e9d7 120e ldrd r1, r2, [r7, #56] ; 0x38 - 8009190: 460b mov r3, r1 - 8009192: 4313 orrs r3, r2 - 8009194: d009 beq.n 80091aa - { - /* Check the parameters */ - assert_param(IS_RCC_CLKPSOURCE(PeriphClkInit->CkperClockSelection)); - - /* Configure the CKPER clock source */ - __HAL_RCC_CLKP_CONFIG(PeriphClkInit->CkperClockSelection); - 8009196: 4b78 ldr r3, [pc, #480] ; (8009378 ) - 8009198: 6cdb ldr r3, [r3, #76] ; 0x4c - 800919a: f023 5140 bic.w r1, r3, #805306368 ; 0x30000000 - 800919e: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80091a2: 6d5b ldr r3, [r3, #84] ; 0x54 - 80091a4: 4a74 ldr r2, [pc, #464] ; (8009378 ) - 80091a6: 430b orrs r3, r1 - 80091a8: 64d3 str r3, [r2, #76] ; 0x4c - } - - /*------------------------------ CEC Configuration ------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CEC) == RCC_PERIPHCLK_CEC) - 80091aa: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80091ae: e9d3 2300 ldrd r2, r3, [r3] - 80091b2: f402 0300 and.w r3, r2, #8388608 ; 0x800000 - 80091b6: 633b str r3, [r7, #48] ; 0x30 - 80091b8: 2300 movs r3, #0 - 80091ba: 637b str r3, [r7, #52] ; 0x34 - 80091bc: e9d7 120c ldrd r1, r2, [r7, #48] ; 0x30 - 80091c0: 460b mov r3, r1 - 80091c2: 4313 orrs r3, r2 - 80091c4: d00a beq.n 80091dc - { - /* Check the parameters */ - assert_param(IS_RCC_CECCLKSOURCE(PeriphClkInit->CecClockSelection)); - - /* Configure the CEC interface clock source */ - __HAL_RCC_CEC_CONFIG(PeriphClkInit->CecClockSelection); - 80091c6: 4b6c ldr r3, [pc, #432] ; (8009378 ) - 80091c8: 6d5b ldr r3, [r3, #84] ; 0x54 - 80091ca: f423 0140 bic.w r1, r3, #12582912 ; 0xc00000 - 80091ce: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80091d2: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 - 80091d6: 4a68 ldr r2, [pc, #416] ; (8009378 ) - 80091d8: 430b orrs r3, r1 - 80091da: 6553 str r3, [r2, #84] ; 0x54 - } - - /*---------------------------- PLL2 configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVP) == RCC_PERIPHCLK_PLL2_DIVP) - 80091dc: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80091e0: e9d3 2300 ldrd r2, r3, [r3] - 80091e4: 2100 movs r1, #0 - 80091e6: 62b9 str r1, [r7, #40] ; 0x28 - 80091e8: f003 0301 and.w r3, r3, #1 - 80091ec: 62fb str r3, [r7, #44] ; 0x2c - 80091ee: e9d7 120a ldrd r1, r2, [r7, #40] ; 0x28 - 80091f2: 460b mov r3, r1 - 80091f4: 4313 orrs r3, r2 - 80091f6: d011 beq.n 800921c - { - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE); - 80091f8: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80091fc: 3308 adds r3, #8 - 80091fe: 2100 movs r1, #0 - 8009200: 4618 mov r0, r3 - 8009202: f001 f99d bl 800a540 - 8009206: 4603 mov r3, r0 - 8009208: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - if (ret == HAL_OK) - 800920c: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8009210: 2b00 cmp r3, #0 - 8009212: d003 beq.n 800921c - /*Nothing to do*/ - } - else - { - /* set overall return value */ - status = ret; - 8009214: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8009218: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } - } - - - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVQ) == RCC_PERIPHCLK_PLL2_DIVQ) - 800921c: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8009220: e9d3 2300 ldrd r2, r3, [r3] - 8009224: 2100 movs r1, #0 - 8009226: 6239 str r1, [r7, #32] - 8009228: f003 0302 and.w r3, r3, #2 - 800922c: 627b str r3, [r7, #36] ; 0x24 - 800922e: e9d7 1208 ldrd r1, r2, [r7, #32] - 8009232: 460b mov r3, r1 - 8009234: 4313 orrs r3, r2 - 8009236: d011 beq.n 800925c - { - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE); - 8009238: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 800923c: 3308 adds r3, #8 - 800923e: 2101 movs r1, #1 - 8009240: 4618 mov r0, r3 - 8009242: f001 f97d bl 800a540 - 8009246: 4603 mov r3, r0 - 8009248: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - if (ret == HAL_OK) - 800924c: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8009250: 2b00 cmp r3, #0 - 8009252: d003 beq.n 800925c - /*Nothing to do*/ - } - else - { - /* set overall return value */ - status = ret; - 8009254: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8009258: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } - } - - - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVR) == RCC_PERIPHCLK_PLL2_DIVR) - 800925c: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8009260: e9d3 2300 ldrd r2, r3, [r3] - 8009264: 2100 movs r1, #0 - 8009266: 61b9 str r1, [r7, #24] - 8009268: f003 0304 and.w r3, r3, #4 - 800926c: 61fb str r3, [r7, #28] - 800926e: e9d7 1206 ldrd r1, r2, [r7, #24] - 8009272: 460b mov r3, r1 - 8009274: 4313 orrs r3, r2 - 8009276: d011 beq.n 800929c - { - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE); - 8009278: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 800927c: 3308 adds r3, #8 - 800927e: 2102 movs r1, #2 - 8009280: 4618 mov r0, r3 - 8009282: f001 f95d bl 800a540 - 8009286: 4603 mov r3, r0 - 8009288: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - if (ret == HAL_OK) - 800928c: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8009290: 2b00 cmp r3, #0 - 8009292: d003 beq.n 800929c - /*Nothing to do*/ - } - else - { - /* set overall return value */ - status = ret; - 8009294: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8009298: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } - } - - - /*---------------------------- PLL3 configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVP) == RCC_PERIPHCLK_PLL3_DIVP) - 800929c: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80092a0: e9d3 2300 ldrd r2, r3, [r3] - 80092a4: 2100 movs r1, #0 - 80092a6: 6139 str r1, [r7, #16] - 80092a8: f003 0308 and.w r3, r3, #8 - 80092ac: 617b str r3, [r7, #20] - 80092ae: e9d7 1204 ldrd r1, r2, [r7, #16] - 80092b2: 460b mov r3, r1 - 80092b4: 4313 orrs r3, r2 - 80092b6: d011 beq.n 80092dc - { - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE); - 80092b8: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80092bc: 3328 adds r3, #40 ; 0x28 - 80092be: 2100 movs r1, #0 - 80092c0: 4618 mov r0, r3 - 80092c2: f001 f9ef bl 800a6a4 - 80092c6: 4603 mov r3, r0 - 80092c8: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - if (ret == HAL_OK) - 80092cc: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 80092d0: 2b00 cmp r3, #0 - 80092d2: d003 beq.n 80092dc - /*Nothing to do*/ - } - else - { - /* set overall return value */ - status = ret; - 80092d4: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 80092d8: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } - } - - - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVQ) == RCC_PERIPHCLK_PLL3_DIVQ) - 80092dc: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80092e0: e9d3 2300 ldrd r2, r3, [r3] - 80092e4: 2100 movs r1, #0 - 80092e6: 60b9 str r1, [r7, #8] - 80092e8: f003 0310 and.w r3, r3, #16 - 80092ec: 60fb str r3, [r7, #12] - 80092ee: e9d7 1202 ldrd r1, r2, [r7, #8] - 80092f2: 460b mov r3, r1 - 80092f4: 4313 orrs r3, r2 - 80092f6: d011 beq.n 800931c - { - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE); - 80092f8: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 80092fc: 3328 adds r3, #40 ; 0x28 - 80092fe: 2101 movs r1, #1 - 8009300: 4618 mov r0, r3 - 8009302: f001 f9cf bl 800a6a4 - 8009306: 4603 mov r3, r0 - 8009308: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - if (ret == HAL_OK) - 800930c: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8009310: 2b00 cmp r3, #0 - 8009312: d003 beq.n 800931c - /*Nothing to do*/ - } - else - { - /* set overall return value */ - status = ret; - 8009314: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8009318: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } - } - - - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVR) == RCC_PERIPHCLK_PLL3_DIVR) - 800931c: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 8009320: e9d3 2300 ldrd r2, r3, [r3] - 8009324: 2100 movs r1, #0 - 8009326: 6039 str r1, [r7, #0] - 8009328: f003 0320 and.w r3, r3, #32 - 800932c: 607b str r3, [r7, #4] - 800932e: e9d7 1200 ldrd r1, r2, [r7] - 8009332: 460b mov r3, r1 - 8009334: 4313 orrs r3, r2 - 8009336: d011 beq.n 800935c - { - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE); - 8009338: f8d7 3104 ldr.w r3, [r7, #260] ; 0x104 - 800933c: 3328 adds r3, #40 ; 0x28 - 800933e: 2102 movs r1, #2 - 8009340: 4618 mov r0, r3 - 8009342: f001 f9af bl 800a6a4 - 8009346: 4603 mov r3, r0 - 8009348: f887 3117 strb.w r3, [r7, #279] ; 0x117 - - if (ret == HAL_OK) - 800934c: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8009350: 2b00 cmp r3, #0 - 8009352: d003 beq.n 800935c - /*Nothing to do*/ - } - else - { - /* set overall return value */ - status = ret; - 8009354: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 8009358: f887 3116 strb.w r3, [r7, #278] ; 0x116 - } - } - - if (status == HAL_OK) - 800935c: f897 3116 ldrb.w r3, [r7, #278] ; 0x116 - 8009360: 2b00 cmp r3, #0 - 8009362: d101 bne.n 8009368 - { - return HAL_OK; - 8009364: 2300 movs r3, #0 - 8009366: e000 b.n 800936a - } - return HAL_ERROR; - 8009368: 2301 movs r3, #1 -} - 800936a: 4618 mov r0, r3 - 800936c: f507 778c add.w r7, r7, #280 ; 0x118 - 8009370: 46bd mov sp, r7 - 8009372: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc} - 8009376: bf00 nop - 8009378: 58024400 .word 0x58024400 - -0800937c : - * @retval Frequency in KHz - * - * (*) : Available on some STM32H7 lines only. - */ -uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint64_t PeriphClk) -{ - 800937c: b580 push {r7, lr} - 800937e: b090 sub sp, #64 ; 0x40 - 8009380: af00 add r7, sp, #0 - 8009382: e9c7 0100 strd r0, r1, [r7] - /* This variable is used to store the SAI and CKP clock source */ - uint32_t saiclocksource; - uint32_t ckpclocksource; - uint32_t srcclk; - - if (PeriphClk == RCC_PERIPHCLK_SAI1) - 8009386: e9d7 2300 ldrd r2, r3, [r7] - 800938a: f5a2 7180 sub.w r1, r2, #256 ; 0x100 - 800938e: 430b orrs r3, r1 - 8009390: f040 8094 bne.w 80094bc - { - - saiclocksource = __HAL_RCC_GET_SAI1_SOURCE(); - 8009394: 4b9b ldr r3, [pc, #620] ; (8009604 ) - 8009396: 6d1b ldr r3, [r3, #80] ; 0x50 - 8009398: f003 0307 and.w r3, r3, #7 - 800939c: 633b str r3, [r7, #48] ; 0x30 - - switch (saiclocksource) - 800939e: 6b3b ldr r3, [r7, #48] ; 0x30 - 80093a0: 2b04 cmp r3, #4 - 80093a2: f200 8087 bhi.w 80094b4 - 80093a6: a201 add r2, pc, #4 ; (adr r2, 80093ac ) - 80093a8: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 80093ac: 080093c1 .word 0x080093c1 - 80093b0: 080093e9 .word 0x080093e9 - 80093b4: 08009411 .word 0x08009411 - 80093b8: 080094ad .word 0x080094ad - 80093bc: 08009439 .word 0x08009439 - { - case RCC_SAI1CLKSOURCE_PLL: /* PLL1 is the clock source for SAI1 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY)) - 80093c0: 4b90 ldr r3, [pc, #576] ; (8009604 ) - 80093c2: 681b ldr r3, [r3, #0] - 80093c4: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 80093c8: f1b3 7f00 cmp.w r3, #33554432 ; 0x2000000 - 80093cc: d108 bne.n 80093e0 - { - HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks); - 80093ce: f107 0324 add.w r3, r7, #36 ; 0x24 - 80093d2: 4618 mov r0, r3 - 80093d4: f000 ff62 bl 800a29c - frequency = pll1_clocks.PLL1_Q_Frequency; - 80093d8: 6abb ldr r3, [r7, #40] ; 0x28 - 80093da: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 80093dc: f000 bc93 b.w 8009d06 - frequency = 0; - 80093e0: 2300 movs r3, #0 - 80093e2: 63fb str r3, [r7, #60] ; 0x3c - break; - 80093e4: f000 bc8f b.w 8009d06 - } - case RCC_SAI1CLKSOURCE_PLL2: /* PLL2 is the clock source for SAI1 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY)) - 80093e8: 4b86 ldr r3, [pc, #536] ; (8009604 ) - 80093ea: 681b ldr r3, [r3, #0] - 80093ec: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 - 80093f0: f1b3 6f00 cmp.w r3, #134217728 ; 0x8000000 - 80093f4: d108 bne.n 8009408 - { - HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks); - 80093f6: f107 0318 add.w r3, r7, #24 - 80093fa: 4618 mov r0, r3 - 80093fc: f000 fca6 bl 8009d4c - frequency = pll2_clocks.PLL2_P_Frequency; - 8009400: 69bb ldr r3, [r7, #24] - 8009402: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 8009404: f000 bc7f b.w 8009d06 - frequency = 0; - 8009408: 2300 movs r3, #0 - 800940a: 63fb str r3, [r7, #60] ; 0x3c - break; - 800940c: f000 bc7b b.w 8009d06 - } - - case RCC_SAI1CLKSOURCE_PLL3: /* PLL3 is the clock source for SAI1 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY)) - 8009410: 4b7c ldr r3, [pc, #496] ; (8009604 ) - 8009412: 681b ldr r3, [r3, #0] - 8009414: f003 5300 and.w r3, r3, #536870912 ; 0x20000000 - 8009418: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000 - 800941c: d108 bne.n 8009430 - { - HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks); - 800941e: f107 030c add.w r3, r7, #12 - 8009422: 4618 mov r0, r3 - 8009424: f000 fde6 bl 8009ff4 - frequency = pll3_clocks.PLL3_P_Frequency; - 8009428: 68fb ldr r3, [r7, #12] - 800942a: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 800942c: f000 bc6b b.w 8009d06 - frequency = 0; - 8009430: 2300 movs r3, #0 - 8009432: 63fb str r3, [r7, #60] ; 0x3c - break; - 8009434: f000 bc67 b.w 8009d06 - } - - case RCC_SAI1CLKSOURCE_CLKP: /* CKPER is the clock source for SAI1*/ - { - - ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE(); - 8009438: 4b72 ldr r3, [pc, #456] ; (8009604 ) - 800943a: 6cdb ldr r3, [r3, #76] ; 0x4c - 800943c: f003 5340 and.w r3, r3, #805306368 ; 0x30000000 - 8009440: 637b str r3, [r7, #52] ; 0x34 - - if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI)) - 8009442: 4b70 ldr r3, [pc, #448] ; (8009604 ) - 8009444: 681b ldr r3, [r3, #0] - 8009446: f003 0304 and.w r3, r3, #4 - 800944a: 2b04 cmp r3, #4 - 800944c: d10c bne.n 8009468 - 800944e: 6b7b ldr r3, [r7, #52] ; 0x34 - 8009450: 2b00 cmp r3, #0 - 8009452: d109 bne.n 8009468 - { - /* In Case the CKPER Source is HSI */ - frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3)); - 8009454: 4b6b ldr r3, [pc, #428] ; (8009604 ) - 8009456: 681b ldr r3, [r3, #0] - 8009458: 08db lsrs r3, r3, #3 - 800945a: f003 0303 and.w r3, r3, #3 - 800945e: 4a6a ldr r2, [pc, #424] ; (8009608 ) - 8009460: fa22 f303 lsr.w r3, r2, r3 - 8009464: 63fb str r3, [r7, #60] ; 0x3c - 8009466: e01f b.n 80094a8 - } - - else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI)) - 8009468: 4b66 ldr r3, [pc, #408] ; (8009604 ) - 800946a: 681b ldr r3, [r3, #0] - 800946c: f403 7380 and.w r3, r3, #256 ; 0x100 - 8009470: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 8009474: d106 bne.n 8009484 - 8009476: 6b7b ldr r3, [r7, #52] ; 0x34 - 8009478: f1b3 5f80 cmp.w r3, #268435456 ; 0x10000000 - 800947c: d102 bne.n 8009484 - { - /* In Case the CKPER Source is CSI */ - frequency = CSI_VALUE; - 800947e: 4b63 ldr r3, [pc, #396] ; (800960c ) - 8009480: 63fb str r3, [r7, #60] ; 0x3c - 8009482: e011 b.n 80094a8 - } - - else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE)) - 8009484: 4b5f ldr r3, [pc, #380] ; (8009604 ) - 8009486: 681b ldr r3, [r3, #0] - 8009488: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 800948c: f5b3 3f00 cmp.w r3, #131072 ; 0x20000 - 8009490: d106 bne.n 80094a0 - 8009492: 6b7b ldr r3, [r7, #52] ; 0x34 - 8009494: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000 - 8009498: d102 bne.n 80094a0 - { - /* In Case the CKPER Source is HSE */ - frequency = HSE_VALUE; - 800949a: 4b5d ldr r3, [pc, #372] ; (8009610 ) - 800949c: 63fb str r3, [r7, #60] ; 0x3c - 800949e: e003 b.n 80094a8 - } - - else - { - /* In Case the CKPER is disabled*/ - frequency = 0; - 80094a0: 2300 movs r3, #0 - 80094a2: 63fb str r3, [r7, #60] ; 0x3c - } - - break; - 80094a4: f000 bc2f b.w 8009d06 - 80094a8: f000 bc2d b.w 8009d06 - } - - case (RCC_SAI1CLKSOURCE_PIN): /* External clock is the clock source for SAI1 */ - { - frequency = EXTERNAL_CLOCK_VALUE; - 80094ac: 4b59 ldr r3, [pc, #356] ; (8009614 ) - 80094ae: 63fb str r3, [r7, #60] ; 0x3c - break; - 80094b0: f000 bc29 b.w 8009d06 - } - default : - { - frequency = 0; - 80094b4: 2300 movs r3, #0 - 80094b6: 63fb str r3, [r7, #60] ; 0x3c - break; - 80094b8: f000 bc25 b.w 8009d06 - } - } -#endif - -#if defined(SAI4) - else if (PeriphClk == RCC_PERIPHCLK_SAI4A) - 80094bc: e9d7 2300 ldrd r2, r3, [r7] - 80094c0: f5a2 6180 sub.w r1, r2, #1024 ; 0x400 - 80094c4: 430b orrs r3, r1 - 80094c6: f040 80a7 bne.w 8009618 - { - - saiclocksource = __HAL_RCC_GET_SAI4A_SOURCE(); - 80094ca: 4b4e ldr r3, [pc, #312] ; (8009604 ) - 80094cc: 6d9b ldr r3, [r3, #88] ; 0x58 - 80094ce: f403 0360 and.w r3, r3, #14680064 ; 0xe00000 - 80094d2: 633b str r3, [r7, #48] ; 0x30 - - switch (saiclocksource) - 80094d4: 6b3b ldr r3, [r7, #48] ; 0x30 - 80094d6: f5b3 0f00 cmp.w r3, #8388608 ; 0x800000 - 80094da: d054 beq.n 8009586 - 80094dc: 6b3b ldr r3, [r7, #48] ; 0x30 - 80094de: f5b3 0f00 cmp.w r3, #8388608 ; 0x800000 - 80094e2: f200 808b bhi.w 80095fc - 80094e6: 6b3b ldr r3, [r7, #48] ; 0x30 - 80094e8: f5b3 0fc0 cmp.w r3, #6291456 ; 0x600000 - 80094ec: f000 8083 beq.w 80095f6 - 80094f0: 6b3b ldr r3, [r7, #48] ; 0x30 - 80094f2: f5b3 0fc0 cmp.w r3, #6291456 ; 0x600000 - 80094f6: f200 8081 bhi.w 80095fc - 80094fa: 6b3b ldr r3, [r7, #48] ; 0x30 - 80094fc: f5b3 0f80 cmp.w r3, #4194304 ; 0x400000 - 8009500: d02f beq.n 8009562 - 8009502: 6b3b ldr r3, [r7, #48] ; 0x30 - 8009504: f5b3 0f80 cmp.w r3, #4194304 ; 0x400000 - 8009508: d878 bhi.n 80095fc - 800950a: 6b3b ldr r3, [r7, #48] ; 0x30 - 800950c: 2b00 cmp r3, #0 - 800950e: d004 beq.n 800951a - 8009510: 6b3b ldr r3, [r7, #48] ; 0x30 - 8009512: f5b3 1f00 cmp.w r3, #2097152 ; 0x200000 - 8009516: d012 beq.n 800953e - 8009518: e070 b.n 80095fc - { - case RCC_SAI4ACLKSOURCE_PLL: /* PLL1 is the clock source for SAI4A */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY)) - 800951a: 4b3a ldr r3, [pc, #232] ; (8009604 ) - 800951c: 681b ldr r3, [r3, #0] - 800951e: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 8009522: f1b3 7f00 cmp.w r3, #33554432 ; 0x2000000 - 8009526: d107 bne.n 8009538 - { - HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks); - 8009528: f107 0324 add.w r3, r7, #36 ; 0x24 - 800952c: 4618 mov r0, r3 - 800952e: f000 feb5 bl 800a29c - frequency = pll1_clocks.PLL1_Q_Frequency; - 8009532: 6abb ldr r3, [r7, #40] ; 0x28 - 8009534: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 8009536: e3e6 b.n 8009d06 - frequency = 0; - 8009538: 2300 movs r3, #0 - 800953a: 63fb str r3, [r7, #60] ; 0x3c - break; - 800953c: e3e3 b.n 8009d06 - } - case RCC_SAI4ACLKSOURCE_PLL2: /* PLLI2 is the clock source for SAI4A */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY)) - 800953e: 4b31 ldr r3, [pc, #196] ; (8009604 ) - 8009540: 681b ldr r3, [r3, #0] - 8009542: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 - 8009546: f1b3 6f00 cmp.w r3, #134217728 ; 0x8000000 - 800954a: d107 bne.n 800955c - { - HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks); - 800954c: f107 0318 add.w r3, r7, #24 - 8009550: 4618 mov r0, r3 - 8009552: f000 fbfb bl 8009d4c - frequency = pll2_clocks.PLL2_P_Frequency; - 8009556: 69bb ldr r3, [r7, #24] - 8009558: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 800955a: e3d4 b.n 8009d06 - frequency = 0; - 800955c: 2300 movs r3, #0 - 800955e: 63fb str r3, [r7, #60] ; 0x3c - break; - 8009560: e3d1 b.n 8009d06 - } - - case RCC_SAI4ACLKSOURCE_PLL3: /* PLLI3 is the clock source for SAI4A */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY)) - 8009562: 4b28 ldr r3, [pc, #160] ; (8009604 ) - 8009564: 681b ldr r3, [r3, #0] - 8009566: f003 5300 and.w r3, r3, #536870912 ; 0x20000000 - 800956a: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000 - 800956e: d107 bne.n 8009580 - { - HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks); - 8009570: f107 030c add.w r3, r7, #12 - 8009574: 4618 mov r0, r3 - 8009576: f000 fd3d bl 8009ff4 - frequency = pll3_clocks.PLL3_P_Frequency; - 800957a: 68fb ldr r3, [r7, #12] - 800957c: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 800957e: e3c2 b.n 8009d06 - frequency = 0; - 8009580: 2300 movs r3, #0 - 8009582: 63fb str r3, [r7, #60] ; 0x3c - break; - 8009584: e3bf b.n 8009d06 - } - - case RCC_SAI4ACLKSOURCE_CLKP: /* CKPER is the clock source for SAI4A*/ - { - - ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE(); - 8009586: 4b1f ldr r3, [pc, #124] ; (8009604 ) - 8009588: 6cdb ldr r3, [r3, #76] ; 0x4c - 800958a: f003 5340 and.w r3, r3, #805306368 ; 0x30000000 - 800958e: 637b str r3, [r7, #52] ; 0x34 - - if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI)) - 8009590: 4b1c ldr r3, [pc, #112] ; (8009604 ) - 8009592: 681b ldr r3, [r3, #0] - 8009594: f003 0304 and.w r3, r3, #4 - 8009598: 2b04 cmp r3, #4 - 800959a: d10c bne.n 80095b6 - 800959c: 6b7b ldr r3, [r7, #52] ; 0x34 - 800959e: 2b00 cmp r3, #0 - 80095a0: d109 bne.n 80095b6 - { - /* In Case the CKPER Source is HSI */ - frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3)); - 80095a2: 4b18 ldr r3, [pc, #96] ; (8009604 ) - 80095a4: 681b ldr r3, [r3, #0] - 80095a6: 08db lsrs r3, r3, #3 - 80095a8: f003 0303 and.w r3, r3, #3 - 80095ac: 4a16 ldr r2, [pc, #88] ; (8009608 ) - 80095ae: fa22 f303 lsr.w r3, r2, r3 - 80095b2: 63fb str r3, [r7, #60] ; 0x3c - 80095b4: e01e b.n 80095f4 - } - - else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI)) - 80095b6: 4b13 ldr r3, [pc, #76] ; (8009604 ) - 80095b8: 681b ldr r3, [r3, #0] - 80095ba: f403 7380 and.w r3, r3, #256 ; 0x100 - 80095be: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 80095c2: d106 bne.n 80095d2 - 80095c4: 6b7b ldr r3, [r7, #52] ; 0x34 - 80095c6: f1b3 5f80 cmp.w r3, #268435456 ; 0x10000000 - 80095ca: d102 bne.n 80095d2 - { - /* In Case the CKPER Source is CSI */ - frequency = CSI_VALUE; - 80095cc: 4b0f ldr r3, [pc, #60] ; (800960c ) - 80095ce: 63fb str r3, [r7, #60] ; 0x3c - 80095d0: e010 b.n 80095f4 - } - - else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE)) - 80095d2: 4b0c ldr r3, [pc, #48] ; (8009604 ) - 80095d4: 681b ldr r3, [r3, #0] - 80095d6: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 80095da: f5b3 3f00 cmp.w r3, #131072 ; 0x20000 - 80095de: d106 bne.n 80095ee - 80095e0: 6b7b ldr r3, [r7, #52] ; 0x34 - 80095e2: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000 - 80095e6: d102 bne.n 80095ee - { - /* In Case the CKPER Source is HSE */ - frequency = HSE_VALUE; - 80095e8: 4b09 ldr r3, [pc, #36] ; (8009610 ) - 80095ea: 63fb str r3, [r7, #60] ; 0x3c - 80095ec: e002 b.n 80095f4 - } - - else - { - /* In Case the CKPER is disabled*/ - frequency = 0; - 80095ee: 2300 movs r3, #0 - 80095f0: 63fb str r3, [r7, #60] ; 0x3c - } - - break; - 80095f2: e388 b.n 8009d06 - 80095f4: e387 b.n 8009d06 - } - - case RCC_SAI4ACLKSOURCE_PIN: /* External clock is the clock source for SAI4A */ - { - frequency = EXTERNAL_CLOCK_VALUE; - 80095f6: 4b07 ldr r3, [pc, #28] ; (8009614 ) - 80095f8: 63fb str r3, [r7, #60] ; 0x3c - break; - 80095fa: e384 b.n 8009d06 - } - - default : - { - frequency = 0; - 80095fc: 2300 movs r3, #0 - 80095fe: 63fb str r3, [r7, #60] ; 0x3c - break; - 8009600: e381 b.n 8009d06 - 8009602: bf00 nop - 8009604: 58024400 .word 0x58024400 - 8009608: 03d09000 .word 0x03d09000 - 800960c: 003d0900 .word 0x003d0900 - 8009610: 017d7840 .word 0x017d7840 - 8009614: 00bb8000 .word 0x00bb8000 - } - } - } - - else if (PeriphClk == RCC_PERIPHCLK_SAI4B) - 8009618: e9d7 2300 ldrd r2, r3, [r7] - 800961c: f5a2 6100 sub.w r1, r2, #2048 ; 0x800 - 8009620: 430b orrs r3, r1 - 8009622: f040 809c bne.w 800975e - { - - saiclocksource = __HAL_RCC_GET_SAI4B_SOURCE(); - 8009626: 4b9e ldr r3, [pc, #632] ; (80098a0 ) - 8009628: 6d9b ldr r3, [r3, #88] ; 0x58 - 800962a: f003 63e0 and.w r3, r3, #117440512 ; 0x7000000 - 800962e: 633b str r3, [r7, #48] ; 0x30 - - switch (saiclocksource) - 8009630: 6b3b ldr r3, [r7, #48] ; 0x30 - 8009632: f1b3 6f80 cmp.w r3, #67108864 ; 0x4000000 - 8009636: d054 beq.n 80096e2 - 8009638: 6b3b ldr r3, [r7, #48] ; 0x30 - 800963a: f1b3 6f80 cmp.w r3, #67108864 ; 0x4000000 - 800963e: f200 808b bhi.w 8009758 - 8009642: 6b3b ldr r3, [r7, #48] ; 0x30 - 8009644: f1b3 7f40 cmp.w r3, #50331648 ; 0x3000000 - 8009648: f000 8083 beq.w 8009752 - 800964c: 6b3b ldr r3, [r7, #48] ; 0x30 - 800964e: f1b3 7f40 cmp.w r3, #50331648 ; 0x3000000 - 8009652: f200 8081 bhi.w 8009758 - 8009656: 6b3b ldr r3, [r7, #48] ; 0x30 - 8009658: f1b3 7f00 cmp.w r3, #33554432 ; 0x2000000 - 800965c: d02f beq.n 80096be - 800965e: 6b3b ldr r3, [r7, #48] ; 0x30 - 8009660: f1b3 7f00 cmp.w r3, #33554432 ; 0x2000000 - 8009664: d878 bhi.n 8009758 - 8009666: 6b3b ldr r3, [r7, #48] ; 0x30 - 8009668: 2b00 cmp r3, #0 - 800966a: d004 beq.n 8009676 - 800966c: 6b3b ldr r3, [r7, #48] ; 0x30 - 800966e: f1b3 7f80 cmp.w r3, #16777216 ; 0x1000000 - 8009672: d012 beq.n 800969a - 8009674: e070 b.n 8009758 - { - case RCC_SAI4BCLKSOURCE_PLL: /* PLL1 is the clock source for SAI4B */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY)) - 8009676: 4b8a ldr r3, [pc, #552] ; (80098a0 ) - 8009678: 681b ldr r3, [r3, #0] - 800967a: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 800967e: f1b3 7f00 cmp.w r3, #33554432 ; 0x2000000 - 8009682: d107 bne.n 8009694 - { - HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks); - 8009684: f107 0324 add.w r3, r7, #36 ; 0x24 - 8009688: 4618 mov r0, r3 - 800968a: f000 fe07 bl 800a29c - frequency = pll1_clocks.PLL1_Q_Frequency; - 800968e: 6abb ldr r3, [r7, #40] ; 0x28 - 8009690: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 8009692: e338 b.n 8009d06 - frequency = 0; - 8009694: 2300 movs r3, #0 - 8009696: 63fb str r3, [r7, #60] ; 0x3c - break; - 8009698: e335 b.n 8009d06 - } - case RCC_SAI4BCLKSOURCE_PLL2: /* PLLI2 is the clock source for SAI4B */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY)) - 800969a: 4b81 ldr r3, [pc, #516] ; (80098a0 ) - 800969c: 681b ldr r3, [r3, #0] - 800969e: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 - 80096a2: f1b3 6f00 cmp.w r3, #134217728 ; 0x8000000 - 80096a6: d107 bne.n 80096b8 - { - HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks); - 80096a8: f107 0318 add.w r3, r7, #24 - 80096ac: 4618 mov r0, r3 - 80096ae: f000 fb4d bl 8009d4c - frequency = pll2_clocks.PLL2_P_Frequency; - 80096b2: 69bb ldr r3, [r7, #24] - 80096b4: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 80096b6: e326 b.n 8009d06 - frequency = 0; - 80096b8: 2300 movs r3, #0 - 80096ba: 63fb str r3, [r7, #60] ; 0x3c - break; - 80096bc: e323 b.n 8009d06 - } - - case RCC_SAI4BCLKSOURCE_PLL3: /* PLLI3 is the clock source for SAI4B */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY)) - 80096be: 4b78 ldr r3, [pc, #480] ; (80098a0 ) - 80096c0: 681b ldr r3, [r3, #0] - 80096c2: f003 5300 and.w r3, r3, #536870912 ; 0x20000000 - 80096c6: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000 - 80096ca: d107 bne.n 80096dc - { - HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks); - 80096cc: f107 030c add.w r3, r7, #12 - 80096d0: 4618 mov r0, r3 - 80096d2: f000 fc8f bl 8009ff4 - frequency = pll3_clocks.PLL3_P_Frequency; - 80096d6: 68fb ldr r3, [r7, #12] - 80096d8: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 80096da: e314 b.n 8009d06 - frequency = 0; - 80096dc: 2300 movs r3, #0 - 80096de: 63fb str r3, [r7, #60] ; 0x3c - break; - 80096e0: e311 b.n 8009d06 - } - - case RCC_SAI4BCLKSOURCE_CLKP: /* CKPER is the clock source for SAI4B*/ - { - - ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE(); - 80096e2: 4b6f ldr r3, [pc, #444] ; (80098a0 ) - 80096e4: 6cdb ldr r3, [r3, #76] ; 0x4c - 80096e6: f003 5340 and.w r3, r3, #805306368 ; 0x30000000 - 80096ea: 637b str r3, [r7, #52] ; 0x34 - - if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI)) - 80096ec: 4b6c ldr r3, [pc, #432] ; (80098a0 ) - 80096ee: 681b ldr r3, [r3, #0] - 80096f0: f003 0304 and.w r3, r3, #4 - 80096f4: 2b04 cmp r3, #4 - 80096f6: d10c bne.n 8009712 - 80096f8: 6b7b ldr r3, [r7, #52] ; 0x34 - 80096fa: 2b00 cmp r3, #0 - 80096fc: d109 bne.n 8009712 - { - /* In Case the CKPER Source is HSI */ - frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3)); - 80096fe: 4b68 ldr r3, [pc, #416] ; (80098a0 ) - 8009700: 681b ldr r3, [r3, #0] - 8009702: 08db lsrs r3, r3, #3 - 8009704: f003 0303 and.w r3, r3, #3 - 8009708: 4a66 ldr r2, [pc, #408] ; (80098a4 ) - 800970a: fa22 f303 lsr.w r3, r2, r3 - 800970e: 63fb str r3, [r7, #60] ; 0x3c - 8009710: e01e b.n 8009750 - } - - else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI)) - 8009712: 4b63 ldr r3, [pc, #396] ; (80098a0 ) - 8009714: 681b ldr r3, [r3, #0] - 8009716: f403 7380 and.w r3, r3, #256 ; 0x100 - 800971a: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 800971e: d106 bne.n 800972e - 8009720: 6b7b ldr r3, [r7, #52] ; 0x34 - 8009722: f1b3 5f80 cmp.w r3, #268435456 ; 0x10000000 - 8009726: d102 bne.n 800972e - { - /* In Case the CKPER Source is CSI */ - frequency = CSI_VALUE; - 8009728: 4b5f ldr r3, [pc, #380] ; (80098a8 ) - 800972a: 63fb str r3, [r7, #60] ; 0x3c - 800972c: e010 b.n 8009750 - } - - else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE)) - 800972e: 4b5c ldr r3, [pc, #368] ; (80098a0 ) - 8009730: 681b ldr r3, [r3, #0] - 8009732: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8009736: f5b3 3f00 cmp.w r3, #131072 ; 0x20000 - 800973a: d106 bne.n 800974a - 800973c: 6b7b ldr r3, [r7, #52] ; 0x34 - 800973e: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000 - 8009742: d102 bne.n 800974a - { - /* In Case the CKPER Source is HSE */ - frequency = HSE_VALUE; - 8009744: 4b59 ldr r3, [pc, #356] ; (80098ac ) - 8009746: 63fb str r3, [r7, #60] ; 0x3c - 8009748: e002 b.n 8009750 - } - - else - { - /* In Case the CKPER is disabled*/ - frequency = 0; - 800974a: 2300 movs r3, #0 - 800974c: 63fb str r3, [r7, #60] ; 0x3c - } - - break; - 800974e: e2da b.n 8009d06 - 8009750: e2d9 b.n 8009d06 - } - - case RCC_SAI4BCLKSOURCE_PIN: /* External clock is the clock source for SAI4B */ - { - frequency = EXTERNAL_CLOCK_VALUE; - 8009752: 4b57 ldr r3, [pc, #348] ; (80098b0 ) - 8009754: 63fb str r3, [r7, #60] ; 0x3c - break; - 8009756: e2d6 b.n 8009d06 - } - - default : - { - frequency = 0; - 8009758: 2300 movs r3, #0 - 800975a: 63fb str r3, [r7, #60] ; 0x3c - break; - 800975c: e2d3 b.n 8009d06 - } - } - } -#endif /*SAI4*/ - else if (PeriphClk == RCC_PERIPHCLK_SPI123) - 800975e: e9d7 2300 ldrd r2, r3, [r7] - 8009762: f5a2 5180 sub.w r1, r2, #4096 ; 0x1000 - 8009766: 430b orrs r3, r1 - 8009768: f040 80a7 bne.w 80098ba - { - /* Get SPI1/2/3 clock source */ - srcclk = __HAL_RCC_GET_SPI123_SOURCE(); - 800976c: 4b4c ldr r3, [pc, #304] ; (80098a0 ) - 800976e: 6d1b ldr r3, [r3, #80] ; 0x50 - 8009770: f403 43e0 and.w r3, r3, #28672 ; 0x7000 - 8009774: 63bb str r3, [r7, #56] ; 0x38 - - switch (srcclk) - 8009776: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009778: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 - 800977c: d055 beq.n 800982a - 800977e: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009780: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 - 8009784: f200 8096 bhi.w 80098b4 - 8009788: 6bbb ldr r3, [r7, #56] ; 0x38 - 800978a: f5b3 5f40 cmp.w r3, #12288 ; 0x3000 - 800978e: f000 8084 beq.w 800989a - 8009792: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009794: f5b3 5f40 cmp.w r3, #12288 ; 0x3000 - 8009798: f200 808c bhi.w 80098b4 - 800979c: 6bbb ldr r3, [r7, #56] ; 0x38 - 800979e: f5b3 5f00 cmp.w r3, #8192 ; 0x2000 - 80097a2: d030 beq.n 8009806 - 80097a4: 6bbb ldr r3, [r7, #56] ; 0x38 - 80097a6: f5b3 5f00 cmp.w r3, #8192 ; 0x2000 - 80097aa: f200 8083 bhi.w 80098b4 - 80097ae: 6bbb ldr r3, [r7, #56] ; 0x38 - 80097b0: 2b00 cmp r3, #0 - 80097b2: d004 beq.n 80097be - 80097b4: 6bbb ldr r3, [r7, #56] ; 0x38 - 80097b6: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 - 80097ba: d012 beq.n 80097e2 - 80097bc: e07a b.n 80098b4 - { - case RCC_SPI123CLKSOURCE_PLL: /* PLL1 is the clock source for SPI123 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY)) - 80097be: 4b38 ldr r3, [pc, #224] ; (80098a0 ) - 80097c0: 681b ldr r3, [r3, #0] - 80097c2: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 80097c6: f1b3 7f00 cmp.w r3, #33554432 ; 0x2000000 - 80097ca: d107 bne.n 80097dc - { - HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks); - 80097cc: f107 0324 add.w r3, r7, #36 ; 0x24 - 80097d0: 4618 mov r0, r3 - 80097d2: f000 fd63 bl 800a29c - frequency = pll1_clocks.PLL1_Q_Frequency; - 80097d6: 6abb ldr r3, [r7, #40] ; 0x28 - 80097d8: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 80097da: e294 b.n 8009d06 - frequency = 0; - 80097dc: 2300 movs r3, #0 - 80097de: 63fb str r3, [r7, #60] ; 0x3c - break; - 80097e0: e291 b.n 8009d06 - } - case RCC_SPI123CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI123 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY)) - 80097e2: 4b2f ldr r3, [pc, #188] ; (80098a0 ) - 80097e4: 681b ldr r3, [r3, #0] - 80097e6: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 - 80097ea: f1b3 6f00 cmp.w r3, #134217728 ; 0x8000000 - 80097ee: d107 bne.n 8009800 - { - HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks); - 80097f0: f107 0318 add.w r3, r7, #24 - 80097f4: 4618 mov r0, r3 - 80097f6: f000 faa9 bl 8009d4c - frequency = pll2_clocks.PLL2_P_Frequency; - 80097fa: 69bb ldr r3, [r7, #24] - 80097fc: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 80097fe: e282 b.n 8009d06 - frequency = 0; - 8009800: 2300 movs r3, #0 - 8009802: 63fb str r3, [r7, #60] ; 0x3c - break; - 8009804: e27f b.n 8009d06 - } - - case RCC_SPI123CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI123 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY)) - 8009806: 4b26 ldr r3, [pc, #152] ; (80098a0 ) - 8009808: 681b ldr r3, [r3, #0] - 800980a: f003 5300 and.w r3, r3, #536870912 ; 0x20000000 - 800980e: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000 - 8009812: d107 bne.n 8009824 - { - HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks); - 8009814: f107 030c add.w r3, r7, #12 - 8009818: 4618 mov r0, r3 - 800981a: f000 fbeb bl 8009ff4 - frequency = pll3_clocks.PLL3_P_Frequency; - 800981e: 68fb ldr r3, [r7, #12] - 8009820: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 8009822: e270 b.n 8009d06 - frequency = 0; - 8009824: 2300 movs r3, #0 - 8009826: 63fb str r3, [r7, #60] ; 0x3c - break; - 8009828: e26d b.n 8009d06 - } - - case RCC_SPI123CLKSOURCE_CLKP: /* CKPER is the clock source for SPI123 */ - { - - ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE(); - 800982a: 4b1d ldr r3, [pc, #116] ; (80098a0 ) - 800982c: 6cdb ldr r3, [r3, #76] ; 0x4c - 800982e: f003 5340 and.w r3, r3, #805306368 ; 0x30000000 - 8009832: 637b str r3, [r7, #52] ; 0x34 - - if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI)) - 8009834: 4b1a ldr r3, [pc, #104] ; (80098a0 ) - 8009836: 681b ldr r3, [r3, #0] - 8009838: f003 0304 and.w r3, r3, #4 - 800983c: 2b04 cmp r3, #4 - 800983e: d10c bne.n 800985a - 8009840: 6b7b ldr r3, [r7, #52] ; 0x34 - 8009842: 2b00 cmp r3, #0 - 8009844: d109 bne.n 800985a - { - /* In Case the CKPER Source is HSI */ - frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3)); - 8009846: 4b16 ldr r3, [pc, #88] ; (80098a0 ) - 8009848: 681b ldr r3, [r3, #0] - 800984a: 08db lsrs r3, r3, #3 - 800984c: f003 0303 and.w r3, r3, #3 - 8009850: 4a14 ldr r2, [pc, #80] ; (80098a4 ) - 8009852: fa22 f303 lsr.w r3, r2, r3 - 8009856: 63fb str r3, [r7, #60] ; 0x3c - 8009858: e01e b.n 8009898 - } - - else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI)) - 800985a: 4b11 ldr r3, [pc, #68] ; (80098a0 ) - 800985c: 681b ldr r3, [r3, #0] - 800985e: f403 7380 and.w r3, r3, #256 ; 0x100 - 8009862: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 8009866: d106 bne.n 8009876 - 8009868: 6b7b ldr r3, [r7, #52] ; 0x34 - 800986a: f1b3 5f80 cmp.w r3, #268435456 ; 0x10000000 - 800986e: d102 bne.n 8009876 - { - /* In Case the CKPER Source is CSI */ - frequency = CSI_VALUE; - 8009870: 4b0d ldr r3, [pc, #52] ; (80098a8 ) - 8009872: 63fb str r3, [r7, #60] ; 0x3c - 8009874: e010 b.n 8009898 - } - - else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE)) - 8009876: 4b0a ldr r3, [pc, #40] ; (80098a0 ) - 8009878: 681b ldr r3, [r3, #0] - 800987a: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 800987e: f5b3 3f00 cmp.w r3, #131072 ; 0x20000 - 8009882: d106 bne.n 8009892 - 8009884: 6b7b ldr r3, [r7, #52] ; 0x34 - 8009886: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000 - 800988a: d102 bne.n 8009892 - { - /* In Case the CKPER Source is HSE */ - frequency = HSE_VALUE; - 800988c: 4b07 ldr r3, [pc, #28] ; (80098ac ) - 800988e: 63fb str r3, [r7, #60] ; 0x3c - 8009890: e002 b.n 8009898 - } - - else - { - /* In Case the CKPER is disabled*/ - frequency = 0; - 8009892: 2300 movs r3, #0 - 8009894: 63fb str r3, [r7, #60] ; 0x3c - } - - break; - 8009896: e236 b.n 8009d06 - 8009898: e235 b.n 8009d06 - } - - case (RCC_SPI123CLKSOURCE_PIN): /* External clock is the clock source for I2S */ - { - frequency = EXTERNAL_CLOCK_VALUE; - 800989a: 4b05 ldr r3, [pc, #20] ; (80098b0 ) - 800989c: 63fb str r3, [r7, #60] ; 0x3c - break; - 800989e: e232 b.n 8009d06 - 80098a0: 58024400 .word 0x58024400 - 80098a4: 03d09000 .word 0x03d09000 - 80098a8: 003d0900 .word 0x003d0900 - 80098ac: 017d7840 .word 0x017d7840 - 80098b0: 00bb8000 .word 0x00bb8000 - } - default : - { - frequency = 0; - 80098b4: 2300 movs r3, #0 - 80098b6: 63fb str r3, [r7, #60] ; 0x3c - break; - 80098b8: e225 b.n 8009d06 - } - } - } - else if (PeriphClk == RCC_PERIPHCLK_SPI45) - 80098ba: e9d7 2300 ldrd r2, r3, [r7] - 80098be: f5a2 5100 sub.w r1, r2, #8192 ; 0x2000 - 80098c2: 430b orrs r3, r1 - 80098c4: f040 8085 bne.w 80099d2 - { - /* Get SPI45 clock source */ - srcclk = __HAL_RCC_GET_SPI45_SOURCE(); - 80098c8: 4b9c ldr r3, [pc, #624] ; (8009b3c ) - 80098ca: 6d1b ldr r3, [r3, #80] ; 0x50 - 80098cc: f403 23e0 and.w r3, r3, #458752 ; 0x70000 - 80098d0: 63bb str r3, [r7, #56] ; 0x38 - switch (srcclk) - 80098d2: 6bbb ldr r3, [r7, #56] ; 0x38 - 80098d4: f5b3 2fa0 cmp.w r3, #327680 ; 0x50000 - 80098d8: d06b beq.n 80099b2 - 80098da: 6bbb ldr r3, [r7, #56] ; 0x38 - 80098dc: f5b3 2fa0 cmp.w r3, #327680 ; 0x50000 - 80098e0: d874 bhi.n 80099cc - 80098e2: 6bbb ldr r3, [r7, #56] ; 0x38 - 80098e4: f5b3 2f80 cmp.w r3, #262144 ; 0x40000 - 80098e8: d056 beq.n 8009998 - 80098ea: 6bbb ldr r3, [r7, #56] ; 0x38 - 80098ec: f5b3 2f80 cmp.w r3, #262144 ; 0x40000 - 80098f0: d86c bhi.n 80099cc - 80098f2: 6bbb ldr r3, [r7, #56] ; 0x38 - 80098f4: f5b3 3f40 cmp.w r3, #196608 ; 0x30000 - 80098f8: d03b beq.n 8009972 - 80098fa: 6bbb ldr r3, [r7, #56] ; 0x38 - 80098fc: f5b3 3f40 cmp.w r3, #196608 ; 0x30000 - 8009900: d864 bhi.n 80099cc - 8009902: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009904: f5b3 3f00 cmp.w r3, #131072 ; 0x20000 - 8009908: d021 beq.n 800994e - 800990a: 6bbb ldr r3, [r7, #56] ; 0x38 - 800990c: f5b3 3f00 cmp.w r3, #131072 ; 0x20000 - 8009910: d85c bhi.n 80099cc - 8009912: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009914: 2b00 cmp r3, #0 - 8009916: d004 beq.n 8009922 - 8009918: 6bbb ldr r3, [r7, #56] ; 0x38 - 800991a: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 800991e: d004 beq.n 800992a - 8009920: e054 b.n 80099cc - { - case RCC_SPI45CLKSOURCE_PCLK2: /* CD/D2 PCLK2 is the clock source for SPI4/5 */ - { - frequency = HAL_RCC_GetPCLK1Freq(); - 8009922: f7fe fb1d bl 8007f60 - 8009926: 63f8 str r0, [r7, #60] ; 0x3c - break; - 8009928: e1ed b.n 8009d06 - } - case RCC_SPI45CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI45 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY)) - 800992a: 4b84 ldr r3, [pc, #528] ; (8009b3c ) - 800992c: 681b ldr r3, [r3, #0] - 800992e: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 - 8009932: f1b3 6f00 cmp.w r3, #134217728 ; 0x8000000 - 8009936: d107 bne.n 8009948 - { - HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks); - 8009938: f107 0318 add.w r3, r7, #24 - 800993c: 4618 mov r0, r3 - 800993e: f000 fa05 bl 8009d4c - frequency = pll2_clocks.PLL2_Q_Frequency; - 8009942: 69fb ldr r3, [r7, #28] - 8009944: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 8009946: e1de b.n 8009d06 - frequency = 0; - 8009948: 2300 movs r3, #0 - 800994a: 63fb str r3, [r7, #60] ; 0x3c - break; - 800994c: e1db b.n 8009d06 - } - case RCC_SPI45CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI45 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY)) - 800994e: 4b7b ldr r3, [pc, #492] ; (8009b3c ) - 8009950: 681b ldr r3, [r3, #0] - 8009952: f003 5300 and.w r3, r3, #536870912 ; 0x20000000 - 8009956: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000 - 800995a: d107 bne.n 800996c - { - HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks); - 800995c: f107 030c add.w r3, r7, #12 - 8009960: 4618 mov r0, r3 - 8009962: f000 fb47 bl 8009ff4 - frequency = pll3_clocks.PLL3_Q_Frequency; - 8009966: 693b ldr r3, [r7, #16] - 8009968: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 800996a: e1cc b.n 8009d06 - frequency = 0; - 800996c: 2300 movs r3, #0 - 800996e: 63fb str r3, [r7, #60] ; 0x3c - break; - 8009970: e1c9 b.n 8009d06 - } - case RCC_SPI45CLKSOURCE_HSI: /* HSI is the clock source for SPI45 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) - 8009972: 4b72 ldr r3, [pc, #456] ; (8009b3c ) - 8009974: 681b ldr r3, [r3, #0] - 8009976: f003 0304 and.w r3, r3, #4 - 800997a: 2b04 cmp r3, #4 - 800997c: d109 bne.n 8009992 - { - frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3)); - 800997e: 4b6f ldr r3, [pc, #444] ; (8009b3c ) - 8009980: 681b ldr r3, [r3, #0] - 8009982: 08db lsrs r3, r3, #3 - 8009984: f003 0303 and.w r3, r3, #3 - 8009988: 4a6d ldr r2, [pc, #436] ; (8009b40 ) - 800998a: fa22 f303 lsr.w r3, r2, r3 - 800998e: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 8009990: e1b9 b.n 8009d06 - frequency = 0; - 8009992: 2300 movs r3, #0 - 8009994: 63fb str r3, [r7, #60] ; 0x3c - break; - 8009996: e1b6 b.n 8009d06 - } - case RCC_SPI45CLKSOURCE_CSI: /* CSI is the clock source for SPI45 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) - 8009998: 4b68 ldr r3, [pc, #416] ; (8009b3c ) - 800999a: 681b ldr r3, [r3, #0] - 800999c: f403 7380 and.w r3, r3, #256 ; 0x100 - 80099a0: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 80099a4: d102 bne.n 80099ac - { - frequency = CSI_VALUE; - 80099a6: 4b67 ldr r3, [pc, #412] ; (8009b44 ) - 80099a8: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 80099aa: e1ac b.n 8009d06 - frequency = 0; - 80099ac: 2300 movs r3, #0 - 80099ae: 63fb str r3, [r7, #60] ; 0x3c - break; - 80099b0: e1a9 b.n 8009d06 - } - case RCC_SPI45CLKSOURCE_HSE: /* HSE is the clock source for SPI45 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) - 80099b2: 4b62 ldr r3, [pc, #392] ; (8009b3c ) - 80099b4: 681b ldr r3, [r3, #0] - 80099b6: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 80099ba: f5b3 3f00 cmp.w r3, #131072 ; 0x20000 - 80099be: d102 bne.n 80099c6 - { - frequency = HSE_VALUE; - 80099c0: 4b61 ldr r3, [pc, #388] ; (8009b48 ) - 80099c2: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 80099c4: e19f b.n 8009d06 - frequency = 0; - 80099c6: 2300 movs r3, #0 - 80099c8: 63fb str r3, [r7, #60] ; 0x3c - break; - 80099ca: e19c b.n 8009d06 - } - default : - { - frequency = 0; - 80099cc: 2300 movs r3, #0 - 80099ce: 63fb str r3, [r7, #60] ; 0x3c - break; - 80099d0: e199 b.n 8009d06 - } - } - } - else if (PeriphClk == RCC_PERIPHCLK_ADC) - 80099d2: e9d7 2300 ldrd r2, r3, [r7] - 80099d6: f5a2 2100 sub.w r1, r2, #524288 ; 0x80000 - 80099da: 430b orrs r3, r1 - 80099dc: d173 bne.n 8009ac6 - { - /* Get ADC clock source */ - srcclk = __HAL_RCC_GET_ADC_SOURCE(); - 80099de: 4b57 ldr r3, [pc, #348] ; (8009b3c ) - 80099e0: 6d9b ldr r3, [r3, #88] ; 0x58 - 80099e2: f403 3340 and.w r3, r3, #196608 ; 0x30000 - 80099e6: 63bb str r3, [r7, #56] ; 0x38 - - switch (srcclk) - 80099e8: 6bbb ldr r3, [r7, #56] ; 0x38 - 80099ea: f5b3 3f00 cmp.w r3, #131072 ; 0x20000 - 80099ee: d02f beq.n 8009a50 - 80099f0: 6bbb ldr r3, [r7, #56] ; 0x38 - 80099f2: f5b3 3f00 cmp.w r3, #131072 ; 0x20000 - 80099f6: d863 bhi.n 8009ac0 - 80099f8: 6bbb ldr r3, [r7, #56] ; 0x38 - 80099fa: 2b00 cmp r3, #0 - 80099fc: d004 beq.n 8009a08 - 80099fe: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009a00: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8009a04: d012 beq.n 8009a2c - 8009a06: e05b b.n 8009ac0 - { - case RCC_ADCCLKSOURCE_PLL2: - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY)) - 8009a08: 4b4c ldr r3, [pc, #304] ; (8009b3c ) - 8009a0a: 681b ldr r3, [r3, #0] - 8009a0c: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 - 8009a10: f1b3 6f00 cmp.w r3, #134217728 ; 0x8000000 - 8009a14: d107 bne.n 8009a26 - { - HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks); - 8009a16: f107 0318 add.w r3, r7, #24 - 8009a1a: 4618 mov r0, r3 - 8009a1c: f000 f996 bl 8009d4c - frequency = pll2_clocks.PLL2_P_Frequency; - 8009a20: 69bb ldr r3, [r7, #24] - 8009a22: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 8009a24: e16f b.n 8009d06 - frequency = 0; - 8009a26: 2300 movs r3, #0 - 8009a28: 63fb str r3, [r7, #60] ; 0x3c - break; - 8009a2a: e16c b.n 8009d06 - } - case RCC_ADCCLKSOURCE_PLL3: - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY)) - 8009a2c: 4b43 ldr r3, [pc, #268] ; (8009b3c ) - 8009a2e: 681b ldr r3, [r3, #0] - 8009a30: f003 5300 and.w r3, r3, #536870912 ; 0x20000000 - 8009a34: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000 - 8009a38: d107 bne.n 8009a4a - { - HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks); - 8009a3a: f107 030c add.w r3, r7, #12 - 8009a3e: 4618 mov r0, r3 - 8009a40: f000 fad8 bl 8009ff4 - frequency = pll3_clocks.PLL3_R_Frequency; - 8009a44: 697b ldr r3, [r7, #20] - 8009a46: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 8009a48: e15d b.n 8009d06 - frequency = 0; - 8009a4a: 2300 movs r3, #0 - 8009a4c: 63fb str r3, [r7, #60] ; 0x3c - break; - 8009a4e: e15a b.n 8009d06 - } - - case RCC_ADCCLKSOURCE_CLKP: - { - - ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE(); - 8009a50: 4b3a ldr r3, [pc, #232] ; (8009b3c ) - 8009a52: 6cdb ldr r3, [r3, #76] ; 0x4c - 8009a54: f003 5340 and.w r3, r3, #805306368 ; 0x30000000 - 8009a58: 637b str r3, [r7, #52] ; 0x34 - - if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI)) - 8009a5a: 4b38 ldr r3, [pc, #224] ; (8009b3c ) - 8009a5c: 681b ldr r3, [r3, #0] - 8009a5e: f003 0304 and.w r3, r3, #4 - 8009a62: 2b04 cmp r3, #4 - 8009a64: d10c bne.n 8009a80 - 8009a66: 6b7b ldr r3, [r7, #52] ; 0x34 - 8009a68: 2b00 cmp r3, #0 - 8009a6a: d109 bne.n 8009a80 - { - /* In Case the CKPER Source is HSI */ - frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3)); - 8009a6c: 4b33 ldr r3, [pc, #204] ; (8009b3c ) - 8009a6e: 681b ldr r3, [r3, #0] - 8009a70: 08db lsrs r3, r3, #3 - 8009a72: f003 0303 and.w r3, r3, #3 - 8009a76: 4a32 ldr r2, [pc, #200] ; (8009b40 ) - 8009a78: fa22 f303 lsr.w r3, r2, r3 - 8009a7c: 63fb str r3, [r7, #60] ; 0x3c - 8009a7e: e01e b.n 8009abe - } - - else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI)) - 8009a80: 4b2e ldr r3, [pc, #184] ; (8009b3c ) - 8009a82: 681b ldr r3, [r3, #0] - 8009a84: f403 7380 and.w r3, r3, #256 ; 0x100 - 8009a88: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 8009a8c: d106 bne.n 8009a9c - 8009a8e: 6b7b ldr r3, [r7, #52] ; 0x34 - 8009a90: f1b3 5f80 cmp.w r3, #268435456 ; 0x10000000 - 8009a94: d102 bne.n 8009a9c - { - /* In Case the CKPER Source is CSI */ - frequency = CSI_VALUE; - 8009a96: 4b2b ldr r3, [pc, #172] ; (8009b44 ) - 8009a98: 63fb str r3, [r7, #60] ; 0x3c - 8009a9a: e010 b.n 8009abe - } - - else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE)) - 8009a9c: 4b27 ldr r3, [pc, #156] ; (8009b3c ) - 8009a9e: 681b ldr r3, [r3, #0] - 8009aa0: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8009aa4: f5b3 3f00 cmp.w r3, #131072 ; 0x20000 - 8009aa8: d106 bne.n 8009ab8 - 8009aaa: 6b7b ldr r3, [r7, #52] ; 0x34 - 8009aac: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000 - 8009ab0: d102 bne.n 8009ab8 - { - /* In Case the CKPER Source is HSE */ - frequency = HSE_VALUE; - 8009ab2: 4b25 ldr r3, [pc, #148] ; (8009b48 ) - 8009ab4: 63fb str r3, [r7, #60] ; 0x3c - 8009ab6: e002 b.n 8009abe - } - - else - { - /* In Case the CKPER is disabled*/ - frequency = 0; - 8009ab8: 2300 movs r3, #0 - 8009aba: 63fb str r3, [r7, #60] ; 0x3c - } - - break; - 8009abc: e123 b.n 8009d06 - 8009abe: e122 b.n 8009d06 - } - - default : - { - frequency = 0; - 8009ac0: 2300 movs r3, #0 - 8009ac2: 63fb str r3, [r7, #60] ; 0x3c - break; - 8009ac4: e11f b.n 8009d06 - } - } - } - else if (PeriphClk == RCC_PERIPHCLK_SDMMC) - 8009ac6: e9d7 2300 ldrd r2, r3, [r7] - 8009aca: f5a2 3180 sub.w r1, r2, #65536 ; 0x10000 - 8009ace: 430b orrs r3, r1 - 8009ad0: d13c bne.n 8009b4c - { - /* Get SDMMC clock source */ - srcclk = __HAL_RCC_GET_SDMMC_SOURCE(); - 8009ad2: 4b1a ldr r3, [pc, #104] ; (8009b3c ) - 8009ad4: 6cdb ldr r3, [r3, #76] ; 0x4c - 8009ad6: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 8009ada: 63bb str r3, [r7, #56] ; 0x38 - - switch (srcclk) - 8009adc: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009ade: 2b00 cmp r3, #0 - 8009ae0: d004 beq.n 8009aec - 8009ae2: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009ae4: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8009ae8: d012 beq.n 8009b10 - 8009aea: e023 b.n 8009b34 - { - case RCC_SDMMCCLKSOURCE_PLL: /* PLL1 is the clock source for SDMMC */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY)) - 8009aec: 4b13 ldr r3, [pc, #76] ; (8009b3c ) - 8009aee: 681b ldr r3, [r3, #0] - 8009af0: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 8009af4: f1b3 7f00 cmp.w r3, #33554432 ; 0x2000000 - 8009af8: d107 bne.n 8009b0a - { - HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks); - 8009afa: f107 0324 add.w r3, r7, #36 ; 0x24 - 8009afe: 4618 mov r0, r3 - 8009b00: f000 fbcc bl 800a29c - frequency = pll1_clocks.PLL1_Q_Frequency; - 8009b04: 6abb ldr r3, [r7, #40] ; 0x28 - 8009b06: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 8009b08: e0fd b.n 8009d06 - frequency = 0; - 8009b0a: 2300 movs r3, #0 - 8009b0c: 63fb str r3, [r7, #60] ; 0x3c - break; - 8009b0e: e0fa b.n 8009d06 - } - case RCC_SDMMCCLKSOURCE_PLL2: /* PLL2 is the clock source for SDMMC */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY)) - 8009b10: 4b0a ldr r3, [pc, #40] ; (8009b3c ) - 8009b12: 681b ldr r3, [r3, #0] - 8009b14: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 - 8009b18: f1b3 6f00 cmp.w r3, #134217728 ; 0x8000000 - 8009b1c: d107 bne.n 8009b2e - { - HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks); - 8009b1e: f107 0318 add.w r3, r7, #24 - 8009b22: 4618 mov r0, r3 - 8009b24: f000 f912 bl 8009d4c - frequency = pll2_clocks.PLL2_R_Frequency; - 8009b28: 6a3b ldr r3, [r7, #32] - 8009b2a: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 8009b2c: e0eb b.n 8009d06 - frequency = 0; - 8009b2e: 2300 movs r3, #0 - 8009b30: 63fb str r3, [r7, #60] ; 0x3c - break; - 8009b32: e0e8 b.n 8009d06 - } - - default : - { - frequency = 0; - 8009b34: 2300 movs r3, #0 - 8009b36: 63fb str r3, [r7, #60] ; 0x3c - break; - 8009b38: e0e5 b.n 8009d06 - 8009b3a: bf00 nop - 8009b3c: 58024400 .word 0x58024400 - 8009b40: 03d09000 .word 0x03d09000 - 8009b44: 003d0900 .word 0x003d0900 - 8009b48: 017d7840 .word 0x017d7840 - } - } - } - else if (PeriphClk == RCC_PERIPHCLK_SPI6) - 8009b4c: e9d7 2300 ldrd r2, r3, [r7] - 8009b50: f5a2 4180 sub.w r1, r2, #16384 ; 0x4000 - 8009b54: 430b orrs r3, r1 - 8009b56: f040 8085 bne.w 8009c64 - { - /* Get SPI6 clock source */ - srcclk = __HAL_RCC_GET_SPI6_SOURCE(); - 8009b5a: 4b6d ldr r3, [pc, #436] ; (8009d10 ) - 8009b5c: 6d9b ldr r3, [r3, #88] ; 0x58 - 8009b5e: f003 43e0 and.w r3, r3, #1879048192 ; 0x70000000 - 8009b62: 63bb str r3, [r7, #56] ; 0x38 - - switch (srcclk) - 8009b64: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009b66: f1b3 4fa0 cmp.w r3, #1342177280 ; 0x50000000 - 8009b6a: d06b beq.n 8009c44 - 8009b6c: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009b6e: f1b3 4fa0 cmp.w r3, #1342177280 ; 0x50000000 - 8009b72: d874 bhi.n 8009c5e - 8009b74: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009b76: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 - 8009b7a: d056 beq.n 8009c2a - 8009b7c: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009b7e: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 - 8009b82: d86c bhi.n 8009c5e - 8009b84: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009b86: f1b3 5f40 cmp.w r3, #805306368 ; 0x30000000 - 8009b8a: d03b beq.n 8009c04 - 8009b8c: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009b8e: f1b3 5f40 cmp.w r3, #805306368 ; 0x30000000 - 8009b92: d864 bhi.n 8009c5e - 8009b94: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009b96: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000 - 8009b9a: d021 beq.n 8009be0 - 8009b9c: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009b9e: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000 - 8009ba2: d85c bhi.n 8009c5e - 8009ba4: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009ba6: 2b00 cmp r3, #0 - 8009ba8: d004 beq.n 8009bb4 - 8009baa: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009bac: f1b3 5f80 cmp.w r3, #268435456 ; 0x10000000 - 8009bb0: d004 beq.n 8009bbc - 8009bb2: e054 b.n 8009c5e - { - case RCC_SPI6CLKSOURCE_D3PCLK1: /* D3PCLK1 (PCLK4) is the clock source for SPI6 */ - { - frequency = HAL_RCCEx_GetD3PCLK1Freq(); - 8009bb4: f000 f8b4 bl 8009d20 - 8009bb8: 63f8 str r0, [r7, #60] ; 0x3c - break; - 8009bba: e0a4 b.n 8009d06 - } - case RCC_SPI6CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI6 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY)) - 8009bbc: 4b54 ldr r3, [pc, #336] ; (8009d10 ) - 8009bbe: 681b ldr r3, [r3, #0] - 8009bc0: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 - 8009bc4: f1b3 6f00 cmp.w r3, #134217728 ; 0x8000000 - 8009bc8: d107 bne.n 8009bda - { - HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks); - 8009bca: f107 0318 add.w r3, r7, #24 - 8009bce: 4618 mov r0, r3 - 8009bd0: f000 f8bc bl 8009d4c - frequency = pll2_clocks.PLL2_Q_Frequency; - 8009bd4: 69fb ldr r3, [r7, #28] - 8009bd6: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 8009bd8: e095 b.n 8009d06 - frequency = 0; - 8009bda: 2300 movs r3, #0 - 8009bdc: 63fb str r3, [r7, #60] ; 0x3c - break; - 8009bde: e092 b.n 8009d06 - } - case RCC_SPI6CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI6 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY)) - 8009be0: 4b4b ldr r3, [pc, #300] ; (8009d10 ) - 8009be2: 681b ldr r3, [r3, #0] - 8009be4: f003 5300 and.w r3, r3, #536870912 ; 0x20000000 - 8009be8: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000 - 8009bec: d107 bne.n 8009bfe - { - HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks); - 8009bee: f107 030c add.w r3, r7, #12 - 8009bf2: 4618 mov r0, r3 - 8009bf4: f000 f9fe bl 8009ff4 - frequency = pll3_clocks.PLL3_Q_Frequency; - 8009bf8: 693b ldr r3, [r7, #16] - 8009bfa: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 8009bfc: e083 b.n 8009d06 - frequency = 0; - 8009bfe: 2300 movs r3, #0 - 8009c00: 63fb str r3, [r7, #60] ; 0x3c - break; - 8009c02: e080 b.n 8009d06 - } - case RCC_SPI6CLKSOURCE_HSI: /* HSI is the clock source for SPI6 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) - 8009c04: 4b42 ldr r3, [pc, #264] ; (8009d10 ) - 8009c06: 681b ldr r3, [r3, #0] - 8009c08: f003 0304 and.w r3, r3, #4 - 8009c0c: 2b04 cmp r3, #4 - 8009c0e: d109 bne.n 8009c24 - { - frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3)); - 8009c10: 4b3f ldr r3, [pc, #252] ; (8009d10 ) - 8009c12: 681b ldr r3, [r3, #0] - 8009c14: 08db lsrs r3, r3, #3 - 8009c16: f003 0303 and.w r3, r3, #3 - 8009c1a: 4a3e ldr r2, [pc, #248] ; (8009d14 ) - 8009c1c: fa22 f303 lsr.w r3, r2, r3 - 8009c20: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 8009c22: e070 b.n 8009d06 - frequency = 0; - 8009c24: 2300 movs r3, #0 - 8009c26: 63fb str r3, [r7, #60] ; 0x3c - break; - 8009c28: e06d b.n 8009d06 - } - case RCC_SPI6CLKSOURCE_CSI: /* CSI is the clock source for SPI6 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) - 8009c2a: 4b39 ldr r3, [pc, #228] ; (8009d10 ) - 8009c2c: 681b ldr r3, [r3, #0] - 8009c2e: f403 7380 and.w r3, r3, #256 ; 0x100 - 8009c32: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 8009c36: d102 bne.n 8009c3e - { - frequency = CSI_VALUE; - 8009c38: 4b37 ldr r3, [pc, #220] ; (8009d18 ) - 8009c3a: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 8009c3c: e063 b.n 8009d06 - frequency = 0; - 8009c3e: 2300 movs r3, #0 - 8009c40: 63fb str r3, [r7, #60] ; 0x3c - break; - 8009c42: e060 b.n 8009d06 - } - case RCC_SPI6CLKSOURCE_HSE: /* HSE is the clock source for SPI6 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) - 8009c44: 4b32 ldr r3, [pc, #200] ; (8009d10 ) - 8009c46: 681b ldr r3, [r3, #0] - 8009c48: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8009c4c: f5b3 3f00 cmp.w r3, #131072 ; 0x20000 - 8009c50: d102 bne.n 8009c58 - { - frequency = HSE_VALUE; - 8009c52: 4b32 ldr r3, [pc, #200] ; (8009d1c ) - 8009c54: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 8009c56: e056 b.n 8009d06 - frequency = 0; - 8009c58: 2300 movs r3, #0 - 8009c5a: 63fb str r3, [r7, #60] ; 0x3c - break; - 8009c5c: e053 b.n 8009d06 - break; - } -#endif /* RCC_SPI6CLKSOURCE_PIN */ - default : - { - frequency = 0; - 8009c5e: 2300 movs r3, #0 - 8009c60: 63fb str r3, [r7, #60] ; 0x3c - break; - 8009c62: e050 b.n 8009d06 - } - } - } - else if (PeriphClk == RCC_PERIPHCLK_FDCAN) - 8009c64: e9d7 2300 ldrd r2, r3, [r7] - 8009c68: f5a2 4100 sub.w r1, r2, #32768 ; 0x8000 - 8009c6c: 430b orrs r3, r1 - 8009c6e: d148 bne.n 8009d02 - { - /* Get FDCAN clock source */ - srcclk = __HAL_RCC_GET_FDCAN_SOURCE(); - 8009c70: 4b27 ldr r3, [pc, #156] ; (8009d10 ) - 8009c72: 6d1b ldr r3, [r3, #80] ; 0x50 - 8009c74: f003 5340 and.w r3, r3, #805306368 ; 0x30000000 - 8009c78: 63bb str r3, [r7, #56] ; 0x38 - - switch (srcclk) - 8009c7a: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009c7c: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000 - 8009c80: d02a beq.n 8009cd8 - 8009c82: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009c84: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000 - 8009c88: d838 bhi.n 8009cfc - 8009c8a: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009c8c: 2b00 cmp r3, #0 - 8009c8e: d004 beq.n 8009c9a - 8009c90: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009c92: f1b3 5f80 cmp.w r3, #268435456 ; 0x10000000 - 8009c96: d00d beq.n 8009cb4 - 8009c98: e030 b.n 8009cfc - { - case RCC_FDCANCLKSOURCE_HSE: /* HSE is the clock source for FDCAN */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) - 8009c9a: 4b1d ldr r3, [pc, #116] ; (8009d10 ) - 8009c9c: 681b ldr r3, [r3, #0] - 8009c9e: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8009ca2: f5b3 3f00 cmp.w r3, #131072 ; 0x20000 - 8009ca6: d102 bne.n 8009cae - { - frequency = HSE_VALUE; - 8009ca8: 4b1c ldr r3, [pc, #112] ; (8009d1c ) - 8009caa: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 8009cac: e02b b.n 8009d06 - frequency = 0; - 8009cae: 2300 movs r3, #0 - 8009cb0: 63fb str r3, [r7, #60] ; 0x3c - break; - 8009cb2: e028 b.n 8009d06 - } - case RCC_FDCANCLKSOURCE_PLL: /* PLL is the clock source for FDCAN */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY)) - 8009cb4: 4b16 ldr r3, [pc, #88] ; (8009d10 ) - 8009cb6: 681b ldr r3, [r3, #0] - 8009cb8: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 8009cbc: f1b3 7f00 cmp.w r3, #33554432 ; 0x2000000 - 8009cc0: d107 bne.n 8009cd2 - { - HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks); - 8009cc2: f107 0324 add.w r3, r7, #36 ; 0x24 - 8009cc6: 4618 mov r0, r3 - 8009cc8: f000 fae8 bl 800a29c - frequency = pll1_clocks.PLL1_Q_Frequency; - 8009ccc: 6abb ldr r3, [r7, #40] ; 0x28 - 8009cce: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 8009cd0: e019 b.n 8009d06 - frequency = 0; - 8009cd2: 2300 movs r3, #0 - 8009cd4: 63fb str r3, [r7, #60] ; 0x3c - break; - 8009cd6: e016 b.n 8009d06 - } - case RCC_FDCANCLKSOURCE_PLL2: /* PLL2 is the clock source for FDCAN */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY)) - 8009cd8: 4b0d ldr r3, [pc, #52] ; (8009d10 ) - 8009cda: 681b ldr r3, [r3, #0] - 8009cdc: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 - 8009ce0: f1b3 6f00 cmp.w r3, #134217728 ; 0x8000000 - 8009ce4: d107 bne.n 8009cf6 - { - HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks); - 8009ce6: f107 0318 add.w r3, r7, #24 - 8009cea: 4618 mov r0, r3 - 8009cec: f000 f82e bl 8009d4c - frequency = pll2_clocks.PLL2_Q_Frequency; - 8009cf0: 69fb ldr r3, [r7, #28] - 8009cf2: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - frequency = 0; - } - break; - 8009cf4: e007 b.n 8009d06 - frequency = 0; - 8009cf6: 2300 movs r3, #0 - 8009cf8: 63fb str r3, [r7, #60] ; 0x3c - break; - 8009cfa: e004 b.n 8009d06 - } - default : - { - frequency = 0; - 8009cfc: 2300 movs r3, #0 - 8009cfe: 63fb str r3, [r7, #60] ; 0x3c - break; - 8009d00: e001 b.n 8009d06 - } - } - } - else - { - frequency = 0; - 8009d02: 2300 movs r3, #0 - 8009d04: 63fb str r3, [r7, #60] ; 0x3c - } - - return frequency; - 8009d06: 6bfb ldr r3, [r7, #60] ; 0x3c -} - 8009d08: 4618 mov r0, r3 - 8009d0a: 3740 adds r7, #64 ; 0x40 - 8009d0c: 46bd mov sp, r7 - 8009d0e: bd80 pop {r7, pc} - 8009d10: 58024400 .word 0x58024400 - 8009d14: 03d09000 .word 0x03d09000 - 8009d18: 003d0900 .word 0x003d0900 - 8009d1c: 017d7840 .word 0x017d7840 - -08009d20 : - * @note Each time D3PCLK1 changes, this function must be called to update the - * right D3PCLK1 value. Otherwise, any configuration based on this function will be incorrect. - * @retval D3PCLK1 frequency - */ -uint32_t HAL_RCCEx_GetD3PCLK1Freq(void) -{ - 8009d20: b580 push {r7, lr} - 8009d22: af00 add r7, sp, #0 -#if defined(RCC_D3CFGR_D3PPRE) - /* Get HCLK source and Compute D3PCLK1 frequency ---------------------------*/ - return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->D3CFGR & RCC_D3CFGR_D3PPRE) >> RCC_D3CFGR_D3PPRE_Pos] & 0x1FU)); - 8009d24: f7fe f8ec bl 8007f00 - 8009d28: 4602 mov r2, r0 - 8009d2a: 4b06 ldr r3, [pc, #24] ; (8009d44 ) - 8009d2c: 6a1b ldr r3, [r3, #32] - 8009d2e: 091b lsrs r3, r3, #4 - 8009d30: f003 0307 and.w r3, r3, #7 - 8009d34: 4904 ldr r1, [pc, #16] ; (8009d48 ) - 8009d36: 5ccb ldrb r3, [r1, r3] - 8009d38: f003 031f and.w r3, r3, #31 - 8009d3c: fa22 f303 lsr.w r3, r2, r3 -#else - /* Get HCLK source and Compute D3PCLK1 frequency ---------------------------*/ - return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE) >> RCC_SRDCFGR_SRDPPRE_Pos] & 0x1FU)); -#endif -} - 8009d40: 4618 mov r0, r3 - 8009d42: bd80 pop {r7, pc} - 8009d44: 58024400 .word 0x58024400 - 8009d48: 08026b40 .word 0x08026b40 - -08009d4c : - * right PLL2CLK value. Otherwise, any configuration based on this function will be incorrect. - * @param PLL2_Clocks structure. - * @retval None - */ -void HAL_RCCEx_GetPLL2ClockFreq(PLL2_ClocksTypeDef *PLL2_Clocks) -{ - 8009d4c: b480 push {r7} - 8009d4e: b089 sub sp, #36 ; 0x24 - 8009d50: af00 add r7, sp, #0 - 8009d52: 6078 str r0, [r7, #4] - float_t fracn2, pll2vco; - - /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLL2M) * PLL2N - PLL2xCLK = PLL2_VCO / PLL2x - */ - pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC); - 8009d54: 4ba1 ldr r3, [pc, #644] ; (8009fdc ) - 8009d56: 6a9b ldr r3, [r3, #40] ; 0x28 - 8009d58: f003 0303 and.w r3, r3, #3 - 8009d5c: 61bb str r3, [r7, #24] - pll2m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM2) >> 12); - 8009d5e: 4b9f ldr r3, [pc, #636] ; (8009fdc ) - 8009d60: 6a9b ldr r3, [r3, #40] ; 0x28 - 8009d62: 0b1b lsrs r3, r3, #12 - 8009d64: f003 033f and.w r3, r3, #63 ; 0x3f - 8009d68: 617b str r3, [r7, #20] - pll2fracen = (RCC->PLLCFGR & RCC_PLLCFGR_PLL2FRACEN) >> RCC_PLLCFGR_PLL2FRACEN_Pos; - 8009d6a: 4b9c ldr r3, [pc, #624] ; (8009fdc ) - 8009d6c: 6adb ldr r3, [r3, #44] ; 0x2c - 8009d6e: 091b lsrs r3, r3, #4 - 8009d70: f003 0301 and.w r3, r3, #1 - 8009d74: 613b str r3, [r7, #16] - fracn2 = (float_t)(uint32_t)(pll2fracen * ((RCC->PLL2FRACR & RCC_PLL2FRACR_FRACN2) >> 3)); - 8009d76: 4b99 ldr r3, [pc, #612] ; (8009fdc ) - 8009d78: 6bdb ldr r3, [r3, #60] ; 0x3c - 8009d7a: 08db lsrs r3, r3, #3 - 8009d7c: f3c3 030c ubfx r3, r3, #0, #13 - 8009d80: 693a ldr r2, [r7, #16] - 8009d82: fb02 f303 mul.w r3, r2, r3 - 8009d86: ee07 3a90 vmov s15, r3 - 8009d8a: eef8 7a67 vcvt.f32.u32 s15, s15 - 8009d8e: edc7 7a03 vstr s15, [r7, #12] - - if (pll2m != 0U) - 8009d92: 697b ldr r3, [r7, #20] - 8009d94: 2b00 cmp r3, #0 - 8009d96: f000 8111 beq.w 8009fbc - { - switch (pllsource) - 8009d9a: 69bb ldr r3, [r7, #24] - 8009d9c: 2b02 cmp r3, #2 - 8009d9e: f000 8083 beq.w 8009ea8 - 8009da2: 69bb ldr r3, [r7, #24] - 8009da4: 2b02 cmp r3, #2 - 8009da6: f200 80a1 bhi.w 8009eec - 8009daa: 69bb ldr r3, [r7, #24] - 8009dac: 2b00 cmp r3, #0 - 8009dae: d003 beq.n 8009db8 - 8009db0: 69bb ldr r3, [r7, #24] - 8009db2: 2b01 cmp r3, #1 - 8009db4: d056 beq.n 8009e64 - 8009db6: e099 b.n 8009eec - { - - case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */ - - if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U) - 8009db8: 4b88 ldr r3, [pc, #544] ; (8009fdc ) - 8009dba: 681b ldr r3, [r3, #0] - 8009dbc: f003 0320 and.w r3, r3, #32 - 8009dc0: 2b00 cmp r3, #0 - 8009dc2: d02d beq.n 8009e20 - { - hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3)); - 8009dc4: 4b85 ldr r3, [pc, #532] ; (8009fdc ) - 8009dc6: 681b ldr r3, [r3, #0] - 8009dc8: 08db lsrs r3, r3, #3 - 8009dca: f003 0303 and.w r3, r3, #3 - 8009dce: 4a84 ldr r2, [pc, #528] ; (8009fe0 ) - 8009dd0: fa22 f303 lsr.w r3, r2, r3 - 8009dd4: 60bb str r3, [r7, #8] - pll2vco = ((float_t)hsivalue / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1); - 8009dd6: 68bb ldr r3, [r7, #8] - 8009dd8: ee07 3a90 vmov s15, r3 - 8009ddc: eef8 6a67 vcvt.f32.u32 s13, s15 - 8009de0: 697b ldr r3, [r7, #20] - 8009de2: ee07 3a90 vmov s15, r3 - 8009de6: eef8 7a67 vcvt.f32.u32 s15, s15 - 8009dea: ee86 7aa7 vdiv.f32 s14, s13, s15 - 8009dee: 4b7b ldr r3, [pc, #492] ; (8009fdc ) - 8009df0: 6b9b ldr r3, [r3, #56] ; 0x38 - 8009df2: f3c3 0308 ubfx r3, r3, #0, #9 - 8009df6: ee07 3a90 vmov s15, r3 - 8009dfa: eef8 6a67 vcvt.f32.u32 s13, s15 - 8009dfe: ed97 6a03 vldr s12, [r7, #12] - 8009e02: eddf 5a78 vldr s11, [pc, #480] ; 8009fe4 - 8009e06: eec6 7a25 vdiv.f32 s15, s12, s11 - 8009e0a: ee76 7aa7 vadd.f32 s15, s13, s15 - 8009e0e: eef7 6a00 vmov.f32 s13, #112 ; 0x3f800000 1.0 - 8009e12: ee77 7aa6 vadd.f32 s15, s15, s13 - 8009e16: ee67 7a27 vmul.f32 s15, s14, s15 - 8009e1a: edc7 7a07 vstr s15, [r7, #28] - } - else - { - pll2vco = ((float_t)HSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1); - } - break; - 8009e1e: e087 b.n 8009f30 - pll2vco = ((float_t)HSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1); - 8009e20: 697b ldr r3, [r7, #20] - 8009e22: ee07 3a90 vmov s15, r3 - 8009e26: eef8 7a67 vcvt.f32.u32 s15, s15 - 8009e2a: eddf 6a6f vldr s13, [pc, #444] ; 8009fe8 - 8009e2e: ee86 7aa7 vdiv.f32 s14, s13, s15 - 8009e32: 4b6a ldr r3, [pc, #424] ; (8009fdc ) - 8009e34: 6b9b ldr r3, [r3, #56] ; 0x38 - 8009e36: f3c3 0308 ubfx r3, r3, #0, #9 - 8009e3a: ee07 3a90 vmov s15, r3 - 8009e3e: eef8 6a67 vcvt.f32.u32 s13, s15 - 8009e42: ed97 6a03 vldr s12, [r7, #12] - 8009e46: eddf 5a67 vldr s11, [pc, #412] ; 8009fe4 - 8009e4a: eec6 7a25 vdiv.f32 s15, s12, s11 - 8009e4e: ee76 7aa7 vadd.f32 s15, s13, s15 - 8009e52: eef7 6a00 vmov.f32 s13, #112 ; 0x3f800000 1.0 - 8009e56: ee77 7aa6 vadd.f32 s15, s15, s13 - 8009e5a: ee67 7a27 vmul.f32 s15, s14, s15 - 8009e5e: edc7 7a07 vstr s15, [r7, #28] - break; - 8009e62: e065 b.n 8009f30 - - case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */ - pll2vco = ((float_t)CSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1); - 8009e64: 697b ldr r3, [r7, #20] - 8009e66: ee07 3a90 vmov s15, r3 - 8009e6a: eef8 7a67 vcvt.f32.u32 s15, s15 - 8009e6e: eddf 6a5f vldr s13, [pc, #380] ; 8009fec - 8009e72: ee86 7aa7 vdiv.f32 s14, s13, s15 - 8009e76: 4b59 ldr r3, [pc, #356] ; (8009fdc ) - 8009e78: 6b9b ldr r3, [r3, #56] ; 0x38 - 8009e7a: f3c3 0308 ubfx r3, r3, #0, #9 - 8009e7e: ee07 3a90 vmov s15, r3 - 8009e82: eef8 6a67 vcvt.f32.u32 s13, s15 - 8009e86: ed97 6a03 vldr s12, [r7, #12] - 8009e8a: eddf 5a56 vldr s11, [pc, #344] ; 8009fe4 - 8009e8e: eec6 7a25 vdiv.f32 s15, s12, s11 - 8009e92: ee76 7aa7 vadd.f32 s15, s13, s15 - 8009e96: eef7 6a00 vmov.f32 s13, #112 ; 0x3f800000 1.0 - 8009e9a: ee77 7aa6 vadd.f32 s15, s15, s13 - 8009e9e: ee67 7a27 vmul.f32 s15, s14, s15 - 8009ea2: edc7 7a07 vstr s15, [r7, #28] - break; - 8009ea6: e043 b.n 8009f30 - - case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */ - pll2vco = ((float_t)HSE_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1); - 8009ea8: 697b ldr r3, [r7, #20] - 8009eaa: ee07 3a90 vmov s15, r3 - 8009eae: eef8 7a67 vcvt.f32.u32 s15, s15 - 8009eb2: eddf 6a4f vldr s13, [pc, #316] ; 8009ff0 - 8009eb6: ee86 7aa7 vdiv.f32 s14, s13, s15 - 8009eba: 4b48 ldr r3, [pc, #288] ; (8009fdc ) - 8009ebc: 6b9b ldr r3, [r3, #56] ; 0x38 - 8009ebe: f3c3 0308 ubfx r3, r3, #0, #9 - 8009ec2: ee07 3a90 vmov s15, r3 - 8009ec6: eef8 6a67 vcvt.f32.u32 s13, s15 - 8009eca: ed97 6a03 vldr s12, [r7, #12] - 8009ece: eddf 5a45 vldr s11, [pc, #276] ; 8009fe4 - 8009ed2: eec6 7a25 vdiv.f32 s15, s12, s11 - 8009ed6: ee76 7aa7 vadd.f32 s15, s13, s15 - 8009eda: eef7 6a00 vmov.f32 s13, #112 ; 0x3f800000 1.0 - 8009ede: ee77 7aa6 vadd.f32 s15, s15, s13 - 8009ee2: ee67 7a27 vmul.f32 s15, s14, s15 - 8009ee6: edc7 7a07 vstr s15, [r7, #28] - break; - 8009eea: e021 b.n 8009f30 - - default: - pll2vco = ((float_t)CSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1); - 8009eec: 697b ldr r3, [r7, #20] - 8009eee: ee07 3a90 vmov s15, r3 - 8009ef2: eef8 7a67 vcvt.f32.u32 s15, s15 - 8009ef6: eddf 6a3d vldr s13, [pc, #244] ; 8009fec - 8009efa: ee86 7aa7 vdiv.f32 s14, s13, s15 - 8009efe: 4b37 ldr r3, [pc, #220] ; (8009fdc ) - 8009f00: 6b9b ldr r3, [r3, #56] ; 0x38 - 8009f02: f3c3 0308 ubfx r3, r3, #0, #9 - 8009f06: ee07 3a90 vmov s15, r3 - 8009f0a: eef8 6a67 vcvt.f32.u32 s13, s15 - 8009f0e: ed97 6a03 vldr s12, [r7, #12] - 8009f12: eddf 5a34 vldr s11, [pc, #208] ; 8009fe4 - 8009f16: eec6 7a25 vdiv.f32 s15, s12, s11 - 8009f1a: ee76 7aa7 vadd.f32 s15, s13, s15 - 8009f1e: eef7 6a00 vmov.f32 s13, #112 ; 0x3f800000 1.0 - 8009f22: ee77 7aa6 vadd.f32 s15, s15, s13 - 8009f26: ee67 7a27 vmul.f32 s15, s14, s15 - 8009f2a: edc7 7a07 vstr s15, [r7, #28] - break; - 8009f2e: bf00 nop - } - PLL2_Clocks->PLL2_P_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_P2) >> 9) + (float_t)1)) ; - 8009f30: 4b2a ldr r3, [pc, #168] ; (8009fdc ) - 8009f32: 6b9b ldr r3, [r3, #56] ; 0x38 - 8009f34: 0a5b lsrs r3, r3, #9 - 8009f36: f003 037f and.w r3, r3, #127 ; 0x7f - 8009f3a: ee07 3a90 vmov s15, r3 - 8009f3e: eef8 7a67 vcvt.f32.u32 s15, s15 - 8009f42: eeb7 7a00 vmov.f32 s14, #112 ; 0x3f800000 1.0 - 8009f46: ee37 7a87 vadd.f32 s14, s15, s14 - 8009f4a: edd7 6a07 vldr s13, [r7, #28] - 8009f4e: eec6 7a87 vdiv.f32 s15, s13, s14 - 8009f52: eefc 7ae7 vcvt.u32.f32 s15, s15 - 8009f56: ee17 2a90 vmov r2, s15 - 8009f5a: 687b ldr r3, [r7, #4] - 8009f5c: 601a str r2, [r3, #0] - PLL2_Clocks->PLL2_Q_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_Q2) >> 16) + (float_t)1)) ; - 8009f5e: 4b1f ldr r3, [pc, #124] ; (8009fdc ) - 8009f60: 6b9b ldr r3, [r3, #56] ; 0x38 - 8009f62: 0c1b lsrs r3, r3, #16 - 8009f64: f003 037f and.w r3, r3, #127 ; 0x7f - 8009f68: ee07 3a90 vmov s15, r3 - 8009f6c: eef8 7a67 vcvt.f32.u32 s15, s15 - 8009f70: eeb7 7a00 vmov.f32 s14, #112 ; 0x3f800000 1.0 - 8009f74: ee37 7a87 vadd.f32 s14, s15, s14 - 8009f78: edd7 6a07 vldr s13, [r7, #28] - 8009f7c: eec6 7a87 vdiv.f32 s15, s13, s14 - 8009f80: eefc 7ae7 vcvt.u32.f32 s15, s15 - 8009f84: ee17 2a90 vmov r2, s15 - 8009f88: 687b ldr r3, [r7, #4] - 8009f8a: 605a str r2, [r3, #4] - PLL2_Clocks->PLL2_R_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_R2) >> 24) + (float_t)1)) ; - 8009f8c: 4b13 ldr r3, [pc, #76] ; (8009fdc ) - 8009f8e: 6b9b ldr r3, [r3, #56] ; 0x38 - 8009f90: 0e1b lsrs r3, r3, #24 - 8009f92: f003 037f and.w r3, r3, #127 ; 0x7f - 8009f96: ee07 3a90 vmov s15, r3 - 8009f9a: eef8 7a67 vcvt.f32.u32 s15, s15 - 8009f9e: eeb7 7a00 vmov.f32 s14, #112 ; 0x3f800000 1.0 - 8009fa2: ee37 7a87 vadd.f32 s14, s15, s14 - 8009fa6: edd7 6a07 vldr s13, [r7, #28] - 8009faa: eec6 7a87 vdiv.f32 s15, s13, s14 - 8009fae: eefc 7ae7 vcvt.u32.f32 s15, s15 - 8009fb2: ee17 2a90 vmov r2, s15 - 8009fb6: 687b ldr r3, [r7, #4] - 8009fb8: 609a str r2, [r3, #8] - { - PLL2_Clocks->PLL2_P_Frequency = 0U; - PLL2_Clocks->PLL2_Q_Frequency = 0U; - PLL2_Clocks->PLL2_R_Frequency = 0U; - } -} - 8009fba: e008 b.n 8009fce - PLL2_Clocks->PLL2_P_Frequency = 0U; - 8009fbc: 687b ldr r3, [r7, #4] - 8009fbe: 2200 movs r2, #0 - 8009fc0: 601a str r2, [r3, #0] - PLL2_Clocks->PLL2_Q_Frequency = 0U; - 8009fc2: 687b ldr r3, [r7, #4] - 8009fc4: 2200 movs r2, #0 - 8009fc6: 605a str r2, [r3, #4] - PLL2_Clocks->PLL2_R_Frequency = 0U; - 8009fc8: 687b ldr r3, [r7, #4] - 8009fca: 2200 movs r2, #0 - 8009fcc: 609a str r2, [r3, #8] -} - 8009fce: bf00 nop - 8009fd0: 3724 adds r7, #36 ; 0x24 - 8009fd2: 46bd mov sp, r7 - 8009fd4: f85d 7b04 ldr.w r7, [sp], #4 - 8009fd8: 4770 bx lr - 8009fda: bf00 nop - 8009fdc: 58024400 .word 0x58024400 - 8009fe0: 03d09000 .word 0x03d09000 - 8009fe4: 46000000 .word 0x46000000 - 8009fe8: 4c742400 .word 0x4c742400 - 8009fec: 4a742400 .word 0x4a742400 - 8009ff0: 4bbebc20 .word 0x4bbebc20 - -08009ff4 : - * right PLL3CLK value. Otherwise, any configuration based on this function will be incorrect. - * @param PLL3_Clocks structure. - * @retval None - */ -void HAL_RCCEx_GetPLL3ClockFreq(PLL3_ClocksTypeDef *PLL3_Clocks) -{ - 8009ff4: b480 push {r7} - 8009ff6: b089 sub sp, #36 ; 0x24 - 8009ff8: af00 add r7, sp, #0 - 8009ffa: 6078 str r0, [r7, #4] - float_t fracn3, pll3vco; - - /* PLL3_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLL3M) * PLL3N - PLL3xCLK = PLL3_VCO / PLLxR - */ - pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC); - 8009ffc: 4ba1 ldr r3, [pc, #644] ; (800a284 ) - 8009ffe: 6a9b ldr r3, [r3, #40] ; 0x28 - 800a000: f003 0303 and.w r3, r3, #3 - 800a004: 61bb str r3, [r7, #24] - pll3m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM3) >> 20) ; - 800a006: 4b9f ldr r3, [pc, #636] ; (800a284 ) - 800a008: 6a9b ldr r3, [r3, #40] ; 0x28 - 800a00a: 0d1b lsrs r3, r3, #20 - 800a00c: f003 033f and.w r3, r3, #63 ; 0x3f - 800a010: 617b str r3, [r7, #20] - pll3fracen = (RCC->PLLCFGR & RCC_PLLCFGR_PLL3FRACEN) >> RCC_PLLCFGR_PLL3FRACEN_Pos; - 800a012: 4b9c ldr r3, [pc, #624] ; (800a284 ) - 800a014: 6adb ldr r3, [r3, #44] ; 0x2c - 800a016: 0a1b lsrs r3, r3, #8 - 800a018: f003 0301 and.w r3, r3, #1 - 800a01c: 613b str r3, [r7, #16] - fracn3 = (float_t)(uint32_t)(pll3fracen * ((RCC->PLL3FRACR & RCC_PLL3FRACR_FRACN3) >> 3)); - 800a01e: 4b99 ldr r3, [pc, #612] ; (800a284 ) - 800a020: 6c5b ldr r3, [r3, #68] ; 0x44 - 800a022: 08db lsrs r3, r3, #3 - 800a024: f3c3 030c ubfx r3, r3, #0, #13 - 800a028: 693a ldr r2, [r7, #16] - 800a02a: fb02 f303 mul.w r3, r2, r3 - 800a02e: ee07 3a90 vmov s15, r3 - 800a032: eef8 7a67 vcvt.f32.u32 s15, s15 - 800a036: edc7 7a03 vstr s15, [r7, #12] - - if (pll3m != 0U) - 800a03a: 697b ldr r3, [r7, #20] - 800a03c: 2b00 cmp r3, #0 - 800a03e: f000 8111 beq.w 800a264 - { - switch (pllsource) - 800a042: 69bb ldr r3, [r7, #24] - 800a044: 2b02 cmp r3, #2 - 800a046: f000 8083 beq.w 800a150 - 800a04a: 69bb ldr r3, [r7, #24] - 800a04c: 2b02 cmp r3, #2 - 800a04e: f200 80a1 bhi.w 800a194 - 800a052: 69bb ldr r3, [r7, #24] - 800a054: 2b00 cmp r3, #0 - 800a056: d003 beq.n 800a060 - 800a058: 69bb ldr r3, [r7, #24] - 800a05a: 2b01 cmp r3, #1 - 800a05c: d056 beq.n 800a10c - 800a05e: e099 b.n 800a194 - { - case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */ - - if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U) - 800a060: 4b88 ldr r3, [pc, #544] ; (800a284 ) - 800a062: 681b ldr r3, [r3, #0] - 800a064: f003 0320 and.w r3, r3, #32 - 800a068: 2b00 cmp r3, #0 - 800a06a: d02d beq.n 800a0c8 - { - hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3)); - 800a06c: 4b85 ldr r3, [pc, #532] ; (800a284 ) - 800a06e: 681b ldr r3, [r3, #0] - 800a070: 08db lsrs r3, r3, #3 - 800a072: f003 0303 and.w r3, r3, #3 - 800a076: 4a84 ldr r2, [pc, #528] ; (800a288 ) - 800a078: fa22 f303 lsr.w r3, r2, r3 - 800a07c: 60bb str r3, [r7, #8] - pll3vco = ((float_t)hsivalue / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1); - 800a07e: 68bb ldr r3, [r7, #8] - 800a080: ee07 3a90 vmov s15, r3 - 800a084: eef8 6a67 vcvt.f32.u32 s13, s15 - 800a088: 697b ldr r3, [r7, #20] - 800a08a: ee07 3a90 vmov s15, r3 - 800a08e: eef8 7a67 vcvt.f32.u32 s15, s15 - 800a092: ee86 7aa7 vdiv.f32 s14, s13, s15 - 800a096: 4b7b ldr r3, [pc, #492] ; (800a284 ) - 800a098: 6c1b ldr r3, [r3, #64] ; 0x40 - 800a09a: f3c3 0308 ubfx r3, r3, #0, #9 - 800a09e: ee07 3a90 vmov s15, r3 - 800a0a2: eef8 6a67 vcvt.f32.u32 s13, s15 - 800a0a6: ed97 6a03 vldr s12, [r7, #12] - 800a0aa: eddf 5a78 vldr s11, [pc, #480] ; 800a28c - 800a0ae: eec6 7a25 vdiv.f32 s15, s12, s11 - 800a0b2: ee76 7aa7 vadd.f32 s15, s13, s15 - 800a0b6: eef7 6a00 vmov.f32 s13, #112 ; 0x3f800000 1.0 - 800a0ba: ee77 7aa6 vadd.f32 s15, s15, s13 - 800a0be: ee67 7a27 vmul.f32 s15, s14, s15 - 800a0c2: edc7 7a07 vstr s15, [r7, #28] - } - else - { - pll3vco = ((float_t)HSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1); - } - break; - 800a0c6: e087 b.n 800a1d8 - pll3vco = ((float_t)HSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1); - 800a0c8: 697b ldr r3, [r7, #20] - 800a0ca: ee07 3a90 vmov s15, r3 - 800a0ce: eef8 7a67 vcvt.f32.u32 s15, s15 - 800a0d2: eddf 6a6f vldr s13, [pc, #444] ; 800a290 - 800a0d6: ee86 7aa7 vdiv.f32 s14, s13, s15 - 800a0da: 4b6a ldr r3, [pc, #424] ; (800a284 ) - 800a0dc: 6c1b ldr r3, [r3, #64] ; 0x40 - 800a0de: f3c3 0308 ubfx r3, r3, #0, #9 - 800a0e2: ee07 3a90 vmov s15, r3 - 800a0e6: eef8 6a67 vcvt.f32.u32 s13, s15 - 800a0ea: ed97 6a03 vldr s12, [r7, #12] - 800a0ee: eddf 5a67 vldr s11, [pc, #412] ; 800a28c - 800a0f2: eec6 7a25 vdiv.f32 s15, s12, s11 - 800a0f6: ee76 7aa7 vadd.f32 s15, s13, s15 - 800a0fa: eef7 6a00 vmov.f32 s13, #112 ; 0x3f800000 1.0 - 800a0fe: ee77 7aa6 vadd.f32 s15, s15, s13 - 800a102: ee67 7a27 vmul.f32 s15, s14, s15 - 800a106: edc7 7a07 vstr s15, [r7, #28] - break; - 800a10a: e065 b.n 800a1d8 - case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */ - pll3vco = ((float_t)CSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1); - 800a10c: 697b ldr r3, [r7, #20] - 800a10e: ee07 3a90 vmov s15, r3 - 800a112: eef8 7a67 vcvt.f32.u32 s15, s15 - 800a116: eddf 6a5f vldr s13, [pc, #380] ; 800a294 - 800a11a: ee86 7aa7 vdiv.f32 s14, s13, s15 - 800a11e: 4b59 ldr r3, [pc, #356] ; (800a284 ) - 800a120: 6c1b ldr r3, [r3, #64] ; 0x40 - 800a122: f3c3 0308 ubfx r3, r3, #0, #9 - 800a126: ee07 3a90 vmov s15, r3 - 800a12a: eef8 6a67 vcvt.f32.u32 s13, s15 - 800a12e: ed97 6a03 vldr s12, [r7, #12] - 800a132: eddf 5a56 vldr s11, [pc, #344] ; 800a28c - 800a136: eec6 7a25 vdiv.f32 s15, s12, s11 - 800a13a: ee76 7aa7 vadd.f32 s15, s13, s15 - 800a13e: eef7 6a00 vmov.f32 s13, #112 ; 0x3f800000 1.0 - 800a142: ee77 7aa6 vadd.f32 s15, s15, s13 - 800a146: ee67 7a27 vmul.f32 s15, s14, s15 - 800a14a: edc7 7a07 vstr s15, [r7, #28] - break; - 800a14e: e043 b.n 800a1d8 - - case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */ - pll3vco = ((float_t)HSE_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1); - 800a150: 697b ldr r3, [r7, #20] - 800a152: ee07 3a90 vmov s15, r3 - 800a156: eef8 7a67 vcvt.f32.u32 s15, s15 - 800a15a: eddf 6a4f vldr s13, [pc, #316] ; 800a298 - 800a15e: ee86 7aa7 vdiv.f32 s14, s13, s15 - 800a162: 4b48 ldr r3, [pc, #288] ; (800a284 ) - 800a164: 6c1b ldr r3, [r3, #64] ; 0x40 - 800a166: f3c3 0308 ubfx r3, r3, #0, #9 - 800a16a: ee07 3a90 vmov s15, r3 - 800a16e: eef8 6a67 vcvt.f32.u32 s13, s15 - 800a172: ed97 6a03 vldr s12, [r7, #12] - 800a176: eddf 5a45 vldr s11, [pc, #276] ; 800a28c - 800a17a: eec6 7a25 vdiv.f32 s15, s12, s11 - 800a17e: ee76 7aa7 vadd.f32 s15, s13, s15 - 800a182: eef7 6a00 vmov.f32 s13, #112 ; 0x3f800000 1.0 - 800a186: ee77 7aa6 vadd.f32 s15, s15, s13 - 800a18a: ee67 7a27 vmul.f32 s15, s14, s15 - 800a18e: edc7 7a07 vstr s15, [r7, #28] - break; - 800a192: e021 b.n 800a1d8 - - default: - pll3vco = ((float_t)CSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1); - 800a194: 697b ldr r3, [r7, #20] - 800a196: ee07 3a90 vmov s15, r3 - 800a19a: eef8 7a67 vcvt.f32.u32 s15, s15 - 800a19e: eddf 6a3d vldr s13, [pc, #244] ; 800a294 - 800a1a2: ee86 7aa7 vdiv.f32 s14, s13, s15 - 800a1a6: 4b37 ldr r3, [pc, #220] ; (800a284 ) - 800a1a8: 6c1b ldr r3, [r3, #64] ; 0x40 - 800a1aa: f3c3 0308 ubfx r3, r3, #0, #9 - 800a1ae: ee07 3a90 vmov s15, r3 - 800a1b2: eef8 6a67 vcvt.f32.u32 s13, s15 - 800a1b6: ed97 6a03 vldr s12, [r7, #12] - 800a1ba: eddf 5a34 vldr s11, [pc, #208] ; 800a28c - 800a1be: eec6 7a25 vdiv.f32 s15, s12, s11 - 800a1c2: ee76 7aa7 vadd.f32 s15, s13, s15 - 800a1c6: eef7 6a00 vmov.f32 s13, #112 ; 0x3f800000 1.0 - 800a1ca: ee77 7aa6 vadd.f32 s15, s15, s13 - 800a1ce: ee67 7a27 vmul.f32 s15, s14, s15 - 800a1d2: edc7 7a07 vstr s15, [r7, #28] - break; - 800a1d6: bf00 nop - } - PLL3_Clocks->PLL3_P_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_P3) >> 9) + (float_t)1)) ; - 800a1d8: 4b2a ldr r3, [pc, #168] ; (800a284 ) - 800a1da: 6c1b ldr r3, [r3, #64] ; 0x40 - 800a1dc: 0a5b lsrs r3, r3, #9 - 800a1de: f003 037f and.w r3, r3, #127 ; 0x7f - 800a1e2: ee07 3a90 vmov s15, r3 - 800a1e6: eef8 7a67 vcvt.f32.u32 s15, s15 - 800a1ea: eeb7 7a00 vmov.f32 s14, #112 ; 0x3f800000 1.0 - 800a1ee: ee37 7a87 vadd.f32 s14, s15, s14 - 800a1f2: edd7 6a07 vldr s13, [r7, #28] - 800a1f6: eec6 7a87 vdiv.f32 s15, s13, s14 - 800a1fa: eefc 7ae7 vcvt.u32.f32 s15, s15 - 800a1fe: ee17 2a90 vmov r2, s15 - 800a202: 687b ldr r3, [r7, #4] - 800a204: 601a str r2, [r3, #0] - PLL3_Clocks->PLL3_Q_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_Q3) >> 16) + (float_t)1)) ; - 800a206: 4b1f ldr r3, [pc, #124] ; (800a284 ) - 800a208: 6c1b ldr r3, [r3, #64] ; 0x40 - 800a20a: 0c1b lsrs r3, r3, #16 - 800a20c: f003 037f and.w r3, r3, #127 ; 0x7f - 800a210: ee07 3a90 vmov s15, r3 - 800a214: eef8 7a67 vcvt.f32.u32 s15, s15 - 800a218: eeb7 7a00 vmov.f32 s14, #112 ; 0x3f800000 1.0 - 800a21c: ee37 7a87 vadd.f32 s14, s15, s14 - 800a220: edd7 6a07 vldr s13, [r7, #28] - 800a224: eec6 7a87 vdiv.f32 s15, s13, s14 - 800a228: eefc 7ae7 vcvt.u32.f32 s15, s15 - 800a22c: ee17 2a90 vmov r2, s15 - 800a230: 687b ldr r3, [r7, #4] - 800a232: 605a str r2, [r3, #4] - PLL3_Clocks->PLL3_R_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_R3) >> 24) + (float_t)1)) ; - 800a234: 4b13 ldr r3, [pc, #76] ; (800a284 ) - 800a236: 6c1b ldr r3, [r3, #64] ; 0x40 - 800a238: 0e1b lsrs r3, r3, #24 - 800a23a: f003 037f and.w r3, r3, #127 ; 0x7f - 800a23e: ee07 3a90 vmov s15, r3 - 800a242: eef8 7a67 vcvt.f32.u32 s15, s15 - 800a246: eeb7 7a00 vmov.f32 s14, #112 ; 0x3f800000 1.0 - 800a24a: ee37 7a87 vadd.f32 s14, s15, s14 - 800a24e: edd7 6a07 vldr s13, [r7, #28] - 800a252: eec6 7a87 vdiv.f32 s15, s13, s14 - 800a256: eefc 7ae7 vcvt.u32.f32 s15, s15 - 800a25a: ee17 2a90 vmov r2, s15 - 800a25e: 687b ldr r3, [r7, #4] - 800a260: 609a str r2, [r3, #8] - PLL3_Clocks->PLL3_P_Frequency = 0U; - PLL3_Clocks->PLL3_Q_Frequency = 0U; - PLL3_Clocks->PLL3_R_Frequency = 0U; - } - -} - 800a262: e008 b.n 800a276 - PLL3_Clocks->PLL3_P_Frequency = 0U; - 800a264: 687b ldr r3, [r7, #4] - 800a266: 2200 movs r2, #0 - 800a268: 601a str r2, [r3, #0] - PLL3_Clocks->PLL3_Q_Frequency = 0U; - 800a26a: 687b ldr r3, [r7, #4] - 800a26c: 2200 movs r2, #0 - 800a26e: 605a str r2, [r3, #4] - PLL3_Clocks->PLL3_R_Frequency = 0U; - 800a270: 687b ldr r3, [r7, #4] - 800a272: 2200 movs r2, #0 - 800a274: 609a str r2, [r3, #8] -} - 800a276: bf00 nop - 800a278: 3724 adds r7, #36 ; 0x24 - 800a27a: 46bd mov sp, r7 - 800a27c: f85d 7b04 ldr.w r7, [sp], #4 - 800a280: 4770 bx lr - 800a282: bf00 nop - 800a284: 58024400 .word 0x58024400 - 800a288: 03d09000 .word 0x03d09000 - 800a28c: 46000000 .word 0x46000000 - 800a290: 4c742400 .word 0x4c742400 - 800a294: 4a742400 .word 0x4a742400 - 800a298: 4bbebc20 .word 0x4bbebc20 - -0800a29c : - * right PLL1CLK value. Otherwise, any configuration based on this function will be incorrect. - * @param PLL1_Clocks structure. - * @retval None - */ -void HAL_RCCEx_GetPLL1ClockFreq(PLL1_ClocksTypeDef *PLL1_Clocks) -{ - 800a29c: b480 push {r7} - 800a29e: b089 sub sp, #36 ; 0x24 - 800a2a0: af00 add r7, sp, #0 - 800a2a2: 6078 str r0, [r7, #4] - uint32_t pllsource, pll1m, pll1fracen, hsivalue; - float_t fracn1, pll1vco; - - pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC); - 800a2a4: 4ba0 ldr r3, [pc, #640] ; (800a528 ) - 800a2a6: 6a9b ldr r3, [r3, #40] ; 0x28 - 800a2a8: f003 0303 and.w r3, r3, #3 - 800a2ac: 61bb str r3, [r7, #24] - pll1m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM1) >> 4); - 800a2ae: 4b9e ldr r3, [pc, #632] ; (800a528 ) - 800a2b0: 6a9b ldr r3, [r3, #40] ; 0x28 - 800a2b2: 091b lsrs r3, r3, #4 - 800a2b4: f003 033f and.w r3, r3, #63 ; 0x3f - 800a2b8: 617b str r3, [r7, #20] - pll1fracen = RCC->PLLCFGR & RCC_PLLCFGR_PLL1FRACEN; - 800a2ba: 4b9b ldr r3, [pc, #620] ; (800a528 ) - 800a2bc: 6adb ldr r3, [r3, #44] ; 0x2c - 800a2be: f003 0301 and.w r3, r3, #1 - 800a2c2: 613b str r3, [r7, #16] - fracn1 = (float_t)(uint32_t)(pll1fracen * ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> 3)); - 800a2c4: 4b98 ldr r3, [pc, #608] ; (800a528 ) - 800a2c6: 6b5b ldr r3, [r3, #52] ; 0x34 - 800a2c8: 08db lsrs r3, r3, #3 - 800a2ca: f3c3 030c ubfx r3, r3, #0, #13 - 800a2ce: 693a ldr r2, [r7, #16] - 800a2d0: fb02 f303 mul.w r3, r2, r3 - 800a2d4: ee07 3a90 vmov s15, r3 - 800a2d8: eef8 7a67 vcvt.f32.u32 s15, s15 - 800a2dc: edc7 7a03 vstr s15, [r7, #12] - - if (pll1m != 0U) - 800a2e0: 697b ldr r3, [r7, #20] - 800a2e2: 2b00 cmp r3, #0 - 800a2e4: f000 8111 beq.w 800a50a - { - switch (pllsource) - 800a2e8: 69bb ldr r3, [r7, #24] - 800a2ea: 2b02 cmp r3, #2 - 800a2ec: f000 8083 beq.w 800a3f6 - 800a2f0: 69bb ldr r3, [r7, #24] - 800a2f2: 2b02 cmp r3, #2 - 800a2f4: f200 80a1 bhi.w 800a43a - 800a2f8: 69bb ldr r3, [r7, #24] - 800a2fa: 2b00 cmp r3, #0 - 800a2fc: d003 beq.n 800a306 - 800a2fe: 69bb ldr r3, [r7, #24] - 800a300: 2b01 cmp r3, #1 - 800a302: d056 beq.n 800a3b2 - 800a304: e099 b.n 800a43a - { - - case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */ - - if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U) - 800a306: 4b88 ldr r3, [pc, #544] ; (800a528 ) - 800a308: 681b ldr r3, [r3, #0] - 800a30a: f003 0320 and.w r3, r3, #32 - 800a30e: 2b00 cmp r3, #0 - 800a310: d02d beq.n 800a36e - { - hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3)); - 800a312: 4b85 ldr r3, [pc, #532] ; (800a528 ) - 800a314: 681b ldr r3, [r3, #0] - 800a316: 08db lsrs r3, r3, #3 - 800a318: f003 0303 and.w r3, r3, #3 - 800a31c: 4a83 ldr r2, [pc, #524] ; (800a52c ) - 800a31e: fa22 f303 lsr.w r3, r2, r3 - 800a322: 60bb str r3, [r7, #8] - pll1vco = ((float_t)hsivalue / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1); - 800a324: 68bb ldr r3, [r7, #8] - 800a326: ee07 3a90 vmov s15, r3 - 800a32a: eef8 6a67 vcvt.f32.u32 s13, s15 - 800a32e: 697b ldr r3, [r7, #20] - 800a330: ee07 3a90 vmov s15, r3 - 800a334: eef8 7a67 vcvt.f32.u32 s15, s15 - 800a338: ee86 7aa7 vdiv.f32 s14, s13, s15 - 800a33c: 4b7a ldr r3, [pc, #488] ; (800a528 ) - 800a33e: 6b1b ldr r3, [r3, #48] ; 0x30 - 800a340: f3c3 0308 ubfx r3, r3, #0, #9 - 800a344: ee07 3a90 vmov s15, r3 - 800a348: eef8 6a67 vcvt.f32.u32 s13, s15 - 800a34c: ed97 6a03 vldr s12, [r7, #12] - 800a350: eddf 5a77 vldr s11, [pc, #476] ; 800a530 - 800a354: eec6 7a25 vdiv.f32 s15, s12, s11 - 800a358: ee76 7aa7 vadd.f32 s15, s13, s15 - 800a35c: eef7 6a00 vmov.f32 s13, #112 ; 0x3f800000 1.0 - 800a360: ee77 7aa6 vadd.f32 s15, s15, s13 - 800a364: ee67 7a27 vmul.f32 s15, s14, s15 - 800a368: edc7 7a07 vstr s15, [r7, #28] - } - else - { - pll1vco = ((float_t)HSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1); - } - break; - 800a36c: e087 b.n 800a47e - pll1vco = ((float_t)HSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1); - 800a36e: 697b ldr r3, [r7, #20] - 800a370: ee07 3a90 vmov s15, r3 - 800a374: eef8 7a67 vcvt.f32.u32 s15, s15 - 800a378: eddf 6a6e vldr s13, [pc, #440] ; 800a534 - 800a37c: ee86 7aa7 vdiv.f32 s14, s13, s15 - 800a380: 4b69 ldr r3, [pc, #420] ; (800a528 ) - 800a382: 6b1b ldr r3, [r3, #48] ; 0x30 - 800a384: f3c3 0308 ubfx r3, r3, #0, #9 - 800a388: ee07 3a90 vmov s15, r3 - 800a38c: eef8 6a67 vcvt.f32.u32 s13, s15 - 800a390: ed97 6a03 vldr s12, [r7, #12] - 800a394: eddf 5a66 vldr s11, [pc, #408] ; 800a530 - 800a398: eec6 7a25 vdiv.f32 s15, s12, s11 - 800a39c: ee76 7aa7 vadd.f32 s15, s13, s15 - 800a3a0: eef7 6a00 vmov.f32 s13, #112 ; 0x3f800000 1.0 - 800a3a4: ee77 7aa6 vadd.f32 s15, s15, s13 - 800a3a8: ee67 7a27 vmul.f32 s15, s14, s15 - 800a3ac: edc7 7a07 vstr s15, [r7, #28] - break; - 800a3b0: e065 b.n 800a47e - case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */ - pll1vco = ((float_t)CSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1); - 800a3b2: 697b ldr r3, [r7, #20] - 800a3b4: ee07 3a90 vmov s15, r3 - 800a3b8: eef8 7a67 vcvt.f32.u32 s15, s15 - 800a3bc: eddf 6a5e vldr s13, [pc, #376] ; 800a538 - 800a3c0: ee86 7aa7 vdiv.f32 s14, s13, s15 - 800a3c4: 4b58 ldr r3, [pc, #352] ; (800a528 ) - 800a3c6: 6b1b ldr r3, [r3, #48] ; 0x30 - 800a3c8: f3c3 0308 ubfx r3, r3, #0, #9 - 800a3cc: ee07 3a90 vmov s15, r3 - 800a3d0: eef8 6a67 vcvt.f32.u32 s13, s15 - 800a3d4: ed97 6a03 vldr s12, [r7, #12] - 800a3d8: eddf 5a55 vldr s11, [pc, #340] ; 800a530 - 800a3dc: eec6 7a25 vdiv.f32 s15, s12, s11 - 800a3e0: ee76 7aa7 vadd.f32 s15, s13, s15 - 800a3e4: eef7 6a00 vmov.f32 s13, #112 ; 0x3f800000 1.0 - 800a3e8: ee77 7aa6 vadd.f32 s15, s15, s13 - 800a3ec: ee67 7a27 vmul.f32 s15, s14, s15 - 800a3f0: edc7 7a07 vstr s15, [r7, #28] - break; - 800a3f4: e043 b.n 800a47e - - case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */ - pll1vco = ((float_t)HSE_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1); - 800a3f6: 697b ldr r3, [r7, #20] - 800a3f8: ee07 3a90 vmov s15, r3 - 800a3fc: eef8 7a67 vcvt.f32.u32 s15, s15 - 800a400: eddf 6a4e vldr s13, [pc, #312] ; 800a53c - 800a404: ee86 7aa7 vdiv.f32 s14, s13, s15 - 800a408: 4b47 ldr r3, [pc, #284] ; (800a528 ) - 800a40a: 6b1b ldr r3, [r3, #48] ; 0x30 - 800a40c: f3c3 0308 ubfx r3, r3, #0, #9 - 800a410: ee07 3a90 vmov s15, r3 - 800a414: eef8 6a67 vcvt.f32.u32 s13, s15 - 800a418: ed97 6a03 vldr s12, [r7, #12] - 800a41c: eddf 5a44 vldr s11, [pc, #272] ; 800a530 - 800a420: eec6 7a25 vdiv.f32 s15, s12, s11 - 800a424: ee76 7aa7 vadd.f32 s15, s13, s15 - 800a428: eef7 6a00 vmov.f32 s13, #112 ; 0x3f800000 1.0 - 800a42c: ee77 7aa6 vadd.f32 s15, s15, s13 - 800a430: ee67 7a27 vmul.f32 s15, s14, s15 - 800a434: edc7 7a07 vstr s15, [r7, #28] - break; - 800a438: e021 b.n 800a47e - - default: - pll1vco = ((float_t)HSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1); - 800a43a: 697b ldr r3, [r7, #20] - 800a43c: ee07 3a90 vmov s15, r3 - 800a440: eef8 7a67 vcvt.f32.u32 s15, s15 - 800a444: eddf 6a3b vldr s13, [pc, #236] ; 800a534 - 800a448: ee86 7aa7 vdiv.f32 s14, s13, s15 - 800a44c: 4b36 ldr r3, [pc, #216] ; (800a528 ) - 800a44e: 6b1b ldr r3, [r3, #48] ; 0x30 - 800a450: f3c3 0308 ubfx r3, r3, #0, #9 - 800a454: ee07 3a90 vmov s15, r3 - 800a458: eef8 6a67 vcvt.f32.u32 s13, s15 - 800a45c: ed97 6a03 vldr s12, [r7, #12] - 800a460: eddf 5a33 vldr s11, [pc, #204] ; 800a530 - 800a464: eec6 7a25 vdiv.f32 s15, s12, s11 - 800a468: ee76 7aa7 vadd.f32 s15, s13, s15 - 800a46c: eef7 6a00 vmov.f32 s13, #112 ; 0x3f800000 1.0 - 800a470: ee77 7aa6 vadd.f32 s15, s15, s13 - 800a474: ee67 7a27 vmul.f32 s15, s14, s15 - 800a478: edc7 7a07 vstr s15, [r7, #28] - break; - 800a47c: bf00 nop - } - - PLL1_Clocks->PLL1_P_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_P1) >> 9) + (float_t)1)) ; - 800a47e: 4b2a ldr r3, [pc, #168] ; (800a528 ) - 800a480: 6b1b ldr r3, [r3, #48] ; 0x30 - 800a482: 0a5b lsrs r3, r3, #9 - 800a484: f003 037f and.w r3, r3, #127 ; 0x7f - 800a488: ee07 3a90 vmov s15, r3 - 800a48c: eef8 7a67 vcvt.f32.u32 s15, s15 - 800a490: eeb7 7a00 vmov.f32 s14, #112 ; 0x3f800000 1.0 - 800a494: ee37 7a87 vadd.f32 s14, s15, s14 - 800a498: edd7 6a07 vldr s13, [r7, #28] - 800a49c: eec6 7a87 vdiv.f32 s15, s13, s14 - 800a4a0: eefc 7ae7 vcvt.u32.f32 s15, s15 - 800a4a4: ee17 2a90 vmov r2, s15 - 800a4a8: 687b ldr r3, [r7, #4] - 800a4aa: 601a str r2, [r3, #0] - PLL1_Clocks->PLL1_Q_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_Q1) >> 16) + (float_t)1)) ; - 800a4ac: 4b1e ldr r3, [pc, #120] ; (800a528 ) - 800a4ae: 6b1b ldr r3, [r3, #48] ; 0x30 - 800a4b0: 0c1b lsrs r3, r3, #16 - 800a4b2: f003 037f and.w r3, r3, #127 ; 0x7f - 800a4b6: ee07 3a90 vmov s15, r3 - 800a4ba: eef8 7a67 vcvt.f32.u32 s15, s15 - 800a4be: eeb7 7a00 vmov.f32 s14, #112 ; 0x3f800000 1.0 - 800a4c2: ee37 7a87 vadd.f32 s14, s15, s14 - 800a4c6: edd7 6a07 vldr s13, [r7, #28] - 800a4ca: eec6 7a87 vdiv.f32 s15, s13, s14 - 800a4ce: eefc 7ae7 vcvt.u32.f32 s15, s15 - 800a4d2: ee17 2a90 vmov r2, s15 - 800a4d6: 687b ldr r3, [r7, #4] - 800a4d8: 605a str r2, [r3, #4] - PLL1_Clocks->PLL1_R_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_R1) >> 24) + (float_t)1)) ; - 800a4da: 4b13 ldr r3, [pc, #76] ; (800a528 ) - 800a4dc: 6b1b ldr r3, [r3, #48] ; 0x30 - 800a4de: 0e1b lsrs r3, r3, #24 - 800a4e0: f003 037f and.w r3, r3, #127 ; 0x7f - 800a4e4: ee07 3a90 vmov s15, r3 - 800a4e8: eef8 7a67 vcvt.f32.u32 s15, s15 - 800a4ec: eeb7 7a00 vmov.f32 s14, #112 ; 0x3f800000 1.0 - 800a4f0: ee37 7a87 vadd.f32 s14, s15, s14 - 800a4f4: edd7 6a07 vldr s13, [r7, #28] - 800a4f8: eec6 7a87 vdiv.f32 s15, s13, s14 - 800a4fc: eefc 7ae7 vcvt.u32.f32 s15, s15 - 800a500: ee17 2a90 vmov r2, s15 - 800a504: 687b ldr r3, [r7, #4] - 800a506: 609a str r2, [r3, #8] - PLL1_Clocks->PLL1_P_Frequency = 0U; - PLL1_Clocks->PLL1_Q_Frequency = 0U; - PLL1_Clocks->PLL1_R_Frequency = 0U; - } - -} - 800a508: e008 b.n 800a51c - PLL1_Clocks->PLL1_P_Frequency = 0U; - 800a50a: 687b ldr r3, [r7, #4] - 800a50c: 2200 movs r2, #0 - 800a50e: 601a str r2, [r3, #0] - PLL1_Clocks->PLL1_Q_Frequency = 0U; - 800a510: 687b ldr r3, [r7, #4] - 800a512: 2200 movs r2, #0 - 800a514: 605a str r2, [r3, #4] - PLL1_Clocks->PLL1_R_Frequency = 0U; - 800a516: 687b ldr r3, [r7, #4] - 800a518: 2200 movs r2, #0 - 800a51a: 609a str r2, [r3, #8] -} - 800a51c: bf00 nop - 800a51e: 3724 adds r7, #36 ; 0x24 - 800a520: 46bd mov sp, r7 - 800a522: f85d 7b04 ldr.w r7, [sp], #4 - 800a526: 4770 bx lr - 800a528: 58024400 .word 0x58024400 - 800a52c: 03d09000 .word 0x03d09000 - 800a530: 46000000 .word 0x46000000 - 800a534: 4c742400 .word 0x4c742400 - 800a538: 4a742400 .word 0x4a742400 - 800a53c: 4bbebc20 .word 0x4bbebc20 - -0800a540 : - * @note PLL2 is temporary disabled to apply new parameters - * - * @retval HAL status - */ -static HAL_StatusTypeDef RCCEx_PLL2_Config(RCC_PLL2InitTypeDef *pll2, uint32_t Divider) -{ - 800a540: b580 push {r7, lr} - 800a542: b084 sub sp, #16 - 800a544: af00 add r7, sp, #0 - 800a546: 6078 str r0, [r7, #4] - 800a548: 6039 str r1, [r7, #0] - - uint32_t tickstart; - HAL_StatusTypeDef status = HAL_OK; - 800a54a: 2300 movs r3, #0 - 800a54c: 73fb strb r3, [r7, #15] - assert_param(IS_RCC_PLL2RGE_VALUE(pll2->PLL2RGE)); - assert_param(IS_RCC_PLL2VCO_VALUE(pll2->PLL2VCOSEL)); - assert_param(IS_RCC_PLLFRACN_VALUE(pll2->PLL2FRACN)); - - /* Check that PLL2 OSC clock source is already set */ - if (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_NONE) - 800a54e: 4b53 ldr r3, [pc, #332] ; (800a69c ) - 800a550: 6a9b ldr r3, [r3, #40] ; 0x28 - 800a552: f003 0303 and.w r3, r3, #3 - 800a556: 2b03 cmp r3, #3 - 800a558: d101 bne.n 800a55e - { - return HAL_ERROR; - 800a55a: 2301 movs r3, #1 - 800a55c: e099 b.n 800a692 - - - else - { - /* Disable PLL2. */ - __HAL_RCC_PLL2_DISABLE(); - 800a55e: 4b4f ldr r3, [pc, #316] ; (800a69c ) - 800a560: 681b ldr r3, [r3, #0] - 800a562: 4a4e ldr r2, [pc, #312] ; (800a69c ) - 800a564: f023 6380 bic.w r3, r3, #67108864 ; 0x4000000 - 800a568: 6013 str r3, [r2, #0] - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 800a56a: f7f7 fefb bl 8002364 - 800a56e: 60b8 str r0, [r7, #8] - - /* Wait till PLL is disabled */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != 0U) - 800a570: e008 b.n 800a584 - { - if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE) - 800a572: f7f7 fef7 bl 8002364 - 800a576: 4602 mov r2, r0 - 800a578: 68bb ldr r3, [r7, #8] - 800a57a: 1ad3 subs r3, r2, r3 - 800a57c: 2b02 cmp r3, #2 - 800a57e: d901 bls.n 800a584 - { - return HAL_TIMEOUT; - 800a580: 2303 movs r3, #3 - 800a582: e086 b.n 800a692 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != 0U) - 800a584: 4b45 ldr r3, [pc, #276] ; (800a69c ) - 800a586: 681b ldr r3, [r3, #0] - 800a588: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 - 800a58c: 2b00 cmp r3, #0 - 800a58e: d1f0 bne.n 800a572 - } - } - - /* Configure PLL2 multiplication and division factors. */ - __HAL_RCC_PLL2_CONFIG(pll2->PLL2M, - 800a590: 4b42 ldr r3, [pc, #264] ; (800a69c ) - 800a592: 6a9b ldr r3, [r3, #40] ; 0x28 - 800a594: f423 327c bic.w r2, r3, #258048 ; 0x3f000 - 800a598: 687b ldr r3, [r7, #4] - 800a59a: 681b ldr r3, [r3, #0] - 800a59c: 031b lsls r3, r3, #12 - 800a59e: 493f ldr r1, [pc, #252] ; (800a69c ) - 800a5a0: 4313 orrs r3, r2 - 800a5a2: 628b str r3, [r1, #40] ; 0x28 - 800a5a4: 687b ldr r3, [r7, #4] - 800a5a6: 685b ldr r3, [r3, #4] - 800a5a8: 3b01 subs r3, #1 - 800a5aa: f3c3 0208 ubfx r2, r3, #0, #9 - 800a5ae: 687b ldr r3, [r7, #4] - 800a5b0: 689b ldr r3, [r3, #8] - 800a5b2: 3b01 subs r3, #1 - 800a5b4: 025b lsls r3, r3, #9 - 800a5b6: b29b uxth r3, r3 - 800a5b8: 431a orrs r2, r3 - 800a5ba: 687b ldr r3, [r7, #4] - 800a5bc: 68db ldr r3, [r3, #12] - 800a5be: 3b01 subs r3, #1 - 800a5c0: 041b lsls r3, r3, #16 - 800a5c2: f403 03fe and.w r3, r3, #8323072 ; 0x7f0000 - 800a5c6: 431a orrs r2, r3 - 800a5c8: 687b ldr r3, [r7, #4] - 800a5ca: 691b ldr r3, [r3, #16] - 800a5cc: 3b01 subs r3, #1 - 800a5ce: 061b lsls r3, r3, #24 - 800a5d0: f003 43fe and.w r3, r3, #2130706432 ; 0x7f000000 - 800a5d4: 4931 ldr r1, [pc, #196] ; (800a69c ) - 800a5d6: 4313 orrs r3, r2 - 800a5d8: 638b str r3, [r1, #56] ; 0x38 - pll2->PLL2P, - pll2->PLL2Q, - pll2->PLL2R); - - /* Select PLL2 input reference frequency range: VCI */ - __HAL_RCC_PLL2_VCIRANGE(pll2->PLL2RGE) ; - 800a5da: 4b30 ldr r3, [pc, #192] ; (800a69c ) - 800a5dc: 6adb ldr r3, [r3, #44] ; 0x2c - 800a5de: f023 02c0 bic.w r2, r3, #192 ; 0xc0 - 800a5e2: 687b ldr r3, [r7, #4] - 800a5e4: 695b ldr r3, [r3, #20] - 800a5e6: 492d ldr r1, [pc, #180] ; (800a69c ) - 800a5e8: 4313 orrs r3, r2 - 800a5ea: 62cb str r3, [r1, #44] ; 0x2c - - /* Select PLL2 output frequency range : VCO */ - __HAL_RCC_PLL2_VCORANGE(pll2->PLL2VCOSEL) ; - 800a5ec: 4b2b ldr r3, [pc, #172] ; (800a69c ) - 800a5ee: 6adb ldr r3, [r3, #44] ; 0x2c - 800a5f0: f023 0220 bic.w r2, r3, #32 - 800a5f4: 687b ldr r3, [r7, #4] - 800a5f6: 699b ldr r3, [r3, #24] - 800a5f8: 4928 ldr r1, [pc, #160] ; (800a69c ) - 800a5fa: 4313 orrs r3, r2 - 800a5fc: 62cb str r3, [r1, #44] ; 0x2c - - /* Disable PLL2FRACN . */ - __HAL_RCC_PLL2FRACN_DISABLE(); - 800a5fe: 4b27 ldr r3, [pc, #156] ; (800a69c ) - 800a600: 6adb ldr r3, [r3, #44] ; 0x2c - 800a602: 4a26 ldr r2, [pc, #152] ; (800a69c ) - 800a604: f023 0310 bic.w r3, r3, #16 - 800a608: 62d3 str r3, [r2, #44] ; 0x2c - - /* Configures PLL2 clock Fractional Part Of The Multiplication Factor */ - __HAL_RCC_PLL2FRACN_CONFIG(pll2->PLL2FRACN); - 800a60a: 4b24 ldr r3, [pc, #144] ; (800a69c ) - 800a60c: 6bda ldr r2, [r3, #60] ; 0x3c - 800a60e: 4b24 ldr r3, [pc, #144] ; (800a6a0 ) - 800a610: 4013 ands r3, r2 - 800a612: 687a ldr r2, [r7, #4] - 800a614: 69d2 ldr r2, [r2, #28] - 800a616: 00d2 lsls r2, r2, #3 - 800a618: 4920 ldr r1, [pc, #128] ; (800a69c ) - 800a61a: 4313 orrs r3, r2 - 800a61c: 63cb str r3, [r1, #60] ; 0x3c - - /* Enable PLL2FRACN . */ - __HAL_RCC_PLL2FRACN_ENABLE(); - 800a61e: 4b1f ldr r3, [pc, #124] ; (800a69c ) - 800a620: 6adb ldr r3, [r3, #44] ; 0x2c - 800a622: 4a1e ldr r2, [pc, #120] ; (800a69c ) - 800a624: f043 0310 orr.w r3, r3, #16 - 800a628: 62d3 str r3, [r2, #44] ; 0x2c - - /* Enable the PLL2 clock output */ - if (Divider == DIVIDER_P_UPDATE) - 800a62a: 683b ldr r3, [r7, #0] - 800a62c: 2b00 cmp r3, #0 - 800a62e: d106 bne.n 800a63e - { - __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVP); - 800a630: 4b1a ldr r3, [pc, #104] ; (800a69c ) - 800a632: 6adb ldr r3, [r3, #44] ; 0x2c - 800a634: 4a19 ldr r2, [pc, #100] ; (800a69c ) - 800a636: f443 2300 orr.w r3, r3, #524288 ; 0x80000 - 800a63a: 62d3 str r3, [r2, #44] ; 0x2c - 800a63c: e00f b.n 800a65e - } - else if (Divider == DIVIDER_Q_UPDATE) - 800a63e: 683b ldr r3, [r7, #0] - 800a640: 2b01 cmp r3, #1 - 800a642: d106 bne.n 800a652 - { - __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVQ); - 800a644: 4b15 ldr r3, [pc, #84] ; (800a69c ) - 800a646: 6adb ldr r3, [r3, #44] ; 0x2c - 800a648: 4a14 ldr r2, [pc, #80] ; (800a69c ) - 800a64a: f443 1380 orr.w r3, r3, #1048576 ; 0x100000 - 800a64e: 62d3 str r3, [r2, #44] ; 0x2c - 800a650: e005 b.n 800a65e - } - else - { - __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVR); - 800a652: 4b12 ldr r3, [pc, #72] ; (800a69c ) - 800a654: 6adb ldr r3, [r3, #44] ; 0x2c - 800a656: 4a11 ldr r2, [pc, #68] ; (800a69c ) - 800a658: f443 1300 orr.w r3, r3, #2097152 ; 0x200000 - 800a65c: 62d3 str r3, [r2, #44] ; 0x2c - } - - /* Enable PLL2. */ - __HAL_RCC_PLL2_ENABLE(); - 800a65e: 4b0f ldr r3, [pc, #60] ; (800a69c ) - 800a660: 681b ldr r3, [r3, #0] - 800a662: 4a0e ldr r2, [pc, #56] ; (800a69c ) - 800a664: f043 6380 orr.w r3, r3, #67108864 ; 0x4000000 - 800a668: 6013 str r3, [r2, #0] - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 800a66a: f7f7 fe7b bl 8002364 - 800a66e: 60b8 str r0, [r7, #8] - - /* Wait till PLL2 is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == 0U) - 800a670: e008 b.n 800a684 - { - if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE) - 800a672: f7f7 fe77 bl 8002364 - 800a676: 4602 mov r2, r0 - 800a678: 68bb ldr r3, [r7, #8] - 800a67a: 1ad3 subs r3, r2, r3 - 800a67c: 2b02 cmp r3, #2 - 800a67e: d901 bls.n 800a684 - { - return HAL_TIMEOUT; - 800a680: 2303 movs r3, #3 - 800a682: e006 b.n 800a692 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == 0U) - 800a684: 4b05 ldr r3, [pc, #20] ; (800a69c ) - 800a686: 681b ldr r3, [r3, #0] - 800a688: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 - 800a68c: 2b00 cmp r3, #0 - 800a68e: d0f0 beq.n 800a672 - } - - } - - - return status; - 800a690: 7bfb ldrb r3, [r7, #15] -} - 800a692: 4618 mov r0, r3 - 800a694: 3710 adds r7, #16 - 800a696: 46bd mov sp, r7 - 800a698: bd80 pop {r7, pc} - 800a69a: bf00 nop - 800a69c: 58024400 .word 0x58024400 - 800a6a0: ffff0007 .word 0xffff0007 - -0800a6a4 : - * @note PLL3 is temporary disabled to apply new parameters - * - * @retval HAL status - */ -static HAL_StatusTypeDef RCCEx_PLL3_Config(RCC_PLL3InitTypeDef *pll3, uint32_t Divider) -{ - 800a6a4: b580 push {r7, lr} - 800a6a6: b084 sub sp, #16 - 800a6a8: af00 add r7, sp, #0 - 800a6aa: 6078 str r0, [r7, #4] - 800a6ac: 6039 str r1, [r7, #0] - uint32_t tickstart; - HAL_StatusTypeDef status = HAL_OK; - 800a6ae: 2300 movs r3, #0 - 800a6b0: 73fb strb r3, [r7, #15] - assert_param(IS_RCC_PLL3RGE_VALUE(pll3->PLL3RGE)); - assert_param(IS_RCC_PLL3VCO_VALUE(pll3->PLL3VCOSEL)); - assert_param(IS_RCC_PLLFRACN_VALUE(pll3->PLL3FRACN)); - - /* Check that PLL3 OSC clock source is already set */ - if (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_NONE) - 800a6b2: 4b53 ldr r3, [pc, #332] ; (800a800 ) - 800a6b4: 6a9b ldr r3, [r3, #40] ; 0x28 - 800a6b6: f003 0303 and.w r3, r3, #3 - 800a6ba: 2b03 cmp r3, #3 - 800a6bc: d101 bne.n 800a6c2 - { - return HAL_ERROR; - 800a6be: 2301 movs r3, #1 - 800a6c0: e099 b.n 800a7f6 - - - else - { - /* Disable PLL3. */ - __HAL_RCC_PLL3_DISABLE(); - 800a6c2: 4b4f ldr r3, [pc, #316] ; (800a800 ) - 800a6c4: 681b ldr r3, [r3, #0] - 800a6c6: 4a4e ldr r2, [pc, #312] ; (800a800 ) - 800a6c8: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000 - 800a6cc: 6013 str r3, [r2, #0] - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 800a6ce: f7f7 fe49 bl 8002364 - 800a6d2: 60b8 str r0, [r7, #8] - /* Wait till PLL3 is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) != 0U) - 800a6d4: e008 b.n 800a6e8 - { - if ((HAL_GetTick() - tickstart) > PLL3_TIMEOUT_VALUE) - 800a6d6: f7f7 fe45 bl 8002364 - 800a6da: 4602 mov r2, r0 - 800a6dc: 68bb ldr r3, [r7, #8] - 800a6de: 1ad3 subs r3, r2, r3 - 800a6e0: 2b02 cmp r3, #2 - 800a6e2: d901 bls.n 800a6e8 - { - return HAL_TIMEOUT; - 800a6e4: 2303 movs r3, #3 - 800a6e6: e086 b.n 800a7f6 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) != 0U) - 800a6e8: 4b45 ldr r3, [pc, #276] ; (800a800 ) - 800a6ea: 681b ldr r3, [r3, #0] - 800a6ec: f003 5300 and.w r3, r3, #536870912 ; 0x20000000 - 800a6f0: 2b00 cmp r3, #0 - 800a6f2: d1f0 bne.n 800a6d6 - } - } - - /* Configure the PLL3 multiplication and division factors. */ - __HAL_RCC_PLL3_CONFIG(pll3->PLL3M, - 800a6f4: 4b42 ldr r3, [pc, #264] ; (800a800 ) - 800a6f6: 6a9b ldr r3, [r3, #40] ; 0x28 - 800a6f8: f023 727c bic.w r2, r3, #66060288 ; 0x3f00000 - 800a6fc: 687b ldr r3, [r7, #4] - 800a6fe: 681b ldr r3, [r3, #0] - 800a700: 051b lsls r3, r3, #20 - 800a702: 493f ldr r1, [pc, #252] ; (800a800 ) - 800a704: 4313 orrs r3, r2 - 800a706: 628b str r3, [r1, #40] ; 0x28 - 800a708: 687b ldr r3, [r7, #4] - 800a70a: 685b ldr r3, [r3, #4] - 800a70c: 3b01 subs r3, #1 - 800a70e: f3c3 0208 ubfx r2, r3, #0, #9 - 800a712: 687b ldr r3, [r7, #4] - 800a714: 689b ldr r3, [r3, #8] - 800a716: 3b01 subs r3, #1 - 800a718: 025b lsls r3, r3, #9 - 800a71a: b29b uxth r3, r3 - 800a71c: 431a orrs r2, r3 - 800a71e: 687b ldr r3, [r7, #4] - 800a720: 68db ldr r3, [r3, #12] - 800a722: 3b01 subs r3, #1 - 800a724: 041b lsls r3, r3, #16 - 800a726: f403 03fe and.w r3, r3, #8323072 ; 0x7f0000 - 800a72a: 431a orrs r2, r3 - 800a72c: 687b ldr r3, [r7, #4] - 800a72e: 691b ldr r3, [r3, #16] - 800a730: 3b01 subs r3, #1 - 800a732: 061b lsls r3, r3, #24 - 800a734: f003 43fe and.w r3, r3, #2130706432 ; 0x7f000000 - 800a738: 4931 ldr r1, [pc, #196] ; (800a800 ) - 800a73a: 4313 orrs r3, r2 - 800a73c: 640b str r3, [r1, #64] ; 0x40 - pll3->PLL3P, - pll3->PLL3Q, - pll3->PLL3R); - - /* Select PLL3 input reference frequency range: VCI */ - __HAL_RCC_PLL3_VCIRANGE(pll3->PLL3RGE) ; - 800a73e: 4b30 ldr r3, [pc, #192] ; (800a800 ) - 800a740: 6adb ldr r3, [r3, #44] ; 0x2c - 800a742: f423 6240 bic.w r2, r3, #3072 ; 0xc00 - 800a746: 687b ldr r3, [r7, #4] - 800a748: 695b ldr r3, [r3, #20] - 800a74a: 492d ldr r1, [pc, #180] ; (800a800 ) - 800a74c: 4313 orrs r3, r2 - 800a74e: 62cb str r3, [r1, #44] ; 0x2c - - /* Select PLL3 output frequency range : VCO */ - __HAL_RCC_PLL3_VCORANGE(pll3->PLL3VCOSEL) ; - 800a750: 4b2b ldr r3, [pc, #172] ; (800a800 ) - 800a752: 6adb ldr r3, [r3, #44] ; 0x2c - 800a754: f423 7200 bic.w r2, r3, #512 ; 0x200 - 800a758: 687b ldr r3, [r7, #4] - 800a75a: 699b ldr r3, [r3, #24] - 800a75c: 4928 ldr r1, [pc, #160] ; (800a800 ) - 800a75e: 4313 orrs r3, r2 - 800a760: 62cb str r3, [r1, #44] ; 0x2c - - /* Disable PLL3FRACN . */ - __HAL_RCC_PLL3FRACN_DISABLE(); - 800a762: 4b27 ldr r3, [pc, #156] ; (800a800 ) - 800a764: 6adb ldr r3, [r3, #44] ; 0x2c - 800a766: 4a26 ldr r2, [pc, #152] ; (800a800 ) - 800a768: f423 7380 bic.w r3, r3, #256 ; 0x100 - 800a76c: 62d3 str r3, [r2, #44] ; 0x2c - - /* Configures PLL3 clock Fractional Part Of The Multiplication Factor */ - __HAL_RCC_PLL3FRACN_CONFIG(pll3->PLL3FRACN); - 800a76e: 4b24 ldr r3, [pc, #144] ; (800a800 ) - 800a770: 6c5a ldr r2, [r3, #68] ; 0x44 - 800a772: 4b24 ldr r3, [pc, #144] ; (800a804 ) - 800a774: 4013 ands r3, r2 - 800a776: 687a ldr r2, [r7, #4] - 800a778: 69d2 ldr r2, [r2, #28] - 800a77a: 00d2 lsls r2, r2, #3 - 800a77c: 4920 ldr r1, [pc, #128] ; (800a800 ) - 800a77e: 4313 orrs r3, r2 - 800a780: 644b str r3, [r1, #68] ; 0x44 - - /* Enable PLL3FRACN . */ - __HAL_RCC_PLL3FRACN_ENABLE(); - 800a782: 4b1f ldr r3, [pc, #124] ; (800a800 ) - 800a784: 6adb ldr r3, [r3, #44] ; 0x2c - 800a786: 4a1e ldr r2, [pc, #120] ; (800a800 ) - 800a788: f443 7380 orr.w r3, r3, #256 ; 0x100 - 800a78c: 62d3 str r3, [r2, #44] ; 0x2c - - /* Enable the PLL3 clock output */ - if (Divider == DIVIDER_P_UPDATE) - 800a78e: 683b ldr r3, [r7, #0] - 800a790: 2b00 cmp r3, #0 - 800a792: d106 bne.n 800a7a2 - { - __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVP); - 800a794: 4b1a ldr r3, [pc, #104] ; (800a800 ) - 800a796: 6adb ldr r3, [r3, #44] ; 0x2c - 800a798: 4a19 ldr r2, [pc, #100] ; (800a800 ) - 800a79a: f443 0380 orr.w r3, r3, #4194304 ; 0x400000 - 800a79e: 62d3 str r3, [r2, #44] ; 0x2c - 800a7a0: e00f b.n 800a7c2 - } - else if (Divider == DIVIDER_Q_UPDATE) - 800a7a2: 683b ldr r3, [r7, #0] - 800a7a4: 2b01 cmp r3, #1 - 800a7a6: d106 bne.n 800a7b6 - { - __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVQ); - 800a7a8: 4b15 ldr r3, [pc, #84] ; (800a800 ) - 800a7aa: 6adb ldr r3, [r3, #44] ; 0x2c - 800a7ac: 4a14 ldr r2, [pc, #80] ; (800a800 ) - 800a7ae: f443 0300 orr.w r3, r3, #8388608 ; 0x800000 - 800a7b2: 62d3 str r3, [r2, #44] ; 0x2c - 800a7b4: e005 b.n 800a7c2 - } - else - { - __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVR); - 800a7b6: 4b12 ldr r3, [pc, #72] ; (800a800 ) - 800a7b8: 6adb ldr r3, [r3, #44] ; 0x2c - 800a7ba: 4a11 ldr r2, [pc, #68] ; (800a800 ) - 800a7bc: f043 7380 orr.w r3, r3, #16777216 ; 0x1000000 - 800a7c0: 62d3 str r3, [r2, #44] ; 0x2c - } - - /* Enable PLL3. */ - __HAL_RCC_PLL3_ENABLE(); - 800a7c2: 4b0f ldr r3, [pc, #60] ; (800a800 ) - 800a7c4: 681b ldr r3, [r3, #0] - 800a7c6: 4a0e ldr r2, [pc, #56] ; (800a800 ) - 800a7c8: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 - 800a7cc: 6013 str r3, [r2, #0] - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 800a7ce: f7f7 fdc9 bl 8002364 - 800a7d2: 60b8 str r0, [r7, #8] - - /* Wait till PLL3 is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) == 0U) - 800a7d4: e008 b.n 800a7e8 - { - if ((HAL_GetTick() - tickstart) > PLL3_TIMEOUT_VALUE) - 800a7d6: f7f7 fdc5 bl 8002364 - 800a7da: 4602 mov r2, r0 - 800a7dc: 68bb ldr r3, [r7, #8] - 800a7de: 1ad3 subs r3, r2, r3 - 800a7e0: 2b02 cmp r3, #2 - 800a7e2: d901 bls.n 800a7e8 - { - return HAL_TIMEOUT; - 800a7e4: 2303 movs r3, #3 - 800a7e6: e006 b.n 800a7f6 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) == 0U) - 800a7e8: 4b05 ldr r3, [pc, #20] ; (800a800 ) - 800a7ea: 681b ldr r3, [r3, #0] - 800a7ec: f003 5300 and.w r3, r3, #536870912 ; 0x20000000 - 800a7f0: 2b00 cmp r3, #0 - 800a7f2: d0f0 beq.n 800a7d6 - } - - } - - - return status; - 800a7f4: 7bfb ldrb r3, [r7, #15] -} - 800a7f6: 4618 mov r0, r3 - 800a7f8: 3710 adds r7, #16 - 800a7fa: 46bd mov sp, r7 - 800a7fc: bd80 pop {r7, pc} - 800a7fe: bf00 nop - 800a800: 58024400 .word 0x58024400 - 800a804: ffff0007 .word 0xffff0007 - -0800a808 : - SD_HandleTypeDef and create the associated handle. - * @param hsd: Pointer to the SD handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SD_Init(SD_HandleTypeDef *hsd) -{ - 800a808: b580 push {r7, lr} - 800a80a: b08a sub sp, #40 ; 0x28 - 800a80c: af00 add r7, sp, #0 - 800a80e: 6078 str r0, [r7, #4] - uint32_t speedgrade; - uint32_t unitsize; - uint32_t tickstart; - - /* Check the SD handle allocation */ - if (hsd == NULL) - 800a810: 687b ldr r3, [r7, #4] - 800a812: 2b00 cmp r3, #0 - 800a814: d101 bne.n 800a81a - { - return HAL_ERROR; - 800a816: 2301 movs r3, #1 - 800a818: e075 b.n 800a906 - assert_param(IS_SDMMC_CLOCK_POWER_SAVE(hsd->Init.ClockPowerSave)); - assert_param(IS_SDMMC_BUS_WIDE(hsd->Init.BusWide)); - assert_param(IS_SDMMC_HARDWARE_FLOW_CONTROL(hsd->Init.HardwareFlowControl)); - assert_param(IS_SDMMC_CLKDIV(hsd->Init.ClockDiv)); - - if (hsd->State == HAL_SD_STATE_RESET) - 800a81a: 687b ldr r3, [r7, #4] - 800a81c: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 - 800a820: b2db uxtb r3, r3 - 800a822: 2b00 cmp r3, #0 - 800a824: d105 bne.n 800a832 - { - /* Allocate lock resource and initialize it */ - hsd->Lock = HAL_UNLOCKED; - 800a826: 687b ldr r3, [r7, #4] - 800a828: 2200 movs r2, #0 - 800a82a: 761a strb r2, [r3, #24] - - /* Init the low level hardware */ - hsd->MspInitCallback(hsd); -#else - /* Init the low level hardware : GPIO, CLOCK, CORTEX...etc */ - HAL_SD_MspInit(hsd); - 800a82c: 6878 ldr r0, [r7, #4] - 800a82e: f7f6 ffc5 bl 80017bc -#endif /* USE_HAL_SD_REGISTER_CALLBACKS */ - } - - hsd->State = HAL_SD_STATE_PROGRAMMING; - 800a832: 687b ldr r3, [r7, #4] - 800a834: 2204 movs r2, #4 - 800a836: f883 2030 strb.w r2, [r3, #48] ; 0x30 - - /* Initialize the Card parameters */ - if (HAL_SD_InitCard(hsd) != HAL_OK) - 800a83a: 6878 ldr r0, [r7, #4] - 800a83c: f000 f868 bl 800a910 - 800a840: 4603 mov r3, r0 - 800a842: 2b00 cmp r3, #0 - 800a844: d001 beq.n 800a84a - { - return HAL_ERROR; - 800a846: 2301 movs r3, #1 - 800a848: e05d b.n 800a906 - } - - if (HAL_SD_GetCardStatus(hsd, &CardStatus) != HAL_OK) - 800a84a: f107 0308 add.w r3, r7, #8 - 800a84e: 4619 mov r1, r3 - 800a850: 6878 ldr r0, [r7, #4] - 800a852: f000 fdaf bl 800b3b4 - 800a856: 4603 mov r3, r0 - 800a858: 2b00 cmp r3, #0 - 800a85a: d001 beq.n 800a860 - { - return HAL_ERROR; - 800a85c: 2301 movs r3, #1 - 800a85e: e052 b.n 800a906 - } - /* Get Initial Card Speed from Card Status*/ - speedgrade = CardStatus.UhsSpeedGrade; - 800a860: 7e3b ldrb r3, [r7, #24] - 800a862: b2db uxtb r3, r3 - 800a864: 627b str r3, [r7, #36] ; 0x24 - unitsize = CardStatus.UhsAllocationUnitSize; - 800a866: 7e7b ldrb r3, [r7, #25] - 800a868: b2db uxtb r3, r3 - 800a86a: 623b str r3, [r7, #32] - if ((hsd->SdCard.CardType == CARD_SDHC_SDXC) && ((speedgrade != 0U) || (unitsize != 0U))) - 800a86c: 687b ldr r3, [r7, #4] - 800a86e: 6b9b ldr r3, [r3, #56] ; 0x38 - 800a870: 2b01 cmp r3, #1 - 800a872: d10a bne.n 800a88a - 800a874: 6a7b ldr r3, [r7, #36] ; 0x24 - 800a876: 2b00 cmp r3, #0 - 800a878: d102 bne.n 800a880 - 800a87a: 6a3b ldr r3, [r7, #32] - 800a87c: 2b00 cmp r3, #0 - 800a87e: d004 beq.n 800a88a - { - hsd->SdCard.CardSpeed = CARD_ULTRA_HIGH_SPEED; - 800a880: 687b ldr r3, [r7, #4] - 800a882: f44f 7200 mov.w r2, #512 ; 0x200 - 800a886: 659a str r2, [r3, #88] ; 0x58 - 800a888: e00b b.n 800a8a2 - } - else - { - if (hsd->SdCard.CardType == CARD_SDHC_SDXC) - 800a88a: 687b ldr r3, [r7, #4] - 800a88c: 6b9b ldr r3, [r3, #56] ; 0x38 - 800a88e: 2b01 cmp r3, #1 - 800a890: d104 bne.n 800a89c - { - hsd->SdCard.CardSpeed = CARD_HIGH_SPEED; - 800a892: 687b ldr r3, [r7, #4] - 800a894: f44f 7280 mov.w r2, #256 ; 0x100 - 800a898: 659a str r2, [r3, #88] ; 0x58 - 800a89a: e002 b.n 800a8a2 - } - else - { - hsd->SdCard.CardSpeed = CARD_NORMAL_SPEED; - 800a89c: 687b ldr r3, [r7, #4] - 800a89e: 2200 movs r2, #0 - 800a8a0: 659a str r2, [r3, #88] ; 0x58 - } - - } - /* Configure the bus wide */ - if (HAL_SD_ConfigWideBusOperation(hsd, hsd->Init.BusWide) != HAL_OK) - 800a8a2: 687b ldr r3, [r7, #4] - 800a8a4: 68db ldr r3, [r3, #12] - 800a8a6: 4619 mov r1, r3 - 800a8a8: 6878 ldr r0, [r7, #4] - 800a8aa: f000 fe6d bl 800b588 - 800a8ae: 4603 mov r3, r0 - 800a8b0: 2b00 cmp r3, #0 - 800a8b2: d001 beq.n 800a8b8 - { - return HAL_ERROR; - 800a8b4: 2301 movs r3, #1 - 800a8b6: e026 b.n 800a906 - } - - /* Verify that SD card is ready to use after Initialization */ - tickstart = HAL_GetTick(); - 800a8b8: f7f7 fd54 bl 8002364 - 800a8bc: 61f8 str r0, [r7, #28] - while ((HAL_SD_GetCardState(hsd) != HAL_SD_CARD_TRANSFER)) - 800a8be: e011 b.n 800a8e4 - { - if ((HAL_GetTick() - tickstart) >= SDMMC_DATATIMEOUT) - 800a8c0: f7f7 fd50 bl 8002364 - 800a8c4: 4602 mov r2, r0 - 800a8c6: 69fb ldr r3, [r7, #28] - 800a8c8: 1ad3 subs r3, r2, r3 - 800a8ca: f1b3 3fff cmp.w r3, #4294967295 - 800a8ce: d109 bne.n 800a8e4 - { - hsd->ErrorCode = HAL_SD_ERROR_TIMEOUT; - 800a8d0: 687b ldr r3, [r7, #4] - 800a8d2: f04f 4200 mov.w r2, #2147483648 ; 0x80000000 - 800a8d6: 635a str r2, [r3, #52] ; 0x34 - hsd->State = HAL_SD_STATE_READY; - 800a8d8: 687b ldr r3, [r7, #4] - 800a8da: 2201 movs r2, #1 - 800a8dc: f883 2030 strb.w r2, [r3, #48] ; 0x30 - return HAL_TIMEOUT; - 800a8e0: 2303 movs r3, #3 - 800a8e2: e010 b.n 800a906 - while ((HAL_SD_GetCardState(hsd) != HAL_SD_CARD_TRANSFER)) - 800a8e4: 6878 ldr r0, [r7, #4] - 800a8e6: f000 ff61 bl 800b7ac - 800a8ea: 4603 mov r3, r0 - 800a8ec: 2b04 cmp r3, #4 - 800a8ee: d1e7 bne.n 800a8c0 - } - } - - /* Initialize the error code */ - hsd->ErrorCode = HAL_SD_ERROR_NONE; - 800a8f0: 687b ldr r3, [r7, #4] - 800a8f2: 2200 movs r2, #0 - 800a8f4: 635a str r2, [r3, #52] ; 0x34 - - /* Initialize the SD operation */ - hsd->Context = SD_CONTEXT_NONE; - 800a8f6: 687b ldr r3, [r7, #4] - 800a8f8: 2200 movs r2, #0 - 800a8fa: 62da str r2, [r3, #44] ; 0x2c - - /* Initialize the SD state */ - hsd->State = HAL_SD_STATE_READY; - 800a8fc: 687b ldr r3, [r7, #4] - 800a8fe: 2201 movs r2, #1 - 800a900: f883 2030 strb.w r2, [r3, #48] ; 0x30 - - return HAL_OK; - 800a904: 2300 movs r3, #0 -} - 800a906: 4618 mov r0, r3 - 800a908: 3728 adds r7, #40 ; 0x28 - 800a90a: 46bd mov sp, r7 - 800a90c: bd80 pop {r7, pc} - ... - -0800a910 : - * @note This function initializes the SD card. It could be used when a card - re-initialization is needed. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SD_InitCard(SD_HandleTypeDef *hsd) -{ - 800a910: b590 push {r4, r7, lr} - 800a912: b08d sub sp, #52 ; 0x34 - 800a914: af02 add r7, sp, #8 - 800a916: 6078 str r0, [r7, #4] - uint32_t errorstate; - SD_InitTypeDef Init; - uint32_t sdmmc_clk; - - /* Default SDMMC peripheral configuration for SD card initialization */ - Init.ClockEdge = SDMMC_CLOCK_EDGE_RISING; - 800a918: 2300 movs r3, #0 - 800a91a: 60fb str r3, [r7, #12] - Init.ClockPowerSave = SDMMC_CLOCK_POWER_SAVE_DISABLE; - 800a91c: 2300 movs r3, #0 - 800a91e: 613b str r3, [r7, #16] - Init.BusWide = SDMMC_BUS_WIDE_1B; - 800a920: 2300 movs r3, #0 - 800a922: 617b str r3, [r7, #20] - Init.HardwareFlowControl = SDMMC_HARDWARE_FLOW_CONTROL_DISABLE; - 800a924: 2300 movs r3, #0 - 800a926: 61bb str r3, [r7, #24] - - /* Init Clock should be less or equal to 400Khz*/ - sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC); - 800a928: f44f 3080 mov.w r0, #65536 ; 0x10000 - 800a92c: f04f 0100 mov.w r1, #0 - 800a930: f7fe fd24 bl 800937c - 800a934: 6278 str r0, [r7, #36] ; 0x24 - if (sdmmc_clk == 0U) - 800a936: 6a7b ldr r3, [r7, #36] ; 0x24 - 800a938: 2b00 cmp r3, #0 - 800a93a: d109 bne.n 800a950 - { - hsd->State = HAL_SD_STATE_READY; - 800a93c: 687b ldr r3, [r7, #4] - 800a93e: 2201 movs r2, #1 - 800a940: f883 2030 strb.w r2, [r3, #48] ; 0x30 - hsd->ErrorCode = SDMMC_ERROR_INVALID_PARAMETER; - 800a944: 687b ldr r3, [r7, #4] - 800a946: f04f 6200 mov.w r2, #134217728 ; 0x8000000 - 800a94a: 635a str r2, [r3, #52] ; 0x34 - return HAL_ERROR; - 800a94c: 2301 movs r3, #1 - 800a94e: e070 b.n 800aa32 - } - Init.ClockDiv = sdmmc_clk / (2U * SD_INIT_FREQ); - 800a950: 6a7b ldr r3, [r7, #36] ; 0x24 - 800a952: 0a1b lsrs r3, r3, #8 - 800a954: 4a39 ldr r2, [pc, #228] ; (800aa3c ) - 800a956: fba2 2303 umull r2, r3, r2, r3 - 800a95a: 091b lsrs r3, r3, #4 - 800a95c: 61fb str r3, [r7, #28] - /* Set Transceiver polarity */ - hsd->Instance->POWER |= SDMMC_POWER_DIRPOL; -#endif /* USE_SD_TRANSCEIVER */ - - /* Initialize SDMMC peripheral interface with default configuration */ - (void)SDMMC_Init(hsd->Instance, Init); - 800a95e: 687b ldr r3, [r7, #4] - 800a960: 681c ldr r4, [r3, #0] - 800a962: 466a mov r2, sp - 800a964: f107 0318 add.w r3, r7, #24 - 800a968: e893 0003 ldmia.w r3, {r0, r1} - 800a96c: e882 0003 stmia.w r2, {r0, r1} - 800a970: f107 030c add.w r3, r7, #12 - 800a974: cb0e ldmia r3, {r1, r2, r3} - 800a976: 4620 mov r0, r4 - 800a978: f003 faa0 bl 800debc - - /* Set Power State to ON */ - (void)SDMMC_PowerState_ON(hsd->Instance); - 800a97c: 687b ldr r3, [r7, #4] - 800a97e: 681b ldr r3, [r3, #0] - 800a980: 4618 mov r0, r3 - 800a982: f003 fae3 bl 800df4c - - /* wait 74 Cycles: required power up waiting time before starting - the SD initialization sequence */ - if (Init.ClockDiv != 0U) - 800a986: 69fb ldr r3, [r7, #28] - 800a988: 2b00 cmp r3, #0 - 800a98a: d005 beq.n 800a998 - { - sdmmc_clk = sdmmc_clk / (2U * Init.ClockDiv); - 800a98c: 69fb ldr r3, [r7, #28] - 800a98e: 005b lsls r3, r3, #1 - 800a990: 6a7a ldr r2, [r7, #36] ; 0x24 - 800a992: fbb2 f3f3 udiv r3, r2, r3 - 800a996: 627b str r3, [r7, #36] ; 0x24 - } - - if (sdmmc_clk != 0U) - 800a998: 6a7b ldr r3, [r7, #36] ; 0x24 - 800a99a: 2b00 cmp r3, #0 - 800a99c: d007 beq.n 800a9ae - { - HAL_Delay(1U + (74U * 1000U / (sdmmc_clk))); - 800a99e: 4a28 ldr r2, [pc, #160] ; (800aa40 ) - 800a9a0: 6a7b ldr r3, [r7, #36] ; 0x24 - 800a9a2: fbb2 f3f3 udiv r3, r2, r3 - 800a9a6: 3301 adds r3, #1 - 800a9a8: 4618 mov r0, r3 - 800a9aa: f7f7 fce7 bl 800237c - } - - /* Identify card operating voltage */ - errorstate = SD_PowerON(hsd); - 800a9ae: 6878 ldr r0, [r7, #4] - 800a9b0: f000 ffea bl 800b988 - 800a9b4: 6238 str r0, [r7, #32] - if (errorstate != HAL_SD_ERROR_NONE) - 800a9b6: 6a3b ldr r3, [r7, #32] - 800a9b8: 2b00 cmp r3, #0 - 800a9ba: d00b beq.n 800a9d4 - { - hsd->State = HAL_SD_STATE_READY; - 800a9bc: 687b ldr r3, [r7, #4] - 800a9be: 2201 movs r2, #1 - 800a9c0: f883 2030 strb.w r2, [r3, #48] ; 0x30 - hsd->ErrorCode |= errorstate; - 800a9c4: 687b ldr r3, [r7, #4] - 800a9c6: 6b5a ldr r2, [r3, #52] ; 0x34 - 800a9c8: 6a3b ldr r3, [r7, #32] - 800a9ca: 431a orrs r2, r3 - 800a9cc: 687b ldr r3, [r7, #4] - 800a9ce: 635a str r2, [r3, #52] ; 0x34 - return HAL_ERROR; - 800a9d0: 2301 movs r3, #1 - 800a9d2: e02e b.n 800aa32 - } - - /* Card initialization */ - errorstate = SD_InitCard(hsd); - 800a9d4: 6878 ldr r0, [r7, #4] - 800a9d6: f000 ff09 bl 800b7ec - 800a9da: 6238 str r0, [r7, #32] - if (errorstate != HAL_SD_ERROR_NONE) - 800a9dc: 6a3b ldr r3, [r7, #32] - 800a9de: 2b00 cmp r3, #0 - 800a9e0: d00b beq.n 800a9fa - { - hsd->State = HAL_SD_STATE_READY; - 800a9e2: 687b ldr r3, [r7, #4] - 800a9e4: 2201 movs r2, #1 - 800a9e6: f883 2030 strb.w r2, [r3, #48] ; 0x30 - hsd->ErrorCode |= errorstate; - 800a9ea: 687b ldr r3, [r7, #4] - 800a9ec: 6b5a ldr r2, [r3, #52] ; 0x34 - 800a9ee: 6a3b ldr r3, [r7, #32] - 800a9f0: 431a orrs r2, r3 - 800a9f2: 687b ldr r3, [r7, #4] - 800a9f4: 635a str r2, [r3, #52] ; 0x34 - return HAL_ERROR; - 800a9f6: 2301 movs r3, #1 - 800a9f8: e01b b.n 800aa32 - } - - /* Set Block Size for Card */ - errorstate = SDMMC_CmdBlockLength(hsd->Instance, BLOCKSIZE); - 800a9fa: 687b ldr r3, [r7, #4] - 800a9fc: 681b ldr r3, [r3, #0] - 800a9fe: f44f 7100 mov.w r1, #512 ; 0x200 - 800aa02: 4618 mov r0, r3 - 800aa04: f003 fb38 bl 800e078 - 800aa08: 6238 str r0, [r7, #32] - if (errorstate != HAL_SD_ERROR_NONE) - 800aa0a: 6a3b ldr r3, [r7, #32] - 800aa0c: 2b00 cmp r3, #0 - 800aa0e: d00f beq.n 800aa30 - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - 800aa10: 687b ldr r3, [r7, #4] - 800aa12: 681b ldr r3, [r3, #0] - 800aa14: 4a0b ldr r2, [pc, #44] ; (800aa44 ) - 800aa16: 639a str r2, [r3, #56] ; 0x38 - hsd->ErrorCode |= errorstate; - 800aa18: 687b ldr r3, [r7, #4] - 800aa1a: 6b5a ldr r2, [r3, #52] ; 0x34 - 800aa1c: 6a3b ldr r3, [r7, #32] - 800aa1e: 431a orrs r2, r3 - 800aa20: 687b ldr r3, [r7, #4] - 800aa22: 635a str r2, [r3, #52] ; 0x34 - hsd->State = HAL_SD_STATE_READY; - 800aa24: 687b ldr r3, [r7, #4] - 800aa26: 2201 movs r2, #1 - 800aa28: f883 2030 strb.w r2, [r3, #48] ; 0x30 - return HAL_ERROR; - 800aa2c: 2301 movs r3, #1 - 800aa2e: e000 b.n 800aa32 - } - - return HAL_OK; - 800aa30: 2300 movs r3, #0 -} - 800aa32: 4618 mov r0, r3 - 800aa34: 372c adds r7, #44 ; 0x2c - 800aa36: 46bd mov sp, r7 - 800aa38: bd90 pop {r4, r7, pc} - 800aa3a: bf00 nop - 800aa3c: 014f8b59 .word 0x014f8b59 - 800aa40: 00012110 .word 0x00012110 - 800aa44: 1fe00fff .word 0x1fe00fff - -0800aa48 : - * @param NumberOfBlocks: Number of blocks to read. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SD_ReadBlocks_DMA(SD_HandleTypeDef *hsd, uint8_t *pData, uint32_t BlockAdd, - uint32_t NumberOfBlocks) -{ - 800aa48: b580 push {r7, lr} - 800aa4a: b08c sub sp, #48 ; 0x30 - 800aa4c: af00 add r7, sp, #0 - 800aa4e: 60f8 str r0, [r7, #12] - 800aa50: 60b9 str r1, [r7, #8] - 800aa52: 607a str r2, [r7, #4] - 800aa54: 603b str r3, [r7, #0] - SDMMC_DataInitTypeDef config; - uint32_t errorstate; - uint32_t add = BlockAdd; - 800aa56: 687b ldr r3, [r7, #4] - 800aa58: 62bb str r3, [r7, #40] ; 0x28 - - if (NULL == pData) - 800aa5a: 68bb ldr r3, [r7, #8] - 800aa5c: 2b00 cmp r3, #0 - 800aa5e: d107 bne.n 800aa70 - { - hsd->ErrorCode |= HAL_SD_ERROR_PARAM; - 800aa60: 68fb ldr r3, [r7, #12] - 800aa62: 6b5b ldr r3, [r3, #52] ; 0x34 - 800aa64: f043 6200 orr.w r2, r3, #134217728 ; 0x8000000 - 800aa68: 68fb ldr r3, [r7, #12] - 800aa6a: 635a str r2, [r3, #52] ; 0x34 - return HAL_ERROR; - 800aa6c: 2301 movs r3, #1 - 800aa6e: e08d b.n 800ab8c - } - - if (hsd->State == HAL_SD_STATE_READY) - 800aa70: 68fb ldr r3, [r7, #12] - 800aa72: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 - 800aa76: b2db uxtb r3, r3 - 800aa78: 2b01 cmp r3, #1 - 800aa7a: f040 8086 bne.w 800ab8a - { - hsd->ErrorCode = HAL_SD_ERROR_NONE; - 800aa7e: 68fb ldr r3, [r7, #12] - 800aa80: 2200 movs r2, #0 - 800aa82: 635a str r2, [r3, #52] ; 0x34 - - if ((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) - 800aa84: 6aba ldr r2, [r7, #40] ; 0x28 - 800aa86: 683b ldr r3, [r7, #0] - 800aa88: 441a add r2, r3 - 800aa8a: 68fb ldr r3, [r7, #12] - 800aa8c: 6d1b ldr r3, [r3, #80] ; 0x50 - 800aa8e: 429a cmp r2, r3 - 800aa90: d907 bls.n 800aaa2 - { - hsd->ErrorCode |= HAL_SD_ERROR_ADDR_OUT_OF_RANGE; - 800aa92: 68fb ldr r3, [r7, #12] - 800aa94: 6b5b ldr r3, [r3, #52] ; 0x34 - 800aa96: f043 7200 orr.w r2, r3, #33554432 ; 0x2000000 - 800aa9a: 68fb ldr r3, [r7, #12] - 800aa9c: 635a str r2, [r3, #52] ; 0x34 - return HAL_ERROR; - 800aa9e: 2301 movs r3, #1 - 800aaa0: e074 b.n 800ab8c - } - - hsd->State = HAL_SD_STATE_BUSY; - 800aaa2: 68fb ldr r3, [r7, #12] - 800aaa4: 2203 movs r2, #3 - 800aaa6: f883 2030 strb.w r2, [r3, #48] ; 0x30 - - /* Initialize data control register */ - hsd->Instance->DCTRL = 0U; - 800aaaa: 68fb ldr r3, [r7, #12] - 800aaac: 681b ldr r3, [r3, #0] - 800aaae: 2200 movs r2, #0 - 800aab0: 62da str r2, [r3, #44] ; 0x2c - - hsd->pRxBuffPtr = pData; - 800aab2: 68fb ldr r3, [r7, #12] - 800aab4: 68ba ldr r2, [r7, #8] - 800aab6: 625a str r2, [r3, #36] ; 0x24 - hsd->RxXferSize = BLOCKSIZE * NumberOfBlocks; - 800aab8: 683b ldr r3, [r7, #0] - 800aaba: 025a lsls r2, r3, #9 - 800aabc: 68fb ldr r3, [r7, #12] - 800aabe: 629a str r2, [r3, #40] ; 0x28 - - if (hsd->SdCard.CardType != CARD_SDHC_SDXC) - 800aac0: 68fb ldr r3, [r7, #12] - 800aac2: 6b9b ldr r3, [r3, #56] ; 0x38 - 800aac4: 2b01 cmp r3, #1 - 800aac6: d002 beq.n 800aace - { - add *= 512U; - 800aac8: 6abb ldr r3, [r7, #40] ; 0x28 - 800aaca: 025b lsls r3, r3, #9 - 800aacc: 62bb str r3, [r7, #40] ; 0x28 - } - - /* Configure the SD DPSM (Data Path State Machine) */ - config.DataTimeOut = SDMMC_DATATIMEOUT; - 800aace: f04f 33ff mov.w r3, #4294967295 - 800aad2: 613b str r3, [r7, #16] - config.DataLength = BLOCKSIZE * NumberOfBlocks; - 800aad4: 683b ldr r3, [r7, #0] - 800aad6: 025b lsls r3, r3, #9 - 800aad8: 617b str r3, [r7, #20] - config.DataBlockSize = SDMMC_DATABLOCK_SIZE_512B; - 800aada: 2390 movs r3, #144 ; 0x90 - 800aadc: 61bb str r3, [r7, #24] - config.TransferDir = SDMMC_TRANSFER_DIR_TO_SDMMC; - 800aade: 2302 movs r3, #2 - 800aae0: 61fb str r3, [r7, #28] - config.TransferMode = SDMMC_TRANSFER_MODE_BLOCK; - 800aae2: 2300 movs r3, #0 - 800aae4: 623b str r3, [r7, #32] - config.DPSM = SDMMC_DPSM_DISABLE; - 800aae6: 2300 movs r3, #0 - 800aae8: 627b str r3, [r7, #36] ; 0x24 - (void)SDMMC_ConfigData(hsd->Instance, &config); - 800aaea: 68fb ldr r3, [r7, #12] - 800aaec: 681b ldr r3, [r3, #0] - 800aaee: f107 0210 add.w r2, r7, #16 - 800aaf2: 4611 mov r1, r2 - 800aaf4: 4618 mov r0, r3 - 800aaf6: f003 fa93 bl 800e020 - - __SDMMC_CMDTRANS_ENABLE(hsd->Instance); - 800aafa: 68fb ldr r3, [r7, #12] - 800aafc: 681b ldr r3, [r3, #0] - 800aafe: 68da ldr r2, [r3, #12] - 800ab00: 68fb ldr r3, [r7, #12] - 800ab02: 681b ldr r3, [r3, #0] - 800ab04: f042 0240 orr.w r2, r2, #64 ; 0x40 - 800ab08: 60da str r2, [r3, #12] - hsd->Instance->IDMABASE0 = (uint32_t) pData ; - 800ab0a: 68fb ldr r3, [r7, #12] - 800ab0c: 681b ldr r3, [r3, #0] - 800ab0e: 68ba ldr r2, [r7, #8] - 800ab10: 659a str r2, [r3, #88] ; 0x58 - hsd->Instance->IDMACTRL = SDMMC_ENABLE_IDMA_SINGLE_BUFF; - 800ab12: 68fb ldr r3, [r7, #12] - 800ab14: 681b ldr r3, [r3, #0] - 800ab16: 2201 movs r2, #1 - 800ab18: 651a str r2, [r3, #80] ; 0x50 - - /* Read Blocks in DMA mode */ - if (NumberOfBlocks > 1U) - 800ab1a: 683b ldr r3, [r7, #0] - 800ab1c: 2b01 cmp r3, #1 - 800ab1e: d90a bls.n 800ab36 - { - hsd->Context = (SD_CONTEXT_READ_MULTIPLE_BLOCK | SD_CONTEXT_DMA); - 800ab20: 68fb ldr r3, [r7, #12] - 800ab22: 2282 movs r2, #130 ; 0x82 - 800ab24: 62da str r2, [r3, #44] ; 0x2c - - /* Read Multi Block command */ - errorstate = SDMMC_CmdReadMultiBlock(hsd->Instance, add); - 800ab26: 68fb ldr r3, [r7, #12] - 800ab28: 681b ldr r3, [r3, #0] - 800ab2a: 6ab9 ldr r1, [r7, #40] ; 0x28 - 800ab2c: 4618 mov r0, r3 - 800ab2e: f003 fae9 bl 800e104 - 800ab32: 62f8 str r0, [r7, #44] ; 0x2c - 800ab34: e009 b.n 800ab4a - } - else - { - hsd->Context = (SD_CONTEXT_READ_SINGLE_BLOCK | SD_CONTEXT_DMA); - 800ab36: 68fb ldr r3, [r7, #12] - 800ab38: 2281 movs r2, #129 ; 0x81 - 800ab3a: 62da str r2, [r3, #44] ; 0x2c - - /* Read Single Block command */ - errorstate = SDMMC_CmdReadSingleBlock(hsd->Instance, add); - 800ab3c: 68fb ldr r3, [r7, #12] - 800ab3e: 681b ldr r3, [r3, #0] - 800ab40: 6ab9 ldr r1, [r7, #40] ; 0x28 - 800ab42: 4618 mov r0, r3 - 800ab44: f003 fabb bl 800e0be - 800ab48: 62f8 str r0, [r7, #44] ; 0x2c - } - if (errorstate != HAL_SD_ERROR_NONE) - 800ab4a: 6afb ldr r3, [r7, #44] ; 0x2c - 800ab4c: 2b00 cmp r3, #0 - 800ab4e: d012 beq.n 800ab76 - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - 800ab50: 68fb ldr r3, [r7, #12] - 800ab52: 681b ldr r3, [r3, #0] - 800ab54: 4a0f ldr r2, [pc, #60] ; (800ab94 ) - 800ab56: 639a str r2, [r3, #56] ; 0x38 - hsd->ErrorCode |= errorstate; - 800ab58: 68fb ldr r3, [r7, #12] - 800ab5a: 6b5a ldr r2, [r3, #52] ; 0x34 - 800ab5c: 6afb ldr r3, [r7, #44] ; 0x2c - 800ab5e: 431a orrs r2, r3 - 800ab60: 68fb ldr r3, [r7, #12] - 800ab62: 635a str r2, [r3, #52] ; 0x34 - hsd->State = HAL_SD_STATE_READY; - 800ab64: 68fb ldr r3, [r7, #12] - 800ab66: 2201 movs r2, #1 - 800ab68: f883 2030 strb.w r2, [r3, #48] ; 0x30 - hsd->Context = SD_CONTEXT_NONE; - 800ab6c: 68fb ldr r3, [r7, #12] - 800ab6e: 2200 movs r2, #0 - 800ab70: 62da str r2, [r3, #44] ; 0x2c - return HAL_ERROR; - 800ab72: 2301 movs r3, #1 - 800ab74: e00a b.n 800ab8c - } - - /* Enable transfer interrupts */ - __HAL_SD_ENABLE_IT(hsd, (SDMMC_IT_DCRCFAIL | SDMMC_IT_DTIMEOUT | SDMMC_IT_RXOVERR | SDMMC_IT_DATAEND)); - 800ab76: 68fb ldr r3, [r7, #12] - 800ab78: 681b ldr r3, [r3, #0] - 800ab7a: 6bda ldr r2, [r3, #60] ; 0x3c - 800ab7c: 68fb ldr r3, [r7, #12] - 800ab7e: 681b ldr r3, [r3, #0] - 800ab80: f442 7295 orr.w r2, r2, #298 ; 0x12a - 800ab84: 63da str r2, [r3, #60] ; 0x3c - - - return HAL_OK; - 800ab86: 2300 movs r3, #0 - 800ab88: e000 b.n 800ab8c - } - else - { - return HAL_BUSY; - 800ab8a: 2302 movs r3, #2 - } -} - 800ab8c: 4618 mov r0, r3 - 800ab8e: 3730 adds r7, #48 ; 0x30 - 800ab90: 46bd mov sp, r7 - 800ab92: bd80 pop {r7, pc} - 800ab94: 1fe00fff .word 0x1fe00fff - -0800ab98 : - * @param NumberOfBlocks: Number of blocks to write - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SD_WriteBlocks_DMA(SD_HandleTypeDef *hsd, const uint8_t *pData, uint32_t BlockAdd, - uint32_t NumberOfBlocks) -{ - 800ab98: b580 push {r7, lr} - 800ab9a: b08c sub sp, #48 ; 0x30 - 800ab9c: af00 add r7, sp, #0 - 800ab9e: 60f8 str r0, [r7, #12] - 800aba0: 60b9 str r1, [r7, #8] - 800aba2: 607a str r2, [r7, #4] - 800aba4: 603b str r3, [r7, #0] - SDMMC_DataInitTypeDef config; - uint32_t errorstate; - uint32_t add = BlockAdd; - 800aba6: 687b ldr r3, [r7, #4] - 800aba8: 62bb str r3, [r7, #40] ; 0x28 - - if (NULL == pData) - 800abaa: 68bb ldr r3, [r7, #8] - 800abac: 2b00 cmp r3, #0 - 800abae: d107 bne.n 800abc0 - { - hsd->ErrorCode |= HAL_SD_ERROR_PARAM; - 800abb0: 68fb ldr r3, [r7, #12] - 800abb2: 6b5b ldr r3, [r3, #52] ; 0x34 - 800abb4: f043 6200 orr.w r2, r3, #134217728 ; 0x8000000 - 800abb8: 68fb ldr r3, [r7, #12] - 800abba: 635a str r2, [r3, #52] ; 0x34 - return HAL_ERROR; - 800abbc: 2301 movs r3, #1 - 800abbe: e08d b.n 800acdc - } - - if (hsd->State == HAL_SD_STATE_READY) - 800abc0: 68fb ldr r3, [r7, #12] - 800abc2: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 - 800abc6: b2db uxtb r3, r3 - 800abc8: 2b01 cmp r3, #1 - 800abca: f040 8086 bne.w 800acda - { - hsd->ErrorCode = HAL_SD_ERROR_NONE; - 800abce: 68fb ldr r3, [r7, #12] - 800abd0: 2200 movs r2, #0 - 800abd2: 635a str r2, [r3, #52] ; 0x34 - - if ((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) - 800abd4: 6aba ldr r2, [r7, #40] ; 0x28 - 800abd6: 683b ldr r3, [r7, #0] - 800abd8: 441a add r2, r3 - 800abda: 68fb ldr r3, [r7, #12] - 800abdc: 6d1b ldr r3, [r3, #80] ; 0x50 - 800abde: 429a cmp r2, r3 - 800abe0: d907 bls.n 800abf2 - { - hsd->ErrorCode |= HAL_SD_ERROR_ADDR_OUT_OF_RANGE; - 800abe2: 68fb ldr r3, [r7, #12] - 800abe4: 6b5b ldr r3, [r3, #52] ; 0x34 - 800abe6: f043 7200 orr.w r2, r3, #33554432 ; 0x2000000 - 800abea: 68fb ldr r3, [r7, #12] - 800abec: 635a str r2, [r3, #52] ; 0x34 - return HAL_ERROR; - 800abee: 2301 movs r3, #1 - 800abf0: e074 b.n 800acdc - } - - hsd->State = HAL_SD_STATE_BUSY; - 800abf2: 68fb ldr r3, [r7, #12] - 800abf4: 2203 movs r2, #3 - 800abf6: f883 2030 strb.w r2, [r3, #48] ; 0x30 - - /* Initialize data control register */ - hsd->Instance->DCTRL = 0U; - 800abfa: 68fb ldr r3, [r7, #12] - 800abfc: 681b ldr r3, [r3, #0] - 800abfe: 2200 movs r2, #0 - 800ac00: 62da str r2, [r3, #44] ; 0x2c - - hsd->pTxBuffPtr = pData; - 800ac02: 68fb ldr r3, [r7, #12] - 800ac04: 68ba ldr r2, [r7, #8] - 800ac06: 61da str r2, [r3, #28] - hsd->TxXferSize = BLOCKSIZE * NumberOfBlocks; - 800ac08: 683b ldr r3, [r7, #0] - 800ac0a: 025a lsls r2, r3, #9 - 800ac0c: 68fb ldr r3, [r7, #12] - 800ac0e: 621a str r2, [r3, #32] - - if (hsd->SdCard.CardType != CARD_SDHC_SDXC) - 800ac10: 68fb ldr r3, [r7, #12] - 800ac12: 6b9b ldr r3, [r3, #56] ; 0x38 - 800ac14: 2b01 cmp r3, #1 - 800ac16: d002 beq.n 800ac1e - { - add *= 512U; - 800ac18: 6abb ldr r3, [r7, #40] ; 0x28 - 800ac1a: 025b lsls r3, r3, #9 - 800ac1c: 62bb str r3, [r7, #40] ; 0x28 - } - - /* Configure the SD DPSM (Data Path State Machine) */ - config.DataTimeOut = SDMMC_DATATIMEOUT; - 800ac1e: f04f 33ff mov.w r3, #4294967295 - 800ac22: 613b str r3, [r7, #16] - config.DataLength = BLOCKSIZE * NumberOfBlocks; - 800ac24: 683b ldr r3, [r7, #0] - 800ac26: 025b lsls r3, r3, #9 - 800ac28: 617b str r3, [r7, #20] - config.DataBlockSize = SDMMC_DATABLOCK_SIZE_512B; - 800ac2a: 2390 movs r3, #144 ; 0x90 - 800ac2c: 61bb str r3, [r7, #24] - config.TransferDir = SDMMC_TRANSFER_DIR_TO_CARD; - 800ac2e: 2300 movs r3, #0 - 800ac30: 61fb str r3, [r7, #28] - config.TransferMode = SDMMC_TRANSFER_MODE_BLOCK; - 800ac32: 2300 movs r3, #0 - 800ac34: 623b str r3, [r7, #32] - config.DPSM = SDMMC_DPSM_DISABLE; - 800ac36: 2300 movs r3, #0 - 800ac38: 627b str r3, [r7, #36] ; 0x24 - (void)SDMMC_ConfigData(hsd->Instance, &config); - 800ac3a: 68fb ldr r3, [r7, #12] - 800ac3c: 681b ldr r3, [r3, #0] - 800ac3e: f107 0210 add.w r2, r7, #16 - 800ac42: 4611 mov r1, r2 - 800ac44: 4618 mov r0, r3 - 800ac46: f003 f9eb bl 800e020 - - - __SDMMC_CMDTRANS_ENABLE(hsd->Instance); - 800ac4a: 68fb ldr r3, [r7, #12] - 800ac4c: 681b ldr r3, [r3, #0] - 800ac4e: 68da ldr r2, [r3, #12] - 800ac50: 68fb ldr r3, [r7, #12] - 800ac52: 681b ldr r3, [r3, #0] - 800ac54: f042 0240 orr.w r2, r2, #64 ; 0x40 - 800ac58: 60da str r2, [r3, #12] - - hsd->Instance->IDMABASE0 = (uint32_t) pData ; - 800ac5a: 68fb ldr r3, [r7, #12] - 800ac5c: 681b ldr r3, [r3, #0] - 800ac5e: 68ba ldr r2, [r7, #8] - 800ac60: 659a str r2, [r3, #88] ; 0x58 - hsd->Instance->IDMACTRL = SDMMC_ENABLE_IDMA_SINGLE_BUFF; - 800ac62: 68fb ldr r3, [r7, #12] - 800ac64: 681b ldr r3, [r3, #0] - 800ac66: 2201 movs r2, #1 - 800ac68: 651a str r2, [r3, #80] ; 0x50 - - /* Write Blocks in Polling mode */ - if (NumberOfBlocks > 1U) - 800ac6a: 683b ldr r3, [r7, #0] - 800ac6c: 2b01 cmp r3, #1 - 800ac6e: d90a bls.n 800ac86 - { - hsd->Context = (SD_CONTEXT_WRITE_MULTIPLE_BLOCK | SD_CONTEXT_DMA); - 800ac70: 68fb ldr r3, [r7, #12] - 800ac72: 22a0 movs r2, #160 ; 0xa0 - 800ac74: 62da str r2, [r3, #44] ; 0x2c - - /* Write Multi Block command */ - errorstate = SDMMC_CmdWriteMultiBlock(hsd->Instance, add); - 800ac76: 68fb ldr r3, [r7, #12] - 800ac78: 681b ldr r3, [r3, #0] - 800ac7a: 6ab9 ldr r1, [r7, #40] ; 0x28 - 800ac7c: 4618 mov r0, r3 - 800ac7e: f003 fa87 bl 800e190 - 800ac82: 62f8 str r0, [r7, #44] ; 0x2c - 800ac84: e009 b.n 800ac9a - } - else - { - hsd->Context = (SD_CONTEXT_WRITE_SINGLE_BLOCK | SD_CONTEXT_DMA); - 800ac86: 68fb ldr r3, [r7, #12] - 800ac88: 2290 movs r2, #144 ; 0x90 - 800ac8a: 62da str r2, [r3, #44] ; 0x2c - - /* Write Single Block command */ - errorstate = SDMMC_CmdWriteSingleBlock(hsd->Instance, add); - 800ac8c: 68fb ldr r3, [r7, #12] - 800ac8e: 681b ldr r3, [r3, #0] - 800ac90: 6ab9 ldr r1, [r7, #40] ; 0x28 - 800ac92: 4618 mov r0, r3 - 800ac94: f003 fa59 bl 800e14a - 800ac98: 62f8 str r0, [r7, #44] ; 0x2c - } - if (errorstate != HAL_SD_ERROR_NONE) - 800ac9a: 6afb ldr r3, [r7, #44] ; 0x2c - 800ac9c: 2b00 cmp r3, #0 - 800ac9e: d012 beq.n 800acc6 - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - 800aca0: 68fb ldr r3, [r7, #12] - 800aca2: 681b ldr r3, [r3, #0] - 800aca4: 4a0f ldr r2, [pc, #60] ; (800ace4 ) - 800aca6: 639a str r2, [r3, #56] ; 0x38 - hsd->ErrorCode |= errorstate; - 800aca8: 68fb ldr r3, [r7, #12] - 800acaa: 6b5a ldr r2, [r3, #52] ; 0x34 - 800acac: 6afb ldr r3, [r7, #44] ; 0x2c - 800acae: 431a orrs r2, r3 - 800acb0: 68fb ldr r3, [r7, #12] - 800acb2: 635a str r2, [r3, #52] ; 0x34 - hsd->State = HAL_SD_STATE_READY; - 800acb4: 68fb ldr r3, [r7, #12] - 800acb6: 2201 movs r2, #1 - 800acb8: f883 2030 strb.w r2, [r3, #48] ; 0x30 - hsd->Context = SD_CONTEXT_NONE; - 800acbc: 68fb ldr r3, [r7, #12] - 800acbe: 2200 movs r2, #0 - 800acc0: 62da str r2, [r3, #44] ; 0x2c - return HAL_ERROR; - 800acc2: 2301 movs r3, #1 - 800acc4: e00a b.n 800acdc - } - - /* Enable transfer interrupts */ - __HAL_SD_ENABLE_IT(hsd, (SDMMC_IT_DCRCFAIL | SDMMC_IT_DTIMEOUT | SDMMC_IT_TXUNDERR | SDMMC_IT_DATAEND)); - 800acc6: 68fb ldr r3, [r7, #12] - 800acc8: 681b ldr r3, [r3, #0] - 800acca: 6bda ldr r2, [r3, #60] ; 0x3c - 800accc: 68fb ldr r3, [r7, #12] - 800acce: 681b ldr r3, [r3, #0] - 800acd0: f442 728d orr.w r2, r2, #282 ; 0x11a - 800acd4: 63da str r2, [r3, #60] ; 0x3c - - return HAL_OK; - 800acd6: 2300 movs r3, #0 - 800acd8: e000 b.n 800acdc - } - else - { - return HAL_BUSY; - 800acda: 2302 movs r3, #2 - } -} - 800acdc: 4618 mov r0, r3 - 800acde: 3730 adds r7, #48 ; 0x30 - 800ace0: 46bd mov sp, r7 - 800ace2: bd80 pop {r7, pc} - 800ace4: 1fe00fff .word 0x1fe00fff - -0800ace8 : - * @brief This function handles SD card interrupt request. - * @param hsd: Pointer to SD handle - * @retval None - */ -void HAL_SD_IRQHandler(SD_HandleTypeDef *hsd) -{ - 800ace8: b580 push {r7, lr} - 800acea: b084 sub sp, #16 - 800acec: af00 add r7, sp, #0 - 800acee: 6078 str r0, [r7, #4] - uint32_t errorstate; - uint32_t context = hsd->Context; - 800acf0: 687b ldr r3, [r7, #4] - 800acf2: 6adb ldr r3, [r3, #44] ; 0x2c - 800acf4: 60fb str r3, [r7, #12] - - /* Check for SDMMC interrupt flags */ - if ((__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXFIFOHF) != RESET) && ((context & SD_CONTEXT_IT) != 0U)) - 800acf6: 687b ldr r3, [r7, #4] - 800acf8: 681b ldr r3, [r3, #0] - 800acfa: 6b5b ldr r3, [r3, #52] ; 0x34 - 800acfc: f403 4300 and.w r3, r3, #32768 ; 0x8000 - 800ad00: 2b00 cmp r3, #0 - 800ad02: d008 beq.n 800ad16 - 800ad04: 68fb ldr r3, [r7, #12] - 800ad06: f003 0308 and.w r3, r3, #8 - 800ad0a: 2b00 cmp r3, #0 - 800ad0c: d003 beq.n 800ad16 - { - SD_Read_IT(hsd); - 800ad0e: 6878 ldr r0, [r7, #4] - 800ad10: f001 f926 bl 800bf60 - 800ad14: e19a b.n 800b04c - } - - else if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DATAEND) != RESET) - 800ad16: 687b ldr r3, [r7, #4] - 800ad18: 681b ldr r3, [r3, #0] - 800ad1a: 6b5b ldr r3, [r3, #52] ; 0x34 - 800ad1c: f403 7380 and.w r3, r3, #256 ; 0x100 - 800ad20: 2b00 cmp r3, #0 - 800ad22: f000 80ac beq.w 800ae7e - { - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_FLAG_DATAEND); - 800ad26: 687b ldr r3, [r7, #4] - 800ad28: 681b ldr r3, [r3, #0] - 800ad2a: f44f 7280 mov.w r2, #256 ; 0x100 - 800ad2e: 639a str r2, [r3, #56] ; 0x38 - - __HAL_SD_DISABLE_IT(hsd, SDMMC_IT_DATAEND | SDMMC_IT_DCRCFAIL | SDMMC_IT_DTIMEOUT | \ - 800ad30: 687b ldr r3, [r7, #4] - 800ad32: 681b ldr r3, [r3, #0] - 800ad34: 6bd9 ldr r1, [r3, #60] ; 0x3c - 800ad36: 687b ldr r3, [r7, #4] - 800ad38: 681a ldr r2, [r3, #0] - 800ad3a: 4b59 ldr r3, [pc, #356] ; (800aea0 ) - 800ad3c: 400b ands r3, r1 - 800ad3e: 63d3 str r3, [r2, #60] ; 0x3c - SDMMC_IT_TXUNDERR | SDMMC_IT_RXOVERR | SDMMC_IT_TXFIFOHE | \ - SDMMC_IT_RXFIFOHF); - - __HAL_SD_DISABLE_IT(hsd, SDMMC_IT_IDMABTC); - 800ad40: 687b ldr r3, [r7, #4] - 800ad42: 681b ldr r3, [r3, #0] - 800ad44: 6bda ldr r2, [r3, #60] ; 0x3c - 800ad46: 687b ldr r3, [r7, #4] - 800ad48: 681b ldr r3, [r3, #0] - 800ad4a: f022 5280 bic.w r2, r2, #268435456 ; 0x10000000 - 800ad4e: 63da str r2, [r3, #60] ; 0x3c - __SDMMC_CMDTRANS_DISABLE(hsd->Instance); - 800ad50: 687b ldr r3, [r7, #4] - 800ad52: 681b ldr r3, [r3, #0] - 800ad54: 68da ldr r2, [r3, #12] - 800ad56: 687b ldr r3, [r7, #4] - 800ad58: 681b ldr r3, [r3, #0] - 800ad5a: f022 0240 bic.w r2, r2, #64 ; 0x40 - 800ad5e: 60da str r2, [r3, #12] - - if ((context & SD_CONTEXT_IT) != 0U) - 800ad60: 68fb ldr r3, [r7, #12] - 800ad62: f003 0308 and.w r3, r3, #8 - 800ad66: 2b00 cmp r3, #0 - 800ad68: d038 beq.n 800addc - { - if (((context & SD_CONTEXT_READ_MULTIPLE_BLOCK) != 0U) || ((context & SD_CONTEXT_WRITE_MULTIPLE_BLOCK) != 0U)) - 800ad6a: 68fb ldr r3, [r7, #12] - 800ad6c: f003 0302 and.w r3, r3, #2 - 800ad70: 2b00 cmp r3, #0 - 800ad72: d104 bne.n 800ad7e - 800ad74: 68fb ldr r3, [r7, #12] - 800ad76: f003 0320 and.w r3, r3, #32 - 800ad7a: 2b00 cmp r3, #0 - 800ad7c: d011 beq.n 800ada2 - { - errorstate = SDMMC_CmdStopTransfer(hsd->Instance); - 800ad7e: 687b ldr r3, [r7, #4] - 800ad80: 681b ldr r3, [r3, #0] - 800ad82: 4618 mov r0, r3 - 800ad84: f003 fa28 bl 800e1d8 - 800ad88: 60b8 str r0, [r7, #8] - if (errorstate != HAL_SD_ERROR_NONE) - 800ad8a: 68bb ldr r3, [r7, #8] - 800ad8c: 2b00 cmp r3, #0 - 800ad8e: d008 beq.n 800ada2 - { - hsd->ErrorCode |= errorstate; - 800ad90: 687b ldr r3, [r7, #4] - 800ad92: 6b5a ldr r2, [r3, #52] ; 0x34 - 800ad94: 68bb ldr r3, [r7, #8] - 800ad96: 431a orrs r2, r3 - 800ad98: 687b ldr r3, [r7, #4] - 800ad9a: 635a str r2, [r3, #52] ; 0x34 -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) - hsd->ErrorCallback(hsd); -#else - HAL_SD_ErrorCallback(hsd); - 800ad9c: 6878 ldr r0, [r7, #4] - 800ad9e: f000 f95b bl 800b058 -#endif /* USE_HAL_SD_REGISTER_CALLBACKS */ - } - } - - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_DATA_FLAGS); - 800ada2: 687b ldr r3, [r7, #4] - 800ada4: 681b ldr r3, [r3, #0] - 800ada6: 4a3f ldr r2, [pc, #252] ; (800aea4 ) - 800ada8: 639a str r2, [r3, #56] ; 0x38 - - hsd->State = HAL_SD_STATE_READY; - 800adaa: 687b ldr r3, [r7, #4] - 800adac: 2201 movs r2, #1 - 800adae: f883 2030 strb.w r2, [r3, #48] ; 0x30 - hsd->Context = SD_CONTEXT_NONE; - 800adb2: 687b ldr r3, [r7, #4] - 800adb4: 2200 movs r2, #0 - 800adb6: 62da str r2, [r3, #44] ; 0x2c - if (((context & SD_CONTEXT_READ_SINGLE_BLOCK) != 0U) || ((context & SD_CONTEXT_READ_MULTIPLE_BLOCK) != 0U)) - 800adb8: 68fb ldr r3, [r7, #12] - 800adba: f003 0301 and.w r3, r3, #1 - 800adbe: 2b00 cmp r3, #0 - 800adc0: d104 bne.n 800adcc - 800adc2: 68fb ldr r3, [r7, #12] - 800adc4: f003 0302 and.w r3, r3, #2 - 800adc8: 2b00 cmp r3, #0 - 800adca: d003 beq.n 800add4 - { -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) - hsd->RxCpltCallback(hsd); -#else - HAL_SD_RxCpltCallback(hsd); - 800adcc: 6878 ldr r0, [r7, #4] - 800adce: f003 fed3 bl 800eb78 - 800add2: e13b b.n 800b04c - else - { -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) - hsd->TxCpltCallback(hsd); -#else - HAL_SD_TxCpltCallback(hsd); - 800add4: 6878 ldr r0, [r7, #4] - 800add6: f003 fec5 bl 800eb64 - } - else - { - /* Nothing to do */ - } -} - 800adda: e137 b.n 800b04c - else if ((context & SD_CONTEXT_DMA) != 0U) - 800addc: 68fb ldr r3, [r7, #12] - 800adde: f003 0380 and.w r3, r3, #128 ; 0x80 - 800ade2: 2b00 cmp r3, #0 - 800ade4: f000 8132 beq.w 800b04c - hsd->Instance->DLEN = 0; - 800ade8: 687b ldr r3, [r7, #4] - 800adea: 681b ldr r3, [r3, #0] - 800adec: 2200 movs r2, #0 - 800adee: 629a str r2, [r3, #40] ; 0x28 - hsd->Instance->DCTRL = 0; - 800adf0: 687b ldr r3, [r7, #4] - 800adf2: 681b ldr r3, [r3, #0] - 800adf4: 2200 movs r2, #0 - 800adf6: 62da str r2, [r3, #44] ; 0x2c - hsd->Instance->IDMACTRL = SDMMC_DISABLE_IDMA; - 800adf8: 687b ldr r3, [r7, #4] - 800adfa: 681b ldr r3, [r3, #0] - 800adfc: 2200 movs r2, #0 - 800adfe: 651a str r2, [r3, #80] ; 0x50 - if (((context & SD_CONTEXT_READ_MULTIPLE_BLOCK) != 0U) || ((context & SD_CONTEXT_WRITE_MULTIPLE_BLOCK) != 0U)) - 800ae00: 68fb ldr r3, [r7, #12] - 800ae02: f003 0302 and.w r3, r3, #2 - 800ae06: 2b00 cmp r3, #0 - 800ae08: d104 bne.n 800ae14 - 800ae0a: 68fb ldr r3, [r7, #12] - 800ae0c: f003 0320 and.w r3, r3, #32 - 800ae10: 2b00 cmp r3, #0 - 800ae12: d011 beq.n 800ae38 - errorstate = SDMMC_CmdStopTransfer(hsd->Instance); - 800ae14: 687b ldr r3, [r7, #4] - 800ae16: 681b ldr r3, [r3, #0] - 800ae18: 4618 mov r0, r3 - 800ae1a: f003 f9dd bl 800e1d8 - 800ae1e: 60b8 str r0, [r7, #8] - if (errorstate != HAL_SD_ERROR_NONE) - 800ae20: 68bb ldr r3, [r7, #8] - 800ae22: 2b00 cmp r3, #0 - 800ae24: d008 beq.n 800ae38 - hsd->ErrorCode |= errorstate; - 800ae26: 687b ldr r3, [r7, #4] - 800ae28: 6b5a ldr r2, [r3, #52] ; 0x34 - 800ae2a: 68bb ldr r3, [r7, #8] - 800ae2c: 431a orrs r2, r3 - 800ae2e: 687b ldr r3, [r7, #4] - 800ae30: 635a str r2, [r3, #52] ; 0x34 - HAL_SD_ErrorCallback(hsd); - 800ae32: 6878 ldr r0, [r7, #4] - 800ae34: f000 f910 bl 800b058 - hsd->State = HAL_SD_STATE_READY; - 800ae38: 687b ldr r3, [r7, #4] - 800ae3a: 2201 movs r2, #1 - 800ae3c: f883 2030 strb.w r2, [r3, #48] ; 0x30 - hsd->Context = SD_CONTEXT_NONE; - 800ae40: 687b ldr r3, [r7, #4] - 800ae42: 2200 movs r2, #0 - 800ae44: 62da str r2, [r3, #44] ; 0x2c - if (((context & SD_CONTEXT_WRITE_SINGLE_BLOCK) != 0U) || ((context & SD_CONTEXT_WRITE_MULTIPLE_BLOCK) != 0U)) - 800ae46: 68fb ldr r3, [r7, #12] - 800ae48: f003 0310 and.w r3, r3, #16 - 800ae4c: 2b00 cmp r3, #0 - 800ae4e: d104 bne.n 800ae5a - 800ae50: 68fb ldr r3, [r7, #12] - 800ae52: f003 0320 and.w r3, r3, #32 - 800ae56: 2b00 cmp r3, #0 - 800ae58: d002 beq.n 800ae60 - HAL_SD_TxCpltCallback(hsd); - 800ae5a: 6878 ldr r0, [r7, #4] - 800ae5c: f003 fe82 bl 800eb64 - if (((context & SD_CONTEXT_READ_SINGLE_BLOCK) != 0U) || ((context & SD_CONTEXT_READ_MULTIPLE_BLOCK) != 0U)) - 800ae60: 68fb ldr r3, [r7, #12] - 800ae62: f003 0301 and.w r3, r3, #1 - 800ae66: 2b00 cmp r3, #0 - 800ae68: d105 bne.n 800ae76 - 800ae6a: 68fb ldr r3, [r7, #12] - 800ae6c: f003 0302 and.w r3, r3, #2 - 800ae70: 2b00 cmp r3, #0 - 800ae72: f000 80eb beq.w 800b04c - HAL_SD_RxCpltCallback(hsd); - 800ae76: 6878 ldr r0, [r7, #4] - 800ae78: f003 fe7e bl 800eb78 -} - 800ae7c: e0e6 b.n 800b04c - else if ((__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_TXFIFOHE) != RESET) && ((context & SD_CONTEXT_IT) != 0U)) - 800ae7e: 687b ldr r3, [r7, #4] - 800ae80: 681b ldr r3, [r3, #0] - 800ae82: 6b5b ldr r3, [r3, #52] ; 0x34 - 800ae84: f403 4380 and.w r3, r3, #16384 ; 0x4000 - 800ae88: 2b00 cmp r3, #0 - 800ae8a: d00d beq.n 800aea8 - 800ae8c: 68fb ldr r3, [r7, #12] - 800ae8e: f003 0308 and.w r3, r3, #8 - 800ae92: 2b00 cmp r3, #0 - 800ae94: d008 beq.n 800aea8 - SD_Write_IT(hsd); - 800ae96: 6878 ldr r0, [r7, #4] - 800ae98: f001 f8a8 bl 800bfec - 800ae9c: e0d6 b.n 800b04c - 800ae9e: bf00 nop - 800aea0: ffff3ec5 .word 0xffff3ec5 - 800aea4: 18000f3a .word 0x18000f3a - else if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DCRCFAIL | SDMMC_FLAG_DTIMEOUT | SDMMC_FLAG_RXOVERR | - 800aea8: 687b ldr r3, [r7, #4] - 800aeaa: 681b ldr r3, [r3, #0] - 800aeac: 6b5b ldr r3, [r3, #52] ; 0x34 - 800aeae: f003 033a and.w r3, r3, #58 ; 0x3a - 800aeb2: 2b00 cmp r3, #0 - 800aeb4: f000 809d beq.w 800aff2 - if (__HAL_SD_GET_FLAG(hsd, SDMMC_IT_DCRCFAIL) != RESET) - 800aeb8: 687b ldr r3, [r7, #4] - 800aeba: 681b ldr r3, [r3, #0] - 800aebc: 6b5b ldr r3, [r3, #52] ; 0x34 - 800aebe: f003 0302 and.w r3, r3, #2 - 800aec2: 2b00 cmp r3, #0 - 800aec4: d005 beq.n 800aed2 - hsd->ErrorCode |= HAL_SD_ERROR_DATA_CRC_FAIL; - 800aec6: 687b ldr r3, [r7, #4] - 800aec8: 6b5b ldr r3, [r3, #52] ; 0x34 - 800aeca: f043 0202 orr.w r2, r3, #2 - 800aece: 687b ldr r3, [r7, #4] - 800aed0: 635a str r2, [r3, #52] ; 0x34 - if (__HAL_SD_GET_FLAG(hsd, SDMMC_IT_DTIMEOUT) != RESET) - 800aed2: 687b ldr r3, [r7, #4] - 800aed4: 681b ldr r3, [r3, #0] - 800aed6: 6b5b ldr r3, [r3, #52] ; 0x34 - 800aed8: f003 0308 and.w r3, r3, #8 - 800aedc: 2b00 cmp r3, #0 - 800aede: d005 beq.n 800aeec - hsd->ErrorCode |= HAL_SD_ERROR_DATA_TIMEOUT; - 800aee0: 687b ldr r3, [r7, #4] - 800aee2: 6b5b ldr r3, [r3, #52] ; 0x34 - 800aee4: f043 0208 orr.w r2, r3, #8 - 800aee8: 687b ldr r3, [r7, #4] - 800aeea: 635a str r2, [r3, #52] ; 0x34 - if (__HAL_SD_GET_FLAG(hsd, SDMMC_IT_RXOVERR) != RESET) - 800aeec: 687b ldr r3, [r7, #4] - 800aeee: 681b ldr r3, [r3, #0] - 800aef0: 6b5b ldr r3, [r3, #52] ; 0x34 - 800aef2: f003 0320 and.w r3, r3, #32 - 800aef6: 2b00 cmp r3, #0 - 800aef8: d005 beq.n 800af06 - hsd->ErrorCode |= HAL_SD_ERROR_RX_OVERRUN; - 800aefa: 687b ldr r3, [r7, #4] - 800aefc: 6b5b ldr r3, [r3, #52] ; 0x34 - 800aefe: f043 0220 orr.w r2, r3, #32 - 800af02: 687b ldr r3, [r7, #4] - 800af04: 635a str r2, [r3, #52] ; 0x34 - if (__HAL_SD_GET_FLAG(hsd, SDMMC_IT_TXUNDERR) != RESET) - 800af06: 687b ldr r3, [r7, #4] - 800af08: 681b ldr r3, [r3, #0] - 800af0a: 6b5b ldr r3, [r3, #52] ; 0x34 - 800af0c: f003 0310 and.w r3, r3, #16 - 800af10: 2b00 cmp r3, #0 - 800af12: d005 beq.n 800af20 - hsd->ErrorCode |= HAL_SD_ERROR_TX_UNDERRUN; - 800af14: 687b ldr r3, [r7, #4] - 800af16: 6b5b ldr r3, [r3, #52] ; 0x34 - 800af18: f043 0210 orr.w r2, r3, #16 - 800af1c: 687b ldr r3, [r7, #4] - 800af1e: 635a str r2, [r3, #52] ; 0x34 - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_DATA_FLAGS); - 800af20: 687b ldr r3, [r7, #4] - 800af22: 681b ldr r3, [r3, #0] - 800af24: 4a4b ldr r2, [pc, #300] ; (800b054 ) - 800af26: 639a str r2, [r3, #56] ; 0x38 - __HAL_SD_DISABLE_IT(hsd, SDMMC_IT_DATAEND | SDMMC_IT_DCRCFAIL | SDMMC_IT_DTIMEOUT | \ - 800af28: 687b ldr r3, [r7, #4] - 800af2a: 681b ldr r3, [r3, #0] - 800af2c: 6bda ldr r2, [r3, #60] ; 0x3c - 800af2e: 687b ldr r3, [r7, #4] - 800af30: 681b ldr r3, [r3, #0] - 800af32: f422 729d bic.w r2, r2, #314 ; 0x13a - 800af36: 63da str r2, [r3, #60] ; 0x3c - __SDMMC_CMDTRANS_DISABLE(hsd->Instance); - 800af38: 687b ldr r3, [r7, #4] - 800af3a: 681b ldr r3, [r3, #0] - 800af3c: 68da ldr r2, [r3, #12] - 800af3e: 687b ldr r3, [r7, #4] - 800af40: 681b ldr r3, [r3, #0] - 800af42: f022 0240 bic.w r2, r2, #64 ; 0x40 - 800af46: 60da str r2, [r3, #12] - hsd->Instance->DCTRL |= SDMMC_DCTRL_FIFORST; - 800af48: 687b ldr r3, [r7, #4] - 800af4a: 681b ldr r3, [r3, #0] - 800af4c: 6ada ldr r2, [r3, #44] ; 0x2c - 800af4e: 687b ldr r3, [r7, #4] - 800af50: 681b ldr r3, [r3, #0] - 800af52: f442 5200 orr.w r2, r2, #8192 ; 0x2000 - 800af56: 62da str r2, [r3, #44] ; 0x2c - hsd->Instance->CMD |= SDMMC_CMD_CMDSTOP; - 800af58: 687b ldr r3, [r7, #4] - 800af5a: 681b ldr r3, [r3, #0] - 800af5c: 68da ldr r2, [r3, #12] - 800af5e: 687b ldr r3, [r7, #4] - 800af60: 681b ldr r3, [r3, #0] - 800af62: f042 0280 orr.w r2, r2, #128 ; 0x80 - 800af66: 60da str r2, [r3, #12] - hsd->ErrorCode |= SDMMC_CmdStopTransfer(hsd->Instance); - 800af68: 687b ldr r3, [r7, #4] - 800af6a: 681b ldr r3, [r3, #0] - 800af6c: 4618 mov r0, r3 - 800af6e: f003 f933 bl 800e1d8 - 800af72: 4602 mov r2, r0 - 800af74: 687b ldr r3, [r7, #4] - 800af76: 6b5b ldr r3, [r3, #52] ; 0x34 - 800af78: 431a orrs r2, r3 - 800af7a: 687b ldr r3, [r7, #4] - 800af7c: 635a str r2, [r3, #52] ; 0x34 - hsd->Instance->CMD &= ~(SDMMC_CMD_CMDSTOP); - 800af7e: 687b ldr r3, [r7, #4] - 800af80: 681b ldr r3, [r3, #0] - 800af82: 68da ldr r2, [r3, #12] - 800af84: 687b ldr r3, [r7, #4] - 800af86: 681b ldr r3, [r3, #0] - 800af88: f022 0280 bic.w r2, r2, #128 ; 0x80 - 800af8c: 60da str r2, [r3, #12] - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_FLAG_DABORT); - 800af8e: 687b ldr r3, [r7, #4] - 800af90: 681b ldr r3, [r3, #0] - 800af92: f44f 6200 mov.w r2, #2048 ; 0x800 - 800af96: 639a str r2, [r3, #56] ; 0x38 - if ((context & SD_CONTEXT_IT) != 0U) - 800af98: 68fb ldr r3, [r7, #12] - 800af9a: f003 0308 and.w r3, r3, #8 - 800af9e: 2b00 cmp r3, #0 - 800afa0: d00a beq.n 800afb8 - hsd->State = HAL_SD_STATE_READY; - 800afa2: 687b ldr r3, [r7, #4] - 800afa4: 2201 movs r2, #1 - 800afa6: f883 2030 strb.w r2, [r3, #48] ; 0x30 - hsd->Context = SD_CONTEXT_NONE; - 800afaa: 687b ldr r3, [r7, #4] - 800afac: 2200 movs r2, #0 - 800afae: 62da str r2, [r3, #44] ; 0x2c - HAL_SD_ErrorCallback(hsd); - 800afb0: 6878 ldr r0, [r7, #4] - 800afb2: f000 f851 bl 800b058 -} - 800afb6: e049 b.n 800b04c - else if ((context & SD_CONTEXT_DMA) != 0U) - 800afb8: 68fb ldr r3, [r7, #12] - 800afba: f003 0380 and.w r3, r3, #128 ; 0x80 - 800afbe: 2b00 cmp r3, #0 - 800afc0: d044 beq.n 800b04c - if (hsd->ErrorCode != HAL_SD_ERROR_NONE) - 800afc2: 687b ldr r3, [r7, #4] - 800afc4: 6b5b ldr r3, [r3, #52] ; 0x34 - 800afc6: 2b00 cmp r3, #0 - 800afc8: d040 beq.n 800b04c - __HAL_SD_DISABLE_IT(hsd, SDMMC_IT_IDMABTC); - 800afca: 687b ldr r3, [r7, #4] - 800afcc: 681b ldr r3, [r3, #0] - 800afce: 6bda ldr r2, [r3, #60] ; 0x3c - 800afd0: 687b ldr r3, [r7, #4] - 800afd2: 681b ldr r3, [r3, #0] - 800afd4: f022 5280 bic.w r2, r2, #268435456 ; 0x10000000 - 800afd8: 63da str r2, [r3, #60] ; 0x3c - hsd->Instance->IDMACTRL = SDMMC_DISABLE_IDMA; - 800afda: 687b ldr r3, [r7, #4] - 800afdc: 681b ldr r3, [r3, #0] - 800afde: 2200 movs r2, #0 - 800afe0: 651a str r2, [r3, #80] ; 0x50 - hsd->State = HAL_SD_STATE_READY; - 800afe2: 687b ldr r3, [r7, #4] - 800afe4: 2201 movs r2, #1 - 800afe6: f883 2030 strb.w r2, [r3, #48] ; 0x30 - HAL_SD_ErrorCallback(hsd); - 800afea: 6878 ldr r0, [r7, #4] - 800afec: f000 f834 bl 800b058 -} - 800aff0: e02c b.n 800b04c - else if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_IDMABTC) != RESET) - 800aff2: 687b ldr r3, [r7, #4] - 800aff4: 681b ldr r3, [r3, #0] - 800aff6: 6b5b ldr r3, [r3, #52] ; 0x34 - 800aff8: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 800affc: 2b00 cmp r3, #0 - 800affe: d025 beq.n 800b04c - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_FLAG_IDMABTC); - 800b000: 687b ldr r3, [r7, #4] - 800b002: 681b ldr r3, [r3, #0] - 800b004: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 800b008: 639a str r2, [r3, #56] ; 0x38 - if (READ_BIT(hsd->Instance->IDMACTRL, SDMMC_IDMA_IDMABACT) == 0U) - 800b00a: 687b ldr r3, [r7, #4] - 800b00c: 681b ldr r3, [r3, #0] - 800b00e: 6d1b ldr r3, [r3, #80] ; 0x50 - 800b010: f003 0304 and.w r3, r3, #4 - 800b014: 2b00 cmp r3, #0 - 800b016: d10c bne.n 800b032 - if ((context & SD_CONTEXT_WRITE_MULTIPLE_BLOCK) != 0U) - 800b018: 68fb ldr r3, [r7, #12] - 800b01a: f003 0320 and.w r3, r3, #32 - 800b01e: 2b00 cmp r3, #0 - 800b020: d003 beq.n 800b02a - HAL_SDEx_Write_DMADoubleBuf1CpltCallback(hsd); - 800b022: 6878 ldr r0, [r7, #4] - 800b024: f001 f84a bl 800c0bc -} - 800b028: e010 b.n 800b04c - HAL_SDEx_Read_DMADoubleBuf1CpltCallback(hsd); - 800b02a: 6878 ldr r0, [r7, #4] - 800b02c: f001 f832 bl 800c094 -} - 800b030: e00c b.n 800b04c - if ((context & SD_CONTEXT_WRITE_MULTIPLE_BLOCK) != 0U) - 800b032: 68fb ldr r3, [r7, #12] - 800b034: f003 0320 and.w r3, r3, #32 - 800b038: 2b00 cmp r3, #0 - 800b03a: d003 beq.n 800b044 - HAL_SDEx_Write_DMADoubleBuf0CpltCallback(hsd); - 800b03c: 6878 ldr r0, [r7, #4] - 800b03e: f001 f833 bl 800c0a8 -} - 800b042: e003 b.n 800b04c - HAL_SDEx_Read_DMADoubleBuf0CpltCallback(hsd); - 800b044: 6878 ldr r0, [r7, #4] - 800b046: f001 f81b bl 800c080 -} - 800b04a: e7ff b.n 800b04c - 800b04c: bf00 nop - 800b04e: 3710 adds r7, #16 - 800b050: 46bd mov sp, r7 - 800b052: bd80 pop {r7, pc} - 800b054: 18000f3a .word 0x18000f3a - -0800b058 : - * @brief SD error callbacks - * @param hsd: Pointer SD handle - * @retval None - */ -__weak void HAL_SD_ErrorCallback(SD_HandleTypeDef *hsd) -{ - 800b058: b480 push {r7} - 800b05a: b083 sub sp, #12 - 800b05c: af00 add r7, sp, #0 - 800b05e: 6078 str r0, [r7, #4] - UNUSED(hsd); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_SD_ErrorCallback can be implemented in the user file - */ -} - 800b060: bf00 nop - 800b062: 370c adds r7, #12 - 800b064: 46bd mov sp, r7 - 800b066: f85d 7b04 ldr.w r7, [sp], #4 - 800b06a: 4770 bx lr - -0800b06c : - * @param pCSD: Pointer to a HAL_SD_CardCSDTypeDef structure that - * contains all CSD register parameters - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SD_GetCardCSD(SD_HandleTypeDef *hsd, HAL_SD_CardCSDTypeDef *pCSD) -{ - 800b06c: b480 push {r7} - 800b06e: b083 sub sp, #12 - 800b070: af00 add r7, sp, #0 - 800b072: 6078 str r0, [r7, #4] - 800b074: 6039 str r1, [r7, #0] - pCSD->CSDStruct = (uint8_t)((hsd->CSD[0] & 0xC0000000U) >> 30U); - 800b076: 687b ldr r3, [r7, #4] - 800b078: 6ddb ldr r3, [r3, #92] ; 0x5c - 800b07a: 0f9b lsrs r3, r3, #30 - 800b07c: b2da uxtb r2, r3 - 800b07e: 683b ldr r3, [r7, #0] - 800b080: 701a strb r2, [r3, #0] - - pCSD->SysSpecVersion = (uint8_t)((hsd->CSD[0] & 0x3C000000U) >> 26U); - 800b082: 687b ldr r3, [r7, #4] - 800b084: 6ddb ldr r3, [r3, #92] ; 0x5c - 800b086: 0e9b lsrs r3, r3, #26 - 800b088: b2db uxtb r3, r3 - 800b08a: f003 030f and.w r3, r3, #15 - 800b08e: b2da uxtb r2, r3 - 800b090: 683b ldr r3, [r7, #0] - 800b092: 705a strb r2, [r3, #1] - - pCSD->Reserved1 = (uint8_t)((hsd->CSD[0] & 0x03000000U) >> 24U); - 800b094: 687b ldr r3, [r7, #4] - 800b096: 6ddb ldr r3, [r3, #92] ; 0x5c - 800b098: 0e1b lsrs r3, r3, #24 - 800b09a: b2db uxtb r3, r3 - 800b09c: f003 0303 and.w r3, r3, #3 - 800b0a0: b2da uxtb r2, r3 - 800b0a2: 683b ldr r3, [r7, #0] - 800b0a4: 709a strb r2, [r3, #2] - - pCSD->TAAC = (uint8_t)((hsd->CSD[0] & 0x00FF0000U) >> 16U); - 800b0a6: 687b ldr r3, [r7, #4] - 800b0a8: 6ddb ldr r3, [r3, #92] ; 0x5c - 800b0aa: 0c1b lsrs r3, r3, #16 - 800b0ac: b2da uxtb r2, r3 - 800b0ae: 683b ldr r3, [r7, #0] - 800b0b0: 70da strb r2, [r3, #3] - - pCSD->NSAC = (uint8_t)((hsd->CSD[0] & 0x0000FF00U) >> 8U); - 800b0b2: 687b ldr r3, [r7, #4] - 800b0b4: 6ddb ldr r3, [r3, #92] ; 0x5c - 800b0b6: 0a1b lsrs r3, r3, #8 - 800b0b8: b2da uxtb r2, r3 - 800b0ba: 683b ldr r3, [r7, #0] - 800b0bc: 711a strb r2, [r3, #4] - - pCSD->MaxBusClkFrec = (uint8_t)(hsd->CSD[0] & 0x000000FFU); - 800b0be: 687b ldr r3, [r7, #4] - 800b0c0: 6ddb ldr r3, [r3, #92] ; 0x5c - 800b0c2: b2da uxtb r2, r3 - 800b0c4: 683b ldr r3, [r7, #0] - 800b0c6: 715a strb r2, [r3, #5] - - pCSD->CardComdClasses = (uint16_t)((hsd->CSD[1] & 0xFFF00000U) >> 20U); - 800b0c8: 687b ldr r3, [r7, #4] - 800b0ca: 6e1b ldr r3, [r3, #96] ; 0x60 - 800b0cc: 0d1b lsrs r3, r3, #20 - 800b0ce: b29a uxth r2, r3 - 800b0d0: 683b ldr r3, [r7, #0] - 800b0d2: 80da strh r2, [r3, #6] - - pCSD->RdBlockLen = (uint8_t)((hsd->CSD[1] & 0x000F0000U) >> 16U); - 800b0d4: 687b ldr r3, [r7, #4] - 800b0d6: 6e1b ldr r3, [r3, #96] ; 0x60 - 800b0d8: 0c1b lsrs r3, r3, #16 - 800b0da: b2db uxtb r3, r3 - 800b0dc: f003 030f and.w r3, r3, #15 - 800b0e0: b2da uxtb r2, r3 - 800b0e2: 683b ldr r3, [r7, #0] - 800b0e4: 721a strb r2, [r3, #8] - - pCSD->PartBlockRead = (uint8_t)((hsd->CSD[1] & 0x00008000U) >> 15U); - 800b0e6: 687b ldr r3, [r7, #4] - 800b0e8: 6e1b ldr r3, [r3, #96] ; 0x60 - 800b0ea: 0bdb lsrs r3, r3, #15 - 800b0ec: b2db uxtb r3, r3 - 800b0ee: f003 0301 and.w r3, r3, #1 - 800b0f2: b2da uxtb r2, r3 - 800b0f4: 683b ldr r3, [r7, #0] - 800b0f6: 725a strb r2, [r3, #9] - - pCSD->WrBlockMisalign = (uint8_t)((hsd->CSD[1] & 0x00004000U) >> 14U); - 800b0f8: 687b ldr r3, [r7, #4] - 800b0fa: 6e1b ldr r3, [r3, #96] ; 0x60 - 800b0fc: 0b9b lsrs r3, r3, #14 - 800b0fe: b2db uxtb r3, r3 - 800b100: f003 0301 and.w r3, r3, #1 - 800b104: b2da uxtb r2, r3 - 800b106: 683b ldr r3, [r7, #0] - 800b108: 729a strb r2, [r3, #10] - - pCSD->RdBlockMisalign = (uint8_t)((hsd->CSD[1] & 0x00002000U) >> 13U); - 800b10a: 687b ldr r3, [r7, #4] - 800b10c: 6e1b ldr r3, [r3, #96] ; 0x60 - 800b10e: 0b5b lsrs r3, r3, #13 - 800b110: b2db uxtb r3, r3 - 800b112: f003 0301 and.w r3, r3, #1 - 800b116: b2da uxtb r2, r3 - 800b118: 683b ldr r3, [r7, #0] - 800b11a: 72da strb r2, [r3, #11] - - pCSD->DSRImpl = (uint8_t)((hsd->CSD[1] & 0x00001000U) >> 12U); - 800b11c: 687b ldr r3, [r7, #4] - 800b11e: 6e1b ldr r3, [r3, #96] ; 0x60 - 800b120: 0b1b lsrs r3, r3, #12 - 800b122: b2db uxtb r3, r3 - 800b124: f003 0301 and.w r3, r3, #1 - 800b128: b2da uxtb r2, r3 - 800b12a: 683b ldr r3, [r7, #0] - 800b12c: 731a strb r2, [r3, #12] - - pCSD->Reserved2 = 0U; /*!< Reserved */ - 800b12e: 683b ldr r3, [r7, #0] - 800b130: 2200 movs r2, #0 - 800b132: 735a strb r2, [r3, #13] - - if (hsd->SdCard.CardType == CARD_SDSC) - 800b134: 687b ldr r3, [r7, #4] - 800b136: 6b9b ldr r3, [r3, #56] ; 0x38 - 800b138: 2b00 cmp r3, #0 - 800b13a: d163 bne.n 800b204 - { - pCSD->DeviceSize = (((hsd->CSD[1] & 0x000003FFU) << 2U) | ((hsd->CSD[2] & 0xC0000000U) >> 30U)); - 800b13c: 687b ldr r3, [r7, #4] - 800b13e: 6e1b ldr r3, [r3, #96] ; 0x60 - 800b140: 009a lsls r2, r3, #2 - 800b142: f640 73fc movw r3, #4092 ; 0xffc - 800b146: 4013 ands r3, r2 - 800b148: 687a ldr r2, [r7, #4] - 800b14a: 6e52 ldr r2, [r2, #100] ; 0x64 - 800b14c: 0f92 lsrs r2, r2, #30 - 800b14e: 431a orrs r2, r3 - 800b150: 683b ldr r3, [r7, #0] - 800b152: 611a str r2, [r3, #16] - - pCSD->MaxRdCurrentVDDMin = (uint8_t)((hsd->CSD[2] & 0x38000000U) >> 27U); - 800b154: 687b ldr r3, [r7, #4] - 800b156: 6e5b ldr r3, [r3, #100] ; 0x64 - 800b158: 0edb lsrs r3, r3, #27 - 800b15a: b2db uxtb r3, r3 - 800b15c: f003 0307 and.w r3, r3, #7 - 800b160: b2da uxtb r2, r3 - 800b162: 683b ldr r3, [r7, #0] - 800b164: 751a strb r2, [r3, #20] - - pCSD->MaxRdCurrentVDDMax = (uint8_t)((hsd->CSD[2] & 0x07000000U) >> 24U); - 800b166: 687b ldr r3, [r7, #4] - 800b168: 6e5b ldr r3, [r3, #100] ; 0x64 - 800b16a: 0e1b lsrs r3, r3, #24 - 800b16c: b2db uxtb r3, r3 - 800b16e: f003 0307 and.w r3, r3, #7 - 800b172: b2da uxtb r2, r3 - 800b174: 683b ldr r3, [r7, #0] - 800b176: 755a strb r2, [r3, #21] - - pCSD->MaxWrCurrentVDDMin = (uint8_t)((hsd->CSD[2] & 0x00E00000U) >> 21U); - 800b178: 687b ldr r3, [r7, #4] - 800b17a: 6e5b ldr r3, [r3, #100] ; 0x64 - 800b17c: 0d5b lsrs r3, r3, #21 - 800b17e: b2db uxtb r3, r3 - 800b180: f003 0307 and.w r3, r3, #7 - 800b184: b2da uxtb r2, r3 - 800b186: 683b ldr r3, [r7, #0] - 800b188: 759a strb r2, [r3, #22] - - pCSD->MaxWrCurrentVDDMax = (uint8_t)((hsd->CSD[2] & 0x001C0000U) >> 18U); - 800b18a: 687b ldr r3, [r7, #4] - 800b18c: 6e5b ldr r3, [r3, #100] ; 0x64 - 800b18e: 0c9b lsrs r3, r3, #18 - 800b190: b2db uxtb r3, r3 - 800b192: f003 0307 and.w r3, r3, #7 - 800b196: b2da uxtb r2, r3 - 800b198: 683b ldr r3, [r7, #0] - 800b19a: 75da strb r2, [r3, #23] - - pCSD->DeviceSizeMul = (uint8_t)((hsd->CSD[2] & 0x00038000U) >> 15U); - 800b19c: 687b ldr r3, [r7, #4] - 800b19e: 6e5b ldr r3, [r3, #100] ; 0x64 - 800b1a0: 0bdb lsrs r3, r3, #15 - 800b1a2: b2db uxtb r3, r3 - 800b1a4: f003 0307 and.w r3, r3, #7 - 800b1a8: b2da uxtb r2, r3 - 800b1aa: 683b ldr r3, [r7, #0] - 800b1ac: 761a strb r2, [r3, #24] - - hsd->SdCard.BlockNbr = (pCSD->DeviceSize + 1U) ; - 800b1ae: 683b ldr r3, [r7, #0] - 800b1b0: 691b ldr r3, [r3, #16] - 800b1b2: 1c5a adds r2, r3, #1 - 800b1b4: 687b ldr r3, [r7, #4] - 800b1b6: 649a str r2, [r3, #72] ; 0x48 - hsd->SdCard.BlockNbr *= (1UL << ((pCSD->DeviceSizeMul & 0x07U) + 2U)); - 800b1b8: 683b ldr r3, [r7, #0] - 800b1ba: 7e1b ldrb r3, [r3, #24] - 800b1bc: b2db uxtb r3, r3 - 800b1be: f003 0307 and.w r3, r3, #7 - 800b1c2: 3302 adds r3, #2 - 800b1c4: 2201 movs r2, #1 - 800b1c6: fa02 f303 lsl.w r3, r2, r3 - 800b1ca: 687a ldr r2, [r7, #4] - 800b1cc: 6c92 ldr r2, [r2, #72] ; 0x48 - 800b1ce: fb03 f202 mul.w r2, r3, r2 - 800b1d2: 687b ldr r3, [r7, #4] - 800b1d4: 649a str r2, [r3, #72] ; 0x48 - hsd->SdCard.BlockSize = (1UL << (pCSD->RdBlockLen & 0x0FU)); - 800b1d6: 683b ldr r3, [r7, #0] - 800b1d8: 7a1b ldrb r3, [r3, #8] - 800b1da: b2db uxtb r3, r3 - 800b1dc: f003 030f and.w r3, r3, #15 - 800b1e0: 2201 movs r2, #1 - 800b1e2: 409a lsls r2, r3 - 800b1e4: 687b ldr r3, [r7, #4] - 800b1e6: 64da str r2, [r3, #76] ; 0x4c - - hsd->SdCard.LogBlockNbr = (hsd->SdCard.BlockNbr) * ((hsd->SdCard.BlockSize) / 512U); - 800b1e8: 687b ldr r3, [r7, #4] - 800b1ea: 6c9b ldr r3, [r3, #72] ; 0x48 - 800b1ec: 687a ldr r2, [r7, #4] - 800b1ee: 6cd2 ldr r2, [r2, #76] ; 0x4c - 800b1f0: 0a52 lsrs r2, r2, #9 - 800b1f2: fb03 f202 mul.w r2, r3, r2 - 800b1f6: 687b ldr r3, [r7, #4] - 800b1f8: 651a str r2, [r3, #80] ; 0x50 - hsd->SdCard.LogBlockSize = 512U; - 800b1fa: 687b ldr r3, [r7, #4] - 800b1fc: f44f 7200 mov.w r2, #512 ; 0x200 - 800b200: 655a str r2, [r3, #84] ; 0x54 - 800b202: e031 b.n 800b268 - } - else if (hsd->SdCard.CardType == CARD_SDHC_SDXC) - 800b204: 687b ldr r3, [r7, #4] - 800b206: 6b9b ldr r3, [r3, #56] ; 0x38 - 800b208: 2b01 cmp r3, #1 - 800b20a: d11d bne.n 800b248 - { - /* Byte 7 */ - pCSD->DeviceSize = (((hsd->CSD[1] & 0x0000003FU) << 16U) | ((hsd->CSD[2] & 0xFFFF0000U) >> 16U)); - 800b20c: 687b ldr r3, [r7, #4] - 800b20e: 6e1b ldr r3, [r3, #96] ; 0x60 - 800b210: 041b lsls r3, r3, #16 - 800b212: f403 127c and.w r2, r3, #4128768 ; 0x3f0000 - 800b216: 687b ldr r3, [r7, #4] - 800b218: 6e5b ldr r3, [r3, #100] ; 0x64 - 800b21a: 0c1b lsrs r3, r3, #16 - 800b21c: 431a orrs r2, r3 - 800b21e: 683b ldr r3, [r7, #0] - 800b220: 611a str r2, [r3, #16] - - hsd->SdCard.BlockNbr = ((pCSD->DeviceSize + 1U) * 1024U); - 800b222: 683b ldr r3, [r7, #0] - 800b224: 691b ldr r3, [r3, #16] - 800b226: 3301 adds r3, #1 - 800b228: 029a lsls r2, r3, #10 - 800b22a: 687b ldr r3, [r7, #4] - 800b22c: 649a str r2, [r3, #72] ; 0x48 - hsd->SdCard.LogBlockNbr = hsd->SdCard.BlockNbr; - 800b22e: 687b ldr r3, [r7, #4] - 800b230: 6c9a ldr r2, [r3, #72] ; 0x48 - 800b232: 687b ldr r3, [r7, #4] - 800b234: 651a str r2, [r3, #80] ; 0x50 - hsd->SdCard.BlockSize = 512U; - 800b236: 687b ldr r3, [r7, #4] - 800b238: f44f 7200 mov.w r2, #512 ; 0x200 - 800b23c: 64da str r2, [r3, #76] ; 0x4c - hsd->SdCard.LogBlockSize = hsd->SdCard.BlockSize; - 800b23e: 687b ldr r3, [r7, #4] - 800b240: 6cda ldr r2, [r3, #76] ; 0x4c - 800b242: 687b ldr r3, [r7, #4] - 800b244: 655a str r2, [r3, #84] ; 0x54 - 800b246: e00f b.n 800b268 - } - else - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - 800b248: 687b ldr r3, [r7, #4] - 800b24a: 681b ldr r3, [r3, #0] - 800b24c: 4a58 ldr r2, [pc, #352] ; (800b3b0 ) - 800b24e: 639a str r2, [r3, #56] ; 0x38 - hsd->ErrorCode |= HAL_SD_ERROR_UNSUPPORTED_FEATURE; - 800b250: 687b ldr r3, [r7, #4] - 800b252: 6b5b ldr r3, [r3, #52] ; 0x34 - 800b254: f043 5280 orr.w r2, r3, #268435456 ; 0x10000000 - 800b258: 687b ldr r3, [r7, #4] - 800b25a: 635a str r2, [r3, #52] ; 0x34 - hsd->State = HAL_SD_STATE_READY; - 800b25c: 687b ldr r3, [r7, #4] - 800b25e: 2201 movs r2, #1 - 800b260: f883 2030 strb.w r2, [r3, #48] ; 0x30 - return HAL_ERROR; - 800b264: 2301 movs r3, #1 - 800b266: e09d b.n 800b3a4 - } - - pCSD->EraseGrSize = (uint8_t)((hsd->CSD[2] & 0x00004000U) >> 14U); - 800b268: 687b ldr r3, [r7, #4] - 800b26a: 6e5b ldr r3, [r3, #100] ; 0x64 - 800b26c: 0b9b lsrs r3, r3, #14 - 800b26e: b2db uxtb r3, r3 - 800b270: f003 0301 and.w r3, r3, #1 - 800b274: b2da uxtb r2, r3 - 800b276: 683b ldr r3, [r7, #0] - 800b278: 765a strb r2, [r3, #25] - - pCSD->EraseGrMul = (uint8_t)((hsd->CSD[2] & 0x00003F80U) >> 7U); - 800b27a: 687b ldr r3, [r7, #4] - 800b27c: 6e5b ldr r3, [r3, #100] ; 0x64 - 800b27e: 09db lsrs r3, r3, #7 - 800b280: b2db uxtb r3, r3 - 800b282: f003 037f and.w r3, r3, #127 ; 0x7f - 800b286: b2da uxtb r2, r3 - 800b288: 683b ldr r3, [r7, #0] - 800b28a: 769a strb r2, [r3, #26] - - pCSD->WrProtectGrSize = (uint8_t)(hsd->CSD[2] & 0x0000007FU); - 800b28c: 687b ldr r3, [r7, #4] - 800b28e: 6e5b ldr r3, [r3, #100] ; 0x64 - 800b290: b2db uxtb r3, r3 - 800b292: f003 037f and.w r3, r3, #127 ; 0x7f - 800b296: b2da uxtb r2, r3 - 800b298: 683b ldr r3, [r7, #0] - 800b29a: 76da strb r2, [r3, #27] - - pCSD->WrProtectGrEnable = (uint8_t)((hsd->CSD[3] & 0x80000000U) >> 31U); - 800b29c: 687b ldr r3, [r7, #4] - 800b29e: 6e9b ldr r3, [r3, #104] ; 0x68 - 800b2a0: 0fdb lsrs r3, r3, #31 - 800b2a2: b2da uxtb r2, r3 - 800b2a4: 683b ldr r3, [r7, #0] - 800b2a6: 771a strb r2, [r3, #28] - - pCSD->ManDeflECC = (uint8_t)((hsd->CSD[3] & 0x60000000U) >> 29U); - 800b2a8: 687b ldr r3, [r7, #4] - 800b2aa: 6e9b ldr r3, [r3, #104] ; 0x68 - 800b2ac: 0f5b lsrs r3, r3, #29 - 800b2ae: b2db uxtb r3, r3 - 800b2b0: f003 0303 and.w r3, r3, #3 - 800b2b4: b2da uxtb r2, r3 - 800b2b6: 683b ldr r3, [r7, #0] - 800b2b8: 775a strb r2, [r3, #29] - - pCSD->WrSpeedFact = (uint8_t)((hsd->CSD[3] & 0x1C000000U) >> 26U); - 800b2ba: 687b ldr r3, [r7, #4] - 800b2bc: 6e9b ldr r3, [r3, #104] ; 0x68 - 800b2be: 0e9b lsrs r3, r3, #26 - 800b2c0: b2db uxtb r3, r3 - 800b2c2: f003 0307 and.w r3, r3, #7 - 800b2c6: b2da uxtb r2, r3 - 800b2c8: 683b ldr r3, [r7, #0] - 800b2ca: 779a strb r2, [r3, #30] - - pCSD->MaxWrBlockLen = (uint8_t)((hsd->CSD[3] & 0x03C00000U) >> 22U); - 800b2cc: 687b ldr r3, [r7, #4] - 800b2ce: 6e9b ldr r3, [r3, #104] ; 0x68 - 800b2d0: 0d9b lsrs r3, r3, #22 - 800b2d2: b2db uxtb r3, r3 - 800b2d4: f003 030f and.w r3, r3, #15 - 800b2d8: b2da uxtb r2, r3 - 800b2da: 683b ldr r3, [r7, #0] - 800b2dc: 77da strb r2, [r3, #31] - - pCSD->WriteBlockPaPartial = (uint8_t)((hsd->CSD[3] & 0x00200000U) >> 21U); - 800b2de: 687b ldr r3, [r7, #4] - 800b2e0: 6e9b ldr r3, [r3, #104] ; 0x68 - 800b2e2: 0d5b lsrs r3, r3, #21 - 800b2e4: b2db uxtb r3, r3 - 800b2e6: f003 0301 and.w r3, r3, #1 - 800b2ea: b2da uxtb r2, r3 - 800b2ec: 683b ldr r3, [r7, #0] - 800b2ee: f883 2020 strb.w r2, [r3, #32] - - pCSD->Reserved3 = 0; - 800b2f2: 683b ldr r3, [r7, #0] - 800b2f4: 2200 movs r2, #0 - 800b2f6: f883 2021 strb.w r2, [r3, #33] ; 0x21 - - pCSD->ContentProtectAppli = (uint8_t)((hsd->CSD[3] & 0x00010000U) >> 16U); - 800b2fa: 687b ldr r3, [r7, #4] - 800b2fc: 6e9b ldr r3, [r3, #104] ; 0x68 - 800b2fe: 0c1b lsrs r3, r3, #16 - 800b300: b2db uxtb r3, r3 - 800b302: f003 0301 and.w r3, r3, #1 - 800b306: b2da uxtb r2, r3 - 800b308: 683b ldr r3, [r7, #0] - 800b30a: f883 2022 strb.w r2, [r3, #34] ; 0x22 - - pCSD->FileFormatGroup = (uint8_t)((hsd->CSD[3] & 0x00008000U) >> 15U); - 800b30e: 687b ldr r3, [r7, #4] - 800b310: 6e9b ldr r3, [r3, #104] ; 0x68 - 800b312: 0bdb lsrs r3, r3, #15 - 800b314: b2db uxtb r3, r3 - 800b316: f003 0301 and.w r3, r3, #1 - 800b31a: b2da uxtb r2, r3 - 800b31c: 683b ldr r3, [r7, #0] - 800b31e: f883 2023 strb.w r2, [r3, #35] ; 0x23 - - pCSD->CopyFlag = (uint8_t)((hsd->CSD[3] & 0x00004000U) >> 14U); - 800b322: 687b ldr r3, [r7, #4] - 800b324: 6e9b ldr r3, [r3, #104] ; 0x68 - 800b326: 0b9b lsrs r3, r3, #14 - 800b328: b2db uxtb r3, r3 - 800b32a: f003 0301 and.w r3, r3, #1 - 800b32e: b2da uxtb r2, r3 - 800b330: 683b ldr r3, [r7, #0] - 800b332: f883 2024 strb.w r2, [r3, #36] ; 0x24 - - pCSD->PermWrProtect = (uint8_t)((hsd->CSD[3] & 0x00002000U) >> 13U); - 800b336: 687b ldr r3, [r7, #4] - 800b338: 6e9b ldr r3, [r3, #104] ; 0x68 - 800b33a: 0b5b lsrs r3, r3, #13 - 800b33c: b2db uxtb r3, r3 - 800b33e: f003 0301 and.w r3, r3, #1 - 800b342: b2da uxtb r2, r3 - 800b344: 683b ldr r3, [r7, #0] - 800b346: f883 2025 strb.w r2, [r3, #37] ; 0x25 - - pCSD->TempWrProtect = (uint8_t)((hsd->CSD[3] & 0x00001000U) >> 12U); - 800b34a: 687b ldr r3, [r7, #4] - 800b34c: 6e9b ldr r3, [r3, #104] ; 0x68 - 800b34e: 0b1b lsrs r3, r3, #12 - 800b350: b2db uxtb r3, r3 - 800b352: f003 0301 and.w r3, r3, #1 - 800b356: b2da uxtb r2, r3 - 800b358: 683b ldr r3, [r7, #0] - 800b35a: f883 2026 strb.w r2, [r3, #38] ; 0x26 - - pCSD->FileFormat = (uint8_t)((hsd->CSD[3] & 0x00000C00U) >> 10U); - 800b35e: 687b ldr r3, [r7, #4] - 800b360: 6e9b ldr r3, [r3, #104] ; 0x68 - 800b362: 0a9b lsrs r3, r3, #10 - 800b364: b2db uxtb r3, r3 - 800b366: f003 0303 and.w r3, r3, #3 - 800b36a: b2da uxtb r2, r3 - 800b36c: 683b ldr r3, [r7, #0] - 800b36e: f883 2027 strb.w r2, [r3, #39] ; 0x27 - - pCSD->ECC = (uint8_t)((hsd->CSD[3] & 0x00000300U) >> 8U); - 800b372: 687b ldr r3, [r7, #4] - 800b374: 6e9b ldr r3, [r3, #104] ; 0x68 - 800b376: 0a1b lsrs r3, r3, #8 - 800b378: b2db uxtb r3, r3 - 800b37a: f003 0303 and.w r3, r3, #3 - 800b37e: b2da uxtb r2, r3 - 800b380: 683b ldr r3, [r7, #0] - 800b382: f883 2028 strb.w r2, [r3, #40] ; 0x28 - - pCSD->CSD_CRC = (uint8_t)((hsd->CSD[3] & 0x000000FEU) >> 1U); - 800b386: 687b ldr r3, [r7, #4] - 800b388: 6e9b ldr r3, [r3, #104] ; 0x68 - 800b38a: 085b lsrs r3, r3, #1 - 800b38c: b2db uxtb r3, r3 - 800b38e: f003 037f and.w r3, r3, #127 ; 0x7f - 800b392: b2da uxtb r2, r3 - 800b394: 683b ldr r3, [r7, #0] - 800b396: f883 2029 strb.w r2, [r3, #41] ; 0x29 - - pCSD->Reserved4 = 1; - 800b39a: 683b ldr r3, [r7, #0] - 800b39c: 2201 movs r2, #1 - 800b39e: f883 202a strb.w r2, [r3, #42] ; 0x2a - - return HAL_OK; - 800b3a2: 2300 movs r3, #0 -} - 800b3a4: 4618 mov r0, r3 - 800b3a6: 370c adds r7, #12 - 800b3a8: 46bd mov sp, r7 - 800b3aa: f85d 7b04 ldr.w r7, [sp], #4 - 800b3ae: 4770 bx lr - 800b3b0: 1fe00fff .word 0x1fe00fff - -0800b3b4 : - * @param pStatus: Pointer to the HAL_SD_CardStatusTypeDef structure that - * will contain the SD card status information - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SD_GetCardStatus(SD_HandleTypeDef *hsd, HAL_SD_CardStatusTypeDef *pStatus) -{ - 800b3b4: b580 push {r7, lr} - 800b3b6: b094 sub sp, #80 ; 0x50 - 800b3b8: af00 add r7, sp, #0 - 800b3ba: 6078 str r0, [r7, #4] - 800b3bc: 6039 str r1, [r7, #0] - uint32_t sd_status[16]; - uint32_t errorstate; - HAL_StatusTypeDef status = HAL_OK; - 800b3be: 2300 movs r3, #0 - 800b3c0: f887 304f strb.w r3, [r7, #79] ; 0x4f - - if (hsd->State == HAL_SD_STATE_BUSY) - 800b3c4: 687b ldr r3, [r7, #4] - 800b3c6: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 - 800b3ca: b2db uxtb r3, r3 - 800b3cc: 2b03 cmp r3, #3 - 800b3ce: d101 bne.n 800b3d4 - { - return HAL_ERROR; - 800b3d0: 2301 movs r3, #1 - 800b3d2: e0a7 b.n 800b524 - } - - errorstate = SD_SendSDStatus(hsd, sd_status); - 800b3d4: f107 0308 add.w r3, r7, #8 - 800b3d8: 4619 mov r1, r3 - 800b3da: 6878 ldr r0, [r7, #4] - 800b3dc: f000 fb62 bl 800baa4 - 800b3e0: 64b8 str r0, [r7, #72] ; 0x48 - if (errorstate != HAL_SD_ERROR_NONE) - 800b3e2: 6cbb ldr r3, [r7, #72] ; 0x48 - 800b3e4: 2b00 cmp r3, #0 - 800b3e6: d011 beq.n 800b40c - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - 800b3e8: 687b ldr r3, [r7, #4] - 800b3ea: 681b ldr r3, [r3, #0] - 800b3ec: 4a4f ldr r2, [pc, #316] ; (800b52c ) - 800b3ee: 639a str r2, [r3, #56] ; 0x38 - hsd->ErrorCode |= errorstate; - 800b3f0: 687b ldr r3, [r7, #4] - 800b3f2: 6b5a ldr r2, [r3, #52] ; 0x34 - 800b3f4: 6cbb ldr r3, [r7, #72] ; 0x48 - 800b3f6: 431a orrs r2, r3 - 800b3f8: 687b ldr r3, [r7, #4] - 800b3fa: 635a str r2, [r3, #52] ; 0x34 - hsd->State = HAL_SD_STATE_READY; - 800b3fc: 687b ldr r3, [r7, #4] - 800b3fe: 2201 movs r2, #1 - 800b400: f883 2030 strb.w r2, [r3, #48] ; 0x30 - status = HAL_ERROR; - 800b404: 2301 movs r3, #1 - 800b406: f887 304f strb.w r3, [r7, #79] ; 0x4f - 800b40a: e070 b.n 800b4ee - } - else - { - pStatus->DataBusWidth = (uint8_t)((sd_status[0] & 0xC0U) >> 6U); - 800b40c: 68bb ldr r3, [r7, #8] - 800b40e: 099b lsrs r3, r3, #6 - 800b410: b2db uxtb r3, r3 - 800b412: f003 0303 and.w r3, r3, #3 - 800b416: b2da uxtb r2, r3 - 800b418: 683b ldr r3, [r7, #0] - 800b41a: 701a strb r2, [r3, #0] - - pStatus->SecuredMode = (uint8_t)((sd_status[0] & 0x20U) >> 5U); - 800b41c: 68bb ldr r3, [r7, #8] - 800b41e: 095b lsrs r3, r3, #5 - 800b420: b2db uxtb r3, r3 - 800b422: f003 0301 and.w r3, r3, #1 - 800b426: b2da uxtb r2, r3 - 800b428: 683b ldr r3, [r7, #0] - 800b42a: 705a strb r2, [r3, #1] - - pStatus->CardType = (uint16_t)(((sd_status[0] & 0x00FF0000U) >> 8U) | ((sd_status[0] & 0xFF000000U) >> 24U)); - 800b42c: 68bb ldr r3, [r7, #8] - 800b42e: 0a1b lsrs r3, r3, #8 - 800b430: b29b uxth r3, r3 - 800b432: f023 03ff bic.w r3, r3, #255 ; 0xff - 800b436: b29a uxth r2, r3 - 800b438: 68bb ldr r3, [r7, #8] - 800b43a: 0e1b lsrs r3, r3, #24 - 800b43c: b29b uxth r3, r3 - 800b43e: 4313 orrs r3, r2 - 800b440: b29a uxth r2, r3 - 800b442: 683b ldr r3, [r7, #0] - 800b444: 805a strh r2, [r3, #2] - - pStatus->ProtectedAreaSize = (((sd_status[1] & 0xFFU) << 24U) | ((sd_status[1] & 0xFF00U) << 8U) | - 800b446: 68fb ldr r3, [r7, #12] - 800b448: 061a lsls r2, r3, #24 - 800b44a: 68fb ldr r3, [r7, #12] - 800b44c: 021b lsls r3, r3, #8 - 800b44e: f403 037f and.w r3, r3, #16711680 ; 0xff0000 - 800b452: 431a orrs r2, r3 - ((sd_status[1] & 0xFF0000U) >> 8U) | ((sd_status[1] & 0xFF000000U) >> 24U)); - 800b454: 68fb ldr r3, [r7, #12] - 800b456: 0a1b lsrs r3, r3, #8 - 800b458: f403 437f and.w r3, r3, #65280 ; 0xff00 - pStatus->ProtectedAreaSize = (((sd_status[1] & 0xFFU) << 24U) | ((sd_status[1] & 0xFF00U) << 8U) | - 800b45c: 431a orrs r2, r3 - ((sd_status[1] & 0xFF0000U) >> 8U) | ((sd_status[1] & 0xFF000000U) >> 24U)); - 800b45e: 68fb ldr r3, [r7, #12] - 800b460: 0e1b lsrs r3, r3, #24 - 800b462: 431a orrs r2, r3 - pStatus->ProtectedAreaSize = (((sd_status[1] & 0xFFU) << 24U) | ((sd_status[1] & 0xFF00U) << 8U) | - 800b464: 683b ldr r3, [r7, #0] - 800b466: 605a str r2, [r3, #4] - - pStatus->SpeedClass = (uint8_t)(sd_status[2] & 0xFFU); - 800b468: 693b ldr r3, [r7, #16] - 800b46a: b2da uxtb r2, r3 - 800b46c: 683b ldr r3, [r7, #0] - 800b46e: 721a strb r2, [r3, #8] - - pStatus->PerformanceMove = (uint8_t)((sd_status[2] & 0xFF00U) >> 8U); - 800b470: 693b ldr r3, [r7, #16] - 800b472: 0a1b lsrs r3, r3, #8 - 800b474: b2da uxtb r2, r3 - 800b476: 683b ldr r3, [r7, #0] - 800b478: 725a strb r2, [r3, #9] - - pStatus->AllocationUnitSize = (uint8_t)((sd_status[2] & 0xF00000U) >> 20U); - 800b47a: 693b ldr r3, [r7, #16] - 800b47c: 0d1b lsrs r3, r3, #20 - 800b47e: b2db uxtb r3, r3 - 800b480: f003 030f and.w r3, r3, #15 - 800b484: b2da uxtb r2, r3 - 800b486: 683b ldr r3, [r7, #0] - 800b488: 729a strb r2, [r3, #10] - - pStatus->EraseSize = (uint16_t)(((sd_status[2] & 0xFF000000U) >> 16U) | (sd_status[3] & 0xFFU)); - 800b48a: 693b ldr r3, [r7, #16] - 800b48c: 0c1b lsrs r3, r3, #16 - 800b48e: b29b uxth r3, r3 - 800b490: f023 03ff bic.w r3, r3, #255 ; 0xff - 800b494: b29a uxth r2, r3 - 800b496: 697b ldr r3, [r7, #20] - 800b498: b29b uxth r3, r3 - 800b49a: b2db uxtb r3, r3 - 800b49c: b29b uxth r3, r3 - 800b49e: 4313 orrs r3, r2 - 800b4a0: b29a uxth r2, r3 - 800b4a2: 683b ldr r3, [r7, #0] - 800b4a4: 819a strh r2, [r3, #12] - - pStatus->EraseTimeout = (uint8_t)((sd_status[3] & 0xFC00U) >> 10U); - 800b4a6: 697b ldr r3, [r7, #20] - 800b4a8: 0a9b lsrs r3, r3, #10 - 800b4aa: b2db uxtb r3, r3 - 800b4ac: f003 033f and.w r3, r3, #63 ; 0x3f - 800b4b0: b2da uxtb r2, r3 - 800b4b2: 683b ldr r3, [r7, #0] - 800b4b4: 739a strb r2, [r3, #14] - - pStatus->EraseOffset = (uint8_t)((sd_status[3] & 0x0300U) >> 8U); - 800b4b6: 697b ldr r3, [r7, #20] - 800b4b8: 0a1b lsrs r3, r3, #8 - 800b4ba: b2db uxtb r3, r3 - 800b4bc: f003 0303 and.w r3, r3, #3 - 800b4c0: b2da uxtb r2, r3 - 800b4c2: 683b ldr r3, [r7, #0] - 800b4c4: 73da strb r2, [r3, #15] - - pStatus->UhsSpeedGrade = (uint8_t)((sd_status[3] & 0x00F0U) >> 4U); - 800b4c6: 697b ldr r3, [r7, #20] - 800b4c8: 091b lsrs r3, r3, #4 - 800b4ca: b2db uxtb r3, r3 - 800b4cc: f003 030f and.w r3, r3, #15 - 800b4d0: b2da uxtb r2, r3 - 800b4d2: 683b ldr r3, [r7, #0] - 800b4d4: 741a strb r2, [r3, #16] - pStatus->UhsAllocationUnitSize = (uint8_t)(sd_status[3] & 0x000FU) ; - 800b4d6: 697b ldr r3, [r7, #20] - 800b4d8: b2db uxtb r3, r3 - 800b4da: f003 030f and.w r3, r3, #15 - 800b4de: b2da uxtb r2, r3 - 800b4e0: 683b ldr r3, [r7, #0] - 800b4e2: 745a strb r2, [r3, #17] - pStatus->VideoSpeedClass = (uint8_t)((sd_status[4] & 0xFF000000U) >> 24U); - 800b4e4: 69bb ldr r3, [r7, #24] - 800b4e6: 0e1b lsrs r3, r3, #24 - 800b4e8: b2da uxtb r2, r3 - 800b4ea: 683b ldr r3, [r7, #0] - 800b4ec: 749a strb r2, [r3, #18] - } - - /* Set Block Size for Card */ - errorstate = SDMMC_CmdBlockLength(hsd->Instance, BLOCKSIZE); - 800b4ee: 687b ldr r3, [r7, #4] - 800b4f0: 681b ldr r3, [r3, #0] - 800b4f2: f44f 7100 mov.w r1, #512 ; 0x200 - 800b4f6: 4618 mov r0, r3 - 800b4f8: f002 fdbe bl 800e078 - 800b4fc: 64b8 str r0, [r7, #72] ; 0x48 - if (errorstate != HAL_SD_ERROR_NONE) - 800b4fe: 6cbb ldr r3, [r7, #72] ; 0x48 - 800b500: 2b00 cmp r3, #0 - 800b502: d00d beq.n 800b520 - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - 800b504: 687b ldr r3, [r7, #4] - 800b506: 681b ldr r3, [r3, #0] - 800b508: 4a08 ldr r2, [pc, #32] ; (800b52c ) - 800b50a: 639a str r2, [r3, #56] ; 0x38 - hsd->ErrorCode = errorstate; - 800b50c: 687b ldr r3, [r7, #4] - 800b50e: 6cba ldr r2, [r7, #72] ; 0x48 - 800b510: 635a str r2, [r3, #52] ; 0x34 - hsd->State = HAL_SD_STATE_READY; - 800b512: 687b ldr r3, [r7, #4] - 800b514: 2201 movs r2, #1 - 800b516: f883 2030 strb.w r2, [r3, #48] ; 0x30 - status = HAL_ERROR; - 800b51a: 2301 movs r3, #1 - 800b51c: f887 304f strb.w r3, [r7, #79] ; 0x4f - } - - - return status; - 800b520: f897 304f ldrb.w r3, [r7, #79] ; 0x4f -} - 800b524: 4618 mov r0, r3 - 800b526: 3750 adds r7, #80 ; 0x50 - 800b528: 46bd mov sp, r7 - 800b52a: bd80 pop {r7, pc} - 800b52c: 1fe00fff .word 0x1fe00fff - -0800b530 : - * @param pCardInfo: Pointer to the HAL_SD_CardInfoTypeDef structure that - * will contain the SD card status information - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SD_GetCardInfo(SD_HandleTypeDef *hsd, HAL_SD_CardInfoTypeDef *pCardInfo) -{ - 800b530: b480 push {r7} - 800b532: b083 sub sp, #12 - 800b534: af00 add r7, sp, #0 - 800b536: 6078 str r0, [r7, #4] - 800b538: 6039 str r1, [r7, #0] - pCardInfo->CardType = (uint32_t)(hsd->SdCard.CardType); - 800b53a: 687b ldr r3, [r7, #4] - 800b53c: 6b9a ldr r2, [r3, #56] ; 0x38 - 800b53e: 683b ldr r3, [r7, #0] - 800b540: 601a str r2, [r3, #0] - pCardInfo->CardVersion = (uint32_t)(hsd->SdCard.CardVersion); - 800b542: 687b ldr r3, [r7, #4] - 800b544: 6bda ldr r2, [r3, #60] ; 0x3c - 800b546: 683b ldr r3, [r7, #0] - 800b548: 605a str r2, [r3, #4] - pCardInfo->Class = (uint32_t)(hsd->SdCard.Class); - 800b54a: 687b ldr r3, [r7, #4] - 800b54c: 6c1a ldr r2, [r3, #64] ; 0x40 - 800b54e: 683b ldr r3, [r7, #0] - 800b550: 609a str r2, [r3, #8] - pCardInfo->RelCardAdd = (uint32_t)(hsd->SdCard.RelCardAdd); - 800b552: 687b ldr r3, [r7, #4] - 800b554: 6c5a ldr r2, [r3, #68] ; 0x44 - 800b556: 683b ldr r3, [r7, #0] - 800b558: 60da str r2, [r3, #12] - pCardInfo->BlockNbr = (uint32_t)(hsd->SdCard.BlockNbr); - 800b55a: 687b ldr r3, [r7, #4] - 800b55c: 6c9a ldr r2, [r3, #72] ; 0x48 - 800b55e: 683b ldr r3, [r7, #0] - 800b560: 611a str r2, [r3, #16] - pCardInfo->BlockSize = (uint32_t)(hsd->SdCard.BlockSize); - 800b562: 687b ldr r3, [r7, #4] - 800b564: 6cda ldr r2, [r3, #76] ; 0x4c - 800b566: 683b ldr r3, [r7, #0] - 800b568: 615a str r2, [r3, #20] - pCardInfo->LogBlockNbr = (uint32_t)(hsd->SdCard.LogBlockNbr); - 800b56a: 687b ldr r3, [r7, #4] - 800b56c: 6d1a ldr r2, [r3, #80] ; 0x50 - 800b56e: 683b ldr r3, [r7, #0] - 800b570: 619a str r2, [r3, #24] - pCardInfo->LogBlockSize = (uint32_t)(hsd->SdCard.LogBlockSize); - 800b572: 687b ldr r3, [r7, #4] - 800b574: 6d5a ldr r2, [r3, #84] ; 0x54 - 800b576: 683b ldr r3, [r7, #0] - 800b578: 61da str r2, [r3, #28] - - return HAL_OK; - 800b57a: 2300 movs r3, #0 -} - 800b57c: 4618 mov r0, r3 - 800b57e: 370c adds r7, #12 - 800b580: 46bd mov sp, r7 - 800b582: f85d 7b04 ldr.w r7, [sp], #4 - 800b586: 4770 bx lr - -0800b588 : - * @arg SDMMC_BUS_WIDE_4B: 4-bit data transfer - * @arg SDMMC_BUS_WIDE_1B: 1-bit data transfer - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SD_ConfigWideBusOperation(SD_HandleTypeDef *hsd, uint32_t WideMode) -{ - 800b588: b590 push {r4, r7, lr} - 800b58a: b08d sub sp, #52 ; 0x34 - 800b58c: af02 add r7, sp, #8 - 800b58e: 6078 str r0, [r7, #4] - 800b590: 6039 str r1, [r7, #0] - SDMMC_InitTypeDef Init; - uint32_t errorstate; - uint32_t sdmmc_clk; - HAL_StatusTypeDef status = HAL_OK; - 800b592: 2300 movs r3, #0 - 800b594: f887 3027 strb.w r3, [r7, #39] ; 0x27 - - /* Check the parameters */ - assert_param(IS_SDMMC_BUS_WIDE(WideMode)); - - /* Change State */ - hsd->State = HAL_SD_STATE_BUSY; - 800b598: 687b ldr r3, [r7, #4] - 800b59a: 2203 movs r2, #3 - 800b59c: f883 2030 strb.w r2, [r3, #48] ; 0x30 - - if (hsd->SdCard.CardType != CARD_SECURED) - 800b5a0: 687b ldr r3, [r7, #4] - 800b5a2: 6b9b ldr r3, [r3, #56] ; 0x38 - 800b5a4: 2b03 cmp r3, #3 - 800b5a6: d02e beq.n 800b606 - { - if (WideMode == SDMMC_BUS_WIDE_8B) - 800b5a8: 683b ldr r3, [r7, #0] - 800b5aa: f5b3 4f00 cmp.w r3, #32768 ; 0x8000 - 800b5ae: d106 bne.n 800b5be - { - hsd->ErrorCode |= HAL_SD_ERROR_UNSUPPORTED_FEATURE; - 800b5b0: 687b ldr r3, [r7, #4] - 800b5b2: 6b5b ldr r3, [r3, #52] ; 0x34 - 800b5b4: f043 5280 orr.w r2, r3, #268435456 ; 0x10000000 - 800b5b8: 687b ldr r3, [r7, #4] - 800b5ba: 635a str r2, [r3, #52] ; 0x34 - 800b5bc: e029 b.n 800b612 - } - else if (WideMode == SDMMC_BUS_WIDE_4B) - 800b5be: 683b ldr r3, [r7, #0] - 800b5c0: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 - 800b5c4: d10a bne.n 800b5dc - { - errorstate = SD_WideBus_Enable(hsd); - 800b5c6: 6878 ldr r0, [r7, #4] - 800b5c8: f000 fb64 bl 800bc94 - 800b5cc: 6238 str r0, [r7, #32] - - hsd->ErrorCode |= errorstate; - 800b5ce: 687b ldr r3, [r7, #4] - 800b5d0: 6b5a ldr r2, [r3, #52] ; 0x34 - 800b5d2: 6a3b ldr r3, [r7, #32] - 800b5d4: 431a orrs r2, r3 - 800b5d6: 687b ldr r3, [r7, #4] - 800b5d8: 635a str r2, [r3, #52] ; 0x34 - 800b5da: e01a b.n 800b612 - } - else if (WideMode == SDMMC_BUS_WIDE_1B) - 800b5dc: 683b ldr r3, [r7, #0] - 800b5de: 2b00 cmp r3, #0 - 800b5e0: d10a bne.n 800b5f8 - { - errorstate = SD_WideBus_Disable(hsd); - 800b5e2: 6878 ldr r0, [r7, #4] - 800b5e4: f000 fba1 bl 800bd2a - 800b5e8: 6238 str r0, [r7, #32] - - hsd->ErrorCode |= errorstate; - 800b5ea: 687b ldr r3, [r7, #4] - 800b5ec: 6b5a ldr r2, [r3, #52] ; 0x34 - 800b5ee: 6a3b ldr r3, [r7, #32] - 800b5f0: 431a orrs r2, r3 - 800b5f2: 687b ldr r3, [r7, #4] - 800b5f4: 635a str r2, [r3, #52] ; 0x34 - 800b5f6: e00c b.n 800b612 - } - else - { - /* WideMode is not a valid argument*/ - hsd->ErrorCode |= HAL_SD_ERROR_PARAM; - 800b5f8: 687b ldr r3, [r7, #4] - 800b5fa: 6b5b ldr r3, [r3, #52] ; 0x34 - 800b5fc: f043 6200 orr.w r2, r3, #134217728 ; 0x8000000 - 800b600: 687b ldr r3, [r7, #4] - 800b602: 635a str r2, [r3, #52] ; 0x34 - 800b604: e005 b.n 800b612 - } - } - else - { - /* SD Card does not support this feature */ - hsd->ErrorCode |= HAL_SD_ERROR_UNSUPPORTED_FEATURE; - 800b606: 687b ldr r3, [r7, #4] - 800b608: 6b5b ldr r3, [r3, #52] ; 0x34 - 800b60a: f043 5280 orr.w r2, r3, #268435456 ; 0x10000000 - 800b60e: 687b ldr r3, [r7, #4] - 800b610: 635a str r2, [r3, #52] ; 0x34 - } - - if (hsd->ErrorCode != HAL_SD_ERROR_NONE) - 800b612: 687b ldr r3, [r7, #4] - 800b614: 6b5b ldr r3, [r3, #52] ; 0x34 - 800b616: 2b00 cmp r3, #0 - 800b618: d007 beq.n 800b62a - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - 800b61a: 687b ldr r3, [r7, #4] - 800b61c: 681b ldr r3, [r3, #0] - 800b61e: 4a5f ldr r2, [pc, #380] ; (800b79c ) - 800b620: 639a str r2, [r3, #56] ; 0x38 - status = HAL_ERROR; - 800b622: 2301 movs r3, #1 - 800b624: f887 3027 strb.w r3, [r7, #39] ; 0x27 - 800b628: e096 b.n 800b758 - } - else - { - sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC); - 800b62a: f44f 3080 mov.w r0, #65536 ; 0x10000 - 800b62e: f04f 0100 mov.w r1, #0 - 800b632: f7fd fea3 bl 800937c - 800b636: 61f8 str r0, [r7, #28] - if (sdmmc_clk != 0U) - 800b638: 69fb ldr r3, [r7, #28] - 800b63a: 2b00 cmp r3, #0 - 800b63c: f000 8083 beq.w 800b746 - { - /* Configure the SDMMC peripheral */ - Init.ClockEdge = hsd->Init.ClockEdge; - 800b640: 687b ldr r3, [r7, #4] - 800b642: 685b ldr r3, [r3, #4] - 800b644: 60bb str r3, [r7, #8] - Init.ClockPowerSave = hsd->Init.ClockPowerSave; - 800b646: 687b ldr r3, [r7, #4] - 800b648: 689b ldr r3, [r3, #8] - 800b64a: 60fb str r3, [r7, #12] - Init.BusWide = WideMode; - 800b64c: 683b ldr r3, [r7, #0] - 800b64e: 613b str r3, [r7, #16] - Init.HardwareFlowControl = hsd->Init.HardwareFlowControl; - 800b650: 687b ldr r3, [r7, #4] - 800b652: 691b ldr r3, [r3, #16] - 800b654: 617b str r3, [r7, #20] - - /* Check if user Clock div < Normal speed 25Mhz, no change in Clockdiv */ - if (hsd->Init.ClockDiv >= (sdmmc_clk / (2U * SD_NORMAL_SPEED_FREQ))) - 800b656: 687b ldr r3, [r7, #4] - 800b658: 695a ldr r2, [r3, #20] - 800b65a: 69fb ldr r3, [r7, #28] - 800b65c: 4950 ldr r1, [pc, #320] ; (800b7a0 ) - 800b65e: fba1 1303 umull r1, r3, r1, r3 - 800b662: 0e1b lsrs r3, r3, #24 - 800b664: 429a cmp r2, r3 - 800b666: d303 bcc.n 800b670 - { - Init.ClockDiv = hsd->Init.ClockDiv; - 800b668: 687b ldr r3, [r7, #4] - 800b66a: 695b ldr r3, [r3, #20] - 800b66c: 61bb str r3, [r7, #24] - 800b66e: e05a b.n 800b726 - } - else if (hsd->SdCard.CardSpeed == CARD_ULTRA_HIGH_SPEED) - 800b670: 687b ldr r3, [r7, #4] - 800b672: 6d9b ldr r3, [r3, #88] ; 0x58 - 800b674: f5b3 7f00 cmp.w r3, #512 ; 0x200 - 800b678: d103 bne.n 800b682 - { - /* UltraHigh speed SD card,user Clock div */ - Init.ClockDiv = hsd->Init.ClockDiv; - 800b67a: 687b ldr r3, [r7, #4] - 800b67c: 695b ldr r3, [r3, #20] - 800b67e: 61bb str r3, [r7, #24] - 800b680: e051 b.n 800b726 - } - else if (hsd->SdCard.CardSpeed == CARD_HIGH_SPEED) - 800b682: 687b ldr r3, [r7, #4] - 800b684: 6d9b ldr r3, [r3, #88] ; 0x58 - 800b686: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 800b68a: d126 bne.n 800b6da - { - /* High speed SD card, Max Frequency = 50Mhz */ - if (hsd->Init.ClockDiv == 0U) - 800b68c: 687b ldr r3, [r7, #4] - 800b68e: 695b ldr r3, [r3, #20] - 800b690: 2b00 cmp r3, #0 - 800b692: d10e bne.n 800b6b2 - { - if (sdmmc_clk > SD_HIGH_SPEED_FREQ) - 800b694: 69fb ldr r3, [r7, #28] - 800b696: 4a43 ldr r2, [pc, #268] ; (800b7a4 ) - 800b698: 4293 cmp r3, r2 - 800b69a: d906 bls.n 800b6aa - { - Init.ClockDiv = sdmmc_clk / (2U * SD_HIGH_SPEED_FREQ); - 800b69c: 69fb ldr r3, [r7, #28] - 800b69e: 4a40 ldr r2, [pc, #256] ; (800b7a0 ) - 800b6a0: fba2 2303 umull r2, r3, r2, r3 - 800b6a4: 0e5b lsrs r3, r3, #25 - 800b6a6: 61bb str r3, [r7, #24] - 800b6a8: e03d b.n 800b726 - } - else - { - Init.ClockDiv = hsd->Init.ClockDiv; - 800b6aa: 687b ldr r3, [r7, #4] - 800b6ac: 695b ldr r3, [r3, #20] - 800b6ae: 61bb str r3, [r7, #24] - 800b6b0: e039 b.n 800b726 - } - } - else - { - if ((sdmmc_clk / (2U * hsd->Init.ClockDiv)) > SD_HIGH_SPEED_FREQ) - 800b6b2: 687b ldr r3, [r7, #4] - 800b6b4: 695b ldr r3, [r3, #20] - 800b6b6: 005b lsls r3, r3, #1 - 800b6b8: 69fa ldr r2, [r7, #28] - 800b6ba: fbb2 f3f3 udiv r3, r2, r3 - 800b6be: 4a39 ldr r2, [pc, #228] ; (800b7a4 ) - 800b6c0: 4293 cmp r3, r2 - 800b6c2: d906 bls.n 800b6d2 - { - Init.ClockDiv = sdmmc_clk / (2U * SD_HIGH_SPEED_FREQ); - 800b6c4: 69fb ldr r3, [r7, #28] - 800b6c6: 4a36 ldr r2, [pc, #216] ; (800b7a0 ) - 800b6c8: fba2 2303 umull r2, r3, r2, r3 - 800b6cc: 0e5b lsrs r3, r3, #25 - 800b6ce: 61bb str r3, [r7, #24] - 800b6d0: e029 b.n 800b726 - } - else - { - Init.ClockDiv = hsd->Init.ClockDiv; - 800b6d2: 687b ldr r3, [r7, #4] - 800b6d4: 695b ldr r3, [r3, #20] - 800b6d6: 61bb str r3, [r7, #24] - 800b6d8: e025 b.n 800b726 - } - } - else - { - /* No High speed SD card, Max Frequency = 25Mhz */ - if (hsd->Init.ClockDiv == 0U) - 800b6da: 687b ldr r3, [r7, #4] - 800b6dc: 695b ldr r3, [r3, #20] - 800b6de: 2b00 cmp r3, #0 - 800b6e0: d10e bne.n 800b700 - { - if (sdmmc_clk > SD_NORMAL_SPEED_FREQ) - 800b6e2: 69fb ldr r3, [r7, #28] - 800b6e4: 4a30 ldr r2, [pc, #192] ; (800b7a8 ) - 800b6e6: 4293 cmp r3, r2 - 800b6e8: d906 bls.n 800b6f8 - { - Init.ClockDiv = sdmmc_clk / (2U * SD_NORMAL_SPEED_FREQ); - 800b6ea: 69fb ldr r3, [r7, #28] - 800b6ec: 4a2c ldr r2, [pc, #176] ; (800b7a0 ) - 800b6ee: fba2 2303 umull r2, r3, r2, r3 - 800b6f2: 0e1b lsrs r3, r3, #24 - 800b6f4: 61bb str r3, [r7, #24] - 800b6f6: e016 b.n 800b726 - } - else - { - Init.ClockDiv = hsd->Init.ClockDiv; - 800b6f8: 687b ldr r3, [r7, #4] - 800b6fa: 695b ldr r3, [r3, #20] - 800b6fc: 61bb str r3, [r7, #24] - 800b6fe: e012 b.n 800b726 - } - } - else - { - if ((sdmmc_clk / (2U * hsd->Init.ClockDiv)) > SD_NORMAL_SPEED_FREQ) - 800b700: 687b ldr r3, [r7, #4] - 800b702: 695b ldr r3, [r3, #20] - 800b704: 005b lsls r3, r3, #1 - 800b706: 69fa ldr r2, [r7, #28] - 800b708: fbb2 f3f3 udiv r3, r2, r3 - 800b70c: 4a26 ldr r2, [pc, #152] ; (800b7a8 ) - 800b70e: 4293 cmp r3, r2 - 800b710: d906 bls.n 800b720 - { - Init.ClockDiv = sdmmc_clk / (2U * SD_NORMAL_SPEED_FREQ); - 800b712: 69fb ldr r3, [r7, #28] - 800b714: 4a22 ldr r2, [pc, #136] ; (800b7a0 ) - 800b716: fba2 2303 umull r2, r3, r2, r3 - 800b71a: 0e1b lsrs r3, r3, #24 - 800b71c: 61bb str r3, [r7, #24] - 800b71e: e002 b.n 800b726 - } - else - { - Init.ClockDiv = hsd->Init.ClockDiv; - 800b720: 687b ldr r3, [r7, #4] - 800b722: 695b ldr r3, [r3, #20] - 800b724: 61bb str r3, [r7, #24] - -#if (USE_SD_TRANSCEIVER != 0U) - Init.TranceiverPresent = hsd->Init.TranceiverPresent; -#endif /* USE_SD_TRANSCEIVER */ - - (void)SDMMC_Init(hsd->Instance, Init); - 800b726: 687b ldr r3, [r7, #4] - 800b728: 681c ldr r4, [r3, #0] - 800b72a: 466a mov r2, sp - 800b72c: f107 0314 add.w r3, r7, #20 - 800b730: e893 0003 ldmia.w r3, {r0, r1} - 800b734: e882 0003 stmia.w r2, {r0, r1} - 800b738: f107 0308 add.w r3, r7, #8 - 800b73c: cb0e ldmia r3, {r1, r2, r3} - 800b73e: 4620 mov r0, r4 - 800b740: f002 fbbc bl 800debc - 800b744: e008 b.n 800b758 - } - else - { - hsd->ErrorCode |= SDMMC_ERROR_INVALID_PARAMETER; - 800b746: 687b ldr r3, [r7, #4] - 800b748: 6b5b ldr r3, [r3, #52] ; 0x34 - 800b74a: f043 6200 orr.w r2, r3, #134217728 ; 0x8000000 - 800b74e: 687b ldr r3, [r7, #4] - 800b750: 635a str r2, [r3, #52] ; 0x34 - status = HAL_ERROR; - 800b752: 2301 movs r3, #1 - 800b754: f887 3027 strb.w r3, [r7, #39] ; 0x27 - } - } - - /* Set Block Size for Card */ - errorstate = SDMMC_CmdBlockLength(hsd->Instance, BLOCKSIZE); - 800b758: 687b ldr r3, [r7, #4] - 800b75a: 681b ldr r3, [r3, #0] - 800b75c: f44f 7100 mov.w r1, #512 ; 0x200 - 800b760: 4618 mov r0, r3 - 800b762: f002 fc89 bl 800e078 - 800b766: 6238 str r0, [r7, #32] - if (errorstate != HAL_SD_ERROR_NONE) - 800b768: 6a3b ldr r3, [r7, #32] - 800b76a: 2b00 cmp r3, #0 - 800b76c: d00c beq.n 800b788 - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - 800b76e: 687b ldr r3, [r7, #4] - 800b770: 681b ldr r3, [r3, #0] - 800b772: 4a0a ldr r2, [pc, #40] ; (800b79c ) - 800b774: 639a str r2, [r3, #56] ; 0x38 - hsd->ErrorCode |= errorstate; - 800b776: 687b ldr r3, [r7, #4] - 800b778: 6b5a ldr r2, [r3, #52] ; 0x34 - 800b77a: 6a3b ldr r3, [r7, #32] - 800b77c: 431a orrs r2, r3 - 800b77e: 687b ldr r3, [r7, #4] - 800b780: 635a str r2, [r3, #52] ; 0x34 - status = HAL_ERROR; - 800b782: 2301 movs r3, #1 - 800b784: f887 3027 strb.w r3, [r7, #39] ; 0x27 - } - - /* Change State */ - hsd->State = HAL_SD_STATE_READY; - 800b788: 687b ldr r3, [r7, #4] - 800b78a: 2201 movs r2, #1 - 800b78c: f883 2030 strb.w r2, [r3, #48] ; 0x30 - - return status; - 800b790: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 -} - 800b794: 4618 mov r0, r3 - 800b796: 372c adds r7, #44 ; 0x2c - 800b798: 46bd mov sp, r7 - 800b79a: bd90 pop {r4, r7, pc} - 800b79c: 1fe00fff .word 0x1fe00fff - 800b7a0: 55e63b89 .word 0x55e63b89 - 800b7a4: 02faf080 .word 0x02faf080 - 800b7a8: 017d7840 .word 0x017d7840 - -0800b7ac : - * @brief Gets the current sd card data state. - * @param hsd: pointer to SD handle - * @retval Card state - */ -HAL_SD_CardStateTypeDef HAL_SD_GetCardState(SD_HandleTypeDef *hsd) -{ - 800b7ac: b580 push {r7, lr} - 800b7ae: b086 sub sp, #24 - 800b7b0: af00 add r7, sp, #0 - 800b7b2: 6078 str r0, [r7, #4] - uint32_t cardstate; - uint32_t errorstate; - uint32_t resp1 = 0; - 800b7b4: 2300 movs r3, #0 - 800b7b6: 60fb str r3, [r7, #12] - - errorstate = SD_SendStatus(hsd, &resp1); - 800b7b8: f107 030c add.w r3, r7, #12 - 800b7bc: 4619 mov r1, r3 - 800b7be: 6878 ldr r0, [r7, #4] - 800b7c0: f000 fa40 bl 800bc44 - 800b7c4: 6178 str r0, [r7, #20] - if (errorstate != HAL_SD_ERROR_NONE) - 800b7c6: 697b ldr r3, [r7, #20] - 800b7c8: 2b00 cmp r3, #0 - 800b7ca: d005 beq.n 800b7d8 - { - hsd->ErrorCode |= errorstate; - 800b7cc: 687b ldr r3, [r7, #4] - 800b7ce: 6b5a ldr r2, [r3, #52] ; 0x34 - 800b7d0: 697b ldr r3, [r7, #20] - 800b7d2: 431a orrs r2, r3 - 800b7d4: 687b ldr r3, [r7, #4] - 800b7d6: 635a str r2, [r3, #52] ; 0x34 - } - - cardstate = ((resp1 >> 9U) & 0x0FU); - 800b7d8: 68fb ldr r3, [r7, #12] - 800b7da: 0a5b lsrs r3, r3, #9 - 800b7dc: f003 030f and.w r3, r3, #15 - 800b7e0: 613b str r3, [r7, #16] - - return (HAL_SD_CardStateTypeDef)cardstate; - 800b7e2: 693b ldr r3, [r7, #16] -} - 800b7e4: 4618 mov r0, r3 - 800b7e6: 3718 adds r7, #24 - 800b7e8: 46bd mov sp, r7 - 800b7ea: bd80 pop {r7, pc} - -0800b7ec : - * @brief Initializes the sd card. - * @param hsd: Pointer to SD handle - * @retval SD Card error state - */ -static uint32_t SD_InitCard(SD_HandleTypeDef *hsd) -{ - 800b7ec: b580 push {r7, lr} - 800b7ee: b090 sub sp, #64 ; 0x40 - 800b7f0: af00 add r7, sp, #0 - 800b7f2: 6078 str r0, [r7, #4] - HAL_SD_CardCSDTypeDef CSD; - uint32_t errorstate; - uint16_t sd_rca = 0U; - 800b7f4: 2300 movs r3, #0 - 800b7f6: 817b strh r3, [r7, #10] - uint32_t tickstart = HAL_GetTick(); - 800b7f8: f7f6 fdb4 bl 8002364 - 800b7fc: 63f8 str r0, [r7, #60] ; 0x3c - - /* Check the power State */ - if (SDMMC_GetPowerState(hsd->Instance) == 0U) - 800b7fe: 687b ldr r3, [r7, #4] - 800b800: 681b ldr r3, [r3, #0] - 800b802: 4618 mov r0, r3 - 800b804: f002 fbb3 bl 800df6e - 800b808: 4603 mov r3, r0 - 800b80a: 2b00 cmp r3, #0 - 800b80c: d102 bne.n 800b814 - { - /* Power off */ - return HAL_SD_ERROR_REQUEST_NOT_APPLICABLE; - 800b80e: f04f 6380 mov.w r3, #67108864 ; 0x4000000 - 800b812: e0b5 b.n 800b980 - } - - if (hsd->SdCard.CardType != CARD_SECURED) - 800b814: 687b ldr r3, [r7, #4] - 800b816: 6b9b ldr r3, [r3, #56] ; 0x38 - 800b818: 2b03 cmp r3, #3 - 800b81a: d02e beq.n 800b87a - { - /* Send CMD2 ALL_SEND_CID */ - errorstate = SDMMC_CmdSendCID(hsd->Instance); - 800b81c: 687b ldr r3, [r7, #4] - 800b81e: 681b ldr r3, [r3, #0] - 800b820: 4618 mov r0, r3 - 800b822: f002 fdfe bl 800e422 - 800b826: 63b8 str r0, [r7, #56] ; 0x38 - if (errorstate != HAL_SD_ERROR_NONE) - 800b828: 6bbb ldr r3, [r7, #56] ; 0x38 - 800b82a: 2b00 cmp r3, #0 - 800b82c: d001 beq.n 800b832 - { - return errorstate; - 800b82e: 6bbb ldr r3, [r7, #56] ; 0x38 - 800b830: e0a6 b.n 800b980 - } - else - { - /* Get Card identification number data */ - hsd->CID[0U] = SDMMC_GetResponse(hsd->Instance, SDMMC_RESP1); - 800b832: 687b ldr r3, [r7, #4] - 800b834: 681b ldr r3, [r3, #0] - 800b836: 2100 movs r1, #0 - 800b838: 4618 mov r0, r3 - 800b83a: f002 fbde bl 800dffa - 800b83e: 4602 mov r2, r0 - 800b840: 687b ldr r3, [r7, #4] - 800b842: 66da str r2, [r3, #108] ; 0x6c - hsd->CID[1U] = SDMMC_GetResponse(hsd->Instance, SDMMC_RESP2); - 800b844: 687b ldr r3, [r7, #4] - 800b846: 681b ldr r3, [r3, #0] - 800b848: 2104 movs r1, #4 - 800b84a: 4618 mov r0, r3 - 800b84c: f002 fbd5 bl 800dffa - 800b850: 4602 mov r2, r0 - 800b852: 687b ldr r3, [r7, #4] - 800b854: 671a str r2, [r3, #112] ; 0x70 - hsd->CID[2U] = SDMMC_GetResponse(hsd->Instance, SDMMC_RESP3); - 800b856: 687b ldr r3, [r7, #4] - 800b858: 681b ldr r3, [r3, #0] - 800b85a: 2108 movs r1, #8 - 800b85c: 4618 mov r0, r3 - 800b85e: f002 fbcc bl 800dffa - 800b862: 4602 mov r2, r0 - 800b864: 687b ldr r3, [r7, #4] - 800b866: 675a str r2, [r3, #116] ; 0x74 - hsd->CID[3U] = SDMMC_GetResponse(hsd->Instance, SDMMC_RESP4); - 800b868: 687b ldr r3, [r7, #4] - 800b86a: 681b ldr r3, [r3, #0] - 800b86c: 210c movs r1, #12 - 800b86e: 4618 mov r0, r3 - 800b870: f002 fbc3 bl 800dffa - 800b874: 4602 mov r2, r0 - 800b876: 687b ldr r3, [r7, #4] - 800b878: 679a str r2, [r3, #120] ; 0x78 - } - } - - if (hsd->SdCard.CardType != CARD_SECURED) - 800b87a: 687b ldr r3, [r7, #4] - 800b87c: 6b9b ldr r3, [r3, #56] ; 0x38 - 800b87e: 2b03 cmp r3, #3 - 800b880: d01d beq.n 800b8be - { - /* Send CMD3 SET_REL_ADDR with argument 0 */ - /* SD Card publishes its RCA. */ - while (sd_rca == 0U) - 800b882: e019 b.n 800b8b8 - { - errorstate = SDMMC_CmdSetRelAdd(hsd->Instance, &sd_rca); - 800b884: 687b ldr r3, [r7, #4] - 800b886: 681b ldr r3, [r3, #0] - 800b888: f107 020a add.w r2, r7, #10 - 800b88c: 4611 mov r1, r2 - 800b88e: 4618 mov r0, r3 - 800b890: f002 fe06 bl 800e4a0 - 800b894: 63b8 str r0, [r7, #56] ; 0x38 - if (errorstate != HAL_SD_ERROR_NONE) - 800b896: 6bbb ldr r3, [r7, #56] ; 0x38 - 800b898: 2b00 cmp r3, #0 - 800b89a: d001 beq.n 800b8a0 - { - return errorstate; - 800b89c: 6bbb ldr r3, [r7, #56] ; 0x38 - 800b89e: e06f b.n 800b980 - } - if ((HAL_GetTick() - tickstart) >= SDMMC_CMDTIMEOUT) - 800b8a0: f7f6 fd60 bl 8002364 - 800b8a4: 4602 mov r2, r0 - 800b8a6: 6bfb ldr r3, [r7, #60] ; 0x3c - 800b8a8: 1ad3 subs r3, r2, r3 - 800b8aa: f241 3287 movw r2, #4999 ; 0x1387 - 800b8ae: 4293 cmp r3, r2 - 800b8b0: d902 bls.n 800b8b8 - { - return HAL_SD_ERROR_TIMEOUT; - 800b8b2: f04f 4300 mov.w r3, #2147483648 ; 0x80000000 - 800b8b6: e063 b.n 800b980 - while (sd_rca == 0U) - 800b8b8: 897b ldrh r3, [r7, #10] - 800b8ba: 2b00 cmp r3, #0 - 800b8bc: d0e2 beq.n 800b884 - } - } - } - if (hsd->SdCard.CardType != CARD_SECURED) - 800b8be: 687b ldr r3, [r7, #4] - 800b8c0: 6b9b ldr r3, [r3, #56] ; 0x38 - 800b8c2: 2b03 cmp r3, #3 - 800b8c4: d036 beq.n 800b934 - { - /* Get the SD card RCA */ - hsd->SdCard.RelCardAdd = sd_rca; - 800b8c6: 897b ldrh r3, [r7, #10] - 800b8c8: 461a mov r2, r3 - 800b8ca: 687b ldr r3, [r7, #4] - 800b8cc: 645a str r2, [r3, #68] ; 0x44 - - /* Send CMD9 SEND_CSD with argument as card's RCA */ - errorstate = SDMMC_CmdSendCSD(hsd->Instance, (uint32_t)(hsd->SdCard.RelCardAdd << 16U)); - 800b8ce: 687b ldr r3, [r7, #4] - 800b8d0: 681a ldr r2, [r3, #0] - 800b8d2: 687b ldr r3, [r7, #4] - 800b8d4: 6c5b ldr r3, [r3, #68] ; 0x44 - 800b8d6: 041b lsls r3, r3, #16 - 800b8d8: 4619 mov r1, r3 - 800b8da: 4610 mov r0, r2 - 800b8dc: f002 fdc0 bl 800e460 - 800b8e0: 63b8 str r0, [r7, #56] ; 0x38 - if (errorstate != HAL_SD_ERROR_NONE) - 800b8e2: 6bbb ldr r3, [r7, #56] ; 0x38 - 800b8e4: 2b00 cmp r3, #0 - 800b8e6: d001 beq.n 800b8ec - { - return errorstate; - 800b8e8: 6bbb ldr r3, [r7, #56] ; 0x38 - 800b8ea: e049 b.n 800b980 - } - else - { - /* Get Card Specific Data */ - hsd->CSD[0U] = SDMMC_GetResponse(hsd->Instance, SDMMC_RESP1); - 800b8ec: 687b ldr r3, [r7, #4] - 800b8ee: 681b ldr r3, [r3, #0] - 800b8f0: 2100 movs r1, #0 - 800b8f2: 4618 mov r0, r3 - 800b8f4: f002 fb81 bl 800dffa - 800b8f8: 4602 mov r2, r0 - 800b8fa: 687b ldr r3, [r7, #4] - 800b8fc: 65da str r2, [r3, #92] ; 0x5c - hsd->CSD[1U] = SDMMC_GetResponse(hsd->Instance, SDMMC_RESP2); - 800b8fe: 687b ldr r3, [r7, #4] - 800b900: 681b ldr r3, [r3, #0] - 800b902: 2104 movs r1, #4 - 800b904: 4618 mov r0, r3 - 800b906: f002 fb78 bl 800dffa - 800b90a: 4602 mov r2, r0 - 800b90c: 687b ldr r3, [r7, #4] - 800b90e: 661a str r2, [r3, #96] ; 0x60 - hsd->CSD[2U] = SDMMC_GetResponse(hsd->Instance, SDMMC_RESP3); - 800b910: 687b ldr r3, [r7, #4] - 800b912: 681b ldr r3, [r3, #0] - 800b914: 2108 movs r1, #8 - 800b916: 4618 mov r0, r3 - 800b918: f002 fb6f bl 800dffa - 800b91c: 4602 mov r2, r0 - 800b91e: 687b ldr r3, [r7, #4] - 800b920: 665a str r2, [r3, #100] ; 0x64 - hsd->CSD[3U] = SDMMC_GetResponse(hsd->Instance, SDMMC_RESP4); - 800b922: 687b ldr r3, [r7, #4] - 800b924: 681b ldr r3, [r3, #0] - 800b926: 210c movs r1, #12 - 800b928: 4618 mov r0, r3 - 800b92a: f002 fb66 bl 800dffa - 800b92e: 4602 mov r2, r0 - 800b930: 687b ldr r3, [r7, #4] - 800b932: 669a str r2, [r3, #104] ; 0x68 - } - } - - /* Get the Card Class */ - hsd->SdCard.Class = (SDMMC_GetResponse(hsd->Instance, SDMMC_RESP2) >> 20U); - 800b934: 687b ldr r3, [r7, #4] - 800b936: 681b ldr r3, [r3, #0] - 800b938: 2104 movs r1, #4 - 800b93a: 4618 mov r0, r3 - 800b93c: f002 fb5d bl 800dffa - 800b940: 4603 mov r3, r0 - 800b942: 0d1a lsrs r2, r3, #20 - 800b944: 687b ldr r3, [r7, #4] - 800b946: 641a str r2, [r3, #64] ; 0x40 - - /* Get CSD parameters */ - if (HAL_SD_GetCardCSD(hsd, &CSD) != HAL_OK) - 800b948: f107 030c add.w r3, r7, #12 - 800b94c: 4619 mov r1, r3 - 800b94e: 6878 ldr r0, [r7, #4] - 800b950: f7ff fb8c bl 800b06c - 800b954: 4603 mov r3, r0 - 800b956: 2b00 cmp r3, #0 - 800b958: d002 beq.n 800b960 - { - return HAL_SD_ERROR_UNSUPPORTED_FEATURE; - 800b95a: f04f 5380 mov.w r3, #268435456 ; 0x10000000 - 800b95e: e00f b.n 800b980 - } - - /* Select the Card */ - errorstate = SDMMC_CmdSelDesel(hsd->Instance, (uint32_t)(((uint32_t)hsd->SdCard.RelCardAdd) << 16U)); - 800b960: 687b ldr r3, [r7, #4] - 800b962: 681a ldr r2, [r3, #0] - 800b964: 687b ldr r3, [r7, #4] - 800b966: 6c5b ldr r3, [r3, #68] ; 0x44 - 800b968: 041b lsls r3, r3, #16 - 800b96a: 4619 mov r1, r3 - 800b96c: 4610 mov r0, r2 - 800b96e: f002 fc6f bl 800e250 - 800b972: 63b8 str r0, [r7, #56] ; 0x38 - if (errorstate != HAL_SD_ERROR_NONE) - 800b974: 6bbb ldr r3, [r7, #56] ; 0x38 - 800b976: 2b00 cmp r3, #0 - 800b978: d001 beq.n 800b97e - { - return errorstate; - 800b97a: 6bbb ldr r3, [r7, #56] ; 0x38 - 800b97c: e000 b.n 800b980 - } - - /* All cards are initialized */ - return HAL_SD_ERROR_NONE; - 800b97e: 2300 movs r3, #0 -} - 800b980: 4618 mov r0, r3 - 800b982: 3740 adds r7, #64 ; 0x40 - 800b984: 46bd mov sp, r7 - 800b986: bd80 pop {r7, pc} - -0800b988 : - * in the SD handle. - * @param hsd: Pointer to SD handle - * @retval error state - */ -static uint32_t SD_PowerON(SD_HandleTypeDef *hsd) -{ - 800b988: b580 push {r7, lr} - 800b98a: b086 sub sp, #24 - 800b98c: af00 add r7, sp, #0 - 800b98e: 6078 str r0, [r7, #4] - __IO uint32_t count = 0U; - 800b990: 2300 movs r3, #0 - 800b992: 60bb str r3, [r7, #8] - uint32_t response = 0U; - 800b994: 2300 movs r3, #0 - 800b996: 617b str r3, [r7, #20] - uint32_t validvoltage = 0U; - 800b998: 2300 movs r3, #0 - 800b99a: 613b str r3, [r7, #16] -#if (USE_SD_TRANSCEIVER != 0U) - uint32_t tickstart = HAL_GetTick(); -#endif /* USE_SD_TRANSCEIVER */ - - /* CMD0: GO_IDLE_STATE */ - errorstate = SDMMC_CmdGoIdleState(hsd->Instance); - 800b99c: 687b ldr r3, [r7, #4] - 800b99e: 681b ldr r3, [r3, #0] - 800b9a0: 4618 mov r0, r3 - 800b9a2: f002 fc78 bl 800e296 - 800b9a6: 60f8 str r0, [r7, #12] - if (errorstate != HAL_SD_ERROR_NONE) - 800b9a8: 68fb ldr r3, [r7, #12] - 800b9aa: 2b00 cmp r3, #0 - 800b9ac: d001 beq.n 800b9b2 - { - return errorstate; - 800b9ae: 68fb ldr r3, [r7, #12] - 800b9b0: e072 b.n 800ba98 - } - - /* CMD8: SEND_IF_COND: Command available only on V2.0 cards */ - errorstate = SDMMC_CmdOperCond(hsd->Instance); - 800b9b2: 687b ldr r3, [r7, #4] - 800b9b4: 681b ldr r3, [r3, #0] - 800b9b6: 4618 mov r0, r3 - 800b9b8: f002 fc8b bl 800e2d2 - 800b9bc: 60f8 str r0, [r7, #12] - if (errorstate == SDMMC_ERROR_TIMEOUT) /* No response to CMD8 */ - 800b9be: 68fb ldr r3, [r7, #12] - 800b9c0: f1b3 4f00 cmp.w r3, #2147483648 ; 0x80000000 - 800b9c4: d10d bne.n 800b9e2 - { - hsd->SdCard.CardVersion = CARD_V1_X; - 800b9c6: 687b ldr r3, [r7, #4] - 800b9c8: 2200 movs r2, #0 - 800b9ca: 63da str r2, [r3, #60] ; 0x3c - /* CMD0: GO_IDLE_STATE */ - errorstate = SDMMC_CmdGoIdleState(hsd->Instance); - 800b9cc: 687b ldr r3, [r7, #4] - 800b9ce: 681b ldr r3, [r3, #0] - 800b9d0: 4618 mov r0, r3 - 800b9d2: f002 fc60 bl 800e296 - 800b9d6: 60f8 str r0, [r7, #12] - if (errorstate != HAL_SD_ERROR_NONE) - 800b9d8: 68fb ldr r3, [r7, #12] - 800b9da: 2b00 cmp r3, #0 - 800b9dc: d004 beq.n 800b9e8 - { - return errorstate; - 800b9de: 68fb ldr r3, [r7, #12] - 800b9e0: e05a b.n 800ba98 - } - - } - else - { - hsd->SdCard.CardVersion = CARD_V2_X; - 800b9e2: 687b ldr r3, [r7, #4] - 800b9e4: 2201 movs r2, #1 - 800b9e6: 63da str r2, [r3, #60] ; 0x3c - } - - if (hsd->SdCard.CardVersion == CARD_V2_X) - 800b9e8: 687b ldr r3, [r7, #4] - 800b9ea: 6bdb ldr r3, [r3, #60] ; 0x3c - 800b9ec: 2b01 cmp r3, #1 - 800b9ee: d137 bne.n 800ba60 - { - /* SEND CMD55 APP_CMD with RCA as 0 */ - errorstate = SDMMC_CmdAppCommand(hsd->Instance, 0); - 800b9f0: 687b ldr r3, [r7, #4] - 800b9f2: 681b ldr r3, [r3, #0] - 800b9f4: 2100 movs r1, #0 - 800b9f6: 4618 mov r0, r3 - 800b9f8: f002 fc8b bl 800e312 - 800b9fc: 60f8 str r0, [r7, #12] - if (errorstate != HAL_SD_ERROR_NONE) - 800b9fe: 68fb ldr r3, [r7, #12] - 800ba00: 2b00 cmp r3, #0 - 800ba02: d02d beq.n 800ba60 - { - return HAL_SD_ERROR_UNSUPPORTED_FEATURE; - 800ba04: f04f 5380 mov.w r3, #268435456 ; 0x10000000 - 800ba08: e046 b.n 800ba98 - /* SD CARD */ - /* Send ACMD41 SD_APP_OP_COND with Argument 0x80100000 */ - while ((count < SDMMC_MAX_VOLT_TRIAL) && (validvoltage == 0U)) - { - /* SEND CMD55 APP_CMD with RCA as 0 */ - errorstate = SDMMC_CmdAppCommand(hsd->Instance, 0); - 800ba0a: 687b ldr r3, [r7, #4] - 800ba0c: 681b ldr r3, [r3, #0] - 800ba0e: 2100 movs r1, #0 - 800ba10: 4618 mov r0, r3 - 800ba12: f002 fc7e bl 800e312 - 800ba16: 60f8 str r0, [r7, #12] - if (errorstate != HAL_SD_ERROR_NONE) - 800ba18: 68fb ldr r3, [r7, #12] - 800ba1a: 2b00 cmp r3, #0 - 800ba1c: d001 beq.n 800ba22 - { - return errorstate; - 800ba1e: 68fb ldr r3, [r7, #12] - 800ba20: e03a b.n 800ba98 - } - - /* Send CMD41 */ - errorstate = SDMMC_CmdAppOperCommand(hsd->Instance, SDMMC_VOLTAGE_WINDOW_SD | SDMMC_HIGH_CAPACITY | - 800ba22: 687b ldr r3, [r7, #4] - 800ba24: 681b ldr r3, [r3, #0] - 800ba26: 491e ldr r1, [pc, #120] ; (800baa0 ) - 800ba28: 4618 mov r0, r3 - 800ba2a: f002 fc95 bl 800e358 - 800ba2e: 60f8 str r0, [r7, #12] - SD_SWITCH_1_8V_CAPACITY); - if (errorstate != HAL_SD_ERROR_NONE) - 800ba30: 68fb ldr r3, [r7, #12] - 800ba32: 2b00 cmp r3, #0 - 800ba34: d002 beq.n 800ba3c - { - return HAL_SD_ERROR_UNSUPPORTED_FEATURE; - 800ba36: f04f 5380 mov.w r3, #268435456 ; 0x10000000 - 800ba3a: e02d b.n 800ba98 - } - - /* Get command response */ - response = SDMMC_GetResponse(hsd->Instance, SDMMC_RESP1); - 800ba3c: 687b ldr r3, [r7, #4] - 800ba3e: 681b ldr r3, [r3, #0] - 800ba40: 2100 movs r1, #0 - 800ba42: 4618 mov r0, r3 - 800ba44: f002 fad9 bl 800dffa - 800ba48: 6178 str r0, [r7, #20] - - /* Get operating voltage*/ - validvoltage = (((response >> 31U) == 1U) ? 1U : 0U); - 800ba4a: 697b ldr r3, [r7, #20] - 800ba4c: 0fdb lsrs r3, r3, #31 - 800ba4e: 2b01 cmp r3, #1 - 800ba50: d101 bne.n 800ba56 - 800ba52: 2301 movs r3, #1 - 800ba54: e000 b.n 800ba58 - 800ba56: 2300 movs r3, #0 - 800ba58: 613b str r3, [r7, #16] - - count++; - 800ba5a: 68bb ldr r3, [r7, #8] - 800ba5c: 3301 adds r3, #1 - 800ba5e: 60bb str r3, [r7, #8] - while ((count < SDMMC_MAX_VOLT_TRIAL) && (validvoltage == 0U)) - 800ba60: 68bb ldr r3, [r7, #8] - 800ba62: f64f 72fe movw r2, #65534 ; 0xfffe - 800ba66: 4293 cmp r3, r2 - 800ba68: d802 bhi.n 800ba70 - 800ba6a: 693b ldr r3, [r7, #16] - 800ba6c: 2b00 cmp r3, #0 - 800ba6e: d0cc beq.n 800ba0a - } - - if (count >= SDMMC_MAX_VOLT_TRIAL) - 800ba70: 68bb ldr r3, [r7, #8] - 800ba72: f64f 72fe movw r2, #65534 ; 0xfffe - 800ba76: 4293 cmp r3, r2 - 800ba78: d902 bls.n 800ba80 - { - return HAL_SD_ERROR_INVALID_VOLTRANGE; - 800ba7a: f04f 7380 mov.w r3, #16777216 ; 0x1000000 - 800ba7e: e00b b.n 800ba98 - } - - /* Set default card type */ - hsd->SdCard.CardType = CARD_SDSC; - 800ba80: 687b ldr r3, [r7, #4] - 800ba82: 2200 movs r2, #0 - 800ba84: 639a str r2, [r3, #56] ; 0x38 - - if ((response & SDMMC_HIGH_CAPACITY) == SDMMC_HIGH_CAPACITY) - 800ba86: 697b ldr r3, [r7, #20] - 800ba88: f003 4380 and.w r3, r3, #1073741824 ; 0x40000000 - 800ba8c: 2b00 cmp r3, #0 - 800ba8e: d002 beq.n 800ba96 - { - hsd->SdCard.CardType = CARD_SDHC_SDXC; - 800ba90: 687b ldr r3, [r7, #4] - 800ba92: 2201 movs r2, #1 - 800ba94: 639a str r2, [r3, #56] ; 0x38 - } - } -#endif /* USE_SD_TRANSCEIVER */ - } - - return HAL_SD_ERROR_NONE; - 800ba96: 2300 movs r3, #0 -} - 800ba98: 4618 mov r0, r3 - 800ba9a: 3718 adds r7, #24 - 800ba9c: 46bd mov sp, r7 - 800ba9e: bd80 pop {r7, pc} - 800baa0: c1100000 .word 0xc1100000 - -0800baa4 : - * @param pSDstatus: Pointer to the buffer that will contain the SD card status - * SD Status register) - * @retval error state - */ -static uint32_t SD_SendSDStatus(SD_HandleTypeDef *hsd, uint32_t *pSDstatus) -{ - 800baa4: b580 push {r7, lr} - 800baa6: b08c sub sp, #48 ; 0x30 - 800baa8: af00 add r7, sp, #0 - 800baaa: 6078 str r0, [r7, #4] - 800baac: 6039 str r1, [r7, #0] - SDMMC_DataInitTypeDef config; - uint32_t errorstate; - uint32_t tickstart = HAL_GetTick(); - 800baae: f7f6 fc59 bl 8002364 - 800bab2: 6278 str r0, [r7, #36] ; 0x24 - uint32_t count; - uint32_t *pData = pSDstatus; - 800bab4: 683b ldr r3, [r7, #0] - 800bab6: 62bb str r3, [r7, #40] ; 0x28 - - /* Check SD response */ - if ((SDMMC_GetResponse(hsd->Instance, SDMMC_RESP1) & SDMMC_CARD_LOCKED) == SDMMC_CARD_LOCKED) - 800bab8: 687b ldr r3, [r7, #4] - 800baba: 681b ldr r3, [r3, #0] - 800babc: 2100 movs r1, #0 - 800babe: 4618 mov r0, r3 - 800bac0: f002 fa9b bl 800dffa - 800bac4: 4603 mov r3, r0 - 800bac6: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 800baca: f1b3 7f00 cmp.w r3, #33554432 ; 0x2000000 - 800bace: d102 bne.n 800bad6 - { - return HAL_SD_ERROR_LOCK_UNLOCK_FAILED; - 800bad0: f44f 6300 mov.w r3, #2048 ; 0x800 - 800bad4: e0b0 b.n 800bc38 - } - - /* Set block size for card if it is not equal to current block size for card */ - errorstate = SDMMC_CmdBlockLength(hsd->Instance, 64U); - 800bad6: 687b ldr r3, [r7, #4] - 800bad8: 681b ldr r3, [r3, #0] - 800bada: 2140 movs r1, #64 ; 0x40 - 800badc: 4618 mov r0, r3 - 800bade: f002 facb bl 800e078 - 800bae2: 6238 str r0, [r7, #32] - if (errorstate != HAL_SD_ERROR_NONE) - 800bae4: 6a3b ldr r3, [r7, #32] - 800bae6: 2b00 cmp r3, #0 - 800bae8: d005 beq.n 800baf6 - { - hsd->ErrorCode |= HAL_SD_ERROR_NONE; - 800baea: 687b ldr r3, [r7, #4] - 800baec: 6b5a ldr r2, [r3, #52] ; 0x34 - 800baee: 687b ldr r3, [r7, #4] - 800baf0: 635a str r2, [r3, #52] ; 0x34 - return errorstate; - 800baf2: 6a3b ldr r3, [r7, #32] - 800baf4: e0a0 b.n 800bc38 - } - - /* Send CMD55 */ - errorstate = SDMMC_CmdAppCommand(hsd->Instance, (uint32_t)(hsd->SdCard.RelCardAdd << 16U)); - 800baf6: 687b ldr r3, [r7, #4] - 800baf8: 681a ldr r2, [r3, #0] - 800bafa: 687b ldr r3, [r7, #4] - 800bafc: 6c5b ldr r3, [r3, #68] ; 0x44 - 800bafe: 041b lsls r3, r3, #16 - 800bb00: 4619 mov r1, r3 - 800bb02: 4610 mov r0, r2 - 800bb04: f002 fc05 bl 800e312 - 800bb08: 6238 str r0, [r7, #32] - if (errorstate != HAL_SD_ERROR_NONE) - 800bb0a: 6a3b ldr r3, [r7, #32] - 800bb0c: 2b00 cmp r3, #0 - 800bb0e: d005 beq.n 800bb1c - { - hsd->ErrorCode |= HAL_SD_ERROR_NONE; - 800bb10: 687b ldr r3, [r7, #4] - 800bb12: 6b5a ldr r2, [r3, #52] ; 0x34 - 800bb14: 687b ldr r3, [r7, #4] - 800bb16: 635a str r2, [r3, #52] ; 0x34 - return errorstate; - 800bb18: 6a3b ldr r3, [r7, #32] - 800bb1a: e08d b.n 800bc38 - } - - /* Configure the SD DPSM (Data Path State Machine) */ - config.DataTimeOut = SDMMC_DATATIMEOUT; - 800bb1c: f04f 33ff mov.w r3, #4294967295 - 800bb20: 60bb str r3, [r7, #8] - config.DataLength = 64U; - 800bb22: 2340 movs r3, #64 ; 0x40 - 800bb24: 60fb str r3, [r7, #12] - config.DataBlockSize = SDMMC_DATABLOCK_SIZE_64B; - 800bb26: 2360 movs r3, #96 ; 0x60 - 800bb28: 613b str r3, [r7, #16] - config.TransferDir = SDMMC_TRANSFER_DIR_TO_SDMMC; - 800bb2a: 2302 movs r3, #2 - 800bb2c: 617b str r3, [r7, #20] - config.TransferMode = SDMMC_TRANSFER_MODE_BLOCK; - 800bb2e: 2300 movs r3, #0 - 800bb30: 61bb str r3, [r7, #24] - config.DPSM = SDMMC_DPSM_ENABLE; - 800bb32: 2301 movs r3, #1 - 800bb34: 61fb str r3, [r7, #28] - (void)SDMMC_ConfigData(hsd->Instance, &config); - 800bb36: 687b ldr r3, [r7, #4] - 800bb38: 681b ldr r3, [r3, #0] - 800bb3a: f107 0208 add.w r2, r7, #8 - 800bb3e: 4611 mov r1, r2 - 800bb40: 4618 mov r0, r3 - 800bb42: f002 fa6d bl 800e020 - - /* Send ACMD13 (SD_APP_STAUS) with argument as card's RCA */ - errorstate = SDMMC_CmdStatusRegister(hsd->Instance); - 800bb46: 687b ldr r3, [r7, #4] - 800bb48: 681b ldr r3, [r3, #0] - 800bb4a: 4618 mov r0, r3 - 800bb4c: f002 fced bl 800e52a - 800bb50: 6238 str r0, [r7, #32] - if (errorstate != HAL_SD_ERROR_NONE) - 800bb52: 6a3b ldr r3, [r7, #32] - 800bb54: 2b00 cmp r3, #0 - 800bb56: d02b beq.n 800bbb0 - { - hsd->ErrorCode |= HAL_SD_ERROR_NONE; - 800bb58: 687b ldr r3, [r7, #4] - 800bb5a: 6b5a ldr r2, [r3, #52] ; 0x34 - 800bb5c: 687b ldr r3, [r7, #4] - 800bb5e: 635a str r2, [r3, #52] ; 0x34 - return errorstate; - 800bb60: 6a3b ldr r3, [r7, #32] - 800bb62: e069 b.n 800bc38 - } - - /* Get status data */ - while (!__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXOVERR | SDMMC_FLAG_DCRCFAIL | SDMMC_FLAG_DTIMEOUT | SDMMC_FLAG_DATAEND)) - { - if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXFIFOHF)) - 800bb64: 687b ldr r3, [r7, #4] - 800bb66: 681b ldr r3, [r3, #0] - 800bb68: 6b5b ldr r3, [r3, #52] ; 0x34 - 800bb6a: f403 4300 and.w r3, r3, #32768 ; 0x8000 - 800bb6e: 2b00 cmp r3, #0 - 800bb70: d013 beq.n 800bb9a - { - for (count = 0U; count < 8U; count++) - 800bb72: 2300 movs r3, #0 - 800bb74: 62fb str r3, [r7, #44] ; 0x2c - 800bb76: e00d b.n 800bb94 - { - *pData = SDMMC_ReadFIFO(hsd->Instance); - 800bb78: 687b ldr r3, [r7, #4] - 800bb7a: 681b ldr r3, [r3, #0] - 800bb7c: 4618 mov r0, r3 - 800bb7e: f002 f9c7 bl 800df10 - 800bb82: 4602 mov r2, r0 - 800bb84: 6abb ldr r3, [r7, #40] ; 0x28 - 800bb86: 601a str r2, [r3, #0] - pData++; - 800bb88: 6abb ldr r3, [r7, #40] ; 0x28 - 800bb8a: 3304 adds r3, #4 - 800bb8c: 62bb str r3, [r7, #40] ; 0x28 - for (count = 0U; count < 8U; count++) - 800bb8e: 6afb ldr r3, [r7, #44] ; 0x2c - 800bb90: 3301 adds r3, #1 - 800bb92: 62fb str r3, [r7, #44] ; 0x2c - 800bb94: 6afb ldr r3, [r7, #44] ; 0x2c - 800bb96: 2b07 cmp r3, #7 - 800bb98: d9ee bls.n 800bb78 - } - } - - if ((HAL_GetTick() - tickstart) >= SDMMC_DATATIMEOUT) - 800bb9a: f7f6 fbe3 bl 8002364 - 800bb9e: 4602 mov r2, r0 - 800bba0: 6a7b ldr r3, [r7, #36] ; 0x24 - 800bba2: 1ad3 subs r3, r2, r3 - 800bba4: f1b3 3fff cmp.w r3, #4294967295 - 800bba8: d102 bne.n 800bbb0 - { - return HAL_SD_ERROR_TIMEOUT; - 800bbaa: f04f 4300 mov.w r3, #2147483648 ; 0x80000000 - 800bbae: e043 b.n 800bc38 - while (!__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXOVERR | SDMMC_FLAG_DCRCFAIL | SDMMC_FLAG_DTIMEOUT | SDMMC_FLAG_DATAEND)) - 800bbb0: 687b ldr r3, [r7, #4] - 800bbb2: 681b ldr r3, [r3, #0] - 800bbb4: 6b5b ldr r3, [r3, #52] ; 0x34 - 800bbb6: f403 7395 and.w r3, r3, #298 ; 0x12a - 800bbba: 2b00 cmp r3, #0 - 800bbbc: d0d2 beq.n 800bb64 - } - } - - if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DTIMEOUT)) - 800bbbe: 687b ldr r3, [r7, #4] - 800bbc0: 681b ldr r3, [r3, #0] - 800bbc2: 6b5b ldr r3, [r3, #52] ; 0x34 - 800bbc4: f003 0308 and.w r3, r3, #8 - 800bbc8: 2b00 cmp r3, #0 - 800bbca: d001 beq.n 800bbd0 - { - return HAL_SD_ERROR_DATA_TIMEOUT; - 800bbcc: 2308 movs r3, #8 - 800bbce: e033 b.n 800bc38 - } - else if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DCRCFAIL)) - 800bbd0: 687b ldr r3, [r7, #4] - 800bbd2: 681b ldr r3, [r3, #0] - 800bbd4: 6b5b ldr r3, [r3, #52] ; 0x34 - 800bbd6: f003 0302 and.w r3, r3, #2 - 800bbda: 2b00 cmp r3, #0 - 800bbdc: d001 beq.n 800bbe2 - { - return HAL_SD_ERROR_DATA_CRC_FAIL; - 800bbde: 2302 movs r3, #2 - 800bbe0: e02a b.n 800bc38 - } - else if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXOVERR)) - 800bbe2: 687b ldr r3, [r7, #4] - 800bbe4: 681b ldr r3, [r3, #0] - 800bbe6: 6b5b ldr r3, [r3, #52] ; 0x34 - 800bbe8: f003 0320 and.w r3, r3, #32 - 800bbec: 2b00 cmp r3, #0 - 800bbee: d017 beq.n 800bc20 - { - return HAL_SD_ERROR_RX_OVERRUN; - 800bbf0: 2320 movs r3, #32 - 800bbf2: e021 b.n 800bc38 - /* Nothing to do */ - } - - while ((__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DPSMACT))) - { - *pData = SDMMC_ReadFIFO(hsd->Instance); - 800bbf4: 687b ldr r3, [r7, #4] - 800bbf6: 681b ldr r3, [r3, #0] - 800bbf8: 4618 mov r0, r3 - 800bbfa: f002 f989 bl 800df10 - 800bbfe: 4602 mov r2, r0 - 800bc00: 6abb ldr r3, [r7, #40] ; 0x28 - 800bc02: 601a str r2, [r3, #0] - pData++; - 800bc04: 6abb ldr r3, [r7, #40] ; 0x28 - 800bc06: 3304 adds r3, #4 - 800bc08: 62bb str r3, [r7, #40] ; 0x28 - - if ((HAL_GetTick() - tickstart) >= SDMMC_DATATIMEOUT) - 800bc0a: f7f6 fbab bl 8002364 - 800bc0e: 4602 mov r2, r0 - 800bc10: 6a7b ldr r3, [r7, #36] ; 0x24 - 800bc12: 1ad3 subs r3, r2, r3 - 800bc14: f1b3 3fff cmp.w r3, #4294967295 - 800bc18: d102 bne.n 800bc20 - { - return HAL_SD_ERROR_TIMEOUT; - 800bc1a: f04f 4300 mov.w r3, #2147483648 ; 0x80000000 - 800bc1e: e00b b.n 800bc38 - while ((__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DPSMACT))) - 800bc20: 687b ldr r3, [r7, #4] - 800bc22: 681b ldr r3, [r3, #0] - 800bc24: 6b5b ldr r3, [r3, #52] ; 0x34 - 800bc26: f403 5380 and.w r3, r3, #4096 ; 0x1000 - 800bc2a: 2b00 cmp r3, #0 - 800bc2c: d1e2 bne.n 800bbf4 - } - } - - /* Clear all the static status flags*/ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_DATA_FLAGS); - 800bc2e: 687b ldr r3, [r7, #4] - 800bc30: 681b ldr r3, [r3, #0] - 800bc32: 4a03 ldr r2, [pc, #12] ; (800bc40 ) - 800bc34: 639a str r2, [r3, #56] ; 0x38 - - return HAL_SD_ERROR_NONE; - 800bc36: 2300 movs r3, #0 -} - 800bc38: 4618 mov r0, r3 - 800bc3a: 3730 adds r7, #48 ; 0x30 - 800bc3c: 46bd mov sp, r7 - 800bc3e: bd80 pop {r7, pc} - 800bc40: 18000f3a .word 0x18000f3a - -0800bc44 : - * @param pCardStatus: pointer to the buffer that will contain the SD card - * status (Card Status register) - * @retval error state - */ -static uint32_t SD_SendStatus(SD_HandleTypeDef *hsd, uint32_t *pCardStatus) -{ - 800bc44: b580 push {r7, lr} - 800bc46: b084 sub sp, #16 - 800bc48: af00 add r7, sp, #0 - 800bc4a: 6078 str r0, [r7, #4] - 800bc4c: 6039 str r1, [r7, #0] - uint32_t errorstate; - - if (pCardStatus == NULL) - 800bc4e: 683b ldr r3, [r7, #0] - 800bc50: 2b00 cmp r3, #0 - 800bc52: d102 bne.n 800bc5a - { - return HAL_SD_ERROR_PARAM; - 800bc54: f04f 6300 mov.w r3, #134217728 ; 0x8000000 - 800bc58: e018 b.n 800bc8c - } - - /* Send Status command */ - errorstate = SDMMC_CmdSendStatus(hsd->Instance, (uint32_t)(hsd->SdCard.RelCardAdd << 16U)); - 800bc5a: 687b ldr r3, [r7, #4] - 800bc5c: 681a ldr r2, [r3, #0] - 800bc5e: 687b ldr r3, [r7, #4] - 800bc60: 6c5b ldr r3, [r3, #68] ; 0x44 - 800bc62: 041b lsls r3, r3, #16 - 800bc64: 4619 mov r1, r3 - 800bc66: 4610 mov r0, r2 - 800bc68: f002 fc3c bl 800e4e4 - 800bc6c: 60f8 str r0, [r7, #12] - if (errorstate != HAL_SD_ERROR_NONE) - 800bc6e: 68fb ldr r3, [r7, #12] - 800bc70: 2b00 cmp r3, #0 - 800bc72: d001 beq.n 800bc78 - { - return errorstate; - 800bc74: 68fb ldr r3, [r7, #12] - 800bc76: e009 b.n 800bc8c - } - - /* Get SD card status */ - *pCardStatus = SDMMC_GetResponse(hsd->Instance, SDMMC_RESP1); - 800bc78: 687b ldr r3, [r7, #4] - 800bc7a: 681b ldr r3, [r3, #0] - 800bc7c: 2100 movs r1, #0 - 800bc7e: 4618 mov r0, r3 - 800bc80: f002 f9bb bl 800dffa - 800bc84: 4602 mov r2, r0 - 800bc86: 683b ldr r3, [r7, #0] - 800bc88: 601a str r2, [r3, #0] - - return HAL_SD_ERROR_NONE; - 800bc8a: 2300 movs r3, #0 -} - 800bc8c: 4618 mov r0, r3 - 800bc8e: 3710 adds r7, #16 - 800bc90: 46bd mov sp, r7 - 800bc92: bd80 pop {r7, pc} - -0800bc94 : - * @brief Enables the SDMMC wide bus mode. - * @param hsd: pointer to SD handle - * @retval error state - */ -static uint32_t SD_WideBus_Enable(SD_HandleTypeDef *hsd) -{ - 800bc94: b580 push {r7, lr} - 800bc96: b086 sub sp, #24 - 800bc98: af00 add r7, sp, #0 - 800bc9a: 6078 str r0, [r7, #4] - uint32_t scr[2U] = {0UL, 0UL}; - 800bc9c: 2300 movs r3, #0 - 800bc9e: 60fb str r3, [r7, #12] - 800bca0: 2300 movs r3, #0 - 800bca2: 613b str r3, [r7, #16] - uint32_t errorstate; - - if ((SDMMC_GetResponse(hsd->Instance, SDMMC_RESP1) & SDMMC_CARD_LOCKED) == SDMMC_CARD_LOCKED) - 800bca4: 687b ldr r3, [r7, #4] - 800bca6: 681b ldr r3, [r3, #0] - 800bca8: 2100 movs r1, #0 - 800bcaa: 4618 mov r0, r3 - 800bcac: f002 f9a5 bl 800dffa - 800bcb0: 4603 mov r3, r0 - 800bcb2: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 800bcb6: f1b3 7f00 cmp.w r3, #33554432 ; 0x2000000 - 800bcba: d102 bne.n 800bcc2 - { - return HAL_SD_ERROR_LOCK_UNLOCK_FAILED; - 800bcbc: f44f 6300 mov.w r3, #2048 ; 0x800 - 800bcc0: e02f b.n 800bd22 - } - - /* Get SCR Register */ - errorstate = SD_FindSCR(hsd, scr); - 800bcc2: f107 030c add.w r3, r7, #12 - 800bcc6: 4619 mov r1, r3 - 800bcc8: 6878 ldr r0, [r7, #4] - 800bcca: f000 f879 bl 800bdc0 - 800bcce: 6178 str r0, [r7, #20] - if (errorstate != HAL_SD_ERROR_NONE) - 800bcd0: 697b ldr r3, [r7, #20] - 800bcd2: 2b00 cmp r3, #0 - 800bcd4: d001 beq.n 800bcda - { - return errorstate; - 800bcd6: 697b ldr r3, [r7, #20] - 800bcd8: e023 b.n 800bd22 - } - - /* If requested card supports wide bus operation */ - if ((scr[1U] & SDMMC_WIDE_BUS_SUPPORT) != SDMMC_ALLZERO) - 800bcda: 693b ldr r3, [r7, #16] - 800bcdc: f403 2380 and.w r3, r3, #262144 ; 0x40000 - 800bce0: 2b00 cmp r3, #0 - 800bce2: d01c beq.n 800bd1e - { - /* Send CMD55 APP_CMD with argument as card's RCA.*/ - errorstate = SDMMC_CmdAppCommand(hsd->Instance, (uint32_t)(hsd->SdCard.RelCardAdd << 16U)); - 800bce4: 687b ldr r3, [r7, #4] - 800bce6: 681a ldr r2, [r3, #0] - 800bce8: 687b ldr r3, [r7, #4] - 800bcea: 6c5b ldr r3, [r3, #68] ; 0x44 - 800bcec: 041b lsls r3, r3, #16 - 800bcee: 4619 mov r1, r3 - 800bcf0: 4610 mov r0, r2 - 800bcf2: f002 fb0e bl 800e312 - 800bcf6: 6178 str r0, [r7, #20] - if (errorstate != HAL_SD_ERROR_NONE) - 800bcf8: 697b ldr r3, [r7, #20] - 800bcfa: 2b00 cmp r3, #0 - 800bcfc: d001 beq.n 800bd02 - { - return errorstate; - 800bcfe: 697b ldr r3, [r7, #20] - 800bd00: e00f b.n 800bd22 - } - - /* Send ACMD6 APP_CMD with argument as 2 for wide bus mode */ - errorstate = SDMMC_CmdBusWidth(hsd->Instance, 2U); - 800bd02: 687b ldr r3, [r7, #4] - 800bd04: 681b ldr r3, [r3, #0] - 800bd06: 2102 movs r1, #2 - 800bd08: 4618 mov r0, r3 - 800bd0a: f002 fb45 bl 800e398 - 800bd0e: 6178 str r0, [r7, #20] - if (errorstate != HAL_SD_ERROR_NONE) - 800bd10: 697b ldr r3, [r7, #20] - 800bd12: 2b00 cmp r3, #0 - 800bd14: d001 beq.n 800bd1a - { - return errorstate; - 800bd16: 697b ldr r3, [r7, #20] - 800bd18: e003 b.n 800bd22 - } - - return HAL_SD_ERROR_NONE; - 800bd1a: 2300 movs r3, #0 - 800bd1c: e001 b.n 800bd22 - } - else - { - return HAL_SD_ERROR_REQUEST_NOT_APPLICABLE; - 800bd1e: f04f 6380 mov.w r3, #67108864 ; 0x4000000 - } -} - 800bd22: 4618 mov r0, r3 - 800bd24: 3718 adds r7, #24 - 800bd26: 46bd mov sp, r7 - 800bd28: bd80 pop {r7, pc} - -0800bd2a : - * @brief Disables the SDMMC wide bus mode. - * @param hsd: Pointer to SD handle - * @retval error state - */ -static uint32_t SD_WideBus_Disable(SD_HandleTypeDef *hsd) -{ - 800bd2a: b580 push {r7, lr} - 800bd2c: b086 sub sp, #24 - 800bd2e: af00 add r7, sp, #0 - 800bd30: 6078 str r0, [r7, #4] - uint32_t scr[2U] = {0UL, 0UL}; - 800bd32: 2300 movs r3, #0 - 800bd34: 60fb str r3, [r7, #12] - 800bd36: 2300 movs r3, #0 - 800bd38: 613b str r3, [r7, #16] - uint32_t errorstate; - - if ((SDMMC_GetResponse(hsd->Instance, SDMMC_RESP1) & SDMMC_CARD_LOCKED) == SDMMC_CARD_LOCKED) - 800bd3a: 687b ldr r3, [r7, #4] - 800bd3c: 681b ldr r3, [r3, #0] - 800bd3e: 2100 movs r1, #0 - 800bd40: 4618 mov r0, r3 - 800bd42: f002 f95a bl 800dffa - 800bd46: 4603 mov r3, r0 - 800bd48: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 800bd4c: f1b3 7f00 cmp.w r3, #33554432 ; 0x2000000 - 800bd50: d102 bne.n 800bd58 - { - return HAL_SD_ERROR_LOCK_UNLOCK_FAILED; - 800bd52: f44f 6300 mov.w r3, #2048 ; 0x800 - 800bd56: e02f b.n 800bdb8 - } - - /* Get SCR Register */ - errorstate = SD_FindSCR(hsd, scr); - 800bd58: f107 030c add.w r3, r7, #12 - 800bd5c: 4619 mov r1, r3 - 800bd5e: 6878 ldr r0, [r7, #4] - 800bd60: f000 f82e bl 800bdc0 - 800bd64: 6178 str r0, [r7, #20] - if (errorstate != HAL_SD_ERROR_NONE) - 800bd66: 697b ldr r3, [r7, #20] - 800bd68: 2b00 cmp r3, #0 - 800bd6a: d001 beq.n 800bd70 - { - return errorstate; - 800bd6c: 697b ldr r3, [r7, #20] - 800bd6e: e023 b.n 800bdb8 - } - - /* If requested card supports 1 bit mode operation */ - if ((scr[1U] & SDMMC_SINGLE_BUS_SUPPORT) != SDMMC_ALLZERO) - 800bd70: 693b ldr r3, [r7, #16] - 800bd72: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 800bd76: 2b00 cmp r3, #0 - 800bd78: d01c beq.n 800bdb4 - { - /* Send CMD55 APP_CMD with argument as card's RCA */ - errorstate = SDMMC_CmdAppCommand(hsd->Instance, (uint32_t)(hsd->SdCard.RelCardAdd << 16U)); - 800bd7a: 687b ldr r3, [r7, #4] - 800bd7c: 681a ldr r2, [r3, #0] - 800bd7e: 687b ldr r3, [r7, #4] - 800bd80: 6c5b ldr r3, [r3, #68] ; 0x44 - 800bd82: 041b lsls r3, r3, #16 - 800bd84: 4619 mov r1, r3 - 800bd86: 4610 mov r0, r2 - 800bd88: f002 fac3 bl 800e312 - 800bd8c: 6178 str r0, [r7, #20] - if (errorstate != HAL_SD_ERROR_NONE) - 800bd8e: 697b ldr r3, [r7, #20] - 800bd90: 2b00 cmp r3, #0 - 800bd92: d001 beq.n 800bd98 - { - return errorstate; - 800bd94: 697b ldr r3, [r7, #20] - 800bd96: e00f b.n 800bdb8 - } - - /* Send ACMD6 APP_CMD with argument as 0 for single bus mode */ - errorstate = SDMMC_CmdBusWidth(hsd->Instance, 0U); - 800bd98: 687b ldr r3, [r7, #4] - 800bd9a: 681b ldr r3, [r3, #0] - 800bd9c: 2100 movs r1, #0 - 800bd9e: 4618 mov r0, r3 - 800bda0: f002 fafa bl 800e398 - 800bda4: 6178 str r0, [r7, #20] - if (errorstate != HAL_SD_ERROR_NONE) - 800bda6: 697b ldr r3, [r7, #20] - 800bda8: 2b00 cmp r3, #0 - 800bdaa: d001 beq.n 800bdb0 - { - return errorstate; - 800bdac: 697b ldr r3, [r7, #20] - 800bdae: e003 b.n 800bdb8 - } - - return HAL_SD_ERROR_NONE; - 800bdb0: 2300 movs r3, #0 - 800bdb2: e001 b.n 800bdb8 - } - else - { - return HAL_SD_ERROR_REQUEST_NOT_APPLICABLE; - 800bdb4: f04f 6380 mov.w r3, #67108864 ; 0x4000000 - } -} - 800bdb8: 4618 mov r0, r3 - 800bdba: 3718 adds r7, #24 - 800bdbc: 46bd mov sp, r7 - 800bdbe: bd80 pop {r7, pc} - -0800bdc0 : - * @param hsd: Pointer to SD handle - * @param pSCR: pointer to the buffer that will contain the SCR value - * @retval error state - */ -static uint32_t SD_FindSCR(SD_HandleTypeDef *hsd, uint32_t *pSCR) -{ - 800bdc0: b580 push {r7, lr} - 800bdc2: b08e sub sp, #56 ; 0x38 - 800bdc4: af00 add r7, sp, #0 - 800bdc6: 6078 str r0, [r7, #4] - 800bdc8: 6039 str r1, [r7, #0] - SDMMC_DataInitTypeDef config; - uint32_t errorstate; - uint32_t tickstart = HAL_GetTick(); - 800bdca: f7f6 facb bl 8002364 - 800bdce: 6338 str r0, [r7, #48] ; 0x30 - uint32_t index = 0U; - 800bdd0: 2300 movs r3, #0 - 800bdd2: 637b str r3, [r7, #52] ; 0x34 - uint32_t tempscr[2U] = {0UL, 0UL}; - 800bdd4: 2300 movs r3, #0 - 800bdd6: 60bb str r3, [r7, #8] - 800bdd8: 2300 movs r3, #0 - 800bdda: 60fb str r3, [r7, #12] - uint32_t *scr = pSCR; - 800bddc: 683b ldr r3, [r7, #0] - 800bdde: 62fb str r3, [r7, #44] ; 0x2c - - /* Set Block Size To 8 Bytes */ - errorstate = SDMMC_CmdBlockLength(hsd->Instance, 8U); - 800bde0: 687b ldr r3, [r7, #4] - 800bde2: 681b ldr r3, [r3, #0] - 800bde4: 2108 movs r1, #8 - 800bde6: 4618 mov r0, r3 - 800bde8: f002 f946 bl 800e078 - 800bdec: 62b8 str r0, [r7, #40] ; 0x28 - if (errorstate != HAL_SD_ERROR_NONE) - 800bdee: 6abb ldr r3, [r7, #40] ; 0x28 - 800bdf0: 2b00 cmp r3, #0 - 800bdf2: d001 beq.n 800bdf8 - { - return errorstate; - 800bdf4: 6abb ldr r3, [r7, #40] ; 0x28 - 800bdf6: e0ad b.n 800bf54 - } - - /* Send CMD55 APP_CMD with argument as card's RCA */ - errorstate = SDMMC_CmdAppCommand(hsd->Instance, (uint32_t)((hsd->SdCard.RelCardAdd) << 16U)); - 800bdf8: 687b ldr r3, [r7, #4] - 800bdfa: 681a ldr r2, [r3, #0] - 800bdfc: 687b ldr r3, [r7, #4] - 800bdfe: 6c5b ldr r3, [r3, #68] ; 0x44 - 800be00: 041b lsls r3, r3, #16 - 800be02: 4619 mov r1, r3 - 800be04: 4610 mov r0, r2 - 800be06: f002 fa84 bl 800e312 - 800be0a: 62b8 str r0, [r7, #40] ; 0x28 - if (errorstate != HAL_SD_ERROR_NONE) - 800be0c: 6abb ldr r3, [r7, #40] ; 0x28 - 800be0e: 2b00 cmp r3, #0 - 800be10: d001 beq.n 800be16 - { - return errorstate; - 800be12: 6abb ldr r3, [r7, #40] ; 0x28 - 800be14: e09e b.n 800bf54 - } - - config.DataTimeOut = SDMMC_DATATIMEOUT; - 800be16: f04f 33ff mov.w r3, #4294967295 - 800be1a: 613b str r3, [r7, #16] - config.DataLength = 8U; - 800be1c: 2308 movs r3, #8 - 800be1e: 617b str r3, [r7, #20] - config.DataBlockSize = SDMMC_DATABLOCK_SIZE_8B; - 800be20: 2330 movs r3, #48 ; 0x30 - 800be22: 61bb str r3, [r7, #24] - config.TransferDir = SDMMC_TRANSFER_DIR_TO_SDMMC; - 800be24: 2302 movs r3, #2 - 800be26: 61fb str r3, [r7, #28] - config.TransferMode = SDMMC_TRANSFER_MODE_BLOCK; - 800be28: 2300 movs r3, #0 - 800be2a: 623b str r3, [r7, #32] - config.DPSM = SDMMC_DPSM_ENABLE; - 800be2c: 2301 movs r3, #1 - 800be2e: 627b str r3, [r7, #36] ; 0x24 - (void)SDMMC_ConfigData(hsd->Instance, &config); - 800be30: 687b ldr r3, [r7, #4] - 800be32: 681b ldr r3, [r3, #0] - 800be34: f107 0210 add.w r2, r7, #16 - 800be38: 4611 mov r1, r2 - 800be3a: 4618 mov r0, r3 - 800be3c: f002 f8f0 bl 800e020 - - /* Send ACMD51 SD_APP_SEND_SCR with argument as 0 */ - errorstate = SDMMC_CmdSendSCR(hsd->Instance); - 800be40: 687b ldr r3, [r7, #4] - 800be42: 681b ldr r3, [r3, #0] - 800be44: 4618 mov r0, r3 - 800be46: f002 faca bl 800e3de - 800be4a: 62b8 str r0, [r7, #40] ; 0x28 - if (errorstate != HAL_SD_ERROR_NONE) - 800be4c: 6abb ldr r3, [r7, #40] ; 0x28 - 800be4e: 2b00 cmp r3, #0 - 800be50: d027 beq.n 800bea2 - { - return errorstate; - 800be52: 6abb ldr r3, [r7, #40] ; 0x28 - 800be54: e07e b.n 800bf54 - } - - while (!__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXOVERR | SDMMC_FLAG_DCRCFAIL | SDMMC_FLAG_DTIMEOUT | SDMMC_FLAG_DBCKEND | - SDMMC_FLAG_DATAEND)) - { - if ((!__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXFIFOE)) && (index == 0U)) - 800be56: 687b ldr r3, [r7, #4] - 800be58: 681b ldr r3, [r3, #0] - 800be5a: 6b5b ldr r3, [r3, #52] ; 0x34 - 800be5c: f403 2300 and.w r3, r3, #524288 ; 0x80000 - 800be60: 2b00 cmp r3, #0 - 800be62: d113 bne.n 800be8c - 800be64: 6b7b ldr r3, [r7, #52] ; 0x34 - 800be66: 2b00 cmp r3, #0 - 800be68: d110 bne.n 800be8c - { - tempscr[0] = SDMMC_ReadFIFO(hsd->Instance); - 800be6a: 687b ldr r3, [r7, #4] - 800be6c: 681b ldr r3, [r3, #0] - 800be6e: 4618 mov r0, r3 - 800be70: f002 f84e bl 800df10 - 800be74: 4603 mov r3, r0 - 800be76: 60bb str r3, [r7, #8] - tempscr[1] = SDMMC_ReadFIFO(hsd->Instance); - 800be78: 687b ldr r3, [r7, #4] - 800be7a: 681b ldr r3, [r3, #0] - 800be7c: 4618 mov r0, r3 - 800be7e: f002 f847 bl 800df10 - 800be82: 4603 mov r3, r0 - 800be84: 60fb str r3, [r7, #12] - index++; - 800be86: 6b7b ldr r3, [r7, #52] ; 0x34 - 800be88: 3301 adds r3, #1 - 800be8a: 637b str r3, [r7, #52] ; 0x34 - } - - - if ((HAL_GetTick() - tickstart) >= SDMMC_DATATIMEOUT) - 800be8c: f7f6 fa6a bl 8002364 - 800be90: 4602 mov r2, r0 - 800be92: 6b3b ldr r3, [r7, #48] ; 0x30 - 800be94: 1ad3 subs r3, r2, r3 - 800be96: f1b3 3fff cmp.w r3, #4294967295 - 800be9a: d102 bne.n 800bea2 - { - return HAL_SD_ERROR_TIMEOUT; - 800be9c: f04f 4300 mov.w r3, #2147483648 ; 0x80000000 - 800bea0: e058 b.n 800bf54 - while (!__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXOVERR | SDMMC_FLAG_DCRCFAIL | SDMMC_FLAG_DTIMEOUT | SDMMC_FLAG_DBCKEND | - 800bea2: 687b ldr r3, [r7, #4] - 800bea4: 681b ldr r3, [r3, #0] - 800bea6: 6b5a ldr r2, [r3, #52] ; 0x34 - 800bea8: f240 532a movw r3, #1322 ; 0x52a - 800beac: 4013 ands r3, r2 - 800beae: 2b00 cmp r3, #0 - 800beb0: d0d1 beq.n 800be56 - } - } - - if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DTIMEOUT)) - 800beb2: 687b ldr r3, [r7, #4] - 800beb4: 681b ldr r3, [r3, #0] - 800beb6: 6b5b ldr r3, [r3, #52] ; 0x34 - 800beb8: f003 0308 and.w r3, r3, #8 - 800bebc: 2b00 cmp r3, #0 - 800bebe: d005 beq.n 800becc - { - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_FLAG_DTIMEOUT); - 800bec0: 687b ldr r3, [r7, #4] - 800bec2: 681b ldr r3, [r3, #0] - 800bec4: 2208 movs r2, #8 - 800bec6: 639a str r2, [r3, #56] ; 0x38 - - return HAL_SD_ERROR_DATA_TIMEOUT; - 800bec8: 2308 movs r3, #8 - 800beca: e043 b.n 800bf54 - } - else if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DCRCFAIL)) - 800becc: 687b ldr r3, [r7, #4] - 800bece: 681b ldr r3, [r3, #0] - 800bed0: 6b5b ldr r3, [r3, #52] ; 0x34 - 800bed2: f003 0302 and.w r3, r3, #2 - 800bed6: 2b00 cmp r3, #0 - 800bed8: d005 beq.n 800bee6 - { - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_FLAG_DCRCFAIL); - 800beda: 687b ldr r3, [r7, #4] - 800bedc: 681b ldr r3, [r3, #0] - 800bede: 2202 movs r2, #2 - 800bee0: 639a str r2, [r3, #56] ; 0x38 - - return HAL_SD_ERROR_DATA_CRC_FAIL; - 800bee2: 2302 movs r3, #2 - 800bee4: e036 b.n 800bf54 - } - else if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXOVERR)) - 800bee6: 687b ldr r3, [r7, #4] - 800bee8: 681b ldr r3, [r3, #0] - 800beea: 6b5b ldr r3, [r3, #52] ; 0x34 - 800beec: f003 0320 and.w r3, r3, #32 - 800bef0: 2b00 cmp r3, #0 - 800bef2: d005 beq.n 800bf00 - { - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_FLAG_RXOVERR); - 800bef4: 687b ldr r3, [r7, #4] - 800bef6: 681b ldr r3, [r3, #0] - 800bef8: 2220 movs r2, #32 - 800befa: 639a str r2, [r3, #56] ; 0x38 - - return HAL_SD_ERROR_RX_OVERRUN; - 800befc: 2320 movs r3, #32 - 800befe: e029 b.n 800bf54 - } - else - { - /* No error flag set */ - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_DATA_FLAGS); - 800bf00: 687b ldr r3, [r7, #4] - 800bf02: 681b ldr r3, [r3, #0] - 800bf04: 4a15 ldr r2, [pc, #84] ; (800bf5c ) - 800bf06: 639a str r2, [r3, #56] ; 0x38 - - *scr = (((tempscr[1] & SDMMC_0TO7BITS) << 24) | ((tempscr[1] & SDMMC_8TO15BITS) << 8) | \ - 800bf08: 68fb ldr r3, [r7, #12] - 800bf0a: 061a lsls r2, r3, #24 - 800bf0c: 68fb ldr r3, [r7, #12] - 800bf0e: 021b lsls r3, r3, #8 - 800bf10: f403 037f and.w r3, r3, #16711680 ; 0xff0000 - 800bf14: 431a orrs r2, r3 - ((tempscr[1] & SDMMC_16TO23BITS) >> 8) | ((tempscr[1] & SDMMC_24TO31BITS) >> 24)); - 800bf16: 68fb ldr r3, [r7, #12] - 800bf18: 0a1b lsrs r3, r3, #8 - 800bf1a: f403 437f and.w r3, r3, #65280 ; 0xff00 - *scr = (((tempscr[1] & SDMMC_0TO7BITS) << 24) | ((tempscr[1] & SDMMC_8TO15BITS) << 8) | \ - 800bf1e: 431a orrs r2, r3 - ((tempscr[1] & SDMMC_16TO23BITS) >> 8) | ((tempscr[1] & SDMMC_24TO31BITS) >> 24)); - 800bf20: 68fb ldr r3, [r7, #12] - 800bf22: 0e1b lsrs r3, r3, #24 - 800bf24: 431a orrs r2, r3 - *scr = (((tempscr[1] & SDMMC_0TO7BITS) << 24) | ((tempscr[1] & SDMMC_8TO15BITS) << 8) | \ - 800bf26: 6afb ldr r3, [r7, #44] ; 0x2c - 800bf28: 601a str r2, [r3, #0] - scr++; - 800bf2a: 6afb ldr r3, [r7, #44] ; 0x2c - 800bf2c: 3304 adds r3, #4 - 800bf2e: 62fb str r3, [r7, #44] ; 0x2c - *scr = (((tempscr[0] & SDMMC_0TO7BITS) << 24) | ((tempscr[0] & SDMMC_8TO15BITS) << 8) | \ - 800bf30: 68bb ldr r3, [r7, #8] - 800bf32: 061a lsls r2, r3, #24 - 800bf34: 68bb ldr r3, [r7, #8] - 800bf36: 021b lsls r3, r3, #8 - 800bf38: f403 037f and.w r3, r3, #16711680 ; 0xff0000 - 800bf3c: 431a orrs r2, r3 - ((tempscr[0] & SDMMC_16TO23BITS) >> 8) | ((tempscr[0] & SDMMC_24TO31BITS) >> 24)); - 800bf3e: 68bb ldr r3, [r7, #8] - 800bf40: 0a1b lsrs r3, r3, #8 - 800bf42: f403 437f and.w r3, r3, #65280 ; 0xff00 - *scr = (((tempscr[0] & SDMMC_0TO7BITS) << 24) | ((tempscr[0] & SDMMC_8TO15BITS) << 8) | \ - 800bf46: 431a orrs r2, r3 - ((tempscr[0] & SDMMC_16TO23BITS) >> 8) | ((tempscr[0] & SDMMC_24TO31BITS) >> 24)); - 800bf48: 68bb ldr r3, [r7, #8] - 800bf4a: 0e1b lsrs r3, r3, #24 - 800bf4c: 431a orrs r2, r3 - *scr = (((tempscr[0] & SDMMC_0TO7BITS) << 24) | ((tempscr[0] & SDMMC_8TO15BITS) << 8) | \ - 800bf4e: 6afb ldr r3, [r7, #44] ; 0x2c - 800bf50: 601a str r2, [r3, #0] - - } - - return HAL_SD_ERROR_NONE; - 800bf52: 2300 movs r3, #0 -} - 800bf54: 4618 mov r0, r3 - 800bf56: 3738 adds r7, #56 ; 0x38 - 800bf58: 46bd mov sp, r7 - 800bf5a: bd80 pop {r7, pc} - 800bf5c: 18000f3a .word 0x18000f3a - -0800bf60 : - * @param hsd: pointer to a SD_HandleTypeDef structure that contains - * the configuration information. - * @retval None - */ -static void SD_Read_IT(SD_HandleTypeDef *hsd) -{ - 800bf60: b580 push {r7, lr} - 800bf62: b086 sub sp, #24 - 800bf64: af00 add r7, sp, #0 - 800bf66: 6078 str r0, [r7, #4] - uint32_t count; - uint32_t data; - uint8_t *tmp; - - tmp = hsd->pRxBuffPtr; - 800bf68: 687b ldr r3, [r7, #4] - 800bf6a: 6a5b ldr r3, [r3, #36] ; 0x24 - 800bf6c: 613b str r3, [r7, #16] - - if (hsd->RxXferSize >= 32U) - 800bf6e: 687b ldr r3, [r7, #4] - 800bf70: 6a9b ldr r3, [r3, #40] ; 0x28 - 800bf72: 2b1f cmp r3, #31 - 800bf74: d936 bls.n 800bfe4 - { - /* Read data from SDMMC Rx FIFO */ - for (count = 0U; count < 8U; count++) - 800bf76: 2300 movs r3, #0 - 800bf78: 617b str r3, [r7, #20] - 800bf7a: e027 b.n 800bfcc - { - data = SDMMC_ReadFIFO(hsd->Instance); - 800bf7c: 687b ldr r3, [r7, #4] - 800bf7e: 681b ldr r3, [r3, #0] - 800bf80: 4618 mov r0, r3 - 800bf82: f001 ffc5 bl 800df10 - 800bf86: 60f8 str r0, [r7, #12] - *tmp = (uint8_t)(data & 0xFFU); - 800bf88: 68fb ldr r3, [r7, #12] - 800bf8a: b2da uxtb r2, r3 - 800bf8c: 693b ldr r3, [r7, #16] - 800bf8e: 701a strb r2, [r3, #0] - tmp++; - 800bf90: 693b ldr r3, [r7, #16] - 800bf92: 3301 adds r3, #1 - 800bf94: 613b str r3, [r7, #16] - *tmp = (uint8_t)((data >> 8U) & 0xFFU); - 800bf96: 68fb ldr r3, [r7, #12] - 800bf98: 0a1b lsrs r3, r3, #8 - 800bf9a: b2da uxtb r2, r3 - 800bf9c: 693b ldr r3, [r7, #16] - 800bf9e: 701a strb r2, [r3, #0] - tmp++; - 800bfa0: 693b ldr r3, [r7, #16] - 800bfa2: 3301 adds r3, #1 - 800bfa4: 613b str r3, [r7, #16] - *tmp = (uint8_t)((data >> 16U) & 0xFFU); - 800bfa6: 68fb ldr r3, [r7, #12] - 800bfa8: 0c1b lsrs r3, r3, #16 - 800bfaa: b2da uxtb r2, r3 - 800bfac: 693b ldr r3, [r7, #16] - 800bfae: 701a strb r2, [r3, #0] - tmp++; - 800bfb0: 693b ldr r3, [r7, #16] - 800bfb2: 3301 adds r3, #1 - 800bfb4: 613b str r3, [r7, #16] - *tmp = (uint8_t)((data >> 24U) & 0xFFU); - 800bfb6: 68fb ldr r3, [r7, #12] - 800bfb8: 0e1b lsrs r3, r3, #24 - 800bfba: b2da uxtb r2, r3 - 800bfbc: 693b ldr r3, [r7, #16] - 800bfbe: 701a strb r2, [r3, #0] - tmp++; - 800bfc0: 693b ldr r3, [r7, #16] - 800bfc2: 3301 adds r3, #1 - 800bfc4: 613b str r3, [r7, #16] - for (count = 0U; count < 8U; count++) - 800bfc6: 697b ldr r3, [r7, #20] - 800bfc8: 3301 adds r3, #1 - 800bfca: 617b str r3, [r7, #20] - 800bfcc: 697b ldr r3, [r7, #20] - 800bfce: 2b07 cmp r3, #7 - 800bfd0: d9d4 bls.n 800bf7c - } - - hsd->pRxBuffPtr = tmp; - 800bfd2: 687b ldr r3, [r7, #4] - 800bfd4: 693a ldr r2, [r7, #16] - 800bfd6: 625a str r2, [r3, #36] ; 0x24 - hsd->RxXferSize -= 32U; - 800bfd8: 687b ldr r3, [r7, #4] - 800bfda: 6a9b ldr r3, [r3, #40] ; 0x28 - 800bfdc: f1a3 0220 sub.w r2, r3, #32 - 800bfe0: 687b ldr r3, [r7, #4] - 800bfe2: 629a str r2, [r3, #40] ; 0x28 - } -} - 800bfe4: bf00 nop - 800bfe6: 3718 adds r7, #24 - 800bfe8: 46bd mov sp, r7 - 800bfea: bd80 pop {r7, pc} - -0800bfec : - * @param hsd: pointer to a SD_HandleTypeDef structure that contains - * the configuration information. - * @retval None - */ -static void SD_Write_IT(SD_HandleTypeDef *hsd) -{ - 800bfec: b580 push {r7, lr} - 800bfee: b086 sub sp, #24 - 800bff0: af00 add r7, sp, #0 - 800bff2: 6078 str r0, [r7, #4] - uint32_t count; - uint32_t data; - const uint8_t *tmp; - - tmp = hsd->pTxBuffPtr; - 800bff4: 687b ldr r3, [r7, #4] - 800bff6: 69db ldr r3, [r3, #28] - 800bff8: 613b str r3, [r7, #16] - - if (hsd->TxXferSize >= 32U) - 800bffa: 687b ldr r3, [r7, #4] - 800bffc: 6a1b ldr r3, [r3, #32] - 800bffe: 2b1f cmp r3, #31 - 800c000: d93a bls.n 800c078 - { - /* Write data to SDMMC Tx FIFO */ - for (count = 0U; count < 8U; count++) - 800c002: 2300 movs r3, #0 - 800c004: 617b str r3, [r7, #20] - 800c006: e02b b.n 800c060 - { - data = (uint32_t)(*tmp); - 800c008: 693b ldr r3, [r7, #16] - 800c00a: 781b ldrb r3, [r3, #0] - 800c00c: 60fb str r3, [r7, #12] - tmp++; - 800c00e: 693b ldr r3, [r7, #16] - 800c010: 3301 adds r3, #1 - 800c012: 613b str r3, [r7, #16] - data |= ((uint32_t)(*tmp) << 8U); - 800c014: 693b ldr r3, [r7, #16] - 800c016: 781b ldrb r3, [r3, #0] - 800c018: 021a lsls r2, r3, #8 - 800c01a: 68fb ldr r3, [r7, #12] - 800c01c: 4313 orrs r3, r2 - 800c01e: 60fb str r3, [r7, #12] - tmp++; - 800c020: 693b ldr r3, [r7, #16] - 800c022: 3301 adds r3, #1 - 800c024: 613b str r3, [r7, #16] - data |= ((uint32_t)(*tmp) << 16U); - 800c026: 693b ldr r3, [r7, #16] - 800c028: 781b ldrb r3, [r3, #0] - 800c02a: 041a lsls r2, r3, #16 - 800c02c: 68fb ldr r3, [r7, #12] - 800c02e: 4313 orrs r3, r2 - 800c030: 60fb str r3, [r7, #12] - tmp++; - 800c032: 693b ldr r3, [r7, #16] - 800c034: 3301 adds r3, #1 - 800c036: 613b str r3, [r7, #16] - data |= ((uint32_t)(*tmp) << 24U); - 800c038: 693b ldr r3, [r7, #16] - 800c03a: 781b ldrb r3, [r3, #0] - 800c03c: 061a lsls r2, r3, #24 - 800c03e: 68fb ldr r3, [r7, #12] - 800c040: 4313 orrs r3, r2 - 800c042: 60fb str r3, [r7, #12] - tmp++; - 800c044: 693b ldr r3, [r7, #16] - 800c046: 3301 adds r3, #1 - 800c048: 613b str r3, [r7, #16] - (void)SDMMC_WriteFIFO(hsd->Instance, &data); - 800c04a: 687b ldr r3, [r7, #4] - 800c04c: 681b ldr r3, [r3, #0] - 800c04e: f107 020c add.w r2, r7, #12 - 800c052: 4611 mov r1, r2 - 800c054: 4618 mov r0, r3 - 800c056: f001 ff68 bl 800df2a - for (count = 0U; count < 8U; count++) - 800c05a: 697b ldr r3, [r7, #20] - 800c05c: 3301 adds r3, #1 - 800c05e: 617b str r3, [r7, #20] - 800c060: 697b ldr r3, [r7, #20] - 800c062: 2b07 cmp r3, #7 - 800c064: d9d0 bls.n 800c008 - } - - hsd->pTxBuffPtr = tmp; - 800c066: 687b ldr r3, [r7, #4] - 800c068: 693a ldr r2, [r7, #16] - 800c06a: 61da str r2, [r3, #28] - hsd->TxXferSize -= 32U; - 800c06c: 687b ldr r3, [r7, #4] - 800c06e: 6a1b ldr r3, [r3, #32] - 800c070: f1a3 0220 sub.w r2, r3, #32 - 800c074: 687b ldr r3, [r7, #4] - 800c076: 621a str r2, [r3, #32] - } -} - 800c078: bf00 nop - 800c07a: 3718 adds r7, #24 - 800c07c: 46bd mov sp, r7 - 800c07e: bd80 pop {r7, pc} - -0800c080 : - * @brief Read DMA Buffer 0 Transfer completed callbacks - * @param hsd: SD handle - * @retval None - */ -__weak void HAL_SDEx_Read_DMADoubleBuf0CpltCallback(SD_HandleTypeDef *hsd) -{ - 800c080: b480 push {r7} - 800c082: b083 sub sp, #12 - 800c084: af00 add r7, sp, #0 - 800c086: 6078 str r0, [r7, #4] - UNUSED(hsd); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_SDEx_Read_DMADoubleBuf0CpltCallback can be implemented in the user file - */ -} - 800c088: bf00 nop - 800c08a: 370c adds r7, #12 - 800c08c: 46bd mov sp, r7 - 800c08e: f85d 7b04 ldr.w r7, [sp], #4 - 800c092: 4770 bx lr - -0800c094 : - * @brief Read DMA Buffer 1 Transfer completed callbacks - * @param hsd: SD handle - * @retval None - */ -__weak void HAL_SDEx_Read_DMADoubleBuf1CpltCallback(SD_HandleTypeDef *hsd) -{ - 800c094: b480 push {r7} - 800c096: b083 sub sp, #12 - 800c098: af00 add r7, sp, #0 - 800c09a: 6078 str r0, [r7, #4] - UNUSED(hsd); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_SDEx_Read_DMADoubleBuf1CpltCallback can be implemented in the user file - */ -} - 800c09c: bf00 nop - 800c09e: 370c adds r7, #12 - 800c0a0: 46bd mov sp, r7 - 800c0a2: f85d 7b04 ldr.w r7, [sp], #4 - 800c0a6: 4770 bx lr - -0800c0a8 : - * @brief Write DMA Buffer 0 Transfer completed callbacks - * @param hsd: SD handle - * @retval None - */ -__weak void HAL_SDEx_Write_DMADoubleBuf0CpltCallback(SD_HandleTypeDef *hsd) -{ - 800c0a8: b480 push {r7} - 800c0aa: b083 sub sp, #12 - 800c0ac: af00 add r7, sp, #0 - 800c0ae: 6078 str r0, [r7, #4] - UNUSED(hsd); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_SDEx_Write_DMADoubleBuf0CpltCallback can be implemented in the user file - */ -} - 800c0b0: bf00 nop - 800c0b2: 370c adds r7, #12 - 800c0b4: 46bd mov sp, r7 - 800c0b6: f85d 7b04 ldr.w r7, [sp], #4 - 800c0ba: 4770 bx lr - -0800c0bc : - * @brief Write DMA Buffer 1 Transfer completed callbacks - * @param hsd: SD handle - * @retval None - */ -__weak void HAL_SDEx_Write_DMADoubleBuf1CpltCallback(SD_HandleTypeDef *hsd) -{ - 800c0bc: b480 push {r7} - 800c0be: b083 sub sp, #12 - 800c0c0: af00 add r7, sp, #0 - 800c0c2: 6078 str r0, [r7, #4] - UNUSED(hsd); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_SDEx_Write_DMADoubleBuf1CpltCallback can be implemented in the user file - */ -} - 800c0c4: bf00 nop - 800c0c6: 370c adds r7, #12 - 800c0c8: 46bd mov sp, r7 - 800c0ca: f85d 7b04 ldr.w r7, [sp], #4 - 800c0ce: 4770 bx lr - -0800c0d0 : - * 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) -{ - 800c0d0: b580 push {r7, lr} - 800c0d2: b082 sub sp, #8 - 800c0d4: af00 add r7, sp, #0 - 800c0d6: 6078 str r0, [r7, #4] - /* Check the TIM handle allocation */ - if (htim == NULL) - 800c0d8: 687b ldr r3, [r7, #4] - 800c0da: 2b00 cmp r3, #0 - 800c0dc: d101 bne.n 800c0e2 - { - return HAL_ERROR; - 800c0de: 2301 movs r3, #1 - 800c0e0: e049 b.n 800c176 - assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode)); - assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision)); - assert_param(IS_TIM_PERIOD(htim, htim->Init.Period)); - assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); - - if (htim->State == HAL_TIM_STATE_RESET) - 800c0e2: 687b ldr r3, [r7, #4] - 800c0e4: f893 303d ldrb.w r3, [r3, #61] ; 0x3d - 800c0e8: b2db uxtb r3, r3 - 800c0ea: 2b00 cmp r3, #0 - 800c0ec: d106 bne.n 800c0fc - { - /* Allocate lock resource and initialize it */ - htim->Lock = HAL_UNLOCKED; - 800c0ee: 687b ldr r3, [r7, #4] - 800c0f0: 2200 movs r2, #0 - 800c0f2: 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); - 800c0f6: 6878 ldr r0, [r7, #4] - 800c0f8: f7f5 fbf6 bl 80018e8 -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - - /* Set the TIM state */ - htim->State = HAL_TIM_STATE_BUSY; - 800c0fc: 687b ldr r3, [r7, #4] - 800c0fe: 2202 movs r2, #2 - 800c100: f883 203d strb.w r2, [r3, #61] ; 0x3d - - /* Set the Time Base configuration */ - TIM_Base_SetConfig(htim->Instance, &htim->Init); - 800c104: 687b ldr r3, [r7, #4] - 800c106: 681a ldr r2, [r3, #0] - 800c108: 687b ldr r3, [r7, #4] - 800c10a: 3304 adds r3, #4 - 800c10c: 4619 mov r1, r3 - 800c10e: 4610 mov r0, r2 - 800c110: f000 fafc bl 800c70c - - /* Initialize the DMA burst operation state */ - htim->DMABurstState = HAL_DMA_BURST_STATE_READY; - 800c114: 687b ldr r3, [r7, #4] - 800c116: 2201 movs r2, #1 - 800c118: f883 2048 strb.w r2, [r3, #72] ; 0x48 - - /* Initialize the TIM channels state */ - TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); - 800c11c: 687b ldr r3, [r7, #4] - 800c11e: 2201 movs r2, #1 - 800c120: f883 203e strb.w r2, [r3, #62] ; 0x3e - 800c124: 687b ldr r3, [r7, #4] - 800c126: 2201 movs r2, #1 - 800c128: f883 203f strb.w r2, [r3, #63] ; 0x3f - 800c12c: 687b ldr r3, [r7, #4] - 800c12e: 2201 movs r2, #1 - 800c130: f883 2040 strb.w r2, [r3, #64] ; 0x40 - 800c134: 687b ldr r3, [r7, #4] - 800c136: 2201 movs r2, #1 - 800c138: f883 2041 strb.w r2, [r3, #65] ; 0x41 - 800c13c: 687b ldr r3, [r7, #4] - 800c13e: 2201 movs r2, #1 - 800c140: f883 2042 strb.w r2, [r3, #66] ; 0x42 - 800c144: 687b ldr r3, [r7, #4] - 800c146: 2201 movs r2, #1 - 800c148: f883 2043 strb.w r2, [r3, #67] ; 0x43 - TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); - 800c14c: 687b ldr r3, [r7, #4] - 800c14e: 2201 movs r2, #1 - 800c150: f883 2044 strb.w r2, [r3, #68] ; 0x44 - 800c154: 687b ldr r3, [r7, #4] - 800c156: 2201 movs r2, #1 - 800c158: f883 2045 strb.w r2, [r3, #69] ; 0x45 - 800c15c: 687b ldr r3, [r7, #4] - 800c15e: 2201 movs r2, #1 - 800c160: f883 2046 strb.w r2, [r3, #70] ; 0x46 - 800c164: 687b ldr r3, [r7, #4] - 800c166: 2201 movs r2, #1 - 800c168: f883 2047 strb.w r2, [r3, #71] ; 0x47 - - /* Initialize the TIM state*/ - htim->State = HAL_TIM_STATE_READY; - 800c16c: 687b ldr r3, [r7, #4] - 800c16e: 2201 movs r2, #1 - 800c170: f883 203d strb.w r2, [r3, #61] ; 0x3d - - return HAL_OK; - 800c174: 2300 movs r3, #0 -} - 800c176: 4618 mov r0, r3 - 800c178: 3708 adds r7, #8 - 800c17a: 46bd mov sp, r7 - 800c17c: bd80 pop {r7, pc} - ... - -0800c180 : - * @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) -{ - 800c180: b480 push {r7} - 800c182: b085 sub sp, #20 - 800c184: af00 add r7, sp, #0 - 800c186: 6078 str r0, [r7, #4] - - /* Check the parameters */ - assert_param(IS_TIM_INSTANCE(htim->Instance)); - - /* Check the TIM state */ - if (htim->State != HAL_TIM_STATE_READY) - 800c188: 687b ldr r3, [r7, #4] - 800c18a: f893 303d ldrb.w r3, [r3, #61] ; 0x3d - 800c18e: b2db uxtb r3, r3 - 800c190: 2b01 cmp r3, #1 - 800c192: d001 beq.n 800c198 - { - return HAL_ERROR; - 800c194: 2301 movs r3, #1 - 800c196: e05e b.n 800c256 - } - - /* Set the TIM state */ - htim->State = HAL_TIM_STATE_BUSY; - 800c198: 687b ldr r3, [r7, #4] - 800c19a: 2202 movs r2, #2 - 800c19c: f883 203d strb.w r2, [r3, #61] ; 0x3d - - /* Enable the TIM Update interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE); - 800c1a0: 687b ldr r3, [r7, #4] - 800c1a2: 681b ldr r3, [r3, #0] - 800c1a4: 68da ldr r2, [r3, #12] - 800c1a6: 687b ldr r3, [r7, #4] - 800c1a8: 681b ldr r3, [r3, #0] - 800c1aa: f042 0201 orr.w r2, r2, #1 - 800c1ae: 60da str r2, [r3, #12] - - /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ - if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - 800c1b0: 687b ldr r3, [r7, #4] - 800c1b2: 681b ldr r3, [r3, #0] - 800c1b4: 4a2b ldr r2, [pc, #172] ; (800c264 ) - 800c1b6: 4293 cmp r3, r2 - 800c1b8: d02c beq.n 800c214 - 800c1ba: 687b ldr r3, [r7, #4] - 800c1bc: 681b ldr r3, [r3, #0] - 800c1be: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 - 800c1c2: d027 beq.n 800c214 - 800c1c4: 687b ldr r3, [r7, #4] - 800c1c6: 681b ldr r3, [r3, #0] - 800c1c8: 4a27 ldr r2, [pc, #156] ; (800c268 ) - 800c1ca: 4293 cmp r3, r2 - 800c1cc: d022 beq.n 800c214 - 800c1ce: 687b ldr r3, [r7, #4] - 800c1d0: 681b ldr r3, [r3, #0] - 800c1d2: 4a26 ldr r2, [pc, #152] ; (800c26c ) - 800c1d4: 4293 cmp r3, r2 - 800c1d6: d01d beq.n 800c214 - 800c1d8: 687b ldr r3, [r7, #4] - 800c1da: 681b ldr r3, [r3, #0] - 800c1dc: 4a24 ldr r2, [pc, #144] ; (800c270 ) - 800c1de: 4293 cmp r3, r2 - 800c1e0: d018 beq.n 800c214 - 800c1e2: 687b ldr r3, [r7, #4] - 800c1e4: 681b ldr r3, [r3, #0] - 800c1e6: 4a23 ldr r2, [pc, #140] ; (800c274 ) - 800c1e8: 4293 cmp r3, r2 - 800c1ea: d013 beq.n 800c214 - 800c1ec: 687b ldr r3, [r7, #4] - 800c1ee: 681b ldr r3, [r3, #0] - 800c1f0: 4a21 ldr r2, [pc, #132] ; (800c278 ) - 800c1f2: 4293 cmp r3, r2 - 800c1f4: d00e beq.n 800c214 - 800c1f6: 687b ldr r3, [r7, #4] - 800c1f8: 681b ldr r3, [r3, #0] - 800c1fa: 4a20 ldr r2, [pc, #128] ; (800c27c ) - 800c1fc: 4293 cmp r3, r2 - 800c1fe: d009 beq.n 800c214 - 800c200: 687b ldr r3, [r7, #4] - 800c202: 681b ldr r3, [r3, #0] - 800c204: 4a1e ldr r2, [pc, #120] ; (800c280 ) - 800c206: 4293 cmp r3, r2 - 800c208: d004 beq.n 800c214 - 800c20a: 687b ldr r3, [r7, #4] - 800c20c: 681b ldr r3, [r3, #0] - 800c20e: 4a1d ldr r2, [pc, #116] ; (800c284 ) - 800c210: 4293 cmp r3, r2 - 800c212: d115 bne.n 800c240 - { - tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; - 800c214: 687b ldr r3, [r7, #4] - 800c216: 681b ldr r3, [r3, #0] - 800c218: 689a ldr r2, [r3, #8] - 800c21a: 4b1b ldr r3, [pc, #108] ; (800c288 ) - 800c21c: 4013 ands r3, r2 - 800c21e: 60fb str r3, [r7, #12] - if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - 800c220: 68fb ldr r3, [r7, #12] - 800c222: 2b06 cmp r3, #6 - 800c224: d015 beq.n 800c252 - 800c226: 68fb ldr r3, [r7, #12] - 800c228: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 800c22c: d011 beq.n 800c252 - { - __HAL_TIM_ENABLE(htim); - 800c22e: 687b ldr r3, [r7, #4] - 800c230: 681b ldr r3, [r3, #0] - 800c232: 681a ldr r2, [r3, #0] - 800c234: 687b ldr r3, [r7, #4] - 800c236: 681b ldr r3, [r3, #0] - 800c238: f042 0201 orr.w r2, r2, #1 - 800c23c: 601a str r2, [r3, #0] - if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - 800c23e: e008 b.n 800c252 - } - } - else - { - __HAL_TIM_ENABLE(htim); - 800c240: 687b ldr r3, [r7, #4] - 800c242: 681b ldr r3, [r3, #0] - 800c244: 681a ldr r2, [r3, #0] - 800c246: 687b ldr r3, [r7, #4] - 800c248: 681b ldr r3, [r3, #0] - 800c24a: f042 0201 orr.w r2, r2, #1 - 800c24e: 601a str r2, [r3, #0] - 800c250: e000 b.n 800c254 - if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - 800c252: bf00 nop - } - - /* Return function status */ - return HAL_OK; - 800c254: 2300 movs r3, #0 -} - 800c256: 4618 mov r0, r3 - 800c258: 3714 adds r7, #20 - 800c25a: 46bd mov sp, r7 - 800c25c: f85d 7b04 ldr.w r7, [sp], #4 - 800c260: 4770 bx lr - 800c262: bf00 nop - 800c264: 40010000 .word 0x40010000 - 800c268: 40000400 .word 0x40000400 - 800c26c: 40000800 .word 0x40000800 - 800c270: 40000c00 .word 0x40000c00 - 800c274: 40010400 .word 0x40010400 - 800c278: 40001800 .word 0x40001800 - 800c27c: 40014000 .word 0x40014000 - 800c280: 4000e000 .word 0x4000e000 - 800c284: 4000e400 .word 0x4000e400 - 800c288: 00010007 .word 0x00010007 - -0800c28c : - * @brief This function handles TIM interrupts requests. - * @param htim TIM handle - * @retval None - */ -void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim) -{ - 800c28c: b580 push {r7, lr} - 800c28e: b082 sub sp, #8 - 800c290: af00 add r7, sp, #0 - 800c292: 6078 str r0, [r7, #4] - /* Capture compare 1 event */ - if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC1) != RESET) - 800c294: 687b ldr r3, [r7, #4] - 800c296: 681b ldr r3, [r3, #0] - 800c298: 691b ldr r3, [r3, #16] - 800c29a: f003 0302 and.w r3, r3, #2 - 800c29e: 2b02 cmp r3, #2 - 800c2a0: d122 bne.n 800c2e8 - { - if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC1) != RESET) - 800c2a2: 687b ldr r3, [r7, #4] - 800c2a4: 681b ldr r3, [r3, #0] - 800c2a6: 68db ldr r3, [r3, #12] - 800c2a8: f003 0302 and.w r3, r3, #2 - 800c2ac: 2b02 cmp r3, #2 - 800c2ae: d11b bne.n 800c2e8 - { - { - __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC1); - 800c2b0: 687b ldr r3, [r7, #4] - 800c2b2: 681b ldr r3, [r3, #0] - 800c2b4: f06f 0202 mvn.w r2, #2 - 800c2b8: 611a str r2, [r3, #16] - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; - 800c2ba: 687b ldr r3, [r7, #4] - 800c2bc: 2201 movs r2, #1 - 800c2be: 771a strb r2, [r3, #28] - - /* Input capture event */ - if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U) - 800c2c0: 687b ldr r3, [r7, #4] - 800c2c2: 681b ldr r3, [r3, #0] - 800c2c4: 699b ldr r3, [r3, #24] - 800c2c6: f003 0303 and.w r3, r3, #3 - 800c2ca: 2b00 cmp r3, #0 - 800c2cc: d003 beq.n 800c2d6 - { -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->IC_CaptureCallback(htim); -#else - HAL_TIM_IC_CaptureCallback(htim); - 800c2ce: 6878 ldr r0, [r7, #4] - 800c2d0: f000 f9fe bl 800c6d0 - 800c2d4: e005 b.n 800c2e2 - { -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->OC_DelayElapsedCallback(htim); - htim->PWM_PulseFinishedCallback(htim); -#else - HAL_TIM_OC_DelayElapsedCallback(htim); - 800c2d6: 6878 ldr r0, [r7, #4] - 800c2d8: f000 f9f0 bl 800c6bc - HAL_TIM_PWM_PulseFinishedCallback(htim); - 800c2dc: 6878 ldr r0, [r7, #4] - 800c2de: f000 fa01 bl 800c6e4 -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; - 800c2e2: 687b ldr r3, [r7, #4] - 800c2e4: 2200 movs r2, #0 - 800c2e6: 771a strb r2, [r3, #28] - } - } - } - /* Capture compare 2 event */ - if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC2) != RESET) - 800c2e8: 687b ldr r3, [r7, #4] - 800c2ea: 681b ldr r3, [r3, #0] - 800c2ec: 691b ldr r3, [r3, #16] - 800c2ee: f003 0304 and.w r3, r3, #4 - 800c2f2: 2b04 cmp r3, #4 - 800c2f4: d122 bne.n 800c33c - { - if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC2) != RESET) - 800c2f6: 687b ldr r3, [r7, #4] - 800c2f8: 681b ldr r3, [r3, #0] - 800c2fa: 68db ldr r3, [r3, #12] - 800c2fc: f003 0304 and.w r3, r3, #4 - 800c300: 2b04 cmp r3, #4 - 800c302: d11b bne.n 800c33c - { - __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC2); - 800c304: 687b ldr r3, [r7, #4] - 800c306: 681b ldr r3, [r3, #0] - 800c308: f06f 0204 mvn.w r2, #4 - 800c30c: 611a str r2, [r3, #16] - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; - 800c30e: 687b ldr r3, [r7, #4] - 800c310: 2202 movs r2, #2 - 800c312: 771a strb r2, [r3, #28] - /* Input capture event */ - if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U) - 800c314: 687b ldr r3, [r7, #4] - 800c316: 681b ldr r3, [r3, #0] - 800c318: 699b ldr r3, [r3, #24] - 800c31a: f403 7340 and.w r3, r3, #768 ; 0x300 - 800c31e: 2b00 cmp r3, #0 - 800c320: d003 beq.n 800c32a - { -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->IC_CaptureCallback(htim); -#else - HAL_TIM_IC_CaptureCallback(htim); - 800c322: 6878 ldr r0, [r7, #4] - 800c324: f000 f9d4 bl 800c6d0 - 800c328: e005 b.n 800c336 - { -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->OC_DelayElapsedCallback(htim); - htim->PWM_PulseFinishedCallback(htim); -#else - HAL_TIM_OC_DelayElapsedCallback(htim); - 800c32a: 6878 ldr r0, [r7, #4] - 800c32c: f000 f9c6 bl 800c6bc - HAL_TIM_PWM_PulseFinishedCallback(htim); - 800c330: 6878 ldr r0, [r7, #4] - 800c332: f000 f9d7 bl 800c6e4 -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; - 800c336: 687b ldr r3, [r7, #4] - 800c338: 2200 movs r2, #0 - 800c33a: 771a strb r2, [r3, #28] - } - } - /* Capture compare 3 event */ - if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC3) != RESET) - 800c33c: 687b ldr r3, [r7, #4] - 800c33e: 681b ldr r3, [r3, #0] - 800c340: 691b ldr r3, [r3, #16] - 800c342: f003 0308 and.w r3, r3, #8 - 800c346: 2b08 cmp r3, #8 - 800c348: d122 bne.n 800c390 - { - if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC3) != RESET) - 800c34a: 687b ldr r3, [r7, #4] - 800c34c: 681b ldr r3, [r3, #0] - 800c34e: 68db ldr r3, [r3, #12] - 800c350: f003 0308 and.w r3, r3, #8 - 800c354: 2b08 cmp r3, #8 - 800c356: d11b bne.n 800c390 - { - __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC3); - 800c358: 687b ldr r3, [r7, #4] - 800c35a: 681b ldr r3, [r3, #0] - 800c35c: f06f 0208 mvn.w r2, #8 - 800c360: 611a str r2, [r3, #16] - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; - 800c362: 687b ldr r3, [r7, #4] - 800c364: 2204 movs r2, #4 - 800c366: 771a strb r2, [r3, #28] - /* Input capture event */ - if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U) - 800c368: 687b ldr r3, [r7, #4] - 800c36a: 681b ldr r3, [r3, #0] - 800c36c: 69db ldr r3, [r3, #28] - 800c36e: f003 0303 and.w r3, r3, #3 - 800c372: 2b00 cmp r3, #0 - 800c374: d003 beq.n 800c37e - { -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->IC_CaptureCallback(htim); -#else - HAL_TIM_IC_CaptureCallback(htim); - 800c376: 6878 ldr r0, [r7, #4] - 800c378: f000 f9aa bl 800c6d0 - 800c37c: e005 b.n 800c38a - { -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->OC_DelayElapsedCallback(htim); - htim->PWM_PulseFinishedCallback(htim); -#else - HAL_TIM_OC_DelayElapsedCallback(htim); - 800c37e: 6878 ldr r0, [r7, #4] - 800c380: f000 f99c bl 800c6bc - HAL_TIM_PWM_PulseFinishedCallback(htim); - 800c384: 6878 ldr r0, [r7, #4] - 800c386: f000 f9ad bl 800c6e4 -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; - 800c38a: 687b ldr r3, [r7, #4] - 800c38c: 2200 movs r2, #0 - 800c38e: 771a strb r2, [r3, #28] - } - } - /* Capture compare 4 event */ - if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC4) != RESET) - 800c390: 687b ldr r3, [r7, #4] - 800c392: 681b ldr r3, [r3, #0] - 800c394: 691b ldr r3, [r3, #16] - 800c396: f003 0310 and.w r3, r3, #16 - 800c39a: 2b10 cmp r3, #16 - 800c39c: d122 bne.n 800c3e4 - { - if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC4) != RESET) - 800c39e: 687b ldr r3, [r7, #4] - 800c3a0: 681b ldr r3, [r3, #0] - 800c3a2: 68db ldr r3, [r3, #12] - 800c3a4: f003 0310 and.w r3, r3, #16 - 800c3a8: 2b10 cmp r3, #16 - 800c3aa: d11b bne.n 800c3e4 - { - __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC4); - 800c3ac: 687b ldr r3, [r7, #4] - 800c3ae: 681b ldr r3, [r3, #0] - 800c3b0: f06f 0210 mvn.w r2, #16 - 800c3b4: 611a str r2, [r3, #16] - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; - 800c3b6: 687b ldr r3, [r7, #4] - 800c3b8: 2208 movs r2, #8 - 800c3ba: 771a strb r2, [r3, #28] - /* Input capture event */ - if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U) - 800c3bc: 687b ldr r3, [r7, #4] - 800c3be: 681b ldr r3, [r3, #0] - 800c3c0: 69db ldr r3, [r3, #28] - 800c3c2: f403 7340 and.w r3, r3, #768 ; 0x300 - 800c3c6: 2b00 cmp r3, #0 - 800c3c8: d003 beq.n 800c3d2 - { -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->IC_CaptureCallback(htim); -#else - HAL_TIM_IC_CaptureCallback(htim); - 800c3ca: 6878 ldr r0, [r7, #4] - 800c3cc: f000 f980 bl 800c6d0 - 800c3d0: e005 b.n 800c3de - { -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->OC_DelayElapsedCallback(htim); - htim->PWM_PulseFinishedCallback(htim); -#else - HAL_TIM_OC_DelayElapsedCallback(htim); - 800c3d2: 6878 ldr r0, [r7, #4] - 800c3d4: f000 f972 bl 800c6bc - HAL_TIM_PWM_PulseFinishedCallback(htim); - 800c3d8: 6878 ldr r0, [r7, #4] - 800c3da: f000 f983 bl 800c6e4 -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; - 800c3de: 687b ldr r3, [r7, #4] - 800c3e0: 2200 movs r2, #0 - 800c3e2: 771a strb r2, [r3, #28] - } - } - /* TIM Update event */ - if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_UPDATE) != RESET) - 800c3e4: 687b ldr r3, [r7, #4] - 800c3e6: 681b ldr r3, [r3, #0] - 800c3e8: 691b ldr r3, [r3, #16] - 800c3ea: f003 0301 and.w r3, r3, #1 - 800c3ee: 2b01 cmp r3, #1 - 800c3f0: d10e bne.n 800c410 - { - if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_UPDATE) != RESET) - 800c3f2: 687b ldr r3, [r7, #4] - 800c3f4: 681b ldr r3, [r3, #0] - 800c3f6: 68db ldr r3, [r3, #12] - 800c3f8: f003 0301 and.w r3, r3, #1 - 800c3fc: 2b01 cmp r3, #1 - 800c3fe: d107 bne.n 800c410 - { - __HAL_TIM_CLEAR_IT(htim, TIM_IT_UPDATE); - 800c400: 687b ldr r3, [r7, #4] - 800c402: 681b ldr r3, [r3, #0] - 800c404: f06f 0201 mvn.w r2, #1 - 800c408: 611a str r2, [r3, #16] -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->PeriodElapsedCallback(htim); -#else - HAL_TIM_PeriodElapsedCallback(htim); - 800c40a: 6878 ldr r0, [r7, #4] - 800c40c: f7f5 f860 bl 80014d0 -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - } - /* TIM Break input event */ - if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_BREAK) != RESET) - 800c410: 687b ldr r3, [r7, #4] - 800c412: 681b ldr r3, [r3, #0] - 800c414: 691b ldr r3, [r3, #16] - 800c416: f003 0380 and.w r3, r3, #128 ; 0x80 - 800c41a: 2b80 cmp r3, #128 ; 0x80 - 800c41c: d10e bne.n 800c43c - { - if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_BREAK) != RESET) - 800c41e: 687b ldr r3, [r7, #4] - 800c420: 681b ldr r3, [r3, #0] - 800c422: 68db ldr r3, [r3, #12] - 800c424: f003 0380 and.w r3, r3, #128 ; 0x80 - 800c428: 2b80 cmp r3, #128 ; 0x80 - 800c42a: d107 bne.n 800c43c - { - __HAL_TIM_CLEAR_IT(htim, TIM_IT_BREAK); - 800c42c: 687b ldr r3, [r7, #4] - 800c42e: 681b ldr r3, [r3, #0] - 800c430: f06f 0280 mvn.w r2, #128 ; 0x80 - 800c434: 611a str r2, [r3, #16] -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->BreakCallback(htim); -#else - HAL_TIMEx_BreakCallback(htim); - 800c436: 6878 ldr r0, [r7, #4] - 800c438: f000 fb52 bl 800cae0 -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - } - /* TIM Break2 input event */ - if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_BREAK2) != RESET) - 800c43c: 687b ldr r3, [r7, #4] - 800c43e: 681b ldr r3, [r3, #0] - 800c440: 691b ldr r3, [r3, #16] - 800c442: f403 7380 and.w r3, r3, #256 ; 0x100 - 800c446: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 800c44a: d10e bne.n 800c46a - { - if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_BREAK) != RESET) - 800c44c: 687b ldr r3, [r7, #4] - 800c44e: 681b ldr r3, [r3, #0] - 800c450: 68db ldr r3, [r3, #12] - 800c452: f003 0380 and.w r3, r3, #128 ; 0x80 - 800c456: 2b80 cmp r3, #128 ; 0x80 - 800c458: d107 bne.n 800c46a - { - __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK2); - 800c45a: 687b ldr r3, [r7, #4] - 800c45c: 681b ldr r3, [r3, #0] - 800c45e: f46f 7280 mvn.w r2, #256 ; 0x100 - 800c462: 611a str r2, [r3, #16] -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->Break2Callback(htim); -#else - HAL_TIMEx_Break2Callback(htim); - 800c464: 6878 ldr r0, [r7, #4] - 800c466: f000 fb45 bl 800caf4 -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - } - /* TIM Trigger detection event */ - if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_TRIGGER) != RESET) - 800c46a: 687b ldr r3, [r7, #4] - 800c46c: 681b ldr r3, [r3, #0] - 800c46e: 691b ldr r3, [r3, #16] - 800c470: f003 0340 and.w r3, r3, #64 ; 0x40 - 800c474: 2b40 cmp r3, #64 ; 0x40 - 800c476: d10e bne.n 800c496 - { - if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_TRIGGER) != RESET) - 800c478: 687b ldr r3, [r7, #4] - 800c47a: 681b ldr r3, [r3, #0] - 800c47c: 68db ldr r3, [r3, #12] - 800c47e: f003 0340 and.w r3, r3, #64 ; 0x40 - 800c482: 2b40 cmp r3, #64 ; 0x40 - 800c484: d107 bne.n 800c496 - { - __HAL_TIM_CLEAR_IT(htim, TIM_IT_TRIGGER); - 800c486: 687b ldr r3, [r7, #4] - 800c488: 681b ldr r3, [r3, #0] - 800c48a: f06f 0240 mvn.w r2, #64 ; 0x40 - 800c48e: 611a str r2, [r3, #16] -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->TriggerCallback(htim); -#else - HAL_TIM_TriggerCallback(htim); - 800c490: 6878 ldr r0, [r7, #4] - 800c492: f000 f931 bl 800c6f8 -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - } - /* TIM commutation event */ - if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_COM) != RESET) - 800c496: 687b ldr r3, [r7, #4] - 800c498: 681b ldr r3, [r3, #0] - 800c49a: 691b ldr r3, [r3, #16] - 800c49c: f003 0320 and.w r3, r3, #32 - 800c4a0: 2b20 cmp r3, #32 - 800c4a2: d10e bne.n 800c4c2 - { - if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_COM) != RESET) - 800c4a4: 687b ldr r3, [r7, #4] - 800c4a6: 681b ldr r3, [r3, #0] - 800c4a8: 68db ldr r3, [r3, #12] - 800c4aa: f003 0320 and.w r3, r3, #32 - 800c4ae: 2b20 cmp r3, #32 - 800c4b0: d107 bne.n 800c4c2 - { - __HAL_TIM_CLEAR_IT(htim, TIM_FLAG_COM); - 800c4b2: 687b ldr r3, [r7, #4] - 800c4b4: 681b ldr r3, [r3, #0] - 800c4b6: f06f 0220 mvn.w r2, #32 - 800c4ba: 611a str r2, [r3, #16] -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->CommutationCallback(htim); -#else - HAL_TIMEx_CommutCallback(htim); - 800c4bc: 6878 ldr r0, [r7, #4] - 800c4be: f000 fb05 bl 800cacc -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - } -} - 800c4c2: bf00 nop - 800c4c4: 3708 adds r7, #8 - 800c4c6: 46bd mov sp, r7 - 800c4c8: bd80 pop {r7, pc} - ... - -0800c4cc : - * @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, const TIM_ClockConfigTypeDef *sClockSourceConfig) -{ - 800c4cc: b580 push {r7, lr} - 800c4ce: b084 sub sp, #16 - 800c4d0: af00 add r7, sp, #0 - 800c4d2: 6078 str r0, [r7, #4] - 800c4d4: 6039 str r1, [r7, #0] - HAL_StatusTypeDef status = HAL_OK; - 800c4d6: 2300 movs r3, #0 - 800c4d8: 73fb strb r3, [r7, #15] - uint32_t tmpsmcr; - - /* Process Locked */ - __HAL_LOCK(htim); - 800c4da: 687b ldr r3, [r7, #4] - 800c4dc: f893 303c ldrb.w r3, [r3, #60] ; 0x3c - 800c4e0: 2b01 cmp r3, #1 - 800c4e2: d101 bne.n 800c4e8 - 800c4e4: 2302 movs r3, #2 - 800c4e6: e0dc b.n 800c6a2 - 800c4e8: 687b ldr r3, [r7, #4] - 800c4ea: 2201 movs r2, #1 - 800c4ec: f883 203c strb.w r2, [r3, #60] ; 0x3c - - htim->State = HAL_TIM_STATE_BUSY; - 800c4f0: 687b ldr r3, [r7, #4] - 800c4f2: 2202 movs r2, #2 - 800c4f4: 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; - 800c4f8: 687b ldr r3, [r7, #4] - 800c4fa: 681b ldr r3, [r3, #0] - 800c4fc: 689b ldr r3, [r3, #8] - 800c4fe: 60bb str r3, [r7, #8] - tmpsmcr &= ~(TIM_SMCR_SMS | TIM_SMCR_TS); - 800c500: 68ba ldr r2, [r7, #8] - 800c502: 4b6a ldr r3, [pc, #424] ; (800c6ac ) - 800c504: 4013 ands r3, r2 - 800c506: 60bb str r3, [r7, #8] - tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP); - 800c508: 68bb ldr r3, [r7, #8] - 800c50a: f423 437f bic.w r3, r3, #65280 ; 0xff00 - 800c50e: 60bb str r3, [r7, #8] - htim->Instance->SMCR = tmpsmcr; - 800c510: 687b ldr r3, [r7, #4] - 800c512: 681b ldr r3, [r3, #0] - 800c514: 68ba ldr r2, [r7, #8] - 800c516: 609a str r2, [r3, #8] - - switch (sClockSourceConfig->ClockSource) - 800c518: 683b ldr r3, [r7, #0] - 800c51a: 681b ldr r3, [r3, #0] - 800c51c: 4a64 ldr r2, [pc, #400] ; (800c6b0 ) - 800c51e: 4293 cmp r3, r2 - 800c520: f000 80a9 beq.w 800c676 - 800c524: 4a62 ldr r2, [pc, #392] ; (800c6b0 ) - 800c526: 4293 cmp r3, r2 - 800c528: f200 80ae bhi.w 800c688 - 800c52c: 4a61 ldr r2, [pc, #388] ; (800c6b4 ) - 800c52e: 4293 cmp r3, r2 - 800c530: f000 80a1 beq.w 800c676 - 800c534: 4a5f ldr r2, [pc, #380] ; (800c6b4 ) - 800c536: 4293 cmp r3, r2 - 800c538: f200 80a6 bhi.w 800c688 - 800c53c: 4a5e ldr r2, [pc, #376] ; (800c6b8 ) - 800c53e: 4293 cmp r3, r2 - 800c540: f000 8099 beq.w 800c676 - 800c544: 4a5c ldr r2, [pc, #368] ; (800c6b8 ) - 800c546: 4293 cmp r3, r2 - 800c548: f200 809e bhi.w 800c688 - 800c54c: f1b3 1f10 cmp.w r3, #1048592 ; 0x100010 - 800c550: f000 8091 beq.w 800c676 - 800c554: f1b3 1f10 cmp.w r3, #1048592 ; 0x100010 - 800c558: f200 8096 bhi.w 800c688 - 800c55c: f5b3 1f80 cmp.w r3, #1048576 ; 0x100000 - 800c560: f000 8089 beq.w 800c676 - 800c564: f5b3 1f80 cmp.w r3, #1048576 ; 0x100000 - 800c568: f200 808e bhi.w 800c688 - 800c56c: f5b3 5f00 cmp.w r3, #8192 ; 0x2000 - 800c570: d03e beq.n 800c5f0 - 800c572: f5b3 5f00 cmp.w r3, #8192 ; 0x2000 - 800c576: f200 8087 bhi.w 800c688 - 800c57a: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 - 800c57e: f000 8086 beq.w 800c68e - 800c582: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 - 800c586: d87f bhi.n 800c688 - 800c588: 2b70 cmp r3, #112 ; 0x70 - 800c58a: d01a beq.n 800c5c2 - 800c58c: 2b70 cmp r3, #112 ; 0x70 - 800c58e: d87b bhi.n 800c688 - 800c590: 2b60 cmp r3, #96 ; 0x60 - 800c592: d050 beq.n 800c636 - 800c594: 2b60 cmp r3, #96 ; 0x60 - 800c596: d877 bhi.n 800c688 - 800c598: 2b50 cmp r3, #80 ; 0x50 - 800c59a: d03c beq.n 800c616 - 800c59c: 2b50 cmp r3, #80 ; 0x50 - 800c59e: d873 bhi.n 800c688 - 800c5a0: 2b40 cmp r3, #64 ; 0x40 - 800c5a2: d058 beq.n 800c656 - 800c5a4: 2b40 cmp r3, #64 ; 0x40 - 800c5a6: d86f bhi.n 800c688 - 800c5a8: 2b30 cmp r3, #48 ; 0x30 - 800c5aa: d064 beq.n 800c676 - 800c5ac: 2b30 cmp r3, #48 ; 0x30 - 800c5ae: d86b bhi.n 800c688 - 800c5b0: 2b20 cmp r3, #32 - 800c5b2: d060 beq.n 800c676 - 800c5b4: 2b20 cmp r3, #32 - 800c5b6: d867 bhi.n 800c688 - 800c5b8: 2b00 cmp r3, #0 - 800c5ba: d05c beq.n 800c676 - 800c5bc: 2b10 cmp r3, #16 - 800c5be: d05a beq.n 800c676 - 800c5c0: e062 b.n 800c688 - assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler)); - assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); - assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); - - /* Configure the ETR Clock source */ - TIM_ETR_SetConfig(htim->Instance, - 800c5c2: 687b ldr r3, [r7, #4] - 800c5c4: 6818 ldr r0, [r3, #0] - sClockSourceConfig->ClockPrescaler, - 800c5c6: 683b ldr r3, [r7, #0] - 800c5c8: 6899 ldr r1, [r3, #8] - sClockSourceConfig->ClockPolarity, - 800c5ca: 683b ldr r3, [r7, #0] - 800c5cc: 685a ldr r2, [r3, #4] - sClockSourceConfig->ClockFilter); - 800c5ce: 683b ldr r3, [r7, #0] - 800c5d0: 68db ldr r3, [r3, #12] - TIM_ETR_SetConfig(htim->Instance, - 800c5d2: f000 f9bf bl 800c954 - - /* Select the External clock mode1 and the ETRF trigger */ - tmpsmcr = htim->Instance->SMCR; - 800c5d6: 687b ldr r3, [r7, #4] - 800c5d8: 681b ldr r3, [r3, #0] - 800c5da: 689b ldr r3, [r3, #8] - 800c5dc: 60bb str r3, [r7, #8] - tmpsmcr |= (TIM_SLAVEMODE_EXTERNAL1 | TIM_CLOCKSOURCE_ETRMODE1); - 800c5de: 68bb ldr r3, [r7, #8] - 800c5e0: f043 0377 orr.w r3, r3, #119 ; 0x77 - 800c5e4: 60bb str r3, [r7, #8] - /* Write to TIMx SMCR */ - htim->Instance->SMCR = tmpsmcr; - 800c5e6: 687b ldr r3, [r7, #4] - 800c5e8: 681b ldr r3, [r3, #0] - 800c5ea: 68ba ldr r2, [r7, #8] - 800c5ec: 609a str r2, [r3, #8] - break; - 800c5ee: e04f b.n 800c690 - assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler)); - assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); - assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); - - /* Configure the ETR Clock source */ - TIM_ETR_SetConfig(htim->Instance, - 800c5f0: 687b ldr r3, [r7, #4] - 800c5f2: 6818 ldr r0, [r3, #0] - sClockSourceConfig->ClockPrescaler, - 800c5f4: 683b ldr r3, [r7, #0] - 800c5f6: 6899 ldr r1, [r3, #8] - sClockSourceConfig->ClockPolarity, - 800c5f8: 683b ldr r3, [r7, #0] - 800c5fa: 685a ldr r2, [r3, #4] - sClockSourceConfig->ClockFilter); - 800c5fc: 683b ldr r3, [r7, #0] - 800c5fe: 68db ldr r3, [r3, #12] - TIM_ETR_SetConfig(htim->Instance, - 800c600: f000 f9a8 bl 800c954 - /* Enable the External clock mode2 */ - htim->Instance->SMCR |= TIM_SMCR_ECE; - 800c604: 687b ldr r3, [r7, #4] - 800c606: 681b ldr r3, [r3, #0] - 800c608: 689a ldr r2, [r3, #8] - 800c60a: 687b ldr r3, [r7, #4] - 800c60c: 681b ldr r3, [r3, #0] - 800c60e: f442 4280 orr.w r2, r2, #16384 ; 0x4000 - 800c612: 609a str r2, [r3, #8] - break; - 800c614: e03c b.n 800c690 - - /* Check TI1 input conditioning related parameters */ - assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); - assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); - - TIM_TI1_ConfigInputStage(htim->Instance, - 800c616: 687b ldr r3, [r7, #4] - 800c618: 6818 ldr r0, [r3, #0] - sClockSourceConfig->ClockPolarity, - 800c61a: 683b ldr r3, [r7, #0] - 800c61c: 6859 ldr r1, [r3, #4] - sClockSourceConfig->ClockFilter); - 800c61e: 683b ldr r3, [r7, #0] - 800c620: 68db ldr r3, [r3, #12] - TIM_TI1_ConfigInputStage(htim->Instance, - 800c622: 461a mov r2, r3 - 800c624: f000 f918 bl 800c858 - TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1); - 800c628: 687b ldr r3, [r7, #4] - 800c62a: 681b ldr r3, [r3, #0] - 800c62c: 2150 movs r1, #80 ; 0x50 - 800c62e: 4618 mov r0, r3 - 800c630: f000 f972 bl 800c918 - break; - 800c634: e02c b.n 800c690 - - /* Check TI2 input conditioning related parameters */ - assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); - assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); - - TIM_TI2_ConfigInputStage(htim->Instance, - 800c636: 687b ldr r3, [r7, #4] - 800c638: 6818 ldr r0, [r3, #0] - sClockSourceConfig->ClockPolarity, - 800c63a: 683b ldr r3, [r7, #0] - 800c63c: 6859 ldr r1, [r3, #4] - sClockSourceConfig->ClockFilter); - 800c63e: 683b ldr r3, [r7, #0] - 800c640: 68db ldr r3, [r3, #12] - TIM_TI2_ConfigInputStage(htim->Instance, - 800c642: 461a mov r2, r3 - 800c644: f000 f937 bl 800c8b6 - TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI2); - 800c648: 687b ldr r3, [r7, #4] - 800c64a: 681b ldr r3, [r3, #0] - 800c64c: 2160 movs r1, #96 ; 0x60 - 800c64e: 4618 mov r0, r3 - 800c650: f000 f962 bl 800c918 - break; - 800c654: e01c b.n 800c690 - - /* Check TI1 input conditioning related parameters */ - assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); - assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); - - TIM_TI1_ConfigInputStage(htim->Instance, - 800c656: 687b ldr r3, [r7, #4] - 800c658: 6818 ldr r0, [r3, #0] - sClockSourceConfig->ClockPolarity, - 800c65a: 683b ldr r3, [r7, #0] - 800c65c: 6859 ldr r1, [r3, #4] - sClockSourceConfig->ClockFilter); - 800c65e: 683b ldr r3, [r7, #0] - 800c660: 68db ldr r3, [r3, #12] - TIM_TI1_ConfigInputStage(htim->Instance, - 800c662: 461a mov r2, r3 - 800c664: f000 f8f8 bl 800c858 - TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1ED); - 800c668: 687b ldr r3, [r7, #4] - 800c66a: 681b ldr r3, [r3, #0] - 800c66c: 2140 movs r1, #64 ; 0x40 - 800c66e: 4618 mov r0, r3 - 800c670: f000 f952 bl 800c918 - break; - 800c674: e00c b.n 800c690 - case TIM_CLOCKSOURCE_ITR8: - { - /* Check whether or not the timer instance supports internal trigger input */ - assert_param(IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(htim->Instance)); - - TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource); - 800c676: 687b ldr r3, [r7, #4] - 800c678: 681a ldr r2, [r3, #0] - 800c67a: 683b ldr r3, [r7, #0] - 800c67c: 681b ldr r3, [r3, #0] - 800c67e: 4619 mov r1, r3 - 800c680: 4610 mov r0, r2 - 800c682: f000 f949 bl 800c918 - break; - 800c686: e003 b.n 800c690 - } - - default: - status = HAL_ERROR; - 800c688: 2301 movs r3, #1 - 800c68a: 73fb strb r3, [r7, #15] - break; - 800c68c: e000 b.n 800c690 - break; - 800c68e: bf00 nop - } - htim->State = HAL_TIM_STATE_READY; - 800c690: 687b ldr r3, [r7, #4] - 800c692: 2201 movs r2, #1 - 800c694: f883 203d strb.w r2, [r3, #61] ; 0x3d - - __HAL_UNLOCK(htim); - 800c698: 687b ldr r3, [r7, #4] - 800c69a: 2200 movs r2, #0 - 800c69c: f883 203c strb.w r2, [r3, #60] ; 0x3c - - return status; - 800c6a0: 7bfb ldrb r3, [r7, #15] -} - 800c6a2: 4618 mov r0, r3 - 800c6a4: 3710 adds r7, #16 - 800c6a6: 46bd mov sp, r7 - 800c6a8: bd80 pop {r7, pc} - 800c6aa: bf00 nop - 800c6ac: ffceff88 .word 0xffceff88 - 800c6b0: 00100040 .word 0x00100040 - 800c6b4: 00100030 .word 0x00100030 - 800c6b8: 00100020 .word 0x00100020 - -0800c6bc : - * @brief Output Compare callback in non-blocking mode - * @param htim TIM OC handle - * @retval None - */ -__weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim) -{ - 800c6bc: b480 push {r7} - 800c6be: b083 sub sp, #12 - 800c6c0: af00 add r7, sp, #0 - 800c6c2: 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 - */ -} - 800c6c4: bf00 nop - 800c6c6: 370c adds r7, #12 - 800c6c8: 46bd mov sp, r7 - 800c6ca: f85d 7b04 ldr.w r7, [sp], #4 - 800c6ce: 4770 bx lr - -0800c6d0 : - * @brief Input Capture callback in non-blocking mode - * @param htim TIM IC handle - * @retval None - */ -__weak void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim) -{ - 800c6d0: b480 push {r7} - 800c6d2: b083 sub sp, #12 - 800c6d4: af00 add r7, sp, #0 - 800c6d6: 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 - */ -} - 800c6d8: bf00 nop - 800c6da: 370c adds r7, #12 - 800c6dc: 46bd mov sp, r7 - 800c6de: f85d 7b04 ldr.w r7, [sp], #4 - 800c6e2: 4770 bx lr - -0800c6e4 : - * @brief PWM Pulse finished callback in non-blocking mode - * @param htim TIM handle - * @retval None - */ -__weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim) -{ - 800c6e4: b480 push {r7} - 800c6e6: b083 sub sp, #12 - 800c6e8: af00 add r7, sp, #0 - 800c6ea: 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 - */ -} - 800c6ec: bf00 nop - 800c6ee: 370c adds r7, #12 - 800c6f0: 46bd mov sp, r7 - 800c6f2: f85d 7b04 ldr.w r7, [sp], #4 - 800c6f6: 4770 bx lr - -0800c6f8 : - * @brief Hall Trigger detection callback in non-blocking mode - * @param htim TIM handle - * @retval None - */ -__weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim) -{ - 800c6f8: b480 push {r7} - 800c6fa: b083 sub sp, #12 - 800c6fc: af00 add r7, sp, #0 - 800c6fe: 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 - */ -} - 800c700: bf00 nop - 800c702: 370c adds r7, #12 - 800c704: 46bd mov sp, r7 - 800c706: f85d 7b04 ldr.w r7, [sp], #4 - 800c70a: 4770 bx lr - -0800c70c : - * @param TIMx TIM peripheral - * @param Structure TIM Base configuration structure - * @retval None - */ -void TIM_Base_SetConfig(TIM_TypeDef *TIMx, const TIM_Base_InitTypeDef *Structure) -{ - 800c70c: b480 push {r7} - 800c70e: b085 sub sp, #20 - 800c710: af00 add r7, sp, #0 - 800c712: 6078 str r0, [r7, #4] - 800c714: 6039 str r1, [r7, #0] - uint32_t tmpcr1; - tmpcr1 = TIMx->CR1; - 800c716: 687b ldr r3, [r7, #4] - 800c718: 681b ldr r3, [r3, #0] - 800c71a: 60fb str r3, [r7, #12] - - /* Set TIM Time Base Unit parameters ---------------------------------------*/ - if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx)) - 800c71c: 687b ldr r3, [r7, #4] - 800c71e: 4a44 ldr r2, [pc, #272] ; (800c830 ) - 800c720: 4293 cmp r3, r2 - 800c722: d013 beq.n 800c74c - 800c724: 687b ldr r3, [r7, #4] - 800c726: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 - 800c72a: d00f beq.n 800c74c - 800c72c: 687b ldr r3, [r7, #4] - 800c72e: 4a41 ldr r2, [pc, #260] ; (800c834 ) - 800c730: 4293 cmp r3, r2 - 800c732: d00b beq.n 800c74c - 800c734: 687b ldr r3, [r7, #4] - 800c736: 4a40 ldr r2, [pc, #256] ; (800c838 ) - 800c738: 4293 cmp r3, r2 - 800c73a: d007 beq.n 800c74c - 800c73c: 687b ldr r3, [r7, #4] - 800c73e: 4a3f ldr r2, [pc, #252] ; (800c83c ) - 800c740: 4293 cmp r3, r2 - 800c742: d003 beq.n 800c74c - 800c744: 687b ldr r3, [r7, #4] - 800c746: 4a3e ldr r2, [pc, #248] ; (800c840 ) - 800c748: 4293 cmp r3, r2 - 800c74a: d108 bne.n 800c75e - { - /* Select the Counter Mode */ - tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS); - 800c74c: 68fb ldr r3, [r7, #12] - 800c74e: f023 0370 bic.w r3, r3, #112 ; 0x70 - 800c752: 60fb str r3, [r7, #12] - tmpcr1 |= Structure->CounterMode; - 800c754: 683b ldr r3, [r7, #0] - 800c756: 685b ldr r3, [r3, #4] - 800c758: 68fa ldr r2, [r7, #12] - 800c75a: 4313 orrs r3, r2 - 800c75c: 60fb str r3, [r7, #12] - } - - if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx)) - 800c75e: 687b ldr r3, [r7, #4] - 800c760: 4a33 ldr r2, [pc, #204] ; (800c830 ) - 800c762: 4293 cmp r3, r2 - 800c764: d027 beq.n 800c7b6 - 800c766: 687b ldr r3, [r7, #4] - 800c768: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 - 800c76c: d023 beq.n 800c7b6 - 800c76e: 687b ldr r3, [r7, #4] - 800c770: 4a30 ldr r2, [pc, #192] ; (800c834 ) - 800c772: 4293 cmp r3, r2 - 800c774: d01f beq.n 800c7b6 - 800c776: 687b ldr r3, [r7, #4] - 800c778: 4a2f ldr r2, [pc, #188] ; (800c838 ) - 800c77a: 4293 cmp r3, r2 - 800c77c: d01b beq.n 800c7b6 - 800c77e: 687b ldr r3, [r7, #4] - 800c780: 4a2e ldr r2, [pc, #184] ; (800c83c ) - 800c782: 4293 cmp r3, r2 - 800c784: d017 beq.n 800c7b6 - 800c786: 687b ldr r3, [r7, #4] - 800c788: 4a2d ldr r2, [pc, #180] ; (800c840 ) - 800c78a: 4293 cmp r3, r2 - 800c78c: d013 beq.n 800c7b6 - 800c78e: 687b ldr r3, [r7, #4] - 800c790: 4a2c ldr r2, [pc, #176] ; (800c844 ) - 800c792: 4293 cmp r3, r2 - 800c794: d00f beq.n 800c7b6 - 800c796: 687b ldr r3, [r7, #4] - 800c798: 4a2b ldr r2, [pc, #172] ; (800c848 ) - 800c79a: 4293 cmp r3, r2 - 800c79c: d00b beq.n 800c7b6 - 800c79e: 687b ldr r3, [r7, #4] - 800c7a0: 4a2a ldr r2, [pc, #168] ; (800c84c ) - 800c7a2: 4293 cmp r3, r2 - 800c7a4: d007 beq.n 800c7b6 - 800c7a6: 687b ldr r3, [r7, #4] - 800c7a8: 4a29 ldr r2, [pc, #164] ; (800c850 ) - 800c7aa: 4293 cmp r3, r2 - 800c7ac: d003 beq.n 800c7b6 - 800c7ae: 687b ldr r3, [r7, #4] - 800c7b0: 4a28 ldr r2, [pc, #160] ; (800c854 ) - 800c7b2: 4293 cmp r3, r2 - 800c7b4: d108 bne.n 800c7c8 - { - /* Set the clock division */ - tmpcr1 &= ~TIM_CR1_CKD; - 800c7b6: 68fb ldr r3, [r7, #12] - 800c7b8: f423 7340 bic.w r3, r3, #768 ; 0x300 - 800c7bc: 60fb str r3, [r7, #12] - tmpcr1 |= (uint32_t)Structure->ClockDivision; - 800c7be: 683b ldr r3, [r7, #0] - 800c7c0: 68db ldr r3, [r3, #12] - 800c7c2: 68fa ldr r2, [r7, #12] - 800c7c4: 4313 orrs r3, r2 - 800c7c6: 60fb str r3, [r7, #12] - } - - /* Set the auto-reload preload */ - MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload); - 800c7c8: 68fb ldr r3, [r7, #12] - 800c7ca: f023 0280 bic.w r2, r3, #128 ; 0x80 - 800c7ce: 683b ldr r3, [r7, #0] - 800c7d0: 695b ldr r3, [r3, #20] - 800c7d2: 4313 orrs r3, r2 - 800c7d4: 60fb str r3, [r7, #12] - - TIMx->CR1 = tmpcr1; - 800c7d6: 687b ldr r3, [r7, #4] - 800c7d8: 68fa ldr r2, [r7, #12] - 800c7da: 601a str r2, [r3, #0] - - /* Set the Autoreload value */ - TIMx->ARR = (uint32_t)Structure->Period ; - 800c7dc: 683b ldr r3, [r7, #0] - 800c7de: 689a ldr r2, [r3, #8] - 800c7e0: 687b ldr r3, [r7, #4] - 800c7e2: 62da str r2, [r3, #44] ; 0x2c - - /* Set the Prescaler value */ - TIMx->PSC = Structure->Prescaler; - 800c7e4: 683b ldr r3, [r7, #0] - 800c7e6: 681a ldr r2, [r3, #0] - 800c7e8: 687b ldr r3, [r7, #4] - 800c7ea: 629a str r2, [r3, #40] ; 0x28 - - if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx)) - 800c7ec: 687b ldr r3, [r7, #4] - 800c7ee: 4a10 ldr r2, [pc, #64] ; (800c830 ) - 800c7f0: 4293 cmp r3, r2 - 800c7f2: d00f beq.n 800c814 - 800c7f4: 687b ldr r3, [r7, #4] - 800c7f6: 4a12 ldr r2, [pc, #72] ; (800c840 ) - 800c7f8: 4293 cmp r3, r2 - 800c7fa: d00b beq.n 800c814 - 800c7fc: 687b ldr r3, [r7, #4] - 800c7fe: 4a11 ldr r2, [pc, #68] ; (800c844 ) - 800c800: 4293 cmp r3, r2 - 800c802: d007 beq.n 800c814 - 800c804: 687b ldr r3, [r7, #4] - 800c806: 4a10 ldr r2, [pc, #64] ; (800c848 ) - 800c808: 4293 cmp r3, r2 - 800c80a: d003 beq.n 800c814 - 800c80c: 687b ldr r3, [r7, #4] - 800c80e: 4a0f ldr r2, [pc, #60] ; (800c84c ) - 800c810: 4293 cmp r3, r2 - 800c812: d103 bne.n 800c81c - { - /* Set the Repetition Counter value */ - TIMx->RCR = Structure->RepetitionCounter; - 800c814: 683b ldr r3, [r7, #0] - 800c816: 691a ldr r2, [r3, #16] - 800c818: 687b ldr r3, [r7, #4] - 800c81a: 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; - 800c81c: 687b ldr r3, [r7, #4] - 800c81e: 2201 movs r2, #1 - 800c820: 615a str r2, [r3, #20] -} - 800c822: bf00 nop - 800c824: 3714 adds r7, #20 - 800c826: 46bd mov sp, r7 - 800c828: f85d 7b04 ldr.w r7, [sp], #4 - 800c82c: 4770 bx lr - 800c82e: bf00 nop - 800c830: 40010000 .word 0x40010000 - 800c834: 40000400 .word 0x40000400 - 800c838: 40000800 .word 0x40000800 - 800c83c: 40000c00 .word 0x40000c00 - 800c840: 40010400 .word 0x40010400 - 800c844: 40014000 .word 0x40014000 - 800c848: 40014400 .word 0x40014400 - 800c84c: 40014800 .word 0x40014800 - 800c850: 4000e000 .word 0x4000e000 - 800c854: 4000e400 .word 0x4000e400 - -0800c858 : - * @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) -{ - 800c858: b480 push {r7} - 800c85a: b087 sub sp, #28 - 800c85c: af00 add r7, sp, #0 - 800c85e: 60f8 str r0, [r7, #12] - 800c860: 60b9 str r1, [r7, #8] - 800c862: 607a str r2, [r7, #4] - uint32_t tmpccmr1; - uint32_t tmpccer; - - /* Disable the Channel 1: Reset the CC1E Bit */ - tmpccer = TIMx->CCER; - 800c864: 68fb ldr r3, [r7, #12] - 800c866: 6a1b ldr r3, [r3, #32] - 800c868: 617b str r3, [r7, #20] - TIMx->CCER &= ~TIM_CCER_CC1E; - 800c86a: 68fb ldr r3, [r7, #12] - 800c86c: 6a1b ldr r3, [r3, #32] - 800c86e: f023 0201 bic.w r2, r3, #1 - 800c872: 68fb ldr r3, [r7, #12] - 800c874: 621a str r2, [r3, #32] - tmpccmr1 = TIMx->CCMR1; - 800c876: 68fb ldr r3, [r7, #12] - 800c878: 699b ldr r3, [r3, #24] - 800c87a: 613b str r3, [r7, #16] - - /* Set the filter */ - tmpccmr1 &= ~TIM_CCMR1_IC1F; - 800c87c: 693b ldr r3, [r7, #16] - 800c87e: f023 03f0 bic.w r3, r3, #240 ; 0xf0 - 800c882: 613b str r3, [r7, #16] - tmpccmr1 |= (TIM_ICFilter << 4U); - 800c884: 687b ldr r3, [r7, #4] - 800c886: 011b lsls r3, r3, #4 - 800c888: 693a ldr r2, [r7, #16] - 800c88a: 4313 orrs r3, r2 - 800c88c: 613b str r3, [r7, #16] - - /* Select the Polarity and set the CC1E Bit */ - tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP); - 800c88e: 697b ldr r3, [r7, #20] - 800c890: f023 030a bic.w r3, r3, #10 - 800c894: 617b str r3, [r7, #20] - tmpccer |= TIM_ICPolarity; - 800c896: 697a ldr r2, [r7, #20] - 800c898: 68bb ldr r3, [r7, #8] - 800c89a: 4313 orrs r3, r2 - 800c89c: 617b str r3, [r7, #20] - - /* Write to TIMx CCMR1 and CCER registers */ - TIMx->CCMR1 = tmpccmr1; - 800c89e: 68fb ldr r3, [r7, #12] - 800c8a0: 693a ldr r2, [r7, #16] - 800c8a2: 619a str r2, [r3, #24] - TIMx->CCER = tmpccer; - 800c8a4: 68fb ldr r3, [r7, #12] - 800c8a6: 697a ldr r2, [r7, #20] - 800c8a8: 621a str r2, [r3, #32] -} - 800c8aa: bf00 nop - 800c8ac: 371c adds r7, #28 - 800c8ae: 46bd mov sp, r7 - 800c8b0: f85d 7b04 ldr.w r7, [sp], #4 - 800c8b4: 4770 bx lr - -0800c8b6 : - * @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) -{ - 800c8b6: b480 push {r7} - 800c8b8: b087 sub sp, #28 - 800c8ba: af00 add r7, sp, #0 - 800c8bc: 60f8 str r0, [r7, #12] - 800c8be: 60b9 str r1, [r7, #8] - 800c8c0: 607a str r2, [r7, #4] - uint32_t tmpccmr1; - uint32_t tmpccer; - - /* Disable the Channel 2: Reset the CC2E Bit */ - TIMx->CCER &= ~TIM_CCER_CC2E; - 800c8c2: 68fb ldr r3, [r7, #12] - 800c8c4: 6a1b ldr r3, [r3, #32] - 800c8c6: f023 0210 bic.w r2, r3, #16 - 800c8ca: 68fb ldr r3, [r7, #12] - 800c8cc: 621a str r2, [r3, #32] - tmpccmr1 = TIMx->CCMR1; - 800c8ce: 68fb ldr r3, [r7, #12] - 800c8d0: 699b ldr r3, [r3, #24] - 800c8d2: 617b str r3, [r7, #20] - tmpccer = TIMx->CCER; - 800c8d4: 68fb ldr r3, [r7, #12] - 800c8d6: 6a1b ldr r3, [r3, #32] - 800c8d8: 613b str r3, [r7, #16] - - /* Set the filter */ - tmpccmr1 &= ~TIM_CCMR1_IC2F; - 800c8da: 697b ldr r3, [r7, #20] - 800c8dc: f423 4370 bic.w r3, r3, #61440 ; 0xf000 - 800c8e0: 617b str r3, [r7, #20] - tmpccmr1 |= (TIM_ICFilter << 12U); - 800c8e2: 687b ldr r3, [r7, #4] - 800c8e4: 031b lsls r3, r3, #12 - 800c8e6: 697a ldr r2, [r7, #20] - 800c8e8: 4313 orrs r3, r2 - 800c8ea: 617b str r3, [r7, #20] - - /* Select the Polarity and set the CC2E Bit */ - tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP); - 800c8ec: 693b ldr r3, [r7, #16] - 800c8ee: f023 03a0 bic.w r3, r3, #160 ; 0xa0 - 800c8f2: 613b str r3, [r7, #16] - tmpccer |= (TIM_ICPolarity << 4U); - 800c8f4: 68bb ldr r3, [r7, #8] - 800c8f6: 011b lsls r3, r3, #4 - 800c8f8: 693a ldr r2, [r7, #16] - 800c8fa: 4313 orrs r3, r2 - 800c8fc: 613b str r3, [r7, #16] - - /* Write to TIMx CCMR1 and CCER registers */ - TIMx->CCMR1 = tmpccmr1 ; - 800c8fe: 68fb ldr r3, [r7, #12] - 800c900: 697a ldr r2, [r7, #20] - 800c902: 619a str r2, [r3, #24] - TIMx->CCER = tmpccer; - 800c904: 68fb ldr r3, [r7, #12] - 800c906: 693a ldr r2, [r7, #16] - 800c908: 621a str r2, [r3, #32] -} - 800c90a: bf00 nop - 800c90c: 371c adds r7, #28 - 800c90e: 46bd mov sp, r7 - 800c910: f85d 7b04 ldr.w r7, [sp], #4 - 800c914: 4770 bx lr - ... - -0800c918 : - * (*) Value not defined in all devices. - * - * @retval None - */ -static void TIM_ITRx_SetConfig(TIM_TypeDef *TIMx, uint32_t InputTriggerSource) -{ - 800c918: b480 push {r7} - 800c91a: b085 sub sp, #20 - 800c91c: af00 add r7, sp, #0 - 800c91e: 6078 str r0, [r7, #4] - 800c920: 6039 str r1, [r7, #0] - uint32_t tmpsmcr; - - /* Get the TIMx SMCR register value */ - tmpsmcr = TIMx->SMCR; - 800c922: 687b ldr r3, [r7, #4] - 800c924: 689b ldr r3, [r3, #8] - 800c926: 60fb str r3, [r7, #12] - /* Reset the TS Bits */ - tmpsmcr &= ~TIM_SMCR_TS; - 800c928: 68fa ldr r2, [r7, #12] - 800c92a: 4b09 ldr r3, [pc, #36] ; (800c950 ) - 800c92c: 4013 ands r3, r2 - 800c92e: 60fb str r3, [r7, #12] - /* Set the Input Trigger source and the slave mode*/ - tmpsmcr |= (InputTriggerSource | TIM_SLAVEMODE_EXTERNAL1); - 800c930: 683a ldr r2, [r7, #0] - 800c932: 68fb ldr r3, [r7, #12] - 800c934: 4313 orrs r3, r2 - 800c936: f043 0307 orr.w r3, r3, #7 - 800c93a: 60fb str r3, [r7, #12] - /* Write to TIMx SMCR */ - TIMx->SMCR = tmpsmcr; - 800c93c: 687b ldr r3, [r7, #4] - 800c93e: 68fa ldr r2, [r7, #12] - 800c940: 609a str r2, [r3, #8] -} - 800c942: bf00 nop - 800c944: 3714 adds r7, #20 - 800c946: 46bd mov sp, r7 - 800c948: f85d 7b04 ldr.w r7, [sp], #4 - 800c94c: 4770 bx lr - 800c94e: bf00 nop - 800c950: ffcfff8f .word 0xffcfff8f - -0800c954 : - * 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) -{ - 800c954: b480 push {r7} - 800c956: b087 sub sp, #28 - 800c958: af00 add r7, sp, #0 - 800c95a: 60f8 str r0, [r7, #12] - 800c95c: 60b9 str r1, [r7, #8] - 800c95e: 607a str r2, [r7, #4] - 800c960: 603b str r3, [r7, #0] - uint32_t tmpsmcr; - - tmpsmcr = TIMx->SMCR; - 800c962: 68fb ldr r3, [r7, #12] - 800c964: 689b ldr r3, [r3, #8] - 800c966: 617b str r3, [r7, #20] - - /* Reset the ETR Bits */ - tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP); - 800c968: 697b ldr r3, [r7, #20] - 800c96a: f423 437f bic.w r3, r3, #65280 ; 0xff00 - 800c96e: 617b str r3, [r7, #20] - - /* Set the Prescaler, the Filter value and the Polarity */ - tmpsmcr |= (uint32_t)(TIM_ExtTRGPrescaler | (TIM_ExtTRGPolarity | (ExtTRGFilter << 8U))); - 800c970: 683b ldr r3, [r7, #0] - 800c972: 021a lsls r2, r3, #8 - 800c974: 687b ldr r3, [r7, #4] - 800c976: 431a orrs r2, r3 - 800c978: 68bb ldr r3, [r7, #8] - 800c97a: 4313 orrs r3, r2 - 800c97c: 697a ldr r2, [r7, #20] - 800c97e: 4313 orrs r3, r2 - 800c980: 617b str r3, [r7, #20] - - /* Write to TIMx SMCR */ - TIMx->SMCR = tmpsmcr; - 800c982: 68fb ldr r3, [r7, #12] - 800c984: 697a ldr r2, [r7, #20] - 800c986: 609a str r2, [r3, #8] -} - 800c988: bf00 nop - 800c98a: 371c adds r7, #28 - 800c98c: 46bd mov sp, r7 - 800c98e: f85d 7b04 ldr.w r7, [sp], #4 - 800c992: 4770 bx lr - -0800c994 : - * mode. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim, - const TIM_MasterConfigTypeDef *sMasterConfig) -{ - 800c994: b480 push {r7} - 800c996: b085 sub sp, #20 - 800c998: af00 add r7, sp, #0 - 800c99a: 6078 str r0, [r7, #4] - 800c99c: 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); - 800c99e: 687b ldr r3, [r7, #4] - 800c9a0: f893 303c ldrb.w r3, [r3, #60] ; 0x3c - 800c9a4: 2b01 cmp r3, #1 - 800c9a6: d101 bne.n 800c9ac - 800c9a8: 2302 movs r3, #2 - 800c9aa: e077 b.n 800ca9c - 800c9ac: 687b ldr r3, [r7, #4] - 800c9ae: 2201 movs r2, #1 - 800c9b0: f883 203c strb.w r2, [r3, #60] ; 0x3c - - /* Change the handler state */ - htim->State = HAL_TIM_STATE_BUSY; - 800c9b4: 687b ldr r3, [r7, #4] - 800c9b6: 2202 movs r2, #2 - 800c9b8: f883 203d strb.w r2, [r3, #61] ; 0x3d - - /* Get the TIMx CR2 register value */ - tmpcr2 = htim->Instance->CR2; - 800c9bc: 687b ldr r3, [r7, #4] - 800c9be: 681b ldr r3, [r3, #0] - 800c9c0: 685b ldr r3, [r3, #4] - 800c9c2: 60fb str r3, [r7, #12] - - /* Get the TIMx SMCR register value */ - tmpsmcr = htim->Instance->SMCR; - 800c9c4: 687b ldr r3, [r7, #4] - 800c9c6: 681b ldr r3, [r3, #0] - 800c9c8: 689b ldr r3, [r3, #8] - 800c9ca: 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)) - 800c9cc: 687b ldr r3, [r7, #4] - 800c9ce: 681b ldr r3, [r3, #0] - 800c9d0: 4a35 ldr r2, [pc, #212] ; (800caa8 ) - 800c9d2: 4293 cmp r3, r2 - 800c9d4: d004 beq.n 800c9e0 - 800c9d6: 687b ldr r3, [r7, #4] - 800c9d8: 681b ldr r3, [r3, #0] - 800c9da: 4a34 ldr r2, [pc, #208] ; (800caac ) - 800c9dc: 4293 cmp r3, r2 - 800c9de: d108 bne.n 800c9f2 - { - /* Check the parameters */ - assert_param(IS_TIM_TRGO2_SOURCE(sMasterConfig->MasterOutputTrigger2)); - - /* Clear the MMS2 bits */ - tmpcr2 &= ~TIM_CR2_MMS2; - 800c9e0: 68fb ldr r3, [r7, #12] - 800c9e2: f423 0370 bic.w r3, r3, #15728640 ; 0xf00000 - 800c9e6: 60fb str r3, [r7, #12] - /* Select the TRGO2 source*/ - tmpcr2 |= sMasterConfig->MasterOutputTrigger2; - 800c9e8: 683b ldr r3, [r7, #0] - 800c9ea: 685b ldr r3, [r3, #4] - 800c9ec: 68fa ldr r2, [r7, #12] - 800c9ee: 4313 orrs r3, r2 - 800c9f0: 60fb str r3, [r7, #12] - } - - /* Reset the MMS Bits */ - tmpcr2 &= ~TIM_CR2_MMS; - 800c9f2: 68fb ldr r3, [r7, #12] - 800c9f4: f023 0370 bic.w r3, r3, #112 ; 0x70 - 800c9f8: 60fb str r3, [r7, #12] - /* Select the TRGO source */ - tmpcr2 |= sMasterConfig->MasterOutputTrigger; - 800c9fa: 683b ldr r3, [r7, #0] - 800c9fc: 681b ldr r3, [r3, #0] - 800c9fe: 68fa ldr r2, [r7, #12] - 800ca00: 4313 orrs r3, r2 - 800ca02: 60fb str r3, [r7, #12] - - /* Update TIMx CR2 */ - htim->Instance->CR2 = tmpcr2; - 800ca04: 687b ldr r3, [r7, #4] - 800ca06: 681b ldr r3, [r3, #0] - 800ca08: 68fa ldr r2, [r7, #12] - 800ca0a: 605a str r2, [r3, #4] - - if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - 800ca0c: 687b ldr r3, [r7, #4] - 800ca0e: 681b ldr r3, [r3, #0] - 800ca10: 4a25 ldr r2, [pc, #148] ; (800caa8 ) - 800ca12: 4293 cmp r3, r2 - 800ca14: d02c beq.n 800ca70 - 800ca16: 687b ldr r3, [r7, #4] - 800ca18: 681b ldr r3, [r3, #0] - 800ca1a: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 - 800ca1e: d027 beq.n 800ca70 - 800ca20: 687b ldr r3, [r7, #4] - 800ca22: 681b ldr r3, [r3, #0] - 800ca24: 4a22 ldr r2, [pc, #136] ; (800cab0 ) - 800ca26: 4293 cmp r3, r2 - 800ca28: d022 beq.n 800ca70 - 800ca2a: 687b ldr r3, [r7, #4] - 800ca2c: 681b ldr r3, [r3, #0] - 800ca2e: 4a21 ldr r2, [pc, #132] ; (800cab4 ) - 800ca30: 4293 cmp r3, r2 - 800ca32: d01d beq.n 800ca70 - 800ca34: 687b ldr r3, [r7, #4] - 800ca36: 681b ldr r3, [r3, #0] - 800ca38: 4a1f ldr r2, [pc, #124] ; (800cab8 ) - 800ca3a: 4293 cmp r3, r2 - 800ca3c: d018 beq.n 800ca70 - 800ca3e: 687b ldr r3, [r7, #4] - 800ca40: 681b ldr r3, [r3, #0] - 800ca42: 4a1a ldr r2, [pc, #104] ; (800caac ) - 800ca44: 4293 cmp r3, r2 - 800ca46: d013 beq.n 800ca70 - 800ca48: 687b ldr r3, [r7, #4] - 800ca4a: 681b ldr r3, [r3, #0] - 800ca4c: 4a1b ldr r2, [pc, #108] ; (800cabc ) - 800ca4e: 4293 cmp r3, r2 - 800ca50: d00e beq.n 800ca70 - 800ca52: 687b ldr r3, [r7, #4] - 800ca54: 681b ldr r3, [r3, #0] - 800ca56: 4a1a ldr r2, [pc, #104] ; (800cac0 ) - 800ca58: 4293 cmp r3, r2 - 800ca5a: d009 beq.n 800ca70 - 800ca5c: 687b ldr r3, [r7, #4] - 800ca5e: 681b ldr r3, [r3, #0] - 800ca60: 4a18 ldr r2, [pc, #96] ; (800cac4 ) - 800ca62: 4293 cmp r3, r2 - 800ca64: d004 beq.n 800ca70 - 800ca66: 687b ldr r3, [r7, #4] - 800ca68: 681b ldr r3, [r3, #0] - 800ca6a: 4a17 ldr r2, [pc, #92] ; (800cac8 ) - 800ca6c: 4293 cmp r3, r2 - 800ca6e: d10c bne.n 800ca8a - { - /* Reset the MSM Bit */ - tmpsmcr &= ~TIM_SMCR_MSM; - 800ca70: 68bb ldr r3, [r7, #8] - 800ca72: f023 0380 bic.w r3, r3, #128 ; 0x80 - 800ca76: 60bb str r3, [r7, #8] - /* Set master mode */ - tmpsmcr |= sMasterConfig->MasterSlaveMode; - 800ca78: 683b ldr r3, [r7, #0] - 800ca7a: 689b ldr r3, [r3, #8] - 800ca7c: 68ba ldr r2, [r7, #8] - 800ca7e: 4313 orrs r3, r2 - 800ca80: 60bb str r3, [r7, #8] - - /* Update TIMx SMCR */ - htim->Instance->SMCR = tmpsmcr; - 800ca82: 687b ldr r3, [r7, #4] - 800ca84: 681b ldr r3, [r3, #0] - 800ca86: 68ba ldr r2, [r7, #8] - 800ca88: 609a str r2, [r3, #8] - } - - /* Change the htim state */ - htim->State = HAL_TIM_STATE_READY; - 800ca8a: 687b ldr r3, [r7, #4] - 800ca8c: 2201 movs r2, #1 - 800ca8e: f883 203d strb.w r2, [r3, #61] ; 0x3d - - __HAL_UNLOCK(htim); - 800ca92: 687b ldr r3, [r7, #4] - 800ca94: 2200 movs r2, #0 - 800ca96: f883 203c strb.w r2, [r3, #60] ; 0x3c - - return HAL_OK; - 800ca9a: 2300 movs r3, #0 -} - 800ca9c: 4618 mov r0, r3 - 800ca9e: 3714 adds r7, #20 - 800caa0: 46bd mov sp, r7 - 800caa2: f85d 7b04 ldr.w r7, [sp], #4 - 800caa6: 4770 bx lr - 800caa8: 40010000 .word 0x40010000 - 800caac: 40010400 .word 0x40010400 - 800cab0: 40000400 .word 0x40000400 - 800cab4: 40000800 .word 0x40000800 - 800cab8: 40000c00 .word 0x40000c00 - 800cabc: 40001800 .word 0x40001800 - 800cac0: 40014000 .word 0x40014000 - 800cac4: 4000e000 .word 0x4000e000 - 800cac8: 4000e400 .word 0x4000e400 - -0800cacc : - * @brief Hall commutation changed callback in non-blocking mode - * @param htim TIM handle - * @retval None - */ -__weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim) -{ - 800cacc: b480 push {r7} - 800cace: b083 sub sp, #12 - 800cad0: af00 add r7, sp, #0 - 800cad2: 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 - */ -} - 800cad4: bf00 nop - 800cad6: 370c adds r7, #12 - 800cad8: 46bd mov sp, r7 - 800cada: f85d 7b04 ldr.w r7, [sp], #4 - 800cade: 4770 bx lr - -0800cae0 : - * @brief Hall Break detection callback in non-blocking mode - * @param htim TIM handle - * @retval None - */ -__weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim) -{ - 800cae0: b480 push {r7} - 800cae2: b083 sub sp, #12 - 800cae4: af00 add r7, sp, #0 - 800cae6: 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 - */ -} - 800cae8: bf00 nop - 800caea: 370c adds r7, #12 - 800caec: 46bd mov sp, r7 - 800caee: f85d 7b04 ldr.w r7, [sp], #4 - 800caf2: 4770 bx lr - -0800caf4 : - * @brief Hall Break2 detection callback in non blocking mode - * @param htim: TIM handle - * @retval None - */ -__weak void HAL_TIMEx_Break2Callback(TIM_HandleTypeDef *htim) -{ - 800caf4: b480 push {r7} - 800caf6: b083 sub sp, #12 - 800caf8: af00 add r7, sp, #0 - 800cafa: 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 - */ -} - 800cafc: bf00 nop - 800cafe: 370c adds r7, #12 - 800cb00: 46bd mov sp, r7 - 800cb02: f85d 7b04 ldr.w r7, [sp], #4 - 800cb06: 4770 bx lr - -0800cb08 : - * 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) -{ - 800cb08: b580 push {r7, lr} - 800cb0a: b082 sub sp, #8 - 800cb0c: af00 add r7, sp, #0 - 800cb0e: 6078 str r0, [r7, #4] - /* Check the UART handle allocation */ - if (huart == NULL) - 800cb10: 687b ldr r3, [r7, #4] - 800cb12: 2b00 cmp r3, #0 - 800cb14: d101 bne.n 800cb1a - { - return HAL_ERROR; - 800cb16: 2301 movs r3, #1 - 800cb18: e042 b.n 800cba0 - { - /* Check the parameters */ - assert_param((IS_UART_INSTANCE(huart->Instance)) || (IS_LPUART_INSTANCE(huart->Instance))); - } - - if (huart->gState == HAL_UART_STATE_RESET) - 800cb1a: 687b ldr r3, [r7, #4] - 800cb1c: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 - 800cb20: 2b00 cmp r3, #0 - 800cb22: d106 bne.n 800cb32 - { - /* Allocate lock resource and initialize it */ - huart->Lock = HAL_UNLOCKED; - 800cb24: 687b ldr r3, [r7, #4] - 800cb26: 2200 movs r2, #0 - 800cb28: f883 2084 strb.w r2, [r3, #132] ; 0x84 - - /* Init the low level hardware */ - huart->MspInitCallback(huart); -#else - /* Init the low level hardware : GPIO, CLOCK */ - HAL_UART_MspInit(huart); - 800cb2c: 6878 ldr r0, [r7, #4] - 800cb2e: f7f4 fefd bl 800192c -#endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ - } - - huart->gState = HAL_UART_STATE_BUSY; - 800cb32: 687b ldr r3, [r7, #4] - 800cb34: 2224 movs r2, #36 ; 0x24 - 800cb36: f8c3 2088 str.w r2, [r3, #136] ; 0x88 - - __HAL_UART_DISABLE(huart); - 800cb3a: 687b ldr r3, [r7, #4] - 800cb3c: 681b ldr r3, [r3, #0] - 800cb3e: 681a ldr r2, [r3, #0] - 800cb40: 687b ldr r3, [r7, #4] - 800cb42: 681b ldr r3, [r3, #0] - 800cb44: f022 0201 bic.w r2, r2, #1 - 800cb48: 601a str r2, [r3, #0] - - /* Set the UART Communication parameters */ - if (UART_SetConfig(huart) == HAL_ERROR) - 800cb4a: 6878 ldr r0, [r7, #4] - 800cb4c: f000 f82c bl 800cba8 - 800cb50: 4603 mov r3, r0 - 800cb52: 2b01 cmp r3, #1 - 800cb54: d101 bne.n 800cb5a - { - return HAL_ERROR; - 800cb56: 2301 movs r3, #1 - 800cb58: e022 b.n 800cba0 - } - - if (huart->AdvancedInit.AdvFeatureInit != UART_ADVFEATURE_NO_INIT) - 800cb5a: 687b ldr r3, [r7, #4] - 800cb5c: 6a9b ldr r3, [r3, #40] ; 0x28 - 800cb5e: 2b00 cmp r3, #0 - 800cb60: d002 beq.n 800cb68 - { - UART_AdvFeatureConfig(huart); - 800cb62: 6878 ldr r0, [r7, #4] - 800cb64: f000 fe8c bl 800d880 - } - - /* 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)); - 800cb68: 687b ldr r3, [r7, #4] - 800cb6a: 681b ldr r3, [r3, #0] - 800cb6c: 685a ldr r2, [r3, #4] - 800cb6e: 687b ldr r3, [r7, #4] - 800cb70: 681b ldr r3, [r3, #0] - 800cb72: f422 4290 bic.w r2, r2, #18432 ; 0x4800 - 800cb76: 605a str r2, [r3, #4] - CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN)); - 800cb78: 687b ldr r3, [r7, #4] - 800cb7a: 681b ldr r3, [r3, #0] - 800cb7c: 689a ldr r2, [r3, #8] - 800cb7e: 687b ldr r3, [r7, #4] - 800cb80: 681b ldr r3, [r3, #0] - 800cb82: f022 022a bic.w r2, r2, #42 ; 0x2a - 800cb86: 609a str r2, [r3, #8] - - __HAL_UART_ENABLE(huart); - 800cb88: 687b ldr r3, [r7, #4] - 800cb8a: 681b ldr r3, [r3, #0] - 800cb8c: 681a ldr r2, [r3, #0] - 800cb8e: 687b ldr r3, [r7, #4] - 800cb90: 681b ldr r3, [r3, #0] - 800cb92: f042 0201 orr.w r2, r2, #1 - 800cb96: 601a str r2, [r3, #0] - - /* TEACK and/or REACK to check before moving huart->gState and huart->RxState to Ready */ - return (UART_CheckIdleState(huart)); - 800cb98: 6878 ldr r0, [r7, #4] - 800cb9a: f000 ff13 bl 800d9c4 - 800cb9e: 4603 mov r3, r0 -} - 800cba0: 4618 mov r0, r3 - 800cba2: 3708 adds r7, #8 - 800cba4: 46bd mov sp, r7 - 800cba6: bd80 pop {r7, pc} - -0800cba8 : - * @brief Configure the UART peripheral. - * @param huart UART handle. - * @retval HAL status - */ -HAL_StatusTypeDef UART_SetConfig(UART_HandleTypeDef *huart) -{ - 800cba8: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr} - 800cbac: b092 sub sp, #72 ; 0x48 - 800cbae: af00 add r7, sp, #0 - 800cbb0: 6178 str r0, [r7, #20] - uint32_t tmpreg; - uint16_t brrtemp; - UART_ClockSourceTypeDef clocksource; - uint32_t usartdiv; - HAL_StatusTypeDef ret = HAL_OK; - 800cbb2: 2300 movs r3, #0 - 800cbb4: f887 3042 strb.w r3, [r7, #66] ; 0x42 - * 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 ; - 800cbb8: 697b ldr r3, [r7, #20] - 800cbba: 689a ldr r2, [r3, #8] - 800cbbc: 697b ldr r3, [r7, #20] - 800cbbe: 691b ldr r3, [r3, #16] - 800cbc0: 431a orrs r2, r3 - 800cbc2: 697b ldr r3, [r7, #20] - 800cbc4: 695b ldr r3, [r3, #20] - 800cbc6: 431a orrs r2, r3 - 800cbc8: 697b ldr r3, [r7, #20] - 800cbca: 69db ldr r3, [r3, #28] - 800cbcc: 4313 orrs r3, r2 - 800cbce: 647b str r3, [r7, #68] ; 0x44 - MODIFY_REG(huart->Instance->CR1, USART_CR1_FIELDS, tmpreg); - 800cbd0: 697b ldr r3, [r7, #20] - 800cbd2: 681b ldr r3, [r3, #0] - 800cbd4: 681a ldr r2, [r3, #0] - 800cbd6: 4bbe ldr r3, [pc, #760] ; (800ced0 ) - 800cbd8: 4013 ands r3, r2 - 800cbda: 697a ldr r2, [r7, #20] - 800cbdc: 6812 ldr r2, [r2, #0] - 800cbde: 6c79 ldr r1, [r7, #68] ; 0x44 - 800cbe0: 430b orrs r3, r1 - 800cbe2: 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); - 800cbe4: 697b ldr r3, [r7, #20] - 800cbe6: 681b ldr r3, [r3, #0] - 800cbe8: 685b ldr r3, [r3, #4] - 800cbea: f423 5140 bic.w r1, r3, #12288 ; 0x3000 - 800cbee: 697b ldr r3, [r7, #20] - 800cbf0: 68da ldr r2, [r3, #12] - 800cbf2: 697b ldr r3, [r7, #20] - 800cbf4: 681b ldr r3, [r3, #0] - 800cbf6: 430a orrs r2, r1 - 800cbf8: 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; - 800cbfa: 697b ldr r3, [r7, #20] - 800cbfc: 699b ldr r3, [r3, #24] - 800cbfe: 647b str r3, [r7, #68] ; 0x44 - - if (!(UART_INSTANCE_LOWPOWER(huart))) - 800cc00: 697b ldr r3, [r7, #20] - 800cc02: 681b ldr r3, [r3, #0] - 800cc04: 4ab3 ldr r2, [pc, #716] ; (800ced4 ) - 800cc06: 4293 cmp r3, r2 - 800cc08: d004 beq.n 800cc14 - { - tmpreg |= huart->Init.OneBitSampling; - 800cc0a: 697b ldr r3, [r7, #20] - 800cc0c: 6a1b ldr r3, [r3, #32] - 800cc0e: 6c7a ldr r2, [r7, #68] ; 0x44 - 800cc10: 4313 orrs r3, r2 - 800cc12: 647b str r3, [r7, #68] ; 0x44 - } - MODIFY_REG(huart->Instance->CR3, USART_CR3_FIELDS, tmpreg); - 800cc14: 697b ldr r3, [r7, #20] - 800cc16: 681b ldr r3, [r3, #0] - 800cc18: 689a ldr r2, [r3, #8] - 800cc1a: 4baf ldr r3, [pc, #700] ; (800ced8 ) - 800cc1c: 4013 ands r3, r2 - 800cc1e: 697a ldr r2, [r7, #20] - 800cc20: 6812 ldr r2, [r2, #0] - 800cc22: 6c79 ldr r1, [r7, #68] ; 0x44 - 800cc24: 430b orrs r3, r1 - 800cc26: 6093 str r3, [r2, #8] - - /*-------------------------- USART PRESC Configuration -----------------------*/ - /* Configure - * - UART Clock Prescaler : set PRESCALER according to huart->Init.ClockPrescaler value */ - MODIFY_REG(huart->Instance->PRESC, USART_PRESC_PRESCALER, huart->Init.ClockPrescaler); - 800cc28: 697b ldr r3, [r7, #20] - 800cc2a: 681b ldr r3, [r3, #0] - 800cc2c: 6adb ldr r3, [r3, #44] ; 0x2c - 800cc2e: f023 010f bic.w r1, r3, #15 - 800cc32: 697b ldr r3, [r7, #20] - 800cc34: 6a5a ldr r2, [r3, #36] ; 0x24 - 800cc36: 697b ldr r3, [r7, #20] - 800cc38: 681b ldr r3, [r3, #0] - 800cc3a: 430a orrs r2, r1 - 800cc3c: 62da str r2, [r3, #44] ; 0x2c - - /*-------------------------- USART BRR Configuration -----------------------*/ - UART_GETCLOCKSOURCE(huart, clocksource); - 800cc3e: 697b ldr r3, [r7, #20] - 800cc40: 681b ldr r3, [r3, #0] - 800cc42: 4aa6 ldr r2, [pc, #664] ; (800cedc ) - 800cc44: 4293 cmp r3, r2 - 800cc46: d177 bne.n 800cd38 - 800cc48: 4ba5 ldr r3, [pc, #660] ; (800cee0 ) - 800cc4a: 6d5b ldr r3, [r3, #84] ; 0x54 - 800cc4c: f003 0338 and.w r3, r3, #56 ; 0x38 - 800cc50: 2b28 cmp r3, #40 ; 0x28 - 800cc52: d86d bhi.n 800cd30 - 800cc54: a201 add r2, pc, #4 ; (adr r2, 800cc5c ) - 800cc56: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800cc5a: bf00 nop - 800cc5c: 0800cd01 .word 0x0800cd01 - 800cc60: 0800cd31 .word 0x0800cd31 - 800cc64: 0800cd31 .word 0x0800cd31 - 800cc68: 0800cd31 .word 0x0800cd31 - 800cc6c: 0800cd31 .word 0x0800cd31 - 800cc70: 0800cd31 .word 0x0800cd31 - 800cc74: 0800cd31 .word 0x0800cd31 - 800cc78: 0800cd31 .word 0x0800cd31 - 800cc7c: 0800cd09 .word 0x0800cd09 - 800cc80: 0800cd31 .word 0x0800cd31 - 800cc84: 0800cd31 .word 0x0800cd31 - 800cc88: 0800cd31 .word 0x0800cd31 - 800cc8c: 0800cd31 .word 0x0800cd31 - 800cc90: 0800cd31 .word 0x0800cd31 - 800cc94: 0800cd31 .word 0x0800cd31 - 800cc98: 0800cd31 .word 0x0800cd31 - 800cc9c: 0800cd11 .word 0x0800cd11 - 800cca0: 0800cd31 .word 0x0800cd31 - 800cca4: 0800cd31 .word 0x0800cd31 - 800cca8: 0800cd31 .word 0x0800cd31 - 800ccac: 0800cd31 .word 0x0800cd31 - 800ccb0: 0800cd31 .word 0x0800cd31 - 800ccb4: 0800cd31 .word 0x0800cd31 - 800ccb8: 0800cd31 .word 0x0800cd31 - 800ccbc: 0800cd19 .word 0x0800cd19 - 800ccc0: 0800cd31 .word 0x0800cd31 - 800ccc4: 0800cd31 .word 0x0800cd31 - 800ccc8: 0800cd31 .word 0x0800cd31 - 800cccc: 0800cd31 .word 0x0800cd31 - 800ccd0: 0800cd31 .word 0x0800cd31 - 800ccd4: 0800cd31 .word 0x0800cd31 - 800ccd8: 0800cd31 .word 0x0800cd31 - 800ccdc: 0800cd21 .word 0x0800cd21 - 800cce0: 0800cd31 .word 0x0800cd31 - 800cce4: 0800cd31 .word 0x0800cd31 - 800cce8: 0800cd31 .word 0x0800cd31 - 800ccec: 0800cd31 .word 0x0800cd31 - 800ccf0: 0800cd31 .word 0x0800cd31 - 800ccf4: 0800cd31 .word 0x0800cd31 - 800ccf8: 0800cd31 .word 0x0800cd31 - 800ccfc: 0800cd29 .word 0x0800cd29 - 800cd00: 2301 movs r3, #1 - 800cd02: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cd06: e326 b.n 800d356 - 800cd08: 2304 movs r3, #4 - 800cd0a: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cd0e: e322 b.n 800d356 - 800cd10: 2308 movs r3, #8 - 800cd12: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cd16: e31e b.n 800d356 - 800cd18: 2310 movs r3, #16 - 800cd1a: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cd1e: e31a b.n 800d356 - 800cd20: 2320 movs r3, #32 - 800cd22: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cd26: e316 b.n 800d356 - 800cd28: 2340 movs r3, #64 ; 0x40 - 800cd2a: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cd2e: e312 b.n 800d356 - 800cd30: 2380 movs r3, #128 ; 0x80 - 800cd32: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cd36: e30e b.n 800d356 - 800cd38: 697b ldr r3, [r7, #20] - 800cd3a: 681b ldr r3, [r3, #0] - 800cd3c: 4a69 ldr r2, [pc, #420] ; (800cee4 ) - 800cd3e: 4293 cmp r3, r2 - 800cd40: d130 bne.n 800cda4 - 800cd42: 4b67 ldr r3, [pc, #412] ; (800cee0 ) - 800cd44: 6d5b ldr r3, [r3, #84] ; 0x54 - 800cd46: f003 0307 and.w r3, r3, #7 - 800cd4a: 2b05 cmp r3, #5 - 800cd4c: d826 bhi.n 800cd9c - 800cd4e: a201 add r2, pc, #4 ; (adr r2, 800cd54 ) - 800cd50: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800cd54: 0800cd6d .word 0x0800cd6d - 800cd58: 0800cd75 .word 0x0800cd75 - 800cd5c: 0800cd7d .word 0x0800cd7d - 800cd60: 0800cd85 .word 0x0800cd85 - 800cd64: 0800cd8d .word 0x0800cd8d - 800cd68: 0800cd95 .word 0x0800cd95 - 800cd6c: 2300 movs r3, #0 - 800cd6e: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cd72: e2f0 b.n 800d356 - 800cd74: 2304 movs r3, #4 - 800cd76: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cd7a: e2ec b.n 800d356 - 800cd7c: 2308 movs r3, #8 - 800cd7e: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cd82: e2e8 b.n 800d356 - 800cd84: 2310 movs r3, #16 - 800cd86: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cd8a: e2e4 b.n 800d356 - 800cd8c: 2320 movs r3, #32 - 800cd8e: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cd92: e2e0 b.n 800d356 - 800cd94: 2340 movs r3, #64 ; 0x40 - 800cd96: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cd9a: e2dc b.n 800d356 - 800cd9c: 2380 movs r3, #128 ; 0x80 - 800cd9e: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cda2: e2d8 b.n 800d356 - 800cda4: 697b ldr r3, [r7, #20] - 800cda6: 681b ldr r3, [r3, #0] - 800cda8: 4a4f ldr r2, [pc, #316] ; (800cee8 ) - 800cdaa: 4293 cmp r3, r2 - 800cdac: d130 bne.n 800ce10 - 800cdae: 4b4c ldr r3, [pc, #304] ; (800cee0 ) - 800cdb0: 6d5b ldr r3, [r3, #84] ; 0x54 - 800cdb2: f003 0307 and.w r3, r3, #7 - 800cdb6: 2b05 cmp r3, #5 - 800cdb8: d826 bhi.n 800ce08 - 800cdba: a201 add r2, pc, #4 ; (adr r2, 800cdc0 ) - 800cdbc: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800cdc0: 0800cdd9 .word 0x0800cdd9 - 800cdc4: 0800cde1 .word 0x0800cde1 - 800cdc8: 0800cde9 .word 0x0800cde9 - 800cdcc: 0800cdf1 .word 0x0800cdf1 - 800cdd0: 0800cdf9 .word 0x0800cdf9 - 800cdd4: 0800ce01 .word 0x0800ce01 - 800cdd8: 2300 movs r3, #0 - 800cdda: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cdde: e2ba b.n 800d356 - 800cde0: 2304 movs r3, #4 - 800cde2: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cde6: e2b6 b.n 800d356 - 800cde8: 2308 movs r3, #8 - 800cdea: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cdee: e2b2 b.n 800d356 - 800cdf0: 2310 movs r3, #16 - 800cdf2: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cdf6: e2ae b.n 800d356 - 800cdf8: 2320 movs r3, #32 - 800cdfa: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cdfe: e2aa b.n 800d356 - 800ce00: 2340 movs r3, #64 ; 0x40 - 800ce02: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800ce06: e2a6 b.n 800d356 - 800ce08: 2380 movs r3, #128 ; 0x80 - 800ce0a: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800ce0e: e2a2 b.n 800d356 - 800ce10: 697b ldr r3, [r7, #20] - 800ce12: 681b ldr r3, [r3, #0] - 800ce14: 4a35 ldr r2, [pc, #212] ; (800ceec ) - 800ce16: 4293 cmp r3, r2 - 800ce18: d130 bne.n 800ce7c - 800ce1a: 4b31 ldr r3, [pc, #196] ; (800cee0 ) - 800ce1c: 6d5b ldr r3, [r3, #84] ; 0x54 - 800ce1e: f003 0307 and.w r3, r3, #7 - 800ce22: 2b05 cmp r3, #5 - 800ce24: d826 bhi.n 800ce74 - 800ce26: a201 add r2, pc, #4 ; (adr r2, 800ce2c ) - 800ce28: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800ce2c: 0800ce45 .word 0x0800ce45 - 800ce30: 0800ce4d .word 0x0800ce4d - 800ce34: 0800ce55 .word 0x0800ce55 - 800ce38: 0800ce5d .word 0x0800ce5d - 800ce3c: 0800ce65 .word 0x0800ce65 - 800ce40: 0800ce6d .word 0x0800ce6d - 800ce44: 2300 movs r3, #0 - 800ce46: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800ce4a: e284 b.n 800d356 - 800ce4c: 2304 movs r3, #4 - 800ce4e: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800ce52: e280 b.n 800d356 - 800ce54: 2308 movs r3, #8 - 800ce56: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800ce5a: e27c b.n 800d356 - 800ce5c: 2310 movs r3, #16 - 800ce5e: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800ce62: e278 b.n 800d356 - 800ce64: 2320 movs r3, #32 - 800ce66: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800ce6a: e274 b.n 800d356 - 800ce6c: 2340 movs r3, #64 ; 0x40 - 800ce6e: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800ce72: e270 b.n 800d356 - 800ce74: 2380 movs r3, #128 ; 0x80 - 800ce76: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800ce7a: e26c b.n 800d356 - 800ce7c: 697b ldr r3, [r7, #20] - 800ce7e: 681b ldr r3, [r3, #0] - 800ce80: 4a1b ldr r2, [pc, #108] ; (800cef0 ) - 800ce82: 4293 cmp r3, r2 - 800ce84: d142 bne.n 800cf0c - 800ce86: 4b16 ldr r3, [pc, #88] ; (800cee0 ) - 800ce88: 6d5b ldr r3, [r3, #84] ; 0x54 - 800ce8a: f003 0307 and.w r3, r3, #7 - 800ce8e: 2b05 cmp r3, #5 - 800ce90: d838 bhi.n 800cf04 - 800ce92: a201 add r2, pc, #4 ; (adr r2, 800ce98 ) - 800ce94: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800ce98: 0800ceb1 .word 0x0800ceb1 - 800ce9c: 0800ceb9 .word 0x0800ceb9 - 800cea0: 0800cec1 .word 0x0800cec1 - 800cea4: 0800cec9 .word 0x0800cec9 - 800cea8: 0800cef5 .word 0x0800cef5 - 800ceac: 0800cefd .word 0x0800cefd - 800ceb0: 2300 movs r3, #0 - 800ceb2: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800ceb6: e24e b.n 800d356 - 800ceb8: 2304 movs r3, #4 - 800ceba: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cebe: e24a b.n 800d356 - 800cec0: 2308 movs r3, #8 - 800cec2: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cec6: e246 b.n 800d356 - 800cec8: 2310 movs r3, #16 - 800ceca: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cece: e242 b.n 800d356 - 800ced0: cfff69f3 .word 0xcfff69f3 - 800ced4: 58000c00 .word 0x58000c00 - 800ced8: 11fff4ff .word 0x11fff4ff - 800cedc: 40011000 .word 0x40011000 - 800cee0: 58024400 .word 0x58024400 - 800cee4: 40004400 .word 0x40004400 - 800cee8: 40004800 .word 0x40004800 - 800ceec: 40004c00 .word 0x40004c00 - 800cef0: 40005000 .word 0x40005000 - 800cef4: 2320 movs r3, #32 - 800cef6: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cefa: e22c b.n 800d356 - 800cefc: 2340 movs r3, #64 ; 0x40 - 800cefe: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cf02: e228 b.n 800d356 - 800cf04: 2380 movs r3, #128 ; 0x80 - 800cf06: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cf0a: e224 b.n 800d356 - 800cf0c: 697b ldr r3, [r7, #20] - 800cf0e: 681b ldr r3, [r3, #0] - 800cf10: 4ab1 ldr r2, [pc, #708] ; (800d1d8 ) - 800cf12: 4293 cmp r3, r2 - 800cf14: d176 bne.n 800d004 - 800cf16: 4bb1 ldr r3, [pc, #708] ; (800d1dc ) - 800cf18: 6d5b ldr r3, [r3, #84] ; 0x54 - 800cf1a: f003 0338 and.w r3, r3, #56 ; 0x38 - 800cf1e: 2b28 cmp r3, #40 ; 0x28 - 800cf20: d86c bhi.n 800cffc - 800cf22: a201 add r2, pc, #4 ; (adr r2, 800cf28 ) - 800cf24: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800cf28: 0800cfcd .word 0x0800cfcd - 800cf2c: 0800cffd .word 0x0800cffd - 800cf30: 0800cffd .word 0x0800cffd - 800cf34: 0800cffd .word 0x0800cffd - 800cf38: 0800cffd .word 0x0800cffd - 800cf3c: 0800cffd .word 0x0800cffd - 800cf40: 0800cffd .word 0x0800cffd - 800cf44: 0800cffd .word 0x0800cffd - 800cf48: 0800cfd5 .word 0x0800cfd5 - 800cf4c: 0800cffd .word 0x0800cffd - 800cf50: 0800cffd .word 0x0800cffd - 800cf54: 0800cffd .word 0x0800cffd - 800cf58: 0800cffd .word 0x0800cffd - 800cf5c: 0800cffd .word 0x0800cffd - 800cf60: 0800cffd .word 0x0800cffd - 800cf64: 0800cffd .word 0x0800cffd - 800cf68: 0800cfdd .word 0x0800cfdd - 800cf6c: 0800cffd .word 0x0800cffd - 800cf70: 0800cffd .word 0x0800cffd - 800cf74: 0800cffd .word 0x0800cffd - 800cf78: 0800cffd .word 0x0800cffd - 800cf7c: 0800cffd .word 0x0800cffd - 800cf80: 0800cffd .word 0x0800cffd - 800cf84: 0800cffd .word 0x0800cffd - 800cf88: 0800cfe5 .word 0x0800cfe5 - 800cf8c: 0800cffd .word 0x0800cffd - 800cf90: 0800cffd .word 0x0800cffd - 800cf94: 0800cffd .word 0x0800cffd - 800cf98: 0800cffd .word 0x0800cffd - 800cf9c: 0800cffd .word 0x0800cffd - 800cfa0: 0800cffd .word 0x0800cffd - 800cfa4: 0800cffd .word 0x0800cffd - 800cfa8: 0800cfed .word 0x0800cfed - 800cfac: 0800cffd .word 0x0800cffd - 800cfb0: 0800cffd .word 0x0800cffd - 800cfb4: 0800cffd .word 0x0800cffd - 800cfb8: 0800cffd .word 0x0800cffd - 800cfbc: 0800cffd .word 0x0800cffd - 800cfc0: 0800cffd .word 0x0800cffd - 800cfc4: 0800cffd .word 0x0800cffd - 800cfc8: 0800cff5 .word 0x0800cff5 - 800cfcc: 2301 movs r3, #1 - 800cfce: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cfd2: e1c0 b.n 800d356 - 800cfd4: 2304 movs r3, #4 - 800cfd6: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cfda: e1bc b.n 800d356 - 800cfdc: 2308 movs r3, #8 - 800cfde: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cfe2: e1b8 b.n 800d356 - 800cfe4: 2310 movs r3, #16 - 800cfe6: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cfea: e1b4 b.n 800d356 - 800cfec: 2320 movs r3, #32 - 800cfee: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cff2: e1b0 b.n 800d356 - 800cff4: 2340 movs r3, #64 ; 0x40 - 800cff6: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800cffa: e1ac b.n 800d356 - 800cffc: 2380 movs r3, #128 ; 0x80 - 800cffe: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d002: e1a8 b.n 800d356 - 800d004: 697b ldr r3, [r7, #20] - 800d006: 681b ldr r3, [r3, #0] - 800d008: 4a75 ldr r2, [pc, #468] ; (800d1e0 ) - 800d00a: 4293 cmp r3, r2 - 800d00c: d130 bne.n 800d070 - 800d00e: 4b73 ldr r3, [pc, #460] ; (800d1dc ) - 800d010: 6d5b ldr r3, [r3, #84] ; 0x54 - 800d012: f003 0307 and.w r3, r3, #7 - 800d016: 2b05 cmp r3, #5 - 800d018: d826 bhi.n 800d068 - 800d01a: a201 add r2, pc, #4 ; (adr r2, 800d020 ) - 800d01c: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800d020: 0800d039 .word 0x0800d039 - 800d024: 0800d041 .word 0x0800d041 - 800d028: 0800d049 .word 0x0800d049 - 800d02c: 0800d051 .word 0x0800d051 - 800d030: 0800d059 .word 0x0800d059 - 800d034: 0800d061 .word 0x0800d061 - 800d038: 2300 movs r3, #0 - 800d03a: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d03e: e18a b.n 800d356 - 800d040: 2304 movs r3, #4 - 800d042: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d046: e186 b.n 800d356 - 800d048: 2308 movs r3, #8 - 800d04a: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d04e: e182 b.n 800d356 - 800d050: 2310 movs r3, #16 - 800d052: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d056: e17e b.n 800d356 - 800d058: 2320 movs r3, #32 - 800d05a: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d05e: e17a b.n 800d356 - 800d060: 2340 movs r3, #64 ; 0x40 - 800d062: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d066: e176 b.n 800d356 - 800d068: 2380 movs r3, #128 ; 0x80 - 800d06a: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d06e: e172 b.n 800d356 - 800d070: 697b ldr r3, [r7, #20] - 800d072: 681b ldr r3, [r3, #0] - 800d074: 4a5b ldr r2, [pc, #364] ; (800d1e4 ) - 800d076: 4293 cmp r3, r2 - 800d078: d130 bne.n 800d0dc - 800d07a: 4b58 ldr r3, [pc, #352] ; (800d1dc ) - 800d07c: 6d5b ldr r3, [r3, #84] ; 0x54 - 800d07e: f003 0307 and.w r3, r3, #7 - 800d082: 2b05 cmp r3, #5 - 800d084: d826 bhi.n 800d0d4 - 800d086: a201 add r2, pc, #4 ; (adr r2, 800d08c ) - 800d088: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800d08c: 0800d0a5 .word 0x0800d0a5 - 800d090: 0800d0ad .word 0x0800d0ad - 800d094: 0800d0b5 .word 0x0800d0b5 - 800d098: 0800d0bd .word 0x0800d0bd - 800d09c: 0800d0c5 .word 0x0800d0c5 - 800d0a0: 0800d0cd .word 0x0800d0cd - 800d0a4: 2300 movs r3, #0 - 800d0a6: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d0aa: e154 b.n 800d356 - 800d0ac: 2304 movs r3, #4 - 800d0ae: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d0b2: e150 b.n 800d356 - 800d0b4: 2308 movs r3, #8 - 800d0b6: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d0ba: e14c b.n 800d356 - 800d0bc: 2310 movs r3, #16 - 800d0be: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d0c2: e148 b.n 800d356 - 800d0c4: 2320 movs r3, #32 - 800d0c6: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d0ca: e144 b.n 800d356 - 800d0cc: 2340 movs r3, #64 ; 0x40 - 800d0ce: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d0d2: e140 b.n 800d356 - 800d0d4: 2380 movs r3, #128 ; 0x80 - 800d0d6: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d0da: e13c b.n 800d356 - 800d0dc: 697b ldr r3, [r7, #20] - 800d0de: 681b ldr r3, [r3, #0] - 800d0e0: 4a41 ldr r2, [pc, #260] ; (800d1e8 ) - 800d0e2: 4293 cmp r3, r2 - 800d0e4: f040 8082 bne.w 800d1ec - 800d0e8: 4b3c ldr r3, [pc, #240] ; (800d1dc ) - 800d0ea: 6d5b ldr r3, [r3, #84] ; 0x54 - 800d0ec: f003 0338 and.w r3, r3, #56 ; 0x38 - 800d0f0: 2b28 cmp r3, #40 ; 0x28 - 800d0f2: d86d bhi.n 800d1d0 - 800d0f4: a201 add r2, pc, #4 ; (adr r2, 800d0fc ) - 800d0f6: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800d0fa: bf00 nop - 800d0fc: 0800d1a1 .word 0x0800d1a1 - 800d100: 0800d1d1 .word 0x0800d1d1 - 800d104: 0800d1d1 .word 0x0800d1d1 - 800d108: 0800d1d1 .word 0x0800d1d1 - 800d10c: 0800d1d1 .word 0x0800d1d1 - 800d110: 0800d1d1 .word 0x0800d1d1 - 800d114: 0800d1d1 .word 0x0800d1d1 - 800d118: 0800d1d1 .word 0x0800d1d1 - 800d11c: 0800d1a9 .word 0x0800d1a9 - 800d120: 0800d1d1 .word 0x0800d1d1 - 800d124: 0800d1d1 .word 0x0800d1d1 - 800d128: 0800d1d1 .word 0x0800d1d1 - 800d12c: 0800d1d1 .word 0x0800d1d1 - 800d130: 0800d1d1 .word 0x0800d1d1 - 800d134: 0800d1d1 .word 0x0800d1d1 - 800d138: 0800d1d1 .word 0x0800d1d1 - 800d13c: 0800d1b1 .word 0x0800d1b1 - 800d140: 0800d1d1 .word 0x0800d1d1 - 800d144: 0800d1d1 .word 0x0800d1d1 - 800d148: 0800d1d1 .word 0x0800d1d1 - 800d14c: 0800d1d1 .word 0x0800d1d1 - 800d150: 0800d1d1 .word 0x0800d1d1 - 800d154: 0800d1d1 .word 0x0800d1d1 - 800d158: 0800d1d1 .word 0x0800d1d1 - 800d15c: 0800d1b9 .word 0x0800d1b9 - 800d160: 0800d1d1 .word 0x0800d1d1 - 800d164: 0800d1d1 .word 0x0800d1d1 - 800d168: 0800d1d1 .word 0x0800d1d1 - 800d16c: 0800d1d1 .word 0x0800d1d1 - 800d170: 0800d1d1 .word 0x0800d1d1 - 800d174: 0800d1d1 .word 0x0800d1d1 - 800d178: 0800d1d1 .word 0x0800d1d1 - 800d17c: 0800d1c1 .word 0x0800d1c1 - 800d180: 0800d1d1 .word 0x0800d1d1 - 800d184: 0800d1d1 .word 0x0800d1d1 - 800d188: 0800d1d1 .word 0x0800d1d1 - 800d18c: 0800d1d1 .word 0x0800d1d1 - 800d190: 0800d1d1 .word 0x0800d1d1 - 800d194: 0800d1d1 .word 0x0800d1d1 - 800d198: 0800d1d1 .word 0x0800d1d1 - 800d19c: 0800d1c9 .word 0x0800d1c9 - 800d1a0: 2301 movs r3, #1 - 800d1a2: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d1a6: e0d6 b.n 800d356 - 800d1a8: 2304 movs r3, #4 - 800d1aa: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d1ae: e0d2 b.n 800d356 - 800d1b0: 2308 movs r3, #8 - 800d1b2: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d1b6: e0ce b.n 800d356 - 800d1b8: 2310 movs r3, #16 - 800d1ba: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d1be: e0ca b.n 800d356 - 800d1c0: 2320 movs r3, #32 - 800d1c2: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d1c6: e0c6 b.n 800d356 - 800d1c8: 2340 movs r3, #64 ; 0x40 - 800d1ca: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d1ce: e0c2 b.n 800d356 - 800d1d0: 2380 movs r3, #128 ; 0x80 - 800d1d2: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d1d6: e0be b.n 800d356 - 800d1d8: 40011400 .word 0x40011400 - 800d1dc: 58024400 .word 0x58024400 - 800d1e0: 40007800 .word 0x40007800 - 800d1e4: 40007c00 .word 0x40007c00 - 800d1e8: 40011800 .word 0x40011800 - 800d1ec: 697b ldr r3, [r7, #20] - 800d1ee: 681b ldr r3, [r3, #0] - 800d1f0: 4aad ldr r2, [pc, #692] ; (800d4a8 ) - 800d1f2: 4293 cmp r3, r2 - 800d1f4: d176 bne.n 800d2e4 - 800d1f6: 4bad ldr r3, [pc, #692] ; (800d4ac ) - 800d1f8: 6d5b ldr r3, [r3, #84] ; 0x54 - 800d1fa: f003 0338 and.w r3, r3, #56 ; 0x38 - 800d1fe: 2b28 cmp r3, #40 ; 0x28 - 800d200: d86c bhi.n 800d2dc - 800d202: a201 add r2, pc, #4 ; (adr r2, 800d208 ) - 800d204: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800d208: 0800d2ad .word 0x0800d2ad - 800d20c: 0800d2dd .word 0x0800d2dd - 800d210: 0800d2dd .word 0x0800d2dd - 800d214: 0800d2dd .word 0x0800d2dd - 800d218: 0800d2dd .word 0x0800d2dd - 800d21c: 0800d2dd .word 0x0800d2dd - 800d220: 0800d2dd .word 0x0800d2dd - 800d224: 0800d2dd .word 0x0800d2dd - 800d228: 0800d2b5 .word 0x0800d2b5 - 800d22c: 0800d2dd .word 0x0800d2dd - 800d230: 0800d2dd .word 0x0800d2dd - 800d234: 0800d2dd .word 0x0800d2dd - 800d238: 0800d2dd .word 0x0800d2dd - 800d23c: 0800d2dd .word 0x0800d2dd - 800d240: 0800d2dd .word 0x0800d2dd - 800d244: 0800d2dd .word 0x0800d2dd - 800d248: 0800d2bd .word 0x0800d2bd - 800d24c: 0800d2dd .word 0x0800d2dd - 800d250: 0800d2dd .word 0x0800d2dd - 800d254: 0800d2dd .word 0x0800d2dd - 800d258: 0800d2dd .word 0x0800d2dd - 800d25c: 0800d2dd .word 0x0800d2dd - 800d260: 0800d2dd .word 0x0800d2dd - 800d264: 0800d2dd .word 0x0800d2dd - 800d268: 0800d2c5 .word 0x0800d2c5 - 800d26c: 0800d2dd .word 0x0800d2dd - 800d270: 0800d2dd .word 0x0800d2dd - 800d274: 0800d2dd .word 0x0800d2dd - 800d278: 0800d2dd .word 0x0800d2dd - 800d27c: 0800d2dd .word 0x0800d2dd - 800d280: 0800d2dd .word 0x0800d2dd - 800d284: 0800d2dd .word 0x0800d2dd - 800d288: 0800d2cd .word 0x0800d2cd - 800d28c: 0800d2dd .word 0x0800d2dd - 800d290: 0800d2dd .word 0x0800d2dd - 800d294: 0800d2dd .word 0x0800d2dd - 800d298: 0800d2dd .word 0x0800d2dd - 800d29c: 0800d2dd .word 0x0800d2dd - 800d2a0: 0800d2dd .word 0x0800d2dd - 800d2a4: 0800d2dd .word 0x0800d2dd - 800d2a8: 0800d2d5 .word 0x0800d2d5 - 800d2ac: 2301 movs r3, #1 - 800d2ae: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d2b2: e050 b.n 800d356 - 800d2b4: 2304 movs r3, #4 - 800d2b6: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d2ba: e04c b.n 800d356 - 800d2bc: 2308 movs r3, #8 - 800d2be: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d2c2: e048 b.n 800d356 - 800d2c4: 2310 movs r3, #16 - 800d2c6: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d2ca: e044 b.n 800d356 - 800d2cc: 2320 movs r3, #32 - 800d2ce: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d2d2: e040 b.n 800d356 - 800d2d4: 2340 movs r3, #64 ; 0x40 - 800d2d6: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d2da: e03c b.n 800d356 - 800d2dc: 2380 movs r3, #128 ; 0x80 - 800d2de: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d2e2: e038 b.n 800d356 - 800d2e4: 697b ldr r3, [r7, #20] - 800d2e6: 681b ldr r3, [r3, #0] - 800d2e8: 4a71 ldr r2, [pc, #452] ; (800d4b0 ) - 800d2ea: 4293 cmp r3, r2 - 800d2ec: d130 bne.n 800d350 - 800d2ee: 4b6f ldr r3, [pc, #444] ; (800d4ac ) - 800d2f0: 6d9b ldr r3, [r3, #88] ; 0x58 - 800d2f2: f003 0307 and.w r3, r3, #7 - 800d2f6: 2b05 cmp r3, #5 - 800d2f8: d826 bhi.n 800d348 - 800d2fa: a201 add r2, pc, #4 ; (adr r2, 800d300 ) - 800d2fc: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800d300: 0800d319 .word 0x0800d319 - 800d304: 0800d321 .word 0x0800d321 - 800d308: 0800d329 .word 0x0800d329 - 800d30c: 0800d331 .word 0x0800d331 - 800d310: 0800d339 .word 0x0800d339 - 800d314: 0800d341 .word 0x0800d341 - 800d318: 2302 movs r3, #2 - 800d31a: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d31e: e01a b.n 800d356 - 800d320: 2304 movs r3, #4 - 800d322: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d326: e016 b.n 800d356 - 800d328: 2308 movs r3, #8 - 800d32a: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d32e: e012 b.n 800d356 - 800d330: 2310 movs r3, #16 - 800d332: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d336: e00e b.n 800d356 - 800d338: 2320 movs r3, #32 - 800d33a: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d33e: e00a b.n 800d356 - 800d340: 2340 movs r3, #64 ; 0x40 - 800d342: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d346: e006 b.n 800d356 - 800d348: 2380 movs r3, #128 ; 0x80 - 800d34a: f887 3043 strb.w r3, [r7, #67] ; 0x43 - 800d34e: e002 b.n 800d356 - 800d350: 2380 movs r3, #128 ; 0x80 - 800d352: f887 3043 strb.w r3, [r7, #67] ; 0x43 - - /* Check LPUART instance */ - if (UART_INSTANCE_LOWPOWER(huart)) - 800d356: 697b ldr r3, [r7, #20] - 800d358: 681b ldr r3, [r3, #0] - 800d35a: 4a55 ldr r2, [pc, #340] ; (800d4b0 ) - 800d35c: 4293 cmp r3, r2 - 800d35e: f040 80f8 bne.w 800d552 - { - /* Retrieve frequency clock */ - switch (clocksource) - 800d362: f897 3043 ldrb.w r3, [r7, #67] ; 0x43 - 800d366: 2b20 cmp r3, #32 - 800d368: dc46 bgt.n 800d3f8 - 800d36a: 2b02 cmp r3, #2 - 800d36c: db75 blt.n 800d45a - 800d36e: 3b02 subs r3, #2 - 800d370: 2b1e cmp r3, #30 - 800d372: d872 bhi.n 800d45a - 800d374: a201 add r2, pc, #4 ; (adr r2, 800d37c ) - 800d376: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800d37a: bf00 nop - 800d37c: 0800d3ff .word 0x0800d3ff - 800d380: 0800d45b .word 0x0800d45b - 800d384: 0800d407 .word 0x0800d407 - 800d388: 0800d45b .word 0x0800d45b - 800d38c: 0800d45b .word 0x0800d45b - 800d390: 0800d45b .word 0x0800d45b - 800d394: 0800d417 .word 0x0800d417 - 800d398: 0800d45b .word 0x0800d45b - 800d39c: 0800d45b .word 0x0800d45b - 800d3a0: 0800d45b .word 0x0800d45b - 800d3a4: 0800d45b .word 0x0800d45b - 800d3a8: 0800d45b .word 0x0800d45b - 800d3ac: 0800d45b .word 0x0800d45b - 800d3b0: 0800d45b .word 0x0800d45b - 800d3b4: 0800d427 .word 0x0800d427 - 800d3b8: 0800d45b .word 0x0800d45b - 800d3bc: 0800d45b .word 0x0800d45b - 800d3c0: 0800d45b .word 0x0800d45b - 800d3c4: 0800d45b .word 0x0800d45b - 800d3c8: 0800d45b .word 0x0800d45b - 800d3cc: 0800d45b .word 0x0800d45b - 800d3d0: 0800d45b .word 0x0800d45b - 800d3d4: 0800d45b .word 0x0800d45b - 800d3d8: 0800d45b .word 0x0800d45b - 800d3dc: 0800d45b .word 0x0800d45b - 800d3e0: 0800d45b .word 0x0800d45b - 800d3e4: 0800d45b .word 0x0800d45b - 800d3e8: 0800d45b .word 0x0800d45b - 800d3ec: 0800d45b .word 0x0800d45b - 800d3f0: 0800d45b .word 0x0800d45b - 800d3f4: 0800d44d .word 0x0800d44d - 800d3f8: 2b40 cmp r3, #64 ; 0x40 - 800d3fa: d02a beq.n 800d452 - 800d3fc: e02d b.n 800d45a - { - case UART_CLOCKSOURCE_D3PCLK1: - pclk = HAL_RCCEx_GetD3PCLK1Freq(); - 800d3fe: f7fc fc8f bl 8009d20 - 800d402: 63f8 str r0, [r7, #60] ; 0x3c - break; - 800d404: e02f b.n 800d466 - case UART_CLOCKSOURCE_PLL2: - HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks); - 800d406: f107 0324 add.w r3, r7, #36 ; 0x24 - 800d40a: 4618 mov r0, r3 - 800d40c: f7fc fc9e bl 8009d4c - pclk = pll2_clocks.PLL2_Q_Frequency; - 800d410: 6abb ldr r3, [r7, #40] ; 0x28 - 800d412: 63fb str r3, [r7, #60] ; 0x3c - break; - 800d414: e027 b.n 800d466 - case UART_CLOCKSOURCE_PLL3: - HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks); - 800d416: f107 0318 add.w r3, r7, #24 - 800d41a: 4618 mov r0, r3 - 800d41c: f7fc fdea bl 8009ff4 - pclk = pll3_clocks.PLL3_Q_Frequency; - 800d420: 69fb ldr r3, [r7, #28] - 800d422: 63fb str r3, [r7, #60] ; 0x3c - break; - 800d424: e01f b.n 800d466 - case UART_CLOCKSOURCE_HSI: - if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U) - 800d426: 4b21 ldr r3, [pc, #132] ; (800d4ac ) - 800d428: 681b ldr r3, [r3, #0] - 800d42a: f003 0320 and.w r3, r3, #32 - 800d42e: 2b00 cmp r3, #0 - 800d430: d009 beq.n 800d446 - { - pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U)); - 800d432: 4b1e ldr r3, [pc, #120] ; (800d4ac ) - 800d434: 681b ldr r3, [r3, #0] - 800d436: 08db lsrs r3, r3, #3 - 800d438: f003 0303 and.w r3, r3, #3 - 800d43c: 4a1d ldr r2, [pc, #116] ; (800d4b4 ) - 800d43e: fa22 f303 lsr.w r3, r2, r3 - 800d442: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - pclk = (uint32_t) HSI_VALUE; - } - break; - 800d444: e00f b.n 800d466 - pclk = (uint32_t) HSI_VALUE; - 800d446: 4b1b ldr r3, [pc, #108] ; (800d4b4 ) - 800d448: 63fb str r3, [r7, #60] ; 0x3c - break; - 800d44a: e00c b.n 800d466 - case UART_CLOCKSOURCE_CSI: - pclk = (uint32_t) CSI_VALUE; - 800d44c: 4b1a ldr r3, [pc, #104] ; (800d4b8 ) - 800d44e: 63fb str r3, [r7, #60] ; 0x3c - break; - 800d450: e009 b.n 800d466 - case UART_CLOCKSOURCE_LSE: - pclk = (uint32_t) LSE_VALUE; - 800d452: f44f 4300 mov.w r3, #32768 ; 0x8000 - 800d456: 63fb str r3, [r7, #60] ; 0x3c - break; - 800d458: e005 b.n 800d466 - default: - pclk = 0U; - 800d45a: 2300 movs r3, #0 - 800d45c: 63fb str r3, [r7, #60] ; 0x3c - ret = HAL_ERROR; - 800d45e: 2301 movs r3, #1 - 800d460: f887 3042 strb.w r3, [r7, #66] ; 0x42 - break; - 800d464: bf00 nop - } - - /* If proper clock source reported */ - if (pclk != 0U) - 800d466: 6bfb ldr r3, [r7, #60] ; 0x3c - 800d468: 2b00 cmp r3, #0 - 800d46a: f000 81ee beq.w 800d84a - { - /* Compute clock after Prescaler */ - lpuart_ker_ck_pres = (pclk / UARTPrescTable[huart->Init.ClockPrescaler]); - 800d46e: 697b ldr r3, [r7, #20] - 800d470: 6a5b ldr r3, [r3, #36] ; 0x24 - 800d472: 4a12 ldr r2, [pc, #72] ; (800d4bc ) - 800d474: f832 3013 ldrh.w r3, [r2, r3, lsl #1] - 800d478: 461a mov r2, r3 - 800d47a: 6bfb ldr r3, [r7, #60] ; 0x3c - 800d47c: fbb3 f3f2 udiv r3, r3, r2 - 800d480: 633b str r3, [r7, #48] ; 0x30 - - /* Ensure that Frequency clock is in the range [3 * baudrate, 4096 * baudrate] */ - if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) || - 800d482: 697b ldr r3, [r7, #20] - 800d484: 685a ldr r2, [r3, #4] - 800d486: 4613 mov r3, r2 - 800d488: 005b lsls r3, r3, #1 - 800d48a: 4413 add r3, r2 - 800d48c: 6b3a ldr r2, [r7, #48] ; 0x30 - 800d48e: 429a cmp r2, r3 - 800d490: d305 bcc.n 800d49e - (lpuart_ker_ck_pres > (4096U * huart->Init.BaudRate))) - 800d492: 697b ldr r3, [r7, #20] - 800d494: 685b ldr r3, [r3, #4] - 800d496: 031b lsls r3, r3, #12 - if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) || - 800d498: 6b3a ldr r2, [r7, #48] ; 0x30 - 800d49a: 429a cmp r2, r3 - 800d49c: d910 bls.n 800d4c0 - { - ret = HAL_ERROR; - 800d49e: 2301 movs r3, #1 - 800d4a0: f887 3042 strb.w r3, [r7, #66] ; 0x42 - 800d4a4: e1d1 b.n 800d84a - 800d4a6: bf00 nop - 800d4a8: 40011c00 .word 0x40011c00 - 800d4ac: 58024400 .word 0x58024400 - 800d4b0: 58000c00 .word 0x58000c00 - 800d4b4: 03d09000 .word 0x03d09000 - 800d4b8: 003d0900 .word 0x003d0900 - 800d4bc: 08026b58 .word 0x08026b58 - } - else - { - /* Check computed UsartDiv value is in allocated range - (it is forbidden to write values lower than 0x300 in the LPUART_BRR register) */ - usartdiv = (uint32_t)(UART_DIV_LPUART(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler)); - 800d4c0: 6bfb ldr r3, [r7, #60] ; 0x3c - 800d4c2: 2200 movs r2, #0 - 800d4c4: 60bb str r3, [r7, #8] - 800d4c6: 60fa str r2, [r7, #12] - 800d4c8: 697b ldr r3, [r7, #20] - 800d4ca: 6a5b ldr r3, [r3, #36] ; 0x24 - 800d4cc: 4ac0 ldr r2, [pc, #768] ; (800d7d0 ) - 800d4ce: f832 3013 ldrh.w r3, [r2, r3, lsl #1] - 800d4d2: b29b uxth r3, r3 - 800d4d4: 2200 movs r2, #0 - 800d4d6: 603b str r3, [r7, #0] - 800d4d8: 607a str r2, [r7, #4] - 800d4da: e9d7 2300 ldrd r2, r3, [r7] - 800d4de: e9d7 0102 ldrd r0, r1, [r7, #8] - 800d4e2: f7f2 ff7d bl 80003e0 <__aeabi_uldivmod> - 800d4e6: 4602 mov r2, r0 - 800d4e8: 460b mov r3, r1 - 800d4ea: 4610 mov r0, r2 - 800d4ec: 4619 mov r1, r3 - 800d4ee: f04f 0200 mov.w r2, #0 - 800d4f2: f04f 0300 mov.w r3, #0 - 800d4f6: 020b lsls r3, r1, #8 - 800d4f8: ea43 6310 orr.w r3, r3, r0, lsr #24 - 800d4fc: 0202 lsls r2, r0, #8 - 800d4fe: 6979 ldr r1, [r7, #20] - 800d500: 6849 ldr r1, [r1, #4] - 800d502: 0849 lsrs r1, r1, #1 - 800d504: 2000 movs r0, #0 - 800d506: 460c mov r4, r1 - 800d508: 4605 mov r5, r0 - 800d50a: eb12 0804 adds.w r8, r2, r4 - 800d50e: eb43 0905 adc.w r9, r3, r5 - 800d512: 697b ldr r3, [r7, #20] - 800d514: 685b ldr r3, [r3, #4] - 800d516: 2200 movs r2, #0 - 800d518: 469a mov sl, r3 - 800d51a: 4693 mov fp, r2 - 800d51c: 4652 mov r2, sl - 800d51e: 465b mov r3, fp - 800d520: 4640 mov r0, r8 - 800d522: 4649 mov r1, r9 - 800d524: f7f2 ff5c bl 80003e0 <__aeabi_uldivmod> - 800d528: 4602 mov r2, r0 - 800d52a: 460b mov r3, r1 - 800d52c: 4613 mov r3, r2 - 800d52e: 63bb str r3, [r7, #56] ; 0x38 - if ((usartdiv >= LPUART_BRR_MIN) && (usartdiv <= LPUART_BRR_MAX)) - 800d530: 6bbb ldr r3, [r7, #56] ; 0x38 - 800d532: f5b3 7f40 cmp.w r3, #768 ; 0x300 - 800d536: d308 bcc.n 800d54a - 800d538: 6bbb ldr r3, [r7, #56] ; 0x38 - 800d53a: f5b3 1f80 cmp.w r3, #1048576 ; 0x100000 - 800d53e: d204 bcs.n 800d54a - { - huart->Instance->BRR = usartdiv; - 800d540: 697b ldr r3, [r7, #20] - 800d542: 681b ldr r3, [r3, #0] - 800d544: 6bba ldr r2, [r7, #56] ; 0x38 - 800d546: 60da str r2, [r3, #12] - 800d548: e17f b.n 800d84a - } - else - { - ret = HAL_ERROR; - 800d54a: 2301 movs r3, #1 - 800d54c: f887 3042 strb.w r3, [r7, #66] ; 0x42 - 800d550: e17b b.n 800d84a - } /* if ( (lpuart_ker_ck_pres < (3 * huart->Init.BaudRate) ) || - (lpuart_ker_ck_pres > (4096 * huart->Init.BaudRate) )) */ - } /* if (pclk != 0) */ - } - /* Check UART Over Sampling to set Baud Rate Register */ - else if (huart->Init.OverSampling == UART_OVERSAMPLING_8) - 800d552: 697b ldr r3, [r7, #20] - 800d554: 69db ldr r3, [r3, #28] - 800d556: f5b3 4f00 cmp.w r3, #32768 ; 0x8000 - 800d55a: f040 80bd bne.w 800d6d8 - { - switch (clocksource) - 800d55e: f897 3043 ldrb.w r3, [r7, #67] ; 0x43 - 800d562: 2b20 cmp r3, #32 - 800d564: dc48 bgt.n 800d5f8 - 800d566: 2b00 cmp r3, #0 - 800d568: db7b blt.n 800d662 - 800d56a: 2b20 cmp r3, #32 - 800d56c: d879 bhi.n 800d662 - 800d56e: a201 add r2, pc, #4 ; (adr r2, 800d574 ) - 800d570: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800d574: 0800d5ff .word 0x0800d5ff - 800d578: 0800d607 .word 0x0800d607 - 800d57c: 0800d663 .word 0x0800d663 - 800d580: 0800d663 .word 0x0800d663 - 800d584: 0800d60f .word 0x0800d60f - 800d588: 0800d663 .word 0x0800d663 - 800d58c: 0800d663 .word 0x0800d663 - 800d590: 0800d663 .word 0x0800d663 - 800d594: 0800d61f .word 0x0800d61f - 800d598: 0800d663 .word 0x0800d663 - 800d59c: 0800d663 .word 0x0800d663 - 800d5a0: 0800d663 .word 0x0800d663 - 800d5a4: 0800d663 .word 0x0800d663 - 800d5a8: 0800d663 .word 0x0800d663 - 800d5ac: 0800d663 .word 0x0800d663 - 800d5b0: 0800d663 .word 0x0800d663 - 800d5b4: 0800d62f .word 0x0800d62f - 800d5b8: 0800d663 .word 0x0800d663 - 800d5bc: 0800d663 .word 0x0800d663 - 800d5c0: 0800d663 .word 0x0800d663 - 800d5c4: 0800d663 .word 0x0800d663 - 800d5c8: 0800d663 .word 0x0800d663 - 800d5cc: 0800d663 .word 0x0800d663 - 800d5d0: 0800d663 .word 0x0800d663 - 800d5d4: 0800d663 .word 0x0800d663 - 800d5d8: 0800d663 .word 0x0800d663 - 800d5dc: 0800d663 .word 0x0800d663 - 800d5e0: 0800d663 .word 0x0800d663 - 800d5e4: 0800d663 .word 0x0800d663 - 800d5e8: 0800d663 .word 0x0800d663 - 800d5ec: 0800d663 .word 0x0800d663 - 800d5f0: 0800d663 .word 0x0800d663 - 800d5f4: 0800d655 .word 0x0800d655 - 800d5f8: 2b40 cmp r3, #64 ; 0x40 - 800d5fa: d02e beq.n 800d65a - 800d5fc: e031 b.n 800d662 - { - case UART_CLOCKSOURCE_D2PCLK1: - pclk = HAL_RCC_GetPCLK1Freq(); - 800d5fe: f7fa fcaf bl 8007f60 - 800d602: 63f8 str r0, [r7, #60] ; 0x3c - break; - 800d604: e033 b.n 800d66e - case UART_CLOCKSOURCE_D2PCLK2: - pclk = HAL_RCC_GetPCLK2Freq(); - 800d606: f7fa fcc1 bl 8007f8c - 800d60a: 63f8 str r0, [r7, #60] ; 0x3c - break; - 800d60c: e02f b.n 800d66e - case UART_CLOCKSOURCE_PLL2: - HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks); - 800d60e: f107 0324 add.w r3, r7, #36 ; 0x24 - 800d612: 4618 mov r0, r3 - 800d614: f7fc fb9a bl 8009d4c - pclk = pll2_clocks.PLL2_Q_Frequency; - 800d618: 6abb ldr r3, [r7, #40] ; 0x28 - 800d61a: 63fb str r3, [r7, #60] ; 0x3c - break; - 800d61c: e027 b.n 800d66e - case UART_CLOCKSOURCE_PLL3: - HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks); - 800d61e: f107 0318 add.w r3, r7, #24 - 800d622: 4618 mov r0, r3 - 800d624: f7fc fce6 bl 8009ff4 - pclk = pll3_clocks.PLL3_Q_Frequency; - 800d628: 69fb ldr r3, [r7, #28] - 800d62a: 63fb str r3, [r7, #60] ; 0x3c - break; - 800d62c: e01f b.n 800d66e - case UART_CLOCKSOURCE_HSI: - if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U) - 800d62e: 4b69 ldr r3, [pc, #420] ; (800d7d4 ) - 800d630: 681b ldr r3, [r3, #0] - 800d632: f003 0320 and.w r3, r3, #32 - 800d636: 2b00 cmp r3, #0 - 800d638: d009 beq.n 800d64e - { - pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U)); - 800d63a: 4b66 ldr r3, [pc, #408] ; (800d7d4 ) - 800d63c: 681b ldr r3, [r3, #0] - 800d63e: 08db lsrs r3, r3, #3 - 800d640: f003 0303 and.w r3, r3, #3 - 800d644: 4a64 ldr r2, [pc, #400] ; (800d7d8 ) - 800d646: fa22 f303 lsr.w r3, r2, r3 - 800d64a: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - pclk = (uint32_t) HSI_VALUE; - } - break; - 800d64c: e00f b.n 800d66e - pclk = (uint32_t) HSI_VALUE; - 800d64e: 4b62 ldr r3, [pc, #392] ; (800d7d8 ) - 800d650: 63fb str r3, [r7, #60] ; 0x3c - break; - 800d652: e00c b.n 800d66e - case UART_CLOCKSOURCE_CSI: - pclk = (uint32_t) CSI_VALUE; - 800d654: 4b61 ldr r3, [pc, #388] ; (800d7dc ) - 800d656: 63fb str r3, [r7, #60] ; 0x3c - break; - 800d658: e009 b.n 800d66e - case UART_CLOCKSOURCE_LSE: - pclk = (uint32_t) LSE_VALUE; - 800d65a: f44f 4300 mov.w r3, #32768 ; 0x8000 - 800d65e: 63fb str r3, [r7, #60] ; 0x3c - break; - 800d660: e005 b.n 800d66e - default: - pclk = 0U; - 800d662: 2300 movs r3, #0 - 800d664: 63fb str r3, [r7, #60] ; 0x3c - ret = HAL_ERROR; - 800d666: 2301 movs r3, #1 - 800d668: f887 3042 strb.w r3, [r7, #66] ; 0x42 - break; - 800d66c: bf00 nop - } - - /* USARTDIV must be greater than or equal to 0d16 */ - if (pclk != 0U) - 800d66e: 6bfb ldr r3, [r7, #60] ; 0x3c - 800d670: 2b00 cmp r3, #0 - 800d672: f000 80ea beq.w 800d84a - { - usartdiv = (uint32_t)(UART_DIV_SAMPLING8(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler)); - 800d676: 697b ldr r3, [r7, #20] - 800d678: 6a5b ldr r3, [r3, #36] ; 0x24 - 800d67a: 4a55 ldr r2, [pc, #340] ; (800d7d0 ) - 800d67c: f832 3013 ldrh.w r3, [r2, r3, lsl #1] - 800d680: 461a mov r2, r3 - 800d682: 6bfb ldr r3, [r7, #60] ; 0x3c - 800d684: fbb3 f3f2 udiv r3, r3, r2 - 800d688: 005a lsls r2, r3, #1 - 800d68a: 697b ldr r3, [r7, #20] - 800d68c: 685b ldr r3, [r3, #4] - 800d68e: 085b lsrs r3, r3, #1 - 800d690: 441a add r2, r3 - 800d692: 697b ldr r3, [r7, #20] - 800d694: 685b ldr r3, [r3, #4] - 800d696: fbb2 f3f3 udiv r3, r2, r3 - 800d69a: 63bb str r3, [r7, #56] ; 0x38 - if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX)) - 800d69c: 6bbb ldr r3, [r7, #56] ; 0x38 - 800d69e: 2b0f cmp r3, #15 - 800d6a0: d916 bls.n 800d6d0 - 800d6a2: 6bbb ldr r3, [r7, #56] ; 0x38 - 800d6a4: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 800d6a8: d212 bcs.n 800d6d0 - { - brrtemp = (uint16_t)(usartdiv & 0xFFF0U); - 800d6aa: 6bbb ldr r3, [r7, #56] ; 0x38 - 800d6ac: b29b uxth r3, r3 - 800d6ae: f023 030f bic.w r3, r3, #15 - 800d6b2: 86fb strh r3, [r7, #54] ; 0x36 - brrtemp |= (uint16_t)((usartdiv & (uint16_t)0x000FU) >> 1U); - 800d6b4: 6bbb ldr r3, [r7, #56] ; 0x38 - 800d6b6: 085b lsrs r3, r3, #1 - 800d6b8: b29b uxth r3, r3 - 800d6ba: f003 0307 and.w r3, r3, #7 - 800d6be: b29a uxth r2, r3 - 800d6c0: 8efb ldrh r3, [r7, #54] ; 0x36 - 800d6c2: 4313 orrs r3, r2 - 800d6c4: 86fb strh r3, [r7, #54] ; 0x36 - huart->Instance->BRR = brrtemp; - 800d6c6: 697b ldr r3, [r7, #20] - 800d6c8: 681b ldr r3, [r3, #0] - 800d6ca: 8efa ldrh r2, [r7, #54] ; 0x36 - 800d6cc: 60da str r2, [r3, #12] - 800d6ce: e0bc b.n 800d84a - } - else - { - ret = HAL_ERROR; - 800d6d0: 2301 movs r3, #1 - 800d6d2: f887 3042 strb.w r3, [r7, #66] ; 0x42 - 800d6d6: e0b8 b.n 800d84a - } - } - } - else - { - switch (clocksource) - 800d6d8: f897 3043 ldrb.w r3, [r7, #67] ; 0x43 - 800d6dc: 2b20 cmp r3, #32 - 800d6de: dc4b bgt.n 800d778 - 800d6e0: 2b00 cmp r3, #0 - 800d6e2: f2c0 8087 blt.w 800d7f4 - 800d6e6: 2b20 cmp r3, #32 - 800d6e8: f200 8084 bhi.w 800d7f4 - 800d6ec: a201 add r2, pc, #4 ; (adr r2, 800d6f4 ) - 800d6ee: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800d6f2: bf00 nop - 800d6f4: 0800d77f .word 0x0800d77f - 800d6f8: 0800d787 .word 0x0800d787 - 800d6fc: 0800d7f5 .word 0x0800d7f5 - 800d700: 0800d7f5 .word 0x0800d7f5 - 800d704: 0800d78f .word 0x0800d78f - 800d708: 0800d7f5 .word 0x0800d7f5 - 800d70c: 0800d7f5 .word 0x0800d7f5 - 800d710: 0800d7f5 .word 0x0800d7f5 - 800d714: 0800d79f .word 0x0800d79f - 800d718: 0800d7f5 .word 0x0800d7f5 - 800d71c: 0800d7f5 .word 0x0800d7f5 - 800d720: 0800d7f5 .word 0x0800d7f5 - 800d724: 0800d7f5 .word 0x0800d7f5 - 800d728: 0800d7f5 .word 0x0800d7f5 - 800d72c: 0800d7f5 .word 0x0800d7f5 - 800d730: 0800d7f5 .word 0x0800d7f5 - 800d734: 0800d7af .word 0x0800d7af - 800d738: 0800d7f5 .word 0x0800d7f5 - 800d73c: 0800d7f5 .word 0x0800d7f5 - 800d740: 0800d7f5 .word 0x0800d7f5 - 800d744: 0800d7f5 .word 0x0800d7f5 - 800d748: 0800d7f5 .word 0x0800d7f5 - 800d74c: 0800d7f5 .word 0x0800d7f5 - 800d750: 0800d7f5 .word 0x0800d7f5 - 800d754: 0800d7f5 .word 0x0800d7f5 - 800d758: 0800d7f5 .word 0x0800d7f5 - 800d75c: 0800d7f5 .word 0x0800d7f5 - 800d760: 0800d7f5 .word 0x0800d7f5 - 800d764: 0800d7f5 .word 0x0800d7f5 - 800d768: 0800d7f5 .word 0x0800d7f5 - 800d76c: 0800d7f5 .word 0x0800d7f5 - 800d770: 0800d7f5 .word 0x0800d7f5 - 800d774: 0800d7e7 .word 0x0800d7e7 - 800d778: 2b40 cmp r3, #64 ; 0x40 - 800d77a: d037 beq.n 800d7ec - 800d77c: e03a b.n 800d7f4 - { - case UART_CLOCKSOURCE_D2PCLK1: - pclk = HAL_RCC_GetPCLK1Freq(); - 800d77e: f7fa fbef bl 8007f60 - 800d782: 63f8 str r0, [r7, #60] ; 0x3c - break; - 800d784: e03c b.n 800d800 - case UART_CLOCKSOURCE_D2PCLK2: - pclk = HAL_RCC_GetPCLK2Freq(); - 800d786: f7fa fc01 bl 8007f8c - 800d78a: 63f8 str r0, [r7, #60] ; 0x3c - break; - 800d78c: e038 b.n 800d800 - case UART_CLOCKSOURCE_PLL2: - HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks); - 800d78e: f107 0324 add.w r3, r7, #36 ; 0x24 - 800d792: 4618 mov r0, r3 - 800d794: f7fc fada bl 8009d4c - pclk = pll2_clocks.PLL2_Q_Frequency; - 800d798: 6abb ldr r3, [r7, #40] ; 0x28 - 800d79a: 63fb str r3, [r7, #60] ; 0x3c - break; - 800d79c: e030 b.n 800d800 - case UART_CLOCKSOURCE_PLL3: - HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks); - 800d79e: f107 0318 add.w r3, r7, #24 - 800d7a2: 4618 mov r0, r3 - 800d7a4: f7fc fc26 bl 8009ff4 - pclk = pll3_clocks.PLL3_Q_Frequency; - 800d7a8: 69fb ldr r3, [r7, #28] - 800d7aa: 63fb str r3, [r7, #60] ; 0x3c - break; - 800d7ac: e028 b.n 800d800 - case UART_CLOCKSOURCE_HSI: - if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U) - 800d7ae: 4b09 ldr r3, [pc, #36] ; (800d7d4 ) - 800d7b0: 681b ldr r3, [r3, #0] - 800d7b2: f003 0320 and.w r3, r3, #32 - 800d7b6: 2b00 cmp r3, #0 - 800d7b8: d012 beq.n 800d7e0 - { - pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U)); - 800d7ba: 4b06 ldr r3, [pc, #24] ; (800d7d4 ) - 800d7bc: 681b ldr r3, [r3, #0] - 800d7be: 08db lsrs r3, r3, #3 - 800d7c0: f003 0303 and.w r3, r3, #3 - 800d7c4: 4a04 ldr r2, [pc, #16] ; (800d7d8 ) - 800d7c6: fa22 f303 lsr.w r3, r2, r3 - 800d7ca: 63fb str r3, [r7, #60] ; 0x3c - } - else - { - pclk = (uint32_t) HSI_VALUE; - } - break; - 800d7cc: e018 b.n 800d800 - 800d7ce: bf00 nop - 800d7d0: 08026b58 .word 0x08026b58 - 800d7d4: 58024400 .word 0x58024400 - 800d7d8: 03d09000 .word 0x03d09000 - 800d7dc: 003d0900 .word 0x003d0900 - pclk = (uint32_t) HSI_VALUE; - 800d7e0: 4b24 ldr r3, [pc, #144] ; (800d874 ) - 800d7e2: 63fb str r3, [r7, #60] ; 0x3c - break; - 800d7e4: e00c b.n 800d800 - case UART_CLOCKSOURCE_CSI: - pclk = (uint32_t) CSI_VALUE; - 800d7e6: 4b24 ldr r3, [pc, #144] ; (800d878 ) - 800d7e8: 63fb str r3, [r7, #60] ; 0x3c - break; - 800d7ea: e009 b.n 800d800 - case UART_CLOCKSOURCE_LSE: - pclk = (uint32_t) LSE_VALUE; - 800d7ec: f44f 4300 mov.w r3, #32768 ; 0x8000 - 800d7f0: 63fb str r3, [r7, #60] ; 0x3c - break; - 800d7f2: e005 b.n 800d800 - default: - pclk = 0U; - 800d7f4: 2300 movs r3, #0 - 800d7f6: 63fb str r3, [r7, #60] ; 0x3c - ret = HAL_ERROR; - 800d7f8: 2301 movs r3, #1 - 800d7fa: f887 3042 strb.w r3, [r7, #66] ; 0x42 - break; - 800d7fe: bf00 nop - } - - if (pclk != 0U) - 800d800: 6bfb ldr r3, [r7, #60] ; 0x3c - 800d802: 2b00 cmp r3, #0 - 800d804: d021 beq.n 800d84a - { - /* USARTDIV must be greater than or equal to 0d16 */ - usartdiv = (uint32_t)(UART_DIV_SAMPLING16(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler)); - 800d806: 697b ldr r3, [r7, #20] - 800d808: 6a5b ldr r3, [r3, #36] ; 0x24 - 800d80a: 4a1c ldr r2, [pc, #112] ; (800d87c ) - 800d80c: f832 3013 ldrh.w r3, [r2, r3, lsl #1] - 800d810: 461a mov r2, r3 - 800d812: 6bfb ldr r3, [r7, #60] ; 0x3c - 800d814: fbb3 f2f2 udiv r2, r3, r2 - 800d818: 697b ldr r3, [r7, #20] - 800d81a: 685b ldr r3, [r3, #4] - 800d81c: 085b lsrs r3, r3, #1 - 800d81e: 441a add r2, r3 - 800d820: 697b ldr r3, [r7, #20] - 800d822: 685b ldr r3, [r3, #4] - 800d824: fbb2 f3f3 udiv r3, r2, r3 - 800d828: 63bb str r3, [r7, #56] ; 0x38 - if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX)) - 800d82a: 6bbb ldr r3, [r7, #56] ; 0x38 - 800d82c: 2b0f cmp r3, #15 - 800d82e: d909 bls.n 800d844 - 800d830: 6bbb ldr r3, [r7, #56] ; 0x38 - 800d832: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 800d836: d205 bcs.n 800d844 - { - huart->Instance->BRR = (uint16_t)usartdiv; - 800d838: 6bbb ldr r3, [r7, #56] ; 0x38 - 800d83a: b29a uxth r2, r3 - 800d83c: 697b ldr r3, [r7, #20] - 800d83e: 681b ldr r3, [r3, #0] - 800d840: 60da str r2, [r3, #12] - 800d842: e002 b.n 800d84a - } - else - { - ret = HAL_ERROR; - 800d844: 2301 movs r3, #1 - 800d846: f887 3042 strb.w r3, [r7, #66] ; 0x42 - } - } - } - - /* Initialize the number of data to process during RX/TX ISR execution */ - huart->NbTxDataToProcess = 1; - 800d84a: 697b ldr r3, [r7, #20] - 800d84c: 2201 movs r2, #1 - 800d84e: f8a3 206a strh.w r2, [r3, #106] ; 0x6a - huart->NbRxDataToProcess = 1; - 800d852: 697b ldr r3, [r7, #20] - 800d854: 2201 movs r2, #1 - 800d856: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 - - /* Clear ISR function pointers */ - huart->RxISR = NULL; - 800d85a: 697b ldr r3, [r7, #20] - 800d85c: 2200 movs r2, #0 - 800d85e: 675a str r2, [r3, #116] ; 0x74 - huart->TxISR = NULL; - 800d860: 697b ldr r3, [r7, #20] - 800d862: 2200 movs r2, #0 - 800d864: 679a str r2, [r3, #120] ; 0x78 - - return ret; - 800d866: f897 3042 ldrb.w r3, [r7, #66] ; 0x42 -} - 800d86a: 4618 mov r0, r3 - 800d86c: 3748 adds r7, #72 ; 0x48 - 800d86e: 46bd mov sp, r7 - 800d870: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc} - 800d874: 03d09000 .word 0x03d09000 - 800d878: 003d0900 .word 0x003d0900 - 800d87c: 08026b58 .word 0x08026b58 - -0800d880 : - * @brief Configure the UART peripheral advanced features. - * @param huart UART handle. - * @retval None - */ -void UART_AdvFeatureConfig(UART_HandleTypeDef *huart) -{ - 800d880: b480 push {r7} - 800d882: b083 sub sp, #12 - 800d884: af00 add r7, sp, #0 - 800d886: 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)) - 800d888: 687b ldr r3, [r7, #4] - 800d88a: 6a9b ldr r3, [r3, #40] ; 0x28 - 800d88c: f003 0301 and.w r3, r3, #1 - 800d890: 2b00 cmp r3, #0 - 800d892: d00a beq.n 800d8aa - { - assert_param(IS_UART_ADVFEATURE_TXINV(huart->AdvancedInit.TxPinLevelInvert)); - MODIFY_REG(huart->Instance->CR2, USART_CR2_TXINV, huart->AdvancedInit.TxPinLevelInvert); - 800d894: 687b ldr r3, [r7, #4] - 800d896: 681b ldr r3, [r3, #0] - 800d898: 685b ldr r3, [r3, #4] - 800d89a: f423 3100 bic.w r1, r3, #131072 ; 0x20000 - 800d89e: 687b ldr r3, [r7, #4] - 800d8a0: 6ada ldr r2, [r3, #44] ; 0x2c - 800d8a2: 687b ldr r3, [r7, #4] - 800d8a4: 681b ldr r3, [r3, #0] - 800d8a6: 430a orrs r2, r1 - 800d8a8: 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)) - 800d8aa: 687b ldr r3, [r7, #4] - 800d8ac: 6a9b ldr r3, [r3, #40] ; 0x28 - 800d8ae: f003 0302 and.w r3, r3, #2 - 800d8b2: 2b00 cmp r3, #0 - 800d8b4: d00a beq.n 800d8cc - { - assert_param(IS_UART_ADVFEATURE_RXINV(huart->AdvancedInit.RxPinLevelInvert)); - MODIFY_REG(huart->Instance->CR2, USART_CR2_RXINV, huart->AdvancedInit.RxPinLevelInvert); - 800d8b6: 687b ldr r3, [r7, #4] - 800d8b8: 681b ldr r3, [r3, #0] - 800d8ba: 685b ldr r3, [r3, #4] - 800d8bc: f423 3180 bic.w r1, r3, #65536 ; 0x10000 - 800d8c0: 687b ldr r3, [r7, #4] - 800d8c2: 6b1a ldr r2, [r3, #48] ; 0x30 - 800d8c4: 687b ldr r3, [r7, #4] - 800d8c6: 681b ldr r3, [r3, #0] - 800d8c8: 430a orrs r2, r1 - 800d8ca: 605a str r2, [r3, #4] - } - - /* if required, configure data inversion */ - if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DATAINVERT_INIT)) - 800d8cc: 687b ldr r3, [r7, #4] - 800d8ce: 6a9b ldr r3, [r3, #40] ; 0x28 - 800d8d0: f003 0304 and.w r3, r3, #4 - 800d8d4: 2b00 cmp r3, #0 - 800d8d6: d00a beq.n 800d8ee - { - assert_param(IS_UART_ADVFEATURE_DATAINV(huart->AdvancedInit.DataInvert)); - MODIFY_REG(huart->Instance->CR2, USART_CR2_DATAINV, huart->AdvancedInit.DataInvert); - 800d8d8: 687b ldr r3, [r7, #4] - 800d8da: 681b ldr r3, [r3, #0] - 800d8dc: 685b ldr r3, [r3, #4] - 800d8de: f423 2180 bic.w r1, r3, #262144 ; 0x40000 - 800d8e2: 687b ldr r3, [r7, #4] - 800d8e4: 6b5a ldr r2, [r3, #52] ; 0x34 - 800d8e6: 687b ldr r3, [r7, #4] - 800d8e8: 681b ldr r3, [r3, #0] - 800d8ea: 430a orrs r2, r1 - 800d8ec: 605a str r2, [r3, #4] - } - - /* if required, configure RX/TX pins swap */ - if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_SWAP_INIT)) - 800d8ee: 687b ldr r3, [r7, #4] - 800d8f0: 6a9b ldr r3, [r3, #40] ; 0x28 - 800d8f2: f003 0308 and.w r3, r3, #8 - 800d8f6: 2b00 cmp r3, #0 - 800d8f8: d00a beq.n 800d910 - { - assert_param(IS_UART_ADVFEATURE_SWAP(huart->AdvancedInit.Swap)); - MODIFY_REG(huart->Instance->CR2, USART_CR2_SWAP, huart->AdvancedInit.Swap); - 800d8fa: 687b ldr r3, [r7, #4] - 800d8fc: 681b ldr r3, [r3, #0] - 800d8fe: 685b ldr r3, [r3, #4] - 800d900: f423 4100 bic.w r1, r3, #32768 ; 0x8000 - 800d904: 687b ldr r3, [r7, #4] - 800d906: 6b9a ldr r2, [r3, #56] ; 0x38 - 800d908: 687b ldr r3, [r7, #4] - 800d90a: 681b ldr r3, [r3, #0] - 800d90c: 430a orrs r2, r1 - 800d90e: 605a str r2, [r3, #4] - } - - /* if required, configure RX overrun detection disabling */ - if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXOVERRUNDISABLE_INIT)) - 800d910: 687b ldr r3, [r7, #4] - 800d912: 6a9b ldr r3, [r3, #40] ; 0x28 - 800d914: f003 0310 and.w r3, r3, #16 - 800d918: 2b00 cmp r3, #0 - 800d91a: d00a beq.n 800d932 - { - assert_param(IS_UART_OVERRUN(huart->AdvancedInit.OverrunDisable)); - MODIFY_REG(huart->Instance->CR3, USART_CR3_OVRDIS, huart->AdvancedInit.OverrunDisable); - 800d91c: 687b ldr r3, [r7, #4] - 800d91e: 681b ldr r3, [r3, #0] - 800d920: 689b ldr r3, [r3, #8] - 800d922: f423 5180 bic.w r1, r3, #4096 ; 0x1000 - 800d926: 687b ldr r3, [r7, #4] - 800d928: 6bda ldr r2, [r3, #60] ; 0x3c - 800d92a: 687b ldr r3, [r7, #4] - 800d92c: 681b ldr r3, [r3, #0] - 800d92e: 430a orrs r2, r1 - 800d930: 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)) - 800d932: 687b ldr r3, [r7, #4] - 800d934: 6a9b ldr r3, [r3, #40] ; 0x28 - 800d936: f003 0320 and.w r3, r3, #32 - 800d93a: 2b00 cmp r3, #0 - 800d93c: d00a beq.n 800d954 - { - assert_param(IS_UART_ADVFEATURE_DMAONRXERROR(huart->AdvancedInit.DMADisableonRxError)); - MODIFY_REG(huart->Instance->CR3, USART_CR3_DDRE, huart->AdvancedInit.DMADisableonRxError); - 800d93e: 687b ldr r3, [r7, #4] - 800d940: 681b ldr r3, [r3, #0] - 800d942: 689b ldr r3, [r3, #8] - 800d944: f423 5100 bic.w r1, r3, #8192 ; 0x2000 - 800d948: 687b ldr r3, [r7, #4] - 800d94a: 6c1a ldr r2, [r3, #64] ; 0x40 - 800d94c: 687b ldr r3, [r7, #4] - 800d94e: 681b ldr r3, [r3, #0] - 800d950: 430a orrs r2, r1 - 800d952: 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)) - 800d954: 687b ldr r3, [r7, #4] - 800d956: 6a9b ldr r3, [r3, #40] ; 0x28 - 800d958: f003 0340 and.w r3, r3, #64 ; 0x40 - 800d95c: 2b00 cmp r3, #0 - 800d95e: d01a beq.n 800d996 - { - 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); - 800d960: 687b ldr r3, [r7, #4] - 800d962: 681b ldr r3, [r3, #0] - 800d964: 685b ldr r3, [r3, #4] - 800d966: f423 1180 bic.w r1, r3, #1048576 ; 0x100000 - 800d96a: 687b ldr r3, [r7, #4] - 800d96c: 6c5a ldr r2, [r3, #68] ; 0x44 - 800d96e: 687b ldr r3, [r7, #4] - 800d970: 681b ldr r3, [r3, #0] - 800d972: 430a orrs r2, r1 - 800d974: 605a str r2, [r3, #4] - /* set auto Baudrate detection parameters if detection is enabled */ - if (huart->AdvancedInit.AutoBaudRateEnable == UART_ADVFEATURE_AUTOBAUDRATE_ENABLE) - 800d976: 687b ldr r3, [r7, #4] - 800d978: 6c5b ldr r3, [r3, #68] ; 0x44 - 800d97a: f5b3 1f80 cmp.w r3, #1048576 ; 0x100000 - 800d97e: d10a bne.n 800d996 - { - assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATEMODE(huart->AdvancedInit.AutoBaudRateMode)); - MODIFY_REG(huart->Instance->CR2, USART_CR2_ABRMODE, huart->AdvancedInit.AutoBaudRateMode); - 800d980: 687b ldr r3, [r7, #4] - 800d982: 681b ldr r3, [r3, #0] - 800d984: 685b ldr r3, [r3, #4] - 800d986: f423 01c0 bic.w r1, r3, #6291456 ; 0x600000 - 800d98a: 687b ldr r3, [r7, #4] - 800d98c: 6c9a ldr r2, [r3, #72] ; 0x48 - 800d98e: 687b ldr r3, [r7, #4] - 800d990: 681b ldr r3, [r3, #0] - 800d992: 430a orrs r2, r1 - 800d994: 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)) - 800d996: 687b ldr r3, [r7, #4] - 800d998: 6a9b ldr r3, [r3, #40] ; 0x28 - 800d99a: f003 0380 and.w r3, r3, #128 ; 0x80 - 800d99e: 2b00 cmp r3, #0 - 800d9a0: d00a beq.n 800d9b8 - { - assert_param(IS_UART_ADVFEATURE_MSBFIRST(huart->AdvancedInit.MSBFirst)); - MODIFY_REG(huart->Instance->CR2, USART_CR2_MSBFIRST, huart->AdvancedInit.MSBFirst); - 800d9a2: 687b ldr r3, [r7, #4] - 800d9a4: 681b ldr r3, [r3, #0] - 800d9a6: 685b ldr r3, [r3, #4] - 800d9a8: f423 2100 bic.w r1, r3, #524288 ; 0x80000 - 800d9ac: 687b ldr r3, [r7, #4] - 800d9ae: 6cda ldr r2, [r3, #76] ; 0x4c - 800d9b0: 687b ldr r3, [r7, #4] - 800d9b2: 681b ldr r3, [r3, #0] - 800d9b4: 430a orrs r2, r1 - 800d9b6: 605a str r2, [r3, #4] - } -} - 800d9b8: bf00 nop - 800d9ba: 370c adds r7, #12 - 800d9bc: 46bd mov sp, r7 - 800d9be: f85d 7b04 ldr.w r7, [sp], #4 - 800d9c2: 4770 bx lr - -0800d9c4 : - * @brief Check the UART Idle State. - * @param huart UART handle. - * @retval HAL status - */ -HAL_StatusTypeDef UART_CheckIdleState(UART_HandleTypeDef *huart) -{ - 800d9c4: b580 push {r7, lr} - 800d9c6: b098 sub sp, #96 ; 0x60 - 800d9c8: af02 add r7, sp, #8 - 800d9ca: 6078 str r0, [r7, #4] - uint32_t tickstart; - - /* Initialize the UART ErrorCode */ - huart->ErrorCode = HAL_UART_ERROR_NONE; - 800d9cc: 687b ldr r3, [r7, #4] - 800d9ce: 2200 movs r2, #0 - 800d9d0: f8c3 2090 str.w r2, [r3, #144] ; 0x90 - - /* Init tickstart for timeout management */ - tickstart = HAL_GetTick(); - 800d9d4: f7f4 fcc6 bl 8002364 - 800d9d8: 6578 str r0, [r7, #84] ; 0x54 - - /* Check if the Transmitter is enabled */ - if ((huart->Instance->CR1 & USART_CR1_TE) == USART_CR1_TE) - 800d9da: 687b ldr r3, [r7, #4] - 800d9dc: 681b ldr r3, [r3, #0] - 800d9de: 681b ldr r3, [r3, #0] - 800d9e0: f003 0308 and.w r3, r3, #8 - 800d9e4: 2b08 cmp r3, #8 - 800d9e6: d12f bne.n 800da48 - { - /* Wait until TEACK flag is set */ - if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_TEACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK) - 800d9e8: f06f 437e mvn.w r3, #4261412864 ; 0xfe000000 - 800d9ec: 9300 str r3, [sp, #0] - 800d9ee: 6d7b ldr r3, [r7, #84] ; 0x54 - 800d9f0: 2200 movs r2, #0 - 800d9f2: f44f 1100 mov.w r1, #2097152 ; 0x200000 - 800d9f6: 6878 ldr r0, [r7, #4] - 800d9f8: f000 f88e bl 800db18 - 800d9fc: 4603 mov r3, r0 - 800d9fe: 2b00 cmp r3, #0 - 800da00: d022 beq.n 800da48 - { - /* Disable TXE interrupt for the interrupt process */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE_TXFNFIE)); - 800da02: 687b ldr r3, [r7, #4] - 800da04: 681b ldr r3, [r3, #0] - 800da06: 63bb str r3, [r7, #56] ; 0x38 - */ -__STATIC_FORCEINLINE uint32_t __LDREXW(volatile uint32_t *addr) -{ - uint32_t result; - - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 800da08: 6bbb ldr r3, [r7, #56] ; 0x38 - 800da0a: e853 3f00 ldrex r3, [r3] - 800da0e: 637b str r3, [r7, #52] ; 0x34 - return(result); - 800da10: 6b7b ldr r3, [r7, #52] ; 0x34 - 800da12: f023 0380 bic.w r3, r3, #128 ; 0x80 - 800da16: 653b str r3, [r7, #80] ; 0x50 - 800da18: 687b ldr r3, [r7, #4] - 800da1a: 681b ldr r3, [r3, #0] - 800da1c: 461a mov r2, r3 - 800da1e: 6d3b ldr r3, [r7, #80] ; 0x50 - 800da20: 647b str r3, [r7, #68] ; 0x44 - 800da22: 643a str r2, [r7, #64] ; 0x40 - */ -__STATIC_FORCEINLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr) -{ - uint32_t result; - - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 800da24: 6c39 ldr r1, [r7, #64] ; 0x40 - 800da26: 6c7a ldr r2, [r7, #68] ; 0x44 - 800da28: e841 2300 strex r3, r2, [r1] - 800da2c: 63fb str r3, [r7, #60] ; 0x3c - return(result); - 800da2e: 6bfb ldr r3, [r7, #60] ; 0x3c - 800da30: 2b00 cmp r3, #0 - 800da32: d1e6 bne.n 800da02 - - huart->gState = HAL_UART_STATE_READY; - 800da34: 687b ldr r3, [r7, #4] - 800da36: 2220 movs r2, #32 - 800da38: f8c3 2088 str.w r2, [r3, #136] ; 0x88 - - __HAL_UNLOCK(huart); - 800da3c: 687b ldr r3, [r7, #4] - 800da3e: 2200 movs r2, #0 - 800da40: f883 2084 strb.w r2, [r3, #132] ; 0x84 - - /* Timeout occurred */ - return HAL_TIMEOUT; - 800da44: 2303 movs r3, #3 - 800da46: e063 b.n 800db10 - } - } - - /* Check if the Receiver is enabled */ - if ((huart->Instance->CR1 & USART_CR1_RE) == USART_CR1_RE) - 800da48: 687b ldr r3, [r7, #4] - 800da4a: 681b ldr r3, [r3, #0] - 800da4c: 681b ldr r3, [r3, #0] - 800da4e: f003 0304 and.w r3, r3, #4 - 800da52: 2b04 cmp r3, #4 - 800da54: d149 bne.n 800daea - { - /* Wait until REACK flag is set */ - if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_REACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK) - 800da56: f06f 437e mvn.w r3, #4261412864 ; 0xfe000000 - 800da5a: 9300 str r3, [sp, #0] - 800da5c: 6d7b ldr r3, [r7, #84] ; 0x54 - 800da5e: 2200 movs r2, #0 - 800da60: f44f 0180 mov.w r1, #4194304 ; 0x400000 - 800da64: 6878 ldr r0, [r7, #4] - 800da66: f000 f857 bl 800db18 - 800da6a: 4603 mov r3, r0 - 800da6c: 2b00 cmp r3, #0 - 800da6e: d03c beq.n 800daea - { - /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) - interrupts for the interrupt process */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE)); - 800da70: 687b ldr r3, [r7, #4] - 800da72: 681b ldr r3, [r3, #0] - 800da74: 627b str r3, [r7, #36] ; 0x24 - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 800da76: 6a7b ldr r3, [r7, #36] ; 0x24 - 800da78: e853 3f00 ldrex r3, [r3] - 800da7c: 623b str r3, [r7, #32] - return(result); - 800da7e: 6a3b ldr r3, [r7, #32] - 800da80: f423 7390 bic.w r3, r3, #288 ; 0x120 - 800da84: 64fb str r3, [r7, #76] ; 0x4c - 800da86: 687b ldr r3, [r7, #4] - 800da88: 681b ldr r3, [r3, #0] - 800da8a: 461a mov r2, r3 - 800da8c: 6cfb ldr r3, [r7, #76] ; 0x4c - 800da8e: 633b str r3, [r7, #48] ; 0x30 - 800da90: 62fa str r2, [r7, #44] ; 0x2c - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 800da92: 6af9 ldr r1, [r7, #44] ; 0x2c - 800da94: 6b3a ldr r2, [r7, #48] ; 0x30 - 800da96: e841 2300 strex r3, r2, [r1] - 800da9a: 62bb str r3, [r7, #40] ; 0x28 - return(result); - 800da9c: 6abb ldr r3, [r7, #40] ; 0x28 - 800da9e: 2b00 cmp r3, #0 - 800daa0: d1e6 bne.n 800da70 - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - 800daa2: 687b ldr r3, [r7, #4] - 800daa4: 681b ldr r3, [r3, #0] - 800daa6: 3308 adds r3, #8 - 800daa8: 613b str r3, [r7, #16] - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 800daaa: 693b ldr r3, [r7, #16] - 800daac: e853 3f00 ldrex r3, [r3] - 800dab0: 60fb str r3, [r7, #12] - return(result); - 800dab2: 68fb ldr r3, [r7, #12] - 800dab4: f023 0301 bic.w r3, r3, #1 - 800dab8: 64bb str r3, [r7, #72] ; 0x48 - 800daba: 687b ldr r3, [r7, #4] - 800dabc: 681b ldr r3, [r3, #0] - 800dabe: 3308 adds r3, #8 - 800dac0: 6cba ldr r2, [r7, #72] ; 0x48 - 800dac2: 61fa str r2, [r7, #28] - 800dac4: 61bb str r3, [r7, #24] - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 800dac6: 69b9 ldr r1, [r7, #24] - 800dac8: 69fa ldr r2, [r7, #28] - 800daca: e841 2300 strex r3, r2, [r1] - 800dace: 617b str r3, [r7, #20] - return(result); - 800dad0: 697b ldr r3, [r7, #20] - 800dad2: 2b00 cmp r3, #0 - 800dad4: d1e5 bne.n 800daa2 - - huart->RxState = HAL_UART_STATE_READY; - 800dad6: 687b ldr r3, [r7, #4] - 800dad8: 2220 movs r2, #32 - 800dada: f8c3 208c str.w r2, [r3, #140] ; 0x8c - - __HAL_UNLOCK(huart); - 800dade: 687b ldr r3, [r7, #4] - 800dae0: 2200 movs r2, #0 - 800dae2: f883 2084 strb.w r2, [r3, #132] ; 0x84 - - /* Timeout occurred */ - return HAL_TIMEOUT; - 800dae6: 2303 movs r3, #3 - 800dae8: e012 b.n 800db10 - } - } - - /* Initialize the UART State */ - huart->gState = HAL_UART_STATE_READY; - 800daea: 687b ldr r3, [r7, #4] - 800daec: 2220 movs r2, #32 - 800daee: f8c3 2088 str.w r2, [r3, #136] ; 0x88 - huart->RxState = HAL_UART_STATE_READY; - 800daf2: 687b ldr r3, [r7, #4] - 800daf4: 2220 movs r2, #32 - 800daf6: f8c3 208c str.w r2, [r3, #140] ; 0x8c - huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 800dafa: 687b ldr r3, [r7, #4] - 800dafc: 2200 movs r2, #0 - 800dafe: 66da str r2, [r3, #108] ; 0x6c - huart->RxEventType = HAL_UART_RXEVENT_TC; - 800db00: 687b ldr r3, [r7, #4] - 800db02: 2200 movs r2, #0 - 800db04: 671a str r2, [r3, #112] ; 0x70 - - __HAL_UNLOCK(huart); - 800db06: 687b ldr r3, [r7, #4] - 800db08: 2200 movs r2, #0 - 800db0a: f883 2084 strb.w r2, [r3, #132] ; 0x84 - - return HAL_OK; - 800db0e: 2300 movs r3, #0 -} - 800db10: 4618 mov r0, r3 - 800db12: 3758 adds r7, #88 ; 0x58 - 800db14: 46bd mov sp, r7 - 800db16: bd80 pop {r7, pc} - -0800db18 : - * @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) -{ - 800db18: b580 push {r7, lr} - 800db1a: b084 sub sp, #16 - 800db1c: af00 add r7, sp, #0 - 800db1e: 60f8 str r0, [r7, #12] - 800db20: 60b9 str r1, [r7, #8] - 800db22: 603b str r3, [r7, #0] - 800db24: 4613 mov r3, r2 - 800db26: 71fb strb r3, [r7, #7] - /* Wait until flag is set */ - while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status) - 800db28: e049 b.n 800dbbe - { - /* Check for the Timeout */ - if (Timeout != HAL_MAX_DELAY) - 800db2a: 69bb ldr r3, [r7, #24] - 800db2c: f1b3 3fff cmp.w r3, #4294967295 - 800db30: d045 beq.n 800dbbe - { - if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) - 800db32: f7f4 fc17 bl 8002364 - 800db36: 4602 mov r2, r0 - 800db38: 683b ldr r3, [r7, #0] - 800db3a: 1ad3 subs r3, r2, r3 - 800db3c: 69ba ldr r2, [r7, #24] - 800db3e: 429a cmp r2, r3 - 800db40: d302 bcc.n 800db48 - 800db42: 69bb ldr r3, [r7, #24] - 800db44: 2b00 cmp r3, #0 - 800db46: d101 bne.n 800db4c - { - - return HAL_TIMEOUT; - 800db48: 2303 movs r3, #3 - 800db4a: e048 b.n 800dbde - } - - if (READ_BIT(huart->Instance->CR1, USART_CR1_RE) != 0U) - 800db4c: 68fb ldr r3, [r7, #12] - 800db4e: 681b ldr r3, [r3, #0] - 800db50: 681b ldr r3, [r3, #0] - 800db52: f003 0304 and.w r3, r3, #4 - 800db56: 2b00 cmp r3, #0 - 800db58: d031 beq.n 800dbbe - { - if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) == SET) - 800db5a: 68fb ldr r3, [r7, #12] - 800db5c: 681b ldr r3, [r3, #0] - 800db5e: 69db ldr r3, [r3, #28] - 800db60: f003 0308 and.w r3, r3, #8 - 800db64: 2b08 cmp r3, #8 - 800db66: d110 bne.n 800db8a - { - /* Clear Overrun Error flag*/ - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF); - 800db68: 68fb ldr r3, [r7, #12] - 800db6a: 681b ldr r3, [r3, #0] - 800db6c: 2208 movs r2, #8 - 800db6e: 621a str r2, [r3, #32] - - /* Blocking error : transfer is aborted - Set the UART state ready to be able to start again the process, - Disable Rx Interrupts if ongoing */ - UART_EndRxTransfer(huart); - 800db70: 68f8 ldr r0, [r7, #12] - 800db72: f000 f839 bl 800dbe8 - - huart->ErrorCode = HAL_UART_ERROR_ORE; - 800db76: 68fb ldr r3, [r7, #12] - 800db78: 2208 movs r2, #8 - 800db7a: f8c3 2090 str.w r2, [r3, #144] ; 0x90 - - /* Process Unlocked */ - __HAL_UNLOCK(huart); - 800db7e: 68fb ldr r3, [r7, #12] - 800db80: 2200 movs r2, #0 - 800db82: f883 2084 strb.w r2, [r3, #132] ; 0x84 - - return HAL_ERROR; - 800db86: 2301 movs r3, #1 - 800db88: e029 b.n 800dbde - } - if (__HAL_UART_GET_FLAG(huart, UART_FLAG_RTOF) == SET) - 800db8a: 68fb ldr r3, [r7, #12] - 800db8c: 681b ldr r3, [r3, #0] - 800db8e: 69db ldr r3, [r3, #28] - 800db90: f403 6300 and.w r3, r3, #2048 ; 0x800 - 800db94: f5b3 6f00 cmp.w r3, #2048 ; 0x800 - 800db98: d111 bne.n 800dbbe - { - /* Clear Receiver Timeout flag*/ - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF); - 800db9a: 68fb ldr r3, [r7, #12] - 800db9c: 681b ldr r3, [r3, #0] - 800db9e: f44f 6200 mov.w r2, #2048 ; 0x800 - 800dba2: 621a str r2, [r3, #32] - - /* Blocking error : transfer is aborted - Set the UART state ready to be able to start again the process, - Disable Rx Interrupts if ongoing */ - UART_EndRxTransfer(huart); - 800dba4: 68f8 ldr r0, [r7, #12] - 800dba6: f000 f81f bl 800dbe8 - - huart->ErrorCode = HAL_UART_ERROR_RTO; - 800dbaa: 68fb ldr r3, [r7, #12] - 800dbac: 2220 movs r2, #32 - 800dbae: f8c3 2090 str.w r2, [r3, #144] ; 0x90 - - /* Process Unlocked */ - __HAL_UNLOCK(huart); - 800dbb2: 68fb ldr r3, [r7, #12] - 800dbb4: 2200 movs r2, #0 - 800dbb6: f883 2084 strb.w r2, [r3, #132] ; 0x84 - - return HAL_TIMEOUT; - 800dbba: 2303 movs r3, #3 - 800dbbc: e00f b.n 800dbde - while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status) - 800dbbe: 68fb ldr r3, [r7, #12] - 800dbc0: 681b ldr r3, [r3, #0] - 800dbc2: 69da ldr r2, [r3, #28] - 800dbc4: 68bb ldr r3, [r7, #8] - 800dbc6: 4013 ands r3, r2 - 800dbc8: 68ba ldr r2, [r7, #8] - 800dbca: 429a cmp r2, r3 - 800dbcc: bf0c ite eq - 800dbce: 2301 moveq r3, #1 - 800dbd0: 2300 movne r3, #0 - 800dbd2: b2db uxtb r3, r3 - 800dbd4: 461a mov r2, r3 - 800dbd6: 79fb ldrb r3, [r7, #7] - 800dbd8: 429a cmp r2, r3 - 800dbda: d0a6 beq.n 800db2a - } - } - } - } - return HAL_OK; - 800dbdc: 2300 movs r3, #0 -} - 800dbde: 4618 mov r0, r3 - 800dbe0: 3710 adds r7, #16 - 800dbe2: 46bd mov sp, r7 - 800dbe4: bd80 pop {r7, pc} - ... - -0800dbe8 : - * @brief End ongoing Rx transfer on UART peripheral (following error detection or Reception completion). - * @param huart UART handle. - * @retval None - */ -static void UART_EndRxTransfer(UART_HandleTypeDef *huart) -{ - 800dbe8: b480 push {r7} - 800dbea: b095 sub sp, #84 ; 0x54 - 800dbec: af00 add r7, sp, #0 - 800dbee: 6078 str r0, [r7, #4] - /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE)); - 800dbf0: 687b ldr r3, [r7, #4] - 800dbf2: 681b ldr r3, [r3, #0] - 800dbf4: 637b str r3, [r7, #52] ; 0x34 - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 800dbf6: 6b7b ldr r3, [r7, #52] ; 0x34 - 800dbf8: e853 3f00 ldrex r3, [r3] - 800dbfc: 633b str r3, [r7, #48] ; 0x30 - return(result); - 800dbfe: 6b3b ldr r3, [r7, #48] ; 0x30 - 800dc00: f423 7390 bic.w r3, r3, #288 ; 0x120 - 800dc04: 64fb str r3, [r7, #76] ; 0x4c - 800dc06: 687b ldr r3, [r7, #4] - 800dc08: 681b ldr r3, [r3, #0] - 800dc0a: 461a mov r2, r3 - 800dc0c: 6cfb ldr r3, [r7, #76] ; 0x4c - 800dc0e: 643b str r3, [r7, #64] ; 0x40 - 800dc10: 63fa str r2, [r7, #60] ; 0x3c - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 800dc12: 6bf9 ldr r1, [r7, #60] ; 0x3c - 800dc14: 6c3a ldr r2, [r7, #64] ; 0x40 - 800dc16: e841 2300 strex r3, r2, [r1] - 800dc1a: 63bb str r3, [r7, #56] ; 0x38 - return(result); - 800dc1c: 6bbb ldr r3, [r7, #56] ; 0x38 - 800dc1e: 2b00 cmp r3, #0 - 800dc20: d1e6 bne.n 800dbf0 - ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE)); - 800dc22: 687b ldr r3, [r7, #4] - 800dc24: 681b ldr r3, [r3, #0] - 800dc26: 3308 adds r3, #8 - 800dc28: 623b str r3, [r7, #32] - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 800dc2a: 6a3b ldr r3, [r7, #32] - 800dc2c: e853 3f00 ldrex r3, [r3] - 800dc30: 61fb str r3, [r7, #28] - return(result); - 800dc32: 69fa ldr r2, [r7, #28] - 800dc34: 4b1e ldr r3, [pc, #120] ; (800dcb0 ) - 800dc36: 4013 ands r3, r2 - 800dc38: 64bb str r3, [r7, #72] ; 0x48 - 800dc3a: 687b ldr r3, [r7, #4] - 800dc3c: 681b ldr r3, [r3, #0] - 800dc3e: 3308 adds r3, #8 - 800dc40: 6cba ldr r2, [r7, #72] ; 0x48 - 800dc42: 62fa str r2, [r7, #44] ; 0x2c - 800dc44: 62bb str r3, [r7, #40] ; 0x28 - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 800dc46: 6ab9 ldr r1, [r7, #40] ; 0x28 - 800dc48: 6afa ldr r2, [r7, #44] ; 0x2c - 800dc4a: e841 2300 strex r3, r2, [r1] - 800dc4e: 627b str r3, [r7, #36] ; 0x24 - return(result); - 800dc50: 6a7b ldr r3, [r7, #36] ; 0x24 - 800dc52: 2b00 cmp r3, #0 - 800dc54: d1e5 bne.n 800dc22 - - /* In case of reception waiting for IDLE event, disable also the IDLE IE interrupt source */ - if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - 800dc56: 687b ldr r3, [r7, #4] - 800dc58: 6edb ldr r3, [r3, #108] ; 0x6c - 800dc5a: 2b01 cmp r3, #1 - 800dc5c: d118 bne.n 800dc90 - { - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 800dc5e: 687b ldr r3, [r7, #4] - 800dc60: 681b ldr r3, [r3, #0] - 800dc62: 60fb str r3, [r7, #12] - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 800dc64: 68fb ldr r3, [r7, #12] - 800dc66: e853 3f00 ldrex r3, [r3] - 800dc6a: 60bb str r3, [r7, #8] - return(result); - 800dc6c: 68bb ldr r3, [r7, #8] - 800dc6e: f023 0310 bic.w r3, r3, #16 - 800dc72: 647b str r3, [r7, #68] ; 0x44 - 800dc74: 687b ldr r3, [r7, #4] - 800dc76: 681b ldr r3, [r3, #0] - 800dc78: 461a mov r2, r3 - 800dc7a: 6c7b ldr r3, [r7, #68] ; 0x44 - 800dc7c: 61bb str r3, [r7, #24] - 800dc7e: 617a str r2, [r7, #20] - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 800dc80: 6979 ldr r1, [r7, #20] - 800dc82: 69ba ldr r2, [r7, #24] - 800dc84: e841 2300 strex r3, r2, [r1] - 800dc88: 613b str r3, [r7, #16] - return(result); - 800dc8a: 693b ldr r3, [r7, #16] - 800dc8c: 2b00 cmp r3, #0 - 800dc8e: d1e6 bne.n 800dc5e - } - - /* At end of Rx process, restore huart->RxState to Ready */ - huart->RxState = HAL_UART_STATE_READY; - 800dc90: 687b ldr r3, [r7, #4] - 800dc92: 2220 movs r2, #32 - 800dc94: f8c3 208c str.w r2, [r3, #140] ; 0x8c - huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 800dc98: 687b ldr r3, [r7, #4] - 800dc9a: 2200 movs r2, #0 - 800dc9c: 66da str r2, [r3, #108] ; 0x6c - - /* Reset RxIsr function pointer */ - huart->RxISR = NULL; - 800dc9e: 687b ldr r3, [r7, #4] - 800dca0: 2200 movs r2, #0 - 800dca2: 675a str r2, [r3, #116] ; 0x74 -} - 800dca4: bf00 nop - 800dca6: 3754 adds r7, #84 ; 0x54 - 800dca8: 46bd mov sp, r7 - 800dcaa: f85d 7b04 ldr.w r7, [sp], #4 - 800dcae: 4770 bx lr - 800dcb0: effffffe .word 0xeffffffe - -0800dcb4 : - * @brief Disable the FIFO mode. - * @param huart UART handle. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UARTEx_DisableFifoMode(UART_HandleTypeDef *huart) -{ - 800dcb4: b480 push {r7} - 800dcb6: b085 sub sp, #20 - 800dcb8: af00 add r7, sp, #0 - 800dcba: 6078 str r0, [r7, #4] - - /* Check parameters */ - assert_param(IS_UART_FIFO_INSTANCE(huart->Instance)); - - /* Process Locked */ - __HAL_LOCK(huart); - 800dcbc: 687b ldr r3, [r7, #4] - 800dcbe: f893 3084 ldrb.w r3, [r3, #132] ; 0x84 - 800dcc2: 2b01 cmp r3, #1 - 800dcc4: d101 bne.n 800dcca - 800dcc6: 2302 movs r3, #2 - 800dcc8: e027 b.n 800dd1a - 800dcca: 687b ldr r3, [r7, #4] - 800dccc: 2201 movs r2, #1 - 800dcce: f883 2084 strb.w r2, [r3, #132] ; 0x84 - - huart->gState = HAL_UART_STATE_BUSY; - 800dcd2: 687b ldr r3, [r7, #4] - 800dcd4: 2224 movs r2, #36 ; 0x24 - 800dcd6: f8c3 2088 str.w r2, [r3, #136] ; 0x88 - - /* Save actual UART configuration */ - tmpcr1 = READ_REG(huart->Instance->CR1); - 800dcda: 687b ldr r3, [r7, #4] - 800dcdc: 681b ldr r3, [r3, #0] - 800dcde: 681b ldr r3, [r3, #0] - 800dce0: 60fb str r3, [r7, #12] - - /* Disable UART */ - __HAL_UART_DISABLE(huart); - 800dce2: 687b ldr r3, [r7, #4] - 800dce4: 681b ldr r3, [r3, #0] - 800dce6: 681a ldr r2, [r3, #0] - 800dce8: 687b ldr r3, [r7, #4] - 800dcea: 681b ldr r3, [r3, #0] - 800dcec: f022 0201 bic.w r2, r2, #1 - 800dcf0: 601a str r2, [r3, #0] - - /* Enable FIFO mode */ - CLEAR_BIT(tmpcr1, USART_CR1_FIFOEN); - 800dcf2: 68fb ldr r3, [r7, #12] - 800dcf4: f023 5300 bic.w r3, r3, #536870912 ; 0x20000000 - 800dcf8: 60fb str r3, [r7, #12] - huart->FifoMode = UART_FIFOMODE_DISABLE; - 800dcfa: 687b ldr r3, [r7, #4] - 800dcfc: 2200 movs r2, #0 - 800dcfe: 665a str r2, [r3, #100] ; 0x64 - - /* Restore UART configuration */ - WRITE_REG(huart->Instance->CR1, tmpcr1); - 800dd00: 687b ldr r3, [r7, #4] - 800dd02: 681b ldr r3, [r3, #0] - 800dd04: 68fa ldr r2, [r7, #12] - 800dd06: 601a str r2, [r3, #0] - - huart->gState = HAL_UART_STATE_READY; - 800dd08: 687b ldr r3, [r7, #4] - 800dd0a: 2220 movs r2, #32 - 800dd0c: f8c3 2088 str.w r2, [r3, #136] ; 0x88 - - /* Process Unlocked */ - __HAL_UNLOCK(huart); - 800dd10: 687b ldr r3, [r7, #4] - 800dd12: 2200 movs r2, #0 - 800dd14: f883 2084 strb.w r2, [r3, #132] ; 0x84 - - return HAL_OK; - 800dd18: 2300 movs r3, #0 -} - 800dd1a: 4618 mov r0, r3 - 800dd1c: 3714 adds r7, #20 - 800dd1e: 46bd mov sp, r7 - 800dd20: f85d 7b04 ldr.w r7, [sp], #4 - 800dd24: 4770 bx lr - -0800dd26 : - * @arg @ref UART_TXFIFO_THRESHOLD_7_8 - * @arg @ref UART_TXFIFO_THRESHOLD_8_8 - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UARTEx_SetTxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold) -{ - 800dd26: b580 push {r7, lr} - 800dd28: b084 sub sp, #16 - 800dd2a: af00 add r7, sp, #0 - 800dd2c: 6078 str r0, [r7, #4] - 800dd2e: 6039 str r1, [r7, #0] - /* Check parameters */ - assert_param(IS_UART_FIFO_INSTANCE(huart->Instance)); - assert_param(IS_UART_TXFIFO_THRESHOLD(Threshold)); - - /* Process Locked */ - __HAL_LOCK(huart); - 800dd30: 687b ldr r3, [r7, #4] - 800dd32: f893 3084 ldrb.w r3, [r3, #132] ; 0x84 - 800dd36: 2b01 cmp r3, #1 - 800dd38: d101 bne.n 800dd3e - 800dd3a: 2302 movs r3, #2 - 800dd3c: e02d b.n 800dd9a - 800dd3e: 687b ldr r3, [r7, #4] - 800dd40: 2201 movs r2, #1 - 800dd42: f883 2084 strb.w r2, [r3, #132] ; 0x84 - - huart->gState = HAL_UART_STATE_BUSY; - 800dd46: 687b ldr r3, [r7, #4] - 800dd48: 2224 movs r2, #36 ; 0x24 - 800dd4a: f8c3 2088 str.w r2, [r3, #136] ; 0x88 - - /* Save actual UART configuration */ - tmpcr1 = READ_REG(huart->Instance->CR1); - 800dd4e: 687b ldr r3, [r7, #4] - 800dd50: 681b ldr r3, [r3, #0] - 800dd52: 681b ldr r3, [r3, #0] - 800dd54: 60fb str r3, [r7, #12] - - /* Disable UART */ - __HAL_UART_DISABLE(huart); - 800dd56: 687b ldr r3, [r7, #4] - 800dd58: 681b ldr r3, [r3, #0] - 800dd5a: 681a ldr r2, [r3, #0] - 800dd5c: 687b ldr r3, [r7, #4] - 800dd5e: 681b ldr r3, [r3, #0] - 800dd60: f022 0201 bic.w r2, r2, #1 - 800dd64: 601a str r2, [r3, #0] - - /* Update TX threshold configuration */ - MODIFY_REG(huart->Instance->CR3, USART_CR3_TXFTCFG, Threshold); - 800dd66: 687b ldr r3, [r7, #4] - 800dd68: 681b ldr r3, [r3, #0] - 800dd6a: 689b ldr r3, [r3, #8] - 800dd6c: f023 4160 bic.w r1, r3, #3758096384 ; 0xe0000000 - 800dd70: 687b ldr r3, [r7, #4] - 800dd72: 681b ldr r3, [r3, #0] - 800dd74: 683a ldr r2, [r7, #0] - 800dd76: 430a orrs r2, r1 - 800dd78: 609a str r2, [r3, #8] - - /* Determine the number of data to process during RX/TX ISR execution */ - UARTEx_SetNbDataToProcess(huart); - 800dd7a: 6878 ldr r0, [r7, #4] - 800dd7c: f000 f850 bl 800de20 - - /* Restore UART configuration */ - WRITE_REG(huart->Instance->CR1, tmpcr1); - 800dd80: 687b ldr r3, [r7, #4] - 800dd82: 681b ldr r3, [r3, #0] - 800dd84: 68fa ldr r2, [r7, #12] - 800dd86: 601a str r2, [r3, #0] - - huart->gState = HAL_UART_STATE_READY; - 800dd88: 687b ldr r3, [r7, #4] - 800dd8a: 2220 movs r2, #32 - 800dd8c: f8c3 2088 str.w r2, [r3, #136] ; 0x88 - - /* Process Unlocked */ - __HAL_UNLOCK(huart); - 800dd90: 687b ldr r3, [r7, #4] - 800dd92: 2200 movs r2, #0 - 800dd94: f883 2084 strb.w r2, [r3, #132] ; 0x84 - - return HAL_OK; - 800dd98: 2300 movs r3, #0 -} - 800dd9a: 4618 mov r0, r3 - 800dd9c: 3710 adds r7, #16 - 800dd9e: 46bd mov sp, r7 - 800dda0: bd80 pop {r7, pc} - -0800dda2 : - * @arg @ref UART_RXFIFO_THRESHOLD_7_8 - * @arg @ref UART_RXFIFO_THRESHOLD_8_8 - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UARTEx_SetRxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold) -{ - 800dda2: b580 push {r7, lr} - 800dda4: b084 sub sp, #16 - 800dda6: af00 add r7, sp, #0 - 800dda8: 6078 str r0, [r7, #4] - 800ddaa: 6039 str r1, [r7, #0] - /* Check the parameters */ - assert_param(IS_UART_FIFO_INSTANCE(huart->Instance)); - assert_param(IS_UART_RXFIFO_THRESHOLD(Threshold)); - - /* Process Locked */ - __HAL_LOCK(huart); - 800ddac: 687b ldr r3, [r7, #4] - 800ddae: f893 3084 ldrb.w r3, [r3, #132] ; 0x84 - 800ddb2: 2b01 cmp r3, #1 - 800ddb4: d101 bne.n 800ddba - 800ddb6: 2302 movs r3, #2 - 800ddb8: e02d b.n 800de16 - 800ddba: 687b ldr r3, [r7, #4] - 800ddbc: 2201 movs r2, #1 - 800ddbe: f883 2084 strb.w r2, [r3, #132] ; 0x84 - - huart->gState = HAL_UART_STATE_BUSY; - 800ddc2: 687b ldr r3, [r7, #4] - 800ddc4: 2224 movs r2, #36 ; 0x24 - 800ddc6: f8c3 2088 str.w r2, [r3, #136] ; 0x88 - - /* Save actual UART configuration */ - tmpcr1 = READ_REG(huart->Instance->CR1); - 800ddca: 687b ldr r3, [r7, #4] - 800ddcc: 681b ldr r3, [r3, #0] - 800ddce: 681b ldr r3, [r3, #0] - 800ddd0: 60fb str r3, [r7, #12] - - /* Disable UART */ - __HAL_UART_DISABLE(huart); - 800ddd2: 687b ldr r3, [r7, #4] - 800ddd4: 681b ldr r3, [r3, #0] - 800ddd6: 681a ldr r2, [r3, #0] - 800ddd8: 687b ldr r3, [r7, #4] - 800ddda: 681b ldr r3, [r3, #0] - 800dddc: f022 0201 bic.w r2, r2, #1 - 800dde0: 601a str r2, [r3, #0] - - /* Update RX threshold configuration */ - MODIFY_REG(huart->Instance->CR3, USART_CR3_RXFTCFG, Threshold); - 800dde2: 687b ldr r3, [r7, #4] - 800dde4: 681b ldr r3, [r3, #0] - 800dde6: 689b ldr r3, [r3, #8] - 800dde8: f023 6160 bic.w r1, r3, #234881024 ; 0xe000000 - 800ddec: 687b ldr r3, [r7, #4] - 800ddee: 681b ldr r3, [r3, #0] - 800ddf0: 683a ldr r2, [r7, #0] - 800ddf2: 430a orrs r2, r1 - 800ddf4: 609a str r2, [r3, #8] - - /* Determine the number of data to process during RX/TX ISR execution */ - UARTEx_SetNbDataToProcess(huart); - 800ddf6: 6878 ldr r0, [r7, #4] - 800ddf8: f000 f812 bl 800de20 - - /* Restore UART configuration */ - WRITE_REG(huart->Instance->CR1, tmpcr1); - 800ddfc: 687b ldr r3, [r7, #4] - 800ddfe: 681b ldr r3, [r3, #0] - 800de00: 68fa ldr r2, [r7, #12] - 800de02: 601a str r2, [r3, #0] - - huart->gState = HAL_UART_STATE_READY; - 800de04: 687b ldr r3, [r7, #4] - 800de06: 2220 movs r2, #32 - 800de08: f8c3 2088 str.w r2, [r3, #136] ; 0x88 - - /* Process Unlocked */ - __HAL_UNLOCK(huart); - 800de0c: 687b ldr r3, [r7, #4] - 800de0e: 2200 movs r2, #0 - 800de10: f883 2084 strb.w r2, [r3, #132] ; 0x84 - - return HAL_OK; - 800de14: 2300 movs r3, #0 -} - 800de16: 4618 mov r0, r3 - 800de18: 3710 adds r7, #16 - 800de1a: 46bd mov sp, r7 - 800de1c: bd80 pop {r7, pc} - ... - -0800de20 : - * the UART configuration registers. - * @param huart UART handle. - * @retval None - */ -static void UARTEx_SetNbDataToProcess(UART_HandleTypeDef *huart) -{ - 800de20: b480 push {r7} - 800de22: b085 sub sp, #20 - 800de24: af00 add r7, sp, #0 - 800de26: 6078 str r0, [r7, #4] - uint8_t rx_fifo_threshold; - uint8_t tx_fifo_threshold; - static const uint8_t numerator[] = {1U, 1U, 1U, 3U, 7U, 1U, 0U, 0U}; - static const uint8_t denominator[] = {8U, 4U, 2U, 4U, 8U, 1U, 1U, 1U}; - - if (huart->FifoMode == UART_FIFOMODE_DISABLE) - 800de28: 687b ldr r3, [r7, #4] - 800de2a: 6e5b ldr r3, [r3, #100] ; 0x64 - 800de2c: 2b00 cmp r3, #0 - 800de2e: d108 bne.n 800de42 - { - huart->NbTxDataToProcess = 1U; - 800de30: 687b ldr r3, [r7, #4] - 800de32: 2201 movs r2, #1 - 800de34: f8a3 206a strh.w r2, [r3, #106] ; 0x6a - huart->NbRxDataToProcess = 1U; - 800de38: 687b ldr r3, [r7, #4] - 800de3a: 2201 movs r2, #1 - 800de3c: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 - huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) / - (uint16_t)denominator[tx_fifo_threshold]; - huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) / - (uint16_t)denominator[rx_fifo_threshold]; - } -} - 800de40: e031 b.n 800dea6 - rx_fifo_depth = RX_FIFO_DEPTH; - 800de42: 2310 movs r3, #16 - 800de44: 73fb strb r3, [r7, #15] - tx_fifo_depth = TX_FIFO_DEPTH; - 800de46: 2310 movs r3, #16 - 800de48: 73bb strb r3, [r7, #14] - rx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_RXFTCFG) >> USART_CR3_RXFTCFG_Pos); - 800de4a: 687b ldr r3, [r7, #4] - 800de4c: 681b ldr r3, [r3, #0] - 800de4e: 689b ldr r3, [r3, #8] - 800de50: 0e5b lsrs r3, r3, #25 - 800de52: b2db uxtb r3, r3 - 800de54: f003 0307 and.w r3, r3, #7 - 800de58: 737b strb r3, [r7, #13] - tx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_TXFTCFG) >> USART_CR3_TXFTCFG_Pos); - 800de5a: 687b ldr r3, [r7, #4] - 800de5c: 681b ldr r3, [r3, #0] - 800de5e: 689b ldr r3, [r3, #8] - 800de60: 0f5b lsrs r3, r3, #29 - 800de62: b2db uxtb r3, r3 - 800de64: f003 0307 and.w r3, r3, #7 - 800de68: 733b strb r3, [r7, #12] - huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) / - 800de6a: 7bbb ldrb r3, [r7, #14] - 800de6c: 7b3a ldrb r2, [r7, #12] - 800de6e: 4911 ldr r1, [pc, #68] ; (800deb4 ) - 800de70: 5c8a ldrb r2, [r1, r2] - 800de72: fb02 f303 mul.w r3, r2, r3 - (uint16_t)denominator[tx_fifo_threshold]; - 800de76: 7b3a ldrb r2, [r7, #12] - 800de78: 490f ldr r1, [pc, #60] ; (800deb8 ) - 800de7a: 5c8a ldrb r2, [r1, r2] - huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) / - 800de7c: fb93 f3f2 sdiv r3, r3, r2 - 800de80: b29a uxth r2, r3 - 800de82: 687b ldr r3, [r7, #4] - 800de84: f8a3 206a strh.w r2, [r3, #106] ; 0x6a - huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) / - 800de88: 7bfb ldrb r3, [r7, #15] - 800de8a: 7b7a ldrb r2, [r7, #13] - 800de8c: 4909 ldr r1, [pc, #36] ; (800deb4 ) - 800de8e: 5c8a ldrb r2, [r1, r2] - 800de90: fb02 f303 mul.w r3, r2, r3 - (uint16_t)denominator[rx_fifo_threshold]; - 800de94: 7b7a ldrb r2, [r7, #13] - 800de96: 4908 ldr r1, [pc, #32] ; (800deb8 ) - 800de98: 5c8a ldrb r2, [r1, r2] - huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) / - 800de9a: fb93 f3f2 sdiv r3, r3, r2 - 800de9e: b29a uxth r2, r3 - 800dea0: 687b ldr r3, [r7, #4] - 800dea2: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 -} - 800dea6: bf00 nop - 800dea8: 3714 adds r7, #20 - 800deaa: 46bd mov sp, r7 - 800deac: f85d 7b04 ldr.w r7, [sp], #4 - 800deb0: 4770 bx lr - 800deb2: bf00 nop - 800deb4: 08026b70 .word 0x08026b70 - 800deb8: 08026b78 .word 0x08026b78 - -0800debc : - * @param SDMMCx: Pointer to SDMMC register base - * @param Init: SDMMC initialization structure - * @retval HAL status - */ -HAL_StatusTypeDef SDMMC_Init(SDMMC_TypeDef *SDMMCx, SDMMC_InitTypeDef Init) -{ - 800debc: b084 sub sp, #16 - 800debe: b480 push {r7} - 800dec0: b085 sub sp, #20 - 800dec2: af00 add r7, sp, #0 - 800dec4: 6078 str r0, [r7, #4] - 800dec6: f107 001c add.w r0, r7, #28 - 800deca: e880 000e stmia.w r0, {r1, r2, r3} - uint32_t tmpreg = 0; - 800dece: 2300 movs r3, #0 - 800ded0: 60fb str r3, [r7, #12] - assert_param(IS_SDMMC_BUS_WIDE(Init.BusWide)); - assert_param(IS_SDMMC_HARDWARE_FLOW_CONTROL(Init.HardwareFlowControl)); - assert_param(IS_SDMMC_CLKDIV(Init.ClockDiv)); - - /* Set SDMMC configuration parameters */ - tmpreg |= (Init.ClockEdge | \ - 800ded2: 69fa ldr r2, [r7, #28] - Init.ClockPowerSave | \ - 800ded4: 6a3b ldr r3, [r7, #32] - tmpreg |= (Init.ClockEdge | \ - 800ded6: 431a orrs r2, r3 - Init.BusWide | \ - 800ded8: 6a7b ldr r3, [r7, #36] ; 0x24 - Init.ClockPowerSave | \ - 800deda: 431a orrs r2, r3 - Init.HardwareFlowControl | \ - 800dedc: 6abb ldr r3, [r7, #40] ; 0x28 - Init.BusWide | \ - 800dede: 431a orrs r2, r3 - Init.ClockDiv - 800dee0: 6afb ldr r3, [r7, #44] ; 0x2c - Init.HardwareFlowControl | \ - 800dee2: 4313 orrs r3, r2 - tmpreg |= (Init.ClockEdge | \ - 800dee4: 68fa ldr r2, [r7, #12] - 800dee6: 4313 orrs r3, r2 - 800dee8: 60fb str r3, [r7, #12] - ); - - /* Write to SDMMC CLKCR */ - MODIFY_REG(SDMMCx->CLKCR, CLKCR_CLEAR_MASK, tmpreg); - 800deea: 687b ldr r3, [r7, #4] - 800deec: 685a ldr r2, [r3, #4] - 800deee: 4b07 ldr r3, [pc, #28] ; (800df0c ) - 800def0: 4013 ands r3, r2 - 800def2: 68fa ldr r2, [r7, #12] - 800def4: 431a orrs r2, r3 - 800def6: 687b ldr r3, [r7, #4] - 800def8: 605a str r2, [r3, #4] - - return HAL_OK; - 800defa: 2300 movs r3, #0 -} - 800defc: 4618 mov r0, r3 - 800defe: 3714 adds r7, #20 - 800df00: 46bd mov sp, r7 - 800df02: f85d 7b04 ldr.w r7, [sp], #4 - 800df06: b004 add sp, #16 - 800df08: 4770 bx lr - 800df0a: bf00 nop - 800df0c: ffc02c00 .word 0xffc02c00 - -0800df10 : - * @brief Read data (word) from Rx FIFO in blocking mode (polling) - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -uint32_t SDMMC_ReadFIFO(SDMMC_TypeDef *SDMMCx) -{ - 800df10: b480 push {r7} - 800df12: b083 sub sp, #12 - 800df14: af00 add r7, sp, #0 - 800df16: 6078 str r0, [r7, #4] - /* Read data from Rx FIFO */ - return (SDMMCx->FIFO); - 800df18: 687b ldr r3, [r7, #4] - 800df1a: f8d3 3080 ldr.w r3, [r3, #128] ; 0x80 -} - 800df1e: 4618 mov r0, r3 - 800df20: 370c adds r7, #12 - 800df22: 46bd mov sp, r7 - 800df24: f85d 7b04 ldr.w r7, [sp], #4 - 800df28: 4770 bx lr - -0800df2a : - * @param SDMMCx: Pointer to SDMMC register base - * @param pWriteData: pointer to data to write - * @retval HAL status - */ -HAL_StatusTypeDef SDMMC_WriteFIFO(SDMMC_TypeDef *SDMMCx, uint32_t *pWriteData) -{ - 800df2a: b480 push {r7} - 800df2c: b083 sub sp, #12 - 800df2e: af00 add r7, sp, #0 - 800df30: 6078 str r0, [r7, #4] - 800df32: 6039 str r1, [r7, #0] - /* Write data to FIFO */ - SDMMCx->FIFO = *pWriteData; - 800df34: 683b ldr r3, [r7, #0] - 800df36: 681a ldr r2, [r3, #0] - 800df38: 687b ldr r3, [r7, #4] - 800df3a: f8c3 2080 str.w r2, [r3, #128] ; 0x80 - - return HAL_OK; - 800df3e: 2300 movs r3, #0 -} - 800df40: 4618 mov r0, r3 - 800df42: 370c adds r7, #12 - 800df44: 46bd mov sp, r7 - 800df46: f85d 7b04 ldr.w r7, [sp], #4 - 800df4a: 4770 bx lr - -0800df4c : - * @brief Set SDMMC Power state to ON. - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -HAL_StatusTypeDef SDMMC_PowerState_ON(SDMMC_TypeDef *SDMMCx) -{ - 800df4c: b480 push {r7} - 800df4e: b083 sub sp, #12 - 800df50: af00 add r7, sp, #0 - 800df52: 6078 str r0, [r7, #4] - /* Set power state to ON */ - SDMMCx->POWER |= SDMMC_POWER_PWRCTRL; - 800df54: 687b ldr r3, [r7, #4] - 800df56: 681b ldr r3, [r3, #0] - 800df58: f043 0203 orr.w r2, r3, #3 - 800df5c: 687b ldr r3, [r7, #4] - 800df5e: 601a str r2, [r3, #0] - - return HAL_OK; - 800df60: 2300 movs r3, #0 -} - 800df62: 4618 mov r0, r3 - 800df64: 370c adds r7, #12 - 800df66: 46bd mov sp, r7 - 800df68: f85d 7b04 ldr.w r7, [sp], #4 - 800df6c: 4770 bx lr - -0800df6e : - * - 0x00: Power OFF - * - 0x02: Power UP - * - 0x03: Power ON - */ -uint32_t SDMMC_GetPowerState(SDMMC_TypeDef *SDMMCx) -{ - 800df6e: b480 push {r7} - 800df70: b083 sub sp, #12 - 800df72: af00 add r7, sp, #0 - 800df74: 6078 str r0, [r7, #4] - return (SDMMCx->POWER & SDMMC_POWER_PWRCTRL); - 800df76: 687b ldr r3, [r7, #4] - 800df78: 681b ldr r3, [r3, #0] - 800df7a: f003 0303 and.w r3, r3, #3 -} - 800df7e: 4618 mov r0, r3 - 800df80: 370c adds r7, #12 - 800df82: 46bd mov sp, r7 - 800df84: f85d 7b04 ldr.w r7, [sp], #4 - 800df88: 4770 bx lr - ... - -0800df8c : - * @param Command: pointer to a SDMMC_CmdInitTypeDef structure that contains - * the configuration information for the SDMMC command - * @retval HAL status - */ -HAL_StatusTypeDef SDMMC_SendCommand(SDMMC_TypeDef *SDMMCx, SDMMC_CmdInitTypeDef *Command) -{ - 800df8c: b480 push {r7} - 800df8e: b085 sub sp, #20 - 800df90: af00 add r7, sp, #0 - 800df92: 6078 str r0, [r7, #4] - 800df94: 6039 str r1, [r7, #0] - uint32_t tmpreg = 0; - 800df96: 2300 movs r3, #0 - 800df98: 60fb str r3, [r7, #12] - assert_param(IS_SDMMC_RESPONSE(Command->Response)); - assert_param(IS_SDMMC_WAIT(Command->WaitForInterrupt)); - assert_param(IS_SDMMC_CPSM(Command->CPSM)); - - /* Set the SDMMC Argument value */ - SDMMCx->ARG = Command->Argument; - 800df9a: 683b ldr r3, [r7, #0] - 800df9c: 681a ldr r2, [r3, #0] - 800df9e: 687b ldr r3, [r7, #4] - 800dfa0: 609a str r2, [r3, #8] - - /* Set SDMMC command parameters */ - tmpreg |= (uint32_t)(Command->CmdIndex | \ - 800dfa2: 683b ldr r3, [r7, #0] - 800dfa4: 685a ldr r2, [r3, #4] - Command->Response | \ - 800dfa6: 683b ldr r3, [r7, #0] - 800dfa8: 689b ldr r3, [r3, #8] - tmpreg |= (uint32_t)(Command->CmdIndex | \ - 800dfaa: 431a orrs r2, r3 - Command->WaitForInterrupt | \ - 800dfac: 683b ldr r3, [r7, #0] - 800dfae: 68db ldr r3, [r3, #12] - Command->Response | \ - 800dfb0: 431a orrs r2, r3 - Command->CPSM); - 800dfb2: 683b ldr r3, [r7, #0] - 800dfb4: 691b ldr r3, [r3, #16] - Command->WaitForInterrupt | \ - 800dfb6: 4313 orrs r3, r2 - tmpreg |= (uint32_t)(Command->CmdIndex | \ - 800dfb8: 68fa ldr r2, [r7, #12] - 800dfba: 4313 orrs r3, r2 - 800dfbc: 60fb str r3, [r7, #12] - - /* Write to SDMMC CMD register */ - MODIFY_REG(SDMMCx->CMD, CMD_CLEAR_MASK, tmpreg); - 800dfbe: 687b ldr r3, [r7, #4] - 800dfc0: 68da ldr r2, [r3, #12] - 800dfc2: 4b06 ldr r3, [pc, #24] ; (800dfdc ) - 800dfc4: 4013 ands r3, r2 - 800dfc6: 68fa ldr r2, [r7, #12] - 800dfc8: 431a orrs r2, r3 - 800dfca: 687b ldr r3, [r7, #4] - 800dfcc: 60da str r2, [r3, #12] - - return HAL_OK; - 800dfce: 2300 movs r3, #0 -} - 800dfd0: 4618 mov r0, r3 - 800dfd2: 3714 adds r7, #20 - 800dfd4: 46bd mov sp, r7 - 800dfd6: f85d 7b04 ldr.w r7, [sp], #4 - 800dfda: 4770 bx lr - 800dfdc: fffee0c0 .word 0xfffee0c0 - -0800dfe0 : - * @brief Return the command index of last command for which response received - * @param SDMMCx: Pointer to SDMMC register base - * @retval Command index of the last command response received - */ -uint8_t SDMMC_GetCommandResponse(SDMMC_TypeDef *SDMMCx) -{ - 800dfe0: b480 push {r7} - 800dfe2: b083 sub sp, #12 - 800dfe4: af00 add r7, sp, #0 - 800dfe6: 6078 str r0, [r7, #4] - return (uint8_t)(SDMMCx->RESPCMD); - 800dfe8: 687b ldr r3, [r7, #4] - 800dfea: 691b ldr r3, [r3, #16] - 800dfec: b2db uxtb r3, r3 -} - 800dfee: 4618 mov r0, r3 - 800dff0: 370c adds r7, #12 - 800dff2: 46bd mov sp, r7 - 800dff4: f85d 7b04 ldr.w r7, [sp], #4 - 800dff8: 4770 bx lr - -0800dffa : - * @arg SDMMC_RESP3: Response Register 3 - * @arg SDMMC_RESP4: Response Register 4 - * @retval The Corresponding response register value - */ -uint32_t SDMMC_GetResponse(SDMMC_TypeDef *SDMMCx, uint32_t Response) -{ - 800dffa: b480 push {r7} - 800dffc: b085 sub sp, #20 - 800dffe: af00 add r7, sp, #0 - 800e000: 6078 str r0, [r7, #4] - 800e002: 6039 str r1, [r7, #0] - - /* Check the parameters */ - assert_param(IS_SDMMC_RESP(Response)); - - /* Get the response */ - tmp = (uint32_t)(&(SDMMCx->RESP1)) + Response; - 800e004: 687b ldr r3, [r7, #4] - 800e006: 3314 adds r3, #20 - 800e008: 461a mov r2, r3 - 800e00a: 683b ldr r3, [r7, #0] - 800e00c: 4413 add r3, r2 - 800e00e: 60fb str r3, [r7, #12] - - return (*(__IO uint32_t *) tmp); - 800e010: 68fb ldr r3, [r7, #12] - 800e012: 681b ldr r3, [r3, #0] -} - 800e014: 4618 mov r0, r3 - 800e016: 3714 adds r7, #20 - 800e018: 46bd mov sp, r7 - 800e01a: f85d 7b04 ldr.w r7, [sp], #4 - 800e01e: 4770 bx lr - -0800e020 : - * @param Data : pointer to a SDMMC_DataInitTypeDef structure - * that contains the configuration information for the SDMMC data. - * @retval HAL status - */ -HAL_StatusTypeDef SDMMC_ConfigData(SDMMC_TypeDef *SDMMCx, SDMMC_DataInitTypeDef *Data) -{ - 800e020: b480 push {r7} - 800e022: b085 sub sp, #20 - 800e024: af00 add r7, sp, #0 - 800e026: 6078 str r0, [r7, #4] - 800e028: 6039 str r1, [r7, #0] - uint32_t tmpreg = 0; - 800e02a: 2300 movs r3, #0 - 800e02c: 60fb str r3, [r7, #12] - assert_param(IS_SDMMC_TRANSFER_DIR(Data->TransferDir)); - assert_param(IS_SDMMC_TRANSFER_MODE(Data->TransferMode)); - assert_param(IS_SDMMC_DPSM(Data->DPSM)); - - /* Set the SDMMC Data TimeOut value */ - SDMMCx->DTIMER = Data->DataTimeOut; - 800e02e: 683b ldr r3, [r7, #0] - 800e030: 681a ldr r2, [r3, #0] - 800e032: 687b ldr r3, [r7, #4] - 800e034: 625a str r2, [r3, #36] ; 0x24 - - /* Set the SDMMC DataLength value */ - SDMMCx->DLEN = Data->DataLength; - 800e036: 683b ldr r3, [r7, #0] - 800e038: 685a ldr r2, [r3, #4] - 800e03a: 687b ldr r3, [r7, #4] - 800e03c: 629a str r2, [r3, #40] ; 0x28 - - /* Set the SDMMC data configuration parameters */ - tmpreg |= (uint32_t)(Data->DataBlockSize | \ - 800e03e: 683b ldr r3, [r7, #0] - 800e040: 689a ldr r2, [r3, #8] - Data->TransferDir | \ - 800e042: 683b ldr r3, [r7, #0] - 800e044: 68db ldr r3, [r3, #12] - tmpreg |= (uint32_t)(Data->DataBlockSize | \ - 800e046: 431a orrs r2, r3 - Data->TransferMode | \ - 800e048: 683b ldr r3, [r7, #0] - 800e04a: 691b ldr r3, [r3, #16] - Data->TransferDir | \ - 800e04c: 431a orrs r2, r3 - Data->DPSM); - 800e04e: 683b ldr r3, [r7, #0] - 800e050: 695b ldr r3, [r3, #20] - Data->TransferMode | \ - 800e052: 4313 orrs r3, r2 - tmpreg |= (uint32_t)(Data->DataBlockSize | \ - 800e054: 68fa ldr r2, [r7, #12] - 800e056: 4313 orrs r3, r2 - 800e058: 60fb str r3, [r7, #12] - - /* Write to SDMMC DCTRL */ - MODIFY_REG(SDMMCx->DCTRL, DCTRL_CLEAR_MASK, tmpreg); - 800e05a: 687b ldr r3, [r7, #4] - 800e05c: 6adb ldr r3, [r3, #44] ; 0x2c - 800e05e: f023 02ff bic.w r2, r3, #255 ; 0xff - 800e062: 68fb ldr r3, [r7, #12] - 800e064: 431a orrs r2, r3 - 800e066: 687b ldr r3, [r7, #4] - 800e068: 62da str r2, [r3, #44] ; 0x2c - - return HAL_OK; - 800e06a: 2300 movs r3, #0 - -} - 800e06c: 4618 mov r0, r3 - 800e06e: 3714 adds r7, #20 - 800e070: 46bd mov sp, r7 - 800e072: f85d 7b04 ldr.w r7, [sp], #4 - 800e076: 4770 bx lr - -0800e078 : - * @brief Send the Data Block Length command and check the response - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -uint32_t SDMMC_CmdBlockLength(SDMMC_TypeDef *SDMMCx, uint32_t BlockSize) -{ - 800e078: b580 push {r7, lr} - 800e07a: b088 sub sp, #32 - 800e07c: af00 add r7, sp, #0 - 800e07e: 6078 str r0, [r7, #4] - 800e080: 6039 str r1, [r7, #0] - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Set Block Size for Card */ - sdmmc_cmdinit.Argument = (uint32_t)BlockSize; - 800e082: 683b ldr r3, [r7, #0] - 800e084: 60bb str r3, [r7, #8] - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_SET_BLOCKLEN; - 800e086: 2310 movs r3, #16 - 800e088: 60fb str r3, [r7, #12] - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - 800e08a: f44f 7380 mov.w r3, #256 ; 0x100 - 800e08e: 613b str r3, [r7, #16] - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - 800e090: 2300 movs r3, #0 - 800e092: 617b str r3, [r7, #20] - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - 800e094: f44f 5380 mov.w r3, #4096 ; 0x1000 - 800e098: 61bb str r3, [r7, #24] - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - 800e09a: f107 0308 add.w r3, r7, #8 - 800e09e: 4619 mov r1, r3 - 800e0a0: 6878 ldr r0, [r7, #4] - 800e0a2: f7ff ff73 bl 800df8c - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_SET_BLOCKLEN, SDMMC_CMDTIMEOUT); - 800e0a6: f241 3288 movw r2, #5000 ; 0x1388 - 800e0aa: 2110 movs r1, #16 - 800e0ac: 6878 ldr r0, [r7, #4] - 800e0ae: f000 fa5f bl 800e570 - 800e0b2: 61f8 str r0, [r7, #28] - - return errorstate; - 800e0b4: 69fb ldr r3, [r7, #28] -} - 800e0b6: 4618 mov r0, r3 - 800e0b8: 3720 adds r7, #32 - 800e0ba: 46bd mov sp, r7 - 800e0bc: bd80 pop {r7, pc} - -0800e0be : - * @brief Send the Read Single Block command and check the response - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -uint32_t SDMMC_CmdReadSingleBlock(SDMMC_TypeDef *SDMMCx, uint32_t ReadAdd) -{ - 800e0be: b580 push {r7, lr} - 800e0c0: b088 sub sp, #32 - 800e0c2: af00 add r7, sp, #0 - 800e0c4: 6078 str r0, [r7, #4] - 800e0c6: 6039 str r1, [r7, #0] - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Set Block Size for Card */ - sdmmc_cmdinit.Argument = (uint32_t)ReadAdd; - 800e0c8: 683b ldr r3, [r7, #0] - 800e0ca: 60bb str r3, [r7, #8] - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_READ_SINGLE_BLOCK; - 800e0cc: 2311 movs r3, #17 - 800e0ce: 60fb str r3, [r7, #12] - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - 800e0d0: f44f 7380 mov.w r3, #256 ; 0x100 - 800e0d4: 613b str r3, [r7, #16] - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - 800e0d6: 2300 movs r3, #0 - 800e0d8: 617b str r3, [r7, #20] - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - 800e0da: f44f 5380 mov.w r3, #4096 ; 0x1000 - 800e0de: 61bb str r3, [r7, #24] - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - 800e0e0: f107 0308 add.w r3, r7, #8 - 800e0e4: 4619 mov r1, r3 - 800e0e6: 6878 ldr r0, [r7, #4] - 800e0e8: f7ff ff50 bl 800df8c - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_READ_SINGLE_BLOCK, SDMMC_CMDTIMEOUT); - 800e0ec: f241 3288 movw r2, #5000 ; 0x1388 - 800e0f0: 2111 movs r1, #17 - 800e0f2: 6878 ldr r0, [r7, #4] - 800e0f4: f000 fa3c bl 800e570 - 800e0f8: 61f8 str r0, [r7, #28] - - return errorstate; - 800e0fa: 69fb ldr r3, [r7, #28] -} - 800e0fc: 4618 mov r0, r3 - 800e0fe: 3720 adds r7, #32 - 800e100: 46bd mov sp, r7 - 800e102: bd80 pop {r7, pc} - -0800e104 : - * @brief Send the Read Multi Block command and check the response - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -uint32_t SDMMC_CmdReadMultiBlock(SDMMC_TypeDef *SDMMCx, uint32_t ReadAdd) -{ - 800e104: b580 push {r7, lr} - 800e106: b088 sub sp, #32 - 800e108: af00 add r7, sp, #0 - 800e10a: 6078 str r0, [r7, #4] - 800e10c: 6039 str r1, [r7, #0] - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Set Block Size for Card */ - sdmmc_cmdinit.Argument = (uint32_t)ReadAdd; - 800e10e: 683b ldr r3, [r7, #0] - 800e110: 60bb str r3, [r7, #8] - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_READ_MULT_BLOCK; - 800e112: 2312 movs r3, #18 - 800e114: 60fb str r3, [r7, #12] - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - 800e116: f44f 7380 mov.w r3, #256 ; 0x100 - 800e11a: 613b str r3, [r7, #16] - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - 800e11c: 2300 movs r3, #0 - 800e11e: 617b str r3, [r7, #20] - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - 800e120: f44f 5380 mov.w r3, #4096 ; 0x1000 - 800e124: 61bb str r3, [r7, #24] - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - 800e126: f107 0308 add.w r3, r7, #8 - 800e12a: 4619 mov r1, r3 - 800e12c: 6878 ldr r0, [r7, #4] - 800e12e: f7ff ff2d bl 800df8c - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_READ_MULT_BLOCK, SDMMC_CMDTIMEOUT); - 800e132: f241 3288 movw r2, #5000 ; 0x1388 - 800e136: 2112 movs r1, #18 - 800e138: 6878 ldr r0, [r7, #4] - 800e13a: f000 fa19 bl 800e570 - 800e13e: 61f8 str r0, [r7, #28] - - return errorstate; - 800e140: 69fb ldr r3, [r7, #28] -} - 800e142: 4618 mov r0, r3 - 800e144: 3720 adds r7, #32 - 800e146: 46bd mov sp, r7 - 800e148: bd80 pop {r7, pc} - -0800e14a : - * @brief Send the Write Single Block command and check the response - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -uint32_t SDMMC_CmdWriteSingleBlock(SDMMC_TypeDef *SDMMCx, uint32_t WriteAdd) -{ - 800e14a: b580 push {r7, lr} - 800e14c: b088 sub sp, #32 - 800e14e: af00 add r7, sp, #0 - 800e150: 6078 str r0, [r7, #4] - 800e152: 6039 str r1, [r7, #0] - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Set Block Size for Card */ - sdmmc_cmdinit.Argument = (uint32_t)WriteAdd; - 800e154: 683b ldr r3, [r7, #0] - 800e156: 60bb str r3, [r7, #8] - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_WRITE_SINGLE_BLOCK; - 800e158: 2318 movs r3, #24 - 800e15a: 60fb str r3, [r7, #12] - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - 800e15c: f44f 7380 mov.w r3, #256 ; 0x100 - 800e160: 613b str r3, [r7, #16] - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - 800e162: 2300 movs r3, #0 - 800e164: 617b str r3, [r7, #20] - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - 800e166: f44f 5380 mov.w r3, #4096 ; 0x1000 - 800e16a: 61bb str r3, [r7, #24] - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - 800e16c: f107 0308 add.w r3, r7, #8 - 800e170: 4619 mov r1, r3 - 800e172: 6878 ldr r0, [r7, #4] - 800e174: f7ff ff0a bl 800df8c - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_WRITE_SINGLE_BLOCK, SDMMC_CMDTIMEOUT); - 800e178: f241 3288 movw r2, #5000 ; 0x1388 - 800e17c: 2118 movs r1, #24 - 800e17e: 6878 ldr r0, [r7, #4] - 800e180: f000 f9f6 bl 800e570 - 800e184: 61f8 str r0, [r7, #28] - - return errorstate; - 800e186: 69fb ldr r3, [r7, #28] -} - 800e188: 4618 mov r0, r3 - 800e18a: 3720 adds r7, #32 - 800e18c: 46bd mov sp, r7 - 800e18e: bd80 pop {r7, pc} - -0800e190 : - * @brief Send the Write Multi Block command and check the response - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -uint32_t SDMMC_CmdWriteMultiBlock(SDMMC_TypeDef *SDMMCx, uint32_t WriteAdd) -{ - 800e190: b580 push {r7, lr} - 800e192: b088 sub sp, #32 - 800e194: af00 add r7, sp, #0 - 800e196: 6078 str r0, [r7, #4] - 800e198: 6039 str r1, [r7, #0] - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Set Block Size for Card */ - sdmmc_cmdinit.Argument = (uint32_t)WriteAdd; - 800e19a: 683b ldr r3, [r7, #0] - 800e19c: 60bb str r3, [r7, #8] - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_WRITE_MULT_BLOCK; - 800e19e: 2319 movs r3, #25 - 800e1a0: 60fb str r3, [r7, #12] - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - 800e1a2: f44f 7380 mov.w r3, #256 ; 0x100 - 800e1a6: 613b str r3, [r7, #16] - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - 800e1a8: 2300 movs r3, #0 - 800e1aa: 617b str r3, [r7, #20] - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - 800e1ac: f44f 5380 mov.w r3, #4096 ; 0x1000 - 800e1b0: 61bb str r3, [r7, #24] - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - 800e1b2: f107 0308 add.w r3, r7, #8 - 800e1b6: 4619 mov r1, r3 - 800e1b8: 6878 ldr r0, [r7, #4] - 800e1ba: f7ff fee7 bl 800df8c - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_WRITE_MULT_BLOCK, SDMMC_CMDTIMEOUT); - 800e1be: f241 3288 movw r2, #5000 ; 0x1388 - 800e1c2: 2119 movs r1, #25 - 800e1c4: 6878 ldr r0, [r7, #4] - 800e1c6: f000 f9d3 bl 800e570 - 800e1ca: 61f8 str r0, [r7, #28] - - return errorstate; - 800e1cc: 69fb ldr r3, [r7, #28] -} - 800e1ce: 4618 mov r0, r3 - 800e1d0: 3720 adds r7, #32 - 800e1d2: 46bd mov sp, r7 - 800e1d4: bd80 pop {r7, pc} - ... - -0800e1d8 : - * @brief Send the Stop Transfer command and check the response. - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -uint32_t SDMMC_CmdStopTransfer(SDMMC_TypeDef *SDMMCx) -{ - 800e1d8: b580 push {r7, lr} - 800e1da: b088 sub sp, #32 - 800e1dc: af00 add r7, sp, #0 - 800e1de: 6078 str r0, [r7, #4] - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Send CMD12 STOP_TRANSMISSION */ - sdmmc_cmdinit.Argument = 0U; - 800e1e0: 2300 movs r3, #0 - 800e1e2: 60bb str r3, [r7, #8] - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_STOP_TRANSMISSION; - 800e1e4: 230c movs r3, #12 - 800e1e6: 60fb str r3, [r7, #12] - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - 800e1e8: f44f 7380 mov.w r3, #256 ; 0x100 - 800e1ec: 613b str r3, [r7, #16] - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - 800e1ee: 2300 movs r3, #0 - 800e1f0: 617b str r3, [r7, #20] - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - 800e1f2: f44f 5380 mov.w r3, #4096 ; 0x1000 - 800e1f6: 61bb str r3, [r7, #24] - - __SDMMC_CMDSTOP_ENABLE(SDMMCx); - 800e1f8: 687b ldr r3, [r7, #4] - 800e1fa: 68db ldr r3, [r3, #12] - 800e1fc: f043 0280 orr.w r2, r3, #128 ; 0x80 - 800e200: 687b ldr r3, [r7, #4] - 800e202: 60da str r2, [r3, #12] - __SDMMC_CMDTRANS_DISABLE(SDMMCx); - 800e204: 687b ldr r3, [r7, #4] - 800e206: 68db ldr r3, [r3, #12] - 800e208: f023 0240 bic.w r2, r3, #64 ; 0x40 - 800e20c: 687b ldr r3, [r7, #4] - 800e20e: 60da str r2, [r3, #12] - - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - 800e210: f107 0308 add.w r3, r7, #8 - 800e214: 4619 mov r1, r3 - 800e216: 6878 ldr r0, [r7, #4] - 800e218: f7ff feb8 bl 800df8c - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_STOP_TRANSMISSION, SDMMC_STOPTRANSFERTIMEOUT); - 800e21c: 4a0b ldr r2, [pc, #44] ; (800e24c ) - 800e21e: 210c movs r1, #12 - 800e220: 6878 ldr r0, [r7, #4] - 800e222: f000 f9a5 bl 800e570 - 800e226: 61f8 str r0, [r7, #28] - - __SDMMC_CMDSTOP_DISABLE(SDMMCx); - 800e228: 687b ldr r3, [r7, #4] - 800e22a: 68db ldr r3, [r3, #12] - 800e22c: f023 0280 bic.w r2, r3, #128 ; 0x80 - 800e230: 687b ldr r3, [r7, #4] - 800e232: 60da str r2, [r3, #12] - - /* Ignore Address Out Of Range Error, Not relevant at end of memory */ - if (errorstate == SDMMC_ERROR_ADDR_OUT_OF_RANGE) - 800e234: 69fb ldr r3, [r7, #28] - 800e236: f1b3 7f00 cmp.w r3, #33554432 ; 0x2000000 - 800e23a: d101 bne.n 800e240 - { - errorstate = SDMMC_ERROR_NONE; - 800e23c: 2300 movs r3, #0 - 800e23e: 61fb str r3, [r7, #28] - } - - return errorstate; - 800e240: 69fb ldr r3, [r7, #28] -} - 800e242: 4618 mov r0, r3 - 800e244: 3720 adds r7, #32 - 800e246: 46bd mov sp, r7 - 800e248: bd80 pop {r7, pc} - 800e24a: bf00 nop - 800e24c: 05f5e100 .word 0x05f5e100 - -0800e250 : - * @param SDMMCx: Pointer to SDMMC register base - * @param addr: Address of the card to be selected - * @retval HAL status - */ -uint32_t SDMMC_CmdSelDesel(SDMMC_TypeDef *SDMMCx, uint32_t Addr) -{ - 800e250: b580 push {r7, lr} - 800e252: b088 sub sp, #32 - 800e254: af00 add r7, sp, #0 - 800e256: 6078 str r0, [r7, #4] - 800e258: 6039 str r1, [r7, #0] - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Send CMD7 SDMMC_SEL_DESEL_CARD */ - sdmmc_cmdinit.Argument = (uint32_t)Addr; - 800e25a: 683b ldr r3, [r7, #0] - 800e25c: 60bb str r3, [r7, #8] - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_SEL_DESEL_CARD; - 800e25e: 2307 movs r3, #7 - 800e260: 60fb str r3, [r7, #12] - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - 800e262: f44f 7380 mov.w r3, #256 ; 0x100 - 800e266: 613b str r3, [r7, #16] - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - 800e268: 2300 movs r3, #0 - 800e26a: 617b str r3, [r7, #20] - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - 800e26c: f44f 5380 mov.w r3, #4096 ; 0x1000 - 800e270: 61bb str r3, [r7, #24] - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - 800e272: f107 0308 add.w r3, r7, #8 - 800e276: 4619 mov r1, r3 - 800e278: 6878 ldr r0, [r7, #4] - 800e27a: f7ff fe87 bl 800df8c - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_SEL_DESEL_CARD, SDMMC_CMDTIMEOUT); - 800e27e: f241 3288 movw r2, #5000 ; 0x1388 - 800e282: 2107 movs r1, #7 - 800e284: 6878 ldr r0, [r7, #4] - 800e286: f000 f973 bl 800e570 - 800e28a: 61f8 str r0, [r7, #28] - - return errorstate; - 800e28c: 69fb ldr r3, [r7, #28] -} - 800e28e: 4618 mov r0, r3 - 800e290: 3720 adds r7, #32 - 800e292: 46bd mov sp, r7 - 800e294: bd80 pop {r7, pc} - -0800e296 : - * @brief Send the Go Idle State command and check the response. - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -uint32_t SDMMC_CmdGoIdleState(SDMMC_TypeDef *SDMMCx) -{ - 800e296: b580 push {r7, lr} - 800e298: b088 sub sp, #32 - 800e29a: af00 add r7, sp, #0 - 800e29c: 6078 str r0, [r7, #4] - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - sdmmc_cmdinit.Argument = 0U; - 800e29e: 2300 movs r3, #0 - 800e2a0: 60bb str r3, [r7, #8] - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_GO_IDLE_STATE; - 800e2a2: 2300 movs r3, #0 - 800e2a4: 60fb str r3, [r7, #12] - sdmmc_cmdinit.Response = SDMMC_RESPONSE_NO; - 800e2a6: 2300 movs r3, #0 - 800e2a8: 613b str r3, [r7, #16] - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - 800e2aa: 2300 movs r3, #0 - 800e2ac: 617b str r3, [r7, #20] - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - 800e2ae: f44f 5380 mov.w r3, #4096 ; 0x1000 - 800e2b2: 61bb str r3, [r7, #24] - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - 800e2b4: f107 0308 add.w r3, r7, #8 - 800e2b8: 4619 mov r1, r3 - 800e2ba: 6878 ldr r0, [r7, #4] - 800e2bc: f7ff fe66 bl 800df8c - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdError(SDMMCx); - 800e2c0: 6878 ldr r0, [r7, #4] - 800e2c2: f000 fb97 bl 800e9f4 - 800e2c6: 61f8 str r0, [r7, #28] - - return errorstate; - 800e2c8: 69fb ldr r3, [r7, #28] -} - 800e2ca: 4618 mov r0, r3 - 800e2cc: 3720 adds r7, #32 - 800e2ce: 46bd mov sp, r7 - 800e2d0: bd80 pop {r7, pc} - -0800e2d2 : - * @brief Send the Operating Condition command and check the response. - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -uint32_t SDMMC_CmdOperCond(SDMMC_TypeDef *SDMMCx) -{ - 800e2d2: b580 push {r7, lr} - 800e2d4: b088 sub sp, #32 - 800e2d6: af00 add r7, sp, #0 - 800e2d8: 6078 str r0, [r7, #4] - /* Send CMD8 to verify SD card interface operating condition */ - /* Argument: - [31:12]: Reserved (shall be set to '0') - - [11:8]: Supply Voltage (VHS) 0x1 (Range: 2.7-3.6 V) - - [7:0]: Check Pattern (recommended 0xAA) */ - /* CMD Response: R7 */ - sdmmc_cmdinit.Argument = SDMMC_CHECK_PATTERN; - 800e2da: f44f 73d5 mov.w r3, #426 ; 0x1aa - 800e2de: 60bb str r3, [r7, #8] - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_HS_SEND_EXT_CSD; - 800e2e0: 2308 movs r3, #8 - 800e2e2: 60fb str r3, [r7, #12] - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - 800e2e4: f44f 7380 mov.w r3, #256 ; 0x100 - 800e2e8: 613b str r3, [r7, #16] - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - 800e2ea: 2300 movs r3, #0 - 800e2ec: 617b str r3, [r7, #20] - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - 800e2ee: f44f 5380 mov.w r3, #4096 ; 0x1000 - 800e2f2: 61bb str r3, [r7, #24] - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - 800e2f4: f107 0308 add.w r3, r7, #8 - 800e2f8: 4619 mov r1, r3 - 800e2fa: 6878 ldr r0, [r7, #4] - 800e2fc: f7ff fe46 bl 800df8c - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp7(SDMMCx); - 800e300: 6878 ldr r0, [r7, #4] - 800e302: f000 fb29 bl 800e958 - 800e306: 61f8 str r0, [r7, #28] - - return errorstate; - 800e308: 69fb ldr r3, [r7, #28] -} - 800e30a: 4618 mov r0, r3 - 800e30c: 3720 adds r7, #32 - 800e30e: 46bd mov sp, r7 - 800e310: bd80 pop {r7, pc} - -0800e312 : - * @param SDMMCx: Pointer to SDMMC register base - * @param Argument: Command Argument - * @retval HAL status - */ -uint32_t SDMMC_CmdAppCommand(SDMMC_TypeDef *SDMMCx, uint32_t Argument) -{ - 800e312: b580 push {r7, lr} - 800e314: b088 sub sp, #32 - 800e316: af00 add r7, sp, #0 - 800e318: 6078 str r0, [r7, #4] - 800e31a: 6039 str r1, [r7, #0] - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - sdmmc_cmdinit.Argument = (uint32_t)Argument; - 800e31c: 683b ldr r3, [r7, #0] - 800e31e: 60bb str r3, [r7, #8] - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_APP_CMD; - 800e320: 2337 movs r3, #55 ; 0x37 - 800e322: 60fb str r3, [r7, #12] - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - 800e324: f44f 7380 mov.w r3, #256 ; 0x100 - 800e328: 613b str r3, [r7, #16] - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - 800e32a: 2300 movs r3, #0 - 800e32c: 617b str r3, [r7, #20] - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - 800e32e: f44f 5380 mov.w r3, #4096 ; 0x1000 - 800e332: 61bb str r3, [r7, #24] - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - 800e334: f107 0308 add.w r3, r7, #8 - 800e338: 4619 mov r1, r3 - 800e33a: 6878 ldr r0, [r7, #4] - 800e33c: f7ff fe26 bl 800df8c - - /* Check for error conditions */ - /* If there is a HAL_ERROR, it is a MMC card, else - it is a SD card: SD card 2.0 (voltage range mismatch) - or SD card 1.x */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_APP_CMD, SDMMC_CMDTIMEOUT); - 800e340: f241 3288 movw r2, #5000 ; 0x1388 - 800e344: 2137 movs r1, #55 ; 0x37 - 800e346: 6878 ldr r0, [r7, #4] - 800e348: f000 f912 bl 800e570 - 800e34c: 61f8 str r0, [r7, #28] - - return errorstate; - 800e34e: 69fb ldr r3, [r7, #28] -} - 800e350: 4618 mov r0, r3 - 800e352: 3720 adds r7, #32 - 800e354: 46bd mov sp, r7 - 800e356: bd80 pop {r7, pc} - -0800e358 : - * @param SDMMCx: Pointer to SDMMC register base - * @param Argument: Command Argument - * @retval HAL status - */ -uint32_t SDMMC_CmdAppOperCommand(SDMMC_TypeDef *SDMMCx, uint32_t Argument) -{ - 800e358: b580 push {r7, lr} - 800e35a: b088 sub sp, #32 - 800e35c: af00 add r7, sp, #0 - 800e35e: 6078 str r0, [r7, #4] - 800e360: 6039 str r1, [r7, #0] - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - sdmmc_cmdinit.Argument = Argument; - 800e362: 683b ldr r3, [r7, #0] - 800e364: 60bb str r3, [r7, #8] - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_SD_APP_OP_COND; - 800e366: 2329 movs r3, #41 ; 0x29 - 800e368: 60fb str r3, [r7, #12] - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - 800e36a: f44f 7380 mov.w r3, #256 ; 0x100 - 800e36e: 613b str r3, [r7, #16] - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - 800e370: 2300 movs r3, #0 - 800e372: 617b str r3, [r7, #20] - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - 800e374: f44f 5380 mov.w r3, #4096 ; 0x1000 - 800e378: 61bb str r3, [r7, #24] - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - 800e37a: f107 0308 add.w r3, r7, #8 - 800e37e: 4619 mov r1, r3 - 800e380: 6878 ldr r0, [r7, #4] - 800e382: f7ff fe03 bl 800df8c - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp3(SDMMCx); - 800e386: 6878 ldr r0, [r7, #4] - 800e388: f000 fa2e bl 800e7e8 - 800e38c: 61f8 str r0, [r7, #28] - - return errorstate; - 800e38e: 69fb ldr r3, [r7, #28] -} - 800e390: 4618 mov r0, r3 - 800e392: 3720 adds r7, #32 - 800e394: 46bd mov sp, r7 - 800e396: bd80 pop {r7, pc} - -0800e398 : - * @param SDMMCx: Pointer to SDMMC register base - * @param BusWidth: BusWidth - * @retval HAL status - */ -uint32_t SDMMC_CmdBusWidth(SDMMC_TypeDef *SDMMCx, uint32_t BusWidth) -{ - 800e398: b580 push {r7, lr} - 800e39a: b088 sub sp, #32 - 800e39c: af00 add r7, sp, #0 - 800e39e: 6078 str r0, [r7, #4] - 800e3a0: 6039 str r1, [r7, #0] - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - sdmmc_cmdinit.Argument = (uint32_t)BusWidth; - 800e3a2: 683b ldr r3, [r7, #0] - 800e3a4: 60bb str r3, [r7, #8] - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_APP_SD_SET_BUSWIDTH; - 800e3a6: 2306 movs r3, #6 - 800e3a8: 60fb str r3, [r7, #12] - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - 800e3aa: f44f 7380 mov.w r3, #256 ; 0x100 - 800e3ae: 613b str r3, [r7, #16] - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - 800e3b0: 2300 movs r3, #0 - 800e3b2: 617b str r3, [r7, #20] - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - 800e3b4: f44f 5380 mov.w r3, #4096 ; 0x1000 - 800e3b8: 61bb str r3, [r7, #24] - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - 800e3ba: f107 0308 add.w r3, r7, #8 - 800e3be: 4619 mov r1, r3 - 800e3c0: 6878 ldr r0, [r7, #4] - 800e3c2: f7ff fde3 bl 800df8c - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_APP_SD_SET_BUSWIDTH, SDMMC_CMDTIMEOUT); - 800e3c6: f241 3288 movw r2, #5000 ; 0x1388 - 800e3ca: 2106 movs r1, #6 - 800e3cc: 6878 ldr r0, [r7, #4] - 800e3ce: f000 f8cf bl 800e570 - 800e3d2: 61f8 str r0, [r7, #28] - - return errorstate; - 800e3d4: 69fb ldr r3, [r7, #28] -} - 800e3d6: 4618 mov r0, r3 - 800e3d8: 3720 adds r7, #32 - 800e3da: 46bd mov sp, r7 - 800e3dc: bd80 pop {r7, pc} - -0800e3de : - * @brief Send the Send SCR command and check the response. - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -uint32_t SDMMC_CmdSendSCR(SDMMC_TypeDef *SDMMCx) -{ - 800e3de: b580 push {r7, lr} - 800e3e0: b088 sub sp, #32 - 800e3e2: af00 add r7, sp, #0 - 800e3e4: 6078 str r0, [r7, #4] - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Send CMD51 SD_APP_SEND_SCR */ - sdmmc_cmdinit.Argument = 0U; - 800e3e6: 2300 movs r3, #0 - 800e3e8: 60bb str r3, [r7, #8] - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_SD_APP_SEND_SCR; - 800e3ea: 2333 movs r3, #51 ; 0x33 - 800e3ec: 60fb str r3, [r7, #12] - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - 800e3ee: f44f 7380 mov.w r3, #256 ; 0x100 - 800e3f2: 613b str r3, [r7, #16] - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - 800e3f4: 2300 movs r3, #0 - 800e3f6: 617b str r3, [r7, #20] - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - 800e3f8: f44f 5380 mov.w r3, #4096 ; 0x1000 - 800e3fc: 61bb str r3, [r7, #24] - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - 800e3fe: f107 0308 add.w r3, r7, #8 - 800e402: 4619 mov r1, r3 - 800e404: 6878 ldr r0, [r7, #4] - 800e406: f7ff fdc1 bl 800df8c - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_SD_APP_SEND_SCR, SDMMC_CMDTIMEOUT); - 800e40a: f241 3288 movw r2, #5000 ; 0x1388 - 800e40e: 2133 movs r1, #51 ; 0x33 - 800e410: 6878 ldr r0, [r7, #4] - 800e412: f000 f8ad bl 800e570 - 800e416: 61f8 str r0, [r7, #28] - - return errorstate; - 800e418: 69fb ldr r3, [r7, #28] -} - 800e41a: 4618 mov r0, r3 - 800e41c: 3720 adds r7, #32 - 800e41e: 46bd mov sp, r7 - 800e420: bd80 pop {r7, pc} - -0800e422 : - * @brief Send the Send CID command and check the response. - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -uint32_t SDMMC_CmdSendCID(SDMMC_TypeDef *SDMMCx) -{ - 800e422: b580 push {r7, lr} - 800e424: b088 sub sp, #32 - 800e426: af00 add r7, sp, #0 - 800e428: 6078 str r0, [r7, #4] - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Send CMD2 ALL_SEND_CID */ - sdmmc_cmdinit.Argument = 0U; - 800e42a: 2300 movs r3, #0 - 800e42c: 60bb str r3, [r7, #8] - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_ALL_SEND_CID; - 800e42e: 2302 movs r3, #2 - 800e430: 60fb str r3, [r7, #12] - sdmmc_cmdinit.Response = SDMMC_RESPONSE_LONG; - 800e432: f44f 7340 mov.w r3, #768 ; 0x300 - 800e436: 613b str r3, [r7, #16] - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - 800e438: 2300 movs r3, #0 - 800e43a: 617b str r3, [r7, #20] - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - 800e43c: f44f 5380 mov.w r3, #4096 ; 0x1000 - 800e440: 61bb str r3, [r7, #24] - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - 800e442: f107 0308 add.w r3, r7, #8 - 800e446: 4619 mov r1, r3 - 800e448: 6878 ldr r0, [r7, #4] - 800e44a: f7ff fd9f bl 800df8c - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp2(SDMMCx); - 800e44e: 6878 ldr r0, [r7, #4] - 800e450: f000 f980 bl 800e754 - 800e454: 61f8 str r0, [r7, #28] - - return errorstate; - 800e456: 69fb ldr r3, [r7, #28] -} - 800e458: 4618 mov r0, r3 - 800e45a: 3720 adds r7, #32 - 800e45c: 46bd mov sp, r7 - 800e45e: bd80 pop {r7, pc} - -0800e460 : - * @param SDMMCx: Pointer to SDMMC register base - * @param Argument: Command Argument - * @retval HAL status - */ -uint32_t SDMMC_CmdSendCSD(SDMMC_TypeDef *SDMMCx, uint32_t Argument) -{ - 800e460: b580 push {r7, lr} - 800e462: b088 sub sp, #32 - 800e464: af00 add r7, sp, #0 - 800e466: 6078 str r0, [r7, #4] - 800e468: 6039 str r1, [r7, #0] - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Send CMD9 SEND_CSD */ - sdmmc_cmdinit.Argument = Argument; - 800e46a: 683b ldr r3, [r7, #0] - 800e46c: 60bb str r3, [r7, #8] - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_SEND_CSD; - 800e46e: 2309 movs r3, #9 - 800e470: 60fb str r3, [r7, #12] - sdmmc_cmdinit.Response = SDMMC_RESPONSE_LONG; - 800e472: f44f 7340 mov.w r3, #768 ; 0x300 - 800e476: 613b str r3, [r7, #16] - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - 800e478: 2300 movs r3, #0 - 800e47a: 617b str r3, [r7, #20] - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - 800e47c: f44f 5380 mov.w r3, #4096 ; 0x1000 - 800e480: 61bb str r3, [r7, #24] - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - 800e482: f107 0308 add.w r3, r7, #8 - 800e486: 4619 mov r1, r3 - 800e488: 6878 ldr r0, [r7, #4] - 800e48a: f7ff fd7f bl 800df8c - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp2(SDMMCx); - 800e48e: 6878 ldr r0, [r7, #4] - 800e490: f000 f960 bl 800e754 - 800e494: 61f8 str r0, [r7, #28] - - return errorstate; - 800e496: 69fb ldr r3, [r7, #28] -} - 800e498: 4618 mov r0, r3 - 800e49a: 3720 adds r7, #32 - 800e49c: 46bd mov sp, r7 - 800e49e: bd80 pop {r7, pc} - -0800e4a0 : - * @param SDMMCx: Pointer to SDMMC register base - * @param pRCA: Card RCA - * @retval HAL status - */ -uint32_t SDMMC_CmdSetRelAdd(SDMMC_TypeDef *SDMMCx, uint16_t *pRCA) -{ - 800e4a0: b580 push {r7, lr} - 800e4a2: b088 sub sp, #32 - 800e4a4: af00 add r7, sp, #0 - 800e4a6: 6078 str r0, [r7, #4] - 800e4a8: 6039 str r1, [r7, #0] - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Send CMD3 SD_CMD_SET_REL_ADDR */ - sdmmc_cmdinit.Argument = 0U; - 800e4aa: 2300 movs r3, #0 - 800e4ac: 60bb str r3, [r7, #8] - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_SET_REL_ADDR; - 800e4ae: 2303 movs r3, #3 - 800e4b0: 60fb str r3, [r7, #12] - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - 800e4b2: f44f 7380 mov.w r3, #256 ; 0x100 - 800e4b6: 613b str r3, [r7, #16] - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - 800e4b8: 2300 movs r3, #0 - 800e4ba: 617b str r3, [r7, #20] - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - 800e4bc: f44f 5380 mov.w r3, #4096 ; 0x1000 - 800e4c0: 61bb str r3, [r7, #24] - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - 800e4c2: f107 0308 add.w r3, r7, #8 - 800e4c6: 4619 mov r1, r3 - 800e4c8: 6878 ldr r0, [r7, #4] - 800e4ca: f7ff fd5f bl 800df8c - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp6(SDMMCx, SDMMC_CMD_SET_REL_ADDR, pRCA); - 800e4ce: 683a ldr r2, [r7, #0] - 800e4d0: 2103 movs r1, #3 - 800e4d2: 6878 ldr r0, [r7, #4] - 800e4d4: f000 f9c8 bl 800e868 - 800e4d8: 61f8 str r0, [r7, #28] - - return errorstate; - 800e4da: 69fb ldr r3, [r7, #28] -} - 800e4dc: 4618 mov r0, r3 - 800e4de: 3720 adds r7, #32 - 800e4e0: 46bd mov sp, r7 - 800e4e2: bd80 pop {r7, pc} - -0800e4e4 : - * @param SDMMCx: Pointer to SDMMC register base - * @param Argument: Command Argument - * @retval HAL status - */ -uint32_t SDMMC_CmdSendStatus(SDMMC_TypeDef *SDMMCx, uint32_t Argument) -{ - 800e4e4: b580 push {r7, lr} - 800e4e6: b088 sub sp, #32 - 800e4e8: af00 add r7, sp, #0 - 800e4ea: 6078 str r0, [r7, #4] - 800e4ec: 6039 str r1, [r7, #0] - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - sdmmc_cmdinit.Argument = Argument; - 800e4ee: 683b ldr r3, [r7, #0] - 800e4f0: 60bb str r3, [r7, #8] - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_SEND_STATUS; - 800e4f2: 230d movs r3, #13 - 800e4f4: 60fb str r3, [r7, #12] - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - 800e4f6: f44f 7380 mov.w r3, #256 ; 0x100 - 800e4fa: 613b str r3, [r7, #16] - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - 800e4fc: 2300 movs r3, #0 - 800e4fe: 617b str r3, [r7, #20] - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - 800e500: f44f 5380 mov.w r3, #4096 ; 0x1000 - 800e504: 61bb str r3, [r7, #24] - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - 800e506: f107 0308 add.w r3, r7, #8 - 800e50a: 4619 mov r1, r3 - 800e50c: 6878 ldr r0, [r7, #4] - 800e50e: f7ff fd3d bl 800df8c - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_SEND_STATUS, SDMMC_CMDTIMEOUT); - 800e512: f241 3288 movw r2, #5000 ; 0x1388 - 800e516: 210d movs r1, #13 - 800e518: 6878 ldr r0, [r7, #4] - 800e51a: f000 f829 bl 800e570 - 800e51e: 61f8 str r0, [r7, #28] - - return errorstate; - 800e520: 69fb ldr r3, [r7, #28] -} - 800e522: 4618 mov r0, r3 - 800e524: 3720 adds r7, #32 - 800e526: 46bd mov sp, r7 - 800e528: bd80 pop {r7, pc} - -0800e52a : - * @brief Send the Status register command and check the response. - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -uint32_t SDMMC_CmdStatusRegister(SDMMC_TypeDef *SDMMCx) -{ - 800e52a: b580 push {r7, lr} - 800e52c: b088 sub sp, #32 - 800e52e: af00 add r7, sp, #0 - 800e530: 6078 str r0, [r7, #4] - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - sdmmc_cmdinit.Argument = 0U; - 800e532: 2300 movs r3, #0 - 800e534: 60bb str r3, [r7, #8] - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_SD_APP_STATUS; - 800e536: 230d movs r3, #13 - 800e538: 60fb str r3, [r7, #12] - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - 800e53a: f44f 7380 mov.w r3, #256 ; 0x100 - 800e53e: 613b str r3, [r7, #16] - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - 800e540: 2300 movs r3, #0 - 800e542: 617b str r3, [r7, #20] - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - 800e544: f44f 5380 mov.w r3, #4096 ; 0x1000 - 800e548: 61bb str r3, [r7, #24] - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - 800e54a: f107 0308 add.w r3, r7, #8 - 800e54e: 4619 mov r1, r3 - 800e550: 6878 ldr r0, [r7, #4] - 800e552: f7ff fd1b bl 800df8c - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_SD_APP_STATUS, SDMMC_CMDTIMEOUT); - 800e556: f241 3288 movw r2, #5000 ; 0x1388 - 800e55a: 210d movs r1, #13 - 800e55c: 6878 ldr r0, [r7, #4] - 800e55e: f000 f807 bl 800e570 - 800e562: 61f8 str r0, [r7, #28] - - return errorstate; - 800e564: 69fb ldr r3, [r7, #28] -} - 800e566: 4618 mov r0, r3 - 800e568: 3720 adds r7, #32 - 800e56a: 46bd mov sp, r7 - 800e56c: bd80 pop {r7, pc} - ... - -0800e570 : - * @param hsd: SD handle - * @param SD_CMD: The sent command index - * @retval SD Card error state - */ -uint32_t SDMMC_GetCmdResp1(SDMMC_TypeDef *SDMMCx, uint8_t SD_CMD, uint32_t Timeout) -{ - 800e570: b580 push {r7, lr} - 800e572: b088 sub sp, #32 - 800e574: af00 add r7, sp, #0 - 800e576: 60f8 str r0, [r7, #12] - 800e578: 460b mov r3, r1 - 800e57a: 607a str r2, [r7, #4] - 800e57c: 72fb strb r3, [r7, #11] - uint32_t response_r1; - uint32_t sta_reg; - - /* 8 is the number of required instructions cycles for the below loop statement. - The Timeout is expressed in ms */ - uint32_t count = Timeout * (SystemCoreClock / 8U / 1000U); - 800e57e: 4b70 ldr r3, [pc, #448] ; (800e740 ) - 800e580: 681b ldr r3, [r3, #0] - 800e582: 4a70 ldr r2, [pc, #448] ; (800e744 ) - 800e584: fba2 2303 umull r2, r3, r2, r3 - 800e588: 0a5a lsrs r2, r3, #9 - 800e58a: 687b ldr r3, [r7, #4] - 800e58c: fb02 f303 mul.w r3, r2, r3 - 800e590: 61fb str r3, [r7, #28] - - do - { - if (count-- == 0U) - 800e592: 69fb ldr r3, [r7, #28] - 800e594: 1e5a subs r2, r3, #1 - 800e596: 61fa str r2, [r7, #28] - 800e598: 2b00 cmp r3, #0 - 800e59a: d102 bne.n 800e5a2 - { - return SDMMC_ERROR_TIMEOUT; - 800e59c: f04f 4300 mov.w r3, #2147483648 ; 0x80000000 - 800e5a0: e0c9 b.n 800e736 - } - sta_reg = SDMMCx->STA; - 800e5a2: 68fb ldr r3, [r7, #12] - 800e5a4: 6b5b ldr r3, [r3, #52] ; 0x34 - 800e5a6: 61bb str r3, [r7, #24] - } while (((sta_reg & (SDMMC_FLAG_CCRCFAIL | SDMMC_FLAG_CMDREND | SDMMC_FLAG_CTIMEOUT | - 800e5a8: 69ba ldr r2, [r7, #24] - 800e5aa: 4b67 ldr r3, [pc, #412] ; (800e748 ) - 800e5ac: 4013 ands r3, r2 - SDMMC_FLAG_BUSYD0END)) == 0U) || ((sta_reg & SDMMC_FLAG_CMDACT) != 0U)); - 800e5ae: 2b00 cmp r3, #0 - 800e5b0: d0ef beq.n 800e592 - 800e5b2: 69bb ldr r3, [r7, #24] - 800e5b4: f403 5300 and.w r3, r3, #8192 ; 0x2000 - 800e5b8: 2b00 cmp r3, #0 - 800e5ba: d1ea bne.n 800e592 - - if (__SDMMC_GET_FLAG(SDMMCx, SDMMC_FLAG_CTIMEOUT)) - 800e5bc: 68fb ldr r3, [r7, #12] - 800e5be: 6b5b ldr r3, [r3, #52] ; 0x34 - 800e5c0: f003 0304 and.w r3, r3, #4 - 800e5c4: 2b00 cmp r3, #0 - 800e5c6: d004 beq.n 800e5d2 - { - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_FLAG_CTIMEOUT); - 800e5c8: 68fb ldr r3, [r7, #12] - 800e5ca: 2204 movs r2, #4 - 800e5cc: 639a str r2, [r3, #56] ; 0x38 - - return SDMMC_ERROR_CMD_RSP_TIMEOUT; - 800e5ce: 2304 movs r3, #4 - 800e5d0: e0b1 b.n 800e736 - } - else if (__SDMMC_GET_FLAG(SDMMCx, SDMMC_FLAG_CCRCFAIL)) - 800e5d2: 68fb ldr r3, [r7, #12] - 800e5d4: 6b5b ldr r3, [r3, #52] ; 0x34 - 800e5d6: f003 0301 and.w r3, r3, #1 - 800e5da: 2b00 cmp r3, #0 - 800e5dc: d004 beq.n 800e5e8 - { - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_FLAG_CCRCFAIL); - 800e5de: 68fb ldr r3, [r7, #12] - 800e5e0: 2201 movs r2, #1 - 800e5e2: 639a str r2, [r3, #56] ; 0x38 - - return SDMMC_ERROR_CMD_CRC_FAIL; - 800e5e4: 2301 movs r3, #1 - 800e5e6: e0a6 b.n 800e736 - { - /* Nothing to do */ - } - - /* Clear all the static flags */ - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_STATIC_CMD_FLAGS); - 800e5e8: 68fb ldr r3, [r7, #12] - 800e5ea: 4a58 ldr r2, [pc, #352] ; (800e74c ) - 800e5ec: 639a str r2, [r3, #56] ; 0x38 - - /* Check response received is of desired command */ - if (SDMMC_GetCommandResponse(SDMMCx) != SD_CMD) - 800e5ee: 68f8 ldr r0, [r7, #12] - 800e5f0: f7ff fcf6 bl 800dfe0 - 800e5f4: 4603 mov r3, r0 - 800e5f6: 461a mov r2, r3 - 800e5f8: 7afb ldrb r3, [r7, #11] - 800e5fa: 4293 cmp r3, r2 - 800e5fc: d001 beq.n 800e602 - { - return SDMMC_ERROR_CMD_CRC_FAIL; - 800e5fe: 2301 movs r3, #1 - 800e600: e099 b.n 800e736 - } - - /* We have received response, retrieve it for analysis */ - response_r1 = SDMMC_GetResponse(SDMMCx, SDMMC_RESP1); - 800e602: 2100 movs r1, #0 - 800e604: 68f8 ldr r0, [r7, #12] - 800e606: f7ff fcf8 bl 800dffa - 800e60a: 6178 str r0, [r7, #20] - - if ((response_r1 & SDMMC_OCR_ERRORBITS) == SDMMC_ALLZERO) - 800e60c: 697a ldr r2, [r7, #20] - 800e60e: 4b50 ldr r3, [pc, #320] ; (800e750 ) - 800e610: 4013 ands r3, r2 - 800e612: 2b00 cmp r3, #0 - 800e614: d101 bne.n 800e61a - { - return SDMMC_ERROR_NONE; - 800e616: 2300 movs r3, #0 - 800e618: e08d b.n 800e736 - } - else if ((response_r1 & SDMMC_OCR_ADDR_OUT_OF_RANGE) == SDMMC_OCR_ADDR_OUT_OF_RANGE) - 800e61a: 697b ldr r3, [r7, #20] - 800e61c: 2b00 cmp r3, #0 - 800e61e: da02 bge.n 800e626 - { - return SDMMC_ERROR_ADDR_OUT_OF_RANGE; - 800e620: f04f 7300 mov.w r3, #33554432 ; 0x2000000 - 800e624: e087 b.n 800e736 - } - else if ((response_r1 & SDMMC_OCR_ADDR_MISALIGNED) == SDMMC_OCR_ADDR_MISALIGNED) - 800e626: 697b ldr r3, [r7, #20] - 800e628: f003 4380 and.w r3, r3, #1073741824 ; 0x40000000 - 800e62c: 2b00 cmp r3, #0 - 800e62e: d001 beq.n 800e634 - { - return SDMMC_ERROR_ADDR_MISALIGNED; - 800e630: 2340 movs r3, #64 ; 0x40 - 800e632: e080 b.n 800e736 - } - else if ((response_r1 & SDMMC_OCR_BLOCK_LEN_ERR) == SDMMC_OCR_BLOCK_LEN_ERR) - 800e634: 697b ldr r3, [r7, #20] - 800e636: f003 5300 and.w r3, r3, #536870912 ; 0x20000000 - 800e63a: 2b00 cmp r3, #0 - 800e63c: d001 beq.n 800e642 - { - return SDMMC_ERROR_BLOCK_LEN_ERR; - 800e63e: 2380 movs r3, #128 ; 0x80 - 800e640: e079 b.n 800e736 - } - else if ((response_r1 & SDMMC_OCR_ERASE_SEQ_ERR) == SDMMC_OCR_ERASE_SEQ_ERR) - 800e642: 697b ldr r3, [r7, #20] - 800e644: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 800e648: 2b00 cmp r3, #0 - 800e64a: d002 beq.n 800e652 - { - return SDMMC_ERROR_ERASE_SEQ_ERR; - 800e64c: f44f 7380 mov.w r3, #256 ; 0x100 - 800e650: e071 b.n 800e736 - } - else if ((response_r1 & SDMMC_OCR_BAD_ERASE_PARAM) == SDMMC_OCR_BAD_ERASE_PARAM) - 800e652: 697b ldr r3, [r7, #20] - 800e654: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 - 800e658: 2b00 cmp r3, #0 - 800e65a: d002 beq.n 800e662 - { - return SDMMC_ERROR_BAD_ERASE_PARAM; - 800e65c: f44f 7300 mov.w r3, #512 ; 0x200 - 800e660: e069 b.n 800e736 - } - else if ((response_r1 & SDMMC_OCR_WRITE_PROT_VIOLATION) == SDMMC_OCR_WRITE_PROT_VIOLATION) - 800e662: 697b ldr r3, [r7, #20] - 800e664: f003 6380 and.w r3, r3, #67108864 ; 0x4000000 - 800e668: 2b00 cmp r3, #0 - 800e66a: d002 beq.n 800e672 - { - return SDMMC_ERROR_WRITE_PROT_VIOLATION; - 800e66c: f44f 6380 mov.w r3, #1024 ; 0x400 - 800e670: e061 b.n 800e736 - } - else if ((response_r1 & SDMMC_OCR_LOCK_UNLOCK_FAILED) == SDMMC_OCR_LOCK_UNLOCK_FAILED) - 800e672: 697b ldr r3, [r7, #20] - 800e674: f003 7380 and.w r3, r3, #16777216 ; 0x1000000 - 800e678: 2b00 cmp r3, #0 - 800e67a: d002 beq.n 800e682 - { - return SDMMC_ERROR_LOCK_UNLOCK_FAILED; - 800e67c: f44f 6300 mov.w r3, #2048 ; 0x800 - 800e680: e059 b.n 800e736 - } - else if ((response_r1 & SDMMC_OCR_COM_CRC_FAILED) == SDMMC_OCR_COM_CRC_FAILED) - 800e682: 697b ldr r3, [r7, #20] - 800e684: f403 0300 and.w r3, r3, #8388608 ; 0x800000 - 800e688: 2b00 cmp r3, #0 - 800e68a: d002 beq.n 800e692 - { - return SDMMC_ERROR_COM_CRC_FAILED; - 800e68c: f44f 5380 mov.w r3, #4096 ; 0x1000 - 800e690: e051 b.n 800e736 - } - else if ((response_r1 & SDMMC_OCR_ILLEGAL_CMD) == SDMMC_OCR_ILLEGAL_CMD) - 800e692: 697b ldr r3, [r7, #20] - 800e694: f403 0380 and.w r3, r3, #4194304 ; 0x400000 - 800e698: 2b00 cmp r3, #0 - 800e69a: d002 beq.n 800e6a2 - { - return SDMMC_ERROR_ILLEGAL_CMD; - 800e69c: f44f 5300 mov.w r3, #8192 ; 0x2000 - 800e6a0: e049 b.n 800e736 - } - else if ((response_r1 & SDMMC_OCR_CARD_ECC_FAILED) == SDMMC_OCR_CARD_ECC_FAILED) - 800e6a2: 697b ldr r3, [r7, #20] - 800e6a4: f403 1300 and.w r3, r3, #2097152 ; 0x200000 - 800e6a8: 2b00 cmp r3, #0 - 800e6aa: d002 beq.n 800e6b2 - { - return SDMMC_ERROR_CARD_ECC_FAILED; - 800e6ac: f44f 4380 mov.w r3, #16384 ; 0x4000 - 800e6b0: e041 b.n 800e736 - } - else if ((response_r1 & SDMMC_OCR_CC_ERROR) == SDMMC_OCR_CC_ERROR) - 800e6b2: 697b ldr r3, [r7, #20] - 800e6b4: f403 1380 and.w r3, r3, #1048576 ; 0x100000 - 800e6b8: 2b00 cmp r3, #0 - 800e6ba: d002 beq.n 800e6c2 - { - return SDMMC_ERROR_CC_ERR; - 800e6bc: f44f 4300 mov.w r3, #32768 ; 0x8000 - 800e6c0: e039 b.n 800e736 - } - else if ((response_r1 & SDMMC_OCR_STREAM_READ_UNDERRUN) == SDMMC_OCR_STREAM_READ_UNDERRUN) - 800e6c2: 697b ldr r3, [r7, #20] - 800e6c4: f403 2380 and.w r3, r3, #262144 ; 0x40000 - 800e6c8: 2b00 cmp r3, #0 - 800e6ca: d002 beq.n 800e6d2 - { - return SDMMC_ERROR_STREAM_READ_UNDERRUN; - 800e6cc: f44f 3300 mov.w r3, #131072 ; 0x20000 - 800e6d0: e031 b.n 800e736 - } - else if ((response_r1 & SDMMC_OCR_STREAM_WRITE_OVERRUN) == SDMMC_OCR_STREAM_WRITE_OVERRUN) - 800e6d2: 697b ldr r3, [r7, #20] - 800e6d4: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 800e6d8: 2b00 cmp r3, #0 - 800e6da: d002 beq.n 800e6e2 - { - return SDMMC_ERROR_STREAM_WRITE_OVERRUN; - 800e6dc: f44f 2380 mov.w r3, #262144 ; 0x40000 - 800e6e0: e029 b.n 800e736 - } - else if ((response_r1 & SDMMC_OCR_CID_CSD_OVERWRITE) == SDMMC_OCR_CID_CSD_OVERWRITE) - 800e6e2: 697b ldr r3, [r7, #20] - 800e6e4: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 800e6e8: 2b00 cmp r3, #0 - 800e6ea: d002 beq.n 800e6f2 - { - return SDMMC_ERROR_CID_CSD_OVERWRITE; - 800e6ec: f44f 2300 mov.w r3, #524288 ; 0x80000 - 800e6f0: e021 b.n 800e736 - } - else if ((response_r1 & SDMMC_OCR_WP_ERASE_SKIP) == SDMMC_OCR_WP_ERASE_SKIP) - 800e6f2: 697b ldr r3, [r7, #20] - 800e6f4: f403 4300 and.w r3, r3, #32768 ; 0x8000 - 800e6f8: 2b00 cmp r3, #0 - 800e6fa: d002 beq.n 800e702 - { - return SDMMC_ERROR_WP_ERASE_SKIP; - 800e6fc: f44f 1380 mov.w r3, #1048576 ; 0x100000 - 800e700: e019 b.n 800e736 - } - else if ((response_r1 & SDMMC_OCR_CARD_ECC_DISABLED) == SDMMC_OCR_CARD_ECC_DISABLED) - 800e702: 697b ldr r3, [r7, #20] - 800e704: f403 4380 and.w r3, r3, #16384 ; 0x4000 - 800e708: 2b00 cmp r3, #0 - 800e70a: d002 beq.n 800e712 - { - return SDMMC_ERROR_CARD_ECC_DISABLED; - 800e70c: f44f 1300 mov.w r3, #2097152 ; 0x200000 - 800e710: e011 b.n 800e736 - } - else if ((response_r1 & SDMMC_OCR_ERASE_RESET) == SDMMC_OCR_ERASE_RESET) - 800e712: 697b ldr r3, [r7, #20] - 800e714: f403 5300 and.w r3, r3, #8192 ; 0x2000 - 800e718: 2b00 cmp r3, #0 - 800e71a: d002 beq.n 800e722 - { - return SDMMC_ERROR_ERASE_RESET; - 800e71c: f44f 0380 mov.w r3, #4194304 ; 0x400000 - 800e720: e009 b.n 800e736 - } - else if ((response_r1 & SDMMC_OCR_AKE_SEQ_ERROR) == SDMMC_OCR_AKE_SEQ_ERROR) - 800e722: 697b ldr r3, [r7, #20] - 800e724: f003 0308 and.w r3, r3, #8 - 800e728: 2b00 cmp r3, #0 - 800e72a: d002 beq.n 800e732 - { - return SDMMC_ERROR_AKE_SEQ_ERR; - 800e72c: f44f 0300 mov.w r3, #8388608 ; 0x800000 - 800e730: e001 b.n 800e736 - } - else - { - return SDMMC_ERROR_GENERAL_UNKNOWN_ERR; - 800e732: f44f 3380 mov.w r3, #65536 ; 0x10000 - } -} - 800e736: 4618 mov r0, r3 - 800e738: 3720 adds r7, #32 - 800e73a: 46bd mov sp, r7 - 800e73c: bd80 pop {r7, pc} - 800e73e: bf00 nop - 800e740: 24000014 .word 0x24000014 - 800e744: 10624dd3 .word 0x10624dd3 - 800e748: 00200045 .word 0x00200045 - 800e74c: 002000c5 .word 0x002000c5 - 800e750: fdffe008 .word 0xfdffe008 - -0800e754 : - * @brief Checks for error conditions for R2 (CID or CSD) response. - * @param hsd: SD handle - * @retval SD Card error state - */ -uint32_t SDMMC_GetCmdResp2(SDMMC_TypeDef *SDMMCx) -{ - 800e754: b480 push {r7} - 800e756: b085 sub sp, #20 - 800e758: af00 add r7, sp, #0 - 800e75a: 6078 str r0, [r7, #4] - uint32_t sta_reg; - /* 8 is the number of required instructions cycles for the below loop statement. - The SDMMC_CMDTIMEOUT is expressed in ms */ - uint32_t count = SDMMC_CMDTIMEOUT * (SystemCoreClock / 8U / 1000U); - 800e75c: 4b1f ldr r3, [pc, #124] ; (800e7dc ) - 800e75e: 681b ldr r3, [r3, #0] - 800e760: 4a1f ldr r2, [pc, #124] ; (800e7e0 ) - 800e762: fba2 2303 umull r2, r3, r2, r3 - 800e766: 0a5b lsrs r3, r3, #9 - 800e768: f241 3288 movw r2, #5000 ; 0x1388 - 800e76c: fb02 f303 mul.w r3, r2, r3 - 800e770: 60fb str r3, [r7, #12] - - do - { - if (count-- == 0U) - 800e772: 68fb ldr r3, [r7, #12] - 800e774: 1e5a subs r2, r3, #1 - 800e776: 60fa str r2, [r7, #12] - 800e778: 2b00 cmp r3, #0 - 800e77a: d102 bne.n 800e782 - { - return SDMMC_ERROR_TIMEOUT; - 800e77c: f04f 4300 mov.w r3, #2147483648 ; 0x80000000 - 800e780: e026 b.n 800e7d0 - } - sta_reg = SDMMCx->STA; - 800e782: 687b ldr r3, [r7, #4] - 800e784: 6b5b ldr r3, [r3, #52] ; 0x34 - 800e786: 60bb str r3, [r7, #8] - } while (((sta_reg & (SDMMC_FLAG_CCRCFAIL | SDMMC_FLAG_CMDREND | SDMMC_FLAG_CTIMEOUT)) == 0U) || - 800e788: 68bb ldr r3, [r7, #8] - 800e78a: f003 0345 and.w r3, r3, #69 ; 0x45 - 800e78e: 2b00 cmp r3, #0 - 800e790: d0ef beq.n 800e772 - ((sta_reg & SDMMC_FLAG_CMDACT) != 0U)); - 800e792: 68bb ldr r3, [r7, #8] - 800e794: f403 5300 and.w r3, r3, #8192 ; 0x2000 - } while (((sta_reg & (SDMMC_FLAG_CCRCFAIL | SDMMC_FLAG_CMDREND | SDMMC_FLAG_CTIMEOUT)) == 0U) || - 800e798: 2b00 cmp r3, #0 - 800e79a: d1ea bne.n 800e772 - - if (__SDMMC_GET_FLAG(SDMMCx, SDMMC_FLAG_CTIMEOUT)) - 800e79c: 687b ldr r3, [r7, #4] - 800e79e: 6b5b ldr r3, [r3, #52] ; 0x34 - 800e7a0: f003 0304 and.w r3, r3, #4 - 800e7a4: 2b00 cmp r3, #0 - 800e7a6: d004 beq.n 800e7b2 - { - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_FLAG_CTIMEOUT); - 800e7a8: 687b ldr r3, [r7, #4] - 800e7aa: 2204 movs r2, #4 - 800e7ac: 639a str r2, [r3, #56] ; 0x38 - - return SDMMC_ERROR_CMD_RSP_TIMEOUT; - 800e7ae: 2304 movs r3, #4 - 800e7b0: e00e b.n 800e7d0 - } - else if (__SDMMC_GET_FLAG(SDMMCx, SDMMC_FLAG_CCRCFAIL)) - 800e7b2: 687b ldr r3, [r7, #4] - 800e7b4: 6b5b ldr r3, [r3, #52] ; 0x34 - 800e7b6: f003 0301 and.w r3, r3, #1 - 800e7ba: 2b00 cmp r3, #0 - 800e7bc: d004 beq.n 800e7c8 - { - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_FLAG_CCRCFAIL); - 800e7be: 687b ldr r3, [r7, #4] - 800e7c0: 2201 movs r2, #1 - 800e7c2: 639a str r2, [r3, #56] ; 0x38 - - return SDMMC_ERROR_CMD_CRC_FAIL; - 800e7c4: 2301 movs r3, #1 - 800e7c6: e003 b.n 800e7d0 - } - else - { - /* No error flag set */ - /* Clear all the static flags */ - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_STATIC_CMD_FLAGS); - 800e7c8: 687b ldr r3, [r7, #4] - 800e7ca: 4a06 ldr r2, [pc, #24] ; (800e7e4 ) - 800e7cc: 639a str r2, [r3, #56] ; 0x38 - } - - return SDMMC_ERROR_NONE; - 800e7ce: 2300 movs r3, #0 -} - 800e7d0: 4618 mov r0, r3 - 800e7d2: 3714 adds r7, #20 - 800e7d4: 46bd mov sp, r7 - 800e7d6: f85d 7b04 ldr.w r7, [sp], #4 - 800e7da: 4770 bx lr - 800e7dc: 24000014 .word 0x24000014 - 800e7e0: 10624dd3 .word 0x10624dd3 - 800e7e4: 002000c5 .word 0x002000c5 - -0800e7e8 : - * @brief Checks for error conditions for R3 (OCR) response. - * @param hsd: SD handle - * @retval SD Card error state - */ -uint32_t SDMMC_GetCmdResp3(SDMMC_TypeDef *SDMMCx) -{ - 800e7e8: b480 push {r7} - 800e7ea: b085 sub sp, #20 - 800e7ec: af00 add r7, sp, #0 - 800e7ee: 6078 str r0, [r7, #4] - uint32_t sta_reg; - /* 8 is the number of required instructions cycles for the below loop statement. - The SDMMC_CMDTIMEOUT is expressed in ms */ - uint32_t count = SDMMC_CMDTIMEOUT * (SystemCoreClock / 8U / 1000U); - 800e7f0: 4b1a ldr r3, [pc, #104] ; (800e85c ) - 800e7f2: 681b ldr r3, [r3, #0] - 800e7f4: 4a1a ldr r2, [pc, #104] ; (800e860 ) - 800e7f6: fba2 2303 umull r2, r3, r2, r3 - 800e7fa: 0a5b lsrs r3, r3, #9 - 800e7fc: f241 3288 movw r2, #5000 ; 0x1388 - 800e800: fb02 f303 mul.w r3, r2, r3 - 800e804: 60fb str r3, [r7, #12] - - do - { - if (count-- == 0U) - 800e806: 68fb ldr r3, [r7, #12] - 800e808: 1e5a subs r2, r3, #1 - 800e80a: 60fa str r2, [r7, #12] - 800e80c: 2b00 cmp r3, #0 - 800e80e: d102 bne.n 800e816 - { - return SDMMC_ERROR_TIMEOUT; - 800e810: f04f 4300 mov.w r3, #2147483648 ; 0x80000000 - 800e814: e01b b.n 800e84e - } - sta_reg = SDMMCx->STA; - 800e816: 687b ldr r3, [r7, #4] - 800e818: 6b5b ldr r3, [r3, #52] ; 0x34 - 800e81a: 60bb str r3, [r7, #8] - } while (((sta_reg & (SDMMC_FLAG_CCRCFAIL | SDMMC_FLAG_CMDREND | SDMMC_FLAG_CTIMEOUT)) == 0U) || - 800e81c: 68bb ldr r3, [r7, #8] - 800e81e: f003 0345 and.w r3, r3, #69 ; 0x45 - 800e822: 2b00 cmp r3, #0 - 800e824: d0ef beq.n 800e806 - ((sta_reg & SDMMC_FLAG_CMDACT) != 0U)); - 800e826: 68bb ldr r3, [r7, #8] - 800e828: f403 5300 and.w r3, r3, #8192 ; 0x2000 - } while (((sta_reg & (SDMMC_FLAG_CCRCFAIL | SDMMC_FLAG_CMDREND | SDMMC_FLAG_CTIMEOUT)) == 0U) || - 800e82c: 2b00 cmp r3, #0 - 800e82e: d1ea bne.n 800e806 - - if (__SDMMC_GET_FLAG(SDMMCx, SDMMC_FLAG_CTIMEOUT)) - 800e830: 687b ldr r3, [r7, #4] - 800e832: 6b5b ldr r3, [r3, #52] ; 0x34 - 800e834: f003 0304 and.w r3, r3, #4 - 800e838: 2b00 cmp r3, #0 - 800e83a: d004 beq.n 800e846 - { - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_FLAG_CTIMEOUT); - 800e83c: 687b ldr r3, [r7, #4] - 800e83e: 2204 movs r2, #4 - 800e840: 639a str r2, [r3, #56] ; 0x38 - - return SDMMC_ERROR_CMD_RSP_TIMEOUT; - 800e842: 2304 movs r3, #4 - 800e844: e003 b.n 800e84e - } - else - { - /* Clear all the static flags */ - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_STATIC_CMD_FLAGS); - 800e846: 687b ldr r3, [r7, #4] - 800e848: 4a06 ldr r2, [pc, #24] ; (800e864 ) - 800e84a: 639a str r2, [r3, #56] ; 0x38 - } - - return SDMMC_ERROR_NONE; - 800e84c: 2300 movs r3, #0 -} - 800e84e: 4618 mov r0, r3 - 800e850: 3714 adds r7, #20 - 800e852: 46bd mov sp, r7 - 800e854: f85d 7b04 ldr.w r7, [sp], #4 - 800e858: 4770 bx lr - 800e85a: bf00 nop - 800e85c: 24000014 .word 0x24000014 - 800e860: 10624dd3 .word 0x10624dd3 - 800e864: 002000c5 .word 0x002000c5 - -0800e868 : - * @param pRCA: Pointer to the variable that will contain the SD card relative - * address RCA - * @retval SD Card error state - */ -uint32_t SDMMC_GetCmdResp6(SDMMC_TypeDef *SDMMCx, uint8_t SD_CMD, uint16_t *pRCA) -{ - 800e868: b580 push {r7, lr} - 800e86a: b088 sub sp, #32 - 800e86c: af00 add r7, sp, #0 - 800e86e: 60f8 str r0, [r7, #12] - 800e870: 460b mov r3, r1 - 800e872: 607a str r2, [r7, #4] - 800e874: 72fb strb r3, [r7, #11] - uint32_t response_r1; - uint32_t sta_reg; - - /* 8 is the number of required instructions cycles for the below loop statement. - The SDMMC_CMDTIMEOUT is expressed in ms */ - uint32_t count = SDMMC_CMDTIMEOUT * (SystemCoreClock / 8U / 1000U); - 800e876: 4b35 ldr r3, [pc, #212] ; (800e94c ) - 800e878: 681b ldr r3, [r3, #0] - 800e87a: 4a35 ldr r2, [pc, #212] ; (800e950 ) - 800e87c: fba2 2303 umull r2, r3, r2, r3 - 800e880: 0a5b lsrs r3, r3, #9 - 800e882: f241 3288 movw r2, #5000 ; 0x1388 - 800e886: fb02 f303 mul.w r3, r2, r3 - 800e88a: 61fb str r3, [r7, #28] - - do - { - if (count-- == 0U) - 800e88c: 69fb ldr r3, [r7, #28] - 800e88e: 1e5a subs r2, r3, #1 - 800e890: 61fa str r2, [r7, #28] - 800e892: 2b00 cmp r3, #0 - 800e894: d102 bne.n 800e89c - { - return SDMMC_ERROR_TIMEOUT; - 800e896: f04f 4300 mov.w r3, #2147483648 ; 0x80000000 - 800e89a: e052 b.n 800e942 - } - sta_reg = SDMMCx->STA; - 800e89c: 68fb ldr r3, [r7, #12] - 800e89e: 6b5b ldr r3, [r3, #52] ; 0x34 - 800e8a0: 61bb str r3, [r7, #24] - } while (((sta_reg & (SDMMC_FLAG_CCRCFAIL | SDMMC_FLAG_CMDREND | SDMMC_FLAG_CTIMEOUT)) == 0U) || - 800e8a2: 69bb ldr r3, [r7, #24] - 800e8a4: f003 0345 and.w r3, r3, #69 ; 0x45 - 800e8a8: 2b00 cmp r3, #0 - 800e8aa: d0ef beq.n 800e88c - ((sta_reg & SDMMC_FLAG_CMDACT) != 0U)); - 800e8ac: 69bb ldr r3, [r7, #24] - 800e8ae: f403 5300 and.w r3, r3, #8192 ; 0x2000 - } while (((sta_reg & (SDMMC_FLAG_CCRCFAIL | SDMMC_FLAG_CMDREND | SDMMC_FLAG_CTIMEOUT)) == 0U) || - 800e8b2: 2b00 cmp r3, #0 - 800e8b4: d1ea bne.n 800e88c - - if (__SDMMC_GET_FLAG(SDMMCx, SDMMC_FLAG_CTIMEOUT)) - 800e8b6: 68fb ldr r3, [r7, #12] - 800e8b8: 6b5b ldr r3, [r3, #52] ; 0x34 - 800e8ba: f003 0304 and.w r3, r3, #4 - 800e8be: 2b00 cmp r3, #0 - 800e8c0: d004 beq.n 800e8cc - { - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_FLAG_CTIMEOUT); - 800e8c2: 68fb ldr r3, [r7, #12] - 800e8c4: 2204 movs r2, #4 - 800e8c6: 639a str r2, [r3, #56] ; 0x38 - - return SDMMC_ERROR_CMD_RSP_TIMEOUT; - 800e8c8: 2304 movs r3, #4 - 800e8ca: e03a b.n 800e942 - } - else if (__SDMMC_GET_FLAG(SDMMCx, SDMMC_FLAG_CCRCFAIL)) - 800e8cc: 68fb ldr r3, [r7, #12] - 800e8ce: 6b5b ldr r3, [r3, #52] ; 0x34 - 800e8d0: f003 0301 and.w r3, r3, #1 - 800e8d4: 2b00 cmp r3, #0 - 800e8d6: d004 beq.n 800e8e2 - { - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_FLAG_CCRCFAIL); - 800e8d8: 68fb ldr r3, [r7, #12] - 800e8da: 2201 movs r2, #1 - 800e8dc: 639a str r2, [r3, #56] ; 0x38 - - return SDMMC_ERROR_CMD_CRC_FAIL; - 800e8de: 2301 movs r3, #1 - 800e8e0: e02f b.n 800e942 - { - /* Nothing to do */ - } - - /* Check response received is of desired command */ - if (SDMMC_GetCommandResponse(SDMMCx) != SD_CMD) - 800e8e2: 68f8 ldr r0, [r7, #12] - 800e8e4: f7ff fb7c bl 800dfe0 - 800e8e8: 4603 mov r3, r0 - 800e8ea: 461a mov r2, r3 - 800e8ec: 7afb ldrb r3, [r7, #11] - 800e8ee: 4293 cmp r3, r2 - 800e8f0: d001 beq.n 800e8f6 - { - return SDMMC_ERROR_CMD_CRC_FAIL; - 800e8f2: 2301 movs r3, #1 - 800e8f4: e025 b.n 800e942 - } - - /* Clear all the static flags */ - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_STATIC_CMD_FLAGS); - 800e8f6: 68fb ldr r3, [r7, #12] - 800e8f8: 4a16 ldr r2, [pc, #88] ; (800e954 ) - 800e8fa: 639a str r2, [r3, #56] ; 0x38 - - /* We have received response, retrieve it. */ - response_r1 = SDMMC_GetResponse(SDMMCx, SDMMC_RESP1); - 800e8fc: 2100 movs r1, #0 - 800e8fe: 68f8 ldr r0, [r7, #12] - 800e900: f7ff fb7b bl 800dffa - 800e904: 6178 str r0, [r7, #20] - - if ((response_r1 & (SDMMC_R6_GENERAL_UNKNOWN_ERROR | SDMMC_R6_ILLEGAL_CMD | - 800e906: 697b ldr r3, [r7, #20] - 800e908: f403 4360 and.w r3, r3, #57344 ; 0xe000 - 800e90c: 2b00 cmp r3, #0 - 800e90e: d106 bne.n 800e91e - SDMMC_R6_COM_CRC_FAILED)) == SDMMC_ALLZERO) - { - *pRCA = (uint16_t)(response_r1 >> 16); - 800e910: 697b ldr r3, [r7, #20] - 800e912: 0c1b lsrs r3, r3, #16 - 800e914: b29a uxth r2, r3 - 800e916: 687b ldr r3, [r7, #4] - 800e918: 801a strh r2, [r3, #0] - - return SDMMC_ERROR_NONE; - 800e91a: 2300 movs r3, #0 - 800e91c: e011 b.n 800e942 - } - else if ((response_r1 & SDMMC_R6_ILLEGAL_CMD) == SDMMC_R6_ILLEGAL_CMD) - 800e91e: 697b ldr r3, [r7, #20] - 800e920: f403 4380 and.w r3, r3, #16384 ; 0x4000 - 800e924: 2b00 cmp r3, #0 - 800e926: d002 beq.n 800e92e - { - return SDMMC_ERROR_ILLEGAL_CMD; - 800e928: f44f 5300 mov.w r3, #8192 ; 0x2000 - 800e92c: e009 b.n 800e942 - } - else if ((response_r1 & SDMMC_R6_COM_CRC_FAILED) == SDMMC_R6_COM_CRC_FAILED) - 800e92e: 697b ldr r3, [r7, #20] - 800e930: f403 4300 and.w r3, r3, #32768 ; 0x8000 - 800e934: 2b00 cmp r3, #0 - 800e936: d002 beq.n 800e93e - { - return SDMMC_ERROR_COM_CRC_FAILED; - 800e938: f44f 5380 mov.w r3, #4096 ; 0x1000 - 800e93c: e001 b.n 800e942 - } - else - { - return SDMMC_ERROR_GENERAL_UNKNOWN_ERR; - 800e93e: f44f 3380 mov.w r3, #65536 ; 0x10000 - } -} - 800e942: 4618 mov r0, r3 - 800e944: 3720 adds r7, #32 - 800e946: 46bd mov sp, r7 - 800e948: bd80 pop {r7, pc} - 800e94a: bf00 nop - 800e94c: 24000014 .word 0x24000014 - 800e950: 10624dd3 .word 0x10624dd3 - 800e954: 002000c5 .word 0x002000c5 - -0800e958 : - * @brief Checks for error conditions for R7 response. - * @param hsd: SD handle - * @retval SD Card error state - */ -uint32_t SDMMC_GetCmdResp7(SDMMC_TypeDef *SDMMCx) -{ - 800e958: b480 push {r7} - 800e95a: b085 sub sp, #20 - 800e95c: af00 add r7, sp, #0 - 800e95e: 6078 str r0, [r7, #4] - uint32_t sta_reg; - /* 8 is the number of required instructions cycles for the below loop statement. - The SDMMC_CMDTIMEOUT is expressed in ms */ - uint32_t count = SDMMC_CMDTIMEOUT * (SystemCoreClock / 8U / 1000U); - 800e960: 4b22 ldr r3, [pc, #136] ; (800e9ec ) - 800e962: 681b ldr r3, [r3, #0] - 800e964: 4a22 ldr r2, [pc, #136] ; (800e9f0 ) - 800e966: fba2 2303 umull r2, r3, r2, r3 - 800e96a: 0a5b lsrs r3, r3, #9 - 800e96c: f241 3288 movw r2, #5000 ; 0x1388 - 800e970: fb02 f303 mul.w r3, r2, r3 - 800e974: 60fb str r3, [r7, #12] - - do - { - if (count-- == 0U) - 800e976: 68fb ldr r3, [r7, #12] - 800e978: 1e5a subs r2, r3, #1 - 800e97a: 60fa str r2, [r7, #12] - 800e97c: 2b00 cmp r3, #0 - 800e97e: d102 bne.n 800e986 - { - return SDMMC_ERROR_TIMEOUT; - 800e980: f04f 4300 mov.w r3, #2147483648 ; 0x80000000 - 800e984: e02c b.n 800e9e0 - } - sta_reg = SDMMCx->STA; - 800e986: 687b ldr r3, [r7, #4] - 800e988: 6b5b ldr r3, [r3, #52] ; 0x34 - 800e98a: 60bb str r3, [r7, #8] - } while (((sta_reg & (SDMMC_FLAG_CCRCFAIL | SDMMC_FLAG_CMDREND | SDMMC_FLAG_CTIMEOUT)) == 0U) || - 800e98c: 68bb ldr r3, [r7, #8] - 800e98e: f003 0345 and.w r3, r3, #69 ; 0x45 - 800e992: 2b00 cmp r3, #0 - 800e994: d0ef beq.n 800e976 - ((sta_reg & SDMMC_FLAG_CMDACT) != 0U)); - 800e996: 68bb ldr r3, [r7, #8] - 800e998: f403 5300 and.w r3, r3, #8192 ; 0x2000 - } while (((sta_reg & (SDMMC_FLAG_CCRCFAIL | SDMMC_FLAG_CMDREND | SDMMC_FLAG_CTIMEOUT)) == 0U) || - 800e99c: 2b00 cmp r3, #0 - 800e99e: d1ea bne.n 800e976 - - if (__SDMMC_GET_FLAG(SDMMCx, SDMMC_FLAG_CTIMEOUT)) - 800e9a0: 687b ldr r3, [r7, #4] - 800e9a2: 6b5b ldr r3, [r3, #52] ; 0x34 - 800e9a4: f003 0304 and.w r3, r3, #4 - 800e9a8: 2b00 cmp r3, #0 - 800e9aa: d004 beq.n 800e9b6 - { - /* Card is not SD V2.0 compliant */ - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_FLAG_CTIMEOUT); - 800e9ac: 687b ldr r3, [r7, #4] - 800e9ae: 2204 movs r2, #4 - 800e9b0: 639a str r2, [r3, #56] ; 0x38 - - return SDMMC_ERROR_CMD_RSP_TIMEOUT; - 800e9b2: 2304 movs r3, #4 - 800e9b4: e014 b.n 800e9e0 - } - - else if (__SDMMC_GET_FLAG(SDMMCx, SDMMC_FLAG_CCRCFAIL)) - 800e9b6: 687b ldr r3, [r7, #4] - 800e9b8: 6b5b ldr r3, [r3, #52] ; 0x34 - 800e9ba: f003 0301 and.w r3, r3, #1 - 800e9be: 2b00 cmp r3, #0 - 800e9c0: d004 beq.n 800e9cc - { - /* Card is not SD V2.0 compliant */ - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_FLAG_CCRCFAIL); - 800e9c2: 687b ldr r3, [r7, #4] - 800e9c4: 2201 movs r2, #1 - 800e9c6: 639a str r2, [r3, #56] ; 0x38 - - return SDMMC_ERROR_CMD_CRC_FAIL; - 800e9c8: 2301 movs r3, #1 - 800e9ca: e009 b.n 800e9e0 - else - { - /* Nothing to do */ - } - - if (__SDMMC_GET_FLAG(SDMMCx, SDMMC_FLAG_CMDREND)) - 800e9cc: 687b ldr r3, [r7, #4] - 800e9ce: 6b5b ldr r3, [r3, #52] ; 0x34 - 800e9d0: f003 0340 and.w r3, r3, #64 ; 0x40 - 800e9d4: 2b00 cmp r3, #0 - 800e9d6: d002 beq.n 800e9de - { - /* Card is SD V2.0 compliant */ - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_FLAG_CMDREND); - 800e9d8: 687b ldr r3, [r7, #4] - 800e9da: 2240 movs r2, #64 ; 0x40 - 800e9dc: 639a str r2, [r3, #56] ; 0x38 - } - - return SDMMC_ERROR_NONE; - 800e9de: 2300 movs r3, #0 - -} - 800e9e0: 4618 mov r0, r3 - 800e9e2: 3714 adds r7, #20 - 800e9e4: 46bd mov sp, r7 - 800e9e6: f85d 7b04 ldr.w r7, [sp], #4 - 800e9ea: 4770 bx lr - 800e9ec: 24000014 .word 0x24000014 - 800e9f0: 10624dd3 .word 0x10624dd3 - -0800e9f4 : - * @brief Checks for error conditions for CMD0. - * @param hsd: SD handle - * @retval SD Card error state - */ -static uint32_t SDMMC_GetCmdError(SDMMC_TypeDef *SDMMCx) -{ - 800e9f4: b480 push {r7} - 800e9f6: b085 sub sp, #20 - 800e9f8: af00 add r7, sp, #0 - 800e9fa: 6078 str r0, [r7, #4] - /* 8 is the number of required instructions cycles for the below loop statement. - The SDMMC_CMDTIMEOUT is expressed in ms */ - uint32_t count = SDMMC_CMDTIMEOUT * (SystemCoreClock / 8U / 1000U); - 800e9fc: 4b11 ldr r3, [pc, #68] ; (800ea44 ) - 800e9fe: 681b ldr r3, [r3, #0] - 800ea00: 4a11 ldr r2, [pc, #68] ; (800ea48 ) - 800ea02: fba2 2303 umull r2, r3, r2, r3 - 800ea06: 0a5b lsrs r3, r3, #9 - 800ea08: f241 3288 movw r2, #5000 ; 0x1388 - 800ea0c: fb02 f303 mul.w r3, r2, r3 - 800ea10: 60fb str r3, [r7, #12] - - do - { - if (count-- == 0U) - 800ea12: 68fb ldr r3, [r7, #12] - 800ea14: 1e5a subs r2, r3, #1 - 800ea16: 60fa str r2, [r7, #12] - 800ea18: 2b00 cmp r3, #0 - 800ea1a: d102 bne.n 800ea22 - { - return SDMMC_ERROR_TIMEOUT; - 800ea1c: f04f 4300 mov.w r3, #2147483648 ; 0x80000000 - 800ea20: e009 b.n 800ea36 - } - - } while (!__SDMMC_GET_FLAG(SDMMCx, SDMMC_FLAG_CMDSENT)); - 800ea22: 687b ldr r3, [r7, #4] - 800ea24: 6b5b ldr r3, [r3, #52] ; 0x34 - 800ea26: f003 0380 and.w r3, r3, #128 ; 0x80 - 800ea2a: 2b00 cmp r3, #0 - 800ea2c: d0f1 beq.n 800ea12 - - /* Clear all the static flags */ - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_STATIC_CMD_FLAGS); - 800ea2e: 687b ldr r3, [r7, #4] - 800ea30: 4a06 ldr r2, [pc, #24] ; (800ea4c ) - 800ea32: 639a str r2, [r3, #56] ; 0x38 - - return SDMMC_ERROR_NONE; - 800ea34: 2300 movs r3, #0 -} - 800ea36: 4618 mov r0, r3 - 800ea38: 3714 adds r7, #20 - 800ea3a: 46bd mov sp, r7 - 800ea3c: f85d 7b04 ldr.w r7, [sp], #4 - 800ea40: 4770 bx lr - 800ea42: bf00 nop - 800ea44: 24000014 .word 0x24000014 - 800ea48: 10624dd3 .word 0x10624dd3 - 800ea4c: 002000c5 .word 0x002000c5 - -0800ea50 : -/* USER CODE BEGIN Variables */ - -/* USER CODE END Variables */ - -void MX_FATFS_Init(void) -{ - 800ea50: b580 push {r7, lr} - 800ea52: af00 add r7, sp, #0 - /*## FatFS: Link the SD driver ###########################*/ - retSD = FATFS_LinkDriver(&SD_Driver, SDPath); - 800ea54: 4904 ldr r1, [pc, #16] ; (800ea68 ) - 800ea56: 4805 ldr r0, [pc, #20] ; (800ea6c ) - 800ea58: f001 fbea bl 8010230 - 800ea5c: 4603 mov r3, r0 - 800ea5e: 461a mov r2, r3 - 800ea60: 4b03 ldr r3, [pc, #12] ; (800ea70 ) - 800ea62: 701a strb r2, [r3, #0] - - /* USER CODE BEGIN Init */ - /* additional user code for init */ - /* USER CODE END Init */ -} - 800ea64: bf00 nop - 800ea66: bd80 pop {r7, pc} - 800ea68: 240073dc .word 0x240073dc - 800ea6c: 08026b80 .word 0x08026b80 - 800ea70: 240073d8 .word 0x240073d8 - -0800ea74 : -/** - * @brief Initializes the SD card device. - * @retval SD status - */ -__weak uint8_t BSP_SD_Init(void) -{ - 800ea74: b580 push {r7, lr} - 800ea76: b082 sub sp, #8 - 800ea78: af00 add r7, sp, #0 - uint8_t sd_state = MSD_OK; - 800ea7a: 2300 movs r3, #0 - 800ea7c: 71fb strb r3, [r7, #7] - /* Check if the SD card is plugged in the slot */ - if (BSP_SD_IsDetected() != SD_PRESENT) - 800ea7e: f000 f885 bl 800eb8c - 800ea82: 4603 mov r3, r0 - 800ea84: 2b01 cmp r3, #1 - 800ea86: d001 beq.n 800ea8c - { - return MSD_ERROR_SD_NOT_PRESENT; - 800ea88: 2302 movs r3, #2 - 800ea8a: e012 b.n 800eab2 - } - /* HAL SD initialization */ - sd_state = HAL_SD_Init(&hsd1); - 800ea8c: 480b ldr r0, [pc, #44] ; (800eabc ) - 800ea8e: f7fb febb bl 800a808 - 800ea92: 4603 mov r3, r0 - 800ea94: 71fb strb r3, [r7, #7] - /* Configure SD Bus width (4 bits mode selected) */ - if (sd_state == MSD_OK) - 800ea96: 79fb ldrb r3, [r7, #7] - 800ea98: 2b00 cmp r3, #0 - 800ea9a: d109 bne.n 800eab0 - { - /* Enable wide operation */ - if (HAL_SD_ConfigWideBusOperation(&hsd1, SDMMC_BUS_WIDE_4B) != HAL_OK) - 800ea9c: f44f 4180 mov.w r1, #16384 ; 0x4000 - 800eaa0: 4806 ldr r0, [pc, #24] ; (800eabc ) - 800eaa2: f7fc fd71 bl 800b588 - 800eaa6: 4603 mov r3, r0 - 800eaa8: 2b00 cmp r3, #0 - 800eaaa: d001 beq.n 800eab0 - { - sd_state = MSD_ERROR; - 800eaac: 2301 movs r3, #1 - 800eaae: 71fb strb r3, [r7, #7] - } - } - - return sd_state; - 800eab0: 79fb ldrb r3, [r7, #7] -} - 800eab2: 4618 mov r0, r3 - 800eab4: 3708 adds r7, #8 - 800eab6: 46bd mov sp, r7 - 800eab8: bd80 pop {r7, pc} - 800eaba: bf00 nop - 800eabc: 24000f48 .word 0x24000f48 - -0800eac0 : - * @param ReadAddr: Address from where data is to be read - * @param NumOfBlocks: Number of SD blocks to read - * @retval SD status - */ -__weak uint8_t BSP_SD_ReadBlocks_DMA(uint32_t *pData, uint32_t ReadAddr, uint32_t NumOfBlocks) -{ - 800eac0: b580 push {r7, lr} - 800eac2: b086 sub sp, #24 - 800eac4: af00 add r7, sp, #0 - 800eac6: 60f8 str r0, [r7, #12] - 800eac8: 60b9 str r1, [r7, #8] - 800eaca: 607a str r2, [r7, #4] - uint8_t sd_state = MSD_OK; - 800eacc: 2300 movs r3, #0 - 800eace: 75fb strb r3, [r7, #23] - - /* Read block(s) in DMA transfer mode */ - if (HAL_SD_ReadBlocks_DMA(&hsd1, (uint8_t *)pData, ReadAddr, NumOfBlocks) != HAL_OK) - 800ead0: 687b ldr r3, [r7, #4] - 800ead2: 68ba ldr r2, [r7, #8] - 800ead4: 68f9 ldr r1, [r7, #12] - 800ead6: 4806 ldr r0, [pc, #24] ; (800eaf0 ) - 800ead8: f7fb ffb6 bl 800aa48 - 800eadc: 4603 mov r3, r0 - 800eade: 2b00 cmp r3, #0 - 800eae0: d001 beq.n 800eae6 - { - sd_state = MSD_ERROR; - 800eae2: 2301 movs r3, #1 - 800eae4: 75fb strb r3, [r7, #23] - } - - return sd_state; - 800eae6: 7dfb ldrb r3, [r7, #23] -} - 800eae8: 4618 mov r0, r3 - 800eaea: 3718 adds r7, #24 - 800eaec: 46bd mov sp, r7 - 800eaee: bd80 pop {r7, pc} - 800eaf0: 24000f48 .word 0x24000f48 - -0800eaf4 : - * @param WriteAddr: Address from where data is to be written - * @param NumOfBlocks: Number of SD blocks to write - * @retval SD status - */ -__weak uint8_t BSP_SD_WriteBlocks_DMA(uint32_t *pData, uint32_t WriteAddr, uint32_t NumOfBlocks) -{ - 800eaf4: b580 push {r7, lr} - 800eaf6: b086 sub sp, #24 - 800eaf8: af00 add r7, sp, #0 - 800eafa: 60f8 str r0, [r7, #12] - 800eafc: 60b9 str r1, [r7, #8] - 800eafe: 607a str r2, [r7, #4] - uint8_t sd_state = MSD_OK; - 800eb00: 2300 movs r3, #0 - 800eb02: 75fb strb r3, [r7, #23] - - /* Write block(s) in DMA transfer mode */ - if (HAL_SD_WriteBlocks_DMA(&hsd1, (uint8_t *)pData, WriteAddr, NumOfBlocks) != HAL_OK) - 800eb04: 687b ldr r3, [r7, #4] - 800eb06: 68ba ldr r2, [r7, #8] - 800eb08: 68f9 ldr r1, [r7, #12] - 800eb0a: 4806 ldr r0, [pc, #24] ; (800eb24 ) - 800eb0c: f7fc f844 bl 800ab98 - 800eb10: 4603 mov r3, r0 - 800eb12: 2b00 cmp r3, #0 - 800eb14: d001 beq.n 800eb1a - { - sd_state = MSD_ERROR; - 800eb16: 2301 movs r3, #1 - 800eb18: 75fb strb r3, [r7, #23] - } - - return sd_state; - 800eb1a: 7dfb ldrb r3, [r7, #23] -} - 800eb1c: 4618 mov r0, r3 - 800eb1e: 3718 adds r7, #24 - 800eb20: 46bd mov sp, r7 - 800eb22: bd80 pop {r7, pc} - 800eb24: 24000f48 .word 0x24000f48 - -0800eb28 : - * This value can be one of the following values: - * @arg SD_TRANSFER_OK: No data transfer is acting - * @arg SD_TRANSFER_BUSY: Data transfer is acting - */ -__weak uint8_t BSP_SD_GetCardState(void) -{ - 800eb28: b580 push {r7, lr} - 800eb2a: af00 add r7, sp, #0 - return ((HAL_SD_GetCardState(&hsd1) == HAL_SD_CARD_TRANSFER ) ? SD_TRANSFER_OK : SD_TRANSFER_BUSY); - 800eb2c: 4805 ldr r0, [pc, #20] ; (800eb44 ) - 800eb2e: f7fc fe3d bl 800b7ac - 800eb32: 4603 mov r3, r0 - 800eb34: 2b04 cmp r3, #4 - 800eb36: bf14 ite ne - 800eb38: 2301 movne r3, #1 - 800eb3a: 2300 moveq r3, #0 - 800eb3c: b2db uxtb r3, r3 -} - 800eb3e: 4618 mov r0, r3 - 800eb40: bd80 pop {r7, pc} - 800eb42: bf00 nop - 800eb44: 24000f48 .word 0x24000f48 - -0800eb48 : - * @brief Get SD information about specific SD card. - * @param CardInfo: Pointer to HAL_SD_CardInfoTypedef structure - * @retval None - */ -__weak void BSP_SD_GetCardInfo(HAL_SD_CardInfoTypeDef *CardInfo) -{ - 800eb48: b580 push {r7, lr} - 800eb4a: b082 sub sp, #8 - 800eb4c: af00 add r7, sp, #0 - 800eb4e: 6078 str r0, [r7, #4] - /* Get SD card Information */ - HAL_SD_GetCardInfo(&hsd1, CardInfo); - 800eb50: 6879 ldr r1, [r7, #4] - 800eb52: 4803 ldr r0, [pc, #12] ; (800eb60 ) - 800eb54: f7fc fcec bl 800b530 -} - 800eb58: bf00 nop - 800eb5a: 3708 adds r7, #8 - 800eb5c: 46bd mov sp, r7 - 800eb5e: bd80 pop {r7, pc} - 800eb60: 24000f48 .word 0x24000f48 - -0800eb64 : - * @brief Tx Transfer completed callback - * @param hsd: SD handle - * @retval None - */ -void HAL_SD_TxCpltCallback(SD_HandleTypeDef *hsd) -{ - 800eb64: b580 push {r7, lr} - 800eb66: b082 sub sp, #8 - 800eb68: af00 add r7, sp, #0 - 800eb6a: 6078 str r0, [r7, #4] - BSP_SD_WriteCpltCallback(); - 800eb6c: f000 f9bc bl 800eee8 -} - 800eb70: bf00 nop - 800eb72: 3708 adds r7, #8 - 800eb74: 46bd mov sp, r7 - 800eb76: bd80 pop {r7, pc} - -0800eb78 : - * @brief Rx Transfer completed callback - * @param hsd: SD handle - * @retval None - */ -void HAL_SD_RxCpltCallback(SD_HandleTypeDef *hsd) -{ - 800eb78: b580 push {r7, lr} - 800eb7a: b082 sub sp, #8 - 800eb7c: af00 add r7, sp, #0 - 800eb7e: 6078 str r0, [r7, #4] - BSP_SD_ReadCpltCallback(); - 800eb80: f000 f9c0 bl 800ef04 -} - 800eb84: bf00 nop - 800eb86: 3708 adds r7, #8 - 800eb88: 46bd mov sp, r7 - 800eb8a: bd80 pop {r7, pc} - -0800eb8c : - * @brief Detects if SD card is correctly plugged in the memory slot or not. - * @param None - * @retval Returns if SD is detected or not - */ -__weak uint8_t BSP_SD_IsDetected(void) -{ - 800eb8c: b580 push {r7, lr} - 800eb8e: b082 sub sp, #8 - 800eb90: af00 add r7, sp, #0 - __IO uint8_t status = SD_PRESENT; - 800eb92: 2301 movs r3, #1 - 800eb94: 71fb strb r3, [r7, #7] - - if (BSP_PlatformIsDetected() == 0x0) - 800eb96: f000 f80b bl 800ebb0 - 800eb9a: 4603 mov r3, r0 - 800eb9c: 2b00 cmp r3, #0 - 800eb9e: d101 bne.n 800eba4 - { - status = SD_NOT_PRESENT; - 800eba0: 2300 movs r3, #0 - 800eba2: 71fb strb r3, [r7, #7] - } - - return status; - 800eba4: 79fb ldrb r3, [r7, #7] - 800eba6: b2db uxtb r3, r3 -} - 800eba8: 4618 mov r0, r3 - 800ebaa: 3708 adds r7, #8 - 800ebac: 46bd mov sp, r7 - 800ebae: bd80 pop {r7, pc} - -0800ebb0 : - ****************************************************************************** -*/ -/* USER CODE END Header */ -#include "fatfs_platform.h" - -uint8_t BSP_PlatformIsDetected(void) { - 800ebb0: b580 push {r7, lr} - 800ebb2: b082 sub sp, #8 - 800ebb4: af00 add r7, sp, #0 - uint8_t status = SD_PRESENT; - 800ebb6: 2301 movs r3, #1 - 800ebb8: 71fb strb r3, [r7, #7] - /* Check SD card detect pin */ - if(HAL_GPIO_ReadPin(SD_DETECT_GPIO_PORT, SD_DETECT_PIN) != GPIO_PIN_RESET) - 800ebba: f44f 4100 mov.w r1, #32768 ; 0x8000 - 800ebbe: 4806 ldr r0, [pc, #24] ; (800ebd8 ) - 800ebc0: f7f7 ff9e bl 8006b00 - 800ebc4: 4603 mov r3, r0 - 800ebc6: 2b00 cmp r3, #0 - 800ebc8: d001 beq.n 800ebce - { - status = SD_NOT_PRESENT; - 800ebca: 2300 movs r3, #0 - 800ebcc: 71fb strb r3, [r7, #7] - } - /* USER CODE BEGIN 1 */ - /* user code can be inserted here */ - /* USER CODE END 1 */ - return status; - 800ebce: 79fb ldrb r3, [r7, #7] -} - 800ebd0: 4618 mov r0, r3 - 800ebd2: 3708 adds r7, #8 - 800ebd4: 46bd mov sp, r7 - 800ebd6: bd80 pop {r7, pc} - 800ebd8: 58020400 .word 0x58020400 - -0800ebdc : -/* USER CODE END beforeFunctionSection */ - -/* Private functions ---------------------------------------------------------*/ - -static int SD_CheckStatusWithTimeout(uint32_t timeout) -{ - 800ebdc: b580 push {r7, lr} - 800ebde: b084 sub sp, #16 - 800ebe0: af00 add r7, sp, #0 - 800ebe2: 6078 str r0, [r7, #4] - uint32_t timer; - /* block until SDIO peripheral is ready again or a timeout occur */ -#if (osCMSIS <= 0x20000U) - timer = osKernelSysTick(); - 800ebe4: f001 fb70 bl 80102c8 - 800ebe8: 60f8 str r0, [r7, #12] - while( osKernelSysTick() - timer < timeout) - 800ebea: e006 b.n 800ebfa -#else - timer = osKernelGetTickCount(); - while( osKernelGetTickCount() - timer < timeout) -#endif - { - if (BSP_SD_GetCardState() == SD_TRANSFER_OK) - 800ebec: f7ff ff9c bl 800eb28 - 800ebf0: 4603 mov r3, r0 - 800ebf2: 2b00 cmp r3, #0 - 800ebf4: d101 bne.n 800ebfa - { - return 0; - 800ebf6: 2300 movs r3, #0 - 800ebf8: e009 b.n 800ec0e - while( osKernelSysTick() - timer < timeout) - 800ebfa: f001 fb65 bl 80102c8 - 800ebfe: 4602 mov r2, r0 - 800ec00: 68fb ldr r3, [r7, #12] - 800ec02: 1ad3 subs r3, r2, r3 - 800ec04: 687a ldr r2, [r7, #4] - 800ec06: 429a cmp r2, r3 - 800ec08: d8f0 bhi.n 800ebec - } - } - - return -1; - 800ec0a: f04f 33ff mov.w r3, #4294967295 -} - 800ec0e: 4618 mov r0, r3 - 800ec10: 3710 adds r7, #16 - 800ec12: 46bd mov sp, r7 - 800ec14: bd80 pop {r7, pc} - ... - -0800ec18 : - -static DSTATUS SD_CheckStatus(BYTE lun) -{ - 800ec18: b580 push {r7, lr} - 800ec1a: b082 sub sp, #8 - 800ec1c: af00 add r7, sp, #0 - 800ec1e: 4603 mov r3, r0 - 800ec20: 71fb strb r3, [r7, #7] - Stat = STA_NOINIT; - 800ec22: 4b0b ldr r3, [pc, #44] ; (800ec50 ) - 800ec24: 2201 movs r2, #1 - 800ec26: 701a strb r2, [r3, #0] - - if(BSP_SD_GetCardState() == SD_TRANSFER_OK) - 800ec28: f7ff ff7e bl 800eb28 - 800ec2c: 4603 mov r3, r0 - 800ec2e: 2b00 cmp r3, #0 - 800ec30: d107 bne.n 800ec42 - { - Stat &= ~STA_NOINIT; - 800ec32: 4b07 ldr r3, [pc, #28] ; (800ec50 ) - 800ec34: 781b ldrb r3, [r3, #0] - 800ec36: b2db uxtb r3, r3 - 800ec38: f023 0301 bic.w r3, r3, #1 - 800ec3c: b2da uxtb r2, r3 - 800ec3e: 4b04 ldr r3, [pc, #16] ; (800ec50 ) - 800ec40: 701a strb r2, [r3, #0] - } - - return Stat; - 800ec42: 4b03 ldr r3, [pc, #12] ; (800ec50 ) - 800ec44: 781b ldrb r3, [r3, #0] - 800ec46: b2db uxtb r3, r3 -} - 800ec48: 4618 mov r0, r3 - 800ec4a: 3708 adds r7, #8 - 800ec4c: 46bd mov sp, r7 - 800ec4e: bd80 pop {r7, pc} - 800ec50: 24000021 .word 0x24000021 - -0800ec54 : - * @brief Initializes a Drive - * @param lun : not used - * @retval DSTATUS: Operation status - */ -DSTATUS SD_initialize(BYTE lun) -{ - 800ec54: b590 push {r4, r7, lr} - 800ec56: b087 sub sp, #28 - 800ec58: af00 add r7, sp, #0 - 800ec5a: 4603 mov r3, r0 - 800ec5c: 71fb strb r3, [r7, #7] -Stat = STA_NOINIT; - 800ec5e: 4b20 ldr r3, [pc, #128] ; (800ece0 ) - 800ec60: 2201 movs r2, #1 - 800ec62: 701a strb r2, [r3, #0] - /* - * check that the kernel has been started before continuing - * as the osMessage API will fail otherwise - */ -#if (osCMSIS <= 0x20000U) - if(osKernelRunning()) - 800ec64: f001 fb24 bl 80102b0 - 800ec68: 4603 mov r3, r0 - 800ec6a: 2b00 cmp r3, #0 - 800ec6c: d030 beq.n 800ecd0 - if(osKernelGetState() == osKernelRunning) -#endif - { -#if !defined(DISABLE_SD_INIT) - - if(BSP_SD_Init() == MSD_OK) - 800ec6e: f7ff ff01 bl 800ea74 - 800ec72: 4603 mov r3, r0 - 800ec74: 2b00 cmp r3, #0 - 800ec76: d107 bne.n 800ec88 - { - Stat = SD_CheckStatus(lun); - 800ec78: 79fb ldrb r3, [r7, #7] - 800ec7a: 4618 mov r0, r3 - 800ec7c: f7ff ffcc bl 800ec18 - 800ec80: 4603 mov r3, r0 - 800ec82: 461a mov r2, r3 - 800ec84: 4b16 ldr r3, [pc, #88] ; (800ece0 ) - 800ec86: 701a strb r2, [r3, #0] - /* - * if the SD is correctly initialized, create the operation queue - * if not already created - */ - - if (Stat != STA_NOINIT) - 800ec88: 4b15 ldr r3, [pc, #84] ; (800ece0 ) - 800ec8a: 781b ldrb r3, [r3, #0] - 800ec8c: b2db uxtb r3, r3 - 800ec8e: 2b01 cmp r3, #1 - 800ec90: d01e beq.n 800ecd0 - { - if (SDQueueID == NULL) - 800ec92: 4b14 ldr r3, [pc, #80] ; (800ece4 ) - 800ec94: 681b ldr r3, [r3, #0] - 800ec96: 2b00 cmp r3, #0 - 800ec98: d10e bne.n 800ecb8 - { - #if (osCMSIS <= 0x20000U) - osMessageQDef(SD_Queue, QUEUE_SIZE, uint16_t); - 800ec9a: 4b13 ldr r3, [pc, #76] ; (800ece8 ) - 800ec9c: f107 0408 add.w r4, r7, #8 - 800eca0: cb0f ldmia r3, {r0, r1, r2, r3} - 800eca2: e884 000f stmia.w r4, {r0, r1, r2, r3} - SDQueueID = osMessageCreate (osMessageQ(SD_Queue), NULL); - 800eca6: f107 0308 add.w r3, r7, #8 - 800ecaa: 2100 movs r1, #0 - 800ecac: 4618 mov r0, r3 - 800ecae: f001 fce0 bl 8010672 - 800ecb2: 4603 mov r3, r0 - 800ecb4: 4a0b ldr r2, [pc, #44] ; (800ece4 ) - 800ecb6: 6013 str r3, [r2, #0] -#else - SDQueueID = osMessageQueueNew(QUEUE_SIZE, 2, NULL); -#endif - } - - if (SDQueueID == NULL) - 800ecb8: 4b0a ldr r3, [pc, #40] ; (800ece4 ) - 800ecba: 681b ldr r3, [r3, #0] - 800ecbc: 2b00 cmp r3, #0 - 800ecbe: d107 bne.n 800ecd0 - { - Stat |= STA_NOINIT; - 800ecc0: 4b07 ldr r3, [pc, #28] ; (800ece0 ) - 800ecc2: 781b ldrb r3, [r3, #0] - 800ecc4: b2db uxtb r3, r3 - 800ecc6: f043 0301 orr.w r3, r3, #1 - 800ecca: b2da uxtb r2, r3 - 800eccc: 4b04 ldr r3, [pc, #16] ; (800ece0 ) - 800ecce: 701a strb r2, [r3, #0] - } - } - } - - return Stat; - 800ecd0: 4b03 ldr r3, [pc, #12] ; (800ece0 ) - 800ecd2: 781b ldrb r3, [r3, #0] - 800ecd4: b2db uxtb r3, r3 -} - 800ecd6: 4618 mov r0, r3 - 800ecd8: 371c adds r7, #28 - 800ecda: 46bd mov sp, r7 - 800ecdc: bd90 pop {r4, r7, pc} - 800ecde: bf00 nop - 800ece0: 24000021 .word 0x24000021 - 800ece4: 240073e0 .word 0x240073e0 - 800ece8: 08022e84 .word 0x08022e84 - -0800ecec : - * @brief Gets Disk Status - * @param lun : not used - * @retval DSTATUS: Operation status - */ -DSTATUS SD_status(BYTE lun) -{ - 800ecec: b580 push {r7, lr} - 800ecee: b082 sub sp, #8 - 800ecf0: af00 add r7, sp, #0 - 800ecf2: 4603 mov r3, r0 - 800ecf4: 71fb strb r3, [r7, #7] - return SD_CheckStatus(lun); - 800ecf6: 79fb ldrb r3, [r7, #7] - 800ecf8: 4618 mov r0, r3 - 800ecfa: f7ff ff8d bl 800ec18 - 800ecfe: 4603 mov r3, r0 -} - 800ed00: 4618 mov r0, r3 - 800ed02: 3708 adds r7, #8 - 800ed04: 46bd mov sp, r7 - 800ed06: bd80 pop {r7, pc} - -0800ed08 : - * @param count: Number of sectors to read (1..128) - * @retval DRESULT: Operation result - */ - -DRESULT SD_read(BYTE lun, BYTE *buff, DWORD sector, UINT count) -{ - 800ed08: b580 push {r7, lr} - 800ed0a: b08a sub sp, #40 ; 0x28 - 800ed0c: af00 add r7, sp, #0 - 800ed0e: 60b9 str r1, [r7, #8] - 800ed10: 607a str r2, [r7, #4] - 800ed12: 603b str r3, [r7, #0] - 800ed14: 4603 mov r3, r0 - 800ed16: 73fb strb r3, [r7, #15] - uint8_t ret; - DRESULT res = RES_ERROR; - 800ed18: 2301 movs r3, #1 - 800ed1a: f887 3027 strb.w r3, [r7, #39] ; 0x27 -#endif - /* - * ensure the SDCard is ready for a new operation - */ - - if (SD_CheckStatusWithTimeout(SD_TIMEOUT) < 0) - 800ed1e: f247 5030 movw r0, #30000 ; 0x7530 - 800ed22: f7ff ff5b bl 800ebdc - 800ed26: 4603 mov r3, r0 - 800ed28: 2b00 cmp r3, #0 - 800ed2a: da02 bge.n 800ed32 - { - return res; - 800ed2c: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 800ed30: e032 b.n 800ed98 -#if defined(ENABLE_SCRATCH_BUFFER) - if (!((uint32_t)buff & 0x3)) - { -#endif - /* Fast path cause destination buffer is correctly aligned */ - ret = BSP_SD_ReadBlocks_DMA((uint32_t*)buff, (uint32_t)(sector), count); - 800ed32: 683a ldr r2, [r7, #0] - 800ed34: 6879 ldr r1, [r7, #4] - 800ed36: 68b8 ldr r0, [r7, #8] - 800ed38: f7ff fec2 bl 800eac0 - 800ed3c: 4603 mov r3, r0 - 800ed3e: f887 3026 strb.w r3, [r7, #38] ; 0x26 - - if (ret == MSD_OK) { - 800ed42: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 800ed46: 2b00 cmp r3, #0 - 800ed48: d124 bne.n 800ed94 -#if (osCMSIS < 0x20000U) - /* wait for a message from the queue or a timeout */ - event = osMessageGet(SDQueueID, SD_TIMEOUT); - 800ed4a: 4b15 ldr r3, [pc, #84] ; (800eda0 ) - 800ed4c: 6819 ldr r1, [r3, #0] - 800ed4e: f107 0314 add.w r3, r7, #20 - 800ed52: f247 5230 movw r2, #30000 ; 0x7530 - 800ed56: 4618 mov r0, r3 - 800ed58: f001 fcf4 bl 8010744 - - if (event.status == osEventMessage) - 800ed5c: 697b ldr r3, [r7, #20] - 800ed5e: 2b10 cmp r3, #16 - 800ed60: d118 bne.n 800ed94 - { - if (event.value.v == READ_CPLT_MSG) - 800ed62: 69bb ldr r3, [r7, #24] - 800ed64: 2b01 cmp r3, #1 - 800ed66: d115 bne.n 800ed94 - { - timer = osKernelSysTick(); - 800ed68: f001 faae bl 80102c8 - 800ed6c: 6238 str r0, [r7, #32] - /* block until SDIO IP is ready or a timeout occur */ - while(osKernelSysTick() - timer - timer = osKernelGetTickCount(); - /* block until SDIO IP is ready or a timeout occur */ - while(osKernelGetTickCount() - timer - 800ed74: 4603 mov r3, r0 - 800ed76: 2b00 cmp r3, #0 - 800ed78: d103 bne.n 800ed82 - { - res = RES_OK; - 800ed7a: 2300 movs r3, #0 - 800ed7c: f887 3027 strb.w r3, [r7, #39] ; 0x27 - adjust the address and the D-Cache size to invalidate accordingly. - */ - alignedAddr = (uint32_t)buff & ~0x1F; - SCB_InvalidateDCache_by_Addr((uint32_t*)alignedAddr, count*BLOCKSIZE + ((uint32_t)buff - alignedAddr)); -#endif - break; - 800ed80: e008 b.n 800ed94 - while(osKernelSysTick() - timer - 800ed86: 4602 mov r2, r0 - 800ed88: 6a3b ldr r3, [r7, #32] - 800ed8a: 1ad3 subs r3, r2, r3 - 800ed8c: f247 522f movw r2, #29999 ; 0x752f - 800ed90: 4293 cmp r3, r2 - 800ed92: d9ed bls.n 800ed70 - - if ((i == count) && (ret == MSD_OK )) - res = RES_OK; - } -#endif - return res; - 800ed94: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 -} - 800ed98: 4618 mov r0, r3 - 800ed9a: 3728 adds r7, #40 ; 0x28 - 800ed9c: 46bd mov sp, r7 - 800ed9e: bd80 pop {r7, pc} - 800eda0: 240073e0 .word 0x240073e0 - -0800eda4 : - * @retval DRESULT: Operation result - */ -#if _USE_WRITE == 1 - -DRESULT SD_write(BYTE lun, const BYTE *buff, DWORD sector, UINT count) -{ - 800eda4: b580 push {r7, lr} - 800eda6: b08a sub sp, #40 ; 0x28 - 800eda8: af00 add r7, sp, #0 - 800edaa: 60b9 str r1, [r7, #8] - 800edac: 607a str r2, [r7, #4] - 800edae: 603b str r3, [r7, #0] - 800edb0: 4603 mov r3, r0 - 800edb2: 73fb strb r3, [r7, #15] - DRESULT res = RES_ERROR; - 800edb4: 2301 movs r3, #1 - 800edb6: f887 3027 strb.w r3, [r7, #39] ; 0x27 - - /* - * ensure the SDCard is ready for a new operation - */ - - if (SD_CheckStatusWithTimeout(SD_TIMEOUT) < 0) - 800edba: f247 5030 movw r0, #30000 ; 0x7530 - 800edbe: f7ff ff0d bl 800ebdc - 800edc2: 4603 mov r3, r0 - 800edc4: 2b00 cmp r3, #0 - 800edc6: da02 bge.n 800edce - { - return res; - 800edc8: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 800edcc: e02e b.n 800ee2c - */ - alignedAddr = (uint32_t)buff & ~0x1F; - SCB_CleanDCache_by_Addr((uint32_t*)alignedAddr, count*BLOCKSIZE + ((uint32_t)buff - alignedAddr)); -#endif - - if(BSP_SD_WriteBlocks_DMA((uint32_t*)buff, - 800edce: 683a ldr r2, [r7, #0] - 800edd0: 6879 ldr r1, [r7, #4] - 800edd2: 68b8 ldr r0, [r7, #8] - 800edd4: f7ff fe8e bl 800eaf4 - 800edd8: 4603 mov r3, r0 - 800edda: 2b00 cmp r3, #0 - 800eddc: d124 bne.n 800ee28 - (uint32_t) (sector), - count) == MSD_OK) - { -#if (osCMSIS < 0x20000U) - /* Get the message from the queue */ - event = osMessageGet(SDQueueID, SD_TIMEOUT); - 800edde: 4b15 ldr r3, [pc, #84] ; (800ee34 ) - 800ede0: 6819 ldr r1, [r3, #0] - 800ede2: f107 0314 add.w r3, r7, #20 - 800ede6: f247 5230 movw r2, #30000 ; 0x7530 - 800edea: 4618 mov r0, r3 - 800edec: f001 fcaa bl 8010744 - - if (event.status == osEventMessage) - 800edf0: 697b ldr r3, [r7, #20] - 800edf2: 2b10 cmp r3, #16 - 800edf4: d118 bne.n 800ee28 - { - if (event.value.v == WRITE_CPLT_MSG) - 800edf6: 69bb ldr r3, [r7, #24] - 800edf8: 2b02 cmp r3, #2 - 800edfa: d115 bne.n 800ee28 - status = osMessageQueueGet(SDQueueID, (void *)&event, NULL, SD_TIMEOUT); - if ((status == osOK) && (event == WRITE_CPLT_MSG)) - { -#endif - #if (osCMSIS < 0x20000U) - timer = osKernelSysTick(); - 800edfc: f001 fa64 bl 80102c8 - 800ee00: 6238 str r0, [r7, #32] - /* block until SDIO IP is ready or a timeout occur */ - while(osKernelSysTick() - timer < SD_TIMEOUT) - 800ee02: e008 b.n 800ee16 - timer = osKernelGetTickCount(); - /* block until SDIO IP is ready or a timeout occur */ - while(osKernelGetTickCount() - timer < SD_TIMEOUT) -#endif - { - if (BSP_SD_GetCardState() == SD_TRANSFER_OK) - 800ee04: f7ff fe90 bl 800eb28 - 800ee08: 4603 mov r3, r0 - 800ee0a: 2b00 cmp r3, #0 - 800ee0c: d103 bne.n 800ee16 - { - res = RES_OK; - 800ee0e: 2300 movs r3, #0 - 800ee10: f887 3027 strb.w r3, [r7, #39] ; 0x27 - break; - 800ee14: e008 b.n 800ee28 - while(osKernelSysTick() - timer < SD_TIMEOUT) - 800ee16: f001 fa57 bl 80102c8 - 800ee1a: 4602 mov r2, r0 - 800ee1c: 6a3b ldr r3, [r7, #32] - 800ee1e: 1ad3 subs r3, r2, r3 - 800ee20: f247 522f movw r2, #29999 ; 0x752f - 800ee24: 4293 cmp r3, r2 - 800ee26: d9ed bls.n 800ee04 - } - - } -#endif - - return res; - 800ee28: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 -} - 800ee2c: 4618 mov r0, r3 - 800ee2e: 3728 adds r7, #40 ; 0x28 - 800ee30: 46bd mov sp, r7 - 800ee32: bd80 pop {r7, pc} - 800ee34: 240073e0 .word 0x240073e0 - -0800ee38 : - * @param *buff: Buffer to send/receive control data - * @retval DRESULT: Operation result - */ -#if _USE_IOCTL == 1 -DRESULT SD_ioctl(BYTE lun, BYTE cmd, void *buff) -{ - 800ee38: b580 push {r7, lr} - 800ee3a: b08c sub sp, #48 ; 0x30 - 800ee3c: af00 add r7, sp, #0 - 800ee3e: 4603 mov r3, r0 - 800ee40: 603a str r2, [r7, #0] - 800ee42: 71fb strb r3, [r7, #7] - 800ee44: 460b mov r3, r1 - 800ee46: 71bb strb r3, [r7, #6] - DRESULT res = RES_ERROR; - 800ee48: 2301 movs r3, #1 - 800ee4a: f887 302f strb.w r3, [r7, #47] ; 0x2f - BSP_SD_CardInfo CardInfo; - - if (Stat & STA_NOINIT) return RES_NOTRDY; - 800ee4e: 4b25 ldr r3, [pc, #148] ; (800eee4 ) - 800ee50: 781b ldrb r3, [r3, #0] - 800ee52: b2db uxtb r3, r3 - 800ee54: f003 0301 and.w r3, r3, #1 - 800ee58: 2b00 cmp r3, #0 - 800ee5a: d001 beq.n 800ee60 - 800ee5c: 2303 movs r3, #3 - 800ee5e: e03c b.n 800eeda - - switch (cmd) - 800ee60: 79bb ldrb r3, [r7, #6] - 800ee62: 2b03 cmp r3, #3 - 800ee64: d834 bhi.n 800eed0 - 800ee66: a201 add r2, pc, #4 ; (adr r2, 800ee6c ) - 800ee68: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800ee6c: 0800ee7d .word 0x0800ee7d - 800ee70: 0800ee85 .word 0x0800ee85 - 800ee74: 0800ee9d .word 0x0800ee9d - 800ee78: 0800eeb7 .word 0x0800eeb7 - { - /* Make sure that no pending write process */ - case CTRL_SYNC : - res = RES_OK; - 800ee7c: 2300 movs r3, #0 - 800ee7e: f887 302f strb.w r3, [r7, #47] ; 0x2f - break; - 800ee82: e028 b.n 800eed6 - - /* Get number of sectors on the disk (DWORD) */ - case GET_SECTOR_COUNT : - BSP_SD_GetCardInfo(&CardInfo); - 800ee84: f107 0308 add.w r3, r7, #8 - 800ee88: 4618 mov r0, r3 - 800ee8a: f7ff fe5d bl 800eb48 - *(DWORD*)buff = CardInfo.LogBlockNbr; - 800ee8e: 6a3a ldr r2, [r7, #32] - 800ee90: 683b ldr r3, [r7, #0] - 800ee92: 601a str r2, [r3, #0] - res = RES_OK; - 800ee94: 2300 movs r3, #0 - 800ee96: f887 302f strb.w r3, [r7, #47] ; 0x2f - break; - 800ee9a: e01c b.n 800eed6 - - /* Get R/W sector size (WORD) */ - case GET_SECTOR_SIZE : - BSP_SD_GetCardInfo(&CardInfo); - 800ee9c: f107 0308 add.w r3, r7, #8 - 800eea0: 4618 mov r0, r3 - 800eea2: f7ff fe51 bl 800eb48 - *(WORD*)buff = CardInfo.LogBlockSize; - 800eea6: 6a7b ldr r3, [r7, #36] ; 0x24 - 800eea8: b29a uxth r2, r3 - 800eeaa: 683b ldr r3, [r7, #0] - 800eeac: 801a strh r2, [r3, #0] - res = RES_OK; - 800eeae: 2300 movs r3, #0 - 800eeb0: f887 302f strb.w r3, [r7, #47] ; 0x2f - break; - 800eeb4: e00f b.n 800eed6 - - /* Get erase block size in unit of sector (DWORD) */ - case GET_BLOCK_SIZE : - BSP_SD_GetCardInfo(&CardInfo); - 800eeb6: f107 0308 add.w r3, r7, #8 - 800eeba: 4618 mov r0, r3 - 800eebc: f7ff fe44 bl 800eb48 - *(DWORD*)buff = CardInfo.LogBlockSize / SD_DEFAULT_BLOCK_SIZE; - 800eec0: 6a7b ldr r3, [r7, #36] ; 0x24 - 800eec2: 0a5a lsrs r2, r3, #9 - 800eec4: 683b ldr r3, [r7, #0] - 800eec6: 601a str r2, [r3, #0] - res = RES_OK; - 800eec8: 2300 movs r3, #0 - 800eeca: f887 302f strb.w r3, [r7, #47] ; 0x2f - break; - 800eece: e002 b.n 800eed6 - - default: - res = RES_PARERR; - 800eed0: 2304 movs r3, #4 - 800eed2: f887 302f strb.w r3, [r7, #47] ; 0x2f - } - - return res; - 800eed6: f897 302f ldrb.w r3, [r7, #47] ; 0x2f -} - 800eeda: 4618 mov r0, r3 - 800eedc: 3730 adds r7, #48 ; 0x30 - 800eede: 46bd mov sp, r7 - 800eee0: bd80 pop {r7, pc} - 800eee2: bf00 nop - 800eee4: 24000021 .word 0x24000021 - -0800eee8 : - * @brief Tx Transfer completed callbacks - * @param hsd: SD handle - * @retval None - */ -void BSP_SD_WriteCpltCallback(void) -{ - 800eee8: b580 push {r7, lr} - 800eeea: af00 add r7, sp, #0 - /* - * No need to add an "osKernelRunning()" check here, as the SD_initialize() - * is always called before any SD_Read()/SD_Write() call - */ -#if (osCMSIS < 0x20000U) - osMessagePut(SDQueueID, WRITE_CPLT_MSG, 0); - 800eeec: 4b04 ldr r3, [pc, #16] ; (800ef00 ) - 800eeee: 681b ldr r3, [r3, #0] - 800eef0: 2200 movs r2, #0 - 800eef2: 2102 movs r1, #2 - 800eef4: 4618 mov r0, r3 - 800eef6: f001 fbe5 bl 80106c4 -#else - const uint16_t msg = WRITE_CPLT_MSG; - osMessageQueuePut(SDQueueID, (const void *)&msg, 0, 0); -#endif -} - 800eefa: bf00 nop - 800eefc: bd80 pop {r7, pc} - 800eefe: bf00 nop - 800ef00: 240073e0 .word 0x240073e0 - -0800ef04 : - * @brief Rx Transfer completed callbacks - * @param hsd: SD handle - * @retval None - */ -void BSP_SD_ReadCpltCallback(void) -{ - 800ef04: b580 push {r7, lr} - 800ef06: af00 add r7, sp, #0 - /* - * No need to add an "osKernelRunning()" check here, as the SD_initialize() - * is always called before any SD_Read()/SD_Write() call - */ -#if (osCMSIS < 0x20000U) - osMessagePut(SDQueueID, READ_CPLT_MSG, 0); - 800ef08: 4b04 ldr r3, [pc, #16] ; (800ef1c ) - 800ef0a: 681b ldr r3, [r3, #0] - 800ef0c: 2200 movs r2, #0 - 800ef0e: 2101 movs r1, #1 - 800ef10: 4618 mov r0, r3 - 800ef12: f001 fbd7 bl 80106c4 -#else - const uint16_t msg = READ_CPLT_MSG; - osMessageQueuePut(SDQueueID, (const void *)&msg, 0, 0); -#endif -} - 800ef16: bf00 nop - 800ef18: bd80 pop {r7, pc} - 800ef1a: bf00 nop - 800ef1c: 240073e0 .word 0x240073e0 - -0800ef20 : - -#include "lwftpc.h" - - -/** send the data to the connected connection */ -err_t lwftp_send(struct netconn *conn, const char *data) { - 800ef20: b580 push {r7, lr} - 800ef22: b086 sub sp, #24 - 800ef24: af02 add r7, sp, #8 - 800ef26: 6078 str r0, [r7, #4] - 800ef28: 6039 str r1, [r7, #0] - err_t err = 0; - 800ef2a: 2300 movs r3, #0 - 800ef2c: 73fb strb r3, [r7, #15] - if (strcmp(data, "\r\n") == 0) - 800ef2e: 4911 ldr r1, [pc, #68] ; (800ef74 ) - 800ef30: 6838 ldr r0, [r7, #0] - 800ef32: f7f1 f9ed bl 8000310 - 800ef36: 4603 mov r3, r0 - 800ef38: 2b00 cmp r3, #0 - 800ef3a: d103 bne.n 800ef44 - printf(">> lwftp: ----> send \r\n"); - 800ef3c: 480e ldr r0, [pc, #56] ; (800ef78 ) - 800ef3e: f012 fd91 bl 8021a64 - 800ef42: e003 b.n 800ef4c - else - printf(">> lwftp: ----> send %s", data); - 800ef44: 6839 ldr r1, [r7, #0] - 800ef46: 480d ldr r0, [pc, #52] ; (800ef7c ) - 800ef48: f012 fd1e bl 8021988 - err = netconn_write(conn, data, strlen(data), NETCONN_COPY); - 800ef4c: 6838 ldr r0, [r7, #0] - 800ef4e: f7f1 f9e9 bl 8000324 - 800ef52: 4602 mov r2, r0 - 800ef54: 2300 movs r3, #0 - 800ef56: 9300 str r3, [sp, #0] - 800ef58: 2301 movs r3, #1 - 800ef5a: 6839 ldr r1, [r7, #0] - 800ef5c: 6878 ldr r0, [r7, #4] - 800ef5e: f005 f89d bl 801409c - 800ef62: 4603 mov r3, r0 - 800ef64: 73fb strb r3, [r7, #15] -#if FTPSemaphore - // relaese the semaphore - sys_sem_signal(&ftpsem); -#endif - return err; - 800ef66: f997 300f ldrsb.w r3, [r7, #15] -} - 800ef6a: 4618 mov r0, r3 - 800ef6c: 3710 adds r7, #16 - 800ef6e: 46bd mov sp, r7 - 800ef70: bd80 pop {r7, pc} - 800ef72: bf00 nop - 800ef74: 08022e94 .word 0x08022e94 - 800ef78: 08022e98 .word 0x08022e98 - 800ef7c: 08022eb8 .word 0x08022eb8 - -0800ef80 : - - -err_t lwftp_data_open(lwftp_session_t *s, const char *response) { - 800ef80: b580 push {r7, lr} - 800ef82: b08a sub sp, #40 ; 0x28 - 800ef84: af00 add r7, sp, #0 - 800ef86: 6078 str r0, [r7, #4] - 800ef88: 6039 str r1, [r7, #0] - err_t err = ERR_VAL; - 800ef8a: 23fa movs r3, #250 ; 0xfa - 800ef8c: f887 3027 strb.w r3, [r7, #39] ; 0x27 - char *ptr; - ip_addr_t addr_d; - - ptr = strchr(response, '('); - 800ef90: 2128 movs r1, #40 ; 0x28 - 800ef92: 6838 ldr r0, [r7, #0] - 800ef94: f012 feac bl 8021cf0 - 800ef98: 4603 mov r3, r0 - 800ef9a: 613b str r3, [r7, #16] - if (ptr) { - 800ef9c: 693b ldr r3, [r7, #16] - 800ef9e: 2b00 cmp r3, #0 - 800efa0: f000 80ae beq.w 800f100 - unsigned int a = strtoul(ptr + 1, &ptr, 10); - 800efa4: 693b ldr r3, [r7, #16] - 800efa6: 3301 adds r3, #1 - 800efa8: f107 0110 add.w r1, r7, #16 - 800efac: 220a movs r2, #10 - 800efae: 4618 mov r0, r3 - 800efb0: f012 fc1e bl 80217f0 - 800efb4: 6238 str r0, [r7, #32] - unsigned int b = strtoul(ptr + 1, &ptr, 10); - 800efb6: 693b ldr r3, [r7, #16] - 800efb8: 3301 adds r3, #1 - 800efba: f107 0110 add.w r1, r7, #16 - 800efbe: 220a movs r2, #10 - 800efc0: 4618 mov r0, r3 - 800efc2: f012 fc15 bl 80217f0 - 800efc6: 61f8 str r0, [r7, #28] - unsigned int c = strtoul(ptr + 1, &ptr, 10); - 800efc8: 693b ldr r3, [r7, #16] - 800efca: 3301 adds r3, #1 - 800efcc: f107 0110 add.w r1, r7, #16 - 800efd0: 220a movs r2, #10 - 800efd2: 4618 mov r0, r3 - 800efd4: f012 fc0c bl 80217f0 - 800efd8: 61b8 str r0, [r7, #24] - unsigned int d = strtoul(ptr + 1, &ptr, 10); - 800efda: 693b ldr r3, [r7, #16] - 800efdc: 3301 adds r3, #1 - 800efde: f107 0110 add.w r1, r7, #16 - 800efe2: 220a movs r2, #10 - 800efe4: 4618 mov r0, r3 - 800efe6: f012 fc03 bl 80217f0 - 800efea: 6178 str r0, [r7, #20] - IP4_ADDR(&addr_d, a, b, c, d); - 800efec: 6a3b ldr r3, [r7, #32] - 800efee: 061a lsls r2, r3, #24 - 800eff0: 69fb ldr r3, [r7, #28] - 800eff2: 041b lsls r3, r3, #16 - 800eff4: f403 037f and.w r3, r3, #16711680 ; 0xff0000 - 800eff8: 431a orrs r2, r3 - 800effa: 69bb ldr r3, [r7, #24] - 800effc: 021b lsls r3, r3, #8 - 800effe: b29b uxth r3, r3 - 800f000: 431a orrs r2, r3 - 800f002: 697b ldr r3, [r7, #20] - 800f004: b2db uxtb r3, r3 - 800f006: 4313 orrs r3, r2 - 800f008: 061a lsls r2, r3, #24 - 800f00a: 6a3b ldr r3, [r7, #32] - 800f00c: 0619 lsls r1, r3, #24 - 800f00e: 69fb ldr r3, [r7, #28] - 800f010: 041b lsls r3, r3, #16 - 800f012: f403 037f and.w r3, r3, #16711680 ; 0xff0000 - 800f016: 4319 orrs r1, r3 - 800f018: 69bb ldr r3, [r7, #24] - 800f01a: 021b lsls r3, r3, #8 - 800f01c: b29b uxth r3, r3 - 800f01e: 4319 orrs r1, r3 - 800f020: 697b ldr r3, [r7, #20] - 800f022: b2db uxtb r3, r3 - 800f024: 430b orrs r3, r1 - 800f026: 021b lsls r3, r3, #8 - 800f028: f403 037f and.w r3, r3, #16711680 ; 0xff0000 - 800f02c: 431a orrs r2, r3 - 800f02e: 6a3b ldr r3, [r7, #32] - 800f030: 0619 lsls r1, r3, #24 - 800f032: 69fb ldr r3, [r7, #28] - 800f034: 041b lsls r3, r3, #16 - 800f036: f403 037f and.w r3, r3, #16711680 ; 0xff0000 - 800f03a: 4319 orrs r1, r3 - 800f03c: 69bb ldr r3, [r7, #24] - 800f03e: 021b lsls r3, r3, #8 - 800f040: b29b uxth r3, r3 - 800f042: 4319 orrs r1, r3 - 800f044: 697b ldr r3, [r7, #20] - 800f046: b2db uxtb r3, r3 - 800f048: 430b orrs r3, r1 - 800f04a: 0a1b lsrs r3, r3, #8 - 800f04c: f403 437f and.w r3, r3, #65280 ; 0xff00 - 800f050: 431a orrs r2, r3 - 800f052: 6a3b ldr r3, [r7, #32] - 800f054: 0619 lsls r1, r3, #24 - 800f056: 69fb ldr r3, [r7, #28] - 800f058: 041b lsls r3, r3, #16 - 800f05a: f403 037f and.w r3, r3, #16711680 ; 0xff0000 - 800f05e: 4319 orrs r1, r3 - 800f060: 69bb ldr r3, [r7, #24] - 800f062: 021b lsls r3, r3, #8 - 800f064: b29b uxth r3, r3 - 800f066: 4319 orrs r1, r3 - 800f068: 697b ldr r3, [r7, #20] - 800f06a: b2db uxtb r3, r3 - 800f06c: 430b orrs r3, r1 - 800f06e: 0e1b lsrs r3, r3, #24 - 800f070: 4313 orrs r3, r2 - 800f072: 60fb str r3, [r7, #12] - - s->data_port = strtoul(ptr + 1, &ptr, 10) << 8; - 800f074: 693b ldr r3, [r7, #16] - 800f076: 3301 adds r3, #1 - 800f078: f107 0110 add.w r1, r7, #16 - 800f07c: 220a movs r2, #10 - 800f07e: 4618 mov r0, r3 - 800f080: f012 fbb6 bl 80217f0 - 800f084: 4603 mov r3, r0 - 800f086: b29b uxth r3, r3 - 800f088: 021b lsls r3, r3, #8 - 800f08a: b29a uxth r2, r3 - 800f08c: 687b ldr r3, [r7, #4] - 800f08e: 815a strh r2, [r3, #10] - s->data_port |= strtoul(ptr + 1, &ptr, 10) & 255; - 800f090: 693b ldr r3, [r7, #16] - 800f092: 3301 adds r3, #1 - 800f094: f107 0110 add.w r1, r7, #16 - 800f098: 220a movs r2, #10 - 800f09a: 4618 mov r0, r3 - 800f09c: f012 fba8 bl 80217f0 - 800f0a0: 4603 mov r3, r0 - 800f0a2: b2d9 uxtb r1, r3 - 800f0a4: 687b ldr r3, [r7, #4] - 800f0a6: 895a ldrh r2, [r3, #10] - 800f0a8: b28b uxth r3, r1 - 800f0aa: 4313 orrs r3, r2 - 800f0ac: b29a uxth r2, r3 - 800f0ae: 687b ldr r3, [r7, #4] - 800f0b0: 815a strh r2, [r3, #10] - printf(">> lwftp: server data port: '%d'\r\n", s->data_port); - 800f0b2: 687b ldr r3, [r7, #4] - 800f0b4: 895b ldrh r3, [r3, #10] - 800f0b6: 4619 mov r1, r3 - 800f0b8: 4816 ldr r0, [pc, #88] ; (800f114 ) - 800f0ba: f012 fc65 bl 8021988 - - if (*ptr == ')') { - 800f0be: 693b ldr r3, [r7, #16] - 800f0c0: 781b ldrb r3, [r3, #0] - 800f0c2: 2b29 cmp r3, #41 ; 0x29 - 800f0c4: d11f bne.n 800f106 - s->data_conn = netconn_new(NETCONN_TCP); - 800f0c6: 2200 movs r2, #0 - 800f0c8: 2100 movs r1, #0 - 800f0ca: 2010 movs r0, #16 - 800f0cc: f004 fcc6 bl 8013a5c - 800f0d0: 4602 mov r2, r0 - 800f0d2: 687b ldr r3, [r7, #4] - 800f0d4: 61da str r2, [r3, #28] - if (s->data_conn != NULL) { - 800f0d6: 687b ldr r3, [r7, #4] - 800f0d8: 69db ldr r3, [r3, #28] - 800f0da: 2b00 cmp r3, #0 - 800f0dc: d00c beq.n 800f0f8 - err = netconn_connect(s->data_conn, &addr_d, s->data_port); - 800f0de: 687b ldr r3, [r7, #4] - 800f0e0: 69d8 ldr r0, [r3, #28] - 800f0e2: 687b ldr r3, [r7, #4] - 800f0e4: 895a ldrh r2, [r3, #10] - 800f0e6: f107 030c add.w r3, r7, #12 - 800f0ea: 4619 mov r1, r3 - 800f0ec: f004 fda8 bl 8013c40 - 800f0f0: 4603 mov r3, r0 - 800f0f2: f887 3027 strb.w r3, [r7, #39] ; 0x27 - 800f0f6: e006 b.n 800f106 - } else { - err = ERR_MEM; - 800f0f8: 23ff movs r3, #255 ; 0xff - 800f0fa: f887 3027 strb.w r3, [r7, #39] ; 0x27 - 800f0fe: e002 b.n 800f106 - } - } - } else { - err = ERR_BUF; - 800f100: 23fe movs r3, #254 ; 0xfe - 800f102: f887 3027 strb.w r3, [r7, #39] ; 0x27 - } - return err; - 800f106: f997 3027 ldrsb.w r3, [r7, #39] ; 0x27 -} - 800f10a: 4618 mov r0, r3 - 800f10c: 3728 adds r7, #40 ; 0x28 - 800f10e: 46bd mov sp, r7 - 800f110: bd80 pop {r7, pc} - 800f112: bf00 nop - 800f114: 08022ed0 .word 0x08022ed0 - -0800f118 : - return err; -} - - -/* Get data from Server*/ -err_t lwftp_retrieve(lwftp_session_t *s, const char *filename) { - 800f118: b580 push {r7, lr} - 800f11a: b0c4 sub sp, #272 ; 0x110 - 800f11c: af00 add r7, sp, #0 - 800f11e: f507 7388 add.w r3, r7, #272 ; 0x110 - 800f122: f5a3 7386 sub.w r3, r3, #268 ; 0x10c - 800f126: 6018 str r0, [r3, #0] - 800f128: f507 7388 add.w r3, r7, #272 ; 0x110 - 800f12c: f5a3 7388 sub.w r3, r3, #272 ; 0x110 - 800f130: 6019 str r1, [r3, #0] - char cmd[256]; - err_t err; - - snprintf(cmd, sizeof(cmd), "RETR %s\r\n", filename); - 800f132: f507 7388 add.w r3, r7, #272 ; 0x110 - 800f136: f5a3 7388 sub.w r3, r3, #272 ; 0x110 - 800f13a: f107 000c add.w r0, r7, #12 - 800f13e: 681b ldr r3, [r3, #0] - 800f140: 4a14 ldr r2, [pc, #80] ; (800f194 ) - 800f142: f44f 7180 mov.w r1, #256 ; 0x100 - 800f146: f012 fc95 bl 8021a74 - err = lwftp_send(s->conn, cmd); - 800f14a: f507 7388 add.w r3, r7, #272 ; 0x110 - 800f14e: f5a3 7386 sub.w r3, r3, #268 ; 0x10c - 800f152: 681b ldr r3, [r3, #0] - 800f154: 699b ldr r3, [r3, #24] - 800f156: f107 020c add.w r2, r7, #12 - 800f15a: 4611 mov r1, r2 - 800f15c: 4618 mov r0, r3 - 800f15e: f7ff fedf bl 800ef20 - 800f162: 4603 mov r3, r0 - 800f164: f887 310f strb.w r3, [r7, #271] ; 0x10f - if (err == ERR_OK) { - 800f168: f997 310f ldrsb.w r3, [r7, #271] ; 0x10f - 800f16c: 2b00 cmp r3, #0 - 800f16e: d103 bne.n 800f178 - printf(">> lwftp: command sent successfully\r\n"); - 800f170: 4809 ldr r0, [pc, #36] ; (800f198 ) - 800f172: f012 fc77 bl 8021a64 - 800f176: e005 b.n 800f184 - } else { - printf(">> lwftp: send command failed with code %d\r\n", err); - 800f178: f997 310f ldrsb.w r3, [r7, #271] ; 0x10f - 800f17c: 4619 mov r1, r3 - 800f17e: 4807 ldr r0, [pc, #28] ; (800f19c ) - 800f180: f012 fc02 bl 8021988 - } - return err; - 800f184: f997 310f ldrsb.w r3, [r7, #271] ; 0x10f -} - 800f188: 4618 mov r0, r3 - 800f18a: f507 7788 add.w r7, r7, #272 ; 0x110 - 800f18e: 46bd mov sp, r7 - 800f190: bd80 pop {r7, pc} - 800f192: bf00 nop - 800f194: 08022f80 .word 0x08022f80 - 800f198: 08022f8c .word 0x08022f8c - 800f19c: 08022f50 .word 0x08022f50 - -0800f1a0 : - return err; -} - - - -void onDataReceived(void *data, size_t size) { - 800f1a0: b580 push {r7, lr} - 800f1a2: b082 sub sp, #8 - 800f1a4: af00 add r7, sp, #0 - 800f1a6: 6078 str r0, [r7, #4] - 800f1a8: 6039 str r1, [r7, #0] - osDelay(1000); - 800f1aa: f44f 707a mov.w r0, #1000 ; 0x3e8 - 800f1ae: f001 f8e7 bl 8010380 - printf("%s\r\n", (char*) data); - 800f1b2: 6879 ldr r1, [r7, #4] - 800f1b4: 4803 ldr r0, [pc, #12] ; (800f1c4 ) - 800f1b6: f012 fbe7 bl 8021988 -} - 800f1ba: bf00 nop - 800f1bc: 3708 adds r7, #8 - 800f1be: 46bd mov sp, r7 - 800f1c0: bd80 pop {r7, pc} - 800f1c2: bf00 nop - 800f1c4: 08022fbc .word 0x08022fbc - -0800f1c8 : -// } -// } -// } -//} - -void lwftp_data_thread(void *arg) { - 800f1c8: b580 push {r7, lr} - 800f1ca: b086 sub sp, #24 - 800f1cc: af00 add r7, sp, #0 - 800f1ce: 6078 str r0, [r7, #4] - lwftp_session_t *s = (lwftp_session_t*) arg; - 800f1d0: 687b ldr r3, [r7, #4] - 800f1d2: 617b str r3, [r7, #20] - static struct netbuf *d_buf; - - while (1) { - if (s->data_conn != NULL && s->data_state == LWFTP_CONNECTED) { - 800f1d4: 697b ldr r3, [r7, #20] - 800f1d6: 69db ldr r3, [r3, #28] - 800f1d8: 2b00 cmp r3, #0 - 800f1da: d030 beq.n 800f23e - 800f1dc: 697b ldr r3, [r7, #20] - 800f1de: 7d5b ldrb r3, [r3, #21] - 800f1e0: 2b01 cmp r3, #1 - 800f1e2: d12c bne.n 800f23e - err_t err = netconn_recv(s->data_conn, &d_buf); - 800f1e4: 697b ldr r3, [r7, #20] - 800f1e6: 69db ldr r3, [r3, #28] - 800f1e8: 4918 ldr r1, [pc, #96] ; (800f24c ) - 800f1ea: 4618 mov r0, r3 - 800f1ec: f004 fedc bl 8013fa8 - 800f1f0: 4603 mov r3, r0 - 800f1f2: 74fb strb r3, [r7, #19] - if (err == ERR_OK && d_buf != NULL) { - 800f1f4: f997 3013 ldrsb.w r3, [r7, #19] - 800f1f8: 2b00 cmp r3, #0 - 800f1fa: d124 bne.n 800f246 - 800f1fc: 4b13 ldr r3, [pc, #76] ; (800f24c ) - 800f1fe: 681b ldr r3, [r3, #0] - 800f200: 2b00 cmp r3, #0 - 800f202: d020 beq.n 800f246 - void *data; - u16_t len; - do { - netbuf_data(d_buf, &data, &len); - 800f204: 4b11 ldr r3, [pc, #68] ; (800f24c ) - 800f206: 681b ldr r3, [r3, #0] - 800f208: f107 020a add.w r2, r7, #10 - 800f20c: f107 010c add.w r1, r7, #12 - 800f210: 4618 mov r0, r3 - 800f212: f006 fc63 bl 8015adc - onDataReceived(data, len); - 800f216: 68fb ldr r3, [r7, #12] - 800f218: 897a ldrh r2, [r7, #10] - 800f21a: 4611 mov r1, r2 - 800f21c: 4618 mov r0, r3 - 800f21e: f7ff ffbf bl 800f1a0 - } while (netbuf_next(d_buf) >= 0); - 800f222: 4b0a ldr r3, [pc, #40] ; (800f24c ) - 800f224: 681b ldr r3, [r3, #0] - 800f226: 4618 mov r0, r3 - 800f228: f006 fca2 bl 8015b70 - 800f22c: 4603 mov r3, r0 - 800f22e: 2b00 cmp r3, #0 - 800f230: dae8 bge.n 800f204 - netbuf_delete(d_buf); - 800f232: 4b06 ldr r3, [pc, #24] ; (800f24c ) - 800f234: 681b ldr r3, [r3, #0] - 800f236: 4618 mov r0, r3 - 800f238: f006 fc30 bl 8015a9c - if (s->data_conn != NULL && s->data_state == LWFTP_CONNECTED) { - 800f23c: e003 b.n 800f246 - } else { - } - } else { - vTaskDelay(pdMS_TO_TICKS(100)); - 800f23e: 2064 movs r0, #100 ; 0x64 - 800f240: f002 fd96 bl 8011d70 - 800f244: e7c6 b.n 800f1d4 - if (s->data_conn != NULL && s->data_state == LWFTP_CONNECTED) { - 800f246: bf00 nop - 800f248: e7c4 b.n 800f1d4 - 800f24a: bf00 nop - 800f24c: 240073e4 .word 0x240073e4 - -0800f250 : - } - } -} - -void lwftp_ctrl_thread(void *arg) { - 800f250: b580 push {r7, lr} - 800f252: b0c6 sub sp, #280 ; 0x118 - 800f254: af00 add r7, sp, #0 - 800f256: f507 738c add.w r3, r7, #280 ; 0x118 - 800f25a: f5a3 738a sub.w r3, r3, #276 ; 0x114 - 800f25e: 6018 str r0, [r3, #0] - lwftp_session_t *s = (lwftp_session_t*) arg; - 800f260: f507 738c add.w r3, r7, #280 ; 0x118 - 800f264: f5a3 738a sub.w r3, r3, #276 ; 0x114 - 800f268: 681b ldr r3, [r3, #0] - 800f26a: f8c7 3114 str.w r3, [r7, #276] ; 0x114 - - static struct netbuf *buf; - uint response = 0; - 800f26e: 2300 movs r3, #0 - 800f270: f8c7 3110 str.w r3, [r7, #272] ; 0x110 - char cmd[256]; - err_t err; - - // check session data invalid - if ((s->control_state != LWFTP_CLOSED) || s->conn || s->data_conn || !s->user - 800f274: f8d7 3114 ldr.w r3, [r7, #276] ; 0x114 - 800f278: 7d1b ldrb r3, [r3, #20] - 800f27a: 2b00 cmp r3, #0 - 800f27c: d113 bne.n 800f2a6 - 800f27e: f8d7 3114 ldr.w r3, [r7, #276] ; 0x114 - 800f282: 699b ldr r3, [r3, #24] - 800f284: 2b00 cmp r3, #0 - 800f286: d10e bne.n 800f2a6 - 800f288: f8d7 3114 ldr.w r3, [r7, #276] ; 0x114 - 800f28c: 69db ldr r3, [r3, #28] - 800f28e: 2b00 cmp r3, #0 - 800f290: d109 bne.n 800f2a6 - 800f292: f8d7 3114 ldr.w r3, [r7, #276] ; 0x114 - 800f296: 68db ldr r3, [r3, #12] - 800f298: 2b00 cmp r3, #0 - 800f29a: d004 beq.n 800f2a6 - || !s->pass) { - 800f29c: f8d7 3114 ldr.w r3, [r7, #276] ; 0x114 - 800f2a0: 691b ldr r3, [r3, #16] - 800f2a2: 2b00 cmp r3, #0 - 800f2a4: d103 bne.n 800f2ae - printf(">> lwftp: invalid session data\r\n"); - 800f2a6: 4894 ldr r0, [pc, #592] ; (800f4f8 ) - 800f2a8: f012 fbdc bl 8021a64 - 800f2ac: e120 b.n 800f4f0 - return; - } - - s->conn = netconn_new(NETCONN_TCP); - 800f2ae: 2200 movs r2, #0 - 800f2b0: 2100 movs r1, #0 - 800f2b2: 2010 movs r0, #16 - 800f2b4: f004 fbd2 bl 8013a5c - 800f2b8: 4602 mov r2, r0 - 800f2ba: f8d7 3114 ldr.w r3, [r7, #276] ; 0x114 - 800f2be: 619a str r2, [r3, #24] - s->data_conn = netconn_new(NETCONN_TCP); - 800f2c0: 2200 movs r2, #0 - 800f2c2: 2100 movs r1, #0 - 800f2c4: 2010 movs r0, #16 - 800f2c6: f004 fbc9 bl 8013a5c - 800f2ca: 4602 mov r2, r0 - 800f2cc: f8d7 3114 ldr.w r3, [r7, #276] ; 0x114 - 800f2d0: 61da str r2, [r3, #28] - - // create a new connection identifier - if (s->conn != NULL) { - 800f2d2: f8d7 3114 ldr.w r3, [r7, #276] ; 0x114 - 800f2d6: 699b ldr r3, [r3, #24] - 800f2d8: 2b00 cmp r3, #0 - 800f2da: f000 80e8 beq.w 800f4ae - err = netconn_bind(s->conn, &s->cli_ip, 0); - 800f2de: f8d7 3114 ldr.w r3, [r7, #276] ; 0x114 - 800f2e2: 699b ldr r3, [r3, #24] - 800f2e4: f8d7 1114 ldr.w r1, [r7, #276] ; 0x114 - 800f2e8: 2200 movs r2, #0 - 800f2ea: 4618 mov r0, r3 - 800f2ec: f004 fc70 bl 8013bd0 - 800f2f0: 4603 mov r3, r0 - 800f2f2: f887 310f strb.w r3, [r7, #271] ; 0x10f - - if (err == ERR_OK) { - 800f2f6: f997 310f ldrsb.w r3, [r7, #271] ; 0x10f - 800f2fa: 2b00 cmp r3, #0 - 800f2fc: f040 80d0 bne.w 800f4a0 - printf(">> lwftp: client IP bind OK\r\n"); - 800f300: 487e ldr r0, [pc, #504] ; (800f4fc ) - 800f302: f012 fbaf bl 8021a64 - err = netconn_connect(s->conn, &s->svr_ip, s->svr_port); - 800f306: f8d7 3114 ldr.w r3, [r7, #276] ; 0x114 - 800f30a: 6998 ldr r0, [r3, #24] - 800f30c: f8d7 3114 ldr.w r3, [r7, #276] ; 0x114 - 800f310: 1d19 adds r1, r3, #4 - 800f312: f8d7 3114 ldr.w r3, [r7, #276] ; 0x114 - 800f316: 891b ldrh r3, [r3, #8] - 800f318: 461a mov r2, r3 - 800f31a: f004 fc91 bl 8013c40 - 800f31e: 4603 mov r3, r0 - 800f320: f887 310f strb.w r3, [r7, #271] ; 0x10f - - // If the connection to the server is established, the following will continue, else delete the connection - if (err == ERR_OK) { - 800f324: f997 310f ldrsb.w r3, [r7, #271] ; 0x10f - 800f328: 2b00 cmp r3, #0 - 800f32a: f040 80b2 bne.w 800f492 - printf(">> lwftp: server connect OK\r\n"); - 800f32e: 4874 ldr r0, [pc, #464] ; (800f500 ) - 800f330: f012 fb98 bl 8021a64 - * Response processing - * ===================== - */ - while (1) { - /* wait until the data is sent by the server*/ - if (netconn_recv(s->conn, &buf) == ERR_OK) { - 800f334: f8d7 3114 ldr.w r3, [r7, #276] ; 0x114 - 800f338: 699b ldr r3, [r3, #24] - 800f33a: 4972 ldr r1, [pc, #456] ; (800f504 ) - 800f33c: 4618 mov r0, r3 - 800f33e: f004 fe33 bl 8013fa8 - 800f342: 4603 mov r3, r0 - 800f344: 2b00 cmp r3, #0 - 800f346: f040 808e bne.w 800f466 - if (buf) { - 800f34a: 4b6e ldr r3, [pc, #440] ; (800f504 ) - 800f34c: 681b ldr r3, [r3, #0] - 800f34e: 2b00 cmp r3, #0 - 800f350: f000 8089 beq.w 800f466 - response = strtoul(buf->p->payload, NULL, 10); - 800f354: 4b6b ldr r3, [pc, #428] ; (800f504 ) - 800f356: 681b ldr r3, [r3, #0] - 800f358: 681b ldr r3, [r3, #0] - 800f35a: 685b ldr r3, [r3, #4] - 800f35c: 220a movs r2, #10 - 800f35e: 2100 movs r1, #0 - 800f360: 4618 mov r0, r3 - 800f362: f012 fa45 bl 80217f0 - 800f366: f8c7 0110 str.w r0, [r7, #272] ; 0x110 - printf("\n>> lwftp: <==== resp '%d'\r\n", response); - 800f36a: f8d7 1110 ldr.w r1, [r7, #272] ; 0x110 - 800f36e: 4866 ldr r0, [pc, #408] ; (800f508 ) - 800f370: f012 fb0a bl 8021988 - - /** [Response 220] Service ready for new user.*/ - if (response == 220) { - 800f374: f8d7 3110 ldr.w r3, [r7, #272] ; 0x110 - 800f378: 2bdc cmp r3, #220 ; 0xdc - 800f37a: d113 bne.n 800f3a4 - snprintf(cmd, sizeof(cmd), "USER %s\r\n", s->user); - 800f37c: f8d7 3114 ldr.w r3, [r7, #276] ; 0x114 - 800f380: 68db ldr r3, [r3, #12] - 800f382: f107 000c add.w r0, r7, #12 - 800f386: 4a61 ldr r2, [pc, #388] ; (800f50c ) - 800f388: f44f 7180 mov.w r1, #256 ; 0x100 - 800f38c: f012 fb72 bl 8021a74 - lwftp_send(s->conn, cmd); - 800f390: f8d7 3114 ldr.w r3, [r7, #276] ; 0x114 - 800f394: 699b ldr r3, [r3, #24] - 800f396: f107 020c add.w r2, r7, #12 - 800f39a: 4611 mov r1, r2 - 800f39c: 4618 mov r0, r3 - 800f39e: f7ff fdbf bl 800ef20 - 800f3a2: e060 b.n 800f466 - } - /** [Response 331] User name okay, need password.*/ - else if (response == 331) { - 800f3a4: f8d7 3110 ldr.w r3, [r7, #272] ; 0x110 - 800f3a8: f240 124b movw r2, #331 ; 0x14b - 800f3ac: 4293 cmp r3, r2 - 800f3ae: d113 bne.n 800f3d8 - snprintf(cmd, sizeof(cmd), "PASS %s\r\n", s->pass); - 800f3b0: f8d7 3114 ldr.w r3, [r7, #276] ; 0x114 - 800f3b4: 691b ldr r3, [r3, #16] - 800f3b6: f107 000c add.w r0, r7, #12 - 800f3ba: 4a55 ldr r2, [pc, #340] ; (800f510 ) - 800f3bc: f44f 7180 mov.w r1, #256 ; 0x100 - 800f3c0: f012 fb58 bl 8021a74 - lwftp_send(s->conn, cmd); - 800f3c4: f8d7 3114 ldr.w r3, [r7, #276] ; 0x114 - 800f3c8: 699b ldr r3, [r3, #24] - 800f3ca: f107 020c add.w r2, r7, #12 - 800f3ce: 4611 mov r1, r2 - 800f3d0: 4618 mov r0, r3 - 800f3d2: f7ff fda5 bl 800ef20 - 800f3d6: e046 b.n 800f466 - } - /** [Response 230] User logged in, proceed.*/ - else if (response == 230) { - 800f3d8: f8d7 3110 ldr.w r3, [r7, #272] ; 0x110 - 800f3dc: 2be6 cmp r3, #230 ; 0xe6 - 800f3de: d10a bne.n 800f3f6 - printf(">> lwftp: now logged in\r\n"); - 800f3e0: 484c ldr r0, [pc, #304] ; (800f514 ) - 800f3e2: f012 fb3f bl 8021a64 - lwftp_send(s->conn, "PASV\r\n"); - 800f3e6: f8d7 3114 ldr.w r3, [r7, #276] ; 0x114 - 800f3ea: 699b ldr r3, [r3, #24] - 800f3ec: 494a ldr r1, [pc, #296] ; (800f518 ) - 800f3ee: 4618 mov r0, r3 - 800f3f0: f7ff fd96 bl 800ef20 - 800f3f4: e037 b.n 800f466 - } - - /** [Response 227] Entering Passive Mode (h1,h2,h3,h4,p1,p2).*/ - else if (response == 227) { - 800f3f6: f8d7 3110 ldr.w r3, [r7, #272] ; 0x110 - 800f3fa: 2be3 cmp r3, #227 ; 0xe3 - 800f3fc: d121 bne.n 800f442 - printf(">> lwftp: entering passive Mode\r\n"); - 800f3fe: 4847 ldr r0, [pc, #284] ; (800f51c ) - 800f400: f012 fb30 bl 8021a64 - err = lwftp_data_open(s, buf->p->payload); - 800f404: 4b3f ldr r3, [pc, #252] ; (800f504 ) - 800f406: 681b ldr r3, [r3, #0] - 800f408: 681b ldr r3, [r3, #0] - 800f40a: 685b ldr r3, [r3, #4] - 800f40c: 4619 mov r1, r3 - 800f40e: f8d7 0114 ldr.w r0, [r7, #276] ; 0x114 - 800f412: f7ff fdb5 bl 800ef80 - 800f416: 4603 mov r3, r0 - 800f418: f887 310f strb.w r3, [r7, #271] ; 0x10f - if (err != ERR_OK) { - 800f41c: f997 310f ldrsb.w r3, [r7, #271] ; 0x10f - 800f420: 2b00 cmp r3, #0 - 800f422: d006 beq.n 800f432 - printf(">> lwftp: data port connection failed with code %d\r\n",err); - 800f424: f997 310f ldrsb.w r3, [r7, #271] ; 0x10f - 800f428: 4619 mov r1, r3 - 800f42a: 483d ldr r0, [pc, #244] ; (800f520 ) - 800f42c: f012 faac bl 8021988 - goto exit; - 800f430: e03e b.n 800f4b0 - } - s->data_state = LWFTP_CONNECTED; - 800f432: f8d7 3114 ldr.w r3, [r7, #276] ; 0x114 - 800f436: 2201 movs r2, #1 - 800f438: 755a strb r2, [r3, #21] - printf(">> lwftp: data port connect OK\r\n"); - 800f43a: 483a ldr r0, [pc, #232] ; (800f524 ) - 800f43c: f012 fb12 bl 8021a64 - 800f440: e011 b.n 800f466 - } - - /** [Response 125] Data connection already open; transfer starting.*/ - else if (response == 125) { - 800f442: f8d7 3110 ldr.w r3, [r7, #272] ; 0x110 - 800f446: 2b7d cmp r3, #125 ; 0x7d - 800f448: d103 bne.n 800f452 - printf(">> lwftp: transfer starting.\r\n"); - 800f44a: 4837 ldr r0, [pc, #220] ; (800f528 ) - 800f44c: f012 fb0a bl 8021a64 - 800f450: e009 b.n 800f466 - } - - /** [Response 226] Closing data connection. Requested file action successful*/ - else if (response == 226) { - 800f452: f8d7 3110 ldr.w r3, [r7, #272] ; 0x110 - 800f456: 2be2 cmp r3, #226 ; 0xe2 - 800f458: d105 bne.n 800f466 - printf(">> lwftp: closing data connection.\r\n"); - 800f45a: 4834 ldr r0, [pc, #208] ; (800f52c ) - 800f45c: f012 fb02 bl 8021a64 - printf(">> lwftp: requested file action successful.\r\n"); - 800f460: 4833 ldr r0, [pc, #204] ; (800f530 ) - 800f462: f012 faff bl 8021a64 - } - } - } - memset(cmd, 0, sizeof(cmd)); - 800f466: f107 030c add.w r3, r7, #12 - 800f46a: f44f 7280 mov.w r2, #256 ; 0x100 - 800f46e: 2100 movs r1, #0 - 800f470: 4618 mov r0, r3 - 800f472: f012 fc35 bl 8021ce0 - if (buf != NULL) { - 800f476: 4b23 ldr r3, [pc, #140] ; (800f504 ) - 800f478: 681b ldr r3, [r3, #0] - 800f47a: 2b00 cmp r3, #0 - 800f47c: f43f af5a beq.w 800f334 - netbuf_delete(buf); - 800f480: 4b20 ldr r3, [pc, #128] ; (800f504 ) - 800f482: 681b ldr r3, [r3, #0] - 800f484: 4618 mov r0, r3 - 800f486: f006 fb09 bl 8015a9c - buf = NULL; - 800f48a: 4b1e ldr r3, [pc, #120] ; (800f504 ) - 800f48c: 2200 movs r2, #0 - 800f48e: 601a str r2, [r3, #0] - if (netconn_recv(s->conn, &buf) == ERR_OK) { - 800f490: e750 b.n 800f334 - } - } - } else { - printf(">> lwftp: server connection failed with code %d\r\n", err); - 800f492: f997 310f ldrsb.w r3, [r7, #271] ; 0x10f - 800f496: 4619 mov r1, r3 - 800f498: 4826 ldr r0, [pc, #152] ; (800f534 ) - 800f49a: f012 fa75 bl 8021988 - goto exit; - 800f49e: e007 b.n 800f4b0 - } - } else { - printf(">> lwftp: client IP binding failed with code %d\r\n", err); - 800f4a0: f997 310f ldrsb.w r3, [r7, #271] ; 0x10f - 800f4a4: 4619 mov r1, r3 - 800f4a6: 4824 ldr r0, [pc, #144] ; (800f538 ) - 800f4a8: f012 fa6e bl 8021988 - goto exit; - 800f4ac: e000 b.n 800f4b0 - } - } - exit: if (s->data_conn) { - 800f4ae: bf00 nop - 800f4b0: f8d7 3114 ldr.w r3, [r7, #276] ; 0x114 - 800f4b4: 69db ldr r3, [r3, #28] - 800f4b6: 2b00 cmp r3, #0 - 800f4b8: d00b beq.n 800f4d2 - netconn_close(s->data_conn); - 800f4ba: f8d7 3114 ldr.w r3, [r7, #276] ; 0x114 - 800f4be: 69db ldr r3, [r3, #28] - 800f4c0: 4618 mov r0, r3 - 800f4c2: f004 feed bl 80142a0 - netconn_delete(s->data_conn); - 800f4c6: f8d7 3114 ldr.w r3, [r7, #276] ; 0x114 - 800f4ca: 69db ldr r3, [r3, #28] - 800f4cc: 4618 mov r0, r3 - 800f4ce: f004 fb63 bl 8013b98 - } - netconn_close(s->conn); - 800f4d2: f8d7 3114 ldr.w r3, [r7, #276] ; 0x114 - 800f4d6: 699b ldr r3, [r3, #24] - 800f4d8: 4618 mov r0, r3 - 800f4da: f004 fee1 bl 80142a0 - netconn_delete(s->conn); - 800f4de: f8d7 3114 ldr.w r3, [r7, #276] ; 0x114 - 800f4e2: 699b ldr r3, [r3, #24] - 800f4e4: 4618 mov r0, r3 - 800f4e6: f004 fb57 bl 8013b98 - printf(">> lwftp: all ftp connection closed\r\n"); - 800f4ea: 4814 ldr r0, [pc, #80] ; (800f53c ) - 800f4ec: f012 faba bl 8021a64 -} - 800f4f0: f507 778c add.w r7, r7, #280 ; 0x118 - 800f4f4: 46bd mov sp, r7 - 800f4f6: bd80 pop {r7, pc} - 800f4f8: 08022fc4 .word 0x08022fc4 - 800f4fc: 08022fe4 .word 0x08022fe4 - 800f500: 08023004 .word 0x08023004 - 800f504: 240073e8 .word 0x240073e8 - 800f508: 08023024 .word 0x08023024 - 800f50c: 08023044 .word 0x08023044 - 800f510: 08023050 .word 0x08023050 - 800f514: 0802305c .word 0x0802305c - 800f518: 08023078 .word 0x08023078 - 800f51c: 08023080 .word 0x08023080 - 800f520: 080230a4 .word 0x080230a4 - 800f524: 080230dc .word 0x080230dc - 800f528: 080230fc .word 0x080230fc - 800f52c: 0802311c .word 0x0802311c - 800f530: 08023140 .word 0x08023140 - 800f534: 08023170 .word 0x08023170 - 800f538: 080231a4 .word 0x080231a4 - 800f53c: 080231d8 .word 0x080231d8 - -0800f540 : - -/** - * LwIP initialization function - */ -void MX_LWIP_Init(void) -{ - 800f540: b5b0 push {r4, r5, r7, lr} - 800f542: b08c sub sp, #48 ; 0x30 - 800f544: af04 add r7, sp, #16 - /* IP addresses initialization */ - IP_ADDRESS[0] = 192; - 800f546: 4b8f ldr r3, [pc, #572] ; (800f784 ) - 800f548: 22c0 movs r2, #192 ; 0xc0 - 800f54a: 701a strb r2, [r3, #0] - IP_ADDRESS[1] = 168; - 800f54c: 4b8d ldr r3, [pc, #564] ; (800f784 ) - 800f54e: 22a8 movs r2, #168 ; 0xa8 - 800f550: 705a strb r2, [r3, #1] - IP_ADDRESS[2] = 0; - 800f552: 4b8c ldr r3, [pc, #560] ; (800f784 ) - 800f554: 2200 movs r2, #0 - 800f556: 709a strb r2, [r3, #2] - IP_ADDRESS[3] = 120; - 800f558: 4b8a ldr r3, [pc, #552] ; (800f784 ) - 800f55a: 2278 movs r2, #120 ; 0x78 - 800f55c: 70da strb r2, [r3, #3] - NETMASK_ADDRESS[0] = 255; - 800f55e: 4b8a ldr r3, [pc, #552] ; (800f788 ) - 800f560: 22ff movs r2, #255 ; 0xff - 800f562: 701a strb r2, [r3, #0] - NETMASK_ADDRESS[1] = 255; - 800f564: 4b88 ldr r3, [pc, #544] ; (800f788 ) - 800f566: 22ff movs r2, #255 ; 0xff - 800f568: 705a strb r2, [r3, #1] - NETMASK_ADDRESS[2] = 255; - 800f56a: 4b87 ldr r3, [pc, #540] ; (800f788 ) - 800f56c: 22ff movs r2, #255 ; 0xff - 800f56e: 709a strb r2, [r3, #2] - NETMASK_ADDRESS[3] = 0; - 800f570: 4b85 ldr r3, [pc, #532] ; (800f788 ) - 800f572: 2200 movs r2, #0 - 800f574: 70da strb r2, [r3, #3] - GATEWAY_ADDRESS[0] = 0; - 800f576: 4b85 ldr r3, [pc, #532] ; (800f78c ) - 800f578: 2200 movs r2, #0 - 800f57a: 701a strb r2, [r3, #0] - GATEWAY_ADDRESS[1] = 0; - 800f57c: 4b83 ldr r3, [pc, #524] ; (800f78c ) - 800f57e: 2200 movs r2, #0 - 800f580: 705a strb r2, [r3, #1] - GATEWAY_ADDRESS[2] = 0; - 800f582: 4b82 ldr r3, [pc, #520] ; (800f78c ) - 800f584: 2200 movs r2, #0 - 800f586: 709a strb r2, [r3, #2] - GATEWAY_ADDRESS[3] = 0; - 800f588: 4b80 ldr r3, [pc, #512] ; (800f78c ) - 800f58a: 2200 movs r2, #0 - 800f58c: 70da strb r2, [r3, #3] -/* USER CODE BEGIN IP_ADDRESSES */ - -/* USER CODE END IP_ADDRESSES */ - - /* Initilialize the LwIP stack with RTOS */ - tcpip_init( NULL, NULL ); - 800f58e: 2100 movs r1, #0 - 800f590: 2000 movs r0, #0 - 800f592: f006 fc8b bl 8015eac - - /* IP addresses initialization without DHCP (IPv4) */ - IP4_ADDR(&ipaddr, IP_ADDRESS[0], IP_ADDRESS[1], IP_ADDRESS[2], IP_ADDRESS[3]); - 800f596: 4b7b ldr r3, [pc, #492] ; (800f784 ) - 800f598: 781b ldrb r3, [r3, #0] - 800f59a: 061a lsls r2, r3, #24 - 800f59c: 4b79 ldr r3, [pc, #484] ; (800f784 ) - 800f59e: 785b ldrb r3, [r3, #1] - 800f5a0: 041b lsls r3, r3, #16 - 800f5a2: 431a orrs r2, r3 - 800f5a4: 4b77 ldr r3, [pc, #476] ; (800f784 ) - 800f5a6: 789b ldrb r3, [r3, #2] - 800f5a8: 021b lsls r3, r3, #8 - 800f5aa: 4313 orrs r3, r2 - 800f5ac: 4a75 ldr r2, [pc, #468] ; (800f784 ) - 800f5ae: 78d2 ldrb r2, [r2, #3] - 800f5b0: 4313 orrs r3, r2 - 800f5b2: 061a lsls r2, r3, #24 - 800f5b4: 4b73 ldr r3, [pc, #460] ; (800f784 ) - 800f5b6: 781b ldrb r3, [r3, #0] - 800f5b8: 0619 lsls r1, r3, #24 - 800f5ba: 4b72 ldr r3, [pc, #456] ; (800f784 ) - 800f5bc: 785b ldrb r3, [r3, #1] - 800f5be: 041b lsls r3, r3, #16 - 800f5c0: 4319 orrs r1, r3 - 800f5c2: 4b70 ldr r3, [pc, #448] ; (800f784 ) - 800f5c4: 789b ldrb r3, [r3, #2] - 800f5c6: 021b lsls r3, r3, #8 - 800f5c8: 430b orrs r3, r1 - 800f5ca: 496e ldr r1, [pc, #440] ; (800f784 ) - 800f5cc: 78c9 ldrb r1, [r1, #3] - 800f5ce: 430b orrs r3, r1 - 800f5d0: 021b lsls r3, r3, #8 - 800f5d2: f403 037f and.w r3, r3, #16711680 ; 0xff0000 - 800f5d6: 431a orrs r2, r3 - 800f5d8: 4b6a ldr r3, [pc, #424] ; (800f784 ) - 800f5da: 781b ldrb r3, [r3, #0] - 800f5dc: 0619 lsls r1, r3, #24 - 800f5de: 4b69 ldr r3, [pc, #420] ; (800f784 ) - 800f5e0: 785b ldrb r3, [r3, #1] - 800f5e2: 041b lsls r3, r3, #16 - 800f5e4: 4319 orrs r1, r3 - 800f5e6: 4b67 ldr r3, [pc, #412] ; (800f784 ) - 800f5e8: 789b ldrb r3, [r3, #2] - 800f5ea: 021b lsls r3, r3, #8 - 800f5ec: 430b orrs r3, r1 - 800f5ee: 4965 ldr r1, [pc, #404] ; (800f784 ) - 800f5f0: 78c9 ldrb r1, [r1, #3] - 800f5f2: 430b orrs r3, r1 - 800f5f4: 0a1b lsrs r3, r3, #8 - 800f5f6: f403 437f and.w r3, r3, #65280 ; 0xff00 - 800f5fa: 431a orrs r2, r3 - 800f5fc: 4b61 ldr r3, [pc, #388] ; (800f784 ) - 800f5fe: 781b ldrb r3, [r3, #0] - 800f600: 0619 lsls r1, r3, #24 - 800f602: 4b60 ldr r3, [pc, #384] ; (800f784 ) - 800f604: 785b ldrb r3, [r3, #1] - 800f606: 041b lsls r3, r3, #16 - 800f608: 4319 orrs r1, r3 - 800f60a: 4b5e ldr r3, [pc, #376] ; (800f784 ) - 800f60c: 789b ldrb r3, [r3, #2] - 800f60e: 021b lsls r3, r3, #8 - 800f610: 430b orrs r3, r1 - 800f612: 495c ldr r1, [pc, #368] ; (800f784 ) - 800f614: 78c9 ldrb r1, [r1, #3] - 800f616: 430b orrs r3, r1 - 800f618: 0e1b lsrs r3, r3, #24 - 800f61a: 4313 orrs r3, r2 - 800f61c: 4a5c ldr r2, [pc, #368] ; (800f790 ) - 800f61e: 6013 str r3, [r2, #0] - IP4_ADDR(&netmask, NETMASK_ADDRESS[0], NETMASK_ADDRESS[1] , NETMASK_ADDRESS[2], NETMASK_ADDRESS[3]); - 800f620: 4b59 ldr r3, [pc, #356] ; (800f788 ) - 800f622: 781b ldrb r3, [r3, #0] - 800f624: 061a lsls r2, r3, #24 - 800f626: 4b58 ldr r3, [pc, #352] ; (800f788 ) - 800f628: 785b ldrb r3, [r3, #1] - 800f62a: 041b lsls r3, r3, #16 - 800f62c: 431a orrs r2, r3 - 800f62e: 4b56 ldr r3, [pc, #344] ; (800f788 ) - 800f630: 789b ldrb r3, [r3, #2] - 800f632: 021b lsls r3, r3, #8 - 800f634: 4313 orrs r3, r2 - 800f636: 4a54 ldr r2, [pc, #336] ; (800f788 ) - 800f638: 78d2 ldrb r2, [r2, #3] - 800f63a: 4313 orrs r3, r2 - 800f63c: 061a lsls r2, r3, #24 - 800f63e: 4b52 ldr r3, [pc, #328] ; (800f788 ) - 800f640: 781b ldrb r3, [r3, #0] - 800f642: 0619 lsls r1, r3, #24 - 800f644: 4b50 ldr r3, [pc, #320] ; (800f788 ) - 800f646: 785b ldrb r3, [r3, #1] - 800f648: 041b lsls r3, r3, #16 - 800f64a: 4319 orrs r1, r3 - 800f64c: 4b4e ldr r3, [pc, #312] ; (800f788 ) - 800f64e: 789b ldrb r3, [r3, #2] - 800f650: 021b lsls r3, r3, #8 - 800f652: 430b orrs r3, r1 - 800f654: 494c ldr r1, [pc, #304] ; (800f788 ) - 800f656: 78c9 ldrb r1, [r1, #3] - 800f658: 430b orrs r3, r1 - 800f65a: 021b lsls r3, r3, #8 - 800f65c: f403 037f and.w r3, r3, #16711680 ; 0xff0000 - 800f660: 431a orrs r2, r3 - 800f662: 4b49 ldr r3, [pc, #292] ; (800f788 ) - 800f664: 781b ldrb r3, [r3, #0] - 800f666: 0619 lsls r1, r3, #24 - 800f668: 4b47 ldr r3, [pc, #284] ; (800f788 ) - 800f66a: 785b ldrb r3, [r3, #1] - 800f66c: 041b lsls r3, r3, #16 - 800f66e: 4319 orrs r1, r3 - 800f670: 4b45 ldr r3, [pc, #276] ; (800f788 ) - 800f672: 789b ldrb r3, [r3, #2] - 800f674: 021b lsls r3, r3, #8 - 800f676: 430b orrs r3, r1 - 800f678: 4943 ldr r1, [pc, #268] ; (800f788 ) - 800f67a: 78c9 ldrb r1, [r1, #3] - 800f67c: 430b orrs r3, r1 - 800f67e: 0a1b lsrs r3, r3, #8 - 800f680: f403 437f and.w r3, r3, #65280 ; 0xff00 - 800f684: 431a orrs r2, r3 - 800f686: 4b40 ldr r3, [pc, #256] ; (800f788 ) - 800f688: 781b ldrb r3, [r3, #0] - 800f68a: 0619 lsls r1, r3, #24 - 800f68c: 4b3e ldr r3, [pc, #248] ; (800f788 ) - 800f68e: 785b ldrb r3, [r3, #1] - 800f690: 041b lsls r3, r3, #16 - 800f692: 4319 orrs r1, r3 - 800f694: 4b3c ldr r3, [pc, #240] ; (800f788 ) - 800f696: 789b ldrb r3, [r3, #2] - 800f698: 021b lsls r3, r3, #8 - 800f69a: 430b orrs r3, r1 - 800f69c: 493a ldr r1, [pc, #232] ; (800f788 ) - 800f69e: 78c9 ldrb r1, [r1, #3] - 800f6a0: 430b orrs r3, r1 - 800f6a2: 0e1b lsrs r3, r3, #24 - 800f6a4: 4313 orrs r3, r2 - 800f6a6: 4a3b ldr r2, [pc, #236] ; (800f794 ) - 800f6a8: 6013 str r3, [r2, #0] - IP4_ADDR(&gw, GATEWAY_ADDRESS[0], GATEWAY_ADDRESS[1], GATEWAY_ADDRESS[2], GATEWAY_ADDRESS[3]); - 800f6aa: 4b38 ldr r3, [pc, #224] ; (800f78c ) - 800f6ac: 781b ldrb r3, [r3, #0] - 800f6ae: 061a lsls r2, r3, #24 - 800f6b0: 4b36 ldr r3, [pc, #216] ; (800f78c ) - 800f6b2: 785b ldrb r3, [r3, #1] - 800f6b4: 041b lsls r3, r3, #16 - 800f6b6: 431a orrs r2, r3 - 800f6b8: 4b34 ldr r3, [pc, #208] ; (800f78c ) - 800f6ba: 789b ldrb r3, [r3, #2] - 800f6bc: 021b lsls r3, r3, #8 - 800f6be: 4313 orrs r3, r2 - 800f6c0: 4a32 ldr r2, [pc, #200] ; (800f78c ) - 800f6c2: 78d2 ldrb r2, [r2, #3] - 800f6c4: 4313 orrs r3, r2 - 800f6c6: 061a lsls r2, r3, #24 - 800f6c8: 4b30 ldr r3, [pc, #192] ; (800f78c ) - 800f6ca: 781b ldrb r3, [r3, #0] - 800f6cc: 0619 lsls r1, r3, #24 - 800f6ce: 4b2f ldr r3, [pc, #188] ; (800f78c ) - 800f6d0: 785b ldrb r3, [r3, #1] - 800f6d2: 041b lsls r3, r3, #16 - 800f6d4: 4319 orrs r1, r3 - 800f6d6: 4b2d ldr r3, [pc, #180] ; (800f78c ) - 800f6d8: 789b ldrb r3, [r3, #2] - 800f6da: 021b lsls r3, r3, #8 - 800f6dc: 430b orrs r3, r1 - 800f6de: 492b ldr r1, [pc, #172] ; (800f78c ) - 800f6e0: 78c9 ldrb r1, [r1, #3] - 800f6e2: 430b orrs r3, r1 - 800f6e4: 021b lsls r3, r3, #8 - 800f6e6: f403 037f and.w r3, r3, #16711680 ; 0xff0000 - 800f6ea: 431a orrs r2, r3 - 800f6ec: 4b27 ldr r3, [pc, #156] ; (800f78c ) - 800f6ee: 781b ldrb r3, [r3, #0] - 800f6f0: 0619 lsls r1, r3, #24 - 800f6f2: 4b26 ldr r3, [pc, #152] ; (800f78c ) - 800f6f4: 785b ldrb r3, [r3, #1] - 800f6f6: 041b lsls r3, r3, #16 - 800f6f8: 4319 orrs r1, r3 - 800f6fa: 4b24 ldr r3, [pc, #144] ; (800f78c ) - 800f6fc: 789b ldrb r3, [r3, #2] - 800f6fe: 021b lsls r3, r3, #8 - 800f700: 430b orrs r3, r1 - 800f702: 4922 ldr r1, [pc, #136] ; (800f78c ) - 800f704: 78c9 ldrb r1, [r1, #3] - 800f706: 430b orrs r3, r1 - 800f708: 0a1b lsrs r3, r3, #8 - 800f70a: f403 437f and.w r3, r3, #65280 ; 0xff00 - 800f70e: 431a orrs r2, r3 - 800f710: 4b1e ldr r3, [pc, #120] ; (800f78c ) - 800f712: 781b ldrb r3, [r3, #0] - 800f714: 0619 lsls r1, r3, #24 - 800f716: 4b1d ldr r3, [pc, #116] ; (800f78c ) - 800f718: 785b ldrb r3, [r3, #1] - 800f71a: 041b lsls r3, r3, #16 - 800f71c: 4319 orrs r1, r3 - 800f71e: 4b1b ldr r3, [pc, #108] ; (800f78c ) - 800f720: 789b ldrb r3, [r3, #2] - 800f722: 021b lsls r3, r3, #8 - 800f724: 430b orrs r3, r1 - 800f726: 4919 ldr r1, [pc, #100] ; (800f78c ) - 800f728: 78c9 ldrb r1, [r1, #3] - 800f72a: 430b orrs r3, r1 - 800f72c: 0e1b lsrs r3, r3, #24 - 800f72e: 4313 orrs r3, r2 - 800f730: 4a19 ldr r2, [pc, #100] ; (800f798 ) - 800f732: 6013 str r3, [r2, #0] - - /* add the network interface (IPv4/IPv6) with RTOS */ - netif_add(&gnetif, &ipaddr, &netmask, &gw, NULL, ðernetif_init, &tcpip_input); - 800f734: 4b19 ldr r3, [pc, #100] ; (800f79c ) - 800f736: 9302 str r3, [sp, #8] - 800f738: 4b19 ldr r3, [pc, #100] ; (800f7a0 ) - 800f73a: 9301 str r3, [sp, #4] - 800f73c: 2300 movs r3, #0 - 800f73e: 9300 str r3, [sp, #0] - 800f740: 4b15 ldr r3, [pc, #84] ; (800f798 ) - 800f742: 4a14 ldr r2, [pc, #80] ; (800f794 ) - 800f744: 4912 ldr r1, [pc, #72] ; (800f790 ) - 800f746: 4817 ldr r0, [pc, #92] ; (800f7a4 ) - 800f748: f007 fa6a bl 8016c20 - - /* Registers the default network interface */ - netif_set_default(&gnetif); - 800f74c: 4815 ldr r0, [pc, #84] ; (800f7a4 ) - 800f74e: f007 fcfb bl 8017148 - - /* We must always bring the network interface up connection or not... */ - netif_set_up(&gnetif); - 800f752: 4814 ldr r0, [pc, #80] ; (800f7a4 ) - 800f754: f007 fd1c bl 8017190 - - /* Set the link callback function, this function is called on change of link status*/ - netif_set_link_callback(&gnetif, ethernet_link_status_updated); - 800f758: 4913 ldr r1, [pc, #76] ; (800f7a8 ) - 800f75a: 4812 ldr r0, [pc, #72] ; (800f7a4 ) - 800f75c: f007 fe1a bl 8017394 - - /* Create the Ethernet link handler thread */ -/* USER CODE BEGIN H7_OS_THREAD_DEF_CREATE_CMSIS_RTOS_V1 */ - osThreadDef(EthLink, ethernet_link_thread, osPriorityBelowNormal, 0, configMINIMAL_STACK_SIZE *2); - 800f760: 4b12 ldr r3, [pc, #72] ; (800f7ac ) - 800f762: 1d3c adds r4, r7, #4 - 800f764: 461d mov r5, r3 - 800f766: cd0f ldmia r5!, {r0, r1, r2, r3} - 800f768: c40f stmia r4!, {r0, r1, r2, r3} - 800f76a: e895 0007 ldmia.w r5, {r0, r1, r2} - 800f76e: e884 0007 stmia.w r4, {r0, r1, r2} - osThreadCreate (osThread(EthLink), &gnetif); - 800f772: 1d3b adds r3, r7, #4 - 800f774: 490b ldr r1, [pc, #44] ; (800f7a4 ) - 800f776: 4618 mov r0, r3 - 800f778: f000 fdb6 bl 80102e8 -/* USER CODE END H7_OS_THREAD_DEF_CREATE_CMSIS_RTOS_V1 */ - -/* USER CODE BEGIN 3 */ - -/* USER CODE END 3 */ -} - 800f77c: bf00 nop - 800f77e: 3720 adds r7, #32 - 800f780: 46bd mov sp, r7 - 800f782: bdb0 pop {r4, r5, r7, pc} - 800f784: 2400742c .word 0x2400742c - 800f788: 24007430 .word 0x24007430 - 800f78c: 24007434 .word 0x24007434 - 800f790: 24007420 .word 0x24007420 - 800f794: 24007424 .word 0x24007424 - 800f798: 24007428 .word 0x24007428 - 800f79c: 08015dbd .word 0x08015dbd - 800f7a0: 0800fc85 .word 0x0800fc85 - 800f7a4: 240073ec .word 0x240073ec - 800f7a8: 0800f7b1 .word 0x0800f7b1 - 800f7ac: 08023208 .word 0x08023208 - -0800f7b0 : - * @brief Notify the User about the network interface config status - * @param netif: the network interface - * @retval None - */ -static void ethernet_link_status_updated(struct netif *netif) -{ - 800f7b0: b480 push {r7} - 800f7b2: b083 sub sp, #12 - 800f7b4: af00 add r7, sp, #0 - 800f7b6: 6078 str r0, [r7, #4] - else /* netif is down */ - { -/* USER CODE BEGIN 6 */ -/* USER CODE END 6 */ - } -} - 800f7b8: bf00 nop - 800f7ba: 370c adds r7, #12 - 800f7bc: 46bd mov sp, r7 - 800f7be: f85d 7b04 ldr.w r7, [sp], #4 - 800f7c2: 4770 bx lr - -0800f7c4 : - * @brief Ethernet Rx Transfer completed callback - * @param handlerEth: ETH handler - * @retval None - */ -void HAL_ETH_RxCpltCallback(ETH_HandleTypeDef *handlerEth) -{ - 800f7c4: b580 push {r7, lr} - 800f7c6: b082 sub sp, #8 - 800f7c8: af00 add r7, sp, #0 - 800f7ca: 6078 str r0, [r7, #4] - osSemaphoreRelease(RxPktSemaphore); - 800f7cc: 4b04 ldr r3, [pc, #16] ; (800f7e0 ) - 800f7ce: 681b ldr r3, [r3, #0] - 800f7d0: 4618 mov r0, r3 - 800f7d2: f000 ff05 bl 80105e0 -} - 800f7d6: bf00 nop - 800f7d8: 3708 adds r7, #8 - 800f7da: 46bd mov sp, r7 - 800f7dc: bd80 pop {r7, pc} - 800f7de: bf00 nop - 800f7e0: 2400bdc4 .word 0x2400bdc4 - -0800f7e4 : - * @brief Ethernet Tx Transfer completed callback - * @param handlerEth: ETH handler - * @retval None - */ -void HAL_ETH_TxCpltCallback(ETH_HandleTypeDef *handlerEth) -{ - 800f7e4: b580 push {r7, lr} - 800f7e6: b082 sub sp, #8 - 800f7e8: af00 add r7, sp, #0 - 800f7ea: 6078 str r0, [r7, #4] - osSemaphoreRelease(TxPktSemaphore); - 800f7ec: 4b04 ldr r3, [pc, #16] ; (800f800 ) - 800f7ee: 681b ldr r3, [r3, #0] - 800f7f0: 4618 mov r0, r3 - 800f7f2: f000 fef5 bl 80105e0 -} - 800f7f6: bf00 nop - 800f7f8: 3708 adds r7, #8 - 800f7fa: 46bd mov sp, r7 - 800f7fc: bd80 pop {r7, pc} - 800f7fe: bf00 nop - 800f800: 2400bdc8 .word 0x2400bdc8 - -0800f804 : - * @brief Ethernet DMA transfer error callback - * @param handlerEth: ETH handler - * @retval None - */ -void HAL_ETH_ErrorCallback(ETH_HandleTypeDef *handlerEth) -{ - 800f804: b580 push {r7, lr} - 800f806: b082 sub sp, #8 - 800f808: af00 add r7, sp, #0 - 800f80a: 6078 str r0, [r7, #4] - if((HAL_ETH_GetDMAError(handlerEth) & ETH_DMACSR_RBU) == ETH_DMACSR_RBU) - 800f80c: 6878 ldr r0, [r7, #4] - 800f80e: f7f5 fbe7 bl 8004fe0 - 800f812: 4603 mov r3, r0 - 800f814: f003 0380 and.w r3, r3, #128 ; 0x80 - 800f818: 2b80 cmp r3, #128 ; 0x80 - 800f81a: d104 bne.n 800f826 - { - osSemaphoreRelease(RxPktSemaphore); - 800f81c: 4b04 ldr r3, [pc, #16] ; (800f830 ) - 800f81e: 681b ldr r3, [r3, #0] - 800f820: 4618 mov r0, r3 - 800f822: f000 fedd bl 80105e0 - } -} - 800f826: bf00 nop - 800f828: 3708 adds r7, #8 - 800f82a: 46bd mov sp, r7 - 800f82c: bd80 pop {r7, pc} - 800f82e: bf00 nop - 800f830: 2400bdc4 .word 0x2400bdc4 - -0800f834 : - * - * @param netif the already initialized lwip network interface structure - * for this ethernetif - */ -static void low_level_init(struct netif *netif) -{ - 800f834: b5b0 push {r4, r5, r7, lr} - 800f836: b0ac sub sp, #176 ; 0xb0 - 800f838: af00 add r7, sp, #0 - 800f83a: 6078 str r0, [r7, #4] - HAL_StatusTypeDef hal_eth_init_status = HAL_OK; - 800f83c: 2300 movs r3, #0 - 800f83e: f887 30a7 strb.w r3, [r7, #167] ; 0xa7 - uint32_t duplex, speed = 0; - 800f842: 2300 movs r3, #0 - 800f844: f8c7 30a8 str.w r3, [r7, #168] ; 0xa8 - int32_t PHYLinkState = 0; - 800f848: 2300 movs r3, #0 - 800f84a: f8c7 30a0 str.w r3, [r7, #160] ; 0xa0 - ETH_MACConfigTypeDef MACConf = {0}; - 800f84e: f107 033c add.w r3, r7, #60 ; 0x3c - 800f852: 2264 movs r2, #100 ; 0x64 - 800f854: 2100 movs r1, #0 - 800f856: 4618 mov r0, r3 - 800f858: f012 fa42 bl 8021ce0 - /* Start ETH HAL Init */ - - uint8_t MACAddr[6] ; - heth.Instance = ETH; - 800f85c: 4b8f ldr r3, [pc, #572] ; (800fa9c ) - 800f85e: 4a90 ldr r2, [pc, #576] ; (800faa0 ) - 800f860: 601a str r2, [r3, #0] - MACAddr[0] = 0x00; - 800f862: 2300 movs r3, #0 - 800f864: f887 3034 strb.w r3, [r7, #52] ; 0x34 - MACAddr[1] = 0x80; - 800f868: 2380 movs r3, #128 ; 0x80 - 800f86a: f887 3035 strb.w r3, [r7, #53] ; 0x35 - MACAddr[2] = 0xE1; - 800f86e: 23e1 movs r3, #225 ; 0xe1 - 800f870: f887 3036 strb.w r3, [r7, #54] ; 0x36 - MACAddr[3] = 0x00; - 800f874: 2300 movs r3, #0 - 800f876: f887 3037 strb.w r3, [r7, #55] ; 0x37 - MACAddr[4] = 0x00; - 800f87a: 2300 movs r3, #0 - 800f87c: f887 3038 strb.w r3, [r7, #56] ; 0x38 - MACAddr[5] = 0x00; - 800f880: 2300 movs r3, #0 - 800f882: f887 3039 strb.w r3, [r7, #57] ; 0x39 - heth.Init.MACAddr = &MACAddr[0]; - 800f886: 4a85 ldr r2, [pc, #532] ; (800fa9c ) - 800f888: f107 0334 add.w r3, r7, #52 ; 0x34 - 800f88c: 6053 str r3, [r2, #4] - heth.Init.MediaInterface = HAL_ETH_RMII_MODE; - 800f88e: 4b83 ldr r3, [pc, #524] ; (800fa9c ) - 800f890: 2201 movs r2, #1 - 800f892: 721a strb r2, [r3, #8] - heth.Init.TxDesc = DMATxDscrTab; - 800f894: 4b81 ldr r3, [pc, #516] ; (800fa9c ) - 800f896: 4a83 ldr r2, [pc, #524] ; (800faa4 ) - 800f898: 60da str r2, [r3, #12] - heth.Init.RxDesc = DMARxDscrTab; - 800f89a: 4b80 ldr r3, [pc, #512] ; (800fa9c ) - 800f89c: 4a82 ldr r2, [pc, #520] ; (800faa8 ) - 800f89e: 611a str r2, [r3, #16] - heth.Init.RxBuffLen = 1536; - 800f8a0: 4b7e ldr r3, [pc, #504] ; (800fa9c ) - 800f8a2: f44f 62c0 mov.w r2, #1536 ; 0x600 - 800f8a6: 615a str r2, [r3, #20] - - /* USER CODE BEGIN MACADDRESS */ - - /* USER CODE END MACADDRESS */ - - hal_eth_init_status = HAL_ETH_Init(&heth); - 800f8a8: 487c ldr r0, [pc, #496] ; (800fa9c ) - 800f8aa: f7f4 fbb9 bl 8004020 - 800f8ae: 4603 mov r3, r0 - 800f8b0: f887 30a7 strb.w r3, [r7, #167] ; 0xa7 - - memset(&TxConfig, 0 , sizeof(ETH_TxPacketConfig)); - 800f8b4: 2238 movs r2, #56 ; 0x38 - 800f8b6: 2100 movs r1, #0 - 800f8b8: 487c ldr r0, [pc, #496] ; (800faac ) - 800f8ba: f012 fa11 bl 8021ce0 - TxConfig.Attributes = ETH_TX_PACKETS_FEATURES_CSUM | ETH_TX_PACKETS_FEATURES_CRCPAD; - 800f8be: 4b7b ldr r3, [pc, #492] ; (800faac ) - 800f8c0: 2221 movs r2, #33 ; 0x21 - 800f8c2: 601a str r2, [r3, #0] - TxConfig.ChecksumCtrl = ETH_CHECKSUM_IPHDR_PAYLOAD_INSERT_PHDR_CALC; - 800f8c4: 4b79 ldr r3, [pc, #484] ; (800faac ) - 800f8c6: f44f 3240 mov.w r2, #196608 ; 0x30000 - 800f8ca: 615a str r2, [r3, #20] - TxConfig.CRCPadCtrl = ETH_CRC_PAD_INSERT; - 800f8cc: 4b77 ldr r3, [pc, #476] ; (800faac ) - 800f8ce: 2200 movs r2, #0 - 800f8d0: 611a str r2, [r3, #16] - - /* End ETH HAL Init */ - - /* Initialize the RX POOL */ - LWIP_MEMPOOL_INIT(RX_POOL); - 800f8d2: 4877 ldr r0, [pc, #476] ; (800fab0 ) - 800f8d4: f007 f856 bl 8016984 - -#if LWIP_ARP || LWIP_ETHERNET - - /* set MAC hardware address length */ - netif->hwaddr_len = ETH_HWADDR_LEN; - 800f8d8: 687b ldr r3, [r7, #4] - 800f8da: 2206 movs r2, #6 - 800f8dc: f883 202c strb.w r2, [r3, #44] ; 0x2c - - /* set MAC hardware address */ - netif->hwaddr[0] = heth.Init.MACAddr[0]; - 800f8e0: 4b6e ldr r3, [pc, #440] ; (800fa9c ) - 800f8e2: 685b ldr r3, [r3, #4] - 800f8e4: 781a ldrb r2, [r3, #0] - 800f8e6: 687b ldr r3, [r7, #4] - 800f8e8: f883 2026 strb.w r2, [r3, #38] ; 0x26 - netif->hwaddr[1] = heth.Init.MACAddr[1]; - 800f8ec: 4b6b ldr r3, [pc, #428] ; (800fa9c ) - 800f8ee: 685b ldr r3, [r3, #4] - 800f8f0: 785a ldrb r2, [r3, #1] - 800f8f2: 687b ldr r3, [r7, #4] - 800f8f4: f883 2027 strb.w r2, [r3, #39] ; 0x27 - netif->hwaddr[2] = heth.Init.MACAddr[2]; - 800f8f8: 4b68 ldr r3, [pc, #416] ; (800fa9c ) - 800f8fa: 685b ldr r3, [r3, #4] - 800f8fc: 789a ldrb r2, [r3, #2] - 800f8fe: 687b ldr r3, [r7, #4] - 800f900: f883 2028 strb.w r2, [r3, #40] ; 0x28 - netif->hwaddr[3] = heth.Init.MACAddr[3]; - 800f904: 4b65 ldr r3, [pc, #404] ; (800fa9c ) - 800f906: 685b ldr r3, [r3, #4] - 800f908: 78da ldrb r2, [r3, #3] - 800f90a: 687b ldr r3, [r7, #4] - 800f90c: f883 2029 strb.w r2, [r3, #41] ; 0x29 - netif->hwaddr[4] = heth.Init.MACAddr[4]; - 800f910: 4b62 ldr r3, [pc, #392] ; (800fa9c ) - 800f912: 685b ldr r3, [r3, #4] - 800f914: 791a ldrb r2, [r3, #4] - 800f916: 687b ldr r3, [r7, #4] - 800f918: f883 202a strb.w r2, [r3, #42] ; 0x2a - netif->hwaddr[5] = heth.Init.MACAddr[5]; - 800f91c: 4b5f ldr r3, [pc, #380] ; (800fa9c ) - 800f91e: 685b ldr r3, [r3, #4] - 800f920: 795a ldrb r2, [r3, #5] - 800f922: 687b ldr r3, [r7, #4] - 800f924: f883 202b strb.w r2, [r3, #43] ; 0x2b - - /* maximum transfer unit */ - netif->mtu = ETH_MAX_PAYLOAD; - 800f928: 687b ldr r3, [r7, #4] - 800f92a: f240 52dc movw r2, #1500 ; 0x5dc - 800f92e: 849a strh r2, [r3, #36] ; 0x24 - - /* 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; - 800f930: 687b ldr r3, [r7, #4] - 800f932: f893 302d ldrb.w r3, [r3, #45] ; 0x2d - 800f936: f043 030a orr.w r3, r3, #10 - 800f93a: b2da uxtb r2, r3 - 800f93c: 687b ldr r3, [r7, #4] - 800f93e: f883 202d strb.w r2, [r3, #45] ; 0x2d - #else - netif->flags |= NETIF_FLAG_BROADCAST; - #endif /* LWIP_ARP */ - - /* create a binary semaphore used for informing ethernetif of frame reception */ - osSemaphoreDef(RxSem); - 800f942: 2300 movs r3, #0 - 800f944: 62fb str r3, [r7, #44] ; 0x2c - 800f946: 2300 movs r3, #0 - 800f948: 633b str r3, [r7, #48] ; 0x30 - RxPktSemaphore = osSemaphoreCreate(osSemaphore(RxSem), 1); - 800f94a: f107 032c add.w r3, r7, #44 ; 0x2c - 800f94e: 2101 movs r1, #1 - 800f950: 4618 mov r0, r3 - 800f952: f000 fdc5 bl 80104e0 - 800f956: 4603 mov r3, r0 - 800f958: 4a56 ldr r2, [pc, #344] ; (800fab4 ) - 800f95a: 6013 str r3, [r2, #0] - - /* create a binary semaphore used for informing ethernetif of frame transmission */ - osSemaphoreDef(TxSem); - 800f95c: 2300 movs r3, #0 - 800f95e: 627b str r3, [r7, #36] ; 0x24 - 800f960: 2300 movs r3, #0 - 800f962: 62bb str r3, [r7, #40] ; 0x28 - TxPktSemaphore = osSemaphoreCreate(osSemaphore(TxSem), 1); - 800f964: f107 0324 add.w r3, r7, #36 ; 0x24 - 800f968: 2101 movs r1, #1 - 800f96a: 4618 mov r0, r3 - 800f96c: f000 fdb8 bl 80104e0 - 800f970: 4603 mov r3, r0 - 800f972: 4a51 ldr r2, [pc, #324] ; (800fab8 ) - 800f974: 6013 str r3, [r2, #0] - - /* Decrease the semaphore's initial count from 1 to 0 */ - osSemaphoreWait(RxPktSemaphore, 0); - 800f976: 4b4f ldr r3, [pc, #316] ; (800fab4 ) - 800f978: 681b ldr r3, [r3, #0] - 800f97a: 2100 movs r1, #0 - 800f97c: 4618 mov r0, r3 - 800f97e: f000 fde1 bl 8010544 - osSemaphoreWait(TxPktSemaphore, 0); - 800f982: 4b4d ldr r3, [pc, #308] ; (800fab8 ) - 800f984: 681b ldr r3, [r3, #0] - 800f986: 2100 movs r1, #0 - 800f988: 4618 mov r0, r3 - 800f98a: f000 fddb bl 8010544 - - /* 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); - 800f98e: 4b4b ldr r3, [pc, #300] ; (800fabc ) - 800f990: f107 0408 add.w r4, r7, #8 - 800f994: 461d mov r5, r3 - 800f996: cd0f ldmia r5!, {r0, r1, r2, r3} - 800f998: c40f stmia r4!, {r0, r1, r2, r3} - 800f99a: e895 0007 ldmia.w r5, {r0, r1, r2} - 800f99e: e884 0007 stmia.w r4, {r0, r1, r2} - osThreadCreate (osThread(EthIf), netif); - 800f9a2: f107 0308 add.w r3, r7, #8 - 800f9a6: 6879 ldr r1, [r7, #4] - 800f9a8: 4618 mov r0, r3 - 800f9aa: f000 fc9d bl 80102e8 - -/* USER CODE BEGIN PHY_PRE_CONFIG */ - -/* USER CODE END PHY_PRE_CONFIG */ - /* Set PHY IO functions */ - LAN8742_RegisterBusIO(&LAN8742, &LAN8742_IOCtx); - 800f9ae: 4944 ldr r1, [pc, #272] ; (800fac0 ) - 800f9b0: 4844 ldr r0, [pc, #272] ; (800fac4 ) - 800f9b2: f7f2 fb26 bl 8002002 - - /* Initialize the LAN8742 ETH PHY */ - LAN8742_Init(&LAN8742); - 800f9b6: 4843 ldr r0, [pc, #268] ; (800fac4 ) - 800f9b8: f7f2 fb55 bl 8002066 - - if (hal_eth_init_status == HAL_OK) - 800f9bc: f897 30a7 ldrb.w r3, [r7, #167] ; 0xa7 - 800f9c0: 2b00 cmp r3, #0 - 800f9c2: d164 bne.n 800fa8e - { - PHYLinkState = LAN8742_GetLinkState(&LAN8742); - 800f9c4: 483f ldr r0, [pc, #252] ; (800fac4 ) - 800f9c6: f7f2 fbf6 bl 80021b6 - 800f9ca: f8c7 00a0 str.w r0, [r7, #160] ; 0xa0 - - /* Get link state */ - if(PHYLinkState <= LAN8742_STATUS_LINK_DOWN) - 800f9ce: f8d7 30a0 ldr.w r3, [r7, #160] ; 0xa0 - 800f9d2: 2b01 cmp r3, #1 - 800f9d4: dc06 bgt.n 800f9e4 - { - netif_set_link_down(netif); - 800f9d6: 6878 ldr r0, [r7, #4] - 800f9d8: f007 fcac bl 8017334 - netif_set_down(netif); - 800f9dc: 6878 ldr r0, [r7, #4] - 800f9de: f007 fc43 bl 8017268 -#endif /* LWIP_ARP || LWIP_ETHERNET */ - -/* USER CODE BEGIN LOW_LEVEL_INIT */ - -/* USER CODE END LOW_LEVEL_INIT */ -} - 800f9e2: e056 b.n 800fa92 - switch (PHYLinkState) - 800f9e4: f8d7 30a0 ldr.w r3, [r7, #160] ; 0xa0 - 800f9e8: 3b02 subs r3, #2 - 800f9ea: 2b03 cmp r3, #3 - 800f9ec: d82a bhi.n 800fa44 - 800f9ee: a201 add r2, pc, #4 ; (adr r2, 800f9f4 ) - 800f9f0: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800f9f4: 0800fa05 .word 0x0800fa05 - 800f9f8: 0800fa17 .word 0x0800fa17 - 800f9fc: 0800fa27 .word 0x0800fa27 - 800fa00: 0800fa37 .word 0x0800fa37 - duplex = ETH_FULLDUPLEX_MODE; - 800fa04: f44f 5300 mov.w r3, #8192 ; 0x2000 - 800fa08: f8c7 30ac str.w r3, [r7, #172] ; 0xac - speed = ETH_SPEED_100M; - 800fa0c: f44f 4380 mov.w r3, #16384 ; 0x4000 - 800fa10: f8c7 30a8 str.w r3, [r7, #168] ; 0xa8 - break; - 800fa14: e01f b.n 800fa56 - duplex = ETH_HALFDUPLEX_MODE; - 800fa16: 2300 movs r3, #0 - 800fa18: f8c7 30ac str.w r3, [r7, #172] ; 0xac - speed = ETH_SPEED_100M; - 800fa1c: f44f 4380 mov.w r3, #16384 ; 0x4000 - 800fa20: f8c7 30a8 str.w r3, [r7, #168] ; 0xa8 - break; - 800fa24: e017 b.n 800fa56 - duplex = ETH_FULLDUPLEX_MODE; - 800fa26: f44f 5300 mov.w r3, #8192 ; 0x2000 - 800fa2a: f8c7 30ac str.w r3, [r7, #172] ; 0xac - speed = ETH_SPEED_10M; - 800fa2e: 2300 movs r3, #0 - 800fa30: f8c7 30a8 str.w r3, [r7, #168] ; 0xa8 - break; - 800fa34: e00f b.n 800fa56 - duplex = ETH_HALFDUPLEX_MODE; - 800fa36: 2300 movs r3, #0 - 800fa38: f8c7 30ac str.w r3, [r7, #172] ; 0xac - speed = ETH_SPEED_10M; - 800fa3c: 2300 movs r3, #0 - 800fa3e: f8c7 30a8 str.w r3, [r7, #168] ; 0xa8 - break; - 800fa42: e008 b.n 800fa56 - duplex = ETH_FULLDUPLEX_MODE; - 800fa44: f44f 5300 mov.w r3, #8192 ; 0x2000 - 800fa48: f8c7 30ac str.w r3, [r7, #172] ; 0xac - speed = ETH_SPEED_100M; - 800fa4c: f44f 4380 mov.w r3, #16384 ; 0x4000 - 800fa50: f8c7 30a8 str.w r3, [r7, #168] ; 0xa8 - break; - 800fa54: bf00 nop - HAL_ETH_GetMACConfig(&heth, &MACConf); - 800fa56: f107 033c add.w r3, r7, #60 ; 0x3c - 800fa5a: 4619 mov r1, r3 - 800fa5c: 480f ldr r0, [pc, #60] ; (800fa9c ) - 800fa5e: f7f5 f879 bl 8004b54 - MACConf.DuplexMode = duplex; - 800fa62: f8d7 30ac ldr.w r3, [r7, #172] ; 0xac - 800fa66: 657b str r3, [r7, #84] ; 0x54 - MACConf.Speed = speed; - 800fa68: f8d7 30a8 ldr.w r3, [r7, #168] ; 0xa8 - 800fa6c: 653b str r3, [r7, #80] ; 0x50 - HAL_ETH_SetMACConfig(&heth, &MACConf); - 800fa6e: f107 033c add.w r3, r7, #60 ; 0x3c - 800fa72: 4619 mov r1, r3 - 800fa74: 4809 ldr r0, [pc, #36] ; (800fa9c ) - 800fa76: f7f5 fa41 bl 8004efc - HAL_ETH_Start_IT(&heth); - 800fa7a: 4808 ldr r0, [pc, #32] ; (800fa9c ) - 800fa7c: f7f4 fbb6 bl 80041ec - netif_set_up(netif); - 800fa80: 6878 ldr r0, [r7, #4] - 800fa82: f007 fb85 bl 8017190 - netif_set_link_up(netif); - 800fa86: 6878 ldr r0, [r7, #4] - 800fa88: f007 fc20 bl 80172cc -} - 800fa8c: e001 b.n 800fa92 - Error_Handler(); - 800fa8e: f7f1 fd31 bl 80014f4 -} - 800fa92: bf00 nop - 800fa94: 37b0 adds r7, #176 ; 0xb0 - 800fa96: 46bd mov sp, r7 - 800fa98: bdb0 pop {r4, r5, r7, pc} - 800fa9a: bf00 nop - 800fa9c: 2400bdcc .word 0x2400bdcc - 800faa0: 40028000 .word 0x40028000 - 800faa4: 30000100 .word 0x30000100 - 800faa8: 30000000 .word 0x30000000 - 800faac: 2400be7c .word 0x2400be7c - 800fab0: 08026b94 .word 0x08026b94 - 800fab4: 2400bdc4 .word 0x2400bdc4 - 800fab8: 2400bdc8 .word 0x2400bdc8 - 800fabc: 08023244 .word 0x08023244 - 800fac0: 24000024 .word 0x24000024 - 800fac4: 2400beb4 .word 0x2400beb4 - -0800fac8 : - * to become available 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) -{ - 800fac8: b580 push {r7, lr} - 800faca: b092 sub sp, #72 ; 0x48 - 800facc: af00 add r7, sp, #0 - 800face: 6078 str r0, [r7, #4] - 800fad0: 6039 str r1, [r7, #0] - uint32_t i = 0U; - 800fad2: 2300 movs r3, #0 - 800fad4: 647b str r3, [r7, #68] ; 0x44 - struct pbuf *q = NULL; - 800fad6: 2300 movs r3, #0 - 800fad8: 643b str r3, [r7, #64] ; 0x40 - err_t errval = ERR_OK; - 800fada: 2300 movs r3, #0 - 800fadc: f887 303f strb.w r3, [r7, #63] ; 0x3f - ETH_BufferTypeDef Txbuffer[ETH_TX_DESC_CNT] = {0}; - 800fae0: f107 030c add.w r3, r7, #12 - 800fae4: 2230 movs r2, #48 ; 0x30 - 800fae6: 2100 movs r1, #0 - 800fae8: 4618 mov r0, r3 - 800faea: f012 f8f9 bl 8021ce0 - - memset(Txbuffer, 0 , ETH_TX_DESC_CNT*sizeof(ETH_BufferTypeDef)); - 800faee: f107 030c add.w r3, r7, #12 - 800faf2: 2230 movs r2, #48 ; 0x30 - 800faf4: 2100 movs r1, #0 - 800faf6: 4618 mov r0, r3 - 800faf8: f012 f8f2 bl 8021ce0 - - for(q = p; q != NULL; q = q->next) - 800fafc: 683b ldr r3, [r7, #0] - 800fafe: 643b str r3, [r7, #64] ; 0x40 - 800fb00: e045 b.n 800fb8e - { - if(i >= ETH_TX_DESC_CNT) - 800fb02: 6c7b ldr r3, [r7, #68] ; 0x44 - 800fb04: 2b03 cmp r3, #3 - 800fb06: d902 bls.n 800fb0e - return ERR_IF; - 800fb08: f06f 030b mvn.w r3, #11 - 800fb0c: e06c b.n 800fbe8 - - Txbuffer[i].buffer = q->payload; - 800fb0e: 6c3b ldr r3, [r7, #64] ; 0x40 - 800fb10: 6859 ldr r1, [r3, #4] - 800fb12: 6c7a ldr r2, [r7, #68] ; 0x44 - 800fb14: 4613 mov r3, r2 - 800fb16: 005b lsls r3, r3, #1 - 800fb18: 4413 add r3, r2 - 800fb1a: 009b lsls r3, r3, #2 - 800fb1c: 3348 adds r3, #72 ; 0x48 - 800fb1e: 443b add r3, r7 - 800fb20: 3b3c subs r3, #60 ; 0x3c - 800fb22: 6019 str r1, [r3, #0] - Txbuffer[i].len = q->len; - 800fb24: 6c3b ldr r3, [r7, #64] ; 0x40 - 800fb26: 895b ldrh r3, [r3, #10] - 800fb28: 4619 mov r1, r3 - 800fb2a: 6c7a ldr r2, [r7, #68] ; 0x44 - 800fb2c: 4613 mov r3, r2 - 800fb2e: 005b lsls r3, r3, #1 - 800fb30: 4413 add r3, r2 - 800fb32: 009b lsls r3, r3, #2 - 800fb34: 3348 adds r3, #72 ; 0x48 - 800fb36: 443b add r3, r7 - 800fb38: 3b38 subs r3, #56 ; 0x38 - 800fb3a: 6019 str r1, [r3, #0] - - if(i>0) - 800fb3c: 6c7b ldr r3, [r7, #68] ; 0x44 - 800fb3e: 2b00 cmp r3, #0 - 800fb40: d011 beq.n 800fb66 - { - Txbuffer[i-1].next = &Txbuffer[i]; - 800fb42: 6c7b ldr r3, [r7, #68] ; 0x44 - 800fb44: 1e5a subs r2, r3, #1 - 800fb46: f107 000c add.w r0, r7, #12 - 800fb4a: 6c79 ldr r1, [r7, #68] ; 0x44 - 800fb4c: 460b mov r3, r1 - 800fb4e: 005b lsls r3, r3, #1 - 800fb50: 440b add r3, r1 - 800fb52: 009b lsls r3, r3, #2 - 800fb54: 18c1 adds r1, r0, r3 - 800fb56: 4613 mov r3, r2 - 800fb58: 005b lsls r3, r3, #1 - 800fb5a: 4413 add r3, r2 - 800fb5c: 009b lsls r3, r3, #2 - 800fb5e: 3348 adds r3, #72 ; 0x48 - 800fb60: 443b add r3, r7 - 800fb62: 3b34 subs r3, #52 ; 0x34 - 800fb64: 6019 str r1, [r3, #0] - } - - if(q->next == NULL) - 800fb66: 6c3b ldr r3, [r7, #64] ; 0x40 - 800fb68: 681b ldr r3, [r3, #0] - 800fb6a: 2b00 cmp r3, #0 - 800fb6c: d109 bne.n 800fb82 - { - Txbuffer[i].next = NULL; - 800fb6e: 6c7a ldr r2, [r7, #68] ; 0x44 - 800fb70: 4613 mov r3, r2 - 800fb72: 005b lsls r3, r3, #1 - 800fb74: 4413 add r3, r2 - 800fb76: 009b lsls r3, r3, #2 - 800fb78: 3348 adds r3, #72 ; 0x48 - 800fb7a: 443b add r3, r7 - 800fb7c: 3b34 subs r3, #52 ; 0x34 - 800fb7e: 2200 movs r2, #0 - 800fb80: 601a str r2, [r3, #0] - } - - i++; - 800fb82: 6c7b ldr r3, [r7, #68] ; 0x44 - 800fb84: 3301 adds r3, #1 - 800fb86: 647b str r3, [r7, #68] ; 0x44 - for(q = p; q != NULL; q = q->next) - 800fb88: 6c3b ldr r3, [r7, #64] ; 0x40 - 800fb8a: 681b ldr r3, [r3, #0] - 800fb8c: 643b str r3, [r7, #64] ; 0x40 - 800fb8e: 6c3b ldr r3, [r7, #64] ; 0x40 - 800fb90: 2b00 cmp r3, #0 - 800fb92: d1b6 bne.n 800fb02 - } - - TxConfig.Length = p->tot_len; - 800fb94: 683b ldr r3, [r7, #0] - 800fb96: 891b ldrh r3, [r3, #8] - 800fb98: 461a mov r2, r3 - 800fb9a: 4b15 ldr r3, [pc, #84] ; (800fbf0 ) - 800fb9c: 605a str r2, [r3, #4] - TxConfig.TxBuffer = Txbuffer; - 800fb9e: 4a14 ldr r2, [pc, #80] ; (800fbf0 ) - 800fba0: f107 030c add.w r3, r7, #12 - 800fba4: 6093 str r3, [r2, #8] - TxConfig.pData = p; - 800fba6: 4a12 ldr r2, [pc, #72] ; (800fbf0 ) - 800fba8: 683b ldr r3, [r7, #0] - 800fbaa: 6353 str r3, [r2, #52] ; 0x34 - - pbuf_ref(p); - 800fbac: 6838 ldr r0, [r7, #0] - 800fbae: f008 f849 bl 8017c44 - - if (HAL_ETH_Transmit_IT(&heth, &TxConfig) == HAL_OK) { - 800fbb2: 490f ldr r1, [pc, #60] ; (800fbf0 ) - 800fbb4: 480f ldr r0, [pc, #60] ; (800fbf4 ) - 800fbb6: f7f4 fc1d bl 80043f4 - 800fbba: 4603 mov r3, r0 - 800fbbc: 2b00 cmp r3, #0 - 800fbbe: d10e bne.n 800fbde - while(osSemaphoreWait(TxPktSemaphore, TIME_WAITING_FOR_INPUT)!=osOK) - 800fbc0: bf00 nop - 800fbc2: 4b0d ldr r3, [pc, #52] ; (800fbf8 ) - 800fbc4: 681b ldr r3, [r3, #0] - 800fbc6: f04f 31ff mov.w r1, #4294967295 - 800fbca: 4618 mov r0, r3 - 800fbcc: f000 fcba bl 8010544 - 800fbd0: 4603 mov r3, r0 - 800fbd2: 2b00 cmp r3, #0 - 800fbd4: d1f5 bne.n 800fbc2 - - { - } - - HAL_ETH_ReleaseTxPacket(&heth); - 800fbd6: 4807 ldr r0, [pc, #28] ; (800fbf4 ) - 800fbd8: f7f4 fd8b bl 80046f2 - 800fbdc: e002 b.n 800fbe4 - } else { - pbuf_free(p); - 800fbde: 6838 ldr r0, [r7, #0] - 800fbe0: f007 ff8a bl 8017af8 - } - - return errval; - 800fbe4: f997 303f ldrsb.w r3, [r7, #63] ; 0x3f -} - 800fbe8: 4618 mov r0, r3 - 800fbea: 3748 adds r7, #72 ; 0x48 - 800fbec: 46bd mov sp, r7 - 800fbee: bd80 pop {r7, pc} - 800fbf0: 2400be7c .word 0x2400be7c - 800fbf4: 2400bdcc .word 0x2400bdcc - 800fbf8: 2400bdc8 .word 0x2400bdc8 - -0800fbfc : - * @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) -{ - 800fbfc: b580 push {r7, lr} - 800fbfe: b084 sub sp, #16 - 800fc00: af00 add r7, sp, #0 - 800fc02: 6078 str r0, [r7, #4] - struct pbuf *p = NULL; - 800fc04: 2300 movs r3, #0 - 800fc06: 60fb str r3, [r7, #12] - - if(RxAllocStatus == RX_ALLOC_OK) - 800fc08: 4b07 ldr r3, [pc, #28] ; (800fc28 ) - 800fc0a: 781b ldrb r3, [r3, #0] - 800fc0c: 2b00 cmp r3, #0 - 800fc0e: d105 bne.n 800fc1c - { - HAL_ETH_ReadData(&heth, (void **)&p); - 800fc10: f107 030c add.w r3, r7, #12 - 800fc14: 4619 mov r1, r3 - 800fc16: 4805 ldr r0, [pc, #20] ; (800fc2c ) - 800fc18: f7f4 fc3d bl 8004496 - } - - return p; - 800fc1c: 68fb ldr r3, [r7, #12] -} - 800fc1e: 4618 mov r0, r3 - 800fc20: 3710 adds r7, #16 - 800fc22: 46bd mov sp, r7 - 800fc24: bd80 pop {r7, pc} - 800fc26: bf00 nop - 800fc28: 2400bdc0 .word 0x2400bdc0 - 800fc2c: 2400bdcc .word 0x2400bdcc - -0800fc30 : - * the appropriate input function is called. - * - * @param netif the lwip network interface structure for this ethernetif - */ -static void ethernetif_input(void const * argument) -{ - 800fc30: b580 push {r7, lr} - 800fc32: b084 sub sp, #16 - 800fc34: af00 add r7, sp, #0 - 800fc36: 6078 str r0, [r7, #4] - struct pbuf *p = NULL; - 800fc38: 2300 movs r3, #0 - 800fc3a: 60fb str r3, [r7, #12] - struct netif *netif = (struct netif *) argument; - 800fc3c: 687b ldr r3, [r7, #4] - 800fc3e: 60bb str r3, [r7, #8] - - for( ;; ) - { - if (osSemaphoreWait(RxPktSemaphore, TIME_WAITING_FOR_INPUT) == osOK) - 800fc40: 4b0f ldr r3, [pc, #60] ; (800fc80 ) - 800fc42: 681b ldr r3, [r3, #0] - 800fc44: f04f 31ff mov.w r1, #4294967295 - 800fc48: 4618 mov r0, r3 - 800fc4a: f000 fc7b bl 8010544 - 800fc4e: 4603 mov r3, r0 - 800fc50: 2b00 cmp r3, #0 - 800fc52: d1f5 bne.n 800fc40 - { - do - { - p = low_level_input( netif ); - 800fc54: 68b8 ldr r0, [r7, #8] - 800fc56: f7ff ffd1 bl 800fbfc - 800fc5a: 60f8 str r0, [r7, #12] - if (p != NULL) - 800fc5c: 68fb ldr r3, [r7, #12] - 800fc5e: 2b00 cmp r3, #0 - 800fc60: d00a beq.n 800fc78 - { - if (netif->input( p, netif) != ERR_OK ) - 800fc62: 68bb ldr r3, [r7, #8] - 800fc64: 691b ldr r3, [r3, #16] - 800fc66: 68b9 ldr r1, [r7, #8] - 800fc68: 68f8 ldr r0, [r7, #12] - 800fc6a: 4798 blx r3 - 800fc6c: 4603 mov r3, r0 - 800fc6e: 2b00 cmp r3, #0 - 800fc70: d002 beq.n 800fc78 - { - pbuf_free(p); - 800fc72: 68f8 ldr r0, [r7, #12] - 800fc74: f007 ff40 bl 8017af8 - } - } - } while(p!=NULL); - 800fc78: 68fb ldr r3, [r7, #12] - 800fc7a: 2b00 cmp r3, #0 - 800fc7c: d1ea bne.n 800fc54 - if (osSemaphoreWait(RxPktSemaphore, TIME_WAITING_FOR_INPUT) == osOK) - 800fc7e: e7df b.n 800fc40 - 800fc80: 2400bdc4 .word 0x2400bdc4 - -0800fc84 : - * @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) -{ - 800fc84: b580 push {r7, lr} - 800fc86: b082 sub sp, #8 - 800fc88: af00 add r7, sp, #0 - 800fc8a: 6078 str r0, [r7, #4] - LWIP_ASSERT("netif != NULL", (netif != NULL)); - 800fc8c: 687b ldr r3, [r7, #4] - 800fc8e: 2b00 cmp r3, #0 - 800fc90: d106 bne.n 800fca0 - 800fc92: 4b0e ldr r3, [pc, #56] ; (800fccc ) - 800fc94: f240 12f9 movw r2, #505 ; 0x1f9 - 800fc98: 490d ldr r1, [pc, #52] ; (800fcd0 ) - 800fc9a: 480e ldr r0, [pc, #56] ; (800fcd4 ) - 800fc9c: f011 fe74 bl 8021988 - * The last argument should be replaced with your link speed, in units - * of bits per second. - */ - // MIB2_INIT_NETIF(netif, snmp_ifType_ethernet_csmacd, LINK_SPEED_OF_YOUR_NETIF_IN_BPS); - - netif->name[0] = IFNAME0; - 800fca0: 687b ldr r3, [r7, #4] - 800fca2: 2273 movs r2, #115 ; 0x73 - 800fca4: f883 202e strb.w r2, [r3, #46] ; 0x2e - netif->name[1] = IFNAME1; - 800fca8: 687b ldr r3, [r7, #4] - 800fcaa: 2274 movs r2, #116 ; 0x74 - 800fcac: f883 202f strb.w r2, [r3, #47] ; 0x2f - * is available...) */ - -#if LWIP_IPV4 -#if LWIP_ARP || LWIP_ETHERNET -#if LWIP_ARP - netif->output = etharp_output; - 800fcb0: 687b ldr r3, [r7, #4] - 800fcb2: 4a09 ldr r2, [pc, #36] ; (800fcd8 ) - 800fcb4: 615a str r2, [r3, #20] - -#if LWIP_IPV6 - netif->output_ip6 = ethip6_output; -#endif /* LWIP_IPV6 */ - - netif->linkoutput = low_level_output; - 800fcb6: 687b ldr r3, [r7, #4] - 800fcb8: 4a08 ldr r2, [pc, #32] ; (800fcdc ) - 800fcba: 619a str r2, [r3, #24] - - /* initialize the hardware */ - low_level_init(netif); - 800fcbc: 6878 ldr r0, [r7, #4] - 800fcbe: f7ff fdb9 bl 800f834 - - return ERR_OK; - 800fcc2: 2300 movs r3, #0 -} - 800fcc4: 4618 mov r0, r3 - 800fcc6: 3708 adds r7, #8 - 800fcc8: 46bd mov sp, r7 - 800fcca: bd80 pop {r7, pc} - 800fccc: 08023260 .word 0x08023260 - 800fcd0: 0802327c .word 0x0802327c - 800fcd4: 0802328c .word 0x0802328c - 800fcd8: 0801f585 .word 0x0801f585 - 800fcdc: 0800fac9 .word 0x0800fac9 - -0800fce0 : - * @brief Custom Rx pbuf free callback - * @param pbuf: pbuf to be freed - * @retval None - */ -void pbuf_free_custom(struct pbuf *p) -{ - 800fce0: b580 push {r7, lr} - 800fce2: b084 sub sp, #16 - 800fce4: af00 add r7, sp, #0 - 800fce6: 6078 str r0, [r7, #4] - struct pbuf_custom* custom_pbuf = (struct pbuf_custom*)p; - 800fce8: 687b ldr r3, [r7, #4] - 800fcea: 60fb str r3, [r7, #12] - LWIP_MEMPOOL_FREE(RX_POOL, custom_pbuf); - 800fcec: 68f9 ldr r1, [r7, #12] - 800fcee: 4809 ldr r0, [pc, #36] ; (800fd14 ) - 800fcf0: f006 ff40 bl 8016b74 - - /* If the Rx Buffer Pool was exhausted, signal the ethernetif_input task to - * call HAL_ETH_GetRxDataBuffer to rebuild the Rx descriptors. */ - - if (RxAllocStatus == RX_ALLOC_ERROR) - 800fcf4: 4b08 ldr r3, [pc, #32] ; (800fd18 ) - 800fcf6: 781b ldrb r3, [r3, #0] - 800fcf8: 2b01 cmp r3, #1 - 800fcfa: d107 bne.n 800fd0c - { - RxAllocStatus = RX_ALLOC_OK; - 800fcfc: 4b06 ldr r3, [pc, #24] ; (800fd18 ) - 800fcfe: 2200 movs r2, #0 - 800fd00: 701a strb r2, [r3, #0] - osSemaphoreRelease(RxPktSemaphore); - 800fd02: 4b06 ldr r3, [pc, #24] ; (800fd1c ) - 800fd04: 681b ldr r3, [r3, #0] - 800fd06: 4618 mov r0, r3 - 800fd08: f000 fc6a bl 80105e0 - } -} - 800fd0c: bf00 nop - 800fd0e: 3710 adds r7, #16 - 800fd10: 46bd mov sp, r7 - 800fd12: bd80 pop {r7, pc} - 800fd14: 08026b94 .word 0x08026b94 - 800fd18: 2400bdc0 .word 0x2400bdc0 - 800fd1c: 2400bdc4 .word 0x2400bdc4 - -0800fd20 : -* when LWIP_TIMERS == 1 and NO_SYS == 1 -* @param None -* @retval Current Time value -*/ -u32_t sys_now(void) -{ - 800fd20: b580 push {r7, lr} - 800fd22: af00 add r7, sp, #0 - return HAL_GetTick(); - 800fd24: f7f2 fb1e bl 8002364 - 800fd28: 4603 mov r3, r0 -} - 800fd2a: 4618 mov r0, r3 - 800fd2c: bd80 pop {r7, pc} - ... - -0800fd30 : - * @param ethHandle: ETH handle - * @retval None - */ - -void HAL_ETH_MspInit(ETH_HandleTypeDef* ethHandle) -{ - 800fd30: b580 push {r7, lr} - 800fd32: b08e sub sp, #56 ; 0x38 - 800fd34: af00 add r7, sp, #0 - 800fd36: 6078 str r0, [r7, #4] - GPIO_InitTypeDef GPIO_InitStruct = {0}; - 800fd38: f107 0324 add.w r3, r7, #36 ; 0x24 - 800fd3c: 2200 movs r2, #0 - 800fd3e: 601a str r2, [r3, #0] - 800fd40: 605a str r2, [r3, #4] - 800fd42: 609a str r2, [r3, #8] - 800fd44: 60da str r2, [r3, #12] - 800fd46: 611a str r2, [r3, #16] - if(ethHandle->Instance==ETH) - 800fd48: 687b ldr r3, [r7, #4] - 800fd4a: 681b ldr r3, [r3, #0] - 800fd4c: 4a4d ldr r2, [pc, #308] ; (800fe84 ) - 800fd4e: 4293 cmp r3, r2 - 800fd50: f040 8093 bne.w 800fe7a - { - /* USER CODE BEGIN ETH_MspInit 0 */ - - /* USER CODE END ETH_MspInit 0 */ - /* Enable Peripheral clock */ - __HAL_RCC_ETH1MAC_CLK_ENABLE(); - 800fd54: 4b4c ldr r3, [pc, #304] ; (800fe88 ) - 800fd56: f8d3 30d8 ldr.w r3, [r3, #216] ; 0xd8 - 800fd5a: 4a4b ldr r2, [pc, #300] ; (800fe88 ) - 800fd5c: f443 4300 orr.w r3, r3, #32768 ; 0x8000 - 800fd60: f8c2 30d8 str.w r3, [r2, #216] ; 0xd8 - 800fd64: 4b48 ldr r3, [pc, #288] ; (800fe88 ) - 800fd66: f8d3 30d8 ldr.w r3, [r3, #216] ; 0xd8 - 800fd6a: f403 4300 and.w r3, r3, #32768 ; 0x8000 - 800fd6e: 623b str r3, [r7, #32] - 800fd70: 6a3b ldr r3, [r7, #32] - __HAL_RCC_ETH1TX_CLK_ENABLE(); - 800fd72: 4b45 ldr r3, [pc, #276] ; (800fe88 ) - 800fd74: f8d3 30d8 ldr.w r3, [r3, #216] ; 0xd8 - 800fd78: 4a43 ldr r2, [pc, #268] ; (800fe88 ) - 800fd7a: f443 3380 orr.w r3, r3, #65536 ; 0x10000 - 800fd7e: f8c2 30d8 str.w r3, [r2, #216] ; 0xd8 - 800fd82: 4b41 ldr r3, [pc, #260] ; (800fe88 ) - 800fd84: f8d3 30d8 ldr.w r3, [r3, #216] ; 0xd8 - 800fd88: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 800fd8c: 61fb str r3, [r7, #28] - 800fd8e: 69fb ldr r3, [r7, #28] - __HAL_RCC_ETH1RX_CLK_ENABLE(); - 800fd90: 4b3d ldr r3, [pc, #244] ; (800fe88 ) - 800fd92: f8d3 30d8 ldr.w r3, [r3, #216] ; 0xd8 - 800fd96: 4a3c ldr r2, [pc, #240] ; (800fe88 ) - 800fd98: f443 3300 orr.w r3, r3, #131072 ; 0x20000 - 800fd9c: f8c2 30d8 str.w r3, [r2, #216] ; 0xd8 - 800fda0: 4b39 ldr r3, [pc, #228] ; (800fe88 ) - 800fda2: f8d3 30d8 ldr.w r3, [r3, #216] ; 0xd8 - 800fda6: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 800fdaa: 61bb str r3, [r7, #24] - 800fdac: 69bb ldr r3, [r7, #24] - - __HAL_RCC_GPIOC_CLK_ENABLE(); - 800fdae: 4b36 ldr r3, [pc, #216] ; (800fe88 ) - 800fdb0: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 800fdb4: 4a34 ldr r2, [pc, #208] ; (800fe88 ) - 800fdb6: f043 0304 orr.w r3, r3, #4 - 800fdba: f8c2 30e0 str.w r3, [r2, #224] ; 0xe0 - 800fdbe: 4b32 ldr r3, [pc, #200] ; (800fe88 ) - 800fdc0: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 800fdc4: f003 0304 and.w r3, r3, #4 - 800fdc8: 617b str r3, [r7, #20] - 800fdca: 697b ldr r3, [r7, #20] - __HAL_RCC_GPIOA_CLK_ENABLE(); - 800fdcc: 4b2e ldr r3, [pc, #184] ; (800fe88 ) - 800fdce: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 800fdd2: 4a2d ldr r2, [pc, #180] ; (800fe88 ) - 800fdd4: f043 0301 orr.w r3, r3, #1 - 800fdd8: f8c2 30e0 str.w r3, [r2, #224] ; 0xe0 - 800fddc: 4b2a ldr r3, [pc, #168] ; (800fe88 ) - 800fdde: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 800fde2: f003 0301 and.w r3, r3, #1 - 800fde6: 613b str r3, [r7, #16] - 800fde8: 693b ldr r3, [r7, #16] - __HAL_RCC_GPIOB_CLK_ENABLE(); - 800fdea: 4b27 ldr r3, [pc, #156] ; (800fe88 ) - 800fdec: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 800fdf0: 4a25 ldr r2, [pc, #148] ; (800fe88 ) - 800fdf2: f043 0302 orr.w r3, r3, #2 - 800fdf6: f8c2 30e0 str.w r3, [r2, #224] ; 0xe0 - 800fdfa: 4b23 ldr r3, [pc, #140] ; (800fe88 ) - 800fdfc: f8d3 30e0 ldr.w r3, [r3, #224] ; 0xe0 - 800fe00: f003 0302 and.w r3, r3, #2 - 800fe04: 60fb str r3, [r7, #12] - 800fe06: 68fb ldr r3, [r7, #12] - PB13 ------> ETH_TXD1 - PA7 ------> ETH_CRS_DV - PB11 ------> ETH_TX_EN - PB12 ------> ETH_TXD0 - */ - GPIO_InitStruct.Pin = GPIO_PIN_1|GPIO_PIN_4|GPIO_PIN_5; - 800fe08: 2332 movs r3, #50 ; 0x32 - 800fe0a: 627b str r3, [r7, #36] ; 0x24 - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 800fe0c: 2302 movs r3, #2 - 800fe0e: 62bb str r3, [r7, #40] ; 0x28 - GPIO_InitStruct.Pull = GPIO_NOPULL; - 800fe10: 2300 movs r3, #0 - 800fe12: 62fb str r3, [r7, #44] ; 0x2c - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 800fe14: 2303 movs r3, #3 - 800fe16: 633b str r3, [r7, #48] ; 0x30 - GPIO_InitStruct.Alternate = GPIO_AF11_ETH; - 800fe18: 230b movs r3, #11 - 800fe1a: 637b str r3, [r7, #52] ; 0x34 - HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); - 800fe1c: f107 0324 add.w r3, r7, #36 ; 0x24 - 800fe20: 4619 mov r1, r3 - 800fe22: 481a ldr r0, [pc, #104] ; (800fe8c ) - 800fe24: f7f6 fcc4 bl 80067b0 - - GPIO_InitStruct.Pin = GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_7; - 800fe28: 2386 movs r3, #134 ; 0x86 - 800fe2a: 627b str r3, [r7, #36] ; 0x24 - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 800fe2c: 2302 movs r3, #2 - 800fe2e: 62bb str r3, [r7, #40] ; 0x28 - GPIO_InitStruct.Pull = GPIO_NOPULL; - 800fe30: 2300 movs r3, #0 - 800fe32: 62fb str r3, [r7, #44] ; 0x2c - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 800fe34: 2303 movs r3, #3 - 800fe36: 633b str r3, [r7, #48] ; 0x30 - GPIO_InitStruct.Alternate = GPIO_AF11_ETH; - 800fe38: 230b movs r3, #11 - 800fe3a: 637b str r3, [r7, #52] ; 0x34 - HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 800fe3c: f107 0324 add.w r3, r7, #36 ; 0x24 - 800fe40: 4619 mov r1, r3 - 800fe42: 4813 ldr r0, [pc, #76] ; (800fe90 ) - 800fe44: f7f6 fcb4 bl 80067b0 - - GPIO_InitStruct.Pin = GPIO_PIN_13|GPIO_PIN_11|GPIO_PIN_12; - 800fe48: f44f 5360 mov.w r3, #14336 ; 0x3800 - 800fe4c: 627b str r3, [r7, #36] ; 0x24 - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 800fe4e: 2302 movs r3, #2 - 800fe50: 62bb str r3, [r7, #40] ; 0x28 - GPIO_InitStruct.Pull = GPIO_NOPULL; - 800fe52: 2300 movs r3, #0 - 800fe54: 62fb str r3, [r7, #44] ; 0x2c - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 800fe56: 2303 movs r3, #3 - 800fe58: 633b str r3, [r7, #48] ; 0x30 - GPIO_InitStruct.Alternate = GPIO_AF11_ETH; - 800fe5a: 230b movs r3, #11 - 800fe5c: 637b str r3, [r7, #52] ; 0x34 - HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - 800fe5e: f107 0324 add.w r3, r7, #36 ; 0x24 - 800fe62: 4619 mov r1, r3 - 800fe64: 480b ldr r0, [pc, #44] ; (800fe94 ) - 800fe66: f7f6 fca3 bl 80067b0 - - /* Peripheral interrupt init */ - HAL_NVIC_SetPriority(ETH_IRQn, 5, 0); - 800fe6a: 2200 movs r2, #0 - 800fe6c: 2105 movs r1, #5 - 800fe6e: 203d movs r0, #61 ; 0x3d - 800fe70: f7f2 fb74 bl 800255c - HAL_NVIC_EnableIRQ(ETH_IRQn); - 800fe74: 203d movs r0, #61 ; 0x3d - 800fe76: f7f2 fb8b bl 8002590 - /* USER CODE BEGIN ETH_MspInit 1 */ - - /* USER CODE END ETH_MspInit 1 */ - } -} - 800fe7a: bf00 nop - 800fe7c: 3738 adds r7, #56 ; 0x38 - 800fe7e: 46bd mov sp, r7 - 800fe80: bd80 pop {r7, pc} - 800fe82: bf00 nop - 800fe84: 40028000 .word 0x40028000 - 800fe88: 58024400 .word 0x58024400 - 800fe8c: 58020800 .word 0x58020800 - 800fe90: 58020000 .word 0x58020000 - 800fe94: 58020400 .word 0x58020400 - -0800fe98 : - * @brief Initializes the MDIO interface GPIO and clocks. - * @param None - * @retval 0 if OK, -1 if ERROR - */ -int32_t ETH_PHY_IO_Init(void) -{ - 800fe98: b580 push {r7, lr} - 800fe9a: af00 add r7, sp, #0 - /* We assume that MDIO GPIO configuration is already done - in the ETH_MspInit() else it should be done here - */ - - /* Configure the MDIO Clock */ - HAL_ETH_SetMDIOClockRange(&heth); - 800fe9c: 4802 ldr r0, [pc, #8] ; (800fea8 ) - 800fe9e: f7f5 f847 bl 8004f30 - - return 0; - 800fea2: 2300 movs r3, #0 -} - 800fea4: 4618 mov r0, r3 - 800fea6: bd80 pop {r7, pc} - 800fea8: 2400bdcc .word 0x2400bdcc - -0800feac : - * @brief De-Initializes the MDIO interface . - * @param None - * @retval 0 if OK, -1 if ERROR - */ -int32_t ETH_PHY_IO_DeInit (void) -{ - 800feac: b480 push {r7} - 800feae: af00 add r7, sp, #0 - return 0; - 800feb0: 2300 movs r3, #0 -} - 800feb2: 4618 mov r0, r3 - 800feb4: 46bd mov sp, r7 - 800feb6: f85d 7b04 ldr.w r7, [sp], #4 - 800feba: 4770 bx lr - -0800febc : - * @param RegAddr: PHY register address - * @param pRegVal: pointer to hold the register value - * @retval 0 if OK -1 if Error - */ -int32_t ETH_PHY_IO_ReadReg(uint32_t DevAddr, uint32_t RegAddr, uint32_t *pRegVal) -{ - 800febc: b580 push {r7, lr} - 800febe: b084 sub sp, #16 - 800fec0: af00 add r7, sp, #0 - 800fec2: 60f8 str r0, [r7, #12] - 800fec4: 60b9 str r1, [r7, #8] - 800fec6: 607a str r2, [r7, #4] - if(HAL_ETH_ReadPHYRegister(&heth, DevAddr, RegAddr, pRegVal) != HAL_OK) - 800fec8: 687b ldr r3, [r7, #4] - 800feca: 68ba ldr r2, [r7, #8] - 800fecc: 68f9 ldr r1, [r7, #12] - 800fece: 4807 ldr r0, [pc, #28] ; (800feec ) - 800fed0: f7f4 fd98 bl 8004a04 - 800fed4: 4603 mov r3, r0 - 800fed6: 2b00 cmp r3, #0 - 800fed8: d002 beq.n 800fee0 - { - return -1; - 800feda: f04f 33ff mov.w r3, #4294967295 - 800fede: e000 b.n 800fee2 - } - - return 0; - 800fee0: 2300 movs r3, #0 -} - 800fee2: 4618 mov r0, r3 - 800fee4: 3710 adds r7, #16 - 800fee6: 46bd mov sp, r7 - 800fee8: bd80 pop {r7, pc} - 800feea: bf00 nop - 800feec: 2400bdcc .word 0x2400bdcc - -0800fef0 : - * @param RegAddr: PHY register address - * @param RegVal: Value to be written - * @retval 0 if OK -1 if Error - */ -int32_t ETH_PHY_IO_WriteReg(uint32_t DevAddr, uint32_t RegAddr, uint32_t RegVal) -{ - 800fef0: b580 push {r7, lr} - 800fef2: b084 sub sp, #16 - 800fef4: af00 add r7, sp, #0 - 800fef6: 60f8 str r0, [r7, #12] - 800fef8: 60b9 str r1, [r7, #8] - 800fefa: 607a str r2, [r7, #4] - if(HAL_ETH_WritePHYRegister(&heth, DevAddr, RegAddr, RegVal) != HAL_OK) - 800fefc: 687b ldr r3, [r7, #4] - 800fefe: 68ba ldr r2, [r7, #8] - 800ff00: 68f9 ldr r1, [r7, #12] - 800ff02: 4807 ldr r0, [pc, #28] ; (800ff20 ) - 800ff04: f7f4 fdd2 bl 8004aac - 800ff08: 4603 mov r3, r0 - 800ff0a: 2b00 cmp r3, #0 - 800ff0c: d002 beq.n 800ff14 - { - return -1; - 800ff0e: f04f 33ff mov.w r3, #4294967295 - 800ff12: e000 b.n 800ff16 - } - - return 0; - 800ff14: 2300 movs r3, #0 -} - 800ff16: 4618 mov r0, r3 - 800ff18: 3710 adds r7, #16 - 800ff1a: 46bd mov sp, r7 - 800ff1c: bd80 pop {r7, pc} - 800ff1e: bf00 nop - 800ff20: 2400bdcc .word 0x2400bdcc - -0800ff24 : -/** - * @brief Get the time in millisecons used for internal PHY driver process. - * @retval Time value - */ -int32_t ETH_PHY_IO_GetTick(void) -{ - 800ff24: b580 push {r7, lr} - 800ff26: af00 add r7, sp, #0 - return HAL_GetTick(); - 800ff28: f7f2 fa1c bl 8002364 - 800ff2c: 4603 mov r3, r0 -} - 800ff2e: 4618 mov r0, r3 - 800ff30: bd80 pop {r7, pc} - ... - -0800ff34 : - * @brief Check the ETH link state then update ETH driver and netif link accordingly. - * @retval None - */ - -void ethernet_link_thread(void const * argument) -{ - 800ff34: b580 push {r7, lr} - 800ff36: b0a0 sub sp, #128 ; 0x80 - 800ff38: af00 add r7, sp, #0 - 800ff3a: 6078 str r0, [r7, #4] - ETH_MACConfigTypeDef MACConf = {0}; - 800ff3c: f107 0308 add.w r3, r7, #8 - 800ff40: 2264 movs r2, #100 ; 0x64 - 800ff42: 2100 movs r1, #0 - 800ff44: 4618 mov r0, r3 - 800ff46: f011 fecb bl 8021ce0 - int32_t PHYLinkState = 0; - 800ff4a: 2300 movs r3, #0 - 800ff4c: 673b str r3, [r7, #112] ; 0x70 - uint32_t linkchanged = 0U, speed = 0U, duplex = 0U; - 800ff4e: 2300 movs r3, #0 - 800ff50: 67fb str r3, [r7, #124] ; 0x7c - 800ff52: 2300 movs r3, #0 - 800ff54: 67bb str r3, [r7, #120] ; 0x78 - 800ff56: 2300 movs r3, #0 - 800ff58: 677b str r3, [r7, #116] ; 0x74 - - struct netif *netif = (struct netif *) argument; - 800ff5a: 687b ldr r3, [r7, #4] - 800ff5c: 66fb str r3, [r7, #108] ; 0x6c - -/* USER CODE END ETH link init */ - - for(;;) - { - PHYLinkState = LAN8742_GetLinkState(&LAN8742); - 800ff5e: 483a ldr r0, [pc, #232] ; (8010048 ) - 800ff60: f7f2 f929 bl 80021b6 - 800ff64: 6738 str r0, [r7, #112] ; 0x70 - - if(netif_is_link_up(netif) && (PHYLinkState <= LAN8742_STATUS_LINK_DOWN)) - 800ff66: 6efb ldr r3, [r7, #108] ; 0x6c - 800ff68: f893 302d ldrb.w r3, [r3, #45] ; 0x2d - 800ff6c: 089b lsrs r3, r3, #2 - 800ff6e: f003 0301 and.w r3, r3, #1 - 800ff72: b2db uxtb r3, r3 - 800ff74: 2b00 cmp r3, #0 - 800ff76: d00c beq.n 800ff92 - 800ff78: 6f3b ldr r3, [r7, #112] ; 0x70 - 800ff7a: 2b01 cmp r3, #1 - 800ff7c: dc09 bgt.n 800ff92 - { - HAL_ETH_Stop_IT(&heth); - 800ff7e: 4833 ldr r0, [pc, #204] ; (801004c ) - 800ff80: f7f4 f9c0 bl 8004304 - netif_set_down(netif); - 800ff84: 6ef8 ldr r0, [r7, #108] ; 0x6c - 800ff86: f007 f96f bl 8017268 - netif_set_link_down(netif); - 800ff8a: 6ef8 ldr r0, [r7, #108] ; 0x6c - 800ff8c: f007 f9d2 bl 8017334 - 800ff90: e055 b.n 801003e - } - else if(!netif_is_link_up(netif) && (PHYLinkState > LAN8742_STATUS_LINK_DOWN)) - 800ff92: 6efb ldr r3, [r7, #108] ; 0x6c - 800ff94: f893 302d ldrb.w r3, [r3, #45] ; 0x2d - 800ff98: f003 0304 and.w r3, r3, #4 - 800ff9c: 2b00 cmp r3, #0 - 800ff9e: d14e bne.n 801003e - 800ffa0: 6f3b ldr r3, [r7, #112] ; 0x70 - 800ffa2: 2b01 cmp r3, #1 - 800ffa4: dd4b ble.n 801003e - { - switch (PHYLinkState) - 800ffa6: 6f3b ldr r3, [r7, #112] ; 0x70 - 800ffa8: 3b02 subs r3, #2 - 800ffaa: 2b03 cmp r3, #3 - 800ffac: d82a bhi.n 8010004 - 800ffae: a201 add r2, pc, #4 ; (adr r2, 800ffb4 ) - 800ffb0: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800ffb4: 0800ffc5 .word 0x0800ffc5 - 800ffb8: 0800ffd7 .word 0x0800ffd7 - 800ffbc: 0800ffe7 .word 0x0800ffe7 - 800ffc0: 0800fff7 .word 0x0800fff7 - { - case LAN8742_STATUS_100MBITS_FULLDUPLEX: - duplex = ETH_FULLDUPLEX_MODE; - 800ffc4: f44f 5300 mov.w r3, #8192 ; 0x2000 - 800ffc8: 677b str r3, [r7, #116] ; 0x74 - speed = ETH_SPEED_100M; - 800ffca: f44f 4380 mov.w r3, #16384 ; 0x4000 - 800ffce: 67bb str r3, [r7, #120] ; 0x78 - linkchanged = 1; - 800ffd0: 2301 movs r3, #1 - 800ffd2: 67fb str r3, [r7, #124] ; 0x7c - break; - 800ffd4: e017 b.n 8010006 - case LAN8742_STATUS_100MBITS_HALFDUPLEX: - duplex = ETH_HALFDUPLEX_MODE; - 800ffd6: 2300 movs r3, #0 - 800ffd8: 677b str r3, [r7, #116] ; 0x74 - speed = ETH_SPEED_100M; - 800ffda: f44f 4380 mov.w r3, #16384 ; 0x4000 - 800ffde: 67bb str r3, [r7, #120] ; 0x78 - linkchanged = 1; - 800ffe0: 2301 movs r3, #1 - 800ffe2: 67fb str r3, [r7, #124] ; 0x7c - break; - 800ffe4: e00f b.n 8010006 - case LAN8742_STATUS_10MBITS_FULLDUPLEX: - duplex = ETH_FULLDUPLEX_MODE; - 800ffe6: f44f 5300 mov.w r3, #8192 ; 0x2000 - 800ffea: 677b str r3, [r7, #116] ; 0x74 - speed = ETH_SPEED_10M; - 800ffec: 2300 movs r3, #0 - 800ffee: 67bb str r3, [r7, #120] ; 0x78 - linkchanged = 1; - 800fff0: 2301 movs r3, #1 - 800fff2: 67fb str r3, [r7, #124] ; 0x7c - break; - 800fff4: e007 b.n 8010006 - case LAN8742_STATUS_10MBITS_HALFDUPLEX: - duplex = ETH_HALFDUPLEX_MODE; - 800fff6: 2300 movs r3, #0 - 800fff8: 677b str r3, [r7, #116] ; 0x74 - speed = ETH_SPEED_10M; - 800fffa: 2300 movs r3, #0 - 800fffc: 67bb str r3, [r7, #120] ; 0x78 - linkchanged = 1; - 800fffe: 2301 movs r3, #1 - 8010000: 67fb str r3, [r7, #124] ; 0x7c - break; - 8010002: e000 b.n 8010006 - default: - break; - 8010004: bf00 nop - } - - if(linkchanged) - 8010006: 6ffb ldr r3, [r7, #124] ; 0x7c - 8010008: 2b00 cmp r3, #0 - 801000a: d018 beq.n 801003e - { - /* Get MAC Config MAC */ - HAL_ETH_GetMACConfig(&heth, &MACConf); - 801000c: f107 0308 add.w r3, r7, #8 - 8010010: 4619 mov r1, r3 - 8010012: 480e ldr r0, [pc, #56] ; (801004c ) - 8010014: f7f4 fd9e bl 8004b54 - MACConf.DuplexMode = duplex; - 8010018: 6f7b ldr r3, [r7, #116] ; 0x74 - 801001a: 623b str r3, [r7, #32] - MACConf.Speed = speed; - 801001c: 6fbb ldr r3, [r7, #120] ; 0x78 - 801001e: 61fb str r3, [r7, #28] - HAL_ETH_SetMACConfig(&heth, &MACConf); - 8010020: f107 0308 add.w r3, r7, #8 - 8010024: 4619 mov r1, r3 - 8010026: 4809 ldr r0, [pc, #36] ; (801004c ) - 8010028: f7f4 ff68 bl 8004efc - HAL_ETH_Start_IT(&heth); - 801002c: 4807 ldr r0, [pc, #28] ; (801004c ) - 801002e: f7f4 f8dd bl 80041ec - netif_set_up(netif); - 8010032: 6ef8 ldr r0, [r7, #108] ; 0x6c - 8010034: f007 f8ac bl 8017190 - netif_set_link_up(netif); - 8010038: 6ef8 ldr r0, [r7, #108] ; 0x6c - 801003a: f007 f947 bl 80172cc - -/* USER CODE BEGIN ETH link Thread core code for User BSP */ - -/* USER CODE END ETH link Thread core code for User BSP */ - - osDelay(100); - 801003e: 2064 movs r0, #100 ; 0x64 - 8010040: f000 f99e bl 8010380 - PHYLinkState = LAN8742_GetLinkState(&LAN8742); - 8010044: e78b b.n 800ff5e - 8010046: bf00 nop - 8010048: 2400beb4 .word 0x2400beb4 - 801004c: 2400bdcc .word 0x2400bdcc - -08010050 : - } -} - -void HAL_ETH_RxAllocateCallback(uint8_t **buff) -{ - 8010050: b580 push {r7, lr} - 8010052: b086 sub sp, #24 - 8010054: af02 add r7, sp, #8 - 8010056: 6078 str r0, [r7, #4] -/* USER CODE BEGIN HAL ETH RxAllocateCallback */ - struct pbuf_custom *p = LWIP_MEMPOOL_ALLOC(RX_POOL); - 8010058: 4812 ldr r0, [pc, #72] ; (80100a4 ) - 801005a: f006 fd17 bl 8016a8c - 801005e: 60f8 str r0, [r7, #12] - if (p) - 8010060: 68fb ldr r3, [r7, #12] - 8010062: 2b00 cmp r3, #0 - 8010064: d014 beq.n 8010090 - { - /* Get the buff from the struct pbuf address. */ - *buff = (uint8_t *)p + offsetof(RxBuff_t, buff); - 8010066: 68fb ldr r3, [r7, #12] - 8010068: f103 0220 add.w r2, r3, #32 - 801006c: 687b ldr r3, [r7, #4] - 801006e: 601a str r2, [r3, #0] - p->custom_free_function = pbuf_free_custom; - 8010070: 68fb ldr r3, [r7, #12] - 8010072: 4a0d ldr r2, [pc, #52] ; (80100a8 ) - 8010074: 611a str r2, [r3, #16] - /* Initialize the struct pbuf. - * This must be performed whenever a buffer's allocated because it may be - * changed by lwIP or the app, e.g., pbuf_free decrements ref. */ - pbuf_alloced_custom(PBUF_RAW, 0, PBUF_REF, p, *buff, ETH_RX_BUFFER_SIZE); - 8010076: 687b ldr r3, [r7, #4] - 8010078: 681b ldr r3, [r3, #0] - 801007a: f44f 62c0 mov.w r2, #1536 ; 0x600 - 801007e: 9201 str r2, [sp, #4] - 8010080: 9300 str r3, [sp, #0] - 8010082: 68fb ldr r3, [r7, #12] - 8010084: 2241 movs r2, #65 ; 0x41 - 8010086: 2100 movs r1, #0 - 8010088: 2000 movs r0, #0 - 801008a: f007 fb7b bl 8017784 - { - RxAllocStatus = RX_ALLOC_ERROR; - *buff = NULL; - } -/* USER CODE END HAL ETH RxAllocateCallback */ -} - 801008e: e005 b.n 801009c - RxAllocStatus = RX_ALLOC_ERROR; - 8010090: 4b06 ldr r3, [pc, #24] ; (80100ac ) - 8010092: 2201 movs r2, #1 - 8010094: 701a strb r2, [r3, #0] - *buff = NULL; - 8010096: 687b ldr r3, [r7, #4] - 8010098: 2200 movs r2, #0 - 801009a: 601a str r2, [r3, #0] -} - 801009c: bf00 nop - 801009e: 3710 adds r7, #16 - 80100a0: 46bd mov sp, r7 - 80100a2: bd80 pop {r7, pc} - 80100a4: 08026b94 .word 0x08026b94 - 80100a8: 0800fce1 .word 0x0800fce1 - 80100ac: 2400bdc0 .word 0x2400bdc0 - -080100b0 : - -void HAL_ETH_RxLinkCallback(void **pStart, void **pEnd, uint8_t *buff, uint16_t Length) -{ - 80100b0: b480 push {r7} - 80100b2: b08d sub sp, #52 ; 0x34 - 80100b4: af00 add r7, sp, #0 - 80100b6: 60f8 str r0, [r7, #12] - 80100b8: 60b9 str r1, [r7, #8] - 80100ba: 607a str r2, [r7, #4] - 80100bc: 807b strh r3, [r7, #2] -/* USER CODE BEGIN HAL ETH RxLinkCallback */ - - struct pbuf **ppStart = (struct pbuf **)pStart; - 80100be: 68fb ldr r3, [r7, #12] - 80100c0: 62bb str r3, [r7, #40] ; 0x28 - struct pbuf **ppEnd = (struct pbuf **)pEnd; - 80100c2: 68bb ldr r3, [r7, #8] - 80100c4: 627b str r3, [r7, #36] ; 0x24 - struct pbuf *p = NULL; - 80100c6: 2300 movs r3, #0 - 80100c8: 62fb str r3, [r7, #44] ; 0x2c - - /* Get the struct pbuf from the buff address. */ - p = (struct pbuf *)(buff - offsetof(RxBuff_t, buff)); - 80100ca: 687b ldr r3, [r7, #4] - 80100cc: 3b20 subs r3, #32 - 80100ce: 62fb str r3, [r7, #44] ; 0x2c - p->next = NULL; - 80100d0: 6afb ldr r3, [r7, #44] ; 0x2c - 80100d2: 2200 movs r2, #0 - 80100d4: 601a str r2, [r3, #0] - p->tot_len = 0; - 80100d6: 6afb ldr r3, [r7, #44] ; 0x2c - 80100d8: 2200 movs r2, #0 - 80100da: 811a strh r2, [r3, #8] - p->len = Length; - 80100dc: 6afb ldr r3, [r7, #44] ; 0x2c - 80100de: 887a ldrh r2, [r7, #2] - 80100e0: 815a strh r2, [r3, #10] - - /* Chain the buffer. */ - if (!*ppStart) - 80100e2: 6abb ldr r3, [r7, #40] ; 0x28 - 80100e4: 681b ldr r3, [r3, #0] - 80100e6: 2b00 cmp r3, #0 - 80100e8: d103 bne.n 80100f2 - { - /* The first buffer of the packet. */ - *ppStart = p; - 80100ea: 6abb ldr r3, [r7, #40] ; 0x28 - 80100ec: 6afa ldr r2, [r7, #44] ; 0x2c - 80100ee: 601a str r2, [r3, #0] - 80100f0: e003 b.n 80100fa - } - else - { - /* Chain the buffer to the end of the packet. */ - (*ppEnd)->next = p; - 80100f2: 6a7b ldr r3, [r7, #36] ; 0x24 - 80100f4: 681b ldr r3, [r3, #0] - 80100f6: 6afa ldr r2, [r7, #44] ; 0x2c - 80100f8: 601a str r2, [r3, #0] - } - *ppEnd = p; - 80100fa: 6a7b ldr r3, [r7, #36] ; 0x24 - 80100fc: 6afa ldr r2, [r7, #44] ; 0x2c - 80100fe: 601a str r2, [r3, #0] - - /* Update the total length of all the buffers of the chain. Each pbuf in the chain should have its tot_len - * set to its own length, plus the length of all the following pbufs in the chain. */ - for (p = *ppStart; p != NULL; p = p->next) - 8010100: 6abb ldr r3, [r7, #40] ; 0x28 - 8010102: 681b ldr r3, [r3, #0] - 8010104: 62fb str r3, [r7, #44] ; 0x2c - 8010106: e009 b.n 801011c - { - p->tot_len += Length; - 8010108: 6afb ldr r3, [r7, #44] ; 0x2c - 801010a: 891a ldrh r2, [r3, #8] - 801010c: 887b ldrh r3, [r7, #2] - 801010e: 4413 add r3, r2 - 8010110: b29a uxth r2, r3 - 8010112: 6afb ldr r3, [r7, #44] ; 0x2c - 8010114: 811a strh r2, [r3, #8] - for (p = *ppStart; p != NULL; p = p->next) - 8010116: 6afb ldr r3, [r7, #44] ; 0x2c - 8010118: 681b ldr r3, [r3, #0] - 801011a: 62fb str r3, [r7, #44] ; 0x2c - 801011c: 6afb ldr r3, [r7, #44] ; 0x2c - 801011e: 2b00 cmp r3, #0 - 8010120: d1f2 bne.n 8010108 - } - - /* Invalidate data cache because Rx DMA's writing to physical memory makes it stale. */ - SCB_InvalidateDCache_by_Addr((uint32_t *)buff, Length); - 8010122: 887b ldrh r3, [r7, #2] - 8010124: 687a ldr r2, [r7, #4] - 8010126: 623a str r2, [r7, #32] - 8010128: 61fb str r3, [r7, #28] - if ( dsize > 0 ) { - 801012a: 69fb ldr r3, [r7, #28] - 801012c: 2b00 cmp r3, #0 - 801012e: dd1d ble.n 801016c - int32_t op_size = dsize + (((uint32_t)addr) & (__SCB_DCACHE_LINE_SIZE - 1U)); - 8010130: 6a3b ldr r3, [r7, #32] - 8010132: f003 021f and.w r2, r3, #31 - 8010136: 69fb ldr r3, [r7, #28] - 8010138: 4413 add r3, r2 - 801013a: 61bb str r3, [r7, #24] - uint32_t op_addr = (uint32_t)addr /* & ~(__SCB_DCACHE_LINE_SIZE - 1U) */; - 801013c: 6a3b ldr r3, [r7, #32] - 801013e: 617b str r3, [r7, #20] - __ASM volatile ("dsb 0xF":::"memory"); - 8010140: f3bf 8f4f dsb sy -} - 8010144: bf00 nop - SCB->DCIMVAC = op_addr; /* register accepts only 32byte aligned values, only bits 31..5 are valid */ - 8010146: 4a0d ldr r2, [pc, #52] ; (801017c ) - 8010148: 697b ldr r3, [r7, #20] - 801014a: f8c2 325c str.w r3, [r2, #604] ; 0x25c - op_addr += __SCB_DCACHE_LINE_SIZE; - 801014e: 697b ldr r3, [r7, #20] - 8010150: 3320 adds r3, #32 - 8010152: 617b str r3, [r7, #20] - op_size -= __SCB_DCACHE_LINE_SIZE; - 8010154: 69bb ldr r3, [r7, #24] - 8010156: 3b20 subs r3, #32 - 8010158: 61bb str r3, [r7, #24] - } while ( op_size > 0 ); - 801015a: 69bb ldr r3, [r7, #24] - 801015c: 2b00 cmp r3, #0 - 801015e: dcf2 bgt.n 8010146 - __ASM volatile ("dsb 0xF":::"memory"); - 8010160: f3bf 8f4f dsb sy -} - 8010164: bf00 nop - __ASM volatile ("isb 0xF":::"memory"); - 8010166: f3bf 8f6f isb sy -} - 801016a: bf00 nop -} - 801016c: bf00 nop - -/* USER CODE END HAL ETH RxLinkCallback */ -} - 801016e: bf00 nop - 8010170: 3734 adds r7, #52 ; 0x34 - 8010172: 46bd mov sp, r7 - 8010174: f85d 7b04 ldr.w r7, [sp], #4 - 8010178: 4770 bx lr - 801017a: bf00 nop - 801017c: e000ed00 .word 0xe000ed00 - -08010180 : - -void HAL_ETH_TxFreeCallback(uint32_t * buff) -{ - 8010180: b580 push {r7, lr} - 8010182: b082 sub sp, #8 - 8010184: af00 add r7, sp, #0 - 8010186: 6078 str r0, [r7, #4] -/* USER CODE BEGIN HAL ETH TxFreeCallback */ - - pbuf_free((struct pbuf *)buff); - 8010188: 6878 ldr r0, [r7, #4] - 801018a: f007 fcb5 bl 8017af8 - -/* USER CODE END HAL ETH TxFreeCallback */ -} - 801018e: bf00 nop - 8010190: 3708 adds r7, #8 - 8010192: 46bd mov sp, r7 - 8010194: bd80 pop {r7, pc} - ... - -08010198 : - * @param lun : only used for USB Key Disk to add multi-lun management - else the parameter must be equal to 0 - * @retval Returns 0 in case of success, otherwise 1. - */ -uint8_t FATFS_LinkDriverEx(const Diskio_drvTypeDef *drv, char *path, uint8_t lun) -{ - 8010198: b480 push {r7} - 801019a: b087 sub sp, #28 - 801019c: af00 add r7, sp, #0 - 801019e: 60f8 str r0, [r7, #12] - 80101a0: 60b9 str r1, [r7, #8] - 80101a2: 4613 mov r3, r2 - 80101a4: 71fb strb r3, [r7, #7] - uint8_t ret = 1; - 80101a6: 2301 movs r3, #1 - 80101a8: 75fb strb r3, [r7, #23] - uint8_t DiskNum = 0; - 80101aa: 2300 movs r3, #0 - 80101ac: 75bb strb r3, [r7, #22] - - if(disk.nbr < _VOLUMES) - 80101ae: 4b1f ldr r3, [pc, #124] ; (801022c ) - 80101b0: 7a5b ldrb r3, [r3, #9] - 80101b2: b2db uxtb r3, r3 - 80101b4: 2b00 cmp r3, #0 - 80101b6: d131 bne.n 801021c - { - disk.is_initialized[disk.nbr] = 0; - 80101b8: 4b1c ldr r3, [pc, #112] ; (801022c ) - 80101ba: 7a5b ldrb r3, [r3, #9] - 80101bc: b2db uxtb r3, r3 - 80101be: 461a mov r2, r3 - 80101c0: 4b1a ldr r3, [pc, #104] ; (801022c ) - 80101c2: 2100 movs r1, #0 - 80101c4: 5499 strb r1, [r3, r2] - disk.drv[disk.nbr] = drv; - 80101c6: 4b19 ldr r3, [pc, #100] ; (801022c ) - 80101c8: 7a5b ldrb r3, [r3, #9] - 80101ca: b2db uxtb r3, r3 - 80101cc: 4a17 ldr r2, [pc, #92] ; (801022c ) - 80101ce: 009b lsls r3, r3, #2 - 80101d0: 4413 add r3, r2 - 80101d2: 68fa ldr r2, [r7, #12] - 80101d4: 605a str r2, [r3, #4] - disk.lun[disk.nbr] = lun; - 80101d6: 4b15 ldr r3, [pc, #84] ; (801022c ) - 80101d8: 7a5b ldrb r3, [r3, #9] - 80101da: b2db uxtb r3, r3 - 80101dc: 461a mov r2, r3 - 80101de: 4b13 ldr r3, [pc, #76] ; (801022c ) - 80101e0: 4413 add r3, r2 - 80101e2: 79fa ldrb r2, [r7, #7] - 80101e4: 721a strb r2, [r3, #8] - DiskNum = disk.nbr++; - 80101e6: 4b11 ldr r3, [pc, #68] ; (801022c ) - 80101e8: 7a5b ldrb r3, [r3, #9] - 80101ea: b2db uxtb r3, r3 - 80101ec: 1c5a adds r2, r3, #1 - 80101ee: b2d1 uxtb r1, r2 - 80101f0: 4a0e ldr r2, [pc, #56] ; (801022c ) - 80101f2: 7251 strb r1, [r2, #9] - 80101f4: 75bb strb r3, [r7, #22] - path[0] = DiskNum + '0'; - 80101f6: 7dbb ldrb r3, [r7, #22] - 80101f8: 3330 adds r3, #48 ; 0x30 - 80101fa: b2da uxtb r2, r3 - 80101fc: 68bb ldr r3, [r7, #8] - 80101fe: 701a strb r2, [r3, #0] - path[1] = ':'; - 8010200: 68bb ldr r3, [r7, #8] - 8010202: 3301 adds r3, #1 - 8010204: 223a movs r2, #58 ; 0x3a - 8010206: 701a strb r2, [r3, #0] - path[2] = '/'; - 8010208: 68bb ldr r3, [r7, #8] - 801020a: 3302 adds r3, #2 - 801020c: 222f movs r2, #47 ; 0x2f - 801020e: 701a strb r2, [r3, #0] - path[3] = 0; - 8010210: 68bb ldr r3, [r7, #8] - 8010212: 3303 adds r3, #3 - 8010214: 2200 movs r2, #0 - 8010216: 701a strb r2, [r3, #0] - ret = 0; - 8010218: 2300 movs r3, #0 - 801021a: 75fb strb r3, [r7, #23] - } - - return ret; - 801021c: 7dfb ldrb r3, [r7, #23] -} - 801021e: 4618 mov r0, r3 - 8010220: 371c adds r7, #28 - 8010222: 46bd mov sp, r7 - 8010224: f85d 7b04 ldr.w r7, [sp], #4 - 8010228: 4770 bx lr - 801022a: bf00 nop - 801022c: 2400bed4 .word 0x2400bed4 - -08010230 : - * @param drv: pointer to the disk IO Driver structure - * @param path: pointer to the logical drive path - * @retval Returns 0 in case of success, otherwise 1. - */ -uint8_t FATFS_LinkDriver(const Diskio_drvTypeDef *drv, char *path) -{ - 8010230: b580 push {r7, lr} - 8010232: b082 sub sp, #8 - 8010234: af00 add r7, sp, #0 - 8010236: 6078 str r0, [r7, #4] - 8010238: 6039 str r1, [r7, #0] - return FATFS_LinkDriverEx(drv, path, 0); - 801023a: 2200 movs r2, #0 - 801023c: 6839 ldr r1, [r7, #0] - 801023e: 6878 ldr r0, [r7, #4] - 8010240: f7ff ffaa bl 8010198 - 8010244: 4603 mov r3, r0 -} - 8010246: 4618 mov r0, r3 - 8010248: 3708 adds r7, #8 - 801024a: 46bd mov sp, r7 - 801024c: bd80 pop {r7, pc} - -0801024e : - -extern void xPortSysTickHandler(void); - -/* Convert from CMSIS type osPriority to FreeRTOS priority number */ -static unsigned portBASE_TYPE makeFreeRtosPriority (osPriority priority) -{ - 801024e: b480 push {r7} - 8010250: b085 sub sp, #20 - 8010252: af00 add r7, sp, #0 - 8010254: 4603 mov r3, r0 - 8010256: 80fb strh r3, [r7, #6] - unsigned portBASE_TYPE fpriority = tskIDLE_PRIORITY; - 8010258: 2300 movs r3, #0 - 801025a: 60fb str r3, [r7, #12] - - if (priority != osPriorityError) { - 801025c: f9b7 3006 ldrsh.w r3, [r7, #6] - 8010260: 2b84 cmp r3, #132 ; 0x84 - 8010262: d005 beq.n 8010270 - fpriority += (priority - osPriorityIdle); - 8010264: f9b7 2006 ldrsh.w r2, [r7, #6] - 8010268: 68fb ldr r3, [r7, #12] - 801026a: 4413 add r3, r2 - 801026c: 3303 adds r3, #3 - 801026e: 60fb str r3, [r7, #12] - } - - return fpriority; - 8010270: 68fb ldr r3, [r7, #12] -} - 8010272: 4618 mov r0, r3 - 8010274: 3714 adds r7, #20 - 8010276: 46bd mov sp, r7 - 8010278: f85d 7b04 ldr.w r7, [sp], #4 - 801027c: 4770 bx lr - -0801027e : -#endif - - -/* Determine whether we are in thread mode or handler mode. */ -static int inHandlerMode (void) -{ - 801027e: b480 push {r7} - 8010280: b083 sub sp, #12 - 8010282: af00 add r7, sp, #0 - __ASM volatile ("MRS %0, ipsr" : "=r" (result) ); - 8010284: f3ef 8305 mrs r3, IPSR - 8010288: 607b str r3, [r7, #4] - return(result); - 801028a: 687b ldr r3, [r7, #4] - return __get_IPSR() != 0; - 801028c: 2b00 cmp r3, #0 - 801028e: bf14 ite ne - 8010290: 2301 movne r3, #1 - 8010292: 2300 moveq r3, #0 - 8010294: b2db uxtb r3, r3 -} - 8010296: 4618 mov r0, r3 - 8010298: 370c adds r7, #12 - 801029a: 46bd mov sp, r7 - 801029c: f85d 7b04 ldr.w r7, [sp], #4 - 80102a0: 4770 bx lr - -080102a2 : -* @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) -{ - 80102a2: b580 push {r7, lr} - 80102a4: af00 add r7, sp, #0 - vTaskStartScheduler(); - 80102a6: f001 fd97 bl 8011dd8 - - return osOK; - 80102aa: 2300 movs r3, #0 -} - 80102ac: 4618 mov r0, r3 - 80102ae: bd80 pop {r7, pc} - -080102b0 : -* (1) RTOS is started -* (-1) if this feature is disabled in FreeRTOSConfig.h -* @note MUST REMAIN UNCHANGED: \b osKernelRunning shall be consistent in every CMSIS-RTOS. -*/ -int32_t osKernelRunning(void) -{ - 80102b0: b580 push {r7, lr} - 80102b2: af00 add r7, sp, #0 -#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) - if (xTaskGetSchedulerState() == taskSCHEDULER_NOT_STARTED) - 80102b4: f002 fa28 bl 8012708 - 80102b8: 4603 mov r3, r0 - 80102ba: 2b01 cmp r3, #1 - 80102bc: d101 bne.n 80102c2 - return 0; - 80102be: 2300 movs r3, #0 - 80102c0: e000 b.n 80102c4 - else - return 1; - 80102c2: 2301 movs r3, #1 -#else - return (-1); -#endif -} - 80102c4: 4618 mov r0, r3 - 80102c6: bd80 pop {r7, pc} - -080102c8 : -* @param None -* @retval None -* @note MUST REMAIN UNCHANGED: \b osKernelSysTick shall be consistent in every CMSIS-RTOS. -*/ -uint32_t osKernelSysTick(void) -{ - 80102c8: b580 push {r7, lr} - 80102ca: af00 add r7, sp, #0 - if (inHandlerMode()) { - 80102cc: f7ff ffd7 bl 801027e - 80102d0: 4603 mov r3, r0 - 80102d2: 2b00 cmp r3, #0 - 80102d4: d003 beq.n 80102de - return xTaskGetTickCountFromISR(); - 80102d6: f001 fe9f bl 8012018 - 80102da: 4603 mov r3, r0 - 80102dc: e002 b.n 80102e4 - } - else { - return xTaskGetTickCount(); - 80102de: f001 fe8b bl 8011ff8 - 80102e2: 4603 mov r3, r0 - } -} - 80102e4: 4618 mov r0, r3 - 80102e6: bd80 pop {r7, pc} - -080102e8 : -* @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) -{ - 80102e8: b5f0 push {r4, r5, r6, r7, lr} - 80102ea: b089 sub sp, #36 ; 0x24 - 80102ec: af04 add r7, sp, #16 - 80102ee: 6078 str r0, [r7, #4] - 80102f0: 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)) { - 80102f2: 687b ldr r3, [r7, #4] - 80102f4: 695b ldr r3, [r3, #20] - 80102f6: 2b00 cmp r3, #0 - 80102f8: d020 beq.n 801033c - 80102fa: 687b ldr r3, [r7, #4] - 80102fc: 699b ldr r3, [r3, #24] - 80102fe: 2b00 cmp r3, #0 - 8010300: d01c beq.n 801033c - handle = xTaskCreateStatic((TaskFunction_t)thread_def->pthread,(const portCHAR *)thread_def->name, - 8010302: 687b ldr r3, [r7, #4] - 8010304: 685c ldr r4, [r3, #4] - 8010306: 687b ldr r3, [r7, #4] - 8010308: 681d ldr r5, [r3, #0] - thread_def->stacksize, argument, makeFreeRtosPriority(thread_def->tpriority), - 801030a: 687b ldr r3, [r7, #4] - 801030c: 691e ldr r6, [r3, #16] - 801030e: 687b ldr r3, [r7, #4] - 8010310: f9b3 3008 ldrsh.w r3, [r3, #8] - handle = xTaskCreateStatic((TaskFunction_t)thread_def->pthread,(const portCHAR *)thread_def->name, - 8010314: 4618 mov r0, r3 - 8010316: f7ff ff9a bl 801024e - 801031a: 4601 mov r1, r0 - thread_def->buffer, thread_def->controlblock); - 801031c: 687b ldr r3, [r7, #4] - 801031e: 695b ldr r3, [r3, #20] - 8010320: 687a ldr r2, [r7, #4] - 8010322: 6992 ldr r2, [r2, #24] - handle = xTaskCreateStatic((TaskFunction_t)thread_def->pthread,(const portCHAR *)thread_def->name, - 8010324: 9202 str r2, [sp, #8] - 8010326: 9301 str r3, [sp, #4] - 8010328: 9100 str r1, [sp, #0] - 801032a: 683b ldr r3, [r7, #0] - 801032c: 4632 mov r2, r6 - 801032e: 4629 mov r1, r5 - 8010330: 4620 mov r0, r4 - 8010332: f001 fb81 bl 8011a38 - 8010336: 4603 mov r3, r0 - 8010338: 60fb str r3, [r7, #12] - 801033a: e01c b.n 8010376 - } - else { - if (xTaskCreate((TaskFunction_t)thread_def->pthread,(const portCHAR *)thread_def->name, - 801033c: 687b ldr r3, [r7, #4] - 801033e: 685c ldr r4, [r3, #4] - 8010340: 687b ldr r3, [r7, #4] - 8010342: 681d ldr r5, [r3, #0] - thread_def->stacksize, argument, makeFreeRtosPriority(thread_def->tpriority), - 8010344: 687b ldr r3, [r7, #4] - 8010346: 691b ldr r3, [r3, #16] - if (xTaskCreate((TaskFunction_t)thread_def->pthread,(const portCHAR *)thread_def->name, - 8010348: b29e uxth r6, r3 - thread_def->stacksize, argument, makeFreeRtosPriority(thread_def->tpriority), - 801034a: 687b ldr r3, [r7, #4] - 801034c: f9b3 3008 ldrsh.w r3, [r3, #8] - if (xTaskCreate((TaskFunction_t)thread_def->pthread,(const portCHAR *)thread_def->name, - 8010350: 4618 mov r0, r3 - 8010352: f7ff ff7c bl 801024e - 8010356: 4602 mov r2, r0 - 8010358: f107 030c add.w r3, r7, #12 - 801035c: 9301 str r3, [sp, #4] - 801035e: 9200 str r2, [sp, #0] - 8010360: 683b ldr r3, [r7, #0] - 8010362: 4632 mov r2, r6 - 8010364: 4629 mov r1, r5 - 8010366: 4620 mov r0, r4 - 8010368: f001 fbc3 bl 8011af2 - 801036c: 4603 mov r3, r0 - 801036e: 2b01 cmp r3, #1 - 8010370: d001 beq.n 8010376 - &handle) != pdPASS) { - return NULL; - 8010372: 2300 movs r3, #0 - 8010374: e000 b.n 8010378 - &handle) != pdPASS) { - return NULL; - } -#endif - - return handle; - 8010376: 68fb ldr r3, [r7, #12] -} - 8010378: 4618 mov r0, r3 - 801037a: 3714 adds r7, #20 - 801037c: 46bd mov sp, r7 - 801037e: bdf0 pop {r4, r5, r6, r7, pc} - -08010380 : -* @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) -{ - 8010380: b580 push {r7, lr} - 8010382: b084 sub sp, #16 - 8010384: af00 add r7, sp, #0 - 8010386: 6078 str r0, [r7, #4] -#if INCLUDE_vTaskDelay - TickType_t ticks = millisec / portTICK_PERIOD_MS; - 8010388: 687b ldr r3, [r7, #4] - 801038a: 60fb str r3, [r7, #12] - - vTaskDelay(ticks ? ticks : 1); /* Minimum delay = 1 tick */ - 801038c: 68fb ldr r3, [r7, #12] - 801038e: 2b00 cmp r3, #0 - 8010390: d001 beq.n 8010396 - 8010392: 68fb ldr r3, [r7, #12] - 8010394: e000 b.n 8010398 - 8010396: 2301 movs r3, #1 - 8010398: 4618 mov r0, r3 - 801039a: f001 fce9 bl 8011d70 - - return osOK; - 801039e: 2300 movs r3, #0 -#else - (void) millisec; - - return osErrorResource; -#endif -} - 80103a0: 4618 mov r0, r3 - 80103a2: 3710 adds r7, #16 - 80103a4: 46bd mov sp, r7 - 80103a6: bd80 pop {r7, pc} - -080103a8 : -* @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) -{ - 80103a8: b580 push {r7, lr} - 80103aa: b082 sub sp, #8 - 80103ac: af00 add r7, sp, #0 - 80103ae: 6078 str r0, [r7, #4] -#if ( configUSE_MUTEXES == 1) - -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) - - if (mutex_def->controlblock != NULL) { - 80103b0: 687b ldr r3, [r7, #4] - 80103b2: 685b ldr r3, [r3, #4] - 80103b4: 2b00 cmp r3, #0 - 80103b6: d007 beq.n 80103c8 - return xSemaphoreCreateMutexStatic( mutex_def->controlblock ); - 80103b8: 687b ldr r3, [r7, #4] - 80103ba: 685b ldr r3, [r3, #4] - 80103bc: 4619 mov r1, r3 - 80103be: 2001 movs r0, #1 - 80103c0: f000 fc7d bl 8010cbe - 80103c4: 4603 mov r3, r0 - 80103c6: e003 b.n 80103d0 - } - else { - return xSemaphoreCreateMutex(); - 80103c8: 2001 movs r0, #1 - 80103ca: f000 fc60 bl 8010c8e - 80103ce: 4603 mov r3, r0 - return xSemaphoreCreateMutex(); -#endif -#else - return NULL; -#endif -} - 80103d0: 4618 mov r0, r3 - 80103d2: 3708 adds r7, #8 - 80103d4: 46bd mov sp, r7 - 80103d6: bd80 pop {r7, pc} - -080103d8 : -* @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) -{ - 80103d8: b580 push {r7, lr} - 80103da: b084 sub sp, #16 - 80103dc: af00 add r7, sp, #0 - 80103de: 6078 str r0, [r7, #4] - 80103e0: 6039 str r1, [r7, #0] - TickType_t ticks; - portBASE_TYPE taskWoken = pdFALSE; - 80103e2: 2300 movs r3, #0 - 80103e4: 60bb str r3, [r7, #8] - - - if (mutex_id == NULL) { - 80103e6: 687b ldr r3, [r7, #4] - 80103e8: 2b00 cmp r3, #0 - 80103ea: d101 bne.n 80103f0 - return osErrorParameter; - 80103ec: 2380 movs r3, #128 ; 0x80 - 80103ee: e03a b.n 8010466 - } - - ticks = 0; - 80103f0: 2300 movs r3, #0 - 80103f2: 60fb str r3, [r7, #12] - if (millisec == osWaitForever) { - 80103f4: 683b ldr r3, [r7, #0] - 80103f6: f1b3 3fff cmp.w r3, #4294967295 - 80103fa: d103 bne.n 8010404 - ticks = portMAX_DELAY; - 80103fc: f04f 33ff mov.w r3, #4294967295 - 8010400: 60fb str r3, [r7, #12] - 8010402: e009 b.n 8010418 - } - else if (millisec != 0) { - 8010404: 683b ldr r3, [r7, #0] - 8010406: 2b00 cmp r3, #0 - 8010408: d006 beq.n 8010418 - ticks = millisec / portTICK_PERIOD_MS; - 801040a: 683b ldr r3, [r7, #0] - 801040c: 60fb str r3, [r7, #12] - if (ticks == 0) { - 801040e: 68fb ldr r3, [r7, #12] - 8010410: 2b00 cmp r3, #0 - 8010412: d101 bne.n 8010418 - ticks = 1; - 8010414: 2301 movs r3, #1 - 8010416: 60fb str r3, [r7, #12] - } - } - - if (inHandlerMode()) { - 8010418: f7ff ff31 bl 801027e - 801041c: 4603 mov r3, r0 - 801041e: 2b00 cmp r3, #0 - 8010420: d017 beq.n 8010452 - if (xSemaphoreTakeFromISR(mutex_id, &taskWoken) != pdTRUE) { - 8010422: f107 0308 add.w r3, r7, #8 - 8010426: 461a mov r2, r3 - 8010428: 2100 movs r1, #0 - 801042a: 6878 ldr r0, [r7, #4] - 801042c: f001 f874 bl 8011518 - 8010430: 4603 mov r3, r0 - 8010432: 2b01 cmp r3, #1 - 8010434: d001 beq.n 801043a - return osErrorOS; - 8010436: 23ff movs r3, #255 ; 0xff - 8010438: e015 b.n 8010466 - } - portEND_SWITCHING_ISR(taskWoken); - 801043a: 68bb ldr r3, [r7, #8] - 801043c: 2b00 cmp r3, #0 - 801043e: d011 beq.n 8010464 - 8010440: 4b0b ldr r3, [pc, #44] ; (8010470 ) - 8010442: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 8010446: 601a str r2, [r3, #0] - 8010448: f3bf 8f4f dsb sy - 801044c: f3bf 8f6f isb sy - 8010450: e008 b.n 8010464 - } - else if (xSemaphoreTake(mutex_id, ticks) != pdTRUE) { - 8010452: 68f9 ldr r1, [r7, #12] - 8010454: 6878 ldr r0, [r7, #4] - 8010456: f000 ff53 bl 8011300 - 801045a: 4603 mov r3, r0 - 801045c: 2b01 cmp r3, #1 - 801045e: d001 beq.n 8010464 - return osErrorOS; - 8010460: 23ff movs r3, #255 ; 0xff - 8010462: e000 b.n 8010466 - } - - return osOK; - 8010464: 2300 movs r3, #0 -} - 8010466: 4618 mov r0, r3 - 8010468: 3710 adds r7, #16 - 801046a: 46bd mov sp, r7 - 801046c: bd80 pop {r7, pc} - 801046e: bf00 nop - 8010470: e000ed04 .word 0xe000ed04 - -08010474 : -* @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) -{ - 8010474: b580 push {r7, lr} - 8010476: b084 sub sp, #16 - 8010478: af00 add r7, sp, #0 - 801047a: 6078 str r0, [r7, #4] - osStatus result = osOK; - 801047c: 2300 movs r3, #0 - 801047e: 60fb str r3, [r7, #12] - portBASE_TYPE taskWoken = pdFALSE; - 8010480: 2300 movs r3, #0 - 8010482: 60bb str r3, [r7, #8] - - if (inHandlerMode()) { - 8010484: f7ff fefb bl 801027e - 8010488: 4603 mov r3, r0 - 801048a: 2b00 cmp r3, #0 - 801048c: d016 beq.n 80104bc - if (xSemaphoreGiveFromISR(mutex_id, &taskWoken) != pdTRUE) { - 801048e: f107 0308 add.w r3, r7, #8 - 8010492: 4619 mov r1, r3 - 8010494: 6878 ldr r0, [r7, #4] - 8010496: f000 fdc6 bl 8011026 - 801049a: 4603 mov r3, r0 - 801049c: 2b01 cmp r3, #1 - 801049e: d001 beq.n 80104a4 - return osErrorOS; - 80104a0: 23ff movs r3, #255 ; 0xff - 80104a2: e017 b.n 80104d4 - } - portEND_SWITCHING_ISR(taskWoken); - 80104a4: 68bb ldr r3, [r7, #8] - 80104a6: 2b00 cmp r3, #0 - 80104a8: d013 beq.n 80104d2 - 80104aa: 4b0c ldr r3, [pc, #48] ; (80104dc ) - 80104ac: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 80104b0: 601a str r2, [r3, #0] - 80104b2: f3bf 8f4f dsb sy - 80104b6: f3bf 8f6f isb sy - 80104ba: e00a b.n 80104d2 - } - else if (xSemaphoreGive(mutex_id) != pdTRUE) - 80104bc: 2300 movs r3, #0 - 80104be: 2200 movs r2, #0 - 80104c0: 2100 movs r1, #0 - 80104c2: 6878 ldr r0, [r7, #4] - 80104c4: f000 fc16 bl 8010cf4 - 80104c8: 4603 mov r3, r0 - 80104ca: 2b01 cmp r3, #1 - 80104cc: d001 beq.n 80104d2 - { - result = osErrorOS; - 80104ce: 23ff movs r3, #255 ; 0xff - 80104d0: 60fb str r3, [r7, #12] - } - return result; - 80104d2: 68fb ldr r3, [r7, #12] -} - 80104d4: 4618 mov r0, r3 - 80104d6: 3710 adds r7, #16 - 80104d8: 46bd mov sp, r7 - 80104da: bd80 pop {r7, pc} - 80104dc: e000ed04 .word 0xe000ed04 - -080104e0 : -* @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) -{ - 80104e0: b580 push {r7, lr} - 80104e2: b086 sub sp, #24 - 80104e4: af02 add r7, sp, #8 - 80104e6: 6078 str r0, [r7, #4] - 80104e8: 6039 str r1, [r7, #0] -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) - - osSemaphoreId sema; - - if (semaphore_def->controlblock != NULL){ - 80104ea: 687b ldr r3, [r7, #4] - 80104ec: 685b ldr r3, [r3, #4] - 80104ee: 2b00 cmp r3, #0 - 80104f0: d00f beq.n 8010512 - if (count == 1) { - 80104f2: 683b ldr r3, [r7, #0] - 80104f4: 2b01 cmp r3, #1 - 80104f6: d10a bne.n 801050e - return xSemaphoreCreateBinaryStatic( semaphore_def->controlblock ); - 80104f8: 687b ldr r3, [r7, #4] - 80104fa: 685b ldr r3, [r3, #4] - 80104fc: 2203 movs r2, #3 - 80104fe: 9200 str r2, [sp, #0] - 8010500: 2200 movs r2, #0 - 8010502: 2100 movs r1, #0 - 8010504: 2001 movs r0, #1 - 8010506: f000 fad7 bl 8010ab8 - 801050a: 4603 mov r3, r0 - 801050c: e016 b.n 801053c - } - else { -#if (configUSE_COUNTING_SEMAPHORES == 1 ) - return xSemaphoreCreateCountingStatic( count, count, semaphore_def->controlblock ); -#else - return NULL; - 801050e: 2300 movs r3, #0 - 8010510: e014 b.n 801053c -#endif - } - } - else { - if (count == 1) { - 8010512: 683b ldr r3, [r7, #0] - 8010514: 2b01 cmp r3, #1 - 8010516: d110 bne.n 801053a - vSemaphoreCreateBinary(sema); - 8010518: 2203 movs r2, #3 - 801051a: 2100 movs r1, #0 - 801051c: 2001 movs r0, #1 - 801051e: f000 fb43 bl 8010ba8 - 8010522: 60f8 str r0, [r7, #12] - 8010524: 68fb ldr r3, [r7, #12] - 8010526: 2b00 cmp r3, #0 - 8010528: d005 beq.n 8010536 - 801052a: 2300 movs r3, #0 - 801052c: 2200 movs r2, #0 - 801052e: 2100 movs r1, #0 - 8010530: 68f8 ldr r0, [r7, #12] - 8010532: f000 fbdf bl 8010cf4 - return sema; - 8010536: 68fb ldr r3, [r7, #12] - 8010538: e000 b.n 801053c - } - else { -#if (configUSE_COUNTING_SEMAPHORES == 1 ) - return xSemaphoreCreateCounting(count, count); -#else - return NULL; - 801053a: 2300 movs r3, #0 -#else - return NULL; -#endif - } -#endif -} - 801053c: 4618 mov r0, r3 - 801053e: 3710 adds r7, #16 - 8010540: 46bd mov sp, r7 - 8010542: bd80 pop {r7, pc} - -08010544 : -* @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) -{ - 8010544: b580 push {r7, lr} - 8010546: b084 sub sp, #16 - 8010548: af00 add r7, sp, #0 - 801054a: 6078 str r0, [r7, #4] - 801054c: 6039 str r1, [r7, #0] - TickType_t ticks; - portBASE_TYPE taskWoken = pdFALSE; - 801054e: 2300 movs r3, #0 - 8010550: 60bb str r3, [r7, #8] - - - if (semaphore_id == NULL) { - 8010552: 687b ldr r3, [r7, #4] - 8010554: 2b00 cmp r3, #0 - 8010556: d101 bne.n 801055c - return osErrorParameter; - 8010558: 2380 movs r3, #128 ; 0x80 - 801055a: e03a b.n 80105d2 - } - - ticks = 0; - 801055c: 2300 movs r3, #0 - 801055e: 60fb str r3, [r7, #12] - if (millisec == osWaitForever) { - 8010560: 683b ldr r3, [r7, #0] - 8010562: f1b3 3fff cmp.w r3, #4294967295 - 8010566: d103 bne.n 8010570 - ticks = portMAX_DELAY; - 8010568: f04f 33ff mov.w r3, #4294967295 - 801056c: 60fb str r3, [r7, #12] - 801056e: e009 b.n 8010584 - } - else if (millisec != 0) { - 8010570: 683b ldr r3, [r7, #0] - 8010572: 2b00 cmp r3, #0 - 8010574: d006 beq.n 8010584 - ticks = millisec / portTICK_PERIOD_MS; - 8010576: 683b ldr r3, [r7, #0] - 8010578: 60fb str r3, [r7, #12] - if (ticks == 0) { - 801057a: 68fb ldr r3, [r7, #12] - 801057c: 2b00 cmp r3, #0 - 801057e: d101 bne.n 8010584 - ticks = 1; - 8010580: 2301 movs r3, #1 - 8010582: 60fb str r3, [r7, #12] - } - } - - if (inHandlerMode()) { - 8010584: f7ff fe7b bl 801027e - 8010588: 4603 mov r3, r0 - 801058a: 2b00 cmp r3, #0 - 801058c: d017 beq.n 80105be - if (xSemaphoreTakeFromISR(semaphore_id, &taskWoken) != pdTRUE) { - 801058e: f107 0308 add.w r3, r7, #8 - 8010592: 461a mov r2, r3 - 8010594: 2100 movs r1, #0 - 8010596: 6878 ldr r0, [r7, #4] - 8010598: f000 ffbe bl 8011518 - 801059c: 4603 mov r3, r0 - 801059e: 2b01 cmp r3, #1 - 80105a0: d001 beq.n 80105a6 - return osErrorOS; - 80105a2: 23ff movs r3, #255 ; 0xff - 80105a4: e015 b.n 80105d2 - } - portEND_SWITCHING_ISR(taskWoken); - 80105a6: 68bb ldr r3, [r7, #8] - 80105a8: 2b00 cmp r3, #0 - 80105aa: d011 beq.n 80105d0 - 80105ac: 4b0b ldr r3, [pc, #44] ; (80105dc ) - 80105ae: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 80105b2: 601a str r2, [r3, #0] - 80105b4: f3bf 8f4f dsb sy - 80105b8: f3bf 8f6f isb sy - 80105bc: e008 b.n 80105d0 - } - else if (xSemaphoreTake(semaphore_id, ticks) != pdTRUE) { - 80105be: 68f9 ldr r1, [r7, #12] - 80105c0: 6878 ldr r0, [r7, #4] - 80105c2: f000 fe9d bl 8011300 - 80105c6: 4603 mov r3, r0 - 80105c8: 2b01 cmp r3, #1 - 80105ca: d001 beq.n 80105d0 - return osErrorOS; - 80105cc: 23ff movs r3, #255 ; 0xff - 80105ce: e000 b.n 80105d2 - } - - return osOK; - 80105d0: 2300 movs r3, #0 -} - 80105d2: 4618 mov r0, r3 - 80105d4: 3710 adds r7, #16 - 80105d6: 46bd mov sp, r7 - 80105d8: bd80 pop {r7, pc} - 80105da: bf00 nop - 80105dc: e000ed04 .word 0xe000ed04 - -080105e0 : -* @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) -{ - 80105e0: b580 push {r7, lr} - 80105e2: b084 sub sp, #16 - 80105e4: af00 add r7, sp, #0 - 80105e6: 6078 str r0, [r7, #4] - osStatus result = osOK; - 80105e8: 2300 movs r3, #0 - 80105ea: 60fb str r3, [r7, #12] - portBASE_TYPE taskWoken = pdFALSE; - 80105ec: 2300 movs r3, #0 - 80105ee: 60bb str r3, [r7, #8] - - - if (inHandlerMode()) { - 80105f0: f7ff fe45 bl 801027e - 80105f4: 4603 mov r3, r0 - 80105f6: 2b00 cmp r3, #0 - 80105f8: d016 beq.n 8010628 - if (xSemaphoreGiveFromISR(semaphore_id, &taskWoken) != pdTRUE) { - 80105fa: f107 0308 add.w r3, r7, #8 - 80105fe: 4619 mov r1, r3 - 8010600: 6878 ldr r0, [r7, #4] - 8010602: f000 fd10 bl 8011026 - 8010606: 4603 mov r3, r0 - 8010608: 2b01 cmp r3, #1 - 801060a: d001 beq.n 8010610 - return osErrorOS; - 801060c: 23ff movs r3, #255 ; 0xff - 801060e: e017 b.n 8010640 - } - portEND_SWITCHING_ISR(taskWoken); - 8010610: 68bb ldr r3, [r7, #8] - 8010612: 2b00 cmp r3, #0 - 8010614: d013 beq.n 801063e - 8010616: 4b0c ldr r3, [pc, #48] ; (8010648 ) - 8010618: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 801061c: 601a str r2, [r3, #0] - 801061e: f3bf 8f4f dsb sy - 8010622: f3bf 8f6f isb sy - 8010626: e00a b.n 801063e - } - else { - if (xSemaphoreGive(semaphore_id) != pdTRUE) { - 8010628: 2300 movs r3, #0 - 801062a: 2200 movs r2, #0 - 801062c: 2100 movs r1, #0 - 801062e: 6878 ldr r0, [r7, #4] - 8010630: f000 fb60 bl 8010cf4 - 8010634: 4603 mov r3, r0 - 8010636: 2b01 cmp r3, #1 - 8010638: d001 beq.n 801063e - result = osErrorOS; - 801063a: 23ff movs r3, #255 ; 0xff - 801063c: 60fb str r3, [r7, #12] - } - } - - return result; - 801063e: 68fb ldr r3, [r7, #12] -} - 8010640: 4618 mov r0, r3 - 8010642: 3710 adds r7, #16 - 8010644: 46bd mov sp, r7 - 8010646: bd80 pop {r7, pc} - 8010648: e000ed04 .word 0xe000ed04 - -0801064c : -* @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 osSemaphoreDelete shall be consistent in every CMSIS-RTOS. -*/ -osStatus osSemaphoreDelete (osSemaphoreId semaphore_id) -{ - 801064c: b580 push {r7, lr} - 801064e: b082 sub sp, #8 - 8010650: af00 add r7, sp, #0 - 8010652: 6078 str r0, [r7, #4] - if (inHandlerMode()) { - 8010654: f7ff fe13 bl 801027e - 8010658: 4603 mov r3, r0 - 801065a: 2b00 cmp r3, #0 - 801065c: d001 beq.n 8010662 - return osErrorISR; - 801065e: 2382 movs r3, #130 ; 0x82 - 8010660: e003 b.n 801066a - } - - vSemaphoreDelete(semaphore_id); - 8010662: 6878 ldr r0, [r7, #4] - 8010664: f001 f814 bl 8011690 - - return osOK; - 8010668: 2300 movs r3, #0 -} - 801066a: 4618 mov r0, r3 - 801066c: 3708 adds r7, #8 - 801066e: 46bd mov sp, r7 - 8010670: bd80 pop {r7, pc} - -08010672 : -* @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) -{ - 8010672: b590 push {r4, r7, lr} - 8010674: b085 sub sp, #20 - 8010676: af02 add r7, sp, #8 - 8010678: 6078 str r0, [r7, #4] - 801067a: 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)) { - 801067c: 687b ldr r3, [r7, #4] - 801067e: 689b ldr r3, [r3, #8] - 8010680: 2b00 cmp r3, #0 - 8010682: d011 beq.n 80106a8 - 8010684: 687b ldr r3, [r7, #4] - 8010686: 68db ldr r3, [r3, #12] - 8010688: 2b00 cmp r3, #0 - 801068a: d00d beq.n 80106a8 - return xQueueCreateStatic(queue_def->queue_sz, queue_def->item_sz, queue_def->buffer, queue_def->controlblock); - 801068c: 687b ldr r3, [r7, #4] - 801068e: 6818 ldr r0, [r3, #0] - 8010690: 687b ldr r3, [r7, #4] - 8010692: 6859 ldr r1, [r3, #4] - 8010694: 687b ldr r3, [r7, #4] - 8010696: 689a ldr r2, [r3, #8] - 8010698: 687b ldr r3, [r7, #4] - 801069a: 68db ldr r3, [r3, #12] - 801069c: 2400 movs r4, #0 - 801069e: 9400 str r4, [sp, #0] - 80106a0: f000 fa0a bl 8010ab8 - 80106a4: 4603 mov r3, r0 - 80106a6: e008 b.n 80106ba - } - else { - return xQueueCreate(queue_def->queue_sz, queue_def->item_sz); - 80106a8: 687b ldr r3, [r7, #4] - 80106aa: 6818 ldr r0, [r3, #0] - 80106ac: 687b ldr r3, [r7, #4] - 80106ae: 685b ldr r3, [r3, #4] - 80106b0: 2200 movs r2, #0 - 80106b2: 4619 mov r1, r3 - 80106b4: f000 fa78 bl 8010ba8 - 80106b8: 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 -} - 80106ba: 4618 mov r0, r3 - 80106bc: 370c adds r7, #12 - 80106be: 46bd mov sp, r7 - 80106c0: bd90 pop {r4, r7, pc} - ... - -080106c4 : -* @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) -{ - 80106c4: b580 push {r7, lr} - 80106c6: b086 sub sp, #24 - 80106c8: af00 add r7, sp, #0 - 80106ca: 60f8 str r0, [r7, #12] - 80106cc: 60b9 str r1, [r7, #8] - 80106ce: 607a str r2, [r7, #4] - portBASE_TYPE taskWoken = pdFALSE; - 80106d0: 2300 movs r3, #0 - 80106d2: 613b str r3, [r7, #16] - TickType_t ticks; - - ticks = millisec / portTICK_PERIOD_MS; - 80106d4: 687b ldr r3, [r7, #4] - 80106d6: 617b str r3, [r7, #20] - if (ticks == 0) { - 80106d8: 697b ldr r3, [r7, #20] - 80106da: 2b00 cmp r3, #0 - 80106dc: d101 bne.n 80106e2 - ticks = 1; - 80106de: 2301 movs r3, #1 - 80106e0: 617b str r3, [r7, #20] - } - - if (inHandlerMode()) { - 80106e2: f7ff fdcc bl 801027e - 80106e6: 4603 mov r3, r0 - 80106e8: 2b00 cmp r3, #0 - 80106ea: d018 beq.n 801071e - if (xQueueSendFromISR(queue_id, &info, &taskWoken) != pdTRUE) { - 80106ec: f107 0210 add.w r2, r7, #16 - 80106f0: f107 0108 add.w r1, r7, #8 - 80106f4: 2300 movs r3, #0 - 80106f6: 68f8 ldr r0, [r7, #12] - 80106f8: f000 fbfa bl 8010ef0 - 80106fc: 4603 mov r3, r0 - 80106fe: 2b01 cmp r3, #1 - 8010700: d001 beq.n 8010706 - return osErrorOS; - 8010702: 23ff movs r3, #255 ; 0xff - 8010704: e018 b.n 8010738 - } - portEND_SWITCHING_ISR(taskWoken); - 8010706: 693b ldr r3, [r7, #16] - 8010708: 2b00 cmp r3, #0 - 801070a: d014 beq.n 8010736 - 801070c: 4b0c ldr r3, [pc, #48] ; (8010740 ) - 801070e: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 8010712: 601a str r2, [r3, #0] - 8010714: f3bf 8f4f dsb sy - 8010718: f3bf 8f6f isb sy - 801071c: e00b b.n 8010736 - } - else { - if (xQueueSend(queue_id, &info, ticks) != pdTRUE) { - 801071e: f107 0108 add.w r1, r7, #8 - 8010722: 2300 movs r3, #0 - 8010724: 697a ldr r2, [r7, #20] - 8010726: 68f8 ldr r0, [r7, #12] - 8010728: f000 fae4 bl 8010cf4 - 801072c: 4603 mov r3, r0 - 801072e: 2b01 cmp r3, #1 - 8010730: d001 beq.n 8010736 - return osErrorOS; - 8010732: 23ff movs r3, #255 ; 0xff - 8010734: e000 b.n 8010738 - } - } - - return osOK; - 8010736: 2300 movs r3, #0 -} - 8010738: 4618 mov r0, r3 - 801073a: 3718 adds r7, #24 - 801073c: 46bd mov sp, r7 - 801073e: bd80 pop {r7, pc} - 8010740: e000ed04 .word 0xe000ed04 - -08010744 : -* @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) -{ - 8010744: b590 push {r4, r7, lr} - 8010746: b08b sub sp, #44 ; 0x2c - 8010748: af00 add r7, sp, #0 - 801074a: 60f8 str r0, [r7, #12] - 801074c: 60b9 str r1, [r7, #8] - 801074e: 607a str r2, [r7, #4] - portBASE_TYPE taskWoken; - TickType_t ticks; - osEvent event; - - event.def.message_id = queue_id; - 8010750: 68bb ldr r3, [r7, #8] - 8010752: 61fb str r3, [r7, #28] - event.value.v = 0; - 8010754: 2300 movs r3, #0 - 8010756: 61bb str r3, [r7, #24] - - if (queue_id == NULL) { - 8010758: 68bb ldr r3, [r7, #8] - 801075a: 2b00 cmp r3, #0 - 801075c: d10a bne.n 8010774 - event.status = osErrorParameter; - 801075e: 2380 movs r3, #128 ; 0x80 - 8010760: 617b str r3, [r7, #20] - return event; - 8010762: 68fb ldr r3, [r7, #12] - 8010764: 461c mov r4, r3 - 8010766: f107 0314 add.w r3, r7, #20 - 801076a: e893 0007 ldmia.w r3, {r0, r1, r2} - 801076e: e884 0007 stmia.w r4, {r0, r1, r2} - 8010772: e054 b.n 801081e - } - - taskWoken = pdFALSE; - 8010774: 2300 movs r3, #0 - 8010776: 623b str r3, [r7, #32] - - ticks = 0; - 8010778: 2300 movs r3, #0 - 801077a: 627b str r3, [r7, #36] ; 0x24 - if (millisec == osWaitForever) { - 801077c: 687b ldr r3, [r7, #4] - 801077e: f1b3 3fff cmp.w r3, #4294967295 - 8010782: d103 bne.n 801078c - ticks = portMAX_DELAY; - 8010784: f04f 33ff mov.w r3, #4294967295 - 8010788: 627b str r3, [r7, #36] ; 0x24 - 801078a: e009 b.n 80107a0 - } - else if (millisec != 0) { - 801078c: 687b ldr r3, [r7, #4] - 801078e: 2b00 cmp r3, #0 - 8010790: d006 beq.n 80107a0 - ticks = millisec / portTICK_PERIOD_MS; - 8010792: 687b ldr r3, [r7, #4] - 8010794: 627b str r3, [r7, #36] ; 0x24 - if (ticks == 0) { - 8010796: 6a7b ldr r3, [r7, #36] ; 0x24 - 8010798: 2b00 cmp r3, #0 - 801079a: d101 bne.n 80107a0 - ticks = 1; - 801079c: 2301 movs r3, #1 - 801079e: 627b str r3, [r7, #36] ; 0x24 - } - } - - if (inHandlerMode()) { - 80107a0: f7ff fd6d bl 801027e - 80107a4: 4603 mov r3, r0 - 80107a6: 2b00 cmp r3, #0 - 80107a8: d01c beq.n 80107e4 - if (xQueueReceiveFromISR(queue_id, &event.value.v, &taskWoken) == pdTRUE) { - 80107aa: f107 0220 add.w r2, r7, #32 - 80107ae: f107 0314 add.w r3, r7, #20 - 80107b2: 3304 adds r3, #4 - 80107b4: 4619 mov r1, r3 - 80107b6: 68b8 ldr r0, [r7, #8] - 80107b8: f000 feae bl 8011518 - 80107bc: 4603 mov r3, r0 - 80107be: 2b01 cmp r3, #1 - 80107c0: d102 bne.n 80107c8 - /* We have mail */ - event.status = osEventMessage; - 80107c2: 2310 movs r3, #16 - 80107c4: 617b str r3, [r7, #20] - 80107c6: e001 b.n 80107cc - } - else { - event.status = osOK; - 80107c8: 2300 movs r3, #0 - 80107ca: 617b str r3, [r7, #20] - } - portEND_SWITCHING_ISR(taskWoken); - 80107cc: 6a3b ldr r3, [r7, #32] - 80107ce: 2b00 cmp r3, #0 - 80107d0: d01d beq.n 801080e - 80107d2: 4b15 ldr r3, [pc, #84] ; (8010828 ) - 80107d4: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 80107d8: 601a str r2, [r3, #0] - 80107da: f3bf 8f4f dsb sy - 80107de: f3bf 8f6f isb sy - 80107e2: e014 b.n 801080e - } - else { - if (xQueueReceive(queue_id, &event.value.v, ticks) == pdTRUE) { - 80107e4: f107 0314 add.w r3, r7, #20 - 80107e8: 3304 adds r3, #4 - 80107ea: 6a7a ldr r2, [r7, #36] ; 0x24 - 80107ec: 4619 mov r1, r3 - 80107ee: 68b8 ldr r0, [r7, #8] - 80107f0: f000 fca6 bl 8011140 - 80107f4: 4603 mov r3, r0 - 80107f6: 2b01 cmp r3, #1 - 80107f8: d102 bne.n 8010800 - /* We have mail */ - event.status = osEventMessage; - 80107fa: 2310 movs r3, #16 - 80107fc: 617b str r3, [r7, #20] - 80107fe: e006 b.n 801080e - } - else { - event.status = (ticks == 0) ? osOK : osEventTimeout; - 8010800: 6a7b ldr r3, [r7, #36] ; 0x24 - 8010802: 2b00 cmp r3, #0 - 8010804: d101 bne.n 801080a - 8010806: 2300 movs r3, #0 - 8010808: e000 b.n 801080c - 801080a: 2340 movs r3, #64 ; 0x40 - 801080c: 617b str r3, [r7, #20] - } - } - - return event; - 801080e: 68fb ldr r3, [r7, #12] - 8010810: 461c mov r4, r3 - 8010812: f107 0314 add.w r3, r7, #20 - 8010816: e893 0007 ldmia.w r3, {r0, r1, r2} - 801081a: e884 0007 stmia.w r4, {r0, r1, r2} -} - 801081e: 68f8 ldr r0, [r7, #12] - 8010820: 372c adds r7, #44 ; 0x2c - 8010822: 46bd mov sp, r7 - 8010824: bd90 pop {r4, r7, pc} - 8010826: bf00 nop - 8010828: e000ed04 .word 0xe000ed04 - -0801082c : -* @brief Get the number of messaged stored in a queue. -* @param queue_id message queue ID obtained with \ref osMessageCreate. -* @retval number of messages stored in a queue. -*/ -uint32_t osMessageWaiting(osMessageQId queue_id) -{ - 801082c: b580 push {r7, lr} - 801082e: b082 sub sp, #8 - 8010830: af00 add r7, sp, #0 - 8010832: 6078 str r0, [r7, #4] - if (inHandlerMode()) { - 8010834: f7ff fd23 bl 801027e - 8010838: 4603 mov r3, r0 - 801083a: 2b00 cmp r3, #0 - 801083c: d004 beq.n 8010848 - return uxQueueMessagesWaitingFromISR(queue_id); - 801083e: 6878 ldr r0, [r7, #4] - 8010840: f000 ff08 bl 8011654 - 8010844: 4603 mov r3, r0 - 8010846: e003 b.n 8010850 - } - else - { - return uxQueueMessagesWaiting(queue_id); - 8010848: 6878 ldr r0, [r7, #4] - 801084a: f000 fee5 bl 8011618 - 801084e: 4603 mov r3, r0 - } -} - 8010850: 4618 mov r0, r3 - 8010852: 3708 adds r7, #8 - 8010854: 46bd mov sp, r7 - 8010856: bd80 pop {r7, pc} - -08010858 : -* @brief Delete a Message Queue -* @param queue_id message queue ID obtained with \ref osMessageCreate. -* @retval status code that indicates the execution status of the function. -*/ -osStatus osMessageDelete (osMessageQId queue_id) -{ - 8010858: b580 push {r7, lr} - 801085a: b082 sub sp, #8 - 801085c: af00 add r7, sp, #0 - 801085e: 6078 str r0, [r7, #4] - if (inHandlerMode()) { - 8010860: f7ff fd0d bl 801027e - 8010864: 4603 mov r3, r0 - 8010866: 2b00 cmp r3, #0 - 8010868: d001 beq.n 801086e - return osErrorISR; - 801086a: 2382 movs r3, #130 ; 0x82 - 801086c: e003 b.n 8010876 - } - - vQueueDelete(queue_id); - 801086e: 6878 ldr r0, [r7, #4] - 8010870: f000 ff0e bl 8011690 - - return osOK; - 8010874: 2300 movs r3, #0 -} - 8010876: 4618 mov r0, r3 - 8010878: 3708 adds r7, #8 - 801087a: 46bd mov sp, r7 - 801087c: bd80 pop {r7, pc} - -0801087e : -/*----------------------------------------------------------- - * PUBLIC LIST API documented in list.h - *----------------------------------------------------------*/ - -void vListInitialise( List_t * const pxList ) -{ - 801087e: b480 push {r7} - 8010880: b083 sub sp, #12 - 8010882: af00 add r7, sp, #0 - 8010884: 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. */ - 8010886: 687b ldr r3, [r7, #4] - 8010888: f103 0208 add.w r2, r3, #8 - 801088c: 687b ldr r3, [r7, #4] - 801088e: 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; - 8010890: 687b ldr r3, [r7, #4] - 8010892: f04f 32ff mov.w r2, #4294967295 - 8010896: 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. */ - 8010898: 687b ldr r3, [r7, #4] - 801089a: f103 0208 add.w r2, r3, #8 - 801089e: 687b ldr r3, [r7, #4] - 80108a0: 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. */ - 80108a2: 687b ldr r3, [r7, #4] - 80108a4: f103 0208 add.w r2, r3, #8 - 80108a8: 687b ldr r3, [r7, #4] - 80108aa: 611a str r2, [r3, #16] - - pxList->uxNumberOfItems = ( UBaseType_t ) 0U; - 80108ac: 687b ldr r3, [r7, #4] - 80108ae: 2200 movs r2, #0 - 80108b0: 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 ); -} - 80108b2: bf00 nop - 80108b4: 370c adds r7, #12 - 80108b6: 46bd mov sp, r7 - 80108b8: f85d 7b04 ldr.w r7, [sp], #4 - 80108bc: 4770 bx lr - -080108be : -/*-----------------------------------------------------------*/ - -void vListInitialiseItem( ListItem_t * const pxItem ) -{ - 80108be: b480 push {r7} - 80108c0: b083 sub sp, #12 - 80108c2: af00 add r7, sp, #0 - 80108c4: 6078 str r0, [r7, #4] - /* Make sure the list item is not recorded as being on a list. */ - pxItem->pxContainer = NULL; - 80108c6: 687b ldr r3, [r7, #4] - 80108c8: 2200 movs r2, #0 - 80108ca: 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 ); -} - 80108cc: bf00 nop - 80108ce: 370c adds r7, #12 - 80108d0: 46bd mov sp, r7 - 80108d2: f85d 7b04 ldr.w r7, [sp], #4 - 80108d6: 4770 bx lr - -080108d8 : -/*-----------------------------------------------------------*/ - -void vListInsertEnd( List_t * const pxList, ListItem_t * const pxNewListItem ) -{ - 80108d8: b480 push {r7} - 80108da: b085 sub sp, #20 - 80108dc: af00 add r7, sp, #0 - 80108de: 6078 str r0, [r7, #4] - 80108e0: 6039 str r1, [r7, #0] -ListItem_t * const pxIndex = pxList->pxIndex; - 80108e2: 687b ldr r3, [r7, #4] - 80108e4: 685b ldr r3, [r3, #4] - 80108e6: 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; - 80108e8: 683b ldr r3, [r7, #0] - 80108ea: 68fa ldr r2, [r7, #12] - 80108ec: 605a str r2, [r3, #4] - pxNewListItem->pxPrevious = pxIndex->pxPrevious; - 80108ee: 68fb ldr r3, [r7, #12] - 80108f0: 689a ldr r2, [r3, #8] - 80108f2: 683b ldr r3, [r7, #0] - 80108f4: 609a str r2, [r3, #8] - - /* Only used during decision coverage testing. */ - mtCOVERAGE_TEST_DELAY(); - - pxIndex->pxPrevious->pxNext = pxNewListItem; - 80108f6: 68fb ldr r3, [r7, #12] - 80108f8: 689b ldr r3, [r3, #8] - 80108fa: 683a ldr r2, [r7, #0] - 80108fc: 605a str r2, [r3, #4] - pxIndex->pxPrevious = pxNewListItem; - 80108fe: 68fb ldr r3, [r7, #12] - 8010900: 683a ldr r2, [r7, #0] - 8010902: 609a str r2, [r3, #8] - - /* Remember which list the item is in. */ - pxNewListItem->pxContainer = pxList; - 8010904: 683b ldr r3, [r7, #0] - 8010906: 687a ldr r2, [r7, #4] - 8010908: 611a str r2, [r3, #16] - - ( pxList->uxNumberOfItems )++; - 801090a: 687b ldr r3, [r7, #4] - 801090c: 681b ldr r3, [r3, #0] - 801090e: 1c5a adds r2, r3, #1 - 8010910: 687b ldr r3, [r7, #4] - 8010912: 601a str r2, [r3, #0] -} - 8010914: bf00 nop - 8010916: 3714 adds r7, #20 - 8010918: 46bd mov sp, r7 - 801091a: f85d 7b04 ldr.w r7, [sp], #4 - 801091e: 4770 bx lr - -08010920 : -/*-----------------------------------------------------------*/ - -void vListInsert( List_t * const pxList, ListItem_t * const pxNewListItem ) -{ - 8010920: b480 push {r7} - 8010922: b085 sub sp, #20 - 8010924: af00 add r7, sp, #0 - 8010926: 6078 str r0, [r7, #4] - 8010928: 6039 str r1, [r7, #0] -ListItem_t *pxIterator; -const TickType_t xValueOfInsertion = pxNewListItem->xItemValue; - 801092a: 683b ldr r3, [r7, #0] - 801092c: 681b ldr r3, [r3, #0] - 801092e: 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 ) - 8010930: 68bb ldr r3, [r7, #8] - 8010932: f1b3 3fff cmp.w r3, #4294967295 - 8010936: d103 bne.n 8010940 - { - pxIterator = pxList->xListEnd.pxPrevious; - 8010938: 687b ldr r3, [r7, #4] - 801093a: 691b ldr r3, [r3, #16] - 801093c: 60fb str r3, [r7, #12] - 801093e: e00c b.n 801095a - 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. */ - 8010940: 687b ldr r3, [r7, #4] - 8010942: 3308 adds r3, #8 - 8010944: 60fb str r3, [r7, #12] - 8010946: e002 b.n 801094e - 8010948: 68fb ldr r3, [r7, #12] - 801094a: 685b ldr r3, [r3, #4] - 801094c: 60fb str r3, [r7, #12] - 801094e: 68fb ldr r3, [r7, #12] - 8010950: 685b ldr r3, [r3, #4] - 8010952: 681b ldr r3, [r3, #0] - 8010954: 68ba ldr r2, [r7, #8] - 8010956: 429a cmp r2, r3 - 8010958: d2f6 bcs.n 8010948 - /* There is nothing to do here, just iterating to the wanted - insertion position. */ - } - } - - pxNewListItem->pxNext = pxIterator->pxNext; - 801095a: 68fb ldr r3, [r7, #12] - 801095c: 685a ldr r2, [r3, #4] - 801095e: 683b ldr r3, [r7, #0] - 8010960: 605a str r2, [r3, #4] - pxNewListItem->pxNext->pxPrevious = pxNewListItem; - 8010962: 683b ldr r3, [r7, #0] - 8010964: 685b ldr r3, [r3, #4] - 8010966: 683a ldr r2, [r7, #0] - 8010968: 609a str r2, [r3, #8] - pxNewListItem->pxPrevious = pxIterator; - 801096a: 683b ldr r3, [r7, #0] - 801096c: 68fa ldr r2, [r7, #12] - 801096e: 609a str r2, [r3, #8] - pxIterator->pxNext = pxNewListItem; - 8010970: 68fb ldr r3, [r7, #12] - 8010972: 683a ldr r2, [r7, #0] - 8010974: 605a str r2, [r3, #4] - - /* Remember which list the item is in. This allows fast removal of the - item later. */ - pxNewListItem->pxContainer = pxList; - 8010976: 683b ldr r3, [r7, #0] - 8010978: 687a ldr r2, [r7, #4] - 801097a: 611a str r2, [r3, #16] - - ( pxList->uxNumberOfItems )++; - 801097c: 687b ldr r3, [r7, #4] - 801097e: 681b ldr r3, [r3, #0] - 8010980: 1c5a adds r2, r3, #1 - 8010982: 687b ldr r3, [r7, #4] - 8010984: 601a str r2, [r3, #0] -} - 8010986: bf00 nop - 8010988: 3714 adds r7, #20 - 801098a: 46bd mov sp, r7 - 801098c: f85d 7b04 ldr.w r7, [sp], #4 - 8010990: 4770 bx lr - -08010992 : -/*-----------------------------------------------------------*/ - -UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove ) -{ - 8010992: b480 push {r7} - 8010994: b085 sub sp, #20 - 8010996: af00 add r7, sp, #0 - 8010998: 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; - 801099a: 687b ldr r3, [r7, #4] - 801099c: 691b ldr r3, [r3, #16] - 801099e: 60fb str r3, [r7, #12] - - pxItemToRemove->pxNext->pxPrevious = pxItemToRemove->pxPrevious; - 80109a0: 687b ldr r3, [r7, #4] - 80109a2: 685b ldr r3, [r3, #4] - 80109a4: 687a ldr r2, [r7, #4] - 80109a6: 6892 ldr r2, [r2, #8] - 80109a8: 609a str r2, [r3, #8] - pxItemToRemove->pxPrevious->pxNext = pxItemToRemove->pxNext; - 80109aa: 687b ldr r3, [r7, #4] - 80109ac: 689b ldr r3, [r3, #8] - 80109ae: 687a ldr r2, [r7, #4] - 80109b0: 6852 ldr r2, [r2, #4] - 80109b2: 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 ) - 80109b4: 68fb ldr r3, [r7, #12] - 80109b6: 685b ldr r3, [r3, #4] - 80109b8: 687a ldr r2, [r7, #4] - 80109ba: 429a cmp r2, r3 - 80109bc: d103 bne.n 80109c6 - { - pxList->pxIndex = pxItemToRemove->pxPrevious; - 80109be: 687b ldr r3, [r7, #4] - 80109c0: 689a ldr r2, [r3, #8] - 80109c2: 68fb ldr r3, [r7, #12] - 80109c4: 605a str r2, [r3, #4] - else - { - mtCOVERAGE_TEST_MARKER(); - } - - pxItemToRemove->pxContainer = NULL; - 80109c6: 687b ldr r3, [r7, #4] - 80109c8: 2200 movs r2, #0 - 80109ca: 611a str r2, [r3, #16] - ( pxList->uxNumberOfItems )--; - 80109cc: 68fb ldr r3, [r7, #12] - 80109ce: 681b ldr r3, [r3, #0] - 80109d0: 1e5a subs r2, r3, #1 - 80109d2: 68fb ldr r3, [r7, #12] - 80109d4: 601a str r2, [r3, #0] - - return pxList->uxNumberOfItems; - 80109d6: 68fb ldr r3, [r7, #12] - 80109d8: 681b ldr r3, [r3, #0] -} - 80109da: 4618 mov r0, r3 - 80109dc: 3714 adds r7, #20 - 80109de: 46bd mov sp, r7 - 80109e0: f85d 7b04 ldr.w r7, [sp], #4 - 80109e4: 4770 bx lr - ... - -080109e8 : - } \ - taskEXIT_CRITICAL() -/*-----------------------------------------------------------*/ - -BaseType_t xQueueGenericReset( QueueHandle_t xQueue, BaseType_t xNewQueue ) -{ - 80109e8: b580 push {r7, lr} - 80109ea: b084 sub sp, #16 - 80109ec: af00 add r7, sp, #0 - 80109ee: 6078 str r0, [r7, #4] - 80109f0: 6039 str r1, [r7, #0] -Queue_t * const pxQueue = xQueue; - 80109f2: 687b ldr r3, [r7, #4] - 80109f4: 60fb str r3, [r7, #12] - - configASSERT( pxQueue ); - 80109f6: 68fb ldr r3, [r7, #12] - 80109f8: 2b00 cmp r3, #0 - 80109fa: d10a bne.n 8010a12 - -portFORCE_INLINE static void vPortRaiseBASEPRI( void ) -{ -uint32_t ulNewBASEPRI; - - __asm volatile - 80109fc: f04f 0350 mov.w r3, #80 ; 0x50 - 8010a00: f383 8811 msr BASEPRI, r3 - 8010a04: f3bf 8f6f isb sy - 8010a08: f3bf 8f4f dsb sy - 8010a0c: 60bb str r3, [r7, #8] - " msr basepri, %0 \n" \ - " isb \n" \ - " dsb \n" \ - :"=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory" - ); -} - 8010a0e: bf00 nop - 8010a10: e7fe b.n 8010a10 - - taskENTER_CRITICAL(); - 8010a12: f002 fcf7 bl 8013404 - { - pxQueue->u.xQueue.pcTail = pxQueue->pcHead + ( pxQueue->uxLength * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */ - 8010a16: 68fb ldr r3, [r7, #12] - 8010a18: 681a ldr r2, [r3, #0] - 8010a1a: 68fb ldr r3, [r7, #12] - 8010a1c: 6bdb ldr r3, [r3, #60] ; 0x3c - 8010a1e: 68f9 ldr r1, [r7, #12] - 8010a20: 6c09 ldr r1, [r1, #64] ; 0x40 - 8010a22: fb01 f303 mul.w r3, r1, r3 - 8010a26: 441a add r2, r3 - 8010a28: 68fb ldr r3, [r7, #12] - 8010a2a: 609a str r2, [r3, #8] - pxQueue->uxMessagesWaiting = ( UBaseType_t ) 0U; - 8010a2c: 68fb ldr r3, [r7, #12] - 8010a2e: 2200 movs r2, #0 - 8010a30: 639a str r2, [r3, #56] ; 0x38 - pxQueue->pcWriteTo = pxQueue->pcHead; - 8010a32: 68fb ldr r3, [r7, #12] - 8010a34: 681a ldr r2, [r3, #0] - 8010a36: 68fb ldr r3, [r7, #12] - 8010a38: 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. */ - 8010a3a: 68fb ldr r3, [r7, #12] - 8010a3c: 681a ldr r2, [r3, #0] - 8010a3e: 68fb ldr r3, [r7, #12] - 8010a40: 6bdb ldr r3, [r3, #60] ; 0x3c - 8010a42: 3b01 subs r3, #1 - 8010a44: 68f9 ldr r1, [r7, #12] - 8010a46: 6c09 ldr r1, [r1, #64] ; 0x40 - 8010a48: fb01 f303 mul.w r3, r1, r3 - 8010a4c: 441a add r2, r3 - 8010a4e: 68fb ldr r3, [r7, #12] - 8010a50: 60da str r2, [r3, #12] - pxQueue->cRxLock = queueUNLOCKED; - 8010a52: 68fb ldr r3, [r7, #12] - 8010a54: 22ff movs r2, #255 ; 0xff - 8010a56: f883 2044 strb.w r2, [r3, #68] ; 0x44 - pxQueue->cTxLock = queueUNLOCKED; - 8010a5a: 68fb ldr r3, [r7, #12] - 8010a5c: 22ff movs r2, #255 ; 0xff - 8010a5e: f883 2045 strb.w r2, [r3, #69] ; 0x45 - - if( xNewQueue == pdFALSE ) - 8010a62: 683b ldr r3, [r7, #0] - 8010a64: 2b00 cmp r3, #0 - 8010a66: d114 bne.n 8010a92 - /* 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 ) - 8010a68: 68fb ldr r3, [r7, #12] - 8010a6a: 691b ldr r3, [r3, #16] - 8010a6c: 2b00 cmp r3, #0 - 8010a6e: d01a beq.n 8010aa6 - { - if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE ) - 8010a70: 68fb ldr r3, [r7, #12] - 8010a72: 3310 adds r3, #16 - 8010a74: 4618 mov r0, r3 - 8010a76: f001 fc53 bl 8012320 - 8010a7a: 4603 mov r3, r0 - 8010a7c: 2b00 cmp r3, #0 - 8010a7e: d012 beq.n 8010aa6 - { - queueYIELD_IF_USING_PREEMPTION(); - 8010a80: 4b0c ldr r3, [pc, #48] ; (8010ab4 ) - 8010a82: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 8010a86: 601a str r2, [r3, #0] - 8010a88: f3bf 8f4f dsb sy - 8010a8c: f3bf 8f6f isb sy - 8010a90: e009 b.n 8010aa6 - } - } - else - { - /* Ensure the event queues start in the correct state. */ - vListInitialise( &( pxQueue->xTasksWaitingToSend ) ); - 8010a92: 68fb ldr r3, [r7, #12] - 8010a94: 3310 adds r3, #16 - 8010a96: 4618 mov r0, r3 - 8010a98: f7ff fef1 bl 801087e - vListInitialise( &( pxQueue->xTasksWaitingToReceive ) ); - 8010a9c: 68fb ldr r3, [r7, #12] - 8010a9e: 3324 adds r3, #36 ; 0x24 - 8010aa0: 4618 mov r0, r3 - 8010aa2: f7ff feec bl 801087e - } - } - taskEXIT_CRITICAL(); - 8010aa6: f002 fcdd bl 8013464 - - /* A value is returned for calling semantic consistency with previous - versions. */ - return pdPASS; - 8010aaa: 2301 movs r3, #1 -} - 8010aac: 4618 mov r0, r3 - 8010aae: 3710 adds r7, #16 - 8010ab0: 46bd mov sp, r7 - 8010ab2: bd80 pop {r7, pc} - 8010ab4: e000ed04 .word 0xe000ed04 - -08010ab8 : -/*-----------------------------------------------------------*/ - -#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 ) - { - 8010ab8: b580 push {r7, lr} - 8010aba: b08e sub sp, #56 ; 0x38 - 8010abc: af02 add r7, sp, #8 - 8010abe: 60f8 str r0, [r7, #12] - 8010ac0: 60b9 str r1, [r7, #8] - 8010ac2: 607a str r2, [r7, #4] - 8010ac4: 603b str r3, [r7, #0] - Queue_t *pxNewQueue; - - configASSERT( uxQueueLength > ( UBaseType_t ) 0 ); - 8010ac6: 68fb ldr r3, [r7, #12] - 8010ac8: 2b00 cmp r3, #0 - 8010aca: d10a bne.n 8010ae2 - __asm volatile - 8010acc: f04f 0350 mov.w r3, #80 ; 0x50 - 8010ad0: f383 8811 msr BASEPRI, r3 - 8010ad4: f3bf 8f6f isb sy - 8010ad8: f3bf 8f4f dsb sy - 8010adc: 62bb str r3, [r7, #40] ; 0x28 -} - 8010ade: bf00 nop - 8010ae0: e7fe b.n 8010ae0 - - /* The StaticQueue_t structure and the queue storage area must be - supplied. */ - configASSERT( pxStaticQueue != NULL ); - 8010ae2: 683b ldr r3, [r7, #0] - 8010ae4: 2b00 cmp r3, #0 - 8010ae6: d10a bne.n 8010afe - __asm volatile - 8010ae8: f04f 0350 mov.w r3, #80 ; 0x50 - 8010aec: f383 8811 msr BASEPRI, r3 - 8010af0: f3bf 8f6f isb sy - 8010af4: f3bf 8f4f dsb sy - 8010af8: 627b str r3, [r7, #36] ; 0x24 -} - 8010afa: bf00 nop - 8010afc: e7fe b.n 8010afc - - /* 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 ) ) ); - 8010afe: 687b ldr r3, [r7, #4] - 8010b00: 2b00 cmp r3, #0 - 8010b02: d002 beq.n 8010b0a - 8010b04: 68bb ldr r3, [r7, #8] - 8010b06: 2b00 cmp r3, #0 - 8010b08: d001 beq.n 8010b0e - 8010b0a: 2301 movs r3, #1 - 8010b0c: e000 b.n 8010b10 - 8010b0e: 2300 movs r3, #0 - 8010b10: 2b00 cmp r3, #0 - 8010b12: d10a bne.n 8010b2a - __asm volatile - 8010b14: f04f 0350 mov.w r3, #80 ; 0x50 - 8010b18: f383 8811 msr BASEPRI, r3 - 8010b1c: f3bf 8f6f isb sy - 8010b20: f3bf 8f4f dsb sy - 8010b24: 623b str r3, [r7, #32] -} - 8010b26: bf00 nop - 8010b28: e7fe b.n 8010b28 - configASSERT( !( ( pucQueueStorage == NULL ) && ( uxItemSize != 0 ) ) ); - 8010b2a: 687b ldr r3, [r7, #4] - 8010b2c: 2b00 cmp r3, #0 - 8010b2e: d102 bne.n 8010b36 - 8010b30: 68bb ldr r3, [r7, #8] - 8010b32: 2b00 cmp r3, #0 - 8010b34: d101 bne.n 8010b3a - 8010b36: 2301 movs r3, #1 - 8010b38: e000 b.n 8010b3c - 8010b3a: 2300 movs r3, #0 - 8010b3c: 2b00 cmp r3, #0 - 8010b3e: d10a bne.n 8010b56 - __asm volatile - 8010b40: f04f 0350 mov.w r3, #80 ; 0x50 - 8010b44: f383 8811 msr BASEPRI, r3 - 8010b48: f3bf 8f6f isb sy - 8010b4c: f3bf 8f4f dsb sy - 8010b50: 61fb str r3, [r7, #28] -} - 8010b52: bf00 nop - 8010b54: e7fe b.n 8010b54 - #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 ); - 8010b56: 2348 movs r3, #72 ; 0x48 - 8010b58: 617b str r3, [r7, #20] - configASSERT( xSize == sizeof( Queue_t ) ); - 8010b5a: 697b ldr r3, [r7, #20] - 8010b5c: 2b48 cmp r3, #72 ; 0x48 - 8010b5e: d00a beq.n 8010b76 - __asm volatile - 8010b60: f04f 0350 mov.w r3, #80 ; 0x50 - 8010b64: f383 8811 msr BASEPRI, r3 - 8010b68: f3bf 8f6f isb sy - 8010b6c: f3bf 8f4f dsb sy - 8010b70: 61bb str r3, [r7, #24] -} - 8010b72: bf00 nop - 8010b74: e7fe b.n 8010b74 - ( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */ - 8010b76: 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. */ - 8010b78: 683b ldr r3, [r7, #0] - 8010b7a: 62fb str r3, [r7, #44] ; 0x2c - - if( pxNewQueue != NULL ) - 8010b7c: 6afb ldr r3, [r7, #44] ; 0x2c - 8010b7e: 2b00 cmp r3, #0 - 8010b80: d00d beq.n 8010b9e - #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; - 8010b82: 6afb ldr r3, [r7, #44] ; 0x2c - 8010b84: 2201 movs r2, #1 - 8010b86: f883 2046 strb.w r2, [r3, #70] ; 0x46 - } - #endif /* configSUPPORT_DYNAMIC_ALLOCATION */ - - prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue ); - 8010b8a: f897 2038 ldrb.w r2, [r7, #56] ; 0x38 - 8010b8e: 6afb ldr r3, [r7, #44] ; 0x2c - 8010b90: 9300 str r3, [sp, #0] - 8010b92: 4613 mov r3, r2 - 8010b94: 687a ldr r2, [r7, #4] - 8010b96: 68b9 ldr r1, [r7, #8] - 8010b98: 68f8 ldr r0, [r7, #12] - 8010b9a: f000 f83f bl 8010c1c - { - traceQUEUE_CREATE_FAILED( ucQueueType ); - mtCOVERAGE_TEST_MARKER(); - } - - return pxNewQueue; - 8010b9e: 6afb ldr r3, [r7, #44] ; 0x2c - } - 8010ba0: 4618 mov r0, r3 - 8010ba2: 3730 adds r7, #48 ; 0x30 - 8010ba4: 46bd mov sp, r7 - 8010ba6: bd80 pop {r7, pc} - -08010ba8 : -/*-----------------------------------------------------------*/ - -#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) - - QueueHandle_t xQueueGenericCreate( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, const uint8_t ucQueueType ) - { - 8010ba8: b580 push {r7, lr} - 8010baa: b08a sub sp, #40 ; 0x28 - 8010bac: af02 add r7, sp, #8 - 8010bae: 60f8 str r0, [r7, #12] - 8010bb0: 60b9 str r1, [r7, #8] - 8010bb2: 4613 mov r3, r2 - 8010bb4: 71fb strb r3, [r7, #7] - Queue_t *pxNewQueue; - size_t xQueueSizeInBytes; - uint8_t *pucQueueStorage; - - configASSERT( uxQueueLength > ( UBaseType_t ) 0 ); - 8010bb6: 68fb ldr r3, [r7, #12] - 8010bb8: 2b00 cmp r3, #0 - 8010bba: d10a bne.n 8010bd2 - __asm volatile - 8010bbc: f04f 0350 mov.w r3, #80 ; 0x50 - 8010bc0: f383 8811 msr BASEPRI, r3 - 8010bc4: f3bf 8f6f isb sy - 8010bc8: f3bf 8f4f dsb sy - 8010bcc: 613b str r3, [r7, #16] -} - 8010bce: bf00 nop - 8010bd0: e7fe b.n 8010bd0 - - /* Allocate enough space to hold the maximum number of items that - can be in the queue at any time. It is valid for uxItemSize to be - zero in the case the queue is used as a semaphore. */ - xQueueSizeInBytes = ( size_t ) ( uxQueueLength * uxItemSize ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */ - 8010bd2: 68fb ldr r3, [r7, #12] - 8010bd4: 68ba ldr r2, [r7, #8] - 8010bd6: fb02 f303 mul.w r3, r2, r3 - 8010bda: 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. */ - 8010bdc: 69fb ldr r3, [r7, #28] - 8010bde: 3348 adds r3, #72 ; 0x48 - 8010be0: 4618 mov r0, r3 - 8010be2: f002 fd31 bl 8013648 - 8010be6: 61b8 str r0, [r7, #24] - - if( pxNewQueue != NULL ) - 8010be8: 69bb ldr r3, [r7, #24] - 8010bea: 2b00 cmp r3, #0 - 8010bec: d011 beq.n 8010c12 - { - /* Jump past the queue structure to find the location of the queue - storage area. */ - pucQueueStorage = ( uint8_t * ) pxNewQueue; - 8010bee: 69bb ldr r3, [r7, #24] - 8010bf0: 617b str r3, [r7, #20] - pucQueueStorage += sizeof( Queue_t ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */ - 8010bf2: 697b ldr r3, [r7, #20] - 8010bf4: 3348 adds r3, #72 ; 0x48 - 8010bf6: 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; - 8010bf8: 69bb ldr r3, [r7, #24] - 8010bfa: 2200 movs r2, #0 - 8010bfc: f883 2046 strb.w r2, [r3, #70] ; 0x46 - } - #endif /* configSUPPORT_STATIC_ALLOCATION */ - - prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue ); - 8010c00: 79fa ldrb r2, [r7, #7] - 8010c02: 69bb ldr r3, [r7, #24] - 8010c04: 9300 str r3, [sp, #0] - 8010c06: 4613 mov r3, r2 - 8010c08: 697a ldr r2, [r7, #20] - 8010c0a: 68b9 ldr r1, [r7, #8] - 8010c0c: 68f8 ldr r0, [r7, #12] - 8010c0e: f000 f805 bl 8010c1c - { - traceQUEUE_CREATE_FAILED( ucQueueType ); - mtCOVERAGE_TEST_MARKER(); - } - - return pxNewQueue; - 8010c12: 69bb ldr r3, [r7, #24] - } - 8010c14: 4618 mov r0, r3 - 8010c16: 3720 adds r7, #32 - 8010c18: 46bd mov sp, r7 - 8010c1a: bd80 pop {r7, pc} - -08010c1c : - -#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 ) -{ - 8010c1c: b580 push {r7, lr} - 8010c1e: b084 sub sp, #16 - 8010c20: af00 add r7, sp, #0 - 8010c22: 60f8 str r0, [r7, #12] - 8010c24: 60b9 str r1, [r7, #8] - 8010c26: 607a str r2, [r7, #4] - 8010c28: 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 ) - 8010c2a: 68bb ldr r3, [r7, #8] - 8010c2c: 2b00 cmp r3, #0 - 8010c2e: d103 bne.n 8010c38 - { - /* 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; - 8010c30: 69bb ldr r3, [r7, #24] - 8010c32: 69ba ldr r2, [r7, #24] - 8010c34: 601a str r2, [r3, #0] - 8010c36: e002 b.n 8010c3e - } - else - { - /* Set the head to the start of the queue storage area. */ - pxNewQueue->pcHead = ( int8_t * ) pucQueueStorage; - 8010c38: 69bb ldr r3, [r7, #24] - 8010c3a: 687a ldr r2, [r7, #4] - 8010c3c: 601a str r2, [r3, #0] - } - - /* Initialise the queue members as described where the queue type is - defined. */ - pxNewQueue->uxLength = uxQueueLength; - 8010c3e: 69bb ldr r3, [r7, #24] - 8010c40: 68fa ldr r2, [r7, #12] - 8010c42: 63da str r2, [r3, #60] ; 0x3c - pxNewQueue->uxItemSize = uxItemSize; - 8010c44: 69bb ldr r3, [r7, #24] - 8010c46: 68ba ldr r2, [r7, #8] - 8010c48: 641a str r2, [r3, #64] ; 0x40 - ( void ) xQueueGenericReset( pxNewQueue, pdTRUE ); - 8010c4a: 2101 movs r1, #1 - 8010c4c: 69b8 ldr r0, [r7, #24] - 8010c4e: f7ff fecb bl 80109e8 - pxNewQueue->pxQueueSetContainer = NULL; - } - #endif /* configUSE_QUEUE_SETS */ - - traceQUEUE_CREATE( pxNewQueue ); -} - 8010c52: bf00 nop - 8010c54: 3710 adds r7, #16 - 8010c56: 46bd mov sp, r7 - 8010c58: bd80 pop {r7, pc} - -08010c5a : -/*-----------------------------------------------------------*/ - -#if( configUSE_MUTEXES == 1 ) - - static void prvInitialiseMutex( Queue_t *pxNewQueue ) - { - 8010c5a: b580 push {r7, lr} - 8010c5c: b082 sub sp, #8 - 8010c5e: af00 add r7, sp, #0 - 8010c60: 6078 str r0, [r7, #4] - if( pxNewQueue != NULL ) - 8010c62: 687b ldr r3, [r7, #4] - 8010c64: 2b00 cmp r3, #0 - 8010c66: d00e beq.n 8010c86 - { - /* 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; - 8010c68: 687b ldr r3, [r7, #4] - 8010c6a: 2200 movs r2, #0 - 8010c6c: 609a str r2, [r3, #8] - pxNewQueue->uxQueueType = queueQUEUE_IS_MUTEX; - 8010c6e: 687b ldr r3, [r7, #4] - 8010c70: 2200 movs r2, #0 - 8010c72: 601a str r2, [r3, #0] - - /* In case this is a recursive mutex. */ - pxNewQueue->u.xSemaphore.uxRecursiveCallCount = 0; - 8010c74: 687b ldr r3, [r7, #4] - 8010c76: 2200 movs r2, #0 - 8010c78: 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 ); - 8010c7a: 2300 movs r3, #0 - 8010c7c: 2200 movs r2, #0 - 8010c7e: 2100 movs r1, #0 - 8010c80: 6878 ldr r0, [r7, #4] - 8010c82: f000 f837 bl 8010cf4 - } - else - { - traceCREATE_MUTEX_FAILED(); - } - } - 8010c86: bf00 nop - 8010c88: 3708 adds r7, #8 - 8010c8a: 46bd mov sp, r7 - 8010c8c: bd80 pop {r7, pc} - -08010c8e : -/*-----------------------------------------------------------*/ - -#if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) - - QueueHandle_t xQueueCreateMutex( const uint8_t ucQueueType ) - { - 8010c8e: b580 push {r7, lr} - 8010c90: b086 sub sp, #24 - 8010c92: af00 add r7, sp, #0 - 8010c94: 4603 mov r3, r0 - 8010c96: 71fb strb r3, [r7, #7] - QueueHandle_t xNewQueue; - const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0; - 8010c98: 2301 movs r3, #1 - 8010c9a: 617b str r3, [r7, #20] - 8010c9c: 2300 movs r3, #0 - 8010c9e: 613b str r3, [r7, #16] - - xNewQueue = xQueueGenericCreate( uxMutexLength, uxMutexSize, ucQueueType ); - 8010ca0: 79fb ldrb r3, [r7, #7] - 8010ca2: 461a mov r2, r3 - 8010ca4: 6939 ldr r1, [r7, #16] - 8010ca6: 6978 ldr r0, [r7, #20] - 8010ca8: f7ff ff7e bl 8010ba8 - 8010cac: 60f8 str r0, [r7, #12] - prvInitialiseMutex( ( Queue_t * ) xNewQueue ); - 8010cae: 68f8 ldr r0, [r7, #12] - 8010cb0: f7ff ffd3 bl 8010c5a - - return xNewQueue; - 8010cb4: 68fb ldr r3, [r7, #12] - } - 8010cb6: 4618 mov r0, r3 - 8010cb8: 3718 adds r7, #24 - 8010cba: 46bd mov sp, r7 - 8010cbc: bd80 pop {r7, pc} - -08010cbe : -/*-----------------------------------------------------------*/ - -#if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) ) - - QueueHandle_t xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t *pxStaticQueue ) - { - 8010cbe: b580 push {r7, lr} - 8010cc0: b088 sub sp, #32 - 8010cc2: af02 add r7, sp, #8 - 8010cc4: 4603 mov r3, r0 - 8010cc6: 6039 str r1, [r7, #0] - 8010cc8: 71fb strb r3, [r7, #7] - QueueHandle_t xNewQueue; - const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0; - 8010cca: 2301 movs r3, #1 - 8010ccc: 617b str r3, [r7, #20] - 8010cce: 2300 movs r3, #0 - 8010cd0: 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 ); - 8010cd2: 79fb ldrb r3, [r7, #7] - 8010cd4: 9300 str r3, [sp, #0] - 8010cd6: 683b ldr r3, [r7, #0] - 8010cd8: 2200 movs r2, #0 - 8010cda: 6939 ldr r1, [r7, #16] - 8010cdc: 6978 ldr r0, [r7, #20] - 8010cde: f7ff feeb bl 8010ab8 - 8010ce2: 60f8 str r0, [r7, #12] - prvInitialiseMutex( ( Queue_t * ) xNewQueue ); - 8010ce4: 68f8 ldr r0, [r7, #12] - 8010ce6: f7ff ffb8 bl 8010c5a - - return xNewQueue; - 8010cea: 68fb ldr r3, [r7, #12] - } - 8010cec: 4618 mov r0, r3 - 8010cee: 3718 adds r7, #24 - 8010cf0: 46bd mov sp, r7 - 8010cf2: bd80 pop {r7, pc} - -08010cf4 : - -#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 ) -{ - 8010cf4: b580 push {r7, lr} - 8010cf6: b08e sub sp, #56 ; 0x38 - 8010cf8: af00 add r7, sp, #0 - 8010cfa: 60f8 str r0, [r7, #12] - 8010cfc: 60b9 str r1, [r7, #8] - 8010cfe: 607a str r2, [r7, #4] - 8010d00: 603b str r3, [r7, #0] -BaseType_t xEntryTimeSet = pdFALSE, xYieldRequired; - 8010d02: 2300 movs r3, #0 - 8010d04: 637b str r3, [r7, #52] ; 0x34 -TimeOut_t xTimeOut; -Queue_t * const pxQueue = xQueue; - 8010d06: 68fb ldr r3, [r7, #12] - 8010d08: 633b str r3, [r7, #48] ; 0x30 - - configASSERT( pxQueue ); - 8010d0a: 6b3b ldr r3, [r7, #48] ; 0x30 - 8010d0c: 2b00 cmp r3, #0 - 8010d0e: d10a bne.n 8010d26 - __asm volatile - 8010d10: f04f 0350 mov.w r3, #80 ; 0x50 - 8010d14: f383 8811 msr BASEPRI, r3 - 8010d18: f3bf 8f6f isb sy - 8010d1c: f3bf 8f4f dsb sy - 8010d20: 62bb str r3, [r7, #40] ; 0x28 -} - 8010d22: bf00 nop - 8010d24: e7fe b.n 8010d24 - configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) ); - 8010d26: 68bb ldr r3, [r7, #8] - 8010d28: 2b00 cmp r3, #0 - 8010d2a: d103 bne.n 8010d34 - 8010d2c: 6b3b ldr r3, [r7, #48] ; 0x30 - 8010d2e: 6c1b ldr r3, [r3, #64] ; 0x40 - 8010d30: 2b00 cmp r3, #0 - 8010d32: d101 bne.n 8010d38 - 8010d34: 2301 movs r3, #1 - 8010d36: e000 b.n 8010d3a - 8010d38: 2300 movs r3, #0 - 8010d3a: 2b00 cmp r3, #0 - 8010d3c: d10a bne.n 8010d54 - __asm volatile - 8010d3e: f04f 0350 mov.w r3, #80 ; 0x50 - 8010d42: f383 8811 msr BASEPRI, r3 - 8010d46: f3bf 8f6f isb sy - 8010d4a: f3bf 8f4f dsb sy - 8010d4e: 627b str r3, [r7, #36] ; 0x24 -} - 8010d50: bf00 nop - 8010d52: e7fe b.n 8010d52 - configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) ); - 8010d54: 683b ldr r3, [r7, #0] - 8010d56: 2b02 cmp r3, #2 - 8010d58: d103 bne.n 8010d62 - 8010d5a: 6b3b ldr r3, [r7, #48] ; 0x30 - 8010d5c: 6bdb ldr r3, [r3, #60] ; 0x3c - 8010d5e: 2b01 cmp r3, #1 - 8010d60: d101 bne.n 8010d66 - 8010d62: 2301 movs r3, #1 - 8010d64: e000 b.n 8010d68 - 8010d66: 2300 movs r3, #0 - 8010d68: 2b00 cmp r3, #0 - 8010d6a: d10a bne.n 8010d82 - __asm volatile - 8010d6c: f04f 0350 mov.w r3, #80 ; 0x50 - 8010d70: f383 8811 msr BASEPRI, r3 - 8010d74: f3bf 8f6f isb sy - 8010d78: f3bf 8f4f dsb sy - 8010d7c: 623b str r3, [r7, #32] -} - 8010d7e: bf00 nop - 8010d80: e7fe b.n 8010d80 - #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) - { - configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) ); - 8010d82: f001 fcc1 bl 8012708 - 8010d86: 4603 mov r3, r0 - 8010d88: 2b00 cmp r3, #0 - 8010d8a: d102 bne.n 8010d92 - 8010d8c: 687b ldr r3, [r7, #4] - 8010d8e: 2b00 cmp r3, #0 - 8010d90: d101 bne.n 8010d96 - 8010d92: 2301 movs r3, #1 - 8010d94: e000 b.n 8010d98 - 8010d96: 2300 movs r3, #0 - 8010d98: 2b00 cmp r3, #0 - 8010d9a: d10a bne.n 8010db2 - __asm volatile - 8010d9c: f04f 0350 mov.w r3, #80 ; 0x50 - 8010da0: f383 8811 msr BASEPRI, r3 - 8010da4: f3bf 8f6f isb sy - 8010da8: f3bf 8f4f dsb sy - 8010dac: 61fb str r3, [r7, #28] -} - 8010dae: bf00 nop - 8010db0: e7fe b.n 8010db0 - /*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(); - 8010db2: f002 fb27 bl 8013404 - { - /* 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 ) ) - 8010db6: 6b3b ldr r3, [r7, #48] ; 0x30 - 8010db8: 6b9a ldr r2, [r3, #56] ; 0x38 - 8010dba: 6b3b ldr r3, [r7, #48] ; 0x30 - 8010dbc: 6bdb ldr r3, [r3, #60] ; 0x3c - 8010dbe: 429a cmp r2, r3 - 8010dc0: d302 bcc.n 8010dc8 - 8010dc2: 683b ldr r3, [r7, #0] - 8010dc4: 2b02 cmp r3, #2 - 8010dc6: d129 bne.n 8010e1c - } - } - } - #else /* configUSE_QUEUE_SETS */ - { - xYieldRequired = prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition ); - 8010dc8: 683a ldr r2, [r7, #0] - 8010dca: 68b9 ldr r1, [r7, #8] - 8010dcc: 6b38 ldr r0, [r7, #48] ; 0x30 - 8010dce: f000 fc9a bl 8011706 - 8010dd2: 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 ) - 8010dd4: 6b3b ldr r3, [r7, #48] ; 0x30 - 8010dd6: 6a5b ldr r3, [r3, #36] ; 0x24 - 8010dd8: 2b00 cmp r3, #0 - 8010dda: d010 beq.n 8010dfe - { - if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) - 8010ddc: 6b3b ldr r3, [r7, #48] ; 0x30 - 8010dde: 3324 adds r3, #36 ; 0x24 - 8010de0: 4618 mov r0, r3 - 8010de2: f001 fa9d bl 8012320 - 8010de6: 4603 mov r3, r0 - 8010de8: 2b00 cmp r3, #0 - 8010dea: d013 beq.n 8010e14 - { - /* 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(); - 8010dec: 4b3f ldr r3, [pc, #252] ; (8010eec ) - 8010dee: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 8010df2: 601a str r2, [r3, #0] - 8010df4: f3bf 8f4f dsb sy - 8010df8: f3bf 8f6f isb sy - 8010dfc: e00a b.n 8010e14 - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else if( xYieldRequired != pdFALSE ) - 8010dfe: 6afb ldr r3, [r7, #44] ; 0x2c - 8010e00: 2b00 cmp r3, #0 - 8010e02: d007 beq.n 8010e14 - { - /* 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(); - 8010e04: 4b39 ldr r3, [pc, #228] ; (8010eec ) - 8010e06: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 8010e0a: 601a str r2, [r3, #0] - 8010e0c: f3bf 8f4f dsb sy - 8010e10: f3bf 8f6f isb sy - mtCOVERAGE_TEST_MARKER(); - } - } - #endif /* configUSE_QUEUE_SETS */ - - taskEXIT_CRITICAL(); - 8010e14: f002 fb26 bl 8013464 - return pdPASS; - 8010e18: 2301 movs r3, #1 - 8010e1a: e063 b.n 8010ee4 - } - else - { - if( xTicksToWait == ( TickType_t ) 0 ) - 8010e1c: 687b ldr r3, [r7, #4] - 8010e1e: 2b00 cmp r3, #0 - 8010e20: d103 bne.n 8010e2a - { - /* The queue was full and no block time is specified (or - the block time has expired) so leave now. */ - taskEXIT_CRITICAL(); - 8010e22: f002 fb1f bl 8013464 - - /* Return to the original privilege level before exiting - the function. */ - traceQUEUE_SEND_FAILED( pxQueue ); - return errQUEUE_FULL; - 8010e26: 2300 movs r3, #0 - 8010e28: e05c b.n 8010ee4 - } - else if( xEntryTimeSet == pdFALSE ) - 8010e2a: 6b7b ldr r3, [r7, #52] ; 0x34 - 8010e2c: 2b00 cmp r3, #0 - 8010e2e: d106 bne.n 8010e3e - { - /* The queue was full and a block time was specified so - configure the timeout structure. */ - vTaskInternalSetTimeOutState( &xTimeOut ); - 8010e30: f107 0314 add.w r3, r7, #20 - 8010e34: 4618 mov r0, r3 - 8010e36: f001 fad5 bl 80123e4 - xEntryTimeSet = pdTRUE; - 8010e3a: 2301 movs r3, #1 - 8010e3c: 637b str r3, [r7, #52] ; 0x34 - /* Entry time was already set. */ - mtCOVERAGE_TEST_MARKER(); - } - } - } - taskEXIT_CRITICAL(); - 8010e3e: f002 fb11 bl 8013464 - - /* Interrupts and other tasks can send to and receive from the queue - now the critical section has been exited. */ - - vTaskSuspendAll(); - 8010e42: f001 f82f bl 8011ea4 - prvLockQueue( pxQueue ); - 8010e46: f002 fadd bl 8013404 - 8010e4a: 6b3b ldr r3, [r7, #48] ; 0x30 - 8010e4c: f893 3044 ldrb.w r3, [r3, #68] ; 0x44 - 8010e50: b25b sxtb r3, r3 - 8010e52: f1b3 3fff cmp.w r3, #4294967295 - 8010e56: d103 bne.n 8010e60 - 8010e58: 6b3b ldr r3, [r7, #48] ; 0x30 - 8010e5a: 2200 movs r2, #0 - 8010e5c: f883 2044 strb.w r2, [r3, #68] ; 0x44 - 8010e60: 6b3b ldr r3, [r7, #48] ; 0x30 - 8010e62: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 - 8010e66: b25b sxtb r3, r3 - 8010e68: f1b3 3fff cmp.w r3, #4294967295 - 8010e6c: d103 bne.n 8010e76 - 8010e6e: 6b3b ldr r3, [r7, #48] ; 0x30 - 8010e70: 2200 movs r2, #0 - 8010e72: f883 2045 strb.w r2, [r3, #69] ; 0x45 - 8010e76: f002 faf5 bl 8013464 - - /* Update the timeout state to see if it has expired yet. */ - if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE ) - 8010e7a: 1d3a adds r2, r7, #4 - 8010e7c: f107 0314 add.w r3, r7, #20 - 8010e80: 4611 mov r1, r2 - 8010e82: 4618 mov r0, r3 - 8010e84: f001 fac4 bl 8012410 - 8010e88: 4603 mov r3, r0 - 8010e8a: 2b00 cmp r3, #0 - 8010e8c: d124 bne.n 8010ed8 - { - if( prvIsQueueFull( pxQueue ) != pdFALSE ) - 8010e8e: 6b38 ldr r0, [r7, #48] ; 0x30 - 8010e90: f000 fd31 bl 80118f6 - 8010e94: 4603 mov r3, r0 - 8010e96: 2b00 cmp r3, #0 - 8010e98: d018 beq.n 8010ecc - { - traceBLOCKING_ON_QUEUE_SEND( pxQueue ); - vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToSend ), xTicksToWait ); - 8010e9a: 6b3b ldr r3, [r7, #48] ; 0x30 - 8010e9c: 3310 adds r3, #16 - 8010e9e: 687a ldr r2, [r7, #4] - 8010ea0: 4611 mov r1, r2 - 8010ea2: 4618 mov r0, r3 - 8010ea4: f001 f9ec bl 8012280 - /* 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 ); - 8010ea8: 6b38 ldr r0, [r7, #48] ; 0x30 - 8010eaa: f000 fcbc bl 8011826 - /* 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 ) - 8010eae: f001 f807 bl 8011ec0 - 8010eb2: 4603 mov r3, r0 - 8010eb4: 2b00 cmp r3, #0 - 8010eb6: f47f af7c bne.w 8010db2 - { - portYIELD_WITHIN_API(); - 8010eba: 4b0c ldr r3, [pc, #48] ; (8010eec ) - 8010ebc: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 8010ec0: 601a str r2, [r3, #0] - 8010ec2: f3bf 8f4f dsb sy - 8010ec6: f3bf 8f6f isb sy - 8010eca: e772 b.n 8010db2 - } - } - else - { - /* Try again. */ - prvUnlockQueue( pxQueue ); - 8010ecc: 6b38 ldr r0, [r7, #48] ; 0x30 - 8010ece: f000 fcaa bl 8011826 - ( void ) xTaskResumeAll(); - 8010ed2: f000 fff5 bl 8011ec0 - 8010ed6: e76c b.n 8010db2 - } - } - else - { - /* The timeout has expired. */ - prvUnlockQueue( pxQueue ); - 8010ed8: 6b38 ldr r0, [r7, #48] ; 0x30 - 8010eda: f000 fca4 bl 8011826 - ( void ) xTaskResumeAll(); - 8010ede: f000 ffef bl 8011ec0 - - traceQUEUE_SEND_FAILED( pxQueue ); - return errQUEUE_FULL; - 8010ee2: 2300 movs r3, #0 - } - } /*lint -restore */ -} - 8010ee4: 4618 mov r0, r3 - 8010ee6: 3738 adds r7, #56 ; 0x38 - 8010ee8: 46bd mov sp, r7 - 8010eea: bd80 pop {r7, pc} - 8010eec: e000ed04 .word 0xe000ed04 - -08010ef0 : -/*-----------------------------------------------------------*/ - -BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue, const void * const pvItemToQueue, BaseType_t * const pxHigherPriorityTaskWoken, const BaseType_t xCopyPosition ) -{ - 8010ef0: b580 push {r7, lr} - 8010ef2: b090 sub sp, #64 ; 0x40 - 8010ef4: af00 add r7, sp, #0 - 8010ef6: 60f8 str r0, [r7, #12] - 8010ef8: 60b9 str r1, [r7, #8] - 8010efa: 607a str r2, [r7, #4] - 8010efc: 603b str r3, [r7, #0] -BaseType_t xReturn; -UBaseType_t uxSavedInterruptStatus; -Queue_t * const pxQueue = xQueue; - 8010efe: 68fb ldr r3, [r7, #12] - 8010f00: 63bb str r3, [r7, #56] ; 0x38 - - configASSERT( pxQueue ); - 8010f02: 6bbb ldr r3, [r7, #56] ; 0x38 - 8010f04: 2b00 cmp r3, #0 - 8010f06: d10a bne.n 8010f1e - __asm volatile - 8010f08: f04f 0350 mov.w r3, #80 ; 0x50 - 8010f0c: f383 8811 msr BASEPRI, r3 - 8010f10: f3bf 8f6f isb sy - 8010f14: f3bf 8f4f dsb sy - 8010f18: 62bb str r3, [r7, #40] ; 0x28 -} - 8010f1a: bf00 nop - 8010f1c: e7fe b.n 8010f1c - configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) ); - 8010f1e: 68bb ldr r3, [r7, #8] - 8010f20: 2b00 cmp r3, #0 - 8010f22: d103 bne.n 8010f2c - 8010f24: 6bbb ldr r3, [r7, #56] ; 0x38 - 8010f26: 6c1b ldr r3, [r3, #64] ; 0x40 - 8010f28: 2b00 cmp r3, #0 - 8010f2a: d101 bne.n 8010f30 - 8010f2c: 2301 movs r3, #1 - 8010f2e: e000 b.n 8010f32 - 8010f30: 2300 movs r3, #0 - 8010f32: 2b00 cmp r3, #0 - 8010f34: d10a bne.n 8010f4c - __asm volatile - 8010f36: f04f 0350 mov.w r3, #80 ; 0x50 - 8010f3a: f383 8811 msr BASEPRI, r3 - 8010f3e: f3bf 8f6f isb sy - 8010f42: f3bf 8f4f dsb sy - 8010f46: 627b str r3, [r7, #36] ; 0x24 -} - 8010f48: bf00 nop - 8010f4a: e7fe b.n 8010f4a - configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) ); - 8010f4c: 683b ldr r3, [r7, #0] - 8010f4e: 2b02 cmp r3, #2 - 8010f50: d103 bne.n 8010f5a - 8010f52: 6bbb ldr r3, [r7, #56] ; 0x38 - 8010f54: 6bdb ldr r3, [r3, #60] ; 0x3c - 8010f56: 2b01 cmp r3, #1 - 8010f58: d101 bne.n 8010f5e - 8010f5a: 2301 movs r3, #1 - 8010f5c: e000 b.n 8010f60 - 8010f5e: 2300 movs r3, #0 - 8010f60: 2b00 cmp r3, #0 - 8010f62: d10a bne.n 8010f7a - __asm volatile - 8010f64: f04f 0350 mov.w r3, #80 ; 0x50 - 8010f68: f383 8811 msr BASEPRI, r3 - 8010f6c: f3bf 8f6f isb sy - 8010f70: f3bf 8f4f dsb sy - 8010f74: 623b str r3, [r7, #32] -} - 8010f76: bf00 nop - 8010f78: e7fe b.n 8010f78 - 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(); - 8010f7a: f002 fb25 bl 80135c8 - -portFORCE_INLINE static uint32_t ulPortRaiseBASEPRI( void ) -{ -uint32_t ulOriginalBASEPRI, ulNewBASEPRI; - - __asm volatile - 8010f7e: f3ef 8211 mrs r2, BASEPRI - 8010f82: f04f 0350 mov.w r3, #80 ; 0x50 - 8010f86: f383 8811 msr BASEPRI, r3 - 8010f8a: f3bf 8f6f isb sy - 8010f8e: f3bf 8f4f dsb sy - 8010f92: 61fa str r2, [r7, #28] - 8010f94: 61bb str r3, [r7, #24] - :"=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; - 8010f96: 69fb ldr r3, [r7, #28] - /* 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(); - 8010f98: 637b str r3, [r7, #52] ; 0x34 - { - if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) ) - 8010f9a: 6bbb ldr r3, [r7, #56] ; 0x38 - 8010f9c: 6b9a ldr r2, [r3, #56] ; 0x38 - 8010f9e: 6bbb ldr r3, [r7, #56] ; 0x38 - 8010fa0: 6bdb ldr r3, [r3, #60] ; 0x3c - 8010fa2: 429a cmp r2, r3 - 8010fa4: d302 bcc.n 8010fac - 8010fa6: 683b ldr r3, [r7, #0] - 8010fa8: 2b02 cmp r3, #2 - 8010faa: d12f bne.n 801100c - { - const int8_t cTxLock = pxQueue->cTxLock; - 8010fac: 6bbb ldr r3, [r7, #56] ; 0x38 - 8010fae: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 - 8010fb2: f887 3033 strb.w r3, [r7, #51] ; 0x33 - const UBaseType_t uxPreviousMessagesWaiting = pxQueue->uxMessagesWaiting; - 8010fb6: 6bbb ldr r3, [r7, #56] ; 0x38 - 8010fb8: 6b9b ldr r3, [r3, #56] ; 0x38 - 8010fba: 62fb str r3, [r7, #44] ; 0x2c - /* 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 ); - 8010fbc: 683a ldr r2, [r7, #0] - 8010fbe: 68b9 ldr r1, [r7, #8] - 8010fc0: 6bb8 ldr r0, [r7, #56] ; 0x38 - 8010fc2: f000 fba0 bl 8011706 - - /* The event list is not altered if the queue is locked. This will - be done when the queue is unlocked later. */ - if( cTxLock == queueUNLOCKED ) - 8010fc6: f997 3033 ldrsb.w r3, [r7, #51] ; 0x33 - 8010fca: f1b3 3fff cmp.w r3, #4294967295 - 8010fce: d112 bne.n 8010ff6 - } - } - } - #else /* configUSE_QUEUE_SETS */ - { - if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE ) - 8010fd0: 6bbb ldr r3, [r7, #56] ; 0x38 - 8010fd2: 6a5b ldr r3, [r3, #36] ; 0x24 - 8010fd4: 2b00 cmp r3, #0 - 8010fd6: d016 beq.n 8011006 - { - if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) - 8010fd8: 6bbb ldr r3, [r7, #56] ; 0x38 - 8010fda: 3324 adds r3, #36 ; 0x24 - 8010fdc: 4618 mov r0, r3 - 8010fde: f001 f99f bl 8012320 - 8010fe2: 4603 mov r3, r0 - 8010fe4: 2b00 cmp r3, #0 - 8010fe6: d00e beq.n 8011006 - { - /* The task waiting has a higher priority so record that a - context switch is required. */ - if( pxHigherPriorityTaskWoken != NULL ) - 8010fe8: 687b ldr r3, [r7, #4] - 8010fea: 2b00 cmp r3, #0 - 8010fec: d00b beq.n 8011006 - { - *pxHigherPriorityTaskWoken = pdTRUE; - 8010fee: 687b ldr r3, [r7, #4] - 8010ff0: 2201 movs r2, #1 - 8010ff2: 601a str r2, [r3, #0] - 8010ff4: e007 b.n 8011006 - } - 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 ); - 8010ff6: f897 3033 ldrb.w r3, [r7, #51] ; 0x33 - 8010ffa: 3301 adds r3, #1 - 8010ffc: b2db uxtb r3, r3 - 8010ffe: b25a sxtb r2, r3 - 8011000: 6bbb ldr r3, [r7, #56] ; 0x38 - 8011002: f883 2045 strb.w r2, [r3, #69] ; 0x45 - } - - xReturn = pdPASS; - 8011006: 2301 movs r3, #1 - 8011008: 63fb str r3, [r7, #60] ; 0x3c - { - 801100a: e001 b.n 8011010 - } - else - { - traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue ); - xReturn = errQUEUE_FULL; - 801100c: 2300 movs r3, #0 - 801100e: 63fb str r3, [r7, #60] ; 0x3c - 8011010: 6b7b ldr r3, [r7, #52] ; 0x34 - 8011012: 617b str r3, [r7, #20] -} -/*-----------------------------------------------------------*/ - -portFORCE_INLINE static void vPortSetBASEPRI( uint32_t ulNewMaskValue ) -{ - __asm volatile - 8011014: 697b ldr r3, [r7, #20] - 8011016: f383 8811 msr BASEPRI, r3 - ( - " msr basepri, %0 " :: "r" ( ulNewMaskValue ) : "memory" - ); -} - 801101a: bf00 nop - } - } - portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); - - return xReturn; - 801101c: 6bfb ldr r3, [r7, #60] ; 0x3c -} - 801101e: 4618 mov r0, r3 - 8011020: 3740 adds r7, #64 ; 0x40 - 8011022: 46bd mov sp, r7 - 8011024: bd80 pop {r7, pc} - -08011026 : -/*-----------------------------------------------------------*/ - -BaseType_t xQueueGiveFromISR( QueueHandle_t xQueue, BaseType_t * const pxHigherPriorityTaskWoken ) -{ - 8011026: b580 push {r7, lr} - 8011028: b08e sub sp, #56 ; 0x38 - 801102a: af00 add r7, sp, #0 - 801102c: 6078 str r0, [r7, #4] - 801102e: 6039 str r1, [r7, #0] -BaseType_t xReturn; -UBaseType_t uxSavedInterruptStatus; -Queue_t * const pxQueue = xQueue; - 8011030: 687b ldr r3, [r7, #4] - 8011032: 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 ); - 8011034: 6b3b ldr r3, [r7, #48] ; 0x30 - 8011036: 2b00 cmp r3, #0 - 8011038: d10a bne.n 8011050 - __asm volatile - 801103a: f04f 0350 mov.w r3, #80 ; 0x50 - 801103e: f383 8811 msr BASEPRI, r3 - 8011042: f3bf 8f6f isb sy - 8011046: f3bf 8f4f dsb sy - 801104a: 623b str r3, [r7, #32] -} - 801104c: bf00 nop - 801104e: e7fe b.n 801104e - - /* xQueueGenericSendFromISR() should be used instead of xQueueGiveFromISR() - if the item size is not 0. */ - configASSERT( pxQueue->uxItemSize == 0 ); - 8011050: 6b3b ldr r3, [r7, #48] ; 0x30 - 8011052: 6c1b ldr r3, [r3, #64] ; 0x40 - 8011054: 2b00 cmp r3, #0 - 8011056: d00a beq.n 801106e - __asm volatile - 8011058: f04f 0350 mov.w r3, #80 ; 0x50 - 801105c: f383 8811 msr BASEPRI, r3 - 8011060: f3bf 8f6f isb sy - 8011064: f3bf 8f4f dsb sy - 8011068: 61fb str r3, [r7, #28] -} - 801106a: bf00 nop - 801106c: e7fe b.n 801106c - - /* 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 ) ) ); - 801106e: 6b3b ldr r3, [r7, #48] ; 0x30 - 8011070: 681b ldr r3, [r3, #0] - 8011072: 2b00 cmp r3, #0 - 8011074: d103 bne.n 801107e - 8011076: 6b3b ldr r3, [r7, #48] ; 0x30 - 8011078: 689b ldr r3, [r3, #8] - 801107a: 2b00 cmp r3, #0 - 801107c: d101 bne.n 8011082 - 801107e: 2301 movs r3, #1 - 8011080: e000 b.n 8011084 - 8011082: 2300 movs r3, #0 - 8011084: 2b00 cmp r3, #0 - 8011086: d10a bne.n 801109e - __asm volatile - 8011088: f04f 0350 mov.w r3, #80 ; 0x50 - 801108c: f383 8811 msr BASEPRI, r3 - 8011090: f3bf 8f6f isb sy - 8011094: f3bf 8f4f dsb sy - 8011098: 61bb str r3, [r7, #24] -} - 801109a: bf00 nop - 801109c: e7fe b.n 801109c - 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(); - 801109e: f002 fa93 bl 80135c8 - __asm volatile - 80110a2: f3ef 8211 mrs r2, BASEPRI - 80110a6: f04f 0350 mov.w r3, #80 ; 0x50 - 80110aa: f383 8811 msr BASEPRI, r3 - 80110ae: f3bf 8f6f isb sy - 80110b2: f3bf 8f4f dsb sy - 80110b6: 617a str r2, [r7, #20] - 80110b8: 613b str r3, [r7, #16] - return ulOriginalBASEPRI; - 80110ba: 697b ldr r3, [r7, #20] - - uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR(); - 80110bc: 62fb str r3, [r7, #44] ; 0x2c - { - const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting; - 80110be: 6b3b ldr r3, [r7, #48] ; 0x30 - 80110c0: 6b9b ldr r3, [r3, #56] ; 0x38 - 80110c2: 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 ) - 80110c4: 6b3b ldr r3, [r7, #48] ; 0x30 - 80110c6: 6bdb ldr r3, [r3, #60] ; 0x3c - 80110c8: 6aba ldr r2, [r7, #40] ; 0x28 - 80110ca: 429a cmp r2, r3 - 80110cc: d22b bcs.n 8011126 - { - const int8_t cTxLock = pxQueue->cTxLock; - 80110ce: 6b3b ldr r3, [r7, #48] ; 0x30 - 80110d0: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 - 80110d4: 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; - 80110d8: 6abb ldr r3, [r7, #40] ; 0x28 - 80110da: 1c5a adds r2, r3, #1 - 80110dc: 6b3b ldr r3, [r7, #48] ; 0x30 - 80110de: 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 ) - 80110e0: f997 3027 ldrsb.w r3, [r7, #39] ; 0x27 - 80110e4: f1b3 3fff cmp.w r3, #4294967295 - 80110e8: d112 bne.n 8011110 - } - } - } - #else /* configUSE_QUEUE_SETS */ - { - if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE ) - 80110ea: 6b3b ldr r3, [r7, #48] ; 0x30 - 80110ec: 6a5b ldr r3, [r3, #36] ; 0x24 - 80110ee: 2b00 cmp r3, #0 - 80110f0: d016 beq.n 8011120 - { - if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) - 80110f2: 6b3b ldr r3, [r7, #48] ; 0x30 - 80110f4: 3324 adds r3, #36 ; 0x24 - 80110f6: 4618 mov r0, r3 - 80110f8: f001 f912 bl 8012320 - 80110fc: 4603 mov r3, r0 - 80110fe: 2b00 cmp r3, #0 - 8011100: d00e beq.n 8011120 - { - /* The task waiting has a higher priority so record that a - context switch is required. */ - if( pxHigherPriorityTaskWoken != NULL ) - 8011102: 683b ldr r3, [r7, #0] - 8011104: 2b00 cmp r3, #0 - 8011106: d00b beq.n 8011120 - { - *pxHigherPriorityTaskWoken = pdTRUE; - 8011108: 683b ldr r3, [r7, #0] - 801110a: 2201 movs r2, #1 - 801110c: 601a str r2, [r3, #0] - 801110e: e007 b.n 8011120 - } - 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 ); - 8011110: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8011114: 3301 adds r3, #1 - 8011116: b2db uxtb r3, r3 - 8011118: b25a sxtb r2, r3 - 801111a: 6b3b ldr r3, [r7, #48] ; 0x30 - 801111c: f883 2045 strb.w r2, [r3, #69] ; 0x45 - } - - xReturn = pdPASS; - 8011120: 2301 movs r3, #1 - 8011122: 637b str r3, [r7, #52] ; 0x34 - 8011124: e001 b.n 801112a - } - else - { - traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue ); - xReturn = errQUEUE_FULL; - 8011126: 2300 movs r3, #0 - 8011128: 637b str r3, [r7, #52] ; 0x34 - 801112a: 6afb ldr r3, [r7, #44] ; 0x2c - 801112c: 60fb str r3, [r7, #12] - __asm volatile - 801112e: 68fb ldr r3, [r7, #12] - 8011130: f383 8811 msr BASEPRI, r3 -} - 8011134: bf00 nop - } - } - portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); - - return xReturn; - 8011136: 6b7b ldr r3, [r7, #52] ; 0x34 -} - 8011138: 4618 mov r0, r3 - 801113a: 3738 adds r7, #56 ; 0x38 - 801113c: 46bd mov sp, r7 - 801113e: bd80 pop {r7, pc} - -08011140 : -/*-----------------------------------------------------------*/ - -BaseType_t xQueueReceive( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait ) -{ - 8011140: b580 push {r7, lr} - 8011142: b08c sub sp, #48 ; 0x30 - 8011144: af00 add r7, sp, #0 - 8011146: 60f8 str r0, [r7, #12] - 8011148: 60b9 str r1, [r7, #8] - 801114a: 607a str r2, [r7, #4] -BaseType_t xEntryTimeSet = pdFALSE; - 801114c: 2300 movs r3, #0 - 801114e: 62fb str r3, [r7, #44] ; 0x2c -TimeOut_t xTimeOut; -Queue_t * const pxQueue = xQueue; - 8011150: 68fb ldr r3, [r7, #12] - 8011152: 62bb str r3, [r7, #40] ; 0x28 - - /* Check the pointer is not NULL. */ - configASSERT( ( pxQueue ) ); - 8011154: 6abb ldr r3, [r7, #40] ; 0x28 - 8011156: 2b00 cmp r3, #0 - 8011158: d10a bne.n 8011170 - __asm volatile - 801115a: f04f 0350 mov.w r3, #80 ; 0x50 - 801115e: f383 8811 msr BASEPRI, r3 - 8011162: f3bf 8f6f isb sy - 8011166: f3bf 8f4f dsb sy - 801116a: 623b str r3, [r7, #32] -} - 801116c: bf00 nop - 801116e: e7fe b.n 801116e - - /* 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 ) ) ); - 8011170: 68bb ldr r3, [r7, #8] - 8011172: 2b00 cmp r3, #0 - 8011174: d103 bne.n 801117e - 8011176: 6abb ldr r3, [r7, #40] ; 0x28 - 8011178: 6c1b ldr r3, [r3, #64] ; 0x40 - 801117a: 2b00 cmp r3, #0 - 801117c: d101 bne.n 8011182 - 801117e: 2301 movs r3, #1 - 8011180: e000 b.n 8011184 - 8011182: 2300 movs r3, #0 - 8011184: 2b00 cmp r3, #0 - 8011186: d10a bne.n 801119e - __asm volatile - 8011188: f04f 0350 mov.w r3, #80 ; 0x50 - 801118c: f383 8811 msr BASEPRI, r3 - 8011190: f3bf 8f6f isb sy - 8011194: f3bf 8f4f dsb sy - 8011198: 61fb str r3, [r7, #28] -} - 801119a: bf00 nop - 801119c: e7fe b.n 801119c - - /* Cannot block if the scheduler is suspended. */ - #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) - { - configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) ); - 801119e: f001 fab3 bl 8012708 - 80111a2: 4603 mov r3, r0 - 80111a4: 2b00 cmp r3, #0 - 80111a6: d102 bne.n 80111ae - 80111a8: 687b ldr r3, [r7, #4] - 80111aa: 2b00 cmp r3, #0 - 80111ac: d101 bne.n 80111b2 - 80111ae: 2301 movs r3, #1 - 80111b0: e000 b.n 80111b4 - 80111b2: 2300 movs r3, #0 - 80111b4: 2b00 cmp r3, #0 - 80111b6: d10a bne.n 80111ce - __asm volatile - 80111b8: f04f 0350 mov.w r3, #80 ; 0x50 - 80111bc: f383 8811 msr BASEPRI, r3 - 80111c0: f3bf 8f6f isb sy - 80111c4: f3bf 8f4f dsb sy - 80111c8: 61bb str r3, [r7, #24] -} - 80111ca: bf00 nop - 80111cc: e7fe b.n 80111cc - /*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(); - 80111ce: f002 f919 bl 8013404 - { - const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting; - 80111d2: 6abb ldr r3, [r7, #40] ; 0x28 - 80111d4: 6b9b ldr r3, [r3, #56] ; 0x38 - 80111d6: 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 ) - 80111d8: 6a7b ldr r3, [r7, #36] ; 0x24 - 80111da: 2b00 cmp r3, #0 - 80111dc: d01f beq.n 801121e - { - /* Data available, remove one item. */ - prvCopyDataFromQueue( pxQueue, pvBuffer ); - 80111de: 68b9 ldr r1, [r7, #8] - 80111e0: 6ab8 ldr r0, [r7, #40] ; 0x28 - 80111e2: f000 fafa bl 80117da - traceQUEUE_RECEIVE( pxQueue ); - pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1; - 80111e6: 6a7b ldr r3, [r7, #36] ; 0x24 - 80111e8: 1e5a subs r2, r3, #1 - 80111ea: 6abb ldr r3, [r7, #40] ; 0x28 - 80111ec: 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 ) - 80111ee: 6abb ldr r3, [r7, #40] ; 0x28 - 80111f0: 691b ldr r3, [r3, #16] - 80111f2: 2b00 cmp r3, #0 - 80111f4: d00f beq.n 8011216 - { - if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE ) - 80111f6: 6abb ldr r3, [r7, #40] ; 0x28 - 80111f8: 3310 adds r3, #16 - 80111fa: 4618 mov r0, r3 - 80111fc: f001 f890 bl 8012320 - 8011200: 4603 mov r3, r0 - 8011202: 2b00 cmp r3, #0 - 8011204: d007 beq.n 8011216 - { - queueYIELD_IF_USING_PREEMPTION(); - 8011206: 4b3d ldr r3, [pc, #244] ; (80112fc ) - 8011208: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 801120c: 601a str r2, [r3, #0] - 801120e: f3bf 8f4f dsb sy - 8011212: f3bf 8f6f isb sy - else - { - mtCOVERAGE_TEST_MARKER(); - } - - taskEXIT_CRITICAL(); - 8011216: f002 f925 bl 8013464 - return pdPASS; - 801121a: 2301 movs r3, #1 - 801121c: e069 b.n 80112f2 - } - else - { - if( xTicksToWait == ( TickType_t ) 0 ) - 801121e: 687b ldr r3, [r7, #4] - 8011220: 2b00 cmp r3, #0 - 8011222: d103 bne.n 801122c - { - /* The queue was empty and no block time is specified (or - the block time has expired) so leave now. */ - taskEXIT_CRITICAL(); - 8011224: f002 f91e bl 8013464 - traceQUEUE_RECEIVE_FAILED( pxQueue ); - return errQUEUE_EMPTY; - 8011228: 2300 movs r3, #0 - 801122a: e062 b.n 80112f2 - } - else if( xEntryTimeSet == pdFALSE ) - 801122c: 6afb ldr r3, [r7, #44] ; 0x2c - 801122e: 2b00 cmp r3, #0 - 8011230: d106 bne.n 8011240 - { - /* The queue was empty and a block time was specified so - configure the timeout structure. */ - vTaskInternalSetTimeOutState( &xTimeOut ); - 8011232: f107 0310 add.w r3, r7, #16 - 8011236: 4618 mov r0, r3 - 8011238: f001 f8d4 bl 80123e4 - xEntryTimeSet = pdTRUE; - 801123c: 2301 movs r3, #1 - 801123e: 62fb str r3, [r7, #44] ; 0x2c - /* Entry time was already set. */ - mtCOVERAGE_TEST_MARKER(); - } - } - } - taskEXIT_CRITICAL(); - 8011240: f002 f910 bl 8013464 - - /* Interrupts and other tasks can send to and receive from the queue - now the critical section has been exited. */ - - vTaskSuspendAll(); - 8011244: f000 fe2e bl 8011ea4 - prvLockQueue( pxQueue ); - 8011248: f002 f8dc bl 8013404 - 801124c: 6abb ldr r3, [r7, #40] ; 0x28 - 801124e: f893 3044 ldrb.w r3, [r3, #68] ; 0x44 - 8011252: b25b sxtb r3, r3 - 8011254: f1b3 3fff cmp.w r3, #4294967295 - 8011258: d103 bne.n 8011262 - 801125a: 6abb ldr r3, [r7, #40] ; 0x28 - 801125c: 2200 movs r2, #0 - 801125e: f883 2044 strb.w r2, [r3, #68] ; 0x44 - 8011262: 6abb ldr r3, [r7, #40] ; 0x28 - 8011264: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 - 8011268: b25b sxtb r3, r3 - 801126a: f1b3 3fff cmp.w r3, #4294967295 - 801126e: d103 bne.n 8011278 - 8011270: 6abb ldr r3, [r7, #40] ; 0x28 - 8011272: 2200 movs r2, #0 - 8011274: f883 2045 strb.w r2, [r3, #69] ; 0x45 - 8011278: f002 f8f4 bl 8013464 - - /* Update the timeout state to see if it has expired yet. */ - if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE ) - 801127c: 1d3a adds r2, r7, #4 - 801127e: f107 0310 add.w r3, r7, #16 - 8011282: 4611 mov r1, r2 - 8011284: 4618 mov r0, r3 - 8011286: f001 f8c3 bl 8012410 - 801128a: 4603 mov r3, r0 - 801128c: 2b00 cmp r3, #0 - 801128e: d123 bne.n 80112d8 - { - /* 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 ) - 8011290: 6ab8 ldr r0, [r7, #40] ; 0x28 - 8011292: f000 fb1a bl 80118ca - 8011296: 4603 mov r3, r0 - 8011298: 2b00 cmp r3, #0 - 801129a: d017 beq.n 80112cc - { - traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue ); - vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait ); - 801129c: 6abb ldr r3, [r7, #40] ; 0x28 - 801129e: 3324 adds r3, #36 ; 0x24 - 80112a0: 687a ldr r2, [r7, #4] - 80112a2: 4611 mov r1, r2 - 80112a4: 4618 mov r0, r3 - 80112a6: f000 ffeb bl 8012280 - prvUnlockQueue( pxQueue ); - 80112aa: 6ab8 ldr r0, [r7, #40] ; 0x28 - 80112ac: f000 fabb bl 8011826 - if( xTaskResumeAll() == pdFALSE ) - 80112b0: f000 fe06 bl 8011ec0 - 80112b4: 4603 mov r3, r0 - 80112b6: 2b00 cmp r3, #0 - 80112b8: d189 bne.n 80111ce - { - portYIELD_WITHIN_API(); - 80112ba: 4b10 ldr r3, [pc, #64] ; (80112fc ) - 80112bc: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 80112c0: 601a str r2, [r3, #0] - 80112c2: f3bf 8f4f dsb sy - 80112c6: f3bf 8f6f isb sy - 80112ca: e780 b.n 80111ce - } - else - { - /* The queue contains data again. Loop back to try and read the - data. */ - prvUnlockQueue( pxQueue ); - 80112cc: 6ab8 ldr r0, [r7, #40] ; 0x28 - 80112ce: f000 faaa bl 8011826 - ( void ) xTaskResumeAll(); - 80112d2: f000 fdf5 bl 8011ec0 - 80112d6: e77a b.n 80111ce - } - else - { - /* Timed out. If there is no data in the queue exit, otherwise loop - back and attempt to read the data. */ - prvUnlockQueue( pxQueue ); - 80112d8: 6ab8 ldr r0, [r7, #40] ; 0x28 - 80112da: f000 faa4 bl 8011826 - ( void ) xTaskResumeAll(); - 80112de: f000 fdef bl 8011ec0 - - if( prvIsQueueEmpty( pxQueue ) != pdFALSE ) - 80112e2: 6ab8 ldr r0, [r7, #40] ; 0x28 - 80112e4: f000 faf1 bl 80118ca - 80112e8: 4603 mov r3, r0 - 80112ea: 2b00 cmp r3, #0 - 80112ec: f43f af6f beq.w 80111ce - { - traceQUEUE_RECEIVE_FAILED( pxQueue ); - return errQUEUE_EMPTY; - 80112f0: 2300 movs r3, #0 - { - mtCOVERAGE_TEST_MARKER(); - } - } - } /*lint -restore */ -} - 80112f2: 4618 mov r0, r3 - 80112f4: 3730 adds r7, #48 ; 0x30 - 80112f6: 46bd mov sp, r7 - 80112f8: bd80 pop {r7, pc} - 80112fa: bf00 nop - 80112fc: e000ed04 .word 0xe000ed04 - -08011300 : -/*-----------------------------------------------------------*/ - -BaseType_t xQueueSemaphoreTake( QueueHandle_t xQueue, TickType_t xTicksToWait ) -{ - 8011300: b580 push {r7, lr} - 8011302: b08e sub sp, #56 ; 0x38 - 8011304: af00 add r7, sp, #0 - 8011306: 6078 str r0, [r7, #4] - 8011308: 6039 str r1, [r7, #0] -BaseType_t xEntryTimeSet = pdFALSE; - 801130a: 2300 movs r3, #0 - 801130c: 637b str r3, [r7, #52] ; 0x34 -TimeOut_t xTimeOut; -Queue_t * const pxQueue = xQueue; - 801130e: 687b ldr r3, [r7, #4] - 8011310: 62fb str r3, [r7, #44] ; 0x2c - -#if( configUSE_MUTEXES == 1 ) - BaseType_t xInheritanceOccurred = pdFALSE; - 8011312: 2300 movs r3, #0 - 8011314: 633b str r3, [r7, #48] ; 0x30 -#endif - - /* Check the queue pointer is not NULL. */ - configASSERT( ( pxQueue ) ); - 8011316: 6afb ldr r3, [r7, #44] ; 0x2c - 8011318: 2b00 cmp r3, #0 - 801131a: d10a bne.n 8011332 - __asm volatile - 801131c: f04f 0350 mov.w r3, #80 ; 0x50 - 8011320: f383 8811 msr BASEPRI, r3 - 8011324: f3bf 8f6f isb sy - 8011328: f3bf 8f4f dsb sy - 801132c: 623b str r3, [r7, #32] -} - 801132e: bf00 nop - 8011330: e7fe b.n 8011330 - - /* Check this really is a semaphore, in which case the item size will be - 0. */ - configASSERT( pxQueue->uxItemSize == 0 ); - 8011332: 6afb ldr r3, [r7, #44] ; 0x2c - 8011334: 6c1b ldr r3, [r3, #64] ; 0x40 - 8011336: 2b00 cmp r3, #0 - 8011338: d00a beq.n 8011350 - __asm volatile - 801133a: f04f 0350 mov.w r3, #80 ; 0x50 - 801133e: f383 8811 msr BASEPRI, r3 - 8011342: f3bf 8f6f isb sy - 8011346: f3bf 8f4f dsb sy - 801134a: 61fb str r3, [r7, #28] -} - 801134c: bf00 nop - 801134e: e7fe b.n 801134e - - /* Cannot block if the scheduler is suspended. */ - #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) - { - configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) ); - 8011350: f001 f9da bl 8012708 - 8011354: 4603 mov r3, r0 - 8011356: 2b00 cmp r3, #0 - 8011358: d102 bne.n 8011360 - 801135a: 683b ldr r3, [r7, #0] - 801135c: 2b00 cmp r3, #0 - 801135e: d101 bne.n 8011364 - 8011360: 2301 movs r3, #1 - 8011362: e000 b.n 8011366 - 8011364: 2300 movs r3, #0 - 8011366: 2b00 cmp r3, #0 - 8011368: d10a bne.n 8011380 - __asm volatile - 801136a: f04f 0350 mov.w r3, #80 ; 0x50 - 801136e: f383 8811 msr BASEPRI, r3 - 8011372: f3bf 8f6f isb sy - 8011376: f3bf 8f4f dsb sy - 801137a: 61bb str r3, [r7, #24] -} - 801137c: bf00 nop - 801137e: e7fe b.n 801137e - /*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(); - 8011380: f002 f840 bl 8013404 - { - /* 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; - 8011384: 6afb ldr r3, [r7, #44] ; 0x2c - 8011386: 6b9b ldr r3, [r3, #56] ; 0x38 - 8011388: 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 ) - 801138a: 6abb ldr r3, [r7, #40] ; 0x28 - 801138c: 2b00 cmp r3, #0 - 801138e: d024 beq.n 80113da - { - 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; - 8011390: 6abb ldr r3, [r7, #40] ; 0x28 - 8011392: 1e5a subs r2, r3, #1 - 8011394: 6afb ldr r3, [r7, #44] ; 0x2c - 8011396: 639a str r2, [r3, #56] ; 0x38 - - #if ( configUSE_MUTEXES == 1 ) - { - if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX ) - 8011398: 6afb ldr r3, [r7, #44] ; 0x2c - 801139a: 681b ldr r3, [r3, #0] - 801139c: 2b00 cmp r3, #0 - 801139e: d104 bne.n 80113aa - { - /* Record the information required to implement - priority inheritance should it become necessary. */ - pxQueue->u.xSemaphore.xMutexHolder = pvTaskIncrementMutexHeldCount(); - 80113a0: f001 fb5a bl 8012a58 - 80113a4: 4602 mov r2, r0 - 80113a6: 6afb ldr r3, [r7, #44] ; 0x2c - 80113a8: 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 ) - 80113aa: 6afb ldr r3, [r7, #44] ; 0x2c - 80113ac: 691b ldr r3, [r3, #16] - 80113ae: 2b00 cmp r3, #0 - 80113b0: d00f beq.n 80113d2 - { - if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE ) - 80113b2: 6afb ldr r3, [r7, #44] ; 0x2c - 80113b4: 3310 adds r3, #16 - 80113b6: 4618 mov r0, r3 - 80113b8: f000 ffb2 bl 8012320 - 80113bc: 4603 mov r3, r0 - 80113be: 2b00 cmp r3, #0 - 80113c0: d007 beq.n 80113d2 - { - queueYIELD_IF_USING_PREEMPTION(); - 80113c2: 4b54 ldr r3, [pc, #336] ; (8011514 ) - 80113c4: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 80113c8: 601a str r2, [r3, #0] - 80113ca: f3bf 8f4f dsb sy - 80113ce: f3bf 8f6f isb sy - else - { - mtCOVERAGE_TEST_MARKER(); - } - - taskEXIT_CRITICAL(); - 80113d2: f002 f847 bl 8013464 - return pdPASS; - 80113d6: 2301 movs r3, #1 - 80113d8: e097 b.n 801150a - } - else - { - if( xTicksToWait == ( TickType_t ) 0 ) - 80113da: 683b ldr r3, [r7, #0] - 80113dc: 2b00 cmp r3, #0 - 80113de: d111 bne.n 8011404 - /* 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 ); - 80113e0: 6b3b ldr r3, [r7, #48] ; 0x30 - 80113e2: 2b00 cmp r3, #0 - 80113e4: d00a beq.n 80113fc - __asm volatile - 80113e6: f04f 0350 mov.w r3, #80 ; 0x50 - 80113ea: f383 8811 msr BASEPRI, r3 - 80113ee: f3bf 8f6f isb sy - 80113f2: f3bf 8f4f dsb sy - 80113f6: 617b str r3, [r7, #20] -} - 80113f8: bf00 nop - 80113fa: e7fe b.n 80113fa - } - #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(); - 80113fc: f002 f832 bl 8013464 - traceQUEUE_RECEIVE_FAILED( pxQueue ); - return errQUEUE_EMPTY; - 8011400: 2300 movs r3, #0 - 8011402: e082 b.n 801150a - } - else if( xEntryTimeSet == pdFALSE ) - 8011404: 6b7b ldr r3, [r7, #52] ; 0x34 - 8011406: 2b00 cmp r3, #0 - 8011408: d106 bne.n 8011418 - { - /* The semaphore count was 0 and a block time was specified - so configure the timeout structure ready to block. */ - vTaskInternalSetTimeOutState( &xTimeOut ); - 801140a: f107 030c add.w r3, r7, #12 - 801140e: 4618 mov r0, r3 - 8011410: f000 ffe8 bl 80123e4 - xEntryTimeSet = pdTRUE; - 8011414: 2301 movs r3, #1 - 8011416: 637b str r3, [r7, #52] ; 0x34 - /* Entry time was already set. */ - mtCOVERAGE_TEST_MARKER(); - } - } - } - taskEXIT_CRITICAL(); - 8011418: f002 f824 bl 8013464 - - /* Interrupts and other tasks can give to and take from the semaphore - now the critical section has been exited. */ - - vTaskSuspendAll(); - 801141c: f000 fd42 bl 8011ea4 - prvLockQueue( pxQueue ); - 8011420: f001 fff0 bl 8013404 - 8011424: 6afb ldr r3, [r7, #44] ; 0x2c - 8011426: f893 3044 ldrb.w r3, [r3, #68] ; 0x44 - 801142a: b25b sxtb r3, r3 - 801142c: f1b3 3fff cmp.w r3, #4294967295 - 8011430: d103 bne.n 801143a - 8011432: 6afb ldr r3, [r7, #44] ; 0x2c - 8011434: 2200 movs r2, #0 - 8011436: f883 2044 strb.w r2, [r3, #68] ; 0x44 - 801143a: 6afb ldr r3, [r7, #44] ; 0x2c - 801143c: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 - 8011440: b25b sxtb r3, r3 - 8011442: f1b3 3fff cmp.w r3, #4294967295 - 8011446: d103 bne.n 8011450 - 8011448: 6afb ldr r3, [r7, #44] ; 0x2c - 801144a: 2200 movs r2, #0 - 801144c: f883 2045 strb.w r2, [r3, #69] ; 0x45 - 8011450: f002 f808 bl 8013464 - - /* Update the timeout state to see if it has expired yet. */ - if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE ) - 8011454: 463a mov r2, r7 - 8011456: f107 030c add.w r3, r7, #12 - 801145a: 4611 mov r1, r2 - 801145c: 4618 mov r0, r3 - 801145e: f000 ffd7 bl 8012410 - 8011462: 4603 mov r3, r0 - 8011464: 2b00 cmp r3, #0 - 8011466: d132 bne.n 80114ce - { - /* 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 ) - 8011468: 6af8 ldr r0, [r7, #44] ; 0x2c - 801146a: f000 fa2e bl 80118ca - 801146e: 4603 mov r3, r0 - 8011470: 2b00 cmp r3, #0 - 8011472: d026 beq.n 80114c2 - { - traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue ); - - #if ( configUSE_MUTEXES == 1 ) - { - if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX ) - 8011474: 6afb ldr r3, [r7, #44] ; 0x2c - 8011476: 681b ldr r3, [r3, #0] - 8011478: 2b00 cmp r3, #0 - 801147a: d109 bne.n 8011490 - { - taskENTER_CRITICAL(); - 801147c: f001 ffc2 bl 8013404 - { - xInheritanceOccurred = xTaskPriorityInherit( pxQueue->u.xSemaphore.xMutexHolder ); - 8011480: 6afb ldr r3, [r7, #44] ; 0x2c - 8011482: 689b ldr r3, [r3, #8] - 8011484: 4618 mov r0, r3 - 8011486: f001 f95d bl 8012744 - 801148a: 6338 str r0, [r7, #48] ; 0x30 - } - taskEXIT_CRITICAL(); - 801148c: f001 ffea bl 8013464 - mtCOVERAGE_TEST_MARKER(); - } - } - #endif - - vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait ); - 8011490: 6afb ldr r3, [r7, #44] ; 0x2c - 8011492: 3324 adds r3, #36 ; 0x24 - 8011494: 683a ldr r2, [r7, #0] - 8011496: 4611 mov r1, r2 - 8011498: 4618 mov r0, r3 - 801149a: f000 fef1 bl 8012280 - prvUnlockQueue( pxQueue ); - 801149e: 6af8 ldr r0, [r7, #44] ; 0x2c - 80114a0: f000 f9c1 bl 8011826 - if( xTaskResumeAll() == pdFALSE ) - 80114a4: f000 fd0c bl 8011ec0 - 80114a8: 4603 mov r3, r0 - 80114aa: 2b00 cmp r3, #0 - 80114ac: f47f af68 bne.w 8011380 - { - portYIELD_WITHIN_API(); - 80114b0: 4b18 ldr r3, [pc, #96] ; (8011514 ) - 80114b2: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 80114b6: 601a str r2, [r3, #0] - 80114b8: f3bf 8f4f dsb sy - 80114bc: f3bf 8f6f isb sy - 80114c0: e75e b.n 8011380 - } - else - { - /* There was no timeout and the semaphore count was not 0, so - attempt to take the semaphore again. */ - prvUnlockQueue( pxQueue ); - 80114c2: 6af8 ldr r0, [r7, #44] ; 0x2c - 80114c4: f000 f9af bl 8011826 - ( void ) xTaskResumeAll(); - 80114c8: f000 fcfa bl 8011ec0 - 80114cc: e758 b.n 8011380 - } - } - else - { - /* Timed out. */ - prvUnlockQueue( pxQueue ); - 80114ce: 6af8 ldr r0, [r7, #44] ; 0x2c - 80114d0: f000 f9a9 bl 8011826 - ( void ) xTaskResumeAll(); - 80114d4: f000 fcf4 bl 8011ec0 - - /* 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 ) - 80114d8: 6af8 ldr r0, [r7, #44] ; 0x2c - 80114da: f000 f9f6 bl 80118ca - 80114de: 4603 mov r3, r0 - 80114e0: 2b00 cmp r3, #0 - 80114e2: f43f af4d beq.w 8011380 - #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 ) - 80114e6: 6b3b ldr r3, [r7, #48] ; 0x30 - 80114e8: 2b00 cmp r3, #0 - 80114ea: d00d beq.n 8011508 - { - taskENTER_CRITICAL(); - 80114ec: f001 ff8a bl 8013404 - /* 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 ); - 80114f0: 6af8 ldr r0, [r7, #44] ; 0x2c - 80114f2: f000 f8f0 bl 80116d6 - 80114f6: 6278 str r0, [r7, #36] ; 0x24 - vTaskPriorityDisinheritAfterTimeout( pxQueue->u.xSemaphore.xMutexHolder, uxHighestWaitingPriority ); - 80114f8: 6afb ldr r3, [r7, #44] ; 0x2c - 80114fa: 689b ldr r3, [r3, #8] - 80114fc: 6a79 ldr r1, [r7, #36] ; 0x24 - 80114fe: 4618 mov r0, r3 - 8011500: f001 fa1c bl 801293c - } - taskEXIT_CRITICAL(); - 8011504: f001 ffae bl 8013464 - } - } - #endif /* configUSE_MUTEXES */ - - traceQUEUE_RECEIVE_FAILED( pxQueue ); - return errQUEUE_EMPTY; - 8011508: 2300 movs r3, #0 - { - mtCOVERAGE_TEST_MARKER(); - } - } - } /*lint -restore */ -} - 801150a: 4618 mov r0, r3 - 801150c: 3738 adds r7, #56 ; 0x38 - 801150e: 46bd mov sp, r7 - 8011510: bd80 pop {r7, pc} - 8011512: bf00 nop - 8011514: e000ed04 .word 0xe000ed04 - -08011518 : - } /*lint -restore */ -} -/*-----------------------------------------------------------*/ - -BaseType_t xQueueReceiveFromISR( QueueHandle_t xQueue, void * const pvBuffer, BaseType_t * const pxHigherPriorityTaskWoken ) -{ - 8011518: b580 push {r7, lr} - 801151a: b08e sub sp, #56 ; 0x38 - 801151c: af00 add r7, sp, #0 - 801151e: 60f8 str r0, [r7, #12] - 8011520: 60b9 str r1, [r7, #8] - 8011522: 607a str r2, [r7, #4] -BaseType_t xReturn; -UBaseType_t uxSavedInterruptStatus; -Queue_t * const pxQueue = xQueue; - 8011524: 68fb ldr r3, [r7, #12] - 8011526: 633b str r3, [r7, #48] ; 0x30 - - configASSERT( pxQueue ); - 8011528: 6b3b ldr r3, [r7, #48] ; 0x30 - 801152a: 2b00 cmp r3, #0 - 801152c: d10a bne.n 8011544 - __asm volatile - 801152e: f04f 0350 mov.w r3, #80 ; 0x50 - 8011532: f383 8811 msr BASEPRI, r3 - 8011536: f3bf 8f6f isb sy - 801153a: f3bf 8f4f dsb sy - 801153e: 623b str r3, [r7, #32] -} - 8011540: bf00 nop - 8011542: e7fe b.n 8011542 - configASSERT( !( ( pvBuffer == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) ); - 8011544: 68bb ldr r3, [r7, #8] - 8011546: 2b00 cmp r3, #0 - 8011548: d103 bne.n 8011552 - 801154a: 6b3b ldr r3, [r7, #48] ; 0x30 - 801154c: 6c1b ldr r3, [r3, #64] ; 0x40 - 801154e: 2b00 cmp r3, #0 - 8011550: d101 bne.n 8011556 - 8011552: 2301 movs r3, #1 - 8011554: e000 b.n 8011558 - 8011556: 2300 movs r3, #0 - 8011558: 2b00 cmp r3, #0 - 801155a: d10a bne.n 8011572 - __asm volatile - 801155c: f04f 0350 mov.w r3, #80 ; 0x50 - 8011560: f383 8811 msr BASEPRI, r3 - 8011564: f3bf 8f6f isb sy - 8011568: f3bf 8f4f dsb sy - 801156c: 61fb str r3, [r7, #28] -} - 801156e: bf00 nop - 8011570: e7fe b.n 8011570 - 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(); - 8011572: f002 f829 bl 80135c8 - __asm volatile - 8011576: f3ef 8211 mrs r2, BASEPRI - 801157a: f04f 0350 mov.w r3, #80 ; 0x50 - 801157e: f383 8811 msr BASEPRI, r3 - 8011582: f3bf 8f6f isb sy - 8011586: f3bf 8f4f dsb sy - 801158a: 61ba str r2, [r7, #24] - 801158c: 617b str r3, [r7, #20] - return ulOriginalBASEPRI; - 801158e: 69bb ldr r3, [r7, #24] - - uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR(); - 8011590: 62fb str r3, [r7, #44] ; 0x2c - { - const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting; - 8011592: 6b3b ldr r3, [r7, #48] ; 0x30 - 8011594: 6b9b ldr r3, [r3, #56] ; 0x38 - 8011596: 62bb str r3, [r7, #40] ; 0x28 - - /* Cannot block in an ISR, so check there is data available. */ - if( uxMessagesWaiting > ( UBaseType_t ) 0 ) - 8011598: 6abb ldr r3, [r7, #40] ; 0x28 - 801159a: 2b00 cmp r3, #0 - 801159c: d02f beq.n 80115fe - { - const int8_t cRxLock = pxQueue->cRxLock; - 801159e: 6b3b ldr r3, [r7, #48] ; 0x30 - 80115a0: f893 3044 ldrb.w r3, [r3, #68] ; 0x44 - 80115a4: f887 3027 strb.w r3, [r7, #39] ; 0x27 - - traceQUEUE_RECEIVE_FROM_ISR( pxQueue ); - - prvCopyDataFromQueue( pxQueue, pvBuffer ); - 80115a8: 68b9 ldr r1, [r7, #8] - 80115aa: 6b38 ldr r0, [r7, #48] ; 0x30 - 80115ac: f000 f915 bl 80117da - pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1; - 80115b0: 6abb ldr r3, [r7, #40] ; 0x28 - 80115b2: 1e5a subs r2, r3, #1 - 80115b4: 6b3b ldr r3, [r7, #48] ; 0x30 - 80115b6: 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 ) - 80115b8: f997 3027 ldrsb.w r3, [r7, #39] ; 0x27 - 80115bc: f1b3 3fff cmp.w r3, #4294967295 - 80115c0: d112 bne.n 80115e8 - { - if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE ) - 80115c2: 6b3b ldr r3, [r7, #48] ; 0x30 - 80115c4: 691b ldr r3, [r3, #16] - 80115c6: 2b00 cmp r3, #0 - 80115c8: d016 beq.n 80115f8 - { - if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE ) - 80115ca: 6b3b ldr r3, [r7, #48] ; 0x30 - 80115cc: 3310 adds r3, #16 - 80115ce: 4618 mov r0, r3 - 80115d0: f000 fea6 bl 8012320 - 80115d4: 4603 mov r3, r0 - 80115d6: 2b00 cmp r3, #0 - 80115d8: d00e beq.n 80115f8 - { - /* The task waiting has a higher priority than us so - force a context switch. */ - if( pxHigherPriorityTaskWoken != NULL ) - 80115da: 687b ldr r3, [r7, #4] - 80115dc: 2b00 cmp r3, #0 - 80115de: d00b beq.n 80115f8 - { - *pxHigherPriorityTaskWoken = pdTRUE; - 80115e0: 687b ldr r3, [r7, #4] - 80115e2: 2201 movs r2, #1 - 80115e4: 601a str r2, [r3, #0] - 80115e6: e007 b.n 80115f8 - } - 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 ); - 80115e8: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 80115ec: 3301 adds r3, #1 - 80115ee: b2db uxtb r3, r3 - 80115f0: b25a sxtb r2, r3 - 80115f2: 6b3b ldr r3, [r7, #48] ; 0x30 - 80115f4: f883 2044 strb.w r2, [r3, #68] ; 0x44 - } - - xReturn = pdPASS; - 80115f8: 2301 movs r3, #1 - 80115fa: 637b str r3, [r7, #52] ; 0x34 - 80115fc: e001 b.n 8011602 - } - else - { - xReturn = pdFAIL; - 80115fe: 2300 movs r3, #0 - 8011600: 637b str r3, [r7, #52] ; 0x34 - 8011602: 6afb ldr r3, [r7, #44] ; 0x2c - 8011604: 613b str r3, [r7, #16] - __asm volatile - 8011606: 693b ldr r3, [r7, #16] - 8011608: f383 8811 msr BASEPRI, r3 -} - 801160c: bf00 nop - traceQUEUE_RECEIVE_FROM_ISR_FAILED( pxQueue ); - } - } - portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); - - return xReturn; - 801160e: 6b7b ldr r3, [r7, #52] ; 0x34 -} - 8011610: 4618 mov r0, r3 - 8011612: 3738 adds r7, #56 ; 0x38 - 8011614: 46bd mov sp, r7 - 8011616: bd80 pop {r7, pc} - -08011618 : - return xReturn; -} -/*-----------------------------------------------------------*/ - -UBaseType_t uxQueueMessagesWaiting( const QueueHandle_t xQueue ) -{ - 8011618: b580 push {r7, lr} - 801161a: b084 sub sp, #16 - 801161c: af00 add r7, sp, #0 - 801161e: 6078 str r0, [r7, #4] -UBaseType_t uxReturn; - - configASSERT( xQueue ); - 8011620: 687b ldr r3, [r7, #4] - 8011622: 2b00 cmp r3, #0 - 8011624: d10a bne.n 801163c - __asm volatile - 8011626: f04f 0350 mov.w r3, #80 ; 0x50 - 801162a: f383 8811 msr BASEPRI, r3 - 801162e: f3bf 8f6f isb sy - 8011632: f3bf 8f4f dsb sy - 8011636: 60bb str r3, [r7, #8] -} - 8011638: bf00 nop - 801163a: e7fe b.n 801163a - - taskENTER_CRITICAL(); - 801163c: f001 fee2 bl 8013404 - { - uxReturn = ( ( Queue_t * ) xQueue )->uxMessagesWaiting; - 8011640: 687b ldr r3, [r7, #4] - 8011642: 6b9b ldr r3, [r3, #56] ; 0x38 - 8011644: 60fb str r3, [r7, #12] - } - taskEXIT_CRITICAL(); - 8011646: f001 ff0d bl 8013464 - - return uxReturn; - 801164a: 68fb ldr r3, [r7, #12] -} /*lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer. */ - 801164c: 4618 mov r0, r3 - 801164e: 3710 adds r7, #16 - 8011650: 46bd mov sp, r7 - 8011652: bd80 pop {r7, pc} - -08011654 : - return uxReturn; -} /*lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer. */ -/*-----------------------------------------------------------*/ - -UBaseType_t uxQueueMessagesWaitingFromISR( const QueueHandle_t xQueue ) -{ - 8011654: b480 push {r7} - 8011656: b087 sub sp, #28 - 8011658: af00 add r7, sp, #0 - 801165a: 6078 str r0, [r7, #4] -UBaseType_t uxReturn; -Queue_t * const pxQueue = xQueue; - 801165c: 687b ldr r3, [r7, #4] - 801165e: 617b str r3, [r7, #20] - - configASSERT( pxQueue ); - 8011660: 697b ldr r3, [r7, #20] - 8011662: 2b00 cmp r3, #0 - 8011664: d10a bne.n 801167c - __asm volatile - 8011666: f04f 0350 mov.w r3, #80 ; 0x50 - 801166a: f383 8811 msr BASEPRI, r3 - 801166e: f3bf 8f6f isb sy - 8011672: f3bf 8f4f dsb sy - 8011676: 60fb str r3, [r7, #12] -} - 8011678: bf00 nop - 801167a: e7fe b.n 801167a - uxReturn = pxQueue->uxMessagesWaiting; - 801167c: 697b ldr r3, [r7, #20] - 801167e: 6b9b ldr r3, [r3, #56] ; 0x38 - 8011680: 613b str r3, [r7, #16] - - return uxReturn; - 8011682: 693b ldr r3, [r7, #16] -} /*lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer. */ - 8011684: 4618 mov r0, r3 - 8011686: 371c adds r7, #28 - 8011688: 46bd mov sp, r7 - 801168a: f85d 7b04 ldr.w r7, [sp], #4 - 801168e: 4770 bx lr - -08011690 : -/*-----------------------------------------------------------*/ - -void vQueueDelete( QueueHandle_t xQueue ) -{ - 8011690: b580 push {r7, lr} - 8011692: b084 sub sp, #16 - 8011694: af00 add r7, sp, #0 - 8011696: 6078 str r0, [r7, #4] -Queue_t * const pxQueue = xQueue; - 8011698: 687b ldr r3, [r7, #4] - 801169a: 60fb str r3, [r7, #12] - - configASSERT( pxQueue ); - 801169c: 68fb ldr r3, [r7, #12] - 801169e: 2b00 cmp r3, #0 - 80116a0: d10a bne.n 80116b8 - __asm volatile - 80116a2: f04f 0350 mov.w r3, #80 ; 0x50 - 80116a6: f383 8811 msr BASEPRI, r3 - 80116aa: f3bf 8f6f isb sy - 80116ae: f3bf 8f4f dsb sy - 80116b2: 60bb str r3, [r7, #8] -} - 80116b4: bf00 nop - 80116b6: e7fe b.n 80116b6 - traceQUEUE_DELETE( pxQueue ); - - #if ( configQUEUE_REGISTRY_SIZE > 0 ) - { - vQueueUnregisterQueue( pxQueue ); - 80116b8: 68f8 ldr r0, [r7, #12] - 80116ba: f000 f95f bl 801197c - } - #elif( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) ) - { - /* The queue could have been allocated statically or dynamically, so - check before attempting to free the memory. */ - if( pxQueue->ucStaticallyAllocated == ( uint8_t ) pdFALSE ) - 80116be: 68fb ldr r3, [r7, #12] - 80116c0: f893 3046 ldrb.w r3, [r3, #70] ; 0x46 - 80116c4: 2b00 cmp r3, #0 - 80116c6: d102 bne.n 80116ce - { - vPortFree( pxQueue ); - 80116c8: 68f8 ldr r0, [r7, #12] - 80116ca: f002 f889 bl 80137e0 - /* The queue must have been statically allocated, so is not going to be - deleted. Avoid compiler warnings about the unused parameter. */ - ( void ) pxQueue; - } - #endif /* configSUPPORT_DYNAMIC_ALLOCATION */ -} - 80116ce: bf00 nop - 80116d0: 3710 adds r7, #16 - 80116d2: 46bd mov sp, r7 - 80116d4: bd80 pop {r7, pc} - -080116d6 : -/*-----------------------------------------------------------*/ - -#if( configUSE_MUTEXES == 1 ) - - static UBaseType_t prvGetDisinheritPriorityAfterTimeout( const Queue_t * const pxQueue ) - { - 80116d6: b480 push {r7} - 80116d8: b085 sub sp, #20 - 80116da: af00 add r7, sp, #0 - 80116dc: 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 ) - 80116de: 687b ldr r3, [r7, #4] - 80116e0: 6a5b ldr r3, [r3, #36] ; 0x24 - 80116e2: 2b00 cmp r3, #0 - 80116e4: d006 beq.n 80116f4 - { - uxHighestPriorityOfWaitingTasks = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) listGET_ITEM_VALUE_OF_HEAD_ENTRY( &( pxQueue->xTasksWaitingToReceive ) ); - 80116e6: 687b ldr r3, [r7, #4] - 80116e8: 6b1b ldr r3, [r3, #48] ; 0x30 - 80116ea: 681b ldr r3, [r3, #0] - 80116ec: f1c3 0307 rsb r3, r3, #7 - 80116f0: 60fb str r3, [r7, #12] - 80116f2: e001 b.n 80116f8 - } - else - { - uxHighestPriorityOfWaitingTasks = tskIDLE_PRIORITY; - 80116f4: 2300 movs r3, #0 - 80116f6: 60fb str r3, [r7, #12] - } - - return uxHighestPriorityOfWaitingTasks; - 80116f8: 68fb ldr r3, [r7, #12] - } - 80116fa: 4618 mov r0, r3 - 80116fc: 3714 adds r7, #20 - 80116fe: 46bd mov sp, r7 - 8011700: f85d 7b04 ldr.w r7, [sp], #4 - 8011704: 4770 bx lr - -08011706 : - -#endif /* configUSE_MUTEXES */ -/*-----------------------------------------------------------*/ - -static BaseType_t prvCopyDataToQueue( Queue_t * const pxQueue, const void *pvItemToQueue, const BaseType_t xPosition ) -{ - 8011706: b580 push {r7, lr} - 8011708: b086 sub sp, #24 - 801170a: af00 add r7, sp, #0 - 801170c: 60f8 str r0, [r7, #12] - 801170e: 60b9 str r1, [r7, #8] - 8011710: 607a str r2, [r7, #4] -BaseType_t xReturn = pdFALSE; - 8011712: 2300 movs r3, #0 - 8011714: 617b str r3, [r7, #20] -UBaseType_t uxMessagesWaiting; - - /* This function is called from a critical section. */ - - uxMessagesWaiting = pxQueue->uxMessagesWaiting; - 8011716: 68fb ldr r3, [r7, #12] - 8011718: 6b9b ldr r3, [r3, #56] ; 0x38 - 801171a: 613b str r3, [r7, #16] - - if( pxQueue->uxItemSize == ( UBaseType_t ) 0 ) - 801171c: 68fb ldr r3, [r7, #12] - 801171e: 6c1b ldr r3, [r3, #64] ; 0x40 - 8011720: 2b00 cmp r3, #0 - 8011722: d10d bne.n 8011740 - { - #if ( configUSE_MUTEXES == 1 ) - { - if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX ) - 8011724: 68fb ldr r3, [r7, #12] - 8011726: 681b ldr r3, [r3, #0] - 8011728: 2b00 cmp r3, #0 - 801172a: d14d bne.n 80117c8 - { - /* The mutex is no longer being held. */ - xReturn = xTaskPriorityDisinherit( pxQueue->u.xSemaphore.xMutexHolder ); - 801172c: 68fb ldr r3, [r7, #12] - 801172e: 689b ldr r3, [r3, #8] - 8011730: 4618 mov r0, r3 - 8011732: f001 f87d bl 8012830 - 8011736: 6178 str r0, [r7, #20] - pxQueue->u.xSemaphore.xMutexHolder = NULL; - 8011738: 68fb ldr r3, [r7, #12] - 801173a: 2200 movs r2, #0 - 801173c: 609a str r2, [r3, #8] - 801173e: e043 b.n 80117c8 - mtCOVERAGE_TEST_MARKER(); - } - } - #endif /* configUSE_MUTEXES */ - } - else if( xPosition == queueSEND_TO_BACK ) - 8011740: 687b ldr r3, [r7, #4] - 8011742: 2b00 cmp r3, #0 - 8011744: d119 bne.n 801177a - { - ( 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. */ - 8011746: 68fb ldr r3, [r7, #12] - 8011748: 6858 ldr r0, [r3, #4] - 801174a: 68fb ldr r3, [r7, #12] - 801174c: 6c1b ldr r3, [r3, #64] ; 0x40 - 801174e: 461a mov r2, r3 - 8011750: 68b9 ldr r1, [r7, #8] - 8011752: f010 fb48 bl 8021de6 - 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. */ - 8011756: 68fb ldr r3, [r7, #12] - 8011758: 685a ldr r2, [r3, #4] - 801175a: 68fb ldr r3, [r7, #12] - 801175c: 6c1b ldr r3, [r3, #64] ; 0x40 - 801175e: 441a add r2, r3 - 8011760: 68fb ldr r3, [r7, #12] - 8011762: 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. */ - 8011764: 68fb ldr r3, [r7, #12] - 8011766: 685a ldr r2, [r3, #4] - 8011768: 68fb ldr r3, [r7, #12] - 801176a: 689b ldr r3, [r3, #8] - 801176c: 429a cmp r2, r3 - 801176e: d32b bcc.n 80117c8 - { - pxQueue->pcWriteTo = pxQueue->pcHead; - 8011770: 68fb ldr r3, [r7, #12] - 8011772: 681a ldr r2, [r3, #0] - 8011774: 68fb ldr r3, [r7, #12] - 8011776: 605a str r2, [r3, #4] - 8011778: e026 b.n 80117c8 - 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. */ - 801177a: 68fb ldr r3, [r7, #12] - 801177c: 68d8 ldr r0, [r3, #12] - 801177e: 68fb ldr r3, [r7, #12] - 8011780: 6c1b ldr r3, [r3, #64] ; 0x40 - 8011782: 461a mov r2, r3 - 8011784: 68b9 ldr r1, [r7, #8] - 8011786: f010 fb2e bl 8021de6 - pxQueue->u.xQueue.pcReadFrom -= pxQueue->uxItemSize; - 801178a: 68fb ldr r3, [r7, #12] - 801178c: 68da ldr r2, [r3, #12] - 801178e: 68fb ldr r3, [r7, #12] - 8011790: 6c1b ldr r3, [r3, #64] ; 0x40 - 8011792: 425b negs r3, r3 - 8011794: 441a add r2, r3 - 8011796: 68fb ldr r3, [r7, #12] - 8011798: 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. */ - 801179a: 68fb ldr r3, [r7, #12] - 801179c: 68da ldr r2, [r3, #12] - 801179e: 68fb ldr r3, [r7, #12] - 80117a0: 681b ldr r3, [r3, #0] - 80117a2: 429a cmp r2, r3 - 80117a4: d207 bcs.n 80117b6 - { - pxQueue->u.xQueue.pcReadFrom = ( pxQueue->u.xQueue.pcTail - pxQueue->uxItemSize ); - 80117a6: 68fb ldr r3, [r7, #12] - 80117a8: 689a ldr r2, [r3, #8] - 80117aa: 68fb ldr r3, [r7, #12] - 80117ac: 6c1b ldr r3, [r3, #64] ; 0x40 - 80117ae: 425b negs r3, r3 - 80117b0: 441a add r2, r3 - 80117b2: 68fb ldr r3, [r7, #12] - 80117b4: 60da str r2, [r3, #12] - else - { - mtCOVERAGE_TEST_MARKER(); - } - - if( xPosition == queueOVERWRITE ) - 80117b6: 687b ldr r3, [r7, #4] - 80117b8: 2b02 cmp r3, #2 - 80117ba: d105 bne.n 80117c8 - { - if( uxMessagesWaiting > ( UBaseType_t ) 0 ) - 80117bc: 693b ldr r3, [r7, #16] - 80117be: 2b00 cmp r3, #0 - 80117c0: d002 beq.n 80117c8 - { - /* 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; - 80117c2: 693b ldr r3, [r7, #16] - 80117c4: 3b01 subs r3, #1 - 80117c6: 613b str r3, [r7, #16] - { - mtCOVERAGE_TEST_MARKER(); - } - } - - pxQueue->uxMessagesWaiting = uxMessagesWaiting + ( UBaseType_t ) 1; - 80117c8: 693b ldr r3, [r7, #16] - 80117ca: 1c5a adds r2, r3, #1 - 80117cc: 68fb ldr r3, [r7, #12] - 80117ce: 639a str r2, [r3, #56] ; 0x38 - - return xReturn; - 80117d0: 697b ldr r3, [r7, #20] -} - 80117d2: 4618 mov r0, r3 - 80117d4: 3718 adds r7, #24 - 80117d6: 46bd mov sp, r7 - 80117d8: bd80 pop {r7, pc} - -080117da : -/*-----------------------------------------------------------*/ - -static void prvCopyDataFromQueue( Queue_t * const pxQueue, void * const pvBuffer ) -{ - 80117da: b580 push {r7, lr} - 80117dc: b082 sub sp, #8 - 80117de: af00 add r7, sp, #0 - 80117e0: 6078 str r0, [r7, #4] - 80117e2: 6039 str r1, [r7, #0] - if( pxQueue->uxItemSize != ( UBaseType_t ) 0 ) - 80117e4: 687b ldr r3, [r7, #4] - 80117e6: 6c1b ldr r3, [r3, #64] ; 0x40 - 80117e8: 2b00 cmp r3, #0 - 80117ea: d018 beq.n 801181e - { - 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. */ - 80117ec: 687b ldr r3, [r7, #4] - 80117ee: 68da ldr r2, [r3, #12] - 80117f0: 687b ldr r3, [r7, #4] - 80117f2: 6c1b ldr r3, [r3, #64] ; 0x40 - 80117f4: 441a add r2, r3 - 80117f6: 687b ldr r3, [r7, #4] - 80117f8: 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. */ - 80117fa: 687b ldr r3, [r7, #4] - 80117fc: 68da ldr r2, [r3, #12] - 80117fe: 687b ldr r3, [r7, #4] - 8011800: 689b ldr r3, [r3, #8] - 8011802: 429a cmp r2, r3 - 8011804: d303 bcc.n 801180e - { - pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead; - 8011806: 687b ldr r3, [r7, #4] - 8011808: 681a ldr r2, [r3, #0] - 801180a: 687b ldr r3, [r7, #4] - 801180c: 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. */ - 801180e: 687b ldr r3, [r7, #4] - 8011810: 68d9 ldr r1, [r3, #12] - 8011812: 687b ldr r3, [r7, #4] - 8011814: 6c1b ldr r3, [r3, #64] ; 0x40 - 8011816: 461a mov r2, r3 - 8011818: 6838 ldr r0, [r7, #0] - 801181a: f010 fae4 bl 8021de6 - } -} - 801181e: bf00 nop - 8011820: 3708 adds r7, #8 - 8011822: 46bd mov sp, r7 - 8011824: bd80 pop {r7, pc} - -08011826 : -/*-----------------------------------------------------------*/ - -static void prvUnlockQueue( Queue_t * const pxQueue ) -{ - 8011826: b580 push {r7, lr} - 8011828: b084 sub sp, #16 - 801182a: af00 add r7, sp, #0 - 801182c: 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(); - 801182e: f001 fde9 bl 8013404 - { - int8_t cTxLock = pxQueue->cTxLock; - 8011832: 687b ldr r3, [r7, #4] - 8011834: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 - 8011838: 73fb strb r3, [r7, #15] - - /* See if data was added to the queue while it was locked. */ - while( cTxLock > queueLOCKED_UNMODIFIED ) - 801183a: e011 b.n 8011860 - } - #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 ) - 801183c: 687b ldr r3, [r7, #4] - 801183e: 6a5b ldr r3, [r3, #36] ; 0x24 - 8011840: 2b00 cmp r3, #0 - 8011842: d012 beq.n 801186a - { - if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) - 8011844: 687b ldr r3, [r7, #4] - 8011846: 3324 adds r3, #36 ; 0x24 - 8011848: 4618 mov r0, r3 - 801184a: f000 fd69 bl 8012320 - 801184e: 4603 mov r3, r0 - 8011850: 2b00 cmp r3, #0 - 8011852: d001 beq.n 8011858 - { - /* The task waiting has a higher priority so record that - a context switch is required. */ - vTaskMissedYield(); - 8011854: f000 fe3e bl 80124d4 - break; - } - } - #endif /* configUSE_QUEUE_SETS */ - - --cTxLock; - 8011858: 7bfb ldrb r3, [r7, #15] - 801185a: 3b01 subs r3, #1 - 801185c: b2db uxtb r3, r3 - 801185e: 73fb strb r3, [r7, #15] - while( cTxLock > queueLOCKED_UNMODIFIED ) - 8011860: f997 300f ldrsb.w r3, [r7, #15] - 8011864: 2b00 cmp r3, #0 - 8011866: dce9 bgt.n 801183c - 8011868: e000 b.n 801186c - break; - 801186a: bf00 nop - } - - pxQueue->cTxLock = queueUNLOCKED; - 801186c: 687b ldr r3, [r7, #4] - 801186e: 22ff movs r2, #255 ; 0xff - 8011870: f883 2045 strb.w r2, [r3, #69] ; 0x45 - } - taskEXIT_CRITICAL(); - 8011874: f001 fdf6 bl 8013464 - - /* Do the same for the Rx lock. */ - taskENTER_CRITICAL(); - 8011878: f001 fdc4 bl 8013404 - { - int8_t cRxLock = pxQueue->cRxLock; - 801187c: 687b ldr r3, [r7, #4] - 801187e: f893 3044 ldrb.w r3, [r3, #68] ; 0x44 - 8011882: 73bb strb r3, [r7, #14] - - while( cRxLock > queueLOCKED_UNMODIFIED ) - 8011884: e011 b.n 80118aa - { - if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE ) - 8011886: 687b ldr r3, [r7, #4] - 8011888: 691b ldr r3, [r3, #16] - 801188a: 2b00 cmp r3, #0 - 801188c: d012 beq.n 80118b4 - { - if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE ) - 801188e: 687b ldr r3, [r7, #4] - 8011890: 3310 adds r3, #16 - 8011892: 4618 mov r0, r3 - 8011894: f000 fd44 bl 8012320 - 8011898: 4603 mov r3, r0 - 801189a: 2b00 cmp r3, #0 - 801189c: d001 beq.n 80118a2 - { - vTaskMissedYield(); - 801189e: f000 fe19 bl 80124d4 - else - { - mtCOVERAGE_TEST_MARKER(); - } - - --cRxLock; - 80118a2: 7bbb ldrb r3, [r7, #14] - 80118a4: 3b01 subs r3, #1 - 80118a6: b2db uxtb r3, r3 - 80118a8: 73bb strb r3, [r7, #14] - while( cRxLock > queueLOCKED_UNMODIFIED ) - 80118aa: f997 300e ldrsb.w r3, [r7, #14] - 80118ae: 2b00 cmp r3, #0 - 80118b0: dce9 bgt.n 8011886 - 80118b2: e000 b.n 80118b6 - } - else - { - break; - 80118b4: bf00 nop - } - } - - pxQueue->cRxLock = queueUNLOCKED; - 80118b6: 687b ldr r3, [r7, #4] - 80118b8: 22ff movs r2, #255 ; 0xff - 80118ba: f883 2044 strb.w r2, [r3, #68] ; 0x44 - } - taskEXIT_CRITICAL(); - 80118be: f001 fdd1 bl 8013464 -} - 80118c2: bf00 nop - 80118c4: 3710 adds r7, #16 - 80118c6: 46bd mov sp, r7 - 80118c8: bd80 pop {r7, pc} - -080118ca : -/*-----------------------------------------------------------*/ - -static BaseType_t prvIsQueueEmpty( const Queue_t *pxQueue ) -{ - 80118ca: b580 push {r7, lr} - 80118cc: b084 sub sp, #16 - 80118ce: af00 add r7, sp, #0 - 80118d0: 6078 str r0, [r7, #4] -BaseType_t xReturn; - - taskENTER_CRITICAL(); - 80118d2: f001 fd97 bl 8013404 - { - if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0 ) - 80118d6: 687b ldr r3, [r7, #4] - 80118d8: 6b9b ldr r3, [r3, #56] ; 0x38 - 80118da: 2b00 cmp r3, #0 - 80118dc: d102 bne.n 80118e4 - { - xReturn = pdTRUE; - 80118de: 2301 movs r3, #1 - 80118e0: 60fb str r3, [r7, #12] - 80118e2: e001 b.n 80118e8 - } - else - { - xReturn = pdFALSE; - 80118e4: 2300 movs r3, #0 - 80118e6: 60fb str r3, [r7, #12] - } - } - taskEXIT_CRITICAL(); - 80118e8: f001 fdbc bl 8013464 - - return xReturn; - 80118ec: 68fb ldr r3, [r7, #12] -} - 80118ee: 4618 mov r0, r3 - 80118f0: 3710 adds r7, #16 - 80118f2: 46bd mov sp, r7 - 80118f4: bd80 pop {r7, pc} - -080118f6 : - return xReturn; -} /*lint !e818 xQueue could not be pointer to const because it is a typedef. */ -/*-----------------------------------------------------------*/ - -static BaseType_t prvIsQueueFull( const Queue_t *pxQueue ) -{ - 80118f6: b580 push {r7, lr} - 80118f8: b084 sub sp, #16 - 80118fa: af00 add r7, sp, #0 - 80118fc: 6078 str r0, [r7, #4] -BaseType_t xReturn; - - taskENTER_CRITICAL(); - 80118fe: f001 fd81 bl 8013404 - { - if( pxQueue->uxMessagesWaiting == pxQueue->uxLength ) - 8011902: 687b ldr r3, [r7, #4] - 8011904: 6b9a ldr r2, [r3, #56] ; 0x38 - 8011906: 687b ldr r3, [r7, #4] - 8011908: 6bdb ldr r3, [r3, #60] ; 0x3c - 801190a: 429a cmp r2, r3 - 801190c: d102 bne.n 8011914 - { - xReturn = pdTRUE; - 801190e: 2301 movs r3, #1 - 8011910: 60fb str r3, [r7, #12] - 8011912: e001 b.n 8011918 - } - else - { - xReturn = pdFALSE; - 8011914: 2300 movs r3, #0 - 8011916: 60fb str r3, [r7, #12] - } - } - taskEXIT_CRITICAL(); - 8011918: f001 fda4 bl 8013464 - - return xReturn; - 801191c: 68fb ldr r3, [r7, #12] -} - 801191e: 4618 mov r0, r3 - 8011920: 3710 adds r7, #16 - 8011922: 46bd mov sp, r7 - 8011924: bd80 pop {r7, pc} - ... - -08011928 : -/*-----------------------------------------------------------*/ - -#if ( configQUEUE_REGISTRY_SIZE > 0 ) - - void vQueueAddToRegistry( QueueHandle_t xQueue, const char *pcQueueName ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ - { - 8011928: b480 push {r7} - 801192a: b085 sub sp, #20 - 801192c: af00 add r7, sp, #0 - 801192e: 6078 str r0, [r7, #4] - 8011930: 6039 str r1, [r7, #0] - UBaseType_t ux; - - /* See if there is an empty space in the registry. A NULL name denotes - a free slot. */ - for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ ) - 8011932: 2300 movs r3, #0 - 8011934: 60fb str r3, [r7, #12] - 8011936: e014 b.n 8011962 - { - if( xQueueRegistry[ ux ].pcQueueName == NULL ) - 8011938: 4a0f ldr r2, [pc, #60] ; (8011978 ) - 801193a: 68fb ldr r3, [r7, #12] - 801193c: f852 3033 ldr.w r3, [r2, r3, lsl #3] - 8011940: 2b00 cmp r3, #0 - 8011942: d10b bne.n 801195c - { - /* Store the information on this queue. */ - xQueueRegistry[ ux ].pcQueueName = pcQueueName; - 8011944: 490c ldr r1, [pc, #48] ; (8011978 ) - 8011946: 68fb ldr r3, [r7, #12] - 8011948: 683a ldr r2, [r7, #0] - 801194a: f841 2033 str.w r2, [r1, r3, lsl #3] - xQueueRegistry[ ux ].xHandle = xQueue; - 801194e: 4a0a ldr r2, [pc, #40] ; (8011978 ) - 8011950: 68fb ldr r3, [r7, #12] - 8011952: 00db lsls r3, r3, #3 - 8011954: 4413 add r3, r2 - 8011956: 687a ldr r2, [r7, #4] - 8011958: 605a str r2, [r3, #4] - - traceQUEUE_REGISTRY_ADD( xQueue, pcQueueName ); - break; - 801195a: e006 b.n 801196a - for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ ) - 801195c: 68fb ldr r3, [r7, #12] - 801195e: 3301 adds r3, #1 - 8011960: 60fb str r3, [r7, #12] - 8011962: 68fb ldr r3, [r7, #12] - 8011964: 2b07 cmp r3, #7 - 8011966: d9e7 bls.n 8011938 - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - } - 8011968: bf00 nop - 801196a: bf00 nop - 801196c: 3714 adds r7, #20 - 801196e: 46bd mov sp, r7 - 8011970: f85d 7b04 ldr.w r7, [sp], #4 - 8011974: 4770 bx lr - 8011976: bf00 nop - 8011978: 2400bee0 .word 0x2400bee0 - -0801197c : -/*-----------------------------------------------------------*/ - -#if ( configQUEUE_REGISTRY_SIZE > 0 ) - - void vQueueUnregisterQueue( QueueHandle_t xQueue ) - { - 801197c: b480 push {r7} - 801197e: b085 sub sp, #20 - 8011980: af00 add r7, sp, #0 - 8011982: 6078 str r0, [r7, #4] - UBaseType_t ux; - - /* See if the handle of the queue being unregistered in actually in the - registry. */ - for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ ) - 8011984: 2300 movs r3, #0 - 8011986: 60fb str r3, [r7, #12] - 8011988: e016 b.n 80119b8 - { - if( xQueueRegistry[ ux ].xHandle == xQueue ) - 801198a: 4a10 ldr r2, [pc, #64] ; (80119cc ) - 801198c: 68fb ldr r3, [r7, #12] - 801198e: 00db lsls r3, r3, #3 - 8011990: 4413 add r3, r2 - 8011992: 685b ldr r3, [r3, #4] - 8011994: 687a ldr r2, [r7, #4] - 8011996: 429a cmp r2, r3 - 8011998: d10b bne.n 80119b2 - { - /* Set the name to NULL to show that this slot if free again. */ - xQueueRegistry[ ux ].pcQueueName = NULL; - 801199a: 4a0c ldr r2, [pc, #48] ; (80119cc ) - 801199c: 68fb ldr r3, [r7, #12] - 801199e: 2100 movs r1, #0 - 80119a0: f842 1033 str.w r1, [r2, r3, lsl #3] - - /* Set the handle to NULL to ensure the same queue handle cannot - appear in the registry twice if it is added, removed, then - added again. */ - xQueueRegistry[ ux ].xHandle = ( QueueHandle_t ) 0; - 80119a4: 4a09 ldr r2, [pc, #36] ; (80119cc ) - 80119a6: 68fb ldr r3, [r7, #12] - 80119a8: 00db lsls r3, r3, #3 - 80119aa: 4413 add r3, r2 - 80119ac: 2200 movs r2, #0 - 80119ae: 605a str r2, [r3, #4] - break; - 80119b0: e006 b.n 80119c0 - for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ ) - 80119b2: 68fb ldr r3, [r7, #12] - 80119b4: 3301 adds r3, #1 - 80119b6: 60fb str r3, [r7, #12] - 80119b8: 68fb ldr r3, [r7, #12] - 80119ba: 2b07 cmp r3, #7 - 80119bc: d9e5 bls.n 801198a - { - mtCOVERAGE_TEST_MARKER(); - } - } - - } /*lint !e818 xQueue could not be pointer to const because it is a typedef. */ - 80119be: bf00 nop - 80119c0: bf00 nop - 80119c2: 3714 adds r7, #20 - 80119c4: 46bd mov sp, r7 - 80119c6: f85d 7b04 ldr.w r7, [sp], #4 - 80119ca: 4770 bx lr - 80119cc: 2400bee0 .word 0x2400bee0 - -080119d0 : -/*-----------------------------------------------------------*/ - -#if ( configUSE_TIMERS == 1 ) - - void vQueueWaitForMessageRestricted( QueueHandle_t xQueue, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely ) - { - 80119d0: b580 push {r7, lr} - 80119d2: b086 sub sp, #24 - 80119d4: af00 add r7, sp, #0 - 80119d6: 60f8 str r0, [r7, #12] - 80119d8: 60b9 str r1, [r7, #8] - 80119da: 607a str r2, [r7, #4] - Queue_t * const pxQueue = xQueue; - 80119dc: 68fb ldr r3, [r7, #12] - 80119de: 617b str r3, [r7, #20] - will not actually cause the task to block, just place it on a blocked - list. It will not block until the scheduler is unlocked - at which - time a yield will be performed. If an item is added to the queue while - the queue is locked, and the calling task blocks on the queue, then the - calling task will be immediately unblocked when the queue is unlocked. */ - prvLockQueue( pxQueue ); - 80119e0: f001 fd10 bl 8013404 - 80119e4: 697b ldr r3, [r7, #20] - 80119e6: f893 3044 ldrb.w r3, [r3, #68] ; 0x44 - 80119ea: b25b sxtb r3, r3 - 80119ec: f1b3 3fff cmp.w r3, #4294967295 - 80119f0: d103 bne.n 80119fa - 80119f2: 697b ldr r3, [r7, #20] - 80119f4: 2200 movs r2, #0 - 80119f6: f883 2044 strb.w r2, [r3, #68] ; 0x44 - 80119fa: 697b ldr r3, [r7, #20] - 80119fc: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 - 8011a00: b25b sxtb r3, r3 - 8011a02: f1b3 3fff cmp.w r3, #4294967295 - 8011a06: d103 bne.n 8011a10 - 8011a08: 697b ldr r3, [r7, #20] - 8011a0a: 2200 movs r2, #0 - 8011a0c: f883 2045 strb.w r2, [r3, #69] ; 0x45 - 8011a10: f001 fd28 bl 8013464 - if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0U ) - 8011a14: 697b ldr r3, [r7, #20] - 8011a16: 6b9b ldr r3, [r3, #56] ; 0x38 - 8011a18: 2b00 cmp r3, #0 - 8011a1a: d106 bne.n 8011a2a - { - /* There is nothing in the queue, block for the specified period. */ - vTaskPlaceOnEventListRestricted( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait, xWaitIndefinitely ); - 8011a1c: 697b ldr r3, [r7, #20] - 8011a1e: 3324 adds r3, #36 ; 0x24 - 8011a20: 687a ldr r2, [r7, #4] - 8011a22: 68b9 ldr r1, [r7, #8] - 8011a24: 4618 mov r0, r3 - 8011a26: f000 fc4f bl 80122c8 - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - prvUnlockQueue( pxQueue ); - 8011a2a: 6978 ldr r0, [r7, #20] - 8011a2c: f7ff fefb bl 8011826 - } - 8011a30: bf00 nop - 8011a32: 3718 adds r7, #24 - 8011a34: 46bd mov sp, r7 - 8011a36: bd80 pop {r7, pc} - -08011a38 : - const uint32_t ulStackDepth, - void * const pvParameters, - UBaseType_t uxPriority, - StackType_t * const puxStackBuffer, - StaticTask_t * const pxTaskBuffer ) - { - 8011a38: b580 push {r7, lr} - 8011a3a: b08e sub sp, #56 ; 0x38 - 8011a3c: af04 add r7, sp, #16 - 8011a3e: 60f8 str r0, [r7, #12] - 8011a40: 60b9 str r1, [r7, #8] - 8011a42: 607a str r2, [r7, #4] - 8011a44: 603b str r3, [r7, #0] - TCB_t *pxNewTCB; - TaskHandle_t xReturn; - - configASSERT( puxStackBuffer != NULL ); - 8011a46: 6b7b ldr r3, [r7, #52] ; 0x34 - 8011a48: 2b00 cmp r3, #0 - 8011a4a: d10a bne.n 8011a62 - __asm volatile - 8011a4c: f04f 0350 mov.w r3, #80 ; 0x50 - 8011a50: f383 8811 msr BASEPRI, r3 - 8011a54: f3bf 8f6f isb sy - 8011a58: f3bf 8f4f dsb sy - 8011a5c: 623b str r3, [r7, #32] -} - 8011a5e: bf00 nop - 8011a60: e7fe b.n 8011a60 - configASSERT( pxTaskBuffer != NULL ); - 8011a62: 6bbb ldr r3, [r7, #56] ; 0x38 - 8011a64: 2b00 cmp r3, #0 - 8011a66: d10a bne.n 8011a7e - __asm volatile - 8011a68: f04f 0350 mov.w r3, #80 ; 0x50 - 8011a6c: f383 8811 msr BASEPRI, r3 - 8011a70: f3bf 8f6f isb sy - 8011a74: f3bf 8f4f dsb sy - 8011a78: 61fb str r3, [r7, #28] -} - 8011a7a: bf00 nop - 8011a7c: e7fe b.n 8011a7c - #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 ); - 8011a7e: 2354 movs r3, #84 ; 0x54 - 8011a80: 613b str r3, [r7, #16] - configASSERT( xSize == sizeof( TCB_t ) ); - 8011a82: 693b ldr r3, [r7, #16] - 8011a84: 2b54 cmp r3, #84 ; 0x54 - 8011a86: d00a beq.n 8011a9e - __asm volatile - 8011a88: f04f 0350 mov.w r3, #80 ; 0x50 - 8011a8c: f383 8811 msr BASEPRI, r3 - 8011a90: f3bf 8f6f isb sy - 8011a94: f3bf 8f4f dsb sy - 8011a98: 61bb str r3, [r7, #24] -} - 8011a9a: bf00 nop - 8011a9c: e7fe b.n 8011a9c - ( void ) xSize; /* Prevent lint warning when configASSERT() is not used. */ - 8011a9e: 693b ldr r3, [r7, #16] - } - #endif /* configASSERT_DEFINED */ - - - if( ( pxTaskBuffer != NULL ) && ( puxStackBuffer != NULL ) ) - 8011aa0: 6bbb ldr r3, [r7, #56] ; 0x38 - 8011aa2: 2b00 cmp r3, #0 - 8011aa4: d01e beq.n 8011ae4 - 8011aa6: 6b7b ldr r3, [r7, #52] ; 0x34 - 8011aa8: 2b00 cmp r3, #0 - 8011aaa: d01b beq.n 8011ae4 - { - /* 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. */ - 8011aac: 6bbb ldr r3, [r7, #56] ; 0x38 - 8011aae: 627b str r3, [r7, #36] ; 0x24 - pxNewTCB->pxStack = ( StackType_t * ) puxStackBuffer; - 8011ab0: 6a7b ldr r3, [r7, #36] ; 0x24 - 8011ab2: 6b7a ldr r2, [r7, #52] ; 0x34 - 8011ab4: 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; - 8011ab6: 6a7b ldr r3, [r7, #36] ; 0x24 - 8011ab8: 2202 movs r2, #2 - 8011aba: f883 2051 strb.w r2, [r3, #81] ; 0x51 - } - #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */ - - prvInitialiseNewTask( pxTaskCode, pcName, ulStackDepth, pvParameters, uxPriority, &xReturn, pxNewTCB, NULL ); - 8011abe: 2300 movs r3, #0 - 8011ac0: 9303 str r3, [sp, #12] - 8011ac2: 6a7b ldr r3, [r7, #36] ; 0x24 - 8011ac4: 9302 str r3, [sp, #8] - 8011ac6: f107 0314 add.w r3, r7, #20 - 8011aca: 9301 str r3, [sp, #4] - 8011acc: 6b3b ldr r3, [r7, #48] ; 0x30 - 8011ace: 9300 str r3, [sp, #0] - 8011ad0: 683b ldr r3, [r7, #0] - 8011ad2: 687a ldr r2, [r7, #4] - 8011ad4: 68b9 ldr r1, [r7, #8] - 8011ad6: 68f8 ldr r0, [r7, #12] - 8011ad8: f000 f850 bl 8011b7c - prvAddNewTaskToReadyList( pxNewTCB ); - 8011adc: 6a78 ldr r0, [r7, #36] ; 0x24 - 8011ade: f000 f8dd bl 8011c9c - 8011ae2: e001 b.n 8011ae8 - } - else - { - xReturn = NULL; - 8011ae4: 2300 movs r3, #0 - 8011ae6: 617b str r3, [r7, #20] - } - - return xReturn; - 8011ae8: 697b ldr r3, [r7, #20] - } - 8011aea: 4618 mov r0, r3 - 8011aec: 3728 adds r7, #40 ; 0x28 - 8011aee: 46bd mov sp, r7 - 8011af0: bd80 pop {r7, pc} - -08011af2 : - 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 ) - { - 8011af2: b580 push {r7, lr} - 8011af4: b08c sub sp, #48 ; 0x30 - 8011af6: af04 add r7, sp, #16 - 8011af8: 60f8 str r0, [r7, #12] - 8011afa: 60b9 str r1, [r7, #8] - 8011afc: 603b str r3, [r7, #0] - 8011afe: 4613 mov r3, r2 - 8011b00: 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. */ - 8011b02: 88fb ldrh r3, [r7, #6] - 8011b04: 009b lsls r3, r3, #2 - 8011b06: 4618 mov r0, r3 - 8011b08: f001 fd9e bl 8013648 - 8011b0c: 6178 str r0, [r7, #20] - - if( pxStack != NULL ) - 8011b0e: 697b ldr r3, [r7, #20] - 8011b10: 2b00 cmp r3, #0 - 8011b12: d00e beq.n 8011b32 - { - /* 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. */ - 8011b14: 2054 movs r0, #84 ; 0x54 - 8011b16: f001 fd97 bl 8013648 - 8011b1a: 61f8 str r0, [r7, #28] - - if( pxNewTCB != NULL ) - 8011b1c: 69fb ldr r3, [r7, #28] - 8011b1e: 2b00 cmp r3, #0 - 8011b20: d003 beq.n 8011b2a - { - /* Store the stack location in the TCB. */ - pxNewTCB->pxStack = pxStack; - 8011b22: 69fb ldr r3, [r7, #28] - 8011b24: 697a ldr r2, [r7, #20] - 8011b26: 631a str r2, [r3, #48] ; 0x30 - 8011b28: e005 b.n 8011b36 - } - else - { - /* The stack cannot be used as the TCB was not created. Free - it again. */ - vPortFree( pxStack ); - 8011b2a: 6978 ldr r0, [r7, #20] - 8011b2c: f001 fe58 bl 80137e0 - 8011b30: e001 b.n 8011b36 - } - } - else - { - pxNewTCB = NULL; - 8011b32: 2300 movs r3, #0 - 8011b34: 61fb str r3, [r7, #28] - } - } - #endif /* portSTACK_GROWTH */ - - if( pxNewTCB != NULL ) - 8011b36: 69fb ldr r3, [r7, #28] - 8011b38: 2b00 cmp r3, #0 - 8011b3a: d017 beq.n 8011b6c - { - #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; - 8011b3c: 69fb ldr r3, [r7, #28] - 8011b3e: 2200 movs r2, #0 - 8011b40: f883 2051 strb.w r2, [r3, #81] ; 0x51 - } - #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */ - - prvInitialiseNewTask( pxTaskCode, pcName, ( uint32_t ) usStackDepth, pvParameters, uxPriority, pxCreatedTask, pxNewTCB, NULL ); - 8011b44: 88fa ldrh r2, [r7, #6] - 8011b46: 2300 movs r3, #0 - 8011b48: 9303 str r3, [sp, #12] - 8011b4a: 69fb ldr r3, [r7, #28] - 8011b4c: 9302 str r3, [sp, #8] - 8011b4e: 6afb ldr r3, [r7, #44] ; 0x2c - 8011b50: 9301 str r3, [sp, #4] - 8011b52: 6abb ldr r3, [r7, #40] ; 0x28 - 8011b54: 9300 str r3, [sp, #0] - 8011b56: 683b ldr r3, [r7, #0] - 8011b58: 68b9 ldr r1, [r7, #8] - 8011b5a: 68f8 ldr r0, [r7, #12] - 8011b5c: f000 f80e bl 8011b7c - prvAddNewTaskToReadyList( pxNewTCB ); - 8011b60: 69f8 ldr r0, [r7, #28] - 8011b62: f000 f89b bl 8011c9c - xReturn = pdPASS; - 8011b66: 2301 movs r3, #1 - 8011b68: 61bb str r3, [r7, #24] - 8011b6a: e002 b.n 8011b72 - } - else - { - xReturn = errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY; - 8011b6c: f04f 33ff mov.w r3, #4294967295 - 8011b70: 61bb str r3, [r7, #24] - } - - return xReturn; - 8011b72: 69bb ldr r3, [r7, #24] - } - 8011b74: 4618 mov r0, r3 - 8011b76: 3720 adds r7, #32 - 8011b78: 46bd mov sp, r7 - 8011b7a: bd80 pop {r7, pc} - -08011b7c : - void * const pvParameters, - UBaseType_t uxPriority, - TaskHandle_t * const pxCreatedTask, - TCB_t *pxNewTCB, - const MemoryRegion_t * const xRegions ) -{ - 8011b7c: b580 push {r7, lr} - 8011b7e: b088 sub sp, #32 - 8011b80: af00 add r7, sp, #0 - 8011b82: 60f8 str r0, [r7, #12] - 8011b84: 60b9 str r1, [r7, #8] - 8011b86: 607a str r2, [r7, #4] - 8011b88: 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 ) ); - 8011b8a: 6b3b ldr r3, [r7, #48] ; 0x30 - 8011b8c: 6b18 ldr r0, [r3, #48] ; 0x30 - 8011b8e: 687b ldr r3, [r7, #4] - 8011b90: 009b lsls r3, r3, #2 - 8011b92: 461a mov r2, r3 - 8011b94: 21a5 movs r1, #165 ; 0xa5 - 8011b96: f010 f8a3 bl 8021ce0 - 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 ] ); - 8011b9a: 6b3b ldr r3, [r7, #48] ; 0x30 - 8011b9c: 6b1a ldr r2, [r3, #48] ; 0x30 - 8011b9e: 6879 ldr r1, [r7, #4] - 8011ba0: f06f 4340 mvn.w r3, #3221225472 ; 0xc0000000 - 8011ba4: 440b add r3, r1 - 8011ba6: 009b lsls r3, r3, #2 - 8011ba8: 4413 add r3, r2 - 8011baa: 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(). */ - 8011bac: 69bb ldr r3, [r7, #24] - 8011bae: f023 0307 bic.w r3, r3, #7 - 8011bb2: 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 ) ); - 8011bb4: 69bb ldr r3, [r7, #24] - 8011bb6: f003 0307 and.w r3, r3, #7 - 8011bba: 2b00 cmp r3, #0 - 8011bbc: d00a beq.n 8011bd4 - __asm volatile - 8011bbe: f04f 0350 mov.w r3, #80 ; 0x50 - 8011bc2: f383 8811 msr BASEPRI, r3 - 8011bc6: f3bf 8f6f isb sy - 8011bca: f3bf 8f4f dsb sy - 8011bce: 617b str r3, [r7, #20] -} - 8011bd0: bf00 nop - 8011bd2: e7fe b.n 8011bd2 - pxNewTCB->pxEndOfStack = pxNewTCB->pxStack + ( ulStackDepth - ( uint32_t ) 1 ); - } - #endif /* portSTACK_GROWTH */ - - /* Store the task name in the TCB. */ - if( pcName != NULL ) - 8011bd4: 68bb ldr r3, [r7, #8] - 8011bd6: 2b00 cmp r3, #0 - 8011bd8: d01f beq.n 8011c1a - { - for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ ) - 8011bda: 2300 movs r3, #0 - 8011bdc: 61fb str r3, [r7, #28] - 8011bde: e012 b.n 8011c06 - { - pxNewTCB->pcTaskName[ x ] = pcName[ x ]; - 8011be0: 68ba ldr r2, [r7, #8] - 8011be2: 69fb ldr r3, [r7, #28] - 8011be4: 4413 add r3, r2 - 8011be6: 7819 ldrb r1, [r3, #0] - 8011be8: 6b3a ldr r2, [r7, #48] ; 0x30 - 8011bea: 69fb ldr r3, [r7, #28] - 8011bec: 4413 add r3, r2 - 8011bee: 3334 adds r3, #52 ; 0x34 - 8011bf0: 460a mov r2, r1 - 8011bf2: 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 ) - 8011bf4: 68ba ldr r2, [r7, #8] - 8011bf6: 69fb ldr r3, [r7, #28] - 8011bf8: 4413 add r3, r2 - 8011bfa: 781b ldrb r3, [r3, #0] - 8011bfc: 2b00 cmp r3, #0 - 8011bfe: d006 beq.n 8011c0e - for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ ) - 8011c00: 69fb ldr r3, [r7, #28] - 8011c02: 3301 adds r3, #1 - 8011c04: 61fb str r3, [r7, #28] - 8011c06: 69fb ldr r3, [r7, #28] - 8011c08: 2b0f cmp r3, #15 - 8011c0a: d9e9 bls.n 8011be0 - 8011c0c: e000 b.n 8011c10 - { - break; - 8011c0e: 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'; - 8011c10: 6b3b ldr r3, [r7, #48] ; 0x30 - 8011c12: 2200 movs r2, #0 - 8011c14: f883 2043 strb.w r2, [r3, #67] ; 0x43 - 8011c18: e003 b.n 8011c22 - } - 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; - 8011c1a: 6b3b ldr r3, [r7, #48] ; 0x30 - 8011c1c: 2200 movs r2, #0 - 8011c1e: 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 ) - 8011c22: 6abb ldr r3, [r7, #40] ; 0x28 - 8011c24: 2b06 cmp r3, #6 - 8011c26: d901 bls.n 8011c2c - { - uxPriority = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) 1U; - 8011c28: 2306 movs r3, #6 - 8011c2a: 62bb str r3, [r7, #40] ; 0x28 - else - { - mtCOVERAGE_TEST_MARKER(); - } - - pxNewTCB->uxPriority = uxPriority; - 8011c2c: 6b3b ldr r3, [r7, #48] ; 0x30 - 8011c2e: 6aba ldr r2, [r7, #40] ; 0x28 - 8011c30: 62da str r2, [r3, #44] ; 0x2c - #if ( configUSE_MUTEXES == 1 ) - { - pxNewTCB->uxBasePriority = uxPriority; - 8011c32: 6b3b ldr r3, [r7, #48] ; 0x30 - 8011c34: 6aba ldr r2, [r7, #40] ; 0x28 - 8011c36: 645a str r2, [r3, #68] ; 0x44 - pxNewTCB->uxMutexesHeld = 0; - 8011c38: 6b3b ldr r3, [r7, #48] ; 0x30 - 8011c3a: 2200 movs r2, #0 - 8011c3c: 649a str r2, [r3, #72] ; 0x48 - } - #endif /* configUSE_MUTEXES */ - - vListInitialiseItem( &( pxNewTCB->xStateListItem ) ); - 8011c3e: 6b3b ldr r3, [r7, #48] ; 0x30 - 8011c40: 3304 adds r3, #4 - 8011c42: 4618 mov r0, r3 - 8011c44: f7fe fe3b bl 80108be - vListInitialiseItem( &( pxNewTCB->xEventListItem ) ); - 8011c48: 6b3b ldr r3, [r7, #48] ; 0x30 - 8011c4a: 3318 adds r3, #24 - 8011c4c: 4618 mov r0, r3 - 8011c4e: f7fe fe36 bl 80108be - - /* 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 ); - 8011c52: 6b3b ldr r3, [r7, #48] ; 0x30 - 8011c54: 6b3a ldr r2, [r7, #48] ; 0x30 - 8011c56: 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. */ - 8011c58: 6abb ldr r3, [r7, #40] ; 0x28 - 8011c5a: f1c3 0207 rsb r2, r3, #7 - 8011c5e: 6b3b ldr r3, [r7, #48] ; 0x30 - 8011c60: 619a str r2, [r3, #24] - listSET_LIST_ITEM_OWNER( &( pxNewTCB->xEventListItem ), pxNewTCB ); - 8011c62: 6b3b ldr r3, [r7, #48] ; 0x30 - 8011c64: 6b3a ldr r2, [r7, #48] ; 0x30 - 8011c66: 625a str r2, [r3, #36] ; 0x24 - } - #endif - - #if ( configUSE_TASK_NOTIFICATIONS == 1 ) - { - pxNewTCB->ulNotifiedValue = 0; - 8011c68: 6b3b ldr r3, [r7, #48] ; 0x30 - 8011c6a: 2200 movs r2, #0 - 8011c6c: 64da str r2, [r3, #76] ; 0x4c - pxNewTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION; - 8011c6e: 6b3b ldr r3, [r7, #48] ; 0x30 - 8011c70: 2200 movs r2, #0 - 8011c72: f883 2050 strb.w r2, [r3, #80] ; 0x50 - } - #endif /* portSTACK_GROWTH */ - } - #else /* portHAS_STACK_OVERFLOW_CHECKING */ - { - pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxTaskCode, pvParameters ); - 8011c76: 683a ldr r2, [r7, #0] - 8011c78: 68f9 ldr r1, [r7, #12] - 8011c7a: 69b8 ldr r0, [r7, #24] - 8011c7c: f001 fa98 bl 80131b0 - 8011c80: 4602 mov r2, r0 - 8011c82: 6b3b ldr r3, [r7, #48] ; 0x30 - 8011c84: 601a str r2, [r3, #0] - } - #endif /* portHAS_STACK_OVERFLOW_CHECKING */ - } - #endif /* portUSING_MPU_WRAPPERS */ - - if( pxCreatedTask != NULL ) - 8011c86: 6afb ldr r3, [r7, #44] ; 0x2c - 8011c88: 2b00 cmp r3, #0 - 8011c8a: d002 beq.n 8011c92 - { - /* 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; - 8011c8c: 6afb ldr r3, [r7, #44] ; 0x2c - 8011c8e: 6b3a ldr r2, [r7, #48] ; 0x30 - 8011c90: 601a str r2, [r3, #0] - } - else - { - mtCOVERAGE_TEST_MARKER(); - } -} - 8011c92: bf00 nop - 8011c94: 3720 adds r7, #32 - 8011c96: 46bd mov sp, r7 - 8011c98: bd80 pop {r7, pc} - ... - -08011c9c : -/*-----------------------------------------------------------*/ - -static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB ) -{ - 8011c9c: b580 push {r7, lr} - 8011c9e: b082 sub sp, #8 - 8011ca0: af00 add r7, sp, #0 - 8011ca2: 6078 str r0, [r7, #4] - /* Ensure interrupts don't access the task lists while the lists are being - updated. */ - taskENTER_CRITICAL(); - 8011ca4: f001 fbae bl 8013404 - { - uxCurrentNumberOfTasks++; - 8011ca8: 4b2a ldr r3, [pc, #168] ; (8011d54 ) - 8011caa: 681b ldr r3, [r3, #0] - 8011cac: 3301 adds r3, #1 - 8011cae: 4a29 ldr r2, [pc, #164] ; (8011d54 ) - 8011cb0: 6013 str r3, [r2, #0] - if( pxCurrentTCB == NULL ) - 8011cb2: 4b29 ldr r3, [pc, #164] ; (8011d58 ) - 8011cb4: 681b ldr r3, [r3, #0] - 8011cb6: 2b00 cmp r3, #0 - 8011cb8: d109 bne.n 8011cce - { - /* There are no other tasks, or all the other tasks are in - the suspended state - make this the current task. */ - pxCurrentTCB = pxNewTCB; - 8011cba: 4a27 ldr r2, [pc, #156] ; (8011d58 ) - 8011cbc: 687b ldr r3, [r7, #4] - 8011cbe: 6013 str r3, [r2, #0] - - if( uxCurrentNumberOfTasks == ( UBaseType_t ) 1 ) - 8011cc0: 4b24 ldr r3, [pc, #144] ; (8011d54 ) - 8011cc2: 681b ldr r3, [r3, #0] - 8011cc4: 2b01 cmp r3, #1 - 8011cc6: d110 bne.n 8011cea - { - /* 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(); - 8011cc8: f000 fc28 bl 801251c - 8011ccc: e00d b.n 8011cea - 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 ) - 8011cce: 4b23 ldr r3, [pc, #140] ; (8011d5c ) - 8011cd0: 681b ldr r3, [r3, #0] - 8011cd2: 2b00 cmp r3, #0 - 8011cd4: d109 bne.n 8011cea - { - if( pxCurrentTCB->uxPriority <= pxNewTCB->uxPriority ) - 8011cd6: 4b20 ldr r3, [pc, #128] ; (8011d58 ) - 8011cd8: 681b ldr r3, [r3, #0] - 8011cda: 6ada ldr r2, [r3, #44] ; 0x2c - 8011cdc: 687b ldr r3, [r7, #4] - 8011cde: 6adb ldr r3, [r3, #44] ; 0x2c - 8011ce0: 429a cmp r2, r3 - 8011ce2: d802 bhi.n 8011cea - { - pxCurrentTCB = pxNewTCB; - 8011ce4: 4a1c ldr r2, [pc, #112] ; (8011d58 ) - 8011ce6: 687b ldr r3, [r7, #4] - 8011ce8: 6013 str r3, [r2, #0] - { - mtCOVERAGE_TEST_MARKER(); - } - } - - uxTaskNumber++; - 8011cea: 4b1d ldr r3, [pc, #116] ; (8011d60 ) - 8011cec: 681b ldr r3, [r3, #0] - 8011cee: 3301 adds r3, #1 - 8011cf0: 4a1b ldr r2, [pc, #108] ; (8011d60 ) - 8011cf2: 6013 str r3, [r2, #0] - pxNewTCB->uxTCBNumber = uxTaskNumber; - } - #endif /* configUSE_TRACE_FACILITY */ - traceTASK_CREATE( pxNewTCB ); - - prvAddTaskToReadyList( pxNewTCB ); - 8011cf4: 687b ldr r3, [r7, #4] - 8011cf6: 6adb ldr r3, [r3, #44] ; 0x2c - 8011cf8: 2201 movs r2, #1 - 8011cfa: 409a lsls r2, r3 - 8011cfc: 4b19 ldr r3, [pc, #100] ; (8011d64 ) - 8011cfe: 681b ldr r3, [r3, #0] - 8011d00: 4313 orrs r3, r2 - 8011d02: 4a18 ldr r2, [pc, #96] ; (8011d64 ) - 8011d04: 6013 str r3, [r2, #0] - 8011d06: 687b ldr r3, [r7, #4] - 8011d08: 6ada ldr r2, [r3, #44] ; 0x2c - 8011d0a: 4613 mov r3, r2 - 8011d0c: 009b lsls r3, r3, #2 - 8011d0e: 4413 add r3, r2 - 8011d10: 009b lsls r3, r3, #2 - 8011d12: 4a15 ldr r2, [pc, #84] ; (8011d68 ) - 8011d14: 441a add r2, r3 - 8011d16: 687b ldr r3, [r7, #4] - 8011d18: 3304 adds r3, #4 - 8011d1a: 4619 mov r1, r3 - 8011d1c: 4610 mov r0, r2 - 8011d1e: f7fe fddb bl 80108d8 - - portSETUP_TCB( pxNewTCB ); - } - taskEXIT_CRITICAL(); - 8011d22: f001 fb9f bl 8013464 - - if( xSchedulerRunning != pdFALSE ) - 8011d26: 4b0d ldr r3, [pc, #52] ; (8011d5c ) - 8011d28: 681b ldr r3, [r3, #0] - 8011d2a: 2b00 cmp r3, #0 - 8011d2c: d00e beq.n 8011d4c - { - /* If the created task is of a higher priority than the current task - then it should run now. */ - if( pxCurrentTCB->uxPriority < pxNewTCB->uxPriority ) - 8011d2e: 4b0a ldr r3, [pc, #40] ; (8011d58 ) - 8011d30: 681b ldr r3, [r3, #0] - 8011d32: 6ada ldr r2, [r3, #44] ; 0x2c - 8011d34: 687b ldr r3, [r7, #4] - 8011d36: 6adb ldr r3, [r3, #44] ; 0x2c - 8011d38: 429a cmp r2, r3 - 8011d3a: d207 bcs.n 8011d4c - { - taskYIELD_IF_USING_PREEMPTION(); - 8011d3c: 4b0b ldr r3, [pc, #44] ; (8011d6c ) - 8011d3e: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 8011d42: 601a str r2, [r3, #0] - 8011d44: f3bf 8f4f dsb sy - 8011d48: f3bf 8f6f isb sy - } - else - { - mtCOVERAGE_TEST_MARKER(); - } -} - 8011d4c: bf00 nop - 8011d4e: 3708 adds r7, #8 - 8011d50: 46bd mov sp, r7 - 8011d52: bd80 pop {r7, pc} - 8011d54: 2400c020 .word 0x2400c020 - 8011d58: 2400bf20 .word 0x2400bf20 - 8011d5c: 2400c02c .word 0x2400c02c - 8011d60: 2400c03c .word 0x2400c03c - 8011d64: 2400c028 .word 0x2400c028 - 8011d68: 2400bf24 .word 0x2400bf24 - 8011d6c: e000ed04 .word 0xe000ed04 - -08011d70 : -/*-----------------------------------------------------------*/ - -#if ( INCLUDE_vTaskDelay == 1 ) - - void vTaskDelay( const TickType_t xTicksToDelay ) - { - 8011d70: b580 push {r7, lr} - 8011d72: b084 sub sp, #16 - 8011d74: af00 add r7, sp, #0 - 8011d76: 6078 str r0, [r7, #4] - BaseType_t xAlreadyYielded = pdFALSE; - 8011d78: 2300 movs r3, #0 - 8011d7a: 60fb str r3, [r7, #12] - - /* A delay time of zero just forces a reschedule. */ - if( xTicksToDelay > ( TickType_t ) 0U ) - 8011d7c: 687b ldr r3, [r7, #4] - 8011d7e: 2b00 cmp r3, #0 - 8011d80: d017 beq.n 8011db2 - { - configASSERT( uxSchedulerSuspended == 0 ); - 8011d82: 4b13 ldr r3, [pc, #76] ; (8011dd0 ) - 8011d84: 681b ldr r3, [r3, #0] - 8011d86: 2b00 cmp r3, #0 - 8011d88: d00a beq.n 8011da0 - __asm volatile - 8011d8a: f04f 0350 mov.w r3, #80 ; 0x50 - 8011d8e: f383 8811 msr BASEPRI, r3 - 8011d92: f3bf 8f6f isb sy - 8011d96: f3bf 8f4f dsb sy - 8011d9a: 60bb str r3, [r7, #8] -} - 8011d9c: bf00 nop - 8011d9e: e7fe b.n 8011d9e - vTaskSuspendAll(); - 8011da0: f000 f880 bl 8011ea4 - 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 ); - 8011da4: 2100 movs r1, #0 - 8011da6: 6878 ldr r0, [r7, #4] - 8011da8: f000 fe6a bl 8012a80 - } - xAlreadyYielded = xTaskResumeAll(); - 8011dac: f000 f888 bl 8011ec0 - 8011db0: 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 ) - 8011db2: 68fb ldr r3, [r7, #12] - 8011db4: 2b00 cmp r3, #0 - 8011db6: d107 bne.n 8011dc8 - { - portYIELD_WITHIN_API(); - 8011db8: 4b06 ldr r3, [pc, #24] ; (8011dd4 ) - 8011dba: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 8011dbe: 601a str r2, [r3, #0] - 8011dc0: f3bf 8f4f dsb sy - 8011dc4: f3bf 8f6f isb sy - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - 8011dc8: bf00 nop - 8011dca: 3710 adds r7, #16 - 8011dcc: 46bd mov sp, r7 - 8011dce: bd80 pop {r7, pc} - 8011dd0: 2400c048 .word 0x2400c048 - 8011dd4: e000ed04 .word 0xe000ed04 - -08011dd8 : - -#endif /* ( ( INCLUDE_xTaskResumeFromISR == 1 ) && ( INCLUDE_vTaskSuspend == 1 ) ) */ -/*-----------------------------------------------------------*/ - -void vTaskStartScheduler( void ) -{ - 8011dd8: b580 push {r7, lr} - 8011dda: b08a sub sp, #40 ; 0x28 - 8011ddc: 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; - 8011dde: 2300 movs r3, #0 - 8011de0: 60bb str r3, [r7, #8] - StackType_t *pxIdleTaskStackBuffer = NULL; - 8011de2: 2300 movs r3, #0 - 8011de4: 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 ); - 8011de6: 463a mov r2, r7 - 8011de8: 1d39 adds r1, r7, #4 - 8011dea: f107 0308 add.w r3, r7, #8 - 8011dee: 4618 mov r0, r3 - 8011df0: f7ee fc80 bl 80006f4 - xIdleTaskHandle = xTaskCreateStatic( prvIdleTask, - 8011df4: 6839 ldr r1, [r7, #0] - 8011df6: 687b ldr r3, [r7, #4] - 8011df8: 68ba ldr r2, [r7, #8] - 8011dfa: 9202 str r2, [sp, #8] - 8011dfc: 9301 str r3, [sp, #4] - 8011dfe: 2300 movs r3, #0 - 8011e00: 9300 str r3, [sp, #0] - 8011e02: 2300 movs r3, #0 - 8011e04: 460a mov r2, r1 - 8011e06: 4921 ldr r1, [pc, #132] ; (8011e8c ) - 8011e08: 4821 ldr r0, [pc, #132] ; (8011e90 ) - 8011e0a: f7ff fe15 bl 8011a38 - 8011e0e: 4603 mov r3, r0 - 8011e10: 4a20 ldr r2, [pc, #128] ; (8011e94 ) - 8011e12: 6013 str r3, [r2, #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 ) - 8011e14: 4b1f ldr r3, [pc, #124] ; (8011e94 ) - 8011e16: 681b ldr r3, [r3, #0] - 8011e18: 2b00 cmp r3, #0 - 8011e1a: d002 beq.n 8011e22 - { - xReturn = pdPASS; - 8011e1c: 2301 movs r3, #1 - 8011e1e: 617b str r3, [r7, #20] - 8011e20: e001 b.n 8011e26 - } - else - { - xReturn = pdFAIL; - 8011e22: 2300 movs r3, #0 - 8011e24: 617b str r3, [r7, #20] - } - #endif /* configSUPPORT_STATIC_ALLOCATION */ - - #if ( configUSE_TIMERS == 1 ) - { - if( xReturn == pdPASS ) - 8011e26: 697b ldr r3, [r7, #20] - 8011e28: 2b01 cmp r3, #1 - 8011e2a: d102 bne.n 8011e32 - { - xReturn = xTimerCreateTimerTask(); - 8011e2c: f000 fe8e bl 8012b4c - 8011e30: 6178 str r0, [r7, #20] - mtCOVERAGE_TEST_MARKER(); - } - } - #endif /* configUSE_TIMERS */ - - if( xReturn == pdPASS ) - 8011e32: 697b ldr r3, [r7, #20] - 8011e34: 2b01 cmp r3, #1 - 8011e36: d116 bne.n 8011e66 - __asm volatile - 8011e38: f04f 0350 mov.w r3, #80 ; 0x50 - 8011e3c: f383 8811 msr BASEPRI, r3 - 8011e40: f3bf 8f6f isb sy - 8011e44: f3bf 8f4f dsb sy - 8011e48: 613b str r3, [r7, #16] -} - 8011e4a: bf00 nop - for additional information. */ - _impure_ptr = &( pxCurrentTCB->xNewLib_reent ); - } - #endif /* configUSE_NEWLIB_REENTRANT */ - - xNextTaskUnblockTime = portMAX_DELAY; - 8011e4c: 4b12 ldr r3, [pc, #72] ; (8011e98 ) - 8011e4e: f04f 32ff mov.w r2, #4294967295 - 8011e52: 601a str r2, [r3, #0] - xSchedulerRunning = pdTRUE; - 8011e54: 4b11 ldr r3, [pc, #68] ; (8011e9c ) - 8011e56: 2201 movs r2, #1 - 8011e58: 601a str r2, [r3, #0] - xTickCount = ( TickType_t ) configINITIAL_TICK_COUNT; - 8011e5a: 4b11 ldr r3, [pc, #68] ; (8011ea0 ) - 8011e5c: 2200 movs r2, #0 - 8011e5e: 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 ) - 8011e60: f001 fa2e bl 80132c0 - } - - /* Prevent compiler warnings if INCLUDE_xTaskGetIdleTaskHandle is set to 0, - meaning xIdleTaskHandle is not used anywhere else. */ - ( void ) xIdleTaskHandle; -} - 8011e64: e00e b.n 8011e84 - configASSERT( xReturn != errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY ); - 8011e66: 697b ldr r3, [r7, #20] - 8011e68: f1b3 3fff cmp.w r3, #4294967295 - 8011e6c: d10a bne.n 8011e84 - __asm volatile - 8011e6e: f04f 0350 mov.w r3, #80 ; 0x50 - 8011e72: f383 8811 msr BASEPRI, r3 - 8011e76: f3bf 8f6f isb sy - 8011e7a: f3bf 8f4f dsb sy - 8011e7e: 60fb str r3, [r7, #12] -} - 8011e80: bf00 nop - 8011e82: e7fe b.n 8011e82 -} - 8011e84: bf00 nop - 8011e86: 3718 adds r7, #24 - 8011e88: 46bd mov sp, r7 - 8011e8a: bd80 pop {r7, pc} - 8011e8c: 080232b4 .word 0x080232b4 - 8011e90: 080124ed .word 0x080124ed - 8011e94: 2400c044 .word 0x2400c044 - 8011e98: 2400c040 .word 0x2400c040 - 8011e9c: 2400c02c .word 0x2400c02c - 8011ea0: 2400c024 .word 0x2400c024 - -08011ea4 : - vPortEndScheduler(); -} -/*----------------------------------------------------------*/ - -void vTaskSuspendAll( void ) -{ - 8011ea4: b480 push {r7} - 8011ea6: af00 add r7, sp, #0 - do not otherwise exhibit real time behaviour. */ - portSOFTWARE_BARRIER(); - - /* The scheduler is suspended if uxSchedulerSuspended is non-zero. An increment - is used to allow calls to vTaskSuspendAll() to nest. */ - ++uxSchedulerSuspended; - 8011ea8: 4b04 ldr r3, [pc, #16] ; (8011ebc ) - 8011eaa: 681b ldr r3, [r3, #0] - 8011eac: 3301 adds r3, #1 - 8011eae: 4a03 ldr r2, [pc, #12] ; (8011ebc ) - 8011eb0: 6013 str r3, [r2, #0] - - /* Enforces ordering for ports and optimised compilers that may otherwise place - the above increment elsewhere. */ - portMEMORY_BARRIER(); -} - 8011eb2: bf00 nop - 8011eb4: 46bd mov sp, r7 - 8011eb6: f85d 7b04 ldr.w r7, [sp], #4 - 8011eba: 4770 bx lr - 8011ebc: 2400c048 .word 0x2400c048 - -08011ec0 : - -#endif /* configUSE_TICKLESS_IDLE */ -/*----------------------------------------------------------*/ - -BaseType_t xTaskResumeAll( void ) -{ - 8011ec0: b580 push {r7, lr} - 8011ec2: b084 sub sp, #16 - 8011ec4: af00 add r7, sp, #0 -TCB_t *pxTCB = NULL; - 8011ec6: 2300 movs r3, #0 - 8011ec8: 60fb str r3, [r7, #12] -BaseType_t xAlreadyYielded = pdFALSE; - 8011eca: 2300 movs r3, #0 - 8011ecc: 60bb str r3, [r7, #8] - - /* If uxSchedulerSuspended is zero then this function does not match a - previous call to vTaskSuspendAll(). */ - configASSERT( uxSchedulerSuspended ); - 8011ece: 4b41 ldr r3, [pc, #260] ; (8011fd4 ) - 8011ed0: 681b ldr r3, [r3, #0] - 8011ed2: 2b00 cmp r3, #0 - 8011ed4: d10a bne.n 8011eec - __asm volatile - 8011ed6: f04f 0350 mov.w r3, #80 ; 0x50 - 8011eda: f383 8811 msr BASEPRI, r3 - 8011ede: f3bf 8f6f isb sy - 8011ee2: f3bf 8f4f dsb sy - 8011ee6: 603b str r3, [r7, #0] -} - 8011ee8: bf00 nop - 8011eea: e7fe b.n 8011eea - /* 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(); - 8011eec: f001 fa8a bl 8013404 - { - --uxSchedulerSuspended; - 8011ef0: 4b38 ldr r3, [pc, #224] ; (8011fd4 ) - 8011ef2: 681b ldr r3, [r3, #0] - 8011ef4: 3b01 subs r3, #1 - 8011ef6: 4a37 ldr r2, [pc, #220] ; (8011fd4 ) - 8011ef8: 6013 str r3, [r2, #0] - - if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE ) - 8011efa: 4b36 ldr r3, [pc, #216] ; (8011fd4 ) - 8011efc: 681b ldr r3, [r3, #0] - 8011efe: 2b00 cmp r3, #0 - 8011f00: d161 bne.n 8011fc6 - { - if( uxCurrentNumberOfTasks > ( UBaseType_t ) 0U ) - 8011f02: 4b35 ldr r3, [pc, #212] ; (8011fd8 ) - 8011f04: 681b ldr r3, [r3, #0] - 8011f06: 2b00 cmp r3, #0 - 8011f08: d05d beq.n 8011fc6 - { - /* Move any readied tasks from the pending list into the - appropriate ready list. */ - while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE ) - 8011f0a: e02e b.n 8011f6a - { - 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. */ - 8011f0c: 4b33 ldr r3, [pc, #204] ; (8011fdc ) - 8011f0e: 68db ldr r3, [r3, #12] - 8011f10: 68db ldr r3, [r3, #12] - 8011f12: 60fb str r3, [r7, #12] - ( void ) uxListRemove( &( pxTCB->xEventListItem ) ); - 8011f14: 68fb ldr r3, [r7, #12] - 8011f16: 3318 adds r3, #24 - 8011f18: 4618 mov r0, r3 - 8011f1a: f7fe fd3a bl 8010992 - ( void ) uxListRemove( &( pxTCB->xStateListItem ) ); - 8011f1e: 68fb ldr r3, [r7, #12] - 8011f20: 3304 adds r3, #4 - 8011f22: 4618 mov r0, r3 - 8011f24: f7fe fd35 bl 8010992 - prvAddTaskToReadyList( pxTCB ); - 8011f28: 68fb ldr r3, [r7, #12] - 8011f2a: 6adb ldr r3, [r3, #44] ; 0x2c - 8011f2c: 2201 movs r2, #1 - 8011f2e: 409a lsls r2, r3 - 8011f30: 4b2b ldr r3, [pc, #172] ; (8011fe0 ) - 8011f32: 681b ldr r3, [r3, #0] - 8011f34: 4313 orrs r3, r2 - 8011f36: 4a2a ldr r2, [pc, #168] ; (8011fe0 ) - 8011f38: 6013 str r3, [r2, #0] - 8011f3a: 68fb ldr r3, [r7, #12] - 8011f3c: 6ada ldr r2, [r3, #44] ; 0x2c - 8011f3e: 4613 mov r3, r2 - 8011f40: 009b lsls r3, r3, #2 - 8011f42: 4413 add r3, r2 - 8011f44: 009b lsls r3, r3, #2 - 8011f46: 4a27 ldr r2, [pc, #156] ; (8011fe4 ) - 8011f48: 441a add r2, r3 - 8011f4a: 68fb ldr r3, [r7, #12] - 8011f4c: 3304 adds r3, #4 - 8011f4e: 4619 mov r1, r3 - 8011f50: 4610 mov r0, r2 - 8011f52: f7fe fcc1 bl 80108d8 - - /* If the moved task has a priority higher than the current - task then a yield must be performed. */ - if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority ) - 8011f56: 68fb ldr r3, [r7, #12] - 8011f58: 6ada ldr r2, [r3, #44] ; 0x2c - 8011f5a: 4b23 ldr r3, [pc, #140] ; (8011fe8 ) - 8011f5c: 681b ldr r3, [r3, #0] - 8011f5e: 6adb ldr r3, [r3, #44] ; 0x2c - 8011f60: 429a cmp r2, r3 - 8011f62: d302 bcc.n 8011f6a - { - xYieldPending = pdTRUE; - 8011f64: 4b21 ldr r3, [pc, #132] ; (8011fec ) - 8011f66: 2201 movs r2, #1 - 8011f68: 601a str r2, [r3, #0] - while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE ) - 8011f6a: 4b1c ldr r3, [pc, #112] ; (8011fdc ) - 8011f6c: 681b ldr r3, [r3, #0] - 8011f6e: 2b00 cmp r3, #0 - 8011f70: d1cc bne.n 8011f0c - { - mtCOVERAGE_TEST_MARKER(); - } - } - - if( pxTCB != NULL ) - 8011f72: 68fb ldr r3, [r7, #12] - 8011f74: 2b00 cmp r3, #0 - 8011f76: d001 beq.n 8011f7c - 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(); - 8011f78: f000 fba6 bl 80126c8 - /* 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. */ - { - TickType_t xPendedCounts = xPendedTicks; /* Non-volatile copy. */ - 8011f7c: 4b1c ldr r3, [pc, #112] ; (8011ff0 ) - 8011f7e: 681b ldr r3, [r3, #0] - 8011f80: 607b str r3, [r7, #4] - - if( xPendedCounts > ( TickType_t ) 0U ) - 8011f82: 687b ldr r3, [r7, #4] - 8011f84: 2b00 cmp r3, #0 - 8011f86: d010 beq.n 8011faa - { - do - { - if( xTaskIncrementTick() != pdFALSE ) - 8011f88: f000 f858 bl 801203c - 8011f8c: 4603 mov r3, r0 - 8011f8e: 2b00 cmp r3, #0 - 8011f90: d002 beq.n 8011f98 - { - xYieldPending = pdTRUE; - 8011f92: 4b16 ldr r3, [pc, #88] ; (8011fec ) - 8011f94: 2201 movs r2, #1 - 8011f96: 601a str r2, [r3, #0] - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - --xPendedCounts; - 8011f98: 687b ldr r3, [r7, #4] - 8011f9a: 3b01 subs r3, #1 - 8011f9c: 607b str r3, [r7, #4] - } while( xPendedCounts > ( TickType_t ) 0U ); - 8011f9e: 687b ldr r3, [r7, #4] - 8011fa0: 2b00 cmp r3, #0 - 8011fa2: d1f1 bne.n 8011f88 - - xPendedTicks = 0; - 8011fa4: 4b12 ldr r3, [pc, #72] ; (8011ff0 ) - 8011fa6: 2200 movs r2, #0 - 8011fa8: 601a str r2, [r3, #0] - { - mtCOVERAGE_TEST_MARKER(); - } - } - - if( xYieldPending != pdFALSE ) - 8011faa: 4b10 ldr r3, [pc, #64] ; (8011fec ) - 8011fac: 681b ldr r3, [r3, #0] - 8011fae: 2b00 cmp r3, #0 - 8011fb0: d009 beq.n 8011fc6 - { - #if( configUSE_PREEMPTION != 0 ) - { - xAlreadyYielded = pdTRUE; - 8011fb2: 2301 movs r3, #1 - 8011fb4: 60bb str r3, [r7, #8] - } - #endif - taskYIELD_IF_USING_PREEMPTION(); - 8011fb6: 4b0f ldr r3, [pc, #60] ; (8011ff4 ) - 8011fb8: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 8011fbc: 601a str r2, [r3, #0] - 8011fbe: f3bf 8f4f dsb sy - 8011fc2: f3bf 8f6f isb sy - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - taskEXIT_CRITICAL(); - 8011fc6: f001 fa4d bl 8013464 - - return xAlreadyYielded; - 8011fca: 68bb ldr r3, [r7, #8] -} - 8011fcc: 4618 mov r0, r3 - 8011fce: 3710 adds r7, #16 - 8011fd0: 46bd mov sp, r7 - 8011fd2: bd80 pop {r7, pc} - 8011fd4: 2400c048 .word 0x2400c048 - 8011fd8: 2400c020 .word 0x2400c020 - 8011fdc: 2400bfe0 .word 0x2400bfe0 - 8011fe0: 2400c028 .word 0x2400c028 - 8011fe4: 2400bf24 .word 0x2400bf24 - 8011fe8: 2400bf20 .word 0x2400bf20 - 8011fec: 2400c034 .word 0x2400c034 - 8011ff0: 2400c030 .word 0x2400c030 - 8011ff4: e000ed04 .word 0xe000ed04 - -08011ff8 : -/*-----------------------------------------------------------*/ - -TickType_t xTaskGetTickCount( void ) -{ - 8011ff8: b480 push {r7} - 8011ffa: b083 sub sp, #12 - 8011ffc: af00 add r7, sp, #0 -TickType_t xTicks; - - /* Critical section required if running on a 16 bit processor. */ - portTICK_TYPE_ENTER_CRITICAL(); - { - xTicks = xTickCount; - 8011ffe: 4b05 ldr r3, [pc, #20] ; (8012014 ) - 8012000: 681b ldr r3, [r3, #0] - 8012002: 607b str r3, [r7, #4] - } - portTICK_TYPE_EXIT_CRITICAL(); - - return xTicks; - 8012004: 687b ldr r3, [r7, #4] -} - 8012006: 4618 mov r0, r3 - 8012008: 370c adds r7, #12 - 801200a: 46bd mov sp, r7 - 801200c: f85d 7b04 ldr.w r7, [sp], #4 - 8012010: 4770 bx lr - 8012012: bf00 nop - 8012014: 2400c024 .word 0x2400c024 - -08012018 : -/*-----------------------------------------------------------*/ - -TickType_t xTaskGetTickCountFromISR( void ) -{ - 8012018: b580 push {r7, lr} - 801201a: b082 sub sp, #8 - 801201c: 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(); - 801201e: f001 fad3 bl 80135c8 - - uxSavedInterruptStatus = portTICK_TYPE_SET_INTERRUPT_MASK_FROM_ISR(); - 8012022: 2300 movs r3, #0 - 8012024: 607b str r3, [r7, #4] - { - xReturn = xTickCount; - 8012026: 4b04 ldr r3, [pc, #16] ; (8012038 ) - 8012028: 681b ldr r3, [r3, #0] - 801202a: 603b str r3, [r7, #0] - } - portTICK_TYPE_CLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); - - return xReturn; - 801202c: 683b ldr r3, [r7, #0] -} - 801202e: 4618 mov r0, r3 - 8012030: 3708 adds r7, #8 - 8012032: 46bd mov sp, r7 - 8012034: bd80 pop {r7, pc} - 8012036: bf00 nop - 8012038: 2400c024 .word 0x2400c024 - -0801203c : - -#endif /* INCLUDE_xTaskAbortDelay */ -/*----------------------------------------------------------*/ - -BaseType_t xTaskIncrementTick( void ) -{ - 801203c: b580 push {r7, lr} - 801203e: b086 sub sp, #24 - 8012040: af00 add r7, sp, #0 -TCB_t * pxTCB; -TickType_t xItemValue; -BaseType_t xSwitchRequired = pdFALSE; - 8012042: 2300 movs r3, #0 - 8012044: 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 ) - 8012046: 4b4e ldr r3, [pc, #312] ; (8012180 ) - 8012048: 681b ldr r3, [r3, #0] - 801204a: 2b00 cmp r3, #0 - 801204c: f040 808e bne.w 801216c - { - /* Minor optimisation. The tick count cannot change in this - block. */ - const TickType_t xConstTickCount = xTickCount + ( TickType_t ) 1; - 8012050: 4b4c ldr r3, [pc, #304] ; (8012184 ) - 8012052: 681b ldr r3, [r3, #0] - 8012054: 3301 adds r3, #1 - 8012056: 613b str r3, [r7, #16] - - /* Increment the RTOS tick, switching the delayed and overflowed - delayed lists if it wraps to 0. */ - xTickCount = xConstTickCount; - 8012058: 4a4a ldr r2, [pc, #296] ; (8012184 ) - 801205a: 693b ldr r3, [r7, #16] - 801205c: 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. */ - 801205e: 693b ldr r3, [r7, #16] - 8012060: 2b00 cmp r3, #0 - 8012062: d120 bne.n 80120a6 - { - taskSWITCH_DELAYED_LISTS(); - 8012064: 4b48 ldr r3, [pc, #288] ; (8012188 ) - 8012066: 681b ldr r3, [r3, #0] - 8012068: 681b ldr r3, [r3, #0] - 801206a: 2b00 cmp r3, #0 - 801206c: d00a beq.n 8012084 - __asm volatile - 801206e: f04f 0350 mov.w r3, #80 ; 0x50 - 8012072: f383 8811 msr BASEPRI, r3 - 8012076: f3bf 8f6f isb sy - 801207a: f3bf 8f4f dsb sy - 801207e: 603b str r3, [r7, #0] -} - 8012080: bf00 nop - 8012082: e7fe b.n 8012082 - 8012084: 4b40 ldr r3, [pc, #256] ; (8012188 ) - 8012086: 681b ldr r3, [r3, #0] - 8012088: 60fb str r3, [r7, #12] - 801208a: 4b40 ldr r3, [pc, #256] ; (801218c ) - 801208c: 681b ldr r3, [r3, #0] - 801208e: 4a3e ldr r2, [pc, #248] ; (8012188 ) - 8012090: 6013 str r3, [r2, #0] - 8012092: 4a3e ldr r2, [pc, #248] ; (801218c ) - 8012094: 68fb ldr r3, [r7, #12] - 8012096: 6013 str r3, [r2, #0] - 8012098: 4b3d ldr r3, [pc, #244] ; (8012190 ) - 801209a: 681b ldr r3, [r3, #0] - 801209c: 3301 adds r3, #1 - 801209e: 4a3c ldr r2, [pc, #240] ; (8012190 ) - 80120a0: 6013 str r3, [r2, #0] - 80120a2: f000 fb11 bl 80126c8 - - /* 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 ) - 80120a6: 4b3b ldr r3, [pc, #236] ; (8012194 ) - 80120a8: 681b ldr r3, [r3, #0] - 80120aa: 693a ldr r2, [r7, #16] - 80120ac: 429a cmp r2, r3 - 80120ae: d348 bcc.n 8012142 - { - for( ;; ) - { - if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE ) - 80120b0: 4b35 ldr r3, [pc, #212] ; (8012188 ) - 80120b2: 681b ldr r3, [r3, #0] - 80120b4: 681b ldr r3, [r3, #0] - 80120b6: 2b00 cmp r3, #0 - 80120b8: d104 bne.n 80120c4 - /* 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. */ - 80120ba: 4b36 ldr r3, [pc, #216] ; (8012194 ) - 80120bc: f04f 32ff mov.w r2, #4294967295 - 80120c0: 601a str r2, [r3, #0] - break; - 80120c2: e03e b.n 8012142 - { - /* 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. */ - 80120c4: 4b30 ldr r3, [pc, #192] ; (8012188 ) - 80120c6: 681b ldr r3, [r3, #0] - 80120c8: 68db ldr r3, [r3, #12] - 80120ca: 68db ldr r3, [r3, #12] - 80120cc: 60bb str r3, [r7, #8] - xItemValue = listGET_LIST_ITEM_VALUE( &( pxTCB->xStateListItem ) ); - 80120ce: 68bb ldr r3, [r7, #8] - 80120d0: 685b ldr r3, [r3, #4] - 80120d2: 607b str r3, [r7, #4] - - if( xConstTickCount < xItemValue ) - 80120d4: 693a ldr r2, [r7, #16] - 80120d6: 687b ldr r3, [r7, #4] - 80120d8: 429a cmp r2, r3 - 80120da: d203 bcs.n 80120e4 - /* 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; - 80120dc: 4a2d ldr r2, [pc, #180] ; (8012194 ) - 80120de: 687b ldr r3, [r7, #4] - 80120e0: 6013 str r3, [r2, #0] - break; /*lint !e9011 Code structure here is deedmed easier to understand with multiple breaks. */ - 80120e2: e02e b.n 8012142 - { - mtCOVERAGE_TEST_MARKER(); - } - - /* It is time to remove the item from the Blocked state. */ - ( void ) uxListRemove( &( pxTCB->xStateListItem ) ); - 80120e4: 68bb ldr r3, [r7, #8] - 80120e6: 3304 adds r3, #4 - 80120e8: 4618 mov r0, r3 - 80120ea: f7fe fc52 bl 8010992 - - /* Is the task waiting on an event also? If so remove - it from the event list. */ - if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL ) - 80120ee: 68bb ldr r3, [r7, #8] - 80120f0: 6a9b ldr r3, [r3, #40] ; 0x28 - 80120f2: 2b00 cmp r3, #0 - 80120f4: d004 beq.n 8012100 - { - ( void ) uxListRemove( &( pxTCB->xEventListItem ) ); - 80120f6: 68bb ldr r3, [r7, #8] - 80120f8: 3318 adds r3, #24 - 80120fa: 4618 mov r0, r3 - 80120fc: f7fe fc49 bl 8010992 - mtCOVERAGE_TEST_MARKER(); - } - - /* Place the unblocked task into the appropriate ready - list. */ - prvAddTaskToReadyList( pxTCB ); - 8012100: 68bb ldr r3, [r7, #8] - 8012102: 6adb ldr r3, [r3, #44] ; 0x2c - 8012104: 2201 movs r2, #1 - 8012106: 409a lsls r2, r3 - 8012108: 4b23 ldr r3, [pc, #140] ; (8012198 ) - 801210a: 681b ldr r3, [r3, #0] - 801210c: 4313 orrs r3, r2 - 801210e: 4a22 ldr r2, [pc, #136] ; (8012198 ) - 8012110: 6013 str r3, [r2, #0] - 8012112: 68bb ldr r3, [r7, #8] - 8012114: 6ada ldr r2, [r3, #44] ; 0x2c - 8012116: 4613 mov r3, r2 - 8012118: 009b lsls r3, r3, #2 - 801211a: 4413 add r3, r2 - 801211c: 009b lsls r3, r3, #2 - 801211e: 4a1f ldr r2, [pc, #124] ; (801219c ) - 8012120: 441a add r2, r3 - 8012122: 68bb ldr r3, [r7, #8] - 8012124: 3304 adds r3, #4 - 8012126: 4619 mov r1, r3 - 8012128: 4610 mov r0, r2 - 801212a: f7fe fbd5 bl 80108d8 - { - /* 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 ) - 801212e: 68bb ldr r3, [r7, #8] - 8012130: 6ada ldr r2, [r3, #44] ; 0x2c - 8012132: 4b1b ldr r3, [pc, #108] ; (80121a0 ) - 8012134: 681b ldr r3, [r3, #0] - 8012136: 6adb ldr r3, [r3, #44] ; 0x2c - 8012138: 429a cmp r2, r3 - 801213a: d3b9 bcc.n 80120b0 - { - xSwitchRequired = pdTRUE; - 801213c: 2301 movs r3, #1 - 801213e: 617b str r3, [r7, #20] - if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE ) - 8012140: e7b6 b.n 80120b0 - /* 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 ) - 8012142: 4b17 ldr r3, [pc, #92] ; (80121a0 ) - 8012144: 681b ldr r3, [r3, #0] - 8012146: 6ada ldr r2, [r3, #44] ; 0x2c - 8012148: 4914 ldr r1, [pc, #80] ; (801219c ) - 801214a: 4613 mov r3, r2 - 801214c: 009b lsls r3, r3, #2 - 801214e: 4413 add r3, r2 - 8012150: 009b lsls r3, r3, #2 - 8012152: 440b add r3, r1 - 8012154: 681b ldr r3, [r3, #0] - 8012156: 2b01 cmp r3, #1 - 8012158: d901 bls.n 801215e - { - xSwitchRequired = pdTRUE; - 801215a: 2301 movs r3, #1 - 801215c: 617b str r3, [r7, #20] - } - #endif /* configUSE_TICK_HOOK */ - - #if ( configUSE_PREEMPTION == 1 ) - { - if( xYieldPending != pdFALSE ) - 801215e: 4b11 ldr r3, [pc, #68] ; (80121a4 ) - 8012160: 681b ldr r3, [r3, #0] - 8012162: 2b00 cmp r3, #0 - 8012164: d007 beq.n 8012176 - { - xSwitchRequired = pdTRUE; - 8012166: 2301 movs r3, #1 - 8012168: 617b str r3, [r7, #20] - 801216a: e004 b.n 8012176 - } - #endif /* configUSE_PREEMPTION */ - } - else - { - ++xPendedTicks; - 801216c: 4b0e ldr r3, [pc, #56] ; (80121a8 ) - 801216e: 681b ldr r3, [r3, #0] - 8012170: 3301 adds r3, #1 - 8012172: 4a0d ldr r2, [pc, #52] ; (80121a8 ) - 8012174: 6013 str r3, [r2, #0] - vApplicationTickHook(); - } - #endif - } - - return xSwitchRequired; - 8012176: 697b ldr r3, [r7, #20] -} - 8012178: 4618 mov r0, r3 - 801217a: 3718 adds r7, #24 - 801217c: 46bd mov sp, r7 - 801217e: bd80 pop {r7, pc} - 8012180: 2400c048 .word 0x2400c048 - 8012184: 2400c024 .word 0x2400c024 - 8012188: 2400bfd8 .word 0x2400bfd8 - 801218c: 2400bfdc .word 0x2400bfdc - 8012190: 2400c038 .word 0x2400c038 - 8012194: 2400c040 .word 0x2400c040 - 8012198: 2400c028 .word 0x2400c028 - 801219c: 2400bf24 .word 0x2400bf24 - 80121a0: 2400bf20 .word 0x2400bf20 - 80121a4: 2400c034 .word 0x2400c034 - 80121a8: 2400c030 .word 0x2400c030 - -080121ac : - -#endif /* configUSE_APPLICATION_TASK_TAG */ -/*-----------------------------------------------------------*/ - -void vTaskSwitchContext( void ) -{ - 80121ac: b580 push {r7, lr} - 80121ae: b086 sub sp, #24 - 80121b0: af00 add r7, sp, #0 - if( uxSchedulerSuspended != ( UBaseType_t ) pdFALSE ) - 80121b2: 4b2e ldr r3, [pc, #184] ; (801226c ) - 80121b4: 681b ldr r3, [r3, #0] - 80121b6: 2b00 cmp r3, #0 - 80121b8: d003 beq.n 80121c2 - { - /* The scheduler is currently suspended - do not allow a context - switch. */ - xYieldPending = pdTRUE; - 80121ba: 4b2d ldr r3, [pc, #180] ; (8012270 ) - 80121bc: 2201 movs r2, #1 - 80121be: 601a str r2, [r3, #0] - for additional information. */ - _impure_ptr = &( pxCurrentTCB->xNewLib_reent ); - } - #endif /* configUSE_NEWLIB_REENTRANT */ - } -} - 80121c0: e050 b.n 8012264 - xYieldPending = pdFALSE; - 80121c2: 4b2b ldr r3, [pc, #172] ; (8012270 ) - 80121c4: 2200 movs r2, #0 - 80121c6: 601a str r2, [r3, #0] - taskCHECK_FOR_STACK_OVERFLOW(); - 80121c8: 4b2a ldr r3, [pc, #168] ; (8012274 ) - 80121ca: 681b ldr r3, [r3, #0] - 80121cc: 681a ldr r2, [r3, #0] - 80121ce: 4b29 ldr r3, [pc, #164] ; (8012274 ) - 80121d0: 681b ldr r3, [r3, #0] - 80121d2: 6b1b ldr r3, [r3, #48] ; 0x30 - 80121d4: 429a cmp r2, r3 - 80121d6: d808 bhi.n 80121ea - 80121d8: 4b26 ldr r3, [pc, #152] ; (8012274 ) - 80121da: 681a ldr r2, [r3, #0] - 80121dc: 4b25 ldr r3, [pc, #148] ; (8012274 ) - 80121de: 681b ldr r3, [r3, #0] - 80121e0: 3334 adds r3, #52 ; 0x34 - 80121e2: 4619 mov r1, r3 - 80121e4: 4610 mov r0, r2 - 80121e6: f7ee fa79 bl 80006dc - 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. */ - 80121ea: 4b23 ldr r3, [pc, #140] ; (8012278 ) - 80121ec: 681b ldr r3, [r3, #0] - 80121ee: 60fb str r3, [r7, #12] - __asm volatile ( "clz %0, %1" : "=r" ( ucReturn ) : "r" ( ulBitmap ) : "memory" ); - 80121f0: 68fb ldr r3, [r7, #12] - 80121f2: fab3 f383 clz r3, r3 - 80121f6: 72fb strb r3, [r7, #11] - return ucReturn; - 80121f8: 7afb ldrb r3, [r7, #11] - 80121fa: f1c3 031f rsb r3, r3, #31 - 80121fe: 617b str r3, [r7, #20] - 8012200: 491e ldr r1, [pc, #120] ; (801227c ) - 8012202: 697a ldr r2, [r7, #20] - 8012204: 4613 mov r3, r2 - 8012206: 009b lsls r3, r3, #2 - 8012208: 4413 add r3, r2 - 801220a: 009b lsls r3, r3, #2 - 801220c: 440b add r3, r1 - 801220e: 681b ldr r3, [r3, #0] - 8012210: 2b00 cmp r3, #0 - 8012212: d10a bne.n 801222a - __asm volatile - 8012214: f04f 0350 mov.w r3, #80 ; 0x50 - 8012218: f383 8811 msr BASEPRI, r3 - 801221c: f3bf 8f6f isb sy - 8012220: f3bf 8f4f dsb sy - 8012224: 607b str r3, [r7, #4] -} - 8012226: bf00 nop - 8012228: e7fe b.n 8012228 - 801222a: 697a ldr r2, [r7, #20] - 801222c: 4613 mov r3, r2 - 801222e: 009b lsls r3, r3, #2 - 8012230: 4413 add r3, r2 - 8012232: 009b lsls r3, r3, #2 - 8012234: 4a11 ldr r2, [pc, #68] ; (801227c ) - 8012236: 4413 add r3, r2 - 8012238: 613b str r3, [r7, #16] - 801223a: 693b ldr r3, [r7, #16] - 801223c: 685b ldr r3, [r3, #4] - 801223e: 685a ldr r2, [r3, #4] - 8012240: 693b ldr r3, [r7, #16] - 8012242: 605a str r2, [r3, #4] - 8012244: 693b ldr r3, [r7, #16] - 8012246: 685a ldr r2, [r3, #4] - 8012248: 693b ldr r3, [r7, #16] - 801224a: 3308 adds r3, #8 - 801224c: 429a cmp r2, r3 - 801224e: d104 bne.n 801225a - 8012250: 693b ldr r3, [r7, #16] - 8012252: 685b ldr r3, [r3, #4] - 8012254: 685a ldr r2, [r3, #4] - 8012256: 693b ldr r3, [r7, #16] - 8012258: 605a str r2, [r3, #4] - 801225a: 693b ldr r3, [r7, #16] - 801225c: 685b ldr r3, [r3, #4] - 801225e: 68db ldr r3, [r3, #12] - 8012260: 4a04 ldr r2, [pc, #16] ; (8012274 ) - 8012262: 6013 str r3, [r2, #0] -} - 8012264: bf00 nop - 8012266: 3718 adds r7, #24 - 8012268: 46bd mov sp, r7 - 801226a: bd80 pop {r7, pc} - 801226c: 2400c048 .word 0x2400c048 - 8012270: 2400c034 .word 0x2400c034 - 8012274: 2400bf20 .word 0x2400bf20 - 8012278: 2400c028 .word 0x2400c028 - 801227c: 2400bf24 .word 0x2400bf24 - -08012280 : -/*-----------------------------------------------------------*/ - -void vTaskPlaceOnEventList( List_t * const pxEventList, const TickType_t xTicksToWait ) -{ - 8012280: b580 push {r7, lr} - 8012282: b084 sub sp, #16 - 8012284: af00 add r7, sp, #0 - 8012286: 6078 str r0, [r7, #4] - 8012288: 6039 str r1, [r7, #0] - configASSERT( pxEventList ); - 801228a: 687b ldr r3, [r7, #4] - 801228c: 2b00 cmp r3, #0 - 801228e: d10a bne.n 80122a6 - __asm volatile - 8012290: f04f 0350 mov.w r3, #80 ; 0x50 - 8012294: f383 8811 msr BASEPRI, r3 - 8012298: f3bf 8f6f isb sy - 801229c: f3bf 8f4f dsb sy - 80122a0: 60fb str r3, [r7, #12] -} - 80122a2: bf00 nop - 80122a4: e7fe b.n 80122a4 - - /* 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 ) ); - 80122a6: 4b07 ldr r3, [pc, #28] ; (80122c4 ) - 80122a8: 681b ldr r3, [r3, #0] - 80122aa: 3318 adds r3, #24 - 80122ac: 4619 mov r1, r3 - 80122ae: 6878 ldr r0, [r7, #4] - 80122b0: f7fe fb36 bl 8010920 - - prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE ); - 80122b4: 2101 movs r1, #1 - 80122b6: 6838 ldr r0, [r7, #0] - 80122b8: f000 fbe2 bl 8012a80 -} - 80122bc: bf00 nop - 80122be: 3710 adds r7, #16 - 80122c0: 46bd mov sp, r7 - 80122c2: bd80 pop {r7, pc} - 80122c4: 2400bf20 .word 0x2400bf20 - -080122c8 : -/*-----------------------------------------------------------*/ - -#if( configUSE_TIMERS == 1 ) - - void vTaskPlaceOnEventListRestricted( List_t * const pxEventList, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely ) - { - 80122c8: b580 push {r7, lr} - 80122ca: b086 sub sp, #24 - 80122cc: af00 add r7, sp, #0 - 80122ce: 60f8 str r0, [r7, #12] - 80122d0: 60b9 str r1, [r7, #8] - 80122d2: 607a str r2, [r7, #4] - configASSERT( pxEventList ); - 80122d4: 68fb ldr r3, [r7, #12] - 80122d6: 2b00 cmp r3, #0 - 80122d8: d10a bne.n 80122f0 - __asm volatile - 80122da: f04f 0350 mov.w r3, #80 ; 0x50 - 80122de: f383 8811 msr BASEPRI, r3 - 80122e2: f3bf 8f6f isb sy - 80122e6: f3bf 8f4f dsb sy - 80122ea: 617b str r3, [r7, #20] -} - 80122ec: bf00 nop - 80122ee: e7fe b.n 80122ee - - /* Place the event list item of the TCB in the appropriate event list. - In this case it is assume that this is the only task that is going to - be waiting on this event list, so the faster vListInsertEnd() function - can be used in place of vListInsert. */ - vListInsertEnd( pxEventList, &( pxCurrentTCB->xEventListItem ) ); - 80122f0: 4b0a ldr r3, [pc, #40] ; (801231c ) - 80122f2: 681b ldr r3, [r3, #0] - 80122f4: 3318 adds r3, #24 - 80122f6: 4619 mov r1, r3 - 80122f8: 68f8 ldr r0, [r7, #12] - 80122fa: f7fe faed bl 80108d8 - - /* If the task should block indefinitely then set the block time to a - value that will be recognised as an indefinite delay inside the - prvAddCurrentTaskToDelayedList() function. */ - if( xWaitIndefinitely != pdFALSE ) - 80122fe: 687b ldr r3, [r7, #4] - 8012300: 2b00 cmp r3, #0 - 8012302: d002 beq.n 801230a - { - xTicksToWait = portMAX_DELAY; - 8012304: f04f 33ff mov.w r3, #4294967295 - 8012308: 60bb str r3, [r7, #8] - } - - traceTASK_DELAY_UNTIL( ( xTickCount + xTicksToWait ) ); - prvAddCurrentTaskToDelayedList( xTicksToWait, xWaitIndefinitely ); - 801230a: 6879 ldr r1, [r7, #4] - 801230c: 68b8 ldr r0, [r7, #8] - 801230e: f000 fbb7 bl 8012a80 - } - 8012312: bf00 nop - 8012314: 3718 adds r7, #24 - 8012316: 46bd mov sp, r7 - 8012318: bd80 pop {r7, pc} - 801231a: bf00 nop - 801231c: 2400bf20 .word 0x2400bf20 - -08012320 : - -#endif /* configUSE_TIMERS */ -/*-----------------------------------------------------------*/ - -BaseType_t xTaskRemoveFromEventList( const List_t * const pxEventList ) -{ - 8012320: b580 push {r7, lr} - 8012322: b086 sub sp, #24 - 8012324: af00 add r7, sp, #0 - 8012326: 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. */ - 8012328: 687b ldr r3, [r7, #4] - 801232a: 68db ldr r3, [r3, #12] - 801232c: 68db ldr r3, [r3, #12] - 801232e: 613b str r3, [r7, #16] - configASSERT( pxUnblockedTCB ); - 8012330: 693b ldr r3, [r7, #16] - 8012332: 2b00 cmp r3, #0 - 8012334: d10a bne.n 801234c - __asm volatile - 8012336: f04f 0350 mov.w r3, #80 ; 0x50 - 801233a: f383 8811 msr BASEPRI, r3 - 801233e: f3bf 8f6f isb sy - 8012342: f3bf 8f4f dsb sy - 8012346: 60fb str r3, [r7, #12] -} - 8012348: bf00 nop - 801234a: e7fe b.n 801234a - ( void ) uxListRemove( &( pxUnblockedTCB->xEventListItem ) ); - 801234c: 693b ldr r3, [r7, #16] - 801234e: 3318 adds r3, #24 - 8012350: 4618 mov r0, r3 - 8012352: f7fe fb1e bl 8010992 - - if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE ) - 8012356: 4b1d ldr r3, [pc, #116] ; (80123cc ) - 8012358: 681b ldr r3, [r3, #0] - 801235a: 2b00 cmp r3, #0 - 801235c: d11c bne.n 8012398 - { - ( void ) uxListRemove( &( pxUnblockedTCB->xStateListItem ) ); - 801235e: 693b ldr r3, [r7, #16] - 8012360: 3304 adds r3, #4 - 8012362: 4618 mov r0, r3 - 8012364: f7fe fb15 bl 8010992 - prvAddTaskToReadyList( pxUnblockedTCB ); - 8012368: 693b ldr r3, [r7, #16] - 801236a: 6adb ldr r3, [r3, #44] ; 0x2c - 801236c: 2201 movs r2, #1 - 801236e: 409a lsls r2, r3 - 8012370: 4b17 ldr r3, [pc, #92] ; (80123d0 ) - 8012372: 681b ldr r3, [r3, #0] - 8012374: 4313 orrs r3, r2 - 8012376: 4a16 ldr r2, [pc, #88] ; (80123d0 ) - 8012378: 6013 str r3, [r2, #0] - 801237a: 693b ldr r3, [r7, #16] - 801237c: 6ada ldr r2, [r3, #44] ; 0x2c - 801237e: 4613 mov r3, r2 - 8012380: 009b lsls r3, r3, #2 - 8012382: 4413 add r3, r2 - 8012384: 009b lsls r3, r3, #2 - 8012386: 4a13 ldr r2, [pc, #76] ; (80123d4 ) - 8012388: 441a add r2, r3 - 801238a: 693b ldr r3, [r7, #16] - 801238c: 3304 adds r3, #4 - 801238e: 4619 mov r1, r3 - 8012390: 4610 mov r0, r2 - 8012392: f7fe faa1 bl 80108d8 - 8012396: e005 b.n 80123a4 - } - else - { - /* The delayed and ready lists cannot be accessed, so hold this task - pending until the scheduler is resumed. */ - vListInsertEnd( &( xPendingReadyList ), &( pxUnblockedTCB->xEventListItem ) ); - 8012398: 693b ldr r3, [r7, #16] - 801239a: 3318 adds r3, #24 - 801239c: 4619 mov r1, r3 - 801239e: 480e ldr r0, [pc, #56] ; (80123d8 ) - 80123a0: f7fe fa9a bl 80108d8 - } - - if( pxUnblockedTCB->uxPriority > pxCurrentTCB->uxPriority ) - 80123a4: 693b ldr r3, [r7, #16] - 80123a6: 6ada ldr r2, [r3, #44] ; 0x2c - 80123a8: 4b0c ldr r3, [pc, #48] ; (80123dc ) - 80123aa: 681b ldr r3, [r3, #0] - 80123ac: 6adb ldr r3, [r3, #44] ; 0x2c - 80123ae: 429a cmp r2, r3 - 80123b0: d905 bls.n 80123be - { - /* 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; - 80123b2: 2301 movs r3, #1 - 80123b4: 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; - 80123b6: 4b0a ldr r3, [pc, #40] ; (80123e0 ) - 80123b8: 2201 movs r2, #1 - 80123ba: 601a str r2, [r3, #0] - 80123bc: e001 b.n 80123c2 - } - else - { - xReturn = pdFALSE; - 80123be: 2300 movs r3, #0 - 80123c0: 617b str r3, [r7, #20] - } - - return xReturn; - 80123c2: 697b ldr r3, [r7, #20] -} - 80123c4: 4618 mov r0, r3 - 80123c6: 3718 adds r7, #24 - 80123c8: 46bd mov sp, r7 - 80123ca: bd80 pop {r7, pc} - 80123cc: 2400c048 .word 0x2400c048 - 80123d0: 2400c028 .word 0x2400c028 - 80123d4: 2400bf24 .word 0x2400bf24 - 80123d8: 2400bfe0 .word 0x2400bfe0 - 80123dc: 2400bf20 .word 0x2400bf20 - 80123e0: 2400c034 .word 0x2400c034 - -080123e4 : - taskEXIT_CRITICAL(); -} -/*-----------------------------------------------------------*/ - -void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut ) -{ - 80123e4: b480 push {r7} - 80123e6: b083 sub sp, #12 - 80123e8: af00 add r7, sp, #0 - 80123ea: 6078 str r0, [r7, #4] - /* For internal use only as it does not use a critical section. */ - pxTimeOut->xOverflowCount = xNumOfOverflows; - 80123ec: 4b06 ldr r3, [pc, #24] ; (8012408 ) - 80123ee: 681a ldr r2, [r3, #0] - 80123f0: 687b ldr r3, [r7, #4] - 80123f2: 601a str r2, [r3, #0] - pxTimeOut->xTimeOnEntering = xTickCount; - 80123f4: 4b05 ldr r3, [pc, #20] ; (801240c ) - 80123f6: 681a ldr r2, [r3, #0] - 80123f8: 687b ldr r3, [r7, #4] - 80123fa: 605a str r2, [r3, #4] -} - 80123fc: bf00 nop - 80123fe: 370c adds r7, #12 - 8012400: 46bd mov sp, r7 - 8012402: f85d 7b04 ldr.w r7, [sp], #4 - 8012406: 4770 bx lr - 8012408: 2400c038 .word 0x2400c038 - 801240c: 2400c024 .word 0x2400c024 - -08012410 : -/*-----------------------------------------------------------*/ - -BaseType_t xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait ) -{ - 8012410: b580 push {r7, lr} - 8012412: b088 sub sp, #32 - 8012414: af00 add r7, sp, #0 - 8012416: 6078 str r0, [r7, #4] - 8012418: 6039 str r1, [r7, #0] -BaseType_t xReturn; - - configASSERT( pxTimeOut ); - 801241a: 687b ldr r3, [r7, #4] - 801241c: 2b00 cmp r3, #0 - 801241e: d10a bne.n 8012436 - __asm volatile - 8012420: f04f 0350 mov.w r3, #80 ; 0x50 - 8012424: f383 8811 msr BASEPRI, r3 - 8012428: f3bf 8f6f isb sy - 801242c: f3bf 8f4f dsb sy - 8012430: 613b str r3, [r7, #16] -} - 8012432: bf00 nop - 8012434: e7fe b.n 8012434 - configASSERT( pxTicksToWait ); - 8012436: 683b ldr r3, [r7, #0] - 8012438: 2b00 cmp r3, #0 - 801243a: d10a bne.n 8012452 - __asm volatile - 801243c: f04f 0350 mov.w r3, #80 ; 0x50 - 8012440: f383 8811 msr BASEPRI, r3 - 8012444: f3bf 8f6f isb sy - 8012448: f3bf 8f4f dsb sy - 801244c: 60fb str r3, [r7, #12] -} - 801244e: bf00 nop - 8012450: e7fe b.n 8012450 - - taskENTER_CRITICAL(); - 8012452: f000 ffd7 bl 8013404 - { - /* Minor optimisation. The tick count cannot change in this block. */ - const TickType_t xConstTickCount = xTickCount; - 8012456: 4b1d ldr r3, [pc, #116] ; (80124cc ) - 8012458: 681b ldr r3, [r3, #0] - 801245a: 61bb str r3, [r7, #24] - const TickType_t xElapsedTime = xConstTickCount - pxTimeOut->xTimeOnEntering; - 801245c: 687b ldr r3, [r7, #4] - 801245e: 685b ldr r3, [r3, #4] - 8012460: 69ba ldr r2, [r7, #24] - 8012462: 1ad3 subs r3, r2, r3 - 8012464: 617b str r3, [r7, #20] - } - else - #endif - - #if ( INCLUDE_vTaskSuspend == 1 ) - if( *pxTicksToWait == portMAX_DELAY ) - 8012466: 683b ldr r3, [r7, #0] - 8012468: 681b ldr r3, [r3, #0] - 801246a: f1b3 3fff cmp.w r3, #4294967295 - 801246e: d102 bne.n 8012476 - { - /* 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; - 8012470: 2300 movs r3, #0 - 8012472: 61fb str r3, [r7, #28] - 8012474: e023 b.n 80124be - } - else - #endif - - if( ( xNumOfOverflows != pxTimeOut->xOverflowCount ) && ( xConstTickCount >= pxTimeOut->xTimeOnEntering ) ) /*lint !e525 Indentation preferred as is to make code within pre-processor directives clearer. */ - 8012476: 687b ldr r3, [r7, #4] - 8012478: 681a ldr r2, [r3, #0] - 801247a: 4b15 ldr r3, [pc, #84] ; (80124d0 ) - 801247c: 681b ldr r3, [r3, #0] - 801247e: 429a cmp r2, r3 - 8012480: d007 beq.n 8012492 - 8012482: 687b ldr r3, [r7, #4] - 8012484: 685b ldr r3, [r3, #4] - 8012486: 69ba ldr r2, [r7, #24] - 8012488: 429a cmp r2, r3 - 801248a: d302 bcc.n 8012492 - /* 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; - 801248c: 2301 movs r3, #1 - 801248e: 61fb str r3, [r7, #28] - 8012490: e015 b.n 80124be - } - else if( xElapsedTime < *pxTicksToWait ) /*lint !e961 Explicit casting is only redundant with some compilers, whereas others require it to prevent integer conversion errors. */ - 8012492: 683b ldr r3, [r7, #0] - 8012494: 681b ldr r3, [r3, #0] - 8012496: 697a ldr r2, [r7, #20] - 8012498: 429a cmp r2, r3 - 801249a: d20b bcs.n 80124b4 - { - /* Not a genuine timeout. Adjust parameters for time remaining. */ - *pxTicksToWait -= xElapsedTime; - 801249c: 683b ldr r3, [r7, #0] - 801249e: 681a ldr r2, [r3, #0] - 80124a0: 697b ldr r3, [r7, #20] - 80124a2: 1ad2 subs r2, r2, r3 - 80124a4: 683b ldr r3, [r7, #0] - 80124a6: 601a str r2, [r3, #0] - vTaskInternalSetTimeOutState( pxTimeOut ); - 80124a8: 6878 ldr r0, [r7, #4] - 80124aa: f7ff ff9b bl 80123e4 - xReturn = pdFALSE; - 80124ae: 2300 movs r3, #0 - 80124b0: 61fb str r3, [r7, #28] - 80124b2: e004 b.n 80124be - } - else - { - *pxTicksToWait = 0; - 80124b4: 683b ldr r3, [r7, #0] - 80124b6: 2200 movs r2, #0 - 80124b8: 601a str r2, [r3, #0] - xReturn = pdTRUE; - 80124ba: 2301 movs r3, #1 - 80124bc: 61fb str r3, [r7, #28] - } - } - taskEXIT_CRITICAL(); - 80124be: f000 ffd1 bl 8013464 - - return xReturn; - 80124c2: 69fb ldr r3, [r7, #28] -} - 80124c4: 4618 mov r0, r3 - 80124c6: 3720 adds r7, #32 - 80124c8: 46bd mov sp, r7 - 80124ca: bd80 pop {r7, pc} - 80124cc: 2400c024 .word 0x2400c024 - 80124d0: 2400c038 .word 0x2400c038 - -080124d4 : -/*-----------------------------------------------------------*/ - -void vTaskMissedYield( void ) -{ - 80124d4: b480 push {r7} - 80124d6: af00 add r7, sp, #0 - xYieldPending = pdTRUE; - 80124d8: 4b03 ldr r3, [pc, #12] ; (80124e8 ) - 80124da: 2201 movs r2, #1 - 80124dc: 601a str r2, [r3, #0] -} - 80124de: bf00 nop - 80124e0: 46bd mov sp, r7 - 80124e2: f85d 7b04 ldr.w r7, [sp], #4 - 80124e6: 4770 bx lr - 80124e8: 2400c034 .word 0x2400c034 - -080124ec : - * - * void prvIdleTask( void *pvParameters ); - * - */ -static portTASK_FUNCTION( prvIdleTask, pvParameters ) -{ - 80124ec: b580 push {r7, lr} - 80124ee: b082 sub sp, #8 - 80124f0: af00 add r7, sp, #0 - 80124f2: 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(); - 80124f4: f000 f852 bl 801259c - - 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 ) - 80124f8: 4b06 ldr r3, [pc, #24] ; (8012514 ) - 80124fa: 681b ldr r3, [r3, #0] - 80124fc: 2b01 cmp r3, #1 - 80124fe: d9f9 bls.n 80124f4 - { - taskYIELD(); - 8012500: 4b05 ldr r3, [pc, #20] ; (8012518 ) - 8012502: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 8012506: 601a str r2, [r3, #0] - 8012508: f3bf 8f4f dsb sy - 801250c: f3bf 8f6f isb sy - prvCheckTasksWaitingTermination(); - 8012510: e7f0 b.n 80124f4 - 8012512: bf00 nop - 8012514: 2400bf24 .word 0x2400bf24 - 8012518: e000ed04 .word 0xe000ed04 - -0801251c : - -#endif /* portUSING_MPU_WRAPPERS */ -/*-----------------------------------------------------------*/ - -static void prvInitialiseTaskLists( void ) -{ - 801251c: b580 push {r7, lr} - 801251e: b082 sub sp, #8 - 8012520: af00 add r7, sp, #0 -UBaseType_t uxPriority; - - for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ ) - 8012522: 2300 movs r3, #0 - 8012524: 607b str r3, [r7, #4] - 8012526: e00c b.n 8012542 - { - vListInitialise( &( pxReadyTasksLists[ uxPriority ] ) ); - 8012528: 687a ldr r2, [r7, #4] - 801252a: 4613 mov r3, r2 - 801252c: 009b lsls r3, r3, #2 - 801252e: 4413 add r3, r2 - 8012530: 009b lsls r3, r3, #2 - 8012532: 4a12 ldr r2, [pc, #72] ; (801257c ) - 8012534: 4413 add r3, r2 - 8012536: 4618 mov r0, r3 - 8012538: f7fe f9a1 bl 801087e - for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ ) - 801253c: 687b ldr r3, [r7, #4] - 801253e: 3301 adds r3, #1 - 8012540: 607b str r3, [r7, #4] - 8012542: 687b ldr r3, [r7, #4] - 8012544: 2b06 cmp r3, #6 - 8012546: d9ef bls.n 8012528 - } - - vListInitialise( &xDelayedTaskList1 ); - 8012548: 480d ldr r0, [pc, #52] ; (8012580 ) - 801254a: f7fe f998 bl 801087e - vListInitialise( &xDelayedTaskList2 ); - 801254e: 480d ldr r0, [pc, #52] ; (8012584 ) - 8012550: f7fe f995 bl 801087e - vListInitialise( &xPendingReadyList ); - 8012554: 480c ldr r0, [pc, #48] ; (8012588 ) - 8012556: f7fe f992 bl 801087e - - #if ( INCLUDE_vTaskDelete == 1 ) - { - vListInitialise( &xTasksWaitingTermination ); - 801255a: 480c ldr r0, [pc, #48] ; (801258c ) - 801255c: f7fe f98f bl 801087e - } - #endif /* INCLUDE_vTaskDelete */ - - #if ( INCLUDE_vTaskSuspend == 1 ) - { - vListInitialise( &xSuspendedTaskList ); - 8012560: 480b ldr r0, [pc, #44] ; (8012590 ) - 8012562: f7fe f98c bl 801087e - } - #endif /* INCLUDE_vTaskSuspend */ - - /* Start with pxDelayedTaskList using list1 and the pxOverflowDelayedTaskList - using list2. */ - pxDelayedTaskList = &xDelayedTaskList1; - 8012566: 4b0b ldr r3, [pc, #44] ; (8012594 ) - 8012568: 4a05 ldr r2, [pc, #20] ; (8012580 ) - 801256a: 601a str r2, [r3, #0] - pxOverflowDelayedTaskList = &xDelayedTaskList2; - 801256c: 4b0a ldr r3, [pc, #40] ; (8012598 ) - 801256e: 4a05 ldr r2, [pc, #20] ; (8012584 ) - 8012570: 601a str r2, [r3, #0] -} - 8012572: bf00 nop - 8012574: 3708 adds r7, #8 - 8012576: 46bd mov sp, r7 - 8012578: bd80 pop {r7, pc} - 801257a: bf00 nop - 801257c: 2400bf24 .word 0x2400bf24 - 8012580: 2400bfb0 .word 0x2400bfb0 - 8012584: 2400bfc4 .word 0x2400bfc4 - 8012588: 2400bfe0 .word 0x2400bfe0 - 801258c: 2400bff4 .word 0x2400bff4 - 8012590: 2400c00c .word 0x2400c00c - 8012594: 2400bfd8 .word 0x2400bfd8 - 8012598: 2400bfdc .word 0x2400bfdc - -0801259c : -/*-----------------------------------------------------------*/ - -static void prvCheckTasksWaitingTermination( void ) -{ - 801259c: b580 push {r7, lr} - 801259e: b082 sub sp, #8 - 80125a0: 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 ) - 80125a2: e019 b.n 80125d8 - { - taskENTER_CRITICAL(); - 80125a4: f000 ff2e bl 8013404 - { - 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. */ - 80125a8: 4b10 ldr r3, [pc, #64] ; (80125ec ) - 80125aa: 68db ldr r3, [r3, #12] - 80125ac: 68db ldr r3, [r3, #12] - 80125ae: 607b str r3, [r7, #4] - ( void ) uxListRemove( &( pxTCB->xStateListItem ) ); - 80125b0: 687b ldr r3, [r7, #4] - 80125b2: 3304 adds r3, #4 - 80125b4: 4618 mov r0, r3 - 80125b6: f7fe f9ec bl 8010992 - --uxCurrentNumberOfTasks; - 80125ba: 4b0d ldr r3, [pc, #52] ; (80125f0 ) - 80125bc: 681b ldr r3, [r3, #0] - 80125be: 3b01 subs r3, #1 - 80125c0: 4a0b ldr r2, [pc, #44] ; (80125f0 ) - 80125c2: 6013 str r3, [r2, #0] - --uxDeletedTasksWaitingCleanUp; - 80125c4: 4b0b ldr r3, [pc, #44] ; (80125f4 ) - 80125c6: 681b ldr r3, [r3, #0] - 80125c8: 3b01 subs r3, #1 - 80125ca: 4a0a ldr r2, [pc, #40] ; (80125f4 ) - 80125cc: 6013 str r3, [r2, #0] - } - taskEXIT_CRITICAL(); - 80125ce: f000 ff49 bl 8013464 - - prvDeleteTCB( pxTCB ); - 80125d2: 6878 ldr r0, [r7, #4] - 80125d4: f000 f848 bl 8012668 - while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U ) - 80125d8: 4b06 ldr r3, [pc, #24] ; (80125f4 ) - 80125da: 681b ldr r3, [r3, #0] - 80125dc: 2b00 cmp r3, #0 - 80125de: d1e1 bne.n 80125a4 - } - } - #endif /* INCLUDE_vTaskDelete */ -} - 80125e0: bf00 nop - 80125e2: bf00 nop - 80125e4: 3708 adds r7, #8 - 80125e6: 46bd mov sp, r7 - 80125e8: bd80 pop {r7, pc} - 80125ea: bf00 nop - 80125ec: 2400bff4 .word 0x2400bff4 - 80125f0: 2400c020 .word 0x2400c020 - 80125f4: 2400c008 .word 0x2400c008 - -080125f8 : -/*-----------------------------------------------------------*/ - -#if ( ( configUSE_TRACE_FACILITY == 1 ) || ( INCLUDE_uxTaskGetStackHighWaterMark == 1 ) || ( INCLUDE_uxTaskGetStackHighWaterMark2 == 1 ) ) - - static configSTACK_DEPTH_TYPE prvTaskCheckFreeStackSpace( const uint8_t * pucStackByte ) - { - 80125f8: b480 push {r7} - 80125fa: b085 sub sp, #20 - 80125fc: af00 add r7, sp, #0 - 80125fe: 6078 str r0, [r7, #4] - uint32_t ulCount = 0U; - 8012600: 2300 movs r3, #0 - 8012602: 60fb str r3, [r7, #12] - - while( *pucStackByte == ( uint8_t ) tskSTACK_FILL_BYTE ) - 8012604: e005 b.n 8012612 - { - pucStackByte -= portSTACK_GROWTH; - 8012606: 687b ldr r3, [r7, #4] - 8012608: 3301 adds r3, #1 - 801260a: 607b str r3, [r7, #4] - ulCount++; - 801260c: 68fb ldr r3, [r7, #12] - 801260e: 3301 adds r3, #1 - 8012610: 60fb str r3, [r7, #12] - while( *pucStackByte == ( uint8_t ) tskSTACK_FILL_BYTE ) - 8012612: 687b ldr r3, [r7, #4] - 8012614: 781b ldrb r3, [r3, #0] - 8012616: 2ba5 cmp r3, #165 ; 0xa5 - 8012618: d0f5 beq.n 8012606 - } - - ulCount /= ( uint32_t ) sizeof( StackType_t ); /*lint !e961 Casting is not redundant on smaller architectures. */ - 801261a: 68fb ldr r3, [r7, #12] - 801261c: 089b lsrs r3, r3, #2 - 801261e: 60fb str r3, [r7, #12] - - return ( configSTACK_DEPTH_TYPE ) ulCount; - 8012620: 68fb ldr r3, [r7, #12] - 8012622: b29b uxth r3, r3 - } - 8012624: 4618 mov r0, r3 - 8012626: 3714 adds r7, #20 - 8012628: 46bd mov sp, r7 - 801262a: f85d 7b04 ldr.w r7, [sp], #4 - 801262e: 4770 bx lr - -08012630 : -/*-----------------------------------------------------------*/ - -#if ( INCLUDE_uxTaskGetStackHighWaterMark == 1 ) - - UBaseType_t uxTaskGetStackHighWaterMark( TaskHandle_t xTask ) - { - 8012630: b580 push {r7, lr} - 8012632: b086 sub sp, #24 - 8012634: af00 add r7, sp, #0 - 8012636: 6078 str r0, [r7, #4] - TCB_t *pxTCB; - uint8_t *pucEndOfStack; - UBaseType_t uxReturn; - - pxTCB = prvGetTCBFromHandle( xTask ); - 8012638: 687b ldr r3, [r7, #4] - 801263a: 2b00 cmp r3, #0 - 801263c: d102 bne.n 8012644 - 801263e: 4b09 ldr r3, [pc, #36] ; (8012664 ) - 8012640: 681b ldr r3, [r3, #0] - 8012642: e000 b.n 8012646 - 8012644: 687b ldr r3, [r7, #4] - 8012646: 617b str r3, [r7, #20] - - #if portSTACK_GROWTH < 0 - { - pucEndOfStack = ( uint8_t * ) pxTCB->pxStack; - 8012648: 697b ldr r3, [r7, #20] - 801264a: 6b1b ldr r3, [r3, #48] ; 0x30 - 801264c: 613b str r3, [r7, #16] - { - pucEndOfStack = ( uint8_t * ) pxTCB->pxEndOfStack; - } - #endif - - uxReturn = ( UBaseType_t ) prvTaskCheckFreeStackSpace( pucEndOfStack ); - 801264e: 6938 ldr r0, [r7, #16] - 8012650: f7ff ffd2 bl 80125f8 - 8012654: 4603 mov r3, r0 - 8012656: 60fb str r3, [r7, #12] - - return uxReturn; - 8012658: 68fb ldr r3, [r7, #12] - } - 801265a: 4618 mov r0, r3 - 801265c: 3718 adds r7, #24 - 801265e: 46bd mov sp, r7 - 8012660: bd80 pop {r7, pc} - 8012662: bf00 nop - 8012664: 2400bf20 .word 0x2400bf20 - -08012668 : -/*-----------------------------------------------------------*/ - -#if ( INCLUDE_vTaskDelete == 1 ) - - static void prvDeleteTCB( TCB_t *pxTCB ) - { - 8012668: b580 push {r7, lr} - 801266a: b084 sub sp, #16 - 801266c: af00 add r7, sp, #0 - 801266e: 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 ) - 8012670: 687b ldr r3, [r7, #4] - 8012672: f893 3051 ldrb.w r3, [r3, #81] ; 0x51 - 8012676: 2b00 cmp r3, #0 - 8012678: d108 bne.n 801268c - { - /* Both the stack and TCB were allocated dynamically, so both - must be freed. */ - vPortFree( pxTCB->pxStack ); - 801267a: 687b ldr r3, [r7, #4] - 801267c: 6b1b ldr r3, [r3, #48] ; 0x30 - 801267e: 4618 mov r0, r3 - 8012680: f001 f8ae bl 80137e0 - vPortFree( pxTCB ); - 8012684: 6878 ldr r0, [r7, #4] - 8012686: f001 f8ab bl 80137e0 - configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB ); - mtCOVERAGE_TEST_MARKER(); - } - } - #endif /* configSUPPORT_DYNAMIC_ALLOCATION */ - } - 801268a: e018 b.n 80126be - else if( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_ONLY ) - 801268c: 687b ldr r3, [r7, #4] - 801268e: f893 3051 ldrb.w r3, [r3, #81] ; 0x51 - 8012692: 2b01 cmp r3, #1 - 8012694: d103 bne.n 801269e - vPortFree( pxTCB ); - 8012696: 6878 ldr r0, [r7, #4] - 8012698: f001 f8a2 bl 80137e0 - } - 801269c: e00f b.n 80126be - configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB ); - 801269e: 687b ldr r3, [r7, #4] - 80126a0: f893 3051 ldrb.w r3, [r3, #81] ; 0x51 - 80126a4: 2b02 cmp r3, #2 - 80126a6: d00a beq.n 80126be - __asm volatile - 80126a8: f04f 0350 mov.w r3, #80 ; 0x50 - 80126ac: f383 8811 msr BASEPRI, r3 - 80126b0: f3bf 8f6f isb sy - 80126b4: f3bf 8f4f dsb sy - 80126b8: 60fb str r3, [r7, #12] -} - 80126ba: bf00 nop - 80126bc: e7fe b.n 80126bc - } - 80126be: bf00 nop - 80126c0: 3710 adds r7, #16 - 80126c2: 46bd mov sp, r7 - 80126c4: bd80 pop {r7, pc} - ... - -080126c8 : - -#endif /* INCLUDE_vTaskDelete */ -/*-----------------------------------------------------------*/ - -static void prvResetNextTaskUnblockTime( void ) -{ - 80126c8: b480 push {r7} - 80126ca: b083 sub sp, #12 - 80126cc: af00 add r7, sp, #0 -TCB_t *pxTCB; - - if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE ) - 80126ce: 4b0c ldr r3, [pc, #48] ; (8012700 ) - 80126d0: 681b ldr r3, [r3, #0] - 80126d2: 681b ldr r3, [r3, #0] - 80126d4: 2b00 cmp r3, #0 - 80126d6: d104 bne.n 80126e2 - { - /* 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; - 80126d8: 4b0a ldr r3, [pc, #40] ; (8012704 ) - 80126da: f04f 32ff mov.w r2, #4294967295 - 80126de: 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 ) ); - } -} - 80126e0: e008 b.n 80126f4 - ( 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. */ - 80126e2: 4b07 ldr r3, [pc, #28] ; (8012700 ) - 80126e4: 681b ldr r3, [r3, #0] - 80126e6: 68db ldr r3, [r3, #12] - 80126e8: 68db ldr r3, [r3, #12] - 80126ea: 607b str r3, [r7, #4] - xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) ); - 80126ec: 687b ldr r3, [r7, #4] - 80126ee: 685b ldr r3, [r3, #4] - 80126f0: 4a04 ldr r2, [pc, #16] ; (8012704 ) - 80126f2: 6013 str r3, [r2, #0] -} - 80126f4: bf00 nop - 80126f6: 370c adds r7, #12 - 80126f8: 46bd mov sp, r7 - 80126fa: f85d 7b04 ldr.w r7, [sp], #4 - 80126fe: 4770 bx lr - 8012700: 2400bfd8 .word 0x2400bfd8 - 8012704: 2400c040 .word 0x2400c040 - -08012708 : -/*-----------------------------------------------------------*/ - -#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) - - BaseType_t xTaskGetSchedulerState( void ) - { - 8012708: b480 push {r7} - 801270a: b083 sub sp, #12 - 801270c: af00 add r7, sp, #0 - BaseType_t xReturn; - - if( xSchedulerRunning == pdFALSE ) - 801270e: 4b0b ldr r3, [pc, #44] ; (801273c ) - 8012710: 681b ldr r3, [r3, #0] - 8012712: 2b00 cmp r3, #0 - 8012714: d102 bne.n 801271c - { - xReturn = taskSCHEDULER_NOT_STARTED; - 8012716: 2301 movs r3, #1 - 8012718: 607b str r3, [r7, #4] - 801271a: e008 b.n 801272e - } - else - { - if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE ) - 801271c: 4b08 ldr r3, [pc, #32] ; (8012740 ) - 801271e: 681b ldr r3, [r3, #0] - 8012720: 2b00 cmp r3, #0 - 8012722: d102 bne.n 801272a - { - xReturn = taskSCHEDULER_RUNNING; - 8012724: 2302 movs r3, #2 - 8012726: 607b str r3, [r7, #4] - 8012728: e001 b.n 801272e - } - else - { - xReturn = taskSCHEDULER_SUSPENDED; - 801272a: 2300 movs r3, #0 - 801272c: 607b str r3, [r7, #4] - } - } - - return xReturn; - 801272e: 687b ldr r3, [r7, #4] - } - 8012730: 4618 mov r0, r3 - 8012732: 370c adds r7, #12 - 8012734: 46bd mov sp, r7 - 8012736: f85d 7b04 ldr.w r7, [sp], #4 - 801273a: 4770 bx lr - 801273c: 2400c02c .word 0x2400c02c - 8012740: 2400c048 .word 0x2400c048 - -08012744 : -/*-----------------------------------------------------------*/ - -#if ( configUSE_MUTEXES == 1 ) - - BaseType_t xTaskPriorityInherit( TaskHandle_t const pxMutexHolder ) - { - 8012744: b580 push {r7, lr} - 8012746: b084 sub sp, #16 - 8012748: af00 add r7, sp, #0 - 801274a: 6078 str r0, [r7, #4] - TCB_t * const pxMutexHolderTCB = pxMutexHolder; - 801274c: 687b ldr r3, [r7, #4] - 801274e: 60bb str r3, [r7, #8] - BaseType_t xReturn = pdFALSE; - 8012750: 2300 movs r3, #0 - 8012752: 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 ) - 8012754: 687b ldr r3, [r7, #4] - 8012756: 2b00 cmp r3, #0 - 8012758: d05e beq.n 8012818 - { - /* 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 ) - 801275a: 68bb ldr r3, [r7, #8] - 801275c: 6ada ldr r2, [r3, #44] ; 0x2c - 801275e: 4b31 ldr r3, [pc, #196] ; (8012824 ) - 8012760: 681b ldr r3, [r3, #0] - 8012762: 6adb ldr r3, [r3, #44] ; 0x2c - 8012764: 429a cmp r2, r3 - 8012766: d24e bcs.n 8012806 - { - /* 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 ) - 8012768: 68bb ldr r3, [r7, #8] - 801276a: 699b ldr r3, [r3, #24] - 801276c: 2b00 cmp r3, #0 - 801276e: db06 blt.n 801277e - { - 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. */ - 8012770: 4b2c ldr r3, [pc, #176] ; (8012824 ) - 8012772: 681b ldr r3, [r3, #0] - 8012774: 6adb ldr r3, [r3, #44] ; 0x2c - 8012776: f1c3 0207 rsb r2, r3, #7 - 801277a: 68bb ldr r3, [r7, #8] - 801277c: 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 ) - 801277e: 68bb ldr r3, [r7, #8] - 8012780: 6959 ldr r1, [r3, #20] - 8012782: 68bb ldr r3, [r7, #8] - 8012784: 6ada ldr r2, [r3, #44] ; 0x2c - 8012786: 4613 mov r3, r2 - 8012788: 009b lsls r3, r3, #2 - 801278a: 4413 add r3, r2 - 801278c: 009b lsls r3, r3, #2 - 801278e: 4a26 ldr r2, [pc, #152] ; (8012828 ) - 8012790: 4413 add r3, r2 - 8012792: 4299 cmp r1, r3 - 8012794: d12f bne.n 80127f6 - { - if( uxListRemove( &( pxMutexHolderTCB->xStateListItem ) ) == ( UBaseType_t ) 0 ) - 8012796: 68bb ldr r3, [r7, #8] - 8012798: 3304 adds r3, #4 - 801279a: 4618 mov r0, r3 - 801279c: f7fe f8f9 bl 8010992 - 80127a0: 4603 mov r3, r0 - 80127a2: 2b00 cmp r3, #0 - 80127a4: d10a bne.n 80127bc - { - /* It is known that the task is in its ready list so - there is no need to check again and the port level - reset macro can be called directly. */ - portRESET_READY_PRIORITY( pxMutexHolderTCB->uxPriority, uxTopReadyPriority ); - 80127a6: 68bb ldr r3, [r7, #8] - 80127a8: 6adb ldr r3, [r3, #44] ; 0x2c - 80127aa: 2201 movs r2, #1 - 80127ac: fa02 f303 lsl.w r3, r2, r3 - 80127b0: 43da mvns r2, r3 - 80127b2: 4b1e ldr r3, [pc, #120] ; (801282c ) - 80127b4: 681b ldr r3, [r3, #0] - 80127b6: 4013 ands r3, r2 - 80127b8: 4a1c ldr r2, [pc, #112] ; (801282c ) - 80127ba: 6013 str r3, [r2, #0] - { - mtCOVERAGE_TEST_MARKER(); - } - - /* Inherit the priority before being moved into the new list. */ - pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority; - 80127bc: 4b19 ldr r3, [pc, #100] ; (8012824 ) - 80127be: 681b ldr r3, [r3, #0] - 80127c0: 6ada ldr r2, [r3, #44] ; 0x2c - 80127c2: 68bb ldr r3, [r7, #8] - 80127c4: 62da str r2, [r3, #44] ; 0x2c - prvAddTaskToReadyList( pxMutexHolderTCB ); - 80127c6: 68bb ldr r3, [r7, #8] - 80127c8: 6adb ldr r3, [r3, #44] ; 0x2c - 80127ca: 2201 movs r2, #1 - 80127cc: 409a lsls r2, r3 - 80127ce: 4b17 ldr r3, [pc, #92] ; (801282c ) - 80127d0: 681b ldr r3, [r3, #0] - 80127d2: 4313 orrs r3, r2 - 80127d4: 4a15 ldr r2, [pc, #84] ; (801282c ) - 80127d6: 6013 str r3, [r2, #0] - 80127d8: 68bb ldr r3, [r7, #8] - 80127da: 6ada ldr r2, [r3, #44] ; 0x2c - 80127dc: 4613 mov r3, r2 - 80127de: 009b lsls r3, r3, #2 - 80127e0: 4413 add r3, r2 - 80127e2: 009b lsls r3, r3, #2 - 80127e4: 4a10 ldr r2, [pc, #64] ; (8012828 ) - 80127e6: 441a add r2, r3 - 80127e8: 68bb ldr r3, [r7, #8] - 80127ea: 3304 adds r3, #4 - 80127ec: 4619 mov r1, r3 - 80127ee: 4610 mov r0, r2 - 80127f0: f7fe f872 bl 80108d8 - 80127f4: e004 b.n 8012800 - } - else - { - /* Just inherit the priority. */ - pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority; - 80127f6: 4b0b ldr r3, [pc, #44] ; (8012824 ) - 80127f8: 681b ldr r3, [r3, #0] - 80127fa: 6ada ldr r2, [r3, #44] ; 0x2c - 80127fc: 68bb ldr r3, [r7, #8] - 80127fe: 62da str r2, [r3, #44] ; 0x2c - } - - traceTASK_PRIORITY_INHERIT( pxMutexHolderTCB, pxCurrentTCB->uxPriority ); - - /* Inheritance occurred. */ - xReturn = pdTRUE; - 8012800: 2301 movs r3, #1 - 8012802: 60fb str r3, [r7, #12] - 8012804: e008 b.n 8012818 - } - else - { - if( pxMutexHolderTCB->uxBasePriority < pxCurrentTCB->uxPriority ) - 8012806: 68bb ldr r3, [r7, #8] - 8012808: 6c5a ldr r2, [r3, #68] ; 0x44 - 801280a: 4b06 ldr r3, [pc, #24] ; (8012824 ) - 801280c: 681b ldr r3, [r3, #0] - 801280e: 6adb ldr r3, [r3, #44] ; 0x2c - 8012810: 429a cmp r2, r3 - 8012812: d201 bcs.n 8012818 - 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; - 8012814: 2301 movs r3, #1 - 8012816: 60fb str r3, [r7, #12] - else - { - mtCOVERAGE_TEST_MARKER(); - } - - return xReturn; - 8012818: 68fb ldr r3, [r7, #12] - } - 801281a: 4618 mov r0, r3 - 801281c: 3710 adds r7, #16 - 801281e: 46bd mov sp, r7 - 8012820: bd80 pop {r7, pc} - 8012822: bf00 nop - 8012824: 2400bf20 .word 0x2400bf20 - 8012828: 2400bf24 .word 0x2400bf24 - 801282c: 2400c028 .word 0x2400c028 - -08012830 : -/*-----------------------------------------------------------*/ - -#if ( configUSE_MUTEXES == 1 ) - - BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder ) - { - 8012830: b580 push {r7, lr} - 8012832: b086 sub sp, #24 - 8012834: af00 add r7, sp, #0 - 8012836: 6078 str r0, [r7, #4] - TCB_t * const pxTCB = pxMutexHolder; - 8012838: 687b ldr r3, [r7, #4] - 801283a: 613b str r3, [r7, #16] - BaseType_t xReturn = pdFALSE; - 801283c: 2300 movs r3, #0 - 801283e: 617b str r3, [r7, #20] - - if( pxMutexHolder != NULL ) - 8012840: 687b ldr r3, [r7, #4] - 8012842: 2b00 cmp r3, #0 - 8012844: d06e beq.n 8012924 - { - /* 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 ); - 8012846: 4b3a ldr r3, [pc, #232] ; (8012930 ) - 8012848: 681b ldr r3, [r3, #0] - 801284a: 693a ldr r2, [r7, #16] - 801284c: 429a cmp r2, r3 - 801284e: d00a beq.n 8012866 - __asm volatile - 8012850: f04f 0350 mov.w r3, #80 ; 0x50 - 8012854: f383 8811 msr BASEPRI, r3 - 8012858: f3bf 8f6f isb sy - 801285c: f3bf 8f4f dsb sy - 8012860: 60fb str r3, [r7, #12] -} - 8012862: bf00 nop - 8012864: e7fe b.n 8012864 - configASSERT( pxTCB->uxMutexesHeld ); - 8012866: 693b ldr r3, [r7, #16] - 8012868: 6c9b ldr r3, [r3, #72] ; 0x48 - 801286a: 2b00 cmp r3, #0 - 801286c: d10a bne.n 8012884 - __asm volatile - 801286e: f04f 0350 mov.w r3, #80 ; 0x50 - 8012872: f383 8811 msr BASEPRI, r3 - 8012876: f3bf 8f6f isb sy - 801287a: f3bf 8f4f dsb sy - 801287e: 60bb str r3, [r7, #8] -} - 8012880: bf00 nop - 8012882: e7fe b.n 8012882 - ( pxTCB->uxMutexesHeld )--; - 8012884: 693b ldr r3, [r7, #16] - 8012886: 6c9b ldr r3, [r3, #72] ; 0x48 - 8012888: 1e5a subs r2, r3, #1 - 801288a: 693b ldr r3, [r7, #16] - 801288c: 649a str r2, [r3, #72] ; 0x48 - - /* Has the holder of the mutex inherited the priority of another - task? */ - if( pxTCB->uxPriority != pxTCB->uxBasePriority ) - 801288e: 693b ldr r3, [r7, #16] - 8012890: 6ada ldr r2, [r3, #44] ; 0x2c - 8012892: 693b ldr r3, [r7, #16] - 8012894: 6c5b ldr r3, [r3, #68] ; 0x44 - 8012896: 429a cmp r2, r3 - 8012898: d044 beq.n 8012924 - { - /* Only disinherit if no other mutexes are held. */ - if( pxTCB->uxMutexesHeld == ( UBaseType_t ) 0 ) - 801289a: 693b ldr r3, [r7, #16] - 801289c: 6c9b ldr r3, [r3, #72] ; 0x48 - 801289e: 2b00 cmp r3, #0 - 80128a0: d140 bne.n 8012924 - /* 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/delayed list. */ - if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 ) - 80128a2: 693b ldr r3, [r7, #16] - 80128a4: 3304 adds r3, #4 - 80128a6: 4618 mov r0, r3 - 80128a8: f7fe f873 bl 8010992 - 80128ac: 4603 mov r3, r0 - 80128ae: 2b00 cmp r3, #0 - 80128b0: d115 bne.n 80128de - { - taskRESET_READY_PRIORITY( pxTCB->uxPriority ); - 80128b2: 693b ldr r3, [r7, #16] - 80128b4: 6ada ldr r2, [r3, #44] ; 0x2c - 80128b6: 491f ldr r1, [pc, #124] ; (8012934 ) - 80128b8: 4613 mov r3, r2 - 80128ba: 009b lsls r3, r3, #2 - 80128bc: 4413 add r3, r2 - 80128be: 009b lsls r3, r3, #2 - 80128c0: 440b add r3, r1 - 80128c2: 681b ldr r3, [r3, #0] - 80128c4: 2b00 cmp r3, #0 - 80128c6: d10a bne.n 80128de - 80128c8: 693b ldr r3, [r7, #16] - 80128ca: 6adb ldr r3, [r3, #44] ; 0x2c - 80128cc: 2201 movs r2, #1 - 80128ce: fa02 f303 lsl.w r3, r2, r3 - 80128d2: 43da mvns r2, r3 - 80128d4: 4b18 ldr r3, [pc, #96] ; (8012938 ) - 80128d6: 681b ldr r3, [r3, #0] - 80128d8: 4013 ands r3, r2 - 80128da: 4a17 ldr r2, [pc, #92] ; (8012938 ) - 80128dc: 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; - 80128de: 693b ldr r3, [r7, #16] - 80128e0: 6c5a ldr r2, [r3, #68] ; 0x44 - 80128e2: 693b ldr r3, [r7, #16] - 80128e4: 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. */ - 80128e6: 693b ldr r3, [r7, #16] - 80128e8: 6adb ldr r3, [r3, #44] ; 0x2c - 80128ea: f1c3 0207 rsb r2, r3, #7 - 80128ee: 693b ldr r3, [r7, #16] - 80128f0: 619a str r2, [r3, #24] - prvAddTaskToReadyList( pxTCB ); - 80128f2: 693b ldr r3, [r7, #16] - 80128f4: 6adb ldr r3, [r3, #44] ; 0x2c - 80128f6: 2201 movs r2, #1 - 80128f8: 409a lsls r2, r3 - 80128fa: 4b0f ldr r3, [pc, #60] ; (8012938 ) - 80128fc: 681b ldr r3, [r3, #0] - 80128fe: 4313 orrs r3, r2 - 8012900: 4a0d ldr r2, [pc, #52] ; (8012938 ) - 8012902: 6013 str r3, [r2, #0] - 8012904: 693b ldr r3, [r7, #16] - 8012906: 6ada ldr r2, [r3, #44] ; 0x2c - 8012908: 4613 mov r3, r2 - 801290a: 009b lsls r3, r3, #2 - 801290c: 4413 add r3, r2 - 801290e: 009b lsls r3, r3, #2 - 8012910: 4a08 ldr r2, [pc, #32] ; (8012934 ) - 8012912: 441a add r2, r3 - 8012914: 693b ldr r3, [r7, #16] - 8012916: 3304 adds r3, #4 - 8012918: 4619 mov r1, r3 - 801291a: 4610 mov r0, r2 - 801291c: f7fd ffdc bl 80108d8 - 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; - 8012920: 2301 movs r3, #1 - 8012922: 617b str r3, [r7, #20] - else - { - mtCOVERAGE_TEST_MARKER(); - } - - return xReturn; - 8012924: 697b ldr r3, [r7, #20] - } - 8012926: 4618 mov r0, r3 - 8012928: 3718 adds r7, #24 - 801292a: 46bd mov sp, r7 - 801292c: bd80 pop {r7, pc} - 801292e: bf00 nop - 8012930: 2400bf20 .word 0x2400bf20 - 8012934: 2400bf24 .word 0x2400bf24 - 8012938: 2400c028 .word 0x2400c028 - -0801293c : -/*-----------------------------------------------------------*/ - -#if ( configUSE_MUTEXES == 1 ) - - void vTaskPriorityDisinheritAfterTimeout( TaskHandle_t const pxMutexHolder, UBaseType_t uxHighestPriorityWaitingTask ) - { - 801293c: b580 push {r7, lr} - 801293e: b088 sub sp, #32 - 8012940: af00 add r7, sp, #0 - 8012942: 6078 str r0, [r7, #4] - 8012944: 6039 str r1, [r7, #0] - TCB_t * const pxTCB = pxMutexHolder; - 8012946: 687b ldr r3, [r7, #4] - 8012948: 61bb str r3, [r7, #24] - UBaseType_t uxPriorityUsedOnEntry, uxPriorityToUse; - const UBaseType_t uxOnlyOneMutexHeld = ( UBaseType_t ) 1; - 801294a: 2301 movs r3, #1 - 801294c: 617b str r3, [r7, #20] - - if( pxMutexHolder != NULL ) - 801294e: 687b ldr r3, [r7, #4] - 8012950: 2b00 cmp r3, #0 - 8012952: d077 beq.n 8012a44 - { - /* If pxMutexHolder is not NULL then the holder must hold at least - one mutex. */ - configASSERT( pxTCB->uxMutexesHeld ); - 8012954: 69bb ldr r3, [r7, #24] - 8012956: 6c9b ldr r3, [r3, #72] ; 0x48 - 8012958: 2b00 cmp r3, #0 - 801295a: d10a bne.n 8012972 - __asm volatile - 801295c: f04f 0350 mov.w r3, #80 ; 0x50 - 8012960: f383 8811 msr BASEPRI, r3 - 8012964: f3bf 8f6f isb sy - 8012968: f3bf 8f4f dsb sy - 801296c: 60fb str r3, [r7, #12] -} - 801296e: bf00 nop - 8012970: e7fe b.n 8012970 - - /* 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 ) - 8012972: 69bb ldr r3, [r7, #24] - 8012974: 6c5b ldr r3, [r3, #68] ; 0x44 - 8012976: 683a ldr r2, [r7, #0] - 8012978: 429a cmp r2, r3 - 801297a: d902 bls.n 8012982 - { - uxPriorityToUse = uxHighestPriorityWaitingTask; - 801297c: 683b ldr r3, [r7, #0] - 801297e: 61fb str r3, [r7, #28] - 8012980: e002 b.n 8012988 - } - else - { - uxPriorityToUse = pxTCB->uxBasePriority; - 8012982: 69bb ldr r3, [r7, #24] - 8012984: 6c5b ldr r3, [r3, #68] ; 0x44 - 8012986: 61fb str r3, [r7, #28] - } - - /* Does the priority need to change? */ - if( pxTCB->uxPriority != uxPriorityToUse ) - 8012988: 69bb ldr r3, [r7, #24] - 801298a: 6adb ldr r3, [r3, #44] ; 0x2c - 801298c: 69fa ldr r2, [r7, #28] - 801298e: 429a cmp r2, r3 - 8012990: d058 beq.n 8012a44 - { - /* 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 ) - 8012992: 69bb ldr r3, [r7, #24] - 8012994: 6c9b ldr r3, [r3, #72] ; 0x48 - 8012996: 697a ldr r2, [r7, #20] - 8012998: 429a cmp r2, r3 - 801299a: d153 bne.n 8012a44 - { - /* 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 ); - 801299c: 4b2b ldr r3, [pc, #172] ; (8012a4c ) - 801299e: 681b ldr r3, [r3, #0] - 80129a0: 69ba ldr r2, [r7, #24] - 80129a2: 429a cmp r2, r3 - 80129a4: d10a bne.n 80129bc - __asm volatile - 80129a6: f04f 0350 mov.w r3, #80 ; 0x50 - 80129aa: f383 8811 msr BASEPRI, r3 - 80129ae: f3bf 8f6f isb sy - 80129b2: f3bf 8f4f dsb sy - 80129b6: 60bb str r3, [r7, #8] -} - 80129b8: bf00 nop - 80129ba: e7fe b.n 80129ba - - /* Disinherit the priority, remembering the previous - priority to facilitate determining the subject task's - state. */ - traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority ); - uxPriorityUsedOnEntry = pxTCB->uxPriority; - 80129bc: 69bb ldr r3, [r7, #24] - 80129be: 6adb ldr r3, [r3, #44] ; 0x2c - 80129c0: 613b str r3, [r7, #16] - pxTCB->uxPriority = uxPriorityToUse; - 80129c2: 69bb ldr r3, [r7, #24] - 80129c4: 69fa ldr r2, [r7, #28] - 80129c6: 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 ) - 80129c8: 69bb ldr r3, [r7, #24] - 80129ca: 699b ldr r3, [r3, #24] - 80129cc: 2b00 cmp r3, #0 - 80129ce: db04 blt.n 80129da - { - 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. */ - 80129d0: 69fb ldr r3, [r7, #28] - 80129d2: f1c3 0207 rsb r2, r3, #7 - 80129d6: 69bb ldr r3, [r7, #24] - 80129d8: 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 ) - 80129da: 69bb ldr r3, [r7, #24] - 80129dc: 6959 ldr r1, [r3, #20] - 80129de: 693a ldr r2, [r7, #16] - 80129e0: 4613 mov r3, r2 - 80129e2: 009b lsls r3, r3, #2 - 80129e4: 4413 add r3, r2 - 80129e6: 009b lsls r3, r3, #2 - 80129e8: 4a19 ldr r2, [pc, #100] ; (8012a50 ) - 80129ea: 4413 add r3, r2 - 80129ec: 4299 cmp r1, r3 - 80129ee: d129 bne.n 8012a44 - { - if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 ) - 80129f0: 69bb ldr r3, [r7, #24] - 80129f2: 3304 adds r3, #4 - 80129f4: 4618 mov r0, r3 - 80129f6: f7fd ffcc bl 8010992 - 80129fa: 4603 mov r3, r0 - 80129fc: 2b00 cmp r3, #0 - 80129fe: d10a bne.n 8012a16 - { - /* It is known that the task is in its ready list so - there is no need to check again and the port level - reset macro can be called directly. */ - portRESET_READY_PRIORITY( pxTCB->uxPriority, uxTopReadyPriority ); - 8012a00: 69bb ldr r3, [r7, #24] - 8012a02: 6adb ldr r3, [r3, #44] ; 0x2c - 8012a04: 2201 movs r2, #1 - 8012a06: fa02 f303 lsl.w r3, r2, r3 - 8012a0a: 43da mvns r2, r3 - 8012a0c: 4b11 ldr r3, [pc, #68] ; (8012a54 ) - 8012a0e: 681b ldr r3, [r3, #0] - 8012a10: 4013 ands r3, r2 - 8012a12: 4a10 ldr r2, [pc, #64] ; (8012a54 ) - 8012a14: 6013 str r3, [r2, #0] - else - { - mtCOVERAGE_TEST_MARKER(); - } - - prvAddTaskToReadyList( pxTCB ); - 8012a16: 69bb ldr r3, [r7, #24] - 8012a18: 6adb ldr r3, [r3, #44] ; 0x2c - 8012a1a: 2201 movs r2, #1 - 8012a1c: 409a lsls r2, r3 - 8012a1e: 4b0d ldr r3, [pc, #52] ; (8012a54 ) - 8012a20: 681b ldr r3, [r3, #0] - 8012a22: 4313 orrs r3, r2 - 8012a24: 4a0b ldr r2, [pc, #44] ; (8012a54 ) - 8012a26: 6013 str r3, [r2, #0] - 8012a28: 69bb ldr r3, [r7, #24] - 8012a2a: 6ada ldr r2, [r3, #44] ; 0x2c - 8012a2c: 4613 mov r3, r2 - 8012a2e: 009b lsls r3, r3, #2 - 8012a30: 4413 add r3, r2 - 8012a32: 009b lsls r3, r3, #2 - 8012a34: 4a06 ldr r2, [pc, #24] ; (8012a50 ) - 8012a36: 441a add r2, r3 - 8012a38: 69bb ldr r3, [r7, #24] - 8012a3a: 3304 adds r3, #4 - 8012a3c: 4619 mov r1, r3 - 8012a3e: 4610 mov r0, r2 - 8012a40: f7fd ff4a bl 80108d8 - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - 8012a44: bf00 nop - 8012a46: 3720 adds r7, #32 - 8012a48: 46bd mov sp, r7 - 8012a4a: bd80 pop {r7, pc} - 8012a4c: 2400bf20 .word 0x2400bf20 - 8012a50: 2400bf24 .word 0x2400bf24 - 8012a54: 2400c028 .word 0x2400c028 - -08012a58 : -/*-----------------------------------------------------------*/ - -#if ( configUSE_MUTEXES == 1 ) - - TaskHandle_t pvTaskIncrementMutexHeldCount( void ) - { - 8012a58: b480 push {r7} - 8012a5a: af00 add r7, sp, #0 - /* If xSemaphoreCreateMutex() is called before any tasks have been created - then pxCurrentTCB will be NULL. */ - if( pxCurrentTCB != NULL ) - 8012a5c: 4b07 ldr r3, [pc, #28] ; (8012a7c ) - 8012a5e: 681b ldr r3, [r3, #0] - 8012a60: 2b00 cmp r3, #0 - 8012a62: d004 beq.n 8012a6e - { - ( pxCurrentTCB->uxMutexesHeld )++; - 8012a64: 4b05 ldr r3, [pc, #20] ; (8012a7c ) - 8012a66: 681b ldr r3, [r3, #0] - 8012a68: 6c9a ldr r2, [r3, #72] ; 0x48 - 8012a6a: 3201 adds r2, #1 - 8012a6c: 649a str r2, [r3, #72] ; 0x48 - } - - return pxCurrentTCB; - 8012a6e: 4b03 ldr r3, [pc, #12] ; (8012a7c ) - 8012a70: 681b ldr r3, [r3, #0] - } - 8012a72: 4618 mov r0, r3 - 8012a74: 46bd mov sp, r7 - 8012a76: f85d 7b04 ldr.w r7, [sp], #4 - 8012a7a: 4770 bx lr - 8012a7c: 2400bf20 .word 0x2400bf20 - -08012a80 : - -#endif -/*-----------------------------------------------------------*/ - -static void prvAddCurrentTaskToDelayedList( TickType_t xTicksToWait, const BaseType_t xCanBlockIndefinitely ) -{ - 8012a80: b580 push {r7, lr} - 8012a82: b084 sub sp, #16 - 8012a84: af00 add r7, sp, #0 - 8012a86: 6078 str r0, [r7, #4] - 8012a88: 6039 str r1, [r7, #0] -TickType_t xTimeToWake; -const TickType_t xConstTickCount = xTickCount; - 8012a8a: 4b29 ldr r3, [pc, #164] ; (8012b30 ) - 8012a8c: 681b ldr r3, [r3, #0] - 8012a8e: 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 ) - 8012a90: 4b28 ldr r3, [pc, #160] ; (8012b34 ) - 8012a92: 681b ldr r3, [r3, #0] - 8012a94: 3304 adds r3, #4 - 8012a96: 4618 mov r0, r3 - 8012a98: f7fd ff7b bl 8010992 - 8012a9c: 4603 mov r3, r0 - 8012a9e: 2b00 cmp r3, #0 - 8012aa0: d10b bne.n 8012aba - { - /* 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. */ - 8012aa2: 4b24 ldr r3, [pc, #144] ; (8012b34 ) - 8012aa4: 681b ldr r3, [r3, #0] - 8012aa6: 6adb ldr r3, [r3, #44] ; 0x2c - 8012aa8: 2201 movs r2, #1 - 8012aaa: fa02 f303 lsl.w r3, r2, r3 - 8012aae: 43da mvns r2, r3 - 8012ab0: 4b21 ldr r3, [pc, #132] ; (8012b38 ) - 8012ab2: 681b ldr r3, [r3, #0] - 8012ab4: 4013 ands r3, r2 - 8012ab6: 4a20 ldr r2, [pc, #128] ; (8012b38 ) - 8012ab8: 6013 str r3, [r2, #0] - mtCOVERAGE_TEST_MARKER(); - } - - #if ( INCLUDE_vTaskSuspend == 1 ) - { - if( ( xTicksToWait == portMAX_DELAY ) && ( xCanBlockIndefinitely != pdFALSE ) ) - 8012aba: 687b ldr r3, [r7, #4] - 8012abc: f1b3 3fff cmp.w r3, #4294967295 - 8012ac0: d10a bne.n 8012ad8 - 8012ac2: 683b ldr r3, [r7, #0] - 8012ac4: 2b00 cmp r3, #0 - 8012ac6: d007 beq.n 8012ad8 - { - /* 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 ) ); - 8012ac8: 4b1a ldr r3, [pc, #104] ; (8012b34 ) - 8012aca: 681b ldr r3, [r3, #0] - 8012acc: 3304 adds r3, #4 - 8012ace: 4619 mov r1, r3 - 8012ad0: 481a ldr r0, [pc, #104] ; (8012b3c ) - 8012ad2: f7fd ff01 bl 80108d8 - - /* Avoid compiler warning when INCLUDE_vTaskSuspend is not 1. */ - ( void ) xCanBlockIndefinitely; - } - #endif /* INCLUDE_vTaskSuspend */ -} - 8012ad6: e026 b.n 8012b26 - xTimeToWake = xConstTickCount + xTicksToWait; - 8012ad8: 68fa ldr r2, [r7, #12] - 8012ada: 687b ldr r3, [r7, #4] - 8012adc: 4413 add r3, r2 - 8012ade: 60bb str r3, [r7, #8] - listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xStateListItem ), xTimeToWake ); - 8012ae0: 4b14 ldr r3, [pc, #80] ; (8012b34 ) - 8012ae2: 681b ldr r3, [r3, #0] - 8012ae4: 68ba ldr r2, [r7, #8] - 8012ae6: 605a str r2, [r3, #4] - if( xTimeToWake < xConstTickCount ) - 8012ae8: 68ba ldr r2, [r7, #8] - 8012aea: 68fb ldr r3, [r7, #12] - 8012aec: 429a cmp r2, r3 - 8012aee: d209 bcs.n 8012b04 - vListInsert( pxOverflowDelayedTaskList, &( pxCurrentTCB->xStateListItem ) ); - 8012af0: 4b13 ldr r3, [pc, #76] ; (8012b40 ) - 8012af2: 681a ldr r2, [r3, #0] - 8012af4: 4b0f ldr r3, [pc, #60] ; (8012b34 ) - 8012af6: 681b ldr r3, [r3, #0] - 8012af8: 3304 adds r3, #4 - 8012afa: 4619 mov r1, r3 - 8012afc: 4610 mov r0, r2 - 8012afe: f7fd ff0f bl 8010920 -} - 8012b02: e010 b.n 8012b26 - vListInsert( pxDelayedTaskList, &( pxCurrentTCB->xStateListItem ) ); - 8012b04: 4b0f ldr r3, [pc, #60] ; (8012b44 ) - 8012b06: 681a ldr r2, [r3, #0] - 8012b08: 4b0a ldr r3, [pc, #40] ; (8012b34 ) - 8012b0a: 681b ldr r3, [r3, #0] - 8012b0c: 3304 adds r3, #4 - 8012b0e: 4619 mov r1, r3 - 8012b10: 4610 mov r0, r2 - 8012b12: f7fd ff05 bl 8010920 - if( xTimeToWake < xNextTaskUnblockTime ) - 8012b16: 4b0c ldr r3, [pc, #48] ; (8012b48 ) - 8012b18: 681b ldr r3, [r3, #0] - 8012b1a: 68ba ldr r2, [r7, #8] - 8012b1c: 429a cmp r2, r3 - 8012b1e: d202 bcs.n 8012b26 - xNextTaskUnblockTime = xTimeToWake; - 8012b20: 4a09 ldr r2, [pc, #36] ; (8012b48 ) - 8012b22: 68bb ldr r3, [r7, #8] - 8012b24: 6013 str r3, [r2, #0] -} - 8012b26: bf00 nop - 8012b28: 3710 adds r7, #16 - 8012b2a: 46bd mov sp, r7 - 8012b2c: bd80 pop {r7, pc} - 8012b2e: bf00 nop - 8012b30: 2400c024 .word 0x2400c024 - 8012b34: 2400bf20 .word 0x2400bf20 - 8012b38: 2400c028 .word 0x2400c028 - 8012b3c: 2400c00c .word 0x2400c00c - 8012b40: 2400bfdc .word 0x2400bfdc - 8012b44: 2400bfd8 .word 0x2400bfd8 - 8012b48: 2400c040 .word 0x2400c040 - -08012b4c : - TimerCallbackFunction_t pxCallbackFunction, - Timer_t *pxNewTimer ) PRIVILEGED_FUNCTION; -/*-----------------------------------------------------------*/ - -BaseType_t xTimerCreateTimerTask( void ) -{ - 8012b4c: b580 push {r7, lr} - 8012b4e: b08a sub sp, #40 ; 0x28 - 8012b50: af04 add r7, sp, #16 -BaseType_t xReturn = pdFAIL; - 8012b52: 2300 movs r3, #0 - 8012b54: 617b str r3, [r7, #20] - - /* This function is called when the scheduler is started if - configUSE_TIMERS is set to 1. Check that the infrastructure used by the - timer service task has been created/initialised. If timers have already - been created then the initialisation will already have been performed. */ - prvCheckForValidListAndQueue(); - 8012b56: f000 faeb bl 8013130 - - if( xTimerQueue != NULL ) - 8012b5a: 4b1c ldr r3, [pc, #112] ; (8012bcc ) - 8012b5c: 681b ldr r3, [r3, #0] - 8012b5e: 2b00 cmp r3, #0 - 8012b60: d021 beq.n 8012ba6 - { - #if( configSUPPORT_STATIC_ALLOCATION == 1 ) - { - StaticTask_t *pxTimerTaskTCBBuffer = NULL; - 8012b62: 2300 movs r3, #0 - 8012b64: 60fb str r3, [r7, #12] - StackType_t *pxTimerTaskStackBuffer = NULL; - 8012b66: 2300 movs r3, #0 - 8012b68: 60bb str r3, [r7, #8] - uint32_t ulTimerTaskStackSize; - - vApplicationGetTimerTaskMemory( &pxTimerTaskTCBBuffer, &pxTimerTaskStackBuffer, &ulTimerTaskStackSize ); - 8012b6a: 1d3a adds r2, r7, #4 - 8012b6c: f107 0108 add.w r1, r7, #8 - 8012b70: f107 030c add.w r3, r7, #12 - 8012b74: 4618 mov r0, r3 - 8012b76: f7ed fdd7 bl 8000728 - xTimerTaskHandle = xTaskCreateStatic( prvTimerTask, - 8012b7a: 6879 ldr r1, [r7, #4] - 8012b7c: 68bb ldr r3, [r7, #8] - 8012b7e: 68fa ldr r2, [r7, #12] - 8012b80: 9202 str r2, [sp, #8] - 8012b82: 9301 str r3, [sp, #4] - 8012b84: 2302 movs r3, #2 - 8012b86: 9300 str r3, [sp, #0] - 8012b88: 2300 movs r3, #0 - 8012b8a: 460a mov r2, r1 - 8012b8c: 4910 ldr r1, [pc, #64] ; (8012bd0 ) - 8012b8e: 4811 ldr r0, [pc, #68] ; (8012bd4 ) - 8012b90: f7fe ff52 bl 8011a38 - 8012b94: 4603 mov r3, r0 - 8012b96: 4a10 ldr r2, [pc, #64] ; (8012bd8 ) - 8012b98: 6013 str r3, [r2, #0] - NULL, - ( ( UBaseType_t ) configTIMER_TASK_PRIORITY ) | portPRIVILEGE_BIT, - pxTimerTaskStackBuffer, - pxTimerTaskTCBBuffer ); - - if( xTimerTaskHandle != NULL ) - 8012b9a: 4b0f ldr r3, [pc, #60] ; (8012bd8 ) - 8012b9c: 681b ldr r3, [r3, #0] - 8012b9e: 2b00 cmp r3, #0 - 8012ba0: d001 beq.n 8012ba6 - { - xReturn = pdPASS; - 8012ba2: 2301 movs r3, #1 - 8012ba4: 617b str r3, [r7, #20] - else - { - mtCOVERAGE_TEST_MARKER(); - } - - configASSERT( xReturn ); - 8012ba6: 697b ldr r3, [r7, #20] - 8012ba8: 2b00 cmp r3, #0 - 8012baa: d10a bne.n 8012bc2 - __asm volatile - 8012bac: f04f 0350 mov.w r3, #80 ; 0x50 - 8012bb0: f383 8811 msr BASEPRI, r3 - 8012bb4: f3bf 8f6f isb sy - 8012bb8: f3bf 8f4f dsb sy - 8012bbc: 613b str r3, [r7, #16] -} - 8012bbe: bf00 nop - 8012bc0: e7fe b.n 8012bc0 - return xReturn; - 8012bc2: 697b ldr r3, [r7, #20] -} - 8012bc4: 4618 mov r0, r3 - 8012bc6: 3718 adds r7, #24 - 8012bc8: 46bd mov sp, r7 - 8012bca: bd80 pop {r7, pc} - 8012bcc: 2400c07c .word 0x2400c07c - 8012bd0: 080232bc .word 0x080232bc - 8012bd4: 08012d11 .word 0x08012d11 - 8012bd8: 2400c080 .word 0x2400c080 - -08012bdc : - } -} -/*-----------------------------------------------------------*/ - -BaseType_t xTimerGenericCommand( TimerHandle_t xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t * const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait ) -{ - 8012bdc: b580 push {r7, lr} - 8012bde: b08a sub sp, #40 ; 0x28 - 8012be0: af00 add r7, sp, #0 - 8012be2: 60f8 str r0, [r7, #12] - 8012be4: 60b9 str r1, [r7, #8] - 8012be6: 607a str r2, [r7, #4] - 8012be8: 603b str r3, [r7, #0] -BaseType_t xReturn = pdFAIL; - 8012bea: 2300 movs r3, #0 - 8012bec: 627b str r3, [r7, #36] ; 0x24 -DaemonTaskMessage_t xMessage; - - configASSERT( xTimer ); - 8012bee: 68fb ldr r3, [r7, #12] - 8012bf0: 2b00 cmp r3, #0 - 8012bf2: d10a bne.n 8012c0a - __asm volatile - 8012bf4: f04f 0350 mov.w r3, #80 ; 0x50 - 8012bf8: f383 8811 msr BASEPRI, r3 - 8012bfc: f3bf 8f6f isb sy - 8012c00: f3bf 8f4f dsb sy - 8012c04: 623b str r3, [r7, #32] -} - 8012c06: bf00 nop - 8012c08: e7fe b.n 8012c08 - - /* Send a message to the timer service task to perform a particular action - on a particular timer definition. */ - if( xTimerQueue != NULL ) - 8012c0a: 4b1a ldr r3, [pc, #104] ; (8012c74 ) - 8012c0c: 681b ldr r3, [r3, #0] - 8012c0e: 2b00 cmp r3, #0 - 8012c10: d02a beq.n 8012c68 - { - /* Send a command to the timer service task to start the xTimer timer. */ - xMessage.xMessageID = xCommandID; - 8012c12: 68bb ldr r3, [r7, #8] - 8012c14: 617b str r3, [r7, #20] - xMessage.u.xTimerParameters.xMessageValue = xOptionalValue; - 8012c16: 687b ldr r3, [r7, #4] - 8012c18: 61bb str r3, [r7, #24] - xMessage.u.xTimerParameters.pxTimer = xTimer; - 8012c1a: 68fb ldr r3, [r7, #12] - 8012c1c: 61fb str r3, [r7, #28] - - if( xCommandID < tmrFIRST_FROM_ISR_COMMAND ) - 8012c1e: 68bb ldr r3, [r7, #8] - 8012c20: 2b05 cmp r3, #5 - 8012c22: dc18 bgt.n 8012c56 - { - if( xTaskGetSchedulerState() == taskSCHEDULER_RUNNING ) - 8012c24: f7ff fd70 bl 8012708 - 8012c28: 4603 mov r3, r0 - 8012c2a: 2b02 cmp r3, #2 - 8012c2c: d109 bne.n 8012c42 - { - xReturn = xQueueSendToBack( xTimerQueue, &xMessage, xTicksToWait ); - 8012c2e: 4b11 ldr r3, [pc, #68] ; (8012c74 ) - 8012c30: 6818 ldr r0, [r3, #0] - 8012c32: f107 0114 add.w r1, r7, #20 - 8012c36: 2300 movs r3, #0 - 8012c38: 6b3a ldr r2, [r7, #48] ; 0x30 - 8012c3a: f7fe f85b bl 8010cf4 - 8012c3e: 6278 str r0, [r7, #36] ; 0x24 - 8012c40: e012 b.n 8012c68 - } - else - { - xReturn = xQueueSendToBack( xTimerQueue, &xMessage, tmrNO_DELAY ); - 8012c42: 4b0c ldr r3, [pc, #48] ; (8012c74 ) - 8012c44: 6818 ldr r0, [r3, #0] - 8012c46: f107 0114 add.w r1, r7, #20 - 8012c4a: 2300 movs r3, #0 - 8012c4c: 2200 movs r2, #0 - 8012c4e: f7fe f851 bl 8010cf4 - 8012c52: 6278 str r0, [r7, #36] ; 0x24 - 8012c54: e008 b.n 8012c68 - } - } - else - { - xReturn = xQueueSendToBackFromISR( xTimerQueue, &xMessage, pxHigherPriorityTaskWoken ); - 8012c56: 4b07 ldr r3, [pc, #28] ; (8012c74 ) - 8012c58: 6818 ldr r0, [r3, #0] - 8012c5a: f107 0114 add.w r1, r7, #20 - 8012c5e: 2300 movs r3, #0 - 8012c60: 683a ldr r2, [r7, #0] - 8012c62: f7fe f945 bl 8010ef0 - 8012c66: 6278 str r0, [r7, #36] ; 0x24 - else - { - mtCOVERAGE_TEST_MARKER(); - } - - return xReturn; - 8012c68: 6a7b ldr r3, [r7, #36] ; 0x24 -} - 8012c6a: 4618 mov r0, r3 - 8012c6c: 3728 adds r7, #40 ; 0x28 - 8012c6e: 46bd mov sp, r7 - 8012c70: bd80 pop {r7, pc} - 8012c72: bf00 nop - 8012c74: 2400c07c .word 0x2400c07c - -08012c78 : - return pxTimer->pcTimerName; -} -/*-----------------------------------------------------------*/ - -static void prvProcessExpiredTimer( const TickType_t xNextExpireTime, const TickType_t xTimeNow ) -{ - 8012c78: b580 push {r7, lr} - 8012c7a: b088 sub sp, #32 - 8012c7c: af02 add r7, sp, #8 - 8012c7e: 6078 str r0, [r7, #4] - 8012c80: 6039 str r1, [r7, #0] -BaseType_t xResult; -Timer_t * const pxTimer = ( Timer_t * ) listGET_OWNER_OF_HEAD_ENTRY( pxCurrentTimerList ); /*lint !e9087 !e9079 void * is used as this macro is used with tasks and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */ - 8012c82: 4b22 ldr r3, [pc, #136] ; (8012d0c ) - 8012c84: 681b ldr r3, [r3, #0] - 8012c86: 68db ldr r3, [r3, #12] - 8012c88: 68db ldr r3, [r3, #12] - 8012c8a: 617b str r3, [r7, #20] - - /* Remove the timer from the list of active timers. A check has already - been performed to ensure the list is not empty. */ - ( void ) uxListRemove( &( pxTimer->xTimerListItem ) ); - 8012c8c: 697b ldr r3, [r7, #20] - 8012c8e: 3304 adds r3, #4 - 8012c90: 4618 mov r0, r3 - 8012c92: f7fd fe7e bl 8010992 - traceTIMER_EXPIRED( pxTimer ); - - /* If the timer is an auto-reload timer then calculate the next - expiry time and re-insert the timer in the list of active timers. */ - if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 ) - 8012c96: 697b ldr r3, [r7, #20] - 8012c98: f893 3024 ldrb.w r3, [r3, #36] ; 0x24 - 8012c9c: f003 0304 and.w r3, r3, #4 - 8012ca0: 2b00 cmp r3, #0 - 8012ca2: d022 beq.n 8012cea - { - /* The timer is inserted into a list using a time relative to anything - other than the current time. It will therefore be inserted into the - correct list relative to the time this task thinks it is now. */ - if( prvInsertTimerInActiveList( pxTimer, ( xNextExpireTime + pxTimer->xTimerPeriodInTicks ), xTimeNow, xNextExpireTime ) != pdFALSE ) - 8012ca4: 697b ldr r3, [r7, #20] - 8012ca6: 699a ldr r2, [r3, #24] - 8012ca8: 687b ldr r3, [r7, #4] - 8012caa: 18d1 adds r1, r2, r3 - 8012cac: 687b ldr r3, [r7, #4] - 8012cae: 683a ldr r2, [r7, #0] - 8012cb0: 6978 ldr r0, [r7, #20] - 8012cb2: f000 f8d1 bl 8012e58 - 8012cb6: 4603 mov r3, r0 - 8012cb8: 2b00 cmp r3, #0 - 8012cba: d01f beq.n 8012cfc - { - /* The timer expired before it was added to the active timer - list. Reload it now. */ - xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY ); - 8012cbc: 2300 movs r3, #0 - 8012cbe: 9300 str r3, [sp, #0] - 8012cc0: 2300 movs r3, #0 - 8012cc2: 687a ldr r2, [r7, #4] - 8012cc4: 2100 movs r1, #0 - 8012cc6: 6978 ldr r0, [r7, #20] - 8012cc8: f7ff ff88 bl 8012bdc - 8012ccc: 6138 str r0, [r7, #16] - configASSERT( xResult ); - 8012cce: 693b ldr r3, [r7, #16] - 8012cd0: 2b00 cmp r3, #0 - 8012cd2: d113 bne.n 8012cfc - __asm volatile - 8012cd4: f04f 0350 mov.w r3, #80 ; 0x50 - 8012cd8: f383 8811 msr BASEPRI, r3 - 8012cdc: f3bf 8f6f isb sy - 8012ce0: f3bf 8f4f dsb sy - 8012ce4: 60fb str r3, [r7, #12] -} - 8012ce6: bf00 nop - 8012ce8: e7fe b.n 8012ce8 - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE; - 8012cea: 697b ldr r3, [r7, #20] - 8012cec: f893 3024 ldrb.w r3, [r3, #36] ; 0x24 - 8012cf0: f023 0301 bic.w r3, r3, #1 - 8012cf4: b2da uxtb r2, r3 - 8012cf6: 697b ldr r3, [r7, #20] - 8012cf8: f883 2024 strb.w r2, [r3, #36] ; 0x24 - mtCOVERAGE_TEST_MARKER(); - } - - /* Call the timer callback. */ - pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer ); - 8012cfc: 697b ldr r3, [r7, #20] - 8012cfe: 6a1b ldr r3, [r3, #32] - 8012d00: 6978 ldr r0, [r7, #20] - 8012d02: 4798 blx r3 -} - 8012d04: bf00 nop - 8012d06: 3718 adds r7, #24 - 8012d08: 46bd mov sp, r7 - 8012d0a: bd80 pop {r7, pc} - 8012d0c: 2400c074 .word 0x2400c074 - -08012d10 : -/*-----------------------------------------------------------*/ - -static portTASK_FUNCTION( prvTimerTask, pvParameters ) -{ - 8012d10: b580 push {r7, lr} - 8012d12: b084 sub sp, #16 - 8012d14: af00 add r7, sp, #0 - 8012d16: 6078 str r0, [r7, #4] - - for( ;; ) - { - /* Query the timers list to see if it contains any timers, and if so, - obtain the time at which the next timer will expire. */ - xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty ); - 8012d18: f107 0308 add.w r3, r7, #8 - 8012d1c: 4618 mov r0, r3 - 8012d1e: f000 f857 bl 8012dd0 - 8012d22: 60f8 str r0, [r7, #12] - - /* If a timer has expired, process it. Otherwise, block this task - until either a timer does expire, or a command is received. */ - prvProcessTimerOrBlockTask( xNextExpireTime, xListWasEmpty ); - 8012d24: 68bb ldr r3, [r7, #8] - 8012d26: 4619 mov r1, r3 - 8012d28: 68f8 ldr r0, [r7, #12] - 8012d2a: f000 f803 bl 8012d34 - - /* Empty the command queue. */ - prvProcessReceivedCommands(); - 8012d2e: f000 f8d5 bl 8012edc - xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty ); - 8012d32: e7f1 b.n 8012d18 - -08012d34 : - } -} -/*-----------------------------------------------------------*/ - -static void prvProcessTimerOrBlockTask( const TickType_t xNextExpireTime, BaseType_t xListWasEmpty ) -{ - 8012d34: b580 push {r7, lr} - 8012d36: b084 sub sp, #16 - 8012d38: af00 add r7, sp, #0 - 8012d3a: 6078 str r0, [r7, #4] - 8012d3c: 6039 str r1, [r7, #0] -TickType_t xTimeNow; -BaseType_t xTimerListsWereSwitched; - - vTaskSuspendAll(); - 8012d3e: f7ff f8b1 bl 8011ea4 - /* Obtain the time now to make an assessment as to whether the timer - has expired or not. If obtaining the time causes the lists to switch - then don't process this timer as any timers that remained in the list - when the lists were switched will have been processed within the - prvSampleTimeNow() function. */ - xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched ); - 8012d42: f107 0308 add.w r3, r7, #8 - 8012d46: 4618 mov r0, r3 - 8012d48: f000 f866 bl 8012e18 - 8012d4c: 60f8 str r0, [r7, #12] - if( xTimerListsWereSwitched == pdFALSE ) - 8012d4e: 68bb ldr r3, [r7, #8] - 8012d50: 2b00 cmp r3, #0 - 8012d52: d130 bne.n 8012db6 - { - /* The tick count has not overflowed, has the timer expired? */ - if( ( xListWasEmpty == pdFALSE ) && ( xNextExpireTime <= xTimeNow ) ) - 8012d54: 683b ldr r3, [r7, #0] - 8012d56: 2b00 cmp r3, #0 - 8012d58: d10a bne.n 8012d70 - 8012d5a: 687a ldr r2, [r7, #4] - 8012d5c: 68fb ldr r3, [r7, #12] - 8012d5e: 429a cmp r2, r3 - 8012d60: d806 bhi.n 8012d70 - { - ( void ) xTaskResumeAll(); - 8012d62: f7ff f8ad bl 8011ec0 - prvProcessExpiredTimer( xNextExpireTime, xTimeNow ); - 8012d66: 68f9 ldr r1, [r7, #12] - 8012d68: 6878 ldr r0, [r7, #4] - 8012d6a: f7ff ff85 bl 8012c78 - else - { - ( void ) xTaskResumeAll(); - } - } -} - 8012d6e: e024 b.n 8012dba - if( xListWasEmpty != pdFALSE ) - 8012d70: 683b ldr r3, [r7, #0] - 8012d72: 2b00 cmp r3, #0 - 8012d74: d008 beq.n 8012d88 - xListWasEmpty = listLIST_IS_EMPTY( pxOverflowTimerList ); - 8012d76: 4b13 ldr r3, [pc, #76] ; (8012dc4 ) - 8012d78: 681b ldr r3, [r3, #0] - 8012d7a: 681b ldr r3, [r3, #0] - 8012d7c: 2b00 cmp r3, #0 - 8012d7e: d101 bne.n 8012d84 - 8012d80: 2301 movs r3, #1 - 8012d82: e000 b.n 8012d86 - 8012d84: 2300 movs r3, #0 - 8012d86: 603b str r3, [r7, #0] - vQueueWaitForMessageRestricted( xTimerQueue, ( xNextExpireTime - xTimeNow ), xListWasEmpty ); - 8012d88: 4b0f ldr r3, [pc, #60] ; (8012dc8 ) - 8012d8a: 6818 ldr r0, [r3, #0] - 8012d8c: 687a ldr r2, [r7, #4] - 8012d8e: 68fb ldr r3, [r7, #12] - 8012d90: 1ad3 subs r3, r2, r3 - 8012d92: 683a ldr r2, [r7, #0] - 8012d94: 4619 mov r1, r3 - 8012d96: f7fe fe1b bl 80119d0 - if( xTaskResumeAll() == pdFALSE ) - 8012d9a: f7ff f891 bl 8011ec0 - 8012d9e: 4603 mov r3, r0 - 8012da0: 2b00 cmp r3, #0 - 8012da2: d10a bne.n 8012dba - portYIELD_WITHIN_API(); - 8012da4: 4b09 ldr r3, [pc, #36] ; (8012dcc ) - 8012da6: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 8012daa: 601a str r2, [r3, #0] - 8012dac: f3bf 8f4f dsb sy - 8012db0: f3bf 8f6f isb sy -} - 8012db4: e001 b.n 8012dba - ( void ) xTaskResumeAll(); - 8012db6: f7ff f883 bl 8011ec0 -} - 8012dba: bf00 nop - 8012dbc: 3710 adds r7, #16 - 8012dbe: 46bd mov sp, r7 - 8012dc0: bd80 pop {r7, pc} - 8012dc2: bf00 nop - 8012dc4: 2400c078 .word 0x2400c078 - 8012dc8: 2400c07c .word 0x2400c07c - 8012dcc: e000ed04 .word 0xe000ed04 - -08012dd0 : -/*-----------------------------------------------------------*/ - -static TickType_t prvGetNextExpireTime( BaseType_t * const pxListWasEmpty ) -{ - 8012dd0: b480 push {r7} - 8012dd2: b085 sub sp, #20 - 8012dd4: af00 add r7, sp, #0 - 8012dd6: 6078 str r0, [r7, #4] - the timer with the nearest expiry time will expire. If there are no - active timers then just set the next expire time to 0. That will cause - this task to unblock when the tick count overflows, at which point the - timer lists will be switched and the next expiry time can be - re-assessed. */ - *pxListWasEmpty = listLIST_IS_EMPTY( pxCurrentTimerList ); - 8012dd8: 4b0e ldr r3, [pc, #56] ; (8012e14 ) - 8012dda: 681b ldr r3, [r3, #0] - 8012ddc: 681b ldr r3, [r3, #0] - 8012dde: 2b00 cmp r3, #0 - 8012de0: d101 bne.n 8012de6 - 8012de2: 2201 movs r2, #1 - 8012de4: e000 b.n 8012de8 - 8012de6: 2200 movs r2, #0 - 8012de8: 687b ldr r3, [r7, #4] - 8012dea: 601a str r2, [r3, #0] - if( *pxListWasEmpty == pdFALSE ) - 8012dec: 687b ldr r3, [r7, #4] - 8012dee: 681b ldr r3, [r3, #0] - 8012df0: 2b00 cmp r3, #0 - 8012df2: d105 bne.n 8012e00 - { - xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList ); - 8012df4: 4b07 ldr r3, [pc, #28] ; (8012e14 ) - 8012df6: 681b ldr r3, [r3, #0] - 8012df8: 68db ldr r3, [r3, #12] - 8012dfa: 681b ldr r3, [r3, #0] - 8012dfc: 60fb str r3, [r7, #12] - 8012dfe: e001 b.n 8012e04 - } - else - { - /* Ensure the task unblocks when the tick count rolls over. */ - xNextExpireTime = ( TickType_t ) 0U; - 8012e00: 2300 movs r3, #0 - 8012e02: 60fb str r3, [r7, #12] - } - - return xNextExpireTime; - 8012e04: 68fb ldr r3, [r7, #12] -} - 8012e06: 4618 mov r0, r3 - 8012e08: 3714 adds r7, #20 - 8012e0a: 46bd mov sp, r7 - 8012e0c: f85d 7b04 ldr.w r7, [sp], #4 - 8012e10: 4770 bx lr - 8012e12: bf00 nop - 8012e14: 2400c074 .word 0x2400c074 - -08012e18 : -/*-----------------------------------------------------------*/ - -static TickType_t prvSampleTimeNow( BaseType_t * const pxTimerListsWereSwitched ) -{ - 8012e18: b580 push {r7, lr} - 8012e1a: b084 sub sp, #16 - 8012e1c: af00 add r7, sp, #0 - 8012e1e: 6078 str r0, [r7, #4] -TickType_t xTimeNow; -PRIVILEGED_DATA static TickType_t xLastTime = ( TickType_t ) 0U; /*lint !e956 Variable is only accessible to one task. */ - - xTimeNow = xTaskGetTickCount(); - 8012e20: f7ff f8ea bl 8011ff8 - 8012e24: 60f8 str r0, [r7, #12] - - if( xTimeNow < xLastTime ) - 8012e26: 4b0b ldr r3, [pc, #44] ; (8012e54 ) - 8012e28: 681b ldr r3, [r3, #0] - 8012e2a: 68fa ldr r2, [r7, #12] - 8012e2c: 429a cmp r2, r3 - 8012e2e: d205 bcs.n 8012e3c - { - prvSwitchTimerLists(); - 8012e30: f000 f91a bl 8013068 - *pxTimerListsWereSwitched = pdTRUE; - 8012e34: 687b ldr r3, [r7, #4] - 8012e36: 2201 movs r2, #1 - 8012e38: 601a str r2, [r3, #0] - 8012e3a: e002 b.n 8012e42 - } - else - { - *pxTimerListsWereSwitched = pdFALSE; - 8012e3c: 687b ldr r3, [r7, #4] - 8012e3e: 2200 movs r2, #0 - 8012e40: 601a str r2, [r3, #0] - } - - xLastTime = xTimeNow; - 8012e42: 4a04 ldr r2, [pc, #16] ; (8012e54 ) - 8012e44: 68fb ldr r3, [r7, #12] - 8012e46: 6013 str r3, [r2, #0] - - return xTimeNow; - 8012e48: 68fb ldr r3, [r7, #12] -} - 8012e4a: 4618 mov r0, r3 - 8012e4c: 3710 adds r7, #16 - 8012e4e: 46bd mov sp, r7 - 8012e50: bd80 pop {r7, pc} - 8012e52: bf00 nop - 8012e54: 2400c084 .word 0x2400c084 - -08012e58 : -/*-----------------------------------------------------------*/ - -static BaseType_t prvInsertTimerInActiveList( Timer_t * const pxTimer, const TickType_t xNextExpiryTime, const TickType_t xTimeNow, const TickType_t xCommandTime ) -{ - 8012e58: b580 push {r7, lr} - 8012e5a: b086 sub sp, #24 - 8012e5c: af00 add r7, sp, #0 - 8012e5e: 60f8 str r0, [r7, #12] - 8012e60: 60b9 str r1, [r7, #8] - 8012e62: 607a str r2, [r7, #4] - 8012e64: 603b str r3, [r7, #0] -BaseType_t xProcessTimerNow = pdFALSE; - 8012e66: 2300 movs r3, #0 - 8012e68: 617b str r3, [r7, #20] - - listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xNextExpiryTime ); - 8012e6a: 68fb ldr r3, [r7, #12] - 8012e6c: 68ba ldr r2, [r7, #8] - 8012e6e: 605a str r2, [r3, #4] - listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer ); - 8012e70: 68fb ldr r3, [r7, #12] - 8012e72: 68fa ldr r2, [r7, #12] - 8012e74: 611a str r2, [r3, #16] - - if( xNextExpiryTime <= xTimeNow ) - 8012e76: 68ba ldr r2, [r7, #8] - 8012e78: 687b ldr r3, [r7, #4] - 8012e7a: 429a cmp r2, r3 - 8012e7c: d812 bhi.n 8012ea4 - { - /* Has the expiry time elapsed between the command to start/reset a - timer was issued, and the time the command was processed? */ - if( ( ( TickType_t ) ( xTimeNow - xCommandTime ) ) >= pxTimer->xTimerPeriodInTicks ) /*lint !e961 MISRA exception as the casts are only redundant for some ports. */ - 8012e7e: 687a ldr r2, [r7, #4] - 8012e80: 683b ldr r3, [r7, #0] - 8012e82: 1ad2 subs r2, r2, r3 - 8012e84: 68fb ldr r3, [r7, #12] - 8012e86: 699b ldr r3, [r3, #24] - 8012e88: 429a cmp r2, r3 - 8012e8a: d302 bcc.n 8012e92 - { - /* The time between a command being issued and the command being - processed actually exceeds the timers period. */ - xProcessTimerNow = pdTRUE; - 8012e8c: 2301 movs r3, #1 - 8012e8e: 617b str r3, [r7, #20] - 8012e90: e01b b.n 8012eca - } - else - { - vListInsert( pxOverflowTimerList, &( pxTimer->xTimerListItem ) ); - 8012e92: 4b10 ldr r3, [pc, #64] ; (8012ed4 ) - 8012e94: 681a ldr r2, [r3, #0] - 8012e96: 68fb ldr r3, [r7, #12] - 8012e98: 3304 adds r3, #4 - 8012e9a: 4619 mov r1, r3 - 8012e9c: 4610 mov r0, r2 - 8012e9e: f7fd fd3f bl 8010920 - 8012ea2: e012 b.n 8012eca - } - } - else - { - if( ( xTimeNow < xCommandTime ) && ( xNextExpiryTime >= xCommandTime ) ) - 8012ea4: 687a ldr r2, [r7, #4] - 8012ea6: 683b ldr r3, [r7, #0] - 8012ea8: 429a cmp r2, r3 - 8012eaa: d206 bcs.n 8012eba - 8012eac: 68ba ldr r2, [r7, #8] - 8012eae: 683b ldr r3, [r7, #0] - 8012eb0: 429a cmp r2, r3 - 8012eb2: d302 bcc.n 8012eba - { - /* If, since the command was issued, the tick count has overflowed - but the expiry time has not, then the timer must have already passed - its expiry time and should be processed immediately. */ - xProcessTimerNow = pdTRUE; - 8012eb4: 2301 movs r3, #1 - 8012eb6: 617b str r3, [r7, #20] - 8012eb8: e007 b.n 8012eca - } - else - { - vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) ); - 8012eba: 4b07 ldr r3, [pc, #28] ; (8012ed8 ) - 8012ebc: 681a ldr r2, [r3, #0] - 8012ebe: 68fb ldr r3, [r7, #12] - 8012ec0: 3304 adds r3, #4 - 8012ec2: 4619 mov r1, r3 - 8012ec4: 4610 mov r0, r2 - 8012ec6: f7fd fd2b bl 8010920 - } - } - - return xProcessTimerNow; - 8012eca: 697b ldr r3, [r7, #20] -} - 8012ecc: 4618 mov r0, r3 - 8012ece: 3718 adds r7, #24 - 8012ed0: 46bd mov sp, r7 - 8012ed2: bd80 pop {r7, pc} - 8012ed4: 2400c078 .word 0x2400c078 - 8012ed8: 2400c074 .word 0x2400c074 - -08012edc : -/*-----------------------------------------------------------*/ - -static void prvProcessReceivedCommands( void ) -{ - 8012edc: b580 push {r7, lr} - 8012ede: b08c sub sp, #48 ; 0x30 - 8012ee0: af02 add r7, sp, #8 -DaemonTaskMessage_t xMessage; -Timer_t *pxTimer; -BaseType_t xTimerListsWereSwitched, xResult; -TickType_t xTimeNow; - - while( xQueueReceive( xTimerQueue, &xMessage, tmrNO_DELAY ) != pdFAIL ) /*lint !e603 xMessage does not have to be initialised as it is passed out, not in, and it is not used unless xQueueReceive() returns pdTRUE. */ - 8012ee2: e0ae b.n 8013042 - } - #endif /* INCLUDE_xTimerPendFunctionCall */ - - /* Commands that are positive are timer commands rather than pended - function calls. */ - if( xMessage.xMessageID >= ( BaseType_t ) 0 ) - 8012ee4: 68bb ldr r3, [r7, #8] - 8012ee6: 2b00 cmp r3, #0 - 8012ee8: f2c0 80ab blt.w 8013042 - { - /* The messages uses the xTimerParameters member to work on a - software timer. */ - pxTimer = xMessage.u.xTimerParameters.pxTimer; - 8012eec: 693b ldr r3, [r7, #16] - 8012eee: 627b str r3, [r7, #36] ; 0x24 - - if( listIS_CONTAINED_WITHIN( NULL, &( pxTimer->xTimerListItem ) ) == pdFALSE ) /*lint !e961. The cast is only redundant when NULL is passed into the macro. */ - 8012ef0: 6a7b ldr r3, [r7, #36] ; 0x24 - 8012ef2: 695b ldr r3, [r3, #20] - 8012ef4: 2b00 cmp r3, #0 - 8012ef6: d004 beq.n 8012f02 - { - /* The timer is in a list, remove it. */ - ( void ) uxListRemove( &( pxTimer->xTimerListItem ) ); - 8012ef8: 6a7b ldr r3, [r7, #36] ; 0x24 - 8012efa: 3304 adds r3, #4 - 8012efc: 4618 mov r0, r3 - 8012efe: f7fd fd48 bl 8010992 - it must be present in the function call. prvSampleTimeNow() must be - called after the message is received from xTimerQueue so there is no - possibility of a higher priority task adding a message to the message - queue with a time that is ahead of the timer daemon task (because it - pre-empted the timer daemon task after the xTimeNow value was set). */ - xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched ); - 8012f02: 1d3b adds r3, r7, #4 - 8012f04: 4618 mov r0, r3 - 8012f06: f7ff ff87 bl 8012e18 - 8012f0a: 6238 str r0, [r7, #32] - - switch( xMessage.xMessageID ) - 8012f0c: 68bb ldr r3, [r7, #8] - 8012f0e: 2b09 cmp r3, #9 - 8012f10: f200 8096 bhi.w 8013040 - 8012f14: a201 add r2, pc, #4 ; (adr r2, 8012f1c ) - 8012f16: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8012f1a: bf00 nop - 8012f1c: 08012f45 .word 0x08012f45 - 8012f20: 08012f45 .word 0x08012f45 - 8012f24: 08012f45 .word 0x08012f45 - 8012f28: 08012fb9 .word 0x08012fb9 - 8012f2c: 08012fcd .word 0x08012fcd - 8012f30: 08013017 .word 0x08013017 - 8012f34: 08012f45 .word 0x08012f45 - 8012f38: 08012f45 .word 0x08012f45 - 8012f3c: 08012fb9 .word 0x08012fb9 - 8012f40: 08012fcd .word 0x08012fcd - case tmrCOMMAND_START_FROM_ISR : - case tmrCOMMAND_RESET : - case tmrCOMMAND_RESET_FROM_ISR : - case tmrCOMMAND_START_DONT_TRACE : - /* Start or restart a timer. */ - pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE; - 8012f44: 6a7b ldr r3, [r7, #36] ; 0x24 - 8012f46: f893 3024 ldrb.w r3, [r3, #36] ; 0x24 - 8012f4a: f043 0301 orr.w r3, r3, #1 - 8012f4e: b2da uxtb r2, r3 - 8012f50: 6a7b ldr r3, [r7, #36] ; 0x24 - 8012f52: f883 2024 strb.w r2, [r3, #36] ; 0x24 - if( prvInsertTimerInActiveList( pxTimer, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, xTimeNow, xMessage.u.xTimerParameters.xMessageValue ) != pdFALSE ) - 8012f56: 68fa ldr r2, [r7, #12] - 8012f58: 6a7b ldr r3, [r7, #36] ; 0x24 - 8012f5a: 699b ldr r3, [r3, #24] - 8012f5c: 18d1 adds r1, r2, r3 - 8012f5e: 68fb ldr r3, [r7, #12] - 8012f60: 6a3a ldr r2, [r7, #32] - 8012f62: 6a78 ldr r0, [r7, #36] ; 0x24 - 8012f64: f7ff ff78 bl 8012e58 - 8012f68: 4603 mov r3, r0 - 8012f6a: 2b00 cmp r3, #0 - 8012f6c: d069 beq.n 8013042 - { - /* The timer expired before it was added to the active - timer list. Process it now. */ - pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer ); - 8012f6e: 6a7b ldr r3, [r7, #36] ; 0x24 - 8012f70: 6a1b ldr r3, [r3, #32] - 8012f72: 6a78 ldr r0, [r7, #36] ; 0x24 - 8012f74: 4798 blx r3 - traceTIMER_EXPIRED( pxTimer ); - - if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 ) - 8012f76: 6a7b ldr r3, [r7, #36] ; 0x24 - 8012f78: f893 3024 ldrb.w r3, [r3, #36] ; 0x24 - 8012f7c: f003 0304 and.w r3, r3, #4 - 8012f80: 2b00 cmp r3, #0 - 8012f82: d05e beq.n 8013042 - { - xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, NULL, tmrNO_DELAY ); - 8012f84: 68fa ldr r2, [r7, #12] - 8012f86: 6a7b ldr r3, [r7, #36] ; 0x24 - 8012f88: 699b ldr r3, [r3, #24] - 8012f8a: 441a add r2, r3 - 8012f8c: 2300 movs r3, #0 - 8012f8e: 9300 str r3, [sp, #0] - 8012f90: 2300 movs r3, #0 - 8012f92: 2100 movs r1, #0 - 8012f94: 6a78 ldr r0, [r7, #36] ; 0x24 - 8012f96: f7ff fe21 bl 8012bdc - 8012f9a: 61f8 str r0, [r7, #28] - configASSERT( xResult ); - 8012f9c: 69fb ldr r3, [r7, #28] - 8012f9e: 2b00 cmp r3, #0 - 8012fa0: d14f bne.n 8013042 - __asm volatile - 8012fa2: f04f 0350 mov.w r3, #80 ; 0x50 - 8012fa6: f383 8811 msr BASEPRI, r3 - 8012faa: f3bf 8f6f isb sy - 8012fae: f3bf 8f4f dsb sy - 8012fb2: 61bb str r3, [r7, #24] -} - 8012fb4: bf00 nop - 8012fb6: e7fe b.n 8012fb6 - break; - - case tmrCOMMAND_STOP : - case tmrCOMMAND_STOP_FROM_ISR : - /* The timer has already been removed from the active list. */ - pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE; - 8012fb8: 6a7b ldr r3, [r7, #36] ; 0x24 - 8012fba: f893 3024 ldrb.w r3, [r3, #36] ; 0x24 - 8012fbe: f023 0301 bic.w r3, r3, #1 - 8012fc2: b2da uxtb r2, r3 - 8012fc4: 6a7b ldr r3, [r7, #36] ; 0x24 - 8012fc6: f883 2024 strb.w r2, [r3, #36] ; 0x24 - break; - 8012fca: e03a b.n 8013042 - - case tmrCOMMAND_CHANGE_PERIOD : - case tmrCOMMAND_CHANGE_PERIOD_FROM_ISR : - pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE; - 8012fcc: 6a7b ldr r3, [r7, #36] ; 0x24 - 8012fce: f893 3024 ldrb.w r3, [r3, #36] ; 0x24 - 8012fd2: f043 0301 orr.w r3, r3, #1 - 8012fd6: b2da uxtb r2, r3 - 8012fd8: 6a7b ldr r3, [r7, #36] ; 0x24 - 8012fda: f883 2024 strb.w r2, [r3, #36] ; 0x24 - pxTimer->xTimerPeriodInTicks = xMessage.u.xTimerParameters.xMessageValue; - 8012fde: 68fa ldr r2, [r7, #12] - 8012fe0: 6a7b ldr r3, [r7, #36] ; 0x24 - 8012fe2: 619a str r2, [r3, #24] - configASSERT( ( pxTimer->xTimerPeriodInTicks > 0 ) ); - 8012fe4: 6a7b ldr r3, [r7, #36] ; 0x24 - 8012fe6: 699b ldr r3, [r3, #24] - 8012fe8: 2b00 cmp r3, #0 - 8012fea: d10a bne.n 8013002 - __asm volatile - 8012fec: f04f 0350 mov.w r3, #80 ; 0x50 - 8012ff0: f383 8811 msr BASEPRI, r3 - 8012ff4: f3bf 8f6f isb sy - 8012ff8: f3bf 8f4f dsb sy - 8012ffc: 617b str r3, [r7, #20] -} - 8012ffe: bf00 nop - 8013000: e7fe b.n 8013000 - be longer or shorter than the old one. The command time is - therefore set to the current time, and as the period cannot - be zero the next expiry time can only be in the future, - meaning (unlike for the xTimerStart() case above) there is - no fail case that needs to be handled here. */ - ( void ) prvInsertTimerInActiveList( pxTimer, ( xTimeNow + pxTimer->xTimerPeriodInTicks ), xTimeNow, xTimeNow ); - 8013002: 6a7b ldr r3, [r7, #36] ; 0x24 - 8013004: 699a ldr r2, [r3, #24] - 8013006: 6a3b ldr r3, [r7, #32] - 8013008: 18d1 adds r1, r2, r3 - 801300a: 6a3b ldr r3, [r7, #32] - 801300c: 6a3a ldr r2, [r7, #32] - 801300e: 6a78 ldr r0, [r7, #36] ; 0x24 - 8013010: f7ff ff22 bl 8012e58 - break; - 8013014: e015 b.n 8013042 - #if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) - { - /* The timer has already been removed from the active list, - just free up the memory if the memory was dynamically - allocated. */ - if( ( pxTimer->ucStatus & tmrSTATUS_IS_STATICALLY_ALLOCATED ) == ( uint8_t ) 0 ) - 8013016: 6a7b ldr r3, [r7, #36] ; 0x24 - 8013018: f893 3024 ldrb.w r3, [r3, #36] ; 0x24 - 801301c: f003 0302 and.w r3, r3, #2 - 8013020: 2b00 cmp r3, #0 - 8013022: d103 bne.n 801302c - { - vPortFree( pxTimer ); - 8013024: 6a78 ldr r0, [r7, #36] ; 0x24 - 8013026: f000 fbdb bl 80137e0 - 801302a: e00a b.n 8013042 - } - else - { - pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE; - 801302c: 6a7b ldr r3, [r7, #36] ; 0x24 - 801302e: f893 3024 ldrb.w r3, [r3, #36] ; 0x24 - 8013032: f023 0301 bic.w r3, r3, #1 - 8013036: b2da uxtb r2, r3 - 8013038: 6a7b ldr r3, [r7, #36] ; 0x24 - 801303a: f883 2024 strb.w r2, [r3, #36] ; 0x24 - no need to free the memory - just mark the timer as - "not active". */ - pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE; - } - #endif /* configSUPPORT_DYNAMIC_ALLOCATION */ - break; - 801303e: e000 b.n 8013042 - - default : - /* Don't expect to get here. */ - break; - 8013040: bf00 nop - while( xQueueReceive( xTimerQueue, &xMessage, tmrNO_DELAY ) != pdFAIL ) /*lint !e603 xMessage does not have to be initialised as it is passed out, not in, and it is not used unless xQueueReceive() returns pdTRUE. */ - 8013042: 4b08 ldr r3, [pc, #32] ; (8013064 ) - 8013044: 681b ldr r3, [r3, #0] - 8013046: f107 0108 add.w r1, r7, #8 - 801304a: 2200 movs r2, #0 - 801304c: 4618 mov r0, r3 - 801304e: f7fe f877 bl 8011140 - 8013052: 4603 mov r3, r0 - 8013054: 2b00 cmp r3, #0 - 8013056: f47f af45 bne.w 8012ee4 - } - } - } -} - 801305a: bf00 nop - 801305c: bf00 nop - 801305e: 3728 adds r7, #40 ; 0x28 - 8013060: 46bd mov sp, r7 - 8013062: bd80 pop {r7, pc} - 8013064: 2400c07c .word 0x2400c07c - -08013068 : -/*-----------------------------------------------------------*/ - -static void prvSwitchTimerLists( void ) -{ - 8013068: b580 push {r7, lr} - 801306a: b088 sub sp, #32 - 801306c: af02 add r7, sp, #8 - - /* The tick count has overflowed. The timer lists must be switched. - If there are any timers still referenced from the current timer list - then they must have expired and should be processed before the lists - are switched. */ - while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE ) - 801306e: e048 b.n 8013102 - { - xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList ); - 8013070: 4b2d ldr r3, [pc, #180] ; (8013128 ) - 8013072: 681b ldr r3, [r3, #0] - 8013074: 68db ldr r3, [r3, #12] - 8013076: 681b ldr r3, [r3, #0] - 8013078: 613b str r3, [r7, #16] - - /* Remove the timer from the list. */ - pxTimer = ( Timer_t * ) listGET_OWNER_OF_HEAD_ENTRY( pxCurrentTimerList ); /*lint !e9087 !e9079 void * is used as this macro is used with tasks and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */ - 801307a: 4b2b ldr r3, [pc, #172] ; (8013128 ) - 801307c: 681b ldr r3, [r3, #0] - 801307e: 68db ldr r3, [r3, #12] - 8013080: 68db ldr r3, [r3, #12] - 8013082: 60fb str r3, [r7, #12] - ( void ) uxListRemove( &( pxTimer->xTimerListItem ) ); - 8013084: 68fb ldr r3, [r7, #12] - 8013086: 3304 adds r3, #4 - 8013088: 4618 mov r0, r3 - 801308a: f7fd fc82 bl 8010992 - traceTIMER_EXPIRED( pxTimer ); - - /* Execute its callback, then send a command to restart the timer if - it is an auto-reload timer. It cannot be restarted here as the lists - have not yet been switched. */ - pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer ); - 801308e: 68fb ldr r3, [r7, #12] - 8013090: 6a1b ldr r3, [r3, #32] - 8013092: 68f8 ldr r0, [r7, #12] - 8013094: 4798 blx r3 - - if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 ) - 8013096: 68fb ldr r3, [r7, #12] - 8013098: f893 3024 ldrb.w r3, [r3, #36] ; 0x24 - 801309c: f003 0304 and.w r3, r3, #4 - 80130a0: 2b00 cmp r3, #0 - 80130a2: d02e beq.n 8013102 - the timer going into the same timer list then it has already expired - and the timer should be re-inserted into the current list so it is - processed again within this loop. Otherwise a command should be sent - to restart the timer to ensure it is only inserted into a list after - the lists have been swapped. */ - xReloadTime = ( xNextExpireTime + pxTimer->xTimerPeriodInTicks ); - 80130a4: 68fb ldr r3, [r7, #12] - 80130a6: 699b ldr r3, [r3, #24] - 80130a8: 693a ldr r2, [r7, #16] - 80130aa: 4413 add r3, r2 - 80130ac: 60bb str r3, [r7, #8] - if( xReloadTime > xNextExpireTime ) - 80130ae: 68ba ldr r2, [r7, #8] - 80130b0: 693b ldr r3, [r7, #16] - 80130b2: 429a cmp r2, r3 - 80130b4: d90e bls.n 80130d4 - { - listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xReloadTime ); - 80130b6: 68fb ldr r3, [r7, #12] - 80130b8: 68ba ldr r2, [r7, #8] - 80130ba: 605a str r2, [r3, #4] - listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer ); - 80130bc: 68fb ldr r3, [r7, #12] - 80130be: 68fa ldr r2, [r7, #12] - 80130c0: 611a str r2, [r3, #16] - vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) ); - 80130c2: 4b19 ldr r3, [pc, #100] ; (8013128 ) - 80130c4: 681a ldr r2, [r3, #0] - 80130c6: 68fb ldr r3, [r7, #12] - 80130c8: 3304 adds r3, #4 - 80130ca: 4619 mov r1, r3 - 80130cc: 4610 mov r0, r2 - 80130ce: f7fd fc27 bl 8010920 - 80130d2: e016 b.n 8013102 - } - else - { - xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY ); - 80130d4: 2300 movs r3, #0 - 80130d6: 9300 str r3, [sp, #0] - 80130d8: 2300 movs r3, #0 - 80130da: 693a ldr r2, [r7, #16] - 80130dc: 2100 movs r1, #0 - 80130de: 68f8 ldr r0, [r7, #12] - 80130e0: f7ff fd7c bl 8012bdc - 80130e4: 6078 str r0, [r7, #4] - configASSERT( xResult ); - 80130e6: 687b ldr r3, [r7, #4] - 80130e8: 2b00 cmp r3, #0 - 80130ea: d10a bne.n 8013102 - __asm volatile - 80130ec: f04f 0350 mov.w r3, #80 ; 0x50 - 80130f0: f383 8811 msr BASEPRI, r3 - 80130f4: f3bf 8f6f isb sy - 80130f8: f3bf 8f4f dsb sy - 80130fc: 603b str r3, [r7, #0] -} - 80130fe: bf00 nop - 8013100: e7fe b.n 8013100 - while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE ) - 8013102: 4b09 ldr r3, [pc, #36] ; (8013128 ) - 8013104: 681b ldr r3, [r3, #0] - 8013106: 681b ldr r3, [r3, #0] - 8013108: 2b00 cmp r3, #0 - 801310a: d1b1 bne.n 8013070 - { - mtCOVERAGE_TEST_MARKER(); - } - } - - pxTemp = pxCurrentTimerList; - 801310c: 4b06 ldr r3, [pc, #24] ; (8013128 ) - 801310e: 681b ldr r3, [r3, #0] - 8013110: 617b str r3, [r7, #20] - pxCurrentTimerList = pxOverflowTimerList; - 8013112: 4b06 ldr r3, [pc, #24] ; (801312c ) - 8013114: 681b ldr r3, [r3, #0] - 8013116: 4a04 ldr r2, [pc, #16] ; (8013128 ) - 8013118: 6013 str r3, [r2, #0] - pxOverflowTimerList = pxTemp; - 801311a: 4a04 ldr r2, [pc, #16] ; (801312c ) - 801311c: 697b ldr r3, [r7, #20] - 801311e: 6013 str r3, [r2, #0] -} - 8013120: bf00 nop - 8013122: 3718 adds r7, #24 - 8013124: 46bd mov sp, r7 - 8013126: bd80 pop {r7, pc} - 8013128: 2400c074 .word 0x2400c074 - 801312c: 2400c078 .word 0x2400c078 - -08013130 : -/*-----------------------------------------------------------*/ - -static void prvCheckForValidListAndQueue( void ) -{ - 8013130: b580 push {r7, lr} - 8013132: b082 sub sp, #8 - 8013134: af02 add r7, sp, #8 - /* Check that the list from which active timers are referenced, and the - queue used to communicate with the timer service, have been - initialised. */ - taskENTER_CRITICAL(); - 8013136: f000 f965 bl 8013404 - { - if( xTimerQueue == NULL ) - 801313a: 4b15 ldr r3, [pc, #84] ; (8013190 ) - 801313c: 681b ldr r3, [r3, #0] - 801313e: 2b00 cmp r3, #0 - 8013140: d120 bne.n 8013184 - { - vListInitialise( &xActiveTimerList1 ); - 8013142: 4814 ldr r0, [pc, #80] ; (8013194 ) - 8013144: f7fd fb9b bl 801087e - vListInitialise( &xActiveTimerList2 ); - 8013148: 4813 ldr r0, [pc, #76] ; (8013198 ) - 801314a: f7fd fb98 bl 801087e - pxCurrentTimerList = &xActiveTimerList1; - 801314e: 4b13 ldr r3, [pc, #76] ; (801319c ) - 8013150: 4a10 ldr r2, [pc, #64] ; (8013194 ) - 8013152: 601a str r2, [r3, #0] - pxOverflowTimerList = &xActiveTimerList2; - 8013154: 4b12 ldr r3, [pc, #72] ; (80131a0 ) - 8013156: 4a10 ldr r2, [pc, #64] ; (8013198 ) - 8013158: 601a str r2, [r3, #0] - /* The timer queue is allocated statically in case - configSUPPORT_DYNAMIC_ALLOCATION is 0. */ - static StaticQueue_t xStaticTimerQueue; /*lint !e956 Ok to declare in this manner to prevent additional conditional compilation guards in other locations. */ - static uint8_t ucStaticTimerQueueStorage[ ( size_t ) configTIMER_QUEUE_LENGTH * sizeof( DaemonTaskMessage_t ) ]; /*lint !e956 Ok to declare in this manner to prevent additional conditional compilation guards in other locations. */ - - xTimerQueue = xQueueCreateStatic( ( UBaseType_t ) configTIMER_QUEUE_LENGTH, ( UBaseType_t ) sizeof( DaemonTaskMessage_t ), &( ucStaticTimerQueueStorage[ 0 ] ), &xStaticTimerQueue ); - 801315a: 2300 movs r3, #0 - 801315c: 9300 str r3, [sp, #0] - 801315e: 4b11 ldr r3, [pc, #68] ; (80131a4 ) - 8013160: 4a11 ldr r2, [pc, #68] ; (80131a8 ) - 8013162: 210c movs r1, #12 - 8013164: 200a movs r0, #10 - 8013166: f7fd fca7 bl 8010ab8 - 801316a: 4603 mov r3, r0 - 801316c: 4a08 ldr r2, [pc, #32] ; (8013190 ) - 801316e: 6013 str r3, [r2, #0] - } - #endif - - #if ( configQUEUE_REGISTRY_SIZE > 0 ) - { - if( xTimerQueue != NULL ) - 8013170: 4b07 ldr r3, [pc, #28] ; (8013190 ) - 8013172: 681b ldr r3, [r3, #0] - 8013174: 2b00 cmp r3, #0 - 8013176: d005 beq.n 8013184 - { - vQueueAddToRegistry( xTimerQueue, "TmrQ" ); - 8013178: 4b05 ldr r3, [pc, #20] ; (8013190 ) - 801317a: 681b ldr r3, [r3, #0] - 801317c: 490b ldr r1, [pc, #44] ; (80131ac ) - 801317e: 4618 mov r0, r3 - 8013180: f7fe fbd2 bl 8011928 - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - taskEXIT_CRITICAL(); - 8013184: f000 f96e bl 8013464 -} - 8013188: bf00 nop - 801318a: 46bd mov sp, r7 - 801318c: bd80 pop {r7, pc} - 801318e: bf00 nop - 8013190: 2400c07c .word 0x2400c07c - 8013194: 2400c04c .word 0x2400c04c - 8013198: 2400c060 .word 0x2400c060 - 801319c: 2400c074 .word 0x2400c074 - 80131a0: 2400c078 .word 0x2400c078 - 80131a4: 2400c100 .word 0x2400c100 - 80131a8: 2400c088 .word 0x2400c088 - 80131ac: 080232c4 .word 0x080232c4 - -080131b0 : - -/* - * See header file for description. - */ -StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters ) -{ - 80131b0: b480 push {r7} - 80131b2: b085 sub sp, #20 - 80131b4: af00 add r7, sp, #0 - 80131b6: 60f8 str r0, [r7, #12] - 80131b8: 60b9 str r1, [r7, #8] - 80131ba: 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--; - 80131bc: 68fb ldr r3, [r7, #12] - 80131be: 3b04 subs r3, #4 - 80131c0: 60fb str r3, [r7, #12] - - *pxTopOfStack = portINITIAL_XPSR; /* xPSR */ - 80131c2: 68fb ldr r3, [r7, #12] - 80131c4: f04f 7280 mov.w r2, #16777216 ; 0x1000000 - 80131c8: 601a str r2, [r3, #0] - pxTopOfStack--; - 80131ca: 68fb ldr r3, [r7, #12] - 80131cc: 3b04 subs r3, #4 - 80131ce: 60fb str r3, [r7, #12] - *pxTopOfStack = ( ( StackType_t ) pxCode ) & portSTART_ADDRESS_MASK; /* PC */ - 80131d0: 68bb ldr r3, [r7, #8] - 80131d2: f023 0201 bic.w r2, r3, #1 - 80131d6: 68fb ldr r3, [r7, #12] - 80131d8: 601a str r2, [r3, #0] - pxTopOfStack--; - 80131da: 68fb ldr r3, [r7, #12] - 80131dc: 3b04 subs r3, #4 - 80131de: 60fb str r3, [r7, #12] - *pxTopOfStack = ( StackType_t ) portTASK_RETURN_ADDRESS; /* LR */ - 80131e0: 4a0c ldr r2, [pc, #48] ; (8013214 ) - 80131e2: 68fb ldr r3, [r7, #12] - 80131e4: 601a str r2, [r3, #0] - - /* Save code space by skipping register initialisation. */ - pxTopOfStack -= 5; /* R12, R3, R2 and R1. */ - 80131e6: 68fb ldr r3, [r7, #12] - 80131e8: 3b14 subs r3, #20 - 80131ea: 60fb str r3, [r7, #12] - *pxTopOfStack = ( StackType_t ) pvParameters; /* R0 */ - 80131ec: 687a ldr r2, [r7, #4] - 80131ee: 68fb ldr r3, [r7, #12] - 80131f0: 601a str r2, [r3, #0] - - /* A save method is being used that requires each task to maintain its - own exec return value. */ - pxTopOfStack--; - 80131f2: 68fb ldr r3, [r7, #12] - 80131f4: 3b04 subs r3, #4 - 80131f6: 60fb str r3, [r7, #12] - *pxTopOfStack = portINITIAL_EXC_RETURN; - 80131f8: 68fb ldr r3, [r7, #12] - 80131fa: f06f 0202 mvn.w r2, #2 - 80131fe: 601a str r2, [r3, #0] - - pxTopOfStack -= 8; /* R11, R10, R9, R8, R7, R6, R5 and R4. */ - 8013200: 68fb ldr r3, [r7, #12] - 8013202: 3b20 subs r3, #32 - 8013204: 60fb str r3, [r7, #12] - - return pxTopOfStack; - 8013206: 68fb ldr r3, [r7, #12] -} - 8013208: 4618 mov r0, r3 - 801320a: 3714 adds r7, #20 - 801320c: 46bd mov sp, r7 - 801320e: f85d 7b04 ldr.w r7, [sp], #4 - 8013212: 4770 bx lr - 8013214: 08013219 .word 0x08013219 - -08013218 : -/*-----------------------------------------------------------*/ - -static void prvTaskExitError( void ) -{ - 8013218: b480 push {r7} - 801321a: b085 sub sp, #20 - 801321c: af00 add r7, sp, #0 -volatile uint32_t ulDummy = 0; - 801321e: 2300 movs r3, #0 - 8013220: 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 ); - 8013222: 4b12 ldr r3, [pc, #72] ; (801326c ) - 8013224: 681b ldr r3, [r3, #0] - 8013226: f1b3 3fff cmp.w r3, #4294967295 - 801322a: d00a beq.n 8013242 - __asm volatile - 801322c: f04f 0350 mov.w r3, #80 ; 0x50 - 8013230: f383 8811 msr BASEPRI, r3 - 8013234: f3bf 8f6f isb sy - 8013238: f3bf 8f4f dsb sy - 801323c: 60fb str r3, [r7, #12] -} - 801323e: bf00 nop - 8013240: e7fe b.n 8013240 - __asm volatile - 8013242: f04f 0350 mov.w r3, #80 ; 0x50 - 8013246: f383 8811 msr BASEPRI, r3 - 801324a: f3bf 8f6f isb sy - 801324e: f3bf 8f4f dsb sy - 8013252: 60bb str r3, [r7, #8] -} - 8013254: bf00 nop - portDISABLE_INTERRUPTS(); - while( ulDummy == 0 ) - 8013256: bf00 nop - 8013258: 687b ldr r3, [r7, #4] - 801325a: 2b00 cmp r3, #0 - 801325c: d0fc beq.n 8013258 - 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. */ - } -} - 801325e: bf00 nop - 8013260: bf00 nop - 8013262: 3714 adds r7, #20 - 8013264: 46bd mov sp, r7 - 8013266: f85d 7b04 ldr.w r7, [sp], #4 - 801326a: 4770 bx lr - 801326c: 24000038 .word 0x24000038 - -08013270 : -/*-----------------------------------------------------------*/ - -void vPortSVCHandler( void ) -{ - __asm volatile ( - 8013270: 4b07 ldr r3, [pc, #28] ; (8013290 ) - 8013272: 6819 ldr r1, [r3, #0] - 8013274: 6808 ldr r0, [r1, #0] - 8013276: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} - 801327a: f380 8809 msr PSP, r0 - 801327e: f3bf 8f6f isb sy - 8013282: f04f 0000 mov.w r0, #0 - 8013286: f380 8811 msr BASEPRI, r0 - 801328a: 4770 bx lr - 801328c: f3af 8000 nop.w - -08013290 : - 8013290: 2400bf20 .word 0x2400bf20 - " bx r14 \n" - " \n" - " .align 4 \n" - "pxCurrentTCBConst2: .word pxCurrentTCB \n" - ); -} - 8013294: bf00 nop - 8013296: bf00 nop - -08013298 : -{ - /* 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( - 8013298: 4808 ldr r0, [pc, #32] ; (80132bc ) - 801329a: 6800 ldr r0, [r0, #0] - 801329c: 6800 ldr r0, [r0, #0] - 801329e: f380 8808 msr MSP, r0 - 80132a2: f04f 0000 mov.w r0, #0 - 80132a6: f380 8814 msr CONTROL, r0 - 80132aa: b662 cpsie i - 80132ac: b661 cpsie f - 80132ae: f3bf 8f4f dsb sy - 80132b2: f3bf 8f6f isb sy - 80132b6: df00 svc 0 - 80132b8: bf00 nop - " dsb \n" - " isb \n" - " svc 0 \n" /* System call to start first task. */ - " nop \n" - ); -} - 80132ba: bf00 nop - 80132bc: e000ed08 .word 0xe000ed08 - -080132c0 : - -/* - * See header file for description. - */ -BaseType_t xPortStartScheduler( void ) -{ - 80132c0: b580 push {r7, lr} - 80132c2: b086 sub sp, #24 - 80132c4: af00 add r7, sp, #0 - configASSERT( configMAX_SYSCALL_INTERRUPT_PRIORITY ); - - /* This port can be used on all revisions of the Cortex-M7 core other than - the r0p1 parts. r0p1 parts should use the port from the - /source/portable/GCC/ARM_CM7/r0p1 directory. */ - configASSERT( portCPUID != portCORTEX_M7_r0p1_ID ); - 80132c6: 4b46 ldr r3, [pc, #280] ; (80133e0 ) - 80132c8: 681b ldr r3, [r3, #0] - 80132ca: 4a46 ldr r2, [pc, #280] ; (80133e4 ) - 80132cc: 4293 cmp r3, r2 - 80132ce: d10a bne.n 80132e6 - __asm volatile - 80132d0: f04f 0350 mov.w r3, #80 ; 0x50 - 80132d4: f383 8811 msr BASEPRI, r3 - 80132d8: f3bf 8f6f isb sy - 80132dc: f3bf 8f4f dsb sy - 80132e0: 613b str r3, [r7, #16] -} - 80132e2: bf00 nop - 80132e4: e7fe b.n 80132e4 - configASSERT( portCPUID != portCORTEX_M7_r0p0_ID ); - 80132e6: 4b3e ldr r3, [pc, #248] ; (80133e0 ) - 80132e8: 681b ldr r3, [r3, #0] - 80132ea: 4a3f ldr r2, [pc, #252] ; (80133e8 ) - 80132ec: 4293 cmp r3, r2 - 80132ee: d10a bne.n 8013306 - __asm volatile - 80132f0: f04f 0350 mov.w r3, #80 ; 0x50 - 80132f4: f383 8811 msr BASEPRI, r3 - 80132f8: f3bf 8f6f isb sy - 80132fc: f3bf 8f4f dsb sy - 8013300: 60fb str r3, [r7, #12] -} - 8013302: bf00 nop - 8013304: e7fe b.n 8013304 - - #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 ); - 8013306: 4b39 ldr r3, [pc, #228] ; (80133ec ) - 8013308: 617b str r3, [r7, #20] - 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; - 801330a: 697b ldr r3, [r7, #20] - 801330c: 781b ldrb r3, [r3, #0] - 801330e: b2db uxtb r3, r3 - 8013310: 607b str r3, [r7, #4] - - /* Determine the number of priority bits available. First write to all - possible bits. */ - *pucFirstUserPriorityRegister = portMAX_8_BIT_VALUE; - 8013312: 697b ldr r3, [r7, #20] - 8013314: 22ff movs r2, #255 ; 0xff - 8013316: 701a strb r2, [r3, #0] - - /* Read the value back to see how many bits stuck. */ - ucMaxPriorityValue = *pucFirstUserPriorityRegister; - 8013318: 697b ldr r3, [r7, #20] - 801331a: 781b ldrb r3, [r3, #0] - 801331c: b2db uxtb r3, r3 - 801331e: 70fb strb r3, [r7, #3] - - /* Use the same mask on the maximum system call priority. */ - ucMaxSysCallPriority = configMAX_SYSCALL_INTERRUPT_PRIORITY & ucMaxPriorityValue; - 8013320: 78fb ldrb r3, [r7, #3] - 8013322: b2db uxtb r3, r3 - 8013324: f003 0350 and.w r3, r3, #80 ; 0x50 - 8013328: b2da uxtb r2, r3 - 801332a: 4b31 ldr r3, [pc, #196] ; (80133f0 ) - 801332c: 701a strb r2, [r3, #0] - - /* Calculate the maximum acceptable priority group value for the number - of bits read back. */ - ulMaxPRIGROUPValue = portMAX_PRIGROUP_BITS; - 801332e: 4b31 ldr r3, [pc, #196] ; (80133f4 ) - 8013330: 2207 movs r2, #7 - 8013332: 601a str r2, [r3, #0] - while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE ) - 8013334: e009 b.n 801334a - { - ulMaxPRIGROUPValue--; - 8013336: 4b2f ldr r3, [pc, #188] ; (80133f4 ) - 8013338: 681b ldr r3, [r3, #0] - 801333a: 3b01 subs r3, #1 - 801333c: 4a2d ldr r2, [pc, #180] ; (80133f4 ) - 801333e: 6013 str r3, [r2, #0] - ucMaxPriorityValue <<= ( uint8_t ) 0x01; - 8013340: 78fb ldrb r3, [r7, #3] - 8013342: b2db uxtb r3, r3 - 8013344: 005b lsls r3, r3, #1 - 8013346: b2db uxtb r3, r3 - 8013348: 70fb strb r3, [r7, #3] - while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE ) - 801334a: 78fb ldrb r3, [r7, #3] - 801334c: b2db uxtb r3, r3 - 801334e: f003 0380 and.w r3, r3, #128 ; 0x80 - 8013352: 2b80 cmp r3, #128 ; 0x80 - 8013354: d0ef beq.n 8013336 - #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 ); - 8013356: 4b27 ldr r3, [pc, #156] ; (80133f4 ) - 8013358: 681b ldr r3, [r3, #0] - 801335a: f1c3 0307 rsb r3, r3, #7 - 801335e: 2b04 cmp r3, #4 - 8013360: d00a beq.n 8013378 - __asm volatile - 8013362: f04f 0350 mov.w r3, #80 ; 0x50 - 8013366: f383 8811 msr BASEPRI, r3 - 801336a: f3bf 8f6f isb sy - 801336e: f3bf 8f4f dsb sy - 8013372: 60bb str r3, [r7, #8] -} - 8013374: bf00 nop - 8013376: e7fe b.n 8013376 - } - #endif - - /* Shift the priority group value back to its position within the AIRCR - register. */ - ulMaxPRIGROUPValue <<= portPRIGROUP_SHIFT; - 8013378: 4b1e ldr r3, [pc, #120] ; (80133f4 ) - 801337a: 681b ldr r3, [r3, #0] - 801337c: 021b lsls r3, r3, #8 - 801337e: 4a1d ldr r2, [pc, #116] ; (80133f4 ) - 8013380: 6013 str r3, [r2, #0] - ulMaxPRIGROUPValue &= portPRIORITY_GROUP_MASK; - 8013382: 4b1c ldr r3, [pc, #112] ; (80133f4 ) - 8013384: 681b ldr r3, [r3, #0] - 8013386: f403 63e0 and.w r3, r3, #1792 ; 0x700 - 801338a: 4a1a ldr r2, [pc, #104] ; (80133f4 ) - 801338c: 6013 str r3, [r2, #0] - - /* Restore the clobbered interrupt priority register to its original - value. */ - *pucFirstUserPriorityRegister = ulOriginalPriority; - 801338e: 687b ldr r3, [r7, #4] - 8013390: b2da uxtb r2, r3 - 8013392: 697b ldr r3, [r7, #20] - 8013394: 701a strb r2, [r3, #0] - } - #endif /* conifgASSERT_DEFINED */ - - /* Make PendSV and SysTick the lowest priority interrupts. */ - portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI; - 8013396: 4b18 ldr r3, [pc, #96] ; (80133f8 ) - 8013398: 681b ldr r3, [r3, #0] - 801339a: 4a17 ldr r2, [pc, #92] ; (80133f8 ) - 801339c: f443 0370 orr.w r3, r3, #15728640 ; 0xf00000 - 80133a0: 6013 str r3, [r2, #0] - portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI; - 80133a2: 4b15 ldr r3, [pc, #84] ; (80133f8 ) - 80133a4: 681b ldr r3, [r3, #0] - 80133a6: 4a14 ldr r2, [pc, #80] ; (80133f8 ) - 80133a8: f043 4370 orr.w r3, r3, #4026531840 ; 0xf0000000 - 80133ac: 6013 str r3, [r2, #0] - - /* Start the timer that generates the tick ISR. Interrupts are disabled - here already. */ - vPortSetupTimerInterrupt(); - 80133ae: f000 f8dd bl 801356c - - /* Initialise the critical nesting count ready for the first task. */ - uxCriticalNesting = 0; - 80133b2: 4b12 ldr r3, [pc, #72] ; (80133fc ) - 80133b4: 2200 movs r2, #0 - 80133b6: 601a str r2, [r3, #0] - - /* Ensure the VFP is enabled - it should be anyway. */ - vPortEnableVFP(); - 80133b8: f000 f8fc bl 80135b4 - - /* Lazy save always. */ - *( portFPCCR ) |= portASPEN_AND_LSPEN_BITS; - 80133bc: 4b10 ldr r3, [pc, #64] ; (8013400 ) - 80133be: 681b ldr r3, [r3, #0] - 80133c0: 4a0f ldr r2, [pc, #60] ; (8013400 ) - 80133c2: f043 4340 orr.w r3, r3, #3221225472 ; 0xc0000000 - 80133c6: 6013 str r3, [r2, #0] - - /* Start the first task. */ - prvPortStartFirstTask(); - 80133c8: f7ff ff66 bl 8013298 - 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(); - 80133cc: f7fe feee bl 80121ac - prvTaskExitError(); - 80133d0: f7ff ff22 bl 8013218 - - /* Should not get here! */ - return 0; - 80133d4: 2300 movs r3, #0 -} - 80133d6: 4618 mov r0, r3 - 80133d8: 3718 adds r7, #24 - 80133da: 46bd mov sp, r7 - 80133dc: bd80 pop {r7, pc} - 80133de: bf00 nop - 80133e0: e000ed00 .word 0xe000ed00 - 80133e4: 410fc271 .word 0x410fc271 - 80133e8: 410fc270 .word 0x410fc270 - 80133ec: e000e400 .word 0xe000e400 - 80133f0: 2400c148 .word 0x2400c148 - 80133f4: 2400c14c .word 0x2400c14c - 80133f8: e000ed20 .word 0xe000ed20 - 80133fc: 24000038 .word 0x24000038 - 8013400: e000ef34 .word 0xe000ef34 - -08013404 : - configASSERT( uxCriticalNesting == 1000UL ); -} -/*-----------------------------------------------------------*/ - -void vPortEnterCritical( void ) -{ - 8013404: b480 push {r7} - 8013406: b083 sub sp, #12 - 8013408: af00 add r7, sp, #0 - __asm volatile - 801340a: f04f 0350 mov.w r3, #80 ; 0x50 - 801340e: f383 8811 msr BASEPRI, r3 - 8013412: f3bf 8f6f isb sy - 8013416: f3bf 8f4f dsb sy - 801341a: 607b str r3, [r7, #4] -} - 801341c: bf00 nop - portDISABLE_INTERRUPTS(); - uxCriticalNesting++; - 801341e: 4b0f ldr r3, [pc, #60] ; (801345c ) - 8013420: 681b ldr r3, [r3, #0] - 8013422: 3301 adds r3, #1 - 8013424: 4a0d ldr r2, [pc, #52] ; (801345c ) - 8013426: 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 ) - 8013428: 4b0c ldr r3, [pc, #48] ; (801345c ) - 801342a: 681b ldr r3, [r3, #0] - 801342c: 2b01 cmp r3, #1 - 801342e: d10f bne.n 8013450 - { - configASSERT( ( portNVIC_INT_CTRL_REG & portVECTACTIVE_MASK ) == 0 ); - 8013430: 4b0b ldr r3, [pc, #44] ; (8013460 ) - 8013432: 681b ldr r3, [r3, #0] - 8013434: b2db uxtb r3, r3 - 8013436: 2b00 cmp r3, #0 - 8013438: d00a beq.n 8013450 - __asm volatile - 801343a: f04f 0350 mov.w r3, #80 ; 0x50 - 801343e: f383 8811 msr BASEPRI, r3 - 8013442: f3bf 8f6f isb sy - 8013446: f3bf 8f4f dsb sy - 801344a: 603b str r3, [r7, #0] -} - 801344c: bf00 nop - 801344e: e7fe b.n 801344e - } -} - 8013450: bf00 nop - 8013452: 370c adds r7, #12 - 8013454: 46bd mov sp, r7 - 8013456: f85d 7b04 ldr.w r7, [sp], #4 - 801345a: 4770 bx lr - 801345c: 24000038 .word 0x24000038 - 8013460: e000ed04 .word 0xe000ed04 - -08013464 : -/*-----------------------------------------------------------*/ - -void vPortExitCritical( void ) -{ - 8013464: b480 push {r7} - 8013466: b083 sub sp, #12 - 8013468: af00 add r7, sp, #0 - configASSERT( uxCriticalNesting ); - 801346a: 4b12 ldr r3, [pc, #72] ; (80134b4 ) - 801346c: 681b ldr r3, [r3, #0] - 801346e: 2b00 cmp r3, #0 - 8013470: d10a bne.n 8013488 - __asm volatile - 8013472: f04f 0350 mov.w r3, #80 ; 0x50 - 8013476: f383 8811 msr BASEPRI, r3 - 801347a: f3bf 8f6f isb sy - 801347e: f3bf 8f4f dsb sy - 8013482: 607b str r3, [r7, #4] -} - 8013484: bf00 nop - 8013486: e7fe b.n 8013486 - uxCriticalNesting--; - 8013488: 4b0a ldr r3, [pc, #40] ; (80134b4 ) - 801348a: 681b ldr r3, [r3, #0] - 801348c: 3b01 subs r3, #1 - 801348e: 4a09 ldr r2, [pc, #36] ; (80134b4 ) - 8013490: 6013 str r3, [r2, #0] - if( uxCriticalNesting == 0 ) - 8013492: 4b08 ldr r3, [pc, #32] ; (80134b4 ) - 8013494: 681b ldr r3, [r3, #0] - 8013496: 2b00 cmp r3, #0 - 8013498: d105 bne.n 80134a6 - 801349a: 2300 movs r3, #0 - 801349c: 603b str r3, [r7, #0] - __asm volatile - 801349e: 683b ldr r3, [r7, #0] - 80134a0: f383 8811 msr BASEPRI, r3 -} - 80134a4: bf00 nop - { - portENABLE_INTERRUPTS(); - } -} - 80134a6: bf00 nop - 80134a8: 370c adds r7, #12 - 80134aa: 46bd mov sp, r7 - 80134ac: f85d 7b04 ldr.w r7, [sp], #4 - 80134b0: 4770 bx lr - 80134b2: bf00 nop - 80134b4: 24000038 .word 0x24000038 - ... - -080134c0 : - -void xPortPendSVHandler( void ) -{ - /* This is a naked function. */ - - __asm volatile - 80134c0: f3ef 8009 mrs r0, PSP - 80134c4: f3bf 8f6f isb sy - 80134c8: 4b15 ldr r3, [pc, #84] ; (8013520 ) - 80134ca: 681a ldr r2, [r3, #0] - 80134cc: f01e 0f10 tst.w lr, #16 - 80134d0: bf08 it eq - 80134d2: ed20 8a10 vstmdbeq r0!, {s16-s31} - 80134d6: e920 4ff0 stmdb r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} - 80134da: 6010 str r0, [r2, #0] - 80134dc: e92d 0009 stmdb sp!, {r0, r3} - 80134e0: f04f 0050 mov.w r0, #80 ; 0x50 - 80134e4: f380 8811 msr BASEPRI, r0 - 80134e8: f3bf 8f4f dsb sy - 80134ec: f3bf 8f6f isb sy - 80134f0: f7fe fe5c bl 80121ac - 80134f4: f04f 0000 mov.w r0, #0 - 80134f8: f380 8811 msr BASEPRI, r0 - 80134fc: bc09 pop {r0, r3} - 80134fe: 6819 ldr r1, [r3, #0] - 8013500: 6808 ldr r0, [r1, #0] - 8013502: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} - 8013506: f01e 0f10 tst.w lr, #16 - 801350a: bf08 it eq - 801350c: ecb0 8a10 vldmiaeq r0!, {s16-s31} - 8013510: f380 8809 msr PSP, r0 - 8013514: f3bf 8f6f isb sy - 8013518: 4770 bx lr - 801351a: bf00 nop - 801351c: f3af 8000 nop.w - -08013520 : - 8013520: 2400bf20 .word 0x2400bf20 - " \n" - " .align 4 \n" - "pxCurrentTCBConst: .word pxCurrentTCB \n" - ::"i"(configMAX_SYSCALL_INTERRUPT_PRIORITY) - ); -} - 8013524: bf00 nop - 8013526: bf00 nop - -08013528 : -/*-----------------------------------------------------------*/ - -void xPortSysTickHandler( void ) -{ - 8013528: b580 push {r7, lr} - 801352a: b082 sub sp, #8 - 801352c: af00 add r7, sp, #0 - __asm volatile - 801352e: f04f 0350 mov.w r3, #80 ; 0x50 - 8013532: f383 8811 msr BASEPRI, r3 - 8013536: f3bf 8f6f isb sy - 801353a: f3bf 8f4f dsb sy - 801353e: 607b str r3, [r7, #4] -} - 8013540: bf00 nop - save and then restore the interrupt mask value as its value is already - known. */ - portDISABLE_INTERRUPTS(); - { - /* Increment the RTOS tick. */ - if( xTaskIncrementTick() != pdFALSE ) - 8013542: f7fe fd7b bl 801203c - 8013546: 4603 mov r3, r0 - 8013548: 2b00 cmp r3, #0 - 801354a: d003 beq.n 8013554 - { - /* A context switch is required. Context switching is performed in - the PendSV interrupt. Pend the PendSV interrupt. */ - portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT; - 801354c: 4b06 ldr r3, [pc, #24] ; (8013568 ) - 801354e: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 8013552: 601a str r2, [r3, #0] - 8013554: 2300 movs r3, #0 - 8013556: 603b str r3, [r7, #0] - __asm volatile - 8013558: 683b ldr r3, [r7, #0] - 801355a: f383 8811 msr BASEPRI, r3 -} - 801355e: bf00 nop - } - } - portENABLE_INTERRUPTS(); -} - 8013560: bf00 nop - 8013562: 3708 adds r7, #8 - 8013564: 46bd mov sp, r7 - 8013566: bd80 pop {r7, pc} - 8013568: e000ed04 .word 0xe000ed04 - -0801356c : -/* - * Setup the systick timer to generate the tick interrupts at the required - * frequency. - */ -__attribute__(( weak )) void vPortSetupTimerInterrupt( void ) -{ - 801356c: b480 push {r7} - 801356e: 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; - 8013570: 4b0b ldr r3, [pc, #44] ; (80135a0 ) - 8013572: 2200 movs r2, #0 - 8013574: 601a str r2, [r3, #0] - portNVIC_SYSTICK_CURRENT_VALUE_REG = 0UL; - 8013576: 4b0b ldr r3, [pc, #44] ; (80135a4 ) - 8013578: 2200 movs r2, #0 - 801357a: 601a str r2, [r3, #0] - - /* Configure SysTick to interrupt at the requested rate. */ - portNVIC_SYSTICK_LOAD_REG = ( configSYSTICK_CLOCK_HZ / configTICK_RATE_HZ ) - 1UL; - 801357c: 4b0a ldr r3, [pc, #40] ; (80135a8 ) - 801357e: 681b ldr r3, [r3, #0] - 8013580: 4a0a ldr r2, [pc, #40] ; (80135ac ) - 8013582: fba2 2303 umull r2, r3, r2, r3 - 8013586: 099b lsrs r3, r3, #6 - 8013588: 4a09 ldr r2, [pc, #36] ; (80135b0 ) - 801358a: 3b01 subs r3, #1 - 801358c: 6013 str r3, [r2, #0] - portNVIC_SYSTICK_CTRL_REG = ( portNVIC_SYSTICK_CLK_BIT | portNVIC_SYSTICK_INT_BIT | portNVIC_SYSTICK_ENABLE_BIT ); - 801358e: 4b04 ldr r3, [pc, #16] ; (80135a0 ) - 8013590: 2207 movs r2, #7 - 8013592: 601a str r2, [r3, #0] -} - 8013594: bf00 nop - 8013596: 46bd mov sp, r7 - 8013598: f85d 7b04 ldr.w r7, [sp], #4 - 801359c: 4770 bx lr - 801359e: bf00 nop - 80135a0: e000e010 .word 0xe000e010 - 80135a4: e000e018 .word 0xe000e018 - 80135a8: 24000014 .word 0x24000014 - 80135ac: 10624dd3 .word 0x10624dd3 - 80135b0: e000e014 .word 0xe000e014 - -080135b4 : -/*-----------------------------------------------------------*/ - -/* This is a naked function. */ -static void vPortEnableVFP( void ) -{ - __asm volatile - 80135b4: f8df 000c ldr.w r0, [pc, #12] ; 80135c4 - 80135b8: 6801 ldr r1, [r0, #0] - 80135ba: f441 0170 orr.w r1, r1, #15728640 ; 0xf00000 - 80135be: 6001 str r1, [r0, #0] - 80135c0: 4770 bx lr - " \n" - " orr r1, r1, #( 0xf << 20 ) \n" /* Enable CP10 and CP11 coprocessors, then save back. */ - " str r1, [r0] \n" - " bx r14 " - ); -} - 80135c2: bf00 nop - 80135c4: e000ed88 .word 0xe000ed88 - -080135c8 : -/*-----------------------------------------------------------*/ - -#if( configASSERT_DEFINED == 1 ) - - void vPortValidateInterruptPriority( void ) - { - 80135c8: b480 push {r7} - 80135ca: b085 sub sp, #20 - 80135cc: 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" ); - 80135ce: f3ef 8305 mrs r3, IPSR - 80135d2: 60fb str r3, [r7, #12] - - /* Is the interrupt number a user defined interrupt? */ - if( ulCurrentInterrupt >= portFIRST_USER_INTERRUPT_NUMBER ) - 80135d4: 68fb ldr r3, [r7, #12] - 80135d6: 2b0f cmp r3, #15 - 80135d8: d914 bls.n 8013604 - { - /* Look up the interrupt's priority. */ - ucCurrentPriority = pcInterruptPriorityRegisters[ ulCurrentInterrupt ]; - 80135da: 4a17 ldr r2, [pc, #92] ; (8013638 ) - 80135dc: 68fb ldr r3, [r7, #12] - 80135de: 4413 add r3, r2 - 80135e0: 781b ldrb r3, [r3, #0] - 80135e2: 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 ); - 80135e4: 4b15 ldr r3, [pc, #84] ; (801363c ) - 80135e6: 781b ldrb r3, [r3, #0] - 80135e8: 7afa ldrb r2, [r7, #11] - 80135ea: 429a cmp r2, r3 - 80135ec: d20a bcs.n 8013604 - __asm volatile - 80135ee: f04f 0350 mov.w r3, #80 ; 0x50 - 80135f2: f383 8811 msr BASEPRI, r3 - 80135f6: f3bf 8f6f isb sy - 80135fa: f3bf 8f4f dsb sy - 80135fe: 607b str r3, [r7, #4] -} - 8013600: bf00 nop - 8013602: e7fe b.n 8013602 - 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 ); - 8013604: 4b0e ldr r3, [pc, #56] ; (8013640 ) - 8013606: 681b ldr r3, [r3, #0] - 8013608: f403 62e0 and.w r2, r3, #1792 ; 0x700 - 801360c: 4b0d ldr r3, [pc, #52] ; (8013644 ) - 801360e: 681b ldr r3, [r3, #0] - 8013610: 429a cmp r2, r3 - 8013612: d90a bls.n 801362a - __asm volatile - 8013614: f04f 0350 mov.w r3, #80 ; 0x50 - 8013618: f383 8811 msr BASEPRI, r3 - 801361c: f3bf 8f6f isb sy - 8013620: f3bf 8f4f dsb sy - 8013624: 603b str r3, [r7, #0] -} - 8013626: bf00 nop - 8013628: e7fe b.n 8013628 - } - 801362a: bf00 nop - 801362c: 3714 adds r7, #20 - 801362e: 46bd mov sp, r7 - 8013630: f85d 7b04 ldr.w r7, [sp], #4 - 8013634: 4770 bx lr - 8013636: bf00 nop - 8013638: e000e3f0 .word 0xe000e3f0 - 801363c: 2400c148 .word 0x2400c148 - 8013640: e000ed0c .word 0xe000ed0c - 8013644: 2400c14c .word 0x2400c14c - -08013648 : -static size_t xBlockAllocatedBit = 0; - -/*-----------------------------------------------------------*/ - -void *pvPortMalloc( size_t xWantedSize ) -{ - 8013648: b580 push {r7, lr} - 801364a: b08a sub sp, #40 ; 0x28 - 801364c: af00 add r7, sp, #0 - 801364e: 6078 str r0, [r7, #4] -BlockLink_t *pxBlock, *pxPreviousBlock, *pxNewBlockLink; -void *pvReturn = NULL; - 8013650: 2300 movs r3, #0 - 8013652: 61fb str r3, [r7, #28] - - vTaskSuspendAll(); - 8013654: f7fe fc26 bl 8011ea4 - { - /* If this is the first call to malloc then the heap will require - initialisation to setup the list of free blocks. */ - if( pxEnd == NULL ) - 8013658: 4b5b ldr r3, [pc, #364] ; (80137c8 ) - 801365a: 681b ldr r3, [r3, #0] - 801365c: 2b00 cmp r3, #0 - 801365e: d101 bne.n 8013664 - { - prvHeapInit(); - 8013660: f000 f920 bl 80138a4 - - /* 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 ) - 8013664: 4b59 ldr r3, [pc, #356] ; (80137cc ) - 8013666: 681a ldr r2, [r3, #0] - 8013668: 687b ldr r3, [r7, #4] - 801366a: 4013 ands r3, r2 - 801366c: 2b00 cmp r3, #0 - 801366e: f040 8093 bne.w 8013798 - { - /* The wanted size is increased so it can contain a BlockLink_t - structure in addition to the requested amount of bytes. */ - if( xWantedSize > 0 ) - 8013672: 687b ldr r3, [r7, #4] - 8013674: 2b00 cmp r3, #0 - 8013676: d01d beq.n 80136b4 - { - xWantedSize += xHeapStructSize; - 8013678: 2208 movs r2, #8 - 801367a: 687b ldr r3, [r7, #4] - 801367c: 4413 add r3, r2 - 801367e: 607b str r3, [r7, #4] - - /* Ensure that blocks are always aligned to the required number - of bytes. */ - if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 ) - 8013680: 687b ldr r3, [r7, #4] - 8013682: f003 0307 and.w r3, r3, #7 - 8013686: 2b00 cmp r3, #0 - 8013688: d014 beq.n 80136b4 - { - /* Byte alignment required. */ - xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) ); - 801368a: 687b ldr r3, [r7, #4] - 801368c: f023 0307 bic.w r3, r3, #7 - 8013690: 3308 adds r3, #8 - 8013692: 607b str r3, [r7, #4] - configASSERT( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) == 0 ); - 8013694: 687b ldr r3, [r7, #4] - 8013696: f003 0307 and.w r3, r3, #7 - 801369a: 2b00 cmp r3, #0 - 801369c: d00a beq.n 80136b4 - __asm volatile - 801369e: f04f 0350 mov.w r3, #80 ; 0x50 - 80136a2: f383 8811 msr BASEPRI, r3 - 80136a6: f3bf 8f6f isb sy - 80136aa: f3bf 8f4f dsb sy - 80136ae: 617b str r3, [r7, #20] -} - 80136b0: bf00 nop - 80136b2: e7fe b.n 80136b2 - else - { - mtCOVERAGE_TEST_MARKER(); - } - - if( ( xWantedSize > 0 ) && ( xWantedSize <= xFreeBytesRemaining ) ) - 80136b4: 687b ldr r3, [r7, #4] - 80136b6: 2b00 cmp r3, #0 - 80136b8: d06e beq.n 8013798 - 80136ba: 4b45 ldr r3, [pc, #276] ; (80137d0 ) - 80136bc: 681b ldr r3, [r3, #0] - 80136be: 687a ldr r2, [r7, #4] - 80136c0: 429a cmp r2, r3 - 80136c2: d869 bhi.n 8013798 - { - /* Traverse the list from the start (lowest address) block until - one of adequate size is found. */ - pxPreviousBlock = &xStart; - 80136c4: 4b43 ldr r3, [pc, #268] ; (80137d4 ) - 80136c6: 623b str r3, [r7, #32] - pxBlock = xStart.pxNextFreeBlock; - 80136c8: 4b42 ldr r3, [pc, #264] ; (80137d4 ) - 80136ca: 681b ldr r3, [r3, #0] - 80136cc: 627b str r3, [r7, #36] ; 0x24 - while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) ) - 80136ce: e004 b.n 80136da - { - pxPreviousBlock = pxBlock; - 80136d0: 6a7b ldr r3, [r7, #36] ; 0x24 - 80136d2: 623b str r3, [r7, #32] - pxBlock = pxBlock->pxNextFreeBlock; - 80136d4: 6a7b ldr r3, [r7, #36] ; 0x24 - 80136d6: 681b ldr r3, [r3, #0] - 80136d8: 627b str r3, [r7, #36] ; 0x24 - while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) ) - 80136da: 6a7b ldr r3, [r7, #36] ; 0x24 - 80136dc: 685b ldr r3, [r3, #4] - 80136de: 687a ldr r2, [r7, #4] - 80136e0: 429a cmp r2, r3 - 80136e2: d903 bls.n 80136ec - 80136e4: 6a7b ldr r3, [r7, #36] ; 0x24 - 80136e6: 681b ldr r3, [r3, #0] - 80136e8: 2b00 cmp r3, #0 - 80136ea: d1f1 bne.n 80136d0 - } - - /* If the end marker was reached then a block of adequate size - was not found. */ - if( pxBlock != pxEnd ) - 80136ec: 4b36 ldr r3, [pc, #216] ; (80137c8 ) - 80136ee: 681b ldr r3, [r3, #0] - 80136f0: 6a7a ldr r2, [r7, #36] ; 0x24 - 80136f2: 429a cmp r2, r3 - 80136f4: d050 beq.n 8013798 - { - /* Return the memory space pointed to - jumping over the - BlockLink_t structure at its start. */ - pvReturn = ( void * ) ( ( ( uint8_t * ) pxPreviousBlock->pxNextFreeBlock ) + xHeapStructSize ); - 80136f6: 6a3b ldr r3, [r7, #32] - 80136f8: 681b ldr r3, [r3, #0] - 80136fa: 2208 movs r2, #8 - 80136fc: 4413 add r3, r2 - 80136fe: 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; - 8013700: 6a7b ldr r3, [r7, #36] ; 0x24 - 8013702: 681a ldr r2, [r3, #0] - 8013704: 6a3b ldr r3, [r7, #32] - 8013706: 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 ) - 8013708: 6a7b ldr r3, [r7, #36] ; 0x24 - 801370a: 685a ldr r2, [r3, #4] - 801370c: 687b ldr r3, [r7, #4] - 801370e: 1ad2 subs r2, r2, r3 - 8013710: 2308 movs r3, #8 - 8013712: 005b lsls r3, r3, #1 - 8013714: 429a cmp r2, r3 - 8013716: d91f bls.n 8013758 - { - /* 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 ); - 8013718: 6a7a ldr r2, [r7, #36] ; 0x24 - 801371a: 687b ldr r3, [r7, #4] - 801371c: 4413 add r3, r2 - 801371e: 61bb str r3, [r7, #24] - configASSERT( ( ( ( size_t ) pxNewBlockLink ) & portBYTE_ALIGNMENT_MASK ) == 0 ); - 8013720: 69bb ldr r3, [r7, #24] - 8013722: f003 0307 and.w r3, r3, #7 - 8013726: 2b00 cmp r3, #0 - 8013728: d00a beq.n 8013740 - __asm volatile - 801372a: f04f 0350 mov.w r3, #80 ; 0x50 - 801372e: f383 8811 msr BASEPRI, r3 - 8013732: f3bf 8f6f isb sy - 8013736: f3bf 8f4f dsb sy - 801373a: 613b str r3, [r7, #16] -} - 801373c: bf00 nop - 801373e: e7fe b.n 801373e - - /* Calculate the sizes of two blocks split from the - single block. */ - pxNewBlockLink->xBlockSize = pxBlock->xBlockSize - xWantedSize; - 8013740: 6a7b ldr r3, [r7, #36] ; 0x24 - 8013742: 685a ldr r2, [r3, #4] - 8013744: 687b ldr r3, [r7, #4] - 8013746: 1ad2 subs r2, r2, r3 - 8013748: 69bb ldr r3, [r7, #24] - 801374a: 605a str r2, [r3, #4] - pxBlock->xBlockSize = xWantedSize; - 801374c: 6a7b ldr r3, [r7, #36] ; 0x24 - 801374e: 687a ldr r2, [r7, #4] - 8013750: 605a str r2, [r3, #4] - - /* Insert the new block into the list of free blocks. */ - prvInsertBlockIntoFreeList( pxNewBlockLink ); - 8013752: 69b8 ldr r0, [r7, #24] - 8013754: f000 f908 bl 8013968 - else - { - mtCOVERAGE_TEST_MARKER(); - } - - xFreeBytesRemaining -= pxBlock->xBlockSize; - 8013758: 4b1d ldr r3, [pc, #116] ; (80137d0 ) - 801375a: 681a ldr r2, [r3, #0] - 801375c: 6a7b ldr r3, [r7, #36] ; 0x24 - 801375e: 685b ldr r3, [r3, #4] - 8013760: 1ad3 subs r3, r2, r3 - 8013762: 4a1b ldr r2, [pc, #108] ; (80137d0 ) - 8013764: 6013 str r3, [r2, #0] - - if( xFreeBytesRemaining < xMinimumEverFreeBytesRemaining ) - 8013766: 4b1a ldr r3, [pc, #104] ; (80137d0 ) - 8013768: 681a ldr r2, [r3, #0] - 801376a: 4b1b ldr r3, [pc, #108] ; (80137d8 ) - 801376c: 681b ldr r3, [r3, #0] - 801376e: 429a cmp r2, r3 - 8013770: d203 bcs.n 801377a - { - xMinimumEverFreeBytesRemaining = xFreeBytesRemaining; - 8013772: 4b17 ldr r3, [pc, #92] ; (80137d0 ) - 8013774: 681b ldr r3, [r3, #0] - 8013776: 4a18 ldr r2, [pc, #96] ; (80137d8 ) - 8013778: 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; - 801377a: 6a7b ldr r3, [r7, #36] ; 0x24 - 801377c: 685a ldr r2, [r3, #4] - 801377e: 4b13 ldr r3, [pc, #76] ; (80137cc ) - 8013780: 681b ldr r3, [r3, #0] - 8013782: 431a orrs r2, r3 - 8013784: 6a7b ldr r3, [r7, #36] ; 0x24 - 8013786: 605a str r2, [r3, #4] - pxBlock->pxNextFreeBlock = NULL; - 8013788: 6a7b ldr r3, [r7, #36] ; 0x24 - 801378a: 2200 movs r2, #0 - 801378c: 601a str r2, [r3, #0] - xNumberOfSuccessfulAllocations++; - 801378e: 4b13 ldr r3, [pc, #76] ; (80137dc ) - 8013790: 681b ldr r3, [r3, #0] - 8013792: 3301 adds r3, #1 - 8013794: 4a11 ldr r2, [pc, #68] ; (80137dc ) - 8013796: 6013 str r3, [r2, #0] - mtCOVERAGE_TEST_MARKER(); - } - - traceMALLOC( pvReturn, xWantedSize ); - } - ( void ) xTaskResumeAll(); - 8013798: f7fe fb92 bl 8011ec0 - mtCOVERAGE_TEST_MARKER(); - } - } - #endif - - configASSERT( ( ( ( size_t ) pvReturn ) & ( size_t ) portBYTE_ALIGNMENT_MASK ) == 0 ); - 801379c: 69fb ldr r3, [r7, #28] - 801379e: f003 0307 and.w r3, r3, #7 - 80137a2: 2b00 cmp r3, #0 - 80137a4: d00a beq.n 80137bc - __asm volatile - 80137a6: f04f 0350 mov.w r3, #80 ; 0x50 - 80137aa: f383 8811 msr BASEPRI, r3 - 80137ae: f3bf 8f6f isb sy - 80137b2: f3bf 8f4f dsb sy - 80137b6: 60fb str r3, [r7, #12] -} - 80137b8: bf00 nop - 80137ba: e7fe b.n 80137ba - return pvReturn; - 80137bc: 69fb ldr r3, [r7, #28] -} - 80137be: 4618 mov r0, r3 - 80137c0: 3728 adds r7, #40 ; 0x28 - 80137c2: 46bd mov sp, r7 - 80137c4: bd80 pop {r7, pc} - 80137c6: bf00 nop - 80137c8: 24013958 .word 0x24013958 - 80137cc: 2401396c .word 0x2401396c - 80137d0: 2401395c .word 0x2401395c - 80137d4: 24013950 .word 0x24013950 - 80137d8: 24013960 .word 0x24013960 - 80137dc: 24013964 .word 0x24013964 - -080137e0 : -/*-----------------------------------------------------------*/ - -void vPortFree( void *pv ) -{ - 80137e0: b580 push {r7, lr} - 80137e2: b086 sub sp, #24 - 80137e4: af00 add r7, sp, #0 - 80137e6: 6078 str r0, [r7, #4] -uint8_t *puc = ( uint8_t * ) pv; - 80137e8: 687b ldr r3, [r7, #4] - 80137ea: 617b str r3, [r7, #20] -BlockLink_t *pxLink; - - if( pv != NULL ) - 80137ec: 687b ldr r3, [r7, #4] - 80137ee: 2b00 cmp r3, #0 - 80137f0: d04d beq.n 801388e - { - /* The memory being freed will have an BlockLink_t structure immediately - before it. */ - puc -= xHeapStructSize; - 80137f2: 2308 movs r3, #8 - 80137f4: 425b negs r3, r3 - 80137f6: 697a ldr r2, [r7, #20] - 80137f8: 4413 add r3, r2 - 80137fa: 617b str r3, [r7, #20] - - /* This casting is to keep the compiler from issuing warnings. */ - pxLink = ( void * ) puc; - 80137fc: 697b ldr r3, [r7, #20] - 80137fe: 613b str r3, [r7, #16] - - /* Check the block is actually allocated. */ - configASSERT( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 ); - 8013800: 693b ldr r3, [r7, #16] - 8013802: 685a ldr r2, [r3, #4] - 8013804: 4b24 ldr r3, [pc, #144] ; (8013898 ) - 8013806: 681b ldr r3, [r3, #0] - 8013808: 4013 ands r3, r2 - 801380a: 2b00 cmp r3, #0 - 801380c: d10a bne.n 8013824 - __asm volatile - 801380e: f04f 0350 mov.w r3, #80 ; 0x50 - 8013812: f383 8811 msr BASEPRI, r3 - 8013816: f3bf 8f6f isb sy - 801381a: f3bf 8f4f dsb sy - 801381e: 60fb str r3, [r7, #12] -} - 8013820: bf00 nop - 8013822: e7fe b.n 8013822 - configASSERT( pxLink->pxNextFreeBlock == NULL ); - 8013824: 693b ldr r3, [r7, #16] - 8013826: 681b ldr r3, [r3, #0] - 8013828: 2b00 cmp r3, #0 - 801382a: d00a beq.n 8013842 - __asm volatile - 801382c: f04f 0350 mov.w r3, #80 ; 0x50 - 8013830: f383 8811 msr BASEPRI, r3 - 8013834: f3bf 8f6f isb sy - 8013838: f3bf 8f4f dsb sy - 801383c: 60bb str r3, [r7, #8] -} - 801383e: bf00 nop - 8013840: e7fe b.n 8013840 - - if( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 ) - 8013842: 693b ldr r3, [r7, #16] - 8013844: 685a ldr r2, [r3, #4] - 8013846: 4b14 ldr r3, [pc, #80] ; (8013898 ) - 8013848: 681b ldr r3, [r3, #0] - 801384a: 4013 ands r3, r2 - 801384c: 2b00 cmp r3, #0 - 801384e: d01e beq.n 801388e - { - if( pxLink->pxNextFreeBlock == NULL ) - 8013850: 693b ldr r3, [r7, #16] - 8013852: 681b ldr r3, [r3, #0] - 8013854: 2b00 cmp r3, #0 - 8013856: d11a bne.n 801388e - { - /* The block is being returned to the heap - it is no longer - allocated. */ - pxLink->xBlockSize &= ~xBlockAllocatedBit; - 8013858: 693b ldr r3, [r7, #16] - 801385a: 685a ldr r2, [r3, #4] - 801385c: 4b0e ldr r3, [pc, #56] ; (8013898 ) - 801385e: 681b ldr r3, [r3, #0] - 8013860: 43db mvns r3, r3 - 8013862: 401a ands r2, r3 - 8013864: 693b ldr r3, [r7, #16] - 8013866: 605a str r2, [r3, #4] - - vTaskSuspendAll(); - 8013868: f7fe fb1c bl 8011ea4 - { - /* Add this block to the list of free blocks. */ - xFreeBytesRemaining += pxLink->xBlockSize; - 801386c: 693b ldr r3, [r7, #16] - 801386e: 685a ldr r2, [r3, #4] - 8013870: 4b0a ldr r3, [pc, #40] ; (801389c ) - 8013872: 681b ldr r3, [r3, #0] - 8013874: 4413 add r3, r2 - 8013876: 4a09 ldr r2, [pc, #36] ; (801389c ) - 8013878: 6013 str r3, [r2, #0] - traceFREE( pv, pxLink->xBlockSize ); - prvInsertBlockIntoFreeList( ( ( BlockLink_t * ) pxLink ) ); - 801387a: 6938 ldr r0, [r7, #16] - 801387c: f000 f874 bl 8013968 - xNumberOfSuccessfulFrees++; - 8013880: 4b07 ldr r3, [pc, #28] ; (80138a0 ) - 8013882: 681b ldr r3, [r3, #0] - 8013884: 3301 adds r3, #1 - 8013886: 4a06 ldr r2, [pc, #24] ; (80138a0 ) - 8013888: 6013 str r3, [r2, #0] - } - ( void ) xTaskResumeAll(); - 801388a: f7fe fb19 bl 8011ec0 - else - { - mtCOVERAGE_TEST_MARKER(); - } - } -} - 801388e: bf00 nop - 8013890: 3718 adds r7, #24 - 8013892: 46bd mov sp, r7 - 8013894: bd80 pop {r7, pc} - 8013896: bf00 nop - 8013898: 2401396c .word 0x2401396c - 801389c: 2401395c .word 0x2401395c - 80138a0: 24013968 .word 0x24013968 - -080138a4 : - /* This just exists to keep the linker quiet. */ -} -/*-----------------------------------------------------------*/ - -static void prvHeapInit( void ) -{ - 80138a4: b480 push {r7} - 80138a6: b085 sub sp, #20 - 80138a8: af00 add r7, sp, #0 -BlockLink_t *pxFirstFreeBlock; -uint8_t *pucAlignedHeap; -size_t uxAddress; -size_t xTotalHeapSize = configTOTAL_HEAP_SIZE; - 80138aa: f44f 43f0 mov.w r3, #30720 ; 0x7800 - 80138ae: 60bb str r3, [r7, #8] - - /* Ensure the heap starts on a correctly aligned boundary. */ - uxAddress = ( size_t ) ucHeap; - 80138b0: 4b27 ldr r3, [pc, #156] ; (8013950 ) - 80138b2: 60fb str r3, [r7, #12] - - if( ( uxAddress & portBYTE_ALIGNMENT_MASK ) != 0 ) - 80138b4: 68fb ldr r3, [r7, #12] - 80138b6: f003 0307 and.w r3, r3, #7 - 80138ba: 2b00 cmp r3, #0 - 80138bc: d00c beq.n 80138d8 - { - uxAddress += ( portBYTE_ALIGNMENT - 1 ); - 80138be: 68fb ldr r3, [r7, #12] - 80138c0: 3307 adds r3, #7 - 80138c2: 60fb str r3, [r7, #12] - uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK ); - 80138c4: 68fb ldr r3, [r7, #12] - 80138c6: f023 0307 bic.w r3, r3, #7 - 80138ca: 60fb str r3, [r7, #12] - xTotalHeapSize -= uxAddress - ( size_t ) ucHeap; - 80138cc: 68ba ldr r2, [r7, #8] - 80138ce: 68fb ldr r3, [r7, #12] - 80138d0: 1ad3 subs r3, r2, r3 - 80138d2: 4a1f ldr r2, [pc, #124] ; (8013950 ) - 80138d4: 4413 add r3, r2 - 80138d6: 60bb str r3, [r7, #8] - } - - pucAlignedHeap = ( uint8_t * ) uxAddress; - 80138d8: 68fb ldr r3, [r7, #12] - 80138da: 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; - 80138dc: 4a1d ldr r2, [pc, #116] ; (8013954 ) - 80138de: 687b ldr r3, [r7, #4] - 80138e0: 6013 str r3, [r2, #0] - xStart.xBlockSize = ( size_t ) 0; - 80138e2: 4b1c ldr r3, [pc, #112] ; (8013954 ) - 80138e4: 2200 movs r2, #0 - 80138e6: 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; - 80138e8: 687b ldr r3, [r7, #4] - 80138ea: 68ba ldr r2, [r7, #8] - 80138ec: 4413 add r3, r2 - 80138ee: 60fb str r3, [r7, #12] - uxAddress -= xHeapStructSize; - 80138f0: 2208 movs r2, #8 - 80138f2: 68fb ldr r3, [r7, #12] - 80138f4: 1a9b subs r3, r3, r2 - 80138f6: 60fb str r3, [r7, #12] - uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK ); - 80138f8: 68fb ldr r3, [r7, #12] - 80138fa: f023 0307 bic.w r3, r3, #7 - 80138fe: 60fb str r3, [r7, #12] - pxEnd = ( void * ) uxAddress; - 8013900: 68fb ldr r3, [r7, #12] - 8013902: 4a15 ldr r2, [pc, #84] ; (8013958 ) - 8013904: 6013 str r3, [r2, #0] - pxEnd->xBlockSize = 0; - 8013906: 4b14 ldr r3, [pc, #80] ; (8013958 ) - 8013908: 681b ldr r3, [r3, #0] - 801390a: 2200 movs r2, #0 - 801390c: 605a str r2, [r3, #4] - pxEnd->pxNextFreeBlock = NULL; - 801390e: 4b12 ldr r3, [pc, #72] ; (8013958 ) - 8013910: 681b ldr r3, [r3, #0] - 8013912: 2200 movs r2, #0 - 8013914: 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; - 8013916: 687b ldr r3, [r7, #4] - 8013918: 603b str r3, [r7, #0] - pxFirstFreeBlock->xBlockSize = uxAddress - ( size_t ) pxFirstFreeBlock; - 801391a: 683b ldr r3, [r7, #0] - 801391c: 68fa ldr r2, [r7, #12] - 801391e: 1ad2 subs r2, r2, r3 - 8013920: 683b ldr r3, [r7, #0] - 8013922: 605a str r2, [r3, #4] - pxFirstFreeBlock->pxNextFreeBlock = pxEnd; - 8013924: 4b0c ldr r3, [pc, #48] ; (8013958 ) - 8013926: 681a ldr r2, [r3, #0] - 8013928: 683b ldr r3, [r7, #0] - 801392a: 601a str r2, [r3, #0] - - /* Only one block exists - and it covers the entire usable heap space. */ - xMinimumEverFreeBytesRemaining = pxFirstFreeBlock->xBlockSize; - 801392c: 683b ldr r3, [r7, #0] - 801392e: 685b ldr r3, [r3, #4] - 8013930: 4a0a ldr r2, [pc, #40] ; (801395c ) - 8013932: 6013 str r3, [r2, #0] - xFreeBytesRemaining = pxFirstFreeBlock->xBlockSize; - 8013934: 683b ldr r3, [r7, #0] - 8013936: 685b ldr r3, [r3, #4] - 8013938: 4a09 ldr r2, [pc, #36] ; (8013960 ) - 801393a: 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 ); - 801393c: 4b09 ldr r3, [pc, #36] ; (8013964 ) - 801393e: f04f 4200 mov.w r2, #2147483648 ; 0x80000000 - 8013942: 601a str r2, [r3, #0] -} - 8013944: bf00 nop - 8013946: 3714 adds r7, #20 - 8013948: 46bd mov sp, r7 - 801394a: f85d 7b04 ldr.w r7, [sp], #4 - 801394e: 4770 bx lr - 8013950: 2400c150 .word 0x2400c150 - 8013954: 24013950 .word 0x24013950 - 8013958: 24013958 .word 0x24013958 - 801395c: 24013960 .word 0x24013960 - 8013960: 2401395c .word 0x2401395c - 8013964: 2401396c .word 0x2401396c - -08013968 : -/*-----------------------------------------------------------*/ - -static void prvInsertBlockIntoFreeList( BlockLink_t *pxBlockToInsert ) -{ - 8013968: b480 push {r7} - 801396a: b085 sub sp, #20 - 801396c: af00 add r7, sp, #0 - 801396e: 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 ) - 8013970: 4b28 ldr r3, [pc, #160] ; (8013a14 ) - 8013972: 60fb str r3, [r7, #12] - 8013974: e002 b.n 801397c - 8013976: 68fb ldr r3, [r7, #12] - 8013978: 681b ldr r3, [r3, #0] - 801397a: 60fb str r3, [r7, #12] - 801397c: 68fb ldr r3, [r7, #12] - 801397e: 681b ldr r3, [r3, #0] - 8013980: 687a ldr r2, [r7, #4] - 8013982: 429a cmp r2, r3 - 8013984: d8f7 bhi.n 8013976 - /* 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; - 8013986: 68fb ldr r3, [r7, #12] - 8013988: 60bb str r3, [r7, #8] - if( ( puc + pxIterator->xBlockSize ) == ( uint8_t * ) pxBlockToInsert ) - 801398a: 68fb ldr r3, [r7, #12] - 801398c: 685b ldr r3, [r3, #4] - 801398e: 68ba ldr r2, [r7, #8] - 8013990: 4413 add r3, r2 - 8013992: 687a ldr r2, [r7, #4] - 8013994: 429a cmp r2, r3 - 8013996: d108 bne.n 80139aa - { - pxIterator->xBlockSize += pxBlockToInsert->xBlockSize; - 8013998: 68fb ldr r3, [r7, #12] - 801399a: 685a ldr r2, [r3, #4] - 801399c: 687b ldr r3, [r7, #4] - 801399e: 685b ldr r3, [r3, #4] - 80139a0: 441a add r2, r3 - 80139a2: 68fb ldr r3, [r7, #12] - 80139a4: 605a str r2, [r3, #4] - pxBlockToInsert = pxIterator; - 80139a6: 68fb ldr r3, [r7, #12] - 80139a8: 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; - 80139aa: 687b ldr r3, [r7, #4] - 80139ac: 60bb str r3, [r7, #8] - if( ( puc + pxBlockToInsert->xBlockSize ) == ( uint8_t * ) pxIterator->pxNextFreeBlock ) - 80139ae: 687b ldr r3, [r7, #4] - 80139b0: 685b ldr r3, [r3, #4] - 80139b2: 68ba ldr r2, [r7, #8] - 80139b4: 441a add r2, r3 - 80139b6: 68fb ldr r3, [r7, #12] - 80139b8: 681b ldr r3, [r3, #0] - 80139ba: 429a cmp r2, r3 - 80139bc: d118 bne.n 80139f0 - { - if( pxIterator->pxNextFreeBlock != pxEnd ) - 80139be: 68fb ldr r3, [r7, #12] - 80139c0: 681a ldr r2, [r3, #0] - 80139c2: 4b15 ldr r3, [pc, #84] ; (8013a18 ) - 80139c4: 681b ldr r3, [r3, #0] - 80139c6: 429a cmp r2, r3 - 80139c8: d00d beq.n 80139e6 - { - /* Form one big block from the two blocks. */ - pxBlockToInsert->xBlockSize += pxIterator->pxNextFreeBlock->xBlockSize; - 80139ca: 687b ldr r3, [r7, #4] - 80139cc: 685a ldr r2, [r3, #4] - 80139ce: 68fb ldr r3, [r7, #12] - 80139d0: 681b ldr r3, [r3, #0] - 80139d2: 685b ldr r3, [r3, #4] - 80139d4: 441a add r2, r3 - 80139d6: 687b ldr r3, [r7, #4] - 80139d8: 605a str r2, [r3, #4] - pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock->pxNextFreeBlock; - 80139da: 68fb ldr r3, [r7, #12] - 80139dc: 681b ldr r3, [r3, #0] - 80139de: 681a ldr r2, [r3, #0] - 80139e0: 687b ldr r3, [r7, #4] - 80139e2: 601a str r2, [r3, #0] - 80139e4: e008 b.n 80139f8 - } - else - { - pxBlockToInsert->pxNextFreeBlock = pxEnd; - 80139e6: 4b0c ldr r3, [pc, #48] ; (8013a18 ) - 80139e8: 681a ldr r2, [r3, #0] - 80139ea: 687b ldr r3, [r7, #4] - 80139ec: 601a str r2, [r3, #0] - 80139ee: e003 b.n 80139f8 - } - } - else - { - pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock; - 80139f0: 68fb ldr r3, [r7, #12] - 80139f2: 681a ldr r2, [r3, #0] - 80139f4: 687b ldr r3, [r7, #4] - 80139f6: 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 ) - 80139f8: 68fa ldr r2, [r7, #12] - 80139fa: 687b ldr r3, [r7, #4] - 80139fc: 429a cmp r2, r3 - 80139fe: d002 beq.n 8013a06 - { - pxIterator->pxNextFreeBlock = pxBlockToInsert; - 8013a00: 68fb ldr r3, [r7, #12] - 8013a02: 687a ldr r2, [r7, #4] - 8013a04: 601a str r2, [r3, #0] - } - else - { - mtCOVERAGE_TEST_MARKER(); - } -} - 8013a06: bf00 nop - 8013a08: 3714 adds r7, #20 - 8013a0a: 46bd mov sp, r7 - 8013a0c: f85d 7b04 ldr.w r7, [sp], #4 - 8013a10: 4770 bx lr - 8013a12: bf00 nop - 8013a14: 24013950 .word 0x24013950 - 8013a18: 24013958 .word 0x24013958 - -08013a1c : - * @param apimsg a struct containing the function to call and its parameters - * @return ERR_OK if the function was called, another err_t if not - */ -static err_t -netconn_apimsg(tcpip_callback_fn fn, struct api_msg *apimsg) -{ - 8013a1c: b580 push {r7, lr} - 8013a1e: b084 sub sp, #16 - 8013a20: af00 add r7, sp, #0 - 8013a22: 6078 str r0, [r7, #4] - 8013a24: 6039 str r1, [r7, #0] - err_t err; - -#ifdef LWIP_DEBUG - /* catch functions that don't set err */ - apimsg->err = ERR_VAL; - 8013a26: 683b ldr r3, [r7, #0] - 8013a28: 22fa movs r2, #250 ; 0xfa - 8013a2a: 711a strb r2, [r3, #4] - -#if LWIP_NETCONN_SEM_PER_THREAD - apimsg->op_completed_sem = LWIP_NETCONN_THREAD_SEM_GET(); -#endif /* LWIP_NETCONN_SEM_PER_THREAD */ - - err = tcpip_send_msg_wait_sem(fn, apimsg, LWIP_API_MSG_SEM(apimsg)); - 8013a2c: 683b ldr r3, [r7, #0] - 8013a2e: 681b ldr r3, [r3, #0] - 8013a30: 330c adds r3, #12 - 8013a32: 461a mov r2, r3 - 8013a34: 6839 ldr r1, [r7, #0] - 8013a36: 6878 ldr r0, [r7, #4] - 8013a38: f002 fa22 bl 8015e80 - 8013a3c: 4603 mov r3, r0 - 8013a3e: 73fb strb r3, [r7, #15] - if (err == ERR_OK) { - 8013a40: f997 300f ldrsb.w r3, [r7, #15] - 8013a44: 2b00 cmp r3, #0 - 8013a46: d103 bne.n 8013a50 - return apimsg->err; - 8013a48: 683b ldr r3, [r7, #0] - 8013a4a: f993 3004 ldrsb.w r3, [r3, #4] - 8013a4e: e001 b.n 8013a54 - } - return err; - 8013a50: f997 300f ldrsb.w r3, [r7, #15] -} - 8013a54: 4618 mov r0, r3 - 8013a56: 3710 adds r7, #16 - 8013a58: 46bd mov sp, r7 - 8013a5a: bd80 pop {r7, pc} - -08013a5c : - * @return a newly allocated struct netconn or - * NULL on memory error - */ -struct netconn * -netconn_new_with_proto_and_callback(enum netconn_type t, u8_t proto, netconn_callback callback) -{ - 8013a5c: b580 push {r7, lr} - 8013a5e: b08c sub sp, #48 ; 0x30 - 8013a60: af00 add r7, sp, #0 - 8013a62: 4603 mov r3, r0 - 8013a64: 603a str r2, [r7, #0] - 8013a66: 71fb strb r3, [r7, #7] - 8013a68: 460b mov r3, r1 - 8013a6a: 71bb strb r3, [r7, #6] - struct netconn *conn; - API_MSG_VAR_DECLARE(msg); - API_MSG_VAR_ALLOC_RETURN_NULL(msg); - - conn = netconn_alloc(t, callback); - 8013a6c: 79fb ldrb r3, [r7, #7] - 8013a6e: 6839 ldr r1, [r7, #0] - 8013a70: 4618 mov r0, r3 - 8013a72: f000 ffeb bl 8014a4c - 8013a76: 62f8 str r0, [r7, #44] ; 0x2c - if (conn != NULL) { - 8013a78: 6afb ldr r3, [r7, #44] ; 0x2c - 8013a7a: 2b00 cmp r3, #0 - 8013a7c: d054 beq.n 8013b28 - err_t err; - - API_MSG_VAR_REF(msg).msg.n.proto = proto; - 8013a7e: 79bb ldrb r3, [r7, #6] - 8013a80: 743b strb r3, [r7, #16] - API_MSG_VAR_REF(msg).conn = conn; - 8013a82: 6afb ldr r3, [r7, #44] ; 0x2c - 8013a84: 60bb str r3, [r7, #8] - err = netconn_apimsg(lwip_netconn_do_newconn, &API_MSG_VAR_REF(msg)); - 8013a86: f107 0308 add.w r3, r7, #8 - 8013a8a: 4619 mov r1, r3 - 8013a8c: 4829 ldr r0, [pc, #164] ; (8013b34 ) - 8013a8e: f7ff ffc5 bl 8013a1c - 8013a92: 4603 mov r3, r0 - 8013a94: f887 302b strb.w r3, [r7, #43] ; 0x2b - if (err != ERR_OK) { - 8013a98: f997 302b ldrsb.w r3, [r7, #43] ; 0x2b - 8013a9c: 2b00 cmp r3, #0 - 8013a9e: d043 beq.n 8013b28 - LWIP_ASSERT("freeing conn without freeing pcb", conn->pcb.tcp == NULL); - 8013aa0: 6afb ldr r3, [r7, #44] ; 0x2c - 8013aa2: 685b ldr r3, [r3, #4] - 8013aa4: 2b00 cmp r3, #0 - 8013aa6: d005 beq.n 8013ab4 - 8013aa8: 4b23 ldr r3, [pc, #140] ; (8013b38 ) - 8013aaa: 22a3 movs r2, #163 ; 0xa3 - 8013aac: 4923 ldr r1, [pc, #140] ; (8013b3c ) - 8013aae: 4824 ldr r0, [pc, #144] ; (8013b40 ) - 8013ab0: f00d ff6a bl 8021988 - LWIP_ASSERT("conn has no recvmbox", sys_mbox_valid(&conn->recvmbox)); - 8013ab4: 6afb ldr r3, [r7, #44] ; 0x2c - 8013ab6: 3310 adds r3, #16 - 8013ab8: 4618 mov r0, r3 - 8013aba: f00d fcb0 bl 802141e - 8013abe: 4603 mov r3, r0 - 8013ac0: 2b00 cmp r3, #0 - 8013ac2: d105 bne.n 8013ad0 - 8013ac4: 4b1c ldr r3, [pc, #112] ; (8013b38 ) - 8013ac6: 22a4 movs r2, #164 ; 0xa4 - 8013ac8: 491e ldr r1, [pc, #120] ; (8013b44 ) - 8013aca: 481d ldr r0, [pc, #116] ; (8013b40 ) - 8013acc: f00d ff5c bl 8021988 -#if LWIP_TCP - LWIP_ASSERT("conn->acceptmbox shouldn't exist", !sys_mbox_valid(&conn->acceptmbox)); - 8013ad0: 6afb ldr r3, [r7, #44] ; 0x2c - 8013ad2: 3314 adds r3, #20 - 8013ad4: 4618 mov r0, r3 - 8013ad6: f00d fca2 bl 802141e - 8013ada: 4603 mov r3, r0 - 8013adc: 2b00 cmp r3, #0 - 8013ade: d005 beq.n 8013aec - 8013ae0: 4b15 ldr r3, [pc, #84] ; (8013b38 ) - 8013ae2: 22a6 movs r2, #166 ; 0xa6 - 8013ae4: 4918 ldr r1, [pc, #96] ; (8013b48 ) - 8013ae6: 4816 ldr r0, [pc, #88] ; (8013b40 ) - 8013ae8: f00d ff4e bl 8021988 -#endif /* LWIP_TCP */ -#if !LWIP_NETCONN_SEM_PER_THREAD - LWIP_ASSERT("conn has no op_completed", sys_sem_valid(&conn->op_completed)); - 8013aec: 6afb ldr r3, [r7, #44] ; 0x2c - 8013aee: 330c adds r3, #12 - 8013af0: 4618 mov r0, r3 - 8013af2: f00d fd25 bl 8021540 - 8013af6: 4603 mov r3, r0 - 8013af8: 2b00 cmp r3, #0 - 8013afa: d105 bne.n 8013b08 - 8013afc: 4b0e ldr r3, [pc, #56] ; (8013b38 ) - 8013afe: 22a9 movs r2, #169 ; 0xa9 - 8013b00: 4912 ldr r1, [pc, #72] ; (8013b4c ) - 8013b02: 480f ldr r0, [pc, #60] ; (8013b40 ) - 8013b04: f00d ff40 bl 8021988 - sys_sem_free(&conn->op_completed); - 8013b08: 6afb ldr r3, [r7, #44] ; 0x2c - 8013b0a: 330c adds r3, #12 - 8013b0c: 4618 mov r0, r3 - 8013b0e: f00d fd0a bl 8021526 -#endif /* !LWIP_NETCONN_SEM_PER_THREAD */ - sys_mbox_free(&conn->recvmbox); - 8013b12: 6afb ldr r3, [r7, #44] ; 0x2c - 8013b14: 3310 adds r3, #16 - 8013b16: 4618 mov r0, r3 - 8013b18: f00d fbfa bl 8021310 - memp_free(MEMP_NETCONN, conn); - 8013b1c: 6af9 ldr r1, [r7, #44] ; 0x2c - 8013b1e: 2007 movs r0, #7 - 8013b20: f003 f84c bl 8016bbc - API_MSG_VAR_FREE(msg); - return NULL; - 8013b24: 2300 movs r3, #0 - 8013b26: e000 b.n 8013b2a - } - } - API_MSG_VAR_FREE(msg); - return conn; - 8013b28: 6afb ldr r3, [r7, #44] ; 0x2c -} - 8013b2a: 4618 mov r0, r3 - 8013b2c: 3730 adds r7, #48 ; 0x30 - 8013b2e: 46bd mov sp, r7 - 8013b30: bd80 pop {r7, pc} - 8013b32: bf00 nop - 8013b34: 08014a21 .word 0x08014a21 - 8013b38: 080232cc .word 0x080232cc - 8013b3c: 08023300 .word 0x08023300 - 8013b40: 08023324 .word 0x08023324 - 8013b44: 0802334c .word 0x0802334c - 8013b48: 08023364 .word 0x08023364 - 8013b4c: 08023388 .word 0x08023388 - -08013b50 : - * @param conn the netconn to delete - * @return ERR_OK if the connection was deleted - */ -err_t -netconn_prepare_delete(struct netconn *conn) -{ - 8013b50: b580 push {r7, lr} - 8013b52: b08c sub sp, #48 ; 0x30 - 8013b54: af00 add r7, sp, #0 - 8013b56: 6078 str r0, [r7, #4] - err_t err; - API_MSG_VAR_DECLARE(msg); - - /* No ASSERT here because possible to get a (conn == NULL) if we got an accept error */ - if (conn == NULL) { - 8013b58: 687b ldr r3, [r7, #4] - 8013b5a: 2b00 cmp r3, #0 - 8013b5c: d101 bne.n 8013b62 - return ERR_OK; - 8013b5e: 2300 movs r3, #0 - 8013b60: e014 b.n 8013b8c - } - - API_MSG_VAR_ALLOC(msg); - API_MSG_VAR_REF(msg).conn = conn; - 8013b62: 687b ldr r3, [r7, #4] - 8013b64: 60fb str r3, [r7, #12] - /* get the time we started, which is later compared to - sys_now() + conn->send_timeout */ - API_MSG_VAR_REF(msg).msg.sd.time_started = sys_now(); -#else /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */ -#if LWIP_TCP - API_MSG_VAR_REF(msg).msg.sd.polls_left = - 8013b66: 2329 movs r3, #41 ; 0x29 - 8013b68: 757b strb r3, [r7, #21] - ((LWIP_TCP_CLOSE_TIMEOUT_MS_DEFAULT + TCP_SLOW_INTERVAL - 1) / TCP_SLOW_INTERVAL) + 1; -#endif /* LWIP_TCP */ -#endif /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */ - err = netconn_apimsg(lwip_netconn_do_delconn, &API_MSG_VAR_REF(msg)); - 8013b6a: f107 030c add.w r3, r7, #12 - 8013b6e: 4619 mov r1, r3 - 8013b70: 4808 ldr r0, [pc, #32] ; (8013b94 ) - 8013b72: f7ff ff53 bl 8013a1c - 8013b76: 4603 mov r3, r0 - 8013b78: f887 302f strb.w r3, [r7, #47] ; 0x2f - API_MSG_VAR_FREE(msg); - - if (err != ERR_OK) { - 8013b7c: f997 302f ldrsb.w r3, [r7, #47] ; 0x2f - 8013b80: 2b00 cmp r3, #0 - 8013b82: d002 beq.n 8013b8a - return err; - 8013b84: f997 302f ldrsb.w r3, [r7, #47] ; 0x2f - 8013b88: e000 b.n 8013b8c - } - return ERR_OK; - 8013b8a: 2300 movs r3, #0 -} - 8013b8c: 4618 mov r0, r3 - 8013b8e: 3730 adds r7, #48 ; 0x30 - 8013b90: 46bd mov sp, r7 - 8013b92: bd80 pop {r7, pc} - 8013b94: 08014f8d .word 0x08014f8d - -08013b98 : - * @param conn the netconn to delete - * @return ERR_OK if the connection was deleted - */ -err_t -netconn_delete(struct netconn *conn) -{ - 8013b98: b580 push {r7, lr} - 8013b9a: b084 sub sp, #16 - 8013b9c: af00 add r7, sp, #0 - 8013b9e: 6078 str r0, [r7, #4] - err_t err; - - /* No ASSERT here because possible to get a (conn == NULL) if we got an accept error */ - if (conn == NULL) { - 8013ba0: 687b ldr r3, [r7, #4] - 8013ba2: 2b00 cmp r3, #0 - 8013ba4: d101 bne.n 8013baa - return ERR_OK; - 8013ba6: 2300 movs r3, #0 - 8013ba8: e00d b.n 8013bc6 - /* Already called netconn_prepare_delete() before */ - err = ERR_OK; - } else -#endif /* LWIP_NETCONN_FULLDUPLEX */ - { - err = netconn_prepare_delete(conn); - 8013baa: 6878 ldr r0, [r7, #4] - 8013bac: f7ff ffd0 bl 8013b50 - 8013bb0: 4603 mov r3, r0 - 8013bb2: 73fb strb r3, [r7, #15] - } - if (err == ERR_OK) { - 8013bb4: f997 300f ldrsb.w r3, [r7, #15] - 8013bb8: 2b00 cmp r3, #0 - 8013bba: d102 bne.n 8013bc2 - netconn_free(conn); - 8013bbc: 6878 ldr r0, [r7, #4] - 8013bbe: f000 ffb3 bl 8014b28 - } - return err; - 8013bc2: f997 300f ldrsb.w r3, [r7, #15] -} - 8013bc6: 4618 mov r0, r3 - 8013bc8: 3710 adds r7, #16 - 8013bca: 46bd mov sp, r7 - 8013bcc: bd80 pop {r7, pc} - ... - -08013bd0 : - * @param port the local port to bind the netconn to (not used for RAW) - * @return ERR_OK if bound, any other err_t on failure - */ -err_t -netconn_bind(struct netconn *conn, const ip_addr_t *addr, u16_t port) -{ - 8013bd0: b580 push {r7, lr} - 8013bd2: b08e sub sp, #56 ; 0x38 - 8013bd4: af00 add r7, sp, #0 - 8013bd6: 60f8 str r0, [r7, #12] - 8013bd8: 60b9 str r1, [r7, #8] - 8013bda: 4613 mov r3, r2 - 8013bdc: 80fb strh r3, [r7, #6] - API_MSG_VAR_DECLARE(msg); - err_t err; - - LWIP_ERROR("netconn_bind: invalid conn", (conn != NULL), return ERR_ARG;); - 8013bde: 68fb ldr r3, [r7, #12] - 8013be0: 2b00 cmp r3, #0 - 8013be2: d109 bne.n 8013bf8 - 8013be4: 4b11 ldr r3, [pc, #68] ; (8013c2c ) - 8013be6: f44f 729c mov.w r2, #312 ; 0x138 - 8013bea: 4911 ldr r1, [pc, #68] ; (8013c30 ) - 8013bec: 4811 ldr r0, [pc, #68] ; (8013c34 ) - 8013bee: f00d fecb bl 8021988 - 8013bf2: f06f 030f mvn.w r3, #15 - 8013bf6: e015 b.n 8013c24 - -#if LWIP_IPV4 - /* Don't propagate NULL pointer (IP_ADDR_ANY alias) to subsequent functions */ - if (addr == NULL) { - 8013bf8: 68bb ldr r3, [r7, #8] - 8013bfa: 2b00 cmp r3, #0 - 8013bfc: d101 bne.n 8013c02 - addr = IP4_ADDR_ANY; - 8013bfe: 4b0e ldr r3, [pc, #56] ; (8013c38 ) - 8013c00: 60bb str r3, [r7, #8] - addr = IP_ANY_TYPE; - } -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - - API_MSG_VAR_ALLOC(msg); - API_MSG_VAR_REF(msg).conn = conn; - 8013c02: 68fb ldr r3, [r7, #12] - 8013c04: 617b str r3, [r7, #20] - API_MSG_VAR_REF(msg).msg.bc.ipaddr = API_MSG_VAR_REF(addr); - 8013c06: 68bb ldr r3, [r7, #8] - 8013c08: 61fb str r3, [r7, #28] - API_MSG_VAR_REF(msg).msg.bc.port = port; - 8013c0a: 88fb ldrh r3, [r7, #6] - 8013c0c: 843b strh r3, [r7, #32] - err = netconn_apimsg(lwip_netconn_do_bind, &API_MSG_VAR_REF(msg)); - 8013c0e: f107 0314 add.w r3, r7, #20 - 8013c12: 4619 mov r1, r3 - 8013c14: 4809 ldr r0, [pc, #36] ; (8013c3c ) - 8013c16: f7ff ff01 bl 8013a1c - 8013c1a: 4603 mov r3, r0 - 8013c1c: f887 3037 strb.w r3, [r7, #55] ; 0x37 - API_MSG_VAR_FREE(msg); - - return err; - 8013c20: f997 3037 ldrsb.w r3, [r7, #55] ; 0x37 -} - 8013c24: 4618 mov r0, r3 - 8013c26: 3738 adds r7, #56 ; 0x38 - 8013c28: 46bd mov sp, r7 - 8013c2a: bd80 pop {r7, pc} - 8013c2c: 080232cc .word 0x080232cc - 8013c30: 08023404 .word 0x08023404 - 8013c34: 08023324 .word 0x08023324 - 8013c38: 08026cec .word 0x08026cec - 8013c3c: 08015155 .word 0x08015155 - -08013c40 : - * @param port the remote port to connect to (no used for RAW) - * @return ERR_OK if connected, return value of tcp_/udp_/raw_connect otherwise - */ -err_t -netconn_connect(struct netconn *conn, const ip_addr_t *addr, u16_t port) -{ - 8013c40: b580 push {r7, lr} - 8013c42: b08e sub sp, #56 ; 0x38 - 8013c44: af00 add r7, sp, #0 - 8013c46: 60f8 str r0, [r7, #12] - 8013c48: 60b9 str r1, [r7, #8] - 8013c4a: 4613 mov r3, r2 - 8013c4c: 80fb strh r3, [r7, #6] - API_MSG_VAR_DECLARE(msg); - err_t err; - - LWIP_ERROR("netconn_connect: invalid conn", (conn != NULL), return ERR_ARG;); - 8013c4e: 68fb ldr r3, [r7, #12] - 8013c50: 2b00 cmp r3, #0 - 8013c52: d109 bne.n 8013c68 - 8013c54: 4b11 ldr r3, [pc, #68] ; (8013c9c ) - 8013c56: f44f 72bf mov.w r2, #382 ; 0x17e - 8013c5a: 4911 ldr r1, [pc, #68] ; (8013ca0 ) - 8013c5c: 4811 ldr r0, [pc, #68] ; (8013ca4 ) - 8013c5e: f00d fe93 bl 8021988 - 8013c62: f06f 030f mvn.w r3, #15 - 8013c66: e015 b.n 8013c94 - -#if LWIP_IPV4 - /* Don't propagate NULL pointer (IP_ADDR_ANY alias) to subsequent functions */ - if (addr == NULL) { - 8013c68: 68bb ldr r3, [r7, #8] - 8013c6a: 2b00 cmp r3, #0 - 8013c6c: d101 bne.n 8013c72 - addr = IP4_ADDR_ANY; - 8013c6e: 4b0e ldr r3, [pc, #56] ; (8013ca8 ) - 8013c70: 60bb str r3, [r7, #8] - } -#endif /* LWIP_IPV4 */ - - API_MSG_VAR_ALLOC(msg); - API_MSG_VAR_REF(msg).conn = conn; - 8013c72: 68fb ldr r3, [r7, #12] - 8013c74: 617b str r3, [r7, #20] - API_MSG_VAR_REF(msg).msg.bc.ipaddr = API_MSG_VAR_REF(addr); - 8013c76: 68bb ldr r3, [r7, #8] - 8013c78: 61fb str r3, [r7, #28] - API_MSG_VAR_REF(msg).msg.bc.port = port; - 8013c7a: 88fb ldrh r3, [r7, #6] - 8013c7c: 843b strh r3, [r7, #32] - err = netconn_apimsg(lwip_netconn_do_connect, &API_MSG_VAR_REF(msg)); - 8013c7e: f107 0314 add.w r3, r7, #20 - 8013c82: 4619 mov r1, r3 - 8013c84: 4809 ldr r0, [pc, #36] ; (8013cac ) - 8013c86: f7ff fec9 bl 8013a1c - 8013c8a: 4603 mov r3, r0 - 8013c8c: f887 3037 strb.w r3, [r7, #55] ; 0x37 - API_MSG_VAR_FREE(msg); - - return err; - 8013c90: f997 3037 ldrsb.w r3, [r7, #55] ; 0x37 -} - 8013c94: 4618 mov r0, r3 - 8013c96: 3738 adds r7, #56 ; 0x38 - 8013c98: 46bd mov sp, r7 - 8013c9a: bd80 pop {r7, pc} - 8013c9c: 080232cc .word 0x080232cc - 8013ca0: 08023440 .word 0x08023440 - 8013ca4: 08023324 .word 0x08023324 - 8013ca8: 08026cec .word 0x08026cec - 8013cac: 080152e9 .word 0x080152e9 - -08013cb0 : - * ERR_WOULDBLOCK if the netconn is nonblocking but would block to wait for data - * ERR_TIMEOUT if the netconn has a receive timeout and no data was received - */ -static err_t -netconn_recv_data(struct netconn *conn, void **new_buf, u8_t apiflags) -{ - 8013cb0: b580 push {r7, lr} - 8013cb2: b088 sub sp, #32 - 8013cb4: af00 add r7, sp, #0 - 8013cb6: 60f8 str r0, [r7, #12] - 8013cb8: 60b9 str r1, [r7, #8] - 8013cba: 4613 mov r3, r2 - 8013cbc: 71fb strb r3, [r7, #7] - void *buf = NULL; - 8013cbe: 2300 movs r3, #0 - 8013cc0: 61bb str r3, [r7, #24] - u16_t len; - - LWIP_ERROR("netconn_recv: invalid pointer", (new_buf != NULL), return ERR_ARG;); - 8013cc2: 68bb ldr r3, [r7, #8] - 8013cc4: 2b00 cmp r3, #0 - 8013cc6: d109 bne.n 8013cdc - 8013cc8: 4b58 ldr r3, [pc, #352] ; (8013e2c ) - 8013cca: f44f 7212 mov.w r2, #584 ; 0x248 - 8013cce: 4958 ldr r1, [pc, #352] ; (8013e30 ) - 8013cd0: 4858 ldr r0, [pc, #352] ; (8013e34 ) - 8013cd2: f00d fe59 bl 8021988 - 8013cd6: f06f 030f mvn.w r3, #15 - 8013cda: e0a2 b.n 8013e22 - *new_buf = NULL; - 8013cdc: 68bb ldr r3, [r7, #8] - 8013cde: 2200 movs r2, #0 - 8013ce0: 601a str r2, [r3, #0] - LWIP_ERROR("netconn_recv: invalid conn", (conn != NULL), return ERR_ARG;); - 8013ce2: 68fb ldr r3, [r7, #12] - 8013ce4: 2b00 cmp r3, #0 - 8013ce6: d109 bne.n 8013cfc - 8013ce8: 4b50 ldr r3, [pc, #320] ; (8013e2c ) - 8013cea: f240 224a movw r2, #586 ; 0x24a - 8013cee: 4952 ldr r1, [pc, #328] ; (8013e38 ) - 8013cf0: 4850 ldr r0, [pc, #320] ; (8013e34 ) - 8013cf2: f00d fe49 bl 8021988 - 8013cf6: f06f 030f mvn.w r3, #15 - 8013cfa: e092 b.n 8013e22 - - if (!NETCONN_RECVMBOX_WAITABLE(conn)) { - 8013cfc: 68fb ldr r3, [r7, #12] - 8013cfe: 3310 adds r3, #16 - 8013d00: 4618 mov r0, r3 - 8013d02: f00d fb8c bl 802141e - 8013d06: 4603 mov r3, r0 - 8013d08: 2b00 cmp r3, #0 - 8013d0a: d10e bne.n 8013d2a - err_t err = netconn_err(conn); - 8013d0c: 68f8 ldr r0, [r7, #12] - 8013d0e: f000 fad4 bl 80142ba - 8013d12: 4603 mov r3, r0 - 8013d14: 773b strb r3, [r7, #28] - if (err != ERR_OK) { - 8013d16: f997 301c ldrsb.w r3, [r7, #28] - 8013d1a: 2b00 cmp r3, #0 - 8013d1c: d002 beq.n 8013d24 - /* return pending error */ - return err; - 8013d1e: f997 301c ldrsb.w r3, [r7, #28] - 8013d22: e07e b.n 8013e22 - } - return ERR_CONN; - 8013d24: f06f 030a mvn.w r3, #10 - 8013d28: e07b b.n 8013e22 - } - - NETCONN_MBOX_WAITING_INC(conn); - if (netconn_is_nonblocking(conn) || (apiflags & NETCONN_DONTBLOCK) || - 8013d2a: 68fb ldr r3, [r7, #12] - 8013d2c: 7f1b ldrb r3, [r3, #28] - 8013d2e: f003 0302 and.w r3, r3, #2 - 8013d32: 2b00 cmp r3, #0 - 8013d34: d10f bne.n 8013d56 - 8013d36: 79fb ldrb r3, [r7, #7] - 8013d38: f003 0304 and.w r3, r3, #4 - 8013d3c: 2b00 cmp r3, #0 - 8013d3e: d10a bne.n 8013d56 - (conn->flags & NETCONN_FLAG_MBOXCLOSED) || (conn->pending_err != ERR_OK)) { - 8013d40: 68fb ldr r3, [r7, #12] - 8013d42: 7f1b ldrb r3, [r3, #28] - 8013d44: f003 0301 and.w r3, r3, #1 - if (netconn_is_nonblocking(conn) || (apiflags & NETCONN_DONTBLOCK) || - 8013d48: 2b00 cmp r3, #0 - 8013d4a: d104 bne.n 8013d56 - (conn->flags & NETCONN_FLAG_MBOXCLOSED) || (conn->pending_err != ERR_OK)) { - 8013d4c: 68fb ldr r3, [r7, #12] - 8013d4e: f993 3008 ldrsb.w r3, [r3, #8] - 8013d52: 2b00 cmp r3, #0 - 8013d54: d023 beq.n 8013d9e - if (sys_arch_mbox_tryfetch(&conn->recvmbox, &buf) == SYS_ARCH_TIMEOUT) { - 8013d56: 68fb ldr r3, [r7, #12] - 8013d58: 3310 adds r3, #16 - 8013d5a: f107 0218 add.w r2, r7, #24 - 8013d5e: 4611 mov r1, r2 - 8013d60: 4618 mov r0, r3 - 8013d62: f00d fb40 bl 80213e6 - 8013d66: 4603 mov r3, r0 - 8013d68: f1b3 3fff cmp.w r3, #4294967295 - 8013d6c: d11f bne.n 8013dae - err_t err; - NETCONN_MBOX_WAITING_DEC(conn); - err = netconn_err(conn); - 8013d6e: 68f8 ldr r0, [r7, #12] - 8013d70: f000 faa3 bl 80142ba - 8013d74: 4603 mov r3, r0 - 8013d76: 777b strb r3, [r7, #29] - if (err != ERR_OK) { - 8013d78: f997 301d ldrsb.w r3, [r7, #29] - 8013d7c: 2b00 cmp r3, #0 - 8013d7e: d002 beq.n 8013d86 - /* return pending error */ - return err; - 8013d80: f997 301d ldrsb.w r3, [r7, #29] - 8013d84: e04d b.n 8013e22 - } - if (conn->flags & NETCONN_FLAG_MBOXCLOSED) { - 8013d86: 68fb ldr r3, [r7, #12] - 8013d88: 7f1b ldrb r3, [r3, #28] - 8013d8a: f003 0301 and.w r3, r3, #1 - 8013d8e: 2b00 cmp r3, #0 - 8013d90: d002 beq.n 8013d98 - return ERR_CONN; - 8013d92: f06f 030a mvn.w r3, #10 - 8013d96: e044 b.n 8013e22 - } - return ERR_WOULDBLOCK; - 8013d98: f06f 0306 mvn.w r3, #6 - 8013d9c: e041 b.n 8013e22 - if (sys_arch_mbox_fetch(&conn->recvmbox, &buf, conn->recv_timeout) == SYS_ARCH_TIMEOUT) { - NETCONN_MBOX_WAITING_DEC(conn); - return ERR_TIMEOUT; - } -#else - sys_arch_mbox_fetch(&conn->recvmbox, &buf, 0); - 8013d9e: 68fb ldr r3, [r7, #12] - 8013da0: 3310 adds r3, #16 - 8013da2: f107 0118 add.w r1, r7, #24 - 8013da6: 2200 movs r2, #0 - 8013da8: 4618 mov r0, r3 - 8013daa: f00d fadd bl 8021368 - } -#endif - -#if LWIP_TCP -#if (LWIP_UDP || LWIP_RAW) - if (NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP) - 8013dae: 68fb ldr r3, [r7, #12] - 8013db0: 781b ldrb r3, [r3, #0] - 8013db2: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 8013db6: 2b10 cmp r3, #16 - 8013db8: d117 bne.n 8013dea -#endif /* (LWIP_UDP || LWIP_RAW) */ - { - err_t err; - /* Check if this is an error message or a pbuf */ - if (lwip_netconn_is_err_msg(buf, &err)) { - 8013dba: 69bb ldr r3, [r7, #24] - 8013dbc: f107 0217 add.w r2, r7, #23 - 8013dc0: 4611 mov r1, r2 - 8013dc2: 4618 mov r0, r3 - 8013dc4: f000 faca bl 801435c - 8013dc8: 4603 mov r3, r0 - 8013dca: 2b00 cmp r3, #0 - 8013dcc: d009 beq.n 8013de2 - /* new_buf has been zeroed above already */ - if (err == ERR_CLSD) { - 8013dce: f997 3017 ldrsb.w r3, [r7, #23] - 8013dd2: f113 0f0f cmn.w r3, #15 - 8013dd6: d101 bne.n 8013ddc - /* connection closed translates to ERR_OK with *new_buf == NULL */ - return ERR_OK; - 8013dd8: 2300 movs r3, #0 - 8013dda: e022 b.n 8013e22 - } - return err; - 8013ddc: f997 3017 ldrsb.w r3, [r7, #23] - 8013de0: e01f b.n 8013e22 - } - len = ((struct pbuf *)buf)->tot_len; - 8013de2: 69bb ldr r3, [r7, #24] - 8013de4: 891b ldrh r3, [r3, #8] - 8013de6: 83fb strh r3, [r7, #30] - 8013de8: e00d b.n 8013e06 -#if LWIP_TCP && (LWIP_UDP || LWIP_RAW) - else -#endif /* LWIP_TCP && (LWIP_UDP || LWIP_RAW) */ -#if (LWIP_UDP || LWIP_RAW) - { - LWIP_ASSERT("buf != NULL", buf != NULL); - 8013dea: 69bb ldr r3, [r7, #24] - 8013dec: 2b00 cmp r3, #0 - 8013dee: d106 bne.n 8013dfe - 8013df0: 4b0e ldr r3, [pc, #56] ; (8013e2c ) - 8013df2: f240 2291 movw r2, #657 ; 0x291 - 8013df6: 4911 ldr r1, [pc, #68] ; (8013e3c ) - 8013df8: 480e ldr r0, [pc, #56] ; (8013e34 ) - 8013dfa: f00d fdc5 bl 8021988 - len = netbuf_len((struct netbuf *)buf); - 8013dfe: 69bb ldr r3, [r7, #24] - 8013e00: 681b ldr r3, [r3, #0] - 8013e02: 891b ldrh r3, [r3, #8] - 8013e04: 83fb strh r3, [r7, #30] - -#if LWIP_SO_RCVBUF - SYS_ARCH_DEC(conn->recv_avail, len); -#endif /* LWIP_SO_RCVBUF */ - /* Register event with callback */ - API_EVENT(conn, NETCONN_EVT_RCVMINUS, len); - 8013e06: 68fb ldr r3, [r7, #12] - 8013e08: 6a5b ldr r3, [r3, #36] ; 0x24 - 8013e0a: 2b00 cmp r3, #0 - 8013e0c: d005 beq.n 8013e1a - 8013e0e: 68fb ldr r3, [r7, #12] - 8013e10: 6a5b ldr r3, [r3, #36] ; 0x24 - 8013e12: 8bfa ldrh r2, [r7, #30] - 8013e14: 2101 movs r1, #1 - 8013e16: 68f8 ldr r0, [r7, #12] - 8013e18: 4798 blx r3 - - LWIP_DEBUGF(API_LIB_DEBUG, ("netconn_recv_data: received %p, len=%"U16_F"\n", buf, len)); - - *new_buf = buf; - 8013e1a: 69ba ldr r2, [r7, #24] - 8013e1c: 68bb ldr r3, [r7, #8] - 8013e1e: 601a str r2, [r3, #0] - /* don't set conn->last_err: it's only ERR_OK, anyway */ - return ERR_OK; - 8013e20: 2300 movs r3, #0 -} - 8013e22: 4618 mov r0, r3 - 8013e24: 3720 adds r7, #32 - 8013e26: 46bd mov sp, r7 - 8013e28: bd80 pop {r7, pc} - 8013e2a: bf00 nop - 8013e2c: 080232cc .word 0x080232cc - 8013e30: 080234e4 .word 0x080234e4 - 8013e34: 08023324 .word 0x08023324 - 8013e38: 08023504 .word 0x08023504 - 8013e3c: 08023520 .word 0x08023520 - -08013e40 : - -#if LWIP_TCP -static err_t -netconn_tcp_recvd_msg(struct netconn *conn, size_t len, struct api_msg *msg) -{ - 8013e40: b580 push {r7, lr} - 8013e42: b084 sub sp, #16 - 8013e44: af00 add r7, sp, #0 - 8013e46: 60f8 str r0, [r7, #12] - 8013e48: 60b9 str r1, [r7, #8] - 8013e4a: 607a str r2, [r7, #4] - LWIP_ERROR("netconn_recv_tcp_pbuf: invalid conn", (conn != NULL) && - 8013e4c: 68fb ldr r3, [r7, #12] - 8013e4e: 2b00 cmp r3, #0 - 8013e50: d005 beq.n 8013e5e - 8013e52: 68fb ldr r3, [r7, #12] - 8013e54: 781b ldrb r3, [r3, #0] - 8013e56: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 8013e5a: 2b10 cmp r3, #16 - 8013e5c: d009 beq.n 8013e72 - 8013e5e: 4b0c ldr r3, [pc, #48] ; (8013e90 ) - 8013e60: f240 22a7 movw r2, #679 ; 0x2a7 - 8013e64: 490b ldr r1, [pc, #44] ; (8013e94 ) - 8013e66: 480c ldr r0, [pc, #48] ; (8013e98 ) - 8013e68: f00d fd8e bl 8021988 - 8013e6c: f06f 030f mvn.w r3, #15 - 8013e70: e00a b.n 8013e88 - NETCONNTYPE_GROUP(netconn_type(conn)) == NETCONN_TCP, return ERR_ARG;); - - msg->conn = conn; - 8013e72: 687b ldr r3, [r7, #4] - 8013e74: 68fa ldr r2, [r7, #12] - 8013e76: 601a str r2, [r3, #0] - msg->msg.r.len = len; - 8013e78: 687b ldr r3, [r7, #4] - 8013e7a: 68ba ldr r2, [r7, #8] - 8013e7c: 609a str r2, [r3, #8] - - return netconn_apimsg(lwip_netconn_do_recv, msg); - 8013e7e: 6879 ldr r1, [r7, #4] - 8013e80: 4806 ldr r0, [pc, #24] ; (8013e9c ) - 8013e82: f7ff fdcb bl 8013a1c - 8013e86: 4603 mov r3, r0 -} - 8013e88: 4618 mov r0, r3 - 8013e8a: 3710 adds r7, #16 - 8013e8c: 46bd mov sp, r7 - 8013e8e: bd80 pop {r7, pc} - 8013e90: 080232cc .word 0x080232cc - 8013e94: 0802352c .word 0x0802352c - 8013e98: 08023324 .word 0x08023324 - 8013e9c: 08015465 .word 0x08015465 - -08013ea0 : - return err; -} - -static err_t -netconn_recv_data_tcp(struct netconn *conn, struct pbuf **new_buf, u8_t apiflags) -{ - 8013ea0: b580 push {r7, lr} - 8013ea2: b090 sub sp, #64 ; 0x40 - 8013ea4: af00 add r7, sp, #0 - 8013ea6: 60f8 str r0, [r7, #12] - 8013ea8: 60b9 str r1, [r7, #8] - 8013eaa: 4613 mov r3, r2 - 8013eac: 71fb strb r3, [r7, #7] - API_MSG_VAR_DECLARE(msg); -#if LWIP_MPU_COMPATIBLE - msg = NULL; -#endif - - if (!NETCONN_RECVMBOX_WAITABLE(conn)) { - 8013eae: 68fb ldr r3, [r7, #12] - 8013eb0: 3310 adds r3, #16 - 8013eb2: 4618 mov r0, r3 - 8013eb4: f00d fab3 bl 802141e - 8013eb8: 4603 mov r3, r0 - 8013eba: 2b00 cmp r3, #0 - 8013ebc: d102 bne.n 8013ec4 - /* This only happens when calling this function more than once *after* receiving FIN */ - return ERR_CONN; - 8013ebe: f06f 030a mvn.w r3, #10 - 8013ec2: e06d b.n 8013fa0 - } - if (netconn_is_flag_set(conn, NETCONN_FIN_RX_PENDING)) { - 8013ec4: 68fb ldr r3, [r7, #12] - 8013ec6: 7f1b ldrb r3, [r3, #28] - 8013ec8: b25b sxtb r3, r3 - 8013eca: 2b00 cmp r3, #0 - 8013ecc: da07 bge.n 8013ede - netconn_clear_flags(conn, NETCONN_FIN_RX_PENDING); - 8013ece: 68fb ldr r3, [r7, #12] - 8013ed0: 7f1b ldrb r3, [r3, #28] - 8013ed2: f003 037f and.w r3, r3, #127 ; 0x7f - 8013ed6: b2da uxtb r2, r3 - 8013ed8: 68fb ldr r3, [r7, #12] - 8013eda: 771a strb r2, [r3, #28] - goto handle_fin; - 8013edc: e039 b.n 8013f52 - /* need to allocate API message here so empty message pool does not result in event loss - * see bug #47512: MPU_COMPATIBLE may fail on empty pool */ - API_MSG_VAR_ALLOC(msg); - } - - err = netconn_recv_data(conn, (void **)new_buf, apiflags); - 8013ede: 79fb ldrb r3, [r7, #7] - 8013ee0: 461a mov r2, r3 - 8013ee2: 68b9 ldr r1, [r7, #8] - 8013ee4: 68f8 ldr r0, [r7, #12] - 8013ee6: f7ff fee3 bl 8013cb0 - 8013eea: 4603 mov r3, r0 - 8013eec: f887 303f strb.w r3, [r7, #63] ; 0x3f - if (err != ERR_OK) { - 8013ef0: f997 303f ldrsb.w r3, [r7, #63] ; 0x3f - 8013ef4: 2b00 cmp r3, #0 - 8013ef6: d002 beq.n 8013efe - if (!(apiflags & NETCONN_NOAUTORCVD)) { - API_MSG_VAR_FREE(msg); - } - return err; - 8013ef8: f997 303f ldrsb.w r3, [r7, #63] ; 0x3f - 8013efc: e050 b.n 8013fa0 - } - buf = *new_buf; - 8013efe: 68bb ldr r3, [r7, #8] - 8013f00: 681b ldr r3, [r3, #0] - 8013f02: 63bb str r3, [r7, #56] ; 0x38 - if (!(apiflags & NETCONN_NOAUTORCVD)) { - 8013f04: 79fb ldrb r3, [r7, #7] - 8013f06: f003 0308 and.w r3, r3, #8 - 8013f0a: 2b00 cmp r3, #0 - 8013f0c: d10e bne.n 8013f2c - /* Let the stack know that we have taken the data. */ - u16_t len = buf ? buf->tot_len : 1; - 8013f0e: 6bbb ldr r3, [r7, #56] ; 0x38 - 8013f10: 2b00 cmp r3, #0 - 8013f12: d002 beq.n 8013f1a - 8013f14: 6bbb ldr r3, [r7, #56] ; 0x38 - 8013f16: 891b ldrh r3, [r3, #8] - 8013f18: e000 b.n 8013f1c - 8013f1a: 2301 movs r3, #1 - 8013f1c: 86fb strh r3, [r7, #54] ; 0x36 - /* don't care for the return value of lwip_netconn_do_recv */ - /* @todo: this should really be fixed, e.g. by retrying in poll on error */ - netconn_tcp_recvd_msg(conn, len, &API_VAR_REF(msg)); - 8013f1e: 8efb ldrh r3, [r7, #54] ; 0x36 - 8013f20: f107 0214 add.w r2, r7, #20 - 8013f24: 4619 mov r1, r3 - 8013f26: 68f8 ldr r0, [r7, #12] - 8013f28: f7ff ff8a bl 8013e40 - API_MSG_VAR_FREE(msg); - } - - /* If we are closed, we indicate that we no longer wish to use the socket */ - if (buf == NULL) { - 8013f2c: 6bbb ldr r3, [r7, #56] ; 0x38 - 8013f2e: 2b00 cmp r3, #0 - 8013f30: d134 bne.n 8013f9c - if (apiflags & NETCONN_NOFIN) { - 8013f32: 79fb ldrb r3, [r7, #7] - 8013f34: f003 0310 and.w r3, r3, #16 - 8013f38: 2b00 cmp r3, #0 - 8013f3a: d009 beq.n 8013f50 - /* received a FIN but the caller cannot handle it right now: - re-enqueue it and return "no data" */ - netconn_set_flags(conn, NETCONN_FIN_RX_PENDING); - 8013f3c: 68fb ldr r3, [r7, #12] - 8013f3e: 7f1b ldrb r3, [r3, #28] - 8013f40: f063 037f orn r3, r3, #127 ; 0x7f - 8013f44: b2da uxtb r2, r3 - 8013f46: 68fb ldr r3, [r7, #12] - 8013f48: 771a strb r2, [r3, #28] - return ERR_WOULDBLOCK; - 8013f4a: f06f 0306 mvn.w r3, #6 - 8013f4e: e027 b.n 8013fa0 - } else { -handle_fin: - 8013f50: bf00 nop - API_EVENT(conn, NETCONN_EVT_RCVMINUS, 0); - 8013f52: 68fb ldr r3, [r7, #12] - 8013f54: 6a5b ldr r3, [r3, #36] ; 0x24 - 8013f56: 2b00 cmp r3, #0 - 8013f58: d005 beq.n 8013f66 - 8013f5a: 68fb ldr r3, [r7, #12] - 8013f5c: 6a5b ldr r3, [r3, #36] ; 0x24 - 8013f5e: 2200 movs r2, #0 - 8013f60: 2101 movs r1, #1 - 8013f62: 68f8 ldr r0, [r7, #12] - 8013f64: 4798 blx r3 - if (conn->pcb.ip == NULL) { - 8013f66: 68fb ldr r3, [r7, #12] - 8013f68: 685b ldr r3, [r3, #4] - 8013f6a: 2b00 cmp r3, #0 - 8013f6c: d10f bne.n 8013f8e - /* race condition: RST during recv */ - err = netconn_err(conn); - 8013f6e: 68f8 ldr r0, [r7, #12] - 8013f70: f000 f9a3 bl 80142ba - 8013f74: 4603 mov r3, r0 - 8013f76: f887 303f strb.w r3, [r7, #63] ; 0x3f - if (err != ERR_OK) { - 8013f7a: f997 303f ldrsb.w r3, [r7, #63] ; 0x3f - 8013f7e: 2b00 cmp r3, #0 - 8013f80: d002 beq.n 8013f88 - return err; - 8013f82: f997 303f ldrsb.w r3, [r7, #63] ; 0x3f - 8013f86: e00b b.n 8013fa0 - } - return ERR_RST; - 8013f88: f06f 030d mvn.w r3, #13 - 8013f8c: e008 b.n 8013fa0 - } - /* RX side is closed, so deallocate the recvmbox */ - netconn_close_shutdown(conn, NETCONN_SHUT_RD); - 8013f8e: 2101 movs r1, #1 - 8013f90: 68f8 ldr r0, [r7, #12] - 8013f92: f000 f955 bl 8014240 - /* Don' store ERR_CLSD as conn->err since we are only half-closed */ - return ERR_CLSD; - 8013f96: f06f 030e mvn.w r3, #14 - 8013f9a: e001 b.n 8013fa0 - } - } - return err; - 8013f9c: f997 303f ldrsb.w r3, [r7, #63] ; 0x3f -} - 8013fa0: 4618 mov r0, r3 - 8013fa2: 3740 adds r7, #64 ; 0x40 - 8013fa4: 46bd mov sp, r7 - 8013fa6: bd80 pop {r7, pc} - -08013fa8 : - * @return ERR_OK if data has been received, an error code otherwise (timeout, - * memory error or another error) - */ -err_t -netconn_recv(struct netconn *conn, struct netbuf **new_buf) -{ - 8013fa8: b580 push {r7, lr} - 8013faa: b086 sub sp, #24 - 8013fac: af00 add r7, sp, #0 - 8013fae: 6078 str r0, [r7, #4] - 8013fb0: 6039 str r1, [r7, #0] -#if LWIP_TCP - struct netbuf *buf = NULL; - 8013fb2: 2300 movs r3, #0 - 8013fb4: 617b str r3, [r7, #20] - err_t err; -#endif /* LWIP_TCP */ - - LWIP_ERROR("netconn_recv: invalid pointer", (new_buf != NULL), return ERR_ARG;); - 8013fb6: 683b ldr r3, [r7, #0] - 8013fb8: 2b00 cmp r3, #0 - 8013fba: d109 bne.n 8013fd0 - 8013fbc: 4b32 ldr r3, [pc, #200] ; (8014088 ) - 8013fbe: f240 3263 movw r2, #867 ; 0x363 - 8013fc2: 4932 ldr r1, [pc, #200] ; (801408c ) - 8013fc4: 4832 ldr r0, [pc, #200] ; (8014090 ) - 8013fc6: f00d fcdf bl 8021988 - 8013fca: f06f 030f mvn.w r3, #15 - 8013fce: e056 b.n 801407e - *new_buf = NULL; - 8013fd0: 683b ldr r3, [r7, #0] - 8013fd2: 2200 movs r2, #0 - 8013fd4: 601a str r2, [r3, #0] - LWIP_ERROR("netconn_recv: invalid conn", (conn != NULL), return ERR_ARG;); - 8013fd6: 687b ldr r3, [r7, #4] - 8013fd8: 2b00 cmp r3, #0 - 8013fda: d109 bne.n 8013ff0 - 8013fdc: 4b2a ldr r3, [pc, #168] ; (8014088 ) - 8013fde: f240 3265 movw r2, #869 ; 0x365 - 8013fe2: 492c ldr r1, [pc, #176] ; (8014094 ) - 8013fe4: 482a ldr r0, [pc, #168] ; (8014090 ) - 8013fe6: f00d fccf bl 8021988 - 8013fea: f06f 030f mvn.w r3, #15 - 8013fee: e046 b.n 801407e - -#if LWIP_TCP -#if (LWIP_UDP || LWIP_RAW) - if (NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP) - 8013ff0: 687b ldr r3, [r7, #4] - 8013ff2: 781b ldrb r3, [r3, #0] - 8013ff4: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 8013ff8: 2b10 cmp r3, #16 - 8013ffa: d13a bne.n 8014072 -#endif /* (LWIP_UDP || LWIP_RAW) */ - { - struct pbuf *p = NULL; - 8013ffc: 2300 movs r3, #0 - 8013ffe: 60fb str r3, [r7, #12] - /* This is not a listening netconn, since recvmbox is set */ - - buf = (struct netbuf *)memp_malloc(MEMP_NETBUF); - 8014000: 2006 movs r0, #6 - 8014002: f002 fd65 bl 8016ad0 - 8014006: 6178 str r0, [r7, #20] - if (buf == NULL) { - 8014008: 697b ldr r3, [r7, #20] - 801400a: 2b00 cmp r3, #0 - 801400c: d102 bne.n 8014014 - return ERR_MEM; - 801400e: f04f 33ff mov.w r3, #4294967295 - 8014012: e034 b.n 801407e - } - - err = netconn_recv_data_tcp(conn, &p, 0); - 8014014: f107 030c add.w r3, r7, #12 - 8014018: 2200 movs r2, #0 - 801401a: 4619 mov r1, r3 - 801401c: 6878 ldr r0, [r7, #4] - 801401e: f7ff ff3f bl 8013ea0 - 8014022: 4603 mov r3, r0 - 8014024: 74fb strb r3, [r7, #19] - if (err != ERR_OK) { - 8014026: f997 3013 ldrsb.w r3, [r7, #19] - 801402a: 2b00 cmp r3, #0 - 801402c: d006 beq.n 801403c - memp_free(MEMP_NETBUF, buf); - 801402e: 6979 ldr r1, [r7, #20] - 8014030: 2006 movs r0, #6 - 8014032: f002 fdc3 bl 8016bbc - return err; - 8014036: f997 3013 ldrsb.w r3, [r7, #19] - 801403a: e020 b.n 801407e - } - LWIP_ASSERT("p != NULL", p != NULL); - 801403c: 68fb ldr r3, [r7, #12] - 801403e: 2b00 cmp r3, #0 - 8014040: d106 bne.n 8014050 - 8014042: 4b11 ldr r3, [pc, #68] ; (8014088 ) - 8014044: f240 3279 movw r2, #889 ; 0x379 - 8014048: 4913 ldr r1, [pc, #76] ; (8014098 ) - 801404a: 4811 ldr r0, [pc, #68] ; (8014090 ) - 801404c: f00d fc9c bl 8021988 - - buf->p = p; - 8014050: 68fa ldr r2, [r7, #12] - 8014052: 697b ldr r3, [r7, #20] - 8014054: 601a str r2, [r3, #0] - buf->ptr = p; - 8014056: 68fa ldr r2, [r7, #12] - 8014058: 697b ldr r3, [r7, #20] - 801405a: 605a str r2, [r3, #4] - buf->port = 0; - 801405c: 697b ldr r3, [r7, #20] - 801405e: 2200 movs r2, #0 - 8014060: 819a strh r2, [r3, #12] - ip_addr_set_zero(&buf->addr); - 8014062: 697b ldr r3, [r7, #20] - 8014064: 2200 movs r2, #0 - 8014066: 609a str r2, [r3, #8] - *new_buf = buf; - 8014068: 683b ldr r3, [r7, #0] - 801406a: 697a ldr r2, [r7, #20] - 801406c: 601a str r2, [r3, #0] - /* don't set conn->last_err: it's only ERR_OK, anyway */ - return ERR_OK; - 801406e: 2300 movs r3, #0 - 8014070: e005 b.n 801407e -#if LWIP_TCP && (LWIP_UDP || LWIP_RAW) - else -#endif /* LWIP_TCP && (LWIP_UDP || LWIP_RAW) */ - { -#if (LWIP_UDP || LWIP_RAW) - return netconn_recv_data(conn, (void **)new_buf, 0); - 8014072: 2200 movs r2, #0 - 8014074: 6839 ldr r1, [r7, #0] - 8014076: 6878 ldr r0, [r7, #4] - 8014078: f7ff fe1a bl 8013cb0 - 801407c: 4603 mov r3, r0 -#endif /* (LWIP_UDP || LWIP_RAW) */ - } -} - 801407e: 4618 mov r0, r3 - 8014080: 3718 adds r7, #24 - 8014082: 46bd mov sp, r7 - 8014084: bd80 pop {r7, pc} - 8014086: bf00 nop - 8014088: 080232cc .word 0x080232cc - 801408c: 080234e4 .word 0x080234e4 - 8014090: 08023324 .word 0x08023324 - 8014094: 08023504 .word 0x08023504 - 8014098: 0802357c .word 0x0802357c - -0801409c : - * @return ERR_OK if data was sent, any other err_t on error - */ -err_t -netconn_write_partly(struct netconn *conn, const void *dataptr, size_t size, - u8_t apiflags, size_t *bytes_written) -{ - 801409c: b580 push {r7, lr} - 801409e: b088 sub sp, #32 - 80140a0: af02 add r7, sp, #8 - 80140a2: 60f8 str r0, [r7, #12] - 80140a4: 60b9 str r1, [r7, #8] - 80140a6: 607a str r2, [r7, #4] - 80140a8: 70fb strb r3, [r7, #3] - struct netvector vector; - vector.ptr = dataptr; - 80140aa: 68bb ldr r3, [r7, #8] - 80140ac: 613b str r3, [r7, #16] - vector.len = size; - 80140ae: 687b ldr r3, [r7, #4] - 80140b0: 617b str r3, [r7, #20] - return netconn_write_vectors_partly(conn, &vector, 1, apiflags, bytes_written); - 80140b2: 78fa ldrb r2, [r7, #3] - 80140b4: f107 0110 add.w r1, r7, #16 - 80140b8: 6a3b ldr r3, [r7, #32] - 80140ba: 9300 str r3, [sp, #0] - 80140bc: 4613 mov r3, r2 - 80140be: 2201 movs r2, #1 - 80140c0: 68f8 ldr r0, [r7, #12] - 80140c2: f000 f805 bl 80140d0 - 80140c6: 4603 mov r3, r0 -} - 80140c8: 4618 mov r0, r3 - 80140ca: 3718 adds r7, #24 - 80140cc: 46bd mov sp, r7 - 80140ce: bd80 pop {r7, pc} - -080140d0 : - * @return ERR_OK if data was sent, any other err_t on error - */ -err_t -netconn_write_vectors_partly(struct netconn *conn, struct netvector *vectors, u16_t vectorcnt, - u8_t apiflags, size_t *bytes_written) -{ - 80140d0: b580 push {r7, lr} - 80140d2: b092 sub sp, #72 ; 0x48 - 80140d4: af00 add r7, sp, #0 - 80140d6: 60f8 str r0, [r7, #12] - 80140d8: 60b9 str r1, [r7, #8] - 80140da: 4611 mov r1, r2 - 80140dc: 461a mov r2, r3 - 80140de: 460b mov r3, r1 - 80140e0: 80fb strh r3, [r7, #6] - 80140e2: 4613 mov r3, r2 - 80140e4: 717b strb r3, [r7, #5] - err_t err; - u8_t dontblock; - size_t size; - int i; - - LWIP_ERROR("netconn_write: invalid conn", (conn != NULL), return ERR_ARG;); - 80140e6: 68fb ldr r3, [r7, #12] - 80140e8: 2b00 cmp r3, #0 - 80140ea: d109 bne.n 8014100 - 80140ec: 4b4e ldr r3, [pc, #312] ; (8014228 ) - 80140ee: f240 32ee movw r2, #1006 ; 0x3ee - 80140f2: 494e ldr r1, [pc, #312] ; (801422c ) - 80140f4: 484e ldr r0, [pc, #312] ; (8014230 ) - 80140f6: f00d fc47 bl 8021988 - 80140fa: f06f 030f mvn.w r3, #15 - 80140fe: e08e b.n 801421e - LWIP_ERROR("netconn_write: invalid conn->type", (NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP), return ERR_VAL;); - 8014100: 68fb ldr r3, [r7, #12] - 8014102: 781b ldrb r3, [r3, #0] - 8014104: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 8014108: 2b10 cmp r3, #16 - 801410a: d009 beq.n 8014120 - 801410c: 4b46 ldr r3, [pc, #280] ; (8014228 ) - 801410e: f240 32ef movw r2, #1007 ; 0x3ef - 8014112: 4948 ldr r1, [pc, #288] ; (8014234 ) - 8014114: 4846 ldr r0, [pc, #280] ; (8014230 ) - 8014116: f00d fc37 bl 8021988 - 801411a: f06f 0305 mvn.w r3, #5 - 801411e: e07e b.n 801421e - dontblock = netconn_is_nonblocking(conn) || (apiflags & NETCONN_DONTBLOCK); - 8014120: 68fb ldr r3, [r7, #12] - 8014122: 7f1b ldrb r3, [r3, #28] - 8014124: f003 0302 and.w r3, r3, #2 - 8014128: 2b00 cmp r3, #0 - 801412a: d104 bne.n 8014136 - 801412c: 797b ldrb r3, [r7, #5] - 801412e: f003 0304 and.w r3, r3, #4 - 8014132: 2b00 cmp r3, #0 - 8014134: d001 beq.n 801413a - 8014136: 2301 movs r3, #1 - 8014138: e000 b.n 801413c - 801413a: 2300 movs r3, #0 - 801413c: f887 303f strb.w r3, [r7, #63] ; 0x3f -#if LWIP_SO_SNDTIMEO - if (conn->send_timeout != 0) { - dontblock = 1; - } -#endif /* LWIP_SO_SNDTIMEO */ - if (dontblock && !bytes_written) { - 8014140: f897 303f ldrb.w r3, [r7, #63] ; 0x3f - 8014144: 2b00 cmp r3, #0 - 8014146: d005 beq.n 8014154 - 8014148: 6d3b ldr r3, [r7, #80] ; 0x50 - 801414a: 2b00 cmp r3, #0 - 801414c: d102 bne.n 8014154 - /* This implies netconn_write() cannot be used for non-blocking send, since - it has no way to return the number of bytes written. */ - return ERR_VAL; - 801414e: f06f 0305 mvn.w r3, #5 - 8014152: e064 b.n 801421e - } - - /* sum up the total size */ - size = 0; - 8014154: 2300 movs r3, #0 - 8014156: 647b str r3, [r7, #68] ; 0x44 - for (i = 0; i < vectorcnt; i++) { - 8014158: 2300 movs r3, #0 - 801415a: 643b str r3, [r7, #64] ; 0x40 - 801415c: e015 b.n 801418a - size += vectors[i].len; - 801415e: 6c3b ldr r3, [r7, #64] ; 0x40 - 8014160: 00db lsls r3, r3, #3 - 8014162: 68ba ldr r2, [r7, #8] - 8014164: 4413 add r3, r2 - 8014166: 685b ldr r3, [r3, #4] - 8014168: 6c7a ldr r2, [r7, #68] ; 0x44 - 801416a: 4413 add r3, r2 - 801416c: 647b str r3, [r7, #68] ; 0x44 - if (size < vectors[i].len) { - 801416e: 6c3b ldr r3, [r7, #64] ; 0x40 - 8014170: 00db lsls r3, r3, #3 - 8014172: 68ba ldr r2, [r7, #8] - 8014174: 4413 add r3, r2 - 8014176: 685b ldr r3, [r3, #4] - 8014178: 6c7a ldr r2, [r7, #68] ; 0x44 - 801417a: 429a cmp r2, r3 - 801417c: d202 bcs.n 8014184 - /* overflow */ - return ERR_VAL; - 801417e: f06f 0305 mvn.w r3, #5 - 8014182: e04c b.n 801421e - for (i = 0; i < vectorcnt; i++) { - 8014184: 6c3b ldr r3, [r7, #64] ; 0x40 - 8014186: 3301 adds r3, #1 - 8014188: 643b str r3, [r7, #64] ; 0x40 - 801418a: 88fb ldrh r3, [r7, #6] - 801418c: 6c3a ldr r2, [r7, #64] ; 0x40 - 801418e: 429a cmp r2, r3 - 8014190: dbe5 blt.n 801415e - } - } - if (size == 0) { - 8014192: 6c7b ldr r3, [r7, #68] ; 0x44 - 8014194: 2b00 cmp r3, #0 - 8014196: d101 bne.n 801419c - return ERR_OK; - 8014198: 2300 movs r3, #0 - 801419a: e040 b.n 801421e - } else if (size > SSIZE_MAX) { - 801419c: 6c7b ldr r3, [r7, #68] ; 0x44 - 801419e: 2b00 cmp r3, #0 - 80141a0: da0a bge.n 80141b8 - ssize_t limited; - /* this is required by the socket layer (cannot send full size_t range) */ - if (!bytes_written) { - 80141a2: 6d3b ldr r3, [r7, #80] ; 0x50 - 80141a4: 2b00 cmp r3, #0 - 80141a6: d102 bne.n 80141ae - return ERR_VAL; - 80141a8: f06f 0305 mvn.w r3, #5 - 80141ac: e037 b.n 801421e - } - /* limit the amount of data to send */ - limited = SSIZE_MAX; - 80141ae: f06f 4300 mvn.w r3, #2147483648 ; 0x80000000 - 80141b2: 63bb str r3, [r7, #56] ; 0x38 - size = (size_t)limited; - 80141b4: 6bbb ldr r3, [r7, #56] ; 0x38 - 80141b6: 647b str r3, [r7, #68] ; 0x44 - } - - API_MSG_VAR_ALLOC(msg); - /* non-blocking write sends as much */ - API_MSG_VAR_REF(msg).conn = conn; - 80141b8: 68fb ldr r3, [r7, #12] - 80141ba: 617b str r3, [r7, #20] - API_MSG_VAR_REF(msg).msg.w.vector = vectors; - 80141bc: 68bb ldr r3, [r7, #8] - 80141be: 61fb str r3, [r7, #28] - API_MSG_VAR_REF(msg).msg.w.vector_cnt = vectorcnt; - 80141c0: 88fb ldrh r3, [r7, #6] - 80141c2: 843b strh r3, [r7, #32] - API_MSG_VAR_REF(msg).msg.w.vector_off = 0; - 80141c4: 2300 movs r3, #0 - 80141c6: 627b str r3, [r7, #36] ; 0x24 - API_MSG_VAR_REF(msg).msg.w.apiflags = apiflags; - 80141c8: 797b ldrb r3, [r7, #5] - 80141ca: f887 3030 strb.w r3, [r7, #48] ; 0x30 - API_MSG_VAR_REF(msg).msg.w.len = size; - 80141ce: 6c7b ldr r3, [r7, #68] ; 0x44 - 80141d0: 62bb str r3, [r7, #40] ; 0x28 - API_MSG_VAR_REF(msg).msg.w.offset = 0; - 80141d2: 2300 movs r3, #0 - 80141d4: 62fb str r3, [r7, #44] ; 0x2c -#endif /* LWIP_SO_SNDTIMEO */ - - /* For locking the core: this _can_ be delayed on low memory/low send buffer, - but if it is, this is done inside api_msg.c:do_write(), so we can use the - non-blocking version here. */ - err = netconn_apimsg(lwip_netconn_do_write, &API_MSG_VAR_REF(msg)); - 80141d6: f107 0314 add.w r3, r7, #20 - 80141da: 4619 mov r1, r3 - 80141dc: 4816 ldr r0, [pc, #88] ; (8014238 ) - 80141de: f7ff fc1d bl 8013a1c - 80141e2: 4603 mov r3, r0 - 80141e4: f887 3037 strb.w r3, [r7, #55] ; 0x37 - if (err == ERR_OK) { - 80141e8: f997 3037 ldrsb.w r3, [r7, #55] ; 0x37 - 80141ec: 2b00 cmp r3, #0 - 80141ee: d114 bne.n 801421a - if (bytes_written != NULL) { - 80141f0: 6d3b ldr r3, [r7, #80] ; 0x50 - 80141f2: 2b00 cmp r3, #0 - 80141f4: d002 beq.n 80141fc - *bytes_written = API_MSG_VAR_REF(msg).msg.w.offset; - 80141f6: 6afa ldr r2, [r7, #44] ; 0x2c - 80141f8: 6d3b ldr r3, [r7, #80] ; 0x50 - 80141fa: 601a str r2, [r3, #0] - } - /* for blocking, check all requested bytes were written, NOTE: send_timeout is - treated as dontblock (see dontblock assignment above) */ - if (!dontblock) { - 80141fc: f897 303f ldrb.w r3, [r7, #63] ; 0x3f - 8014200: 2b00 cmp r3, #0 - 8014202: d10a bne.n 801421a - LWIP_ASSERT("do_write failed to write all bytes", API_MSG_VAR_REF(msg).msg.w.offset == size); - 8014204: 6afb ldr r3, [r7, #44] ; 0x2c - 8014206: 6c7a ldr r2, [r7, #68] ; 0x44 - 8014208: 429a cmp r2, r3 - 801420a: d006 beq.n 801421a - 801420c: 4b06 ldr r3, [pc, #24] ; (8014228 ) - 801420e: f44f 6286 mov.w r2, #1072 ; 0x430 - 8014212: 490a ldr r1, [pc, #40] ; (801423c ) - 8014214: 4806 ldr r0, [pc, #24] ; (8014230 ) - 8014216: f00d fbb7 bl 8021988 - } - } - API_MSG_VAR_FREE(msg); - - return err; - 801421a: f997 3037 ldrsb.w r3, [r7, #55] ; 0x37 -} - 801421e: 4618 mov r0, r3 - 8014220: 3748 adds r7, #72 ; 0x48 - 8014222: 46bd mov sp, r7 - 8014224: bd80 pop {r7, pc} - 8014226: bf00 nop - 8014228: 080232cc .word 0x080232cc - 801422c: 080235a4 .word 0x080235a4 - 8014230: 08023324 .word 0x08023324 - 8014234: 080235c0 .word 0x080235c0 - 8014238: 0801586d .word 0x0801586d - 801423c: 080235e4 .word 0x080235e4 - -08014240 : - * @param how fully close or only shutdown one side? - * @return ERR_OK if the netconn was closed, any other err_t on error - */ -static err_t -netconn_close_shutdown(struct netconn *conn, u8_t how) -{ - 8014240: b580 push {r7, lr} - 8014242: b08c sub sp, #48 ; 0x30 - 8014244: af00 add r7, sp, #0 - 8014246: 6078 str r0, [r7, #4] - 8014248: 460b mov r3, r1 - 801424a: 70fb strb r3, [r7, #3] - API_MSG_VAR_DECLARE(msg); - err_t err; - LWIP_UNUSED_ARG(how); - - LWIP_ERROR("netconn_close: invalid conn", (conn != NULL), return ERR_ARG;); - 801424c: 687b ldr r3, [r7, #4] - 801424e: 2b00 cmp r3, #0 - 8014250: d109 bne.n 8014266 - 8014252: 4b0f ldr r3, [pc, #60] ; (8014290 ) - 8014254: f240 4247 movw r2, #1095 ; 0x447 - 8014258: 490e ldr r1, [pc, #56] ; (8014294 ) - 801425a: 480f ldr r0, [pc, #60] ; (8014298 ) - 801425c: f00d fb94 bl 8021988 - 8014260: f06f 030f mvn.w r3, #15 - 8014264: e010 b.n 8014288 - - API_MSG_VAR_ALLOC(msg); - API_MSG_VAR_REF(msg).conn = conn; - 8014266: 687b ldr r3, [r7, #4] - 8014268: 60fb str r3, [r7, #12] -#if LWIP_TCP - /* shutting down both ends is the same as closing */ - API_MSG_VAR_REF(msg).msg.sd.shut = how; - 801426a: 78fb ldrb r3, [r7, #3] - 801426c: 753b strb r3, [r7, #20] -#if LWIP_SO_SNDTIMEO || LWIP_SO_LINGER - /* get the time we started, which is later compared to - sys_now() + conn->send_timeout */ - API_MSG_VAR_REF(msg).msg.sd.time_started = sys_now(); -#else /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */ - API_MSG_VAR_REF(msg).msg.sd.polls_left = - 801426e: 2329 movs r3, #41 ; 0x29 - 8014270: 757b strb r3, [r7, #21] - ((LWIP_TCP_CLOSE_TIMEOUT_MS_DEFAULT + TCP_SLOW_INTERVAL - 1) / TCP_SLOW_INTERVAL) + 1; -#endif /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */ -#endif /* LWIP_TCP */ - err = netconn_apimsg(lwip_netconn_do_close, &API_MSG_VAR_REF(msg)); - 8014272: f107 030c add.w r3, r7, #12 - 8014276: 4619 mov r1, r3 - 8014278: 4808 ldr r0, [pc, #32] ; (801429c ) - 801427a: f7ff fbcf bl 8013a1c - 801427e: 4603 mov r3, r0 - 8014280: f887 302f strb.w r3, [r7, #47] ; 0x2f - API_MSG_VAR_FREE(msg); - - return err; - 8014284: f997 302f ldrsb.w r3, [r7, #47] ; 0x2f -} - 8014288: 4618 mov r0, r3 - 801428a: 3730 adds r7, #48 ; 0x30 - 801428c: 46bd mov sp, r7 - 801428e: bd80 pop {r7, pc} - 8014290: 080232cc .word 0x080232cc - 8014294: 08023608 .word 0x08023608 - 8014298: 08023324 .word 0x08023324 - 801429c: 08015985 .word 0x08015985 - -080142a0 : - * @param conn the TCP netconn to close - * @return ERR_OK if the netconn was closed, any other err_t on error - */ -err_t -netconn_close(struct netconn *conn) -{ - 80142a0: b580 push {r7, lr} - 80142a2: b082 sub sp, #8 - 80142a4: af00 add r7, sp, #0 - 80142a6: 6078 str r0, [r7, #4] - /* shutting down both ends is the same as closing */ - return netconn_close_shutdown(conn, NETCONN_SHUT_RDWR); - 80142a8: 2103 movs r1, #3 - 80142aa: 6878 ldr r0, [r7, #4] - 80142ac: f7ff ffc8 bl 8014240 - 80142b0: 4603 mov r3, r0 -} - 80142b2: 4618 mov r0, r3 - 80142b4: 3708 adds r7, #8 - 80142b6: 46bd mov sp, r7 - 80142b8: bd80 pop {r7, pc} - -080142ba : - * @param conn the netconn to get the error from - * @return and pending error or ERR_OK if no error was pending - */ -err_t -netconn_err(struct netconn *conn) -{ - 80142ba: b580 push {r7, lr} - 80142bc: b084 sub sp, #16 - 80142be: af00 add r7, sp, #0 - 80142c0: 6078 str r0, [r7, #4] - err_t err; - SYS_ARCH_DECL_PROTECT(lev); - if (conn == NULL) { - 80142c2: 687b ldr r3, [r7, #4] - 80142c4: 2b00 cmp r3, #0 - 80142c6: d101 bne.n 80142cc - return ERR_OK; - 80142c8: 2300 movs r3, #0 - 80142ca: e00d b.n 80142e8 - } - SYS_ARCH_PROTECT(lev); - 80142cc: f00d f9c2 bl 8021654 - 80142d0: 60f8 str r0, [r7, #12] - err = conn->pending_err; - 80142d2: 687b ldr r3, [r7, #4] - 80142d4: 7a1b ldrb r3, [r3, #8] - 80142d6: 72fb strb r3, [r7, #11] - conn->pending_err = ERR_OK; - 80142d8: 687b ldr r3, [r7, #4] - 80142da: 2200 movs r2, #0 - 80142dc: 721a strb r2, [r3, #8] - SYS_ARCH_UNPROTECT(lev); - 80142de: 68f8 ldr r0, [r7, #12] - 80142e0: f00d f9c6 bl 8021670 - return err; - 80142e4: f997 300b ldrsb.w r3, [r7, #11] -} - 80142e8: 4618 mov r0, r3 - 80142ea: 3710 adds r7, #16 - 80142ec: 46bd mov sp, r7 - 80142ee: bd80 pop {r7, pc} - -080142f0 : -const u8_t netconn_closed = 0; - -/** Translate an error to a unique void* passed via an mbox */ -static void * -lwip_netconn_err_to_msg(err_t err) -{ - 80142f0: b580 push {r7, lr} - 80142f2: b082 sub sp, #8 - 80142f4: af00 add r7, sp, #0 - 80142f6: 4603 mov r3, r0 - 80142f8: 71fb strb r3, [r7, #7] - switch (err) { - 80142fa: f997 3007 ldrsb.w r3, [r7, #7] - 80142fe: f113 0f0d cmn.w r3, #13 - 8014302: d009 beq.n 8014318 - 8014304: f113 0f0d cmn.w r3, #13 - 8014308: dc0c bgt.n 8014324 - 801430a: f113 0f0f cmn.w r3, #15 - 801430e: d007 beq.n 8014320 - 8014310: f113 0f0e cmn.w r3, #14 - 8014314: d002 beq.n 801431c - 8014316: e005 b.n 8014324 - case ERR_ABRT: - return LWIP_CONST_CAST(void *, &netconn_aborted); - 8014318: 4b0a ldr r3, [pc, #40] ; (8014344 ) - 801431a: e00e b.n 801433a - case ERR_RST: - return LWIP_CONST_CAST(void *, &netconn_reset); - 801431c: 4b0a ldr r3, [pc, #40] ; (8014348 ) - 801431e: e00c b.n 801433a - case ERR_CLSD: - return LWIP_CONST_CAST(void *, &netconn_closed); - 8014320: 4b0a ldr r3, [pc, #40] ; (801434c ) - 8014322: e00a b.n 801433a - default: - LWIP_ASSERT("unhandled error", err == ERR_OK); - 8014324: f997 3007 ldrsb.w r3, [r7, #7] - 8014328: 2b00 cmp r3, #0 - 801432a: d005 beq.n 8014338 - 801432c: 4b08 ldr r3, [pc, #32] ; (8014350 ) - 801432e: 227d movs r2, #125 ; 0x7d - 8014330: 4908 ldr r1, [pc, #32] ; (8014354 ) - 8014332: 4809 ldr r0, [pc, #36] ; (8014358 ) - 8014334: f00d fb28 bl 8021988 - return NULL; - 8014338: 2300 movs r3, #0 - } -} - 801433a: 4618 mov r0, r3 - 801433c: 3708 adds r7, #8 - 801433e: 46bd mov sp, r7 - 8014340: bd80 pop {r7, pc} - 8014342: bf00 nop - 8014344: 08026ba4 .word 0x08026ba4 - 8014348: 08026ba5 .word 0x08026ba5 - 801434c: 08026ba6 .word 0x08026ba6 - 8014350: 08023624 .word 0x08023624 - 8014354: 08023658 .word 0x08023658 - 8014358: 08023668 .word 0x08023668 - -0801435c : - -int -lwip_netconn_is_err_msg(void *msg, err_t *err) -{ - 801435c: b580 push {r7, lr} - 801435e: b082 sub sp, #8 - 8014360: af00 add r7, sp, #0 - 8014362: 6078 str r0, [r7, #4] - 8014364: 6039 str r1, [r7, #0] - LWIP_ASSERT("err != NULL", err != NULL); - 8014366: 683b ldr r3, [r7, #0] - 8014368: 2b00 cmp r3, #0 - 801436a: d105 bne.n 8014378 - 801436c: 4b12 ldr r3, [pc, #72] ; (80143b8 ) - 801436e: 2285 movs r2, #133 ; 0x85 - 8014370: 4912 ldr r1, [pc, #72] ; (80143bc ) - 8014372: 4813 ldr r0, [pc, #76] ; (80143c0 ) - 8014374: f00d fb08 bl 8021988 - - if (msg == &netconn_aborted) { - 8014378: 687b ldr r3, [r7, #4] - 801437a: 4a12 ldr r2, [pc, #72] ; (80143c4 ) - 801437c: 4293 cmp r3, r2 - 801437e: d104 bne.n 801438a - *err = ERR_ABRT; - 8014380: 683b ldr r3, [r7, #0] - 8014382: 22f3 movs r2, #243 ; 0xf3 - 8014384: 701a strb r2, [r3, #0] - return 1; - 8014386: 2301 movs r3, #1 - 8014388: e012 b.n 80143b0 - } else if (msg == &netconn_reset) { - 801438a: 687b ldr r3, [r7, #4] - 801438c: 4a0e ldr r2, [pc, #56] ; (80143c8 ) - 801438e: 4293 cmp r3, r2 - 8014390: d104 bne.n 801439c - *err = ERR_RST; - 8014392: 683b ldr r3, [r7, #0] - 8014394: 22f2 movs r2, #242 ; 0xf2 - 8014396: 701a strb r2, [r3, #0] - return 1; - 8014398: 2301 movs r3, #1 - 801439a: e009 b.n 80143b0 - } else if (msg == &netconn_closed) { - 801439c: 687b ldr r3, [r7, #4] - 801439e: 4a0b ldr r2, [pc, #44] ; (80143cc ) - 80143a0: 4293 cmp r3, r2 - 80143a2: d104 bne.n 80143ae - *err = ERR_CLSD; - 80143a4: 683b ldr r3, [r7, #0] - 80143a6: 22f1 movs r2, #241 ; 0xf1 - 80143a8: 701a strb r2, [r3, #0] - return 1; - 80143aa: 2301 movs r3, #1 - 80143ac: e000 b.n 80143b0 - } - return 0; - 80143ae: 2300 movs r3, #0 -} - 80143b0: 4618 mov r0, r3 - 80143b2: 3708 adds r7, #8 - 80143b4: 46bd mov sp, r7 - 80143b6: bd80 pop {r7, pc} - 80143b8: 08023624 .word 0x08023624 - 80143bc: 08023690 .word 0x08023690 - 80143c0: 08023668 .word 0x08023668 - 80143c4: 08026ba4 .word 0x08026ba4 - 80143c8: 08026ba5 .word 0x08026ba5 - 80143cc: 08026ba6 .word 0x08026ba6 - -080143d0 : - * @see udp.h (struct udp_pcb.recv) for parameters - */ -static void -recv_udp(void *arg, struct udp_pcb *pcb, struct pbuf *p, - const ip_addr_t *addr, u16_t port) -{ - 80143d0: b580 push {r7, lr} - 80143d2: b088 sub sp, #32 - 80143d4: af00 add r7, sp, #0 - 80143d6: 60f8 str r0, [r7, #12] - 80143d8: 60b9 str r1, [r7, #8] - 80143da: 607a str r2, [r7, #4] - 80143dc: 603b str r3, [r7, #0] -#if LWIP_SO_RCVBUF - int recv_avail; -#endif /* LWIP_SO_RCVBUF */ - - LWIP_UNUSED_ARG(pcb); /* only used for asserts... */ - LWIP_ASSERT("recv_udp must have a pcb argument", pcb != NULL); - 80143de: 68bb ldr r3, [r7, #8] - 80143e0: 2b00 cmp r3, #0 - 80143e2: d105 bne.n 80143f0 - 80143e4: 4b34 ldr r3, [pc, #208] ; (80144b8 ) - 80143e6: 22e5 movs r2, #229 ; 0xe5 - 80143e8: 4934 ldr r1, [pc, #208] ; (80144bc ) - 80143ea: 4835 ldr r0, [pc, #212] ; (80144c0 ) - 80143ec: f00d facc bl 8021988 - LWIP_ASSERT("recv_udp must have an argument", arg != NULL); - 80143f0: 68fb ldr r3, [r7, #12] - 80143f2: 2b00 cmp r3, #0 - 80143f4: d105 bne.n 8014402 - 80143f6: 4b30 ldr r3, [pc, #192] ; (80144b8 ) - 80143f8: 22e6 movs r2, #230 ; 0xe6 - 80143fa: 4932 ldr r1, [pc, #200] ; (80144c4 ) - 80143fc: 4830 ldr r0, [pc, #192] ; (80144c0 ) - 80143fe: f00d fac3 bl 8021988 - conn = (struct netconn *)arg; - 8014402: 68fb ldr r3, [r7, #12] - 8014404: 61fb str r3, [r7, #28] - - if (conn == NULL) { - 8014406: 69fb ldr r3, [r7, #28] - 8014408: 2b00 cmp r3, #0 - 801440a: d103 bne.n 8014414 - pbuf_free(p); - 801440c: 6878 ldr r0, [r7, #4] - 801440e: f003 fb73 bl 8017af8 - return; - 8014412: e04d b.n 80144b0 - } - - LWIP_ASSERT("recv_udp: recv for wrong pcb!", conn->pcb.udp == pcb); - 8014414: 69fb ldr r3, [r7, #28] - 8014416: 685b ldr r3, [r3, #4] - 8014418: 68ba ldr r2, [r7, #8] - 801441a: 429a cmp r2, r3 - 801441c: d005 beq.n 801442a - 801441e: 4b26 ldr r3, [pc, #152] ; (80144b8 ) - 8014420: 22ee movs r2, #238 ; 0xee - 8014422: 4929 ldr r1, [pc, #164] ; (80144c8 ) - 8014424: 4826 ldr r0, [pc, #152] ; (80144c0 ) - 8014426: f00d faaf bl 8021988 -#if LWIP_SO_RCVBUF - SYS_ARCH_GET(conn->recv_avail, recv_avail); - if (!NETCONN_MBOX_VALID(conn, &conn->recvmbox) || - ((recv_avail + (int)(p->tot_len)) > conn->recv_bufsize)) { -#else /* LWIP_SO_RCVBUF */ - if (!NETCONN_MBOX_VALID(conn, &conn->recvmbox)) { - 801442a: 69fb ldr r3, [r7, #28] - 801442c: 3310 adds r3, #16 - 801442e: 4618 mov r0, r3 - 8014430: f00c fff5 bl 802141e - 8014434: 4603 mov r3, r0 - 8014436: 2b00 cmp r3, #0 - 8014438: d103 bne.n 8014442 -#endif /* LWIP_SO_RCVBUF */ - pbuf_free(p); - 801443a: 6878 ldr r0, [r7, #4] - 801443c: f003 fb5c bl 8017af8 - return; - 8014440: e036 b.n 80144b0 - } - - buf = (struct netbuf *)memp_malloc(MEMP_NETBUF); - 8014442: 2006 movs r0, #6 - 8014444: f002 fb44 bl 8016ad0 - 8014448: 61b8 str r0, [r7, #24] - if (buf == NULL) { - 801444a: 69bb ldr r3, [r7, #24] - 801444c: 2b00 cmp r3, #0 - 801444e: d103 bne.n 8014458 - pbuf_free(p); - 8014450: 6878 ldr r0, [r7, #4] - 8014452: f003 fb51 bl 8017af8 - return; - 8014456: e02b b.n 80144b0 - } else { - buf->p = p; - 8014458: 69bb ldr r3, [r7, #24] - 801445a: 687a ldr r2, [r7, #4] - 801445c: 601a str r2, [r3, #0] - buf->ptr = p; - 801445e: 69bb ldr r3, [r7, #24] - 8014460: 687a ldr r2, [r7, #4] - 8014462: 605a str r2, [r3, #4] - ip_addr_set(&buf->addr, addr); - 8014464: 683b ldr r3, [r7, #0] - 8014466: 2b00 cmp r3, #0 - 8014468: d002 beq.n 8014470 - 801446a: 683b ldr r3, [r7, #0] - 801446c: 681b ldr r3, [r3, #0] - 801446e: e000 b.n 8014472 - 8014470: 2300 movs r3, #0 - 8014472: 69ba ldr r2, [r7, #24] - 8014474: 6093 str r3, [r2, #8] - buf->port = port; - 8014476: 69bb ldr r3, [r7, #24] - 8014478: 8d3a ldrh r2, [r7, #40] ; 0x28 - 801447a: 819a strh r2, [r3, #12] - buf->toport_chksum = udphdr->dest; - } -#endif /* LWIP_NETBUF_RECVINFO */ - } - - len = p->tot_len; - 801447c: 687b ldr r3, [r7, #4] - 801447e: 891b ldrh r3, [r3, #8] - 8014480: 82fb strh r3, [r7, #22] - if (sys_mbox_trypost(&conn->recvmbox, buf) != ERR_OK) { - 8014482: 69fb ldr r3, [r7, #28] - 8014484: 3310 adds r3, #16 - 8014486: 69b9 ldr r1, [r7, #24] - 8014488: 4618 mov r0, r3 - 801448a: f00c ff53 bl 8021334 - 801448e: 4603 mov r3, r0 - 8014490: 2b00 cmp r3, #0 - 8014492: d003 beq.n 801449c - netbuf_delete(buf); - 8014494: 69b8 ldr r0, [r7, #24] - 8014496: f001 fb01 bl 8015a9c - return; - 801449a: e009 b.n 80144b0 - } else { -#if LWIP_SO_RCVBUF - SYS_ARCH_INC(conn->recv_avail, len); -#endif /* LWIP_SO_RCVBUF */ - /* Register event with callback */ - API_EVENT(conn, NETCONN_EVT_RCVPLUS, len); - 801449c: 69fb ldr r3, [r7, #28] - 801449e: 6a5b ldr r3, [r3, #36] ; 0x24 - 80144a0: 2b00 cmp r3, #0 - 80144a2: d005 beq.n 80144b0 - 80144a4: 69fb ldr r3, [r7, #28] - 80144a6: 6a5b ldr r3, [r3, #36] ; 0x24 - 80144a8: 8afa ldrh r2, [r7, #22] - 80144aa: 2100 movs r1, #0 - 80144ac: 69f8 ldr r0, [r7, #28] - 80144ae: 4798 blx r3 - } -} - 80144b0: 3720 adds r7, #32 - 80144b2: 46bd mov sp, r7 - 80144b4: bd80 pop {r7, pc} - 80144b6: bf00 nop - 80144b8: 08023624 .word 0x08023624 - 80144bc: 0802369c .word 0x0802369c - 80144c0: 08023668 .word 0x08023668 - 80144c4: 080236c0 .word 0x080236c0 - 80144c8: 080236e0 .word 0x080236e0 - -080144cc : - * - * @see tcp.h (struct tcp_pcb.recv) for parameters and return value - */ -static err_t -recv_tcp(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err) -{ - 80144cc: b580 push {r7, lr} - 80144ce: b088 sub sp, #32 - 80144d0: af00 add r7, sp, #0 - 80144d2: 60f8 str r0, [r7, #12] - 80144d4: 60b9 str r1, [r7, #8] - 80144d6: 607a str r2, [r7, #4] - 80144d8: 70fb strb r3, [r7, #3] - struct netconn *conn; - u16_t len; - void *msg; - - LWIP_UNUSED_ARG(pcb); - LWIP_ASSERT("recv_tcp must have a pcb argument", pcb != NULL); - 80144da: 68bb ldr r3, [r7, #8] - 80144dc: 2b00 cmp r3, #0 - 80144de: d106 bne.n 80144ee - 80144e0: 4b36 ldr r3, [pc, #216] ; (80145bc ) - 80144e2: f44f 7296 mov.w r2, #300 ; 0x12c - 80144e6: 4936 ldr r1, [pc, #216] ; (80145c0 ) - 80144e8: 4836 ldr r0, [pc, #216] ; (80145c4 ) - 80144ea: f00d fa4d bl 8021988 - LWIP_ASSERT("recv_tcp must have an argument", arg != NULL); - 80144ee: 68fb ldr r3, [r7, #12] - 80144f0: 2b00 cmp r3, #0 - 80144f2: d106 bne.n 8014502 - 80144f4: 4b31 ldr r3, [pc, #196] ; (80145bc ) - 80144f6: f240 122d movw r2, #301 ; 0x12d - 80144fa: 4933 ldr r1, [pc, #204] ; (80145c8 ) - 80144fc: 4831 ldr r0, [pc, #196] ; (80145c4 ) - 80144fe: f00d fa43 bl 8021988 - LWIP_ASSERT("err != ERR_OK unhandled", err == ERR_OK); - 8014502: f997 3003 ldrsb.w r3, [r7, #3] - 8014506: 2b00 cmp r3, #0 - 8014508: d006 beq.n 8014518 - 801450a: 4b2c ldr r3, [pc, #176] ; (80145bc ) - 801450c: f44f 7297 mov.w r2, #302 ; 0x12e - 8014510: 492e ldr r1, [pc, #184] ; (80145cc ) - 8014512: 482c ldr r0, [pc, #176] ; (80145c4 ) - 8014514: f00d fa38 bl 8021988 - LWIP_UNUSED_ARG(err); /* for LWIP_NOASSERT */ - conn = (struct netconn *)arg; - 8014518: 68fb ldr r3, [r7, #12] - 801451a: 617b str r3, [r7, #20] - - if (conn == NULL) { - 801451c: 697b ldr r3, [r7, #20] - 801451e: 2b00 cmp r3, #0 - 8014520: d102 bne.n 8014528 - return ERR_VAL; - 8014522: f06f 0305 mvn.w r3, #5 - 8014526: e045 b.n 80145b4 - } - LWIP_ASSERT("recv_tcp: recv for wrong pcb!", conn->pcb.tcp == pcb); - 8014528: 697b ldr r3, [r7, #20] - 801452a: 685b ldr r3, [r3, #4] - 801452c: 68ba ldr r2, [r7, #8] - 801452e: 429a cmp r2, r3 - 8014530: d006 beq.n 8014540 - 8014532: 4b22 ldr r3, [pc, #136] ; (80145bc ) - 8014534: f240 1235 movw r2, #309 ; 0x135 - 8014538: 4925 ldr r1, [pc, #148] ; (80145d0 ) - 801453a: 4822 ldr r0, [pc, #136] ; (80145c4 ) - 801453c: f00d fa24 bl 8021988 - - if (!NETCONN_MBOX_VALID(conn, &conn->recvmbox)) { - 8014540: 697b ldr r3, [r7, #20] - 8014542: 3310 adds r3, #16 - 8014544: 4618 mov r0, r3 - 8014546: f00c ff6a bl 802141e - 801454a: 4603 mov r3, r0 - 801454c: 2b00 cmp r3, #0 - 801454e: d10d bne.n 801456c - /* recvmbox already deleted */ - if (p != NULL) { - 8014550: 687b ldr r3, [r7, #4] - 8014552: 2b00 cmp r3, #0 - 8014554: d008 beq.n 8014568 - tcp_recved(pcb, p->tot_len); - 8014556: 687b ldr r3, [r7, #4] - 8014558: 891b ldrh r3, [r3, #8] - 801455a: 4619 mov r1, r3 - 801455c: 68b8 ldr r0, [r7, #8] - 801455e: f004 f9b9 bl 80188d4 - pbuf_free(p); - 8014562: 6878 ldr r0, [r7, #4] - 8014564: f003 fac8 bl 8017af8 - } - return ERR_OK; - 8014568: 2300 movs r3, #0 - 801456a: e023 b.n 80145b4 - } - /* Unlike for UDP or RAW pcbs, don't check for available space - using recv_avail since that could break the connection - (data is already ACKed) */ - - if (p != NULL) { - 801456c: 687b ldr r3, [r7, #4] - 801456e: 2b00 cmp r3, #0 - 8014570: d005 beq.n 801457e - msg = p; - 8014572: 687b ldr r3, [r7, #4] - 8014574: 61bb str r3, [r7, #24] - len = p->tot_len; - 8014576: 687b ldr r3, [r7, #4] - 8014578: 891b ldrh r3, [r3, #8] - 801457a: 83fb strh r3, [r7, #30] - 801457c: e003 b.n 8014586 - } else { - msg = LWIP_CONST_CAST(void *, &netconn_closed); - 801457e: 4b15 ldr r3, [pc, #84] ; (80145d4 ) - 8014580: 61bb str r3, [r7, #24] - len = 0; - 8014582: 2300 movs r3, #0 - 8014584: 83fb strh r3, [r7, #30] - } - - if (sys_mbox_trypost(&conn->recvmbox, msg) != ERR_OK) { - 8014586: 697b ldr r3, [r7, #20] - 8014588: 3310 adds r3, #16 - 801458a: 69b9 ldr r1, [r7, #24] - 801458c: 4618 mov r0, r3 - 801458e: f00c fed1 bl 8021334 - 8014592: 4603 mov r3, r0 - 8014594: 2b00 cmp r3, #0 - 8014596: d002 beq.n 801459e - /* don't deallocate p: it is presented to us later again from tcp_fasttmr! */ - return ERR_MEM; - 8014598: f04f 33ff mov.w r3, #4294967295 - 801459c: e00a b.n 80145b4 - } else { -#if LWIP_SO_RCVBUF - SYS_ARCH_INC(conn->recv_avail, len); -#endif /* LWIP_SO_RCVBUF */ - /* Register event with callback */ - API_EVENT(conn, NETCONN_EVT_RCVPLUS, len); - 801459e: 697b ldr r3, [r7, #20] - 80145a0: 6a5b ldr r3, [r3, #36] ; 0x24 - 80145a2: 2b00 cmp r3, #0 - 80145a4: d005 beq.n 80145b2 - 80145a6: 697b ldr r3, [r7, #20] - 80145a8: 6a5b ldr r3, [r3, #36] ; 0x24 - 80145aa: 8bfa ldrh r2, [r7, #30] - 80145ac: 2100 movs r1, #0 - 80145ae: 6978 ldr r0, [r7, #20] - 80145b0: 4798 blx r3 - } - - return ERR_OK; - 80145b2: 2300 movs r3, #0 -} - 80145b4: 4618 mov r0, r3 - 80145b6: 3720 adds r7, #32 - 80145b8: 46bd mov sp, r7 - 80145ba: bd80 pop {r7, pc} - 80145bc: 08023624 .word 0x08023624 - 80145c0: 08023700 .word 0x08023700 - 80145c4: 08023668 .word 0x08023668 - 80145c8: 08023724 .word 0x08023724 - 80145cc: 08023744 .word 0x08023744 - 80145d0: 0802375c .word 0x0802375c - 80145d4: 08026ba6 .word 0x08026ba6 - -080145d8 : - * - * @see tcp.h (struct tcp_pcb.poll) for parameters and return value - */ -static err_t -poll_tcp(void *arg, struct tcp_pcb *pcb) -{ - 80145d8: b580 push {r7, lr} - 80145da: b084 sub sp, #16 - 80145dc: af00 add r7, sp, #0 - 80145de: 6078 str r0, [r7, #4] - 80145e0: 6039 str r1, [r7, #0] - struct netconn *conn = (struct netconn *)arg; - 80145e2: 687b ldr r3, [r7, #4] - 80145e4: 60fb str r3, [r7, #12] - - LWIP_UNUSED_ARG(pcb); - LWIP_ASSERT("conn != NULL", (conn != NULL)); - 80145e6: 68fb ldr r3, [r7, #12] - 80145e8: 2b00 cmp r3, #0 - 80145ea: d106 bne.n 80145fa - 80145ec: 4b2a ldr r3, [pc, #168] ; (8014698 ) - 80145ee: f44f 72b5 mov.w r2, #362 ; 0x16a - 80145f2: 492a ldr r1, [pc, #168] ; (801469c ) - 80145f4: 482a ldr r0, [pc, #168] ; (80146a0 ) - 80145f6: f00d f9c7 bl 8021988 - - if (conn->state == NETCONN_WRITE) { - 80145fa: 68fb ldr r3, [r7, #12] - 80145fc: 785b ldrb r3, [r3, #1] - 80145fe: 2b01 cmp r3, #1 - 8014600: d104 bne.n 801460c - lwip_netconn_do_writemore(conn WRITE_DELAYED); - 8014602: 2101 movs r1, #1 - 8014604: 68f8 ldr r0, [r7, #12] - 8014606: f000 ff63 bl 80154d0 - 801460a: e016 b.n 801463a - } else if (conn->state == NETCONN_CLOSE) { - 801460c: 68fb ldr r3, [r7, #12] - 801460e: 785b ldrb r3, [r3, #1] - 8014610: 2b04 cmp r3, #4 - 8014612: d112 bne.n 801463a -#if !LWIP_SO_SNDTIMEO && !LWIP_SO_LINGER - if (conn->current_msg && conn->current_msg->msg.sd.polls_left) { - 8014614: 68fb ldr r3, [r7, #12] - 8014616: 6a1b ldr r3, [r3, #32] - 8014618: 2b00 cmp r3, #0 - 801461a: d00a beq.n 8014632 - 801461c: 68fb ldr r3, [r7, #12] - 801461e: 6a1b ldr r3, [r3, #32] - 8014620: 7a5b ldrb r3, [r3, #9] - 8014622: 2b00 cmp r3, #0 - 8014624: d005 beq.n 8014632 - conn->current_msg->msg.sd.polls_left--; - 8014626: 68fb ldr r3, [r7, #12] - 8014628: 6a1b ldr r3, [r3, #32] - 801462a: 7a5a ldrb r2, [r3, #9] - 801462c: 3a01 subs r2, #1 - 801462e: b2d2 uxtb r2, r2 - 8014630: 725a strb r2, [r3, #9] - } -#endif /* !LWIP_SO_SNDTIMEO && !LWIP_SO_LINGER */ - lwip_netconn_do_close_internal(conn WRITE_DELAYED); - 8014632: 2101 movs r1, #1 - 8014634: 68f8 ldr r0, [r7, #12] - 8014636: f000 fb3f bl 8014cb8 - } - /* @todo: implement connect timeout here? */ - - /* Did a nonblocking write fail before? Then check available write-space. */ - if (conn->flags & NETCONN_FLAG_CHECK_WRITESPACE) { - 801463a: 68fb ldr r3, [r7, #12] - 801463c: 7f1b ldrb r3, [r3, #28] - 801463e: f003 0310 and.w r3, r3, #16 - 8014642: 2b00 cmp r3, #0 - 8014644: d022 beq.n 801468c - /* If the queued byte- or pbuf-count drops below the configured low-water limit, - let select mark this pcb as writable again. */ - if ((conn->pcb.tcp != NULL) && (tcp_sndbuf(conn->pcb.tcp) > TCP_SNDLOWAT) && - 8014646: 68fb ldr r3, [r7, #12] - 8014648: 685b ldr r3, [r3, #4] - 801464a: 2b00 cmp r3, #0 - 801464c: d01e beq.n 801468c - 801464e: 68fb ldr r3, [r7, #12] - 8014650: 685b ldr r3, [r3, #4] - 8014652: f8b3 3064 ldrh.w r3, [r3, #100] ; 0x64 - 8014656: f640 3269 movw r2, #2921 ; 0xb69 - 801465a: 4293 cmp r3, r2 - 801465c: d916 bls.n 801468c - (tcp_sndqueuelen(conn->pcb.tcp) < TCP_SNDQUEUELOWAT)) { - 801465e: 68fb ldr r3, [r7, #12] - 8014660: 685b ldr r3, [r3, #4] - 8014662: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - if ((conn->pcb.tcp != NULL) && (tcp_sndbuf(conn->pcb.tcp) > TCP_SNDLOWAT) && - 8014666: 2b07 cmp r3, #7 - 8014668: d810 bhi.n 801468c - netconn_clear_flags(conn, NETCONN_FLAG_CHECK_WRITESPACE); - 801466a: 68fb ldr r3, [r7, #12] - 801466c: 7f1b ldrb r3, [r3, #28] - 801466e: f023 0310 bic.w r3, r3, #16 - 8014672: b2da uxtb r2, r3 - 8014674: 68fb ldr r3, [r7, #12] - 8014676: 771a strb r2, [r3, #28] - API_EVENT(conn, NETCONN_EVT_SENDPLUS, 0); - 8014678: 68fb ldr r3, [r7, #12] - 801467a: 6a5b ldr r3, [r3, #36] ; 0x24 - 801467c: 2b00 cmp r3, #0 - 801467e: d005 beq.n 801468c - 8014680: 68fb ldr r3, [r7, #12] - 8014682: 6a5b ldr r3, [r3, #36] ; 0x24 - 8014684: 2200 movs r2, #0 - 8014686: 2102 movs r1, #2 - 8014688: 68f8 ldr r0, [r7, #12] - 801468a: 4798 blx r3 - } - } - - return ERR_OK; - 801468c: 2300 movs r3, #0 -} - 801468e: 4618 mov r0, r3 - 8014690: 3710 adds r7, #16 - 8014692: 46bd mov sp, r7 - 8014694: bd80 pop {r7, pc} - 8014696: bf00 nop - 8014698: 08023624 .word 0x08023624 - 801469c: 0802377c .word 0x0802377c - 80146a0: 08023668 .word 0x08023668 - -080146a4 : - * - * @see tcp.h (struct tcp_pcb.sent) for parameters and return value - */ -static err_t -sent_tcp(void *arg, struct tcp_pcb *pcb, u16_t len) -{ - 80146a4: b580 push {r7, lr} - 80146a6: b086 sub sp, #24 - 80146a8: af00 add r7, sp, #0 - 80146aa: 60f8 str r0, [r7, #12] - 80146ac: 60b9 str r1, [r7, #8] - 80146ae: 4613 mov r3, r2 - 80146b0: 80fb strh r3, [r7, #6] - struct netconn *conn = (struct netconn *)arg; - 80146b2: 68fb ldr r3, [r7, #12] - 80146b4: 617b str r3, [r7, #20] - - LWIP_UNUSED_ARG(pcb); - LWIP_ASSERT("conn != NULL", (conn != NULL)); - 80146b6: 697b ldr r3, [r7, #20] - 80146b8: 2b00 cmp r3, #0 - 80146ba: d106 bne.n 80146ca - 80146bc: 4b21 ldr r3, [pc, #132] ; (8014744 ) - 80146be: f240 1293 movw r2, #403 ; 0x193 - 80146c2: 4921 ldr r1, [pc, #132] ; (8014748 ) - 80146c4: 4821 ldr r0, [pc, #132] ; (801474c ) - 80146c6: f00d f95f bl 8021988 - - if (conn) { - 80146ca: 697b ldr r3, [r7, #20] - 80146cc: 2b00 cmp r3, #0 - 80146ce: d033 beq.n 8014738 - if (conn->state == NETCONN_WRITE) { - 80146d0: 697b ldr r3, [r7, #20] - 80146d2: 785b ldrb r3, [r3, #1] - 80146d4: 2b01 cmp r3, #1 - 80146d6: d104 bne.n 80146e2 - lwip_netconn_do_writemore(conn WRITE_DELAYED); - 80146d8: 2101 movs r1, #1 - 80146da: 6978 ldr r0, [r7, #20] - 80146dc: f000 fef8 bl 80154d0 - 80146e0: e007 b.n 80146f2 - } else if (conn->state == NETCONN_CLOSE) { - 80146e2: 697b ldr r3, [r7, #20] - 80146e4: 785b ldrb r3, [r3, #1] - 80146e6: 2b04 cmp r3, #4 - 80146e8: d103 bne.n 80146f2 - lwip_netconn_do_close_internal(conn WRITE_DELAYED); - 80146ea: 2101 movs r1, #1 - 80146ec: 6978 ldr r0, [r7, #20] - 80146ee: f000 fae3 bl 8014cb8 - } - - /* If the queued byte- or pbuf-count drops below the configured low-water limit, - let select mark this pcb as writable again. */ - if ((conn->pcb.tcp != NULL) && (tcp_sndbuf(conn->pcb.tcp) > TCP_SNDLOWAT) && - 80146f2: 697b ldr r3, [r7, #20] - 80146f4: 685b ldr r3, [r3, #4] - 80146f6: 2b00 cmp r3, #0 - 80146f8: d01e beq.n 8014738 - 80146fa: 697b ldr r3, [r7, #20] - 80146fc: 685b ldr r3, [r3, #4] - 80146fe: f8b3 3064 ldrh.w r3, [r3, #100] ; 0x64 - 8014702: f640 3269 movw r2, #2921 ; 0xb69 - 8014706: 4293 cmp r3, r2 - 8014708: d916 bls.n 8014738 - (tcp_sndqueuelen(conn->pcb.tcp) < TCP_SNDQUEUELOWAT)) { - 801470a: 697b ldr r3, [r7, #20] - 801470c: 685b ldr r3, [r3, #4] - 801470e: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - if ((conn->pcb.tcp != NULL) && (tcp_sndbuf(conn->pcb.tcp) > TCP_SNDLOWAT) && - 8014712: 2b07 cmp r3, #7 - 8014714: d810 bhi.n 8014738 - netconn_clear_flags(conn, NETCONN_FLAG_CHECK_WRITESPACE); - 8014716: 697b ldr r3, [r7, #20] - 8014718: 7f1b ldrb r3, [r3, #28] - 801471a: f023 0310 bic.w r3, r3, #16 - 801471e: b2da uxtb r2, r3 - 8014720: 697b ldr r3, [r7, #20] - 8014722: 771a strb r2, [r3, #28] - API_EVENT(conn, NETCONN_EVT_SENDPLUS, len); - 8014724: 697b ldr r3, [r7, #20] - 8014726: 6a5b ldr r3, [r3, #36] ; 0x24 - 8014728: 2b00 cmp r3, #0 - 801472a: d005 beq.n 8014738 - 801472c: 697b ldr r3, [r7, #20] - 801472e: 6a5b ldr r3, [r3, #36] ; 0x24 - 8014730: 88fa ldrh r2, [r7, #6] - 8014732: 2102 movs r1, #2 - 8014734: 6978 ldr r0, [r7, #20] - 8014736: 4798 blx r3 - } - } - - return ERR_OK; - 8014738: 2300 movs r3, #0 -} - 801473a: 4618 mov r0, r3 - 801473c: 3718 adds r7, #24 - 801473e: 46bd mov sp, r7 - 8014740: bd80 pop {r7, pc} - 8014742: bf00 nop - 8014744: 08023624 .word 0x08023624 - 8014748: 0802377c .word 0x0802377c - 801474c: 08023668 .word 0x08023668 - -08014750 : - * - * @see tcp.h (struct tcp_pcb.err) for parameters - */ -static void -err_tcp(void *arg, err_t err) -{ - 8014750: b580 push {r7, lr} - 8014752: b088 sub sp, #32 - 8014754: af00 add r7, sp, #0 - 8014756: 6078 str r0, [r7, #4] - 8014758: 460b mov r3, r1 - 801475a: 70fb strb r3, [r7, #3] - struct netconn *conn; - enum netconn_state old_state; - void *mbox_msg; - SYS_ARCH_DECL_PROTECT(lev); - - conn = (struct netconn *)arg; - 801475c: 687b ldr r3, [r7, #4] - 801475e: 61fb str r3, [r7, #28] - LWIP_ASSERT("conn != NULL", (conn != NULL)); - 8014760: 69fb ldr r3, [r7, #28] - 8014762: 2b00 cmp r3, #0 - 8014764: d106 bne.n 8014774 - 8014766: 4b5f ldr r3, [pc, #380] ; (80148e4 ) - 8014768: f44f 72dc mov.w r2, #440 ; 0x1b8 - 801476c: 495e ldr r1, [pc, #376] ; (80148e8 ) - 801476e: 485f ldr r0, [pc, #380] ; (80148ec ) - 8014770: f00d f90a bl 8021988 - - SYS_ARCH_PROTECT(lev); - 8014774: f00c ff6e bl 8021654 - 8014778: 61b8 str r0, [r7, #24] - - /* when err is called, the pcb is deallocated, so delete the reference */ - conn->pcb.tcp = NULL; - 801477a: 69fb ldr r3, [r7, #28] - 801477c: 2200 movs r2, #0 - 801477e: 605a str r2, [r3, #4] - /* store pending error */ - conn->pending_err = err; - 8014780: 69fb ldr r3, [r7, #28] - 8014782: 78fa ldrb r2, [r7, #3] - 8014784: 721a strb r2, [r3, #8] - /* prevent application threads from blocking on 'recvmbox'/'acceptmbox' */ - conn->flags |= NETCONN_FLAG_MBOXCLOSED; - 8014786: 69fb ldr r3, [r7, #28] - 8014788: 7f1b ldrb r3, [r3, #28] - 801478a: f043 0301 orr.w r3, r3, #1 - 801478e: b2da uxtb r2, r3 - 8014790: 69fb ldr r3, [r7, #28] - 8014792: 771a strb r2, [r3, #28] - - /* reset conn->state now before waking up other threads */ - old_state = conn->state; - 8014794: 69fb ldr r3, [r7, #28] - 8014796: 785b ldrb r3, [r3, #1] - 8014798: 75fb strb r3, [r7, #23] - conn->state = NETCONN_NONE; - 801479a: 69fb ldr r3, [r7, #28] - 801479c: 2200 movs r2, #0 - 801479e: 705a strb r2, [r3, #1] - - SYS_ARCH_UNPROTECT(lev); - 80147a0: 69b8 ldr r0, [r7, #24] - 80147a2: f00c ff65 bl 8021670 - - /* Notify the user layer about a connection error. Used to signal select. */ - API_EVENT(conn, NETCONN_EVT_ERROR, 0); - 80147a6: 69fb ldr r3, [r7, #28] - 80147a8: 6a5b ldr r3, [r3, #36] ; 0x24 - 80147aa: 2b00 cmp r3, #0 - 80147ac: d005 beq.n 80147ba - 80147ae: 69fb ldr r3, [r7, #28] - 80147b0: 6a5b ldr r3, [r3, #36] ; 0x24 - 80147b2: 2200 movs r2, #0 - 80147b4: 2104 movs r1, #4 - 80147b6: 69f8 ldr r0, [r7, #28] - 80147b8: 4798 blx r3 - /* Try to release selects pending on 'read' or 'write', too. - They will get an error if they actually try to read or write. */ - API_EVENT(conn, NETCONN_EVT_RCVPLUS, 0); - 80147ba: 69fb ldr r3, [r7, #28] - 80147bc: 6a5b ldr r3, [r3, #36] ; 0x24 - 80147be: 2b00 cmp r3, #0 - 80147c0: d005 beq.n 80147ce - 80147c2: 69fb ldr r3, [r7, #28] - 80147c4: 6a5b ldr r3, [r3, #36] ; 0x24 - 80147c6: 2200 movs r2, #0 - 80147c8: 2100 movs r1, #0 - 80147ca: 69f8 ldr r0, [r7, #28] - 80147cc: 4798 blx r3 - API_EVENT(conn, NETCONN_EVT_SENDPLUS, 0); - 80147ce: 69fb ldr r3, [r7, #28] - 80147d0: 6a5b ldr r3, [r3, #36] ; 0x24 - 80147d2: 2b00 cmp r3, #0 - 80147d4: d005 beq.n 80147e2 - 80147d6: 69fb ldr r3, [r7, #28] - 80147d8: 6a5b ldr r3, [r3, #36] ; 0x24 - 80147da: 2200 movs r2, #0 - 80147dc: 2102 movs r1, #2 - 80147de: 69f8 ldr r0, [r7, #28] - 80147e0: 4798 blx r3 - - mbox_msg = lwip_netconn_err_to_msg(err); - 80147e2: f997 3003 ldrsb.w r3, [r7, #3] - 80147e6: 4618 mov r0, r3 - 80147e8: f7ff fd82 bl 80142f0 - 80147ec: 6138 str r0, [r7, #16] - /* pass error message to recvmbox to wake up pending recv */ - if (NETCONN_MBOX_VALID(conn, &conn->recvmbox)) { - 80147ee: 69fb ldr r3, [r7, #28] - 80147f0: 3310 adds r3, #16 - 80147f2: 4618 mov r0, r3 - 80147f4: f00c fe13 bl 802141e - 80147f8: 4603 mov r3, r0 - 80147fa: 2b00 cmp r3, #0 - 80147fc: d005 beq.n 801480a - /* use trypost to prevent deadlock */ - sys_mbox_trypost(&conn->recvmbox, mbox_msg); - 80147fe: 69fb ldr r3, [r7, #28] - 8014800: 3310 adds r3, #16 - 8014802: 6939 ldr r1, [r7, #16] - 8014804: 4618 mov r0, r3 - 8014806: f00c fd95 bl 8021334 - } - /* pass error message to acceptmbox to wake up pending accept */ - if (NETCONN_MBOX_VALID(conn, &conn->acceptmbox)) { - 801480a: 69fb ldr r3, [r7, #28] - 801480c: 3314 adds r3, #20 - 801480e: 4618 mov r0, r3 - 8014810: f00c fe05 bl 802141e - 8014814: 4603 mov r3, r0 - 8014816: 2b00 cmp r3, #0 - 8014818: d005 beq.n 8014826 - /* use trypost to preven deadlock */ - sys_mbox_trypost(&conn->acceptmbox, mbox_msg); - 801481a: 69fb ldr r3, [r7, #28] - 801481c: 3314 adds r3, #20 - 801481e: 6939 ldr r1, [r7, #16] - 8014820: 4618 mov r0, r3 - 8014822: f00c fd87 bl 8021334 - } - - if ((old_state == NETCONN_WRITE) || (old_state == NETCONN_CLOSE) || - 8014826: 7dfb ldrb r3, [r7, #23] - 8014828: 2b01 cmp r3, #1 - 801482a: d005 beq.n 8014838 - 801482c: 7dfb ldrb r3, [r7, #23] - 801482e: 2b04 cmp r3, #4 - 8014830: d002 beq.n 8014838 - 8014832: 7dfb ldrb r3, [r7, #23] - 8014834: 2b03 cmp r3, #3 - 8014836: d143 bne.n 80148c0 - (old_state == NETCONN_CONNECT)) { - /* calling lwip_netconn_do_writemore/lwip_netconn_do_close_internal is not necessary - since the pcb has already been deleted! */ - int was_nonblocking_connect = IN_NONBLOCKING_CONNECT(conn); - 8014838: 69fb ldr r3, [r7, #28] - 801483a: 7f1b ldrb r3, [r3, #28] - 801483c: f003 0304 and.w r3, r3, #4 - 8014840: 2b00 cmp r3, #0 - 8014842: bf14 ite ne - 8014844: 2301 movne r3, #1 - 8014846: 2300 moveq r3, #0 - 8014848: b2db uxtb r3, r3 - 801484a: 60fb str r3, [r7, #12] - SET_NONBLOCKING_CONNECT(conn, 0); - 801484c: 69fb ldr r3, [r7, #28] - 801484e: 7f1b ldrb r3, [r3, #28] - 8014850: f023 0304 bic.w r3, r3, #4 - 8014854: b2da uxtb r2, r3 - 8014856: 69fb ldr r3, [r7, #28] - 8014858: 771a strb r2, [r3, #28] - - if (!was_nonblocking_connect) { - 801485a: 68fb ldr r3, [r7, #12] - 801485c: 2b00 cmp r3, #0 - 801485e: d13b bne.n 80148d8 - sys_sem_t *op_completed_sem; - /* set error return code */ - LWIP_ASSERT("conn->current_msg != NULL", conn->current_msg != NULL); - 8014860: 69fb ldr r3, [r7, #28] - 8014862: 6a1b ldr r3, [r3, #32] - 8014864: 2b00 cmp r3, #0 - 8014866: d106 bne.n 8014876 - 8014868: 4b1e ldr r3, [pc, #120] ; (80148e4 ) - 801486a: f44f 72f3 mov.w r2, #486 ; 0x1e6 - 801486e: 4920 ldr r1, [pc, #128] ; (80148f0 ) - 8014870: 481e ldr r0, [pc, #120] ; (80148ec ) - 8014872: f00d f889 bl 8021988 - if (old_state == NETCONN_CLOSE) { - 8014876: 7dfb ldrb r3, [r7, #23] - 8014878: 2b04 cmp r3, #4 - 801487a: d104 bne.n 8014886 - /* let close succeed: the connection is closed after all... */ - conn->current_msg->err = ERR_OK; - 801487c: 69fb ldr r3, [r7, #28] - 801487e: 6a1b ldr r3, [r3, #32] - 8014880: 2200 movs r2, #0 - 8014882: 711a strb r2, [r3, #4] - 8014884: e003 b.n 801488e - } else { - /* Write and connect fail */ - conn->current_msg->err = err; - 8014886: 69fb ldr r3, [r7, #28] - 8014888: 6a1b ldr r3, [r3, #32] - 801488a: 78fa ldrb r2, [r7, #3] - 801488c: 711a strb r2, [r3, #4] - } - op_completed_sem = LWIP_API_MSG_SEM(conn->current_msg); - 801488e: 69fb ldr r3, [r7, #28] - 8014890: 6a1b ldr r3, [r3, #32] - 8014892: 681b ldr r3, [r3, #0] - 8014894: 330c adds r3, #12 - 8014896: 60bb str r3, [r7, #8] - LWIP_ASSERT("inavlid op_completed_sem", sys_sem_valid(op_completed_sem)); - 8014898: 68b8 ldr r0, [r7, #8] - 801489a: f00c fe51 bl 8021540 - 801489e: 4603 mov r3, r0 - 80148a0: 2b00 cmp r3, #0 - 80148a2: d106 bne.n 80148b2 - 80148a4: 4b0f ldr r3, [pc, #60] ; (80148e4 ) - 80148a6: f240 12ef movw r2, #495 ; 0x1ef - 80148aa: 4912 ldr r1, [pc, #72] ; (80148f4 ) - 80148ac: 480f ldr r0, [pc, #60] ; (80148ec ) - 80148ae: f00d f86b bl 8021988 - conn->current_msg = NULL; - 80148b2: 69fb ldr r3, [r7, #28] - 80148b4: 2200 movs r2, #0 - 80148b6: 621a str r2, [r3, #32] - /* wake up the waiting task */ - sys_sem_signal(op_completed_sem); - 80148b8: 68b8 ldr r0, [r7, #8] - 80148ba: f00c fe27 bl 802150c - (old_state == NETCONN_CONNECT)) { - 80148be: e00b b.n 80148d8 - } else { - /* @todo: test what happens for error on nonblocking connect */ - } - } else { - LWIP_ASSERT("conn->current_msg == NULL", conn->current_msg == NULL); - 80148c0: 69fb ldr r3, [r7, #28] - 80148c2: 6a1b ldr r3, [r3, #32] - 80148c4: 2b00 cmp r3, #0 - 80148c6: d008 beq.n 80148da - 80148c8: 4b06 ldr r3, [pc, #24] ; (80148e4 ) - 80148ca: f240 12f7 movw r2, #503 ; 0x1f7 - 80148ce: 490a ldr r1, [pc, #40] ; (80148f8 ) - 80148d0: 4806 ldr r0, [pc, #24] ; (80148ec ) - 80148d2: f00d f859 bl 8021988 - } -} - 80148d6: e000 b.n 80148da - (old_state == NETCONN_CONNECT)) { - 80148d8: bf00 nop -} - 80148da: bf00 nop - 80148dc: 3720 adds r7, #32 - 80148de: 46bd mov sp, r7 - 80148e0: bd80 pop {r7, pc} - 80148e2: bf00 nop - 80148e4: 08023624 .word 0x08023624 - 80148e8: 0802377c .word 0x0802377c - 80148ec: 08023668 .word 0x08023668 - 80148f0: 0802378c .word 0x0802378c - 80148f4: 080237a8 .word 0x080237a8 - 80148f8: 080237c4 .word 0x080237c4 - -080148fc : - * - * @param conn the TCP netconn to setup - */ -static void -setup_tcp(struct netconn *conn) -{ - 80148fc: b580 push {r7, lr} - 80148fe: b084 sub sp, #16 - 8014900: af00 add r7, sp, #0 - 8014902: 6078 str r0, [r7, #4] - struct tcp_pcb *pcb; - - pcb = conn->pcb.tcp; - 8014904: 687b ldr r3, [r7, #4] - 8014906: 685b ldr r3, [r3, #4] - 8014908: 60fb str r3, [r7, #12] - tcp_arg(pcb, conn); - 801490a: 6879 ldr r1, [r7, #4] - 801490c: 68f8 ldr r0, [r7, #12] - 801490e: f004 ffc3 bl 8019898 - tcp_recv(pcb, recv_tcp); - 8014912: 490a ldr r1, [pc, #40] ; (801493c ) - 8014914: 68f8 ldr r0, [r7, #12] - 8014916: f004 ffd1 bl 80198bc - tcp_sent(pcb, sent_tcp); - 801491a: 4909 ldr r1, [pc, #36] ; (8014940 ) - 801491c: 68f8 ldr r0, [r7, #12] - 801491e: f004 ffef bl 8019900 - tcp_poll(pcb, poll_tcp, NETCONN_TCP_POLL_INTERVAL); - 8014922: 2202 movs r2, #2 - 8014924: 4907 ldr r1, [pc, #28] ; (8014944 ) - 8014926: 68f8 ldr r0, [r7, #12] - 8014928: f005 f846 bl 80199b8 - tcp_err(pcb, err_tcp); - 801492c: 4906 ldr r1, [pc, #24] ; (8014948 ) - 801492e: 68f8 ldr r0, [r7, #12] - 8014930: f005 f808 bl 8019944 -} - 8014934: bf00 nop - 8014936: 3710 adds r7, #16 - 8014938: 46bd mov sp, r7 - 801493a: bd80 pop {r7, pc} - 801493c: 080144cd .word 0x080144cd - 8014940: 080146a5 .word 0x080146a5 - 8014944: 080145d9 .word 0x080145d9 - 8014948: 08014751 .word 0x08014751 - -0801494c : - * - * @param msg the api_msg describing the connection type - */ -static void -pcb_new(struct api_msg *msg) -{ - 801494c: b590 push {r4, r7, lr} - 801494e: b085 sub sp, #20 - 8014950: af00 add r7, sp, #0 - 8014952: 6078 str r0, [r7, #4] - enum lwip_ip_addr_type iptype = IPADDR_TYPE_V4; - 8014954: 2300 movs r3, #0 - 8014956: 73fb strb r3, [r7, #15] - - LWIP_ASSERT("pcb_new: pcb already allocated", msg->conn->pcb.tcp == NULL); - 8014958: 687b ldr r3, [r7, #4] - 801495a: 681b ldr r3, [r3, #0] - 801495c: 685b ldr r3, [r3, #4] - 801495e: 2b00 cmp r3, #0 - 8014960: d006 beq.n 8014970 - 8014962: 4b2b ldr r3, [pc, #172] ; (8014a10 ) - 8014964: f240 2265 movw r2, #613 ; 0x265 - 8014968: 492a ldr r1, [pc, #168] ; (8014a14 ) - 801496a: 482b ldr r0, [pc, #172] ; (8014a18 ) - 801496c: f00d f80c bl 8021988 - iptype = IPADDR_TYPE_ANY; - } -#endif - - /* Allocate a PCB for this connection */ - switch (NETCONNTYPE_GROUP(msg->conn->type)) { - 8014970: 687b ldr r3, [r7, #4] - 8014972: 681b ldr r3, [r3, #0] - 8014974: 781b ldrb r3, [r3, #0] - 8014976: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 801497a: 2b10 cmp r3, #16 - 801497c: d022 beq.n 80149c4 - 801497e: 2b20 cmp r3, #32 - 8014980: d133 bne.n 80149ea - } - break; -#endif /* LWIP_RAW */ -#if LWIP_UDP - case NETCONN_UDP: - msg->conn->pcb.udp = udp_new_ip_type(iptype); - 8014982: 687b ldr r3, [r7, #4] - 8014984: 681c ldr r4, [r3, #0] - 8014986: 7bfb ldrb r3, [r7, #15] - 8014988: 4618 mov r0, r3 - 801498a: f00a f944 bl 801ec16 - 801498e: 4603 mov r3, r0 - 8014990: 6063 str r3, [r4, #4] - if (msg->conn->pcb.udp != NULL) { - 8014992: 687b ldr r3, [r7, #4] - 8014994: 681b ldr r3, [r3, #0] - 8014996: 685b ldr r3, [r3, #4] - 8014998: 2b00 cmp r3, #0 - 801499a: d02a beq.n 80149f2 -#if LWIP_UDPLITE - if (NETCONNTYPE_ISUDPLITE(msg->conn->type)) { - udp_setflags(msg->conn->pcb.udp, UDP_FLAGS_UDPLITE); - } -#endif /* LWIP_UDPLITE */ - if (NETCONNTYPE_ISUDPNOCHKSUM(msg->conn->type)) { - 801499c: 687b ldr r3, [r7, #4] - 801499e: 681b ldr r3, [r3, #0] - 80149a0: 781b ldrb r3, [r3, #0] - 80149a2: 2b22 cmp r3, #34 ; 0x22 - 80149a4: d104 bne.n 80149b0 - udp_setflags(msg->conn->pcb.udp, UDP_FLAGS_NOCHKSUM); - 80149a6: 687b ldr r3, [r7, #4] - 80149a8: 681b ldr r3, [r3, #0] - 80149aa: 685b ldr r3, [r3, #4] - 80149ac: 2201 movs r2, #1 - 80149ae: 741a strb r2, [r3, #16] - } - udp_recv(msg->conn->pcb.udp, recv_udp, msg->conn); - 80149b0: 687b ldr r3, [r7, #4] - 80149b2: 681b ldr r3, [r3, #0] - 80149b4: 6858 ldr r0, [r3, #4] - 80149b6: 687b ldr r3, [r7, #4] - 80149b8: 681b ldr r3, [r3, #0] - 80149ba: 461a mov r2, r3 - 80149bc: 4917 ldr r1, [pc, #92] ; (8014a1c ) - 80149be: f00a f8b1 bl 801eb24 - } - break; - 80149c2: e016 b.n 80149f2 -#endif /* LWIP_UDP */ -#if LWIP_TCP - case NETCONN_TCP: - msg->conn->pcb.tcp = tcp_new_ip_type(iptype); - 80149c4: 687b ldr r3, [r7, #4] - 80149c6: 681c ldr r4, [r3, #0] - 80149c8: 7bfb ldrb r3, [r7, #15] - 80149ca: 4618 mov r0, r3 - 80149cc: f004 ff56 bl 801987c - 80149d0: 4603 mov r3, r0 - 80149d2: 6063 str r3, [r4, #4] - if (msg->conn->pcb.tcp != NULL) { - 80149d4: 687b ldr r3, [r7, #4] - 80149d6: 681b ldr r3, [r3, #0] - 80149d8: 685b ldr r3, [r3, #4] - 80149da: 2b00 cmp r3, #0 - 80149dc: d00b beq.n 80149f6 - setup_tcp(msg->conn); - 80149de: 687b ldr r3, [r7, #4] - 80149e0: 681b ldr r3, [r3, #0] - 80149e2: 4618 mov r0, r3 - 80149e4: f7ff ff8a bl 80148fc - } - break; - 80149e8: e005 b.n 80149f6 -#endif /* LWIP_TCP */ - default: - /* Unsupported netconn type, e.g. protocol disabled */ - msg->err = ERR_VAL; - 80149ea: 687b ldr r3, [r7, #4] - 80149ec: 22fa movs r2, #250 ; 0xfa - 80149ee: 711a strb r2, [r3, #4] - return; - 80149f0: e00a b.n 8014a08 - break; - 80149f2: bf00 nop - 80149f4: e000 b.n 80149f8 - break; - 80149f6: bf00 nop - } - if (msg->conn->pcb.ip == NULL) { - 80149f8: 687b ldr r3, [r7, #4] - 80149fa: 681b ldr r3, [r3, #0] - 80149fc: 685b ldr r3, [r3, #4] - 80149fe: 2b00 cmp r3, #0 - 8014a00: d102 bne.n 8014a08 - msg->err = ERR_MEM; - 8014a02: 687b ldr r3, [r7, #4] - 8014a04: 22ff movs r2, #255 ; 0xff - 8014a06: 711a strb r2, [r3, #4] - } -} - 8014a08: 3714 adds r7, #20 - 8014a0a: 46bd mov sp, r7 - 8014a0c: bd90 pop {r4, r7, pc} - 8014a0e: bf00 nop - 8014a10: 08023624 .word 0x08023624 - 8014a14: 08023808 .word 0x08023808 - 8014a18: 08023668 .word 0x08023668 - 8014a1c: 080143d1 .word 0x080143d1 - -08014a20 : - * - * @param m the api_msg describing the connection type - */ -void -lwip_netconn_do_newconn(void *m) -{ - 8014a20: b580 push {r7, lr} - 8014a22: b084 sub sp, #16 - 8014a24: af00 add r7, sp, #0 - 8014a26: 6078 str r0, [r7, #4] - struct api_msg *msg = (struct api_msg *)m; - 8014a28: 687b ldr r3, [r7, #4] - 8014a2a: 60fb str r3, [r7, #12] - - msg->err = ERR_OK; - 8014a2c: 68fb ldr r3, [r7, #12] - 8014a2e: 2200 movs r2, #0 - 8014a30: 711a strb r2, [r3, #4] - if (msg->conn->pcb.tcp == NULL) { - 8014a32: 68fb ldr r3, [r7, #12] - 8014a34: 681b ldr r3, [r3, #0] - 8014a36: 685b ldr r3, [r3, #4] - 8014a38: 2b00 cmp r3, #0 - 8014a3a: d102 bne.n 8014a42 - pcb_new(msg); - 8014a3c: 68f8 ldr r0, [r7, #12] - 8014a3e: f7ff ff85 bl 801494c - /* Else? This "new" connection already has a PCB allocated. */ - /* Is this an error condition? Should it be deleted? */ - /* We currently just are happy and return. */ - - TCPIP_APIMSG_ACK(msg); -} - 8014a42: bf00 nop - 8014a44: 3710 adds r7, #16 - 8014a46: 46bd mov sp, r7 - 8014a48: bd80 pop {r7, pc} - ... - -08014a4c : - * @return a newly allocated struct netconn or - * NULL on memory error - */ -struct netconn * -netconn_alloc(enum netconn_type t, netconn_callback callback) -{ - 8014a4c: b580 push {r7, lr} - 8014a4e: b086 sub sp, #24 - 8014a50: af00 add r7, sp, #0 - 8014a52: 4603 mov r3, r0 - 8014a54: 6039 str r1, [r7, #0] - 8014a56: 71fb strb r3, [r7, #7] - struct netconn *conn; - int size; - u8_t init_flags = 0; - 8014a58: 2300 movs r3, #0 - 8014a5a: 74fb strb r3, [r7, #19] - - conn = (struct netconn *)memp_malloc(MEMP_NETCONN); - 8014a5c: 2007 movs r0, #7 - 8014a5e: f002 f837 bl 8016ad0 - 8014a62: 60f8 str r0, [r7, #12] - if (conn == NULL) { - 8014a64: 68fb ldr r3, [r7, #12] - 8014a66: 2b00 cmp r3, #0 - 8014a68: d101 bne.n 8014a6e - return NULL; - 8014a6a: 2300 movs r3, #0 - 8014a6c: e052 b.n 8014b14 - } - - conn->pending_err = ERR_OK; - 8014a6e: 68fb ldr r3, [r7, #12] - 8014a70: 2200 movs r2, #0 - 8014a72: 721a strb r2, [r3, #8] - conn->type = t; - 8014a74: 68fb ldr r3, [r7, #12] - 8014a76: 79fa ldrb r2, [r7, #7] - 8014a78: 701a strb r2, [r3, #0] - conn->pcb.tcp = NULL; - 8014a7a: 68fb ldr r3, [r7, #12] - 8014a7c: 2200 movs r2, #0 - 8014a7e: 605a str r2, [r3, #4] - - /* If all sizes are the same, every compiler should optimize this switch to nothing */ - switch (NETCONNTYPE_GROUP(t)) { - 8014a80: 79fb ldrb r3, [r7, #7] - 8014a82: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 8014a86: 2b10 cmp r3, #16 - 8014a88: d004 beq.n 8014a94 - 8014a8a: 2b20 cmp r3, #32 - 8014a8c: d105 bne.n 8014a9a - size = DEFAULT_RAW_RECVMBOX_SIZE; - break; -#endif /* LWIP_RAW */ -#if LWIP_UDP - case NETCONN_UDP: - size = DEFAULT_UDP_RECVMBOX_SIZE; - 8014a8e: 2306 movs r3, #6 - 8014a90: 617b str r3, [r7, #20] -#if LWIP_NETBUF_RECVINFO - init_flags |= NETCONN_FLAG_PKTINFO; -#endif /* LWIP_NETBUF_RECVINFO */ - break; - 8014a92: e00a b.n 8014aaa -#endif /* LWIP_UDP */ -#if LWIP_TCP - case NETCONN_TCP: - size = DEFAULT_TCP_RECVMBOX_SIZE; - 8014a94: 2306 movs r3, #6 - 8014a96: 617b str r3, [r7, #20] - break; - 8014a98: e007 b.n 8014aaa -#endif /* LWIP_TCP */ - default: - LWIP_ASSERT("netconn_alloc: undefined netconn_type", 0); - 8014a9a: 4b20 ldr r3, [pc, #128] ; (8014b1c ) - 8014a9c: f240 22e5 movw r2, #741 ; 0x2e5 - 8014aa0: 491f ldr r1, [pc, #124] ; (8014b20 ) - 8014aa2: 4820 ldr r0, [pc, #128] ; (8014b24 ) - 8014aa4: f00c ff70 bl 8021988 - goto free_and_return; - 8014aa8: e02f b.n 8014b0a - } - - if (sys_mbox_new(&conn->recvmbox, size) != ERR_OK) { - 8014aaa: 68fb ldr r3, [r7, #12] - 8014aac: 3310 adds r3, #16 - 8014aae: 6979 ldr r1, [r7, #20] - 8014ab0: 4618 mov r0, r3 - 8014ab2: f00c fc0b bl 80212cc - 8014ab6: 4603 mov r3, r0 - 8014ab8: 2b00 cmp r3, #0 - 8014aba: d125 bne.n 8014b08 - goto free_and_return; - } -#if !LWIP_NETCONN_SEM_PER_THREAD - if (sys_sem_new(&conn->op_completed, 0) != ERR_OK) { - 8014abc: 68fb ldr r3, [r7, #12] - 8014abe: 330c adds r3, #12 - 8014ac0: 2100 movs r1, #0 - 8014ac2: 4618 mov r0, r3 - 8014ac4: f00c fcc9 bl 802145a - 8014ac8: 4603 mov r3, r0 - 8014aca: 2b00 cmp r3, #0 - 8014acc: d005 beq.n 8014ada - sys_mbox_free(&conn->recvmbox); - 8014ace: 68fb ldr r3, [r7, #12] - 8014ad0: 3310 adds r3, #16 - 8014ad2: 4618 mov r0, r3 - 8014ad4: f00c fc1c bl 8021310 - goto free_and_return; - 8014ad8: e017 b.n 8014b0a - } -#endif - -#if LWIP_TCP - sys_mbox_set_invalid(&conn->acceptmbox); - 8014ada: 68fb ldr r3, [r7, #12] - 8014adc: 3314 adds r3, #20 - 8014ade: 4618 mov r0, r3 - 8014ae0: f00c fcae bl 8021440 -#endif - conn->state = NETCONN_NONE; - 8014ae4: 68fb ldr r3, [r7, #12] - 8014ae6: 2200 movs r2, #0 - 8014ae8: 705a strb r2, [r3, #1] -#if LWIP_SOCKET - /* initialize socket to -1 since 0 is a valid socket */ - conn->socket = -1; - 8014aea: 68fb ldr r3, [r7, #12] - 8014aec: f04f 32ff mov.w r2, #4294967295 - 8014af0: 619a str r2, [r3, #24] -#endif /* LWIP_SOCKET */ - conn->callback = callback; - 8014af2: 68fb ldr r3, [r7, #12] - 8014af4: 683a ldr r2, [r7, #0] - 8014af6: 625a str r2, [r3, #36] ; 0x24 -#if LWIP_TCP - conn->current_msg = NULL; - 8014af8: 68fb ldr r3, [r7, #12] - 8014afa: 2200 movs r2, #0 - 8014afc: 621a str r2, [r3, #32] - conn->recv_avail = 0; -#endif /* LWIP_SO_RCVBUF */ -#if LWIP_SO_LINGER - conn->linger = -1; -#endif /* LWIP_SO_LINGER */ - conn->flags = init_flags; - 8014afe: 68fb ldr r3, [r7, #12] - 8014b00: 7cfa ldrb r2, [r7, #19] - 8014b02: 771a strb r2, [r3, #28] - return conn; - 8014b04: 68fb ldr r3, [r7, #12] - 8014b06: e005 b.n 8014b14 - goto free_and_return; - 8014b08: bf00 nop -free_and_return: - memp_free(MEMP_NETCONN, conn); - 8014b0a: 68f9 ldr r1, [r7, #12] - 8014b0c: 2007 movs r0, #7 - 8014b0e: f002 f855 bl 8016bbc - return NULL; - 8014b12: 2300 movs r3, #0 -} - 8014b14: 4618 mov r0, r3 - 8014b16: 3718 adds r7, #24 - 8014b18: 46bd mov sp, r7 - 8014b1a: bd80 pop {r7, pc} - 8014b1c: 08023624 .word 0x08023624 - 8014b20: 08023828 .word 0x08023828 - 8014b24: 08023668 .word 0x08023668 - -08014b28 : - * - * @param conn the netconn to free - */ -void -netconn_free(struct netconn *conn) -{ - 8014b28: b580 push {r7, lr} - 8014b2a: b082 sub sp, #8 - 8014b2c: af00 add r7, sp, #0 - 8014b2e: 6078 str r0, [r7, #4] - LWIP_ASSERT("PCB must be deallocated outside this function", conn->pcb.tcp == NULL); - 8014b30: 687b ldr r3, [r7, #4] - 8014b32: 685b ldr r3, [r3, #4] - 8014b34: 2b00 cmp r3, #0 - 8014b36: d006 beq.n 8014b46 - 8014b38: 4b1b ldr r3, [pc, #108] ; (8014ba8 ) - 8014b3a: f44f 7247 mov.w r2, #796 ; 0x31c - 8014b3e: 491b ldr r1, [pc, #108] ; (8014bac ) - 8014b40: 481b ldr r0, [pc, #108] ; (8014bb0 ) - 8014b42: f00c ff21 bl 8021988 -#if LWIP_NETCONN_FULLDUPLEX - /* in fullduplex, netconn is drained here */ - netconn_drain(conn); -#endif /* LWIP_NETCONN_FULLDUPLEX */ - - LWIP_ASSERT("recvmbox must be deallocated before calling this function", - 8014b46: 687b ldr r3, [r7, #4] - 8014b48: 3310 adds r3, #16 - 8014b4a: 4618 mov r0, r3 - 8014b4c: f00c fc67 bl 802141e - 8014b50: 4603 mov r3, r0 - 8014b52: 2b00 cmp r3, #0 - 8014b54: d006 beq.n 8014b64 - 8014b56: 4b14 ldr r3, [pc, #80] ; (8014ba8 ) - 8014b58: f240 3223 movw r2, #803 ; 0x323 - 8014b5c: 4915 ldr r1, [pc, #84] ; (8014bb4 ) - 8014b5e: 4814 ldr r0, [pc, #80] ; (8014bb0 ) - 8014b60: f00c ff12 bl 8021988 - !sys_mbox_valid(&conn->recvmbox)); -#if LWIP_TCP - LWIP_ASSERT("acceptmbox must be deallocated before calling this function", - 8014b64: 687b ldr r3, [r7, #4] - 8014b66: 3314 adds r3, #20 - 8014b68: 4618 mov r0, r3 - 8014b6a: f00c fc58 bl 802141e - 8014b6e: 4603 mov r3, r0 - 8014b70: 2b00 cmp r3, #0 - 8014b72: d006 beq.n 8014b82 - 8014b74: 4b0c ldr r3, [pc, #48] ; (8014ba8 ) - 8014b76: f240 3226 movw r2, #806 ; 0x326 - 8014b7a: 490f ldr r1, [pc, #60] ; (8014bb8 ) - 8014b7c: 480c ldr r0, [pc, #48] ; (8014bb0 ) - 8014b7e: f00c ff03 bl 8021988 - !sys_mbox_valid(&conn->acceptmbox)); -#endif /* LWIP_TCP */ - -#if !LWIP_NETCONN_SEM_PER_THREAD - sys_sem_free(&conn->op_completed); - 8014b82: 687b ldr r3, [r7, #4] - 8014b84: 330c adds r3, #12 - 8014b86: 4618 mov r0, r3 - 8014b88: f00c fccd bl 8021526 - sys_sem_set_invalid(&conn->op_completed); - 8014b8c: 687b ldr r3, [r7, #4] - 8014b8e: 330c adds r3, #12 - 8014b90: 4618 mov r0, r3 - 8014b92: f00c fce6 bl 8021562 -#endif - - memp_free(MEMP_NETCONN, conn); - 8014b96: 6879 ldr r1, [r7, #4] - 8014b98: 2007 movs r0, #7 - 8014b9a: f002 f80f bl 8016bbc -} - 8014b9e: bf00 nop - 8014ba0: 3708 adds r7, #8 - 8014ba2: 46bd mov sp, r7 - 8014ba4: bd80 pop {r7, pc} - 8014ba6: bf00 nop - 8014ba8: 08023624 .word 0x08023624 - 8014bac: 08023850 .word 0x08023850 - 8014bb0: 08023668 .word 0x08023668 - 8014bb4: 08023880 .word 0x08023880 - 8014bb8: 080238bc .word 0x080238bc - -08014bbc : - * @bytes_drained bytes drained from recvmbox - * @accepts_drained pending connections drained from acceptmbox - */ -static void -netconn_drain(struct netconn *conn) -{ - 8014bbc: b580 push {r7, lr} - 8014bbe: b086 sub sp, #24 - 8014bc0: af00 add r7, sp, #0 - 8014bc2: 6078 str r0, [r7, #4] -#if LWIP_NETCONN_FULLDUPLEX - LWIP_ASSERT("netconn marked closed", conn->flags & NETCONN_FLAG_MBOXINVALID); -#endif /* LWIP_NETCONN_FULLDUPLEX */ - - /* Delete and drain the recvmbox. */ - if (sys_mbox_valid(&conn->recvmbox)) { - 8014bc4: 687b ldr r3, [r7, #4] - 8014bc6: 3310 adds r3, #16 - 8014bc8: 4618 mov r0, r3 - 8014bca: f00c fc28 bl 802141e - 8014bce: 4603 mov r3, r0 - 8014bd0: 2b00 cmp r3, #0 - 8014bd2: d02f beq.n 8014c34 - while (sys_mbox_tryfetch(&conn->recvmbox, &mem) != SYS_MBOX_EMPTY) { - 8014bd4: e018 b.n 8014c08 -#if LWIP_NETCONN_FULLDUPLEX - if (!lwip_netconn_is_deallocated_msg(mem)) -#endif /* LWIP_NETCONN_FULLDUPLEX */ - { -#if LWIP_TCP - if (NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP) { - 8014bd6: 687b ldr r3, [r7, #4] - 8014bd8: 781b ldrb r3, [r3, #0] - 8014bda: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 8014bde: 2b10 cmp r3, #16 - 8014be0: d10e bne.n 8014c00 - err_t err; - if (!lwip_netconn_is_err_msg(mem, &err)) { - 8014be2: 693b ldr r3, [r7, #16] - 8014be4: f107 020f add.w r2, r7, #15 - 8014be8: 4611 mov r1, r2 - 8014bea: 4618 mov r0, r3 - 8014bec: f7ff fbb6 bl 801435c - 8014bf0: 4603 mov r3, r0 - 8014bf2: 2b00 cmp r3, #0 - 8014bf4: d108 bne.n 8014c08 - pbuf_free((struct pbuf *)mem); - 8014bf6: 693b ldr r3, [r7, #16] - 8014bf8: 4618 mov r0, r3 - 8014bfa: f002 ff7d bl 8017af8 - 8014bfe: e003 b.n 8014c08 - } - } else -#endif /* LWIP_TCP */ - { - netbuf_delete((struct netbuf *)mem); - 8014c00: 693b ldr r3, [r7, #16] - 8014c02: 4618 mov r0, r3 - 8014c04: f000 ff4a bl 8015a9c - while (sys_mbox_tryfetch(&conn->recvmbox, &mem) != SYS_MBOX_EMPTY) { - 8014c08: 687b ldr r3, [r7, #4] - 8014c0a: 3310 adds r3, #16 - 8014c0c: f107 0210 add.w r2, r7, #16 - 8014c10: 4611 mov r1, r2 - 8014c12: 4618 mov r0, r3 - 8014c14: f00c fbe7 bl 80213e6 - 8014c18: 4603 mov r3, r0 - 8014c1a: f1b3 3fff cmp.w r3, #4294967295 - 8014c1e: d1da bne.n 8014bd6 - } - } - } - sys_mbox_free(&conn->recvmbox); - 8014c20: 687b ldr r3, [r7, #4] - 8014c22: 3310 adds r3, #16 - 8014c24: 4618 mov r0, r3 - 8014c26: f00c fb73 bl 8021310 - sys_mbox_set_invalid(&conn->recvmbox); - 8014c2a: 687b ldr r3, [r7, #4] - 8014c2c: 3310 adds r3, #16 - 8014c2e: 4618 mov r0, r3 - 8014c30: f00c fc06 bl 8021440 - } - - /* Delete and drain the acceptmbox. */ -#if LWIP_TCP - if (sys_mbox_valid(&conn->acceptmbox)) { - 8014c34: 687b ldr r3, [r7, #4] - 8014c36: 3314 adds r3, #20 - 8014c38: 4618 mov r0, r3 - 8014c3a: f00c fbf0 bl 802141e - 8014c3e: 4603 mov r3, r0 - 8014c40: 2b00 cmp r3, #0 - 8014c42: d034 beq.n 8014cae - while (sys_mbox_tryfetch(&conn->acceptmbox, &mem) != SYS_MBOX_EMPTY) { - 8014c44: e01d b.n 8014c82 -#if LWIP_NETCONN_FULLDUPLEX - if (!lwip_netconn_is_deallocated_msg(mem)) -#endif /* LWIP_NETCONN_FULLDUPLEX */ - { - err_t err; - if (!lwip_netconn_is_err_msg(mem, &err)) { - 8014c46: 693b ldr r3, [r7, #16] - 8014c48: f107 020e add.w r2, r7, #14 - 8014c4c: 4611 mov r1, r2 - 8014c4e: 4618 mov r0, r3 - 8014c50: f7ff fb84 bl 801435c - 8014c54: 4603 mov r3, r0 - 8014c56: 2b00 cmp r3, #0 - 8014c58: d113 bne.n 8014c82 - struct netconn *newconn = (struct netconn *)mem; - 8014c5a: 693b ldr r3, [r7, #16] - 8014c5c: 617b str r3, [r7, #20] - /* Only tcp pcbs have an acceptmbox, so no need to check conn->type */ - /* pcb might be set to NULL already by err_tcp() */ - /* drain recvmbox */ - netconn_drain(newconn); - 8014c5e: 6978 ldr r0, [r7, #20] - 8014c60: f7ff ffac bl 8014bbc - if (newconn->pcb.tcp != NULL) { - 8014c64: 697b ldr r3, [r7, #20] - 8014c66: 685b ldr r3, [r3, #4] - 8014c68: 2b00 cmp r3, #0 - 8014c6a: d007 beq.n 8014c7c - tcp_abort(newconn->pcb.tcp); - 8014c6c: 697b ldr r3, [r7, #20] - 8014c6e: 685b ldr r3, [r3, #4] - 8014c70: 4618 mov r0, r3 - 8014c72: f003 fd31 bl 80186d8 - newconn->pcb.tcp = NULL; - 8014c76: 697b ldr r3, [r7, #20] - 8014c78: 2200 movs r2, #0 - 8014c7a: 605a str r2, [r3, #4] - } - netconn_free(newconn); - 8014c7c: 6978 ldr r0, [r7, #20] - 8014c7e: f7ff ff53 bl 8014b28 - while (sys_mbox_tryfetch(&conn->acceptmbox, &mem) != SYS_MBOX_EMPTY) { - 8014c82: 687b ldr r3, [r7, #4] - 8014c84: 3314 adds r3, #20 - 8014c86: f107 0210 add.w r2, r7, #16 - 8014c8a: 4611 mov r1, r2 - 8014c8c: 4618 mov r0, r3 - 8014c8e: f00c fbaa bl 80213e6 - 8014c92: 4603 mov r3, r0 - 8014c94: f1b3 3fff cmp.w r3, #4294967295 - 8014c98: d1d5 bne.n 8014c46 - } - } - } - sys_mbox_free(&conn->acceptmbox); - 8014c9a: 687b ldr r3, [r7, #4] - 8014c9c: 3314 adds r3, #20 - 8014c9e: 4618 mov r0, r3 - 8014ca0: f00c fb36 bl 8021310 - sys_mbox_set_invalid(&conn->acceptmbox); - 8014ca4: 687b ldr r3, [r7, #4] - 8014ca6: 3314 adds r3, #20 - 8014ca8: 4618 mov r0, r3 - 8014caa: f00c fbc9 bl 8021440 - } -#endif /* LWIP_TCP */ -} - 8014cae: bf00 nop - 8014cb0: 3718 adds r7, #24 - 8014cb2: 46bd mov sp, r7 - 8014cb4: bd80 pop {r7, pc} - ... - -08014cb8 : - * - * @param conn the TCP netconn to close - */ -static err_t -lwip_netconn_do_close_internal(struct netconn *conn WRITE_DELAYED_PARAM) -{ - 8014cb8: b580 push {r7, lr} - 8014cba: b086 sub sp, #24 - 8014cbc: af00 add r7, sp, #0 - 8014cbe: 6078 str r0, [r7, #4] - 8014cc0: 460b mov r3, r1 - 8014cc2: 70fb strb r3, [r7, #3] - err_t err; - u8_t shut, shut_rx, shut_tx, shut_close; - u8_t close_finished = 0; - 8014cc4: 2300 movs r3, #0 - 8014cc6: 757b strb r3, [r7, #21] - struct tcp_pcb *tpcb; -#if LWIP_SO_LINGER - u8_t linger_wait_required = 0; -#endif /* LWIP_SO_LINGER */ - - LWIP_ASSERT("invalid conn", (conn != NULL)); - 8014cc8: 687b ldr r3, [r7, #4] - 8014cca: 2b00 cmp r3, #0 - 8014ccc: d106 bne.n 8014cdc - 8014cce: 4b87 ldr r3, [pc, #540] ; (8014eec ) - 8014cd0: f240 32a2 movw r2, #930 ; 0x3a2 - 8014cd4: 4986 ldr r1, [pc, #536] ; (8014ef0 ) - 8014cd6: 4887 ldr r0, [pc, #540] ; (8014ef4 ) - 8014cd8: f00c fe56 bl 8021988 - LWIP_ASSERT("this is for tcp netconns only", (NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP)); - 8014cdc: 687b ldr r3, [r7, #4] - 8014cde: 781b ldrb r3, [r3, #0] - 8014ce0: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 8014ce4: 2b10 cmp r3, #16 - 8014ce6: d006 beq.n 8014cf6 - 8014ce8: 4b80 ldr r3, [pc, #512] ; (8014eec ) - 8014cea: f240 32a3 movw r2, #931 ; 0x3a3 - 8014cee: 4982 ldr r1, [pc, #520] ; (8014ef8 ) - 8014cf0: 4880 ldr r0, [pc, #512] ; (8014ef4 ) - 8014cf2: f00c fe49 bl 8021988 - LWIP_ASSERT("conn must be in state NETCONN_CLOSE", (conn->state == NETCONN_CLOSE)); - 8014cf6: 687b ldr r3, [r7, #4] - 8014cf8: 785b ldrb r3, [r3, #1] - 8014cfa: 2b04 cmp r3, #4 - 8014cfc: d006 beq.n 8014d0c - 8014cfe: 4b7b ldr r3, [pc, #492] ; (8014eec ) - 8014d00: f44f 7269 mov.w r2, #932 ; 0x3a4 - 8014d04: 497d ldr r1, [pc, #500] ; (8014efc ) - 8014d06: 487b ldr r0, [pc, #492] ; (8014ef4 ) - 8014d08: f00c fe3e bl 8021988 - LWIP_ASSERT("pcb already closed", (conn->pcb.tcp != NULL)); - 8014d0c: 687b ldr r3, [r7, #4] - 8014d0e: 685b ldr r3, [r3, #4] - 8014d10: 2b00 cmp r3, #0 - 8014d12: d106 bne.n 8014d22 - 8014d14: 4b75 ldr r3, [pc, #468] ; (8014eec ) - 8014d16: f240 32a5 movw r2, #933 ; 0x3a5 - 8014d1a: 4979 ldr r1, [pc, #484] ; (8014f00 ) - 8014d1c: 4875 ldr r0, [pc, #468] ; (8014ef4 ) - 8014d1e: f00c fe33 bl 8021988 - LWIP_ASSERT("conn->current_msg != NULL", conn->current_msg != NULL); - 8014d22: 687b ldr r3, [r7, #4] - 8014d24: 6a1b ldr r3, [r3, #32] - 8014d26: 2b00 cmp r3, #0 - 8014d28: d106 bne.n 8014d38 - 8014d2a: 4b70 ldr r3, [pc, #448] ; (8014eec ) - 8014d2c: f240 32a6 movw r2, #934 ; 0x3a6 - 8014d30: 4974 ldr r1, [pc, #464] ; (8014f04 ) - 8014d32: 4870 ldr r0, [pc, #448] ; (8014ef4 ) - 8014d34: f00c fe28 bl 8021988 - - tpcb = conn->pcb.tcp; - 8014d38: 687b ldr r3, [r7, #4] - 8014d3a: 685b ldr r3, [r3, #4] - 8014d3c: 613b str r3, [r7, #16] - shut = conn->current_msg->msg.sd.shut; - 8014d3e: 687b ldr r3, [r7, #4] - 8014d40: 6a1b ldr r3, [r3, #32] - 8014d42: 7a1b ldrb r3, [r3, #8] - 8014d44: 73fb strb r3, [r7, #15] - shut_rx = shut & NETCONN_SHUT_RD; - 8014d46: 7bfb ldrb r3, [r7, #15] - 8014d48: f003 0301 and.w r3, r3, #1 - 8014d4c: 73bb strb r3, [r7, #14] - shut_tx = shut & NETCONN_SHUT_WR; - 8014d4e: 7bfb ldrb r3, [r7, #15] - 8014d50: f003 0302 and.w r3, r3, #2 - 8014d54: 737b strb r3, [r7, #13] - /* shutting down both ends is the same as closing - (also if RD or WR side was shut down before already) */ - if (shut == NETCONN_SHUT_RDWR) { - 8014d56: 7bfb ldrb r3, [r7, #15] - 8014d58: 2b03 cmp r3, #3 - 8014d5a: d102 bne.n 8014d62 - shut_close = 1; - 8014d5c: 2301 movs r3, #1 - 8014d5e: 75bb strb r3, [r7, #22] - 8014d60: e01f b.n 8014da2 - } else if (shut_rx && - 8014d62: 7bbb ldrb r3, [r7, #14] - 8014d64: 2b00 cmp r3, #0 - 8014d66: d00e beq.n 8014d86 - ((tpcb->state == FIN_WAIT_1) || - 8014d68: 693b ldr r3, [r7, #16] - 8014d6a: 7d1b ldrb r3, [r3, #20] - } else if (shut_rx && - 8014d6c: 2b05 cmp r3, #5 - 8014d6e: d007 beq.n 8014d80 - (tpcb->state == FIN_WAIT_2) || - 8014d70: 693b ldr r3, [r7, #16] - 8014d72: 7d1b ldrb r3, [r3, #20] - ((tpcb->state == FIN_WAIT_1) || - 8014d74: 2b06 cmp r3, #6 - 8014d76: d003 beq.n 8014d80 - (tpcb->state == CLOSING))) { - 8014d78: 693b ldr r3, [r7, #16] - 8014d7a: 7d1b ldrb r3, [r3, #20] - (tpcb->state == FIN_WAIT_2) || - 8014d7c: 2b08 cmp r3, #8 - 8014d7e: d102 bne.n 8014d86 - shut_close = 1; - 8014d80: 2301 movs r3, #1 - 8014d82: 75bb strb r3, [r7, #22] - 8014d84: e00d b.n 8014da2 - } else if (shut_tx && ((tpcb->flags & TF_RXCLOSED) != 0)) { - 8014d86: 7b7b ldrb r3, [r7, #13] - 8014d88: 2b00 cmp r3, #0 - 8014d8a: d008 beq.n 8014d9e - 8014d8c: 693b ldr r3, [r7, #16] - 8014d8e: 8b5b ldrh r3, [r3, #26] - 8014d90: f003 0310 and.w r3, r3, #16 - 8014d94: 2b00 cmp r3, #0 - 8014d96: d002 beq.n 8014d9e - shut_close = 1; - 8014d98: 2301 movs r3, #1 - 8014d9a: 75bb strb r3, [r7, #22] - 8014d9c: e001 b.n 8014da2 - } else { - shut_close = 0; - 8014d9e: 2300 movs r3, #0 - 8014da0: 75bb strb r3, [r7, #22] - } - - /* Set back some callback pointers */ - if (shut_close) { - 8014da2: 7dbb ldrb r3, [r7, #22] - 8014da4: 2b00 cmp r3, #0 - 8014da6: d003 beq.n 8014db0 - tcp_arg(tpcb, NULL); - 8014da8: 2100 movs r1, #0 - 8014daa: 6938 ldr r0, [r7, #16] - 8014dac: f004 fd74 bl 8019898 - } - if (tpcb->state == LISTEN) { - 8014db0: 693b ldr r3, [r7, #16] - 8014db2: 7d1b ldrb r3, [r3, #20] - 8014db4: 2b01 cmp r3, #1 - 8014db6: d104 bne.n 8014dc2 - tcp_accept(tpcb, NULL); - 8014db8: 2100 movs r1, #0 - 8014dba: 6938 ldr r0, [r7, #16] - 8014dbc: f004 fde4 bl 8019988 - 8014dc0: e01d b.n 8014dfe - } else { - /* some callbacks have to be reset if tcp_close is not successful */ - if (shut_rx) { - 8014dc2: 7bbb ldrb r3, [r7, #14] - 8014dc4: 2b00 cmp r3, #0 - 8014dc6: d007 beq.n 8014dd8 - tcp_recv(tpcb, NULL); - 8014dc8: 2100 movs r1, #0 - 8014dca: 6938 ldr r0, [r7, #16] - 8014dcc: f004 fd76 bl 80198bc - tcp_accept(tpcb, NULL); - 8014dd0: 2100 movs r1, #0 - 8014dd2: 6938 ldr r0, [r7, #16] - 8014dd4: f004 fdd8 bl 8019988 - } - if (shut_tx) { - 8014dd8: 7b7b ldrb r3, [r7, #13] - 8014dda: 2b00 cmp r3, #0 - 8014ddc: d003 beq.n 8014de6 - tcp_sent(tpcb, NULL); - 8014dde: 2100 movs r1, #0 - 8014de0: 6938 ldr r0, [r7, #16] - 8014de2: f004 fd8d bl 8019900 - } - if (shut_close) { - 8014de6: 7dbb ldrb r3, [r7, #22] - 8014de8: 2b00 cmp r3, #0 - 8014dea: d008 beq.n 8014dfe - tcp_poll(tpcb, NULL, 0); - 8014dec: 2200 movs r2, #0 - 8014dee: 2100 movs r1, #0 - 8014df0: 6938 ldr r0, [r7, #16] - 8014df2: f004 fde1 bl 80199b8 - tcp_err(tpcb, NULL); - 8014df6: 2100 movs r1, #0 - 8014df8: 6938 ldr r0, [r7, #16] - 8014dfa: f004 fda3 bl 8019944 - } - } - /* Try to close the connection */ - if (shut_close) { - 8014dfe: 7dbb ldrb r3, [r7, #22] - 8014e00: 2b00 cmp r3, #0 - 8014e02: d005 beq.n 8014e10 - } - } - if ((err == ERR_OK) && (tpcb != NULL)) -#endif /* LWIP_SO_LINGER */ - { - err = tcp_close(tpcb); - 8014e04: 6938 ldr r0, [r7, #16] - 8014e06: f003 fb21 bl 801844c - 8014e0a: 4603 mov r3, r0 - 8014e0c: 75fb strb r3, [r7, #23] - 8014e0e: e007 b.n 8014e20 - } - } else { - err = tcp_shutdown(tpcb, shut_rx, shut_tx); - 8014e10: 7bbb ldrb r3, [r7, #14] - 8014e12: 7b7a ldrb r2, [r7, #13] - 8014e14: 4619 mov r1, r3 - 8014e16: 6938 ldr r0, [r7, #16] - 8014e18: f003 fb44 bl 80184a4 - 8014e1c: 4603 mov r3, r0 - 8014e1e: 75fb strb r3, [r7, #23] - } - if (err == ERR_OK) { - 8014e20: f997 3017 ldrsb.w r3, [r7, #23] - 8014e24: 2b00 cmp r3, #0 - 8014e26: d102 bne.n 8014e2e - close_finished = 1; - 8014e28: 2301 movs r3, #1 - 8014e2a: 757b strb r3, [r7, #21] - 8014e2c: e016 b.n 8014e5c - close_finished = 0; - err = ERR_INPROGRESS; - } -#endif /* LWIP_SO_LINGER */ - } else { - if (err == ERR_MEM) { - 8014e2e: f997 3017 ldrsb.w r3, [r7, #23] - 8014e32: f1b3 3fff cmp.w r3, #4294967295 - 8014e36: d10f bne.n 8014e58 - close_timeout = conn->linger * 1000U; - } -#endif - if ((s32_t)(sys_now() - conn->current_msg->msg.sd.time_started) >= close_timeout) { -#else /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */ - if (conn->current_msg->msg.sd.polls_left == 0) { - 8014e38: 687b ldr r3, [r7, #4] - 8014e3a: 6a1b ldr r3, [r3, #32] - 8014e3c: 7a5b ldrb r3, [r3, #9] - 8014e3e: 2b00 cmp r3, #0 - 8014e40: d10c bne.n 8014e5c -#endif /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */ - close_finished = 1; - 8014e42: 2301 movs r3, #1 - 8014e44: 757b strb r3, [r7, #21] - if (shut_close) { - 8014e46: 7dbb ldrb r3, [r7, #22] - 8014e48: 2b00 cmp r3, #0 - 8014e4a: d007 beq.n 8014e5c - /* in this case, we want to RST the connection */ - tcp_abort(tpcb); - 8014e4c: 6938 ldr r0, [r7, #16] - 8014e4e: f003 fc43 bl 80186d8 - err = ERR_OK; - 8014e52: 2300 movs r3, #0 - 8014e54: 75fb strb r3, [r7, #23] - 8014e56: e001 b.n 8014e5c - } - } - } else { - /* Closing failed for a non-memory error: give up */ - close_finished = 1; - 8014e58: 2301 movs r3, #1 - 8014e5a: 757b strb r3, [r7, #21] - } - } - if (close_finished) { - 8014e5c: 7d7b ldrb r3, [r7, #21] - 8014e5e: 2b00 cmp r3, #0 - 8014e60: d052 beq.n 8014f08 - /* Closing done (succeeded, non-memory error, nonblocking error or timeout) */ - sys_sem_t *op_completed_sem = LWIP_API_MSG_SEM(conn->current_msg); - 8014e62: 687b ldr r3, [r7, #4] - 8014e64: 6a1b ldr r3, [r3, #32] - 8014e66: 681b ldr r3, [r3, #0] - 8014e68: 330c adds r3, #12 - 8014e6a: 60bb str r3, [r7, #8] - conn->current_msg->err = err; - 8014e6c: 687b ldr r3, [r7, #4] - 8014e6e: 6a1b ldr r3, [r3, #32] - 8014e70: 7dfa ldrb r2, [r7, #23] - 8014e72: 711a strb r2, [r3, #4] - conn->current_msg = NULL; - 8014e74: 687b ldr r3, [r7, #4] - 8014e76: 2200 movs r2, #0 - 8014e78: 621a str r2, [r3, #32] - conn->state = NETCONN_NONE; - 8014e7a: 687b ldr r3, [r7, #4] - 8014e7c: 2200 movs r2, #0 - 8014e7e: 705a strb r2, [r3, #1] - if (err == ERR_OK) { - 8014e80: f997 3017 ldrsb.w r3, [r7, #23] - 8014e84: 2b00 cmp r3, #0 - 8014e86: d129 bne.n 8014edc - if (shut_close) { - 8014e88: 7dbb ldrb r3, [r7, #22] - 8014e8a: 2b00 cmp r3, #0 - 8014e8c: d00c beq.n 8014ea8 - /* Set back some callback pointers as conn is going away */ - conn->pcb.tcp = NULL; - 8014e8e: 687b ldr r3, [r7, #4] - 8014e90: 2200 movs r2, #0 - 8014e92: 605a str r2, [r3, #4] - /* Trigger select() in socket layer. Make sure everybody notices activity - on the connection, error first! */ - API_EVENT(conn, NETCONN_EVT_ERROR, 0); - 8014e94: 687b ldr r3, [r7, #4] - 8014e96: 6a5b ldr r3, [r3, #36] ; 0x24 - 8014e98: 2b00 cmp r3, #0 - 8014e9a: d005 beq.n 8014ea8 - 8014e9c: 687b ldr r3, [r7, #4] - 8014e9e: 6a5b ldr r3, [r3, #36] ; 0x24 - 8014ea0: 2200 movs r2, #0 - 8014ea2: 2104 movs r1, #4 - 8014ea4: 6878 ldr r0, [r7, #4] - 8014ea6: 4798 blx r3 - } - if (shut_rx) { - 8014ea8: 7bbb ldrb r3, [r7, #14] - 8014eaa: 2b00 cmp r3, #0 - 8014eac: d009 beq.n 8014ec2 - API_EVENT(conn, NETCONN_EVT_RCVPLUS, 0); - 8014eae: 687b ldr r3, [r7, #4] - 8014eb0: 6a5b ldr r3, [r3, #36] ; 0x24 - 8014eb2: 2b00 cmp r3, #0 - 8014eb4: d005 beq.n 8014ec2 - 8014eb6: 687b ldr r3, [r7, #4] - 8014eb8: 6a5b ldr r3, [r3, #36] ; 0x24 - 8014eba: 2200 movs r2, #0 - 8014ebc: 2100 movs r1, #0 - 8014ebe: 6878 ldr r0, [r7, #4] - 8014ec0: 4798 blx r3 - } - if (shut_tx) { - 8014ec2: 7b7b ldrb r3, [r7, #13] - 8014ec4: 2b00 cmp r3, #0 - 8014ec6: d009 beq.n 8014edc - API_EVENT(conn, NETCONN_EVT_SENDPLUS, 0); - 8014ec8: 687b ldr r3, [r7, #4] - 8014eca: 6a5b ldr r3, [r3, #36] ; 0x24 - 8014ecc: 2b00 cmp r3, #0 - 8014ece: d005 beq.n 8014edc - 8014ed0: 687b ldr r3, [r7, #4] - 8014ed2: 6a5b ldr r3, [r3, #36] ; 0x24 - 8014ed4: 2200 movs r2, #0 - 8014ed6: 2102 movs r1, #2 - 8014ed8: 6878 ldr r0, [r7, #4] - 8014eda: 4798 blx r3 - } - } -#if LWIP_TCPIP_CORE_LOCKING - if (delayed) - 8014edc: 78fb ldrb r3, [r7, #3] - 8014ede: 2b00 cmp r3, #0 - 8014ee0: d002 beq.n 8014ee8 -#endif - { - /* wake up the application task */ - sys_sem_signal(op_completed_sem); - 8014ee2: 68b8 ldr r0, [r7, #8] - 8014ee4: f00c fb12 bl 802150c - } - return ERR_OK; - 8014ee8: 2300 movs r3, #0 - 8014eea: e03c b.n 8014f66 - 8014eec: 08023624 .word 0x08023624 - 8014ef0: 080238f8 .word 0x080238f8 - 8014ef4: 08023668 .word 0x08023668 - 8014ef8: 08023908 .word 0x08023908 - 8014efc: 08023928 .word 0x08023928 - 8014f00: 0802394c .word 0x0802394c - 8014f04: 0802378c .word 0x0802378c - } - if (!close_finished) { - 8014f08: 7d7b ldrb r3, [r7, #21] - 8014f0a: 2b00 cmp r3, #0 - 8014f0c: d11e bne.n 8014f4c - /* Closing failed and we want to wait: restore some of the callbacks */ - /* Closing of listen pcb will never fail! */ - LWIP_ASSERT("Closing a listen pcb may not fail!", (tpcb->state != LISTEN)); - 8014f0e: 693b ldr r3, [r7, #16] - 8014f10: 7d1b ldrb r3, [r3, #20] - 8014f12: 2b01 cmp r3, #1 - 8014f14: d106 bne.n 8014f24 - 8014f16: 4b16 ldr r3, [pc, #88] ; (8014f70 ) - 8014f18: f240 4241 movw r2, #1089 ; 0x441 - 8014f1c: 4915 ldr r1, [pc, #84] ; (8014f74 ) - 8014f1e: 4816 ldr r0, [pc, #88] ; (8014f78 ) - 8014f20: f00c fd32 bl 8021988 - if (shut_tx) { - 8014f24: 7b7b ldrb r3, [r7, #13] - 8014f26: 2b00 cmp r3, #0 - 8014f28: d003 beq.n 8014f32 - tcp_sent(tpcb, sent_tcp); - 8014f2a: 4914 ldr r1, [pc, #80] ; (8014f7c ) - 8014f2c: 6938 ldr r0, [r7, #16] - 8014f2e: f004 fce7 bl 8019900 - } - /* when waiting for close, set up poll interval to 500ms */ - tcp_poll(tpcb, poll_tcp, 1); - 8014f32: 2201 movs r2, #1 - 8014f34: 4912 ldr r1, [pc, #72] ; (8014f80 ) - 8014f36: 6938 ldr r0, [r7, #16] - 8014f38: f004 fd3e bl 80199b8 - tcp_err(tpcb, err_tcp); - 8014f3c: 4911 ldr r1, [pc, #68] ; (8014f84 ) - 8014f3e: 6938 ldr r0, [r7, #16] - 8014f40: f004 fd00 bl 8019944 - tcp_arg(tpcb, conn); - 8014f44: 6879 ldr r1, [r7, #4] - 8014f46: 6938 ldr r0, [r7, #16] - 8014f48: f004 fca6 bl 8019898 - /* don't restore recv callback: we don't want to receive any more data */ - } - /* If closing didn't succeed, we get called again either - from poll_tcp or from sent_tcp */ - LWIP_ASSERT("err != ERR_OK", err != ERR_OK); - 8014f4c: f997 3017 ldrsb.w r3, [r7, #23] - 8014f50: 2b00 cmp r3, #0 - 8014f52: d106 bne.n 8014f62 - 8014f54: 4b06 ldr r3, [pc, #24] ; (8014f70 ) - 8014f56: f240 424d movw r2, #1101 ; 0x44d - 8014f5a: 490b ldr r1, [pc, #44] ; (8014f88 ) - 8014f5c: 4806 ldr r0, [pc, #24] ; (8014f78 ) - 8014f5e: f00c fd13 bl 8021988 - return err; - 8014f62: f997 3017 ldrsb.w r3, [r7, #23] -} - 8014f66: 4618 mov r0, r3 - 8014f68: 3718 adds r7, #24 - 8014f6a: 46bd mov sp, r7 - 8014f6c: bd80 pop {r7, pc} - 8014f6e: bf00 nop - 8014f70: 08023624 .word 0x08023624 - 8014f74: 08023960 .word 0x08023960 - 8014f78: 08023668 .word 0x08023668 - 8014f7c: 080146a5 .word 0x080146a5 - 8014f80: 080145d9 .word 0x080145d9 - 8014f84: 08014751 .word 0x08014751 - 8014f88: 08023984 .word 0x08023984 - -08014f8c : - * - * @param m the api_msg pointing to the connection - */ -void -lwip_netconn_do_delconn(void *m) -{ - 8014f8c: b580 push {r7, lr} - 8014f8e: b084 sub sp, #16 - 8014f90: af00 add r7, sp, #0 - 8014f92: 6078 str r0, [r7, #4] - struct api_msg *msg = (struct api_msg *)m; - 8014f94: 687b ldr r3, [r7, #4] - 8014f96: 60fb str r3, [r7, #12] - - enum netconn_state state = msg->conn->state; - 8014f98: 68fb ldr r3, [r7, #12] - 8014f9a: 681b ldr r3, [r3, #0] - 8014f9c: 785b ldrb r3, [r3, #1] - 8014f9e: 72fb strb r3, [r7, #11] - LWIP_ASSERT("netconn state error", /* this only happens for TCP netconns */ - 8014fa0: 7afb ldrb r3, [r7, #11] - 8014fa2: 2b00 cmp r3, #0 - 8014fa4: d00d beq.n 8014fc2 - 8014fa6: 68fb ldr r3, [r7, #12] - 8014fa8: 681b ldr r3, [r3, #0] - 8014faa: 781b ldrb r3, [r3, #0] - 8014fac: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 8014fb0: 2b10 cmp r3, #16 - 8014fb2: d006 beq.n 8014fc2 - 8014fb4: 4b60 ldr r3, [pc, #384] ; (8015138 ) - 8014fb6: f240 425e movw r2, #1118 ; 0x45e - 8014fba: 4960 ldr r1, [pc, #384] ; (801513c ) - 8014fbc: 4860 ldr r0, [pc, #384] ; (8015140 ) - 8014fbe: f00c fce3 bl 8021988 - msg->conn->state = NETCONN_NONE; - sys_sem_signal(op_completed_sem); - } - } -#else /* LWIP_NETCONN_FULLDUPLEX */ - if (((state != NETCONN_NONE) && - 8014fc2: 7afb ldrb r3, [r7, #11] - 8014fc4: 2b00 cmp r3, #0 - 8014fc6: d005 beq.n 8014fd4 - 8014fc8: 7afb ldrb r3, [r7, #11] - 8014fca: 2b02 cmp r3, #2 - 8014fcc: d002 beq.n 8014fd4 - (state != NETCONN_LISTEN) && - 8014fce: 7afb ldrb r3, [r7, #11] - 8014fd0: 2b03 cmp r3, #3 - 8014fd2: d109 bne.n 8014fe8 - (state != NETCONN_CONNECT)) || - 8014fd4: 7afb ldrb r3, [r7, #11] - 8014fd6: 2b03 cmp r3, #3 - 8014fd8: d10a bne.n 8014ff0 - ((state == NETCONN_CONNECT) && !IN_NONBLOCKING_CONNECT(msg->conn))) { - 8014fda: 68fb ldr r3, [r7, #12] - 8014fdc: 681b ldr r3, [r3, #0] - 8014fde: 7f1b ldrb r3, [r3, #28] - 8014fe0: f003 0304 and.w r3, r3, #4 - 8014fe4: 2b00 cmp r3, #0 - 8014fe6: d103 bne.n 8014ff0 - /* This means either a blocking write or blocking connect is running - (nonblocking write returns and sets state to NONE) */ - msg->err = ERR_INPROGRESS; - 8014fe8: 68fb ldr r3, [r7, #12] - 8014fea: 22fb movs r2, #251 ; 0xfb - 8014fec: 711a strb r2, [r3, #4] - 8014fee: e097 b.n 8015120 - } else -#endif /* LWIP_NETCONN_FULLDUPLEX */ - { - LWIP_ASSERT("blocking connect in progress", - 8014ff0: 7afb ldrb r3, [r7, #11] - 8014ff2: 2b03 cmp r3, #3 - 8014ff4: d10d bne.n 8015012 - 8014ff6: 68fb ldr r3, [r7, #12] - 8014ff8: 681b ldr r3, [r3, #0] - 8014ffa: 7f1b ldrb r3, [r3, #28] - 8014ffc: f003 0304 and.w r3, r3, #4 - 8015000: 2b00 cmp r3, #0 - 8015002: d106 bne.n 8015012 - 8015004: 4b4c ldr r3, [pc, #304] ; (8015138 ) - 8015006: f240 427a movw r2, #1146 ; 0x47a - 801500a: 494e ldr r1, [pc, #312] ; (8015144 ) - 801500c: 484c ldr r0, [pc, #304] ; (8015140 ) - 801500e: f00c fcbb bl 8021988 - (state != NETCONN_CONNECT) || IN_NONBLOCKING_CONNECT(msg->conn)); - msg->err = ERR_OK; - 8015012: 68fb ldr r3, [r7, #12] - 8015014: 2200 movs r2, #0 - 8015016: 711a strb r2, [r3, #4] -#if LWIP_NETCONN_FULLDUPLEX - /* Mark mboxes invalid */ - netconn_mark_mbox_invalid(msg->conn); -#else /* LWIP_NETCONN_FULLDUPLEX */ - netconn_drain(msg->conn); - 8015018: 68fb ldr r3, [r7, #12] - 801501a: 681b ldr r3, [r3, #0] - 801501c: 4618 mov r0, r3 - 801501e: f7ff fdcd bl 8014bbc -#endif /* LWIP_NETCONN_FULLDUPLEX */ - - if (msg->conn->pcb.tcp != NULL) { - 8015022: 68fb ldr r3, [r7, #12] - 8015024: 681b ldr r3, [r3, #0] - 8015026: 685b ldr r3, [r3, #4] - 8015028: 2b00 cmp r3, #0 - 801502a: d05f beq.n 80150ec - - switch (NETCONNTYPE_GROUP(msg->conn->type)) { - 801502c: 68fb ldr r3, [r7, #12] - 801502e: 681b ldr r3, [r3, #0] - 8015030: 781b ldrb r3, [r3, #0] - 8015032: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 8015036: 2b10 cmp r3, #16 - 8015038: d00d beq.n 8015056 - 801503a: 2b20 cmp r3, #32 - 801503c: d151 bne.n 80150e2 - raw_remove(msg->conn->pcb.raw); - break; -#endif /* LWIP_RAW */ -#if LWIP_UDP - case NETCONN_UDP: - msg->conn->pcb.udp->recv_arg = NULL; - 801503e: 68fb ldr r3, [r7, #12] - 8015040: 681b ldr r3, [r3, #0] - 8015042: 685b ldr r3, [r3, #4] - 8015044: 2200 movs r2, #0 - 8015046: 61da str r2, [r3, #28] - udp_remove(msg->conn->pcb.udp); - 8015048: 68fb ldr r3, [r7, #12] - 801504a: 681b ldr r3, [r3, #0] - 801504c: 685b ldr r3, [r3, #4] - 801504e: 4618 mov r0, r3 - 8015050: f009 fd88 bl 801eb64 - break; - 8015054: e046 b.n 80150e4 -#endif /* LWIP_UDP */ -#if LWIP_TCP - case NETCONN_TCP: - LWIP_ASSERT("already writing or closing", msg->conn->current_msg == NULL); - 8015056: 68fb ldr r3, [r7, #12] - 8015058: 681b ldr r3, [r3, #0] - 801505a: 6a1b ldr r3, [r3, #32] - 801505c: 2b00 cmp r3, #0 - 801505e: d006 beq.n 801506e - 8015060: 4b35 ldr r3, [pc, #212] ; (8015138 ) - 8015062: f240 4294 movw r2, #1172 ; 0x494 - 8015066: 4938 ldr r1, [pc, #224] ; (8015148 ) - 8015068: 4835 ldr r0, [pc, #212] ; (8015140 ) - 801506a: f00c fc8d bl 8021988 - msg->conn->state = NETCONN_CLOSE; - 801506e: 68fb ldr r3, [r7, #12] - 8015070: 681b ldr r3, [r3, #0] - 8015072: 2204 movs r2, #4 - 8015074: 705a strb r2, [r3, #1] - msg->msg.sd.shut = NETCONN_SHUT_RDWR; - 8015076: 68fb ldr r3, [r7, #12] - 8015078: 2203 movs r2, #3 - 801507a: 721a strb r2, [r3, #8] - msg->conn->current_msg = msg; - 801507c: 68fb ldr r3, [r7, #12] - 801507e: 681b ldr r3, [r3, #0] - 8015080: 68fa ldr r2, [r7, #12] - 8015082: 621a str r2, [r3, #32] -#if LWIP_TCPIP_CORE_LOCKING - if (lwip_netconn_do_close_internal(msg->conn, 0) != ERR_OK) { - 8015084: 68fb ldr r3, [r7, #12] - 8015086: 681b ldr r3, [r3, #0] - 8015088: 2100 movs r1, #0 - 801508a: 4618 mov r0, r3 - 801508c: f7ff fe14 bl 8014cb8 - 8015090: 4603 mov r3, r0 - 8015092: 2b00 cmp r3, #0 - 8015094: d04b beq.n 801512e - LWIP_ASSERT("state!", msg->conn->state == NETCONN_CLOSE); - 8015096: 68fb ldr r3, [r7, #12] - 8015098: 681b ldr r3, [r3, #0] - 801509a: 785b ldrb r3, [r3, #1] - 801509c: 2b04 cmp r3, #4 - 801509e: d006 beq.n 80150ae - 80150a0: 4b25 ldr r3, [pc, #148] ; (8015138 ) - 80150a2: f240 429a movw r2, #1178 ; 0x49a - 80150a6: 4929 ldr r1, [pc, #164] ; (801514c ) - 80150a8: 4825 ldr r0, [pc, #148] ; (8015140 ) - 80150aa: f00c fc6d bl 8021988 - UNLOCK_TCPIP_CORE(); - 80150ae: 4828 ldr r0, [pc, #160] ; (8015150 ) - 80150b0: f00c fa9d bl 80215ee - sys_arch_sem_wait(LWIP_API_MSG_SEM(msg), 0); - 80150b4: 68fb ldr r3, [r7, #12] - 80150b6: 681b ldr r3, [r3, #0] - 80150b8: 330c adds r3, #12 - 80150ba: 2100 movs r1, #0 - 80150bc: 4618 mov r0, r3 - 80150be: f00c f9f4 bl 80214aa - LOCK_TCPIP_CORE(); - 80150c2: 4823 ldr r0, [pc, #140] ; (8015150 ) - 80150c4: f00c fa84 bl 80215d0 - LWIP_ASSERT("state!", msg->conn->state == NETCONN_NONE); - 80150c8: 68fb ldr r3, [r7, #12] - 80150ca: 681b ldr r3, [r3, #0] - 80150cc: 785b ldrb r3, [r3, #1] - 80150ce: 2b00 cmp r3, #0 - 80150d0: d02d beq.n 801512e - 80150d2: 4b19 ldr r3, [pc, #100] ; (8015138 ) - 80150d4: f240 429e movw r2, #1182 ; 0x49e - 80150d8: 491c ldr r1, [pc, #112] ; (801514c ) - 80150da: 4819 ldr r0, [pc, #100] ; (8015140 ) - 80150dc: f00c fc54 bl 8021988 -#else /* LWIP_TCPIP_CORE_LOCKING */ - lwip_netconn_do_close_internal(msg->conn); -#endif /* LWIP_TCPIP_CORE_LOCKING */ - /* API_EVENT is called inside lwip_netconn_do_close_internal, before releasing - the application thread, so we can return at this point! */ - return; - 80150e0: e025 b.n 801512e -#endif /* LWIP_TCP */ - default: - break; - 80150e2: bf00 nop - } - msg->conn->pcb.tcp = NULL; - 80150e4: 68fb ldr r3, [r7, #12] - 80150e6: 681b ldr r3, [r3, #0] - 80150e8: 2200 movs r2, #0 - 80150ea: 605a str r2, [r3, #4] - } - /* tcp netconns don't come here! */ - - /* @todo: this lets select make the socket readable and writable, - which is wrong! errfd instead? */ - API_EVENT(msg->conn, NETCONN_EVT_RCVPLUS, 0); - 80150ec: 68fb ldr r3, [r7, #12] - 80150ee: 681b ldr r3, [r3, #0] - 80150f0: 6a5b ldr r3, [r3, #36] ; 0x24 - 80150f2: 2b00 cmp r3, #0 - 80150f4: d007 beq.n 8015106 - 80150f6: 68fb ldr r3, [r7, #12] - 80150f8: 681b ldr r3, [r3, #0] - 80150fa: 6a5b ldr r3, [r3, #36] ; 0x24 - 80150fc: 68fa ldr r2, [r7, #12] - 80150fe: 6810 ldr r0, [r2, #0] - 8015100: 2200 movs r2, #0 - 8015102: 2100 movs r1, #0 - 8015104: 4798 blx r3 - API_EVENT(msg->conn, NETCONN_EVT_SENDPLUS, 0); - 8015106: 68fb ldr r3, [r7, #12] - 8015108: 681b ldr r3, [r3, #0] - 801510a: 6a5b ldr r3, [r3, #36] ; 0x24 - 801510c: 2b00 cmp r3, #0 - 801510e: d007 beq.n 8015120 - 8015110: 68fb ldr r3, [r7, #12] - 8015112: 681b ldr r3, [r3, #0] - 8015114: 6a5b ldr r3, [r3, #36] ; 0x24 - 8015116: 68fa ldr r2, [r7, #12] - 8015118: 6810 ldr r0, [r2, #0] - 801511a: 2200 movs r2, #0 - 801511c: 2102 movs r1, #2 - 801511e: 4798 blx r3 - } - if (sys_sem_valid(LWIP_API_MSG_SEM(msg))) { - 8015120: 68fb ldr r3, [r7, #12] - 8015122: 681b ldr r3, [r3, #0] - 8015124: 330c adds r3, #12 - 8015126: 4618 mov r0, r3 - 8015128: f00c fa0a bl 8021540 - 801512c: e000 b.n 8015130 - return; - 801512e: bf00 nop - TCPIP_APIMSG_ACK(msg); - } -} - 8015130: 3710 adds r7, #16 - 8015132: 46bd mov sp, r7 - 8015134: bd80 pop {r7, pc} - 8015136: bf00 nop - 8015138: 08023624 .word 0x08023624 - 801513c: 08023994 .word 0x08023994 - 8015140: 08023668 .word 0x08023668 - 8015144: 080239a8 .word 0x080239a8 - 8015148: 080239c8 .word 0x080239c8 - 801514c: 080239e4 .word 0x080239e4 - 8015150: 2401397c .word 0x2401397c - -08015154 : - * @param m the api_msg pointing to the connection and containing - * the IP address and port to bind to - */ -void -lwip_netconn_do_bind(void *m) -{ - 8015154: b580 push {r7, lr} - 8015156: b084 sub sp, #16 - 8015158: af00 add r7, sp, #0 - 801515a: 6078 str r0, [r7, #4] - struct api_msg *msg = (struct api_msg *)m; - 801515c: 687b ldr r3, [r7, #4] - 801515e: 60bb str r3, [r7, #8] - err_t err; - - if (msg->conn->pcb.tcp != NULL) { - 8015160: 68bb ldr r3, [r7, #8] - 8015162: 681b ldr r3, [r3, #0] - 8015164: 685b ldr r3, [r3, #4] - 8015166: 2b00 cmp r3, #0 - 8015168: d025 beq.n 80151b6 - switch (NETCONNTYPE_GROUP(msg->conn->type)) { - 801516a: 68bb ldr r3, [r7, #8] - 801516c: 681b ldr r3, [r3, #0] - 801516e: 781b ldrb r3, [r3, #0] - 8015170: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 8015174: 2b10 cmp r3, #16 - 8015176: d00e beq.n 8015196 - 8015178: 2b20 cmp r3, #32 - 801517a: d119 bne.n 80151b0 - err = raw_bind(msg->conn->pcb.raw, API_EXPR_REF(msg->msg.bc.ipaddr)); - break; -#endif /* LWIP_RAW */ -#if LWIP_UDP - case NETCONN_UDP: - err = udp_bind(msg->conn->pcb.udp, API_EXPR_REF(msg->msg.bc.ipaddr), msg->msg.bc.port); - 801517c: 68bb ldr r3, [r7, #8] - 801517e: 681b ldr r3, [r3, #0] - 8015180: 6858 ldr r0, [r3, #4] - 8015182: 68bb ldr r3, [r7, #8] - 8015184: 6899 ldr r1, [r3, #8] - 8015186: 68bb ldr r3, [r7, #8] - 8015188: 899b ldrh r3, [r3, #12] - 801518a: 461a mov r2, r3 - 801518c: f009 fbd4 bl 801e938 - 8015190: 4603 mov r3, r0 - 8015192: 73fb strb r3, [r7, #15] - break; - 8015194: e011 b.n 80151ba -#endif /* LWIP_UDP */ -#if LWIP_TCP - case NETCONN_TCP: - err = tcp_bind(msg->conn->pcb.tcp, API_EXPR_REF(msg->msg.bc.ipaddr), msg->msg.bc.port); - 8015196: 68bb ldr r3, [r7, #8] - 8015198: 681b ldr r3, [r3, #0] - 801519a: 6858 ldr r0, [r3, #4] - 801519c: 68bb ldr r3, [r7, #8] - 801519e: 6899 ldr r1, [r3, #8] - 80151a0: 68bb ldr r3, [r7, #8] - 80151a2: 899b ldrh r3, [r3, #12] - 80151a4: 461a mov r2, r3 - 80151a6: f003 faa3 bl 80186f0 - 80151aa: 4603 mov r3, r0 - 80151ac: 73fb strb r3, [r7, #15] - break; - 80151ae: e004 b.n 80151ba -#endif /* LWIP_TCP */ - default: - err = ERR_VAL; - 80151b0: 23fa movs r3, #250 ; 0xfa - 80151b2: 73fb strb r3, [r7, #15] - break; - 80151b4: e001 b.n 80151ba - } - } else { - err = ERR_VAL; - 80151b6: 23fa movs r3, #250 ; 0xfa - 80151b8: 73fb strb r3, [r7, #15] - } - msg->err = err; - 80151ba: 68bb ldr r3, [r7, #8] - 80151bc: 7bfa ldrb r2, [r7, #15] - 80151be: 711a strb r2, [r3, #4] - TCPIP_APIMSG_ACK(msg); -} - 80151c0: bf00 nop - 80151c2: 3710 adds r7, #16 - 80151c4: 46bd mov sp, r7 - 80151c6: bd80 pop {r7, pc} - -080151c8 : - * - * @see tcp.h (struct tcp_pcb.connected) for parameters and return values - */ -static err_t -lwip_netconn_do_connected(void *arg, struct tcp_pcb *pcb, err_t err) -{ - 80151c8: b580 push {r7, lr} - 80151ca: b088 sub sp, #32 - 80151cc: af00 add r7, sp, #0 - 80151ce: 60f8 str r0, [r7, #12] - 80151d0: 60b9 str r1, [r7, #8] - 80151d2: 4613 mov r3, r2 - 80151d4: 71fb strb r3, [r7, #7] - struct netconn *conn; - int was_blocking; - sys_sem_t *op_completed_sem = NULL; - 80151d6: 2300 movs r3, #0 - 80151d8: 61fb str r3, [r7, #28] - - LWIP_UNUSED_ARG(pcb); - - conn = (struct netconn *)arg; - 80151da: 68fb ldr r3, [r7, #12] - 80151dc: 61bb str r3, [r7, #24] - - if (conn == NULL) { - 80151de: 69bb ldr r3, [r7, #24] - 80151e0: 2b00 cmp r3, #0 - 80151e2: d102 bne.n 80151ea - return ERR_VAL; - 80151e4: f06f 0305 mvn.w r3, #5 - 80151e8: e070 b.n 80152cc - } - - LWIP_ASSERT("conn->state == NETCONN_CONNECT", conn->state == NETCONN_CONNECT); - 80151ea: 69bb ldr r3, [r7, #24] - 80151ec: 785b ldrb r3, [r3, #1] - 80151ee: 2b03 cmp r3, #3 - 80151f0: d006 beq.n 8015200 - 80151f2: 4b38 ldr r3, [pc, #224] ; (80152d4 ) - 80151f4: f240 5223 movw r2, #1315 ; 0x523 - 80151f8: 4937 ldr r1, [pc, #220] ; (80152d8 ) - 80151fa: 4838 ldr r0, [pc, #224] ; (80152dc ) - 80151fc: f00c fbc4 bl 8021988 - LWIP_ASSERT("(conn->current_msg != NULL) || conn->in_non_blocking_connect", - 8015200: 69bb ldr r3, [r7, #24] - 8015202: 6a1b ldr r3, [r3, #32] - 8015204: 2b00 cmp r3, #0 - 8015206: d10c bne.n 8015222 - 8015208: 69bb ldr r3, [r7, #24] - 801520a: 7f1b ldrb r3, [r3, #28] - 801520c: f003 0304 and.w r3, r3, #4 - 8015210: 2b00 cmp r3, #0 - 8015212: d106 bne.n 8015222 - 8015214: 4b2f ldr r3, [pc, #188] ; (80152d4 ) - 8015216: f240 5224 movw r2, #1316 ; 0x524 - 801521a: 4931 ldr r1, [pc, #196] ; (80152e0 ) - 801521c: 482f ldr r0, [pc, #188] ; (80152dc ) - 801521e: f00c fbb3 bl 8021988 - (conn->current_msg != NULL) || IN_NONBLOCKING_CONNECT(conn)); - - if (conn->current_msg != NULL) { - 8015222: 69bb ldr r3, [r7, #24] - 8015224: 6a1b ldr r3, [r3, #32] - 8015226: 2b00 cmp r3, #0 - 8015228: d008 beq.n 801523c - conn->current_msg->err = err; - 801522a: 69bb ldr r3, [r7, #24] - 801522c: 6a1b ldr r3, [r3, #32] - 801522e: 79fa ldrb r2, [r7, #7] - 8015230: 711a strb r2, [r3, #4] - op_completed_sem = LWIP_API_MSG_SEM(conn->current_msg); - 8015232: 69bb ldr r3, [r7, #24] - 8015234: 6a1b ldr r3, [r3, #32] - 8015236: 681b ldr r3, [r3, #0] - 8015238: 330c adds r3, #12 - 801523a: 61fb str r3, [r7, #28] - } - if ((NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP) && (err == ERR_OK)) { - 801523c: 69bb ldr r3, [r7, #24] - 801523e: 781b ldrb r3, [r3, #0] - 8015240: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 8015244: 2b10 cmp r3, #16 - 8015246: d106 bne.n 8015256 - 8015248: f997 3007 ldrsb.w r3, [r7, #7] - 801524c: 2b00 cmp r3, #0 - 801524e: d102 bne.n 8015256 - setup_tcp(conn); - 8015250: 69b8 ldr r0, [r7, #24] - 8015252: f7ff fb53 bl 80148fc - } - was_blocking = !IN_NONBLOCKING_CONNECT(conn); - 8015256: 69bb ldr r3, [r7, #24] - 8015258: 7f1b ldrb r3, [r3, #28] - 801525a: f003 0304 and.w r3, r3, #4 - 801525e: 2b00 cmp r3, #0 - 8015260: bf0c ite eq - 8015262: 2301 moveq r3, #1 - 8015264: 2300 movne r3, #0 - 8015266: b2db uxtb r3, r3 - 8015268: 617b str r3, [r7, #20] - SET_NONBLOCKING_CONNECT(conn, 0); - 801526a: 69bb ldr r3, [r7, #24] - 801526c: 7f1b ldrb r3, [r3, #28] - 801526e: f023 0304 bic.w r3, r3, #4 - 8015272: b2da uxtb r2, r3 - 8015274: 69bb ldr r3, [r7, #24] - 8015276: 771a strb r2, [r3, #28] - LWIP_ASSERT("blocking connect state error", - 8015278: 697b ldr r3, [r7, #20] - 801527a: 2b00 cmp r3, #0 - 801527c: d002 beq.n 8015284 - 801527e: 69fb ldr r3, [r7, #28] - 8015280: 2b00 cmp r3, #0 - 8015282: d10c bne.n 801529e - 8015284: 697b ldr r3, [r7, #20] - 8015286: 2b00 cmp r3, #0 - 8015288: d102 bne.n 8015290 - 801528a: 69fb ldr r3, [r7, #28] - 801528c: 2b00 cmp r3, #0 - 801528e: d006 beq.n 801529e - 8015290: 4b10 ldr r3, [pc, #64] ; (80152d4 ) - 8015292: f44f 62a6 mov.w r2, #1328 ; 0x530 - 8015296: 4913 ldr r1, [pc, #76] ; (80152e4 ) - 8015298: 4810 ldr r0, [pc, #64] ; (80152dc ) - 801529a: f00c fb75 bl 8021988 - (was_blocking && op_completed_sem != NULL) || - (!was_blocking && op_completed_sem == NULL)); - conn->current_msg = NULL; - 801529e: 69bb ldr r3, [r7, #24] - 80152a0: 2200 movs r2, #0 - 80152a2: 621a str r2, [r3, #32] - conn->state = NETCONN_NONE; - 80152a4: 69bb ldr r3, [r7, #24] - 80152a6: 2200 movs r2, #0 - 80152a8: 705a strb r2, [r3, #1] - API_EVENT(conn, NETCONN_EVT_SENDPLUS, 0); - 80152aa: 69bb ldr r3, [r7, #24] - 80152ac: 6a5b ldr r3, [r3, #36] ; 0x24 - 80152ae: 2b00 cmp r3, #0 - 80152b0: d005 beq.n 80152be - 80152b2: 69bb ldr r3, [r7, #24] - 80152b4: 6a5b ldr r3, [r3, #36] ; 0x24 - 80152b6: 2200 movs r2, #0 - 80152b8: 2102 movs r1, #2 - 80152ba: 69b8 ldr r0, [r7, #24] - 80152bc: 4798 blx r3 - - if (was_blocking) { - 80152be: 697b ldr r3, [r7, #20] - 80152c0: 2b00 cmp r3, #0 - 80152c2: d002 beq.n 80152ca - sys_sem_signal(op_completed_sem); - 80152c4: 69f8 ldr r0, [r7, #28] - 80152c6: f00c f921 bl 802150c - } - return ERR_OK; - 80152ca: 2300 movs r3, #0 -} - 80152cc: 4618 mov r0, r3 - 80152ce: 3720 adds r7, #32 - 80152d0: 46bd mov sp, r7 - 80152d2: bd80 pop {r7, pc} - 80152d4: 08023624 .word 0x08023624 - 80152d8: 080239ec .word 0x080239ec - 80152dc: 08023668 .word 0x08023668 - 80152e0: 08023a0c .word 0x08023a0c - 80152e4: 08023a4c .word 0x08023a4c - -080152e8 : - * @param m the api_msg pointing to the connection and containing - * the IP address and port to connect to - */ -void -lwip_netconn_do_connect(void *m) -{ - 80152e8: b580 push {r7, lr} - 80152ea: b086 sub sp, #24 - 80152ec: af00 add r7, sp, #0 - 80152ee: 6078 str r0, [r7, #4] - struct api_msg *msg = (struct api_msg *)m; - 80152f0: 687b ldr r3, [r7, #4] - 80152f2: 613b str r3, [r7, #16] - err_t err; - - if (msg->conn->pcb.tcp == NULL) { - 80152f4: 693b ldr r3, [r7, #16] - 80152f6: 681b ldr r3, [r3, #0] - 80152f8: 685b ldr r3, [r3, #4] - 80152fa: 2b00 cmp r3, #0 - 80152fc: d102 bne.n 8015304 - /* This may happen when calling netconn_connect() a second time */ - err = ERR_CLSD; - 80152fe: 23f1 movs r3, #241 ; 0xf1 - 8015300: 75fb strb r3, [r7, #23] - 8015302: e09b b.n 801543c - } else { - switch (NETCONNTYPE_GROUP(msg->conn->type)) { - 8015304: 693b ldr r3, [r7, #16] - 8015306: 681b ldr r3, [r3, #0] - 8015308: 781b ldrb r3, [r3, #0] - 801530a: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 801530e: 2b10 cmp r3, #16 - 8015310: d00f beq.n 8015332 - 8015312: 2b20 cmp r3, #32 - 8015314: f040 8087 bne.w 8015426 - err = raw_connect(msg->conn->pcb.raw, API_EXPR_REF(msg->msg.bc.ipaddr)); - break; -#endif /* LWIP_RAW */ -#if LWIP_UDP - case NETCONN_UDP: - err = udp_connect(msg->conn->pcb.udp, API_EXPR_REF(msg->msg.bc.ipaddr), msg->msg.bc.port); - 8015318: 693b ldr r3, [r7, #16] - 801531a: 681b ldr r3, [r3, #0] - 801531c: 6858 ldr r0, [r3, #4] - 801531e: 693b ldr r3, [r7, #16] - 8015320: 6899 ldr r1, [r3, #8] - 8015322: 693b ldr r3, [r7, #16] - 8015324: 899b ldrh r3, [r3, #12] - 8015326: 461a mov r2, r3 - 8015328: f009 fb8e bl 801ea48 - 801532c: 4603 mov r3, r0 - 801532e: 75fb strb r3, [r7, #23] - break; - 8015330: e084 b.n 801543c -#endif /* LWIP_UDP */ -#if LWIP_TCP - case NETCONN_TCP: - /* Prevent connect while doing any other action. */ - if (msg->conn->state == NETCONN_CONNECT) { - 8015332: 693b ldr r3, [r7, #16] - 8015334: 681b ldr r3, [r3, #0] - 8015336: 785b ldrb r3, [r3, #1] - 8015338: 2b03 cmp r3, #3 - 801533a: d102 bne.n 8015342 - err = ERR_ALREADY; - 801533c: 23f7 movs r3, #247 ; 0xf7 - 801533e: 75fb strb r3, [r7, #23] -#endif /* LWIP_TCPIP_CORE_LOCKING */ - return; - } - } - } - break; - 8015340: e07b b.n 801543a - } else if (msg->conn->state != NETCONN_NONE) { - 8015342: 693b ldr r3, [r7, #16] - 8015344: 681b ldr r3, [r3, #0] - 8015346: 785b ldrb r3, [r3, #1] - 8015348: 2b00 cmp r3, #0 - 801534a: d002 beq.n 8015352 - err = ERR_ISCONN; - 801534c: 23f6 movs r3, #246 ; 0xf6 - 801534e: 75fb strb r3, [r7, #23] - break; - 8015350: e073 b.n 801543a - setup_tcp(msg->conn); - 8015352: 693b ldr r3, [r7, #16] - 8015354: 681b ldr r3, [r3, #0] - 8015356: 4618 mov r0, r3 - 8015358: f7ff fad0 bl 80148fc - err = tcp_connect(msg->conn->pcb.tcp, API_EXPR_REF(msg->msg.bc.ipaddr), - 801535c: 693b ldr r3, [r7, #16] - 801535e: 681b ldr r3, [r3, #0] - 8015360: 6858 ldr r0, [r3, #4] - 8015362: 693b ldr r3, [r7, #16] - 8015364: 6899 ldr r1, [r3, #8] - 8015366: 693b ldr r3, [r7, #16] - 8015368: 899a ldrh r2, [r3, #12] - 801536a: 4b38 ldr r3, [pc, #224] ; (801544c ) - 801536c: f003 fb4a bl 8018a04 - 8015370: 4603 mov r3, r0 - 8015372: 75fb strb r3, [r7, #23] - if (err == ERR_OK) { - 8015374: f997 3017 ldrsb.w r3, [r7, #23] - 8015378: 2b00 cmp r3, #0 - 801537a: d15e bne.n 801543a - u8_t non_blocking = netconn_is_nonblocking(msg->conn); - 801537c: 693b ldr r3, [r7, #16] - 801537e: 681b ldr r3, [r3, #0] - 8015380: 7f1b ldrb r3, [r3, #28] - 8015382: f003 0302 and.w r3, r3, #2 - 8015386: 2b00 cmp r3, #0 - 8015388: bf14 ite ne - 801538a: 2301 movne r3, #1 - 801538c: 2300 moveq r3, #0 - 801538e: b2db uxtb r3, r3 - 8015390: 73fb strb r3, [r7, #15] - msg->conn->state = NETCONN_CONNECT; - 8015392: 693b ldr r3, [r7, #16] - 8015394: 681b ldr r3, [r3, #0] - 8015396: 2203 movs r2, #3 - 8015398: 705a strb r2, [r3, #1] - SET_NONBLOCKING_CONNECT(msg->conn, non_blocking); - 801539a: 7bfb ldrb r3, [r7, #15] - 801539c: 2b00 cmp r3, #0 - 801539e: d009 beq.n 80153b4 - 80153a0: 693b ldr r3, [r7, #16] - 80153a2: 681b ldr r3, [r3, #0] - 80153a4: 7f1a ldrb r2, [r3, #28] - 80153a6: 693b ldr r3, [r7, #16] - 80153a8: 681b ldr r3, [r3, #0] - 80153aa: f042 0204 orr.w r2, r2, #4 - 80153ae: b2d2 uxtb r2, r2 - 80153b0: 771a strb r2, [r3, #28] - 80153b2: e008 b.n 80153c6 - 80153b4: 693b ldr r3, [r7, #16] - 80153b6: 681b ldr r3, [r3, #0] - 80153b8: 7f1a ldrb r2, [r3, #28] - 80153ba: 693b ldr r3, [r7, #16] - 80153bc: 681b ldr r3, [r3, #0] - 80153be: f022 0204 bic.w r2, r2, #4 - 80153c2: b2d2 uxtb r2, r2 - 80153c4: 771a strb r2, [r3, #28] - if (non_blocking) { - 80153c6: 7bfb ldrb r3, [r7, #15] - 80153c8: 2b00 cmp r3, #0 - 80153ca: d002 beq.n 80153d2 - err = ERR_INPROGRESS; - 80153cc: 23fb movs r3, #251 ; 0xfb - 80153ce: 75fb strb r3, [r7, #23] - break; - 80153d0: e033 b.n 801543a - msg->conn->current_msg = msg; - 80153d2: 693b ldr r3, [r7, #16] - 80153d4: 681b ldr r3, [r3, #0] - 80153d6: 693a ldr r2, [r7, #16] - 80153d8: 621a str r2, [r3, #32] - LWIP_ASSERT("state!", msg->conn->state == NETCONN_CONNECT); - 80153da: 693b ldr r3, [r7, #16] - 80153dc: 681b ldr r3, [r3, #0] - 80153de: 785b ldrb r3, [r3, #1] - 80153e0: 2b03 cmp r3, #3 - 80153e2: d006 beq.n 80153f2 - 80153e4: 4b1a ldr r3, [pc, #104] ; (8015450 ) - 80153e6: f44f 62ae mov.w r2, #1392 ; 0x570 - 80153ea: 491a ldr r1, [pc, #104] ; (8015454 ) - 80153ec: 481a ldr r0, [pc, #104] ; (8015458 ) - 80153ee: f00c facb bl 8021988 - UNLOCK_TCPIP_CORE(); - 80153f2: 481a ldr r0, [pc, #104] ; (801545c ) - 80153f4: f00c f8fb bl 80215ee - sys_arch_sem_wait(LWIP_API_MSG_SEM(msg), 0); - 80153f8: 693b ldr r3, [r7, #16] - 80153fa: 681b ldr r3, [r3, #0] - 80153fc: 330c adds r3, #12 - 80153fe: 2100 movs r1, #0 - 8015400: 4618 mov r0, r3 - 8015402: f00c f852 bl 80214aa - LOCK_TCPIP_CORE(); - 8015406: 4815 ldr r0, [pc, #84] ; (801545c ) - 8015408: f00c f8e2 bl 80215d0 - LWIP_ASSERT("state!", msg->conn->state != NETCONN_CONNECT); - 801540c: 693b ldr r3, [r7, #16] - 801540e: 681b ldr r3, [r3, #0] - 8015410: 785b ldrb r3, [r3, #1] - 8015412: 2b03 cmp r3, #3 - 8015414: d116 bne.n 8015444 - 8015416: 4b0e ldr r3, [pc, #56] ; (8015450 ) - 8015418: f240 5274 movw r2, #1396 ; 0x574 - 801541c: 490d ldr r1, [pc, #52] ; (8015454 ) - 801541e: 480e ldr r0, [pc, #56] ; (8015458 ) - 8015420: f00c fab2 bl 8021988 - return; - 8015424: e00e b.n 8015444 -#endif /* LWIP_TCP */ - default: - LWIP_ERROR("Invalid netconn type", 0, do { - 8015426: 4b0a ldr r3, [pc, #40] ; (8015450 ) - 8015428: f240 527d movw r2, #1405 ; 0x57d - 801542c: 490c ldr r1, [pc, #48] ; (8015460 ) - 801542e: 480a ldr r0, [pc, #40] ; (8015458 ) - 8015430: f00c faaa bl 8021988 - 8015434: 23fa movs r3, #250 ; 0xfa - 8015436: 75fb strb r3, [r7, #23] - err = ERR_VAL; - } while (0)); - break; - 8015438: e000 b.n 801543c - break; - 801543a: bf00 nop - } - } - msg->err = err; - 801543c: 693b ldr r3, [r7, #16] - 801543e: 7dfa ldrb r2, [r7, #23] - 8015440: 711a strb r2, [r3, #4] - 8015442: e000 b.n 8015446 - return; - 8015444: bf00 nop - /* For all other protocols, netconn_connect() calls netconn_apimsg(), - so use TCPIP_APIMSG_ACK() here. */ - TCPIP_APIMSG_ACK(msg); -} - 8015446: 3718 adds r7, #24 - 8015448: 46bd mov sp, r7 - 801544a: bd80 pop {r7, pc} - 801544c: 080151c9 .word 0x080151c9 - 8015450: 08023624 .word 0x08023624 - 8015454: 080239e4 .word 0x080239e4 - 8015458: 08023668 .word 0x08023668 - 801545c: 2401397c .word 0x2401397c - 8015460: 08023a6c .word 0x08023a6c - -08015464 : - * - * @param m the api_msg pointing to the connection - */ -void -lwip_netconn_do_recv(void *m) -{ - 8015464: b580 push {r7, lr} - 8015466: b086 sub sp, #24 - 8015468: af00 add r7, sp, #0 - 801546a: 6078 str r0, [r7, #4] - struct api_msg *msg = (struct api_msg *)m; - 801546c: 687b ldr r3, [r7, #4] - 801546e: 613b str r3, [r7, #16] - - msg->err = ERR_OK; - 8015470: 693b ldr r3, [r7, #16] - 8015472: 2200 movs r2, #0 - 8015474: 711a strb r2, [r3, #4] - if (msg->conn->pcb.tcp != NULL) { - 8015476: 693b ldr r3, [r7, #16] - 8015478: 681b ldr r3, [r3, #0] - 801547a: 685b ldr r3, [r3, #4] - 801547c: 2b00 cmp r3, #0 - 801547e: d022 beq.n 80154c6 - if (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_TCP) { - 8015480: 693b ldr r3, [r7, #16] - 8015482: 681b ldr r3, [r3, #0] - 8015484: 781b ldrb r3, [r3, #0] - 8015486: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 801548a: 2b10 cmp r3, #16 - 801548c: d11b bne.n 80154c6 - size_t remaining = msg->msg.r.len; - 801548e: 693b ldr r3, [r7, #16] - 8015490: 689b ldr r3, [r3, #8] - 8015492: 617b str r3, [r7, #20] - do { - u16_t recved = (u16_t)((remaining > 0xffff) ? 0xffff : remaining); - 8015494: 697b ldr r3, [r7, #20] - 8015496: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 801549a: d202 bcs.n 80154a2 - 801549c: 697b ldr r3, [r7, #20] - 801549e: b29b uxth r3, r3 - 80154a0: e001 b.n 80154a6 - 80154a2: f64f 73ff movw r3, #65535 ; 0xffff - 80154a6: 81fb strh r3, [r7, #14] - tcp_recved(msg->conn->pcb.tcp, recved); - 80154a8: 693b ldr r3, [r7, #16] - 80154aa: 681b ldr r3, [r3, #0] - 80154ac: 685b ldr r3, [r3, #4] - 80154ae: 89fa ldrh r2, [r7, #14] - 80154b0: 4611 mov r1, r2 - 80154b2: 4618 mov r0, r3 - 80154b4: f003 fa0e bl 80188d4 - remaining -= recved; - 80154b8: 89fb ldrh r3, [r7, #14] - 80154ba: 697a ldr r2, [r7, #20] - 80154bc: 1ad3 subs r3, r2, r3 - 80154be: 617b str r3, [r7, #20] - } while (remaining != 0); - 80154c0: 697b ldr r3, [r7, #20] - 80154c2: 2b00 cmp r3, #0 - 80154c4: d1e6 bne.n 8015494 - } - } - TCPIP_APIMSG_ACK(msg); -} - 80154c6: bf00 nop - 80154c8: 3718 adds r7, #24 - 80154ca: 46bd mov sp, r7 - 80154cc: bd80 pop {r7, pc} - ... - -080154d0 : - * @return ERR_OK - * ERR_MEM if LWIP_TCPIP_CORE_LOCKING=1 and sending hasn't yet finished - */ -static err_t -lwip_netconn_do_writemore(struct netconn *conn WRITE_DELAYED_PARAM) -{ - 80154d0: b580 push {r7, lr} - 80154d2: b088 sub sp, #32 - 80154d4: af00 add r7, sp, #0 - 80154d6: 6078 str r0, [r7, #4] - 80154d8: 460b mov r3, r1 - 80154da: 70fb strb r3, [r7, #3] - err_t err; - const void *dataptr; - u16_t len, available; - u8_t write_finished = 0; - 80154dc: 2300 movs r3, #0 - 80154de: 76fb strb r3, [r7, #27] - size_t diff; - u8_t dontblock; - u8_t apiflags; - u8_t write_more; - - LWIP_ASSERT("conn != NULL", conn != NULL); - 80154e0: 687b ldr r3, [r7, #4] - 80154e2: 2b00 cmp r3, #0 - 80154e4: d106 bne.n 80154f4 - 80154e6: 4b96 ldr r3, [pc, #600] ; (8015740 ) - 80154e8: f240 6273 movw r2, #1651 ; 0x673 - 80154ec: 4995 ldr r1, [pc, #596] ; (8015744 ) - 80154ee: 4896 ldr r0, [pc, #600] ; (8015748 ) - 80154f0: f00c fa4a bl 8021988 - LWIP_ASSERT("conn->state == NETCONN_WRITE", (conn->state == NETCONN_WRITE)); - 80154f4: 687b ldr r3, [r7, #4] - 80154f6: 785b ldrb r3, [r3, #1] - 80154f8: 2b01 cmp r3, #1 - 80154fa: d006 beq.n 801550a - 80154fc: 4b90 ldr r3, [pc, #576] ; (8015740 ) - 80154fe: f240 6274 movw r2, #1652 ; 0x674 - 8015502: 4992 ldr r1, [pc, #584] ; (801574c ) - 8015504: 4890 ldr r0, [pc, #576] ; (8015748 ) - 8015506: f00c fa3f bl 8021988 - LWIP_ASSERT("conn->current_msg != NULL", conn->current_msg != NULL); - 801550a: 687b ldr r3, [r7, #4] - 801550c: 6a1b ldr r3, [r3, #32] - 801550e: 2b00 cmp r3, #0 - 8015510: d106 bne.n 8015520 - 8015512: 4b8b ldr r3, [pc, #556] ; (8015740 ) - 8015514: f240 6275 movw r2, #1653 ; 0x675 - 8015518: 498d ldr r1, [pc, #564] ; (8015750 ) - 801551a: 488b ldr r0, [pc, #556] ; (8015748 ) - 801551c: f00c fa34 bl 8021988 - LWIP_ASSERT("conn->pcb.tcp != NULL", conn->pcb.tcp != NULL); - 8015520: 687b ldr r3, [r7, #4] - 8015522: 685b ldr r3, [r3, #4] - 8015524: 2b00 cmp r3, #0 - 8015526: d106 bne.n 8015536 - 8015528: 4b85 ldr r3, [pc, #532] ; (8015740 ) - 801552a: f240 6276 movw r2, #1654 ; 0x676 - 801552e: 4989 ldr r1, [pc, #548] ; (8015754 ) - 8015530: 4885 ldr r0, [pc, #532] ; (8015748 ) - 8015532: f00c fa29 bl 8021988 - LWIP_ASSERT("conn->current_msg->msg.w.offset < conn->current_msg->msg.w.len", - 8015536: 687b ldr r3, [r7, #4] - 8015538: 6a1b ldr r3, [r3, #32] - 801553a: 699a ldr r2, [r3, #24] - 801553c: 687b ldr r3, [r7, #4] - 801553e: 6a1b ldr r3, [r3, #32] - 8015540: 695b ldr r3, [r3, #20] - 8015542: 429a cmp r2, r3 - 8015544: d306 bcc.n 8015554 - 8015546: 4b7e ldr r3, [pc, #504] ; (8015740 ) - 8015548: f240 6277 movw r2, #1655 ; 0x677 - 801554c: 4982 ldr r1, [pc, #520] ; (8015758 ) - 801554e: 487e ldr r0, [pc, #504] ; (8015748 ) - 8015550: f00c fa1a bl 8021988 - conn->current_msg->msg.w.offset < conn->current_msg->msg.w.len); - LWIP_ASSERT("conn->current_msg->msg.w.vector_cnt > 0", conn->current_msg->msg.w.vector_cnt > 0); - 8015554: 687b ldr r3, [r7, #4] - 8015556: 6a1b ldr r3, [r3, #32] - 8015558: 899b ldrh r3, [r3, #12] - 801555a: 2b00 cmp r3, #0 - 801555c: d106 bne.n 801556c - 801555e: 4b78 ldr r3, [pc, #480] ; (8015740 ) - 8015560: f240 6279 movw r2, #1657 ; 0x679 - 8015564: 497d ldr r1, [pc, #500] ; (801575c ) - 8015566: 4878 ldr r0, [pc, #480] ; (8015748 ) - 8015568: f00c fa0e bl 8021988 - - apiflags = conn->current_msg->msg.w.apiflags; - 801556c: 687b ldr r3, [r7, #4] - 801556e: 6a1b ldr r3, [r3, #32] - 8015570: 7f1b ldrb r3, [r3, #28] - 8015572: 76bb strb r3, [r7, #26] - dontblock = netconn_is_nonblocking(conn) || (apiflags & NETCONN_DONTBLOCK); - 8015574: 687b ldr r3, [r7, #4] - 8015576: 7f1b ldrb r3, [r3, #28] - 8015578: f003 0302 and.w r3, r3, #2 - 801557c: 2b00 cmp r3, #0 - 801557e: d104 bne.n 801558a - 8015580: 7ebb ldrb r3, [r7, #26] - 8015582: f003 0304 and.w r3, r3, #4 - 8015586: 2b00 cmp r3, #0 - 8015588: d001 beq.n 801558e - 801558a: 2301 movs r3, #1 - 801558c: e000 b.n 8015590 - 801558e: 2300 movs r3, #0 - 8015590: 763b strb r3, [r7, #24] - } - } else -#endif /* LWIP_SO_SNDTIMEO */ - { - do { - dataptr = (const u8_t *)conn->current_msg->msg.w.vector->ptr + conn->current_msg->msg.w.vector_off; - 8015592: 687b ldr r3, [r7, #4] - 8015594: 6a1b ldr r3, [r3, #32] - 8015596: 689b ldr r3, [r3, #8] - 8015598: 681a ldr r2, [r3, #0] - 801559a: 687b ldr r3, [r7, #4] - 801559c: 6a1b ldr r3, [r3, #32] - 801559e: 691b ldr r3, [r3, #16] - 80155a0: 4413 add r3, r2 - 80155a2: 617b str r3, [r7, #20] - diff = conn->current_msg->msg.w.vector->len - conn->current_msg->msg.w.vector_off; - 80155a4: 687b ldr r3, [r7, #4] - 80155a6: 6a1b ldr r3, [r3, #32] - 80155a8: 689b ldr r3, [r3, #8] - 80155aa: 685a ldr r2, [r3, #4] - 80155ac: 687b ldr r3, [r7, #4] - 80155ae: 6a1b ldr r3, [r3, #32] - 80155b0: 691b ldr r3, [r3, #16] - 80155b2: 1ad3 subs r3, r2, r3 - 80155b4: 613b str r3, [r7, #16] - if (diff > 0xffffUL) { /* max_u16_t */ - 80155b6: 693b ldr r3, [r7, #16] - 80155b8: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 80155bc: d307 bcc.n 80155ce - len = 0xffff; - 80155be: f64f 73ff movw r3, #65535 ; 0xffff - 80155c2: 83bb strh r3, [r7, #28] - apiflags |= TCP_WRITE_FLAG_MORE; - 80155c4: 7ebb ldrb r3, [r7, #26] - 80155c6: f043 0302 orr.w r3, r3, #2 - 80155ca: 76bb strb r3, [r7, #26] - 80155cc: e001 b.n 80155d2 - } else { - len = (u16_t)diff; - 80155ce: 693b ldr r3, [r7, #16] - 80155d0: 83bb strh r3, [r7, #28] - } - available = tcp_sndbuf(conn->pcb.tcp); - 80155d2: 687b ldr r3, [r7, #4] - 80155d4: 685b ldr r3, [r3, #4] - 80155d6: f8b3 3064 ldrh.w r3, [r3, #100] ; 0x64 - 80155da: 81fb strh r3, [r7, #14] - if (available < len) { - 80155dc: 89fa ldrh r2, [r7, #14] - 80155de: 8bbb ldrh r3, [r7, #28] - 80155e0: 429a cmp r2, r3 - 80155e2: d216 bcs.n 8015612 - /* don't try to write more than sendbuf */ - len = available; - 80155e4: 89fb ldrh r3, [r7, #14] - 80155e6: 83bb strh r3, [r7, #28] - if (dontblock) { - 80155e8: 7e3b ldrb r3, [r7, #24] - 80155ea: 2b00 cmp r3, #0 - 80155ec: d00d beq.n 801560a - if (!len) { - 80155ee: 8bbb ldrh r3, [r7, #28] - 80155f0: 2b00 cmp r3, #0 - 80155f2: d10e bne.n 8015612 - /* set error according to partial write or not */ - err = (conn->current_msg->msg.w.offset == 0) ? ERR_WOULDBLOCK : ERR_OK; - 80155f4: 687b ldr r3, [r7, #4] - 80155f6: 6a1b ldr r3, [r3, #32] - 80155f8: 699b ldr r3, [r3, #24] - 80155fa: 2b00 cmp r3, #0 - 80155fc: d102 bne.n 8015604 - 80155fe: f06f 0306 mvn.w r3, #6 - 8015602: e000 b.n 8015606 - 8015604: 2300 movs r3, #0 - 8015606: 77fb strb r3, [r7, #31] - goto err_mem; - 8015608: e07d b.n 8015706 - } - } else { - apiflags |= TCP_WRITE_FLAG_MORE; - 801560a: 7ebb ldrb r3, [r7, #26] - 801560c: f043 0302 orr.w r3, r3, #2 - 8015610: 76bb strb r3, [r7, #26] - } - } - LWIP_ASSERT("lwip_netconn_do_writemore: invalid length!", - 8015612: 687b ldr r3, [r7, #4] - 8015614: 6a1b ldr r3, [r3, #32] - 8015616: 691a ldr r2, [r3, #16] - 8015618: 8bbb ldrh r3, [r7, #28] - 801561a: 441a add r2, r3 - 801561c: 687b ldr r3, [r7, #4] - 801561e: 6a1b ldr r3, [r3, #32] - 8015620: 689b ldr r3, [r3, #8] - 8015622: 685b ldr r3, [r3, #4] - 8015624: 429a cmp r2, r3 - 8015626: d906 bls.n 8015636 - 8015628: 4b45 ldr r3, [pc, #276] ; (8015740 ) - 801562a: f240 62a3 movw r2, #1699 ; 0x6a3 - 801562e: 494c ldr r1, [pc, #304] ; (8015760 ) - 8015630: 4845 ldr r0, [pc, #276] ; (8015748 ) - 8015632: f00c f9a9 bl 8021988 - ((conn->current_msg->msg.w.vector_off + len) <= conn->current_msg->msg.w.vector->len)); - /* we should loop around for more sending in the following cases: - 1) We couldn't finish the current vector because of 16-bit size limitations. - tcp_write() and tcp_sndbuf() both are limited to 16-bit sizes - 2) We are sending the remainder of the current vector and have more */ - if ((len == 0xffff && diff > 0xffffUL) || - 8015636: 8bbb ldrh r3, [r7, #28] - 8015638: f64f 72ff movw r2, #65535 ; 0xffff - 801563c: 4293 cmp r3, r2 - 801563e: d103 bne.n 8015648 - 8015640: 693b ldr r3, [r7, #16] - 8015642: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8015646: d209 bcs.n 801565c - (len == (u16_t)diff && conn->current_msg->msg.w.vector_cnt > 1)) { - 8015648: 693b ldr r3, [r7, #16] - 801564a: b29b uxth r3, r3 - if ((len == 0xffff && diff > 0xffffUL) || - 801564c: 8bba ldrh r2, [r7, #28] - 801564e: 429a cmp r2, r3 - 8015650: d10b bne.n 801566a - (len == (u16_t)diff && conn->current_msg->msg.w.vector_cnt > 1)) { - 8015652: 687b ldr r3, [r7, #4] - 8015654: 6a1b ldr r3, [r3, #32] - 8015656: 899b ldrh r3, [r3, #12] - 8015658: 2b01 cmp r3, #1 - 801565a: d906 bls.n 801566a - write_more = 1; - 801565c: 2301 movs r3, #1 - 801565e: 767b strb r3, [r7, #25] - apiflags |= TCP_WRITE_FLAG_MORE; - 8015660: 7ebb ldrb r3, [r7, #26] - 8015662: f043 0302 orr.w r3, r3, #2 - 8015666: 76bb strb r3, [r7, #26] - 8015668: e001 b.n 801566e - } else { - write_more = 0; - 801566a: 2300 movs r3, #0 - 801566c: 767b strb r3, [r7, #25] - } - err = tcp_write(conn->pcb.tcp, dataptr, len, apiflags); - 801566e: 687b ldr r3, [r7, #4] - 8015670: 6858 ldr r0, [r3, #4] - 8015672: 7ebb ldrb r3, [r7, #26] - 8015674: 8bba ldrh r2, [r7, #28] - 8015676: 6979 ldr r1, [r7, #20] - 8015678: f007 f858 bl 801c72c - 801567c: 4603 mov r3, r0 - 801567e: 77fb strb r3, [r7, #31] - if (err == ERR_OK) { - 8015680: f997 301f ldrsb.w r3, [r7, #31] - 8015684: 2b00 cmp r3, #0 - 8015686: d12c bne.n 80156e2 - conn->current_msg->msg.w.offset += len; - 8015688: 687b ldr r3, [r7, #4] - 801568a: 6a1b ldr r3, [r3, #32] - 801568c: 6999 ldr r1, [r3, #24] - 801568e: 8bba ldrh r2, [r7, #28] - 8015690: 687b ldr r3, [r7, #4] - 8015692: 6a1b ldr r3, [r3, #32] - 8015694: 440a add r2, r1 - 8015696: 619a str r2, [r3, #24] - conn->current_msg->msg.w.vector_off += len; - 8015698: 687b ldr r3, [r7, #4] - 801569a: 6a1b ldr r3, [r3, #32] - 801569c: 6919 ldr r1, [r3, #16] - 801569e: 8bba ldrh r2, [r7, #28] - 80156a0: 687b ldr r3, [r7, #4] - 80156a2: 6a1b ldr r3, [r3, #32] - 80156a4: 440a add r2, r1 - 80156a6: 611a str r2, [r3, #16] - /* check if current vector is finished */ - if (conn->current_msg->msg.w.vector_off == conn->current_msg->msg.w.vector->len) { - 80156a8: 687b ldr r3, [r7, #4] - 80156aa: 6a1b ldr r3, [r3, #32] - 80156ac: 691a ldr r2, [r3, #16] - 80156ae: 687b ldr r3, [r7, #4] - 80156b0: 6a1b ldr r3, [r3, #32] - 80156b2: 689b ldr r3, [r3, #8] - 80156b4: 685b ldr r3, [r3, #4] - 80156b6: 429a cmp r2, r3 - 80156b8: d113 bne.n 80156e2 - conn->current_msg->msg.w.vector_cnt--; - 80156ba: 687b ldr r3, [r7, #4] - 80156bc: 6a1b ldr r3, [r3, #32] - 80156be: 899a ldrh r2, [r3, #12] - 80156c0: 3a01 subs r2, #1 - 80156c2: b292 uxth r2, r2 - 80156c4: 819a strh r2, [r3, #12] - /* if we have additional vectors, move on to them */ - if (conn->current_msg->msg.w.vector_cnt > 0) { - 80156c6: 687b ldr r3, [r7, #4] - 80156c8: 6a1b ldr r3, [r3, #32] - 80156ca: 899b ldrh r3, [r3, #12] - 80156cc: 2b00 cmp r3, #0 - 80156ce: d008 beq.n 80156e2 - conn->current_msg->msg.w.vector++; - 80156d0: 687b ldr r3, [r7, #4] - 80156d2: 6a1b ldr r3, [r3, #32] - 80156d4: 689a ldr r2, [r3, #8] - 80156d6: 3208 adds r2, #8 - 80156d8: 609a str r2, [r3, #8] - conn->current_msg->msg.w.vector_off = 0; - 80156da: 687b ldr r3, [r7, #4] - 80156dc: 6a1b ldr r3, [r3, #32] - 80156de: 2200 movs r2, #0 - 80156e0: 611a str r2, [r3, #16] - } - } - } - } while (write_more && err == ERR_OK); - 80156e2: 7e7b ldrb r3, [r7, #25] - 80156e4: 2b00 cmp r3, #0 - 80156e6: d004 beq.n 80156f2 - 80156e8: f997 301f ldrsb.w r3, [r7, #31] - 80156ec: 2b00 cmp r3, #0 - 80156ee: f43f af50 beq.w 8015592 - /* if OK or memory error, check available space */ - if ((err == ERR_OK) || (err == ERR_MEM)) { - 80156f2: f997 301f ldrsb.w r3, [r7, #31] - 80156f6: 2b00 cmp r3, #0 - 80156f8: d004 beq.n 8015704 - 80156fa: f997 301f ldrsb.w r3, [r7, #31] - 80156fe: f1b3 3fff cmp.w r3, #4294967295 - 8015702: d147 bne.n 8015794 -err_mem: - 8015704: bf00 nop - if (dontblock && (conn->current_msg->msg.w.offset < conn->current_msg->msg.w.len)) { - 8015706: 7e3b ldrb r3, [r7, #24] - 8015708: 2b00 cmp r3, #0 - 801570a: d02b beq.n 8015764 - 801570c: 687b ldr r3, [r7, #4] - 801570e: 6a1b ldr r3, [r3, #32] - 8015710: 699a ldr r2, [r3, #24] - 8015712: 687b ldr r3, [r7, #4] - 8015714: 6a1b ldr r3, [r3, #32] - 8015716: 695b ldr r3, [r3, #20] - 8015718: 429a cmp r2, r3 - 801571a: d223 bcs.n 8015764 - /* non-blocking write did not write everything: mark the pcb non-writable - and let poll_tcp check writable space to mark the pcb writable again */ - API_EVENT(conn, NETCONN_EVT_SENDMINUS, 0); - 801571c: 687b ldr r3, [r7, #4] - 801571e: 6a5b ldr r3, [r3, #36] ; 0x24 - 8015720: 2b00 cmp r3, #0 - 8015722: d005 beq.n 8015730 - 8015724: 687b ldr r3, [r7, #4] - 8015726: 6a5b ldr r3, [r3, #36] ; 0x24 - 8015728: 2200 movs r2, #0 - 801572a: 2103 movs r1, #3 - 801572c: 6878 ldr r0, [r7, #4] - 801572e: 4798 blx r3 - conn->flags |= NETCONN_FLAG_CHECK_WRITESPACE; - 8015730: 687b ldr r3, [r7, #4] - 8015732: 7f1b ldrb r3, [r3, #28] - 8015734: f043 0310 orr.w r3, r3, #16 - 8015738: b2da uxtb r2, r3 - 801573a: 687b ldr r3, [r7, #4] - 801573c: 771a strb r2, [r3, #28] - 801573e: e029 b.n 8015794 - 8015740: 08023624 .word 0x08023624 - 8015744: 0802377c .word 0x0802377c - 8015748: 08023668 .word 0x08023668 - 801574c: 08023a84 .word 0x08023a84 - 8015750: 0802378c .word 0x0802378c - 8015754: 08023aa4 .word 0x08023aa4 - 8015758: 08023abc .word 0x08023abc - 801575c: 08023afc .word 0x08023afc - 8015760: 08023b24 .word 0x08023b24 - } else if ((tcp_sndbuf(conn->pcb.tcp) <= TCP_SNDLOWAT) || - 8015764: 687b ldr r3, [r7, #4] - 8015766: 685b ldr r3, [r3, #4] - 8015768: f8b3 3064 ldrh.w r3, [r3, #100] ; 0x64 - 801576c: f640 3269 movw r2, #2921 ; 0xb69 - 8015770: 4293 cmp r3, r2 - 8015772: d905 bls.n 8015780 - (tcp_sndqueuelen(conn->pcb.tcp) >= TCP_SNDQUEUELOWAT)) { - 8015774: 687b ldr r3, [r7, #4] - 8015776: 685b ldr r3, [r3, #4] - 8015778: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - } else if ((tcp_sndbuf(conn->pcb.tcp) <= TCP_SNDLOWAT) || - 801577c: 2b07 cmp r3, #7 - 801577e: d909 bls.n 8015794 - /* The queued byte- or pbuf-count exceeds the configured low-water limit, - let select mark this pcb as non-writable. */ - API_EVENT(conn, NETCONN_EVT_SENDMINUS, 0); - 8015780: 687b ldr r3, [r7, #4] - 8015782: 6a5b ldr r3, [r3, #36] ; 0x24 - 8015784: 2b00 cmp r3, #0 - 8015786: d005 beq.n 8015794 - 8015788: 687b ldr r3, [r7, #4] - 801578a: 6a5b ldr r3, [r3, #36] ; 0x24 - 801578c: 2200 movs r2, #0 - 801578e: 2103 movs r1, #3 - 8015790: 6878 ldr r0, [r7, #4] - 8015792: 4798 blx r3 - } - } - - if (err == ERR_OK) { - 8015794: f997 301f ldrsb.w r3, [r7, #31] - 8015798: 2b00 cmp r3, #0 - 801579a: d11d bne.n 80157d8 - err_t out_err; - if ((conn->current_msg->msg.w.offset == conn->current_msg->msg.w.len) || dontblock) { - 801579c: 687b ldr r3, [r7, #4] - 801579e: 6a1b ldr r3, [r3, #32] - 80157a0: 699a ldr r2, [r3, #24] - 80157a2: 687b ldr r3, [r7, #4] - 80157a4: 6a1b ldr r3, [r3, #32] - 80157a6: 695b ldr r3, [r3, #20] - 80157a8: 429a cmp r2, r3 - 80157aa: d002 beq.n 80157b2 - 80157ac: 7e3b ldrb r3, [r7, #24] - 80157ae: 2b00 cmp r3, #0 - 80157b0: d001 beq.n 80157b6 - /* return sent length (caller reads length from msg.w.offset) */ - write_finished = 1; - 80157b2: 2301 movs r3, #1 - 80157b4: 76fb strb r3, [r7, #27] - } - out_err = tcp_output(conn->pcb.tcp); - 80157b6: 687b ldr r3, [r7, #4] - 80157b8: 685b ldr r3, [r3, #4] - 80157ba: 4618 mov r0, r3 - 80157bc: f007 fdfe bl 801d3bc - 80157c0: 4603 mov r3, r0 - 80157c2: 733b strb r3, [r7, #12] - if (out_err == ERR_RTE) { - 80157c4: f997 300c ldrsb.w r3, [r7, #12] - 80157c8: f113 0f04 cmn.w r3, #4 - 80157cc: d12c bne.n 8015828 - /* If tcp_output fails because no route is found, - don't try writing any more but return the error - to the application thread. */ - err = out_err; - 80157ce: 7b3b ldrb r3, [r7, #12] - 80157d0: 77fb strb r3, [r7, #31] - write_finished = 1; - 80157d2: 2301 movs r3, #1 - 80157d4: 76fb strb r3, [r7, #27] - 80157d6: e027 b.n 8015828 - } - } else if (err == ERR_MEM) { - 80157d8: f997 301f ldrsb.w r3, [r7, #31] - 80157dc: f1b3 3fff cmp.w r3, #4294967295 - 80157e0: d120 bne.n 8015824 - For blocking sockets, we do NOT return to the application - thread, since ERR_MEM is only a temporary error! Non-blocking - will remain non-writable until sent_tcp/poll_tcp is called */ - - /* tcp_write returned ERR_MEM, try tcp_output anyway */ - err_t out_err = tcp_output(conn->pcb.tcp); - 80157e2: 687b ldr r3, [r7, #4] - 80157e4: 685b ldr r3, [r3, #4] - 80157e6: 4618 mov r0, r3 - 80157e8: f007 fde8 bl 801d3bc - 80157ec: 4603 mov r3, r0 - 80157ee: 737b strb r3, [r7, #13] - if (out_err == ERR_RTE) { - 80157f0: f997 300d ldrsb.w r3, [r7, #13] - 80157f4: f113 0f04 cmn.w r3, #4 - 80157f8: d104 bne.n 8015804 - /* If tcp_output fails because no route is found, - don't try writing any more but return the error - to the application thread. */ - err = out_err; - 80157fa: 7b7b ldrb r3, [r7, #13] - 80157fc: 77fb strb r3, [r7, #31] - write_finished = 1; - 80157fe: 2301 movs r3, #1 - 8015800: 76fb strb r3, [r7, #27] - 8015802: e011 b.n 8015828 - } else if (dontblock) { - 8015804: 7e3b ldrb r3, [r7, #24] - 8015806: 2b00 cmp r3, #0 - 8015808: d00e beq.n 8015828 - /* non-blocking write is done on ERR_MEM, set error according - to partial write or not */ - err = (conn->current_msg->msg.w.offset == 0) ? ERR_WOULDBLOCK : ERR_OK; - 801580a: 687b ldr r3, [r7, #4] - 801580c: 6a1b ldr r3, [r3, #32] - 801580e: 699b ldr r3, [r3, #24] - 8015810: 2b00 cmp r3, #0 - 8015812: d102 bne.n 801581a - 8015814: f06f 0306 mvn.w r3, #6 - 8015818: e000 b.n 801581c - 801581a: 2300 movs r3, #0 - 801581c: 77fb strb r3, [r7, #31] - write_finished = 1; - 801581e: 2301 movs r3, #1 - 8015820: 76fb strb r3, [r7, #27] - 8015822: e001 b.n 8015828 - } - } else { - /* On errors != ERR_MEM, we don't try writing any more but return - the error to the application thread. */ - write_finished = 1; - 8015824: 2301 movs r3, #1 - 8015826: 76fb strb r3, [r7, #27] - } - } - if (write_finished) { - 8015828: 7efb ldrb r3, [r7, #27] - 801582a: 2b00 cmp r3, #0 - 801582c: d015 beq.n 801585a - /* everything was written: set back connection state - and back to application task */ - sys_sem_t *op_completed_sem = LWIP_API_MSG_SEM(conn->current_msg); - 801582e: 687b ldr r3, [r7, #4] - 8015830: 6a1b ldr r3, [r3, #32] - 8015832: 681b ldr r3, [r3, #0] - 8015834: 330c adds r3, #12 - 8015836: 60bb str r3, [r7, #8] - conn->current_msg->err = err; - 8015838: 687b ldr r3, [r7, #4] - 801583a: 6a1b ldr r3, [r3, #32] - 801583c: 7ffa ldrb r2, [r7, #31] - 801583e: 711a strb r2, [r3, #4] - conn->current_msg = NULL; - 8015840: 687b ldr r3, [r7, #4] - 8015842: 2200 movs r2, #0 - 8015844: 621a str r2, [r3, #32] - conn->state = NETCONN_NONE; - 8015846: 687b ldr r3, [r7, #4] - 8015848: 2200 movs r2, #0 - 801584a: 705a strb r2, [r3, #1] -#if LWIP_TCPIP_CORE_LOCKING - if (delayed) - 801584c: 78fb ldrb r3, [r7, #3] - 801584e: 2b00 cmp r3, #0 - 8015850: d006 beq.n 8015860 -#endif - { - sys_sem_signal(op_completed_sem); - 8015852: 68b8 ldr r0, [r7, #8] - 8015854: f00b fe5a bl 802150c - 8015858: e002 b.n 8015860 - } - } -#if LWIP_TCPIP_CORE_LOCKING - else { - return ERR_MEM; - 801585a: f04f 33ff mov.w r3, #4294967295 - 801585e: e000 b.n 8015862 - } -#endif - return ERR_OK; - 8015860: 2300 movs r3, #0 -} - 8015862: 4618 mov r0, r3 - 8015864: 3720 adds r7, #32 - 8015866: 46bd mov sp, r7 - 8015868: bd80 pop {r7, pc} - 801586a: bf00 nop - -0801586c : - * - * @param m the api_msg pointing to the connection - */ -void -lwip_netconn_do_write(void *m) -{ - 801586c: b580 push {r7, lr} - 801586e: b084 sub sp, #16 - 8015870: af00 add r7, sp, #0 - 8015872: 6078 str r0, [r7, #4] - struct api_msg *msg = (struct api_msg *)m; - 8015874: 687b ldr r3, [r7, #4] - 8015876: 60bb str r3, [r7, #8] - - err_t err = netconn_err(msg->conn); - 8015878: 68bb ldr r3, [r7, #8] - 801587a: 681b ldr r3, [r3, #0] - 801587c: 4618 mov r0, r3 - 801587e: f7fe fd1c bl 80142ba - 8015882: 4603 mov r3, r0 - 8015884: 73fb strb r3, [r7, #15] - if (err == ERR_OK) { - 8015886: f997 300f ldrsb.w r3, [r7, #15] - 801588a: 2b00 cmp r3, #0 - 801588c: d166 bne.n 801595c - if (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_TCP) { - 801588e: 68bb ldr r3, [r7, #8] - 8015890: 681b ldr r3, [r3, #0] - 8015892: 781b ldrb r3, [r3, #0] - 8015894: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 8015898: 2b10 cmp r3, #16 - 801589a: d15d bne.n 8015958 -#if LWIP_TCP - if (msg->conn->state != NETCONN_NONE) { - 801589c: 68bb ldr r3, [r7, #8] - 801589e: 681b ldr r3, [r3, #0] - 80158a0: 785b ldrb r3, [r3, #1] - 80158a2: 2b00 cmp r3, #0 - 80158a4: d002 beq.n 80158ac - /* netconn is connecting, closing or in blocking write */ - err = ERR_INPROGRESS; - 80158a6: 23fb movs r3, #251 ; 0xfb - 80158a8: 73fb strb r3, [r7, #15] - 80158aa: e057 b.n 801595c - } else if (msg->conn->pcb.tcp != NULL) { - 80158ac: 68bb ldr r3, [r7, #8] - 80158ae: 681b ldr r3, [r3, #0] - 80158b0: 685b ldr r3, [r3, #4] - 80158b2: 2b00 cmp r3, #0 - 80158b4: d04d beq.n 8015952 - msg->conn->state = NETCONN_WRITE; - 80158b6: 68bb ldr r3, [r7, #8] - 80158b8: 681b ldr r3, [r3, #0] - 80158ba: 2201 movs r2, #1 - 80158bc: 705a strb r2, [r3, #1] - /* set all the variables used by lwip_netconn_do_writemore */ - LWIP_ASSERT("already writing or closing", msg->conn->current_msg == NULL); - 80158be: 68bb ldr r3, [r7, #8] - 80158c0: 681b ldr r3, [r3, #0] - 80158c2: 6a1b ldr r3, [r3, #32] - 80158c4: 2b00 cmp r3, #0 - 80158c6: d006 beq.n 80158d6 - 80158c8: 4b28 ldr r3, [pc, #160] ; (801596c ) - 80158ca: f240 7223 movw r2, #1827 ; 0x723 - 80158ce: 4928 ldr r1, [pc, #160] ; (8015970 ) - 80158d0: 4828 ldr r0, [pc, #160] ; (8015974 ) - 80158d2: f00c f859 bl 8021988 - LWIP_ASSERT("msg->msg.w.len != 0", msg->msg.w.len != 0); - 80158d6: 68bb ldr r3, [r7, #8] - 80158d8: 695b ldr r3, [r3, #20] - 80158da: 2b00 cmp r3, #0 - 80158dc: d106 bne.n 80158ec - 80158de: 4b23 ldr r3, [pc, #140] ; (801596c ) - 80158e0: f240 7224 movw r2, #1828 ; 0x724 - 80158e4: 4924 ldr r1, [pc, #144] ; (8015978 ) - 80158e6: 4823 ldr r0, [pc, #140] ; (8015974 ) - 80158e8: f00c f84e bl 8021988 - msg->conn->current_msg = msg; - 80158ec: 68bb ldr r3, [r7, #8] - 80158ee: 681b ldr r3, [r3, #0] - 80158f0: 68ba ldr r2, [r7, #8] - 80158f2: 621a str r2, [r3, #32] -#if LWIP_TCPIP_CORE_LOCKING - if (lwip_netconn_do_writemore(msg->conn, 0) != ERR_OK) { - 80158f4: 68bb ldr r3, [r7, #8] - 80158f6: 681b ldr r3, [r3, #0] - 80158f8: 2100 movs r1, #0 - 80158fa: 4618 mov r0, r3 - 80158fc: f7ff fde8 bl 80154d0 - 8015900: 4603 mov r3, r0 - 8015902: 2b00 cmp r3, #0 - 8015904: d02e beq.n 8015964 - LWIP_ASSERT("state!", msg->conn->state == NETCONN_WRITE); - 8015906: 68bb ldr r3, [r7, #8] - 8015908: 681b ldr r3, [r3, #0] - 801590a: 785b ldrb r3, [r3, #1] - 801590c: 2b01 cmp r3, #1 - 801590e: d006 beq.n 801591e - 8015910: 4b16 ldr r3, [pc, #88] ; (801596c ) - 8015912: f44f 62e5 mov.w r2, #1832 ; 0x728 - 8015916: 4919 ldr r1, [pc, #100] ; (801597c ) - 8015918: 4816 ldr r0, [pc, #88] ; (8015974 ) - 801591a: f00c f835 bl 8021988 - UNLOCK_TCPIP_CORE(); - 801591e: 4818 ldr r0, [pc, #96] ; (8015980 ) - 8015920: f00b fe65 bl 80215ee - sys_arch_sem_wait(LWIP_API_MSG_SEM(msg), 0); - 8015924: 68bb ldr r3, [r7, #8] - 8015926: 681b ldr r3, [r3, #0] - 8015928: 330c adds r3, #12 - 801592a: 2100 movs r1, #0 - 801592c: 4618 mov r0, r3 - 801592e: f00b fdbc bl 80214aa - LOCK_TCPIP_CORE(); - 8015932: 4813 ldr r0, [pc, #76] ; (8015980 ) - 8015934: f00b fe4c bl 80215d0 - LWIP_ASSERT("state!", msg->conn->state != NETCONN_WRITE); - 8015938: 68bb ldr r3, [r7, #8] - 801593a: 681b ldr r3, [r3, #0] - 801593c: 785b ldrb r3, [r3, #1] - 801593e: 2b01 cmp r3, #1 - 8015940: d110 bne.n 8015964 - 8015942: 4b0a ldr r3, [pc, #40] ; (801596c ) - 8015944: f240 722c movw r2, #1836 ; 0x72c - 8015948: 490c ldr r1, [pc, #48] ; (801597c ) - 801594a: 480a ldr r0, [pc, #40] ; (8015974 ) - 801594c: f00c f81c bl 8021988 -#else /* LWIP_TCPIP_CORE_LOCKING */ - lwip_netconn_do_writemore(msg->conn); -#endif /* LWIP_TCPIP_CORE_LOCKING */ - /* for both cases: if lwip_netconn_do_writemore was called, don't ACK the APIMSG - since lwip_netconn_do_writemore ACKs it! */ - return; - 8015950: e008 b.n 8015964 - } else { - err = ERR_CONN; - 8015952: 23f5 movs r3, #245 ; 0xf5 - 8015954: 73fb strb r3, [r7, #15] - 8015956: e001 b.n 801595c -#else /* LWIP_TCP */ - err = ERR_VAL; -#endif /* LWIP_TCP */ -#if (LWIP_UDP || LWIP_RAW) - } else { - err = ERR_VAL; - 8015958: 23fa movs r3, #250 ; 0xfa - 801595a: 73fb strb r3, [r7, #15] -#endif /* (LWIP_UDP || LWIP_RAW) */ - } - } - msg->err = err; - 801595c: 68bb ldr r3, [r7, #8] - 801595e: 7bfa ldrb r2, [r7, #15] - 8015960: 711a strb r2, [r3, #4] - 8015962: e000 b.n 8015966 - return; - 8015964: bf00 nop - TCPIP_APIMSG_ACK(msg); -} - 8015966: 3710 adds r7, #16 - 8015968: 46bd mov sp, r7 - 801596a: bd80 pop {r7, pc} - 801596c: 08023624 .word 0x08023624 - 8015970: 080239c8 .word 0x080239c8 - 8015974: 08023668 .word 0x08023668 - 8015978: 08023b50 .word 0x08023b50 - 801597c: 080239e4 .word 0x080239e4 - 8015980: 2401397c .word 0x2401397c - -08015984 : - * - * @param m the api_msg pointing to the connection - */ -void -lwip_netconn_do_close(void *m) -{ - 8015984: b580 push {r7, lr} - 8015986: b084 sub sp, #16 - 8015988: af00 add r7, sp, #0 - 801598a: 6078 str r0, [r7, #4] - struct api_msg *msg = (struct api_msg *)m; - 801598c: 687b ldr r3, [r7, #4] - 801598e: 60fb str r3, [r7, #12] - -#if LWIP_TCP - enum netconn_state state = msg->conn->state; - 8015990: 68fb ldr r3, [r7, #12] - 8015992: 681b ldr r3, [r3, #0] - 8015994: 785b ldrb r3, [r3, #1] - 8015996: 72fb strb r3, [r7, #11] - /* First check if this is a TCP netconn and if it is in a correct state - (LISTEN doesn't support half shutdown) */ - if ((msg->conn->pcb.tcp != NULL) && - 8015998: 68fb ldr r3, [r7, #12] - 801599a: 681b ldr r3, [r3, #0] - 801599c: 685b ldr r3, [r3, #4] - 801599e: 2b00 cmp r3, #0 - 80159a0: d069 beq.n 8015a76 - (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_TCP) && - 80159a2: 68fb ldr r3, [r7, #12] - 80159a4: 681b ldr r3, [r3, #0] - 80159a6: 781b ldrb r3, [r3, #0] - 80159a8: f003 03f0 and.w r3, r3, #240 ; 0xf0 - if ((msg->conn->pcb.tcp != NULL) && - 80159ac: 2b10 cmp r3, #16 - 80159ae: d162 bne.n 8015a76 - ((msg->msg.sd.shut == NETCONN_SHUT_RDWR) || (state != NETCONN_LISTEN))) { - 80159b0: 68fb ldr r3, [r7, #12] - 80159b2: 7a1b ldrb r3, [r3, #8] - (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_TCP) && - 80159b4: 2b03 cmp r3, #3 - 80159b6: d002 beq.n 80159be - ((msg->msg.sd.shut == NETCONN_SHUT_RDWR) || (state != NETCONN_LISTEN))) { - 80159b8: 7afb ldrb r3, [r7, #11] - 80159ba: 2b02 cmp r3, #2 - 80159bc: d05b beq.n 8015a76 - /* Check if we are in a connected state */ - if (state == NETCONN_CONNECT) { - 80159be: 7afb ldrb r3, [r7, #11] - 80159c0: 2b03 cmp r3, #3 - 80159c2: d103 bne.n 80159cc - /* TCP connect in progress: cannot shutdown */ - msg->err = ERR_CONN; - 80159c4: 68fb ldr r3, [r7, #12] - 80159c6: 22f5 movs r2, #245 ; 0xf5 - 80159c8: 711a strb r2, [r3, #4] - if (state == NETCONN_CONNECT) { - 80159ca: e059 b.n 8015a80 - } else if (state == NETCONN_WRITE) { - 80159cc: 7afb ldrb r3, [r7, #11] - 80159ce: 2b01 cmp r3, #1 - 80159d0: d103 bne.n 80159da - msg->err = tcp_shutdown(msg->conn->pcb.tcp, 1, 0); - } - } - if (state == NETCONN_NONE) { -#else /* LWIP_NETCONN_FULLDUPLEX */ - msg->err = ERR_INPROGRESS; - 80159d2: 68fb ldr r3, [r7, #12] - 80159d4: 22fb movs r2, #251 ; 0xfb - 80159d6: 711a strb r2, [r3, #4] - if (state == NETCONN_CONNECT) { - 80159d8: e052 b.n 8015a80 - } else { -#endif /* LWIP_NETCONN_FULLDUPLEX */ - if (msg->msg.sd.shut & NETCONN_SHUT_RD) { - 80159da: 68fb ldr r3, [r7, #12] - 80159dc: 7a1b ldrb r3, [r3, #8] - 80159de: f003 0301 and.w r3, r3, #1 - 80159e2: 2b00 cmp r3, #0 - 80159e4: d004 beq.n 80159f0 -#if LWIP_NETCONN_FULLDUPLEX - /* Mark mboxes invalid */ - netconn_mark_mbox_invalid(msg->conn); -#else /* LWIP_NETCONN_FULLDUPLEX */ - netconn_drain(msg->conn); - 80159e6: 68fb ldr r3, [r7, #12] - 80159e8: 681b ldr r3, [r3, #0] - 80159ea: 4618 mov r0, r3 - 80159ec: f7ff f8e6 bl 8014bbc -#endif /* LWIP_NETCONN_FULLDUPLEX */ - } - LWIP_ASSERT("already writing or closing", msg->conn->current_msg == NULL); - 80159f0: 68fb ldr r3, [r7, #12] - 80159f2: 681b ldr r3, [r3, #0] - 80159f4: 6a1b ldr r3, [r3, #32] - 80159f6: 2b00 cmp r3, #0 - 80159f8: d006 beq.n 8015a08 - 80159fa: 4b23 ldr r3, [pc, #140] ; (8015a88 ) - 80159fc: f240 72bd movw r2, #1981 ; 0x7bd - 8015a00: 4922 ldr r1, [pc, #136] ; (8015a8c ) - 8015a02: 4823 ldr r0, [pc, #140] ; (8015a90 ) - 8015a04: f00b ffc0 bl 8021988 - msg->conn->state = NETCONN_CLOSE; - 8015a08: 68fb ldr r3, [r7, #12] - 8015a0a: 681b ldr r3, [r3, #0] - 8015a0c: 2204 movs r2, #4 - 8015a0e: 705a strb r2, [r3, #1] - msg->conn->current_msg = msg; - 8015a10: 68fb ldr r3, [r7, #12] - 8015a12: 681b ldr r3, [r3, #0] - 8015a14: 68fa ldr r2, [r7, #12] - 8015a16: 621a str r2, [r3, #32] -#if LWIP_TCPIP_CORE_LOCKING - if (lwip_netconn_do_close_internal(msg->conn, 0) != ERR_OK) { - 8015a18: 68fb ldr r3, [r7, #12] - 8015a1a: 681b ldr r3, [r3, #0] - 8015a1c: 2100 movs r1, #0 - 8015a1e: 4618 mov r0, r3 - 8015a20: f7ff f94a bl 8014cb8 - 8015a24: 4603 mov r3, r0 - 8015a26: 2b00 cmp r3, #0 - 8015a28: d029 beq.n 8015a7e - LWIP_ASSERT("state!", msg->conn->state == NETCONN_CLOSE); - 8015a2a: 68fb ldr r3, [r7, #12] - 8015a2c: 681b ldr r3, [r3, #0] - 8015a2e: 785b ldrb r3, [r3, #1] - 8015a30: 2b04 cmp r3, #4 - 8015a32: d006 beq.n 8015a42 - 8015a34: 4b14 ldr r3, [pc, #80] ; (8015a88 ) - 8015a36: f240 72c2 movw r2, #1986 ; 0x7c2 - 8015a3a: 4916 ldr r1, [pc, #88] ; (8015a94 ) - 8015a3c: 4814 ldr r0, [pc, #80] ; (8015a90 ) - 8015a3e: f00b ffa3 bl 8021988 - UNLOCK_TCPIP_CORE(); - 8015a42: 4815 ldr r0, [pc, #84] ; (8015a98 ) - 8015a44: f00b fdd3 bl 80215ee - sys_arch_sem_wait(LWIP_API_MSG_SEM(msg), 0); - 8015a48: 68fb ldr r3, [r7, #12] - 8015a4a: 681b ldr r3, [r3, #0] - 8015a4c: 330c adds r3, #12 - 8015a4e: 2100 movs r1, #0 - 8015a50: 4618 mov r0, r3 - 8015a52: f00b fd2a bl 80214aa - LOCK_TCPIP_CORE(); - 8015a56: 4810 ldr r0, [pc, #64] ; (8015a98 ) - 8015a58: f00b fdba bl 80215d0 - LWIP_ASSERT("state!", msg->conn->state == NETCONN_NONE); - 8015a5c: 68fb ldr r3, [r7, #12] - 8015a5e: 681b ldr r3, [r3, #0] - 8015a60: 785b ldrb r3, [r3, #1] - 8015a62: 2b00 cmp r3, #0 - 8015a64: d00b beq.n 8015a7e - 8015a66: 4b08 ldr r3, [pc, #32] ; (8015a88 ) - 8015a68: f240 72c6 movw r2, #1990 ; 0x7c6 - 8015a6c: 4909 ldr r1, [pc, #36] ; (8015a94 ) - 8015a6e: 4808 ldr r0, [pc, #32] ; (8015a90 ) - 8015a70: f00b ff8a bl 8021988 - } -#else /* LWIP_TCPIP_CORE_LOCKING */ - lwip_netconn_do_close_internal(msg->conn); -#endif /* LWIP_TCPIP_CORE_LOCKING */ - /* for tcp netconns, lwip_netconn_do_close_internal ACKs the message */ - return; - 8015a74: e003 b.n 8015a7e - } - } else -#endif /* LWIP_TCP */ - { - msg->err = ERR_CONN; - 8015a76: 68fb ldr r3, [r7, #12] - 8015a78: 22f5 movs r2, #245 ; 0xf5 - 8015a7a: 711a strb r2, [r3, #4] - 8015a7c: e000 b.n 8015a80 - return; - 8015a7e: bf00 nop - } - TCPIP_APIMSG_ACK(msg); -} - 8015a80: 3710 adds r7, #16 - 8015a82: 46bd mov sp, r7 - 8015a84: bd80 pop {r7, pc} - 8015a86: bf00 nop - 8015a88: 08023624 .word 0x08023624 - 8015a8c: 080239c8 .word 0x080239c8 - 8015a90: 08023668 .word 0x08023668 - 8015a94: 080239e4 .word 0x080239e4 - 8015a98: 2401397c .word 0x2401397c - -08015a9c : - * - * @param buf pointer to a netbuf allocated by netbuf_new() - */ -void -netbuf_delete(struct netbuf *buf) -{ - 8015a9c: b580 push {r7, lr} - 8015a9e: b082 sub sp, #8 - 8015aa0: af00 add r7, sp, #0 - 8015aa2: 6078 str r0, [r7, #4] - if (buf != NULL) { - 8015aa4: 687b ldr r3, [r7, #4] - 8015aa6: 2b00 cmp r3, #0 - 8015aa8: d013 beq.n 8015ad2 - if (buf->p != NULL) { - 8015aaa: 687b ldr r3, [r7, #4] - 8015aac: 681b ldr r3, [r3, #0] - 8015aae: 2b00 cmp r3, #0 - 8015ab0: d00b beq.n 8015aca - pbuf_free(buf->p); - 8015ab2: 687b ldr r3, [r7, #4] - 8015ab4: 681b ldr r3, [r3, #0] - 8015ab6: 4618 mov r0, r3 - 8015ab8: f002 f81e bl 8017af8 - buf->p = buf->ptr = NULL; - 8015abc: 687b ldr r3, [r7, #4] - 8015abe: 2200 movs r2, #0 - 8015ac0: 605a str r2, [r3, #4] - 8015ac2: 687b ldr r3, [r7, #4] - 8015ac4: 685a ldr r2, [r3, #4] - 8015ac6: 687b ldr r3, [r7, #4] - 8015ac8: 601a str r2, [r3, #0] - } - memp_free(MEMP_NETBUF, buf); - 8015aca: 6879 ldr r1, [r7, #4] - 8015acc: 2006 movs r0, #6 - 8015ace: f001 f875 bl 8016bbc - } -} - 8015ad2: bf00 nop - 8015ad4: 3708 adds r7, #8 - 8015ad6: 46bd mov sp, r7 - 8015ad8: bd80 pop {r7, pc} - ... - -08015adc : - * @return ERR_OK if the information was retrieved, - * ERR_BUF on error. - */ -err_t -netbuf_data(struct netbuf *buf, void **dataptr, u16_t *len) -{ - 8015adc: b580 push {r7, lr} - 8015ade: b084 sub sp, #16 - 8015ae0: af00 add r7, sp, #0 - 8015ae2: 60f8 str r0, [r7, #12] - 8015ae4: 60b9 str r1, [r7, #8] - 8015ae6: 607a str r2, [r7, #4] - LWIP_ERROR("netbuf_data: invalid buf", (buf != NULL), return ERR_ARG;); - 8015ae8: 68fb ldr r3, [r7, #12] - 8015aea: 2b00 cmp r3, #0 - 8015aec: d108 bne.n 8015b00 - 8015aee: 4b1b ldr r3, [pc, #108] ; (8015b5c ) - 8015af0: 22c6 movs r2, #198 ; 0xc6 - 8015af2: 491b ldr r1, [pc, #108] ; (8015b60 ) - 8015af4: 481b ldr r0, [pc, #108] ; (8015b64 ) - 8015af6: f00b ff47 bl 8021988 - 8015afa: f06f 030f mvn.w r3, #15 - 8015afe: e029 b.n 8015b54 - LWIP_ERROR("netbuf_data: invalid dataptr", (dataptr != NULL), return ERR_ARG;); - 8015b00: 68bb ldr r3, [r7, #8] - 8015b02: 2b00 cmp r3, #0 - 8015b04: d108 bne.n 8015b18 - 8015b06: 4b15 ldr r3, [pc, #84] ; (8015b5c ) - 8015b08: 22c7 movs r2, #199 ; 0xc7 - 8015b0a: 4917 ldr r1, [pc, #92] ; (8015b68 ) - 8015b0c: 4815 ldr r0, [pc, #84] ; (8015b64 ) - 8015b0e: f00b ff3b bl 8021988 - 8015b12: f06f 030f mvn.w r3, #15 - 8015b16: e01d b.n 8015b54 - LWIP_ERROR("netbuf_data: invalid len", (len != NULL), return ERR_ARG;); - 8015b18: 687b ldr r3, [r7, #4] - 8015b1a: 2b00 cmp r3, #0 - 8015b1c: d108 bne.n 8015b30 - 8015b1e: 4b0f ldr r3, [pc, #60] ; (8015b5c ) - 8015b20: 22c8 movs r2, #200 ; 0xc8 - 8015b22: 4912 ldr r1, [pc, #72] ; (8015b6c ) - 8015b24: 480f ldr r0, [pc, #60] ; (8015b64 ) - 8015b26: f00b ff2f bl 8021988 - 8015b2a: f06f 030f mvn.w r3, #15 - 8015b2e: e011 b.n 8015b54 - - if (buf->ptr == NULL) { - 8015b30: 68fb ldr r3, [r7, #12] - 8015b32: 685b ldr r3, [r3, #4] - 8015b34: 2b00 cmp r3, #0 - 8015b36: d102 bne.n 8015b3e - return ERR_BUF; - 8015b38: f06f 0301 mvn.w r3, #1 - 8015b3c: e00a b.n 8015b54 - } - *dataptr = buf->ptr->payload; - 8015b3e: 68fb ldr r3, [r7, #12] - 8015b40: 685b ldr r3, [r3, #4] - 8015b42: 685a ldr r2, [r3, #4] - 8015b44: 68bb ldr r3, [r7, #8] - 8015b46: 601a str r2, [r3, #0] - *len = buf->ptr->len; - 8015b48: 68fb ldr r3, [r7, #12] - 8015b4a: 685b ldr r3, [r3, #4] - 8015b4c: 895a ldrh r2, [r3, #10] - 8015b4e: 687b ldr r3, [r7, #4] - 8015b50: 801a strh r2, [r3, #0] - return ERR_OK; - 8015b52: 2300 movs r3, #0 -} - 8015b54: 4618 mov r0, r3 - 8015b56: 3710 adds r7, #16 - 8015b58: 46bd mov sp, r7 - 8015b5a: bd80 pop {r7, pc} - 8015b5c: 08023b7c .word 0x08023b7c - 8015b60: 08023c84 .word 0x08023c84 - 8015b64: 08023bcc .word 0x08023bcc - 8015b68: 08023ca0 .word 0x08023ca0 - 8015b6c: 08023cc0 .word 0x08023cc0 - -08015b70 : - * 1 if moved to the next part but now there is no next part - * 0 if moved to the next part and there are still more parts - */ -s8_t -netbuf_next(struct netbuf *buf) -{ - 8015b70: b580 push {r7, lr} - 8015b72: b082 sub sp, #8 - 8015b74: af00 add r7, sp, #0 - 8015b76: 6078 str r0, [r7, #4] - LWIP_ERROR("netbuf_next: invalid buf", (buf != NULL), return -1;); - 8015b78: 687b ldr r3, [r7, #4] - 8015b7a: 2b00 cmp r3, #0 - 8015b7c: d108 bne.n 8015b90 - 8015b7e: 4b11 ldr r3, [pc, #68] ; (8015bc4 ) - 8015b80: 22e0 movs r2, #224 ; 0xe0 - 8015b82: 4911 ldr r1, [pc, #68] ; (8015bc8 ) - 8015b84: 4811 ldr r0, [pc, #68] ; (8015bcc ) - 8015b86: f00b feff bl 8021988 - 8015b8a: f04f 33ff mov.w r3, #4294967295 - 8015b8e: e014 b.n 8015bba - if (buf->ptr->next == NULL) { - 8015b90: 687b ldr r3, [r7, #4] - 8015b92: 685b ldr r3, [r3, #4] - 8015b94: 681b ldr r3, [r3, #0] - 8015b96: 2b00 cmp r3, #0 - 8015b98: d102 bne.n 8015ba0 - return -1; - 8015b9a: f04f 33ff mov.w r3, #4294967295 - 8015b9e: e00c b.n 8015bba - } - buf->ptr = buf->ptr->next; - 8015ba0: 687b ldr r3, [r7, #4] - 8015ba2: 685b ldr r3, [r3, #4] - 8015ba4: 681a ldr r2, [r3, #0] - 8015ba6: 687b ldr r3, [r7, #4] - 8015ba8: 605a str r2, [r3, #4] - if (buf->ptr->next == NULL) { - 8015baa: 687b ldr r3, [r7, #4] - 8015bac: 685b ldr r3, [r3, #4] - 8015bae: 681b ldr r3, [r3, #0] - 8015bb0: 2b00 cmp r3, #0 - 8015bb2: d101 bne.n 8015bb8 - return 1; - 8015bb4: 2301 movs r3, #1 - 8015bb6: e000 b.n 8015bba - } - return 0; - 8015bb8: 2300 movs r3, #0 -} - 8015bba: 4618 mov r0, r3 - 8015bbc: 3708 adds r7, #8 - 8015bbe: 46bd mov sp, r7 - 8015bc0: bd80 pop {r7, pc} - 8015bc2: bf00 nop - 8015bc4: 08023b7c .word 0x08023b7c - 8015bc8: 08023cdc .word 0x08023cdc - 8015bcc: 08023bcc .word 0x08023bcc - -08015bd0 : - * @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) -{ - 8015bd0: b580 push {r7, lr} - 8015bd2: b084 sub sp, #16 - 8015bd4: af00 add r7, sp, #0 - 8015bd6: 6078 str r0, [r7, #4] - 8015bd8: 6039 str r1, [r7, #0] - u32_t sleeptime, res; - -again: - LWIP_ASSERT_CORE_LOCKED(); - - sleeptime = sys_timeouts_sleeptime(); - 8015bda: f008 fcb3 bl 801e544 - 8015bde: 60f8 str r0, [r7, #12] - if (sleeptime == SYS_TIMEOUTS_SLEEPTIME_INFINITE) { - 8015be0: 68fb ldr r3, [r7, #12] - 8015be2: f1b3 3fff cmp.w r3, #4294967295 - 8015be6: d10b bne.n 8015c00 - UNLOCK_TCPIP_CORE(); - 8015be8: 4813 ldr r0, [pc, #76] ; (8015c38 ) - 8015bea: f00b fd00 bl 80215ee - sys_arch_mbox_fetch(mbox, msg, 0); - 8015bee: 2200 movs r2, #0 - 8015bf0: 6839 ldr r1, [r7, #0] - 8015bf2: 6878 ldr r0, [r7, #4] - 8015bf4: f00b fbb8 bl 8021368 - LOCK_TCPIP_CORE(); - 8015bf8: 480f ldr r0, [pc, #60] ; (8015c38 ) - 8015bfa: f00b fce9 bl 80215d0 - return; - 8015bfe: e018 b.n 8015c32 - } else if (sleeptime == 0) { - 8015c00: 68fb ldr r3, [r7, #12] - 8015c02: 2b00 cmp r3, #0 - 8015c04: d102 bne.n 8015c0c - sys_check_timeouts(); - 8015c06: f008 fc63 bl 801e4d0 - /* We try again to fetch a message from the mbox. */ - goto again; - 8015c0a: e7e6 b.n 8015bda - } - - UNLOCK_TCPIP_CORE(); - 8015c0c: 480a ldr r0, [pc, #40] ; (8015c38 ) - 8015c0e: f00b fcee bl 80215ee - res = sys_arch_mbox_fetch(mbox, msg, sleeptime); - 8015c12: 68fa ldr r2, [r7, #12] - 8015c14: 6839 ldr r1, [r7, #0] - 8015c16: 6878 ldr r0, [r7, #4] - 8015c18: f00b fba6 bl 8021368 - 8015c1c: 60b8 str r0, [r7, #8] - LOCK_TCPIP_CORE(); - 8015c1e: 4806 ldr r0, [pc, #24] ; (8015c38 ) - 8015c20: f00b fcd6 bl 80215d0 - if (res == SYS_ARCH_TIMEOUT) { - 8015c24: 68bb ldr r3, [r7, #8] - 8015c26: f1b3 3fff cmp.w r3, #4294967295 - 8015c2a: d102 bne.n 8015c32 - /* If a SYS_ARCH_TIMEOUT value is returned, a timeout occurred - before a message could be fetched. */ - sys_check_timeouts(); - 8015c2c: f008 fc50 bl 801e4d0 - /* We try again to fetch a message from the mbox. */ - goto again; - 8015c30: e7d3 b.n 8015bda - } -} - 8015c32: 3710 adds r7, #16 - 8015c34: 46bd mov sp, r7 - 8015c36: bd80 pop {r7, pc} - 8015c38: 2401397c .word 0x2401397c - -08015c3c : - * - * @param arg unused argument - */ -static void -tcpip_thread(void *arg) -{ - 8015c3c: b580 push {r7, lr} - 8015c3e: b084 sub sp, #16 - 8015c40: af00 add r7, sp, #0 - 8015c42: 6078 str r0, [r7, #4] - struct tcpip_msg *msg; - LWIP_UNUSED_ARG(arg); - - LWIP_MARK_TCPIP_THREAD(); - - LOCK_TCPIP_CORE(); - 8015c44: 4810 ldr r0, [pc, #64] ; (8015c88 ) - 8015c46: f00b fcc3 bl 80215d0 - if (tcpip_init_done != NULL) { - 8015c4a: 4b10 ldr r3, [pc, #64] ; (8015c8c ) - 8015c4c: 681b ldr r3, [r3, #0] - 8015c4e: 2b00 cmp r3, #0 - 8015c50: d005 beq.n 8015c5e - tcpip_init_done(tcpip_init_done_arg); - 8015c52: 4b0e ldr r3, [pc, #56] ; (8015c8c ) - 8015c54: 681b ldr r3, [r3, #0] - 8015c56: 4a0e ldr r2, [pc, #56] ; (8015c90 ) - 8015c58: 6812 ldr r2, [r2, #0] - 8015c5a: 4610 mov r0, r2 - 8015c5c: 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); - 8015c5e: f107 030c add.w r3, r7, #12 - 8015c62: 4619 mov r1, r3 - 8015c64: 480b ldr r0, [pc, #44] ; (8015c94 ) - 8015c66: f7ff ffb3 bl 8015bd0 - if (msg == NULL) { - 8015c6a: 68fb ldr r3, [r7, #12] - 8015c6c: 2b00 cmp r3, #0 - 8015c6e: d106 bne.n 8015c7e - LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: invalid message: NULL\n")); - LWIP_ASSERT("tcpip_thread: invalid message", 0); - 8015c70: 4b09 ldr r3, [pc, #36] ; (8015c98 ) - 8015c72: 2291 movs r2, #145 ; 0x91 - 8015c74: 4909 ldr r1, [pc, #36] ; (8015c9c ) - 8015c76: 480a ldr r0, [pc, #40] ; (8015ca0 ) - 8015c78: f00b fe86 bl 8021988 - continue; - 8015c7c: e003 b.n 8015c86 - } - tcpip_thread_handle_msg(msg); - 8015c7e: 68fb ldr r3, [r7, #12] - 8015c80: 4618 mov r0, r3 - 8015c82: f000 f80f bl 8015ca4 - TCPIP_MBOX_FETCH(&tcpip_mbox, (void **)&msg); - 8015c86: e7ea b.n 8015c5e - 8015c88: 2401397c .word 0x2401397c - 8015c8c: 24013970 .word 0x24013970 - 8015c90: 24013974 .word 0x24013974 - 8015c94: 24013978 .word 0x24013978 - 8015c98: 08023d14 .word 0x08023d14 - 8015c9c: 08023d44 .word 0x08023d44 - 8015ca0: 08023d64 .word 0x08023d64 - -08015ca4 : -/* 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) -{ - 8015ca4: b580 push {r7, lr} - 8015ca6: b082 sub sp, #8 - 8015ca8: af00 add r7, sp, #0 - 8015caa: 6078 str r0, [r7, #4] - switch (msg->type) { - 8015cac: 687b ldr r3, [r7, #4] - 8015cae: 781b ldrb r3, [r3, #0] - 8015cb0: 2b02 cmp r3, #2 - 8015cb2: d026 beq.n 8015d02 - 8015cb4: 2b02 cmp r3, #2 - 8015cb6: dc2b bgt.n 8015d10 - 8015cb8: 2b00 cmp r3, #0 - 8015cba: d002 beq.n 8015cc2 - 8015cbc: 2b01 cmp r3, #1 - 8015cbe: d015 beq.n 8015cec - 8015cc0: e026 b.n 8015d10 -#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) { - 8015cc2: 687b ldr r3, [r7, #4] - 8015cc4: 68db ldr r3, [r3, #12] - 8015cc6: 687a ldr r2, [r7, #4] - 8015cc8: 6850 ldr r0, [r2, #4] - 8015cca: 687a ldr r2, [r7, #4] - 8015ccc: 6892 ldr r2, [r2, #8] - 8015cce: 4611 mov r1, r2 - 8015cd0: 4798 blx r3 - 8015cd2: 4603 mov r3, r0 - 8015cd4: 2b00 cmp r3, #0 - 8015cd6: d004 beq.n 8015ce2 - pbuf_free(msg->msg.inp.p); - 8015cd8: 687b ldr r3, [r7, #4] - 8015cda: 685b ldr r3, [r3, #4] - 8015cdc: 4618 mov r0, r3 - 8015cde: f001 ff0b bl 8017af8 - } - memp_free(MEMP_TCPIP_MSG_INPKT, msg); - 8015ce2: 6879 ldr r1, [r7, #4] - 8015ce4: 2009 movs r0, #9 - 8015ce6: f000 ff69 bl 8016bbc - break; - 8015cea: e018 b.n 8015d1e - 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); - 8015cec: 687b ldr r3, [r7, #4] - 8015cee: 685b ldr r3, [r3, #4] - 8015cf0: 687a ldr r2, [r7, #4] - 8015cf2: 6892 ldr r2, [r2, #8] - 8015cf4: 4610 mov r0, r2 - 8015cf6: 4798 blx r3 - memp_free(MEMP_TCPIP_MSG_API, msg); - 8015cf8: 6879 ldr r1, [r7, #4] - 8015cfa: 2008 movs r0, #8 - 8015cfc: f000 ff5e bl 8016bbc - break; - 8015d00: e00d b.n 8015d1e - - 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); - 8015d02: 687b ldr r3, [r7, #4] - 8015d04: 685b ldr r3, [r3, #4] - 8015d06: 687a ldr r2, [r7, #4] - 8015d08: 6892 ldr r2, [r2, #8] - 8015d0a: 4610 mov r0, r2 - 8015d0c: 4798 blx r3 - break; - 8015d0e: e006 b.n 8015d1e - - default: - LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: invalid message: %d\n", msg->type)); - LWIP_ASSERT("tcpip_thread: invalid message", 0); - 8015d10: 4b05 ldr r3, [pc, #20] ; (8015d28 ) - 8015d12: 22cf movs r2, #207 ; 0xcf - 8015d14: 4905 ldr r1, [pc, #20] ; (8015d2c ) - 8015d16: 4806 ldr r0, [pc, #24] ; (8015d30 ) - 8015d18: f00b fe36 bl 8021988 - break; - 8015d1c: bf00 nop - } -} - 8015d1e: bf00 nop - 8015d20: 3708 adds r7, #8 - 8015d22: 46bd mov sp, r7 - 8015d24: bd80 pop {r7, pc} - 8015d26: bf00 nop - 8015d28: 08023d14 .word 0x08023d14 - 8015d2c: 08023d44 .word 0x08023d44 - 8015d30: 08023d64 .word 0x08023d64 - -08015d34 : - * @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) -{ - 8015d34: b580 push {r7, lr} - 8015d36: b086 sub sp, #24 - 8015d38: af00 add r7, sp, #0 - 8015d3a: 60f8 str r0, [r7, #12] - 8015d3c: 60b9 str r1, [r7, #8] - 8015d3e: 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)); - 8015d40: 481a ldr r0, [pc, #104] ; (8015dac ) - 8015d42: f00b fb6c bl 802141e - 8015d46: 4603 mov r3, r0 - 8015d48: 2b00 cmp r3, #0 - 8015d4a: d105 bne.n 8015d58 - 8015d4c: 4b18 ldr r3, [pc, #96] ; (8015db0 ) - 8015d4e: 22fc movs r2, #252 ; 0xfc - 8015d50: 4918 ldr r1, [pc, #96] ; (8015db4 ) - 8015d52: 4819 ldr r0, [pc, #100] ; (8015db8 ) - 8015d54: f00b fe18 bl 8021988 - - msg = (struct tcpip_msg *)memp_malloc(MEMP_TCPIP_MSG_INPKT); - 8015d58: 2009 movs r0, #9 - 8015d5a: f000 feb9 bl 8016ad0 - 8015d5e: 6178 str r0, [r7, #20] - if (msg == NULL) { - 8015d60: 697b ldr r3, [r7, #20] - 8015d62: 2b00 cmp r3, #0 - 8015d64: d102 bne.n 8015d6c - return ERR_MEM; - 8015d66: f04f 33ff mov.w r3, #4294967295 - 8015d6a: e01a b.n 8015da2 - } - - msg->type = TCPIP_MSG_INPKT; - 8015d6c: 697b ldr r3, [r7, #20] - 8015d6e: 2200 movs r2, #0 - 8015d70: 701a strb r2, [r3, #0] - msg->msg.inp.p = p; - 8015d72: 697b ldr r3, [r7, #20] - 8015d74: 68fa ldr r2, [r7, #12] - 8015d76: 605a str r2, [r3, #4] - msg->msg.inp.netif = inp; - 8015d78: 697b ldr r3, [r7, #20] - 8015d7a: 68ba ldr r2, [r7, #8] - 8015d7c: 609a str r2, [r3, #8] - msg->msg.inp.input_fn = input_fn; - 8015d7e: 697b ldr r3, [r7, #20] - 8015d80: 687a ldr r2, [r7, #4] - 8015d82: 60da str r2, [r3, #12] - if (sys_mbox_trypost(&tcpip_mbox, msg) != ERR_OK) { - 8015d84: 6979 ldr r1, [r7, #20] - 8015d86: 4809 ldr r0, [pc, #36] ; (8015dac ) - 8015d88: f00b fad4 bl 8021334 - 8015d8c: 4603 mov r3, r0 - 8015d8e: 2b00 cmp r3, #0 - 8015d90: d006 beq.n 8015da0 - memp_free(MEMP_TCPIP_MSG_INPKT, msg); - 8015d92: 6979 ldr r1, [r7, #20] - 8015d94: 2009 movs r0, #9 - 8015d96: f000 ff11 bl 8016bbc - return ERR_MEM; - 8015d9a: f04f 33ff mov.w r3, #4294967295 - 8015d9e: e000 b.n 8015da2 - } - return ERR_OK; - 8015da0: 2300 movs r3, #0 -#endif /* LWIP_TCPIP_CORE_LOCKING_INPUT */ -} - 8015da2: 4618 mov r0, r3 - 8015da4: 3718 adds r7, #24 - 8015da6: 46bd mov sp, r7 - 8015da8: bd80 pop {r7, pc} - 8015daa: bf00 nop - 8015dac: 24013978 .word 0x24013978 - 8015db0: 08023d14 .word 0x08023d14 - 8015db4: 08023d8c .word 0x08023d8c - 8015db8: 08023d64 .word 0x08023d64 - -08015dbc : - * 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) -{ - 8015dbc: b580 push {r7, lr} - 8015dbe: b082 sub sp, #8 - 8015dc0: af00 add r7, sp, #0 - 8015dc2: 6078 str r0, [r7, #4] - 8015dc4: 6039 str r1, [r7, #0] -#if LWIP_ETHERNET - if (inp->flags & (NETIF_FLAG_ETHARP | NETIF_FLAG_ETHERNET)) { - 8015dc6: 683b ldr r3, [r7, #0] - 8015dc8: f893 302d ldrb.w r3, [r3, #45] ; 0x2d - 8015dcc: f003 0318 and.w r3, r3, #24 - 8015dd0: 2b00 cmp r3, #0 - 8015dd2: d006 beq.n 8015de2 - return tcpip_inpkt(p, inp, ethernet_input); - 8015dd4: 4a08 ldr r2, [pc, #32] ; (8015df8 ) - 8015dd6: 6839 ldr r1, [r7, #0] - 8015dd8: 6878 ldr r0, [r7, #4] - 8015dda: f7ff ffab bl 8015d34 - 8015dde: 4603 mov r3, r0 - 8015de0: e005 b.n 8015dee - } else -#endif /* LWIP_ETHERNET */ - return tcpip_inpkt(p, inp, ip_input); - 8015de2: 4a06 ldr r2, [pc, #24] ; (8015dfc ) - 8015de4: 6839 ldr r1, [r7, #0] - 8015de6: 6878 ldr r0, [r7, #4] - 8015de8: f7ff ffa4 bl 8015d34 - 8015dec: 4603 mov r3, r0 -} - 8015dee: 4618 mov r0, r3 - 8015df0: 3708 adds r7, #8 - 8015df2: 46bd mov sp, r7 - 8015df4: bd80 pop {r7, pc} - 8015df6: bf00 nop - 8015df8: 08021121 .word 0x08021121 - 8015dfc: 08020029 .word 0x08020029 - -08015e00 : - * - * @see tcpip_callback - */ -err_t -tcpip_try_callback(tcpip_callback_fn function, void *ctx) -{ - 8015e00: b580 push {r7, lr} - 8015e02: b084 sub sp, #16 - 8015e04: af00 add r7, sp, #0 - 8015e06: 6078 str r0, [r7, #4] - 8015e08: 6039 str r1, [r7, #0] - struct tcpip_msg *msg; - - LWIP_ASSERT("Invalid mbox", sys_mbox_valid_val(tcpip_mbox)); - 8015e0a: 4819 ldr r0, [pc, #100] ; (8015e70 ) - 8015e0c: f00b fb07 bl 802141e - 8015e10: 4603 mov r3, r0 - 8015e12: 2b00 cmp r3, #0 - 8015e14: d106 bne.n 8015e24 - 8015e16: 4b17 ldr r3, [pc, #92] ; (8015e74 ) - 8015e18: f240 125d movw r2, #349 ; 0x15d - 8015e1c: 4916 ldr r1, [pc, #88] ; (8015e78 ) - 8015e1e: 4817 ldr r0, [pc, #92] ; (8015e7c ) - 8015e20: f00b fdb2 bl 8021988 - - msg = (struct tcpip_msg *)memp_malloc(MEMP_TCPIP_MSG_API); - 8015e24: 2008 movs r0, #8 - 8015e26: f000 fe53 bl 8016ad0 - 8015e2a: 60f8 str r0, [r7, #12] - if (msg == NULL) { - 8015e2c: 68fb ldr r3, [r7, #12] - 8015e2e: 2b00 cmp r3, #0 - 8015e30: d102 bne.n 8015e38 - return ERR_MEM; - 8015e32: f04f 33ff mov.w r3, #4294967295 - 8015e36: e017 b.n 8015e68 - } - - msg->type = TCPIP_MSG_CALLBACK; - 8015e38: 68fb ldr r3, [r7, #12] - 8015e3a: 2201 movs r2, #1 - 8015e3c: 701a strb r2, [r3, #0] - msg->msg.cb.function = function; - 8015e3e: 68fb ldr r3, [r7, #12] - 8015e40: 687a ldr r2, [r7, #4] - 8015e42: 605a str r2, [r3, #4] - msg->msg.cb.ctx = ctx; - 8015e44: 68fb ldr r3, [r7, #12] - 8015e46: 683a ldr r2, [r7, #0] - 8015e48: 609a str r2, [r3, #8] - - if (sys_mbox_trypost(&tcpip_mbox, msg) != ERR_OK) { - 8015e4a: 68f9 ldr r1, [r7, #12] - 8015e4c: 4808 ldr r0, [pc, #32] ; (8015e70 ) - 8015e4e: f00b fa71 bl 8021334 - 8015e52: 4603 mov r3, r0 - 8015e54: 2b00 cmp r3, #0 - 8015e56: d006 beq.n 8015e66 - memp_free(MEMP_TCPIP_MSG_API, msg); - 8015e58: 68f9 ldr r1, [r7, #12] - 8015e5a: 2008 movs r0, #8 - 8015e5c: f000 feae bl 8016bbc - return ERR_MEM; - 8015e60: f04f 33ff mov.w r3, #4294967295 - 8015e64: e000 b.n 8015e68 - } - return ERR_OK; - 8015e66: 2300 movs r3, #0 -} - 8015e68: 4618 mov r0, r3 - 8015e6a: 3710 adds r7, #16 - 8015e6c: 46bd mov sp, r7 - 8015e6e: bd80 pop {r7, pc} - 8015e70: 24013978 .word 0x24013978 - 8015e74: 08023d14 .word 0x08023d14 - 8015e78: 08023d8c .word 0x08023d8c - 8015e7c: 08023d64 .word 0x08023d64 - -08015e80 : - * @param sem semaphore to wait on - * @return ERR_OK if the function was called, another err_t if not - */ -err_t -tcpip_send_msg_wait_sem(tcpip_callback_fn fn, void *apimsg, sys_sem_t *sem) -{ - 8015e80: b580 push {r7, lr} - 8015e82: b084 sub sp, #16 - 8015e84: af00 add r7, sp, #0 - 8015e86: 60f8 str r0, [r7, #12] - 8015e88: 60b9 str r1, [r7, #8] - 8015e8a: 607a str r2, [r7, #4] -#if LWIP_TCPIP_CORE_LOCKING - LWIP_UNUSED_ARG(sem); - LOCK_TCPIP_CORE(); - 8015e8c: 4806 ldr r0, [pc, #24] ; (8015ea8 ) - 8015e8e: f00b fb9f bl 80215d0 - fn(apimsg); - 8015e92: 68fb ldr r3, [r7, #12] - 8015e94: 68b8 ldr r0, [r7, #8] - 8015e96: 4798 blx r3 - UNLOCK_TCPIP_CORE(); - 8015e98: 4803 ldr r0, [pc, #12] ; (8015ea8 ) - 8015e9a: f00b fba8 bl 80215ee - return ERR_OK; - 8015e9e: 2300 movs r3, #0 - sys_mbox_post(&tcpip_mbox, &TCPIP_MSG_VAR_REF(msg)); - sys_arch_sem_wait(sem, 0); - TCPIP_MSG_VAR_FREE(msg); - return ERR_OK; -#endif /* LWIP_TCPIP_CORE_LOCKING */ -} - 8015ea0: 4618 mov r0, r3 - 8015ea2: 3710 adds r7, #16 - 8015ea4: 46bd mov sp, r7 - 8015ea6: bd80 pop {r7, pc} - 8015ea8: 2401397c .word 0x2401397c - -08015eac : - * @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) -{ - 8015eac: b580 push {r7, lr} - 8015eae: b084 sub sp, #16 - 8015eb0: af02 add r7, sp, #8 - 8015eb2: 6078 str r0, [r7, #4] - 8015eb4: 6039 str r1, [r7, #0] - lwip_init(); - 8015eb6: f000 f92d bl 8016114 - - tcpip_init_done = initfunc; - 8015eba: 4a17 ldr r2, [pc, #92] ; (8015f18 ) - 8015ebc: 687b ldr r3, [r7, #4] - 8015ebe: 6013 str r3, [r2, #0] - tcpip_init_done_arg = arg; - 8015ec0: 4a16 ldr r2, [pc, #88] ; (8015f1c ) - 8015ec2: 683b ldr r3, [r7, #0] - 8015ec4: 6013 str r3, [r2, #0] - if (sys_mbox_new(&tcpip_mbox, TCPIP_MBOX_SIZE) != ERR_OK) { - 8015ec6: 2106 movs r1, #6 - 8015ec8: 4815 ldr r0, [pc, #84] ; (8015f20 ) - 8015eca: f00b f9ff bl 80212cc - 8015ece: 4603 mov r3, r0 - 8015ed0: 2b00 cmp r3, #0 - 8015ed2: d006 beq.n 8015ee2 - LWIP_ASSERT("failed to create tcpip_thread mbox", 0); - 8015ed4: 4b13 ldr r3, [pc, #76] ; (8015f24 ) - 8015ed6: f240 2261 movw r2, #609 ; 0x261 - 8015eda: 4913 ldr r1, [pc, #76] ; (8015f28 ) - 8015edc: 4813 ldr r0, [pc, #76] ; (8015f2c ) - 8015ede: f00b fd53 bl 8021988 - } -#if LWIP_TCPIP_CORE_LOCKING - if (sys_mutex_new(&lock_tcpip_core) != ERR_OK) { - 8015ee2: 4813 ldr r0, [pc, #76] ; (8015f30 ) - 8015ee4: f00b fb58 bl 8021598 - 8015ee8: 4603 mov r3, r0 - 8015eea: 2b00 cmp r3, #0 - 8015eec: d006 beq.n 8015efc - LWIP_ASSERT("failed to create lock_tcpip_core", 0); - 8015eee: 4b0d ldr r3, [pc, #52] ; (8015f24 ) - 8015ef0: f240 2265 movw r2, #613 ; 0x265 - 8015ef4: 490f ldr r1, [pc, #60] ; (8015f34 ) - 8015ef6: 480d ldr r0, [pc, #52] ; (8015f2c ) - 8015ef8: f00b fd46 bl 8021988 - } -#endif /* LWIP_TCPIP_CORE_LOCKING */ - - sys_thread_new(TCPIP_THREAD_NAME, tcpip_thread, NULL, TCPIP_THREAD_STACKSIZE, TCPIP_THREAD_PRIO); - 8015efc: 2300 movs r3, #0 - 8015efe: 9300 str r3, [sp, #0] - 8015f00: f44f 6380 mov.w r3, #1024 ; 0x400 - 8015f04: 2200 movs r2, #0 - 8015f06: 490c ldr r1, [pc, #48] ; (8015f38 ) - 8015f08: 480c ldr r0, [pc, #48] ; (8015f3c ) - 8015f0a: f00b fb7d bl 8021608 -} - 8015f0e: bf00 nop - 8015f10: 3708 adds r7, #8 - 8015f12: 46bd mov sp, r7 - 8015f14: bd80 pop {r7, pc} - 8015f16: bf00 nop - 8015f18: 24013970 .word 0x24013970 - 8015f1c: 24013974 .word 0x24013974 - 8015f20: 24013978 .word 0x24013978 - 8015f24: 08023d14 .word 0x08023d14 - 8015f28: 08023d9c .word 0x08023d9c - 8015f2c: 08023d64 .word 0x08023d64 - 8015f30: 2401397c .word 0x2401397c - 8015f34: 08023dc0 .word 0x08023dc0 - 8015f38: 08015c3d .word 0x08015c3d - 8015f3c: 08023de4 .word 0x08023de4 - -08015f40 : - * @param n u16_t in host byte order - * @return n in network byte order - */ -u16_t -lwip_htons(u16_t n) -{ - 8015f40: b480 push {r7} - 8015f42: b083 sub sp, #12 - 8015f44: af00 add r7, sp, #0 - 8015f46: 4603 mov r3, r0 - 8015f48: 80fb strh r3, [r7, #6] - return PP_HTONS(n); - 8015f4a: 88fb ldrh r3, [r7, #6] - 8015f4c: 021b lsls r3, r3, #8 - 8015f4e: b21a sxth r2, r3 - 8015f50: 88fb ldrh r3, [r7, #6] - 8015f52: 0a1b lsrs r3, r3, #8 - 8015f54: b29b uxth r3, r3 - 8015f56: b21b sxth r3, r3 - 8015f58: 4313 orrs r3, r2 - 8015f5a: b21b sxth r3, r3 - 8015f5c: b29b uxth r3, r3 -} - 8015f5e: 4618 mov r0, r3 - 8015f60: 370c adds r7, #12 - 8015f62: 46bd mov sp, r7 - 8015f64: f85d 7b04 ldr.w r7, [sp], #4 - 8015f68: 4770 bx lr - -08015f6a : - * @param n u32_t in host byte order - * @return n in network byte order - */ -u32_t -lwip_htonl(u32_t n) -{ - 8015f6a: b480 push {r7} - 8015f6c: b083 sub sp, #12 - 8015f6e: af00 add r7, sp, #0 - 8015f70: 6078 str r0, [r7, #4] - return PP_HTONL(n); - 8015f72: 687b ldr r3, [r7, #4] - 8015f74: 061a lsls r2, r3, #24 - 8015f76: 687b ldr r3, [r7, #4] - 8015f78: 021b lsls r3, r3, #8 - 8015f7a: f403 037f and.w r3, r3, #16711680 ; 0xff0000 - 8015f7e: 431a orrs r2, r3 - 8015f80: 687b ldr r3, [r7, #4] - 8015f82: 0a1b lsrs r3, r3, #8 - 8015f84: f403 437f and.w r3, r3, #65280 ; 0xff00 - 8015f88: 431a orrs r2, r3 - 8015f8a: 687b ldr r3, [r7, #4] - 8015f8c: 0e1b lsrs r3, r3, #24 - 8015f8e: 4313 orrs r3, r2 -} - 8015f90: 4618 mov r0, r3 - 8015f92: 370c adds r7, #12 - 8015f94: 46bd mov sp, r7 - 8015f96: f85d 7b04 ldr.w r7, [sp], #4 - 8015f9a: 4770 bx lr - -08015f9c : - * @param len length of data to be summed - * @return host order (!) lwip checksum (non-inverted Internet sum) - */ -u16_t -lwip_standard_chksum(const void *dataptr, int len) -{ - 8015f9c: b480 push {r7} - 8015f9e: b089 sub sp, #36 ; 0x24 - 8015fa0: af00 add r7, sp, #0 - 8015fa2: 6078 str r0, [r7, #4] - 8015fa4: 6039 str r1, [r7, #0] - const u8_t *pb = (const u8_t *)dataptr; - 8015fa6: 687b ldr r3, [r7, #4] - 8015fa8: 61fb str r3, [r7, #28] - const u16_t *ps; - u16_t t = 0; - 8015faa: 2300 movs r3, #0 - 8015fac: 81fb strh r3, [r7, #14] - u32_t sum = 0; - 8015fae: 2300 movs r3, #0 - 8015fb0: 617b str r3, [r7, #20] - int odd = ((mem_ptr_t)pb & 1); - 8015fb2: 69fb ldr r3, [r7, #28] - 8015fb4: f003 0301 and.w r3, r3, #1 - 8015fb8: 613b str r3, [r7, #16] - - /* Get aligned to u16_t */ - if (odd && len > 0) { - 8015fba: 693b ldr r3, [r7, #16] - 8015fbc: 2b00 cmp r3, #0 - 8015fbe: d00d beq.n 8015fdc - 8015fc0: 683b ldr r3, [r7, #0] - 8015fc2: 2b00 cmp r3, #0 - 8015fc4: dd0a ble.n 8015fdc - ((u8_t *)&t)[1] = *pb++; - 8015fc6: 69fa ldr r2, [r7, #28] - 8015fc8: 1c53 adds r3, r2, #1 - 8015fca: 61fb str r3, [r7, #28] - 8015fcc: f107 030e add.w r3, r7, #14 - 8015fd0: 3301 adds r3, #1 - 8015fd2: 7812 ldrb r2, [r2, #0] - 8015fd4: 701a strb r2, [r3, #0] - len--; - 8015fd6: 683b ldr r3, [r7, #0] - 8015fd8: 3b01 subs r3, #1 - 8015fda: 603b str r3, [r7, #0] - } - - /* Add the bulk of the data */ - ps = (const u16_t *)(const void *)pb; - 8015fdc: 69fb ldr r3, [r7, #28] - 8015fde: 61bb str r3, [r7, #24] - while (len > 1) { - 8015fe0: e00a b.n 8015ff8 - sum += *ps++; - 8015fe2: 69bb ldr r3, [r7, #24] - 8015fe4: 1c9a adds r2, r3, #2 - 8015fe6: 61ba str r2, [r7, #24] - 8015fe8: 881b ldrh r3, [r3, #0] - 8015fea: 461a mov r2, r3 - 8015fec: 697b ldr r3, [r7, #20] - 8015fee: 4413 add r3, r2 - 8015ff0: 617b str r3, [r7, #20] - len -= 2; - 8015ff2: 683b ldr r3, [r7, #0] - 8015ff4: 3b02 subs r3, #2 - 8015ff6: 603b str r3, [r7, #0] - while (len > 1) { - 8015ff8: 683b ldr r3, [r7, #0] - 8015ffa: 2b01 cmp r3, #1 - 8015ffc: dcf1 bgt.n 8015fe2 - } - - /* Consume left-over byte, if any */ - if (len > 0) { - 8015ffe: 683b ldr r3, [r7, #0] - 8016000: 2b00 cmp r3, #0 - 8016002: dd04 ble.n 801600e - ((u8_t *)&t)[0] = *(const u8_t *)ps; - 8016004: f107 030e add.w r3, r7, #14 - 8016008: 69ba ldr r2, [r7, #24] - 801600a: 7812 ldrb r2, [r2, #0] - 801600c: 701a strb r2, [r3, #0] - } - - /* Add end bytes */ - sum += t; - 801600e: 89fb ldrh r3, [r7, #14] - 8016010: 461a mov r2, r3 - 8016012: 697b ldr r3, [r7, #20] - 8016014: 4413 add r3, r2 - 8016016: 617b str r3, [r7, #20] - - /* Fold 32-bit sum to 16 bits - calling this twice is probably faster than if statements... */ - sum = FOLD_U32T(sum); - 8016018: 697b ldr r3, [r7, #20] - 801601a: 0c1a lsrs r2, r3, #16 - 801601c: 697b ldr r3, [r7, #20] - 801601e: b29b uxth r3, r3 - 8016020: 4413 add r3, r2 - 8016022: 617b str r3, [r7, #20] - sum = FOLD_U32T(sum); - 8016024: 697b ldr r3, [r7, #20] - 8016026: 0c1a lsrs r2, r3, #16 - 8016028: 697b ldr r3, [r7, #20] - 801602a: b29b uxth r3, r3 - 801602c: 4413 add r3, r2 - 801602e: 617b str r3, [r7, #20] - - /* Swap if alignment was odd */ - if (odd) { - 8016030: 693b ldr r3, [r7, #16] - 8016032: 2b00 cmp r3, #0 - 8016034: d007 beq.n 8016046 - sum = SWAP_BYTES_IN_WORD(sum); - 8016036: 697b ldr r3, [r7, #20] - 8016038: 021b lsls r3, r3, #8 - 801603a: b29a uxth r2, r3 - 801603c: 697b ldr r3, [r7, #20] - 801603e: 0a1b lsrs r3, r3, #8 - 8016040: b2db uxtb r3, r3 - 8016042: 4313 orrs r3, r2 - 8016044: 617b str r3, [r7, #20] - } - - return (u16_t)sum; - 8016046: 697b ldr r3, [r7, #20] - 8016048: b29b uxth r3, r3 -} - 801604a: 4618 mov r0, r3 - 801604c: 3724 adds r7, #36 ; 0x24 - 801604e: 46bd mov sp, r7 - 8016050: f85d 7b04 ldr.w r7, [sp], #4 - 8016054: 4770 bx lr - -08016056 : - * @return checksum (as u16_t) to be saved directly in the protocol header - */ - -u16_t -inet_chksum(const void *dataptr, u16_t len) -{ - 8016056: b580 push {r7, lr} - 8016058: b082 sub sp, #8 - 801605a: af00 add r7, sp, #0 - 801605c: 6078 str r0, [r7, #4] - 801605e: 460b mov r3, r1 - 8016060: 807b strh r3, [r7, #2] - return (u16_t)~(unsigned int)LWIP_CHKSUM(dataptr, len); - 8016062: 887b ldrh r3, [r7, #2] - 8016064: 4619 mov r1, r3 - 8016066: 6878 ldr r0, [r7, #4] - 8016068: f7ff ff98 bl 8015f9c - 801606c: 4603 mov r3, r0 - 801606e: 43db mvns r3, r3 - 8016070: b29b uxth r3, r3 -} - 8016072: 4618 mov r0, r3 - 8016074: 3708 adds r7, #8 - 8016076: 46bd mov sp, r7 - 8016078: bd80 pop {r7, pc} - -0801607a : - * @param p pbuf chain over that the checksum should be calculated - * @return checksum (as u16_t) to be saved directly in the protocol header - */ -u16_t -inet_chksum_pbuf(struct pbuf *p) -{ - 801607a: b580 push {r7, lr} - 801607c: b086 sub sp, #24 - 801607e: af00 add r7, sp, #0 - 8016080: 6078 str r0, [r7, #4] - u32_t acc; - struct pbuf *q; - int swapped = 0; - 8016082: 2300 movs r3, #0 - 8016084: 60fb str r3, [r7, #12] - - acc = 0; - 8016086: 2300 movs r3, #0 - 8016088: 617b str r3, [r7, #20] - for (q = p; q != NULL; q = q->next) { - 801608a: 687b ldr r3, [r7, #4] - 801608c: 613b str r3, [r7, #16] - 801608e: e02b b.n 80160e8 - acc += LWIP_CHKSUM(q->payload, q->len); - 8016090: 693b ldr r3, [r7, #16] - 8016092: 685a ldr r2, [r3, #4] - 8016094: 693b ldr r3, [r7, #16] - 8016096: 895b ldrh r3, [r3, #10] - 8016098: 4619 mov r1, r3 - 801609a: 4610 mov r0, r2 - 801609c: f7ff ff7e bl 8015f9c - 80160a0: 4603 mov r3, r0 - 80160a2: 461a mov r2, r3 - 80160a4: 697b ldr r3, [r7, #20] - 80160a6: 4413 add r3, r2 - 80160a8: 617b str r3, [r7, #20] - acc = FOLD_U32T(acc); - 80160aa: 697b ldr r3, [r7, #20] - 80160ac: 0c1a lsrs r2, r3, #16 - 80160ae: 697b ldr r3, [r7, #20] - 80160b0: b29b uxth r3, r3 - 80160b2: 4413 add r3, r2 - 80160b4: 617b str r3, [r7, #20] - if (q->len % 2 != 0) { - 80160b6: 693b ldr r3, [r7, #16] - 80160b8: 895b ldrh r3, [r3, #10] - 80160ba: f003 0301 and.w r3, r3, #1 - 80160be: b29b uxth r3, r3 - 80160c0: 2b00 cmp r3, #0 - 80160c2: d00e beq.n 80160e2 - swapped = !swapped; - 80160c4: 68fb ldr r3, [r7, #12] - 80160c6: 2b00 cmp r3, #0 - 80160c8: bf0c ite eq - 80160ca: 2301 moveq r3, #1 - 80160cc: 2300 movne r3, #0 - 80160ce: b2db uxtb r3, r3 - 80160d0: 60fb str r3, [r7, #12] - acc = SWAP_BYTES_IN_WORD(acc); - 80160d2: 697b ldr r3, [r7, #20] - 80160d4: 021b lsls r3, r3, #8 - 80160d6: b29a uxth r2, r3 - 80160d8: 697b ldr r3, [r7, #20] - 80160da: 0a1b lsrs r3, r3, #8 - 80160dc: b2db uxtb r3, r3 - 80160de: 4313 orrs r3, r2 - 80160e0: 617b str r3, [r7, #20] - for (q = p; q != NULL; q = q->next) { - 80160e2: 693b ldr r3, [r7, #16] - 80160e4: 681b ldr r3, [r3, #0] - 80160e6: 613b str r3, [r7, #16] - 80160e8: 693b ldr r3, [r7, #16] - 80160ea: 2b00 cmp r3, #0 - 80160ec: d1d0 bne.n 8016090 - } - } - - if (swapped) { - 80160ee: 68fb ldr r3, [r7, #12] - 80160f0: 2b00 cmp r3, #0 - 80160f2: d007 beq.n 8016104 - acc = SWAP_BYTES_IN_WORD(acc); - 80160f4: 697b ldr r3, [r7, #20] - 80160f6: 021b lsls r3, r3, #8 - 80160f8: b29a uxth r2, r3 - 80160fa: 697b ldr r3, [r7, #20] - 80160fc: 0a1b lsrs r3, r3, #8 - 80160fe: b2db uxtb r3, r3 - 8016100: 4313 orrs r3, r2 - 8016102: 617b str r3, [r7, #20] - } - return (u16_t)~(acc & 0xffffUL); - 8016104: 697b ldr r3, [r7, #20] - 8016106: b29b uxth r3, r3 - 8016108: 43db mvns r3, r3 - 801610a: b29b uxth r3, r3 -} - 801610c: 4618 mov r0, r3 - 801610e: 3718 adds r7, #24 - 8016110: 46bd mov sp, r7 - 8016112: bd80 pop {r7, pc} - -08016114 : - * Initialize all modules. - * Use this in NO_SYS mode. Use tcpip_init() otherwise. - */ -void -lwip_init(void) -{ - 8016114: b580 push {r7, lr} - 8016116: b082 sub sp, #8 - 8016118: af00 add r7, sp, #0 -#ifndef LWIP_SKIP_CONST_CHECK - int a = 0; - 801611a: 2300 movs r3, #0 - 801611c: 607b str r3, [r7, #4] -#endif - - /* Modules initialization */ - stats_init(); -#if !NO_SYS - sys_init(); - 801611e: f00b fa2d bl 802157c -#endif /* !NO_SYS */ - mem_init(); - 8016122: f000 f8d9 bl 80162d8 - memp_init(); - 8016126: f000 fc5d bl 80169e4 - pbuf_init(); - netif_init(); - 801612a: f000 fd71 bl 8016c10 -#endif /* LWIP_IPV4 */ -#if LWIP_RAW - raw_init(); -#endif /* LWIP_RAW */ -#if LWIP_UDP - udp_init(); - 801612e: f008 fa41 bl 801e5b4 -#endif /* LWIP_UDP */ -#if LWIP_TCP - tcp_init(); - 8016132: f001 ff7b bl 801802c -#if PPP_SUPPORT - ppp_init(); -#endif - -#if LWIP_TIMERS - sys_timeouts_init(); - 8016136: f008 f983 bl 801e440 -#endif /* LWIP_TIMERS */ -} - 801613a: bf00 nop - 801613c: 3708 adds r7, #8 - 801613e: 46bd mov sp, r7 - 8016140: bd80 pop {r7, pc} - ... - -08016144 : -#define mem_overflow_check_element(mem) -#endif /* MEM_OVERFLOW_CHECK */ - -static struct mem * -ptr_to_mem(mem_size_t ptr) -{ - 8016144: b480 push {r7} - 8016146: b083 sub sp, #12 - 8016148: af00 add r7, sp, #0 - 801614a: 4603 mov r3, r0 - 801614c: 80fb strh r3, [r7, #6] - return (struct mem *)(void *)&ram[ptr]; - 801614e: 4b05 ldr r3, [pc, #20] ; (8016164 ) - 8016150: 681a ldr r2, [r3, #0] - 8016152: 88fb ldrh r3, [r7, #6] - 8016154: 4413 add r3, r2 -} - 8016156: 4618 mov r0, r3 - 8016158: 370c adds r7, #12 - 801615a: 46bd mov sp, r7 - 801615c: f85d 7b04 ldr.w r7, [sp], #4 - 8016160: 4770 bx lr - 8016162: bf00 nop - 8016164: 24013998 .word 0x24013998 - -08016168 : - -static mem_size_t -mem_to_ptr(void *mem) -{ - 8016168: b480 push {r7} - 801616a: b083 sub sp, #12 - 801616c: af00 add r7, sp, #0 - 801616e: 6078 str r0, [r7, #4] - return (mem_size_t)((u8_t *)mem - ram); - 8016170: 4b05 ldr r3, [pc, #20] ; (8016188 ) - 8016172: 681b ldr r3, [r3, #0] - 8016174: 687a ldr r2, [r7, #4] - 8016176: 1ad3 subs r3, r2, r3 - 8016178: b29b uxth r3, r3 -} - 801617a: 4618 mov r0, r3 - 801617c: 370c adds r7, #12 - 801617e: 46bd mov sp, r7 - 8016180: f85d 7b04 ldr.w r7, [sp], #4 - 8016184: 4770 bx lr - 8016186: bf00 nop - 8016188: 24013998 .word 0x24013998 - -0801618c : - * This assumes access to the heap is protected by the calling function - * already. - */ -static void -plug_holes(struct mem *mem) -{ - 801618c: b590 push {r4, r7, lr} - 801618e: b085 sub sp, #20 - 8016190: af00 add r7, sp, #0 - 8016192: 6078 str r0, [r7, #4] - struct mem *nmem; - struct mem *pmem; - - LWIP_ASSERT("plug_holes: mem >= ram", (u8_t *)mem >= ram); - 8016194: 4b47 ldr r3, [pc, #284] ; (80162b4 ) - 8016196: 681b ldr r3, [r3, #0] - 8016198: 687a ldr r2, [r7, #4] - 801619a: 429a cmp r2, r3 - 801619c: d206 bcs.n 80161ac - 801619e: 4b46 ldr r3, [pc, #280] ; (80162b8 ) - 80161a0: f240 12df movw r2, #479 ; 0x1df - 80161a4: 4945 ldr r1, [pc, #276] ; (80162bc ) - 80161a6: 4846 ldr r0, [pc, #280] ; (80162c0 ) - 80161a8: f00b fbee bl 8021988 - LWIP_ASSERT("plug_holes: mem < ram_end", (u8_t *)mem < (u8_t *)ram_end); - 80161ac: 4b45 ldr r3, [pc, #276] ; (80162c4 ) - 80161ae: 681b ldr r3, [r3, #0] - 80161b0: 687a ldr r2, [r7, #4] - 80161b2: 429a cmp r2, r3 - 80161b4: d306 bcc.n 80161c4 - 80161b6: 4b40 ldr r3, [pc, #256] ; (80162b8 ) - 80161b8: f44f 72f0 mov.w r2, #480 ; 0x1e0 - 80161bc: 4942 ldr r1, [pc, #264] ; (80162c8 ) - 80161be: 4840 ldr r0, [pc, #256] ; (80162c0 ) - 80161c0: f00b fbe2 bl 8021988 - LWIP_ASSERT("plug_holes: mem->used == 0", mem->used == 0); - 80161c4: 687b ldr r3, [r7, #4] - 80161c6: 791b ldrb r3, [r3, #4] - 80161c8: 2b00 cmp r3, #0 - 80161ca: d006 beq.n 80161da - 80161cc: 4b3a ldr r3, [pc, #232] ; (80162b8 ) - 80161ce: f240 12e1 movw r2, #481 ; 0x1e1 - 80161d2: 493e ldr r1, [pc, #248] ; (80162cc ) - 80161d4: 483a ldr r0, [pc, #232] ; (80162c0 ) - 80161d6: f00b fbd7 bl 8021988 - - /* plug hole forward */ - LWIP_ASSERT("plug_holes: mem->next <= MEM_SIZE_ALIGNED", mem->next <= MEM_SIZE_ALIGNED); - 80161da: 687b ldr r3, [r7, #4] - 80161dc: 881b ldrh r3, [r3, #0] - 80161de: f647 52e8 movw r2, #32232 ; 0x7de8 - 80161e2: 4293 cmp r3, r2 - 80161e4: d906 bls.n 80161f4 - 80161e6: 4b34 ldr r3, [pc, #208] ; (80162b8 ) - 80161e8: f44f 72f2 mov.w r2, #484 ; 0x1e4 - 80161ec: 4938 ldr r1, [pc, #224] ; (80162d0 ) - 80161ee: 4834 ldr r0, [pc, #208] ; (80162c0 ) - 80161f0: f00b fbca bl 8021988 - - nmem = ptr_to_mem(mem->next); - 80161f4: 687b ldr r3, [r7, #4] - 80161f6: 881b ldrh r3, [r3, #0] - 80161f8: 4618 mov r0, r3 - 80161fa: f7ff ffa3 bl 8016144 - 80161fe: 60f8 str r0, [r7, #12] - if (mem != nmem && nmem->used == 0 && (u8_t *)nmem != (u8_t *)ram_end) { - 8016200: 687a ldr r2, [r7, #4] - 8016202: 68fb ldr r3, [r7, #12] - 8016204: 429a cmp r2, r3 - 8016206: d025 beq.n 8016254 - 8016208: 68fb ldr r3, [r7, #12] - 801620a: 791b ldrb r3, [r3, #4] - 801620c: 2b00 cmp r3, #0 - 801620e: d121 bne.n 8016254 - 8016210: 4b2c ldr r3, [pc, #176] ; (80162c4 ) - 8016212: 681b ldr r3, [r3, #0] - 8016214: 68fa ldr r2, [r7, #12] - 8016216: 429a cmp r2, r3 - 8016218: d01c beq.n 8016254 - /* if mem->next is unused and not end of ram, combine mem and mem->next */ - if (lfree == nmem) { - 801621a: 4b2e ldr r3, [pc, #184] ; (80162d4 ) - 801621c: 681b ldr r3, [r3, #0] - 801621e: 68fa ldr r2, [r7, #12] - 8016220: 429a cmp r2, r3 - 8016222: d102 bne.n 801622a - lfree = mem; - 8016224: 4a2b ldr r2, [pc, #172] ; (80162d4 ) - 8016226: 687b ldr r3, [r7, #4] - 8016228: 6013 str r3, [r2, #0] - } - mem->next = nmem->next; - 801622a: 68fb ldr r3, [r7, #12] - 801622c: 881a ldrh r2, [r3, #0] - 801622e: 687b ldr r3, [r7, #4] - 8016230: 801a strh r2, [r3, #0] - if (nmem->next != MEM_SIZE_ALIGNED) { - 8016232: 68fb ldr r3, [r7, #12] - 8016234: 881b ldrh r3, [r3, #0] - 8016236: f647 52e8 movw r2, #32232 ; 0x7de8 - 801623a: 4293 cmp r3, r2 - 801623c: d00a beq.n 8016254 - ptr_to_mem(nmem->next)->prev = mem_to_ptr(mem); - 801623e: 68fb ldr r3, [r7, #12] - 8016240: 881b ldrh r3, [r3, #0] - 8016242: 4618 mov r0, r3 - 8016244: f7ff ff7e bl 8016144 - 8016248: 4604 mov r4, r0 - 801624a: 6878 ldr r0, [r7, #4] - 801624c: f7ff ff8c bl 8016168 - 8016250: 4603 mov r3, r0 - 8016252: 8063 strh r3, [r4, #2] - } - } - - /* plug hole backward */ - pmem = ptr_to_mem(mem->prev); - 8016254: 687b ldr r3, [r7, #4] - 8016256: 885b ldrh r3, [r3, #2] - 8016258: 4618 mov r0, r3 - 801625a: f7ff ff73 bl 8016144 - 801625e: 60b8 str r0, [r7, #8] - if (pmem != mem && pmem->used == 0) { - 8016260: 68ba ldr r2, [r7, #8] - 8016262: 687b ldr r3, [r7, #4] - 8016264: 429a cmp r2, r3 - 8016266: d020 beq.n 80162aa - 8016268: 68bb ldr r3, [r7, #8] - 801626a: 791b ldrb r3, [r3, #4] - 801626c: 2b00 cmp r3, #0 - 801626e: d11c bne.n 80162aa - /* if mem->prev is unused, combine mem and mem->prev */ - if (lfree == mem) { - 8016270: 4b18 ldr r3, [pc, #96] ; (80162d4 ) - 8016272: 681b ldr r3, [r3, #0] - 8016274: 687a ldr r2, [r7, #4] - 8016276: 429a cmp r2, r3 - 8016278: d102 bne.n 8016280 - lfree = pmem; - 801627a: 4a16 ldr r2, [pc, #88] ; (80162d4 ) - 801627c: 68bb ldr r3, [r7, #8] - 801627e: 6013 str r3, [r2, #0] - } - pmem->next = mem->next; - 8016280: 687b ldr r3, [r7, #4] - 8016282: 881a ldrh r2, [r3, #0] - 8016284: 68bb ldr r3, [r7, #8] - 8016286: 801a strh r2, [r3, #0] - if (mem->next != MEM_SIZE_ALIGNED) { - 8016288: 687b ldr r3, [r7, #4] - 801628a: 881b ldrh r3, [r3, #0] - 801628c: f647 52e8 movw r2, #32232 ; 0x7de8 - 8016290: 4293 cmp r3, r2 - 8016292: d00a beq.n 80162aa - ptr_to_mem(mem->next)->prev = mem_to_ptr(pmem); - 8016294: 687b ldr r3, [r7, #4] - 8016296: 881b ldrh r3, [r3, #0] - 8016298: 4618 mov r0, r3 - 801629a: f7ff ff53 bl 8016144 - 801629e: 4604 mov r4, r0 - 80162a0: 68b8 ldr r0, [r7, #8] - 80162a2: f7ff ff61 bl 8016168 - 80162a6: 4603 mov r3, r0 - 80162a8: 8063 strh r3, [r4, #2] - } - } -} - 80162aa: bf00 nop - 80162ac: 3714 adds r7, #20 - 80162ae: 46bd mov sp, r7 - 80162b0: bd90 pop {r4, r7, pc} - 80162b2: bf00 nop - 80162b4: 24013998 .word 0x24013998 - 80162b8: 08023df4 .word 0x08023df4 - 80162bc: 08023e24 .word 0x08023e24 - 80162c0: 08023e3c .word 0x08023e3c - 80162c4: 2401399c .word 0x2401399c - 80162c8: 08023e64 .word 0x08023e64 - 80162cc: 08023e80 .word 0x08023e80 - 80162d0: 08023e9c .word 0x08023e9c - 80162d4: 240139a4 .word 0x240139a4 - -080162d8 : -/** - * Zero the heap and initialize start, end and lowest-free - */ -void -mem_init(void) -{ - 80162d8: b580 push {r7, lr} - 80162da: b082 sub sp, #8 - 80162dc: 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); - 80162de: 4b1d ldr r3, [pc, #116] ; (8016354 ) - 80162e0: 4a1d ldr r2, [pc, #116] ; (8016358 ) - 80162e2: 601a str r2, [r3, #0] - /* initialize the start of the heap */ - mem = (struct mem *)(void *)ram; - 80162e4: 4b1b ldr r3, [pc, #108] ; (8016354 ) - 80162e6: 681b ldr r3, [r3, #0] - 80162e8: 607b str r3, [r7, #4] - mem->next = MEM_SIZE_ALIGNED; - 80162ea: 687b ldr r3, [r7, #4] - 80162ec: f647 52e8 movw r2, #32232 ; 0x7de8 - 80162f0: 801a strh r2, [r3, #0] - mem->prev = 0; - 80162f2: 687b ldr r3, [r7, #4] - 80162f4: 2200 movs r2, #0 - 80162f6: 805a strh r2, [r3, #2] - mem->used = 0; - 80162f8: 687b ldr r3, [r7, #4] - 80162fa: 2200 movs r2, #0 - 80162fc: 711a strb r2, [r3, #4] - /* initialize the end of the heap */ - ram_end = ptr_to_mem(MEM_SIZE_ALIGNED); - 80162fe: f647 50e8 movw r0, #32232 ; 0x7de8 - 8016302: f7ff ff1f bl 8016144 - 8016306: 4603 mov r3, r0 - 8016308: 4a14 ldr r2, [pc, #80] ; (801635c ) - 801630a: 6013 str r3, [r2, #0] - ram_end->used = 1; - 801630c: 4b13 ldr r3, [pc, #76] ; (801635c ) - 801630e: 681b ldr r3, [r3, #0] - 8016310: 2201 movs r2, #1 - 8016312: 711a strb r2, [r3, #4] - ram_end->next = MEM_SIZE_ALIGNED; - 8016314: 4b11 ldr r3, [pc, #68] ; (801635c ) - 8016316: 681b ldr r3, [r3, #0] - 8016318: f647 52e8 movw r2, #32232 ; 0x7de8 - 801631c: 801a strh r2, [r3, #0] - ram_end->prev = MEM_SIZE_ALIGNED; - 801631e: 4b0f ldr r3, [pc, #60] ; (801635c ) - 8016320: 681b ldr r3, [r3, #0] - 8016322: f647 52e8 movw r2, #32232 ; 0x7de8 - 8016326: 805a strh r2, [r3, #2] - MEM_SANITY(); - - /* initialize the lowest-free pointer to the start of the heap */ - lfree = (struct mem *)(void *)ram; - 8016328: 4b0a ldr r3, [pc, #40] ; (8016354 ) - 801632a: 681b ldr r3, [r3, #0] - 801632c: 4a0c ldr r2, [pc, #48] ; (8016360 ) - 801632e: 6013 str r3, [r2, #0] - - MEM_STATS_AVAIL(avail, MEM_SIZE_ALIGNED); - - if (sys_mutex_new(&mem_mutex) != ERR_OK) { - 8016330: 480c ldr r0, [pc, #48] ; (8016364 ) - 8016332: f00b f931 bl 8021598 - 8016336: 4603 mov r3, r0 - 8016338: 2b00 cmp r3, #0 - 801633a: d006 beq.n 801634a - LWIP_ASSERT("failed to create mem_mutex", 0); - 801633c: 4b0a ldr r3, [pc, #40] ; (8016368 ) - 801633e: f240 221f movw r2, #543 ; 0x21f - 8016342: 490a ldr r1, [pc, #40] ; (801636c ) - 8016344: 480a ldr r0, [pc, #40] ; (8016370 ) - 8016346: f00b fb1f bl 8021988 - } -} - 801634a: bf00 nop - 801634c: 3708 adds r7, #8 - 801634e: 46bd mov sp, r7 - 8016350: bd80 pop {r7, pc} - 8016352: bf00 nop - 8016354: 24013998 .word 0x24013998 - 8016358: 30000200 .word 0x30000200 - 801635c: 2401399c .word 0x2401399c - 8016360: 240139a4 .word 0x240139a4 - 8016364: 240139a0 .word 0x240139a0 - 8016368: 08023df4 .word 0x08023df4 - 801636c: 08023ec8 .word 0x08023ec8 - 8016370: 08023e3c .word 0x08023e3c - -08016374 : -/* Check if a struct mem is correctly linked. - * If not, double-free is a possible reason. - */ -static int -mem_link_valid(struct mem *mem) -{ - 8016374: b580 push {r7, lr} - 8016376: b086 sub sp, #24 - 8016378: af00 add r7, sp, #0 - 801637a: 6078 str r0, [r7, #4] - struct mem *nmem, *pmem; - mem_size_t rmem_idx; - rmem_idx = mem_to_ptr(mem); - 801637c: 6878 ldr r0, [r7, #4] - 801637e: f7ff fef3 bl 8016168 - 8016382: 4603 mov r3, r0 - 8016384: 82fb strh r3, [r7, #22] - nmem = ptr_to_mem(mem->next); - 8016386: 687b ldr r3, [r7, #4] - 8016388: 881b ldrh r3, [r3, #0] - 801638a: 4618 mov r0, r3 - 801638c: f7ff feda bl 8016144 - 8016390: 6138 str r0, [r7, #16] - pmem = ptr_to_mem(mem->prev); - 8016392: 687b ldr r3, [r7, #4] - 8016394: 885b ldrh r3, [r3, #2] - 8016396: 4618 mov r0, r3 - 8016398: f7ff fed4 bl 8016144 - 801639c: 60f8 str r0, [r7, #12] - if ((mem->next > MEM_SIZE_ALIGNED) || (mem->prev > MEM_SIZE_ALIGNED) || - 801639e: 687b ldr r3, [r7, #4] - 80163a0: 881b ldrh r3, [r3, #0] - 80163a2: f647 52e8 movw r2, #32232 ; 0x7de8 - 80163a6: 4293 cmp r3, r2 - 80163a8: d819 bhi.n 80163de - 80163aa: 687b ldr r3, [r7, #4] - 80163ac: 885b ldrh r3, [r3, #2] - 80163ae: f647 52e8 movw r2, #32232 ; 0x7de8 - 80163b2: 4293 cmp r3, r2 - 80163b4: d813 bhi.n 80163de - ((mem->prev != rmem_idx) && (pmem->next != rmem_idx)) || - 80163b6: 687b ldr r3, [r7, #4] - 80163b8: 885b ldrh r3, [r3, #2] - if ((mem->next > MEM_SIZE_ALIGNED) || (mem->prev > MEM_SIZE_ALIGNED) || - 80163ba: 8afa ldrh r2, [r7, #22] - 80163bc: 429a cmp r2, r3 - 80163be: d004 beq.n 80163ca - ((mem->prev != rmem_idx) && (pmem->next != rmem_idx)) || - 80163c0: 68fb ldr r3, [r7, #12] - 80163c2: 881b ldrh r3, [r3, #0] - 80163c4: 8afa ldrh r2, [r7, #22] - 80163c6: 429a cmp r2, r3 - 80163c8: d109 bne.n 80163de - ((nmem != ram_end) && (nmem->prev != rmem_idx))) { - 80163ca: 4b08 ldr r3, [pc, #32] ; (80163ec ) - 80163cc: 681b ldr r3, [r3, #0] - ((mem->prev != rmem_idx) && (pmem->next != rmem_idx)) || - 80163ce: 693a ldr r2, [r7, #16] - 80163d0: 429a cmp r2, r3 - 80163d2: d006 beq.n 80163e2 - ((nmem != ram_end) && (nmem->prev != rmem_idx))) { - 80163d4: 693b ldr r3, [r7, #16] - 80163d6: 885b ldrh r3, [r3, #2] - 80163d8: 8afa ldrh r2, [r7, #22] - 80163da: 429a cmp r2, r3 - 80163dc: d001 beq.n 80163e2 - return 0; - 80163de: 2300 movs r3, #0 - 80163e0: e000 b.n 80163e4 - } - return 1; - 80163e2: 2301 movs r3, #1 -} - 80163e4: 4618 mov r0, r3 - 80163e6: 3718 adds r7, #24 - 80163e8: 46bd mov sp, r7 - 80163ea: bd80 pop {r7, pc} - 80163ec: 2401399c .word 0x2401399c - -080163f0 : - * @param rmem is the data portion of a struct mem as returned by a previous - * call to mem_malloc() - */ -void -mem_free(void *rmem) -{ - 80163f0: b580 push {r7, lr} - 80163f2: b088 sub sp, #32 - 80163f4: af00 add r7, sp, #0 - 80163f6: 6078 str r0, [r7, #4] - struct mem *mem; - LWIP_MEM_FREE_DECL_PROTECT(); - - if (rmem == NULL) { - 80163f8: 687b ldr r3, [r7, #4] - 80163fa: 2b00 cmp r3, #0 - 80163fc: d103 bne.n 8016406 - LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("mem_free(p == NULL) was called.\n")); - 80163fe: 4841 ldr r0, [pc, #260] ; (8016504 ) - 8016400: f00b fb30 bl 8021a64 - return; - 8016404: e07b b.n 80164fe - } - if ((((mem_ptr_t)rmem) & (MEM_ALIGNMENT - 1)) != 0) { - 8016406: 687b ldr r3, [r7, #4] - 8016408: f003 0303 and.w r3, r3, #3 - 801640c: 2b00 cmp r3, #0 - 801640e: d010 beq.n 8016432 - LWIP_MEM_ILLEGAL_FREE("mem_free: sanity check alignment"); - 8016410: 4b3d ldr r3, [pc, #244] ; (8016508 ) - 8016412: f240 2273 movw r2, #627 ; 0x273 - 8016416: 493d ldr r1, [pc, #244] ; (801650c ) - 8016418: 483d ldr r0, [pc, #244] ; (8016510 ) - 801641a: f00b fab5 bl 8021988 - LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: sanity check alignment\n")); - 801641e: 483b ldr r0, [pc, #236] ; (801650c ) - 8016420: f00b fb20 bl 8021a64 - /* protect mem stats from concurrent access */ - MEM_STATS_INC_LOCKED(illegal); - 8016424: f00b f916 bl 8021654 - 8016428: 60f8 str r0, [r7, #12] - 801642a: 68f8 ldr r0, [r7, #12] - 801642c: f00b f920 bl 8021670 - return; - 8016430: e065 b.n 80164fe - } - - /* 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)); - 8016432: 687b ldr r3, [r7, #4] - 8016434: 3b08 subs r3, #8 - 8016436: 61fb str r3, [r7, #28] - - if ((u8_t *)mem < ram || (u8_t *)rmem + MIN_SIZE_ALIGNED > (u8_t *)ram_end) { - 8016438: 4b36 ldr r3, [pc, #216] ; (8016514 ) - 801643a: 681b ldr r3, [r3, #0] - 801643c: 69fa ldr r2, [r7, #28] - 801643e: 429a cmp r2, r3 - 8016440: d306 bcc.n 8016450 - 8016442: 687b ldr r3, [r7, #4] - 8016444: f103 020c add.w r2, r3, #12 - 8016448: 4b33 ldr r3, [pc, #204] ; (8016518 ) - 801644a: 681b ldr r3, [r3, #0] - 801644c: 429a cmp r2, r3 - 801644e: d910 bls.n 8016472 - LWIP_MEM_ILLEGAL_FREE("mem_free: illegal memory"); - 8016450: 4b2d ldr r3, [pc, #180] ; (8016508 ) - 8016452: f240 227f movw r2, #639 ; 0x27f - 8016456: 4931 ldr r1, [pc, #196] ; (801651c ) - 8016458: 482d ldr r0, [pc, #180] ; (8016510 ) - 801645a: f00b fa95 bl 8021988 - LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: illegal memory\n")); - 801645e: 482f ldr r0, [pc, #188] ; (801651c ) - 8016460: f00b fb00 bl 8021a64 - /* protect mem stats from concurrent access */ - MEM_STATS_INC_LOCKED(illegal); - 8016464: f00b f8f6 bl 8021654 - 8016468: 6138 str r0, [r7, #16] - 801646a: 6938 ldr r0, [r7, #16] - 801646c: f00b f900 bl 8021670 - return; - 8016470: e045 b.n 80164fe - } -#if MEM_OVERFLOW_CHECK - mem_overflow_check_element(mem); -#endif - /* protect the heap from concurrent access */ - LWIP_MEM_FREE_PROTECT(); - 8016472: 482b ldr r0, [pc, #172] ; (8016520 ) - 8016474: f00b f8ac bl 80215d0 - /* mem has to be in a used state */ - if (!mem->used) { - 8016478: 69fb ldr r3, [r7, #28] - 801647a: 791b ldrb r3, [r3, #4] - 801647c: 2b00 cmp r3, #0 - 801647e: d113 bne.n 80164a8 - LWIP_MEM_ILLEGAL_FREE("mem_free: illegal memory: double free"); - 8016480: 4b21 ldr r3, [pc, #132] ; (8016508 ) - 8016482: f44f 7223 mov.w r2, #652 ; 0x28c - 8016486: 4927 ldr r1, [pc, #156] ; (8016524 ) - 8016488: 4821 ldr r0, [pc, #132] ; (8016510 ) - 801648a: f00b fa7d bl 8021988 - LWIP_MEM_FREE_UNPROTECT(); - 801648e: 4824 ldr r0, [pc, #144] ; (8016520 ) - 8016490: f00b f8ad bl 80215ee - LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: illegal memory: double free?\n")); - 8016494: 4824 ldr r0, [pc, #144] ; (8016528 ) - 8016496: f00b fae5 bl 8021a64 - /* protect mem stats from concurrent access */ - MEM_STATS_INC_LOCKED(illegal); - 801649a: f00b f8db bl 8021654 - 801649e: 6178 str r0, [r7, #20] - 80164a0: 6978 ldr r0, [r7, #20] - 80164a2: f00b f8e5 bl 8021670 - return; - 80164a6: e02a b.n 80164fe - } - - if (!mem_link_valid(mem)) { - 80164a8: 69f8 ldr r0, [r7, #28] - 80164aa: f7ff ff63 bl 8016374 - 80164ae: 4603 mov r3, r0 - 80164b0: 2b00 cmp r3, #0 - 80164b2: d113 bne.n 80164dc - LWIP_MEM_ILLEGAL_FREE("mem_free: illegal memory: non-linked: double free"); - 80164b4: 4b14 ldr r3, [pc, #80] ; (8016508 ) - 80164b6: f240 2295 movw r2, #661 ; 0x295 - 80164ba: 491c ldr r1, [pc, #112] ; (801652c ) - 80164bc: 4814 ldr r0, [pc, #80] ; (8016510 ) - 80164be: f00b fa63 bl 8021988 - LWIP_MEM_FREE_UNPROTECT(); - 80164c2: 4817 ldr r0, [pc, #92] ; (8016520 ) - 80164c4: f00b f893 bl 80215ee - LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: illegal memory: non-linked: double free?\n")); - 80164c8: 4819 ldr r0, [pc, #100] ; (8016530 ) - 80164ca: f00b facb bl 8021a64 - /* protect mem stats from concurrent access */ - MEM_STATS_INC_LOCKED(illegal); - 80164ce: f00b f8c1 bl 8021654 - 80164d2: 61b8 str r0, [r7, #24] - 80164d4: 69b8 ldr r0, [r7, #24] - 80164d6: f00b f8cb bl 8021670 - return; - 80164da: e010 b.n 80164fe - } - - /* mem is now unused. */ - mem->used = 0; - 80164dc: 69fb ldr r3, [r7, #28] - 80164de: 2200 movs r2, #0 - 80164e0: 711a strb r2, [r3, #4] - - if (mem < lfree) { - 80164e2: 4b14 ldr r3, [pc, #80] ; (8016534 ) - 80164e4: 681b ldr r3, [r3, #0] - 80164e6: 69fa ldr r2, [r7, #28] - 80164e8: 429a cmp r2, r3 - 80164ea: d202 bcs.n 80164f2 - /* the newly freed struct is now the lowest */ - lfree = mem; - 80164ec: 4a11 ldr r2, [pc, #68] ; (8016534 ) - 80164ee: 69fb ldr r3, [r7, #28] - 80164f0: 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); - 80164f2: 69f8 ldr r0, [r7, #28] - 80164f4: f7ff fe4a bl 801618c - 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(); - 80164f8: 4809 ldr r0, [pc, #36] ; (8016520 ) - 80164fa: f00b f878 bl 80215ee -} - 80164fe: 3720 adds r7, #32 - 8016500: 46bd mov sp, r7 - 8016502: bd80 pop {r7, pc} - 8016504: 08023ee4 .word 0x08023ee4 - 8016508: 08023df4 .word 0x08023df4 - 801650c: 08023f04 .word 0x08023f04 - 8016510: 08023e3c .word 0x08023e3c - 8016514: 24013998 .word 0x24013998 - 8016518: 2401399c .word 0x2401399c - 801651c: 08023f28 .word 0x08023f28 - 8016520: 240139a0 .word 0x240139a0 - 8016524: 08023f44 .word 0x08023f44 - 8016528: 08023f6c .word 0x08023f6c - 801652c: 08023f94 .word 0x08023f94 - 8016530: 08023fc8 .word 0x08023fc8 - 8016534: 240139a4 .word 0x240139a4 - -08016538 : - * 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) -{ - 8016538: b580 push {r7, lr} - 801653a: b088 sub sp, #32 - 801653c: af00 add r7, sp, #0 - 801653e: 6078 str r0, [r7, #4] - 8016540: 460b mov r3, r1 - 8016542: 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); - 8016544: 887b ldrh r3, [r7, #2] - 8016546: 3303 adds r3, #3 - 8016548: b29b uxth r3, r3 - 801654a: f023 0303 bic.w r3, r3, #3 - 801654e: 83fb strh r3, [r7, #30] - if (newsize < MIN_SIZE_ALIGNED) { - 8016550: 8bfb ldrh r3, [r7, #30] - 8016552: 2b0b cmp r3, #11 - 8016554: d801 bhi.n 801655a - /* every data block must be at least MIN_SIZE_ALIGNED long */ - newsize = MIN_SIZE_ALIGNED; - 8016556: 230c movs r3, #12 - 8016558: 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)) { - 801655a: 8bfb ldrh r3, [r7, #30] - 801655c: f647 52e8 movw r2, #32232 ; 0x7de8 - 8016560: 4293 cmp r3, r2 - 8016562: d803 bhi.n 801656c - 8016564: 8bfa ldrh r2, [r7, #30] - 8016566: 887b ldrh r3, [r7, #2] - 8016568: 429a cmp r2, r3 - 801656a: d201 bcs.n 8016570 - return NULL; - 801656c: 2300 movs r3, #0 - 801656e: e0df b.n 8016730 - } - - LWIP_ASSERT("mem_trim: legal memory", (u8_t *)rmem >= (u8_t *)ram && - 8016570: 4b71 ldr r3, [pc, #452] ; (8016738 ) - 8016572: 681b ldr r3, [r3, #0] - 8016574: 687a ldr r2, [r7, #4] - 8016576: 429a cmp r2, r3 - 8016578: d304 bcc.n 8016584 - 801657a: 4b70 ldr r3, [pc, #448] ; (801673c ) - 801657c: 681b ldr r3, [r3, #0] - 801657e: 687a ldr r2, [r7, #4] - 8016580: 429a cmp r2, r3 - 8016582: d306 bcc.n 8016592 - 8016584: 4b6e ldr r3, [pc, #440] ; (8016740 ) - 8016586: f240 22d1 movw r2, #721 ; 0x2d1 - 801658a: 496e ldr r1, [pc, #440] ; (8016744 ) - 801658c: 486e ldr r0, [pc, #440] ; (8016748 ) - 801658e: f00b f9fb bl 8021988 - (u8_t *)rmem < (u8_t *)ram_end); - - if ((u8_t *)rmem < (u8_t *)ram || (u8_t *)rmem >= (u8_t *)ram_end) { - 8016592: 4b69 ldr r3, [pc, #420] ; (8016738 ) - 8016594: 681b ldr r3, [r3, #0] - 8016596: 687a ldr r2, [r7, #4] - 8016598: 429a cmp r2, r3 - 801659a: d304 bcc.n 80165a6 - 801659c: 4b67 ldr r3, [pc, #412] ; (801673c ) - 801659e: 681b ldr r3, [r3, #0] - 80165a0: 687a ldr r2, [r7, #4] - 80165a2: 429a cmp r2, r3 - 80165a4: d30a bcc.n 80165bc - LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_trim: illegal memory\n")); - 80165a6: 4869 ldr r0, [pc, #420] ; (801674c ) - 80165a8: f00b fa5c bl 8021a64 - /* protect mem stats from concurrent access */ - MEM_STATS_INC_LOCKED(illegal); - 80165ac: f00b f852 bl 8021654 - 80165b0: 60b8 str r0, [r7, #8] - 80165b2: 68b8 ldr r0, [r7, #8] - 80165b4: f00b f85c bl 8021670 - return rmem; - 80165b8: 687b ldr r3, [r7, #4] - 80165ba: e0b9 b.n 8016730 - } - /* 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)); - 80165bc: 687b ldr r3, [r7, #4] - 80165be: 3b08 subs r3, #8 - 80165c0: 61bb str r3, [r7, #24] -#if MEM_OVERFLOW_CHECK - mem_overflow_check_element(mem); -#endif - /* ... and its offset pointer */ - ptr = mem_to_ptr(mem); - 80165c2: 69b8 ldr r0, [r7, #24] - 80165c4: f7ff fdd0 bl 8016168 - 80165c8: 4603 mov r3, r0 - 80165ca: 82fb strh r3, [r7, #22] - - size = (mem_size_t)((mem_size_t)(mem->next - ptr) - (SIZEOF_STRUCT_MEM + MEM_SANITY_OVERHEAD)); - 80165cc: 69bb ldr r3, [r7, #24] - 80165ce: 881a ldrh r2, [r3, #0] - 80165d0: 8afb ldrh r3, [r7, #22] - 80165d2: 1ad3 subs r3, r2, r3 - 80165d4: b29b uxth r3, r3 - 80165d6: 3b08 subs r3, #8 - 80165d8: 82bb strh r3, [r7, #20] - LWIP_ASSERT("mem_trim can only shrink memory", newsize <= size); - 80165da: 8bfa ldrh r2, [r7, #30] - 80165dc: 8abb ldrh r3, [r7, #20] - 80165de: 429a cmp r2, r3 - 80165e0: d906 bls.n 80165f0 - 80165e2: 4b57 ldr r3, [pc, #348] ; (8016740 ) - 80165e4: f44f 7239 mov.w r2, #740 ; 0x2e4 - 80165e8: 4959 ldr r1, [pc, #356] ; (8016750 ) - 80165ea: 4857 ldr r0, [pc, #348] ; (8016748 ) - 80165ec: f00b f9cc bl 8021988 - if (newsize > size) { - 80165f0: 8bfa ldrh r2, [r7, #30] - 80165f2: 8abb ldrh r3, [r7, #20] - 80165f4: 429a cmp r2, r3 - 80165f6: d901 bls.n 80165fc - /* not supported */ - return NULL; - 80165f8: 2300 movs r3, #0 - 80165fa: e099 b.n 8016730 - } - if (newsize == size) { - 80165fc: 8bfa ldrh r2, [r7, #30] - 80165fe: 8abb ldrh r3, [r7, #20] - 8016600: 429a cmp r2, r3 - 8016602: d101 bne.n 8016608 - /* No change in size, simply return */ - return rmem; - 8016604: 687b ldr r3, [r7, #4] - 8016606: e093 b.n 8016730 - } - - /* protect the heap from concurrent access */ - LWIP_MEM_FREE_PROTECT(); - 8016608: 4852 ldr r0, [pc, #328] ; (8016754 ) - 801660a: f00a ffe1 bl 80215d0 - - mem2 = ptr_to_mem(mem->next); - 801660e: 69bb ldr r3, [r7, #24] - 8016610: 881b ldrh r3, [r3, #0] - 8016612: 4618 mov r0, r3 - 8016614: f7ff fd96 bl 8016144 - 8016618: 6138 str r0, [r7, #16] - if (mem2->used == 0) { - 801661a: 693b ldr r3, [r7, #16] - 801661c: 791b ldrb r3, [r3, #4] - 801661e: 2b00 cmp r3, #0 - 8016620: d141 bne.n 80166a6 - /* 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); - 8016622: 69bb ldr r3, [r7, #24] - 8016624: 881b ldrh r3, [r3, #0] - 8016626: f647 52e8 movw r2, #32232 ; 0x7de8 - 801662a: 4293 cmp r3, r2 - 801662c: d106 bne.n 801663c - 801662e: 4b44 ldr r3, [pc, #272] ; (8016740 ) - 8016630: f240 22f5 movw r2, #757 ; 0x2f5 - 8016634: 4948 ldr r1, [pc, #288] ; (8016758 ) - 8016636: 4844 ldr r0, [pc, #272] ; (8016748 ) - 8016638: f00b f9a6 bl 8021988 - /* remember the old next pointer */ - next = mem2->next; - 801663c: 693b ldr r3, [r7, #16] - 801663e: 881b ldrh r3, [r3, #0] - 8016640: 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); - 8016642: 8afa ldrh r2, [r7, #22] - 8016644: 8bfb ldrh r3, [r7, #30] - 8016646: 4413 add r3, r2 - 8016648: b29b uxth r3, r3 - 801664a: 3308 adds r3, #8 - 801664c: 81fb strh r3, [r7, #14] - if (lfree == mem2) { - 801664e: 4b43 ldr r3, [pc, #268] ; (801675c ) - 8016650: 681b ldr r3, [r3, #0] - 8016652: 693a ldr r2, [r7, #16] - 8016654: 429a cmp r2, r3 - 8016656: d106 bne.n 8016666 - lfree = ptr_to_mem(ptr2); - 8016658: 89fb ldrh r3, [r7, #14] - 801665a: 4618 mov r0, r3 - 801665c: f7ff fd72 bl 8016144 - 8016660: 4603 mov r3, r0 - 8016662: 4a3e ldr r2, [pc, #248] ; (801675c ) - 8016664: 6013 str r3, [r2, #0] - } - mem2 = ptr_to_mem(ptr2); - 8016666: 89fb ldrh r3, [r7, #14] - 8016668: 4618 mov r0, r3 - 801666a: f7ff fd6b bl 8016144 - 801666e: 6138 str r0, [r7, #16] - mem2->used = 0; - 8016670: 693b ldr r3, [r7, #16] - 8016672: 2200 movs r2, #0 - 8016674: 711a strb r2, [r3, #4] - /* restore the next pointer */ - mem2->next = next; - 8016676: 693b ldr r3, [r7, #16] - 8016678: 89ba ldrh r2, [r7, #12] - 801667a: 801a strh r2, [r3, #0] - /* link it back to mem */ - mem2->prev = ptr; - 801667c: 693b ldr r3, [r7, #16] - 801667e: 8afa ldrh r2, [r7, #22] - 8016680: 805a strh r2, [r3, #2] - /* link mem to it */ - mem->next = ptr2; - 8016682: 69bb ldr r3, [r7, #24] - 8016684: 89fa ldrh r2, [r7, #14] - 8016686: 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) { - 8016688: 693b ldr r3, [r7, #16] - 801668a: 881b ldrh r3, [r3, #0] - 801668c: f647 52e8 movw r2, #32232 ; 0x7de8 - 8016690: 4293 cmp r3, r2 - 8016692: d049 beq.n 8016728 - ptr_to_mem(mem2->next)->prev = ptr2; - 8016694: 693b ldr r3, [r7, #16] - 8016696: 881b ldrh r3, [r3, #0] - 8016698: 4618 mov r0, r3 - 801669a: f7ff fd53 bl 8016144 - 801669e: 4602 mov r2, r0 - 80166a0: 89fb ldrh r3, [r7, #14] - 80166a2: 8053 strh r3, [r2, #2] - 80166a4: e040 b.n 8016728 - } - 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) { - 80166a6: 8bfb ldrh r3, [r7, #30] - 80166a8: f103 0214 add.w r2, r3, #20 - 80166ac: 8abb ldrh r3, [r7, #20] - 80166ae: 429a cmp r2, r3 - 80166b0: d83a bhi.n 8016728 - * 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); - 80166b2: 8afa ldrh r2, [r7, #22] - 80166b4: 8bfb ldrh r3, [r7, #30] - 80166b6: 4413 add r3, r2 - 80166b8: b29b uxth r3, r3 - 80166ba: 3308 adds r3, #8 - 80166bc: 81fb strh r3, [r7, #14] - LWIP_ASSERT("invalid next ptr", mem->next != MEM_SIZE_ALIGNED); - 80166be: 69bb ldr r3, [r7, #24] - 80166c0: 881b ldrh r3, [r3, #0] - 80166c2: f647 52e8 movw r2, #32232 ; 0x7de8 - 80166c6: 4293 cmp r3, r2 - 80166c8: d106 bne.n 80166d8 - 80166ca: 4b1d ldr r3, [pc, #116] ; (8016740 ) - 80166cc: f240 3216 movw r2, #790 ; 0x316 - 80166d0: 4921 ldr r1, [pc, #132] ; (8016758 ) - 80166d2: 481d ldr r0, [pc, #116] ; (8016748 ) - 80166d4: f00b f958 bl 8021988 - mem2 = ptr_to_mem(ptr2); - 80166d8: 89fb ldrh r3, [r7, #14] - 80166da: 4618 mov r0, r3 - 80166dc: f7ff fd32 bl 8016144 - 80166e0: 6138 str r0, [r7, #16] - if (mem2 < lfree) { - 80166e2: 4b1e ldr r3, [pc, #120] ; (801675c ) - 80166e4: 681b ldr r3, [r3, #0] - 80166e6: 693a ldr r2, [r7, #16] - 80166e8: 429a cmp r2, r3 - 80166ea: d202 bcs.n 80166f2 - lfree = mem2; - 80166ec: 4a1b ldr r2, [pc, #108] ; (801675c ) - 80166ee: 693b ldr r3, [r7, #16] - 80166f0: 6013 str r3, [r2, #0] - } - mem2->used = 0; - 80166f2: 693b ldr r3, [r7, #16] - 80166f4: 2200 movs r2, #0 - 80166f6: 711a strb r2, [r3, #4] - mem2->next = mem->next; - 80166f8: 69bb ldr r3, [r7, #24] - 80166fa: 881a ldrh r2, [r3, #0] - 80166fc: 693b ldr r3, [r7, #16] - 80166fe: 801a strh r2, [r3, #0] - mem2->prev = ptr; - 8016700: 693b ldr r3, [r7, #16] - 8016702: 8afa ldrh r2, [r7, #22] - 8016704: 805a strh r2, [r3, #2] - mem->next = ptr2; - 8016706: 69bb ldr r3, [r7, #24] - 8016708: 89fa ldrh r2, [r7, #14] - 801670a: 801a strh r2, [r3, #0] - if (mem2->next != MEM_SIZE_ALIGNED) { - 801670c: 693b ldr r3, [r7, #16] - 801670e: 881b ldrh r3, [r3, #0] - 8016710: f647 52e8 movw r2, #32232 ; 0x7de8 - 8016714: 4293 cmp r3, r2 - 8016716: d007 beq.n 8016728 - ptr_to_mem(mem2->next)->prev = ptr2; - 8016718: 693b ldr r3, [r7, #16] - 801671a: 881b ldrh r3, [r3, #0] - 801671c: 4618 mov r0, r3 - 801671e: f7ff fd11 bl 8016144 - 8016722: 4602 mov r2, r0 - 8016724: 89fb ldrh r3, [r7, #14] - 8016726: 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(); - 8016728: 480a ldr r0, [pc, #40] ; (8016754 ) - 801672a: f00a ff60 bl 80215ee - return rmem; - 801672e: 687b ldr r3, [r7, #4] -} - 8016730: 4618 mov r0, r3 - 8016732: 3720 adds r7, #32 - 8016734: 46bd mov sp, r7 - 8016736: bd80 pop {r7, pc} - 8016738: 24013998 .word 0x24013998 - 801673c: 2401399c .word 0x2401399c - 8016740: 08023df4 .word 0x08023df4 - 8016744: 08023ffc .word 0x08023ffc - 8016748: 08023e3c .word 0x08023e3c - 801674c: 08024014 .word 0x08024014 - 8016750: 08024030 .word 0x08024030 - 8016754: 240139a0 .word 0x240139a0 - 8016758: 08024050 .word 0x08024050 - 801675c: 240139a4 .word 0x240139a4 - -08016760 : - * - * Note that the returned value will always be aligned (as defined by MEM_ALIGNMENT). - */ -void * -mem_malloc(mem_size_t size_in) -{ - 8016760: b580 push {r7, lr} - 8016762: b088 sub sp, #32 - 8016764: af00 add r7, sp, #0 - 8016766: 4603 mov r3, r0 - 8016768: 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) { - 801676a: 88fb ldrh r3, [r7, #6] - 801676c: 2b00 cmp r3, #0 - 801676e: d101 bne.n 8016774 - return NULL; - 8016770: 2300 movs r3, #0 - 8016772: e0ec b.n 801694e - } - - /* 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); - 8016774: 88fb ldrh r3, [r7, #6] - 8016776: 3303 adds r3, #3 - 8016778: b29b uxth r3, r3 - 801677a: f023 0303 bic.w r3, r3, #3 - 801677e: 83bb strh r3, [r7, #28] - if (size < MIN_SIZE_ALIGNED) { - 8016780: 8bbb ldrh r3, [r7, #28] - 8016782: 2b0b cmp r3, #11 - 8016784: d801 bhi.n 801678a - /* every data block must be at least MIN_SIZE_ALIGNED long */ - size = MIN_SIZE_ALIGNED; - 8016786: 230c movs r3, #12 - 8016788: 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)) { - 801678a: 8bbb ldrh r3, [r7, #28] - 801678c: f647 52e8 movw r2, #32232 ; 0x7de8 - 8016790: 4293 cmp r3, r2 - 8016792: d803 bhi.n 801679c - 8016794: 8bba ldrh r2, [r7, #28] - 8016796: 88fb ldrh r3, [r7, #6] - 8016798: 429a cmp r2, r3 - 801679a: d201 bcs.n 80167a0 - return NULL; - 801679c: 2300 movs r3, #0 - 801679e: e0d6 b.n 801694e - } - - /* protect the heap from concurrent access */ - sys_mutex_lock(&mem_mutex); - 80167a0: 486d ldr r0, [pc, #436] ; (8016958 ) - 80167a2: f00a ff15 bl 80215d0 -#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; - 80167a6: 4b6d ldr r3, [pc, #436] ; (801695c ) - 80167a8: 681b ldr r3, [r3, #0] - 80167aa: 4618 mov r0, r3 - 80167ac: f7ff fcdc bl 8016168 - 80167b0: 4603 mov r3, r0 - 80167b2: 83fb strh r3, [r7, #30] - 80167b4: e0b9 b.n 801692a - ptr = ptr_to_mem(ptr)->next) { - mem = ptr_to_mem(ptr); - 80167b6: 8bfb ldrh r3, [r7, #30] - 80167b8: 4618 mov r0, r3 - 80167ba: f7ff fcc3 bl 8016144 - 80167be: 6178 str r0, [r7, #20] - local_mem_free_count = 1; - break; - } -#endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */ - - if ((!mem->used) && - 80167c0: 697b ldr r3, [r7, #20] - 80167c2: 791b ldrb r3, [r3, #4] - 80167c4: 2b00 cmp r3, #0 - 80167c6: f040 80a9 bne.w 801691c - (mem->next - (ptr + SIZEOF_STRUCT_MEM)) >= size) { - 80167ca: 697b ldr r3, [r7, #20] - 80167cc: 881b ldrh r3, [r3, #0] - 80167ce: 461a mov r2, r3 - 80167d0: 8bfb ldrh r3, [r7, #30] - 80167d2: 1ad3 subs r3, r2, r3 - 80167d4: f1a3 0208 sub.w r2, r3, #8 - 80167d8: 8bbb ldrh r3, [r7, #28] - if ((!mem->used) && - 80167da: 429a cmp r2, r3 - 80167dc: f0c0 809e bcc.w 801691c - /* 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)) { - 80167e0: 697b ldr r3, [r7, #20] - 80167e2: 881b ldrh r3, [r3, #0] - 80167e4: 461a mov r2, r3 - 80167e6: 8bfb ldrh r3, [r7, #30] - 80167e8: 1ad3 subs r3, r2, r3 - 80167ea: f1a3 0208 sub.w r2, r3, #8 - 80167ee: 8bbb ldrh r3, [r7, #28] - 80167f0: 3314 adds r3, #20 - 80167f2: 429a cmp r2, r3 - 80167f4: d335 bcc.n 8016862 - * 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); - 80167f6: 8bfa ldrh r2, [r7, #30] - 80167f8: 8bbb ldrh r3, [r7, #28] - 80167fa: 4413 add r3, r2 - 80167fc: b29b uxth r3, r3 - 80167fe: 3308 adds r3, #8 - 8016800: 827b strh r3, [r7, #18] - LWIP_ASSERT("invalid next ptr",ptr2 != MEM_SIZE_ALIGNED); - 8016802: 8a7b ldrh r3, [r7, #18] - 8016804: f647 52e8 movw r2, #32232 ; 0x7de8 - 8016808: 4293 cmp r3, r2 - 801680a: d106 bne.n 801681a - 801680c: 4b54 ldr r3, [pc, #336] ; (8016960 ) - 801680e: f240 3287 movw r2, #903 ; 0x387 - 8016812: 4954 ldr r1, [pc, #336] ; (8016964 ) - 8016814: 4854 ldr r0, [pc, #336] ; (8016968 ) - 8016816: f00b f8b7 bl 8021988 - /* create mem2 struct */ - mem2 = ptr_to_mem(ptr2); - 801681a: 8a7b ldrh r3, [r7, #18] - 801681c: 4618 mov r0, r3 - 801681e: f7ff fc91 bl 8016144 - 8016822: 60f8 str r0, [r7, #12] - mem2->used = 0; - 8016824: 68fb ldr r3, [r7, #12] - 8016826: 2200 movs r2, #0 - 8016828: 711a strb r2, [r3, #4] - mem2->next = mem->next; - 801682a: 697b ldr r3, [r7, #20] - 801682c: 881a ldrh r2, [r3, #0] - 801682e: 68fb ldr r3, [r7, #12] - 8016830: 801a strh r2, [r3, #0] - mem2->prev = ptr; - 8016832: 68fb ldr r3, [r7, #12] - 8016834: 8bfa ldrh r2, [r7, #30] - 8016836: 805a strh r2, [r3, #2] - /* and insert it between mem and mem->next */ - mem->next = ptr2; - 8016838: 697b ldr r3, [r7, #20] - 801683a: 8a7a ldrh r2, [r7, #18] - 801683c: 801a strh r2, [r3, #0] - mem->used = 1; - 801683e: 697b ldr r3, [r7, #20] - 8016840: 2201 movs r2, #1 - 8016842: 711a strb r2, [r3, #4] - - if (mem2->next != MEM_SIZE_ALIGNED) { - 8016844: 68fb ldr r3, [r7, #12] - 8016846: 881b ldrh r3, [r3, #0] - 8016848: f647 52e8 movw r2, #32232 ; 0x7de8 - 801684c: 4293 cmp r3, r2 - 801684e: d00b beq.n 8016868 - ptr_to_mem(mem2->next)->prev = ptr2; - 8016850: 68fb ldr r3, [r7, #12] - 8016852: 881b ldrh r3, [r3, #0] - 8016854: 4618 mov r0, r3 - 8016856: f7ff fc75 bl 8016144 - 801685a: 4602 mov r2, r0 - 801685c: 8a7b ldrh r3, [r7, #18] - 801685e: 8053 strh r3, [r2, #2] - 8016860: e002 b.n 8016868 - * 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; - 8016862: 697b ldr r3, [r7, #20] - 8016864: 2201 movs r2, #1 - 8016866: 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) { - 8016868: 4b3c ldr r3, [pc, #240] ; (801695c ) - 801686a: 681b ldr r3, [r3, #0] - 801686c: 697a ldr r2, [r7, #20] - 801686e: 429a cmp r2, r3 - 8016870: d127 bne.n 80168c2 - struct mem *cur = lfree; - 8016872: 4b3a ldr r3, [pc, #232] ; (801695c ) - 8016874: 681b ldr r3, [r3, #0] - 8016876: 61bb str r3, [r7, #24] - /* Find next free block after mem and update lowest free pointer */ - while (cur->used && cur != ram_end) { - 8016878: e005 b.n 8016886 - /* 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); - 801687a: 69bb ldr r3, [r7, #24] - 801687c: 881b ldrh r3, [r3, #0] - 801687e: 4618 mov r0, r3 - 8016880: f7ff fc60 bl 8016144 - 8016884: 61b8 str r0, [r7, #24] - while (cur->used && cur != ram_end) { - 8016886: 69bb ldr r3, [r7, #24] - 8016888: 791b ldrb r3, [r3, #4] - 801688a: 2b00 cmp r3, #0 - 801688c: d004 beq.n 8016898 - 801688e: 4b37 ldr r3, [pc, #220] ; (801696c ) - 8016890: 681b ldr r3, [r3, #0] - 8016892: 69ba ldr r2, [r7, #24] - 8016894: 429a cmp r2, r3 - 8016896: d1f0 bne.n 801687a - } - lfree = cur; - 8016898: 4a30 ldr r2, [pc, #192] ; (801695c ) - 801689a: 69bb ldr r3, [r7, #24] - 801689c: 6013 str r3, [r2, #0] - LWIP_ASSERT("mem_malloc: !lfree->used", ((lfree == ram_end) || (!lfree->used))); - 801689e: 4b2f ldr r3, [pc, #188] ; (801695c ) - 80168a0: 681a ldr r2, [r3, #0] - 80168a2: 4b32 ldr r3, [pc, #200] ; (801696c ) - 80168a4: 681b ldr r3, [r3, #0] - 80168a6: 429a cmp r2, r3 - 80168a8: d00b beq.n 80168c2 - 80168aa: 4b2c ldr r3, [pc, #176] ; (801695c ) - 80168ac: 681b ldr r3, [r3, #0] - 80168ae: 791b ldrb r3, [r3, #4] - 80168b0: 2b00 cmp r3, #0 - 80168b2: d006 beq.n 80168c2 - 80168b4: 4b2a ldr r3, [pc, #168] ; (8016960 ) - 80168b6: f240 32b5 movw r2, #949 ; 0x3b5 - 80168ba: 492d ldr r1, [pc, #180] ; (8016970 ) - 80168bc: 482a ldr r0, [pc, #168] ; (8016968 ) - 80168be: f00b f863 bl 8021988 - } - LWIP_MEM_ALLOC_UNPROTECT(); - sys_mutex_unlock(&mem_mutex); - 80168c2: 4825 ldr r0, [pc, #148] ; (8016958 ) - 80168c4: f00a fe93 bl 80215ee - LWIP_ASSERT("mem_malloc: allocated memory not above ram_end.", - 80168c8: 8bba ldrh r2, [r7, #28] - 80168ca: 697b ldr r3, [r7, #20] - 80168cc: 4413 add r3, r2 - 80168ce: 3308 adds r3, #8 - 80168d0: 4a26 ldr r2, [pc, #152] ; (801696c ) - 80168d2: 6812 ldr r2, [r2, #0] - 80168d4: 4293 cmp r3, r2 - 80168d6: d906 bls.n 80168e6 - 80168d8: 4b21 ldr r3, [pc, #132] ; (8016960 ) - 80168da: f240 32b9 movw r2, #953 ; 0x3b9 - 80168de: 4925 ldr r1, [pc, #148] ; (8016974 ) - 80168e0: 4821 ldr r0, [pc, #132] ; (8016968 ) - 80168e2: f00b f851 bl 8021988 - (mem_ptr_t)mem + SIZEOF_STRUCT_MEM + size <= (mem_ptr_t)ram_end); - LWIP_ASSERT("mem_malloc: allocated memory properly aligned.", - 80168e6: 697b ldr r3, [r7, #20] - 80168e8: f003 0303 and.w r3, r3, #3 - 80168ec: 2b00 cmp r3, #0 - 80168ee: d006 beq.n 80168fe - 80168f0: 4b1b ldr r3, [pc, #108] ; (8016960 ) - 80168f2: f240 32bb movw r2, #955 ; 0x3bb - 80168f6: 4920 ldr r1, [pc, #128] ; (8016978 ) - 80168f8: 481b ldr r0, [pc, #108] ; (8016968 ) - 80168fa: f00b f845 bl 8021988 - ((mem_ptr_t)mem + SIZEOF_STRUCT_MEM) % MEM_ALIGNMENT == 0); - LWIP_ASSERT("mem_malloc: sanity check alignment", - 80168fe: 697b ldr r3, [r7, #20] - 8016900: f003 0303 and.w r3, r3, #3 - 8016904: 2b00 cmp r3, #0 - 8016906: d006 beq.n 8016916 - 8016908: 4b15 ldr r3, [pc, #84] ; (8016960 ) - 801690a: f240 32bd movw r2, #957 ; 0x3bd - 801690e: 491b ldr r1, [pc, #108] ; (801697c ) - 8016910: 4815 ldr r0, [pc, #84] ; (8016968 ) - 8016912: f00b f839 bl 8021988 - -#if MEM_OVERFLOW_CHECK - mem_overflow_init_element(mem, size_in); -#endif - MEM_SANITY(); - return (u8_t *)mem + SIZEOF_STRUCT_MEM + MEM_SANITY_OFFSET; - 8016916: 697b ldr r3, [r7, #20] - 8016918: 3308 adds r3, #8 - 801691a: e018 b.n 801694e - ptr = ptr_to_mem(ptr)->next) { - 801691c: 8bfb ldrh r3, [r7, #30] - 801691e: 4618 mov r0, r3 - 8016920: f7ff fc10 bl 8016144 - 8016924: 4603 mov r3, r0 - 8016926: 881b ldrh r3, [r3, #0] - 8016928: 83fb strh r3, [r7, #30] - for (ptr = mem_to_ptr(lfree); ptr < MEM_SIZE_ALIGNED - size; - 801692a: 8bfa ldrh r2, [r7, #30] - 801692c: 8bb9 ldrh r1, [r7, #28] - 801692e: f647 53e8 movw r3, #32232 ; 0x7de8 - 8016932: 1a5b subs r3, r3, r1 - 8016934: 429a cmp r2, r3 - 8016936: f4ff af3e bcc.w 80167b6 - /* 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); - 801693a: 4807 ldr r0, [pc, #28] ; (8016958 ) - 801693c: f00a fe57 bl 80215ee - LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("mem_malloc: could not allocate %"S16_F" bytes\n", (s16_t)size)); - 8016940: f9b7 301c ldrsh.w r3, [r7, #28] - 8016944: 4619 mov r1, r3 - 8016946: 480e ldr r0, [pc, #56] ; (8016980 ) - 8016948: f00b f81e bl 8021988 - return NULL; - 801694c: 2300 movs r3, #0 -} - 801694e: 4618 mov r0, r3 - 8016950: 3720 adds r7, #32 - 8016952: 46bd mov sp, r7 - 8016954: bd80 pop {r7, pc} - 8016956: bf00 nop - 8016958: 240139a0 .word 0x240139a0 - 801695c: 240139a4 .word 0x240139a4 - 8016960: 08023df4 .word 0x08023df4 - 8016964: 08024050 .word 0x08024050 - 8016968: 08023e3c .word 0x08023e3c - 801696c: 2401399c .word 0x2401399c - 8016970: 08024064 .word 0x08024064 - 8016974: 08024080 .word 0x08024080 - 8016978: 080240b0 .word 0x080240b0 - 801697c: 080240e0 .word 0x080240e0 - 8016980: 08024104 .word 0x08024104 - -08016984 : - * - * @param desc pool to initialize - */ -void -memp_init_pool(const struct memp_desc *desc) -{ - 8016984: b480 push {r7} - 8016986: b085 sub sp, #20 - 8016988: af00 add r7, sp, #0 - 801698a: 6078 str r0, [r7, #4] - LWIP_UNUSED_ARG(desc); -#else - int i; - struct memp *memp; - - *desc->tab = NULL; - 801698c: 687b ldr r3, [r7, #4] - 801698e: 68db ldr r3, [r3, #12] - 8016990: 2200 movs r2, #0 - 8016992: 601a str r2, [r3, #0] - memp = (struct memp *)LWIP_MEM_ALIGN(desc->base); - 8016994: 687b ldr r3, [r7, #4] - 8016996: 689b ldr r3, [r3, #8] - 8016998: 3303 adds r3, #3 - 801699a: f023 0303 bic.w r3, r3, #3 - 801699e: 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) { - 80169a0: 2300 movs r3, #0 - 80169a2: 60fb str r3, [r7, #12] - 80169a4: e011 b.n 80169ca - memp->next = *desc->tab; - 80169a6: 687b ldr r3, [r7, #4] - 80169a8: 68db ldr r3, [r3, #12] - 80169aa: 681a ldr r2, [r3, #0] - 80169ac: 68bb ldr r3, [r7, #8] - 80169ae: 601a str r2, [r3, #0] - *desc->tab = memp; - 80169b0: 687b ldr r3, [r7, #4] - 80169b2: 68db ldr r3, [r3, #12] - 80169b4: 68ba ldr r2, [r7, #8] - 80169b6: 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 - 80169b8: 687b ldr r3, [r7, #4] - 80169ba: 889b ldrh r3, [r3, #4] - 80169bc: 461a mov r2, r3 - 80169be: 68bb ldr r3, [r7, #8] - 80169c0: 4413 add r3, r2 - 80169c2: 60bb str r3, [r7, #8] - for (i = 0; i < desc->num; ++i) { - 80169c4: 68fb ldr r3, [r7, #12] - 80169c6: 3301 adds r3, #1 - 80169c8: 60fb str r3, [r7, #12] - 80169ca: 687b ldr r3, [r7, #4] - 80169cc: 88db ldrh r3, [r3, #6] - 80169ce: 461a mov r2, r3 - 80169d0: 68fb ldr r3, [r7, #12] - 80169d2: 4293 cmp r3, r2 - 80169d4: dbe7 blt.n 80169a6 -#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) */ -} - 80169d6: bf00 nop - 80169d8: bf00 nop - 80169da: 3714 adds r7, #20 - 80169dc: 46bd mov sp, r7 - 80169de: f85d 7b04 ldr.w r7, [sp], #4 - 80169e2: 4770 bx lr - -080169e4 : - * - * Carves out memp_memory into linked lists for each pool-type. - */ -void -memp_init(void) -{ - 80169e4: b580 push {r7, lr} - 80169e6: b082 sub sp, #8 - 80169e8: af00 add r7, sp, #0 - u16_t i; - - /* for every pool: */ - for (i = 0; i < LWIP_ARRAYSIZE(memp_pools); i++) { - 80169ea: 2300 movs r3, #0 - 80169ec: 80fb strh r3, [r7, #6] - 80169ee: e009 b.n 8016a04 - memp_init_pool(memp_pools[i]); - 80169f0: 88fb ldrh r3, [r7, #6] - 80169f2: 4a08 ldr r2, [pc, #32] ; (8016a14 ) - 80169f4: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 80169f8: 4618 mov r0, r3 - 80169fa: f7ff ffc3 bl 8016984 - for (i = 0; i < LWIP_ARRAYSIZE(memp_pools); i++) { - 80169fe: 88fb ldrh r3, [r7, #6] - 8016a00: 3301 adds r3, #1 - 8016a02: 80fb strh r3, [r7, #6] - 8016a04: 88fb ldrh r3, [r7, #6] - 8016a06: 2b0c cmp r3, #12 - 8016a08: d9f2 bls.n 80169f0 - -#if MEMP_OVERFLOW_CHECK >= 2 - /* check everything a first time to see if it worked */ - memp_overflow_check_all(); -#endif /* MEMP_OVERFLOW_CHECK >= 2 */ -} - 8016a0a: bf00 nop - 8016a0c: bf00 nop - 8016a0e: 3708 adds r7, #8 - 8016a10: 46bd mov sp, r7 - 8016a12: bd80 pop {r7, pc} - 8016a14: 08026c78 .word 0x08026c78 - -08016a18 : -#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 -{ - 8016a18: b580 push {r7, lr} - 8016a1a: b084 sub sp, #16 - 8016a1c: af00 add r7, sp, #0 - 8016a1e: 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); - 8016a20: f00a fe18 bl 8021654 - 8016a24: 60f8 str r0, [r7, #12] - - memp = *desc->tab; - 8016a26: 687b ldr r3, [r7, #4] - 8016a28: 68db ldr r3, [r3, #12] - 8016a2a: 681b ldr r3, [r3, #0] - 8016a2c: 60bb str r3, [r7, #8] -#endif /* MEMP_MEM_MALLOC */ - - if (memp != NULL) { - 8016a2e: 68bb ldr r3, [r7, #8] - 8016a30: 2b00 cmp r3, #0 - 8016a32: d015 beq.n 8016a60 -#if !MEMP_MEM_MALLOC -#if MEMP_OVERFLOW_CHECK == 1 - memp_overflow_check_element(memp, desc); -#endif /* MEMP_OVERFLOW_CHECK */ - - *desc->tab = memp->next; - 8016a34: 687b ldr r3, [r7, #4] - 8016a36: 68db ldr r3, [r3, #12] - 8016a38: 68ba ldr r2, [r7, #8] - 8016a3a: 6812 ldr r2, [r2, #0] - 8016a3c: 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", - 8016a3e: 68bb ldr r3, [r7, #8] - 8016a40: f003 0303 and.w r3, r3, #3 - 8016a44: 2b00 cmp r3, #0 - 8016a46: d006 beq.n 8016a56 - 8016a48: 4b0c ldr r3, [pc, #48] ; (8016a7c ) - 8016a4a: f44f 728c mov.w r2, #280 ; 0x118 - 8016a4e: 490c ldr r1, [pc, #48] ; (8016a80 ) - 8016a50: 480c ldr r0, [pc, #48] ; (8016a84 ) - 8016a52: f00a ff99 bl 8021988 - desc->stats->used++; - if (desc->stats->used > desc->stats->max) { - desc->stats->max = desc->stats->used; - } -#endif - SYS_ARCH_UNPROTECT(old_level); - 8016a56: 68f8 ldr r0, [r7, #12] - 8016a58: f00a fe0a bl 8021670 - /* cast through u8_t* to get rid of alignment warnings */ - return ((u8_t *)memp + MEMP_SIZE); - 8016a5c: 68bb ldr r3, [r7, #8] - 8016a5e: e009 b.n 8016a74 - } else { -#if MEMP_STATS - desc->stats->err++; -#endif - SYS_ARCH_UNPROTECT(old_level); - 8016a60: 68f8 ldr r0, [r7, #12] - 8016a62: f00a fe05 bl 8021670 - LWIP_DEBUGF(MEMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("memp_malloc: out of memory in pool %s\n", desc->desc)); - 8016a66: 687b ldr r3, [r7, #4] - 8016a68: 681b ldr r3, [r3, #0] - 8016a6a: 4619 mov r1, r3 - 8016a6c: 4806 ldr r0, [pc, #24] ; (8016a88 ) - 8016a6e: f00a ff8b bl 8021988 - } - - return NULL; - 8016a72: 2300 movs r3, #0 -} - 8016a74: 4618 mov r0, r3 - 8016a76: 3710 adds r7, #16 - 8016a78: 46bd mov sp, r7 - 8016a7a: bd80 pop {r7, pc} - 8016a7c: 080241f4 .word 0x080241f4 - 8016a80: 08024224 .word 0x08024224 - 8016a84: 08024248 .word 0x08024248 - 8016a88: 08024270 .word 0x08024270 - -08016a8c : -#if !MEMP_OVERFLOW_CHECK -memp_malloc_pool(const struct memp_desc *desc) -#else -memp_malloc_pool_fn(const struct memp_desc *desc, const char *file, const int line) -#endif -{ - 8016a8c: b580 push {r7, lr} - 8016a8e: b082 sub sp, #8 - 8016a90: af00 add r7, sp, #0 - 8016a92: 6078 str r0, [r7, #4] - LWIP_ASSERT("invalid pool desc", desc != NULL); - 8016a94: 687b ldr r3, [r7, #4] - 8016a96: 2b00 cmp r3, #0 - 8016a98: d106 bne.n 8016aa8 - 8016a9a: 4b0a ldr r3, [pc, #40] ; (8016ac4 ) - 8016a9c: f44f 729e mov.w r2, #316 ; 0x13c - 8016aa0: 4909 ldr r1, [pc, #36] ; (8016ac8 ) - 8016aa2: 480a ldr r0, [pc, #40] ; (8016acc ) - 8016aa4: f00a ff70 bl 8021988 - if (desc == NULL) { - 8016aa8: 687b ldr r3, [r7, #4] - 8016aaa: 2b00 cmp r3, #0 - 8016aac: d101 bne.n 8016ab2 - return NULL; - 8016aae: 2300 movs r3, #0 - 8016ab0: e003 b.n 8016aba - } - -#if !MEMP_OVERFLOW_CHECK - return do_memp_malloc_pool(desc); - 8016ab2: 6878 ldr r0, [r7, #4] - 8016ab4: f7ff ffb0 bl 8016a18 - 8016ab8: 4603 mov r3, r0 -#else - return do_memp_malloc_pool_fn(desc, file, line); -#endif -} - 8016aba: 4618 mov r0, r3 - 8016abc: 3708 adds r7, #8 - 8016abe: 46bd mov sp, r7 - 8016ac0: bd80 pop {r7, pc} - 8016ac2: bf00 nop - 8016ac4: 080241f4 .word 0x080241f4 - 8016ac8: 08024298 .word 0x08024298 - 8016acc: 08024248 .word 0x08024248 - -08016ad0 : -#if !MEMP_OVERFLOW_CHECK -memp_malloc(memp_t type) -#else -memp_malloc_fn(memp_t type, const char *file, const int line) -#endif -{ - 8016ad0: b580 push {r7, lr} - 8016ad2: b084 sub sp, #16 - 8016ad4: af00 add r7, sp, #0 - 8016ad6: 4603 mov r3, r0 - 8016ad8: 71fb strb r3, [r7, #7] - void *memp; - LWIP_ERROR("memp_malloc: type < MEMP_MAX", (type < MEMP_MAX), return NULL;); - 8016ada: 79fb ldrb r3, [r7, #7] - 8016adc: 2b0c cmp r3, #12 - 8016ade: d908 bls.n 8016af2 - 8016ae0: 4b0a ldr r3, [pc, #40] ; (8016b0c ) - 8016ae2: f240 1257 movw r2, #343 ; 0x157 - 8016ae6: 490a ldr r1, [pc, #40] ; (8016b10 ) - 8016ae8: 480a ldr r0, [pc, #40] ; (8016b14 ) - 8016aea: f00a ff4d bl 8021988 - 8016aee: 2300 movs r3, #0 - 8016af0: e008 b.n 8016b04 -#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]); - 8016af2: 79fb ldrb r3, [r7, #7] - 8016af4: 4a08 ldr r2, [pc, #32] ; (8016b18 ) - 8016af6: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8016afa: 4618 mov r0, r3 - 8016afc: f7ff ff8c bl 8016a18 - 8016b00: 60f8 str r0, [r7, #12] -#else - memp = do_memp_malloc_pool_fn(memp_pools[type], file, line); -#endif - - return memp; - 8016b02: 68fb ldr r3, [r7, #12] -} - 8016b04: 4618 mov r0, r3 - 8016b06: 3710 adds r7, #16 - 8016b08: 46bd mov sp, r7 - 8016b0a: bd80 pop {r7, pc} - 8016b0c: 080241f4 .word 0x080241f4 - 8016b10: 080242ac .word 0x080242ac - 8016b14: 08024248 .word 0x08024248 - 8016b18: 08026c78 .word 0x08026c78 - -08016b1c : - -static void -do_memp_free_pool(const struct memp_desc *desc, void *mem) -{ - 8016b1c: b580 push {r7, lr} - 8016b1e: b084 sub sp, #16 - 8016b20: af00 add r7, sp, #0 - 8016b22: 6078 str r0, [r7, #4] - 8016b24: 6039 str r1, [r7, #0] - struct memp *memp; - SYS_ARCH_DECL_PROTECT(old_level); - - LWIP_ASSERT("memp_free: mem properly aligned", - 8016b26: 683b ldr r3, [r7, #0] - 8016b28: f003 0303 and.w r3, r3, #3 - 8016b2c: 2b00 cmp r3, #0 - 8016b2e: d006 beq.n 8016b3e - 8016b30: 4b0d ldr r3, [pc, #52] ; (8016b68 ) - 8016b32: f44f 72b6 mov.w r2, #364 ; 0x16c - 8016b36: 490d ldr r1, [pc, #52] ; (8016b6c ) - 8016b38: 480d ldr r0, [pc, #52] ; (8016b70 ) - 8016b3a: f00a ff25 bl 8021988 - ((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); - 8016b3e: 683b ldr r3, [r7, #0] - 8016b40: 60fb str r3, [r7, #12] - - SYS_ARCH_PROTECT(old_level); - 8016b42: f00a fd87 bl 8021654 - 8016b46: 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; - 8016b48: 687b ldr r3, [r7, #4] - 8016b4a: 68db ldr r3, [r3, #12] - 8016b4c: 681a ldr r2, [r3, #0] - 8016b4e: 68fb ldr r3, [r7, #12] - 8016b50: 601a str r2, [r3, #0] - *desc->tab = memp; - 8016b52: 687b ldr r3, [r7, #4] - 8016b54: 68db ldr r3, [r3, #12] - 8016b56: 68fa ldr r2, [r7, #12] - 8016b58: 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); - 8016b5a: 68b8 ldr r0, [r7, #8] - 8016b5c: f00a fd88 bl 8021670 -#endif /* !MEMP_MEM_MALLOC */ -} - 8016b60: bf00 nop - 8016b62: 3710 adds r7, #16 - 8016b64: 46bd mov sp, r7 - 8016b66: bd80 pop {r7, pc} - 8016b68: 080241f4 .word 0x080241f4 - 8016b6c: 080242cc .word 0x080242cc - 8016b70: 08024248 .word 0x08024248 - -08016b74 : - * @param desc the pool where to put mem - * @param mem the memp element to free - */ -void -memp_free_pool(const struct memp_desc *desc, void *mem) -{ - 8016b74: b580 push {r7, lr} - 8016b76: b082 sub sp, #8 - 8016b78: af00 add r7, sp, #0 - 8016b7a: 6078 str r0, [r7, #4] - 8016b7c: 6039 str r1, [r7, #0] - LWIP_ASSERT("invalid pool desc", desc != NULL); - 8016b7e: 687b ldr r3, [r7, #4] - 8016b80: 2b00 cmp r3, #0 - 8016b82: d106 bne.n 8016b92 - 8016b84: 4b0a ldr r3, [pc, #40] ; (8016bb0 ) - 8016b86: f240 1295 movw r2, #405 ; 0x195 - 8016b8a: 490a ldr r1, [pc, #40] ; (8016bb4 ) - 8016b8c: 480a ldr r0, [pc, #40] ; (8016bb8 ) - 8016b8e: f00a fefb bl 8021988 - if ((desc == NULL) || (mem == NULL)) { - 8016b92: 687b ldr r3, [r7, #4] - 8016b94: 2b00 cmp r3, #0 - 8016b96: d007 beq.n 8016ba8 - 8016b98: 683b ldr r3, [r7, #0] - 8016b9a: 2b00 cmp r3, #0 - 8016b9c: d004 beq.n 8016ba8 - return; - } - - do_memp_free_pool(desc, mem); - 8016b9e: 6839 ldr r1, [r7, #0] - 8016ba0: 6878 ldr r0, [r7, #4] - 8016ba2: f7ff ffbb bl 8016b1c - 8016ba6: e000 b.n 8016baa - return; - 8016ba8: bf00 nop -} - 8016baa: 3708 adds r7, #8 - 8016bac: 46bd mov sp, r7 - 8016bae: bd80 pop {r7, pc} - 8016bb0: 080241f4 .word 0x080241f4 - 8016bb4: 08024298 .word 0x08024298 - 8016bb8: 08024248 .word 0x08024248 - -08016bbc : - * @param type the pool where to put mem - * @param mem the memp element to free - */ -void -memp_free(memp_t type, void *mem) -{ - 8016bbc: b580 push {r7, lr} - 8016bbe: b082 sub sp, #8 - 8016bc0: af00 add r7, sp, #0 - 8016bc2: 4603 mov r3, r0 - 8016bc4: 6039 str r1, [r7, #0] - 8016bc6: 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;); - 8016bc8: 79fb ldrb r3, [r7, #7] - 8016bca: 2b0c cmp r3, #12 - 8016bcc: d907 bls.n 8016bde - 8016bce: 4b0c ldr r3, [pc, #48] ; (8016c00 ) - 8016bd0: f44f 72d5 mov.w r2, #426 ; 0x1aa - 8016bd4: 490b ldr r1, [pc, #44] ; (8016c04 ) - 8016bd6: 480c ldr r0, [pc, #48] ; (8016c08 ) - 8016bd8: f00a fed6 bl 8021988 - 8016bdc: e00c b.n 8016bf8 - - if (mem == NULL) { - 8016bde: 683b ldr r3, [r7, #0] - 8016be0: 2b00 cmp r3, #0 - 8016be2: d008 beq.n 8016bf6 - -#ifdef LWIP_HOOK_MEMP_AVAILABLE - old_first = *memp_pools[type]->tab; -#endif - - do_memp_free_pool(memp_pools[type], mem); - 8016be4: 79fb ldrb r3, [r7, #7] - 8016be6: 4a09 ldr r2, [pc, #36] ; (8016c0c ) - 8016be8: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8016bec: 6839 ldr r1, [r7, #0] - 8016bee: 4618 mov r0, r3 - 8016bf0: f7ff ff94 bl 8016b1c - 8016bf4: e000 b.n 8016bf8 - return; - 8016bf6: bf00 nop -#ifdef LWIP_HOOK_MEMP_AVAILABLE - if (old_first == NULL) { - LWIP_HOOK_MEMP_AVAILABLE(type); - } -#endif -} - 8016bf8: 3708 adds r7, #8 - 8016bfa: 46bd mov sp, r7 - 8016bfc: bd80 pop {r7, pc} - 8016bfe: bf00 nop - 8016c00: 080241f4 .word 0x080241f4 - 8016c04: 080242ec .word 0x080242ec - 8016c08: 08024248 .word 0x08024248 - 8016c0c: 08026c78 .word 0x08026c78 - -08016c10 : -} -#endif /* LWIP_HAVE_LOOPIF */ - -void -netif_init(void) -{ - 8016c10: b480 push {r7} - 8016c12: af00 add r7, sp, #0 - - netif_set_link_up(&loop_netif); - netif_set_up(&loop_netif); - -#endif /* LWIP_HAVE_LOOPIF */ -} - 8016c14: bf00 nop - 8016c16: 46bd mov sp, r7 - 8016c18: f85d 7b04 ldr.w r7, [sp], #4 - 8016c1c: 4770 bx lr - ... - -08016c20 : -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) -{ - 8016c20: b580 push {r7, lr} - 8016c22: b088 sub sp, #32 - 8016c24: af02 add r7, sp, #8 - 8016c26: 60f8 str r0, [r7, #12] - 8016c28: 60b9 str r1, [r7, #8] - 8016c2a: 607a str r2, [r7, #4] - 8016c2c: 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); - 8016c2e: 68fb ldr r3, [r7, #12] - 8016c30: 2b00 cmp r3, #0 - 8016c32: d108 bne.n 8016c46 - 8016c34: 4b96 ldr r3, [pc, #600] ; (8016e90 ) - 8016c36: f240 1227 movw r2, #295 ; 0x127 - 8016c3a: 4996 ldr r1, [pc, #600] ; (8016e94 ) - 8016c3c: 4896 ldr r0, [pc, #600] ; (8016e98 ) - 8016c3e: f00a fea3 bl 8021988 - 8016c42: 2300 movs r3, #0 - 8016c44: e14c b.n 8016ee0 - LWIP_ERROR("netif_add: No init function given", init != NULL, return NULL); - 8016c46: 6a7b ldr r3, [r7, #36] ; 0x24 - 8016c48: 2b00 cmp r3, #0 - 8016c4a: d108 bne.n 8016c5e - 8016c4c: 4b90 ldr r3, [pc, #576] ; (8016e90 ) - 8016c4e: f44f 7294 mov.w r2, #296 ; 0x128 - 8016c52: 4992 ldr r1, [pc, #584] ; (8016e9c ) - 8016c54: 4890 ldr r0, [pc, #576] ; (8016e98 ) - 8016c56: f00a fe97 bl 8021988 - 8016c5a: 2300 movs r3, #0 - 8016c5c: e140 b.n 8016ee0 - -#if LWIP_IPV4 - if (ipaddr == NULL) { - 8016c5e: 68bb ldr r3, [r7, #8] - 8016c60: 2b00 cmp r3, #0 - 8016c62: d101 bne.n 8016c68 - ipaddr = ip_2_ip4(IP4_ADDR_ANY); - 8016c64: 4b8e ldr r3, [pc, #568] ; (8016ea0 ) - 8016c66: 60bb str r3, [r7, #8] - } - if (netmask == NULL) { - 8016c68: 687b ldr r3, [r7, #4] - 8016c6a: 2b00 cmp r3, #0 - 8016c6c: d101 bne.n 8016c72 - netmask = ip_2_ip4(IP4_ADDR_ANY); - 8016c6e: 4b8c ldr r3, [pc, #560] ; (8016ea0 ) - 8016c70: 607b str r3, [r7, #4] - } - if (gw == NULL) { - 8016c72: 683b ldr r3, [r7, #0] - 8016c74: 2b00 cmp r3, #0 - 8016c76: d101 bne.n 8016c7c - gw = ip_2_ip4(IP4_ADDR_ANY); - 8016c78: 4b89 ldr r3, [pc, #548] ; (8016ea0 ) - 8016c7a: 603b str r3, [r7, #0] - } - - /* reset new interface configuration state */ - ip_addr_set_zero_ip4(&netif->ip_addr); - 8016c7c: 68fb ldr r3, [r7, #12] - 8016c7e: 2200 movs r2, #0 - 8016c80: 605a str r2, [r3, #4] - ip_addr_set_zero_ip4(&netif->netmask); - 8016c82: 68fb ldr r3, [r7, #12] - 8016c84: 2200 movs r2, #0 - 8016c86: 609a str r2, [r3, #8] - ip_addr_set_zero_ip4(&netif->gw); - 8016c88: 68fb ldr r3, [r7, #12] - 8016c8a: 2200 movs r2, #0 - 8016c8c: 60da str r2, [r3, #12] - netif->output = netif_null_output_ip4; - 8016c8e: 68fb ldr r3, [r7, #12] - 8016c90: 4a84 ldr r2, [pc, #528] ; (8016ea4 ) - 8016c92: 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; - 8016c94: 68fb ldr r3, [r7, #12] - 8016c96: 2200 movs r2, #0 - 8016c98: 849a strh r2, [r3, #36] ; 0x24 - netif->flags = 0; - 8016c9a: 68fb ldr r3, [r7, #12] - 8016c9c: 2200 movs r2, #0 - 8016c9e: f883 202d strb.w r2, [r3, #45] ; 0x2d -#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; - 8016ca2: 68fb ldr r3, [r7, #12] - 8016ca4: 2200 movs r2, #0 - 8016ca6: 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; - 8016ca8: 68fb ldr r3, [r7, #12] - 8016caa: 6a3a ldr r2, [r7, #32] - 8016cac: 621a str r2, [r3, #32] - netif->num = netif_num; - 8016cae: 4b7e ldr r3, [pc, #504] ; (8016ea8 ) - 8016cb0: 781a ldrb r2, [r3, #0] - 8016cb2: 68fb ldr r3, [r7, #12] - 8016cb4: f883 2030 strb.w r2, [r3, #48] ; 0x30 - netif->input = input; - 8016cb8: 68fb ldr r3, [r7, #12] - 8016cba: 6aba ldr r2, [r7, #40] ; 0x28 - 8016cbc: 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); - 8016cbe: 683b ldr r3, [r7, #0] - 8016cc0: 687a ldr r2, [r7, #4] - 8016cc2: 68b9 ldr r1, [r7, #8] - 8016cc4: 68f8 ldr r0, [r7, #12] - 8016cc6: f000 f9f5 bl 80170b4 -#endif /* LWIP_IPV4 */ - - /* call user specified initialization function for netif */ - if (init(netif) != ERR_OK) { - 8016cca: 6a7b ldr r3, [r7, #36] ; 0x24 - 8016ccc: 68f8 ldr r0, [r7, #12] - 8016cce: 4798 blx r3 - 8016cd0: 4603 mov r3, r0 - 8016cd2: 2b00 cmp r3, #0 - 8016cd4: d001 beq.n 8016cda - return NULL; - 8016cd6: 2300 movs r3, #0 - 8016cd8: e102 b.n 8016ee0 - */ - { - struct netif *netif2; - int num_netifs; - do { - if (netif->num == 255) { - 8016cda: 68fb ldr r3, [r7, #12] - 8016cdc: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 - 8016ce0: 2bff cmp r3, #255 ; 0xff - 8016ce2: d103 bne.n 8016cec - netif->num = 0; - 8016ce4: 68fb ldr r3, [r7, #12] - 8016ce6: 2200 movs r2, #0 - 8016ce8: f883 2030 strb.w r2, [r3, #48] ; 0x30 - } - num_netifs = 0; - 8016cec: 2300 movs r3, #0 - 8016cee: 613b str r3, [r7, #16] - for (netif2 = netif_list; netif2 != NULL; netif2 = netif2->next) { - 8016cf0: 4b6e ldr r3, [pc, #440] ; (8016eac ) - 8016cf2: 681b ldr r3, [r3, #0] - 8016cf4: 617b str r3, [r7, #20] - 8016cf6: e02b b.n 8016d50 - LWIP_ASSERT("netif already added", netif2 != netif); - 8016cf8: 697a ldr r2, [r7, #20] - 8016cfa: 68fb ldr r3, [r7, #12] - 8016cfc: 429a cmp r2, r3 - 8016cfe: d106 bne.n 8016d0e - 8016d00: 4b63 ldr r3, [pc, #396] ; (8016e90 ) - 8016d02: f240 128b movw r2, #395 ; 0x18b - 8016d06: 496a ldr r1, [pc, #424] ; (8016eb0 ) - 8016d08: 4863 ldr r0, [pc, #396] ; (8016e98 ) - 8016d0a: f00a fe3d bl 8021988 - num_netifs++; - 8016d0e: 693b ldr r3, [r7, #16] - 8016d10: 3301 adds r3, #1 - 8016d12: 613b str r3, [r7, #16] - LWIP_ASSERT("too many netifs, max. supported number is 255", num_netifs <= 255); - 8016d14: 693b ldr r3, [r7, #16] - 8016d16: 2bff cmp r3, #255 ; 0xff - 8016d18: dd06 ble.n 8016d28 - 8016d1a: 4b5d ldr r3, [pc, #372] ; (8016e90 ) - 8016d1c: f240 128d movw r2, #397 ; 0x18d - 8016d20: 4964 ldr r1, [pc, #400] ; (8016eb4 ) - 8016d22: 485d ldr r0, [pc, #372] ; (8016e98 ) - 8016d24: f00a fe30 bl 8021988 - if (netif2->num == netif->num) { - 8016d28: 697b ldr r3, [r7, #20] - 8016d2a: f893 2030 ldrb.w r2, [r3, #48] ; 0x30 - 8016d2e: 68fb ldr r3, [r7, #12] - 8016d30: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 - 8016d34: 429a cmp r2, r3 - 8016d36: d108 bne.n 8016d4a - netif->num++; - 8016d38: 68fb ldr r3, [r7, #12] - 8016d3a: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 - 8016d3e: 3301 adds r3, #1 - 8016d40: b2da uxtb r2, r3 - 8016d42: 68fb ldr r3, [r7, #12] - 8016d44: f883 2030 strb.w r2, [r3, #48] ; 0x30 - break; - 8016d48: e005 b.n 8016d56 - for (netif2 = netif_list; netif2 != NULL; netif2 = netif2->next) { - 8016d4a: 697b ldr r3, [r7, #20] - 8016d4c: 681b ldr r3, [r3, #0] - 8016d4e: 617b str r3, [r7, #20] - 8016d50: 697b ldr r3, [r7, #20] - 8016d52: 2b00 cmp r3, #0 - 8016d54: d1d0 bne.n 8016cf8 - } - } - } while (netif2 != NULL); - 8016d56: 697b ldr r3, [r7, #20] - 8016d58: 2b00 cmp r3, #0 - 8016d5a: d1be bne.n 8016cda - } - if (netif->num == 254) { - 8016d5c: 68fb ldr r3, [r7, #12] - 8016d5e: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 - 8016d62: 2bfe cmp r3, #254 ; 0xfe - 8016d64: d103 bne.n 8016d6e - netif_num = 0; - 8016d66: 4b50 ldr r3, [pc, #320] ; (8016ea8 ) - 8016d68: 2200 movs r2, #0 - 8016d6a: 701a strb r2, [r3, #0] - 8016d6c: e006 b.n 8016d7c - } else { - netif_num = (u8_t)(netif->num + 1); - 8016d6e: 68fb ldr r3, [r7, #12] - 8016d70: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 - 8016d74: 3301 adds r3, #1 - 8016d76: b2da uxtb r2, r3 - 8016d78: 4b4b ldr r3, [pc, #300] ; (8016ea8 ) - 8016d7a: 701a strb r2, [r3, #0] - } - - /* add this netif to the list */ - netif->next = netif_list; - 8016d7c: 4b4b ldr r3, [pc, #300] ; (8016eac ) - 8016d7e: 681a ldr r2, [r3, #0] - 8016d80: 68fb ldr r3, [r7, #12] - 8016d82: 601a str r2, [r3, #0] - netif_list = netif; - 8016d84: 4a49 ldr r2, [pc, #292] ; (8016eac ) - 8016d86: 68fb ldr r3, [r7, #12] - 8016d88: 6013 str r3, [r2, #0] - if (netif->flags & NETIF_FLAG_IGMP) { - igmp_start(netif); - } -#endif /* LWIP_IGMP */ - - LWIP_DEBUGF(NETIF_DEBUG, ("netif: added interface %c%c IP", - 8016d8a: 68fb ldr r3, [r7, #12] - 8016d8c: f893 302e ldrb.w r3, [r3, #46] ; 0x2e - 8016d90: 4619 mov r1, r3 - 8016d92: 68fb ldr r3, [r7, #12] - 8016d94: f893 302f ldrb.w r3, [r3, #47] ; 0x2f - 8016d98: 461a mov r2, r3 - 8016d9a: 4847 ldr r0, [pc, #284] ; (8016eb8 ) - 8016d9c: f00a fdf4 bl 8021988 - netif->name[0], netif->name[1])); -#if LWIP_IPV4 - LWIP_DEBUGF(NETIF_DEBUG, (" addr ")); - 8016da0: 4846 ldr r0, [pc, #280] ; (8016ebc ) - 8016da2: f00a fdf1 bl 8021988 - ip4_addr_debug_print(NETIF_DEBUG, ipaddr); - 8016da6: 68bb ldr r3, [r7, #8] - 8016da8: 2b00 cmp r3, #0 - 8016daa: d003 beq.n 8016db4 - 8016dac: 68bb ldr r3, [r7, #8] - 8016dae: 781b ldrb r3, [r3, #0] - 8016db0: 4619 mov r1, r3 - 8016db2: e000 b.n 8016db6 - 8016db4: 2100 movs r1, #0 - 8016db6: 68bb ldr r3, [r7, #8] - 8016db8: 2b00 cmp r3, #0 - 8016dba: d004 beq.n 8016dc6 - 8016dbc: 68bb ldr r3, [r7, #8] - 8016dbe: 3301 adds r3, #1 - 8016dc0: 781b ldrb r3, [r3, #0] - 8016dc2: 461a mov r2, r3 - 8016dc4: e000 b.n 8016dc8 - 8016dc6: 2200 movs r2, #0 - 8016dc8: 68bb ldr r3, [r7, #8] - 8016dca: 2b00 cmp r3, #0 - 8016dcc: d004 beq.n 8016dd8 - 8016dce: 68bb ldr r3, [r7, #8] - 8016dd0: 3302 adds r3, #2 - 8016dd2: 781b ldrb r3, [r3, #0] - 8016dd4: 4618 mov r0, r3 - 8016dd6: e000 b.n 8016dda - 8016dd8: 2000 movs r0, #0 - 8016dda: 68bb ldr r3, [r7, #8] - 8016ddc: 2b00 cmp r3, #0 - 8016dde: d003 beq.n 8016de8 - 8016de0: 68bb ldr r3, [r7, #8] - 8016de2: 3303 adds r3, #3 - 8016de4: 781b ldrb r3, [r3, #0] - 8016de6: e000 b.n 8016dea - 8016de8: 2300 movs r3, #0 - 8016dea: 9300 str r3, [sp, #0] - 8016dec: 4603 mov r3, r0 - 8016dee: 4834 ldr r0, [pc, #208] ; (8016ec0 ) - 8016df0: f00a fdca bl 8021988 - LWIP_DEBUGF(NETIF_DEBUG, (" netmask ")); - 8016df4: 4833 ldr r0, [pc, #204] ; (8016ec4 ) - 8016df6: f00a fdc7 bl 8021988 - ip4_addr_debug_print(NETIF_DEBUG, netmask); - 8016dfa: 687b ldr r3, [r7, #4] - 8016dfc: 2b00 cmp r3, #0 - 8016dfe: d003 beq.n 8016e08 - 8016e00: 687b ldr r3, [r7, #4] - 8016e02: 781b ldrb r3, [r3, #0] - 8016e04: 4619 mov r1, r3 - 8016e06: e000 b.n 8016e0a - 8016e08: 2100 movs r1, #0 - 8016e0a: 687b ldr r3, [r7, #4] - 8016e0c: 2b00 cmp r3, #0 - 8016e0e: d004 beq.n 8016e1a - 8016e10: 687b ldr r3, [r7, #4] - 8016e12: 3301 adds r3, #1 - 8016e14: 781b ldrb r3, [r3, #0] - 8016e16: 461a mov r2, r3 - 8016e18: e000 b.n 8016e1c - 8016e1a: 2200 movs r2, #0 - 8016e1c: 687b ldr r3, [r7, #4] - 8016e1e: 2b00 cmp r3, #0 - 8016e20: d004 beq.n 8016e2c - 8016e22: 687b ldr r3, [r7, #4] - 8016e24: 3302 adds r3, #2 - 8016e26: 781b ldrb r3, [r3, #0] - 8016e28: 4618 mov r0, r3 - 8016e2a: e000 b.n 8016e2e - 8016e2c: 2000 movs r0, #0 - 8016e2e: 687b ldr r3, [r7, #4] - 8016e30: 2b00 cmp r3, #0 - 8016e32: d003 beq.n 8016e3c - 8016e34: 687b ldr r3, [r7, #4] - 8016e36: 3303 adds r3, #3 - 8016e38: 781b ldrb r3, [r3, #0] - 8016e3a: e000 b.n 8016e3e - 8016e3c: 2300 movs r3, #0 - 8016e3e: 9300 str r3, [sp, #0] - 8016e40: 4603 mov r3, r0 - 8016e42: 481f ldr r0, [pc, #124] ; (8016ec0 ) - 8016e44: f00a fda0 bl 8021988 - LWIP_DEBUGF(NETIF_DEBUG, (" gw ")); - 8016e48: 481f ldr r0, [pc, #124] ; (8016ec8 ) - 8016e4a: f00a fd9d bl 8021988 - ip4_addr_debug_print(NETIF_DEBUG, gw); - 8016e4e: 683b ldr r3, [r7, #0] - 8016e50: 2b00 cmp r3, #0 - 8016e52: d003 beq.n 8016e5c - 8016e54: 683b ldr r3, [r7, #0] - 8016e56: 781b ldrb r3, [r3, #0] - 8016e58: 4619 mov r1, r3 - 8016e5a: e000 b.n 8016e5e - 8016e5c: 2100 movs r1, #0 - 8016e5e: 683b ldr r3, [r7, #0] - 8016e60: 2b00 cmp r3, #0 - 8016e62: d004 beq.n 8016e6e - 8016e64: 683b ldr r3, [r7, #0] - 8016e66: 3301 adds r3, #1 - 8016e68: 781b ldrb r3, [r3, #0] - 8016e6a: 461a mov r2, r3 - 8016e6c: e000 b.n 8016e70 - 8016e6e: 2200 movs r2, #0 - 8016e70: 683b ldr r3, [r7, #0] - 8016e72: 2b00 cmp r3, #0 - 8016e74: d004 beq.n 8016e80 - 8016e76: 683b ldr r3, [r7, #0] - 8016e78: 3302 adds r3, #2 - 8016e7a: 781b ldrb r3, [r3, #0] - 8016e7c: 4618 mov r0, r3 - 8016e7e: e000 b.n 8016e82 - 8016e80: 2000 movs r0, #0 - 8016e82: 683b ldr r3, [r7, #0] - 8016e84: 2b00 cmp r3, #0 - 8016e86: d021 beq.n 8016ecc - 8016e88: 683b ldr r3, [r7, #0] - 8016e8a: 3303 adds r3, #3 - 8016e8c: 781b ldrb r3, [r3, #0] - 8016e8e: e01e b.n 8016ece - 8016e90: 08024308 .word 0x08024308 - 8016e94: 0802439c .word 0x0802439c - 8016e98: 08024358 .word 0x08024358 - 8016e9c: 080243b8 .word 0x080243b8 - 8016ea0: 08026cec .word 0x08026cec - 8016ea4: 080173b7 .word 0x080173b7 - 8016ea8: 2401a47c .word 0x2401a47c - 8016eac: 2401a474 .word 0x2401a474 - 8016eb0: 080243dc .word 0x080243dc - 8016eb4: 080243f0 .word 0x080243f0 - 8016eb8: 08024420 .word 0x08024420 - 8016ebc: 08024440 .word 0x08024440 - 8016ec0: 08024448 .word 0x08024448 - 8016ec4: 08024458 .word 0x08024458 - 8016ec8: 08024464 .word 0x08024464 - 8016ecc: 2300 movs r3, #0 - 8016ece: 9300 str r3, [sp, #0] - 8016ed0: 4603 mov r3, r0 - 8016ed2: 4805 ldr r0, [pc, #20] ; (8016ee8 ) - 8016ed4: f00a fd58 bl 8021988 -#endif /* LWIP_IPV4 */ - LWIP_DEBUGF(NETIF_DEBUG, ("\n")); - 8016ed8: 200a movs r0, #10 - 8016eda: f00a fd67 bl 80219ac - - netif_invoke_ext_callback(netif, LWIP_NSC_NETIF_ADDED, NULL); - - return netif; - 8016ede: 68fb ldr r3, [r7, #12] -} - 8016ee0: 4618 mov r0, r3 - 8016ee2: 3718 adds r7, #24 - 8016ee4: 46bd mov sp, r7 - 8016ee6: bd80 pop {r7, pc} - 8016ee8: 08024448 .word 0x08024448 - -08016eec : - -static void -netif_do_ip_addr_changed(const ip_addr_t *old_addr, const ip_addr_t *new_addr) -{ - 8016eec: b580 push {r7, lr} - 8016eee: b082 sub sp, #8 - 8016ef0: af00 add r7, sp, #0 - 8016ef2: 6078 str r0, [r7, #4] - 8016ef4: 6039 str r1, [r7, #0] -#if LWIP_TCP - tcp_netif_ip_addr_changed(old_addr, new_addr); - 8016ef6: 6839 ldr r1, [r7, #0] - 8016ef8: 6878 ldr r0, [r7, #4] - 8016efa: f002 ff09 bl 8019d10 -#endif /* LWIP_TCP */ -#if LWIP_UDP - udp_netif_ip_addr_changed(old_addr, new_addr); - 8016efe: 6839 ldr r1, [r7, #0] - 8016f00: 6878 ldr r0, [r7, #4] - 8016f02: f007 fe95 bl 801ec30 -#endif /* LWIP_UDP */ -#if LWIP_RAW - raw_netif_ip_addr_changed(old_addr, new_addr); -#endif /* LWIP_RAW */ -} - 8016f06: bf00 nop - 8016f08: 3708 adds r7, #8 - 8016f0a: 46bd mov sp, r7 - 8016f0c: bd80 pop {r7, pc} - ... - -08016f10 : - -#if LWIP_IPV4 -static int -netif_do_set_ipaddr(struct netif *netif, const ip4_addr_t *ipaddr, ip_addr_t *old_addr) -{ - 8016f10: b580 push {r7, lr} - 8016f12: b086 sub sp, #24 - 8016f14: af00 add r7, sp, #0 - 8016f16: 60f8 str r0, [r7, #12] - 8016f18: 60b9 str r1, [r7, #8] - 8016f1a: 607a str r2, [r7, #4] - LWIP_ASSERT("invalid pointer", ipaddr != NULL); - 8016f1c: 68bb ldr r3, [r7, #8] - 8016f1e: 2b00 cmp r3, #0 - 8016f20: d106 bne.n 8016f30 - 8016f22: 4b1e ldr r3, [pc, #120] ; (8016f9c ) - 8016f24: f240 12cb movw r2, #459 ; 0x1cb - 8016f28: 491d ldr r1, [pc, #116] ; (8016fa0 ) - 8016f2a: 481e ldr r0, [pc, #120] ; (8016fa4 ) - 8016f2c: f00a fd2c bl 8021988 - LWIP_ASSERT("invalid pointer", old_addr != NULL); - 8016f30: 687b ldr r3, [r7, #4] - 8016f32: 2b00 cmp r3, #0 - 8016f34: d106 bne.n 8016f44 - 8016f36: 4b19 ldr r3, [pc, #100] ; (8016f9c ) - 8016f38: f44f 72e6 mov.w r2, #460 ; 0x1cc - 8016f3c: 4918 ldr r1, [pc, #96] ; (8016fa0 ) - 8016f3e: 4819 ldr r0, [pc, #100] ; (8016fa4 ) - 8016f40: f00a fd22 bl 8021988 - - /* address is actually being changed? */ - if (ip4_addr_cmp(ipaddr, netif_ip4_addr(netif)) == 0) { - 8016f44: 68bb ldr r3, [r7, #8] - 8016f46: 681a ldr r2, [r3, #0] - 8016f48: 68fb ldr r3, [r7, #12] - 8016f4a: 3304 adds r3, #4 - 8016f4c: 681b ldr r3, [r3, #0] - 8016f4e: 429a cmp r2, r3 - 8016f50: d01f beq.n 8016f92 - ip_addr_t new_addr; - *ip_2_ip4(&new_addr) = *ipaddr; - 8016f52: 68bb ldr r3, [r7, #8] - 8016f54: 681b ldr r3, [r3, #0] - 8016f56: 617b str r3, [r7, #20] - IP_SET_TYPE_VAL(new_addr, IPADDR_TYPE_V4); - - ip_addr_copy(*old_addr, *netif_ip_addr4(netif)); - 8016f58: 68fb ldr r3, [r7, #12] - 8016f5a: 3304 adds r3, #4 - 8016f5c: 681a ldr r2, [r3, #0] - 8016f5e: 687b ldr r3, [r7, #4] - 8016f60: 601a str r2, [r3, #0] - - LWIP_DEBUGF(NETIF_DEBUG | LWIP_DBG_STATE, ("netif_set_ipaddr: netif address being changed\n")); - 8016f62: 4811 ldr r0, [pc, #68] ; (8016fa8 ) - 8016f64: f00a fd7e bl 8021a64 - netif_do_ip_addr_changed(old_addr, &new_addr); - 8016f68: f107 0314 add.w r3, r7, #20 - 8016f6c: 4619 mov r1, r3 - 8016f6e: 6878 ldr r0, [r7, #4] - 8016f70: f7ff ffbc bl 8016eec - - 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); - 8016f74: 68bb ldr r3, [r7, #8] - 8016f76: 2b00 cmp r3, #0 - 8016f78: d002 beq.n 8016f80 - 8016f7a: 68bb ldr r3, [r7, #8] - 8016f7c: 681b ldr r3, [r3, #0] - 8016f7e: e000 b.n 8016f82 - 8016f80: 2300 movs r3, #0 - 8016f82: 68fa ldr r2, [r7, #12] - 8016f84: 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); - 8016f86: 2101 movs r1, #1 - 8016f88: 68f8 ldr r0, [r7, #12] - 8016f8a: f000 f92d bl 80171e8 - - NETIF_STATUS_CALLBACK(netif); - return 1; /* address changed */ - 8016f8e: 2301 movs r3, #1 - 8016f90: e000 b.n 8016f94 - } - return 0; /* address unchanged */ - 8016f92: 2300 movs r3, #0 -} - 8016f94: 4618 mov r0, r3 - 8016f96: 3718 adds r7, #24 - 8016f98: 46bd mov sp, r7 - 8016f9a: bd80 pop {r7, pc} - 8016f9c: 08024308 .word 0x08024308 - 8016fa0: 0802446c .word 0x0802446c - 8016fa4: 08024358 .word 0x08024358 - 8016fa8: 0802447c .word 0x0802447c - -08016fac : - } -} - -static int -netif_do_set_netmask(struct netif *netif, const ip4_addr_t *netmask, ip_addr_t *old_nm) -{ - 8016fac: b5b0 push {r4, r5, r7, lr} - 8016fae: b088 sub sp, #32 - 8016fb0: af04 add r7, sp, #16 - 8016fb2: 60f8 str r0, [r7, #12] - 8016fb4: 60b9 str r1, [r7, #8] - 8016fb6: 607a str r2, [r7, #4] - /* address is actually being changed? */ - if (ip4_addr_cmp(netmask, netif_ip4_netmask(netif)) == 0) { - 8016fb8: 68bb ldr r3, [r7, #8] - 8016fba: 681a ldr r2, [r3, #0] - 8016fbc: 68fb ldr r3, [r7, #12] - 8016fbe: 3308 adds r3, #8 - 8016fc0: 681b ldr r3, [r3, #0] - 8016fc2: 429a cmp r2, r3 - 8016fc4: d02d beq.n 8017022 -#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); - 8016fc6: 68bb ldr r3, [r7, #8] - 8016fc8: 2b00 cmp r3, #0 - 8016fca: d002 beq.n 8016fd2 - 8016fcc: 68bb ldr r3, [r7, #8] - 8016fce: 681b ldr r3, [r3, #0] - 8016fd0: e000 b.n 8016fd4 - 8016fd2: 2300 movs r3, #0 - 8016fd4: 68fa ldr r2, [r7, #12] - 8016fd6: 6093 str r3, [r2, #8] - IP_SET_TYPE_VAL(netif->netmask, IPADDR_TYPE_V4); - mib2_add_route_ip4(0, netif); - LWIP_DEBUGF(NETIF_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("netif: netmask of interface %c%c set to %"U16_F".%"U16_F".%"U16_F".%"U16_F"\n", - 8016fd8: 68fb ldr r3, [r7, #12] - 8016fda: f893 302e ldrb.w r3, [r3, #46] ; 0x2e - 8016fde: 4618 mov r0, r3 - 8016fe0: 68fb ldr r3, [r7, #12] - 8016fe2: f893 302f ldrb.w r3, [r3, #47] ; 0x2f - 8016fe6: 461c mov r4, r3 - 8016fe8: 68fb ldr r3, [r7, #12] - 8016fea: 3308 adds r3, #8 - 8016fec: 781b ldrb r3, [r3, #0] - 8016fee: 461d mov r5, r3 - 8016ff0: 68fb ldr r3, [r7, #12] - 8016ff2: 3308 adds r3, #8 - 8016ff4: 3301 adds r3, #1 - 8016ff6: 781b ldrb r3, [r3, #0] - 8016ff8: 461a mov r2, r3 - 8016ffa: 68fb ldr r3, [r7, #12] - 8016ffc: 3308 adds r3, #8 - 8016ffe: 3302 adds r3, #2 - 8017000: 781b ldrb r3, [r3, #0] - 8017002: 4619 mov r1, r3 - 8017004: 68fb ldr r3, [r7, #12] - 8017006: 3308 adds r3, #8 - 8017008: 3303 adds r3, #3 - 801700a: 781b ldrb r3, [r3, #0] - 801700c: 9302 str r3, [sp, #8] - 801700e: 9101 str r1, [sp, #4] - 8017010: 9200 str r2, [sp, #0] - 8017012: 462b mov r3, r5 - 8017014: 4622 mov r2, r4 - 8017016: 4601 mov r1, r0 - 8017018: 4804 ldr r0, [pc, #16] ; (801702c ) - 801701a: f00a fcb5 bl 8021988 - 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 */ - 801701e: 2301 movs r3, #1 - 8017020: e000 b.n 8017024 - } - return 0; /* netmask unchanged */ - 8017022: 2300 movs r3, #0 -} - 8017024: 4618 mov r0, r3 - 8017026: 3710 adds r7, #16 - 8017028: 46bd mov sp, r7 - 801702a: bdb0 pop {r4, r5, r7, pc} - 801702c: 080244cc .word 0x080244cc - -08017030 : - } -} - -static int -netif_do_set_gw(struct netif *netif, const ip4_addr_t *gw, ip_addr_t *old_gw) -{ - 8017030: b5b0 push {r4, r5, r7, lr} - 8017032: b088 sub sp, #32 - 8017034: af04 add r7, sp, #16 - 8017036: 60f8 str r0, [r7, #12] - 8017038: 60b9 str r1, [r7, #8] - 801703a: 607a str r2, [r7, #4] - /* address is actually being changed? */ - if (ip4_addr_cmp(gw, netif_ip4_gw(netif)) == 0) { - 801703c: 68bb ldr r3, [r7, #8] - 801703e: 681a ldr r2, [r3, #0] - 8017040: 68fb ldr r3, [r7, #12] - 8017042: 330c adds r3, #12 - 8017044: 681b ldr r3, [r3, #0] - 8017046: 429a cmp r2, r3 - 8017048: d02d beq.n 80170a6 - 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); - 801704a: 68bb ldr r3, [r7, #8] - 801704c: 2b00 cmp r3, #0 - 801704e: d002 beq.n 8017056 - 8017050: 68bb ldr r3, [r7, #8] - 8017052: 681b ldr r3, [r3, #0] - 8017054: e000 b.n 8017058 - 8017056: 2300 movs r3, #0 - 8017058: 68fa ldr r2, [r7, #12] - 801705a: 60d3 str r3, [r2, #12] - IP_SET_TYPE_VAL(netif->gw, IPADDR_TYPE_V4); - LWIP_DEBUGF(NETIF_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("netif: GW address of interface %c%c set to %"U16_F".%"U16_F".%"U16_F".%"U16_F"\n", - 801705c: 68fb ldr r3, [r7, #12] - 801705e: f893 302e ldrb.w r3, [r3, #46] ; 0x2e - 8017062: 4618 mov r0, r3 - 8017064: 68fb ldr r3, [r7, #12] - 8017066: f893 302f ldrb.w r3, [r3, #47] ; 0x2f - 801706a: 461c mov r4, r3 - 801706c: 68fb ldr r3, [r7, #12] - 801706e: 330c adds r3, #12 - 8017070: 781b ldrb r3, [r3, #0] - 8017072: 461d mov r5, r3 - 8017074: 68fb ldr r3, [r7, #12] - 8017076: 330c adds r3, #12 - 8017078: 3301 adds r3, #1 - 801707a: 781b ldrb r3, [r3, #0] - 801707c: 461a mov r2, r3 - 801707e: 68fb ldr r3, [r7, #12] - 8017080: 330c adds r3, #12 - 8017082: 3302 adds r3, #2 - 8017084: 781b ldrb r3, [r3, #0] - 8017086: 4619 mov r1, r3 - 8017088: 68fb ldr r3, [r7, #12] - 801708a: 330c adds r3, #12 - 801708c: 3303 adds r3, #3 - 801708e: 781b ldrb r3, [r3, #0] - 8017090: 9302 str r3, [sp, #8] - 8017092: 9101 str r1, [sp, #4] - 8017094: 9200 str r2, [sp, #0] - 8017096: 462b mov r3, r5 - 8017098: 4622 mov r2, r4 - 801709a: 4601 mov r1, r0 - 801709c: 4804 ldr r0, [pc, #16] ; (80170b0 ) - 801709e: f00a fc73 bl 8021988 - 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 */ - 80170a2: 2301 movs r3, #1 - 80170a4: e000 b.n 80170a8 - } - return 0; /* gateway unchanged */ - 80170a6: 2300 movs r3, #0 -} - 80170a8: 4618 mov r0, r3 - 80170aa: 3710 adds r7, #16 - 80170ac: 46bd mov sp, r7 - 80170ae: bdb0 pop {r4, r5, r7, pc} - 80170b0: 0802452c .word 0x0802452c - -080170b4 : - * @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) -{ - 80170b4: b580 push {r7, lr} - 80170b6: b088 sub sp, #32 - 80170b8: af00 add r7, sp, #0 - 80170ba: 60f8 str r0, [r7, #12] - 80170bc: 60b9 str r1, [r7, #8] - 80170be: 607a str r2, [r7, #4] - 80170c0: 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; - 80170c2: 2300 movs r3, #0 - 80170c4: 61fb str r3, [r7, #28] - ip_addr_t *old_gw = NULL; - 80170c6: 2300 movs r3, #0 - 80170c8: 61bb str r3, [r7, #24] - int remove; - - LWIP_ASSERT_CORE_LOCKED(); - - /* Don't propagate NULL pointer (IPv4 ANY) to subsequent functions */ - if (ipaddr == NULL) { - 80170ca: 68bb ldr r3, [r7, #8] - 80170cc: 2b00 cmp r3, #0 - 80170ce: d101 bne.n 80170d4 - ipaddr = IP4_ADDR_ANY4; - 80170d0: 4b1c ldr r3, [pc, #112] ; (8017144 ) - 80170d2: 60bb str r3, [r7, #8] - } - if (netmask == NULL) { - 80170d4: 687b ldr r3, [r7, #4] - 80170d6: 2b00 cmp r3, #0 - 80170d8: d101 bne.n 80170de - netmask = IP4_ADDR_ANY4; - 80170da: 4b1a ldr r3, [pc, #104] ; (8017144 ) - 80170dc: 607b str r3, [r7, #4] - } - if (gw == NULL) { - 80170de: 683b ldr r3, [r7, #0] - 80170e0: 2b00 cmp r3, #0 - 80170e2: d101 bne.n 80170e8 - gw = IP4_ADDR_ANY4; - 80170e4: 4b17 ldr r3, [pc, #92] ; (8017144 ) - 80170e6: 603b str r3, [r7, #0] - } - - remove = ip4_addr_isany(ipaddr); - 80170e8: 68bb ldr r3, [r7, #8] - 80170ea: 2b00 cmp r3, #0 - 80170ec: d003 beq.n 80170f6 - 80170ee: 68bb ldr r3, [r7, #8] - 80170f0: 681b ldr r3, [r3, #0] - 80170f2: 2b00 cmp r3, #0 - 80170f4: d101 bne.n 80170fa - 80170f6: 2301 movs r3, #1 - 80170f8: e000 b.n 80170fc - 80170fa: 2300 movs r3, #0 - 80170fc: 617b str r3, [r7, #20] - if (remove) { - 80170fe: 697b ldr r3, [r7, #20] - 8017100: 2b00 cmp r3, #0 - 8017102: d006 beq.n 8017112 - /* 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)) { - 8017104: f107 0310 add.w r3, r7, #16 - 8017108: 461a mov r2, r3 - 801710a: 68b9 ldr r1, [r7, #8] - 801710c: 68f8 ldr r0, [r7, #12] - 801710e: f7ff feff bl 8016f10 - 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)) { - 8017112: 69fa ldr r2, [r7, #28] - 8017114: 6879 ldr r1, [r7, #4] - 8017116: 68f8 ldr r0, [r7, #12] - 8017118: f7ff ff48 bl 8016fac -#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)) { - 801711c: 69ba ldr r2, [r7, #24] - 801711e: 6839 ldr r1, [r7, #0] - 8017120: 68f8 ldr r0, [r7, #12] - 8017122: f7ff ff85 bl 8017030 -#if LWIP_NETIF_EXT_STATUS_CALLBACK - change_reason |= LWIP_NSC_IPV4_GATEWAY_CHANGED; - cb_args.ipv4_changed.old_gw = old_gw; -#endif - } - if (!remove) { - 8017126: 697b ldr r3, [r7, #20] - 8017128: 2b00 cmp r3, #0 - 801712a: d106 bne.n 801713a - /* set ipaddr last to ensure netmask/gw have been set when status callback is called */ - if (netif_do_set_ipaddr(netif, ipaddr, &old_addr)) { - 801712c: f107 0310 add.w r3, r7, #16 - 8017130: 461a mov r2, r3 - 8017132: 68b9 ldr r1, [r7, #8] - 8017134: 68f8 ldr r0, [r7, #12] - 8017136: f7ff feeb bl 8016f10 - if (change_reason != LWIP_NSC_NONE) { - change_reason |= LWIP_NSC_IPV4_SETTINGS_CHANGED; - netif_invoke_ext_callback(netif, change_reason, &cb_args); - } -#endif -} - 801713a: bf00 nop - 801713c: 3720 adds r7, #32 - 801713e: 46bd mov sp, r7 - 8017140: bd80 pop {r7, pc} - 8017142: bf00 nop - 8017144: 08026cec .word 0x08026cec - -08017148 : - * - * @param netif the default network interface - */ -void -netif_set_default(struct netif *netif) -{ - 8017148: b580 push {r7, lr} - 801714a: b082 sub sp, #8 - 801714c: af00 add r7, sp, #0 - 801714e: 6078 str r0, [r7, #4] - mib2_remove_route_ip4(1, netif); - } else { - /* install default route */ - mib2_add_route_ip4(1, netif); - } - netif_default = netif; - 8017150: 4a0d ldr r2, [pc, #52] ; (8017188 ) - 8017152: 687b ldr r3, [r7, #4] - 8017154: 6013 str r3, [r2, #0] - LWIP_DEBUGF(NETIF_DEBUG, ("netif: setting default interface %c%c\n", - 8017156: 687b ldr r3, [r7, #4] - 8017158: 2b00 cmp r3, #0 - 801715a: d004 beq.n 8017166 - 801715c: 687b ldr r3, [r7, #4] - 801715e: f893 302e ldrb.w r3, [r3, #46] ; 0x2e - 8017162: 4619 mov r1, r3 - 8017164: e000 b.n 8017168 - 8017166: 2127 movs r1, #39 ; 0x27 - 8017168: 687b ldr r3, [r7, #4] - 801716a: 2b00 cmp r3, #0 - 801716c: d003 beq.n 8017176 - 801716e: 687b ldr r3, [r7, #4] - 8017170: f893 302f ldrb.w r3, [r3, #47] ; 0x2f - 8017174: e000 b.n 8017178 - 8017176: 2327 movs r3, #39 ; 0x27 - 8017178: 461a mov r2, r3 - 801717a: 4804 ldr r0, [pc, #16] ; (801718c ) - 801717c: f00a fc04 bl 8021988 - netif ? netif->name[0] : '\'', netif ? netif->name[1] : '\'')); -} - 8017180: bf00 nop - 8017182: 3708 adds r7, #8 - 8017184: 46bd mov sp, r7 - 8017186: bd80 pop {r7, pc} - 8017188: 2401a478 .word 0x2401a478 - 801718c: 080245a0 .word 0x080245a0 - -08017190 : - * Bring an interface up, available for processing - * traffic. - */ -void -netif_set_up(struct netif *netif) -{ - 8017190: b580 push {r7, lr} - 8017192: b082 sub sp, #8 - 8017194: af00 add r7, sp, #0 - 8017196: 6078 str r0, [r7, #4] - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("netif_set_up: invalid netif", netif != NULL, return); - 8017198: 687b ldr r3, [r7, #4] - 801719a: 2b00 cmp r3, #0 - 801719c: d107 bne.n 80171ae - 801719e: 4b0f ldr r3, [pc, #60] ; (80171dc ) - 80171a0: f44f 7254 mov.w r2, #848 ; 0x350 - 80171a4: 490e ldr r1, [pc, #56] ; (80171e0 ) - 80171a6: 480f ldr r0, [pc, #60] ; (80171e4 ) - 80171a8: f00a fbee bl 8021988 - 80171ac: e013 b.n 80171d6 - - if (!(netif->flags & NETIF_FLAG_UP)) { - 80171ae: 687b ldr r3, [r7, #4] - 80171b0: f893 302d ldrb.w r3, [r3, #45] ; 0x2d - 80171b4: f003 0301 and.w r3, r3, #1 - 80171b8: 2b00 cmp r3, #0 - 80171ba: d10c bne.n 80171d6 - netif_set_flags(netif, NETIF_FLAG_UP); - 80171bc: 687b ldr r3, [r7, #4] - 80171be: f893 302d ldrb.w r3, [r3, #45] ; 0x2d - 80171c2: f043 0301 orr.w r3, r3, #1 - 80171c6: b2da uxtb r2, r3 - 80171c8: 687b ldr r3, [r7, #4] - 80171ca: f883 202d strb.w r2, [r3, #45] ; 0x2d - 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); - 80171ce: 2103 movs r1, #3 - 80171d0: 6878 ldr r0, [r7, #4] - 80171d2: f000 f809 bl 80171e8 -#if LWIP_IPV6 - nd6_restart_netif(netif); -#endif /* LWIP_IPV6 */ - } -} - 80171d6: 3708 adds r7, #8 - 80171d8: 46bd mov sp, r7 - 80171da: bd80 pop {r7, pc} - 80171dc: 08024308 .word 0x08024308 - 80171e0: 080245c8 .word 0x080245c8 - 80171e4: 08024358 .word 0x08024358 - -080171e8 : - -/** 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) -{ - 80171e8: b580 push {r7, lr} - 80171ea: b082 sub sp, #8 - 80171ec: af00 add r7, sp, #0 - 80171ee: 6078 str r0, [r7, #4] - 80171f0: 460b mov r3, r1 - 80171f2: 70fb strb r3, [r7, #3] - LWIP_ASSERT("netif_issue_reports: invalid netif", netif != NULL); - 80171f4: 687b ldr r3, [r7, #4] - 80171f6: 2b00 cmp r3, #0 - 80171f8: d106 bne.n 8017208 - 80171fa: 4b18 ldr r3, [pc, #96] ; (801725c ) - 80171fc: f240 326d movw r2, #877 ; 0x36d - 8017200: 4917 ldr r1, [pc, #92] ; (8017260 ) - 8017202: 4818 ldr r0, [pc, #96] ; (8017264 ) - 8017204: f00a fbc0 bl 8021988 - - /* Only send reports when both link and admin states are up */ - if (!(netif->flags & NETIF_FLAG_LINK_UP) || - 8017208: 687b ldr r3, [r7, #4] - 801720a: f893 302d ldrb.w r3, [r3, #45] ; 0x2d - 801720e: f003 0304 and.w r3, r3, #4 - 8017212: 2b00 cmp r3, #0 - 8017214: d01e beq.n 8017254 - !(netif->flags & NETIF_FLAG_UP)) { - 8017216: 687b ldr r3, [r7, #4] - 8017218: f893 302d ldrb.w r3, [r3, #45] ; 0x2d - 801721c: f003 0301 and.w r3, r3, #1 - if (!(netif->flags & NETIF_FLAG_LINK_UP) || - 8017220: 2b00 cmp r3, #0 - 8017222: d017 beq.n 8017254 - return; - } - -#if LWIP_IPV4 - if ((report_type & NETIF_REPORT_TYPE_IPV4) && - 8017224: 78fb ldrb r3, [r7, #3] - 8017226: f003 0301 and.w r3, r3, #1 - 801722a: 2b00 cmp r3, #0 - 801722c: d013 beq.n 8017256 - !ip4_addr_isany_val(*netif_ip4_addr(netif))) { - 801722e: 687b ldr r3, [r7, #4] - 8017230: 3304 adds r3, #4 - 8017232: 681b ldr r3, [r3, #0] - if ((report_type & NETIF_REPORT_TYPE_IPV4) && - 8017234: 2b00 cmp r3, #0 - 8017236: d00e beq.n 8017256 -#if LWIP_ARP - /* For Ethernet network interfaces, we would like to send a "gratuitous ARP" */ - if (netif->flags & (NETIF_FLAG_ETHARP)) { - 8017238: 687b ldr r3, [r7, #4] - 801723a: f893 302d ldrb.w r3, [r3, #45] ; 0x2d - 801723e: f003 0308 and.w r3, r3, #8 - 8017242: 2b00 cmp r3, #0 - 8017244: d007 beq.n 8017256 - etharp_gratuitous(netif); - 8017246: 687b ldr r3, [r7, #4] - 8017248: 3304 adds r3, #4 - 801724a: 4619 mov r1, r3 - 801724c: 6878 ldr r0, [r7, #4] - 801724e: f008 fc87 bl 801fb60 - 8017252: e000 b.n 8017256 - return; - 8017254: bf00 nop - /* send mld memberships */ - mld6_report_groups(netif); -#endif /* LWIP_IPV6_MLD */ - } -#endif /* LWIP_IPV6 */ -} - 8017256: 3708 adds r7, #8 - 8017258: 46bd mov sp, r7 - 801725a: bd80 pop {r7, pc} - 801725c: 08024308 .word 0x08024308 - 8017260: 080245e4 .word 0x080245e4 - 8017264: 08024358 .word 0x08024358 - -08017268 : - * @ingroup netif - * Bring an interface down, disabling any traffic processing. - */ -void -netif_set_down(struct netif *netif) -{ - 8017268: b580 push {r7, lr} - 801726a: b082 sub sp, #8 - 801726c: af00 add r7, sp, #0 - 801726e: 6078 str r0, [r7, #4] - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("netif_set_down: invalid netif", netif != NULL, return); - 8017270: 687b ldr r3, [r7, #4] - 8017272: 2b00 cmp r3, #0 - 8017274: d107 bne.n 8017286 - 8017276: 4b12 ldr r3, [pc, #72] ; (80172c0 ) - 8017278: f240 329b movw r2, #923 ; 0x39b - 801727c: 4911 ldr r1, [pc, #68] ; (80172c4 ) - 801727e: 4812 ldr r0, [pc, #72] ; (80172c8 ) - 8017280: f00a fb82 bl 8021988 - 8017284: e019 b.n 80172ba - - if (netif->flags & NETIF_FLAG_UP) { - 8017286: 687b ldr r3, [r7, #4] - 8017288: f893 302d ldrb.w r3, [r3, #45] ; 0x2d - 801728c: f003 0301 and.w r3, r3, #1 - 8017290: 2b00 cmp r3, #0 - 8017292: d012 beq.n 80172ba - args.status_changed.state = 0; - netif_invoke_ext_callback(netif, LWIP_NSC_STATUS_CHANGED, &args); - } -#endif - - netif_clear_flags(netif, NETIF_FLAG_UP); - 8017294: 687b ldr r3, [r7, #4] - 8017296: f893 302d ldrb.w r3, [r3, #45] ; 0x2d - 801729a: f023 0301 bic.w r3, r3, #1 - 801729e: b2da uxtb r2, r3 - 80172a0: 687b ldr r3, [r7, #4] - 80172a2: f883 202d strb.w r2, [r3, #45] ; 0x2d - MIB2_COPY_SYSUPTIME_TO(&netif->ts); - -#if LWIP_IPV4 && LWIP_ARP - if (netif->flags & NETIF_FLAG_ETHARP) { - 80172a6: 687b ldr r3, [r7, #4] - 80172a8: f893 302d ldrb.w r3, [r3, #45] ; 0x2d - 80172ac: f003 0308 and.w r3, r3, #8 - 80172b0: 2b00 cmp r3, #0 - 80172b2: d002 beq.n 80172ba - etharp_cleanup_netif(netif); - 80172b4: 6878 ldr r0, [r7, #4] - 80172b6: f008 f811 bl 801f2dc - nd6_cleanup_netif(netif); -#endif /* LWIP_IPV6 */ - - NETIF_STATUS_CALLBACK(netif); - } -} - 80172ba: 3708 adds r7, #8 - 80172bc: 46bd mov sp, r7 - 80172be: bd80 pop {r7, pc} - 80172c0: 08024308 .word 0x08024308 - 80172c4: 08024608 .word 0x08024608 - 80172c8: 08024358 .word 0x08024358 - -080172cc : - * @ingroup netif - * Called by a driver when its link goes up - */ -void -netif_set_link_up(struct netif *netif) -{ - 80172cc: b580 push {r7, lr} - 80172ce: b082 sub sp, #8 - 80172d0: af00 add r7, sp, #0 - 80172d2: 6078 str r0, [r7, #4] - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("netif_set_link_up: invalid netif", netif != NULL, return); - 80172d4: 687b ldr r3, [r7, #4] - 80172d6: 2b00 cmp r3, #0 - 80172d8: d107 bne.n 80172ea - 80172da: 4b13 ldr r3, [pc, #76] ; (8017328 ) - 80172dc: f44f 7278 mov.w r2, #992 ; 0x3e0 - 80172e0: 4912 ldr r1, [pc, #72] ; (801732c ) - 80172e2: 4813 ldr r0, [pc, #76] ; (8017330 ) - 80172e4: f00a fb50 bl 8021988 - 80172e8: e01b b.n 8017322 - - if (!(netif->flags & NETIF_FLAG_LINK_UP)) { - 80172ea: 687b ldr r3, [r7, #4] - 80172ec: f893 302d ldrb.w r3, [r3, #45] ; 0x2d - 80172f0: f003 0304 and.w r3, r3, #4 - 80172f4: 2b00 cmp r3, #0 - 80172f6: d114 bne.n 8017322 - netif_set_flags(netif, NETIF_FLAG_LINK_UP); - 80172f8: 687b ldr r3, [r7, #4] - 80172fa: f893 302d ldrb.w r3, [r3, #45] ; 0x2d - 80172fe: f043 0304 orr.w r3, r3, #4 - 8017302: b2da uxtb r2, r3 - 8017304: 687b ldr r3, [r7, #4] - 8017306: f883 202d strb.w r2, [r3, #45] ; 0x2d - -#if LWIP_AUTOIP - autoip_network_changed(netif); -#endif /* LWIP_AUTOIP */ - - netif_issue_reports(netif, NETIF_REPORT_TYPE_IPV4 | NETIF_REPORT_TYPE_IPV6); - 801730a: 2103 movs r1, #3 - 801730c: 6878 ldr r0, [r7, #4] - 801730e: f7ff ff6b bl 80171e8 -#if LWIP_IPV6 - nd6_restart_netif(netif); -#endif /* LWIP_IPV6 */ - - NETIF_LINK_CALLBACK(netif); - 8017312: 687b ldr r3, [r7, #4] - 8017314: 69db ldr r3, [r3, #28] - 8017316: 2b00 cmp r3, #0 - 8017318: d003 beq.n 8017322 - 801731a: 687b ldr r3, [r7, #4] - 801731c: 69db ldr r3, [r3, #28] - 801731e: 6878 ldr r0, [r7, #4] - 8017320: 4798 blx r3 - args.link_changed.state = 1; - netif_invoke_ext_callback(netif, LWIP_NSC_LINK_CHANGED, &args); - } -#endif - } -} - 8017322: 3708 adds r7, #8 - 8017324: 46bd mov sp, r7 - 8017326: bd80 pop {r7, pc} - 8017328: 08024308 .word 0x08024308 - 801732c: 08024628 .word 0x08024628 - 8017330: 08024358 .word 0x08024358 - -08017334 : - * @ingroup netif - * Called by a driver when its link goes down - */ -void -netif_set_link_down(struct netif *netif) -{ - 8017334: b580 push {r7, lr} - 8017336: b082 sub sp, #8 - 8017338: af00 add r7, sp, #0 - 801733a: 6078 str r0, [r7, #4] - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("netif_set_link_down: invalid netif", netif != NULL, return); - 801733c: 687b ldr r3, [r7, #4] - 801733e: 2b00 cmp r3, #0 - 8017340: d107 bne.n 8017352 - 8017342: 4b11 ldr r3, [pc, #68] ; (8017388 ) - 8017344: f240 4206 movw r2, #1030 ; 0x406 - 8017348: 4910 ldr r1, [pc, #64] ; (801738c ) - 801734a: 4811 ldr r0, [pc, #68] ; (8017390 ) - 801734c: f00a fb1c bl 8021988 - 8017350: e017 b.n 8017382 - - if (netif->flags & NETIF_FLAG_LINK_UP) { - 8017352: 687b ldr r3, [r7, #4] - 8017354: f893 302d ldrb.w r3, [r3, #45] ; 0x2d - 8017358: f003 0304 and.w r3, r3, #4 - 801735c: 2b00 cmp r3, #0 - 801735e: d010 beq.n 8017382 - netif_clear_flags(netif, NETIF_FLAG_LINK_UP); - 8017360: 687b ldr r3, [r7, #4] - 8017362: f893 302d ldrb.w r3, [r3, #45] ; 0x2d - 8017366: f023 0304 bic.w r3, r3, #4 - 801736a: b2da uxtb r2, r3 - 801736c: 687b ldr r3, [r7, #4] - 801736e: f883 202d strb.w r2, [r3, #45] ; 0x2d - NETIF_LINK_CALLBACK(netif); - 8017372: 687b ldr r3, [r7, #4] - 8017374: 69db ldr r3, [r3, #28] - 8017376: 2b00 cmp r3, #0 - 8017378: d003 beq.n 8017382 - 801737a: 687b ldr r3, [r7, #4] - 801737c: 69db ldr r3, [r3, #28] - 801737e: 6878 ldr r0, [r7, #4] - 8017380: 4798 blx r3 - args.link_changed.state = 0; - netif_invoke_ext_callback(netif, LWIP_NSC_LINK_CHANGED, &args); - } -#endif - } -} - 8017382: 3708 adds r7, #8 - 8017384: 46bd mov sp, r7 - 8017386: bd80 pop {r7, pc} - 8017388: 08024308 .word 0x08024308 - 801738c: 0802464c .word 0x0802464c - 8017390: 08024358 .word 0x08024358 - -08017394 : - * @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) -{ - 8017394: b480 push {r7} - 8017396: b083 sub sp, #12 - 8017398: af00 add r7, sp, #0 - 801739a: 6078 str r0, [r7, #4] - 801739c: 6039 str r1, [r7, #0] - LWIP_ASSERT_CORE_LOCKED(); - - if (netif) { - 801739e: 687b ldr r3, [r7, #4] - 80173a0: 2b00 cmp r3, #0 - 80173a2: d002 beq.n 80173aa - netif->link_callback = link_callback; - 80173a4: 687b ldr r3, [r7, #4] - 80173a6: 683a ldr r2, [r7, #0] - 80173a8: 61da str r2, [r3, #28] - } -} - 80173aa: bf00 nop - 80173ac: 370c adds r7, #12 - 80173ae: 46bd mov sp, r7 - 80173b0: f85d 7b04 ldr.w r7, [sp], #4 - 80173b4: 4770 bx lr - -080173b6 : -#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) -{ - 80173b6: b480 push {r7} - 80173b8: b085 sub sp, #20 - 80173ba: af00 add r7, sp, #0 - 80173bc: 60f8 str r0, [r7, #12] - 80173be: 60b9 str r1, [r7, #8] - 80173c0: 607a str r2, [r7, #4] - LWIP_UNUSED_ARG(netif); - LWIP_UNUSED_ARG(p); - LWIP_UNUSED_ARG(ipaddr); - - return ERR_IF; - 80173c2: f06f 030b mvn.w r3, #11 -} - 80173c6: 4618 mov r0, r3 - 80173c8: 3714 adds r7, #20 - 80173ca: 46bd mov sp, r7 - 80173cc: f85d 7b04 ldr.w r7, [sp], #4 - 80173d0: 4770 bx lr - ... - -080173d4 : -* -* @param idx index of netif to find -*/ -struct netif * -netif_get_by_index(u8_t idx) -{ - 80173d4: b480 push {r7} - 80173d6: b085 sub sp, #20 - 80173d8: af00 add r7, sp, #0 - 80173da: 4603 mov r3, r0 - 80173dc: 71fb strb r3, [r7, #7] - struct netif *netif; - - LWIP_ASSERT_CORE_LOCKED(); - - if (idx != NETIF_NO_INDEX) { - 80173de: 79fb ldrb r3, [r7, #7] - 80173e0: 2b00 cmp r3, #0 - 80173e2: d013 beq.n 801740c - NETIF_FOREACH(netif) { - 80173e4: 4b0d ldr r3, [pc, #52] ; (801741c ) - 80173e6: 681b ldr r3, [r3, #0] - 80173e8: 60fb str r3, [r7, #12] - 80173ea: e00c b.n 8017406 - if (idx == netif_get_index(netif)) { - 80173ec: 68fb ldr r3, [r7, #12] - 80173ee: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 - 80173f2: 3301 adds r3, #1 - 80173f4: b2db uxtb r3, r3 - 80173f6: 79fa ldrb r2, [r7, #7] - 80173f8: 429a cmp r2, r3 - 80173fa: d101 bne.n 8017400 - return netif; /* found! */ - 80173fc: 68fb ldr r3, [r7, #12] - 80173fe: e006 b.n 801740e - NETIF_FOREACH(netif) { - 8017400: 68fb ldr r3, [r7, #12] - 8017402: 681b ldr r3, [r3, #0] - 8017404: 60fb str r3, [r7, #12] - 8017406: 68fb ldr r3, [r7, #12] - 8017408: 2b00 cmp r3, #0 - 801740a: d1ef bne.n 80173ec - } - } - } - - return NULL; - 801740c: 2300 movs r3, #0 -} - 801740e: 4618 mov r0, r3 - 8017410: 3714 adds r7, #20 - 8017412: 46bd mov sp, r7 - 8017414: f85d 7b04 ldr.w r7, [sp], #4 - 8017418: 4770 bx lr - 801741a: bf00 nop - 801741c: 2401a474 .word 0x2401a474 - -08017420 : -#if !NO_SYS -static -#endif /* !NO_SYS */ -void -pbuf_free_ooseq(void) -{ - 8017420: b580 push {r7, lr} - 8017422: b082 sub sp, #8 - 8017424: af00 add r7, sp, #0 - struct tcp_pcb *pcb; - SYS_ARCH_SET(pbuf_free_ooseq_pending, 0); - 8017426: f00a f915 bl 8021654 - 801742a: 6038 str r0, [r7, #0] - 801742c: 4b0d ldr r3, [pc, #52] ; (8017464 ) - 801742e: 2200 movs r2, #0 - 8017430: 701a strb r2, [r3, #0] - 8017432: 6838 ldr r0, [r7, #0] - 8017434: f00a f91c bl 8021670 - - for (pcb = tcp_active_pcbs; NULL != pcb; pcb = pcb->next) { - 8017438: 4b0b ldr r3, [pc, #44] ; (8017468 ) - 801743a: 681b ldr r3, [r3, #0] - 801743c: 607b str r3, [r7, #4] - 801743e: e00a b.n 8017456 - if (pcb->ooseq != NULL) { - 8017440: 687b ldr r3, [r7, #4] - 8017442: 6f5b ldr r3, [r3, #116] ; 0x74 - 8017444: 2b00 cmp r3, #0 - 8017446: d003 beq.n 8017450 - /** 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); - 8017448: 6878 ldr r0, [r7, #4] - 801744a: f002 fc9f bl 8019d8c - return; - 801744e: e005 b.n 801745c - for (pcb = tcp_active_pcbs; NULL != pcb; pcb = pcb->next) { - 8017450: 687b ldr r3, [r7, #4] - 8017452: 68db ldr r3, [r3, #12] - 8017454: 607b str r3, [r7, #4] - 8017456: 687b ldr r3, [r7, #4] - 8017458: 2b00 cmp r3, #0 - 801745a: d1f1 bne.n 8017440 - } - } -} - 801745c: 3708 adds r7, #8 - 801745e: 46bd mov sp, r7 - 8017460: bd80 pop {r7, pc} - 8017462: bf00 nop - 8017464: 2401a47d .word 0x2401a47d - 8017468: 2401a48c .word 0x2401a48c - -0801746c : -/** - * Just a callback function for tcpip_callback() that calls pbuf_free_ooseq(). - */ -static void -pbuf_free_ooseq_callback(void *arg) -{ - 801746c: b580 push {r7, lr} - 801746e: b082 sub sp, #8 - 8017470: af00 add r7, sp, #0 - 8017472: 6078 str r0, [r7, #4] - LWIP_UNUSED_ARG(arg); - pbuf_free_ooseq(); - 8017474: f7ff ffd4 bl 8017420 -} - 8017478: bf00 nop - 801747a: 3708 adds r7, #8 - 801747c: 46bd mov sp, r7 - 801747e: bd80 pop {r7, pc} - -08017480 : -#endif /* !NO_SYS */ - -/** Queue a call to pbuf_free_ooseq if not already queued. */ -static void -pbuf_pool_is_empty(void) -{ - 8017480: b580 push {r7, lr} - 8017482: b082 sub sp, #8 - 8017484: 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); - 8017486: f00a f8e5 bl 8021654 - 801748a: 6078 str r0, [r7, #4] - queued = pbuf_free_ooseq_pending; - 801748c: 4b0f ldr r3, [pc, #60] ; (80174cc ) - 801748e: 781b ldrb r3, [r3, #0] - 8017490: 70fb strb r3, [r7, #3] - pbuf_free_ooseq_pending = 1; - 8017492: 4b0e ldr r3, [pc, #56] ; (80174cc ) - 8017494: 2201 movs r2, #1 - 8017496: 701a strb r2, [r3, #0] - SYS_ARCH_UNPROTECT(old_level); - 8017498: 6878 ldr r0, [r7, #4] - 801749a: f00a f8e9 bl 8021670 - - if (!queued) { - 801749e: 78fb ldrb r3, [r7, #3] - 80174a0: 2b00 cmp r3, #0 - 80174a2: d10f bne.n 80174c4 - /* queue a call to pbuf_free_ooseq if not already queued */ - PBUF_POOL_FREE_OOSEQ_QUEUE_CALL(); - 80174a4: 2100 movs r1, #0 - 80174a6: 480a ldr r0, [pc, #40] ; (80174d0 ) - 80174a8: f7fe fcaa bl 8015e00 - 80174ac: 4603 mov r3, r0 - 80174ae: 2b00 cmp r3, #0 - 80174b0: d008 beq.n 80174c4 - 80174b2: f00a f8cf bl 8021654 - 80174b6: 6078 str r0, [r7, #4] - 80174b8: 4b04 ldr r3, [pc, #16] ; (80174cc ) - 80174ba: 2200 movs r2, #0 - 80174bc: 701a strb r2, [r3, #0] - 80174be: 6878 ldr r0, [r7, #4] - 80174c0: f00a f8d6 bl 8021670 - } -#endif /* PBUF_POOL_FREE_OOSEQ_QUEUE_CALL */ -} - 80174c4: bf00 nop - 80174c6: 3708 adds r7, #8 - 80174c8: 46bd mov sp, r7 - 80174ca: bd80 pop {r7, pc} - 80174cc: 2401a47d .word 0x2401a47d - 80174d0: 0801746d .word 0x0801746d - -080174d4 : -#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) -{ - 80174d4: b480 push {r7} - 80174d6: b085 sub sp, #20 - 80174d8: af00 add r7, sp, #0 - 80174da: 60f8 str r0, [r7, #12] - 80174dc: 60b9 str r1, [r7, #8] - 80174de: 4611 mov r1, r2 - 80174e0: 461a mov r2, r3 - 80174e2: 460b mov r3, r1 - 80174e4: 80fb strh r3, [r7, #6] - 80174e6: 4613 mov r3, r2 - 80174e8: 80bb strh r3, [r7, #4] - p->next = NULL; - 80174ea: 68fb ldr r3, [r7, #12] - 80174ec: 2200 movs r2, #0 - 80174ee: 601a str r2, [r3, #0] - p->payload = payload; - 80174f0: 68fb ldr r3, [r7, #12] - 80174f2: 68ba ldr r2, [r7, #8] - 80174f4: 605a str r2, [r3, #4] - p->tot_len = tot_len; - 80174f6: 68fb ldr r3, [r7, #12] - 80174f8: 88fa ldrh r2, [r7, #6] - 80174fa: 811a strh r2, [r3, #8] - p->len = len; - 80174fc: 68fb ldr r3, [r7, #12] - 80174fe: 88ba ldrh r2, [r7, #4] - 8017500: 815a strh r2, [r3, #10] - p->type_internal = (u8_t)type; - 8017502: 8b3b ldrh r3, [r7, #24] - 8017504: b2da uxtb r2, r3 - 8017506: 68fb ldr r3, [r7, #12] - 8017508: 731a strb r2, [r3, #12] - p->flags = flags; - 801750a: 68fb ldr r3, [r7, #12] - 801750c: 7f3a ldrb r2, [r7, #28] - 801750e: 735a strb r2, [r3, #13] - p->ref = 1; - 8017510: 68fb ldr r3, [r7, #12] - 8017512: 2201 movs r2, #1 - 8017514: 739a strb r2, [r3, #14] - p->if_idx = NETIF_NO_INDEX; - 8017516: 68fb ldr r3, [r7, #12] - 8017518: 2200 movs r2, #0 - 801751a: 73da strb r2, [r3, #15] -} - 801751c: bf00 nop - 801751e: 3714 adds r7, #20 - 8017520: 46bd mov sp, r7 - 8017522: f85d 7b04 ldr.w r7, [sp], #4 - 8017526: 4770 bx lr - -08017528 : - * @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) -{ - 8017528: b580 push {r7, lr} - 801752a: b08c sub sp, #48 ; 0x30 - 801752c: af02 add r7, sp, #8 - 801752e: 4603 mov r3, r0 - 8017530: 71fb strb r3, [r7, #7] - 8017532: 460b mov r3, r1 - 8017534: 80bb strh r3, [r7, #4] - 8017536: 4613 mov r3, r2 - 8017538: 807b strh r3, [r7, #2] - struct pbuf *p; - u16_t offset = (u16_t)layer; - 801753a: 79fb ldrb r3, [r7, #7] - 801753c: 847b strh r3, [r7, #34] ; 0x22 - LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_alloc(length=%"U16_F")\n", length)); - - switch (type) { - 801753e: 887b ldrh r3, [r7, #2] - 8017540: f5b3 7f20 cmp.w r3, #640 ; 0x280 - 8017544: f000 8082 beq.w 801764c - 8017548: f5b3 7f20 cmp.w r3, #640 ; 0x280 - 801754c: f300 80ca bgt.w 80176e4 - 8017550: f5b3 7fc1 cmp.w r3, #386 ; 0x182 - 8017554: d010 beq.n 8017578 - 8017556: f5b3 7fc1 cmp.w r3, #386 ; 0x182 - 801755a: f300 80c3 bgt.w 80176e4 - 801755e: 2b01 cmp r3, #1 - 8017560: d002 beq.n 8017568 - 8017562: 2b41 cmp r3, #65 ; 0x41 - 8017564: f040 80be bne.w 80176e4 - case PBUF_REF: /* fall through */ - case PBUF_ROM: - p = pbuf_alloc_reference(NULL, length, type); - 8017568: 887a ldrh r2, [r7, #2] - 801756a: 88bb ldrh r3, [r7, #4] - 801756c: 4619 mov r1, r3 - 801756e: 2000 movs r0, #0 - 8017570: f000 f8d4 bl 801771c - 8017574: 6278 str r0, [r7, #36] ; 0x24 - break; - 8017576: e0bf b.n 80176f8 - case PBUF_POOL: { - struct pbuf *q, *last; - u16_t rem_len; /* remaining length */ - p = NULL; - 8017578: 2300 movs r3, #0 - 801757a: 627b str r3, [r7, #36] ; 0x24 - last = NULL; - 801757c: 2300 movs r3, #0 - 801757e: 61fb str r3, [r7, #28] - rem_len = length; - 8017580: 88bb ldrh r3, [r7, #4] - 8017582: 837b strh r3, [r7, #26] - do { - u16_t qlen; - q = (struct pbuf *)memp_malloc(MEMP_PBUF_POOL); - 8017584: 200c movs r0, #12 - 8017586: f7ff faa3 bl 8016ad0 - 801758a: 6138 str r0, [r7, #16] - if (q == NULL) { - 801758c: 693b ldr r3, [r7, #16] - 801758e: 2b00 cmp r3, #0 - 8017590: d109 bne.n 80175a6 - PBUF_POOL_IS_EMPTY(); - 8017592: f7ff ff75 bl 8017480 - /* free chain so far allocated */ - if (p) { - 8017596: 6a7b ldr r3, [r7, #36] ; 0x24 - 8017598: 2b00 cmp r3, #0 - 801759a: d002 beq.n 80175a2 - pbuf_free(p); - 801759c: 6a78 ldr r0, [r7, #36] ; 0x24 - 801759e: f000 faab bl 8017af8 - } - /* bail out unsuccessfully */ - return NULL; - 80175a2: 2300 movs r3, #0 - 80175a4: e0a9 b.n 80176fa - } - qlen = LWIP_MIN(rem_len, (u16_t)(PBUF_POOL_BUFSIZE_ALIGNED - LWIP_MEM_ALIGN_SIZE(offset))); - 80175a6: 8c7b ldrh r3, [r7, #34] ; 0x22 - 80175a8: 3303 adds r3, #3 - 80175aa: b29b uxth r3, r3 - 80175ac: f023 0303 bic.w r3, r3, #3 - 80175b0: b29a uxth r2, r3 - 80175b2: f240 53ec movw r3, #1516 ; 0x5ec - 80175b6: 1a9b subs r3, r3, r2 - 80175b8: b29b uxth r3, r3 - 80175ba: 8b7a ldrh r2, [r7, #26] - 80175bc: 4293 cmp r3, r2 - 80175be: bf28 it cs - 80175c0: 4613 movcs r3, r2 - 80175c2: 81fb strh r3, [r7, #14] - pbuf_init_alloced_pbuf(q, LWIP_MEM_ALIGN((void *)((u8_t *)q + SIZEOF_STRUCT_PBUF + offset)), - 80175c4: 8c7b ldrh r3, [r7, #34] ; 0x22 - 80175c6: 3310 adds r3, #16 - 80175c8: 693a ldr r2, [r7, #16] - 80175ca: 4413 add r3, r2 - 80175cc: 3303 adds r3, #3 - 80175ce: f023 0303 bic.w r3, r3, #3 - 80175d2: 4618 mov r0, r3 - 80175d4: 89f9 ldrh r1, [r7, #14] - 80175d6: 8b7a ldrh r2, [r7, #26] - 80175d8: 2300 movs r3, #0 - 80175da: 9301 str r3, [sp, #4] - 80175dc: 887b ldrh r3, [r7, #2] - 80175de: 9300 str r3, [sp, #0] - 80175e0: 460b mov r3, r1 - 80175e2: 4601 mov r1, r0 - 80175e4: 6938 ldr r0, [r7, #16] - 80175e6: f7ff ff75 bl 80174d4 - rem_len, qlen, type, 0); - LWIP_ASSERT("pbuf_alloc: pbuf q->payload properly aligned", - 80175ea: 693b ldr r3, [r7, #16] - 80175ec: 685b ldr r3, [r3, #4] - 80175ee: f003 0303 and.w r3, r3, #3 - 80175f2: 2b00 cmp r3, #0 - 80175f4: d006 beq.n 8017604 - 80175f6: 4b43 ldr r3, [pc, #268] ; (8017704 ) - 80175f8: f44f 7280 mov.w r2, #256 ; 0x100 - 80175fc: 4942 ldr r1, [pc, #264] ; (8017708 ) - 80175fe: 4843 ldr r0, [pc, #268] ; (801770c ) - 8017600: f00a f9c2 bl 8021988 - ((mem_ptr_t)q->payload % MEM_ALIGNMENT) == 0); - LWIP_ASSERT("PBUF_POOL_BUFSIZE must be bigger than MEM_ALIGNMENT", - 8017604: 8c7b ldrh r3, [r7, #34] ; 0x22 - 8017606: 3303 adds r3, #3 - 8017608: f023 0303 bic.w r3, r3, #3 - 801760c: f240 52ec movw r2, #1516 ; 0x5ec - 8017610: 4293 cmp r3, r2 - 8017612: d106 bne.n 8017622 - 8017614: 4b3b ldr r3, [pc, #236] ; (8017704 ) - 8017616: f44f 7281 mov.w r2, #258 ; 0x102 - 801761a: 493d ldr r1, [pc, #244] ; (8017710 ) - 801761c: 483b ldr r0, [pc, #236] ; (801770c ) - 801761e: f00a f9b3 bl 8021988 - (PBUF_POOL_BUFSIZE_ALIGNED - LWIP_MEM_ALIGN_SIZE(offset)) > 0 ); - if (p == NULL) { - 8017622: 6a7b ldr r3, [r7, #36] ; 0x24 - 8017624: 2b00 cmp r3, #0 - 8017626: d102 bne.n 801762e - /* allocated head of pbuf chain (into p) */ - p = q; - 8017628: 693b ldr r3, [r7, #16] - 801762a: 627b str r3, [r7, #36] ; 0x24 - 801762c: e002 b.n 8017634 - } else { - /* make previous pbuf point to this pbuf */ - last->next = q; - 801762e: 69fb ldr r3, [r7, #28] - 8017630: 693a ldr r2, [r7, #16] - 8017632: 601a str r2, [r3, #0] - } - last = q; - 8017634: 693b ldr r3, [r7, #16] - 8017636: 61fb str r3, [r7, #28] - rem_len = (u16_t)(rem_len - qlen); - 8017638: 8b7a ldrh r2, [r7, #26] - 801763a: 89fb ldrh r3, [r7, #14] - 801763c: 1ad3 subs r3, r2, r3 - 801763e: 837b strh r3, [r7, #26] - offset = 0; - 8017640: 2300 movs r3, #0 - 8017642: 847b strh r3, [r7, #34] ; 0x22 - } while (rem_len > 0); - 8017644: 8b7b ldrh r3, [r7, #26] - 8017646: 2b00 cmp r3, #0 - 8017648: d19c bne.n 8017584 - break; - 801764a: e055 b.n 80176f8 - } - case PBUF_RAM: { - u16_t payload_len = (u16_t)(LWIP_MEM_ALIGN_SIZE(offset) + LWIP_MEM_ALIGN_SIZE(length)); - 801764c: 8c7b ldrh r3, [r7, #34] ; 0x22 - 801764e: 3303 adds r3, #3 - 8017650: b29b uxth r3, r3 - 8017652: f023 0303 bic.w r3, r3, #3 - 8017656: b29a uxth r2, r3 - 8017658: 88bb ldrh r3, [r7, #4] - 801765a: 3303 adds r3, #3 - 801765c: b29b uxth r3, r3 - 801765e: f023 0303 bic.w r3, r3, #3 - 8017662: b29b uxth r3, r3 - 8017664: 4413 add r3, r2 - 8017666: 833b strh r3, [r7, #24] - mem_size_t alloc_len = (mem_size_t)(LWIP_MEM_ALIGN_SIZE(SIZEOF_STRUCT_PBUF) + payload_len); - 8017668: 8b3b ldrh r3, [r7, #24] - 801766a: 3310 adds r3, #16 - 801766c: 82fb strh r3, [r7, #22] - - /* bug #50040: Check for integer overflow when calculating alloc_len */ - if ((payload_len < LWIP_MEM_ALIGN_SIZE(length)) || - 801766e: 8b3a ldrh r2, [r7, #24] - 8017670: 88bb ldrh r3, [r7, #4] - 8017672: 3303 adds r3, #3 - 8017674: f023 0303 bic.w r3, r3, #3 - 8017678: 429a cmp r2, r3 - 801767a: d306 bcc.n 801768a - (alloc_len < LWIP_MEM_ALIGN_SIZE(length))) { - 801767c: 8afa ldrh r2, [r7, #22] - 801767e: 88bb ldrh r3, [r7, #4] - 8017680: 3303 adds r3, #3 - 8017682: f023 0303 bic.w r3, r3, #3 - if ((payload_len < LWIP_MEM_ALIGN_SIZE(length)) || - 8017686: 429a cmp r2, r3 - 8017688: d201 bcs.n 801768e - return NULL; - 801768a: 2300 movs r3, #0 - 801768c: e035 b.n 80176fa - } - - /* If pbuf is to be allocated in RAM, allocate memory for it. */ - p = (struct pbuf *)mem_malloc(alloc_len); - 801768e: 8afb ldrh r3, [r7, #22] - 8017690: 4618 mov r0, r3 - 8017692: f7ff f865 bl 8016760 - 8017696: 6278 str r0, [r7, #36] ; 0x24 - if (p == NULL) { - 8017698: 6a7b ldr r3, [r7, #36] ; 0x24 - 801769a: 2b00 cmp r3, #0 - 801769c: d101 bne.n 80176a2 - return NULL; - 801769e: 2300 movs r3, #0 - 80176a0: e02b b.n 80176fa - } - pbuf_init_alloced_pbuf(p, LWIP_MEM_ALIGN((void *)((u8_t *)p + SIZEOF_STRUCT_PBUF + offset)), - 80176a2: 8c7b ldrh r3, [r7, #34] ; 0x22 - 80176a4: 3310 adds r3, #16 - 80176a6: 6a7a ldr r2, [r7, #36] ; 0x24 - 80176a8: 4413 add r3, r2 - 80176aa: 3303 adds r3, #3 - 80176ac: f023 0303 bic.w r3, r3, #3 - 80176b0: 4618 mov r0, r3 - 80176b2: 88b9 ldrh r1, [r7, #4] - 80176b4: 88ba ldrh r2, [r7, #4] - 80176b6: 2300 movs r3, #0 - 80176b8: 9301 str r3, [sp, #4] - 80176ba: 887b ldrh r3, [r7, #2] - 80176bc: 9300 str r3, [sp, #0] - 80176be: 460b mov r3, r1 - 80176c0: 4601 mov r1, r0 - 80176c2: 6a78 ldr r0, [r7, #36] ; 0x24 - 80176c4: f7ff ff06 bl 80174d4 - length, length, type, 0); - LWIP_ASSERT("pbuf_alloc: pbuf->payload properly aligned", - 80176c8: 6a7b ldr r3, [r7, #36] ; 0x24 - 80176ca: 685b ldr r3, [r3, #4] - 80176cc: f003 0303 and.w r3, r3, #3 - 80176d0: 2b00 cmp r3, #0 - 80176d2: d010 beq.n 80176f6 - 80176d4: 4b0b ldr r3, [pc, #44] ; (8017704 ) - 80176d6: f44f 7291 mov.w r2, #290 ; 0x122 - 80176da: 490e ldr r1, [pc, #56] ; (8017714 ) - 80176dc: 480b ldr r0, [pc, #44] ; (801770c ) - 80176de: f00a f953 bl 8021988 - ((mem_ptr_t)p->payload % MEM_ALIGNMENT) == 0); - break; - 80176e2: e008 b.n 80176f6 - } - default: - LWIP_ASSERT("pbuf_alloc: erroneous type", 0); - 80176e4: 4b07 ldr r3, [pc, #28] ; (8017704 ) - 80176e6: f240 1227 movw r2, #295 ; 0x127 - 80176ea: 490b ldr r1, [pc, #44] ; (8017718 ) - 80176ec: 4807 ldr r0, [pc, #28] ; (801770c ) - 80176ee: f00a f94b bl 8021988 - return NULL; - 80176f2: 2300 movs r3, #0 - 80176f4: e001 b.n 80176fa - break; - 80176f6: bf00 nop - } - LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_alloc(length=%"U16_F") == %p\n", length, (void *)p)); - return p; - 80176f8: 6a7b ldr r3, [r7, #36] ; 0x24 -} - 80176fa: 4618 mov r0, r3 - 80176fc: 3728 adds r7, #40 ; 0x28 - 80176fe: 46bd mov sp, r7 - 8017700: bd80 pop {r7, pc} - 8017702: bf00 nop - 8017704: 080246a8 .word 0x080246a8 - 8017708: 080246d8 .word 0x080246d8 - 801770c: 08024708 .word 0x08024708 - 8017710: 08024730 .word 0x08024730 - 8017714: 08024764 .word 0x08024764 - 8017718: 08024790 .word 0x08024790 - -0801771c : - * - * @return the allocated pbuf. - */ -struct pbuf * -pbuf_alloc_reference(void *payload, u16_t length, pbuf_type type) -{ - 801771c: b580 push {r7, lr} - 801771e: b086 sub sp, #24 - 8017720: af02 add r7, sp, #8 - 8017722: 6078 str r0, [r7, #4] - 8017724: 460b mov r3, r1 - 8017726: 807b strh r3, [r7, #2] - 8017728: 4613 mov r3, r2 - 801772a: 803b strh r3, [r7, #0] - struct pbuf *p; - LWIP_ASSERT("invalid pbuf_type", (type == PBUF_REF) || (type == PBUF_ROM)); - 801772c: 883b ldrh r3, [r7, #0] - 801772e: 2b41 cmp r3, #65 ; 0x41 - 8017730: d009 beq.n 8017746 - 8017732: 883b ldrh r3, [r7, #0] - 8017734: 2b01 cmp r3, #1 - 8017736: d006 beq.n 8017746 - 8017738: 4b0f ldr r3, [pc, #60] ; (8017778 ) - 801773a: f44f 72a5 mov.w r2, #330 ; 0x14a - 801773e: 490f ldr r1, [pc, #60] ; (801777c ) - 8017740: 480f ldr r0, [pc, #60] ; (8017780 ) - 8017742: f00a f921 bl 8021988 - /* only allocate memory for the pbuf structure */ - p = (struct pbuf *)memp_malloc(MEMP_PBUF); - 8017746: 200b movs r0, #11 - 8017748: f7ff f9c2 bl 8016ad0 - 801774c: 60f8 str r0, [r7, #12] - if (p == NULL) { - 801774e: 68fb ldr r3, [r7, #12] - 8017750: 2b00 cmp r3, #0 - 8017752: d101 bne.n 8017758 - 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; - 8017754: 2300 movs r3, #0 - 8017756: e00b b.n 8017770 - } - pbuf_init_alloced_pbuf(p, payload, length, length, type, 0); - 8017758: 8879 ldrh r1, [r7, #2] - 801775a: 887a ldrh r2, [r7, #2] - 801775c: 2300 movs r3, #0 - 801775e: 9301 str r3, [sp, #4] - 8017760: 883b ldrh r3, [r7, #0] - 8017762: 9300 str r3, [sp, #0] - 8017764: 460b mov r3, r1 - 8017766: 6879 ldr r1, [r7, #4] - 8017768: 68f8 ldr r0, [r7, #12] - 801776a: f7ff feb3 bl 80174d4 - return p; - 801776e: 68fb ldr r3, [r7, #12] -} - 8017770: 4618 mov r0, r3 - 8017772: 3710 adds r7, #16 - 8017774: 46bd mov sp, r7 - 8017776: bd80 pop {r7, pc} - 8017778: 080246a8 .word 0x080246a8 - 801777c: 080247ac .word 0x080247ac - 8017780: 08024708 .word 0x08024708 - -08017784 : - * 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) -{ - 8017784: b580 push {r7, lr} - 8017786: b088 sub sp, #32 - 8017788: af02 add r7, sp, #8 - 801778a: 607b str r3, [r7, #4] - 801778c: 4603 mov r3, r0 - 801778e: 73fb strb r3, [r7, #15] - 8017790: 460b mov r3, r1 - 8017792: 81bb strh r3, [r7, #12] - 8017794: 4613 mov r3, r2 - 8017796: 817b strh r3, [r7, #10] - u16_t offset = (u16_t)l; - 8017798: 7bfb ldrb r3, [r7, #15] - 801779a: 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) { - 801779c: 8a7b ldrh r3, [r7, #18] - 801779e: 3303 adds r3, #3 - 80177a0: f023 0203 bic.w r2, r3, #3 - 80177a4: 89bb ldrh r3, [r7, #12] - 80177a6: 441a add r2, r3 - 80177a8: 8cbb ldrh r3, [r7, #36] ; 0x24 - 80177aa: 429a cmp r2, r3 - 80177ac: d901 bls.n 80177b2 - LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_LEVEL_WARNING, ("pbuf_alloced_custom(length=%"U16_F") buffer too short\n", length)); - return NULL; - 80177ae: 2300 movs r3, #0 - 80177b0: e018 b.n 80177e4 - } - - if (payload_mem != NULL) { - 80177b2: 6a3b ldr r3, [r7, #32] - 80177b4: 2b00 cmp r3, #0 - 80177b6: d007 beq.n 80177c8 - payload = (u8_t *)payload_mem + LWIP_MEM_ALIGN_SIZE(offset); - 80177b8: 8a7b ldrh r3, [r7, #18] - 80177ba: 3303 adds r3, #3 - 80177bc: f023 0303 bic.w r3, r3, #3 - 80177c0: 6a3a ldr r2, [r7, #32] - 80177c2: 4413 add r3, r2 - 80177c4: 617b str r3, [r7, #20] - 80177c6: e001 b.n 80177cc - } else { - payload = NULL; - 80177c8: 2300 movs r3, #0 - 80177ca: 617b str r3, [r7, #20] - } - pbuf_init_alloced_pbuf(&p->pbuf, payload, length, length, type, PBUF_FLAG_IS_CUSTOM); - 80177cc: 6878 ldr r0, [r7, #4] - 80177ce: 89b9 ldrh r1, [r7, #12] - 80177d0: 89ba ldrh r2, [r7, #12] - 80177d2: 2302 movs r3, #2 - 80177d4: 9301 str r3, [sp, #4] - 80177d6: 897b ldrh r3, [r7, #10] - 80177d8: 9300 str r3, [sp, #0] - 80177da: 460b mov r3, r1 - 80177dc: 6979 ldr r1, [r7, #20] - 80177de: f7ff fe79 bl 80174d4 - return &p->pbuf; - 80177e2: 687b ldr r3, [r7, #4] -} - 80177e4: 4618 mov r0, r3 - 80177e6: 3718 adds r7, #24 - 80177e8: 46bd mov sp, r7 - 80177ea: bd80 pop {r7, pc} - -080177ec : - * - * @note Despite its name, pbuf_realloc cannot grow the size of a pbuf (chain). - */ -void -pbuf_realloc(struct pbuf *p, u16_t new_len) -{ - 80177ec: b580 push {r7, lr} - 80177ee: b084 sub sp, #16 - 80177f0: af00 add r7, sp, #0 - 80177f2: 6078 str r0, [r7, #4] - 80177f4: 460b mov r3, r1 - 80177f6: 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); - 80177f8: 687b ldr r3, [r7, #4] - 80177fa: 2b00 cmp r3, #0 - 80177fc: d106 bne.n 801780c - 80177fe: 4b3a ldr r3, [pc, #232] ; (80178e8 ) - 8017800: f44f 72cc mov.w r2, #408 ; 0x198 - 8017804: 4939 ldr r1, [pc, #228] ; (80178ec ) - 8017806: 483a ldr r0, [pc, #232] ; (80178f0 ) - 8017808: f00a f8be bl 8021988 - - /* desired length larger than current length? */ - if (new_len >= p->tot_len) { - 801780c: 687b ldr r3, [r7, #4] - 801780e: 891b ldrh r3, [r3, #8] - 8017810: 887a ldrh r2, [r7, #2] - 8017812: 429a cmp r2, r3 - 8017814: d263 bcs.n 80178de - 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); - 8017816: 687b ldr r3, [r7, #4] - 8017818: 891a ldrh r2, [r3, #8] - 801781a: 887b ldrh r3, [r7, #2] - 801781c: 1ad3 subs r3, r2, r3 - 801781e: 813b strh r3, [r7, #8] - - /* first, step over any pbufs that should remain in the chain */ - rem_len = new_len; - 8017820: 887b ldrh r3, [r7, #2] - 8017822: 817b strh r3, [r7, #10] - q = p; - 8017824: 687b ldr r3, [r7, #4] - 8017826: 60fb str r3, [r7, #12] - /* should this pbuf be kept? */ - while (rem_len > q->len) { - 8017828: e018 b.n 801785c - /* decrease remaining length by pbuf length */ - rem_len = (u16_t)(rem_len - q->len); - 801782a: 68fb ldr r3, [r7, #12] - 801782c: 895b ldrh r3, [r3, #10] - 801782e: 897a ldrh r2, [r7, #10] - 8017830: 1ad3 subs r3, r2, r3 - 8017832: 817b strh r3, [r7, #10] - /* decrease total length indicator */ - q->tot_len = (u16_t)(q->tot_len - shrink); - 8017834: 68fb ldr r3, [r7, #12] - 8017836: 891a ldrh r2, [r3, #8] - 8017838: 893b ldrh r3, [r7, #8] - 801783a: 1ad3 subs r3, r2, r3 - 801783c: b29a uxth r2, r3 - 801783e: 68fb ldr r3, [r7, #12] - 8017840: 811a strh r2, [r3, #8] - /* proceed to next pbuf in chain */ - q = q->next; - 8017842: 68fb ldr r3, [r7, #12] - 8017844: 681b ldr r3, [r3, #0] - 8017846: 60fb str r3, [r7, #12] - LWIP_ASSERT("pbuf_realloc: q != NULL", q != NULL); - 8017848: 68fb ldr r3, [r7, #12] - 801784a: 2b00 cmp r3, #0 - 801784c: d106 bne.n 801785c - 801784e: 4b26 ldr r3, [pc, #152] ; (80178e8 ) - 8017850: f240 12af movw r2, #431 ; 0x1af - 8017854: 4927 ldr r1, [pc, #156] ; (80178f4 ) - 8017856: 4826 ldr r0, [pc, #152] ; (80178f0 ) - 8017858: f00a f896 bl 8021988 - while (rem_len > q->len) { - 801785c: 68fb ldr r3, [r7, #12] - 801785e: 895b ldrh r3, [r3, #10] - 8017860: 897a ldrh r2, [r7, #10] - 8017862: 429a cmp r2, r3 - 8017864: d8e1 bhi.n 801782a - /* 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) - 8017866: 68fb ldr r3, [r7, #12] - 8017868: 7b1b ldrb r3, [r3, #12] - 801786a: f003 030f and.w r3, r3, #15 - 801786e: 2b00 cmp r3, #0 - 8017870: d121 bne.n 80178b6 - 8017872: 68fb ldr r3, [r7, #12] - 8017874: 895b ldrh r3, [r3, #10] - 8017876: 897a ldrh r2, [r7, #10] - 8017878: 429a cmp r2, r3 - 801787a: d01c beq.n 80178b6 -#if LWIP_SUPPORT_CUSTOM_PBUF - && ((q->flags & PBUF_FLAG_IS_CUSTOM) == 0) - 801787c: 68fb ldr r3, [r7, #12] - 801787e: 7b5b ldrb r3, [r3, #13] - 8017880: f003 0302 and.w r3, r3, #2 - 8017884: 2b00 cmp r3, #0 - 8017886: d116 bne.n 80178b6 -#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)); - 8017888: 68fb ldr r3, [r7, #12] - 801788a: 685a ldr r2, [r3, #4] - 801788c: 68fb ldr r3, [r7, #12] - 801788e: 1ad3 subs r3, r2, r3 - 8017890: b29a uxth r2, r3 - 8017892: 897b ldrh r3, [r7, #10] - 8017894: 4413 add r3, r2 - 8017896: b29b uxth r3, r3 - 8017898: 4619 mov r1, r3 - 801789a: 68f8 ldr r0, [r7, #12] - 801789c: f7fe fe4c bl 8016538 - 80178a0: 60f8 str r0, [r7, #12] - LWIP_ASSERT("mem_trim returned q == NULL", q != NULL); - 80178a2: 68fb ldr r3, [r7, #12] - 80178a4: 2b00 cmp r3, #0 - 80178a6: d106 bne.n 80178b6 - 80178a8: 4b0f ldr r3, [pc, #60] ; (80178e8 ) - 80178aa: f240 12bd movw r2, #445 ; 0x1bd - 80178ae: 4912 ldr r1, [pc, #72] ; (80178f8 ) - 80178b0: 480f ldr r0, [pc, #60] ; (80178f0 ) - 80178b2: f00a f869 bl 8021988 - } - /* adjust length fields for new last pbuf */ - q->len = rem_len; - 80178b6: 68fb ldr r3, [r7, #12] - 80178b8: 897a ldrh r2, [r7, #10] - 80178ba: 815a strh r2, [r3, #10] - q->tot_len = q->len; - 80178bc: 68fb ldr r3, [r7, #12] - 80178be: 895a ldrh r2, [r3, #10] - 80178c0: 68fb ldr r3, [r7, #12] - 80178c2: 811a strh r2, [r3, #8] - - /* any remaining pbufs in chain? */ - if (q->next != NULL) { - 80178c4: 68fb ldr r3, [r7, #12] - 80178c6: 681b ldr r3, [r3, #0] - 80178c8: 2b00 cmp r3, #0 - 80178ca: d004 beq.n 80178d6 - /* free remaining pbufs in chain */ - pbuf_free(q->next); - 80178cc: 68fb ldr r3, [r7, #12] - 80178ce: 681b ldr r3, [r3, #0] - 80178d0: 4618 mov r0, r3 - 80178d2: f000 f911 bl 8017af8 - } - /* q is last packet in chain */ - q->next = NULL; - 80178d6: 68fb ldr r3, [r7, #12] - 80178d8: 2200 movs r2, #0 - 80178da: 601a str r2, [r3, #0] - 80178dc: e000 b.n 80178e0 - return; - 80178de: bf00 nop - -} - 80178e0: 3710 adds r7, #16 - 80178e2: 46bd mov sp, r7 - 80178e4: bd80 pop {r7, pc} - 80178e6: bf00 nop - 80178e8: 080246a8 .word 0x080246a8 - 80178ec: 080247c0 .word 0x080247c0 - 80178f0: 08024708 .word 0x08024708 - 80178f4: 080247d8 .word 0x080247d8 - 80178f8: 080247f0 .word 0x080247f0 - -080178fc : - * @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) -{ - 80178fc: b580 push {r7, lr} - 80178fe: b086 sub sp, #24 - 8017900: af00 add r7, sp, #0 - 8017902: 60f8 str r0, [r7, #12] - 8017904: 60b9 str r1, [r7, #8] - 8017906: 4613 mov r3, r2 - 8017908: 71fb strb r3, [r7, #7] - u16_t type_internal; - void *payload; - u16_t increment_magnitude; - - LWIP_ASSERT("p != NULL", p != NULL); - 801790a: 68fb ldr r3, [r7, #12] - 801790c: 2b00 cmp r3, #0 - 801790e: d106 bne.n 801791e - 8017910: 4b2b ldr r3, [pc, #172] ; (80179c0 ) - 8017912: f240 12df movw r2, #479 ; 0x1df - 8017916: 492b ldr r1, [pc, #172] ; (80179c4 ) - 8017918: 482b ldr r0, [pc, #172] ; (80179c8 ) - 801791a: f00a f835 bl 8021988 - if ((p == NULL) || (header_size_increment > 0xFFFF)) { - 801791e: 68fb ldr r3, [r7, #12] - 8017920: 2b00 cmp r3, #0 - 8017922: d003 beq.n 801792c - 8017924: 68bb ldr r3, [r7, #8] - 8017926: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 801792a: d301 bcc.n 8017930 - return 1; - 801792c: 2301 movs r3, #1 - 801792e: e043 b.n 80179b8 - } - if (header_size_increment == 0) { - 8017930: 68bb ldr r3, [r7, #8] - 8017932: 2b00 cmp r3, #0 - 8017934: d101 bne.n 801793a - return 0; - 8017936: 2300 movs r3, #0 - 8017938: e03e b.n 80179b8 - } - - increment_magnitude = (u16_t)header_size_increment; - 801793a: 68bb ldr r3, [r7, #8] - 801793c: 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) { - 801793e: 68fb ldr r3, [r7, #12] - 8017940: 891a ldrh r2, [r3, #8] - 8017942: 8a7b ldrh r3, [r7, #18] - 8017944: 4413 add r3, r2 - 8017946: b29b uxth r3, r3 - 8017948: 8a7a ldrh r2, [r7, #18] - 801794a: 429a cmp r2, r3 - 801794c: d901 bls.n 8017952 - return 1; - 801794e: 2301 movs r3, #1 - 8017950: e032 b.n 80179b8 - } - - type_internal = p->type_internal; - 8017952: 68fb ldr r3, [r7, #12] - 8017954: 7b1b ldrb r3, [r3, #12] - 8017956: 823b strh r3, [r7, #16] - - /* pbuf types containing payloads? */ - if (type_internal & PBUF_TYPE_FLAG_STRUCT_DATA_CONTIGUOUS) { - 8017958: 8a3b ldrh r3, [r7, #16] - 801795a: f003 0380 and.w r3, r3, #128 ; 0x80 - 801795e: 2b00 cmp r3, #0 - 8017960: d00c beq.n 801797c - /* set new payload pointer */ - payload = (u8_t *)p->payload - header_size_increment; - 8017962: 68fb ldr r3, [r7, #12] - 8017964: 685a ldr r2, [r3, #4] - 8017966: 68bb ldr r3, [r7, #8] - 8017968: 425b negs r3, r3 - 801796a: 4413 add r3, r2 - 801796c: 617b str r3, [r7, #20] - /* boundary check fails? */ - if ((u8_t *)payload < (u8_t *)p + SIZEOF_STRUCT_PBUF) { - 801796e: 68fb ldr r3, [r7, #12] - 8017970: 3310 adds r3, #16 - 8017972: 697a ldr r2, [r7, #20] - 8017974: 429a cmp r2, r3 - 8017976: d20d bcs.n 8017994 - 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; - 8017978: 2301 movs r3, #1 - 801797a: e01d b.n 80179b8 - } - /* pbuf types referring to external payloads? */ - } else { - /* hide a header in the payload? */ - if (force) { - 801797c: 79fb ldrb r3, [r7, #7] - 801797e: 2b00 cmp r3, #0 - 8017980: d006 beq.n 8017990 - payload = (u8_t *)p->payload - header_size_increment; - 8017982: 68fb ldr r3, [r7, #12] - 8017984: 685a ldr r2, [r3, #4] - 8017986: 68bb ldr r3, [r7, #8] - 8017988: 425b negs r3, r3 - 801798a: 4413 add r3, r2 - 801798c: 617b str r3, [r7, #20] - 801798e: e001 b.n 8017994 - } else { - /* cannot expand payload to front (yet!) - * bail out unsuccessfully */ - return 1; - 8017990: 2301 movs r3, #1 - 8017992: e011 b.n 80179b8 - } - 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; - 8017994: 68fb ldr r3, [r7, #12] - 8017996: 697a ldr r2, [r7, #20] - 8017998: 605a str r2, [r3, #4] - p->len = (u16_t)(p->len + increment_magnitude); - 801799a: 68fb ldr r3, [r7, #12] - 801799c: 895a ldrh r2, [r3, #10] - 801799e: 8a7b ldrh r3, [r7, #18] - 80179a0: 4413 add r3, r2 - 80179a2: b29a uxth r2, r3 - 80179a4: 68fb ldr r3, [r7, #12] - 80179a6: 815a strh r2, [r3, #10] - p->tot_len = (u16_t)(p->tot_len + increment_magnitude); - 80179a8: 68fb ldr r3, [r7, #12] - 80179aa: 891a ldrh r2, [r3, #8] - 80179ac: 8a7b ldrh r3, [r7, #18] - 80179ae: 4413 add r3, r2 - 80179b0: b29a uxth r2, r3 - 80179b2: 68fb ldr r3, [r7, #12] - 80179b4: 811a strh r2, [r3, #8] - - - return 0; - 80179b6: 2300 movs r3, #0 -} - 80179b8: 4618 mov r0, r3 - 80179ba: 3718 adds r7, #24 - 80179bc: 46bd mov sp, r7 - 80179be: bd80 pop {r7, pc} - 80179c0: 080246a8 .word 0x080246a8 - 80179c4: 0802480c .word 0x0802480c - 80179c8: 08024708 .word 0x08024708 - -080179cc : - * @return non-zero on failure, zero on success. - * - */ -u8_t -pbuf_add_header(struct pbuf *p, size_t header_size_increment) -{ - 80179cc: b580 push {r7, lr} - 80179ce: b082 sub sp, #8 - 80179d0: af00 add r7, sp, #0 - 80179d2: 6078 str r0, [r7, #4] - 80179d4: 6039 str r1, [r7, #0] - return pbuf_add_header_impl(p, header_size_increment, 0); - 80179d6: 2200 movs r2, #0 - 80179d8: 6839 ldr r1, [r7, #0] - 80179da: 6878 ldr r0, [r7, #4] - 80179dc: f7ff ff8e bl 80178fc - 80179e0: 4603 mov r3, r0 -} - 80179e2: 4618 mov r0, r3 - 80179e4: 3708 adds r7, #8 - 80179e6: 46bd mov sp, r7 - 80179e8: bd80 pop {r7, pc} - ... - -080179ec : - * @return non-zero on failure, zero on success. - * - */ -u8_t -pbuf_remove_header(struct pbuf *p, size_t header_size_decrement) -{ - 80179ec: b580 push {r7, lr} - 80179ee: b084 sub sp, #16 - 80179f0: af00 add r7, sp, #0 - 80179f2: 6078 str r0, [r7, #4] - 80179f4: 6039 str r1, [r7, #0] - void *payload; - u16_t increment_magnitude; - - LWIP_ASSERT("p != NULL", p != NULL); - 80179f6: 687b ldr r3, [r7, #4] - 80179f8: 2b00 cmp r3, #0 - 80179fa: d106 bne.n 8017a0a - 80179fc: 4b20 ldr r3, [pc, #128] ; (8017a80 ) - 80179fe: f240 224b movw r2, #587 ; 0x24b - 8017a02: 4920 ldr r1, [pc, #128] ; (8017a84 ) - 8017a04: 4820 ldr r0, [pc, #128] ; (8017a88 ) - 8017a06: f009 ffbf bl 8021988 - if ((p == NULL) || (header_size_decrement > 0xFFFF)) { - 8017a0a: 687b ldr r3, [r7, #4] - 8017a0c: 2b00 cmp r3, #0 - 8017a0e: d003 beq.n 8017a18 - 8017a10: 683b ldr r3, [r7, #0] - 8017a12: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8017a16: d301 bcc.n 8017a1c - return 1; - 8017a18: 2301 movs r3, #1 - 8017a1a: e02c b.n 8017a76 - } - if (header_size_decrement == 0) { - 8017a1c: 683b ldr r3, [r7, #0] - 8017a1e: 2b00 cmp r3, #0 - 8017a20: d101 bne.n 8017a26 - return 0; - 8017a22: 2300 movs r3, #0 - 8017a24: e027 b.n 8017a76 - } - - increment_magnitude = (u16_t)header_size_decrement; - 8017a26: 683b ldr r3, [r7, #0] - 8017a28: 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;); - 8017a2a: 687b ldr r3, [r7, #4] - 8017a2c: 895b ldrh r3, [r3, #10] - 8017a2e: 89fa ldrh r2, [r7, #14] - 8017a30: 429a cmp r2, r3 - 8017a32: d908 bls.n 8017a46 - 8017a34: 4b12 ldr r3, [pc, #72] ; (8017a80 ) - 8017a36: f240 2255 movw r2, #597 ; 0x255 - 8017a3a: 4914 ldr r1, [pc, #80] ; (8017a8c ) - 8017a3c: 4812 ldr r0, [pc, #72] ; (8017a88 ) - 8017a3e: f009 ffa3 bl 8021988 - 8017a42: 2301 movs r3, #1 - 8017a44: e017 b.n 8017a76 - - /* remember current payload pointer */ - payload = p->payload; - 8017a46: 687b ldr r3, [r7, #4] - 8017a48: 685b ldr r3, [r3, #4] - 8017a4a: 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; - 8017a4c: 687b ldr r3, [r7, #4] - 8017a4e: 685a ldr r2, [r3, #4] - 8017a50: 683b ldr r3, [r7, #0] - 8017a52: 441a add r2, r3 - 8017a54: 687b ldr r3, [r7, #4] - 8017a56: 605a str r2, [r3, #4] - /* modify pbuf length fields */ - p->len = (u16_t)(p->len - increment_magnitude); - 8017a58: 687b ldr r3, [r7, #4] - 8017a5a: 895a ldrh r2, [r3, #10] - 8017a5c: 89fb ldrh r3, [r7, #14] - 8017a5e: 1ad3 subs r3, r2, r3 - 8017a60: b29a uxth r2, r3 - 8017a62: 687b ldr r3, [r7, #4] - 8017a64: 815a strh r2, [r3, #10] - p->tot_len = (u16_t)(p->tot_len - increment_magnitude); - 8017a66: 687b ldr r3, [r7, #4] - 8017a68: 891a ldrh r2, [r3, #8] - 8017a6a: 89fb ldrh r3, [r7, #14] - 8017a6c: 1ad3 subs r3, r2, r3 - 8017a6e: b29a uxth r2, r3 - 8017a70: 687b ldr r3, [r7, #4] - 8017a72: 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; - 8017a74: 2300 movs r3, #0 -} - 8017a76: 4618 mov r0, r3 - 8017a78: 3710 adds r7, #16 - 8017a7a: 46bd mov sp, r7 - 8017a7c: bd80 pop {r7, pc} - 8017a7e: bf00 nop - 8017a80: 080246a8 .word 0x080246a8 - 8017a84: 0802480c .word 0x0802480c - 8017a88: 08024708 .word 0x08024708 - 8017a8c: 08024818 .word 0x08024818 - -08017a90 : - -static u8_t -pbuf_header_impl(struct pbuf *p, s16_t header_size_increment, u8_t force) -{ - 8017a90: b580 push {r7, lr} - 8017a92: b082 sub sp, #8 - 8017a94: af00 add r7, sp, #0 - 8017a96: 6078 str r0, [r7, #4] - 8017a98: 460b mov r3, r1 - 8017a9a: 807b strh r3, [r7, #2] - 8017a9c: 4613 mov r3, r2 - 8017a9e: 707b strb r3, [r7, #1] - if (header_size_increment < 0) { - 8017aa0: f9b7 3002 ldrsh.w r3, [r7, #2] - 8017aa4: 2b00 cmp r3, #0 - 8017aa6: da08 bge.n 8017aba - return pbuf_remove_header(p, (size_t) - header_size_increment); - 8017aa8: f9b7 3002 ldrsh.w r3, [r7, #2] - 8017aac: 425b negs r3, r3 - 8017aae: 4619 mov r1, r3 - 8017ab0: 6878 ldr r0, [r7, #4] - 8017ab2: f7ff ff9b bl 80179ec - 8017ab6: 4603 mov r3, r0 - 8017ab8: e007 b.n 8017aca - } else { - return pbuf_add_header_impl(p, (size_t)header_size_increment, force); - 8017aba: f9b7 3002 ldrsh.w r3, [r7, #2] - 8017abe: 787a ldrb r2, [r7, #1] - 8017ac0: 4619 mov r1, r3 - 8017ac2: 6878 ldr r0, [r7, #4] - 8017ac4: f7ff ff1a bl 80178fc - 8017ac8: 4603 mov r3, r0 - } -} - 8017aca: 4618 mov r0, r3 - 8017acc: 3708 adds r7, #8 - 8017ace: 46bd mov sp, r7 - 8017ad0: bd80 pop {r7, pc} - -08017ad2 : - * 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) -{ - 8017ad2: b580 push {r7, lr} - 8017ad4: b082 sub sp, #8 - 8017ad6: af00 add r7, sp, #0 - 8017ad8: 6078 str r0, [r7, #4] - 8017ada: 460b mov r3, r1 - 8017adc: 807b strh r3, [r7, #2] - return pbuf_header_impl(p, header_size_increment, 1); - 8017ade: f9b7 3002 ldrsh.w r3, [r7, #2] - 8017ae2: 2201 movs r2, #1 - 8017ae4: 4619 mov r1, r3 - 8017ae6: 6878 ldr r0, [r7, #4] - 8017ae8: f7ff ffd2 bl 8017a90 - 8017aec: 4603 mov r3, r0 -} - 8017aee: 4618 mov r0, r3 - 8017af0: 3708 adds r7, #8 - 8017af2: 46bd mov sp, r7 - 8017af4: bd80 pop {r7, pc} - ... - -08017af8 : - * 1->1->1 becomes ....... - * - */ -u8_t -pbuf_free(struct pbuf *p) -{ - 8017af8: b580 push {r7, lr} - 8017afa: b088 sub sp, #32 - 8017afc: af00 add r7, sp, #0 - 8017afe: 6078 str r0, [r7, #4] - u8_t alloc_src; - struct pbuf *q; - u8_t count; - - if (p == NULL) { - 8017b00: 687b ldr r3, [r7, #4] - 8017b02: 2b00 cmp r3, #0 - 8017b04: d10b bne.n 8017b1e - LWIP_ASSERT("p != NULL", p != NULL); - 8017b06: 687b ldr r3, [r7, #4] - 8017b08: 2b00 cmp r3, #0 - 8017b0a: d106 bne.n 8017b1a - 8017b0c: 4b3b ldr r3, [pc, #236] ; (8017bfc ) - 8017b0e: f44f 7237 mov.w r2, #732 ; 0x2dc - 8017b12: 493b ldr r1, [pc, #236] ; (8017c00 ) - 8017b14: 483b ldr r0, [pc, #236] ; (8017c04 ) - 8017b16: f009 ff37 bl 8021988 - /* 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; - 8017b1a: 2300 movs r3, #0 - 8017b1c: e069 b.n 8017bf2 - } - LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free(%p)\n", (void *)p)); - - PERF_START; - - count = 0; - 8017b1e: 2300 movs r3, #0 - 8017b20: 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) { - 8017b22: e062 b.n 8017bea - 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); - 8017b24: f009 fd96 bl 8021654 - 8017b28: 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); - 8017b2a: 687b ldr r3, [r7, #4] - 8017b2c: 7b9b ldrb r3, [r3, #14] - 8017b2e: 2b00 cmp r3, #0 - 8017b30: d106 bne.n 8017b40 - 8017b32: 4b32 ldr r3, [pc, #200] ; (8017bfc ) - 8017b34: f240 22f1 movw r2, #753 ; 0x2f1 - 8017b38: 4933 ldr r1, [pc, #204] ; (8017c08 ) - 8017b3a: 4832 ldr r0, [pc, #200] ; (8017c04 ) - 8017b3c: f009 ff24 bl 8021988 - /* decrease reference count (number of pointers to pbuf) */ - ref = --(p->ref); - 8017b40: 687b ldr r3, [r7, #4] - 8017b42: 7b9b ldrb r3, [r3, #14] - 8017b44: 3b01 subs r3, #1 - 8017b46: b2da uxtb r2, r3 - 8017b48: 687b ldr r3, [r7, #4] - 8017b4a: 739a strb r2, [r3, #14] - 8017b4c: 687b ldr r3, [r7, #4] - 8017b4e: 7b9b ldrb r3, [r3, #14] - 8017b50: 75fb strb r3, [r7, #23] - SYS_ARCH_UNPROTECT(old_level); - 8017b52: 69b8 ldr r0, [r7, #24] - 8017b54: f009 fd8c bl 8021670 - /* this pbuf is no longer referenced to? */ - if (ref == 0) { - 8017b58: 7dfb ldrb r3, [r7, #23] - 8017b5a: 2b00 cmp r3, #0 - 8017b5c: d143 bne.n 8017be6 - /* remember next pbuf in chain for next iteration */ - q = p->next; - 8017b5e: 687b ldr r3, [r7, #4] - 8017b60: 681b ldr r3, [r3, #0] - 8017b62: 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); - 8017b64: 687b ldr r3, [r7, #4] - 8017b66: 7b1b ldrb r3, [r3, #12] - 8017b68: f003 030f and.w r3, r3, #15 - 8017b6c: 73fb strb r3, [r7, #15] -#if LWIP_SUPPORT_CUSTOM_PBUF - /* is this a custom pbuf? */ - if ((p->flags & PBUF_FLAG_IS_CUSTOM) != 0) { - 8017b6e: 687b ldr r3, [r7, #4] - 8017b70: 7b5b ldrb r3, [r3, #13] - 8017b72: f003 0302 and.w r3, r3, #2 - 8017b76: 2b00 cmp r3, #0 - 8017b78: d011 beq.n 8017b9e - struct pbuf_custom *pc = (struct pbuf_custom *)p; - 8017b7a: 687b ldr r3, [r7, #4] - 8017b7c: 60bb str r3, [r7, #8] - LWIP_ASSERT("pc->custom_free_function != NULL", pc->custom_free_function != NULL); - 8017b7e: 68bb ldr r3, [r7, #8] - 8017b80: 691b ldr r3, [r3, #16] - 8017b82: 2b00 cmp r3, #0 - 8017b84: d106 bne.n 8017b94 - 8017b86: 4b1d ldr r3, [pc, #116] ; (8017bfc ) - 8017b88: f240 22ff movw r2, #767 ; 0x2ff - 8017b8c: 491f ldr r1, [pc, #124] ; (8017c0c ) - 8017b8e: 481d ldr r0, [pc, #116] ; (8017c04 ) - 8017b90: f009 fefa bl 8021988 - pc->custom_free_function(p); - 8017b94: 68bb ldr r3, [r7, #8] - 8017b96: 691b ldr r3, [r3, #16] - 8017b98: 6878 ldr r0, [r7, #4] - 8017b9a: 4798 blx r3 - 8017b9c: e01d b.n 8017bda - } 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) { - 8017b9e: 7bfb ldrb r3, [r7, #15] - 8017ba0: 2b02 cmp r3, #2 - 8017ba2: d104 bne.n 8017bae - memp_free(MEMP_PBUF_POOL, p); - 8017ba4: 6879 ldr r1, [r7, #4] - 8017ba6: 200c movs r0, #12 - 8017ba8: f7ff f808 bl 8016bbc - 8017bac: e015 b.n 8017bda - /* is this a ROM or RAM referencing pbuf? */ - } else if (alloc_src == PBUF_TYPE_ALLOC_SRC_MASK_STD_MEMP_PBUF) { - 8017bae: 7bfb ldrb r3, [r7, #15] - 8017bb0: 2b01 cmp r3, #1 - 8017bb2: d104 bne.n 8017bbe - memp_free(MEMP_PBUF, p); - 8017bb4: 6879 ldr r1, [r7, #4] - 8017bb6: 200b movs r0, #11 - 8017bb8: f7ff f800 bl 8016bbc - 8017bbc: e00d b.n 8017bda - /* type == PBUF_RAM */ - } else if (alloc_src == PBUF_TYPE_ALLOC_SRC_MASK_STD_HEAP) { - 8017bbe: 7bfb ldrb r3, [r7, #15] - 8017bc0: 2b00 cmp r3, #0 - 8017bc2: d103 bne.n 8017bcc - mem_free(p); - 8017bc4: 6878 ldr r0, [r7, #4] - 8017bc6: f7fe fc13 bl 80163f0 - 8017bca: e006 b.n 8017bda - } else { - /* @todo: support freeing other types */ - LWIP_ASSERT("invalid pbuf type", 0); - 8017bcc: 4b0b ldr r3, [pc, #44] ; (8017bfc ) - 8017bce: f240 320f movw r2, #783 ; 0x30f - 8017bd2: 490f ldr r1, [pc, #60] ; (8017c10 ) - 8017bd4: 480b ldr r0, [pc, #44] ; (8017c04 ) - 8017bd6: f009 fed7 bl 8021988 - } - } - count++; - 8017bda: 7ffb ldrb r3, [r7, #31] - 8017bdc: 3301 adds r3, #1 - 8017bde: 77fb strb r3, [r7, #31] - /* proceed to next pbuf */ - p = q; - 8017be0: 693b ldr r3, [r7, #16] - 8017be2: 607b str r3, [r7, #4] - 8017be4: e001 b.n 8017bea - /* 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; - 8017be6: 2300 movs r3, #0 - 8017be8: 607b str r3, [r7, #4] - while (p != NULL) { - 8017bea: 687b ldr r3, [r7, #4] - 8017bec: 2b00 cmp r3, #0 - 8017bee: d199 bne.n 8017b24 - } - } - PERF_STOP("pbuf_free"); - /* return number of de-allocated pbufs */ - return count; - 8017bf0: 7ffb ldrb r3, [r7, #31] -} - 8017bf2: 4618 mov r0, r3 - 8017bf4: 3720 adds r7, #32 - 8017bf6: 46bd mov sp, r7 - 8017bf8: bd80 pop {r7, pc} - 8017bfa: bf00 nop - 8017bfc: 080246a8 .word 0x080246a8 - 8017c00: 0802480c .word 0x0802480c - 8017c04: 08024708 .word 0x08024708 - 8017c08: 08024838 .word 0x08024838 - 8017c0c: 08024850 .word 0x08024850 - 8017c10: 08024874 .word 0x08024874 - -08017c14 : - * @param p first pbuf of chain - * @return the number of pbufs in a chain - */ -u16_t -pbuf_clen(const struct pbuf *p) -{ - 8017c14: b480 push {r7} - 8017c16: b085 sub sp, #20 - 8017c18: af00 add r7, sp, #0 - 8017c1a: 6078 str r0, [r7, #4] - u16_t len; - - len = 0; - 8017c1c: 2300 movs r3, #0 - 8017c1e: 81fb strh r3, [r7, #14] - while (p != NULL) { - 8017c20: e005 b.n 8017c2e - ++len; - 8017c22: 89fb ldrh r3, [r7, #14] - 8017c24: 3301 adds r3, #1 - 8017c26: 81fb strh r3, [r7, #14] - p = p->next; - 8017c28: 687b ldr r3, [r7, #4] - 8017c2a: 681b ldr r3, [r3, #0] - 8017c2c: 607b str r3, [r7, #4] - while (p != NULL) { - 8017c2e: 687b ldr r3, [r7, #4] - 8017c30: 2b00 cmp r3, #0 - 8017c32: d1f6 bne.n 8017c22 - } - return len; - 8017c34: 89fb ldrh r3, [r7, #14] -} - 8017c36: 4618 mov r0, r3 - 8017c38: 3714 adds r7, #20 - 8017c3a: 46bd mov sp, r7 - 8017c3c: f85d 7b04 ldr.w r7, [sp], #4 - 8017c40: 4770 bx lr - ... - -08017c44 : - * @param p pbuf to increase reference counter of - * - */ -void -pbuf_ref(struct pbuf *p) -{ - 8017c44: b580 push {r7, lr} - 8017c46: b084 sub sp, #16 - 8017c48: af00 add r7, sp, #0 - 8017c4a: 6078 str r0, [r7, #4] - /* pbuf given? */ - if (p != NULL) { - 8017c4c: 687b ldr r3, [r7, #4] - 8017c4e: 2b00 cmp r3, #0 - 8017c50: d016 beq.n 8017c80 - SYS_ARCH_SET(p->ref, (LWIP_PBUF_REF_T)(p->ref + 1)); - 8017c52: f009 fcff bl 8021654 - 8017c56: 60f8 str r0, [r7, #12] - 8017c58: 687b ldr r3, [r7, #4] - 8017c5a: 7b9b ldrb r3, [r3, #14] - 8017c5c: 3301 adds r3, #1 - 8017c5e: b2da uxtb r2, r3 - 8017c60: 687b ldr r3, [r7, #4] - 8017c62: 739a strb r2, [r3, #14] - 8017c64: 68f8 ldr r0, [r7, #12] - 8017c66: f009 fd03 bl 8021670 - LWIP_ASSERT("pbuf ref overflow", p->ref > 0); - 8017c6a: 687b ldr r3, [r7, #4] - 8017c6c: 7b9b ldrb r3, [r3, #14] - 8017c6e: 2b00 cmp r3, #0 - 8017c70: d106 bne.n 8017c80 - 8017c72: 4b05 ldr r3, [pc, #20] ; (8017c88 ) - 8017c74: f240 3242 movw r2, #834 ; 0x342 - 8017c78: 4904 ldr r1, [pc, #16] ; (8017c8c ) - 8017c7a: 4805 ldr r0, [pc, #20] ; (8017c90 ) - 8017c7c: f009 fe84 bl 8021988 - } -} - 8017c80: bf00 nop - 8017c82: 3710 adds r7, #16 - 8017c84: 46bd mov sp, r7 - 8017c86: bd80 pop {r7, pc} - 8017c88: 080246a8 .word 0x080246a8 - 8017c8c: 08024888 .word 0x08024888 - 8017c90: 08024708 .word 0x08024708 - -08017c94 : - * - * @see pbuf_chain() - */ -void -pbuf_cat(struct pbuf *h, struct pbuf *t) -{ - 8017c94: b580 push {r7, lr} - 8017c96: b084 sub sp, #16 - 8017c98: af00 add r7, sp, #0 - 8017c9a: 6078 str r0, [r7, #4] - 8017c9c: 6039 str r1, [r7, #0] - struct pbuf *p; - - LWIP_ERROR("(h != NULL) && (t != NULL) (programmer violates API)", - 8017c9e: 687b ldr r3, [r7, #4] - 8017ca0: 2b00 cmp r3, #0 - 8017ca2: d002 beq.n 8017caa - 8017ca4: 683b ldr r3, [r7, #0] - 8017ca6: 2b00 cmp r3, #0 - 8017ca8: d107 bne.n 8017cba - 8017caa: 4b20 ldr r3, [pc, #128] ; (8017d2c ) - 8017cac: f240 3259 movw r2, #857 ; 0x359 - 8017cb0: 491f ldr r1, [pc, #124] ; (8017d30 ) - 8017cb2: 4820 ldr r0, [pc, #128] ; (8017d34 ) - 8017cb4: f009 fe68 bl 8021988 - 8017cb8: e034 b.n 8017d24 - ((h != NULL) && (t != NULL)), return;); - - /* proceed to last pbuf of chain */ - for (p = h; p->next != NULL; p = p->next) { - 8017cba: 687b ldr r3, [r7, #4] - 8017cbc: 60fb str r3, [r7, #12] - 8017cbe: e00a b.n 8017cd6 - /* add total length of second chain to all totals of first chain */ - p->tot_len = (u16_t)(p->tot_len + t->tot_len); - 8017cc0: 68fb ldr r3, [r7, #12] - 8017cc2: 891a ldrh r2, [r3, #8] - 8017cc4: 683b ldr r3, [r7, #0] - 8017cc6: 891b ldrh r3, [r3, #8] - 8017cc8: 4413 add r3, r2 - 8017cca: b29a uxth r2, r3 - 8017ccc: 68fb ldr r3, [r7, #12] - 8017cce: 811a strh r2, [r3, #8] - for (p = h; p->next != NULL; p = p->next) { - 8017cd0: 68fb ldr r3, [r7, #12] - 8017cd2: 681b ldr r3, [r3, #0] - 8017cd4: 60fb str r3, [r7, #12] - 8017cd6: 68fb ldr r3, [r7, #12] - 8017cd8: 681b ldr r3, [r3, #0] - 8017cda: 2b00 cmp r3, #0 - 8017cdc: d1f0 bne.n 8017cc0 - } - /* { 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); - 8017cde: 68fb ldr r3, [r7, #12] - 8017ce0: 891a ldrh r2, [r3, #8] - 8017ce2: 68fb ldr r3, [r7, #12] - 8017ce4: 895b ldrh r3, [r3, #10] - 8017ce6: 429a cmp r2, r3 - 8017ce8: d006 beq.n 8017cf8 - 8017cea: 4b10 ldr r3, [pc, #64] ; (8017d2c ) - 8017cec: f240 3262 movw r2, #866 ; 0x362 - 8017cf0: 4911 ldr r1, [pc, #68] ; (8017d38 ) - 8017cf2: 4810 ldr r0, [pc, #64] ; (8017d34 ) - 8017cf4: f009 fe48 bl 8021988 - LWIP_ASSERT("p->next == NULL", p->next == NULL); - 8017cf8: 68fb ldr r3, [r7, #12] - 8017cfa: 681b ldr r3, [r3, #0] - 8017cfc: 2b00 cmp r3, #0 - 8017cfe: d006 beq.n 8017d0e - 8017d00: 4b0a ldr r3, [pc, #40] ; (8017d2c ) - 8017d02: f240 3263 movw r2, #867 ; 0x363 - 8017d06: 490d ldr r1, [pc, #52] ; (8017d3c ) - 8017d08: 480a ldr r0, [pc, #40] ; (8017d34 ) - 8017d0a: f009 fe3d bl 8021988 - /* add total length of second chain to last pbuf total of first chain */ - p->tot_len = (u16_t)(p->tot_len + t->tot_len); - 8017d0e: 68fb ldr r3, [r7, #12] - 8017d10: 891a ldrh r2, [r3, #8] - 8017d12: 683b ldr r3, [r7, #0] - 8017d14: 891b ldrh r3, [r3, #8] - 8017d16: 4413 add r3, r2 - 8017d18: b29a uxth r2, r3 - 8017d1a: 68fb ldr r3, [r7, #12] - 8017d1c: 811a strh r2, [r3, #8] - /* chain last pbuf of head (p) with first of tail (t) */ - p->next = t; - 8017d1e: 68fb ldr r3, [r7, #12] - 8017d20: 683a ldr r2, [r7, #0] - 8017d22: 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. - */ -} - 8017d24: 3710 adds r7, #16 - 8017d26: 46bd mov sp, r7 - 8017d28: bd80 pop {r7, pc} - 8017d2a: bf00 nop - 8017d2c: 080246a8 .word 0x080246a8 - 8017d30: 0802489c .word 0x0802489c - 8017d34: 08024708 .word 0x08024708 - 8017d38: 080248d4 .word 0x080248d4 - 8017d3c: 08024904 .word 0x08024904 - -08017d40 : - * 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) -{ - 8017d40: b580 push {r7, lr} - 8017d42: b086 sub sp, #24 - 8017d44: af00 add r7, sp, #0 - 8017d46: 6078 str r0, [r7, #4] - 8017d48: 6039 str r1, [r7, #0] - size_t offset_to = 0, offset_from = 0, len; - 8017d4a: 2300 movs r3, #0 - 8017d4c: 617b str r3, [r7, #20] - 8017d4e: 2300 movs r3, #0 - 8017d50: 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) && - 8017d52: 687b ldr r3, [r7, #4] - 8017d54: 2b00 cmp r3, #0 - 8017d56: d008 beq.n 8017d6a - 8017d58: 683b ldr r3, [r7, #0] - 8017d5a: 2b00 cmp r3, #0 - 8017d5c: d005 beq.n 8017d6a - 8017d5e: 687b ldr r3, [r7, #4] - 8017d60: 891a ldrh r2, [r3, #8] - 8017d62: 683b ldr r3, [r7, #0] - 8017d64: 891b ldrh r3, [r3, #8] - 8017d66: 429a cmp r2, r3 - 8017d68: d209 bcs.n 8017d7e - 8017d6a: 4b57 ldr r3, [pc, #348] ; (8017ec8 ) - 8017d6c: f240 32c9 movw r2, #969 ; 0x3c9 - 8017d70: 4956 ldr r1, [pc, #344] ; (8017ecc ) - 8017d72: 4857 ldr r0, [pc, #348] ; (8017ed0 ) - 8017d74: f009 fe08 bl 8021988 - 8017d78: f06f 030f mvn.w r3, #15 - 8017d7c: e09f b.n 8017ebe - (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)) { - 8017d7e: 687b ldr r3, [r7, #4] - 8017d80: 895b ldrh r3, [r3, #10] - 8017d82: 461a mov r2, r3 - 8017d84: 697b ldr r3, [r7, #20] - 8017d86: 1ad2 subs r2, r2, r3 - 8017d88: 683b ldr r3, [r7, #0] - 8017d8a: 895b ldrh r3, [r3, #10] - 8017d8c: 4619 mov r1, r3 - 8017d8e: 693b ldr r3, [r7, #16] - 8017d90: 1acb subs r3, r1, r3 - 8017d92: 429a cmp r2, r3 - 8017d94: d306 bcc.n 8017da4 - /* complete current p_from fits into current p_to */ - len = p_from->len - offset_from; - 8017d96: 683b ldr r3, [r7, #0] - 8017d98: 895b ldrh r3, [r3, #10] - 8017d9a: 461a mov r2, r3 - 8017d9c: 693b ldr r3, [r7, #16] - 8017d9e: 1ad3 subs r3, r2, r3 - 8017da0: 60fb str r3, [r7, #12] - 8017da2: e005 b.n 8017db0 - } else { - /* current p_from does not fit into current p_to */ - len = p_to->len - offset_to; - 8017da4: 687b ldr r3, [r7, #4] - 8017da6: 895b ldrh r3, [r3, #10] - 8017da8: 461a mov r2, r3 - 8017daa: 697b ldr r3, [r7, #20] - 8017dac: 1ad3 subs r3, r2, r3 - 8017dae: 60fb str r3, [r7, #12] - } - MEMCPY((u8_t *)p_to->payload + offset_to, (u8_t *)p_from->payload + offset_from, len); - 8017db0: 687b ldr r3, [r7, #4] - 8017db2: 685a ldr r2, [r3, #4] - 8017db4: 697b ldr r3, [r7, #20] - 8017db6: 18d0 adds r0, r2, r3 - 8017db8: 683b ldr r3, [r7, #0] - 8017dba: 685a ldr r2, [r3, #4] - 8017dbc: 693b ldr r3, [r7, #16] - 8017dbe: 4413 add r3, r2 - 8017dc0: 68fa ldr r2, [r7, #12] - 8017dc2: 4619 mov r1, r3 - 8017dc4: f00a f80f bl 8021de6 - offset_to += len; - 8017dc8: 697a ldr r2, [r7, #20] - 8017dca: 68fb ldr r3, [r7, #12] - 8017dcc: 4413 add r3, r2 - 8017dce: 617b str r3, [r7, #20] - offset_from += len; - 8017dd0: 693a ldr r2, [r7, #16] - 8017dd2: 68fb ldr r3, [r7, #12] - 8017dd4: 4413 add r3, r2 - 8017dd6: 613b str r3, [r7, #16] - LWIP_ASSERT("offset_to <= p_to->len", offset_to <= p_to->len); - 8017dd8: 687b ldr r3, [r7, #4] - 8017dda: 895b ldrh r3, [r3, #10] - 8017ddc: 461a mov r2, r3 - 8017dde: 697b ldr r3, [r7, #20] - 8017de0: 4293 cmp r3, r2 - 8017de2: d906 bls.n 8017df2 - 8017de4: 4b38 ldr r3, [pc, #224] ; (8017ec8 ) - 8017de6: f240 32d9 movw r2, #985 ; 0x3d9 - 8017dea: 493a ldr r1, [pc, #232] ; (8017ed4 ) - 8017dec: 4838 ldr r0, [pc, #224] ; (8017ed0 ) - 8017dee: f009 fdcb bl 8021988 - LWIP_ASSERT("offset_from <= p_from->len", offset_from <= p_from->len); - 8017df2: 683b ldr r3, [r7, #0] - 8017df4: 895b ldrh r3, [r3, #10] - 8017df6: 461a mov r2, r3 - 8017df8: 693b ldr r3, [r7, #16] - 8017dfa: 4293 cmp r3, r2 - 8017dfc: d906 bls.n 8017e0c - 8017dfe: 4b32 ldr r3, [pc, #200] ; (8017ec8 ) - 8017e00: f240 32da movw r2, #986 ; 0x3da - 8017e04: 4934 ldr r1, [pc, #208] ; (8017ed8 ) - 8017e06: 4832 ldr r0, [pc, #200] ; (8017ed0 ) - 8017e08: f009 fdbe bl 8021988 - if (offset_from >= p_from->len) { - 8017e0c: 683b ldr r3, [r7, #0] - 8017e0e: 895b ldrh r3, [r3, #10] - 8017e10: 461a mov r2, r3 - 8017e12: 693b ldr r3, [r7, #16] - 8017e14: 4293 cmp r3, r2 - 8017e16: d304 bcc.n 8017e22 - /* on to next p_from (if any) */ - offset_from = 0; - 8017e18: 2300 movs r3, #0 - 8017e1a: 613b str r3, [r7, #16] - p_from = p_from->next; - 8017e1c: 683b ldr r3, [r7, #0] - 8017e1e: 681b ldr r3, [r3, #0] - 8017e20: 603b str r3, [r7, #0] - } - if (offset_to == p_to->len) { - 8017e22: 687b ldr r3, [r7, #4] - 8017e24: 895b ldrh r3, [r3, #10] - 8017e26: 461a mov r2, r3 - 8017e28: 697b ldr r3, [r7, #20] - 8017e2a: 4293 cmp r3, r2 - 8017e2c: d114 bne.n 8017e58 - /* on to next p_to (if any) */ - offset_to = 0; - 8017e2e: 2300 movs r3, #0 - 8017e30: 617b str r3, [r7, #20] - p_to = p_to->next; - 8017e32: 687b ldr r3, [r7, #4] - 8017e34: 681b ldr r3, [r3, #0] - 8017e36: 607b str r3, [r7, #4] - LWIP_ERROR("p_to != NULL", (p_to != NULL) || (p_from == NULL), return ERR_ARG;); - 8017e38: 687b ldr r3, [r7, #4] - 8017e3a: 2b00 cmp r3, #0 - 8017e3c: d10c bne.n 8017e58 - 8017e3e: 683b ldr r3, [r7, #0] - 8017e40: 2b00 cmp r3, #0 - 8017e42: d009 beq.n 8017e58 - 8017e44: 4b20 ldr r3, [pc, #128] ; (8017ec8 ) - 8017e46: f44f 7279 mov.w r2, #996 ; 0x3e4 - 8017e4a: 4924 ldr r1, [pc, #144] ; (8017edc ) - 8017e4c: 4820 ldr r0, [pc, #128] ; (8017ed0 ) - 8017e4e: f009 fd9b bl 8021988 - 8017e52: f06f 030f mvn.w r3, #15 - 8017e56: e032 b.n 8017ebe - } - - if ((p_from != NULL) && (p_from->len == p_from->tot_len)) { - 8017e58: 683b ldr r3, [r7, #0] - 8017e5a: 2b00 cmp r3, #0 - 8017e5c: d013 beq.n 8017e86 - 8017e5e: 683b ldr r3, [r7, #0] - 8017e60: 895a ldrh r2, [r3, #10] - 8017e62: 683b ldr r3, [r7, #0] - 8017e64: 891b ldrh r3, [r3, #8] - 8017e66: 429a cmp r2, r3 - 8017e68: d10d bne.n 8017e86 - /* don't copy more than one packet! */ - LWIP_ERROR("pbuf_copy() does not allow packet queues!", - 8017e6a: 683b ldr r3, [r7, #0] - 8017e6c: 681b ldr r3, [r3, #0] - 8017e6e: 2b00 cmp r3, #0 - 8017e70: d009 beq.n 8017e86 - 8017e72: 4b15 ldr r3, [pc, #84] ; (8017ec8 ) - 8017e74: f240 32e9 movw r2, #1001 ; 0x3e9 - 8017e78: 4919 ldr r1, [pc, #100] ; (8017ee0 ) - 8017e7a: 4815 ldr r0, [pc, #84] ; (8017ed0 ) - 8017e7c: f009 fd84 bl 8021988 - 8017e80: f06f 0305 mvn.w r3, #5 - 8017e84: e01b b.n 8017ebe - (p_from->next == NULL), return ERR_VAL;); - } - if ((p_to != NULL) && (p_to->len == p_to->tot_len)) { - 8017e86: 687b ldr r3, [r7, #4] - 8017e88: 2b00 cmp r3, #0 - 8017e8a: d013 beq.n 8017eb4 - 8017e8c: 687b ldr r3, [r7, #4] - 8017e8e: 895a ldrh r2, [r3, #10] - 8017e90: 687b ldr r3, [r7, #4] - 8017e92: 891b ldrh r3, [r3, #8] - 8017e94: 429a cmp r2, r3 - 8017e96: d10d bne.n 8017eb4 - /* don't copy more than one packet! */ - LWIP_ERROR("pbuf_copy() does not allow packet queues!", - 8017e98: 687b ldr r3, [r7, #4] - 8017e9a: 681b ldr r3, [r3, #0] - 8017e9c: 2b00 cmp r3, #0 - 8017e9e: d009 beq.n 8017eb4 - 8017ea0: 4b09 ldr r3, [pc, #36] ; (8017ec8 ) - 8017ea2: f240 32ee movw r2, #1006 ; 0x3ee - 8017ea6: 490e ldr r1, [pc, #56] ; (8017ee0 ) - 8017ea8: 4809 ldr r0, [pc, #36] ; (8017ed0 ) - 8017eaa: f009 fd6d bl 8021988 - 8017eae: f06f 0305 mvn.w r3, #5 - 8017eb2: e004 b.n 8017ebe - (p_to->next == NULL), return ERR_VAL;); - } - } while (p_from); - 8017eb4: 683b ldr r3, [r7, #0] - 8017eb6: 2b00 cmp r3, #0 - 8017eb8: f47f af61 bne.w 8017d7e - LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_copy: end of chain reached.\n")); - return ERR_OK; - 8017ebc: 2300 movs r3, #0 -} - 8017ebe: 4618 mov r0, r3 - 8017ec0: 3718 adds r7, #24 - 8017ec2: 46bd mov sp, r7 - 8017ec4: bd80 pop {r7, pc} - 8017ec6: bf00 nop - 8017ec8: 080246a8 .word 0x080246a8 - 8017ecc: 08024950 .word 0x08024950 - 8017ed0: 08024708 .word 0x08024708 - 8017ed4: 08024980 .word 0x08024980 - 8017ed8: 08024998 .word 0x08024998 - 8017edc: 080249b4 .word 0x080249b4 - 8017ee0: 080249c4 .word 0x080249c4 - -08017ee4 : - * @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) -{ - 8017ee4: b580 push {r7, lr} - 8017ee6: b088 sub sp, #32 - 8017ee8: af00 add r7, sp, #0 - 8017eea: 60f8 str r0, [r7, #12] - 8017eec: 60b9 str r1, [r7, #8] - 8017eee: 4611 mov r1, r2 - 8017ef0: 461a mov r2, r3 - 8017ef2: 460b mov r3, r1 - 8017ef4: 80fb strh r3, [r7, #6] - 8017ef6: 4613 mov r3, r2 - 8017ef8: 80bb strh r3, [r7, #4] - const struct pbuf *p; - u16_t left = 0; - 8017efa: 2300 movs r3, #0 - 8017efc: 837b strh r3, [r7, #26] - u16_t buf_copy_len; - u16_t copied_total = 0; - 8017efe: 2300 movs r3, #0 - 8017f00: 82fb strh r3, [r7, #22] - - LWIP_ERROR("pbuf_copy_partial: invalid buf", (buf != NULL), return 0;); - 8017f02: 68fb ldr r3, [r7, #12] - 8017f04: 2b00 cmp r3, #0 - 8017f06: d108 bne.n 8017f1a - 8017f08: 4b2b ldr r3, [pc, #172] ; (8017fb8 ) - 8017f0a: f240 420a movw r2, #1034 ; 0x40a - 8017f0e: 492b ldr r1, [pc, #172] ; (8017fbc ) - 8017f10: 482b ldr r0, [pc, #172] ; (8017fc0 ) - 8017f12: f009 fd39 bl 8021988 - 8017f16: 2300 movs r3, #0 - 8017f18: e04a b.n 8017fb0 - LWIP_ERROR("pbuf_copy_partial: invalid dataptr", (dataptr != NULL), return 0;); - 8017f1a: 68bb ldr r3, [r7, #8] - 8017f1c: 2b00 cmp r3, #0 - 8017f1e: d108 bne.n 8017f32 - 8017f20: 4b25 ldr r3, [pc, #148] ; (8017fb8 ) - 8017f22: f240 420b movw r2, #1035 ; 0x40b - 8017f26: 4927 ldr r1, [pc, #156] ; (8017fc4 ) - 8017f28: 4825 ldr r0, [pc, #148] ; (8017fc0 ) - 8017f2a: f009 fd2d bl 8021988 - 8017f2e: 2300 movs r3, #0 - 8017f30: e03e b.n 8017fb0 - - /* 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) { - 8017f32: 68fb ldr r3, [r7, #12] - 8017f34: 61fb str r3, [r7, #28] - 8017f36: e034 b.n 8017fa2 - if ((offset != 0) && (offset >= p->len)) { - 8017f38: 88bb ldrh r3, [r7, #4] - 8017f3a: 2b00 cmp r3, #0 - 8017f3c: d00a beq.n 8017f54 - 8017f3e: 69fb ldr r3, [r7, #28] - 8017f40: 895b ldrh r3, [r3, #10] - 8017f42: 88ba ldrh r2, [r7, #4] - 8017f44: 429a cmp r2, r3 - 8017f46: d305 bcc.n 8017f54 - /* don't copy from this buffer -> on to the next */ - offset = (u16_t)(offset - p->len); - 8017f48: 69fb ldr r3, [r7, #28] - 8017f4a: 895b ldrh r3, [r3, #10] - 8017f4c: 88ba ldrh r2, [r7, #4] - 8017f4e: 1ad3 subs r3, r2, r3 - 8017f50: 80bb strh r3, [r7, #4] - 8017f52: e023 b.n 8017f9c - } else { - /* copy from this buffer. maybe only partially. */ - buf_copy_len = (u16_t)(p->len - offset); - 8017f54: 69fb ldr r3, [r7, #28] - 8017f56: 895a ldrh r2, [r3, #10] - 8017f58: 88bb ldrh r3, [r7, #4] - 8017f5a: 1ad3 subs r3, r2, r3 - 8017f5c: 833b strh r3, [r7, #24] - if (buf_copy_len > len) { - 8017f5e: 8b3a ldrh r2, [r7, #24] - 8017f60: 88fb ldrh r3, [r7, #6] - 8017f62: 429a cmp r2, r3 - 8017f64: d901 bls.n 8017f6a - buf_copy_len = len; - 8017f66: 88fb ldrh r3, [r7, #6] - 8017f68: 833b strh r3, [r7, #24] - } - /* copy the necessary parts of the buffer */ - MEMCPY(&((char *)dataptr)[left], &((char *)p->payload)[offset], buf_copy_len); - 8017f6a: 8b7b ldrh r3, [r7, #26] - 8017f6c: 68ba ldr r2, [r7, #8] - 8017f6e: 18d0 adds r0, r2, r3 - 8017f70: 69fb ldr r3, [r7, #28] - 8017f72: 685a ldr r2, [r3, #4] - 8017f74: 88bb ldrh r3, [r7, #4] - 8017f76: 4413 add r3, r2 - 8017f78: 8b3a ldrh r2, [r7, #24] - 8017f7a: 4619 mov r1, r3 - 8017f7c: f009 ff33 bl 8021de6 - copied_total = (u16_t)(copied_total + buf_copy_len); - 8017f80: 8afa ldrh r2, [r7, #22] - 8017f82: 8b3b ldrh r3, [r7, #24] - 8017f84: 4413 add r3, r2 - 8017f86: 82fb strh r3, [r7, #22] - left = (u16_t)(left + buf_copy_len); - 8017f88: 8b7a ldrh r2, [r7, #26] - 8017f8a: 8b3b ldrh r3, [r7, #24] - 8017f8c: 4413 add r3, r2 - 8017f8e: 837b strh r3, [r7, #26] - len = (u16_t)(len - buf_copy_len); - 8017f90: 88fa ldrh r2, [r7, #6] - 8017f92: 8b3b ldrh r3, [r7, #24] - 8017f94: 1ad3 subs r3, r2, r3 - 8017f96: 80fb strh r3, [r7, #6] - offset = 0; - 8017f98: 2300 movs r3, #0 - 8017f9a: 80bb strh r3, [r7, #4] - for (p = buf; len != 0 && p != NULL; p = p->next) { - 8017f9c: 69fb ldr r3, [r7, #28] - 8017f9e: 681b ldr r3, [r3, #0] - 8017fa0: 61fb str r3, [r7, #28] - 8017fa2: 88fb ldrh r3, [r7, #6] - 8017fa4: 2b00 cmp r3, #0 - 8017fa6: d002 beq.n 8017fae - 8017fa8: 69fb ldr r3, [r7, #28] - 8017faa: 2b00 cmp r3, #0 - 8017fac: d1c4 bne.n 8017f38 - } - } - return copied_total; - 8017fae: 8afb ldrh r3, [r7, #22] -} - 8017fb0: 4618 mov r0, r3 - 8017fb2: 3720 adds r7, #32 - 8017fb4: 46bd mov sp, r7 - 8017fb6: bd80 pop {r7, pc} - 8017fb8: 080246a8 .word 0x080246a8 - 8017fbc: 080249f0 .word 0x080249f0 - 8017fc0: 08024708 .word 0x08024708 - 8017fc4: 08024a10 .word 0x08024a10 - -08017fc8 : - * - * @return a new pbuf or NULL if allocation fails - */ -struct pbuf * -pbuf_clone(pbuf_layer layer, pbuf_type type, struct pbuf *p) -{ - 8017fc8: b580 push {r7, lr} - 8017fca: b084 sub sp, #16 - 8017fcc: af00 add r7, sp, #0 - 8017fce: 4603 mov r3, r0 - 8017fd0: 603a str r2, [r7, #0] - 8017fd2: 71fb strb r3, [r7, #7] - 8017fd4: 460b mov r3, r1 - 8017fd6: 80bb strh r3, [r7, #4] - struct pbuf *q; - err_t err; - q = pbuf_alloc(layer, p->tot_len, type); - 8017fd8: 683b ldr r3, [r7, #0] - 8017fda: 8919 ldrh r1, [r3, #8] - 8017fdc: 88ba ldrh r2, [r7, #4] - 8017fde: 79fb ldrb r3, [r7, #7] - 8017fe0: 4618 mov r0, r3 - 8017fe2: f7ff faa1 bl 8017528 - 8017fe6: 60f8 str r0, [r7, #12] - if (q == NULL) { - 8017fe8: 68fb ldr r3, [r7, #12] - 8017fea: 2b00 cmp r3, #0 - 8017fec: d101 bne.n 8017ff2 - return NULL; - 8017fee: 2300 movs r3, #0 - 8017ff0: e011 b.n 8018016 - } - err = pbuf_copy(q, p); - 8017ff2: 6839 ldr r1, [r7, #0] - 8017ff4: 68f8 ldr r0, [r7, #12] - 8017ff6: f7ff fea3 bl 8017d40 - 8017ffa: 4603 mov r3, r0 - 8017ffc: 72fb strb r3, [r7, #11] - LWIP_UNUSED_ARG(err); /* in case of LWIP_NOASSERT */ - LWIP_ASSERT("pbuf_copy failed", err == ERR_OK); - 8017ffe: f997 300b ldrsb.w r3, [r7, #11] - 8018002: 2b00 cmp r3, #0 - 8018004: d006 beq.n 8018014 - 8018006: 4b06 ldr r3, [pc, #24] ; (8018020 ) - 8018008: f240 5224 movw r2, #1316 ; 0x524 - 801800c: 4905 ldr r1, [pc, #20] ; (8018024 ) - 801800e: 4806 ldr r0, [pc, #24] ; (8018028 ) - 8018010: f009 fcba bl 8021988 - return q; - 8018014: 68fb ldr r3, [r7, #12] -} - 8018016: 4618 mov r0, r3 - 8018018: 3710 adds r7, #16 - 801801a: 46bd mov sp, r7 - 801801c: bd80 pop {r7, pc} - 801801e: bf00 nop - 8018020: 080246a8 .word 0x080246a8 - 8018024: 08024b1c .word 0x08024b1c - 8018028: 08024708 .word 0x08024708 - -0801802c : -/** - * Initialize this module. - */ -void -tcp_init(void) -{ - 801802c: b580 push {r7, lr} - 801802e: af00 add r7, sp, #0 -#ifdef LWIP_RAND - tcp_port = TCP_ENSURE_LOCAL_PORT_RANGE(LWIP_RAND()); - 8018030: f009 fb2e bl 8021690 - 8018034: 4603 mov r3, r0 - 8018036: b29b uxth r3, r3 - 8018038: f3c3 030d ubfx r3, r3, #0, #14 - 801803c: b29b uxth r3, r3 - 801803e: f5a3 4380 sub.w r3, r3, #16384 ; 0x4000 - 8018042: b29a uxth r2, r3 - 8018044: 4b01 ldr r3, [pc, #4] ; (801804c ) - 8018046: 801a strh r2, [r3, #0] -#endif /* LWIP_RAND */ -} - 8018048: bf00 nop - 801804a: bd80 pop {r7, pc} - 801804c: 2400003c .word 0x2400003c - -08018050 : - -/** Free a tcp pcb */ -void -tcp_free(struct tcp_pcb *pcb) -{ - 8018050: b580 push {r7, lr} - 8018052: b082 sub sp, #8 - 8018054: af00 add r7, sp, #0 - 8018056: 6078 str r0, [r7, #4] - LWIP_ASSERT("tcp_free: LISTEN", pcb->state != LISTEN); - 8018058: 687b ldr r3, [r7, #4] - 801805a: 7d1b ldrb r3, [r3, #20] - 801805c: 2b01 cmp r3, #1 - 801805e: d105 bne.n 801806c - 8018060: 4b06 ldr r3, [pc, #24] ; (801807c ) - 8018062: 22d4 movs r2, #212 ; 0xd4 - 8018064: 4906 ldr r1, [pc, #24] ; (8018080 ) - 8018066: 4807 ldr r0, [pc, #28] ; (8018084 ) - 8018068: f009 fc8e bl 8021988 -#if LWIP_TCP_PCB_NUM_EXT_ARGS - tcp_ext_arg_invoke_callbacks_destroyed(pcb->ext_args); -#endif - memp_free(MEMP_TCP_PCB, pcb); - 801806c: 6879 ldr r1, [r7, #4] - 801806e: 2001 movs r0, #1 - 8018070: f7fe fda4 bl 8016bbc -} - 8018074: bf00 nop - 8018076: 3708 adds r7, #8 - 8018078: 46bd mov sp, r7 - 801807a: bd80 pop {r7, pc} - 801807c: 08024ba8 .word 0x08024ba8 - 8018080: 08024bd8 .word 0x08024bd8 - 8018084: 08024bec .word 0x08024bec - -08018088 : - -/** Free a tcp listen pcb */ -static void -tcp_free_listen(struct tcp_pcb *pcb) -{ - 8018088: b580 push {r7, lr} - 801808a: b082 sub sp, #8 - 801808c: af00 add r7, sp, #0 - 801808e: 6078 str r0, [r7, #4] - LWIP_ASSERT("tcp_free_listen: !LISTEN", pcb->state != LISTEN); - 8018090: 687b ldr r3, [r7, #4] - 8018092: 7d1b ldrb r3, [r3, #20] - 8018094: 2b01 cmp r3, #1 - 8018096: d105 bne.n 80180a4 - 8018098: 4b06 ldr r3, [pc, #24] ; (80180b4 ) - 801809a: 22df movs r2, #223 ; 0xdf - 801809c: 4906 ldr r1, [pc, #24] ; (80180b8 ) - 801809e: 4807 ldr r0, [pc, #28] ; (80180bc ) - 80180a0: f009 fc72 bl 8021988 -#if LWIP_TCP_PCB_NUM_EXT_ARGS - tcp_ext_arg_invoke_callbacks_destroyed(pcb->ext_args); -#endif - memp_free(MEMP_TCP_PCB_LISTEN, pcb); - 80180a4: 6879 ldr r1, [r7, #4] - 80180a6: 2002 movs r0, #2 - 80180a8: f7fe fd88 bl 8016bbc -} - 80180ac: bf00 nop - 80180ae: 3708 adds r7, #8 - 80180b0: 46bd mov sp, r7 - 80180b2: bd80 pop {r7, pc} - 80180b4: 08024ba8 .word 0x08024ba8 - 80180b8: 08024c14 .word 0x08024c14 - 80180bc: 08024bec .word 0x08024bec - -080180c0 : -/** - * Called periodically to dispatch TCP timers. - */ -void -tcp_tmr(void) -{ - 80180c0: b580 push {r7, lr} - 80180c2: af00 add r7, sp, #0 - /* Call tcp_fasttmr() every 250 ms */ - tcp_fasttmr(); - 80180c4: f001 f8f6 bl 80192b4 - - if (++tcp_timer & 1) { - 80180c8: 4b07 ldr r3, [pc, #28] ; (80180e8 ) - 80180ca: 781b ldrb r3, [r3, #0] - 80180cc: 3301 adds r3, #1 - 80180ce: b2da uxtb r2, r3 - 80180d0: 4b05 ldr r3, [pc, #20] ; (80180e8 ) - 80180d2: 701a strb r2, [r3, #0] - 80180d4: 4b04 ldr r3, [pc, #16] ; (80180e8 ) - 80180d6: 781b ldrb r3, [r3, #0] - 80180d8: f003 0301 and.w r3, r3, #1 - 80180dc: 2b00 cmp r3, #0 - 80180de: d001 beq.n 80180e4 - /* Call tcp_slowtmr() every 500 ms, i.e., every other timer - tcp_tmr() is called. */ - tcp_slowtmr(); - 80180e0: f000 fda8 bl 8018c34 - } -} - 80180e4: bf00 nop - 80180e6: bd80 pop {r7, pc} - 80180e8: 2401a495 .word 0x2401a495 - -080180ec : -/** 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) -{ - 80180ec: b580 push {r7, lr} - 80180ee: b084 sub sp, #16 - 80180f0: af00 add r7, sp, #0 - 80180f2: 6078 str r0, [r7, #4] - 80180f4: 6039 str r1, [r7, #0] - struct tcp_pcb *pcb; - - LWIP_ASSERT("tcp_remove_listener: invalid listener", lpcb != NULL); - 80180f6: 683b ldr r3, [r7, #0] - 80180f8: 2b00 cmp r3, #0 - 80180fa: d105 bne.n 8018108 - 80180fc: 4b0d ldr r3, [pc, #52] ; (8018134 ) - 80180fe: 22ff movs r2, #255 ; 0xff - 8018100: 490d ldr r1, [pc, #52] ; (8018138 ) - 8018102: 480e ldr r0, [pc, #56] ; (801813c ) - 8018104: f009 fc40 bl 8021988 - - for (pcb = list; pcb != NULL; pcb = pcb->next) { - 8018108: 687b ldr r3, [r7, #4] - 801810a: 60fb str r3, [r7, #12] - 801810c: e00a b.n 8018124 - if (pcb->listener == lpcb) { - 801810e: 68fb ldr r3, [r7, #12] - 8018110: 6fdb ldr r3, [r3, #124] ; 0x7c - 8018112: 683a ldr r2, [r7, #0] - 8018114: 429a cmp r2, r3 - 8018116: d102 bne.n 801811e - pcb->listener = NULL; - 8018118: 68fb ldr r3, [r7, #12] - 801811a: 2200 movs r2, #0 - 801811c: 67da str r2, [r3, #124] ; 0x7c - for (pcb = list; pcb != NULL; pcb = pcb->next) { - 801811e: 68fb ldr r3, [r7, #12] - 8018120: 68db ldr r3, [r3, #12] - 8018122: 60fb str r3, [r7, #12] - 8018124: 68fb ldr r3, [r7, #12] - 8018126: 2b00 cmp r3, #0 - 8018128: d1f1 bne.n 801810e - } - } -} - 801812a: bf00 nop - 801812c: bf00 nop - 801812e: 3710 adds r7, #16 - 8018130: 46bd mov sp, r7 - 8018132: bd80 pop {r7, pc} - 8018134: 08024ba8 .word 0x08024ba8 - 8018138: 08024c30 .word 0x08024c30 - 801813c: 08024bec .word 0x08024bec - -08018140 : -/** 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) -{ - 8018140: b580 push {r7, lr} - 8018142: b084 sub sp, #16 - 8018144: af00 add r7, sp, #0 - 8018146: 6078 str r0, [r7, #4] -#if LWIP_CALLBACK_API || TCP_LISTEN_BACKLOG - size_t i; - LWIP_ASSERT("pcb != NULL", pcb != NULL); - 8018148: 687b ldr r3, [r7, #4] - 801814a: 2b00 cmp r3, #0 - 801814c: d106 bne.n 801815c - 801814e: 4b14 ldr r3, [pc, #80] ; (80181a0 ) - 8018150: f240 1211 movw r2, #273 ; 0x111 - 8018154: 4913 ldr r1, [pc, #76] ; (80181a4 ) - 8018156: 4814 ldr r0, [pc, #80] ; (80181a8 ) - 8018158: f009 fc16 bl 8021988 - LWIP_ASSERT("pcb->state == LISTEN", pcb->state == LISTEN); - 801815c: 687b ldr r3, [r7, #4] - 801815e: 7d1b ldrb r3, [r3, #20] - 8018160: 2b01 cmp r3, #1 - 8018162: d006 beq.n 8018172 - 8018164: 4b0e ldr r3, [pc, #56] ; (80181a0 ) - 8018166: f44f 7289 mov.w r2, #274 ; 0x112 - 801816a: 4910 ldr r1, [pc, #64] ; (80181ac ) - 801816c: 480e ldr r0, [pc, #56] ; (80181a8 ) - 801816e: f009 fc0b bl 8021988 - for (i = 1; i < LWIP_ARRAYSIZE(tcp_pcb_lists); i++) { - 8018172: 2301 movs r3, #1 - 8018174: 60fb str r3, [r7, #12] - 8018176: e00b b.n 8018190 - tcp_remove_listener(*tcp_pcb_lists[i], (struct tcp_pcb_listen *)pcb); - 8018178: 4a0d ldr r2, [pc, #52] ; (80181b0 ) - 801817a: 68fb ldr r3, [r7, #12] - 801817c: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8018180: 681b ldr r3, [r3, #0] - 8018182: 6879 ldr r1, [r7, #4] - 8018184: 4618 mov r0, r3 - 8018186: f7ff ffb1 bl 80180ec - for (i = 1; i < LWIP_ARRAYSIZE(tcp_pcb_lists); i++) { - 801818a: 68fb ldr r3, [r7, #12] - 801818c: 3301 adds r3, #1 - 801818e: 60fb str r3, [r7, #12] - 8018190: 68fb ldr r3, [r7, #12] - 8018192: 2b03 cmp r3, #3 - 8018194: d9f0 bls.n 8018178 - } -#endif - LWIP_UNUSED_ARG(pcb); -} - 8018196: bf00 nop - 8018198: bf00 nop - 801819a: 3710 adds r7, #16 - 801819c: 46bd mov sp, r7 - 801819e: bd80 pop {r7, pc} - 80181a0: 08024ba8 .word 0x08024ba8 - 80181a4: 08024c58 .word 0x08024c58 - 80181a8: 08024bec .word 0x08024bec - 80181ac: 08024c64 .word 0x08024c64 - 80181b0: 08026cc4 .word 0x08026cc4 - -080181b4 : - * @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) -{ - 80181b4: b5b0 push {r4, r5, r7, lr} - 80181b6: b088 sub sp, #32 - 80181b8: af04 add r7, sp, #16 - 80181ba: 6078 str r0, [r7, #4] - 80181bc: 460b mov r3, r1 - 80181be: 70fb strb r3, [r7, #3] - LWIP_ASSERT("tcp_close_shutdown: invalid pcb", pcb != NULL); - 80181c0: 687b ldr r3, [r7, #4] - 80181c2: 2b00 cmp r3, #0 - 80181c4: d106 bne.n 80181d4 - 80181c6: 4b63 ldr r3, [pc, #396] ; (8018354 ) - 80181c8: f44f 72af mov.w r2, #350 ; 0x15e - 80181cc: 4962 ldr r1, [pc, #392] ; (8018358 ) - 80181ce: 4863 ldr r0, [pc, #396] ; (801835c ) - 80181d0: f009 fbda bl 8021988 - - if (rst_on_unacked_data && ((pcb->state == ESTABLISHED) || (pcb->state == CLOSE_WAIT))) { - 80181d4: 78fb ldrb r3, [r7, #3] - 80181d6: 2b00 cmp r3, #0 - 80181d8: d067 beq.n 80182aa - 80181da: 687b ldr r3, [r7, #4] - 80181dc: 7d1b ldrb r3, [r3, #20] - 80181de: 2b04 cmp r3, #4 - 80181e0: d003 beq.n 80181ea - 80181e2: 687b ldr r3, [r7, #4] - 80181e4: 7d1b ldrb r3, [r3, #20] - 80181e6: 2b07 cmp r3, #7 - 80181e8: d15f bne.n 80182aa - if ((pcb->refused_data != NULL) || (pcb->rcv_wnd != TCP_WND_MAX(pcb))) { - 80181ea: 687b ldr r3, [r7, #4] - 80181ec: 6f9b ldr r3, [r3, #120] ; 0x78 - 80181ee: 2b00 cmp r3, #0 - 80181f0: d105 bne.n 80181fe - 80181f2: 687b ldr r3, [r7, #4] - 80181f4: 8d1b ldrh r3, [r3, #40] ; 0x28 - 80181f6: f241 62d0 movw r2, #5840 ; 0x16d0 - 80181fa: 4293 cmp r3, r2 - 80181fc: d055 beq.n 80182aa - /* 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); - 80181fe: 687b ldr r3, [r7, #4] - 8018200: 8b5b ldrh r3, [r3, #26] - 8018202: f003 0310 and.w r3, r3, #16 - 8018206: 2b00 cmp r3, #0 - 8018208: d106 bne.n 8018218 - 801820a: 4b52 ldr r3, [pc, #328] ; (8018354 ) - 801820c: f44f 72b2 mov.w r2, #356 ; 0x164 - 8018210: 4953 ldr r1, [pc, #332] ; (8018360 ) - 8018212: 4852 ldr r0, [pc, #328] ; (801835c ) - 8018214: f009 fbb8 bl 8021988 - - /* 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, - 8018218: 687b ldr r3, [r7, #4] - 801821a: 6d18 ldr r0, [r3, #80] ; 0x50 - 801821c: 687b ldr r3, [r7, #4] - 801821e: 6a5c ldr r4, [r3, #36] ; 0x24 - 8018220: 687d ldr r5, [r7, #4] - 8018222: 687b ldr r3, [r7, #4] - 8018224: 3304 adds r3, #4 - 8018226: 687a ldr r2, [r7, #4] - 8018228: 8ad2 ldrh r2, [r2, #22] - 801822a: 6879 ldr r1, [r7, #4] - 801822c: 8b09 ldrh r1, [r1, #24] - 801822e: 9102 str r1, [sp, #8] - 8018230: 9201 str r2, [sp, #4] - 8018232: 9300 str r3, [sp, #0] - 8018234: 462b mov r3, r5 - 8018236: 4622 mov r2, r4 - 8018238: 4601 mov r1, r0 - 801823a: 6878 ldr r0, [r7, #4] - 801823c: f005 fe7e bl 801df3c - pcb->local_port, pcb->remote_port); - - tcp_pcb_purge(pcb); - 8018240: 6878 ldr r0, [r7, #4] - 8018242: f001 fbe9 bl 8019a18 - TCP_RMV_ACTIVE(pcb); - 8018246: 4b47 ldr r3, [pc, #284] ; (8018364 ) - 8018248: 681b ldr r3, [r3, #0] - 801824a: 687a ldr r2, [r7, #4] - 801824c: 429a cmp r2, r3 - 801824e: d105 bne.n 801825c - 8018250: 4b44 ldr r3, [pc, #272] ; (8018364 ) - 8018252: 681b ldr r3, [r3, #0] - 8018254: 68db ldr r3, [r3, #12] - 8018256: 4a43 ldr r2, [pc, #268] ; (8018364 ) - 8018258: 6013 str r3, [r2, #0] - 801825a: e013 b.n 8018284 - 801825c: 4b41 ldr r3, [pc, #260] ; (8018364 ) - 801825e: 681b ldr r3, [r3, #0] - 8018260: 60fb str r3, [r7, #12] - 8018262: e00c b.n 801827e - 8018264: 68fb ldr r3, [r7, #12] - 8018266: 68db ldr r3, [r3, #12] - 8018268: 687a ldr r2, [r7, #4] - 801826a: 429a cmp r2, r3 - 801826c: d104 bne.n 8018278 - 801826e: 687b ldr r3, [r7, #4] - 8018270: 68da ldr r2, [r3, #12] - 8018272: 68fb ldr r3, [r7, #12] - 8018274: 60da str r2, [r3, #12] - 8018276: e005 b.n 8018284 - 8018278: 68fb ldr r3, [r7, #12] - 801827a: 68db ldr r3, [r3, #12] - 801827c: 60fb str r3, [r7, #12] - 801827e: 68fb ldr r3, [r7, #12] - 8018280: 2b00 cmp r3, #0 - 8018282: d1ef bne.n 8018264 - 8018284: 687b ldr r3, [r7, #4] - 8018286: 2200 movs r2, #0 - 8018288: 60da str r2, [r3, #12] - 801828a: 4b37 ldr r3, [pc, #220] ; (8018368 ) - 801828c: 2201 movs r2, #1 - 801828e: 701a strb r2, [r3, #0] - /* Deallocate the pcb since we already sent a RST for it */ - if (tcp_input_pcb == pcb) { - 8018290: 4b36 ldr r3, [pc, #216] ; (801836c ) - 8018292: 681b ldr r3, [r3, #0] - 8018294: 687a ldr r2, [r7, #4] - 8018296: 429a cmp r2, r3 - 8018298: d102 bne.n 80182a0 - /* prevent using a deallocated pcb: free it from tcp_input later */ - tcp_trigger_input_pcb_close(); - 801829a: f004 f887 bl 801c3ac - 801829e: e002 b.n 80182a6 - } else { - tcp_free(pcb); - 80182a0: 6878 ldr r0, [r7, #4] - 80182a2: f7ff fed5 bl 8018050 - } - return ERR_OK; - 80182a6: 2300 movs r3, #0 - 80182a8: e050 b.n 801834c - } - } - - /* - 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) { - 80182aa: 687b ldr r3, [r7, #4] - 80182ac: 7d1b ldrb r3, [r3, #20] - 80182ae: 2b02 cmp r3, #2 - 80182b0: d03b beq.n 801832a - 80182b2: 2b02 cmp r3, #2 - 80182b4: dc44 bgt.n 8018340 - 80182b6: 2b00 cmp r3, #0 - 80182b8: d002 beq.n 80182c0 - 80182ba: 2b01 cmp r3, #1 - 80182bc: d02a beq.n 8018314 - 80182be: e03f b.n 8018340 - * 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) { - 80182c0: 687b ldr r3, [r7, #4] - 80182c2: 8adb ldrh r3, [r3, #22] - 80182c4: 2b00 cmp r3, #0 - 80182c6: d021 beq.n 801830c - TCP_RMV(&tcp_bound_pcbs, pcb); - 80182c8: 4b29 ldr r3, [pc, #164] ; (8018370 ) - 80182ca: 681b ldr r3, [r3, #0] - 80182cc: 687a ldr r2, [r7, #4] - 80182ce: 429a cmp r2, r3 - 80182d0: d105 bne.n 80182de - 80182d2: 4b27 ldr r3, [pc, #156] ; (8018370 ) - 80182d4: 681b ldr r3, [r3, #0] - 80182d6: 68db ldr r3, [r3, #12] - 80182d8: 4a25 ldr r2, [pc, #148] ; (8018370 ) - 80182da: 6013 str r3, [r2, #0] - 80182dc: e013 b.n 8018306 - 80182de: 4b24 ldr r3, [pc, #144] ; (8018370 ) - 80182e0: 681b ldr r3, [r3, #0] - 80182e2: 60bb str r3, [r7, #8] - 80182e4: e00c b.n 8018300 - 80182e6: 68bb ldr r3, [r7, #8] - 80182e8: 68db ldr r3, [r3, #12] - 80182ea: 687a ldr r2, [r7, #4] - 80182ec: 429a cmp r2, r3 - 80182ee: d104 bne.n 80182fa - 80182f0: 687b ldr r3, [r7, #4] - 80182f2: 68da ldr r2, [r3, #12] - 80182f4: 68bb ldr r3, [r7, #8] - 80182f6: 60da str r2, [r3, #12] - 80182f8: e005 b.n 8018306 - 80182fa: 68bb ldr r3, [r7, #8] - 80182fc: 68db ldr r3, [r3, #12] - 80182fe: 60bb str r3, [r7, #8] - 8018300: 68bb ldr r3, [r7, #8] - 8018302: 2b00 cmp r3, #0 - 8018304: d1ef bne.n 80182e6 - 8018306: 687b ldr r3, [r7, #4] - 8018308: 2200 movs r2, #0 - 801830a: 60da str r2, [r3, #12] - } - tcp_free(pcb); - 801830c: 6878 ldr r0, [r7, #4] - 801830e: f7ff fe9f bl 8018050 - break; - 8018312: e01a b.n 801834a - case LISTEN: - tcp_listen_closed(pcb); - 8018314: 6878 ldr r0, [r7, #4] - 8018316: f7ff ff13 bl 8018140 - tcp_pcb_remove(&tcp_listen_pcbs.pcbs, pcb); - 801831a: 6879 ldr r1, [r7, #4] - 801831c: 4815 ldr r0, [pc, #84] ; (8018374 ) - 801831e: f001 fbcb bl 8019ab8 - tcp_free_listen(pcb); - 8018322: 6878 ldr r0, [r7, #4] - 8018324: f7ff feb0 bl 8018088 - break; - 8018328: e00f b.n 801834a - case SYN_SENT: - TCP_PCB_REMOVE_ACTIVE(pcb); - 801832a: 6879 ldr r1, [r7, #4] - 801832c: 480d ldr r0, [pc, #52] ; (8018364 ) - 801832e: f001 fbc3 bl 8019ab8 - 8018332: 4b0d ldr r3, [pc, #52] ; (8018368 ) - 8018334: 2201 movs r2, #1 - 8018336: 701a strb r2, [r3, #0] - tcp_free(pcb); - 8018338: 6878 ldr r0, [r7, #4] - 801833a: f7ff fe89 bl 8018050 - MIB2_STATS_INC(mib2.tcpattemptfails); - break; - 801833e: e004 b.n 801834a - default: - return tcp_close_shutdown_fin(pcb); - 8018340: 6878 ldr r0, [r7, #4] - 8018342: f000 f819 bl 8018378 - 8018346: 4603 mov r3, r0 - 8018348: e000 b.n 801834c - } - return ERR_OK; - 801834a: 2300 movs r3, #0 -} - 801834c: 4618 mov r0, r3 - 801834e: 3710 adds r7, #16 - 8018350: 46bd mov sp, r7 - 8018352: bdb0 pop {r4, r5, r7, pc} - 8018354: 08024ba8 .word 0x08024ba8 - 8018358: 08024c7c .word 0x08024c7c - 801835c: 08024bec .word 0x08024bec - 8018360: 08024c9c .word 0x08024c9c - 8018364: 2401a48c .word 0x2401a48c - 8018368: 2401a494 .word 0x2401a494 - 801836c: 2401a4d0 .word 0x2401a4d0 - 8018370: 2401a484 .word 0x2401a484 - 8018374: 2401a488 .word 0x2401a488 - -08018378 : - -static err_t -tcp_close_shutdown_fin(struct tcp_pcb *pcb) -{ - 8018378: b580 push {r7, lr} - 801837a: b084 sub sp, #16 - 801837c: af00 add r7, sp, #0 - 801837e: 6078 str r0, [r7, #4] - err_t err; - LWIP_ASSERT("pcb != NULL", pcb != NULL); - 8018380: 687b ldr r3, [r7, #4] - 8018382: 2b00 cmp r3, #0 - 8018384: d106 bne.n 8018394 - 8018386: 4b2e ldr r3, [pc, #184] ; (8018440 ) - 8018388: f44f 72ce mov.w r2, #412 ; 0x19c - 801838c: 492d ldr r1, [pc, #180] ; (8018444 ) - 801838e: 482e ldr r0, [pc, #184] ; (8018448 ) - 8018390: f009 fafa bl 8021988 - - switch (pcb->state) { - 8018394: 687b ldr r3, [r7, #4] - 8018396: 7d1b ldrb r3, [r3, #20] - 8018398: 2b07 cmp r3, #7 - 801839a: d020 beq.n 80183de - 801839c: 2b07 cmp r3, #7 - 801839e: dc2b bgt.n 80183f8 - 80183a0: 2b03 cmp r3, #3 - 80183a2: d002 beq.n 80183aa - 80183a4: 2b04 cmp r3, #4 - 80183a6: d00d beq.n 80183c4 - 80183a8: e026 b.n 80183f8 - case SYN_RCVD: - err = tcp_send_fin(pcb); - 80183aa: 6878 ldr r0, [r7, #4] - 80183ac: f004 fec8 bl 801d140 - 80183b0: 4603 mov r3, r0 - 80183b2: 73fb strb r3, [r7, #15] - if (err == ERR_OK) { - 80183b4: f997 300f ldrsb.w r3, [r7, #15] - 80183b8: 2b00 cmp r3, #0 - 80183ba: d11f bne.n 80183fc - tcp_backlog_accepted(pcb); - MIB2_STATS_INC(mib2.tcpattemptfails); - pcb->state = FIN_WAIT_1; - 80183bc: 687b ldr r3, [r7, #4] - 80183be: 2205 movs r2, #5 - 80183c0: 751a strb r2, [r3, #20] - } - break; - 80183c2: e01b b.n 80183fc - case ESTABLISHED: - err = tcp_send_fin(pcb); - 80183c4: 6878 ldr r0, [r7, #4] - 80183c6: f004 febb bl 801d140 - 80183ca: 4603 mov r3, r0 - 80183cc: 73fb strb r3, [r7, #15] - if (err == ERR_OK) { - 80183ce: f997 300f ldrsb.w r3, [r7, #15] - 80183d2: 2b00 cmp r3, #0 - 80183d4: d114 bne.n 8018400 - MIB2_STATS_INC(mib2.tcpestabresets); - pcb->state = FIN_WAIT_1; - 80183d6: 687b ldr r3, [r7, #4] - 80183d8: 2205 movs r2, #5 - 80183da: 751a strb r2, [r3, #20] - } - break; - 80183dc: e010 b.n 8018400 - case CLOSE_WAIT: - err = tcp_send_fin(pcb); - 80183de: 6878 ldr r0, [r7, #4] - 80183e0: f004 feae bl 801d140 - 80183e4: 4603 mov r3, r0 - 80183e6: 73fb strb r3, [r7, #15] - if (err == ERR_OK) { - 80183e8: f997 300f ldrsb.w r3, [r7, #15] - 80183ec: 2b00 cmp r3, #0 - 80183ee: d109 bne.n 8018404 - MIB2_STATS_INC(mib2.tcpestabresets); - pcb->state = LAST_ACK; - 80183f0: 687b ldr r3, [r7, #4] - 80183f2: 2209 movs r2, #9 - 80183f4: 751a strb r2, [r3, #20] - } - break; - 80183f6: e005 b.n 8018404 - default: - /* Has already been closed, do nothing. */ - return ERR_OK; - 80183f8: 2300 movs r3, #0 - 80183fa: e01c b.n 8018436 - break; - 80183fc: bf00 nop - 80183fe: e002 b.n 8018406 - break; - 8018400: bf00 nop - 8018402: e000 b.n 8018406 - break; - 8018404: bf00 nop - } - - if (err == ERR_OK) { - 8018406: f997 300f ldrsb.w r3, [r7, #15] - 801840a: 2b00 cmp r3, #0 - 801840c: d103 bne.n 8018416 - /* 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); - 801840e: 6878 ldr r0, [r7, #4] - 8018410: f004 ffd4 bl 801d3bc - 8018414: e00d b.n 8018432 - } else if (err == ERR_MEM) { - 8018416: f997 300f ldrsb.w r3, [r7, #15] - 801841a: f1b3 3fff cmp.w r3, #4294967295 - 801841e: d108 bne.n 8018432 - /* Mark this pcb for closing. Closing is retried from tcp_tmr. */ - tcp_set_flags(pcb, TF_CLOSEPEND); - 8018420: 687b ldr r3, [r7, #4] - 8018422: 8b5b ldrh r3, [r3, #26] - 8018424: f043 0308 orr.w r3, r3, #8 - 8018428: b29a uxth r2, r3 - 801842a: 687b ldr r3, [r7, #4] - 801842c: 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; - 801842e: 2300 movs r3, #0 - 8018430: e001 b.n 8018436 - } - return err; - 8018432: f997 300f ldrsb.w r3, [r7, #15] -} - 8018436: 4618 mov r0, r3 - 8018438: 3710 adds r7, #16 - 801843a: 46bd mov sp, r7 - 801843c: bd80 pop {r7, pc} - 801843e: bf00 nop - 8018440: 08024ba8 .word 0x08024ba8 - 8018444: 08024c58 .word 0x08024c58 - 8018448: 08024bec .word 0x08024bec - -0801844c : - * @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) -{ - 801844c: b580 push {r7, lr} - 801844e: b082 sub sp, #8 - 8018450: af00 add r7, sp, #0 - 8018452: 6078 str r0, [r7, #4] - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("tcp_close: invalid pcb", pcb != NULL, return ERR_ARG); - 8018454: 687b ldr r3, [r7, #4] - 8018456: 2b00 cmp r3, #0 - 8018458: d109 bne.n 801846e - 801845a: 4b0f ldr r3, [pc, #60] ; (8018498 ) - 801845c: f44f 72f4 mov.w r2, #488 ; 0x1e8 - 8018460: 490e ldr r1, [pc, #56] ; (801849c ) - 8018462: 480f ldr r0, [pc, #60] ; (80184a0 ) - 8018464: f009 fa90 bl 8021988 - 8018468: f06f 030f mvn.w r3, #15 - 801846c: e00f b.n 801848e - LWIP_DEBUGF(TCP_DEBUG, ("tcp_close: closing in ")); - - tcp_debug_print_state(pcb->state); - - if (pcb->state != LISTEN) { - 801846e: 687b ldr r3, [r7, #4] - 8018470: 7d1b ldrb r3, [r3, #20] - 8018472: 2b01 cmp r3, #1 - 8018474: d006 beq.n 8018484 - /* Set a flag not to receive any more data... */ - tcp_set_flags(pcb, TF_RXCLOSED); - 8018476: 687b ldr r3, [r7, #4] - 8018478: 8b5b ldrh r3, [r3, #26] - 801847a: f043 0310 orr.w r3, r3, #16 - 801847e: b29a uxth r2, r3 - 8018480: 687b ldr r3, [r7, #4] - 8018482: 835a strh r2, [r3, #26] - } - /* ... and close */ - return tcp_close_shutdown(pcb, 1); - 8018484: 2101 movs r1, #1 - 8018486: 6878 ldr r0, [r7, #4] - 8018488: f7ff fe94 bl 80181b4 - 801848c: 4603 mov r3, r0 -} - 801848e: 4618 mov r0, r3 - 8018490: 3708 adds r7, #8 - 8018492: 46bd mov sp, r7 - 8018494: bd80 pop {r7, pc} - 8018496: bf00 nop - 8018498: 08024ba8 .word 0x08024ba8 - 801849c: 08024cb8 .word 0x08024cb8 - 80184a0: 08024bec .word 0x08024bec - -080184a4 : - * @return ERR_OK if shutdown succeeded (or the PCB has already been shut down) - * another err_t on error. - */ -err_t -tcp_shutdown(struct tcp_pcb *pcb, int shut_rx, int shut_tx) -{ - 80184a4: b580 push {r7, lr} - 80184a6: b084 sub sp, #16 - 80184a8: af00 add r7, sp, #0 - 80184aa: 60f8 str r0, [r7, #12] - 80184ac: 60b9 str r1, [r7, #8] - 80184ae: 607a str r2, [r7, #4] - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("tcp_shutdown: invalid pcb", pcb != NULL, return ERR_ARG); - 80184b0: 68fb ldr r3, [r7, #12] - 80184b2: 2b00 cmp r3, #0 - 80184b4: d109 bne.n 80184ca - 80184b6: 4b26 ldr r3, [pc, #152] ; (8018550 ) - 80184b8: f240 2207 movw r2, #519 ; 0x207 - 80184bc: 4925 ldr r1, [pc, #148] ; (8018554 ) - 80184be: 4826 ldr r0, [pc, #152] ; (8018558 ) - 80184c0: f009 fa62 bl 8021988 - 80184c4: f06f 030f mvn.w r3, #15 - 80184c8: e03d b.n 8018546 - - if (pcb->state == LISTEN) { - 80184ca: 68fb ldr r3, [r7, #12] - 80184cc: 7d1b ldrb r3, [r3, #20] - 80184ce: 2b01 cmp r3, #1 - 80184d0: d102 bne.n 80184d8 - return ERR_CONN; - 80184d2: f06f 030a mvn.w r3, #10 - 80184d6: e036 b.n 8018546 - } - if (shut_rx) { - 80184d8: 68bb ldr r3, [r7, #8] - 80184da: 2b00 cmp r3, #0 - 80184dc: d01b beq.n 8018516 - /* shut down the receive side: set a flag not to receive any more data... */ - tcp_set_flags(pcb, TF_RXCLOSED); - 80184de: 68fb ldr r3, [r7, #12] - 80184e0: 8b5b ldrh r3, [r3, #26] - 80184e2: f043 0310 orr.w r3, r3, #16 - 80184e6: b29a uxth r2, r3 - 80184e8: 68fb ldr r3, [r7, #12] - 80184ea: 835a strh r2, [r3, #26] - if (shut_tx) { - 80184ec: 687b ldr r3, [r7, #4] - 80184ee: 2b00 cmp r3, #0 - 80184f0: d005 beq.n 80184fe - /* shutting down the tx AND rx side is the same as closing for the raw API */ - return tcp_close_shutdown(pcb, 1); - 80184f2: 2101 movs r1, #1 - 80184f4: 68f8 ldr r0, [r7, #12] - 80184f6: f7ff fe5d bl 80181b4 - 80184fa: 4603 mov r3, r0 - 80184fc: e023 b.n 8018546 - } - /* ... and free buffered data */ - if (pcb->refused_data != NULL) { - 80184fe: 68fb ldr r3, [r7, #12] - 8018500: 6f9b ldr r3, [r3, #120] ; 0x78 - 8018502: 2b00 cmp r3, #0 - 8018504: d007 beq.n 8018516 - pbuf_free(pcb->refused_data); - 8018506: 68fb ldr r3, [r7, #12] - 8018508: 6f9b ldr r3, [r3, #120] ; 0x78 - 801850a: 4618 mov r0, r3 - 801850c: f7ff faf4 bl 8017af8 - pcb->refused_data = NULL; - 8018510: 68fb ldr r3, [r7, #12] - 8018512: 2200 movs r2, #0 - 8018514: 679a str r2, [r3, #120] ; 0x78 - } - } - if (shut_tx) { - 8018516: 687b ldr r3, [r7, #4] - 8018518: 2b00 cmp r3, #0 - 801851a: d013 beq.n 8018544 - /* This can't happen twice since if it succeeds, the pcb's state is changed. - Only close in these states as the others directly deallocate the PCB */ - switch (pcb->state) { - 801851c: 68fb ldr r3, [r7, #12] - 801851e: 7d1b ldrb r3, [r3, #20] - 8018520: 2b04 cmp r3, #4 - 8018522: dc02 bgt.n 801852a - 8018524: 2b03 cmp r3, #3 - 8018526: da02 bge.n 801852e - 8018528: e009 b.n 801853e - 801852a: 2b07 cmp r3, #7 - 801852c: d107 bne.n 801853e - case SYN_RCVD: - case ESTABLISHED: - case CLOSE_WAIT: - return tcp_close_shutdown(pcb, (u8_t)shut_rx); - 801852e: 68bb ldr r3, [r7, #8] - 8018530: b2db uxtb r3, r3 - 8018532: 4619 mov r1, r3 - 8018534: 68f8 ldr r0, [r7, #12] - 8018536: f7ff fe3d bl 80181b4 - 801853a: 4603 mov r3, r0 - 801853c: e003 b.n 8018546 - default: - /* Not (yet?) connected, cannot shutdown the TX side as that would bring us - into CLOSED state, where the PCB is deallocated. */ - return ERR_CONN; - 801853e: f06f 030a mvn.w r3, #10 - 8018542: e000 b.n 8018546 - } - } - return ERR_OK; - 8018544: 2300 movs r3, #0 -} - 8018546: 4618 mov r0, r3 - 8018548: 3710 adds r7, #16 - 801854a: 46bd mov sp, r7 - 801854c: bd80 pop {r7, pc} - 801854e: bf00 nop - 8018550: 08024ba8 .word 0x08024ba8 - 8018554: 08024cd0 .word 0x08024cd0 - 8018558: 08024bec .word 0x08024bec - -0801855c : - * @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) -{ - 801855c: b580 push {r7, lr} - 801855e: b08e sub sp, #56 ; 0x38 - 8018560: af04 add r7, sp, #16 - 8018562: 6078 str r0, [r7, #4] - 8018564: 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); - 8018566: 687b ldr r3, [r7, #4] - 8018568: 2b00 cmp r3, #0 - 801856a: d107 bne.n 801857c - 801856c: 4b52 ldr r3, [pc, #328] ; (80186b8 ) - 801856e: f240 223d movw r2, #573 ; 0x23d - 8018572: 4952 ldr r1, [pc, #328] ; (80186bc ) - 8018574: 4852 ldr r0, [pc, #328] ; (80186c0 ) - 8018576: f009 fa07 bl 8021988 - 801857a: e099 b.n 80186b0 - - /* pcb->state LISTEN not allowed here */ - LWIP_ASSERT("don't call tcp_abort/tcp_abandon for listen-pcbs", - 801857c: 687b ldr r3, [r7, #4] - 801857e: 7d1b ldrb r3, [r3, #20] - 8018580: 2b01 cmp r3, #1 - 8018582: d106 bne.n 8018592 - 8018584: 4b4c ldr r3, [pc, #304] ; (80186b8 ) - 8018586: f44f 7210 mov.w r2, #576 ; 0x240 - 801858a: 494e ldr r1, [pc, #312] ; (80186c4 ) - 801858c: 484c ldr r0, [pc, #304] ; (80186c0 ) - 801858e: f009 f9fb bl 8021988 - 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) { - 8018592: 687b ldr r3, [r7, #4] - 8018594: 7d1b ldrb r3, [r3, #20] - 8018596: 2b0a cmp r3, #10 - 8018598: d107 bne.n 80185aa - tcp_pcb_remove(&tcp_tw_pcbs, pcb); - 801859a: 6879 ldr r1, [r7, #4] - 801859c: 484a ldr r0, [pc, #296] ; (80186c8 ) - 801859e: f001 fa8b bl 8019ab8 - tcp_free(pcb); - 80185a2: 6878 ldr r0, [r7, #4] - 80185a4: f7ff fd54 bl 8018050 - 80185a8: e082 b.n 80186b0 - } else { - int send_rst = 0; - 80185aa: 2300 movs r3, #0 - 80185ac: 627b str r3, [r7, #36] ; 0x24 - u16_t local_port = 0; - 80185ae: 2300 movs r3, #0 - 80185b0: 847b strh r3, [r7, #34] ; 0x22 - enum tcp_state last_state; - seqno = pcb->snd_nxt; - 80185b2: 687b ldr r3, [r7, #4] - 80185b4: 6d1b ldr r3, [r3, #80] ; 0x50 - 80185b6: 61bb str r3, [r7, #24] - ackno = pcb->rcv_nxt; - 80185b8: 687b ldr r3, [r7, #4] - 80185ba: 6a5b ldr r3, [r3, #36] ; 0x24 - 80185bc: 617b str r3, [r7, #20] -#if LWIP_CALLBACK_API - errf = pcb->errf; - 80185be: 687b ldr r3, [r7, #4] - 80185c0: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 80185c4: 613b str r3, [r7, #16] -#endif /* LWIP_CALLBACK_API */ - errf_arg = pcb->callback_arg; - 80185c6: 687b ldr r3, [r7, #4] - 80185c8: 691b ldr r3, [r3, #16] - 80185ca: 60fb str r3, [r7, #12] - if (pcb->state == CLOSED) { - 80185cc: 687b ldr r3, [r7, #4] - 80185ce: 7d1b ldrb r3, [r3, #20] - 80185d0: 2b00 cmp r3, #0 - 80185d2: d126 bne.n 8018622 - if (pcb->local_port != 0) { - 80185d4: 687b ldr r3, [r7, #4] - 80185d6: 8adb ldrh r3, [r3, #22] - 80185d8: 2b00 cmp r3, #0 - 80185da: d02e beq.n 801863a - /* bound, not yet opened */ - TCP_RMV(&tcp_bound_pcbs, pcb); - 80185dc: 4b3b ldr r3, [pc, #236] ; (80186cc ) - 80185de: 681b ldr r3, [r3, #0] - 80185e0: 687a ldr r2, [r7, #4] - 80185e2: 429a cmp r2, r3 - 80185e4: d105 bne.n 80185f2 - 80185e6: 4b39 ldr r3, [pc, #228] ; (80186cc ) - 80185e8: 681b ldr r3, [r3, #0] - 80185ea: 68db ldr r3, [r3, #12] - 80185ec: 4a37 ldr r2, [pc, #220] ; (80186cc ) - 80185ee: 6013 str r3, [r2, #0] - 80185f0: e013 b.n 801861a - 80185f2: 4b36 ldr r3, [pc, #216] ; (80186cc ) - 80185f4: 681b ldr r3, [r3, #0] - 80185f6: 61fb str r3, [r7, #28] - 80185f8: e00c b.n 8018614 - 80185fa: 69fb ldr r3, [r7, #28] - 80185fc: 68db ldr r3, [r3, #12] - 80185fe: 687a ldr r2, [r7, #4] - 8018600: 429a cmp r2, r3 - 8018602: d104 bne.n 801860e - 8018604: 687b ldr r3, [r7, #4] - 8018606: 68da ldr r2, [r3, #12] - 8018608: 69fb ldr r3, [r7, #28] - 801860a: 60da str r2, [r3, #12] - 801860c: e005 b.n 801861a - 801860e: 69fb ldr r3, [r7, #28] - 8018610: 68db ldr r3, [r3, #12] - 8018612: 61fb str r3, [r7, #28] - 8018614: 69fb ldr r3, [r7, #28] - 8018616: 2b00 cmp r3, #0 - 8018618: d1ef bne.n 80185fa - 801861a: 687b ldr r3, [r7, #4] - 801861c: 2200 movs r2, #0 - 801861e: 60da str r2, [r3, #12] - 8018620: e00b b.n 801863a - } - } else { - send_rst = reset; - 8018622: 683b ldr r3, [r7, #0] - 8018624: 627b str r3, [r7, #36] ; 0x24 - local_port = pcb->local_port; - 8018626: 687b ldr r3, [r7, #4] - 8018628: 8adb ldrh r3, [r3, #22] - 801862a: 847b strh r3, [r7, #34] ; 0x22 - TCP_PCB_REMOVE_ACTIVE(pcb); - 801862c: 6879 ldr r1, [r7, #4] - 801862e: 4828 ldr r0, [pc, #160] ; (80186d0 ) - 8018630: f001 fa42 bl 8019ab8 - 8018634: 4b27 ldr r3, [pc, #156] ; (80186d4 ) - 8018636: 2201 movs r2, #1 - 8018638: 701a strb r2, [r3, #0] - } - if (pcb->unacked != NULL) { - 801863a: 687b ldr r3, [r7, #4] - 801863c: 6f1b ldr r3, [r3, #112] ; 0x70 - 801863e: 2b00 cmp r3, #0 - 8018640: d004 beq.n 801864c - tcp_segs_free(pcb->unacked); - 8018642: 687b ldr r3, [r7, #4] - 8018644: 6f1b ldr r3, [r3, #112] ; 0x70 - 8018646: 4618 mov r0, r3 - 8018648: f000 ff16 bl 8019478 - } - if (pcb->unsent != NULL) { - 801864c: 687b ldr r3, [r7, #4] - 801864e: 6edb ldr r3, [r3, #108] ; 0x6c - 8018650: 2b00 cmp r3, #0 - 8018652: d004 beq.n 801865e - tcp_segs_free(pcb->unsent); - 8018654: 687b ldr r3, [r7, #4] - 8018656: 6edb ldr r3, [r3, #108] ; 0x6c - 8018658: 4618 mov r0, r3 - 801865a: f000 ff0d bl 8019478 - } -#if TCP_QUEUE_OOSEQ - if (pcb->ooseq != NULL) { - 801865e: 687b ldr r3, [r7, #4] - 8018660: 6f5b ldr r3, [r3, #116] ; 0x74 - 8018662: 2b00 cmp r3, #0 - 8018664: d004 beq.n 8018670 - tcp_segs_free(pcb->ooseq); - 8018666: 687b ldr r3, [r7, #4] - 8018668: 6f5b ldr r3, [r3, #116] ; 0x74 - 801866a: 4618 mov r0, r3 - 801866c: f000 ff04 bl 8019478 - } -#endif /* TCP_QUEUE_OOSEQ */ - tcp_backlog_accepted(pcb); - if (send_rst) { - 8018670: 6a7b ldr r3, [r7, #36] ; 0x24 - 8018672: 2b00 cmp r3, #0 - 8018674: d00e beq.n 8018694 - 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); - 8018676: 6879 ldr r1, [r7, #4] - 8018678: 687b ldr r3, [r7, #4] - 801867a: 3304 adds r3, #4 - 801867c: 687a ldr r2, [r7, #4] - 801867e: 8b12 ldrh r2, [r2, #24] - 8018680: 9202 str r2, [sp, #8] - 8018682: 8c7a ldrh r2, [r7, #34] ; 0x22 - 8018684: 9201 str r2, [sp, #4] - 8018686: 9300 str r3, [sp, #0] - 8018688: 460b mov r3, r1 - 801868a: 697a ldr r2, [r7, #20] - 801868c: 69b9 ldr r1, [r7, #24] - 801868e: 6878 ldr r0, [r7, #4] - 8018690: f005 fc54 bl 801df3c - } - last_state = pcb->state; - 8018694: 687b ldr r3, [r7, #4] - 8018696: 7d1b ldrb r3, [r3, #20] - 8018698: 72fb strb r3, [r7, #11] - tcp_free(pcb); - 801869a: 6878 ldr r0, [r7, #4] - 801869c: f7ff fcd8 bl 8018050 - TCP_EVENT_ERR(last_state, errf, errf_arg, ERR_ABRT); - 80186a0: 693b ldr r3, [r7, #16] - 80186a2: 2b00 cmp r3, #0 - 80186a4: d004 beq.n 80186b0 - 80186a6: 693b ldr r3, [r7, #16] - 80186a8: f06f 010c mvn.w r1, #12 - 80186ac: 68f8 ldr r0, [r7, #12] - 80186ae: 4798 blx r3 - } -} - 80186b0: 3728 adds r7, #40 ; 0x28 - 80186b2: 46bd mov sp, r7 - 80186b4: bd80 pop {r7, pc} - 80186b6: bf00 nop - 80186b8: 08024ba8 .word 0x08024ba8 - 80186bc: 08024cec .word 0x08024cec - 80186c0: 08024bec .word 0x08024bec - 80186c4: 08024d08 .word 0x08024d08 - 80186c8: 2401a490 .word 0x2401a490 - 80186cc: 2401a484 .word 0x2401a484 - 80186d0: 2401a48c .word 0x2401a48c - 80186d4: 2401a494 .word 0x2401a494 - -080186d8 : - * - * @param pcb the tcp pcb to abort - */ -void -tcp_abort(struct tcp_pcb *pcb) -{ - 80186d8: b580 push {r7, lr} - 80186da: b082 sub sp, #8 - 80186dc: af00 add r7, sp, #0 - 80186de: 6078 str r0, [r7, #4] - tcp_abandon(pcb, 1); - 80186e0: 2101 movs r1, #1 - 80186e2: 6878 ldr r0, [r7, #4] - 80186e4: f7ff ff3a bl 801855c -} - 80186e8: bf00 nop - 80186ea: 3708 adds r7, #8 - 80186ec: 46bd mov sp, r7 - 80186ee: bd80 pop {r7, pc} - -080186f0 : - * ERR_VAL if bind failed because the PCB is not in a valid state - * ERR_OK if bound - */ -err_t -tcp_bind(struct tcp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port) -{ - 80186f0: b580 push {r7, lr} - 80186f2: b088 sub sp, #32 - 80186f4: af00 add r7, sp, #0 - 80186f6: 60f8 str r0, [r7, #12] - 80186f8: 60b9 str r1, [r7, #8] - 80186fa: 4613 mov r3, r2 - 80186fc: 80fb strh r3, [r7, #6] - int i; - int max_pcb_list = NUM_TCP_PCB_LISTS; - 80186fe: 2304 movs r3, #4 - 8018700: 617b str r3, [r7, #20] - - LWIP_ASSERT_CORE_LOCKED(); - -#if LWIP_IPV4 - /* Don't propagate NULL pointer (IPv4 ANY) to subsequent functions */ - if (ipaddr == NULL) { - 8018702: 68bb ldr r3, [r7, #8] - 8018704: 2b00 cmp r3, #0 - 8018706: d101 bne.n 801870c - ipaddr = IP4_ADDR_ANY; - 8018708: 4b3e ldr r3, [pc, #248] ; (8018804 ) - 801870a: 60bb str r3, [r7, #8] - } -#else /* LWIP_IPV4 */ - LWIP_ERROR("tcp_bind: invalid ipaddr", ipaddr != NULL, return ERR_ARG); -#endif /* LWIP_IPV4 */ - - LWIP_ERROR("tcp_bind: invalid pcb", pcb != NULL, return ERR_ARG); - 801870c: 68fb ldr r3, [r7, #12] - 801870e: 2b00 cmp r3, #0 - 8018710: d109 bne.n 8018726 - 8018712: 4b3d ldr r3, [pc, #244] ; (8018808 ) - 8018714: f240 22a9 movw r2, #681 ; 0x2a9 - 8018718: 493c ldr r1, [pc, #240] ; (801880c ) - 801871a: 483d ldr r0, [pc, #244] ; (8018810 ) - 801871c: f009 f934 bl 8021988 - 8018720: f06f 030f mvn.w r3, #15 - 8018724: e06a b.n 80187fc - - LWIP_ERROR("tcp_bind: can only bind in state CLOSED", pcb->state == CLOSED, return ERR_VAL); - 8018726: 68fb ldr r3, [r7, #12] - 8018728: 7d1b ldrb r3, [r3, #20] - 801872a: 2b00 cmp r3, #0 - 801872c: d009 beq.n 8018742 - 801872e: 4b36 ldr r3, [pc, #216] ; (8018808 ) - 8018730: f240 22ab movw r2, #683 ; 0x2ab - 8018734: 4937 ldr r1, [pc, #220] ; (8018814 ) - 8018736: 4836 ldr r0, [pc, #216] ; (8018810 ) - 8018738: f009 f926 bl 8021988 - 801873c: f06f 0305 mvn.w r3, #5 - 8018740: e05c b.n 80187fc - ip6_addr_select_zone(ip_2_ip6(&zoned_ipaddr), ip_2_ip6(&zoned_ipaddr)); - ipaddr = &zoned_ipaddr; - } -#endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */ - - if (port == 0) { - 8018742: 88fb ldrh r3, [r7, #6] - 8018744: 2b00 cmp r3, #0 - 8018746: d109 bne.n 801875c - port = tcp_new_port(); - 8018748: f000 f916 bl 8018978 - 801874c: 4603 mov r3, r0 - 801874e: 80fb strh r3, [r7, #6] - if (port == 0) { - 8018750: 88fb ldrh r3, [r7, #6] - 8018752: 2b00 cmp r3, #0 - 8018754: d135 bne.n 80187c2 - return ERR_BUF; - 8018756: f06f 0301 mvn.w r3, #1 - 801875a: e04f b.n 80187fc - } - } else { - /* Check if the address already is in use (on all lists) */ - for (i = 0; i < max_pcb_list; i++) { - 801875c: 2300 movs r3, #0 - 801875e: 61fb str r3, [r7, #28] - 8018760: e02b b.n 80187ba - for (cpcb = *tcp_pcb_lists[i]; cpcb != NULL; cpcb = cpcb->next) { - 8018762: 4a2d ldr r2, [pc, #180] ; (8018818 ) - 8018764: 69fb ldr r3, [r7, #28] - 8018766: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 801876a: 681b ldr r3, [r3, #0] - 801876c: 61bb str r3, [r7, #24] - 801876e: e01e b.n 80187ae - if (cpcb->local_port == port) { - 8018770: 69bb ldr r3, [r7, #24] - 8018772: 8adb ldrh r3, [r3, #22] - 8018774: 88fa ldrh r2, [r7, #6] - 8018776: 429a cmp r2, r3 - 8018778: d116 bne.n 80187a8 - !ip_get_option(cpcb, SOF_REUSEADDR)) -#endif /* SO_REUSE */ - { - /* @todo: check accept_any_ip_version */ - if ((IP_IS_V6(ipaddr) == IP_IS_V6_VAL(cpcb->local_ip)) && - (ip_addr_isany(&cpcb->local_ip) || - 801877a: 69bb ldr r3, [r7, #24] - if ((IP_IS_V6(ipaddr) == IP_IS_V6_VAL(cpcb->local_ip)) && - 801877c: 2b00 cmp r3, #0 - 801877e: d010 beq.n 80187a2 - (ip_addr_isany(&cpcb->local_ip) || - 8018780: 69bb ldr r3, [r7, #24] - 8018782: 681b ldr r3, [r3, #0] - 8018784: 2b00 cmp r3, #0 - 8018786: d00c beq.n 80187a2 - 8018788: 68bb ldr r3, [r7, #8] - 801878a: 2b00 cmp r3, #0 - 801878c: d009 beq.n 80187a2 - ip_addr_isany(ipaddr) || - 801878e: 68bb ldr r3, [r7, #8] - 8018790: 681b ldr r3, [r3, #0] - 8018792: 2b00 cmp r3, #0 - 8018794: d005 beq.n 80187a2 - ip_addr_cmp(&cpcb->local_ip, ipaddr))) { - 8018796: 69bb ldr r3, [r7, #24] - 8018798: 681a ldr r2, [r3, #0] - 801879a: 68bb ldr r3, [r7, #8] - 801879c: 681b ldr r3, [r3, #0] - if ((IP_IS_V6(ipaddr) == IP_IS_V6_VAL(cpcb->local_ip)) && - 801879e: 429a cmp r2, r3 - 80187a0: d102 bne.n 80187a8 - return ERR_USE; - 80187a2: f06f 0307 mvn.w r3, #7 - 80187a6: e029 b.n 80187fc - for (cpcb = *tcp_pcb_lists[i]; cpcb != NULL; cpcb = cpcb->next) { - 80187a8: 69bb ldr r3, [r7, #24] - 80187aa: 68db ldr r3, [r3, #12] - 80187ac: 61bb str r3, [r7, #24] - 80187ae: 69bb ldr r3, [r7, #24] - 80187b0: 2b00 cmp r3, #0 - 80187b2: d1dd bne.n 8018770 - for (i = 0; i < max_pcb_list; i++) { - 80187b4: 69fb ldr r3, [r7, #28] - 80187b6: 3301 adds r3, #1 - 80187b8: 61fb str r3, [r7, #28] - 80187ba: 69fa ldr r2, [r7, #28] - 80187bc: 697b ldr r3, [r7, #20] - 80187be: 429a cmp r2, r3 - 80187c0: dbcf blt.n 8018762 - } - } - } - } - - if (!ip_addr_isany(ipaddr) - 80187c2: 68bb ldr r3, [r7, #8] - 80187c4: 2b00 cmp r3, #0 - 80187c6: d00c beq.n 80187e2 - 80187c8: 68bb ldr r3, [r7, #8] - 80187ca: 681b ldr r3, [r3, #0] - 80187cc: 2b00 cmp r3, #0 - 80187ce: d008 beq.n 80187e2 -#if LWIP_IPV4 && LWIP_IPV6 - || (IP_GET_TYPE(ipaddr) != IP_GET_TYPE(&pcb->local_ip)) -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - ) { - ip_addr_set(&pcb->local_ip, ipaddr); - 80187d0: 68bb ldr r3, [r7, #8] - 80187d2: 2b00 cmp r3, #0 - 80187d4: d002 beq.n 80187dc - 80187d6: 68bb ldr r3, [r7, #8] - 80187d8: 681b ldr r3, [r3, #0] - 80187da: e000 b.n 80187de - 80187dc: 2300 movs r3, #0 - 80187de: 68fa ldr r2, [r7, #12] - 80187e0: 6013 str r3, [r2, #0] - } - pcb->local_port = port; - 80187e2: 68fb ldr r3, [r7, #12] - 80187e4: 88fa ldrh r2, [r7, #6] - 80187e6: 82da strh r2, [r3, #22] - TCP_REG(&tcp_bound_pcbs, pcb); - 80187e8: 4b0c ldr r3, [pc, #48] ; (801881c ) - 80187ea: 681a ldr r2, [r3, #0] - 80187ec: 68fb ldr r3, [r7, #12] - 80187ee: 60da str r2, [r3, #12] - 80187f0: 4a0a ldr r2, [pc, #40] ; (801881c ) - 80187f2: 68fb ldr r3, [r7, #12] - 80187f4: 6013 str r3, [r2, #0] - 80187f6: f005 fd63 bl 801e2c0 - LWIP_DEBUGF(TCP_DEBUG, ("tcp_bind: bind to port %"U16_F"\n", port)); - return ERR_OK; - 80187fa: 2300 movs r3, #0 -} - 80187fc: 4618 mov r0, r3 - 80187fe: 3720 adds r7, #32 - 8018800: 46bd mov sp, r7 - 8018802: bd80 pop {r7, pc} - 8018804: 08026cec .word 0x08026cec - 8018808: 08024ba8 .word 0x08024ba8 - 801880c: 08024d3c .word 0x08024d3c - 8018810: 08024bec .word 0x08024bec - 8018814: 08024d54 .word 0x08024d54 - 8018818: 08026cc4 .word 0x08026cc4 - 801881c: 2401a484 .word 0x2401a484 - -08018820 : - * 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) -{ - 8018820: b580 push {r7, lr} - 8018822: b084 sub sp, #16 - 8018824: af00 add r7, sp, #0 - 8018826: 6078 str r0, [r7, #4] - u32_t new_right_edge; - - LWIP_ASSERT("tcp_update_rcv_ann_wnd: invalid pcb", pcb != NULL); - 8018828: 687b ldr r3, [r7, #4] - 801882a: 2b00 cmp r3, #0 - 801882c: d106 bne.n 801883c - 801882e: 4b25 ldr r3, [pc, #148] ; (80188c4 ) - 8018830: f240 32a6 movw r2, #934 ; 0x3a6 - 8018834: 4924 ldr r1, [pc, #144] ; (80188c8 ) - 8018836: 4825 ldr r0, [pc, #148] ; (80188cc ) - 8018838: f009 f8a6 bl 8021988 - new_right_edge = pcb->rcv_nxt + pcb->rcv_wnd; - 801883c: 687b ldr r3, [r7, #4] - 801883e: 6a5b ldr r3, [r3, #36] ; 0x24 - 8018840: 687a ldr r2, [r7, #4] - 8018842: 8d12 ldrh r2, [r2, #40] ; 0x28 - 8018844: 4413 add r3, r2 - 8018846: 60fb str r3, [r7, #12] - - if (TCP_SEQ_GEQ(new_right_edge, pcb->rcv_ann_right_edge + LWIP_MIN((TCP_WND / 2), pcb->mss))) { - 8018848: 687b ldr r3, [r7, #4] - 801884a: 6adb ldr r3, [r3, #44] ; 0x2c - 801884c: 687a ldr r2, [r7, #4] - 801884e: 8e52 ldrh r2, [r2, #50] ; 0x32 - 8018850: f640 3168 movw r1, #2920 ; 0xb68 - 8018854: 428a cmp r2, r1 - 8018856: bf28 it cs - 8018858: 460a movcs r2, r1 - 801885a: b292 uxth r2, r2 - 801885c: 4413 add r3, r2 - 801885e: 68fa ldr r2, [r7, #12] - 8018860: 1ad3 subs r3, r2, r3 - 8018862: 2b00 cmp r3, #0 - 8018864: db08 blt.n 8018878 - /* we can advertise more window */ - pcb->rcv_ann_wnd = pcb->rcv_wnd; - 8018866: 687b ldr r3, [r7, #4] - 8018868: 8d1a ldrh r2, [r3, #40] ; 0x28 - 801886a: 687b ldr r3, [r7, #4] - 801886c: 855a strh r2, [r3, #42] ; 0x2a - return new_right_edge - pcb->rcv_ann_right_edge; - 801886e: 687b ldr r3, [r7, #4] - 8018870: 6adb ldr r3, [r3, #44] ; 0x2c - 8018872: 68fa ldr r2, [r7, #12] - 8018874: 1ad3 subs r3, r2, r3 - 8018876: e020 b.n 80188ba - } else { - if (TCP_SEQ_GT(pcb->rcv_nxt, pcb->rcv_ann_right_edge)) { - 8018878: 687b ldr r3, [r7, #4] - 801887a: 6a5a ldr r2, [r3, #36] ; 0x24 - 801887c: 687b ldr r3, [r7, #4] - 801887e: 6adb ldr r3, [r3, #44] ; 0x2c - 8018880: 1ad3 subs r3, r2, r3 - 8018882: 2b00 cmp r3, #0 - 8018884: dd03 ble.n 801888e - /* 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; - 8018886: 687b ldr r3, [r7, #4] - 8018888: 2200 movs r2, #0 - 801888a: 855a strh r2, [r3, #42] ; 0x2a - 801888c: e014 b.n 80188b8 - } else { - /* keep the right edge of window constant */ - u32_t new_rcv_ann_wnd = pcb->rcv_ann_right_edge - pcb->rcv_nxt; - 801888e: 687b ldr r3, [r7, #4] - 8018890: 6ada ldr r2, [r3, #44] ; 0x2c - 8018892: 687b ldr r3, [r7, #4] - 8018894: 6a5b ldr r3, [r3, #36] ; 0x24 - 8018896: 1ad3 subs r3, r2, r3 - 8018898: 60bb str r3, [r7, #8] -#if !LWIP_WND_SCALE - LWIP_ASSERT("new_rcv_ann_wnd <= 0xffff", new_rcv_ann_wnd <= 0xffff); - 801889a: 68bb ldr r3, [r7, #8] - 801889c: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 80188a0: d306 bcc.n 80188b0 - 80188a2: 4b08 ldr r3, [pc, #32] ; (80188c4 ) - 80188a4: f240 32b6 movw r2, #950 ; 0x3b6 - 80188a8: 4909 ldr r1, [pc, #36] ; (80188d0 ) - 80188aa: 4808 ldr r0, [pc, #32] ; (80188cc ) - 80188ac: f009 f86c bl 8021988 -#endif - pcb->rcv_ann_wnd = (tcpwnd_size_t)new_rcv_ann_wnd; - 80188b0: 68bb ldr r3, [r7, #8] - 80188b2: b29a uxth r2, r3 - 80188b4: 687b ldr r3, [r7, #4] - 80188b6: 855a strh r2, [r3, #42] ; 0x2a - } - return 0; - 80188b8: 2300 movs r3, #0 - } -} - 80188ba: 4618 mov r0, r3 - 80188bc: 3710 adds r7, #16 - 80188be: 46bd mov sp, r7 - 80188c0: bd80 pop {r7, pc} - 80188c2: bf00 nop - 80188c4: 08024ba8 .word 0x08024ba8 - 80188c8: 08024e04 .word 0x08024e04 - 80188cc: 08024bec .word 0x08024bec - 80188d0: 08024e28 .word 0x08024e28 - -080188d4 : - * @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) -{ - 80188d4: b580 push {r7, lr} - 80188d6: b084 sub sp, #16 - 80188d8: af00 add r7, sp, #0 - 80188da: 6078 str r0, [r7, #4] - 80188dc: 460b mov r3, r1 - 80188de: 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); - 80188e0: 687b ldr r3, [r7, #4] - 80188e2: 2b00 cmp r3, #0 - 80188e4: d107 bne.n 80188f6 - 80188e6: 4b20 ldr r3, [pc, #128] ; (8018968 ) - 80188e8: f240 32cf movw r2, #975 ; 0x3cf - 80188ec: 491f ldr r1, [pc, #124] ; (801896c ) - 80188ee: 4820 ldr r0, [pc, #128] ; (8018970 ) - 80188f0: f009 f84a bl 8021988 - 80188f4: e034 b.n 8018960 - - /* pcb->state LISTEN not allowed here */ - LWIP_ASSERT("don't call tcp_recved for listen-pcbs", - 80188f6: 687b ldr r3, [r7, #4] - 80188f8: 7d1b ldrb r3, [r3, #20] - 80188fa: 2b01 cmp r3, #1 - 80188fc: d106 bne.n 801890c - 80188fe: 4b1a ldr r3, [pc, #104] ; (8018968 ) - 8018900: f240 32d2 movw r2, #978 ; 0x3d2 - 8018904: 491b ldr r1, [pc, #108] ; (8018974 ) - 8018906: 481a ldr r0, [pc, #104] ; (8018970 ) - 8018908: f009 f83e bl 8021988 - pcb->state != LISTEN); - - rcv_wnd = (tcpwnd_size_t)(pcb->rcv_wnd + len); - 801890c: 687b ldr r3, [r7, #4] - 801890e: 8d1a ldrh r2, [r3, #40] ; 0x28 - 8018910: 887b ldrh r3, [r7, #2] - 8018912: 4413 add r3, r2 - 8018914: 81fb strh r3, [r7, #14] - if ((rcv_wnd > TCP_WND_MAX(pcb)) || (rcv_wnd < pcb->rcv_wnd)) { - 8018916: 89fb ldrh r3, [r7, #14] - 8018918: f241 62d0 movw r2, #5840 ; 0x16d0 - 801891c: 4293 cmp r3, r2 - 801891e: d804 bhi.n 801892a - 8018920: 687b ldr r3, [r7, #4] - 8018922: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8018924: 89fa ldrh r2, [r7, #14] - 8018926: 429a cmp r2, r3 - 8018928: d204 bcs.n 8018934 - /* 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); - 801892a: 687b ldr r3, [r7, #4] - 801892c: f241 62d0 movw r2, #5840 ; 0x16d0 - 8018930: 851a strh r2, [r3, #40] ; 0x28 - 8018932: e002 b.n 801893a - } else { - pcb->rcv_wnd = rcv_wnd; - 8018934: 687b ldr r3, [r7, #4] - 8018936: 89fa ldrh r2, [r7, #14] - 8018938: 851a strh r2, [r3, #40] ; 0x28 - } - - wnd_inflation = tcp_update_rcv_ann_wnd(pcb); - 801893a: 6878 ldr r0, [r7, #4] - 801893c: f7ff ff70 bl 8018820 - 8018940: 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) { - 8018942: 68bb ldr r3, [r7, #8] - 8018944: f240 52b3 movw r2, #1459 ; 0x5b3 - 8018948: 4293 cmp r3, r2 - 801894a: d909 bls.n 8018960 - tcp_ack_now(pcb); - 801894c: 687b ldr r3, [r7, #4] - 801894e: 8b5b ldrh r3, [r3, #26] - 8018950: f043 0302 orr.w r3, r3, #2 - 8018954: b29a uxth r2, r3 - 8018956: 687b ldr r3, [r7, #4] - 8018958: 835a strh r2, [r3, #26] - tcp_output(pcb); - 801895a: 6878 ldr r0, [r7, #4] - 801895c: f004 fd2e bl 801d3bc - } - - 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))); -} - 8018960: 3710 adds r7, #16 - 8018962: 46bd mov sp, r7 - 8018964: bd80 pop {r7, pc} - 8018966: bf00 nop - 8018968: 08024ba8 .word 0x08024ba8 - 801896c: 08024e44 .word 0x08024e44 - 8018970: 08024bec .word 0x08024bec - 8018974: 08024e5c .word 0x08024e5c - -08018978 : - * - * @return a new (free) local TCP port number - */ -static u16_t -tcp_new_port(void) -{ - 8018978: b480 push {r7} - 801897a: b083 sub sp, #12 - 801897c: af00 add r7, sp, #0 - u8_t i; - u16_t n = 0; - 801897e: 2300 movs r3, #0 - 8018980: 80bb strh r3, [r7, #4] - struct tcp_pcb *pcb; - -again: - tcp_port++; - 8018982: 4b1e ldr r3, [pc, #120] ; (80189fc ) - 8018984: 881b ldrh r3, [r3, #0] - 8018986: 3301 adds r3, #1 - 8018988: b29a uxth r2, r3 - 801898a: 4b1c ldr r3, [pc, #112] ; (80189fc ) - 801898c: 801a strh r2, [r3, #0] - if (tcp_port == TCP_LOCAL_PORT_RANGE_END) { - 801898e: 4b1b ldr r3, [pc, #108] ; (80189fc ) - 8018990: 881b ldrh r3, [r3, #0] - 8018992: f64f 72ff movw r2, #65535 ; 0xffff - 8018996: 4293 cmp r3, r2 - 8018998: d103 bne.n 80189a2 - tcp_port = TCP_LOCAL_PORT_RANGE_START; - 801899a: 4b18 ldr r3, [pc, #96] ; (80189fc ) - 801899c: f44f 4240 mov.w r2, #49152 ; 0xc000 - 80189a0: 801a strh r2, [r3, #0] - } - /* Check all PCB lists. */ - for (i = 0; i < NUM_TCP_PCB_LISTS; i++) { - 80189a2: 2300 movs r3, #0 - 80189a4: 71fb strb r3, [r7, #7] - 80189a6: e01e b.n 80189e6 - for (pcb = *tcp_pcb_lists[i]; pcb != NULL; pcb = pcb->next) { - 80189a8: 79fb ldrb r3, [r7, #7] - 80189aa: 4a15 ldr r2, [pc, #84] ; (8018a00 ) - 80189ac: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 80189b0: 681b ldr r3, [r3, #0] - 80189b2: 603b str r3, [r7, #0] - 80189b4: e011 b.n 80189da - if (pcb->local_port == tcp_port) { - 80189b6: 683b ldr r3, [r7, #0] - 80189b8: 8ada ldrh r2, [r3, #22] - 80189ba: 4b10 ldr r3, [pc, #64] ; (80189fc ) - 80189bc: 881b ldrh r3, [r3, #0] - 80189be: 429a cmp r2, r3 - 80189c0: d108 bne.n 80189d4 - n++; - 80189c2: 88bb ldrh r3, [r7, #4] - 80189c4: 3301 adds r3, #1 - 80189c6: 80bb strh r3, [r7, #4] - if (n > (TCP_LOCAL_PORT_RANGE_END - TCP_LOCAL_PORT_RANGE_START)) { - 80189c8: 88bb ldrh r3, [r7, #4] - 80189ca: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 - 80189ce: d3d8 bcc.n 8018982 - return 0; - 80189d0: 2300 movs r3, #0 - 80189d2: e00d b.n 80189f0 - for (pcb = *tcp_pcb_lists[i]; pcb != NULL; pcb = pcb->next) { - 80189d4: 683b ldr r3, [r7, #0] - 80189d6: 68db ldr r3, [r3, #12] - 80189d8: 603b str r3, [r7, #0] - 80189da: 683b ldr r3, [r7, #0] - 80189dc: 2b00 cmp r3, #0 - 80189de: d1ea bne.n 80189b6 - for (i = 0; i < NUM_TCP_PCB_LISTS; i++) { - 80189e0: 79fb ldrb r3, [r7, #7] - 80189e2: 3301 adds r3, #1 - 80189e4: 71fb strb r3, [r7, #7] - 80189e6: 79fb ldrb r3, [r7, #7] - 80189e8: 2b03 cmp r3, #3 - 80189ea: d9dd bls.n 80189a8 - } - goto again; - } - } - } - return tcp_port; - 80189ec: 4b03 ldr r3, [pc, #12] ; (80189fc ) - 80189ee: 881b ldrh r3, [r3, #0] -} - 80189f0: 4618 mov r0, r3 - 80189f2: 370c adds r7, #12 - 80189f4: 46bd mov sp, r7 - 80189f6: f85d 7b04 ldr.w r7, [sp], #4 - 80189fa: 4770 bx lr - 80189fc: 2400003c .word 0x2400003c - 8018a00: 08026cc4 .word 0x08026cc4 - -08018a04 : - * other err_t values if connect request couldn't be sent - */ -err_t -tcp_connect(struct tcp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port, - tcp_connected_fn connected) -{ - 8018a04: b580 push {r7, lr} - 8018a06: b08a sub sp, #40 ; 0x28 - 8018a08: af00 add r7, sp, #0 - 8018a0a: 60f8 str r0, [r7, #12] - 8018a0c: 60b9 str r1, [r7, #8] - 8018a0e: 603b str r3, [r7, #0] - 8018a10: 4613 mov r3, r2 - 8018a12: 80fb strh r3, [r7, #6] - struct netif *netif = NULL; - 8018a14: 2300 movs r3, #0 - 8018a16: 627b str r3, [r7, #36] ; 0x24 - u32_t iss; - u16_t old_local_port; - - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("tcp_connect: invalid pcb", pcb != NULL, return ERR_ARG); - 8018a18: 68fb ldr r3, [r7, #12] - 8018a1a: 2b00 cmp r3, #0 - 8018a1c: d109 bne.n 8018a32 - 8018a1e: 4b7d ldr r3, [pc, #500] ; (8018c14 ) - 8018a20: f240 4235 movw r2, #1077 ; 0x435 - 8018a24: 497c ldr r1, [pc, #496] ; (8018c18 ) - 8018a26: 487d ldr r0, [pc, #500] ; (8018c1c ) - 8018a28: f008 ffae bl 8021988 - 8018a2c: f06f 030f mvn.w r3, #15 - 8018a30: e0ec b.n 8018c0c - LWIP_ERROR("tcp_connect: invalid ipaddr", ipaddr != NULL, return ERR_ARG); - 8018a32: 68bb ldr r3, [r7, #8] - 8018a34: 2b00 cmp r3, #0 - 8018a36: d109 bne.n 8018a4c - 8018a38: 4b76 ldr r3, [pc, #472] ; (8018c14 ) - 8018a3a: f240 4236 movw r2, #1078 ; 0x436 - 8018a3e: 4978 ldr r1, [pc, #480] ; (8018c20 ) - 8018a40: 4876 ldr r0, [pc, #472] ; (8018c1c ) - 8018a42: f008 ffa1 bl 8021988 - 8018a46: f06f 030f mvn.w r3, #15 - 8018a4a: e0df b.n 8018c0c - - LWIP_ERROR("tcp_connect: can only connect from state CLOSED", pcb->state == CLOSED, return ERR_ISCONN); - 8018a4c: 68fb ldr r3, [r7, #12] - 8018a4e: 7d1b ldrb r3, [r3, #20] - 8018a50: 2b00 cmp r3, #0 - 8018a52: d009 beq.n 8018a68 - 8018a54: 4b6f ldr r3, [pc, #444] ; (8018c14 ) - 8018a56: f44f 6287 mov.w r2, #1080 ; 0x438 - 8018a5a: 4972 ldr r1, [pc, #456] ; (8018c24 ) - 8018a5c: 486f ldr r0, [pc, #444] ; (8018c1c ) - 8018a5e: f008 ff93 bl 8021988 - 8018a62: f06f 0309 mvn.w r3, #9 - 8018a66: e0d1 b.n 8018c0c - - LWIP_DEBUGF(TCP_DEBUG, ("tcp_connect to port %"U16_F"\n", port)); - ip_addr_set(&pcb->remote_ip, ipaddr); - 8018a68: 68bb ldr r3, [r7, #8] - 8018a6a: 2b00 cmp r3, #0 - 8018a6c: d002 beq.n 8018a74 - 8018a6e: 68bb ldr r3, [r7, #8] - 8018a70: 681b ldr r3, [r3, #0] - 8018a72: e000 b.n 8018a76 - 8018a74: 2300 movs r3, #0 - 8018a76: 68fa ldr r2, [r7, #12] - 8018a78: 6053 str r3, [r2, #4] - pcb->remote_port = port; - 8018a7a: 68fb ldr r3, [r7, #12] - 8018a7c: 88fa ldrh r2, [r7, #6] - 8018a7e: 831a strh r2, [r3, #24] - - if (pcb->netif_idx != NETIF_NO_INDEX) { - 8018a80: 68fb ldr r3, [r7, #12] - 8018a82: 7a1b ldrb r3, [r3, #8] - 8018a84: 2b00 cmp r3, #0 - 8018a86: d006 beq.n 8018a96 - netif = netif_get_by_index(pcb->netif_idx); - 8018a88: 68fb ldr r3, [r7, #12] - 8018a8a: 7a1b ldrb r3, [r3, #8] - 8018a8c: 4618 mov r0, r3 - 8018a8e: f7fe fca1 bl 80173d4 - 8018a92: 6278 str r0, [r7, #36] ; 0x24 - 8018a94: e005 b.n 8018aa2 - } else { - /* check if we have a route to the remote host */ - netif = ip_route(&pcb->local_ip, &pcb->remote_ip); - 8018a96: 68fb ldr r3, [r7, #12] - 8018a98: 3304 adds r3, #4 - 8018a9a: 4618 mov r0, r3 - 8018a9c: f007 fa2a bl 801fef4 - 8018aa0: 6278 str r0, [r7, #36] ; 0x24 - } - if (netif == NULL) { - 8018aa2: 6a7b ldr r3, [r7, #36] ; 0x24 - 8018aa4: 2b00 cmp r3, #0 - 8018aa6: d102 bne.n 8018aae - /* Don't even try to send a SYN packet if we have no route since that will fail. */ - return ERR_RTE; - 8018aa8: f06f 0303 mvn.w r3, #3 - 8018aac: e0ae b.n 8018c0c - } - - /* check if local IP has been assigned to pcb, if not, get one */ - if (ip_addr_isany(&pcb->local_ip)) { - 8018aae: 68fb ldr r3, [r7, #12] - 8018ab0: 2b00 cmp r3, #0 - 8018ab2: d003 beq.n 8018abc - 8018ab4: 68fb ldr r3, [r7, #12] - 8018ab6: 681b ldr r3, [r3, #0] - 8018ab8: 2b00 cmp r3, #0 - 8018aba: d111 bne.n 8018ae0 - const ip_addr_t *local_ip = ip_netif_get_local_ip(netif, ipaddr); - 8018abc: 6a7b ldr r3, [r7, #36] ; 0x24 - 8018abe: 2b00 cmp r3, #0 - 8018ac0: d002 beq.n 8018ac8 - 8018ac2: 6a7b ldr r3, [r7, #36] ; 0x24 - 8018ac4: 3304 adds r3, #4 - 8018ac6: e000 b.n 8018aca - 8018ac8: 2300 movs r3, #0 - 8018aca: 61fb str r3, [r7, #28] - if (local_ip == NULL) { - 8018acc: 69fb ldr r3, [r7, #28] - 8018ace: 2b00 cmp r3, #0 - 8018ad0: d102 bne.n 8018ad8 - return ERR_RTE; - 8018ad2: f06f 0303 mvn.w r3, #3 - 8018ad6: e099 b.n 8018c0c - } - ip_addr_copy(pcb->local_ip, *local_ip); - 8018ad8: 69fb ldr r3, [r7, #28] - 8018ada: 681a ldr r2, [r3, #0] - 8018adc: 68fb ldr r3, [r7, #12] - 8018ade: 601a str r2, [r3, #0] - ip6_addr_lacks_zone(ip_2_ip6(&pcb->remote_ip), IP6_UNICAST)) { - ip6_addr_assign_zone(ip_2_ip6(&pcb->remote_ip), IP6_UNICAST, netif); - } -#endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */ - - old_local_port = pcb->local_port; - 8018ae0: 68fb ldr r3, [r7, #12] - 8018ae2: 8adb ldrh r3, [r3, #22] - 8018ae4: 837b strh r3, [r7, #26] - if (pcb->local_port == 0) { - 8018ae6: 68fb ldr r3, [r7, #12] - 8018ae8: 8adb ldrh r3, [r3, #22] - 8018aea: 2b00 cmp r3, #0 - 8018aec: d10c bne.n 8018b08 - pcb->local_port = tcp_new_port(); - 8018aee: f7ff ff43 bl 8018978 - 8018af2: 4603 mov r3, r0 - 8018af4: 461a mov r2, r3 - 8018af6: 68fb ldr r3, [r7, #12] - 8018af8: 82da strh r2, [r3, #22] - if (pcb->local_port == 0) { - 8018afa: 68fb ldr r3, [r7, #12] - 8018afc: 8adb ldrh r3, [r3, #22] - 8018afe: 2b00 cmp r3, #0 - 8018b00: d102 bne.n 8018b08 - return ERR_BUF; - 8018b02: f06f 0301 mvn.w r3, #1 - 8018b06: e081 b.n 8018c0c - } - } -#endif /* SO_REUSE */ - } - - iss = tcp_next_iss(pcb); - 8018b08: 68f8 ldr r0, [r7, #12] - 8018b0a: f001 f869 bl 8019be0 - 8018b0e: 6178 str r0, [r7, #20] - pcb->rcv_nxt = 0; - 8018b10: 68fb ldr r3, [r7, #12] - 8018b12: 2200 movs r2, #0 - 8018b14: 625a str r2, [r3, #36] ; 0x24 - pcb->snd_nxt = iss; - 8018b16: 68fb ldr r3, [r7, #12] - 8018b18: 697a ldr r2, [r7, #20] - 8018b1a: 651a str r2, [r3, #80] ; 0x50 - pcb->lastack = iss - 1; - 8018b1c: 697b ldr r3, [r7, #20] - 8018b1e: 1e5a subs r2, r3, #1 - 8018b20: 68fb ldr r3, [r7, #12] - 8018b22: 645a str r2, [r3, #68] ; 0x44 - pcb->snd_wl2 = iss - 1; - 8018b24: 697b ldr r3, [r7, #20] - 8018b26: 1e5a subs r2, r3, #1 - 8018b28: 68fb ldr r3, [r7, #12] - 8018b2a: 659a str r2, [r3, #88] ; 0x58 - pcb->snd_lbb = iss - 1; - 8018b2c: 697b ldr r3, [r7, #20] - 8018b2e: 1e5a subs r2, r3, #1 - 8018b30: 68fb ldr r3, [r7, #12] - 8018b32: 65da str r2, [r3, #92] ; 0x5c - /* 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); - 8018b34: 68fb ldr r3, [r7, #12] - 8018b36: f241 62d0 movw r2, #5840 ; 0x16d0 - 8018b3a: 855a strh r2, [r3, #42] ; 0x2a - 8018b3c: 68fb ldr r3, [r7, #12] - 8018b3e: 8d5a ldrh r2, [r3, #42] ; 0x2a - 8018b40: 68fb ldr r3, [r7, #12] - 8018b42: 851a strh r2, [r3, #40] ; 0x28 - pcb->rcv_ann_right_edge = pcb->rcv_nxt; - 8018b44: 68fb ldr r3, [r7, #12] - 8018b46: 6a5a ldr r2, [r3, #36] ; 0x24 - 8018b48: 68fb ldr r3, [r7, #12] - 8018b4a: 62da str r2, [r3, #44] ; 0x2c - pcb->snd_wnd = TCP_WND; - 8018b4c: 68fb ldr r3, [r7, #12] - 8018b4e: f241 62d0 movw r2, #5840 ; 0x16d0 - 8018b52: f8a3 2060 strh.w r2, [r3, #96] ; 0x60 - /* 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; - 8018b56: 68fb ldr r3, [r7, #12] - 8018b58: f44f 7206 mov.w r2, #536 ; 0x218 - 8018b5c: 865a strh r2, [r3, #50] ; 0x32 -#if TCP_CALCULATE_EFF_SEND_MSS - pcb->mss = tcp_eff_send_mss_netif(pcb->mss, netif, &pcb->remote_ip); - 8018b5e: 68fb ldr r3, [r7, #12] - 8018b60: 8e58 ldrh r0, [r3, #50] ; 0x32 - 8018b62: 68fb ldr r3, [r7, #12] - 8018b64: 3304 adds r3, #4 - 8018b66: 461a mov r2, r3 - 8018b68: 6a79 ldr r1, [r7, #36] ; 0x24 - 8018b6a: f001 f85f bl 8019c2c - 8018b6e: 4603 mov r3, r0 - 8018b70: 461a mov r2, r3 - 8018b72: 68fb ldr r3, [r7, #12] - 8018b74: 865a strh r2, [r3, #50] ; 0x32 -#endif /* TCP_CALCULATE_EFF_SEND_MSS */ - pcb->cwnd = 1; - 8018b76: 68fb ldr r3, [r7, #12] - 8018b78: 2201 movs r2, #1 - 8018b7a: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 -#if LWIP_CALLBACK_API - pcb->connected = connected; - 8018b7e: 68fb ldr r3, [r7, #12] - 8018b80: 683a ldr r2, [r7, #0] - 8018b82: f8c3 2088 str.w r2, [r3, #136] ; 0x88 -#else /* LWIP_CALLBACK_API */ - LWIP_UNUSED_ARG(connected); -#endif /* LWIP_CALLBACK_API */ - - /* Send a SYN together with the MSS option. */ - ret = tcp_enqueue_flags(pcb, TCP_SYN); - 8018b86: 2102 movs r1, #2 - 8018b88: 68f8 ldr r0, [r7, #12] - 8018b8a: f004 fb29 bl 801d1e0 - 8018b8e: 4603 mov r3, r0 - 8018b90: 74fb strb r3, [r7, #19] - if (ret == ERR_OK) { - 8018b92: f997 3013 ldrsb.w r3, [r7, #19] - 8018b96: 2b00 cmp r3, #0 - 8018b98: d136 bne.n 8018c08 - /* SYN segment was enqueued, changed the pcbs state now */ - pcb->state = SYN_SENT; - 8018b9a: 68fb ldr r3, [r7, #12] - 8018b9c: 2202 movs r2, #2 - 8018b9e: 751a strb r2, [r3, #20] - if (old_local_port != 0) { - 8018ba0: 8b7b ldrh r3, [r7, #26] - 8018ba2: 2b00 cmp r3, #0 - 8018ba4: d021 beq.n 8018bea - TCP_RMV(&tcp_bound_pcbs, pcb); - 8018ba6: 4b20 ldr r3, [pc, #128] ; (8018c28 ) - 8018ba8: 681b ldr r3, [r3, #0] - 8018baa: 68fa ldr r2, [r7, #12] - 8018bac: 429a cmp r2, r3 - 8018bae: d105 bne.n 8018bbc - 8018bb0: 4b1d ldr r3, [pc, #116] ; (8018c28 ) - 8018bb2: 681b ldr r3, [r3, #0] - 8018bb4: 68db ldr r3, [r3, #12] - 8018bb6: 4a1c ldr r2, [pc, #112] ; (8018c28 ) - 8018bb8: 6013 str r3, [r2, #0] - 8018bba: e013 b.n 8018be4 - 8018bbc: 4b1a ldr r3, [pc, #104] ; (8018c28 ) - 8018bbe: 681b ldr r3, [r3, #0] - 8018bc0: 623b str r3, [r7, #32] - 8018bc2: e00c b.n 8018bde - 8018bc4: 6a3b ldr r3, [r7, #32] - 8018bc6: 68db ldr r3, [r3, #12] - 8018bc8: 68fa ldr r2, [r7, #12] - 8018bca: 429a cmp r2, r3 - 8018bcc: d104 bne.n 8018bd8 - 8018bce: 68fb ldr r3, [r7, #12] - 8018bd0: 68da ldr r2, [r3, #12] - 8018bd2: 6a3b ldr r3, [r7, #32] - 8018bd4: 60da str r2, [r3, #12] - 8018bd6: e005 b.n 8018be4 - 8018bd8: 6a3b ldr r3, [r7, #32] - 8018bda: 68db ldr r3, [r3, #12] - 8018bdc: 623b str r3, [r7, #32] - 8018bde: 6a3b ldr r3, [r7, #32] - 8018be0: 2b00 cmp r3, #0 - 8018be2: d1ef bne.n 8018bc4 - 8018be4: 68fb ldr r3, [r7, #12] - 8018be6: 2200 movs r2, #0 - 8018be8: 60da str r2, [r3, #12] - } - TCP_REG_ACTIVE(pcb); - 8018bea: 4b10 ldr r3, [pc, #64] ; (8018c2c ) - 8018bec: 681a ldr r2, [r3, #0] - 8018bee: 68fb ldr r3, [r7, #12] - 8018bf0: 60da str r2, [r3, #12] - 8018bf2: 4a0e ldr r2, [pc, #56] ; (8018c2c ) - 8018bf4: 68fb ldr r3, [r7, #12] - 8018bf6: 6013 str r3, [r2, #0] - 8018bf8: f005 fb62 bl 801e2c0 - 8018bfc: 4b0c ldr r3, [pc, #48] ; (8018c30 ) - 8018bfe: 2201 movs r2, #1 - 8018c00: 701a strb r2, [r3, #0] - MIB2_STATS_INC(mib2.tcpactiveopens); - - tcp_output(pcb); - 8018c02: 68f8 ldr r0, [r7, #12] - 8018c04: f004 fbda bl 801d3bc - } - return ret; - 8018c08: f997 3013 ldrsb.w r3, [r7, #19] -} - 8018c0c: 4618 mov r0, r3 - 8018c0e: 3728 adds r7, #40 ; 0x28 - 8018c10: 46bd mov sp, r7 - 8018c12: bd80 pop {r7, pc} - 8018c14: 08024ba8 .word 0x08024ba8 - 8018c18: 08024e84 .word 0x08024e84 - 8018c1c: 08024bec .word 0x08024bec - 8018c20: 08024ea0 .word 0x08024ea0 - 8018c24: 08024ebc .word 0x08024ebc - 8018c28: 2401a484 .word 0x2401a484 - 8018c2c: 2401a48c .word 0x2401a48c - 8018c30: 2401a494 .word 0x2401a494 - -08018c34 : - * - * Automatically called from tcp_tmr(). - */ -void -tcp_slowtmr(void) -{ - 8018c34: b5b0 push {r4, r5, r7, lr} - 8018c36: b090 sub sp, #64 ; 0x40 - 8018c38: 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; - 8018c3a: 2300 movs r3, #0 - 8018c3c: f887 3025 strb.w r3, [r7, #37] ; 0x25 - - ++tcp_ticks; - 8018c40: 4b94 ldr r3, [pc, #592] ; (8018e94 ) - 8018c42: 681b ldr r3, [r3, #0] - 8018c44: 3301 adds r3, #1 - 8018c46: 4a93 ldr r2, [pc, #588] ; (8018e94 ) - 8018c48: 6013 str r3, [r2, #0] - ++tcp_timer_ctr; - 8018c4a: 4b93 ldr r3, [pc, #588] ; (8018e98 ) - 8018c4c: 781b ldrb r3, [r3, #0] - 8018c4e: 3301 adds r3, #1 - 8018c50: b2da uxtb r2, r3 - 8018c52: 4b91 ldr r3, [pc, #580] ; (8018e98 ) - 8018c54: 701a strb r2, [r3, #0] - -tcp_slowtmr_start: - /* Steps through all of the active PCBs. */ - prev = NULL; - 8018c56: 2300 movs r3, #0 - 8018c58: 62bb str r3, [r7, #40] ; 0x28 - pcb = tcp_active_pcbs; - 8018c5a: 4b90 ldr r3, [pc, #576] ; (8018e9c ) - 8018c5c: 681b ldr r3, [r3, #0] - 8018c5e: 62fb str r3, [r7, #44] ; 0x2c - if (pcb == NULL) { - LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: no active pcbs\n")); - } - while (pcb != NULL) { - 8018c60: e29d b.n 801919e - LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: processing active pcb\n")); - LWIP_ASSERT("tcp_slowtmr: active pcb->state != CLOSED\n", pcb->state != CLOSED); - 8018c62: 6afb ldr r3, [r7, #44] ; 0x2c - 8018c64: 7d1b ldrb r3, [r3, #20] - 8018c66: 2b00 cmp r3, #0 - 8018c68: d106 bne.n 8018c78 - 8018c6a: 4b8d ldr r3, [pc, #564] ; (8018ea0 ) - 8018c6c: f240 42be movw r2, #1214 ; 0x4be - 8018c70: 498c ldr r1, [pc, #560] ; (8018ea4 ) - 8018c72: 488d ldr r0, [pc, #564] ; (8018ea8 ) - 8018c74: f008 fe88 bl 8021988 - LWIP_ASSERT("tcp_slowtmr: active pcb->state != LISTEN\n", pcb->state != LISTEN); - 8018c78: 6afb ldr r3, [r7, #44] ; 0x2c - 8018c7a: 7d1b ldrb r3, [r3, #20] - 8018c7c: 2b01 cmp r3, #1 - 8018c7e: d106 bne.n 8018c8e - 8018c80: 4b87 ldr r3, [pc, #540] ; (8018ea0 ) - 8018c82: f240 42bf movw r2, #1215 ; 0x4bf - 8018c86: 4989 ldr r1, [pc, #548] ; (8018eac ) - 8018c88: 4887 ldr r0, [pc, #540] ; (8018ea8 ) - 8018c8a: f008 fe7d bl 8021988 - LWIP_ASSERT("tcp_slowtmr: active pcb->state != TIME-WAIT\n", pcb->state != TIME_WAIT); - 8018c8e: 6afb ldr r3, [r7, #44] ; 0x2c - 8018c90: 7d1b ldrb r3, [r3, #20] - 8018c92: 2b0a cmp r3, #10 - 8018c94: d106 bne.n 8018ca4 - 8018c96: 4b82 ldr r3, [pc, #520] ; (8018ea0 ) - 8018c98: f44f 6298 mov.w r2, #1216 ; 0x4c0 - 8018c9c: 4984 ldr r1, [pc, #528] ; (8018eb0 ) - 8018c9e: 4882 ldr r0, [pc, #520] ; (8018ea8 ) - 8018ca0: f008 fe72 bl 8021988 - if (pcb->last_timer == tcp_timer_ctr) { - 8018ca4: 6afb ldr r3, [r7, #44] ; 0x2c - 8018ca6: 7f9a ldrb r2, [r3, #30] - 8018ca8: 4b7b ldr r3, [pc, #492] ; (8018e98 ) - 8018caa: 781b ldrb r3, [r3, #0] - 8018cac: 429a cmp r2, r3 - 8018cae: d105 bne.n 8018cbc - /* skip this pcb, we have already processed it */ - prev = pcb; - 8018cb0: 6afb ldr r3, [r7, #44] ; 0x2c - 8018cb2: 62bb str r3, [r7, #40] ; 0x28 - pcb = pcb->next; - 8018cb4: 6afb ldr r3, [r7, #44] ; 0x2c - 8018cb6: 68db ldr r3, [r3, #12] - 8018cb8: 62fb str r3, [r7, #44] ; 0x2c - continue; - 8018cba: e270 b.n 801919e - } - pcb->last_timer = tcp_timer_ctr; - 8018cbc: 4b76 ldr r3, [pc, #472] ; (8018e98 ) - 8018cbe: 781a ldrb r2, [r3, #0] - 8018cc0: 6afb ldr r3, [r7, #44] ; 0x2c - 8018cc2: 779a strb r2, [r3, #30] - - pcb_remove = 0; - 8018cc4: 2300 movs r3, #0 - 8018cc6: f887 3027 strb.w r3, [r7, #39] ; 0x27 - pcb_reset = 0; - 8018cca: 2300 movs r3, #0 - 8018ccc: f887 3026 strb.w r3, [r7, #38] ; 0x26 - - if (pcb->state == SYN_SENT && pcb->nrtx >= TCP_SYNMAXRTX) { - 8018cd0: 6afb ldr r3, [r7, #44] ; 0x2c - 8018cd2: 7d1b ldrb r3, [r3, #20] - 8018cd4: 2b02 cmp r3, #2 - 8018cd6: d10a bne.n 8018cee - 8018cd8: 6afb ldr r3, [r7, #44] ; 0x2c - 8018cda: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 - 8018cde: 2b05 cmp r3, #5 - 8018ce0: d905 bls.n 8018cee - ++pcb_remove; - 8018ce2: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8018ce6: 3301 adds r3, #1 - 8018ce8: f887 3027 strb.w r3, [r7, #39] ; 0x27 - LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: max SYN retries reached\n")); - 8018cec: e11e b.n 8018f2c - } else if (pcb->nrtx >= TCP_MAXRTX) { - 8018cee: 6afb ldr r3, [r7, #44] ; 0x2c - 8018cf0: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 - 8018cf4: 2b0b cmp r3, #11 - 8018cf6: d905 bls.n 8018d04 - ++pcb_remove; - 8018cf8: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8018cfc: 3301 adds r3, #1 - 8018cfe: f887 3027 strb.w r3, [r7, #39] ; 0x27 - 8018d02: e113 b.n 8018f2c - LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: max DATA retries reached\n")); - } else { - if (pcb->persist_backoff > 0) { - 8018d04: 6afb ldr r3, [r7, #44] ; 0x2c - 8018d06: f893 3099 ldrb.w r3, [r3, #153] ; 0x99 - 8018d0a: 2b00 cmp r3, #0 - 8018d0c: d075 beq.n 8018dfa - LWIP_ASSERT("tcp_slowtimr: persist ticking with in-flight data", pcb->unacked == NULL); - 8018d0e: 6afb ldr r3, [r7, #44] ; 0x2c - 8018d10: 6f1b ldr r3, [r3, #112] ; 0x70 - 8018d12: 2b00 cmp r3, #0 - 8018d14: d006 beq.n 8018d24 - 8018d16: 4b62 ldr r3, [pc, #392] ; (8018ea0 ) - 8018d18: f240 42d4 movw r2, #1236 ; 0x4d4 - 8018d1c: 4965 ldr r1, [pc, #404] ; (8018eb4 ) - 8018d1e: 4862 ldr r0, [pc, #392] ; (8018ea8 ) - 8018d20: f008 fe32 bl 8021988 - LWIP_ASSERT("tcp_slowtimr: persist ticking with empty send buffer", pcb->unsent != NULL); - 8018d24: 6afb ldr r3, [r7, #44] ; 0x2c - 8018d26: 6edb ldr r3, [r3, #108] ; 0x6c - 8018d28: 2b00 cmp r3, #0 - 8018d2a: d106 bne.n 8018d3a - 8018d2c: 4b5c ldr r3, [pc, #368] ; (8018ea0 ) - 8018d2e: f240 42d5 movw r2, #1237 ; 0x4d5 - 8018d32: 4961 ldr r1, [pc, #388] ; (8018eb8 ) - 8018d34: 485c ldr r0, [pc, #368] ; (8018ea8 ) - 8018d36: f008 fe27 bl 8021988 - if (pcb->persist_probe >= TCP_MAXRTX) { - 8018d3a: 6afb ldr r3, [r7, #44] ; 0x2c - 8018d3c: f893 309a ldrb.w r3, [r3, #154] ; 0x9a - 8018d40: 2b0b cmp r3, #11 - 8018d42: d905 bls.n 8018d50 - ++pcb_remove; /* max probes reached */ - 8018d44: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8018d48: 3301 adds r3, #1 - 8018d4a: f887 3027 strb.w r3, [r7, #39] ; 0x27 - 8018d4e: e0ed b.n 8018f2c - } else { - u8_t backoff_cnt = tcp_persist_backoff[pcb->persist_backoff - 1]; - 8018d50: 6afb ldr r3, [r7, #44] ; 0x2c - 8018d52: f893 3099 ldrb.w r3, [r3, #153] ; 0x99 - 8018d56: 3b01 subs r3, #1 - 8018d58: 4a58 ldr r2, [pc, #352] ; (8018ebc ) - 8018d5a: 5cd3 ldrb r3, [r2, r3] - 8018d5c: 747b strb r3, [r7, #17] - if (pcb->persist_cnt < backoff_cnt) { - 8018d5e: 6afb ldr r3, [r7, #44] ; 0x2c - 8018d60: f893 3098 ldrb.w r3, [r3, #152] ; 0x98 - 8018d64: 7c7a ldrb r2, [r7, #17] - 8018d66: 429a cmp r2, r3 - 8018d68: d907 bls.n 8018d7a - pcb->persist_cnt++; - 8018d6a: 6afb ldr r3, [r7, #44] ; 0x2c - 8018d6c: f893 3098 ldrb.w r3, [r3, #152] ; 0x98 - 8018d70: 3301 adds r3, #1 - 8018d72: b2da uxtb r2, r3 - 8018d74: 6afb ldr r3, [r7, #44] ; 0x2c - 8018d76: f883 2098 strb.w r2, [r3, #152] ; 0x98 - } - if (pcb->persist_cnt >= backoff_cnt) { - 8018d7a: 6afb ldr r3, [r7, #44] ; 0x2c - 8018d7c: f893 3098 ldrb.w r3, [r3, #152] ; 0x98 - 8018d80: 7c7a ldrb r2, [r7, #17] - 8018d82: 429a cmp r2, r3 - 8018d84: f200 80d2 bhi.w 8018f2c - int next_slot = 1; /* increment timer to next slot */ - 8018d88: 2301 movs r3, #1 - 8018d8a: 623b str r3, [r7, #32] - /* If snd_wnd is zero, send 1 byte probes */ - if (pcb->snd_wnd == 0) { - 8018d8c: 6afb ldr r3, [r7, #44] ; 0x2c - 8018d8e: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 - 8018d92: 2b00 cmp r3, #0 - 8018d94: d108 bne.n 8018da8 - if (tcp_zero_window_probe(pcb) != ERR_OK) { - 8018d96: 6af8 ldr r0, [r7, #44] ; 0x2c - 8018d98: f005 f9c4 bl 801e124 - 8018d9c: 4603 mov r3, r0 - 8018d9e: 2b00 cmp r3, #0 - 8018da0: d014 beq.n 8018dcc - next_slot = 0; /* try probe again with current slot */ - 8018da2: 2300 movs r3, #0 - 8018da4: 623b str r3, [r7, #32] - 8018da6: e011 b.n 8018dcc - } - /* 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) { - 8018da8: 6afb ldr r3, [r7, #44] ; 0x2c - 8018daa: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 - 8018dae: 4619 mov r1, r3 - 8018db0: 6af8 ldr r0, [r7, #44] ; 0x2c - 8018db2: f004 f879 bl 801cea8 - 8018db6: 4603 mov r3, r0 - 8018db8: 2b00 cmp r3, #0 - 8018dba: d107 bne.n 8018dcc - if (tcp_output(pcb) == ERR_OK) { - 8018dbc: 6af8 ldr r0, [r7, #44] ; 0x2c - 8018dbe: f004 fafd bl 801d3bc - 8018dc2: 4603 mov r3, r0 - 8018dc4: 2b00 cmp r3, #0 - 8018dc6: d101 bne.n 8018dcc - /* sending will cancel persist timer, else retry with current slot */ - next_slot = 0; - 8018dc8: 2300 movs r3, #0 - 8018dca: 623b str r3, [r7, #32] - } - } - } - if (next_slot) { - 8018dcc: 6a3b ldr r3, [r7, #32] - 8018dce: 2b00 cmp r3, #0 - 8018dd0: f000 80ac beq.w 8018f2c - pcb->persist_cnt = 0; - 8018dd4: 6afb ldr r3, [r7, #44] ; 0x2c - 8018dd6: 2200 movs r2, #0 - 8018dd8: f883 2098 strb.w r2, [r3, #152] ; 0x98 - if (pcb->persist_backoff < sizeof(tcp_persist_backoff)) { - 8018ddc: 6afb ldr r3, [r7, #44] ; 0x2c - 8018dde: f893 3099 ldrb.w r3, [r3, #153] ; 0x99 - 8018de2: 2b06 cmp r3, #6 - 8018de4: f200 80a2 bhi.w 8018f2c - pcb->persist_backoff++; - 8018de8: 6afb ldr r3, [r7, #44] ; 0x2c - 8018dea: f893 3099 ldrb.w r3, [r3, #153] ; 0x99 - 8018dee: 3301 adds r3, #1 - 8018df0: b2da uxtb r2, r3 - 8018df2: 6afb ldr r3, [r7, #44] ; 0x2c - 8018df4: f883 2099 strb.w r2, [r3, #153] ; 0x99 - 8018df8: e098 b.n 8018f2c - } - } - } - } else { - /* Increase the retransmission timer if it is running */ - if ((pcb->rtime >= 0) && (pcb->rtime < 0x7FFF)) { - 8018dfa: 6afb ldr r3, [r7, #44] ; 0x2c - 8018dfc: f9b3 3030 ldrsh.w r3, [r3, #48] ; 0x30 - 8018e00: 2b00 cmp r3, #0 - 8018e02: db0f blt.n 8018e24 - 8018e04: 6afb ldr r3, [r7, #44] ; 0x2c - 8018e06: f9b3 3030 ldrsh.w r3, [r3, #48] ; 0x30 - 8018e0a: f647 72ff movw r2, #32767 ; 0x7fff - 8018e0e: 4293 cmp r3, r2 - 8018e10: d008 beq.n 8018e24 - ++pcb->rtime; - 8018e12: 6afb ldr r3, [r7, #44] ; 0x2c - 8018e14: f9b3 3030 ldrsh.w r3, [r3, #48] ; 0x30 - 8018e18: b29b uxth r3, r3 - 8018e1a: 3301 adds r3, #1 - 8018e1c: b29b uxth r3, r3 - 8018e1e: b21a sxth r2, r3 - 8018e20: 6afb ldr r3, [r7, #44] ; 0x2c - 8018e22: 861a strh r2, [r3, #48] ; 0x30 - } - - if (pcb->rtime >= pcb->rto) { - 8018e24: 6afb ldr r3, [r7, #44] ; 0x2c - 8018e26: f9b3 2030 ldrsh.w r2, [r3, #48] ; 0x30 - 8018e2a: 6afb ldr r3, [r7, #44] ; 0x2c - 8018e2c: f9b3 3040 ldrsh.w r3, [r3, #64] ; 0x40 - 8018e30: 429a cmp r2, r3 - 8018e32: db7b blt.n 8018f2c - " 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))) { - 8018e34: 6af8 ldr r0, [r7, #44] ; 0x2c - 8018e36: f004 fdb7 bl 801d9a8 - 8018e3a: 4603 mov r3, r0 - 8018e3c: 2b00 cmp r3, #0 - 8018e3e: d007 beq.n 8018e50 - 8018e40: 6afb ldr r3, [r7, #44] ; 0x2c - 8018e42: 6f1b ldr r3, [r3, #112] ; 0x70 - 8018e44: 2b00 cmp r3, #0 - 8018e46: d171 bne.n 8018f2c - 8018e48: 6afb ldr r3, [r7, #44] ; 0x2c - 8018e4a: 6edb ldr r3, [r3, #108] ; 0x6c - 8018e4c: 2b00 cmp r3, #0 - 8018e4e: d06d beq.n 8018f2c - /* Double retransmission time-out unless we are trying to - * connect to somebody (i.e., we are in SYN_SENT). */ - if (pcb->state != SYN_SENT) { - 8018e50: 6afb ldr r3, [r7, #44] ; 0x2c - 8018e52: 7d1b ldrb r3, [r3, #20] - 8018e54: 2b02 cmp r3, #2 - 8018e56: d03a beq.n 8018ece - u8_t backoff_idx = LWIP_MIN(pcb->nrtx, sizeof(tcp_backoff) - 1); - 8018e58: 6afb ldr r3, [r7, #44] ; 0x2c - 8018e5a: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 - 8018e5e: 2b0c cmp r3, #12 - 8018e60: bf28 it cs - 8018e62: 230c movcs r3, #12 - 8018e64: 76fb strb r3, [r7, #27] - int calc_rto = ((pcb->sa >> 3) + pcb->sv) << tcp_backoff[backoff_idx]; - 8018e66: 6afb ldr r3, [r7, #44] ; 0x2c - 8018e68: f9b3 303c ldrsh.w r3, [r3, #60] ; 0x3c - 8018e6c: 10db asrs r3, r3, #3 - 8018e6e: b21b sxth r3, r3 - 8018e70: 461a mov r2, r3 - 8018e72: 6afb ldr r3, [r7, #44] ; 0x2c - 8018e74: f9b3 303e ldrsh.w r3, [r3, #62] ; 0x3e - 8018e78: 4413 add r3, r2 - 8018e7a: 7efa ldrb r2, [r7, #27] - 8018e7c: 4910 ldr r1, [pc, #64] ; (8018ec0 ) - 8018e7e: 5c8a ldrb r2, [r1, r2] - 8018e80: 4093 lsls r3, r2 - 8018e82: 617b str r3, [r7, #20] - pcb->rto = (s16_t)LWIP_MIN(calc_rto, 0x7FFF); - 8018e84: 697b ldr r3, [r7, #20] - 8018e86: f647 72fe movw r2, #32766 ; 0x7ffe - 8018e8a: 4293 cmp r3, r2 - 8018e8c: dc1a bgt.n 8018ec4 - 8018e8e: 697b ldr r3, [r7, #20] - 8018e90: b21a sxth r2, r3 - 8018e92: e019 b.n 8018ec8 - 8018e94: 2401a480 .word 0x2401a480 - 8018e98: 2401a496 .word 0x2401a496 - 8018e9c: 2401a48c .word 0x2401a48c - 8018ea0: 08024ba8 .word 0x08024ba8 - 8018ea4: 08024eec .word 0x08024eec - 8018ea8: 08024bec .word 0x08024bec - 8018eac: 08024f18 .word 0x08024f18 - 8018eb0: 08024f44 .word 0x08024f44 - 8018eb4: 08024f74 .word 0x08024f74 - 8018eb8: 08024fa8 .word 0x08024fa8 - 8018ebc: 08026cbc .word 0x08026cbc - 8018ec0: 08026cac .word 0x08026cac - 8018ec4: f647 72ff movw r2, #32767 ; 0x7fff - 8018ec8: 6afb ldr r3, [r7, #44] ; 0x2c - 8018eca: f8a3 2040 strh.w r2, [r3, #64] ; 0x40 - } - - /* Reset the retransmission timer. */ - pcb->rtime = 0; - 8018ece: 6afb ldr r3, [r7, #44] ; 0x2c - 8018ed0: 2200 movs r2, #0 - 8018ed2: 861a strh r2, [r3, #48] ; 0x30 - - /* Reduce congestion window and ssthresh. */ - eff_wnd = LWIP_MIN(pcb->cwnd, pcb->snd_wnd); - 8018ed4: 6afb ldr r3, [r7, #44] ; 0x2c - 8018ed6: f8b3 2060 ldrh.w r2, [r3, #96] ; 0x60 - 8018eda: 6afb ldr r3, [r7, #44] ; 0x2c - 8018edc: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 - 8018ee0: 4293 cmp r3, r2 - 8018ee2: bf28 it cs - 8018ee4: 4613 movcs r3, r2 - 8018ee6: 827b strh r3, [r7, #18] - pcb->ssthresh = eff_wnd >> 1; - 8018ee8: 8a7b ldrh r3, [r7, #18] - 8018eea: 085b lsrs r3, r3, #1 - 8018eec: b29a uxth r2, r3 - 8018eee: 6afb ldr r3, [r7, #44] ; 0x2c - 8018ef0: f8a3 204a strh.w r2, [r3, #74] ; 0x4a - if (pcb->ssthresh < (tcpwnd_size_t)(pcb->mss << 1)) { - 8018ef4: 6afb ldr r3, [r7, #44] ; 0x2c - 8018ef6: f8b3 204a ldrh.w r2, [r3, #74] ; 0x4a - 8018efa: 6afb ldr r3, [r7, #44] ; 0x2c - 8018efc: 8e5b ldrh r3, [r3, #50] ; 0x32 - 8018efe: 005b lsls r3, r3, #1 - 8018f00: b29b uxth r3, r3 - 8018f02: 429a cmp r2, r3 - 8018f04: d206 bcs.n 8018f14 - pcb->ssthresh = (tcpwnd_size_t)(pcb->mss << 1); - 8018f06: 6afb ldr r3, [r7, #44] ; 0x2c - 8018f08: 8e5b ldrh r3, [r3, #50] ; 0x32 - 8018f0a: 005b lsls r3, r3, #1 - 8018f0c: b29a uxth r2, r3 - 8018f0e: 6afb ldr r3, [r7, #44] ; 0x2c - 8018f10: f8a3 204a strh.w r2, [r3, #74] ; 0x4a - } - pcb->cwnd = pcb->mss; - 8018f14: 6afb ldr r3, [r7, #44] ; 0x2c - 8018f16: 8e5a ldrh r2, [r3, #50] ; 0x32 - 8018f18: 6afb ldr r3, [r7, #44] ; 0x2c - 8018f1a: 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; - 8018f1e: 6afb ldr r3, [r7, #44] ; 0x2c - 8018f20: 2200 movs r2, #0 - 8018f22: 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); - 8018f26: 6af8 ldr r0, [r7, #44] ; 0x2c - 8018f28: f004 fdb8 bl 801da9c - } - } - } - } - /* Check if this PCB has stayed too long in FIN-WAIT-2 */ - if (pcb->state == FIN_WAIT_2) { - 8018f2c: 6afb ldr r3, [r7, #44] ; 0x2c - 8018f2e: 7d1b ldrb r3, [r3, #20] - 8018f30: 2b06 cmp r3, #6 - 8018f32: d111 bne.n 8018f58 - /* If this PCB is in FIN_WAIT_2 because of SHUT_WR don't let it time out. */ - if (pcb->flags & TF_RXCLOSED) { - 8018f34: 6afb ldr r3, [r7, #44] ; 0x2c - 8018f36: 8b5b ldrh r3, [r3, #26] - 8018f38: f003 0310 and.w r3, r3, #16 - 8018f3c: 2b00 cmp r3, #0 - 8018f3e: d00b beq.n 8018f58 - /* PCB was fully closed (either through close() or SHUT_RDWR): - normal FIN-WAIT timeout handling. */ - if ((u32_t)(tcp_ticks - pcb->tmr) > - 8018f40: 4b9c ldr r3, [pc, #624] ; (80191b4 ) - 8018f42: 681a ldr r2, [r3, #0] - 8018f44: 6afb ldr r3, [r7, #44] ; 0x2c - 8018f46: 6a1b ldr r3, [r3, #32] - 8018f48: 1ad3 subs r3, r2, r3 - 8018f4a: 2b28 cmp r3, #40 ; 0x28 - 8018f4c: d904 bls.n 8018f58 - TCP_FIN_WAIT_TIMEOUT / TCP_SLOW_INTERVAL) { - ++pcb_remove; - 8018f4e: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8018f52: 3301 adds r3, #1 - 8018f54: f887 3027 strb.w r3, [r7, #39] ; 0x27 - } - } - } - - /* Check if KEEPALIVE should be sent */ - if (ip_get_option(pcb, SOF_KEEPALIVE) && - 8018f58: 6afb ldr r3, [r7, #44] ; 0x2c - 8018f5a: 7a5b ldrb r3, [r3, #9] - 8018f5c: f003 0308 and.w r3, r3, #8 - 8018f60: 2b00 cmp r3, #0 - 8018f62: d04a beq.n 8018ffa - ((pcb->state == ESTABLISHED) || - 8018f64: 6afb ldr r3, [r7, #44] ; 0x2c - 8018f66: 7d1b ldrb r3, [r3, #20] - if (ip_get_option(pcb, SOF_KEEPALIVE) && - 8018f68: 2b04 cmp r3, #4 - 8018f6a: d003 beq.n 8018f74 - (pcb->state == CLOSE_WAIT))) { - 8018f6c: 6afb ldr r3, [r7, #44] ; 0x2c - 8018f6e: 7d1b ldrb r3, [r3, #20] - ((pcb->state == ESTABLISHED) || - 8018f70: 2b07 cmp r3, #7 - 8018f72: d142 bne.n 8018ffa - if ((u32_t)(tcp_ticks - pcb->tmr) > - 8018f74: 4b8f ldr r3, [pc, #572] ; (80191b4 ) - 8018f76: 681a ldr r2, [r3, #0] - 8018f78: 6afb ldr r3, [r7, #44] ; 0x2c - 8018f7a: 6a1b ldr r3, [r3, #32] - 8018f7c: 1ad2 subs r2, r2, r3 - (pcb->keep_idle + TCP_KEEP_DUR(pcb)) / TCP_SLOW_INTERVAL) { - 8018f7e: 6afb ldr r3, [r7, #44] ; 0x2c - 8018f80: f8d3 1094 ldr.w r1, [r3, #148] ; 0x94 - 8018f84: 4b8c ldr r3, [pc, #560] ; (80191b8 ) - 8018f86: 440b add r3, r1 - 8018f88: 498c ldr r1, [pc, #560] ; (80191bc ) - 8018f8a: fba1 1303 umull r1, r3, r1, r3 - 8018f8e: 095b lsrs r3, r3, #5 - if ((u32_t)(tcp_ticks - pcb->tmr) > - 8018f90: 429a cmp r2, r3 - 8018f92: d90a bls.n 8018faa - 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; - 8018f94: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8018f98: 3301 adds r3, #1 - 8018f9a: f887 3027 strb.w r3, [r7, #39] ; 0x27 - ++pcb_reset; - 8018f9e: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 8018fa2: 3301 adds r3, #1 - 8018fa4: f887 3026 strb.w r3, [r7, #38] ; 0x26 - 8018fa8: e027 b.n 8018ffa - } else if ((u32_t)(tcp_ticks - pcb->tmr) > - 8018faa: 4b82 ldr r3, [pc, #520] ; (80191b4 ) - 8018fac: 681a ldr r2, [r3, #0] - 8018fae: 6afb ldr r3, [r7, #44] ; 0x2c - 8018fb0: 6a1b ldr r3, [r3, #32] - 8018fb2: 1ad2 subs r2, r2, r3 - (pcb->keep_idle + pcb->keep_cnt_sent * TCP_KEEP_INTVL(pcb)) - 8018fb4: 6afb ldr r3, [r7, #44] ; 0x2c - 8018fb6: f8d3 1094 ldr.w r1, [r3, #148] ; 0x94 - 8018fba: 6afb ldr r3, [r7, #44] ; 0x2c - 8018fbc: f893 309b ldrb.w r3, [r3, #155] ; 0x9b - 8018fc0: 4618 mov r0, r3 - 8018fc2: 4b7f ldr r3, [pc, #508] ; (80191c0 ) - 8018fc4: fb00 f303 mul.w r3, r0, r3 - 8018fc8: 440b add r3, r1 - / TCP_SLOW_INTERVAL) { - 8018fca: 497c ldr r1, [pc, #496] ; (80191bc ) - 8018fcc: fba1 1303 umull r1, r3, r1, r3 - 8018fd0: 095b lsrs r3, r3, #5 - } else if ((u32_t)(tcp_ticks - pcb->tmr) > - 8018fd2: 429a cmp r2, r3 - 8018fd4: d911 bls.n 8018ffa - err = tcp_keepalive(pcb); - 8018fd6: 6af8 ldr r0, [r7, #44] ; 0x2c - 8018fd8: f005 f864 bl 801e0a4 - 8018fdc: 4603 mov r3, r0 - 8018fde: f887 3025 strb.w r3, [r7, #37] ; 0x25 - if (err == ERR_OK) { - 8018fe2: f997 3025 ldrsb.w r3, [r7, #37] ; 0x25 - 8018fe6: 2b00 cmp r3, #0 - 8018fe8: d107 bne.n 8018ffa - pcb->keep_cnt_sent++; - 8018fea: 6afb ldr r3, [r7, #44] ; 0x2c - 8018fec: f893 309b ldrb.w r3, [r3, #155] ; 0x9b - 8018ff0: 3301 adds r3, #1 - 8018ff2: b2da uxtb r2, r3 - 8018ff4: 6afb ldr r3, [r7, #44] ; 0x2c - 8018ff6: 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 && - 8018ffa: 6afb ldr r3, [r7, #44] ; 0x2c - 8018ffc: 6f5b ldr r3, [r3, #116] ; 0x74 - 8018ffe: 2b00 cmp r3, #0 - 8019000: d011 beq.n 8019026 - (tcp_ticks - pcb->tmr >= (u32_t)pcb->rto * TCP_OOSEQ_TIMEOUT)) { - 8019002: 4b6c ldr r3, [pc, #432] ; (80191b4 ) - 8019004: 681a ldr r2, [r3, #0] - 8019006: 6afb ldr r3, [r7, #44] ; 0x2c - 8019008: 6a1b ldr r3, [r3, #32] - 801900a: 1ad2 subs r2, r2, r3 - 801900c: 6afb ldr r3, [r7, #44] ; 0x2c - 801900e: f9b3 3040 ldrsh.w r3, [r3, #64] ; 0x40 - 8019012: 4619 mov r1, r3 - 8019014: 460b mov r3, r1 - 8019016: 005b lsls r3, r3, #1 - 8019018: 440b add r3, r1 - 801901a: 005b lsls r3, r3, #1 - if (pcb->ooseq != NULL && - 801901c: 429a cmp r2, r3 - 801901e: d302 bcc.n 8019026 - LWIP_DEBUGF(TCP_CWND_DEBUG, ("tcp_slowtmr: dropping OOSEQ queued data\n")); - tcp_free_ooseq(pcb); - 8019020: 6af8 ldr r0, [r7, #44] ; 0x2c - 8019022: f000 feb3 bl 8019d8c - } -#endif /* TCP_QUEUE_OOSEQ */ - - /* Check if this PCB has stayed too long in SYN-RCVD */ - if (pcb->state == SYN_RCVD) { - 8019026: 6afb ldr r3, [r7, #44] ; 0x2c - 8019028: 7d1b ldrb r3, [r3, #20] - 801902a: 2b03 cmp r3, #3 - 801902c: d10b bne.n 8019046 - if ((u32_t)(tcp_ticks - pcb->tmr) > - 801902e: 4b61 ldr r3, [pc, #388] ; (80191b4 ) - 8019030: 681a ldr r2, [r3, #0] - 8019032: 6afb ldr r3, [r7, #44] ; 0x2c - 8019034: 6a1b ldr r3, [r3, #32] - 8019036: 1ad3 subs r3, r2, r3 - 8019038: 2b28 cmp r3, #40 ; 0x28 - 801903a: d904 bls.n 8019046 - TCP_SYN_RCVD_TIMEOUT / TCP_SLOW_INTERVAL) { - ++pcb_remove; - 801903c: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8019040: 3301 adds r3, #1 - 8019042: 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) { - 8019046: 6afb ldr r3, [r7, #44] ; 0x2c - 8019048: 7d1b ldrb r3, [r3, #20] - 801904a: 2b09 cmp r3, #9 - 801904c: d10b bne.n 8019066 - if ((u32_t)(tcp_ticks - pcb->tmr) > 2 * TCP_MSL / TCP_SLOW_INTERVAL) { - 801904e: 4b59 ldr r3, [pc, #356] ; (80191b4 ) - 8019050: 681a ldr r2, [r3, #0] - 8019052: 6afb ldr r3, [r7, #44] ; 0x2c - 8019054: 6a1b ldr r3, [r3, #32] - 8019056: 1ad3 subs r3, r2, r3 - 8019058: 2bf0 cmp r3, #240 ; 0xf0 - 801905a: d904 bls.n 8019066 - ++pcb_remove; - 801905c: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8019060: 3301 adds r3, #1 - 8019062: 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) { - 8019066: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 801906a: 2b00 cmp r3, #0 - 801906c: d060 beq.n 8019130 - struct tcp_pcb *pcb2; -#if LWIP_CALLBACK_API - tcp_err_fn err_fn = pcb->errf; - 801906e: 6afb ldr r3, [r7, #44] ; 0x2c - 8019070: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8019074: 60fb str r3, [r7, #12] -#endif /* LWIP_CALLBACK_API */ - void *err_arg; - enum tcp_state last_state; - tcp_pcb_purge(pcb); - 8019076: 6af8 ldr r0, [r7, #44] ; 0x2c - 8019078: f000 fcce bl 8019a18 - /* Remove PCB from tcp_active_pcbs list. */ - if (prev != NULL) { - 801907c: 6abb ldr r3, [r7, #40] ; 0x28 - 801907e: 2b00 cmp r3, #0 - 8019080: d010 beq.n 80190a4 - LWIP_ASSERT("tcp_slowtmr: middle tcp != tcp_active_pcbs", pcb != tcp_active_pcbs); - 8019082: 4b50 ldr r3, [pc, #320] ; (80191c4 ) - 8019084: 681b ldr r3, [r3, #0] - 8019086: 6afa ldr r2, [r7, #44] ; 0x2c - 8019088: 429a cmp r2, r3 - 801908a: d106 bne.n 801909a - 801908c: 4b4e ldr r3, [pc, #312] ; (80191c8 ) - 801908e: f240 526d movw r2, #1389 ; 0x56d - 8019092: 494e ldr r1, [pc, #312] ; (80191cc ) - 8019094: 484e ldr r0, [pc, #312] ; (80191d0 ) - 8019096: f008 fc77 bl 8021988 - prev->next = pcb->next; - 801909a: 6afb ldr r3, [r7, #44] ; 0x2c - 801909c: 68da ldr r2, [r3, #12] - 801909e: 6abb ldr r3, [r7, #40] ; 0x28 - 80190a0: 60da str r2, [r3, #12] - 80190a2: e00f b.n 80190c4 - } else { - /* This PCB was the first. */ - LWIP_ASSERT("tcp_slowtmr: first pcb == tcp_active_pcbs", tcp_active_pcbs == pcb); - 80190a4: 4b47 ldr r3, [pc, #284] ; (80191c4 ) - 80190a6: 681b ldr r3, [r3, #0] - 80190a8: 6afa ldr r2, [r7, #44] ; 0x2c - 80190aa: 429a cmp r2, r3 - 80190ac: d006 beq.n 80190bc - 80190ae: 4b46 ldr r3, [pc, #280] ; (80191c8 ) - 80190b0: f240 5271 movw r2, #1393 ; 0x571 - 80190b4: 4947 ldr r1, [pc, #284] ; (80191d4 ) - 80190b6: 4846 ldr r0, [pc, #280] ; (80191d0 ) - 80190b8: f008 fc66 bl 8021988 - tcp_active_pcbs = pcb->next; - 80190bc: 6afb ldr r3, [r7, #44] ; 0x2c - 80190be: 68db ldr r3, [r3, #12] - 80190c0: 4a40 ldr r2, [pc, #256] ; (80191c4 ) - 80190c2: 6013 str r3, [r2, #0] - } - - if (pcb_reset) { - 80190c4: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 80190c8: 2b00 cmp r3, #0 - 80190ca: d013 beq.n 80190f4 - tcp_rst(pcb, pcb->snd_nxt, pcb->rcv_nxt, &pcb->local_ip, &pcb->remote_ip, - 80190cc: 6afb ldr r3, [r7, #44] ; 0x2c - 80190ce: 6d18 ldr r0, [r3, #80] ; 0x50 - 80190d0: 6afb ldr r3, [r7, #44] ; 0x2c - 80190d2: 6a5c ldr r4, [r3, #36] ; 0x24 - 80190d4: 6afd ldr r5, [r7, #44] ; 0x2c - 80190d6: 6afb ldr r3, [r7, #44] ; 0x2c - 80190d8: 3304 adds r3, #4 - 80190da: 6afa ldr r2, [r7, #44] ; 0x2c - 80190dc: 8ad2 ldrh r2, [r2, #22] - 80190de: 6af9 ldr r1, [r7, #44] ; 0x2c - 80190e0: 8b09 ldrh r1, [r1, #24] - 80190e2: 9102 str r1, [sp, #8] - 80190e4: 9201 str r2, [sp, #4] - 80190e6: 9300 str r3, [sp, #0] - 80190e8: 462b mov r3, r5 - 80190ea: 4622 mov r2, r4 - 80190ec: 4601 mov r1, r0 - 80190ee: 6af8 ldr r0, [r7, #44] ; 0x2c - 80190f0: f004 ff24 bl 801df3c - pcb->local_port, pcb->remote_port); - } - - err_arg = pcb->callback_arg; - 80190f4: 6afb ldr r3, [r7, #44] ; 0x2c - 80190f6: 691b ldr r3, [r3, #16] - 80190f8: 60bb str r3, [r7, #8] - last_state = pcb->state; - 80190fa: 6afb ldr r3, [r7, #44] ; 0x2c - 80190fc: 7d1b ldrb r3, [r3, #20] - 80190fe: 71fb strb r3, [r7, #7] - pcb2 = pcb; - 8019100: 6afb ldr r3, [r7, #44] ; 0x2c - 8019102: 603b str r3, [r7, #0] - pcb = pcb->next; - 8019104: 6afb ldr r3, [r7, #44] ; 0x2c - 8019106: 68db ldr r3, [r3, #12] - 8019108: 62fb str r3, [r7, #44] ; 0x2c - tcp_free(pcb2); - 801910a: 6838 ldr r0, [r7, #0] - 801910c: f7fe ffa0 bl 8018050 - - tcp_active_pcbs_changed = 0; - 8019110: 4b31 ldr r3, [pc, #196] ; (80191d8 ) - 8019112: 2200 movs r2, #0 - 8019114: 701a strb r2, [r3, #0] - TCP_EVENT_ERR(last_state, err_fn, err_arg, ERR_ABRT); - 8019116: 68fb ldr r3, [r7, #12] - 8019118: 2b00 cmp r3, #0 - 801911a: d004 beq.n 8019126 - 801911c: 68fb ldr r3, [r7, #12] - 801911e: f06f 010c mvn.w r1, #12 - 8019122: 68b8 ldr r0, [r7, #8] - 8019124: 4798 blx r3 - if (tcp_active_pcbs_changed) { - 8019126: 4b2c ldr r3, [pc, #176] ; (80191d8 ) - 8019128: 781b ldrb r3, [r3, #0] - 801912a: 2b00 cmp r3, #0 - 801912c: d037 beq.n 801919e - goto tcp_slowtmr_start; - 801912e: e592 b.n 8018c56 - } - } else { - /* get the 'next' element now and work with 'prev' below (in case of abort) */ - prev = pcb; - 8019130: 6afb ldr r3, [r7, #44] ; 0x2c - 8019132: 62bb str r3, [r7, #40] ; 0x28 - pcb = pcb->next; - 8019134: 6afb ldr r3, [r7, #44] ; 0x2c - 8019136: 68db ldr r3, [r3, #12] - 8019138: 62fb str r3, [r7, #44] ; 0x2c - - /* We check if we should poll the connection. */ - ++prev->polltmr; - 801913a: 6abb ldr r3, [r7, #40] ; 0x28 - 801913c: 7f1b ldrb r3, [r3, #28] - 801913e: 3301 adds r3, #1 - 8019140: b2da uxtb r2, r3 - 8019142: 6abb ldr r3, [r7, #40] ; 0x28 - 8019144: 771a strb r2, [r3, #28] - if (prev->polltmr >= prev->pollinterval) { - 8019146: 6abb ldr r3, [r7, #40] ; 0x28 - 8019148: 7f1a ldrb r2, [r3, #28] - 801914a: 6abb ldr r3, [r7, #40] ; 0x28 - 801914c: 7f5b ldrb r3, [r3, #29] - 801914e: 429a cmp r2, r3 - 8019150: d325 bcc.n 801919e - prev->polltmr = 0; - 8019152: 6abb ldr r3, [r7, #40] ; 0x28 - 8019154: 2200 movs r2, #0 - 8019156: 771a strb r2, [r3, #28] - LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: polling application\n")); - tcp_active_pcbs_changed = 0; - 8019158: 4b1f ldr r3, [pc, #124] ; (80191d8 ) - 801915a: 2200 movs r2, #0 - 801915c: 701a strb r2, [r3, #0] - TCP_EVENT_POLL(prev, err); - 801915e: 6abb ldr r3, [r7, #40] ; 0x28 - 8019160: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c - 8019164: 2b00 cmp r3, #0 - 8019166: d00b beq.n 8019180 - 8019168: 6abb ldr r3, [r7, #40] ; 0x28 - 801916a: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c - 801916e: 6aba ldr r2, [r7, #40] ; 0x28 - 8019170: 6912 ldr r2, [r2, #16] - 8019172: 6ab9 ldr r1, [r7, #40] ; 0x28 - 8019174: 4610 mov r0, r2 - 8019176: 4798 blx r3 - 8019178: 4603 mov r3, r0 - 801917a: f887 3025 strb.w r3, [r7, #37] ; 0x25 - 801917e: e002 b.n 8019186 - 8019180: 2300 movs r3, #0 - 8019182: f887 3025 strb.w r3, [r7, #37] ; 0x25 - if (tcp_active_pcbs_changed) { - 8019186: 4b14 ldr r3, [pc, #80] ; (80191d8 ) - 8019188: 781b ldrb r3, [r3, #0] - 801918a: 2b00 cmp r3, #0 - 801918c: d000 beq.n 8019190 - goto tcp_slowtmr_start; - 801918e: e562 b.n 8018c56 - } - /* if err == ERR_ABRT, 'prev' is already deallocated */ - if (err == ERR_OK) { - 8019190: f997 3025 ldrsb.w r3, [r7, #37] ; 0x25 - 8019194: 2b00 cmp r3, #0 - 8019196: d102 bne.n 801919e - tcp_output(prev); - 8019198: 6ab8 ldr r0, [r7, #40] ; 0x28 - 801919a: f004 f90f bl 801d3bc - while (pcb != NULL) { - 801919e: 6afb ldr r3, [r7, #44] ; 0x2c - 80191a0: 2b00 cmp r3, #0 - 80191a2: f47f ad5e bne.w 8018c62 - } - } - - - /* Steps through all of the TIME-WAIT PCBs. */ - prev = NULL; - 80191a6: 2300 movs r3, #0 - 80191a8: 62bb str r3, [r7, #40] ; 0x28 - pcb = tcp_tw_pcbs; - 80191aa: 4b0c ldr r3, [pc, #48] ; (80191dc ) - 80191ac: 681b ldr r3, [r3, #0] - 80191ae: 62fb str r3, [r7, #44] ; 0x2c - while (pcb != NULL) { - 80191b0: e069 b.n 8019286 - 80191b2: bf00 nop - 80191b4: 2401a480 .word 0x2401a480 - 80191b8: 000a4cb8 .word 0x000a4cb8 - 80191bc: 10624dd3 .word 0x10624dd3 - 80191c0: 000124f8 .word 0x000124f8 - 80191c4: 2401a48c .word 0x2401a48c - 80191c8: 08024ba8 .word 0x08024ba8 - 80191cc: 08024fe0 .word 0x08024fe0 - 80191d0: 08024bec .word 0x08024bec - 80191d4: 0802500c .word 0x0802500c - 80191d8: 2401a494 .word 0x2401a494 - 80191dc: 2401a490 .word 0x2401a490 - LWIP_ASSERT("tcp_slowtmr: TIME-WAIT pcb->state == TIME-WAIT", pcb->state == TIME_WAIT); - 80191e0: 6afb ldr r3, [r7, #44] ; 0x2c - 80191e2: 7d1b ldrb r3, [r3, #20] - 80191e4: 2b0a cmp r3, #10 - 80191e6: d006 beq.n 80191f6 - 80191e8: 4b2b ldr r3, [pc, #172] ; (8019298 ) - 80191ea: f240 52a1 movw r2, #1441 ; 0x5a1 - 80191ee: 492b ldr r1, [pc, #172] ; (801929c ) - 80191f0: 482b ldr r0, [pc, #172] ; (80192a0 ) - 80191f2: f008 fbc9 bl 8021988 - pcb_remove = 0; - 80191f6: 2300 movs r3, #0 - 80191f8: 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) { - 80191fc: 4b29 ldr r3, [pc, #164] ; (80192a4 ) - 80191fe: 681a ldr r2, [r3, #0] - 8019200: 6afb ldr r3, [r7, #44] ; 0x2c - 8019202: 6a1b ldr r3, [r3, #32] - 8019204: 1ad3 subs r3, r2, r3 - 8019206: 2bf0 cmp r3, #240 ; 0xf0 - 8019208: d904 bls.n 8019214 - ++pcb_remove; - 801920a: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 801920e: 3301 adds r3, #1 - 8019210: f887 3027 strb.w r3, [r7, #39] ; 0x27 - } - - /* If the PCB should be removed, do it. */ - if (pcb_remove) { - 8019214: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8019218: 2b00 cmp r3, #0 - 801921a: d02f beq.n 801927c - struct tcp_pcb *pcb2; - tcp_pcb_purge(pcb); - 801921c: 6af8 ldr r0, [r7, #44] ; 0x2c - 801921e: f000 fbfb bl 8019a18 - /* Remove PCB from tcp_tw_pcbs list. */ - if (prev != NULL) { - 8019222: 6abb ldr r3, [r7, #40] ; 0x28 - 8019224: 2b00 cmp r3, #0 - 8019226: d010 beq.n 801924a - LWIP_ASSERT("tcp_slowtmr: middle tcp != tcp_tw_pcbs", pcb != tcp_tw_pcbs); - 8019228: 4b1f ldr r3, [pc, #124] ; (80192a8 ) - 801922a: 681b ldr r3, [r3, #0] - 801922c: 6afa ldr r2, [r7, #44] ; 0x2c - 801922e: 429a cmp r2, r3 - 8019230: d106 bne.n 8019240 - 8019232: 4b19 ldr r3, [pc, #100] ; (8019298 ) - 8019234: f240 52af movw r2, #1455 ; 0x5af - 8019238: 491c ldr r1, [pc, #112] ; (80192ac ) - 801923a: 4819 ldr r0, [pc, #100] ; (80192a0 ) - 801923c: f008 fba4 bl 8021988 - prev->next = pcb->next; - 8019240: 6afb ldr r3, [r7, #44] ; 0x2c - 8019242: 68da ldr r2, [r3, #12] - 8019244: 6abb ldr r3, [r7, #40] ; 0x28 - 8019246: 60da str r2, [r3, #12] - 8019248: e00f b.n 801926a - } else { - /* This PCB was the first. */ - LWIP_ASSERT("tcp_slowtmr: first pcb == tcp_tw_pcbs", tcp_tw_pcbs == pcb); - 801924a: 4b17 ldr r3, [pc, #92] ; (80192a8 ) - 801924c: 681b ldr r3, [r3, #0] - 801924e: 6afa ldr r2, [r7, #44] ; 0x2c - 8019250: 429a cmp r2, r3 - 8019252: d006 beq.n 8019262 - 8019254: 4b10 ldr r3, [pc, #64] ; (8019298 ) - 8019256: f240 52b3 movw r2, #1459 ; 0x5b3 - 801925a: 4915 ldr r1, [pc, #84] ; (80192b0 ) - 801925c: 4810 ldr r0, [pc, #64] ; (80192a0 ) - 801925e: f008 fb93 bl 8021988 - tcp_tw_pcbs = pcb->next; - 8019262: 6afb ldr r3, [r7, #44] ; 0x2c - 8019264: 68db ldr r3, [r3, #12] - 8019266: 4a10 ldr r2, [pc, #64] ; (80192a8 ) - 8019268: 6013 str r3, [r2, #0] - } - pcb2 = pcb; - 801926a: 6afb ldr r3, [r7, #44] ; 0x2c - 801926c: 61fb str r3, [r7, #28] - pcb = pcb->next; - 801926e: 6afb ldr r3, [r7, #44] ; 0x2c - 8019270: 68db ldr r3, [r3, #12] - 8019272: 62fb str r3, [r7, #44] ; 0x2c - tcp_free(pcb2); - 8019274: 69f8 ldr r0, [r7, #28] - 8019276: f7fe feeb bl 8018050 - 801927a: e004 b.n 8019286 - } else { - prev = pcb; - 801927c: 6afb ldr r3, [r7, #44] ; 0x2c - 801927e: 62bb str r3, [r7, #40] ; 0x28 - pcb = pcb->next; - 8019280: 6afb ldr r3, [r7, #44] ; 0x2c - 8019282: 68db ldr r3, [r3, #12] - 8019284: 62fb str r3, [r7, #44] ; 0x2c - while (pcb != NULL) { - 8019286: 6afb ldr r3, [r7, #44] ; 0x2c - 8019288: 2b00 cmp r3, #0 - 801928a: d1a9 bne.n 80191e0 - } - } -} - 801928c: bf00 nop - 801928e: bf00 nop - 8019290: 3730 adds r7, #48 ; 0x30 - 8019292: 46bd mov sp, r7 - 8019294: bdb0 pop {r4, r5, r7, pc} - 8019296: bf00 nop - 8019298: 08024ba8 .word 0x08024ba8 - 801929c: 08025038 .word 0x08025038 - 80192a0: 08024bec .word 0x08024bec - 80192a4: 2401a480 .word 0x2401a480 - 80192a8: 2401a490 .word 0x2401a490 - 80192ac: 08025068 .word 0x08025068 - 80192b0: 08025090 .word 0x08025090 - -080192b4 : - * - * Automatically called from tcp_tmr(). - */ -void -tcp_fasttmr(void) -{ - 80192b4: b580 push {r7, lr} - 80192b6: b082 sub sp, #8 - 80192b8: af00 add r7, sp, #0 - struct tcp_pcb *pcb; - - ++tcp_timer_ctr; - 80192ba: 4b2d ldr r3, [pc, #180] ; (8019370 ) - 80192bc: 781b ldrb r3, [r3, #0] - 80192be: 3301 adds r3, #1 - 80192c0: b2da uxtb r2, r3 - 80192c2: 4b2b ldr r3, [pc, #172] ; (8019370 ) - 80192c4: 701a strb r2, [r3, #0] - -tcp_fasttmr_start: - pcb = tcp_active_pcbs; - 80192c6: 4b2b ldr r3, [pc, #172] ; (8019374 ) - 80192c8: 681b ldr r3, [r3, #0] - 80192ca: 607b str r3, [r7, #4] - - while (pcb != NULL) { - 80192cc: e048 b.n 8019360 - if (pcb->last_timer != tcp_timer_ctr) { - 80192ce: 687b ldr r3, [r7, #4] - 80192d0: 7f9a ldrb r2, [r3, #30] - 80192d2: 4b27 ldr r3, [pc, #156] ; (8019370 ) - 80192d4: 781b ldrb r3, [r3, #0] - 80192d6: 429a cmp r2, r3 - 80192d8: d03f beq.n 801935a - struct tcp_pcb *next; - pcb->last_timer = tcp_timer_ctr; - 80192da: 4b25 ldr r3, [pc, #148] ; (8019370 ) - 80192dc: 781a ldrb r2, [r3, #0] - 80192de: 687b ldr r3, [r7, #4] - 80192e0: 779a strb r2, [r3, #30] - /* send delayed ACKs */ - if (pcb->flags & TF_ACK_DELAY) { - 80192e2: 687b ldr r3, [r7, #4] - 80192e4: 8b5b ldrh r3, [r3, #26] - 80192e6: f003 0301 and.w r3, r3, #1 - 80192ea: 2b00 cmp r3, #0 - 80192ec: d010 beq.n 8019310 - LWIP_DEBUGF(TCP_DEBUG, ("tcp_fasttmr: delayed ACK\n")); - tcp_ack_now(pcb); - 80192ee: 687b ldr r3, [r7, #4] - 80192f0: 8b5b ldrh r3, [r3, #26] - 80192f2: f043 0302 orr.w r3, r3, #2 - 80192f6: b29a uxth r2, r3 - 80192f8: 687b ldr r3, [r7, #4] - 80192fa: 835a strh r2, [r3, #26] - tcp_output(pcb); - 80192fc: 6878 ldr r0, [r7, #4] - 80192fe: f004 f85d bl 801d3bc - tcp_clear_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW); - 8019302: 687b ldr r3, [r7, #4] - 8019304: 8b5b ldrh r3, [r3, #26] - 8019306: f023 0303 bic.w r3, r3, #3 - 801930a: b29a uxth r2, r3 - 801930c: 687b ldr r3, [r7, #4] - 801930e: 835a strh r2, [r3, #26] - } - /* send pending FIN */ - if (pcb->flags & TF_CLOSEPEND) { - 8019310: 687b ldr r3, [r7, #4] - 8019312: 8b5b ldrh r3, [r3, #26] - 8019314: f003 0308 and.w r3, r3, #8 - 8019318: 2b00 cmp r3, #0 - 801931a: d009 beq.n 8019330 - LWIP_DEBUGF(TCP_DEBUG, ("tcp_fasttmr: pending FIN\n")); - tcp_clear_flags(pcb, TF_CLOSEPEND); - 801931c: 687b ldr r3, [r7, #4] - 801931e: 8b5b ldrh r3, [r3, #26] - 8019320: f023 0308 bic.w r3, r3, #8 - 8019324: b29a uxth r2, r3 - 8019326: 687b ldr r3, [r7, #4] - 8019328: 835a strh r2, [r3, #26] - tcp_close_shutdown_fin(pcb); - 801932a: 6878 ldr r0, [r7, #4] - 801932c: f7ff f824 bl 8018378 - } - - next = pcb->next; - 8019330: 687b ldr r3, [r7, #4] - 8019332: 68db ldr r3, [r3, #12] - 8019334: 603b str r3, [r7, #0] - - /* If there is data which was previously "refused" by upper layer */ - if (pcb->refused_data != NULL) { - 8019336: 687b ldr r3, [r7, #4] - 8019338: 6f9b ldr r3, [r3, #120] ; 0x78 - 801933a: 2b00 cmp r3, #0 - 801933c: d00a beq.n 8019354 - tcp_active_pcbs_changed = 0; - 801933e: 4b0e ldr r3, [pc, #56] ; (8019378 ) - 8019340: 2200 movs r2, #0 - 8019342: 701a strb r2, [r3, #0] - tcp_process_refused_data(pcb); - 8019344: 6878 ldr r0, [r7, #4] - 8019346: f000 f819 bl 801937c - if (tcp_active_pcbs_changed) { - 801934a: 4b0b ldr r3, [pc, #44] ; (8019378 ) - 801934c: 781b ldrb r3, [r3, #0] - 801934e: 2b00 cmp r3, #0 - 8019350: d000 beq.n 8019354 - /* application callback has changed the pcb list: restart the loop */ - goto tcp_fasttmr_start; - 8019352: e7b8 b.n 80192c6 - } - } - pcb = next; - 8019354: 683b ldr r3, [r7, #0] - 8019356: 607b str r3, [r7, #4] - 8019358: e002 b.n 8019360 - } else { - pcb = pcb->next; - 801935a: 687b ldr r3, [r7, #4] - 801935c: 68db ldr r3, [r3, #12] - 801935e: 607b str r3, [r7, #4] - while (pcb != NULL) { - 8019360: 687b ldr r3, [r7, #4] - 8019362: 2b00 cmp r3, #0 - 8019364: d1b3 bne.n 80192ce - } - } -} - 8019366: bf00 nop - 8019368: bf00 nop - 801936a: 3708 adds r7, #8 - 801936c: 46bd mov sp, r7 - 801936e: bd80 pop {r7, pc} - 8019370: 2401a496 .word 0x2401a496 - 8019374: 2401a48c .word 0x2401a48c - 8019378: 2401a494 .word 0x2401a494 - -0801937c : -} - -/** Pass pcb->refused_data to the recv callback */ -err_t -tcp_process_refused_data(struct tcp_pcb *pcb) -{ - 801937c: b590 push {r4, r7, lr} - 801937e: b085 sub sp, #20 - 8019380: af00 add r7, sp, #0 - 8019382: 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); - 8019384: 687b ldr r3, [r7, #4] - 8019386: 2b00 cmp r3, #0 - 8019388: d109 bne.n 801939e - 801938a: 4b38 ldr r3, [pc, #224] ; (801946c ) - 801938c: f240 6209 movw r2, #1545 ; 0x609 - 8019390: 4937 ldr r1, [pc, #220] ; (8019470 ) - 8019392: 4838 ldr r0, [pc, #224] ; (8019474 ) - 8019394: f008 faf8 bl 8021988 - 8019398: f06f 030f mvn.w r3, #15 - 801939c: e061 b.n 8019462 -#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; - 801939e: 687b ldr r3, [r7, #4] - 80193a0: 6f9b ldr r3, [r3, #120] ; 0x78 - 80193a2: 7b5b ldrb r3, [r3, #13] - 80193a4: 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; - 80193a6: 687b ldr r3, [r7, #4] - 80193a8: 6f9b ldr r3, [r3, #120] ; 0x78 - 80193aa: 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; - 80193ac: 687b ldr r3, [r7, #4] - 80193ae: 2200 movs r2, #0 - 80193b0: 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); - 80193b2: 687b ldr r3, [r7, #4] - 80193b4: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 80193b8: 2b00 cmp r3, #0 - 80193ba: d00b beq.n 80193d4 - 80193bc: 687b ldr r3, [r7, #4] - 80193be: f8d3 4084 ldr.w r4, [r3, #132] ; 0x84 - 80193c2: 687b ldr r3, [r7, #4] - 80193c4: 6918 ldr r0, [r3, #16] - 80193c6: 2300 movs r3, #0 - 80193c8: 68ba ldr r2, [r7, #8] - 80193ca: 6879 ldr r1, [r7, #4] - 80193cc: 47a0 blx r4 - 80193ce: 4603 mov r3, r0 - 80193d0: 73fb strb r3, [r7, #15] - 80193d2: e007 b.n 80193e4 - 80193d4: 2300 movs r3, #0 - 80193d6: 68ba ldr r2, [r7, #8] - 80193d8: 6879 ldr r1, [r7, #4] - 80193da: 2000 movs r0, #0 - 80193dc: f000 f8a6 bl 801952c - 80193e0: 4603 mov r3, r0 - 80193e2: 73fb strb r3, [r7, #15] - if (err == ERR_OK) { - 80193e4: f997 300f ldrsb.w r3, [r7, #15] - 80193e8: 2b00 cmp r3, #0 - 80193ea: d12b bne.n 8019444 - /* did refused_data include a FIN? */ - if ((refused_flags & PBUF_FLAG_TCP_FIN) - 80193ec: 7bbb ldrb r3, [r7, #14] - 80193ee: f003 0320 and.w r3, r3, #32 - 80193f2: 2b00 cmp r3, #0 - 80193f4: d034 beq.n 8019460 - && (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)) { - 80193f6: 687b ldr r3, [r7, #4] - 80193f8: 8d1b ldrh r3, [r3, #40] ; 0x28 - 80193fa: f241 62d0 movw r2, #5840 ; 0x16d0 - 80193fe: 4293 cmp r3, r2 - 8019400: d005 beq.n 801940e - pcb->rcv_wnd++; - 8019402: 687b ldr r3, [r7, #4] - 8019404: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8019406: 3301 adds r3, #1 - 8019408: b29a uxth r2, r3 - 801940a: 687b ldr r3, [r7, #4] - 801940c: 851a strh r2, [r3, #40] ; 0x28 - } - TCP_EVENT_CLOSED(pcb, err); - 801940e: 687b ldr r3, [r7, #4] - 8019410: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 8019414: 2b00 cmp r3, #0 - 8019416: d00b beq.n 8019430 - 8019418: 687b ldr r3, [r7, #4] - 801941a: f8d3 4084 ldr.w r4, [r3, #132] ; 0x84 - 801941e: 687b ldr r3, [r7, #4] - 8019420: 6918 ldr r0, [r3, #16] - 8019422: 2300 movs r3, #0 - 8019424: 2200 movs r2, #0 - 8019426: 6879 ldr r1, [r7, #4] - 8019428: 47a0 blx r4 - 801942a: 4603 mov r3, r0 - 801942c: 73fb strb r3, [r7, #15] - 801942e: e001 b.n 8019434 - 8019430: 2300 movs r3, #0 - 8019432: 73fb strb r3, [r7, #15] - if (err == ERR_ABRT) { - 8019434: f997 300f ldrsb.w r3, [r7, #15] - 8019438: f113 0f0d cmn.w r3, #13 - 801943c: d110 bne.n 8019460 - return ERR_ABRT; - 801943e: f06f 030c mvn.w r3, #12 - 8019442: e00e b.n 8019462 - } - } - } else if (err == ERR_ABRT) { - 8019444: f997 300f ldrsb.w r3, [r7, #15] - 8019448: f113 0f0d cmn.w r3, #13 - 801944c: d102 bne.n 8019454 - /* 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; - 801944e: f06f 030c mvn.w r3, #12 - 8019452: e006 b.n 8019462 -#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; - 8019454: 687b ldr r3, [r7, #4] - 8019456: 68ba ldr r2, [r7, #8] - 8019458: 679a str r2, [r3, #120] ; 0x78 - return ERR_INPROGRESS; - 801945a: f06f 0304 mvn.w r3, #4 - 801945e: e000 b.n 8019462 - } - } - return ERR_OK; - 8019460: 2300 movs r3, #0 -} - 8019462: 4618 mov r0, r3 - 8019464: 3714 adds r7, #20 - 8019466: 46bd mov sp, r7 - 8019468: bd90 pop {r4, r7, pc} - 801946a: bf00 nop - 801946c: 08024ba8 .word 0x08024ba8 - 8019470: 080250b8 .word 0x080250b8 - 8019474: 08024bec .word 0x08024bec - -08019478 : - * - * @param seg tcp_seg list of TCP segments to free - */ -void -tcp_segs_free(struct tcp_seg *seg) -{ - 8019478: b580 push {r7, lr} - 801947a: b084 sub sp, #16 - 801947c: af00 add r7, sp, #0 - 801947e: 6078 str r0, [r7, #4] - while (seg != NULL) { - 8019480: e007 b.n 8019492 - struct tcp_seg *next = seg->next; - 8019482: 687b ldr r3, [r7, #4] - 8019484: 681b ldr r3, [r3, #0] - 8019486: 60fb str r3, [r7, #12] - tcp_seg_free(seg); - 8019488: 6878 ldr r0, [r7, #4] - 801948a: f000 f80a bl 80194a2 - seg = next; - 801948e: 68fb ldr r3, [r7, #12] - 8019490: 607b str r3, [r7, #4] - while (seg != NULL) { - 8019492: 687b ldr r3, [r7, #4] - 8019494: 2b00 cmp r3, #0 - 8019496: d1f4 bne.n 8019482 - } -} - 8019498: bf00 nop - 801949a: bf00 nop - 801949c: 3710 adds r7, #16 - 801949e: 46bd mov sp, r7 - 80194a0: bd80 pop {r7, pc} - -080194a2 : - * - * @param seg single tcp_seg to free - */ -void -tcp_seg_free(struct tcp_seg *seg) -{ - 80194a2: b580 push {r7, lr} - 80194a4: b082 sub sp, #8 - 80194a6: af00 add r7, sp, #0 - 80194a8: 6078 str r0, [r7, #4] - if (seg != NULL) { - 80194aa: 687b ldr r3, [r7, #4] - 80194ac: 2b00 cmp r3, #0 - 80194ae: d00c beq.n 80194ca - if (seg->p != NULL) { - 80194b0: 687b ldr r3, [r7, #4] - 80194b2: 685b ldr r3, [r3, #4] - 80194b4: 2b00 cmp r3, #0 - 80194b6: d004 beq.n 80194c2 - pbuf_free(seg->p); - 80194b8: 687b ldr r3, [r7, #4] - 80194ba: 685b ldr r3, [r3, #4] - 80194bc: 4618 mov r0, r3 - 80194be: f7fe fb1b bl 8017af8 -#if TCP_DEBUG - seg->p = NULL; -#endif /* TCP_DEBUG */ - } - memp_free(MEMP_TCP_SEG, seg); - 80194c2: 6879 ldr r1, [r7, #4] - 80194c4: 2003 movs r0, #3 - 80194c6: f7fd fb79 bl 8016bbc - } -} - 80194ca: bf00 nop - 80194cc: 3708 adds r7, #8 - 80194ce: 46bd mov sp, r7 - 80194d0: bd80 pop {r7, pc} - ... - -080194d4 : - * @param seg the old tcp_seg - * @return a copy of seg - */ -struct tcp_seg * -tcp_seg_copy(struct tcp_seg *seg) -{ - 80194d4: b580 push {r7, lr} - 80194d6: b084 sub sp, #16 - 80194d8: af00 add r7, sp, #0 - 80194da: 6078 str r0, [r7, #4] - struct tcp_seg *cseg; - - LWIP_ASSERT("tcp_seg_copy: invalid seg", seg != NULL); - 80194dc: 687b ldr r3, [r7, #4] - 80194de: 2b00 cmp r3, #0 - 80194e0: d106 bne.n 80194f0 - 80194e2: 4b0f ldr r3, [pc, #60] ; (8019520 ) - 80194e4: f240 6282 movw r2, #1666 ; 0x682 - 80194e8: 490e ldr r1, [pc, #56] ; (8019524 ) - 80194ea: 480f ldr r0, [pc, #60] ; (8019528 ) - 80194ec: f008 fa4c bl 8021988 - - cseg = (struct tcp_seg *)memp_malloc(MEMP_TCP_SEG); - 80194f0: 2003 movs r0, #3 - 80194f2: f7fd faed bl 8016ad0 - 80194f6: 60f8 str r0, [r7, #12] - if (cseg == NULL) { - 80194f8: 68fb ldr r3, [r7, #12] - 80194fa: 2b00 cmp r3, #0 - 80194fc: d101 bne.n 8019502 - return NULL; - 80194fe: 2300 movs r3, #0 - 8019500: e00a b.n 8019518 - } - SMEMCPY((u8_t *)cseg, (const u8_t *)seg, sizeof(struct tcp_seg)); - 8019502: 2214 movs r2, #20 - 8019504: 6879 ldr r1, [r7, #4] - 8019506: 68f8 ldr r0, [r7, #12] - 8019508: f008 fc6d bl 8021de6 - pbuf_ref(cseg->p); - 801950c: 68fb ldr r3, [r7, #12] - 801950e: 685b ldr r3, [r3, #4] - 8019510: 4618 mov r0, r3 - 8019512: f7fe fb97 bl 8017c44 - return cseg; - 8019516: 68fb ldr r3, [r7, #12] -} - 8019518: 4618 mov r0, r3 - 801951a: 3710 adds r7, #16 - 801951c: 46bd mov sp, r7 - 801951e: bd80 pop {r7, pc} - 8019520: 08024ba8 .word 0x08024ba8 - 8019524: 080250fc .word 0x080250fc - 8019528: 08024bec .word 0x08024bec - -0801952c : - * 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) -{ - 801952c: b580 push {r7, lr} - 801952e: b084 sub sp, #16 - 8019530: af00 add r7, sp, #0 - 8019532: 60f8 str r0, [r7, #12] - 8019534: 60b9 str r1, [r7, #8] - 8019536: 607a str r2, [r7, #4] - 8019538: 70fb strb r3, [r7, #3] - LWIP_UNUSED_ARG(arg); - - LWIP_ERROR("tcp_recv_null: invalid pcb", pcb != NULL, return ERR_ARG); - 801953a: 68bb ldr r3, [r7, #8] - 801953c: 2b00 cmp r3, #0 - 801953e: d109 bne.n 8019554 - 8019540: 4b12 ldr r3, [pc, #72] ; (801958c ) - 8019542: f44f 62d3 mov.w r2, #1688 ; 0x698 - 8019546: 4912 ldr r1, [pc, #72] ; (8019590 ) - 8019548: 4812 ldr r0, [pc, #72] ; (8019594 ) - 801954a: f008 fa1d bl 8021988 - 801954e: f06f 030f mvn.w r3, #15 - 8019552: e016 b.n 8019582 - - if (p != NULL) { - 8019554: 687b ldr r3, [r7, #4] - 8019556: 2b00 cmp r3, #0 - 8019558: d009 beq.n 801956e - tcp_recved(pcb, p->tot_len); - 801955a: 687b ldr r3, [r7, #4] - 801955c: 891b ldrh r3, [r3, #8] - 801955e: 4619 mov r1, r3 - 8019560: 68b8 ldr r0, [r7, #8] - 8019562: f7ff f9b7 bl 80188d4 - pbuf_free(p); - 8019566: 6878 ldr r0, [r7, #4] - 8019568: f7fe fac6 bl 8017af8 - 801956c: e008 b.n 8019580 - } else if (err == ERR_OK) { - 801956e: f997 3003 ldrsb.w r3, [r7, #3] - 8019572: 2b00 cmp r3, #0 - 8019574: d104 bne.n 8019580 - return tcp_close(pcb); - 8019576: 68b8 ldr r0, [r7, #8] - 8019578: f7fe ff68 bl 801844c - 801957c: 4603 mov r3, r0 - 801957e: e000 b.n 8019582 - } - return ERR_OK; - 8019580: 2300 movs r3, #0 -} - 8019582: 4618 mov r0, r3 - 8019584: 3710 adds r7, #16 - 8019586: 46bd mov sp, r7 - 8019588: bd80 pop {r7, pc} - 801958a: bf00 nop - 801958c: 08024ba8 .word 0x08024ba8 - 8019590: 08025118 .word 0x08025118 - 8019594: 08024bec .word 0x08024bec - -08019598 : - * - * @param prio minimum priority - */ -static void -tcp_kill_prio(u8_t prio) -{ - 8019598: b580 push {r7, lr} - 801959a: b086 sub sp, #24 - 801959c: af00 add r7, sp, #0 - 801959e: 4603 mov r3, r0 - 80195a0: 71fb strb r3, [r7, #7] - struct tcp_pcb *pcb, *inactive; - u32_t inactivity; - u8_t mprio; - - mprio = LWIP_MIN(TCP_PRIO_MAX, prio); - 80195a2: f997 3007 ldrsb.w r3, [r7, #7] - 80195a6: 2b00 cmp r3, #0 - 80195a8: db01 blt.n 80195ae - 80195aa: 79fb ldrb r3, [r7, #7] - 80195ac: e000 b.n 80195b0 - 80195ae: 237f movs r3, #127 ; 0x7f - 80195b0: 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) { - 80195b2: 7afb ldrb r3, [r7, #11] - 80195b4: 2b00 cmp r3, #0 - 80195b6: d034 beq.n 8019622 - /* 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--; - 80195b8: 7afb ldrb r3, [r7, #11] - 80195ba: 3b01 subs r3, #1 - 80195bc: 72fb strb r3, [r7, #11] - - inactivity = 0; - 80195be: 2300 movs r3, #0 - 80195c0: 60fb str r3, [r7, #12] - inactive = NULL; - 80195c2: 2300 movs r3, #0 - 80195c4: 613b str r3, [r7, #16] - for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) { - 80195c6: 4b19 ldr r3, [pc, #100] ; (801962c ) - 80195c8: 681b ldr r3, [r3, #0] - 80195ca: 617b str r3, [r7, #20] - 80195cc: e01f b.n 801960e - /* lower prio is always a kill candidate */ - if ((pcb->prio < mprio) || - 80195ce: 697b ldr r3, [r7, #20] - 80195d0: 7d5b ldrb r3, [r3, #21] - 80195d2: 7afa ldrb r2, [r7, #11] - 80195d4: 429a cmp r2, r3 - 80195d6: d80c bhi.n 80195f2 - /* longer inactivity is also a kill candidate */ - ((pcb->prio == mprio) && ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity))) { - 80195d8: 697b ldr r3, [r7, #20] - 80195da: 7d5b ldrb r3, [r3, #21] - if ((pcb->prio < mprio) || - 80195dc: 7afa ldrb r2, [r7, #11] - 80195de: 429a cmp r2, r3 - 80195e0: d112 bne.n 8019608 - ((pcb->prio == mprio) && ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity))) { - 80195e2: 4b13 ldr r3, [pc, #76] ; (8019630 ) - 80195e4: 681a ldr r2, [r3, #0] - 80195e6: 697b ldr r3, [r7, #20] - 80195e8: 6a1b ldr r3, [r3, #32] - 80195ea: 1ad3 subs r3, r2, r3 - 80195ec: 68fa ldr r2, [r7, #12] - 80195ee: 429a cmp r2, r3 - 80195f0: d80a bhi.n 8019608 - inactivity = tcp_ticks - pcb->tmr; - 80195f2: 4b0f ldr r3, [pc, #60] ; (8019630 ) - 80195f4: 681a ldr r2, [r3, #0] - 80195f6: 697b ldr r3, [r7, #20] - 80195f8: 6a1b ldr r3, [r3, #32] - 80195fa: 1ad3 subs r3, r2, r3 - 80195fc: 60fb str r3, [r7, #12] - inactive = pcb; - 80195fe: 697b ldr r3, [r7, #20] - 8019600: 613b str r3, [r7, #16] - mprio = pcb->prio; - 8019602: 697b ldr r3, [r7, #20] - 8019604: 7d5b ldrb r3, [r3, #21] - 8019606: 72fb strb r3, [r7, #11] - for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) { - 8019608: 697b ldr r3, [r7, #20] - 801960a: 68db ldr r3, [r3, #12] - 801960c: 617b str r3, [r7, #20] - 801960e: 697b ldr r3, [r7, #20] - 8019610: 2b00 cmp r3, #0 - 8019612: d1dc bne.n 80195ce - } - } - if (inactive != NULL) { - 8019614: 693b ldr r3, [r7, #16] - 8019616: 2b00 cmp r3, #0 - 8019618: d004 beq.n 8019624 - LWIP_DEBUGF(TCP_DEBUG, ("tcp_kill_prio: killing oldest PCB %p (%"S32_F")\n", - (void *)inactive, inactivity)); - tcp_abort(inactive); - 801961a: 6938 ldr r0, [r7, #16] - 801961c: f7ff f85c bl 80186d8 - 8019620: e000 b.n 8019624 - return; - 8019622: bf00 nop - } -} - 8019624: 3718 adds r7, #24 - 8019626: 46bd mov sp, r7 - 8019628: bd80 pop {r7, pc} - 801962a: bf00 nop - 801962c: 2401a48c .word 0x2401a48c - 8019630: 2401a480 .word 0x2401a480 - -08019634 : - * 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) -{ - 8019634: b580 push {r7, lr} - 8019636: b086 sub sp, #24 - 8019638: af00 add r7, sp, #0 - 801963a: 4603 mov r3, r0 - 801963c: 71fb strb r3, [r7, #7] - struct tcp_pcb *pcb, *inactive; - u32_t inactivity; - - LWIP_ASSERT("invalid state", (state == CLOSING) || (state == LAST_ACK)); - 801963e: 79fb ldrb r3, [r7, #7] - 8019640: 2b08 cmp r3, #8 - 8019642: d009 beq.n 8019658 - 8019644: 79fb ldrb r3, [r7, #7] - 8019646: 2b09 cmp r3, #9 - 8019648: d006 beq.n 8019658 - 801964a: 4b1a ldr r3, [pc, #104] ; (80196b4 ) - 801964c: f240 62dd movw r2, #1757 ; 0x6dd - 8019650: 4919 ldr r1, [pc, #100] ; (80196b8 ) - 8019652: 481a ldr r0, [pc, #104] ; (80196bc ) - 8019654: f008 f998 bl 8021988 - - inactivity = 0; - 8019658: 2300 movs r3, #0 - 801965a: 60fb str r3, [r7, #12] - inactive = NULL; - 801965c: 2300 movs r3, #0 - 801965e: 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) { - 8019660: 4b17 ldr r3, [pc, #92] ; (80196c0 ) - 8019662: 681b ldr r3, [r3, #0] - 8019664: 617b str r3, [r7, #20] - 8019666: e017 b.n 8019698 - if (pcb->state == state) { - 8019668: 697b ldr r3, [r7, #20] - 801966a: 7d1b ldrb r3, [r3, #20] - 801966c: 79fa ldrb r2, [r7, #7] - 801966e: 429a cmp r2, r3 - 8019670: d10f bne.n 8019692 - if ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity) { - 8019672: 4b14 ldr r3, [pc, #80] ; (80196c4 ) - 8019674: 681a ldr r2, [r3, #0] - 8019676: 697b ldr r3, [r7, #20] - 8019678: 6a1b ldr r3, [r3, #32] - 801967a: 1ad3 subs r3, r2, r3 - 801967c: 68fa ldr r2, [r7, #12] - 801967e: 429a cmp r2, r3 - 8019680: d807 bhi.n 8019692 - inactivity = tcp_ticks - pcb->tmr; - 8019682: 4b10 ldr r3, [pc, #64] ; (80196c4 ) - 8019684: 681a ldr r2, [r3, #0] - 8019686: 697b ldr r3, [r7, #20] - 8019688: 6a1b ldr r3, [r3, #32] - 801968a: 1ad3 subs r3, r2, r3 - 801968c: 60fb str r3, [r7, #12] - inactive = pcb; - 801968e: 697b ldr r3, [r7, #20] - 8019690: 613b str r3, [r7, #16] - for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) { - 8019692: 697b ldr r3, [r7, #20] - 8019694: 68db ldr r3, [r3, #12] - 8019696: 617b str r3, [r7, #20] - 8019698: 697b ldr r3, [r7, #20] - 801969a: 2b00 cmp r3, #0 - 801969c: d1e4 bne.n 8019668 - } - } - } - if (inactive != NULL) { - 801969e: 693b ldr r3, [r7, #16] - 80196a0: 2b00 cmp r3, #0 - 80196a2: d003 beq.n 80196ac - 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); - 80196a4: 2100 movs r1, #0 - 80196a6: 6938 ldr r0, [r7, #16] - 80196a8: f7fe ff58 bl 801855c - } -} - 80196ac: bf00 nop - 80196ae: 3718 adds r7, #24 - 80196b0: 46bd mov sp, r7 - 80196b2: bd80 pop {r7, pc} - 80196b4: 08024ba8 .word 0x08024ba8 - 80196b8: 08025134 .word 0x08025134 - 80196bc: 08024bec .word 0x08024bec - 80196c0: 2401a48c .word 0x2401a48c - 80196c4: 2401a480 .word 0x2401a480 - -080196c8 : - * 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) -{ - 80196c8: b580 push {r7, lr} - 80196ca: b084 sub sp, #16 - 80196cc: af00 add r7, sp, #0 - struct tcp_pcb *pcb, *inactive; - u32_t inactivity; - - inactivity = 0; - 80196ce: 2300 movs r3, #0 - 80196d0: 607b str r3, [r7, #4] - inactive = NULL; - 80196d2: 2300 movs r3, #0 - 80196d4: 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) { - 80196d6: 4b12 ldr r3, [pc, #72] ; (8019720 ) - 80196d8: 681b ldr r3, [r3, #0] - 80196da: 60fb str r3, [r7, #12] - 80196dc: e012 b.n 8019704 - if ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity) { - 80196de: 4b11 ldr r3, [pc, #68] ; (8019724 ) - 80196e0: 681a ldr r2, [r3, #0] - 80196e2: 68fb ldr r3, [r7, #12] - 80196e4: 6a1b ldr r3, [r3, #32] - 80196e6: 1ad3 subs r3, r2, r3 - 80196e8: 687a ldr r2, [r7, #4] - 80196ea: 429a cmp r2, r3 - 80196ec: d807 bhi.n 80196fe - inactivity = tcp_ticks - pcb->tmr; - 80196ee: 4b0d ldr r3, [pc, #52] ; (8019724 ) - 80196f0: 681a ldr r2, [r3, #0] - 80196f2: 68fb ldr r3, [r7, #12] - 80196f4: 6a1b ldr r3, [r3, #32] - 80196f6: 1ad3 subs r3, r2, r3 - 80196f8: 607b str r3, [r7, #4] - inactive = pcb; - 80196fa: 68fb ldr r3, [r7, #12] - 80196fc: 60bb str r3, [r7, #8] - for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) { - 80196fe: 68fb ldr r3, [r7, #12] - 8019700: 68db ldr r3, [r3, #12] - 8019702: 60fb str r3, [r7, #12] - 8019704: 68fb ldr r3, [r7, #12] - 8019706: 2b00 cmp r3, #0 - 8019708: d1e9 bne.n 80196de - } - } - if (inactive != NULL) { - 801970a: 68bb ldr r3, [r7, #8] - 801970c: 2b00 cmp r3, #0 - 801970e: d002 beq.n 8019716 - LWIP_DEBUGF(TCP_DEBUG, ("tcp_kill_timewait: killing oldest TIME-WAIT PCB %p (%"S32_F")\n", - (void *)inactive, inactivity)); - tcp_abort(inactive); - 8019710: 68b8 ldr r0, [r7, #8] - 8019712: f7fe ffe1 bl 80186d8 - } -} - 8019716: bf00 nop - 8019718: 3710 adds r7, #16 - 801971a: 46bd mov sp, r7 - 801971c: bd80 pop {r7, pc} - 801971e: bf00 nop - 8019720: 2401a490 .word 0x2401a490 - 8019724: 2401a480 .word 0x2401a480 - -08019728 : - * 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) -{ - 8019728: b580 push {r7, lr} - 801972a: b082 sub sp, #8 - 801972c: af00 add r7, sp, #0 - struct tcp_pcb *pcb = tcp_active_pcbs; - 801972e: 4b10 ldr r3, [pc, #64] ; (8019770 ) - 8019730: 681b ldr r3, [r3, #0] - 8019732: 607b str r3, [r7, #4] - - while (pcb != NULL) { - 8019734: e014 b.n 8019760 - struct tcp_pcb *next = pcb->next; - 8019736: 687b ldr r3, [r7, #4] - 8019738: 68db ldr r3, [r3, #12] - 801973a: 603b str r3, [r7, #0] - /* send pending FIN */ - if (pcb->flags & TF_CLOSEPEND) { - 801973c: 687b ldr r3, [r7, #4] - 801973e: 8b5b ldrh r3, [r3, #26] - 8019740: f003 0308 and.w r3, r3, #8 - 8019744: 2b00 cmp r3, #0 - 8019746: d009 beq.n 801975c - LWIP_DEBUGF(TCP_DEBUG, ("tcp_handle_closepend: pending FIN\n")); - tcp_clear_flags(pcb, TF_CLOSEPEND); - 8019748: 687b ldr r3, [r7, #4] - 801974a: 8b5b ldrh r3, [r3, #26] - 801974c: f023 0308 bic.w r3, r3, #8 - 8019750: b29a uxth r2, r3 - 8019752: 687b ldr r3, [r7, #4] - 8019754: 835a strh r2, [r3, #26] - tcp_close_shutdown_fin(pcb); - 8019756: 6878 ldr r0, [r7, #4] - 8019758: f7fe fe0e bl 8018378 - } - pcb = next; - 801975c: 683b ldr r3, [r7, #0] - 801975e: 607b str r3, [r7, #4] - while (pcb != NULL) { - 8019760: 687b ldr r3, [r7, #4] - 8019762: 2b00 cmp r3, #0 - 8019764: d1e7 bne.n 8019736 - } -} - 8019766: bf00 nop - 8019768: bf00 nop - 801976a: 3708 adds r7, #8 - 801976c: 46bd mov sp, r7 - 801976e: bd80 pop {r7, pc} - 8019770: 2401a48c .word 0x2401a48c - -08019774 : - * @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) -{ - 8019774: b580 push {r7, lr} - 8019776: b084 sub sp, #16 - 8019778: af00 add r7, sp, #0 - 801977a: 4603 mov r3, r0 - 801977c: 71fb strb r3, [r7, #7] - struct tcp_pcb *pcb; - - LWIP_ASSERT_CORE_LOCKED(); - - pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB); - 801977e: 2001 movs r0, #1 - 8019780: f7fd f9a6 bl 8016ad0 - 8019784: 60f8 str r0, [r7, #12] - if (pcb == NULL) { - 8019786: 68fb ldr r3, [r7, #12] - 8019788: 2b00 cmp r3, #0 - 801978a: d126 bne.n 80197da - /* Try to send FIN for all pcbs stuck in TF_CLOSEPEND first */ - tcp_handle_closepend(); - 801978c: f7ff ffcc bl 8019728 - - /* Try killing oldest connection in TIME-WAIT. */ - LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing off oldest TIME-WAIT connection\n")); - tcp_kill_timewait(); - 8019790: f7ff ff9a bl 80196c8 - /* Try to allocate a tcp_pcb again. */ - pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB); - 8019794: 2001 movs r0, #1 - 8019796: f7fd f99b bl 8016ad0 - 801979a: 60f8 str r0, [r7, #12] - if (pcb == NULL) { - 801979c: 68fb ldr r3, [r7, #12] - 801979e: 2b00 cmp r3, #0 - 80197a0: d11b bne.n 80197da - /* 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); - 80197a2: 2009 movs r0, #9 - 80197a4: f7ff ff46 bl 8019634 - /* Try to allocate a tcp_pcb again. */ - pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB); - 80197a8: 2001 movs r0, #1 - 80197aa: f7fd f991 bl 8016ad0 - 80197ae: 60f8 str r0, [r7, #12] - if (pcb == NULL) { - 80197b0: 68fb ldr r3, [r7, #12] - 80197b2: 2b00 cmp r3, #0 - 80197b4: d111 bne.n 80197da - /* Try killing oldest connection in CLOSING. */ - LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing off oldest CLOSING connection\n")); - tcp_kill_state(CLOSING); - 80197b6: 2008 movs r0, #8 - 80197b8: f7ff ff3c bl 8019634 - /* Try to allocate a tcp_pcb again. */ - pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB); - 80197bc: 2001 movs r0, #1 - 80197be: f7fd f987 bl 8016ad0 - 80197c2: 60f8 str r0, [r7, #12] - if (pcb == NULL) { - 80197c4: 68fb ldr r3, [r7, #12] - 80197c6: 2b00 cmp r3, #0 - 80197c8: d107 bne.n 80197da - /* 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); - 80197ca: 79fb ldrb r3, [r7, #7] - 80197cc: 4618 mov r0, r3 - 80197ce: f7ff fee3 bl 8019598 - /* Try to allocate a tcp_pcb again. */ - pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB); - 80197d2: 2001 movs r0, #1 - 80197d4: f7fd f97c bl 8016ad0 - 80197d8: 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) { - 80197da: 68fb ldr r3, [r7, #12] - 80197dc: 2b00 cmp r3, #0 - 80197de: d03f beq.n 8019860 - /* zero out the whole pcb, so there is no need to initialize members to zero */ - memset(pcb, 0, sizeof(struct tcp_pcb)); - 80197e0: 229c movs r2, #156 ; 0x9c - 80197e2: 2100 movs r1, #0 - 80197e4: 68f8 ldr r0, [r7, #12] - 80197e6: f008 fa7b bl 8021ce0 - pcb->prio = prio; - 80197ea: 68fb ldr r3, [r7, #12] - 80197ec: 79fa ldrb r2, [r7, #7] - 80197ee: 755a strb r2, [r3, #21] - pcb->snd_buf = TCP_SND_BUF; - 80197f0: 68fb ldr r3, [r7, #12] - 80197f2: f241 62d0 movw r2, #5840 ; 0x16d0 - 80197f6: 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); - 80197fa: 68fb ldr r3, [r7, #12] - 80197fc: f241 62d0 movw r2, #5840 ; 0x16d0 - 8019800: 855a strh r2, [r3, #42] ; 0x2a - 8019802: 68fb ldr r3, [r7, #12] - 8019804: 8d5a ldrh r2, [r3, #42] ; 0x2a - 8019806: 68fb ldr r3, [r7, #12] - 8019808: 851a strh r2, [r3, #40] ; 0x28 - pcb->ttl = TCP_TTL; - 801980a: 68fb ldr r3, [r7, #12] - 801980c: 22ff movs r2, #255 ; 0xff - 801980e: 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; - 8019810: 68fb ldr r3, [r7, #12] - 8019812: f44f 7206 mov.w r2, #536 ; 0x218 - 8019816: 865a strh r2, [r3, #50] ; 0x32 - pcb->rto = 3000 / TCP_SLOW_INTERVAL; - 8019818: 68fb ldr r3, [r7, #12] - 801981a: 2206 movs r2, #6 - 801981c: f8a3 2040 strh.w r2, [r3, #64] ; 0x40 - pcb->sv = 3000 / TCP_SLOW_INTERVAL; - 8019820: 68fb ldr r3, [r7, #12] - 8019822: 2206 movs r2, #6 - 8019824: 87da strh r2, [r3, #62] ; 0x3e - pcb->rtime = -1; - 8019826: 68fb ldr r3, [r7, #12] - 8019828: f64f 72ff movw r2, #65535 ; 0xffff - 801982c: 861a strh r2, [r3, #48] ; 0x30 - pcb->cwnd = 1; - 801982e: 68fb ldr r3, [r7, #12] - 8019830: 2201 movs r2, #1 - 8019832: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 - pcb->tmr = tcp_ticks; - 8019836: 4b0d ldr r3, [pc, #52] ; (801986c ) - 8019838: 681a ldr r2, [r3, #0] - 801983a: 68fb ldr r3, [r7, #12] - 801983c: 621a str r2, [r3, #32] - pcb->last_timer = tcp_timer_ctr; - 801983e: 4b0c ldr r3, [pc, #48] ; (8019870 ) - 8019840: 781a ldrb r2, [r3, #0] - 8019842: 68fb ldr r3, [r7, #12] - 8019844: 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; - 8019846: 68fb ldr r3, [r7, #12] - 8019848: f241 62d0 movw r2, #5840 ; 0x16d0 - 801984c: f8a3 204a strh.w r2, [r3, #74] ; 0x4a - -#if LWIP_CALLBACK_API - pcb->recv = tcp_recv_null; - 8019850: 68fb ldr r3, [r7, #12] - 8019852: 4a08 ldr r2, [pc, #32] ; (8019874 ) - 8019854: f8c3 2084 str.w r2, [r3, #132] ; 0x84 -#endif /* LWIP_CALLBACK_API */ - - /* Init KEEPALIVE timer */ - pcb->keep_idle = TCP_KEEPIDLE_DEFAULT; - 8019858: 68fb ldr r3, [r7, #12] - 801985a: 4a07 ldr r2, [pc, #28] ; (8019878 ) - 801985c: 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; - 8019860: 68fb ldr r3, [r7, #12] -} - 8019862: 4618 mov r0, r3 - 8019864: 3710 adds r7, #16 - 8019866: 46bd mov sp, r7 - 8019868: bd80 pop {r7, pc} - 801986a: bf00 nop - 801986c: 2401a480 .word 0x2401a480 - 8019870: 2401a496 .word 0x2401a496 - 8019874: 0801952d .word 0x0801952d - 8019878: 006ddd00 .word 0x006ddd00 - -0801987c : - * supply @ref IPADDR_TYPE_ANY as argument and bind to @ref IP_ANY_TYPE. - * @return a new tcp_pcb that initially is in state CLOSED - */ -struct tcp_pcb * -tcp_new_ip_type(u8_t type) -{ - 801987c: b580 push {r7, lr} - 801987e: b084 sub sp, #16 - 8019880: af00 add r7, sp, #0 - 8019882: 4603 mov r3, r0 - 8019884: 71fb strb r3, [r7, #7] - struct tcp_pcb *pcb; - pcb = tcp_alloc(TCP_PRIO_NORMAL); - 8019886: 2040 movs r0, #64 ; 0x40 - 8019888: f7ff ff74 bl 8019774 - 801988c: 60f8 str r0, [r7, #12] - IP_SET_TYPE_VAL(pcb->remote_ip, type); - } -#else - LWIP_UNUSED_ARG(type); -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - return pcb; - 801988e: 68fb ldr r3, [r7, #12] -} - 8019890: 4618 mov r0, r3 - 8019892: 3710 adds r7, #16 - 8019894: 46bd mov sp, r7 - 8019896: bd80 pop {r7, pc} - -08019898 : - * @param pcb tcp_pcb to set the callback argument - * @param arg void pointer argument to pass to callback functions - */ -void -tcp_arg(struct tcp_pcb *pcb, void *arg) -{ - 8019898: b480 push {r7} - 801989a: b083 sub sp, #12 - 801989c: af00 add r7, sp, #0 - 801989e: 6078 str r0, [r7, #4] - 80198a0: 6039 str r1, [r7, #0] - LWIP_ASSERT_CORE_LOCKED(); - /* This function is allowed to be called for both listen pcbs and - connection pcbs. */ - if (pcb != NULL) { - 80198a2: 687b ldr r3, [r7, #4] - 80198a4: 2b00 cmp r3, #0 - 80198a6: d002 beq.n 80198ae - pcb->callback_arg = arg; - 80198a8: 687b ldr r3, [r7, #4] - 80198aa: 683a ldr r2, [r7, #0] - 80198ac: 611a str r2, [r3, #16] - } -} - 80198ae: bf00 nop - 80198b0: 370c adds r7, #12 - 80198b2: 46bd mov sp, r7 - 80198b4: f85d 7b04 ldr.w r7, [sp], #4 - 80198b8: 4770 bx lr - ... - -080198bc : - * @param pcb tcp_pcb to set the recv callback - * @param recv callback function to call for this pcb when data is received - */ -void -tcp_recv(struct tcp_pcb *pcb, tcp_recv_fn recv) -{ - 80198bc: b580 push {r7, lr} - 80198be: b082 sub sp, #8 - 80198c0: af00 add r7, sp, #0 - 80198c2: 6078 str r0, [r7, #4] - 80198c4: 6039 str r1, [r7, #0] - LWIP_ASSERT_CORE_LOCKED(); - if (pcb != NULL) { - 80198c6: 687b ldr r3, [r7, #4] - 80198c8: 2b00 cmp r3, #0 - 80198ca: d00e beq.n 80198ea - LWIP_ASSERT("invalid socket state for recv callback", pcb->state != LISTEN); - 80198cc: 687b ldr r3, [r7, #4] - 80198ce: 7d1b ldrb r3, [r3, #20] - 80198d0: 2b01 cmp r3, #1 - 80198d2: d106 bne.n 80198e2 - 80198d4: 4b07 ldr r3, [pc, #28] ; (80198f4 ) - 80198d6: f240 72df movw r2, #2015 ; 0x7df - 80198da: 4907 ldr r1, [pc, #28] ; (80198f8 ) - 80198dc: 4807 ldr r0, [pc, #28] ; (80198fc ) - 80198de: f008 f853 bl 8021988 - pcb->recv = recv; - 80198e2: 687b ldr r3, [r7, #4] - 80198e4: 683a ldr r2, [r7, #0] - 80198e6: f8c3 2084 str.w r2, [r3, #132] ; 0x84 - } -} - 80198ea: bf00 nop - 80198ec: 3708 adds r7, #8 - 80198ee: 46bd mov sp, r7 - 80198f0: bd80 pop {r7, pc} - 80198f2: bf00 nop - 80198f4: 08024ba8 .word 0x08024ba8 - 80198f8: 08025144 .word 0x08025144 - 80198fc: 08024bec .word 0x08024bec - -08019900 : - * @param pcb tcp_pcb to set the sent callback - * @param sent callback function to call for this pcb when data is successfully sent - */ -void -tcp_sent(struct tcp_pcb *pcb, tcp_sent_fn sent) -{ - 8019900: b580 push {r7, lr} - 8019902: b082 sub sp, #8 - 8019904: af00 add r7, sp, #0 - 8019906: 6078 str r0, [r7, #4] - 8019908: 6039 str r1, [r7, #0] - LWIP_ASSERT_CORE_LOCKED(); - if (pcb != NULL) { - 801990a: 687b ldr r3, [r7, #4] - 801990c: 2b00 cmp r3, #0 - 801990e: d00e beq.n 801992e - LWIP_ASSERT("invalid socket state for sent callback", pcb->state != LISTEN); - 8019910: 687b ldr r3, [r7, #4] - 8019912: 7d1b ldrb r3, [r3, #20] - 8019914: 2b01 cmp r3, #1 - 8019916: d106 bne.n 8019926 - 8019918: 4b07 ldr r3, [pc, #28] ; (8019938 ) - 801991a: f240 72f3 movw r2, #2035 ; 0x7f3 - 801991e: 4907 ldr r1, [pc, #28] ; (801993c ) - 8019920: 4807 ldr r0, [pc, #28] ; (8019940 ) - 8019922: f008 f831 bl 8021988 - pcb->sent = sent; - 8019926: 687b ldr r3, [r7, #4] - 8019928: 683a ldr r2, [r7, #0] - 801992a: f8c3 2080 str.w r2, [r3, #128] ; 0x80 - } -} - 801992e: bf00 nop - 8019930: 3708 adds r7, #8 - 8019932: 46bd mov sp, r7 - 8019934: bd80 pop {r7, pc} - 8019936: bf00 nop - 8019938: 08024ba8 .word 0x08024ba8 - 801993c: 0802516c .word 0x0802516c - 8019940: 08024bec .word 0x08024bec - -08019944 : - * @param err callback function to call for this pcb when a fatal error - * has occurred on the connection - */ -void -tcp_err(struct tcp_pcb *pcb, tcp_err_fn err) -{ - 8019944: b580 push {r7, lr} - 8019946: b082 sub sp, #8 - 8019948: af00 add r7, sp, #0 - 801994a: 6078 str r0, [r7, #4] - 801994c: 6039 str r1, [r7, #0] - LWIP_ASSERT_CORE_LOCKED(); - if (pcb != NULL) { - 801994e: 687b ldr r3, [r7, #4] - 8019950: 2b00 cmp r3, #0 - 8019952: d00e beq.n 8019972 - LWIP_ASSERT("invalid socket state for err callback", pcb->state != LISTEN); - 8019954: 687b ldr r3, [r7, #4] - 8019956: 7d1b ldrb r3, [r3, #20] - 8019958: 2b01 cmp r3, #1 - 801995a: d106 bne.n 801996a - 801995c: 4b07 ldr r3, [pc, #28] ; (801997c ) - 801995e: f640 020d movw r2, #2061 ; 0x80d - 8019962: 4907 ldr r1, [pc, #28] ; (8019980 ) - 8019964: 4807 ldr r0, [pc, #28] ; (8019984 ) - 8019966: f008 f80f bl 8021988 - pcb->errf = err; - 801996a: 687b ldr r3, [r7, #4] - 801996c: 683a ldr r2, [r7, #0] - 801996e: f8c3 2090 str.w r2, [r3, #144] ; 0x90 - } -} - 8019972: bf00 nop - 8019974: 3708 adds r7, #8 - 8019976: 46bd mov sp, r7 - 8019978: bd80 pop {r7, pc} - 801997a: bf00 nop - 801997c: 08024ba8 .word 0x08024ba8 - 8019980: 08025194 .word 0x08025194 - 8019984: 08024bec .word 0x08024bec - -08019988 : - * @param accept callback function to call for this pcb when LISTENing - * connection has been connected to another host - */ -void -tcp_accept(struct tcp_pcb *pcb, tcp_accept_fn accept) -{ - 8019988: b480 push {r7} - 801998a: b085 sub sp, #20 - 801998c: af00 add r7, sp, #0 - 801998e: 6078 str r0, [r7, #4] - 8019990: 6039 str r1, [r7, #0] - LWIP_ASSERT_CORE_LOCKED(); - if ((pcb != NULL) && (pcb->state == LISTEN)) { - 8019992: 687b ldr r3, [r7, #4] - 8019994: 2b00 cmp r3, #0 - 8019996: d008 beq.n 80199aa - 8019998: 687b ldr r3, [r7, #4] - 801999a: 7d1b ldrb r3, [r3, #20] - 801999c: 2b01 cmp r3, #1 - 801999e: d104 bne.n 80199aa - struct tcp_pcb_listen *lpcb = (struct tcp_pcb_listen *)pcb; - 80199a0: 687b ldr r3, [r7, #4] - 80199a2: 60fb str r3, [r7, #12] - lpcb->accept = accept; - 80199a4: 68fb ldr r3, [r7, #12] - 80199a6: 683a ldr r2, [r7, #0] - 80199a8: 619a str r2, [r3, #24] - } -} - 80199aa: bf00 nop - 80199ac: 3714 adds r7, #20 - 80199ae: 46bd mov sp, r7 - 80199b0: f85d 7b04 ldr.w r7, [sp], #4 - 80199b4: 4770 bx lr - ... - -080199b8 : - * the application may use the polling functionality to call tcp_write() - * again when the connection has been idle for a while. - */ -void -tcp_poll(struct tcp_pcb *pcb, tcp_poll_fn poll, u8_t interval) -{ - 80199b8: b580 push {r7, lr} - 80199ba: b084 sub sp, #16 - 80199bc: af00 add r7, sp, #0 - 80199be: 60f8 str r0, [r7, #12] - 80199c0: 60b9 str r1, [r7, #8] - 80199c2: 4613 mov r3, r2 - 80199c4: 71fb strb r3, [r7, #7] - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("tcp_poll: invalid pcb", pcb != NULL, return); - 80199c6: 68fb ldr r3, [r7, #12] - 80199c8: 2b00 cmp r3, #0 - 80199ca: d107 bne.n 80199dc - 80199cc: 4b0e ldr r3, [pc, #56] ; (8019a08 ) - 80199ce: f640 023d movw r2, #2109 ; 0x83d - 80199d2: 490e ldr r1, [pc, #56] ; (8019a0c ) - 80199d4: 480e ldr r0, [pc, #56] ; (8019a10 ) - 80199d6: f007 ffd7 bl 8021988 - 80199da: e011 b.n 8019a00 - LWIP_ASSERT("invalid socket state for poll", pcb->state != LISTEN); - 80199dc: 68fb ldr r3, [r7, #12] - 80199de: 7d1b ldrb r3, [r3, #20] - 80199e0: 2b01 cmp r3, #1 - 80199e2: d106 bne.n 80199f2 - 80199e4: 4b08 ldr r3, [pc, #32] ; (8019a08 ) - 80199e6: f640 023e movw r2, #2110 ; 0x83e - 80199ea: 490a ldr r1, [pc, #40] ; (8019a14 ) - 80199ec: 4808 ldr r0, [pc, #32] ; (8019a10 ) - 80199ee: f007 ffcb bl 8021988 - -#if LWIP_CALLBACK_API - pcb->poll = poll; - 80199f2: 68fb ldr r3, [r7, #12] - 80199f4: 68ba ldr r2, [r7, #8] - 80199f6: f8c3 208c str.w r2, [r3, #140] ; 0x8c -#else /* LWIP_CALLBACK_API */ - LWIP_UNUSED_ARG(poll); -#endif /* LWIP_CALLBACK_API */ - pcb->pollinterval = interval; - 80199fa: 68fb ldr r3, [r7, #12] - 80199fc: 79fa ldrb r2, [r7, #7] - 80199fe: 775a strb r2, [r3, #29] -} - 8019a00: 3710 adds r7, #16 - 8019a02: 46bd mov sp, r7 - 8019a04: bd80 pop {r7, pc} - 8019a06: bf00 nop - 8019a08: 08024ba8 .word 0x08024ba8 - 8019a0c: 080251bc .word 0x080251bc - 8019a10: 08024bec .word 0x08024bec - 8019a14: 080251d4 .word 0x080251d4 - -08019a18 : - * - * @param pcb tcp_pcb to purge. The pcb itself is not deallocated! - */ -void -tcp_pcb_purge(struct tcp_pcb *pcb) -{ - 8019a18: b580 push {r7, lr} - 8019a1a: b082 sub sp, #8 - 8019a1c: af00 add r7, sp, #0 - 8019a1e: 6078 str r0, [r7, #4] - LWIP_ERROR("tcp_pcb_purge: invalid pcb", pcb != NULL, return); - 8019a20: 687b ldr r3, [r7, #4] - 8019a22: 2b00 cmp r3, #0 - 8019a24: d107 bne.n 8019a36 - 8019a26: 4b21 ldr r3, [pc, #132] ; (8019aac ) - 8019a28: f640 0251 movw r2, #2129 ; 0x851 - 8019a2c: 4920 ldr r1, [pc, #128] ; (8019ab0 ) - 8019a2e: 4821 ldr r0, [pc, #132] ; (8019ab4 ) - 8019a30: f007 ffaa bl 8021988 - 8019a34: e037 b.n 8019aa6 - - if (pcb->state != CLOSED && - 8019a36: 687b ldr r3, [r7, #4] - 8019a38: 7d1b ldrb r3, [r3, #20] - 8019a3a: 2b00 cmp r3, #0 - 8019a3c: d033 beq.n 8019aa6 - pcb->state != TIME_WAIT && - 8019a3e: 687b ldr r3, [r7, #4] - 8019a40: 7d1b ldrb r3, [r3, #20] - if (pcb->state != CLOSED && - 8019a42: 2b0a cmp r3, #10 - 8019a44: d02f beq.n 8019aa6 - pcb->state != LISTEN) { - 8019a46: 687b ldr r3, [r7, #4] - 8019a48: 7d1b ldrb r3, [r3, #20] - pcb->state != TIME_WAIT && - 8019a4a: 2b01 cmp r3, #1 - 8019a4c: d02b beq.n 8019aa6 - - LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge\n")); - - tcp_backlog_accepted(pcb); - - if (pcb->refused_data != NULL) { - 8019a4e: 687b ldr r3, [r7, #4] - 8019a50: 6f9b ldr r3, [r3, #120] ; 0x78 - 8019a52: 2b00 cmp r3, #0 - 8019a54: d007 beq.n 8019a66 - LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: data left on ->refused_data\n")); - pbuf_free(pcb->refused_data); - 8019a56: 687b ldr r3, [r7, #4] - 8019a58: 6f9b ldr r3, [r3, #120] ; 0x78 - 8019a5a: 4618 mov r0, r3 - 8019a5c: f7fe f84c bl 8017af8 - pcb->refused_data = NULL; - 8019a60: 687b ldr r3, [r7, #4] - 8019a62: 2200 movs r2, #0 - 8019a64: 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) { - 8019a66: 687b ldr r3, [r7, #4] - 8019a68: 6f5b ldr r3, [r3, #116] ; 0x74 - 8019a6a: 2b00 cmp r3, #0 - 8019a6c: d002 beq.n 8019a74 - LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: data left on ->ooseq\n")); - tcp_free_ooseq(pcb); - 8019a6e: 6878 ldr r0, [r7, #4] - 8019a70: f000 f98c bl 8019d8c - } -#endif /* TCP_QUEUE_OOSEQ */ - - /* Stop the retransmission timer as it will expect data on unacked - queue if it fires */ - pcb->rtime = -1; - 8019a74: 687b ldr r3, [r7, #4] - 8019a76: f64f 72ff movw r2, #65535 ; 0xffff - 8019a7a: 861a strh r2, [r3, #48] ; 0x30 - - tcp_segs_free(pcb->unsent); - 8019a7c: 687b ldr r3, [r7, #4] - 8019a7e: 6edb ldr r3, [r3, #108] ; 0x6c - 8019a80: 4618 mov r0, r3 - 8019a82: f7ff fcf9 bl 8019478 - tcp_segs_free(pcb->unacked); - 8019a86: 687b ldr r3, [r7, #4] - 8019a88: 6f1b ldr r3, [r3, #112] ; 0x70 - 8019a8a: 4618 mov r0, r3 - 8019a8c: f7ff fcf4 bl 8019478 - pcb->unacked = pcb->unsent = NULL; - 8019a90: 687b ldr r3, [r7, #4] - 8019a92: 2200 movs r2, #0 - 8019a94: 66da str r2, [r3, #108] ; 0x6c - 8019a96: 687b ldr r3, [r7, #4] - 8019a98: 6eda ldr r2, [r3, #108] ; 0x6c - 8019a9a: 687b ldr r3, [r7, #4] - 8019a9c: 671a str r2, [r3, #112] ; 0x70 -#if TCP_OVERSIZE - pcb->unsent_oversize = 0; - 8019a9e: 687b ldr r3, [r7, #4] - 8019aa0: 2200 movs r2, #0 - 8019aa2: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 -#endif /* TCP_OVERSIZE */ - } -} - 8019aa6: 3708 adds r7, #8 - 8019aa8: 46bd mov sp, r7 - 8019aaa: bd80 pop {r7, pc} - 8019aac: 08024ba8 .word 0x08024ba8 - 8019ab0: 080251f4 .word 0x080251f4 - 8019ab4: 08024bec .word 0x08024bec - -08019ab8 : - * @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) -{ - 8019ab8: b580 push {r7, lr} - 8019aba: b084 sub sp, #16 - 8019abc: af00 add r7, sp, #0 - 8019abe: 6078 str r0, [r7, #4] - 8019ac0: 6039 str r1, [r7, #0] - LWIP_ASSERT("tcp_pcb_remove: invalid pcb", pcb != NULL); - 8019ac2: 683b ldr r3, [r7, #0] - 8019ac4: 2b00 cmp r3, #0 - 8019ac6: d106 bne.n 8019ad6 - 8019ac8: 4b3e ldr r3, [pc, #248] ; (8019bc4 ) - 8019aca: f640 0283 movw r2, #2179 ; 0x883 - 8019ace: 493e ldr r1, [pc, #248] ; (8019bc8 ) - 8019ad0: 483e ldr r0, [pc, #248] ; (8019bcc ) - 8019ad2: f007 ff59 bl 8021988 - LWIP_ASSERT("tcp_pcb_remove: invalid pcblist", pcblist != NULL); - 8019ad6: 687b ldr r3, [r7, #4] - 8019ad8: 2b00 cmp r3, #0 - 8019ada: d106 bne.n 8019aea - 8019adc: 4b39 ldr r3, [pc, #228] ; (8019bc4 ) - 8019ade: f640 0284 movw r2, #2180 ; 0x884 - 8019ae2: 493b ldr r1, [pc, #236] ; (8019bd0 ) - 8019ae4: 4839 ldr r0, [pc, #228] ; (8019bcc ) - 8019ae6: f007 ff4f bl 8021988 - - TCP_RMV(pcblist, pcb); - 8019aea: 687b ldr r3, [r7, #4] - 8019aec: 681b ldr r3, [r3, #0] - 8019aee: 683a ldr r2, [r7, #0] - 8019af0: 429a cmp r2, r3 - 8019af2: d105 bne.n 8019b00 - 8019af4: 687b ldr r3, [r7, #4] - 8019af6: 681b ldr r3, [r3, #0] - 8019af8: 68da ldr r2, [r3, #12] - 8019afa: 687b ldr r3, [r7, #4] - 8019afc: 601a str r2, [r3, #0] - 8019afe: e013 b.n 8019b28 - 8019b00: 687b ldr r3, [r7, #4] - 8019b02: 681b ldr r3, [r3, #0] - 8019b04: 60fb str r3, [r7, #12] - 8019b06: e00c b.n 8019b22 - 8019b08: 68fb ldr r3, [r7, #12] - 8019b0a: 68db ldr r3, [r3, #12] - 8019b0c: 683a ldr r2, [r7, #0] - 8019b0e: 429a cmp r2, r3 - 8019b10: d104 bne.n 8019b1c - 8019b12: 683b ldr r3, [r7, #0] - 8019b14: 68da ldr r2, [r3, #12] - 8019b16: 68fb ldr r3, [r7, #12] - 8019b18: 60da str r2, [r3, #12] - 8019b1a: e005 b.n 8019b28 - 8019b1c: 68fb ldr r3, [r7, #12] - 8019b1e: 68db ldr r3, [r3, #12] - 8019b20: 60fb str r3, [r7, #12] - 8019b22: 68fb ldr r3, [r7, #12] - 8019b24: 2b00 cmp r3, #0 - 8019b26: d1ef bne.n 8019b08 - 8019b28: 683b ldr r3, [r7, #0] - 8019b2a: 2200 movs r2, #0 - 8019b2c: 60da str r2, [r3, #12] - - tcp_pcb_purge(pcb); - 8019b2e: 6838 ldr r0, [r7, #0] - 8019b30: f7ff ff72 bl 8019a18 - - /* if there is an outstanding delayed ACKs, send it */ - if ((pcb->state != TIME_WAIT) && - 8019b34: 683b ldr r3, [r7, #0] - 8019b36: 7d1b ldrb r3, [r3, #20] - 8019b38: 2b0a cmp r3, #10 - 8019b3a: d013 beq.n 8019b64 - (pcb->state != LISTEN) && - 8019b3c: 683b ldr r3, [r7, #0] - 8019b3e: 7d1b ldrb r3, [r3, #20] - if ((pcb->state != TIME_WAIT) && - 8019b40: 2b01 cmp r3, #1 - 8019b42: d00f beq.n 8019b64 - (pcb->flags & TF_ACK_DELAY)) { - 8019b44: 683b ldr r3, [r7, #0] - 8019b46: 8b5b ldrh r3, [r3, #26] - 8019b48: f003 0301 and.w r3, r3, #1 - (pcb->state != LISTEN) && - 8019b4c: 2b00 cmp r3, #0 - 8019b4e: d009 beq.n 8019b64 - tcp_ack_now(pcb); - 8019b50: 683b ldr r3, [r7, #0] - 8019b52: 8b5b ldrh r3, [r3, #26] - 8019b54: f043 0302 orr.w r3, r3, #2 - 8019b58: b29a uxth r2, r3 - 8019b5a: 683b ldr r3, [r7, #0] - 8019b5c: 835a strh r2, [r3, #26] - tcp_output(pcb); - 8019b5e: 6838 ldr r0, [r7, #0] - 8019b60: f003 fc2c bl 801d3bc - } - - if (pcb->state != LISTEN) { - 8019b64: 683b ldr r3, [r7, #0] - 8019b66: 7d1b ldrb r3, [r3, #20] - 8019b68: 2b01 cmp r3, #1 - 8019b6a: d020 beq.n 8019bae - LWIP_ASSERT("unsent segments leaking", pcb->unsent == NULL); - 8019b6c: 683b ldr r3, [r7, #0] - 8019b6e: 6edb ldr r3, [r3, #108] ; 0x6c - 8019b70: 2b00 cmp r3, #0 - 8019b72: d006 beq.n 8019b82 - 8019b74: 4b13 ldr r3, [pc, #76] ; (8019bc4 ) - 8019b76: f640 0293 movw r2, #2195 ; 0x893 - 8019b7a: 4916 ldr r1, [pc, #88] ; (8019bd4 ) - 8019b7c: 4813 ldr r0, [pc, #76] ; (8019bcc ) - 8019b7e: f007 ff03 bl 8021988 - LWIP_ASSERT("unacked segments leaking", pcb->unacked == NULL); - 8019b82: 683b ldr r3, [r7, #0] - 8019b84: 6f1b ldr r3, [r3, #112] ; 0x70 - 8019b86: 2b00 cmp r3, #0 - 8019b88: d006 beq.n 8019b98 - 8019b8a: 4b0e ldr r3, [pc, #56] ; (8019bc4 ) - 8019b8c: f640 0294 movw r2, #2196 ; 0x894 - 8019b90: 4911 ldr r1, [pc, #68] ; (8019bd8 ) - 8019b92: 480e ldr r0, [pc, #56] ; (8019bcc ) - 8019b94: f007 fef8 bl 8021988 -#if TCP_QUEUE_OOSEQ - LWIP_ASSERT("ooseq segments leaking", pcb->ooseq == NULL); - 8019b98: 683b ldr r3, [r7, #0] - 8019b9a: 6f5b ldr r3, [r3, #116] ; 0x74 - 8019b9c: 2b00 cmp r3, #0 - 8019b9e: d006 beq.n 8019bae - 8019ba0: 4b08 ldr r3, [pc, #32] ; (8019bc4 ) - 8019ba2: f640 0296 movw r2, #2198 ; 0x896 - 8019ba6: 490d ldr r1, [pc, #52] ; (8019bdc ) - 8019ba8: 4808 ldr r0, [pc, #32] ; (8019bcc ) - 8019baa: f007 feed bl 8021988 -#endif /* TCP_QUEUE_OOSEQ */ - } - - pcb->state = CLOSED; - 8019bae: 683b ldr r3, [r7, #0] - 8019bb0: 2200 movs r2, #0 - 8019bb2: 751a strb r2, [r3, #20] - /* reset the local port to prevent the pcb from being 'bound' */ - pcb->local_port = 0; - 8019bb4: 683b ldr r3, [r7, #0] - 8019bb6: 2200 movs r2, #0 - 8019bb8: 82da strh r2, [r3, #22] - - LWIP_ASSERT("tcp_pcb_remove: tcp_pcbs_sane()", tcp_pcbs_sane()); -} - 8019bba: bf00 nop - 8019bbc: 3710 adds r7, #16 - 8019bbe: 46bd mov sp, r7 - 8019bc0: bd80 pop {r7, pc} - 8019bc2: bf00 nop - 8019bc4: 08024ba8 .word 0x08024ba8 - 8019bc8: 08025210 .word 0x08025210 - 8019bcc: 08024bec .word 0x08024bec - 8019bd0: 0802522c .word 0x0802522c - 8019bd4: 0802524c .word 0x0802524c - 8019bd8: 08025264 .word 0x08025264 - 8019bdc: 08025280 .word 0x08025280 - -08019be0 : - * - * @return u32_t pseudo random sequence number - */ -u32_t -tcp_next_iss(struct tcp_pcb *pcb) -{ - 8019be0: b580 push {r7, lr} - 8019be2: b082 sub sp, #8 - 8019be4: af00 add r7, sp, #0 - 8019be6: 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); - 8019be8: 687b ldr r3, [r7, #4] - 8019bea: 2b00 cmp r3, #0 - 8019bec: d106 bne.n 8019bfc - 8019bee: 4b0a ldr r3, [pc, #40] ; (8019c18 ) - 8019bf0: f640 02af movw r2, #2223 ; 0x8af - 8019bf4: 4909 ldr r1, [pc, #36] ; (8019c1c ) - 8019bf6: 480a ldr r0, [pc, #40] ; (8019c20 ) - 8019bf8: f007 fec6 bl 8021988 - LWIP_UNUSED_ARG(pcb); - - iss += tcp_ticks; /* XXX */ - 8019bfc: 4b09 ldr r3, [pc, #36] ; (8019c24 ) - 8019bfe: 681a ldr r2, [r3, #0] - 8019c00: 4b09 ldr r3, [pc, #36] ; (8019c28 ) - 8019c02: 681b ldr r3, [r3, #0] - 8019c04: 4413 add r3, r2 - 8019c06: 4a07 ldr r2, [pc, #28] ; (8019c24 ) - 8019c08: 6013 str r3, [r2, #0] - return iss; - 8019c0a: 4b06 ldr r3, [pc, #24] ; (8019c24 ) - 8019c0c: 681b ldr r3, [r3, #0] -#endif /* LWIP_HOOK_TCP_ISN */ -} - 8019c0e: 4618 mov r0, r3 - 8019c10: 3708 adds r7, #8 - 8019c12: 46bd mov sp, r7 - 8019c14: bd80 pop {r7, pc} - 8019c16: bf00 nop - 8019c18: 08024ba8 .word 0x08024ba8 - 8019c1c: 08025298 .word 0x08025298 - 8019c20: 08024bec .word 0x08024bec - 8019c24: 24000040 .word 0x24000040 - 8019c28: 2401a480 .word 0x2401a480 - -08019c2c : - * 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) -{ - 8019c2c: b580 push {r7, lr} - 8019c2e: b086 sub sp, #24 - 8019c30: af00 add r7, sp, #0 - 8019c32: 4603 mov r3, r0 - 8019c34: 60b9 str r1, [r7, #8] - 8019c36: 607a str r2, [r7, #4] - 8019c38: 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); - 8019c3a: 687b ldr r3, [r7, #4] - 8019c3c: 2b00 cmp r3, #0 - 8019c3e: d106 bne.n 8019c4e - 8019c40: 4b14 ldr r3, [pc, #80] ; (8019c94 ) - 8019c42: f640 02c5 movw r2, #2245 ; 0x8c5 - 8019c46: 4914 ldr r1, [pc, #80] ; (8019c98 ) - 8019c48: 4814 ldr r0, [pc, #80] ; (8019c9c ) - 8019c4a: f007 fe9d bl 8021988 - else -#endif /* LWIP_IPV4 */ -#endif /* LWIP_IPV6 */ -#if LWIP_IPV4 - { - if (outif == NULL) { - 8019c4e: 68bb ldr r3, [r7, #8] - 8019c50: 2b00 cmp r3, #0 - 8019c52: d101 bne.n 8019c58 - return sendmss; - 8019c54: 89fb ldrh r3, [r7, #14] - 8019c56: e019 b.n 8019c8c - } - mtu = outif->mtu; - 8019c58: 68bb ldr r3, [r7, #8] - 8019c5a: 8c9b ldrh r3, [r3, #36] ; 0x24 - 8019c5c: 82fb strh r3, [r7, #22] - } -#endif /* LWIP_IPV4 */ - - if (mtu != 0) { - 8019c5e: 8afb ldrh r3, [r7, #22] - 8019c60: 2b00 cmp r3, #0 - 8019c62: d012 beq.n 8019c8a - else -#endif /* LWIP_IPV4 */ -#endif /* LWIP_IPV6 */ -#if LWIP_IPV4 - { - offset = IP_HLEN + TCP_HLEN; - 8019c64: 2328 movs r3, #40 ; 0x28 - 8019c66: 82bb strh r3, [r7, #20] - } -#endif /* LWIP_IPV4 */ - mss_s = (mtu > offset) ? (u16_t)(mtu - offset) : 0; - 8019c68: 8afa ldrh r2, [r7, #22] - 8019c6a: 8abb ldrh r3, [r7, #20] - 8019c6c: 429a cmp r2, r3 - 8019c6e: d904 bls.n 8019c7a - 8019c70: 8afa ldrh r2, [r7, #22] - 8019c72: 8abb ldrh r3, [r7, #20] - 8019c74: 1ad3 subs r3, r2, r3 - 8019c76: b29b uxth r3, r3 - 8019c78: e000 b.n 8019c7c - 8019c7a: 2300 movs r3, #0 - 8019c7c: 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); - 8019c7e: 8a7a ldrh r2, [r7, #18] - 8019c80: 89fb ldrh r3, [r7, #14] - 8019c82: 4293 cmp r3, r2 - 8019c84: bf28 it cs - 8019c86: 4613 movcs r3, r2 - 8019c88: 81fb strh r3, [r7, #14] - } - return sendmss; - 8019c8a: 89fb ldrh r3, [r7, #14] -} - 8019c8c: 4618 mov r0, r3 - 8019c8e: 3718 adds r7, #24 - 8019c90: 46bd mov sp, r7 - 8019c92: bd80 pop {r7, pc} - 8019c94: 08024ba8 .word 0x08024ba8 - 8019c98: 080252b4 .word 0x080252b4 - 8019c9c: 08024bec .word 0x08024bec - -08019ca0 : -#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) -{ - 8019ca0: b580 push {r7, lr} - 8019ca2: b084 sub sp, #16 - 8019ca4: af00 add r7, sp, #0 - 8019ca6: 6078 str r0, [r7, #4] - 8019ca8: 6039 str r1, [r7, #0] - struct tcp_pcb *pcb; - pcb = pcb_list; - 8019caa: 683b ldr r3, [r7, #0] - 8019cac: 60fb str r3, [r7, #12] - - LWIP_ASSERT("tcp_netif_ip_addr_changed_pcblist: invalid old_addr", old_addr != NULL); - 8019cae: 687b ldr r3, [r7, #4] - 8019cb0: 2b00 cmp r3, #0 - 8019cb2: d11d bne.n 8019cf0 - 8019cb4: 4b12 ldr r3, [pc, #72] ; (8019d00 ) - 8019cb6: f44f 6210 mov.w r2, #2304 ; 0x900 - 8019cba: 4912 ldr r1, [pc, #72] ; (8019d04 ) - 8019cbc: 4812 ldr r0, [pc, #72] ; (8019d08 ) - 8019cbe: f007 fe63 bl 8021988 - - while (pcb != NULL) { - 8019cc2: e015 b.n 8019cf0 - /* PCB bound to current local interface address? */ - if (ip_addr_cmp(&pcb->local_ip, old_addr) - 8019cc4: 68fb ldr r3, [r7, #12] - 8019cc6: 681a ldr r2, [r3, #0] - 8019cc8: 687b ldr r3, [r7, #4] - 8019cca: 681b ldr r3, [r3, #0] - 8019ccc: 429a cmp r2, r3 - 8019cce: d10c bne.n 8019cea - /* 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; - 8019cd0: 68fb ldr r3, [r7, #12] - 8019cd2: 68db ldr r3, [r3, #12] - 8019cd4: 60bb str r3, [r7, #8] - LWIP_DEBUGF(NETIF_DEBUG | LWIP_DBG_STATE, ("netif_set_ipaddr: aborting TCP pcb %p\n", (void *)pcb)); - 8019cd6: 68f9 ldr r1, [r7, #12] - 8019cd8: 480c ldr r0, [pc, #48] ; (8019d0c ) - 8019cda: f007 fe55 bl 8021988 - tcp_abort(pcb); - 8019cde: 68f8 ldr r0, [r7, #12] - 8019ce0: f7fe fcfa bl 80186d8 - pcb = next; - 8019ce4: 68bb ldr r3, [r7, #8] - 8019ce6: 60fb str r3, [r7, #12] - 8019ce8: e002 b.n 8019cf0 - } else { - pcb = pcb->next; - 8019cea: 68fb ldr r3, [r7, #12] - 8019cec: 68db ldr r3, [r3, #12] - 8019cee: 60fb str r3, [r7, #12] - while (pcb != NULL) { - 8019cf0: 68fb ldr r3, [r7, #12] - 8019cf2: 2b00 cmp r3, #0 - 8019cf4: d1e6 bne.n 8019cc4 - } - } -} - 8019cf6: bf00 nop - 8019cf8: bf00 nop - 8019cfa: 3710 adds r7, #16 - 8019cfc: 46bd mov sp, r7 - 8019cfe: bd80 pop {r7, pc} - 8019d00: 08024ba8 .word 0x08024ba8 - 8019d04: 080252dc .word 0x080252dc - 8019d08: 08024bec .word 0x08024bec - 8019d0c: 08025310 .word 0x08025310 - -08019d10 : - * @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) -{ - 8019d10: b580 push {r7, lr} - 8019d12: b084 sub sp, #16 - 8019d14: af00 add r7, sp, #0 - 8019d16: 6078 str r0, [r7, #4] - 8019d18: 6039 str r1, [r7, #0] - struct tcp_pcb_listen *lpcb; - - if (!ip_addr_isany(old_addr)) { - 8019d1a: 687b ldr r3, [r7, #4] - 8019d1c: 2b00 cmp r3, #0 - 8019d1e: d02a beq.n 8019d76 - 8019d20: 687b ldr r3, [r7, #4] - 8019d22: 681b ldr r3, [r3, #0] - 8019d24: 2b00 cmp r3, #0 - 8019d26: d026 beq.n 8019d76 - tcp_netif_ip_addr_changed_pcblist(old_addr, tcp_active_pcbs); - 8019d28: 4b15 ldr r3, [pc, #84] ; (8019d80 ) - 8019d2a: 681b ldr r3, [r3, #0] - 8019d2c: 4619 mov r1, r3 - 8019d2e: 6878 ldr r0, [r7, #4] - 8019d30: f7ff ffb6 bl 8019ca0 - tcp_netif_ip_addr_changed_pcblist(old_addr, tcp_bound_pcbs); - 8019d34: 4b13 ldr r3, [pc, #76] ; (8019d84 ) - 8019d36: 681b ldr r3, [r3, #0] - 8019d38: 4619 mov r1, r3 - 8019d3a: 6878 ldr r0, [r7, #4] - 8019d3c: f7ff ffb0 bl 8019ca0 - - if (!ip_addr_isany(new_addr)) { - 8019d40: 683b ldr r3, [r7, #0] - 8019d42: 2b00 cmp r3, #0 - 8019d44: d017 beq.n 8019d76 - 8019d46: 683b ldr r3, [r7, #0] - 8019d48: 681b ldr r3, [r3, #0] - 8019d4a: 2b00 cmp r3, #0 - 8019d4c: d013 beq.n 8019d76 - /* PCB bound to current local interface address? */ - for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) { - 8019d4e: 4b0e ldr r3, [pc, #56] ; (8019d88 ) - 8019d50: 681b ldr r3, [r3, #0] - 8019d52: 60fb str r3, [r7, #12] - 8019d54: e00c b.n 8019d70 - /* PCB bound to current local interface address? */ - if (ip_addr_cmp(&lpcb->local_ip, old_addr)) { - 8019d56: 68fb ldr r3, [r7, #12] - 8019d58: 681a ldr r2, [r3, #0] - 8019d5a: 687b ldr r3, [r7, #4] - 8019d5c: 681b ldr r3, [r3, #0] - 8019d5e: 429a cmp r2, r3 - 8019d60: d103 bne.n 8019d6a - /* 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); - 8019d62: 683b ldr r3, [r7, #0] - 8019d64: 681a ldr r2, [r3, #0] - 8019d66: 68fb ldr r3, [r7, #12] - 8019d68: 601a str r2, [r3, #0] - for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) { - 8019d6a: 68fb ldr r3, [r7, #12] - 8019d6c: 68db ldr r3, [r3, #12] - 8019d6e: 60fb str r3, [r7, #12] - 8019d70: 68fb ldr r3, [r7, #12] - 8019d72: 2b00 cmp r3, #0 - 8019d74: d1ef bne.n 8019d56 - } - } - } - } -} - 8019d76: bf00 nop - 8019d78: 3710 adds r7, #16 - 8019d7a: 46bd mov sp, r7 - 8019d7c: bd80 pop {r7, pc} - 8019d7e: bf00 nop - 8019d80: 2401a48c .word 0x2401a48c - 8019d84: 2401a484 .word 0x2401a484 - 8019d88: 2401a488 .word 0x2401a488 - -08019d8c : - -#if TCP_QUEUE_OOSEQ -/* Free all ooseq pbufs (and possibly reset SACK state) */ -void -tcp_free_ooseq(struct tcp_pcb *pcb) -{ - 8019d8c: b580 push {r7, lr} - 8019d8e: b082 sub sp, #8 - 8019d90: af00 add r7, sp, #0 - 8019d92: 6078 str r0, [r7, #4] - if (pcb->ooseq) { - 8019d94: 687b ldr r3, [r7, #4] - 8019d96: 6f5b ldr r3, [r3, #116] ; 0x74 - 8019d98: 2b00 cmp r3, #0 - 8019d9a: d007 beq.n 8019dac - tcp_segs_free(pcb->ooseq); - 8019d9c: 687b ldr r3, [r7, #4] - 8019d9e: 6f5b ldr r3, [r3, #116] ; 0x74 - 8019da0: 4618 mov r0, r3 - 8019da2: f7ff fb69 bl 8019478 - pcb->ooseq = NULL; - 8019da6: 687b ldr r3, [r7, #4] - 8019da8: 2200 movs r2, #0 - 8019daa: 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 */ - } -} - 8019dac: bf00 nop - 8019dae: 3708 adds r7, #8 - 8019db0: 46bd mov sp, r7 - 8019db2: bd80 pop {r7, pc} - -08019db4 : - * @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) -{ - 8019db4: b590 push {r4, r7, lr} - 8019db6: b08d sub sp, #52 ; 0x34 - 8019db8: af04 add r7, sp, #16 - 8019dba: 6078 str r0, [r7, #4] - 8019dbc: 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); - 8019dbe: 687b ldr r3, [r7, #4] - 8019dc0: 2b00 cmp r3, #0 - 8019dc2: d105 bne.n 8019dd0 - 8019dc4: 4b9b ldr r3, [pc, #620] ; (801a034 ) - 8019dc6: 2283 movs r2, #131 ; 0x83 - 8019dc8: 499b ldr r1, [pc, #620] ; (801a038 ) - 8019dca: 489c ldr r0, [pc, #624] ; (801a03c ) - 8019dcc: f007 fddc bl 8021988 - PERF_START; - - TCP_STATS_INC(tcp.recv); - MIB2_STATS_INC(mib2.tcpinsegs); - - tcphdr = (struct tcp_hdr *)p->payload; - 8019dd0: 687b ldr r3, [r7, #4] - 8019dd2: 685b ldr r3, [r3, #4] - 8019dd4: 4a9a ldr r2, [pc, #616] ; (801a040 ) - 8019dd6: 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) { - 8019dd8: 687b ldr r3, [r7, #4] - 8019dda: 895b ldrh r3, [r3, #10] - 8019ddc: 2b13 cmp r3, #19 - 8019dde: f240 83d1 bls.w 801a584 - 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()) || - 8019de2: 4b98 ldr r3, [pc, #608] ; (801a044 ) - 8019de4: 695b ldr r3, [r3, #20] - 8019de6: 4a97 ldr r2, [pc, #604] ; (801a044 ) - 8019de8: 6812 ldr r2, [r2, #0] - 8019dea: 4611 mov r1, r2 - 8019dec: 4618 mov r0, r3 - 8019dee: f006 fb17 bl 8020420 - 8019df2: 4603 mov r3, r0 - 8019df4: 2b00 cmp r3, #0 - 8019df6: f040 83c7 bne.w 801a588 - ip_addr_ismulticast(ip_current_dest_addr())) { - 8019dfa: 4b92 ldr r3, [pc, #584] ; (801a044 ) - 8019dfc: 695b ldr r3, [r3, #20] - 8019dfe: f003 03f0 and.w r3, r3, #240 ; 0xf0 - if (ip_addr_isbroadcast(ip_current_dest_addr(), ip_current_netif()) || - 8019e02: 2be0 cmp r3, #224 ; 0xe0 - 8019e04: f000 83c0 beq.w 801a588 - } - } -#endif /* CHECKSUM_CHECK_TCP */ - - /* sanity-check header length */ - hdrlen_bytes = TCPH_HDRLEN_BYTES(tcphdr); - 8019e08: 4b8d ldr r3, [pc, #564] ; (801a040 ) - 8019e0a: 681b ldr r3, [r3, #0] - 8019e0c: 899b ldrh r3, [r3, #12] - 8019e0e: b29b uxth r3, r3 - 8019e10: 4618 mov r0, r3 - 8019e12: f7fc f895 bl 8015f40 - 8019e16: 4603 mov r3, r0 - 8019e18: 0b1b lsrs r3, r3, #12 - 8019e1a: b29b uxth r3, r3 - 8019e1c: b2db uxtb r3, r3 - 8019e1e: 009b lsls r3, r3, #2 - 8019e20: 74bb strb r3, [r7, #18] - if ((hdrlen_bytes < TCP_HLEN) || (hdrlen_bytes > p->tot_len)) { - 8019e22: 7cbb ldrb r3, [r7, #18] - 8019e24: 2b13 cmp r3, #19 - 8019e26: f240 83b1 bls.w 801a58c - 8019e2a: 7cbb ldrb r3, [r7, #18] - 8019e2c: b29a uxth r2, r3 - 8019e2e: 687b ldr r3, [r7, #4] - 8019e30: 891b ldrh r3, [r3, #8] - 8019e32: 429a cmp r2, r3 - 8019e34: f200 83aa bhi.w 801a58c - 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); - 8019e38: 7cbb ldrb r3, [r7, #18] - 8019e3a: b29b uxth r3, r3 - 8019e3c: 3b14 subs r3, #20 - 8019e3e: b29a uxth r2, r3 - 8019e40: 4b81 ldr r3, [pc, #516] ; (801a048 ) - 8019e42: 801a strh r2, [r3, #0] - tcphdr_opt2 = NULL; - 8019e44: 4b81 ldr r3, [pc, #516] ; (801a04c ) - 8019e46: 2200 movs r2, #0 - 8019e48: 601a str r2, [r3, #0] - if (p->len >= hdrlen_bytes) { - 8019e4a: 687b ldr r3, [r7, #4] - 8019e4c: 895a ldrh r2, [r3, #10] - 8019e4e: 7cbb ldrb r3, [r7, #18] - 8019e50: b29b uxth r3, r3 - 8019e52: 429a cmp r2, r3 - 8019e54: d309 bcc.n 8019e6a - /* all options are in the first pbuf */ - tcphdr_opt1len = tcphdr_optlen; - 8019e56: 4b7c ldr r3, [pc, #496] ; (801a048 ) - 8019e58: 881a ldrh r2, [r3, #0] - 8019e5a: 4b7d ldr r3, [pc, #500] ; (801a050 ) - 8019e5c: 801a strh r2, [r3, #0] - pbuf_remove_header(p, hdrlen_bytes); /* cannot fail */ - 8019e5e: 7cbb ldrb r3, [r7, #18] - 8019e60: 4619 mov r1, r3 - 8019e62: 6878 ldr r0, [r7, #4] - 8019e64: f7fd fdc2 bl 80179ec - 8019e68: e04e b.n 8019f08 - } 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); - 8019e6a: 687b ldr r3, [r7, #4] - 8019e6c: 681b ldr r3, [r3, #0] - 8019e6e: 2b00 cmp r3, #0 - 8019e70: d105 bne.n 8019e7e - 8019e72: 4b70 ldr r3, [pc, #448] ; (801a034 ) - 8019e74: 22c2 movs r2, #194 ; 0xc2 - 8019e76: 4977 ldr r1, [pc, #476] ; (801a054 ) - 8019e78: 4870 ldr r0, [pc, #448] ; (801a03c ) - 8019e7a: f007 fd85 bl 8021988 - - /* advance over the TCP header (cannot fail) */ - pbuf_remove_header(p, TCP_HLEN); - 8019e7e: 2114 movs r1, #20 - 8019e80: 6878 ldr r0, [r7, #4] - 8019e82: f7fd fdb3 bl 80179ec - - /* determine how long the first and second parts of the options are */ - tcphdr_opt1len = p->len; - 8019e86: 687b ldr r3, [r7, #4] - 8019e88: 895a ldrh r2, [r3, #10] - 8019e8a: 4b71 ldr r3, [pc, #452] ; (801a050 ) - 8019e8c: 801a strh r2, [r3, #0] - opt2len = (u16_t)(tcphdr_optlen - tcphdr_opt1len); - 8019e8e: 4b6e ldr r3, [pc, #440] ; (801a048 ) - 8019e90: 881a ldrh r2, [r3, #0] - 8019e92: 4b6f ldr r3, [pc, #444] ; (801a050 ) - 8019e94: 881b ldrh r3, [r3, #0] - 8019e96: 1ad3 subs r3, r2, r3 - 8019e98: 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); - 8019e9a: 4b6d ldr r3, [pc, #436] ; (801a050 ) - 8019e9c: 881b ldrh r3, [r3, #0] - 8019e9e: 4619 mov r1, r3 - 8019ea0: 6878 ldr r0, [r7, #4] - 8019ea2: f7fd fda3 bl 80179ec - - /* check that the options fit in the second pbuf */ - if (opt2len > p->next->len) { - 8019ea6: 687b ldr r3, [r7, #4] - 8019ea8: 681b ldr r3, [r3, #0] - 8019eaa: 895b ldrh r3, [r3, #10] - 8019eac: 8a3a ldrh r2, [r7, #16] - 8019eae: 429a cmp r2, r3 - 8019eb0: f200 836e bhi.w 801a590 - TCP_STATS_INC(tcp.lenerr); - goto dropped; - } - - /* remember the pointer to the second part of the options */ - tcphdr_opt2 = (u8_t *)p->next->payload; - 8019eb4: 687b ldr r3, [r7, #4] - 8019eb6: 681b ldr r3, [r3, #0] - 8019eb8: 685b ldr r3, [r3, #4] - 8019eba: 4a64 ldr r2, [pc, #400] ; (801a04c ) - 8019ebc: 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); - 8019ebe: 687b ldr r3, [r7, #4] - 8019ec0: 681b ldr r3, [r3, #0] - 8019ec2: 8a3a ldrh r2, [r7, #16] - 8019ec4: 4611 mov r1, r2 - 8019ec6: 4618 mov r0, r3 - 8019ec8: f7fd fd90 bl 80179ec - p->tot_len = (u16_t)(p->tot_len - opt2len); - 8019ecc: 687b ldr r3, [r7, #4] - 8019ece: 891a ldrh r2, [r3, #8] - 8019ed0: 8a3b ldrh r3, [r7, #16] - 8019ed2: 1ad3 subs r3, r2, r3 - 8019ed4: b29a uxth r2, r3 - 8019ed6: 687b ldr r3, [r7, #4] - 8019ed8: 811a strh r2, [r3, #8] - - LWIP_ASSERT("p->len == 0", p->len == 0); - 8019eda: 687b ldr r3, [r7, #4] - 8019edc: 895b ldrh r3, [r3, #10] - 8019ede: 2b00 cmp r3, #0 - 8019ee0: d005 beq.n 8019eee - 8019ee2: 4b54 ldr r3, [pc, #336] ; (801a034 ) - 8019ee4: 22df movs r2, #223 ; 0xdf - 8019ee6: 495c ldr r1, [pc, #368] ; (801a058 ) - 8019ee8: 4854 ldr r0, [pc, #336] ; (801a03c ) - 8019eea: f007 fd4d bl 8021988 - LWIP_ASSERT("p->tot_len == p->next->tot_len", p->tot_len == p->next->tot_len); - 8019eee: 687b ldr r3, [r7, #4] - 8019ef0: 891a ldrh r2, [r3, #8] - 8019ef2: 687b ldr r3, [r7, #4] - 8019ef4: 681b ldr r3, [r3, #0] - 8019ef6: 891b ldrh r3, [r3, #8] - 8019ef8: 429a cmp r2, r3 - 8019efa: d005 beq.n 8019f08 - 8019efc: 4b4d ldr r3, [pc, #308] ; (801a034 ) - 8019efe: 22e0 movs r2, #224 ; 0xe0 - 8019f00: 4956 ldr r1, [pc, #344] ; (801a05c ) - 8019f02: 484e ldr r0, [pc, #312] ; (801a03c ) - 8019f04: f007 fd40 bl 8021988 - } - - /* Convert fields in TCP header to host byte order. */ - tcphdr->src = lwip_ntohs(tcphdr->src); - 8019f08: 4b4d ldr r3, [pc, #308] ; (801a040 ) - 8019f0a: 681b ldr r3, [r3, #0] - 8019f0c: 881b ldrh r3, [r3, #0] - 8019f0e: b29b uxth r3, r3 - 8019f10: 4a4b ldr r2, [pc, #300] ; (801a040 ) - 8019f12: 6814 ldr r4, [r2, #0] - 8019f14: 4618 mov r0, r3 - 8019f16: f7fc f813 bl 8015f40 - 8019f1a: 4603 mov r3, r0 - 8019f1c: 8023 strh r3, [r4, #0] - tcphdr->dest = lwip_ntohs(tcphdr->dest); - 8019f1e: 4b48 ldr r3, [pc, #288] ; (801a040 ) - 8019f20: 681b ldr r3, [r3, #0] - 8019f22: 885b ldrh r3, [r3, #2] - 8019f24: b29b uxth r3, r3 - 8019f26: 4a46 ldr r2, [pc, #280] ; (801a040 ) - 8019f28: 6814 ldr r4, [r2, #0] - 8019f2a: 4618 mov r0, r3 - 8019f2c: f7fc f808 bl 8015f40 - 8019f30: 4603 mov r3, r0 - 8019f32: 8063 strh r3, [r4, #2] - seqno = tcphdr->seqno = lwip_ntohl(tcphdr->seqno); - 8019f34: 4b42 ldr r3, [pc, #264] ; (801a040 ) - 8019f36: 681b ldr r3, [r3, #0] - 8019f38: 685b ldr r3, [r3, #4] - 8019f3a: 4a41 ldr r2, [pc, #260] ; (801a040 ) - 8019f3c: 6814 ldr r4, [r2, #0] - 8019f3e: 4618 mov r0, r3 - 8019f40: f7fc f813 bl 8015f6a - 8019f44: 4603 mov r3, r0 - 8019f46: 6063 str r3, [r4, #4] - 8019f48: 6863 ldr r3, [r4, #4] - 8019f4a: 4a45 ldr r2, [pc, #276] ; (801a060 ) - 8019f4c: 6013 str r3, [r2, #0] - ackno = tcphdr->ackno = lwip_ntohl(tcphdr->ackno); - 8019f4e: 4b3c ldr r3, [pc, #240] ; (801a040 ) - 8019f50: 681b ldr r3, [r3, #0] - 8019f52: 689b ldr r3, [r3, #8] - 8019f54: 4a3a ldr r2, [pc, #232] ; (801a040 ) - 8019f56: 6814 ldr r4, [r2, #0] - 8019f58: 4618 mov r0, r3 - 8019f5a: f7fc f806 bl 8015f6a - 8019f5e: 4603 mov r3, r0 - 8019f60: 60a3 str r3, [r4, #8] - 8019f62: 68a3 ldr r3, [r4, #8] - 8019f64: 4a3f ldr r2, [pc, #252] ; (801a064 ) - 8019f66: 6013 str r3, [r2, #0] - tcphdr->wnd = lwip_ntohs(tcphdr->wnd); - 8019f68: 4b35 ldr r3, [pc, #212] ; (801a040 ) - 8019f6a: 681b ldr r3, [r3, #0] - 8019f6c: 89db ldrh r3, [r3, #14] - 8019f6e: b29b uxth r3, r3 - 8019f70: 4a33 ldr r2, [pc, #204] ; (801a040 ) - 8019f72: 6814 ldr r4, [r2, #0] - 8019f74: 4618 mov r0, r3 - 8019f76: f7fb ffe3 bl 8015f40 - 8019f7a: 4603 mov r3, r0 - 8019f7c: 81e3 strh r3, [r4, #14] - - flags = TCPH_FLAGS(tcphdr); - 8019f7e: 4b30 ldr r3, [pc, #192] ; (801a040 ) - 8019f80: 681b ldr r3, [r3, #0] - 8019f82: 899b ldrh r3, [r3, #12] - 8019f84: b29b uxth r3, r3 - 8019f86: 4618 mov r0, r3 - 8019f88: f7fb ffda bl 8015f40 - 8019f8c: 4603 mov r3, r0 - 8019f8e: b2db uxtb r3, r3 - 8019f90: f003 033f and.w r3, r3, #63 ; 0x3f - 8019f94: b2da uxtb r2, r3 - 8019f96: 4b34 ldr r3, [pc, #208] ; (801a068 ) - 8019f98: 701a strb r2, [r3, #0] - tcplen = p->tot_len; - 8019f9a: 687b ldr r3, [r7, #4] - 8019f9c: 891a ldrh r2, [r3, #8] - 8019f9e: 4b33 ldr r3, [pc, #204] ; (801a06c ) - 8019fa0: 801a strh r2, [r3, #0] - if (flags & (TCP_FIN | TCP_SYN)) { - 8019fa2: 4b31 ldr r3, [pc, #196] ; (801a068 ) - 8019fa4: 781b ldrb r3, [r3, #0] - 8019fa6: f003 0303 and.w r3, r3, #3 - 8019faa: 2b00 cmp r3, #0 - 8019fac: d00c beq.n 8019fc8 - tcplen++; - 8019fae: 4b2f ldr r3, [pc, #188] ; (801a06c ) - 8019fb0: 881b ldrh r3, [r3, #0] - 8019fb2: 3301 adds r3, #1 - 8019fb4: b29a uxth r2, r3 - 8019fb6: 4b2d ldr r3, [pc, #180] ; (801a06c ) - 8019fb8: 801a strh r2, [r3, #0] - if (tcplen < p->tot_len) { - 8019fba: 687b ldr r3, [r7, #4] - 8019fbc: 891a ldrh r2, [r3, #8] - 8019fbe: 4b2b ldr r3, [pc, #172] ; (801a06c ) - 8019fc0: 881b ldrh r3, [r3, #0] - 8019fc2: 429a cmp r2, r3 - 8019fc4: f200 82e6 bhi.w 801a594 - } - } - - /* Demultiplex an incoming segment. First, we check if it is destined - for an active connection. */ - prev = NULL; - 8019fc8: 2300 movs r3, #0 - 8019fca: 61fb str r3, [r7, #28] - - for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) { - 8019fcc: 4b28 ldr r3, [pc, #160] ; (801a070 ) - 8019fce: 681b ldr r3, [r3, #0] - 8019fd0: 61bb str r3, [r7, #24] - 8019fd2: e09d b.n 801a110 - LWIP_ASSERT("tcp_input: active pcb->state != CLOSED", pcb->state != CLOSED); - 8019fd4: 69bb ldr r3, [r7, #24] - 8019fd6: 7d1b ldrb r3, [r3, #20] - 8019fd8: 2b00 cmp r3, #0 - 8019fda: d105 bne.n 8019fe8 - 8019fdc: 4b15 ldr r3, [pc, #84] ; (801a034 ) - 8019fde: 22fb movs r2, #251 ; 0xfb - 8019fe0: 4924 ldr r1, [pc, #144] ; (801a074 ) - 8019fe2: 4816 ldr r0, [pc, #88] ; (801a03c ) - 8019fe4: f007 fcd0 bl 8021988 - LWIP_ASSERT("tcp_input: active pcb->state != TIME-WAIT", pcb->state != TIME_WAIT); - 8019fe8: 69bb ldr r3, [r7, #24] - 8019fea: 7d1b ldrb r3, [r3, #20] - 8019fec: 2b0a cmp r3, #10 - 8019fee: d105 bne.n 8019ffc - 8019ff0: 4b10 ldr r3, [pc, #64] ; (801a034 ) - 8019ff2: 22fc movs r2, #252 ; 0xfc - 8019ff4: 4920 ldr r1, [pc, #128] ; (801a078 ) - 8019ff6: 4811 ldr r0, [pc, #68] ; (801a03c ) - 8019ff8: f007 fcc6 bl 8021988 - LWIP_ASSERT("tcp_input: active pcb->state != LISTEN", pcb->state != LISTEN); - 8019ffc: 69bb ldr r3, [r7, #24] - 8019ffe: 7d1b ldrb r3, [r3, #20] - 801a000: 2b01 cmp r3, #1 - 801a002: d105 bne.n 801a010 - 801a004: 4b0b ldr r3, [pc, #44] ; (801a034 ) - 801a006: 22fd movs r2, #253 ; 0xfd - 801a008: 491c ldr r1, [pc, #112] ; (801a07c ) - 801a00a: 480c ldr r0, [pc, #48] ; (801a03c ) - 801a00c: f007 fcbc bl 8021988 - - /* check if PCB is bound to specific netif */ - if ((pcb->netif_idx != NETIF_NO_INDEX) && - 801a010: 69bb ldr r3, [r7, #24] - 801a012: 7a1b ldrb r3, [r3, #8] - 801a014: 2b00 cmp r3, #0 - 801a016: d033 beq.n 801a080 - (pcb->netif_idx != netif_get_index(ip_data.current_input_netif))) { - 801a018: 69bb ldr r3, [r7, #24] - 801a01a: 7a1a ldrb r2, [r3, #8] - 801a01c: 4b09 ldr r3, [pc, #36] ; (801a044 ) - 801a01e: 685b ldr r3, [r3, #4] - 801a020: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 - 801a024: 3301 adds r3, #1 - 801a026: b2db uxtb r3, r3 - if ((pcb->netif_idx != NETIF_NO_INDEX) && - 801a028: 429a cmp r2, r3 - 801a02a: d029 beq.n 801a080 - prev = pcb; - 801a02c: 69bb ldr r3, [r7, #24] - 801a02e: 61fb str r3, [r7, #28] - continue; - 801a030: e06b b.n 801a10a - 801a032: bf00 nop - 801a034: 08025338 .word 0x08025338 - 801a038: 0802536c .word 0x0802536c - 801a03c: 08025384 .word 0x08025384 - 801a040: 2401a4ac .word 0x2401a4ac - 801a044: 24013980 .word 0x24013980 - 801a048: 2401a4b0 .word 0x2401a4b0 - 801a04c: 2401a4b4 .word 0x2401a4b4 - 801a050: 2401a4b2 .word 0x2401a4b2 - 801a054: 080253ac .word 0x080253ac - 801a058: 080253bc .word 0x080253bc - 801a05c: 080253c8 .word 0x080253c8 - 801a060: 2401a4bc .word 0x2401a4bc - 801a064: 2401a4c0 .word 0x2401a4c0 - 801a068: 2401a4c8 .word 0x2401a4c8 - 801a06c: 2401a4c6 .word 0x2401a4c6 - 801a070: 2401a48c .word 0x2401a48c - 801a074: 080253e8 .word 0x080253e8 - 801a078: 08025410 .word 0x08025410 - 801a07c: 0802543c .word 0x0802543c - } - - if (pcb->remote_port == tcphdr->src && - 801a080: 69bb ldr r3, [r7, #24] - 801a082: 8b1a ldrh r2, [r3, #24] - 801a084: 4b72 ldr r3, [pc, #456] ; (801a250 ) - 801a086: 681b ldr r3, [r3, #0] - 801a088: 881b ldrh r3, [r3, #0] - 801a08a: b29b uxth r3, r3 - 801a08c: 429a cmp r2, r3 - 801a08e: d13a bne.n 801a106 - pcb->local_port == tcphdr->dest && - 801a090: 69bb ldr r3, [r7, #24] - 801a092: 8ada ldrh r2, [r3, #22] - 801a094: 4b6e ldr r3, [pc, #440] ; (801a250 ) - 801a096: 681b ldr r3, [r3, #0] - 801a098: 885b ldrh r3, [r3, #2] - 801a09a: b29b uxth r3, r3 - if (pcb->remote_port == tcphdr->src && - 801a09c: 429a cmp r2, r3 - 801a09e: d132 bne.n 801a106 - ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) && - 801a0a0: 69bb ldr r3, [r7, #24] - 801a0a2: 685a ldr r2, [r3, #4] - 801a0a4: 4b6b ldr r3, [pc, #428] ; (801a254 ) - 801a0a6: 691b ldr r3, [r3, #16] - pcb->local_port == tcphdr->dest && - 801a0a8: 429a cmp r2, r3 - 801a0aa: d12c bne.n 801a106 - ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) { - 801a0ac: 69bb ldr r3, [r7, #24] - 801a0ae: 681a ldr r2, [r3, #0] - 801a0b0: 4b68 ldr r3, [pc, #416] ; (801a254 ) - 801a0b2: 695b ldr r3, [r3, #20] - ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) && - 801a0b4: 429a cmp r2, r3 - 801a0b6: d126 bne.n 801a106 - /* 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); - 801a0b8: 69bb ldr r3, [r7, #24] - 801a0ba: 68db ldr r3, [r3, #12] - 801a0bc: 69ba ldr r2, [r7, #24] - 801a0be: 429a cmp r2, r3 - 801a0c0: d106 bne.n 801a0d0 - 801a0c2: 4b65 ldr r3, [pc, #404] ; (801a258 ) - 801a0c4: f240 120d movw r2, #269 ; 0x10d - 801a0c8: 4964 ldr r1, [pc, #400] ; (801a25c ) - 801a0ca: 4865 ldr r0, [pc, #404] ; (801a260 ) - 801a0cc: f007 fc5c bl 8021988 - if (prev != NULL) { - 801a0d0: 69fb ldr r3, [r7, #28] - 801a0d2: 2b00 cmp r3, #0 - 801a0d4: d00a beq.n 801a0ec - prev->next = pcb->next; - 801a0d6: 69bb ldr r3, [r7, #24] - 801a0d8: 68da ldr r2, [r3, #12] - 801a0da: 69fb ldr r3, [r7, #28] - 801a0dc: 60da str r2, [r3, #12] - pcb->next = tcp_active_pcbs; - 801a0de: 4b61 ldr r3, [pc, #388] ; (801a264 ) - 801a0e0: 681a ldr r2, [r3, #0] - 801a0e2: 69bb ldr r3, [r7, #24] - 801a0e4: 60da str r2, [r3, #12] - tcp_active_pcbs = pcb; - 801a0e6: 4a5f ldr r2, [pc, #380] ; (801a264 ) - 801a0e8: 69bb ldr r3, [r7, #24] - 801a0ea: 6013 str r3, [r2, #0] - } else { - TCP_STATS_INC(tcp.cachehit); - } - LWIP_ASSERT("tcp_input: pcb->next != pcb (after cache)", pcb->next != pcb); - 801a0ec: 69bb ldr r3, [r7, #24] - 801a0ee: 68db ldr r3, [r3, #12] - 801a0f0: 69ba ldr r2, [r7, #24] - 801a0f2: 429a cmp r2, r3 - 801a0f4: d111 bne.n 801a11a - 801a0f6: 4b58 ldr r3, [pc, #352] ; (801a258 ) - 801a0f8: f240 1215 movw r2, #277 ; 0x115 - 801a0fc: 495a ldr r1, [pc, #360] ; (801a268 ) - 801a0fe: 4858 ldr r0, [pc, #352] ; (801a260 ) - 801a100: f007 fc42 bl 8021988 - break; - 801a104: e009 b.n 801a11a - } - prev = pcb; - 801a106: 69bb ldr r3, [r7, #24] - 801a108: 61fb str r3, [r7, #28] - for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) { - 801a10a: 69bb ldr r3, [r7, #24] - 801a10c: 68db ldr r3, [r3, #12] - 801a10e: 61bb str r3, [r7, #24] - 801a110: 69bb ldr r3, [r7, #24] - 801a112: 2b00 cmp r3, #0 - 801a114: f47f af5e bne.w 8019fd4 - 801a118: e000 b.n 801a11c - break; - 801a11a: bf00 nop - } - - if (pcb == NULL) { - 801a11c: 69bb ldr r3, [r7, #24] - 801a11e: 2b00 cmp r3, #0 - 801a120: f040 80aa bne.w 801a278 - /* 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) { - 801a124: 4b51 ldr r3, [pc, #324] ; (801a26c ) - 801a126: 681b ldr r3, [r3, #0] - 801a128: 61bb str r3, [r7, #24] - 801a12a: e03f b.n 801a1ac - LWIP_ASSERT("tcp_input: TIME-WAIT pcb->state == TIME-WAIT", pcb->state == TIME_WAIT); - 801a12c: 69bb ldr r3, [r7, #24] - 801a12e: 7d1b ldrb r3, [r3, #20] - 801a130: 2b0a cmp r3, #10 - 801a132: d006 beq.n 801a142 - 801a134: 4b48 ldr r3, [pc, #288] ; (801a258 ) - 801a136: f240 121f movw r2, #287 ; 0x11f - 801a13a: 494d ldr r1, [pc, #308] ; (801a270 ) - 801a13c: 4848 ldr r0, [pc, #288] ; (801a260 ) - 801a13e: f007 fc23 bl 8021988 - - /* check if PCB is bound to specific netif */ - if ((pcb->netif_idx != NETIF_NO_INDEX) && - 801a142: 69bb ldr r3, [r7, #24] - 801a144: 7a1b ldrb r3, [r3, #8] - 801a146: 2b00 cmp r3, #0 - 801a148: d009 beq.n 801a15e - (pcb->netif_idx != netif_get_index(ip_data.current_input_netif))) { - 801a14a: 69bb ldr r3, [r7, #24] - 801a14c: 7a1a ldrb r2, [r3, #8] - 801a14e: 4b41 ldr r3, [pc, #260] ; (801a254 ) - 801a150: 685b ldr r3, [r3, #4] - 801a152: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 - 801a156: 3301 adds r3, #1 - 801a158: b2db uxtb r3, r3 - if ((pcb->netif_idx != NETIF_NO_INDEX) && - 801a15a: 429a cmp r2, r3 - 801a15c: d122 bne.n 801a1a4 - continue; - } - - if (pcb->remote_port == tcphdr->src && - 801a15e: 69bb ldr r3, [r7, #24] - 801a160: 8b1a ldrh r2, [r3, #24] - 801a162: 4b3b ldr r3, [pc, #236] ; (801a250 ) - 801a164: 681b ldr r3, [r3, #0] - 801a166: 881b ldrh r3, [r3, #0] - 801a168: b29b uxth r3, r3 - 801a16a: 429a cmp r2, r3 - 801a16c: d11b bne.n 801a1a6 - pcb->local_port == tcphdr->dest && - 801a16e: 69bb ldr r3, [r7, #24] - 801a170: 8ada ldrh r2, [r3, #22] - 801a172: 4b37 ldr r3, [pc, #220] ; (801a250 ) - 801a174: 681b ldr r3, [r3, #0] - 801a176: 885b ldrh r3, [r3, #2] - 801a178: b29b uxth r3, r3 - if (pcb->remote_port == tcphdr->src && - 801a17a: 429a cmp r2, r3 - 801a17c: d113 bne.n 801a1a6 - ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) && - 801a17e: 69bb ldr r3, [r7, #24] - 801a180: 685a ldr r2, [r3, #4] - 801a182: 4b34 ldr r3, [pc, #208] ; (801a254 ) - 801a184: 691b ldr r3, [r3, #16] - pcb->local_port == tcphdr->dest && - 801a186: 429a cmp r2, r3 - 801a188: d10d bne.n 801a1a6 - ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) { - 801a18a: 69bb ldr r3, [r7, #24] - 801a18c: 681a ldr r2, [r3, #0] - 801a18e: 4b31 ldr r3, [pc, #196] ; (801a254 ) - 801a190: 695b ldr r3, [r3, #20] - ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) && - 801a192: 429a cmp r2, r3 - 801a194: d107 bne.n 801a1a6 -#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); - 801a196: 69b8 ldr r0, [r7, #24] - 801a198: f000 fb56 bl 801a848 - } - pbuf_free(p); - 801a19c: 6878 ldr r0, [r7, #4] - 801a19e: f7fd fcab bl 8017af8 - return; - 801a1a2: e1fd b.n 801a5a0 - continue; - 801a1a4: bf00 nop - for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) { - 801a1a6: 69bb ldr r3, [r7, #24] - 801a1a8: 68db ldr r3, [r3, #12] - 801a1aa: 61bb str r3, [r7, #24] - 801a1ac: 69bb ldr r3, [r7, #24] - 801a1ae: 2b00 cmp r3, #0 - 801a1b0: d1bc bne.n 801a12c - } - } - - /* Finally, if we still did not get a match, we check all PCBs that - are LISTENing for incoming connections. */ - prev = NULL; - 801a1b2: 2300 movs r3, #0 - 801a1b4: 61fb str r3, [r7, #28] - for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) { - 801a1b6: 4b2f ldr r3, [pc, #188] ; (801a274 ) - 801a1b8: 681b ldr r3, [r3, #0] - 801a1ba: 617b str r3, [r7, #20] - 801a1bc: e02a b.n 801a214 - /* check if PCB is bound to specific netif */ - if ((lpcb->netif_idx != NETIF_NO_INDEX) && - 801a1be: 697b ldr r3, [r7, #20] - 801a1c0: 7a1b ldrb r3, [r3, #8] - 801a1c2: 2b00 cmp r3, #0 - 801a1c4: d00c beq.n 801a1e0 - (lpcb->netif_idx != netif_get_index(ip_data.current_input_netif))) { - 801a1c6: 697b ldr r3, [r7, #20] - 801a1c8: 7a1a ldrb r2, [r3, #8] - 801a1ca: 4b22 ldr r3, [pc, #136] ; (801a254 ) - 801a1cc: 685b ldr r3, [r3, #4] - 801a1ce: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 - 801a1d2: 3301 adds r3, #1 - 801a1d4: b2db uxtb r3, r3 - if ((lpcb->netif_idx != NETIF_NO_INDEX) && - 801a1d6: 429a cmp r2, r3 - 801a1d8: d002 beq.n 801a1e0 - prev = (struct tcp_pcb *)lpcb; - 801a1da: 697b ldr r3, [r7, #20] - 801a1dc: 61fb str r3, [r7, #28] - continue; - 801a1de: e016 b.n 801a20e - } - - if (lpcb->local_port == tcphdr->dest) { - 801a1e0: 697b ldr r3, [r7, #20] - 801a1e2: 8ada ldrh r2, [r3, #22] - 801a1e4: 4b1a ldr r3, [pc, #104] ; (801a250 ) - 801a1e6: 681b ldr r3, [r3, #0] - 801a1e8: 885b ldrh r3, [r3, #2] - 801a1ea: b29b uxth r3, r3 - 801a1ec: 429a cmp r2, r3 - 801a1ee: d10c bne.n 801a20a - 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())) { - 801a1f0: 697b ldr r3, [r7, #20] - 801a1f2: 681a ldr r2, [r3, #0] - 801a1f4: 4b17 ldr r3, [pc, #92] ; (801a254 ) - 801a1f6: 695b ldr r3, [r3, #20] - 801a1f8: 429a cmp r2, r3 - 801a1fa: d00f beq.n 801a21c - /* found an exact match */ - break; - } else if (ip_addr_isany(&lpcb->local_ip)) { - 801a1fc: 697b ldr r3, [r7, #20] - 801a1fe: 2b00 cmp r3, #0 - 801a200: d00d beq.n 801a21e - 801a202: 697b ldr r3, [r7, #20] - 801a204: 681b ldr r3, [r3, #0] - 801a206: 2b00 cmp r3, #0 - 801a208: d009 beq.n 801a21e - break; -#endif /* SO_REUSE */ - } - } - } - prev = (struct tcp_pcb *)lpcb; - 801a20a: 697b ldr r3, [r7, #20] - 801a20c: 61fb str r3, [r7, #28] - for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) { - 801a20e: 697b ldr r3, [r7, #20] - 801a210: 68db ldr r3, [r3, #12] - 801a212: 617b str r3, [r7, #20] - 801a214: 697b ldr r3, [r7, #20] - 801a216: 2b00 cmp r3, #0 - 801a218: d1d1 bne.n 801a1be - 801a21a: e000 b.n 801a21e - break; - 801a21c: 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) { - 801a21e: 697b ldr r3, [r7, #20] - 801a220: 2b00 cmp r3, #0 - 801a222: d029 beq.n 801a278 - /* 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) { - 801a224: 69fb ldr r3, [r7, #28] - 801a226: 2b00 cmp r3, #0 - 801a228: d00a beq.n 801a240 - ((struct tcp_pcb_listen *)prev)->next = lpcb->next; - 801a22a: 697b ldr r3, [r7, #20] - 801a22c: 68da ldr r2, [r3, #12] - 801a22e: 69fb ldr r3, [r7, #28] - 801a230: 60da str r2, [r3, #12] - /* our successor is the remainder of the listening list */ - lpcb->next = tcp_listen_pcbs.listen_pcbs; - 801a232: 4b10 ldr r3, [pc, #64] ; (801a274 ) - 801a234: 681a ldr r2, [r3, #0] - 801a236: 697b ldr r3, [r7, #20] - 801a238: 60da str r2, [r3, #12] - /* put this listening pcb at the head of the listening list */ - tcp_listen_pcbs.listen_pcbs = lpcb; - 801a23a: 4a0e ldr r2, [pc, #56] ; (801a274 ) - 801a23c: 697b ldr r3, [r7, #20] - 801a23e: 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); - 801a240: 6978 ldr r0, [r7, #20] - 801a242: f000 fa03 bl 801a64c - } - pbuf_free(p); - 801a246: 6878 ldr r0, [r7, #4] - 801a248: f7fd fc56 bl 8017af8 - return; - 801a24c: e1a8 b.n 801a5a0 - 801a24e: bf00 nop - 801a250: 2401a4ac .word 0x2401a4ac - 801a254: 24013980 .word 0x24013980 - 801a258: 08025338 .word 0x08025338 - 801a25c: 08025464 .word 0x08025464 - 801a260: 08025384 .word 0x08025384 - 801a264: 2401a48c .word 0x2401a48c - 801a268: 08025490 .word 0x08025490 - 801a26c: 2401a490 .word 0x2401a490 - 801a270: 080254bc .word 0x080254bc - 801a274: 2401a488 .word 0x2401a488 - tcphdr_opt1len, tcphdr_opt2, p) != ERR_OK) { - pbuf_free(p); - return; - } -#endif - if (pcb != NULL) { - 801a278: 69bb ldr r3, [r7, #24] - 801a27a: 2b00 cmp r3, #0 - 801a27c: f000 8158 beq.w 801a530 -#if TCP_INPUT_DEBUG - tcp_debug_print_state(pcb->state); -#endif /* TCP_INPUT_DEBUG */ - - /* Set up a tcp_seg structure. */ - inseg.next = NULL; - 801a280: 4b95 ldr r3, [pc, #596] ; (801a4d8 ) - 801a282: 2200 movs r2, #0 - 801a284: 601a str r2, [r3, #0] - inseg.len = p->tot_len; - 801a286: 687b ldr r3, [r7, #4] - 801a288: 891a ldrh r2, [r3, #8] - 801a28a: 4b93 ldr r3, [pc, #588] ; (801a4d8 ) - 801a28c: 811a strh r2, [r3, #8] - inseg.p = p; - 801a28e: 4a92 ldr r2, [pc, #584] ; (801a4d8 ) - 801a290: 687b ldr r3, [r7, #4] - 801a292: 6053 str r3, [r2, #4] - inseg.tcphdr = tcphdr; - 801a294: 4b91 ldr r3, [pc, #580] ; (801a4dc ) - 801a296: 681b ldr r3, [r3, #0] - 801a298: 4a8f ldr r2, [pc, #572] ; (801a4d8 ) - 801a29a: 6113 str r3, [r2, #16] - - recv_data = NULL; - 801a29c: 4b90 ldr r3, [pc, #576] ; (801a4e0 ) - 801a29e: 2200 movs r2, #0 - 801a2a0: 601a str r2, [r3, #0] - recv_flags = 0; - 801a2a2: 4b90 ldr r3, [pc, #576] ; (801a4e4 ) - 801a2a4: 2200 movs r2, #0 - 801a2a6: 701a strb r2, [r3, #0] - recv_acked = 0; - 801a2a8: 4b8f ldr r3, [pc, #572] ; (801a4e8 ) - 801a2aa: 2200 movs r2, #0 - 801a2ac: 801a strh r2, [r3, #0] - - if (flags & TCP_PSH) { - 801a2ae: 4b8f ldr r3, [pc, #572] ; (801a4ec ) - 801a2b0: 781b ldrb r3, [r3, #0] - 801a2b2: f003 0308 and.w r3, r3, #8 - 801a2b6: 2b00 cmp r3, #0 - 801a2b8: d006 beq.n 801a2c8 - p->flags |= PBUF_FLAG_PUSH; - 801a2ba: 687b ldr r3, [r7, #4] - 801a2bc: 7b5b ldrb r3, [r3, #13] - 801a2be: f043 0301 orr.w r3, r3, #1 - 801a2c2: b2da uxtb r2, r3 - 801a2c4: 687b ldr r3, [r7, #4] - 801a2c6: 735a strb r2, [r3, #13] - } - - /* If there is data which was previously "refused" by upper layer */ - if (pcb->refused_data != NULL) { - 801a2c8: 69bb ldr r3, [r7, #24] - 801a2ca: 6f9b ldr r3, [r3, #120] ; 0x78 - 801a2cc: 2b00 cmp r3, #0 - 801a2ce: d017 beq.n 801a300 - if ((tcp_process_refused_data(pcb) == ERR_ABRT) || - 801a2d0: 69b8 ldr r0, [r7, #24] - 801a2d2: f7ff f853 bl 801937c - 801a2d6: 4603 mov r3, r0 - 801a2d8: f113 0f0d cmn.w r3, #13 - 801a2dc: d007 beq.n 801a2ee - ((pcb->refused_data != NULL) && (tcplen > 0))) { - 801a2de: 69bb ldr r3, [r7, #24] - 801a2e0: 6f9b ldr r3, [r3, #120] ; 0x78 - if ((tcp_process_refused_data(pcb) == ERR_ABRT) || - 801a2e2: 2b00 cmp r3, #0 - 801a2e4: d00c beq.n 801a300 - ((pcb->refused_data != NULL) && (tcplen > 0))) { - 801a2e6: 4b82 ldr r3, [pc, #520] ; (801a4f0 ) - 801a2e8: 881b ldrh r3, [r3, #0] - 801a2ea: 2b00 cmp r3, #0 - 801a2ec: d008 beq.n 801a300 - /* pcb has been aborted or refused data is still refused and the new - segment contains data */ - if (pcb->rcv_ann_wnd == 0) { - 801a2ee: 69bb ldr r3, [r7, #24] - 801a2f0: 8d5b ldrh r3, [r3, #42] ; 0x2a - 801a2f2: 2b00 cmp r3, #0 - 801a2f4: f040 80e4 bne.w 801a4c0 - /* this is a zero-window probe, we respond to it with current RCV.NXT - and drop the data segment */ - tcp_send_empty_ack(pcb); - 801a2f8: 69b8 ldr r0, [r7, #24] - 801a2fa: f003 fe71 bl 801dfe0 - } - TCP_STATS_INC(tcp.drop); - MIB2_STATS_INC(mib2.tcpinerrs); - goto aborted; - 801a2fe: e0df b.n 801a4c0 - } - } - tcp_input_pcb = pcb; - 801a300: 4a7c ldr r2, [pc, #496] ; (801a4f4 ) - 801a302: 69bb ldr r3, [r7, #24] - 801a304: 6013 str r3, [r2, #0] - err = tcp_process(pcb); - 801a306: 69b8 ldr r0, [r7, #24] - 801a308: f000 fb18 bl 801a93c - 801a30c: 4603 mov r3, r0 - 801a30e: 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) { - 801a310: f997 3013 ldrsb.w r3, [r7, #19] - 801a314: f113 0f0d cmn.w r3, #13 - 801a318: f000 80d4 beq.w 801a4c4 - if (recv_flags & TF_RESET) { - 801a31c: 4b71 ldr r3, [pc, #452] ; (801a4e4 ) - 801a31e: 781b ldrb r3, [r3, #0] - 801a320: f003 0308 and.w r3, r3, #8 - 801a324: 2b00 cmp r3, #0 - 801a326: d015 beq.n 801a354 - /* 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); - 801a328: 69bb ldr r3, [r7, #24] - 801a32a: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 801a32e: 2b00 cmp r3, #0 - 801a330: d008 beq.n 801a344 - 801a332: 69bb ldr r3, [r7, #24] - 801a334: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 801a338: 69ba ldr r2, [r7, #24] - 801a33a: 6912 ldr r2, [r2, #16] - 801a33c: f06f 010d mvn.w r1, #13 - 801a340: 4610 mov r0, r2 - 801a342: 4798 blx r3 - tcp_pcb_remove(&tcp_active_pcbs, pcb); - 801a344: 69b9 ldr r1, [r7, #24] - 801a346: 486c ldr r0, [pc, #432] ; (801a4f8 ) - 801a348: f7ff fbb6 bl 8019ab8 - tcp_free(pcb); - 801a34c: 69b8 ldr r0, [r7, #24] - 801a34e: f7fd fe7f bl 8018050 - 801a352: e0da b.n 801a50a - } else { - err = ERR_OK; - 801a354: 2300 movs r3, #0 - 801a356: 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) { - 801a358: 4b63 ldr r3, [pc, #396] ; (801a4e8 ) - 801a35a: 881b ldrh r3, [r3, #0] - 801a35c: 2b00 cmp r3, #0 - 801a35e: d01d beq.n 801a39c - while (acked > 0) { - acked16 = (u16_t)LWIP_MIN(acked, 0xffffu); - acked -= acked16; -#else - { - acked16 = recv_acked; - 801a360: 4b61 ldr r3, [pc, #388] ; (801a4e8 ) - 801a362: 881b ldrh r3, [r3, #0] - 801a364: 81fb strh r3, [r7, #14] -#endif - TCP_EVENT_SENT(pcb, (u16_t)acked16, err); - 801a366: 69bb ldr r3, [r7, #24] - 801a368: f8d3 3080 ldr.w r3, [r3, #128] ; 0x80 - 801a36c: 2b00 cmp r3, #0 - 801a36e: d00a beq.n 801a386 - 801a370: 69bb ldr r3, [r7, #24] - 801a372: f8d3 3080 ldr.w r3, [r3, #128] ; 0x80 - 801a376: 69ba ldr r2, [r7, #24] - 801a378: 6910 ldr r0, [r2, #16] - 801a37a: 89fa ldrh r2, [r7, #14] - 801a37c: 69b9 ldr r1, [r7, #24] - 801a37e: 4798 blx r3 - 801a380: 4603 mov r3, r0 - 801a382: 74fb strb r3, [r7, #19] - 801a384: e001 b.n 801a38a - 801a386: 2300 movs r3, #0 - 801a388: 74fb strb r3, [r7, #19] - if (err == ERR_ABRT) { - 801a38a: f997 3013 ldrsb.w r3, [r7, #19] - 801a38e: f113 0f0d cmn.w r3, #13 - 801a392: f000 8099 beq.w 801a4c8 - goto aborted; - } - } - recv_acked = 0; - 801a396: 4b54 ldr r3, [pc, #336] ; (801a4e8 ) - 801a398: 2200 movs r2, #0 - 801a39a: 801a strh r2, [r3, #0] - } - if (tcp_input_delayed_close(pcb)) { - 801a39c: 69b8 ldr r0, [r7, #24] - 801a39e: f000 f915 bl 801a5cc - 801a3a2: 4603 mov r3, r0 - 801a3a4: 2b00 cmp r3, #0 - 801a3a6: f040 8091 bne.w 801a4cc -#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) { - 801a3aa: 4b4d ldr r3, [pc, #308] ; (801a4e0 ) - 801a3ac: 681b ldr r3, [r3, #0] - 801a3ae: 2b00 cmp r3, #0 - 801a3b0: d041 beq.n 801a436 -#endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ - - LWIP_ASSERT("pcb->refused_data == NULL", pcb->refused_data == NULL); - 801a3b2: 69bb ldr r3, [r7, #24] - 801a3b4: 6f9b ldr r3, [r3, #120] ; 0x78 - 801a3b6: 2b00 cmp r3, #0 - 801a3b8: d006 beq.n 801a3c8 - 801a3ba: 4b50 ldr r3, [pc, #320] ; (801a4fc ) - 801a3bc: f44f 72f3 mov.w r2, #486 ; 0x1e6 - 801a3c0: 494f ldr r1, [pc, #316] ; (801a500 ) - 801a3c2: 4850 ldr r0, [pc, #320] ; (801a504 ) - 801a3c4: f007 fae0 bl 8021988 - if (pcb->flags & TF_RXCLOSED) { - 801a3c8: 69bb ldr r3, [r7, #24] - 801a3ca: 8b5b ldrh r3, [r3, #26] - 801a3cc: f003 0310 and.w r3, r3, #16 - 801a3d0: 2b00 cmp r3, #0 - 801a3d2: d008 beq.n 801a3e6 - /* received data although already closed -> abort (send RST) to - notify the remote host that not all data has been processed */ - pbuf_free(recv_data); - 801a3d4: 4b42 ldr r3, [pc, #264] ; (801a4e0 ) - 801a3d6: 681b ldr r3, [r3, #0] - 801a3d8: 4618 mov r0, r3 - 801a3da: f7fd fb8d bl 8017af8 -#if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE - if (rest != NULL) { - pbuf_free(rest); - } -#endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ - tcp_abort(pcb); - 801a3de: 69b8 ldr r0, [r7, #24] - 801a3e0: f7fe f97a bl 80186d8 - goto aborted; - 801a3e4: e091 b.n 801a50a - } - - /* Notify application that data has been received. */ - TCP_EVENT_RECV(pcb, recv_data, ERR_OK, err); - 801a3e6: 69bb ldr r3, [r7, #24] - 801a3e8: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 801a3ec: 2b00 cmp r3, #0 - 801a3ee: d00c beq.n 801a40a - 801a3f0: 69bb ldr r3, [r7, #24] - 801a3f2: f8d3 4084 ldr.w r4, [r3, #132] ; 0x84 - 801a3f6: 69bb ldr r3, [r7, #24] - 801a3f8: 6918 ldr r0, [r3, #16] - 801a3fa: 4b39 ldr r3, [pc, #228] ; (801a4e0 ) - 801a3fc: 681a ldr r2, [r3, #0] - 801a3fe: 2300 movs r3, #0 - 801a400: 69b9 ldr r1, [r7, #24] - 801a402: 47a0 blx r4 - 801a404: 4603 mov r3, r0 - 801a406: 74fb strb r3, [r7, #19] - 801a408: e008 b.n 801a41c - 801a40a: 4b35 ldr r3, [pc, #212] ; (801a4e0 ) - 801a40c: 681a ldr r2, [r3, #0] - 801a40e: 2300 movs r3, #0 - 801a410: 69b9 ldr r1, [r7, #24] - 801a412: 2000 movs r0, #0 - 801a414: f7ff f88a bl 801952c - 801a418: 4603 mov r3, r0 - 801a41a: 74fb strb r3, [r7, #19] - if (err == ERR_ABRT) { - 801a41c: f997 3013 ldrsb.w r3, [r7, #19] - 801a420: f113 0f0d cmn.w r3, #13 - 801a424: d054 beq.n 801a4d0 -#endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ - goto aborted; - } - - /* If the upper layer can't receive this data, store it */ - if (err != ERR_OK) { - 801a426: f997 3013 ldrsb.w r3, [r7, #19] - 801a42a: 2b00 cmp r3, #0 - 801a42c: d003 beq.n 801a436 -#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; - 801a42e: 4b2c ldr r3, [pc, #176] ; (801a4e0 ) - 801a430: 681a ldr r2, [r3, #0] - 801a432: 69bb ldr r3, [r7, #24] - 801a434: 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) { - 801a436: 4b2b ldr r3, [pc, #172] ; (801a4e4 ) - 801a438: 781b ldrb r3, [r3, #0] - 801a43a: f003 0320 and.w r3, r3, #32 - 801a43e: 2b00 cmp r3, #0 - 801a440: d031 beq.n 801a4a6 - if (pcb->refused_data != NULL) { - 801a442: 69bb ldr r3, [r7, #24] - 801a444: 6f9b ldr r3, [r3, #120] ; 0x78 - 801a446: 2b00 cmp r3, #0 - 801a448: d009 beq.n 801a45e - /* Delay this if we have refused data. */ - pcb->refused_data->flags |= PBUF_FLAG_TCP_FIN; - 801a44a: 69bb ldr r3, [r7, #24] - 801a44c: 6f9b ldr r3, [r3, #120] ; 0x78 - 801a44e: 7b5a ldrb r2, [r3, #13] - 801a450: 69bb ldr r3, [r7, #24] - 801a452: 6f9b ldr r3, [r3, #120] ; 0x78 - 801a454: f042 0220 orr.w r2, r2, #32 - 801a458: b2d2 uxtb r2, r2 - 801a45a: 735a strb r2, [r3, #13] - 801a45c: e023 b.n 801a4a6 - } 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)) { - 801a45e: 69bb ldr r3, [r7, #24] - 801a460: 8d1b ldrh r3, [r3, #40] ; 0x28 - 801a462: f241 62d0 movw r2, #5840 ; 0x16d0 - 801a466: 4293 cmp r3, r2 - 801a468: d005 beq.n 801a476 - pcb->rcv_wnd++; - 801a46a: 69bb ldr r3, [r7, #24] - 801a46c: 8d1b ldrh r3, [r3, #40] ; 0x28 - 801a46e: 3301 adds r3, #1 - 801a470: b29a uxth r2, r3 - 801a472: 69bb ldr r3, [r7, #24] - 801a474: 851a strh r2, [r3, #40] ; 0x28 - } - TCP_EVENT_CLOSED(pcb, err); - 801a476: 69bb ldr r3, [r7, #24] - 801a478: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 801a47c: 2b00 cmp r3, #0 - 801a47e: d00b beq.n 801a498 - 801a480: 69bb ldr r3, [r7, #24] - 801a482: f8d3 4084 ldr.w r4, [r3, #132] ; 0x84 - 801a486: 69bb ldr r3, [r7, #24] - 801a488: 6918 ldr r0, [r3, #16] - 801a48a: 2300 movs r3, #0 - 801a48c: 2200 movs r2, #0 - 801a48e: 69b9 ldr r1, [r7, #24] - 801a490: 47a0 blx r4 - 801a492: 4603 mov r3, r0 - 801a494: 74fb strb r3, [r7, #19] - 801a496: e001 b.n 801a49c - 801a498: 2300 movs r3, #0 - 801a49a: 74fb strb r3, [r7, #19] - if (err == ERR_ABRT) { - 801a49c: f997 3013 ldrsb.w r3, [r7, #19] - 801a4a0: f113 0f0d cmn.w r3, #13 - 801a4a4: d016 beq.n 801a4d4 - goto aborted; - } - } - } - - tcp_input_pcb = NULL; - 801a4a6: 4b13 ldr r3, [pc, #76] ; (801a4f4 ) - 801a4a8: 2200 movs r2, #0 - 801a4aa: 601a str r2, [r3, #0] - if (tcp_input_delayed_close(pcb)) { - 801a4ac: 69b8 ldr r0, [r7, #24] - 801a4ae: f000 f88d bl 801a5cc - 801a4b2: 4603 mov r3, r0 - 801a4b4: 2b00 cmp r3, #0 - 801a4b6: d127 bne.n 801a508 - goto aborted; - } - /* Try to send something out. */ - tcp_output(pcb); - 801a4b8: 69b8 ldr r0, [r7, #24] - 801a4ba: f002 ff7f bl 801d3bc - 801a4be: e024 b.n 801a50a - goto aborted; - 801a4c0: bf00 nop - 801a4c2: e022 b.n 801a50a -#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: - 801a4c4: bf00 nop - 801a4c6: e020 b.n 801a50a - goto aborted; - 801a4c8: bf00 nop - 801a4ca: e01e b.n 801a50a - goto aborted; - 801a4cc: bf00 nop - 801a4ce: e01c b.n 801a50a - goto aborted; - 801a4d0: bf00 nop - 801a4d2: e01a b.n 801a50a - goto aborted; - 801a4d4: bf00 nop - 801a4d6: e018 b.n 801a50a - 801a4d8: 2401a498 .word 0x2401a498 - 801a4dc: 2401a4ac .word 0x2401a4ac - 801a4e0: 2401a4cc .word 0x2401a4cc - 801a4e4: 2401a4c9 .word 0x2401a4c9 - 801a4e8: 2401a4c4 .word 0x2401a4c4 - 801a4ec: 2401a4c8 .word 0x2401a4c8 - 801a4f0: 2401a4c6 .word 0x2401a4c6 - 801a4f4: 2401a4d0 .word 0x2401a4d0 - 801a4f8: 2401a48c .word 0x2401a48c - 801a4fc: 08025338 .word 0x08025338 - 801a500: 080254ec .word 0x080254ec - 801a504: 08025384 .word 0x08025384 - goto aborted; - 801a508: bf00 nop - tcp_input_pcb = NULL; - 801a50a: 4b27 ldr r3, [pc, #156] ; (801a5a8 ) - 801a50c: 2200 movs r2, #0 - 801a50e: 601a str r2, [r3, #0] - recv_data = NULL; - 801a510: 4b26 ldr r3, [pc, #152] ; (801a5ac ) - 801a512: 2200 movs r2, #0 - 801a514: 601a str r2, [r3, #0] - - /* give up our reference to inseg.p */ - if (inseg.p != NULL) { - 801a516: 4b26 ldr r3, [pc, #152] ; (801a5b0 ) - 801a518: 685b ldr r3, [r3, #4] - 801a51a: 2b00 cmp r3, #0 - 801a51c: d03f beq.n 801a59e - pbuf_free(inseg.p); - 801a51e: 4b24 ldr r3, [pc, #144] ; (801a5b0 ) - 801a520: 685b ldr r3, [r3, #4] - 801a522: 4618 mov r0, r3 - 801a524: f7fd fae8 bl 8017af8 - inseg.p = NULL; - 801a528: 4b21 ldr r3, [pc, #132] ; (801a5b0 ) - 801a52a: 2200 movs r2, #0 - 801a52c: 605a str r2, [r3, #4] - pbuf_free(p); - } - - LWIP_ASSERT("tcp_input: tcp_pcbs_sane()", tcp_pcbs_sane()); - PERF_STOP("tcp_input"); - return; - 801a52e: e036 b.n 801a59e - if (!(TCPH_FLAGS(tcphdr) & TCP_RST)) { - 801a530: 4b20 ldr r3, [pc, #128] ; (801a5b4 ) - 801a532: 681b ldr r3, [r3, #0] - 801a534: 899b ldrh r3, [r3, #12] - 801a536: b29b uxth r3, r3 - 801a538: 4618 mov r0, r3 - 801a53a: f7fb fd01 bl 8015f40 - 801a53e: 4603 mov r3, r0 - 801a540: b2db uxtb r3, r3 - 801a542: f003 0304 and.w r3, r3, #4 - 801a546: 2b00 cmp r3, #0 - 801a548: d118 bne.n 801a57c - tcp_rst(NULL, ackno, seqno + tcplen, ip_current_dest_addr(), - 801a54a: 4b1b ldr r3, [pc, #108] ; (801a5b8 ) - 801a54c: 6819 ldr r1, [r3, #0] - 801a54e: 4b1b ldr r3, [pc, #108] ; (801a5bc ) - 801a550: 881b ldrh r3, [r3, #0] - 801a552: 461a mov r2, r3 - 801a554: 4b1a ldr r3, [pc, #104] ; (801a5c0 ) - 801a556: 681b ldr r3, [r3, #0] - 801a558: 18d0 adds r0, r2, r3 - ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 801a55a: 4b16 ldr r3, [pc, #88] ; (801a5b4 ) - 801a55c: 681b ldr r3, [r3, #0] - tcp_rst(NULL, ackno, seqno + tcplen, ip_current_dest_addr(), - 801a55e: 885b ldrh r3, [r3, #2] - 801a560: b29b uxth r3, r3 - ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 801a562: 4a14 ldr r2, [pc, #80] ; (801a5b4 ) - 801a564: 6812 ldr r2, [r2, #0] - tcp_rst(NULL, ackno, seqno + tcplen, ip_current_dest_addr(), - 801a566: 8812 ldrh r2, [r2, #0] - 801a568: b292 uxth r2, r2 - 801a56a: 9202 str r2, [sp, #8] - 801a56c: 9301 str r3, [sp, #4] - 801a56e: 4b15 ldr r3, [pc, #84] ; (801a5c4 ) - 801a570: 9300 str r3, [sp, #0] - 801a572: 4b15 ldr r3, [pc, #84] ; (801a5c8 ) - 801a574: 4602 mov r2, r0 - 801a576: 2000 movs r0, #0 - 801a578: f003 fce0 bl 801df3c - pbuf_free(p); - 801a57c: 6878 ldr r0, [r7, #4] - 801a57e: f7fd fabb bl 8017af8 - return; - 801a582: e00c b.n 801a59e - goto dropped; - 801a584: bf00 nop - 801a586: e006 b.n 801a596 - goto dropped; - 801a588: bf00 nop - 801a58a: e004 b.n 801a596 - goto dropped; - 801a58c: bf00 nop - 801a58e: e002 b.n 801a596 - goto dropped; - 801a590: bf00 nop - 801a592: e000 b.n 801a596 - goto dropped; - 801a594: bf00 nop -dropped: - TCP_STATS_INC(tcp.drop); - MIB2_STATS_INC(mib2.tcpinerrs); - pbuf_free(p); - 801a596: 6878 ldr r0, [r7, #4] - 801a598: f7fd faae bl 8017af8 - 801a59c: e000 b.n 801a5a0 - return; - 801a59e: bf00 nop -} - 801a5a0: 3724 adds r7, #36 ; 0x24 - 801a5a2: 46bd mov sp, r7 - 801a5a4: bd90 pop {r4, r7, pc} - 801a5a6: bf00 nop - 801a5a8: 2401a4d0 .word 0x2401a4d0 - 801a5ac: 2401a4cc .word 0x2401a4cc - 801a5b0: 2401a498 .word 0x2401a498 - 801a5b4: 2401a4ac .word 0x2401a4ac - 801a5b8: 2401a4c0 .word 0x2401a4c0 - 801a5bc: 2401a4c6 .word 0x2401a4c6 - 801a5c0: 2401a4bc .word 0x2401a4bc - 801a5c4: 24013990 .word 0x24013990 - 801a5c8: 24013994 .word 0x24013994 - -0801a5cc : - * any more. - * @returns 1 if the pcb has been closed and deallocated, 0 otherwise - */ -static int -tcp_input_delayed_close(struct tcp_pcb *pcb) -{ - 801a5cc: b580 push {r7, lr} - 801a5ce: b082 sub sp, #8 - 801a5d0: af00 add r7, sp, #0 - 801a5d2: 6078 str r0, [r7, #4] - LWIP_ASSERT("tcp_input_delayed_close: invalid pcb", pcb != NULL); - 801a5d4: 687b ldr r3, [r7, #4] - 801a5d6: 2b00 cmp r3, #0 - 801a5d8: d106 bne.n 801a5e8 - 801a5da: 4b17 ldr r3, [pc, #92] ; (801a638 ) - 801a5dc: f240 225a movw r2, #602 ; 0x25a - 801a5e0: 4916 ldr r1, [pc, #88] ; (801a63c ) - 801a5e2: 4817 ldr r0, [pc, #92] ; (801a640 ) - 801a5e4: f007 f9d0 bl 8021988 - - if (recv_flags & TF_CLOSED) { - 801a5e8: 4b16 ldr r3, [pc, #88] ; (801a644 ) - 801a5ea: 781b ldrb r3, [r3, #0] - 801a5ec: f003 0310 and.w r3, r3, #16 - 801a5f0: 2b00 cmp r3, #0 - 801a5f2: d01c beq.n 801a62e - /* The connection has been closed and we will deallocate the - PCB. */ - if (!(pcb->flags & TF_RXCLOSED)) { - 801a5f4: 687b ldr r3, [r7, #4] - 801a5f6: 8b5b ldrh r3, [r3, #26] - 801a5f8: f003 0310 and.w r3, r3, #16 - 801a5fc: 2b00 cmp r3, #0 - 801a5fe: d10d bne.n 801a61c - /* 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); - 801a600: 687b ldr r3, [r7, #4] - 801a602: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 801a606: 2b00 cmp r3, #0 - 801a608: d008 beq.n 801a61c - 801a60a: 687b ldr r3, [r7, #4] - 801a60c: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 801a610: 687a ldr r2, [r7, #4] - 801a612: 6912 ldr r2, [r2, #16] - 801a614: f06f 010e mvn.w r1, #14 - 801a618: 4610 mov r0, r2 - 801a61a: 4798 blx r3 - } - tcp_pcb_remove(&tcp_active_pcbs, pcb); - 801a61c: 6879 ldr r1, [r7, #4] - 801a61e: 480a ldr r0, [pc, #40] ; (801a648 ) - 801a620: f7ff fa4a bl 8019ab8 - tcp_free(pcb); - 801a624: 6878 ldr r0, [r7, #4] - 801a626: f7fd fd13 bl 8018050 - return 1; - 801a62a: 2301 movs r3, #1 - 801a62c: e000 b.n 801a630 - } - return 0; - 801a62e: 2300 movs r3, #0 -} - 801a630: 4618 mov r0, r3 - 801a632: 3708 adds r7, #8 - 801a634: 46bd mov sp, r7 - 801a636: bd80 pop {r7, pc} - 801a638: 08025338 .word 0x08025338 - 801a63c: 08025508 .word 0x08025508 - 801a640: 08025384 .word 0x08025384 - 801a644: 2401a4c9 .word 0x2401a4c9 - 801a648: 2401a48c .word 0x2401a48c - -0801a64c : - * @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) -{ - 801a64c: b590 push {r4, r7, lr} - 801a64e: b08b sub sp, #44 ; 0x2c - 801a650: af04 add r7, sp, #16 - 801a652: 6078 str r0, [r7, #4] - struct tcp_pcb *npcb; - u32_t iss; - err_t rc; - - if (flags & TCP_RST) { - 801a654: 4b6f ldr r3, [pc, #444] ; (801a814 ) - 801a656: 781b ldrb r3, [r3, #0] - 801a658: f003 0304 and.w r3, r3, #4 - 801a65c: 2b00 cmp r3, #0 - 801a65e: f040 80d2 bne.w 801a806 - /* An incoming RST should be ignored. Return. */ - return; - } - - LWIP_ASSERT("tcp_listen_input: invalid pcb", pcb != NULL); - 801a662: 687b ldr r3, [r7, #4] - 801a664: 2b00 cmp r3, #0 - 801a666: d106 bne.n 801a676 - 801a668: 4b6b ldr r3, [pc, #428] ; (801a818 ) - 801a66a: f240 2281 movw r2, #641 ; 0x281 - 801a66e: 496b ldr r1, [pc, #428] ; (801a81c ) - 801a670: 486b ldr r0, [pc, #428] ; (801a820 ) - 801a672: f007 f989 bl 8021988 - - /* In the LISTEN state, we check for incoming SYN segments, - creates a new PCB, and responds with a SYN|ACK. */ - if (flags & TCP_ACK) { - 801a676: 4b67 ldr r3, [pc, #412] ; (801a814 ) - 801a678: 781b ldrb r3, [r3, #0] - 801a67a: f003 0310 and.w r3, r3, #16 - 801a67e: 2b00 cmp r3, #0 - 801a680: d019 beq.n 801a6b6 - /* 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(), - 801a682: 4b68 ldr r3, [pc, #416] ; (801a824 ) - 801a684: 6819 ldr r1, [r3, #0] - 801a686: 4b68 ldr r3, [pc, #416] ; (801a828 ) - 801a688: 881b ldrh r3, [r3, #0] - 801a68a: 461a mov r2, r3 - 801a68c: 4b67 ldr r3, [pc, #412] ; (801a82c ) - 801a68e: 681b ldr r3, [r3, #0] - 801a690: 18d0 adds r0, r2, r3 - ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 801a692: 4b67 ldr r3, [pc, #412] ; (801a830 ) - 801a694: 681b ldr r3, [r3, #0] - tcp_rst((const struct tcp_pcb *)pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 801a696: 885b ldrh r3, [r3, #2] - 801a698: b29b uxth r3, r3 - ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 801a69a: 4a65 ldr r2, [pc, #404] ; (801a830 ) - 801a69c: 6812 ldr r2, [r2, #0] - tcp_rst((const struct tcp_pcb *)pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 801a69e: 8812 ldrh r2, [r2, #0] - 801a6a0: b292 uxth r2, r2 - 801a6a2: 9202 str r2, [sp, #8] - 801a6a4: 9301 str r3, [sp, #4] - 801a6a6: 4b63 ldr r3, [pc, #396] ; (801a834 ) - 801a6a8: 9300 str r3, [sp, #0] - 801a6aa: 4b63 ldr r3, [pc, #396] ; (801a838 ) - 801a6ac: 4602 mov r2, r0 - 801a6ae: 6878 ldr r0, [r7, #4] - 801a6b0: f003 fc44 bl 801df3c - tcp_abandon(npcb, 0); - return; - } - tcp_output(npcb); - } - return; - 801a6b4: e0a9 b.n 801a80a - } else if (flags & TCP_SYN) { - 801a6b6: 4b57 ldr r3, [pc, #348] ; (801a814 ) - 801a6b8: 781b ldrb r3, [r3, #0] - 801a6ba: f003 0302 and.w r3, r3, #2 - 801a6be: 2b00 cmp r3, #0 - 801a6c0: f000 80a3 beq.w 801a80a - npcb = tcp_alloc(pcb->prio); - 801a6c4: 687b ldr r3, [r7, #4] - 801a6c6: 7d5b ldrb r3, [r3, #21] - 801a6c8: 4618 mov r0, r3 - 801a6ca: f7ff f853 bl 8019774 - 801a6ce: 6178 str r0, [r7, #20] - if (npcb == NULL) { - 801a6d0: 697b ldr r3, [r7, #20] - 801a6d2: 2b00 cmp r3, #0 - 801a6d4: d111 bne.n 801a6fa - TCP_EVENT_ACCEPT(pcb, NULL, pcb->callback_arg, ERR_MEM, err); - 801a6d6: 687b ldr r3, [r7, #4] - 801a6d8: 699b ldr r3, [r3, #24] - 801a6da: 2b00 cmp r3, #0 - 801a6dc: d00a beq.n 801a6f4 - 801a6de: 687b ldr r3, [r7, #4] - 801a6e0: 699b ldr r3, [r3, #24] - 801a6e2: 687a ldr r2, [r7, #4] - 801a6e4: 6910 ldr r0, [r2, #16] - 801a6e6: f04f 32ff mov.w r2, #4294967295 - 801a6ea: 2100 movs r1, #0 - 801a6ec: 4798 blx r3 - 801a6ee: 4603 mov r3, r0 - 801a6f0: 73bb strb r3, [r7, #14] - return; - 801a6f2: e08b b.n 801a80c - TCP_EVENT_ACCEPT(pcb, NULL, pcb->callback_arg, ERR_MEM, err); - 801a6f4: 23f0 movs r3, #240 ; 0xf0 - 801a6f6: 73bb strb r3, [r7, #14] - return; - 801a6f8: e088 b.n 801a80c - ip_addr_copy(npcb->local_ip, *ip_current_dest_addr()); - 801a6fa: 4b50 ldr r3, [pc, #320] ; (801a83c ) - 801a6fc: 695a ldr r2, [r3, #20] - 801a6fe: 697b ldr r3, [r7, #20] - 801a700: 601a str r2, [r3, #0] - ip_addr_copy(npcb->remote_ip, *ip_current_src_addr()); - 801a702: 4b4e ldr r3, [pc, #312] ; (801a83c ) - 801a704: 691a ldr r2, [r3, #16] - 801a706: 697b ldr r3, [r7, #20] - 801a708: 605a str r2, [r3, #4] - npcb->local_port = pcb->local_port; - 801a70a: 687b ldr r3, [r7, #4] - 801a70c: 8ada ldrh r2, [r3, #22] - 801a70e: 697b ldr r3, [r7, #20] - 801a710: 82da strh r2, [r3, #22] - npcb->remote_port = tcphdr->src; - 801a712: 4b47 ldr r3, [pc, #284] ; (801a830 ) - 801a714: 681b ldr r3, [r3, #0] - 801a716: 881b ldrh r3, [r3, #0] - 801a718: b29a uxth r2, r3 - 801a71a: 697b ldr r3, [r7, #20] - 801a71c: 831a strh r2, [r3, #24] - npcb->state = SYN_RCVD; - 801a71e: 697b ldr r3, [r7, #20] - 801a720: 2203 movs r2, #3 - 801a722: 751a strb r2, [r3, #20] - npcb->rcv_nxt = seqno + 1; - 801a724: 4b41 ldr r3, [pc, #260] ; (801a82c ) - 801a726: 681b ldr r3, [r3, #0] - 801a728: 1c5a adds r2, r3, #1 - 801a72a: 697b ldr r3, [r7, #20] - 801a72c: 625a str r2, [r3, #36] ; 0x24 - npcb->rcv_ann_right_edge = npcb->rcv_nxt; - 801a72e: 697b ldr r3, [r7, #20] - 801a730: 6a5a ldr r2, [r3, #36] ; 0x24 - 801a732: 697b ldr r3, [r7, #20] - 801a734: 62da str r2, [r3, #44] ; 0x2c - iss = tcp_next_iss(npcb); - 801a736: 6978 ldr r0, [r7, #20] - 801a738: f7ff fa52 bl 8019be0 - 801a73c: 6138 str r0, [r7, #16] - npcb->snd_wl2 = iss; - 801a73e: 697b ldr r3, [r7, #20] - 801a740: 693a ldr r2, [r7, #16] - 801a742: 659a str r2, [r3, #88] ; 0x58 - npcb->snd_nxt = iss; - 801a744: 697b ldr r3, [r7, #20] - 801a746: 693a ldr r2, [r7, #16] - 801a748: 651a str r2, [r3, #80] ; 0x50 - npcb->lastack = iss; - 801a74a: 697b ldr r3, [r7, #20] - 801a74c: 693a ldr r2, [r7, #16] - 801a74e: 645a str r2, [r3, #68] ; 0x44 - npcb->snd_lbb = iss; - 801a750: 697b ldr r3, [r7, #20] - 801a752: 693a ldr r2, [r7, #16] - 801a754: 65da str r2, [r3, #92] ; 0x5c - npcb->snd_wl1 = seqno - 1;/* initialise to seqno-1 to force window update */ - 801a756: 4b35 ldr r3, [pc, #212] ; (801a82c ) - 801a758: 681b ldr r3, [r3, #0] - 801a75a: 1e5a subs r2, r3, #1 - 801a75c: 697b ldr r3, [r7, #20] - 801a75e: 655a str r2, [r3, #84] ; 0x54 - npcb->callback_arg = pcb->callback_arg; - 801a760: 687b ldr r3, [r7, #4] - 801a762: 691a ldr r2, [r3, #16] - 801a764: 697b ldr r3, [r7, #20] - 801a766: 611a str r2, [r3, #16] - npcb->listener = pcb; - 801a768: 697b ldr r3, [r7, #20] - 801a76a: 687a ldr r2, [r7, #4] - 801a76c: 67da str r2, [r3, #124] ; 0x7c - npcb->so_options = pcb->so_options & SOF_INHERITED; - 801a76e: 687b ldr r3, [r7, #4] - 801a770: 7a5b ldrb r3, [r3, #9] - 801a772: f003 030c and.w r3, r3, #12 - 801a776: b2da uxtb r2, r3 - 801a778: 697b ldr r3, [r7, #20] - 801a77a: 725a strb r2, [r3, #9] - npcb->netif_idx = pcb->netif_idx; - 801a77c: 687b ldr r3, [r7, #4] - 801a77e: 7a1a ldrb r2, [r3, #8] - 801a780: 697b ldr r3, [r7, #20] - 801a782: 721a strb r2, [r3, #8] - TCP_REG_ACTIVE(npcb); - 801a784: 4b2e ldr r3, [pc, #184] ; (801a840 ) - 801a786: 681a ldr r2, [r3, #0] - 801a788: 697b ldr r3, [r7, #20] - 801a78a: 60da str r2, [r3, #12] - 801a78c: 4a2c ldr r2, [pc, #176] ; (801a840 ) - 801a78e: 697b ldr r3, [r7, #20] - 801a790: 6013 str r3, [r2, #0] - 801a792: f003 fd95 bl 801e2c0 - 801a796: 4b2b ldr r3, [pc, #172] ; (801a844 ) - 801a798: 2201 movs r2, #1 - 801a79a: 701a strb r2, [r3, #0] - tcp_parseopt(npcb); - 801a79c: 6978 ldr r0, [r7, #20] - 801a79e: f001 fd8f bl 801c2c0 - npcb->snd_wnd = tcphdr->wnd; - 801a7a2: 4b23 ldr r3, [pc, #140] ; (801a830 ) - 801a7a4: 681b ldr r3, [r3, #0] - 801a7a6: 89db ldrh r3, [r3, #14] - 801a7a8: b29a uxth r2, r3 - 801a7aa: 697b ldr r3, [r7, #20] - 801a7ac: f8a3 2060 strh.w r2, [r3, #96] ; 0x60 - npcb->snd_wnd_max = npcb->snd_wnd; - 801a7b0: 697b ldr r3, [r7, #20] - 801a7b2: f8b3 2060 ldrh.w r2, [r3, #96] ; 0x60 - 801a7b6: 697b ldr r3, [r7, #20] - 801a7b8: f8a3 2062 strh.w r2, [r3, #98] ; 0x62 - npcb->mss = tcp_eff_send_mss(npcb->mss, &npcb->local_ip, &npcb->remote_ip); - 801a7bc: 697b ldr r3, [r7, #20] - 801a7be: 8e5c ldrh r4, [r3, #50] ; 0x32 - 801a7c0: 697b ldr r3, [r7, #20] - 801a7c2: 3304 adds r3, #4 - 801a7c4: 4618 mov r0, r3 - 801a7c6: f005 fb95 bl 801fef4 - 801a7ca: 4601 mov r1, r0 - 801a7cc: 697b ldr r3, [r7, #20] - 801a7ce: 3304 adds r3, #4 - 801a7d0: 461a mov r2, r3 - 801a7d2: 4620 mov r0, r4 - 801a7d4: f7ff fa2a bl 8019c2c - 801a7d8: 4603 mov r3, r0 - 801a7da: 461a mov r2, r3 - 801a7dc: 697b ldr r3, [r7, #20] - 801a7de: 865a strh r2, [r3, #50] ; 0x32 - rc = tcp_enqueue_flags(npcb, TCP_SYN | TCP_ACK); - 801a7e0: 2112 movs r1, #18 - 801a7e2: 6978 ldr r0, [r7, #20] - 801a7e4: f002 fcfc bl 801d1e0 - 801a7e8: 4603 mov r3, r0 - 801a7ea: 73fb strb r3, [r7, #15] - if (rc != ERR_OK) { - 801a7ec: f997 300f ldrsb.w r3, [r7, #15] - 801a7f0: 2b00 cmp r3, #0 - 801a7f2: d004 beq.n 801a7fe - tcp_abandon(npcb, 0); - 801a7f4: 2100 movs r1, #0 - 801a7f6: 6978 ldr r0, [r7, #20] - 801a7f8: f7fd feb0 bl 801855c - return; - 801a7fc: e006 b.n 801a80c - tcp_output(npcb); - 801a7fe: 6978 ldr r0, [r7, #20] - 801a800: f002 fddc bl 801d3bc - return; - 801a804: e001 b.n 801a80a - return; - 801a806: bf00 nop - 801a808: e000 b.n 801a80c - return; - 801a80a: bf00 nop -} - 801a80c: 371c adds r7, #28 - 801a80e: 46bd mov sp, r7 - 801a810: bd90 pop {r4, r7, pc} - 801a812: bf00 nop - 801a814: 2401a4c8 .word 0x2401a4c8 - 801a818: 08025338 .word 0x08025338 - 801a81c: 08025530 .word 0x08025530 - 801a820: 08025384 .word 0x08025384 - 801a824: 2401a4c0 .word 0x2401a4c0 - 801a828: 2401a4c6 .word 0x2401a4c6 - 801a82c: 2401a4bc .word 0x2401a4bc - 801a830: 2401a4ac .word 0x2401a4ac - 801a834: 24013990 .word 0x24013990 - 801a838: 24013994 .word 0x24013994 - 801a83c: 24013980 .word 0x24013980 - 801a840: 2401a48c .word 0x2401a48c - 801a844: 2401a494 .word 0x2401a494 - -0801a848 : - * @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) -{ - 801a848: b580 push {r7, lr} - 801a84a: b086 sub sp, #24 - 801a84c: af04 add r7, sp, #16 - 801a84e: 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) { - 801a850: 4b2f ldr r3, [pc, #188] ; (801a910 ) - 801a852: 781b ldrb r3, [r3, #0] - 801a854: f003 0304 and.w r3, r3, #4 - 801a858: 2b00 cmp r3, #0 - 801a85a: d153 bne.n 801a904 - return; - } - - LWIP_ASSERT("tcp_timewait_input: invalid pcb", pcb != NULL); - 801a85c: 687b ldr r3, [r7, #4] - 801a85e: 2b00 cmp r3, #0 - 801a860: d106 bne.n 801a870 - 801a862: 4b2c ldr r3, [pc, #176] ; (801a914 ) - 801a864: f240 22ee movw r2, #750 ; 0x2ee - 801a868: 492b ldr r1, [pc, #172] ; (801a918 ) - 801a86a: 482c ldr r0, [pc, #176] ; (801a91c ) - 801a86c: f007 f88c bl 8021988 - - /* - fourth, check the SYN bit, */ - if (flags & TCP_SYN) { - 801a870: 4b27 ldr r3, [pc, #156] ; (801a910 ) - 801a872: 781b ldrb r3, [r3, #0] - 801a874: f003 0302 and.w r3, r3, #2 - 801a878: 2b00 cmp r3, #0 - 801a87a: d02a beq.n 801a8d2 - /* 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)) { - 801a87c: 4b28 ldr r3, [pc, #160] ; (801a920 ) - 801a87e: 681a ldr r2, [r3, #0] - 801a880: 687b ldr r3, [r7, #4] - 801a882: 6a5b ldr r3, [r3, #36] ; 0x24 - 801a884: 1ad3 subs r3, r2, r3 - 801a886: 2b00 cmp r3, #0 - 801a888: db2d blt.n 801a8e6 - 801a88a: 4b25 ldr r3, [pc, #148] ; (801a920 ) - 801a88c: 681a ldr r2, [r3, #0] - 801a88e: 687b ldr r3, [r7, #4] - 801a890: 6a5b ldr r3, [r3, #36] ; 0x24 - 801a892: 6879 ldr r1, [r7, #4] - 801a894: 8d09 ldrh r1, [r1, #40] ; 0x28 - 801a896: 440b add r3, r1 - 801a898: 1ad3 subs r3, r2, r3 - 801a89a: 2b00 cmp r3, #0 - 801a89c: dc23 bgt.n 801a8e6 - /* If the SYN is in the window it is an error, send a reset */ - tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 801a89e: 4b21 ldr r3, [pc, #132] ; (801a924 ) - 801a8a0: 6819 ldr r1, [r3, #0] - 801a8a2: 4b21 ldr r3, [pc, #132] ; (801a928 ) - 801a8a4: 881b ldrh r3, [r3, #0] - 801a8a6: 461a mov r2, r3 - 801a8a8: 4b1d ldr r3, [pc, #116] ; (801a920 ) - 801a8aa: 681b ldr r3, [r3, #0] - 801a8ac: 18d0 adds r0, r2, r3 - ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 801a8ae: 4b1f ldr r3, [pc, #124] ; (801a92c ) - 801a8b0: 681b ldr r3, [r3, #0] - tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 801a8b2: 885b ldrh r3, [r3, #2] - 801a8b4: b29b uxth r3, r3 - ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 801a8b6: 4a1d ldr r2, [pc, #116] ; (801a92c ) - 801a8b8: 6812 ldr r2, [r2, #0] - tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 801a8ba: 8812 ldrh r2, [r2, #0] - 801a8bc: b292 uxth r2, r2 - 801a8be: 9202 str r2, [sp, #8] - 801a8c0: 9301 str r3, [sp, #4] - 801a8c2: 4b1b ldr r3, [pc, #108] ; (801a930 ) - 801a8c4: 9300 str r3, [sp, #0] - 801a8c6: 4b1b ldr r3, [pc, #108] ; (801a934 ) - 801a8c8: 4602 mov r2, r0 - 801a8ca: 6878 ldr r0, [r7, #4] - 801a8cc: f003 fb36 bl 801df3c - return; - 801a8d0: e01b b.n 801a90a - } - } else if (flags & TCP_FIN) { - 801a8d2: 4b0f ldr r3, [pc, #60] ; (801a910 ) - 801a8d4: 781b ldrb r3, [r3, #0] - 801a8d6: f003 0301 and.w r3, r3, #1 - 801a8da: 2b00 cmp r3, #0 - 801a8dc: d003 beq.n 801a8e6 - /* - eighth, check the FIN bit: Remain in the TIME-WAIT state. - Restart the 2 MSL time-wait timeout.*/ - pcb->tmr = tcp_ticks; - 801a8de: 4b16 ldr r3, [pc, #88] ; (801a938 ) - 801a8e0: 681a ldr r2, [r3, #0] - 801a8e2: 687b ldr r3, [r7, #4] - 801a8e4: 621a str r2, [r3, #32] - } - - if ((tcplen > 0)) { - 801a8e6: 4b10 ldr r3, [pc, #64] ; (801a928 ) - 801a8e8: 881b ldrh r3, [r3, #0] - 801a8ea: 2b00 cmp r3, #0 - 801a8ec: d00c beq.n 801a908 - /* Acknowledge data, FIN or out-of-window SYN */ - tcp_ack_now(pcb); - 801a8ee: 687b ldr r3, [r7, #4] - 801a8f0: 8b5b ldrh r3, [r3, #26] - 801a8f2: f043 0302 orr.w r3, r3, #2 - 801a8f6: b29a uxth r2, r3 - 801a8f8: 687b ldr r3, [r7, #4] - 801a8fa: 835a strh r2, [r3, #26] - tcp_output(pcb); - 801a8fc: 6878 ldr r0, [r7, #4] - 801a8fe: f002 fd5d bl 801d3bc - } - return; - 801a902: e001 b.n 801a908 - return; - 801a904: bf00 nop - 801a906: e000 b.n 801a90a - return; - 801a908: bf00 nop -} - 801a90a: 3708 adds r7, #8 - 801a90c: 46bd mov sp, r7 - 801a90e: bd80 pop {r7, pc} - 801a910: 2401a4c8 .word 0x2401a4c8 - 801a914: 08025338 .word 0x08025338 - 801a918: 08025550 .word 0x08025550 - 801a91c: 08025384 .word 0x08025384 - 801a920: 2401a4bc .word 0x2401a4bc - 801a924: 2401a4c0 .word 0x2401a4c0 - 801a928: 2401a4c6 .word 0x2401a4c6 - 801a92c: 2401a4ac .word 0x2401a4ac - 801a930: 24013990 .word 0x24013990 - 801a934: 24013994 .word 0x24013994 - 801a938: 2401a480 .word 0x2401a480 - -0801a93c : - * @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) -{ - 801a93c: b590 push {r4, r7, lr} - 801a93e: b08d sub sp, #52 ; 0x34 - 801a940: af04 add r7, sp, #16 - 801a942: 6078 str r0, [r7, #4] - struct tcp_seg *rseg; - u8_t acceptable = 0; - 801a944: 2300 movs r3, #0 - 801a946: 77fb strb r3, [r7, #31] - err_t err; - - err = ERR_OK; - 801a948: 2300 movs r3, #0 - 801a94a: 77bb strb r3, [r7, #30] - - LWIP_ASSERT("tcp_process: invalid pcb", pcb != NULL); - 801a94c: 687b ldr r3, [r7, #4] - 801a94e: 2b00 cmp r3, #0 - 801a950: d106 bne.n 801a960 - 801a952: 4b9d ldr r3, [pc, #628] ; (801abc8 ) - 801a954: f44f 7247 mov.w r2, #796 ; 0x31c - 801a958: 499c ldr r1, [pc, #624] ; (801abcc ) - 801a95a: 489d ldr r0, [pc, #628] ; (801abd0 ) - 801a95c: f007 f814 bl 8021988 - - /* Process incoming RST segments. */ - if (flags & TCP_RST) { - 801a960: 4b9c ldr r3, [pc, #624] ; (801abd4 ) - 801a962: 781b ldrb r3, [r3, #0] - 801a964: f003 0304 and.w r3, r3, #4 - 801a968: 2b00 cmp r3, #0 - 801a96a: d04e beq.n 801aa0a - /* First, determine if the reset is acceptable. */ - if (pcb->state == SYN_SENT) { - 801a96c: 687b ldr r3, [r7, #4] - 801a96e: 7d1b ldrb r3, [r3, #20] - 801a970: 2b02 cmp r3, #2 - 801a972: d108 bne.n 801a986 - /* "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) { - 801a974: 687b ldr r3, [r7, #4] - 801a976: 6d1a ldr r2, [r3, #80] ; 0x50 - 801a978: 4b97 ldr r3, [pc, #604] ; (801abd8 ) - 801a97a: 681b ldr r3, [r3, #0] - 801a97c: 429a cmp r2, r3 - 801a97e: d123 bne.n 801a9c8 - acceptable = 1; - 801a980: 2301 movs r3, #1 - 801a982: 77fb strb r3, [r7, #31] - 801a984: e020 b.n 801a9c8 - } - } else { - /* "In all states except SYN-SENT, all reset (RST) segments are validated - by checking their SEQ-fields." */ - if (seqno == pcb->rcv_nxt) { - 801a986: 687b ldr r3, [r7, #4] - 801a988: 6a5a ldr r2, [r3, #36] ; 0x24 - 801a98a: 4b94 ldr r3, [pc, #592] ; (801abdc ) - 801a98c: 681b ldr r3, [r3, #0] - 801a98e: 429a cmp r2, r3 - 801a990: d102 bne.n 801a998 - acceptable = 1; - 801a992: 2301 movs r3, #1 - 801a994: 77fb strb r3, [r7, #31] - 801a996: e017 b.n 801a9c8 - } else if (TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt, - 801a998: 4b90 ldr r3, [pc, #576] ; (801abdc ) - 801a99a: 681a ldr r2, [r3, #0] - 801a99c: 687b ldr r3, [r7, #4] - 801a99e: 6a5b ldr r3, [r3, #36] ; 0x24 - 801a9a0: 1ad3 subs r3, r2, r3 - 801a9a2: 2b00 cmp r3, #0 - 801a9a4: db10 blt.n 801a9c8 - 801a9a6: 4b8d ldr r3, [pc, #564] ; (801abdc ) - 801a9a8: 681a ldr r2, [r3, #0] - 801a9aa: 687b ldr r3, [r7, #4] - 801a9ac: 6a5b ldr r3, [r3, #36] ; 0x24 - 801a9ae: 6879 ldr r1, [r7, #4] - 801a9b0: 8d09 ldrh r1, [r1, #40] ; 0x28 - 801a9b2: 440b add r3, r1 - 801a9b4: 1ad3 subs r3, r2, r3 - 801a9b6: 2b00 cmp r3, #0 - 801a9b8: dc06 bgt.n 801a9c8 - 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); - 801a9ba: 687b ldr r3, [r7, #4] - 801a9bc: 8b5b ldrh r3, [r3, #26] - 801a9be: f043 0302 orr.w r3, r3, #2 - 801a9c2: b29a uxth r2, r3 - 801a9c4: 687b ldr r3, [r7, #4] - 801a9c6: 835a strh r2, [r3, #26] - } - } - - if (acceptable) { - 801a9c8: 7ffb ldrb r3, [r7, #31] - 801a9ca: 2b00 cmp r3, #0 - 801a9cc: d01b beq.n 801aa06 - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_process: Connection RESET\n")); - LWIP_ASSERT("tcp_input: pcb->state != CLOSED", pcb->state != CLOSED); - 801a9ce: 687b ldr r3, [r7, #4] - 801a9d0: 7d1b ldrb r3, [r3, #20] - 801a9d2: 2b00 cmp r3, #0 - 801a9d4: d106 bne.n 801a9e4 - 801a9d6: 4b7c ldr r3, [pc, #496] ; (801abc8 ) - 801a9d8: f44f 724e mov.w r2, #824 ; 0x338 - 801a9dc: 4980 ldr r1, [pc, #512] ; (801abe0 ) - 801a9de: 487c ldr r0, [pc, #496] ; (801abd0 ) - 801a9e0: f006 ffd2 bl 8021988 - recv_flags |= TF_RESET; - 801a9e4: 4b7f ldr r3, [pc, #508] ; (801abe4 ) - 801a9e6: 781b ldrb r3, [r3, #0] - 801a9e8: f043 0308 orr.w r3, r3, #8 - 801a9ec: b2da uxtb r2, r3 - 801a9ee: 4b7d ldr r3, [pc, #500] ; (801abe4 ) - 801a9f0: 701a strb r2, [r3, #0] - tcp_clear_flags(pcb, TF_ACK_DELAY); - 801a9f2: 687b ldr r3, [r7, #4] - 801a9f4: 8b5b ldrh r3, [r3, #26] - 801a9f6: f023 0301 bic.w r3, r3, #1 - 801a9fa: b29a uxth r2, r3 - 801a9fc: 687b ldr r3, [r7, #4] - 801a9fe: 835a strh r2, [r3, #26] - return ERR_RST; - 801aa00: f06f 030d mvn.w r3, #13 - 801aa04: e37a b.n 801b0fc - } 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; - 801aa06: 2300 movs r3, #0 - 801aa08: e378 b.n 801b0fc - } - } - - if ((flags & TCP_SYN) && (pcb->state != SYN_SENT && pcb->state != SYN_RCVD)) { - 801aa0a: 4b72 ldr r3, [pc, #456] ; (801abd4 ) - 801aa0c: 781b ldrb r3, [r3, #0] - 801aa0e: f003 0302 and.w r3, r3, #2 - 801aa12: 2b00 cmp r3, #0 - 801aa14: d010 beq.n 801aa38 - 801aa16: 687b ldr r3, [r7, #4] - 801aa18: 7d1b ldrb r3, [r3, #20] - 801aa1a: 2b02 cmp r3, #2 - 801aa1c: d00c beq.n 801aa38 - 801aa1e: 687b ldr r3, [r7, #4] - 801aa20: 7d1b ldrb r3, [r3, #20] - 801aa22: 2b03 cmp r3, #3 - 801aa24: d008 beq.n 801aa38 - /* Cope with new connection attempt after remote end crashed */ - tcp_ack_now(pcb); - 801aa26: 687b ldr r3, [r7, #4] - 801aa28: 8b5b ldrh r3, [r3, #26] - 801aa2a: f043 0302 orr.w r3, r3, #2 - 801aa2e: b29a uxth r2, r3 - 801aa30: 687b ldr r3, [r7, #4] - 801aa32: 835a strh r2, [r3, #26] - return ERR_OK; - 801aa34: 2300 movs r3, #0 - 801aa36: e361 b.n 801b0fc - } - - if ((pcb->flags & TF_RXCLOSED) == 0) { - 801aa38: 687b ldr r3, [r7, #4] - 801aa3a: 8b5b ldrh r3, [r3, #26] - 801aa3c: f003 0310 and.w r3, r3, #16 - 801aa40: 2b00 cmp r3, #0 - 801aa42: d103 bne.n 801aa4c - /* Update the PCB (in)activity timer unless rx is closed (see tcp_shutdown) */ - pcb->tmr = tcp_ticks; - 801aa44: 4b68 ldr r3, [pc, #416] ; (801abe8 ) - 801aa46: 681a ldr r2, [r3, #0] - 801aa48: 687b ldr r3, [r7, #4] - 801aa4a: 621a str r2, [r3, #32] - } - pcb->keep_cnt_sent = 0; - 801aa4c: 687b ldr r3, [r7, #4] - 801aa4e: 2200 movs r2, #0 - 801aa50: f883 209b strb.w r2, [r3, #155] ; 0x9b - pcb->persist_probe = 0; - 801aa54: 687b ldr r3, [r7, #4] - 801aa56: 2200 movs r2, #0 - 801aa58: f883 209a strb.w r2, [r3, #154] ; 0x9a - - tcp_parseopt(pcb); - 801aa5c: 6878 ldr r0, [r7, #4] - 801aa5e: f001 fc2f bl 801c2c0 - - /* Do different things depending on the TCP state. */ - switch (pcb->state) { - 801aa62: 687b ldr r3, [r7, #4] - 801aa64: 7d1b ldrb r3, [r3, #20] - 801aa66: 3b02 subs r3, #2 - 801aa68: 2b07 cmp r3, #7 - 801aa6a: f200 8337 bhi.w 801b0dc - 801aa6e: a201 add r2, pc, #4 ; (adr r2, 801aa74 ) - 801aa70: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 801aa74: 0801aa95 .word 0x0801aa95 - 801aa78: 0801acc5 .word 0x0801acc5 - 801aa7c: 0801ae3d .word 0x0801ae3d - 801aa80: 0801ae67 .word 0x0801ae67 - 801aa84: 0801af8b .word 0x0801af8b - 801aa88: 0801ae3d .word 0x0801ae3d - 801aa8c: 0801b017 .word 0x0801b017 - 801aa90: 0801b0a7 .word 0x0801b0a7 - 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) - 801aa94: 4b4f ldr r3, [pc, #316] ; (801abd4 ) - 801aa96: 781b ldrb r3, [r3, #0] - 801aa98: f003 0310 and.w r3, r3, #16 - 801aa9c: 2b00 cmp r3, #0 - 801aa9e: f000 80e4 beq.w 801ac6a - 801aaa2: 4b4c ldr r3, [pc, #304] ; (801abd4 ) - 801aaa4: 781b ldrb r3, [r3, #0] - 801aaa6: f003 0302 and.w r3, r3, #2 - 801aaaa: 2b00 cmp r3, #0 - 801aaac: f000 80dd beq.w 801ac6a - && (ackno == pcb->lastack + 1)) { - 801aab0: 687b ldr r3, [r7, #4] - 801aab2: 6c5b ldr r3, [r3, #68] ; 0x44 - 801aab4: 1c5a adds r2, r3, #1 - 801aab6: 4b48 ldr r3, [pc, #288] ; (801abd8 ) - 801aab8: 681b ldr r3, [r3, #0] - 801aaba: 429a cmp r2, r3 - 801aabc: f040 80d5 bne.w 801ac6a - pcb->rcv_nxt = seqno + 1; - 801aac0: 4b46 ldr r3, [pc, #280] ; (801abdc ) - 801aac2: 681b ldr r3, [r3, #0] - 801aac4: 1c5a adds r2, r3, #1 - 801aac6: 687b ldr r3, [r7, #4] - 801aac8: 625a str r2, [r3, #36] ; 0x24 - pcb->rcv_ann_right_edge = pcb->rcv_nxt; - 801aaca: 687b ldr r3, [r7, #4] - 801aacc: 6a5a ldr r2, [r3, #36] ; 0x24 - 801aace: 687b ldr r3, [r7, #4] - 801aad0: 62da str r2, [r3, #44] ; 0x2c - pcb->lastack = ackno; - 801aad2: 4b41 ldr r3, [pc, #260] ; (801abd8 ) - 801aad4: 681a ldr r2, [r3, #0] - 801aad6: 687b ldr r3, [r7, #4] - 801aad8: 645a str r2, [r3, #68] ; 0x44 - pcb->snd_wnd = tcphdr->wnd; - 801aada: 4b44 ldr r3, [pc, #272] ; (801abec ) - 801aadc: 681b ldr r3, [r3, #0] - 801aade: 89db ldrh r3, [r3, #14] - 801aae0: b29a uxth r2, r3 - 801aae2: 687b ldr r3, [r7, #4] - 801aae4: f8a3 2060 strh.w r2, [r3, #96] ; 0x60 - pcb->snd_wnd_max = pcb->snd_wnd; - 801aae8: 687b ldr r3, [r7, #4] - 801aaea: f8b3 2060 ldrh.w r2, [r3, #96] ; 0x60 - 801aaee: 687b ldr r3, [r7, #4] - 801aaf0: f8a3 2062 strh.w r2, [r3, #98] ; 0x62 - pcb->snd_wl1 = seqno - 1; /* initialise to seqno - 1 to force window update */ - 801aaf4: 4b39 ldr r3, [pc, #228] ; (801abdc ) - 801aaf6: 681b ldr r3, [r3, #0] - 801aaf8: 1e5a subs r2, r3, #1 - 801aafa: 687b ldr r3, [r7, #4] - 801aafc: 655a str r2, [r3, #84] ; 0x54 - pcb->state = ESTABLISHED; - 801aafe: 687b ldr r3, [r7, #4] - 801ab00: 2204 movs r2, #4 - 801ab02: 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); - 801ab04: 687b ldr r3, [r7, #4] - 801ab06: 8e5c ldrh r4, [r3, #50] ; 0x32 - 801ab08: 687b ldr r3, [r7, #4] - 801ab0a: 3304 adds r3, #4 - 801ab0c: 4618 mov r0, r3 - 801ab0e: f005 f9f1 bl 801fef4 - 801ab12: 4601 mov r1, r0 - 801ab14: 687b ldr r3, [r7, #4] - 801ab16: 3304 adds r3, #4 - 801ab18: 461a mov r2, r3 - 801ab1a: 4620 mov r0, r4 - 801ab1c: f7ff f886 bl 8019c2c - 801ab20: 4603 mov r3, r0 - 801ab22: 461a mov r2, r3 - 801ab24: 687b ldr r3, [r7, #4] - 801ab26: 865a strh r2, [r3, #50] ; 0x32 -#endif /* TCP_CALCULATE_EFF_SEND_MSS */ - - pcb->cwnd = LWIP_TCP_CALC_INITIAL_CWND(pcb->mss); - 801ab28: 687b ldr r3, [r7, #4] - 801ab2a: 8e5b ldrh r3, [r3, #50] ; 0x32 - 801ab2c: 009a lsls r2, r3, #2 - 801ab2e: 687b ldr r3, [r7, #4] - 801ab30: 8e5b ldrh r3, [r3, #50] ; 0x32 - 801ab32: 005b lsls r3, r3, #1 - 801ab34: f241 111c movw r1, #4380 ; 0x111c - 801ab38: 428b cmp r3, r1 - 801ab3a: bf38 it cc - 801ab3c: 460b movcc r3, r1 - 801ab3e: 429a cmp r2, r3 - 801ab40: d204 bcs.n 801ab4c - 801ab42: 687b ldr r3, [r7, #4] - 801ab44: 8e5b ldrh r3, [r3, #50] ; 0x32 - 801ab46: 009b lsls r3, r3, #2 - 801ab48: b29b uxth r3, r3 - 801ab4a: e00d b.n 801ab68 - 801ab4c: 687b ldr r3, [r7, #4] - 801ab4e: 8e5b ldrh r3, [r3, #50] ; 0x32 - 801ab50: 005b lsls r3, r3, #1 - 801ab52: f241 121c movw r2, #4380 ; 0x111c - 801ab56: 4293 cmp r3, r2 - 801ab58: d904 bls.n 801ab64 - 801ab5a: 687b ldr r3, [r7, #4] - 801ab5c: 8e5b ldrh r3, [r3, #50] ; 0x32 - 801ab5e: 005b lsls r3, r3, #1 - 801ab60: b29b uxth r3, r3 - 801ab62: e001 b.n 801ab68 - 801ab64: f241 131c movw r3, #4380 ; 0x111c - 801ab68: 687a ldr r2, [r7, #4] - 801ab6a: 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)); - 801ab6e: 687b ldr r3, [r7, #4] - 801ab70: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 801ab74: 2b00 cmp r3, #0 - 801ab76: d106 bne.n 801ab86 - 801ab78: 4b13 ldr r3, [pc, #76] ; (801abc8 ) - 801ab7a: f44f 725b mov.w r2, #876 ; 0x36c - 801ab7e: 491c ldr r1, [pc, #112] ; (801abf0 ) - 801ab80: 4813 ldr r0, [pc, #76] ; (801abd0 ) - 801ab82: f006 ff01 bl 8021988 - --pcb->snd_queuelen; - 801ab86: 687b ldr r3, [r7, #4] - 801ab88: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 801ab8c: 3b01 subs r3, #1 - 801ab8e: b29a uxth r2, r3 - 801ab90: 687b ldr r3, [r7, #4] - 801ab92: 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; - 801ab96: 687b ldr r3, [r7, #4] - 801ab98: 6f1b ldr r3, [r3, #112] ; 0x70 - 801ab9a: 617b str r3, [r7, #20] - if (rseg == NULL) { - 801ab9c: 697b ldr r3, [r7, #20] - 801ab9e: 2b00 cmp r3, #0 - 801aba0: d12a bne.n 801abf8 - /* might happen if tcp_output fails in tcp_rexmit_rto() - in which case the segment is on the unsent list */ - rseg = pcb->unsent; - 801aba2: 687b ldr r3, [r7, #4] - 801aba4: 6edb ldr r3, [r3, #108] ; 0x6c - 801aba6: 617b str r3, [r7, #20] - LWIP_ASSERT("no segment to free", rseg != NULL); - 801aba8: 697b ldr r3, [r7, #20] - 801abaa: 2b00 cmp r3, #0 - 801abac: d106 bne.n 801abbc - 801abae: 4b06 ldr r3, [pc, #24] ; (801abc8 ) - 801abb0: f44f 725d mov.w r2, #884 ; 0x374 - 801abb4: 490f ldr r1, [pc, #60] ; (801abf4 ) - 801abb6: 4806 ldr r0, [pc, #24] ; (801abd0 ) - 801abb8: f006 fee6 bl 8021988 - pcb->unsent = rseg->next; - 801abbc: 697b ldr r3, [r7, #20] - 801abbe: 681a ldr r2, [r3, #0] - 801abc0: 687b ldr r3, [r7, #4] - 801abc2: 66da str r2, [r3, #108] ; 0x6c - 801abc4: e01c b.n 801ac00 - 801abc6: bf00 nop - 801abc8: 08025338 .word 0x08025338 - 801abcc: 08025570 .word 0x08025570 - 801abd0: 08025384 .word 0x08025384 - 801abd4: 2401a4c8 .word 0x2401a4c8 - 801abd8: 2401a4c0 .word 0x2401a4c0 - 801abdc: 2401a4bc .word 0x2401a4bc - 801abe0: 0802558c .word 0x0802558c - 801abe4: 2401a4c9 .word 0x2401a4c9 - 801abe8: 2401a480 .word 0x2401a480 - 801abec: 2401a4ac .word 0x2401a4ac - 801abf0: 080255ac .word 0x080255ac - 801abf4: 080255c4 .word 0x080255c4 - } else { - pcb->unacked = rseg->next; - 801abf8: 697b ldr r3, [r7, #20] - 801abfa: 681a ldr r2, [r3, #0] - 801abfc: 687b ldr r3, [r7, #4] - 801abfe: 671a str r2, [r3, #112] ; 0x70 - } - tcp_seg_free(rseg); - 801ac00: 6978 ldr r0, [r7, #20] - 801ac02: f7fe fc4e bl 80194a2 - - /* If there's nothing left to acknowledge, stop the retransmit - timer, otherwise reset it to start again */ - if (pcb->unacked == NULL) { - 801ac06: 687b ldr r3, [r7, #4] - 801ac08: 6f1b ldr r3, [r3, #112] ; 0x70 - 801ac0a: 2b00 cmp r3, #0 - 801ac0c: d104 bne.n 801ac18 - pcb->rtime = -1; - 801ac0e: 687b ldr r3, [r7, #4] - 801ac10: f64f 72ff movw r2, #65535 ; 0xffff - 801ac14: 861a strh r2, [r3, #48] ; 0x30 - 801ac16: e006 b.n 801ac26 - } else { - pcb->rtime = 0; - 801ac18: 687b ldr r3, [r7, #4] - 801ac1a: 2200 movs r2, #0 - 801ac1c: 861a strh r2, [r3, #48] ; 0x30 - pcb->nrtx = 0; - 801ac1e: 687b ldr r3, [r7, #4] - 801ac20: 2200 movs r2, #0 - 801ac22: 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); - 801ac26: 687b ldr r3, [r7, #4] - 801ac28: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 - 801ac2c: 2b00 cmp r3, #0 - 801ac2e: d00a beq.n 801ac46 - 801ac30: 687b ldr r3, [r7, #4] - 801ac32: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 - 801ac36: 687a ldr r2, [r7, #4] - 801ac38: 6910 ldr r0, [r2, #16] - 801ac3a: 2200 movs r2, #0 - 801ac3c: 6879 ldr r1, [r7, #4] - 801ac3e: 4798 blx r3 - 801ac40: 4603 mov r3, r0 - 801ac42: 77bb strb r3, [r7, #30] - 801ac44: e001 b.n 801ac4a - 801ac46: 2300 movs r3, #0 - 801ac48: 77bb strb r3, [r7, #30] - if (err == ERR_ABRT) { - 801ac4a: f997 301e ldrsb.w r3, [r7, #30] - 801ac4e: f113 0f0d cmn.w r3, #13 - 801ac52: d102 bne.n 801ac5a - return ERR_ABRT; - 801ac54: f06f 030c mvn.w r3, #12 - 801ac58: e250 b.n 801b0fc - } - tcp_ack_now(pcb); - 801ac5a: 687b ldr r3, [r7, #4] - 801ac5c: 8b5b ldrh r3, [r3, #26] - 801ac5e: f043 0302 orr.w r3, r3, #2 - 801ac62: b29a uxth r2, r3 - 801ac64: 687b ldr r3, [r7, #4] - 801ac66: 835a strh r2, [r3, #26] - if (pcb->nrtx < TCP_SYNMAXRTX) { - pcb->rtime = 0; - tcp_rexmit_rto(pcb); - } - } - break; - 801ac68: e23a b.n 801b0e0 - else if (flags & TCP_ACK) { - 801ac6a: 4b98 ldr r3, [pc, #608] ; (801aecc ) - 801ac6c: 781b ldrb r3, [r3, #0] - 801ac6e: f003 0310 and.w r3, r3, #16 - 801ac72: 2b00 cmp r3, #0 - 801ac74: f000 8234 beq.w 801b0e0 - tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 801ac78: 4b95 ldr r3, [pc, #596] ; (801aed0 ) - 801ac7a: 6819 ldr r1, [r3, #0] - 801ac7c: 4b95 ldr r3, [pc, #596] ; (801aed4 ) - 801ac7e: 881b ldrh r3, [r3, #0] - 801ac80: 461a mov r2, r3 - 801ac82: 4b95 ldr r3, [pc, #596] ; (801aed8 ) - 801ac84: 681b ldr r3, [r3, #0] - 801ac86: 18d0 adds r0, r2, r3 - ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 801ac88: 4b94 ldr r3, [pc, #592] ; (801aedc ) - 801ac8a: 681b ldr r3, [r3, #0] - tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 801ac8c: 885b ldrh r3, [r3, #2] - 801ac8e: b29b uxth r3, r3 - ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 801ac90: 4a92 ldr r2, [pc, #584] ; (801aedc ) - 801ac92: 6812 ldr r2, [r2, #0] - tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 801ac94: 8812 ldrh r2, [r2, #0] - 801ac96: b292 uxth r2, r2 - 801ac98: 9202 str r2, [sp, #8] - 801ac9a: 9301 str r3, [sp, #4] - 801ac9c: 4b90 ldr r3, [pc, #576] ; (801aee0 ) - 801ac9e: 9300 str r3, [sp, #0] - 801aca0: 4b90 ldr r3, [pc, #576] ; (801aee4 ) - 801aca2: 4602 mov r2, r0 - 801aca4: 6878 ldr r0, [r7, #4] - 801aca6: f003 f949 bl 801df3c - if (pcb->nrtx < TCP_SYNMAXRTX) { - 801acaa: 687b ldr r3, [r7, #4] - 801acac: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 - 801acb0: 2b05 cmp r3, #5 - 801acb2: f200 8215 bhi.w 801b0e0 - pcb->rtime = 0; - 801acb6: 687b ldr r3, [r7, #4] - 801acb8: 2200 movs r2, #0 - 801acba: 861a strh r2, [r3, #48] ; 0x30 - tcp_rexmit_rto(pcb); - 801acbc: 6878 ldr r0, [r7, #4] - 801acbe: f002 ff15 bl 801daec - break; - 801acc2: e20d b.n 801b0e0 - case SYN_RCVD: - if (flags & TCP_ACK) { - 801acc4: 4b81 ldr r3, [pc, #516] ; (801aecc ) - 801acc6: 781b ldrb r3, [r3, #0] - 801acc8: f003 0310 and.w r3, r3, #16 - 801accc: 2b00 cmp r3, #0 - 801acce: f000 80a1 beq.w 801ae14 - /* expected ACK number? */ - if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) { - 801acd2: 4b7f ldr r3, [pc, #508] ; (801aed0 ) - 801acd4: 681a ldr r2, [r3, #0] - 801acd6: 687b ldr r3, [r7, #4] - 801acd8: 6c5b ldr r3, [r3, #68] ; 0x44 - 801acda: 1ad3 subs r3, r2, r3 - 801acdc: 3b01 subs r3, #1 - 801acde: 2b00 cmp r3, #0 - 801ace0: db7e blt.n 801ade0 - 801ace2: 4b7b ldr r3, [pc, #492] ; (801aed0 ) - 801ace4: 681a ldr r2, [r3, #0] - 801ace6: 687b ldr r3, [r7, #4] - 801ace8: 6d1b ldr r3, [r3, #80] ; 0x50 - 801acea: 1ad3 subs r3, r2, r3 - 801acec: 2b00 cmp r3, #0 - 801acee: dc77 bgt.n 801ade0 - pcb->state = ESTABLISHED; - 801acf0: 687b ldr r3, [r7, #4] - 801acf2: 2204 movs r2, #4 - 801acf4: 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) { - 801acf6: 687b ldr r3, [r7, #4] - 801acf8: 6fdb ldr r3, [r3, #124] ; 0x7c - 801acfa: 2b00 cmp r3, #0 - 801acfc: d102 bne.n 801ad04 - /* listen pcb might be closed by now */ - err = ERR_VAL; - 801acfe: 23fa movs r3, #250 ; 0xfa - 801ad00: 77bb strb r3, [r7, #30] - 801ad02: e01d b.n 801ad40 - } else -#endif /* LWIP_CALLBACK_API || TCP_LISTEN_BACKLOG */ - { -#if LWIP_CALLBACK_API - LWIP_ASSERT("pcb->listener->accept != NULL", pcb->listener->accept != NULL); - 801ad04: 687b ldr r3, [r7, #4] - 801ad06: 6fdb ldr r3, [r3, #124] ; 0x7c - 801ad08: 699b ldr r3, [r3, #24] - 801ad0a: 2b00 cmp r3, #0 - 801ad0c: d106 bne.n 801ad1c - 801ad0e: 4b76 ldr r3, [pc, #472] ; (801aee8 ) - 801ad10: f44f 726a mov.w r2, #936 ; 0x3a8 - 801ad14: 4975 ldr r1, [pc, #468] ; (801aeec ) - 801ad16: 4876 ldr r0, [pc, #472] ; (801aef0 ) - 801ad18: f006 fe36 bl 8021988 -#endif - tcp_backlog_accepted(pcb); - /* Call the accept function. */ - TCP_EVENT_ACCEPT(pcb->listener, pcb, pcb->callback_arg, ERR_OK, err); - 801ad1c: 687b ldr r3, [r7, #4] - 801ad1e: 6fdb ldr r3, [r3, #124] ; 0x7c - 801ad20: 699b ldr r3, [r3, #24] - 801ad22: 2b00 cmp r3, #0 - 801ad24: d00a beq.n 801ad3c - 801ad26: 687b ldr r3, [r7, #4] - 801ad28: 6fdb ldr r3, [r3, #124] ; 0x7c - 801ad2a: 699b ldr r3, [r3, #24] - 801ad2c: 687a ldr r2, [r7, #4] - 801ad2e: 6910 ldr r0, [r2, #16] - 801ad30: 2200 movs r2, #0 - 801ad32: 6879 ldr r1, [r7, #4] - 801ad34: 4798 blx r3 - 801ad36: 4603 mov r3, r0 - 801ad38: 77bb strb r3, [r7, #30] - 801ad3a: e001 b.n 801ad40 - 801ad3c: 23f0 movs r3, #240 ; 0xf0 - 801ad3e: 77bb strb r3, [r7, #30] - } - if (err != ERR_OK) { - 801ad40: f997 301e ldrsb.w r3, [r7, #30] - 801ad44: 2b00 cmp r3, #0 - 801ad46: d00a beq.n 801ad5e - /* If the accept function returns with an error, we abort - * the connection. */ - /* Already aborted? */ - if (err != ERR_ABRT) { - 801ad48: f997 301e ldrsb.w r3, [r7, #30] - 801ad4c: f113 0f0d cmn.w r3, #13 - 801ad50: d002 beq.n 801ad58 - tcp_abort(pcb); - 801ad52: 6878 ldr r0, [r7, #4] - 801ad54: f7fd fcc0 bl 80186d8 - } - return ERR_ABRT; - 801ad58: f06f 030c mvn.w r3, #12 - 801ad5c: e1ce b.n 801b0fc - } - /* If there was any data contained within this ACK, - * we'd better pass it on to the application as well. */ - tcp_receive(pcb); - 801ad5e: 6878 ldr r0, [r7, #4] - 801ad60: f000 fae0 bl 801b324 - - /* Prevent ACK for SYN to generate a sent event */ - if (recv_acked != 0) { - 801ad64: 4b63 ldr r3, [pc, #396] ; (801aef4 ) - 801ad66: 881b ldrh r3, [r3, #0] - 801ad68: 2b00 cmp r3, #0 - 801ad6a: d005 beq.n 801ad78 - recv_acked--; - 801ad6c: 4b61 ldr r3, [pc, #388] ; (801aef4 ) - 801ad6e: 881b ldrh r3, [r3, #0] - 801ad70: 3b01 subs r3, #1 - 801ad72: b29a uxth r2, r3 - 801ad74: 4b5f ldr r3, [pc, #380] ; (801aef4 ) - 801ad76: 801a strh r2, [r3, #0] - } - - pcb->cwnd = LWIP_TCP_CALC_INITIAL_CWND(pcb->mss); - 801ad78: 687b ldr r3, [r7, #4] - 801ad7a: 8e5b ldrh r3, [r3, #50] ; 0x32 - 801ad7c: 009a lsls r2, r3, #2 - 801ad7e: 687b ldr r3, [r7, #4] - 801ad80: 8e5b ldrh r3, [r3, #50] ; 0x32 - 801ad82: 005b lsls r3, r3, #1 - 801ad84: f241 111c movw r1, #4380 ; 0x111c - 801ad88: 428b cmp r3, r1 - 801ad8a: bf38 it cc - 801ad8c: 460b movcc r3, r1 - 801ad8e: 429a cmp r2, r3 - 801ad90: d204 bcs.n 801ad9c - 801ad92: 687b ldr r3, [r7, #4] - 801ad94: 8e5b ldrh r3, [r3, #50] ; 0x32 - 801ad96: 009b lsls r3, r3, #2 - 801ad98: b29b uxth r3, r3 - 801ad9a: e00d b.n 801adb8 - 801ad9c: 687b ldr r3, [r7, #4] - 801ad9e: 8e5b ldrh r3, [r3, #50] ; 0x32 - 801ada0: 005b lsls r3, r3, #1 - 801ada2: f241 121c movw r2, #4380 ; 0x111c - 801ada6: 4293 cmp r3, r2 - 801ada8: d904 bls.n 801adb4 - 801adaa: 687b ldr r3, [r7, #4] - 801adac: 8e5b ldrh r3, [r3, #50] ; 0x32 - 801adae: 005b lsls r3, r3, #1 - 801adb0: b29b uxth r3, r3 - 801adb2: e001 b.n 801adb8 - 801adb4: f241 131c movw r3, #4380 ; 0x111c - 801adb8: 687a ldr r2, [r7, #4] - 801adba: 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) { - 801adbe: 4b4e ldr r3, [pc, #312] ; (801aef8 ) - 801adc0: 781b ldrb r3, [r3, #0] - 801adc2: f003 0320 and.w r3, r3, #32 - 801adc6: 2b00 cmp r3, #0 - 801adc8: d037 beq.n 801ae3a - tcp_ack_now(pcb); - 801adca: 687b ldr r3, [r7, #4] - 801adcc: 8b5b ldrh r3, [r3, #26] - 801adce: f043 0302 orr.w r3, r3, #2 - 801add2: b29a uxth r2, r3 - 801add4: 687b ldr r3, [r7, #4] - 801add6: 835a strh r2, [r3, #26] - pcb->state = CLOSE_WAIT; - 801add8: 687b ldr r3, [r7, #4] - 801adda: 2207 movs r2, #7 - 801addc: 751a strb r2, [r3, #20] - if (recv_flags & TF_GOT_FIN) { - 801adde: e02c b.n 801ae3a - } - } else { - /* incorrect ACK number, send RST */ - tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 801ade0: 4b3b ldr r3, [pc, #236] ; (801aed0 ) - 801ade2: 6819 ldr r1, [r3, #0] - 801ade4: 4b3b ldr r3, [pc, #236] ; (801aed4 ) - 801ade6: 881b ldrh r3, [r3, #0] - 801ade8: 461a mov r2, r3 - 801adea: 4b3b ldr r3, [pc, #236] ; (801aed8 ) - 801adec: 681b ldr r3, [r3, #0] - 801adee: 18d0 adds r0, r2, r3 - ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 801adf0: 4b3a ldr r3, [pc, #232] ; (801aedc ) - 801adf2: 681b ldr r3, [r3, #0] - tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 801adf4: 885b ldrh r3, [r3, #2] - 801adf6: b29b uxth r3, r3 - ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 801adf8: 4a38 ldr r2, [pc, #224] ; (801aedc ) - 801adfa: 6812 ldr r2, [r2, #0] - tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 801adfc: 8812 ldrh r2, [r2, #0] - 801adfe: b292 uxth r2, r2 - 801ae00: 9202 str r2, [sp, #8] - 801ae02: 9301 str r3, [sp, #4] - 801ae04: 4b36 ldr r3, [pc, #216] ; (801aee0 ) - 801ae06: 9300 str r3, [sp, #0] - 801ae08: 4b36 ldr r3, [pc, #216] ; (801aee4 ) - 801ae0a: 4602 mov r2, r0 - 801ae0c: 6878 ldr r0, [r7, #4] - 801ae0e: f003 f895 bl 801df3c - } - } 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; - 801ae12: e167 b.n 801b0e4 - } else if ((flags & TCP_SYN) && (seqno == pcb->rcv_nxt - 1)) { - 801ae14: 4b2d ldr r3, [pc, #180] ; (801aecc ) - 801ae16: 781b ldrb r3, [r3, #0] - 801ae18: f003 0302 and.w r3, r3, #2 - 801ae1c: 2b00 cmp r3, #0 - 801ae1e: f000 8161 beq.w 801b0e4 - 801ae22: 687b ldr r3, [r7, #4] - 801ae24: 6a5b ldr r3, [r3, #36] ; 0x24 - 801ae26: 1e5a subs r2, r3, #1 - 801ae28: 4b2b ldr r3, [pc, #172] ; (801aed8 ) - 801ae2a: 681b ldr r3, [r3, #0] - 801ae2c: 429a cmp r2, r3 - 801ae2e: f040 8159 bne.w 801b0e4 - tcp_rexmit(pcb); - 801ae32: 6878 ldr r0, [r7, #4] - 801ae34: f002 fe7c bl 801db30 - break; - 801ae38: e154 b.n 801b0e4 - 801ae3a: e153 b.n 801b0e4 - case CLOSE_WAIT: - /* FALLTHROUGH */ - case ESTABLISHED: - tcp_receive(pcb); - 801ae3c: 6878 ldr r0, [r7, #4] - 801ae3e: f000 fa71 bl 801b324 - if (recv_flags & TF_GOT_FIN) { /* passive close */ - 801ae42: 4b2d ldr r3, [pc, #180] ; (801aef8 ) - 801ae44: 781b ldrb r3, [r3, #0] - 801ae46: f003 0320 and.w r3, r3, #32 - 801ae4a: 2b00 cmp r3, #0 - 801ae4c: f000 814c beq.w 801b0e8 - tcp_ack_now(pcb); - 801ae50: 687b ldr r3, [r7, #4] - 801ae52: 8b5b ldrh r3, [r3, #26] - 801ae54: f043 0302 orr.w r3, r3, #2 - 801ae58: b29a uxth r2, r3 - 801ae5a: 687b ldr r3, [r7, #4] - 801ae5c: 835a strh r2, [r3, #26] - pcb->state = CLOSE_WAIT; - 801ae5e: 687b ldr r3, [r7, #4] - 801ae60: 2207 movs r2, #7 - 801ae62: 751a strb r2, [r3, #20] - } - break; - 801ae64: e140 b.n 801b0e8 - case FIN_WAIT_1: - tcp_receive(pcb); - 801ae66: 6878 ldr r0, [r7, #4] - 801ae68: f000 fa5c bl 801b324 - if (recv_flags & TF_GOT_FIN) { - 801ae6c: 4b22 ldr r3, [pc, #136] ; (801aef8 ) - 801ae6e: 781b ldrb r3, [r3, #0] - 801ae70: f003 0320 and.w r3, r3, #32 - 801ae74: 2b00 cmp r3, #0 - 801ae76: d071 beq.n 801af5c - if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) && - 801ae78: 4b14 ldr r3, [pc, #80] ; (801aecc ) - 801ae7a: 781b ldrb r3, [r3, #0] - 801ae7c: f003 0310 and.w r3, r3, #16 - 801ae80: 2b00 cmp r3, #0 - 801ae82: d060 beq.n 801af46 - 801ae84: 687b ldr r3, [r7, #4] - 801ae86: 6d1a ldr r2, [r3, #80] ; 0x50 - 801ae88: 4b11 ldr r3, [pc, #68] ; (801aed0 ) - 801ae8a: 681b ldr r3, [r3, #0] - 801ae8c: 429a cmp r2, r3 - 801ae8e: d15a bne.n 801af46 - pcb->unsent == NULL) { - 801ae90: 687b ldr r3, [r7, #4] - 801ae92: 6edb ldr r3, [r3, #108] ; 0x6c - if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) && - 801ae94: 2b00 cmp r3, #0 - 801ae96: d156 bne.n 801af46 - 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); - 801ae98: 687b ldr r3, [r7, #4] - 801ae9a: 8b5b ldrh r3, [r3, #26] - 801ae9c: f043 0302 orr.w r3, r3, #2 - 801aea0: b29a uxth r2, r3 - 801aea2: 687b ldr r3, [r7, #4] - 801aea4: 835a strh r2, [r3, #26] - tcp_pcb_purge(pcb); - 801aea6: 6878 ldr r0, [r7, #4] - 801aea8: f7fe fdb6 bl 8019a18 - TCP_RMV_ACTIVE(pcb); - 801aeac: 4b13 ldr r3, [pc, #76] ; (801aefc ) - 801aeae: 681b ldr r3, [r3, #0] - 801aeb0: 687a ldr r2, [r7, #4] - 801aeb2: 429a cmp r2, r3 - 801aeb4: d105 bne.n 801aec2 - 801aeb6: 4b11 ldr r3, [pc, #68] ; (801aefc ) - 801aeb8: 681b ldr r3, [r3, #0] - 801aeba: 68db ldr r3, [r3, #12] - 801aebc: 4a0f ldr r2, [pc, #60] ; (801aefc ) - 801aebe: 6013 str r3, [r2, #0] - 801aec0: e02e b.n 801af20 - 801aec2: 4b0e ldr r3, [pc, #56] ; (801aefc ) - 801aec4: 681b ldr r3, [r3, #0] - 801aec6: 613b str r3, [r7, #16] - 801aec8: e027 b.n 801af1a - 801aeca: bf00 nop - 801aecc: 2401a4c8 .word 0x2401a4c8 - 801aed0: 2401a4c0 .word 0x2401a4c0 - 801aed4: 2401a4c6 .word 0x2401a4c6 - 801aed8: 2401a4bc .word 0x2401a4bc - 801aedc: 2401a4ac .word 0x2401a4ac - 801aee0: 24013990 .word 0x24013990 - 801aee4: 24013994 .word 0x24013994 - 801aee8: 08025338 .word 0x08025338 - 801aeec: 080255d8 .word 0x080255d8 - 801aef0: 08025384 .word 0x08025384 - 801aef4: 2401a4c4 .word 0x2401a4c4 - 801aef8: 2401a4c9 .word 0x2401a4c9 - 801aefc: 2401a48c .word 0x2401a48c - 801af00: 693b ldr r3, [r7, #16] - 801af02: 68db ldr r3, [r3, #12] - 801af04: 687a ldr r2, [r7, #4] - 801af06: 429a cmp r2, r3 - 801af08: d104 bne.n 801af14 - 801af0a: 687b ldr r3, [r7, #4] - 801af0c: 68da ldr r2, [r3, #12] - 801af0e: 693b ldr r3, [r7, #16] - 801af10: 60da str r2, [r3, #12] - 801af12: e005 b.n 801af20 - 801af14: 693b ldr r3, [r7, #16] - 801af16: 68db ldr r3, [r3, #12] - 801af18: 613b str r3, [r7, #16] - 801af1a: 693b ldr r3, [r7, #16] - 801af1c: 2b00 cmp r3, #0 - 801af1e: d1ef bne.n 801af00 - 801af20: 687b ldr r3, [r7, #4] - 801af22: 2200 movs r2, #0 - 801af24: 60da str r2, [r3, #12] - 801af26: 4b77 ldr r3, [pc, #476] ; (801b104 ) - 801af28: 2201 movs r2, #1 - 801af2a: 701a strb r2, [r3, #0] - pcb->state = TIME_WAIT; - 801af2c: 687b ldr r3, [r7, #4] - 801af2e: 220a movs r2, #10 - 801af30: 751a strb r2, [r3, #20] - TCP_REG(&tcp_tw_pcbs, pcb); - 801af32: 4b75 ldr r3, [pc, #468] ; (801b108 ) - 801af34: 681a ldr r2, [r3, #0] - 801af36: 687b ldr r3, [r7, #4] - 801af38: 60da str r2, [r3, #12] - 801af3a: 4a73 ldr r2, [pc, #460] ; (801b108 ) - 801af3c: 687b ldr r3, [r7, #4] - 801af3e: 6013 str r3, [r2, #0] - 801af40: f003 f9be bl 801e2c0 - } - } else if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) && - pcb->unsent == NULL) { - pcb->state = FIN_WAIT_2; - } - break; - 801af44: e0d2 b.n 801b0ec - tcp_ack_now(pcb); - 801af46: 687b ldr r3, [r7, #4] - 801af48: 8b5b ldrh r3, [r3, #26] - 801af4a: f043 0302 orr.w r3, r3, #2 - 801af4e: b29a uxth r2, r3 - 801af50: 687b ldr r3, [r7, #4] - 801af52: 835a strh r2, [r3, #26] - pcb->state = CLOSING; - 801af54: 687b ldr r3, [r7, #4] - 801af56: 2208 movs r2, #8 - 801af58: 751a strb r2, [r3, #20] - break; - 801af5a: e0c7 b.n 801b0ec - } else if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) && - 801af5c: 4b6b ldr r3, [pc, #428] ; (801b10c ) - 801af5e: 781b ldrb r3, [r3, #0] - 801af60: f003 0310 and.w r3, r3, #16 - 801af64: 2b00 cmp r3, #0 - 801af66: f000 80c1 beq.w 801b0ec - 801af6a: 687b ldr r3, [r7, #4] - 801af6c: 6d1a ldr r2, [r3, #80] ; 0x50 - 801af6e: 4b68 ldr r3, [pc, #416] ; (801b110 ) - 801af70: 681b ldr r3, [r3, #0] - 801af72: 429a cmp r2, r3 - 801af74: f040 80ba bne.w 801b0ec - pcb->unsent == NULL) { - 801af78: 687b ldr r3, [r7, #4] - 801af7a: 6edb ldr r3, [r3, #108] ; 0x6c - } else if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) && - 801af7c: 2b00 cmp r3, #0 - 801af7e: f040 80b5 bne.w 801b0ec - pcb->state = FIN_WAIT_2; - 801af82: 687b ldr r3, [r7, #4] - 801af84: 2206 movs r2, #6 - 801af86: 751a strb r2, [r3, #20] - break; - 801af88: e0b0 b.n 801b0ec - case FIN_WAIT_2: - tcp_receive(pcb); - 801af8a: 6878 ldr r0, [r7, #4] - 801af8c: f000 f9ca bl 801b324 - if (recv_flags & TF_GOT_FIN) { - 801af90: 4b60 ldr r3, [pc, #384] ; (801b114 ) - 801af92: 781b ldrb r3, [r3, #0] - 801af94: f003 0320 and.w r3, r3, #32 - 801af98: 2b00 cmp r3, #0 - 801af9a: f000 80a9 beq.w 801b0f0 - 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); - 801af9e: 687b ldr r3, [r7, #4] - 801afa0: 8b5b ldrh r3, [r3, #26] - 801afa2: f043 0302 orr.w r3, r3, #2 - 801afa6: b29a uxth r2, r3 - 801afa8: 687b ldr r3, [r7, #4] - 801afaa: 835a strh r2, [r3, #26] - tcp_pcb_purge(pcb); - 801afac: 6878 ldr r0, [r7, #4] - 801afae: f7fe fd33 bl 8019a18 - TCP_RMV_ACTIVE(pcb); - 801afb2: 4b59 ldr r3, [pc, #356] ; (801b118 ) - 801afb4: 681b ldr r3, [r3, #0] - 801afb6: 687a ldr r2, [r7, #4] - 801afb8: 429a cmp r2, r3 - 801afba: d105 bne.n 801afc8 - 801afbc: 4b56 ldr r3, [pc, #344] ; (801b118 ) - 801afbe: 681b ldr r3, [r3, #0] - 801afc0: 68db ldr r3, [r3, #12] - 801afc2: 4a55 ldr r2, [pc, #340] ; (801b118 ) - 801afc4: 6013 str r3, [r2, #0] - 801afc6: e013 b.n 801aff0 - 801afc8: 4b53 ldr r3, [pc, #332] ; (801b118 ) - 801afca: 681b ldr r3, [r3, #0] - 801afcc: 60fb str r3, [r7, #12] - 801afce: e00c b.n 801afea - 801afd0: 68fb ldr r3, [r7, #12] - 801afd2: 68db ldr r3, [r3, #12] - 801afd4: 687a ldr r2, [r7, #4] - 801afd6: 429a cmp r2, r3 - 801afd8: d104 bne.n 801afe4 - 801afda: 687b ldr r3, [r7, #4] - 801afdc: 68da ldr r2, [r3, #12] - 801afde: 68fb ldr r3, [r7, #12] - 801afe0: 60da str r2, [r3, #12] - 801afe2: e005 b.n 801aff0 - 801afe4: 68fb ldr r3, [r7, #12] - 801afe6: 68db ldr r3, [r3, #12] - 801afe8: 60fb str r3, [r7, #12] - 801afea: 68fb ldr r3, [r7, #12] - 801afec: 2b00 cmp r3, #0 - 801afee: d1ef bne.n 801afd0 - 801aff0: 687b ldr r3, [r7, #4] - 801aff2: 2200 movs r2, #0 - 801aff4: 60da str r2, [r3, #12] - 801aff6: 4b43 ldr r3, [pc, #268] ; (801b104 ) - 801aff8: 2201 movs r2, #1 - 801affa: 701a strb r2, [r3, #0] - pcb->state = TIME_WAIT; - 801affc: 687b ldr r3, [r7, #4] - 801affe: 220a movs r2, #10 - 801b000: 751a strb r2, [r3, #20] - TCP_REG(&tcp_tw_pcbs, pcb); - 801b002: 4b41 ldr r3, [pc, #260] ; (801b108 ) - 801b004: 681a ldr r2, [r3, #0] - 801b006: 687b ldr r3, [r7, #4] - 801b008: 60da str r2, [r3, #12] - 801b00a: 4a3f ldr r2, [pc, #252] ; (801b108 ) - 801b00c: 687b ldr r3, [r7, #4] - 801b00e: 6013 str r3, [r2, #0] - 801b010: f003 f956 bl 801e2c0 - } - break; - 801b014: e06c b.n 801b0f0 - case CLOSING: - tcp_receive(pcb); - 801b016: 6878 ldr r0, [r7, #4] - 801b018: f000 f984 bl 801b324 - if ((flags & TCP_ACK) && ackno == pcb->snd_nxt && pcb->unsent == NULL) { - 801b01c: 4b3b ldr r3, [pc, #236] ; (801b10c ) - 801b01e: 781b ldrb r3, [r3, #0] - 801b020: f003 0310 and.w r3, r3, #16 - 801b024: 2b00 cmp r3, #0 - 801b026: d065 beq.n 801b0f4 - 801b028: 687b ldr r3, [r7, #4] - 801b02a: 6d1a ldr r2, [r3, #80] ; 0x50 - 801b02c: 4b38 ldr r3, [pc, #224] ; (801b110 ) - 801b02e: 681b ldr r3, [r3, #0] - 801b030: 429a cmp r2, r3 - 801b032: d15f bne.n 801b0f4 - 801b034: 687b ldr r3, [r7, #4] - 801b036: 6edb ldr r3, [r3, #108] ; 0x6c - 801b038: 2b00 cmp r3, #0 - 801b03a: d15b bne.n 801b0f4 - LWIP_DEBUGF(TCP_DEBUG, ("TCP connection closed: CLOSING %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest)); - tcp_pcb_purge(pcb); - 801b03c: 6878 ldr r0, [r7, #4] - 801b03e: f7fe fceb bl 8019a18 - TCP_RMV_ACTIVE(pcb); - 801b042: 4b35 ldr r3, [pc, #212] ; (801b118 ) - 801b044: 681b ldr r3, [r3, #0] - 801b046: 687a ldr r2, [r7, #4] - 801b048: 429a cmp r2, r3 - 801b04a: d105 bne.n 801b058 - 801b04c: 4b32 ldr r3, [pc, #200] ; (801b118 ) - 801b04e: 681b ldr r3, [r3, #0] - 801b050: 68db ldr r3, [r3, #12] - 801b052: 4a31 ldr r2, [pc, #196] ; (801b118 ) - 801b054: 6013 str r3, [r2, #0] - 801b056: e013 b.n 801b080 - 801b058: 4b2f ldr r3, [pc, #188] ; (801b118 ) - 801b05a: 681b ldr r3, [r3, #0] - 801b05c: 61bb str r3, [r7, #24] - 801b05e: e00c b.n 801b07a - 801b060: 69bb ldr r3, [r7, #24] - 801b062: 68db ldr r3, [r3, #12] - 801b064: 687a ldr r2, [r7, #4] - 801b066: 429a cmp r2, r3 - 801b068: d104 bne.n 801b074 - 801b06a: 687b ldr r3, [r7, #4] - 801b06c: 68da ldr r2, [r3, #12] - 801b06e: 69bb ldr r3, [r7, #24] - 801b070: 60da str r2, [r3, #12] - 801b072: e005 b.n 801b080 - 801b074: 69bb ldr r3, [r7, #24] - 801b076: 68db ldr r3, [r3, #12] - 801b078: 61bb str r3, [r7, #24] - 801b07a: 69bb ldr r3, [r7, #24] - 801b07c: 2b00 cmp r3, #0 - 801b07e: d1ef bne.n 801b060 - 801b080: 687b ldr r3, [r7, #4] - 801b082: 2200 movs r2, #0 - 801b084: 60da str r2, [r3, #12] - 801b086: 4b1f ldr r3, [pc, #124] ; (801b104 ) - 801b088: 2201 movs r2, #1 - 801b08a: 701a strb r2, [r3, #0] - pcb->state = TIME_WAIT; - 801b08c: 687b ldr r3, [r7, #4] - 801b08e: 220a movs r2, #10 - 801b090: 751a strb r2, [r3, #20] - TCP_REG(&tcp_tw_pcbs, pcb); - 801b092: 4b1d ldr r3, [pc, #116] ; (801b108 ) - 801b094: 681a ldr r2, [r3, #0] - 801b096: 687b ldr r3, [r7, #4] - 801b098: 60da str r2, [r3, #12] - 801b09a: 4a1b ldr r2, [pc, #108] ; (801b108 ) - 801b09c: 687b ldr r3, [r7, #4] - 801b09e: 6013 str r3, [r2, #0] - 801b0a0: f003 f90e bl 801e2c0 - } - break; - 801b0a4: e026 b.n 801b0f4 - case LAST_ACK: - tcp_receive(pcb); - 801b0a6: 6878 ldr r0, [r7, #4] - 801b0a8: f000 f93c bl 801b324 - if ((flags & TCP_ACK) && ackno == pcb->snd_nxt && pcb->unsent == NULL) { - 801b0ac: 4b17 ldr r3, [pc, #92] ; (801b10c ) - 801b0ae: 781b ldrb r3, [r3, #0] - 801b0b0: f003 0310 and.w r3, r3, #16 - 801b0b4: 2b00 cmp r3, #0 - 801b0b6: d01f beq.n 801b0f8 - 801b0b8: 687b ldr r3, [r7, #4] - 801b0ba: 6d1a ldr r2, [r3, #80] ; 0x50 - 801b0bc: 4b14 ldr r3, [pc, #80] ; (801b110 ) - 801b0be: 681b ldr r3, [r3, #0] - 801b0c0: 429a cmp r2, r3 - 801b0c2: d119 bne.n 801b0f8 - 801b0c4: 687b ldr r3, [r7, #4] - 801b0c6: 6edb ldr r3, [r3, #108] ; 0x6c - 801b0c8: 2b00 cmp r3, #0 - 801b0ca: d115 bne.n 801b0f8 - 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; - 801b0cc: 4b11 ldr r3, [pc, #68] ; (801b114 ) - 801b0ce: 781b ldrb r3, [r3, #0] - 801b0d0: f043 0310 orr.w r3, r3, #16 - 801b0d4: b2da uxtb r2, r3 - 801b0d6: 4b0f ldr r3, [pc, #60] ; (801b114 ) - 801b0d8: 701a strb r2, [r3, #0] - } - break; - 801b0da: e00d b.n 801b0f8 - default: - break; - 801b0dc: bf00 nop - 801b0de: e00c b.n 801b0fa - break; - 801b0e0: bf00 nop - 801b0e2: e00a b.n 801b0fa - break; - 801b0e4: bf00 nop - 801b0e6: e008 b.n 801b0fa - break; - 801b0e8: bf00 nop - 801b0ea: e006 b.n 801b0fa - break; - 801b0ec: bf00 nop - 801b0ee: e004 b.n 801b0fa - break; - 801b0f0: bf00 nop - 801b0f2: e002 b.n 801b0fa - break; - 801b0f4: bf00 nop - 801b0f6: e000 b.n 801b0fa - break; - 801b0f8: bf00 nop - } - return ERR_OK; - 801b0fa: 2300 movs r3, #0 -} - 801b0fc: 4618 mov r0, r3 - 801b0fe: 3724 adds r7, #36 ; 0x24 - 801b100: 46bd mov sp, r7 - 801b102: bd90 pop {r4, r7, pc} - 801b104: 2401a494 .word 0x2401a494 - 801b108: 2401a490 .word 0x2401a490 - 801b10c: 2401a4c8 .word 0x2401a4c8 - 801b110: 2401a4c0 .word 0x2401a4c0 - 801b114: 2401a4c9 .word 0x2401a4c9 - 801b118: 2401a48c .word 0x2401a48c - -0801b11c : - * - * Called from tcp_receive() - */ -static void -tcp_oos_insert_segment(struct tcp_seg *cseg, struct tcp_seg *next) -{ - 801b11c: b590 push {r4, r7, lr} - 801b11e: b085 sub sp, #20 - 801b120: af00 add r7, sp, #0 - 801b122: 6078 str r0, [r7, #4] - 801b124: 6039 str r1, [r7, #0] - struct tcp_seg *old_seg; - - LWIP_ASSERT("tcp_oos_insert_segment: invalid cseg", cseg != NULL); - 801b126: 687b ldr r3, [r7, #4] - 801b128: 2b00 cmp r3, #0 - 801b12a: d106 bne.n 801b13a - 801b12c: 4b3b ldr r3, [pc, #236] ; (801b21c ) - 801b12e: f240 421f movw r2, #1055 ; 0x41f - 801b132: 493b ldr r1, [pc, #236] ; (801b220 ) - 801b134: 483b ldr r0, [pc, #236] ; (801b224 ) - 801b136: f006 fc27 bl 8021988 - - if (TCPH_FLAGS(cseg->tcphdr) & TCP_FIN) { - 801b13a: 687b ldr r3, [r7, #4] - 801b13c: 691b ldr r3, [r3, #16] - 801b13e: 899b ldrh r3, [r3, #12] - 801b140: b29b uxth r3, r3 - 801b142: 4618 mov r0, r3 - 801b144: f7fa fefc bl 8015f40 - 801b148: 4603 mov r3, r0 - 801b14a: b2db uxtb r3, r3 - 801b14c: f003 0301 and.w r3, r3, #1 - 801b150: 2b00 cmp r3, #0 - 801b152: d028 beq.n 801b1a6 - /* received segment overlaps all following segments */ - tcp_segs_free(next); - 801b154: 6838 ldr r0, [r7, #0] - 801b156: f7fe f98f bl 8019478 - next = NULL; - 801b15a: 2300 movs r3, #0 - 801b15c: 603b str r3, [r7, #0] - 801b15e: e056 b.n 801b20e - 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) { - 801b160: 683b ldr r3, [r7, #0] - 801b162: 691b ldr r3, [r3, #16] - 801b164: 899b ldrh r3, [r3, #12] - 801b166: b29b uxth r3, r3 - 801b168: 4618 mov r0, r3 - 801b16a: f7fa fee9 bl 8015f40 - 801b16e: 4603 mov r3, r0 - 801b170: b2db uxtb r3, r3 - 801b172: f003 0301 and.w r3, r3, #1 - 801b176: 2b00 cmp r3, #0 - 801b178: d00d beq.n 801b196 - TCPH_SET_FLAG(cseg->tcphdr, TCP_FIN); - 801b17a: 687b ldr r3, [r7, #4] - 801b17c: 691b ldr r3, [r3, #16] - 801b17e: 899b ldrh r3, [r3, #12] - 801b180: b29c uxth r4, r3 - 801b182: 2001 movs r0, #1 - 801b184: f7fa fedc bl 8015f40 - 801b188: 4603 mov r3, r0 - 801b18a: 461a mov r2, r3 - 801b18c: 687b ldr r3, [r7, #4] - 801b18e: 691b ldr r3, [r3, #16] - 801b190: 4322 orrs r2, r4 - 801b192: b292 uxth r2, r2 - 801b194: 819a strh r2, [r3, #12] - } - old_seg = next; - 801b196: 683b ldr r3, [r7, #0] - 801b198: 60fb str r3, [r7, #12] - next = next->next; - 801b19a: 683b ldr r3, [r7, #0] - 801b19c: 681b ldr r3, [r3, #0] - 801b19e: 603b str r3, [r7, #0] - tcp_seg_free(old_seg); - 801b1a0: 68f8 ldr r0, [r7, #12] - 801b1a2: f7fe f97e bl 80194a2 - while (next && - 801b1a6: 683b ldr r3, [r7, #0] - 801b1a8: 2b00 cmp r3, #0 - 801b1aa: d00e beq.n 801b1ca - TCP_SEQ_GEQ((seqno + cseg->len), - 801b1ac: 687b ldr r3, [r7, #4] - 801b1ae: 891b ldrh r3, [r3, #8] - 801b1b0: 461a mov r2, r3 - 801b1b2: 4b1d ldr r3, [pc, #116] ; (801b228 ) - 801b1b4: 681b ldr r3, [r3, #0] - 801b1b6: 441a add r2, r3 - 801b1b8: 683b ldr r3, [r7, #0] - 801b1ba: 691b ldr r3, [r3, #16] - 801b1bc: 685b ldr r3, [r3, #4] - 801b1be: 6839 ldr r1, [r7, #0] - 801b1c0: 8909 ldrh r1, [r1, #8] - 801b1c2: 440b add r3, r1 - 801b1c4: 1ad3 subs r3, r2, r3 - while (next && - 801b1c6: 2b00 cmp r3, #0 - 801b1c8: daca bge.n 801b160 - } - if (next && - 801b1ca: 683b ldr r3, [r7, #0] - 801b1cc: 2b00 cmp r3, #0 - 801b1ce: d01e beq.n 801b20e - TCP_SEQ_GT(seqno + cseg->len, next->tcphdr->seqno)) { - 801b1d0: 687b ldr r3, [r7, #4] - 801b1d2: 891b ldrh r3, [r3, #8] - 801b1d4: 461a mov r2, r3 - 801b1d6: 4b14 ldr r3, [pc, #80] ; (801b228 ) - 801b1d8: 681b ldr r3, [r3, #0] - 801b1da: 441a add r2, r3 - 801b1dc: 683b ldr r3, [r7, #0] - 801b1de: 691b ldr r3, [r3, #16] - 801b1e0: 685b ldr r3, [r3, #4] - 801b1e2: 1ad3 subs r3, r2, r3 - if (next && - 801b1e4: 2b00 cmp r3, #0 - 801b1e6: dd12 ble.n 801b20e - /* We need to trim the incoming segment. */ - cseg->len = (u16_t)(next->tcphdr->seqno - seqno); - 801b1e8: 683b ldr r3, [r7, #0] - 801b1ea: 691b ldr r3, [r3, #16] - 801b1ec: 685b ldr r3, [r3, #4] - 801b1ee: b29a uxth r2, r3 - 801b1f0: 4b0d ldr r3, [pc, #52] ; (801b228 ) - 801b1f2: 681b ldr r3, [r3, #0] - 801b1f4: b29b uxth r3, r3 - 801b1f6: 1ad3 subs r3, r2, r3 - 801b1f8: b29a uxth r2, r3 - 801b1fa: 687b ldr r3, [r7, #4] - 801b1fc: 811a strh r2, [r3, #8] - pbuf_realloc(cseg->p, cseg->len); - 801b1fe: 687b ldr r3, [r7, #4] - 801b200: 685a ldr r2, [r3, #4] - 801b202: 687b ldr r3, [r7, #4] - 801b204: 891b ldrh r3, [r3, #8] - 801b206: 4619 mov r1, r3 - 801b208: 4610 mov r0, r2 - 801b20a: f7fc faef bl 80177ec - } - } - cseg->next = next; - 801b20e: 687b ldr r3, [r7, #4] - 801b210: 683a ldr r2, [r7, #0] - 801b212: 601a str r2, [r3, #0] -} - 801b214: bf00 nop - 801b216: 3714 adds r7, #20 - 801b218: 46bd mov sp, r7 - 801b21a: bd90 pop {r4, r7, pc} - 801b21c: 08025338 .word 0x08025338 - 801b220: 080255f8 .word 0x080255f8 - 801b224: 08025384 .word 0x08025384 - 801b228: 2401a4bc .word 0x2401a4bc - -0801b22c : - -/** 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) -{ - 801b22c: b5b0 push {r4, r5, r7, lr} - 801b22e: b086 sub sp, #24 - 801b230: af00 add r7, sp, #0 - 801b232: 60f8 str r0, [r7, #12] - 801b234: 60b9 str r1, [r7, #8] - 801b236: 607a str r2, [r7, #4] - 801b238: 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 && - 801b23a: e03e b.n 801b2ba - 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; - 801b23c: 68bb ldr r3, [r7, #8] - 801b23e: 617b str r3, [r7, #20] - seg_list = seg_list->next; - 801b240: 68bb ldr r3, [r7, #8] - 801b242: 681b ldr r3, [r3, #0] - 801b244: 60bb str r3, [r7, #8] - - clen = pbuf_clen(next->p); - 801b246: 697b ldr r3, [r7, #20] - 801b248: 685b ldr r3, [r3, #4] - 801b24a: 4618 mov r0, r3 - 801b24c: f7fc fce2 bl 8017c14 - 801b250: 4603 mov r3, r0 - 801b252: 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)); - 801b254: 68fb ldr r3, [r7, #12] - 801b256: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 801b25a: 8a7a ldrh r2, [r7, #18] - 801b25c: 429a cmp r2, r3 - 801b25e: d906 bls.n 801b26e - 801b260: 4b2a ldr r3, [pc, #168] ; (801b30c ) - 801b262: f240 4257 movw r2, #1111 ; 0x457 - 801b266: 492a ldr r1, [pc, #168] ; (801b310 ) - 801b268: 482a ldr r0, [pc, #168] ; (801b314 ) - 801b26a: f006 fb8d bl 8021988 - - pcb->snd_queuelen = (u16_t)(pcb->snd_queuelen - clen); - 801b26e: 68fb ldr r3, [r7, #12] - 801b270: f8b3 2066 ldrh.w r2, [r3, #102] ; 0x66 - 801b274: 8a7b ldrh r3, [r7, #18] - 801b276: 1ad3 subs r3, r2, r3 - 801b278: b29a uxth r2, r3 - 801b27a: 68fb ldr r3, [r7, #12] - 801b27c: f8a3 2066 strh.w r2, [r3, #102] ; 0x66 - recv_acked = (tcpwnd_size_t)(recv_acked + next->len); - 801b280: 697b ldr r3, [r7, #20] - 801b282: 891a ldrh r2, [r3, #8] - 801b284: 4b24 ldr r3, [pc, #144] ; (801b318 ) - 801b286: 881b ldrh r3, [r3, #0] - 801b288: 4413 add r3, r2 - 801b28a: b29a uxth r2, r3 - 801b28c: 4b22 ldr r3, [pc, #136] ; (801b318 ) - 801b28e: 801a strh r2, [r3, #0] - tcp_seg_free(next); - 801b290: 6978 ldr r0, [r7, #20] - 801b292: f7fe f906 bl 80194a2 - - 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) { - 801b296: 68fb ldr r3, [r7, #12] - 801b298: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 801b29c: 2b00 cmp r3, #0 - 801b29e: d00c beq.n 801b2ba - LWIP_ASSERT("tcp_receive: valid queue length", - 801b2a0: 68bb ldr r3, [r7, #8] - 801b2a2: 2b00 cmp r3, #0 - 801b2a4: d109 bne.n 801b2ba - 801b2a6: 683b ldr r3, [r7, #0] - 801b2a8: 2b00 cmp r3, #0 - 801b2aa: d106 bne.n 801b2ba - 801b2ac: 4b17 ldr r3, [pc, #92] ; (801b30c ) - 801b2ae: f240 4261 movw r2, #1121 ; 0x461 - 801b2b2: 491a ldr r1, [pc, #104] ; (801b31c ) - 801b2b4: 4817 ldr r0, [pc, #92] ; (801b314 ) - 801b2b6: f006 fb67 bl 8021988 - while (seg_list != NULL && - 801b2ba: 68bb ldr r3, [r7, #8] - 801b2bc: 2b00 cmp r3, #0 - 801b2be: d020 beq.n 801b302 - TCP_SEQ_LEQ(lwip_ntohl(seg_list->tcphdr->seqno) + - 801b2c0: 68bb ldr r3, [r7, #8] - 801b2c2: 691b ldr r3, [r3, #16] - 801b2c4: 685b ldr r3, [r3, #4] - 801b2c6: 4618 mov r0, r3 - 801b2c8: f7fa fe4f bl 8015f6a - 801b2cc: 4604 mov r4, r0 - 801b2ce: 68bb ldr r3, [r7, #8] - 801b2d0: 891b ldrh r3, [r3, #8] - 801b2d2: 461d mov r5, r3 - 801b2d4: 68bb ldr r3, [r7, #8] - 801b2d6: 691b ldr r3, [r3, #16] - 801b2d8: 899b ldrh r3, [r3, #12] - 801b2da: b29b uxth r3, r3 - 801b2dc: 4618 mov r0, r3 - 801b2de: f7fa fe2f bl 8015f40 - 801b2e2: 4603 mov r3, r0 - 801b2e4: b2db uxtb r3, r3 - 801b2e6: f003 0303 and.w r3, r3, #3 - 801b2ea: 2b00 cmp r3, #0 - 801b2ec: d001 beq.n 801b2f2 - 801b2ee: 2301 movs r3, #1 - 801b2f0: e000 b.n 801b2f4 - 801b2f2: 2300 movs r3, #0 - 801b2f4: 442b add r3, r5 - 801b2f6: 18e2 adds r2, r4, r3 - 801b2f8: 4b09 ldr r3, [pc, #36] ; (801b320 ) - 801b2fa: 681b ldr r3, [r3, #0] - 801b2fc: 1ad3 subs r3, r2, r3 - while (seg_list != NULL && - 801b2fe: 2b00 cmp r3, #0 - 801b300: dd9c ble.n 801b23c - seg_list != NULL || dbg_other_seg_list != NULL); - } - } - return seg_list; - 801b302: 68bb ldr r3, [r7, #8] -} - 801b304: 4618 mov r0, r3 - 801b306: 3718 adds r7, #24 - 801b308: 46bd mov sp, r7 - 801b30a: bdb0 pop {r4, r5, r7, pc} - 801b30c: 08025338 .word 0x08025338 - 801b310: 08025620 .word 0x08025620 - 801b314: 08025384 .word 0x08025384 - 801b318: 2401a4c4 .word 0x2401a4c4 - 801b31c: 08025648 .word 0x08025648 - 801b320: 2401a4c0 .word 0x2401a4c0 - -0801b324 : - * - * Called from tcp_process(). - */ -static void -tcp_receive(struct tcp_pcb *pcb) -{ - 801b324: b5b0 push {r4, r5, r7, lr} - 801b326: b094 sub sp, #80 ; 0x50 - 801b328: af00 add r7, sp, #0 - 801b32a: 6078 str r0, [r7, #4] - s16_t m; - u32_t right_wnd_edge; - int found_dupack = 0; - 801b32c: 2300 movs r3, #0 - 801b32e: 64bb str r3, [r7, #72] ; 0x48 - - LWIP_ASSERT("tcp_receive: invalid pcb", pcb != NULL); - 801b330: 687b ldr r3, [r7, #4] - 801b332: 2b00 cmp r3, #0 - 801b334: d106 bne.n 801b344 - 801b336: 4b91 ldr r3, [pc, #580] ; (801b57c ) - 801b338: f240 427b movw r2, #1147 ; 0x47b - 801b33c: 4990 ldr r1, [pc, #576] ; (801b580 ) - 801b33e: 4891 ldr r0, [pc, #580] ; (801b584 ) - 801b340: f006 fb22 bl 8021988 - LWIP_ASSERT("tcp_receive: wrong state", pcb->state >= ESTABLISHED); - 801b344: 687b ldr r3, [r7, #4] - 801b346: 7d1b ldrb r3, [r3, #20] - 801b348: 2b03 cmp r3, #3 - 801b34a: d806 bhi.n 801b35a - 801b34c: 4b8b ldr r3, [pc, #556] ; (801b57c ) - 801b34e: f240 427c movw r2, #1148 ; 0x47c - 801b352: 498d ldr r1, [pc, #564] ; (801b588 ) - 801b354: 488b ldr r0, [pc, #556] ; (801b584 ) - 801b356: f006 fb17 bl 8021988 - - if (flags & TCP_ACK) { - 801b35a: 4b8c ldr r3, [pc, #560] ; (801b58c ) - 801b35c: 781b ldrb r3, [r3, #0] - 801b35e: f003 0310 and.w r3, r3, #16 - 801b362: 2b00 cmp r3, #0 - 801b364: f000 8264 beq.w 801b830 - right_wnd_edge = pcb->snd_wnd + pcb->snd_wl2; - 801b368: 687b ldr r3, [r7, #4] - 801b36a: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 - 801b36e: 461a mov r2, r3 - 801b370: 687b ldr r3, [r7, #4] - 801b372: 6d9b ldr r3, [r3, #88] ; 0x58 - 801b374: 4413 add r3, r2 - 801b376: 633b str r3, [r7, #48] ; 0x30 - - /* Update window. */ - if (TCP_SEQ_LT(pcb->snd_wl1, seqno) || - 801b378: 687b ldr r3, [r7, #4] - 801b37a: 6d5a ldr r2, [r3, #84] ; 0x54 - 801b37c: 4b84 ldr r3, [pc, #528] ; (801b590 ) - 801b37e: 681b ldr r3, [r3, #0] - 801b380: 1ad3 subs r3, r2, r3 - 801b382: 2b00 cmp r3, #0 - 801b384: db1b blt.n 801b3be - (pcb->snd_wl1 == seqno && TCP_SEQ_LT(pcb->snd_wl2, ackno)) || - 801b386: 687b ldr r3, [r7, #4] - 801b388: 6d5a ldr r2, [r3, #84] ; 0x54 - 801b38a: 4b81 ldr r3, [pc, #516] ; (801b590 ) - 801b38c: 681b ldr r3, [r3, #0] - if (TCP_SEQ_LT(pcb->snd_wl1, seqno) || - 801b38e: 429a cmp r2, r3 - 801b390: d106 bne.n 801b3a0 - (pcb->snd_wl1 == seqno && TCP_SEQ_LT(pcb->snd_wl2, ackno)) || - 801b392: 687b ldr r3, [r7, #4] - 801b394: 6d9a ldr r2, [r3, #88] ; 0x58 - 801b396: 4b7f ldr r3, [pc, #508] ; (801b594 ) - 801b398: 681b ldr r3, [r3, #0] - 801b39a: 1ad3 subs r3, r2, r3 - 801b39c: 2b00 cmp r3, #0 - 801b39e: db0e blt.n 801b3be - (pcb->snd_wl2 == ackno && (u32_t)SND_WND_SCALE(pcb, tcphdr->wnd) > pcb->snd_wnd)) { - 801b3a0: 687b ldr r3, [r7, #4] - 801b3a2: 6d9a ldr r2, [r3, #88] ; 0x58 - 801b3a4: 4b7b ldr r3, [pc, #492] ; (801b594 ) - 801b3a6: 681b ldr r3, [r3, #0] - (pcb->snd_wl1 == seqno && TCP_SEQ_LT(pcb->snd_wl2, ackno)) || - 801b3a8: 429a cmp r2, r3 - 801b3aa: d125 bne.n 801b3f8 - (pcb->snd_wl2 == ackno && (u32_t)SND_WND_SCALE(pcb, tcphdr->wnd) > pcb->snd_wnd)) { - 801b3ac: 4b7a ldr r3, [pc, #488] ; (801b598 ) - 801b3ae: 681b ldr r3, [r3, #0] - 801b3b0: 89db ldrh r3, [r3, #14] - 801b3b2: b29a uxth r2, r3 - 801b3b4: 687b ldr r3, [r7, #4] - 801b3b6: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 - 801b3ba: 429a cmp r2, r3 - 801b3bc: d91c bls.n 801b3f8 - pcb->snd_wnd = SND_WND_SCALE(pcb, tcphdr->wnd); - 801b3be: 4b76 ldr r3, [pc, #472] ; (801b598 ) - 801b3c0: 681b ldr r3, [r3, #0] - 801b3c2: 89db ldrh r3, [r3, #14] - 801b3c4: b29a uxth r2, r3 - 801b3c6: 687b ldr r3, [r7, #4] - 801b3c8: 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) { - 801b3cc: 687b ldr r3, [r7, #4] - 801b3ce: f8b3 2062 ldrh.w r2, [r3, #98] ; 0x62 - 801b3d2: 687b ldr r3, [r7, #4] - 801b3d4: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 - 801b3d8: 429a cmp r2, r3 - 801b3da: d205 bcs.n 801b3e8 - pcb->snd_wnd_max = pcb->snd_wnd; - 801b3dc: 687b ldr r3, [r7, #4] - 801b3de: f8b3 2060 ldrh.w r2, [r3, #96] ; 0x60 - 801b3e2: 687b ldr r3, [r7, #4] - 801b3e4: f8a3 2062 strh.w r2, [r3, #98] ; 0x62 - } - pcb->snd_wl1 = seqno; - 801b3e8: 4b69 ldr r3, [pc, #420] ; (801b590 ) - 801b3ea: 681a ldr r2, [r3, #0] - 801b3ec: 687b ldr r3, [r7, #4] - 801b3ee: 655a str r2, [r3, #84] ; 0x54 - pcb->snd_wl2 = ackno; - 801b3f0: 4b68 ldr r3, [pc, #416] ; (801b594 ) - 801b3f2: 681a ldr r2, [r3, #0] - 801b3f4: 687b ldr r3, [r7, #4] - 801b3f6: 659a str r2, [r3, #88] ; 0x58 - * If it only passes 1, should reset dupack counter - * - */ - - /* Clause 1 */ - if (TCP_SEQ_LEQ(ackno, pcb->lastack)) { - 801b3f8: 4b66 ldr r3, [pc, #408] ; (801b594 ) - 801b3fa: 681a ldr r2, [r3, #0] - 801b3fc: 687b ldr r3, [r7, #4] - 801b3fe: 6c5b ldr r3, [r3, #68] ; 0x44 - 801b400: 1ad3 subs r3, r2, r3 - 801b402: 2b00 cmp r3, #0 - 801b404: dc58 bgt.n 801b4b8 - /* Clause 2 */ - if (tcplen == 0) { - 801b406: 4b65 ldr r3, [pc, #404] ; (801b59c ) - 801b408: 881b ldrh r3, [r3, #0] - 801b40a: 2b00 cmp r3, #0 - 801b40c: d14b bne.n 801b4a6 - /* Clause 3 */ - if (pcb->snd_wl2 + pcb->snd_wnd == right_wnd_edge) { - 801b40e: 687b ldr r3, [r7, #4] - 801b410: 6d9b ldr r3, [r3, #88] ; 0x58 - 801b412: 687a ldr r2, [r7, #4] - 801b414: f8b2 2060 ldrh.w r2, [r2, #96] ; 0x60 - 801b418: 4413 add r3, r2 - 801b41a: 6b3a ldr r2, [r7, #48] ; 0x30 - 801b41c: 429a cmp r2, r3 - 801b41e: d142 bne.n 801b4a6 - /* Clause 4 */ - if (pcb->rtime >= 0) { - 801b420: 687b ldr r3, [r7, #4] - 801b422: f9b3 3030 ldrsh.w r3, [r3, #48] ; 0x30 - 801b426: 2b00 cmp r3, #0 - 801b428: db3d blt.n 801b4a6 - /* Clause 5 */ - if (pcb->lastack == ackno) { - 801b42a: 687b ldr r3, [r7, #4] - 801b42c: 6c5a ldr r2, [r3, #68] ; 0x44 - 801b42e: 4b59 ldr r3, [pc, #356] ; (801b594 ) - 801b430: 681b ldr r3, [r3, #0] - 801b432: 429a cmp r2, r3 - 801b434: d137 bne.n 801b4a6 - found_dupack = 1; - 801b436: 2301 movs r3, #1 - 801b438: 64bb str r3, [r7, #72] ; 0x48 - if ((u8_t)(pcb->dupacks + 1) > pcb->dupacks) { - 801b43a: 687b ldr r3, [r7, #4] - 801b43c: f893 3043 ldrb.w r3, [r3, #67] ; 0x43 - 801b440: 2bff cmp r3, #255 ; 0xff - 801b442: d007 beq.n 801b454 - ++pcb->dupacks; - 801b444: 687b ldr r3, [r7, #4] - 801b446: f893 3043 ldrb.w r3, [r3, #67] ; 0x43 - 801b44a: 3301 adds r3, #1 - 801b44c: b2da uxtb r2, r3 - 801b44e: 687b ldr r3, [r7, #4] - 801b450: f883 2043 strb.w r2, [r3, #67] ; 0x43 - } - if (pcb->dupacks > 3) { - 801b454: 687b ldr r3, [r7, #4] - 801b456: f893 3043 ldrb.w r3, [r3, #67] ; 0x43 - 801b45a: 2b03 cmp r3, #3 - 801b45c: d91b bls.n 801b496 - /* Inflate the congestion window */ - TCP_WND_INC(pcb->cwnd, pcb->mss); - 801b45e: 687b ldr r3, [r7, #4] - 801b460: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 - 801b464: 687b ldr r3, [r7, #4] - 801b466: 8e5b ldrh r3, [r3, #50] ; 0x32 - 801b468: 4413 add r3, r2 - 801b46a: b29a uxth r2, r3 - 801b46c: 687b ldr r3, [r7, #4] - 801b46e: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 - 801b472: 429a cmp r2, r3 - 801b474: d30a bcc.n 801b48c - 801b476: 687b ldr r3, [r7, #4] - 801b478: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 - 801b47c: 687b ldr r3, [r7, #4] - 801b47e: 8e5b ldrh r3, [r3, #50] ; 0x32 - 801b480: 4413 add r3, r2 - 801b482: b29a uxth r2, r3 - 801b484: 687b ldr r3, [r7, #4] - 801b486: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 - 801b48a: e004 b.n 801b496 - 801b48c: 687b ldr r3, [r7, #4] - 801b48e: f64f 72ff movw r2, #65535 ; 0xffff - 801b492: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 - } - if (pcb->dupacks >= 3) { - 801b496: 687b ldr r3, [r7, #4] - 801b498: f893 3043 ldrb.w r3, [r3, #67] ; 0x43 - 801b49c: 2b02 cmp r3, #2 - 801b49e: d902 bls.n 801b4a6 - /* Do fast retransmit (checked via TF_INFR, not via dupacks count) */ - tcp_rexmit_fast(pcb); - 801b4a0: 6878 ldr r0, [r7, #4] - 801b4a2: f002 fbb1 bl 801dc08 - } - } - } - /* If Clause (1) or more is true, but not a duplicate ack, reset - * count of consecutive duplicate acks */ - if (!found_dupack) { - 801b4a6: 6cbb ldr r3, [r7, #72] ; 0x48 - 801b4a8: 2b00 cmp r3, #0 - 801b4aa: f040 8161 bne.w 801b770 - pcb->dupacks = 0; - 801b4ae: 687b ldr r3, [r7, #4] - 801b4b0: 2200 movs r2, #0 - 801b4b2: f883 2043 strb.w r2, [r3, #67] ; 0x43 - 801b4b6: e15b b.n 801b770 - } - } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) { - 801b4b8: 4b36 ldr r3, [pc, #216] ; (801b594 ) - 801b4ba: 681a ldr r2, [r3, #0] - 801b4bc: 687b ldr r3, [r7, #4] - 801b4be: 6c5b ldr r3, [r3, #68] ; 0x44 - 801b4c0: 1ad3 subs r3, r2, r3 - 801b4c2: 3b01 subs r3, #1 - 801b4c4: 2b00 cmp r3, #0 - 801b4c6: f2c0 814e blt.w 801b766 - 801b4ca: 4b32 ldr r3, [pc, #200] ; (801b594 ) - 801b4cc: 681a ldr r2, [r3, #0] - 801b4ce: 687b ldr r3, [r7, #4] - 801b4d0: 6d1b ldr r3, [r3, #80] ; 0x50 - 801b4d2: 1ad3 subs r3, r2, r3 - 801b4d4: 2b00 cmp r3, #0 - 801b4d6: f300 8146 bgt.w 801b766 - 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) { - 801b4da: 687b ldr r3, [r7, #4] - 801b4dc: 8b5b ldrh r3, [r3, #26] - 801b4de: f003 0304 and.w r3, r3, #4 - 801b4e2: 2b00 cmp r3, #0 - 801b4e4: d010 beq.n 801b508 - tcp_clear_flags(pcb, TF_INFR); - 801b4e6: 687b ldr r3, [r7, #4] - 801b4e8: 8b5b ldrh r3, [r3, #26] - 801b4ea: f023 0304 bic.w r3, r3, #4 - 801b4ee: b29a uxth r2, r3 - 801b4f0: 687b ldr r3, [r7, #4] - 801b4f2: 835a strh r2, [r3, #26] - pcb->cwnd = pcb->ssthresh; - 801b4f4: 687b ldr r3, [r7, #4] - 801b4f6: f8b3 204a ldrh.w r2, [r3, #74] ; 0x4a - 801b4fa: 687b ldr r3, [r7, #4] - 801b4fc: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 - pcb->bytes_acked = 0; - 801b500: 687b ldr r3, [r7, #4] - 801b502: 2200 movs r2, #0 - 801b504: f8a3 206a strh.w r2, [r3, #106] ; 0x6a - } - - /* Reset the number of retransmissions. */ - pcb->nrtx = 0; - 801b508: 687b ldr r3, [r7, #4] - 801b50a: 2200 movs r2, #0 - 801b50c: f883 2042 strb.w r2, [r3, #66] ; 0x42 - - /* Reset the retransmission time-out. */ - pcb->rto = (s16_t)((pcb->sa >> 3) + pcb->sv); - 801b510: 687b ldr r3, [r7, #4] - 801b512: f9b3 303c ldrsh.w r3, [r3, #60] ; 0x3c - 801b516: 10db asrs r3, r3, #3 - 801b518: b21b sxth r3, r3 - 801b51a: b29a uxth r2, r3 - 801b51c: 687b ldr r3, [r7, #4] - 801b51e: f9b3 303e ldrsh.w r3, [r3, #62] ; 0x3e - 801b522: b29b uxth r3, r3 - 801b524: 4413 add r3, r2 - 801b526: b29b uxth r3, r3 - 801b528: b21a sxth r2, r3 - 801b52a: 687b ldr r3, [r7, #4] - 801b52c: f8a3 2040 strh.w r2, [r3, #64] ; 0x40 - - /* Record how much data this ACK acks */ - acked = (tcpwnd_size_t)(ackno - pcb->lastack); - 801b530: 4b18 ldr r3, [pc, #96] ; (801b594 ) - 801b532: 681b ldr r3, [r3, #0] - 801b534: b29a uxth r2, r3 - 801b536: 687b ldr r3, [r7, #4] - 801b538: 6c5b ldr r3, [r3, #68] ; 0x44 - 801b53a: b29b uxth r3, r3 - 801b53c: 1ad3 subs r3, r2, r3 - 801b53e: 85fb strh r3, [r7, #46] ; 0x2e - - /* Reset the fast retransmit variables. */ - pcb->dupacks = 0; - 801b540: 687b ldr r3, [r7, #4] - 801b542: 2200 movs r2, #0 - 801b544: f883 2043 strb.w r2, [r3, #67] ; 0x43 - pcb->lastack = ackno; - 801b548: 4b12 ldr r3, [pc, #72] ; (801b594 ) - 801b54a: 681a ldr r2, [r3, #0] - 801b54c: 687b ldr r3, [r7, #4] - 801b54e: 645a str r2, [r3, #68] ; 0x44 - - /* Update the congestion control variables (cwnd and - ssthresh). */ - if (pcb->state >= ESTABLISHED) { - 801b550: 687b ldr r3, [r7, #4] - 801b552: 7d1b ldrb r3, [r3, #20] - 801b554: 2b03 cmp r3, #3 - 801b556: f240 8097 bls.w 801b688 - if (pcb->cwnd < pcb->ssthresh) { - 801b55a: 687b ldr r3, [r7, #4] - 801b55c: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 - 801b560: 687b ldr r3, [r7, #4] - 801b562: f8b3 304a ldrh.w r3, [r3, #74] ; 0x4a - 801b566: 429a cmp r2, r3 - 801b568: d245 bcs.n 801b5f6 - tcpwnd_size_t increase; - /* limit to 1 SMSS segment during period following RTO */ - u8_t num_seg = (pcb->flags & TF_RTO) ? 1 : 2; - 801b56a: 687b ldr r3, [r7, #4] - 801b56c: 8b5b ldrh r3, [r3, #26] - 801b56e: f403 6300 and.w r3, r3, #2048 ; 0x800 - 801b572: 2b00 cmp r3, #0 - 801b574: d014 beq.n 801b5a0 - 801b576: 2301 movs r3, #1 - 801b578: e013 b.n 801b5a2 - 801b57a: bf00 nop - 801b57c: 08025338 .word 0x08025338 - 801b580: 08025668 .word 0x08025668 - 801b584: 08025384 .word 0x08025384 - 801b588: 08025684 .word 0x08025684 - 801b58c: 2401a4c8 .word 0x2401a4c8 - 801b590: 2401a4bc .word 0x2401a4bc - 801b594: 2401a4c0 .word 0x2401a4c0 - 801b598: 2401a4ac .word 0x2401a4ac - 801b59c: 2401a4c6 .word 0x2401a4c6 - 801b5a0: 2302 movs r3, #2 - 801b5a2: 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)); - 801b5a6: f897 302d ldrb.w r3, [r7, #45] ; 0x2d - 801b5aa: b29a uxth r2, r3 - 801b5ac: 687b ldr r3, [r7, #4] - 801b5ae: 8e5b ldrh r3, [r3, #50] ; 0x32 - 801b5b0: fb12 f303 smulbb r3, r2, r3 - 801b5b4: b29b uxth r3, r3 - 801b5b6: 8dfa ldrh r2, [r7, #46] ; 0x2e - 801b5b8: 4293 cmp r3, r2 - 801b5ba: bf28 it cs - 801b5bc: 4613 movcs r3, r2 - 801b5be: 857b strh r3, [r7, #42] ; 0x2a - TCP_WND_INC(pcb->cwnd, increase); - 801b5c0: 687b ldr r3, [r7, #4] - 801b5c2: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 - 801b5c6: 8d7b ldrh r3, [r7, #42] ; 0x2a - 801b5c8: 4413 add r3, r2 - 801b5ca: b29a uxth r2, r3 - 801b5cc: 687b ldr r3, [r7, #4] - 801b5ce: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 - 801b5d2: 429a cmp r2, r3 - 801b5d4: d309 bcc.n 801b5ea - 801b5d6: 687b ldr r3, [r7, #4] - 801b5d8: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 - 801b5dc: 8d7b ldrh r3, [r7, #42] ; 0x2a - 801b5de: 4413 add r3, r2 - 801b5e0: b29a uxth r2, r3 - 801b5e2: 687b ldr r3, [r7, #4] - 801b5e4: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 - 801b5e8: e04e b.n 801b688 - 801b5ea: 687b ldr r3, [r7, #4] - 801b5ec: f64f 72ff movw r2, #65535 ; 0xffff - 801b5f0: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 - 801b5f4: e048 b.n 801b688 - 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); - 801b5f6: 687b ldr r3, [r7, #4] - 801b5f8: f8b3 206a ldrh.w r2, [r3, #106] ; 0x6a - 801b5fc: 8dfb ldrh r3, [r7, #46] ; 0x2e - 801b5fe: 4413 add r3, r2 - 801b600: b29a uxth r2, r3 - 801b602: 687b ldr r3, [r7, #4] - 801b604: f8b3 306a ldrh.w r3, [r3, #106] ; 0x6a - 801b608: 429a cmp r2, r3 - 801b60a: d309 bcc.n 801b620 - 801b60c: 687b ldr r3, [r7, #4] - 801b60e: f8b3 206a ldrh.w r2, [r3, #106] ; 0x6a - 801b612: 8dfb ldrh r3, [r7, #46] ; 0x2e - 801b614: 4413 add r3, r2 - 801b616: b29a uxth r2, r3 - 801b618: 687b ldr r3, [r7, #4] - 801b61a: f8a3 206a strh.w r2, [r3, #106] ; 0x6a - 801b61e: e004 b.n 801b62a - 801b620: 687b ldr r3, [r7, #4] - 801b622: f64f 72ff movw r2, #65535 ; 0xffff - 801b626: f8a3 206a strh.w r2, [r3, #106] ; 0x6a - if (pcb->bytes_acked >= pcb->cwnd) { - 801b62a: 687b ldr r3, [r7, #4] - 801b62c: f8b3 206a ldrh.w r2, [r3, #106] ; 0x6a - 801b630: 687b ldr r3, [r7, #4] - 801b632: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 - 801b636: 429a cmp r2, r3 - 801b638: d326 bcc.n 801b688 - pcb->bytes_acked = (tcpwnd_size_t)(pcb->bytes_acked - pcb->cwnd); - 801b63a: 687b ldr r3, [r7, #4] - 801b63c: f8b3 206a ldrh.w r2, [r3, #106] ; 0x6a - 801b640: 687b ldr r3, [r7, #4] - 801b642: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 - 801b646: 1ad3 subs r3, r2, r3 - 801b648: b29a uxth r2, r3 - 801b64a: 687b ldr r3, [r7, #4] - 801b64c: f8a3 206a strh.w r2, [r3, #106] ; 0x6a - TCP_WND_INC(pcb->cwnd, pcb->mss); - 801b650: 687b ldr r3, [r7, #4] - 801b652: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 - 801b656: 687b ldr r3, [r7, #4] - 801b658: 8e5b ldrh r3, [r3, #50] ; 0x32 - 801b65a: 4413 add r3, r2 - 801b65c: b29a uxth r2, r3 - 801b65e: 687b ldr r3, [r7, #4] - 801b660: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 - 801b664: 429a cmp r2, r3 - 801b666: d30a bcc.n 801b67e - 801b668: 687b ldr r3, [r7, #4] - 801b66a: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 - 801b66e: 687b ldr r3, [r7, #4] - 801b670: 8e5b ldrh r3, [r3, #50] ; 0x32 - 801b672: 4413 add r3, r2 - 801b674: b29a uxth r2, r3 - 801b676: 687b ldr r3, [r7, #4] - 801b678: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 - 801b67c: e004 b.n 801b688 - 801b67e: 687b ldr r3, [r7, #4] - 801b680: f64f 72ff movw r2, #65535 ; 0xffff - 801b684: 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); - 801b688: 687b ldr r3, [r7, #4] - 801b68a: 6f19 ldr r1, [r3, #112] ; 0x70 - 801b68c: 687b ldr r3, [r7, #4] - 801b68e: 6edb ldr r3, [r3, #108] ; 0x6c - 801b690: 4a98 ldr r2, [pc, #608] ; (801b8f4 ) - 801b692: 6878 ldr r0, [r7, #4] - 801b694: f7ff fdca bl 801b22c - 801b698: 4602 mov r2, r0 - 801b69a: 687b ldr r3, [r7, #4] - 801b69c: 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); - 801b69e: 687b ldr r3, [r7, #4] - 801b6a0: 6ed9 ldr r1, [r3, #108] ; 0x6c - 801b6a2: 687b ldr r3, [r7, #4] - 801b6a4: 6f1b ldr r3, [r3, #112] ; 0x70 - 801b6a6: 4a94 ldr r2, [pc, #592] ; (801b8f8 ) - 801b6a8: 6878 ldr r0, [r7, #4] - 801b6aa: f7ff fdbf bl 801b22c - 801b6ae: 4602 mov r2, r0 - 801b6b0: 687b ldr r3, [r7, #4] - 801b6b2: 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) { - 801b6b4: 687b ldr r3, [r7, #4] - 801b6b6: 6f1b ldr r3, [r3, #112] ; 0x70 - 801b6b8: 2b00 cmp r3, #0 - 801b6ba: d104 bne.n 801b6c6 - pcb->rtime = -1; - 801b6bc: 687b ldr r3, [r7, #4] - 801b6be: f64f 72ff movw r2, #65535 ; 0xffff - 801b6c2: 861a strh r2, [r3, #48] ; 0x30 - 801b6c4: e002 b.n 801b6cc - } else { - pcb->rtime = 0; - 801b6c6: 687b ldr r3, [r7, #4] - 801b6c8: 2200 movs r2, #0 - 801b6ca: 861a strh r2, [r3, #48] ; 0x30 - } - - pcb->polltmr = 0; - 801b6cc: 687b ldr r3, [r7, #4] - 801b6ce: 2200 movs r2, #0 - 801b6d0: 771a strb r2, [r3, #28] - -#if TCP_OVERSIZE - if (pcb->unsent == NULL) { - 801b6d2: 687b ldr r3, [r7, #4] - 801b6d4: 6edb ldr r3, [r3, #108] ; 0x6c - 801b6d6: 2b00 cmp r3, #0 - 801b6d8: d103 bne.n 801b6e2 - pcb->unsent_oversize = 0; - 801b6da: 687b ldr r3, [r7, #4] - 801b6dc: 2200 movs r2, #0 - 801b6de: 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); - 801b6e2: 687b ldr r3, [r7, #4] - 801b6e4: f8b3 2064 ldrh.w r2, [r3, #100] ; 0x64 - 801b6e8: 4b84 ldr r3, [pc, #528] ; (801b8fc ) - 801b6ea: 881b ldrh r3, [r3, #0] - 801b6ec: 4413 add r3, r2 - 801b6ee: b29a uxth r2, r3 - 801b6f0: 687b ldr r3, [r7, #4] - 801b6f2: f8a3 2064 strh.w r2, [r3, #100] ; 0x64 - /* check if this ACK ends our retransmission of in-flight data */ - if (pcb->flags & TF_RTO) { - 801b6f6: 687b ldr r3, [r7, #4] - 801b6f8: 8b5b ldrh r3, [r3, #26] - 801b6fa: f403 6300 and.w r3, r3, #2048 ; 0x800 - 801b6fe: 2b00 cmp r3, #0 - 801b700: d035 beq.n 801b76e - /* 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) { - 801b702: 687b ldr r3, [r7, #4] - 801b704: 6f1b ldr r3, [r3, #112] ; 0x70 - 801b706: 2b00 cmp r3, #0 - 801b708: d118 bne.n 801b73c - if ((pcb->unsent == NULL) || - 801b70a: 687b ldr r3, [r7, #4] - 801b70c: 6edb ldr r3, [r3, #108] ; 0x6c - 801b70e: 2b00 cmp r3, #0 - 801b710: d00c beq.n 801b72c - (TCP_SEQ_LEQ(pcb->rto_end, lwip_ntohl(pcb->unsent->tcphdr->seqno)))) { - 801b712: 687b ldr r3, [r7, #4] - 801b714: 6cdc ldr r4, [r3, #76] ; 0x4c - 801b716: 687b ldr r3, [r7, #4] - 801b718: 6edb ldr r3, [r3, #108] ; 0x6c - 801b71a: 691b ldr r3, [r3, #16] - 801b71c: 685b ldr r3, [r3, #4] - 801b71e: 4618 mov r0, r3 - 801b720: f7fa fc23 bl 8015f6a - 801b724: 4603 mov r3, r0 - 801b726: 1ae3 subs r3, r4, r3 - if ((pcb->unsent == NULL) || - 801b728: 2b00 cmp r3, #0 - 801b72a: dc20 bgt.n 801b76e - tcp_clear_flags(pcb, TF_RTO); - 801b72c: 687b ldr r3, [r7, #4] - 801b72e: 8b5b ldrh r3, [r3, #26] - 801b730: f423 6300 bic.w r3, r3, #2048 ; 0x800 - 801b734: b29a uxth r2, r3 - 801b736: 687b ldr r3, [r7, #4] - 801b738: 835a strh r2, [r3, #26] - } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) { - 801b73a: e018 b.n 801b76e - } - } else if (TCP_SEQ_LEQ(pcb->rto_end, lwip_ntohl(pcb->unacked->tcphdr->seqno))) { - 801b73c: 687b ldr r3, [r7, #4] - 801b73e: 6cdc ldr r4, [r3, #76] ; 0x4c - 801b740: 687b ldr r3, [r7, #4] - 801b742: 6f1b ldr r3, [r3, #112] ; 0x70 - 801b744: 691b ldr r3, [r3, #16] - 801b746: 685b ldr r3, [r3, #4] - 801b748: 4618 mov r0, r3 - 801b74a: f7fa fc0e bl 8015f6a - 801b74e: 4603 mov r3, r0 - 801b750: 1ae3 subs r3, r4, r3 - 801b752: 2b00 cmp r3, #0 - 801b754: dc0b bgt.n 801b76e - tcp_clear_flags(pcb, TF_RTO); - 801b756: 687b ldr r3, [r7, #4] - 801b758: 8b5b ldrh r3, [r3, #26] - 801b75a: f423 6300 bic.w r3, r3, #2048 ; 0x800 - 801b75e: b29a uxth r2, r3 - 801b760: 687b ldr r3, [r7, #4] - 801b762: 835a strh r2, [r3, #26] - } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) { - 801b764: e003 b.n 801b76e - } - } - /* End of ACK for new data processing. */ - } else { - /* Out of sequence ACK, didn't really ack anything */ - tcp_send_empty_ack(pcb); - 801b766: 6878 ldr r0, [r7, #4] - 801b768: f002 fc3a bl 801dfe0 - 801b76c: e000 b.n 801b770 - } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) { - 801b76e: 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)) { - 801b770: 687b ldr r3, [r7, #4] - 801b772: 6b5b ldr r3, [r3, #52] ; 0x34 - 801b774: 2b00 cmp r3, #0 - 801b776: d05b beq.n 801b830 - 801b778: 687b ldr r3, [r7, #4] - 801b77a: 6b9a ldr r2, [r3, #56] ; 0x38 - 801b77c: 4b60 ldr r3, [pc, #384] ; (801b900 ) - 801b77e: 681b ldr r3, [r3, #0] - 801b780: 1ad3 subs r3, r2, r3 - 801b782: 2b00 cmp r3, #0 - 801b784: da54 bge.n 801b830 - /* 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); - 801b786: 4b5f ldr r3, [pc, #380] ; (801b904 ) - 801b788: 681b ldr r3, [r3, #0] - 801b78a: b29a uxth r2, r3 - 801b78c: 687b ldr r3, [r7, #4] - 801b78e: 6b5b ldr r3, [r3, #52] ; 0x34 - 801b790: b29b uxth r3, r3 - 801b792: 1ad3 subs r3, r2, r3 - 801b794: b29b uxth r3, r3 - 801b796: 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)); - 801b79a: f8b7 204e ldrh.w r2, [r7, #78] ; 0x4e - 801b79e: 687b ldr r3, [r7, #4] - 801b7a0: f9b3 303c ldrsh.w r3, [r3, #60] ; 0x3c - 801b7a4: 10db asrs r3, r3, #3 - 801b7a6: b21b sxth r3, r3 - 801b7a8: b29b uxth r3, r3 - 801b7aa: 1ad3 subs r3, r2, r3 - 801b7ac: b29b uxth r3, r3 - 801b7ae: f8a7 304e strh.w r3, [r7, #78] ; 0x4e - pcb->sa = (s16_t)(pcb->sa + m); - 801b7b2: 687b ldr r3, [r7, #4] - 801b7b4: f9b3 303c ldrsh.w r3, [r3, #60] ; 0x3c - 801b7b8: b29a uxth r2, r3 - 801b7ba: f8b7 304e ldrh.w r3, [r7, #78] ; 0x4e - 801b7be: 4413 add r3, r2 - 801b7c0: b29b uxth r3, r3 - 801b7c2: b21a sxth r2, r3 - 801b7c4: 687b ldr r3, [r7, #4] - 801b7c6: 879a strh r2, [r3, #60] ; 0x3c - if (m < 0) { - 801b7c8: f9b7 304e ldrsh.w r3, [r7, #78] ; 0x4e - 801b7cc: 2b00 cmp r3, #0 - 801b7ce: da05 bge.n 801b7dc - m = (s16_t) - m; - 801b7d0: f8b7 304e ldrh.w r3, [r7, #78] ; 0x4e - 801b7d4: 425b negs r3, r3 - 801b7d6: b29b uxth r3, r3 - 801b7d8: f8a7 304e strh.w r3, [r7, #78] ; 0x4e - } - m = (s16_t)(m - (pcb->sv >> 2)); - 801b7dc: f8b7 204e ldrh.w r2, [r7, #78] ; 0x4e - 801b7e0: 687b ldr r3, [r7, #4] - 801b7e2: f9b3 303e ldrsh.w r3, [r3, #62] ; 0x3e - 801b7e6: 109b asrs r3, r3, #2 - 801b7e8: b21b sxth r3, r3 - 801b7ea: b29b uxth r3, r3 - 801b7ec: 1ad3 subs r3, r2, r3 - 801b7ee: b29b uxth r3, r3 - 801b7f0: f8a7 304e strh.w r3, [r7, #78] ; 0x4e - pcb->sv = (s16_t)(pcb->sv + m); - 801b7f4: 687b ldr r3, [r7, #4] - 801b7f6: f9b3 303e ldrsh.w r3, [r3, #62] ; 0x3e - 801b7fa: b29a uxth r2, r3 - 801b7fc: f8b7 304e ldrh.w r3, [r7, #78] ; 0x4e - 801b800: 4413 add r3, r2 - 801b802: b29b uxth r3, r3 - 801b804: b21a sxth r2, r3 - 801b806: 687b ldr r3, [r7, #4] - 801b808: 87da strh r2, [r3, #62] ; 0x3e - pcb->rto = (s16_t)((pcb->sa >> 3) + pcb->sv); - 801b80a: 687b ldr r3, [r7, #4] - 801b80c: f9b3 303c ldrsh.w r3, [r3, #60] ; 0x3c - 801b810: 10db asrs r3, r3, #3 - 801b812: b21b sxth r3, r3 - 801b814: b29a uxth r2, r3 - 801b816: 687b ldr r3, [r7, #4] - 801b818: f9b3 303e ldrsh.w r3, [r3, #62] ; 0x3e - 801b81c: b29b uxth r3, r3 - 801b81e: 4413 add r3, r2 - 801b820: b29b uxth r3, r3 - 801b822: b21a sxth r2, r3 - 801b824: 687b ldr r3, [r7, #4] - 801b826: 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; - 801b82a: 687b ldr r3, [r7, #4] - 801b82c: 2200 movs r2, #0 - 801b82e: 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)) { - 801b830: 4b35 ldr r3, [pc, #212] ; (801b908 ) - 801b832: 881b ldrh r3, [r3, #0] - 801b834: 2b00 cmp r3, #0 - 801b836: f000 84e2 beq.w 801c1fe - 801b83a: 687b ldr r3, [r7, #4] - 801b83c: 7d1b ldrb r3, [r3, #20] - 801b83e: 2b06 cmp r3, #6 - 801b840: f200 84dd bhi.w 801c1fe - 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)) { - 801b844: 687b ldr r3, [r7, #4] - 801b846: 6a5a ldr r2, [r3, #36] ; 0x24 - 801b848: 4b30 ldr r3, [pc, #192] ; (801b90c ) - 801b84a: 681b ldr r3, [r3, #0] - 801b84c: 1ad3 subs r3, r2, r3 - 801b84e: 3b01 subs r3, #1 - 801b850: 2b00 cmp r3, #0 - 801b852: f2c0 808f blt.w 801b974 - 801b856: 687b ldr r3, [r7, #4] - 801b858: 6a5a ldr r2, [r3, #36] ; 0x24 - 801b85a: 4b2b ldr r3, [pc, #172] ; (801b908 ) - 801b85c: 881b ldrh r3, [r3, #0] - 801b85e: 4619 mov r1, r3 - 801b860: 4b2a ldr r3, [pc, #168] ; (801b90c ) - 801b862: 681b ldr r3, [r3, #0] - 801b864: 440b add r3, r1 - 801b866: 1ad3 subs r3, r2, r3 - 801b868: 3301 adds r3, #1 - 801b86a: 2b00 cmp r3, #0 - 801b86c: f300 8082 bgt.w 801b974 - - 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; - 801b870: 4b27 ldr r3, [pc, #156] ; (801b910 ) - 801b872: 685b ldr r3, [r3, #4] - 801b874: 647b str r3, [r7, #68] ; 0x44 - u32_t off32 = pcb->rcv_nxt - seqno; - 801b876: 687b ldr r3, [r7, #4] - 801b878: 6a5a ldr r2, [r3, #36] ; 0x24 - 801b87a: 4b24 ldr r3, [pc, #144] ; (801b90c ) - 801b87c: 681b ldr r3, [r3, #0] - 801b87e: 1ad3 subs r3, r2, r3 - 801b880: 627b str r3, [r7, #36] ; 0x24 - u16_t new_tot_len, off; - LWIP_ASSERT("inseg.p != NULL", inseg.p); - 801b882: 4b23 ldr r3, [pc, #140] ; (801b910 ) - 801b884: 685b ldr r3, [r3, #4] - 801b886: 2b00 cmp r3, #0 - 801b888: d106 bne.n 801b898 - 801b88a: 4b22 ldr r3, [pc, #136] ; (801b914 ) - 801b88c: f240 5294 movw r2, #1428 ; 0x594 - 801b890: 4921 ldr r1, [pc, #132] ; (801b918 ) - 801b892: 4822 ldr r0, [pc, #136] ; (801b91c ) - 801b894: f006 f878 bl 8021988 - LWIP_ASSERT("insane offset!", (off32 < 0xffff)); - 801b898: 6a7b ldr r3, [r7, #36] ; 0x24 - 801b89a: f64f 72fe movw r2, #65534 ; 0xfffe - 801b89e: 4293 cmp r3, r2 - 801b8a0: d906 bls.n 801b8b0 - 801b8a2: 4b1c ldr r3, [pc, #112] ; (801b914 ) - 801b8a4: f240 5295 movw r2, #1429 ; 0x595 - 801b8a8: 491d ldr r1, [pc, #116] ; (801b920 ) - 801b8aa: 481c ldr r0, [pc, #112] ; (801b91c ) - 801b8ac: f006 f86c bl 8021988 - off = (u16_t)off32; - 801b8b0: 6a7b ldr r3, [r7, #36] ; 0x24 - 801b8b2: f8a7 3042 strh.w r3, [r7, #66] ; 0x42 - LWIP_ASSERT("pbuf too short!", (((s32_t)inseg.p->tot_len) >= off)); - 801b8b6: 4b16 ldr r3, [pc, #88] ; (801b910 ) - 801b8b8: 685b ldr r3, [r3, #4] - 801b8ba: 891b ldrh r3, [r3, #8] - 801b8bc: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 - 801b8c0: 429a cmp r2, r3 - 801b8c2: d906 bls.n 801b8d2 - 801b8c4: 4b13 ldr r3, [pc, #76] ; (801b914 ) - 801b8c6: f240 5297 movw r2, #1431 ; 0x597 - 801b8ca: 4916 ldr r1, [pc, #88] ; (801b924 ) - 801b8cc: 4813 ldr r0, [pc, #76] ; (801b91c ) - 801b8ce: f006 f85b bl 8021988 - inseg.len -= off; - 801b8d2: 4b0f ldr r3, [pc, #60] ; (801b910 ) - 801b8d4: 891a ldrh r2, [r3, #8] - 801b8d6: f8b7 3042 ldrh.w r3, [r7, #66] ; 0x42 - 801b8da: 1ad3 subs r3, r2, r3 - 801b8dc: b29a uxth r2, r3 - 801b8de: 4b0c ldr r3, [pc, #48] ; (801b910 ) - 801b8e0: 811a strh r2, [r3, #8] - new_tot_len = (u16_t)(inseg.p->tot_len - off); - 801b8e2: 4b0b ldr r3, [pc, #44] ; (801b910 ) - 801b8e4: 685b ldr r3, [r3, #4] - 801b8e6: 891a ldrh r2, [r3, #8] - 801b8e8: f8b7 3042 ldrh.w r3, [r7, #66] ; 0x42 - 801b8ec: 1ad3 subs r3, r2, r3 - 801b8ee: 847b strh r3, [r7, #34] ; 0x22 - while (p->len < off) { - 801b8f0: e02a b.n 801b948 - 801b8f2: bf00 nop - 801b8f4: 080256a0 .word 0x080256a0 - 801b8f8: 080256a8 .word 0x080256a8 - 801b8fc: 2401a4c4 .word 0x2401a4c4 - 801b900: 2401a4c0 .word 0x2401a4c0 - 801b904: 2401a480 .word 0x2401a480 - 801b908: 2401a4c6 .word 0x2401a4c6 - 801b90c: 2401a4bc .word 0x2401a4bc - 801b910: 2401a498 .word 0x2401a498 - 801b914: 08025338 .word 0x08025338 - 801b918: 080256b0 .word 0x080256b0 - 801b91c: 08025384 .word 0x08025384 - 801b920: 080256c0 .word 0x080256c0 - 801b924: 080256d0 .word 0x080256d0 - off -= p->len; - 801b928: 6c7b ldr r3, [r7, #68] ; 0x44 - 801b92a: 895b ldrh r3, [r3, #10] - 801b92c: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 - 801b930: 1ad3 subs r3, r2, r3 - 801b932: 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; - 801b936: 6c7b ldr r3, [r7, #68] ; 0x44 - 801b938: 8c7a ldrh r2, [r7, #34] ; 0x22 - 801b93a: 811a strh r2, [r3, #8] - p->len = 0; - 801b93c: 6c7b ldr r3, [r7, #68] ; 0x44 - 801b93e: 2200 movs r2, #0 - 801b940: 815a strh r2, [r3, #10] - p = p->next; - 801b942: 6c7b ldr r3, [r7, #68] ; 0x44 - 801b944: 681b ldr r3, [r3, #0] - 801b946: 647b str r3, [r7, #68] ; 0x44 - while (p->len < off) { - 801b948: 6c7b ldr r3, [r7, #68] ; 0x44 - 801b94a: 895b ldrh r3, [r3, #10] - 801b94c: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 - 801b950: 429a cmp r2, r3 - 801b952: d8e9 bhi.n 801b928 - } - /* cannot fail... */ - pbuf_remove_header(p, off); - 801b954: f8b7 3042 ldrh.w r3, [r7, #66] ; 0x42 - 801b958: 4619 mov r1, r3 - 801b95a: 6c78 ldr r0, [r7, #68] ; 0x44 - 801b95c: f7fc f846 bl 80179ec - inseg.tcphdr->seqno = seqno = pcb->rcv_nxt; - 801b960: 687b ldr r3, [r7, #4] - 801b962: 6a5b ldr r3, [r3, #36] ; 0x24 - 801b964: 4a91 ldr r2, [pc, #580] ; (801bbac ) - 801b966: 6013 str r3, [r2, #0] - 801b968: 4b91 ldr r3, [pc, #580] ; (801bbb0 ) - 801b96a: 691b ldr r3, [r3, #16] - 801b96c: 4a8f ldr r2, [pc, #572] ; (801bbac ) - 801b96e: 6812 ldr r2, [r2, #0] - 801b970: 605a str r2, [r3, #4] - if (TCP_SEQ_BETWEEN(pcb->rcv_nxt, seqno + 1, seqno + tcplen - 1)) { - 801b972: e00d b.n 801b990 - } else { - if (TCP_SEQ_LT(seqno, pcb->rcv_nxt)) { - 801b974: 4b8d ldr r3, [pc, #564] ; (801bbac ) - 801b976: 681a ldr r2, [r3, #0] - 801b978: 687b ldr r3, [r7, #4] - 801b97a: 6a5b ldr r3, [r3, #36] ; 0x24 - 801b97c: 1ad3 subs r3, r2, r3 - 801b97e: 2b00 cmp r3, #0 - 801b980: da06 bge.n 801b990 - /* 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); - 801b982: 687b ldr r3, [r7, #4] - 801b984: 8b5b ldrh r3, [r3, #26] - 801b986: f043 0302 orr.w r3, r3, #2 - 801b98a: b29a uxth r2, r3 - 801b98c: 687b ldr r3, [r7, #4] - 801b98e: 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, - 801b990: 4b86 ldr r3, [pc, #536] ; (801bbac ) - 801b992: 681a ldr r2, [r3, #0] - 801b994: 687b ldr r3, [r7, #4] - 801b996: 6a5b ldr r3, [r3, #36] ; 0x24 - 801b998: 1ad3 subs r3, r2, r3 - 801b99a: 2b00 cmp r3, #0 - 801b99c: f2c0 842a blt.w 801c1f4 - 801b9a0: 4b82 ldr r3, [pc, #520] ; (801bbac ) - 801b9a2: 681a ldr r2, [r3, #0] - 801b9a4: 687b ldr r3, [r7, #4] - 801b9a6: 6a5b ldr r3, [r3, #36] ; 0x24 - 801b9a8: 6879 ldr r1, [r7, #4] - 801b9aa: 8d09 ldrh r1, [r1, #40] ; 0x28 - 801b9ac: 440b add r3, r1 - 801b9ae: 1ad3 subs r3, r2, r3 - 801b9b0: 3301 adds r3, #1 - 801b9b2: 2b00 cmp r3, #0 - 801b9b4: f300 841e bgt.w 801c1f4 - pcb->rcv_nxt + pcb->rcv_wnd - 1)) { - if (pcb->rcv_nxt == seqno) { - 801b9b8: 687b ldr r3, [r7, #4] - 801b9ba: 6a5a ldr r2, [r3, #36] ; 0x24 - 801b9bc: 4b7b ldr r3, [pc, #492] ; (801bbac ) - 801b9be: 681b ldr r3, [r3, #0] - 801b9c0: 429a cmp r2, r3 - 801b9c2: f040 829a bne.w 801befa - /* 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); - 801b9c6: 4b7a ldr r3, [pc, #488] ; (801bbb0 ) - 801b9c8: 891c ldrh r4, [r3, #8] - 801b9ca: 4b79 ldr r3, [pc, #484] ; (801bbb0 ) - 801b9cc: 691b ldr r3, [r3, #16] - 801b9ce: 899b ldrh r3, [r3, #12] - 801b9d0: b29b uxth r3, r3 - 801b9d2: 4618 mov r0, r3 - 801b9d4: f7fa fab4 bl 8015f40 - 801b9d8: 4603 mov r3, r0 - 801b9da: b2db uxtb r3, r3 - 801b9dc: f003 0303 and.w r3, r3, #3 - 801b9e0: 2b00 cmp r3, #0 - 801b9e2: d001 beq.n 801b9e8 - 801b9e4: 2301 movs r3, #1 - 801b9e6: e000 b.n 801b9ea - 801b9e8: 2300 movs r3, #0 - 801b9ea: 4423 add r3, r4 - 801b9ec: b29a uxth r2, r3 - 801b9ee: 4b71 ldr r3, [pc, #452] ; (801bbb4 ) - 801b9f0: 801a strh r2, [r3, #0] - - if (tcplen > pcb->rcv_wnd) { - 801b9f2: 687b ldr r3, [r7, #4] - 801b9f4: 8d1a ldrh r2, [r3, #40] ; 0x28 - 801b9f6: 4b6f ldr r3, [pc, #444] ; (801bbb4 ) - 801b9f8: 881b ldrh r3, [r3, #0] - 801b9fa: 429a cmp r2, r3 - 801b9fc: d275 bcs.n 801baea - 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) { - 801b9fe: 4b6c ldr r3, [pc, #432] ; (801bbb0 ) - 801ba00: 691b ldr r3, [r3, #16] - 801ba02: 899b ldrh r3, [r3, #12] - 801ba04: b29b uxth r3, r3 - 801ba06: 4618 mov r0, r3 - 801ba08: f7fa fa9a bl 8015f40 - 801ba0c: 4603 mov r3, r0 - 801ba0e: b2db uxtb r3, r3 - 801ba10: f003 0301 and.w r3, r3, #1 - 801ba14: 2b00 cmp r3, #0 - 801ba16: d01f beq.n 801ba58 - /* 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); - 801ba18: 4b65 ldr r3, [pc, #404] ; (801bbb0 ) - 801ba1a: 691b ldr r3, [r3, #16] - 801ba1c: 899b ldrh r3, [r3, #12] - 801ba1e: b29b uxth r3, r3 - 801ba20: b21b sxth r3, r3 - 801ba22: f423 537c bic.w r3, r3, #16128 ; 0x3f00 - 801ba26: b21c sxth r4, r3 - 801ba28: 4b61 ldr r3, [pc, #388] ; (801bbb0 ) - 801ba2a: 691b ldr r3, [r3, #16] - 801ba2c: 899b ldrh r3, [r3, #12] - 801ba2e: b29b uxth r3, r3 - 801ba30: 4618 mov r0, r3 - 801ba32: f7fa fa85 bl 8015f40 - 801ba36: 4603 mov r3, r0 - 801ba38: b2db uxtb r3, r3 - 801ba3a: b29b uxth r3, r3 - 801ba3c: f003 033e and.w r3, r3, #62 ; 0x3e - 801ba40: b29b uxth r3, r3 - 801ba42: 4618 mov r0, r3 - 801ba44: f7fa fa7c bl 8015f40 - 801ba48: 4603 mov r3, r0 - 801ba4a: b21b sxth r3, r3 - 801ba4c: 4323 orrs r3, r4 - 801ba4e: b21a sxth r2, r3 - 801ba50: 4b57 ldr r3, [pc, #348] ; (801bbb0 ) - 801ba52: 691b ldr r3, [r3, #16] - 801ba54: b292 uxth r2, r2 - 801ba56: 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; - 801ba58: 687b ldr r3, [r7, #4] - 801ba5a: 8d1a ldrh r2, [r3, #40] ; 0x28 - 801ba5c: 4b54 ldr r3, [pc, #336] ; (801bbb0 ) - 801ba5e: 811a strh r2, [r3, #8] - if (TCPH_FLAGS(inseg.tcphdr) & TCP_SYN) { - 801ba60: 4b53 ldr r3, [pc, #332] ; (801bbb0 ) - 801ba62: 691b ldr r3, [r3, #16] - 801ba64: 899b ldrh r3, [r3, #12] - 801ba66: b29b uxth r3, r3 - 801ba68: 4618 mov r0, r3 - 801ba6a: f7fa fa69 bl 8015f40 - 801ba6e: 4603 mov r3, r0 - 801ba70: b2db uxtb r3, r3 - 801ba72: f003 0302 and.w r3, r3, #2 - 801ba76: 2b00 cmp r3, #0 - 801ba78: d005 beq.n 801ba86 - inseg.len -= 1; - 801ba7a: 4b4d ldr r3, [pc, #308] ; (801bbb0 ) - 801ba7c: 891b ldrh r3, [r3, #8] - 801ba7e: 3b01 subs r3, #1 - 801ba80: b29a uxth r2, r3 - 801ba82: 4b4b ldr r3, [pc, #300] ; (801bbb0 ) - 801ba84: 811a strh r2, [r3, #8] - } - pbuf_realloc(inseg.p, inseg.len); - 801ba86: 4b4a ldr r3, [pc, #296] ; (801bbb0 ) - 801ba88: 685b ldr r3, [r3, #4] - 801ba8a: 4a49 ldr r2, [pc, #292] ; (801bbb0 ) - 801ba8c: 8912 ldrh r2, [r2, #8] - 801ba8e: 4611 mov r1, r2 - 801ba90: 4618 mov r0, r3 - 801ba92: f7fb feab bl 80177ec - tcplen = TCP_TCPLEN(&inseg); - 801ba96: 4b46 ldr r3, [pc, #280] ; (801bbb0 ) - 801ba98: 891c ldrh r4, [r3, #8] - 801ba9a: 4b45 ldr r3, [pc, #276] ; (801bbb0 ) - 801ba9c: 691b ldr r3, [r3, #16] - 801ba9e: 899b ldrh r3, [r3, #12] - 801baa0: b29b uxth r3, r3 - 801baa2: 4618 mov r0, r3 - 801baa4: f7fa fa4c bl 8015f40 - 801baa8: 4603 mov r3, r0 - 801baaa: b2db uxtb r3, r3 - 801baac: f003 0303 and.w r3, r3, #3 - 801bab0: 2b00 cmp r3, #0 - 801bab2: d001 beq.n 801bab8 - 801bab4: 2301 movs r3, #1 - 801bab6: e000 b.n 801baba - 801bab8: 2300 movs r3, #0 - 801baba: 4423 add r3, r4 - 801babc: b29a uxth r2, r3 - 801babe: 4b3d ldr r3, [pc, #244] ; (801bbb4 ) - 801bac0: 801a strh r2, [r3, #0] - LWIP_ASSERT("tcp_receive: segment not trimmed correctly to rcv_wnd\n", - 801bac2: 4b3c ldr r3, [pc, #240] ; (801bbb4 ) - 801bac4: 881b ldrh r3, [r3, #0] - 801bac6: 461a mov r2, r3 - 801bac8: 4b38 ldr r3, [pc, #224] ; (801bbac ) - 801baca: 681b ldr r3, [r3, #0] - 801bacc: 441a add r2, r3 - 801bace: 687b ldr r3, [r7, #4] - 801bad0: 6a5b ldr r3, [r3, #36] ; 0x24 - 801bad2: 6879 ldr r1, [r7, #4] - 801bad4: 8d09 ldrh r1, [r1, #40] ; 0x28 - 801bad6: 440b add r3, r1 - 801bad8: 429a cmp r2, r3 - 801bada: d006 beq.n 801baea - 801badc: 4b36 ldr r3, [pc, #216] ; (801bbb8 ) - 801bade: f240 52cb movw r2, #1483 ; 0x5cb - 801bae2: 4936 ldr r1, [pc, #216] ; (801bbbc ) - 801bae4: 4836 ldr r0, [pc, #216] ; (801bbc0 ) - 801bae6: f005 ff4f bl 8021988 - } -#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) { - 801baea: 687b ldr r3, [r7, #4] - 801baec: 6f5b ldr r3, [r3, #116] ; 0x74 - 801baee: 2b00 cmp r3, #0 - 801baf0: f000 80e7 beq.w 801bcc2 - if (TCPH_FLAGS(inseg.tcphdr) & TCP_FIN) { - 801baf4: 4b2e ldr r3, [pc, #184] ; (801bbb0 ) - 801baf6: 691b ldr r3, [r3, #16] - 801baf8: 899b ldrh r3, [r3, #12] - 801bafa: b29b uxth r3, r3 - 801bafc: 4618 mov r0, r3 - 801bafe: f7fa fa1f bl 8015f40 - 801bb02: 4603 mov r3, r0 - 801bb04: b2db uxtb r3, r3 - 801bb06: f003 0301 and.w r3, r3, #1 - 801bb0a: 2b00 cmp r3, #0 - 801bb0c: d010 beq.n 801bb30 - 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) { - 801bb0e: e00a b.n 801bb26 - struct tcp_seg *old_ooseq = pcb->ooseq; - 801bb10: 687b ldr r3, [r7, #4] - 801bb12: 6f5b ldr r3, [r3, #116] ; 0x74 - 801bb14: 60fb str r3, [r7, #12] - pcb->ooseq = pcb->ooseq->next; - 801bb16: 687b ldr r3, [r7, #4] - 801bb18: 6f5b ldr r3, [r3, #116] ; 0x74 - 801bb1a: 681a ldr r2, [r3, #0] - 801bb1c: 687b ldr r3, [r7, #4] - 801bb1e: 675a str r2, [r3, #116] ; 0x74 - tcp_seg_free(old_ooseq); - 801bb20: 68f8 ldr r0, [r7, #12] - 801bb22: f7fd fcbe bl 80194a2 - while (pcb->ooseq != NULL) { - 801bb26: 687b ldr r3, [r7, #4] - 801bb28: 6f5b ldr r3, [r3, #116] ; 0x74 - 801bb2a: 2b00 cmp r3, #0 - 801bb2c: d1f0 bne.n 801bb10 - 801bb2e: e0c8 b.n 801bcc2 - } - } else { - struct tcp_seg *next = pcb->ooseq; - 801bb30: 687b ldr r3, [r7, #4] - 801bb32: 6f5b ldr r3, [r3, #116] ; 0x74 - 801bb34: 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 && - 801bb36: e052 b.n 801bbde - 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 && - 801bb38: 6bfb ldr r3, [r7, #60] ; 0x3c - 801bb3a: 691b ldr r3, [r3, #16] - 801bb3c: 899b ldrh r3, [r3, #12] - 801bb3e: b29b uxth r3, r3 - 801bb40: 4618 mov r0, r3 - 801bb42: f7fa f9fd bl 8015f40 - 801bb46: 4603 mov r3, r0 - 801bb48: b2db uxtb r3, r3 - 801bb4a: f003 0301 and.w r3, r3, #1 - 801bb4e: 2b00 cmp r3, #0 - 801bb50: d03d beq.n 801bbce - (TCPH_FLAGS(inseg.tcphdr) & TCP_SYN) == 0) { - 801bb52: 4b17 ldr r3, [pc, #92] ; (801bbb0 ) - 801bb54: 691b ldr r3, [r3, #16] - 801bb56: 899b ldrh r3, [r3, #12] - 801bb58: b29b uxth r3, r3 - 801bb5a: 4618 mov r0, r3 - 801bb5c: f7fa f9f0 bl 8015f40 - 801bb60: 4603 mov r3, r0 - 801bb62: b2db uxtb r3, r3 - 801bb64: f003 0302 and.w r3, r3, #2 - if ((TCPH_FLAGS(next->tcphdr) & TCP_FIN) != 0 && - 801bb68: 2b00 cmp r3, #0 - 801bb6a: d130 bne.n 801bbce - TCPH_SET_FLAG(inseg.tcphdr, TCP_FIN); - 801bb6c: 4b10 ldr r3, [pc, #64] ; (801bbb0 ) - 801bb6e: 691b ldr r3, [r3, #16] - 801bb70: 899b ldrh r3, [r3, #12] - 801bb72: b29c uxth r4, r3 - 801bb74: 2001 movs r0, #1 - 801bb76: f7fa f9e3 bl 8015f40 - 801bb7a: 4603 mov r3, r0 - 801bb7c: 461a mov r2, r3 - 801bb7e: 4b0c ldr r3, [pc, #48] ; (801bbb0 ) - 801bb80: 691b ldr r3, [r3, #16] - 801bb82: 4322 orrs r2, r4 - 801bb84: b292 uxth r2, r2 - 801bb86: 819a strh r2, [r3, #12] - tcplen = TCP_TCPLEN(&inseg); - 801bb88: 4b09 ldr r3, [pc, #36] ; (801bbb0 ) - 801bb8a: 891c ldrh r4, [r3, #8] - 801bb8c: 4b08 ldr r3, [pc, #32] ; (801bbb0 ) - 801bb8e: 691b ldr r3, [r3, #16] - 801bb90: 899b ldrh r3, [r3, #12] - 801bb92: b29b uxth r3, r3 - 801bb94: 4618 mov r0, r3 - 801bb96: f7fa f9d3 bl 8015f40 - 801bb9a: 4603 mov r3, r0 - 801bb9c: b2db uxtb r3, r3 - 801bb9e: f003 0303 and.w r3, r3, #3 - 801bba2: 2b00 cmp r3, #0 - 801bba4: d00e beq.n 801bbc4 - 801bba6: 2301 movs r3, #1 - 801bba8: e00d b.n 801bbc6 - 801bbaa: bf00 nop - 801bbac: 2401a4bc .word 0x2401a4bc - 801bbb0: 2401a498 .word 0x2401a498 - 801bbb4: 2401a4c6 .word 0x2401a4c6 - 801bbb8: 08025338 .word 0x08025338 - 801bbbc: 080256e0 .word 0x080256e0 - 801bbc0: 08025384 .word 0x08025384 - 801bbc4: 2300 movs r3, #0 - 801bbc6: 4423 add r3, r4 - 801bbc8: b29a uxth r2, r3 - 801bbca: 4b98 ldr r3, [pc, #608] ; (801be2c ) - 801bbcc: 801a strh r2, [r3, #0] - } - tmp = next; - 801bbce: 6bfb ldr r3, [r7, #60] ; 0x3c - 801bbd0: 613b str r3, [r7, #16] - next = next->next; - 801bbd2: 6bfb ldr r3, [r7, #60] ; 0x3c - 801bbd4: 681b ldr r3, [r3, #0] - 801bbd6: 63fb str r3, [r7, #60] ; 0x3c - tcp_seg_free(tmp); - 801bbd8: 6938 ldr r0, [r7, #16] - 801bbda: f7fd fc62 bl 80194a2 - while (next && - 801bbde: 6bfb ldr r3, [r7, #60] ; 0x3c - 801bbe0: 2b00 cmp r3, #0 - 801bbe2: d00e beq.n 801bc02 - TCP_SEQ_GEQ(seqno + tcplen, - 801bbe4: 4b91 ldr r3, [pc, #580] ; (801be2c ) - 801bbe6: 881b ldrh r3, [r3, #0] - 801bbe8: 461a mov r2, r3 - 801bbea: 4b91 ldr r3, [pc, #580] ; (801be30 ) - 801bbec: 681b ldr r3, [r3, #0] - 801bbee: 441a add r2, r3 - 801bbf0: 6bfb ldr r3, [r7, #60] ; 0x3c - 801bbf2: 691b ldr r3, [r3, #16] - 801bbf4: 685b ldr r3, [r3, #4] - 801bbf6: 6bf9 ldr r1, [r7, #60] ; 0x3c - 801bbf8: 8909 ldrh r1, [r1, #8] - 801bbfa: 440b add r3, r1 - 801bbfc: 1ad3 subs r3, r2, r3 - while (next && - 801bbfe: 2b00 cmp r3, #0 - 801bc00: da9a bge.n 801bb38 - } - /* Now trim right side of inseg if it overlaps with the first - * segment on ooseq */ - if (next && - 801bc02: 6bfb ldr r3, [r7, #60] ; 0x3c - 801bc04: 2b00 cmp r3, #0 - 801bc06: d059 beq.n 801bcbc - TCP_SEQ_GT(seqno + tcplen, - 801bc08: 4b88 ldr r3, [pc, #544] ; (801be2c ) - 801bc0a: 881b ldrh r3, [r3, #0] - 801bc0c: 461a mov r2, r3 - 801bc0e: 4b88 ldr r3, [pc, #544] ; (801be30 ) - 801bc10: 681b ldr r3, [r3, #0] - 801bc12: 441a add r2, r3 - 801bc14: 6bfb ldr r3, [r7, #60] ; 0x3c - 801bc16: 691b ldr r3, [r3, #16] - 801bc18: 685b ldr r3, [r3, #4] - 801bc1a: 1ad3 subs r3, r2, r3 - if (next && - 801bc1c: 2b00 cmp r3, #0 - 801bc1e: dd4d ble.n 801bcbc - next->tcphdr->seqno)) { - /* inseg cannot have FIN here (already processed above) */ - inseg.len = (u16_t)(next->tcphdr->seqno - seqno); - 801bc20: 6bfb ldr r3, [r7, #60] ; 0x3c - 801bc22: 691b ldr r3, [r3, #16] - 801bc24: 685b ldr r3, [r3, #4] - 801bc26: b29a uxth r2, r3 - 801bc28: 4b81 ldr r3, [pc, #516] ; (801be30 ) - 801bc2a: 681b ldr r3, [r3, #0] - 801bc2c: b29b uxth r3, r3 - 801bc2e: 1ad3 subs r3, r2, r3 - 801bc30: b29a uxth r2, r3 - 801bc32: 4b80 ldr r3, [pc, #512] ; (801be34 ) - 801bc34: 811a strh r2, [r3, #8] - if (TCPH_FLAGS(inseg.tcphdr) & TCP_SYN) { - 801bc36: 4b7f ldr r3, [pc, #508] ; (801be34 ) - 801bc38: 691b ldr r3, [r3, #16] - 801bc3a: 899b ldrh r3, [r3, #12] - 801bc3c: b29b uxth r3, r3 - 801bc3e: 4618 mov r0, r3 - 801bc40: f7fa f97e bl 8015f40 - 801bc44: 4603 mov r3, r0 - 801bc46: b2db uxtb r3, r3 - 801bc48: f003 0302 and.w r3, r3, #2 - 801bc4c: 2b00 cmp r3, #0 - 801bc4e: d005 beq.n 801bc5c - inseg.len -= 1; - 801bc50: 4b78 ldr r3, [pc, #480] ; (801be34 ) - 801bc52: 891b ldrh r3, [r3, #8] - 801bc54: 3b01 subs r3, #1 - 801bc56: b29a uxth r2, r3 - 801bc58: 4b76 ldr r3, [pc, #472] ; (801be34 ) - 801bc5a: 811a strh r2, [r3, #8] - } - pbuf_realloc(inseg.p, inseg.len); - 801bc5c: 4b75 ldr r3, [pc, #468] ; (801be34 ) - 801bc5e: 685b ldr r3, [r3, #4] - 801bc60: 4a74 ldr r2, [pc, #464] ; (801be34 ) - 801bc62: 8912 ldrh r2, [r2, #8] - 801bc64: 4611 mov r1, r2 - 801bc66: 4618 mov r0, r3 - 801bc68: f7fb fdc0 bl 80177ec - tcplen = TCP_TCPLEN(&inseg); - 801bc6c: 4b71 ldr r3, [pc, #452] ; (801be34 ) - 801bc6e: 891c ldrh r4, [r3, #8] - 801bc70: 4b70 ldr r3, [pc, #448] ; (801be34 ) - 801bc72: 691b ldr r3, [r3, #16] - 801bc74: 899b ldrh r3, [r3, #12] - 801bc76: b29b uxth r3, r3 - 801bc78: 4618 mov r0, r3 - 801bc7a: f7fa f961 bl 8015f40 - 801bc7e: 4603 mov r3, r0 - 801bc80: b2db uxtb r3, r3 - 801bc82: f003 0303 and.w r3, r3, #3 - 801bc86: 2b00 cmp r3, #0 - 801bc88: d001 beq.n 801bc8e - 801bc8a: 2301 movs r3, #1 - 801bc8c: e000 b.n 801bc90 - 801bc8e: 2300 movs r3, #0 - 801bc90: 4423 add r3, r4 - 801bc92: b29a uxth r2, r3 - 801bc94: 4b65 ldr r3, [pc, #404] ; (801be2c ) - 801bc96: 801a strh r2, [r3, #0] - LWIP_ASSERT("tcp_receive: segment not trimmed correctly to ooseq queue\n", - 801bc98: 4b64 ldr r3, [pc, #400] ; (801be2c ) - 801bc9a: 881b ldrh r3, [r3, #0] - 801bc9c: 461a mov r2, r3 - 801bc9e: 4b64 ldr r3, [pc, #400] ; (801be30 ) - 801bca0: 681b ldr r3, [r3, #0] - 801bca2: 441a add r2, r3 - 801bca4: 6bfb ldr r3, [r7, #60] ; 0x3c - 801bca6: 691b ldr r3, [r3, #16] - 801bca8: 685b ldr r3, [r3, #4] - 801bcaa: 429a cmp r2, r3 - 801bcac: d006 beq.n 801bcbc - 801bcae: 4b62 ldr r3, [pc, #392] ; (801be38 ) - 801bcb0: f240 52fc movw r2, #1532 ; 0x5fc - 801bcb4: 4961 ldr r1, [pc, #388] ; (801be3c ) - 801bcb6: 4862 ldr r0, [pc, #392] ; (801be40 ) - 801bcb8: f005 fe66 bl 8021988 - (seqno + tcplen) == next->tcphdr->seqno); - } - pcb->ooseq = next; - 801bcbc: 687b ldr r3, [r7, #4] - 801bcbe: 6bfa ldr r2, [r7, #60] ; 0x3c - 801bcc0: 675a str r2, [r3, #116] ; 0x74 - } - } -#endif /* TCP_QUEUE_OOSEQ */ - - pcb->rcv_nxt = seqno + tcplen; - 801bcc2: 4b5a ldr r3, [pc, #360] ; (801be2c ) - 801bcc4: 881b ldrh r3, [r3, #0] - 801bcc6: 461a mov r2, r3 - 801bcc8: 4b59 ldr r3, [pc, #356] ; (801be30 ) - 801bcca: 681b ldr r3, [r3, #0] - 801bccc: 441a add r2, r3 - 801bcce: 687b ldr r3, [r7, #4] - 801bcd0: 625a str r2, [r3, #36] ; 0x24 - - /* Update the receiver's (our) window. */ - LWIP_ASSERT("tcp_receive: tcplen > rcv_wnd\n", pcb->rcv_wnd >= tcplen); - 801bcd2: 687b ldr r3, [r7, #4] - 801bcd4: 8d1a ldrh r2, [r3, #40] ; 0x28 - 801bcd6: 4b55 ldr r3, [pc, #340] ; (801be2c ) - 801bcd8: 881b ldrh r3, [r3, #0] - 801bcda: 429a cmp r2, r3 - 801bcdc: d206 bcs.n 801bcec - 801bcde: 4b56 ldr r3, [pc, #344] ; (801be38 ) - 801bce0: f240 6207 movw r2, #1543 ; 0x607 - 801bce4: 4957 ldr r1, [pc, #348] ; (801be44 ) - 801bce6: 4856 ldr r0, [pc, #344] ; (801be40 ) - 801bce8: f005 fe4e bl 8021988 - pcb->rcv_wnd -= tcplen; - 801bcec: 687b ldr r3, [r7, #4] - 801bcee: 8d1a ldrh r2, [r3, #40] ; 0x28 - 801bcf0: 4b4e ldr r3, [pc, #312] ; (801be2c ) - 801bcf2: 881b ldrh r3, [r3, #0] - 801bcf4: 1ad3 subs r3, r2, r3 - 801bcf6: b29a uxth r2, r3 - 801bcf8: 687b ldr r3, [r7, #4] - 801bcfa: 851a strh r2, [r3, #40] ; 0x28 - - tcp_update_rcv_ann_wnd(pcb); - 801bcfc: 6878 ldr r0, [r7, #4] - 801bcfe: f7fc fd8f bl 8018820 - 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) { - 801bd02: 4b4c ldr r3, [pc, #304] ; (801be34 ) - 801bd04: 685b ldr r3, [r3, #4] - 801bd06: 891b ldrh r3, [r3, #8] - 801bd08: 2b00 cmp r3, #0 - 801bd0a: d006 beq.n 801bd1a - recv_data = inseg.p; - 801bd0c: 4b49 ldr r3, [pc, #292] ; (801be34 ) - 801bd0e: 685b ldr r3, [r3, #4] - 801bd10: 4a4d ldr r2, [pc, #308] ; (801be48 ) - 801bd12: 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; - 801bd14: 4b47 ldr r3, [pc, #284] ; (801be34 ) - 801bd16: 2200 movs r2, #0 - 801bd18: 605a str r2, [r3, #4] - } - if (TCPH_FLAGS(inseg.tcphdr) & TCP_FIN) { - 801bd1a: 4b46 ldr r3, [pc, #280] ; (801be34 ) - 801bd1c: 691b ldr r3, [r3, #16] - 801bd1e: 899b ldrh r3, [r3, #12] - 801bd20: b29b uxth r3, r3 - 801bd22: 4618 mov r0, r3 - 801bd24: f7fa f90c bl 8015f40 - 801bd28: 4603 mov r3, r0 - 801bd2a: b2db uxtb r3, r3 - 801bd2c: f003 0301 and.w r3, r3, #1 - 801bd30: 2b00 cmp r3, #0 - 801bd32: f000 80b8 beq.w 801bea6 - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: received FIN.\n")); - recv_flags |= TF_GOT_FIN; - 801bd36: 4b45 ldr r3, [pc, #276] ; (801be4c ) - 801bd38: 781b ldrb r3, [r3, #0] - 801bd3a: f043 0320 orr.w r3, r3, #32 - 801bd3e: b2da uxtb r2, r3 - 801bd40: 4b42 ldr r3, [pc, #264] ; (801be4c ) - 801bd42: 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 && - 801bd44: e0af b.n 801bea6 - pcb->ooseq->tcphdr->seqno == pcb->rcv_nxt) { - - struct tcp_seg *cseg = pcb->ooseq; - 801bd46: 687b ldr r3, [r7, #4] - 801bd48: 6f5b ldr r3, [r3, #116] ; 0x74 - 801bd4a: 60bb str r3, [r7, #8] - seqno = pcb->ooseq->tcphdr->seqno; - 801bd4c: 687b ldr r3, [r7, #4] - 801bd4e: 6f5b ldr r3, [r3, #116] ; 0x74 - 801bd50: 691b ldr r3, [r3, #16] - 801bd52: 685b ldr r3, [r3, #4] - 801bd54: 4a36 ldr r2, [pc, #216] ; (801be30 ) - 801bd56: 6013 str r3, [r2, #0] - - pcb->rcv_nxt += TCP_TCPLEN(cseg); - 801bd58: 68bb ldr r3, [r7, #8] - 801bd5a: 891b ldrh r3, [r3, #8] - 801bd5c: 461c mov r4, r3 - 801bd5e: 68bb ldr r3, [r7, #8] - 801bd60: 691b ldr r3, [r3, #16] - 801bd62: 899b ldrh r3, [r3, #12] - 801bd64: b29b uxth r3, r3 - 801bd66: 4618 mov r0, r3 - 801bd68: f7fa f8ea bl 8015f40 - 801bd6c: 4603 mov r3, r0 - 801bd6e: b2db uxtb r3, r3 - 801bd70: f003 0303 and.w r3, r3, #3 - 801bd74: 2b00 cmp r3, #0 - 801bd76: d001 beq.n 801bd7c - 801bd78: 2301 movs r3, #1 - 801bd7a: e000 b.n 801bd7e - 801bd7c: 2300 movs r3, #0 - 801bd7e: 191a adds r2, r3, r4 - 801bd80: 687b ldr r3, [r7, #4] - 801bd82: 6a5b ldr r3, [r3, #36] ; 0x24 - 801bd84: 441a add r2, r3 - 801bd86: 687b ldr r3, [r7, #4] - 801bd88: 625a str r2, [r3, #36] ; 0x24 - LWIP_ASSERT("tcp_receive: ooseq tcplen > rcv_wnd\n", - 801bd8a: 687b ldr r3, [r7, #4] - 801bd8c: 8d1b ldrh r3, [r3, #40] ; 0x28 - 801bd8e: 461c mov r4, r3 - 801bd90: 68bb ldr r3, [r7, #8] - 801bd92: 891b ldrh r3, [r3, #8] - 801bd94: 461d mov r5, r3 - 801bd96: 68bb ldr r3, [r7, #8] - 801bd98: 691b ldr r3, [r3, #16] - 801bd9a: 899b ldrh r3, [r3, #12] - 801bd9c: b29b uxth r3, r3 - 801bd9e: 4618 mov r0, r3 - 801bda0: f7fa f8ce bl 8015f40 - 801bda4: 4603 mov r3, r0 - 801bda6: b2db uxtb r3, r3 - 801bda8: f003 0303 and.w r3, r3, #3 - 801bdac: 2b00 cmp r3, #0 - 801bdae: d001 beq.n 801bdb4 - 801bdb0: 2301 movs r3, #1 - 801bdb2: e000 b.n 801bdb6 - 801bdb4: 2300 movs r3, #0 - 801bdb6: 442b add r3, r5 - 801bdb8: 429c cmp r4, r3 - 801bdba: d206 bcs.n 801bdca - 801bdbc: 4b1e ldr r3, [pc, #120] ; (801be38 ) - 801bdbe: f240 622b movw r2, #1579 ; 0x62b - 801bdc2: 4923 ldr r1, [pc, #140] ; (801be50 ) - 801bdc4: 481e ldr r0, [pc, #120] ; (801be40 ) - 801bdc6: f005 fddf bl 8021988 - pcb->rcv_wnd >= TCP_TCPLEN(cseg)); - pcb->rcv_wnd -= TCP_TCPLEN(cseg); - 801bdca: 68bb ldr r3, [r7, #8] - 801bdcc: 891b ldrh r3, [r3, #8] - 801bdce: 461c mov r4, r3 - 801bdd0: 68bb ldr r3, [r7, #8] - 801bdd2: 691b ldr r3, [r3, #16] - 801bdd4: 899b ldrh r3, [r3, #12] - 801bdd6: b29b uxth r3, r3 - 801bdd8: 4618 mov r0, r3 - 801bdda: f7fa f8b1 bl 8015f40 - 801bdde: 4603 mov r3, r0 - 801bde0: b2db uxtb r3, r3 - 801bde2: f003 0303 and.w r3, r3, #3 - 801bde6: 2b00 cmp r3, #0 - 801bde8: d001 beq.n 801bdee - 801bdea: 2301 movs r3, #1 - 801bdec: e000 b.n 801bdf0 - 801bdee: 2300 movs r3, #0 - 801bdf0: 1919 adds r1, r3, r4 - 801bdf2: 687b ldr r3, [r7, #4] - 801bdf4: 8d1a ldrh r2, [r3, #40] ; 0x28 - 801bdf6: b28b uxth r3, r1 - 801bdf8: 1ad3 subs r3, r2, r3 - 801bdfa: b29a uxth r2, r3 - 801bdfc: 687b ldr r3, [r7, #4] - 801bdfe: 851a strh r2, [r3, #40] ; 0x28 - - tcp_update_rcv_ann_wnd(pcb); - 801be00: 6878 ldr r0, [r7, #4] - 801be02: f7fc fd0d bl 8018820 - - if (cseg->p->tot_len > 0) { - 801be06: 68bb ldr r3, [r7, #8] - 801be08: 685b ldr r3, [r3, #4] - 801be0a: 891b ldrh r3, [r3, #8] - 801be0c: 2b00 cmp r3, #0 - 801be0e: d028 beq.n 801be62 - /* 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) { - 801be10: 4b0d ldr r3, [pc, #52] ; (801be48 ) - 801be12: 681b ldr r3, [r3, #0] - 801be14: 2b00 cmp r3, #0 - 801be16: d01d beq.n 801be54 - pbuf_cat(recv_data, cseg->p); - 801be18: 4b0b ldr r3, [pc, #44] ; (801be48 ) - 801be1a: 681a ldr r2, [r3, #0] - 801be1c: 68bb ldr r3, [r7, #8] - 801be1e: 685b ldr r3, [r3, #4] - 801be20: 4619 mov r1, r3 - 801be22: 4610 mov r0, r2 - 801be24: f7fb ff36 bl 8017c94 - 801be28: e018 b.n 801be5c - 801be2a: bf00 nop - 801be2c: 2401a4c6 .word 0x2401a4c6 - 801be30: 2401a4bc .word 0x2401a4bc - 801be34: 2401a498 .word 0x2401a498 - 801be38: 08025338 .word 0x08025338 - 801be3c: 08025718 .word 0x08025718 - 801be40: 08025384 .word 0x08025384 - 801be44: 08025754 .word 0x08025754 - 801be48: 2401a4cc .word 0x2401a4cc - 801be4c: 2401a4c9 .word 0x2401a4c9 - 801be50: 08025774 .word 0x08025774 - } else { - recv_data = cseg->p; - 801be54: 68bb ldr r3, [r7, #8] - 801be56: 685b ldr r3, [r3, #4] - 801be58: 4a70 ldr r2, [pc, #448] ; (801c01c ) - 801be5a: 6013 str r3, [r2, #0] - } - cseg->p = NULL; - 801be5c: 68bb ldr r3, [r7, #8] - 801be5e: 2200 movs r2, #0 - 801be60: 605a str r2, [r3, #4] - } - if (TCPH_FLAGS(cseg->tcphdr) & TCP_FIN) { - 801be62: 68bb ldr r3, [r7, #8] - 801be64: 691b ldr r3, [r3, #16] - 801be66: 899b ldrh r3, [r3, #12] - 801be68: b29b uxth r3, r3 - 801be6a: 4618 mov r0, r3 - 801be6c: f7fa f868 bl 8015f40 - 801be70: 4603 mov r3, r0 - 801be72: b2db uxtb r3, r3 - 801be74: f003 0301 and.w r3, r3, #1 - 801be78: 2b00 cmp r3, #0 - 801be7a: d00d beq.n 801be98 - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: dequeued FIN.\n")); - recv_flags |= TF_GOT_FIN; - 801be7c: 4b68 ldr r3, [pc, #416] ; (801c020 ) - 801be7e: 781b ldrb r3, [r3, #0] - 801be80: f043 0320 orr.w r3, r3, #32 - 801be84: b2da uxtb r2, r3 - 801be86: 4b66 ldr r3, [pc, #408] ; (801c020 ) - 801be88: 701a strb r2, [r3, #0] - if (pcb->state == ESTABLISHED) { /* force passive close or we can move to active close */ - 801be8a: 687b ldr r3, [r7, #4] - 801be8c: 7d1b ldrb r3, [r3, #20] - 801be8e: 2b04 cmp r3, #4 - 801be90: d102 bne.n 801be98 - pcb->state = CLOSE_WAIT; - 801be92: 687b ldr r3, [r7, #4] - 801be94: 2207 movs r2, #7 - 801be96: 751a strb r2, [r3, #20] - } - } - - pcb->ooseq = cseg->next; - 801be98: 68bb ldr r3, [r7, #8] - 801be9a: 681a ldr r2, [r3, #0] - 801be9c: 687b ldr r3, [r7, #4] - 801be9e: 675a str r2, [r3, #116] ; 0x74 - tcp_seg_free(cseg); - 801bea0: 68b8 ldr r0, [r7, #8] - 801bea2: f7fd fafe bl 80194a2 - while (pcb->ooseq != NULL && - 801bea6: 687b ldr r3, [r7, #4] - 801bea8: 6f5b ldr r3, [r3, #116] ; 0x74 - 801beaa: 2b00 cmp r3, #0 - 801beac: d008 beq.n 801bec0 - pcb->ooseq->tcphdr->seqno == pcb->rcv_nxt) { - 801beae: 687b ldr r3, [r7, #4] - 801beb0: 6f5b ldr r3, [r3, #116] ; 0x74 - 801beb2: 691b ldr r3, [r3, #16] - 801beb4: 685a ldr r2, [r3, #4] - 801beb6: 687b ldr r3, [r7, #4] - 801beb8: 6a5b ldr r3, [r3, #36] ; 0x24 - while (pcb->ooseq != NULL && - 801beba: 429a cmp r2, r3 - 801bebc: f43f af43 beq.w 801bd46 -#endif /* LWIP_TCP_SACK_OUT */ -#endif /* TCP_QUEUE_OOSEQ */ - - - /* Acknowledge the segment(s). */ - tcp_ack(pcb); - 801bec0: 687b ldr r3, [r7, #4] - 801bec2: 8b5b ldrh r3, [r3, #26] - 801bec4: f003 0301 and.w r3, r3, #1 - 801bec8: 2b00 cmp r3, #0 - 801beca: d00e beq.n 801beea - 801becc: 687b ldr r3, [r7, #4] - 801bece: 8b5b ldrh r3, [r3, #26] - 801bed0: f023 0301 bic.w r3, r3, #1 - 801bed4: b29a uxth r2, r3 - 801bed6: 687b ldr r3, [r7, #4] - 801bed8: 835a strh r2, [r3, #26] - 801beda: 687b ldr r3, [r7, #4] - 801bedc: 8b5b ldrh r3, [r3, #26] - 801bede: f043 0302 orr.w r3, r3, #2 - 801bee2: b29a uxth r2, r3 - 801bee4: 687b ldr r3, [r7, #4] - 801bee6: 835a strh r2, [r3, #26] - if (pcb->rcv_nxt == seqno) { - 801bee8: e188 b.n 801c1fc - tcp_ack(pcb); - 801beea: 687b ldr r3, [r7, #4] - 801beec: 8b5b ldrh r3, [r3, #26] - 801beee: f043 0301 orr.w r3, r3, #1 - 801bef2: b29a uxth r2, r3 - 801bef4: 687b ldr r3, [r7, #4] - 801bef6: 835a strh r2, [r3, #26] - if (pcb->rcv_nxt == seqno) { - 801bef8: e180 b.n 801c1fc - } 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) { - 801befa: 687b ldr r3, [r7, #4] - 801befc: 6f5b ldr r3, [r3, #116] ; 0x74 - 801befe: 2b00 cmp r3, #0 - 801bf00: d106 bne.n 801bf10 - pcb->ooseq = tcp_seg_copy(&inseg); - 801bf02: 4848 ldr r0, [pc, #288] ; (801c024 ) - 801bf04: f7fd fae6 bl 80194d4 - 801bf08: 4602 mov r2, r0 - 801bf0a: 687b ldr r3, [r7, #4] - 801bf0c: 675a str r2, [r3, #116] ; 0x74 - 801bf0e: e16d b.n 801c1ec -#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; - 801bf10: 2300 movs r3, #0 - 801bf12: 637b str r3, [r7, #52] ; 0x34 - for (next = pcb->ooseq; next != NULL; next = next->next) { - 801bf14: 687b ldr r3, [r7, #4] - 801bf16: 6f5b ldr r3, [r3, #116] ; 0x74 - 801bf18: 63bb str r3, [r7, #56] ; 0x38 - 801bf1a: e157 b.n 801c1cc - if (seqno == next->tcphdr->seqno) { - 801bf1c: 6bbb ldr r3, [r7, #56] ; 0x38 - 801bf1e: 691b ldr r3, [r3, #16] - 801bf20: 685a ldr r2, [r3, #4] - 801bf22: 4b41 ldr r3, [pc, #260] ; (801c028 ) - 801bf24: 681b ldr r3, [r3, #0] - 801bf26: 429a cmp r2, r3 - 801bf28: d11d bne.n 801bf66 - /* 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) { - 801bf2a: 4b3e ldr r3, [pc, #248] ; (801c024 ) - 801bf2c: 891a ldrh r2, [r3, #8] - 801bf2e: 6bbb ldr r3, [r7, #56] ; 0x38 - 801bf30: 891b ldrh r3, [r3, #8] - 801bf32: 429a cmp r2, r3 - 801bf34: f240 814f bls.w 801c1d6 - /* 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); - 801bf38: 483a ldr r0, [pc, #232] ; (801c024 ) - 801bf3a: f7fd facb bl 80194d4 - 801bf3e: 6178 str r0, [r7, #20] - if (cseg != NULL) { - 801bf40: 697b ldr r3, [r7, #20] - 801bf42: 2b00 cmp r3, #0 - 801bf44: f000 8149 beq.w 801c1da - if (prev != NULL) { - 801bf48: 6b7b ldr r3, [r7, #52] ; 0x34 - 801bf4a: 2b00 cmp r3, #0 - 801bf4c: d003 beq.n 801bf56 - prev->next = cseg; - 801bf4e: 6b7b ldr r3, [r7, #52] ; 0x34 - 801bf50: 697a ldr r2, [r7, #20] - 801bf52: 601a str r2, [r3, #0] - 801bf54: e002 b.n 801bf5c - } else { - pcb->ooseq = cseg; - 801bf56: 687b ldr r3, [r7, #4] - 801bf58: 697a ldr r2, [r7, #20] - 801bf5a: 675a str r2, [r3, #116] ; 0x74 - } - tcp_oos_insert_segment(cseg, next); - 801bf5c: 6bb9 ldr r1, [r7, #56] ; 0x38 - 801bf5e: 6978 ldr r0, [r7, #20] - 801bf60: f7ff f8dc bl 801b11c - } - break; - 801bf64: e139 b.n 801c1da - segment was smaller than the old one; in either - case, we ditch the incoming segment. */ - break; - } - } else { - if (prev == NULL) { - 801bf66: 6b7b ldr r3, [r7, #52] ; 0x34 - 801bf68: 2b00 cmp r3, #0 - 801bf6a: d117 bne.n 801bf9c - if (TCP_SEQ_LT(seqno, next->tcphdr->seqno)) { - 801bf6c: 4b2e ldr r3, [pc, #184] ; (801c028 ) - 801bf6e: 681a ldr r2, [r3, #0] - 801bf70: 6bbb ldr r3, [r7, #56] ; 0x38 - 801bf72: 691b ldr r3, [r3, #16] - 801bf74: 685b ldr r3, [r3, #4] - 801bf76: 1ad3 subs r3, r2, r3 - 801bf78: 2b00 cmp r3, #0 - 801bf7a: da57 bge.n 801c02c - /* 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); - 801bf7c: 4829 ldr r0, [pc, #164] ; (801c024 ) - 801bf7e: f7fd faa9 bl 80194d4 - 801bf82: 61b8 str r0, [r7, #24] - if (cseg != NULL) { - 801bf84: 69bb ldr r3, [r7, #24] - 801bf86: 2b00 cmp r3, #0 - 801bf88: f000 8129 beq.w 801c1de - pcb->ooseq = cseg; - 801bf8c: 687b ldr r3, [r7, #4] - 801bf8e: 69ba ldr r2, [r7, #24] - 801bf90: 675a str r2, [r3, #116] ; 0x74 - tcp_oos_insert_segment(cseg, next); - 801bf92: 6bb9 ldr r1, [r7, #56] ; 0x38 - 801bf94: 69b8 ldr r0, [r7, #24] - 801bf96: f7ff f8c1 bl 801b11c - } - break; - 801bf9a: e120 b.n 801c1de - } - } 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)) { - 801bf9c: 4b22 ldr r3, [pc, #136] ; (801c028 ) - 801bf9e: 681a ldr r2, [r3, #0] - 801bfa0: 6b7b ldr r3, [r7, #52] ; 0x34 - 801bfa2: 691b ldr r3, [r3, #16] - 801bfa4: 685b ldr r3, [r3, #4] - 801bfa6: 1ad3 subs r3, r2, r3 - 801bfa8: 3b01 subs r3, #1 - 801bfaa: 2b00 cmp r3, #0 - 801bfac: db3e blt.n 801c02c - 801bfae: 4b1e ldr r3, [pc, #120] ; (801c028 ) - 801bfb0: 681a ldr r2, [r3, #0] - 801bfb2: 6bbb ldr r3, [r7, #56] ; 0x38 - 801bfb4: 691b ldr r3, [r3, #16] - 801bfb6: 685b ldr r3, [r3, #4] - 801bfb8: 1ad3 subs r3, r2, r3 - 801bfba: 3301 adds r3, #1 - 801bfbc: 2b00 cmp r3, #0 - 801bfbe: dc35 bgt.n 801c02c - /* 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); - 801bfc0: 4818 ldr r0, [pc, #96] ; (801c024 ) - 801bfc2: f7fd fa87 bl 80194d4 - 801bfc6: 61f8 str r0, [r7, #28] - if (cseg != NULL) { - 801bfc8: 69fb ldr r3, [r7, #28] - 801bfca: 2b00 cmp r3, #0 - 801bfcc: f000 8109 beq.w 801c1e2 - if (TCP_SEQ_GT(prev->tcphdr->seqno + prev->len, seqno)) { - 801bfd0: 6b7b ldr r3, [r7, #52] ; 0x34 - 801bfd2: 691b ldr r3, [r3, #16] - 801bfd4: 685b ldr r3, [r3, #4] - 801bfd6: 6b7a ldr r2, [r7, #52] ; 0x34 - 801bfd8: 8912 ldrh r2, [r2, #8] - 801bfda: 441a add r2, r3 - 801bfdc: 4b12 ldr r3, [pc, #72] ; (801c028 ) - 801bfde: 681b ldr r3, [r3, #0] - 801bfe0: 1ad3 subs r3, r2, r3 - 801bfe2: 2b00 cmp r3, #0 - 801bfe4: dd12 ble.n 801c00c - /* We need to trim the prev segment. */ - prev->len = (u16_t)(seqno - prev->tcphdr->seqno); - 801bfe6: 4b10 ldr r3, [pc, #64] ; (801c028 ) - 801bfe8: 681b ldr r3, [r3, #0] - 801bfea: b29a uxth r2, r3 - 801bfec: 6b7b ldr r3, [r7, #52] ; 0x34 - 801bfee: 691b ldr r3, [r3, #16] - 801bff0: 685b ldr r3, [r3, #4] - 801bff2: b29b uxth r3, r3 - 801bff4: 1ad3 subs r3, r2, r3 - 801bff6: b29a uxth r2, r3 - 801bff8: 6b7b ldr r3, [r7, #52] ; 0x34 - 801bffa: 811a strh r2, [r3, #8] - pbuf_realloc(prev->p, prev->len); - 801bffc: 6b7b ldr r3, [r7, #52] ; 0x34 - 801bffe: 685a ldr r2, [r3, #4] - 801c000: 6b7b ldr r3, [r7, #52] ; 0x34 - 801c002: 891b ldrh r3, [r3, #8] - 801c004: 4619 mov r1, r3 - 801c006: 4610 mov r0, r2 - 801c008: f7fb fbf0 bl 80177ec - } - prev->next = cseg; - 801c00c: 6b7b ldr r3, [r7, #52] ; 0x34 - 801c00e: 69fa ldr r2, [r7, #28] - 801c010: 601a str r2, [r3, #0] - tcp_oos_insert_segment(cseg, next); - 801c012: 6bb9 ldr r1, [r7, #56] ; 0x38 - 801c014: 69f8 ldr r0, [r7, #28] - 801c016: f7ff f881 bl 801b11c - } - break; - 801c01a: e0e2 b.n 801c1e2 - 801c01c: 2401a4cc .word 0x2401a4cc - 801c020: 2401a4c9 .word 0x2401a4c9 - 801c024: 2401a498 .word 0x2401a498 - 801c028: 2401a4bc .word 0x2401a4bc -#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; - 801c02c: 6bbb ldr r3, [r7, #56] ; 0x38 - 801c02e: 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 && - 801c030: 6bbb ldr r3, [r7, #56] ; 0x38 - 801c032: 681b ldr r3, [r3, #0] - 801c034: 2b00 cmp r3, #0 - 801c036: f040 80c6 bne.w 801c1c6 - TCP_SEQ_GT(seqno, next->tcphdr->seqno)) { - 801c03a: 4b80 ldr r3, [pc, #512] ; (801c23c ) - 801c03c: 681a ldr r2, [r3, #0] - 801c03e: 6bbb ldr r3, [r7, #56] ; 0x38 - 801c040: 691b ldr r3, [r3, #16] - 801c042: 685b ldr r3, [r3, #4] - 801c044: 1ad3 subs r3, r2, r3 - if (next->next == NULL && - 801c046: 2b00 cmp r3, #0 - 801c048: f340 80bd ble.w 801c1c6 - if (TCPH_FLAGS(next->tcphdr) & TCP_FIN) { - 801c04c: 6bbb ldr r3, [r7, #56] ; 0x38 - 801c04e: 691b ldr r3, [r3, #16] - 801c050: 899b ldrh r3, [r3, #12] - 801c052: b29b uxth r3, r3 - 801c054: 4618 mov r0, r3 - 801c056: f7f9 ff73 bl 8015f40 - 801c05a: 4603 mov r3, r0 - 801c05c: b2db uxtb r3, r3 - 801c05e: f003 0301 and.w r3, r3, #1 - 801c062: 2b00 cmp r3, #0 - 801c064: f040 80bf bne.w 801c1e6 - /* segment "next" already contains all data */ - break; - } - next->next = tcp_seg_copy(&inseg); - 801c068: 4875 ldr r0, [pc, #468] ; (801c240 ) - 801c06a: f7fd fa33 bl 80194d4 - 801c06e: 4602 mov r2, r0 - 801c070: 6bbb ldr r3, [r7, #56] ; 0x38 - 801c072: 601a str r2, [r3, #0] - if (next->next != NULL) { - 801c074: 6bbb ldr r3, [r7, #56] ; 0x38 - 801c076: 681b ldr r3, [r3, #0] - 801c078: 2b00 cmp r3, #0 - 801c07a: f000 80b6 beq.w 801c1ea - if (TCP_SEQ_GT(next->tcphdr->seqno + next->len, seqno)) { - 801c07e: 6bbb ldr r3, [r7, #56] ; 0x38 - 801c080: 691b ldr r3, [r3, #16] - 801c082: 685b ldr r3, [r3, #4] - 801c084: 6bba ldr r2, [r7, #56] ; 0x38 - 801c086: 8912 ldrh r2, [r2, #8] - 801c088: 441a add r2, r3 - 801c08a: 4b6c ldr r3, [pc, #432] ; (801c23c ) - 801c08c: 681b ldr r3, [r3, #0] - 801c08e: 1ad3 subs r3, r2, r3 - 801c090: 2b00 cmp r3, #0 - 801c092: dd12 ble.n 801c0ba - /* We need to trim the last segment. */ - next->len = (u16_t)(seqno - next->tcphdr->seqno); - 801c094: 4b69 ldr r3, [pc, #420] ; (801c23c ) - 801c096: 681b ldr r3, [r3, #0] - 801c098: b29a uxth r2, r3 - 801c09a: 6bbb ldr r3, [r7, #56] ; 0x38 - 801c09c: 691b ldr r3, [r3, #16] - 801c09e: 685b ldr r3, [r3, #4] - 801c0a0: b29b uxth r3, r3 - 801c0a2: 1ad3 subs r3, r2, r3 - 801c0a4: b29a uxth r2, r3 - 801c0a6: 6bbb ldr r3, [r7, #56] ; 0x38 - 801c0a8: 811a strh r2, [r3, #8] - pbuf_realloc(next->p, next->len); - 801c0aa: 6bbb ldr r3, [r7, #56] ; 0x38 - 801c0ac: 685a ldr r2, [r3, #4] - 801c0ae: 6bbb ldr r3, [r7, #56] ; 0x38 - 801c0b0: 891b ldrh r3, [r3, #8] - 801c0b2: 4619 mov r1, r3 - 801c0b4: 4610 mov r0, r2 - 801c0b6: f7fb fb99 bl 80177ec - } - /* 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)) { - 801c0ba: 4b62 ldr r3, [pc, #392] ; (801c244 ) - 801c0bc: 881b ldrh r3, [r3, #0] - 801c0be: 461a mov r2, r3 - 801c0c0: 4b5e ldr r3, [pc, #376] ; (801c23c ) - 801c0c2: 681b ldr r3, [r3, #0] - 801c0c4: 441a add r2, r3 - 801c0c6: 687b ldr r3, [r7, #4] - 801c0c8: 6a5b ldr r3, [r3, #36] ; 0x24 - 801c0ca: 6879 ldr r1, [r7, #4] - 801c0cc: 8d09 ldrh r1, [r1, #40] ; 0x28 - 801c0ce: 440b add r3, r1 - 801c0d0: 1ad3 subs r3, r2, r3 - 801c0d2: 2b00 cmp r3, #0 - 801c0d4: f340 8089 ble.w 801c1ea - 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) { - 801c0d8: 6bbb ldr r3, [r7, #56] ; 0x38 - 801c0da: 681b ldr r3, [r3, #0] - 801c0dc: 691b ldr r3, [r3, #16] - 801c0de: 899b ldrh r3, [r3, #12] - 801c0e0: b29b uxth r3, r3 - 801c0e2: 4618 mov r0, r3 - 801c0e4: f7f9 ff2c bl 8015f40 - 801c0e8: 4603 mov r3, r0 - 801c0ea: b2db uxtb r3, r3 - 801c0ec: f003 0301 and.w r3, r3, #1 - 801c0f0: 2b00 cmp r3, #0 - 801c0f2: d022 beq.n 801c13a - /* 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); - 801c0f4: 6bbb ldr r3, [r7, #56] ; 0x38 - 801c0f6: 681b ldr r3, [r3, #0] - 801c0f8: 691b ldr r3, [r3, #16] - 801c0fa: 899b ldrh r3, [r3, #12] - 801c0fc: b29b uxth r3, r3 - 801c0fe: b21b sxth r3, r3 - 801c100: f423 537c bic.w r3, r3, #16128 ; 0x3f00 - 801c104: b21c sxth r4, r3 - 801c106: 6bbb ldr r3, [r7, #56] ; 0x38 - 801c108: 681b ldr r3, [r3, #0] - 801c10a: 691b ldr r3, [r3, #16] - 801c10c: 899b ldrh r3, [r3, #12] - 801c10e: b29b uxth r3, r3 - 801c110: 4618 mov r0, r3 - 801c112: f7f9 ff15 bl 8015f40 - 801c116: 4603 mov r3, r0 - 801c118: b2db uxtb r3, r3 - 801c11a: b29b uxth r3, r3 - 801c11c: f003 033e and.w r3, r3, #62 ; 0x3e - 801c120: b29b uxth r3, r3 - 801c122: 4618 mov r0, r3 - 801c124: f7f9 ff0c bl 8015f40 - 801c128: 4603 mov r3, r0 - 801c12a: b21b sxth r3, r3 - 801c12c: 4323 orrs r3, r4 - 801c12e: b21a sxth r2, r3 - 801c130: 6bbb ldr r3, [r7, #56] ; 0x38 - 801c132: 681b ldr r3, [r3, #0] - 801c134: 691b ldr r3, [r3, #16] - 801c136: b292 uxth r2, r2 - 801c138: 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); - 801c13a: 687b ldr r3, [r7, #4] - 801c13c: 6a5b ldr r3, [r3, #36] ; 0x24 - 801c13e: b29a uxth r2, r3 - 801c140: 687b ldr r3, [r7, #4] - 801c142: 8d1b ldrh r3, [r3, #40] ; 0x28 - 801c144: 4413 add r3, r2 - 801c146: b299 uxth r1, r3 - 801c148: 4b3c ldr r3, [pc, #240] ; (801c23c ) - 801c14a: 681b ldr r3, [r3, #0] - 801c14c: b29a uxth r2, r3 - 801c14e: 6bbb ldr r3, [r7, #56] ; 0x38 - 801c150: 681b ldr r3, [r3, #0] - 801c152: 1a8a subs r2, r1, r2 - 801c154: b292 uxth r2, r2 - 801c156: 811a strh r2, [r3, #8] - pbuf_realloc(next->next->p, next->next->len); - 801c158: 6bbb ldr r3, [r7, #56] ; 0x38 - 801c15a: 681b ldr r3, [r3, #0] - 801c15c: 685a ldr r2, [r3, #4] - 801c15e: 6bbb ldr r3, [r7, #56] ; 0x38 - 801c160: 681b ldr r3, [r3, #0] - 801c162: 891b ldrh r3, [r3, #8] - 801c164: 4619 mov r1, r3 - 801c166: 4610 mov r0, r2 - 801c168: f7fb fb40 bl 80177ec - tcplen = TCP_TCPLEN(next->next); - 801c16c: 6bbb ldr r3, [r7, #56] ; 0x38 - 801c16e: 681b ldr r3, [r3, #0] - 801c170: 891c ldrh r4, [r3, #8] - 801c172: 6bbb ldr r3, [r7, #56] ; 0x38 - 801c174: 681b ldr r3, [r3, #0] - 801c176: 691b ldr r3, [r3, #16] - 801c178: 899b ldrh r3, [r3, #12] - 801c17a: b29b uxth r3, r3 - 801c17c: 4618 mov r0, r3 - 801c17e: f7f9 fedf bl 8015f40 - 801c182: 4603 mov r3, r0 - 801c184: b2db uxtb r3, r3 - 801c186: f003 0303 and.w r3, r3, #3 - 801c18a: 2b00 cmp r3, #0 - 801c18c: d001 beq.n 801c192 - 801c18e: 2301 movs r3, #1 - 801c190: e000 b.n 801c194 - 801c192: 2300 movs r3, #0 - 801c194: 4423 add r3, r4 - 801c196: b29a uxth r2, r3 - 801c198: 4b2a ldr r3, [pc, #168] ; (801c244 ) - 801c19a: 801a strh r2, [r3, #0] - LWIP_ASSERT("tcp_receive: segment not trimmed correctly to rcv_wnd\n", - 801c19c: 4b29 ldr r3, [pc, #164] ; (801c244 ) - 801c19e: 881b ldrh r3, [r3, #0] - 801c1a0: 461a mov r2, r3 - 801c1a2: 4b26 ldr r3, [pc, #152] ; (801c23c ) - 801c1a4: 681b ldr r3, [r3, #0] - 801c1a6: 441a add r2, r3 - 801c1a8: 687b ldr r3, [r7, #4] - 801c1aa: 6a5b ldr r3, [r3, #36] ; 0x24 - 801c1ac: 6879 ldr r1, [r7, #4] - 801c1ae: 8d09 ldrh r1, [r1, #40] ; 0x28 - 801c1b0: 440b add r3, r1 - 801c1b2: 429a cmp r2, r3 - 801c1b4: d019 beq.n 801c1ea - 801c1b6: 4b24 ldr r3, [pc, #144] ; (801c248 ) - 801c1b8: f44f 62df mov.w r2, #1784 ; 0x6f8 - 801c1bc: 4923 ldr r1, [pc, #140] ; (801c24c ) - 801c1be: 4824 ldr r0, [pc, #144] ; (801c250 ) - 801c1c0: f005 fbe2 bl 8021988 - (seqno + tcplen) == (pcb->rcv_nxt + pcb->rcv_wnd)); - } - } - break; - 801c1c4: e011 b.n 801c1ea - for (next = pcb->ooseq; next != NULL; next = next->next) { - 801c1c6: 6bbb ldr r3, [r7, #56] ; 0x38 - 801c1c8: 681b ldr r3, [r3, #0] - 801c1ca: 63bb str r3, [r7, #56] ; 0x38 - 801c1cc: 6bbb ldr r3, [r7, #56] ; 0x38 - 801c1ce: 2b00 cmp r3, #0 - 801c1d0: f47f aea4 bne.w 801bf1c - 801c1d4: e00a b.n 801c1ec - break; - 801c1d6: bf00 nop - 801c1d8: e008 b.n 801c1ec - break; - 801c1da: bf00 nop - 801c1dc: e006 b.n 801c1ec - break; - 801c1de: bf00 nop - 801c1e0: e004 b.n 801c1ec - break; - 801c1e2: bf00 nop - 801c1e4: e002 b.n 801c1ec - break; - 801c1e6: bf00 nop - 801c1e8: e000 b.n 801c1ec - break; - 801c1ea: 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); - 801c1ec: 6878 ldr r0, [r7, #4] - 801c1ee: f001 fef7 bl 801dfe0 - if (pcb->rcv_nxt == seqno) { - 801c1f2: e003 b.n 801c1fc - } - } else { - /* The incoming segment is not within the window. */ - tcp_send_empty_ack(pcb); - 801c1f4: 6878 ldr r0, [r7, #4] - 801c1f6: f001 fef3 bl 801dfe0 - if (TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt, - 801c1fa: e01a b.n 801c232 - 801c1fc: e019 b.n 801c232 - } - } 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)) { - 801c1fe: 4b0f ldr r3, [pc, #60] ; (801c23c ) - 801c200: 681a ldr r2, [r3, #0] - 801c202: 687b ldr r3, [r7, #4] - 801c204: 6a5b ldr r3, [r3, #36] ; 0x24 - 801c206: 1ad3 subs r3, r2, r3 - 801c208: 2b00 cmp r3, #0 - 801c20a: db0a blt.n 801c222 - 801c20c: 4b0b ldr r3, [pc, #44] ; (801c23c ) - 801c20e: 681a ldr r2, [r3, #0] - 801c210: 687b ldr r3, [r7, #4] - 801c212: 6a5b ldr r3, [r3, #36] ; 0x24 - 801c214: 6879 ldr r1, [r7, #4] - 801c216: 8d09 ldrh r1, [r1, #40] ; 0x28 - 801c218: 440b add r3, r1 - 801c21a: 1ad3 subs r3, r2, r3 - 801c21c: 3301 adds r3, #1 - 801c21e: 2b00 cmp r3, #0 - 801c220: dd07 ble.n 801c232 - tcp_ack_now(pcb); - 801c222: 687b ldr r3, [r7, #4] - 801c224: 8b5b ldrh r3, [r3, #26] - 801c226: f043 0302 orr.w r3, r3, #2 - 801c22a: b29a uxth r2, r3 - 801c22c: 687b ldr r3, [r7, #4] - 801c22e: 835a strh r2, [r3, #26] - } - } -} - 801c230: e7ff b.n 801c232 - 801c232: bf00 nop - 801c234: 3750 adds r7, #80 ; 0x50 - 801c236: 46bd mov sp, r7 - 801c238: bdb0 pop {r4, r5, r7, pc} - 801c23a: bf00 nop - 801c23c: 2401a4bc .word 0x2401a4bc - 801c240: 2401a498 .word 0x2401a498 - 801c244: 2401a4c6 .word 0x2401a4c6 - 801c248: 08025338 .word 0x08025338 - 801c24c: 080256e0 .word 0x080256e0 - 801c250: 08025384 .word 0x08025384 - -0801c254 : - -static u8_t -tcp_get_next_optbyte(void) -{ - 801c254: b480 push {r7} - 801c256: b083 sub sp, #12 - 801c258: af00 add r7, sp, #0 - u16_t optidx = tcp_optidx++; - 801c25a: 4b15 ldr r3, [pc, #84] ; (801c2b0 ) - 801c25c: 881b ldrh r3, [r3, #0] - 801c25e: 1c5a adds r2, r3, #1 - 801c260: b291 uxth r1, r2 - 801c262: 4a13 ldr r2, [pc, #76] ; (801c2b0 ) - 801c264: 8011 strh r1, [r2, #0] - 801c266: 80fb strh r3, [r7, #6] - if ((tcphdr_opt2 == NULL) || (optidx < tcphdr_opt1len)) { - 801c268: 4b12 ldr r3, [pc, #72] ; (801c2b4 ) - 801c26a: 681b ldr r3, [r3, #0] - 801c26c: 2b00 cmp r3, #0 - 801c26e: d004 beq.n 801c27a - 801c270: 4b11 ldr r3, [pc, #68] ; (801c2b8 ) - 801c272: 881b ldrh r3, [r3, #0] - 801c274: 88fa ldrh r2, [r7, #6] - 801c276: 429a cmp r2, r3 - 801c278: d208 bcs.n 801c28c - u8_t *opts = (u8_t *)tcphdr + TCP_HLEN; - 801c27a: 4b10 ldr r3, [pc, #64] ; (801c2bc ) - 801c27c: 681b ldr r3, [r3, #0] - 801c27e: 3314 adds r3, #20 - 801c280: 603b str r3, [r7, #0] - return opts[optidx]; - 801c282: 88fb ldrh r3, [r7, #6] - 801c284: 683a ldr r2, [r7, #0] - 801c286: 4413 add r3, r2 - 801c288: 781b ldrb r3, [r3, #0] - 801c28a: e00b b.n 801c2a4 - } else { - u8_t idx = (u8_t)(optidx - tcphdr_opt1len); - 801c28c: 88fb ldrh r3, [r7, #6] - 801c28e: b2da uxtb r2, r3 - 801c290: 4b09 ldr r3, [pc, #36] ; (801c2b8 ) - 801c292: 881b ldrh r3, [r3, #0] - 801c294: b2db uxtb r3, r3 - 801c296: 1ad3 subs r3, r2, r3 - 801c298: 717b strb r3, [r7, #5] - return tcphdr_opt2[idx]; - 801c29a: 4b06 ldr r3, [pc, #24] ; (801c2b4 ) - 801c29c: 681a ldr r2, [r3, #0] - 801c29e: 797b ldrb r3, [r7, #5] - 801c2a0: 4413 add r3, r2 - 801c2a2: 781b ldrb r3, [r3, #0] - } -} - 801c2a4: 4618 mov r0, r3 - 801c2a6: 370c adds r7, #12 - 801c2a8: 46bd mov sp, r7 - 801c2aa: f85d 7b04 ldr.w r7, [sp], #4 - 801c2ae: 4770 bx lr - 801c2b0: 2401a4b8 .word 0x2401a4b8 - 801c2b4: 2401a4b4 .word 0x2401a4b4 - 801c2b8: 2401a4b2 .word 0x2401a4b2 - 801c2bc: 2401a4ac .word 0x2401a4ac - -0801c2c0 : - * - * @param pcb the tcp_pcb for which a segment arrived - */ -static void -tcp_parseopt(struct tcp_pcb *pcb) -{ - 801c2c0: b580 push {r7, lr} - 801c2c2: b084 sub sp, #16 - 801c2c4: af00 add r7, sp, #0 - 801c2c6: 6078 str r0, [r7, #4] - u16_t mss; -#if LWIP_TCP_TIMESTAMPS - u32_t tsval; -#endif - - LWIP_ASSERT("tcp_parseopt: invalid pcb", pcb != NULL); - 801c2c8: 687b ldr r3, [r7, #4] - 801c2ca: 2b00 cmp r3, #0 - 801c2cc: d106 bne.n 801c2dc - 801c2ce: 4b32 ldr r3, [pc, #200] ; (801c398 ) - 801c2d0: f240 727d movw r2, #1917 ; 0x77d - 801c2d4: 4931 ldr r1, [pc, #196] ; (801c39c ) - 801c2d6: 4832 ldr r0, [pc, #200] ; (801c3a0 ) - 801c2d8: f005 fb56 bl 8021988 - - /* Parse the TCP MSS option, if present. */ - if (tcphdr_optlen != 0) { - 801c2dc: 4b31 ldr r3, [pc, #196] ; (801c3a4 ) - 801c2de: 881b ldrh r3, [r3, #0] - 801c2e0: 2b00 cmp r3, #0 - 801c2e2: d056 beq.n 801c392 - for (tcp_optidx = 0; tcp_optidx < tcphdr_optlen; ) { - 801c2e4: 4b30 ldr r3, [pc, #192] ; (801c3a8 ) - 801c2e6: 2200 movs r2, #0 - 801c2e8: 801a strh r2, [r3, #0] - 801c2ea: e046 b.n 801c37a - u8_t opt = tcp_get_next_optbyte(); - 801c2ec: f7ff ffb2 bl 801c254 - 801c2f0: 4603 mov r3, r0 - 801c2f2: 73fb strb r3, [r7, #15] - switch (opt) { - 801c2f4: 7bfb ldrb r3, [r7, #15] - 801c2f6: 2b02 cmp r3, #2 - 801c2f8: d006 beq.n 801c308 - 801c2fa: 2b02 cmp r3, #2 - 801c2fc: dc2c bgt.n 801c358 - 801c2fe: 2b00 cmp r3, #0 - 801c300: d042 beq.n 801c388 - 801c302: 2b01 cmp r3, #1 - 801c304: d128 bne.n 801c358 - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: EOL\n")); - return; - case LWIP_TCP_OPT_NOP: - /* NOP option. */ - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: NOP\n")); - break; - 801c306: e038 b.n 801c37a - 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) { - 801c308: f7ff ffa4 bl 801c254 - 801c30c: 4603 mov r3, r0 - 801c30e: 2b04 cmp r3, #4 - 801c310: d13c bne.n 801c38c - 801c312: 4b25 ldr r3, [pc, #148] ; (801c3a8 ) - 801c314: 881b ldrh r3, [r3, #0] - 801c316: 3301 adds r3, #1 - 801c318: 4a22 ldr r2, [pc, #136] ; (801c3a4 ) - 801c31a: 8812 ldrh r2, [r2, #0] - 801c31c: 4293 cmp r3, r2 - 801c31e: da35 bge.n 801c38c - /* 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); - 801c320: f7ff ff98 bl 801c254 - 801c324: 4603 mov r3, r0 - 801c326: b29b uxth r3, r3 - 801c328: 021b lsls r3, r3, #8 - 801c32a: 81bb strh r3, [r7, #12] - mss |= tcp_get_next_optbyte(); - 801c32c: f7ff ff92 bl 801c254 - 801c330: 4603 mov r3, r0 - 801c332: b29a uxth r2, r3 - 801c334: 89bb ldrh r3, [r7, #12] - 801c336: 4313 orrs r3, r2 - 801c338: 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; - 801c33a: 89bb ldrh r3, [r7, #12] - 801c33c: f240 52b4 movw r2, #1460 ; 0x5b4 - 801c340: 4293 cmp r3, r2 - 801c342: d804 bhi.n 801c34e - 801c344: 89bb ldrh r3, [r7, #12] - 801c346: 2b00 cmp r3, #0 - 801c348: d001 beq.n 801c34e - 801c34a: 89ba ldrh r2, [r7, #12] - 801c34c: e001 b.n 801c352 - 801c34e: f240 52b4 movw r2, #1460 ; 0x5b4 - 801c352: 687b ldr r3, [r7, #4] - 801c354: 865a strh r2, [r3, #50] ; 0x32 - break; - 801c356: e010 b.n 801c37a - } - break; -#endif /* LWIP_TCP_SACK_OUT */ - default: - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: other\n")); - data = tcp_get_next_optbyte(); - 801c358: f7ff ff7c bl 801c254 - 801c35c: 4603 mov r3, r0 - 801c35e: 72fb strb r3, [r7, #11] - if (data < 2) { - 801c360: 7afb ldrb r3, [r7, #11] - 801c362: 2b01 cmp r3, #1 - 801c364: d914 bls.n 801c390 - 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; - 801c366: 7afb ldrb r3, [r7, #11] - 801c368: b29a uxth r2, r3 - 801c36a: 4b0f ldr r3, [pc, #60] ; (801c3a8 ) - 801c36c: 881b ldrh r3, [r3, #0] - 801c36e: 4413 add r3, r2 - 801c370: b29b uxth r3, r3 - 801c372: 3b02 subs r3, #2 - 801c374: b29a uxth r2, r3 - 801c376: 4b0c ldr r3, [pc, #48] ; (801c3a8 ) - 801c378: 801a strh r2, [r3, #0] - for (tcp_optidx = 0; tcp_optidx < tcphdr_optlen; ) { - 801c37a: 4b0b ldr r3, [pc, #44] ; (801c3a8 ) - 801c37c: 881a ldrh r2, [r3, #0] - 801c37e: 4b09 ldr r3, [pc, #36] ; (801c3a4 ) - 801c380: 881b ldrh r3, [r3, #0] - 801c382: 429a cmp r2, r3 - 801c384: d3b2 bcc.n 801c2ec - 801c386: e004 b.n 801c392 - return; - 801c388: bf00 nop - 801c38a: e002 b.n 801c392 - return; - 801c38c: bf00 nop - 801c38e: e000 b.n 801c392 - return; - 801c390: bf00 nop - } - } - } -} - 801c392: 3710 adds r7, #16 - 801c394: 46bd mov sp, r7 - 801c396: bd80 pop {r7, pc} - 801c398: 08025338 .word 0x08025338 - 801c39c: 0802579c .word 0x0802579c - 801c3a0: 08025384 .word 0x08025384 - 801c3a4: 2401a4b0 .word 0x2401a4b0 - 801c3a8: 2401a4b8 .word 0x2401a4b8 - -0801c3ac : - -void -tcp_trigger_input_pcb_close(void) -{ - 801c3ac: b480 push {r7} - 801c3ae: af00 add r7, sp, #0 - recv_flags |= TF_CLOSED; - 801c3b0: 4b05 ldr r3, [pc, #20] ; (801c3c8 ) - 801c3b2: 781b ldrb r3, [r3, #0] - 801c3b4: f043 0310 orr.w r3, r3, #16 - 801c3b8: b2da uxtb r2, r3 - 801c3ba: 4b03 ldr r3, [pc, #12] ; (801c3c8 ) - 801c3bc: 701a strb r2, [r3, #0] -} - 801c3be: bf00 nop - 801c3c0: 46bd mov sp, r7 - 801c3c2: f85d 7b04 ldr.w r7, [sp], #4 - 801c3c6: 4770 bx lr - 801c3c8: 2401a4c9 .word 0x2401a4c9 - -0801c3cc : -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) -{ - 801c3cc: b580 push {r7, lr} - 801c3ce: b084 sub sp, #16 - 801c3d0: af00 add r7, sp, #0 - 801c3d2: 60f8 str r0, [r7, #12] - 801c3d4: 60b9 str r1, [r7, #8] - 801c3d6: 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)) { - 801c3d8: 68fb ldr r3, [r7, #12] - 801c3da: 2b00 cmp r3, #0 - 801c3dc: d00a beq.n 801c3f4 - 801c3de: 68fb ldr r3, [r7, #12] - 801c3e0: 7a1b ldrb r3, [r3, #8] - 801c3e2: 2b00 cmp r3, #0 - 801c3e4: d006 beq.n 801c3f4 - return netif_get_by_index(pcb->netif_idx); - 801c3e6: 68fb ldr r3, [r7, #12] - 801c3e8: 7a1b ldrb r3, [r3, #8] - 801c3ea: 4618 mov r0, r3 - 801c3ec: f7fa fff2 bl 80173d4 - 801c3f0: 4603 mov r3, r0 - 801c3f2: e003 b.n 801c3fc - } else { - return ip_route(src, dst); - 801c3f4: 6878 ldr r0, [r7, #4] - 801c3f6: f003 fd7d bl 801fef4 - 801c3fa: 4603 mov r3, r0 - } -} - 801c3fc: 4618 mov r0, r3 - 801c3fe: 3710 adds r7, #16 - 801c400: 46bd mov sp, r7 - 801c402: bd80 pop {r7, pc} - -0801c404 : - * 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) -{ - 801c404: b590 push {r4, r7, lr} - 801c406: b087 sub sp, #28 - 801c408: af00 add r7, sp, #0 - 801c40a: 60f8 str r0, [r7, #12] - 801c40c: 60b9 str r1, [r7, #8] - 801c40e: 603b str r3, [r7, #0] - 801c410: 4613 mov r3, r2 - 801c412: 71fb strb r3, [r7, #7] - struct tcp_seg *seg; - u8_t optlen; - - LWIP_ASSERT("tcp_create_segment: invalid pcb", pcb != NULL); - 801c414: 68fb ldr r3, [r7, #12] - 801c416: 2b00 cmp r3, #0 - 801c418: d105 bne.n 801c426 - 801c41a: 4b45 ldr r3, [pc, #276] ; (801c530 ) - 801c41c: 22a3 movs r2, #163 ; 0xa3 - 801c41e: 4945 ldr r1, [pc, #276] ; (801c534 ) - 801c420: 4845 ldr r0, [pc, #276] ; (801c538 ) - 801c422: f005 fab1 bl 8021988 - LWIP_ASSERT("tcp_create_segment: invalid pbuf", p != NULL); - 801c426: 68bb ldr r3, [r7, #8] - 801c428: 2b00 cmp r3, #0 - 801c42a: d105 bne.n 801c438 - 801c42c: 4b40 ldr r3, [pc, #256] ; (801c530 ) - 801c42e: 22a4 movs r2, #164 ; 0xa4 - 801c430: 4942 ldr r1, [pc, #264] ; (801c53c ) - 801c432: 4841 ldr r0, [pc, #260] ; (801c538 ) - 801c434: f005 faa8 bl 8021988 - - optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb); - 801c438: f897 3028 ldrb.w r3, [r7, #40] ; 0x28 - 801c43c: 009b lsls r3, r3, #2 - 801c43e: b2db uxtb r3, r3 - 801c440: f003 0304 and.w r3, r3, #4 - 801c444: 75fb strb r3, [r7, #23] - - if ((seg = (struct tcp_seg *)memp_malloc(MEMP_TCP_SEG)) == NULL) { - 801c446: 2003 movs r0, #3 - 801c448: f7fa fb42 bl 8016ad0 - 801c44c: 6138 str r0, [r7, #16] - 801c44e: 693b ldr r3, [r7, #16] - 801c450: 2b00 cmp r3, #0 - 801c452: d104 bne.n 801c45e - LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_create_segment: no memory.\n")); - pbuf_free(p); - 801c454: 68b8 ldr r0, [r7, #8] - 801c456: f7fb fb4f bl 8017af8 - return NULL; - 801c45a: 2300 movs r3, #0 - 801c45c: e064 b.n 801c528 - } - seg->flags = optflags; - 801c45e: 693b ldr r3, [r7, #16] - 801c460: f897 2028 ldrb.w r2, [r7, #40] ; 0x28 - 801c464: 731a strb r2, [r3, #12] - seg->next = NULL; - 801c466: 693b ldr r3, [r7, #16] - 801c468: 2200 movs r2, #0 - 801c46a: 601a str r2, [r3, #0] - seg->p = p; - 801c46c: 693b ldr r3, [r7, #16] - 801c46e: 68ba ldr r2, [r7, #8] - 801c470: 605a str r2, [r3, #4] - LWIP_ASSERT("p->tot_len >= optlen", p->tot_len >= optlen); - 801c472: 68bb ldr r3, [r7, #8] - 801c474: 891a ldrh r2, [r3, #8] - 801c476: 7dfb ldrb r3, [r7, #23] - 801c478: b29b uxth r3, r3 - 801c47a: 429a cmp r2, r3 - 801c47c: d205 bcs.n 801c48a - 801c47e: 4b2c ldr r3, [pc, #176] ; (801c530 ) - 801c480: 22b0 movs r2, #176 ; 0xb0 - 801c482: 492f ldr r1, [pc, #188] ; (801c540 ) - 801c484: 482c ldr r0, [pc, #176] ; (801c538 ) - 801c486: f005 fa7f bl 8021988 - seg->len = p->tot_len - optlen; - 801c48a: 68bb ldr r3, [r7, #8] - 801c48c: 891a ldrh r2, [r3, #8] - 801c48e: 7dfb ldrb r3, [r7, #23] - 801c490: b29b uxth r3, r3 - 801c492: 1ad3 subs r3, r2, r3 - 801c494: b29a uxth r2, r3 - 801c496: 693b ldr r3, [r7, #16] - 801c498: 811a strh r2, [r3, #8] -#if TCP_OVERSIZE_DBGCHECK - seg->oversize_left = 0; - 801c49a: 693b ldr r3, [r7, #16] - 801c49c: 2200 movs r2, #0 - 801c49e: 815a strh r2, [r3, #10] - 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)) { - 801c4a0: 2114 movs r1, #20 - 801c4a2: 68b8 ldr r0, [r7, #8] - 801c4a4: f7fb fa92 bl 80179cc - 801c4a8: 4603 mov r3, r0 - 801c4aa: 2b00 cmp r3, #0 - 801c4ac: d004 beq.n 801c4b8 - 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); - 801c4ae: 6938 ldr r0, [r7, #16] - 801c4b0: f7fc fff7 bl 80194a2 - return NULL; - 801c4b4: 2300 movs r3, #0 - 801c4b6: e037 b.n 801c528 - } - seg->tcphdr = (struct tcp_hdr *)seg->p->payload; - 801c4b8: 693b ldr r3, [r7, #16] - 801c4ba: 685b ldr r3, [r3, #4] - 801c4bc: 685a ldr r2, [r3, #4] - 801c4be: 693b ldr r3, [r7, #16] - 801c4c0: 611a str r2, [r3, #16] - seg->tcphdr->src = lwip_htons(pcb->local_port); - 801c4c2: 68fb ldr r3, [r7, #12] - 801c4c4: 8ada ldrh r2, [r3, #22] - 801c4c6: 693b ldr r3, [r7, #16] - 801c4c8: 691c ldr r4, [r3, #16] - 801c4ca: 4610 mov r0, r2 - 801c4cc: f7f9 fd38 bl 8015f40 - 801c4d0: 4603 mov r3, r0 - 801c4d2: 8023 strh r3, [r4, #0] - seg->tcphdr->dest = lwip_htons(pcb->remote_port); - 801c4d4: 68fb ldr r3, [r7, #12] - 801c4d6: 8b1a ldrh r2, [r3, #24] - 801c4d8: 693b ldr r3, [r7, #16] - 801c4da: 691c ldr r4, [r3, #16] - 801c4dc: 4610 mov r0, r2 - 801c4de: f7f9 fd2f bl 8015f40 - 801c4e2: 4603 mov r3, r0 - 801c4e4: 8063 strh r3, [r4, #2] - seg->tcphdr->seqno = lwip_htonl(seqno); - 801c4e6: 693b ldr r3, [r7, #16] - 801c4e8: 691c ldr r4, [r3, #16] - 801c4ea: 6838 ldr r0, [r7, #0] - 801c4ec: f7f9 fd3d bl 8015f6a - 801c4f0: 4603 mov r3, r0 - 801c4f2: 6063 str r3, [r4, #4] - /* ackno is set in tcp_output */ - TCPH_HDRLEN_FLAGS_SET(seg->tcphdr, (5 + optlen / 4), hdrflags); - 801c4f4: 7dfb ldrb r3, [r7, #23] - 801c4f6: 089b lsrs r3, r3, #2 - 801c4f8: b2db uxtb r3, r3 - 801c4fa: b29b uxth r3, r3 - 801c4fc: 3305 adds r3, #5 - 801c4fe: b29b uxth r3, r3 - 801c500: 031b lsls r3, r3, #12 - 801c502: b29a uxth r2, r3 - 801c504: 79fb ldrb r3, [r7, #7] - 801c506: b29b uxth r3, r3 - 801c508: 4313 orrs r3, r2 - 801c50a: b29a uxth r2, r3 - 801c50c: 693b ldr r3, [r7, #16] - 801c50e: 691c ldr r4, [r3, #16] - 801c510: 4610 mov r0, r2 - 801c512: f7f9 fd15 bl 8015f40 - 801c516: 4603 mov r3, r0 - 801c518: 81a3 strh r3, [r4, #12] - /* wnd and chksum are set in tcp_output */ - seg->tcphdr->urgp = 0; - 801c51a: 693b ldr r3, [r7, #16] - 801c51c: 691b ldr r3, [r3, #16] - 801c51e: 2200 movs r2, #0 - 801c520: 749a strb r2, [r3, #18] - 801c522: 2200 movs r2, #0 - 801c524: 74da strb r2, [r3, #19] - return seg; - 801c526: 693b ldr r3, [r7, #16] -} - 801c528: 4618 mov r0, r3 - 801c52a: 371c adds r7, #28 - 801c52c: 46bd mov sp, r7 - 801c52e: bd90 pop {r4, r7, pc} - 801c530: 080257b8 .word 0x080257b8 - 801c534: 080257ec .word 0x080257ec - 801c538: 0802580c .word 0x0802580c - 801c53c: 08025834 .word 0x08025834 - 801c540: 08025858 .word 0x08025858 - -0801c544 : -#if TCP_OVERSIZE -static struct pbuf * -tcp_pbuf_prealloc(pbuf_layer layer, u16_t length, u16_t max_length, - u16_t *oversize, const struct tcp_pcb *pcb, u8_t apiflags, - u8_t first_seg) -{ - 801c544: b580 push {r7, lr} - 801c546: b086 sub sp, #24 - 801c548: af00 add r7, sp, #0 - 801c54a: 607b str r3, [r7, #4] - 801c54c: 4603 mov r3, r0 - 801c54e: 73fb strb r3, [r7, #15] - 801c550: 460b mov r3, r1 - 801c552: 81bb strh r3, [r7, #12] - 801c554: 4613 mov r3, r2 - 801c556: 817b strh r3, [r7, #10] - struct pbuf *p; - u16_t alloc = length; - 801c558: 89bb ldrh r3, [r7, #12] - 801c55a: 82fb strh r3, [r7, #22] - - LWIP_ASSERT("tcp_pbuf_prealloc: invalid oversize", oversize != NULL); - 801c55c: 687b ldr r3, [r7, #4] - 801c55e: 2b00 cmp r3, #0 - 801c560: d105 bne.n 801c56e - 801c562: 4b30 ldr r3, [pc, #192] ; (801c624 ) - 801c564: 22e8 movs r2, #232 ; 0xe8 - 801c566: 4930 ldr r1, [pc, #192] ; (801c628 ) - 801c568: 4830 ldr r0, [pc, #192] ; (801c62c ) - 801c56a: f005 fa0d bl 8021988 - LWIP_ASSERT("tcp_pbuf_prealloc: invalid pcb", pcb != NULL); - 801c56e: 6a3b ldr r3, [r7, #32] - 801c570: 2b00 cmp r3, #0 - 801c572: d105 bne.n 801c580 - 801c574: 4b2b ldr r3, [pc, #172] ; (801c624 ) - 801c576: 22e9 movs r2, #233 ; 0xe9 - 801c578: 492d ldr r1, [pc, #180] ; (801c630 ) - 801c57a: 482c ldr r0, [pc, #176] ; (801c62c ) - 801c57c: f005 fa04 bl 8021988 - LWIP_UNUSED_ARG(pcb); - LWIP_UNUSED_ARG(apiflags); - LWIP_UNUSED_ARG(first_seg); - alloc = max_length; -#else /* LWIP_NETIF_TX_SINGLE_PBUF */ - if (length < max_length) { - 801c580: 89ba ldrh r2, [r7, #12] - 801c582: 897b ldrh r3, [r7, #10] - 801c584: 429a cmp r2, r3 - 801c586: d221 bcs.n 801c5cc - * - * Did the user set TCP_WRITE_FLAG_MORE? - * - * Will the Nagle algorithm defer transmission of this segment? - */ - if ((apiflags & TCP_WRITE_FLAG_MORE) || - 801c588: f897 3024 ldrb.w r3, [r7, #36] ; 0x24 - 801c58c: f003 0302 and.w r3, r3, #2 - 801c590: 2b00 cmp r3, #0 - 801c592: d111 bne.n 801c5b8 - (!(pcb->flags & TF_NODELAY) && - 801c594: 6a3b ldr r3, [r7, #32] - 801c596: 8b5b ldrh r3, [r3, #26] - 801c598: f003 0340 and.w r3, r3, #64 ; 0x40 - if ((apiflags & TCP_WRITE_FLAG_MORE) || - 801c59c: 2b00 cmp r3, #0 - 801c59e: d115 bne.n 801c5cc - (!(pcb->flags & TF_NODELAY) && - 801c5a0: f897 3028 ldrb.w r3, [r7, #40] ; 0x28 - 801c5a4: 2b00 cmp r3, #0 - 801c5a6: d007 beq.n 801c5b8 - (!first_seg || - pcb->unsent != NULL || - 801c5a8: 6a3b ldr r3, [r7, #32] - 801c5aa: 6edb ldr r3, [r3, #108] ; 0x6c - (!first_seg || - 801c5ac: 2b00 cmp r3, #0 - 801c5ae: d103 bne.n 801c5b8 - pcb->unacked != NULL))) { - 801c5b0: 6a3b ldr r3, [r7, #32] - 801c5b2: 6f1b ldr r3, [r3, #112] ; 0x70 - pcb->unsent != NULL || - 801c5b4: 2b00 cmp r3, #0 - 801c5b6: d009 beq.n 801c5cc - alloc = LWIP_MIN(max_length, LWIP_MEM_ALIGN_SIZE(TCP_OVERSIZE_CALC_LENGTH(length))); - 801c5b8: 89bb ldrh r3, [r7, #12] - 801c5ba: f203 53b7 addw r3, r3, #1463 ; 0x5b7 - 801c5be: f023 0203 bic.w r2, r3, #3 - 801c5c2: 897b ldrh r3, [r7, #10] - 801c5c4: 4293 cmp r3, r2 - 801c5c6: bf28 it cs - 801c5c8: 4613 movcs r3, r2 - 801c5ca: 82fb strh r3, [r7, #22] - } - } -#endif /* LWIP_NETIF_TX_SINGLE_PBUF */ - p = pbuf_alloc(layer, alloc, PBUF_RAM); - 801c5cc: 8af9 ldrh r1, [r7, #22] - 801c5ce: 7bfb ldrb r3, [r7, #15] - 801c5d0: f44f 7220 mov.w r2, #640 ; 0x280 - 801c5d4: 4618 mov r0, r3 - 801c5d6: f7fa ffa7 bl 8017528 - 801c5da: 6138 str r0, [r7, #16] - if (p == NULL) { - 801c5dc: 693b ldr r3, [r7, #16] - 801c5de: 2b00 cmp r3, #0 - 801c5e0: d101 bne.n 801c5e6 - return NULL; - 801c5e2: 2300 movs r3, #0 - 801c5e4: e019 b.n 801c61a - } - LWIP_ASSERT("need unchained pbuf", p->next == NULL); - 801c5e6: 693b ldr r3, [r7, #16] - 801c5e8: 681b ldr r3, [r3, #0] - 801c5ea: 2b00 cmp r3, #0 - 801c5ec: d006 beq.n 801c5fc - 801c5ee: 4b0d ldr r3, [pc, #52] ; (801c624 ) - 801c5f0: f240 120b movw r2, #267 ; 0x10b - 801c5f4: 490f ldr r1, [pc, #60] ; (801c634 ) - 801c5f6: 480d ldr r0, [pc, #52] ; (801c62c ) - 801c5f8: f005 f9c6 bl 8021988 - *oversize = p->len - length; - 801c5fc: 693b ldr r3, [r7, #16] - 801c5fe: 895a ldrh r2, [r3, #10] - 801c600: 89bb ldrh r3, [r7, #12] - 801c602: 1ad3 subs r3, r2, r3 - 801c604: b29a uxth r2, r3 - 801c606: 687b ldr r3, [r7, #4] - 801c608: 801a strh r2, [r3, #0] - /* trim p->len to the currently used size */ - p->len = p->tot_len = length; - 801c60a: 693b ldr r3, [r7, #16] - 801c60c: 89ba ldrh r2, [r7, #12] - 801c60e: 811a strh r2, [r3, #8] - 801c610: 693b ldr r3, [r7, #16] - 801c612: 891a ldrh r2, [r3, #8] - 801c614: 693b ldr r3, [r7, #16] - 801c616: 815a strh r2, [r3, #10] - return p; - 801c618: 693b ldr r3, [r7, #16] -} - 801c61a: 4618 mov r0, r3 - 801c61c: 3718 adds r7, #24 - 801c61e: 46bd mov sp, r7 - 801c620: bd80 pop {r7, pc} - 801c622: bf00 nop - 801c624: 080257b8 .word 0x080257b8 - 801c628: 08025870 .word 0x08025870 - 801c62c: 0802580c .word 0x0802580c - 801c630: 08025894 .word 0x08025894 - 801c634: 080258b4 .word 0x080258b4 - -0801c638 : - * @param len length of data to send (checked agains snd_buf) - * @return ERR_OK if tcp_write is allowed to proceed, another err_t otherwise - */ -static err_t -tcp_write_checks(struct tcp_pcb *pcb, u16_t len) -{ - 801c638: b580 push {r7, lr} - 801c63a: b082 sub sp, #8 - 801c63c: af00 add r7, sp, #0 - 801c63e: 6078 str r0, [r7, #4] - 801c640: 460b mov r3, r1 - 801c642: 807b strh r3, [r7, #2] - LWIP_ASSERT("tcp_write_checks: invalid pcb", pcb != NULL); - 801c644: 687b ldr r3, [r7, #4] - 801c646: 2b00 cmp r3, #0 - 801c648: d106 bne.n 801c658 - 801c64a: 4b33 ldr r3, [pc, #204] ; (801c718 ) - 801c64c: f240 1233 movw r2, #307 ; 0x133 - 801c650: 4932 ldr r1, [pc, #200] ; (801c71c ) - 801c652: 4833 ldr r0, [pc, #204] ; (801c720 ) - 801c654: f005 f998 bl 8021988 - - /* connection is in invalid state for data transmission? */ - if ((pcb->state != ESTABLISHED) && - 801c658: 687b ldr r3, [r7, #4] - 801c65a: 7d1b ldrb r3, [r3, #20] - 801c65c: 2b04 cmp r3, #4 - 801c65e: d00e beq.n 801c67e - (pcb->state != CLOSE_WAIT) && - 801c660: 687b ldr r3, [r7, #4] - 801c662: 7d1b ldrb r3, [r3, #20] - if ((pcb->state != ESTABLISHED) && - 801c664: 2b07 cmp r3, #7 - 801c666: d00a beq.n 801c67e - (pcb->state != SYN_SENT) && - 801c668: 687b ldr r3, [r7, #4] - 801c66a: 7d1b ldrb r3, [r3, #20] - (pcb->state != CLOSE_WAIT) && - 801c66c: 2b02 cmp r3, #2 - 801c66e: d006 beq.n 801c67e - (pcb->state != SYN_RCVD)) { - 801c670: 687b ldr r3, [r7, #4] - 801c672: 7d1b ldrb r3, [r3, #20] - (pcb->state != SYN_SENT) && - 801c674: 2b03 cmp r3, #3 - 801c676: d002 beq.n 801c67e - LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_STATE | LWIP_DBG_LEVEL_SEVERE, ("tcp_write() called in invalid state\n")); - return ERR_CONN; - 801c678: f06f 030a mvn.w r3, #10 - 801c67c: e048 b.n 801c710 - } else if (len == 0) { - 801c67e: 887b ldrh r3, [r7, #2] - 801c680: 2b00 cmp r3, #0 - 801c682: d101 bne.n 801c688 - return ERR_OK; - 801c684: 2300 movs r3, #0 - 801c686: e043 b.n 801c710 - } - - /* fail on too much data */ - if (len > pcb->snd_buf) { - 801c688: 687b ldr r3, [r7, #4] - 801c68a: f8b3 3064 ldrh.w r3, [r3, #100] ; 0x64 - 801c68e: 887a ldrh r2, [r7, #2] - 801c690: 429a cmp r2, r3 - 801c692: d909 bls.n 801c6a8 - LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("tcp_write: too much data (len=%"U16_F" > snd_buf=%"TCPWNDSIZE_F")\n", - len, pcb->snd_buf)); - tcp_set_flags(pcb, TF_NAGLEMEMERR); - 801c694: 687b ldr r3, [r7, #4] - 801c696: 8b5b ldrh r3, [r3, #26] - 801c698: f043 0380 orr.w r3, r3, #128 ; 0x80 - 801c69c: b29a uxth r2, r3 - 801c69e: 687b ldr r3, [r7, #4] - 801c6a0: 835a strh r2, [r3, #26] - return ERR_MEM; - 801c6a2: f04f 33ff mov.w r3, #4294967295 - 801c6a6: e033 b.n 801c710 - LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_write: queuelen: %"TCPWNDSIZE_F"\n", (tcpwnd_size_t)pcb->snd_queuelen)); - - /* If total number of pbufs on the unsent/unacked queues exceeds the - * configured maximum, return an error */ - /* check for configured max queuelen and possible overflow */ - if (pcb->snd_queuelen >= LWIP_MIN(TCP_SND_QUEUELEN, (TCP_SNDQUEUELEN_OVERFLOW + 1))) { - 801c6a8: 687b ldr r3, [r7, #4] - 801c6aa: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 801c6ae: 2b0f cmp r3, #15 - 801c6b0: d909 bls.n 801c6c6 - LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("tcp_write: too long queue %"U16_F" (max %"U16_F")\n", - pcb->snd_queuelen, (u16_t)TCP_SND_QUEUELEN)); - TCP_STATS_INC(tcp.memerr); - tcp_set_flags(pcb, TF_NAGLEMEMERR); - 801c6b2: 687b ldr r3, [r7, #4] - 801c6b4: 8b5b ldrh r3, [r3, #26] - 801c6b6: f043 0380 orr.w r3, r3, #128 ; 0x80 - 801c6ba: b29a uxth r2, r3 - 801c6bc: 687b ldr r3, [r7, #4] - 801c6be: 835a strh r2, [r3, #26] - return ERR_MEM; - 801c6c0: f04f 33ff mov.w r3, #4294967295 - 801c6c4: e024 b.n 801c710 - } - if (pcb->snd_queuelen != 0) { - 801c6c6: 687b ldr r3, [r7, #4] - 801c6c8: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 801c6cc: 2b00 cmp r3, #0 - 801c6ce: d00f beq.n 801c6f0 - LWIP_ASSERT("tcp_write: pbufs on queue => at least one queue non-empty", - 801c6d0: 687b ldr r3, [r7, #4] - 801c6d2: 6f1b ldr r3, [r3, #112] ; 0x70 - 801c6d4: 2b00 cmp r3, #0 - 801c6d6: d11a bne.n 801c70e - 801c6d8: 687b ldr r3, [r7, #4] - 801c6da: 6edb ldr r3, [r3, #108] ; 0x6c - 801c6dc: 2b00 cmp r3, #0 - 801c6de: d116 bne.n 801c70e - 801c6e0: 4b0d ldr r3, [pc, #52] ; (801c718 ) - 801c6e2: f240 1255 movw r2, #341 ; 0x155 - 801c6e6: 490f ldr r1, [pc, #60] ; (801c724 ) - 801c6e8: 480d ldr r0, [pc, #52] ; (801c720 ) - 801c6ea: f005 f94d bl 8021988 - 801c6ee: e00e b.n 801c70e - pcb->unacked != NULL || pcb->unsent != NULL); - } else { - LWIP_ASSERT("tcp_write: no pbufs on queue => both queues empty", - 801c6f0: 687b ldr r3, [r7, #4] - 801c6f2: 6f1b ldr r3, [r3, #112] ; 0x70 - 801c6f4: 2b00 cmp r3, #0 - 801c6f6: d103 bne.n 801c700 - 801c6f8: 687b ldr r3, [r7, #4] - 801c6fa: 6edb ldr r3, [r3, #108] ; 0x6c - 801c6fc: 2b00 cmp r3, #0 - 801c6fe: d006 beq.n 801c70e - 801c700: 4b05 ldr r3, [pc, #20] ; (801c718 ) - 801c702: f44f 72ac mov.w r2, #344 ; 0x158 - 801c706: 4908 ldr r1, [pc, #32] ; (801c728 ) - 801c708: 4805 ldr r0, [pc, #20] ; (801c720 ) - 801c70a: f005 f93d bl 8021988 - pcb->unacked == NULL && pcb->unsent == NULL); - } - return ERR_OK; - 801c70e: 2300 movs r3, #0 -} - 801c710: 4618 mov r0, r3 - 801c712: 3708 adds r7, #8 - 801c714: 46bd mov sp, r7 - 801c716: bd80 pop {r7, pc} - 801c718: 080257b8 .word 0x080257b8 - 801c71c: 080258c8 .word 0x080258c8 - 801c720: 0802580c .word 0x0802580c - 801c724: 080258e8 .word 0x080258e8 - 801c728: 08025924 .word 0x08025924 - -0801c72c : - * - TCP_WRITE_FLAG_MORE (0x02) for TCP connection, PSH flag will not be set on last segment sent, - * @return ERR_OK if enqueued, another err_t on error - */ -err_t -tcp_write(struct tcp_pcb *pcb, const void *arg, u16_t len, u8_t apiflags) -{ - 801c72c: b590 push {r4, r7, lr} - 801c72e: b09d sub sp, #116 ; 0x74 - 801c730: af04 add r7, sp, #16 - 801c732: 60f8 str r0, [r7, #12] - 801c734: 60b9 str r1, [r7, #8] - 801c736: 4611 mov r1, r2 - 801c738: 461a mov r2, r3 - 801c73a: 460b mov r3, r1 - 801c73c: 80fb strh r3, [r7, #6] - 801c73e: 4613 mov r3, r2 - 801c740: 717b strb r3, [r7, #5] - struct pbuf *concat_p = NULL; - 801c742: 2300 movs r3, #0 - 801c744: 63fb str r3, [r7, #60] ; 0x3c - struct tcp_seg *last_unsent = NULL, *seg = NULL, *prev_seg = NULL, *queue = NULL; - 801c746: 2300 movs r3, #0 - 801c748: 643b str r3, [r7, #64] ; 0x40 - 801c74a: 2300 movs r3, #0 - 801c74c: 657b str r3, [r7, #84] ; 0x54 - 801c74e: 2300 movs r3, #0 - 801c750: 653b str r3, [r7, #80] ; 0x50 - 801c752: 2300 movs r3, #0 - 801c754: 64fb str r3, [r7, #76] ; 0x4c - u16_t pos = 0; /* position in 'arg' data */ - 801c756: 2300 movs r3, #0 - 801c758: f8a7 304a strh.w r3, [r7, #74] ; 0x4a - u16_t queuelen; - u8_t optlen; - u8_t optflags = 0; - 801c75c: 2300 movs r3, #0 - 801c75e: f887 302b strb.w r3, [r7, #43] ; 0x2b -#if TCP_OVERSIZE - u16_t oversize = 0; - 801c762: 2300 movs r3, #0 - 801c764: 82fb strh r3, [r7, #22] - u16_t oversize_used = 0; - 801c766: 2300 movs r3, #0 - 801c768: f8a7 3046 strh.w r3, [r7, #70] ; 0x46 -#if TCP_OVERSIZE_DBGCHECK - u16_t oversize_add = 0; - 801c76c: 2300 movs r3, #0 - 801c76e: f8a7 305a strh.w r3, [r7, #90] ; 0x5a -#endif /* TCP_OVERSIZE_DBGCHECK*/ -#endif /* TCP_OVERSIZE */ - u16_t extendlen = 0; - 801c772: 2300 movs r3, #0 - 801c774: f8a7 305e strh.w r3, [r7, #94] ; 0x5e - u16_t concat_chksummed = 0; -#endif /* TCP_CHECKSUM_ON_COPY */ - err_t err; - u16_t mss_local; - - LWIP_ERROR("tcp_write: invalid pcb", pcb != NULL, return ERR_ARG); - 801c778: 68fb ldr r3, [r7, #12] - 801c77a: 2b00 cmp r3, #0 - 801c77c: d109 bne.n 801c792 - 801c77e: 4b9c ldr r3, [pc, #624] ; (801c9f0 ) - 801c780: f44f 72cf mov.w r2, #414 ; 0x19e - 801c784: 499b ldr r1, [pc, #620] ; (801c9f4 ) - 801c786: 489c ldr r0, [pc, #624] ; (801c9f8 ) - 801c788: f005 f8fe bl 8021988 - 801c78c: f06f 030f mvn.w r3, #15 - 801c790: e379 b.n 801ce86 - - /* don't allocate segments bigger than half the maximum window we ever received */ - mss_local = LWIP_MIN(pcb->mss, TCPWND_MIN16(pcb->snd_wnd_max / 2)); - 801c792: 68fb ldr r3, [r7, #12] - 801c794: f8b3 3062 ldrh.w r3, [r3, #98] ; 0x62 - 801c798: 085b lsrs r3, r3, #1 - 801c79a: b29a uxth r2, r3 - 801c79c: 68fb ldr r3, [r7, #12] - 801c79e: 8e5b ldrh r3, [r3, #50] ; 0x32 - 801c7a0: 4293 cmp r3, r2 - 801c7a2: bf28 it cs - 801c7a4: 4613 movcs r3, r2 - 801c7a6: 853b strh r3, [r7, #40] ; 0x28 - mss_local = mss_local ? mss_local : pcb->mss; - 801c7a8: 8d3b ldrh r3, [r7, #40] ; 0x28 - 801c7aa: 2b00 cmp r3, #0 - 801c7ac: d102 bne.n 801c7b4 - 801c7ae: 68fb ldr r3, [r7, #12] - 801c7b0: 8e5b ldrh r3, [r3, #50] ; 0x32 - 801c7b2: e000 b.n 801c7b6 - 801c7b4: 8d3b ldrh r3, [r7, #40] ; 0x28 - 801c7b6: 853b strh r3, [r7, #40] ; 0x28 - apiflags |= TCP_WRITE_FLAG_COPY; -#endif /* LWIP_NETIF_TX_SINGLE_PBUF */ - - LWIP_DEBUGF(TCP_OUTPUT_DEBUG, ("tcp_write(pcb=%p, data=%p, len=%"U16_F", apiflags=%"U16_F")\n", - (void *)pcb, arg, len, (u16_t)apiflags)); - LWIP_ERROR("tcp_write: arg == NULL (programmer violates API)", - 801c7b8: 68bb ldr r3, [r7, #8] - 801c7ba: 2b00 cmp r3, #0 - 801c7bc: d109 bne.n 801c7d2 - 801c7be: 4b8c ldr r3, [pc, #560] ; (801c9f0 ) - 801c7c0: f240 12ad movw r2, #429 ; 0x1ad - 801c7c4: 498d ldr r1, [pc, #564] ; (801c9fc ) - 801c7c6: 488c ldr r0, [pc, #560] ; (801c9f8 ) - 801c7c8: f005 f8de bl 8021988 - 801c7cc: f06f 030f mvn.w r3, #15 - 801c7d0: e359 b.n 801ce86 - arg != NULL, return ERR_ARG;); - - err = tcp_write_checks(pcb, len); - 801c7d2: 88fb ldrh r3, [r7, #6] - 801c7d4: 4619 mov r1, r3 - 801c7d6: 68f8 ldr r0, [r7, #12] - 801c7d8: f7ff ff2e bl 801c638 - 801c7dc: 4603 mov r3, r0 - 801c7de: f887 3027 strb.w r3, [r7, #39] ; 0x27 - if (err != ERR_OK) { - 801c7e2: f997 3027 ldrsb.w r3, [r7, #39] ; 0x27 - 801c7e6: 2b00 cmp r3, #0 - 801c7e8: d002 beq.n 801c7f0 - return err; - 801c7ea: f997 3027 ldrsb.w r3, [r7, #39] ; 0x27 - 801c7ee: e34a b.n 801ce86 - } - queuelen = pcb->snd_queuelen; - 801c7f0: 68fb ldr r3, [r7, #12] - 801c7f2: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 801c7f6: f8a7 3048 strh.w r3, [r7, #72] ; 0x48 - /* ensure that segments can hold at least one data byte... */ - mss_local = LWIP_MAX(mss_local, LWIP_TCP_OPT_LEN_TS + 1); - } else -#endif /* LWIP_TCP_TIMESTAMPS */ - { - optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb); - 801c7fa: 2300 movs r3, #0 - 801c7fc: f887 3026 strb.w r3, [r7, #38] ; 0x26 - * - * pos records progress as data is segmented. - */ - - /* Find the tail of the unsent queue. */ - if (pcb->unsent != NULL) { - 801c800: 68fb ldr r3, [r7, #12] - 801c802: 6edb ldr r3, [r3, #108] ; 0x6c - 801c804: 2b00 cmp r3, #0 - 801c806: f000 8127 beq.w 801ca58 - u16_t space; - u16_t unsent_optlen; - - /* @todo: this could be sped up by keeping last_unsent in the pcb */ - for (last_unsent = pcb->unsent; last_unsent->next != NULL; - 801c80a: 68fb ldr r3, [r7, #12] - 801c80c: 6edb ldr r3, [r3, #108] ; 0x6c - 801c80e: 643b str r3, [r7, #64] ; 0x40 - 801c810: e002 b.n 801c818 - last_unsent = last_unsent->next); - 801c812: 6c3b ldr r3, [r7, #64] ; 0x40 - 801c814: 681b ldr r3, [r3, #0] - 801c816: 643b str r3, [r7, #64] ; 0x40 - for (last_unsent = pcb->unsent; last_unsent->next != NULL; - 801c818: 6c3b ldr r3, [r7, #64] ; 0x40 - 801c81a: 681b ldr r3, [r3, #0] - 801c81c: 2b00 cmp r3, #0 - 801c81e: d1f8 bne.n 801c812 - - /* Usable space at the end of the last unsent segment */ - unsent_optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(last_unsent->flags, pcb); - 801c820: 6c3b ldr r3, [r7, #64] ; 0x40 - 801c822: 7b1b ldrb r3, [r3, #12] - 801c824: 009b lsls r3, r3, #2 - 801c826: b29b uxth r3, r3 - 801c828: f003 0304 and.w r3, r3, #4 - 801c82c: 84bb strh r3, [r7, #36] ; 0x24 - LWIP_ASSERT("mss_local is too small", mss_local >= last_unsent->len + unsent_optlen); - 801c82e: 8d3a ldrh r2, [r7, #40] ; 0x28 - 801c830: 6c3b ldr r3, [r7, #64] ; 0x40 - 801c832: 891b ldrh r3, [r3, #8] - 801c834: 4619 mov r1, r3 - 801c836: 8cbb ldrh r3, [r7, #36] ; 0x24 - 801c838: 440b add r3, r1 - 801c83a: 429a cmp r2, r3 - 801c83c: da06 bge.n 801c84c - 801c83e: 4b6c ldr r3, [pc, #432] ; (801c9f0 ) - 801c840: f44f 72f3 mov.w r2, #486 ; 0x1e6 - 801c844: 496e ldr r1, [pc, #440] ; (801ca00 ) - 801c846: 486c ldr r0, [pc, #432] ; (801c9f8 ) - 801c848: f005 f89e bl 8021988 - space = mss_local - (last_unsent->len + unsent_optlen); - 801c84c: 6c3b ldr r3, [r7, #64] ; 0x40 - 801c84e: 891a ldrh r2, [r3, #8] - 801c850: 8cbb ldrh r3, [r7, #36] ; 0x24 - 801c852: 4413 add r3, r2 - 801c854: b29b uxth r3, r3 - 801c856: 8d3a ldrh r2, [r7, #40] ; 0x28 - 801c858: 1ad3 subs r3, r2, r3 - 801c85a: f8a7 305c strh.w r3, [r7, #92] ; 0x5c - * function. - */ -#if TCP_OVERSIZE -#if TCP_OVERSIZE_DBGCHECK - /* check that pcb->unsent_oversize matches last_unsent->oversize_left */ - LWIP_ASSERT("unsent_oversize mismatch (pcb vs. last_unsent)", - 801c85e: 68fb ldr r3, [r7, #12] - 801c860: f8b3 2068 ldrh.w r2, [r3, #104] ; 0x68 - 801c864: 6c3b ldr r3, [r7, #64] ; 0x40 - 801c866: 895b ldrh r3, [r3, #10] - 801c868: 429a cmp r2, r3 - 801c86a: d006 beq.n 801c87a - 801c86c: 4b60 ldr r3, [pc, #384] ; (801c9f0 ) - 801c86e: f240 12f3 movw r2, #499 ; 0x1f3 - 801c872: 4964 ldr r1, [pc, #400] ; (801ca04 ) - 801c874: 4860 ldr r0, [pc, #384] ; (801c9f8 ) - 801c876: f005 f887 bl 8021988 - pcb->unsent_oversize == last_unsent->oversize_left); -#endif /* TCP_OVERSIZE_DBGCHECK */ - oversize = pcb->unsent_oversize; - 801c87a: 68fb ldr r3, [r7, #12] - 801c87c: f8b3 3068 ldrh.w r3, [r3, #104] ; 0x68 - 801c880: 82fb strh r3, [r7, #22] - if (oversize > 0) { - 801c882: 8afb ldrh r3, [r7, #22] - 801c884: 2b00 cmp r3, #0 - 801c886: d02e beq.n 801c8e6 - LWIP_ASSERT("inconsistent oversize vs. space", oversize <= space); - 801c888: 8afb ldrh r3, [r7, #22] - 801c88a: f8b7 205c ldrh.w r2, [r7, #92] ; 0x5c - 801c88e: 429a cmp r2, r3 - 801c890: d206 bcs.n 801c8a0 - 801c892: 4b57 ldr r3, [pc, #348] ; (801c9f0 ) - 801c894: f44f 72fc mov.w r2, #504 ; 0x1f8 - 801c898: 495b ldr r1, [pc, #364] ; (801ca08 ) - 801c89a: 4857 ldr r0, [pc, #348] ; (801c9f8 ) - 801c89c: f005 f874 bl 8021988 - seg = last_unsent; - 801c8a0: 6c3b ldr r3, [r7, #64] ; 0x40 - 801c8a2: 657b str r3, [r7, #84] ; 0x54 - oversize_used = LWIP_MIN(space, LWIP_MIN(oversize, len)); - 801c8a4: 8afb ldrh r3, [r7, #22] - 801c8a6: 88fa ldrh r2, [r7, #6] - 801c8a8: 4293 cmp r3, r2 - 801c8aa: bf28 it cs - 801c8ac: 4613 movcs r3, r2 - 801c8ae: b29b uxth r3, r3 - 801c8b0: f8b7 205c ldrh.w r2, [r7, #92] ; 0x5c - 801c8b4: 4293 cmp r3, r2 - 801c8b6: bf28 it cs - 801c8b8: 4613 movcs r3, r2 - 801c8ba: f8a7 3046 strh.w r3, [r7, #70] ; 0x46 - pos += oversize_used; - 801c8be: f8b7 204a ldrh.w r2, [r7, #74] ; 0x4a - 801c8c2: f8b7 3046 ldrh.w r3, [r7, #70] ; 0x46 - 801c8c6: 4413 add r3, r2 - 801c8c8: f8a7 304a strh.w r3, [r7, #74] ; 0x4a - oversize -= oversize_used; - 801c8cc: 8afa ldrh r2, [r7, #22] - 801c8ce: f8b7 3046 ldrh.w r3, [r7, #70] ; 0x46 - 801c8d2: 1ad3 subs r3, r2, r3 - 801c8d4: b29b uxth r3, r3 - 801c8d6: 82fb strh r3, [r7, #22] - space -= oversize_used; - 801c8d8: f8b7 205c ldrh.w r2, [r7, #92] ; 0x5c - 801c8dc: f8b7 3046 ldrh.w r3, [r7, #70] ; 0x46 - 801c8e0: 1ad3 subs r3, r2, r3 - 801c8e2: f8a7 305c strh.w r3, [r7, #92] ; 0x5c - } - /* now we are either finished or oversize is zero */ - LWIP_ASSERT("inconsistent oversize vs. len", (oversize == 0) || (pos == len)); - 801c8e6: 8afb ldrh r3, [r7, #22] - 801c8e8: 2b00 cmp r3, #0 - 801c8ea: d00b beq.n 801c904 - 801c8ec: f8b7 204a ldrh.w r2, [r7, #74] ; 0x4a - 801c8f0: 88fb ldrh r3, [r7, #6] - 801c8f2: 429a cmp r2, r3 - 801c8f4: d006 beq.n 801c904 - 801c8f6: 4b3e ldr r3, [pc, #248] ; (801c9f0 ) - 801c8f8: f44f 7200 mov.w r2, #512 ; 0x200 - 801c8fc: 4943 ldr r1, [pc, #268] ; (801ca0c ) - 801c8fe: 483e ldr r0, [pc, #248] ; (801c9f8 ) - 801c900: f005 f842 bl 8021988 - * - * This phase is skipped for LWIP_NETIF_TX_SINGLE_PBUF as we could only execute - * it after rexmit puts a segment from unacked to unsent and at this point, - * oversize info is lost. - */ - if ((pos < len) && (space > 0) && (last_unsent->len > 0)) { - 801c904: f8b7 204a ldrh.w r2, [r7, #74] ; 0x4a - 801c908: 88fb ldrh r3, [r7, #6] - 801c90a: 429a cmp r2, r3 - 801c90c: f080 8172 bcs.w 801cbf4 - 801c910: f8b7 305c ldrh.w r3, [r7, #92] ; 0x5c - 801c914: 2b00 cmp r3, #0 - 801c916: f000 816d beq.w 801cbf4 - 801c91a: 6c3b ldr r3, [r7, #64] ; 0x40 - 801c91c: 891b ldrh r3, [r3, #8] - 801c91e: 2b00 cmp r3, #0 - 801c920: f000 8168 beq.w 801cbf4 - u16_t seglen = LWIP_MIN(space, len - pos); - 801c924: 88fa ldrh r2, [r7, #6] - 801c926: f8b7 304a ldrh.w r3, [r7, #74] ; 0x4a - 801c92a: 1ad2 subs r2, r2, r3 - 801c92c: f8b7 305c ldrh.w r3, [r7, #92] ; 0x5c - 801c930: 4293 cmp r3, r2 - 801c932: bfa8 it ge - 801c934: 4613 movge r3, r2 - 801c936: 847b strh r3, [r7, #34] ; 0x22 - seg = last_unsent; - 801c938: 6c3b ldr r3, [r7, #64] ; 0x40 - 801c93a: 657b str r3, [r7, #84] ; 0x54 - - /* Create a pbuf with a copy or reference to seglen bytes. We - * can use PBUF_RAW here since the data appears in the middle of - * a segment. A header will never be prepended. */ - if (apiflags & TCP_WRITE_FLAG_COPY) { - 801c93c: 797b ldrb r3, [r7, #5] - 801c93e: f003 0301 and.w r3, r3, #1 - 801c942: 2b00 cmp r3, #0 - 801c944: d02b beq.n 801c99e - /* Data is copied */ - if ((concat_p = tcp_pbuf_prealloc(PBUF_RAW, seglen, space, &oversize, pcb, apiflags, 1)) == NULL) { - 801c946: f107 0016 add.w r0, r7, #22 - 801c94a: f8b7 205c ldrh.w r2, [r7, #92] ; 0x5c - 801c94e: 8c79 ldrh r1, [r7, #34] ; 0x22 - 801c950: 2301 movs r3, #1 - 801c952: 9302 str r3, [sp, #8] - 801c954: 797b ldrb r3, [r7, #5] - 801c956: 9301 str r3, [sp, #4] - 801c958: 68fb ldr r3, [r7, #12] - 801c95a: 9300 str r3, [sp, #0] - 801c95c: 4603 mov r3, r0 - 801c95e: 2000 movs r0, #0 - 801c960: f7ff fdf0 bl 801c544 - 801c964: 63f8 str r0, [r7, #60] ; 0x3c - 801c966: 6bfb ldr r3, [r7, #60] ; 0x3c - 801c968: 2b00 cmp r3, #0 - 801c96a: f000 825a beq.w 801ce22 - ("tcp_write : could not allocate memory for pbuf copy size %"U16_F"\n", - seglen)); - goto memerr; - } -#if TCP_OVERSIZE_DBGCHECK - oversize_add = oversize; - 801c96e: 8afb ldrh r3, [r7, #22] - 801c970: f8a7 305a strh.w r3, [r7, #90] ; 0x5a -#endif /* TCP_OVERSIZE_DBGCHECK */ - TCP_DATA_COPY2(concat_p->payload, (const u8_t *)arg + pos, seglen, &concat_chksum, &concat_chksum_swapped); - 801c974: 6bfb ldr r3, [r7, #60] ; 0x3c - 801c976: 6858 ldr r0, [r3, #4] - 801c978: f8b7 304a ldrh.w r3, [r7, #74] ; 0x4a - 801c97c: 68ba ldr r2, [r7, #8] - 801c97e: 4413 add r3, r2 - 801c980: 8c7a ldrh r2, [r7, #34] ; 0x22 - 801c982: 4619 mov r1, r3 - 801c984: f005 fa2f bl 8021de6 -#if TCP_CHECKSUM_ON_COPY - concat_chksummed += seglen; -#endif /* TCP_CHECKSUM_ON_COPY */ - queuelen += pbuf_clen(concat_p); - 801c988: 6bf8 ldr r0, [r7, #60] ; 0x3c - 801c98a: f7fb f943 bl 8017c14 - 801c98e: 4603 mov r3, r0 - 801c990: 461a mov r2, r3 - 801c992: f8b7 3048 ldrh.w r3, [r7, #72] ; 0x48 - 801c996: 4413 add r3, r2 - 801c998: f8a7 3048 strh.w r3, [r7, #72] ; 0x48 - 801c99c: e055 b.n 801ca4a - } else { - /* Data is not copied */ - /* If the last unsent pbuf is of type PBUF_ROM, try to extend it. */ - struct pbuf *p; - for (p = last_unsent->p; p->next != NULL; p = p->next); - 801c99e: 6c3b ldr r3, [r7, #64] ; 0x40 - 801c9a0: 685b ldr r3, [r3, #4] - 801c9a2: 63bb str r3, [r7, #56] ; 0x38 - 801c9a4: e002 b.n 801c9ac - 801c9a6: 6bbb ldr r3, [r7, #56] ; 0x38 - 801c9a8: 681b ldr r3, [r3, #0] - 801c9aa: 63bb str r3, [r7, #56] ; 0x38 - 801c9ac: 6bbb ldr r3, [r7, #56] ; 0x38 - 801c9ae: 681b ldr r3, [r3, #0] - 801c9b0: 2b00 cmp r3, #0 - 801c9b2: d1f8 bne.n 801c9a6 - if (((p->type_internal & (PBUF_TYPE_FLAG_STRUCT_DATA_CONTIGUOUS | PBUF_TYPE_FLAG_DATA_VOLATILE)) == 0) && - 801c9b4: 6bbb ldr r3, [r7, #56] ; 0x38 - 801c9b6: 7b1b ldrb r3, [r3, #12] - 801c9b8: f003 03c0 and.w r3, r3, #192 ; 0xc0 - 801c9bc: 2b00 cmp r3, #0 - 801c9be: d129 bne.n 801ca14 - (const u8_t *)p->payload + p->len == (const u8_t *)arg) { - 801c9c0: 6bbb ldr r3, [r7, #56] ; 0x38 - 801c9c2: 685b ldr r3, [r3, #4] - 801c9c4: 6bba ldr r2, [r7, #56] ; 0x38 - 801c9c6: 8952 ldrh r2, [r2, #10] - 801c9c8: 4413 add r3, r2 - if (((p->type_internal & (PBUF_TYPE_FLAG_STRUCT_DATA_CONTIGUOUS | PBUF_TYPE_FLAG_DATA_VOLATILE)) == 0) && - 801c9ca: 68ba ldr r2, [r7, #8] - 801c9cc: 429a cmp r2, r3 - 801c9ce: d121 bne.n 801ca14 - LWIP_ASSERT("tcp_write: ROM pbufs cannot be oversized", pos == 0); - 801c9d0: f8b7 304a ldrh.w r3, [r7, #74] ; 0x4a - 801c9d4: 2b00 cmp r3, #0 - 801c9d6: d006 beq.n 801c9e6 - 801c9d8: 4b05 ldr r3, [pc, #20] ; (801c9f0 ) - 801c9da: f240 2231 movw r2, #561 ; 0x231 - 801c9de: 490c ldr r1, [pc, #48] ; (801ca10 ) - 801c9e0: 4805 ldr r0, [pc, #20] ; (801c9f8 ) - 801c9e2: f004 ffd1 bl 8021988 - extendlen = seglen; - 801c9e6: 8c7b ldrh r3, [r7, #34] ; 0x22 - 801c9e8: f8a7 305e strh.w r3, [r7, #94] ; 0x5e - 801c9ec: e02d b.n 801ca4a - 801c9ee: bf00 nop - 801c9f0: 080257b8 .word 0x080257b8 - 801c9f4: 08025958 .word 0x08025958 - 801c9f8: 0802580c .word 0x0802580c - 801c9fc: 08025970 .word 0x08025970 - 801ca00: 080259a4 .word 0x080259a4 - 801ca04: 080259bc .word 0x080259bc - 801ca08: 080259ec .word 0x080259ec - 801ca0c: 08025a0c .word 0x08025a0c - 801ca10: 08025a2c .word 0x08025a2c - } else { - if ((concat_p = pbuf_alloc(PBUF_RAW, seglen, PBUF_ROM)) == NULL) { - 801ca14: 8c7b ldrh r3, [r7, #34] ; 0x22 - 801ca16: 2201 movs r2, #1 - 801ca18: 4619 mov r1, r3 - 801ca1a: 2000 movs r0, #0 - 801ca1c: f7fa fd84 bl 8017528 - 801ca20: 63f8 str r0, [r7, #60] ; 0x3c - 801ca22: 6bfb ldr r3, [r7, #60] ; 0x3c - 801ca24: 2b00 cmp r3, #0 - 801ca26: f000 81fe beq.w 801ce26 - LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, - ("tcp_write: could not allocate memory for zero-copy pbuf\n")); - goto memerr; - } - /* reference the non-volatile payload data */ - ((struct pbuf_rom *)concat_p)->payload = (const u8_t *)arg + pos; - 801ca2a: f8b7 304a ldrh.w r3, [r7, #74] ; 0x4a - 801ca2e: 68ba ldr r2, [r7, #8] - 801ca30: 441a add r2, r3 - 801ca32: 6bfb ldr r3, [r7, #60] ; 0x3c - 801ca34: 605a str r2, [r3, #4] - queuelen += pbuf_clen(concat_p); - 801ca36: 6bf8 ldr r0, [r7, #60] ; 0x3c - 801ca38: f7fb f8ec bl 8017c14 - 801ca3c: 4603 mov r3, r0 - 801ca3e: 461a mov r2, r3 - 801ca40: f8b7 3048 ldrh.w r3, [r7, #72] ; 0x48 - 801ca44: 4413 add r3, r2 - 801ca46: f8a7 3048 strh.w r3, [r7, #72] ; 0x48 - &concat_chksum, &concat_chksum_swapped); - concat_chksummed += seglen; -#endif /* TCP_CHECKSUM_ON_COPY */ - } - - pos += seglen; - 801ca4a: f8b7 204a ldrh.w r2, [r7, #74] ; 0x4a - 801ca4e: 8c7b ldrh r3, [r7, #34] ; 0x22 - 801ca50: 4413 add r3, r2 - 801ca52: f8a7 304a strh.w r3, [r7, #74] ; 0x4a - 801ca56: e0cd b.n 801cbf4 - } -#endif /* !LWIP_NETIF_TX_SINGLE_PBUF */ - } else { -#if TCP_OVERSIZE - LWIP_ASSERT("unsent_oversize mismatch (pcb->unsent is NULL)", - 801ca58: 68fb ldr r3, [r7, #12] - 801ca5a: f8b3 3068 ldrh.w r3, [r3, #104] ; 0x68 - 801ca5e: 2b00 cmp r3, #0 - 801ca60: f000 80c8 beq.w 801cbf4 - 801ca64: 4b72 ldr r3, [pc, #456] ; (801cc30 ) - 801ca66: f240 224a movw r2, #586 ; 0x24a - 801ca6a: 4972 ldr r1, [pc, #456] ; (801cc34 ) - 801ca6c: 4872 ldr r0, [pc, #456] ; (801cc38 ) - 801ca6e: f004 ff8b bl 8021988 - * Phase 3: Create new segments. - * - * The new segments are chained together in the local 'queue' - * variable, ready to be appended to pcb->unsent. - */ - while (pos < len) { - 801ca72: e0bf b.n 801cbf4 - struct pbuf *p; - u16_t left = len - pos; - 801ca74: 88fa ldrh r2, [r7, #6] - 801ca76: f8b7 304a ldrh.w r3, [r7, #74] ; 0x4a - 801ca7a: 1ad3 subs r3, r2, r3 - 801ca7c: 843b strh r3, [r7, #32] - u16_t max_len = mss_local - optlen; - 801ca7e: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 801ca82: b29b uxth r3, r3 - 801ca84: 8d3a ldrh r2, [r7, #40] ; 0x28 - 801ca86: 1ad3 subs r3, r2, r3 - 801ca88: 83fb strh r3, [r7, #30] - u16_t seglen = LWIP_MIN(left, max_len); - 801ca8a: 8bfa ldrh r2, [r7, #30] - 801ca8c: 8c3b ldrh r3, [r7, #32] - 801ca8e: 4293 cmp r3, r2 - 801ca90: bf28 it cs - 801ca92: 4613 movcs r3, r2 - 801ca94: 83bb strh r3, [r7, #28] -#if TCP_CHECKSUM_ON_COPY - u16_t chksum = 0; - u8_t chksum_swapped = 0; -#endif /* TCP_CHECKSUM_ON_COPY */ - - if (apiflags & TCP_WRITE_FLAG_COPY) { - 801ca96: 797b ldrb r3, [r7, #5] - 801ca98: f003 0301 and.w r3, r3, #1 - 801ca9c: 2b00 cmp r3, #0 - 801ca9e: d036 beq.n 801cb0e - /* If copy is set, memory should be allocated and data copied - * into pbuf */ - if ((p = tcp_pbuf_prealloc(PBUF_TRANSPORT, seglen + optlen, mss_local, &oversize, pcb, apiflags, queue == NULL)) == NULL) { - 801caa0: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 801caa4: b29a uxth r2, r3 - 801caa6: 8bbb ldrh r3, [r7, #28] - 801caa8: 4413 add r3, r2 - 801caaa: b299 uxth r1, r3 - 801caac: 6cfb ldr r3, [r7, #76] ; 0x4c - 801caae: 2b00 cmp r3, #0 - 801cab0: bf0c ite eq - 801cab2: 2301 moveq r3, #1 - 801cab4: 2300 movne r3, #0 - 801cab6: b2db uxtb r3, r3 - 801cab8: f107 0016 add.w r0, r7, #22 - 801cabc: 8d3a ldrh r2, [r7, #40] ; 0x28 - 801cabe: 9302 str r3, [sp, #8] - 801cac0: 797b ldrb r3, [r7, #5] - 801cac2: 9301 str r3, [sp, #4] - 801cac4: 68fb ldr r3, [r7, #12] - 801cac6: 9300 str r3, [sp, #0] - 801cac8: 4603 mov r3, r0 - 801caca: 2036 movs r0, #54 ; 0x36 - 801cacc: f7ff fd3a bl 801c544 - 801cad0: 6378 str r0, [r7, #52] ; 0x34 - 801cad2: 6b7b ldr r3, [r7, #52] ; 0x34 - 801cad4: 2b00 cmp r3, #0 - 801cad6: f000 81a8 beq.w 801ce2a - LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_write : could not allocate memory for pbuf copy size %"U16_F"\n", seglen)); - goto memerr; - } - LWIP_ASSERT("tcp_write: check that first pbuf can hold the complete seglen", - 801cada: 6b7b ldr r3, [r7, #52] ; 0x34 - 801cadc: 895b ldrh r3, [r3, #10] - 801cade: 8bba ldrh r2, [r7, #28] - 801cae0: 429a cmp r2, r3 - 801cae2: d906 bls.n 801caf2 - 801cae4: 4b52 ldr r3, [pc, #328] ; (801cc30 ) - 801cae6: f240 2266 movw r2, #614 ; 0x266 - 801caea: 4954 ldr r1, [pc, #336] ; (801cc3c ) - 801caec: 4852 ldr r0, [pc, #328] ; (801cc38 ) - 801caee: f004 ff4b bl 8021988 - (p->len >= seglen)); - TCP_DATA_COPY2((char *)p->payload + optlen, (const u8_t *)arg + pos, seglen, &chksum, &chksum_swapped); - 801caf2: 6b7b ldr r3, [r7, #52] ; 0x34 - 801caf4: 685a ldr r2, [r3, #4] - 801caf6: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 801cafa: 18d0 adds r0, r2, r3 - 801cafc: f8b7 304a ldrh.w r3, [r7, #74] ; 0x4a - 801cb00: 68ba ldr r2, [r7, #8] - 801cb02: 4413 add r3, r2 - 801cb04: 8bba ldrh r2, [r7, #28] - 801cb06: 4619 mov r1, r3 - 801cb08: f005 f96d bl 8021de6 - 801cb0c: e02f b.n 801cb6e - * sent out on the link (as it has to be ACKed by the remote - * party) we can safely use PBUF_ROM instead of PBUF_REF here. - */ - struct pbuf *p2; -#if TCP_OVERSIZE - LWIP_ASSERT("oversize == 0", oversize == 0); - 801cb0e: 8afb ldrh r3, [r7, #22] - 801cb10: 2b00 cmp r3, #0 - 801cb12: d006 beq.n 801cb22 - 801cb14: 4b46 ldr r3, [pc, #280] ; (801cc30 ) - 801cb16: f240 2271 movw r2, #625 ; 0x271 - 801cb1a: 4949 ldr r1, [pc, #292] ; (801cc40 ) - 801cb1c: 4846 ldr r0, [pc, #280] ; (801cc38 ) - 801cb1e: f004 ff33 bl 8021988 -#endif /* TCP_OVERSIZE */ - if ((p2 = pbuf_alloc(PBUF_TRANSPORT, seglen, PBUF_ROM)) == NULL) { - 801cb22: 8bbb ldrh r3, [r7, #28] - 801cb24: 2201 movs r2, #1 - 801cb26: 4619 mov r1, r3 - 801cb28: 2036 movs r0, #54 ; 0x36 - 801cb2a: f7fa fcfd bl 8017528 - 801cb2e: 61b8 str r0, [r7, #24] - 801cb30: 69bb ldr r3, [r7, #24] - 801cb32: 2b00 cmp r3, #0 - 801cb34: f000 817b beq.w 801ce2e - chksum_swapped = 1; - chksum = SWAP_BYTES_IN_WORD(chksum); - } -#endif /* TCP_CHECKSUM_ON_COPY */ - /* reference the non-volatile payload data */ - ((struct pbuf_rom *)p2)->payload = (const u8_t *)arg + pos; - 801cb38: f8b7 304a ldrh.w r3, [r7, #74] ; 0x4a - 801cb3c: 68ba ldr r2, [r7, #8] - 801cb3e: 441a add r2, r3 - 801cb40: 69bb ldr r3, [r7, #24] - 801cb42: 605a str r2, [r3, #4] - - /* Second, allocate a pbuf for the headers. */ - if ((p = pbuf_alloc(PBUF_TRANSPORT, optlen, PBUF_RAM)) == NULL) { - 801cb44: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 801cb48: b29b uxth r3, r3 - 801cb4a: f44f 7220 mov.w r2, #640 ; 0x280 - 801cb4e: 4619 mov r1, r3 - 801cb50: 2036 movs r0, #54 ; 0x36 - 801cb52: f7fa fce9 bl 8017528 - 801cb56: 6378 str r0, [r7, #52] ; 0x34 - 801cb58: 6b7b ldr r3, [r7, #52] ; 0x34 - 801cb5a: 2b00 cmp r3, #0 - 801cb5c: d103 bne.n 801cb66 - /* If allocation fails, we have to deallocate the data pbuf as - * well. */ - pbuf_free(p2); - 801cb5e: 69b8 ldr r0, [r7, #24] - 801cb60: f7fa ffca bl 8017af8 - LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_write: could not allocate memory for header pbuf\n")); - goto memerr; - 801cb64: e166 b.n 801ce34 - } - /* Concatenate the headers and data pbufs together. */ - pbuf_cat(p/*header*/, p2/*data*/); - 801cb66: 69b9 ldr r1, [r7, #24] - 801cb68: 6b78 ldr r0, [r7, #52] ; 0x34 - 801cb6a: f7fb f893 bl 8017c94 - } - - queuelen += pbuf_clen(p); - 801cb6e: 6b78 ldr r0, [r7, #52] ; 0x34 - 801cb70: f7fb f850 bl 8017c14 - 801cb74: 4603 mov r3, r0 - 801cb76: 461a mov r2, r3 - 801cb78: f8b7 3048 ldrh.w r3, [r7, #72] ; 0x48 - 801cb7c: 4413 add r3, r2 - 801cb7e: f8a7 3048 strh.w r3, [r7, #72] ; 0x48 - - /* Now that there are more segments queued, we check again if the - * length of the queue exceeds the configured maximum or - * overflows. */ - if (queuelen > LWIP_MIN(TCP_SND_QUEUELEN, TCP_SNDQUEUELEN_OVERFLOW)) { - 801cb82: f8b7 3048 ldrh.w r3, [r7, #72] ; 0x48 - 801cb86: 2b10 cmp r3, #16 - 801cb88: d903 bls.n 801cb92 - LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_write: queue too long %"U16_F" (%d)\n", - queuelen, (int)TCP_SND_QUEUELEN)); - pbuf_free(p); - 801cb8a: 6b78 ldr r0, [r7, #52] ; 0x34 - 801cb8c: f7fa ffb4 bl 8017af8 - goto memerr; - 801cb90: e150 b.n 801ce34 - } - - if ((seg = tcp_create_segment(pcb, p, 0, pcb->snd_lbb + pos, optflags)) == NULL) { - 801cb92: 68fb ldr r3, [r7, #12] - 801cb94: 6dda ldr r2, [r3, #92] ; 0x5c - 801cb96: f8b7 304a ldrh.w r3, [r7, #74] ; 0x4a - 801cb9a: 441a add r2, r3 - 801cb9c: f897 302b ldrb.w r3, [r7, #43] ; 0x2b - 801cba0: 9300 str r3, [sp, #0] - 801cba2: 4613 mov r3, r2 - 801cba4: 2200 movs r2, #0 - 801cba6: 6b79 ldr r1, [r7, #52] ; 0x34 - 801cba8: 68f8 ldr r0, [r7, #12] - 801cbaa: f7ff fc2b bl 801c404 - 801cbae: 6578 str r0, [r7, #84] ; 0x54 - 801cbb0: 6d7b ldr r3, [r7, #84] ; 0x54 - 801cbb2: 2b00 cmp r3, #0 - 801cbb4: f000 813d beq.w 801ce32 - goto memerr; - } -#if TCP_OVERSIZE_DBGCHECK - seg->oversize_left = oversize; - 801cbb8: 8afa ldrh r2, [r7, #22] - 801cbba: 6d7b ldr r3, [r7, #84] ; 0x54 - 801cbbc: 815a strh r2, [r3, #10] - seg->chksum_swapped = chksum_swapped; - seg->flags |= TF_SEG_DATA_CHECKSUMMED; -#endif /* TCP_CHECKSUM_ON_COPY */ - - /* first segment of to-be-queued data? */ - if (queue == NULL) { - 801cbbe: 6cfb ldr r3, [r7, #76] ; 0x4c - 801cbc0: 2b00 cmp r3, #0 - 801cbc2: d102 bne.n 801cbca - queue = seg; - 801cbc4: 6d7b ldr r3, [r7, #84] ; 0x54 - 801cbc6: 64fb str r3, [r7, #76] ; 0x4c - 801cbc8: e00c b.n 801cbe4 - } else { - /* Attach the segment to the end of the queued segments */ - LWIP_ASSERT("prev_seg != NULL", prev_seg != NULL); - 801cbca: 6d3b ldr r3, [r7, #80] ; 0x50 - 801cbcc: 2b00 cmp r3, #0 - 801cbce: d106 bne.n 801cbde - 801cbd0: 4b17 ldr r3, [pc, #92] ; (801cc30 ) - 801cbd2: f240 22ab movw r2, #683 ; 0x2ab - 801cbd6: 491b ldr r1, [pc, #108] ; (801cc44 ) - 801cbd8: 4817 ldr r0, [pc, #92] ; (801cc38 ) - 801cbda: f004 fed5 bl 8021988 - prev_seg->next = seg; - 801cbde: 6d3b ldr r3, [r7, #80] ; 0x50 - 801cbe0: 6d7a ldr r2, [r7, #84] ; 0x54 - 801cbe2: 601a str r2, [r3, #0] - } - /* remember last segment of to-be-queued data for next iteration */ - prev_seg = seg; - 801cbe4: 6d7b ldr r3, [r7, #84] ; 0x54 - 801cbe6: 653b str r3, [r7, #80] ; 0x50 - - LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_TRACE, ("tcp_write: queueing %"U32_F":%"U32_F"\n", - lwip_ntohl(seg->tcphdr->seqno), - lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg))); - - pos += seglen; - 801cbe8: f8b7 204a ldrh.w r2, [r7, #74] ; 0x4a - 801cbec: 8bbb ldrh r3, [r7, #28] - 801cbee: 4413 add r3, r2 - 801cbf0: f8a7 304a strh.w r3, [r7, #74] ; 0x4a - while (pos < len) { - 801cbf4: f8b7 204a ldrh.w r2, [r7, #74] ; 0x4a - 801cbf8: 88fb ldrh r3, [r7, #6] - 801cbfa: 429a cmp r2, r3 - 801cbfc: f4ff af3a bcc.w 801ca74 - /* - * All three segmentation phases were successful. We can commit the - * transaction. - */ -#if TCP_OVERSIZE_DBGCHECK - if ((last_unsent != NULL) && (oversize_add != 0)) { - 801cc00: 6c3b ldr r3, [r7, #64] ; 0x40 - 801cc02: 2b00 cmp r3, #0 - 801cc04: d00b beq.n 801cc1e - 801cc06: f8b7 305a ldrh.w r3, [r7, #90] ; 0x5a - 801cc0a: 2b00 cmp r3, #0 - 801cc0c: d007 beq.n 801cc1e - last_unsent->oversize_left += oversize_add; - 801cc0e: 6c3b ldr r3, [r7, #64] ; 0x40 - 801cc10: 895a ldrh r2, [r3, #10] - 801cc12: f8b7 305a ldrh.w r3, [r7, #90] ; 0x5a - 801cc16: 4413 add r3, r2 - 801cc18: b29a uxth r2, r3 - 801cc1a: 6c3b ldr r3, [r7, #64] ; 0x40 - 801cc1c: 815a strh r2, [r3, #10] - /* - * Phase 1: If data has been added to the preallocated tail of - * last_unsent, we update the length fields of the pbuf chain. - */ -#if TCP_OVERSIZE - if (oversize_used > 0) { - 801cc1e: f8b7 3046 ldrh.w r3, [r7, #70] ; 0x46 - 801cc22: 2b00 cmp r3, #0 - 801cc24: d052 beq.n 801cccc - struct pbuf *p; - /* Bump tot_len of whole chain, len of tail */ - for (p = last_unsent->p; p; p = p->next) { - 801cc26: 6c3b ldr r3, [r7, #64] ; 0x40 - 801cc28: 685b ldr r3, [r3, #4] - 801cc2a: 633b str r3, [r7, #48] ; 0x30 - 801cc2c: e02e b.n 801cc8c - 801cc2e: bf00 nop - 801cc30: 080257b8 .word 0x080257b8 - 801cc34: 08025a58 .word 0x08025a58 - 801cc38: 0802580c .word 0x0802580c - 801cc3c: 08025a88 .word 0x08025a88 - 801cc40: 08025ac8 .word 0x08025ac8 - 801cc44: 08025ad8 .word 0x08025ad8 - p->tot_len += oversize_used; - 801cc48: 6b3b ldr r3, [r7, #48] ; 0x30 - 801cc4a: 891a ldrh r2, [r3, #8] - 801cc4c: f8b7 3046 ldrh.w r3, [r7, #70] ; 0x46 - 801cc50: 4413 add r3, r2 - 801cc52: b29a uxth r2, r3 - 801cc54: 6b3b ldr r3, [r7, #48] ; 0x30 - 801cc56: 811a strh r2, [r3, #8] - if (p->next == NULL) { - 801cc58: 6b3b ldr r3, [r7, #48] ; 0x30 - 801cc5a: 681b ldr r3, [r3, #0] - 801cc5c: 2b00 cmp r3, #0 - 801cc5e: d112 bne.n 801cc86 - TCP_DATA_COPY((char *)p->payload + p->len, arg, oversize_used, last_unsent); - 801cc60: 6b3b ldr r3, [r7, #48] ; 0x30 - 801cc62: 685b ldr r3, [r3, #4] - 801cc64: 6b3a ldr r2, [r7, #48] ; 0x30 - 801cc66: 8952 ldrh r2, [r2, #10] - 801cc68: 4413 add r3, r2 - 801cc6a: f8b7 2046 ldrh.w r2, [r7, #70] ; 0x46 - 801cc6e: 68b9 ldr r1, [r7, #8] - 801cc70: 4618 mov r0, r3 - 801cc72: f005 f8b8 bl 8021de6 - p->len += oversize_used; - 801cc76: 6b3b ldr r3, [r7, #48] ; 0x30 - 801cc78: 895a ldrh r2, [r3, #10] - 801cc7a: f8b7 3046 ldrh.w r3, [r7, #70] ; 0x46 - 801cc7e: 4413 add r3, r2 - 801cc80: b29a uxth r2, r3 - 801cc82: 6b3b ldr r3, [r7, #48] ; 0x30 - 801cc84: 815a strh r2, [r3, #10] - for (p = last_unsent->p; p; p = p->next) { - 801cc86: 6b3b ldr r3, [r7, #48] ; 0x30 - 801cc88: 681b ldr r3, [r3, #0] - 801cc8a: 633b str r3, [r7, #48] ; 0x30 - 801cc8c: 6b3b ldr r3, [r7, #48] ; 0x30 - 801cc8e: 2b00 cmp r3, #0 - 801cc90: d1da bne.n 801cc48 - } - } - last_unsent->len += oversize_used; - 801cc92: 6c3b ldr r3, [r7, #64] ; 0x40 - 801cc94: 891a ldrh r2, [r3, #8] - 801cc96: f8b7 3046 ldrh.w r3, [r7, #70] ; 0x46 - 801cc9a: 4413 add r3, r2 - 801cc9c: b29a uxth r2, r3 - 801cc9e: 6c3b ldr r3, [r7, #64] ; 0x40 - 801cca0: 811a strh r2, [r3, #8] -#if TCP_OVERSIZE_DBGCHECK - LWIP_ASSERT("last_unsent->oversize_left >= oversize_used", - 801cca2: 6c3b ldr r3, [r7, #64] ; 0x40 - 801cca4: 895b ldrh r3, [r3, #10] - 801cca6: f8b7 2046 ldrh.w r2, [r7, #70] ; 0x46 - 801ccaa: 429a cmp r2, r3 - 801ccac: d906 bls.n 801ccbc - 801ccae: 4b78 ldr r3, [pc, #480] ; (801ce90 ) - 801ccb0: f240 22d3 movw r2, #723 ; 0x2d3 - 801ccb4: 4977 ldr r1, [pc, #476] ; (801ce94 ) - 801ccb6: 4878 ldr r0, [pc, #480] ; (801ce98 ) - 801ccb8: f004 fe66 bl 8021988 - last_unsent->oversize_left >= oversize_used); - last_unsent->oversize_left -= oversize_used; - 801ccbc: 6c3b ldr r3, [r7, #64] ; 0x40 - 801ccbe: 895a ldrh r2, [r3, #10] - 801ccc0: f8b7 3046 ldrh.w r3, [r7, #70] ; 0x46 - 801ccc4: 1ad3 subs r3, r2, r3 - 801ccc6: b29a uxth r2, r3 - 801ccc8: 6c3b ldr r3, [r7, #64] ; 0x40 - 801ccca: 815a strh r2, [r3, #10] -#endif /* TCP_OVERSIZE_DBGCHECK */ - } - pcb->unsent_oversize = oversize; - 801cccc: 8afa ldrh r2, [r7, #22] - 801ccce: 68fb ldr r3, [r7, #12] - 801ccd0: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 - - /* - * Phase 2: concat_p can be concatenated onto last_unsent->p, unless we - * determined that the last ROM pbuf can be extended to include the new data. - */ - if (concat_p != NULL) { - 801ccd4: 6bfb ldr r3, [r7, #60] ; 0x3c - 801ccd6: 2b00 cmp r3, #0 - 801ccd8: d018 beq.n 801cd0c - LWIP_ASSERT("tcp_write: cannot concatenate when pcb->unsent is empty", - 801ccda: 6c3b ldr r3, [r7, #64] ; 0x40 - 801ccdc: 2b00 cmp r3, #0 - 801ccde: d106 bne.n 801ccee - 801cce0: 4b6b ldr r3, [pc, #428] ; (801ce90 ) - 801cce2: f44f 7238 mov.w r2, #736 ; 0x2e0 - 801cce6: 496d ldr r1, [pc, #436] ; (801ce9c ) - 801cce8: 486b ldr r0, [pc, #428] ; (801ce98 ) - 801ccea: f004 fe4d bl 8021988 - (last_unsent != NULL)); - pbuf_cat(last_unsent->p, concat_p); - 801ccee: 6c3b ldr r3, [r7, #64] ; 0x40 - 801ccf0: 685b ldr r3, [r3, #4] - 801ccf2: 6bf9 ldr r1, [r7, #60] ; 0x3c - 801ccf4: 4618 mov r0, r3 - 801ccf6: f7fa ffcd bl 8017c94 - last_unsent->len += concat_p->tot_len; - 801ccfa: 6c3b ldr r3, [r7, #64] ; 0x40 - 801ccfc: 891a ldrh r2, [r3, #8] - 801ccfe: 6bfb ldr r3, [r7, #60] ; 0x3c - 801cd00: 891b ldrh r3, [r3, #8] - 801cd02: 4413 add r3, r2 - 801cd04: b29a uxth r2, r3 - 801cd06: 6c3b ldr r3, [r7, #64] ; 0x40 - 801cd08: 811a strh r2, [r3, #8] - 801cd0a: e03c b.n 801cd86 - } else if (extendlen > 0) { - 801cd0c: f8b7 305e ldrh.w r3, [r7, #94] ; 0x5e - 801cd10: 2b00 cmp r3, #0 - 801cd12: d038 beq.n 801cd86 - struct pbuf *p; - LWIP_ASSERT("tcp_write: extension of reference requires reference", - 801cd14: 6c3b ldr r3, [r7, #64] ; 0x40 - 801cd16: 2b00 cmp r3, #0 - 801cd18: d003 beq.n 801cd22 - 801cd1a: 6c3b ldr r3, [r7, #64] ; 0x40 - 801cd1c: 685b ldr r3, [r3, #4] - 801cd1e: 2b00 cmp r3, #0 - 801cd20: d106 bne.n 801cd30 - 801cd22: 4b5b ldr r3, [pc, #364] ; (801ce90 ) - 801cd24: f240 22e6 movw r2, #742 ; 0x2e6 - 801cd28: 495d ldr r1, [pc, #372] ; (801cea0 ) - 801cd2a: 485b ldr r0, [pc, #364] ; (801ce98 ) - 801cd2c: f004 fe2c bl 8021988 - last_unsent != NULL && last_unsent->p != NULL); - for (p = last_unsent->p; p->next != NULL; p = p->next) { - 801cd30: 6c3b ldr r3, [r7, #64] ; 0x40 - 801cd32: 685b ldr r3, [r3, #4] - 801cd34: 62fb str r3, [r7, #44] ; 0x2c - 801cd36: e00a b.n 801cd4e - p->tot_len += extendlen; - 801cd38: 6afb ldr r3, [r7, #44] ; 0x2c - 801cd3a: 891a ldrh r2, [r3, #8] - 801cd3c: f8b7 305e ldrh.w r3, [r7, #94] ; 0x5e - 801cd40: 4413 add r3, r2 - 801cd42: b29a uxth r2, r3 - 801cd44: 6afb ldr r3, [r7, #44] ; 0x2c - 801cd46: 811a strh r2, [r3, #8] - for (p = last_unsent->p; p->next != NULL; p = p->next) { - 801cd48: 6afb ldr r3, [r7, #44] ; 0x2c - 801cd4a: 681b ldr r3, [r3, #0] - 801cd4c: 62fb str r3, [r7, #44] ; 0x2c - 801cd4e: 6afb ldr r3, [r7, #44] ; 0x2c - 801cd50: 681b ldr r3, [r3, #0] - 801cd52: 2b00 cmp r3, #0 - 801cd54: d1f0 bne.n 801cd38 - } - p->tot_len += extendlen; - 801cd56: 6afb ldr r3, [r7, #44] ; 0x2c - 801cd58: 891a ldrh r2, [r3, #8] - 801cd5a: f8b7 305e ldrh.w r3, [r7, #94] ; 0x5e - 801cd5e: 4413 add r3, r2 - 801cd60: b29a uxth r2, r3 - 801cd62: 6afb ldr r3, [r7, #44] ; 0x2c - 801cd64: 811a strh r2, [r3, #8] - p->len += extendlen; - 801cd66: 6afb ldr r3, [r7, #44] ; 0x2c - 801cd68: 895a ldrh r2, [r3, #10] - 801cd6a: f8b7 305e ldrh.w r3, [r7, #94] ; 0x5e - 801cd6e: 4413 add r3, r2 - 801cd70: b29a uxth r2, r3 - 801cd72: 6afb ldr r3, [r7, #44] ; 0x2c - 801cd74: 815a strh r2, [r3, #10] - last_unsent->len += extendlen; - 801cd76: 6c3b ldr r3, [r7, #64] ; 0x40 - 801cd78: 891a ldrh r2, [r3, #8] - 801cd7a: f8b7 305e ldrh.w r3, [r7, #94] ; 0x5e - 801cd7e: 4413 add r3, r2 - 801cd80: b29a uxth r2, r3 - 801cd82: 6c3b ldr r3, [r7, #64] ; 0x40 - 801cd84: 811a strh r2, [r3, #8] - - /* - * Phase 3: Append queue to pcb->unsent. Queue may be NULL, but that - * is harmless - */ - if (last_unsent == NULL) { - 801cd86: 6c3b ldr r3, [r7, #64] ; 0x40 - 801cd88: 2b00 cmp r3, #0 - 801cd8a: d103 bne.n 801cd94 - pcb->unsent = queue; - 801cd8c: 68fb ldr r3, [r7, #12] - 801cd8e: 6cfa ldr r2, [r7, #76] ; 0x4c - 801cd90: 66da str r2, [r3, #108] ; 0x6c - 801cd92: e002 b.n 801cd9a - } else { - last_unsent->next = queue; - 801cd94: 6c3b ldr r3, [r7, #64] ; 0x40 - 801cd96: 6cfa ldr r2, [r7, #76] ; 0x4c - 801cd98: 601a str r2, [r3, #0] - } - - /* - * Finally update the pcb state. - */ - pcb->snd_lbb += len; - 801cd9a: 68fb ldr r3, [r7, #12] - 801cd9c: 6dda ldr r2, [r3, #92] ; 0x5c - 801cd9e: 88fb ldrh r3, [r7, #6] - 801cda0: 441a add r2, r3 - 801cda2: 68fb ldr r3, [r7, #12] - 801cda4: 65da str r2, [r3, #92] ; 0x5c - pcb->snd_buf -= len; - 801cda6: 68fb ldr r3, [r7, #12] - 801cda8: f8b3 2064 ldrh.w r2, [r3, #100] ; 0x64 - 801cdac: 88fb ldrh r3, [r7, #6] - 801cdae: 1ad3 subs r3, r2, r3 - 801cdb0: b29a uxth r2, r3 - 801cdb2: 68fb ldr r3, [r7, #12] - 801cdb4: f8a3 2064 strh.w r2, [r3, #100] ; 0x64 - pcb->snd_queuelen = queuelen; - 801cdb8: 68fb ldr r3, [r7, #12] - 801cdba: f8b7 2048 ldrh.w r2, [r7, #72] ; 0x48 - 801cdbe: f8a3 2066 strh.w r2, [r3, #102] ; 0x66 - - LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_write: %"S16_F" (after enqueued)\n", - pcb->snd_queuelen)); - if (pcb->snd_queuelen != 0) { - 801cdc2: 68fb ldr r3, [r7, #12] - 801cdc4: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 801cdc8: 2b00 cmp r3, #0 - 801cdca: d00e beq.n 801cdea - LWIP_ASSERT("tcp_write: valid queue length", - 801cdcc: 68fb ldr r3, [r7, #12] - 801cdce: 6f1b ldr r3, [r3, #112] ; 0x70 - 801cdd0: 2b00 cmp r3, #0 - 801cdd2: d10a bne.n 801cdea - 801cdd4: 68fb ldr r3, [r7, #12] - 801cdd6: 6edb ldr r3, [r3, #108] ; 0x6c - 801cdd8: 2b00 cmp r3, #0 - 801cdda: d106 bne.n 801cdea - 801cddc: 4b2c ldr r3, [pc, #176] ; (801ce90 ) - 801cdde: f240 3212 movw r2, #786 ; 0x312 - 801cde2: 4930 ldr r1, [pc, #192] ; (801cea4 ) - 801cde4: 482c ldr r0, [pc, #176] ; (801ce98 ) - 801cde6: f004 fdcf bl 8021988 - pcb->unacked != NULL || pcb->unsent != NULL); - } - - /* Set the PSH flag in the last segment that we enqueued. */ - if (seg != NULL && seg->tcphdr != NULL && ((apiflags & TCP_WRITE_FLAG_MORE) == 0)) { - 801cdea: 6d7b ldr r3, [r7, #84] ; 0x54 - 801cdec: 2b00 cmp r3, #0 - 801cdee: d016 beq.n 801ce1e - 801cdf0: 6d7b ldr r3, [r7, #84] ; 0x54 - 801cdf2: 691b ldr r3, [r3, #16] - 801cdf4: 2b00 cmp r3, #0 - 801cdf6: d012 beq.n 801ce1e - 801cdf8: 797b ldrb r3, [r7, #5] - 801cdfa: f003 0302 and.w r3, r3, #2 - 801cdfe: 2b00 cmp r3, #0 - 801ce00: d10d bne.n 801ce1e - TCPH_SET_FLAG(seg->tcphdr, TCP_PSH); - 801ce02: 6d7b ldr r3, [r7, #84] ; 0x54 - 801ce04: 691b ldr r3, [r3, #16] - 801ce06: 899b ldrh r3, [r3, #12] - 801ce08: b29c uxth r4, r3 - 801ce0a: 2008 movs r0, #8 - 801ce0c: f7f9 f898 bl 8015f40 - 801ce10: 4603 mov r3, r0 - 801ce12: 461a mov r2, r3 - 801ce14: 6d7b ldr r3, [r7, #84] ; 0x54 - 801ce16: 691b ldr r3, [r3, #16] - 801ce18: 4322 orrs r2, r4 - 801ce1a: b292 uxth r2, r2 - 801ce1c: 819a strh r2, [r3, #12] - } - - return ERR_OK; - 801ce1e: 2300 movs r3, #0 - 801ce20: e031 b.n 801ce86 - goto memerr; - 801ce22: bf00 nop - 801ce24: e006 b.n 801ce34 - goto memerr; - 801ce26: bf00 nop - 801ce28: e004 b.n 801ce34 - goto memerr; - 801ce2a: bf00 nop - 801ce2c: e002 b.n 801ce34 - goto memerr; - 801ce2e: bf00 nop - 801ce30: e000 b.n 801ce34 - goto memerr; - 801ce32: bf00 nop -memerr: - tcp_set_flags(pcb, TF_NAGLEMEMERR); - 801ce34: 68fb ldr r3, [r7, #12] - 801ce36: 8b5b ldrh r3, [r3, #26] - 801ce38: f043 0380 orr.w r3, r3, #128 ; 0x80 - 801ce3c: b29a uxth r2, r3 - 801ce3e: 68fb ldr r3, [r7, #12] - 801ce40: 835a strh r2, [r3, #26] - TCP_STATS_INC(tcp.memerr); - - if (concat_p != NULL) { - 801ce42: 6bfb ldr r3, [r7, #60] ; 0x3c - 801ce44: 2b00 cmp r3, #0 - 801ce46: d002 beq.n 801ce4e - pbuf_free(concat_p); - 801ce48: 6bf8 ldr r0, [r7, #60] ; 0x3c - 801ce4a: f7fa fe55 bl 8017af8 - } - if (queue != NULL) { - 801ce4e: 6cfb ldr r3, [r7, #76] ; 0x4c - 801ce50: 2b00 cmp r3, #0 - 801ce52: d002 beq.n 801ce5a - tcp_segs_free(queue); - 801ce54: 6cf8 ldr r0, [r7, #76] ; 0x4c - 801ce56: f7fc fb0f bl 8019478 - } - if (pcb->snd_queuelen != 0) { - 801ce5a: 68fb ldr r3, [r7, #12] - 801ce5c: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 801ce60: 2b00 cmp r3, #0 - 801ce62: d00e beq.n 801ce82 - LWIP_ASSERT("tcp_write: valid queue length", pcb->unacked != NULL || - 801ce64: 68fb ldr r3, [r7, #12] - 801ce66: 6f1b ldr r3, [r3, #112] ; 0x70 - 801ce68: 2b00 cmp r3, #0 - 801ce6a: d10a bne.n 801ce82 - 801ce6c: 68fb ldr r3, [r7, #12] - 801ce6e: 6edb ldr r3, [r3, #108] ; 0x6c - 801ce70: 2b00 cmp r3, #0 - 801ce72: d106 bne.n 801ce82 - 801ce74: 4b06 ldr r3, [pc, #24] ; (801ce90 ) - 801ce76: f240 3227 movw r2, #807 ; 0x327 - 801ce7a: 490a ldr r1, [pc, #40] ; (801cea4 ) - 801ce7c: 4806 ldr r0, [pc, #24] ; (801ce98 ) - 801ce7e: f004 fd83 bl 8021988 - pcb->unsent != NULL); - } - LWIP_DEBUGF(TCP_QLEN_DEBUG | LWIP_DBG_STATE, ("tcp_write: %"S16_F" (with mem err)\n", pcb->snd_queuelen)); - return ERR_MEM; - 801ce82: f04f 33ff mov.w r3, #4294967295 -} - 801ce86: 4618 mov r0, r3 - 801ce88: 3764 adds r7, #100 ; 0x64 - 801ce8a: 46bd mov sp, r7 - 801ce8c: bd90 pop {r4, r7, pc} - 801ce8e: bf00 nop - 801ce90: 080257b8 .word 0x080257b8 - 801ce94: 08025aec .word 0x08025aec - 801ce98: 0802580c .word 0x0802580c - 801ce9c: 08025b18 .word 0x08025b18 - 801cea0: 08025b50 .word 0x08025b50 - 801cea4: 08025b88 .word 0x08025b88 - -0801cea8 : - * @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) -{ - 801cea8: b590 push {r4, r7, lr} - 801ceaa: b08b sub sp, #44 ; 0x2c - 801ceac: af02 add r7, sp, #8 - 801ceae: 6078 str r0, [r7, #4] - 801ceb0: 460b mov r3, r1 - 801ceb2: 807b strh r3, [r7, #2] - struct tcp_seg *seg = NULL, *useg = NULL; - 801ceb4: 2300 movs r3, #0 - 801ceb6: 61bb str r3, [r7, #24] - 801ceb8: 2300 movs r3, #0 - 801ceba: 617b str r3, [r7, #20] - struct pbuf *p = NULL; - 801cebc: 2300 movs r3, #0 - 801cebe: 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); - 801cec0: 687b ldr r3, [r7, #4] - 801cec2: 2b00 cmp r3, #0 - 801cec4: d106 bne.n 801ced4 - 801cec6: 4b97 ldr r3, [pc, #604] ; (801d124 ) - 801cec8: f240 324b movw r2, #843 ; 0x34b - 801cecc: 4996 ldr r1, [pc, #600] ; (801d128 ) - 801cece: 4897 ldr r0, [pc, #604] ; (801d12c ) - 801ced0: f004 fd5a bl 8021988 - - useg = pcb->unsent; - 801ced4: 687b ldr r3, [r7, #4] - 801ced6: 6edb ldr r3, [r3, #108] ; 0x6c - 801ced8: 617b str r3, [r7, #20] - if (useg == NULL) { - 801ceda: 697b ldr r3, [r7, #20] - 801cedc: 2b00 cmp r3, #0 - 801cede: d102 bne.n 801cee6 - return ERR_MEM; - 801cee0: f04f 33ff mov.w r3, #4294967295 - 801cee4: e119 b.n 801d11a - } - - if (split == 0) { - 801cee6: 887b ldrh r3, [r7, #2] - 801cee8: 2b00 cmp r3, #0 - 801ceea: d109 bne.n 801cf00 - LWIP_ASSERT("Can't split segment into length 0", 0); - 801ceec: 4b8d ldr r3, [pc, #564] ; (801d124 ) - 801ceee: f240 3253 movw r2, #851 ; 0x353 - 801cef2: 498f ldr r1, [pc, #572] ; (801d130 ) - 801cef4: 488d ldr r0, [pc, #564] ; (801d12c ) - 801cef6: f004 fd47 bl 8021988 - return ERR_VAL; - 801cefa: f06f 0305 mvn.w r3, #5 - 801cefe: e10c b.n 801d11a - } - - if (useg->len <= split) { - 801cf00: 697b ldr r3, [r7, #20] - 801cf02: 891b ldrh r3, [r3, #8] - 801cf04: 887a ldrh r2, [r7, #2] - 801cf06: 429a cmp r2, r3 - 801cf08: d301 bcc.n 801cf0e - return ERR_OK; - 801cf0a: 2300 movs r3, #0 - 801cf0c: e105 b.n 801d11a - } - - LWIP_ASSERT("split <= mss", split <= pcb->mss); - 801cf0e: 687b ldr r3, [r7, #4] - 801cf10: 8e5b ldrh r3, [r3, #50] ; 0x32 - 801cf12: 887a ldrh r2, [r7, #2] - 801cf14: 429a cmp r2, r3 - 801cf16: d906 bls.n 801cf26 - 801cf18: 4b82 ldr r3, [pc, #520] ; (801d124 ) - 801cf1a: f240 325b movw r2, #859 ; 0x35b - 801cf1e: 4985 ldr r1, [pc, #532] ; (801d134 ) - 801cf20: 4882 ldr r0, [pc, #520] ; (801d12c ) - 801cf22: f004 fd31 bl 8021988 - LWIP_ASSERT("useg->len > 0", useg->len > 0); - 801cf26: 697b ldr r3, [r7, #20] - 801cf28: 891b ldrh r3, [r3, #8] - 801cf2a: 2b00 cmp r3, #0 - 801cf2c: d106 bne.n 801cf3c - 801cf2e: 4b7d ldr r3, [pc, #500] ; (801d124 ) - 801cf30: f44f 7257 mov.w r2, #860 ; 0x35c - 801cf34: 4980 ldr r1, [pc, #512] ; (801d138 ) - 801cf36: 487d ldr r0, [pc, #500] ; (801d12c ) - 801cf38: f004 fd26 bl 8021988 - * 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; - 801cf3c: 697b ldr r3, [r7, #20] - 801cf3e: 7b1b ldrb r3, [r3, #12] - 801cf40: 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); - 801cf42: 7bfb ldrb r3, [r7, #15] - 801cf44: 009b lsls r3, r3, #2 - 801cf46: b2db uxtb r3, r3 - 801cf48: f003 0304 and.w r3, r3, #4 - 801cf4c: 73bb strb r3, [r7, #14] - remainder = useg->len - split; - 801cf4e: 697b ldr r3, [r7, #20] - 801cf50: 891a ldrh r2, [r3, #8] - 801cf52: 887b ldrh r3, [r7, #2] - 801cf54: 1ad3 subs r3, r2, r3 - 801cf56: 81bb strh r3, [r7, #12] - - /* Create new pbuf for the remainder of the split */ - p = pbuf_alloc(PBUF_TRANSPORT, remainder + optlen, PBUF_RAM); - 801cf58: 7bbb ldrb r3, [r7, #14] - 801cf5a: b29a uxth r2, r3 - 801cf5c: 89bb ldrh r3, [r7, #12] - 801cf5e: 4413 add r3, r2 - 801cf60: b29b uxth r3, r3 - 801cf62: f44f 7220 mov.w r2, #640 ; 0x280 - 801cf66: 4619 mov r1, r3 - 801cf68: 2036 movs r0, #54 ; 0x36 - 801cf6a: f7fa fadd bl 8017528 - 801cf6e: 6138 str r0, [r7, #16] - if (p == NULL) { - 801cf70: 693b ldr r3, [r7, #16] - 801cf72: 2b00 cmp r3, #0 - 801cf74: f000 80ba beq.w 801d0ec - ("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; - 801cf78: 697b ldr r3, [r7, #20] - 801cf7a: 685b ldr r3, [r3, #4] - 801cf7c: 891a ldrh r2, [r3, #8] - 801cf7e: 697b ldr r3, [r7, #20] - 801cf80: 891b ldrh r3, [r3, #8] - 801cf82: 1ad3 subs r3, r2, r3 - 801cf84: b29a uxth r2, r3 - 801cf86: 887b ldrh r3, [r7, #2] - 801cf88: 4413 add r3, r2 - 801cf8a: 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) { - 801cf8c: 697b ldr r3, [r7, #20] - 801cf8e: 6858 ldr r0, [r3, #4] - 801cf90: 693b ldr r3, [r7, #16] - 801cf92: 685a ldr r2, [r3, #4] - 801cf94: 7bbb ldrb r3, [r7, #14] - 801cf96: 18d1 adds r1, r2, r3 - 801cf98: 897b ldrh r3, [r7, #10] - 801cf9a: 89ba ldrh r2, [r7, #12] - 801cf9c: f7fa ffa2 bl 8017ee4 - 801cfa0: 4603 mov r3, r0 - 801cfa2: 461a mov r2, r3 - 801cfa4: 89bb ldrh r3, [r7, #12] - 801cfa6: 4293 cmp r3, r2 - 801cfa8: f040 80a2 bne.w 801d0f0 -#endif /* TCP_CHECKSUM_ON_COPY */ - - /* Options are created when calling tcp_output() */ - - /* Migrate flags from original segment */ - split_flags = TCPH_FLAGS(useg->tcphdr); - 801cfac: 697b ldr r3, [r7, #20] - 801cfae: 691b ldr r3, [r3, #16] - 801cfb0: 899b ldrh r3, [r3, #12] - 801cfb2: b29b uxth r3, r3 - 801cfb4: 4618 mov r0, r3 - 801cfb6: f7f8 ffc3 bl 8015f40 - 801cfba: 4603 mov r3, r0 - 801cfbc: b2db uxtb r3, r3 - 801cfbe: f003 033f and.w r3, r3, #63 ; 0x3f - 801cfc2: 77fb strb r3, [r7, #31] - remainder_flags = 0; /* ACK added in tcp_output() */ - 801cfc4: 2300 movs r3, #0 - 801cfc6: 77bb strb r3, [r7, #30] - - if (split_flags & TCP_PSH) { - 801cfc8: 7ffb ldrb r3, [r7, #31] - 801cfca: f003 0308 and.w r3, r3, #8 - 801cfce: 2b00 cmp r3, #0 - 801cfd0: d007 beq.n 801cfe2 - split_flags &= ~TCP_PSH; - 801cfd2: 7ffb ldrb r3, [r7, #31] - 801cfd4: f023 0308 bic.w r3, r3, #8 - 801cfd8: 77fb strb r3, [r7, #31] - remainder_flags |= TCP_PSH; - 801cfda: 7fbb ldrb r3, [r7, #30] - 801cfdc: f043 0308 orr.w r3, r3, #8 - 801cfe0: 77bb strb r3, [r7, #30] - } - if (split_flags & TCP_FIN) { - 801cfe2: 7ffb ldrb r3, [r7, #31] - 801cfe4: f003 0301 and.w r3, r3, #1 - 801cfe8: 2b00 cmp r3, #0 - 801cfea: d007 beq.n 801cffc - split_flags &= ~TCP_FIN; - 801cfec: 7ffb ldrb r3, [r7, #31] - 801cfee: f023 0301 bic.w r3, r3, #1 - 801cff2: 77fb strb r3, [r7, #31] - remainder_flags |= TCP_FIN; - 801cff4: 7fbb ldrb r3, [r7, #30] - 801cff6: f043 0301 orr.w r3, r3, #1 - 801cffa: 77bb strb r3, [r7, #30] - } - /* 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); - 801cffc: 697b ldr r3, [r7, #20] - 801cffe: 691b ldr r3, [r3, #16] - 801d000: 685b ldr r3, [r3, #4] - 801d002: 4618 mov r0, r3 - 801d004: f7f8 ffb1 bl 8015f6a - 801d008: 4602 mov r2, r0 - 801d00a: 887b ldrh r3, [r7, #2] - 801d00c: 18d1 adds r1, r2, r3 - 801d00e: 7fba ldrb r2, [r7, #30] - 801d010: 7bfb ldrb r3, [r7, #15] - 801d012: 9300 str r3, [sp, #0] - 801d014: 460b mov r3, r1 - 801d016: 6939 ldr r1, [r7, #16] - 801d018: 6878 ldr r0, [r7, #4] - 801d01a: f7ff f9f3 bl 801c404 - 801d01e: 61b8 str r0, [r7, #24] - if (seg == NULL) { - 801d020: 69bb ldr r3, [r7, #24] - 801d022: 2b00 cmp r3, #0 - 801d024: d066 beq.n 801d0f4 - 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); - 801d026: 697b ldr r3, [r7, #20] - 801d028: 685b ldr r3, [r3, #4] - 801d02a: 4618 mov r0, r3 - 801d02c: f7fa fdf2 bl 8017c14 - 801d030: 4603 mov r3, r0 - 801d032: 461a mov r2, r3 - 801d034: 687b ldr r3, [r7, #4] - 801d036: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 801d03a: 1a9b subs r3, r3, r2 - 801d03c: b29a uxth r2, r3 - 801d03e: 687b ldr r3, [r7, #4] - 801d040: 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); - 801d044: 697b ldr r3, [r7, #20] - 801d046: 6858 ldr r0, [r3, #4] - 801d048: 697b ldr r3, [r7, #20] - 801d04a: 685b ldr r3, [r3, #4] - 801d04c: 891a ldrh r2, [r3, #8] - 801d04e: 89bb ldrh r3, [r7, #12] - 801d050: 1ad3 subs r3, r2, r3 - 801d052: b29b uxth r3, r3 - 801d054: 4619 mov r1, r3 - 801d056: f7fa fbc9 bl 80177ec - useg->len -= remainder; - 801d05a: 697b ldr r3, [r7, #20] - 801d05c: 891a ldrh r2, [r3, #8] - 801d05e: 89bb ldrh r3, [r7, #12] - 801d060: 1ad3 subs r3, r2, r3 - 801d062: b29a uxth r2, r3 - 801d064: 697b ldr r3, [r7, #20] - 801d066: 811a strh r2, [r3, #8] - TCPH_SET_FLAG(useg->tcphdr, split_flags); - 801d068: 697b ldr r3, [r7, #20] - 801d06a: 691b ldr r3, [r3, #16] - 801d06c: 899b ldrh r3, [r3, #12] - 801d06e: b29c uxth r4, r3 - 801d070: 7ffb ldrb r3, [r7, #31] - 801d072: b29b uxth r3, r3 - 801d074: 4618 mov r0, r3 - 801d076: f7f8 ff63 bl 8015f40 - 801d07a: 4603 mov r3, r0 - 801d07c: 461a mov r2, r3 - 801d07e: 697b ldr r3, [r7, #20] - 801d080: 691b ldr r3, [r3, #16] - 801d082: 4322 orrs r2, r4 - 801d084: b292 uxth r2, r2 - 801d086: 819a strh r2, [r3, #12] -#if TCP_OVERSIZE_DBGCHECK - /* By trimming, realloc may have actually shrunk the pbuf, so clear oversize_left */ - useg->oversize_left = 0; - 801d088: 697b ldr r3, [r7, #20] - 801d08a: 2200 movs r2, #0 - 801d08c: 815a strh r2, [r3, #10] -#endif /* TCP_OVERSIZE_DBGCHECK */ - - /* Add back to the queue with new trimmed pbuf */ - pcb->snd_queuelen += pbuf_clen(useg->p); - 801d08e: 697b ldr r3, [r7, #20] - 801d090: 685b ldr r3, [r3, #4] - 801d092: 4618 mov r0, r3 - 801d094: f7fa fdbe bl 8017c14 - 801d098: 4603 mov r3, r0 - 801d09a: 461a mov r2, r3 - 801d09c: 687b ldr r3, [r7, #4] - 801d09e: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 801d0a2: 4413 add r3, r2 - 801d0a4: b29a uxth r2, r3 - 801d0a6: 687b ldr r3, [r7, #4] - 801d0a8: 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); - 801d0ac: 69bb ldr r3, [r7, #24] - 801d0ae: 685b ldr r3, [r3, #4] - 801d0b0: 4618 mov r0, r3 - 801d0b2: f7fa fdaf bl 8017c14 - 801d0b6: 4603 mov r3, r0 - 801d0b8: 461a mov r2, r3 - 801d0ba: 687b ldr r3, [r7, #4] - 801d0bc: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 801d0c0: 4413 add r3, r2 - 801d0c2: b29a uxth r2, r3 - 801d0c4: 687b ldr r3, [r7, #4] - 801d0c6: f8a3 2066 strh.w r2, [r3, #102] ; 0x66 - - /* Finally insert remainder into queue after split (which stays head) */ - seg->next = useg->next; - 801d0ca: 697b ldr r3, [r7, #20] - 801d0cc: 681a ldr r2, [r3, #0] - 801d0ce: 69bb ldr r3, [r7, #24] - 801d0d0: 601a str r2, [r3, #0] - useg->next = seg; - 801d0d2: 697b ldr r3, [r7, #20] - 801d0d4: 69ba ldr r2, [r7, #24] - 801d0d6: 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) { - 801d0d8: 69bb ldr r3, [r7, #24] - 801d0da: 681b ldr r3, [r3, #0] - 801d0dc: 2b00 cmp r3, #0 - 801d0de: d103 bne.n 801d0e8 - pcb->unsent_oversize = 0; - 801d0e0: 687b ldr r3, [r7, #4] - 801d0e2: 2200 movs r2, #0 - 801d0e4: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 - } -#endif /* TCP_OVERSIZE */ - - return ERR_OK; - 801d0e8: 2300 movs r3, #0 - 801d0ea: e016 b.n 801d11a - goto memerr; - 801d0ec: bf00 nop - 801d0ee: e002 b.n 801d0f6 - goto memerr; - 801d0f0: bf00 nop - 801d0f2: e000 b.n 801d0f6 - goto memerr; - 801d0f4: bf00 nop -memerr: - TCP_STATS_INC(tcp.memerr); - - LWIP_ASSERT("seg == NULL", seg == NULL); - 801d0f6: 69bb ldr r3, [r7, #24] - 801d0f8: 2b00 cmp r3, #0 - 801d0fa: d006 beq.n 801d10a - 801d0fc: 4b09 ldr r3, [pc, #36] ; (801d124 ) - 801d0fe: f44f 7276 mov.w r2, #984 ; 0x3d8 - 801d102: 490e ldr r1, [pc, #56] ; (801d13c ) - 801d104: 4809 ldr r0, [pc, #36] ; (801d12c ) - 801d106: f004 fc3f bl 8021988 - if (p != NULL) { - 801d10a: 693b ldr r3, [r7, #16] - 801d10c: 2b00 cmp r3, #0 - 801d10e: d002 beq.n 801d116 - pbuf_free(p); - 801d110: 6938 ldr r0, [r7, #16] - 801d112: f7fa fcf1 bl 8017af8 - } - - return ERR_MEM; - 801d116: f04f 33ff mov.w r3, #4294967295 -} - 801d11a: 4618 mov r0, r3 - 801d11c: 3724 adds r7, #36 ; 0x24 - 801d11e: 46bd mov sp, r7 - 801d120: bd90 pop {r4, r7, pc} - 801d122: bf00 nop - 801d124: 080257b8 .word 0x080257b8 - 801d128: 08025ba8 .word 0x08025ba8 - 801d12c: 0802580c .word 0x0802580c - 801d130: 08025bcc .word 0x08025bcc - 801d134: 08025bf0 .word 0x08025bf0 - 801d138: 08025c00 .word 0x08025c00 - 801d13c: 08025c10 .word 0x08025c10 - -0801d140 : - * @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) -{ - 801d140: b590 push {r4, r7, lr} - 801d142: b085 sub sp, #20 - 801d144: af00 add r7, sp, #0 - 801d146: 6078 str r0, [r7, #4] - LWIP_ASSERT("tcp_send_fin: invalid pcb", pcb != NULL); - 801d148: 687b ldr r3, [r7, #4] - 801d14a: 2b00 cmp r3, #0 - 801d14c: d106 bne.n 801d15c - 801d14e: 4b21 ldr r3, [pc, #132] ; (801d1d4 ) - 801d150: f240 32eb movw r2, #1003 ; 0x3eb - 801d154: 4920 ldr r1, [pc, #128] ; (801d1d8 ) - 801d156: 4821 ldr r0, [pc, #132] ; (801d1dc ) - 801d158: f004 fc16 bl 8021988 - - /* first, try to add the fin to the last unsent segment */ - if (pcb->unsent != NULL) { - 801d15c: 687b ldr r3, [r7, #4] - 801d15e: 6edb ldr r3, [r3, #108] ; 0x6c - 801d160: 2b00 cmp r3, #0 - 801d162: d02e beq.n 801d1c2 - struct tcp_seg *last_unsent; - for (last_unsent = pcb->unsent; last_unsent->next != NULL; - 801d164: 687b ldr r3, [r7, #4] - 801d166: 6edb ldr r3, [r3, #108] ; 0x6c - 801d168: 60fb str r3, [r7, #12] - 801d16a: e002 b.n 801d172 - last_unsent = last_unsent->next); - 801d16c: 68fb ldr r3, [r7, #12] - 801d16e: 681b ldr r3, [r3, #0] - 801d170: 60fb str r3, [r7, #12] - for (last_unsent = pcb->unsent; last_unsent->next != NULL; - 801d172: 68fb ldr r3, [r7, #12] - 801d174: 681b ldr r3, [r3, #0] - 801d176: 2b00 cmp r3, #0 - 801d178: d1f8 bne.n 801d16c - - if ((TCPH_FLAGS(last_unsent->tcphdr) & (TCP_SYN | TCP_FIN | TCP_RST)) == 0) { - 801d17a: 68fb ldr r3, [r7, #12] - 801d17c: 691b ldr r3, [r3, #16] - 801d17e: 899b ldrh r3, [r3, #12] - 801d180: b29b uxth r3, r3 - 801d182: 4618 mov r0, r3 - 801d184: f7f8 fedc bl 8015f40 - 801d188: 4603 mov r3, r0 - 801d18a: b2db uxtb r3, r3 - 801d18c: f003 0307 and.w r3, r3, #7 - 801d190: 2b00 cmp r3, #0 - 801d192: d116 bne.n 801d1c2 - /* no SYN/FIN/RST flag in the header, we can add the FIN flag */ - TCPH_SET_FLAG(last_unsent->tcphdr, TCP_FIN); - 801d194: 68fb ldr r3, [r7, #12] - 801d196: 691b ldr r3, [r3, #16] - 801d198: 899b ldrh r3, [r3, #12] - 801d19a: b29c uxth r4, r3 - 801d19c: 2001 movs r0, #1 - 801d19e: f7f8 fecf bl 8015f40 - 801d1a2: 4603 mov r3, r0 - 801d1a4: 461a mov r2, r3 - 801d1a6: 68fb ldr r3, [r7, #12] - 801d1a8: 691b ldr r3, [r3, #16] - 801d1aa: 4322 orrs r2, r4 - 801d1ac: b292 uxth r2, r2 - 801d1ae: 819a strh r2, [r3, #12] - tcp_set_flags(pcb, TF_FIN); - 801d1b0: 687b ldr r3, [r7, #4] - 801d1b2: 8b5b ldrh r3, [r3, #26] - 801d1b4: f043 0320 orr.w r3, r3, #32 - 801d1b8: b29a uxth r2, r3 - 801d1ba: 687b ldr r3, [r7, #4] - 801d1bc: 835a strh r2, [r3, #26] - return ERR_OK; - 801d1be: 2300 movs r3, #0 - 801d1c0: e004 b.n 801d1cc - } - } - /* no data, no length, flags, copy=1, no optdata */ - return tcp_enqueue_flags(pcb, TCP_FIN); - 801d1c2: 2101 movs r1, #1 - 801d1c4: 6878 ldr r0, [r7, #4] - 801d1c6: f000 f80b bl 801d1e0 - 801d1ca: 4603 mov r3, r0 -} - 801d1cc: 4618 mov r0, r3 - 801d1ce: 3714 adds r7, #20 - 801d1d0: 46bd mov sp, r7 - 801d1d2: bd90 pop {r4, r7, pc} - 801d1d4: 080257b8 .word 0x080257b8 - 801d1d8: 08025c1c .word 0x08025c1c - 801d1dc: 0802580c .word 0x0802580c - -0801d1e0 : - * @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) -{ - 801d1e0: b580 push {r7, lr} - 801d1e2: b088 sub sp, #32 - 801d1e4: af02 add r7, sp, #8 - 801d1e6: 6078 str r0, [r7, #4] - 801d1e8: 460b mov r3, r1 - 801d1ea: 70fb strb r3, [r7, #3] - struct pbuf *p; - struct tcp_seg *seg; - u8_t optflags = 0; - 801d1ec: 2300 movs r3, #0 - 801d1ee: 75fb strb r3, [r7, #23] - u8_t optlen = 0; - 801d1f0: 2300 movs r3, #0 - 801d1f2: 75bb strb r3, [r7, #22] - - 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)", - 801d1f4: 78fb ldrb r3, [r7, #3] - 801d1f6: f003 0303 and.w r3, r3, #3 - 801d1fa: 2b00 cmp r3, #0 - 801d1fc: d106 bne.n 801d20c - 801d1fe: 4b67 ldr r3, [pc, #412] ; (801d39c ) - 801d200: f240 4211 movw r2, #1041 ; 0x411 - 801d204: 4966 ldr r1, [pc, #408] ; (801d3a0 ) - 801d206: 4867 ldr r0, [pc, #412] ; (801d3a4 ) - 801d208: f004 fbbe bl 8021988 - (flags & (TCP_SYN | TCP_FIN)) != 0); - LWIP_ASSERT("tcp_enqueue_flags: invalid pcb", pcb != NULL); - 801d20c: 687b ldr r3, [r7, #4] - 801d20e: 2b00 cmp r3, #0 - 801d210: d106 bne.n 801d220 - 801d212: 4b62 ldr r3, [pc, #392] ; (801d39c ) - 801d214: f240 4213 movw r2, #1043 ; 0x413 - 801d218: 4963 ldr r1, [pc, #396] ; (801d3a8 ) - 801d21a: 4862 ldr r0, [pc, #392] ; (801d3a4 ) - 801d21c: f004 fbb4 bl 8021988 - - /* 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) { - 801d220: 78fb ldrb r3, [r7, #3] - 801d222: f003 0302 and.w r3, r3, #2 - 801d226: 2b00 cmp r3, #0 - 801d228: d001 beq.n 801d22e - optflags = TF_SEG_OPTS_MSS; - 801d22a: 2301 movs r3, #1 - 801d22c: 75fb strb r3, [r7, #23] - /* 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); - 801d22e: 7dfb ldrb r3, [r7, #23] - 801d230: 009b lsls r3, r3, #2 - 801d232: b2db uxtb r3, r3 - 801d234: f003 0304 and.w r3, r3, #4 - 801d238: 75bb strb r3, [r7, #22] - - /* Allocate pbuf with room for TCP header + options */ - if ((p = pbuf_alloc(PBUF_TRANSPORT, optlen, PBUF_RAM)) == NULL) { - 801d23a: 7dbb ldrb r3, [r7, #22] - 801d23c: b29b uxth r3, r3 - 801d23e: f44f 7220 mov.w r2, #640 ; 0x280 - 801d242: 4619 mov r1, r3 - 801d244: 2036 movs r0, #54 ; 0x36 - 801d246: f7fa f96f bl 8017528 - 801d24a: 60f8 str r0, [r7, #12] - 801d24c: 68fb ldr r3, [r7, #12] - 801d24e: 2b00 cmp r3, #0 - 801d250: d109 bne.n 801d266 - tcp_set_flags(pcb, TF_NAGLEMEMERR); - 801d252: 687b ldr r3, [r7, #4] - 801d254: 8b5b ldrh r3, [r3, #26] - 801d256: f043 0380 orr.w r3, r3, #128 ; 0x80 - 801d25a: b29a uxth r2, r3 - 801d25c: 687b ldr r3, [r7, #4] - 801d25e: 835a strh r2, [r3, #26] - TCP_STATS_INC(tcp.memerr); - return ERR_MEM; - 801d260: f04f 33ff mov.w r3, #4294967295 - 801d264: e095 b.n 801d392 - } - LWIP_ASSERT("tcp_enqueue_flags: check that first pbuf can hold optlen", - 801d266: 68fb ldr r3, [r7, #12] - 801d268: 895a ldrh r2, [r3, #10] - 801d26a: 7dbb ldrb r3, [r7, #22] - 801d26c: b29b uxth r3, r3 - 801d26e: 429a cmp r2, r3 - 801d270: d206 bcs.n 801d280 - 801d272: 4b4a ldr r3, [pc, #296] ; (801d39c ) - 801d274: f240 4239 movw r2, #1081 ; 0x439 - 801d278: 494c ldr r1, [pc, #304] ; (801d3ac ) - 801d27a: 484a ldr r0, [pc, #296] ; (801d3a4 ) - 801d27c: f004 fb84 bl 8021988 - (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) { - 801d280: 687b ldr r3, [r7, #4] - 801d282: 6dd9 ldr r1, [r3, #92] ; 0x5c - 801d284: 78fa ldrb r2, [r7, #3] - 801d286: 7dfb ldrb r3, [r7, #23] - 801d288: 9300 str r3, [sp, #0] - 801d28a: 460b mov r3, r1 - 801d28c: 68f9 ldr r1, [r7, #12] - 801d28e: 6878 ldr r0, [r7, #4] - 801d290: f7ff f8b8 bl 801c404 - 801d294: 60b8 str r0, [r7, #8] - 801d296: 68bb ldr r3, [r7, #8] - 801d298: 2b00 cmp r3, #0 - 801d29a: d109 bne.n 801d2b0 - tcp_set_flags(pcb, TF_NAGLEMEMERR); - 801d29c: 687b ldr r3, [r7, #4] - 801d29e: 8b5b ldrh r3, [r3, #26] - 801d2a0: f043 0380 orr.w r3, r3, #128 ; 0x80 - 801d2a4: b29a uxth r2, r3 - 801d2a6: 687b ldr r3, [r7, #4] - 801d2a8: 835a strh r2, [r3, #26] - TCP_STATS_INC(tcp.memerr); - return ERR_MEM; - 801d2aa: f04f 33ff mov.w r3, #4294967295 - 801d2ae: e070 b.n 801d392 - } - LWIP_ASSERT("seg->tcphdr not aligned", ((mem_ptr_t)seg->tcphdr % LWIP_MIN(MEM_ALIGNMENT, 4)) == 0); - 801d2b0: 68bb ldr r3, [r7, #8] - 801d2b2: 691b ldr r3, [r3, #16] - 801d2b4: f003 0303 and.w r3, r3, #3 - 801d2b8: 2b00 cmp r3, #0 - 801d2ba: d006 beq.n 801d2ca - 801d2bc: 4b37 ldr r3, [pc, #220] ; (801d39c ) - 801d2be: f240 4242 movw r2, #1090 ; 0x442 - 801d2c2: 493b ldr r1, [pc, #236] ; (801d3b0 ) - 801d2c4: 4837 ldr r0, [pc, #220] ; (801d3a4 ) - 801d2c6: f004 fb5f bl 8021988 - LWIP_ASSERT("tcp_enqueue_flags: invalid segment length", seg->len == 0); - 801d2ca: 68bb ldr r3, [r7, #8] - 801d2cc: 891b ldrh r3, [r3, #8] - 801d2ce: 2b00 cmp r3, #0 - 801d2d0: d006 beq.n 801d2e0 - 801d2d2: 4b32 ldr r3, [pc, #200] ; (801d39c ) - 801d2d4: f240 4243 movw r2, #1091 ; 0x443 - 801d2d8: 4936 ldr r1, [pc, #216] ; (801d3b4 ) - 801d2da: 4832 ldr r0, [pc, #200] ; (801d3a4 ) - 801d2dc: f004 fb54 bl 8021988 - 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) { - 801d2e0: 687b ldr r3, [r7, #4] - 801d2e2: 6edb ldr r3, [r3, #108] ; 0x6c - 801d2e4: 2b00 cmp r3, #0 - 801d2e6: d103 bne.n 801d2f0 - pcb->unsent = seg; - 801d2e8: 687b ldr r3, [r7, #4] - 801d2ea: 68ba ldr r2, [r7, #8] - 801d2ec: 66da str r2, [r3, #108] ; 0x6c - 801d2ee: e00d b.n 801d30c - } else { - struct tcp_seg *useg; - for (useg = pcb->unsent; useg->next != NULL; useg = useg->next); - 801d2f0: 687b ldr r3, [r7, #4] - 801d2f2: 6edb ldr r3, [r3, #108] ; 0x6c - 801d2f4: 613b str r3, [r7, #16] - 801d2f6: e002 b.n 801d2fe - 801d2f8: 693b ldr r3, [r7, #16] - 801d2fa: 681b ldr r3, [r3, #0] - 801d2fc: 613b str r3, [r7, #16] - 801d2fe: 693b ldr r3, [r7, #16] - 801d300: 681b ldr r3, [r3, #0] - 801d302: 2b00 cmp r3, #0 - 801d304: d1f8 bne.n 801d2f8 - useg->next = seg; - 801d306: 693b ldr r3, [r7, #16] - 801d308: 68ba ldr r2, [r7, #8] - 801d30a: 601a str r2, [r3, #0] - } -#if TCP_OVERSIZE - /* The new unsent tail has no space */ - pcb->unsent_oversize = 0; - 801d30c: 687b ldr r3, [r7, #4] - 801d30e: 2200 movs r2, #0 - 801d310: 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)) { - 801d314: 78fb ldrb r3, [r7, #3] - 801d316: f003 0302 and.w r3, r3, #2 - 801d31a: 2b00 cmp r3, #0 - 801d31c: d104 bne.n 801d328 - 801d31e: 78fb ldrb r3, [r7, #3] - 801d320: f003 0301 and.w r3, r3, #1 - 801d324: 2b00 cmp r3, #0 - 801d326: d004 beq.n 801d332 - pcb->snd_lbb++; - 801d328: 687b ldr r3, [r7, #4] - 801d32a: 6ddb ldr r3, [r3, #92] ; 0x5c - 801d32c: 1c5a adds r2, r3, #1 - 801d32e: 687b ldr r3, [r7, #4] - 801d330: 65da str r2, [r3, #92] ; 0x5c - /* optlen does not influence snd_buf */ - } - if (flags & TCP_FIN) { - 801d332: 78fb ldrb r3, [r7, #3] - 801d334: f003 0301 and.w r3, r3, #1 - 801d338: 2b00 cmp r3, #0 - 801d33a: d006 beq.n 801d34a - tcp_set_flags(pcb, TF_FIN); - 801d33c: 687b ldr r3, [r7, #4] - 801d33e: 8b5b ldrh r3, [r3, #26] - 801d340: f043 0320 orr.w r3, r3, #32 - 801d344: b29a uxth r2, r3 - 801d346: 687b ldr r3, [r7, #4] - 801d348: 835a strh r2, [r3, #26] - } - - /* update number of segments on the queues */ - pcb->snd_queuelen += pbuf_clen(seg->p); - 801d34a: 68bb ldr r3, [r7, #8] - 801d34c: 685b ldr r3, [r3, #4] - 801d34e: 4618 mov r0, r3 - 801d350: f7fa fc60 bl 8017c14 - 801d354: 4603 mov r3, r0 - 801d356: 461a mov r2, r3 - 801d358: 687b ldr r3, [r7, #4] - 801d35a: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 801d35e: 4413 add r3, r2 - 801d360: b29a uxth r2, r3 - 801d362: 687b ldr r3, [r7, #4] - 801d364: 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) { - 801d368: 687b ldr r3, [r7, #4] - 801d36a: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 801d36e: 2b00 cmp r3, #0 - 801d370: d00e beq.n 801d390 - LWIP_ASSERT("tcp_enqueue_flags: invalid queue length", - 801d372: 687b ldr r3, [r7, #4] - 801d374: 6f1b ldr r3, [r3, #112] ; 0x70 - 801d376: 2b00 cmp r3, #0 - 801d378: d10a bne.n 801d390 - 801d37a: 687b ldr r3, [r7, #4] - 801d37c: 6edb ldr r3, [r3, #108] ; 0x6c - 801d37e: 2b00 cmp r3, #0 - 801d380: d106 bne.n 801d390 - 801d382: 4b06 ldr r3, [pc, #24] ; (801d39c ) - 801d384: f240 4265 movw r2, #1125 ; 0x465 - 801d388: 490b ldr r1, [pc, #44] ; (801d3b8 ) - 801d38a: 4806 ldr r0, [pc, #24] ; (801d3a4 ) - 801d38c: f004 fafc bl 8021988 - pcb->unacked != NULL || pcb->unsent != NULL); - } - - return ERR_OK; - 801d390: 2300 movs r3, #0 -} - 801d392: 4618 mov r0, r3 - 801d394: 3718 adds r7, #24 - 801d396: 46bd mov sp, r7 - 801d398: bd80 pop {r7, pc} - 801d39a: bf00 nop - 801d39c: 080257b8 .word 0x080257b8 - 801d3a0: 08025c38 .word 0x08025c38 - 801d3a4: 0802580c .word 0x0802580c - 801d3a8: 08025c90 .word 0x08025c90 - 801d3ac: 08025cb0 .word 0x08025cb0 - 801d3b0: 08025cec .word 0x08025cec - 801d3b4: 08025d04 .word 0x08025d04 - 801d3b8: 08025d30 .word 0x08025d30 - -0801d3bc : - * @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) -{ - 801d3bc: b5b0 push {r4, r5, r7, lr} - 801d3be: b08a sub sp, #40 ; 0x28 - 801d3c0: af00 add r7, sp, #0 - 801d3c2: 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); - 801d3c4: 687b ldr r3, [r7, #4] - 801d3c6: 2b00 cmp r3, #0 - 801d3c8: d106 bne.n 801d3d8 - 801d3ca: 4b8a ldr r3, [pc, #552] ; (801d5f4 ) - 801d3cc: f240 42e1 movw r2, #1249 ; 0x4e1 - 801d3d0: 4989 ldr r1, [pc, #548] ; (801d5f8 ) - 801d3d2: 488a ldr r0, [pc, #552] ; (801d5fc ) - 801d3d4: f004 fad8 bl 8021988 - /* pcb->state LISTEN not allowed here */ - LWIP_ASSERT("don't call tcp_output for listen-pcbs", - 801d3d8: 687b ldr r3, [r7, #4] - 801d3da: 7d1b ldrb r3, [r3, #20] - 801d3dc: 2b01 cmp r3, #1 - 801d3de: d106 bne.n 801d3ee - 801d3e0: 4b84 ldr r3, [pc, #528] ; (801d5f4 ) - 801d3e2: f240 42e3 movw r2, #1251 ; 0x4e3 - 801d3e6: 4986 ldr r1, [pc, #536] ; (801d600 ) - 801d3e8: 4884 ldr r0, [pc, #528] ; (801d5fc ) - 801d3ea: f004 facd bl 8021988 - - /* 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) { - 801d3ee: 4b85 ldr r3, [pc, #532] ; (801d604 ) - 801d3f0: 681b ldr r3, [r3, #0] - 801d3f2: 687a ldr r2, [r7, #4] - 801d3f4: 429a cmp r2, r3 - 801d3f6: d101 bne.n 801d3fc - return ERR_OK; - 801d3f8: 2300 movs r3, #0 - 801d3fa: e1d1 b.n 801d7a0 - } - - wnd = LWIP_MIN(pcb->snd_wnd, pcb->cwnd); - 801d3fc: 687b ldr r3, [r7, #4] - 801d3fe: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 - 801d402: 687b ldr r3, [r7, #4] - 801d404: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 - 801d408: 4293 cmp r3, r2 - 801d40a: bf28 it cs - 801d40c: 4613 movcs r3, r2 - 801d40e: b29b uxth r3, r3 - 801d410: 61bb str r3, [r7, #24] - - seg = pcb->unsent; - 801d412: 687b ldr r3, [r7, #4] - 801d414: 6edb ldr r3, [r3, #108] ; 0x6c - 801d416: 627b str r3, [r7, #36] ; 0x24 - - if (seg == NULL) { - 801d418: 6a7b ldr r3, [r7, #36] ; 0x24 - 801d41a: 2b00 cmp r3, #0 - 801d41c: d10b bne.n 801d436 - ", 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) { - 801d41e: 687b ldr r3, [r7, #4] - 801d420: 8b5b ldrh r3, [r3, #26] - 801d422: f003 0302 and.w r3, r3, #2 - 801d426: 2b00 cmp r3, #0 - 801d428: f000 81ad beq.w 801d786 - return tcp_send_empty_ack(pcb); - 801d42c: 6878 ldr r0, [r7, #4] - 801d42e: f000 fdd7 bl 801dfe0 - 801d432: 4603 mov r3, r0 - 801d434: e1b4 b.n 801d7a0 - 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); - 801d436: 6879 ldr r1, [r7, #4] - 801d438: 687b ldr r3, [r7, #4] - 801d43a: 3304 adds r3, #4 - 801d43c: 461a mov r2, r3 - 801d43e: 6878 ldr r0, [r7, #4] - 801d440: f7fe ffc4 bl 801c3cc - 801d444: 6178 str r0, [r7, #20] - if (netif == NULL) { - 801d446: 697b ldr r3, [r7, #20] - 801d448: 2b00 cmp r3, #0 - 801d44a: d102 bne.n 801d452 - return ERR_RTE; - 801d44c: f06f 0303 mvn.w r3, #3 - 801d450: e1a6 b.n 801d7a0 - } - - /* If we don't have a local IP address, we get one from netif */ - if (ip_addr_isany(&pcb->local_ip)) { - 801d452: 687b ldr r3, [r7, #4] - 801d454: 2b00 cmp r3, #0 - 801d456: d003 beq.n 801d460 - 801d458: 687b ldr r3, [r7, #4] - 801d45a: 681b ldr r3, [r3, #0] - 801d45c: 2b00 cmp r3, #0 - 801d45e: d111 bne.n 801d484 - const ip_addr_t *local_ip = ip_netif_get_local_ip(netif, &pcb->remote_ip); - 801d460: 697b ldr r3, [r7, #20] - 801d462: 2b00 cmp r3, #0 - 801d464: d002 beq.n 801d46c - 801d466: 697b ldr r3, [r7, #20] - 801d468: 3304 adds r3, #4 - 801d46a: e000 b.n 801d46e - 801d46c: 2300 movs r3, #0 - 801d46e: 613b str r3, [r7, #16] - if (local_ip == NULL) { - 801d470: 693b ldr r3, [r7, #16] - 801d472: 2b00 cmp r3, #0 - 801d474: d102 bne.n 801d47c - return ERR_RTE; - 801d476: f06f 0303 mvn.w r3, #3 - 801d47a: e191 b.n 801d7a0 - } - ip_addr_copy(pcb->local_ip, *local_ip); - 801d47c: 693b ldr r3, [r7, #16] - 801d47e: 681a ldr r2, [r3, #0] - 801d480: 687b ldr r3, [r7, #4] - 801d482: 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) { - 801d484: 6a7b ldr r3, [r7, #36] ; 0x24 - 801d486: 691b ldr r3, [r3, #16] - 801d488: 685b ldr r3, [r3, #4] - 801d48a: 4618 mov r0, r3 - 801d48c: f7f8 fd6d bl 8015f6a - 801d490: 4602 mov r2, r0 - 801d492: 687b ldr r3, [r7, #4] - 801d494: 6c5b ldr r3, [r3, #68] ; 0x44 - 801d496: 1ad3 subs r3, r2, r3 - 801d498: 6a7a ldr r2, [r7, #36] ; 0x24 - 801d49a: 8912 ldrh r2, [r2, #8] - 801d49c: 4413 add r3, r2 - 801d49e: 69ba ldr r2, [r7, #24] - 801d4a0: 429a cmp r2, r3 - 801d4a2: d227 bcs.n 801d4f4 - * 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) { - 801d4a4: 687b ldr r3, [r7, #4] - 801d4a6: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 - 801d4aa: 461a mov r2, r3 - 801d4ac: 69bb ldr r3, [r7, #24] - 801d4ae: 4293 cmp r3, r2 - 801d4b0: d114 bne.n 801d4dc - 801d4b2: 687b ldr r3, [r7, #4] - 801d4b4: 6f1b ldr r3, [r3, #112] ; 0x70 - 801d4b6: 2b00 cmp r3, #0 - 801d4b8: d110 bne.n 801d4dc - 801d4ba: 687b ldr r3, [r7, #4] - 801d4bc: f893 3099 ldrb.w r3, [r3, #153] ; 0x99 - 801d4c0: 2b00 cmp r3, #0 - 801d4c2: d10b bne.n 801d4dc - pcb->persist_cnt = 0; - 801d4c4: 687b ldr r3, [r7, #4] - 801d4c6: 2200 movs r2, #0 - 801d4c8: f883 2098 strb.w r2, [r3, #152] ; 0x98 - pcb->persist_backoff = 1; - 801d4cc: 687b ldr r3, [r7, #4] - 801d4ce: 2201 movs r2, #1 - 801d4d0: f883 2099 strb.w r2, [r3, #153] ; 0x99 - pcb->persist_probe = 0; - 801d4d4: 687b ldr r3, [r7, #4] - 801d4d6: 2200 movs r2, #0 - 801d4d8: 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) { - 801d4dc: 687b ldr r3, [r7, #4] - 801d4de: 8b5b ldrh r3, [r3, #26] - 801d4e0: f003 0302 and.w r3, r3, #2 - 801d4e4: 2b00 cmp r3, #0 - 801d4e6: f000 8150 beq.w 801d78a - return tcp_send_empty_ack(pcb); - 801d4ea: 6878 ldr r0, [r7, #4] - 801d4ec: f000 fd78 bl 801dfe0 - 801d4f0: 4603 mov r3, r0 - 801d4f2: e155 b.n 801d7a0 - } - goto output_done; - } - /* Stop persist timer, above conditions are not active */ - pcb->persist_backoff = 0; - 801d4f4: 687b ldr r3, [r7, #4] - 801d4f6: 2200 movs r2, #0 - 801d4f8: f883 2099 strb.w r2, [r3, #153] ; 0x99 - - /* useg should point to last segment on unacked queue */ - useg = pcb->unacked; - 801d4fc: 687b ldr r3, [r7, #4] - 801d4fe: 6f1b ldr r3, [r3, #112] ; 0x70 - 801d500: 623b str r3, [r7, #32] - if (useg != NULL) { - 801d502: 6a3b ldr r3, [r7, #32] - 801d504: 2b00 cmp r3, #0 - 801d506: f000 811f beq.w 801d748 - for (; useg->next != NULL; useg = useg->next); - 801d50a: e002 b.n 801d512 - 801d50c: 6a3b ldr r3, [r7, #32] - 801d50e: 681b ldr r3, [r3, #0] - 801d510: 623b str r3, [r7, #32] - 801d512: 6a3b ldr r3, [r7, #32] - 801d514: 681b ldr r3, [r3, #0] - 801d516: 2b00 cmp r3, #0 - 801d518: d1f8 bne.n 801d50c - } - /* data available and window allows it to be sent? */ - while (seg != NULL && - 801d51a: e115 b.n 801d748 - lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len <= wnd) { - LWIP_ASSERT("RST not expected here!", - 801d51c: 6a7b ldr r3, [r7, #36] ; 0x24 - 801d51e: 691b ldr r3, [r3, #16] - 801d520: 899b ldrh r3, [r3, #12] - 801d522: b29b uxth r3, r3 - 801d524: 4618 mov r0, r3 - 801d526: f7f8 fd0b bl 8015f40 - 801d52a: 4603 mov r3, r0 - 801d52c: b2db uxtb r3, r3 - 801d52e: f003 0304 and.w r3, r3, #4 - 801d532: 2b00 cmp r3, #0 - 801d534: d006 beq.n 801d544 - 801d536: 4b2f ldr r3, [pc, #188] ; (801d5f4 ) - 801d538: f240 5236 movw r2, #1334 ; 0x536 - 801d53c: 4932 ldr r1, [pc, #200] ; (801d608 ) - 801d53e: 482f ldr r0, [pc, #188] ; (801d5fc ) - 801d540: f004 fa22 bl 8021988 - * - 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) && - 801d544: 687b ldr r3, [r7, #4] - 801d546: 6f1b ldr r3, [r3, #112] ; 0x70 - 801d548: 2b00 cmp r3, #0 - 801d54a: d01f beq.n 801d58c - 801d54c: 687b ldr r3, [r7, #4] - 801d54e: 8b5b ldrh r3, [r3, #26] - 801d550: f003 0344 and.w r3, r3, #68 ; 0x44 - 801d554: 2b00 cmp r3, #0 - 801d556: d119 bne.n 801d58c - 801d558: 687b ldr r3, [r7, #4] - 801d55a: 6edb ldr r3, [r3, #108] ; 0x6c - 801d55c: 2b00 cmp r3, #0 - 801d55e: d00b beq.n 801d578 - 801d560: 687b ldr r3, [r7, #4] - 801d562: 6edb ldr r3, [r3, #108] ; 0x6c - 801d564: 681b ldr r3, [r3, #0] - 801d566: 2b00 cmp r3, #0 - 801d568: d110 bne.n 801d58c - 801d56a: 687b ldr r3, [r7, #4] - 801d56c: 6edb ldr r3, [r3, #108] ; 0x6c - 801d56e: 891a ldrh r2, [r3, #8] - 801d570: 687b ldr r3, [r7, #4] - 801d572: 8e5b ldrh r3, [r3, #50] ; 0x32 - 801d574: 429a cmp r2, r3 - 801d576: d209 bcs.n 801d58c - 801d578: 687b ldr r3, [r7, #4] - 801d57a: f8b3 3064 ldrh.w r3, [r3, #100] ; 0x64 - 801d57e: 2b00 cmp r3, #0 - 801d580: d004 beq.n 801d58c - 801d582: 687b ldr r3, [r7, #4] - 801d584: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 801d588: 2b0f cmp r3, #15 - 801d58a: d901 bls.n 801d590 - 801d58c: 2301 movs r3, #1 - 801d58e: e000 b.n 801d592 - 801d590: 2300 movs r3, #0 - 801d592: 2b00 cmp r3, #0 - 801d594: d106 bne.n 801d5a4 - ((pcb->flags & (TF_NAGLEMEMERR | TF_FIN)) == 0)) { - 801d596: 687b ldr r3, [r7, #4] - 801d598: 8b5b ldrh r3, [r3, #26] - 801d59a: f003 03a0 and.w r3, r3, #160 ; 0xa0 - if ((tcp_do_output_nagle(pcb) == 0) && - 801d59e: 2b00 cmp r3, #0 - 801d5a0: f000 80e7 beq.w 801d772 - pcb->lastack, - lwip_ntohl(seg->tcphdr->seqno), pcb->lastack, i)); - ++i; -#endif /* TCP_CWND_DEBUG */ - - if (pcb->state != SYN_SENT) { - 801d5a4: 687b ldr r3, [r7, #4] - 801d5a6: 7d1b ldrb r3, [r3, #20] - 801d5a8: 2b02 cmp r3, #2 - 801d5aa: d00d beq.n 801d5c8 - TCPH_SET_FLAG(seg->tcphdr, TCP_ACK); - 801d5ac: 6a7b ldr r3, [r7, #36] ; 0x24 - 801d5ae: 691b ldr r3, [r3, #16] - 801d5b0: 899b ldrh r3, [r3, #12] - 801d5b2: b29c uxth r4, r3 - 801d5b4: 2010 movs r0, #16 - 801d5b6: f7f8 fcc3 bl 8015f40 - 801d5ba: 4603 mov r3, r0 - 801d5bc: 461a mov r2, r3 - 801d5be: 6a7b ldr r3, [r7, #36] ; 0x24 - 801d5c0: 691b ldr r3, [r3, #16] - 801d5c2: 4322 orrs r2, r4 - 801d5c4: b292 uxth r2, r2 - 801d5c6: 819a strh r2, [r3, #12] - } - - err = tcp_output_segment(seg, pcb, netif); - 801d5c8: 697a ldr r2, [r7, #20] - 801d5ca: 6879 ldr r1, [r7, #4] - 801d5cc: 6a78 ldr r0, [r7, #36] ; 0x24 - 801d5ce: f000 f90b bl 801d7e8 - 801d5d2: 4603 mov r3, r0 - 801d5d4: 73fb strb r3, [r7, #15] - if (err != ERR_OK) { - 801d5d6: f997 300f ldrsb.w r3, [r7, #15] - 801d5da: 2b00 cmp r3, #0 - 801d5dc: d016 beq.n 801d60c - /* segment could not be sent, for whatever reason */ - tcp_set_flags(pcb, TF_NAGLEMEMERR); - 801d5de: 687b ldr r3, [r7, #4] - 801d5e0: 8b5b ldrh r3, [r3, #26] - 801d5e2: f043 0380 orr.w r3, r3, #128 ; 0x80 - 801d5e6: b29a uxth r2, r3 - 801d5e8: 687b ldr r3, [r7, #4] - 801d5ea: 835a strh r2, [r3, #26] - return err; - 801d5ec: f997 300f ldrsb.w r3, [r7, #15] - 801d5f0: e0d6 b.n 801d7a0 - 801d5f2: bf00 nop - 801d5f4: 080257b8 .word 0x080257b8 - 801d5f8: 08025d58 .word 0x08025d58 - 801d5fc: 0802580c .word 0x0802580c - 801d600: 08025d70 .word 0x08025d70 - 801d604: 2401a4d0 .word 0x2401a4d0 - 801d608: 08025d98 .word 0x08025d98 - } -#if TCP_OVERSIZE_DBGCHECK - seg->oversize_left = 0; - 801d60c: 6a7b ldr r3, [r7, #36] ; 0x24 - 801d60e: 2200 movs r2, #0 - 801d610: 815a strh r2, [r3, #10] -#endif /* TCP_OVERSIZE_DBGCHECK */ - pcb->unsent = seg->next; - 801d612: 6a7b ldr r3, [r7, #36] ; 0x24 - 801d614: 681a ldr r2, [r3, #0] - 801d616: 687b ldr r3, [r7, #4] - 801d618: 66da str r2, [r3, #108] ; 0x6c - if (pcb->state != SYN_SENT) { - 801d61a: 687b ldr r3, [r7, #4] - 801d61c: 7d1b ldrb r3, [r3, #20] - 801d61e: 2b02 cmp r3, #2 - 801d620: d006 beq.n 801d630 - tcp_clear_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW); - 801d622: 687b ldr r3, [r7, #4] - 801d624: 8b5b ldrh r3, [r3, #26] - 801d626: f023 0303 bic.w r3, r3, #3 - 801d62a: b29a uxth r2, r3 - 801d62c: 687b ldr r3, [r7, #4] - 801d62e: 835a strh r2, [r3, #26] - } - snd_nxt = lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg); - 801d630: 6a7b ldr r3, [r7, #36] ; 0x24 - 801d632: 691b ldr r3, [r3, #16] - 801d634: 685b ldr r3, [r3, #4] - 801d636: 4618 mov r0, r3 - 801d638: f7f8 fc97 bl 8015f6a - 801d63c: 4604 mov r4, r0 - 801d63e: 6a7b ldr r3, [r7, #36] ; 0x24 - 801d640: 891b ldrh r3, [r3, #8] - 801d642: 461d mov r5, r3 - 801d644: 6a7b ldr r3, [r7, #36] ; 0x24 - 801d646: 691b ldr r3, [r3, #16] - 801d648: 899b ldrh r3, [r3, #12] - 801d64a: b29b uxth r3, r3 - 801d64c: 4618 mov r0, r3 - 801d64e: f7f8 fc77 bl 8015f40 - 801d652: 4603 mov r3, r0 - 801d654: b2db uxtb r3, r3 - 801d656: f003 0303 and.w r3, r3, #3 - 801d65a: 2b00 cmp r3, #0 - 801d65c: d001 beq.n 801d662 - 801d65e: 2301 movs r3, #1 - 801d660: e000 b.n 801d664 - 801d662: 2300 movs r3, #0 - 801d664: 442b add r3, r5 - 801d666: 4423 add r3, r4 - 801d668: 60bb str r3, [r7, #8] - if (TCP_SEQ_LT(pcb->snd_nxt, snd_nxt)) { - 801d66a: 687b ldr r3, [r7, #4] - 801d66c: 6d1a ldr r2, [r3, #80] ; 0x50 - 801d66e: 68bb ldr r3, [r7, #8] - 801d670: 1ad3 subs r3, r2, r3 - 801d672: 2b00 cmp r3, #0 - 801d674: da02 bge.n 801d67c - pcb->snd_nxt = snd_nxt; - 801d676: 687b ldr r3, [r7, #4] - 801d678: 68ba ldr r2, [r7, #8] - 801d67a: 651a str r2, [r3, #80] ; 0x50 - } - /* put segment on unacknowledged list if length > 0 */ - if (TCP_TCPLEN(seg) > 0) { - 801d67c: 6a7b ldr r3, [r7, #36] ; 0x24 - 801d67e: 891b ldrh r3, [r3, #8] - 801d680: 461c mov r4, r3 - 801d682: 6a7b ldr r3, [r7, #36] ; 0x24 - 801d684: 691b ldr r3, [r3, #16] - 801d686: 899b ldrh r3, [r3, #12] - 801d688: b29b uxth r3, r3 - 801d68a: 4618 mov r0, r3 - 801d68c: f7f8 fc58 bl 8015f40 - 801d690: 4603 mov r3, r0 - 801d692: b2db uxtb r3, r3 - 801d694: f003 0303 and.w r3, r3, #3 - 801d698: 2b00 cmp r3, #0 - 801d69a: d001 beq.n 801d6a0 - 801d69c: 2301 movs r3, #1 - 801d69e: e000 b.n 801d6a2 - 801d6a0: 2300 movs r3, #0 - 801d6a2: 4423 add r3, r4 - 801d6a4: 2b00 cmp r3, #0 - 801d6a6: d049 beq.n 801d73c - seg->next = NULL; - 801d6a8: 6a7b ldr r3, [r7, #36] ; 0x24 - 801d6aa: 2200 movs r2, #0 - 801d6ac: 601a str r2, [r3, #0] - /* unacked list is empty? */ - if (pcb->unacked == NULL) { - 801d6ae: 687b ldr r3, [r7, #4] - 801d6b0: 6f1b ldr r3, [r3, #112] ; 0x70 - 801d6b2: 2b00 cmp r3, #0 - 801d6b4: d105 bne.n 801d6c2 - pcb->unacked = seg; - 801d6b6: 687b ldr r3, [r7, #4] - 801d6b8: 6a7a ldr r2, [r7, #36] ; 0x24 - 801d6ba: 671a str r2, [r3, #112] ; 0x70 - useg = seg; - 801d6bc: 6a7b ldr r3, [r7, #36] ; 0x24 - 801d6be: 623b str r3, [r7, #32] - 801d6c0: e03f b.n 801d742 - /* 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))) { - 801d6c2: 6a7b ldr r3, [r7, #36] ; 0x24 - 801d6c4: 691b ldr r3, [r3, #16] - 801d6c6: 685b ldr r3, [r3, #4] - 801d6c8: 4618 mov r0, r3 - 801d6ca: f7f8 fc4e bl 8015f6a - 801d6ce: 4604 mov r4, r0 - 801d6d0: 6a3b ldr r3, [r7, #32] - 801d6d2: 691b ldr r3, [r3, #16] - 801d6d4: 685b ldr r3, [r3, #4] - 801d6d6: 4618 mov r0, r3 - 801d6d8: f7f8 fc47 bl 8015f6a - 801d6dc: 4603 mov r3, r0 - 801d6de: 1ae3 subs r3, r4, r3 - 801d6e0: 2b00 cmp r3, #0 - 801d6e2: da24 bge.n 801d72e - /* add segment to before tail of unacked list, keeping the list sorted */ - struct tcp_seg **cur_seg = &(pcb->unacked); - 801d6e4: 687b ldr r3, [r7, #4] - 801d6e6: 3370 adds r3, #112 ; 0x70 - 801d6e8: 61fb str r3, [r7, #28] - while (*cur_seg && - 801d6ea: e002 b.n 801d6f2 - TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) { - cur_seg = &((*cur_seg)->next ); - 801d6ec: 69fb ldr r3, [r7, #28] - 801d6ee: 681b ldr r3, [r3, #0] - 801d6f0: 61fb str r3, [r7, #28] - while (*cur_seg && - 801d6f2: 69fb ldr r3, [r7, #28] - 801d6f4: 681b ldr r3, [r3, #0] - 801d6f6: 2b00 cmp r3, #0 - 801d6f8: d011 beq.n 801d71e - TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) { - 801d6fa: 69fb ldr r3, [r7, #28] - 801d6fc: 681b ldr r3, [r3, #0] - 801d6fe: 691b ldr r3, [r3, #16] - 801d700: 685b ldr r3, [r3, #4] - 801d702: 4618 mov r0, r3 - 801d704: f7f8 fc31 bl 8015f6a - 801d708: 4604 mov r4, r0 - 801d70a: 6a7b ldr r3, [r7, #36] ; 0x24 - 801d70c: 691b ldr r3, [r3, #16] - 801d70e: 685b ldr r3, [r3, #4] - 801d710: 4618 mov r0, r3 - 801d712: f7f8 fc2a bl 8015f6a - 801d716: 4603 mov r3, r0 - 801d718: 1ae3 subs r3, r4, r3 - while (*cur_seg && - 801d71a: 2b00 cmp r3, #0 - 801d71c: dbe6 blt.n 801d6ec - } - seg->next = (*cur_seg); - 801d71e: 69fb ldr r3, [r7, #28] - 801d720: 681a ldr r2, [r3, #0] - 801d722: 6a7b ldr r3, [r7, #36] ; 0x24 - 801d724: 601a str r2, [r3, #0] - (*cur_seg) = seg; - 801d726: 69fb ldr r3, [r7, #28] - 801d728: 6a7a ldr r2, [r7, #36] ; 0x24 - 801d72a: 601a str r2, [r3, #0] - 801d72c: e009 b.n 801d742 - } else { - /* add segment to tail of unacked list */ - useg->next = seg; - 801d72e: 6a3b ldr r3, [r7, #32] - 801d730: 6a7a ldr r2, [r7, #36] ; 0x24 - 801d732: 601a str r2, [r3, #0] - useg = useg->next; - 801d734: 6a3b ldr r3, [r7, #32] - 801d736: 681b ldr r3, [r3, #0] - 801d738: 623b str r3, [r7, #32] - 801d73a: e002 b.n 801d742 - } - } - /* do not queue empty segments on the unacked list */ - } else { - tcp_seg_free(seg); - 801d73c: 6a78 ldr r0, [r7, #36] ; 0x24 - 801d73e: f7fb feb0 bl 80194a2 - } - seg = pcb->unsent; - 801d742: 687b ldr r3, [r7, #4] - 801d744: 6edb ldr r3, [r3, #108] ; 0x6c - 801d746: 627b str r3, [r7, #36] ; 0x24 - while (seg != NULL && - 801d748: 6a7b ldr r3, [r7, #36] ; 0x24 - 801d74a: 2b00 cmp r3, #0 - 801d74c: d012 beq.n 801d774 - lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len <= wnd) { - 801d74e: 6a7b ldr r3, [r7, #36] ; 0x24 - 801d750: 691b ldr r3, [r3, #16] - 801d752: 685b ldr r3, [r3, #4] - 801d754: 4618 mov r0, r3 - 801d756: f7f8 fc08 bl 8015f6a - 801d75a: 4602 mov r2, r0 - 801d75c: 687b ldr r3, [r7, #4] - 801d75e: 6c5b ldr r3, [r3, #68] ; 0x44 - 801d760: 1ad3 subs r3, r2, r3 - 801d762: 6a7a ldr r2, [r7, #36] ; 0x24 - 801d764: 8912 ldrh r2, [r2, #8] - 801d766: 4413 add r3, r2 - while (seg != NULL && - 801d768: 69ba ldr r2, [r7, #24] - 801d76a: 429a cmp r2, r3 - 801d76c: f4bf aed6 bcs.w 801d51c - 801d770: e000 b.n 801d774 - break; - 801d772: bf00 nop - } -#if TCP_OVERSIZE - if (pcb->unsent == NULL) { - 801d774: 687b ldr r3, [r7, #4] - 801d776: 6edb ldr r3, [r3, #108] ; 0x6c - 801d778: 2b00 cmp r3, #0 - 801d77a: d108 bne.n 801d78e - /* last unsent has been removed, reset unsent_oversize */ - pcb->unsent_oversize = 0; - 801d77c: 687b ldr r3, [r7, #4] - 801d77e: 2200 movs r2, #0 - 801d780: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 - 801d784: e004 b.n 801d790 - goto output_done; - 801d786: bf00 nop - 801d788: e002 b.n 801d790 - goto output_done; - 801d78a: bf00 nop - 801d78c: e000 b.n 801d790 - } -#endif /* TCP_OVERSIZE */ - -output_done: - 801d78e: bf00 nop - tcp_clear_flags(pcb, TF_NAGLEMEMERR); - 801d790: 687b ldr r3, [r7, #4] - 801d792: 8b5b ldrh r3, [r3, #26] - 801d794: f023 0380 bic.w r3, r3, #128 ; 0x80 - 801d798: b29a uxth r2, r3 - 801d79a: 687b ldr r3, [r7, #4] - 801d79c: 835a strh r2, [r3, #26] - return ERR_OK; - 801d79e: 2300 movs r3, #0 -} - 801d7a0: 4618 mov r0, r3 - 801d7a2: 3728 adds r7, #40 ; 0x28 - 801d7a4: 46bd mov sp, r7 - 801d7a6: bdb0 pop {r4, r5, r7, pc} - -0801d7a8 : - * @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) -{ - 801d7a8: b580 push {r7, lr} - 801d7aa: b082 sub sp, #8 - 801d7ac: af00 add r7, sp, #0 - 801d7ae: 6078 str r0, [r7, #4] - LWIP_ASSERT("tcp_output_segment_busy: invalid seg", seg != NULL); - 801d7b0: 687b ldr r3, [r7, #4] - 801d7b2: 2b00 cmp r3, #0 - 801d7b4: d106 bne.n 801d7c4 - 801d7b6: 4b09 ldr r3, [pc, #36] ; (801d7dc ) - 801d7b8: f240 529a movw r2, #1434 ; 0x59a - 801d7bc: 4908 ldr r1, [pc, #32] ; (801d7e0 ) - 801d7be: 4809 ldr r0, [pc, #36] ; (801d7e4 ) - 801d7c0: f004 f8e2 bl 8021988 - - /* 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) { - 801d7c4: 687b ldr r3, [r7, #4] - 801d7c6: 685b ldr r3, [r3, #4] - 801d7c8: 7b9b ldrb r3, [r3, #14] - 801d7ca: 2b01 cmp r3, #1 - 801d7cc: d001 beq.n 801d7d2 - /* other reference found */ - return 1; - 801d7ce: 2301 movs r3, #1 - 801d7d0: e000 b.n 801d7d4 - } - /* no other references found */ - return 0; - 801d7d2: 2300 movs r3, #0 -} - 801d7d4: 4618 mov r0, r3 - 801d7d6: 3708 adds r7, #8 - 801d7d8: 46bd mov sp, r7 - 801d7da: bd80 pop {r7, pc} - 801d7dc: 080257b8 .word 0x080257b8 - 801d7e0: 08025db0 .word 0x08025db0 - 801d7e4: 0802580c .word 0x0802580c - -0801d7e8 : - * @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) -{ - 801d7e8: b5b0 push {r4, r5, r7, lr} - 801d7ea: b08c sub sp, #48 ; 0x30 - 801d7ec: af04 add r7, sp, #16 - 801d7ee: 60f8 str r0, [r7, #12] - 801d7f0: 60b9 str r1, [r7, #8] - 801d7f2: 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); - 801d7f4: 68fb ldr r3, [r7, #12] - 801d7f6: 2b00 cmp r3, #0 - 801d7f8: d106 bne.n 801d808 - 801d7fa: 4b64 ldr r3, [pc, #400] ; (801d98c ) - 801d7fc: f44f 62b7 mov.w r2, #1464 ; 0x5b8 - 801d800: 4963 ldr r1, [pc, #396] ; (801d990 ) - 801d802: 4864 ldr r0, [pc, #400] ; (801d994 ) - 801d804: f004 f8c0 bl 8021988 - LWIP_ASSERT("tcp_output_segment: invalid pcb", pcb != NULL); - 801d808: 68bb ldr r3, [r7, #8] - 801d80a: 2b00 cmp r3, #0 - 801d80c: d106 bne.n 801d81c - 801d80e: 4b5f ldr r3, [pc, #380] ; (801d98c ) - 801d810: f240 52b9 movw r2, #1465 ; 0x5b9 - 801d814: 4960 ldr r1, [pc, #384] ; (801d998 ) - 801d816: 485f ldr r0, [pc, #380] ; (801d994 ) - 801d818: f004 f8b6 bl 8021988 - LWIP_ASSERT("tcp_output_segment: invalid netif", netif != NULL); - 801d81c: 687b ldr r3, [r7, #4] - 801d81e: 2b00 cmp r3, #0 - 801d820: d106 bne.n 801d830 - 801d822: 4b5a ldr r3, [pc, #360] ; (801d98c ) - 801d824: f240 52ba movw r2, #1466 ; 0x5ba - 801d828: 495c ldr r1, [pc, #368] ; (801d99c ) - 801d82a: 485a ldr r0, [pc, #360] ; (801d994 ) - 801d82c: f004 f8ac bl 8021988 - - if (tcp_output_segment_busy(seg)) { - 801d830: 68f8 ldr r0, [r7, #12] - 801d832: f7ff ffb9 bl 801d7a8 - 801d836: 4603 mov r3, r0 - 801d838: 2b00 cmp r3, #0 - 801d83a: d001 beq.n 801d840 - /* 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; - 801d83c: 2300 movs r3, #0 - 801d83e: e0a1 b.n 801d984 - } - - /* The TCP header has already been constructed, but the ackno and - wnd fields remain. */ - seg->tcphdr->ackno = lwip_htonl(pcb->rcv_nxt); - 801d840: 68bb ldr r3, [r7, #8] - 801d842: 6a5a ldr r2, [r3, #36] ; 0x24 - 801d844: 68fb ldr r3, [r7, #12] - 801d846: 691c ldr r4, [r3, #16] - 801d848: 4610 mov r0, r2 - 801d84a: f7f8 fb8e bl 8015f6a - 801d84e: 4603 mov r3, r0 - 801d850: 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))); - 801d852: 68bb ldr r3, [r7, #8] - 801d854: 8d5a ldrh r2, [r3, #42] ; 0x2a - 801d856: 68fb ldr r3, [r7, #12] - 801d858: 691c ldr r4, [r3, #16] - 801d85a: 4610 mov r0, r2 - 801d85c: f7f8 fb70 bl 8015f40 - 801d860: 4603 mov r3, r0 - 801d862: 81e3 strh r3, [r4, #14] - } - - pcb->rcv_ann_right_edge = pcb->rcv_nxt + pcb->rcv_ann_wnd; - 801d864: 68bb ldr r3, [r7, #8] - 801d866: 6a5b ldr r3, [r3, #36] ; 0x24 - 801d868: 68ba ldr r2, [r7, #8] - 801d86a: 8d52 ldrh r2, [r2, #42] ; 0x2a - 801d86c: 441a add r2, r3 - 801d86e: 68bb ldr r3, [r7, #8] - 801d870: 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); - 801d872: 68fb ldr r3, [r7, #12] - 801d874: 691b ldr r3, [r3, #16] - 801d876: 3314 adds r3, #20 - 801d878: 61fb str r3, [r7, #28] - if (seg->flags & TF_SEG_OPTS_MSS) { - 801d87a: 68fb ldr r3, [r7, #12] - 801d87c: 7b1b ldrb r3, [r3, #12] - 801d87e: f003 0301 and.w r3, r3, #1 - 801d882: 2b00 cmp r3, #0 - 801d884: d015 beq.n 801d8b2 - u16_t mss; -#if TCP_CALCULATE_EFF_SEND_MSS - mss = tcp_eff_send_mss_netif(TCP_MSS, netif, &pcb->remote_ip); - 801d886: 68bb ldr r3, [r7, #8] - 801d888: 3304 adds r3, #4 - 801d88a: 461a mov r2, r3 - 801d88c: 6879 ldr r1, [r7, #4] - 801d88e: f240 50b4 movw r0, #1460 ; 0x5b4 - 801d892: f7fc f9cb bl 8019c2c - 801d896: 4603 mov r3, r0 - 801d898: 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); - 801d89a: 8b7b ldrh r3, [r7, #26] - 801d89c: f043 7301 orr.w r3, r3, #33816576 ; 0x2040000 - 801d8a0: 4618 mov r0, r3 - 801d8a2: f7f8 fb62 bl 8015f6a - 801d8a6: 4602 mov r2, r0 - 801d8a8: 69fb ldr r3, [r7, #28] - 801d8aa: 601a str r2, [r3, #0] - opts += 1; - 801d8ac: 69fb ldr r3, [r7, #28] - 801d8ae: 3304 adds r3, #4 - 801d8b0: 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) { - 801d8b2: 68bb ldr r3, [r7, #8] - 801d8b4: f9b3 3030 ldrsh.w r3, [r3, #48] ; 0x30 - 801d8b8: 2b00 cmp r3, #0 - 801d8ba: da02 bge.n 801d8c2 - pcb->rtime = 0; - 801d8bc: 68bb ldr r3, [r7, #8] - 801d8be: 2200 movs r2, #0 - 801d8c0: 861a strh r2, [r3, #48] ; 0x30 - } - - if (pcb->rttest == 0) { - 801d8c2: 68bb ldr r3, [r7, #8] - 801d8c4: 6b5b ldr r3, [r3, #52] ; 0x34 - 801d8c6: 2b00 cmp r3, #0 - 801d8c8: d10c bne.n 801d8e4 - pcb->rttest = tcp_ticks; - 801d8ca: 4b35 ldr r3, [pc, #212] ; (801d9a0 ) - 801d8cc: 681a ldr r2, [r3, #0] - 801d8ce: 68bb ldr r3, [r7, #8] - 801d8d0: 635a str r2, [r3, #52] ; 0x34 - pcb->rtseq = lwip_ntohl(seg->tcphdr->seqno); - 801d8d2: 68fb ldr r3, [r7, #12] - 801d8d4: 691b ldr r3, [r3, #16] - 801d8d6: 685b ldr r3, [r3, #4] - 801d8d8: 4618 mov r0, r3 - 801d8da: f7f8 fb46 bl 8015f6a - 801d8de: 4602 mov r2, r0 - 801d8e0: 68bb ldr r3, [r7, #8] - 801d8e2: 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); - 801d8e4: 68fb ldr r3, [r7, #12] - 801d8e6: 691a ldr r2, [r3, #16] - 801d8e8: 68fb ldr r3, [r7, #12] - 801d8ea: 685b ldr r3, [r3, #4] - 801d8ec: 685b ldr r3, [r3, #4] - 801d8ee: 1ad3 subs r3, r2, r3 - 801d8f0: 833b strh r3, [r7, #24] - if (len == 0) { - /** Exclude retransmitted segments from this count. */ - MIB2_STATS_INC(mib2.tcpoutsegs); - } - - seg->p->len -= len; - 801d8f2: 68fb ldr r3, [r7, #12] - 801d8f4: 685b ldr r3, [r3, #4] - 801d8f6: 8959 ldrh r1, [r3, #10] - 801d8f8: 68fb ldr r3, [r7, #12] - 801d8fa: 685b ldr r3, [r3, #4] - 801d8fc: 8b3a ldrh r2, [r7, #24] - 801d8fe: 1a8a subs r2, r1, r2 - 801d900: b292 uxth r2, r2 - 801d902: 815a strh r2, [r3, #10] - seg->p->tot_len -= len; - 801d904: 68fb ldr r3, [r7, #12] - 801d906: 685b ldr r3, [r3, #4] - 801d908: 8919 ldrh r1, [r3, #8] - 801d90a: 68fb ldr r3, [r7, #12] - 801d90c: 685b ldr r3, [r3, #4] - 801d90e: 8b3a ldrh r2, [r7, #24] - 801d910: 1a8a subs r2, r1, r2 - 801d912: b292 uxth r2, r2 - 801d914: 811a strh r2, [r3, #8] - - seg->p->payload = seg->tcphdr; - 801d916: 68fb ldr r3, [r7, #12] - 801d918: 685b ldr r3, [r3, #4] - 801d91a: 68fa ldr r2, [r7, #12] - 801d91c: 6912 ldr r2, [r2, #16] - 801d91e: 605a str r2, [r3, #4] - - seg->tcphdr->chksum = 0; - 801d920: 68fb ldr r3, [r7, #12] - 801d922: 691b ldr r3, [r3, #16] - 801d924: 2200 movs r2, #0 - 801d926: 741a strb r2, [r3, #16] - 801d928: 2200 movs r2, #0 - 801d92a: 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)); - 801d92c: 68fb ldr r3, [r7, #12] - 801d92e: 691a ldr r2, [r3, #16] - 801d930: 68fb ldr r3, [r7, #12] - 801d932: 7b1b ldrb r3, [r3, #12] - 801d934: f003 0301 and.w r3, r3, #1 - 801d938: 2b00 cmp r3, #0 - 801d93a: d001 beq.n 801d940 - 801d93c: 2318 movs r3, #24 - 801d93e: e000 b.n 801d942 - 801d940: 2314 movs r3, #20 - 801d942: 4413 add r3, r2 - 801d944: 69fa ldr r2, [r7, #28] - 801d946: 429a cmp r2, r3 - 801d948: d006 beq.n 801d958 - 801d94a: 4b10 ldr r3, [pc, #64] ; (801d98c ) - 801d94c: f240 621c movw r2, #1564 ; 0x61c - 801d950: 4914 ldr r1, [pc, #80] ; (801d9a4 ) - 801d952: 4810 ldr r0, [pc, #64] ; (801d994 ) - 801d954: f004 f818 bl 8021988 - } -#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, - 801d958: 68fb ldr r3, [r7, #12] - 801d95a: 6858 ldr r0, [r3, #4] - 801d95c: 68b9 ldr r1, [r7, #8] - 801d95e: 68bb ldr r3, [r7, #8] - 801d960: 1d1c adds r4, r3, #4 - 801d962: 68bb ldr r3, [r7, #8] - 801d964: 7add ldrb r5, [r3, #11] - 801d966: 68bb ldr r3, [r7, #8] - 801d968: 7a9b ldrb r3, [r3, #10] - 801d96a: 687a ldr r2, [r7, #4] - 801d96c: 9202 str r2, [sp, #8] - 801d96e: 2206 movs r2, #6 - 801d970: 9201 str r2, [sp, #4] - 801d972: 9300 str r3, [sp, #0] - 801d974: 462b mov r3, r5 - 801d976: 4622 mov r2, r4 - 801d978: f002 fc7a bl 8020270 - 801d97c: 4603 mov r3, r0 - 801d97e: 75fb strb r3, [r7, #23] - seg->chksum = SWAP_BYTES_IN_WORD(seg->chksum); - seg->chksum_swapped = 1; - } -#endif - - return err; - 801d980: f997 3017 ldrsb.w r3, [r7, #23] -} - 801d984: 4618 mov r0, r3 - 801d986: 3720 adds r7, #32 - 801d988: 46bd mov sp, r7 - 801d98a: bdb0 pop {r4, r5, r7, pc} - 801d98c: 080257b8 .word 0x080257b8 - 801d990: 08025dd8 .word 0x08025dd8 - 801d994: 0802580c .word 0x0802580c - 801d998: 08025df8 .word 0x08025df8 - 801d99c: 08025e18 .word 0x08025e18 - 801d9a0: 2401a480 .word 0x2401a480 - 801d9a4: 08025e3c .word 0x08025e3c - -0801d9a8 : - * - * @param pcb the tcp_pcb for which to re-enqueue all unacked segments - */ -err_t -tcp_rexmit_rto_prepare(struct tcp_pcb *pcb) -{ - 801d9a8: b5b0 push {r4, r5, r7, lr} - 801d9aa: b084 sub sp, #16 - 801d9ac: af00 add r7, sp, #0 - 801d9ae: 6078 str r0, [r7, #4] - struct tcp_seg *seg; - - LWIP_ASSERT("tcp_rexmit_rto_prepare: invalid pcb", pcb != NULL); - 801d9b0: 687b ldr r3, [r7, #4] - 801d9b2: 2b00 cmp r3, #0 - 801d9b4: d106 bne.n 801d9c4 - 801d9b6: 4b36 ldr r3, [pc, #216] ; (801da90 ) - 801d9b8: f240 6263 movw r2, #1635 ; 0x663 - 801d9bc: 4935 ldr r1, [pc, #212] ; (801da94 ) - 801d9be: 4836 ldr r0, [pc, #216] ; (801da98 ) - 801d9c0: f003 ffe2 bl 8021988 - - if (pcb->unacked == NULL) { - 801d9c4: 687b ldr r3, [r7, #4] - 801d9c6: 6f1b ldr r3, [r3, #112] ; 0x70 - 801d9c8: 2b00 cmp r3, #0 - 801d9ca: d102 bne.n 801d9d2 - return ERR_VAL; - 801d9cc: f06f 0305 mvn.w r3, #5 - 801d9d0: e059 b.n 801da86 - - /* 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) { - 801d9d2: 687b ldr r3, [r7, #4] - 801d9d4: 6f1b ldr r3, [r3, #112] ; 0x70 - 801d9d6: 60fb str r3, [r7, #12] - 801d9d8: e00b b.n 801d9f2 - if (tcp_output_segment_busy(seg)) { - 801d9da: 68f8 ldr r0, [r7, #12] - 801d9dc: f7ff fee4 bl 801d7a8 - 801d9e0: 4603 mov r3, r0 - 801d9e2: 2b00 cmp r3, #0 - 801d9e4: d002 beq.n 801d9ec - LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_rexmit_rto: segment busy\n")); - return ERR_VAL; - 801d9e6: f06f 0305 mvn.w r3, #5 - 801d9ea: e04c b.n 801da86 - for (seg = pcb->unacked; seg->next != NULL; seg = seg->next) { - 801d9ec: 68fb ldr r3, [r7, #12] - 801d9ee: 681b ldr r3, [r3, #0] - 801d9f0: 60fb str r3, [r7, #12] - 801d9f2: 68fb ldr r3, [r7, #12] - 801d9f4: 681b ldr r3, [r3, #0] - 801d9f6: 2b00 cmp r3, #0 - 801d9f8: d1ef bne.n 801d9da - } - } - if (tcp_output_segment_busy(seg)) { - 801d9fa: 68f8 ldr r0, [r7, #12] - 801d9fc: f7ff fed4 bl 801d7a8 - 801da00: 4603 mov r3, r0 - 801da02: 2b00 cmp r3, #0 - 801da04: d002 beq.n 801da0c - LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_rexmit_rto: segment busy\n")); - return ERR_VAL; - 801da06: f06f 0305 mvn.w r3, #5 - 801da0a: e03c b.n 801da86 - } - /* concatenate unsent queue after unacked queue */ - seg->next = pcb->unsent; - 801da0c: 687b ldr r3, [r7, #4] - 801da0e: 6eda ldr r2, [r3, #108] ; 0x6c - 801da10: 68fb ldr r3, [r7, #12] - 801da12: 601a str r2, [r3, #0] -#if TCP_OVERSIZE_DBGCHECK - /* if last unsent changed, we need to update unsent_oversize */ - if (pcb->unsent == NULL) { - 801da14: 687b ldr r3, [r7, #4] - 801da16: 6edb ldr r3, [r3, #108] ; 0x6c - 801da18: 2b00 cmp r3, #0 - 801da1a: d104 bne.n 801da26 - pcb->unsent_oversize = seg->oversize_left; - 801da1c: 68fb ldr r3, [r7, #12] - 801da1e: 895a ldrh r2, [r3, #10] - 801da20: 687b ldr r3, [r7, #4] - 801da22: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 - } -#endif /* TCP_OVERSIZE_DBGCHECK */ - /* unsent queue is the concatenated queue (of unacked, unsent) */ - pcb->unsent = pcb->unacked; - 801da26: 687b ldr r3, [r7, #4] - 801da28: 6f1a ldr r2, [r3, #112] ; 0x70 - 801da2a: 687b ldr r3, [r7, #4] - 801da2c: 66da str r2, [r3, #108] ; 0x6c - /* unacked queue is now empty */ - pcb->unacked = NULL; - 801da2e: 687b ldr r3, [r7, #4] - 801da30: 2200 movs r2, #0 - 801da32: 671a str r2, [r3, #112] ; 0x70 - - /* Mark RTO in-progress */ - tcp_set_flags(pcb, TF_RTO); - 801da34: 687b ldr r3, [r7, #4] - 801da36: 8b5b ldrh r3, [r3, #26] - 801da38: f443 6300 orr.w r3, r3, #2048 ; 0x800 - 801da3c: b29a uxth r2, r3 - 801da3e: 687b ldr r3, [r7, #4] - 801da40: 835a strh r2, [r3, #26] - /* Record the next byte following retransmit */ - pcb->rto_end = lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg); - 801da42: 68fb ldr r3, [r7, #12] - 801da44: 691b ldr r3, [r3, #16] - 801da46: 685b ldr r3, [r3, #4] - 801da48: 4618 mov r0, r3 - 801da4a: f7f8 fa8e bl 8015f6a - 801da4e: 4604 mov r4, r0 - 801da50: 68fb ldr r3, [r7, #12] - 801da52: 891b ldrh r3, [r3, #8] - 801da54: 461d mov r5, r3 - 801da56: 68fb ldr r3, [r7, #12] - 801da58: 691b ldr r3, [r3, #16] - 801da5a: 899b ldrh r3, [r3, #12] - 801da5c: b29b uxth r3, r3 - 801da5e: 4618 mov r0, r3 - 801da60: f7f8 fa6e bl 8015f40 - 801da64: 4603 mov r3, r0 - 801da66: b2db uxtb r3, r3 - 801da68: f003 0303 and.w r3, r3, #3 - 801da6c: 2b00 cmp r3, #0 - 801da6e: d001 beq.n 801da74 - 801da70: 2301 movs r3, #1 - 801da72: e000 b.n 801da76 - 801da74: 2300 movs r3, #0 - 801da76: 442b add r3, r5 - 801da78: 18e2 adds r2, r4, r3 - 801da7a: 687b ldr r3, [r7, #4] - 801da7c: 64da str r2, [r3, #76] ; 0x4c - /* Don't take any RTT measurements after retransmitting. */ - pcb->rttest = 0; - 801da7e: 687b ldr r3, [r7, #4] - 801da80: 2200 movs r2, #0 - 801da82: 635a str r2, [r3, #52] ; 0x34 - - return ERR_OK; - 801da84: 2300 movs r3, #0 -} - 801da86: 4618 mov r0, r3 - 801da88: 3710 adds r7, #16 - 801da8a: 46bd mov sp, r7 - 801da8c: bdb0 pop {r4, r5, r7, pc} - 801da8e: bf00 nop - 801da90: 080257b8 .word 0x080257b8 - 801da94: 08025e50 .word 0x08025e50 - 801da98: 0802580c .word 0x0802580c - -0801da9c : - * - * @param pcb the tcp_pcb for which to re-enqueue all unacked segments - */ -void -tcp_rexmit_rto_commit(struct tcp_pcb *pcb) -{ - 801da9c: b580 push {r7, lr} - 801da9e: b082 sub sp, #8 - 801daa0: af00 add r7, sp, #0 - 801daa2: 6078 str r0, [r7, #4] - LWIP_ASSERT("tcp_rexmit_rto_commit: invalid pcb", pcb != NULL); - 801daa4: 687b ldr r3, [r7, #4] - 801daa6: 2b00 cmp r3, #0 - 801daa8: d106 bne.n 801dab8 - 801daaa: 4b0d ldr r3, [pc, #52] ; (801dae0 ) - 801daac: f44f 62d3 mov.w r2, #1688 ; 0x698 - 801dab0: 490c ldr r1, [pc, #48] ; (801dae4 ) - 801dab2: 480d ldr r0, [pc, #52] ; (801dae8 ) - 801dab4: f003 ff68 bl 8021988 - - /* increment number of retransmissions */ - if (pcb->nrtx < 0xFF) { - 801dab8: 687b ldr r3, [r7, #4] - 801daba: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 - 801dabe: 2bff cmp r3, #255 ; 0xff - 801dac0: d007 beq.n 801dad2 - ++pcb->nrtx; - 801dac2: 687b ldr r3, [r7, #4] - 801dac4: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 - 801dac8: 3301 adds r3, #1 - 801daca: b2da uxtb r2, r3 - 801dacc: 687b ldr r3, [r7, #4] - 801dace: f883 2042 strb.w r2, [r3, #66] ; 0x42 - } - /* Do the actual retransmission */ - tcp_output(pcb); - 801dad2: 6878 ldr r0, [r7, #4] - 801dad4: f7ff fc72 bl 801d3bc -} - 801dad8: bf00 nop - 801dada: 3708 adds r7, #8 - 801dadc: 46bd mov sp, r7 - 801dade: bd80 pop {r7, pc} - 801dae0: 080257b8 .word 0x080257b8 - 801dae4: 08025e74 .word 0x08025e74 - 801dae8: 0802580c .word 0x0802580c - -0801daec : - * - * @param pcb the tcp_pcb for which to re-enqueue all unacked segments - */ -void -tcp_rexmit_rto(struct tcp_pcb *pcb) -{ - 801daec: b580 push {r7, lr} - 801daee: b082 sub sp, #8 - 801daf0: af00 add r7, sp, #0 - 801daf2: 6078 str r0, [r7, #4] - LWIP_ASSERT("tcp_rexmit_rto: invalid pcb", pcb != NULL); - 801daf4: 687b ldr r3, [r7, #4] - 801daf6: 2b00 cmp r3, #0 - 801daf8: d106 bne.n 801db08 - 801dafa: 4b0a ldr r3, [pc, #40] ; (801db24 ) - 801dafc: f240 62ad movw r2, #1709 ; 0x6ad - 801db00: 4909 ldr r1, [pc, #36] ; (801db28 ) - 801db02: 480a ldr r0, [pc, #40] ; (801db2c ) - 801db04: f003 ff40 bl 8021988 - - if (tcp_rexmit_rto_prepare(pcb) == ERR_OK) { - 801db08: 6878 ldr r0, [r7, #4] - 801db0a: f7ff ff4d bl 801d9a8 - 801db0e: 4603 mov r3, r0 - 801db10: 2b00 cmp r3, #0 - 801db12: d102 bne.n 801db1a - tcp_rexmit_rto_commit(pcb); - 801db14: 6878 ldr r0, [r7, #4] - 801db16: f7ff ffc1 bl 801da9c - } -} - 801db1a: bf00 nop - 801db1c: 3708 adds r7, #8 - 801db1e: 46bd mov sp, r7 - 801db20: bd80 pop {r7, pc} - 801db22: bf00 nop - 801db24: 080257b8 .word 0x080257b8 - 801db28: 08025e98 .word 0x08025e98 - 801db2c: 0802580c .word 0x0802580c - -0801db30 : - * - * @param pcb the tcp_pcb for which to retransmit the first unacked segment - */ -err_t -tcp_rexmit(struct tcp_pcb *pcb) -{ - 801db30: b590 push {r4, r7, lr} - 801db32: b085 sub sp, #20 - 801db34: af00 add r7, sp, #0 - 801db36: 6078 str r0, [r7, #4] - struct tcp_seg *seg; - struct tcp_seg **cur_seg; - - LWIP_ASSERT("tcp_rexmit: invalid pcb", pcb != NULL); - 801db38: 687b ldr r3, [r7, #4] - 801db3a: 2b00 cmp r3, #0 - 801db3c: d106 bne.n 801db4c - 801db3e: 4b2f ldr r3, [pc, #188] ; (801dbfc ) - 801db40: f240 62c1 movw r2, #1729 ; 0x6c1 - 801db44: 492e ldr r1, [pc, #184] ; (801dc00 ) - 801db46: 482f ldr r0, [pc, #188] ; (801dc04 ) - 801db48: f003 ff1e bl 8021988 - - if (pcb->unacked == NULL) { - 801db4c: 687b ldr r3, [r7, #4] - 801db4e: 6f1b ldr r3, [r3, #112] ; 0x70 - 801db50: 2b00 cmp r3, #0 - 801db52: d102 bne.n 801db5a - return ERR_VAL; - 801db54: f06f 0305 mvn.w r3, #5 - 801db58: e04c b.n 801dbf4 - } - - seg = pcb->unacked; - 801db5a: 687b ldr r3, [r7, #4] - 801db5c: 6f1b ldr r3, [r3, #112] ; 0x70 - 801db5e: 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)) { - 801db60: 68b8 ldr r0, [r7, #8] - 801db62: f7ff fe21 bl 801d7a8 - 801db66: 4603 mov r3, r0 - 801db68: 2b00 cmp r3, #0 - 801db6a: d002 beq.n 801db72 - LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_rexmit busy\n")); - return ERR_VAL; - 801db6c: f06f 0305 mvn.w r3, #5 - 801db70: e040 b.n 801dbf4 - } - - /* Move the first unacked segment to the unsent queue */ - /* Keep the unsent queue sorted. */ - pcb->unacked = seg->next; - 801db72: 68bb ldr r3, [r7, #8] - 801db74: 681a ldr r2, [r3, #0] - 801db76: 687b ldr r3, [r7, #4] - 801db78: 671a str r2, [r3, #112] ; 0x70 - - cur_seg = &(pcb->unsent); - 801db7a: 687b ldr r3, [r7, #4] - 801db7c: 336c adds r3, #108 ; 0x6c - 801db7e: 60fb str r3, [r7, #12] - while (*cur_seg && - 801db80: e002 b.n 801db88 - TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) { - cur_seg = &((*cur_seg)->next ); - 801db82: 68fb ldr r3, [r7, #12] - 801db84: 681b ldr r3, [r3, #0] - 801db86: 60fb str r3, [r7, #12] - while (*cur_seg && - 801db88: 68fb ldr r3, [r7, #12] - 801db8a: 681b ldr r3, [r3, #0] - 801db8c: 2b00 cmp r3, #0 - 801db8e: d011 beq.n 801dbb4 - TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) { - 801db90: 68fb ldr r3, [r7, #12] - 801db92: 681b ldr r3, [r3, #0] - 801db94: 691b ldr r3, [r3, #16] - 801db96: 685b ldr r3, [r3, #4] - 801db98: 4618 mov r0, r3 - 801db9a: f7f8 f9e6 bl 8015f6a - 801db9e: 4604 mov r4, r0 - 801dba0: 68bb ldr r3, [r7, #8] - 801dba2: 691b ldr r3, [r3, #16] - 801dba4: 685b ldr r3, [r3, #4] - 801dba6: 4618 mov r0, r3 - 801dba8: f7f8 f9df bl 8015f6a - 801dbac: 4603 mov r3, r0 - 801dbae: 1ae3 subs r3, r4, r3 - while (*cur_seg && - 801dbb0: 2b00 cmp r3, #0 - 801dbb2: dbe6 blt.n 801db82 - } - seg->next = *cur_seg; - 801dbb4: 68fb ldr r3, [r7, #12] - 801dbb6: 681a ldr r2, [r3, #0] - 801dbb8: 68bb ldr r3, [r7, #8] - 801dbba: 601a str r2, [r3, #0] - *cur_seg = seg; - 801dbbc: 68fb ldr r3, [r7, #12] - 801dbbe: 68ba ldr r2, [r7, #8] - 801dbc0: 601a str r2, [r3, #0] -#if TCP_OVERSIZE - if (seg->next == NULL) { - 801dbc2: 68bb ldr r3, [r7, #8] - 801dbc4: 681b ldr r3, [r3, #0] - 801dbc6: 2b00 cmp r3, #0 - 801dbc8: d103 bne.n 801dbd2 - /* the retransmitted segment is last in unsent, so reset unsent_oversize */ - pcb->unsent_oversize = 0; - 801dbca: 687b ldr r3, [r7, #4] - 801dbcc: 2200 movs r2, #0 - 801dbce: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 - } -#endif /* TCP_OVERSIZE */ - - if (pcb->nrtx < 0xFF) { - 801dbd2: 687b ldr r3, [r7, #4] - 801dbd4: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 - 801dbd8: 2bff cmp r3, #255 ; 0xff - 801dbda: d007 beq.n 801dbec - ++pcb->nrtx; - 801dbdc: 687b ldr r3, [r7, #4] - 801dbde: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 - 801dbe2: 3301 adds r3, #1 - 801dbe4: b2da uxtb r2, r3 - 801dbe6: 687b ldr r3, [r7, #4] - 801dbe8: f883 2042 strb.w r2, [r3, #66] ; 0x42 - } - - /* Don't take any rtt measurements after retransmitting. */ - pcb->rttest = 0; - 801dbec: 687b ldr r3, [r7, #4] - 801dbee: 2200 movs r2, #0 - 801dbf0: 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; - 801dbf2: 2300 movs r3, #0 -} - 801dbf4: 4618 mov r0, r3 - 801dbf6: 3714 adds r7, #20 - 801dbf8: 46bd mov sp, r7 - 801dbfa: bd90 pop {r4, r7, pc} - 801dbfc: 080257b8 .word 0x080257b8 - 801dc00: 08025eb4 .word 0x08025eb4 - 801dc04: 0802580c .word 0x0802580c - -0801dc08 : - * - * @param pcb the tcp_pcb for which to retransmit the first unacked segment - */ -void -tcp_rexmit_fast(struct tcp_pcb *pcb) -{ - 801dc08: b580 push {r7, lr} - 801dc0a: b082 sub sp, #8 - 801dc0c: af00 add r7, sp, #0 - 801dc0e: 6078 str r0, [r7, #4] - LWIP_ASSERT("tcp_rexmit_fast: invalid pcb", pcb != NULL); - 801dc10: 687b ldr r3, [r7, #4] - 801dc12: 2b00 cmp r3, #0 - 801dc14: d106 bne.n 801dc24 - 801dc16: 4b2a ldr r3, [pc, #168] ; (801dcc0 ) - 801dc18: f240 62f9 movw r2, #1785 ; 0x6f9 - 801dc1c: 4929 ldr r1, [pc, #164] ; (801dcc4 ) - 801dc1e: 482a ldr r0, [pc, #168] ; (801dcc8 ) - 801dc20: f003 feb2 bl 8021988 - - if (pcb->unacked != NULL && !(pcb->flags & TF_INFR)) { - 801dc24: 687b ldr r3, [r7, #4] - 801dc26: 6f1b ldr r3, [r3, #112] ; 0x70 - 801dc28: 2b00 cmp r3, #0 - 801dc2a: d045 beq.n 801dcb8 - 801dc2c: 687b ldr r3, [r7, #4] - 801dc2e: 8b5b ldrh r3, [r3, #26] - 801dc30: f003 0304 and.w r3, r3, #4 - 801dc34: 2b00 cmp r3, #0 - 801dc36: d13f bne.n 801dcb8 - 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) { - 801dc38: 6878 ldr r0, [r7, #4] - 801dc3a: f7ff ff79 bl 801db30 - 801dc3e: 4603 mov r3, r0 - 801dc40: 2b00 cmp r3, #0 - 801dc42: d139 bne.n 801dcb8 - /* 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; - 801dc44: 687b ldr r3, [r7, #4] - 801dc46: f8b3 2060 ldrh.w r2, [r3, #96] ; 0x60 - 801dc4a: 687b ldr r3, [r7, #4] - 801dc4c: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 - 801dc50: 4293 cmp r3, r2 - 801dc52: bf28 it cs - 801dc54: 4613 movcs r3, r2 - 801dc56: b29b uxth r3, r3 - 801dc58: 2b00 cmp r3, #0 - 801dc5a: da00 bge.n 801dc5e - 801dc5c: 3301 adds r3, #1 - 801dc5e: 105b asrs r3, r3, #1 - 801dc60: b29a uxth r2, r3 - 801dc62: 687b ldr r3, [r7, #4] - 801dc64: f8a3 204a strh.w r2, [r3, #74] ; 0x4a - - /* The minimum value for ssthresh should be 2 MSS */ - if (pcb->ssthresh < (2U * pcb->mss)) { - 801dc68: 687b ldr r3, [r7, #4] - 801dc6a: f8b3 304a ldrh.w r3, [r3, #74] ; 0x4a - 801dc6e: 461a mov r2, r3 - 801dc70: 687b ldr r3, [r7, #4] - 801dc72: 8e5b ldrh r3, [r3, #50] ; 0x32 - 801dc74: 005b lsls r3, r3, #1 - 801dc76: 429a cmp r2, r3 - 801dc78: d206 bcs.n 801dc88 - 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; - 801dc7a: 687b ldr r3, [r7, #4] - 801dc7c: 8e5b ldrh r3, [r3, #50] ; 0x32 - 801dc7e: 005b lsls r3, r3, #1 - 801dc80: b29a uxth r2, r3 - 801dc82: 687b ldr r3, [r7, #4] - 801dc84: f8a3 204a strh.w r2, [r3, #74] ; 0x4a - } - - pcb->cwnd = pcb->ssthresh + 3 * pcb->mss; - 801dc88: 687b ldr r3, [r7, #4] - 801dc8a: f8b3 204a ldrh.w r2, [r3, #74] ; 0x4a - 801dc8e: 687b ldr r3, [r7, #4] - 801dc90: 8e5b ldrh r3, [r3, #50] ; 0x32 - 801dc92: 4619 mov r1, r3 - 801dc94: 0049 lsls r1, r1, #1 - 801dc96: 440b add r3, r1 - 801dc98: b29b uxth r3, r3 - 801dc9a: 4413 add r3, r2 - 801dc9c: b29a uxth r2, r3 - 801dc9e: 687b ldr r3, [r7, #4] - 801dca0: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 - tcp_set_flags(pcb, TF_INFR); - 801dca4: 687b ldr r3, [r7, #4] - 801dca6: 8b5b ldrh r3, [r3, #26] - 801dca8: f043 0304 orr.w r3, r3, #4 - 801dcac: b29a uxth r2, r3 - 801dcae: 687b ldr r3, [r7, #4] - 801dcb0: 835a strh r2, [r3, #26] - - /* Reset the retransmission timer to prevent immediate rto retransmissions */ - pcb->rtime = 0; - 801dcb2: 687b ldr r3, [r7, #4] - 801dcb4: 2200 movs r2, #0 - 801dcb6: 861a strh r2, [r3, #48] ; 0x30 - } - } -} - 801dcb8: bf00 nop - 801dcba: 3708 adds r7, #8 - 801dcbc: 46bd mov sp, r7 - 801dcbe: bd80 pop {r7, pc} - 801dcc0: 080257b8 .word 0x080257b8 - 801dcc4: 08025ecc .word 0x08025ecc - 801dcc8: 0802580c .word 0x0802580c - -0801dccc : - -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) -{ - 801dccc: b580 push {r7, lr} - 801dcce: b086 sub sp, #24 - 801dcd0: af00 add r7, sp, #0 - 801dcd2: 60f8 str r0, [r7, #12] - 801dcd4: 607b str r3, [r7, #4] - 801dcd6: 460b mov r3, r1 - 801dcd8: 817b strh r3, [r7, #10] - 801dcda: 4613 mov r3, r2 - 801dcdc: 813b strh r3, [r7, #8] - struct tcp_hdr *tcphdr; - struct pbuf *p; - - p = pbuf_alloc(PBUF_IP, TCP_HLEN + optlen + datalen, PBUF_RAM); - 801dcde: 897a ldrh r2, [r7, #10] - 801dce0: 893b ldrh r3, [r7, #8] - 801dce2: 4413 add r3, r2 - 801dce4: b29b uxth r3, r3 - 801dce6: 3314 adds r3, #20 - 801dce8: b29b uxth r3, r3 - 801dcea: f44f 7220 mov.w r2, #640 ; 0x280 - 801dcee: 4619 mov r1, r3 - 801dcf0: 2022 movs r0, #34 ; 0x22 - 801dcf2: f7f9 fc19 bl 8017528 - 801dcf6: 6178 str r0, [r7, #20] - if (p != NULL) { - 801dcf8: 697b ldr r3, [r7, #20] - 801dcfa: 2b00 cmp r3, #0 - 801dcfc: d04d beq.n 801dd9a - LWIP_ASSERT("check that first pbuf can hold struct tcp_hdr", - 801dcfe: 897b ldrh r3, [r7, #10] - 801dd00: 3313 adds r3, #19 - 801dd02: 697a ldr r2, [r7, #20] - 801dd04: 8952 ldrh r2, [r2, #10] - 801dd06: 4293 cmp r3, r2 - 801dd08: db06 blt.n 801dd18 - 801dd0a: 4b26 ldr r3, [pc, #152] ; (801dda4 ) - 801dd0c: f240 7223 movw r2, #1827 ; 0x723 - 801dd10: 4925 ldr r1, [pc, #148] ; (801dda8 ) - 801dd12: 4826 ldr r0, [pc, #152] ; (801ddac ) - 801dd14: f003 fe38 bl 8021988 - (p->len >= TCP_HLEN + optlen)); - tcphdr = (struct tcp_hdr *)p->payload; - 801dd18: 697b ldr r3, [r7, #20] - 801dd1a: 685b ldr r3, [r3, #4] - 801dd1c: 613b str r3, [r7, #16] - tcphdr->src = lwip_htons(src_port); - 801dd1e: 8c3b ldrh r3, [r7, #32] - 801dd20: 4618 mov r0, r3 - 801dd22: f7f8 f90d bl 8015f40 - 801dd26: 4603 mov r3, r0 - 801dd28: 461a mov r2, r3 - 801dd2a: 693b ldr r3, [r7, #16] - 801dd2c: 801a strh r2, [r3, #0] - tcphdr->dest = lwip_htons(dst_port); - 801dd2e: 8cbb ldrh r3, [r7, #36] ; 0x24 - 801dd30: 4618 mov r0, r3 - 801dd32: f7f8 f905 bl 8015f40 - 801dd36: 4603 mov r3, r0 - 801dd38: 461a mov r2, r3 - 801dd3a: 693b ldr r3, [r7, #16] - 801dd3c: 805a strh r2, [r3, #2] - tcphdr->seqno = seqno_be; - 801dd3e: 693b ldr r3, [r7, #16] - 801dd40: 687a ldr r2, [r7, #4] - 801dd42: 605a str r2, [r3, #4] - tcphdr->ackno = lwip_htonl(ackno); - 801dd44: 68f8 ldr r0, [r7, #12] - 801dd46: f7f8 f910 bl 8015f6a - 801dd4a: 4602 mov r2, r0 - 801dd4c: 693b ldr r3, [r7, #16] - 801dd4e: 609a str r2, [r3, #8] - TCPH_HDRLEN_FLAGS_SET(tcphdr, (5 + optlen / 4), flags); - 801dd50: 897b ldrh r3, [r7, #10] - 801dd52: 089b lsrs r3, r3, #2 - 801dd54: b29b uxth r3, r3 - 801dd56: 3305 adds r3, #5 - 801dd58: b29b uxth r3, r3 - 801dd5a: 031b lsls r3, r3, #12 - 801dd5c: b29a uxth r2, r3 - 801dd5e: f897 3028 ldrb.w r3, [r7, #40] ; 0x28 - 801dd62: b29b uxth r3, r3 - 801dd64: 4313 orrs r3, r2 - 801dd66: b29b uxth r3, r3 - 801dd68: 4618 mov r0, r3 - 801dd6a: f7f8 f8e9 bl 8015f40 - 801dd6e: 4603 mov r3, r0 - 801dd70: 461a mov r2, r3 - 801dd72: 693b ldr r3, [r7, #16] - 801dd74: 819a strh r2, [r3, #12] - tcphdr->wnd = lwip_htons(wnd); - 801dd76: 8dbb ldrh r3, [r7, #44] ; 0x2c - 801dd78: 4618 mov r0, r3 - 801dd7a: f7f8 f8e1 bl 8015f40 - 801dd7e: 4603 mov r3, r0 - 801dd80: 461a mov r2, r3 - 801dd82: 693b ldr r3, [r7, #16] - 801dd84: 81da strh r2, [r3, #14] - tcphdr->chksum = 0; - 801dd86: 693b ldr r3, [r7, #16] - 801dd88: 2200 movs r2, #0 - 801dd8a: 741a strb r2, [r3, #16] - 801dd8c: 2200 movs r2, #0 - 801dd8e: 745a strb r2, [r3, #17] - tcphdr->urgp = 0; - 801dd90: 693b ldr r3, [r7, #16] - 801dd92: 2200 movs r2, #0 - 801dd94: 749a strb r2, [r3, #18] - 801dd96: 2200 movs r2, #0 - 801dd98: 74da strb r2, [r3, #19] - } - return p; - 801dd9a: 697b ldr r3, [r7, #20] -} - 801dd9c: 4618 mov r0, r3 - 801dd9e: 3718 adds r7, #24 - 801dda0: 46bd mov sp, r7 - 801dda2: bd80 pop {r7, pc} - 801dda4: 080257b8 .word 0x080257b8 - 801dda8: 08025eec .word 0x08025eec - 801ddac: 0802580c .word 0x0802580c - -0801ddb0 : - * @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 */) -{ - 801ddb0: b5b0 push {r4, r5, r7, lr} - 801ddb2: b08a sub sp, #40 ; 0x28 - 801ddb4: af04 add r7, sp, #16 - 801ddb6: 60f8 str r0, [r7, #12] - 801ddb8: 607b str r3, [r7, #4] - 801ddba: 460b mov r3, r1 - 801ddbc: 817b strh r3, [r7, #10] - 801ddbe: 4613 mov r3, r2 - 801ddc0: 813b strh r3, [r7, #8] - struct pbuf *p; - - LWIP_ASSERT("tcp_output_alloc_header: invalid pcb", pcb != NULL); - 801ddc2: 68fb ldr r3, [r7, #12] - 801ddc4: 2b00 cmp r3, #0 - 801ddc6: d106 bne.n 801ddd6 - 801ddc8: 4b15 ldr r3, [pc, #84] ; (801de20 ) - 801ddca: f240 7242 movw r2, #1858 ; 0x742 - 801ddce: 4915 ldr r1, [pc, #84] ; (801de24 ) - 801ddd0: 4815 ldr r0, [pc, #84] ; (801de28 ) - 801ddd2: f003 fdd9 bl 8021988 - - p = tcp_output_alloc_header_common(pcb->rcv_nxt, optlen, datalen, - 801ddd6: 68fb ldr r3, [r7, #12] - 801ddd8: 6a58 ldr r0, [r3, #36] ; 0x24 - 801ddda: 68fb ldr r3, [r7, #12] - 801dddc: 8adb ldrh r3, [r3, #22] - 801ddde: 68fa ldr r2, [r7, #12] - 801dde0: 8b12 ldrh r2, [r2, #24] - 801dde2: 68f9 ldr r1, [r7, #12] - 801dde4: 8d49 ldrh r1, [r1, #42] ; 0x2a - 801dde6: 893d ldrh r5, [r7, #8] - 801dde8: 897c ldrh r4, [r7, #10] - 801ddea: 9103 str r1, [sp, #12] - 801ddec: 2110 movs r1, #16 - 801ddee: 9102 str r1, [sp, #8] - 801ddf0: 9201 str r2, [sp, #4] - 801ddf2: 9300 str r3, [sp, #0] - 801ddf4: 687b ldr r3, [r7, #4] - 801ddf6: 462a mov r2, r5 - 801ddf8: 4621 mov r1, r4 - 801ddfa: f7ff ff67 bl 801dccc - 801ddfe: 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) { - 801de00: 697b ldr r3, [r7, #20] - 801de02: 2b00 cmp r3, #0 - 801de04: d006 beq.n 801de14 - /* If we're sending a packet, update the announced right window edge */ - pcb->rcv_ann_right_edge = pcb->rcv_nxt + pcb->rcv_ann_wnd; - 801de06: 68fb ldr r3, [r7, #12] - 801de08: 6a5b ldr r3, [r3, #36] ; 0x24 - 801de0a: 68fa ldr r2, [r7, #12] - 801de0c: 8d52 ldrh r2, [r2, #42] ; 0x2a - 801de0e: 441a add r2, r3 - 801de10: 68fb ldr r3, [r7, #12] - 801de12: 62da str r2, [r3, #44] ; 0x2c - } - return p; - 801de14: 697b ldr r3, [r7, #20] -} - 801de16: 4618 mov r0, r3 - 801de18: 3718 adds r7, #24 - 801de1a: 46bd mov sp, r7 - 801de1c: bdb0 pop {r4, r5, r7, pc} - 801de1e: bf00 nop - 801de20: 080257b8 .word 0x080257b8 - 801de24: 08025f1c .word 0x08025f1c - 801de28: 0802580c .word 0x0802580c - -0801de2c : - -/* 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) -{ - 801de2c: b580 push {r7, lr} - 801de2e: b088 sub sp, #32 - 801de30: af00 add r7, sp, #0 - 801de32: 60f8 str r0, [r7, #12] - 801de34: 60b9 str r1, [r7, #8] - 801de36: 4611 mov r1, r2 - 801de38: 461a mov r2, r3 - 801de3a: 460b mov r3, r1 - 801de3c: 71fb strb r3, [r7, #7] - 801de3e: 4613 mov r3, r2 - 801de40: 71bb strb r3, [r7, #6] - struct tcp_hdr *tcphdr; - u32_t *opts; - u16_t sacks_len = 0; - 801de42: 2300 movs r3, #0 - 801de44: 83fb strh r3, [r7, #30] - - LWIP_ASSERT("tcp_output_fill_options: invalid pbuf", p != NULL); - 801de46: 68bb ldr r3, [r7, #8] - 801de48: 2b00 cmp r3, #0 - 801de4a: d106 bne.n 801de5a - 801de4c: 4b12 ldr r3, [pc, #72] ; (801de98 ) - 801de4e: f240 7256 movw r2, #1878 ; 0x756 - 801de52: 4912 ldr r1, [pc, #72] ; (801de9c ) - 801de54: 4812 ldr r0, [pc, #72] ; (801dea0 ) - 801de56: f003 fd97 bl 8021988 - - tcphdr = (struct tcp_hdr *)p->payload; - 801de5a: 68bb ldr r3, [r7, #8] - 801de5c: 685b ldr r3, [r3, #4] - 801de5e: 61bb str r3, [r7, #24] - opts = (u32_t *)(void *)(tcphdr + 1); - 801de60: 69bb ldr r3, [r7, #24] - 801de62: 3314 adds r3, #20 - 801de64: 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)); - 801de66: 8bfb ldrh r3, [r7, #30] - 801de68: 009b lsls r3, r3, #2 - 801de6a: 461a mov r2, r3 - 801de6c: 79fb ldrb r3, [r7, #7] - 801de6e: 009b lsls r3, r3, #2 - 801de70: f003 0304 and.w r3, r3, #4 - 801de74: 4413 add r3, r2 - 801de76: 3314 adds r3, #20 - 801de78: 69ba ldr r2, [r7, #24] - 801de7a: 4413 add r3, r2 - 801de7c: 697a ldr r2, [r7, #20] - 801de7e: 429a cmp r2, r3 - 801de80: d006 beq.n 801de90 - 801de82: 4b05 ldr r3, [pc, #20] ; (801de98 ) - 801de84: f240 7275 movw r2, #1909 ; 0x775 - 801de88: 4906 ldr r1, [pc, #24] ; (801dea4 ) - 801de8a: 4805 ldr r0, [pc, #20] ; (801dea0 ) - 801de8c: f003 fd7c bl 8021988 - LWIP_UNUSED_ARG(optflags); /* for LWIP_NOASSERT */ - LWIP_UNUSED_ARG(opts); /* for LWIP_NOASSERT */ -} - 801de90: bf00 nop - 801de92: 3720 adds r7, #32 - 801de94: 46bd mov sp, r7 - 801de96: bd80 pop {r7, pc} - 801de98: 080257b8 .word 0x080257b8 - 801de9c: 08025f44 .word 0x08025f44 - 801dea0: 0802580c .word 0x0802580c - 801dea4: 08025e3c .word 0x08025e3c - -0801dea8 : - * 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) -{ - 801dea8: b580 push {r7, lr} - 801deaa: b08a sub sp, #40 ; 0x28 - 801deac: af04 add r7, sp, #16 - 801deae: 60f8 str r0, [r7, #12] - 801deb0: 60b9 str r1, [r7, #8] - 801deb2: 607a str r2, [r7, #4] - 801deb4: 603b str r3, [r7, #0] - err_t err; - struct netif *netif; - - LWIP_ASSERT("tcp_output_control_segment: invalid pbuf", p != NULL); - 801deb6: 68bb ldr r3, [r7, #8] - 801deb8: 2b00 cmp r3, #0 - 801deba: d106 bne.n 801deca - 801debc: 4b1c ldr r3, [pc, #112] ; (801df30 ) - 801debe: f240 7287 movw r2, #1927 ; 0x787 - 801dec2: 491c ldr r1, [pc, #112] ; (801df34 ) - 801dec4: 481c ldr r0, [pc, #112] ; (801df38 ) - 801dec6: f003 fd5f bl 8021988 - - netif = tcp_route(pcb, src, dst); - 801deca: 683a ldr r2, [r7, #0] - 801decc: 6879 ldr r1, [r7, #4] - 801dece: 68f8 ldr r0, [r7, #12] - 801ded0: f7fe fa7c bl 801c3cc - 801ded4: 6138 str r0, [r7, #16] - if (netif == NULL) { - 801ded6: 693b ldr r3, [r7, #16] - 801ded8: 2b00 cmp r3, #0 - 801deda: d102 bne.n 801dee2 - err = ERR_RTE; - 801dedc: 23fc movs r3, #252 ; 0xfc - 801dede: 75fb strb r3, [r7, #23] - 801dee0: e01c b.n 801df1c - 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) { - 801dee2: 68fb ldr r3, [r7, #12] - 801dee4: 2b00 cmp r3, #0 - 801dee6: d006 beq.n 801def6 - NETIF_SET_HINTS(netif, LWIP_CONST_CAST(struct netif_hint*, &(pcb->netif_hints))); - ttl = pcb->ttl; - 801dee8: 68fb ldr r3, [r7, #12] - 801deea: 7adb ldrb r3, [r3, #11] - 801deec: 75bb strb r3, [r7, #22] - tos = pcb->tos; - 801deee: 68fb ldr r3, [r7, #12] - 801def0: 7a9b ldrb r3, [r3, #10] - 801def2: 757b strb r3, [r7, #21] - 801def4: e003 b.n 801defe - } else { - /* Send output with hardcoded TTL/HL since we have no access to the pcb */ - ttl = TCP_TTL; - 801def6: 23ff movs r3, #255 ; 0xff - 801def8: 75bb strb r3, [r7, #22] - tos = 0; - 801defa: 2300 movs r3, #0 - 801defc: 757b strb r3, [r7, #21] - } - TCP_STATS_INC(tcp.xmit); - err = ip_output_if(p, src, dst, ttl, tos, IP_PROTO_TCP, netif); - 801defe: 7dba ldrb r2, [r7, #22] - 801df00: 693b ldr r3, [r7, #16] - 801df02: 9302 str r3, [sp, #8] - 801df04: 2306 movs r3, #6 - 801df06: 9301 str r3, [sp, #4] - 801df08: 7d7b ldrb r3, [r7, #21] - 801df0a: 9300 str r3, [sp, #0] - 801df0c: 4613 mov r3, r2 - 801df0e: 683a ldr r2, [r7, #0] - 801df10: 6879 ldr r1, [r7, #4] - 801df12: 68b8 ldr r0, [r7, #8] - 801df14: f002 f9ac bl 8020270 - 801df18: 4603 mov r3, r0 - 801df1a: 75fb strb r3, [r7, #23] - NETIF_RESET_HINTS(netif); - } - pbuf_free(p); - 801df1c: 68b8 ldr r0, [r7, #8] - 801df1e: f7f9 fdeb bl 8017af8 - return err; - 801df22: f997 3017 ldrsb.w r3, [r7, #23] -} - 801df26: 4618 mov r0, r3 - 801df28: 3718 adds r7, #24 - 801df2a: 46bd mov sp, r7 - 801df2c: bd80 pop {r7, pc} - 801df2e: bf00 nop - 801df30: 080257b8 .word 0x080257b8 - 801df34: 08025f6c .word 0x08025f6c - 801df38: 0802580c .word 0x0802580c - -0801df3c : - */ -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) -{ - 801df3c: b590 push {r4, r7, lr} - 801df3e: b08b sub sp, #44 ; 0x2c - 801df40: af04 add r7, sp, #16 - 801df42: 60f8 str r0, [r7, #12] - 801df44: 60b9 str r1, [r7, #8] - 801df46: 607a str r2, [r7, #4] - 801df48: 603b str r3, [r7, #0] - struct pbuf *p; - u16_t wnd; - u8_t optlen; - - LWIP_ASSERT("tcp_rst: invalid local_ip", local_ip != NULL); - 801df4a: 683b ldr r3, [r7, #0] - 801df4c: 2b00 cmp r3, #0 - 801df4e: d106 bne.n 801df5e - 801df50: 4b1f ldr r3, [pc, #124] ; (801dfd0 ) - 801df52: f240 72c4 movw r2, #1988 ; 0x7c4 - 801df56: 491f ldr r1, [pc, #124] ; (801dfd4 ) - 801df58: 481f ldr r0, [pc, #124] ; (801dfd8 ) - 801df5a: f003 fd15 bl 8021988 - LWIP_ASSERT("tcp_rst: invalid remote_ip", remote_ip != NULL); - 801df5e: 6abb ldr r3, [r7, #40] ; 0x28 - 801df60: 2b00 cmp r3, #0 - 801df62: d106 bne.n 801df72 - 801df64: 4b1a ldr r3, [pc, #104] ; (801dfd0 ) - 801df66: f240 72c5 movw r2, #1989 ; 0x7c5 - 801df6a: 491c ldr r1, [pc, #112] ; (801dfdc ) - 801df6c: 481a ldr r0, [pc, #104] ; (801dfd8 ) - 801df6e: f003 fd0b bl 8021988 - - optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb); - 801df72: 2300 movs r3, #0 - 801df74: 75fb strb r3, [r7, #23] - -#if LWIP_WND_SCALE - wnd = PP_HTONS(((TCP_WND >> TCP_RCV_SCALE) & 0xFFFF)); -#else - wnd = PP_HTONS(TCP_WND); - 801df76: f24d 0316 movw r3, #53270 ; 0xd016 - 801df7a: 82bb strh r3, [r7, #20] -#endif - - p = tcp_output_alloc_header_common(ackno, optlen, 0, lwip_htonl(seqno), local_port, - 801df7c: 7dfb ldrb r3, [r7, #23] - 801df7e: b29c uxth r4, r3 - 801df80: 68b8 ldr r0, [r7, #8] - 801df82: f7f7 fff2 bl 8015f6a - 801df86: 4602 mov r2, r0 - 801df88: 8abb ldrh r3, [r7, #20] - 801df8a: 9303 str r3, [sp, #12] - 801df8c: 2314 movs r3, #20 - 801df8e: 9302 str r3, [sp, #8] - 801df90: 8e3b ldrh r3, [r7, #48] ; 0x30 - 801df92: 9301 str r3, [sp, #4] - 801df94: 8dbb ldrh r3, [r7, #44] ; 0x2c - 801df96: 9300 str r3, [sp, #0] - 801df98: 4613 mov r3, r2 - 801df9a: 2200 movs r2, #0 - 801df9c: 4621 mov r1, r4 - 801df9e: 6878 ldr r0, [r7, #4] - 801dfa0: f7ff fe94 bl 801dccc - 801dfa4: 6138 str r0, [r7, #16] - remote_port, TCP_RST | TCP_ACK, wnd); - if (p == NULL) { - 801dfa6: 693b ldr r3, [r7, #16] - 801dfa8: 2b00 cmp r3, #0 - 801dfaa: d00c beq.n 801dfc6 - LWIP_DEBUGF(TCP_DEBUG, ("tcp_rst: could not allocate memory for pbuf\n")); - return; - } - tcp_output_fill_options(pcb, p, 0, optlen); - 801dfac: 7dfb ldrb r3, [r7, #23] - 801dfae: 2200 movs r2, #0 - 801dfb0: 6939 ldr r1, [r7, #16] - 801dfb2: 68f8 ldr r0, [r7, #12] - 801dfb4: f7ff ff3a bl 801de2c - - MIB2_STATS_INC(mib2.tcpoutrsts); - - tcp_output_control_segment(pcb, p, local_ip, remote_ip); - 801dfb8: 6abb ldr r3, [r7, #40] ; 0x28 - 801dfba: 683a ldr r2, [r7, #0] - 801dfbc: 6939 ldr r1, [r7, #16] - 801dfbe: 68f8 ldr r0, [r7, #12] - 801dfc0: f7ff ff72 bl 801dea8 - 801dfc4: e000 b.n 801dfc8 - return; - 801dfc6: bf00 nop - LWIP_DEBUGF(TCP_RST_DEBUG, ("tcp_rst: seqno %"U32_F" ackno %"U32_F".\n", seqno, ackno)); -} - 801dfc8: 371c adds r7, #28 - 801dfca: 46bd mov sp, r7 - 801dfcc: bd90 pop {r4, r7, pc} - 801dfce: bf00 nop - 801dfd0: 080257b8 .word 0x080257b8 - 801dfd4: 08025f98 .word 0x08025f98 - 801dfd8: 0802580c .word 0x0802580c - 801dfdc: 08025fb4 .word 0x08025fb4 - -0801dfe0 : - * - * @param pcb Protocol control block for the TCP connection to send the ACK - */ -err_t -tcp_send_empty_ack(struct tcp_pcb *pcb) -{ - 801dfe0: b590 push {r4, r7, lr} - 801dfe2: b087 sub sp, #28 - 801dfe4: af00 add r7, sp, #0 - 801dfe6: 6078 str r0, [r7, #4] - err_t err; - struct pbuf *p; - u8_t optlen, optflags = 0; - 801dfe8: 2300 movs r3, #0 - 801dfea: 75fb strb r3, [r7, #23] - u8_t num_sacks = 0; - 801dfec: 2300 movs r3, #0 - 801dfee: 75bb strb r3, [r7, #22] - - LWIP_ASSERT("tcp_send_empty_ack: invalid pcb", pcb != NULL); - 801dff0: 687b ldr r3, [r7, #4] - 801dff2: 2b00 cmp r3, #0 - 801dff4: d106 bne.n 801e004 - 801dff6: 4b28 ldr r3, [pc, #160] ; (801e098 ) - 801dff8: f240 72ea movw r2, #2026 ; 0x7ea - 801dffc: 4927 ldr r1, [pc, #156] ; (801e09c ) - 801dffe: 4828 ldr r0, [pc, #160] ; (801e0a0 ) - 801e000: f003 fcc2 bl 8021988 -#if LWIP_TCP_TIMESTAMPS - if (pcb->flags & TF_TIMESTAMP) { - optflags = TF_SEG_OPTS_TS; - } -#endif - optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb); - 801e004: 7dfb ldrb r3, [r7, #23] - 801e006: 009b lsls r3, r3, #2 - 801e008: b2db uxtb r3, r3 - 801e00a: f003 0304 and.w r3, r3, #4 - 801e00e: 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)); - 801e010: 7d7b ldrb r3, [r7, #21] - 801e012: b29c uxth r4, r3 - 801e014: 687b ldr r3, [r7, #4] - 801e016: 6d1b ldr r3, [r3, #80] ; 0x50 - 801e018: 4618 mov r0, r3 - 801e01a: f7f7 ffa6 bl 8015f6a - 801e01e: 4603 mov r3, r0 - 801e020: 2200 movs r2, #0 - 801e022: 4621 mov r1, r4 - 801e024: 6878 ldr r0, [r7, #4] - 801e026: f7ff fec3 bl 801ddb0 - 801e02a: 6138 str r0, [r7, #16] - if (p == NULL) { - 801e02c: 693b ldr r3, [r7, #16] - 801e02e: 2b00 cmp r3, #0 - 801e030: d109 bne.n 801e046 - /* let tcp_fasttmr retry sending this ACK */ - tcp_set_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW); - 801e032: 687b ldr r3, [r7, #4] - 801e034: 8b5b ldrh r3, [r3, #26] - 801e036: f043 0303 orr.w r3, r3, #3 - 801e03a: b29a uxth r2, r3 - 801e03c: 687b ldr r3, [r7, #4] - 801e03e: 835a strh r2, [r3, #26] - LWIP_DEBUGF(TCP_OUTPUT_DEBUG, ("tcp_output: (ACK) could not allocate pbuf\n")); - return ERR_BUF; - 801e040: f06f 0301 mvn.w r3, #1 - 801e044: e023 b.n 801e08e - } - tcp_output_fill_options(pcb, p, optflags, num_sacks); - 801e046: 7dbb ldrb r3, [r7, #22] - 801e048: 7dfa ldrb r2, [r7, #23] - 801e04a: 6939 ldr r1, [r7, #16] - 801e04c: 6878 ldr r0, [r7, #4] - 801e04e: f7ff feed bl 801de2c - 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); - 801e052: 687a ldr r2, [r7, #4] - 801e054: 687b ldr r3, [r7, #4] - 801e056: 3304 adds r3, #4 - 801e058: 6939 ldr r1, [r7, #16] - 801e05a: 6878 ldr r0, [r7, #4] - 801e05c: f7ff ff24 bl 801dea8 - 801e060: 4603 mov r3, r0 - 801e062: 73fb strb r3, [r7, #15] - if (err != ERR_OK) { - 801e064: f997 300f ldrsb.w r3, [r7, #15] - 801e068: 2b00 cmp r3, #0 - 801e06a: d007 beq.n 801e07c - /* let tcp_fasttmr retry sending this ACK */ - tcp_set_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW); - 801e06c: 687b ldr r3, [r7, #4] - 801e06e: 8b5b ldrh r3, [r3, #26] - 801e070: f043 0303 orr.w r3, r3, #3 - 801e074: b29a uxth r2, r3 - 801e076: 687b ldr r3, [r7, #4] - 801e078: 835a strh r2, [r3, #26] - 801e07a: e006 b.n 801e08a - } else { - /* remove ACK flags from the PCB, as we sent an empty ACK now */ - tcp_clear_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW); - 801e07c: 687b ldr r3, [r7, #4] - 801e07e: 8b5b ldrh r3, [r3, #26] - 801e080: f023 0303 bic.w r3, r3, #3 - 801e084: b29a uxth r2, r3 - 801e086: 687b ldr r3, [r7, #4] - 801e088: 835a strh r2, [r3, #26] - } - - return err; - 801e08a: f997 300f ldrsb.w r3, [r7, #15] -} - 801e08e: 4618 mov r0, r3 - 801e090: 371c adds r7, #28 - 801e092: 46bd mov sp, r7 - 801e094: bd90 pop {r4, r7, pc} - 801e096: bf00 nop - 801e098: 080257b8 .word 0x080257b8 - 801e09c: 08025fd0 .word 0x08025fd0 - 801e0a0: 0802580c .word 0x0802580c - -0801e0a4 : - * - * @param pcb the tcp_pcb for which to send a keepalive packet - */ -err_t -tcp_keepalive(struct tcp_pcb *pcb) -{ - 801e0a4: b590 push {r4, r7, lr} - 801e0a6: b085 sub sp, #20 - 801e0a8: af00 add r7, sp, #0 - 801e0aa: 6078 str r0, [r7, #4] - err_t err; - struct pbuf *p; - u8_t optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb); - 801e0ac: 2300 movs r3, #0 - 801e0ae: 72bb strb r3, [r7, #10] - - LWIP_ASSERT("tcp_keepalive: invalid pcb", pcb != NULL); - 801e0b0: 687b ldr r3, [r7, #4] - 801e0b2: 2b00 cmp r3, #0 - 801e0b4: d106 bne.n 801e0c4 - 801e0b6: 4b18 ldr r3, [pc, #96] ; (801e118 ) - 801e0b8: f640 0224 movw r2, #2084 ; 0x824 - 801e0bc: 4917 ldr r1, [pc, #92] ; (801e11c ) - 801e0be: 4818 ldr r0, [pc, #96] ; (801e120 ) - 801e0c0: f003 fc62 bl 8021988 - 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)); - 801e0c4: 7abb ldrb r3, [r7, #10] - 801e0c6: b29c uxth r4, r3 - 801e0c8: 687b ldr r3, [r7, #4] - 801e0ca: 6d1b ldr r3, [r3, #80] ; 0x50 - 801e0cc: 3b01 subs r3, #1 - 801e0ce: 4618 mov r0, r3 - 801e0d0: f7f7 ff4b bl 8015f6a - 801e0d4: 4603 mov r3, r0 - 801e0d6: 2200 movs r2, #0 - 801e0d8: 4621 mov r1, r4 - 801e0da: 6878 ldr r0, [r7, #4] - 801e0dc: f7ff fe68 bl 801ddb0 - 801e0e0: 60f8 str r0, [r7, #12] - if (p == NULL) { - 801e0e2: 68fb ldr r3, [r7, #12] - 801e0e4: 2b00 cmp r3, #0 - 801e0e6: d102 bne.n 801e0ee - LWIP_DEBUGF(TCP_DEBUG, - ("tcp_keepalive: could not allocate memory for pbuf\n")); - return ERR_MEM; - 801e0e8: f04f 33ff mov.w r3, #4294967295 - 801e0ec: e010 b.n 801e110 - } - tcp_output_fill_options(pcb, p, 0, optlen); - 801e0ee: 7abb ldrb r3, [r7, #10] - 801e0f0: 2200 movs r2, #0 - 801e0f2: 68f9 ldr r1, [r7, #12] - 801e0f4: 6878 ldr r0, [r7, #4] - 801e0f6: f7ff fe99 bl 801de2c - err = tcp_output_control_segment(pcb, p, &pcb->local_ip, &pcb->remote_ip); - 801e0fa: 687a ldr r2, [r7, #4] - 801e0fc: 687b ldr r3, [r7, #4] - 801e0fe: 3304 adds r3, #4 - 801e100: 68f9 ldr r1, [r7, #12] - 801e102: 6878 ldr r0, [r7, #4] - 801e104: f7ff fed0 bl 801dea8 - 801e108: 4603 mov r3, r0 - 801e10a: 72fb strb r3, [r7, #11] - - 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; - 801e10c: f997 300b ldrsb.w r3, [r7, #11] -} - 801e110: 4618 mov r0, r3 - 801e112: 3714 adds r7, #20 - 801e114: 46bd mov sp, r7 - 801e116: bd90 pop {r4, r7, pc} - 801e118: 080257b8 .word 0x080257b8 - 801e11c: 08025ff0 .word 0x08025ff0 - 801e120: 0802580c .word 0x0802580c - -0801e124 : - * - * @param pcb the tcp_pcb for which to send a zero-window probe packet - */ -err_t -tcp_zero_window_probe(struct tcp_pcb *pcb) -{ - 801e124: b590 push {r4, r7, lr} - 801e126: b08b sub sp, #44 ; 0x2c - 801e128: af00 add r7, sp, #0 - 801e12a: 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); - 801e12c: 2300 movs r3, #0 - 801e12e: 74fb strb r3, [r7, #19] - - LWIP_ASSERT("tcp_zero_window_probe: invalid pcb", pcb != NULL); - 801e130: 687b ldr r3, [r7, #4] - 801e132: 2b00 cmp r3, #0 - 801e134: d106 bne.n 801e144 - 801e136: 4b4d ldr r3, [pc, #308] ; (801e26c ) - 801e138: f640 024f movw r2, #2127 ; 0x84f - 801e13c: 494c ldr r1, [pc, #304] ; (801e270 ) - 801e13e: 484d ldr r0, [pc, #308] ; (801e274 ) - 801e140: f003 fc22 bl 8021988 - ("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; - 801e144: 687b ldr r3, [r7, #4] - 801e146: 6edb ldr r3, [r3, #108] ; 0x6c - 801e148: 627b str r3, [r7, #36] ; 0x24 - if (seg == NULL) { - 801e14a: 6a7b ldr r3, [r7, #36] ; 0x24 - 801e14c: 2b00 cmp r3, #0 - 801e14e: d101 bne.n 801e154 - /* Not expected, persist timer should be off when the send buffer is empty */ - return ERR_OK; - 801e150: 2300 movs r3, #0 - 801e152: e087 b.n 801e264 - - /* 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) { - 801e154: 687b ldr r3, [r7, #4] - 801e156: f893 309a ldrb.w r3, [r3, #154] ; 0x9a - 801e15a: 2bff cmp r3, #255 ; 0xff - 801e15c: d007 beq.n 801e16e - ++pcb->persist_probe; - 801e15e: 687b ldr r3, [r7, #4] - 801e160: f893 309a ldrb.w r3, [r3, #154] ; 0x9a - 801e164: 3301 adds r3, #1 - 801e166: b2da uxtb r2, r3 - 801e168: 687b ldr r3, [r7, #4] - 801e16a: f883 209a strb.w r2, [r3, #154] ; 0x9a - } - - is_fin = ((TCPH_FLAGS(seg->tcphdr) & TCP_FIN) != 0) && (seg->len == 0); - 801e16e: 6a7b ldr r3, [r7, #36] ; 0x24 - 801e170: 691b ldr r3, [r3, #16] - 801e172: 899b ldrh r3, [r3, #12] - 801e174: b29b uxth r3, r3 - 801e176: 4618 mov r0, r3 - 801e178: f7f7 fee2 bl 8015f40 - 801e17c: 4603 mov r3, r0 - 801e17e: b2db uxtb r3, r3 - 801e180: f003 0301 and.w r3, r3, #1 - 801e184: 2b00 cmp r3, #0 - 801e186: d005 beq.n 801e194 - 801e188: 6a7b ldr r3, [r7, #36] ; 0x24 - 801e18a: 891b ldrh r3, [r3, #8] - 801e18c: 2b00 cmp r3, #0 - 801e18e: d101 bne.n 801e194 - 801e190: 2301 movs r3, #1 - 801e192: e000 b.n 801e196 - 801e194: 2300 movs r3, #0 - 801e196: f887 3023 strb.w r3, [r7, #35] ; 0x23 - /* we want to send one seqno: either FIN or data (no options) */ - len = is_fin ? 0 : 1; - 801e19a: f897 3023 ldrb.w r3, [r7, #35] ; 0x23 - 801e19e: 2b00 cmp r3, #0 - 801e1a0: bf0c ite eq - 801e1a2: 2301 moveq r3, #1 - 801e1a4: 2300 movne r3, #0 - 801e1a6: b2db uxtb r3, r3 - 801e1a8: 843b strh r3, [r7, #32] - - p = tcp_output_alloc_header(pcb, optlen, len, seg->tcphdr->seqno); - 801e1aa: 7cfb ldrb r3, [r7, #19] - 801e1ac: b299 uxth r1, r3 - 801e1ae: 6a7b ldr r3, [r7, #36] ; 0x24 - 801e1b0: 691b ldr r3, [r3, #16] - 801e1b2: 685b ldr r3, [r3, #4] - 801e1b4: 8c3a ldrh r2, [r7, #32] - 801e1b6: 6878 ldr r0, [r7, #4] - 801e1b8: f7ff fdfa bl 801ddb0 - 801e1bc: 61f8 str r0, [r7, #28] - if (p == NULL) { - 801e1be: 69fb ldr r3, [r7, #28] - 801e1c0: 2b00 cmp r3, #0 - 801e1c2: d102 bne.n 801e1ca - LWIP_DEBUGF(TCP_DEBUG, ("tcp_zero_window_probe: no memory for pbuf\n")); - return ERR_MEM; - 801e1c4: f04f 33ff mov.w r3, #4294967295 - 801e1c8: e04c b.n 801e264 - } - tcphdr = (struct tcp_hdr *)p->payload; - 801e1ca: 69fb ldr r3, [r7, #28] - 801e1cc: 685b ldr r3, [r3, #4] - 801e1ce: 61bb str r3, [r7, #24] - - if (is_fin) { - 801e1d0: f897 3023 ldrb.w r3, [r7, #35] ; 0x23 - 801e1d4: 2b00 cmp r3, #0 - 801e1d6: d011 beq.n 801e1fc - /* FIN segment, no data */ - TCPH_FLAGS_SET(tcphdr, TCP_ACK | TCP_FIN); - 801e1d8: 69bb ldr r3, [r7, #24] - 801e1da: 899b ldrh r3, [r3, #12] - 801e1dc: b29b uxth r3, r3 - 801e1de: b21b sxth r3, r3 - 801e1e0: f423 537c bic.w r3, r3, #16128 ; 0x3f00 - 801e1e4: b21c sxth r4, r3 - 801e1e6: 2011 movs r0, #17 - 801e1e8: f7f7 feaa bl 8015f40 - 801e1ec: 4603 mov r3, r0 - 801e1ee: b21b sxth r3, r3 - 801e1f0: 4323 orrs r3, r4 - 801e1f2: b21b sxth r3, r3 - 801e1f4: b29a uxth r2, r3 - 801e1f6: 69bb ldr r3, [r7, #24] - 801e1f8: 819a strh r2, [r3, #12] - 801e1fa: e010 b.n 801e21e - } else { - /* Data segment, copy in one byte from the head of the unacked queue */ - char *d = ((char *)p->payload + TCP_HLEN); - 801e1fc: 69fb ldr r3, [r7, #28] - 801e1fe: 685b ldr r3, [r3, #4] - 801e200: 3314 adds r3, #20 - 801e202: 617b str r3, [r7, #20] - /* 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); - 801e204: 6a7b ldr r3, [r7, #36] ; 0x24 - 801e206: 6858 ldr r0, [r3, #4] - 801e208: 6a7b ldr r3, [r7, #36] ; 0x24 - 801e20a: 685b ldr r3, [r3, #4] - 801e20c: 891a ldrh r2, [r3, #8] - 801e20e: 6a7b ldr r3, [r7, #36] ; 0x24 - 801e210: 891b ldrh r3, [r3, #8] - 801e212: 1ad3 subs r3, r2, r3 - 801e214: b29b uxth r3, r3 - 801e216: 2201 movs r2, #1 - 801e218: 6979 ldr r1, [r7, #20] - 801e21a: f7f9 fe63 bl 8017ee4 - } - - /* The byte may be acknowledged without the window being opened. */ - snd_nxt = lwip_ntohl(seg->tcphdr->seqno) + 1; - 801e21e: 6a7b ldr r3, [r7, #36] ; 0x24 - 801e220: 691b ldr r3, [r3, #16] - 801e222: 685b ldr r3, [r3, #4] - 801e224: 4618 mov r0, r3 - 801e226: f7f7 fea0 bl 8015f6a - 801e22a: 4603 mov r3, r0 - 801e22c: 3301 adds r3, #1 - 801e22e: 60fb str r3, [r7, #12] - if (TCP_SEQ_LT(pcb->snd_nxt, snd_nxt)) { - 801e230: 687b ldr r3, [r7, #4] - 801e232: 6d1a ldr r2, [r3, #80] ; 0x50 - 801e234: 68fb ldr r3, [r7, #12] - 801e236: 1ad3 subs r3, r2, r3 - 801e238: 2b00 cmp r3, #0 - 801e23a: da02 bge.n 801e242 - pcb->snd_nxt = snd_nxt; - 801e23c: 687b ldr r3, [r7, #4] - 801e23e: 68fa ldr r2, [r7, #12] - 801e240: 651a str r2, [r3, #80] ; 0x50 - } - tcp_output_fill_options(pcb, p, 0, optlen); - 801e242: 7cfb ldrb r3, [r7, #19] - 801e244: 2200 movs r2, #0 - 801e246: 69f9 ldr r1, [r7, #28] - 801e248: 6878 ldr r0, [r7, #4] - 801e24a: f7ff fdef bl 801de2c - - err = tcp_output_control_segment(pcb, p, &pcb->local_ip, &pcb->remote_ip); - 801e24e: 687a ldr r2, [r7, #4] - 801e250: 687b ldr r3, [r7, #4] - 801e252: 3304 adds r3, #4 - 801e254: 69f9 ldr r1, [r7, #28] - 801e256: 6878 ldr r0, [r7, #4] - 801e258: f7ff fe26 bl 801dea8 - 801e25c: 4603 mov r3, r0 - 801e25e: 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; - 801e260: f997 300b ldrsb.w r3, [r7, #11] -} - 801e264: 4618 mov r0, r3 - 801e266: 372c adds r7, #44 ; 0x2c - 801e268: 46bd mov sp, r7 - 801e26a: bd90 pop {r4, r7, pc} - 801e26c: 080257b8 .word 0x080257b8 - 801e270: 0802600c .word 0x0802600c - 801e274: 0802580c .word 0x0802580c - -0801e278 : - * - * @param arg unused argument - */ -static void -tcpip_tcp_timer(void *arg) -{ - 801e278: b580 push {r7, lr} - 801e27a: b082 sub sp, #8 - 801e27c: af00 add r7, sp, #0 - 801e27e: 6078 str r0, [r7, #4] - LWIP_UNUSED_ARG(arg); - - /* call TCP timer handler */ - tcp_tmr(); - 801e280: f7f9 ff1e bl 80180c0 - /* timer still needed? */ - if (tcp_active_pcbs || tcp_tw_pcbs) { - 801e284: 4b0a ldr r3, [pc, #40] ; (801e2b0 ) - 801e286: 681b ldr r3, [r3, #0] - 801e288: 2b00 cmp r3, #0 - 801e28a: d103 bne.n 801e294 - 801e28c: 4b09 ldr r3, [pc, #36] ; (801e2b4 ) - 801e28e: 681b ldr r3, [r3, #0] - 801e290: 2b00 cmp r3, #0 - 801e292: d005 beq.n 801e2a0 - /* restart timer */ - sys_timeout(TCP_TMR_INTERVAL, tcpip_tcp_timer, NULL); - 801e294: 2200 movs r2, #0 - 801e296: 4908 ldr r1, [pc, #32] ; (801e2b8 ) - 801e298: 20fa movs r0, #250 ; 0xfa - 801e29a: f000 f8f3 bl 801e484 - 801e29e: e003 b.n 801e2a8 - } else { - /* disable timer */ - tcpip_tcp_timer_active = 0; - 801e2a0: 4b06 ldr r3, [pc, #24] ; (801e2bc ) - 801e2a2: 2200 movs r2, #0 - 801e2a4: 601a str r2, [r3, #0] - } -} - 801e2a6: bf00 nop - 801e2a8: bf00 nop - 801e2aa: 3708 adds r7, #8 - 801e2ac: 46bd mov sp, r7 - 801e2ae: bd80 pop {r7, pc} - 801e2b0: 2401a48c .word 0x2401a48c - 801e2b4: 2401a490 .word 0x2401a490 - 801e2b8: 0801e279 .word 0x0801e279 - 801e2bc: 2401a4dc .word 0x2401a4dc - -0801e2c0 : - * the reason is to have the TCP timer only running when - * there are active (or time-wait) PCBs. - */ -void -tcp_timer_needed(void) -{ - 801e2c0: b580 push {r7, lr} - 801e2c2: 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)) { - 801e2c4: 4b0a ldr r3, [pc, #40] ; (801e2f0 ) - 801e2c6: 681b ldr r3, [r3, #0] - 801e2c8: 2b00 cmp r3, #0 - 801e2ca: d10f bne.n 801e2ec - 801e2cc: 4b09 ldr r3, [pc, #36] ; (801e2f4 ) - 801e2ce: 681b ldr r3, [r3, #0] - 801e2d0: 2b00 cmp r3, #0 - 801e2d2: d103 bne.n 801e2dc - 801e2d4: 4b08 ldr r3, [pc, #32] ; (801e2f8 ) - 801e2d6: 681b ldr r3, [r3, #0] - 801e2d8: 2b00 cmp r3, #0 - 801e2da: d007 beq.n 801e2ec - /* enable and start timer */ - tcpip_tcp_timer_active = 1; - 801e2dc: 4b04 ldr r3, [pc, #16] ; (801e2f0 ) - 801e2de: 2201 movs r2, #1 - 801e2e0: 601a str r2, [r3, #0] - sys_timeout(TCP_TMR_INTERVAL, tcpip_tcp_timer, NULL); - 801e2e2: 2200 movs r2, #0 - 801e2e4: 4905 ldr r1, [pc, #20] ; (801e2fc ) - 801e2e6: 20fa movs r0, #250 ; 0xfa - 801e2e8: f000 f8cc bl 801e484 - } -} - 801e2ec: bf00 nop - 801e2ee: bd80 pop {r7, pc} - 801e2f0: 2401a4dc .word 0x2401a4dc - 801e2f4: 2401a48c .word 0x2401a48c - 801e2f8: 2401a490 .word 0x2401a490 - 801e2fc: 0801e279 .word 0x0801e279 - -0801e300 : -#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 -{ - 801e300: b580 push {r7, lr} - 801e302: b086 sub sp, #24 - 801e304: af00 add r7, sp, #0 - 801e306: 60f8 str r0, [r7, #12] - 801e308: 60b9 str r1, [r7, #8] - 801e30a: 607a str r2, [r7, #4] - struct sys_timeo *timeout, *t; - - timeout = (struct sys_timeo *)memp_malloc(MEMP_SYS_TIMEOUT); - 801e30c: 200a movs r0, #10 - 801e30e: f7f8 fbdf bl 8016ad0 - 801e312: 6138 str r0, [r7, #16] - if (timeout == NULL) { - 801e314: 693b ldr r3, [r7, #16] - 801e316: 2b00 cmp r3, #0 - 801e318: d109 bne.n 801e32e - LWIP_ASSERT("sys_timeout: timeout != NULL, pool MEMP_SYS_TIMEOUT is empty", timeout != NULL); - 801e31a: 693b ldr r3, [r7, #16] - 801e31c: 2b00 cmp r3, #0 - 801e31e: d151 bne.n 801e3c4 - 801e320: 4b2a ldr r3, [pc, #168] ; (801e3cc ) - 801e322: 22be movs r2, #190 ; 0xbe - 801e324: 492a ldr r1, [pc, #168] ; (801e3d0 ) - 801e326: 482b ldr r0, [pc, #172] ; (801e3d4 ) - 801e328: f003 fb2e bl 8021988 - return; - 801e32c: e04a b.n 801e3c4 - } - - timeout->next = NULL; - 801e32e: 693b ldr r3, [r7, #16] - 801e330: 2200 movs r2, #0 - 801e332: 601a str r2, [r3, #0] - timeout->h = handler; - 801e334: 693b ldr r3, [r7, #16] - 801e336: 68ba ldr r2, [r7, #8] - 801e338: 609a str r2, [r3, #8] - timeout->arg = arg; - 801e33a: 693b ldr r3, [r7, #16] - 801e33c: 687a ldr r2, [r7, #4] - 801e33e: 60da str r2, [r3, #12] - timeout->time = abs_time; - 801e340: 693b ldr r3, [r7, #16] - 801e342: 68fa ldr r2, [r7, #12] - 801e344: 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) { - 801e346: 4b24 ldr r3, [pc, #144] ; (801e3d8 ) - 801e348: 681b ldr r3, [r3, #0] - 801e34a: 2b00 cmp r3, #0 - 801e34c: d103 bne.n 801e356 - next_timeout = timeout; - 801e34e: 4a22 ldr r2, [pc, #136] ; (801e3d8 ) - 801e350: 693b ldr r3, [r7, #16] - 801e352: 6013 str r3, [r2, #0] - return; - 801e354: e037 b.n 801e3c6 - } - if (TIME_LESS_THAN(timeout->time, next_timeout->time)) { - 801e356: 693b ldr r3, [r7, #16] - 801e358: 685a ldr r2, [r3, #4] - 801e35a: 4b1f ldr r3, [pc, #124] ; (801e3d8 ) - 801e35c: 681b ldr r3, [r3, #0] - 801e35e: 685b ldr r3, [r3, #4] - 801e360: 1ad3 subs r3, r2, r3 - 801e362: 0fdb lsrs r3, r3, #31 - 801e364: f003 0301 and.w r3, r3, #1 - 801e368: b2db uxtb r3, r3 - 801e36a: 2b00 cmp r3, #0 - 801e36c: d007 beq.n 801e37e - timeout->next = next_timeout; - 801e36e: 4b1a ldr r3, [pc, #104] ; (801e3d8 ) - 801e370: 681a ldr r2, [r3, #0] - 801e372: 693b ldr r3, [r7, #16] - 801e374: 601a str r2, [r3, #0] - next_timeout = timeout; - 801e376: 4a18 ldr r2, [pc, #96] ; (801e3d8 ) - 801e378: 693b ldr r3, [r7, #16] - 801e37a: 6013 str r3, [r2, #0] - 801e37c: e023 b.n 801e3c6 - } else { - for (t = next_timeout; t != NULL; t = t->next) { - 801e37e: 4b16 ldr r3, [pc, #88] ; (801e3d8 ) - 801e380: 681b ldr r3, [r3, #0] - 801e382: 617b str r3, [r7, #20] - 801e384: e01a b.n 801e3bc - if ((t->next == NULL) || TIME_LESS_THAN(timeout->time, t->next->time)) { - 801e386: 697b ldr r3, [r7, #20] - 801e388: 681b ldr r3, [r3, #0] - 801e38a: 2b00 cmp r3, #0 - 801e38c: d00b beq.n 801e3a6 - 801e38e: 693b ldr r3, [r7, #16] - 801e390: 685a ldr r2, [r3, #4] - 801e392: 697b ldr r3, [r7, #20] - 801e394: 681b ldr r3, [r3, #0] - 801e396: 685b ldr r3, [r3, #4] - 801e398: 1ad3 subs r3, r2, r3 - 801e39a: 0fdb lsrs r3, r3, #31 - 801e39c: f003 0301 and.w r3, r3, #1 - 801e3a0: b2db uxtb r3, r3 - 801e3a2: 2b00 cmp r3, #0 - 801e3a4: d007 beq.n 801e3b6 - timeout->next = t->next; - 801e3a6: 697b ldr r3, [r7, #20] - 801e3a8: 681a ldr r2, [r3, #0] - 801e3aa: 693b ldr r3, [r7, #16] - 801e3ac: 601a str r2, [r3, #0] - t->next = timeout; - 801e3ae: 697b ldr r3, [r7, #20] - 801e3b0: 693a ldr r2, [r7, #16] - 801e3b2: 601a str r2, [r3, #0] - break; - 801e3b4: e007 b.n 801e3c6 - for (t = next_timeout; t != NULL; t = t->next) { - 801e3b6: 697b ldr r3, [r7, #20] - 801e3b8: 681b ldr r3, [r3, #0] - 801e3ba: 617b str r3, [r7, #20] - 801e3bc: 697b ldr r3, [r7, #20] - 801e3be: 2b00 cmp r3, #0 - 801e3c0: d1e1 bne.n 801e386 - 801e3c2: e000 b.n 801e3c6 - return; - 801e3c4: bf00 nop - } - } - } -} - 801e3c6: 3718 adds r7, #24 - 801e3c8: 46bd mov sp, r7 - 801e3ca: bd80 pop {r7, pc} - 801e3cc: 08026030 .word 0x08026030 - 801e3d0: 08026064 .word 0x08026064 - 801e3d4: 080260a4 .word 0x080260a4 - 801e3d8: 2401a4d4 .word 0x2401a4d4 - -0801e3dc : -#if !LWIP_TESTMODE -static -#endif -void -lwip_cyclic_timer(void *arg) -{ - 801e3dc: b580 push {r7, lr} - 801e3de: b086 sub sp, #24 - 801e3e0: af00 add r7, sp, #0 - 801e3e2: 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; - 801e3e4: 687b ldr r3, [r7, #4] - 801e3e6: 617b str r3, [r7, #20] - -#if LWIP_DEBUG_TIMERNAMES - LWIP_DEBUGF(TIMERS_DEBUG, ("tcpip: %s()\n", cyclic->handler_name)); -#endif - cyclic->handler(); - 801e3e8: 697b ldr r3, [r7, #20] - 801e3ea: 685b ldr r3, [r3, #4] - 801e3ec: 4798 blx r3 - - now = sys_now(); - 801e3ee: f7f1 fc97 bl 800fd20 - 801e3f2: 6138 str r0, [r7, #16] - next_timeout_time = (u32_t)(current_timeout_due_time + cyclic->interval_ms); /* overflow handled by TIME_LESS_THAN macro */ - 801e3f4: 697b ldr r3, [r7, #20] - 801e3f6: 681a ldr r2, [r3, #0] - 801e3f8: 4b0f ldr r3, [pc, #60] ; (801e438 ) - 801e3fa: 681b ldr r3, [r3, #0] - 801e3fc: 4413 add r3, r2 - 801e3fe: 60fb str r3, [r7, #12] - if (TIME_LESS_THAN(next_timeout_time, now)) { - 801e400: 68fa ldr r2, [r7, #12] - 801e402: 693b ldr r3, [r7, #16] - 801e404: 1ad3 subs r3, r2, r3 - 801e406: 0fdb lsrs r3, r3, #31 - 801e408: f003 0301 and.w r3, r3, #1 - 801e40c: b2db uxtb r3, r3 - 801e40e: 2b00 cmp r3, #0 - 801e410: d009 beq.n 801e426 - /* 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); - 801e412: 697b ldr r3, [r7, #20] - 801e414: 681a ldr r2, [r3, #0] - 801e416: 693b ldr r3, [r7, #16] - 801e418: 4413 add r3, r2 - 801e41a: 687a ldr r2, [r7, #4] - 801e41c: 4907 ldr r1, [pc, #28] ; (801e43c ) - 801e41e: 4618 mov r0, r3 - 801e420: f7ff ff6e bl 801e300 - 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 - } -} - 801e424: e004 b.n 801e430 - sys_timeout_abs(next_timeout_time, lwip_cyclic_timer, arg); - 801e426: 687a ldr r2, [r7, #4] - 801e428: 4904 ldr r1, [pc, #16] ; (801e43c ) - 801e42a: 68f8 ldr r0, [r7, #12] - 801e42c: f7ff ff68 bl 801e300 -} - 801e430: bf00 nop - 801e432: 3718 adds r7, #24 - 801e434: 46bd mov sp, r7 - 801e436: bd80 pop {r7, pc} - 801e438: 2401a4d8 .word 0x2401a4d8 - 801e43c: 0801e3dd .word 0x0801e3dd - -0801e440 : - -/** Initialize this module */ -void sys_timeouts_init(void) -{ - 801e440: b580 push {r7, lr} - 801e442: b082 sub sp, #8 - 801e444: 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++) { - 801e446: 2301 movs r3, #1 - 801e448: 607b str r3, [r7, #4] - 801e44a: e00e b.n 801e46a - /* 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])); - 801e44c: 4a0b ldr r2, [pc, #44] ; (801e47c ) - 801e44e: 687b ldr r3, [r7, #4] - 801e450: f852 0033 ldr.w r0, [r2, r3, lsl #3] - 801e454: 687b ldr r3, [r7, #4] - 801e456: 00db lsls r3, r3, #3 - 801e458: 4a08 ldr r2, [pc, #32] ; (801e47c ) - 801e45a: 4413 add r3, r2 - 801e45c: 461a mov r2, r3 - 801e45e: 4908 ldr r1, [pc, #32] ; (801e480 ) - 801e460: f000 f810 bl 801e484 - for (i = (LWIP_TCP ? 1 : 0); i < LWIP_ARRAYSIZE(lwip_cyclic_timers); i++) { - 801e464: 687b ldr r3, [r7, #4] - 801e466: 3301 adds r3, #1 - 801e468: 607b str r3, [r7, #4] - 801e46a: 687b ldr r3, [r7, #4] - 801e46c: 2b02 cmp r3, #2 - 801e46e: d9ed bls.n 801e44c - } -} - 801e470: bf00 nop - 801e472: bf00 nop - 801e474: 3708 adds r7, #8 - 801e476: 46bd mov sp, r7 - 801e478: bd80 pop {r7, pc} - 801e47a: bf00 nop - 801e47c: 08026cd4 .word 0x08026cd4 - 801e480: 0801e3dd .word 0x0801e3dd - -0801e484 : -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 */ -{ - 801e484: b580 push {r7, lr} - 801e486: b086 sub sp, #24 - 801e488: af00 add r7, sp, #0 - 801e48a: 60f8 str r0, [r7, #12] - 801e48c: 60b9 str r1, [r7, #8] - 801e48e: 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)); - 801e490: 68fb ldr r3, [r7, #12] - 801e492: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 - 801e496: d306 bcc.n 801e4a6 - 801e498: 4b0a ldr r3, [pc, #40] ; (801e4c4 ) - 801e49a: f240 1229 movw r2, #297 ; 0x129 - 801e49e: 490a ldr r1, [pc, #40] ; (801e4c8 ) - 801e4a0: 480a ldr r0, [pc, #40] ; (801e4cc ) - 801e4a2: f003 fa71 bl 8021988 - - next_timeout_time = (u32_t)(sys_now() + msecs); /* overflow handled by TIME_LESS_THAN macro */ - 801e4a6: f7f1 fc3b bl 800fd20 - 801e4aa: 4602 mov r2, r0 - 801e4ac: 68fb ldr r3, [r7, #12] - 801e4ae: 4413 add r3, r2 - 801e4b0: 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); - 801e4b2: 687a ldr r2, [r7, #4] - 801e4b4: 68b9 ldr r1, [r7, #8] - 801e4b6: 6978 ldr r0, [r7, #20] - 801e4b8: f7ff ff22 bl 801e300 -#endif -} - 801e4bc: bf00 nop - 801e4be: 3718 adds r7, #24 - 801e4c0: 46bd mov sp, r7 - 801e4c2: bd80 pop {r7, pc} - 801e4c4: 08026030 .word 0x08026030 - 801e4c8: 080260cc .word 0x080260cc - 801e4cc: 080260a4 .word 0x080260a4 - -0801e4d0 : - * - * Must be called periodically from your main loop. - */ -void -sys_check_timeouts(void) -{ - 801e4d0: b580 push {r7, lr} - 801e4d2: b084 sub sp, #16 - 801e4d4: 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(); - 801e4d6: f7f1 fc23 bl 800fd20 - 801e4da: 60f8 str r0, [r7, #12] - sys_timeout_handler handler; - void *arg; - - PBUF_CHECK_FREE_OOSEQ(); - - tmptimeout = next_timeout; - 801e4dc: 4b17 ldr r3, [pc, #92] ; (801e53c ) - 801e4de: 681b ldr r3, [r3, #0] - 801e4e0: 60bb str r3, [r7, #8] - if (tmptimeout == NULL) { - 801e4e2: 68bb ldr r3, [r7, #8] - 801e4e4: 2b00 cmp r3, #0 - 801e4e6: d022 beq.n 801e52e - return; - } - - if (TIME_LESS_THAN(now, tmptimeout->time)) { - 801e4e8: 68bb ldr r3, [r7, #8] - 801e4ea: 685b ldr r3, [r3, #4] - 801e4ec: 68fa ldr r2, [r7, #12] - 801e4ee: 1ad3 subs r3, r2, r3 - 801e4f0: 0fdb lsrs r3, r3, #31 - 801e4f2: f003 0301 and.w r3, r3, #1 - 801e4f6: b2db uxtb r3, r3 - 801e4f8: 2b00 cmp r3, #0 - 801e4fa: d11a bne.n 801e532 - return; - } - - /* Timeout has expired */ - next_timeout = tmptimeout->next; - 801e4fc: 68bb ldr r3, [r7, #8] - 801e4fe: 681b ldr r3, [r3, #0] - 801e500: 4a0e ldr r2, [pc, #56] ; (801e53c ) - 801e502: 6013 str r3, [r2, #0] - handler = tmptimeout->h; - 801e504: 68bb ldr r3, [r7, #8] - 801e506: 689b ldr r3, [r3, #8] - 801e508: 607b str r3, [r7, #4] - arg = tmptimeout->arg; - 801e50a: 68bb ldr r3, [r7, #8] - 801e50c: 68db ldr r3, [r3, #12] - 801e50e: 603b str r3, [r7, #0] - current_timeout_due_time = tmptimeout->time; - 801e510: 68bb ldr r3, [r7, #8] - 801e512: 685b ldr r3, [r3, #4] - 801e514: 4a0a ldr r2, [pc, #40] ; (801e540 ) - 801e516: 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); - 801e518: 68b9 ldr r1, [r7, #8] - 801e51a: 200a movs r0, #10 - 801e51c: f7f8 fb4e bl 8016bbc - if (handler != NULL) { - 801e520: 687b ldr r3, [r7, #4] - 801e522: 2b00 cmp r3, #0 - 801e524: d0da beq.n 801e4dc - handler(arg); - 801e526: 687b ldr r3, [r7, #4] - 801e528: 6838 ldr r0, [r7, #0] - 801e52a: 4798 blx r3 - do { - 801e52c: e7d6 b.n 801e4dc - return; - 801e52e: bf00 nop - 801e530: e000 b.n 801e534 - return; - 801e532: bf00 nop - } - LWIP_TCPIP_THREAD_ALIVE(); - - /* Repeat until all expired timers have been called */ - } while (1); -} - 801e534: 3710 adds r7, #16 - 801e536: 46bd mov sp, r7 - 801e538: bd80 pop {r7, pc} - 801e53a: bf00 nop - 801e53c: 2401a4d4 .word 0x2401a4d4 - 801e540: 2401a4d8 .word 0x2401a4d8 - -0801e544 : -/** Return the time left before the next timeout is due. If no timeouts are - * enqueued, returns 0xffffffff - */ -u32_t -sys_timeouts_sleeptime(void) -{ - 801e544: b580 push {r7, lr} - 801e546: b082 sub sp, #8 - 801e548: af00 add r7, sp, #0 - u32_t now; - - LWIP_ASSERT_CORE_LOCKED(); - - if (next_timeout == NULL) { - 801e54a: 4b16 ldr r3, [pc, #88] ; (801e5a4 ) - 801e54c: 681b ldr r3, [r3, #0] - 801e54e: 2b00 cmp r3, #0 - 801e550: d102 bne.n 801e558 - return SYS_TIMEOUTS_SLEEPTIME_INFINITE; - 801e552: f04f 33ff mov.w r3, #4294967295 - 801e556: e020 b.n 801e59a - } - now = sys_now(); - 801e558: f7f1 fbe2 bl 800fd20 - 801e55c: 6078 str r0, [r7, #4] - if (TIME_LESS_THAN(next_timeout->time, now)) { - 801e55e: 4b11 ldr r3, [pc, #68] ; (801e5a4 ) - 801e560: 681b ldr r3, [r3, #0] - 801e562: 685a ldr r2, [r3, #4] - 801e564: 687b ldr r3, [r7, #4] - 801e566: 1ad3 subs r3, r2, r3 - 801e568: 0fdb lsrs r3, r3, #31 - 801e56a: f003 0301 and.w r3, r3, #1 - 801e56e: b2db uxtb r3, r3 - 801e570: 2b00 cmp r3, #0 - 801e572: d001 beq.n 801e578 - return 0; - 801e574: 2300 movs r3, #0 - 801e576: e010 b.n 801e59a - } else { - u32_t ret = (u32_t)(next_timeout->time - now); - 801e578: 4b0a ldr r3, [pc, #40] ; (801e5a4 ) - 801e57a: 681b ldr r3, [r3, #0] - 801e57c: 685a ldr r2, [r3, #4] - 801e57e: 687b ldr r3, [r7, #4] - 801e580: 1ad3 subs r3, r2, r3 - 801e582: 603b str r3, [r7, #0] - LWIP_ASSERT("invalid sleeptime", ret <= LWIP_MAX_TIMEOUT); - 801e584: 683b ldr r3, [r7, #0] - 801e586: 2b00 cmp r3, #0 - 801e588: da06 bge.n 801e598 - 801e58a: 4b07 ldr r3, [pc, #28] ; (801e5a8 ) - 801e58c: f44f 72dc mov.w r2, #440 ; 0x1b8 - 801e590: 4906 ldr r1, [pc, #24] ; (801e5ac ) - 801e592: 4807 ldr r0, [pc, #28] ; (801e5b0 ) - 801e594: f003 f9f8 bl 8021988 - return ret; - 801e598: 683b ldr r3, [r7, #0] - } -} - 801e59a: 4618 mov r0, r3 - 801e59c: 3708 adds r7, #8 - 801e59e: 46bd mov sp, r7 - 801e5a0: bd80 pop {r7, pc} - 801e5a2: bf00 nop - 801e5a4: 2401a4d4 .word 0x2401a4d4 - 801e5a8: 08026030 .word 0x08026030 - 801e5ac: 08026104 .word 0x08026104 - 801e5b0: 080260a4 .word 0x080260a4 - -0801e5b4 : -/** - * Initialize this module. - */ -void -udp_init(void) -{ - 801e5b4: b580 push {r7, lr} - 801e5b6: af00 add r7, sp, #0 -#ifdef LWIP_RAND - udp_port = UDP_ENSURE_LOCAL_PORT_RANGE(LWIP_RAND()); - 801e5b8: f003 f86a bl 8021690 - 801e5bc: 4603 mov r3, r0 - 801e5be: b29b uxth r3, r3 - 801e5c0: f3c3 030d ubfx r3, r3, #0, #14 - 801e5c4: b29b uxth r3, r3 - 801e5c6: f5a3 4380 sub.w r3, r3, #16384 ; 0x4000 - 801e5ca: b29a uxth r2, r3 - 801e5cc: 4b01 ldr r3, [pc, #4] ; (801e5d4 ) - 801e5ce: 801a strh r2, [r3, #0] -#endif /* LWIP_RAND */ -} - 801e5d0: bf00 nop - 801e5d2: bd80 pop {r7, pc} - 801e5d4: 24000044 .word 0x24000044 - -0801e5d8 : - * - * @return a new (free) local UDP port number - */ -static u16_t -udp_new_port(void) -{ - 801e5d8: b480 push {r7} - 801e5da: b083 sub sp, #12 - 801e5dc: af00 add r7, sp, #0 - u16_t n = 0; - 801e5de: 2300 movs r3, #0 - 801e5e0: 80fb strh r3, [r7, #6] - struct udp_pcb *pcb; - -again: - if (udp_port++ == UDP_LOCAL_PORT_RANGE_END) { - 801e5e2: 4b17 ldr r3, [pc, #92] ; (801e640 ) - 801e5e4: 881b ldrh r3, [r3, #0] - 801e5e6: 1c5a adds r2, r3, #1 - 801e5e8: b291 uxth r1, r2 - 801e5ea: 4a15 ldr r2, [pc, #84] ; (801e640 ) - 801e5ec: 8011 strh r1, [r2, #0] - 801e5ee: f64f 72ff movw r2, #65535 ; 0xffff - 801e5f2: 4293 cmp r3, r2 - 801e5f4: d103 bne.n 801e5fe - udp_port = UDP_LOCAL_PORT_RANGE_START; - 801e5f6: 4b12 ldr r3, [pc, #72] ; (801e640 ) - 801e5f8: f44f 4240 mov.w r2, #49152 ; 0xc000 - 801e5fc: 801a strh r2, [r3, #0] - } - /* Check all PCBs. */ - for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) { - 801e5fe: 4b11 ldr r3, [pc, #68] ; (801e644 ) - 801e600: 681b ldr r3, [r3, #0] - 801e602: 603b str r3, [r7, #0] - 801e604: e011 b.n 801e62a - if (pcb->local_port == udp_port) { - 801e606: 683b ldr r3, [r7, #0] - 801e608: 8a5a ldrh r2, [r3, #18] - 801e60a: 4b0d ldr r3, [pc, #52] ; (801e640 ) - 801e60c: 881b ldrh r3, [r3, #0] - 801e60e: 429a cmp r2, r3 - 801e610: d108 bne.n 801e624 - if (++n > (UDP_LOCAL_PORT_RANGE_END - UDP_LOCAL_PORT_RANGE_START)) { - 801e612: 88fb ldrh r3, [r7, #6] - 801e614: 3301 adds r3, #1 - 801e616: 80fb strh r3, [r7, #6] - 801e618: 88fb ldrh r3, [r7, #6] - 801e61a: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 - 801e61e: d3e0 bcc.n 801e5e2 - return 0; - 801e620: 2300 movs r3, #0 - 801e622: e007 b.n 801e634 - for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) { - 801e624: 683b ldr r3, [r7, #0] - 801e626: 68db ldr r3, [r3, #12] - 801e628: 603b str r3, [r7, #0] - 801e62a: 683b ldr r3, [r7, #0] - 801e62c: 2b00 cmp r3, #0 - 801e62e: d1ea bne.n 801e606 - } - goto again; - } - } - return udp_port; - 801e630: 4b03 ldr r3, [pc, #12] ; (801e640 ) - 801e632: 881b ldrh r3, [r3, #0] -} - 801e634: 4618 mov r0, r3 - 801e636: 370c adds r7, #12 - 801e638: 46bd mov sp, r7 - 801e63a: f85d 7b04 ldr.w r7, [sp], #4 - 801e63e: 4770 bx lr - 801e640: 24000044 .word 0x24000044 - 801e644: 2401a4e0 .word 0x2401a4e0 - -0801e648 : - * @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) -{ - 801e648: b580 push {r7, lr} - 801e64a: b084 sub sp, #16 - 801e64c: af00 add r7, sp, #0 - 801e64e: 60f8 str r0, [r7, #12] - 801e650: 60b9 str r1, [r7, #8] - 801e652: 4613 mov r3, r2 - 801e654: 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); - 801e656: 68fb ldr r3, [r7, #12] - 801e658: 2b00 cmp r3, #0 - 801e65a: d105 bne.n 801e668 - 801e65c: 4b27 ldr r3, [pc, #156] ; (801e6fc ) - 801e65e: 2287 movs r2, #135 ; 0x87 - 801e660: 4927 ldr r1, [pc, #156] ; (801e700 ) - 801e662: 4828 ldr r0, [pc, #160] ; (801e704 ) - 801e664: f003 f990 bl 8021988 - LWIP_ASSERT("udp_input_local_match: invalid netif", inp != NULL); - 801e668: 68bb ldr r3, [r7, #8] - 801e66a: 2b00 cmp r3, #0 - 801e66c: d105 bne.n 801e67a - 801e66e: 4b23 ldr r3, [pc, #140] ; (801e6fc ) - 801e670: 2288 movs r2, #136 ; 0x88 - 801e672: 4925 ldr r1, [pc, #148] ; (801e708 ) - 801e674: 4823 ldr r0, [pc, #140] ; (801e704 ) - 801e676: f003 f987 bl 8021988 - - /* check if PCB is bound to specific netif */ - if ((pcb->netif_idx != NETIF_NO_INDEX) && - 801e67a: 68fb ldr r3, [r7, #12] - 801e67c: 7a1b ldrb r3, [r3, #8] - 801e67e: 2b00 cmp r3, #0 - 801e680: d00b beq.n 801e69a - (pcb->netif_idx != netif_get_index(ip_data.current_input_netif))) { - 801e682: 68fb ldr r3, [r7, #12] - 801e684: 7a1a ldrb r2, [r3, #8] - 801e686: 4b21 ldr r3, [pc, #132] ; (801e70c ) - 801e688: 685b ldr r3, [r3, #4] - 801e68a: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 - 801e68e: 3301 adds r3, #1 - 801e690: b2db uxtb r3, r3 - if ((pcb->netif_idx != NETIF_NO_INDEX) && - 801e692: 429a cmp r2, r3 - 801e694: d001 beq.n 801e69a - return 0; - 801e696: 2300 movs r3, #0 - 801e698: e02b b.n 801e6f2 - /* 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) { - 801e69a: 79fb ldrb r3, [r7, #7] - 801e69c: 2b00 cmp r3, #0 - 801e69e: d018 beq.n 801e6d2 -#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)) || - 801e6a0: 68fb ldr r3, [r7, #12] - 801e6a2: 2b00 cmp r3, #0 - 801e6a4: d013 beq.n 801e6ce - 801e6a6: 68fb ldr r3, [r7, #12] - 801e6a8: 681b ldr r3, [r3, #0] - 801e6aa: 2b00 cmp r3, #0 - 801e6ac: d00f beq.n 801e6ce - ((ip4_current_dest_addr()->addr == IPADDR_BROADCAST)) || - 801e6ae: 4b17 ldr r3, [pc, #92] ; (801e70c ) - 801e6b0: 695b ldr r3, [r3, #20] - if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip)) || - 801e6b2: f1b3 3fff cmp.w r3, #4294967295 - 801e6b6: d00a beq.n 801e6ce - ip4_addr_netcmp(ip_2_ip4(&pcb->local_ip), ip4_current_dest_addr(), netif_ip4_netmask(inp))) { - 801e6b8: 68fb ldr r3, [r7, #12] - 801e6ba: 681a ldr r2, [r3, #0] - 801e6bc: 4b13 ldr r3, [pc, #76] ; (801e70c ) - 801e6be: 695b ldr r3, [r3, #20] - 801e6c0: 405a eors r2, r3 - 801e6c2: 68bb ldr r3, [r7, #8] - 801e6c4: 3308 adds r3, #8 - 801e6c6: 681b ldr r3, [r3, #0] - 801e6c8: 4013 ands r3, r2 - ((ip4_current_dest_addr()->addr == IPADDR_BROADCAST)) || - 801e6ca: 2b00 cmp r3, #0 - 801e6cc: d110 bne.n 801e6f0 - return 1; - 801e6ce: 2301 movs r3, #1 - 801e6d0: e00f b.n 801e6f2 - } - } - } 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())) { - 801e6d2: 68fb ldr r3, [r7, #12] - 801e6d4: 2b00 cmp r3, #0 - 801e6d6: d009 beq.n 801e6ec - 801e6d8: 68fb ldr r3, [r7, #12] - 801e6da: 681b ldr r3, [r3, #0] - 801e6dc: 2b00 cmp r3, #0 - 801e6de: d005 beq.n 801e6ec - 801e6e0: 68fb ldr r3, [r7, #12] - 801e6e2: 681a ldr r2, [r3, #0] - 801e6e4: 4b09 ldr r3, [pc, #36] ; (801e70c ) - 801e6e6: 695b ldr r3, [r3, #20] - 801e6e8: 429a cmp r2, r3 - 801e6ea: d101 bne.n 801e6f0 - return 1; - 801e6ec: 2301 movs r3, #1 - 801e6ee: e000 b.n 801e6f2 - } - } - - return 0; - 801e6f0: 2300 movs r3, #0 -} - 801e6f2: 4618 mov r0, r3 - 801e6f4: 3710 adds r7, #16 - 801e6f6: 46bd mov sp, r7 - 801e6f8: bd80 pop {r7, pc} - 801e6fa: bf00 nop - 801e6fc: 08026118 .word 0x08026118 - 801e700: 08026148 .word 0x08026148 - 801e704: 0802616c .word 0x0802616c - 801e708: 08026194 .word 0x08026194 - 801e70c: 24013980 .word 0x24013980 - -0801e710 : - * @param inp network interface on which the datagram was received. - * - */ -void -udp_input(struct pbuf *p, struct netif *inp) -{ - 801e710: b590 push {r4, r7, lr} - 801e712: b08d sub sp, #52 ; 0x34 - 801e714: af02 add r7, sp, #8 - 801e716: 6078 str r0, [r7, #4] - 801e718: 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; - 801e71a: 2300 movs r3, #0 - 801e71c: 77fb strb r3, [r7, #31] - - LWIP_UNUSED_ARG(inp); - - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ASSERT("udp_input: invalid pbuf", p != NULL); - 801e71e: 687b ldr r3, [r7, #4] - 801e720: 2b00 cmp r3, #0 - 801e722: d105 bne.n 801e730 - 801e724: 4b7c ldr r3, [pc, #496] ; (801e918 ) - 801e726: 22cf movs r2, #207 ; 0xcf - 801e728: 497c ldr r1, [pc, #496] ; (801e91c ) - 801e72a: 487d ldr r0, [pc, #500] ; (801e920 ) - 801e72c: f003 f92c bl 8021988 - LWIP_ASSERT("udp_input: invalid netif", inp != NULL); - 801e730: 683b ldr r3, [r7, #0] - 801e732: 2b00 cmp r3, #0 - 801e734: d105 bne.n 801e742 - 801e736: 4b78 ldr r3, [pc, #480] ; (801e918 ) - 801e738: 22d0 movs r2, #208 ; 0xd0 - 801e73a: 497a ldr r1, [pc, #488] ; (801e924 ) - 801e73c: 4878 ldr r0, [pc, #480] ; (801e920 ) - 801e73e: f003 f923 bl 8021988 - PERF_START; - - UDP_STATS_INC(udp.recv); - - /* Check minimum length (UDP header) */ - if (p->len < UDP_HLEN) { - 801e742: 687b ldr r3, [r7, #4] - 801e744: 895b ldrh r3, [r3, #10] - 801e746: 2b07 cmp r3, #7 - 801e748: d803 bhi.n 801e752 - 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); - 801e74a: 6878 ldr r0, [r7, #4] - 801e74c: f7f9 f9d4 bl 8017af8 - goto end; - 801e750: e0de b.n 801e910 - } - - udphdr = (struct udp_hdr *)p->payload; - 801e752: 687b ldr r3, [r7, #4] - 801e754: 685b ldr r3, [r3, #4] - 801e756: 617b str r3, [r7, #20] - - /* is broadcast packet ? */ - broadcast = ip_addr_isbroadcast(ip_current_dest_addr(), ip_current_netif()); - 801e758: 4b73 ldr r3, [pc, #460] ; (801e928 ) - 801e75a: 695b ldr r3, [r3, #20] - 801e75c: 4a72 ldr r2, [pc, #456] ; (801e928 ) - 801e75e: 6812 ldr r2, [r2, #0] - 801e760: 4611 mov r1, r2 - 801e762: 4618 mov r0, r3 - 801e764: f001 fe5c bl 8020420 - 801e768: 4603 mov r3, r0 - 801e76a: 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); - 801e76c: 697b ldr r3, [r7, #20] - 801e76e: 881b ldrh r3, [r3, #0] - 801e770: b29b uxth r3, r3 - 801e772: 4618 mov r0, r3 - 801e774: f7f7 fbe4 bl 8015f40 - 801e778: 4603 mov r3, r0 - 801e77a: 823b strh r3, [r7, #16] - dest = lwip_ntohs(udphdr->dest); - 801e77c: 697b ldr r3, [r7, #20] - 801e77e: 885b ldrh r3, [r3, #2] - 801e780: b29b uxth r3, r3 - 801e782: 4618 mov r0, r3 - 801e784: f7f7 fbdc bl 8015f40 - 801e788: 4603 mov r3, r0 - 801e78a: 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; - 801e78c: 2300 movs r3, #0 - 801e78e: 623b str r3, [r7, #32] - prev = NULL; - 801e790: 2300 movs r3, #0 - 801e792: 627b str r3, [r7, #36] ; 0x24 - uncon_pcb = NULL; - 801e794: 2300 movs r3, #0 - 801e796: 61bb str r3, [r7, #24] - /* 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) { - 801e798: 4b64 ldr r3, [pc, #400] ; (801e92c ) - 801e79a: 681b ldr r3, [r3, #0] - 801e79c: 623b str r3, [r7, #32] - 801e79e: e054 b.n 801e84a - 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) && - 801e7a0: 6a3b ldr r3, [r7, #32] - 801e7a2: 8a5b ldrh r3, [r3, #18] - 801e7a4: 89fa ldrh r2, [r7, #14] - 801e7a6: 429a cmp r2, r3 - 801e7a8: d14a bne.n 801e840 - (udp_input_local_match(pcb, inp, broadcast) != 0)) { - 801e7aa: 7cfb ldrb r3, [r7, #19] - 801e7ac: 461a mov r2, r3 - 801e7ae: 6839 ldr r1, [r7, #0] - 801e7b0: 6a38 ldr r0, [r7, #32] - 801e7b2: f7ff ff49 bl 801e648 - 801e7b6: 4603 mov r3, r0 - if ((pcb->local_port == dest) && - 801e7b8: 2b00 cmp r3, #0 - 801e7ba: d041 beq.n 801e840 - if ((pcb->flags & UDP_FLAGS_CONNECTED) == 0) { - 801e7bc: 6a3b ldr r3, [r7, #32] - 801e7be: 7c1b ldrb r3, [r3, #16] - 801e7c0: f003 0304 and.w r3, r3, #4 - 801e7c4: 2b00 cmp r3, #0 - 801e7c6: d11d bne.n 801e804 - if (uncon_pcb == NULL) { - 801e7c8: 69bb ldr r3, [r7, #24] - 801e7ca: 2b00 cmp r3, #0 - 801e7cc: d102 bne.n 801e7d4 - /* the first unconnected matching PCB */ - uncon_pcb = pcb; - 801e7ce: 6a3b ldr r3, [r7, #32] - 801e7d0: 61bb str r3, [r7, #24] - 801e7d2: e017 b.n 801e804 -#if LWIP_IPV4 - } else if (broadcast && ip4_current_dest_addr()->addr == IPADDR_BROADCAST) { - 801e7d4: 7cfb ldrb r3, [r7, #19] - 801e7d6: 2b00 cmp r3, #0 - 801e7d8: d014 beq.n 801e804 - 801e7da: 4b53 ldr r3, [pc, #332] ; (801e928 ) - 801e7dc: 695b ldr r3, [r3, #20] - 801e7de: f1b3 3fff cmp.w r3, #4294967295 - 801e7e2: d10f bne.n 801e804 - /* 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))) { - 801e7e4: 69bb ldr r3, [r7, #24] - 801e7e6: 681a ldr r2, [r3, #0] - 801e7e8: 683b ldr r3, [r7, #0] - 801e7ea: 3304 adds r3, #4 - 801e7ec: 681b ldr r3, [r3, #0] - 801e7ee: 429a cmp r2, r3 - 801e7f0: d008 beq.n 801e804 - /* 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))) { - 801e7f2: 6a3b ldr r3, [r7, #32] - 801e7f4: 681a ldr r2, [r3, #0] - 801e7f6: 683b ldr r3, [r7, #0] - 801e7f8: 3304 adds r3, #4 - 801e7fa: 681b ldr r3, [r3, #0] - 801e7fc: 429a cmp r2, r3 - 801e7fe: d101 bne.n 801e804 - /* better match */ - uncon_pcb = pcb; - 801e800: 6a3b ldr r3, [r7, #32] - 801e802: 61bb str r3, [r7, #24] - } -#endif /* SO_REUSE */ - } - - /* compare PCB remote addr+port to UDP source addr+port */ - if ((pcb->remote_port == src) && - 801e804: 6a3b ldr r3, [r7, #32] - 801e806: 8a9b ldrh r3, [r3, #20] - 801e808: 8a3a ldrh r2, [r7, #16] - 801e80a: 429a cmp r2, r3 - 801e80c: d118 bne.n 801e840 - (ip_addr_isany_val(pcb->remote_ip) || - 801e80e: 6a3b ldr r3, [r7, #32] - 801e810: 685b ldr r3, [r3, #4] - if ((pcb->remote_port == src) && - 801e812: 2b00 cmp r3, #0 - 801e814: d005 beq.n 801e822 - ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()))) { - 801e816: 6a3b ldr r3, [r7, #32] - 801e818: 685a ldr r2, [r3, #4] - 801e81a: 4b43 ldr r3, [pc, #268] ; (801e928 ) - 801e81c: 691b ldr r3, [r3, #16] - (ip_addr_isany_val(pcb->remote_ip) || - 801e81e: 429a cmp r2, r3 - 801e820: d10e bne.n 801e840 - /* the first fully matching PCB */ - if (prev != NULL) { - 801e822: 6a7b ldr r3, [r7, #36] ; 0x24 - 801e824: 2b00 cmp r3, #0 - 801e826: d014 beq.n 801e852 - /* move the pcb to the front of udp_pcbs so that is - found faster next time */ - prev->next = pcb->next; - 801e828: 6a3b ldr r3, [r7, #32] - 801e82a: 68da ldr r2, [r3, #12] - 801e82c: 6a7b ldr r3, [r7, #36] ; 0x24 - 801e82e: 60da str r2, [r3, #12] - pcb->next = udp_pcbs; - 801e830: 4b3e ldr r3, [pc, #248] ; (801e92c ) - 801e832: 681a ldr r2, [r3, #0] - 801e834: 6a3b ldr r3, [r7, #32] - 801e836: 60da str r2, [r3, #12] - udp_pcbs = pcb; - 801e838: 4a3c ldr r2, [pc, #240] ; (801e92c ) - 801e83a: 6a3b ldr r3, [r7, #32] - 801e83c: 6013 str r3, [r2, #0] - } else { - UDP_STATS_INC(udp.cachehit); - } - break; - 801e83e: e008 b.n 801e852 - } - } - - prev = pcb; - 801e840: 6a3b ldr r3, [r7, #32] - 801e842: 627b str r3, [r7, #36] ; 0x24 - for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) { - 801e844: 6a3b ldr r3, [r7, #32] - 801e846: 68db ldr r3, [r3, #12] - 801e848: 623b str r3, [r7, #32] - 801e84a: 6a3b ldr r3, [r7, #32] - 801e84c: 2b00 cmp r3, #0 - 801e84e: d1a7 bne.n 801e7a0 - 801e850: e000 b.n 801e854 - break; - 801e852: bf00 nop - } - /* no fully matching pcb found? then look for an unconnected pcb */ - if (pcb == NULL) { - 801e854: 6a3b ldr r3, [r7, #32] - 801e856: 2b00 cmp r3, #0 - 801e858: d101 bne.n 801e85e - pcb = uncon_pcb; - 801e85a: 69bb ldr r3, [r7, #24] - 801e85c: 623b str r3, [r7, #32] - } - - /* Check checksum if this is a match or if it was directed at us. */ - if (pcb != NULL) { - 801e85e: 6a3b ldr r3, [r7, #32] - 801e860: 2b00 cmp r3, #0 - 801e862: d002 beq.n 801e86a - for_us = 1; - 801e864: 2301 movs r3, #1 - 801e866: 77fb strb r3, [r7, #31] - 801e868: e00a b.n 801e880 - 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()); - 801e86a: 683b ldr r3, [r7, #0] - 801e86c: 3304 adds r3, #4 - 801e86e: 681a ldr r2, [r3, #0] - 801e870: 4b2d ldr r3, [pc, #180] ; (801e928 ) - 801e872: 695b ldr r3, [r3, #20] - 801e874: 429a cmp r2, r3 - 801e876: bf0c ite eq - 801e878: 2301 moveq r3, #1 - 801e87a: 2300 movne r3, #0 - 801e87c: b2db uxtb r3, r3 - 801e87e: 77fb strb r3, [r7, #31] - } -#endif /* LWIP_IPV4 */ - } - - if (for_us) { - 801e880: 7ffb ldrb r3, [r7, #31] - 801e882: 2b00 cmp r3, #0 - 801e884: d041 beq.n 801e90a - } - } - } - } -#endif /* CHECKSUM_CHECK_UDP */ - if (pbuf_remove_header(p, UDP_HLEN)) { - 801e886: 2108 movs r1, #8 - 801e888: 6878 ldr r0, [r7, #4] - 801e88a: f7f9 f8af bl 80179ec - 801e88e: 4603 mov r3, r0 - 801e890: 2b00 cmp r3, #0 - 801e892: d00a beq.n 801e8aa - /* Can we cope with this failing? Just assert for now */ - LWIP_ASSERT("pbuf_remove_header failed\n", 0); - 801e894: 4b20 ldr r3, [pc, #128] ; (801e918 ) - 801e896: f44f 72b8 mov.w r2, #368 ; 0x170 - 801e89a: 4925 ldr r1, [pc, #148] ; (801e930 ) - 801e89c: 4820 ldr r0, [pc, #128] ; (801e920 ) - 801e89e: f003 f873 bl 8021988 - UDP_STATS_INC(udp.drop); - MIB2_STATS_INC(mib2.udpinerrors); - pbuf_free(p); - 801e8a2: 6878 ldr r0, [r7, #4] - 801e8a4: f7f9 f928 bl 8017af8 - goto end; - 801e8a8: e032 b.n 801e910 - } - - if (pcb != NULL) { - 801e8aa: 6a3b ldr r3, [r7, #32] - 801e8ac: 2b00 cmp r3, #0 - 801e8ae: d012 beq.n 801e8d6 - } - } - } -#endif /* SO_REUSE && SO_REUSE_RXTOALL */ - /* callback */ - if (pcb->recv != NULL) { - 801e8b0: 6a3b ldr r3, [r7, #32] - 801e8b2: 699b ldr r3, [r3, #24] - 801e8b4: 2b00 cmp r3, #0 - 801e8b6: d00a beq.n 801e8ce - /* now the recv function is responsible for freeing p */ - pcb->recv(pcb->recv_arg, pcb, p, ip_current_src_addr(), src); - 801e8b8: 6a3b ldr r3, [r7, #32] - 801e8ba: 699c ldr r4, [r3, #24] - 801e8bc: 6a3b ldr r3, [r7, #32] - 801e8be: 69d8 ldr r0, [r3, #28] - 801e8c0: 8a3b ldrh r3, [r7, #16] - 801e8c2: 9300 str r3, [sp, #0] - 801e8c4: 4b1b ldr r3, [pc, #108] ; (801e934 ) - 801e8c6: 687a ldr r2, [r7, #4] - 801e8c8: 6a39 ldr r1, [r7, #32] - 801e8ca: 47a0 blx r4 - } else { - pbuf_free(p); - } -end: - PERF_STOP("udp_input"); - return; - 801e8cc: e021 b.n 801e912 - pbuf_free(p); - 801e8ce: 6878 ldr r0, [r7, #4] - 801e8d0: f7f9 f912 bl 8017af8 - goto end; - 801e8d4: e01c b.n 801e910 - if (!broadcast && !ip_addr_ismulticast(ip_current_dest_addr())) { - 801e8d6: 7cfb ldrb r3, [r7, #19] - 801e8d8: 2b00 cmp r3, #0 - 801e8da: d112 bne.n 801e902 - 801e8dc: 4b12 ldr r3, [pc, #72] ; (801e928 ) - 801e8de: 695b ldr r3, [r3, #20] - 801e8e0: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 801e8e4: 2be0 cmp r3, #224 ; 0xe0 - 801e8e6: d00c beq.n 801e902 - pbuf_header_force(p, (s16_t)(ip_current_header_tot_len() + UDP_HLEN)); - 801e8e8: 4b0f ldr r3, [pc, #60] ; (801e928 ) - 801e8ea: 899b ldrh r3, [r3, #12] - 801e8ec: 3308 adds r3, #8 - 801e8ee: b29b uxth r3, r3 - 801e8f0: b21b sxth r3, r3 - 801e8f2: 4619 mov r1, r3 - 801e8f4: 6878 ldr r0, [r7, #4] - 801e8f6: f7f9 f8ec bl 8017ad2 - icmp_port_unreach(ip_current_is_v6(), p); - 801e8fa: 2103 movs r1, #3 - 801e8fc: 6878 ldr r0, [r7, #4] - 801e8fe: f001 fa65 bl 801fdcc - pbuf_free(p); - 801e902: 6878 ldr r0, [r7, #4] - 801e904: f7f9 f8f8 bl 8017af8 - return; - 801e908: e003 b.n 801e912 - pbuf_free(p); - 801e90a: 6878 ldr r0, [r7, #4] - 801e90c: f7f9 f8f4 bl 8017af8 - return; - 801e910: bf00 nop - UDP_STATS_INC(udp.drop); - MIB2_STATS_INC(mib2.udpinerrors); - pbuf_free(p); - PERF_STOP("udp_input"); -#endif /* CHECKSUM_CHECK_UDP */ -} - 801e912: 372c adds r7, #44 ; 0x2c - 801e914: 46bd mov sp, r7 - 801e916: bd90 pop {r4, r7, pc} - 801e918: 08026118 .word 0x08026118 - 801e91c: 080261bc .word 0x080261bc - 801e920: 0802616c .word 0x0802616c - 801e924: 080261d4 .word 0x080261d4 - 801e928: 24013980 .word 0x24013980 - 801e92c: 2401a4e0 .word 0x2401a4e0 - 801e930: 080261f0 .word 0x080261f0 - 801e934: 24013990 .word 0x24013990 - -0801e938 : - * - * @see udp_disconnect() - */ -err_t -udp_bind(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port) -{ - 801e938: b580 push {r7, lr} - 801e93a: b086 sub sp, #24 - 801e93c: af00 add r7, sp, #0 - 801e93e: 60f8 str r0, [r7, #12] - 801e940: 60b9 str r1, [r7, #8] - 801e942: 4613 mov r3, r2 - 801e944: 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) { - 801e946: 68bb ldr r3, [r7, #8] - 801e948: 2b00 cmp r3, #0 - 801e94a: d101 bne.n 801e950 - ipaddr = IP4_ADDR_ANY; - 801e94c: 4b39 ldr r3, [pc, #228] ; (801ea34 ) - 801e94e: 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); - 801e950: 68fb ldr r3, [r7, #12] - 801e952: 2b00 cmp r3, #0 - 801e954: d109 bne.n 801e96a - 801e956: 4b38 ldr r3, [pc, #224] ; (801ea38 ) - 801e958: f240 32b7 movw r2, #951 ; 0x3b7 - 801e95c: 4937 ldr r1, [pc, #220] ; (801ea3c ) - 801e95e: 4838 ldr r0, [pc, #224] ; (801ea40 ) - 801e960: f003 f812 bl 8021988 - 801e964: f06f 030f mvn.w r3, #15 - 801e968: e060 b.n 801ea2c - - 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; - 801e96a: 2300 movs r3, #0 - 801e96c: 74fb strb r3, [r7, #19] - /* Check for double bind and rebind of the same pcb */ - for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) { - 801e96e: 4b35 ldr r3, [pc, #212] ; (801ea44 ) - 801e970: 681b ldr r3, [r3, #0] - 801e972: 617b str r3, [r7, #20] - 801e974: e009 b.n 801e98a - /* is this UDP PCB already on active list? */ - if (pcb == ipcb) { - 801e976: 68fa ldr r2, [r7, #12] - 801e978: 697b ldr r3, [r7, #20] - 801e97a: 429a cmp r2, r3 - 801e97c: d102 bne.n 801e984 - rebind = 1; - 801e97e: 2301 movs r3, #1 - 801e980: 74fb strb r3, [r7, #19] - break; - 801e982: e005 b.n 801e990 - for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) { - 801e984: 697b ldr r3, [r7, #20] - 801e986: 68db ldr r3, [r3, #12] - 801e988: 617b str r3, [r7, #20] - 801e98a: 697b ldr r3, [r7, #20] - 801e98c: 2b00 cmp r3, #0 - 801e98e: d1f2 bne.n 801e976 - ipaddr = &zoned_ipaddr; - } -#endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */ - - /* no port specified? */ - if (port == 0) { - 801e990: 88fb ldrh r3, [r7, #6] - 801e992: 2b00 cmp r3, #0 - 801e994: d109 bne.n 801e9aa - port = udp_new_port(); - 801e996: f7ff fe1f bl 801e5d8 - 801e99a: 4603 mov r3, r0 - 801e99c: 80fb strh r3, [r7, #6] - if (port == 0) { - 801e99e: 88fb ldrh r3, [r7, #6] - 801e9a0: 2b00 cmp r3, #0 - 801e9a2: d12c bne.n 801e9fe - /* no more ports available in local range */ - LWIP_DEBUGF(UDP_DEBUG, ("udp_bind: out of free UDP ports\n")); - return ERR_USE; - 801e9a4: f06f 0307 mvn.w r3, #7 - 801e9a8: e040 b.n 801ea2c - } - } else { - for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) { - 801e9aa: 4b26 ldr r3, [pc, #152] ; (801ea44 ) - 801e9ac: 681b ldr r3, [r3, #0] - 801e9ae: 617b str r3, [r7, #20] - 801e9b0: e022 b.n 801e9f8 - if (pcb != ipcb) { - 801e9b2: 68fa ldr r2, [r7, #12] - 801e9b4: 697b ldr r3, [r7, #20] - 801e9b6: 429a cmp r2, r3 - 801e9b8: d01b beq.n 801e9f2 - 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) && - 801e9ba: 697b ldr r3, [r7, #20] - 801e9bc: 8a5b ldrh r3, [r3, #18] - 801e9be: 88fa ldrh r2, [r7, #6] - 801e9c0: 429a cmp r2, r3 - 801e9c2: d116 bne.n 801e9f2 - /* IP address matches or any IP used? */ - (ip_addr_cmp(&ipcb->local_ip, ipaddr) || ip_addr_isany(ipaddr) || - 801e9c4: 697b ldr r3, [r7, #20] - 801e9c6: 681a ldr r2, [r3, #0] - 801e9c8: 68bb ldr r3, [r7, #8] - 801e9ca: 681b ldr r3, [r3, #0] - if ((ipcb->local_port == port) && - 801e9cc: 429a cmp r2, r3 - 801e9ce: d00d beq.n 801e9ec - (ip_addr_cmp(&ipcb->local_ip, ipaddr) || ip_addr_isany(ipaddr) || - 801e9d0: 68bb ldr r3, [r7, #8] - 801e9d2: 2b00 cmp r3, #0 - 801e9d4: d00a beq.n 801e9ec - 801e9d6: 68bb ldr r3, [r7, #8] - 801e9d8: 681b ldr r3, [r3, #0] - 801e9da: 2b00 cmp r3, #0 - 801e9dc: d006 beq.n 801e9ec - ip_addr_isany(&ipcb->local_ip))) { - 801e9de: 697b ldr r3, [r7, #20] - (ip_addr_cmp(&ipcb->local_ip, ipaddr) || ip_addr_isany(ipaddr) || - 801e9e0: 2b00 cmp r3, #0 - 801e9e2: d003 beq.n 801e9ec - ip_addr_isany(&ipcb->local_ip))) { - 801e9e4: 697b ldr r3, [r7, #20] - 801e9e6: 681b ldr r3, [r3, #0] - 801e9e8: 2b00 cmp r3, #0 - 801e9ea: d102 bne.n 801e9f2 - /* 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; - 801e9ec: f06f 0307 mvn.w r3, #7 - 801e9f0: e01c b.n 801ea2c - for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) { - 801e9f2: 697b ldr r3, [r7, #20] - 801e9f4: 68db ldr r3, [r3, #12] - 801e9f6: 617b str r3, [r7, #20] - 801e9f8: 697b ldr r3, [r7, #20] - 801e9fa: 2b00 cmp r3, #0 - 801e9fc: d1d9 bne.n 801e9b2 - } - } - } - } - - ip_addr_set_ipaddr(&pcb->local_ip, ipaddr); - 801e9fe: 68bb ldr r3, [r7, #8] - 801ea00: 2b00 cmp r3, #0 - 801ea02: d002 beq.n 801ea0a - 801ea04: 68bb ldr r3, [r7, #8] - 801ea06: 681b ldr r3, [r3, #0] - 801ea08: e000 b.n 801ea0c - 801ea0a: 2300 movs r3, #0 - 801ea0c: 68fa ldr r2, [r7, #12] - 801ea0e: 6013 str r3, [r2, #0] - - pcb->local_port = port; - 801ea10: 68fb ldr r3, [r7, #12] - 801ea12: 88fa ldrh r2, [r7, #6] - 801ea14: 825a strh r2, [r3, #18] - mib2_udp_bind(pcb); - /* pcb not active yet? */ - if (rebind == 0) { - 801ea16: 7cfb ldrb r3, [r7, #19] - 801ea18: 2b00 cmp r3, #0 - 801ea1a: d106 bne.n 801ea2a - /* place the PCB on the active list if not already there */ - pcb->next = udp_pcbs; - 801ea1c: 4b09 ldr r3, [pc, #36] ; (801ea44 ) - 801ea1e: 681a ldr r2, [r3, #0] - 801ea20: 68fb ldr r3, [r7, #12] - 801ea22: 60da str r2, [r3, #12] - udp_pcbs = pcb; - 801ea24: 4a07 ldr r2, [pc, #28] ; (801ea44 ) - 801ea26: 68fb ldr r3, [r7, #12] - 801ea28: 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; - 801ea2a: 2300 movs r3, #0 -} - 801ea2c: 4618 mov r0, r3 - 801ea2e: 3718 adds r7, #24 - 801ea30: 46bd mov sp, r7 - 801ea32: bd80 pop {r7, pc} - 801ea34: 08026cec .word 0x08026cec - 801ea38: 08026118 .word 0x08026118 - 801ea3c: 080263e0 .word 0x080263e0 - 801ea40: 0802616c .word 0x0802616c - 801ea44: 2401a4e0 .word 0x2401a4e0 - -0801ea48 : - * - * @see udp_disconnect() - */ -err_t -udp_connect(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port) -{ - 801ea48: b580 push {r7, lr} - 801ea4a: b086 sub sp, #24 - 801ea4c: af00 add r7, sp, #0 - 801ea4e: 60f8 str r0, [r7, #12] - 801ea50: 60b9 str r1, [r7, #8] - 801ea52: 4613 mov r3, r2 - 801ea54: 80fb strh r3, [r7, #6] - struct udp_pcb *ipcb; - - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("udp_connect: invalid pcb", pcb != NULL, return ERR_ARG); - 801ea56: 68fb ldr r3, [r7, #12] - 801ea58: 2b00 cmp r3, #0 - 801ea5a: d109 bne.n 801ea70 - 801ea5c: 4b2c ldr r3, [pc, #176] ; (801eb10 ) - 801ea5e: f240 4235 movw r2, #1077 ; 0x435 - 801ea62: 492c ldr r1, [pc, #176] ; (801eb14 ) - 801ea64: 482c ldr r0, [pc, #176] ; (801eb18 ) - 801ea66: f002 ff8f bl 8021988 - 801ea6a: f06f 030f mvn.w r3, #15 - 801ea6e: e04b b.n 801eb08 - LWIP_ERROR("udp_connect: invalid ipaddr", ipaddr != NULL, return ERR_ARG); - 801ea70: 68bb ldr r3, [r7, #8] - 801ea72: 2b00 cmp r3, #0 - 801ea74: d109 bne.n 801ea8a - 801ea76: 4b26 ldr r3, [pc, #152] ; (801eb10 ) - 801ea78: f240 4236 movw r2, #1078 ; 0x436 - 801ea7c: 4927 ldr r1, [pc, #156] ; (801eb1c ) - 801ea7e: 4826 ldr r0, [pc, #152] ; (801eb18 ) - 801ea80: f002 ff82 bl 8021988 - 801ea84: f06f 030f mvn.w r3, #15 - 801ea88: e03e b.n 801eb08 - - if (pcb->local_port == 0) { - 801ea8a: 68fb ldr r3, [r7, #12] - 801ea8c: 8a5b ldrh r3, [r3, #18] - 801ea8e: 2b00 cmp r3, #0 - 801ea90: d10f bne.n 801eab2 - err_t err = udp_bind(pcb, &pcb->local_ip, pcb->local_port); - 801ea92: 68f9 ldr r1, [r7, #12] - 801ea94: 68fb ldr r3, [r7, #12] - 801ea96: 8a5b ldrh r3, [r3, #18] - 801ea98: 461a mov r2, r3 - 801ea9a: 68f8 ldr r0, [r7, #12] - 801ea9c: f7ff ff4c bl 801e938 - 801eaa0: 4603 mov r3, r0 - 801eaa2: 75fb strb r3, [r7, #23] - if (err != ERR_OK) { - 801eaa4: f997 3017 ldrsb.w r3, [r7, #23] - 801eaa8: 2b00 cmp r3, #0 - 801eaaa: d002 beq.n 801eab2 - return err; - 801eaac: f997 3017 ldrsb.w r3, [r7, #23] - 801eab0: e02a b.n 801eb08 - } - } - - ip_addr_set_ipaddr(&pcb->remote_ip, ipaddr); - 801eab2: 68bb ldr r3, [r7, #8] - 801eab4: 2b00 cmp r3, #0 - 801eab6: d002 beq.n 801eabe - 801eab8: 68bb ldr r3, [r7, #8] - 801eaba: 681b ldr r3, [r3, #0] - 801eabc: e000 b.n 801eac0 - 801eabe: 2300 movs r3, #0 - 801eac0: 68fa ldr r2, [r7, #12] - 801eac2: 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; - 801eac4: 68fb ldr r3, [r7, #12] - 801eac6: 88fa ldrh r2, [r7, #6] - 801eac8: 829a strh r2, [r3, #20] - pcb->flags |= UDP_FLAGS_CONNECTED; - 801eaca: 68fb ldr r3, [r7, #12] - 801eacc: 7c1b ldrb r3, [r3, #16] - 801eace: f043 0304 orr.w r3, r3, #4 - 801ead2: b2da uxtb r2, r3 - 801ead4: 68fb ldr r3, [r7, #12] - 801ead6: 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) { - 801ead8: 4b11 ldr r3, [pc, #68] ; (801eb20 ) - 801eada: 681b ldr r3, [r3, #0] - 801eadc: 613b str r3, [r7, #16] - 801eade: e008 b.n 801eaf2 - if (pcb == ipcb) { - 801eae0: 68fa ldr r2, [r7, #12] - 801eae2: 693b ldr r3, [r7, #16] - 801eae4: 429a cmp r2, r3 - 801eae6: d101 bne.n 801eaec - /* already on the list, just return */ - return ERR_OK; - 801eae8: 2300 movs r3, #0 - 801eaea: e00d b.n 801eb08 - for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) { - 801eaec: 693b ldr r3, [r7, #16] - 801eaee: 68db ldr r3, [r3, #12] - 801eaf0: 613b str r3, [r7, #16] - 801eaf2: 693b ldr r3, [r7, #16] - 801eaf4: 2b00 cmp r3, #0 - 801eaf6: d1f3 bne.n 801eae0 - } - } - /* PCB not yet on the list, add PCB now */ - pcb->next = udp_pcbs; - 801eaf8: 4b09 ldr r3, [pc, #36] ; (801eb20 ) - 801eafa: 681a ldr r2, [r3, #0] - 801eafc: 68fb ldr r3, [r7, #12] - 801eafe: 60da str r2, [r3, #12] - udp_pcbs = pcb; - 801eb00: 4a07 ldr r2, [pc, #28] ; (801eb20 ) - 801eb02: 68fb ldr r3, [r7, #12] - 801eb04: 6013 str r3, [r2, #0] - return ERR_OK; - 801eb06: 2300 movs r3, #0 -} - 801eb08: 4618 mov r0, r3 - 801eb0a: 3718 adds r7, #24 - 801eb0c: 46bd mov sp, r7 - 801eb0e: bd80 pop {r7, pc} - 801eb10: 08026118 .word 0x08026118 - 801eb14: 080263f8 .word 0x080263f8 - 801eb18: 0802616c .word 0x0802616c - 801eb1c: 08026414 .word 0x08026414 - 801eb20: 2401a4e0 .word 0x2401a4e0 - -0801eb24 : - * @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) -{ - 801eb24: b580 push {r7, lr} - 801eb26: b084 sub sp, #16 - 801eb28: af00 add r7, sp, #0 - 801eb2a: 60f8 str r0, [r7, #12] - 801eb2c: 60b9 str r1, [r7, #8] - 801eb2e: 607a str r2, [r7, #4] - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("udp_recv: invalid pcb", pcb != NULL, return); - 801eb30: 68fb ldr r3, [r7, #12] - 801eb32: 2b00 cmp r3, #0 - 801eb34: d107 bne.n 801eb46 - 801eb36: 4b08 ldr r3, [pc, #32] ; (801eb58 ) - 801eb38: f240 428a movw r2, #1162 ; 0x48a - 801eb3c: 4907 ldr r1, [pc, #28] ; (801eb5c ) - 801eb3e: 4808 ldr r0, [pc, #32] ; (801eb60 ) - 801eb40: f002 ff22 bl 8021988 - 801eb44: e005 b.n 801eb52 - - /* remember recv() callback and user data */ - pcb->recv = recv; - 801eb46: 68fb ldr r3, [r7, #12] - 801eb48: 68ba ldr r2, [r7, #8] - 801eb4a: 619a str r2, [r3, #24] - pcb->recv_arg = recv_arg; - 801eb4c: 68fb ldr r3, [r7, #12] - 801eb4e: 687a ldr r2, [r7, #4] - 801eb50: 61da str r2, [r3, #28] -} - 801eb52: 3710 adds r7, #16 - 801eb54: 46bd mov sp, r7 - 801eb56: bd80 pop {r7, pc} - 801eb58: 08026118 .word 0x08026118 - 801eb5c: 0802644c .word 0x0802644c - 801eb60: 0802616c .word 0x0802616c - -0801eb64 : - * - * @see udp_new() - */ -void -udp_remove(struct udp_pcb *pcb) -{ - 801eb64: b580 push {r7, lr} - 801eb66: b084 sub sp, #16 - 801eb68: af00 add r7, sp, #0 - 801eb6a: 6078 str r0, [r7, #4] - struct udp_pcb *pcb2; - - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("udp_remove: invalid pcb", pcb != NULL, return); - 801eb6c: 687b ldr r3, [r7, #4] - 801eb6e: 2b00 cmp r3, #0 - 801eb70: d107 bne.n 801eb82 - 801eb72: 4b19 ldr r3, [pc, #100] ; (801ebd8 ) - 801eb74: f240 42a1 movw r2, #1185 ; 0x4a1 - 801eb78: 4918 ldr r1, [pc, #96] ; (801ebdc ) - 801eb7a: 4819 ldr r0, [pc, #100] ; (801ebe0 ) - 801eb7c: f002 ff04 bl 8021988 - 801eb80: e026 b.n 801ebd0 - - mib2_udp_unbind(pcb); - /* pcb to be removed is first in list? */ - if (udp_pcbs == pcb) { - 801eb82: 4b18 ldr r3, [pc, #96] ; (801ebe4 ) - 801eb84: 681b ldr r3, [r3, #0] - 801eb86: 687a ldr r2, [r7, #4] - 801eb88: 429a cmp r2, r3 - 801eb8a: d105 bne.n 801eb98 - /* make list start at 2nd pcb */ - udp_pcbs = udp_pcbs->next; - 801eb8c: 4b15 ldr r3, [pc, #84] ; (801ebe4 ) - 801eb8e: 681b ldr r3, [r3, #0] - 801eb90: 68db ldr r3, [r3, #12] - 801eb92: 4a14 ldr r2, [pc, #80] ; (801ebe4 ) - 801eb94: 6013 str r3, [r2, #0] - 801eb96: e017 b.n 801ebc8 - /* pcb not 1st in list */ - } else { - for (pcb2 = udp_pcbs; pcb2 != NULL; pcb2 = pcb2->next) { - 801eb98: 4b12 ldr r3, [pc, #72] ; (801ebe4 ) - 801eb9a: 681b ldr r3, [r3, #0] - 801eb9c: 60fb str r3, [r7, #12] - 801eb9e: e010 b.n 801ebc2 - /* find pcb in udp_pcbs list */ - if (pcb2->next != NULL && pcb2->next == pcb) { - 801eba0: 68fb ldr r3, [r7, #12] - 801eba2: 68db ldr r3, [r3, #12] - 801eba4: 2b00 cmp r3, #0 - 801eba6: d009 beq.n 801ebbc - 801eba8: 68fb ldr r3, [r7, #12] - 801ebaa: 68db ldr r3, [r3, #12] - 801ebac: 687a ldr r2, [r7, #4] - 801ebae: 429a cmp r2, r3 - 801ebb0: d104 bne.n 801ebbc - /* remove pcb from list */ - pcb2->next = pcb->next; - 801ebb2: 687b ldr r3, [r7, #4] - 801ebb4: 68da ldr r2, [r3, #12] - 801ebb6: 68fb ldr r3, [r7, #12] - 801ebb8: 60da str r2, [r3, #12] - break; - 801ebba: e005 b.n 801ebc8 - for (pcb2 = udp_pcbs; pcb2 != NULL; pcb2 = pcb2->next) { - 801ebbc: 68fb ldr r3, [r7, #12] - 801ebbe: 68db ldr r3, [r3, #12] - 801ebc0: 60fb str r3, [r7, #12] - 801ebc2: 68fb ldr r3, [r7, #12] - 801ebc4: 2b00 cmp r3, #0 - 801ebc6: d1eb bne.n 801eba0 - } - } - } - memp_free(MEMP_UDP_PCB, pcb); - 801ebc8: 6879 ldr r1, [r7, #4] - 801ebca: 2000 movs r0, #0 - 801ebcc: f7f7 fff6 bl 8016bbc -} - 801ebd0: 3710 adds r7, #16 - 801ebd2: 46bd mov sp, r7 - 801ebd4: bd80 pop {r7, pc} - 801ebd6: bf00 nop - 801ebd8: 08026118 .word 0x08026118 - 801ebdc: 08026464 .word 0x08026464 - 801ebe0: 0802616c .word 0x0802616c - 801ebe4: 2401a4e0 .word 0x2401a4e0 - -0801ebe8 : - * - * @see udp_remove() - */ -struct udp_pcb * -udp_new(void) -{ - 801ebe8: b580 push {r7, lr} - 801ebea: b082 sub sp, #8 - 801ebec: af00 add r7, sp, #0 - struct udp_pcb *pcb; - - LWIP_ASSERT_CORE_LOCKED(); - - pcb = (struct udp_pcb *)memp_malloc(MEMP_UDP_PCB); - 801ebee: 2000 movs r0, #0 - 801ebf0: f7f7 ff6e bl 8016ad0 - 801ebf4: 6078 str r0, [r7, #4] - /* could allocate UDP PCB? */ - if (pcb != NULL) { - 801ebf6: 687b ldr r3, [r7, #4] - 801ebf8: 2b00 cmp r3, #0 - 801ebfa: d007 beq.n 801ec0c - /* 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)); - 801ebfc: 2220 movs r2, #32 - 801ebfe: 2100 movs r1, #0 - 801ec00: 6878 ldr r0, [r7, #4] - 801ec02: f003 f86d bl 8021ce0 - pcb->ttl = UDP_TTL; - 801ec06: 687b ldr r3, [r7, #4] - 801ec08: 22ff movs r2, #255 ; 0xff - 801ec0a: 72da strb r2, [r3, #11] -#if LWIP_MULTICAST_TX_OPTIONS - udp_set_multicast_ttl(pcb, UDP_TTL); -#endif /* LWIP_MULTICAST_TX_OPTIONS */ - } - return pcb; - 801ec0c: 687b ldr r3, [r7, #4] -} - 801ec0e: 4618 mov r0, r3 - 801ec10: 3708 adds r7, #8 - 801ec12: 46bd mov sp, r7 - 801ec14: bd80 pop {r7, pc} - -0801ec16 : - * - * @see udp_remove() - */ -struct udp_pcb * -udp_new_ip_type(u8_t type) -{ - 801ec16: b580 push {r7, lr} - 801ec18: b084 sub sp, #16 - 801ec1a: af00 add r7, sp, #0 - 801ec1c: 4603 mov r3, r0 - 801ec1e: 71fb strb r3, [r7, #7] - struct udp_pcb *pcb; - - LWIP_ASSERT_CORE_LOCKED(); - - pcb = udp_new(); - 801ec20: f7ff ffe2 bl 801ebe8 - 801ec24: 60f8 str r0, [r7, #12] - IP_SET_TYPE_VAL(pcb->remote_ip, type); - } -#else - LWIP_UNUSED_ARG(type); -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - return pcb; - 801ec26: 68fb ldr r3, [r7, #12] -} - 801ec28: 4618 mov r0, r3 - 801ec2a: 3710 adds r7, #16 - 801ec2c: 46bd mov sp, r7 - 801ec2e: bd80 pop {r7, pc} - -0801ec30 : - * - * @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) -{ - 801ec30: b480 push {r7} - 801ec32: b085 sub sp, #20 - 801ec34: af00 add r7, sp, #0 - 801ec36: 6078 str r0, [r7, #4] - 801ec38: 6039 str r1, [r7, #0] - struct udp_pcb *upcb; - - if (!ip_addr_isany(old_addr) && !ip_addr_isany(new_addr)) { - 801ec3a: 687b ldr r3, [r7, #4] - 801ec3c: 2b00 cmp r3, #0 - 801ec3e: d01e beq.n 801ec7e - 801ec40: 687b ldr r3, [r7, #4] - 801ec42: 681b ldr r3, [r3, #0] - 801ec44: 2b00 cmp r3, #0 - 801ec46: d01a beq.n 801ec7e - 801ec48: 683b ldr r3, [r7, #0] - 801ec4a: 2b00 cmp r3, #0 - 801ec4c: d017 beq.n 801ec7e - 801ec4e: 683b ldr r3, [r7, #0] - 801ec50: 681b ldr r3, [r3, #0] - 801ec52: 2b00 cmp r3, #0 - 801ec54: d013 beq.n 801ec7e - for (upcb = udp_pcbs; upcb != NULL; upcb = upcb->next) { - 801ec56: 4b0d ldr r3, [pc, #52] ; (801ec8c ) - 801ec58: 681b ldr r3, [r3, #0] - 801ec5a: 60fb str r3, [r7, #12] - 801ec5c: e00c b.n 801ec78 - /* PCB bound to current local interface address? */ - if (ip_addr_cmp(&upcb->local_ip, old_addr)) { - 801ec5e: 68fb ldr r3, [r7, #12] - 801ec60: 681a ldr r2, [r3, #0] - 801ec62: 687b ldr r3, [r7, #4] - 801ec64: 681b ldr r3, [r3, #0] - 801ec66: 429a cmp r2, r3 - 801ec68: d103 bne.n 801ec72 - /* 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); - 801ec6a: 683b ldr r3, [r7, #0] - 801ec6c: 681a ldr r2, [r3, #0] - 801ec6e: 68fb ldr r3, [r7, #12] - 801ec70: 601a str r2, [r3, #0] - for (upcb = udp_pcbs; upcb != NULL; upcb = upcb->next) { - 801ec72: 68fb ldr r3, [r7, #12] - 801ec74: 68db ldr r3, [r3, #12] - 801ec76: 60fb str r3, [r7, #12] - 801ec78: 68fb ldr r3, [r7, #12] - 801ec7a: 2b00 cmp r3, #0 - 801ec7c: d1ef bne.n 801ec5e - } - } - } -} - 801ec7e: bf00 nop - 801ec80: 3714 adds r7, #20 - 801ec82: 46bd mov sp, r7 - 801ec84: f85d 7b04 ldr.w r7, [sp], #4 - 801ec88: 4770 bx lr - 801ec8a: bf00 nop - 801ec8c: 2401a4e0 .word 0x2401a4e0 - -0801ec90 : -#endif /* ARP_QUEUEING */ - -/** Clean up ARP table entries */ -static void -etharp_free_entry(int i) -{ - 801ec90: b580 push {r7, lr} - 801ec92: b082 sub sp, #8 - 801ec94: af00 add r7, sp, #0 - 801ec96: 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) { - 801ec98: 492b ldr r1, [pc, #172] ; (801ed48 ) - 801ec9a: 687a ldr r2, [r7, #4] - 801ec9c: 4613 mov r3, r2 - 801ec9e: 005b lsls r3, r3, #1 - 801eca0: 4413 add r3, r2 - 801eca2: 00db lsls r3, r3, #3 - 801eca4: 440b add r3, r1 - 801eca6: 681b ldr r3, [r3, #0] - 801eca8: 2b00 cmp r3, #0 - 801ecaa: d013 beq.n 801ecd4 - /* 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); - 801ecac: 4926 ldr r1, [pc, #152] ; (801ed48 ) - 801ecae: 687a ldr r2, [r7, #4] - 801ecb0: 4613 mov r3, r2 - 801ecb2: 005b lsls r3, r3, #1 - 801ecb4: 4413 add r3, r2 - 801ecb6: 00db lsls r3, r3, #3 - 801ecb8: 440b add r3, r1 - 801ecba: 681b ldr r3, [r3, #0] - 801ecbc: 4618 mov r0, r3 - 801ecbe: f7f8 ff1b bl 8017af8 - arp_table[i].q = NULL; - 801ecc2: 4921 ldr r1, [pc, #132] ; (801ed48 ) - 801ecc4: 687a ldr r2, [r7, #4] - 801ecc6: 4613 mov r3, r2 - 801ecc8: 005b lsls r3, r3, #1 - 801ecca: 4413 add r3, r2 - 801eccc: 00db lsls r3, r3, #3 - 801ecce: 440b add r3, r1 - 801ecd0: 2200 movs r2, #0 - 801ecd2: 601a str r2, [r3, #0] - } - /* recycle entry for re-use */ - arp_table[i].state = ETHARP_STATE_EMPTY; - 801ecd4: 491c ldr r1, [pc, #112] ; (801ed48 ) - 801ecd6: 687a ldr r2, [r7, #4] - 801ecd8: 4613 mov r3, r2 - 801ecda: 005b lsls r3, r3, #1 - 801ecdc: 4413 add r3, r2 - 801ecde: 00db lsls r3, r3, #3 - 801ece0: 440b add r3, r1 - 801ece2: 3314 adds r3, #20 - 801ece4: 2200 movs r2, #0 - 801ece6: 701a strb r2, [r3, #0] -#ifdef LWIP_DEBUG - /* for debugging, clean out the complete entry */ - arp_table[i].ctime = 0; - 801ece8: 4917 ldr r1, [pc, #92] ; (801ed48 ) - 801ecea: 687a ldr r2, [r7, #4] - 801ecec: 4613 mov r3, r2 - 801ecee: 005b lsls r3, r3, #1 - 801ecf0: 4413 add r3, r2 - 801ecf2: 00db lsls r3, r3, #3 - 801ecf4: 440b add r3, r1 - 801ecf6: 3312 adds r3, #18 - 801ecf8: 2200 movs r2, #0 - 801ecfa: 801a strh r2, [r3, #0] - arp_table[i].netif = NULL; - 801ecfc: 4912 ldr r1, [pc, #72] ; (801ed48 ) - 801ecfe: 687a ldr r2, [r7, #4] - 801ed00: 4613 mov r3, r2 - 801ed02: 005b lsls r3, r3, #1 - 801ed04: 4413 add r3, r2 - 801ed06: 00db lsls r3, r3, #3 - 801ed08: 440b add r3, r1 - 801ed0a: 3308 adds r3, #8 - 801ed0c: 2200 movs r2, #0 - 801ed0e: 601a str r2, [r3, #0] - ip4_addr_set_zero(&arp_table[i].ipaddr); - 801ed10: 490d ldr r1, [pc, #52] ; (801ed48 ) - 801ed12: 687a ldr r2, [r7, #4] - 801ed14: 4613 mov r3, r2 - 801ed16: 005b lsls r3, r3, #1 - 801ed18: 4413 add r3, r2 - 801ed1a: 00db lsls r3, r3, #3 - 801ed1c: 440b add r3, r1 - 801ed1e: 3304 adds r3, #4 - 801ed20: 2200 movs r2, #0 - 801ed22: 601a str r2, [r3, #0] - arp_table[i].ethaddr = ethzero; - 801ed24: 4908 ldr r1, [pc, #32] ; (801ed48 ) - 801ed26: 687a ldr r2, [r7, #4] - 801ed28: 4613 mov r3, r2 - 801ed2a: 005b lsls r3, r3, #1 - 801ed2c: 4413 add r3, r2 - 801ed2e: 00db lsls r3, r3, #3 - 801ed30: 440b add r3, r1 - 801ed32: 3308 adds r3, #8 - 801ed34: 4a05 ldr r2, [pc, #20] ; (801ed4c ) - 801ed36: 3304 adds r3, #4 - 801ed38: 6810 ldr r0, [r2, #0] - 801ed3a: 6018 str r0, [r3, #0] - 801ed3c: 8892 ldrh r2, [r2, #4] - 801ed3e: 809a strh r2, [r3, #4] -#endif /* LWIP_DEBUG */ -} - 801ed40: bf00 nop - 801ed42: 3708 adds r7, #8 - 801ed44: 46bd mov sp, r7 - 801ed46: bd80 pop {r7, pc} - 801ed48: 2401a4e4 .word 0x2401a4e4 - 801ed4c: 08026cf8 .word 0x08026cf8 - -0801ed50 : - * 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) -{ - 801ed50: b580 push {r7, lr} - 801ed52: b082 sub sp, #8 - 801ed54: 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) { - 801ed56: 2300 movs r3, #0 - 801ed58: 607b str r3, [r7, #4] - 801ed5a: e096 b.n 801ee8a - u8_t state = arp_table[i].state; - 801ed5c: 494f ldr r1, [pc, #316] ; (801ee9c ) - 801ed5e: 687a ldr r2, [r7, #4] - 801ed60: 4613 mov r3, r2 - 801ed62: 005b lsls r3, r3, #1 - 801ed64: 4413 add r3, r2 - 801ed66: 00db lsls r3, r3, #3 - 801ed68: 440b add r3, r1 - 801ed6a: 3314 adds r3, #20 - 801ed6c: 781b ldrb r3, [r3, #0] - 801ed6e: 70fb strb r3, [r7, #3] - if (state != ETHARP_STATE_EMPTY - 801ed70: 78fb ldrb r3, [r7, #3] - 801ed72: 2b00 cmp r3, #0 - 801ed74: f000 8086 beq.w 801ee84 -#if ETHARP_SUPPORT_STATIC_ENTRIES - && (state != ETHARP_STATE_STATIC) -#endif /* ETHARP_SUPPORT_STATIC_ENTRIES */ - ) { - arp_table[i].ctime++; - 801ed78: 4948 ldr r1, [pc, #288] ; (801ee9c ) - 801ed7a: 687a ldr r2, [r7, #4] - 801ed7c: 4613 mov r3, r2 - 801ed7e: 005b lsls r3, r3, #1 - 801ed80: 4413 add r3, r2 - 801ed82: 00db lsls r3, r3, #3 - 801ed84: 440b add r3, r1 - 801ed86: 3312 adds r3, #18 - 801ed88: 881b ldrh r3, [r3, #0] - 801ed8a: 3301 adds r3, #1 - 801ed8c: b298 uxth r0, r3 - 801ed8e: 4943 ldr r1, [pc, #268] ; (801ee9c ) - 801ed90: 687a ldr r2, [r7, #4] - 801ed92: 4613 mov r3, r2 - 801ed94: 005b lsls r3, r3, #1 - 801ed96: 4413 add r3, r2 - 801ed98: 00db lsls r3, r3, #3 - 801ed9a: 440b add r3, r1 - 801ed9c: 3312 adds r3, #18 - 801ed9e: 4602 mov r2, r0 - 801eda0: 801a strh r2, [r3, #0] - if ((arp_table[i].ctime >= ARP_MAXAGE) || - 801eda2: 493e ldr r1, [pc, #248] ; (801ee9c ) - 801eda4: 687a ldr r2, [r7, #4] - 801eda6: 4613 mov r3, r2 - 801eda8: 005b lsls r3, r3, #1 - 801edaa: 4413 add r3, r2 - 801edac: 00db lsls r3, r3, #3 - 801edae: 440b add r3, r1 - 801edb0: 3312 adds r3, #18 - 801edb2: 881b ldrh r3, [r3, #0] - 801edb4: f5b3 7f96 cmp.w r3, #300 ; 0x12c - 801edb8: d215 bcs.n 801ede6 - ((arp_table[i].state == ETHARP_STATE_PENDING) && - 801edba: 4938 ldr r1, [pc, #224] ; (801ee9c ) - 801edbc: 687a ldr r2, [r7, #4] - 801edbe: 4613 mov r3, r2 - 801edc0: 005b lsls r3, r3, #1 - 801edc2: 4413 add r3, r2 - 801edc4: 00db lsls r3, r3, #3 - 801edc6: 440b add r3, r1 - 801edc8: 3314 adds r3, #20 - 801edca: 781b ldrb r3, [r3, #0] - if ((arp_table[i].ctime >= ARP_MAXAGE) || - 801edcc: 2b01 cmp r3, #1 - 801edce: d10e bne.n 801edee - (arp_table[i].ctime >= ARP_MAXPENDING))) { - 801edd0: 4932 ldr r1, [pc, #200] ; (801ee9c ) - 801edd2: 687a ldr r2, [r7, #4] - 801edd4: 4613 mov r3, r2 - 801edd6: 005b lsls r3, r3, #1 - 801edd8: 4413 add r3, r2 - 801edda: 00db lsls r3, r3, #3 - 801eddc: 440b add r3, r1 - 801edde: 3312 adds r3, #18 - 801ede0: 881b ldrh r3, [r3, #0] - ((arp_table[i].state == ETHARP_STATE_PENDING) && - 801ede2: 2b04 cmp r3, #4 - 801ede4: d903 bls.n 801edee - /* 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); - 801ede6: 6878 ldr r0, [r7, #4] - 801ede8: f7ff ff52 bl 801ec90 - 801edec: e04a b.n 801ee84 - } else if (arp_table[i].state == ETHARP_STATE_STABLE_REREQUESTING_1) { - 801edee: 492b ldr r1, [pc, #172] ; (801ee9c ) - 801edf0: 687a ldr r2, [r7, #4] - 801edf2: 4613 mov r3, r2 - 801edf4: 005b lsls r3, r3, #1 - 801edf6: 4413 add r3, r2 - 801edf8: 00db lsls r3, r3, #3 - 801edfa: 440b add r3, r1 - 801edfc: 3314 adds r3, #20 - 801edfe: 781b ldrb r3, [r3, #0] - 801ee00: 2b03 cmp r3, #3 - 801ee02: d10a bne.n 801ee1a - /* Don't send more than one request every 2 seconds. */ - arp_table[i].state = ETHARP_STATE_STABLE_REREQUESTING_2; - 801ee04: 4925 ldr r1, [pc, #148] ; (801ee9c ) - 801ee06: 687a ldr r2, [r7, #4] - 801ee08: 4613 mov r3, r2 - 801ee0a: 005b lsls r3, r3, #1 - 801ee0c: 4413 add r3, r2 - 801ee0e: 00db lsls r3, r3, #3 - 801ee10: 440b add r3, r1 - 801ee12: 3314 adds r3, #20 - 801ee14: 2204 movs r2, #4 - 801ee16: 701a strb r2, [r3, #0] - 801ee18: e034 b.n 801ee84 - } else if (arp_table[i].state == ETHARP_STATE_STABLE_REREQUESTING_2) { - 801ee1a: 4920 ldr r1, [pc, #128] ; (801ee9c ) - 801ee1c: 687a ldr r2, [r7, #4] - 801ee1e: 4613 mov r3, r2 - 801ee20: 005b lsls r3, r3, #1 - 801ee22: 4413 add r3, r2 - 801ee24: 00db lsls r3, r3, #3 - 801ee26: 440b add r3, r1 - 801ee28: 3314 adds r3, #20 - 801ee2a: 781b ldrb r3, [r3, #0] - 801ee2c: 2b04 cmp r3, #4 - 801ee2e: d10a bne.n 801ee46 - /* Reset state to stable, so that the next transmitted packet will - re-send an ARP request. */ - arp_table[i].state = ETHARP_STATE_STABLE; - 801ee30: 491a ldr r1, [pc, #104] ; (801ee9c ) - 801ee32: 687a ldr r2, [r7, #4] - 801ee34: 4613 mov r3, r2 - 801ee36: 005b lsls r3, r3, #1 - 801ee38: 4413 add r3, r2 - 801ee3a: 00db lsls r3, r3, #3 - 801ee3c: 440b add r3, r1 - 801ee3e: 3314 adds r3, #20 - 801ee40: 2202 movs r2, #2 - 801ee42: 701a strb r2, [r3, #0] - 801ee44: e01e b.n 801ee84 - } else if (arp_table[i].state == ETHARP_STATE_PENDING) { - 801ee46: 4915 ldr r1, [pc, #84] ; (801ee9c ) - 801ee48: 687a ldr r2, [r7, #4] - 801ee4a: 4613 mov r3, r2 - 801ee4c: 005b lsls r3, r3, #1 - 801ee4e: 4413 add r3, r2 - 801ee50: 00db lsls r3, r3, #3 - 801ee52: 440b add r3, r1 - 801ee54: 3314 adds r3, #20 - 801ee56: 781b ldrb r3, [r3, #0] - 801ee58: 2b01 cmp r3, #1 - 801ee5a: d113 bne.n 801ee84 - /* still pending, resend an ARP query */ - etharp_request(arp_table[i].netif, &arp_table[i].ipaddr); - 801ee5c: 490f ldr r1, [pc, #60] ; (801ee9c ) - 801ee5e: 687a ldr r2, [r7, #4] - 801ee60: 4613 mov r3, r2 - 801ee62: 005b lsls r3, r3, #1 - 801ee64: 4413 add r3, r2 - 801ee66: 00db lsls r3, r3, #3 - 801ee68: 440b add r3, r1 - 801ee6a: 3308 adds r3, #8 - 801ee6c: 6818 ldr r0, [r3, #0] - 801ee6e: 687a ldr r2, [r7, #4] - 801ee70: 4613 mov r3, r2 - 801ee72: 005b lsls r3, r3, #1 - 801ee74: 4413 add r3, r2 - 801ee76: 00db lsls r3, r3, #3 - 801ee78: 4a08 ldr r2, [pc, #32] ; (801ee9c ) - 801ee7a: 4413 add r3, r2 - 801ee7c: 3304 adds r3, #4 - 801ee7e: 4619 mov r1, r3 - 801ee80: f000 fe6e bl 801fb60 - for (i = 0; i < ARP_TABLE_SIZE; ++i) { - 801ee84: 687b ldr r3, [r7, #4] - 801ee86: 3301 adds r3, #1 - 801ee88: 607b str r3, [r7, #4] - 801ee8a: 687b ldr r3, [r7, #4] - 801ee8c: 2b09 cmp r3, #9 - 801ee8e: f77f af65 ble.w 801ed5c - } - } - } -} - 801ee92: bf00 nop - 801ee94: bf00 nop - 801ee96: 3708 adds r7, #8 - 801ee98: 46bd mov sp, r7 - 801ee9a: bd80 pop {r7, pc} - 801ee9c: 2401a4e4 .word 0x2401a4e4 - -0801eea0 : - * @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) -{ - 801eea0: b580 push {r7, lr} - 801eea2: b08a sub sp, #40 ; 0x28 - 801eea4: af00 add r7, sp, #0 - 801eea6: 60f8 str r0, [r7, #12] - 801eea8: 460b mov r3, r1 - 801eeaa: 607a str r2, [r7, #4] - 801eeac: 72fb strb r3, [r7, #11] - s16_t old_pending = ARP_TABLE_SIZE, old_stable = ARP_TABLE_SIZE; - 801eeae: 230a movs r3, #10 - 801eeb0: 843b strh r3, [r7, #32] - 801eeb2: 230a movs r3, #10 - 801eeb4: 847b strh r3, [r7, #34] ; 0x22 - s16_t empty = ARP_TABLE_SIZE; - 801eeb6: 230a movs r3, #10 - 801eeb8: 84bb strh r3, [r7, #36] ; 0x24 - s16_t i = 0; - 801eeba: 2300 movs r3, #0 - 801eebc: 84fb strh r3, [r7, #38] ; 0x26 - /* oldest entry with packets on queue */ - s16_t old_queue = ARP_TABLE_SIZE; - 801eebe: 230a movs r3, #10 - 801eec0: 83fb strh r3, [r7, #30] - /* its age */ - u16_t age_queue = 0, age_pending = 0, age_stable = 0; - 801eec2: 2300 movs r3, #0 - 801eec4: 83bb strh r3, [r7, #28] - 801eec6: 2300 movs r3, #0 - 801eec8: 837b strh r3, [r7, #26] - 801eeca: 2300 movs r3, #0 - 801eecc: 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) { - 801eece: 2300 movs r3, #0 - 801eed0: 84fb strh r3, [r7, #38] ; 0x26 - 801eed2: e0ae b.n 801f032 - u8_t state = arp_table[i].state; - 801eed4: f9b7 2026 ldrsh.w r2, [r7, #38] ; 0x26 - 801eed8: 49a6 ldr r1, [pc, #664] ; (801f174 ) - 801eeda: 4613 mov r3, r2 - 801eedc: 005b lsls r3, r3, #1 - 801eede: 4413 add r3, r2 - 801eee0: 00db lsls r3, r3, #3 - 801eee2: 440b add r3, r1 - 801eee4: 3314 adds r3, #20 - 801eee6: 781b ldrb r3, [r3, #0] - 801eee8: 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)) { - 801eeea: f9b7 3024 ldrsh.w r3, [r7, #36] ; 0x24 - 801eeee: 2b0a cmp r3, #10 - 801eef0: d105 bne.n 801eefe - 801eef2: 7dfb ldrb r3, [r7, #23] - 801eef4: 2b00 cmp r3, #0 - 801eef6: d102 bne.n 801eefe - LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_find_entry: found empty entry %d\n", (int)i)); - /* remember first empty entry */ - empty = i; - 801eef8: 8cfb ldrh r3, [r7, #38] ; 0x26 - 801eefa: 84bb strh r3, [r7, #36] ; 0x24 - 801eefc: e095 b.n 801f02a - } else if (state != ETHARP_STATE_EMPTY) { - 801eefe: 7dfb ldrb r3, [r7, #23] - 801ef00: 2b00 cmp r3, #0 - 801ef02: f000 8092 beq.w 801f02a - LWIP_ASSERT("state == ETHARP_STATE_PENDING || state >= ETHARP_STATE_STABLE", - 801ef06: 7dfb ldrb r3, [r7, #23] - 801ef08: 2b01 cmp r3, #1 - 801ef0a: d009 beq.n 801ef20 - 801ef0c: 7dfb ldrb r3, [r7, #23] - 801ef0e: 2b01 cmp r3, #1 - 801ef10: d806 bhi.n 801ef20 - 801ef12: 4b99 ldr r3, [pc, #612] ; (801f178 ) - 801ef14: f240 1223 movw r2, #291 ; 0x123 - 801ef18: 4998 ldr r1, [pc, #608] ; (801f17c ) - 801ef1a: 4899 ldr r0, [pc, #612] ; (801f180 ) - 801ef1c: f002 fd34 bl 8021988 - 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) - 801ef20: 68fb ldr r3, [r7, #12] - 801ef22: 2b00 cmp r3, #0 - 801ef24: d020 beq.n 801ef68 - 801ef26: 68fb ldr r3, [r7, #12] - 801ef28: 6819 ldr r1, [r3, #0] - 801ef2a: f9b7 2026 ldrsh.w r2, [r7, #38] ; 0x26 - 801ef2e: 4891 ldr r0, [pc, #580] ; (801f174 ) - 801ef30: 4613 mov r3, r2 - 801ef32: 005b lsls r3, r3, #1 - 801ef34: 4413 add r3, r2 - 801ef36: 00db lsls r3, r3, #3 - 801ef38: 4403 add r3, r0 - 801ef3a: 3304 adds r3, #4 - 801ef3c: 681b ldr r3, [r3, #0] - 801ef3e: 4299 cmp r1, r3 - 801ef40: d112 bne.n 801ef68 -#if ETHARP_TABLE_MATCH_NETIF - && ((netif == NULL) || (netif == arp_table[i].netif)) - 801ef42: 687b ldr r3, [r7, #4] - 801ef44: 2b00 cmp r3, #0 - 801ef46: d00c beq.n 801ef62 - 801ef48: f9b7 2026 ldrsh.w r2, [r7, #38] ; 0x26 - 801ef4c: 4989 ldr r1, [pc, #548] ; (801f174 ) - 801ef4e: 4613 mov r3, r2 - 801ef50: 005b lsls r3, r3, #1 - 801ef52: 4413 add r3, r2 - 801ef54: 00db lsls r3, r3, #3 - 801ef56: 440b add r3, r1 - 801ef58: 3308 adds r3, #8 - 801ef5a: 681b ldr r3, [r3, #0] - 801ef5c: 687a ldr r2, [r7, #4] - 801ef5e: 429a cmp r2, r3 - 801ef60: d102 bne.n 801ef68 -#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; - 801ef62: f9b7 3026 ldrsh.w r3, [r7, #38] ; 0x26 - 801ef66: e100 b.n 801f16a - } - /* pending entry? */ - if (state == ETHARP_STATE_PENDING) { - 801ef68: 7dfb ldrb r3, [r7, #23] - 801ef6a: 2b01 cmp r3, #1 - 801ef6c: d140 bne.n 801eff0 - /* pending with queued packets? */ - if (arp_table[i].q != NULL) { - 801ef6e: f9b7 2026 ldrsh.w r2, [r7, #38] ; 0x26 - 801ef72: 4980 ldr r1, [pc, #512] ; (801f174 ) - 801ef74: 4613 mov r3, r2 - 801ef76: 005b lsls r3, r3, #1 - 801ef78: 4413 add r3, r2 - 801ef7a: 00db lsls r3, r3, #3 - 801ef7c: 440b add r3, r1 - 801ef7e: 681b ldr r3, [r3, #0] - 801ef80: 2b00 cmp r3, #0 - 801ef82: d01a beq.n 801efba - if (arp_table[i].ctime >= age_queue) { - 801ef84: f9b7 2026 ldrsh.w r2, [r7, #38] ; 0x26 - 801ef88: 497a ldr r1, [pc, #488] ; (801f174 ) - 801ef8a: 4613 mov r3, r2 - 801ef8c: 005b lsls r3, r3, #1 - 801ef8e: 4413 add r3, r2 - 801ef90: 00db lsls r3, r3, #3 - 801ef92: 440b add r3, r1 - 801ef94: 3312 adds r3, #18 - 801ef96: 881b ldrh r3, [r3, #0] - 801ef98: 8bba ldrh r2, [r7, #28] - 801ef9a: 429a cmp r2, r3 - 801ef9c: d845 bhi.n 801f02a - old_queue = i; - 801ef9e: 8cfb ldrh r3, [r7, #38] ; 0x26 - 801efa0: 83fb strh r3, [r7, #30] - age_queue = arp_table[i].ctime; - 801efa2: f9b7 2026 ldrsh.w r2, [r7, #38] ; 0x26 - 801efa6: 4973 ldr r1, [pc, #460] ; (801f174 ) - 801efa8: 4613 mov r3, r2 - 801efaa: 005b lsls r3, r3, #1 - 801efac: 4413 add r3, r2 - 801efae: 00db lsls r3, r3, #3 - 801efb0: 440b add r3, r1 - 801efb2: 3312 adds r3, #18 - 801efb4: 881b ldrh r3, [r3, #0] - 801efb6: 83bb strh r3, [r7, #28] - 801efb8: e037 b.n 801f02a - } - } else - /* pending without queued packets? */ - { - if (arp_table[i].ctime >= age_pending) { - 801efba: f9b7 2026 ldrsh.w r2, [r7, #38] ; 0x26 - 801efbe: 496d ldr r1, [pc, #436] ; (801f174 ) - 801efc0: 4613 mov r3, r2 - 801efc2: 005b lsls r3, r3, #1 - 801efc4: 4413 add r3, r2 - 801efc6: 00db lsls r3, r3, #3 - 801efc8: 440b add r3, r1 - 801efca: 3312 adds r3, #18 - 801efcc: 881b ldrh r3, [r3, #0] - 801efce: 8b7a ldrh r2, [r7, #26] - 801efd0: 429a cmp r2, r3 - 801efd2: d82a bhi.n 801f02a - old_pending = i; - 801efd4: 8cfb ldrh r3, [r7, #38] ; 0x26 - 801efd6: 843b strh r3, [r7, #32] - age_pending = arp_table[i].ctime; - 801efd8: f9b7 2026 ldrsh.w r2, [r7, #38] ; 0x26 - 801efdc: 4965 ldr r1, [pc, #404] ; (801f174 ) - 801efde: 4613 mov r3, r2 - 801efe0: 005b lsls r3, r3, #1 - 801efe2: 4413 add r3, r2 - 801efe4: 00db lsls r3, r3, #3 - 801efe6: 440b add r3, r1 - 801efe8: 3312 adds r3, #18 - 801efea: 881b ldrh r3, [r3, #0] - 801efec: 837b strh r3, [r7, #26] - 801efee: e01c b.n 801f02a - } - } - /* stable entry? */ - } else if (state >= ETHARP_STATE_STABLE) { - 801eff0: 7dfb ldrb r3, [r7, #23] - 801eff2: 2b01 cmp r3, #1 - 801eff4: d919 bls.n 801f02a - /* 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) { - 801eff6: f9b7 2026 ldrsh.w r2, [r7, #38] ; 0x26 - 801effa: 495e ldr r1, [pc, #376] ; (801f174 ) - 801effc: 4613 mov r3, r2 - 801effe: 005b lsls r3, r3, #1 - 801f000: 4413 add r3, r2 - 801f002: 00db lsls r3, r3, #3 - 801f004: 440b add r3, r1 - 801f006: 3312 adds r3, #18 - 801f008: 881b ldrh r3, [r3, #0] - 801f00a: 8b3a ldrh r2, [r7, #24] - 801f00c: 429a cmp r2, r3 - 801f00e: d80c bhi.n 801f02a - old_stable = i; - 801f010: 8cfb ldrh r3, [r7, #38] ; 0x26 - 801f012: 847b strh r3, [r7, #34] ; 0x22 - age_stable = arp_table[i].ctime; - 801f014: f9b7 2026 ldrsh.w r2, [r7, #38] ; 0x26 - 801f018: 4956 ldr r1, [pc, #344] ; (801f174 ) - 801f01a: 4613 mov r3, r2 - 801f01c: 005b lsls r3, r3, #1 - 801f01e: 4413 add r3, r2 - 801f020: 00db lsls r3, r3, #3 - 801f022: 440b add r3, r1 - 801f024: 3312 adds r3, #18 - 801f026: 881b ldrh r3, [r3, #0] - 801f028: 833b strh r3, [r7, #24] - for (i = 0; i < ARP_TABLE_SIZE; ++i) { - 801f02a: 8cfb ldrh r3, [r7, #38] ; 0x26 - 801f02c: 3301 adds r3, #1 - 801f02e: b29b uxth r3, r3 - 801f030: 84fb strh r3, [r7, #38] ; 0x26 - 801f032: f9b7 3026 ldrsh.w r3, [r7, #38] ; 0x26 - 801f036: 2b09 cmp r3, #9 - 801f038: f77f af4c ble.w 801eed4 - } - } - /* { we have no match } => try to create a new entry */ - - /* don't create new entry, only search? */ - if (((flags & ETHARP_FLAG_FIND_ONLY) != 0) || - 801f03c: 7afb ldrb r3, [r7, #11] - 801f03e: f003 0302 and.w r3, r3, #2 - 801f042: 2b00 cmp r3, #0 - 801f044: d108 bne.n 801f058 - 801f046: f9b7 3024 ldrsh.w r3, [r7, #36] ; 0x24 - 801f04a: 2b0a cmp r3, #10 - 801f04c: d107 bne.n 801f05e - /* or no empty entry found and not allowed to recycle? */ - ((empty == ARP_TABLE_SIZE) && ((flags & ETHARP_FLAG_TRY_HARD) == 0))) { - 801f04e: 7afb ldrb r3, [r7, #11] - 801f050: f003 0301 and.w r3, r3, #1 - 801f054: 2b00 cmp r3, #0 - 801f056: d102 bne.n 801f05e - 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; - 801f058: f04f 33ff mov.w r3, #4294967295 - 801f05c: e085 b.n 801f16a - * - * { ETHARP_FLAG_TRY_HARD is set at this point } - */ - - /* 1) empty entry available? */ - if (empty < ARP_TABLE_SIZE) { - 801f05e: f9b7 3024 ldrsh.w r3, [r7, #36] ; 0x24 - 801f062: 2b09 cmp r3, #9 - 801f064: dc02 bgt.n 801f06c - i = empty; - 801f066: 8cbb ldrh r3, [r7, #36] ; 0x24 - 801f068: 84fb strh r3, [r7, #38] ; 0x26 - 801f06a: e039 b.n 801f0e0 - 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) { - 801f06c: f9b7 3022 ldrsh.w r3, [r7, #34] ; 0x22 - 801f070: 2b09 cmp r3, #9 - 801f072: dc14 bgt.n 801f09e - /* recycle oldest stable*/ - i = old_stable; - 801f074: 8c7b ldrh r3, [r7, #34] ; 0x22 - 801f076: 84fb strh r3, [r7, #38] ; 0x26 - 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); - 801f078: f9b7 2026 ldrsh.w r2, [r7, #38] ; 0x26 - 801f07c: 493d ldr r1, [pc, #244] ; (801f174 ) - 801f07e: 4613 mov r3, r2 - 801f080: 005b lsls r3, r3, #1 - 801f082: 4413 add r3, r2 - 801f084: 00db lsls r3, r3, #3 - 801f086: 440b add r3, r1 - 801f088: 681b ldr r3, [r3, #0] - 801f08a: 2b00 cmp r3, #0 - 801f08c: d018 beq.n 801f0c0 - 801f08e: 4b3a ldr r3, [pc, #232] ; (801f178 ) - 801f090: f240 126d movw r2, #365 ; 0x16d - 801f094: 493b ldr r1, [pc, #236] ; (801f184 ) - 801f096: 483a ldr r0, [pc, #232] ; (801f180 ) - 801f098: f002 fc76 bl 8021988 - 801f09c: e010 b.n 801f0c0 - /* 3) found recyclable pending entry without queued packets? */ - } else if (old_pending < ARP_TABLE_SIZE) { - 801f09e: f9b7 3020 ldrsh.w r3, [r7, #32] - 801f0a2: 2b09 cmp r3, #9 - 801f0a4: dc02 bgt.n 801f0ac - /* recycle oldest pending */ - i = old_pending; - 801f0a6: 8c3b ldrh r3, [r7, #32] - 801f0a8: 84fb strh r3, [r7, #38] ; 0x26 - 801f0aa: e009 b.n 801f0c0 - 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) { - 801f0ac: f9b7 301e ldrsh.w r3, [r7, #30] - 801f0b0: 2b09 cmp r3, #9 - 801f0b2: dc02 bgt.n 801f0ba - /* recycle oldest pending (queued packets are free in etharp_free_entry) */ - i = old_queue; - 801f0b4: 8bfb ldrh r3, [r7, #30] - 801f0b6: 84fb strh r3, [r7, #38] ; 0x26 - 801f0b8: e002 b.n 801f0c0 - 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; - 801f0ba: f04f 33ff mov.w r3, #4294967295 - 801f0be: e054 b.n 801f16a - } - - /* { empty or recyclable entry found } */ - LWIP_ASSERT("i < ARP_TABLE_SIZE", i < ARP_TABLE_SIZE); - 801f0c0: f9b7 3026 ldrsh.w r3, [r7, #38] ; 0x26 - 801f0c4: 2b09 cmp r3, #9 - 801f0c6: dd06 ble.n 801f0d6 - 801f0c8: 4b2b ldr r3, [pc, #172] ; (801f178 ) - 801f0ca: f240 127f movw r2, #383 ; 0x17f - 801f0ce: 492e ldr r1, [pc, #184] ; (801f188 ) - 801f0d0: 482b ldr r0, [pc, #172] ; (801f180 ) - 801f0d2: f002 fc59 bl 8021988 - etharp_free_entry(i); - 801f0d6: f9b7 3026 ldrsh.w r3, [r7, #38] ; 0x26 - 801f0da: 4618 mov r0, r3 - 801f0dc: f7ff fdd8 bl 801ec90 - } - - LWIP_ASSERT("i < ARP_TABLE_SIZE", i < ARP_TABLE_SIZE); - 801f0e0: f9b7 3026 ldrsh.w r3, [r7, #38] ; 0x26 - 801f0e4: 2b09 cmp r3, #9 - 801f0e6: dd06 ble.n 801f0f6 - 801f0e8: 4b23 ldr r3, [pc, #140] ; (801f178 ) - 801f0ea: f240 1283 movw r2, #387 ; 0x183 - 801f0ee: 4926 ldr r1, [pc, #152] ; (801f188 ) - 801f0f0: 4823 ldr r0, [pc, #140] ; (801f180 ) - 801f0f2: f002 fc49 bl 8021988 - LWIP_ASSERT("arp_table[i].state == ETHARP_STATE_EMPTY", - 801f0f6: f9b7 2026 ldrsh.w r2, [r7, #38] ; 0x26 - 801f0fa: 491e ldr r1, [pc, #120] ; (801f174 ) - 801f0fc: 4613 mov r3, r2 - 801f0fe: 005b lsls r3, r3, #1 - 801f100: 4413 add r3, r2 - 801f102: 00db lsls r3, r3, #3 - 801f104: 440b add r3, r1 - 801f106: 3314 adds r3, #20 - 801f108: 781b ldrb r3, [r3, #0] - 801f10a: 2b00 cmp r3, #0 - 801f10c: d006 beq.n 801f11c - 801f10e: 4b1a ldr r3, [pc, #104] ; (801f178 ) - 801f110: f44f 72c2 mov.w r2, #388 ; 0x184 - 801f114: 491d ldr r1, [pc, #116] ; (801f18c ) - 801f116: 481a ldr r0, [pc, #104] ; (801f180 ) - 801f118: f002 fc36 bl 8021988 - arp_table[i].state == ETHARP_STATE_EMPTY); - - /* IP address given? */ - if (ipaddr != NULL) { - 801f11c: 68fb ldr r3, [r7, #12] - 801f11e: 2b00 cmp r3, #0 - 801f120: d00b beq.n 801f13a - /* set IP address */ - ip4_addr_copy(arp_table[i].ipaddr, *ipaddr); - 801f122: f9b7 2026 ldrsh.w r2, [r7, #38] ; 0x26 - 801f126: 68fb ldr r3, [r7, #12] - 801f128: 6819 ldr r1, [r3, #0] - 801f12a: 4812 ldr r0, [pc, #72] ; (801f174 ) - 801f12c: 4613 mov r3, r2 - 801f12e: 005b lsls r3, r3, #1 - 801f130: 4413 add r3, r2 - 801f132: 00db lsls r3, r3, #3 - 801f134: 4403 add r3, r0 - 801f136: 3304 adds r3, #4 - 801f138: 6019 str r1, [r3, #0] - } - arp_table[i].ctime = 0; - 801f13a: f9b7 2026 ldrsh.w r2, [r7, #38] ; 0x26 - 801f13e: 490d ldr r1, [pc, #52] ; (801f174 ) - 801f140: 4613 mov r3, r2 - 801f142: 005b lsls r3, r3, #1 - 801f144: 4413 add r3, r2 - 801f146: 00db lsls r3, r3, #3 - 801f148: 440b add r3, r1 - 801f14a: 3312 adds r3, #18 - 801f14c: 2200 movs r2, #0 - 801f14e: 801a strh r2, [r3, #0] -#if ETHARP_TABLE_MATCH_NETIF - arp_table[i].netif = netif; - 801f150: f9b7 2026 ldrsh.w r2, [r7, #38] ; 0x26 - 801f154: 4907 ldr r1, [pc, #28] ; (801f174 ) - 801f156: 4613 mov r3, r2 - 801f158: 005b lsls r3, r3, #1 - 801f15a: 4413 add r3, r2 - 801f15c: 00db lsls r3, r3, #3 - 801f15e: 440b add r3, r1 - 801f160: 3308 adds r3, #8 - 801f162: 687a ldr r2, [r7, #4] - 801f164: 601a str r2, [r3, #0] -#endif /* ETHARP_TABLE_MATCH_NETIF */ - return (s16_t)i; - 801f166: f9b7 3026 ldrsh.w r3, [r7, #38] ; 0x26 -} - 801f16a: 4618 mov r0, r3 - 801f16c: 3728 adds r7, #40 ; 0x28 - 801f16e: 46bd mov sp, r7 - 801f170: bd80 pop {r7, pc} - 801f172: bf00 nop - 801f174: 2401a4e4 .word 0x2401a4e4 - 801f178: 0802647c .word 0x0802647c - 801f17c: 080264b4 .word 0x080264b4 - 801f180: 080264f4 .word 0x080264f4 - 801f184: 0802651c .word 0x0802651c - 801f188: 08026534 .word 0x08026534 - 801f18c: 08026548 .word 0x08026548 - -0801f190 : - * - * @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) -{ - 801f190: b580 push {r7, lr} - 801f192: b088 sub sp, #32 - 801f194: af02 add r7, sp, #8 - 801f196: 60f8 str r0, [r7, #12] - 801f198: 60b9 str r1, [r7, #8] - 801f19a: 607a str r2, [r7, #4] - 801f19c: 70fb strb r3, [r7, #3] - s16_t i; - LWIP_ASSERT("netif->hwaddr_len == ETH_HWADDR_LEN", netif->hwaddr_len == ETH_HWADDR_LEN); - 801f19e: 68fb ldr r3, [r7, #12] - 801f1a0: f893 302c ldrb.w r3, [r3, #44] ; 0x2c - 801f1a4: 2b06 cmp r3, #6 - 801f1a6: d006 beq.n 801f1b6 - 801f1a8: 4b48 ldr r3, [pc, #288] ; (801f2cc ) - 801f1aa: f240 12a9 movw r2, #425 ; 0x1a9 - 801f1ae: 4948 ldr r1, [pc, #288] ; (801f2d0 ) - 801f1b0: 4848 ldr r0, [pc, #288] ; (801f2d4 ) - 801f1b2: f002 fbe9 bl 8021988 - 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) || - 801f1b6: 68bb ldr r3, [r7, #8] - 801f1b8: 2b00 cmp r3, #0 - 801f1ba: d012 beq.n 801f1e2 - 801f1bc: 68bb ldr r3, [r7, #8] - 801f1be: 681b ldr r3, [r3, #0] - 801f1c0: 2b00 cmp r3, #0 - 801f1c2: d00e beq.n 801f1e2 - ip4_addr_isbroadcast(ipaddr, netif) || - 801f1c4: 68bb ldr r3, [r7, #8] - 801f1c6: 681b ldr r3, [r3, #0] - 801f1c8: 68f9 ldr r1, [r7, #12] - 801f1ca: 4618 mov r0, r3 - 801f1cc: f001 f928 bl 8020420 - 801f1d0: 4603 mov r3, r0 - if (ip4_addr_isany(ipaddr) || - 801f1d2: 2b00 cmp r3, #0 - 801f1d4: d105 bne.n 801f1e2 - ip4_addr_ismulticast(ipaddr)) { - 801f1d6: 68bb ldr r3, [r7, #8] - 801f1d8: 681b ldr r3, [r3, #0] - 801f1da: f003 03f0 and.w r3, r3, #240 ; 0xf0 - ip4_addr_isbroadcast(ipaddr, netif) || - 801f1de: 2be0 cmp r3, #224 ; 0xe0 - 801f1e0: d102 bne.n 801f1e8 - 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; - 801f1e2: f06f 030f mvn.w r3, #15 - 801f1e6: e06c b.n 801f2c2 - } - /* find or create ARP entry */ - i = etharp_find_entry(ipaddr, flags, netif); - 801f1e8: 78fb ldrb r3, [r7, #3] - 801f1ea: 68fa ldr r2, [r7, #12] - 801f1ec: 4619 mov r1, r3 - 801f1ee: 68b8 ldr r0, [r7, #8] - 801f1f0: f7ff fe56 bl 801eea0 - 801f1f4: 4603 mov r3, r0 - 801f1f6: 82fb strh r3, [r7, #22] - /* bail out if no entry could be found */ - if (i < 0) { - 801f1f8: f9b7 3016 ldrsh.w r3, [r7, #22] - 801f1fc: 2b00 cmp r3, #0 - 801f1fe: da02 bge.n 801f206 - return (err_t)i; - 801f200: 8afb ldrh r3, [r7, #22] - 801f202: b25b sxtb r3, r3 - 801f204: e05d b.n 801f2c2 - return ERR_VAL; - } else -#endif /* ETHARP_SUPPORT_STATIC_ENTRIES */ - { - /* mark it stable */ - arp_table[i].state = ETHARP_STATE_STABLE; - 801f206: f9b7 2016 ldrsh.w r2, [r7, #22] - 801f20a: 4933 ldr r1, [pc, #204] ; (801f2d8 ) - 801f20c: 4613 mov r3, r2 - 801f20e: 005b lsls r3, r3, #1 - 801f210: 4413 add r3, r2 - 801f212: 00db lsls r3, r3, #3 - 801f214: 440b add r3, r1 - 801f216: 3314 adds r3, #20 - 801f218: 2202 movs r2, #2 - 801f21a: 701a strb r2, [r3, #0] - } - - /* record network interface */ - arp_table[i].netif = netif; - 801f21c: f9b7 2016 ldrsh.w r2, [r7, #22] - 801f220: 492d ldr r1, [pc, #180] ; (801f2d8 ) - 801f222: 4613 mov r3, r2 - 801f224: 005b lsls r3, r3, #1 - 801f226: 4413 add r3, r2 - 801f228: 00db lsls r3, r3, #3 - 801f22a: 440b add r3, r1 - 801f22c: 3308 adds r3, #8 - 801f22e: 68fa ldr r2, [r7, #12] - 801f230: 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); - 801f232: f9b7 2016 ldrsh.w r2, [r7, #22] - 801f236: 4613 mov r3, r2 - 801f238: 005b lsls r3, r3, #1 - 801f23a: 4413 add r3, r2 - 801f23c: 00db lsls r3, r3, #3 - 801f23e: 3308 adds r3, #8 - 801f240: 4a25 ldr r2, [pc, #148] ; (801f2d8 ) - 801f242: 4413 add r3, r2 - 801f244: 3304 adds r3, #4 - 801f246: 2206 movs r2, #6 - 801f248: 6879 ldr r1, [r7, #4] - 801f24a: 4618 mov r0, r3 - 801f24c: f002 fdcb bl 8021de6 - /* reset time stamp */ - arp_table[i].ctime = 0; - 801f250: f9b7 2016 ldrsh.w r2, [r7, #22] - 801f254: 4920 ldr r1, [pc, #128] ; (801f2d8 ) - 801f256: 4613 mov r3, r2 - 801f258: 005b lsls r3, r3, #1 - 801f25a: 4413 add r3, r2 - 801f25c: 00db lsls r3, r3, #3 - 801f25e: 440b add r3, r1 - 801f260: 3312 adds r3, #18 - 801f262: 2200 movs r2, #0 - 801f264: 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) { - 801f266: f9b7 2016 ldrsh.w r2, [r7, #22] - 801f26a: 491b ldr r1, [pc, #108] ; (801f2d8 ) - 801f26c: 4613 mov r3, r2 - 801f26e: 005b lsls r3, r3, #1 - 801f270: 4413 add r3, r2 - 801f272: 00db lsls r3, r3, #3 - 801f274: 440b add r3, r1 - 801f276: 681b ldr r3, [r3, #0] - 801f278: 2b00 cmp r3, #0 - 801f27a: d021 beq.n 801f2c0 - struct pbuf *p = arp_table[i].q; - 801f27c: f9b7 2016 ldrsh.w r2, [r7, #22] - 801f280: 4915 ldr r1, [pc, #84] ; (801f2d8 ) - 801f282: 4613 mov r3, r2 - 801f284: 005b lsls r3, r3, #1 - 801f286: 4413 add r3, r2 - 801f288: 00db lsls r3, r3, #3 - 801f28a: 440b add r3, r1 - 801f28c: 681b ldr r3, [r3, #0] - 801f28e: 613b str r3, [r7, #16] - arp_table[i].q = NULL; - 801f290: f9b7 2016 ldrsh.w r2, [r7, #22] - 801f294: 4910 ldr r1, [pc, #64] ; (801f2d8 ) - 801f296: 4613 mov r3, r2 - 801f298: 005b lsls r3, r3, #1 - 801f29a: 4413 add r3, r2 - 801f29c: 00db lsls r3, r3, #3 - 801f29e: 440b add r3, r1 - 801f2a0: 2200 movs r2, #0 - 801f2a2: 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); - 801f2a4: 68fb ldr r3, [r7, #12] - 801f2a6: f103 0226 add.w r2, r3, #38 ; 0x26 - 801f2aa: f44f 6300 mov.w r3, #2048 ; 0x800 - 801f2ae: 9300 str r3, [sp, #0] - 801f2b0: 687b ldr r3, [r7, #4] - 801f2b2: 6939 ldr r1, [r7, #16] - 801f2b4: 68f8 ldr r0, [r7, #12] - 801f2b6: f001 ffc1 bl 802123c - /* free the queued IP packet */ - pbuf_free(p); - 801f2ba: 6938 ldr r0, [r7, #16] - 801f2bc: f7f8 fc1c bl 8017af8 - } - return ERR_OK; - 801f2c0: 2300 movs r3, #0 -} - 801f2c2: 4618 mov r0, r3 - 801f2c4: 3718 adds r7, #24 - 801f2c6: 46bd mov sp, r7 - 801f2c8: bd80 pop {r7, pc} - 801f2ca: bf00 nop - 801f2cc: 0802647c .word 0x0802647c - 801f2d0: 08026574 .word 0x08026574 - 801f2d4: 080264f4 .word 0x080264f4 - 801f2d8: 2401a4e4 .word 0x2401a4e4 - -0801f2dc : - * - * @param netif points to a network interface - */ -void -etharp_cleanup_netif(struct netif *netif) -{ - 801f2dc: b580 push {r7, lr} - 801f2de: b084 sub sp, #16 - 801f2e0: af00 add r7, sp, #0 - 801f2e2: 6078 str r0, [r7, #4] - int i; - - for (i = 0; i < ARP_TABLE_SIZE; ++i) { - 801f2e4: 2300 movs r3, #0 - 801f2e6: 60fb str r3, [r7, #12] - 801f2e8: e01e b.n 801f328 - u8_t state = arp_table[i].state; - 801f2ea: 4913 ldr r1, [pc, #76] ; (801f338 ) - 801f2ec: 68fa ldr r2, [r7, #12] - 801f2ee: 4613 mov r3, r2 - 801f2f0: 005b lsls r3, r3, #1 - 801f2f2: 4413 add r3, r2 - 801f2f4: 00db lsls r3, r3, #3 - 801f2f6: 440b add r3, r1 - 801f2f8: 3314 adds r3, #20 - 801f2fa: 781b ldrb r3, [r3, #0] - 801f2fc: 72fb strb r3, [r7, #11] - if ((state != ETHARP_STATE_EMPTY) && (arp_table[i].netif == netif)) { - 801f2fe: 7afb ldrb r3, [r7, #11] - 801f300: 2b00 cmp r3, #0 - 801f302: d00e beq.n 801f322 - 801f304: 490c ldr r1, [pc, #48] ; (801f338 ) - 801f306: 68fa ldr r2, [r7, #12] - 801f308: 4613 mov r3, r2 - 801f30a: 005b lsls r3, r3, #1 - 801f30c: 4413 add r3, r2 - 801f30e: 00db lsls r3, r3, #3 - 801f310: 440b add r3, r1 - 801f312: 3308 adds r3, #8 - 801f314: 681b ldr r3, [r3, #0] - 801f316: 687a ldr r2, [r7, #4] - 801f318: 429a cmp r2, r3 - 801f31a: d102 bne.n 801f322 - etharp_free_entry(i); - 801f31c: 68f8 ldr r0, [r7, #12] - 801f31e: f7ff fcb7 bl 801ec90 - for (i = 0; i < ARP_TABLE_SIZE; ++i) { - 801f322: 68fb ldr r3, [r7, #12] - 801f324: 3301 adds r3, #1 - 801f326: 60fb str r3, [r7, #12] - 801f328: 68fb ldr r3, [r7, #12] - 801f32a: 2b09 cmp r3, #9 - 801f32c: dddd ble.n 801f2ea - } - } -} - 801f32e: bf00 nop - 801f330: bf00 nop - 801f332: 3710 adds r7, #16 - 801f334: 46bd mov sp, r7 - 801f336: bd80 pop {r7, pc} - 801f338: 2401a4e4 .word 0x2401a4e4 - -0801f33c : - * - * @see pbuf_free() - */ -void -etharp_input(struct pbuf *p, struct netif *netif) -{ - 801f33c: b5b0 push {r4, r5, r7, lr} - 801f33e: b08a sub sp, #40 ; 0x28 - 801f340: af04 add r7, sp, #16 - 801f342: 6078 str r0, [r7, #4] - 801f344: 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;); - 801f346: 683b ldr r3, [r7, #0] - 801f348: 2b00 cmp r3, #0 - 801f34a: d107 bne.n 801f35c - 801f34c: 4b3d ldr r3, [pc, #244] ; (801f444 ) - 801f34e: f240 228a movw r2, #650 ; 0x28a - 801f352: 493d ldr r1, [pc, #244] ; (801f448 ) - 801f354: 483d ldr r0, [pc, #244] ; (801f44c ) - 801f356: f002 fb17 bl 8021988 - 801f35a: e06f b.n 801f43c - - hdr = (struct etharp_hdr *)p->payload; - 801f35c: 687b ldr r3, [r7, #4] - 801f35e: 685b ldr r3, [r3, #4] - 801f360: 617b str r3, [r7, #20] - - /* RFC 826 "Packet Reception": */ - if ((hdr->hwtype != PP_HTONS(LWIP_IANA_HWTYPE_ETHERNET)) || - 801f362: 697b ldr r3, [r7, #20] - 801f364: 881b ldrh r3, [r3, #0] - 801f366: b29b uxth r3, r3 - 801f368: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 801f36c: d10c bne.n 801f388 - (hdr->hwlen != ETH_HWADDR_LEN) || - 801f36e: 697b ldr r3, [r7, #20] - 801f370: 791b ldrb r3, [r3, #4] - if ((hdr->hwtype != PP_HTONS(LWIP_IANA_HWTYPE_ETHERNET)) || - 801f372: 2b06 cmp r3, #6 - 801f374: d108 bne.n 801f388 - (hdr->protolen != sizeof(ip4_addr_t)) || - 801f376: 697b ldr r3, [r7, #20] - 801f378: 795b ldrb r3, [r3, #5] - (hdr->hwlen != ETH_HWADDR_LEN) || - 801f37a: 2b04 cmp r3, #4 - 801f37c: d104 bne.n 801f388 - (hdr->proto != PP_HTONS(ETHTYPE_IP))) { - 801f37e: 697b ldr r3, [r7, #20] - 801f380: 885b ldrh r3, [r3, #2] - 801f382: b29b uxth r3, r3 - (hdr->protolen != sizeof(ip4_addr_t)) || - 801f384: 2b08 cmp r3, #8 - 801f386: d003 beq.n 801f390 - 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); - 801f388: 6878 ldr r0, [r7, #4] - 801f38a: f7f8 fbb5 bl 8017af8 - return; - 801f38e: e055 b.n 801f43c - 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); - 801f390: 697b ldr r3, [r7, #20] - 801f392: 330e adds r3, #14 - 801f394: 681b ldr r3, [r3, #0] - 801f396: 60fb str r3, [r7, #12] - IPADDR_WORDALIGNED_COPY_TO_IP4_ADDR_T(&dipaddr, &hdr->dipaddr); - 801f398: 697b ldr r3, [r7, #20] - 801f39a: 3318 adds r3, #24 - 801f39c: 681b ldr r3, [r3, #0] - 801f39e: 60bb str r3, [r7, #8] - - /* this interface is not configured? */ - if (ip4_addr_isany_val(*netif_ip4_addr(netif))) { - 801f3a0: 683b ldr r3, [r7, #0] - 801f3a2: 3304 adds r3, #4 - 801f3a4: 681b ldr r3, [r3, #0] - 801f3a6: 2b00 cmp r3, #0 - 801f3a8: d102 bne.n 801f3b0 - for_us = 0; - 801f3aa: 2300 movs r3, #0 - 801f3ac: 74fb strb r3, [r7, #19] - 801f3ae: e009 b.n 801f3c4 - } else { - /* ARP packet directed to us? */ - for_us = (u8_t)ip4_addr_cmp(&dipaddr, netif_ip4_addr(netif)); - 801f3b0: 68ba ldr r2, [r7, #8] - 801f3b2: 683b ldr r3, [r7, #0] - 801f3b4: 3304 adds r3, #4 - 801f3b6: 681b ldr r3, [r3, #0] - 801f3b8: 429a cmp r2, r3 - 801f3ba: bf0c ite eq - 801f3bc: 2301 moveq r3, #1 - 801f3be: 2300 movne r3, #0 - 801f3c0: b2db uxtb r3, r3 - 801f3c2: 74fb strb r3, [r7, #19] - /* 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), - 801f3c4: 697b ldr r3, [r7, #20] - 801f3c6: f103 0208 add.w r2, r3, #8 - 801f3ca: 7cfb ldrb r3, [r7, #19] - 801f3cc: 2b00 cmp r3, #0 - 801f3ce: d001 beq.n 801f3d4 - 801f3d0: 2301 movs r3, #1 - 801f3d2: e000 b.n 801f3d6 - 801f3d4: 2302 movs r3, #2 - 801f3d6: f107 010c add.w r1, r7, #12 - 801f3da: 6838 ldr r0, [r7, #0] - 801f3dc: f7ff fed8 bl 801f190 - for_us ? ETHARP_FLAG_TRY_HARD : ETHARP_FLAG_FIND_ONLY); - - /* now act on the message itself */ - switch (hdr->opcode) { - 801f3e0: 697b ldr r3, [r7, #20] - 801f3e2: 88db ldrh r3, [r3, #6] - 801f3e4: b29b uxth r3, r3 - 801f3e6: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 801f3ea: d003 beq.n 801f3f4 - 801f3ec: f5b3 7f00 cmp.w r3, #512 ; 0x200 - 801f3f0: d01e beq.n 801f430 -#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; - 801f3f2: e020 b.n 801f436 - if (for_us) { - 801f3f4: 7cfb ldrb r3, [r7, #19] - 801f3f6: 2b00 cmp r3, #0 - 801f3f8: d01c beq.n 801f434 - (struct eth_addr *)netif->hwaddr, &hdr->shwaddr, - 801f3fa: 683b ldr r3, [r7, #0] - 801f3fc: f103 0026 add.w r0, r3, #38 ; 0x26 - 801f400: 697b ldr r3, [r7, #20] - 801f402: f103 0408 add.w r4, r3, #8 - (struct eth_addr *)netif->hwaddr, netif_ip4_addr(netif), - 801f406: 683b ldr r3, [r7, #0] - 801f408: f103 0526 add.w r5, r3, #38 ; 0x26 - 801f40c: 683b ldr r3, [r7, #0] - 801f40e: 3304 adds r3, #4 - &hdr->shwaddr, &sipaddr, - 801f410: 697a ldr r2, [r7, #20] - 801f412: 3208 adds r2, #8 - etharp_raw(netif, - 801f414: 2102 movs r1, #2 - 801f416: 9103 str r1, [sp, #12] - 801f418: f107 010c add.w r1, r7, #12 - 801f41c: 9102 str r1, [sp, #8] - 801f41e: 9201 str r2, [sp, #4] - 801f420: 9300 str r3, [sp, #0] - 801f422: 462b mov r3, r5 - 801f424: 4622 mov r2, r4 - 801f426: 4601 mov r1, r0 - 801f428: 6838 ldr r0, [r7, #0] - 801f42a: f000 faeb bl 801fa04 - break; - 801f42e: e001 b.n 801f434 - break; - 801f430: bf00 nop - 801f432: e000 b.n 801f436 - break; - 801f434: bf00 nop - } - /* free ARP packet */ - pbuf_free(p); - 801f436: 6878 ldr r0, [r7, #4] - 801f438: f7f8 fb5e bl 8017af8 -} - 801f43c: 3718 adds r7, #24 - 801f43e: 46bd mov sp, r7 - 801f440: bdb0 pop {r4, r5, r7, pc} - 801f442: bf00 nop - 801f444: 0802647c .word 0x0802647c - 801f448: 080265cc .word 0x080265cc - 801f44c: 080264f4 .word 0x080264f4 - -0801f450 : -/** 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) -{ - 801f450: b580 push {r7, lr} - 801f452: b086 sub sp, #24 - 801f454: af02 add r7, sp, #8 - 801f456: 60f8 str r0, [r7, #12] - 801f458: 60b9 str r1, [r7, #8] - 801f45a: 4613 mov r3, r2 - 801f45c: 71fb strb r3, [r7, #7] - LWIP_ASSERT("arp_table[arp_idx].state >= ETHARP_STATE_STABLE", - 801f45e: 79fa ldrb r2, [r7, #7] - 801f460: 4944 ldr r1, [pc, #272] ; (801f574 ) - 801f462: 4613 mov r3, r2 - 801f464: 005b lsls r3, r3, #1 - 801f466: 4413 add r3, r2 - 801f468: 00db lsls r3, r3, #3 - 801f46a: 440b add r3, r1 - 801f46c: 3314 adds r3, #20 - 801f46e: 781b ldrb r3, [r3, #0] - 801f470: 2b01 cmp r3, #1 - 801f472: d806 bhi.n 801f482 - 801f474: 4b40 ldr r3, [pc, #256] ; (801f578 ) - 801f476: f240 22ee movw r2, #750 ; 0x2ee - 801f47a: 4940 ldr r1, [pc, #256] ; (801f57c ) - 801f47c: 4840 ldr r0, [pc, #256] ; (801f580 ) - 801f47e: f002 fa83 bl 8021988 - 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) { - 801f482: 79fa ldrb r2, [r7, #7] - 801f484: 493b ldr r1, [pc, #236] ; (801f574 ) - 801f486: 4613 mov r3, r2 - 801f488: 005b lsls r3, r3, #1 - 801f48a: 4413 add r3, r2 - 801f48c: 00db lsls r3, r3, #3 - 801f48e: 440b add r3, r1 - 801f490: 3314 adds r3, #20 - 801f492: 781b ldrb r3, [r3, #0] - 801f494: 2b02 cmp r3, #2 - 801f496: d153 bne.n 801f540 - if (arp_table[arp_idx].ctime >= ARP_AGE_REREQUEST_USED_BROADCAST) { - 801f498: 79fa ldrb r2, [r7, #7] - 801f49a: 4936 ldr r1, [pc, #216] ; (801f574 ) - 801f49c: 4613 mov r3, r2 - 801f49e: 005b lsls r3, r3, #1 - 801f4a0: 4413 add r3, r2 - 801f4a2: 00db lsls r3, r3, #3 - 801f4a4: 440b add r3, r1 - 801f4a6: 3312 adds r3, #18 - 801f4a8: 881b ldrh r3, [r3, #0] - 801f4aa: f5b3 7f8e cmp.w r3, #284 ; 0x11c - 801f4ae: d919 bls.n 801f4e4 - /* issue a standard request using broadcast */ - if (etharp_request(netif, &arp_table[arp_idx].ipaddr) == ERR_OK) { - 801f4b0: 79fa ldrb r2, [r7, #7] - 801f4b2: 4613 mov r3, r2 - 801f4b4: 005b lsls r3, r3, #1 - 801f4b6: 4413 add r3, r2 - 801f4b8: 00db lsls r3, r3, #3 - 801f4ba: 4a2e ldr r2, [pc, #184] ; (801f574 ) - 801f4bc: 4413 add r3, r2 - 801f4be: 3304 adds r3, #4 - 801f4c0: 4619 mov r1, r3 - 801f4c2: 68f8 ldr r0, [r7, #12] - 801f4c4: f000 fb4c bl 801fb60 - 801f4c8: 4603 mov r3, r0 - 801f4ca: 2b00 cmp r3, #0 - 801f4cc: d138 bne.n 801f540 - arp_table[arp_idx].state = ETHARP_STATE_STABLE_REREQUESTING_1; - 801f4ce: 79fa ldrb r2, [r7, #7] - 801f4d0: 4928 ldr r1, [pc, #160] ; (801f574 ) - 801f4d2: 4613 mov r3, r2 - 801f4d4: 005b lsls r3, r3, #1 - 801f4d6: 4413 add r3, r2 - 801f4d8: 00db lsls r3, r3, #3 - 801f4da: 440b add r3, r1 - 801f4dc: 3314 adds r3, #20 - 801f4de: 2203 movs r2, #3 - 801f4e0: 701a strb r2, [r3, #0] - 801f4e2: e02d b.n 801f540 - } - } else if (arp_table[arp_idx].ctime >= ARP_AGE_REREQUEST_USED_UNICAST) { - 801f4e4: 79fa ldrb r2, [r7, #7] - 801f4e6: 4923 ldr r1, [pc, #140] ; (801f574 ) - 801f4e8: 4613 mov r3, r2 - 801f4ea: 005b lsls r3, r3, #1 - 801f4ec: 4413 add r3, r2 - 801f4ee: 00db lsls r3, r3, #3 - 801f4f0: 440b add r3, r1 - 801f4f2: 3312 adds r3, #18 - 801f4f4: 881b ldrh r3, [r3, #0] - 801f4f6: f5b3 7f87 cmp.w r3, #270 ; 0x10e - 801f4fa: d321 bcc.n 801f540 - /* 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) { - 801f4fc: 79fa ldrb r2, [r7, #7] - 801f4fe: 4613 mov r3, r2 - 801f500: 005b lsls r3, r3, #1 - 801f502: 4413 add r3, r2 - 801f504: 00db lsls r3, r3, #3 - 801f506: 4a1b ldr r2, [pc, #108] ; (801f574 ) - 801f508: 4413 add r3, r2 - 801f50a: 1d19 adds r1, r3, #4 - 801f50c: 79fa ldrb r2, [r7, #7] - 801f50e: 4613 mov r3, r2 - 801f510: 005b lsls r3, r3, #1 - 801f512: 4413 add r3, r2 - 801f514: 00db lsls r3, r3, #3 - 801f516: 3308 adds r3, #8 - 801f518: 4a16 ldr r2, [pc, #88] ; (801f574 ) - 801f51a: 4413 add r3, r2 - 801f51c: 3304 adds r3, #4 - 801f51e: 461a mov r2, r3 - 801f520: 68f8 ldr r0, [r7, #12] - 801f522: f000 fafb bl 801fb1c - 801f526: 4603 mov r3, r0 - 801f528: 2b00 cmp r3, #0 - 801f52a: d109 bne.n 801f540 - arp_table[arp_idx].state = ETHARP_STATE_STABLE_REREQUESTING_1; - 801f52c: 79fa ldrb r2, [r7, #7] - 801f52e: 4911 ldr r1, [pc, #68] ; (801f574 ) - 801f530: 4613 mov r3, r2 - 801f532: 005b lsls r3, r3, #1 - 801f534: 4413 add r3, r2 - 801f536: 00db lsls r3, r3, #3 - 801f538: 440b add r3, r1 - 801f53a: 3314 adds r3, #20 - 801f53c: 2203 movs r2, #3 - 801f53e: 701a strb r2, [r3, #0] - } - } - } - - return ethernet_output(netif, q, (struct eth_addr *)(netif->hwaddr), &arp_table[arp_idx].ethaddr, ETHTYPE_IP); - 801f540: 68fb ldr r3, [r7, #12] - 801f542: f103 0126 add.w r1, r3, #38 ; 0x26 - 801f546: 79fa ldrb r2, [r7, #7] - 801f548: 4613 mov r3, r2 - 801f54a: 005b lsls r3, r3, #1 - 801f54c: 4413 add r3, r2 - 801f54e: 00db lsls r3, r3, #3 - 801f550: 3308 adds r3, #8 - 801f552: 4a08 ldr r2, [pc, #32] ; (801f574 ) - 801f554: 4413 add r3, r2 - 801f556: 3304 adds r3, #4 - 801f558: f44f 6200 mov.w r2, #2048 ; 0x800 - 801f55c: 9200 str r2, [sp, #0] - 801f55e: 460a mov r2, r1 - 801f560: 68b9 ldr r1, [r7, #8] - 801f562: 68f8 ldr r0, [r7, #12] - 801f564: f001 fe6a bl 802123c - 801f568: 4603 mov r3, r0 -} - 801f56a: 4618 mov r0, r3 - 801f56c: 3710 adds r7, #16 - 801f56e: 46bd mov sp, r7 - 801f570: bd80 pop {r7, pc} - 801f572: bf00 nop - 801f574: 2401a4e4 .word 0x2401a4e4 - 801f578: 0802647c .word 0x0802647c - 801f57c: 080265ec .word 0x080265ec - 801f580: 080264f4 .word 0x080264f4 - -0801f584 : - * - 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) -{ - 801f584: b580 push {r7, lr} - 801f586: b08a sub sp, #40 ; 0x28 - 801f588: af02 add r7, sp, #8 - 801f58a: 60f8 str r0, [r7, #12] - 801f58c: 60b9 str r1, [r7, #8] - 801f58e: 607a str r2, [r7, #4] - const struct eth_addr *dest; - struct eth_addr mcastaddr; - const ip4_addr_t *dst_addr = ipaddr; - 801f590: 687b ldr r3, [r7, #4] - 801f592: 61bb str r3, [r7, #24] - - LWIP_ASSERT_CORE_LOCKED(); - LWIP_ASSERT("netif != NULL", netif != NULL); - 801f594: 68fb ldr r3, [r7, #12] - 801f596: 2b00 cmp r3, #0 - 801f598: d106 bne.n 801f5a8 - 801f59a: 4b73 ldr r3, [pc, #460] ; (801f768 ) - 801f59c: f240 321e movw r2, #798 ; 0x31e - 801f5a0: 4972 ldr r1, [pc, #456] ; (801f76c ) - 801f5a2: 4873 ldr r0, [pc, #460] ; (801f770 ) - 801f5a4: f002 f9f0 bl 8021988 - LWIP_ASSERT("q != NULL", q != NULL); - 801f5a8: 68bb ldr r3, [r7, #8] - 801f5aa: 2b00 cmp r3, #0 - 801f5ac: d106 bne.n 801f5bc - 801f5ae: 4b6e ldr r3, [pc, #440] ; (801f768 ) - 801f5b0: f240 321f movw r2, #799 ; 0x31f - 801f5b4: 496f ldr r1, [pc, #444] ; (801f774 ) - 801f5b6: 486e ldr r0, [pc, #440] ; (801f770 ) - 801f5b8: f002 f9e6 bl 8021988 - LWIP_ASSERT("ipaddr != NULL", ipaddr != NULL); - 801f5bc: 687b ldr r3, [r7, #4] - 801f5be: 2b00 cmp r3, #0 - 801f5c0: d106 bne.n 801f5d0 - 801f5c2: 4b69 ldr r3, [pc, #420] ; (801f768 ) - 801f5c4: f44f 7248 mov.w r2, #800 ; 0x320 - 801f5c8: 496b ldr r1, [pc, #428] ; (801f778 ) - 801f5ca: 4869 ldr r0, [pc, #420] ; (801f770 ) - 801f5cc: f002 f9dc bl 8021988 - - /* 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)) { - 801f5d0: 687b ldr r3, [r7, #4] - 801f5d2: 681b ldr r3, [r3, #0] - 801f5d4: 68f9 ldr r1, [r7, #12] - 801f5d6: 4618 mov r0, r3 - 801f5d8: f000 ff22 bl 8020420 - 801f5dc: 4603 mov r3, r0 - 801f5de: 2b00 cmp r3, #0 - 801f5e0: d002 beq.n 801f5e8 - /* broadcast on Ethernet also */ - dest = (const struct eth_addr *)ðbroadcast; - 801f5e2: 4b66 ldr r3, [pc, #408] ; (801f77c ) - 801f5e4: 61fb str r3, [r7, #28] - 801f5e6: e0af b.n 801f748 - /* multicast destination IP address? */ - } else if (ip4_addr_ismulticast(ipaddr)) { - 801f5e8: 687b ldr r3, [r7, #4] - 801f5ea: 681b ldr r3, [r3, #0] - 801f5ec: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 801f5f0: 2be0 cmp r3, #224 ; 0xe0 - 801f5f2: d118 bne.n 801f626 - /* Hash IP multicast address to MAC address.*/ - mcastaddr.addr[0] = LL_IP4_MULTICAST_ADDR_0; - 801f5f4: 2301 movs r3, #1 - 801f5f6: 743b strb r3, [r7, #16] - mcastaddr.addr[1] = LL_IP4_MULTICAST_ADDR_1; - 801f5f8: 2300 movs r3, #0 - 801f5fa: 747b strb r3, [r7, #17] - mcastaddr.addr[2] = LL_IP4_MULTICAST_ADDR_2; - 801f5fc: 235e movs r3, #94 ; 0x5e - 801f5fe: 74bb strb r3, [r7, #18] - mcastaddr.addr[3] = ip4_addr2(ipaddr) & 0x7f; - 801f600: 687b ldr r3, [r7, #4] - 801f602: 3301 adds r3, #1 - 801f604: 781b ldrb r3, [r3, #0] - 801f606: f003 037f and.w r3, r3, #127 ; 0x7f - 801f60a: b2db uxtb r3, r3 - 801f60c: 74fb strb r3, [r7, #19] - mcastaddr.addr[4] = ip4_addr3(ipaddr); - 801f60e: 687b ldr r3, [r7, #4] - 801f610: 3302 adds r3, #2 - 801f612: 781b ldrb r3, [r3, #0] - 801f614: 753b strb r3, [r7, #20] - mcastaddr.addr[5] = ip4_addr4(ipaddr); - 801f616: 687b ldr r3, [r7, #4] - 801f618: 3303 adds r3, #3 - 801f61a: 781b ldrb r3, [r3, #0] - 801f61c: 757b strb r3, [r7, #21] - /* destination Ethernet address is multicast */ - dest = &mcastaddr; - 801f61e: f107 0310 add.w r3, r7, #16 - 801f622: 61fb str r3, [r7, #28] - 801f624: e090 b.n 801f748 - /* 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)) && - 801f626: 687b ldr r3, [r7, #4] - 801f628: 681a ldr r2, [r3, #0] - 801f62a: 68fb ldr r3, [r7, #12] - 801f62c: 3304 adds r3, #4 - 801f62e: 681b ldr r3, [r3, #0] - 801f630: 405a eors r2, r3 - 801f632: 68fb ldr r3, [r7, #12] - 801f634: 3308 adds r3, #8 - 801f636: 681b ldr r3, [r3, #0] - 801f638: 4013 ands r3, r2 - 801f63a: 2b00 cmp r3, #0 - 801f63c: d012 beq.n 801f664 - !ip4_addr_islinklocal(ipaddr)) { - 801f63e: 687b ldr r3, [r7, #4] - 801f640: 681b ldr r3, [r3, #0] - 801f642: b29b uxth r3, r3 - if (!ip4_addr_netcmp(ipaddr, netif_ip4_addr(netif), netif_ip4_netmask(netif)) && - 801f644: f64f 62a9 movw r2, #65193 ; 0xfea9 - 801f648: 4293 cmp r3, r2 - 801f64a: d00b beq.n 801f664 - 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))) { - 801f64c: 68fb ldr r3, [r7, #12] - 801f64e: 330c adds r3, #12 - 801f650: 681b ldr r3, [r3, #0] - 801f652: 2b00 cmp r3, #0 - 801f654: d003 beq.n 801f65e - /* send to hardware address of default gateway IP address */ - dst_addr = netif_ip4_gw(netif); - 801f656: 68fb ldr r3, [r7, #12] - 801f658: 330c adds r3, #12 - 801f65a: 61bb str r3, [r7, #24] - 801f65c: e002 b.n 801f664 - /* no default gateway available */ - } else { - /* no route to destination error (default gateway missing) */ - return ERR_RTE; - 801f65e: f06f 0303 mvn.w r3, #3 - 801f662: e07d b.n 801f760 - 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) && - 801f664: 4b46 ldr r3, [pc, #280] ; (801f780 ) - 801f666: 781b ldrb r3, [r3, #0] - 801f668: 4619 mov r1, r3 - 801f66a: 4a46 ldr r2, [pc, #280] ; (801f784 ) - 801f66c: 460b mov r3, r1 - 801f66e: 005b lsls r3, r3, #1 - 801f670: 440b add r3, r1 - 801f672: 00db lsls r3, r3, #3 - 801f674: 4413 add r3, r2 - 801f676: 3314 adds r3, #20 - 801f678: 781b ldrb r3, [r3, #0] - 801f67a: 2b01 cmp r3, #1 - 801f67c: d925 bls.n 801f6ca -#if ETHARP_TABLE_MATCH_NETIF - (arp_table[etharp_cached_entry].netif == netif) && - 801f67e: 4b40 ldr r3, [pc, #256] ; (801f780 ) - 801f680: 781b ldrb r3, [r3, #0] - 801f682: 4619 mov r1, r3 - 801f684: 4a3f ldr r2, [pc, #252] ; (801f784 ) - 801f686: 460b mov r3, r1 - 801f688: 005b lsls r3, r3, #1 - 801f68a: 440b add r3, r1 - 801f68c: 00db lsls r3, r3, #3 - 801f68e: 4413 add r3, r2 - 801f690: 3308 adds r3, #8 - 801f692: 681b ldr r3, [r3, #0] - if ((arp_table[etharp_cached_entry].state >= ETHARP_STATE_STABLE) && - 801f694: 68fa ldr r2, [r7, #12] - 801f696: 429a cmp r2, r3 - 801f698: d117 bne.n 801f6ca -#endif - (ip4_addr_cmp(dst_addr, &arp_table[etharp_cached_entry].ipaddr))) { - 801f69a: 69bb ldr r3, [r7, #24] - 801f69c: 681a ldr r2, [r3, #0] - 801f69e: 4b38 ldr r3, [pc, #224] ; (801f780 ) - 801f6a0: 781b ldrb r3, [r3, #0] - 801f6a2: 4618 mov r0, r3 - 801f6a4: 4937 ldr r1, [pc, #220] ; (801f784 ) - 801f6a6: 4603 mov r3, r0 - 801f6a8: 005b lsls r3, r3, #1 - 801f6aa: 4403 add r3, r0 - 801f6ac: 00db lsls r3, r3, #3 - 801f6ae: 440b add r3, r1 - 801f6b0: 3304 adds r3, #4 - 801f6b2: 681b ldr r3, [r3, #0] - (arp_table[etharp_cached_entry].netif == netif) && - 801f6b4: 429a cmp r2, r3 - 801f6b6: d108 bne.n 801f6ca - /* 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); - 801f6b8: 4b31 ldr r3, [pc, #196] ; (801f780 ) - 801f6ba: 781b ldrb r3, [r3, #0] - 801f6bc: 461a mov r2, r3 - 801f6be: 68b9 ldr r1, [r7, #8] - 801f6c0: 68f8 ldr r0, [r7, #12] - 801f6c2: f7ff fec5 bl 801f450 - 801f6c6: 4603 mov r3, r0 - 801f6c8: e04a b.n 801f760 - } -#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++) { - 801f6ca: 2300 movs r3, #0 - 801f6cc: 75fb strb r3, [r7, #23] - 801f6ce: e031 b.n 801f734 - if ((arp_table[i].state >= ETHARP_STATE_STABLE) && - 801f6d0: 7dfa ldrb r2, [r7, #23] - 801f6d2: 492c ldr r1, [pc, #176] ; (801f784 ) - 801f6d4: 4613 mov r3, r2 - 801f6d6: 005b lsls r3, r3, #1 - 801f6d8: 4413 add r3, r2 - 801f6da: 00db lsls r3, r3, #3 - 801f6dc: 440b add r3, r1 - 801f6de: 3314 adds r3, #20 - 801f6e0: 781b ldrb r3, [r3, #0] - 801f6e2: 2b01 cmp r3, #1 - 801f6e4: d923 bls.n 801f72e -#if ETHARP_TABLE_MATCH_NETIF - (arp_table[i].netif == netif) && - 801f6e6: 7dfa ldrb r2, [r7, #23] - 801f6e8: 4926 ldr r1, [pc, #152] ; (801f784 ) - 801f6ea: 4613 mov r3, r2 - 801f6ec: 005b lsls r3, r3, #1 - 801f6ee: 4413 add r3, r2 - 801f6f0: 00db lsls r3, r3, #3 - 801f6f2: 440b add r3, r1 - 801f6f4: 3308 adds r3, #8 - 801f6f6: 681b ldr r3, [r3, #0] - if ((arp_table[i].state >= ETHARP_STATE_STABLE) && - 801f6f8: 68fa ldr r2, [r7, #12] - 801f6fa: 429a cmp r2, r3 - 801f6fc: d117 bne.n 801f72e -#endif - (ip4_addr_cmp(dst_addr, &arp_table[i].ipaddr))) { - 801f6fe: 69bb ldr r3, [r7, #24] - 801f700: 6819 ldr r1, [r3, #0] - 801f702: 7dfa ldrb r2, [r7, #23] - 801f704: 481f ldr r0, [pc, #124] ; (801f784 ) - 801f706: 4613 mov r3, r2 - 801f708: 005b lsls r3, r3, #1 - 801f70a: 4413 add r3, r2 - 801f70c: 00db lsls r3, r3, #3 - 801f70e: 4403 add r3, r0 - 801f710: 3304 adds r3, #4 - 801f712: 681b ldr r3, [r3, #0] - (arp_table[i].netif == netif) && - 801f714: 4299 cmp r1, r3 - 801f716: d10a bne.n 801f72e - /* found an existing, stable entry */ - ETHARP_SET_ADDRHINT(netif, i); - 801f718: 4a19 ldr r2, [pc, #100] ; (801f780 ) - 801f71a: 7dfb ldrb r3, [r7, #23] - 801f71c: 7013 strb r3, [r2, #0] - return etharp_output_to_arp_index(netif, q, i); - 801f71e: 7dfb ldrb r3, [r7, #23] - 801f720: 461a mov r2, r3 - 801f722: 68b9 ldr r1, [r7, #8] - 801f724: 68f8 ldr r0, [r7, #12] - 801f726: f7ff fe93 bl 801f450 - 801f72a: 4603 mov r3, r0 - 801f72c: e018 b.n 801f760 - for (i = 0; i < ARP_TABLE_SIZE; i++) { - 801f72e: 7dfb ldrb r3, [r7, #23] - 801f730: 3301 adds r3, #1 - 801f732: 75fb strb r3, [r7, #23] - 801f734: 7dfb ldrb r3, [r7, #23] - 801f736: 2b09 cmp r3, #9 - 801f738: d9ca bls.n 801f6d0 - } - } - /* no stable entry found, use the (slower) query function: - queue on destination Ethernet address belonging to ipaddr */ - return etharp_query(netif, dst_addr, q); - 801f73a: 68ba ldr r2, [r7, #8] - 801f73c: 69b9 ldr r1, [r7, #24] - 801f73e: 68f8 ldr r0, [r7, #12] - 801f740: f000 f822 bl 801f788 - 801f744: 4603 mov r3, r0 - 801f746: e00b b.n 801f760 - } - - /* 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); - 801f748: 68fb ldr r3, [r7, #12] - 801f74a: f103 0226 add.w r2, r3, #38 ; 0x26 - 801f74e: f44f 6300 mov.w r3, #2048 ; 0x800 - 801f752: 9300 str r3, [sp, #0] - 801f754: 69fb ldr r3, [r7, #28] - 801f756: 68b9 ldr r1, [r7, #8] - 801f758: 68f8 ldr r0, [r7, #12] - 801f75a: f001 fd6f bl 802123c - 801f75e: 4603 mov r3, r0 -} - 801f760: 4618 mov r0, r3 - 801f762: 3720 adds r7, #32 - 801f764: 46bd mov sp, r7 - 801f766: bd80 pop {r7, pc} - 801f768: 0802647c .word 0x0802647c - 801f76c: 080265cc .word 0x080265cc - 801f770: 080264f4 .word 0x080264f4 - 801f774: 0802661c .word 0x0802661c - 801f778: 080265bc .word 0x080265bc - 801f77c: 08026cf0 .word 0x08026cf0 - 801f780: 2401a5d4 .word 0x2401a5d4 - 801f784: 2401a4e4 .word 0x2401a4e4 - -0801f788 : - * - 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) -{ - 801f788: b580 push {r7, lr} - 801f78a: b08c sub sp, #48 ; 0x30 - 801f78c: af02 add r7, sp, #8 - 801f78e: 60f8 str r0, [r7, #12] - 801f790: 60b9 str r1, [r7, #8] - 801f792: 607a str r2, [r7, #4] - struct eth_addr *srcaddr = (struct eth_addr *)netif->hwaddr; - 801f794: 68fb ldr r3, [r7, #12] - 801f796: 3326 adds r3, #38 ; 0x26 - 801f798: 617b str r3, [r7, #20] - err_t result = ERR_MEM; - 801f79a: 23ff movs r3, #255 ; 0xff - 801f79c: f887 3027 strb.w r3, [r7, #39] ; 0x27 - int is_new_entry = 0; - 801f7a0: 2300 movs r3, #0 - 801f7a2: 623b str r3, [r7, #32] - s16_t i_err; - netif_addr_idx_t i; - - /* non-unicast address? */ - if (ip4_addr_isbroadcast(ipaddr, netif) || - 801f7a4: 68bb ldr r3, [r7, #8] - 801f7a6: 681b ldr r3, [r3, #0] - 801f7a8: 68f9 ldr r1, [r7, #12] - 801f7aa: 4618 mov r0, r3 - 801f7ac: f000 fe38 bl 8020420 - 801f7b0: 4603 mov r3, r0 - 801f7b2: 2b00 cmp r3, #0 - 801f7b4: d10c bne.n 801f7d0 - ip4_addr_ismulticast(ipaddr) || - 801f7b6: 68bb ldr r3, [r7, #8] - 801f7b8: 681b ldr r3, [r3, #0] - 801f7ba: f003 03f0 and.w r3, r3, #240 ; 0xf0 - if (ip4_addr_isbroadcast(ipaddr, netif) || - 801f7be: 2be0 cmp r3, #224 ; 0xe0 - 801f7c0: d006 beq.n 801f7d0 - ip4_addr_ismulticast(ipaddr) || - 801f7c2: 68bb ldr r3, [r7, #8] - 801f7c4: 2b00 cmp r3, #0 - 801f7c6: d003 beq.n 801f7d0 - ip4_addr_isany(ipaddr)) { - 801f7c8: 68bb ldr r3, [r7, #8] - 801f7ca: 681b ldr r3, [r3, #0] - 801f7cc: 2b00 cmp r3, #0 - 801f7ce: d102 bne.n 801f7d6 - LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: will not add non-unicast IP address to ARP cache\n")); - return ERR_ARG; - 801f7d0: f06f 030f mvn.w r3, #15 - 801f7d4: e101 b.n 801f9da - } - - /* find entry in ARP cache, ask to create entry if queueing packet */ - i_err = etharp_find_entry(ipaddr, ETHARP_FLAG_TRY_HARD, netif); - 801f7d6: 68fa ldr r2, [r7, #12] - 801f7d8: 2101 movs r1, #1 - 801f7da: 68b8 ldr r0, [r7, #8] - 801f7dc: f7ff fb60 bl 801eea0 - 801f7e0: 4603 mov r3, r0 - 801f7e2: 827b strh r3, [r7, #18] - - /* could not find or create entry? */ - if (i_err < 0) { - 801f7e4: f9b7 3012 ldrsh.w r3, [r7, #18] - 801f7e8: 2b00 cmp r3, #0 - 801f7ea: da02 bge.n 801f7f2 - 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; - 801f7ec: 8a7b ldrh r3, [r7, #18] - 801f7ee: b25b sxtb r3, r3 - 801f7f0: e0f3 b.n 801f9da - } - LWIP_ASSERT("type overflow", (size_t)i_err < NETIF_ADDR_IDX_MAX); - 801f7f2: 8a7b ldrh r3, [r7, #18] - 801f7f4: 2b7e cmp r3, #126 ; 0x7e - 801f7f6: d906 bls.n 801f806 - 801f7f8: 4b7a ldr r3, [pc, #488] ; (801f9e4 ) - 801f7fa: f240 32c1 movw r2, #961 ; 0x3c1 - 801f7fe: 497a ldr r1, [pc, #488] ; (801f9e8 ) - 801f800: 487a ldr r0, [pc, #488] ; (801f9ec ) - 801f802: f002 f8c1 bl 8021988 - i = (netif_addr_idx_t)i_err; - 801f806: 8a7b ldrh r3, [r7, #18] - 801f808: 747b strb r3, [r7, #17] - - /* mark a fresh entry as pending (we just sent a request) */ - if (arp_table[i].state == ETHARP_STATE_EMPTY) { - 801f80a: 7c7a ldrb r2, [r7, #17] - 801f80c: 4978 ldr r1, [pc, #480] ; (801f9f0 ) - 801f80e: 4613 mov r3, r2 - 801f810: 005b lsls r3, r3, #1 - 801f812: 4413 add r3, r2 - 801f814: 00db lsls r3, r3, #3 - 801f816: 440b add r3, r1 - 801f818: 3314 adds r3, #20 - 801f81a: 781b ldrb r3, [r3, #0] - 801f81c: 2b00 cmp r3, #0 - 801f81e: d115 bne.n 801f84c - is_new_entry = 1; - 801f820: 2301 movs r3, #1 - 801f822: 623b str r3, [r7, #32] - arp_table[i].state = ETHARP_STATE_PENDING; - 801f824: 7c7a ldrb r2, [r7, #17] - 801f826: 4972 ldr r1, [pc, #456] ; (801f9f0 ) - 801f828: 4613 mov r3, r2 - 801f82a: 005b lsls r3, r3, #1 - 801f82c: 4413 add r3, r2 - 801f82e: 00db lsls r3, r3, #3 - 801f830: 440b add r3, r1 - 801f832: 3314 adds r3, #20 - 801f834: 2201 movs r2, #1 - 801f836: 701a strb r2, [r3, #0] - /* record network interface for re-sending arp request in etharp_tmr */ - arp_table[i].netif = netif; - 801f838: 7c7a ldrb r2, [r7, #17] - 801f83a: 496d ldr r1, [pc, #436] ; (801f9f0 ) - 801f83c: 4613 mov r3, r2 - 801f83e: 005b lsls r3, r3, #1 - 801f840: 4413 add r3, r2 - 801f842: 00db lsls r3, r3, #3 - 801f844: 440b add r3, r1 - 801f846: 3308 adds r3, #8 - 801f848: 68fa ldr r2, [r7, #12] - 801f84a: 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", - 801f84c: 7c7a ldrb r2, [r7, #17] - 801f84e: 4968 ldr r1, [pc, #416] ; (801f9f0 ) - 801f850: 4613 mov r3, r2 - 801f852: 005b lsls r3, r3, #1 - 801f854: 4413 add r3, r2 - 801f856: 00db lsls r3, r3, #3 - 801f858: 440b add r3, r1 - 801f85a: 3314 adds r3, #20 - 801f85c: 781b ldrb r3, [r3, #0] - 801f85e: 2b01 cmp r3, #1 - 801f860: d011 beq.n 801f886 - 801f862: 7c7a ldrb r2, [r7, #17] - 801f864: 4962 ldr r1, [pc, #392] ; (801f9f0 ) - 801f866: 4613 mov r3, r2 - 801f868: 005b lsls r3, r3, #1 - 801f86a: 4413 add r3, r2 - 801f86c: 00db lsls r3, r3, #3 - 801f86e: 440b add r3, r1 - 801f870: 3314 adds r3, #20 - 801f872: 781b ldrb r3, [r3, #0] - 801f874: 2b01 cmp r3, #1 - 801f876: d806 bhi.n 801f886 - 801f878: 4b5a ldr r3, [pc, #360] ; (801f9e4 ) - 801f87a: f240 32cd movw r2, #973 ; 0x3cd - 801f87e: 495d ldr r1, [pc, #372] ; (801f9f4 ) - 801f880: 485a ldr r0, [pc, #360] ; (801f9ec ) - 801f882: f002 f881 bl 8021988 - ((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)) { - 801f886: 6a3b ldr r3, [r7, #32] - 801f888: 2b00 cmp r3, #0 - 801f88a: d102 bne.n 801f892 - 801f88c: 687b ldr r3, [r7, #4] - 801f88e: 2b00 cmp r3, #0 - 801f890: d10c bne.n 801f8ac - /* try to resolve it; send out ARP request */ - result = etharp_request(netif, ipaddr); - 801f892: 68b9 ldr r1, [r7, #8] - 801f894: 68f8 ldr r0, [r7, #12] - 801f896: f000 f963 bl 801fb60 - 801f89a: 4603 mov r3, r0 - 801f89c: 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) { - 801f8a0: 687b ldr r3, [r7, #4] - 801f8a2: 2b00 cmp r3, #0 - 801f8a4: d102 bne.n 801f8ac - return result; - 801f8a6: f997 3027 ldrsb.w r3, [r7, #39] ; 0x27 - 801f8aa: e096 b.n 801f9da - } - } - - /* packet given? */ - LWIP_ASSERT("q != NULL", q != NULL); - 801f8ac: 687b ldr r3, [r7, #4] - 801f8ae: 2b00 cmp r3, #0 - 801f8b0: d106 bne.n 801f8c0 - 801f8b2: 4b4c ldr r3, [pc, #304] ; (801f9e4 ) - 801f8b4: f240 32e1 movw r2, #993 ; 0x3e1 - 801f8b8: 494f ldr r1, [pc, #316] ; (801f9f8 ) - 801f8ba: 484c ldr r0, [pc, #304] ; (801f9ec ) - 801f8bc: f002 f864 bl 8021988 - /* stable entry? */ - if (arp_table[i].state >= ETHARP_STATE_STABLE) { - 801f8c0: 7c7a ldrb r2, [r7, #17] - 801f8c2: 494b ldr r1, [pc, #300] ; (801f9f0 ) - 801f8c4: 4613 mov r3, r2 - 801f8c6: 005b lsls r3, r3, #1 - 801f8c8: 4413 add r3, r2 - 801f8ca: 00db lsls r3, r3, #3 - 801f8cc: 440b add r3, r1 - 801f8ce: 3314 adds r3, #20 - 801f8d0: 781b ldrb r3, [r3, #0] - 801f8d2: 2b01 cmp r3, #1 - 801f8d4: d917 bls.n 801f906 - /* we have a valid IP->Ethernet address mapping */ - ETHARP_SET_ADDRHINT(netif, i); - 801f8d6: 4a49 ldr r2, [pc, #292] ; (801f9fc ) - 801f8d8: 7c7b ldrb r3, [r7, #17] - 801f8da: 7013 strb r3, [r2, #0] - /* send the packet */ - result = ethernet_output(netif, q, srcaddr, &(arp_table[i].ethaddr), ETHTYPE_IP); - 801f8dc: 7c7a ldrb r2, [r7, #17] - 801f8de: 4613 mov r3, r2 - 801f8e0: 005b lsls r3, r3, #1 - 801f8e2: 4413 add r3, r2 - 801f8e4: 00db lsls r3, r3, #3 - 801f8e6: 3308 adds r3, #8 - 801f8e8: 4a41 ldr r2, [pc, #260] ; (801f9f0 ) - 801f8ea: 4413 add r3, r2 - 801f8ec: 3304 adds r3, #4 - 801f8ee: f44f 6200 mov.w r2, #2048 ; 0x800 - 801f8f2: 9200 str r2, [sp, #0] - 801f8f4: 697a ldr r2, [r7, #20] - 801f8f6: 6879 ldr r1, [r7, #4] - 801f8f8: 68f8 ldr r0, [r7, #12] - 801f8fa: f001 fc9f bl 802123c - 801f8fe: 4603 mov r3, r0 - 801f900: f887 3027 strb.w r3, [r7, #39] ; 0x27 - 801f904: e067 b.n 801f9d6 - /* pending entry? (either just created or already pending */ - } else if (arp_table[i].state == ETHARP_STATE_PENDING) { - 801f906: 7c7a ldrb r2, [r7, #17] - 801f908: 4939 ldr r1, [pc, #228] ; (801f9f0 ) - 801f90a: 4613 mov r3, r2 - 801f90c: 005b lsls r3, r3, #1 - 801f90e: 4413 add r3, r2 - 801f910: 00db lsls r3, r3, #3 - 801f912: 440b add r3, r1 - 801f914: 3314 adds r3, #20 - 801f916: 781b ldrb r3, [r3, #0] - 801f918: 2b01 cmp r3, #1 - 801f91a: d15c bne.n 801f9d6 - /* entry is still pending, queue the given packet 'q' */ - struct pbuf *p; - int copy_needed = 0; - 801f91c: 2300 movs r3, #0 - 801f91e: 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; - 801f920: 687b ldr r3, [r7, #4] - 801f922: 61fb str r3, [r7, #28] - while (p) { - 801f924: e01c b.n 801f960 - LWIP_ASSERT("no packet queues allowed!", (p->len != p->tot_len) || (p->next == 0)); - 801f926: 69fb ldr r3, [r7, #28] - 801f928: 895a ldrh r2, [r3, #10] - 801f92a: 69fb ldr r3, [r7, #28] - 801f92c: 891b ldrh r3, [r3, #8] - 801f92e: 429a cmp r2, r3 - 801f930: d10a bne.n 801f948 - 801f932: 69fb ldr r3, [r7, #28] - 801f934: 681b ldr r3, [r3, #0] - 801f936: 2b00 cmp r3, #0 - 801f938: d006 beq.n 801f948 - 801f93a: 4b2a ldr r3, [pc, #168] ; (801f9e4 ) - 801f93c: f240 32f1 movw r2, #1009 ; 0x3f1 - 801f940: 492f ldr r1, [pc, #188] ; (801fa00 ) - 801f942: 482a ldr r0, [pc, #168] ; (801f9ec ) - 801f944: f002 f820 bl 8021988 - if (PBUF_NEEDS_COPY(p)) { - 801f948: 69fb ldr r3, [r7, #28] - 801f94a: 7b1b ldrb r3, [r3, #12] - 801f94c: f003 0340 and.w r3, r3, #64 ; 0x40 - 801f950: 2b00 cmp r3, #0 - 801f952: d002 beq.n 801f95a - copy_needed = 1; - 801f954: 2301 movs r3, #1 - 801f956: 61bb str r3, [r7, #24] - break; - 801f958: e005 b.n 801f966 - } - p = p->next; - 801f95a: 69fb ldr r3, [r7, #28] - 801f95c: 681b ldr r3, [r3, #0] - 801f95e: 61fb str r3, [r7, #28] - while (p) { - 801f960: 69fb ldr r3, [r7, #28] - 801f962: 2b00 cmp r3, #0 - 801f964: d1df bne.n 801f926 - } - if (copy_needed) { - 801f966: 69bb ldr r3, [r7, #24] - 801f968: 2b00 cmp r3, #0 - 801f96a: d007 beq.n 801f97c - /* copy the whole packet into new pbufs */ - p = pbuf_clone(PBUF_LINK, PBUF_RAM, q); - 801f96c: 687a ldr r2, [r7, #4] - 801f96e: f44f 7120 mov.w r1, #640 ; 0x280 - 801f972: 200e movs r0, #14 - 801f974: f7f8 fb28 bl 8017fc8 - 801f978: 61f8 str r0, [r7, #28] - 801f97a: e004 b.n 801f986 - } else { - /* referencing the old pbuf is enough */ - p = q; - 801f97c: 687b ldr r3, [r7, #4] - 801f97e: 61fb str r3, [r7, #28] - pbuf_ref(p); - 801f980: 69f8 ldr r0, [r7, #28] - 801f982: f7f8 f95f bl 8017c44 - } - /* packet could be taken over? */ - if (p != NULL) { - 801f986: 69fb ldr r3, [r7, #28] - 801f988: 2b00 cmp r3, #0 - 801f98a: d021 beq.n 801f9d0 - 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) { - 801f98c: 7c7a ldrb r2, [r7, #17] - 801f98e: 4918 ldr r1, [pc, #96] ; (801f9f0 ) - 801f990: 4613 mov r3, r2 - 801f992: 005b lsls r3, r3, #1 - 801f994: 4413 add r3, r2 - 801f996: 00db lsls r3, r3, #3 - 801f998: 440b add r3, r1 - 801f99a: 681b ldr r3, [r3, #0] - 801f99c: 2b00 cmp r3, #0 - 801f99e: d00a beq.n 801f9b6 - 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); - 801f9a0: 7c7a ldrb r2, [r7, #17] - 801f9a2: 4913 ldr r1, [pc, #76] ; (801f9f0 ) - 801f9a4: 4613 mov r3, r2 - 801f9a6: 005b lsls r3, r3, #1 - 801f9a8: 4413 add r3, r2 - 801f9aa: 00db lsls r3, r3, #3 - 801f9ac: 440b add r3, r1 - 801f9ae: 681b ldr r3, [r3, #0] - 801f9b0: 4618 mov r0, r3 - 801f9b2: f7f8 f8a1 bl 8017af8 - } - arp_table[i].q = p; - 801f9b6: 7c7a ldrb r2, [r7, #17] - 801f9b8: 490d ldr r1, [pc, #52] ; (801f9f0 ) - 801f9ba: 4613 mov r3, r2 - 801f9bc: 005b lsls r3, r3, #1 - 801f9be: 4413 add r3, r2 - 801f9c0: 00db lsls r3, r3, #3 - 801f9c2: 440b add r3, r1 - 801f9c4: 69fa ldr r2, [r7, #28] - 801f9c6: 601a str r2, [r3, #0] - result = ERR_OK; - 801f9c8: 2300 movs r3, #0 - 801f9ca: f887 3027 strb.w r3, [r7, #39] ; 0x27 - 801f9ce: e002 b.n 801f9d6 - 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; - 801f9d0: 23ff movs r3, #255 ; 0xff - 801f9d2: f887 3027 strb.w r3, [r7, #39] ; 0x27 - } - } - return result; - 801f9d6: f997 3027 ldrsb.w r3, [r7, #39] ; 0x27 -} - 801f9da: 4618 mov r0, r3 - 801f9dc: 3728 adds r7, #40 ; 0x28 - 801f9de: 46bd mov sp, r7 - 801f9e0: bd80 pop {r7, pc} - 801f9e2: bf00 nop - 801f9e4: 0802647c .word 0x0802647c - 801f9e8: 08026628 .word 0x08026628 - 801f9ec: 080264f4 .word 0x080264f4 - 801f9f0: 2401a4e4 .word 0x2401a4e4 - 801f9f4: 08026638 .word 0x08026638 - 801f9f8: 0802661c .word 0x0802661c - 801f9fc: 2401a5d4 .word 0x2401a5d4 - 801fa00: 08026660 .word 0x08026660 - -0801fa04 : -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) -{ - 801fa04: b580 push {r7, lr} - 801fa06: b08a sub sp, #40 ; 0x28 - 801fa08: af02 add r7, sp, #8 - 801fa0a: 60f8 str r0, [r7, #12] - 801fa0c: 60b9 str r1, [r7, #8] - 801fa0e: 607a str r2, [r7, #4] - 801fa10: 603b str r3, [r7, #0] - struct pbuf *p; - err_t result = ERR_OK; - 801fa12: 2300 movs r3, #0 - 801fa14: 77fb strb r3, [r7, #31] - struct etharp_hdr *hdr; - - LWIP_ASSERT("netif != NULL", netif != NULL); - 801fa16: 68fb ldr r3, [r7, #12] - 801fa18: 2b00 cmp r3, #0 - 801fa1a: d106 bne.n 801fa2a - 801fa1c: 4b3a ldr r3, [pc, #232] ; (801fb08 ) - 801fa1e: f240 4257 movw r2, #1111 ; 0x457 - 801fa22: 493a ldr r1, [pc, #232] ; (801fb0c ) - 801fa24: 483a ldr r0, [pc, #232] ; (801fb10 ) - 801fa26: f001 ffaf bl 8021988 - - /* allocate a pbuf for the outgoing ARP request packet */ - p = pbuf_alloc(PBUF_LINK, SIZEOF_ETHARP_HDR, PBUF_RAM); - 801fa2a: f44f 7220 mov.w r2, #640 ; 0x280 - 801fa2e: 211c movs r1, #28 - 801fa30: 200e movs r0, #14 - 801fa32: f7f7 fd79 bl 8017528 - 801fa36: 61b8 str r0, [r7, #24] - /* could allocate a pbuf for an ARP request? */ - if (p == NULL) { - 801fa38: 69bb ldr r3, [r7, #24] - 801fa3a: 2b00 cmp r3, #0 - 801fa3c: d102 bne.n 801fa44 - 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; - 801fa3e: f04f 33ff mov.w r3, #4294967295 - 801fa42: e05d b.n 801fb00 - } - LWIP_ASSERT("check that first pbuf can hold struct etharp_hdr", - 801fa44: 69bb ldr r3, [r7, #24] - 801fa46: 895b ldrh r3, [r3, #10] - 801fa48: 2b1b cmp r3, #27 - 801fa4a: d806 bhi.n 801fa5a - 801fa4c: 4b2e ldr r3, [pc, #184] ; (801fb08 ) - 801fa4e: f240 4262 movw r2, #1122 ; 0x462 - 801fa52: 4930 ldr r1, [pc, #192] ; (801fb14 ) - 801fa54: 482e ldr r0, [pc, #184] ; (801fb10 ) - 801fa56: f001 ff97 bl 8021988 - (p->len >= SIZEOF_ETHARP_HDR)); - - hdr = (struct etharp_hdr *)p->payload; - 801fa5a: 69bb ldr r3, [r7, #24] - 801fa5c: 685b ldr r3, [r3, #4] - 801fa5e: 617b str r3, [r7, #20] - LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_raw: sending raw ARP packet.\n")); - hdr->opcode = lwip_htons(opcode); - 801fa60: 8ebb ldrh r3, [r7, #52] ; 0x34 - 801fa62: 4618 mov r0, r3 - 801fa64: f7f6 fa6c bl 8015f40 - 801fa68: 4603 mov r3, r0 - 801fa6a: 461a mov r2, r3 - 801fa6c: 697b ldr r3, [r7, #20] - 801fa6e: 80da strh r2, [r3, #6] - - LWIP_ASSERT("netif->hwaddr_len must be the same as ETH_HWADDR_LEN for etharp!", - 801fa70: 68fb ldr r3, [r7, #12] - 801fa72: f893 302c ldrb.w r3, [r3, #44] ; 0x2c - 801fa76: 2b06 cmp r3, #6 - 801fa78: d006 beq.n 801fa88 - 801fa7a: 4b23 ldr r3, [pc, #140] ; (801fb08 ) - 801fa7c: f240 4269 movw r2, #1129 ; 0x469 - 801fa80: 4925 ldr r1, [pc, #148] ; (801fb18 ) - 801fa82: 4823 ldr r0, [pc, #140] ; (801fb10 ) - 801fa84: f001 ff80 bl 8021988 - (netif->hwaddr_len == ETH_HWADDR_LEN)); - - /* Write the ARP MAC-Addresses */ - SMEMCPY(&hdr->shwaddr, hwsrc_addr, ETH_HWADDR_LEN); - 801fa88: 697b ldr r3, [r7, #20] - 801fa8a: 3308 adds r3, #8 - 801fa8c: 2206 movs r2, #6 - 801fa8e: 6839 ldr r1, [r7, #0] - 801fa90: 4618 mov r0, r3 - 801fa92: f002 f9a8 bl 8021de6 - SMEMCPY(&hdr->dhwaddr, hwdst_addr, ETH_HWADDR_LEN); - 801fa96: 697b ldr r3, [r7, #20] - 801fa98: 3312 adds r3, #18 - 801fa9a: 2206 movs r2, #6 - 801fa9c: 6af9 ldr r1, [r7, #44] ; 0x2c - 801fa9e: 4618 mov r0, r3 - 801faa0: f002 f9a1 bl 8021de6 - /* 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); - 801faa4: 697b ldr r3, [r7, #20] - 801faa6: 330e adds r3, #14 - 801faa8: 6aba ldr r2, [r7, #40] ; 0x28 - 801faaa: 6812 ldr r2, [r2, #0] - 801faac: 601a str r2, [r3, #0] - IPADDR_WORDALIGNED_COPY_FROM_IP4_ADDR_T(&hdr->dipaddr, ipdst_addr); - 801faae: 697b ldr r3, [r7, #20] - 801fab0: 3318 adds r3, #24 - 801fab2: 6b3a ldr r2, [r7, #48] ; 0x30 - 801fab4: 6812 ldr r2, [r2, #0] - 801fab6: 601a str r2, [r3, #0] - - hdr->hwtype = PP_HTONS(LWIP_IANA_HWTYPE_ETHERNET); - 801fab8: 697b ldr r3, [r7, #20] - 801faba: 2200 movs r2, #0 - 801fabc: 701a strb r2, [r3, #0] - 801fabe: 2200 movs r2, #0 - 801fac0: f042 0201 orr.w r2, r2, #1 - 801fac4: 705a strb r2, [r3, #1] - hdr->proto = PP_HTONS(ETHTYPE_IP); - 801fac6: 697b ldr r3, [r7, #20] - 801fac8: 2200 movs r2, #0 - 801faca: f042 0208 orr.w r2, r2, #8 - 801face: 709a strb r2, [r3, #2] - 801fad0: 2200 movs r2, #0 - 801fad2: 70da strb r2, [r3, #3] - /* set hwlen and protolen */ - hdr->hwlen = ETH_HWADDR_LEN; - 801fad4: 697b ldr r3, [r7, #20] - 801fad6: 2206 movs r2, #6 - 801fad8: 711a strb r2, [r3, #4] - hdr->protolen = sizeof(ip4_addr_t); - 801fada: 697b ldr r3, [r7, #20] - 801fadc: 2204 movs r2, #4 - 801fade: 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); - 801fae0: f640 0306 movw r3, #2054 ; 0x806 - 801fae4: 9300 str r3, [sp, #0] - 801fae6: 687b ldr r3, [r7, #4] - 801fae8: 68ba ldr r2, [r7, #8] - 801faea: 69b9 ldr r1, [r7, #24] - 801faec: 68f8 ldr r0, [r7, #12] - 801faee: f001 fba5 bl 802123c - } - - ETHARP_STATS_INC(etharp.xmit); - /* free ARP query packet */ - pbuf_free(p); - 801faf2: 69b8 ldr r0, [r7, #24] - 801faf4: f7f8 f800 bl 8017af8 - p = NULL; - 801faf8: 2300 movs r3, #0 - 801fafa: 61bb str r3, [r7, #24] - /* could not allocate pbuf for ARP request */ - - return result; - 801fafc: f997 301f ldrsb.w r3, [r7, #31] -} - 801fb00: 4618 mov r0, r3 - 801fb02: 3720 adds r7, #32 - 801fb04: 46bd mov sp, r7 - 801fb06: bd80 pop {r7, pc} - 801fb08: 0802647c .word 0x0802647c - 801fb0c: 080265cc .word 0x080265cc - 801fb10: 080264f4 .word 0x080264f4 - 801fb14: 0802667c .word 0x0802667c - 801fb18: 080266b0 .word 0x080266b0 - -0801fb1c : - * 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) -{ - 801fb1c: b580 push {r7, lr} - 801fb1e: b088 sub sp, #32 - 801fb20: af04 add r7, sp, #16 - 801fb22: 60f8 str r0, [r7, #12] - 801fb24: 60b9 str r1, [r7, #8] - 801fb26: 607a str r2, [r7, #4] - return etharp_raw(netif, (struct eth_addr *)netif->hwaddr, hw_dst_addr, - 801fb28: 68fb ldr r3, [r7, #12] - 801fb2a: f103 0126 add.w r1, r3, #38 ; 0x26 - (struct eth_addr *)netif->hwaddr, netif_ip4_addr(netif), ðzero, - 801fb2e: 68fb ldr r3, [r7, #12] - 801fb30: f103 0026 add.w r0, r3, #38 ; 0x26 - 801fb34: 68fb ldr r3, [r7, #12] - 801fb36: 3304 adds r3, #4 - return etharp_raw(netif, (struct eth_addr *)netif->hwaddr, hw_dst_addr, - 801fb38: 2201 movs r2, #1 - 801fb3a: 9203 str r2, [sp, #12] - 801fb3c: 68ba ldr r2, [r7, #8] - 801fb3e: 9202 str r2, [sp, #8] - 801fb40: 4a06 ldr r2, [pc, #24] ; (801fb5c ) - 801fb42: 9201 str r2, [sp, #4] - 801fb44: 9300 str r3, [sp, #0] - 801fb46: 4603 mov r3, r0 - 801fb48: 687a ldr r2, [r7, #4] - 801fb4a: 68f8 ldr r0, [r7, #12] - 801fb4c: f7ff ff5a bl 801fa04 - 801fb50: 4603 mov r3, r0 - ipaddr, ARP_REQUEST); -} - 801fb52: 4618 mov r0, r3 - 801fb54: 3710 adds r7, #16 - 801fb56: 46bd mov sp, r7 - 801fb58: bd80 pop {r7, pc} - 801fb5a: bf00 nop - 801fb5c: 08026cf8 .word 0x08026cf8 - -0801fb60 : - * 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) -{ - 801fb60: b580 push {r7, lr} - 801fb62: b082 sub sp, #8 - 801fb64: af00 add r7, sp, #0 - 801fb66: 6078 str r0, [r7, #4] - 801fb68: 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); - 801fb6a: 4a05 ldr r2, [pc, #20] ; (801fb80 ) - 801fb6c: 6839 ldr r1, [r7, #0] - 801fb6e: 6878 ldr r0, [r7, #4] - 801fb70: f7ff ffd4 bl 801fb1c - 801fb74: 4603 mov r3, r0 -} - 801fb76: 4618 mov r0, r3 - 801fb78: 3708 adds r7, #8 - 801fb7a: 46bd mov sp, r7 - 801fb7c: bd80 pop {r7, pc} - 801fb7e: bf00 nop - 801fb80: 08026cf0 .word 0x08026cf0 - -0801fb84 : - * @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) -{ - 801fb84: b580 push {r7, lr} - 801fb86: b08e sub sp, #56 ; 0x38 - 801fb88: af04 add r7, sp, #16 - 801fb8a: 6078 str r0, [r7, #4] - 801fb8c: 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(); - 801fb8e: 4b89 ldr r3, [pc, #548] ; (801fdb4 ) - 801fb90: 689b ldr r3, [r3, #8] - 801fb92: 627b str r3, [r7, #36] ; 0x24 - hlen = IPH_HL_BYTES(iphdr_in); - 801fb94: 6a7b ldr r3, [r7, #36] ; 0x24 - 801fb96: 781b ldrb r3, [r3, #0] - 801fb98: f003 030f and.w r3, r3, #15 - 801fb9c: b2db uxtb r3, r3 - 801fb9e: 009b lsls r3, r3, #2 - 801fba0: b2db uxtb r3, r3 - 801fba2: 847b strh r3, [r7, #34] ; 0x22 - if (hlen < IP_HLEN) { - 801fba4: 8c7b ldrh r3, [r7, #34] ; 0x22 - 801fba6: 2b13 cmp r3, #19 - 801fba8: f240 80ed bls.w 801fd86 - LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: short IP header (%"S16_F" bytes) received\n", hlen)); - goto lenerr; - } - if (p->len < sizeof(u16_t) * 2) { - 801fbac: 687b ldr r3, [r7, #4] - 801fbae: 895b ldrh r3, [r3, #10] - 801fbb0: 2b03 cmp r3, #3 - 801fbb2: f240 80ea bls.w 801fd8a - LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: short ICMP (%"U16_F" bytes) received\n", p->tot_len)); - goto lenerr; - } - - type = *((u8_t *)p->payload); - 801fbb6: 687b ldr r3, [r7, #4] - 801fbb8: 685b ldr r3, [r3, #4] - 801fbba: 781b ldrb r3, [r3, #0] - 801fbbc: f887 3021 strb.w r3, [r7, #33] ; 0x21 -#ifdef LWIP_DEBUG - code = *(((u8_t *)p->payload) + 1); - 801fbc0: 687b ldr r3, [r7, #4] - 801fbc2: 685b ldr r3, [r3, #4] - 801fbc4: 785b ldrb r3, [r3, #1] - 801fbc6: f887 3020 strb.w r3, [r7, #32] - /* if debug is enabled but debug statement below is somehow disabled: */ - LWIP_UNUSED_ARG(code); -#endif /* LWIP_DEBUG */ - switch (type) { - 801fbca: f897 3021 ldrb.w r3, [r7, #33] ; 0x21 - 801fbce: 2b00 cmp r3, #0 - 801fbd0: f000 80d2 beq.w 801fd78 - 801fbd4: 2b08 cmp r3, #8 - 801fbd6: f040 80d2 bne.w 801fd7e - (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(); - 801fbda: 4b77 ldr r3, [pc, #476] ; (801fdb8 ) - 801fbdc: 61fb str r3, [r7, #28] - /* multicast destination address? */ - if (ip4_addr_ismulticast(ip4_current_dest_addr())) { - 801fbde: 4b75 ldr r3, [pc, #468] ; (801fdb4 ) - 801fbe0: 695b ldr r3, [r3, #20] - 801fbe2: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 801fbe6: 2be0 cmp r3, #224 ; 0xe0 - 801fbe8: f000 80d6 beq.w 801fd98 - 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())) { - 801fbec: 4b71 ldr r3, [pc, #452] ; (801fdb4 ) - 801fbee: 695b ldr r3, [r3, #20] - 801fbf0: 4a70 ldr r2, [pc, #448] ; (801fdb4 ) - 801fbf2: 6812 ldr r2, [r2, #0] - 801fbf4: 4611 mov r1, r2 - 801fbf6: 4618 mov r0, r3 - 801fbf8: f000 fc12 bl 8020420 - 801fbfc: 4603 mov r3, r0 - 801fbfe: 2b00 cmp r3, #0 - 801fc00: f040 80cc bne.w 801fd9c - 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)) { - 801fc04: 687b ldr r3, [r7, #4] - 801fc06: 891b ldrh r3, [r3, #8] - 801fc08: 2b07 cmp r3, #7 - 801fc0a: f240 80c0 bls.w 801fd8e - LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: bad ICMP echo received\n")); - goto lenerr; - } -#if CHECKSUM_CHECK_ICMP - IF__NETIF_CHECKSUM_ENABLED(inp, NETIF_CHECKSUM_CHECK_ICMP) { - if (inet_chksum_pbuf(p) != 0) { - 801fc0e: 6878 ldr r0, [r7, #4] - 801fc10: f7f6 fa33 bl 801607a - 801fc14: 4603 mov r3, r0 - 801fc16: 2b00 cmp r3, #0 - 801fc18: d003 beq.n 801fc22 - LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: checksum failed for received ICMP echo\n")); - pbuf_free(p); - 801fc1a: 6878 ldr r0, [r7, #4] - 801fc1c: f7f7 ff6c bl 8017af8 - ICMP_STATS_INC(icmp.chkerr); - MIB2_STATS_INC(mib2.icmpinerrors); - return; - 801fc20: e0c5 b.n 801fdae - } - } -#endif -#if LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN - if (pbuf_add_header(p, hlen + PBUF_LINK_HLEN + PBUF_LINK_ENCAPSULATION_HLEN)) { - 801fc22: 8c7b ldrh r3, [r7, #34] ; 0x22 - 801fc24: 330e adds r3, #14 - 801fc26: 4619 mov r1, r3 - 801fc28: 6878 ldr r0, [r7, #4] - 801fc2a: f7f7 fecf bl 80179cc - 801fc2e: 4603 mov r3, r0 - 801fc30: 2b00 cmp r3, #0 - 801fc32: d04b beq.n 801fccc - /* 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); - 801fc34: 687b ldr r3, [r7, #4] - 801fc36: 891a ldrh r2, [r3, #8] - 801fc38: 8c7b ldrh r3, [r7, #34] ; 0x22 - 801fc3a: 4413 add r3, r2 - 801fc3c: 837b strh r3, [r7, #26] - if (alloc_len < p->tot_len) { - 801fc3e: 687b ldr r3, [r7, #4] - 801fc40: 891b ldrh r3, [r3, #8] - 801fc42: 8b7a ldrh r2, [r7, #26] - 801fc44: 429a cmp r2, r3 - 801fc46: f0c0 80ab bcc.w 801fda0 - 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); - 801fc4a: 8b7b ldrh r3, [r7, #26] - 801fc4c: f44f 7220 mov.w r2, #640 ; 0x280 - 801fc50: 4619 mov r1, r3 - 801fc52: 200e movs r0, #14 - 801fc54: f7f7 fc68 bl 8017528 - 801fc58: 6178 str r0, [r7, #20] - if (r == NULL) { - 801fc5a: 697b ldr r3, [r7, #20] - 801fc5c: 2b00 cmp r3, #0 - 801fc5e: f000 80a1 beq.w 801fda4 - LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: allocating new pbuf failed\n")); - goto icmperr; - } - if (r->len < hlen + sizeof(struct icmp_echo_hdr)) { - 801fc62: 697b ldr r3, [r7, #20] - 801fc64: 895b ldrh r3, [r3, #10] - 801fc66: 461a mov r2, r3 - 801fc68: 8c7b ldrh r3, [r7, #34] ; 0x22 - 801fc6a: 3308 adds r3, #8 - 801fc6c: 429a cmp r2, r3 - 801fc6e: d203 bcs.n 801fc78 - LWIP_DEBUGF(ICMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("first pbuf cannot hold the ICMP header")); - pbuf_free(r); - 801fc70: 6978 ldr r0, [r7, #20] - 801fc72: f7f7 ff41 bl 8017af8 - goto icmperr; - 801fc76: e096 b.n 801fda6 - } - /* copy the ip header */ - MEMCPY(r->payload, iphdr_in, hlen); - 801fc78: 697b ldr r3, [r7, #20] - 801fc7a: 685b ldr r3, [r3, #4] - 801fc7c: 8c7a ldrh r2, [r7, #34] ; 0x22 - 801fc7e: 6a79 ldr r1, [r7, #36] ; 0x24 - 801fc80: 4618 mov r0, r3 - 801fc82: f002 f8b0 bl 8021de6 - /* switch r->payload back to icmp header (cannot fail) */ - if (pbuf_remove_header(r, hlen)) { - 801fc86: 8c7b ldrh r3, [r7, #34] ; 0x22 - 801fc88: 4619 mov r1, r3 - 801fc8a: 6978 ldr r0, [r7, #20] - 801fc8c: f7f7 feae bl 80179ec - 801fc90: 4603 mov r3, r0 - 801fc92: 2b00 cmp r3, #0 - 801fc94: d009 beq.n 801fcaa - LWIP_ASSERT("icmp_input: moving r->payload to icmp header failed\n", 0); - 801fc96: 4b49 ldr r3, [pc, #292] ; (801fdbc ) - 801fc98: 22b6 movs r2, #182 ; 0xb6 - 801fc9a: 4949 ldr r1, [pc, #292] ; (801fdc0 ) - 801fc9c: 4849 ldr r0, [pc, #292] ; (801fdc4 ) - 801fc9e: f001 fe73 bl 8021988 - pbuf_free(r); - 801fca2: 6978 ldr r0, [r7, #20] - 801fca4: f7f7 ff28 bl 8017af8 - goto icmperr; - 801fca8: e07d b.n 801fda6 - } - /* copy the rest of the packet without ip header */ - if (pbuf_copy(r, p) != ERR_OK) { - 801fcaa: 6879 ldr r1, [r7, #4] - 801fcac: 6978 ldr r0, [r7, #20] - 801fcae: f7f8 f847 bl 8017d40 - 801fcb2: 4603 mov r3, r0 - 801fcb4: 2b00 cmp r3, #0 - 801fcb6: d003 beq.n 801fcc0 - LWIP_DEBUGF(ICMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("icmp_input: copying to new pbuf failed")); - pbuf_free(r); - 801fcb8: 6978 ldr r0, [r7, #20] - 801fcba: f7f7 ff1d bl 8017af8 - goto icmperr; - 801fcbe: e072 b.n 801fda6 - } - /* free the original p */ - pbuf_free(p); - 801fcc0: 6878 ldr r0, [r7, #4] - 801fcc2: f7f7 ff19 bl 8017af8 - /* we now have an identical copy of p that has room for link headers */ - p = r; - 801fcc6: 697b ldr r3, [r7, #20] - 801fcc8: 607b str r3, [r7, #4] - 801fcca: e00f b.n 801fcec - } else { - /* restore p->payload to point to icmp header (cannot fail) */ - if (pbuf_remove_header(p, hlen + PBUF_LINK_HLEN + PBUF_LINK_ENCAPSULATION_HLEN)) { - 801fccc: 8c7b ldrh r3, [r7, #34] ; 0x22 - 801fcce: 330e adds r3, #14 - 801fcd0: 4619 mov r1, r3 - 801fcd2: 6878 ldr r0, [r7, #4] - 801fcd4: f7f7 fe8a bl 80179ec - 801fcd8: 4603 mov r3, r0 - 801fcda: 2b00 cmp r3, #0 - 801fcdc: d006 beq.n 801fcec - LWIP_ASSERT("icmp_input: restoring original p->payload failed\n", 0); - 801fcde: 4b37 ldr r3, [pc, #220] ; (801fdbc ) - 801fce0: 22c7 movs r2, #199 ; 0xc7 - 801fce2: 4939 ldr r1, [pc, #228] ; (801fdc8 ) - 801fce4: 4837 ldr r0, [pc, #220] ; (801fdc4 ) - 801fce6: f001 fe4f bl 8021988 - goto icmperr; - 801fcea: e05c b.n 801fda6 - } -#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; - 801fcec: 687b ldr r3, [r7, #4] - 801fcee: 685b ldr r3, [r3, #4] - 801fcf0: 613b str r3, [r7, #16] - if (pbuf_add_header(p, hlen)) { - 801fcf2: 8c7b ldrh r3, [r7, #34] ; 0x22 - 801fcf4: 4619 mov r1, r3 - 801fcf6: 6878 ldr r0, [r7, #4] - 801fcf8: f7f7 fe68 bl 80179cc - 801fcfc: 4603 mov r3, r0 - 801fcfe: 2b00 cmp r3, #0 - 801fd00: d13c bne.n 801fd7c - 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; - 801fd02: 687b ldr r3, [r7, #4] - 801fd04: 685b ldr r3, [r3, #4] - 801fd06: 60fb str r3, [r7, #12] - ip4_addr_copy(iphdr->src, *src); - 801fd08: 69fb ldr r3, [r7, #28] - 801fd0a: 681a ldr r2, [r3, #0] - 801fd0c: 68fb ldr r3, [r7, #12] - 801fd0e: 60da str r2, [r3, #12] - ip4_addr_copy(iphdr->dest, *ip4_current_src_addr()); - 801fd10: 4b28 ldr r3, [pc, #160] ; (801fdb4 ) - 801fd12: 691a ldr r2, [r3, #16] - 801fd14: 68fb ldr r3, [r7, #12] - 801fd16: 611a str r2, [r3, #16] - ICMPH_TYPE_SET(iecho, ICMP_ER); - 801fd18: 693b ldr r3, [r7, #16] - 801fd1a: 2200 movs r2, #0 - 801fd1c: 701a strb r2, [r3, #0] -#if CHECKSUM_GEN_ICMP - IF__NETIF_CHECKSUM_ENABLED(inp, NETIF_CHECKSUM_GEN_ICMP) { - /* adjust the checksum */ - if (iecho->chksum > PP_HTONS(0xffffU - (ICMP_ECHO << 8))) { - 801fd1e: 693b ldr r3, [r7, #16] - 801fd20: 885b ldrh r3, [r3, #2] - 801fd22: b29b uxth r3, r3 - 801fd24: f64f 72f7 movw r2, #65527 ; 0xfff7 - 801fd28: 4293 cmp r3, r2 - 801fd2a: d907 bls.n 801fd3c - iecho->chksum = (u16_t)(iecho->chksum + PP_HTONS((u16_t)(ICMP_ECHO << 8)) + 1); - 801fd2c: 693b ldr r3, [r7, #16] - 801fd2e: 885b ldrh r3, [r3, #2] - 801fd30: b29b uxth r3, r3 - 801fd32: 3309 adds r3, #9 - 801fd34: b29a uxth r2, r3 - 801fd36: 693b ldr r3, [r7, #16] - 801fd38: 805a strh r2, [r3, #2] - 801fd3a: e006 b.n 801fd4a - } else { - iecho->chksum = (u16_t)(iecho->chksum + PP_HTONS(ICMP_ECHO << 8)); - 801fd3c: 693b ldr r3, [r7, #16] - 801fd3e: 885b ldrh r3, [r3, #2] - 801fd40: b29b uxth r3, r3 - 801fd42: 3308 adds r3, #8 - 801fd44: b29a uxth r2, r3 - 801fd46: 693b ldr r3, [r7, #16] - 801fd48: 805a strh r2, [r3, #2] -#else /* CHECKSUM_GEN_ICMP */ - iecho->chksum = 0; -#endif /* CHECKSUM_GEN_ICMP */ - - /* Set the correct TTL and recalculate the header checksum. */ - IPH_TTL_SET(iphdr, ICMP_TTL); - 801fd4a: 68fb ldr r3, [r7, #12] - 801fd4c: 22ff movs r2, #255 ; 0xff - 801fd4e: 721a strb r2, [r3, #8] - IPH_CHKSUM_SET(iphdr, 0); - 801fd50: 68fb ldr r3, [r7, #12] - 801fd52: 2200 movs r2, #0 - 801fd54: 729a strb r2, [r3, #10] - 801fd56: 2200 movs r2, #0 - 801fd58: 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, - 801fd5a: 683b ldr r3, [r7, #0] - 801fd5c: 9302 str r3, [sp, #8] - 801fd5e: 2301 movs r3, #1 - 801fd60: 9301 str r3, [sp, #4] - 801fd62: 2300 movs r3, #0 - 801fd64: 9300 str r3, [sp, #0] - 801fd66: 23ff movs r3, #255 ; 0xff - 801fd68: 2200 movs r2, #0 - 801fd6a: 69f9 ldr r1, [r7, #28] - 801fd6c: 6878 ldr r0, [r7, #4] - 801fd6e: f000 fa7f bl 8020270 - 801fd72: 4603 mov r3, r0 - 801fd74: 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; - 801fd76: e001 b.n 801fd7c - break; - 801fd78: bf00 nop - 801fd7a: e000 b.n 801fd7e - break; - 801fd7c: 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); - 801fd7e: 6878 ldr r0, [r7, #4] - 801fd80: f7f7 feba bl 8017af8 - return; - 801fd84: e013 b.n 801fdae - goto lenerr; - 801fd86: bf00 nop - 801fd88: e002 b.n 801fd90 - goto lenerr; - 801fd8a: bf00 nop - 801fd8c: e000 b.n 801fd90 - goto lenerr; - 801fd8e: bf00 nop -lenerr: - pbuf_free(p); - 801fd90: 6878 ldr r0, [r7, #4] - 801fd92: f7f7 feb1 bl 8017af8 - ICMP_STATS_INC(icmp.lenerr); - MIB2_STATS_INC(mib2.icmpinerrors); - return; - 801fd96: e00a b.n 801fdae - goto icmperr; - 801fd98: bf00 nop - 801fd9a: e004 b.n 801fda6 - goto icmperr; - 801fd9c: bf00 nop - 801fd9e: e002 b.n 801fda6 - goto icmperr; - 801fda0: bf00 nop - 801fda2: e000 b.n 801fda6 - goto icmperr; - 801fda4: bf00 nop -#if LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN || !LWIP_MULTICAST_PING || !LWIP_BROADCAST_PING -icmperr: - pbuf_free(p); - 801fda6: 6878 ldr r0, [r7, #4] - 801fda8: f7f7 fea6 bl 8017af8 - ICMP_STATS_INC(icmp.err); - MIB2_STATS_INC(mib2.icmpinerrors); - return; - 801fdac: bf00 nop -#endif /* LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN || !LWIP_MULTICAST_PING || !LWIP_BROADCAST_PING */ -} - 801fdae: 3728 adds r7, #40 ; 0x28 - 801fdb0: 46bd mov sp, r7 - 801fdb2: bd80 pop {r7, pc} - 801fdb4: 24013980 .word 0x24013980 - 801fdb8: 24013994 .word 0x24013994 - 801fdbc: 080266f4 .word 0x080266f4 - 801fdc0: 0802672c .word 0x0802672c - 801fdc4: 08026764 .word 0x08026764 - 801fdc8: 0802678c .word 0x0802678c - -0801fdcc : - * 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) -{ - 801fdcc: b580 push {r7, lr} - 801fdce: b082 sub sp, #8 - 801fdd0: af00 add r7, sp, #0 - 801fdd2: 6078 str r0, [r7, #4] - 801fdd4: 460b mov r3, r1 - 801fdd6: 70fb strb r3, [r7, #3] - MIB2_STATS_INC(mib2.icmpoutdestunreachs); - icmp_send_response(p, ICMP_DUR, t); - 801fdd8: 78fb ldrb r3, [r7, #3] - 801fdda: 461a mov r2, r3 - 801fddc: 2103 movs r1, #3 - 801fdde: 6878 ldr r0, [r7, #4] - 801fde0: f000 f814 bl 801fe0c -} - 801fde4: bf00 nop - 801fde6: 3708 adds r7, #8 - 801fde8: 46bd mov sp, r7 - 801fdea: bd80 pop {r7, pc} - -0801fdec : - * 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) -{ - 801fdec: b580 push {r7, lr} - 801fdee: b082 sub sp, #8 - 801fdf0: af00 add r7, sp, #0 - 801fdf2: 6078 str r0, [r7, #4] - 801fdf4: 460b mov r3, r1 - 801fdf6: 70fb strb r3, [r7, #3] - MIB2_STATS_INC(mib2.icmpouttimeexcds); - icmp_send_response(p, ICMP_TE, t); - 801fdf8: 78fb ldrb r3, [r7, #3] - 801fdfa: 461a mov r2, r3 - 801fdfc: 210b movs r1, #11 - 801fdfe: 6878 ldr r0, [r7, #4] - 801fe00: f000 f804 bl 801fe0c -} - 801fe04: bf00 nop - 801fe06: 3708 adds r7, #8 - 801fe08: 46bd mov sp, r7 - 801fe0a: bd80 pop {r7, pc} - -0801fe0c : - * @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) -{ - 801fe0c: b580 push {r7, lr} - 801fe0e: b08c sub sp, #48 ; 0x30 - 801fe10: af04 add r7, sp, #16 - 801fe12: 6078 str r0, [r7, #4] - 801fe14: 460b mov r3, r1 - 801fe16: 70fb strb r3, [r7, #3] - 801fe18: 4613 mov r3, r2 - 801fe1a: 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, - 801fe1c: f44f 7220 mov.w r2, #640 ; 0x280 - 801fe20: 2124 movs r1, #36 ; 0x24 - 801fe22: 2022 movs r0, #34 ; 0x22 - 801fe24: f7f7 fb80 bl 8017528 - 801fe28: 61b8 str r0, [r7, #24] - PBUF_RAM); - if (q == NULL) { - 801fe2a: 69bb ldr r3, [r7, #24] - 801fe2c: 2b00 cmp r3, #0 - 801fe2e: d056 beq.n 801fede - 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", - 801fe30: 69bb ldr r3, [r7, #24] - 801fe32: 895b ldrh r3, [r3, #10] - 801fe34: 2b23 cmp r3, #35 ; 0x23 - 801fe36: d806 bhi.n 801fe46 - 801fe38: 4b2b ldr r3, [pc, #172] ; (801fee8 ) - 801fe3a: f44f 72b4 mov.w r2, #360 ; 0x168 - 801fe3e: 492b ldr r1, [pc, #172] ; (801feec ) - 801fe40: 482b ldr r0, [pc, #172] ; (801fef0 ) - 801fe42: f001 fda1 bl 8021988 - (q->len >= (sizeof(struct icmp_echo_hdr) + IP_HLEN + ICMP_DEST_UNREACH_DATASIZE))); - - iphdr = (struct ip_hdr *)p->payload; - 801fe46: 687b ldr r3, [r7, #4] - 801fe48: 685b ldr r3, [r3, #4] - 801fe4a: 617b str r3, [r7, #20] - 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; - 801fe4c: 69bb ldr r3, [r7, #24] - 801fe4e: 685b ldr r3, [r3, #4] - 801fe50: 613b str r3, [r7, #16] - icmphdr->type = type; - 801fe52: 693b ldr r3, [r7, #16] - 801fe54: 78fa ldrb r2, [r7, #3] - 801fe56: 701a strb r2, [r3, #0] - icmphdr->code = code; - 801fe58: 693b ldr r3, [r7, #16] - 801fe5a: 78ba ldrb r2, [r7, #2] - 801fe5c: 705a strb r2, [r3, #1] - icmphdr->id = 0; - 801fe5e: 693b ldr r3, [r7, #16] - 801fe60: 2200 movs r2, #0 - 801fe62: 711a strb r2, [r3, #4] - 801fe64: 2200 movs r2, #0 - 801fe66: 715a strb r2, [r3, #5] - icmphdr->seqno = 0; - 801fe68: 693b ldr r3, [r7, #16] - 801fe6a: 2200 movs r2, #0 - 801fe6c: 719a strb r2, [r3, #6] - 801fe6e: 2200 movs r2, #0 - 801fe70: 71da strb r2, [r3, #7] - - /* copy fields from original packet */ - SMEMCPY((u8_t *)q->payload + sizeof(struct icmp_echo_hdr), (u8_t *)p->payload, - 801fe72: 69bb ldr r3, [r7, #24] - 801fe74: 685b ldr r3, [r3, #4] - 801fe76: f103 0008 add.w r0, r3, #8 - 801fe7a: 687b ldr r3, [r7, #4] - 801fe7c: 685b ldr r3, [r3, #4] - 801fe7e: 221c movs r2, #28 - 801fe80: 4619 mov r1, r3 - 801fe82: f001 ffb0 bl 8021de6 - IP_HLEN + ICMP_DEST_UNREACH_DATASIZE); - - ip4_addr_copy(iphdr_src, iphdr->src); - 801fe86: 697b ldr r3, [r7, #20] - 801fe88: 68db ldr r3, [r3, #12] - 801fe8a: 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); - 801fe8c: f107 030c add.w r3, r7, #12 - 801fe90: 4618 mov r0, r3 - 801fe92: f000 f82f bl 801fef4 - 801fe96: 61f8 str r0, [r7, #28] -#endif - if (netif != NULL) { - 801fe98: 69fb ldr r3, [r7, #28] - 801fe9a: 2b00 cmp r3, #0 - 801fe9c: d01b beq.n 801fed6 - /* calculate checksum */ - icmphdr->chksum = 0; - 801fe9e: 693b ldr r3, [r7, #16] - 801fea0: 2200 movs r2, #0 - 801fea2: 709a strb r2, [r3, #2] - 801fea4: 2200 movs r2, #0 - 801fea6: 70da strb r2, [r3, #3] -#if CHECKSUM_GEN_ICMP - IF__NETIF_CHECKSUM_ENABLED(netif, NETIF_CHECKSUM_GEN_ICMP) { - icmphdr->chksum = inet_chksum(icmphdr, q->len); - 801fea8: 69bb ldr r3, [r7, #24] - 801feaa: 895b ldrh r3, [r3, #10] - 801feac: 4619 mov r1, r3 - 801feae: 6938 ldr r0, [r7, #16] - 801feb0: f7f6 f8d1 bl 8016056 - 801feb4: 4603 mov r3, r0 - 801feb6: 461a mov r2, r3 - 801feb8: 693b ldr r3, [r7, #16] - 801feba: 805a strh r2, [r3, #2] - } -#endif - ICMP_STATS_INC(icmp.xmit); - ip4_output_if(q, NULL, &iphdr_src, ICMP_TTL, 0, IP_PROTO_ICMP, netif); - 801febc: f107 020c add.w r2, r7, #12 - 801fec0: 69fb ldr r3, [r7, #28] - 801fec2: 9302 str r3, [sp, #8] - 801fec4: 2301 movs r3, #1 - 801fec6: 9301 str r3, [sp, #4] - 801fec8: 2300 movs r3, #0 - 801feca: 9300 str r3, [sp, #0] - 801fecc: 23ff movs r3, #255 ; 0xff - 801fece: 2100 movs r1, #0 - 801fed0: 69b8 ldr r0, [r7, #24] - 801fed2: f000 f9cd bl 8020270 - } - pbuf_free(q); - 801fed6: 69b8 ldr r0, [r7, #24] - 801fed8: f7f7 fe0e bl 8017af8 - 801fedc: e000 b.n 801fee0 - return; - 801fede: bf00 nop -} - 801fee0: 3720 adds r7, #32 - 801fee2: 46bd mov sp, r7 - 801fee4: bd80 pop {r7, pc} - 801fee6: bf00 nop - 801fee8: 080266f4 .word 0x080266f4 - 801feec: 080267c0 .word 0x080267c0 - 801fef0: 08026764 .word 0x08026764 - -0801fef4 : - * @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) -{ - 801fef4: b480 push {r7} - 801fef6: b085 sub sp, #20 - 801fef8: af00 add r7, sp, #0 - 801fefa: 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) { - 801fefc: 4b33 ldr r3, [pc, #204] ; (801ffcc ) - 801fefe: 681b ldr r3, [r3, #0] - 801ff00: 60fb str r3, [r7, #12] - 801ff02: e036 b.n 801ff72 - /* 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))) { - 801ff04: 68fb ldr r3, [r7, #12] - 801ff06: f893 302d ldrb.w r3, [r3, #45] ; 0x2d - 801ff0a: f003 0301 and.w r3, r3, #1 - 801ff0e: b2db uxtb r3, r3 - 801ff10: 2b00 cmp r3, #0 - 801ff12: d02b beq.n 801ff6c - 801ff14: 68fb ldr r3, [r7, #12] - 801ff16: f893 302d ldrb.w r3, [r3, #45] ; 0x2d - 801ff1a: 089b lsrs r3, r3, #2 - 801ff1c: f003 0301 and.w r3, r3, #1 - 801ff20: b2db uxtb r3, r3 - 801ff22: 2b00 cmp r3, #0 - 801ff24: d022 beq.n 801ff6c - 801ff26: 68fb ldr r3, [r7, #12] - 801ff28: 3304 adds r3, #4 - 801ff2a: 681b ldr r3, [r3, #0] - 801ff2c: 2b00 cmp r3, #0 - 801ff2e: d01d beq.n 801ff6c - /* network mask matches? */ - if (ip4_addr_netcmp(dest, netif_ip4_addr(netif), netif_ip4_netmask(netif))) { - 801ff30: 687b ldr r3, [r7, #4] - 801ff32: 681a ldr r2, [r3, #0] - 801ff34: 68fb ldr r3, [r7, #12] - 801ff36: 3304 adds r3, #4 - 801ff38: 681b ldr r3, [r3, #0] - 801ff3a: 405a eors r2, r3 - 801ff3c: 68fb ldr r3, [r7, #12] - 801ff3e: 3308 adds r3, #8 - 801ff40: 681b ldr r3, [r3, #0] - 801ff42: 4013 ands r3, r2 - 801ff44: 2b00 cmp r3, #0 - 801ff46: d101 bne.n 801ff4c - /* return netif on which to forward IP packet */ - return netif; - 801ff48: 68fb ldr r3, [r7, #12] - 801ff4a: e038 b.n 801ffbe - } - /* 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))) { - 801ff4c: 68fb ldr r3, [r7, #12] - 801ff4e: f893 302d ldrb.w r3, [r3, #45] ; 0x2d - 801ff52: f003 0302 and.w r3, r3, #2 - 801ff56: 2b00 cmp r3, #0 - 801ff58: d108 bne.n 801ff6c - 801ff5a: 687b ldr r3, [r7, #4] - 801ff5c: 681a ldr r2, [r3, #0] - 801ff5e: 68fb ldr r3, [r7, #12] - 801ff60: 330c adds r3, #12 - 801ff62: 681b ldr r3, [r3, #0] - 801ff64: 429a cmp r2, r3 - 801ff66: d101 bne.n 801ff6c - /* return netif on which to forward IP packet */ - return netif; - 801ff68: 68fb ldr r3, [r7, #12] - 801ff6a: e028 b.n 801ffbe - NETIF_FOREACH(netif) { - 801ff6c: 68fb ldr r3, [r7, #12] - 801ff6e: 681b ldr r3, [r3, #0] - 801ff70: 60fb str r3, [r7, #12] - 801ff72: 68fb ldr r3, [r7, #12] - 801ff74: 2b00 cmp r3, #0 - 801ff76: d1c5 bne.n 801ff04 - return netif; - } -#endif -#endif /* !LWIP_SINGLE_NETIF */ - - if ((netif_default == NULL) || !netif_is_up(netif_default) || !netif_is_link_up(netif_default) || - 801ff78: 4b15 ldr r3, [pc, #84] ; (801ffd0 ) - 801ff7a: 681b ldr r3, [r3, #0] - 801ff7c: 2b00 cmp r3, #0 - 801ff7e: d01a beq.n 801ffb6 - 801ff80: 4b13 ldr r3, [pc, #76] ; (801ffd0 ) - 801ff82: 681b ldr r3, [r3, #0] - 801ff84: f893 302d ldrb.w r3, [r3, #45] ; 0x2d - 801ff88: f003 0301 and.w r3, r3, #1 - 801ff8c: 2b00 cmp r3, #0 - 801ff8e: d012 beq.n 801ffb6 - 801ff90: 4b0f ldr r3, [pc, #60] ; (801ffd0 ) - 801ff92: 681b ldr r3, [r3, #0] - 801ff94: f893 302d ldrb.w r3, [r3, #45] ; 0x2d - 801ff98: f003 0304 and.w r3, r3, #4 - 801ff9c: 2b00 cmp r3, #0 - 801ff9e: d00a beq.n 801ffb6 - ip4_addr_isany_val(*netif_ip4_addr(netif_default)) || ip4_addr_isloopback(dest)) { - 801ffa0: 4b0b ldr r3, [pc, #44] ; (801ffd0 ) - 801ffa2: 681b ldr r3, [r3, #0] - 801ffa4: 3304 adds r3, #4 - 801ffa6: 681b ldr r3, [r3, #0] - if ((netif_default == NULL) || !netif_is_up(netif_default) || !netif_is_link_up(netif_default) || - 801ffa8: 2b00 cmp r3, #0 - 801ffaa: d004 beq.n 801ffb6 - ip4_addr_isany_val(*netif_ip4_addr(netif_default)) || ip4_addr_isloopback(dest)) { - 801ffac: 687b ldr r3, [r7, #4] - 801ffae: 681b ldr r3, [r3, #0] - 801ffb0: b2db uxtb r3, r3 - 801ffb2: 2b7f cmp r3, #127 ; 0x7f - 801ffb4: d101 bne.n 801ffba - 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; - 801ffb6: 2300 movs r3, #0 - 801ffb8: e001 b.n 801ffbe - } - - return netif_default; - 801ffba: 4b05 ldr r3, [pc, #20] ; (801ffd0 ) - 801ffbc: 681b ldr r3, [r3, #0] -} - 801ffbe: 4618 mov r0, r3 - 801ffc0: 3714 adds r7, #20 - 801ffc2: 46bd mov sp, r7 - 801ffc4: f85d 7b04 ldr.w r7, [sp], #4 - 801ffc8: 4770 bx lr - 801ffca: bf00 nop - 801ffcc: 2401a474 .word 0x2401a474 - 801ffd0: 2401a478 .word 0x2401a478 - -0801ffd4 : -#endif /* IP_FORWARD */ - -/** Return true if the current input packet should be accepted on this netif */ -static int -ip4_input_accept(struct netif *netif) -{ - 801ffd4: b580 push {r7, lr} - 801ffd6: b082 sub sp, #8 - 801ffd8: af00 add r7, sp, #0 - 801ffda: 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)))) { - 801ffdc: 687b ldr r3, [r7, #4] - 801ffde: f893 302d ldrb.w r3, [r3, #45] ; 0x2d - 801ffe2: f003 0301 and.w r3, r3, #1 - 801ffe6: b2db uxtb r3, r3 - 801ffe8: 2b00 cmp r3, #0 - 801ffea: d016 beq.n 802001a - 801ffec: 687b ldr r3, [r7, #4] - 801ffee: 3304 adds r3, #4 - 801fff0: 681b ldr r3, [r3, #0] - 801fff2: 2b00 cmp r3, #0 - 801fff4: d011 beq.n 802001a - /* unicast to this interface address? */ - if (ip4_addr_cmp(ip4_current_dest_addr(), netif_ip4_addr(netif)) || - 801fff6: 4b0b ldr r3, [pc, #44] ; (8020024 ) - 801fff8: 695a ldr r2, [r3, #20] - 801fffa: 687b ldr r3, [r7, #4] - 801fffc: 3304 adds r3, #4 - 801fffe: 681b ldr r3, [r3, #0] - 8020000: 429a cmp r2, r3 - 8020002: d008 beq.n 8020016 - /* or broadcast on this interface network address? */ - ip4_addr_isbroadcast(ip4_current_dest_addr(), netif) - 8020004: 4b07 ldr r3, [pc, #28] ; (8020024 ) - 8020006: 695b ldr r3, [r3, #20] - 8020008: 6879 ldr r1, [r7, #4] - 802000a: 4618 mov r0, r3 - 802000c: f000 fa08 bl 8020420 - 8020010: 4603 mov r3, r0 - if (ip4_addr_cmp(ip4_current_dest_addr(), netif_ip4_addr(netif)) || - 8020012: 2b00 cmp r3, #0 - 8020014: d001 beq.n 802001a -#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; - 8020016: 2301 movs r3, #1 - 8020018: e000 b.n 802001c - /* accept on this netif */ - return 1; - } -#endif /* LWIP_AUTOIP */ - } - return 0; - 802001a: 2300 movs r3, #0 -} - 802001c: 4618 mov r0, r3 - 802001e: 3708 adds r7, #8 - 8020020: 46bd mov sp, r7 - 8020022: bd80 pop {r7, pc} - 8020024: 24013980 .word 0x24013980 - -08020028 : - * @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) -{ - 8020028: b580 push {r7, lr} - 802002a: b086 sub sp, #24 - 802002c: af00 add r7, sp, #0 - 802002e: 6078 str r0, [r7, #4] - 8020030: 6039 str r1, [r7, #0] - - IP_STATS_INC(ip.recv); - MIB2_STATS_INC(mib2.ipinreceives); - - /* identify the IP header */ - iphdr = (struct ip_hdr *)p->payload; - 8020032: 687b ldr r3, [r7, #4] - 8020034: 685b ldr r3, [r3, #4] - 8020036: 613b str r3, [r7, #16] - if (IPH_V(iphdr) != 4) { - 8020038: 693b ldr r3, [r7, #16] - 802003a: 781b ldrb r3, [r3, #0] - 802003c: 091b lsrs r3, r3, #4 - 802003e: b2db uxtb r3, r3 - 8020040: 2b04 cmp r3, #4 - 8020042: d004 beq.n 802004e - 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); - 8020044: 6878 ldr r0, [r7, #4] - 8020046: f7f7 fd57 bl 8017af8 - IP_STATS_INC(ip.err); - IP_STATS_INC(ip.drop); - MIB2_STATS_INC(mib2.ipinhdrerrors); - return ERR_OK; - 802004a: 2300 movs r3, #0 - 802004c: e107 b.n 802025e - return ERR_OK; - } -#endif - - /* obtain IP header length in bytes */ - iphdr_hlen = IPH_HL_BYTES(iphdr); - 802004e: 693b ldr r3, [r7, #16] - 8020050: 781b ldrb r3, [r3, #0] - 8020052: f003 030f and.w r3, r3, #15 - 8020056: b2db uxtb r3, r3 - 8020058: 009b lsls r3, r3, #2 - 802005a: b2db uxtb r3, r3 - 802005c: 81fb strh r3, [r7, #14] - /* obtain ip length in bytes */ - iphdr_len = lwip_ntohs(IPH_LEN(iphdr)); - 802005e: 693b ldr r3, [r7, #16] - 8020060: 885b ldrh r3, [r3, #2] - 8020062: b29b uxth r3, r3 - 8020064: 4618 mov r0, r3 - 8020066: f7f5 ff6b bl 8015f40 - 802006a: 4603 mov r3, r0 - 802006c: 81bb strh r3, [r7, #12] - - /* Trim pbuf. This is especially required for packets < 60 bytes. */ - if (iphdr_len < p->tot_len) { - 802006e: 687b ldr r3, [r7, #4] - 8020070: 891b ldrh r3, [r3, #8] - 8020072: 89ba ldrh r2, [r7, #12] - 8020074: 429a cmp r2, r3 - 8020076: d204 bcs.n 8020082 - pbuf_realloc(p, iphdr_len); - 8020078: 89bb ldrh r3, [r7, #12] - 802007a: 4619 mov r1, r3 - 802007c: 6878 ldr r0, [r7, #4] - 802007e: f7f7 fbb5 bl 80177ec - } - - /* 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)) { - 8020082: 687b ldr r3, [r7, #4] - 8020084: 895b ldrh r3, [r3, #10] - 8020086: 89fa ldrh r2, [r7, #14] - 8020088: 429a cmp r2, r3 - 802008a: d807 bhi.n 802009c - 802008c: 687b ldr r3, [r7, #4] - 802008e: 891b ldrh r3, [r3, #8] - 8020090: 89ba ldrh r2, [r7, #12] - 8020092: 429a cmp r2, r3 - 8020094: d802 bhi.n 802009c - 8020096: 89fb ldrh r3, [r7, #14] - 8020098: 2b13 cmp r3, #19 - 802009a: d804 bhi.n 80200a6 - 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); - 802009c: 6878 ldr r0, [r7, #4] - 802009e: f7f7 fd2b bl 8017af8 - IP_STATS_INC(ip.lenerr); - IP_STATS_INC(ip.drop); - MIB2_STATS_INC(mib2.ipindiscards); - return ERR_OK; - 80200a2: 2300 movs r3, #0 - 80200a4: e0db b.n 802025e - } - } -#endif - - /* copy IP addresses to aligned ip_addr_t */ - ip_addr_copy_from_ip4(ip_data.current_iphdr_dest, iphdr->dest); - 80200a6: 693b ldr r3, [r7, #16] - 80200a8: 691b ldr r3, [r3, #16] - 80200aa: 4a6f ldr r2, [pc, #444] ; (8020268 ) - 80200ac: 6153 str r3, [r2, #20] - ip_addr_copy_from_ip4(ip_data.current_iphdr_src, iphdr->src); - 80200ae: 693b ldr r3, [r7, #16] - 80200b0: 68db ldr r3, [r3, #12] - 80200b2: 4a6d ldr r2, [pc, #436] ; (8020268 ) - 80200b4: 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())) { - 80200b6: 4b6c ldr r3, [pc, #432] ; (8020268 ) - 80200b8: 695b ldr r3, [r3, #20] - 80200ba: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 80200be: 2be0 cmp r3, #224 ; 0xe0 - 80200c0: d112 bne.n 80200e8 - netif = inp; - } else { - netif = NULL; - } -#else /* LWIP_IGMP */ - if ((netif_is_up(inp)) && (!ip4_addr_isany_val(*netif_ip4_addr(inp)))) { - 80200c2: 683b ldr r3, [r7, #0] - 80200c4: f893 302d ldrb.w r3, [r3, #45] ; 0x2d - 80200c8: f003 0301 and.w r3, r3, #1 - 80200cc: b2db uxtb r3, r3 - 80200ce: 2b00 cmp r3, #0 - 80200d0: d007 beq.n 80200e2 - 80200d2: 683b ldr r3, [r7, #0] - 80200d4: 3304 adds r3, #4 - 80200d6: 681b ldr r3, [r3, #0] - 80200d8: 2b00 cmp r3, #0 - 80200da: d002 beq.n 80200e2 - netif = inp; - 80200dc: 683b ldr r3, [r7, #0] - 80200de: 617b str r3, [r7, #20] - 80200e0: e02a b.n 8020138 - } else { - netif = NULL; - 80200e2: 2300 movs r3, #0 - 80200e4: 617b str r3, [r7, #20] - 80200e6: e027 b.n 8020138 - } -#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)) { - 80200e8: 6838 ldr r0, [r7, #0] - 80200ea: f7ff ff73 bl 801ffd4 - 80200ee: 4603 mov r3, r0 - 80200f0: 2b00 cmp r3, #0 - 80200f2: d002 beq.n 80200fa - netif = inp; - 80200f4: 683b ldr r3, [r7, #0] - 80200f6: 617b str r3, [r7, #20] - 80200f8: e01e b.n 8020138 - } else { - netif = NULL; - 80200fa: 2300 movs r3, #0 - 80200fc: 617b str r3, [r7, #20] -#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())) - 80200fe: 4b5a ldr r3, [pc, #360] ; (8020268 ) - 8020100: 695b ldr r3, [r3, #20] - 8020102: b2db uxtb r3, r3 - 8020104: 2b7f cmp r3, #127 ; 0x7f - 8020106: d017 beq.n 8020138 -#endif /* !LWIP_NETIF_LOOPBACK || LWIP_HAVE_LOOPIF */ - { -#if !LWIP_SINGLE_NETIF - NETIF_FOREACH(netif) { - 8020108: 4b58 ldr r3, [pc, #352] ; (802026c ) - 802010a: 681b ldr r3, [r3, #0] - 802010c: 617b str r3, [r7, #20] - 802010e: e00e b.n 802012e - if (netif == inp) { - 8020110: 697a ldr r2, [r7, #20] - 8020112: 683b ldr r3, [r7, #0] - 8020114: 429a cmp r2, r3 - 8020116: d006 beq.n 8020126 - /* we checked that before already */ - continue; - } - if (ip4_input_accept(netif)) { - 8020118: 6978 ldr r0, [r7, #20] - 802011a: f7ff ff5b bl 801ffd4 - 802011e: 4603 mov r3, r0 - 8020120: 2b00 cmp r3, #0 - 8020122: d108 bne.n 8020136 - 8020124: e000 b.n 8020128 - continue; - 8020126: bf00 nop - NETIF_FOREACH(netif) { - 8020128: 697b ldr r3, [r7, #20] - 802012a: 681b ldr r3, [r3, #0] - 802012c: 617b str r3, [r7, #20] - 802012e: 697b ldr r3, [r7, #20] - 8020130: 2b00 cmp r3, #0 - 8020132: d1ed bne.n 8020110 - 8020134: e000 b.n 8020138 - break; - 8020136: bf00 nop - && !ip4_addr_isany_val(*ip4_current_src_addr()) -#endif /* IP_ACCEPT_LINK_LAYER_ADDRESSING */ - ) -#endif /* LWIP_IGMP || IP_ACCEPT_LINK_LAYER_ADDRESSING */ - { - if ((ip4_addr_isbroadcast(ip4_current_src_addr(), inp)) || - 8020138: 4b4b ldr r3, [pc, #300] ; (8020268 ) - 802013a: 691b ldr r3, [r3, #16] - 802013c: 6839 ldr r1, [r7, #0] - 802013e: 4618 mov r0, r3 - 8020140: f000 f96e bl 8020420 - 8020144: 4603 mov r3, r0 - 8020146: 2b00 cmp r3, #0 - 8020148: d105 bne.n 8020156 - (ip4_addr_ismulticast(ip4_current_src_addr()))) { - 802014a: 4b47 ldr r3, [pc, #284] ; (8020268 ) - 802014c: 691b ldr r3, [r3, #16] - 802014e: f003 03f0 and.w r3, r3, #240 ; 0xf0 - if ((ip4_addr_isbroadcast(ip4_current_src_addr(), inp)) || - 8020152: 2be0 cmp r3, #224 ; 0xe0 - 8020154: d104 bne.n 8020160 - /* 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); - 8020156: 6878 ldr r0, [r7, #4] - 8020158: f7f7 fcce bl 8017af8 - IP_STATS_INC(ip.drop); - MIB2_STATS_INC(mib2.ipinaddrerrors); - MIB2_STATS_INC(mib2.ipindiscards); - return ERR_OK; - 802015c: 2300 movs r3, #0 - 802015e: e07e b.n 802025e - } - } - - /* packet not for us? */ - if (netif == NULL) { - 8020160: 697b ldr r3, [r7, #20] - 8020162: 2b00 cmp r3, #0 - 8020164: d104 bne.n 8020170 - { - IP_STATS_INC(ip.drop); - MIB2_STATS_INC(mib2.ipinaddrerrors); - MIB2_STATS_INC(mib2.ipindiscards); - } - pbuf_free(p); - 8020166: 6878 ldr r0, [r7, #4] - 8020168: f7f7 fcc6 bl 8017af8 - return ERR_OK; - 802016c: 2300 movs r3, #0 - 802016e: e076 b.n 802025e - } - /* packet consists of multiple fragments? */ - if ((IPH_OFFSET(iphdr) & PP_HTONS(IP_OFFMASK | IP_MF)) != 0) { - 8020170: 693b ldr r3, [r7, #16] - 8020172: 88db ldrh r3, [r3, #6] - 8020174: b29b uxth r3, r3 - 8020176: 461a mov r2, r3 - 8020178: f64f 733f movw r3, #65343 ; 0xff3f - 802017c: 4013 ands r3, r2 - 802017e: 2b00 cmp r3, #0 - 8020180: d00b beq.n 802019a -#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); - 8020182: 6878 ldr r0, [r7, #4] - 8020184: f000 fc92 bl 8020aac - 8020188: 6078 str r0, [r7, #4] - /* packet not fully reassembled yet? */ - if (p == NULL) { - 802018a: 687b ldr r3, [r7, #4] - 802018c: 2b00 cmp r3, #0 - 802018e: d101 bne.n 8020194 - return ERR_OK; - 8020190: 2300 movs r3, #0 - 8020192: e064 b.n 802025e - } - iphdr = (const struct ip_hdr *)p->payload; - 8020194: 687b ldr r3, [r7, #4] - 8020196: 685b ldr r3, [r3, #4] - 8020198: 613b str r3, [r7, #16] - /* 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; - 802019a: 4a33 ldr r2, [pc, #204] ; (8020268 ) - 802019c: 697b ldr r3, [r7, #20] - 802019e: 6013 str r3, [r2, #0] - ip_data.current_input_netif = inp; - 80201a0: 4a31 ldr r2, [pc, #196] ; (8020268 ) - 80201a2: 683b ldr r3, [r7, #0] - 80201a4: 6053 str r3, [r2, #4] - ip_data.current_ip4_header = iphdr; - 80201a6: 4a30 ldr r2, [pc, #192] ; (8020268 ) - 80201a8: 693b ldr r3, [r7, #16] - 80201aa: 6093 str r3, [r2, #8] - ip_data.current_ip_header_tot_len = IPH_HL_BYTES(iphdr); - 80201ac: 693b ldr r3, [r7, #16] - 80201ae: 781b ldrb r3, [r3, #0] - 80201b0: f003 030f and.w r3, r3, #15 - 80201b4: b2db uxtb r3, r3 - 80201b6: 009b lsls r3, r3, #2 - 80201b8: b2db uxtb r3, r3 - 80201ba: b29a uxth r2, r3 - 80201bc: 4b2a ldr r3, [pc, #168] ; (8020268 ) - 80201be: 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. */ - 80201c0: 89fb ldrh r3, [r7, #14] - 80201c2: 4619 mov r1, r3 - 80201c4: 6878 ldr r0, [r7, #4] - 80201c6: f7f7 fc11 bl 80179ec - - switch (IPH_PROTO(iphdr)) { - 80201ca: 693b ldr r3, [r7, #16] - 80201cc: 7a5b ldrb r3, [r3, #9] - 80201ce: 2b11 cmp r3, #17 - 80201d0: d006 beq.n 80201e0 - 80201d2: 2b11 cmp r3, #17 - 80201d4: dc13 bgt.n 80201fe - 80201d6: 2b01 cmp r3, #1 - 80201d8: d00c beq.n 80201f4 - 80201da: 2b06 cmp r3, #6 - 80201dc: d005 beq.n 80201ea - 80201de: e00e b.n 80201fe - case IP_PROTO_UDP: -#if LWIP_UDPLITE - case IP_PROTO_UDPLITE: -#endif /* LWIP_UDPLITE */ - MIB2_STATS_INC(mib2.ipindelivers); - udp_input(p, inp); - 80201e0: 6839 ldr r1, [r7, #0] - 80201e2: 6878 ldr r0, [r7, #4] - 80201e4: f7fe fa94 bl 801e710 - break; - 80201e8: e026 b.n 8020238 -#endif /* LWIP_UDP */ -#if LWIP_TCP - case IP_PROTO_TCP: - MIB2_STATS_INC(mib2.ipindelivers); - tcp_input(p, inp); - 80201ea: 6839 ldr r1, [r7, #0] - 80201ec: 6878 ldr r0, [r7, #4] - 80201ee: f7f9 fde1 bl 8019db4 - break; - 80201f2: e021 b.n 8020238 -#endif /* LWIP_TCP */ -#if LWIP_ICMP - case IP_PROTO_ICMP: - MIB2_STATS_INC(mib2.ipindelivers); - icmp_input(p, inp); - 80201f4: 6839 ldr r1, [r7, #0] - 80201f6: 6878 ldr r0, [r7, #4] - 80201f8: f7ff fcc4 bl 801fb84 - break; - 80201fc: e01c b.n 8020238 - } 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) && - 80201fe: 4b1a ldr r3, [pc, #104] ; (8020268 ) - 8020200: 695b ldr r3, [r3, #20] - 8020202: 6979 ldr r1, [r7, #20] - 8020204: 4618 mov r0, r3 - 8020206: f000 f90b bl 8020420 - 802020a: 4603 mov r3, r0 - 802020c: 2b00 cmp r3, #0 - 802020e: d10f bne.n 8020230 - !ip4_addr_ismulticast(ip4_current_dest_addr())) { - 8020210: 4b15 ldr r3, [pc, #84] ; (8020268 ) - 8020212: 695b ldr r3, [r3, #20] - 8020214: f003 03f0 and.w r3, r3, #240 ; 0xf0 - if (!ip4_addr_isbroadcast(ip4_current_dest_addr(), netif) && - 8020218: 2be0 cmp r3, #224 ; 0xe0 - 802021a: d009 beq.n 8020230 - pbuf_header_force(p, (s16_t)iphdr_hlen); /* Move to ip header, no check necessary. */ - 802021c: f9b7 300e ldrsh.w r3, [r7, #14] - 8020220: 4619 mov r1, r3 - 8020222: 6878 ldr r0, [r7, #4] - 8020224: f7f7 fc55 bl 8017ad2 - icmp_dest_unreach(p, ICMP_DUR_PROTO); - 8020228: 2102 movs r1, #2 - 802022a: 6878 ldr r0, [r7, #4] - 802022c: f7ff fdce bl 801fdcc - - IP_STATS_INC(ip.proterr); - IP_STATS_INC(ip.drop); - MIB2_STATS_INC(mib2.ipinunknownprotos); - } - pbuf_free(p); - 8020230: 6878 ldr r0, [r7, #4] - 8020232: f7f7 fc61 bl 8017af8 - break; - 8020236: bf00 nop - } - } - - /* @todo: this is not really necessary... */ - ip_data.current_netif = NULL; - 8020238: 4b0b ldr r3, [pc, #44] ; (8020268 ) - 802023a: 2200 movs r2, #0 - 802023c: 601a str r2, [r3, #0] - ip_data.current_input_netif = NULL; - 802023e: 4b0a ldr r3, [pc, #40] ; (8020268 ) - 8020240: 2200 movs r2, #0 - 8020242: 605a str r2, [r3, #4] - ip_data.current_ip4_header = NULL; - 8020244: 4b08 ldr r3, [pc, #32] ; (8020268 ) - 8020246: 2200 movs r2, #0 - 8020248: 609a str r2, [r3, #8] - ip_data.current_ip_header_tot_len = 0; - 802024a: 4b07 ldr r3, [pc, #28] ; (8020268 ) - 802024c: 2200 movs r2, #0 - 802024e: 819a strh r2, [r3, #12] - ip4_addr_set_any(ip4_current_src_addr()); - 8020250: 4b05 ldr r3, [pc, #20] ; (8020268 ) - 8020252: 2200 movs r2, #0 - 8020254: 611a str r2, [r3, #16] - ip4_addr_set_any(ip4_current_dest_addr()); - 8020256: 4b04 ldr r3, [pc, #16] ; (8020268 ) - 8020258: 2200 movs r2, #0 - 802025a: 615a str r2, [r3, #20] - - return ERR_OK; - 802025c: 2300 movs r3, #0 -} - 802025e: 4618 mov r0, r3 - 8020260: 3718 adds r7, #24 - 8020262: 46bd mov sp, r7 - 8020264: bd80 pop {r7, pc} - 8020266: bf00 nop - 8020268: 24013980 .word 0x24013980 - 802026c: 2401a474 .word 0x2401a474 - -08020270 : - */ -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) -{ - 8020270: b580 push {r7, lr} - 8020272: b08a sub sp, #40 ; 0x28 - 8020274: af04 add r7, sp, #16 - 8020276: 60f8 str r0, [r7, #12] - 8020278: 60b9 str r1, [r7, #8] - 802027a: 607a str r2, [r7, #4] - 802027c: 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; - 802027e: 68bb ldr r3, [r7, #8] - 8020280: 617b str r3, [r7, #20] - if (dest != LWIP_IP_HDRINCL) { - 8020282: 687b ldr r3, [r7, #4] - 8020284: 2b00 cmp r3, #0 - 8020286: d009 beq.n 802029c - if (ip4_addr_isany(src)) { - 8020288: 68bb ldr r3, [r7, #8] - 802028a: 2b00 cmp r3, #0 - 802028c: d003 beq.n 8020296 - 802028e: 68bb ldr r3, [r7, #8] - 8020290: 681b ldr r3, [r3, #0] - 8020292: 2b00 cmp r3, #0 - 8020294: d102 bne.n 802029c - src_used = netif_ip4_addr(netif); - 8020296: 6abb ldr r3, [r7, #40] ; 0x28 - 8020298: 3304 adds r3, #4 - 802029a: 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); - 802029c: 78fa ldrb r2, [r7, #3] - 802029e: 6abb ldr r3, [r7, #40] ; 0x28 - 80202a0: 9302 str r3, [sp, #8] - 80202a2: f897 3024 ldrb.w r3, [r7, #36] ; 0x24 - 80202a6: 9301 str r3, [sp, #4] - 80202a8: f897 3020 ldrb.w r3, [r7, #32] - 80202ac: 9300 str r3, [sp, #0] - 80202ae: 4613 mov r3, r2 - 80202b0: 687a ldr r2, [r7, #4] - 80202b2: 6979 ldr r1, [r7, #20] - 80202b4: 68f8 ldr r0, [r7, #12] - 80202b6: f000 f805 bl 80202c4 - 80202ba: 4603 mov r3, r0 -#endif /* IP_OPTIONS_SEND */ -} - 80202bc: 4618 mov r0, r3 - 80202be: 3718 adds r7, #24 - 80202c0: 46bd mov sp, r7 - 80202c2: bd80 pop {r7, pc} - -080202c4 : - */ -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) -{ - 80202c4: b580 push {r7, lr} - 80202c6: b088 sub sp, #32 - 80202c8: af00 add r7, sp, #0 - 80202ca: 60f8 str r0, [r7, #12] - 80202cc: 60b9 str r1, [r7, #8] - 80202ce: 607a str r2, [r7, #4] - 80202d0: 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); - 80202d2: 68fb ldr r3, [r7, #12] - 80202d4: 7b9b ldrb r3, [r3, #14] - 80202d6: 2b01 cmp r3, #1 - 80202d8: d006 beq.n 80202e8 - 80202da: 4b4b ldr r3, [pc, #300] ; (8020408 ) - 80202dc: f44f 7255 mov.w r2, #852 ; 0x354 - 80202e0: 494a ldr r1, [pc, #296] ; (802040c ) - 80202e2: 484b ldr r0, [pc, #300] ; (8020410 ) - 80202e4: f001 fb50 bl 8021988 - - MIB2_STATS_INC(mib2.ipoutrequests); - - /* Should the IP header be generated or is it already included in p? */ - if (dest != LWIP_IP_HDRINCL) { - 80202e8: 687b ldr r3, [r7, #4] - 80202ea: 2b00 cmp r3, #0 - 80202ec: d060 beq.n 80203b0 - u16_t ip_hlen = IP_HLEN; - 80202ee: 2314 movs r3, #20 - 80202f0: 837b strh r3, [r7, #26] - } -#endif /* CHECKSUM_GEN_IP_INLINE */ - } -#endif /* IP_OPTIONS_SEND */ - /* generate IP header */ - if (pbuf_add_header(p, IP_HLEN)) { - 80202f2: 2114 movs r1, #20 - 80202f4: 68f8 ldr r0, [r7, #12] - 80202f6: f7f7 fb69 bl 80179cc - 80202fa: 4603 mov r3, r0 - 80202fc: 2b00 cmp r3, #0 - 80202fe: d002 beq.n 8020306 - 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; - 8020300: f06f 0301 mvn.w r3, #1 - 8020304: e07c b.n 8020400 - } - - iphdr = (struct ip_hdr *)p->payload; - 8020306: 68fb ldr r3, [r7, #12] - 8020308: 685b ldr r3, [r3, #4] - 802030a: 61fb str r3, [r7, #28] - LWIP_ASSERT("check that first pbuf can hold struct ip_hdr", - 802030c: 68fb ldr r3, [r7, #12] - 802030e: 895b ldrh r3, [r3, #10] - 8020310: 2b13 cmp r3, #19 - 8020312: d806 bhi.n 8020322 - 8020314: 4b3c ldr r3, [pc, #240] ; (8020408 ) - 8020316: f44f 7262 mov.w r2, #904 ; 0x388 - 802031a: 493e ldr r1, [pc, #248] ; (8020414 ) - 802031c: 483c ldr r0, [pc, #240] ; (8020410 ) - 802031e: f001 fb33 bl 8021988 - (p->len >= sizeof(struct ip_hdr))); - - IPH_TTL_SET(iphdr, ttl); - 8020322: 69fb ldr r3, [r7, #28] - 8020324: 78fa ldrb r2, [r7, #3] - 8020326: 721a strb r2, [r3, #8] - IPH_PROTO_SET(iphdr, proto); - 8020328: 69fb ldr r3, [r7, #28] - 802032a: f897 202c ldrb.w r2, [r7, #44] ; 0x2c - 802032e: 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); - 8020330: 687b ldr r3, [r7, #4] - 8020332: 681a ldr r2, [r3, #0] - 8020334: 69fb ldr r3, [r7, #28] - 8020336: 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); - 8020338: 8b7b ldrh r3, [r7, #26] - 802033a: 089b lsrs r3, r3, #2 - 802033c: b29b uxth r3, r3 - 802033e: b2db uxtb r3, r3 - 8020340: f043 0340 orr.w r3, r3, #64 ; 0x40 - 8020344: b2da uxtb r2, r3 - 8020346: 69fb ldr r3, [r7, #28] - 8020348: 701a strb r2, [r3, #0] - IPH_TOS_SET(iphdr, tos); - 802034a: 69fb ldr r3, [r7, #28] - 802034c: f897 2028 ldrb.w r2, [r7, #40] ; 0x28 - 8020350: 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)); - 8020352: 68fb ldr r3, [r7, #12] - 8020354: 891b ldrh r3, [r3, #8] - 8020356: 4618 mov r0, r3 - 8020358: f7f5 fdf2 bl 8015f40 - 802035c: 4603 mov r3, r0 - 802035e: 461a mov r2, r3 - 8020360: 69fb ldr r3, [r7, #28] - 8020362: 805a strh r2, [r3, #2] -#if CHECKSUM_GEN_IP_INLINE - chk_sum += iphdr->_len; -#endif /* CHECKSUM_GEN_IP_INLINE */ - IPH_OFFSET_SET(iphdr, 0); - 8020364: 69fb ldr r3, [r7, #28] - 8020366: 2200 movs r2, #0 - 8020368: 719a strb r2, [r3, #6] - 802036a: 2200 movs r2, #0 - 802036c: 71da strb r2, [r3, #7] - IPH_ID_SET(iphdr, lwip_htons(ip_id)); - 802036e: 4b2a ldr r3, [pc, #168] ; (8020418 ) - 8020370: 881b ldrh r3, [r3, #0] - 8020372: 4618 mov r0, r3 - 8020374: f7f5 fde4 bl 8015f40 - 8020378: 4603 mov r3, r0 - 802037a: 461a mov r2, r3 - 802037c: 69fb ldr r3, [r7, #28] - 802037e: 809a strh r2, [r3, #4] -#if CHECKSUM_GEN_IP_INLINE - chk_sum += iphdr->_id; -#endif /* CHECKSUM_GEN_IP_INLINE */ - ++ip_id; - 8020380: 4b25 ldr r3, [pc, #148] ; (8020418 ) - 8020382: 881b ldrh r3, [r3, #0] - 8020384: 3301 adds r3, #1 - 8020386: b29a uxth r2, r3 - 8020388: 4b23 ldr r3, [pc, #140] ; (8020418 ) - 802038a: 801a strh r2, [r3, #0] - - if (src == NULL) { - 802038c: 68bb ldr r3, [r7, #8] - 802038e: 2b00 cmp r3, #0 - 8020390: d104 bne.n 802039c - ip4_addr_copy(iphdr->src, *IP4_ADDR_ANY4); - 8020392: 4b22 ldr r3, [pc, #136] ; (802041c ) - 8020394: 681a ldr r2, [r3, #0] - 8020396: 69fb ldr r3, [r7, #28] - 8020398: 60da str r2, [r3, #12] - 802039a: e003 b.n 80203a4 - } else { - /* src cannot be NULL here */ - ip4_addr_copy(iphdr->src, *src); - 802039c: 68bb ldr r3, [r7, #8] - 802039e: 681a ldr r2, [r3, #0] - 80203a0: 69fb ldr r3, [r7, #28] - 80203a2: 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); - 80203a4: 69fb ldr r3, [r7, #28] - 80203a6: 2200 movs r2, #0 - 80203a8: 729a strb r2, [r3, #10] - 80203aa: 2200 movs r2, #0 - 80203ac: 72da strb r2, [r3, #11] - 80203ae: e00f b.n 80203d0 - } -#endif /* CHECKSUM_GEN_IP */ -#endif /* CHECKSUM_GEN_IP_INLINE */ - } else { - /* IP header already included in p */ - if (p->len < IP_HLEN) { - 80203b0: 68fb ldr r3, [r7, #12] - 80203b2: 895b ldrh r3, [r3, #10] - 80203b4: 2b13 cmp r3, #19 - 80203b6: d802 bhi.n 80203be - 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; - 80203b8: f06f 0301 mvn.w r3, #1 - 80203bc: e020 b.n 8020400 - } - iphdr = (struct ip_hdr *)p->payload; - 80203be: 68fb ldr r3, [r7, #12] - 80203c0: 685b ldr r3, [r3, #4] - 80203c2: 61fb str r3, [r7, #28] - ip4_addr_copy(dest_addr, iphdr->dest); - 80203c4: 69fb ldr r3, [r7, #28] - 80203c6: 691b ldr r3, [r3, #16] - 80203c8: 617b str r3, [r7, #20] - dest = &dest_addr; - 80203ca: f107 0314 add.w r3, r7, #20 - 80203ce: 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)) { - 80203d0: 6b3b ldr r3, [r7, #48] ; 0x30 - 80203d2: 8c9b ldrh r3, [r3, #36] ; 0x24 - 80203d4: 2b00 cmp r3, #0 - 80203d6: d00c beq.n 80203f2 - 80203d8: 68fb ldr r3, [r7, #12] - 80203da: 891a ldrh r2, [r3, #8] - 80203dc: 6b3b ldr r3, [r7, #48] ; 0x30 - 80203de: 8c9b ldrh r3, [r3, #36] ; 0x24 - 80203e0: 429a cmp r2, r3 - 80203e2: d906 bls.n 80203f2 - return ip4_frag(p, netif, dest); - 80203e4: 687a ldr r2, [r7, #4] - 80203e6: 6b39 ldr r1, [r7, #48] ; 0x30 - 80203e8: 68f8 ldr r0, [r7, #12] - 80203ea: f000 fd53 bl 8020e94 - 80203ee: 4603 mov r3, r0 - 80203f0: e006 b.n 8020400 - } -#endif /* IP_FRAG */ - - LWIP_DEBUGF(IP_DEBUG, ("ip4_output_if: call netif->output()\n")); - return netif->output(netif, p, dest); - 80203f2: 6b3b ldr r3, [r7, #48] ; 0x30 - 80203f4: 695b ldr r3, [r3, #20] - 80203f6: 687a ldr r2, [r7, #4] - 80203f8: 68f9 ldr r1, [r7, #12] - 80203fa: 6b38 ldr r0, [r7, #48] ; 0x30 - 80203fc: 4798 blx r3 - 80203fe: 4603 mov r3, r0 -} - 8020400: 4618 mov r0, r3 - 8020402: 3720 adds r7, #32 - 8020404: 46bd mov sp, r7 - 8020406: bd80 pop {r7, pc} - 8020408: 080267ec .word 0x080267ec - 802040c: 08026820 .word 0x08026820 - 8020410: 0802682c .word 0x0802682c - 8020414: 08026854 .word 0x08026854 - 8020418: 2401a5d6 .word 0x2401a5d6 - 802041c: 08026cec .word 0x08026cec - -08020420 : - * @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) -{ - 8020420: b480 push {r7} - 8020422: b085 sub sp, #20 - 8020424: af00 add r7, sp, #0 - 8020426: 6078 str r0, [r7, #4] - 8020428: 6039 str r1, [r7, #0] - ip4_addr_t ipaddr; - ip4_addr_set_u32(&ipaddr, addr); - 802042a: 687b ldr r3, [r7, #4] - 802042c: 60fb str r3, [r7, #12] - - /* all ones (broadcast) or all zeroes (old skool broadcast) */ - if ((~addr == IPADDR_ANY) || - 802042e: 687b ldr r3, [r7, #4] - 8020430: f1b3 3fff cmp.w r3, #4294967295 - 8020434: d002 beq.n 802043c - 8020436: 687b ldr r3, [r7, #4] - 8020438: 2b00 cmp r3, #0 - 802043a: d101 bne.n 8020440 - (addr == IPADDR_ANY)) { - return 1; - 802043c: 2301 movs r3, #1 - 802043e: e02a b.n 8020496 - /* no broadcast support on this network interface? */ - } else if ((netif->flags & NETIF_FLAG_BROADCAST) == 0) { - 8020440: 683b ldr r3, [r7, #0] - 8020442: f893 302d ldrb.w r3, [r3, #45] ; 0x2d - 8020446: f003 0302 and.w r3, r3, #2 - 802044a: 2b00 cmp r3, #0 - 802044c: d101 bne.n 8020452 - /* the given address cannot be a broadcast address - * nor can we check against any broadcast addresses */ - return 0; - 802044e: 2300 movs r3, #0 - 8020450: e021 b.n 8020496 - /* address matches network interface address exactly? => no broadcast */ - } else if (addr == ip4_addr_get_u32(netif_ip4_addr(netif))) { - 8020452: 683b ldr r3, [r7, #0] - 8020454: 3304 adds r3, #4 - 8020456: 681b ldr r3, [r3, #0] - 8020458: 687a ldr r2, [r7, #4] - 802045a: 429a cmp r2, r3 - 802045c: d101 bne.n 8020462 - return 0; - 802045e: 2300 movs r3, #0 - 8020460: e019 b.n 8020496 - /* on the same (sub) network... */ - } else if (ip4_addr_netcmp(&ipaddr, netif_ip4_addr(netif), netif_ip4_netmask(netif)) - 8020462: 68fa ldr r2, [r7, #12] - 8020464: 683b ldr r3, [r7, #0] - 8020466: 3304 adds r3, #4 - 8020468: 681b ldr r3, [r3, #0] - 802046a: 405a eors r2, r3 - 802046c: 683b ldr r3, [r7, #0] - 802046e: 3308 adds r3, #8 - 8020470: 681b ldr r3, [r3, #0] - 8020472: 4013 ands r3, r2 - 8020474: 2b00 cmp r3, #0 - 8020476: d10d bne.n 8020494 - /* ...and host identifier bits are all ones? =>... */ - && ((addr & ~ip4_addr_get_u32(netif_ip4_netmask(netif))) == - 8020478: 683b ldr r3, [r7, #0] - 802047a: 3308 adds r3, #8 - 802047c: 681b ldr r3, [r3, #0] - 802047e: 43da mvns r2, r3 - 8020480: 687b ldr r3, [r7, #4] - 8020482: 401a ands r2, r3 - (IPADDR_BROADCAST & ~ip4_addr_get_u32(netif_ip4_netmask(netif))))) { - 8020484: 683b ldr r3, [r7, #0] - 8020486: 3308 adds r3, #8 - 8020488: 681b ldr r3, [r3, #0] - 802048a: 43db mvns r3, r3 - && ((addr & ~ip4_addr_get_u32(netif_ip4_netmask(netif))) == - 802048c: 429a cmp r2, r3 - 802048e: d101 bne.n 8020494 - /* => network broadcast address */ - return 1; - 8020490: 2301 movs r3, #1 - 8020492: e000 b.n 8020496 - } else { - return 0; - 8020494: 2300 movs r3, #0 - } -} - 8020496: 4618 mov r0, r3 - 8020498: 3714 adds r7, #20 - 802049a: 46bd mov sp, r7 - 802049c: f85d 7b04 ldr.w r7, [sp], #4 - 80204a0: 4770 bx lr - ... - -080204a4 : - * - * Should be called every 1000 msec (defined by IP_TMR_INTERVAL). - */ -void -ip_reass_tmr(void) -{ - 80204a4: b580 push {r7, lr} - 80204a6: b084 sub sp, #16 - 80204a8: af00 add r7, sp, #0 - struct ip_reassdata *r, *prev = NULL; - 80204aa: 2300 movs r3, #0 - 80204ac: 60bb str r3, [r7, #8] - - r = reassdatagrams; - 80204ae: 4b12 ldr r3, [pc, #72] ; (80204f8 ) - 80204b0: 681b ldr r3, [r3, #0] - 80204b2: 60fb str r3, [r7, #12] - while (r != NULL) { - 80204b4: e018 b.n 80204e8 - /* Decrement the timer. Once it reaches 0, - * clean up the incomplete fragment assembly */ - if (r->timer > 0) { - 80204b6: 68fb ldr r3, [r7, #12] - 80204b8: 7fdb ldrb r3, [r3, #31] - 80204ba: 2b00 cmp r3, #0 - 80204bc: d00b beq.n 80204d6 - r->timer--; - 80204be: 68fb ldr r3, [r7, #12] - 80204c0: 7fdb ldrb r3, [r3, #31] - 80204c2: 3b01 subs r3, #1 - 80204c4: b2da uxtb r2, r3 - 80204c6: 68fb ldr r3, [r7, #12] - 80204c8: 77da strb r2, [r3, #31] - LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_tmr: timer dec %"U16_F"\n", (u16_t)r->timer)); - prev = r; - 80204ca: 68fb ldr r3, [r7, #12] - 80204cc: 60bb str r3, [r7, #8] - r = r->next; - 80204ce: 68fb ldr r3, [r7, #12] - 80204d0: 681b ldr r3, [r3, #0] - 80204d2: 60fb str r3, [r7, #12] - 80204d4: e008 b.n 80204e8 - } else { - /* reassembly timed out */ - struct ip_reassdata *tmp; - LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_tmr: timer timed out\n")); - tmp = r; - 80204d6: 68fb ldr r3, [r7, #12] - 80204d8: 607b str r3, [r7, #4] - /* get the next pointer before freeing */ - r = r->next; - 80204da: 68fb ldr r3, [r7, #12] - 80204dc: 681b ldr r3, [r3, #0] - 80204de: 60fb str r3, [r7, #12] - /* free the helper struct and all enqueued pbufs */ - ip_reass_free_complete_datagram(tmp, prev); - 80204e0: 68b9 ldr r1, [r7, #8] - 80204e2: 6878 ldr r0, [r7, #4] - 80204e4: f000 f80a bl 80204fc - while (r != NULL) { - 80204e8: 68fb ldr r3, [r7, #12] - 80204ea: 2b00 cmp r3, #0 - 80204ec: d1e3 bne.n 80204b6 - } - } -} - 80204ee: bf00 nop - 80204f0: bf00 nop - 80204f2: 3710 adds r7, #16 - 80204f4: 46bd mov sp, r7 - 80204f6: bd80 pop {r7, pc} - 80204f8: 2401a5d8 .word 0x2401a5d8 - -080204fc : - * @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) -{ - 80204fc: b580 push {r7, lr} - 80204fe: b088 sub sp, #32 - 8020500: af00 add r7, sp, #0 - 8020502: 6078 str r0, [r7, #4] - 8020504: 6039 str r1, [r7, #0] - u16_t pbufs_freed = 0; - 8020506: 2300 movs r3, #0 - 8020508: 83fb strh r3, [r7, #30] - u16_t clen; - struct pbuf *p; - struct ip_reass_helper *iprh; - - LWIP_ASSERT("prev != ipr", prev != ipr); - 802050a: 683a ldr r2, [r7, #0] - 802050c: 687b ldr r3, [r7, #4] - 802050e: 429a cmp r2, r3 - 8020510: d105 bne.n 802051e - 8020512: 4b45 ldr r3, [pc, #276] ; (8020628 ) - 8020514: 22ab movs r2, #171 ; 0xab - 8020516: 4945 ldr r1, [pc, #276] ; (802062c ) - 8020518: 4845 ldr r0, [pc, #276] ; (8020630 ) - 802051a: f001 fa35 bl 8021988 - if (prev != NULL) { - 802051e: 683b ldr r3, [r7, #0] - 8020520: 2b00 cmp r3, #0 - 8020522: d00a beq.n 802053a - LWIP_ASSERT("prev->next == ipr", prev->next == ipr); - 8020524: 683b ldr r3, [r7, #0] - 8020526: 681b ldr r3, [r3, #0] - 8020528: 687a ldr r2, [r7, #4] - 802052a: 429a cmp r2, r3 - 802052c: d005 beq.n 802053a - 802052e: 4b3e ldr r3, [pc, #248] ; (8020628 ) - 8020530: 22ad movs r2, #173 ; 0xad - 8020532: 4940 ldr r1, [pc, #256] ; (8020634 ) - 8020534: 483e ldr r0, [pc, #248] ; (8020630 ) - 8020536: f001 fa27 bl 8021988 - } - - MIB2_STATS_INC(mib2.ipreasmfails); -#if LWIP_ICMP - iprh = (struct ip_reass_helper *)ipr->p->payload; - 802053a: 687b ldr r3, [r7, #4] - 802053c: 685b ldr r3, [r3, #4] - 802053e: 685b ldr r3, [r3, #4] - 8020540: 617b str r3, [r7, #20] - if (iprh->start == 0) { - 8020542: 697b ldr r3, [r7, #20] - 8020544: 889b ldrh r3, [r3, #4] - 8020546: b29b uxth r3, r3 - 8020548: 2b00 cmp r3, #0 - 802054a: d12a bne.n 80205a2 - /* The first fragment was received, send ICMP time exceeded. */ - /* First, de-queue the first pbuf from r->p. */ - p = ipr->p; - 802054c: 687b ldr r3, [r7, #4] - 802054e: 685b ldr r3, [r3, #4] - 8020550: 61bb str r3, [r7, #24] - ipr->p = iprh->next_pbuf; - 8020552: 697b ldr r3, [r7, #20] - 8020554: 681a ldr r2, [r3, #0] - 8020556: 687b ldr r3, [r7, #4] - 8020558: 605a str r2, [r3, #4] - /* Then, copy the original header into it. */ - SMEMCPY(p->payload, &ipr->iphdr, IP_HLEN); - 802055a: 69bb ldr r3, [r7, #24] - 802055c: 6858 ldr r0, [r3, #4] - 802055e: 687b ldr r3, [r7, #4] - 8020560: 3308 adds r3, #8 - 8020562: 2214 movs r2, #20 - 8020564: 4619 mov r1, r3 - 8020566: f001 fc3e bl 8021de6 - icmp_time_exceeded(p, ICMP_TE_FRAG); - 802056a: 2101 movs r1, #1 - 802056c: 69b8 ldr r0, [r7, #24] - 802056e: f7ff fc3d bl 801fdec - clen = pbuf_clen(p); - 8020572: 69b8 ldr r0, [r7, #24] - 8020574: f7f7 fb4e bl 8017c14 - 8020578: 4603 mov r3, r0 - 802057a: 827b strh r3, [r7, #18] - LWIP_ASSERT("pbufs_freed + clen <= 0xffff", pbufs_freed + clen <= 0xffff); - 802057c: 8bfa ldrh r2, [r7, #30] - 802057e: 8a7b ldrh r3, [r7, #18] - 8020580: 4413 add r3, r2 - 8020582: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8020586: db05 blt.n 8020594 - 8020588: 4b27 ldr r3, [pc, #156] ; (8020628 ) - 802058a: 22bc movs r2, #188 ; 0xbc - 802058c: 492a ldr r1, [pc, #168] ; (8020638 ) - 802058e: 4828 ldr r0, [pc, #160] ; (8020630 ) - 8020590: f001 f9fa bl 8021988 - pbufs_freed = (u16_t)(pbufs_freed + clen); - 8020594: 8bfa ldrh r2, [r7, #30] - 8020596: 8a7b ldrh r3, [r7, #18] - 8020598: 4413 add r3, r2 - 802059a: 83fb strh r3, [r7, #30] - pbuf_free(p); - 802059c: 69b8 ldr r0, [r7, #24] - 802059e: f7f7 faab bl 8017af8 - } -#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; - 80205a2: 687b ldr r3, [r7, #4] - 80205a4: 685b ldr r3, [r3, #4] - 80205a6: 61bb str r3, [r7, #24] - while (p != NULL) { - 80205a8: e01f b.n 80205ea - struct pbuf *pcur; - iprh = (struct ip_reass_helper *)p->payload; - 80205aa: 69bb ldr r3, [r7, #24] - 80205ac: 685b ldr r3, [r3, #4] - 80205ae: 617b str r3, [r7, #20] - pcur = p; - 80205b0: 69bb ldr r3, [r7, #24] - 80205b2: 60fb str r3, [r7, #12] - /* get the next pointer before freeing */ - p = iprh->next_pbuf; - 80205b4: 697b ldr r3, [r7, #20] - 80205b6: 681b ldr r3, [r3, #0] - 80205b8: 61bb str r3, [r7, #24] - clen = pbuf_clen(pcur); - 80205ba: 68f8 ldr r0, [r7, #12] - 80205bc: f7f7 fb2a bl 8017c14 - 80205c0: 4603 mov r3, r0 - 80205c2: 827b strh r3, [r7, #18] - LWIP_ASSERT("pbufs_freed + clen <= 0xffff", pbufs_freed + clen <= 0xffff); - 80205c4: 8bfa ldrh r2, [r7, #30] - 80205c6: 8a7b ldrh r3, [r7, #18] - 80205c8: 4413 add r3, r2 - 80205ca: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 80205ce: db05 blt.n 80205dc - 80205d0: 4b15 ldr r3, [pc, #84] ; (8020628 ) - 80205d2: 22cc movs r2, #204 ; 0xcc - 80205d4: 4918 ldr r1, [pc, #96] ; (8020638 ) - 80205d6: 4816 ldr r0, [pc, #88] ; (8020630 ) - 80205d8: f001 f9d6 bl 8021988 - pbufs_freed = (u16_t)(pbufs_freed + clen); - 80205dc: 8bfa ldrh r2, [r7, #30] - 80205de: 8a7b ldrh r3, [r7, #18] - 80205e0: 4413 add r3, r2 - 80205e2: 83fb strh r3, [r7, #30] - pbuf_free(pcur); - 80205e4: 68f8 ldr r0, [r7, #12] - 80205e6: f7f7 fa87 bl 8017af8 - while (p != NULL) { - 80205ea: 69bb ldr r3, [r7, #24] - 80205ec: 2b00 cmp r3, #0 - 80205ee: d1dc bne.n 80205aa - } - /* Then, unchain the struct ip_reassdata from the list and free it. */ - ip_reass_dequeue_datagram(ipr, prev); - 80205f0: 6839 ldr r1, [r7, #0] - 80205f2: 6878 ldr r0, [r7, #4] - 80205f4: f000 f8c2 bl 802077c - LWIP_ASSERT("ip_reass_pbufcount >= pbufs_freed", ip_reass_pbufcount >= pbufs_freed); - 80205f8: 4b10 ldr r3, [pc, #64] ; (802063c ) - 80205fa: 881b ldrh r3, [r3, #0] - 80205fc: 8bfa ldrh r2, [r7, #30] - 80205fe: 429a cmp r2, r3 - 8020600: d905 bls.n 802060e - 8020602: 4b09 ldr r3, [pc, #36] ; (8020628 ) - 8020604: 22d2 movs r2, #210 ; 0xd2 - 8020606: 490e ldr r1, [pc, #56] ; (8020640 ) - 8020608: 4809 ldr r0, [pc, #36] ; (8020630 ) - 802060a: f001 f9bd bl 8021988 - ip_reass_pbufcount = (u16_t)(ip_reass_pbufcount - pbufs_freed); - 802060e: 4b0b ldr r3, [pc, #44] ; (802063c ) - 8020610: 881a ldrh r2, [r3, #0] - 8020612: 8bfb ldrh r3, [r7, #30] - 8020614: 1ad3 subs r3, r2, r3 - 8020616: b29a uxth r2, r3 - 8020618: 4b08 ldr r3, [pc, #32] ; (802063c ) - 802061a: 801a strh r2, [r3, #0] - - return pbufs_freed; - 802061c: 8bfb ldrh r3, [r7, #30] -} - 802061e: 4618 mov r0, r3 - 8020620: 3720 adds r7, #32 - 8020622: 46bd mov sp, r7 - 8020624: bd80 pop {r7, pc} - 8020626: bf00 nop - 8020628: 08026884 .word 0x08026884 - 802062c: 080268c0 .word 0x080268c0 - 8020630: 080268cc .word 0x080268cc - 8020634: 080268f4 .word 0x080268f4 - 8020638: 08026908 .word 0x08026908 - 802063c: 2401a5dc .word 0x2401a5dc - 8020640: 08026928 .word 0x08026928 - -08020644 : - * (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) -{ - 8020644: b580 push {r7, lr} - 8020646: b08a sub sp, #40 ; 0x28 - 8020648: af00 add r7, sp, #0 - 802064a: 6078 str r0, [r7, #4] - 802064c: 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; - 802064e: 2300 movs r3, #0 - 8020650: 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; - 8020652: 2300 movs r3, #0 - 8020654: 623b str r3, [r7, #32] - prev = NULL; - 8020656: 2300 movs r3, #0 - 8020658: 61fb str r3, [r7, #28] - oldest_prev = NULL; - 802065a: 2300 movs r3, #0 - 802065c: 61bb str r3, [r7, #24] - other_datagrams = 0; - 802065e: 2300 movs r3, #0 - 8020660: 613b str r3, [r7, #16] - r = reassdatagrams; - 8020662: 4b28 ldr r3, [pc, #160] ; (8020704 ) - 8020664: 681b ldr r3, [r3, #0] - 8020666: 627b str r3, [r7, #36] ; 0x24 - while (r != NULL) { - 8020668: e030 b.n 80206cc - if (!IP_ADDRESSES_AND_ID_MATCH(&r->iphdr, fraghdr)) { - 802066a: 6a7b ldr r3, [r7, #36] ; 0x24 - 802066c: 695a ldr r2, [r3, #20] - 802066e: 687b ldr r3, [r7, #4] - 8020670: 68db ldr r3, [r3, #12] - 8020672: 429a cmp r2, r3 - 8020674: d10c bne.n 8020690 - 8020676: 6a7b ldr r3, [r7, #36] ; 0x24 - 8020678: 699a ldr r2, [r3, #24] - 802067a: 687b ldr r3, [r7, #4] - 802067c: 691b ldr r3, [r3, #16] - 802067e: 429a cmp r2, r3 - 8020680: d106 bne.n 8020690 - 8020682: 6a7b ldr r3, [r7, #36] ; 0x24 - 8020684: 899a ldrh r2, [r3, #12] - 8020686: 687b ldr r3, [r7, #4] - 8020688: 889b ldrh r3, [r3, #4] - 802068a: b29b uxth r3, r3 - 802068c: 429a cmp r2, r3 - 802068e: d014 beq.n 80206ba - /* Not the same datagram as fraghdr */ - other_datagrams++; - 8020690: 693b ldr r3, [r7, #16] - 8020692: 3301 adds r3, #1 - 8020694: 613b str r3, [r7, #16] - if (oldest == NULL) { - 8020696: 6a3b ldr r3, [r7, #32] - 8020698: 2b00 cmp r3, #0 - 802069a: d104 bne.n 80206a6 - oldest = r; - 802069c: 6a7b ldr r3, [r7, #36] ; 0x24 - 802069e: 623b str r3, [r7, #32] - oldest_prev = prev; - 80206a0: 69fb ldr r3, [r7, #28] - 80206a2: 61bb str r3, [r7, #24] - 80206a4: e009 b.n 80206ba - } else if (r->timer <= oldest->timer) { - 80206a6: 6a7b ldr r3, [r7, #36] ; 0x24 - 80206a8: 7fda ldrb r2, [r3, #31] - 80206aa: 6a3b ldr r3, [r7, #32] - 80206ac: 7fdb ldrb r3, [r3, #31] - 80206ae: 429a cmp r2, r3 - 80206b0: d803 bhi.n 80206ba - /* older than the previous oldest */ - oldest = r; - 80206b2: 6a7b ldr r3, [r7, #36] ; 0x24 - 80206b4: 623b str r3, [r7, #32] - oldest_prev = prev; - 80206b6: 69fb ldr r3, [r7, #28] - 80206b8: 61bb str r3, [r7, #24] - } - } - if (r->next != NULL) { - 80206ba: 6a7b ldr r3, [r7, #36] ; 0x24 - 80206bc: 681b ldr r3, [r3, #0] - 80206be: 2b00 cmp r3, #0 - 80206c0: d001 beq.n 80206c6 - prev = r; - 80206c2: 6a7b ldr r3, [r7, #36] ; 0x24 - 80206c4: 61fb str r3, [r7, #28] - } - r = r->next; - 80206c6: 6a7b ldr r3, [r7, #36] ; 0x24 - 80206c8: 681b ldr r3, [r3, #0] - 80206ca: 627b str r3, [r7, #36] ; 0x24 - while (r != NULL) { - 80206cc: 6a7b ldr r3, [r7, #36] ; 0x24 - 80206ce: 2b00 cmp r3, #0 - 80206d0: d1cb bne.n 802066a - } - if (oldest != NULL) { - 80206d2: 6a3b ldr r3, [r7, #32] - 80206d4: 2b00 cmp r3, #0 - 80206d6: d008 beq.n 80206ea - pbufs_freed_current = ip_reass_free_complete_datagram(oldest, oldest_prev); - 80206d8: 69b9 ldr r1, [r7, #24] - 80206da: 6a38 ldr r0, [r7, #32] - 80206dc: f7ff ff0e bl 80204fc - 80206e0: 60f8 str r0, [r7, #12] - pbufs_freed += pbufs_freed_current; - 80206e2: 697a ldr r2, [r7, #20] - 80206e4: 68fb ldr r3, [r7, #12] - 80206e6: 4413 add r3, r2 - 80206e8: 617b str r3, [r7, #20] - } - } while ((pbufs_freed < pbufs_needed) && (other_datagrams > 1)); - 80206ea: 697a ldr r2, [r7, #20] - 80206ec: 683b ldr r3, [r7, #0] - 80206ee: 429a cmp r2, r3 - 80206f0: da02 bge.n 80206f8 - 80206f2: 693b ldr r3, [r7, #16] - 80206f4: 2b01 cmp r3, #1 - 80206f6: dcac bgt.n 8020652 - return pbufs_freed; - 80206f8: 697b ldr r3, [r7, #20] -} - 80206fa: 4618 mov r0, r3 - 80206fc: 3728 adds r7, #40 ; 0x28 - 80206fe: 46bd mov sp, r7 - 8020700: bd80 pop {r7, pc} - 8020702: bf00 nop - 8020704: 2401a5d8 .word 0x2401a5d8 - -08020708 : - * @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) -{ - 8020708: b580 push {r7, lr} - 802070a: b084 sub sp, #16 - 802070c: af00 add r7, sp, #0 - 802070e: 6078 str r0, [r7, #4] - 8020710: 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); - 8020712: 2004 movs r0, #4 - 8020714: f7f6 f9dc bl 8016ad0 - 8020718: 60f8 str r0, [r7, #12] - if (ipr == NULL) { - 802071a: 68fb ldr r3, [r7, #12] - 802071c: 2b00 cmp r3, #0 - 802071e: d110 bne.n 8020742 -#if IP_REASS_FREE_OLDEST - if (ip_reass_remove_oldest_datagram(fraghdr, clen) >= clen) { - 8020720: 6839 ldr r1, [r7, #0] - 8020722: 6878 ldr r0, [r7, #4] - 8020724: f7ff ff8e bl 8020644 - 8020728: 4602 mov r2, r0 - 802072a: 683b ldr r3, [r7, #0] - 802072c: 4293 cmp r3, r2 - 802072e: dc03 bgt.n 8020738 - ipr = (struct ip_reassdata *)memp_malloc(MEMP_REASSDATA); - 8020730: 2004 movs r0, #4 - 8020732: f7f6 f9cd bl 8016ad0 - 8020736: 60f8 str r0, [r7, #12] - } - if (ipr == NULL) - 8020738: 68fb ldr r3, [r7, #12] - 802073a: 2b00 cmp r3, #0 - 802073c: d101 bne.n 8020742 -#endif /* IP_REASS_FREE_OLDEST */ - { - IPFRAG_STATS_INC(ip_frag.memerr); - LWIP_DEBUGF(IP_REASS_DEBUG, ("Failed to alloc reassdata struct\n")); - return NULL; - 802073e: 2300 movs r3, #0 - 8020740: e016 b.n 8020770 - } - } - memset(ipr, 0, sizeof(struct ip_reassdata)); - 8020742: 2220 movs r2, #32 - 8020744: 2100 movs r1, #0 - 8020746: 68f8 ldr r0, [r7, #12] - 8020748: f001 faca bl 8021ce0 - ipr->timer = IP_REASS_MAXAGE; - 802074c: 68fb ldr r3, [r7, #12] - 802074e: 220f movs r2, #15 - 8020750: 77da strb r2, [r3, #31] - - /* enqueue the new structure to the front of the list */ - ipr->next = reassdatagrams; - 8020752: 4b09 ldr r3, [pc, #36] ; (8020778 ) - 8020754: 681a ldr r2, [r3, #0] - 8020756: 68fb ldr r3, [r7, #12] - 8020758: 601a str r2, [r3, #0] - reassdatagrams = ipr; - 802075a: 4a07 ldr r2, [pc, #28] ; (8020778 ) - 802075c: 68fb ldr r3, [r7, #12] - 802075e: 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); - 8020760: 68fb ldr r3, [r7, #12] - 8020762: 3308 adds r3, #8 - 8020764: 2214 movs r2, #20 - 8020766: 6879 ldr r1, [r7, #4] - 8020768: 4618 mov r0, r3 - 802076a: f001 fb3c bl 8021de6 - return ipr; - 802076e: 68fb ldr r3, [r7, #12] -} - 8020770: 4618 mov r0, r3 - 8020772: 3710 adds r7, #16 - 8020774: 46bd mov sp, r7 - 8020776: bd80 pop {r7, pc} - 8020778: 2401a5d8 .word 0x2401a5d8 - -0802077c : - * 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) -{ - 802077c: b580 push {r7, lr} - 802077e: b082 sub sp, #8 - 8020780: af00 add r7, sp, #0 - 8020782: 6078 str r0, [r7, #4] - 8020784: 6039 str r1, [r7, #0] - /* dequeue the reass struct */ - if (reassdatagrams == ipr) { - 8020786: 4b10 ldr r3, [pc, #64] ; (80207c8 ) - 8020788: 681b ldr r3, [r3, #0] - 802078a: 687a ldr r2, [r7, #4] - 802078c: 429a cmp r2, r3 - 802078e: d104 bne.n 802079a - /* it was the first in the list */ - reassdatagrams = ipr->next; - 8020790: 687b ldr r3, [r7, #4] - 8020792: 681b ldr r3, [r3, #0] - 8020794: 4a0c ldr r2, [pc, #48] ; (80207c8 ) - 8020796: 6013 str r3, [r2, #0] - 8020798: e00d b.n 80207b6 - } else { - /* it wasn't the first, so it must have a valid 'prev' */ - LWIP_ASSERT("sanity check linked list", prev != NULL); - 802079a: 683b ldr r3, [r7, #0] - 802079c: 2b00 cmp r3, #0 - 802079e: d106 bne.n 80207ae - 80207a0: 4b0a ldr r3, [pc, #40] ; (80207cc ) - 80207a2: f240 1245 movw r2, #325 ; 0x145 - 80207a6: 490a ldr r1, [pc, #40] ; (80207d0 ) - 80207a8: 480a ldr r0, [pc, #40] ; (80207d4 ) - 80207aa: f001 f8ed bl 8021988 - prev->next = ipr->next; - 80207ae: 687b ldr r3, [r7, #4] - 80207b0: 681a ldr r2, [r3, #0] - 80207b2: 683b ldr r3, [r7, #0] - 80207b4: 601a str r2, [r3, #0] - } - - /* now we can free the ip_reassdata struct */ - memp_free(MEMP_REASSDATA, ipr); - 80207b6: 6879 ldr r1, [r7, #4] - 80207b8: 2004 movs r0, #4 - 80207ba: f7f6 f9ff bl 8016bbc -} - 80207be: bf00 nop - 80207c0: 3708 adds r7, #8 - 80207c2: 46bd mov sp, r7 - 80207c4: bd80 pop {r7, pc} - 80207c6: bf00 nop - 80207c8: 2401a5d8 .word 0x2401a5d8 - 80207cc: 08026884 .word 0x08026884 - 80207d0: 0802694c .word 0x0802694c - 80207d4: 080268cc .word 0x080268cc - -080207d8 : - * @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) -{ - 80207d8: b580 push {r7, lr} - 80207da: b08c sub sp, #48 ; 0x30 - 80207dc: af00 add r7, sp, #0 - 80207de: 60f8 str r0, [r7, #12] - 80207e0: 60b9 str r1, [r7, #8] - 80207e2: 607a str r2, [r7, #4] - struct ip_reass_helper *iprh, *iprh_tmp, *iprh_prev = NULL; - 80207e4: 2300 movs r3, #0 - 80207e6: 62bb str r3, [r7, #40] ; 0x28 - struct pbuf *q; - u16_t offset, len; - u8_t hlen; - struct ip_hdr *fraghdr; - int valid = 1; - 80207e8: 2301 movs r3, #1 - 80207ea: 623b str r3, [r7, #32] - - /* Extract length and fragment offset from current fragment */ - fraghdr = (struct ip_hdr *)new_p->payload; - 80207ec: 68bb ldr r3, [r7, #8] - 80207ee: 685b ldr r3, [r3, #4] - 80207f0: 61fb str r3, [r7, #28] - len = lwip_ntohs(IPH_LEN(fraghdr)); - 80207f2: 69fb ldr r3, [r7, #28] - 80207f4: 885b ldrh r3, [r3, #2] - 80207f6: b29b uxth r3, r3 - 80207f8: 4618 mov r0, r3 - 80207fa: f7f5 fba1 bl 8015f40 - 80207fe: 4603 mov r3, r0 - 8020800: 837b strh r3, [r7, #26] - hlen = IPH_HL_BYTES(fraghdr); - 8020802: 69fb ldr r3, [r7, #28] - 8020804: 781b ldrb r3, [r3, #0] - 8020806: f003 030f and.w r3, r3, #15 - 802080a: b2db uxtb r3, r3 - 802080c: 009b lsls r3, r3, #2 - 802080e: 767b strb r3, [r7, #25] - if (hlen > len) { - 8020810: 7e7b ldrb r3, [r7, #25] - 8020812: b29b uxth r3, r3 - 8020814: 8b7a ldrh r2, [r7, #26] - 8020816: 429a cmp r2, r3 - 8020818: d202 bcs.n 8020820 - /* invalid datagram */ - return IP_REASS_VALIDATE_PBUF_DROPPED; - 802081a: f04f 33ff mov.w r3, #4294967295 - 802081e: e135 b.n 8020a8c - } - len = (u16_t)(len - hlen); - 8020820: 7e7b ldrb r3, [r7, #25] - 8020822: b29b uxth r3, r3 - 8020824: 8b7a ldrh r2, [r7, #26] - 8020826: 1ad3 subs r3, r2, r3 - 8020828: 837b strh r3, [r7, #26] - offset = IPH_OFFSET_BYTES(fraghdr); - 802082a: 69fb ldr r3, [r7, #28] - 802082c: 88db ldrh r3, [r3, #6] - 802082e: b29b uxth r3, r3 - 8020830: 4618 mov r0, r3 - 8020832: f7f5 fb85 bl 8015f40 - 8020836: 4603 mov r3, r0 - 8020838: f3c3 030c ubfx r3, r3, #0, #13 - 802083c: b29b uxth r3, r3 - 802083e: 00db lsls r3, r3, #3 - 8020840: 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; - 8020842: 68bb ldr r3, [r7, #8] - 8020844: 685b ldr r3, [r3, #4] - 8020846: 62fb str r3, [r7, #44] ; 0x2c - iprh->next_pbuf = NULL; - 8020848: 6afb ldr r3, [r7, #44] ; 0x2c - 802084a: 2200 movs r2, #0 - 802084c: 701a strb r2, [r3, #0] - 802084e: 2200 movs r2, #0 - 8020850: 705a strb r2, [r3, #1] - 8020852: 2200 movs r2, #0 - 8020854: 709a strb r2, [r3, #2] - 8020856: 2200 movs r2, #0 - 8020858: 70da strb r2, [r3, #3] - iprh->start = offset; - 802085a: 6afb ldr r3, [r7, #44] ; 0x2c - 802085c: 8afa ldrh r2, [r7, #22] - 802085e: 809a strh r2, [r3, #4] - iprh->end = (u16_t)(offset + len); - 8020860: 8afa ldrh r2, [r7, #22] - 8020862: 8b7b ldrh r3, [r7, #26] - 8020864: 4413 add r3, r2 - 8020866: b29a uxth r2, r3 - 8020868: 6afb ldr r3, [r7, #44] ; 0x2c - 802086a: 80da strh r2, [r3, #6] - if (iprh->end < offset) { - 802086c: 6afb ldr r3, [r7, #44] ; 0x2c - 802086e: 88db ldrh r3, [r3, #6] - 8020870: b29b uxth r3, r3 - 8020872: 8afa ldrh r2, [r7, #22] - 8020874: 429a cmp r2, r3 - 8020876: d902 bls.n 802087e - /* u16_t overflow, cannot handle this */ - return IP_REASS_VALIDATE_PBUF_DROPPED; - 8020878: f04f 33ff mov.w r3, #4294967295 - 802087c: e106 b.n 8020a8c - } - - /* 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;) { - 802087e: 68fb ldr r3, [r7, #12] - 8020880: 685b ldr r3, [r3, #4] - 8020882: 627b str r3, [r7, #36] ; 0x24 - 8020884: e068 b.n 8020958 - iprh_tmp = (struct ip_reass_helper *)q->payload; - 8020886: 6a7b ldr r3, [r7, #36] ; 0x24 - 8020888: 685b ldr r3, [r3, #4] - 802088a: 613b str r3, [r7, #16] - if (iprh->start < iprh_tmp->start) { - 802088c: 6afb ldr r3, [r7, #44] ; 0x2c - 802088e: 889b ldrh r3, [r3, #4] - 8020890: b29a uxth r2, r3 - 8020892: 693b ldr r3, [r7, #16] - 8020894: 889b ldrh r3, [r3, #4] - 8020896: b29b uxth r3, r3 - 8020898: 429a cmp r2, r3 - 802089a: d235 bcs.n 8020908 - /* the new pbuf should be inserted before this */ - iprh->next_pbuf = q; - 802089c: 6afb ldr r3, [r7, #44] ; 0x2c - 802089e: 6a7a ldr r2, [r7, #36] ; 0x24 - 80208a0: 601a str r2, [r3, #0] - if (iprh_prev != NULL) { - 80208a2: 6abb ldr r3, [r7, #40] ; 0x28 - 80208a4: 2b00 cmp r3, #0 - 80208a6: d020 beq.n 80208ea - /* not the fragment with the lowest offset */ -#if IP_REASS_CHECK_OVERLAP - if ((iprh->start < iprh_prev->end) || (iprh->end > iprh_tmp->start)) { - 80208a8: 6afb ldr r3, [r7, #44] ; 0x2c - 80208aa: 889b ldrh r3, [r3, #4] - 80208ac: b29a uxth r2, r3 - 80208ae: 6abb ldr r3, [r7, #40] ; 0x28 - 80208b0: 88db ldrh r3, [r3, #6] - 80208b2: b29b uxth r3, r3 - 80208b4: 429a cmp r2, r3 - 80208b6: d307 bcc.n 80208c8 - 80208b8: 6afb ldr r3, [r7, #44] ; 0x2c - 80208ba: 88db ldrh r3, [r3, #6] - 80208bc: b29a uxth r2, r3 - 80208be: 693b ldr r3, [r7, #16] - 80208c0: 889b ldrh r3, [r3, #4] - 80208c2: b29b uxth r3, r3 - 80208c4: 429a cmp r2, r3 - 80208c6: d902 bls.n 80208ce - /* fragment overlaps with previous or following, throw away */ - return IP_REASS_VALIDATE_PBUF_DROPPED; - 80208c8: f04f 33ff mov.w r3, #4294967295 - 80208cc: e0de b.n 8020a8c - } -#endif /* IP_REASS_CHECK_OVERLAP */ - iprh_prev->next_pbuf = new_p; - 80208ce: 6abb ldr r3, [r7, #40] ; 0x28 - 80208d0: 68ba ldr r2, [r7, #8] - 80208d2: 601a str r2, [r3, #0] - if (iprh_prev->end != iprh->start) { - 80208d4: 6abb ldr r3, [r7, #40] ; 0x28 - 80208d6: 88db ldrh r3, [r3, #6] - 80208d8: b29a uxth r2, r3 - 80208da: 6afb ldr r3, [r7, #44] ; 0x2c - 80208dc: 889b ldrh r3, [r3, #4] - 80208de: b29b uxth r3, r3 - 80208e0: 429a cmp r2, r3 - 80208e2: d03d beq.n 8020960 - /* There is a fragment missing between the current - * and the previous fragment */ - valid = 0; - 80208e4: 2300 movs r3, #0 - 80208e6: 623b str r3, [r7, #32] - } -#endif /* IP_REASS_CHECK_OVERLAP */ - /* fragment with the lowest offset */ - ipr->p = new_p; - } - break; - 80208e8: e03a b.n 8020960 - if (iprh->end > iprh_tmp->start) { - 80208ea: 6afb ldr r3, [r7, #44] ; 0x2c - 80208ec: 88db ldrh r3, [r3, #6] - 80208ee: b29a uxth r2, r3 - 80208f0: 693b ldr r3, [r7, #16] - 80208f2: 889b ldrh r3, [r3, #4] - 80208f4: b29b uxth r3, r3 - 80208f6: 429a cmp r2, r3 - 80208f8: d902 bls.n 8020900 - return IP_REASS_VALIDATE_PBUF_DROPPED; - 80208fa: f04f 33ff mov.w r3, #4294967295 - 80208fe: e0c5 b.n 8020a8c - ipr->p = new_p; - 8020900: 68fb ldr r3, [r7, #12] - 8020902: 68ba ldr r2, [r7, #8] - 8020904: 605a str r2, [r3, #4] - break; - 8020906: e02b b.n 8020960 - } else if (iprh->start == iprh_tmp->start) { - 8020908: 6afb ldr r3, [r7, #44] ; 0x2c - 802090a: 889b ldrh r3, [r3, #4] - 802090c: b29a uxth r2, r3 - 802090e: 693b ldr r3, [r7, #16] - 8020910: 889b ldrh r3, [r3, #4] - 8020912: b29b uxth r3, r3 - 8020914: 429a cmp r2, r3 - 8020916: d102 bne.n 802091e - /* received the same datagram twice: no need to keep the datagram */ - return IP_REASS_VALIDATE_PBUF_DROPPED; - 8020918: f04f 33ff mov.w r3, #4294967295 - 802091c: e0b6 b.n 8020a8c -#if IP_REASS_CHECK_OVERLAP - } else if (iprh->start < iprh_tmp->end) { - 802091e: 6afb ldr r3, [r7, #44] ; 0x2c - 8020920: 889b ldrh r3, [r3, #4] - 8020922: b29a uxth r2, r3 - 8020924: 693b ldr r3, [r7, #16] - 8020926: 88db ldrh r3, [r3, #6] - 8020928: b29b uxth r3, r3 - 802092a: 429a cmp r2, r3 - 802092c: d202 bcs.n 8020934 - /* overlap: no need to keep the new datagram */ - return IP_REASS_VALIDATE_PBUF_DROPPED; - 802092e: f04f 33ff mov.w r3, #4294967295 - 8020932: e0ab b.n 8020a8c -#endif /* IP_REASS_CHECK_OVERLAP */ - } else { - /* Check if the fragments received so far have no holes. */ - if (iprh_prev != NULL) { - 8020934: 6abb ldr r3, [r7, #40] ; 0x28 - 8020936: 2b00 cmp r3, #0 - 8020938: d009 beq.n 802094e - if (iprh_prev->end != iprh_tmp->start) { - 802093a: 6abb ldr r3, [r7, #40] ; 0x28 - 802093c: 88db ldrh r3, [r3, #6] - 802093e: b29a uxth r2, r3 - 8020940: 693b ldr r3, [r7, #16] - 8020942: 889b ldrh r3, [r3, #4] - 8020944: b29b uxth r3, r3 - 8020946: 429a cmp r2, r3 - 8020948: d001 beq.n 802094e - /* There is a fragment missing between the current - * and the previous fragment */ - valid = 0; - 802094a: 2300 movs r3, #0 - 802094c: 623b str r3, [r7, #32] - } - } - } - q = iprh_tmp->next_pbuf; - 802094e: 693b ldr r3, [r7, #16] - 8020950: 681b ldr r3, [r3, #0] - 8020952: 627b str r3, [r7, #36] ; 0x24 - iprh_prev = iprh_tmp; - 8020954: 693b ldr r3, [r7, #16] - 8020956: 62bb str r3, [r7, #40] ; 0x28 - for (q = ipr->p; q != NULL;) { - 8020958: 6a7b ldr r3, [r7, #36] ; 0x24 - 802095a: 2b00 cmp r3, #0 - 802095c: d193 bne.n 8020886 - 802095e: e000 b.n 8020962 - break; - 8020960: bf00 nop - } - - /* If q is NULL, then we made it to the end of the list. Determine what to do now */ - if (q == NULL) { - 8020962: 6a7b ldr r3, [r7, #36] ; 0x24 - 8020964: 2b00 cmp r3, #0 - 8020966: d12d bne.n 80209c4 - if (iprh_prev != NULL) { - 8020968: 6abb ldr r3, [r7, #40] ; 0x28 - 802096a: 2b00 cmp r3, #0 - 802096c: d01c beq.n 80209a8 - /* 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); - 802096e: 6abb ldr r3, [r7, #40] ; 0x28 - 8020970: 88db ldrh r3, [r3, #6] - 8020972: b29a uxth r2, r3 - 8020974: 6afb ldr r3, [r7, #44] ; 0x2c - 8020976: 889b ldrh r3, [r3, #4] - 8020978: b29b uxth r3, r3 - 802097a: 429a cmp r2, r3 - 802097c: d906 bls.n 802098c - 802097e: 4b45 ldr r3, [pc, #276] ; (8020a94 ) - 8020980: f44f 72db mov.w r2, #438 ; 0x1b6 - 8020984: 4944 ldr r1, [pc, #272] ; (8020a98 ) - 8020986: 4845 ldr r0, [pc, #276] ; (8020a9c ) - 8020988: f000 fffe bl 8021988 -#endif /* IP_REASS_CHECK_OVERLAP */ - iprh_prev->next_pbuf = new_p; - 802098c: 6abb ldr r3, [r7, #40] ; 0x28 - 802098e: 68ba ldr r2, [r7, #8] - 8020990: 601a str r2, [r3, #0] - if (iprh_prev->end != iprh->start) { - 8020992: 6abb ldr r3, [r7, #40] ; 0x28 - 8020994: 88db ldrh r3, [r3, #6] - 8020996: b29a uxth r2, r3 - 8020998: 6afb ldr r3, [r7, #44] ; 0x2c - 802099a: 889b ldrh r3, [r3, #4] - 802099c: b29b uxth r3, r3 - 802099e: 429a cmp r2, r3 - 80209a0: d010 beq.n 80209c4 - valid = 0; - 80209a2: 2300 movs r3, #0 - 80209a4: 623b str r3, [r7, #32] - 80209a6: e00d b.n 80209c4 - } - } else { -#if IP_REASS_CHECK_OVERLAP - LWIP_ASSERT("no previous fragment, this must be the first fragment!", - 80209a8: 68fb ldr r3, [r7, #12] - 80209aa: 685b ldr r3, [r3, #4] - 80209ac: 2b00 cmp r3, #0 - 80209ae: d006 beq.n 80209be - 80209b0: 4b38 ldr r3, [pc, #224] ; (8020a94 ) - 80209b2: f44f 72df mov.w r2, #446 ; 0x1be - 80209b6: 493a ldr r1, [pc, #232] ; (8020aa0 ) - 80209b8: 4838 ldr r0, [pc, #224] ; (8020a9c ) - 80209ba: f000 ffe5 bl 8021988 - ipr->p == NULL); -#endif /* IP_REASS_CHECK_OVERLAP */ - /* this is the first fragment we ever received for this ip datagram */ - ipr->p = new_p; - 80209be: 68fb ldr r3, [r7, #12] - 80209c0: 68ba ldr r2, [r7, #8] - 80209c2: 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)) { - 80209c4: 687b ldr r3, [r7, #4] - 80209c6: 2b00 cmp r3, #0 - 80209c8: d105 bne.n 80209d6 - 80209ca: 68fb ldr r3, [r7, #12] - 80209cc: 7f9b ldrb r3, [r3, #30] - 80209ce: f003 0301 and.w r3, r3, #1 - 80209d2: 2b00 cmp r3, #0 - 80209d4: d059 beq.n 8020a8a - /* and had no holes so far */ - if (valid) { - 80209d6: 6a3b ldr r3, [r7, #32] - 80209d8: 2b00 cmp r3, #0 - 80209da: d04f beq.n 8020a7c - /* 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)) { - 80209dc: 68fb ldr r3, [r7, #12] - 80209de: 685b ldr r3, [r3, #4] - 80209e0: 2b00 cmp r3, #0 - 80209e2: d006 beq.n 80209f2 - 80209e4: 68fb ldr r3, [r7, #12] - 80209e6: 685b ldr r3, [r3, #4] - 80209e8: 685b ldr r3, [r3, #4] - 80209ea: 889b ldrh r3, [r3, #4] - 80209ec: b29b uxth r3, r3 - 80209ee: 2b00 cmp r3, #0 - 80209f0: d002 beq.n 80209f8 - valid = 0; - 80209f2: 2300 movs r3, #0 - 80209f4: 623b str r3, [r7, #32] - 80209f6: e041 b.n 8020a7c - } else { - /* and check that there are no holes after this datagram */ - iprh_prev = iprh; - 80209f8: 6afb ldr r3, [r7, #44] ; 0x2c - 80209fa: 62bb str r3, [r7, #40] ; 0x28 - q = iprh->next_pbuf; - 80209fc: 6afb ldr r3, [r7, #44] ; 0x2c - 80209fe: 681b ldr r3, [r3, #0] - 8020a00: 627b str r3, [r7, #36] ; 0x24 - while (q != NULL) { - 8020a02: e012 b.n 8020a2a - iprh = (struct ip_reass_helper *)q->payload; - 8020a04: 6a7b ldr r3, [r7, #36] ; 0x24 - 8020a06: 685b ldr r3, [r3, #4] - 8020a08: 62fb str r3, [r7, #44] ; 0x2c - if (iprh_prev->end != iprh->start) { - 8020a0a: 6abb ldr r3, [r7, #40] ; 0x28 - 8020a0c: 88db ldrh r3, [r3, #6] - 8020a0e: b29a uxth r2, r3 - 8020a10: 6afb ldr r3, [r7, #44] ; 0x2c - 8020a12: 889b ldrh r3, [r3, #4] - 8020a14: b29b uxth r3, r3 - 8020a16: 429a cmp r2, r3 - 8020a18: d002 beq.n 8020a20 - valid = 0; - 8020a1a: 2300 movs r3, #0 - 8020a1c: 623b str r3, [r7, #32] - break; - 8020a1e: e007 b.n 8020a30 - } - iprh_prev = iprh; - 8020a20: 6afb ldr r3, [r7, #44] ; 0x2c - 8020a22: 62bb str r3, [r7, #40] ; 0x28 - q = iprh->next_pbuf; - 8020a24: 6afb ldr r3, [r7, #44] ; 0x2c - 8020a26: 681b ldr r3, [r3, #0] - 8020a28: 627b str r3, [r7, #36] ; 0x24 - while (q != NULL) { - 8020a2a: 6a7b ldr r3, [r7, #36] ; 0x24 - 8020a2c: 2b00 cmp r3, #0 - 8020a2e: d1e9 bne.n 8020a04 - } - /* if still valid, all fragments are received - * (because to the MF==0 already arrived */ - if (valid) { - 8020a30: 6a3b ldr r3, [r7, #32] - 8020a32: 2b00 cmp r3, #0 - 8020a34: d022 beq.n 8020a7c - LWIP_ASSERT("sanity check", ipr->p != NULL); - 8020a36: 68fb ldr r3, [r7, #12] - 8020a38: 685b ldr r3, [r3, #4] - 8020a3a: 2b00 cmp r3, #0 - 8020a3c: d106 bne.n 8020a4c - 8020a3e: 4b15 ldr r3, [pc, #84] ; (8020a94 ) - 8020a40: f240 12df movw r2, #479 ; 0x1df - 8020a44: 4917 ldr r1, [pc, #92] ; (8020aa4 ) - 8020a46: 4815 ldr r0, [pc, #84] ; (8020a9c ) - 8020a48: f000 ff9e bl 8021988 - LWIP_ASSERT("sanity check", - 8020a4c: 68fb ldr r3, [r7, #12] - 8020a4e: 685b ldr r3, [r3, #4] - 8020a50: 685b ldr r3, [r3, #4] - 8020a52: 6afa ldr r2, [r7, #44] ; 0x2c - 8020a54: 429a cmp r2, r3 - 8020a56: d106 bne.n 8020a66 - 8020a58: 4b0e ldr r3, [pc, #56] ; (8020a94 ) - 8020a5a: f44f 72f0 mov.w r2, #480 ; 0x1e0 - 8020a5e: 4911 ldr r1, [pc, #68] ; (8020aa4 ) - 8020a60: 480e ldr r0, [pc, #56] ; (8020a9c ) - 8020a62: f000 ff91 bl 8021988 - ((struct ip_reass_helper *)ipr->p->payload) != iprh); - LWIP_ASSERT("validate_datagram:next_pbuf!=NULL", - 8020a66: 6afb ldr r3, [r7, #44] ; 0x2c - 8020a68: 681b ldr r3, [r3, #0] - 8020a6a: 2b00 cmp r3, #0 - 8020a6c: d006 beq.n 8020a7c - 8020a6e: 4b09 ldr r3, [pc, #36] ; (8020a94 ) - 8020a70: f44f 72f1 mov.w r2, #482 ; 0x1e2 - 8020a74: 490c ldr r1, [pc, #48] ; (8020aa8 ) - 8020a76: 4809 ldr r0, [pc, #36] ; (8020a9c ) - 8020a78: f000 ff86 bl 8021988 - } - } - /* 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; - 8020a7c: 6a3b ldr r3, [r7, #32] - 8020a7e: 2b00 cmp r3, #0 - 8020a80: bf14 ite ne - 8020a82: 2301 movne r3, #1 - 8020a84: 2300 moveq r3, #0 - 8020a86: b2db uxtb r3, r3 - 8020a88: e000 b.n 8020a8c - } - /* If we come here, not all fragments were received, yet! */ - return IP_REASS_VALIDATE_PBUF_QUEUED; /* not yet valid! */ - 8020a8a: 2300 movs r3, #0 -} - 8020a8c: 4618 mov r0, r3 - 8020a8e: 3730 adds r7, #48 ; 0x30 - 8020a90: 46bd mov sp, r7 - 8020a92: bd80 pop {r7, pc} - 8020a94: 08026884 .word 0x08026884 - 8020a98: 08026968 .word 0x08026968 - 8020a9c: 080268cc .word 0x080268cc - 8020aa0: 08026988 .word 0x08026988 - 8020aa4: 080269c0 .word 0x080269c0 - 8020aa8: 080269d0 .word 0x080269d0 - -08020aac : - * @param p points to a pbuf chain of the fragment - * @return NULL if reassembly is incomplete, ? otherwise - */ -struct pbuf * -ip4_reass(struct pbuf *p) -{ - 8020aac: b580 push {r7, lr} - 8020aae: b08e sub sp, #56 ; 0x38 - 8020ab0: af00 add r7, sp, #0 - 8020ab2: 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; - 8020ab4: 687b ldr r3, [r7, #4] - 8020ab6: 685b ldr r3, [r3, #4] - 8020ab8: 62bb str r3, [r7, #40] ; 0x28 - - if (IPH_HL_BYTES(fraghdr) != IP_HLEN) { - 8020aba: 6abb ldr r3, [r7, #40] ; 0x28 - 8020abc: 781b ldrb r3, [r3, #0] - 8020abe: f003 030f and.w r3, r3, #15 - 8020ac2: b2db uxtb r3, r3 - 8020ac4: 009b lsls r3, r3, #2 - 8020ac6: b2db uxtb r3, r3 - 8020ac8: 2b14 cmp r3, #20 - 8020aca: f040 8171 bne.w 8020db0 - 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); - 8020ace: 6abb ldr r3, [r7, #40] ; 0x28 - 8020ad0: 88db ldrh r3, [r3, #6] - 8020ad2: b29b uxth r3, r3 - 8020ad4: 4618 mov r0, r3 - 8020ad6: f7f5 fa33 bl 8015f40 - 8020ada: 4603 mov r3, r0 - 8020adc: f3c3 030c ubfx r3, r3, #0, #13 - 8020ae0: b29b uxth r3, r3 - 8020ae2: 00db lsls r3, r3, #3 - 8020ae4: 84fb strh r3, [r7, #38] ; 0x26 - len = lwip_ntohs(IPH_LEN(fraghdr)); - 8020ae6: 6abb ldr r3, [r7, #40] ; 0x28 - 8020ae8: 885b ldrh r3, [r3, #2] - 8020aea: b29b uxth r3, r3 - 8020aec: 4618 mov r0, r3 - 8020aee: f7f5 fa27 bl 8015f40 - 8020af2: 4603 mov r3, r0 - 8020af4: 84bb strh r3, [r7, #36] ; 0x24 - hlen = IPH_HL_BYTES(fraghdr); - 8020af6: 6abb ldr r3, [r7, #40] ; 0x28 - 8020af8: 781b ldrb r3, [r3, #0] - 8020afa: f003 030f and.w r3, r3, #15 - 8020afe: b2db uxtb r3, r3 - 8020b00: 009b lsls r3, r3, #2 - 8020b02: f887 3023 strb.w r3, [r7, #35] ; 0x23 - if (hlen > len) { - 8020b06: f897 3023 ldrb.w r3, [r7, #35] ; 0x23 - 8020b0a: b29b uxth r3, r3 - 8020b0c: 8cba ldrh r2, [r7, #36] ; 0x24 - 8020b0e: 429a cmp r2, r3 - 8020b10: f0c0 8150 bcc.w 8020db4 - /* invalid datagram */ - goto nullreturn; - } - len = (u16_t)(len - hlen); - 8020b14: f897 3023 ldrb.w r3, [r7, #35] ; 0x23 - 8020b18: b29b uxth r3, r3 - 8020b1a: 8cba ldrh r2, [r7, #36] ; 0x24 - 8020b1c: 1ad3 subs r3, r2, r3 - 8020b1e: 84bb strh r3, [r7, #36] ; 0x24 - - /* Check if we are allowed to enqueue more datagrams. */ - clen = pbuf_clen(p); - 8020b20: 6878 ldr r0, [r7, #4] - 8020b22: f7f7 f877 bl 8017c14 - 8020b26: 4603 mov r3, r0 - 8020b28: 843b strh r3, [r7, #32] - if ((ip_reass_pbufcount + clen) > IP_REASS_MAX_PBUFS) { - 8020b2a: 4b8c ldr r3, [pc, #560] ; (8020d5c ) - 8020b2c: 881b ldrh r3, [r3, #0] - 8020b2e: 461a mov r2, r3 - 8020b30: 8c3b ldrh r3, [r7, #32] - 8020b32: 4413 add r3, r2 - 8020b34: 2b0a cmp r3, #10 - 8020b36: dd10 ble.n 8020b5a -#if IP_REASS_FREE_OLDEST - if (!ip_reass_remove_oldest_datagram(fraghdr, clen) || - 8020b38: 8c3b ldrh r3, [r7, #32] - 8020b3a: 4619 mov r1, r3 - 8020b3c: 6ab8 ldr r0, [r7, #40] ; 0x28 - 8020b3e: f7ff fd81 bl 8020644 - 8020b42: 4603 mov r3, r0 - 8020b44: 2b00 cmp r3, #0 - 8020b46: f000 8137 beq.w 8020db8 - ((ip_reass_pbufcount + clen) > IP_REASS_MAX_PBUFS)) - 8020b4a: 4b84 ldr r3, [pc, #528] ; (8020d5c ) - 8020b4c: 881b ldrh r3, [r3, #0] - 8020b4e: 461a mov r2, r3 - 8020b50: 8c3b ldrh r3, [r7, #32] - 8020b52: 4413 add r3, r2 - if (!ip_reass_remove_oldest_datagram(fraghdr, clen) || - 8020b54: 2b0a cmp r3, #10 - 8020b56: f300 812f bgt.w 8020db8 - } - } - - /* 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) { - 8020b5a: 4b81 ldr r3, [pc, #516] ; (8020d60 ) - 8020b5c: 681b ldr r3, [r3, #0] - 8020b5e: 633b str r3, [r7, #48] ; 0x30 - 8020b60: e015 b.n 8020b8e - /* 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)) { - 8020b62: 6b3b ldr r3, [r7, #48] ; 0x30 - 8020b64: 695a ldr r2, [r3, #20] - 8020b66: 6abb ldr r3, [r7, #40] ; 0x28 - 8020b68: 68db ldr r3, [r3, #12] - 8020b6a: 429a cmp r2, r3 - 8020b6c: d10c bne.n 8020b88 - 8020b6e: 6b3b ldr r3, [r7, #48] ; 0x30 - 8020b70: 699a ldr r2, [r3, #24] - 8020b72: 6abb ldr r3, [r7, #40] ; 0x28 - 8020b74: 691b ldr r3, [r3, #16] - 8020b76: 429a cmp r2, r3 - 8020b78: d106 bne.n 8020b88 - 8020b7a: 6b3b ldr r3, [r7, #48] ; 0x30 - 8020b7c: 899a ldrh r2, [r3, #12] - 8020b7e: 6abb ldr r3, [r7, #40] ; 0x28 - 8020b80: 889b ldrh r3, [r3, #4] - 8020b82: b29b uxth r3, r3 - 8020b84: 429a cmp r2, r3 - 8020b86: d006 beq.n 8020b96 - for (ipr = reassdatagrams; ipr != NULL; ipr = ipr->next) { - 8020b88: 6b3b ldr r3, [r7, #48] ; 0x30 - 8020b8a: 681b ldr r3, [r3, #0] - 8020b8c: 633b str r3, [r7, #48] ; 0x30 - 8020b8e: 6b3b ldr r3, [r7, #48] ; 0x30 - 8020b90: 2b00 cmp r3, #0 - 8020b92: d1e6 bne.n 8020b62 - 8020b94: e000 b.n 8020b98 - 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; - 8020b96: bf00 nop - } - } - - if (ipr == NULL) { - 8020b98: 6b3b ldr r3, [r7, #48] ; 0x30 - 8020b9a: 2b00 cmp r3, #0 - 8020b9c: d109 bne.n 8020bb2 - /* Enqueue a new datagram into the datagram queue */ - ipr = ip_reass_enqueue_new_datagram(fraghdr, clen); - 8020b9e: 8c3b ldrh r3, [r7, #32] - 8020ba0: 4619 mov r1, r3 - 8020ba2: 6ab8 ldr r0, [r7, #40] ; 0x28 - 8020ba4: f7ff fdb0 bl 8020708 - 8020ba8: 6338 str r0, [r7, #48] ; 0x30 - /* Bail if unable to enqueue */ - if (ipr == NULL) { - 8020baa: 6b3b ldr r3, [r7, #48] ; 0x30 - 8020bac: 2b00 cmp r3, #0 - 8020bae: d11c bne.n 8020bea - goto nullreturn; - 8020bb0: e105 b.n 8020dbe - } - } else { - if (((lwip_ntohs(IPH_OFFSET(fraghdr)) & IP_OFFMASK) == 0) && - 8020bb2: 6abb ldr r3, [r7, #40] ; 0x28 - 8020bb4: 88db ldrh r3, [r3, #6] - 8020bb6: b29b uxth r3, r3 - 8020bb8: 4618 mov r0, r3 - 8020bba: f7f5 f9c1 bl 8015f40 - 8020bbe: 4603 mov r3, r0 - 8020bc0: f3c3 030c ubfx r3, r3, #0, #13 - 8020bc4: 2b00 cmp r3, #0 - 8020bc6: d110 bne.n 8020bea - ((lwip_ntohs(IPH_OFFSET(&ipr->iphdr)) & IP_OFFMASK) != 0)) { - 8020bc8: 6b3b ldr r3, [r7, #48] ; 0x30 - 8020bca: 89db ldrh r3, [r3, #14] - 8020bcc: 4618 mov r0, r3 - 8020bce: f7f5 f9b7 bl 8015f40 - 8020bd2: 4603 mov r3, r0 - 8020bd4: f3c3 030c ubfx r3, r3, #0, #13 - if (((lwip_ntohs(IPH_OFFSET(fraghdr)) & IP_OFFMASK) == 0) && - 8020bd8: 2b00 cmp r3, #0 - 8020bda: d006 beq.n 8020bea - /* 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); - 8020bdc: 6b3b ldr r3, [r7, #48] ; 0x30 - 8020bde: 3308 adds r3, #8 - 8020be0: 2214 movs r2, #20 - 8020be2: 6ab9 ldr r1, [r7, #40] ; 0x28 - 8020be4: 4618 mov r0, r3 - 8020be6: f001 f8fe bl 8021de6 - - /* 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; - 8020bea: 6abb ldr r3, [r7, #40] ; 0x28 - 8020bec: 88db ldrh r3, [r3, #6] - 8020bee: b29b uxth r3, r3 - 8020bf0: f003 0320 and.w r3, r3, #32 - 8020bf4: 2b00 cmp r3, #0 - 8020bf6: bf0c ite eq - 8020bf8: 2301 moveq r3, #1 - 8020bfa: 2300 movne r3, #0 - 8020bfc: b2db uxtb r3, r3 - 8020bfe: 61fb str r3, [r7, #28] - if (is_last) { - 8020c00: 69fb ldr r3, [r7, #28] - 8020c02: 2b00 cmp r3, #0 - 8020c04: d00e beq.n 8020c24 - u16_t datagram_len = (u16_t)(offset + len); - 8020c06: 8cfa ldrh r2, [r7, #38] ; 0x26 - 8020c08: 8cbb ldrh r3, [r7, #36] ; 0x24 - 8020c0a: 4413 add r3, r2 - 8020c0c: 837b strh r3, [r7, #26] - if ((datagram_len < offset) || (datagram_len > (0xFFFF - IP_HLEN))) { - 8020c0e: 8b7a ldrh r2, [r7, #26] - 8020c10: 8cfb ldrh r3, [r7, #38] ; 0x26 - 8020c12: 429a cmp r2, r3 - 8020c14: f0c0 80a0 bcc.w 8020d58 - 8020c18: 8b7b ldrh r3, [r7, #26] - 8020c1a: f64f 72eb movw r2, #65515 ; 0xffeb - 8020c1e: 4293 cmp r3, r2 - 8020c20: f200 809a bhi.w 8020d58 - 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); - 8020c24: 69fa ldr r2, [r7, #28] - 8020c26: 6879 ldr r1, [r7, #4] - 8020c28: 6b38 ldr r0, [r7, #48] ; 0x30 - 8020c2a: f7ff fdd5 bl 80207d8 - 8020c2e: 6178 str r0, [r7, #20] - if (valid == IP_REASS_VALIDATE_PBUF_DROPPED) { - 8020c30: 697b ldr r3, [r7, #20] - 8020c32: f1b3 3fff cmp.w r3, #4294967295 - 8020c36: f000 809b beq.w 8020d70 - /* 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); - 8020c3a: 4b48 ldr r3, [pc, #288] ; (8020d5c ) - 8020c3c: 881a ldrh r2, [r3, #0] - 8020c3e: 8c3b ldrh r3, [r7, #32] - 8020c40: 4413 add r3, r2 - 8020c42: b29a uxth r2, r3 - 8020c44: 4b45 ldr r3, [pc, #276] ; (8020d5c ) - 8020c46: 801a strh r2, [r3, #0] - if (is_last) { - 8020c48: 69fb ldr r3, [r7, #28] - 8020c4a: 2b00 cmp r3, #0 - 8020c4c: d00d beq.n 8020c6a - u16_t datagram_len = (u16_t)(offset + len); - 8020c4e: 8cfa ldrh r2, [r7, #38] ; 0x26 - 8020c50: 8cbb ldrh r3, [r7, #36] ; 0x24 - 8020c52: 4413 add r3, r2 - 8020c54: 827b strh r3, [r7, #18] - ipr->datagram_len = datagram_len; - 8020c56: 6b3b ldr r3, [r7, #48] ; 0x30 - 8020c58: 8a7a ldrh r2, [r7, #18] - 8020c5a: 839a strh r2, [r3, #28] - ipr->flags |= IP_REASS_FLAG_LASTFRAG; - 8020c5c: 6b3b ldr r3, [r7, #48] ; 0x30 - 8020c5e: 7f9b ldrb r3, [r3, #30] - 8020c60: f043 0301 orr.w r3, r3, #1 - 8020c64: b2da uxtb r2, r3 - 8020c66: 6b3b ldr r3, [r7, #48] ; 0x30 - 8020c68: 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) { - 8020c6a: 697b ldr r3, [r7, #20] - 8020c6c: 2b01 cmp r3, #1 - 8020c6e: d171 bne.n 8020d54 - 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); - 8020c70: 6b3b ldr r3, [r7, #48] ; 0x30 - 8020c72: 8b9b ldrh r3, [r3, #28] - 8020c74: 3314 adds r3, #20 - 8020c76: 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; - 8020c78: 6b3b ldr r3, [r7, #48] ; 0x30 - 8020c7a: 685b ldr r3, [r3, #4] - 8020c7c: 685b ldr r3, [r3, #4] - 8020c7e: 681b ldr r3, [r3, #0] - 8020c80: 62fb str r3, [r7, #44] ; 0x2c - - /* copy the original ip header back to the first pbuf */ - fraghdr = (struct ip_hdr *)(ipr->p->payload); - 8020c82: 6b3b ldr r3, [r7, #48] ; 0x30 - 8020c84: 685b ldr r3, [r3, #4] - 8020c86: 685b ldr r3, [r3, #4] - 8020c88: 62bb str r3, [r7, #40] ; 0x28 - SMEMCPY(fraghdr, &ipr->iphdr, IP_HLEN); - 8020c8a: 6b3b ldr r3, [r7, #48] ; 0x30 - 8020c8c: 3308 adds r3, #8 - 8020c8e: 2214 movs r2, #20 - 8020c90: 4619 mov r1, r3 - 8020c92: 6ab8 ldr r0, [r7, #40] ; 0x28 - 8020c94: f001 f8a7 bl 8021de6 - IPH_LEN_SET(fraghdr, lwip_htons(datagram_len)); - 8020c98: 8a3b ldrh r3, [r7, #16] - 8020c9a: 4618 mov r0, r3 - 8020c9c: f7f5 f950 bl 8015f40 - 8020ca0: 4603 mov r3, r0 - 8020ca2: 461a mov r2, r3 - 8020ca4: 6abb ldr r3, [r7, #40] ; 0x28 - 8020ca6: 805a strh r2, [r3, #2] - IPH_OFFSET_SET(fraghdr, 0); - 8020ca8: 6abb ldr r3, [r7, #40] ; 0x28 - 8020caa: 2200 movs r2, #0 - 8020cac: 719a strb r2, [r3, #6] - 8020cae: 2200 movs r2, #0 - 8020cb0: 71da strb r2, [r3, #7] - IPH_CHKSUM_SET(fraghdr, 0); - 8020cb2: 6abb ldr r3, [r7, #40] ; 0x28 - 8020cb4: 2200 movs r2, #0 - 8020cb6: 729a strb r2, [r3, #10] - 8020cb8: 2200 movs r2, #0 - 8020cba: 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; - 8020cbc: 6b3b ldr r3, [r7, #48] ; 0x30 - 8020cbe: 685b ldr r3, [r3, #4] - 8020cc0: 607b str r3, [r7, #4] - - /* chain together the pbufs contained within the reass_data list. */ - while (r != NULL) { - 8020cc2: e00d b.n 8020ce0 - iprh = (struct ip_reass_helper *)r->payload; - 8020cc4: 6afb ldr r3, [r7, #44] ; 0x2c - 8020cc6: 685b ldr r3, [r3, #4] - 8020cc8: 60fb str r3, [r7, #12] - - /* hide the ip header for every succeeding fragment */ - pbuf_remove_header(r, IP_HLEN); - 8020cca: 2114 movs r1, #20 - 8020ccc: 6af8 ldr r0, [r7, #44] ; 0x2c - 8020cce: f7f6 fe8d bl 80179ec - pbuf_cat(p, r); - 8020cd2: 6af9 ldr r1, [r7, #44] ; 0x2c - 8020cd4: 6878 ldr r0, [r7, #4] - 8020cd6: f7f6 ffdd bl 8017c94 - r = iprh->next_pbuf; - 8020cda: 68fb ldr r3, [r7, #12] - 8020cdc: 681b ldr r3, [r3, #0] - 8020cde: 62fb str r3, [r7, #44] ; 0x2c - while (r != NULL) { - 8020ce0: 6afb ldr r3, [r7, #44] ; 0x2c - 8020ce2: 2b00 cmp r3, #0 - 8020ce4: d1ee bne.n 8020cc4 - } - - /* find the previous entry in the linked list */ - if (ipr == reassdatagrams) { - 8020ce6: 4b1e ldr r3, [pc, #120] ; (8020d60 ) - 8020ce8: 681b ldr r3, [r3, #0] - 8020cea: 6b3a ldr r2, [r7, #48] ; 0x30 - 8020cec: 429a cmp r2, r3 - 8020cee: d102 bne.n 8020cf6 - ipr_prev = NULL; - 8020cf0: 2300 movs r3, #0 - 8020cf2: 637b str r3, [r7, #52] ; 0x34 - 8020cf4: e010 b.n 8020d18 - } else { - for (ipr_prev = reassdatagrams; ipr_prev != NULL; ipr_prev = ipr_prev->next) { - 8020cf6: 4b1a ldr r3, [pc, #104] ; (8020d60 ) - 8020cf8: 681b ldr r3, [r3, #0] - 8020cfa: 637b str r3, [r7, #52] ; 0x34 - 8020cfc: e007 b.n 8020d0e - if (ipr_prev->next == ipr) { - 8020cfe: 6b7b ldr r3, [r7, #52] ; 0x34 - 8020d00: 681b ldr r3, [r3, #0] - 8020d02: 6b3a ldr r2, [r7, #48] ; 0x30 - 8020d04: 429a cmp r2, r3 - 8020d06: d006 beq.n 8020d16 - for (ipr_prev = reassdatagrams; ipr_prev != NULL; ipr_prev = ipr_prev->next) { - 8020d08: 6b7b ldr r3, [r7, #52] ; 0x34 - 8020d0a: 681b ldr r3, [r3, #0] - 8020d0c: 637b str r3, [r7, #52] ; 0x34 - 8020d0e: 6b7b ldr r3, [r7, #52] ; 0x34 - 8020d10: 2b00 cmp r3, #0 - 8020d12: d1f4 bne.n 8020cfe - 8020d14: e000 b.n 8020d18 - break; - 8020d16: bf00 nop - } - } - } - - /* release the sources allocate for the fragment queue entry */ - ip_reass_dequeue_datagram(ipr, ipr_prev); - 8020d18: 6b79 ldr r1, [r7, #52] ; 0x34 - 8020d1a: 6b38 ldr r0, [r7, #48] ; 0x30 - 8020d1c: f7ff fd2e bl 802077c - - /* and adjust the number of pbufs currently queued for reassembly. */ - clen = pbuf_clen(p); - 8020d20: 6878 ldr r0, [r7, #4] - 8020d22: f7f6 ff77 bl 8017c14 - 8020d26: 4603 mov r3, r0 - 8020d28: 843b strh r3, [r7, #32] - LWIP_ASSERT("ip_reass_pbufcount >= clen", ip_reass_pbufcount >= clen); - 8020d2a: 4b0c ldr r3, [pc, #48] ; (8020d5c ) - 8020d2c: 881b ldrh r3, [r3, #0] - 8020d2e: 8c3a ldrh r2, [r7, #32] - 8020d30: 429a cmp r2, r3 - 8020d32: d906 bls.n 8020d42 - 8020d34: 4b0b ldr r3, [pc, #44] ; (8020d64 ) - 8020d36: f240 229b movw r2, #667 ; 0x29b - 8020d3a: 490b ldr r1, [pc, #44] ; (8020d68 ) - 8020d3c: 480b ldr r0, [pc, #44] ; (8020d6c ) - 8020d3e: f000 fe23 bl 8021988 - ip_reass_pbufcount = (u16_t)(ip_reass_pbufcount - clen); - 8020d42: 4b06 ldr r3, [pc, #24] ; (8020d5c ) - 8020d44: 881a ldrh r2, [r3, #0] - 8020d46: 8c3b ldrh r3, [r7, #32] - 8020d48: 1ad3 subs r3, r2, r3 - 8020d4a: b29a uxth r2, r3 - 8020d4c: 4b03 ldr r3, [pc, #12] ; (8020d5c ) - 8020d4e: 801a strh r2, [r3, #0] - - MIB2_STATS_INC(mib2.ipreasmoks); - - /* Return the pbuf chain */ - return p; - 8020d50: 687b ldr r3, [r7, #4] - 8020d52: e038 b.n 8020dc6 - } - /* the datagram is not (yet?) reassembled completely */ - LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_pbufcount: %d out\n", ip_reass_pbufcount)); - return NULL; - 8020d54: 2300 movs r3, #0 - 8020d56: e036 b.n 8020dc6 - goto nullreturn_ipr; - 8020d58: bf00 nop - 8020d5a: e00a b.n 8020d72 - 8020d5c: 2401a5dc .word 0x2401a5dc - 8020d60: 2401a5d8 .word 0x2401a5d8 - 8020d64: 08026884 .word 0x08026884 - 8020d68: 080269f4 .word 0x080269f4 - 8020d6c: 080268cc .word 0x080268cc - goto nullreturn_ipr; - 8020d70: bf00 nop - -nullreturn_ipr: - LWIP_ASSERT("ipr != NULL", ipr != NULL); - 8020d72: 6b3b ldr r3, [r7, #48] ; 0x30 - 8020d74: 2b00 cmp r3, #0 - 8020d76: d106 bne.n 8020d86 - 8020d78: 4b15 ldr r3, [pc, #84] ; (8020dd0 ) - 8020d7a: f44f 722a mov.w r2, #680 ; 0x2a8 - 8020d7e: 4915 ldr r1, [pc, #84] ; (8020dd4 ) - 8020d80: 4815 ldr r0, [pc, #84] ; (8020dd8 ) - 8020d82: f000 fe01 bl 8021988 - if (ipr->p == NULL) { - 8020d86: 6b3b ldr r3, [r7, #48] ; 0x30 - 8020d88: 685b ldr r3, [r3, #4] - 8020d8a: 2b00 cmp r3, #0 - 8020d8c: d116 bne.n 8020dbc - /* dropped pbuf after creating a new datagram entry: remove the entry, too */ - LWIP_ASSERT("not firstalthough just enqueued", ipr == reassdatagrams); - 8020d8e: 4b13 ldr r3, [pc, #76] ; (8020ddc ) - 8020d90: 681b ldr r3, [r3, #0] - 8020d92: 6b3a ldr r2, [r7, #48] ; 0x30 - 8020d94: 429a cmp r2, r3 - 8020d96: d006 beq.n 8020da6 - 8020d98: 4b0d ldr r3, [pc, #52] ; (8020dd0 ) - 8020d9a: f240 22ab movw r2, #683 ; 0x2ab - 8020d9e: 4910 ldr r1, [pc, #64] ; (8020de0 ) - 8020da0: 480d ldr r0, [pc, #52] ; (8020dd8 ) - 8020da2: f000 fdf1 bl 8021988 - ip_reass_dequeue_datagram(ipr, NULL); - 8020da6: 2100 movs r1, #0 - 8020da8: 6b38 ldr r0, [r7, #48] ; 0x30 - 8020daa: f7ff fce7 bl 802077c - 8020dae: e006 b.n 8020dbe - goto nullreturn; - 8020db0: bf00 nop - 8020db2: e004 b.n 8020dbe - goto nullreturn; - 8020db4: bf00 nop - 8020db6: e002 b.n 8020dbe - goto nullreturn; - 8020db8: bf00 nop - 8020dba: e000 b.n 8020dbe - } - -nullreturn: - 8020dbc: bf00 nop - LWIP_DEBUGF(IP_REASS_DEBUG, ("ip4_reass: nullreturn\n")); - IPFRAG_STATS_INC(ip_frag.drop); - pbuf_free(p); - 8020dbe: 6878 ldr r0, [r7, #4] - 8020dc0: f7f6 fe9a bl 8017af8 - return NULL; - 8020dc4: 2300 movs r3, #0 -} - 8020dc6: 4618 mov r0, r3 - 8020dc8: 3738 adds r7, #56 ; 0x38 - 8020dca: 46bd mov sp, r7 - 8020dcc: bd80 pop {r7, pc} - 8020dce: bf00 nop - 8020dd0: 08026884 .word 0x08026884 - 8020dd4: 08026a10 .word 0x08026a10 - 8020dd8: 080268cc .word 0x080268cc - 8020ddc: 2401a5d8 .word 0x2401a5d8 - 8020de0: 08026a1c .word 0x08026a1c - -08020de4 : -#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) -{ - 8020de4: b580 push {r7, lr} - 8020de6: af00 add r7, sp, #0 - return (struct pbuf_custom_ref *)memp_malloc(MEMP_FRAG_PBUF); - 8020de8: 2005 movs r0, #5 - 8020dea: f7f5 fe71 bl 8016ad0 - 8020dee: 4603 mov r3, r0 -} - 8020df0: 4618 mov r0, r3 - 8020df2: bd80 pop {r7, pc} - -08020df4 : - -/** Free a struct pbuf_custom_ref */ -static void -ip_frag_free_pbuf_custom_ref(struct pbuf_custom_ref *p) -{ - 8020df4: b580 push {r7, lr} - 8020df6: b082 sub sp, #8 - 8020df8: af00 add r7, sp, #0 - 8020dfa: 6078 str r0, [r7, #4] - LWIP_ASSERT("p != NULL", p != NULL); - 8020dfc: 687b ldr r3, [r7, #4] - 8020dfe: 2b00 cmp r3, #0 - 8020e00: d106 bne.n 8020e10 - 8020e02: 4b07 ldr r3, [pc, #28] ; (8020e20 ) - 8020e04: f44f 7231 mov.w r2, #708 ; 0x2c4 - 8020e08: 4906 ldr r1, [pc, #24] ; (8020e24 ) - 8020e0a: 4807 ldr r0, [pc, #28] ; (8020e28 ) - 8020e0c: f000 fdbc bl 8021988 - memp_free(MEMP_FRAG_PBUF, p); - 8020e10: 6879 ldr r1, [r7, #4] - 8020e12: 2005 movs r0, #5 - 8020e14: f7f5 fed2 bl 8016bbc -} - 8020e18: bf00 nop - 8020e1a: 3708 adds r7, #8 - 8020e1c: 46bd mov sp, r7 - 8020e1e: bd80 pop {r7, pc} - 8020e20: 08026884 .word 0x08026884 - 8020e24: 08026a3c .word 0x08026a3c - 8020e28: 080268cc .word 0x080268cc - -08020e2c : - -/** Free-callback function to free a 'struct pbuf_custom_ref', called by - * pbuf_free. */ -static void -ipfrag_free_pbuf_custom(struct pbuf *p) -{ - 8020e2c: b580 push {r7, lr} - 8020e2e: b084 sub sp, #16 - 8020e30: af00 add r7, sp, #0 - 8020e32: 6078 str r0, [r7, #4] - struct pbuf_custom_ref *pcr = (struct pbuf_custom_ref *)p; - 8020e34: 687b ldr r3, [r7, #4] - 8020e36: 60fb str r3, [r7, #12] - LWIP_ASSERT("pcr != NULL", pcr != NULL); - 8020e38: 68fb ldr r3, [r7, #12] - 8020e3a: 2b00 cmp r3, #0 - 8020e3c: d106 bne.n 8020e4c - 8020e3e: 4b11 ldr r3, [pc, #68] ; (8020e84 ) - 8020e40: f240 22ce movw r2, #718 ; 0x2ce - 8020e44: 4910 ldr r1, [pc, #64] ; (8020e88 ) - 8020e46: 4811 ldr r0, [pc, #68] ; (8020e8c ) - 8020e48: f000 fd9e bl 8021988 - LWIP_ASSERT("pcr == p", (void *)pcr == (void *)p); - 8020e4c: 68fa ldr r2, [r7, #12] - 8020e4e: 687b ldr r3, [r7, #4] - 8020e50: 429a cmp r2, r3 - 8020e52: d006 beq.n 8020e62 - 8020e54: 4b0b ldr r3, [pc, #44] ; (8020e84 ) - 8020e56: f240 22cf movw r2, #719 ; 0x2cf - 8020e5a: 490d ldr r1, [pc, #52] ; (8020e90 ) - 8020e5c: 480b ldr r0, [pc, #44] ; (8020e8c ) - 8020e5e: f000 fd93 bl 8021988 - if (pcr->original != NULL) { - 8020e62: 68fb ldr r3, [r7, #12] - 8020e64: 695b ldr r3, [r3, #20] - 8020e66: 2b00 cmp r3, #0 - 8020e68: d004 beq.n 8020e74 - pbuf_free(pcr->original); - 8020e6a: 68fb ldr r3, [r7, #12] - 8020e6c: 695b ldr r3, [r3, #20] - 8020e6e: 4618 mov r0, r3 - 8020e70: f7f6 fe42 bl 8017af8 - } - ip_frag_free_pbuf_custom_ref(pcr); - 8020e74: 68f8 ldr r0, [r7, #12] - 8020e76: f7ff ffbd bl 8020df4 -} - 8020e7a: bf00 nop - 8020e7c: 3710 adds r7, #16 - 8020e7e: 46bd mov sp, r7 - 8020e80: bd80 pop {r7, pc} - 8020e82: bf00 nop - 8020e84: 08026884 .word 0x08026884 - 8020e88: 08026a48 .word 0x08026a48 - 8020e8c: 080268cc .word 0x080268cc - 8020e90: 08026a54 .word 0x08026a54 - -08020e94 : - * - * @return ERR_OK if sent successfully, err_t otherwise - */ -err_t -ip4_frag(struct pbuf *p, struct netif *netif, const ip4_addr_t *dest) -{ - 8020e94: b580 push {r7, lr} - 8020e96: b094 sub sp, #80 ; 0x50 - 8020e98: af02 add r7, sp, #8 - 8020e9a: 60f8 str r0, [r7, #12] - 8020e9c: 60b9 str r1, [r7, #8] - 8020e9e: 607a str r2, [r7, #4] - struct pbuf *rambuf; -#if !LWIP_NETIF_TX_SINGLE_PBUF - struct pbuf *newpbuf; - u16_t newpbuflen = 0; - 8020ea0: 2300 movs r3, #0 - 8020ea2: 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); - 8020ea6: 68bb ldr r3, [r7, #8] - 8020ea8: 8c9b ldrh r3, [r3, #36] ; 0x24 - 8020eaa: 3b14 subs r3, #20 - 8020eac: 2b00 cmp r3, #0 - 8020eae: da00 bge.n 8020eb2 - 8020eb0: 3307 adds r3, #7 - 8020eb2: 10db asrs r3, r3, #3 - 8020eb4: 877b strh r3, [r7, #58] ; 0x3a - u16_t left, fragsize; - u16_t ofo; - int last; - u16_t poff = IP_HLEN; - 8020eb6: 2314 movs r3, #20 - 8020eb8: 87fb strh r3, [r7, #62] ; 0x3e - u16_t tmp; - int mf_set; - - original_iphdr = (struct ip_hdr *)p->payload; - 8020eba: 68fb ldr r3, [r7, #12] - 8020ebc: 685b ldr r3, [r3, #4] - 8020ebe: 637b str r3, [r7, #52] ; 0x34 - iphdr = original_iphdr; - 8020ec0: 6b7b ldr r3, [r7, #52] ; 0x34 - 8020ec2: 633b str r3, [r7, #48] ; 0x30 - if (IPH_HL_BYTES(iphdr) != IP_HLEN) { - 8020ec4: 6b3b ldr r3, [r7, #48] ; 0x30 - 8020ec6: 781b ldrb r3, [r3, #0] - 8020ec8: f003 030f and.w r3, r3, #15 - 8020ecc: b2db uxtb r3, r3 - 8020ece: 009b lsls r3, r3, #2 - 8020ed0: b2db uxtb r3, r3 - 8020ed2: 2b14 cmp r3, #20 - 8020ed4: d002 beq.n 8020edc - /* ip4_frag() does not support IP options */ - return ERR_VAL; - 8020ed6: f06f 0305 mvn.w r3, #5 - 8020eda: e110 b.n 80210fe - } - LWIP_ERROR("ip4_frag(): pbuf too short", p->len >= IP_HLEN, return ERR_VAL); - 8020edc: 68fb ldr r3, [r7, #12] - 8020ede: 895b ldrh r3, [r3, #10] - 8020ee0: 2b13 cmp r3, #19 - 8020ee2: d809 bhi.n 8020ef8 - 8020ee4: 4b88 ldr r3, [pc, #544] ; (8021108 ) - 8020ee6: f44f 723f mov.w r2, #764 ; 0x2fc - 8020eea: 4988 ldr r1, [pc, #544] ; (802110c ) - 8020eec: 4888 ldr r0, [pc, #544] ; (8021110 ) - 8020eee: f000 fd4b bl 8021988 - 8020ef2: f06f 0305 mvn.w r3, #5 - 8020ef6: e102 b.n 80210fe - - /* Save original offset */ - tmp = lwip_ntohs(IPH_OFFSET(iphdr)); - 8020ef8: 6b3b ldr r3, [r7, #48] ; 0x30 - 8020efa: 88db ldrh r3, [r3, #6] - 8020efc: b29b uxth r3, r3 - 8020efe: 4618 mov r0, r3 - 8020f00: f7f5 f81e bl 8015f40 - 8020f04: 4603 mov r3, r0 - 8020f06: 87bb strh r3, [r7, #60] ; 0x3c - ofo = tmp & IP_OFFMASK; - 8020f08: 8fbb ldrh r3, [r7, #60] ; 0x3c - 8020f0a: f3c3 030c ubfx r3, r3, #0, #13 - 8020f0e: 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; - 8020f12: 8fbb ldrh r3, [r7, #60] ; 0x3c - 8020f14: f403 5300 and.w r3, r3, #8192 ; 0x2000 - 8020f18: 62fb str r3, [r7, #44] ; 0x2c - - left = (u16_t)(p->tot_len - IP_HLEN); - 8020f1a: 68fb ldr r3, [r7, #12] - 8020f1c: 891b ldrh r3, [r3, #8] - 8020f1e: 3b14 subs r3, #20 - 8020f20: f8a7 3042 strh.w r3, [r7, #66] ; 0x42 - - while (left) { - 8020f24: e0e1 b.n 80210ea - /* Fill this fragment */ - fragsize = LWIP_MIN(left, (u16_t)(nfb * 8)); - 8020f26: 8f7b ldrh r3, [r7, #58] ; 0x3a - 8020f28: 00db lsls r3, r3, #3 - 8020f2a: b29b uxth r3, r3 - 8020f2c: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 - 8020f30: 4293 cmp r3, r2 - 8020f32: bf28 it cs - 8020f34: 4613 movcs r3, r2 - 8020f36: 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); - 8020f38: f44f 7220 mov.w r2, #640 ; 0x280 - 8020f3c: 2114 movs r1, #20 - 8020f3e: 200e movs r0, #14 - 8020f40: f7f6 faf2 bl 8017528 - 8020f44: 6278 str r0, [r7, #36] ; 0x24 - if (rambuf == NULL) { - 8020f46: 6a7b ldr r3, [r7, #36] ; 0x24 - 8020f48: 2b00 cmp r3, #0 - 8020f4a: f000 80d5 beq.w 80210f8 - goto memerr; - } - LWIP_ASSERT("this needs a pbuf in one piece!", - 8020f4e: 6a7b ldr r3, [r7, #36] ; 0x24 - 8020f50: 895b ldrh r3, [r3, #10] - 8020f52: 2b13 cmp r3, #19 - 8020f54: d806 bhi.n 8020f64 - 8020f56: 4b6c ldr r3, [pc, #432] ; (8021108 ) - 8020f58: f44f 7249 mov.w r2, #804 ; 0x324 - 8020f5c: 496d ldr r1, [pc, #436] ; (8021114 ) - 8020f5e: 486c ldr r0, [pc, #432] ; (8021110 ) - 8020f60: f000 fd12 bl 8021988 - (rambuf->len >= (IP_HLEN))); - SMEMCPY(rambuf->payload, original_iphdr, IP_HLEN); - 8020f64: 6a7b ldr r3, [r7, #36] ; 0x24 - 8020f66: 685b ldr r3, [r3, #4] - 8020f68: 2214 movs r2, #20 - 8020f6a: 6b79 ldr r1, [r7, #52] ; 0x34 - 8020f6c: 4618 mov r0, r3 - 8020f6e: f000 ff3a bl 8021de6 - iphdr = (struct ip_hdr *)rambuf->payload; - 8020f72: 6a7b ldr r3, [r7, #36] ; 0x24 - 8020f74: 685b ldr r3, [r3, #4] - 8020f76: 633b str r3, [r7, #48] ; 0x30 - - left_to_copy = fragsize; - 8020f78: 8d7b ldrh r3, [r7, #42] ; 0x2a - 8020f7a: f8a7 3044 strh.w r3, [r7, #68] ; 0x44 - while (left_to_copy) { - 8020f7e: e064 b.n 802104a - struct pbuf_custom_ref *pcr; - u16_t plen = (u16_t)(p->len - poff); - 8020f80: 68fb ldr r3, [r7, #12] - 8020f82: 895a ldrh r2, [r3, #10] - 8020f84: 8ffb ldrh r3, [r7, #62] ; 0x3e - 8020f86: 1ad3 subs r3, r2, r3 - 8020f88: 83fb strh r3, [r7, #30] - LWIP_ASSERT("p->len >= poff", p->len >= poff); - 8020f8a: 68fb ldr r3, [r7, #12] - 8020f8c: 895b ldrh r3, [r3, #10] - 8020f8e: 8ffa ldrh r2, [r7, #62] ; 0x3e - 8020f90: 429a cmp r2, r3 - 8020f92: d906 bls.n 8020fa2 - 8020f94: 4b5c ldr r3, [pc, #368] ; (8021108 ) - 8020f96: f240 322d movw r2, #813 ; 0x32d - 8020f9a: 495f ldr r1, [pc, #380] ; (8021118 ) - 8020f9c: 485c ldr r0, [pc, #368] ; (8021110 ) - 8020f9e: f000 fcf3 bl 8021988 - newpbuflen = LWIP_MIN(left_to_copy, plen); - 8020fa2: 8bfa ldrh r2, [r7, #30] - 8020fa4: f8b7 3044 ldrh.w r3, [r7, #68] ; 0x44 - 8020fa8: 4293 cmp r3, r2 - 8020faa: bf28 it cs - 8020fac: 4613 movcs r3, r2 - 8020fae: f8a7 3046 strh.w r3, [r7, #70] ; 0x46 - /* Is this pbuf already empty? */ - if (!newpbuflen) { - 8020fb2: f8b7 3046 ldrh.w r3, [r7, #70] ; 0x46 - 8020fb6: 2b00 cmp r3, #0 - 8020fb8: d105 bne.n 8020fc6 - poff = 0; - 8020fba: 2300 movs r3, #0 - 8020fbc: 87fb strh r3, [r7, #62] ; 0x3e - p = p->next; - 8020fbe: 68fb ldr r3, [r7, #12] - 8020fc0: 681b ldr r3, [r3, #0] - 8020fc2: 60fb str r3, [r7, #12] - continue; - 8020fc4: e041 b.n 802104a - } - pcr = ip_frag_alloc_pbuf_custom_ref(); - 8020fc6: f7ff ff0d bl 8020de4 - 8020fca: 61b8 str r0, [r7, #24] - if (pcr == NULL) { - 8020fcc: 69bb ldr r3, [r7, #24] - 8020fce: 2b00 cmp r3, #0 - 8020fd0: d103 bne.n 8020fda - pbuf_free(rambuf); - 8020fd2: 6a78 ldr r0, [r7, #36] ; 0x24 - 8020fd4: f7f6 fd90 bl 8017af8 - goto memerr; - 8020fd8: e08f b.n 80210fa - } - /* Mirror this pbuf, although we might not need all of it. */ - newpbuf = pbuf_alloced_custom(PBUF_RAW, newpbuflen, PBUF_REF, &pcr->pc, - 8020fda: 69b8 ldr r0, [r7, #24] - (u8_t *)p->payload + poff, newpbuflen); - 8020fdc: 68fb ldr r3, [r7, #12] - 8020fde: 685a ldr r2, [r3, #4] - newpbuf = pbuf_alloced_custom(PBUF_RAW, newpbuflen, PBUF_REF, &pcr->pc, - 8020fe0: 8ffb ldrh r3, [r7, #62] ; 0x3e - 8020fe2: 4413 add r3, r2 - 8020fe4: f8b7 1046 ldrh.w r1, [r7, #70] ; 0x46 - 8020fe8: f8b7 2046 ldrh.w r2, [r7, #70] ; 0x46 - 8020fec: 9201 str r2, [sp, #4] - 8020fee: 9300 str r3, [sp, #0] - 8020ff0: 4603 mov r3, r0 - 8020ff2: 2241 movs r2, #65 ; 0x41 - 8020ff4: 2000 movs r0, #0 - 8020ff6: f7f6 fbc5 bl 8017784 - 8020ffa: 6178 str r0, [r7, #20] - if (newpbuf == NULL) { - 8020ffc: 697b ldr r3, [r7, #20] - 8020ffe: 2b00 cmp r3, #0 - 8021000: d106 bne.n 8021010 - ip_frag_free_pbuf_custom_ref(pcr); - 8021002: 69b8 ldr r0, [r7, #24] - 8021004: f7ff fef6 bl 8020df4 - pbuf_free(rambuf); - 8021008: 6a78 ldr r0, [r7, #36] ; 0x24 - 802100a: f7f6 fd75 bl 8017af8 - goto memerr; - 802100e: e074 b.n 80210fa - } - pbuf_ref(p); - 8021010: 68f8 ldr r0, [r7, #12] - 8021012: f7f6 fe17 bl 8017c44 - pcr->original = p; - 8021016: 69bb ldr r3, [r7, #24] - 8021018: 68fa ldr r2, [r7, #12] - 802101a: 615a str r2, [r3, #20] - pcr->pc.custom_free_function = ipfrag_free_pbuf_custom; - 802101c: 69bb ldr r3, [r7, #24] - 802101e: 4a3f ldr r2, [pc, #252] ; (802111c ) - 8021020: 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); - 8021022: 6979 ldr r1, [r7, #20] - 8021024: 6a78 ldr r0, [r7, #36] ; 0x24 - 8021026: f7f6 fe35 bl 8017c94 - left_to_copy = (u16_t)(left_to_copy - newpbuflen); - 802102a: f8b7 2044 ldrh.w r2, [r7, #68] ; 0x44 - 802102e: f8b7 3046 ldrh.w r3, [r7, #70] ; 0x46 - 8021032: 1ad3 subs r3, r2, r3 - 8021034: f8a7 3044 strh.w r3, [r7, #68] ; 0x44 - if (left_to_copy) { - 8021038: f8b7 3044 ldrh.w r3, [r7, #68] ; 0x44 - 802103c: 2b00 cmp r3, #0 - 802103e: d004 beq.n 802104a - poff = 0; - 8021040: 2300 movs r3, #0 - 8021042: 87fb strh r3, [r7, #62] ; 0x3e - p = p->next; - 8021044: 68fb ldr r3, [r7, #12] - 8021046: 681b ldr r3, [r3, #0] - 8021048: 60fb str r3, [r7, #12] - while (left_to_copy) { - 802104a: f8b7 3044 ldrh.w r3, [r7, #68] ; 0x44 - 802104e: 2b00 cmp r3, #0 - 8021050: d196 bne.n 8020f80 - } - } - poff = (u16_t)(poff + newpbuflen); - 8021052: 8ffa ldrh r2, [r7, #62] ; 0x3e - 8021054: f8b7 3046 ldrh.w r3, [r7, #70] ; 0x46 - 8021058: 4413 add r3, r2 - 802105a: 87fb strh r3, [r7, #62] ; 0x3e -#endif /* LWIP_NETIF_TX_SINGLE_PBUF */ - - /* Correct header */ - last = (left <= netif->mtu - IP_HLEN); - 802105c: 68bb ldr r3, [r7, #8] - 802105e: 8c9b ldrh r3, [r3, #36] ; 0x24 - 8021060: f1a3 0213 sub.w r2, r3, #19 - 8021064: f8b7 3042 ldrh.w r3, [r7, #66] ; 0x42 - 8021068: 429a cmp r2, r3 - 802106a: bfcc ite gt - 802106c: 2301 movgt r3, #1 - 802106e: 2300 movle r3, #0 - 8021070: b2db uxtb r3, r3 - 8021072: 623b str r3, [r7, #32] - - /* Set new offset and MF flag */ - tmp = (IP_OFFMASK & (ofo)); - 8021074: f8b7 3040 ldrh.w r3, [r7, #64] ; 0x40 - 8021078: f3c3 030c ubfx r3, r3, #0, #13 - 802107c: 87bb strh r3, [r7, #60] ; 0x3c - if (!last || mf_set) { - 802107e: 6a3b ldr r3, [r7, #32] - 8021080: 2b00 cmp r3, #0 - 8021082: d002 beq.n 802108a - 8021084: 6afb ldr r3, [r7, #44] ; 0x2c - 8021086: 2b00 cmp r3, #0 - 8021088: d003 beq.n 8021092 - /* the last fragment has MF set if the input frame had it */ - tmp = tmp | IP_MF; - 802108a: 8fbb ldrh r3, [r7, #60] ; 0x3c - 802108c: f443 5300 orr.w r3, r3, #8192 ; 0x2000 - 8021090: 87bb strh r3, [r7, #60] ; 0x3c - } - IPH_OFFSET_SET(iphdr, lwip_htons(tmp)); - 8021092: 8fbb ldrh r3, [r7, #60] ; 0x3c - 8021094: 4618 mov r0, r3 - 8021096: f7f4 ff53 bl 8015f40 - 802109a: 4603 mov r3, r0 - 802109c: 461a mov r2, r3 - 802109e: 6b3b ldr r3, [r7, #48] ; 0x30 - 80210a0: 80da strh r2, [r3, #6] - IPH_LEN_SET(iphdr, lwip_htons((u16_t)(fragsize + IP_HLEN))); - 80210a2: 8d7b ldrh r3, [r7, #42] ; 0x2a - 80210a4: 3314 adds r3, #20 - 80210a6: b29b uxth r3, r3 - 80210a8: 4618 mov r0, r3 - 80210aa: f7f4 ff49 bl 8015f40 - 80210ae: 4603 mov r3, r0 - 80210b0: 461a mov r2, r3 - 80210b2: 6b3b ldr r3, [r7, #48] ; 0x30 - 80210b4: 805a strh r2, [r3, #2] - IPH_CHKSUM_SET(iphdr, 0); - 80210b6: 6b3b ldr r3, [r7, #48] ; 0x30 - 80210b8: 2200 movs r2, #0 - 80210ba: 729a strb r2, [r3, #10] - 80210bc: 2200 movs r2, #0 - 80210be: 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); - 80210c0: 68bb ldr r3, [r7, #8] - 80210c2: 695b ldr r3, [r3, #20] - 80210c4: 687a ldr r2, [r7, #4] - 80210c6: 6a79 ldr r1, [r7, #36] ; 0x24 - 80210c8: 68b8 ldr r0, [r7, #8] - 80210ca: 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); - 80210cc: 6a78 ldr r0, [r7, #36] ; 0x24 - 80210ce: f7f6 fd13 bl 8017af8 - left = (u16_t)(left - fragsize); - 80210d2: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 - 80210d6: 8d7b ldrh r3, [r7, #42] ; 0x2a - 80210d8: 1ad3 subs r3, r2, r3 - 80210da: f8a7 3042 strh.w r3, [r7, #66] ; 0x42 - ofo = (u16_t)(ofo + nfb); - 80210de: f8b7 2040 ldrh.w r2, [r7, #64] ; 0x40 - 80210e2: 8f7b ldrh r3, [r7, #58] ; 0x3a - 80210e4: 4413 add r3, r2 - 80210e6: f8a7 3040 strh.w r3, [r7, #64] ; 0x40 - while (left) { - 80210ea: f8b7 3042 ldrh.w r3, [r7, #66] ; 0x42 - 80210ee: 2b00 cmp r3, #0 - 80210f0: f47f af19 bne.w 8020f26 - } - MIB2_STATS_INC(mib2.ipfragoks); - return ERR_OK; - 80210f4: 2300 movs r3, #0 - 80210f6: e002 b.n 80210fe - goto memerr; - 80210f8: bf00 nop -memerr: - MIB2_STATS_INC(mib2.ipfragfails); - return ERR_MEM; - 80210fa: f04f 33ff mov.w r3, #4294967295 -} - 80210fe: 4618 mov r0, r3 - 8021100: 3748 adds r7, #72 ; 0x48 - 8021102: 46bd mov sp, r7 - 8021104: bd80 pop {r7, pc} - 8021106: bf00 nop - 8021108: 08026884 .word 0x08026884 - 802110c: 08026a60 .word 0x08026a60 - 8021110: 080268cc .word 0x080268cc - 8021114: 08026a7c .word 0x08026a7c - 8021118: 08026a9c .word 0x08026a9c - 802111c: 08020e2d .word 0x08020e2d - -08021120 : - * @see ETHARP_SUPPORT_VLAN - * @see LWIP_HOOK_VLAN_CHECK - */ -err_t -ethernet_input(struct pbuf *p, struct netif *netif) -{ - 8021120: b580 push {r7, lr} - 8021122: b086 sub sp, #24 - 8021124: af00 add r7, sp, #0 - 8021126: 6078 str r0, [r7, #4] - 8021128: 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; - 802112a: 230e movs r3, #14 - 802112c: 82fb strh r3, [r7, #22] -#endif /* LWIP_ARP || ETHARP_SUPPORT_VLAN */ - - LWIP_ASSERT_CORE_LOCKED(); - - if (p->len <= SIZEOF_ETH_HDR) { - 802112e: 687b ldr r3, [r7, #4] - 8021130: 895b ldrh r3, [r3, #10] - 8021132: 2b0e cmp r3, #14 - 8021134: d96e bls.n 8021214 - ETHARP_STATS_INC(etharp.drop); - MIB2_STATS_NETIF_INC(netif, ifinerrors); - goto free_and_return; - } - - if (p->if_idx == NETIF_NO_INDEX) { - 8021136: 687b ldr r3, [r7, #4] - 8021138: 7bdb ldrb r3, [r3, #15] - 802113a: 2b00 cmp r3, #0 - 802113c: d106 bne.n 802114c - p->if_idx = netif_get_index(netif); - 802113e: 683b ldr r3, [r7, #0] - 8021140: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 - 8021144: 3301 adds r3, #1 - 8021146: b2da uxtb r2, r3 - 8021148: 687b ldr r3, [r7, #4] - 802114a: 73da strb r2, [r3, #15] - } - - /* points to packet payload, which starts with an Ethernet header */ - ethhdr = (struct eth_hdr *)p->payload; - 802114c: 687b ldr r3, [r7, #4] - 802114e: 685b ldr r3, [r3, #4] - 8021150: 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; - 8021152: 693b ldr r3, [r7, #16] - 8021154: 7b1a ldrb r2, [r3, #12] - 8021156: 7b5b ldrb r3, [r3, #13] - 8021158: 021b lsls r3, r3, #8 - 802115a: 4313 orrs r3, r2 - 802115c: 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) { - 802115e: 693b ldr r3, [r7, #16] - 8021160: 781b ldrb r3, [r3, #0] - 8021162: f003 0301 and.w r3, r3, #1 - 8021166: 2b00 cmp r3, #0 - 8021168: d023 beq.n 80211b2 - /* this might be a multicast or broadcast packet */ - if (ethhdr->dest.addr[0] == LL_IP4_MULTICAST_ADDR_0) { - 802116a: 693b ldr r3, [r7, #16] - 802116c: 781b ldrb r3, [r3, #0] - 802116e: 2b01 cmp r3, #1 - 8021170: d10f bne.n 8021192 -#if LWIP_IPV4 - if ((ethhdr->dest.addr[1] == LL_IP4_MULTICAST_ADDR_1) && - 8021172: 693b ldr r3, [r7, #16] - 8021174: 785b ldrb r3, [r3, #1] - 8021176: 2b00 cmp r3, #0 - 8021178: d11b bne.n 80211b2 - (ethhdr->dest.addr[2] == LL_IP4_MULTICAST_ADDR_2)) { - 802117a: 693b ldr r3, [r7, #16] - 802117c: 789b ldrb r3, [r3, #2] - if ((ethhdr->dest.addr[1] == LL_IP4_MULTICAST_ADDR_1) && - 802117e: 2b5e cmp r3, #94 ; 0x5e - 8021180: d117 bne.n 80211b2 - /* mark the pbuf as link-layer multicast */ - p->flags |= PBUF_FLAG_LLMCAST; - 8021182: 687b ldr r3, [r7, #4] - 8021184: 7b5b ldrb r3, [r3, #13] - 8021186: f043 0310 orr.w r3, r3, #16 - 802118a: b2da uxtb r2, r3 - 802118c: 687b ldr r3, [r7, #4] - 802118e: 735a strb r2, [r3, #13] - 8021190: e00f b.n 80211b2 - (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)) { - 8021192: 693b ldr r3, [r7, #16] - 8021194: 2206 movs r2, #6 - 8021196: 4928 ldr r1, [pc, #160] ; (8021238 ) - 8021198: 4618 mov r0, r3 - 802119a: f000 fd77 bl 8021c8c - 802119e: 4603 mov r3, r0 - 80211a0: 2b00 cmp r3, #0 - 80211a2: d106 bne.n 80211b2 - /* mark the pbuf as link-layer broadcast */ - p->flags |= PBUF_FLAG_LLBCAST; - 80211a4: 687b ldr r3, [r7, #4] - 80211a6: 7b5b ldrb r3, [r3, #13] - 80211a8: f043 0308 orr.w r3, r3, #8 - 80211ac: b2da uxtb r2, r3 - 80211ae: 687b ldr r3, [r7, #4] - 80211b0: 735a strb r2, [r3, #13] - } - } - - switch (type) { - 80211b2: 89fb ldrh r3, [r7, #14] - 80211b4: 2b08 cmp r3, #8 - 80211b6: d003 beq.n 80211c0 - 80211b8: f5b3 6fc1 cmp.w r3, #1544 ; 0x608 - 80211bc: d014 beq.n 80211e8 - } -#endif - ETHARP_STATS_INC(etharp.proterr); - ETHARP_STATS_INC(etharp.drop); - MIB2_STATS_NETIF_INC(netif, ifinunknownprotos); - goto free_and_return; - 80211be: e032 b.n 8021226 - if (!(netif->flags & NETIF_FLAG_ETHARP)) { - 80211c0: 683b ldr r3, [r7, #0] - 80211c2: f893 302d ldrb.w r3, [r3, #45] ; 0x2d - 80211c6: f003 0308 and.w r3, r3, #8 - 80211ca: 2b00 cmp r3, #0 - 80211cc: d024 beq.n 8021218 - if (pbuf_remove_header(p, next_hdr_offset)) { - 80211ce: 8afb ldrh r3, [r7, #22] - 80211d0: 4619 mov r1, r3 - 80211d2: 6878 ldr r0, [r7, #4] - 80211d4: f7f6 fc0a bl 80179ec - 80211d8: 4603 mov r3, r0 - 80211da: 2b00 cmp r3, #0 - 80211dc: d11e bne.n 802121c - ip4_input(p, netif); - 80211de: 6839 ldr r1, [r7, #0] - 80211e0: 6878 ldr r0, [r7, #4] - 80211e2: f7fe ff21 bl 8020028 - break; - 80211e6: e013 b.n 8021210 - if (!(netif->flags & NETIF_FLAG_ETHARP)) { - 80211e8: 683b ldr r3, [r7, #0] - 80211ea: f893 302d ldrb.w r3, [r3, #45] ; 0x2d - 80211ee: f003 0308 and.w r3, r3, #8 - 80211f2: 2b00 cmp r3, #0 - 80211f4: d014 beq.n 8021220 - if (pbuf_remove_header(p, next_hdr_offset)) { - 80211f6: 8afb ldrh r3, [r7, #22] - 80211f8: 4619 mov r1, r3 - 80211fa: 6878 ldr r0, [r7, #4] - 80211fc: f7f6 fbf6 bl 80179ec - 8021200: 4603 mov r3, r0 - 8021202: 2b00 cmp r3, #0 - 8021204: d10e bne.n 8021224 - etharp_input(p, netif); - 8021206: 6839 ldr r1, [r7, #0] - 8021208: 6878 ldr r0, [r7, #4] - 802120a: f7fe f897 bl 801f33c - break; - 802120e: bf00 nop - } - - /* This means the pbuf is freed or consumed, - so the caller doesn't have to free it again */ - return ERR_OK; - 8021210: 2300 movs r3, #0 - 8021212: e00c b.n 802122e - goto free_and_return; - 8021214: bf00 nop - 8021216: e006 b.n 8021226 - goto free_and_return; - 8021218: bf00 nop - 802121a: e004 b.n 8021226 - goto free_and_return; - 802121c: bf00 nop - 802121e: e002 b.n 8021226 - goto free_and_return; - 8021220: bf00 nop - 8021222: e000 b.n 8021226 - goto free_and_return; - 8021224: bf00 nop - -free_and_return: - pbuf_free(p); - 8021226: 6878 ldr r0, [r7, #4] - 8021228: f7f6 fc66 bl 8017af8 - return ERR_OK; - 802122c: 2300 movs r3, #0 -} - 802122e: 4618 mov r0, r3 - 8021230: 3718 adds r7, #24 - 8021232: 46bd mov sp, r7 - 8021234: bd80 pop {r7, pc} - 8021236: bf00 nop - 8021238: 08026cf0 .word 0x08026cf0 - -0802123c : - * @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) { - 802123c: b580 push {r7, lr} - 802123e: b086 sub sp, #24 - 8021240: af00 add r7, sp, #0 - 8021242: 60f8 str r0, [r7, #12] - 8021244: 60b9 str r1, [r7, #8] - 8021246: 607a str r2, [r7, #4] - 8021248: 603b str r3, [r7, #0] - struct eth_hdr *ethhdr; - u16_t eth_type_be = lwip_htons(eth_type); - 802124a: 8c3b ldrh r3, [r7, #32] - 802124c: 4618 mov r0, r3 - 802124e: f7f4 fe77 bl 8015f40 - 8021252: 4603 mov r3, r0 - 8021254: 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) { - 8021256: 210e movs r1, #14 - 8021258: 68b8 ldr r0, [r7, #8] - 802125a: f7f6 fbb7 bl 80179cc - 802125e: 4603 mov r3, r0 - 8021260: 2b00 cmp r3, #0 - 8021262: d125 bne.n 80212b0 - } - } - - LWIP_ASSERT_CORE_LOCKED(); - - ethhdr = (struct eth_hdr *)p->payload; - 8021264: 68bb ldr r3, [r7, #8] - 8021266: 685b ldr r3, [r3, #4] - 8021268: 613b str r3, [r7, #16] - ethhdr->type = eth_type_be; - 802126a: 693b ldr r3, [r7, #16] - 802126c: 8afa ldrh r2, [r7, #22] - 802126e: 819a strh r2, [r3, #12] - SMEMCPY(ðhdr->dest, dst, ETH_HWADDR_LEN); - 8021270: 693b ldr r3, [r7, #16] - 8021272: 2206 movs r2, #6 - 8021274: 6839 ldr r1, [r7, #0] - 8021276: 4618 mov r0, r3 - 8021278: f000 fdb5 bl 8021de6 - SMEMCPY(ðhdr->src, src, ETH_HWADDR_LEN); - 802127c: 693b ldr r3, [r7, #16] - 802127e: 3306 adds r3, #6 - 8021280: 2206 movs r2, #6 - 8021282: 6879 ldr r1, [r7, #4] - 8021284: 4618 mov r0, r3 - 8021286: f000 fdae bl 8021de6 - - LWIP_ASSERT("netif->hwaddr_len must be 6 for ethernet_output!", - 802128a: 68fb ldr r3, [r7, #12] - 802128c: f893 302c ldrb.w r3, [r3, #44] ; 0x2c - 8021290: 2b06 cmp r3, #6 - 8021292: d006 beq.n 80212a2 - 8021294: 4b0a ldr r3, [pc, #40] ; (80212c0 ) - 8021296: f44f 7299 mov.w r2, #306 ; 0x132 - 802129a: 490a ldr r1, [pc, #40] ; (80212c4 ) - 802129c: 480a ldr r0, [pc, #40] ; (80212c8 ) - 802129e: f000 fb73 bl 8021988 - (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); - 80212a2: 68fb ldr r3, [r7, #12] - 80212a4: 699b ldr r3, [r3, #24] - 80212a6: 68b9 ldr r1, [r7, #8] - 80212a8: 68f8 ldr r0, [r7, #12] - 80212aa: 4798 blx r3 - 80212ac: 4603 mov r3, r0 - 80212ae: e002 b.n 80212b6 - goto pbuf_header_failed; - 80212b0: 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; - 80212b2: f06f 0301 mvn.w r3, #1 -} - 80212b6: 4618 mov r0, r3 - 80212b8: 3718 adds r7, #24 - 80212ba: 46bd mov sp, r7 - 80212bc: bd80 pop {r7, pc} - 80212be: bf00 nop - 80212c0: 08026aac .word 0x08026aac - 80212c4: 08026ae4 .word 0x08026ae4 - 80212c8: 08026b18 .word 0x08026b18 - -080212cc : -#endif - -/*-----------------------------------------------------------------------------------*/ -// Creates an empty mailbox. -err_t sys_mbox_new(sys_mbox_t *mbox, int size) -{ - 80212cc: b580 push {r7, lr} - 80212ce: b086 sub sp, #24 - 80212d0: af00 add r7, sp, #0 - 80212d2: 6078 str r0, [r7, #4] - 80212d4: 6039 str r1, [r7, #0] -#if (osCMSIS < 0x20000U) - osMessageQDef(QUEUE, size, void *); - 80212d6: 683b ldr r3, [r7, #0] - 80212d8: 60bb str r3, [r7, #8] - 80212da: 2304 movs r3, #4 - 80212dc: 60fb str r3, [r7, #12] - 80212de: 2300 movs r3, #0 - 80212e0: 613b str r3, [r7, #16] - 80212e2: 2300 movs r3, #0 - 80212e4: 617b str r3, [r7, #20] - *mbox = osMessageCreate(osMessageQ(QUEUE), NULL); - 80212e6: f107 0308 add.w r3, r7, #8 - 80212ea: 2100 movs r1, #0 - 80212ec: 4618 mov r0, r3 - 80212ee: f7ef f9c0 bl 8010672 - 80212f2: 4602 mov r2, r0 - 80212f4: 687b ldr r3, [r7, #4] - 80212f6: 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) - 80212f8: 687b ldr r3, [r7, #4] - 80212fa: 681b ldr r3, [r3, #0] - 80212fc: 2b00 cmp r3, #0 - 80212fe: d102 bne.n 8021306 - return ERR_MEM; - 8021300: f04f 33ff mov.w r3, #4294967295 - 8021304: e000 b.n 8021308 - - return ERR_OK; - 8021306: 2300 movs r3, #0 -} - 8021308: 4618 mov r0, r3 - 802130a: 3718 adds r7, #24 - 802130c: 46bd mov sp, r7 - 802130e: bd80 pop {r7, pc} - -08021310 : - Deallocates a mailbox. If there are messages still present in the - mailbox when the mailbox is deallocated, it is an indication of a - programming error in lwIP and the developer should be notified. -*/ -void sys_mbox_free(sys_mbox_t *mbox) -{ - 8021310: b580 push {r7, lr} - 8021312: b082 sub sp, #8 - 8021314: af00 add r7, sp, #0 - 8021316: 6078 str r0, [r7, #4] -#if (osCMSIS < 0x20000U) - if(osMessageWaiting(*mbox)) - 8021318: 687b ldr r3, [r7, #4] - 802131a: 681b ldr r3, [r3, #0] - 802131c: 4618 mov r0, r3 - 802131e: f7ef fa85 bl 801082c - lwip_stats.sys.mbox.err++; -#endif /* SYS_STATS */ - - } -#if (osCMSIS < 0x20000U) - osMessageDelete(*mbox); - 8021322: 687b ldr r3, [r7, #4] - 8021324: 681b ldr r3, [r3, #0] - 8021326: 4618 mov r0, r3 - 8021328: f7ef fa96 bl 8010858 - osMessageQueueDelete(*mbox); -#endif -#if SYS_STATS - --lwip_stats.sys.mbox.used; -#endif /* SYS_STATS */ -} - 802132c: bf00 nop - 802132e: 3708 adds r7, #8 - 8021330: 46bd mov sp, r7 - 8021332: bd80 pop {r7, pc} - -08021334 : - - -/*-----------------------------------------------------------------------------------*/ -// Try to post the "msg" to the mailbox. -err_t sys_mbox_trypost(sys_mbox_t *mbox, void *msg) -{ - 8021334: b580 push {r7, lr} - 8021336: b084 sub sp, #16 - 8021338: af00 add r7, sp, #0 - 802133a: 6078 str r0, [r7, #4] - 802133c: 6039 str r1, [r7, #0] - err_t result; -#if (osCMSIS < 0x20000U) - if(osMessagePut(*mbox, (uint32_t)msg, 0) == osOK) - 802133e: 687b ldr r3, [r7, #4] - 8021340: 681b ldr r3, [r3, #0] - 8021342: 6839 ldr r1, [r7, #0] - 8021344: 2200 movs r2, #0 - 8021346: 4618 mov r0, r3 - 8021348: f7ef f9bc bl 80106c4 - 802134c: 4603 mov r3, r0 - 802134e: 2b00 cmp r3, #0 - 8021350: d102 bne.n 8021358 -#else - if(osMessageQueuePut(*mbox, &msg, 0, 0) == osOK) -#endif - { - result = ERR_OK; - 8021352: 2300 movs r3, #0 - 8021354: 73fb strb r3, [r7, #15] - 8021356: e001 b.n 802135c - } - else - { - // could not post, queue must be full - result = ERR_MEM; - 8021358: 23ff movs r3, #255 ; 0xff - 802135a: 73fb strb r3, [r7, #15] -#if SYS_STATS - lwip_stats.sys.mbox.err++; -#endif /* SYS_STATS */ - } - - return result; - 802135c: f997 300f ldrsb.w r3, [r7, #15] -} - 8021360: 4618 mov r0, r3 - 8021362: 3710 adds r7, #16 - 8021364: 46bd mov sp, r7 - 8021366: bd80 pop {r7, pc} - -08021368 : - - 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) -{ - 8021368: b580 push {r7, lr} - 802136a: b08c sub sp, #48 ; 0x30 - 802136c: af00 add r7, sp, #0 - 802136e: 61f8 str r0, [r7, #28] - 8021370: 61b9 str r1, [r7, #24] - 8021372: 617a str r2, [r7, #20] -#if (osCMSIS < 0x20000U) - osEvent event; - uint32_t starttime = osKernelSysTick(); - 8021374: f7ee ffa8 bl 80102c8 - 8021378: 62f8 str r0, [r7, #44] ; 0x2c -#else - osStatus_t status; - uint32_t starttime = osKernelGetTickCount(); -#endif - if(timeout != 0) - 802137a: 697b ldr r3, [r7, #20] - 802137c: 2b00 cmp r3, #0 - 802137e: d017 beq.n 80213b0 - { -#if (osCMSIS < 0x20000U) - event = osMessageGet (*mbox, timeout); - 8021380: 69fb ldr r3, [r7, #28] - 8021382: 6819 ldr r1, [r3, #0] - 8021384: f107 0320 add.w r3, r7, #32 - 8021388: 697a ldr r2, [r7, #20] - 802138a: 4618 mov r0, r3 - 802138c: f7ef f9da bl 8010744 - - if(event.status == osEventMessage) - 8021390: 6a3b ldr r3, [r7, #32] - 8021392: 2b10 cmp r3, #16 - 8021394: d109 bne.n 80213aa - { - *msg = (void *)event.value.v; - 8021396: 6a7b ldr r3, [r7, #36] ; 0x24 - 8021398: 461a mov r2, r3 - 802139a: 69bb ldr r3, [r7, #24] - 802139c: 601a str r2, [r3, #0] - return (osKernelSysTick() - starttime); - 802139e: f7ee ff93 bl 80102c8 - 80213a2: 4602 mov r2, r0 - 80213a4: 6afb ldr r3, [r7, #44] ; 0x2c - 80213a6: 1ad3 subs r3, r2, r3 - 80213a8: e019 b.n 80213de - return (osKernelGetTickCount() - starttime); - } -#endif - else - { - return SYS_ARCH_TIMEOUT; - 80213aa: f04f 33ff mov.w r3, #4294967295 - 80213ae: e016 b.n 80213de - } - } - else - { -#if (osCMSIS < 0x20000U) - event = osMessageGet (*mbox, osWaitForever); - 80213b0: 69fb ldr r3, [r7, #28] - 80213b2: 6819 ldr r1, [r3, #0] - 80213b4: 463b mov r3, r7 - 80213b6: f04f 32ff mov.w r2, #4294967295 - 80213ba: 4618 mov r0, r3 - 80213bc: f7ef f9c2 bl 8010744 - 80213c0: f107 0320 add.w r3, r7, #32 - 80213c4: 463a mov r2, r7 - 80213c6: ca07 ldmia r2, {r0, r1, r2} - 80213c8: e883 0007 stmia.w r3, {r0, r1, r2} - *msg = (void *)event.value.v; - 80213cc: 6a7b ldr r3, [r7, #36] ; 0x24 - 80213ce: 461a mov r2, r3 - 80213d0: 69bb ldr r3, [r7, #24] - 80213d2: 601a str r2, [r3, #0] - return (osKernelSysTick() - starttime); - 80213d4: f7ee ff78 bl 80102c8 - 80213d8: 4602 mov r2, r0 - 80213da: 6afb ldr r3, [r7, #44] ; 0x2c - 80213dc: 1ad3 subs r3, r2, r3 -#else - osMessageQueueGet(*mbox, msg, 0, osWaitForever ); - return (osKernelGetTickCount() - starttime); -#endif - } -} - 80213de: 4618 mov r0, r3 - 80213e0: 3730 adds r7, #48 ; 0x30 - 80213e2: 46bd mov sp, r7 - 80213e4: bd80 pop {r7, pc} - -080213e6 : -/* - Similar to sys_arch_mbox_fetch, but if message is not ready immediately, we'll - return with SYS_MBOX_EMPTY. On success, 0 is returned. -*/ -u32_t sys_arch_mbox_tryfetch(sys_mbox_t *mbox, void **msg) -{ - 80213e6: b580 push {r7, lr} - 80213e8: b086 sub sp, #24 - 80213ea: af00 add r7, sp, #0 - 80213ec: 6078 str r0, [r7, #4] - 80213ee: 6039 str r1, [r7, #0] -#if (osCMSIS < 0x20000U) - osEvent event; - - event = osMessageGet (*mbox, 0); - 80213f0: 687b ldr r3, [r7, #4] - 80213f2: 6819 ldr r1, [r3, #0] - 80213f4: f107 030c add.w r3, r7, #12 - 80213f8: 2200 movs r2, #0 - 80213fa: 4618 mov r0, r3 - 80213fc: f7ef f9a2 bl 8010744 - - if(event.status == osEventMessage) - 8021400: 68fb ldr r3, [r7, #12] - 8021402: 2b10 cmp r3, #16 - 8021404: d105 bne.n 8021412 - { - *msg = (void *)event.value.v; - 8021406: 693b ldr r3, [r7, #16] - 8021408: 461a mov r2, r3 - 802140a: 683b ldr r3, [r7, #0] - 802140c: 601a str r2, [r3, #0] -#else - if (osMessageQueueGet(*mbox, msg, 0, 0) == osOK) - { -#endif - return ERR_OK; - 802140e: 2300 movs r3, #0 - 8021410: e001 b.n 8021416 - } - else - { - return SYS_MBOX_EMPTY; - 8021412: f04f 33ff mov.w r3, #4294967295 - } -} - 8021416: 4618 mov r0, r3 - 8021418: 3718 adds r7, #24 - 802141a: 46bd mov sp, r7 - 802141c: bd80 pop {r7, pc} - -0802141e : -/*----------------------------------------------------------------------------------*/ -int sys_mbox_valid(sys_mbox_t *mbox) -{ - 802141e: b480 push {r7} - 8021420: b083 sub sp, #12 - 8021422: af00 add r7, sp, #0 - 8021424: 6078 str r0, [r7, #4] - if (*mbox == SYS_MBOX_NULL) - 8021426: 687b ldr r3, [r7, #4] - 8021428: 681b ldr r3, [r3, #0] - 802142a: 2b00 cmp r3, #0 - 802142c: d101 bne.n 8021432 - return 0; - 802142e: 2300 movs r3, #0 - 8021430: e000 b.n 8021434 - else - return 1; - 8021432: 2301 movs r3, #1 -} - 8021434: 4618 mov r0, r3 - 8021436: 370c adds r7, #12 - 8021438: 46bd mov sp, r7 - 802143a: f85d 7b04 ldr.w r7, [sp], #4 - 802143e: 4770 bx lr - -08021440 : -/*-----------------------------------------------------------------------------------*/ -void sys_mbox_set_invalid(sys_mbox_t *mbox) -{ - 8021440: b480 push {r7} - 8021442: b083 sub sp, #12 - 8021444: af00 add r7, sp, #0 - 8021446: 6078 str r0, [r7, #4] - *mbox = SYS_MBOX_NULL; - 8021448: 687b ldr r3, [r7, #4] - 802144a: 2200 movs r2, #0 - 802144c: 601a str r2, [r3, #0] -} - 802144e: bf00 nop - 8021450: 370c adds r7, #12 - 8021452: 46bd mov sp, r7 - 8021454: f85d 7b04 ldr.w r7, [sp], #4 - 8021458: 4770 bx lr - -0802145a : - -/*-----------------------------------------------------------------------------------*/ -// Creates a new semaphore. The "count" argument specifies -// the initial state of the semaphore. -err_t sys_sem_new(sys_sem_t *sem, u8_t count) -{ - 802145a: b580 push {r7, lr} - 802145c: b084 sub sp, #16 - 802145e: af00 add r7, sp, #0 - 8021460: 6078 str r0, [r7, #4] - 8021462: 460b mov r3, r1 - 8021464: 70fb strb r3, [r7, #3] -#if (osCMSIS < 0x20000U) - osSemaphoreDef(SEM); - 8021466: 2300 movs r3, #0 - 8021468: 60bb str r3, [r7, #8] - 802146a: 2300 movs r3, #0 - 802146c: 60fb str r3, [r7, #12] - *sem = osSemaphoreCreate (osSemaphore(SEM), 1); - 802146e: f107 0308 add.w r3, r7, #8 - 8021472: 2101 movs r1, #1 - 8021474: 4618 mov r0, r3 - 8021476: f7ef f833 bl 80104e0 - 802147a: 4602 mov r2, r0 - 802147c: 687b ldr r3, [r7, #4] - 802147e: 601a str r2, [r3, #0] -#else - *sem = osSemaphoreNew(UINT16_MAX, count, NULL); -#endif - - if(*sem == NULL) - 8021480: 687b ldr r3, [r7, #4] - 8021482: 681b ldr r3, [r3, #0] - 8021484: 2b00 cmp r3, #0 - 8021486: d102 bne.n 802148e - { -#if SYS_STATS - ++lwip_stats.sys.sem.err; -#endif /* SYS_STATS */ - return ERR_MEM; - 8021488: f04f 33ff mov.w r3, #4294967295 - 802148c: e009 b.n 80214a2 - } - - if(count == 0) // Means it can't be taken - 802148e: 78fb ldrb r3, [r7, #3] - 8021490: 2b00 cmp r3, #0 - 8021492: d105 bne.n 80214a0 - { -#if (osCMSIS < 0x20000U) - osSemaphoreWait(*sem, 0); - 8021494: 687b ldr r3, [r7, #4] - 8021496: 681b ldr r3, [r3, #0] - 8021498: 2100 movs r1, #0 - 802149a: 4618 mov r0, r3 - 802149c: f7ef f852 bl 8010544 - if (lwip_stats.sys.sem.max < lwip_stats.sys.sem.used) { - lwip_stats.sys.sem.max = lwip_stats.sys.sem.used; - } -#endif /* SYS_STATS */ - - return ERR_OK; - 80214a0: 2300 movs r3, #0 -} - 80214a2: 4618 mov r0, r3 - 80214a4: 3710 adds r7, #16 - 80214a6: 46bd mov sp, r7 - 80214a8: bd80 pop {r7, pc} - -080214aa : - - Notice that lwIP implements a function with a similar name, - sys_sem_wait(), that uses the sys_arch_sem_wait() function. -*/ -u32_t sys_arch_sem_wait(sys_sem_t *sem, u32_t timeout) -{ - 80214aa: b580 push {r7, lr} - 80214ac: b084 sub sp, #16 - 80214ae: af00 add r7, sp, #0 - 80214b0: 6078 str r0, [r7, #4] - 80214b2: 6039 str r1, [r7, #0] -#if (osCMSIS < 0x20000U) - uint32_t starttime = osKernelSysTick(); - 80214b4: f7ee ff08 bl 80102c8 - 80214b8: 60f8 str r0, [r7, #12] -#else - uint32_t starttime = osKernelGetTickCount(); -#endif - if(timeout != 0) - 80214ba: 683b ldr r3, [r7, #0] - 80214bc: 2b00 cmp r3, #0 - 80214be: d011 beq.n 80214e4 - { -#if (osCMSIS < 0x20000U) - if(osSemaphoreWait (*sem, timeout) == osOK) - 80214c0: 687b ldr r3, [r7, #4] - 80214c2: 681b ldr r3, [r3, #0] - 80214c4: 6839 ldr r1, [r7, #0] - 80214c6: 4618 mov r0, r3 - 80214c8: f7ef f83c bl 8010544 - 80214cc: 4603 mov r3, r0 - 80214ce: 2b00 cmp r3, #0 - 80214d0: d105 bne.n 80214de - { - return (osKernelSysTick() - starttime); - 80214d2: f7ee fef9 bl 80102c8 - 80214d6: 4602 mov r2, r0 - 80214d8: 68fb ldr r3, [r7, #12] - 80214da: 1ad3 subs r3, r2, r3 - 80214dc: e012 b.n 8021504 - return (osKernelGetTickCount() - starttime); -#endif - } - else - { - return SYS_ARCH_TIMEOUT; - 80214de: f04f 33ff mov.w r3, #4294967295 - 80214e2: e00f b.n 8021504 - } - } - else - { -#if (osCMSIS < 0x20000U) - while(osSemaphoreWait (*sem, osWaitForever) != osOK); - 80214e4: bf00 nop - 80214e6: 687b ldr r3, [r7, #4] - 80214e8: 681b ldr r3, [r3, #0] - 80214ea: f04f 31ff mov.w r1, #4294967295 - 80214ee: 4618 mov r0, r3 - 80214f0: f7ef f828 bl 8010544 - 80214f4: 4603 mov r3, r0 - 80214f6: 2b00 cmp r3, #0 - 80214f8: d1f5 bne.n 80214e6 - return (osKernelSysTick() - starttime); - 80214fa: f7ee fee5 bl 80102c8 - 80214fe: 4602 mov r2, r0 - 8021500: 68fb ldr r3, [r7, #12] - 8021502: 1ad3 subs r3, r2, r3 -#else - while(osSemaphoreAcquire(*sem, osWaitForever) != osOK); - return (osKernelGetTickCount() - starttime); -#endif - } -} - 8021504: 4618 mov r0, r3 - 8021506: 3710 adds r7, #16 - 8021508: 46bd mov sp, r7 - 802150a: bd80 pop {r7, pc} - -0802150c : - -/*-----------------------------------------------------------------------------------*/ -// Signals a semaphore -void sys_sem_signal(sys_sem_t *sem) -{ - 802150c: b580 push {r7, lr} - 802150e: b082 sub sp, #8 - 8021510: af00 add r7, sp, #0 - 8021512: 6078 str r0, [r7, #4] - osSemaphoreRelease(*sem); - 8021514: 687b ldr r3, [r7, #4] - 8021516: 681b ldr r3, [r3, #0] - 8021518: 4618 mov r0, r3 - 802151a: f7ef f861 bl 80105e0 -} - 802151e: bf00 nop - 8021520: 3708 adds r7, #8 - 8021522: 46bd mov sp, r7 - 8021524: bd80 pop {r7, pc} - -08021526 : - -/*-----------------------------------------------------------------------------------*/ -// Deallocates a semaphore -void sys_sem_free(sys_sem_t *sem) -{ - 8021526: b580 push {r7, lr} - 8021528: b082 sub sp, #8 - 802152a: af00 add r7, sp, #0 - 802152c: 6078 str r0, [r7, #4] -#if SYS_STATS - --lwip_stats.sys.sem.used; -#endif /* SYS_STATS */ - - osSemaphoreDelete(*sem); - 802152e: 687b ldr r3, [r7, #4] - 8021530: 681b ldr r3, [r3, #0] - 8021532: 4618 mov r0, r3 - 8021534: f7ef f88a bl 801064c -} - 8021538: bf00 nop - 802153a: 3708 adds r7, #8 - 802153c: 46bd mov sp, r7 - 802153e: bd80 pop {r7, pc} - -08021540 : -/*-----------------------------------------------------------------------------------*/ -int sys_sem_valid(sys_sem_t *sem) -{ - 8021540: b480 push {r7} - 8021542: b083 sub sp, #12 - 8021544: af00 add r7, sp, #0 - 8021546: 6078 str r0, [r7, #4] - if (*sem == SYS_SEM_NULL) - 8021548: 687b ldr r3, [r7, #4] - 802154a: 681b ldr r3, [r3, #0] - 802154c: 2b00 cmp r3, #0 - 802154e: d101 bne.n 8021554 - return 0; - 8021550: 2300 movs r3, #0 - 8021552: e000 b.n 8021556 - else - return 1; - 8021554: 2301 movs r3, #1 -} - 8021556: 4618 mov r0, r3 - 8021558: 370c adds r7, #12 - 802155a: 46bd mov sp, r7 - 802155c: f85d 7b04 ldr.w r7, [sp], #4 - 8021560: 4770 bx lr - -08021562 : - -/*-----------------------------------------------------------------------------------*/ -void sys_sem_set_invalid(sys_sem_t *sem) -{ - 8021562: b480 push {r7} - 8021564: b083 sub sp, #12 - 8021566: af00 add r7, sp, #0 - 8021568: 6078 str r0, [r7, #4] - *sem = SYS_SEM_NULL; - 802156a: 687b ldr r3, [r7, #4] - 802156c: 2200 movs r2, #0 - 802156e: 601a str r2, [r3, #0] -} - 8021570: bf00 nop - 8021572: 370c adds r7, #12 - 8021574: 46bd mov sp, r7 - 8021576: f85d 7b04 ldr.w r7, [sp], #4 - 802157a: 4770 bx lr - -0802157c : -#else -osMutexId_t lwip_sys_mutex; -#endif -// Initialize sys arch -void sys_init(void) -{ - 802157c: b580 push {r7, lr} - 802157e: af00 add r7, sp, #0 -#if (osCMSIS < 0x20000U) - lwip_sys_mutex = osMutexCreate(osMutex(lwip_sys_mutex)); - 8021580: 4803 ldr r0, [pc, #12] ; (8021590 ) - 8021582: f7ee ff11 bl 80103a8 - 8021586: 4603 mov r3, r0 - 8021588: 4a02 ldr r2, [pc, #8] ; (8021594 ) - 802158a: 6013 str r3, [r2, #0] -#else - lwip_sys_mutex = osMutexNew(NULL); -#endif -} - 802158c: bf00 nop - 802158e: bd80 pop {r7, pc} - 8021590: 08026d00 .word 0x08026d00 - 8021594: 2401a5e4 .word 0x2401a5e4 - -08021598 : - /* Mutexes*/ -/*-----------------------------------------------------------------------------------*/ -/*-----------------------------------------------------------------------------------*/ -#if LWIP_COMPAT_MUTEX == 0 -/* Create a new mutex*/ -err_t sys_mutex_new(sys_mutex_t *mutex) { - 8021598: b580 push {r7, lr} - 802159a: b084 sub sp, #16 - 802159c: af00 add r7, sp, #0 - 802159e: 6078 str r0, [r7, #4] - -#if (osCMSIS < 0x20000U) - osMutexDef(MUTEX); - 80215a0: 2300 movs r3, #0 - 80215a2: 60bb str r3, [r7, #8] - 80215a4: 2300 movs r3, #0 - 80215a6: 60fb str r3, [r7, #12] - *mutex = osMutexCreate(osMutex(MUTEX)); - 80215a8: f107 0308 add.w r3, r7, #8 - 80215ac: 4618 mov r0, r3 - 80215ae: f7ee fefb bl 80103a8 - 80215b2: 4602 mov r2, r0 - 80215b4: 687b ldr r3, [r7, #4] - 80215b6: 601a str r2, [r3, #0] -#else - *mutex = osMutexNew(NULL); -#endif - - if(*mutex == NULL) - 80215b8: 687b ldr r3, [r7, #4] - 80215ba: 681b ldr r3, [r3, #0] - 80215bc: 2b00 cmp r3, #0 - 80215be: d102 bne.n 80215c6 - { -#if SYS_STATS - ++lwip_stats.sys.mutex.err; -#endif /* SYS_STATS */ - return ERR_MEM; - 80215c0: f04f 33ff mov.w r3, #4294967295 - 80215c4: e000 b.n 80215c8 - ++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; - 80215c6: 2300 movs r3, #0 -} - 80215c8: 4618 mov r0, r3 - 80215ca: 3710 adds r7, #16 - 80215cc: 46bd mov sp, r7 - 80215ce: bd80 pop {r7, pc} - -080215d0 : - osMutexDelete(*mutex); -} -/*-----------------------------------------------------------------------------------*/ -/* Lock a mutex*/ -void sys_mutex_lock(sys_mutex_t *mutex) -{ - 80215d0: b580 push {r7, lr} - 80215d2: b082 sub sp, #8 - 80215d4: af00 add r7, sp, #0 - 80215d6: 6078 str r0, [r7, #4] -#if (osCMSIS < 0x20000U) - osMutexWait(*mutex, osWaitForever); - 80215d8: 687b ldr r3, [r7, #4] - 80215da: 681b ldr r3, [r3, #0] - 80215dc: f04f 31ff mov.w r1, #4294967295 - 80215e0: 4618 mov r0, r3 - 80215e2: f7ee fef9 bl 80103d8 -#else - osMutexAcquire(*mutex, osWaitForever); -#endif -} - 80215e6: bf00 nop - 80215e8: 3708 adds r7, #8 - 80215ea: 46bd mov sp, r7 - 80215ec: bd80 pop {r7, pc} - -080215ee : - -/*-----------------------------------------------------------------------------------*/ -/* Unlock a mutex*/ -void sys_mutex_unlock(sys_mutex_t *mutex) -{ - 80215ee: b580 push {r7, lr} - 80215f0: b082 sub sp, #8 - 80215f2: af00 add r7, sp, #0 - 80215f4: 6078 str r0, [r7, #4] - osMutexRelease(*mutex); - 80215f6: 687b ldr r3, [r7, #4] - 80215f8: 681b ldr r3, [r3, #0] - 80215fa: 4618 mov r0, r3 - 80215fc: f7ee ff3a bl 8010474 -} - 8021600: bf00 nop - 8021602: 3708 adds r7, #8 - 8021604: 46bd mov sp, r7 - 8021606: bd80 pop {r7, pc} - -08021608 : - 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) -{ - 8021608: b580 push {r7, lr} - 802160a: b08c sub sp, #48 ; 0x30 - 802160c: af00 add r7, sp, #0 - 802160e: 60f8 str r0, [r7, #12] - 8021610: 60b9 str r1, [r7, #8] - 8021612: 607a str r2, [r7, #4] - 8021614: 603b str r3, [r7, #0] -#if (osCMSIS < 0x20000U) - const osThreadDef_t os_thread_def = { (char *)name, (os_pthread)thread, (osPriority)prio, 0, stacksize}; - 8021616: f107 0314 add.w r3, r7, #20 - 802161a: 2200 movs r2, #0 - 802161c: 601a str r2, [r3, #0] - 802161e: 605a str r2, [r3, #4] - 8021620: 609a str r2, [r3, #8] - 8021622: 60da str r2, [r3, #12] - 8021624: 611a str r2, [r3, #16] - 8021626: 615a str r2, [r3, #20] - 8021628: 619a str r2, [r3, #24] - 802162a: 68fb ldr r3, [r7, #12] - 802162c: 617b str r3, [r7, #20] - 802162e: 68bb ldr r3, [r7, #8] - 8021630: 61bb str r3, [r7, #24] - 8021632: 6bbb ldr r3, [r7, #56] ; 0x38 - 8021634: b21b sxth r3, r3 - 8021636: 83bb strh r3, [r7, #28] - 8021638: 683b ldr r3, [r7, #0] - 802163a: 627b str r3, [r7, #36] ; 0x24 - return osThreadCreate(&os_thread_def, arg); - 802163c: f107 0314 add.w r3, r7, #20 - 8021640: 6879 ldr r1, [r7, #4] - 8021642: 4618 mov r0, r3 - 8021644: f7ee fe50 bl 80102e8 - 8021648: 4603 mov r3, r0 - .stack_size = stacksize, - .priority = (osPriority_t)prio, - }; - return osThreadNew(thread, arg, &attributes); -#endif -} - 802164a: 4618 mov r0, r3 - 802164c: 3730 adds r7, #48 ; 0x30 - 802164e: 46bd mov sp, r7 - 8021650: bd80 pop {r7, pc} - ... - -08021654 : - - Note: This function is based on FreeRTOS API, because no equivalent CMSIS-RTOS - API is available -*/ -sys_prot_t sys_arch_protect(void) -{ - 8021654: b580 push {r7, lr} - 8021656: af00 add r7, sp, #0 -#if (osCMSIS < 0x20000U) - osMutexWait(lwip_sys_mutex, osWaitForever); - 8021658: 4b04 ldr r3, [pc, #16] ; (802166c ) - 802165a: 681b ldr r3, [r3, #0] - 802165c: f04f 31ff mov.w r1, #4294967295 - 8021660: 4618 mov r0, r3 - 8021662: f7ee feb9 bl 80103d8 -#else - osMutexAcquire(lwip_sys_mutex, osWaitForever); -#endif - return (sys_prot_t)1; - 8021666: 2301 movs r3, #1 -} - 8021668: 4618 mov r0, r3 - 802166a: bd80 pop {r7, pc} - 802166c: 2401a5e4 .word 0x2401a5e4 - -08021670 : - - Note: This function is based on FreeRTOS API, because no equivalent CMSIS-RTOS - API is available -*/ -void sys_arch_unprotect(sys_prot_t pval) -{ - 8021670: b580 push {r7, lr} - 8021672: b082 sub sp, #8 - 8021674: af00 add r7, sp, #0 - 8021676: 6078 str r0, [r7, #4] - ( void ) pval; - osMutexRelease(lwip_sys_mutex); - 8021678: 4b04 ldr r3, [pc, #16] ; (802168c ) - 802167a: 681b ldr r3, [r3, #0] - 802167c: 4618 mov r0, r3 - 802167e: f7ee fef9 bl 8010474 -} - 8021682: bf00 nop - 8021684: 3708 adds r7, #8 - 8021686: 46bd mov sp, r7 - 8021688: bd80 pop {r7, pc} - 802168a: bf00 nop - 802168c: 2401a5e4 .word 0x2401a5e4 - -08021690 : - 8021690: 4b16 ldr r3, [pc, #88] ; (80216ec ) - 8021692: b510 push {r4, lr} - 8021694: 681c ldr r4, [r3, #0] - 8021696: 6b23 ldr r3, [r4, #48] ; 0x30 - 8021698: b9b3 cbnz r3, 80216c8 - 802169a: 2018 movs r0, #24 - 802169c: f000 fc1c bl 8021ed8 - 80216a0: 4602 mov r2, r0 - 80216a2: 6320 str r0, [r4, #48] ; 0x30 - 80216a4: b920 cbnz r0, 80216b0 - 80216a6: 4b12 ldr r3, [pc, #72] ; (80216f0 ) - 80216a8: 4812 ldr r0, [pc, #72] ; (80216f4 ) - 80216aa: 2152 movs r1, #82 ; 0x52 - 80216ac: f000 fbaa bl 8021e04 <__assert_func> - 80216b0: 4911 ldr r1, [pc, #68] ; (80216f8 ) - 80216b2: 4b12 ldr r3, [pc, #72] ; (80216fc ) - 80216b4: e9c0 1300 strd r1, r3, [r0] - 80216b8: 4b11 ldr r3, [pc, #68] ; (8021700 ) - 80216ba: 6083 str r3, [r0, #8] - 80216bc: 230b movs r3, #11 - 80216be: 8183 strh r3, [r0, #12] - 80216c0: 2100 movs r1, #0 - 80216c2: 2001 movs r0, #1 - 80216c4: e9c2 0104 strd r0, r1, [r2, #16] - 80216c8: 6b21 ldr r1, [r4, #48] ; 0x30 - 80216ca: 480e ldr r0, [pc, #56] ; (8021704 ) - 80216cc: 690b ldr r3, [r1, #16] - 80216ce: 694c ldr r4, [r1, #20] - 80216d0: 4a0d ldr r2, [pc, #52] ; (8021708 ) - 80216d2: 4358 muls r0, r3 - 80216d4: fb02 0004 mla r0, r2, r4, r0 - 80216d8: fba3 3202 umull r3, r2, r3, r2 - 80216dc: 3301 adds r3, #1 - 80216de: eb40 0002 adc.w r0, r0, r2 - 80216e2: e9c1 3004 strd r3, r0, [r1, #16] - 80216e6: f020 4000 bic.w r0, r0, #2147483648 ; 0x80000000 - 80216ea: bd10 pop {r4, pc} - 80216ec: 240000a0 .word 0x240000a0 - 80216f0: 08026d08 .word 0x08026d08 - 80216f4: 08026d1f .word 0x08026d1f - 80216f8: abcd330e .word 0xabcd330e - 80216fc: e66d1234 .word 0xe66d1234 - 8021700: 0005deec .word 0x0005deec - 8021704: 5851f42d .word 0x5851f42d - 8021708: 4c957f2d .word 0x4c957f2d - -0802170c <_strtoul_l.constprop.0>: - 802170c: e92d 43f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, lr} - 8021710: 4f36 ldr r7, [pc, #216] ; (80217ec <_strtoul_l.constprop.0+0xe0>) - 8021712: 4686 mov lr, r0 - 8021714: 460d mov r5, r1 - 8021716: 4628 mov r0, r5 - 8021718: f815 4b01 ldrb.w r4, [r5], #1 - 802171c: 5d3e ldrb r6, [r7, r4] - 802171e: f016 0608 ands.w r6, r6, #8 - 8021722: d1f8 bne.n 8021716 <_strtoul_l.constprop.0+0xa> - 8021724: 2c2d cmp r4, #45 ; 0x2d - 8021726: d130 bne.n 802178a <_strtoul_l.constprop.0+0x7e> - 8021728: 782c ldrb r4, [r5, #0] - 802172a: 2601 movs r6, #1 - 802172c: 1c85 adds r5, r0, #2 - 802172e: 2b00 cmp r3, #0 - 8021730: d057 beq.n 80217e2 <_strtoul_l.constprop.0+0xd6> - 8021732: 2b10 cmp r3, #16 - 8021734: d109 bne.n 802174a <_strtoul_l.constprop.0+0x3e> - 8021736: 2c30 cmp r4, #48 ; 0x30 - 8021738: d107 bne.n 802174a <_strtoul_l.constprop.0+0x3e> - 802173a: 7828 ldrb r0, [r5, #0] - 802173c: f000 00df and.w r0, r0, #223 ; 0xdf - 8021740: 2858 cmp r0, #88 ; 0x58 - 8021742: d149 bne.n 80217d8 <_strtoul_l.constprop.0+0xcc> - 8021744: 786c ldrb r4, [r5, #1] - 8021746: 2310 movs r3, #16 - 8021748: 3502 adds r5, #2 - 802174a: f04f 38ff mov.w r8, #4294967295 - 802174e: 2700 movs r7, #0 - 8021750: fbb8 f8f3 udiv r8, r8, r3 - 8021754: fb03 f908 mul.w r9, r3, r8 - 8021758: ea6f 0909 mvn.w r9, r9 - 802175c: 4638 mov r0, r7 - 802175e: f1a4 0c30 sub.w ip, r4, #48 ; 0x30 - 8021762: f1bc 0f09 cmp.w ip, #9 - 8021766: d815 bhi.n 8021794 <_strtoul_l.constprop.0+0x88> - 8021768: 4664 mov r4, ip - 802176a: 42a3 cmp r3, r4 - 802176c: dd23 ble.n 80217b6 <_strtoul_l.constprop.0+0xaa> - 802176e: f1b7 3fff cmp.w r7, #4294967295 - 8021772: d007 beq.n 8021784 <_strtoul_l.constprop.0+0x78> - 8021774: 4580 cmp r8, r0 - 8021776: d31b bcc.n 80217b0 <_strtoul_l.constprop.0+0xa4> - 8021778: d101 bne.n 802177e <_strtoul_l.constprop.0+0x72> - 802177a: 45a1 cmp r9, r4 - 802177c: db18 blt.n 80217b0 <_strtoul_l.constprop.0+0xa4> - 802177e: fb00 4003 mla r0, r0, r3, r4 - 8021782: 2701 movs r7, #1 - 8021784: f815 4b01 ldrb.w r4, [r5], #1 - 8021788: e7e9 b.n 802175e <_strtoul_l.constprop.0+0x52> - 802178a: 2c2b cmp r4, #43 ; 0x2b - 802178c: bf04 itt eq - 802178e: 782c ldrbeq r4, [r5, #0] - 8021790: 1c85 addeq r5, r0, #2 - 8021792: e7cc b.n 802172e <_strtoul_l.constprop.0+0x22> - 8021794: f1a4 0c41 sub.w ip, r4, #65 ; 0x41 - 8021798: f1bc 0f19 cmp.w ip, #25 - 802179c: d801 bhi.n 80217a2 <_strtoul_l.constprop.0+0x96> - 802179e: 3c37 subs r4, #55 ; 0x37 - 80217a0: e7e3 b.n 802176a <_strtoul_l.constprop.0+0x5e> - 80217a2: f1a4 0c61 sub.w ip, r4, #97 ; 0x61 - 80217a6: f1bc 0f19 cmp.w ip, #25 - 80217aa: d804 bhi.n 80217b6 <_strtoul_l.constprop.0+0xaa> - 80217ac: 3c57 subs r4, #87 ; 0x57 - 80217ae: e7dc b.n 802176a <_strtoul_l.constprop.0+0x5e> - 80217b0: f04f 37ff mov.w r7, #4294967295 - 80217b4: e7e6 b.n 8021784 <_strtoul_l.constprop.0+0x78> - 80217b6: 1c7b adds r3, r7, #1 - 80217b8: d106 bne.n 80217c8 <_strtoul_l.constprop.0+0xbc> - 80217ba: 2322 movs r3, #34 ; 0x22 - 80217bc: f8ce 3000 str.w r3, [lr] - 80217c0: 4638 mov r0, r7 - 80217c2: b932 cbnz r2, 80217d2 <_strtoul_l.constprop.0+0xc6> - 80217c4: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc} - 80217c8: b106 cbz r6, 80217cc <_strtoul_l.constprop.0+0xc0> - 80217ca: 4240 negs r0, r0 - 80217cc: 2a00 cmp r2, #0 - 80217ce: d0f9 beq.n 80217c4 <_strtoul_l.constprop.0+0xb8> - 80217d0: b107 cbz r7, 80217d4 <_strtoul_l.constprop.0+0xc8> - 80217d2: 1e69 subs r1, r5, #1 - 80217d4: 6011 str r1, [r2, #0] - 80217d6: e7f5 b.n 80217c4 <_strtoul_l.constprop.0+0xb8> - 80217d8: 2430 movs r4, #48 ; 0x30 - 80217da: 2b00 cmp r3, #0 - 80217dc: d1b5 bne.n 802174a <_strtoul_l.constprop.0+0x3e> - 80217de: 2308 movs r3, #8 - 80217e0: e7b3 b.n 802174a <_strtoul_l.constprop.0+0x3e> - 80217e2: 2c30 cmp r4, #48 ; 0x30 - 80217e4: d0a9 beq.n 802173a <_strtoul_l.constprop.0+0x2e> - 80217e6: 230a movs r3, #10 - 80217e8: e7af b.n 802174a <_strtoul_l.constprop.0+0x3e> - 80217ea: bf00 nop - 80217ec: 08026d78 .word 0x08026d78 - -080217f0 : - 80217f0: 4613 mov r3, r2 - 80217f2: 460a mov r2, r1 - 80217f4: 4601 mov r1, r0 - 80217f6: 4802 ldr r0, [pc, #8] ; (8021800 ) - 80217f8: 6800 ldr r0, [r0, #0] - 80217fa: f7ff bf87 b.w 802170c <_strtoul_l.constprop.0> - 80217fe: bf00 nop - 8021800: 240000a0 .word 0x240000a0 - -08021804 : - 8021804: 2300 movs r3, #0 - 8021806: b510 push {r4, lr} - 8021808: 4604 mov r4, r0 - 802180a: e9c0 3300 strd r3, r3, [r0] - 802180e: e9c0 3304 strd r3, r3, [r0, #16] - 8021812: 6083 str r3, [r0, #8] - 8021814: 8181 strh r1, [r0, #12] - 8021816: 6643 str r3, [r0, #100] ; 0x64 - 8021818: 81c2 strh r2, [r0, #14] - 802181a: 6183 str r3, [r0, #24] - 802181c: 4619 mov r1, r3 - 802181e: 2208 movs r2, #8 - 8021820: 305c adds r0, #92 ; 0x5c - 8021822: f000 fa5d bl 8021ce0 - 8021826: 4b0d ldr r3, [pc, #52] ; (802185c ) - 8021828: 6263 str r3, [r4, #36] ; 0x24 - 802182a: 4b0d ldr r3, [pc, #52] ; (8021860 ) - 802182c: 62a3 str r3, [r4, #40] ; 0x28 - 802182e: 4b0d ldr r3, [pc, #52] ; (8021864 ) - 8021830: 62e3 str r3, [r4, #44] ; 0x2c - 8021832: 4b0d ldr r3, [pc, #52] ; (8021868 ) - 8021834: 6323 str r3, [r4, #48] ; 0x30 - 8021836: 4b0d ldr r3, [pc, #52] ; (802186c ) - 8021838: 6224 str r4, [r4, #32] - 802183a: 429c cmp r4, r3 - 802183c: d006 beq.n 802184c - 802183e: f103 0268 add.w r2, r3, #104 ; 0x68 - 8021842: 4294 cmp r4, r2 - 8021844: d002 beq.n 802184c - 8021846: 33d0 adds r3, #208 ; 0xd0 - 8021848: 429c cmp r4, r3 - 802184a: d105 bne.n 8021858 - 802184c: f104 0058 add.w r0, r4, #88 ; 0x58 - 8021850: e8bd 4010 ldmia.w sp!, {r4, lr} - 8021854: f000 bac4 b.w 8021de0 <__retarget_lock_init_recursive> - 8021858: bd10 pop {r4, pc} - 802185a: bf00 nop - 802185c: 08021add .word 0x08021add - 8021860: 08021aff .word 0x08021aff - 8021864: 08021b37 .word 0x08021b37 - 8021868: 08021b5b .word 0x08021b5b - 802186c: 2401a5e8 .word 0x2401a5e8 - -08021870 : - 8021870: 4a02 ldr r2, [pc, #8] ; (802187c ) - 8021872: 4903 ldr r1, [pc, #12] ; (8021880 ) - 8021874: 4803 ldr r0, [pc, #12] ; (8021884 ) - 8021876: f000 b869 b.w 802194c <_fwalk_sglue> - 802187a: bf00 nop - 802187c: 24000048 .word 0x24000048 - 8021880: 080229a5 .word 0x080229a5 - 8021884: 24000054 .word 0x24000054 - -08021888 : - 8021888: 6841 ldr r1, [r0, #4] - 802188a: 4b0c ldr r3, [pc, #48] ; (80218bc ) - 802188c: 4299 cmp r1, r3 - 802188e: b510 push {r4, lr} - 8021890: 4604 mov r4, r0 - 8021892: d001 beq.n 8021898 - 8021894: f001 f886 bl 80229a4 <_fflush_r> - 8021898: 68a1 ldr r1, [r4, #8] - 802189a: 4b09 ldr r3, [pc, #36] ; (80218c0 ) - 802189c: 4299 cmp r1, r3 - 802189e: d002 beq.n 80218a6 - 80218a0: 4620 mov r0, r4 - 80218a2: f001 f87f bl 80229a4 <_fflush_r> - 80218a6: 68e1 ldr r1, [r4, #12] - 80218a8: 4b06 ldr r3, [pc, #24] ; (80218c4 ) - 80218aa: 4299 cmp r1, r3 - 80218ac: d004 beq.n 80218b8 - 80218ae: 4620 mov r0, r4 - 80218b0: e8bd 4010 ldmia.w sp!, {r4, lr} - 80218b4: f001 b876 b.w 80229a4 <_fflush_r> - 80218b8: bd10 pop {r4, pc} - 80218ba: bf00 nop - 80218bc: 2401a5e8 .word 0x2401a5e8 - 80218c0: 2401a650 .word 0x2401a650 - 80218c4: 2401a6b8 .word 0x2401a6b8 - -080218c8 : - 80218c8: b510 push {r4, lr} - 80218ca: 4b0b ldr r3, [pc, #44] ; (80218f8 ) - 80218cc: 4c0b ldr r4, [pc, #44] ; (80218fc ) - 80218ce: 4a0c ldr r2, [pc, #48] ; (8021900 ) - 80218d0: 601a str r2, [r3, #0] - 80218d2: 4620 mov r0, r4 - 80218d4: 2200 movs r2, #0 - 80218d6: 2104 movs r1, #4 - 80218d8: f7ff ff94 bl 8021804 - 80218dc: f104 0068 add.w r0, r4, #104 ; 0x68 - 80218e0: 2201 movs r2, #1 - 80218e2: 2109 movs r1, #9 - 80218e4: f7ff ff8e bl 8021804 - 80218e8: f104 00d0 add.w r0, r4, #208 ; 0xd0 - 80218ec: 2202 movs r2, #2 - 80218ee: e8bd 4010 ldmia.w sp!, {r4, lr} - 80218f2: 2112 movs r1, #18 - 80218f4: f7ff bf86 b.w 8021804 - 80218f8: 2401a720 .word 0x2401a720 - 80218fc: 2401a5e8 .word 0x2401a5e8 - 8021900: 08021871 .word 0x08021871 - -08021904 <__sfp_lock_acquire>: - 8021904: 4801 ldr r0, [pc, #4] ; (802190c <__sfp_lock_acquire+0x8>) - 8021906: f000 ba6c b.w 8021de2 <__retarget_lock_acquire_recursive> - 802190a: bf00 nop - 802190c: 2401a725 .word 0x2401a725 - -08021910 <__sfp_lock_release>: - 8021910: 4801 ldr r0, [pc, #4] ; (8021918 <__sfp_lock_release+0x8>) - 8021912: f000 ba67 b.w 8021de4 <__retarget_lock_release_recursive> - 8021916: bf00 nop - 8021918: 2401a725 .word 0x2401a725 - -0802191c <__sinit>: - 802191c: b510 push {r4, lr} - 802191e: 4604 mov r4, r0 - 8021920: f7ff fff0 bl 8021904 <__sfp_lock_acquire> - 8021924: 6a23 ldr r3, [r4, #32] - 8021926: b11b cbz r3, 8021930 <__sinit+0x14> - 8021928: e8bd 4010 ldmia.w sp!, {r4, lr} - 802192c: f7ff bff0 b.w 8021910 <__sfp_lock_release> - 8021930: 4b04 ldr r3, [pc, #16] ; (8021944 <__sinit+0x28>) - 8021932: 6223 str r3, [r4, #32] - 8021934: 4b04 ldr r3, [pc, #16] ; (8021948 <__sinit+0x2c>) - 8021936: 681b ldr r3, [r3, #0] - 8021938: 2b00 cmp r3, #0 - 802193a: d1f5 bne.n 8021928 <__sinit+0xc> - 802193c: f7ff ffc4 bl 80218c8 - 8021940: e7f2 b.n 8021928 <__sinit+0xc> - 8021942: bf00 nop - 8021944: 08021889 .word 0x08021889 - 8021948: 2401a720 .word 0x2401a720 - -0802194c <_fwalk_sglue>: - 802194c: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} - 8021950: 4607 mov r7, r0 - 8021952: 4688 mov r8, r1 - 8021954: 4614 mov r4, r2 - 8021956: 2600 movs r6, #0 - 8021958: e9d4 9501 ldrd r9, r5, [r4, #4] - 802195c: f1b9 0901 subs.w r9, r9, #1 - 8021960: d505 bpl.n 802196e <_fwalk_sglue+0x22> - 8021962: 6824 ldr r4, [r4, #0] - 8021964: 2c00 cmp r4, #0 - 8021966: d1f7 bne.n 8021958 <_fwalk_sglue+0xc> - 8021968: 4630 mov r0, r6 - 802196a: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} - 802196e: 89ab ldrh r3, [r5, #12] - 8021970: 2b01 cmp r3, #1 - 8021972: d907 bls.n 8021984 <_fwalk_sglue+0x38> - 8021974: f9b5 300e ldrsh.w r3, [r5, #14] - 8021978: 3301 adds r3, #1 - 802197a: d003 beq.n 8021984 <_fwalk_sglue+0x38> - 802197c: 4629 mov r1, r5 - 802197e: 4638 mov r0, r7 - 8021980: 47c0 blx r8 - 8021982: 4306 orrs r6, r0 - 8021984: 3568 adds r5, #104 ; 0x68 - 8021986: e7e9 b.n 802195c <_fwalk_sglue+0x10> - -08021988 : - 8021988: b40f push {r0, r1, r2, r3} - 802198a: b507 push {r0, r1, r2, lr} - 802198c: 4906 ldr r1, [pc, #24] ; (80219a8 ) - 802198e: ab04 add r3, sp, #16 - 8021990: 6808 ldr r0, [r1, #0] - 8021992: f853 2b04 ldr.w r2, [r3], #4 - 8021996: 6881 ldr r1, [r0, #8] - 8021998: 9301 str r3, [sp, #4] - 802199a: f000 fcd3 bl 8022344 <_vfiprintf_r> - 802199e: b003 add sp, #12 - 80219a0: f85d eb04 ldr.w lr, [sp], #4 - 80219a4: b004 add sp, #16 - 80219a6: 4770 bx lr - 80219a8: 240000a0 .word 0x240000a0 - -080219ac : - 80219ac: 4b02 ldr r3, [pc, #8] ; (80219b8 ) - 80219ae: 4601 mov r1, r0 - 80219b0: 6818 ldr r0, [r3, #0] - 80219b2: 6882 ldr r2, [r0, #8] - 80219b4: f001 b892 b.w 8022adc <_putc_r> - 80219b8: 240000a0 .word 0x240000a0 - -080219bc <_puts_r>: - 80219bc: 6a03 ldr r3, [r0, #32] - 80219be: b570 push {r4, r5, r6, lr} - 80219c0: 6884 ldr r4, [r0, #8] - 80219c2: 4605 mov r5, r0 - 80219c4: 460e mov r6, r1 - 80219c6: b90b cbnz r3, 80219cc <_puts_r+0x10> - 80219c8: f7ff ffa8 bl 802191c <__sinit> - 80219cc: 6e63 ldr r3, [r4, #100] ; 0x64 - 80219ce: 07db lsls r3, r3, #31 - 80219d0: d405 bmi.n 80219de <_puts_r+0x22> - 80219d2: 89a3 ldrh r3, [r4, #12] - 80219d4: 0598 lsls r0, r3, #22 - 80219d6: d402 bmi.n 80219de <_puts_r+0x22> - 80219d8: 6da0 ldr r0, [r4, #88] ; 0x58 - 80219da: f000 fa02 bl 8021de2 <__retarget_lock_acquire_recursive> - 80219de: 89a3 ldrh r3, [r4, #12] - 80219e0: 0719 lsls r1, r3, #28 - 80219e2: d513 bpl.n 8021a0c <_puts_r+0x50> - 80219e4: 6923 ldr r3, [r4, #16] - 80219e6: b18b cbz r3, 8021a0c <_puts_r+0x50> - 80219e8: 3e01 subs r6, #1 - 80219ea: 68a3 ldr r3, [r4, #8] - 80219ec: f816 1f01 ldrb.w r1, [r6, #1]! - 80219f0: 3b01 subs r3, #1 - 80219f2: 60a3 str r3, [r4, #8] - 80219f4: b9e9 cbnz r1, 8021a32 <_puts_r+0x76> - 80219f6: 2b00 cmp r3, #0 - 80219f8: da2e bge.n 8021a58 <_puts_r+0x9c> - 80219fa: 4622 mov r2, r4 - 80219fc: 210a movs r1, #10 - 80219fe: 4628 mov r0, r5 - 8021a00: f000 f8af bl 8021b62 <__swbuf_r> - 8021a04: 3001 adds r0, #1 - 8021a06: d007 beq.n 8021a18 <_puts_r+0x5c> - 8021a08: 250a movs r5, #10 - 8021a0a: e007 b.n 8021a1c <_puts_r+0x60> - 8021a0c: 4621 mov r1, r4 - 8021a0e: 4628 mov r0, r5 - 8021a10: f000 f8e4 bl 8021bdc <__swsetup_r> - 8021a14: 2800 cmp r0, #0 - 8021a16: d0e7 beq.n 80219e8 <_puts_r+0x2c> - 8021a18: f04f 35ff mov.w r5, #4294967295 - 8021a1c: 6e63 ldr r3, [r4, #100] ; 0x64 - 8021a1e: 07da lsls r2, r3, #31 - 8021a20: d405 bmi.n 8021a2e <_puts_r+0x72> - 8021a22: 89a3 ldrh r3, [r4, #12] - 8021a24: 059b lsls r3, r3, #22 - 8021a26: d402 bmi.n 8021a2e <_puts_r+0x72> - 8021a28: 6da0 ldr r0, [r4, #88] ; 0x58 - 8021a2a: f000 f9db bl 8021de4 <__retarget_lock_release_recursive> - 8021a2e: 4628 mov r0, r5 - 8021a30: bd70 pop {r4, r5, r6, pc} - 8021a32: 2b00 cmp r3, #0 - 8021a34: da04 bge.n 8021a40 <_puts_r+0x84> - 8021a36: 69a2 ldr r2, [r4, #24] - 8021a38: 429a cmp r2, r3 - 8021a3a: dc06 bgt.n 8021a4a <_puts_r+0x8e> - 8021a3c: 290a cmp r1, #10 - 8021a3e: d004 beq.n 8021a4a <_puts_r+0x8e> - 8021a40: 6823 ldr r3, [r4, #0] - 8021a42: 1c5a adds r2, r3, #1 - 8021a44: 6022 str r2, [r4, #0] - 8021a46: 7019 strb r1, [r3, #0] - 8021a48: e7cf b.n 80219ea <_puts_r+0x2e> - 8021a4a: 4622 mov r2, r4 - 8021a4c: 4628 mov r0, r5 - 8021a4e: f000 f888 bl 8021b62 <__swbuf_r> - 8021a52: 3001 adds r0, #1 - 8021a54: d1c9 bne.n 80219ea <_puts_r+0x2e> - 8021a56: e7df b.n 8021a18 <_puts_r+0x5c> - 8021a58: 6823 ldr r3, [r4, #0] - 8021a5a: 250a movs r5, #10 - 8021a5c: 1c5a adds r2, r3, #1 - 8021a5e: 6022 str r2, [r4, #0] - 8021a60: 701d strb r5, [r3, #0] - 8021a62: e7db b.n 8021a1c <_puts_r+0x60> - -08021a64 : - 8021a64: 4b02 ldr r3, [pc, #8] ; (8021a70 ) - 8021a66: 4601 mov r1, r0 - 8021a68: 6818 ldr r0, [r3, #0] - 8021a6a: f7ff bfa7 b.w 80219bc <_puts_r> - 8021a6e: bf00 nop - 8021a70: 240000a0 .word 0x240000a0 - -08021a74 : - 8021a74: b40c push {r2, r3} - 8021a76: b530 push {r4, r5, lr} - 8021a78: 4b17 ldr r3, [pc, #92] ; (8021ad8 ) - 8021a7a: 1e0c subs r4, r1, #0 - 8021a7c: 681d ldr r5, [r3, #0] - 8021a7e: b09d sub sp, #116 ; 0x74 - 8021a80: da08 bge.n 8021a94 - 8021a82: 238b movs r3, #139 ; 0x8b - 8021a84: 602b str r3, [r5, #0] - 8021a86: f04f 30ff mov.w r0, #4294967295 - 8021a8a: b01d add sp, #116 ; 0x74 - 8021a8c: e8bd 4030 ldmia.w sp!, {r4, r5, lr} - 8021a90: b002 add sp, #8 - 8021a92: 4770 bx lr - 8021a94: f44f 7302 mov.w r3, #520 ; 0x208 - 8021a98: f8ad 3014 strh.w r3, [sp, #20] - 8021a9c: bf14 ite ne - 8021a9e: f104 33ff addne.w r3, r4, #4294967295 - 8021aa2: 4623 moveq r3, r4 - 8021aa4: 9304 str r3, [sp, #16] - 8021aa6: 9307 str r3, [sp, #28] - 8021aa8: f64f 73ff movw r3, #65535 ; 0xffff - 8021aac: 9002 str r0, [sp, #8] - 8021aae: 9006 str r0, [sp, #24] - 8021ab0: f8ad 3016 strh.w r3, [sp, #22] - 8021ab4: 9a20 ldr r2, [sp, #128] ; 0x80 - 8021ab6: ab21 add r3, sp, #132 ; 0x84 - 8021ab8: a902 add r1, sp, #8 - 8021aba: 4628 mov r0, r5 - 8021abc: 9301 str r3, [sp, #4] - 8021abe: f000 fb19 bl 80220f4 <_svfiprintf_r> - 8021ac2: 1c43 adds r3, r0, #1 - 8021ac4: bfbc itt lt - 8021ac6: 238b movlt r3, #139 ; 0x8b - 8021ac8: 602b strlt r3, [r5, #0] - 8021aca: 2c00 cmp r4, #0 - 8021acc: d0dd beq.n 8021a8a - 8021ace: 9b02 ldr r3, [sp, #8] - 8021ad0: 2200 movs r2, #0 - 8021ad2: 701a strb r2, [r3, #0] - 8021ad4: e7d9 b.n 8021a8a - 8021ad6: bf00 nop - 8021ad8: 240000a0 .word 0x240000a0 - -08021adc <__sread>: - 8021adc: b510 push {r4, lr} - 8021ade: 460c mov r4, r1 - 8021ae0: f9b1 100e ldrsh.w r1, [r1, #14] - 8021ae4: f000 f934 bl 8021d50 <_read_r> - 8021ae8: 2800 cmp r0, #0 - 8021aea: bfab itete ge - 8021aec: 6d63 ldrge r3, [r4, #84] ; 0x54 - 8021aee: 89a3 ldrhlt r3, [r4, #12] - 8021af0: 181b addge r3, r3, r0 - 8021af2: f423 5380 biclt.w r3, r3, #4096 ; 0x1000 - 8021af6: bfac ite ge - 8021af8: 6563 strge r3, [r4, #84] ; 0x54 - 8021afa: 81a3 strhlt r3, [r4, #12] - 8021afc: bd10 pop {r4, pc} - -08021afe <__swrite>: - 8021afe: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} - 8021b02: 461f mov r7, r3 - 8021b04: 898b ldrh r3, [r1, #12] - 8021b06: 05db lsls r3, r3, #23 - 8021b08: 4605 mov r5, r0 - 8021b0a: 460c mov r4, r1 - 8021b0c: 4616 mov r6, r2 - 8021b0e: d505 bpl.n 8021b1c <__swrite+0x1e> - 8021b10: f9b1 100e ldrsh.w r1, [r1, #14] - 8021b14: 2302 movs r3, #2 - 8021b16: 2200 movs r2, #0 - 8021b18: f000 f908 bl 8021d2c <_lseek_r> - 8021b1c: 89a3 ldrh r3, [r4, #12] - 8021b1e: f9b4 100e ldrsh.w r1, [r4, #14] - 8021b22: f423 5380 bic.w r3, r3, #4096 ; 0x1000 - 8021b26: 81a3 strh r3, [r4, #12] - 8021b28: 4632 mov r2, r6 - 8021b2a: 463b mov r3, r7 - 8021b2c: 4628 mov r0, r5 - 8021b2e: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr} - 8021b32: f000 b91f b.w 8021d74 <_write_r> - -08021b36 <__sseek>: - 8021b36: b510 push {r4, lr} - 8021b38: 460c mov r4, r1 - 8021b3a: f9b1 100e ldrsh.w r1, [r1, #14] - 8021b3e: f000 f8f5 bl 8021d2c <_lseek_r> - 8021b42: 1c43 adds r3, r0, #1 - 8021b44: 89a3 ldrh r3, [r4, #12] - 8021b46: bf15 itete ne - 8021b48: 6560 strne r0, [r4, #84] ; 0x54 - 8021b4a: f423 5380 biceq.w r3, r3, #4096 ; 0x1000 - 8021b4e: f443 5380 orrne.w r3, r3, #4096 ; 0x1000 - 8021b52: 81a3 strheq r3, [r4, #12] - 8021b54: bf18 it ne - 8021b56: 81a3 strhne r3, [r4, #12] - 8021b58: bd10 pop {r4, pc} - -08021b5a <__sclose>: - 8021b5a: f9b1 100e ldrsh.w r1, [r1, #14] - 8021b5e: f000 b8d5 b.w 8021d0c <_close_r> - -08021b62 <__swbuf_r>: - 8021b62: b5f8 push {r3, r4, r5, r6, r7, lr} - 8021b64: 460e mov r6, r1 - 8021b66: 4614 mov r4, r2 - 8021b68: 4605 mov r5, r0 - 8021b6a: b118 cbz r0, 8021b74 <__swbuf_r+0x12> - 8021b6c: 6a03 ldr r3, [r0, #32] - 8021b6e: b90b cbnz r3, 8021b74 <__swbuf_r+0x12> - 8021b70: f7ff fed4 bl 802191c <__sinit> - 8021b74: 69a3 ldr r3, [r4, #24] - 8021b76: 60a3 str r3, [r4, #8] - 8021b78: 89a3 ldrh r3, [r4, #12] - 8021b7a: 071a lsls r2, r3, #28 - 8021b7c: d525 bpl.n 8021bca <__swbuf_r+0x68> - 8021b7e: 6923 ldr r3, [r4, #16] - 8021b80: b31b cbz r3, 8021bca <__swbuf_r+0x68> - 8021b82: 6823 ldr r3, [r4, #0] - 8021b84: 6922 ldr r2, [r4, #16] - 8021b86: 1a98 subs r0, r3, r2 - 8021b88: 6963 ldr r3, [r4, #20] - 8021b8a: b2f6 uxtb r6, r6 - 8021b8c: 4283 cmp r3, r0 - 8021b8e: 4637 mov r7, r6 - 8021b90: dc04 bgt.n 8021b9c <__swbuf_r+0x3a> - 8021b92: 4621 mov r1, r4 - 8021b94: 4628 mov r0, r5 - 8021b96: f000 ff05 bl 80229a4 <_fflush_r> - 8021b9a: b9e0 cbnz r0, 8021bd6 <__swbuf_r+0x74> - 8021b9c: 68a3 ldr r3, [r4, #8] - 8021b9e: 3b01 subs r3, #1 - 8021ba0: 60a3 str r3, [r4, #8] - 8021ba2: 6823 ldr r3, [r4, #0] - 8021ba4: 1c5a adds r2, r3, #1 - 8021ba6: 6022 str r2, [r4, #0] - 8021ba8: 701e strb r6, [r3, #0] - 8021baa: 6962 ldr r2, [r4, #20] - 8021bac: 1c43 adds r3, r0, #1 - 8021bae: 429a cmp r2, r3 - 8021bb0: d004 beq.n 8021bbc <__swbuf_r+0x5a> - 8021bb2: 89a3 ldrh r3, [r4, #12] - 8021bb4: 07db lsls r3, r3, #31 - 8021bb6: d506 bpl.n 8021bc6 <__swbuf_r+0x64> - 8021bb8: 2e0a cmp r6, #10 - 8021bba: d104 bne.n 8021bc6 <__swbuf_r+0x64> - 8021bbc: 4621 mov r1, r4 - 8021bbe: 4628 mov r0, r5 - 8021bc0: f000 fef0 bl 80229a4 <_fflush_r> - 8021bc4: b938 cbnz r0, 8021bd6 <__swbuf_r+0x74> - 8021bc6: 4638 mov r0, r7 - 8021bc8: bdf8 pop {r3, r4, r5, r6, r7, pc} - 8021bca: 4621 mov r1, r4 - 8021bcc: 4628 mov r0, r5 - 8021bce: f000 f805 bl 8021bdc <__swsetup_r> - 8021bd2: 2800 cmp r0, #0 - 8021bd4: d0d5 beq.n 8021b82 <__swbuf_r+0x20> - 8021bd6: f04f 37ff mov.w r7, #4294967295 - 8021bda: e7f4 b.n 8021bc6 <__swbuf_r+0x64> - -08021bdc <__swsetup_r>: - 8021bdc: b538 push {r3, r4, r5, lr} - 8021bde: 4b2a ldr r3, [pc, #168] ; (8021c88 <__swsetup_r+0xac>) - 8021be0: 4605 mov r5, r0 - 8021be2: 6818 ldr r0, [r3, #0] - 8021be4: 460c mov r4, r1 - 8021be6: b118 cbz r0, 8021bf0 <__swsetup_r+0x14> - 8021be8: 6a03 ldr r3, [r0, #32] - 8021bea: b90b cbnz r3, 8021bf0 <__swsetup_r+0x14> - 8021bec: f7ff fe96 bl 802191c <__sinit> - 8021bf0: 89a3 ldrh r3, [r4, #12] - 8021bf2: f9b4 200c ldrsh.w r2, [r4, #12] - 8021bf6: 0718 lsls r0, r3, #28 - 8021bf8: d422 bmi.n 8021c40 <__swsetup_r+0x64> - 8021bfa: 06d9 lsls r1, r3, #27 - 8021bfc: d407 bmi.n 8021c0e <__swsetup_r+0x32> - 8021bfe: 2309 movs r3, #9 - 8021c00: 602b str r3, [r5, #0] - 8021c02: f042 0340 orr.w r3, r2, #64 ; 0x40 - 8021c06: 81a3 strh r3, [r4, #12] - 8021c08: f04f 30ff mov.w r0, #4294967295 - 8021c0c: e034 b.n 8021c78 <__swsetup_r+0x9c> - 8021c0e: 0758 lsls r0, r3, #29 - 8021c10: d512 bpl.n 8021c38 <__swsetup_r+0x5c> - 8021c12: 6b61 ldr r1, [r4, #52] ; 0x34 - 8021c14: b141 cbz r1, 8021c28 <__swsetup_r+0x4c> - 8021c16: f104 0344 add.w r3, r4, #68 ; 0x44 - 8021c1a: 4299 cmp r1, r3 - 8021c1c: d002 beq.n 8021c24 <__swsetup_r+0x48> - 8021c1e: 4628 mov r0, r5 - 8021c20: f000 f90e bl 8021e40 <_free_r> - 8021c24: 2300 movs r3, #0 - 8021c26: 6363 str r3, [r4, #52] ; 0x34 - 8021c28: 89a3 ldrh r3, [r4, #12] - 8021c2a: f023 0324 bic.w r3, r3, #36 ; 0x24 - 8021c2e: 81a3 strh r3, [r4, #12] - 8021c30: 2300 movs r3, #0 - 8021c32: 6063 str r3, [r4, #4] - 8021c34: 6923 ldr r3, [r4, #16] - 8021c36: 6023 str r3, [r4, #0] - 8021c38: 89a3 ldrh r3, [r4, #12] - 8021c3a: f043 0308 orr.w r3, r3, #8 - 8021c3e: 81a3 strh r3, [r4, #12] - 8021c40: 6923 ldr r3, [r4, #16] - 8021c42: b94b cbnz r3, 8021c58 <__swsetup_r+0x7c> - 8021c44: 89a3 ldrh r3, [r4, #12] - 8021c46: f403 7320 and.w r3, r3, #640 ; 0x280 - 8021c4a: f5b3 7f00 cmp.w r3, #512 ; 0x200 - 8021c4e: d003 beq.n 8021c58 <__swsetup_r+0x7c> - 8021c50: 4621 mov r1, r4 - 8021c52: 4628 mov r0, r5 - 8021c54: f000 ff06 bl 8022a64 <__smakebuf_r> - 8021c58: 89a0 ldrh r0, [r4, #12] - 8021c5a: f9b4 200c ldrsh.w r2, [r4, #12] - 8021c5e: f010 0301 ands.w r3, r0, #1 - 8021c62: d00a beq.n 8021c7a <__swsetup_r+0x9e> - 8021c64: 2300 movs r3, #0 - 8021c66: 60a3 str r3, [r4, #8] - 8021c68: 6963 ldr r3, [r4, #20] - 8021c6a: 425b negs r3, r3 - 8021c6c: 61a3 str r3, [r4, #24] - 8021c6e: 6923 ldr r3, [r4, #16] - 8021c70: b943 cbnz r3, 8021c84 <__swsetup_r+0xa8> - 8021c72: f010 0080 ands.w r0, r0, #128 ; 0x80 - 8021c76: d1c4 bne.n 8021c02 <__swsetup_r+0x26> - 8021c78: bd38 pop {r3, r4, r5, pc} - 8021c7a: 0781 lsls r1, r0, #30 - 8021c7c: bf58 it pl - 8021c7e: 6963 ldrpl r3, [r4, #20] - 8021c80: 60a3 str r3, [r4, #8] - 8021c82: e7f4 b.n 8021c6e <__swsetup_r+0x92> - 8021c84: 2000 movs r0, #0 - 8021c86: e7f7 b.n 8021c78 <__swsetup_r+0x9c> - 8021c88: 240000a0 .word 0x240000a0 - -08021c8c : - 8021c8c: b510 push {r4, lr} - 8021c8e: 3901 subs r1, #1 - 8021c90: 4402 add r2, r0 - 8021c92: 4290 cmp r0, r2 - 8021c94: d101 bne.n 8021c9a - 8021c96: 2000 movs r0, #0 - 8021c98: e005 b.n 8021ca6 - 8021c9a: 7803 ldrb r3, [r0, #0] - 8021c9c: f811 4f01 ldrb.w r4, [r1, #1]! - 8021ca0: 42a3 cmp r3, r4 - 8021ca2: d001 beq.n 8021ca8 - 8021ca4: 1b18 subs r0, r3, r4 - 8021ca6: bd10 pop {r4, pc} - 8021ca8: 3001 adds r0, #1 - 8021caa: e7f2 b.n 8021c92 - -08021cac : - 8021cac: 4288 cmp r0, r1 - 8021cae: b510 push {r4, lr} - 8021cb0: eb01 0402 add.w r4, r1, r2 - 8021cb4: d902 bls.n 8021cbc - 8021cb6: 4284 cmp r4, r0 - 8021cb8: 4623 mov r3, r4 - 8021cba: d807 bhi.n 8021ccc - 8021cbc: 1e43 subs r3, r0, #1 - 8021cbe: 42a1 cmp r1, r4 - 8021cc0: d008 beq.n 8021cd4 - 8021cc2: f811 2b01 ldrb.w r2, [r1], #1 - 8021cc6: f803 2f01 strb.w r2, [r3, #1]! - 8021cca: e7f8 b.n 8021cbe - 8021ccc: 4402 add r2, r0 - 8021cce: 4601 mov r1, r0 - 8021cd0: 428a cmp r2, r1 - 8021cd2: d100 bne.n 8021cd6 - 8021cd4: bd10 pop {r4, pc} - 8021cd6: f813 4d01 ldrb.w r4, [r3, #-1]! - 8021cda: f802 4d01 strb.w r4, [r2, #-1]! - 8021cde: e7f7 b.n 8021cd0 - -08021ce0 : - 8021ce0: 4402 add r2, r0 - 8021ce2: 4603 mov r3, r0 - 8021ce4: 4293 cmp r3, r2 - 8021ce6: d100 bne.n 8021cea - 8021ce8: 4770 bx lr - 8021cea: f803 1b01 strb.w r1, [r3], #1 - 8021cee: e7f9 b.n 8021ce4 - -08021cf0 : - 8021cf0: b2c9 uxtb r1, r1 - 8021cf2: 4603 mov r3, r0 - 8021cf4: f810 2b01 ldrb.w r2, [r0], #1 - 8021cf8: b11a cbz r2, 8021d02 - 8021cfa: 428a cmp r2, r1 - 8021cfc: d1f9 bne.n 8021cf2 - 8021cfe: 4618 mov r0, r3 - 8021d00: 4770 bx lr - 8021d02: 2900 cmp r1, #0 - 8021d04: bf18 it ne - 8021d06: 2300 movne r3, #0 - 8021d08: e7f9 b.n 8021cfe - ... - -08021d0c <_close_r>: - 8021d0c: b538 push {r3, r4, r5, lr} - 8021d0e: 4d06 ldr r5, [pc, #24] ; (8021d28 <_close_r+0x1c>) - 8021d10: 2300 movs r3, #0 - 8021d12: 4604 mov r4, r0 - 8021d14: 4608 mov r0, r1 - 8021d16: 602b str r3, [r5, #0] - 8021d18: f7e0 f855 bl 8001dc6 <_close> - 8021d1c: 1c43 adds r3, r0, #1 - 8021d1e: d102 bne.n 8021d26 <_close_r+0x1a> - 8021d20: 682b ldr r3, [r5, #0] - 8021d22: b103 cbz r3, 8021d26 <_close_r+0x1a> - 8021d24: 6023 str r3, [r4, #0] - 8021d26: bd38 pop {r3, r4, r5, pc} - 8021d28: 2401a5e0 .word 0x2401a5e0 - -08021d2c <_lseek_r>: - 8021d2c: b538 push {r3, r4, r5, lr} - 8021d2e: 4d07 ldr r5, [pc, #28] ; (8021d4c <_lseek_r+0x20>) - 8021d30: 4604 mov r4, r0 - 8021d32: 4608 mov r0, r1 - 8021d34: 4611 mov r1, r2 - 8021d36: 2200 movs r2, #0 - 8021d38: 602a str r2, [r5, #0] - 8021d3a: 461a mov r2, r3 - 8021d3c: f7e0 f86a bl 8001e14 <_lseek> - 8021d40: 1c43 adds r3, r0, #1 - 8021d42: d102 bne.n 8021d4a <_lseek_r+0x1e> - 8021d44: 682b ldr r3, [r5, #0] - 8021d46: b103 cbz r3, 8021d4a <_lseek_r+0x1e> - 8021d48: 6023 str r3, [r4, #0] - 8021d4a: bd38 pop {r3, r4, r5, pc} - 8021d4c: 2401a5e0 .word 0x2401a5e0 - -08021d50 <_read_r>: - 8021d50: b538 push {r3, r4, r5, lr} - 8021d52: 4d07 ldr r5, [pc, #28] ; (8021d70 <_read_r+0x20>) - 8021d54: 4604 mov r4, r0 - 8021d56: 4608 mov r0, r1 - 8021d58: 4611 mov r1, r2 - 8021d5a: 2200 movs r2, #0 - 8021d5c: 602a str r2, [r5, #0] - 8021d5e: 461a mov r2, r3 - 8021d60: f7e0 f814 bl 8001d8c <_read> - 8021d64: 1c43 adds r3, r0, #1 - 8021d66: d102 bne.n 8021d6e <_read_r+0x1e> - 8021d68: 682b ldr r3, [r5, #0] - 8021d6a: b103 cbz r3, 8021d6e <_read_r+0x1e> - 8021d6c: 6023 str r3, [r4, #0] - 8021d6e: bd38 pop {r3, r4, r5, pc} - 8021d70: 2401a5e0 .word 0x2401a5e0 - -08021d74 <_write_r>: - 8021d74: b538 push {r3, r4, r5, lr} - 8021d76: 4d07 ldr r5, [pc, #28] ; (8021d94 <_write_r+0x20>) - 8021d78: 4604 mov r4, r0 - 8021d7a: 4608 mov r0, r1 - 8021d7c: 4611 mov r1, r2 - 8021d7e: 2200 movs r2, #0 - 8021d80: 602a str r2, [r5, #0] - 8021d82: 461a mov r2, r3 - 8021d84: f7de fd11 bl 80007aa <_write> - 8021d88: 1c43 adds r3, r0, #1 - 8021d8a: d102 bne.n 8021d92 <_write_r+0x1e> - 8021d8c: 682b ldr r3, [r5, #0] - 8021d8e: b103 cbz r3, 8021d92 <_write_r+0x1e> - 8021d90: 6023 str r3, [r4, #0] - 8021d92: bd38 pop {r3, r4, r5, pc} - 8021d94: 2401a5e0 .word 0x2401a5e0 - -08021d98 <__libc_init_array>: - 8021d98: b570 push {r4, r5, r6, lr} - 8021d9a: 4d0d ldr r5, [pc, #52] ; (8021dd0 <__libc_init_array+0x38>) - 8021d9c: 4c0d ldr r4, [pc, #52] ; (8021dd4 <__libc_init_array+0x3c>) - 8021d9e: 1b64 subs r4, r4, r5 - 8021da0: 10a4 asrs r4, r4, #2 - 8021da2: 2600 movs r6, #0 - 8021da4: 42a6 cmp r6, r4 - 8021da6: d109 bne.n 8021dbc <__libc_init_array+0x24> - 8021da8: 4d0b ldr r5, [pc, #44] ; (8021dd8 <__libc_init_array+0x40>) - 8021daa: 4c0c ldr r4, [pc, #48] ; (8021ddc <__libc_init_array+0x44>) - 8021dac: f000 ff7e bl 8022cac <_init> - 8021db0: 1b64 subs r4, r4, r5 - 8021db2: 10a4 asrs r4, r4, #2 - 8021db4: 2600 movs r6, #0 - 8021db6: 42a6 cmp r6, r4 - 8021db8: d105 bne.n 8021dc6 <__libc_init_array+0x2e> - 8021dba: bd70 pop {r4, r5, r6, pc} - 8021dbc: f855 3b04 ldr.w r3, [r5], #4 - 8021dc0: 4798 blx r3 - 8021dc2: 3601 adds r6, #1 - 8021dc4: e7ee b.n 8021da4 <__libc_init_array+0xc> - 8021dc6: f855 3b04 ldr.w r3, [r5], #4 - 8021dca: 4798 blx r3 - 8021dcc: 3601 adds r6, #1 - 8021dce: e7f2 b.n 8021db6 <__libc_init_array+0x1e> - 8021dd0: 08026ef0 .word 0x08026ef0 - 8021dd4: 08026ef0 .word 0x08026ef0 - 8021dd8: 08026ef0 .word 0x08026ef0 - 8021ddc: 08026ef4 .word 0x08026ef4 - -08021de0 <__retarget_lock_init_recursive>: - 8021de0: 4770 bx lr - -08021de2 <__retarget_lock_acquire_recursive>: - 8021de2: 4770 bx lr - -08021de4 <__retarget_lock_release_recursive>: - 8021de4: 4770 bx lr - -08021de6 : - 8021de6: 440a add r2, r1 - 8021de8: 4291 cmp r1, r2 - 8021dea: f100 33ff add.w r3, r0, #4294967295 - 8021dee: d100 bne.n 8021df2 - 8021df0: 4770 bx lr - 8021df2: b510 push {r4, lr} - 8021df4: f811 4b01 ldrb.w r4, [r1], #1 - 8021df8: f803 4f01 strb.w r4, [r3, #1]! - 8021dfc: 4291 cmp r1, r2 - 8021dfe: d1f9 bne.n 8021df4 - 8021e00: bd10 pop {r4, pc} - ... - -08021e04 <__assert_func>: - 8021e04: b51f push {r0, r1, r2, r3, r4, lr} - 8021e06: 4614 mov r4, r2 - 8021e08: 461a mov r2, r3 - 8021e0a: 4b09 ldr r3, [pc, #36] ; (8021e30 <__assert_func+0x2c>) - 8021e0c: 681b ldr r3, [r3, #0] - 8021e0e: 4605 mov r5, r0 - 8021e10: 68d8 ldr r0, [r3, #12] - 8021e12: b14c cbz r4, 8021e28 <__assert_func+0x24> - 8021e14: 4b07 ldr r3, [pc, #28] ; (8021e34 <__assert_func+0x30>) - 8021e16: 9100 str r1, [sp, #0] - 8021e18: e9cd 3401 strd r3, r4, [sp, #4] - 8021e1c: 4906 ldr r1, [pc, #24] ; (8021e38 <__assert_func+0x34>) - 8021e1e: 462b mov r3, r5 - 8021e20: f000 fde8 bl 80229f4 - 8021e24: f000 fec0 bl 8022ba8 - 8021e28: 4b04 ldr r3, [pc, #16] ; (8021e3c <__assert_func+0x38>) - 8021e2a: 461c mov r4, r3 - 8021e2c: e7f3 b.n 8021e16 <__assert_func+0x12> - 8021e2e: bf00 nop - 8021e30: 240000a0 .word 0x240000a0 - 8021e34: 08026e78 .word 0x08026e78 - 8021e38: 08026e85 .word 0x08026e85 - 8021e3c: 08026eb3 .word 0x08026eb3 - -08021e40 <_free_r>: - 8021e40: b537 push {r0, r1, r2, r4, r5, lr} - 8021e42: 2900 cmp r1, #0 - 8021e44: d044 beq.n 8021ed0 <_free_r+0x90> - 8021e46: f851 3c04 ldr.w r3, [r1, #-4] - 8021e4a: 9001 str r0, [sp, #4] - 8021e4c: 2b00 cmp r3, #0 - 8021e4e: f1a1 0404 sub.w r4, r1, #4 - 8021e52: bfb8 it lt - 8021e54: 18e4 addlt r4, r4, r3 - 8021e56: f000 f8e7 bl 8022028 <__malloc_lock> - 8021e5a: 4a1e ldr r2, [pc, #120] ; (8021ed4 <_free_r+0x94>) - 8021e5c: 9801 ldr r0, [sp, #4] - 8021e5e: 6813 ldr r3, [r2, #0] - 8021e60: b933 cbnz r3, 8021e70 <_free_r+0x30> - 8021e62: 6063 str r3, [r4, #4] - 8021e64: 6014 str r4, [r2, #0] - 8021e66: b003 add sp, #12 - 8021e68: e8bd 4030 ldmia.w sp!, {r4, r5, lr} - 8021e6c: f000 b8e2 b.w 8022034 <__malloc_unlock> - 8021e70: 42a3 cmp r3, r4 - 8021e72: d908 bls.n 8021e86 <_free_r+0x46> - 8021e74: 6825 ldr r5, [r4, #0] - 8021e76: 1961 adds r1, r4, r5 - 8021e78: 428b cmp r3, r1 - 8021e7a: bf01 itttt eq - 8021e7c: 6819 ldreq r1, [r3, #0] - 8021e7e: 685b ldreq r3, [r3, #4] - 8021e80: 1949 addeq r1, r1, r5 - 8021e82: 6021 streq r1, [r4, #0] - 8021e84: e7ed b.n 8021e62 <_free_r+0x22> - 8021e86: 461a mov r2, r3 - 8021e88: 685b ldr r3, [r3, #4] - 8021e8a: b10b cbz r3, 8021e90 <_free_r+0x50> - 8021e8c: 42a3 cmp r3, r4 - 8021e8e: d9fa bls.n 8021e86 <_free_r+0x46> - 8021e90: 6811 ldr r1, [r2, #0] - 8021e92: 1855 adds r5, r2, r1 - 8021e94: 42a5 cmp r5, r4 - 8021e96: d10b bne.n 8021eb0 <_free_r+0x70> - 8021e98: 6824 ldr r4, [r4, #0] - 8021e9a: 4421 add r1, r4 - 8021e9c: 1854 adds r4, r2, r1 - 8021e9e: 42a3 cmp r3, r4 - 8021ea0: 6011 str r1, [r2, #0] - 8021ea2: d1e0 bne.n 8021e66 <_free_r+0x26> - 8021ea4: 681c ldr r4, [r3, #0] - 8021ea6: 685b ldr r3, [r3, #4] - 8021ea8: 6053 str r3, [r2, #4] - 8021eaa: 440c add r4, r1 - 8021eac: 6014 str r4, [r2, #0] - 8021eae: e7da b.n 8021e66 <_free_r+0x26> - 8021eb0: d902 bls.n 8021eb8 <_free_r+0x78> - 8021eb2: 230c movs r3, #12 - 8021eb4: 6003 str r3, [r0, #0] - 8021eb6: e7d6 b.n 8021e66 <_free_r+0x26> - 8021eb8: 6825 ldr r5, [r4, #0] - 8021eba: 1961 adds r1, r4, r5 - 8021ebc: 428b cmp r3, r1 - 8021ebe: bf04 itt eq - 8021ec0: 6819 ldreq r1, [r3, #0] - 8021ec2: 685b ldreq r3, [r3, #4] - 8021ec4: 6063 str r3, [r4, #4] - 8021ec6: bf04 itt eq - 8021ec8: 1949 addeq r1, r1, r5 - 8021eca: 6021 streq r1, [r4, #0] - 8021ecc: 6054 str r4, [r2, #4] - 8021ece: e7ca b.n 8021e66 <_free_r+0x26> - 8021ed0: b003 add sp, #12 - 8021ed2: bd30 pop {r4, r5, pc} - 8021ed4: 2401a728 .word 0x2401a728 - -08021ed8 : - 8021ed8: 4b02 ldr r3, [pc, #8] ; (8021ee4 ) - 8021eda: 4601 mov r1, r0 - 8021edc: 6818 ldr r0, [r3, #0] - 8021ede: f000 b823 b.w 8021f28 <_malloc_r> - 8021ee2: bf00 nop - 8021ee4: 240000a0 .word 0x240000a0 - -08021ee8 : - 8021ee8: b570 push {r4, r5, r6, lr} - 8021eea: 4e0e ldr r6, [pc, #56] ; (8021f24 ) - 8021eec: 460c mov r4, r1 - 8021eee: 6831 ldr r1, [r6, #0] - 8021ef0: 4605 mov r5, r0 - 8021ef2: b911 cbnz r1, 8021efa - 8021ef4: f000 fe48 bl 8022b88 <_sbrk_r> - 8021ef8: 6030 str r0, [r6, #0] - 8021efa: 4621 mov r1, r4 - 8021efc: 4628 mov r0, r5 - 8021efe: f000 fe43 bl 8022b88 <_sbrk_r> - 8021f02: 1c43 adds r3, r0, #1 - 8021f04: d00a beq.n 8021f1c - 8021f06: 1cc4 adds r4, r0, #3 - 8021f08: f024 0403 bic.w r4, r4, #3 - 8021f0c: 42a0 cmp r0, r4 - 8021f0e: d007 beq.n 8021f20 - 8021f10: 1a21 subs r1, r4, r0 - 8021f12: 4628 mov r0, r5 - 8021f14: f000 fe38 bl 8022b88 <_sbrk_r> - 8021f18: 3001 adds r0, #1 - 8021f1a: d101 bne.n 8021f20 - 8021f1c: f04f 34ff mov.w r4, #4294967295 - 8021f20: 4620 mov r0, r4 - 8021f22: bd70 pop {r4, r5, r6, pc} - 8021f24: 2401a72c .word 0x2401a72c - -08021f28 <_malloc_r>: - 8021f28: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} - 8021f2c: 1ccd adds r5, r1, #3 - 8021f2e: f025 0503 bic.w r5, r5, #3 - 8021f32: 3508 adds r5, #8 - 8021f34: 2d0c cmp r5, #12 - 8021f36: bf38 it cc - 8021f38: 250c movcc r5, #12 - 8021f3a: 2d00 cmp r5, #0 - 8021f3c: 4607 mov r7, r0 - 8021f3e: db01 blt.n 8021f44 <_malloc_r+0x1c> - 8021f40: 42a9 cmp r1, r5 - 8021f42: d905 bls.n 8021f50 <_malloc_r+0x28> - 8021f44: 230c movs r3, #12 - 8021f46: 603b str r3, [r7, #0] - 8021f48: 2600 movs r6, #0 - 8021f4a: 4630 mov r0, r6 - 8021f4c: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} - 8021f50: f8df 80d0 ldr.w r8, [pc, #208] ; 8022024 <_malloc_r+0xfc> - 8021f54: f000 f868 bl 8022028 <__malloc_lock> - 8021f58: f8d8 3000 ldr.w r3, [r8] - 8021f5c: 461c mov r4, r3 - 8021f5e: bb5c cbnz r4, 8021fb8 <_malloc_r+0x90> - 8021f60: 4629 mov r1, r5 - 8021f62: 4638 mov r0, r7 - 8021f64: f7ff ffc0 bl 8021ee8 - 8021f68: 1c43 adds r3, r0, #1 - 8021f6a: 4604 mov r4, r0 - 8021f6c: d155 bne.n 802201a <_malloc_r+0xf2> - 8021f6e: f8d8 4000 ldr.w r4, [r8] - 8021f72: 4626 mov r6, r4 - 8021f74: 2e00 cmp r6, #0 - 8021f76: d145 bne.n 8022004 <_malloc_r+0xdc> - 8021f78: 2c00 cmp r4, #0 - 8021f7a: d048 beq.n 802200e <_malloc_r+0xe6> - 8021f7c: 6823 ldr r3, [r4, #0] - 8021f7e: 4631 mov r1, r6 - 8021f80: 4638 mov r0, r7 - 8021f82: eb04 0903 add.w r9, r4, r3 - 8021f86: f000 fdff bl 8022b88 <_sbrk_r> - 8021f8a: 4581 cmp r9, r0 - 8021f8c: d13f bne.n 802200e <_malloc_r+0xe6> - 8021f8e: 6821 ldr r1, [r4, #0] - 8021f90: 1a6d subs r5, r5, r1 - 8021f92: 4629 mov r1, r5 - 8021f94: 4638 mov r0, r7 - 8021f96: f7ff ffa7 bl 8021ee8 - 8021f9a: 3001 adds r0, #1 - 8021f9c: d037 beq.n 802200e <_malloc_r+0xe6> - 8021f9e: 6823 ldr r3, [r4, #0] - 8021fa0: 442b add r3, r5 - 8021fa2: 6023 str r3, [r4, #0] - 8021fa4: f8d8 3000 ldr.w r3, [r8] - 8021fa8: 2b00 cmp r3, #0 - 8021faa: d038 beq.n 802201e <_malloc_r+0xf6> - 8021fac: 685a ldr r2, [r3, #4] - 8021fae: 42a2 cmp r2, r4 - 8021fb0: d12b bne.n 802200a <_malloc_r+0xe2> - 8021fb2: 2200 movs r2, #0 - 8021fb4: 605a str r2, [r3, #4] - 8021fb6: e00f b.n 8021fd8 <_malloc_r+0xb0> - 8021fb8: 6822 ldr r2, [r4, #0] - 8021fba: 1b52 subs r2, r2, r5 - 8021fbc: d41f bmi.n 8021ffe <_malloc_r+0xd6> - 8021fbe: 2a0b cmp r2, #11 - 8021fc0: d917 bls.n 8021ff2 <_malloc_r+0xca> - 8021fc2: 1961 adds r1, r4, r5 - 8021fc4: 42a3 cmp r3, r4 - 8021fc6: 6025 str r5, [r4, #0] - 8021fc8: bf18 it ne - 8021fca: 6059 strne r1, [r3, #4] - 8021fcc: 6863 ldr r3, [r4, #4] - 8021fce: bf08 it eq - 8021fd0: f8c8 1000 streq.w r1, [r8] - 8021fd4: 5162 str r2, [r4, r5] - 8021fd6: 604b str r3, [r1, #4] - 8021fd8: 4638 mov r0, r7 - 8021fda: f104 060b add.w r6, r4, #11 - 8021fde: f000 f829 bl 8022034 <__malloc_unlock> - 8021fe2: f026 0607 bic.w r6, r6, #7 - 8021fe6: 1d23 adds r3, r4, #4 - 8021fe8: 1af2 subs r2, r6, r3 - 8021fea: d0ae beq.n 8021f4a <_malloc_r+0x22> - 8021fec: 1b9b subs r3, r3, r6 - 8021fee: 50a3 str r3, [r4, r2] - 8021ff0: e7ab b.n 8021f4a <_malloc_r+0x22> - 8021ff2: 42a3 cmp r3, r4 - 8021ff4: 6862 ldr r2, [r4, #4] - 8021ff6: d1dd bne.n 8021fb4 <_malloc_r+0x8c> - 8021ff8: f8c8 2000 str.w r2, [r8] - 8021ffc: e7ec b.n 8021fd8 <_malloc_r+0xb0> - 8021ffe: 4623 mov r3, r4 - 8022000: 6864 ldr r4, [r4, #4] - 8022002: e7ac b.n 8021f5e <_malloc_r+0x36> - 8022004: 4634 mov r4, r6 - 8022006: 6876 ldr r6, [r6, #4] - 8022008: e7b4 b.n 8021f74 <_malloc_r+0x4c> - 802200a: 4613 mov r3, r2 - 802200c: e7cc b.n 8021fa8 <_malloc_r+0x80> - 802200e: 230c movs r3, #12 - 8022010: 603b str r3, [r7, #0] - 8022012: 4638 mov r0, r7 - 8022014: f000 f80e bl 8022034 <__malloc_unlock> - 8022018: e797 b.n 8021f4a <_malloc_r+0x22> - 802201a: 6025 str r5, [r4, #0] - 802201c: e7dc b.n 8021fd8 <_malloc_r+0xb0> - 802201e: 605b str r3, [r3, #4] - 8022020: deff udf #255 ; 0xff - 8022022: bf00 nop - 8022024: 2401a728 .word 0x2401a728 - -08022028 <__malloc_lock>: - 8022028: 4801 ldr r0, [pc, #4] ; (8022030 <__malloc_lock+0x8>) - 802202a: f7ff beda b.w 8021de2 <__retarget_lock_acquire_recursive> - 802202e: bf00 nop - 8022030: 2401a724 .word 0x2401a724 - -08022034 <__malloc_unlock>: - 8022034: 4801 ldr r0, [pc, #4] ; (802203c <__malloc_unlock+0x8>) - 8022036: f7ff bed5 b.w 8021de4 <__retarget_lock_release_recursive> - 802203a: bf00 nop - 802203c: 2401a724 .word 0x2401a724 - -08022040 <__ssputs_r>: - 8022040: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} - 8022044: 688e ldr r6, [r1, #8] - 8022046: 461f mov r7, r3 - 8022048: 42be cmp r6, r7 - 802204a: 680b ldr r3, [r1, #0] - 802204c: 4682 mov sl, r0 - 802204e: 460c mov r4, r1 - 8022050: 4690 mov r8, r2 - 8022052: d82c bhi.n 80220ae <__ssputs_r+0x6e> - 8022054: 898a ldrh r2, [r1, #12] - 8022056: f412 6f90 tst.w r2, #1152 ; 0x480 - 802205a: d026 beq.n 80220aa <__ssputs_r+0x6a> - 802205c: 6965 ldr r5, [r4, #20] - 802205e: 6909 ldr r1, [r1, #16] - 8022060: eb05 0545 add.w r5, r5, r5, lsl #1 - 8022064: eba3 0901 sub.w r9, r3, r1 - 8022068: eb05 75d5 add.w r5, r5, r5, lsr #31 - 802206c: 1c7b adds r3, r7, #1 - 802206e: 444b add r3, r9 - 8022070: 106d asrs r5, r5, #1 - 8022072: 429d cmp r5, r3 - 8022074: bf38 it cc - 8022076: 461d movcc r5, r3 - 8022078: 0553 lsls r3, r2, #21 - 802207a: d527 bpl.n 80220cc <__ssputs_r+0x8c> - 802207c: 4629 mov r1, r5 - 802207e: f7ff ff53 bl 8021f28 <_malloc_r> - 8022082: 4606 mov r6, r0 - 8022084: b360 cbz r0, 80220e0 <__ssputs_r+0xa0> - 8022086: 6921 ldr r1, [r4, #16] - 8022088: 464a mov r2, r9 - 802208a: f7ff feac bl 8021de6 - 802208e: 89a3 ldrh r3, [r4, #12] - 8022090: f423 6390 bic.w r3, r3, #1152 ; 0x480 - 8022094: f043 0380 orr.w r3, r3, #128 ; 0x80 - 8022098: 81a3 strh r3, [r4, #12] - 802209a: 6126 str r6, [r4, #16] - 802209c: 6165 str r5, [r4, #20] - 802209e: 444e add r6, r9 - 80220a0: eba5 0509 sub.w r5, r5, r9 - 80220a4: 6026 str r6, [r4, #0] - 80220a6: 60a5 str r5, [r4, #8] - 80220a8: 463e mov r6, r7 - 80220aa: 42be cmp r6, r7 - 80220ac: d900 bls.n 80220b0 <__ssputs_r+0x70> - 80220ae: 463e mov r6, r7 - 80220b0: 6820 ldr r0, [r4, #0] - 80220b2: 4632 mov r2, r6 - 80220b4: 4641 mov r1, r8 - 80220b6: f7ff fdf9 bl 8021cac - 80220ba: 68a3 ldr r3, [r4, #8] - 80220bc: 1b9b subs r3, r3, r6 - 80220be: 60a3 str r3, [r4, #8] - 80220c0: 6823 ldr r3, [r4, #0] - 80220c2: 4433 add r3, r6 - 80220c4: 6023 str r3, [r4, #0] - 80220c6: 2000 movs r0, #0 - 80220c8: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} - 80220cc: 462a mov r2, r5 - 80220ce: f000 fd72 bl 8022bb6 <_realloc_r> - 80220d2: 4606 mov r6, r0 - 80220d4: 2800 cmp r0, #0 - 80220d6: d1e0 bne.n 802209a <__ssputs_r+0x5a> - 80220d8: 6921 ldr r1, [r4, #16] - 80220da: 4650 mov r0, sl - 80220dc: f7ff feb0 bl 8021e40 <_free_r> - 80220e0: 230c movs r3, #12 - 80220e2: f8ca 3000 str.w r3, [sl] - 80220e6: 89a3 ldrh r3, [r4, #12] - 80220e8: f043 0340 orr.w r3, r3, #64 ; 0x40 - 80220ec: 81a3 strh r3, [r4, #12] - 80220ee: f04f 30ff mov.w r0, #4294967295 - 80220f2: e7e9 b.n 80220c8 <__ssputs_r+0x88> - -080220f4 <_svfiprintf_r>: - 80220f4: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} - 80220f8: 4698 mov r8, r3 - 80220fa: 898b ldrh r3, [r1, #12] - 80220fc: 061b lsls r3, r3, #24 - 80220fe: b09d sub sp, #116 ; 0x74 - 8022100: 4607 mov r7, r0 - 8022102: 460d mov r5, r1 - 8022104: 4614 mov r4, r2 - 8022106: d50e bpl.n 8022126 <_svfiprintf_r+0x32> - 8022108: 690b ldr r3, [r1, #16] - 802210a: b963 cbnz r3, 8022126 <_svfiprintf_r+0x32> - 802210c: 2140 movs r1, #64 ; 0x40 - 802210e: f7ff ff0b bl 8021f28 <_malloc_r> - 8022112: 6028 str r0, [r5, #0] - 8022114: 6128 str r0, [r5, #16] - 8022116: b920 cbnz r0, 8022122 <_svfiprintf_r+0x2e> - 8022118: 230c movs r3, #12 - 802211a: 603b str r3, [r7, #0] - 802211c: f04f 30ff mov.w r0, #4294967295 - 8022120: e0d0 b.n 80222c4 <_svfiprintf_r+0x1d0> - 8022122: 2340 movs r3, #64 ; 0x40 - 8022124: 616b str r3, [r5, #20] - 8022126: 2300 movs r3, #0 - 8022128: 9309 str r3, [sp, #36] ; 0x24 - 802212a: 2320 movs r3, #32 - 802212c: f88d 3029 strb.w r3, [sp, #41] ; 0x29 - 8022130: f8cd 800c str.w r8, [sp, #12] - 8022134: 2330 movs r3, #48 ; 0x30 - 8022136: f8df 81a4 ldr.w r8, [pc, #420] ; 80222dc <_svfiprintf_r+0x1e8> - 802213a: f88d 302a strb.w r3, [sp, #42] ; 0x2a - 802213e: f04f 0901 mov.w r9, #1 - 8022142: 4623 mov r3, r4 - 8022144: 469a mov sl, r3 - 8022146: f813 2b01 ldrb.w r2, [r3], #1 - 802214a: b10a cbz r2, 8022150 <_svfiprintf_r+0x5c> - 802214c: 2a25 cmp r2, #37 ; 0x25 - 802214e: d1f9 bne.n 8022144 <_svfiprintf_r+0x50> - 8022150: ebba 0b04 subs.w fp, sl, r4 - 8022154: d00b beq.n 802216e <_svfiprintf_r+0x7a> - 8022156: 465b mov r3, fp - 8022158: 4622 mov r2, r4 - 802215a: 4629 mov r1, r5 - 802215c: 4638 mov r0, r7 - 802215e: f7ff ff6f bl 8022040 <__ssputs_r> - 8022162: 3001 adds r0, #1 - 8022164: f000 80a9 beq.w 80222ba <_svfiprintf_r+0x1c6> - 8022168: 9a09 ldr r2, [sp, #36] ; 0x24 - 802216a: 445a add r2, fp - 802216c: 9209 str r2, [sp, #36] ; 0x24 - 802216e: f89a 3000 ldrb.w r3, [sl] - 8022172: 2b00 cmp r3, #0 - 8022174: f000 80a1 beq.w 80222ba <_svfiprintf_r+0x1c6> - 8022178: 2300 movs r3, #0 - 802217a: f04f 32ff mov.w r2, #4294967295 - 802217e: e9cd 2305 strd r2, r3, [sp, #20] - 8022182: f10a 0a01 add.w sl, sl, #1 - 8022186: 9304 str r3, [sp, #16] - 8022188: 9307 str r3, [sp, #28] - 802218a: f88d 3053 strb.w r3, [sp, #83] ; 0x53 - 802218e: 931a str r3, [sp, #104] ; 0x68 - 8022190: 4654 mov r4, sl - 8022192: 2205 movs r2, #5 - 8022194: f814 1b01 ldrb.w r1, [r4], #1 - 8022198: 4850 ldr r0, [pc, #320] ; (80222dc <_svfiprintf_r+0x1e8>) - 802219a: f7de f8d1 bl 8000340 - 802219e: 9a04 ldr r2, [sp, #16] - 80221a0: b9d8 cbnz r0, 80221da <_svfiprintf_r+0xe6> - 80221a2: 06d0 lsls r0, r2, #27 - 80221a4: bf44 itt mi - 80221a6: 2320 movmi r3, #32 - 80221a8: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 - 80221ac: 0711 lsls r1, r2, #28 - 80221ae: bf44 itt mi - 80221b0: 232b movmi r3, #43 ; 0x2b - 80221b2: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 - 80221b6: f89a 3000 ldrb.w r3, [sl] - 80221ba: 2b2a cmp r3, #42 ; 0x2a - 80221bc: d015 beq.n 80221ea <_svfiprintf_r+0xf6> - 80221be: 9a07 ldr r2, [sp, #28] - 80221c0: 4654 mov r4, sl - 80221c2: 2000 movs r0, #0 - 80221c4: f04f 0c0a mov.w ip, #10 - 80221c8: 4621 mov r1, r4 - 80221ca: f811 3b01 ldrb.w r3, [r1], #1 - 80221ce: 3b30 subs r3, #48 ; 0x30 - 80221d0: 2b09 cmp r3, #9 - 80221d2: d94d bls.n 8022270 <_svfiprintf_r+0x17c> - 80221d4: b1b0 cbz r0, 8022204 <_svfiprintf_r+0x110> - 80221d6: 9207 str r2, [sp, #28] - 80221d8: e014 b.n 8022204 <_svfiprintf_r+0x110> - 80221da: eba0 0308 sub.w r3, r0, r8 - 80221de: fa09 f303 lsl.w r3, r9, r3 - 80221e2: 4313 orrs r3, r2 - 80221e4: 9304 str r3, [sp, #16] - 80221e6: 46a2 mov sl, r4 - 80221e8: e7d2 b.n 8022190 <_svfiprintf_r+0x9c> - 80221ea: 9b03 ldr r3, [sp, #12] - 80221ec: 1d19 adds r1, r3, #4 - 80221ee: 681b ldr r3, [r3, #0] - 80221f0: 9103 str r1, [sp, #12] - 80221f2: 2b00 cmp r3, #0 - 80221f4: bfbb ittet lt - 80221f6: 425b neglt r3, r3 - 80221f8: f042 0202 orrlt.w r2, r2, #2 - 80221fc: 9307 strge r3, [sp, #28] - 80221fe: 9307 strlt r3, [sp, #28] - 8022200: bfb8 it lt - 8022202: 9204 strlt r2, [sp, #16] - 8022204: 7823 ldrb r3, [r4, #0] - 8022206: 2b2e cmp r3, #46 ; 0x2e - 8022208: d10c bne.n 8022224 <_svfiprintf_r+0x130> - 802220a: 7863 ldrb r3, [r4, #1] - 802220c: 2b2a cmp r3, #42 ; 0x2a - 802220e: d134 bne.n 802227a <_svfiprintf_r+0x186> - 8022210: 9b03 ldr r3, [sp, #12] - 8022212: 1d1a adds r2, r3, #4 - 8022214: 681b ldr r3, [r3, #0] - 8022216: 9203 str r2, [sp, #12] - 8022218: 2b00 cmp r3, #0 - 802221a: bfb8 it lt - 802221c: f04f 33ff movlt.w r3, #4294967295 - 8022220: 3402 adds r4, #2 - 8022222: 9305 str r3, [sp, #20] - 8022224: f8df a0c4 ldr.w sl, [pc, #196] ; 80222ec <_svfiprintf_r+0x1f8> - 8022228: 7821 ldrb r1, [r4, #0] - 802222a: 2203 movs r2, #3 - 802222c: 4650 mov r0, sl - 802222e: f7de f887 bl 8000340 - 8022232: b138 cbz r0, 8022244 <_svfiprintf_r+0x150> - 8022234: 9b04 ldr r3, [sp, #16] - 8022236: eba0 000a sub.w r0, r0, sl - 802223a: 2240 movs r2, #64 ; 0x40 - 802223c: 4082 lsls r2, r0 - 802223e: 4313 orrs r3, r2 - 8022240: 3401 adds r4, #1 - 8022242: 9304 str r3, [sp, #16] - 8022244: f814 1b01 ldrb.w r1, [r4], #1 - 8022248: 4825 ldr r0, [pc, #148] ; (80222e0 <_svfiprintf_r+0x1ec>) - 802224a: f88d 1028 strb.w r1, [sp, #40] ; 0x28 - 802224e: 2206 movs r2, #6 - 8022250: f7de f876 bl 8000340 - 8022254: 2800 cmp r0, #0 - 8022256: d038 beq.n 80222ca <_svfiprintf_r+0x1d6> - 8022258: 4b22 ldr r3, [pc, #136] ; (80222e4 <_svfiprintf_r+0x1f0>) - 802225a: bb1b cbnz r3, 80222a4 <_svfiprintf_r+0x1b0> - 802225c: 9b03 ldr r3, [sp, #12] - 802225e: 3307 adds r3, #7 - 8022260: f023 0307 bic.w r3, r3, #7 - 8022264: 3308 adds r3, #8 - 8022266: 9303 str r3, [sp, #12] - 8022268: 9b09 ldr r3, [sp, #36] ; 0x24 - 802226a: 4433 add r3, r6 - 802226c: 9309 str r3, [sp, #36] ; 0x24 - 802226e: e768 b.n 8022142 <_svfiprintf_r+0x4e> - 8022270: fb0c 3202 mla r2, ip, r2, r3 - 8022274: 460c mov r4, r1 - 8022276: 2001 movs r0, #1 - 8022278: e7a6 b.n 80221c8 <_svfiprintf_r+0xd4> - 802227a: 2300 movs r3, #0 - 802227c: 3401 adds r4, #1 - 802227e: 9305 str r3, [sp, #20] - 8022280: 4619 mov r1, r3 - 8022282: f04f 0c0a mov.w ip, #10 - 8022286: 4620 mov r0, r4 - 8022288: f810 2b01 ldrb.w r2, [r0], #1 - 802228c: 3a30 subs r2, #48 ; 0x30 - 802228e: 2a09 cmp r2, #9 - 8022290: d903 bls.n 802229a <_svfiprintf_r+0x1a6> - 8022292: 2b00 cmp r3, #0 - 8022294: d0c6 beq.n 8022224 <_svfiprintf_r+0x130> - 8022296: 9105 str r1, [sp, #20] - 8022298: e7c4 b.n 8022224 <_svfiprintf_r+0x130> - 802229a: fb0c 2101 mla r1, ip, r1, r2 - 802229e: 4604 mov r4, r0 - 80222a0: 2301 movs r3, #1 - 80222a2: e7f0 b.n 8022286 <_svfiprintf_r+0x192> - 80222a4: ab03 add r3, sp, #12 - 80222a6: 9300 str r3, [sp, #0] - 80222a8: 462a mov r2, r5 - 80222aa: 4b0f ldr r3, [pc, #60] ; (80222e8 <_svfiprintf_r+0x1f4>) - 80222ac: a904 add r1, sp, #16 - 80222ae: 4638 mov r0, r7 - 80222b0: f3af 8000 nop.w - 80222b4: 1c42 adds r2, r0, #1 - 80222b6: 4606 mov r6, r0 - 80222b8: d1d6 bne.n 8022268 <_svfiprintf_r+0x174> - 80222ba: 89ab ldrh r3, [r5, #12] - 80222bc: 065b lsls r3, r3, #25 - 80222be: f53f af2d bmi.w 802211c <_svfiprintf_r+0x28> - 80222c2: 9809 ldr r0, [sp, #36] ; 0x24 - 80222c4: b01d add sp, #116 ; 0x74 - 80222c6: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} - 80222ca: ab03 add r3, sp, #12 - 80222cc: 9300 str r3, [sp, #0] - 80222ce: 462a mov r2, r5 - 80222d0: 4b05 ldr r3, [pc, #20] ; (80222e8 <_svfiprintf_r+0x1f4>) - 80222d2: a904 add r1, sp, #16 - 80222d4: 4638 mov r0, r7 - 80222d6: f000 f9bd bl 8022654 <_printf_i> - 80222da: e7eb b.n 80222b4 <_svfiprintf_r+0x1c0> - 80222dc: 08026eb4 .word 0x08026eb4 - 80222e0: 08026ebe .word 0x08026ebe - 80222e4: 00000000 .word 0x00000000 - 80222e8: 08022041 .word 0x08022041 - 80222ec: 08026eba .word 0x08026eba - -080222f0 <__sfputc_r>: - 80222f0: 6893 ldr r3, [r2, #8] - 80222f2: 3b01 subs r3, #1 - 80222f4: 2b00 cmp r3, #0 - 80222f6: b410 push {r4} - 80222f8: 6093 str r3, [r2, #8] - 80222fa: da08 bge.n 802230e <__sfputc_r+0x1e> - 80222fc: 6994 ldr r4, [r2, #24] - 80222fe: 42a3 cmp r3, r4 - 8022300: db01 blt.n 8022306 <__sfputc_r+0x16> - 8022302: 290a cmp r1, #10 - 8022304: d103 bne.n 802230e <__sfputc_r+0x1e> - 8022306: f85d 4b04 ldr.w r4, [sp], #4 - 802230a: f7ff bc2a b.w 8021b62 <__swbuf_r> - 802230e: 6813 ldr r3, [r2, #0] - 8022310: 1c58 adds r0, r3, #1 - 8022312: 6010 str r0, [r2, #0] - 8022314: 7019 strb r1, [r3, #0] - 8022316: 4608 mov r0, r1 - 8022318: f85d 4b04 ldr.w r4, [sp], #4 - 802231c: 4770 bx lr - -0802231e <__sfputs_r>: - 802231e: b5f8 push {r3, r4, r5, r6, r7, lr} - 8022320: 4606 mov r6, r0 - 8022322: 460f mov r7, r1 - 8022324: 4614 mov r4, r2 - 8022326: 18d5 adds r5, r2, r3 - 8022328: 42ac cmp r4, r5 - 802232a: d101 bne.n 8022330 <__sfputs_r+0x12> - 802232c: 2000 movs r0, #0 - 802232e: e007 b.n 8022340 <__sfputs_r+0x22> - 8022330: f814 1b01 ldrb.w r1, [r4], #1 - 8022334: 463a mov r2, r7 - 8022336: 4630 mov r0, r6 - 8022338: f7ff ffda bl 80222f0 <__sfputc_r> - 802233c: 1c43 adds r3, r0, #1 - 802233e: d1f3 bne.n 8022328 <__sfputs_r+0xa> - 8022340: bdf8 pop {r3, r4, r5, r6, r7, pc} - ... - -08022344 <_vfiprintf_r>: - 8022344: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} - 8022348: 460d mov r5, r1 - 802234a: b09d sub sp, #116 ; 0x74 - 802234c: 4614 mov r4, r2 - 802234e: 4698 mov r8, r3 - 8022350: 4606 mov r6, r0 - 8022352: b118 cbz r0, 802235c <_vfiprintf_r+0x18> - 8022354: 6a03 ldr r3, [r0, #32] - 8022356: b90b cbnz r3, 802235c <_vfiprintf_r+0x18> - 8022358: f7ff fae0 bl 802191c <__sinit> - 802235c: 6e6b ldr r3, [r5, #100] ; 0x64 - 802235e: 07d9 lsls r1, r3, #31 - 8022360: d405 bmi.n 802236e <_vfiprintf_r+0x2a> - 8022362: 89ab ldrh r3, [r5, #12] - 8022364: 059a lsls r2, r3, #22 - 8022366: d402 bmi.n 802236e <_vfiprintf_r+0x2a> - 8022368: 6da8 ldr r0, [r5, #88] ; 0x58 - 802236a: f7ff fd3a bl 8021de2 <__retarget_lock_acquire_recursive> - 802236e: 89ab ldrh r3, [r5, #12] - 8022370: 071b lsls r3, r3, #28 - 8022372: d501 bpl.n 8022378 <_vfiprintf_r+0x34> - 8022374: 692b ldr r3, [r5, #16] - 8022376: b99b cbnz r3, 80223a0 <_vfiprintf_r+0x5c> - 8022378: 4629 mov r1, r5 - 802237a: 4630 mov r0, r6 - 802237c: f7ff fc2e bl 8021bdc <__swsetup_r> - 8022380: b170 cbz r0, 80223a0 <_vfiprintf_r+0x5c> - 8022382: 6e6b ldr r3, [r5, #100] ; 0x64 - 8022384: 07dc lsls r4, r3, #31 - 8022386: d504 bpl.n 8022392 <_vfiprintf_r+0x4e> - 8022388: f04f 30ff mov.w r0, #4294967295 - 802238c: b01d add sp, #116 ; 0x74 - 802238e: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} - 8022392: 89ab ldrh r3, [r5, #12] - 8022394: 0598 lsls r0, r3, #22 - 8022396: d4f7 bmi.n 8022388 <_vfiprintf_r+0x44> - 8022398: 6da8 ldr r0, [r5, #88] ; 0x58 - 802239a: f7ff fd23 bl 8021de4 <__retarget_lock_release_recursive> - 802239e: e7f3 b.n 8022388 <_vfiprintf_r+0x44> - 80223a0: 2300 movs r3, #0 - 80223a2: 9309 str r3, [sp, #36] ; 0x24 - 80223a4: 2320 movs r3, #32 - 80223a6: f88d 3029 strb.w r3, [sp, #41] ; 0x29 - 80223aa: f8cd 800c str.w r8, [sp, #12] - 80223ae: 2330 movs r3, #48 ; 0x30 - 80223b0: f8df 81b0 ldr.w r8, [pc, #432] ; 8022564 <_vfiprintf_r+0x220> - 80223b4: f88d 302a strb.w r3, [sp, #42] ; 0x2a - 80223b8: f04f 0901 mov.w r9, #1 - 80223bc: 4623 mov r3, r4 - 80223be: 469a mov sl, r3 - 80223c0: f813 2b01 ldrb.w r2, [r3], #1 - 80223c4: b10a cbz r2, 80223ca <_vfiprintf_r+0x86> - 80223c6: 2a25 cmp r2, #37 ; 0x25 - 80223c8: d1f9 bne.n 80223be <_vfiprintf_r+0x7a> - 80223ca: ebba 0b04 subs.w fp, sl, r4 - 80223ce: d00b beq.n 80223e8 <_vfiprintf_r+0xa4> - 80223d0: 465b mov r3, fp - 80223d2: 4622 mov r2, r4 - 80223d4: 4629 mov r1, r5 - 80223d6: 4630 mov r0, r6 - 80223d8: f7ff ffa1 bl 802231e <__sfputs_r> - 80223dc: 3001 adds r0, #1 - 80223de: f000 80a9 beq.w 8022534 <_vfiprintf_r+0x1f0> - 80223e2: 9a09 ldr r2, [sp, #36] ; 0x24 - 80223e4: 445a add r2, fp - 80223e6: 9209 str r2, [sp, #36] ; 0x24 - 80223e8: f89a 3000 ldrb.w r3, [sl] - 80223ec: 2b00 cmp r3, #0 - 80223ee: f000 80a1 beq.w 8022534 <_vfiprintf_r+0x1f0> - 80223f2: 2300 movs r3, #0 - 80223f4: f04f 32ff mov.w r2, #4294967295 - 80223f8: e9cd 2305 strd r2, r3, [sp, #20] - 80223fc: f10a 0a01 add.w sl, sl, #1 - 8022400: 9304 str r3, [sp, #16] - 8022402: 9307 str r3, [sp, #28] - 8022404: f88d 3053 strb.w r3, [sp, #83] ; 0x53 - 8022408: 931a str r3, [sp, #104] ; 0x68 - 802240a: 4654 mov r4, sl - 802240c: 2205 movs r2, #5 - 802240e: f814 1b01 ldrb.w r1, [r4], #1 - 8022412: 4854 ldr r0, [pc, #336] ; (8022564 <_vfiprintf_r+0x220>) - 8022414: f7dd ff94 bl 8000340 - 8022418: 9a04 ldr r2, [sp, #16] - 802241a: b9d8 cbnz r0, 8022454 <_vfiprintf_r+0x110> - 802241c: 06d1 lsls r1, r2, #27 - 802241e: bf44 itt mi - 8022420: 2320 movmi r3, #32 - 8022422: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 - 8022426: 0713 lsls r3, r2, #28 - 8022428: bf44 itt mi - 802242a: 232b movmi r3, #43 ; 0x2b - 802242c: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 - 8022430: f89a 3000 ldrb.w r3, [sl] - 8022434: 2b2a cmp r3, #42 ; 0x2a - 8022436: d015 beq.n 8022464 <_vfiprintf_r+0x120> - 8022438: 9a07 ldr r2, [sp, #28] - 802243a: 4654 mov r4, sl - 802243c: 2000 movs r0, #0 - 802243e: f04f 0c0a mov.w ip, #10 - 8022442: 4621 mov r1, r4 - 8022444: f811 3b01 ldrb.w r3, [r1], #1 - 8022448: 3b30 subs r3, #48 ; 0x30 - 802244a: 2b09 cmp r3, #9 - 802244c: d94d bls.n 80224ea <_vfiprintf_r+0x1a6> - 802244e: b1b0 cbz r0, 802247e <_vfiprintf_r+0x13a> - 8022450: 9207 str r2, [sp, #28] - 8022452: e014 b.n 802247e <_vfiprintf_r+0x13a> - 8022454: eba0 0308 sub.w r3, r0, r8 - 8022458: fa09 f303 lsl.w r3, r9, r3 - 802245c: 4313 orrs r3, r2 - 802245e: 9304 str r3, [sp, #16] - 8022460: 46a2 mov sl, r4 - 8022462: e7d2 b.n 802240a <_vfiprintf_r+0xc6> - 8022464: 9b03 ldr r3, [sp, #12] - 8022466: 1d19 adds r1, r3, #4 - 8022468: 681b ldr r3, [r3, #0] - 802246a: 9103 str r1, [sp, #12] - 802246c: 2b00 cmp r3, #0 - 802246e: bfbb ittet lt - 8022470: 425b neglt r3, r3 - 8022472: f042 0202 orrlt.w r2, r2, #2 - 8022476: 9307 strge r3, [sp, #28] - 8022478: 9307 strlt r3, [sp, #28] - 802247a: bfb8 it lt - 802247c: 9204 strlt r2, [sp, #16] - 802247e: 7823 ldrb r3, [r4, #0] - 8022480: 2b2e cmp r3, #46 ; 0x2e - 8022482: d10c bne.n 802249e <_vfiprintf_r+0x15a> - 8022484: 7863 ldrb r3, [r4, #1] - 8022486: 2b2a cmp r3, #42 ; 0x2a - 8022488: d134 bne.n 80224f4 <_vfiprintf_r+0x1b0> - 802248a: 9b03 ldr r3, [sp, #12] - 802248c: 1d1a adds r2, r3, #4 - 802248e: 681b ldr r3, [r3, #0] - 8022490: 9203 str r2, [sp, #12] - 8022492: 2b00 cmp r3, #0 - 8022494: bfb8 it lt - 8022496: f04f 33ff movlt.w r3, #4294967295 - 802249a: 3402 adds r4, #2 - 802249c: 9305 str r3, [sp, #20] - 802249e: f8df a0d4 ldr.w sl, [pc, #212] ; 8022574 <_vfiprintf_r+0x230> - 80224a2: 7821 ldrb r1, [r4, #0] - 80224a4: 2203 movs r2, #3 - 80224a6: 4650 mov r0, sl - 80224a8: f7dd ff4a bl 8000340 - 80224ac: b138 cbz r0, 80224be <_vfiprintf_r+0x17a> - 80224ae: 9b04 ldr r3, [sp, #16] - 80224b0: eba0 000a sub.w r0, r0, sl - 80224b4: 2240 movs r2, #64 ; 0x40 - 80224b6: 4082 lsls r2, r0 - 80224b8: 4313 orrs r3, r2 - 80224ba: 3401 adds r4, #1 - 80224bc: 9304 str r3, [sp, #16] - 80224be: f814 1b01 ldrb.w r1, [r4], #1 - 80224c2: 4829 ldr r0, [pc, #164] ; (8022568 <_vfiprintf_r+0x224>) - 80224c4: f88d 1028 strb.w r1, [sp, #40] ; 0x28 - 80224c8: 2206 movs r2, #6 - 80224ca: f7dd ff39 bl 8000340 - 80224ce: 2800 cmp r0, #0 - 80224d0: d03f beq.n 8022552 <_vfiprintf_r+0x20e> - 80224d2: 4b26 ldr r3, [pc, #152] ; (802256c <_vfiprintf_r+0x228>) - 80224d4: bb1b cbnz r3, 802251e <_vfiprintf_r+0x1da> - 80224d6: 9b03 ldr r3, [sp, #12] - 80224d8: 3307 adds r3, #7 - 80224da: f023 0307 bic.w r3, r3, #7 - 80224de: 3308 adds r3, #8 - 80224e0: 9303 str r3, [sp, #12] - 80224e2: 9b09 ldr r3, [sp, #36] ; 0x24 - 80224e4: 443b add r3, r7 - 80224e6: 9309 str r3, [sp, #36] ; 0x24 - 80224e8: e768 b.n 80223bc <_vfiprintf_r+0x78> - 80224ea: fb0c 3202 mla r2, ip, r2, r3 - 80224ee: 460c mov r4, r1 - 80224f0: 2001 movs r0, #1 - 80224f2: e7a6 b.n 8022442 <_vfiprintf_r+0xfe> - 80224f4: 2300 movs r3, #0 - 80224f6: 3401 adds r4, #1 - 80224f8: 9305 str r3, [sp, #20] - 80224fa: 4619 mov r1, r3 - 80224fc: f04f 0c0a mov.w ip, #10 - 8022500: 4620 mov r0, r4 - 8022502: f810 2b01 ldrb.w r2, [r0], #1 - 8022506: 3a30 subs r2, #48 ; 0x30 - 8022508: 2a09 cmp r2, #9 - 802250a: d903 bls.n 8022514 <_vfiprintf_r+0x1d0> - 802250c: 2b00 cmp r3, #0 - 802250e: d0c6 beq.n 802249e <_vfiprintf_r+0x15a> - 8022510: 9105 str r1, [sp, #20] - 8022512: e7c4 b.n 802249e <_vfiprintf_r+0x15a> - 8022514: fb0c 2101 mla r1, ip, r1, r2 - 8022518: 4604 mov r4, r0 - 802251a: 2301 movs r3, #1 - 802251c: e7f0 b.n 8022500 <_vfiprintf_r+0x1bc> - 802251e: ab03 add r3, sp, #12 - 8022520: 9300 str r3, [sp, #0] - 8022522: 462a mov r2, r5 - 8022524: 4b12 ldr r3, [pc, #72] ; (8022570 <_vfiprintf_r+0x22c>) - 8022526: a904 add r1, sp, #16 - 8022528: 4630 mov r0, r6 - 802252a: f3af 8000 nop.w - 802252e: 4607 mov r7, r0 - 8022530: 1c78 adds r0, r7, #1 - 8022532: d1d6 bne.n 80224e2 <_vfiprintf_r+0x19e> - 8022534: 6e6b ldr r3, [r5, #100] ; 0x64 - 8022536: 07d9 lsls r1, r3, #31 - 8022538: d405 bmi.n 8022546 <_vfiprintf_r+0x202> - 802253a: 89ab ldrh r3, [r5, #12] - 802253c: 059a lsls r2, r3, #22 - 802253e: d402 bmi.n 8022546 <_vfiprintf_r+0x202> - 8022540: 6da8 ldr r0, [r5, #88] ; 0x58 - 8022542: f7ff fc4f bl 8021de4 <__retarget_lock_release_recursive> - 8022546: 89ab ldrh r3, [r5, #12] - 8022548: 065b lsls r3, r3, #25 - 802254a: f53f af1d bmi.w 8022388 <_vfiprintf_r+0x44> - 802254e: 9809 ldr r0, [sp, #36] ; 0x24 - 8022550: e71c b.n 802238c <_vfiprintf_r+0x48> - 8022552: ab03 add r3, sp, #12 - 8022554: 9300 str r3, [sp, #0] - 8022556: 462a mov r2, r5 - 8022558: 4b05 ldr r3, [pc, #20] ; (8022570 <_vfiprintf_r+0x22c>) - 802255a: a904 add r1, sp, #16 - 802255c: 4630 mov r0, r6 - 802255e: f000 f879 bl 8022654 <_printf_i> - 8022562: e7e4 b.n 802252e <_vfiprintf_r+0x1ea> - 8022564: 08026eb4 .word 0x08026eb4 - 8022568: 08026ebe .word 0x08026ebe - 802256c: 00000000 .word 0x00000000 - 8022570: 0802231f .word 0x0802231f - 8022574: 08026eba .word 0x08026eba - -08022578 <_printf_common>: - 8022578: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} - 802257c: 4616 mov r6, r2 - 802257e: 4699 mov r9, r3 - 8022580: 688a ldr r2, [r1, #8] - 8022582: 690b ldr r3, [r1, #16] - 8022584: f8dd 8020 ldr.w r8, [sp, #32] - 8022588: 4293 cmp r3, r2 - 802258a: bfb8 it lt - 802258c: 4613 movlt r3, r2 - 802258e: 6033 str r3, [r6, #0] - 8022590: f891 2043 ldrb.w r2, [r1, #67] ; 0x43 - 8022594: 4607 mov r7, r0 - 8022596: 460c mov r4, r1 - 8022598: b10a cbz r2, 802259e <_printf_common+0x26> - 802259a: 3301 adds r3, #1 - 802259c: 6033 str r3, [r6, #0] - 802259e: 6823 ldr r3, [r4, #0] - 80225a0: 0699 lsls r1, r3, #26 - 80225a2: bf42 ittt mi - 80225a4: 6833 ldrmi r3, [r6, #0] - 80225a6: 3302 addmi r3, #2 - 80225a8: 6033 strmi r3, [r6, #0] - 80225aa: 6825 ldr r5, [r4, #0] - 80225ac: f015 0506 ands.w r5, r5, #6 - 80225b0: d106 bne.n 80225c0 <_printf_common+0x48> - 80225b2: f104 0a19 add.w sl, r4, #25 - 80225b6: 68e3 ldr r3, [r4, #12] - 80225b8: 6832 ldr r2, [r6, #0] - 80225ba: 1a9b subs r3, r3, r2 - 80225bc: 42ab cmp r3, r5 - 80225be: dc26 bgt.n 802260e <_printf_common+0x96> - 80225c0: f894 2043 ldrb.w r2, [r4, #67] ; 0x43 - 80225c4: 1e13 subs r3, r2, #0 - 80225c6: 6822 ldr r2, [r4, #0] - 80225c8: bf18 it ne - 80225ca: 2301 movne r3, #1 - 80225cc: 0692 lsls r2, r2, #26 - 80225ce: d42b bmi.n 8022628 <_printf_common+0xb0> - 80225d0: f104 0243 add.w r2, r4, #67 ; 0x43 - 80225d4: 4649 mov r1, r9 - 80225d6: 4638 mov r0, r7 - 80225d8: 47c0 blx r8 - 80225da: 3001 adds r0, #1 - 80225dc: d01e beq.n 802261c <_printf_common+0xa4> - 80225de: 6823 ldr r3, [r4, #0] - 80225e0: 6922 ldr r2, [r4, #16] - 80225e2: f003 0306 and.w r3, r3, #6 - 80225e6: 2b04 cmp r3, #4 - 80225e8: bf02 ittt eq - 80225ea: 68e5 ldreq r5, [r4, #12] - 80225ec: 6833 ldreq r3, [r6, #0] - 80225ee: 1aed subeq r5, r5, r3 - 80225f0: 68a3 ldr r3, [r4, #8] - 80225f2: bf0c ite eq - 80225f4: ea25 75e5 biceq.w r5, r5, r5, asr #31 - 80225f8: 2500 movne r5, #0 - 80225fa: 4293 cmp r3, r2 - 80225fc: bfc4 itt gt - 80225fe: 1a9b subgt r3, r3, r2 - 8022600: 18ed addgt r5, r5, r3 - 8022602: 2600 movs r6, #0 - 8022604: 341a adds r4, #26 - 8022606: 42b5 cmp r5, r6 - 8022608: d11a bne.n 8022640 <_printf_common+0xc8> - 802260a: 2000 movs r0, #0 - 802260c: e008 b.n 8022620 <_printf_common+0xa8> - 802260e: 2301 movs r3, #1 - 8022610: 4652 mov r2, sl - 8022612: 4649 mov r1, r9 - 8022614: 4638 mov r0, r7 - 8022616: 47c0 blx r8 - 8022618: 3001 adds r0, #1 - 802261a: d103 bne.n 8022624 <_printf_common+0xac> - 802261c: f04f 30ff mov.w r0, #4294967295 - 8022620: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} - 8022624: 3501 adds r5, #1 - 8022626: e7c6 b.n 80225b6 <_printf_common+0x3e> - 8022628: 18e1 adds r1, r4, r3 - 802262a: 1c5a adds r2, r3, #1 - 802262c: 2030 movs r0, #48 ; 0x30 - 802262e: f881 0043 strb.w r0, [r1, #67] ; 0x43 - 8022632: 4422 add r2, r4 - 8022634: f894 1045 ldrb.w r1, [r4, #69] ; 0x45 - 8022638: f882 1043 strb.w r1, [r2, #67] ; 0x43 - 802263c: 3302 adds r3, #2 - 802263e: e7c7 b.n 80225d0 <_printf_common+0x58> - 8022640: 2301 movs r3, #1 - 8022642: 4622 mov r2, r4 - 8022644: 4649 mov r1, r9 - 8022646: 4638 mov r0, r7 - 8022648: 47c0 blx r8 - 802264a: 3001 adds r0, #1 - 802264c: d0e6 beq.n 802261c <_printf_common+0xa4> - 802264e: 3601 adds r6, #1 - 8022650: e7d9 b.n 8022606 <_printf_common+0x8e> - ... - -08022654 <_printf_i>: - 8022654: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr} - 8022658: 7e0f ldrb r7, [r1, #24] - 802265a: 9d0c ldr r5, [sp, #48] ; 0x30 - 802265c: 2f78 cmp r7, #120 ; 0x78 - 802265e: 4691 mov r9, r2 - 8022660: 4680 mov r8, r0 - 8022662: 460c mov r4, r1 - 8022664: 469a mov sl, r3 - 8022666: f101 0243 add.w r2, r1, #67 ; 0x43 - 802266a: d807 bhi.n 802267c <_printf_i+0x28> - 802266c: 2f62 cmp r7, #98 ; 0x62 - 802266e: d80a bhi.n 8022686 <_printf_i+0x32> - 8022670: 2f00 cmp r7, #0 - 8022672: f000 80d4 beq.w 802281e <_printf_i+0x1ca> - 8022676: 2f58 cmp r7, #88 ; 0x58 - 8022678: f000 80c0 beq.w 80227fc <_printf_i+0x1a8> - 802267c: f104 0542 add.w r5, r4, #66 ; 0x42 - 8022680: f884 7042 strb.w r7, [r4, #66] ; 0x42 - 8022684: e03a b.n 80226fc <_printf_i+0xa8> - 8022686: f1a7 0363 sub.w r3, r7, #99 ; 0x63 - 802268a: 2b15 cmp r3, #21 - 802268c: d8f6 bhi.n 802267c <_printf_i+0x28> - 802268e: a101 add r1, pc, #4 ; (adr r1, 8022694 <_printf_i+0x40>) - 8022690: f851 f023 ldr.w pc, [r1, r3, lsl #2] - 8022694: 080226ed .word 0x080226ed - 8022698: 08022701 .word 0x08022701 - 802269c: 0802267d .word 0x0802267d - 80226a0: 0802267d .word 0x0802267d - 80226a4: 0802267d .word 0x0802267d - 80226a8: 0802267d .word 0x0802267d - 80226ac: 08022701 .word 0x08022701 - 80226b0: 0802267d .word 0x0802267d - 80226b4: 0802267d .word 0x0802267d - 80226b8: 0802267d .word 0x0802267d - 80226bc: 0802267d .word 0x0802267d - 80226c0: 08022805 .word 0x08022805 - 80226c4: 0802272d .word 0x0802272d - 80226c8: 080227bf .word 0x080227bf - 80226cc: 0802267d .word 0x0802267d - 80226d0: 0802267d .word 0x0802267d - 80226d4: 08022827 .word 0x08022827 - 80226d8: 0802267d .word 0x0802267d - 80226dc: 0802272d .word 0x0802272d - 80226e0: 0802267d .word 0x0802267d - 80226e4: 0802267d .word 0x0802267d - 80226e8: 080227c7 .word 0x080227c7 - 80226ec: 682b ldr r3, [r5, #0] - 80226ee: 1d1a adds r2, r3, #4 - 80226f0: 681b ldr r3, [r3, #0] - 80226f2: 602a str r2, [r5, #0] - 80226f4: f104 0542 add.w r5, r4, #66 ; 0x42 - 80226f8: f884 3042 strb.w r3, [r4, #66] ; 0x42 - 80226fc: 2301 movs r3, #1 - 80226fe: e09f b.n 8022840 <_printf_i+0x1ec> - 8022700: 6820 ldr r0, [r4, #0] - 8022702: 682b ldr r3, [r5, #0] - 8022704: 0607 lsls r7, r0, #24 - 8022706: f103 0104 add.w r1, r3, #4 - 802270a: 6029 str r1, [r5, #0] - 802270c: d501 bpl.n 8022712 <_printf_i+0xbe> - 802270e: 681e ldr r6, [r3, #0] - 8022710: e003 b.n 802271a <_printf_i+0xc6> - 8022712: 0646 lsls r6, r0, #25 - 8022714: d5fb bpl.n 802270e <_printf_i+0xba> - 8022716: f9b3 6000 ldrsh.w r6, [r3] - 802271a: 2e00 cmp r6, #0 - 802271c: da03 bge.n 8022726 <_printf_i+0xd2> - 802271e: 232d movs r3, #45 ; 0x2d - 8022720: 4276 negs r6, r6 - 8022722: f884 3043 strb.w r3, [r4, #67] ; 0x43 - 8022726: 485a ldr r0, [pc, #360] ; (8022890 <_printf_i+0x23c>) - 8022728: 230a movs r3, #10 - 802272a: e012 b.n 8022752 <_printf_i+0xfe> - 802272c: 682b ldr r3, [r5, #0] - 802272e: 6820 ldr r0, [r4, #0] - 8022730: 1d19 adds r1, r3, #4 - 8022732: 6029 str r1, [r5, #0] - 8022734: 0605 lsls r5, r0, #24 - 8022736: d501 bpl.n 802273c <_printf_i+0xe8> - 8022738: 681e ldr r6, [r3, #0] - 802273a: e002 b.n 8022742 <_printf_i+0xee> - 802273c: 0641 lsls r1, r0, #25 - 802273e: d5fb bpl.n 8022738 <_printf_i+0xe4> - 8022740: 881e ldrh r6, [r3, #0] - 8022742: 4853 ldr r0, [pc, #332] ; (8022890 <_printf_i+0x23c>) - 8022744: 2f6f cmp r7, #111 ; 0x6f - 8022746: bf0c ite eq - 8022748: 2308 moveq r3, #8 - 802274a: 230a movne r3, #10 - 802274c: 2100 movs r1, #0 - 802274e: f884 1043 strb.w r1, [r4, #67] ; 0x43 - 8022752: 6865 ldr r5, [r4, #4] - 8022754: 60a5 str r5, [r4, #8] - 8022756: 2d00 cmp r5, #0 - 8022758: bfa2 ittt ge - 802275a: 6821 ldrge r1, [r4, #0] - 802275c: f021 0104 bicge.w r1, r1, #4 - 8022760: 6021 strge r1, [r4, #0] - 8022762: b90e cbnz r6, 8022768 <_printf_i+0x114> - 8022764: 2d00 cmp r5, #0 - 8022766: d04b beq.n 8022800 <_printf_i+0x1ac> - 8022768: 4615 mov r5, r2 - 802276a: fbb6 f1f3 udiv r1, r6, r3 - 802276e: fb03 6711 mls r7, r3, r1, r6 - 8022772: 5dc7 ldrb r7, [r0, r7] - 8022774: f805 7d01 strb.w r7, [r5, #-1]! - 8022778: 4637 mov r7, r6 - 802277a: 42bb cmp r3, r7 - 802277c: 460e mov r6, r1 - 802277e: d9f4 bls.n 802276a <_printf_i+0x116> - 8022780: 2b08 cmp r3, #8 - 8022782: d10b bne.n 802279c <_printf_i+0x148> - 8022784: 6823 ldr r3, [r4, #0] - 8022786: 07de lsls r6, r3, #31 - 8022788: d508 bpl.n 802279c <_printf_i+0x148> - 802278a: 6923 ldr r3, [r4, #16] - 802278c: 6861 ldr r1, [r4, #4] - 802278e: 4299 cmp r1, r3 - 8022790: bfde ittt le - 8022792: 2330 movle r3, #48 ; 0x30 - 8022794: f805 3c01 strble.w r3, [r5, #-1] - 8022798: f105 35ff addle.w r5, r5, #4294967295 - 802279c: 1b52 subs r2, r2, r5 - 802279e: 6122 str r2, [r4, #16] - 80227a0: f8cd a000 str.w sl, [sp] - 80227a4: 464b mov r3, r9 - 80227a6: aa03 add r2, sp, #12 - 80227a8: 4621 mov r1, r4 - 80227aa: 4640 mov r0, r8 - 80227ac: f7ff fee4 bl 8022578 <_printf_common> - 80227b0: 3001 adds r0, #1 - 80227b2: d14a bne.n 802284a <_printf_i+0x1f6> - 80227b4: f04f 30ff mov.w r0, #4294967295 - 80227b8: b004 add sp, #16 - 80227ba: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} - 80227be: 6823 ldr r3, [r4, #0] - 80227c0: f043 0320 orr.w r3, r3, #32 - 80227c4: 6023 str r3, [r4, #0] - 80227c6: 4833 ldr r0, [pc, #204] ; (8022894 <_printf_i+0x240>) - 80227c8: 2778 movs r7, #120 ; 0x78 - 80227ca: f884 7045 strb.w r7, [r4, #69] ; 0x45 - 80227ce: 6823 ldr r3, [r4, #0] - 80227d0: 6829 ldr r1, [r5, #0] - 80227d2: 061f lsls r7, r3, #24 - 80227d4: f851 6b04 ldr.w r6, [r1], #4 - 80227d8: d402 bmi.n 80227e0 <_printf_i+0x18c> - 80227da: 065f lsls r7, r3, #25 - 80227dc: bf48 it mi - 80227de: b2b6 uxthmi r6, r6 - 80227e0: 07df lsls r7, r3, #31 - 80227e2: bf48 it mi - 80227e4: f043 0320 orrmi.w r3, r3, #32 - 80227e8: 6029 str r1, [r5, #0] - 80227ea: bf48 it mi - 80227ec: 6023 strmi r3, [r4, #0] - 80227ee: b91e cbnz r6, 80227f8 <_printf_i+0x1a4> - 80227f0: 6823 ldr r3, [r4, #0] - 80227f2: f023 0320 bic.w r3, r3, #32 - 80227f6: 6023 str r3, [r4, #0] - 80227f8: 2310 movs r3, #16 - 80227fa: e7a7 b.n 802274c <_printf_i+0xf8> - 80227fc: 4824 ldr r0, [pc, #144] ; (8022890 <_printf_i+0x23c>) - 80227fe: e7e4 b.n 80227ca <_printf_i+0x176> - 8022800: 4615 mov r5, r2 - 8022802: e7bd b.n 8022780 <_printf_i+0x12c> - 8022804: 682b ldr r3, [r5, #0] - 8022806: 6826 ldr r6, [r4, #0] - 8022808: 6961 ldr r1, [r4, #20] - 802280a: 1d18 adds r0, r3, #4 - 802280c: 6028 str r0, [r5, #0] - 802280e: 0635 lsls r5, r6, #24 - 8022810: 681b ldr r3, [r3, #0] - 8022812: d501 bpl.n 8022818 <_printf_i+0x1c4> - 8022814: 6019 str r1, [r3, #0] - 8022816: e002 b.n 802281e <_printf_i+0x1ca> - 8022818: 0670 lsls r0, r6, #25 - 802281a: d5fb bpl.n 8022814 <_printf_i+0x1c0> - 802281c: 8019 strh r1, [r3, #0] - 802281e: 2300 movs r3, #0 - 8022820: 6123 str r3, [r4, #16] - 8022822: 4615 mov r5, r2 - 8022824: e7bc b.n 80227a0 <_printf_i+0x14c> - 8022826: 682b ldr r3, [r5, #0] - 8022828: 1d1a adds r2, r3, #4 - 802282a: 602a str r2, [r5, #0] - 802282c: 681d ldr r5, [r3, #0] - 802282e: 6862 ldr r2, [r4, #4] - 8022830: 2100 movs r1, #0 - 8022832: 4628 mov r0, r5 - 8022834: f7dd fd84 bl 8000340 - 8022838: b108 cbz r0, 802283e <_printf_i+0x1ea> - 802283a: 1b40 subs r0, r0, r5 - 802283c: 6060 str r0, [r4, #4] - 802283e: 6863 ldr r3, [r4, #4] - 8022840: 6123 str r3, [r4, #16] - 8022842: 2300 movs r3, #0 - 8022844: f884 3043 strb.w r3, [r4, #67] ; 0x43 - 8022848: e7aa b.n 80227a0 <_printf_i+0x14c> - 802284a: 6923 ldr r3, [r4, #16] - 802284c: 462a mov r2, r5 - 802284e: 4649 mov r1, r9 - 8022850: 4640 mov r0, r8 - 8022852: 47d0 blx sl - 8022854: 3001 adds r0, #1 - 8022856: d0ad beq.n 80227b4 <_printf_i+0x160> - 8022858: 6823 ldr r3, [r4, #0] - 802285a: 079b lsls r3, r3, #30 - 802285c: d413 bmi.n 8022886 <_printf_i+0x232> - 802285e: 68e0 ldr r0, [r4, #12] - 8022860: 9b03 ldr r3, [sp, #12] - 8022862: 4298 cmp r0, r3 - 8022864: bfb8 it lt - 8022866: 4618 movlt r0, r3 - 8022868: e7a6 b.n 80227b8 <_printf_i+0x164> - 802286a: 2301 movs r3, #1 - 802286c: 4632 mov r2, r6 - 802286e: 4649 mov r1, r9 - 8022870: 4640 mov r0, r8 - 8022872: 47d0 blx sl - 8022874: 3001 adds r0, #1 - 8022876: d09d beq.n 80227b4 <_printf_i+0x160> - 8022878: 3501 adds r5, #1 - 802287a: 68e3 ldr r3, [r4, #12] - 802287c: 9903 ldr r1, [sp, #12] - 802287e: 1a5b subs r3, r3, r1 - 8022880: 42ab cmp r3, r5 - 8022882: dcf2 bgt.n 802286a <_printf_i+0x216> - 8022884: e7eb b.n 802285e <_printf_i+0x20a> - 8022886: 2500 movs r5, #0 - 8022888: f104 0619 add.w r6, r4, #25 - 802288c: e7f5 b.n 802287a <_printf_i+0x226> - 802288e: bf00 nop - 8022890: 08026ec5 .word 0x08026ec5 - 8022894: 08026ed6 .word 0x08026ed6 - -08022898 <__sflush_r>: - 8022898: 898a ldrh r2, [r1, #12] - 802289a: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} - 802289e: 4605 mov r5, r0 - 80228a0: 0710 lsls r0, r2, #28 - 80228a2: 460c mov r4, r1 - 80228a4: d458 bmi.n 8022958 <__sflush_r+0xc0> - 80228a6: 684b ldr r3, [r1, #4] - 80228a8: 2b00 cmp r3, #0 - 80228aa: dc05 bgt.n 80228b8 <__sflush_r+0x20> - 80228ac: 6c0b ldr r3, [r1, #64] ; 0x40 - 80228ae: 2b00 cmp r3, #0 - 80228b0: dc02 bgt.n 80228b8 <__sflush_r+0x20> - 80228b2: 2000 movs r0, #0 - 80228b4: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} - 80228b8: 6ae6 ldr r6, [r4, #44] ; 0x2c - 80228ba: 2e00 cmp r6, #0 - 80228bc: d0f9 beq.n 80228b2 <__sflush_r+0x1a> - 80228be: 2300 movs r3, #0 - 80228c0: f412 5280 ands.w r2, r2, #4096 ; 0x1000 - 80228c4: 682f ldr r7, [r5, #0] - 80228c6: 6a21 ldr r1, [r4, #32] - 80228c8: 602b str r3, [r5, #0] - 80228ca: d032 beq.n 8022932 <__sflush_r+0x9a> - 80228cc: 6d60 ldr r0, [r4, #84] ; 0x54 - 80228ce: 89a3 ldrh r3, [r4, #12] - 80228d0: 075a lsls r2, r3, #29 - 80228d2: d505 bpl.n 80228e0 <__sflush_r+0x48> - 80228d4: 6863 ldr r3, [r4, #4] - 80228d6: 1ac0 subs r0, r0, r3 - 80228d8: 6b63 ldr r3, [r4, #52] ; 0x34 - 80228da: b10b cbz r3, 80228e0 <__sflush_r+0x48> - 80228dc: 6c23 ldr r3, [r4, #64] ; 0x40 - 80228de: 1ac0 subs r0, r0, r3 - 80228e0: 2300 movs r3, #0 - 80228e2: 4602 mov r2, r0 - 80228e4: 6ae6 ldr r6, [r4, #44] ; 0x2c - 80228e6: 6a21 ldr r1, [r4, #32] - 80228e8: 4628 mov r0, r5 - 80228ea: 47b0 blx r6 - 80228ec: 1c43 adds r3, r0, #1 - 80228ee: 89a3 ldrh r3, [r4, #12] - 80228f0: d106 bne.n 8022900 <__sflush_r+0x68> - 80228f2: 6829 ldr r1, [r5, #0] - 80228f4: 291d cmp r1, #29 - 80228f6: d82b bhi.n 8022950 <__sflush_r+0xb8> - 80228f8: 4a29 ldr r2, [pc, #164] ; (80229a0 <__sflush_r+0x108>) - 80228fa: 410a asrs r2, r1 - 80228fc: 07d6 lsls r6, r2, #31 - 80228fe: d427 bmi.n 8022950 <__sflush_r+0xb8> - 8022900: 2200 movs r2, #0 - 8022902: 6062 str r2, [r4, #4] - 8022904: 04d9 lsls r1, r3, #19 - 8022906: 6922 ldr r2, [r4, #16] - 8022908: 6022 str r2, [r4, #0] - 802290a: d504 bpl.n 8022916 <__sflush_r+0x7e> - 802290c: 1c42 adds r2, r0, #1 - 802290e: d101 bne.n 8022914 <__sflush_r+0x7c> - 8022910: 682b ldr r3, [r5, #0] - 8022912: b903 cbnz r3, 8022916 <__sflush_r+0x7e> - 8022914: 6560 str r0, [r4, #84] ; 0x54 - 8022916: 6b61 ldr r1, [r4, #52] ; 0x34 - 8022918: 602f str r7, [r5, #0] - 802291a: 2900 cmp r1, #0 - 802291c: d0c9 beq.n 80228b2 <__sflush_r+0x1a> - 802291e: f104 0344 add.w r3, r4, #68 ; 0x44 - 8022922: 4299 cmp r1, r3 - 8022924: d002 beq.n 802292c <__sflush_r+0x94> - 8022926: 4628 mov r0, r5 - 8022928: f7ff fa8a bl 8021e40 <_free_r> - 802292c: 2000 movs r0, #0 - 802292e: 6360 str r0, [r4, #52] ; 0x34 - 8022930: e7c0 b.n 80228b4 <__sflush_r+0x1c> - 8022932: 2301 movs r3, #1 - 8022934: 4628 mov r0, r5 - 8022936: 47b0 blx r6 - 8022938: 1c41 adds r1, r0, #1 - 802293a: d1c8 bne.n 80228ce <__sflush_r+0x36> - 802293c: 682b ldr r3, [r5, #0] - 802293e: 2b00 cmp r3, #0 - 8022940: d0c5 beq.n 80228ce <__sflush_r+0x36> - 8022942: 2b1d cmp r3, #29 - 8022944: d001 beq.n 802294a <__sflush_r+0xb2> - 8022946: 2b16 cmp r3, #22 - 8022948: d101 bne.n 802294e <__sflush_r+0xb6> - 802294a: 602f str r7, [r5, #0] - 802294c: e7b1 b.n 80228b2 <__sflush_r+0x1a> - 802294e: 89a3 ldrh r3, [r4, #12] - 8022950: f043 0340 orr.w r3, r3, #64 ; 0x40 - 8022954: 81a3 strh r3, [r4, #12] - 8022956: e7ad b.n 80228b4 <__sflush_r+0x1c> - 8022958: 690f ldr r7, [r1, #16] - 802295a: 2f00 cmp r7, #0 - 802295c: d0a9 beq.n 80228b2 <__sflush_r+0x1a> - 802295e: 0793 lsls r3, r2, #30 - 8022960: 680e ldr r6, [r1, #0] - 8022962: bf08 it eq - 8022964: 694b ldreq r3, [r1, #20] - 8022966: 600f str r7, [r1, #0] - 8022968: bf18 it ne - 802296a: 2300 movne r3, #0 - 802296c: eba6 0807 sub.w r8, r6, r7 - 8022970: 608b str r3, [r1, #8] - 8022972: f1b8 0f00 cmp.w r8, #0 - 8022976: dd9c ble.n 80228b2 <__sflush_r+0x1a> - 8022978: 6a21 ldr r1, [r4, #32] - 802297a: 6aa6 ldr r6, [r4, #40] ; 0x28 - 802297c: 4643 mov r3, r8 - 802297e: 463a mov r2, r7 - 8022980: 4628 mov r0, r5 - 8022982: 47b0 blx r6 - 8022984: 2800 cmp r0, #0 - 8022986: dc06 bgt.n 8022996 <__sflush_r+0xfe> - 8022988: 89a3 ldrh r3, [r4, #12] - 802298a: f043 0340 orr.w r3, r3, #64 ; 0x40 - 802298e: 81a3 strh r3, [r4, #12] - 8022990: f04f 30ff mov.w r0, #4294967295 - 8022994: e78e b.n 80228b4 <__sflush_r+0x1c> - 8022996: 4407 add r7, r0 - 8022998: eba8 0800 sub.w r8, r8, r0 - 802299c: e7e9 b.n 8022972 <__sflush_r+0xda> - 802299e: bf00 nop - 80229a0: dfbffffe .word 0xdfbffffe - -080229a4 <_fflush_r>: - 80229a4: b538 push {r3, r4, r5, lr} - 80229a6: 690b ldr r3, [r1, #16] - 80229a8: 4605 mov r5, r0 - 80229aa: 460c mov r4, r1 - 80229ac: b913 cbnz r3, 80229b4 <_fflush_r+0x10> - 80229ae: 2500 movs r5, #0 - 80229b0: 4628 mov r0, r5 - 80229b2: bd38 pop {r3, r4, r5, pc} - 80229b4: b118 cbz r0, 80229be <_fflush_r+0x1a> - 80229b6: 6a03 ldr r3, [r0, #32] - 80229b8: b90b cbnz r3, 80229be <_fflush_r+0x1a> - 80229ba: f7fe ffaf bl 802191c <__sinit> - 80229be: f9b4 300c ldrsh.w r3, [r4, #12] - 80229c2: 2b00 cmp r3, #0 - 80229c4: d0f3 beq.n 80229ae <_fflush_r+0xa> - 80229c6: 6e62 ldr r2, [r4, #100] ; 0x64 - 80229c8: 07d0 lsls r0, r2, #31 - 80229ca: d404 bmi.n 80229d6 <_fflush_r+0x32> - 80229cc: 0599 lsls r1, r3, #22 - 80229ce: d402 bmi.n 80229d6 <_fflush_r+0x32> - 80229d0: 6da0 ldr r0, [r4, #88] ; 0x58 - 80229d2: f7ff fa06 bl 8021de2 <__retarget_lock_acquire_recursive> - 80229d6: 4628 mov r0, r5 - 80229d8: 4621 mov r1, r4 - 80229da: f7ff ff5d bl 8022898 <__sflush_r> - 80229de: 6e63 ldr r3, [r4, #100] ; 0x64 - 80229e0: 07da lsls r2, r3, #31 - 80229e2: 4605 mov r5, r0 - 80229e4: d4e4 bmi.n 80229b0 <_fflush_r+0xc> - 80229e6: 89a3 ldrh r3, [r4, #12] - 80229e8: 059b lsls r3, r3, #22 - 80229ea: d4e1 bmi.n 80229b0 <_fflush_r+0xc> - 80229ec: 6da0 ldr r0, [r4, #88] ; 0x58 - 80229ee: f7ff f9f9 bl 8021de4 <__retarget_lock_release_recursive> - 80229f2: e7dd b.n 80229b0 <_fflush_r+0xc> - -080229f4 : - 80229f4: b40e push {r1, r2, r3} - 80229f6: b503 push {r0, r1, lr} - 80229f8: 4601 mov r1, r0 - 80229fa: ab03 add r3, sp, #12 - 80229fc: 4805 ldr r0, [pc, #20] ; (8022a14 ) - 80229fe: f853 2b04 ldr.w r2, [r3], #4 - 8022a02: 6800 ldr r0, [r0, #0] - 8022a04: 9301 str r3, [sp, #4] - 8022a06: f7ff fc9d bl 8022344 <_vfiprintf_r> - 8022a0a: b002 add sp, #8 - 8022a0c: f85d eb04 ldr.w lr, [sp], #4 - 8022a10: b003 add sp, #12 - 8022a12: 4770 bx lr - 8022a14: 240000a0 .word 0x240000a0 - -08022a18 <__swhatbuf_r>: - 8022a18: b570 push {r4, r5, r6, lr} - 8022a1a: 460c mov r4, r1 - 8022a1c: f9b1 100e ldrsh.w r1, [r1, #14] - 8022a20: 2900 cmp r1, #0 - 8022a22: b096 sub sp, #88 ; 0x58 - 8022a24: 4615 mov r5, r2 - 8022a26: 461e mov r6, r3 - 8022a28: da0d bge.n 8022a46 <__swhatbuf_r+0x2e> - 8022a2a: 89a3 ldrh r3, [r4, #12] - 8022a2c: f013 0f80 tst.w r3, #128 ; 0x80 - 8022a30: f04f 0100 mov.w r1, #0 - 8022a34: bf0c ite eq - 8022a36: f44f 6380 moveq.w r3, #1024 ; 0x400 - 8022a3a: 2340 movne r3, #64 ; 0x40 - 8022a3c: 2000 movs r0, #0 - 8022a3e: 6031 str r1, [r6, #0] - 8022a40: 602b str r3, [r5, #0] - 8022a42: b016 add sp, #88 ; 0x58 - 8022a44: bd70 pop {r4, r5, r6, pc} - 8022a46: 466a mov r2, sp - 8022a48: f000 f87c bl 8022b44 <_fstat_r> - 8022a4c: 2800 cmp r0, #0 - 8022a4e: dbec blt.n 8022a2a <__swhatbuf_r+0x12> - 8022a50: 9901 ldr r1, [sp, #4] - 8022a52: f401 4170 and.w r1, r1, #61440 ; 0xf000 - 8022a56: f5a1 5300 sub.w r3, r1, #8192 ; 0x2000 - 8022a5a: 4259 negs r1, r3 - 8022a5c: 4159 adcs r1, r3 - 8022a5e: f44f 6380 mov.w r3, #1024 ; 0x400 - 8022a62: e7eb b.n 8022a3c <__swhatbuf_r+0x24> - -08022a64 <__smakebuf_r>: - 8022a64: 898b ldrh r3, [r1, #12] - 8022a66: b573 push {r0, r1, r4, r5, r6, lr} - 8022a68: 079d lsls r5, r3, #30 - 8022a6a: 4606 mov r6, r0 - 8022a6c: 460c mov r4, r1 - 8022a6e: d507 bpl.n 8022a80 <__smakebuf_r+0x1c> - 8022a70: f104 0347 add.w r3, r4, #71 ; 0x47 - 8022a74: 6023 str r3, [r4, #0] - 8022a76: 6123 str r3, [r4, #16] - 8022a78: 2301 movs r3, #1 - 8022a7a: 6163 str r3, [r4, #20] - 8022a7c: b002 add sp, #8 - 8022a7e: bd70 pop {r4, r5, r6, pc} - 8022a80: ab01 add r3, sp, #4 - 8022a82: 466a mov r2, sp - 8022a84: f7ff ffc8 bl 8022a18 <__swhatbuf_r> - 8022a88: 9900 ldr r1, [sp, #0] - 8022a8a: 4605 mov r5, r0 - 8022a8c: 4630 mov r0, r6 - 8022a8e: f7ff fa4b bl 8021f28 <_malloc_r> - 8022a92: b948 cbnz r0, 8022aa8 <__smakebuf_r+0x44> - 8022a94: f9b4 300c ldrsh.w r3, [r4, #12] - 8022a98: 059a lsls r2, r3, #22 - 8022a9a: d4ef bmi.n 8022a7c <__smakebuf_r+0x18> - 8022a9c: f023 0303 bic.w r3, r3, #3 - 8022aa0: f043 0302 orr.w r3, r3, #2 - 8022aa4: 81a3 strh r3, [r4, #12] - 8022aa6: e7e3 b.n 8022a70 <__smakebuf_r+0xc> - 8022aa8: 89a3 ldrh r3, [r4, #12] - 8022aaa: 6020 str r0, [r4, #0] - 8022aac: f043 0380 orr.w r3, r3, #128 ; 0x80 - 8022ab0: 81a3 strh r3, [r4, #12] - 8022ab2: 9b00 ldr r3, [sp, #0] - 8022ab4: 6163 str r3, [r4, #20] - 8022ab6: 9b01 ldr r3, [sp, #4] - 8022ab8: 6120 str r0, [r4, #16] - 8022aba: b15b cbz r3, 8022ad4 <__smakebuf_r+0x70> - 8022abc: f9b4 100e ldrsh.w r1, [r4, #14] - 8022ac0: 4630 mov r0, r6 - 8022ac2: f000 f851 bl 8022b68 <_isatty_r> - 8022ac6: b128 cbz r0, 8022ad4 <__smakebuf_r+0x70> - 8022ac8: 89a3 ldrh r3, [r4, #12] - 8022aca: f023 0303 bic.w r3, r3, #3 - 8022ace: f043 0301 orr.w r3, r3, #1 - 8022ad2: 81a3 strh r3, [r4, #12] - 8022ad4: 89a3 ldrh r3, [r4, #12] - 8022ad6: 431d orrs r5, r3 - 8022ad8: 81a5 strh r5, [r4, #12] - 8022ada: e7cf b.n 8022a7c <__smakebuf_r+0x18> - -08022adc <_putc_r>: - 8022adc: b570 push {r4, r5, r6, lr} - 8022ade: 460d mov r5, r1 - 8022ae0: 4614 mov r4, r2 - 8022ae2: 4606 mov r6, r0 - 8022ae4: b118 cbz r0, 8022aee <_putc_r+0x12> - 8022ae6: 6a03 ldr r3, [r0, #32] - 8022ae8: b90b cbnz r3, 8022aee <_putc_r+0x12> - 8022aea: f7fe ff17 bl 802191c <__sinit> - 8022aee: 6e63 ldr r3, [r4, #100] ; 0x64 - 8022af0: 07d8 lsls r0, r3, #31 - 8022af2: d405 bmi.n 8022b00 <_putc_r+0x24> - 8022af4: 89a3 ldrh r3, [r4, #12] - 8022af6: 0599 lsls r1, r3, #22 - 8022af8: d402 bmi.n 8022b00 <_putc_r+0x24> - 8022afa: 6da0 ldr r0, [r4, #88] ; 0x58 - 8022afc: f7ff f971 bl 8021de2 <__retarget_lock_acquire_recursive> - 8022b00: 68a3 ldr r3, [r4, #8] - 8022b02: 3b01 subs r3, #1 - 8022b04: 2b00 cmp r3, #0 - 8022b06: 60a3 str r3, [r4, #8] - 8022b08: da05 bge.n 8022b16 <_putc_r+0x3a> - 8022b0a: 69a2 ldr r2, [r4, #24] - 8022b0c: 4293 cmp r3, r2 - 8022b0e: db12 blt.n 8022b36 <_putc_r+0x5a> - 8022b10: b2eb uxtb r3, r5 - 8022b12: 2b0a cmp r3, #10 - 8022b14: d00f beq.n 8022b36 <_putc_r+0x5a> - 8022b16: 6823 ldr r3, [r4, #0] - 8022b18: 1c5a adds r2, r3, #1 - 8022b1a: 6022 str r2, [r4, #0] - 8022b1c: 701d strb r5, [r3, #0] - 8022b1e: b2ed uxtb r5, r5 - 8022b20: 6e63 ldr r3, [r4, #100] ; 0x64 - 8022b22: 07da lsls r2, r3, #31 - 8022b24: d405 bmi.n 8022b32 <_putc_r+0x56> - 8022b26: 89a3 ldrh r3, [r4, #12] - 8022b28: 059b lsls r3, r3, #22 - 8022b2a: d402 bmi.n 8022b32 <_putc_r+0x56> - 8022b2c: 6da0 ldr r0, [r4, #88] ; 0x58 - 8022b2e: f7ff f959 bl 8021de4 <__retarget_lock_release_recursive> - 8022b32: 4628 mov r0, r5 - 8022b34: bd70 pop {r4, r5, r6, pc} - 8022b36: 4629 mov r1, r5 - 8022b38: 4622 mov r2, r4 - 8022b3a: 4630 mov r0, r6 - 8022b3c: f7ff f811 bl 8021b62 <__swbuf_r> - 8022b40: 4605 mov r5, r0 - 8022b42: e7ed b.n 8022b20 <_putc_r+0x44> - -08022b44 <_fstat_r>: - 8022b44: b538 push {r3, r4, r5, lr} - 8022b46: 4d07 ldr r5, [pc, #28] ; (8022b64 <_fstat_r+0x20>) - 8022b48: 2300 movs r3, #0 - 8022b4a: 4604 mov r4, r0 - 8022b4c: 4608 mov r0, r1 - 8022b4e: 4611 mov r1, r2 - 8022b50: 602b str r3, [r5, #0] - 8022b52: f7df f944 bl 8001dde <_fstat> - 8022b56: 1c43 adds r3, r0, #1 - 8022b58: d102 bne.n 8022b60 <_fstat_r+0x1c> - 8022b5a: 682b ldr r3, [r5, #0] - 8022b5c: b103 cbz r3, 8022b60 <_fstat_r+0x1c> - 8022b5e: 6023 str r3, [r4, #0] - 8022b60: bd38 pop {r3, r4, r5, pc} - 8022b62: bf00 nop - 8022b64: 2401a5e0 .word 0x2401a5e0 - -08022b68 <_isatty_r>: - 8022b68: b538 push {r3, r4, r5, lr} - 8022b6a: 4d06 ldr r5, [pc, #24] ; (8022b84 <_isatty_r+0x1c>) - 8022b6c: 2300 movs r3, #0 - 8022b6e: 4604 mov r4, r0 - 8022b70: 4608 mov r0, r1 - 8022b72: 602b str r3, [r5, #0] - 8022b74: f7df f943 bl 8001dfe <_isatty> - 8022b78: 1c43 adds r3, r0, #1 - 8022b7a: d102 bne.n 8022b82 <_isatty_r+0x1a> - 8022b7c: 682b ldr r3, [r5, #0] - 8022b7e: b103 cbz r3, 8022b82 <_isatty_r+0x1a> - 8022b80: 6023 str r3, [r4, #0] - 8022b82: bd38 pop {r3, r4, r5, pc} - 8022b84: 2401a5e0 .word 0x2401a5e0 - -08022b88 <_sbrk_r>: - 8022b88: b538 push {r3, r4, r5, lr} - 8022b8a: 4d06 ldr r5, [pc, #24] ; (8022ba4 <_sbrk_r+0x1c>) - 8022b8c: 2300 movs r3, #0 - 8022b8e: 4604 mov r4, r0 - 8022b90: 4608 mov r0, r1 - 8022b92: 602b str r3, [r5, #0] - 8022b94: f7df f94c bl 8001e30 <_sbrk> - 8022b98: 1c43 adds r3, r0, #1 - 8022b9a: d102 bne.n 8022ba2 <_sbrk_r+0x1a> - 8022b9c: 682b ldr r3, [r5, #0] - 8022b9e: b103 cbz r3, 8022ba2 <_sbrk_r+0x1a> - 8022ba0: 6023 str r3, [r4, #0] - 8022ba2: bd38 pop {r3, r4, r5, pc} - 8022ba4: 2401a5e0 .word 0x2401a5e0 - -08022ba8 : - 8022ba8: b508 push {r3, lr} - 8022baa: 2006 movs r0, #6 - 8022bac: f000 f85a bl 8022c64 - 8022bb0: 2001 movs r0, #1 - 8022bb2: f7df f8e1 bl 8001d78 <_exit> - -08022bb6 <_realloc_r>: - 8022bb6: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} - 8022bba: 4680 mov r8, r0 - 8022bbc: 4614 mov r4, r2 - 8022bbe: 460e mov r6, r1 - 8022bc0: b921 cbnz r1, 8022bcc <_realloc_r+0x16> - 8022bc2: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr} - 8022bc6: 4611 mov r1, r2 - 8022bc8: f7ff b9ae b.w 8021f28 <_malloc_r> - 8022bcc: b92a cbnz r2, 8022bda <_realloc_r+0x24> - 8022bce: f7ff f937 bl 8021e40 <_free_r> - 8022bd2: 4625 mov r5, r4 - 8022bd4: 4628 mov r0, r5 - 8022bd6: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} - 8022bda: f000 f85f bl 8022c9c <_malloc_usable_size_r> - 8022bde: 4284 cmp r4, r0 - 8022be0: 4607 mov r7, r0 - 8022be2: d802 bhi.n 8022bea <_realloc_r+0x34> - 8022be4: ebb4 0f50 cmp.w r4, r0, lsr #1 - 8022be8: d812 bhi.n 8022c10 <_realloc_r+0x5a> - 8022bea: 4621 mov r1, r4 - 8022bec: 4640 mov r0, r8 - 8022bee: f7ff f99b bl 8021f28 <_malloc_r> - 8022bf2: 4605 mov r5, r0 - 8022bf4: 2800 cmp r0, #0 - 8022bf6: d0ed beq.n 8022bd4 <_realloc_r+0x1e> - 8022bf8: 42bc cmp r4, r7 - 8022bfa: 4622 mov r2, r4 - 8022bfc: 4631 mov r1, r6 - 8022bfe: bf28 it cs - 8022c00: 463a movcs r2, r7 - 8022c02: f7ff f8f0 bl 8021de6 - 8022c06: 4631 mov r1, r6 - 8022c08: 4640 mov r0, r8 - 8022c0a: f7ff f919 bl 8021e40 <_free_r> - 8022c0e: e7e1 b.n 8022bd4 <_realloc_r+0x1e> - 8022c10: 4635 mov r5, r6 - 8022c12: e7df b.n 8022bd4 <_realloc_r+0x1e> - -08022c14 <_raise_r>: - 8022c14: 291f cmp r1, #31 - 8022c16: b538 push {r3, r4, r5, lr} - 8022c18: 4604 mov r4, r0 - 8022c1a: 460d mov r5, r1 - 8022c1c: d904 bls.n 8022c28 <_raise_r+0x14> - 8022c1e: 2316 movs r3, #22 - 8022c20: 6003 str r3, [r0, #0] - 8022c22: f04f 30ff mov.w r0, #4294967295 - 8022c26: bd38 pop {r3, r4, r5, pc} - 8022c28: 6bc2 ldr r2, [r0, #60] ; 0x3c - 8022c2a: b112 cbz r2, 8022c32 <_raise_r+0x1e> - 8022c2c: f852 3021 ldr.w r3, [r2, r1, lsl #2] - 8022c30: b94b cbnz r3, 8022c46 <_raise_r+0x32> - 8022c32: 4620 mov r0, r4 - 8022c34: f000 f830 bl 8022c98 <_getpid_r> - 8022c38: 462a mov r2, r5 - 8022c3a: 4601 mov r1, r0 - 8022c3c: 4620 mov r0, r4 - 8022c3e: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} - 8022c42: f000 b817 b.w 8022c74 <_kill_r> - 8022c46: 2b01 cmp r3, #1 - 8022c48: d00a beq.n 8022c60 <_raise_r+0x4c> - 8022c4a: 1c59 adds r1, r3, #1 - 8022c4c: d103 bne.n 8022c56 <_raise_r+0x42> - 8022c4e: 2316 movs r3, #22 - 8022c50: 6003 str r3, [r0, #0] - 8022c52: 2001 movs r0, #1 - 8022c54: e7e7 b.n 8022c26 <_raise_r+0x12> - 8022c56: 2400 movs r4, #0 - 8022c58: f842 4025 str.w r4, [r2, r5, lsl #2] - 8022c5c: 4628 mov r0, r5 - 8022c5e: 4798 blx r3 - 8022c60: 2000 movs r0, #0 - 8022c62: e7e0 b.n 8022c26 <_raise_r+0x12> - -08022c64 : - 8022c64: 4b02 ldr r3, [pc, #8] ; (8022c70 ) - 8022c66: 4601 mov r1, r0 - 8022c68: 6818 ldr r0, [r3, #0] - 8022c6a: f7ff bfd3 b.w 8022c14 <_raise_r> - 8022c6e: bf00 nop - 8022c70: 240000a0 .word 0x240000a0 - -08022c74 <_kill_r>: - 8022c74: b538 push {r3, r4, r5, lr} - 8022c76: 4d07 ldr r5, [pc, #28] ; (8022c94 <_kill_r+0x20>) - 8022c78: 2300 movs r3, #0 - 8022c7a: 4604 mov r4, r0 - 8022c7c: 4608 mov r0, r1 - 8022c7e: 4611 mov r1, r2 - 8022c80: 602b str r3, [r5, #0] - 8022c82: f7df f867 bl 8001d54 <_kill> - 8022c86: 1c43 adds r3, r0, #1 - 8022c88: d102 bne.n 8022c90 <_kill_r+0x1c> - 8022c8a: 682b ldr r3, [r5, #0] - 8022c8c: b103 cbz r3, 8022c90 <_kill_r+0x1c> - 8022c8e: 6023 str r3, [r4, #0] - 8022c90: bd38 pop {r3, r4, r5, pc} - 8022c92: bf00 nop - 8022c94: 2401a5e0 .word 0x2401a5e0 - -08022c98 <_getpid_r>: - 8022c98: f7df b854 b.w 8001d44 <_getpid> - -08022c9c <_malloc_usable_size_r>: - 8022c9c: f851 3c04 ldr.w r3, [r1, #-4] - 8022ca0: 1f18 subs r0, r3, #4 - 8022ca2: 2b00 cmp r3, #0 - 8022ca4: bfbc itt lt - 8022ca6: 580b ldrlt r3, [r1, r0] - 8022ca8: 18c0 addlt r0, r0, r3 - 8022caa: 4770 bx lr - -08022cac <_init>: - 8022cac: b5f8 push {r3, r4, r5, r6, r7, lr} - 8022cae: bf00 nop - 8022cb0: bcf8 pop {r3, r4, r5, r6, r7} - 8022cb2: bc08 pop {r3} - 8022cb4: 469e mov lr, r3 - 8022cb6: 4770 bx lr - -08022cb8 <_fini>: - 8022cb8: b5f8 push {r3, r4, r5, r6, r7, lr} - 8022cba: bf00 nop - 8022cbc: bcf8 pop {r3, r4, r5, r6, r7} - 8022cbe: bc08 pop {r3} - 8022cc0: 469e mov lr, r3 - 8022cc2: 4770 bx lr diff --git a/Debug/TBD_TaxiBoard.map b/Debug/TBD_TaxiBoard.map deleted file mode 100644 index 13637b2..0000000 --- a/Debug/TBD_TaxiBoard.map +++ /dev/null @@ -1,36127 +0,0 @@ -Archive member included to satisfy reference by file (symbol) - -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-atoi.o) - ./Middlewares/Third_Party/LwIP/src/core/netif.o (atoi) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-exit.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard/crt0.o (exit) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-rand.o) - ./Middlewares/Third_Party/LwIP/src/core/tcp.o (rand) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strtol.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-atoi.o) (_strtol_r) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strtoul.o) - ./LWFTPC/lwftpc.o (strtoul) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-ctype_.o) - ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o (_ctype_) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-findfp.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-exit.o) (__stdio_exit_handler) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fwalk.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-findfp.o) (_fwalk_sglue) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-printf.o) - ./Core/Src/main.o (printf) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-putchar.o) - ./Middlewares/Third_Party/LwIP/src/core/netif.o (putchar) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-puts.o) - ./LWFTPC/lwftpc.o (puts) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-snprintf.o) - ./LWFTPC/lwftpc.o (snprintf) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-stdio.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-findfp.o) (__sread) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-wbuf.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-puts.o) (__swbuf_r) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-wsetup.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-puts.o) (__swsetup_r) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memcmp.o) - ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o (memcmp) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memmove.o) - ./Middlewares/Third_Party/LwIP/src/core/def.o (memmove) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memset.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard/crt0.o (memset) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strchr.o) - ./LWFTPC/lwftpc.o (strchr) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strncmp.o) - ./Middlewares/Third_Party/LwIP/src/core/def.o (strncmp) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-closer.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-stdio.o) (_close_r) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-impure.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-rand.o) (_impure_ptr) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lseekr.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-stdio.o) (_lseek_r) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-readr.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-stdio.o) (_read_r) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-writer.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-stdio.o) (_write_r) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-errno.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strtol.o) (__errno) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-init.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard/crt0.o (__libc_init_array) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lock.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-findfp.o) (__retarget_lock_init_recursive) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strcmp.o) - ./LWFTPC/lwftpc.o (strcmp) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memcpy-stub.o) - ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o (memcpy) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strlen.o) - ./LWFTPC/lwftpc.o (strlen) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-assert.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-rand.o) (__assert_func) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-freer.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-wsetup.o) (_free_r) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-malloc.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-rand.o) (malloc) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-mallocr.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-findfp.o) (_malloc_r) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-mlock.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-freer.o) (__malloc_lock) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-svfprintf.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-snprintf.o) (_svfprintf_r) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-vfprintf.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-printf.o) (_vfprintf_r) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-vfprintf_i.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-svfprintf.o) (_printf_i) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fflush.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-findfp.o) (_fflush_r) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fprintf.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-assert.o) (fiprintf) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fvwrite.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-vfprintf.o) (__sfvwrite_r) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-makebuf.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-wsetup.o) (__smakebuf_r) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-putc.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-putchar.o) (_putc_r) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fstatr.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-makebuf.o) (_fstat_r) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-isattyr.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-makebuf.o) (_isatty_r) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-sbrkr.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-mallocr.o) (_sbrk_r) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memchr.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-svfprintf.o) (memchr) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-abort.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-assert.o) (abort) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-reallocr.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-svfprintf.o) (_realloc_r) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-signal.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-abort.o) (raise) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-signalr.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-signal.o) (_kill_r) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-msizer.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-reallocr.o) (_malloc_usable_size_r) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard\libgcc.a(_aeabi_uldivmod.o) - ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o (__aeabi_uldivmod) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard\libgcc.a(_udivmoddi4.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard\libgcc.a(_aeabi_uldivmod.o) (__udivmoddi4) -C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard\libgcc.a(_dvmd_tls.o) - C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard\libgcc.a(_aeabi_uldivmod.o) (__aeabi_ldiv0) - -Discarded input sections - - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crti.o - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crti.o - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crti.o - .data 0x0000000000000000 0x4 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crtbegin.o - .rodata 0x0000000000000000 0x24 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crtbegin.o - .text 0x0000000000000000 0x7c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard/crt0.o - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard/crt0.o - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard/crt0.o - .ARM.extab 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard/crt0.o - .ARM.exidx 0x0000000000000000 0x10 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard/crt0.o - .debug_line 0x0000000000000000 0x76 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard/crt0.o - .debug_line_str - 0x0000000000000000 0xdd C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard/crt0.o - .debug_info 0x0000000000000000 0x24 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard/crt0.o - .debug_abbrev 0x0000000000000000 0x14 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard/crt0.o - .debug_aranges - 0x0000000000000000 0x20 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard/crt0.o - .debug_str 0x0000000000000000 0xe2 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard/crt0.o - .ARM.attributes - 0x0000000000000000 0x1c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard/crt0.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/freertos.o - .text 0x0000000000000000 0x0 ./Core/Src/freertos.o - .data 0x0000000000000000 0x0 ./Core/Src/freertos.o - .bss 0x0000000000000000 0x0 ./Core/Src/freertos.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/main.o - .text 0x0000000000000000 0x0 ./Core/Src/main.o - .data 0x0000000000000000 0x0 ./Core/Src/main.o - .bss 0x0000000000000000 0x0 ./Core/Src/main.o - .bss.ftpsem 0x0000000000000000 0x4 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0xac6 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x24a ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x2e ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x3b ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x22 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x8e ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x51 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x103 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x6a ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x1df ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x1c ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x22 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0xfb ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x1305 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x11f ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x27 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x211d1 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x6d ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x3d48 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x174 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x61 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x29 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x43 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x34 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x16 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x43 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x34 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x10 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x58 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x8e ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x1c ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x177 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x369 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x19b ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x5d ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x2462 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x1079 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x154 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x114 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x3f8 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0xac ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x788 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x228 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x66 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x3a6 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0xa80 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x129 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x3f9 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x275 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0xe42 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x3ca ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x45c ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x3c ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x4a ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x22c ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x67 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0xa5 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x1c4 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x22a ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x35 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x830 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x16 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x1ce ./Core/Src/main.o - .debug_macro 0x0000000000000000 0xb1d ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x29f ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x693 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0xa6 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x5e6 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x58 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x15a ./Core/Src/main.o - .debug_macro 0x0000000000000000 0xde ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x1c ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x26 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0x4ef ./Core/Src/main.o - .debug_macro 0x0000000000000000 0xb5 ./Core/Src/main.o - .debug_macro 0x0000000000000000 0xaa ./Core/Src/main.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_msp.o - .text 0x0000000000000000 0x0 ./Core/Src/stm32h7xx_hal_msp.o - .data 0x0000000000000000 0x0 ./Core/Src/stm32h7xx_hal_msp.o - .bss 0x0000000000000000 0x0 ./Core/Src/stm32h7xx_hal_msp.o - .text.HAL_FDCAN_MspDeInit - 0x0000000000000000 0xe4 ./Core/Src/stm32h7xx_hal_msp.o - .text.HAL_SD_MspDeInit - 0x0000000000000000 0x54 ./Core/Src/stm32h7xx_hal_msp.o - .text.HAL_TIM_Base_MspDeInit - 0x0000000000000000 0x38 ./Core/Src/stm32h7xx_hal_msp.o - .text.HAL_UART_MspDeInit - 0x0000000000000000 0xa0 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0xac6 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x24a ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x2e ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x3b ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x22 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x8e ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x51 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x103 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x6a ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x1df ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x1c ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x22 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0xfb ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x1305 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x11f ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x27 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x211d1 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x6d ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x3d48 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x174 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x61 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x29 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x43 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x34 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x16 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x43 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x34 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x10 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x58 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x8e ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x1c ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x177 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x369 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x19b ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x5d ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x2462 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x1079 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x154 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x114 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x3f8 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0xac ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x788 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x228 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x66 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x3a6 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0xa80 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x129 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x3f9 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x275 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0xe42 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x3ca ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x45c ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x3c ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x4a ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x22c ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x67 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0xa5 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x1c4 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x22a ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x35 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x830 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x16 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x1ce ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0xb1d ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x29f ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x693 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0xa6 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x5e6 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000000000 0x58 ./Core/Src/stm32h7xx_hal_msp.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_hal_timebase_tim.o - .text 0x0000000000000000 0x0 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .data 0x0000000000000000 0x0 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .bss 0x0000000000000000 0x0 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .text.HAL_SuspendTick - 0x0000000000000000 0x24 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .text.HAL_ResumeTick - 0x0000000000000000 0x24 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0xac6 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x24a ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x2e ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x3b ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x22 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x8e ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x51 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x103 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x6a ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x1df ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x1c ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x22 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0xfb ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x1305 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x11f ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x27 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x211d1 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x6d ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x3d48 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x174 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x61 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x29 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x43 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x34 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x16 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x43 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x34 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x10 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x58 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x8e ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x1c ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x177 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x369 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x19b ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x5d ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x2462 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x1079 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x154 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x114 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x3f8 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0xac ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x788 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x228 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x66 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x3a6 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0xa80 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x129 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x3f9 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x275 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0xe42 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x3ca ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x45c ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x3c ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x4a ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x22c ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x67 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0xa5 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x1c4 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x22a ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x35 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x830 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x16 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x1ce ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0xb1d ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x29f ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x693 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0xa6 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000000000 0x5e6 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/stm32h7xx_it.o - .text 0x0000000000000000 0x0 ./Core/Src/stm32h7xx_it.o - .data 0x0000000000000000 0x0 ./Core/Src/stm32h7xx_it.o - .bss 0x0000000000000000 0x0 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0xac6 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x24a ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x2e ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x3b ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x22 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x8e ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x51 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x103 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x6a ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x1df ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x1c ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x22 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0xfb ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x1305 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x11f ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x27 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x211d1 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x6d ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x3d48 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x174 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x61 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x29 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x43 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x34 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x16 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x43 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x34 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x10 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x58 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x8e ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x1c ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x177 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x369 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x19b ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x5d ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x2462 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x1079 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x154 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x114 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x3f8 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0xac ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x788 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x228 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x66 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x3a6 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0xa80 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x129 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x3f9 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x275 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0xe42 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x3ca ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x45c ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x3c ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x4a ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x22c ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x67 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0xa5 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x1c4 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x22a ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x35 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x830 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x16 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x1ce ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0xb1d ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x29f ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x693 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0xa6 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x5e6 ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000000000 0x58 ./Core/Src/stm32h7xx_it.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/syscalls.o - .text 0x0000000000000000 0x0 ./Core/Src/syscalls.o - .data 0x0000000000000000 0x0 ./Core/Src/syscalls.o - .bss 0x0000000000000000 0x0 ./Core/Src/syscalls.o - .bss.__env 0x0000000000000000 0x4 ./Core/Src/syscalls.o - .data.environ 0x0000000000000000 0x4 ./Core/Src/syscalls.o - .text.initialise_monitor_handles - 0x0000000000000000 0xe ./Core/Src/syscalls.o - .text._write 0x0000000000000000 0x38 ./Core/Src/syscalls.o - .text._open 0x0000000000000000 0x1c ./Core/Src/syscalls.o - .text._wait 0x0000000000000000 0x24 ./Core/Src/syscalls.o - .text._unlink 0x0000000000000000 0x24 ./Core/Src/syscalls.o - .text._times 0x0000000000000000 0x18 ./Core/Src/syscalls.o - .text._stat 0x0000000000000000 0x20 ./Core/Src/syscalls.o - .text._link 0x0000000000000000 0x24 ./Core/Src/syscalls.o - .text._fork 0x0000000000000000 0x1c ./Core/Src/syscalls.o - .text._execve 0x0000000000000000 0x28 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0xac6 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x22 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x29 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x43 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x34 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x174 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x369 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x16 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x43 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x34 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x10 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x58 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x8e ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x1c ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x177 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x35 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x10 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x10 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x10 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x6a ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x1c ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x52 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x22 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x10 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x52 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x1c ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x3d ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x35 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x16 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x16 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x29 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x24a ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x2e ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x3b ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x103 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x1df ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x1c ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x22 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0xfb ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x1305 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x11f ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x27 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x211d1 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x6d ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x3d48 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x19b ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x5d ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x2462 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x1079 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x154 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x114 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x3f8 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0xac ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x788 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x228 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x66 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x3a6 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0xa80 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x129 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x3f9 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x275 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0xe42 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x3ca ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x45c ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x3c ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x4a ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x22c ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x67 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0xa5 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x1c4 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x22a ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x35 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x830 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x16 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x1ce ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0xb1d ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x29f ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x693 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0xa6 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x5e6 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x58 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x1c ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x10 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x16 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x147 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x10 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x28 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x10 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x17 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x10 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x460 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x43 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x7c ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x17 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x118 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x19 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x11f ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x82 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x66 ./Core/Src/syscalls.o - .debug_macro 0x0000000000000000 0x739 ./Core/Src/syscalls.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/sysmem.o - .text 0x0000000000000000 0x0 ./Core/Src/sysmem.o - .data 0x0000000000000000 0x0 ./Core/Src/sysmem.o - .bss 0x0000000000000000 0x0 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0xac6 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x24a ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x2e ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x3b ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x22 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x8e ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x51 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x103 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x6a ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x1df ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x1c ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x22 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0xfb ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x1305 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x11f ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x27 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x211d1 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x6d ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x3d48 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x174 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x61 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x29 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x43 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x34 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x16 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x43 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x34 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x10 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x58 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x8e ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x1c ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x177 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x369 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x19b ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x5d ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x2462 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x1079 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x154 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x114 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x3f8 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0xac ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x788 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x228 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x66 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x3a6 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0xa80 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x129 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x3f9 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x275 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0xe42 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x3ca ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x45c ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x3c ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x4a ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x22c ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x67 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0xa5 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x1c4 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x22a ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x35 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x830 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x16 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x1ce ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0xb1d ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x29f ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x693 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0xa6 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x5e6 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x58 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0xe8 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x16 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x10 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x16 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x35 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x16 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x29 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x1c ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x10 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x1c ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x16 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x147 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x10 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x22 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x10 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x1c ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x52 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x10 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x52 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0xc1 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x1c ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x3d ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0xc8 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x16 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x10 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x10 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x35 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x28 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x10 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x17 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x10 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x460 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x43 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x7c ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x17 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x118 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x19 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x11f ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x82 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x66 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x739 ./Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x31a ./Core/Src/sysmem.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .group 0x0000000000000000 0xc ./Core/Src/system_stm32h7xx.o - .text 0x0000000000000000 0x0 ./Core/Src/system_stm32h7xx.o - .data 0x0000000000000000 0x0 ./Core/Src/system_stm32h7xx.o - .bss 0x0000000000000000 0x0 ./Core/Src/system_stm32h7xx.o - .text.SystemCoreClockUpdate - 0x0000000000000000 0x2f4 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0xac6 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x2e ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x3b ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x22 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x8e ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x51 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x103 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x6a ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x1df ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x1c ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x22 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0xfb ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x1305 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x11f ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x27 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x211d1 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x6d ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x24a ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x3d48 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x174 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x61 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x29 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x43 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x34 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x16 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x43 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x34 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x10 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x58 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x8e ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x1c ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x177 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x369 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x19b ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x5d ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x2462 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x1079 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x154 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x114 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x3f8 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0xac ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x788 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x228 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x66 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x3a6 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0xa80 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x129 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x3f9 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x275 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0xe42 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x3ca ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x45c ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x3c ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x4a ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x22c ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x67 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0xa5 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x1c4 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x22a ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x35 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x830 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x16 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x1ce ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0xb1d ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x29f ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x693 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0xa6 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000000000 0x5e6 ./Core/Src/system_stm32h7xx.o - .text 0x0000000000000000 0x14 ./Core/Startup/startup_stm32h723vghx.o - .data 0x0000000000000000 0x0 ./Core/Startup/startup_stm32h723vghx.o - .bss 0x0000000000000000 0x0 ./Core/Startup/startup_stm32h723vghx.o - .group 0x0000000000000000 0xc ./Drivers/BSP/Components/lan8742/lan8742.o - .group 0x0000000000000000 0xc ./Drivers/BSP/Components/lan8742/lan8742.o - .group 0x0000000000000000 0xc ./Drivers/BSP/Components/lan8742/lan8742.o - .group 0x0000000000000000 0xc ./Drivers/BSP/Components/lan8742/lan8742.o - .group 0x0000000000000000 0xc ./Drivers/BSP/Components/lan8742/lan8742.o - .group 0x0000000000000000 0xc ./Drivers/BSP/Components/lan8742/lan8742.o - .group 0x0000000000000000 0xc ./Drivers/BSP/Components/lan8742/lan8742.o - .group 0x0000000000000000 0xc ./Drivers/BSP/Components/lan8742/lan8742.o - .text 0x0000000000000000 0x0 ./Drivers/BSP/Components/lan8742/lan8742.o - .data 0x0000000000000000 0x0 ./Drivers/BSP/Components/lan8742/lan8742.o - .bss 0x0000000000000000 0x0 ./Drivers/BSP/Components/lan8742/lan8742.o - .text.LAN8742_DeInit - 0x0000000000000000 0x3a ./Drivers/BSP/Components/lan8742/lan8742.o - .text.LAN8742_DisablePowerDownMode - 0x0000000000000000 0x5a ./Drivers/BSP/Components/lan8742/lan8742.o - .text.LAN8742_EnablePowerDownMode - 0x0000000000000000 0x5a ./Drivers/BSP/Components/lan8742/lan8742.o - .text.LAN8742_StartAutoNego - 0x0000000000000000 0x5a ./Drivers/BSP/Components/lan8742/lan8742.o - .text.LAN8742_SetLinkState - 0x0000000000000000 0x98 ./Drivers/BSP/Components/lan8742/lan8742.o - .text.LAN8742_EnableLoopbackMode - 0x0000000000000000 0x5a ./Drivers/BSP/Components/lan8742/lan8742.o - .text.LAN8742_DisableLoopbackMode - 0x0000000000000000 0x5a ./Drivers/BSP/Components/lan8742/lan8742.o - .text.LAN8742_EnableIT - 0x0000000000000000 0x5c ./Drivers/BSP/Components/lan8742/lan8742.o - .text.LAN8742_DisableIT - 0x0000000000000000 0x5e ./Drivers/BSP/Components/lan8742/lan8742.o - .text.LAN8742_ClearIT - 0x0000000000000000 0x38 ./Drivers/BSP/Components/lan8742/lan8742.o - .text.LAN8742_GetITStatus - 0x0000000000000000 0x4e ./Drivers/BSP/Components/lan8742/lan8742.o - .debug_macro 0x0000000000000000 0xac6 ./Drivers/BSP/Components/lan8742/lan8742.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/BSP/Components/lan8742/lan8742.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/BSP/Components/lan8742/lan8742.o - .debug_macro 0x0000000000000000 0x51 ./Drivers/BSP/Components/lan8742/lan8742.o - .debug_macro 0x0000000000000000 0x103 ./Drivers/BSP/Components/lan8742/lan8742.o - .debug_macro 0x0000000000000000 0x6a ./Drivers/BSP/Components/lan8742/lan8742.o - .debug_macro 0x0000000000000000 0x1df ./Drivers/BSP/Components/lan8742/lan8742.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .data 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .bss 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_DeInit - 0x0000000000000000 0xc0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_MspInit - 0x0000000000000000 0xe ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_MspDeInit - 0x0000000000000000 0xe ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_InitTick - 0x0000000000000000 0x6c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_GetTickPrio - 0x0000000000000000 0x18 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_SetTickFreq - 0x0000000000000000 0x50 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_GetTickFreq - 0x0000000000000000 0x18 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_SuspendTick - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_ResumeTick - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_GetHalVersion - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_GetREVID - 0x0000000000000000 0x18 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_GetDEVID - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_GetUIDw0 - 0x0000000000000000 0x18 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_GetUIDw1 - 0x0000000000000000 0x18 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_GetUIDw2 - 0x0000000000000000 0x18 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_SYSCFG_VREFBUF_VoltageScalingConfig - 0x0000000000000000 0x28 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_SYSCFG_VREFBUF_HighImpedanceConfig - 0x0000000000000000 0x28 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_SYSCFG_VREFBUF_TrimmingConfig - 0x0000000000000000 0x28 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_SYSCFG_EnableVREFBUF - 0x0000000000000000 0x48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_SYSCFG_DisableVREFBUF - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_SYSCFG_AnalogSwitchConfig - 0x0000000000000000 0x2c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_SYSCFG_EnableBOOST - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_SYSCFG_DisableBOOST - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_SYSCFG_CM7BootAddConfig - 0x0000000000000000 0x54 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_EnableCompensationCell - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_DisableCompensationCell - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_SYSCFG_EnableIOSpeedOptimize - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_SYSCFG_DisableIOSpeedOptimize - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_SYSCFG_CompensationCodeSelect - 0x0000000000000000 0x28 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_SYSCFG_CompensationCodeConfig - 0x0000000000000000 0x30 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_SYSCFG_ADC2ALT_Rout0Config - 0x0000000000000000 0x28 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_SYSCFG_ADC2ALT_Rout1Config - 0x0000000000000000 0x28 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_DBGMCU_EnableDBGSleepMode - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_DBGMCU_DisableDBGSleepMode - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_DBGMCU_EnableDBGStopMode - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_DBGMCU_DisableDBGStopMode - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_DBGMCU_EnableDBGStandbyMode - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_DBGMCU_DisableDBGStandbyMode - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_EnableDomain3DBGStopMode - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_DisableDomain3DBGStopMode - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_EnableDomain3DBGStandbyMode - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_DisableDomain3DBGStandbyMode - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_SetFMCMemorySwappingConfig - 0x0000000000000000 0x28 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_GetFMCMemorySwappingConfig - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_EXTI_EdgeConfig - 0x0000000000000000 0xd0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_EXTI_GenerateSWInterrupt - 0x0000000000000000 0x40 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_EXTI_D1_ClearFlag - 0x0000000000000000 0x30 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_EXTI_D1_EventInputConfig - 0x0000000000000000 0xec ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .text.HAL_EXTI_D3_EventInputConfig - 0x0000000000000000 0xd0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0xac6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x24a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x3b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0xfb ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x1305 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x11f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x211d1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x3d48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x61 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x29 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x177 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x369 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x19b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x5d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x2462 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x1079 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x154 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x3f8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x788 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x3a6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0xa80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x129 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x3f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x275 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0xe42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x3ca ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x45c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x22c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x67 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0xa5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x1c4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x22a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x35 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x830 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x1ce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0xb1d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x29f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x693 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0xa6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000000000 0x5e6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .text 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .data 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .bss 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .text.__NVIC_DisableIRQ - 0x0000000000000000 0x48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .text.__NVIC_GetPendingIRQ - 0x0000000000000000 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .text.__NVIC_SetPendingIRQ - 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .text.__NVIC_ClearPendingIRQ - 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .text.__NVIC_GetActive - 0x0000000000000000 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .text.__NVIC_GetPriority - 0x0000000000000000 0x50 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .text.NVIC_DecodePriority - 0x0000000000000000 0x6e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .text.__NVIC_SystemReset - 0x0000000000000000 0x2c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .text.SysTick_Config - 0x0000000000000000 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .text.HAL_NVIC_DisableIRQ - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .text.HAL_NVIC_SystemReset - 0x0000000000000000 0x8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .text.HAL_SYSTICK_Config - 0x0000000000000000 0x18 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .text.HAL_NVIC_GetPriorityGrouping - 0x0000000000000000 0xe ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .text.HAL_NVIC_GetPriority - 0x0000000000000000 0x2c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .text.HAL_NVIC_SetPendingIRQ - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .text.HAL_NVIC_GetPendingIRQ - 0x0000000000000000 0x1e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .text.HAL_NVIC_ClearPendingIRQ - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .text.HAL_NVIC_GetActive - 0x0000000000000000 0x1e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .text.HAL_SYSTICK_CLKSourceConfig - 0x0000000000000000 0x38 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .text.HAL_SYSTICK_IRQHandler - 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .text.HAL_SYSTICK_Callback - 0x0000000000000000 0xe ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .text.HAL_GetCurrentCPUID - 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0xac6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x24a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x3b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0xfb ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x1305 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x11f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x211d1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x3d48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x61 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x29 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x177 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x369 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x19b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x5d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x2462 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x1079 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x154 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x3f8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x788 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x3a6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0xa80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x129 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x3f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x275 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0xe42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x3ca ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x45c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x22c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x67 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0xa5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x1c4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x22a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x35 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x830 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x1ce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0xb1d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x29f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x693 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0xa6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x5e6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .text 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .data 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .bss 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .text.HAL_DMA_DeInit - 0x0000000000000000 0x36c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .text.HAL_DMA_Start - 0x0000000000000000 0x240 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .text.HAL_DMA_Start_IT - 0x0000000000000000 0x4d4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .text.HAL_DMA_Abort - 0x0000000000000000 0x63c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .text.HAL_DMA_Abort_IT - 0x0000000000000000 0x48c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .text.HAL_DMA_PollForTransfer - 0x0000000000000000 0x754 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .text.HAL_DMA_RegisterCallback - 0x0000000000000000 0xb4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .text.HAL_DMA_UnRegisterCallback - 0x0000000000000000 0xdc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .text.HAL_DMA_GetState - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .text.HAL_DMA_GetError - 0x0000000000000000 0x18 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .text.DMA_SetConfig - 0x0000000000000000 0x358 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0xac6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x24a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x3b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0xfb ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x1305 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x11f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x211d1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x3d48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x61 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x29 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x177 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x369 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x19b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x5d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x2462 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x1079 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x154 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x3f8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x788 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x3a6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0xa80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x129 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x3f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x275 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0xe42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x3ca ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x45c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x22c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x67 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0xa5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x1c4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x22a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x35 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x830 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x1ce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0xb1d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x29f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x693 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0xa6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000000000 0x5e6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .text 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .data 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .bss 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .text.HAL_DMAEx_MultiBufferStart - 0x0000000000000000 0x404 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .text.HAL_DMAEx_MultiBufferStart_IT - 0x0000000000000000 0x6bc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .text.HAL_DMAEx_ChangeMemory - 0x0000000000000000 0x138 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .text.HAL_DMAEx_ConfigMuxSync - 0x0000000000000000 0x18c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .text.HAL_DMAEx_ConfigMuxRequestGenerator - 0x0000000000000000 0x170 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .text.HAL_DMAEx_EnableMuxRequestGenerator - 0x0000000000000000 0x3e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .text.HAL_DMAEx_DisableMuxRequestGenerator - 0x0000000000000000 0x3e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .text.HAL_DMAEx_MUX_IRQHandler - 0x0000000000000000 0xa4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .text.DMA_MultiBufferSetConfig - 0x0000000000000000 0x16c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_info 0x0000000000000000 0x831 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_abbrev 0x0000000000000000 0x1cc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_aranges - 0x0000000000000000 0x60 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_rnglists - 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x2f3 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0xac6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x24a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x3b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0xfb ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x1305 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x11f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x211d1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x3d48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x61 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x29 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x177 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x369 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x19b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x5d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x2462 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x1079 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x154 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x3f8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x788 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x3a6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0xa80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x129 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x3f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x275 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0xe42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x3ca ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x45c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x22c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x67 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0xa5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x1c4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x22a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x35 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x830 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x1ce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0xb1d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x29f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x693 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0xa6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_macro 0x0000000000000000 0x5e6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_line 0x0000000000000000 0x12d7 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_str 0x0000000000000000 0x1577c9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .comment 0x0000000000000000 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .debug_frame 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .ARM.attributes - 0x0000000000000000 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .data 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .bss 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_DeInit - 0x0000000000000000 0x28 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_MspInit - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_MspDeInit - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_Start - 0x0000000000000000 0xc4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_Stop - 0x0000000000000000 0xa0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_Transmit - 0x0000000000000000 0x12e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_RegisterRxAllocateCallback - 0x0000000000000000 0x2a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_UnRegisterRxAllocateCallback - 0x0000000000000000 0x24 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_RxAllocateCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_RxLinkCallback - 0x0000000000000000 0x1a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_RegisterRxLinkCallback - 0x0000000000000000 0x2a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_UnRegisterRxLinkCallback - 0x0000000000000000 0x24 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_GetRxDataErrorCode - 0x0000000000000000 0x24 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_RegisterTxFreeCallback - 0x0000000000000000 0x2a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_UnRegisterTxFreeCallback - 0x0000000000000000 0x24 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_TxFreeCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_TxCpltCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_RxCpltCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_ErrorCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_GetDMAConfig - 0x0000000000000000 0x138 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_SetDMAConfig - 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_SetMACFilterConfig - 0x0000000000000000 0x98 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_GetMACFilterConfig - 0x0000000000000000 0x12a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_SetSourceMACAddrMatch - 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_SetHashTable - 0x0000000000000000 0x36 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_SetRxVLANIdentifier - 0x0000000000000000 0x70 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_EnterPowerDownMode - 0x0000000000000000 0x6c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_ExitPowerDownMode - 0x0000000000000000 0x64 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_SetWakeUpFilter - 0x0000000000000000 0x5e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_GetState - 0x0000000000000000 0x1a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_GetError - 0x0000000000000000 0x1a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_GetMACError - 0x0000000000000000 0x1a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_GetMACWakeUpSource - 0x0000000000000000 0x1a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0xac6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x24a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x3b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0xfb ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x1305 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x11f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x211d1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x3d48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x61 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x29 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x177 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x369 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x19b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x5d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x2462 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x1079 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x154 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x3f8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x788 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x3a6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0xa80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x129 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x3f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x275 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0xe42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x3ca ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x45c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x22c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x67 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0xa5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x1c4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x22a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x35 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x830 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x1ce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0xb1d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x29f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x693 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0xa6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000000000 0x5e6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .text 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .data 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .bss 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .text.HAL_ETHEx_EnableARPOffload - 0x0000000000000000 0x24 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .text.HAL_ETHEx_DisableARPOffload - 0x0000000000000000 0x24 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .text.HAL_ETHEx_SetARPAddressMatch - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .text.HAL_ETHEx_SetL4FilterConfig - 0x0000000000000000 0x86 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .text.HAL_ETHEx_GetL4FilterConfig - 0x0000000000000000 0x9a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .text.HAL_ETHEx_SetL3FilterConfig - 0x0000000000000000 0xe8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .text.HAL_ETHEx_GetL3FilterConfig - 0x0000000000000000 0x122 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .text.HAL_ETHEx_EnableL3L4Filtering - 0x0000000000000000 0x24 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .text.HAL_ETHEx_DisableL3L4Filtering - 0x0000000000000000 0x24 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .text.HAL_ETHEx_GetRxVLANConfig - 0x0000000000000000 0xde ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .text.HAL_ETHEx_SetRxVLANConfig - 0x0000000000000000 0x78 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .text.HAL_ETHEx_SetVLANHashTable - 0x0000000000000000 0x30 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .text.HAL_ETHEx_GetTxVLANConfig - 0x0000000000000000 0xb0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .text.HAL_ETHEx_SetTxVLANConfig - 0x0000000000000000 0x7e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .text.HAL_ETHEx_SetTxVLANIdentifier - 0x0000000000000000 0x4c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .text.HAL_ETHEx_EnableVLANProcessing - 0x0000000000000000 0x24 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .text.HAL_ETHEx_DisableVLANProcessing - 0x0000000000000000 0x24 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .text.HAL_ETHEx_EnterLPIMode - 0x0000000000000000 0x54 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .text.HAL_ETHEx_ExitLPIMode - 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .text.HAL_ETHEx_GetMACLPIEvent - 0x0000000000000000 0x1a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_info 0x0000000000000000 0x1564 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_abbrev 0x0000000000000000 0x1e1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_aranges - 0x0000000000000000 0xb8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_rnglists - 0x0000000000000000 0x8b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x30b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0xac6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x24a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x3b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0xfb ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x1305 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x11f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x211d1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x3d48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x61 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x29 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x177 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x369 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x19b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x5d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x2462 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x1079 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x154 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x3f8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x788 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x3a6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0xa80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x129 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x3f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x275 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0xe42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x3ca ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x45c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x22c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x67 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0xa5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x1c4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x22a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x35 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x830 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x1ce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0xb1d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x29f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x693 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0xa6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_macro 0x0000000000000000 0x5e6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_line 0x0000000000000000 0xd9c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_str 0x0000000000000000 0x158286 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .comment 0x0000000000000000 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .debug_frame 0x0000000000000000 0x330 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .ARM.attributes - 0x0000000000000000 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .text 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .data 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .bss 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .text.HAL_EXTI_SetConfigLine - 0x0000000000000000 0x258 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .text.HAL_EXTI_GetConfigLine - 0x0000000000000000 0x1cc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .text.HAL_EXTI_ClearConfigLine - 0x0000000000000000 0x194 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .text.HAL_EXTI_RegisterCallback - 0x0000000000000000 0x3e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .text.HAL_EXTI_GetHandle - 0x0000000000000000 0x28 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .text.HAL_EXTI_IRQHandler - 0x0000000000000000 0x60 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .text.HAL_EXTI_GetPending - 0x0000000000000000 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .text.HAL_EXTI_ClearPending - 0x0000000000000000 0x48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .text.HAL_EXTI_GenerateSWI - 0x0000000000000000 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_info 0x0000000000000000 0x913 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_abbrev 0x0000000000000000 0x1d8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_aranges - 0x0000000000000000 0x60 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_rnglists - 0x0000000000000000 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x301 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0xac6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x24a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x3b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0xfb ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x1305 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x11f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x211d1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x3d48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x61 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x29 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x177 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x369 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x19b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x5d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x2462 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x1079 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x154 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x3f8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x788 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x3a6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0xa80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x129 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x3f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x275 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0xe42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x3ca ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x45c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x22c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x67 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0xa5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x1c4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x22a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x35 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x830 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x1ce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0xb1d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x29f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x693 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0xa6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_macro 0x0000000000000000 0x5e6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_line 0x0000000000000000 0xe18 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_str 0x0000000000000000 0x15751f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .comment 0x0000000000000000 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .debug_frame 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .ARM.attributes - 0x0000000000000000 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .data 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .bss 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .rodata.DLCtoBytes - 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_DeInit - 0x0000000000000000 0x48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_MspInit - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_MspDeInit - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_EnterPowerDownMode - 0x0000000000000000 0x62 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_ExitPowerDownMode - 0x0000000000000000 0x72 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_ConfigClockCalibration - 0x0000000000000000 0xcc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_GetClockCalibrationState - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_ResetClockCalibrationState - 0x0000000000000000 0x68 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_GetClockCalibrationCounter - 0x0000000000000000 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_ConfigFilter - 0x0000000000000000 0xec ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_ConfigGlobalFilter - 0x0000000000000000 0x5a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_ConfigExtendedIdMask - 0x0000000000000000 0x42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_ConfigRxFifoOverwrite - 0x0000000000000000 0x72 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_ConfigFifoWatermark - 0x0000000000000000 0x98 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_ConfigRamWatchdog - 0x0000000000000000 0x4c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_ConfigTimestampCounter - 0x0000000000000000 0x4c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_EnableTimestampCounter - 0x0000000000000000 0x4c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_DisableTimestampCounter - 0x0000000000000000 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_GetTimestampCounter - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_ResetTimestampCounter - 0x0000000000000000 0x40 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_ConfigTimeoutCounter - 0x0000000000000000 0x56 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_EnableTimeoutCounter - 0x0000000000000000 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_DisableTimeoutCounter - 0x0000000000000000 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_GetTimeoutCounter - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_ResetTimeoutCounter - 0x0000000000000000 0x40 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_ConfigTxDelayCompensation - 0x0000000000000000 0x48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_EnableTxDelayCompensation - 0x0000000000000000 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_DisableTxDelayCompensation - 0x0000000000000000 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_EnableISOMode - 0x0000000000000000 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_DisableISOMode - 0x0000000000000000 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_EnableEdgeFiltering - 0x0000000000000000 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_DisableEdgeFiltering - 0x0000000000000000 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_Start - 0x0000000000000000 0x56 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_Stop - 0x0000000000000000 0xee ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_AddMessageToTxFifoQ - 0x0000000000000000 0xb6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_AddMessageToTxBuffer - 0x0000000000000000 0xe0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_EnableTxBufferRequest - 0x0000000000000000 0x42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_GetLatestTxFifoQRequestBuffer - 0x0000000000000000 0x1a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_AbortTxRequest - 0x0000000000000000 0x42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_GetRxMessage - 0x0000000000000000 0x2dc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_GetTxEvent - 0x0000000000000000 0x13e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_GetHighPriorityMessageStatus - 0x0000000000000000 0x5c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_GetProtocolStatus - 0x0000000000000000 0xa0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_GetErrorCounters - 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_IsRxBufferMessageAvailable - 0x0000000000000000 0x8c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_IsTxBufferMessagePending - 0x0000000000000000 0x2c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_GetRxFifoFillLevel - 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_GetTxFifoFreeLevel - 0x0000000000000000 0x24 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_IsRestrictedOperationMode - 0x0000000000000000 0x24 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_ExitRestrictedOperationMode - 0x0000000000000000 0x4e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_TT_ConfigOperation - 0x0000000000000000 0x270 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_TT_ConfigReferenceMessage - 0x0000000000000000 0x80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_TT_ConfigTrigger - 0x0000000000000000 0x11a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_TT_SetGlobalTime - 0x0000000000000000 0xec ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_TT_SetClockSynchronization - 0x0000000000000000 0xf0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_TT_ConfigStopWatch - 0x0000000000000000 0x96 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_TT_ConfigRegisterTimeMark - 0x0000000000000000 0x140 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_TT_EnableRegisterTimeMarkPulse - 0x0000000000000000 0x8a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_TT_DisableRegisterTimeMarkPulse - 0x0000000000000000 0x8a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_TT_EnableTriggerTimeMarkPulse - 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_TT_DisableTriggerTimeMarkPulse - 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_TT_EnableHardwareGapControl - 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_TT_DisableHardwareGapControl - 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_TT_EnableTimeMarkGapControl - 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_TT_DisableTimeMarkGapControl - 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_TT_SetNextIsGap - 0x0000000000000000 0xce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_TT_SetEndOfGap - 0x0000000000000000 0xce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_TT_ConfigExternalSyncPhase - 0x0000000000000000 0x78 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_TT_EnableExternalSynchronization - 0x0000000000000000 0x8a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_TT_DisableExternalSynchronization - 0x0000000000000000 0x8a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_TT_GetOperationStatus - 0x0000000000000000 0xbc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_ConfigInterruptLines - 0x0000000000000000 0x6c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_TT_ConfigInterruptLines - 0x0000000000000000 0x6c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_ActivateNotification - 0x0000000000000000 0xf4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_DeactivateNotification - 0x0000000000000000 0xdc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_TT_ActivateNotification - 0x0000000000000000 0x9a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_TT_DeactivateNotification - 0x0000000000000000 0x98 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_GetState - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_FDCAN_GetError - 0x0000000000000000 0x1a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.FDCAN_CopyMessageToRAM - 0x0000000000000000 0xfc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0xac6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x24a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x3b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0xfb ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x1305 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x11f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x211d1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x3d48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x61 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x29 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x177 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x369 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x19b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x5d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x2462 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x1079 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x154 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x3f8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x788 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x3a6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0xa80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x129 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x3f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x275 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0xe42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x3ca ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x45c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x22c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x67 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0xa5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x1c4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x22a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x35 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x830 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x1ce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0xb1d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x29f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x693 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0xa6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x0000000000000000 0x5e6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .text 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .data 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .bss 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .bss.pFlash 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .text.HAL_FLASH_Program - 0x0000000000000000 0xdc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .text.HAL_FLASH_Program_IT - 0x0000000000000000 0xd4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .text.HAL_FLASH_IRQHandler - 0x0000000000000000 0x15c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .text.HAL_FLASH_EndOfOperationCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .text.HAL_FLASH_OperationErrorCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .text.HAL_FLASH_Unlock - 0x0000000000000000 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .text.HAL_FLASH_Lock - 0x0000000000000000 0x30 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .text.HAL_FLASH_OB_Unlock - 0x0000000000000000 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .text.HAL_FLASH_OB_Lock - 0x0000000000000000 0x30 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .text.HAL_FLASH_OB_Launch - 0x0000000000000000 0x4c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .text.HAL_FLASH_GetError - 0x0000000000000000 0x18 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .text.FLASH_WaitForLastOperation - 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .text.FLASH_OB_WaitForLastOperation - 0x0000000000000000 0x78 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .text.FLASH_CRC_WaitForLastOperation - 0x0000000000000000 0x94 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_info 0x0000000000000000 0x75a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_abbrev 0x0000000000000000 0x252 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_aranges - 0x0000000000000000 0x88 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_rnglists - 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x2f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0xac6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x24a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x3b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0xfb ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x1305 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x11f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x211d1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x3d48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x61 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x29 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x177 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x369 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x19b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x5d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x2462 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x1079 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x154 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x3f8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x788 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x3a6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0xa80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x129 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x3f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x275 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0xe42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x3ca ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x45c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x22c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x67 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0xa5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x1c4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x22a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x35 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x830 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x1ce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0xb1d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x29f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x693 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0xa6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_macro 0x0000000000000000 0x5e6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_line 0x0000000000000000 0xdce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_str 0x0000000000000000 0x15766c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .comment 0x0000000000000000 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .debug_frame 0x0000000000000000 0x1fc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .ARM.attributes - 0x0000000000000000 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .data 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .bss 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.HAL_FLASHEx_Erase - 0x0000000000000000 0x118 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.HAL_FLASHEx_Erase_IT - 0x0000000000000000 0xdc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.HAL_FLASHEx_OBProgram - 0x0000000000000000 0x160 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.HAL_FLASHEx_OBGetConfig - 0x0000000000000000 0xda ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.HAL_FLASHEx_Unlock_Bank1 - 0x0000000000000000 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.HAL_FLASHEx_Lock_Bank1 - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.HAL_FLASHEx_ComputeCRC - 0x0000000000000000 0x104 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.FLASH_MassErase - 0x0000000000000000 0x48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.FLASH_Erase_Sector - 0x0000000000000000 0x48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.FLASH_OB_EnableWRP - 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.FLASH_OB_DisableWRP - 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.FLASH_OB_GetWRP - 0x0000000000000000 0x4c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.FLASH_OB_RDPConfig - 0x0000000000000000 0x28 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.FLASH_OB_GetRDP - 0x0000000000000000 0x38 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.FLASH_OB_UserConfig - 0x0000000000000000 0x160 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.FLASH_OB_GetUser - 0x0000000000000000 0x2c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.FLASH_OB_PCROPConfig - 0x0000000000000000 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.FLASH_OB_GetPCROP - 0x0000000000000000 0x70 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.FLASH_OB_BOR_LevelConfig - 0x0000000000000000 0x28 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.FLASH_OB_GetBOR - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.FLASH_OB_BootAddConfig - 0x0000000000000000 0x54 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.FLASH_OB_GetBootAdd - 0x0000000000000000 0x38 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.FLASH_OB_SecureAreaConfig - 0x0000000000000000 0x48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.FLASH_OB_GetSecureArea - 0x0000000000000000 0x70 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.FLASH_CRC_AddSector - 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.FLASH_CRC_SelectAddress - 0x0000000000000000 0x30 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.FLASH_OB_SharedRAM_Config - 0x0000000000000000 0x28 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.FLASH_OB_SharedRAM_GetConfig - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.FLASH_OB_CPUFreq_BoostConfig - 0x0000000000000000 0x28 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .text.FLASH_OB_CPUFreq_GetBoost - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_info 0x0000000000000000 0xc04 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_abbrev 0x0000000000000000 0x23d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_aranges - 0x0000000000000000 0x108 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_rnglists - 0x0000000000000000 0xc7 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x2f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0xac6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x24a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x3b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0xfb ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x1305 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x11f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x211d1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x3d48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x61 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x29 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x177 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x369 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x19b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x5d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x2462 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x1079 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x154 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x3f8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x788 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x3a6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0xa80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x129 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x3f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x275 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0xe42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x3ca ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x45c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x22c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x67 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0xa5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x1c4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x22a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x35 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x830 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x1ce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0xb1d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x29f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x693 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0xa6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x5e6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_line 0x0000000000000000 0x10d2 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_str 0x0000000000000000 0x157983 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .comment 0x0000000000000000 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .debug_frame 0x0000000000000000 0x484 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .ARM.attributes - 0x0000000000000000 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .text 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .data 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .bss 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .text.HAL_GPIO_DeInit - 0x0000000000000000 0x204 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .text.HAL_GPIO_TogglePin - 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .text.HAL_GPIO_LockPin - 0x0000000000000000 0x50 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .text.HAL_GPIO_EXTI_IRQHandler - 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .text.HAL_GPIO_EXTI_Callback - 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0xac6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x24a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x3b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0xfb ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x1305 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x11f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x211d1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x3d48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x61 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x29 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x177 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x369 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x19b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x5d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x2462 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x1079 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x154 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x3f8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x788 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x3a6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0xa80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x129 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x3f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x275 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0xe42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x3ca ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x45c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x22c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x67 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0xa5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x1c4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x22a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x35 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x830 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x1ce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0xb1d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x29f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x693 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0xa6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x5e6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .text 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .data 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .bss 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .text.HAL_HSEM_Take - 0x0000000000000000 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .text.HAL_HSEM_FastTake - 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .text.HAL_HSEM_IsSemTaken - 0x0000000000000000 0x2c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .text.HAL_HSEM_Release - 0x0000000000000000 0x28 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .text.HAL_HSEM_ReleaseAll - 0x0000000000000000 0x2c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .text.HAL_HSEM_SetClearKey - 0x0000000000000000 0x2c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .text.HAL_HSEM_GetClearKey - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .text.HAL_HSEM_ActivateNotification - 0x0000000000000000 0x24 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .text.HAL_HSEM_DeactivateNotification - 0x0000000000000000 0x28 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .text.HAL_HSEM_IRQHandler - 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .text.HAL_HSEM_FreeCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_info 0x0000000000000000 0x39b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_abbrev 0x0000000000000000 0x1d3 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_aranges - 0x0000000000000000 0x70 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_rnglists - 0x0000000000000000 0x4f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x2f3 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0xac6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x24a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x3b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0xfb ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x1305 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x11f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x211d1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x3d48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x61 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x29 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x177 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x369 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x19b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x5d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x2462 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x1079 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x154 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x3f8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x788 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x3a6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0xa80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x129 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x3f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x275 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0xe42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x3ca ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x45c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x22c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x67 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0xa5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x1c4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x22a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x35 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x830 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x1ce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0xb1d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x29f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x693 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0xa6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_macro 0x0000000000000000 0x5e6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_line 0x0000000000000000 0xb02 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_str 0x0000000000000000 0x157341 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .comment 0x0000000000000000 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .debug_frame 0x0000000000000000 0x1bc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .ARM.attributes - 0x0000000000000000 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .data 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .bss 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_Init - 0x0000000000000000 0x120 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_DeInit - 0x0000000000000000 0x5e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_MspInit - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_MspDeInit - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_Master_Transmit - 0x0000000000000000 0x1e8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_Master_Receive - 0x0000000000000000 0x1ec ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_Slave_Transmit - 0x0000000000000000 0x268 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_Slave_Receive - 0x0000000000000000 0x220 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_Master_Transmit_IT - 0x0000000000000000 0xe0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_Master_Receive_IT - 0x0000000000000000 0xe0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_Slave_Transmit_IT - 0x0000000000000000 0xdc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_Slave_Receive_IT - 0x0000000000000000 0xa0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_Master_Transmit_DMA - 0x0000000000000000 0x1e0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_Master_Receive_DMA - 0x0000000000000000 0x1e0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_Slave_Transmit_DMA - 0x0000000000000000 0x1d8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_Slave_Receive_DMA - 0x0000000000000000 0x16c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_Mem_Write - 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_Mem_Read - 0x0000000000000000 0x234 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_Mem_Write_IT - 0x0000000000000000 0x10c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_Mem_Read_IT - 0x0000000000000000 0x10c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_Mem_Write_DMA - 0x0000000000000000 0x1cc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_Mem_Read_DMA - 0x0000000000000000 0x1cc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_IsDeviceReady - 0x0000000000000000 0x210 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_Master_Seq_Transmit_IT - 0x0000000000000000 0x108 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_Master_Seq_Transmit_DMA - 0x0000000000000000 0x208 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_Master_Seq_Receive_IT - 0x0000000000000000 0x108 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_Master_Seq_Receive_DMA - 0x0000000000000000 0x208 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_Slave_Seq_Transmit_IT - 0x0000000000000000 0x164 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_Slave_Seq_Transmit_DMA - 0x0000000000000000 0x28c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_Slave_Seq_Receive_IT - 0x0000000000000000 0x164 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_Slave_Seq_Receive_DMA - 0x0000000000000000 0x28c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_EnableListen_IT - 0x0000000000000000 0x40 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_DisableListen_IT - 0x0000000000000000 0x62 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_Master_Abort_IT - 0x0000000000000000 0xa0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_EV_IRQHandler - 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_ER_IRQHandler - 0x0000000000000000 0xb6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_MasterTxCpltCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_MasterRxCpltCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_SlaveTxCpltCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_SlaveRxCpltCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_AddrCallback - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_ListenCpltCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_MemTxCpltCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_MemRxCpltCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_ErrorCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_AbortCpltCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_GetState - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_GetMode - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.HAL_I2C_GetError - 0x0000000000000000 0x18 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_Master_ISR_IT - 0x0000000000000000 0x238 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_Mem_ISR_IT - 0x0000000000000000 0x23c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_Slave_ISR_IT - 0x0000000000000000 0x1f0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_Master_ISR_DMA - 0x0000000000000000 0x1d6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_Mem_ISR_DMA - 0x0000000000000000 0x234 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_Slave_ISR_DMA - 0x0000000000000000 0x3b0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_RequestMemoryWrite - 0x0000000000000000 0xa8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_RequestMemoryRead - 0x0000000000000000 0xa8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_ITAddrCplt - 0x0000000000000000 0x108 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_ITMasterSeqCplt - 0x0000000000000000 0x7a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_ITSlaveSeqCplt - 0x0000000000000000 0xb8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_ITMasterCplt - 0x0000000000000000 0x190 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_ITSlaveCplt - 0x0000000000000000 0x3ec ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_ITListenCplt - 0x0000000000000000 0xa8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_ITError - 0x0000000000000000 0x1e0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_TreatErrorCallback - 0x0000000000000000 0x4e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_Flush_TXDR - 0x0000000000000000 0x48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_DMAMasterTransmitCplt - 0x0000000000000000 0x96 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_DMASlaveTransmitCplt - 0x0000000000000000 0x40 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_DMAMasterReceiveCplt - 0x0000000000000000 0x96 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_DMASlaveReceiveCplt - 0x0000000000000000 0x164 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_DMAError - 0x0000000000000000 0x274 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_DMAAbort - 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_WaitOnFlagUntilTimeout - 0x0000000000000000 0x9e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_WaitOnTXISFlagUntilTimeout - 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_WaitOnSTOPFlagUntilTimeout - 0x0000000000000000 0x86 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_WaitOnRXNEFlagUntilTimeout - 0x0000000000000000 0x104 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_IsErrorOccurred - 0x0000000000000000 0x1c0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_TransferConfig - 0x0000000000000000 0x64 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_Enable_IRQ - 0x0000000000000000 0xd4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_Disable_IRQ - 0x0000000000000000 0xbc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .text.I2C_ConvertOtherXferOptions - 0x0000000000000000 0x36 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_info 0x0000000000000000 0x222b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_abbrev 0x0000000000000000 0x256 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_aranges - 0x0000000000000000 0x2a0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_rnglists - 0x0000000000000000 0x22a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x3bf ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0xac6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x24a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x3b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0xfb ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x1305 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x11f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x211d1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x3d48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x61 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x29 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x177 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x369 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x19b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x5d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x2462 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x1079 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x154 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x3f8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x788 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x3a6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0xa80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x129 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x3f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x275 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0xe42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x3ca ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x45c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x22c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x67 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0xa5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x1c4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x22a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x35 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x830 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x1ce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0xb1d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x29f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x693 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0xa6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_macro 0x0000000000000000 0x5e6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_line 0x0000000000000000 0x3d33 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_str 0x0000000000000000 0x15875d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .comment 0x0000000000000000 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .debug_frame 0x0000000000000000 0xc40 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .ARM.attributes - 0x0000000000000000 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .text 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .data 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .bss 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .text.HAL_I2CEx_ConfigAnalogFilter - 0x0000000000000000 0x96 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .text.HAL_I2CEx_ConfigDigitalFilter - 0x0000000000000000 0x98 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .text.HAL_I2CEx_EnableWakeUp - 0x0000000000000000 0x84 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .text.HAL_I2CEx_DisableWakeUp - 0x0000000000000000 0x84 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .text.HAL_I2CEx_EnableFastModePlus - 0x0000000000000000 0x48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .text.HAL_I2CEx_DisableFastModePlus - 0x0000000000000000 0x48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_info 0x0000000000000000 0xda1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_abbrev 0x0000000000000000 0x1f5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_aranges - 0x0000000000000000 0x48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_rnglists - 0x0000000000000000 0x35 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x2f3 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0xac6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x24a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x3b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0xfb ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x1305 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x11f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x211d1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x3d48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x61 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x29 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x177 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x369 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x19b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x5d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x2462 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x1079 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x154 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x3f8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x788 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x3a6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0xa80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x129 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x3f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x275 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0xe42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x3ca ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x45c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x22c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x67 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0xa5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x1c4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x22a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x35 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x830 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x1ce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0xb1d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x29f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x693 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0xa6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_macro 0x0000000000000000 0x5e6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_line 0x0000000000000000 0xbb0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_str 0x0000000000000000 0x157b2a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .comment 0x0000000000000000 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .debug_frame 0x0000000000000000 0x100 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .ARM.attributes - 0x0000000000000000 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .text 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .data 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .bss 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .text.HAL_MDMA_DeInit - 0x0000000000000000 0xb0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .text.HAL_MDMA_RegisterCallback - 0x0000000000000000 0xb4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .text.HAL_MDMA_UnRegisterCallback - 0x0000000000000000 0xdc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .text.HAL_MDMA_LinkedList_CreateNode - 0x0000000000000000 0x1b8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .text.HAL_MDMA_LinkedList_AddNode - 0x0000000000000000 0x188 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .text.HAL_MDMA_LinkedList_RemoveNode - 0x0000000000000000 0x166 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .text.HAL_MDMA_LinkedList_EnableCircularMode - 0x0000000000000000 0x86 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .text.HAL_MDMA_LinkedList_DisableCircularMode - 0x0000000000000000 0x84 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .text.HAL_MDMA_Start - 0x0000000000000000 0xaa ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .text.HAL_MDMA_Start_IT - 0x0000000000000000 0x102 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .text.HAL_MDMA_Abort - 0x0000000000000000 0xb6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .text.HAL_MDMA_Abort_IT - 0x0000000000000000 0x4e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .text.HAL_MDMA_PollForTransfer - 0x0000000000000000 0x194 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .text.HAL_MDMA_GenerateSWRequest - 0x0000000000000000 0x74 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .text.HAL_MDMA_GetState - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .text.HAL_MDMA_GetError - 0x0000000000000000 0x18 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .text.MDMA_SetConfig - 0x0000000000000000 0xe0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0xac6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x24a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x3b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0xfb ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x1305 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x11f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x211d1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x3d48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x61 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x29 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x177 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x369 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x19b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x5d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x2462 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x1079 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x154 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x3f8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x788 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x3a6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0xa80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x129 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x3f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x275 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0xe42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x3ca ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x45c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x22c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x67 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0xa5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x1c4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x22a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x35 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x830 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x1ce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0xb1d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x29f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x693 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0xa6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x0000000000000000 0x5e6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .text 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .data 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .bss 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .text.HAL_PWR_DeInit - 0x0000000000000000 0xe ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .text.HAL_PWR_EnableBkUpAccess - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .text.HAL_PWR_DisableBkUpAccess - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .text.HAL_PWR_ConfigPVD - 0x0000000000000000 0xf4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .text.HAL_PWR_EnablePVD - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .text.HAL_PWR_DisablePVD - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .text.HAL_PWR_EnableWakeUpPin - 0x0000000000000000 0x2c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .text.HAL_PWR_DisableWakeUpPin - 0x0000000000000000 0x2c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .text.HAL_PWR_EnterSLEEPMode - 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .text.HAL_PWR_EnterSTOPMode - 0x0000000000000000 0x78 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .text.HAL_PWR_EnterSTANDBYMode - 0x0000000000000000 0x48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .text.HAL_PWR_EnableSleepOnExit - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .text.HAL_PWR_DisableSleepOnExit - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .text.HAL_PWR_EnableSEVOnPend - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .text.HAL_PWR_DisableSEVOnPend - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .text.HAL_PWR_PVD_IRQHandler - 0x0000000000000000 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .text.HAL_PWR_PVDCallback - 0x0000000000000000 0xe ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_info 0x0000000000000000 0x8fc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_abbrev 0x0000000000000000 0x18e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_aranges - 0x0000000000000000 0xa0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_rnglists - 0x0000000000000000 0x74 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x317 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0xac6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x24a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x3b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0xfb ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x1305 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x11f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x211d1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x3d48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x61 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x29 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x177 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x369 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x19b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x5d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x2462 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x1079 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x154 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x3f8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x788 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x3a6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0xa80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x129 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x3f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x275 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0xe42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x3ca ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x45c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x22c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x67 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0xa5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x1c4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x22a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x35 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x830 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x1ce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0xb1d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x29f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x693 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0xa6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x5e6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_line 0x0000000000000000 0xbab ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_str 0x0000000000000000 0x157680 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .comment 0x0000000000000000 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .debug_frame 0x0000000000000000 0x254 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .ARM.attributes - 0x0000000000000000 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .data 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .bss 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_GetSupplyConfig - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_ControlVoltageScaling - 0x0000000000000000 0x64 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_GetVoltageRange - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_ControlStopModeVoltageScaling - 0x0000000000000000 0x2c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_GetStopModeVoltageRange - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_EnterSTOPMode - 0x0000000000000000 0x98 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_ClearPendingEvent - 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_EnterSTANDBYMode - 0x0000000000000000 0x60 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_ConfigD3Domain - 0x0000000000000000 0x28 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_EnableFlashPowerDown - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_DisableFlashPowerDown - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_EnableWakeUpPin - 0x0000000000000000 0x128 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_DisableWakeUpPin - 0x0000000000000000 0x28 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_GetWakeupFlag - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_ClearWakeupFlag - 0x0000000000000000 0x38 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_WAKEUP_PIN_IRQHandler - 0x0000000000000000 0x78 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_WKUP1_Callback - 0x0000000000000000 0xe ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_WKUP2_Callback - 0x0000000000000000 0xe ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_WKUP4_Callback - 0x0000000000000000 0xe ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_WKUP6_Callback - 0x0000000000000000 0xe ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_EnableBkUpReg - 0x0000000000000000 0x4c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_DisableBkUpReg - 0x0000000000000000 0x4c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_EnableUSBReg - 0x0000000000000000 0x4c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_DisableUSBReg - 0x0000000000000000 0x4c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_EnableUSBVoltageDetector - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_DisableUSBVoltageDetector - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_EnableBatteryCharging - 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_DisableBatteryCharging - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_EnableMonitoring - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_DisableMonitoring - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_GetTemperatureLevel - 0x0000000000000000 0x48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_GetVBATLevel - 0x0000000000000000 0x48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_ConfigAVD - 0x0000000000000000 0xec ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_EnableAVD - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_DisableAVD - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_PVD_AVD_IRQHandler - 0x0000000000000000 0x78 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .text.HAL_PWREx_AVDCallback - 0x0000000000000000 0xe ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0xac6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x24a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x3b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0xfb ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x1305 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x11f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x211d1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x3d48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x61 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x29 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x177 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x369 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x19b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x5d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x2462 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x1079 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x154 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x3f8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x788 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x3a6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0xa80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x129 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x3f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x275 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0xe42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x3ca ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x45c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x22c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x67 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0xa5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x1c4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x22a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x35 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x830 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x1ce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0xb1d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x29f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x693 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0xa6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000000000 0x5e6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .text 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .data 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .bss 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .text.HAL_RCC_DeInit - 0x0000000000000000 0x254 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .text.HAL_RCC_MCOConfig - 0x0000000000000000 0xd4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .text.HAL_RCC_EnableCSS - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .text.HAL_RCC_DisableCSS - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .text.HAL_RCC_GetOscConfig - 0x0000000000000000 0x1a4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .text.HAL_RCC_NMI_IRQHandler - 0x0000000000000000 0x28 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .text.HAL_RCC_CSSCallback - 0x0000000000000000 0xe ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0xac6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x24a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x3b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0xfb ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x1305 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x11f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x211d1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x3d48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x61 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x29 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x177 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x369 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x19b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x5d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x2462 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x1079 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x154 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x3f8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x788 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x3a6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0xa80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x129 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x3f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x275 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0xe42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x3ca ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x45c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x22c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x67 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0xa5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x1c4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x22a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x35 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x830 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x1ce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0xb1d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x29f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x693 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0xa6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x5e6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .text 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .data 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .bss 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .text.HAL_RCCEx_GetPeriphCLKConfig - 0x0000000000000000 0x2d0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .text.HAL_RCCEx_GetD1PCLK1Freq - 0x0000000000000000 0x2c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .text.HAL_RCCEx_GetD1SysClockFreq - 0x0000000000000000 0x60 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .text.HAL_RCCEx_EnableLSECSS - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .text.HAL_RCCEx_DisableLSECSS - 0x0000000000000000 0x2c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .text.HAL_RCCEx_EnableLSECSS_IT - 0x0000000000000000 0x50 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .text.HAL_RCCEx_WakeUpStopCLKConfig - 0x0000000000000000 0x28 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .text.HAL_RCCEx_KerWakeUpStopCLKConfig - 0x0000000000000000 0x28 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .text.HAL_RCCEx_WWDGxSysResetConfig - 0x0000000000000000 0x28 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .text.HAL_RCCEx_CRSConfig - 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .text.HAL_RCCEx_CRSSoftwareSynchronizationGenerate - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .text.HAL_RCCEx_CRSGetSynchronizationInfo - 0x0000000000000000 0x48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .text.HAL_RCCEx_CRSWaitSynchronization - 0x0000000000000000 0xe4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .text.HAL_RCCEx_CRS_IRQHandler - 0x0000000000000000 0xdc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .text.HAL_RCCEx_CRS_SyncOkCallback - 0x0000000000000000 0xe ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .text.HAL_RCCEx_CRS_SyncWarnCallback - 0x0000000000000000 0xe ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .text.HAL_RCCEx_CRS_ExpectedSyncCallback - 0x0000000000000000 0xe ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .text.HAL_RCCEx_CRS_ErrorCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .text.HAL_RCCEx_LSECSS_IRQHandler - 0x0000000000000000 0x28 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .text.HAL_RCCEx_LSECSS_Callback - 0x0000000000000000 0xe ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0xac6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x24a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x3b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0xfb ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x1305 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x11f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x211d1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x3d48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x61 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x29 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x177 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x369 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x19b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x5d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x2462 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x1079 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x154 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x3f8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x788 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x3a6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0xa80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x129 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x3f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x275 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0xe42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x3ca ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x45c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x22c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x67 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0xa5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x1c4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x22a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x35 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x830 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x1ce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0xb1d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x29f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x693 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0xa6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x5e6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .data 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .bss 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text.HAL_SD_DeInit - 0x0000000000000000 0x3e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text.HAL_SD_MspInit - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text.HAL_SD_MspDeInit - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text.HAL_SD_ReadBlocks - 0x0000000000000000 0x314 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text.HAL_SD_WriteBlocks - 0x0000000000000000 0x31c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text.HAL_SD_ReadBlocks_IT - 0x0000000000000000 0x140 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text.HAL_SD_WriteBlocks_IT - 0x0000000000000000 0x140 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text.HAL_SD_Erase - 0x0000000000000000 0x198 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text.HAL_SD_GetState - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text.HAL_SD_GetError - 0x0000000000000000 0x18 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text.HAL_SD_TxCpltCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text.HAL_SD_RxCpltCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text.HAL_SD_AbortCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text.HAL_SD_GetCardCID - 0x0000000000000000 0xa6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text.HAL_SD_ConfigSpeedBusOperation - 0x0000000000000000 0x178 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text.HAL_SD_Abort - 0x0000000000000000 0x168 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text.HAL_SD_Abort_IT - 0x0000000000000000 0x74 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text.SD_PowerOFF - 0x0000000000000000 0x1a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text.SD_SwitchSpeed - 0x0000000000000000 0x19c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0xac6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x24a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x3b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0xfb ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x1305 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x11f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x211d1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x3d48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x61 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x29 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x177 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x369 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x19b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x5d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x2462 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x1079 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x154 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x3f8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x788 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x3a6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0xa80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x129 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x3f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x275 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0xe42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x3ca ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x45c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x22c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x67 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0xa5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x1c4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x22a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x35 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x830 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x1ce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0xb1d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x29f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x693 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0xa6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x0000000000000000 0x5e6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .text 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .data 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .bss 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .text.HAL_SDEx_ConfigDMAMultiBuffer - 0x0000000000000000 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .text.HAL_SDEx_ReadBlocksDMAMultiBuffer - 0x0000000000000000 0x148 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .text.HAL_SDEx_WriteBlocksDMAMultiBuffer - 0x0000000000000000 0x128 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .text.HAL_SDEx_ChangeDMABuffer - 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_info 0x0000000000000000 0x73a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_abbrev 0x0000000000000000 0x1ef ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_aranges - 0x0000000000000000 0x38 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_rnglists - 0x0000000000000000 0x27 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x2f3 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0xac6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x24a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x3b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0xfb ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x1305 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x11f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x211d1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x3d48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x61 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x29 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x177 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x369 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x19b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x5d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x2462 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x1079 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x154 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x3f8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x788 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x3a6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0xa80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x129 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x3f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x275 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0xe42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x3ca ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x45c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x22c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x67 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0xa5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x1c4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x22a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x35 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x830 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x1ce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0xb1d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x29f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x693 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0xa6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_macro 0x0000000000000000 0x5e6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_line 0x0000000000000000 0xb3e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_str 0x0000000000000000 0x157688 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .comment 0x0000000000000000 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .debug_frame 0x0000000000000000 0xa8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .ARM.attributes - 0x0000000000000000 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .data 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .bss 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_Base_DeInit - 0x0000000000000000 0xb8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_Base_MspInit - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_Base_MspDeInit - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_Base_Start - 0x0000000000000000 0xfc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_Base_Stop - 0x0000000000000000 0x4e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_Base_Stop_IT - 0x0000000000000000 0x5e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_Base_Start_DMA - 0x0000000000000000 0x170 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_Base_Stop_DMA - 0x0000000000000000 0x64 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_OC_Init - 0x0000000000000000 0xae ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_OC_DeInit - 0x0000000000000000 0xb8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_OC_MspInit - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_OC_MspDeInit - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_OC_Start - 0x0000000000000000 0x238 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_OC_Stop - 0x0000000000000000 0x12c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_OC_Start_IT - 0x0000000000000000 0x2d0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_OC_Stop_IT - 0x0000000000000000 0x1c8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_OC_Start_DMA - 0x0000000000000000 0x468 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_OC_Stop_DMA - 0x0000000000000000 0x1f0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_PWM_Init - 0x0000000000000000 0xae ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_PWM_DeInit - 0x0000000000000000 0xb8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_PWM_MspInit - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_PWM_MspDeInit - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_PWM_Start - 0x0000000000000000 0x238 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_PWM_Stop - 0x0000000000000000 0x12c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_PWM_Start_IT - 0x0000000000000000 0x2d0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_PWM_Stop_IT - 0x0000000000000000 0x1c8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_PWM_Start_DMA - 0x0000000000000000 0x468 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_PWM_Stop_DMA - 0x0000000000000000 0x1f0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_IC_Init - 0x0000000000000000 0xae ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_IC_DeInit - 0x0000000000000000 0xb8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_IC_MspInit - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_IC_MspDeInit - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_IC_Start - 0x0000000000000000 0x224 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_IC_Stop - 0x0000000000000000 0xe2 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_IC_Start_IT - 0x0000000000000000 0x2bc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_IC_Stop_IT - 0x0000000000000000 0x17c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_IC_Start_DMA - 0x0000000000000000 0x3c0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_IC_Stop_DMA - 0x0000000000000000 0x1a4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_OnePulse_Init - 0x0000000000000000 0xa0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_OnePulse_DeInit - 0x0000000000000000 0x88 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_OnePulse_MspInit - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_OnePulse_MspDeInit - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_OnePulse_Start - 0x0000000000000000 0xec ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_OnePulse_Stop - 0x0000000000000000 0x100 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_OnePulse_Start_IT - 0x0000000000000000 0x10c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_OnePulse_Stop_IT - 0x0000000000000000 0x120 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_Encoder_Init - 0x0000000000000000 0x14c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_Encoder_DeInit - 0x0000000000000000 0x88 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_Encoder_MspInit - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_Encoder_MspDeInit - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_Encoder_Start - 0x0000000000000000 0x11c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_Encoder_Stop - 0x0000000000000000 0x14e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_Encoder_Start_IT - 0x0000000000000000 0x15c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_Encoder_Stop_IT - 0x0000000000000000 0x18a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_Encoder_Start_DMA - 0x0000000000000000 0x2d8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_Encoder_Stop_DMA - 0x0000000000000000 0x1b2 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_OC_ConfigChannel - 0x0000000000000000 0xf4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_IC_ConfigChannel - 0x0000000000000000 0x138 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_PWM_ConfigChannel - 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_OnePulse_ConfigChannel - 0x0000000000000000 0x1ac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_DMABurst_WriteStart - 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_DMABurst_MultiWriteStart - 0x0000000000000000 0x2a8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_DMABurst_WriteStop - 0x0000000000000000 0xf4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_DMABurst_ReadStart - 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_DMABurst_MultiReadStart - 0x0000000000000000 0x2a8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_DMABurst_ReadStop - 0x0000000000000000 0xf4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_GenerateEvent - 0x0000000000000000 0x4e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_ConfigOCrefClear - 0x0000000000000000 0x214 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_ConfigTI1Input - 0x0000000000000000 0x38 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_SlaveConfigSynchro - 0x0000000000000000 0x84 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_SlaveConfigSynchro_IT - 0x0000000000000000 0x84 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_ReadCapturedValue - 0x0000000000000000 0x88 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_PeriodElapsedCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_PeriodElapsedHalfCpltCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_IC_CaptureHalfCpltCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_PWM_PulseFinishedHalfCpltCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_TriggerHalfCpltCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_ErrorCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_Base_GetState - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_OC_GetState - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_PWM_GetState - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_IC_GetState - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_OnePulse_GetState - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_Encoder_GetState - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_GetActiveChannel - 0x0000000000000000 0x18 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_GetChannelState - 0x0000000000000000 0x72 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.HAL_TIM_DMABurstState - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.TIM_DMAError - 0x0000000000000000 0x92 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.TIM_DMADelayPulseCplt - 0x0000000000000000 0xa8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.TIM_DMADelayPulseHalfCplt - 0x0000000000000000 0x68 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.TIM_DMACaptureCplt - 0x0000000000000000 0xc8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.TIM_DMACaptureHalfCplt - 0x0000000000000000 0x68 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.TIM_DMAPeriodElapsedCplt - 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.TIM_DMAPeriodElapsedHalfCplt - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.TIM_DMATriggerCplt - 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.TIM_DMATriggerHalfCplt - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.TIM_OC1_SetConfig - 0x0000000000000000 0x120 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.TIM_OC2_SetConfig - 0x0000000000000000 0x114 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.TIM_OC3_SetConfig - 0x0000000000000000 0x110 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.TIM_OC4_SetConfig - 0x0000000000000000 0xd4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.TIM_OC5_SetConfig - 0x0000000000000000 0xc8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.TIM_OC6_SetConfig - 0x0000000000000000 0xcc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.TIM_SlaveTimer_SetConfig - 0x0000000000000000 0x1d4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.TIM_TI1_SetConfig - 0x0000000000000000 0x100 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.TIM_TI2_SetConfig - 0x0000000000000000 0x7a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.TIM_TI3_SetConfig - 0x0000000000000000 0x78 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.TIM_TI4_SetConfig - 0x0000000000000000 0x7a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.TIM_CCxChannelCmd - 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0xac6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x24a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x3b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0xfb ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x1305 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x11f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x211d1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x3d48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x61 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x29 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x177 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x369 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x19b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x5d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x2462 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x1079 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x154 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x3f8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x788 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x3a6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0xa80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x129 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x3f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x275 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0xe42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x3ca ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x45c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x22c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x67 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0xa5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x1c4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x22a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x35 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x830 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x1ce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0xb1d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x29f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x693 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0xa6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x0000000000000000 0x5e6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .data 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .bss 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_HallSensor_Init - 0x0000000000000000 0x15c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_HallSensor_DeInit - 0x0000000000000000 0x88 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_HallSensor_MspInit - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_HallSensor_MspDeInit - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_HallSensor_Start - 0x0000000000000000 0x148 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_HallSensor_Stop - 0x0000000000000000 0x70 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_HallSensor_Start_IT - 0x0000000000000000 0x158 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_HallSensor_Stop_IT - 0x0000000000000000 0x80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_HallSensor_Start_DMA - 0x0000000000000000 0x198 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_HallSensor_Stop_DMA - 0x0000000000000000 0x7a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_OCN_Start - 0x0000000000000000 0x1a0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_OCN_Stop - 0x0000000000000000 0xba ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_OCN_Start_IT - 0x0000000000000000 0x210 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_OCN_Stop_IT - 0x0000000000000000 0x13e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_OCN_Start_DMA - 0x0000000000000000 0x32c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_OCN_Stop_DMA - 0x0000000000000000 0x138 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_PWMN_Start - 0x0000000000000000 0x1a0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_PWMN_Stop - 0x0000000000000000 0xba ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_PWMN_Start_IT - 0x0000000000000000 0x210 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_PWMN_Stop_IT - 0x0000000000000000 0x13e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_PWMN_Start_DMA - 0x0000000000000000 0x32c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_PWMN_Stop_DMA - 0x0000000000000000 0x138 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_OnePulseN_Start - 0x0000000000000000 0xaa ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_OnePulseN_Stop - 0x0000000000000000 0xbe ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_OnePulseN_Start_IT - 0x0000000000000000 0xca ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_OnePulseN_Stop_IT - 0x0000000000000000 0xde ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_ConfigCommutEvent - 0x0000000000000000 0xd8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_ConfigCommutEvent_IT - 0x0000000000000000 0xd8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_ConfigCommutEvent_DMA - 0x0000000000000000 0xfc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_ConfigBreakDeadTime - 0x0000000000000000 0x140 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_ConfigBreakInput - 0x0000000000000000 0x18c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_RemapConfig - 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_TISelection - 0x0000000000000000 0xdc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_GroupChannel5 - 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_DisarmBreakInput - 0x0000000000000000 0x92 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_ReArmBreakInput - 0x0000000000000000 0xc2 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_CommutHalfCpltCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_HallSensor_GetState - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.HAL_TIMEx_GetChannelNState - 0x0000000000000000 0x52 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.TIMEx_DMACommutationCplt - 0x0000000000000000 0x24 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.TIMEx_DMACommutationHalfCplt - 0x0000000000000000 0x24 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.TIM_DMADelayPulseNCplt - 0x0000000000000000 0xa8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.TIM_DMAErrorCCxN - 0x0000000000000000 0x6e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .text.TIM_CCxNChannelCmd - 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0xac6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x24a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x3b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0xfb ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x1305 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x11f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x211d1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x3d48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x61 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x29 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x177 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x369 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x19b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x5d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x2462 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x1079 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x154 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x3f8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x788 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x3a6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0xa80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x129 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x3f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x275 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0xe42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x3ca ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x45c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x22c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x67 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0xa5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x1c4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x22a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x35 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x830 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x1ce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0xb1d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x29f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x693 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0xa6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x5e6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .data 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .bss 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_HalfDuplex_Init - 0x0000000000000000 0xb0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_LIN_Init - 0x0000000000000000 0xe0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_MultiProcessor_Init - 0x0000000000000000 0xd8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_DeInit - 0x0000000000000000 0x7e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_MspInit - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_MspDeInit - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_Transmit - 0x0000000000000000 0x11c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_Receive - 0x0000000000000000 0x190 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_Transmit_IT - 0x0000000000000000 0x128 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_Receive_IT - 0x0000000000000000 0x98 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_Transmit_DMA - 0x0000000000000000 0x100 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_Receive_DMA - 0x0000000000000000 0x98 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_DMAPause - 0x0000000000000000 0x11c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_DMAResume - 0x0000000000000000 0x108 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_DMAStop - 0x0000000000000000 0x12c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_Abort - 0x0000000000000000 0x21c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_AbortTransmit - 0x0000000000000000 0x120 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_AbortReceive - 0x0000000000000000 0x16c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_Abort_IT - 0x0000000000000000 0x278 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_AbortTransmit_IT - 0x0000000000000000 0x144 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_AbortReceive_IT - 0x0000000000000000 0x19c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_IRQHandler - 0x0000000000000000 0x774 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_TxCpltCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_TxHalfCpltCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_RxCpltCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_RxHalfCpltCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_ErrorCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_AbortCpltCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_AbortTransmitCpltCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_AbortReceiveCpltCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UARTEx_RxEventCallback - 0x0000000000000000 0x18 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_ReceiverTimeout_Config - 0x0000000000000000 0x38 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_EnableReceiverTimeout - 0x0000000000000000 0x74 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_DisableReceiverTimeout - 0x0000000000000000 0x74 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_MultiProcessor_EnableMuteMode - 0x0000000000000000 0x70 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_MultiProcessor_DisableMuteMode - 0x0000000000000000 0x70 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_MultiProcessor_EnterMuteMode - 0x0000000000000000 0x24 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_HalfDuplex_EnableTransmitter - 0x0000000000000000 0xa8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_HalfDuplex_EnableReceiver - 0x0000000000000000 0xa8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_LIN_SendBreak - 0x0000000000000000 0x54 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_GetState - 0x0000000000000000 0x2a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UART_GetError - 0x0000000000000000 0x1a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.UART_Start_Receive_IT - 0x0000000000000000 0x244 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.UART_Start_Receive_DMA - 0x0000000000000000 0x14c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.UART_EndTxTransfer - 0x0000000000000000 0x82 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.UART_DMATransmitCplt - 0x0000000000000000 0x96 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.UART_DMATxHalfCplt - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.UART_DMAReceiveCplt - 0x0000000000000000 0x128 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.UART_DMARxHalfCplt - 0x0000000000000000 0x3e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.UART_DMAError - 0x0000000000000000 0x80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.UART_DMAAbortOnError - 0x0000000000000000 0x2c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.UART_DMATxAbortCallback - 0x0000000000000000 0x8c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.UART_DMARxAbortCallback - 0x0000000000000000 0x80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.UART_DMATxOnlyAbortCallback - 0x0000000000000000 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.UART_DMARxOnlyAbortCallback - 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.UART_TxISR_8BIT - 0x0000000000000000 0xb8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.UART_TxISR_16BIT - 0x0000000000000000 0xc2 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.UART_TxISR_8BIT_FIFOEN - 0x0000000000000000 0xe0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.UART_TxISR_16BIT_FIFOEN - 0x0000000000000000 0xea ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.UART_EndTransmit_IT - 0x0000000000000000 0x56 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.UART_RxISR_8BIT - 0x0000000000000000 0x1b8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.UART_RxISR_16BIT - 0x0000000000000000 0x1b8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.UART_RxISR_8BIT_FIFOEN - 0x0000000000000000 0x360 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.UART_RxISR_16BIT_FIFOEN - 0x0000000000000000 0x368 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0xac6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x24a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x3b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0xfb ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x1305 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x11f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x211d1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x3d48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x61 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x29 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x177 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x369 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x19b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x5d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x2462 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x1079 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x154 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x3f8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x788 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x3a6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0xa80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x129 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x3f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x275 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0xe42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x3ca ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x45c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x22c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x67 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0xa5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x1c4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x22a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x35 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x830 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x1ce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0xb1d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x29f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x693 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0xa6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x0000000000000000 0x5e6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .text 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .data 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .bss 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .text.HAL_RS485Ex_Init - 0x0000000000000000 0xd4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .text.HAL_UARTEx_WakeupCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .text.HAL_UARTEx_RxFifoFullCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .text.HAL_UARTEx_TxFifoEmptyCallback - 0x0000000000000000 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .text.HAL_MultiProcessorEx_AddressLength_Set - 0x0000000000000000 0x60 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .text.HAL_UARTEx_StopModeWakeUpSourceConfig - 0x0000000000000000 0xb6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .text.HAL_UARTEx_EnableStopMode - 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .text.HAL_UARTEx_DisableStopMode - 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .text.HAL_UARTEx_EnableFifoMode - 0x0000000000000000 0x76 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .text.HAL_UARTEx_ReceiveToIdle - 0x0000000000000000 0x204 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .text.HAL_UARTEx_ReceiveToIdle_IT - 0x0000000000000000 0xa8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .text.HAL_UARTEx_ReceiveToIdle_DMA - 0x0000000000000000 0xa8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .text.HAL_UARTEx_GetRxEventType - 0x0000000000000000 0x18 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .text.UARTEx_Wakeup_AddressConfig - 0x0000000000000000 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0xac6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x24a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x3b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0xfb ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x1305 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x11f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x211d1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x3d48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x61 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x29 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x177 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x369 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x19b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x5d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x2462 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x1079 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x154 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x3f8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x788 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x3a6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0xa80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x129 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x3f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x275 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0xe42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x3ca ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x45c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x22c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x67 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0xa5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x1c4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x22a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x35 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x830 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x1ce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0xb1d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x29f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x693 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0xa6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x0000000000000000 0x5e6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .text 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .data 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .bss 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .text.DelayBlock_Enable - 0x0000000000000000 0xda ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .text.DelayBlock_Disable - 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .text.DelayBlock_Configure - 0x0000000000000000 0x38 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_info 0x0000000000000000 0x20f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_abbrev 0x0000000000000000 0x12c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_aranges - 0x0000000000000000 0x30 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_rnglists - 0x0000000000000000 0x20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x2f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0xac6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x24a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x3b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0xfb ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x1305 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x11f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x211d1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x3d48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x61 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x29 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x177 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x369 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x19b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x5d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x2462 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x1079 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x154 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x3f8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x788 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x3a6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0xa80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x129 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x3f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x275 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0xe42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x3ca ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x45c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x22c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x67 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0xa5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x1c4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x22a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x35 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x830 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x1ce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0xb1d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x29f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x693 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0xa6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_macro 0x0000000000000000 0x5e6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_line 0x0000000000000000 0xa74 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_str 0x0000000000000000 0x15729d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .comment 0x0000000000000000 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .debug_frame 0x0000000000000000 0x84 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .ARM.attributes - 0x0000000000000000 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .text 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .data 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .bss 0x0000000000000000 0x0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .text.SDMMC_PowerState_Cycle - 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .text.SDMMC_PowerState_OFF - 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .text.SDMMC_GetDataCounter - 0x0000000000000000 0x18 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .text.SDMMC_GetFIFOCount - 0x0000000000000000 0x1a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .text.SDMMC_SetSDMMCReadWaitMode - 0x0000000000000000 0x28 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .text.SDMMC_CmdSDEraseStartAdd - 0x0000000000000000 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .text.SDMMC_CmdSDEraseEndAdd - 0x0000000000000000 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .text.SDMMC_CmdEraseStartAdd - 0x0000000000000000 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .text.SDMMC_CmdEraseEndAdd - 0x0000000000000000 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .text.SDMMC_CmdErase - 0x0000000000000000 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .text.SDMMC_CmdSetRelAddMmc - 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .text.SDMMC_CmdSleepMmc - 0x0000000000000000 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .text.SDMMC_CmdOpCondition - 0x0000000000000000 0x40 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .text.SDMMC_CmdSwitch - 0x0000000000000000 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .text.SDMMC_CmdVoltageSwitch - 0x0000000000000000 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .text.SDMMC_CmdSendEXTCSD - 0x0000000000000000 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0xac6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x24a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x3b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0xfb ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x1305 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x11f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x211d1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x3d48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x61 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x29 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x43 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x10 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x177 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x369 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x19b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x5d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x2462 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x1079 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x154 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x3f8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0xac ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x788 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x228 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x3a6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0xa80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x129 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x3f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x275 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0xe42 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x3ca ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x45c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x4a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x22c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x67 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0xa5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x1c4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x22a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x35 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x830 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x1ce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0xb1d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x29f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x693 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0xa6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x0000000000000000 0x5e6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/App/fatfs.o - .text 0x0000000000000000 0x0 ./FATFS/App/fatfs.o - .data 0x0000000000000000 0x0 ./FATFS/App/fatfs.o - .bss 0x0000000000000000 0x0 ./FATFS/App/fatfs.o - .bss.SDFatFS 0x0000000000000000 0x1040 ./FATFS/App/fatfs.o - .bss.SDFile 0x0000000000000000 0x1058 ./FATFS/App/fatfs.o - .text.get_fattime - 0x0000000000000000 0x10 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0xac6 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x24a ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x2e ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x3b ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x22 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x8e ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x51 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x103 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x6a ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x1df ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x1c ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x22 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0xfb ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x1305 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x11f ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x27 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x211d1 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x6d ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x3d48 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x174 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x61 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x29 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x43 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x34 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x16 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x43 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x34 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x10 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x58 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x8e ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x1c ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x177 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x369 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x19b ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x5d ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x2462 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x1079 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x154 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x114 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x3f8 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0xac ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x788 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x228 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x66 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x3a6 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0xa80 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x129 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x3f9 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x275 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0xe42 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x3ca ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x45c ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x3c ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x4a ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x22c ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x67 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0xa5 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x1c4 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x22a ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x35 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x830 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x16 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x1ce ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0xb1d ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x29f ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x693 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0xa6 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x5e6 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x58 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x1c ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x40 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x111 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x15a ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0xde ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x1c ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x26 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x4ef ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0xb5 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0xaa ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x91 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x8d ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x7e ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x19 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0xf2 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0xfa ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0xe2 ./FATFS/App/fatfs.o - .debug_macro 0x0000000000000000 0x8e ./FATFS/App/fatfs.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/bsp_driver_sd.o - .text 0x0000000000000000 0x0 ./FATFS/Target/bsp_driver_sd.o - .data 0x0000000000000000 0x0 ./FATFS/Target/bsp_driver_sd.o - .bss 0x0000000000000000 0x0 ./FATFS/Target/bsp_driver_sd.o - .text.BSP_SD_ITConfig - 0x0000000000000000 0x10 ./FATFS/Target/bsp_driver_sd.o - .text.BSP_SD_ReadBlocks - 0x0000000000000000 0x3c ./FATFS/Target/bsp_driver_sd.o - .text.BSP_SD_WriteBlocks - 0x0000000000000000 0x3c ./FATFS/Target/bsp_driver_sd.o - .text.BSP_SD_Erase - 0x0000000000000000 0x30 ./FATFS/Target/bsp_driver_sd.o - .text.HAL_SD_AbortCallback - 0x0000000000000000 0x14 ./FATFS/Target/bsp_driver_sd.o - .text.BSP_SD_AbortCallback - 0x0000000000000000 0xe ./FATFS/Target/bsp_driver_sd.o - .text.BSP_SD_WriteCpltCallback - 0x0000000000000000 0xe ./FATFS/Target/bsp_driver_sd.o - .text.BSP_SD_ReadCpltCallback - 0x0000000000000000 0xe ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0xac6 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x24a ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x2e ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x3b ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x22 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x8e ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x51 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x103 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x6a ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x1df ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x1c ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x22 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0xfb ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x1305 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x11f ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x27 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x211d1 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x6d ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x3d48 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x174 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x61 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x29 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x43 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x34 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x16 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x43 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x34 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x10 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x58 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x8e ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x1c ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x177 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x369 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x19b ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x5d ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x2462 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x1079 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x154 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x114 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x3f8 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0xac ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x788 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x228 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x66 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x3a6 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0xa80 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x129 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x3f9 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x275 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0xe42 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x3ca ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x45c ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x3c ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x4a ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x22c ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x67 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0xa5 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x1c4 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x22a ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x35 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x830 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x16 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x1ce ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0xb1d ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x29f ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x693 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0xa6 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x5e6 ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x1c ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x0000000000000000 0x40 ./FATFS/Target/bsp_driver_sd.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/fatfs_platform.o - .text 0x0000000000000000 0x0 ./FATFS/Target/fatfs_platform.o - .data 0x0000000000000000 0x0 ./FATFS/Target/fatfs_platform.o - .bss 0x0000000000000000 0x0 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0xac6 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x24a ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x2e ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x3b ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x22 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x8e ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x51 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x103 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x6a ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x1df ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x1c ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x22 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0xfb ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x1305 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x11f ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x27 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x211d1 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x6d ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x3d48 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x174 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x61 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x29 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x43 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x34 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x16 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x43 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x34 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x10 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x58 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x8e ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x1c ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x177 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x369 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x19b ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x5d ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x2462 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x1079 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x154 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x114 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x3f8 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0xac ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x788 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x228 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x66 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x3a6 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0xa80 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x129 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x3f9 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x275 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0xe42 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x3ca ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x45c ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x3c ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x4a ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x22c ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x67 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0xa5 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x1c4 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x22a ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x35 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x830 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x16 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x1ce ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0xb1d ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x29f ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x693 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0xa6 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x5e6 ./FATFS/Target/fatfs_platform.o - .debug_macro 0x0000000000000000 0x1c ./FATFS/Target/fatfs_platform.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./FATFS/Target/sd_diskio.o - .text 0x0000000000000000 0x0 ./FATFS/Target/sd_diskio.o - .data 0x0000000000000000 0x0 ./FATFS/Target/sd_diskio.o - .bss 0x0000000000000000 0x0 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0xac6 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x24a ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x2e ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x3b ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x22 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x8e ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x51 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x103 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x6a ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x1df ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x1c ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x22 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0xfb ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x1305 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x11f ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x27 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x211d1 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x6d ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x3d48 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x174 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x61 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x29 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x43 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x34 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x16 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x43 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x34 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x10 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x58 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x8e ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x1c ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x177 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x369 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x19b ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x5d ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x2462 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x1079 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x154 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x114 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x3f8 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0xac ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x788 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x228 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x66 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x3a6 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0xa80 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x129 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x3f9 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x275 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0xe42 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x3ca ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x45c ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x3c ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x4a ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x22c ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x67 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0xa5 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x1c4 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x22a ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x35 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x830 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x16 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x1ce ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0xb1d ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x29f ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x693 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0xa6 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x5e6 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x58 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x1c ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x40 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x111 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x15a ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0xde ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x1c ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x26 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x4ef ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0xb5 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0xaa ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x91 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x8d ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x7e ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x19 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0xf2 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0xfa ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0xe2 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x16 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x35 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x20 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x1c ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x10 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x1c ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x16 ./FATFS/Target/sd_diskio.o - .debug_macro 0x0000000000000000 0x147 ./FATFS/Target/sd_diskio.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWFTPC/lwftpc.o - .text 0x0000000000000000 0x0 ./LWFTPC/lwftpc.o - .data 0x0000000000000000 0x0 ./LWFTPC/lwftpc.o - .bss 0x0000000000000000 0x0 ./LWFTPC/lwftpc.o - .text.lwftp_store - 0x0000000000000000 0xf8 ./LWFTPC/lwftpc.o - .text.lwftp_list - 0x0000000000000000 0x4c ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0xac6 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x22 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x5b ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x29 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x94 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x43 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x34 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x57 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x369 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x10 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x16 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x43 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x34 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x10 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x58 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x8e ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x1c ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x177 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x16 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x147 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x16 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x35 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x20 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x24a ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x2e ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x3b ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x103 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x6a ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x1df ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x1c ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x22 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0xfb ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x1305 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x11f ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x27 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x211d1 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x6d ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x3d48 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x19b ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x5d ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x2462 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x1079 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x154 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x114 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x3f8 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0xac ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x788 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x228 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x66 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x3a6 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0xa80 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x129 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x3f9 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x275 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0xe42 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x3ca ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x45c ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x3c ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x4a ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x22c ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x67 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0xa5 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x1c4 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x22a ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x35 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x830 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x16 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x1ce ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0xb1d ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x29f ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x693 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0xa6 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x5e6 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x58 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0xe8 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x16 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x10 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x16 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x16 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x29 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x10 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x22 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x10 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x1c ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x52 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x10 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x52 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0xc1 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x1c ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x3d ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0xc8 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x16 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x10 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x28 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x10 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x17 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x10 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x460 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x43 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x7c ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x17 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x118 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x19 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x11f ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x82 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x66 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x739 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0xad ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x6a ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x169 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x16 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x111 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x15a ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0xde ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x1c ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x26 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x4ef ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0xb5 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0xaa ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x91 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x8d ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x7e ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x19 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0xf2 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x10 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0x73 ./LWFTPC/lwftpc.o - .debug_macro 0x0000000000000000 0xda ./LWFTPC/lwftpc.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/App/lwip.o - .text 0x0000000000000000 0x0 ./LWIP/App/lwip.o - .data 0x0000000000000000 0x0 ./LWIP/App/lwip.o - .bss 0x0000000000000000 0x0 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0xac6 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x24a ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x2e ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x3b ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x22 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x8e ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x51 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x103 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x6a ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x1df ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x1c ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x22 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0xfb ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x1305 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x11f ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x27 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x211d1 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x6d ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x3d48 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x174 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x61 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x29 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x43 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x34 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x16 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x43 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x34 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x58 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x8e ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x1c ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x177 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x369 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x19b ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x5d ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x2462 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x1079 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x154 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x114 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x3f8 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0xac ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x788 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x228 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x66 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x3a6 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0xa80 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x129 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x3f9 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x275 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0xe42 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x3ca ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x45c ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x3c ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x4a ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x22c ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x67 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0xa5 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x1c4 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x22a ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x35 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x830 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x16 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x1ce ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0xb1d ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x29f ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x693 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0xa6 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x5e6 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x58 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0xe8 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x16 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x16 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x35 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x16 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x29 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x1c ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x1c ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x16 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x147 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x22 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x1c ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x52 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x52 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0xc1 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x1c ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x3d ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0xc8 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x16 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x35 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x28 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x17 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x460 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x43 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x7c ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x17 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x118 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x19 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x11f ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x82 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x66 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x739 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x3f ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x25 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x15b ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x22 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0xad ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x6a ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x1bd ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x169 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x12f ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0xa0 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x28 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x46 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x22 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x16 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x16 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x111 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x15a ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0xde ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x1c ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x26 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x4ef ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0xb5 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0xaa ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x91 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x8d ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x7e ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x19 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0xf2 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x73 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/App/lwip.o - .debug_macro 0x0000000000000000 0x1c ./LWIP/App/lwip.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./LWIP/Target/ethernetif.o - .text 0x0000000000000000 0x0 ./LWIP/Target/ethernetif.o - .data 0x0000000000000000 0x0 ./LWIP/Target/ethernetif.o - .bss 0x0000000000000000 0x0 ./LWIP/Target/ethernetif.o - .text.HAL_ETH_MspDeInit - 0x0000000000000000 0x80 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0xac6 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x24a ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x2e ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x3b ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x22 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x8e ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x51 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x103 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x6a ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x1df ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x1c ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x22 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0xfb ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x1305 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x11f ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x27 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x211d1 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x6d ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x3d48 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x174 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x61 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x29 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x43 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x34 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x16 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x43 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x34 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x58 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x8e ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x1c ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x177 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x369 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x19b ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x5d ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x2462 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x1079 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x154 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x114 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x3f8 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0xac ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x788 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x228 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x66 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x3a6 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0xa80 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x129 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x3f9 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x275 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0xe42 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x3ca ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x45c ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x3c ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x4a ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x22c ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x67 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0xa5 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x1c4 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x22a ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x35 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x830 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x16 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x1ce ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0xb1d ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x29f ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x693 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0xa6 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x5e6 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x58 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0xee ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x16 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x16 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x35 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x16 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x29 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x1c ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x1c ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x16 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x147 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x22 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x1c ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x52 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x52 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0xc1 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x1c ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x3d ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0xc8 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x16 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x35 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x28 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x17 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x460 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x43 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x7c ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x17 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x118 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x19 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x11f ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x82 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x66 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x739 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x16 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x111 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x15a ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0xde ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x1c ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x26 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x4ef ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0xb5 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0xaa ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x91 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x8d ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x7e ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x19 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0xf2 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x73 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x6a ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x1c3 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x169 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x10 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x3f ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x25 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x22 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x15b ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x12f ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x46 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0xa0 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x28 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x22 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x16 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x16 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x20 ./LWIP/Target/ethernetif.o - .debug_macro 0x0000000000000000 0x1c ./LWIP/Target/ethernetif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/diskio.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/FatFs/src/diskio.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/FatFs/src/diskio.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/FatFs/src/diskio.o - .text.disk_status - 0x0000000000000000 0x34 ./Middlewares/Third_Party/FatFs/src/diskio.o - .text.disk_initialize - 0x0000000000000000 0x4c ./Middlewares/Third_Party/FatFs/src/diskio.o - .text.disk_read - 0x0000000000000000 0x40 ./Middlewares/Third_Party/FatFs/src/diskio.o - .text.disk_write - 0x0000000000000000 0x40 ./Middlewares/Third_Party/FatFs/src/diskio.o - .text.disk_ioctl - 0x0000000000000000 0x3c ./Middlewares/Third_Party/FatFs/src/diskio.o - .text.get_fattime - 0x0000000000000000 0x10 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_info 0x0000000000000000 0x3ed ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_abbrev 0x0000000000000000 0x181 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_aranges - 0x0000000000000000 0x48 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_rnglists - 0x0000000000000000 0x31 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x40d ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x40 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x91 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x7e ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0xf2 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0xfa ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0xe2 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_line 0x0000000000000000 0xc40 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_str 0x0000000000000000 0x15db6d ./Middlewares/Third_Party/FatFs/src/diskio.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/FatFs/src/diskio.o - .debug_frame 0x0000000000000000 0xec ./Middlewares/Third_Party/FatFs/src/diskio.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/FatFs/src/diskio.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/FatFs/src/ff.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/FatFs/src/ff.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/FatFs/src/ff.o - .bss.FatFs 0x0000000000000000 0x4 ./Middlewares/Third_Party/FatFs/src/ff.o - .bss.Fsid 0x0000000000000000 0x2 ./Middlewares/Third_Party/FatFs/src/ff.o - .bss.Files 0x0000000000000000 0x20 ./Middlewares/Third_Party/FatFs/src/ff.o - .rodata.ExCvt 0x0000000000000000 0x80 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.ld_word 0x0000000000000000 0x30 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.ld_dword - 0x0000000000000000 0x46 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.ld_qword - 0x0000000000000000 0x1b6 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.st_word 0x0000000000000000 0x36 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.st_dword - 0x0000000000000000 0x58 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.st_qword - 0x0000000000000000 0x110 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.mem_cpy 0x0000000000000000 0x42 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.mem_set 0x0000000000000000 0x36 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.mem_cmp 0x0000000000000000 0x4e ./Middlewares/Third_Party/FatFs/src/ff.o - .text.chk_chr 0x0000000000000000 0x36 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.lock_fs 0x0000000000000000 0x2c ./Middlewares/Third_Party/FatFs/src/ff.o - .text.unlock_fs - 0x0000000000000000 0x36 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.chk_lock - 0x0000000000000000 0xb8 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.enq_lock - 0x0000000000000000 0x44 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.inc_lock - 0x0000000000000000 0x11c ./Middlewares/Third_Party/FatFs/src/ff.o - .text.dec_lock - 0x0000000000000000 0x78 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.clear_lock - 0x0000000000000000 0x48 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.sync_window - 0x0000000000000000 0x88 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.move_window - 0x0000000000000000 0x5a ./Middlewares/Third_Party/FatFs/src/ff.o - .text.sync_fs 0x0000000000000000 0xe0 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.clust2sect - 0x0000000000000000 0x3e ./Middlewares/Third_Party/FatFs/src/ff.o - .text.get_fat 0x0000000000000000 0x2ac ./Middlewares/Third_Party/FatFs/src/ff.o - .text.put_fat 0x0000000000000000 0x23c ./Middlewares/Third_Party/FatFs/src/ff.o - .text.find_bitmap - 0x0000000000000000 0x10e ./Middlewares/Third_Party/FatFs/src/ff.o - .text.change_bitmap - 0x0000000000000000 0xea ./Middlewares/Third_Party/FatFs/src/ff.o - .text.fill_first_frag - 0x0000000000000000 0x5e ./Middlewares/Third_Party/FatFs/src/ff.o - .text.fill_last_frag - 0x0000000000000000 0x62 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.remove_chain - 0x0000000000000000 0x168 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.create_chain - 0x0000000000000000 0x202 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.clmt_clust - 0x0000000000000000 0x98 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.dir_sdi 0x0000000000000000 0x128 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.dir_next - 0x0000000000000000 0x1cc ./Middlewares/Third_Party/FatFs/src/ff.o - .text.dir_alloc - 0x0000000000000000 0xb8 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.ld_clust - 0x0000000000000000 0x3e ./Middlewares/Third_Party/FatFs/src/ff.o - .text.st_clust - 0x0000000000000000 0x40 ./Middlewares/Third_Party/FatFs/src/ff.o - .rodata.LfnOfs - 0x0000000000000000 0xd ./Middlewares/Third_Party/FatFs/src/ff.o - .text.cmp_lfn 0x0000000000000000 0xe0 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.pick_lfn - 0x0000000000000000 0xc8 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.put_lfn 0x0000000000000000 0xd0 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.gen_numname - 0x0000000000000000 0x11c ./Middlewares/Third_Party/FatFs/src/ff.o - .text.sum_sfn 0x0000000000000000 0x42 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.xdir_sum - 0x0000000000000000 0x66 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.xname_sum - 0x0000000000000000 0x68 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.xsum32 0x0000000000000000 0x26 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.get_xdir_info - 0x0000000000000000 0x104 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.load_xdir - 0x0000000000000000 0x17c ./Middlewares/Third_Party/FatFs/src/ff.o - .text.load_obj_dir - 0x0000000000000000 0x6c ./Middlewares/Third_Party/FatFs/src/ff.o - .text.store_xdir - 0x0000000000000000 0xb6 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.create_xdir - 0x0000000000000000 0xce ./Middlewares/Third_Party/FatFs/src/ff.o - .text.dir_read - 0x0000000000000000 0x18e ./Middlewares/Third_Party/FatFs/src/ff.o - .text.dir_find - 0x0000000000000000 0x252 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.dir_register - 0x0000000000000000 0x354 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.dir_remove - 0x0000000000000000 0xb0 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.get_fileinfo - 0x0000000000000000 0x1d8 ./Middlewares/Third_Party/FatFs/src/ff.o - .rodata 0x0000000000000000 0x54 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.create_name - 0x0000000000000000 0x370 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.follow_path - 0x0000000000000000 0x15c ./Middlewares/Third_Party/FatFs/src/ff.o - .text.get_ldnumber - 0x0000000000000000 0x88 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.check_fs - 0x0000000000000000 0xc8 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.find_volume - 0x0000000000000000 0x730 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.validate - 0x0000000000000000 0x8e ./Middlewares/Third_Party/FatFs/src/ff.o - .text.f_mount 0x0000000000000000 0xc8 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.f_open 0x0000000000000000 0x83a ./Middlewares/Third_Party/FatFs/src/ff.o - .text.f_read 0x0000000000000000 0x38e ./Middlewares/Third_Party/FatFs/src/ff.o - .text.f_write 0x0000000000000000 0x40c ./Middlewares/Third_Party/FatFs/src/ff.o - .text.f_sync 0x0000000000000000 0x36c ./Middlewares/Third_Party/FatFs/src/ff.o - .text.f_close 0x0000000000000000 0x5e ./Middlewares/Third_Party/FatFs/src/ff.o - .text.f_lseek 0x0000000000000000 0x886 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.f_opendir - 0x0000000000000000 0x222 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.f_closedir - 0x0000000000000000 0x56 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.f_readdir - 0x0000000000000000 0x100 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.f_stat 0x0000000000000000 0xc2 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.f_getfree - 0x0000000000000000 0x21c ./Middlewares/Third_Party/FatFs/src/ff.o - .text.f_truncate - 0x0000000000000000 0x174 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.f_unlink - 0x0000000000000000 0x228 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.f_mkdir 0x0000000000000000 0x36e ./Middlewares/Third_Party/FatFs/src/ff.o - .text.f_rename - 0x0000000000000000 0x37c ./Middlewares/Third_Party/FatFs/src/ff.o - .text.f_mkfs 0x0000000000000000 0x11d8 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.f_gets 0x0000000000000000 0x7a ./Middlewares/Third_Party/FatFs/src/ff.o - .text.putc_bfd - 0x0000000000000000 0x7a ./Middlewares/Third_Party/FatFs/src/ff.o - .text.putc_flush - 0x0000000000000000 0x4a ./Middlewares/Third_Party/FatFs/src/ff.o - .text.putc_init - 0x0000000000000000 0x2a ./Middlewares/Third_Party/FatFs/src/ff.o - .text.f_putc 0x0000000000000000 0x3a ./Middlewares/Third_Party/FatFs/src/ff.o - .text.f_puts 0x0000000000000000 0x48 ./Middlewares/Third_Party/FatFs/src/ff.o - .text.f_printf - 0x0000000000000000 0x43c ./Middlewares/Third_Party/FatFs/src/ff.o - .rodata.cst32.1 - 0x0000000000000000 0xe ./Middlewares/Third_Party/FatFs/src/ff.o - .rodata.cst.0 0x0000000000000000 0xe ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_info 0x0000000000000000 0x2f47 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_abbrev 0x0000000000000000 0x2b7 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_aranges - 0x0000000000000000 0x2b0 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_rnglists - 0x0000000000000000 0x250 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x81b ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x40 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x91 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x7e ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0xf2 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0xfa ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0xe2 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_line 0x0000000000000000 0x54ee ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_str 0x0000000000000000 0x15f0cd ./Middlewares/Third_Party/FatFs/src/ff.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/FatFs/src/ff.o - .debug_frame 0x0000000000000000 0xcf8 ./Middlewares/Third_Party/FatFs/src/ff.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/FatFs/src/ff.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .text.FATFS_UnLinkDriverEx - 0x0000000000000000 0x70 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .text.FATFS_UnLinkDriver - 0x0000000000000000 0x1a ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .text.FATFS_GetAttachedDriversNbr - 0x0000000000000000 0x18 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x40 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x91 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x7e ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0xf2 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0xfa ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000000000 0xe2 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .rodata.Tbl 0x0000000000000000 0x100 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .text.ff_convert - 0x0000000000000000 0x78 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .text.ff_wtoupper - 0x0000000000000000 0x114 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .rodata.cvt1.1 - 0x0000000000000000 0x1f2 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .rodata.cvt2.0 - 0x0000000000000000 0xbc ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_info 0x0000000000000000 0x1e1 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_abbrev 0x0000000000000000 0xdd ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_aranges - 0x0000000000000000 0x28 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_rnglists - 0x0000000000000000 0x1a ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x3fb ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x40 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x91 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x7e ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0xf2 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0xfa ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_macro 0x0000000000000000 0xe2 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_line 0x0000000000000000 0xca0 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_str 0x0000000000000000 0x15d956 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .debug_frame 0x0000000000000000 0x60 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .text.ff_cre_syncobj - 0x0000000000000000 0x40 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .text.ff_del_syncobj - 0x0000000000000000 0x18 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .text.ff_req_grant - 0x0000000000000000 0x2a ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .text.ff_rel_grant - 0x0000000000000000 0x16 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_info 0x0000000000000000 0x49c ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_abbrev 0x0000000000000000 0x193 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_aranges - 0x0000000000000000 0x38 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_rnglists - 0x0000000000000000 0x25 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x3f5 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x40 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x91 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x7e ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0xf2 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0xfa ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_macro 0x0000000000000000 0xe2 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_line 0x0000000000000000 0xc17 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_str 0x0000000000000000 0x15dc36 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .debug_frame 0x0000000000000000 0xa0 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/FatFs/src/option/syscall.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.makeCmsisPriority - 0x0000000000000000 0x2c ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osThreadGetId - 0x0000000000000000 0xe ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osThreadTerminate - 0x0000000000000000 0x18 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osThreadYield - 0x0000000000000000 0x24 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osThreadSetPriority - 0x0000000000000000 0x2a ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osThreadGetPriority - 0x0000000000000000 0x3c ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .rodata 0x0000000000000000 0x1 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osTimerCreate - 0x0000000000000000 0x68 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osTimerStart - 0x0000000000000000 0x88 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osTimerStop - 0x0000000000000000 0x78 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osTimerDelete - 0x0000000000000000 0x40 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osSignalSet - 0x0000000000000000 0x80 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osSignalWait - 0x0000000000000000 0x98 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osMutexDelete - 0x0000000000000000 0x26 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osPoolCreate - 0x0000000000000000 0xba ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osPoolAlloc - 0x0000000000000000 0xc4 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osPoolCAlloc - 0x0000000000000000 0x2a ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osPoolFree - 0x0000000000000000 0x82 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osMailCreate - 0x0000000000000000 0xb0 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osMailAlloc - 0x0000000000000000 0x2a ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osMailCAlloc - 0x0000000000000000 0x46 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osMailPut - 0x0000000000000000 0x7c ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osMailGet - 0x0000000000000000 0xe8 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osMailFree - 0x0000000000000000 0x2a ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osSystickHandler - 0x0000000000000000 0x16 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osThreadSuspend - 0x0000000000000000 0x18 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osThreadResume - 0x0000000000000000 0x44 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osThreadSuspendAll - 0x0000000000000000 0xe ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osThreadResumeAll - 0x0000000000000000 0x18 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osDelayUntil - 0x0000000000000000 0x2c ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osAbortDelay - 0x0000000000000000 0x16 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osThreadList - 0x0000000000000000 0x16 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osMessagePeek - 0x0000000000000000 0x96 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osMessageAvailableSpace - 0x0000000000000000 0x18 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osRecursiveMutexCreate - 0x0000000000000000 0x16 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osRecursiveMutexRelease - 0x0000000000000000 0x16 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osRecursiveMutexWait - 0x0000000000000000 0x18 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osSemaphoreGetCount - 0x0000000000000000 0x18 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x5b ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x94 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x57 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x91 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x7e ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x0000000000000000 0xf2 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .debug_info 0x0000000000000000 0x77 ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .debug_macro 0x0000000000000000 0xe3 ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .debug_line 0x0000000000000000 0x546 ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .debug_str 0x0000000000000000 0x8462 ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .text.xEventGroupCreateStatic - 0x0000000000000000 0x6e ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .text.xEventGroupCreate - 0x0000000000000000 0x34 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .text.xEventGroupSync - 0x0000000000000000 0x15c ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .text.xEventGroupWaitBits - 0x0000000000000000 0x19c ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .text.xEventGroupClearBits - 0x0000000000000000 0x70 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .text.xEventGroupGetBitsFromISR - 0x0000000000000000 0x48 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .text.xEventGroupSetBits - 0x0000000000000000 0x116 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .text.vEventGroupDelete - 0x0000000000000000 0x6a ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .text.vEventGroupSetBitsCallback - 0x0000000000000000 0x1a ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .text.vEventGroupClearBitsCallback - 0x0000000000000000 0x1a ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .text.prvTestWaitCondition - 0x0000000000000000 0x44 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_info 0x0000000000000000 0xa51 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_abbrev 0x0000000000000000 0x2e6 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_aranges - 0x0000000000000000 0x70 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_rnglists - 0x0000000000000000 0x52 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x1e0 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x5b ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x94 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x10e ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x57 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x91 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_line 0x0000000000000000 0xb20 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_str 0x0000000000000000 0xc082 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .debug_frame 0x0000000000000000 0x1a4 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x5b ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x94 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x10e ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x57 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .text.xQueuePeek - 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .text.xQueuePeekFromISR - 0x0000000000000000 0xd2 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .text.uxQueueSpacesAvailable - 0x0000000000000000 0x46 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .text.xQueueIsQueueEmptyFromISR - 0x0000000000000000 0x48 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .text.xQueueIsQueueFullFromISR - 0x0000000000000000 0x4c ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .text.pcQueueGetName - 0x0000000000000000 0x4c ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x5b ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x94 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x10e ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x57 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .text.xStreamBufferGenericCreate - 0x0000000000000000 0xb6 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .text.xStreamBufferGenericCreateStatic - 0x0000000000000000 0x102 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .text.vStreamBufferDelete - 0x0000000000000000 0x4e ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .text.xStreamBufferReset - 0x0000000000000000 0x6c ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .text.xStreamBufferSetTriggerLevel - 0x0000000000000000 0x5c ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .text.xStreamBufferSpacesAvailable - 0x0000000000000000 0x66 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .text.xStreamBufferBytesAvailable - 0x0000000000000000 0x3a ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .text.xStreamBufferSend - 0x0000000000000000 0x16a ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .text.xStreamBufferSendFromISR - 0x0000000000000000 0xe2 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .text.prvWriteMessageToBuffer - 0x0000000000000000 0x7a ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .text.xStreamBufferReceive - 0x0000000000000000 0x12a ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .text.xStreamBufferNextMessageLengthBytes - 0x0000000000000000 0x92 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .text.xStreamBufferReceiveFromISR - 0x0000000000000000 0xde ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .text.prvReadMessageFromBuffer - 0x0000000000000000 0x64 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .text.xStreamBufferIsEmpty - 0x0000000000000000 0x50 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .text.xStreamBufferIsFull - 0x0000000000000000 0x60 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .text.xStreamBufferSendCompletedFromISR - 0x0000000000000000 0x86 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .text.xStreamBufferReceiveCompletedFromISR - 0x0000000000000000 0x86 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .text.prvWriteBytesToBuffer - 0x0000000000000000 0xe4 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .text.prvReadBytesFromBuffer - 0x0000000000000000 0xf4 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .text.prvBytesInBuffer - 0x0000000000000000 0x40 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .text.prvInitialiseNewStreamBuffer - 0x0000000000000000 0x66 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_info 0x0000000000000000 0x12fc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_abbrev 0x0000000000000000 0x363 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_aranges - 0x0000000000000000 0xc8 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_rnglists - 0x0000000000000000 0x9c ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x1e0 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_macro 0x0000000000000000 0x18 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_line 0x0000000000000000 0xffc ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_str 0x0000000000000000 0xbff4 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .debug_frame 0x0000000000000000 0x350 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.vTaskDelete - 0x0000000000000000 0x120 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.vTaskDelayUntil - 0x0000000000000000 0xfc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.uxTaskPriorityGet - 0x0000000000000000 0x34 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.uxTaskPriorityGetFromISR - 0x0000000000000000 0x58 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.vTaskPrioritySet - 0x0000000000000000 0x154 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.vTaskSuspend - 0x0000000000000000 0x124 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.prvTaskIsTaskSuspended - 0x0000000000000000 0x64 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.vTaskResume - 0x0000000000000000 0xbc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.xTaskResumeFromISR - 0x0000000000000000 0xe4 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.vTaskEndScheduler - 0x0000000000000000 0x30 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.uxTaskGetNumberOfTasks - 0x0000000000000000 0x18 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.pcTaskGetName - 0x0000000000000000 0x48 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.xTaskCatchUpTicks - 0x0000000000000000 0x54 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.vTaskPlaceOnUnorderedEventList - 0x0000000000000000 0x78 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.vTaskRemoveFromUnorderedEventList - 0x0000000000000000 0xc4 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.vTaskSetTimeOutState - 0x0000000000000000 0x4c ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.xTaskGetCurrentTaskHandle - 0x0000000000000000 0x20 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.uxTaskResetEventItemValue - 0x0000000000000000 0x30 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.ulTaskNotifyTake - 0x0000000000000000 0x90 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.xTaskNotifyWait - 0x0000000000000000 0xb4 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.xTaskGenericNotify - 0x0000000000000000 0x16c ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.xTaskGenericNotifyFromISR - 0x0000000000000000 0x1b4 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.vTaskNotifyGiveFromISR - 0x0000000000000000 0x124 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.xTaskNotifyStateClear - 0x0000000000000000 0x4c ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.ulTaskNotifyValueClear - 0x0000000000000000 0x48 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x5b ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x94 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x10e ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x57 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x0000000000000000 0x91 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .text.xTimerCreate - 0x0000000000000000 0x42 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .text.xTimerCreateStatic - 0x0000000000000000 0x7c ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .text.prvInitialiseNewTimer - 0x0000000000000000 0x76 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .text.xTimerGetTimerDaemonTaskHandle - 0x0000000000000000 0x38 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .text.xTimerGetPeriod - 0x0000000000000000 0x38 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .text.vTimerSetReloadMode - 0x0000000000000000 0x66 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .text.uxTimerGetReloadMode - 0x0000000000000000 0x52 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .text.xTimerGetExpiryTime - 0x0000000000000000 0x3c ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .text.pcTimerGetName - 0x0000000000000000 0x38 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .text.xTimerIsTimerActive - 0x0000000000000000 0x52 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .text.pvTimerGetTimerID - 0x0000000000000000 0x40 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .text.vTimerSetTimerID - 0x0000000000000000 0x40 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x5b ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x94 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x10e ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x57 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x0000000000000000 0x87 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .rodata.pcInterruptPriorityRegisters - 0x0000000000000000 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .text.vPortEndScheduler - 0x0000000000000000 0x38 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .rodata.xHeapStructSize - 0x0000000000000000 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .text.xPortGetFreeHeapSize - 0x0000000000000000 0x18 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .text.xPortGetMinimumEverFreeHeapSize - 0x0000000000000000 0x18 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .text.vPortInitialiseBlocks - 0x0000000000000000 0xe ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .text.vPortGetHeapStats - 0x0000000000000000 0xbc ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x5b ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x94 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x10e ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x57 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .text.netconn_getaddr - 0x0000000000000000 0xa4 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .text.netconn_bind_if - 0x0000000000000000 0x5c ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .text.netconn_disconnect - 0x0000000000000000 0x54 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .text.netconn_listen_with_backlog - 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .text.netconn_accept - 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .text.netconn_tcp_recvd - 0x0000000000000000 0x5c ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .text.netconn_recv_tcp_pbuf - 0x0000000000000000 0x50 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .text.netconn_recv_tcp_pbuf_flags - 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .text.netconn_recv_udp_raw_netbuf - 0x0000000000000000 0x50 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .text.netconn_recv_udp_raw_netbuf_flags - 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .text.netconn_sendto - 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .text.netconn_send - 0x0000000000000000 0x5c ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .text.netconn_shutdown - 0x0000000000000000 0x40 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0xad ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x1c3 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x169 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x3a ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x91 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x7e ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0xf2 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x73 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0xda ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0xa0 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .text.accept_function - 0x0000000000000000 0x178 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .text.lwip_netconn_do_bind_if - 0x0000000000000000 0x78 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .text.lwip_netconn_do_disconnect - 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .text.lwip_netconn_do_listen - 0x0000000000000000 0x130 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .text.lwip_netconn_do_send - 0x0000000000000000 0x9a ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .text.lwip_netconn_do_getaddr - 0x0000000000000000 0x10c ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x1c3 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x169 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x91 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x7e ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0xf2 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x73 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0xb3 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x12f ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x40 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0xda ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x4c ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x23 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0xa0 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0xea ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x4d ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x70 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0xf9 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/err.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/api/err.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/api/err.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/api/err.o - .rodata.err_to_errno_table - 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/api/err.o - .text.err_to_errno - 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/api/err.o - .rodata 0x0000000000000000 0x14b ./Middlewares/Third_Party/LwIP/src/api/err.o - .data.err_strerr - 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/api/err.o - .text.lwip_strerr - 0x0000000000000000 0x40 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_info 0x0000000000000000 0x178 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_abbrev 0x0000000000000000 0xba ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_aranges - 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_rnglists - 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x5f3 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x91 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x7e ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0xf2 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x73 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_macro 0x0000000000000000 0x320 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_line 0x0000000000000000 0xe54 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_str 0x0000000000000000 0x163ee9 ./Middlewares/Third_Party/LwIP/src/api/err.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/api/err.o - .debug_frame 0x0000000000000000 0x60 ./Middlewares/Third_Party/LwIP/src/api/err.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/api/err.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .text.lwip_if_indextoname - 0x0000000000000000 0x24 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .text.lwip_if_nametoindex - 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_info 0x0000000000000000 0x104 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_abbrev 0x0000000000000000 0x9a ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_aranges - 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_rnglists - 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x6f8 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x320 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x1c3 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x169 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0xb3 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x12f ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0xf4 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x401 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x91 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x7e ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0xf2 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x73 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_macro 0x0000000000000000 0x24 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_line 0x0000000000000000 0xf62 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_str 0x0000000000000000 0x16875b ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .debug_frame 0x0000000000000000 0x60 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/api/if_api.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .text.netbuf_new - 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .text.netbuf_alloc - 0x0000000000000000 0x94 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .text.netbuf_free - 0x0000000000000000 0x50 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .text.netbuf_ref - 0x0000000000000000 0x94 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .text.netbuf_chain - 0x0000000000000000 0x68 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .text.netbuf_first - 0x0000000000000000 0x38 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0xad ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x1c3 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x169 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x3a ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x511 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_line 0x0000000000000000 0xc61 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .debug_str 0x0000000000000000 0x15d0aa ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/api/netdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x507 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_line 0x0000000000000000 0xc59 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .debug_str 0x0000000000000000 0x15d09b ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/api/netifapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .bss.sockets 0x0000000000000000 0x40 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .bss.select_cb_list - 0x0000000000000000 0x4 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_socket_thread_init - 0x0000000000000000 0xe ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_socket_thread_cleanup - 0x0000000000000000 0xe ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.tryget_socket_unconn_nouse - 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_socket_dbg_get_socket - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.tryget_socket_unconn - 0x0000000000000000 0x1a ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.tryget_socket_unconn_locked - 0x0000000000000000 0x1a ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.tryget_socket - 0x0000000000000000 0x2c ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.get_socket - 0x0000000000000000 0x30 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .rodata 0x0000000000000000 0x3ce ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.alloc_socket - 0x0000000000000000 0xd8 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.free_socket_locked - 0x0000000000000000 0x38 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.free_socket_free_elements - 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.free_socket - 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_accept - 0x0000000000000000 0x23c ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_bind - 0x0000000000000000 0xdc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_close - 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_connect - 0x0000000000000000 0x100 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_listen - 0x0000000000000000 0xa8 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_recv_tcp - 0x0000000000000000 0x220 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_sock_make_addr - 0x0000000000000000 0xdc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_recv_tcp_from - 0x0000000000000000 0x64 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_recvfrom_udp_raw - 0x0000000000000000 0x1a8 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_recvfrom - 0x0000000000000000 0x124 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_read - 0x0000000000000000 0x2a ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_readv - 0x0000000000000000 0x40 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_recv - 0x0000000000000000 0x2c ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_recvmsg - 0x0000000000000000 0x23c ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_send - 0x0000000000000000 0xbc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_sendmsg - 0x0000000000000000 0x33c ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_sendto - 0x0000000000000000 0x164 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_socket - 0x0000000000000000 0xbc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_write - 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_writev - 0x0000000000000000 0x40 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_link_select_cb - 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_unlink_select_cb - 0x0000000000000000 0x90 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_selscan - 0x0000000000000000 0x2e4 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_select - 0x0000000000000000 0x3e0 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_pollscan - 0x0000000000000000 0x218 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_poll - 0x0000000000000000 0x144 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_poll_should_wake - 0x0000000000000000 0x86 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.event_callback - 0x0000000000000000 0x178 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.select_check_waiters - 0x0000000000000000 0x11c ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_shutdown - 0x0000000000000000 0xfc ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_getaddrname - 0x0000000000000000 0xd8 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_getpeername - 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_getsockname - 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_getsockopt - 0x0000000000000000 0x90 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_sockopt_to_ipopt - 0x0000000000000000 0x54 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_getsockopt_impl - 0x0000000000000000 0x356 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_setsockopt - 0x0000000000000000 0x90 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_setsockopt_impl - 0x0000000000000000 0x348 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_ioctl - 0x0000000000000000 0xa4 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_fcntl - 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_inet_ntop - 0x0000000000000000 0x60 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .text.lwip_inet_pton - 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_info 0x0000000000000000 0x37be ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_abbrev 0x0000000000000000 0x348 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_aranges - 0x0000000000000000 0x1c8 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_rnglists - 0x0000000000000000 0x1a9 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x8db ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x1c3 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x169 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0xb3 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x12f ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0xf4 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x320 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x401 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x91 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x7e ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0xf2 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x73 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x24 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x40 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0xda ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0xa0 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0xea ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x70 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0xf9 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x4d ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_macro 0x0000000000000000 0x4c ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_line 0x0000000000000000 0x2bf3 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_str 0x0000000000000000 0x16cbc3 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .debug_frame 0x0000000000000000 0x7e0 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/api/sockets.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .text.tcpip_callback - 0x0000000000000000 0x6c ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .text.tcpip_api_call - 0x0000000000000000 0x30 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .text.tcpip_callbackmsg_new - 0x0000000000000000 0x38 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .text.tcpip_callbackmsg_delete - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .text.tcpip_callbackmsg_trycallback - 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .text.tcpip_callbackmsg_trycallback_fromisr - 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .text.pbuf_free_int - 0x0000000000000000 0x1a ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .text.pbuf_free_callback - 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .text.mem_free_callback - 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x91 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x7e ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0xf2 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x73 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x1c3 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x169 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0xb3 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x12f ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x4c ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x5e ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0xa0 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0xea ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x46 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .rodata 0x0000000000000000 0x83d ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .rodata.mqtt_message_type_str - 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_msg_type_to_str - 0x0000000000000000 0x2c ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.msg_generate_packet_id - 0x0000000000000000 0x38 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_ringbuf_put - 0x0000000000000000 0x40 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_ringbuf_get_ptr - 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_ringbuf_advance_get_idx - 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_ringbuf_len - 0x0000000000000000 0x36 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_output_send - 0x0000000000000000 0x168 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_create_request - 0x0000000000000000 0x8c ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_append_request - 0x0000000000000000 0x98 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_delete_request - 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_take_request - 0x0000000000000000 0xa4 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_request_time_elapsed - 0x0000000000000000 0xa4 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_clear_requests - 0x0000000000000000 0x54 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_init_requests - 0x0000000000000000 0x5c ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_output_append_u8 - 0x0000000000000000 0x1e ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_output_append_u16 - 0x0000000000000000 0x30 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_output_append_buf - 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_output_append_string - 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_output_append_fixed_header - 0x0000000000000000 0x94 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_output_check_space - 0x0000000000000000 0x64 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_close - 0x0000000000000000 0xc0 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_cyclic_timer - 0x0000000000000000 0x130 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.pub_ack_rec_rel_response - 0x0000000000000000 0x7a ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_incomming_suback - 0x0000000000000000 0x36 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_message_received - 0x0000000000000000 0x370 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_parse_incoming - 0x0000000000000000 0x1ac ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_tcp_recv_cb - 0x0000000000000000 0xbc ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_tcp_sent_cb - 0x0000000000000000 0x74 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_tcp_err_cb - 0x0000000000000000 0x48 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_tcp_poll_cb - 0x0000000000000000 0x2c ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_tcp_connect_cb - 0x0000000000000000 0x84 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_publish - 0x0000000000000000 0x1a8 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_sub_unsub - 0x0000000000000000 0x1ac ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_set_inpub_callback - 0x0000000000000000 0x48 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_client_new - 0x0000000000000000 0x14 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_client_free - 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_client_connect - 0x0000000000000000 0x4f8 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_disconnect - 0x0000000000000000 0x48 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .text.mqtt_client_is_connected - 0x0000000000000000 0x40 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_info 0x0000000000000000 0x1cbe ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_abbrev 0x0000000000000000 0x38c ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_aranges - 0x0000000000000000 0x150 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_rnglists - 0x0000000000000000 0x130 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x7c9 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x1c3 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x169 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x1e ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0xb3 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x12f ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0xa0 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0xea ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x70 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0xf9 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x11c ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x91 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x7e ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0xf2 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x73 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_line 0x0000000000000000 0x1ec0 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_str 0x0000000000000000 0x1697e2 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .debug_frame 0x0000000000000000 0x5b8 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x507 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_line 0x0000000000000000 0xc57 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .debug_str 0x0000000000000000 0x15d099 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/core/altcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x507 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_line 0x0000000000000000 0xc5d ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .debug_str 0x0000000000000000 0x15d09f ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x507 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_line 0x0000000000000000 0xc5b ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .debug_str 0x0000000000000000 0x15d09d ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/def.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/def.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/def.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/def.o - .text.lwip_strnstr - 0x0000000000000000 0x6c ./Middlewares/Third_Party/LwIP/src/core/def.o - .text.lwip_stricmp - 0x0000000000000000 0x68 ./Middlewares/Third_Party/LwIP/src/core/def.o - .text.lwip_strnicmp - 0x0000000000000000 0x76 ./Middlewares/Third_Party/LwIP/src/core/def.o - .text.lwip_itoa - 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/core/def.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/dns.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x507 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_line 0x0000000000000000 0xc55 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .debug_str 0x0000000000000000 0x15d097 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/core/dns.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .text.inet_cksum_pseudo_base - 0x0000000000000000 0xde ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .text.inet_chksum_pseudo - 0x0000000000000000 0x70 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .text.ip_chksum_pseudo - 0x0000000000000000 0x2c ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .rodata 0x0000000000000000 0x6c ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .text.inet_cksum_pseudo_partial_base - 0x0000000000000000 0x128 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .text.inet_chksum_pseudo_partial - 0x0000000000000000 0x7e ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .text.ip_chksum_pseudo_partial - 0x0000000000000000 0x3a ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0xad ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x1c3 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x169 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/init.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/init.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/init.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x5e ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x91 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x7e ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0xf2 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x73 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0xb3 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x1c3 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x169 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x12f ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0xf4 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x320 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x401 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0xa0 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0xea ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x4d ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x70 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0xf9 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x1d7 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x46 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0x40 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000000000 0xda ./Middlewares/Third_Party/LwIP/src/core/init.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ip.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x1c3 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x169 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0xad ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x12f ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0xa0 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000000000 0xea ./Middlewares/Third_Party/LwIP/src/core/ip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/mem.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .text.mem_calloc - 0x0000000000000000 0x5c ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x91 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x7e ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0xf2 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x73 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/memp.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x91 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x7e ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0xf2 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x73 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0xb3 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x1c3 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x169 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x12f ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0xa0 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0xea ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x4d ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x70 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0xf9 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x1d7 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x40 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x4c ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x23 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0xf4 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x320 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x401 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x24 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x46 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/netif.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .text.netif_input - 0x0000000000000000 0x6c ./Middlewares/Third_Party/LwIP/src/core/netif.o - .text.netif_add_noaddr - 0x0000000000000000 0x30 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .text.netif_set_ipaddr - 0x0000000000000000 0x50 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .text.netif_set_netmask - 0x0000000000000000 0x50 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .text.netif_set_gw - 0x0000000000000000 0x50 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .text.netif_remove - 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/netif.o - .text.netif_name_to_index - 0x0000000000000000 0x2c ./Middlewares/Third_Party/LwIP/src/core/netif.o - .text.netif_index_to_name - 0x0000000000000000 0x50 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .text.netif_find - 0x0000000000000000 0xa0 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x1c3 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x169 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0xb3 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x12f ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0xa0 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0xea ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x70 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0xf9 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x1d7 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x4d ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x46 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x91 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x7e ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0xf2 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x73 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .text.pbuf_add_header_force - 0x0000000000000000 0x1e ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .text.pbuf_header - 0x0000000000000000 0x24 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .text.pbuf_free_header - 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .text.pbuf_chain - 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .text.pbuf_dechain - 0x0000000000000000 0xa4 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .text.pbuf_get_contiguous - 0x0000000000000000 0xc4 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .text.pbuf_skip_const - 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .text.pbuf_skip - 0x0000000000000000 0x26 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .text.pbuf_take - 0x0000000000000000 0x124 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .text.pbuf_take_at - 0x0000000000000000 0xd4 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .text.pbuf_coalesce - 0x0000000000000000 0x42 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .text.pbuf_get_at - 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .text.pbuf_try_get_at - 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .text.pbuf_put_at - 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .text.pbuf_memcmp - 0x0000000000000000 0xaa ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .text.pbuf_memfind - 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .text.pbuf_strstr - 0x0000000000000000 0x5a ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0xad ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x91 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x7e ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0xf2 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x73 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x1c3 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x169 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x12f ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0xa0 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0xea ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x70 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0xf9 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x1d7 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/raw.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x507 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_line 0x0000000000000000 0xc55 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .debug_str 0x0000000000000000 0x15d097 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/core/raw.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/stats.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x507 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_line 0x0000000000000000 0xc57 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .debug_str 0x0000000000000000 0x15d099 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/core/stats.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/sys.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .text.sys_msleep - 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_info 0x0000000000000000 0x246 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_abbrev 0x0000000000000000 0xfd ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_aranges - 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_rnglists - 0x0000000000000000 0x13 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x5e1 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x91 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x7e ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0xf2 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_macro 0x0000000000000000 0x73 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_line 0x0000000000000000 0xe13 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_str 0x0000000000000000 0x16376d ./Middlewares/Third_Party/LwIP/src/core/sys.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .debug_frame 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/core/sys.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .rodata.tcp_state_str - 0x0000000000000000 0x2c ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .text.tcp_bind_netif - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .text.tcp_accept_null - 0x0000000000000000 0x40 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .text.tcp_listen_with_backlog - 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .text.tcp_listen_with_backlog_and_err - 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .text.tcp_txnow - 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .text.tcp_setprio - 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .text.tcp_new 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .text.tcp_debug_state_str - 0x0000000000000000 0x24 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .text.tcp_tcp_get_tcp_addrinfo - 0x0000000000000000 0x68 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0xad ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x1c3 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x169 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x13b ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0xa0 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0xea ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x70 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0xf9 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x1d7 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0xad ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x1c3 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x169 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x12f ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0xa0 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0xea ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x70 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0xf9 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x1d7 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0xad ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x1c3 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x169 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x12f ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0xa0 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0xea ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x70 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0xf9 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x1d7 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .rodata.lwip_num_cyclic_timers - 0x0000000000000000 0x4 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .text.sys_untimeout - 0x0000000000000000 0x74 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .text.sys_restart_timeouts - 0x0000000000000000 0x50 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x91 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x7e ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0xf2 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x73 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0xb3 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x1c3 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x169 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x12f ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0xa0 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0xea ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x70 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0xf9 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x1d7 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x4c ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x46 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .text.udp_send - 0x0000000000000000 0x68 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .text.udp_sendto - 0x0000000000000000 0xb8 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .text.udp_sendto_if - 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .text.udp_sendto_if_src - 0x0000000000000000 0x1cc ./Middlewares/Third_Party/LwIP/src/core/udp.o - .text.udp_bind_netif - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .text.udp_disconnect - 0x0000000000000000 0x50 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0xad ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x1c3 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x169 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x12f ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0xa0 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0xea ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x4d ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x70 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0xc0 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x507 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_line 0x0000000000000000 0xc5d ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .debug_str 0x0000000000000000 0x15d09f ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x507 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_line 0x0000000000000000 0xc5b ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .debug_str 0x0000000000000000 0x15d09d ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .text.etharp_find_addr - 0x0000000000000000 0xa8 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .text.etharp_get_entry - 0x0000000000000000 0xcc ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0xad ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x1bd ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x169 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x12f ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0xa0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x46 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0xc0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0xad ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x1c3 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x169 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x12f ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x70 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0xa0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0xea ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x507 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_line 0x0000000000000000 0xc5b ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .debug_str 0x0000000000000000 0x15d09d ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .text.ip4_output - 0x0000000000000000 0x6c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0xad ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x1c3 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x169 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x12f ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0xa0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0xea ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x70 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x4d ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0xf9 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x1d7 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .rodata.ip_addr_broadcast - 0x0000000000000000 0x4 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .text.ip4_addr_netmask_valid - 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .text.ipaddr_addr - 0x0000000000000000 0x2a ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .rodata 0x0000000000000000 0x70 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .text.ip4addr_aton - 0x0000000000000000 0x254 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .text.ip4addr_ntoa - 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .text.ip4addr_ntoa_r - 0x0000000000000000 0x100 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .bss.str.0 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x1c3 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x169 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0xb3 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000000000 0x12f ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0xb3 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x1c3 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x169 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x12f ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0xa0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0xea ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x70 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x507 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_line 0x0000000000000000 0xc5c ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .debug_str 0x0000000000000000 0x15d09e ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x507 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_line 0x0000000000000000 0xc5d ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .debug_str 0x0000000000000000 0x15d09f ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x507 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_line 0x0000000000000000 0xc5c ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .debug_str 0x0000000000000000 0x15d09e ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x507 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_line 0x0000000000000000 0xc5c ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .debug_str 0x0000000000000000 0x15d09e ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x507 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_line 0x0000000000000000 0xc5a ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .debug_str 0x0000000000000000 0x15d09c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x507 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_line 0x0000000000000000 0xc5f ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .debug_str 0x0000000000000000 0x15d0a1 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x640 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0xad ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x1c3 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x169 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x12f ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0xa0 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0xea ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_line 0x0000000000000000 0xde1 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .debug_str 0x0000000000000000 0x161011 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x507 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_line 0x0000000000000000 0xc5b ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .debug_str 0x0000000000000000 0x15d09d ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x507 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_line 0x0000000000000000 0xc5a ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .debug_str 0x0000000000000000 0x15d09c ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x750 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x46 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x91 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x7e ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0xf2 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x73 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x1c3 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x169 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0xb3 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x12f ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0xa0 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0xc0 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_line 0x0000000000000000 0xfdc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .debug_str 0x0000000000000000 0x1678f2 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .text.bridgeif_fdb_update_src - 0x0000000000000000 0xd8 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .text.bridgeif_fdb_get_dst_ports - 0x0000000000000000 0x70 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .text.bridgeif_fdb_age_one_second - 0x0000000000000000 0x76 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .rodata 0x0000000000000000 0x8d ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .text.bridgeif_age_tmr - 0x0000000000000000 0x48 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .text.bridgeif_fdb_init - 0x0000000000000000 0x78 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_info 0x0000000000000000 0x492 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_abbrev 0x0000000000000000 0x1a5 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_aranges - 0x0000000000000000 0x40 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_rnglists - 0x0000000000000000 0x2c ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x714 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x46 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x91 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x7e ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0xf2 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x73 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x1c3 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x169 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0xb3 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x12f ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_line 0x0000000000000000 0x11b0 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_str 0x0000000000000000 0x167086 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .debug_frame 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0xad ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x1c3 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x169 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x12f ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x46 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0xa0 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0xea ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0xc0 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x20 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x520 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_macro 0x0000000000000000 0x46 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_line 0x0000000000000000 0xcab ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .debug_str 0x0000000000000000 0x15d276 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x520 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_macro 0x0000000000000000 0x46 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_line 0x0000000000000000 0xcb3 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .debug_str 0x0000000000000000 0x15d27e ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x520 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_macro 0x0000000000000000 0x46 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_line 0x0000000000000000 0xcb9 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .debug_str 0x0000000000000000 0x15d284 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .rodata 0x0000000000000000 0xbc ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .text.slipif_output - 0x0000000000000000 0x104 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .text.slipif_output_v4 - 0x0000000000000000 0x1e ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .text.slipif_rxbyte - 0x0000000000000000 0x19c ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .text.slipif_rxbyte_input - 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .text.slipif_loop_thread - 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .text.slipif_init - 0x0000000000000000 0xd0 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .text.slipif_poll - 0x0000000000000000 0x74 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_info 0x0000000000000000 0x8b2 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_abbrev 0x0000000000000000 0x2be ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_aranges - 0x0000000000000000 0x50 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_rnglists - 0x0000000000000000 0x3a ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x6c8 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x1c3 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x169 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0xb3 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x12f ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0xc0 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x91 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x7e ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0xf2 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_macro 0x0000000000000000 0x73 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_line 0x0000000000000000 0x1197 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_str 0x0000000000000000 0x1671a0 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .debug_frame 0x0000000000000000 0x10c ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/slipif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x524 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_macro 0x0000000000000000 0x4c ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_line 0x0000000000000000 0xcb4 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .debug_str 0x0000000000000000 0x15d286 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/zepif.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x516 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_macro 0x0000000000000000 0x2f ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_line 0x0000000000000000 0xc9f ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .debug_str 0x0000000000000000 0x15d15f ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x516 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_macro 0x0000000000000000 0x2f ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_line 0x0000000000000000 0xc9e ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .debug_str 0x0000000000000000 0x15d15e ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x516 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_macro 0x0000000000000000 0x2f ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_line 0x0000000000000000 0xca3 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .debug_str 0x0000000000000000 0x15d163 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x516 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_macro 0x0000000000000000 0x2f ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_line 0x0000000000000000 0xca3 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .debug_str 0x0000000000000000 0x15d163 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x516 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_macro 0x0000000000000000 0x2f ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_line 0x0000000000000000 0xca2 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .debug_str 0x0000000000000000 0x15d162 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x516 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_macro 0x0000000000000000 0x2f ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_line 0x0000000000000000 0xca1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .debug_str 0x0000000000000000 0x15d161 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x516 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_macro 0x0000000000000000 0x2f ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_line 0x0000000000000000 0xc9e ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .debug_str 0x0000000000000000 0x15d15e ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x516 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_macro 0x0000000000000000 0x2f ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_line 0x0000000000000000 0xc9e ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .debug_str 0x0000000000000000 0x15d15e ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x516 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_macro 0x0000000000000000 0x2f ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_line 0x0000000000000000 0xca0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .debug_str 0x0000000000000000 0x15d160 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x516 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_macro 0x0000000000000000 0x2f ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_line 0x0000000000000000 0xc9e ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .debug_str 0x0000000000000000 0x15d15e ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x516 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_macro 0x0000000000000000 0x2f ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_line 0x0000000000000000 0xc9f ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .debug_str 0x0000000000000000 0x15d15f ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x517 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_macro 0x0000000000000000 0x2f ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_line 0x0000000000000000 0xca1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .debug_str 0x0000000000000000 0x15d161 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x516 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_macro 0x0000000000000000 0x2f ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_line 0x0000000000000000 0xc9e ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .debug_str 0x0000000000000000 0x15d15e ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x516 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_macro 0x0000000000000000 0x2f ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_line 0x0000000000000000 0xca0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .debug_str 0x0000000000000000 0x15d160 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x516 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_macro 0x0000000000000000 0x2f ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_line 0x0000000000000000 0xc9f ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .debug_str 0x0000000000000000 0x15d15f ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x516 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_macro 0x0000000000000000 0x2f ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_line 0x0000000000000000 0xca4 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .debug_str 0x0000000000000000 0x15d164 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x516 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_macro 0x0000000000000000 0x2f ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_line 0x0000000000000000 0xc9e ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .debug_str 0x0000000000000000 0x15d15e ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x516 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_macro 0x0000000000000000 0x2f ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_line 0x0000000000000000 0xca1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .debug_str 0x0000000000000000 0x15d161 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x516 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_macro 0x0000000000000000 0x2f ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_line 0x0000000000000000 0xca3 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .debug_str 0x0000000000000000 0x15d163 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x516 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_macro 0x0000000000000000 0x2f ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_line 0x0000000000000000 0xca0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .debug_str 0x0000000000000000 0x15d160 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x516 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_macro 0x0000000000000000 0x2f ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_line 0x0000000000000000 0xca3 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .debug_str 0x0000000000000000 0x15d163 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x516 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_macro 0x0000000000000000 0x2f ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_line 0x0000000000000000 0xca0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .debug_str 0x0000000000000000 0x15d160 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x516 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_macro 0x0000000000000000 0x2f ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_line 0x0000000000000000 0xc9f ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .debug_str 0x0000000000000000 0x15d15f ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x516 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_macro 0x0000000000000000 0x2f ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_line 0x0000000000000000 0xca0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .debug_str 0x0000000000000000 0x15d160 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_info 0x0000000000000000 0x85 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_abbrev 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_aranges - 0x0000000000000000 0x18 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x516 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x51 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x174 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x61 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_macro 0x0000000000000000 0x2f ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_line 0x0000000000000000 0xc9d ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .debug_str 0x0000000000000000 0x15d15d ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .comment 0x0000000000000000 0x44 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .ARM.attributes - 0x0000000000000000 0x32 ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .group 0x0000000000000000 0xc ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .text 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .data 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .bss 0x0000000000000000 0x0 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .text.sys_mbox_post - 0x0000000000000000 0x2c ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .text.sys_mbox_trypost_fromisr - 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .text.sys_mutex_free - 0x0000000000000000 0x1a ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0xac6 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x5b ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x94 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x10e ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x57 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x34 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x8e ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x177 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x369 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x29 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x147 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x52 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0xc1 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x3d ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0xc8 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x28 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x103 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x1df ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x460 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x43 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x7c ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x17 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x118 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x82 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x24a ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x2e ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x3b ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0xfb ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x1305 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x11f ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x27 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x211d1 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x6d ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x3d48 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x19b ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x5d ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x2462 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x1079 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x154 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x114 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x3f8 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0xac ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x788 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x228 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x3a6 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0xa80 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x129 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x3f9 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x275 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0xe42 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x3ca ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x45c ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x3c ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x4a ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x22c ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x67 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0xa5 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x1c4 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x22a ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x35 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x830 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x1ce ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0xb1d ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x29f ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x693 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0xa6 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x5e6 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x58 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0xe8 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x739 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x66 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x6a ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x16 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x111 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x15a ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0xde ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x1c ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x26 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x4ef ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0xb5 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0xaa ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x91 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x8d ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x7e ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x19 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0xf2 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x73 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x10 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x3f ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x25 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x22 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x0000000000000000 0x15b ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-atoi.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-atoi.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-atoi.o) - .text.atoi 0x0000000000000000 0x8 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-atoi.o) - .text._atoi_r 0x0000000000000000 0x8 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-atoi.o) - .debug_frame 0x0000000000000000 0x30 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-atoi.o) - .ARM.attributes - 0x0000000000000000 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-atoi.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-exit.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-exit.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-exit.o) - .text.exit 0x0000000000000000 0x24 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-exit.o) - .debug_frame 0x0000000000000000 0x28 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-exit.o) - .ARM.attributes - 0x0000000000000000 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-exit.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-rand.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-rand.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-rand.o) - .text.srand 0x0000000000000000 0x5c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-rand.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strtol.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strtol.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strtol.o) - .text._strtol_l.constprop.0 - 0x0000000000000000 0x104 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strtol.o) - .text._strtol_r - 0x0000000000000000 0x4 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strtol.o) - .text.strtol_l - 0x0000000000000000 0x14 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strtol.o) - .text.strtol 0x0000000000000000 0x14 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strtol.o) - .debug_frame 0x0000000000000000 0x64 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strtol.o) - .ARM.attributes - 0x0000000000000000 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strtol.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strtoul.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strtoul.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strtoul.o) - .text._strtoul_r - 0x0000000000000000 0x4 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strtoul.o) - .text.strtoul_l - 0x0000000000000000 0x14 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strtoul.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-ctype_.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-ctype_.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-ctype_.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-findfp.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-findfp.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-findfp.o) - .text.__fp_lock - 0x0000000000000000 0x18 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-findfp.o) - .text.__fp_unlock - 0x0000000000000000 0x18 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-findfp.o) - .text.__sfp 0x0000000000000000 0xa8 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-findfp.o) - .text.__fp_lock_all - 0x0000000000000000 0x1c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-findfp.o) - .text.__fp_unlock_all - 0x0000000000000000 0x1c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-findfp.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fwalk.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fwalk.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fwalk.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-printf.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-printf.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-printf.o) - .text._printf_r - 0x0000000000000000 0x1c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-printf.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-putchar.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-putchar.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-putchar.o) - .text._putchar_r - 0x0000000000000000 0x6 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-putchar.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-puts.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-puts.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-puts.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-snprintf.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-snprintf.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-snprintf.o) - .text._snprintf_r - 0x0000000000000000 0x5e C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-snprintf.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-stdio.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-stdio.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-stdio.o) - .text.__seofread - 0x0000000000000000 0x4 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-stdio.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-wbuf.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-wbuf.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-wbuf.o) - .text.__swbuf 0x0000000000000000 0x10 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-wbuf.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-wsetup.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-wsetup.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-wsetup.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memcmp.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memcmp.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memcmp.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memmove.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memmove.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memmove.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memset.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memset.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memset.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strchr.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strchr.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strchr.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strncmp.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strncmp.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strncmp.o) - .text.strncmp 0x0000000000000000 0x24 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strncmp.o) - .debug_frame 0x0000000000000000 0x28 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strncmp.o) - .ARM.attributes - 0x0000000000000000 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strncmp.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-closer.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-closer.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-closer.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-impure.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-impure.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-impure.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lseekr.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lseekr.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lseekr.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-readr.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-readr.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-readr.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-writer.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-writer.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-writer.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-errno.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-errno.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-errno.o) - .text.__errno 0x0000000000000000 0xc C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-errno.o) - .debug_frame 0x0000000000000000 0x20 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-errno.o) - .ARM.attributes - 0x0000000000000000 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-errno.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-init.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-init.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-init.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lock.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lock.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lock.o) - .text.__retarget_lock_init - 0x0000000000000000 0x2 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lock.o) - .text.__retarget_lock_close - 0x0000000000000000 0x2 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lock.o) - .text.__retarget_lock_close_recursive - 0x0000000000000000 0x2 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lock.o) - .text.__retarget_lock_acquire - 0x0000000000000000 0x2 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lock.o) - .text.__retarget_lock_try_acquire - 0x0000000000000000 0x4 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lock.o) - .text.__retarget_lock_try_acquire_recursive - 0x0000000000000000 0x4 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lock.o) - .text.__retarget_lock_release - 0x0000000000000000 0x2 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lock.o) - .bss.__lock___arc4random_mutex - 0x0000000000000000 0x1 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lock.o) - .bss.__lock___at_quick_exit_mutex - 0x0000000000000000 0x1 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lock.o) - .bss.__lock___atexit_recursive_mutex - 0x0000000000000000 0x1 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lock.o) - .bss.__lock___dd_hash_mutex - 0x0000000000000000 0x1 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lock.o) - .bss.__lock___env_recursive_mutex - 0x0000000000000000 0x1 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lock.o) - .bss.__lock___tz_mutex - 0x0000000000000000 0x1 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lock.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strcmp.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strcmp.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memcpy-stub.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memcpy-stub.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memcpy-stub.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strlen.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strlen.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-assert.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-assert.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-assert.o) - .text.__assert - 0x0000000000000000 0xa C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-assert.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-freer.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-freer.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-freer.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-malloc.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-malloc.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-malloc.o) - .text.free 0x0000000000000000 0x10 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-malloc.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-mallocr.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-mallocr.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-mallocr.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-mlock.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-mlock.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-mlock.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-svfprintf.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-svfprintf.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-svfprintf.o) - .text.__ssprint_r - 0x0000000000000000 0xfa C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-svfprintf.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-vfprintf.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-vfprintf.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-vfprintf.o) - .text.__sprint_r - 0x0000000000000000 0x1a C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-vfprintf.o) - .text.vfprintf - 0x0000000000000000 0x14 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-vfprintf.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-vfprintf_i.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-vfprintf_i.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-vfprintf_i.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fflush.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fflush.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fflush.o) - .text.fflush 0x0000000000000000 0x28 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fflush.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fprintf.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fprintf.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fprintf.o) - .text._fprintf_r - 0x0000000000000000 0x1a C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fprintf.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fvwrite.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fvwrite.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fvwrite.o) - .text.__sfvwrite_r - 0x0000000000000000 0x294 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fvwrite.o) - .debug_frame 0x0000000000000000 0x3c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fvwrite.o) - .ARM.attributes - 0x0000000000000000 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fvwrite.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-makebuf.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-makebuf.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-makebuf.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-putc.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-putc.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-putc.o) - .text.putc 0x0000000000000000 0x10 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-putc.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fstatr.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fstatr.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fstatr.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-isattyr.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-isattyr.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-isattyr.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-sbrkr.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-sbrkr.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-sbrkr.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memchr.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memchr.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-abort.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-abort.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-abort.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-reallocr.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-reallocr.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-reallocr.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-signal.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-signal.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-signal.o) - .text._init_signal_r - 0x0000000000000000 0x28 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-signal.o) - .text._signal_r - 0x0000000000000000 0x30 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-signal.o) - .text.__sigtramp_r - 0x0000000000000000 0x48 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-signal.o) - .text.signal 0x0000000000000000 0x10 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-signal.o) - .text._init_signal - 0x0000000000000000 0xc C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-signal.o) - .text.__sigtramp - 0x0000000000000000 0x10 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-signal.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-signalr.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-signalr.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-signalr.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-msizer.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-msizer.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-msizer.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard\libgcc.a(_aeabi_uldivmod.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard\libgcc.a(_aeabi_uldivmod.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard\libgcc.a(_udivmoddi4.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard\libgcc.a(_udivmoddi4.o) - .ARM.extab 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard\libgcc.a(_udivmoddi4.o) - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard\libgcc.a(_dvmd_tls.o) - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard\libgcc.a(_dvmd_tls.o) - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crtend.o - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crtend.o - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crtend.o - .rodata 0x0000000000000000 0x24 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crtend.o - .eh_frame 0x0000000000000000 0x4 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crtend.o - .comment 0x0000000000000000 0x44 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crtend.o - .ARM.attributes - 0x0000000000000000 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crtend.o - .text 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crtn.o - .data 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crtn.o - .bss 0x0000000000000000 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crtn.o - -Memory Configuration - -Name Origin Length Attributes -ITCMRAM 0x0000000000000000 0x0000000000010000 xrw -DTCMRAM 0x0000000020000000 0x0000000000020000 xrw -FLASH 0x0000000008000000 0x0000000000100000 xr -RAM_D1 0x0000000024000000 0x0000000000050000 xrw -RAM_D2 0x0000000030000000 0x0000000000008000 xrw -RAM_D3 0x0000000038000000 0x0000000000004000 xrw -*default* 0x0000000000000000 0xffffffffffffffff - -Linker script and memory map - -LOAD C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crti.o -LOAD C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crtbegin.o -LOAD C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard/crt0.o -LOAD ./Core/Src/freertos.o -LOAD ./Core/Src/main.o -LOAD ./Core/Src/stm32h7xx_hal_msp.o -LOAD ./Core/Src/stm32h7xx_hal_timebase_tim.o -LOAD ./Core/Src/stm32h7xx_it.o -LOAD ./Core/Src/syscalls.o -LOAD ./Core/Src/sysmem.o -LOAD ./Core/Src/system_stm32h7xx.o -LOAD ./Core/Startup/startup_stm32h723vghx.o -LOAD ./Drivers/BSP/Components/lan8742/lan8742.o -LOAD ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o -LOAD ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o -LOAD ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o -LOAD ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o -LOAD ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o -LOAD ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o -LOAD ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o -LOAD ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o -LOAD ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o -LOAD ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o -LOAD ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o -LOAD ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o -LOAD ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o -LOAD ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o -LOAD ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o -LOAD ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o -LOAD ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o -LOAD ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o -LOAD ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o -LOAD ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o -LOAD ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o -LOAD ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o -LOAD ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o -LOAD ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o -LOAD ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o -LOAD ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o -LOAD ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o -LOAD ./FATFS/App/fatfs.o -LOAD ./FATFS/Target/bsp_driver_sd.o -LOAD ./FATFS/Target/fatfs_platform.o -LOAD ./FATFS/Target/sd_diskio.o -LOAD ./LWFTPC/lwftpc.o -LOAD ./LWIP/App/lwip.o -LOAD ./LWIP/Target/ethernetif.o -LOAD ./Middlewares/Third_Party/FatFs/src/diskio.o -LOAD ./Middlewares/Third_Party/FatFs/src/ff.o -LOAD ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o -LOAD ./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o -LOAD ./Middlewares/Third_Party/FatFs/src/option/syscall.o -LOAD ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o -LOAD ./Middlewares/Third_Party/FreeRTOS/Source/croutine.o -LOAD ./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o -LOAD ./Middlewares/Third_Party/FreeRTOS/Source/list.o -LOAD ./Middlewares/Third_Party/FreeRTOS/Source/queue.o -LOAD ./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o -LOAD ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o -LOAD ./Middlewares/Third_Party/FreeRTOS/Source/timers.o -LOAD ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o -LOAD ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o -LOAD ./Middlewares/Third_Party/LwIP/src/api/api_lib.o -LOAD ./Middlewares/Third_Party/LwIP/src/api/api_msg.o -LOAD ./Middlewares/Third_Party/LwIP/src/api/err.o -LOAD ./Middlewares/Third_Party/LwIP/src/api/if_api.o -LOAD ./Middlewares/Third_Party/LwIP/src/api/netbuf.o -LOAD ./Middlewares/Third_Party/LwIP/src/api/netdb.o -LOAD ./Middlewares/Third_Party/LwIP/src/api/netifapi.o -LOAD ./Middlewares/Third_Party/LwIP/src/api/sockets.o -LOAD ./Middlewares/Third_Party/LwIP/src/api/tcpip.o -LOAD ./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/altcp.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/def.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/dns.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/init.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/ip.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/mem.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/memp.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/netif.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/pbuf.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/raw.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/stats.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/sys.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/tcp.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/timeouts.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/udp.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o -LOAD ./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/slipif.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/zepif.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o -LOAD ./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o -LOAD ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o -START GROUP -LOAD C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a -LOAD C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libm.a -END GROUP -START GROUP -LOAD C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard\libgcc.a -LOAD C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a -END GROUP -START GROUP -LOAD C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard\libgcc.a -LOAD C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a -LOAD C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libnosys.a -END GROUP -START GROUP -LOAD C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard\libgcc.a -LOAD C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a -LOAD C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libnosys.a -END GROUP -LOAD C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crtend.o -LOAD C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crtn.o - 0x0000000024050000 _estack = (ORIGIN (RAM_D1) + LENGTH (RAM_D1)) - 0x0000000000002000 _Min_Heap_Size = 0x2000 - 0x0000000000004000 _Min_Stack_Size = 0x4000 - -.isr_vector 0x0000000008000000 0x2cc - 0x0000000008000000 . = ALIGN (0x4) - *(.isr_vector) - .isr_vector 0x0000000008000000 0x2cc ./Core/Startup/startup_stm32h723vghx.o - 0x0000000008000000 g_pfnVectors - 0x00000000080002cc . = ALIGN (0x4) - -.text 0x00000000080002d0 0x229f4 - 0x00000000080002d0 . = ALIGN (0x4) - *(.text) - .text 0x00000000080002d0 0x40 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crtbegin.o - .text 0x0000000008000310 0x14 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strcmp.o) - 0x0000000008000310 strcmp - .text 0x0000000008000324 0x10 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strlen.o) - 0x0000000008000324 strlen - *fill* 0x0000000008000334 0xc - .text 0x0000000008000340 0xa0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memchr.o) - 0x0000000008000340 memchr - .text 0x00000000080003e0 0x30 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard\libgcc.a(_aeabi_uldivmod.o) - 0x00000000080003e0 __aeabi_uldivmod - .text 0x0000000008000410 0x2c8 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard\libgcc.a(_udivmoddi4.o) - 0x0000000008000410 __udivmoddi4 - .text 0x00000000080006d8 0x4 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard\libgcc.a(_dvmd_tls.o) - 0x00000000080006d8 __aeabi_idiv0 - 0x00000000080006d8 __aeabi_ldiv0 - *(.text*) - .text.vApplicationStackOverflowHook - 0x00000000080006dc 0x16 ./Core/Src/freertos.o - 0x00000000080006dc vApplicationStackOverflowHook - *fill* 0x00000000080006f2 0x2 - .text.vApplicationGetIdleTaskMemory - 0x00000000080006f4 0x34 ./Core/Src/freertos.o - 0x00000000080006f4 vApplicationGetIdleTaskMemory - .text.vApplicationGetTimerTaskMemory - 0x0000000008000728 0x34 ./Core/Src/freertos.o - 0x0000000008000728 vApplicationGetTimerTaskMemory - .text.ITM_SendChar - 0x000000000800075c 0x4e ./Core/Src/main.o - .text._write 0x00000000080007aa 0x38 ./Core/Src/main.o - 0x00000000080007aa _write - *fill* 0x00000000080007e2 0x2 - .text.main 0x00000000080007e4 0x174 ./Core/Src/main.o - 0x00000000080007e4 main - .text.SystemClock_Config - 0x0000000008000958 0xdc ./Core/Src/main.o - 0x0000000008000958 SystemClock_Config - .text.MX_FDCAN1_Init - 0x0000000008000a34 0xcc ./Core/Src/main.o - .text.MX_FDCAN2_Init - 0x0000000008000b00 0xcc ./Core/Src/main.o - .text.MX_FDCAN3_Init - 0x0000000008000bcc 0xcc ./Core/Src/main.o - .text.MX_SDMMC1_SD_Init - 0x0000000008000c98 0x40 ./Core/Src/main.o - .text.MX_TIM3_Init - 0x0000000008000cd8 0x9c ./Core/Src/main.o - .text.MX_UART4_Init - 0x0000000008000d74 0x98 ./Core/Src/main.o - .text.MX_UART7_Init - 0x0000000008000e0c 0x98 ./Core/Src/main.o - .text.MX_UART8_Init - 0x0000000008000ea4 0x98 ./Core/Src/main.o - .text.MX_DMA_Init - 0x0000000008000f3c 0x40 ./Core/Src/main.o - .text.MX_MDMA_Init - 0x0000000008000f7c 0xc8 ./Core/Src/main.o - .text.MX_GPIO_Init - 0x0000000008001044 0x16c ./Core/Src/main.o - .text.lwftp_init - 0x00000000080011b0 0x1fc ./Core/Src/main.o - 0x00000000080011b0 lwftp_init - .text.StartDefaultTask - 0x00000000080013ac 0x58 ./Core/Src/main.o - 0x00000000080013ac StartDefaultTask - .text.StartDebugTask - 0x0000000008001404 0x10 ./Core/Src/main.o - 0x0000000008001404 StartDebugTask - .text.MPU_Config - 0x0000000008001414 0xbc ./Core/Src/main.o - .text.HAL_TIM_PeriodElapsedCallback - 0x00000000080014d0 0x24 ./Core/Src/main.o - 0x00000000080014d0 HAL_TIM_PeriodElapsedCallback - .text.Error_Handler - 0x00000000080014f4 0xa ./Core/Src/main.o - 0x00000000080014f4 Error_Handler - *fill* 0x00000000080014fe 0x2 - .text.HAL_MspInit - 0x0000000008001500 0x3c ./Core/Src/stm32h7xx_hal_msp.o - 0x0000000008001500 HAL_MspInit - .text.HAL_FDCAN_MspInit - 0x000000000800153c 0x280 ./Core/Src/stm32h7xx_hal_msp.o - 0x000000000800153c HAL_FDCAN_MspInit - .text.HAL_SD_MspInit - 0x00000000080017bc 0x12c ./Core/Src/stm32h7xx_hal_msp.o - 0x00000000080017bc HAL_SD_MspInit - .text.HAL_TIM_Base_MspInit - 0x00000000080018e8 0x44 ./Core/Src/stm32h7xx_hal_msp.o - 0x00000000080018e8 HAL_TIM_Base_MspInit - .text.HAL_UART_MspInit - 0x000000000800192c 0x274 ./Core/Src/stm32h7xx_hal_msp.o - 0x000000000800192c HAL_UART_MspInit - .text.HAL_InitTick - 0x0000000008001ba0 0xd8 ./Core/Src/stm32h7xx_hal_timebase_tim.o - 0x0000000008001ba0 HAL_InitTick - .text.NMI_Handler - 0x0000000008001c78 0x6 ./Core/Src/stm32h7xx_it.o - 0x0000000008001c78 NMI_Handler - .text.HardFault_Handler - 0x0000000008001c7e 0x6 ./Core/Src/stm32h7xx_it.o - 0x0000000008001c7e HardFault_Handler - .text.MemManage_Handler - 0x0000000008001c84 0x6 ./Core/Src/stm32h7xx_it.o - 0x0000000008001c84 MemManage_Handler - .text.BusFault_Handler - 0x0000000008001c8a 0x6 ./Core/Src/stm32h7xx_it.o - 0x0000000008001c8a BusFault_Handler - .text.UsageFault_Handler - 0x0000000008001c90 0x6 ./Core/Src/stm32h7xx_it.o - 0x0000000008001c90 UsageFault_Handler - .text.DebugMon_Handler - 0x0000000008001c96 0xe ./Core/Src/stm32h7xx_it.o - 0x0000000008001c96 DebugMon_Handler - .text.DMA1_Stream0_IRQHandler - 0x0000000008001ca4 0x14 ./Core/Src/stm32h7xx_it.o - 0x0000000008001ca4 DMA1_Stream0_IRQHandler - .text.FDCAN1_IT0_IRQHandler - 0x0000000008001cb8 0x14 ./Core/Src/stm32h7xx_it.o - 0x0000000008001cb8 FDCAN1_IT0_IRQHandler - .text.FDCAN2_IT0_IRQHandler - 0x0000000008001ccc 0x14 ./Core/Src/stm32h7xx_it.o - 0x0000000008001ccc FDCAN2_IT0_IRQHandler - .text.SDMMC1_IRQHandler - 0x0000000008001ce0 0x14 ./Core/Src/stm32h7xx_it.o - 0x0000000008001ce0 SDMMC1_IRQHandler - .text.TIM6_DAC_IRQHandler - 0x0000000008001cf4 0x14 ./Core/Src/stm32h7xx_it.o - 0x0000000008001cf4 TIM6_DAC_IRQHandler - .text.ETH_IRQHandler - 0x0000000008001d08 0x14 ./Core/Src/stm32h7xx_it.o - 0x0000000008001d08 ETH_IRQHandler - .text.MDMA_IRQHandler - 0x0000000008001d1c 0x14 ./Core/Src/stm32h7xx_it.o - 0x0000000008001d1c MDMA_IRQHandler - .text.FDCAN3_IT0_IRQHandler - 0x0000000008001d30 0x14 ./Core/Src/stm32h7xx_it.o - 0x0000000008001d30 FDCAN3_IT0_IRQHandler - .text._getpid 0x0000000008001d44 0x10 ./Core/Src/syscalls.o - 0x0000000008001d44 _getpid - .text._kill 0x0000000008001d54 0x24 ./Core/Src/syscalls.o - 0x0000000008001d54 _kill - .text._exit 0x0000000008001d78 0x14 ./Core/Src/syscalls.o - 0x0000000008001d78 _exit - .text._read 0x0000000008001d8c 0x3a ./Core/Src/syscalls.o - 0x0000000008001d8c _read - .text._close 0x0000000008001dc6 0x18 ./Core/Src/syscalls.o - 0x0000000008001dc6 _close - .text._fstat 0x0000000008001dde 0x20 ./Core/Src/syscalls.o - 0x0000000008001dde _fstat - .text._isatty 0x0000000008001dfe 0x16 ./Core/Src/syscalls.o - 0x0000000008001dfe _isatty - .text._lseek 0x0000000008001e14 0x1a ./Core/Src/syscalls.o - 0x0000000008001e14 _lseek - *fill* 0x0000000008001e2e 0x2 - .text._sbrk 0x0000000008001e30 0x70 ./Core/Src/sysmem.o - 0x0000000008001e30 _sbrk - .text.SystemInit - 0x0000000008001ea0 0x110 ./Core/Src/system_stm32h7xx.o - 0x0000000008001ea0 SystemInit - .text.Reset_Handler - 0x0000000008001fb0 0x50 ./Core/Startup/startup_stm32h723vghx.o - 0x0000000008001fb0 Reset_Handler - .text.Default_Handler - 0x0000000008002000 0x2 ./Core/Startup/startup_stm32h723vghx.o - 0x0000000008002000 RTC_Alarm_IRQHandler - 0x0000000008002000 EXTI2_IRQHandler - 0x0000000008002000 TIM8_CC_IRQHandler - 0x0000000008002000 UART8_IRQHandler - 0x0000000008002000 SPI4_IRQHandler - 0x0000000008002000 TIM1_CC_IRQHandler - 0x0000000008002000 BDMA_Channel6_IRQHandler - 0x0000000008002000 DMA2_Stream5_IRQHandler - 0x0000000008002000 DMA1_Stream5_IRQHandler - 0x0000000008002000 CORDIC_IRQHandler - 0x0000000008002000 BDMA_Channel1_IRQHandler - 0x0000000008002000 TAMP_STAMP_IRQHandler - 0x0000000008002000 EXTI3_IRQHandler - 0x0000000008002000 LPTIM4_IRQHandler - 0x0000000008002000 TIM8_TRG_COM_TIM14_IRQHandler - 0x0000000008002000 LPTIM2_IRQHandler - 0x0000000008002000 DFSDM1_FLT1_IRQHandler - 0x0000000008002000 DMAMUX2_OVR_IRQHandler - 0x0000000008002000 TIM8_UP_TIM13_IRQHandler - 0x0000000008002000 I2C3_ER_IRQHandler - 0x0000000008002000 DFSDM1_FLT2_IRQHandler - 0x0000000008002000 I2C5_EV_IRQHandler - 0x0000000008002000 USART10_IRQHandler - 0x0000000008002000 LPTIM3_IRQHandler - 0x0000000008002000 HSEM1_IRQHandler - 0x0000000008002000 EXTI0_IRQHandler - 0x0000000008002000 I2C2_EV_IRQHandler - 0x0000000008002000 DMA1_Stream2_IRQHandler - 0x0000000008002000 FPU_IRQHandler - 0x0000000008002000 OTG_HS_WKUP_IRQHandler - 0x0000000008002000 FDCAN1_IT1_IRQHandler - 0x0000000008002000 LTDC_ER_IRQHandler - 0x0000000008002000 DMA2_Stream2_IRQHandler - 0x0000000008002000 SPI1_IRQHandler - 0x0000000008002000 OCTOSPI1_IRQHandler - 0x0000000008002000 DMA2_Stream3_IRQHandler - 0x0000000008002000 OCTOSPI2_IRQHandler - 0x0000000008002000 DFSDM1_FLT3_IRQHandler - 0x0000000008002000 TIM23_IRQHandler - 0x0000000008002000 USART6_IRQHandler - 0x0000000008002000 TIM17_IRQHandler - 0x0000000008002000 USART3_IRQHandler - 0x0000000008002000 BDMA_Channel7_IRQHandler - 0x0000000008002000 LPTIM5_IRQHandler - 0x0000000008002000 UART5_IRQHandler - 0x0000000008002000 ADC3_IRQHandler - 0x0000000008002000 DMA2_Stream0_IRQHandler - 0x0000000008002000 TIM4_IRQHandler - 0x0000000008002000 BDMA_Channel2_IRQHandler - 0x0000000008002000 I2C1_EV_IRQHandler - 0x0000000008002000 DMA1_Stream6_IRQHandler - 0x0000000008002000 DMAMUX1_OVR_IRQHandler - 0x0000000008002000 DMA1_Stream1_IRQHandler - 0x0000000008002000 TIM16_IRQHandler - 0x0000000008002000 UART4_IRQHandler - 0x0000000008002000 BDMA_Channel5_IRQHandler - 0x0000000008002000 TIM3_IRQHandler - 0x0000000008002000 RCC_IRQHandler - 0x0000000008002000 UART9_IRQHandler - 0x0000000008002000 TIM8_BRK_TIM12_IRQHandler - 0x0000000008002000 TIM1_TRG_COM_IRQHandler - 0x0000000008002000 Default_Handler - 0x0000000008002000 ECC_IRQHandler - 0x0000000008002000 FMAC_IRQHandler - 0x0000000008002000 CEC_IRQHandler - 0x0000000008002000 EXTI15_10_IRQHandler - 0x0000000008002000 BDMA_Channel0_IRQHandler - 0x0000000008002000 ADC_IRQHandler - 0x0000000008002000 I2C5_ER_IRQHandler - 0x0000000008002000 DMA1_Stream7_IRQHandler - 0x0000000008002000 SPI5_IRQHandler - 0x0000000008002000 TIM7_IRQHandler - 0x0000000008002000 FDCAN3_IT1_IRQHandler - 0x0000000008002000 TIM5_IRQHandler - 0x0000000008002000 DMA2_Stream7_IRQHandler - 0x0000000008002000 TIM15_IRQHandler - 0x0000000008002000 PVD_AVD_IRQHandler - 0x0000000008002000 I2C3_EV_IRQHandler - 0x0000000008002000 EXTI9_5_IRQHandler - 0x0000000008002000 RTC_WKUP_IRQHandler - 0x0000000008002000 LTDC_IRQHandler - 0x0000000008002000 ETH_WKUP_IRQHandler - 0x0000000008002000 SPDIF_RX_IRQHandler - 0x0000000008002000 SPI2_IRQHandler - 0x0000000008002000 OTG_HS_EP1_IN_IRQHandler - 0x0000000008002000 TIM24_IRQHandler - 0x0000000008002000 CRS_IRQHandler - 0x0000000008002000 EXTI4_IRQHandler - 0x0000000008002000 RNG_IRQHandler - 0x0000000008002000 FDCAN2_IT1_IRQHandler - 0x0000000008002000 TIM1_UP_IRQHandler - 0x0000000008002000 BDMA_Channel4_IRQHandler - 0x0000000008002000 OTG_HS_EP1_OUT_IRQHandler - 0x0000000008002000 WWDG_IRQHandler - 0x0000000008002000 SPI6_IRQHandler - 0x0000000008002000 MDIOS_IRQHandler - 0x0000000008002000 I2C4_EV_IRQHandler - 0x0000000008002000 LPUART1_IRQHandler - 0x0000000008002000 TIM2_IRQHandler - 0x0000000008002000 OTG_HS_IRQHandler - 0x0000000008002000 DMA2D_IRQHandler - 0x0000000008002000 TIM1_BRK_IRQHandler - 0x0000000008002000 EXTI1_IRQHandler - 0x0000000008002000 SDMMC2_IRQHandler - 0x0000000008002000 BDMA_Channel3_IRQHandler - 0x0000000008002000 DTS_IRQHandler - 0x0000000008002000 UART7_IRQHandler - 0x0000000008002000 MDIOS_WKUP_IRQHandler - 0x0000000008002000 USART2_IRQHandler - 0x0000000008002000 DFSDM1_FLT0_IRQHandler - 0x0000000008002000 SAI4_IRQHandler - 0x0000000008002000 I2C2_ER_IRQHandler - 0x0000000008002000 DMA2_Stream1_IRQHandler - 0x0000000008002000 FLASH_IRQHandler - 0x0000000008002000 DMA2_Stream4_IRQHandler - 0x0000000008002000 USART1_IRQHandler - 0x0000000008002000 SPI3_IRQHandler - 0x0000000008002000 WAKEUP_PIN_IRQHandler - 0x0000000008002000 DMA1_Stream4_IRQHandler - 0x0000000008002000 I2C1_ER_IRQHandler - 0x0000000008002000 FMC_IRQHandler - 0x0000000008002000 FDCAN_CAL_IRQHandler - 0x0000000008002000 SWPMI1_IRQHandler - 0x0000000008002000 COMP1_IRQHandler - 0x0000000008002000 LPTIM1_IRQHandler - 0x0000000008002000 DCMI_PSSI_IRQHandler - 0x0000000008002000 I2C4_ER_IRQHandler - 0x0000000008002000 DMA2_Stream6_IRQHandler - 0x0000000008002000 SAI1_IRQHandler - 0x0000000008002000 DMA1_Stream3_IRQHandler - .text.LAN8742_RegisterBusIO - 0x0000000008002002 0x64 ./Drivers/BSP/Components/lan8742/lan8742.o - 0x0000000008002002 LAN8742_RegisterBusIO - .text.LAN8742_Init - 0x0000000008002066 0x150 ./Drivers/BSP/Components/lan8742/lan8742.o - 0x0000000008002066 LAN8742_Init - .text.LAN8742_GetLinkState - 0x00000000080021b6 0x10e ./Drivers/BSP/Components/lan8742/lan8742.o - 0x00000000080021b6 LAN8742_GetLinkState - .text.HAL_Init - 0x00000000080022c4 0x78 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - 0x00000000080022c4 HAL_Init - .text.HAL_IncTick - 0x000000000800233c 0x28 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - 0x000000000800233c HAL_IncTick - .text.HAL_GetTick - 0x0000000008002364 0x18 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - 0x0000000008002364 HAL_GetTick - .text.HAL_Delay - 0x000000000800237c 0x48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - 0x000000000800237c HAL_Delay - .text.HAL_SYSCFG_ETHInterfaceSelect - 0x00000000080023c4 0x28 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - 0x00000000080023c4 HAL_SYSCFG_ETHInterfaceSelect - .text.__NVIC_SetPriorityGrouping - 0x00000000080023ec 0x48 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .text.__NVIC_GetPriorityGrouping - 0x0000000008002434 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .text.__NVIC_EnableIRQ - 0x0000000008002450 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .text.__NVIC_SetPriority - 0x000000000800248c 0x54 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .text.NVIC_EncodePriority - 0x00000000080024e0 0x66 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .text.HAL_NVIC_SetPriorityGrouping - 0x0000000008002546 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - 0x0000000008002546 HAL_NVIC_SetPriorityGrouping - .text.HAL_NVIC_SetPriority - 0x000000000800255c 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - 0x000000000800255c HAL_NVIC_SetPriority - .text.HAL_NVIC_EnableIRQ - 0x0000000008002590 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - 0x0000000008002590 HAL_NVIC_EnableIRQ - .text.HAL_MPU_Disable - 0x00000000080025ac 0x30 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - 0x00000000080025ac HAL_MPU_Disable - .text.HAL_MPU_Enable - 0x00000000080025dc 0x40 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - 0x00000000080025dc HAL_MPU_Enable - .text.HAL_MPU_ConfigRegion - 0x000000000800261c 0x88 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - 0x000000000800261c HAL_MPU_ConfigRegion - .text.HAL_DMA_Init - 0x00000000080026a4 0x6b0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - 0x00000000080026a4 HAL_DMA_Init - .text.HAL_DMA_IRQHandler - 0x0000000008002d54 0xe54 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - 0x0000000008002d54 HAL_DMA_IRQHandler - .text.DMA_CalcBaseAndBitshift - 0x0000000008003ba8 0x164 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .text.DMA_CheckFifoParam - 0x0000000008003d0c 0xf8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .text.DMA_CalcDMAMUXChannelBaseAndMask - 0x0000000008003e04 0x134 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .text.DMA_CalcDMAMUXRequestGenBaseAndMask - 0x0000000008003f38 0xe8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .text.HAL_ETH_Init - 0x0000000008004020 0x1cc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - 0x0000000008004020 HAL_ETH_Init - .text.HAL_ETH_Start_IT - 0x00000000080041ec 0x118 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - 0x00000000080041ec HAL_ETH_Start_IT - .text.HAL_ETH_Stop_IT - 0x0000000008004304 0xf0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - 0x0000000008004304 HAL_ETH_Stop_IT - .text.HAL_ETH_Transmit_IT - 0x00000000080043f4 0xa2 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - 0x00000000080043f4 HAL_ETH_Transmit_IT - .text.HAL_ETH_ReadData - 0x0000000008004496 0x180 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - 0x0000000008004496 HAL_ETH_ReadData - .text.ETH_UpdateDescriptor - 0x0000000008004616 0xdc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_ETH_ReleaseTxPacket - 0x00000000080046f2 0xb6 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - 0x00000000080046f2 HAL_ETH_ReleaseTxPacket - .text.HAL_ETH_IRQHandler - 0x00000000080047a8 0x220 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - 0x00000000080047a8 HAL_ETH_IRQHandler - .text.HAL_ETH_PMTCallback - 0x00000000080049c8 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - 0x00000000080049c8 HAL_ETH_PMTCallback - .text.HAL_ETH_EEECallback - 0x00000000080049dc 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - 0x00000000080049dc HAL_ETH_EEECallback - .text.HAL_ETH_WakeUpCallback - 0x00000000080049f0 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - 0x00000000080049f0 HAL_ETH_WakeUpCallback - .text.HAL_ETH_ReadPHYRegister - 0x0000000008004a04 0xa8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - 0x0000000008004a04 HAL_ETH_ReadPHYRegister - .text.HAL_ETH_WritePHYRegister - 0x0000000008004aac 0xa8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - 0x0000000008004aac HAL_ETH_WritePHYRegister - .text.HAL_ETH_GetMACConfig - 0x0000000008004b54 0x3a8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - 0x0000000008004b54 HAL_ETH_GetMACConfig - .text.HAL_ETH_SetMACConfig - 0x0000000008004efc 0x34 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - 0x0000000008004efc HAL_ETH_SetMACConfig - .text.HAL_ETH_SetMDIOClockRange - 0x0000000008004f30 0xb0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - 0x0000000008004f30 HAL_ETH_SetMDIOClockRange - .text.HAL_ETH_GetDMAError - 0x0000000008004fe0 0x1a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - 0x0000000008004fe0 HAL_ETH_GetDMAError - *fill* 0x0000000008004ffa 0x2 - .text.ETH_SetMACConfig - 0x0000000008004ffc 0x238 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.ETH_SetDMAConfig - 0x0000000008005234 0x10c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.ETH_MACDMAConfig - 0x0000000008005340 0x13a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.ETH_DMATxDescListInit - 0x000000000800547a 0x92 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.ETH_DMARxDescListInit - 0x000000000800550c 0xba ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - *fill* 0x00000000080055c6 0x2 - .text.ETH_Prepare_Tx_Descriptors - 0x00000000080055c8 0x51c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .text.HAL_FDCAN_Init - 0x0000000008005ae4 0x3bc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - 0x0000000008005ae4 HAL_FDCAN_Init - .text.HAL_FDCAN_IRQHandler - 0x0000000008005ea0 0x498 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - 0x0000000008005ea0 HAL_FDCAN_IRQHandler - .text.HAL_FDCAN_ClockCalibrationCallback - 0x0000000008006338 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - 0x0000000008006338 HAL_FDCAN_ClockCalibrationCallback - .text.HAL_FDCAN_TxEventFifoCallback - 0x000000000800634e 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - 0x000000000800634e HAL_FDCAN_TxEventFifoCallback - .text.HAL_FDCAN_RxFifo0Callback - 0x0000000008006364 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - 0x0000000008006364 HAL_FDCAN_RxFifo0Callback - .text.HAL_FDCAN_RxFifo1Callback - 0x000000000800637a 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - 0x000000000800637a HAL_FDCAN_RxFifo1Callback - .text.HAL_FDCAN_TxFifoEmptyCallback - 0x0000000008006390 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - 0x0000000008006390 HAL_FDCAN_TxFifoEmptyCallback - .text.HAL_FDCAN_TxBufferCompleteCallback - 0x00000000080063a4 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - 0x00000000080063a4 HAL_FDCAN_TxBufferCompleteCallback - .text.HAL_FDCAN_TxBufferAbortCallback - 0x00000000080063ba 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - 0x00000000080063ba HAL_FDCAN_TxBufferAbortCallback - .text.HAL_FDCAN_RxBufferNewMessageCallback - 0x00000000080063d0 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - 0x00000000080063d0 HAL_FDCAN_RxBufferNewMessageCallback - .text.HAL_FDCAN_TimestampWraparoundCallback - 0x00000000080063e4 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - 0x00000000080063e4 HAL_FDCAN_TimestampWraparoundCallback - .text.HAL_FDCAN_TimeoutOccurredCallback - 0x00000000080063f8 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - 0x00000000080063f8 HAL_FDCAN_TimeoutOccurredCallback - .text.HAL_FDCAN_HighPriorityMessageCallback - 0x000000000800640c 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - 0x000000000800640c HAL_FDCAN_HighPriorityMessageCallback - .text.HAL_FDCAN_ErrorCallback - 0x0000000008006420 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - 0x0000000008006420 HAL_FDCAN_ErrorCallback - .text.HAL_FDCAN_ErrorStatusCallback - 0x0000000008006434 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - 0x0000000008006434 HAL_FDCAN_ErrorStatusCallback - .text.HAL_FDCAN_TT_ScheduleSyncCallback - 0x000000000800644a 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - 0x000000000800644a HAL_FDCAN_TT_ScheduleSyncCallback - .text.HAL_FDCAN_TT_TimeMarkCallback - 0x0000000008006460 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - 0x0000000008006460 HAL_FDCAN_TT_TimeMarkCallback - .text.HAL_FDCAN_TT_StopWatchCallback - 0x0000000008006476 0x18 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - 0x0000000008006476 HAL_FDCAN_TT_StopWatchCallback - .text.HAL_FDCAN_TT_GlobalTimeCallback - 0x000000000800648e 0x16 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - 0x000000000800648e HAL_FDCAN_TT_GlobalTimeCallback - .text.FDCAN_CalcultateRamBlockAddresses - 0x00000000080064a4 0x30c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .text.HAL_GPIO_Init - 0x00000000080067b0 0x350 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - 0x00000000080067b0 HAL_GPIO_Init - .text.HAL_GPIO_ReadPin - 0x0000000008006b00 0x30 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - 0x0000000008006b00 HAL_GPIO_ReadPin - .text.HAL_GPIO_WritePin - 0x0000000008006b30 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - 0x0000000008006b30 HAL_GPIO_WritePin - .text.HAL_MDMA_Init - 0x0000000008006b62 0x98 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - 0x0000000008006b62 HAL_MDMA_Init - .text.HAL_MDMA_ConfigPostRequestMask - 0x0000000008006bfa 0xa4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - 0x0000000008006bfa HAL_MDMA_ConfigPostRequestMask - *fill* 0x0000000008006c9e 0x2 - .text.HAL_MDMA_IRQHandler - 0x0000000008006ca0 0x2a8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - 0x0000000008006ca0 HAL_MDMA_IRQHandler - .text.MDMA_Init - 0x0000000008006f48 0x130 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .text.HAL_PWREx_ConfigSupply - 0x0000000008007078 0x74 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - 0x0000000008007078 HAL_PWREx_ConfigSupply - .text.HAL_RCC_OscConfig - 0x00000000080070ec 0x7b4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - 0x00000000080070ec HAL_RCC_OscConfig - .text.HAL_RCC_ClockConfig - 0x00000000080078a0 0x36c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - 0x00000000080078a0 HAL_RCC_ClockConfig - .text.HAL_RCC_GetSysClockFreq - 0x0000000008007c0c 0x2f4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - 0x0000000008007c0c HAL_RCC_GetSysClockFreq - .text.HAL_RCC_GetHCLKFreq - 0x0000000008007f00 0x60 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - 0x0000000008007f00 HAL_RCC_GetHCLKFreq - .text.HAL_RCC_GetPCLK1Freq - 0x0000000008007f60 0x2c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - 0x0000000008007f60 HAL_RCC_GetPCLK1Freq - .text.HAL_RCC_GetPCLK2Freq - 0x0000000008007f8c 0x2c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - 0x0000000008007f8c HAL_RCC_GetPCLK2Freq - .text.HAL_RCC_GetClockConfig - 0x0000000008007fb8 0x84 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - 0x0000000008007fb8 HAL_RCC_GetClockConfig - .text.HAL_RCCEx_PeriphCLKConfig - 0x000000000800803c 0x1340 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - 0x000000000800803c HAL_RCCEx_PeriphCLKConfig - .text.HAL_RCCEx_GetPeriphCLKFreq - 0x000000000800937c 0x9a4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - 0x000000000800937c HAL_RCCEx_GetPeriphCLKFreq - .text.HAL_RCCEx_GetD3PCLK1Freq - 0x0000000008009d20 0x2c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - 0x0000000008009d20 HAL_RCCEx_GetD3PCLK1Freq - .text.HAL_RCCEx_GetPLL2ClockFreq - 0x0000000008009d4c 0x2a8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - 0x0000000008009d4c HAL_RCCEx_GetPLL2ClockFreq - .text.HAL_RCCEx_GetPLL3ClockFreq - 0x0000000008009ff4 0x2a8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - 0x0000000008009ff4 HAL_RCCEx_GetPLL3ClockFreq - .text.HAL_RCCEx_GetPLL1ClockFreq - 0x000000000800a29c 0x2a4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - 0x000000000800a29c HAL_RCCEx_GetPLL1ClockFreq - .text.RCCEx_PLL2_Config - 0x000000000800a540 0x164 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .text.RCCEx_PLL3_Config - 0x000000000800a6a4 0x164 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .text.HAL_SD_Init - 0x000000000800a808 0x106 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - 0x000000000800a808 HAL_SD_Init - *fill* 0x000000000800a90e 0x2 - .text.HAL_SD_InitCard - 0x000000000800a910 0x138 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - 0x000000000800a910 HAL_SD_InitCard - .text.HAL_SD_ReadBlocks_DMA - 0x000000000800aa48 0x150 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - 0x000000000800aa48 HAL_SD_ReadBlocks_DMA - .text.HAL_SD_WriteBlocks_DMA - 0x000000000800ab98 0x150 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - 0x000000000800ab98 HAL_SD_WriteBlocks_DMA - .text.HAL_SD_IRQHandler - 0x000000000800ace8 0x370 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - 0x000000000800ace8 HAL_SD_IRQHandler - .text.HAL_SD_ErrorCallback - 0x000000000800b058 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - 0x000000000800b058 HAL_SD_ErrorCallback - .text.HAL_SD_GetCardCSD - 0x000000000800b06c 0x348 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - 0x000000000800b06c HAL_SD_GetCardCSD - .text.HAL_SD_GetCardStatus - 0x000000000800b3b4 0x17c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - 0x000000000800b3b4 HAL_SD_GetCardStatus - .text.HAL_SD_GetCardInfo - 0x000000000800b530 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - 0x000000000800b530 HAL_SD_GetCardInfo - .text.HAL_SD_ConfigWideBusOperation - 0x000000000800b588 0x224 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - 0x000000000800b588 HAL_SD_ConfigWideBusOperation - .text.HAL_SD_GetCardState - 0x000000000800b7ac 0x40 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - 0x000000000800b7ac HAL_SD_GetCardState - .text.SD_InitCard - 0x000000000800b7ec 0x19c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text.SD_PowerON - 0x000000000800b988 0x11c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text.SD_SendSDStatus - 0x000000000800baa4 0x1a0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text.SD_SendStatus - 0x000000000800bc44 0x50 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text.SD_WideBus_Enable - 0x000000000800bc94 0x96 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text.SD_WideBus_Disable - 0x000000000800bd2a 0x96 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text.SD_FindSCR - 0x000000000800bdc0 0x1a0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text.SD_Read_IT - 0x000000000800bf60 0x8c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text.SD_Write_IT - 0x000000000800bfec 0x94 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .text.HAL_SDEx_Read_DMADoubleBuf0CpltCallback - 0x000000000800c080 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - 0x000000000800c080 HAL_SDEx_Read_DMADoubleBuf0CpltCallback - .text.HAL_SDEx_Read_DMADoubleBuf1CpltCallback - 0x000000000800c094 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - 0x000000000800c094 HAL_SDEx_Read_DMADoubleBuf1CpltCallback - .text.HAL_SDEx_Write_DMADoubleBuf0CpltCallback - 0x000000000800c0a8 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - 0x000000000800c0a8 HAL_SDEx_Write_DMADoubleBuf0CpltCallback - .text.HAL_SDEx_Write_DMADoubleBuf1CpltCallback - 0x000000000800c0bc 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - 0x000000000800c0bc HAL_SDEx_Write_DMADoubleBuf1CpltCallback - .text.HAL_TIM_Base_Init - 0x000000000800c0d0 0xae ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - 0x000000000800c0d0 HAL_TIM_Base_Init - *fill* 0x000000000800c17e 0x2 - .text.HAL_TIM_Base_Start_IT - 0x000000000800c180 0x10c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - 0x000000000800c180 HAL_TIM_Base_Start_IT - .text.HAL_TIM_IRQHandler - 0x000000000800c28c 0x23e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - 0x000000000800c28c HAL_TIM_IRQHandler - *fill* 0x000000000800c4ca 0x2 - .text.HAL_TIM_ConfigClockSource - 0x000000000800c4cc 0x1f0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - 0x000000000800c4cc HAL_TIM_ConfigClockSource - .text.HAL_TIM_OC_DelayElapsedCallback - 0x000000000800c6bc 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - 0x000000000800c6bc HAL_TIM_OC_DelayElapsedCallback - .text.HAL_TIM_IC_CaptureCallback - 0x000000000800c6d0 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - 0x000000000800c6d0 HAL_TIM_IC_CaptureCallback - .text.HAL_TIM_PWM_PulseFinishedCallback - 0x000000000800c6e4 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - 0x000000000800c6e4 HAL_TIM_PWM_PulseFinishedCallback - .text.HAL_TIM_TriggerCallback - 0x000000000800c6f8 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - 0x000000000800c6f8 HAL_TIM_TriggerCallback - .text.TIM_Base_SetConfig - 0x000000000800c70c 0x14c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - 0x000000000800c70c TIM_Base_SetConfig - .text.TIM_TI1_ConfigInputStage - 0x000000000800c858 0x5e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.TIM_TI2_ConfigInputStage - 0x000000000800c8b6 0x60 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - *fill* 0x000000000800c916 0x2 - .text.TIM_ITRx_SetConfig - 0x000000000800c918 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .text.TIM_ETR_SetConfig - 0x000000000800c954 0x40 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - 0x000000000800c954 TIM_ETR_SetConfig - .text.HAL_TIMEx_MasterConfigSynchronization - 0x000000000800c994 0x138 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - 0x000000000800c994 HAL_TIMEx_MasterConfigSynchronization - .text.HAL_TIMEx_CommutCallback - 0x000000000800cacc 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - 0x000000000800cacc HAL_TIMEx_CommutCallback - .text.HAL_TIMEx_BreakCallback - 0x000000000800cae0 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - 0x000000000800cae0 HAL_TIMEx_BreakCallback - .text.HAL_TIMEx_Break2Callback - 0x000000000800caf4 0x14 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - 0x000000000800caf4 HAL_TIMEx_Break2Callback - .text.HAL_UART_Init - 0x000000000800cb08 0xa0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - 0x000000000800cb08 HAL_UART_Init - .text.UART_SetConfig - 0x000000000800cba8 0xcd8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - 0x000000000800cba8 UART_SetConfig - .text.UART_AdvFeatureConfig - 0x000000000800d880 0x144 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - 0x000000000800d880 UART_AdvFeatureConfig - .text.UART_CheckIdleState - 0x000000000800d9c4 0x154 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - 0x000000000800d9c4 UART_CheckIdleState - .text.UART_WaitOnFlagUntilTimeout - 0x000000000800db18 0xce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - 0x000000000800db18 UART_WaitOnFlagUntilTimeout - *fill* 0x000000000800dbe6 0x2 - .text.UART_EndRxTransfer - 0x000000000800dbe8 0xcc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .text.HAL_UARTEx_DisableFifoMode - 0x000000000800dcb4 0x72 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - 0x000000000800dcb4 HAL_UARTEx_DisableFifoMode - .text.HAL_UARTEx_SetTxFifoThreshold - 0x000000000800dd26 0x7c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - 0x000000000800dd26 HAL_UARTEx_SetTxFifoThreshold - .text.HAL_UARTEx_SetRxFifoThreshold - 0x000000000800dda2 0x7c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - 0x000000000800dda2 HAL_UARTEx_SetRxFifoThreshold - *fill* 0x000000000800de1e 0x2 - .text.UARTEx_SetNbDataToProcess - 0x000000000800de20 0x9c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .text.SDMMC_Init - 0x000000000800debc 0x54 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800debc SDMMC_Init - .text.SDMMC_ReadFIFO - 0x000000000800df10 0x1a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800df10 SDMMC_ReadFIFO - .text.SDMMC_WriteFIFO - 0x000000000800df2a 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800df2a SDMMC_WriteFIFO - .text.SDMMC_PowerState_ON - 0x000000000800df4c 0x22 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800df4c SDMMC_PowerState_ON - .text.SDMMC_GetPowerState - 0x000000000800df6e 0x1c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800df6e SDMMC_GetPowerState - *fill* 0x000000000800df8a 0x2 - .text.SDMMC_SendCommand - 0x000000000800df8c 0x54 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800df8c SDMMC_SendCommand - .text.SDMMC_GetCommandResponse - 0x000000000800dfe0 0x1a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800dfe0 SDMMC_GetCommandResponse - .text.SDMMC_GetResponse - 0x000000000800dffa 0x26 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800dffa SDMMC_GetResponse - .text.SDMMC_ConfigData - 0x000000000800e020 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800e020 SDMMC_ConfigData - .text.SDMMC_CmdBlockLength - 0x000000000800e078 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800e078 SDMMC_CmdBlockLength - .text.SDMMC_CmdReadSingleBlock - 0x000000000800e0be 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800e0be SDMMC_CmdReadSingleBlock - .text.SDMMC_CmdReadMultiBlock - 0x000000000800e104 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800e104 SDMMC_CmdReadMultiBlock - .text.SDMMC_CmdWriteSingleBlock - 0x000000000800e14a 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800e14a SDMMC_CmdWriteSingleBlock - .text.SDMMC_CmdWriteMultiBlock - 0x000000000800e190 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800e190 SDMMC_CmdWriteMultiBlock - *fill* 0x000000000800e1d6 0x2 - .text.SDMMC_CmdStopTransfer - 0x000000000800e1d8 0x78 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800e1d8 SDMMC_CmdStopTransfer - .text.SDMMC_CmdSelDesel - 0x000000000800e250 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800e250 SDMMC_CmdSelDesel - .text.SDMMC_CmdGoIdleState - 0x000000000800e296 0x3c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800e296 SDMMC_CmdGoIdleState - .text.SDMMC_CmdOperCond - 0x000000000800e2d2 0x40 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800e2d2 SDMMC_CmdOperCond - .text.SDMMC_CmdAppCommand - 0x000000000800e312 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800e312 SDMMC_CmdAppCommand - .text.SDMMC_CmdAppOperCommand - 0x000000000800e358 0x40 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800e358 SDMMC_CmdAppOperCommand - .text.SDMMC_CmdBusWidth - 0x000000000800e398 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800e398 SDMMC_CmdBusWidth - .text.SDMMC_CmdSendSCR - 0x000000000800e3de 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800e3de SDMMC_CmdSendSCR - .text.SDMMC_CmdSendCID - 0x000000000800e422 0x3e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800e422 SDMMC_CmdSendCID - .text.SDMMC_CmdSendCSD - 0x000000000800e460 0x40 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800e460 SDMMC_CmdSendCSD - .text.SDMMC_CmdSetRelAdd - 0x000000000800e4a0 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800e4a0 SDMMC_CmdSetRelAdd - .text.SDMMC_CmdSendStatus - 0x000000000800e4e4 0x46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800e4e4 SDMMC_CmdSendStatus - .text.SDMMC_CmdStatusRegister - 0x000000000800e52a 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800e52a SDMMC_CmdStatusRegister - *fill* 0x000000000800e56e 0x2 - .text.SDMMC_GetCmdResp1 - 0x000000000800e570 0x1e4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800e570 SDMMC_GetCmdResp1 - .text.SDMMC_GetCmdResp2 - 0x000000000800e754 0x94 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800e754 SDMMC_GetCmdResp2 - .text.SDMMC_GetCmdResp3 - 0x000000000800e7e8 0x80 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800e7e8 SDMMC_GetCmdResp3 - .text.SDMMC_GetCmdResp6 - 0x000000000800e868 0xf0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800e868 SDMMC_GetCmdResp6 - .text.SDMMC_GetCmdResp7 - 0x000000000800e958 0x9c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x000000000800e958 SDMMC_GetCmdResp7 - .text.SDMMC_GetCmdError - 0x000000000800e9f4 0x5c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .text.MX_FATFS_Init - 0x000000000800ea50 0x24 ./FATFS/App/fatfs.o - 0x000000000800ea50 MX_FATFS_Init - .text.BSP_SD_Init - 0x000000000800ea74 0x4c ./FATFS/Target/bsp_driver_sd.o - 0x000000000800ea74 BSP_SD_Init - .text.BSP_SD_ReadBlocks_DMA - 0x000000000800eac0 0x34 ./FATFS/Target/bsp_driver_sd.o - 0x000000000800eac0 BSP_SD_ReadBlocks_DMA - .text.BSP_SD_WriteBlocks_DMA - 0x000000000800eaf4 0x34 ./FATFS/Target/bsp_driver_sd.o - 0x000000000800eaf4 BSP_SD_WriteBlocks_DMA - .text.BSP_SD_GetCardState - 0x000000000800eb28 0x20 ./FATFS/Target/bsp_driver_sd.o - 0x000000000800eb28 BSP_SD_GetCardState - .text.BSP_SD_GetCardInfo - 0x000000000800eb48 0x1c ./FATFS/Target/bsp_driver_sd.o - 0x000000000800eb48 BSP_SD_GetCardInfo - .text.HAL_SD_TxCpltCallback - 0x000000000800eb64 0x14 ./FATFS/Target/bsp_driver_sd.o - 0x000000000800eb64 HAL_SD_TxCpltCallback - .text.HAL_SD_RxCpltCallback - 0x000000000800eb78 0x14 ./FATFS/Target/bsp_driver_sd.o - 0x000000000800eb78 HAL_SD_RxCpltCallback - .text.BSP_SD_IsDetected - 0x000000000800eb8c 0x24 ./FATFS/Target/bsp_driver_sd.o - 0x000000000800eb8c BSP_SD_IsDetected - .text.BSP_PlatformIsDetected - 0x000000000800ebb0 0x2c ./FATFS/Target/fatfs_platform.o - 0x000000000800ebb0 BSP_PlatformIsDetected - .text.SD_CheckStatusWithTimeout - 0x000000000800ebdc 0x3a ./FATFS/Target/sd_diskio.o - *fill* 0x000000000800ec16 0x2 - .text.SD_CheckStatus - 0x000000000800ec18 0x3c ./FATFS/Target/sd_diskio.o - .text.SD_initialize - 0x000000000800ec54 0x98 ./FATFS/Target/sd_diskio.o - 0x000000000800ec54 SD_initialize - .text.SD_status - 0x000000000800ecec 0x1c ./FATFS/Target/sd_diskio.o - 0x000000000800ecec SD_status - .text.SD_read 0x000000000800ed08 0x9c ./FATFS/Target/sd_diskio.o - 0x000000000800ed08 SD_read - .text.SD_write - 0x000000000800eda4 0x94 ./FATFS/Target/sd_diskio.o - 0x000000000800eda4 SD_write - .text.SD_ioctl - 0x000000000800ee38 0xb0 ./FATFS/Target/sd_diskio.o - 0x000000000800ee38 SD_ioctl - .text.BSP_SD_WriteCpltCallback - 0x000000000800eee8 0x1c ./FATFS/Target/sd_diskio.o - 0x000000000800eee8 BSP_SD_WriteCpltCallback - .text.BSP_SD_ReadCpltCallback - 0x000000000800ef04 0x1c ./FATFS/Target/sd_diskio.o - 0x000000000800ef04 BSP_SD_ReadCpltCallback - .text.lwftp_send - 0x000000000800ef20 0x60 ./LWFTPC/lwftpc.o - 0x000000000800ef20 lwftp_send - .text.lwftp_data_open - 0x000000000800ef80 0x198 ./LWFTPC/lwftpc.o - 0x000000000800ef80 lwftp_data_open - .text.lwftp_retrieve - 0x000000000800f118 0x88 ./LWFTPC/lwftpc.o - 0x000000000800f118 lwftp_retrieve - .text.onDataReceived - 0x000000000800f1a0 0x28 ./LWFTPC/lwftpc.o - 0x000000000800f1a0 onDataReceived - .text.lwftp_data_thread - 0x000000000800f1c8 0x88 ./LWFTPC/lwftpc.o - 0x000000000800f1c8 lwftp_data_thread - .text.lwftp_ctrl_thread - 0x000000000800f250 0x2f0 ./LWFTPC/lwftpc.o - 0x000000000800f250 lwftp_ctrl_thread - .text.MX_LWIP_Init - 0x000000000800f540 0x270 ./LWIP/App/lwip.o - 0x000000000800f540 MX_LWIP_Init - .text.ethernet_link_status_updated - 0x000000000800f7b0 0x14 ./LWIP/App/lwip.o - .text.HAL_ETH_RxCpltCallback - 0x000000000800f7c4 0x20 ./LWIP/Target/ethernetif.o - 0x000000000800f7c4 HAL_ETH_RxCpltCallback - .text.HAL_ETH_TxCpltCallback - 0x000000000800f7e4 0x20 ./LWIP/Target/ethernetif.o - 0x000000000800f7e4 HAL_ETH_TxCpltCallback - .text.HAL_ETH_ErrorCallback - 0x000000000800f804 0x30 ./LWIP/Target/ethernetif.o - 0x000000000800f804 HAL_ETH_ErrorCallback - .text.low_level_init - 0x000000000800f834 0x294 ./LWIP/Target/ethernetif.o - .text.low_level_output - 0x000000000800fac8 0x134 ./LWIP/Target/ethernetif.o - .text.low_level_input - 0x000000000800fbfc 0x34 ./LWIP/Target/ethernetif.o - .text.ethernetif_input - 0x000000000800fc30 0x54 ./LWIP/Target/ethernetif.o - .text.ethernetif_init - 0x000000000800fc84 0x5c ./LWIP/Target/ethernetif.o - 0x000000000800fc84 ethernetif_init - .text.pbuf_free_custom - 0x000000000800fce0 0x40 ./LWIP/Target/ethernetif.o - 0x000000000800fce0 pbuf_free_custom - .text.sys_now 0x000000000800fd20 0xe ./LWIP/Target/ethernetif.o - 0x000000000800fd20 sys_now - *fill* 0x000000000800fd2e 0x2 - .text.HAL_ETH_MspInit - 0x000000000800fd30 0x168 ./LWIP/Target/ethernetif.o - 0x000000000800fd30 HAL_ETH_MspInit - .text.ETH_PHY_IO_Init - 0x000000000800fe98 0x14 ./LWIP/Target/ethernetif.o - 0x000000000800fe98 ETH_PHY_IO_Init - .text.ETH_PHY_IO_DeInit - 0x000000000800feac 0x10 ./LWIP/Target/ethernetif.o - 0x000000000800feac ETH_PHY_IO_DeInit - .text.ETH_PHY_IO_ReadReg - 0x000000000800febc 0x34 ./LWIP/Target/ethernetif.o - 0x000000000800febc ETH_PHY_IO_ReadReg - .text.ETH_PHY_IO_WriteReg - 0x000000000800fef0 0x34 ./LWIP/Target/ethernetif.o - 0x000000000800fef0 ETH_PHY_IO_WriteReg - .text.ETH_PHY_IO_GetTick - 0x000000000800ff24 0xe ./LWIP/Target/ethernetif.o - 0x000000000800ff24 ETH_PHY_IO_GetTick - *fill* 0x000000000800ff32 0x2 - .text.ethernet_link_thread - 0x000000000800ff34 0x11c ./LWIP/Target/ethernetif.o - 0x000000000800ff34 ethernet_link_thread - .text.HAL_ETH_RxAllocateCallback - 0x0000000008010050 0x60 ./LWIP/Target/ethernetif.o - 0x0000000008010050 HAL_ETH_RxAllocateCallback - .text.HAL_ETH_RxLinkCallback - 0x00000000080100b0 0xd0 ./LWIP/Target/ethernetif.o - 0x00000000080100b0 HAL_ETH_RxLinkCallback - .text.HAL_ETH_TxFreeCallback - 0x0000000008010180 0x16 ./LWIP/Target/ethernetif.o - 0x0000000008010180 HAL_ETH_TxFreeCallback - *fill* 0x0000000008010196 0x2 - .text.FATFS_LinkDriverEx - 0x0000000008010198 0x98 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - 0x0000000008010198 FATFS_LinkDriverEx - .text.FATFS_LinkDriver - 0x0000000008010230 0x1e ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - 0x0000000008010230 FATFS_LinkDriver - .text.makeFreeRtosPriority - 0x000000000801024e 0x30 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.inHandlerMode - 0x000000000801027e 0x24 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .text.osKernelStart - 0x00000000080102a2 0xe ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x00000000080102a2 osKernelStart - .text.osKernelRunning - 0x00000000080102b0 0x18 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x00000000080102b0 osKernelRunning - .text.osKernelSysTick - 0x00000000080102c8 0x20 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x00000000080102c8 osKernelSysTick - .text.osThreadCreate - 0x00000000080102e8 0x98 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x00000000080102e8 osThreadCreate - .text.osDelay 0x0000000008010380 0x28 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x0000000008010380 osDelay - .text.osMutexCreate - 0x00000000080103a8 0x30 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x00000000080103a8 osMutexCreate - .text.osMutexWait - 0x00000000080103d8 0x9c ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x00000000080103d8 osMutexWait - .text.osMutexRelease - 0x0000000008010474 0x6c ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x0000000008010474 osMutexRelease - .text.osSemaphoreCreate - 0x00000000080104e0 0x64 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x00000000080104e0 osSemaphoreCreate - .text.osSemaphoreWait - 0x0000000008010544 0x9c ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x0000000008010544 osSemaphoreWait - .text.osSemaphoreRelease - 0x00000000080105e0 0x6c ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x00000000080105e0 osSemaphoreRelease - .text.osSemaphoreDelete - 0x000000000801064c 0x26 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x000000000801064c osSemaphoreDelete - .text.osMessageCreate - 0x0000000008010672 0x50 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x0000000008010672 osMessageCreate - *fill* 0x00000000080106c2 0x2 - .text.osMessagePut - 0x00000000080106c4 0x80 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x00000000080106c4 osMessagePut - .text.osMessageGet - 0x0000000008010744 0xe8 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x0000000008010744 osMessageGet - .text.osMessageWaiting - 0x000000000801082c 0x2c ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x000000000801082c osMessageWaiting - .text.osMessageDelete - 0x0000000008010858 0x26 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x0000000008010858 osMessageDelete - .text.vListInitialise - 0x000000000801087e 0x40 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - 0x000000000801087e vListInitialise - .text.vListInitialiseItem - 0x00000000080108be 0x1a ./Middlewares/Third_Party/FreeRTOS/Source/list.o - 0x00000000080108be vListInitialiseItem - .text.vListInsertEnd - 0x00000000080108d8 0x48 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - 0x00000000080108d8 vListInsertEnd - .text.vListInsert - 0x0000000008010920 0x72 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - 0x0000000008010920 vListInsert - .text.uxListRemove - 0x0000000008010992 0x54 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - 0x0000000008010992 uxListRemove - *fill* 0x00000000080109e6 0x2 - .text.xQueueGenericReset - 0x00000000080109e8 0xd0 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x00000000080109e8 xQueueGenericReset - .text.xQueueGenericCreateStatic - 0x0000000008010ab8 0xf0 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x0000000008010ab8 xQueueGenericCreateStatic - .text.xQueueGenericCreate - 0x0000000008010ba8 0x74 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x0000000008010ba8 xQueueGenericCreate - .text.prvInitialiseNewQueue - 0x0000000008010c1c 0x3e ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .text.prvInitialiseMutex - 0x0000000008010c5a 0x34 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .text.xQueueCreateMutex - 0x0000000008010c8e 0x30 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x0000000008010c8e xQueueCreateMutex - .text.xQueueCreateMutexStatic - 0x0000000008010cbe 0x36 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x0000000008010cbe xQueueCreateMutexStatic - .text.xQueueGenericSend - 0x0000000008010cf4 0x1fc ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x0000000008010cf4 xQueueGenericSend - .text.xQueueGenericSendFromISR - 0x0000000008010ef0 0x136 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x0000000008010ef0 xQueueGenericSendFromISR - .text.xQueueGiveFromISR - 0x0000000008011026 0x11a ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x0000000008011026 xQueueGiveFromISR - .text.xQueueReceive - 0x0000000008011140 0x1c0 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x0000000008011140 xQueueReceive - .text.xQueueSemaphoreTake - 0x0000000008011300 0x218 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x0000000008011300 xQueueSemaphoreTake - .text.xQueueReceiveFromISR - 0x0000000008011518 0x100 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x0000000008011518 xQueueReceiveFromISR - .text.uxQueueMessagesWaiting - 0x0000000008011618 0x3c ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x0000000008011618 uxQueueMessagesWaiting - .text.uxQueueMessagesWaitingFromISR - 0x0000000008011654 0x3c ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x0000000008011654 uxQueueMessagesWaitingFromISR - .text.vQueueDelete - 0x0000000008011690 0x46 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x0000000008011690 vQueueDelete - .text.prvGetDisinheritPriorityAfterTimeout - 0x00000000080116d6 0x30 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .text.prvCopyDataToQueue - 0x0000000008011706 0xd4 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .text.prvCopyDataFromQueue - 0x00000000080117da 0x4c ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .text.prvUnlockQueue - 0x0000000008011826 0xa4 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .text.prvIsQueueEmpty - 0x00000000080118ca 0x2c ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .text.prvIsQueueFull - 0x00000000080118f6 0x30 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - *fill* 0x0000000008011926 0x2 - .text.vQueueAddToRegistry - 0x0000000008011928 0x54 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x0000000008011928 vQueueAddToRegistry - .text.vQueueUnregisterQueue - 0x000000000801197c 0x54 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x000000000801197c vQueueUnregisterQueue - .text.vQueueWaitForMessageRestricted - 0x00000000080119d0 0x68 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x00000000080119d0 vQueueWaitForMessageRestricted - .text.xTaskCreateStatic - 0x0000000008011a38 0xba ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x0000000008011a38 xTaskCreateStatic - .text.xTaskCreate - 0x0000000008011af2 0x8a ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x0000000008011af2 xTaskCreate - .text.prvInitialiseNewTask - 0x0000000008011b7c 0x11e ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - *fill* 0x0000000008011c9a 0x2 - .text.prvAddNewTaskToReadyList - 0x0000000008011c9c 0xd4 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.vTaskDelay - 0x0000000008011d70 0x68 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x0000000008011d70 vTaskDelay - .text.vTaskStartScheduler - 0x0000000008011dd8 0xcc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x0000000008011dd8 vTaskStartScheduler - .text.vTaskSuspendAll - 0x0000000008011ea4 0x1c ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x0000000008011ea4 vTaskSuspendAll - .text.xTaskResumeAll - 0x0000000008011ec0 0x138 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x0000000008011ec0 xTaskResumeAll - .text.xTaskGetTickCount - 0x0000000008011ff8 0x20 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x0000000008011ff8 xTaskGetTickCount - .text.xTaskGetTickCountFromISR - 0x0000000008012018 0x24 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x0000000008012018 xTaskGetTickCountFromISR - .text.xTaskIncrementTick - 0x000000000801203c 0x170 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x000000000801203c xTaskIncrementTick - .text.vTaskSwitchContext - 0x00000000080121ac 0xd4 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x00000000080121ac vTaskSwitchContext - .text.vTaskPlaceOnEventList - 0x0000000008012280 0x48 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x0000000008012280 vTaskPlaceOnEventList - .text.vTaskPlaceOnEventListRestricted - 0x00000000080122c8 0x58 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x00000000080122c8 vTaskPlaceOnEventListRestricted - .text.xTaskRemoveFromEventList - 0x0000000008012320 0xc4 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x0000000008012320 xTaskRemoveFromEventList - .text.vTaskInternalSetTimeOutState - 0x00000000080123e4 0x2c ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x00000000080123e4 vTaskInternalSetTimeOutState - .text.xTaskCheckForTimeOut - 0x0000000008012410 0xc4 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x0000000008012410 xTaskCheckForTimeOut - .text.vTaskMissedYield - 0x00000000080124d4 0x18 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x00000000080124d4 vTaskMissedYield - .text.prvIdleTask - 0x00000000080124ec 0x30 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.prvInitialiseTaskLists - 0x000000000801251c 0x80 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.prvCheckTasksWaitingTermination - 0x000000000801259c 0x5c ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.prvTaskCheckFreeStackSpace - 0x00000000080125f8 0x38 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.uxTaskGetStackHighWaterMark - 0x0000000008012630 0x38 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x0000000008012630 uxTaskGetStackHighWaterMark - .text.prvDeleteTCB - 0x0000000008012668 0x5e ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - *fill* 0x00000000080126c6 0x2 - .text.prvResetNextTaskUnblockTime - 0x00000000080126c8 0x40 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.xTaskGetSchedulerState - 0x0000000008012708 0x3c ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x0000000008012708 xTaskGetSchedulerState - .text.xTaskPriorityInherit - 0x0000000008012744 0xec ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x0000000008012744 xTaskPriorityInherit - .text.xTaskPriorityDisinherit - 0x0000000008012830 0x10c ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x0000000008012830 xTaskPriorityDisinherit - .text.vTaskPriorityDisinheritAfterTimeout - 0x000000000801293c 0x11c ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x000000000801293c vTaskPriorityDisinheritAfterTimeout - .text.pvTaskIncrementMutexHeldCount - 0x0000000008012a58 0x28 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x0000000008012a58 pvTaskIncrementMutexHeldCount - .text.prvAddCurrentTaskToDelayedList - 0x0000000008012a80 0xcc ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .text.xTimerCreateTimerTask - 0x0000000008012b4c 0x90 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - 0x0000000008012b4c xTimerCreateTimerTask - .text.xTimerGenericCommand - 0x0000000008012bdc 0x9c ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - 0x0000000008012bdc xTimerGenericCommand - .text.prvProcessExpiredTimer - 0x0000000008012c78 0x98 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .text.prvTimerTask - 0x0000000008012d10 0x24 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .text.prvProcessTimerOrBlockTask - 0x0000000008012d34 0x9c ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .text.prvGetNextExpireTime - 0x0000000008012dd0 0x48 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .text.prvSampleTimeNow - 0x0000000008012e18 0x40 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .text.prvInsertTimerInActiveList - 0x0000000008012e58 0x84 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .text.prvProcessReceivedCommands - 0x0000000008012edc 0x18c ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .text.prvSwitchTimerLists - 0x0000000008013068 0xc8 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .text.prvCheckForValidListAndQueue - 0x0000000008013130 0x80 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .text.pxPortInitialiseStack - 0x00000000080131b0 0x68 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - 0x00000000080131b0 pxPortInitialiseStack - .text.prvTaskExitError - 0x0000000008013218 0x58 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .text.SVC_Handler - 0x0000000008013270 0x28 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - 0x0000000008013270 SVC_Handler - .text.prvPortStartFirstTask - 0x0000000008013298 0x28 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .text.xPortStartScheduler - 0x00000000080132c0 0x144 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - 0x00000000080132c0 xPortStartScheduler - .text.vPortEnterCritical - 0x0000000008013404 0x60 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - 0x0000000008013404 vPortEnterCritical - .text.vPortExitCritical - 0x0000000008013464 0x54 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - 0x0000000008013464 vPortExitCritical - *fill* 0x00000000080134b8 0x8 - .text.PendSV_Handler - 0x00000000080134c0 0x68 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - 0x00000000080134c0 PendSV_Handler - .text.SysTick_Handler - 0x0000000008013528 0x44 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - 0x0000000008013528 SysTick_Handler - .text.vPortSetupTimerInterrupt - 0x000000000801356c 0x48 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - 0x000000000801356c vPortSetupTimerInterrupt - .text.vPortEnableVFP - 0x00000000080135b4 0x14 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .text.vPortValidateInterruptPriority - 0x00000000080135c8 0x80 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - 0x00000000080135c8 vPortValidateInterruptPriority - .text.pvPortMalloc - 0x0000000008013648 0x198 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - 0x0000000008013648 pvPortMalloc - .text.vPortFree - 0x00000000080137e0 0xc4 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - 0x00000000080137e0 vPortFree - .text.prvHeapInit - 0x00000000080138a4 0xc4 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .text.prvInsertBlockIntoFreeList - 0x0000000008013968 0xb4 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .text.netconn_apimsg - 0x0000000008013a1c 0x40 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .text.netconn_new_with_proto_and_callback - 0x0000000008013a5c 0xf4 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - 0x0000000008013a5c netconn_new_with_proto_and_callback - .text.netconn_prepare_delete - 0x0000000008013b50 0x48 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - 0x0000000008013b50 netconn_prepare_delete - .text.netconn_delete - 0x0000000008013b98 0x36 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - 0x0000000008013b98 netconn_delete - *fill* 0x0000000008013bce 0x2 - .text.netconn_bind - 0x0000000008013bd0 0x70 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - 0x0000000008013bd0 netconn_bind - .text.netconn_connect - 0x0000000008013c40 0x70 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - 0x0000000008013c40 netconn_connect - .text.netconn_recv_data - 0x0000000008013cb0 0x190 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .text.netconn_tcp_recvd_msg - 0x0000000008013e40 0x60 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .text.netconn_recv_data_tcp - 0x0000000008013ea0 0x108 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .text.netconn_recv - 0x0000000008013fa8 0xf4 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - 0x0000000008013fa8 netconn_recv - .text.netconn_write_partly - 0x000000000801409c 0x34 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - 0x000000000801409c netconn_write_partly - .text.netconn_write_vectors_partly - 0x00000000080140d0 0x170 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - 0x00000000080140d0 netconn_write_vectors_partly - .text.netconn_close_shutdown - 0x0000000008014240 0x60 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .text.netconn_close - 0x00000000080142a0 0x1a ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - 0x00000000080142a0 netconn_close - .text.netconn_err - 0x00000000080142ba 0x36 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - 0x00000000080142ba netconn_err - .text.lwip_netconn_err_to_msg - 0x00000000080142f0 0x6c ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .text.lwip_netconn_is_err_msg - 0x000000000801435c 0x74 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - 0x000000000801435c lwip_netconn_is_err_msg - .text.recv_udp - 0x00000000080143d0 0xfc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .text.recv_tcp - 0x00000000080144cc 0x10c ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .text.poll_tcp - 0x00000000080145d8 0xcc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .text.sent_tcp - 0x00000000080146a4 0xac ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .text.err_tcp 0x0000000008014750 0x1ac ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .text.setup_tcp - 0x00000000080148fc 0x50 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .text.pcb_new 0x000000000801494c 0xd4 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .text.lwip_netconn_do_newconn - 0x0000000008014a20 0x2a ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - 0x0000000008014a20 lwip_netconn_do_newconn - *fill* 0x0000000008014a4a 0x2 - .text.netconn_alloc - 0x0000000008014a4c 0xdc ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - 0x0000000008014a4c netconn_alloc - .text.netconn_free - 0x0000000008014b28 0x94 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - 0x0000000008014b28 netconn_free - .text.netconn_drain - 0x0000000008014bbc 0xfa ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - *fill* 0x0000000008014cb6 0x2 - .text.lwip_netconn_do_close_internal - 0x0000000008014cb8 0x2d4 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .text.lwip_netconn_do_delconn - 0x0000000008014f8c 0x1c8 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - 0x0000000008014f8c lwip_netconn_do_delconn - .text.lwip_netconn_do_bind - 0x0000000008015154 0x74 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - 0x0000000008015154 lwip_netconn_do_bind - .text.lwip_netconn_do_connected - 0x00000000080151c8 0x120 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .text.lwip_netconn_do_connect - 0x00000000080152e8 0x17c ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - 0x00000000080152e8 lwip_netconn_do_connect - .text.lwip_netconn_do_recv - 0x0000000008015464 0x6a ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - 0x0000000008015464 lwip_netconn_do_recv - *fill* 0x00000000080154ce 0x2 - .text.lwip_netconn_do_writemore - 0x00000000080154d0 0x39c ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .text.lwip_netconn_do_write - 0x000000000801586c 0x118 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - 0x000000000801586c lwip_netconn_do_write - .text.lwip_netconn_do_close - 0x0000000008015984 0x118 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - 0x0000000008015984 lwip_netconn_do_close - .text.netbuf_delete - 0x0000000008015a9c 0x3e ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - 0x0000000008015a9c netbuf_delete - *fill* 0x0000000008015ada 0x2 - .text.netbuf_data - 0x0000000008015adc 0x94 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - 0x0000000008015adc netbuf_data - .text.netbuf_next - 0x0000000008015b70 0x60 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - 0x0000000008015b70 netbuf_next - .text.tcpip_timeouts_mbox_fetch - 0x0000000008015bd0 0x6c ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .text.tcpip_thread - 0x0000000008015c3c 0x68 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .text.tcpip_thread_handle_msg - 0x0000000008015ca4 0x90 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .text.tcpip_inpkt - 0x0000000008015d34 0x88 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - 0x0000000008015d34 tcpip_inpkt - .text.tcpip_input - 0x0000000008015dbc 0x44 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - 0x0000000008015dbc tcpip_input - .text.tcpip_try_callback - 0x0000000008015e00 0x80 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - 0x0000000008015e00 tcpip_try_callback - .text.tcpip_send_msg_wait_sem - 0x0000000008015e80 0x2c ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - 0x0000000008015e80 tcpip_send_msg_wait_sem - .text.tcpip_init - 0x0000000008015eac 0x94 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - 0x0000000008015eac tcpip_init - .text.lwip_htons - 0x0000000008015f40 0x2a ./Middlewares/Third_Party/LwIP/src/core/def.o - 0x0000000008015f40 lwip_htons - .text.lwip_htonl - 0x0000000008015f6a 0x32 ./Middlewares/Third_Party/LwIP/src/core/def.o - 0x0000000008015f6a lwip_htonl - .text.lwip_standard_chksum - 0x0000000008015f9c 0xba ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - 0x0000000008015f9c lwip_standard_chksum - .text.inet_chksum - 0x0000000008016056 0x24 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - 0x0000000008016056 inet_chksum - .text.inet_chksum_pbuf - 0x000000000801607a 0x9a ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - 0x000000000801607a inet_chksum_pbuf - .text.lwip_init - 0x0000000008016114 0x2e ./Middlewares/Third_Party/LwIP/src/core/init.o - 0x0000000008016114 lwip_init - *fill* 0x0000000008016142 0x2 - .text.ptr_to_mem - 0x0000000008016144 0x24 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .text.mem_to_ptr - 0x0000000008016168 0x24 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .text.plug_holes - 0x000000000801618c 0x14c ./Middlewares/Third_Party/LwIP/src/core/mem.o - .text.mem_init - 0x00000000080162d8 0x9c ./Middlewares/Third_Party/LwIP/src/core/mem.o - 0x00000000080162d8 mem_init - .text.mem_link_valid - 0x0000000008016374 0x7c ./Middlewares/Third_Party/LwIP/src/core/mem.o - .text.mem_free - 0x00000000080163f0 0x148 ./Middlewares/Third_Party/LwIP/src/core/mem.o - 0x00000000080163f0 mem_free - .text.mem_trim - 0x0000000008016538 0x228 ./Middlewares/Third_Party/LwIP/src/core/mem.o - 0x0000000008016538 mem_trim - .text.mem_malloc - 0x0000000008016760 0x224 ./Middlewares/Third_Party/LwIP/src/core/mem.o - 0x0000000008016760 mem_malloc - .text.memp_init_pool - 0x0000000008016984 0x60 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008016984 memp_init_pool - .text.memp_init - 0x00000000080169e4 0x34 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x00000000080169e4 memp_init - .text.do_memp_malloc_pool - 0x0000000008016a18 0x74 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .text.memp_malloc_pool - 0x0000000008016a8c 0x44 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008016a8c memp_malloc_pool - .text.memp_malloc - 0x0000000008016ad0 0x4c ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008016ad0 memp_malloc - .text.do_memp_free_pool - 0x0000000008016b1c 0x58 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .text.memp_free_pool - 0x0000000008016b74 0x48 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008016b74 memp_free_pool - .text.memp_free - 0x0000000008016bbc 0x54 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008016bbc memp_free - .text.netif_init - 0x0000000008016c10 0xe ./Middlewares/Third_Party/LwIP/src/core/netif.o - 0x0000000008016c10 netif_init - *fill* 0x0000000008016c1e 0x2 - .text.netif_add - 0x0000000008016c20 0x2cc ./Middlewares/Third_Party/LwIP/src/core/netif.o - 0x0000000008016c20 netif_add - .text.netif_do_ip_addr_changed - 0x0000000008016eec 0x22 ./Middlewares/Third_Party/LwIP/src/core/netif.o - *fill* 0x0000000008016f0e 0x2 - .text.netif_do_set_ipaddr - 0x0000000008016f10 0x9c ./Middlewares/Third_Party/LwIP/src/core/netif.o - .text.netif_do_set_netmask - 0x0000000008016fac 0x84 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .text.netif_do_set_gw - 0x0000000008017030 0x84 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .text.netif_set_addr - 0x00000000080170b4 0x94 ./Middlewares/Third_Party/LwIP/src/core/netif.o - 0x00000000080170b4 netif_set_addr - .text.netif_set_default - 0x0000000008017148 0x48 ./Middlewares/Third_Party/LwIP/src/core/netif.o - 0x0000000008017148 netif_set_default - .text.netif_set_up - 0x0000000008017190 0x58 ./Middlewares/Third_Party/LwIP/src/core/netif.o - 0x0000000008017190 netif_set_up - .text.netif_issue_reports - 0x00000000080171e8 0x80 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .text.netif_set_down - 0x0000000008017268 0x64 ./Middlewares/Third_Party/LwIP/src/core/netif.o - 0x0000000008017268 netif_set_down - .text.netif_set_link_up - 0x00000000080172cc 0x68 ./Middlewares/Third_Party/LwIP/src/core/netif.o - 0x00000000080172cc netif_set_link_up - .text.netif_set_link_down - 0x0000000008017334 0x60 ./Middlewares/Third_Party/LwIP/src/core/netif.o - 0x0000000008017334 netif_set_link_down - .text.netif_set_link_callback - 0x0000000008017394 0x22 ./Middlewares/Third_Party/LwIP/src/core/netif.o - 0x0000000008017394 netif_set_link_callback - .text.netif_null_output_ip4 - 0x00000000080173b6 0x1c ./Middlewares/Third_Party/LwIP/src/core/netif.o - *fill* 0x00000000080173d2 0x2 - .text.netif_get_by_index - 0x00000000080173d4 0x4c ./Middlewares/Third_Party/LwIP/src/core/netif.o - 0x00000000080173d4 netif_get_by_index - .text.pbuf_free_ooseq - 0x0000000008017420 0x4c ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .text.pbuf_free_ooseq_callback - 0x000000000801746c 0x14 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .text.pbuf_pool_is_empty - 0x0000000008017480 0x54 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .text.pbuf_init_alloced_pbuf - 0x00000000080174d4 0x54 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .text.pbuf_alloc - 0x0000000008017528 0x1f4 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x0000000008017528 pbuf_alloc - .text.pbuf_alloc_reference - 0x000000000801771c 0x68 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x000000000801771c pbuf_alloc_reference - .text.pbuf_alloced_custom - 0x0000000008017784 0x68 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x0000000008017784 pbuf_alloced_custom - .text.pbuf_realloc - 0x00000000080177ec 0x110 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x00000000080177ec pbuf_realloc - .text.pbuf_add_header_impl - 0x00000000080178fc 0xd0 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .text.pbuf_add_header - 0x00000000080179cc 0x1e ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x00000000080179cc pbuf_add_header - *fill* 0x00000000080179ea 0x2 - .text.pbuf_remove_header - 0x00000000080179ec 0xa4 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x00000000080179ec pbuf_remove_header - .text.pbuf_header_impl - 0x0000000008017a90 0x42 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .text.pbuf_header_force - 0x0000000008017ad2 0x24 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x0000000008017ad2 pbuf_header_force - *fill* 0x0000000008017af6 0x2 - .text.pbuf_free - 0x0000000008017af8 0x11c ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x0000000008017af8 pbuf_free - .text.pbuf_clen - 0x0000000008017c14 0x2e ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x0000000008017c14 pbuf_clen - *fill* 0x0000000008017c42 0x2 - .text.pbuf_ref - 0x0000000008017c44 0x50 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x0000000008017c44 pbuf_ref - .text.pbuf_cat - 0x0000000008017c94 0xac ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x0000000008017c94 pbuf_cat - .text.pbuf_copy - 0x0000000008017d40 0x1a4 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x0000000008017d40 pbuf_copy - .text.pbuf_copy_partial - 0x0000000008017ee4 0xe4 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x0000000008017ee4 pbuf_copy_partial - .text.pbuf_clone - 0x0000000008017fc8 0x64 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x0000000008017fc8 pbuf_clone - .text.tcp_init - 0x000000000801802c 0x24 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x000000000801802c tcp_init - .text.tcp_free - 0x0000000008018050 0x38 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x0000000008018050 tcp_free - .text.tcp_free_listen - 0x0000000008018088 0x38 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .text.tcp_tmr 0x00000000080180c0 0x2c ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x00000000080180c0 tcp_tmr - .text.tcp_remove_listener - 0x00000000080180ec 0x54 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .text.tcp_listen_closed - 0x0000000008018140 0x74 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .text.tcp_close_shutdown - 0x00000000080181b4 0x1c4 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .text.tcp_close_shutdown_fin - 0x0000000008018378 0xd4 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .text.tcp_close - 0x000000000801844c 0x58 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x000000000801844c tcp_close - .text.tcp_shutdown - 0x00000000080184a4 0xb8 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x00000000080184a4 tcp_shutdown - .text.tcp_abandon - 0x000000000801855c 0x17c ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x000000000801855c tcp_abandon - .text.tcp_abort - 0x00000000080186d8 0x18 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x00000000080186d8 tcp_abort - .text.tcp_bind - 0x00000000080186f0 0x130 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x00000000080186f0 tcp_bind - .text.tcp_update_rcv_ann_wnd - 0x0000000008018820 0xb4 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x0000000008018820 tcp_update_rcv_ann_wnd - .text.tcp_recved - 0x00000000080188d4 0xa4 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x00000000080188d4 tcp_recved - .text.tcp_new_port - 0x0000000008018978 0x8c ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .text.tcp_connect - 0x0000000008018a04 0x230 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x0000000008018a04 tcp_connect - .text.tcp_slowtmr - 0x0000000008018c34 0x680 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x0000000008018c34 tcp_slowtmr - .text.tcp_fasttmr - 0x00000000080192b4 0xc8 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x00000000080192b4 tcp_fasttmr - .text.tcp_process_refused_data - 0x000000000801937c 0xfc ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x000000000801937c tcp_process_refused_data - .text.tcp_segs_free - 0x0000000008019478 0x2a ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x0000000008019478 tcp_segs_free - .text.tcp_seg_free - 0x00000000080194a2 0x30 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x00000000080194a2 tcp_seg_free - *fill* 0x00000000080194d2 0x2 - .text.tcp_seg_copy - 0x00000000080194d4 0x58 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x00000000080194d4 tcp_seg_copy - .text.tcp_recv_null - 0x000000000801952c 0x6c ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x000000000801952c tcp_recv_null - .text.tcp_kill_prio - 0x0000000008019598 0x9c ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .text.tcp_kill_state - 0x0000000008019634 0x94 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .text.tcp_kill_timewait - 0x00000000080196c8 0x60 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .text.tcp_handle_closepend - 0x0000000008019728 0x4c ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .text.tcp_alloc - 0x0000000008019774 0x108 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x0000000008019774 tcp_alloc - .text.tcp_new_ip_type - 0x000000000801987c 0x1c ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x000000000801987c tcp_new_ip_type - .text.tcp_arg 0x0000000008019898 0x22 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x0000000008019898 tcp_arg - *fill* 0x00000000080198ba 0x2 - .text.tcp_recv - 0x00000000080198bc 0x44 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x00000000080198bc tcp_recv - .text.tcp_sent - 0x0000000008019900 0x44 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x0000000008019900 tcp_sent - .text.tcp_err 0x0000000008019944 0x44 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x0000000008019944 tcp_err - .text.tcp_accept - 0x0000000008019988 0x2e ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x0000000008019988 tcp_accept - *fill* 0x00000000080199b6 0x2 - .text.tcp_poll - 0x00000000080199b8 0x60 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x00000000080199b8 tcp_poll - .text.tcp_pcb_purge - 0x0000000008019a18 0xa0 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x0000000008019a18 tcp_pcb_purge - .text.tcp_pcb_remove - 0x0000000008019ab8 0x128 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x0000000008019ab8 tcp_pcb_remove - .text.tcp_next_iss - 0x0000000008019be0 0x4c ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x0000000008019be0 tcp_next_iss - .text.tcp_eff_send_mss_netif - 0x0000000008019c2c 0x74 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x0000000008019c2c tcp_eff_send_mss_netif - .text.tcp_netif_ip_addr_changed_pcblist - 0x0000000008019ca0 0x70 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .text.tcp_netif_ip_addr_changed - 0x0000000008019d10 0x7c ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x0000000008019d10 tcp_netif_ip_addr_changed - .text.tcp_free_ooseq - 0x0000000008019d8c 0x28 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x0000000008019d8c tcp_free_ooseq - .text.tcp_input - 0x0000000008019db4 0x818 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - 0x0000000008019db4 tcp_input - .text.tcp_input_delayed_close - 0x000000000801a5cc 0x80 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .text.tcp_listen_input - 0x000000000801a64c 0x1fc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .text.tcp_timewait_input - 0x000000000801a848 0xf4 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .text.tcp_process - 0x000000000801a93c 0x7e0 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .text.tcp_oos_insert_segment - 0x000000000801b11c 0x110 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .text.tcp_free_acked_segments - 0x000000000801b22c 0xf8 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .text.tcp_receive - 0x000000000801b324 0xf30 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .text.tcp_get_next_optbyte - 0x000000000801c254 0x6c ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .text.tcp_parseopt - 0x000000000801c2c0 0xec ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .text.tcp_trigger_input_pcb_close - 0x000000000801c3ac 0x20 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - 0x000000000801c3ac tcp_trigger_input_pcb_close - .text.tcp_route - 0x000000000801c3cc 0x38 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .text.tcp_create_segment - 0x000000000801c404 0x140 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .text.tcp_pbuf_prealloc - 0x000000000801c544 0xf4 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .text.tcp_write_checks - 0x000000000801c638 0xf4 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .text.tcp_write - 0x000000000801c72c 0x77c ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - 0x000000000801c72c tcp_write - .text.tcp_split_unsent_seg - 0x000000000801cea8 0x298 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - 0x000000000801cea8 tcp_split_unsent_seg - .text.tcp_send_fin - 0x000000000801d140 0xa0 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - 0x000000000801d140 tcp_send_fin - .text.tcp_enqueue_flags - 0x000000000801d1e0 0x1dc ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - 0x000000000801d1e0 tcp_enqueue_flags - .text.tcp_output - 0x000000000801d3bc 0x3ec ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - 0x000000000801d3bc tcp_output - .text.tcp_output_segment_busy - 0x000000000801d7a8 0x40 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .text.tcp_output_segment - 0x000000000801d7e8 0x1c0 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .text.tcp_rexmit_rto_prepare - 0x000000000801d9a8 0xf4 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - 0x000000000801d9a8 tcp_rexmit_rto_prepare - .text.tcp_rexmit_rto_commit - 0x000000000801da9c 0x50 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - 0x000000000801da9c tcp_rexmit_rto_commit - .text.tcp_rexmit_rto - 0x000000000801daec 0x44 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - 0x000000000801daec tcp_rexmit_rto - .text.tcp_rexmit - 0x000000000801db30 0xd8 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - 0x000000000801db30 tcp_rexmit - .text.tcp_rexmit_fast - 0x000000000801dc08 0xc4 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - 0x000000000801dc08 tcp_rexmit_fast - .text.tcp_output_alloc_header_common - 0x000000000801dccc 0xe4 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .text.tcp_output_alloc_header - 0x000000000801ddb0 0x7c ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .text.tcp_output_fill_options - 0x000000000801de2c 0x7c ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .text.tcp_output_control_segment - 0x000000000801dea8 0x94 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .text.tcp_rst 0x000000000801df3c 0xa4 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - 0x000000000801df3c tcp_rst - .text.tcp_send_empty_ack - 0x000000000801dfe0 0xc4 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - 0x000000000801dfe0 tcp_send_empty_ack - .text.tcp_keepalive - 0x000000000801e0a4 0x80 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - 0x000000000801e0a4 tcp_keepalive - .text.tcp_zero_window_probe - 0x000000000801e124 0x154 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - 0x000000000801e124 tcp_zero_window_probe - .text.tcpip_tcp_timer - 0x000000000801e278 0x48 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .text.tcp_timer_needed - 0x000000000801e2c0 0x40 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - 0x000000000801e2c0 tcp_timer_needed - .text.sys_timeout_abs - 0x000000000801e300 0xdc ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .text.lwip_cyclic_timer - 0x000000000801e3dc 0x64 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .text.sys_timeouts_init - 0x000000000801e440 0x44 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - 0x000000000801e440 sys_timeouts_init - .text.sys_timeout - 0x000000000801e484 0x4c ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - 0x000000000801e484 sys_timeout - .text.sys_check_timeouts - 0x000000000801e4d0 0x74 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - 0x000000000801e4d0 sys_check_timeouts - .text.sys_timeouts_sleeptime - 0x000000000801e544 0x70 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - 0x000000000801e544 sys_timeouts_sleeptime - .text.udp_init - 0x000000000801e5b4 0x24 ./Middlewares/Third_Party/LwIP/src/core/udp.o - 0x000000000801e5b4 udp_init - .text.udp_new_port - 0x000000000801e5d8 0x70 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .text.udp_input_local_match - 0x000000000801e648 0xc8 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .text.udp_input - 0x000000000801e710 0x228 ./Middlewares/Third_Party/LwIP/src/core/udp.o - 0x000000000801e710 udp_input - .text.udp_bind - 0x000000000801e938 0x110 ./Middlewares/Third_Party/LwIP/src/core/udp.o - 0x000000000801e938 udp_bind - .text.udp_connect - 0x000000000801ea48 0xdc ./Middlewares/Third_Party/LwIP/src/core/udp.o - 0x000000000801ea48 udp_connect - .text.udp_recv - 0x000000000801eb24 0x40 ./Middlewares/Third_Party/LwIP/src/core/udp.o - 0x000000000801eb24 udp_recv - .text.udp_remove - 0x000000000801eb64 0x84 ./Middlewares/Third_Party/LwIP/src/core/udp.o - 0x000000000801eb64 udp_remove - .text.udp_new 0x000000000801ebe8 0x2e ./Middlewares/Third_Party/LwIP/src/core/udp.o - 0x000000000801ebe8 udp_new - .text.udp_new_ip_type - 0x000000000801ec16 0x1a ./Middlewares/Third_Party/LwIP/src/core/udp.o - 0x000000000801ec16 udp_new_ip_type - .text.udp_netif_ip_addr_changed - 0x000000000801ec30 0x60 ./Middlewares/Third_Party/LwIP/src/core/udp.o - 0x000000000801ec30 udp_netif_ip_addr_changed - .text.etharp_free_entry - 0x000000000801ec90 0xc0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .text.etharp_tmr - 0x000000000801ed50 0x150 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - 0x000000000801ed50 etharp_tmr - .text.etharp_find_entry - 0x000000000801eea0 0x2f0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .text.etharp_update_arp_entry - 0x000000000801f190 0x14c ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .text.etharp_cleanup_netif - 0x000000000801f2dc 0x60 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - 0x000000000801f2dc etharp_cleanup_netif - .text.etharp_input - 0x000000000801f33c 0x114 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - 0x000000000801f33c etharp_input - .text.etharp_output_to_arp_index - 0x000000000801f450 0x134 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .text.etharp_output - 0x000000000801f584 0x204 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - 0x000000000801f584 etharp_output - .text.etharp_query - 0x000000000801f788 0x27c ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - 0x000000000801f788 etharp_query - .text.etharp_raw - 0x000000000801fa04 0x118 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .text.etharp_request_dst - 0x000000000801fb1c 0x44 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .text.etharp_request - 0x000000000801fb60 0x24 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - 0x000000000801fb60 etharp_request - .text.icmp_input - 0x000000000801fb84 0x248 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - 0x000000000801fb84 icmp_input - .text.icmp_dest_unreach - 0x000000000801fdcc 0x20 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - 0x000000000801fdcc icmp_dest_unreach - .text.icmp_time_exceeded - 0x000000000801fdec 0x20 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - 0x000000000801fdec icmp_time_exceeded - .text.icmp_send_response - 0x000000000801fe0c 0xe8 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .text.ip4_route - 0x000000000801fef4 0xe0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - 0x000000000801fef4 ip4_route - .text.ip4_input_accept - 0x000000000801ffd4 0x54 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .text.ip4_input - 0x0000000008020028 0x248 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - 0x0000000008020028 ip4_input - .text.ip4_output_if - 0x0000000008020270 0x54 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - 0x0000000008020270 ip4_output_if - .text.ip4_output_if_src - 0x00000000080202c4 0x15c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - 0x00000000080202c4 ip4_output_if_src - .text.ip4_addr_isbroadcast_u32 - 0x0000000008020420 0x82 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - 0x0000000008020420 ip4_addr_isbroadcast_u32 - *fill* 0x00000000080204a2 0x2 - .text.ip_reass_tmr - 0x00000000080204a4 0x58 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - 0x00000000080204a4 ip_reass_tmr - .text.ip_reass_free_complete_datagram - 0x00000000080204fc 0x148 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .text.ip_reass_remove_oldest_datagram - 0x0000000008020644 0xc4 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .text.ip_reass_enqueue_new_datagram - 0x0000000008020708 0x74 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .text.ip_reass_dequeue_datagram - 0x000000000802077c 0x5c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .text.ip_reass_chain_frag_into_datagram_and_validate - 0x00000000080207d8 0x2d4 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .text.ip4_reass - 0x0000000008020aac 0x338 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - 0x0000000008020aac ip4_reass - .text.ip_frag_alloc_pbuf_custom_ref - 0x0000000008020de4 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .text.ip_frag_free_pbuf_custom_ref - 0x0000000008020df4 0x38 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .text.ipfrag_free_pbuf_custom - 0x0000000008020e2c 0x68 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .text.ip4_frag - 0x0000000008020e94 0x28c ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - 0x0000000008020e94 ip4_frag - .text.ethernet_input - 0x0000000008021120 0x11c ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - 0x0000000008021120 ethernet_input - .text.ethernet_output - 0x000000000802123c 0x90 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - 0x000000000802123c ethernet_output - .text.sys_mbox_new - 0x00000000080212cc 0x44 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x00000000080212cc sys_mbox_new - .text.sys_mbox_free - 0x0000000008021310 0x24 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x0000000008021310 sys_mbox_free - .text.sys_mbox_trypost - 0x0000000008021334 0x34 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x0000000008021334 sys_mbox_trypost - .text.sys_arch_mbox_fetch - 0x0000000008021368 0x7e ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x0000000008021368 sys_arch_mbox_fetch - .text.sys_arch_mbox_tryfetch - 0x00000000080213e6 0x38 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x00000000080213e6 sys_arch_mbox_tryfetch - .text.sys_mbox_valid - 0x000000000802141e 0x22 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x000000000802141e sys_mbox_valid - .text.sys_mbox_set_invalid - 0x0000000008021440 0x1a ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x0000000008021440 sys_mbox_set_invalid - .text.sys_sem_new - 0x000000000802145a 0x50 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x000000000802145a sys_sem_new - .text.sys_arch_sem_wait - 0x00000000080214aa 0x62 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x00000000080214aa sys_arch_sem_wait - .text.sys_sem_signal - 0x000000000802150c 0x1a ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x000000000802150c sys_sem_signal - .text.sys_sem_free - 0x0000000008021526 0x1a ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x0000000008021526 sys_sem_free - .text.sys_sem_valid - 0x0000000008021540 0x22 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x0000000008021540 sys_sem_valid - .text.sys_sem_set_invalid - 0x0000000008021562 0x1a ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x0000000008021562 sys_sem_set_invalid - .text.sys_init - 0x000000000802157c 0x1c ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x000000000802157c sys_init - .text.sys_mutex_new - 0x0000000008021598 0x38 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x0000000008021598 sys_mutex_new - .text.sys_mutex_lock - 0x00000000080215d0 0x1e ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x00000000080215d0 sys_mutex_lock - .text.sys_mutex_unlock - 0x00000000080215ee 0x1a ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x00000000080215ee sys_mutex_unlock - .text.sys_thread_new - 0x0000000008021608 0x4a ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x0000000008021608 sys_thread_new - *fill* 0x0000000008021652 0x2 - .text.sys_arch_protect - 0x0000000008021654 0x1c ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x0000000008021654 sys_arch_protect - .text.sys_arch_unprotect - 0x0000000008021670 0x20 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x0000000008021670 sys_arch_unprotect - .text.rand 0x0000000008021690 0x7c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-rand.o) - 0x0000000008021690 rand - .text._strtoul_l.constprop.0 - 0x000000000802170c 0xe4 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strtoul.o) - .text.strtoul 0x00000000080217f0 0x14 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strtoul.o) - 0x00000000080217f0 strtoul - .text.std 0x0000000008021804 0x6c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-findfp.o) - .text.stdio_exit_handler - 0x0000000008021870 0x18 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-findfp.o) - .text.cleanup_stdio - 0x0000000008021888 0x40 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-findfp.o) - .text.global_stdio_init.part.0 - 0x00000000080218c8 0x3c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-findfp.o) - .text.__sfp_lock_acquire - 0x0000000008021904 0xc C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-findfp.o) - 0x0000000008021904 __sfp_lock_acquire - .text.__sfp_lock_release - 0x0000000008021910 0xc C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-findfp.o) - 0x0000000008021910 __sfp_lock_release - .text.__sinit 0x000000000802191c 0x30 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-findfp.o) - 0x000000000802191c __sinit - .text._fwalk_sglue - 0x000000000802194c 0x3c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fwalk.o) - 0x000000000802194c _fwalk_sglue - .text.printf 0x0000000008021988 0x24 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-printf.o) - 0x0000000008021988 iprintf - 0x0000000008021988 printf - .text.putchar 0x00000000080219ac 0x10 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-putchar.o) - 0x00000000080219ac putchar - .text._puts_r 0x00000000080219bc 0xa8 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-puts.o) - 0x00000000080219bc _puts_r - .text.puts 0x0000000008021a64 0x10 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-puts.o) - 0x0000000008021a64 puts - .text.snprintf - 0x0000000008021a74 0x68 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-snprintf.o) - 0x0000000008021a74 sniprintf - 0x0000000008021a74 snprintf - .text.__sread 0x0000000008021adc 0x22 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-stdio.o) - 0x0000000008021adc __sread - .text.__swrite - 0x0000000008021afe 0x38 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-stdio.o) - 0x0000000008021afe __swrite - .text.__sseek 0x0000000008021b36 0x24 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-stdio.o) - 0x0000000008021b36 __sseek - .text.__sclose - 0x0000000008021b5a 0x8 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-stdio.o) - 0x0000000008021b5a __sclose - .text.__swbuf_r - 0x0000000008021b62 0x7a C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-wbuf.o) - 0x0000000008021b62 __swbuf_r - .text.__swsetup_r - 0x0000000008021bdc 0xb0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-wsetup.o) - 0x0000000008021bdc __swsetup_r - .text.memcmp 0x0000000008021c8c 0x20 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memcmp.o) - 0x0000000008021c8c memcmp - .text.memmove 0x0000000008021cac 0x34 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memmove.o) - 0x0000000008021cac memmove - .text.memset 0x0000000008021ce0 0x10 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memset.o) - 0x0000000008021ce0 memset - .text.strchr 0x0000000008021cf0 0x1a C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strchr.o) - 0x0000000008021cf0 strchr - *fill* 0x0000000008021d0a 0x2 - .text._close_r - 0x0000000008021d0c 0x20 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-closer.o) - 0x0000000008021d0c _close_r - .text._lseek_r - 0x0000000008021d2c 0x24 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lseekr.o) - 0x0000000008021d2c _lseek_r - .text._read_r 0x0000000008021d50 0x24 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-readr.o) - 0x0000000008021d50 _read_r - .text._write_r - 0x0000000008021d74 0x24 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-writer.o) - 0x0000000008021d74 _write_r - .text.__libc_init_array - 0x0000000008021d98 0x48 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-init.o) - 0x0000000008021d98 __libc_init_array - .text.__retarget_lock_init_recursive - 0x0000000008021de0 0x2 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lock.o) - 0x0000000008021de0 __retarget_lock_init_recursive - .text.__retarget_lock_acquire_recursive - 0x0000000008021de2 0x2 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lock.o) - 0x0000000008021de2 __retarget_lock_acquire_recursive - .text.__retarget_lock_release_recursive - 0x0000000008021de4 0x2 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lock.o) - 0x0000000008021de4 __retarget_lock_release_recursive - .text.memcpy 0x0000000008021de6 0x1c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memcpy-stub.o) - 0x0000000008021de6 memcpy - *fill* 0x0000000008021e02 0x2 - .text.__assert_func - 0x0000000008021e04 0x3c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-assert.o) - 0x0000000008021e04 __assert_func - .text._free_r 0x0000000008021e40 0x98 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-freer.o) - 0x0000000008021e40 _free_r - .text.malloc 0x0000000008021ed8 0x10 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-malloc.o) - 0x0000000008021ed8 malloc - .text.sbrk_aligned - 0x0000000008021ee8 0x40 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-mallocr.o) - .text._malloc_r - 0x0000000008021f28 0x100 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-mallocr.o) - 0x0000000008021f28 _malloc_r - .text.__malloc_lock - 0x0000000008022028 0xc C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-mlock.o) - 0x0000000008022028 __malloc_lock - .text.__malloc_unlock - 0x0000000008022034 0xc C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-mlock.o) - 0x0000000008022034 __malloc_unlock - .text.__ssputs_r - 0x0000000008022040 0xb4 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-svfprintf.o) - 0x0000000008022040 __ssputs_r - .text._svfprintf_r - 0x00000000080220f4 0x1fc C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-svfprintf.o) - 0x00000000080220f4 _svfiprintf_r - 0x00000000080220f4 _svfprintf_r - .text.__sfputc_r - 0x00000000080222f0 0x2e C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-vfprintf.o) - .text.__sfputs_r - 0x000000000802231e 0x24 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-vfprintf.o) - 0x000000000802231e __sfputs_r - *fill* 0x0000000008022342 0x2 - .text._vfprintf_r - 0x0000000008022344 0x234 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-vfprintf.o) - 0x0000000008022344 _vfprintf_r - 0x0000000008022344 _vfiprintf_r - .text._printf_common - 0x0000000008022578 0xda C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-vfprintf_i.o) - 0x0000000008022578 _printf_common - *fill* 0x0000000008022652 0x2 - .text._printf_i - 0x0000000008022654 0x244 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-vfprintf_i.o) - 0x0000000008022654 _printf_i - .text.__sflush_r - 0x0000000008022898 0x10c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fflush.o) - 0x0000000008022898 __sflush_r - .text._fflush_r - 0x00000000080229a4 0x50 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fflush.o) - 0x00000000080229a4 _fflush_r - .text.fprintf 0x00000000080229f4 0x24 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fprintf.o) - 0x00000000080229f4 fiprintf - 0x00000000080229f4 fprintf - .text.__swhatbuf_r - 0x0000000008022a18 0x4c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-makebuf.o) - 0x0000000008022a18 __swhatbuf_r - .text.__smakebuf_r - 0x0000000008022a64 0x78 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-makebuf.o) - 0x0000000008022a64 __smakebuf_r - .text._putc_r 0x0000000008022adc 0x68 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-putc.o) - 0x0000000008022adc _putc_r - .text._fstat_r - 0x0000000008022b44 0x24 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fstatr.o) - 0x0000000008022b44 _fstat_r - .text._isatty_r - 0x0000000008022b68 0x20 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-isattyr.o) - 0x0000000008022b68 _isatty_r - .text._sbrk_r 0x0000000008022b88 0x20 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-sbrkr.o) - 0x0000000008022b88 _sbrk_r - .text.abort 0x0000000008022ba8 0xe C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-abort.o) - 0x0000000008022ba8 abort - .text._realloc_r - 0x0000000008022bb6 0x5e C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-reallocr.o) - 0x0000000008022bb6 _realloc_r - .text._raise_r - 0x0000000008022c14 0x50 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-signal.o) - 0x0000000008022c14 _raise_r - .text.raise 0x0000000008022c64 0x10 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-signal.o) - 0x0000000008022c64 raise - .text._kill_r 0x0000000008022c74 0x24 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-signalr.o) - 0x0000000008022c74 _kill_r - .text._getpid_r - 0x0000000008022c98 0x4 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-signalr.o) - 0x0000000008022c98 _getpid_r - .text._malloc_usable_size_r - 0x0000000008022c9c 0x10 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-msizer.o) - 0x0000000008022c9c _malloc_usable_size_r - *(.glue_7) - .glue_7 0x0000000008022cac 0x0 linker stubs - *(.glue_7t) - .glue_7t 0x0000000008022cac 0x0 linker stubs - *(.eh_frame) - .eh_frame 0x0000000008022cac 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crtbegin.o - *(.init) - .init 0x0000000008022cac 0x4 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crti.o - 0x0000000008022cac _init - .init 0x0000000008022cb0 0x8 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crtn.o - *(.fini) - .fini 0x0000000008022cb8 0x4 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crti.o - 0x0000000008022cb8 _fini - .fini 0x0000000008022cbc 0x8 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crtn.o - 0x0000000008022cc4 . = ALIGN (0x4) - 0x0000000008022cc4 _etext = . - -.vfp11_veneer 0x0000000008022cc4 0x0 - .vfp11_veneer 0x0000000008022cc4 0x0 linker stubs - -.v4_bx 0x0000000008022cc4 0x0 - .v4_bx 0x0000000008022cc4 0x0 linker stubs - -.iplt 0x0000000008022cc4 0x0 - .iplt 0x0000000008022cc4 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crtbegin.o - -.rodata 0x0000000008022cc4 0x4224 - 0x0000000008022cc4 . = ALIGN (0x4) - *(.rodata) - .rodata 0x0000000008022cc4 0x171 ./Core/Src/main.o - *fill* 0x0000000008022e35 0x3 - .rodata 0x0000000008022e38 0x4c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .rodata 0x0000000008022e84 0x10 ./FATFS/Target/sd_diskio.o - .rodata 0x0000000008022e94 0x369 ./LWFTPC/lwftpc.o - *fill* 0x00000000080231fd 0x3 - .rodata 0x0000000008023200 0x24 ./LWIP/App/lwip.o - .rodata 0x0000000008023224 0x90 ./LWIP/Target/ethernetif.o - .rodata 0x00000000080232b4 0x5 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - *fill* 0x00000000080232b9 0x3 - .rodata 0x00000000080232bc 0xd ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - *fill* 0x00000000080232c9 0x3 - .rodata 0x00000000080232cc 0x358 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .rodata 0x0000000008023624 0x555 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - *fill* 0x0000000008023b79 0x3 - .rodata 0x0000000008023b7c 0x196 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - *fill* 0x0000000008023d12 0x2 - .rodata 0x0000000008023d14 0xdd ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - *fill* 0x0000000008023df1 0x3 - .rodata 0x0000000008023df4 0x365 ./Middlewares/Third_Party/LwIP/src/core/mem.o - *fill* 0x0000000008024159 0x3 - .rodata 0x000000000802415c 0x1ab ./Middlewares/Third_Party/LwIP/src/core/memp.o - *fill* 0x0000000008024307 0x1 - .rodata 0x0000000008024308 0x39e ./Middlewares/Third_Party/LwIP/src/core/netif.o - *fill* 0x00000000080246a6 0x2 - .rodata 0x00000000080246a8 0x485 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - *fill* 0x0000000008024b2d 0x3 - .rodata 0x0000000008024b30 0x807 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - *fill* 0x0000000008025337 0x1 - .rodata 0x0000000008025338 0x47e ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - *fill* 0x00000000080257b6 0x2 - .rodata 0x00000000080257b8 0x877 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - *fill* 0x000000000802602f 0x1 - .rodata 0x0000000008026030 0xe6 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - *fill* 0x0000000008026116 0x2 - .rodata 0x0000000008026118 0x364 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .rodata 0x000000000802647c 0x275 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - *fill* 0x00000000080266f1 0x3 - .rodata 0x00000000080266f4 0xf8 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .rodata 0x00000000080267ec 0x95 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - *fill* 0x0000000008026881 0x3 - .rodata 0x0000000008026884 0x227 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - *fill* 0x0000000008026aab 0x1 - .rodata 0x0000000008026aac 0x94 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - *(.rodata*) - .rodata.D1CorePrescTable - 0x0000000008026b40 0x10 ./Core/Src/system_stm32h7xx.o - 0x0000000008026b40 D1CorePrescTable - .rodata.flagBitshiftOffset.0 - 0x0000000008026b50 0x8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .rodata.UARTPrescTable - 0x0000000008026b58 0x18 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - 0x0000000008026b58 UARTPrescTable - .rodata.numerator.1 - 0x0000000008026b70 0x8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .rodata.denominator.0 - 0x0000000008026b78 0x8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .rodata.SD_Driver - 0x0000000008026b80 0x14 ./FATFS/Target/sd_diskio.o - 0x0000000008026b80 SD_Driver - .rodata.memp_RX_POOL - 0x0000000008026b94 0x10 ./LWIP/Target/ethernetif.o - 0x0000000008026b94 memp_RX_POOL - .rodata.netconn_aborted - 0x0000000008026ba4 0x1 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - 0x0000000008026ba4 netconn_aborted - .rodata.netconn_reset - 0x0000000008026ba5 0x1 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - 0x0000000008026ba5 netconn_reset - .rodata.netconn_closed - 0x0000000008026ba6 0x1 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - 0x0000000008026ba6 netconn_closed - *fill* 0x0000000008026ba7 0x1 - .rodata.memp_UDP_PCB - 0x0000000008026ba8 0x10 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008026ba8 memp_UDP_PCB - .rodata.memp_TCP_PCB - 0x0000000008026bb8 0x10 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008026bb8 memp_TCP_PCB - .rodata.memp_TCP_PCB_LISTEN - 0x0000000008026bc8 0x10 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008026bc8 memp_TCP_PCB_LISTEN - .rodata.memp_TCP_SEG - 0x0000000008026bd8 0x10 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008026bd8 memp_TCP_SEG - .rodata.memp_REASSDATA - 0x0000000008026be8 0x10 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008026be8 memp_REASSDATA - .rodata.memp_FRAG_PBUF - 0x0000000008026bf8 0x10 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008026bf8 memp_FRAG_PBUF - .rodata.memp_NETBUF - 0x0000000008026c08 0x10 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008026c08 memp_NETBUF - .rodata.memp_NETCONN - 0x0000000008026c18 0x10 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008026c18 memp_NETCONN - .rodata.memp_TCPIP_MSG_API - 0x0000000008026c28 0x10 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008026c28 memp_TCPIP_MSG_API - .rodata.memp_TCPIP_MSG_INPKT - 0x0000000008026c38 0x10 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008026c38 memp_TCPIP_MSG_INPKT - .rodata.memp_SYS_TIMEOUT - 0x0000000008026c48 0x10 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008026c48 memp_SYS_TIMEOUT - .rodata.memp_PBUF - 0x0000000008026c58 0x10 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008026c58 memp_PBUF - .rodata.memp_PBUF_POOL - 0x0000000008026c68 0x10 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008026c68 memp_PBUF_POOL - .rodata.memp_pools - 0x0000000008026c78 0x34 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008026c78 memp_pools - .rodata.tcp_backoff - 0x0000000008026cac 0xd ./Middlewares/Third_Party/LwIP/src/core/tcp.o - *fill* 0x0000000008026cb9 0x3 - .rodata.tcp_persist_backoff - 0x0000000008026cbc 0x7 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - *fill* 0x0000000008026cc3 0x1 - .rodata.tcp_pcb_lists - 0x0000000008026cc4 0x10 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x0000000008026cc4 tcp_pcb_lists - .rodata.lwip_cyclic_timers - 0x0000000008026cd4 0x18 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - 0x0000000008026cd4 lwip_cyclic_timers - .rodata.ip_addr_any - 0x0000000008026cec 0x4 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - 0x0000000008026cec ip_addr_any - .rodata.ethbroadcast - 0x0000000008026cf0 0x6 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - 0x0000000008026cf0 ethbroadcast - *fill* 0x0000000008026cf6 0x2 - .rodata.ethzero - 0x0000000008026cf8 0x6 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - 0x0000000008026cf8 ethzero - *fill* 0x0000000008026cfe 0x2 - .rodata.os_mutex_def_lwip_sys_mutex - 0x0000000008026d00 0x8 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x0000000008026d00 os_mutex_def_lwip_sys_mutex - .rodata.srand.str1.1 - 0x0000000008026d08 0x6f C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-rand.o) - .rodata._ctype_ - 0x0000000008026d77 0x101 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-ctype_.o) - 0x0000000008026d77 _ctype_ - .rodata.__assert_func.str1.1 - 0x0000000008026e78 0x3c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-assert.o) - 0x3d (size before relaxing) - .rodata._svfprintf_r.str1.1 - 0x0000000008026eb4 0x11 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-svfprintf.o) - .rodata._vfprintf_r.str1.1 - 0x0000000008026ec5 0x11 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-vfprintf.o) - .rodata._printf_i.str1.1 - 0x0000000008026ec5 0x22 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-vfprintf_i.o) - 0x0000000008026ee8 . = ALIGN (0x4) - *fill* 0x0000000008026ee7 0x1 - -.ARM.extab - *(.ARM.extab* .gnu.linkonce.armextab.*) - -.ARM 0x0000000008026ee8 0x8 - 0x0000000008026ee8 __exidx_start = . - *(.ARM.exidx*) - .ARM.exidx 0x0000000008026ee8 0x8 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard\libgcc.a(_udivmoddi4.o) - 0x0000000008026ef0 __exidx_end = . - -.rel.dyn 0x0000000008026ef0 0x0 - .rel.iplt 0x0000000008026ef0 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crtbegin.o - -.preinit_array 0x0000000008026ef0 0x0 - 0x0000000008026ef0 PROVIDE (__preinit_array_start = .) - *(.preinit_array*) - 0x0000000008026ef0 PROVIDE (__preinit_array_end = .) - -.init_array 0x0000000008026ef0 0x4 - 0x0000000008026ef0 PROVIDE (__init_array_start = .) - *(SORT_BY_NAME(.init_array.*)) - *(.init_array*) - .init_array 0x0000000008026ef0 0x4 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crtbegin.o - 0x0000000008026ef4 PROVIDE (__init_array_end = .) - -.fini_array 0x0000000008026ef4 0x4 - [!provide] PROVIDE (__fini_array_start = .) - *(SORT_BY_NAME(.fini_array.*)) - *(.fini_array*) - .fini_array 0x0000000008026ef4 0x4 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crtbegin.o - [!provide] PROVIDE (__fini_array_end = .) - 0x0000000008026ef8 _sidata = LOADADDR (.data) - -.data 0x0000000024000000 0xa4 load address 0x0000000008026ef8 - 0x0000000024000000 . = ALIGN (0x4) - 0x0000000024000000 _sdata = . - *(.data) - *(.data*) - .data.CLI_IP 0x0000000024000000 0x4 ./Core/Src/main.o - 0x0000000024000000 CLI_IP - .data.SVR_IP 0x0000000024000004 0x4 ./Core/Src/main.o - 0x0000000024000004 SVR_IP - .data.SVR_PORT - 0x0000000024000008 0x2 ./Core/Src/main.o - 0x0000000024000008 SVR_PORT - *fill* 0x000000002400000a 0x2 - .data.USER 0x000000002400000c 0x4 ./Core/Src/main.o - 0x000000002400000c USER - .data.PASS 0x0000000024000010 0x4 ./Core/Src/main.o - 0x0000000024000010 PASS - .data.SystemCoreClock - 0x0000000024000014 0x4 ./Core/Src/system_stm32h7xx.o - 0x0000000024000014 SystemCoreClock - .data.SystemD2Clock - 0x0000000024000018 0x4 ./Core/Src/system_stm32h7xx.o - 0x0000000024000018 SystemD2Clock - .data.uwTickPrio - 0x000000002400001c 0x4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - 0x000000002400001c uwTickPrio - .data.uwTickFreq - 0x0000000024000020 0x1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - 0x0000000024000020 uwTickFreq - .data.Stat 0x0000000024000021 0x1 ./FATFS/Target/sd_diskio.o - *fill* 0x0000000024000022 0x2 - .data.LAN8742_IOCtx - 0x0000000024000024 0x14 ./LWIP/Target/ethernetif.o - 0x0000000024000024 LAN8742_IOCtx - .data.uxCriticalNesting - 0x0000000024000038 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .data.tcp_port - 0x000000002400003c 0x2 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - *fill* 0x000000002400003e 0x2 - .data.iss.0 0x0000000024000040 0x4 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .data.udp_port - 0x0000000024000044 0x2 ./Middlewares/Third_Party/LwIP/src/core/udp.o - *fill* 0x0000000024000046 0x2 - .data.__sglue 0x0000000024000048 0xc C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-findfp.o) - 0x0000000024000048 __sglue - .data._impure_data - 0x0000000024000054 0x4c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-impure.o) - 0x0000000024000054 _impure_data - .data._impure_ptr - 0x00000000240000a0 0x4 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-impure.o) - 0x00000000240000a0 _impure_ptr - *(.RamFunc) - *(.RamFunc*) - 0x00000000240000a4 . = ALIGN (0x4) - 0x00000000240000a4 _edata = . - -.igot.plt 0x00000000240000a4 0x0 load address 0x0000000008026f9c - .igot.plt 0x00000000240000a4 0x0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crtbegin.o - 0x00000000240000a4 . = ALIGN (0x4) - -.bss 0x00000000240000a4 0x1a68c load address 0x0000000008026f9c - 0x00000000240000a4 _sbss = . - 0x00000000240000a4 __bss_start__ = _sbss - *(.bss) - .bss 0x00000000240000a4 0x1c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crtbegin.o - *(.bss*) - .bss.xIdleTaskTCBBuffer - 0x00000000240000c0 0x54 ./Core/Src/freertos.o - .bss.xIdleStack - 0x0000000024000114 0x400 ./Core/Src/freertos.o - .bss.xTimerTaskTCBBuffer - 0x0000000024000514 0x54 ./Core/Src/freertos.o - .bss.xTimerStack - 0x0000000024000568 0x800 ./Core/Src/freertos.o - .bss.hfdcan1 0x0000000024000d68 0xa0 ./Core/Src/main.o - 0x0000000024000d68 hfdcan1 - .bss.hfdcan2 0x0000000024000e08 0xa0 ./Core/Src/main.o - 0x0000000024000e08 hfdcan2 - .bss.hfdcan3 0x0000000024000ea8 0xa0 ./Core/Src/main.o - 0x0000000024000ea8 hfdcan3 - .bss.hsd1 0x0000000024000f48 0x7c ./Core/Src/main.o - 0x0000000024000f48 hsd1 - .bss.htim3 0x0000000024000fc4 0x4c ./Core/Src/main.o - 0x0000000024000fc4 htim3 - .bss.huart4 0x0000000024001010 0x94 ./Core/Src/main.o - 0x0000000024001010 huart4 - .bss.huart7 0x00000000240010a4 0x94 ./Core/Src/main.o - 0x00000000240010a4 huart7 - .bss.huart8 0x0000000024001138 0x94 ./Core/Src/main.o - 0x0000000024001138 huart8 - .bss.hdma_uart8_rx - 0x00000000240011cc 0x78 ./Core/Src/main.o - 0x00000000240011cc hdma_uart8_rx - .bss.hmdma_mdma_channel0_sdmmc1_end_data_0 - 0x0000000024001244 0x6c ./Core/Src/main.o - 0x0000000024001244 hmdma_mdma_channel0_sdmmc1_end_data_0 - .bss.defaultTaskHandle - 0x00000000240012b0 0x4 ./Core/Src/main.o - 0x00000000240012b0 defaultTaskHandle - .bss.defaultTaskBuffer - 0x00000000240012b4 0x4000 ./Core/Src/main.o - 0x00000000240012b4 defaultTaskBuffer - .bss.defaultTaskControlBlock - 0x00000000240052b4 0x54 ./Core/Src/main.o - 0x00000000240052b4 defaultTaskControlBlock - .bss.debugTaskHandle - 0x0000000024005308 0x4 ./Core/Src/main.o - 0x0000000024005308 debugTaskHandle - .bss.debugTaskBuffer - 0x000000002400530c 0x2000 ./Core/Src/main.o - 0x000000002400530c debugTaskBuffer - .bss.debugTaskControlBlock - 0x000000002400730c 0x54 ./Core/Src/main.o - 0x000000002400730c debugTaskControlBlock - .bss.s 0x0000000024007360 0x20 ./Core/Src/main.o - .bss.HAL_RCC_FDCAN_CLK_ENABLED - 0x0000000024007380 0x4 ./Core/Src/stm32h7xx_hal_msp.o - .bss.htim6 0x0000000024007384 0x4c ./Core/Src/stm32h7xx_hal_timebase_tim.o - 0x0000000024007384 htim6 - .bss.__sbrk_heap_end - 0x00000000240073d0 0x4 ./Core/Src/sysmem.o - .bss.uwTick 0x00000000240073d4 0x4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - 0x00000000240073d4 uwTick - .bss.retSD 0x00000000240073d8 0x1 ./FATFS/App/fatfs.o - 0x00000000240073d8 retSD - *fill* 0x00000000240073d9 0x3 - .bss.SDPath 0x00000000240073dc 0x4 ./FATFS/App/fatfs.o - 0x00000000240073dc SDPath - .bss.SDQueueID - 0x00000000240073e0 0x4 ./FATFS/Target/sd_diskio.o - .bss.d_buf.1 0x00000000240073e4 0x4 ./LWFTPC/lwftpc.o - .bss.buf.0 0x00000000240073e8 0x4 ./LWFTPC/lwftpc.o - .bss.gnetif 0x00000000240073ec 0x34 ./LWIP/App/lwip.o - 0x00000000240073ec gnetif - .bss.ipaddr 0x0000000024007420 0x4 ./LWIP/App/lwip.o - 0x0000000024007420 ipaddr - .bss.netmask 0x0000000024007424 0x4 ./LWIP/App/lwip.o - 0x0000000024007424 netmask - .bss.gw 0x0000000024007428 0x4 ./LWIP/App/lwip.o - 0x0000000024007428 gw - .bss.IP_ADDRESS - 0x000000002400742c 0x4 ./LWIP/App/lwip.o - 0x000000002400742c IP_ADDRESS - .bss.NETMASK_ADDRESS - 0x0000000024007430 0x4 ./LWIP/App/lwip.o - 0x0000000024007430 NETMASK_ADDRESS - .bss.GATEWAY_ADDRESS - 0x0000000024007434 0x4 ./LWIP/App/lwip.o - 0x0000000024007434 GATEWAY_ADDRESS - .bss.memp_memory_RX_POOL_base - 0x0000000024007438 0x4983 ./LWIP/Target/ethernetif.o - 0x0000000024007438 memp_memory_RX_POOL_base - *fill* 0x000000002400bdbb 0x1 - .bss.memp_tab_RX_POOL - 0x000000002400bdbc 0x4 ./LWIP/Target/ethernetif.o - .bss.RxAllocStatus - 0x000000002400bdc0 0x1 ./LWIP/Target/ethernetif.o - *fill* 0x000000002400bdc1 0x3 - .bss.RxPktSemaphore - 0x000000002400bdc4 0x4 ./LWIP/Target/ethernetif.o - 0x000000002400bdc4 RxPktSemaphore - .bss.TxPktSemaphore - 0x000000002400bdc8 0x4 ./LWIP/Target/ethernetif.o - 0x000000002400bdc8 TxPktSemaphore - .bss.heth 0x000000002400bdcc 0xb0 ./LWIP/Target/ethernetif.o - 0x000000002400bdcc heth - .bss.TxConfig 0x000000002400be7c 0x38 ./LWIP/Target/ethernetif.o - 0x000000002400be7c TxConfig - .bss.LAN8742 0x000000002400beb4 0x20 ./LWIP/Target/ethernetif.o - 0x000000002400beb4 LAN8742 - .bss.disk 0x000000002400bed4 0xc ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - 0x000000002400bed4 disk - .bss.xQueueRegistry - 0x000000002400bee0 0x40 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x000000002400bee0 xQueueRegistry - .bss.pxCurrentTCB - 0x000000002400bf20 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x000000002400bf20 pxCurrentTCB - .bss.pxReadyTasksLists - 0x000000002400bf24 0x8c ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .bss.xDelayedTaskList1 - 0x000000002400bfb0 0x14 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .bss.xDelayedTaskList2 - 0x000000002400bfc4 0x14 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .bss.pxDelayedTaskList - 0x000000002400bfd8 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .bss.pxOverflowDelayedTaskList - 0x000000002400bfdc 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .bss.xPendingReadyList - 0x000000002400bfe0 0x14 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .bss.xTasksWaitingTermination - 0x000000002400bff4 0x14 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .bss.uxDeletedTasksWaitingCleanUp - 0x000000002400c008 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .bss.xSuspendedTaskList - 0x000000002400c00c 0x14 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .bss.uxCurrentNumberOfTasks - 0x000000002400c020 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .bss.xTickCount - 0x000000002400c024 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .bss.uxTopReadyPriority - 0x000000002400c028 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .bss.xSchedulerRunning - 0x000000002400c02c 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .bss.xPendedTicks - 0x000000002400c030 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .bss.xYieldPending - 0x000000002400c034 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .bss.xNumOfOverflows - 0x000000002400c038 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .bss.uxTaskNumber - 0x000000002400c03c 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .bss.xNextTaskUnblockTime - 0x000000002400c040 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .bss.xIdleTaskHandle - 0x000000002400c044 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .bss.uxSchedulerSuspended - 0x000000002400c048 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .bss.xActiveTimerList1 - 0x000000002400c04c 0x14 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .bss.xActiveTimerList2 - 0x000000002400c060 0x14 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .bss.pxCurrentTimerList - 0x000000002400c074 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .bss.pxOverflowTimerList - 0x000000002400c078 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .bss.xTimerQueue - 0x000000002400c07c 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .bss.xTimerTaskHandle - 0x000000002400c080 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .bss.xLastTime.2 - 0x000000002400c084 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .bss.ucStaticTimerQueueStorage.1 - 0x000000002400c088 0x78 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .bss.xStaticTimerQueue.0 - 0x000000002400c100 0x48 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .bss.ucMaxSysCallPriority - 0x000000002400c148 0x1 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - *fill* 0x000000002400c149 0x3 - .bss.ulMaxPRIGROUPValue - 0x000000002400c14c 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .bss.ucHeap 0x000000002400c150 0x7800 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .bss.xStart 0x0000000024013950 0x8 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .bss.pxEnd 0x0000000024013958 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .bss.xFreeBytesRemaining - 0x000000002401395c 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .bss.xMinimumEverFreeBytesRemaining - 0x0000000024013960 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .bss.xNumberOfSuccessfulAllocations - 0x0000000024013964 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .bss.xNumberOfSuccessfulFrees - 0x0000000024013968 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .bss.xBlockAllocatedBit - 0x000000002401396c 0x4 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .bss.tcpip_init_done - 0x0000000024013970 0x4 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .bss.tcpip_init_done_arg - 0x0000000024013974 0x4 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .bss.tcpip_mbox - 0x0000000024013978 0x4 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .bss.lock_tcpip_core - 0x000000002401397c 0x4 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - 0x000000002401397c lock_tcpip_core - .bss.ip_data 0x0000000024013980 0x18 ./Middlewares/Third_Party/LwIP/src/core/ip.o - 0x0000000024013980 ip_data - .bss.ram 0x0000000024013998 0x4 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .bss.ram_end 0x000000002401399c 0x4 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .bss.mem_mutex - 0x00000000240139a0 0x4 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .bss.lfree 0x00000000240139a4 0x4 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .bss.memp_memory_UDP_PCB_base - 0x00000000240139a8 0x83 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x00000000240139a8 memp_memory_UDP_PCB_base - *fill* 0x0000000024013a2b 0x1 - .bss.memp_tab_UDP_PCB - 0x0000000024013a2c 0x4 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .bss.memp_memory_TCP_PCB_base - 0x0000000024013a30 0x30f ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000024013a30 memp_memory_TCP_PCB_base - *fill* 0x0000000024013d3f 0x1 - .bss.memp_tab_TCP_PCB - 0x0000000024013d40 0x4 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .bss.memp_memory_TCP_PCB_LISTEN_base - 0x0000000024013d44 0xe3 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000024013d44 memp_memory_TCP_PCB_LISTEN_base - *fill* 0x0000000024013e27 0x1 - .bss.memp_tab_TCP_PCB_LISTEN - 0x0000000024013e28 0x4 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .bss.memp_memory_TCP_SEG_base - 0x0000000024013e2c 0x143 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000024013e2c memp_memory_TCP_SEG_base - *fill* 0x0000000024013f6f 0x1 - .bss.memp_tab_TCP_SEG - 0x0000000024013f70 0x4 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .bss.memp_memory_REASSDATA_base - 0x0000000024013f74 0xa3 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000024013f74 memp_memory_REASSDATA_base - *fill* 0x0000000024014017 0x1 - .bss.memp_tab_REASSDATA - 0x0000000024014018 0x4 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .bss.memp_memory_FRAG_PBUF_base - 0x000000002401401c 0x16b ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x000000002401401c memp_memory_FRAG_PBUF_base - *fill* 0x0000000024014187 0x1 - .bss.memp_tab_FRAG_PBUF - 0x0000000024014188 0x4 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .bss.memp_memory_NETBUF_base - 0x000000002401418c 0x23 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x000000002401418c memp_memory_NETBUF_base - *fill* 0x00000000240141af 0x1 - .bss.memp_tab_NETBUF - 0x00000000240141b0 0x4 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .bss.memp_memory_NETCONN_base - 0x00000000240141b4 0xa3 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x00000000240141b4 memp_memory_NETCONN_base - *fill* 0x0000000024014257 0x1 - .bss.memp_tab_NETCONN - 0x0000000024014258 0x4 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .bss.memp_memory_TCPIP_MSG_API_base - 0x000000002401425c 0x83 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x000000002401425c memp_memory_TCPIP_MSG_API_base - *fill* 0x00000000240142df 0x1 - .bss.memp_tab_TCPIP_MSG_API - 0x00000000240142e0 0x4 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .bss.memp_memory_TCPIP_MSG_INPKT_base - 0x00000000240142e4 0x83 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x00000000240142e4 memp_memory_TCPIP_MSG_INPKT_base - *fill* 0x0000000024014367 0x1 - .bss.memp_tab_TCPIP_MSG_INPKT - 0x0000000024014368 0x4 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .bss.memp_memory_SYS_TIMEOUT_base - 0x000000002401436c 0x33 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x000000002401436c memp_memory_SYS_TIMEOUT_base - *fill* 0x000000002401439f 0x1 - .bss.memp_tab_SYS_TIMEOUT - 0x00000000240143a0 0x4 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .bss.memp_memory_PBUF_base - 0x00000000240143a4 0x103 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x00000000240143a4 memp_memory_PBUF_base - *fill* 0x00000000240144a7 0x1 - .bss.memp_tab_PBUF - 0x00000000240144a8 0x4 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .bss.memp_memory_PBUF_POOL_base - 0x00000000240144ac 0x5fc3 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x00000000240144ac memp_memory_PBUF_POOL_base - *fill* 0x000000002401a46f 0x1 - .bss.memp_tab_PBUF_POOL - 0x000000002401a470 0x4 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .bss.netif_list - 0x000000002401a474 0x4 ./Middlewares/Third_Party/LwIP/src/core/netif.o - 0x000000002401a474 netif_list - .bss.netif_default - 0x000000002401a478 0x4 ./Middlewares/Third_Party/LwIP/src/core/netif.o - 0x000000002401a478 netif_default - .bss.netif_num - 0x000000002401a47c 0x1 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .bss.pbuf_free_ooseq_pending - 0x000000002401a47d 0x1 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x000000002401a47d pbuf_free_ooseq_pending - *fill* 0x000000002401a47e 0x2 - .bss.tcp_ticks - 0x000000002401a480 0x4 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x000000002401a480 tcp_ticks - .bss.tcp_bound_pcbs - 0x000000002401a484 0x4 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x000000002401a484 tcp_bound_pcbs - .bss.tcp_listen_pcbs - 0x000000002401a488 0x4 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x000000002401a488 tcp_listen_pcbs - .bss.tcp_active_pcbs - 0x000000002401a48c 0x4 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x000000002401a48c tcp_active_pcbs - .bss.tcp_tw_pcbs - 0x000000002401a490 0x4 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x000000002401a490 tcp_tw_pcbs - .bss.tcp_active_pcbs_changed - 0x000000002401a494 0x1 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x000000002401a494 tcp_active_pcbs_changed - .bss.tcp_timer - 0x000000002401a495 0x1 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .bss.tcp_timer_ctr - 0x000000002401a496 0x1 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - *fill* 0x000000002401a497 0x1 - .bss.inseg 0x000000002401a498 0x14 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .bss.tcphdr 0x000000002401a4ac 0x4 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .bss.tcphdr_optlen - 0x000000002401a4b0 0x2 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .bss.tcphdr_opt1len - 0x000000002401a4b2 0x2 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .bss.tcphdr_opt2 - 0x000000002401a4b4 0x4 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .bss.tcp_optidx - 0x000000002401a4b8 0x2 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - *fill* 0x000000002401a4ba 0x2 - .bss.seqno 0x000000002401a4bc 0x4 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .bss.ackno 0x000000002401a4c0 0x4 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .bss.recv_acked - 0x000000002401a4c4 0x2 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .bss.tcplen 0x000000002401a4c6 0x2 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .bss.flags 0x000000002401a4c8 0x1 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .bss.recv_flags - 0x000000002401a4c9 0x1 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - *fill* 0x000000002401a4ca 0x2 - .bss.recv_data - 0x000000002401a4cc 0x4 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .bss.tcp_input_pcb - 0x000000002401a4d0 0x4 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - 0x000000002401a4d0 tcp_input_pcb - .bss.next_timeout - 0x000000002401a4d4 0x4 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .bss.current_timeout_due_time - 0x000000002401a4d8 0x4 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .bss.tcpip_tcp_timer_active - 0x000000002401a4dc 0x4 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .bss.udp_pcbs 0x000000002401a4e0 0x4 ./Middlewares/Third_Party/LwIP/src/core/udp.o - 0x000000002401a4e0 udp_pcbs - .bss.arp_table - 0x000000002401a4e4 0xf0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .bss.etharp_cached_entry - 0x000000002401a5d4 0x1 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - *fill* 0x000000002401a5d5 0x1 - .bss.ip_id 0x000000002401a5d6 0x2 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .bss.reassdatagrams - 0x000000002401a5d8 0x4 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .bss.ip_reass_pbufcount - 0x000000002401a5dc 0x2 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - *fill* 0x000000002401a5de 0x2 - .bss.errno 0x000000002401a5e0 0x4 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x000000002401a5e0 errno - .bss.lwip_sys_mutex - 0x000000002401a5e4 0x4 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x000000002401a5e4 lwip_sys_mutex - .bss.__sf 0x000000002401a5e8 0x138 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-findfp.o) - 0x000000002401a5e8 __sf - .bss.__stdio_exit_handler - 0x000000002401a720 0x4 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-findfp.o) - 0x000000002401a720 __stdio_exit_handler - .bss.__lock___malloc_recursive_mutex - 0x000000002401a724 0x1 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lock.o) - 0x000000002401a724 __lock___malloc_recursive_mutex - .bss.__lock___sfp_recursive_mutex - 0x000000002401a725 0x1 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lock.o) - 0x000000002401a725 __lock___sfp_recursive_mutex - *fill* 0x000000002401a726 0x2 - .bss.__malloc_free_list - 0x000000002401a728 0x4 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-mallocr.o) - 0x000000002401a728 __malloc_free_list - .bss.__malloc_sbrk_start - 0x000000002401a72c 0x4 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-mallocr.o) - 0x000000002401a72c __malloc_sbrk_start - *(COMMON) - 0x000000002401a730 . = ALIGN (0x4) - 0x000000002401a730 _ebss = . - 0x000000002401a730 __bss_end__ = _ebss - -._user_heap_stack - 0x000000002401a730 0x6000 load address 0x0000000008026f9c - 0x000000002401a730 . = ALIGN (0x8) - [!provide] PROVIDE (end = .) - 0x000000002401a730 PROVIDE (_end = .) - 0x000000002401c730 . = (. + _Min_Heap_Size) - *fill* 0x000000002401a730 0x2000 - 0x0000000024020730 . = (. + _Min_Stack_Size) - *fill* 0x000000002401c730 0x4000 - 0x0000000024020730 . = ALIGN (0x8) - -.lwip_sec 0x0000000030000000 0x160 - 0x0000000030000000 . = ABSOLUTE (0x30000000) - *(.RxDecripSection) - .RxDecripSection - 0x0000000030000000 0x60 ./LWIP/Target/ethernetif.o - 0x0000000030000000 DMARxDscrTab - 0x0000000030000100 . = ABSOLUTE (0x30000100) - *fill* 0x0000000030000060 0xa0 - *(.TxDecripSection) - .TxDecripSection - 0x0000000030000100 0x60 ./LWIP/Target/ethernetif.o - 0x0000000030000100 DMATxDscrTab - -/DISCARD/ - libc.a(*) - libm.a(*) - libgcc.a(*) - -.ARM.attributes - 0x0000000000000000 0x2e - *(.ARM.attributes) - .ARM.attributes - 0x0000000000000000 0x1e C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crti.o - .ARM.attributes - 0x000000000000001e 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crtbegin.o - .ARM.attributes - 0x0000000000000050 0x32 ./Core/Src/freertos.o - .ARM.attributes - 0x0000000000000082 0x32 ./Core/Src/main.o - .ARM.attributes - 0x00000000000000b4 0x32 ./Core/Src/stm32h7xx_hal_msp.o - .ARM.attributes - 0x00000000000000e6 0x32 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .ARM.attributes - 0x0000000000000118 0x32 ./Core/Src/stm32h7xx_it.o - .ARM.attributes - 0x000000000000014a 0x32 ./Core/Src/syscalls.o - .ARM.attributes - 0x000000000000017c 0x32 ./Core/Src/sysmem.o - .ARM.attributes - 0x00000000000001ae 0x32 ./Core/Src/system_stm32h7xx.o - .ARM.attributes - 0x00000000000001e0 0x21 ./Core/Startup/startup_stm32h723vghx.o - .ARM.attributes - 0x0000000000000201 0x32 ./Drivers/BSP/Components/lan8742/lan8742.o - .ARM.attributes - 0x0000000000000233 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .ARM.attributes - 0x0000000000000265 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .ARM.attributes - 0x0000000000000297 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .ARM.attributes - 0x00000000000002c9 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .ARM.attributes - 0x00000000000002fb 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .ARM.attributes - 0x000000000000032d 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .ARM.attributes - 0x000000000000035f 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .ARM.attributes - 0x0000000000000391 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .ARM.attributes - 0x00000000000003c3 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .ARM.attributes - 0x00000000000003f5 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .ARM.attributes - 0x0000000000000427 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .ARM.attributes - 0x0000000000000459 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .ARM.attributes - 0x000000000000048b 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .ARM.attributes - 0x00000000000004bd 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .ARM.attributes - 0x00000000000004ef 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .ARM.attributes - 0x0000000000000521 0x32 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .ARM.attributes - 0x0000000000000553 0x32 ./FATFS/App/fatfs.o - .ARM.attributes - 0x0000000000000585 0x32 ./FATFS/Target/bsp_driver_sd.o - .ARM.attributes - 0x00000000000005b7 0x32 ./FATFS/Target/fatfs_platform.o - .ARM.attributes - 0x00000000000005e9 0x32 ./FATFS/Target/sd_diskio.o - .ARM.attributes - 0x000000000000061b 0x32 ./LWFTPC/lwftpc.o - .ARM.attributes - 0x000000000000064d 0x32 ./LWIP/App/lwip.o - .ARM.attributes - 0x000000000000067f 0x32 ./LWIP/Target/ethernetif.o - .ARM.attributes - 0x00000000000006b1 0x32 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .ARM.attributes - 0x00000000000006e3 0x32 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .ARM.attributes - 0x0000000000000715 0x32 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .ARM.attributes - 0x0000000000000747 0x32 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .ARM.attributes - 0x0000000000000779 0x32 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .ARM.attributes - 0x00000000000007ab 0x32 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .ARM.attributes - 0x00000000000007dd 0x32 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .ARM.attributes - 0x000000000000080f 0x32 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .ARM.attributes - 0x0000000000000841 0x32 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .ARM.attributes - 0x0000000000000873 0x32 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .ARM.attributes - 0x00000000000008a5 0x32 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .ARM.attributes - 0x00000000000008d7 0x32 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .ARM.attributes - 0x0000000000000909 0x32 ./Middlewares/Third_Party/LwIP/src/core/def.o - .ARM.attributes - 0x000000000000093b 0x32 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .ARM.attributes - 0x000000000000096d 0x32 ./Middlewares/Third_Party/LwIP/src/core/init.o - .ARM.attributes - 0x000000000000099f 0x32 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .ARM.attributes - 0x00000000000009d1 0x32 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .ARM.attributes - 0x0000000000000a03 0x32 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .ARM.attributes - 0x0000000000000a35 0x32 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .ARM.attributes - 0x0000000000000a67 0x32 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .ARM.attributes - 0x0000000000000a99 0x32 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .ARM.attributes - 0x0000000000000acb 0x32 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .ARM.attributes - 0x0000000000000afd 0x32 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .ARM.attributes - 0x0000000000000b2f 0x32 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .ARM.attributes - 0x0000000000000b61 0x32 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .ARM.attributes - 0x0000000000000b93 0x32 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .ARM.attributes - 0x0000000000000bc5 0x32 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .ARM.attributes - 0x0000000000000bf7 0x32 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .ARM.attributes - 0x0000000000000c29 0x32 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .ARM.attributes - 0x0000000000000c5b 0x32 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .ARM.attributes - 0x0000000000000c8d 0x32 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .ARM.attributes - 0x0000000000000cbf 0x32 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .ARM.attributes - 0x0000000000000cf1 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-rand.o) - .ARM.attributes - 0x0000000000000d23 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strtoul.o) - .ARM.attributes - 0x0000000000000d55 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-ctype_.o) - .ARM.attributes - 0x0000000000000d87 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-findfp.o) - .ARM.attributes - 0x0000000000000db9 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fwalk.o) - .ARM.attributes - 0x0000000000000deb 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-printf.o) - .ARM.attributes - 0x0000000000000e1d 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-putchar.o) - .ARM.attributes - 0x0000000000000e4f 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-puts.o) - .ARM.attributes - 0x0000000000000e81 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-snprintf.o) - .ARM.attributes - 0x0000000000000eb3 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-stdio.o) - .ARM.attributes - 0x0000000000000ee5 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-wbuf.o) - .ARM.attributes - 0x0000000000000f17 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-wsetup.o) - .ARM.attributes - 0x0000000000000f49 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memcmp.o) - .ARM.attributes - 0x0000000000000f7b 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memmove.o) - .ARM.attributes - 0x0000000000000fad 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memset.o) - .ARM.attributes - 0x0000000000000fdf 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strchr.o) - .ARM.attributes - 0x0000000000001011 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-closer.o) - .ARM.attributes - 0x0000000000001043 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-impure.o) - .ARM.attributes - 0x0000000000001075 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lseekr.o) - .ARM.attributes - 0x00000000000010a7 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-readr.o) - .ARM.attributes - 0x00000000000010d9 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-writer.o) - .ARM.attributes - 0x000000000000110b 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-init.o) - .ARM.attributes - 0x000000000000113d 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lock.o) - .ARM.attributes - 0x000000000000116f 0x1c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strcmp.o) - .ARM.attributes - 0x000000000000118b 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memcpy-stub.o) - .ARM.attributes - 0x00000000000011bd 0x17 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strlen.o) - .ARM.attributes - 0x00000000000011d4 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-assert.o) - .ARM.attributes - 0x0000000000001206 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-freer.o) - .ARM.attributes - 0x0000000000001238 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-malloc.o) - .ARM.attributes - 0x000000000000126a 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-mallocr.o) - .ARM.attributes - 0x000000000000129c 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-mlock.o) - .ARM.attributes - 0x00000000000012ce 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-svfprintf.o) - .ARM.attributes - 0x0000000000001300 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-vfprintf.o) - .ARM.attributes - 0x0000000000001332 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-vfprintf_i.o) - .ARM.attributes - 0x0000000000001364 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fflush.o) - .ARM.attributes - 0x0000000000001396 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fprintf.o) - .ARM.attributes - 0x00000000000013c8 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-makebuf.o) - .ARM.attributes - 0x00000000000013fa 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-putc.o) - .ARM.attributes - 0x000000000000142c 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fstatr.o) - .ARM.attributes - 0x000000000000145e 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-isattyr.o) - .ARM.attributes - 0x0000000000001490 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-sbrkr.o) - .ARM.attributes - 0x00000000000014c2 0x1c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memchr.o) - .ARM.attributes - 0x00000000000014de 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-abort.o) - .ARM.attributes - 0x0000000000001510 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-reallocr.o) - .ARM.attributes - 0x0000000000001542 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-signal.o) - .ARM.attributes - 0x0000000000001574 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-signalr.o) - .ARM.attributes - 0x00000000000015a6 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-msizer.o) - .ARM.attributes - 0x00000000000015d8 0x1e C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard\libgcc.a(_aeabi_uldivmod.o) - .ARM.attributes - 0x00000000000015f6 0x32 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard\libgcc.a(_udivmoddi4.o) - .ARM.attributes - 0x0000000000001628 0x1e C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard\libgcc.a(_dvmd_tls.o) - .ARM.attributes - 0x0000000000001646 0x1e C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crtn.o -OUTPUT(TBD_TaxiBoard.elf elf32-littlearm) -LOAD linker stubs -LOAD C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc.a -LOAD C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libm.a -LOAD C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard\libgcc.a - -.comment 0x0000000000000000 0x43 - .comment 0x0000000000000000 0x43 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard/crtbegin.o - 0x44 (size before relaxing) - .comment 0x0000000000000043 0x44 ./Core/Src/freertos.o - .comment 0x0000000000000043 0x44 ./Core/Src/main.o - .comment 0x0000000000000043 0x44 ./Core/Src/stm32h7xx_hal_msp.o - .comment 0x0000000000000043 0x44 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .comment 0x0000000000000043 0x44 ./Core/Src/stm32h7xx_it.o - .comment 0x0000000000000043 0x44 ./Core/Src/syscalls.o - .comment 0x0000000000000043 0x44 ./Core/Src/sysmem.o - .comment 0x0000000000000043 0x44 ./Core/Src/system_stm32h7xx.o - .comment 0x0000000000000043 0x44 ./Drivers/BSP/Components/lan8742/lan8742.o - .comment 0x0000000000000043 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .comment 0x0000000000000043 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .comment 0x0000000000000043 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .comment 0x0000000000000043 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .comment 0x0000000000000043 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .comment 0x0000000000000043 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .comment 0x0000000000000043 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .comment 0x0000000000000043 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .comment 0x0000000000000043 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .comment 0x0000000000000043 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .comment 0x0000000000000043 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .comment 0x0000000000000043 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .comment 0x0000000000000043 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .comment 0x0000000000000043 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .comment 0x0000000000000043 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .comment 0x0000000000000043 0x44 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .comment 0x0000000000000043 0x44 ./FATFS/App/fatfs.o - .comment 0x0000000000000043 0x44 ./FATFS/Target/bsp_driver_sd.o - .comment 0x0000000000000043 0x44 ./FATFS/Target/fatfs_platform.o - .comment 0x0000000000000043 0x44 ./FATFS/Target/sd_diskio.o - .comment 0x0000000000000043 0x44 ./LWFTPC/lwftpc.o - .comment 0x0000000000000043 0x44 ./LWIP/App/lwip.o - .comment 0x0000000000000043 0x44 ./LWIP/Target/ethernetif.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/LwIP/src/core/def.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/LwIP/src/core/init.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .comment 0x0000000000000043 0x44 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - -.debug_info 0x0000000000000000 0x46c14 - .debug_info 0x0000000000000000 0x349 ./Core/Src/freertos.o - .debug_info 0x0000000000000349 0x3c59 ./Core/Src/main.o - .debug_info 0x0000000000003fa2 0x2614 ./Core/Src/stm32h7xx_hal_msp.o - .debug_info 0x00000000000065b6 0x109d ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_info 0x0000000000007653 0x2600 ./Core/Src/stm32h7xx_it.o - .debug_info 0x0000000000009c53 0x6b2 ./Core/Src/syscalls.o - .debug_info 0x000000000000a305 0x170 ./Core/Src/sysmem.o - .debug_info 0x000000000000a475 0xb3e ./Core/Src/system_stm32h7xx.o - .debug_info 0x000000000000afb3 0x23 ./Core/Startup/startup_stm32h723vghx.o - .debug_info 0x000000000000afd6 0x5f6 ./Drivers/BSP/Components/lan8742/lan8742.o - .debug_info 0x000000000000b5cc 0x1698 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_info 0x000000000000cc64 0x1054 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_info 0x000000000000dcb8 0xb67 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_info 0x000000000000e81f 0x2935 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_info 0x0000000000011154 0x2b8c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_info 0x0000000000013ce0 0xc5c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_info 0x000000000001493c 0xbbe ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_info 0x00000000000154fa 0xdc4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_info 0x00000000000162be 0xd73 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_info 0x0000000000017031 0x11fc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_info 0x000000000001822d 0x1a7a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_info 0x0000000000019ca7 0x2b8b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_info 0x000000000001c832 0x18c1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_info 0x000000000001e0f3 0x4b13 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_info 0x0000000000022c06 0xfb5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_info 0x0000000000023bbb 0x11d3 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_info 0x0000000000024d8e 0x5c5 ./FATFS/App/fatfs.o - .debug_info 0x0000000000025353 0x8df ./FATFS/Target/bsp_driver_sd.o - .debug_info 0x0000000000025c32 0x1e2 ./FATFS/Target/fatfs_platform.o - .debug_info 0x0000000000025e14 0x973 ./FATFS/Target/sd_diskio.o - .debug_info 0x0000000000026787 0xbaa ./LWFTPC/lwftpc.o - .debug_info 0x0000000000027331 0x82e ./LWIP/App/lwip.o - .debug_info 0x0000000000027b5f 0x3567 ./LWIP/Target/ethernetif.o - .debug_info 0x000000000002b0c6 0x3a5 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_info 0x000000000002b46b 0x1c63 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_info 0x000000000002d0ce 0x2af ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_info 0x000000000002d37d 0x183b ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_info 0x000000000002ebb8 0x1ebe ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_info 0x0000000000030a76 0x1233 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_info 0x0000000000031ca9 0x4de ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .debug_info 0x0000000000032187 0x4d5 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_info 0x000000000003265c 0x1b00 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_info 0x000000000003415c 0x1eb4 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_info 0x0000000000036010 0x60b ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_info 0x000000000003661b 0xc72 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_info 0x000000000003728d 0x389 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_info 0x0000000000037616 0x63c ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_info 0x0000000000037c52 0xf3 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_info 0x0000000000037d45 0x504 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_info 0x0000000000038249 0x71e ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_info 0x0000000000038967 0x792 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_info 0x00000000000390f9 0xc38 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_info 0x0000000000039d31 0x18c2 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_info 0x000000000003b5f3 0x1d9c ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_info 0x000000000003d38f 0x15b2 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_info 0x000000000003e941 0x19bd ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_info 0x00000000000402fe 0xccb ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_info 0x0000000000040fc9 0xede ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_info 0x0000000000041ea7 0xe77 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_info 0x0000000000042d1e 0x992 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_info 0x00000000000436b0 0xa1b ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_info 0x00000000000440cb 0x6d7 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_info 0x00000000000447a2 0xe12 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_info 0x00000000000455b4 0x778 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_info 0x0000000000045d2c 0xee8 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - -.debug_abbrev 0x0000000000000000 0x9da5 - .debug_abbrev 0x0000000000000000 0xe4 ./Core/Src/freertos.o - .debug_abbrev 0x00000000000000e4 0x4c0 ./Core/Src/main.o - .debug_abbrev 0x00000000000005a4 0x2a8 ./Core/Src/stm32h7xx_hal_msp.o - .debug_abbrev 0x000000000000084c 0x212 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_abbrev 0x0000000000000a5e 0x1d6 ./Core/Src/stm32h7xx_it.o - .debug_abbrev 0x0000000000000c34 0x1b1 ./Core/Src/syscalls.o - .debug_abbrev 0x0000000000000de5 0xa4 ./Core/Src/sysmem.o - .debug_abbrev 0x0000000000000e89 0x14b ./Core/Src/system_stm32h7xx.o - .debug_abbrev 0x0000000000000fd4 0x12 ./Core/Startup/startup_stm32h723vghx.o - .debug_abbrev 0x0000000000000fe6 0x14c ./Drivers/BSP/Components/lan8742/lan8742.o - .debug_abbrev 0x0000000000001132 0x29e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_abbrev 0x00000000000013d0 0x339 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_abbrev 0x0000000000001709 0x248 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_abbrev 0x0000000000001951 0x2d9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_abbrev 0x0000000000001c2a 0x288 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_abbrev 0x0000000000001eb2 0x1fe ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_abbrev 0x00000000000020b0 0x1f8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_abbrev 0x00000000000022a8 0x295 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_abbrev 0x000000000000253d 0x2b1 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_abbrev 0x00000000000027ee 0x269 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_abbrev 0x0000000000002a57 0x26b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_abbrev 0x0000000000002cc2 0x276 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_abbrev 0x0000000000002f38 0x296 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_abbrev 0x00000000000031ce 0x33d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_abbrev 0x000000000000350b 0x2d2 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_abbrev 0x00000000000037dd 0x206 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_abbrev 0x00000000000039e3 0x166 ./FATFS/App/fatfs.o - .debug_abbrev 0x0000000000003b49 0x260 ./FATFS/Target/bsp_driver_sd.o - .debug_abbrev 0x0000000000003da9 0x107 ./FATFS/Target/fatfs_platform.o - .debug_abbrev 0x0000000000003eb0 0x30c ./FATFS/Target/sd_diskio.o - .debug_abbrev 0x00000000000041bc 0x269 ./LWFTPC/lwftpc.o - .debug_abbrev 0x0000000000004425 0x200 ./LWIP/App/lwip.o - .debug_abbrev 0x0000000000004625 0x467 ./LWIP/Target/ethernetif.o - .debug_abbrev 0x0000000000004a8c 0x19f ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_abbrev 0x0000000000004c2b 0x3b7 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_abbrev 0x0000000000004fe2 0xf5 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_abbrev 0x00000000000050d7 0x3b6 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_abbrev 0x000000000000548d 0x36c ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_abbrev 0x00000000000057f9 0x336 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_abbrev 0x0000000000005b2f 0x25c ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .debug_abbrev 0x0000000000005d8b 0x21d ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_abbrev 0x0000000000005fa8 0x30f ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_abbrev 0x00000000000062b7 0x38a ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_abbrev 0x0000000000006641 0x1bb ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_abbrev 0x00000000000067fc 0x345 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_abbrev 0x0000000000006b41 0x13a ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_abbrev 0x0000000000006c7b 0x194 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_abbrev 0x0000000000006e0f 0x8c ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_abbrev 0x0000000000006e9b 0x132 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_abbrev 0x0000000000006fcd 0x20a ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_abbrev 0x00000000000071d7 0x254 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_abbrev 0x000000000000742b 0x317 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_abbrev 0x0000000000007742 0x34a ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_abbrev 0x0000000000007a8c 0x3ed ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_abbrev 0x0000000000007e79 0x333 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_abbrev 0x00000000000081ac 0x309 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_abbrev 0x00000000000084b5 0x2e8 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_abbrev 0x000000000000879d 0x35b ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_abbrev 0x0000000000008af8 0x2b0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_abbrev 0x0000000000008da8 0x27d ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_abbrev 0x0000000000009025 0x270 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_abbrev 0x0000000000009295 0x273 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_abbrev 0x0000000000009508 0x304 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_abbrev 0x000000000000980c 0x271 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_abbrev 0x0000000000009a7d 0x328 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - -.debug_aranges 0x0000000000000000 0x3268 - .debug_aranges - 0x0000000000000000 0x30 ./Core/Src/freertos.o - .debug_aranges - 0x0000000000000030 0xc0 ./Core/Src/main.o - .debug_aranges - 0x00000000000000f0 0x60 ./Core/Src/stm32h7xx_hal_msp.o - .debug_aranges - 0x0000000000000150 0x30 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_aranges - 0x0000000000000180 0x88 ./Core/Src/stm32h7xx_it.o - .debug_aranges - 0x0000000000000208 0xa8 ./Core/Src/syscalls.o - .debug_aranges - 0x00000000000002b0 0x20 ./Core/Src/sysmem.o - .debug_aranges - 0x00000000000002d0 0x28 ./Core/Src/system_stm32h7xx.o - .debug_aranges - 0x00000000000002f8 0x28 ./Core/Startup/startup_stm32h723vghx.o - .debug_aranges - 0x0000000000000320 0x88 ./Drivers/BSP/Components/lan8742/lan8742.o - .debug_aranges - 0x00000000000003a8 0x1c8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_aranges - 0x0000000000000570 0x120 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_aranges - 0x0000000000000690 0xa0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_aranges - 0x0000000000000730 0x1d8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_aranges - 0x0000000000000908 0x338 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_aranges - 0x0000000000000c40 0x58 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_aranges - 0x0000000000000c98 0xc0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_aranges - 0x0000000000000d58 0x148 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_aranges - 0x0000000000000ea0 0x88 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_aranges - 0x0000000000000f28 0xf8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_aranges - 0x0000000000001020 0x170 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_aranges - 0x0000000000001190 0x3e0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_aranges - 0x0000000000001570 0x198 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_aranges - 0x0000000000001708 0x248 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_aranges - 0x0000000000001950 0xa8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_aranges - 0x00000000000019f8 0x1a0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_aranges - 0x0000000000001b98 0x28 ./FATFS/App/fatfs.o - .debug_aranges - 0x0000000000001bc0 0x98 ./FATFS/Target/bsp_driver_sd.o - .debug_aranges - 0x0000000000001c58 0x20 ./FATFS/Target/fatfs_platform.o - .debug_aranges - 0x0000000000001c78 0x60 ./FATFS/Target/sd_diskio.o - .debug_aranges - 0x0000000000001cd8 0x58 ./LWFTPC/lwftpc.o - .debug_aranges - 0x0000000000001d30 0x28 ./LWIP/App/lwip.o - .debug_aranges - 0x0000000000001d58 0xc0 ./LWIP/Target/ethernetif.o - .debug_aranges - 0x0000000000001e18 0x40 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_aranges - 0x0000000000001e58 0x1d8 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_aranges - 0x0000000000002030 0x40 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_aranges - 0x0000000000002070 0x110 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_aranges - 0x0000000000002180 0x1d8 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_aranges - 0x0000000000002358 0xd0 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_aranges - 0x0000000000002428 0x80 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .debug_aranges - 0x00000000000024a8 0x58 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_aranges - 0x0000000000002500 0xf8 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_aranges - 0x00000000000025f8 0xf8 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_aranges - 0x00000000000026f0 0x60 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_aranges - 0x0000000000002750 0xa0 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_aranges - 0x00000000000027f0 0x48 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_aranges - 0x0000000000002838 0x60 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_aranges - 0x0000000000002898 0x20 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_aranges - 0x00000000000028b8 0x18 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_aranges - 0x00000000000028d0 0x60 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_aranges - 0x0000000000002930 0x58 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_aranges - 0x0000000000002988 0xe0 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_aranges - 0x0000000000002a68 0x140 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_aranges - 0x0000000000002ba8 0x1b8 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_aranges - 0x0000000000002d60 0x70 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_aranges - 0x0000000000002dd0 0xd8 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_aranges - 0x0000000000002ea8 0x68 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_aranges - 0x0000000000002f10 0xa0 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_aranges - 0x0000000000002fb0 0x88 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_aranges - 0x0000000000003038 0x38 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_aranges - 0x0000000000003070 0x48 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_aranges - 0x00000000000030b8 0x48 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_aranges - 0x0000000000003100 0x70 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_aranges - 0x0000000000003170 0x28 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_aranges - 0x0000000000003198 0xd0 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - -.debug_rnglists - 0x0000000000000000 0x27cc - .debug_rnglists - 0x0000000000000000 0x1f ./Core/Src/freertos.o - .debug_rnglists - 0x000000000000001f 0x98 ./Core/Src/main.o - .debug_rnglists - 0x00000000000000b7 0x48 ./Core/Src/stm32h7xx_hal_msp.o - .debug_rnglists - 0x00000000000000ff 0x20 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_rnglists - 0x000000000000011f 0x61 ./Core/Src/stm32h7xx_it.o - .debug_rnglists - 0x0000000000000180 0x79 ./Core/Src/syscalls.o - .debug_rnglists - 0x00000000000001f9 0x13 ./Core/Src/sysmem.o - .debug_rnglists - 0x000000000000020c 0x1b ./Core/Src/system_stm32h7xx.o - .debug_rnglists - 0x0000000000000227 0x19 ./Core/Startup/startup_stm32h723vghx.o - .debug_rnglists - 0x0000000000000240 0x64 ./Drivers/BSP/Components/lan8742/lan8742.o - .debug_rnglists - 0x00000000000002a4 0x155 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_rnglists - 0x00000000000003f9 0xd4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_rnglists - 0x00000000000004cd 0x82 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_rnglists - 0x000000000000054f 0x176 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_rnglists - 0x00000000000006c5 0x28b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_rnglists - 0x0000000000000950 0x3f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_rnglists - 0x000000000000098f 0x9c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_rnglists - 0x0000000000000a2b 0xf4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_rnglists - 0x0000000000000b1f 0x68 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_rnglists - 0x0000000000000b87 0xc0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_rnglists - 0x0000000000000c47 0x128 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_rnglists - 0x0000000000000d6f 0x328 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_rnglists - 0x0000000000001097 0x14d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_rnglists - 0x00000000000011e4 0x1fa ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_rnglists - 0x00000000000013de 0x7f ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_rnglists - 0x000000000000145d 0x138 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_rnglists - 0x0000000000001595 0x19 ./FATFS/App/fatfs.o - .debug_rnglists - 0x00000000000015ae 0x6d ./FATFS/Target/bsp_driver_sd.o - .debug_rnglists - 0x000000000000161b 0x13 ./FATFS/Target/fatfs_platform.o - .debug_rnglists - 0x000000000000162e 0x47 ./FATFS/Target/sd_diskio.o - .debug_rnglists - 0x0000000000001675 0x42 ./LWFTPC/lwftpc.o - .debug_rnglists - 0x00000000000016b7 0x1a ./LWIP/App/lwip.o - .debug_rnglists - 0x00000000000016d1 0x91 ./LWIP/Target/ethernetif.o - .debug_rnglists - 0x0000000000001762 0x2c ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_rnglists - 0x000000000000178e 0x16b ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_rnglists - 0x00000000000018f9 0x2b ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_rnglists - 0x0000000000001924 0xd3 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_rnglists - 0x00000000000019f7 0x178 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_rnglists - 0x0000000000001b6f 0x9f ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_rnglists - 0x0000000000001c0e 0x5d ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .debug_rnglists - 0x0000000000001c6b 0x42 ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_rnglists - 0x0000000000001cad 0xbc ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_rnglists - 0x0000000000001d69 0xdb ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_rnglists - 0x0000000000001e44 0x46 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_rnglists - 0x0000000000001e8a 0x77 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_rnglists - 0x0000000000001f01 0x32 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_rnglists - 0x0000000000001f33 0x47 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_rnglists - 0x0000000000001f7a 0x13 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_rnglists - 0x0000000000001f8d 0x48 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_rnglists - 0x0000000000001fd5 0x3d ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_rnglists - 0x0000000000002012 0xb7 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_rnglists - 0x00000000000020c9 0x107 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_rnglists - 0x00000000000021d0 0x157 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_rnglists - 0x0000000000002327 0xbd ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_rnglists - 0x00000000000023e4 0xf9 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_rnglists - 0x00000000000024dd 0x56 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_rnglists - 0x0000000000002533 0x7b ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_rnglists - 0x00000000000025ae 0x6c ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_rnglists - 0x000000000000261a 0x36 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_rnglists - 0x0000000000002650 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_rnglists - 0x0000000000002684 0x34 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_rnglists - 0x00000000000026b8 0x62 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_rnglists - 0x000000000000271a 0x1b ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_rnglists - 0x0000000000002735 0x97 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - -.debug_macro 0x0000000000000000 0x4a444 - .debug_macro 0x0000000000000000 0x36a ./Core/Src/freertos.o - .debug_macro 0x000000000000036a 0xac6 ./Core/Src/freertos.o - .debug_macro 0x0000000000000e30 0x174 ./Core/Src/freertos.o - .debug_macro 0x0000000000000fa4 0x22 ./Core/Src/freertos.o - .debug_macro 0x0000000000000fc6 0x8e ./Core/Src/freertos.o - .debug_macro 0x0000000000001054 0x51 ./Core/Src/freertos.o - .debug_macro 0x00000000000010a5 0x103 ./Core/Src/freertos.o - .debug_macro 0x00000000000011a8 0x6a ./Core/Src/freertos.o - .debug_macro 0x0000000000001212 0x1df ./Core/Src/freertos.o - .debug_macro 0x00000000000013f1 0x111 ./Core/Src/freertos.o - .debug_macro 0x0000000000001502 0x15a ./Core/Src/freertos.o - .debug_macro 0x000000000000165c 0xde ./Core/Src/freertos.o - .debug_macro 0x000000000000173a 0x1c ./Core/Src/freertos.o - .debug_macro 0x0000000000001756 0x26 ./Core/Src/freertos.o - .debug_macro 0x000000000000177c 0x4ef ./Core/Src/freertos.o - .debug_macro 0x0000000000001c6b 0xb5 ./Core/Src/freertos.o - .debug_macro 0x0000000000001d20 0xaa ./Core/Src/freertos.o - .debug_macro 0x0000000000001dca 0x24a ./Core/Src/freertos.o - .debug_macro 0x0000000000002014 0x2e ./Core/Src/freertos.o - .debug_macro 0x0000000000002042 0x3b ./Core/Src/freertos.o - .debug_macro 0x000000000000207d 0x1c ./Core/Src/freertos.o - .debug_macro 0x0000000000002099 0x22 ./Core/Src/freertos.o - .debug_macro 0x00000000000020bb 0xfb ./Core/Src/freertos.o - .debug_macro 0x00000000000021b6 0x1305 ./Core/Src/freertos.o - .debug_macro 0x00000000000034bb 0x11f ./Core/Src/freertos.o - .debug_macro 0x00000000000035da 0x27 ./Core/Src/freertos.o - .debug_macro 0x0000000000003601 0x211d1 ./Core/Src/freertos.o - .debug_macro 0x00000000000247d2 0x6d ./Core/Src/freertos.o - .debug_macro 0x000000000002483f 0x3d48 ./Core/Src/freertos.o - .debug_macro 0x0000000000028587 0x61 ./Core/Src/freertos.o - .debug_macro 0x00000000000285e8 0x29 ./Core/Src/freertos.o - .debug_macro 0x0000000000028611 0x43 ./Core/Src/freertos.o - .debug_macro 0x0000000000028654 0x34 ./Core/Src/freertos.o - .debug_macro 0x0000000000028688 0x16 ./Core/Src/freertos.o - .debug_macro 0x000000000002869e 0x43 ./Core/Src/freertos.o - .debug_macro 0x00000000000286e1 0x34 ./Core/Src/freertos.o - .debug_macro 0x0000000000028715 0x10 ./Core/Src/freertos.o - .debug_macro 0x0000000000028725 0x58 ./Core/Src/freertos.o - .debug_macro 0x000000000002877d 0x8e ./Core/Src/freertos.o - .debug_macro 0x000000000002880b 0x1c ./Core/Src/freertos.o - .debug_macro 0x0000000000028827 0x177 ./Core/Src/freertos.o - .debug_macro 0x000000000002899e 0x369 ./Core/Src/freertos.o - .debug_macro 0x0000000000028d07 0x19b ./Core/Src/freertos.o - .debug_macro 0x0000000000028ea2 0x5d ./Core/Src/freertos.o - .debug_macro 0x0000000000028eff 0x2462 ./Core/Src/freertos.o - .debug_macro 0x000000000002b361 0x1079 ./Core/Src/freertos.o - .debug_macro 0x000000000002c3da 0x154 ./Core/Src/freertos.o - .debug_macro 0x000000000002c52e 0x114 ./Core/Src/freertos.o - .debug_macro 0x000000000002c642 0x3f8 ./Core/Src/freertos.o - .debug_macro 0x000000000002ca3a 0xac ./Core/Src/freertos.o - .debug_macro 0x000000000002cae6 0x788 ./Core/Src/freertos.o - .debug_macro 0x000000000002d26e 0x228 ./Core/Src/freertos.o - .debug_macro 0x000000000002d496 0x66 ./Core/Src/freertos.o - .debug_macro 0x000000000002d4fc 0x3a6 ./Core/Src/freertos.o - .debug_macro 0x000000000002d8a2 0xa80 ./Core/Src/freertos.o - .debug_macro 0x000000000002e322 0x129 ./Core/Src/freertos.o - .debug_macro 0x000000000002e44b 0x3f9 ./Core/Src/freertos.o - .debug_macro 0x000000000002e844 0x275 ./Core/Src/freertos.o - .debug_macro 0x000000000002eab9 0xe42 ./Core/Src/freertos.o - .debug_macro 0x000000000002f8fb 0x3ca ./Core/Src/freertos.o - .debug_macro 0x000000000002fcc5 0x45c ./Core/Src/freertos.o - .debug_macro 0x0000000000030121 0x3c ./Core/Src/freertos.o - .debug_macro 0x000000000003015d 0x4a ./Core/Src/freertos.o - .debug_macro 0x00000000000301a7 0x22c ./Core/Src/freertos.o - .debug_macro 0x00000000000303d3 0x67 ./Core/Src/freertos.o - .debug_macro 0x000000000003043a 0xa5 ./Core/Src/freertos.o - .debug_macro 0x00000000000304df 0x1c4 ./Core/Src/freertos.o - .debug_macro 0x00000000000306a3 0x22a ./Core/Src/freertos.o - .debug_macro 0x00000000000308cd 0x35 ./Core/Src/freertos.o - .debug_macro 0x0000000000030902 0x830 ./Core/Src/freertos.o - .debug_macro 0x0000000000031132 0x16 ./Core/Src/freertos.o - .debug_macro 0x0000000000031148 0x1ce ./Core/Src/freertos.o - .debug_macro 0x0000000000031316 0xb1d ./Core/Src/freertos.o - .debug_macro 0x0000000000031e33 0x29f ./Core/Src/freertos.o - .debug_macro 0x00000000000320d2 0x693 ./Core/Src/freertos.o - .debug_macro 0x0000000000032765 0xa6 ./Core/Src/freertos.o - .debug_macro 0x000000000003280b 0x5e6 ./Core/Src/freertos.o - .debug_macro 0x0000000000032df1 0x58 ./Core/Src/freertos.o - .debug_macro 0x0000000000032e49 0x7fa ./Core/Src/main.o - .debug_macro 0x0000000000033643 0x111 ./Core/Src/main.o - .debug_macro 0x0000000000033754 0x91 ./Core/Src/main.o - .debug_macro 0x00000000000337e5 0x8d ./Core/Src/main.o - .debug_macro 0x0000000000033872 0x7e ./Core/Src/main.o - .debug_macro 0x00000000000338f0 0x19 ./Core/Src/main.o - .debug_macro 0x0000000000033909 0xf2 ./Core/Src/main.o - .debug_macro 0x00000000000339fb 0x1c ./Core/Src/main.o - .debug_macro 0x0000000000033a17 0x40 ./Core/Src/main.o - .debug_macro 0x0000000000033a57 0xfa ./Core/Src/main.o - .debug_macro 0x0000000000033b51 0xe2 ./Core/Src/main.o - .debug_macro 0x0000000000033c33 0x8e ./Core/Src/main.o - .debug_macro 0x0000000000033cc1 0xee ./Core/Src/main.o - .debug_macro 0x0000000000033daf 0x16 ./Core/Src/main.o - .debug_macro 0x0000000000033dc5 0x10 ./Core/Src/main.o - .debug_macro 0x0000000000033dd5 0x16 ./Core/Src/main.o - .debug_macro 0x0000000000033deb 0x35 ./Core/Src/main.o - .debug_macro 0x0000000000033e20 0x16 ./Core/Src/main.o - .debug_macro 0x0000000000033e36 0x29 ./Core/Src/main.o - .debug_macro 0x0000000000033e5f 0x1c ./Core/Src/main.o - .debug_macro 0x0000000000033e7b 0x10 ./Core/Src/main.o - .debug_macro 0x0000000000033e8b 0x1c ./Core/Src/main.o - .debug_macro 0x0000000000033ea7 0x16 ./Core/Src/main.o - .debug_macro 0x0000000000033ebd 0x147 ./Core/Src/main.o - .debug_macro 0x0000000000034004 0x10 ./Core/Src/main.o - .debug_macro 0x0000000000034014 0x22 ./Core/Src/main.o - .debug_macro 0x0000000000034036 0x10 ./Core/Src/main.o - .debug_macro 0x0000000000034046 0x1c ./Core/Src/main.o - .debug_macro 0x0000000000034062 0x52 ./Core/Src/main.o - .debug_macro 0x00000000000340b4 0x10 ./Core/Src/main.o - .debug_macro 0x00000000000340c4 0x52 ./Core/Src/main.o - .debug_macro 0x0000000000034116 0xc1 ./Core/Src/main.o - .debug_macro 0x00000000000341d7 0x1c ./Core/Src/main.o - .debug_macro 0x00000000000341f3 0x3d ./Core/Src/main.o - .debug_macro 0x0000000000034230 0xc8 ./Core/Src/main.o - .debug_macro 0x00000000000342f8 0x16 ./Core/Src/main.o - .debug_macro 0x000000000003430e 0x10 ./Core/Src/main.o - .debug_macro 0x000000000003431e 0x10 ./Core/Src/main.o - .debug_macro 0x000000000003432e 0x35 ./Core/Src/main.o - .debug_macro 0x0000000000034363 0x28 ./Core/Src/main.o - .debug_macro 0x000000000003438b 0x10 ./Core/Src/main.o - .debug_macro 0x000000000003439b 0x17 ./Core/Src/main.o - .debug_macro 0x00000000000343b2 0x10 ./Core/Src/main.o - .debug_macro 0x00000000000343c2 0x460 ./Core/Src/main.o - .debug_macro 0x0000000000034822 0x43 ./Core/Src/main.o - .debug_macro 0x0000000000034865 0x7c ./Core/Src/main.o - .debug_macro 0x00000000000348e1 0x17 ./Core/Src/main.o - .debug_macro 0x00000000000348f8 0x118 ./Core/Src/main.o - .debug_macro 0x0000000000034a10 0x19 ./Core/Src/main.o - .debug_macro 0x0000000000034a29 0x11f ./Core/Src/main.o - .debug_macro 0x0000000000034b48 0x82 ./Core/Src/main.o - .debug_macro 0x0000000000034bca 0x66 ./Core/Src/main.o - .debug_macro 0x0000000000034c30 0x739 ./Core/Src/main.o - .debug_macro 0x0000000000035369 0x10 ./Core/Src/main.o - .debug_macro 0x0000000000035379 0x10 ./Core/Src/main.o - .debug_macro 0x0000000000035389 0x3f ./Core/Src/main.o - .debug_macro 0x00000000000353c8 0x25 ./Core/Src/main.o - .debug_macro 0x00000000000353ed 0x15b ./Core/Src/main.o - .debug_macro 0x0000000000035548 0x22 ./Core/Src/main.o - .debug_macro 0x000000000003556a 0xad ./Core/Src/main.o - .debug_macro 0x0000000000035617 0x6a ./Core/Src/main.o - .debug_macro 0x0000000000035681 0x1bd ./Core/Src/main.o - .debug_macro 0x000000000003583e 0x10 ./Core/Src/main.o - .debug_macro 0x000000000003584e 0x169 ./Core/Src/main.o - .debug_macro 0x00000000000359b7 0x12f ./Core/Src/main.o - .debug_macro 0x0000000000035ae6 0xa0 ./Core/Src/main.o - .debug_macro 0x0000000000035b86 0x28 ./Core/Src/main.o - .debug_macro 0x0000000000035bae 0x46 ./Core/Src/main.o - .debug_macro 0x0000000000035bf4 0x22 ./Core/Src/main.o - .debug_macro 0x0000000000035c16 0x16 ./Core/Src/main.o - .debug_macro 0x0000000000035c2c 0x10 ./Core/Src/main.o - .debug_macro 0x0000000000035c3c 0x16 ./Core/Src/main.o - .debug_macro 0x0000000000035c52 0x10 ./Core/Src/main.o - .debug_macro 0x0000000000035c62 0x73 ./Core/Src/main.o - .debug_macro 0x0000000000035cd5 0x10 ./Core/Src/main.o - .debug_macro 0x0000000000035ce5 0x1c ./Core/Src/main.o - .debug_macro 0x0000000000035d01 0x16 ./Core/Src/main.o - .debug_macro 0x0000000000035d17 0x20 ./Core/Src/main.o - .debug_macro 0x0000000000035d37 0x40 ./Core/Src/main.o - .debug_macro 0x0000000000035d77 0xda ./Core/Src/main.o - .debug_macro 0x0000000000035e51 0x302 ./Core/Src/stm32h7xx_hal_msp.o - .debug_macro 0x0000000000036153 0x2f3 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_macro 0x0000000000036446 0x30c ./Core/Src/stm32h7xx_it.o - .debug_macro 0x0000000000036752 0x542 ./Core/Src/syscalls.o - .debug_macro 0x0000000000036c94 0x5b ./Core/Src/syscalls.o - .debug_macro 0x0000000000036cef 0x94 ./Core/Src/syscalls.o - .debug_macro 0x0000000000036d83 0x57 ./Core/Src/syscalls.o - .debug_macro 0x0000000000036dda 0x10 ./Core/Src/syscalls.o - .debug_macro 0x0000000000036dea 0xcf ./Core/Src/syscalls.o - .debug_macro 0x0000000000036eb9 0x12c ./Core/Src/syscalls.o - .debug_macro 0x0000000000036fe5 0xe8 ./Core/Src/syscalls.o - .debug_macro 0x00000000000370cd 0x10 ./Core/Src/syscalls.o - .debug_macro 0x00000000000370dd 0xce ./Core/Src/syscalls.o - .debug_macro 0x00000000000371ab 0x31a ./Core/Src/syscalls.o - .debug_macro 0x00000000000374c5 0x190 ./Core/Src/syscalls.o - .debug_macro 0x0000000000037655 0x16 ./Core/Src/syscalls.o - .debug_macro 0x000000000003766b 0x516 ./Core/Src/sysmem.o - .debug_macro 0x0000000000037b81 0x2f3 ./Core/Src/system_stm32h7xx.o - .debug_macro 0x0000000000037e74 0x84 ./Drivers/BSP/Components/lan8742/lan8742.o - .debug_macro 0x0000000000037ef8 0x45e ./Drivers/BSP/Components/lan8742/lan8742.o - .debug_macro 0x0000000000038356 0x31d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_macro 0x0000000000038673 0x2f3 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_macro 0x0000000000038966 0x347 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_macro 0x0000000000038cad 0x387 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_macro 0x0000000000039034 0x3b8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_macro 0x00000000000393ec 0x2fa ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_macro 0x00000000000396e6 0x302 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_macro 0x00000000000399e8 0x32c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_macro 0x0000000000039d14 0x317 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_macro 0x000000000003a02b 0x311 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_macro 0x000000000003a33c 0x310 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_macro 0x000000000003a64c 0x2f4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_macro 0x000000000003a940 0x2f9 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_macro 0x000000000003ac39 0x31e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_macro 0x000000000003af57 0x2ff ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_macro 0x000000000003b256 0x2f4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_macro 0x000000000003b54a 0x420 ./FATFS/App/fatfs.o - .debug_macro 0x000000000003b96a 0x30b ./FATFS/Target/bsp_driver_sd.o - .debug_macro 0x000000000003bc75 0x2fc ./FATFS/Target/fatfs_platform.o - .debug_macro 0x000000000003bf71 0x499 ./FATFS/Target/sd_diskio.o - .debug_macro 0x000000000003c40a 0x16 ./FATFS/Target/sd_diskio.o - .debug_macro 0x000000000003c420 0x7c ./FATFS/Target/sd_diskio.o - .debug_macro 0x000000000003c49c 0x66e ./LWFTPC/lwftpc.o - .debug_macro 0x000000000003cb0a 0x16 ./LWFTPC/lwftpc.o - .debug_macro 0x000000000003cb20 0x97 ./LWFTPC/lwftpc.o - .debug_macro 0x000000000003cbb7 0xfd ./LWFTPC/lwftpc.o - .debug_macro 0x000000000003ccb4 0x16 ./LWFTPC/lwftpc.o - .debug_macro 0x000000000003ccca 0x41 ./LWFTPC/lwftpc.o - .debug_macro 0x000000000003cd0b 0x1c3 ./LWFTPC/lwftpc.o - .debug_macro 0x000000000003cece 0x3a ./LWFTPC/lwftpc.o - .debug_macro 0x000000000003cf08 0x733 ./LWIP/App/lwip.o - .debug_macro 0x000000000003d63b 0x5e ./LWIP/App/lwip.o - .debug_macro 0x000000000003d699 0x773 ./LWIP/Target/ethernetif.o - .debug_macro 0x000000000003de0c 0xb3 ./LWIP/Target/ethernetif.o - .debug_macro 0x000000000003debf 0x464 ./LWIP/Target/ethernetif.o - .debug_macro 0x000000000003e323 0x40d ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x000000000003e730 0x1fe ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x000000000003e92e 0x10 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x000000000003e93e 0xe9 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_macro 0x000000000003ea27 0x187 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_macro 0x000000000003ebae 0x216 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x000000000003edc4 0x87 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_macro 0x000000000003ee4b 0x279 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x000000000003f0c4 0x10 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_macro 0x000000000003f0d4 0x1dc ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x000000000003f2b0 0x97 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_macro 0x000000000003f347 0x196 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .debug_macro 0x000000000003f4dd 0x1ae ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_macro 0x000000000003f68b 0x803 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x000000000003fe8e 0x13b ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x000000000003ffc9 0x2e ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x000000000003fff7 0xea ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x00000000000400e1 0x10 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x00000000000400f1 0x4d ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x000000000004013e 0x16 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000040154 0x16 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x000000000004016a 0x4c ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x00000000000401b6 0x23 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x00000000000401d9 0x2e ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000040207 0x70 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000040277 0xf9 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x0000000000040370 0x7c ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x00000000000403ec 0x1d7 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_macro 0x00000000000405c3 0x7e1 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_macro 0x0000000000040da4 0x5df ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_macro 0x0000000000041383 0x754 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_macro 0x0000000000041ad7 0x536 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_macro 0x000000000004200d 0x590 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x000000000004259d 0x16 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_macro 0x00000000000425b3 0x836 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000042de9 0x35 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_macro 0x0000000000042e1e 0x5f2 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_macro 0x0000000000043410 0x6f1 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_macro 0x0000000000043b01 0x88f ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x0000000000044390 0x122 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x00000000000444b2 0x16 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x00000000000444c8 0xe0 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_macro 0x00000000000445a8 0x7cf ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000044d77 0xc0 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_macro 0x0000000000044e37 0x76d ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_macro 0x00000000000455a4 0x68d ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_macro 0x0000000000045c31 0x67a ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x00000000000462ab 0x1c ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_macro 0x00000000000462c7 0x688 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_macro 0x000000000004694f 0x7e1 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_macro 0x0000000000047130 0x68b ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_macro 0x00000000000477bb 0x688 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_macro 0x0000000000047e43 0x646 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_macro 0x0000000000048489 0x6c7 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_macro 0x0000000000048b50 0x5b2 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_macro 0x0000000000049102 0x66d ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x000000000004976f 0x10 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_macro 0x000000000004977f 0x66b ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_macro 0x0000000000049dea 0x649 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_macro 0x000000000004a433 0x11 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - -.debug_line 0x0000000000000000 0x516b3 - .debug_line 0x0000000000000000 0xac3 ./Core/Src/freertos.o - .debug_line 0x0000000000000ac3 0x17f3 ./Core/Src/main.o - .debug_line 0x00000000000022b6 0xc77 ./Core/Src/stm32h7xx_hal_msp.o - .debug_line 0x0000000000002f2d 0xa08 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_line 0x0000000000003935 0xad7 ./Core/Src/stm32h7xx_it.o - .debug_line 0x000000000000440c 0xe8a ./Core/Src/syscalls.o - .debug_line 0x0000000000005296 0xc82 ./Core/Src/sysmem.o - .debug_line 0x0000000000005f18 0xb45 ./Core/Src/system_stm32h7xx.o - .debug_line 0x0000000000006a5d 0x7a ./Core/Startup/startup_stm32h723vghx.o - .debug_line 0x0000000000006ad7 0x8a0 ./Drivers/BSP/Components/lan8742/lan8742.o - .debug_line 0x0000000000007377 0xfce ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_line 0x0000000000008345 0xf46 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_line 0x000000000000928b 0x2891 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_line 0x000000000000bb1c 0x1c84 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_line 0x000000000000d7a0 0x28ad ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_line 0x000000000001004d 0xdef ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_line 0x0000000000010e3c 0x15b7 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_line 0x00000000000123f3 0xfb5 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_line 0x00000000000133a8 0x1467 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_line 0x000000000001480f 0x1d20 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_line 0x000000000001652f 0x21e4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_line 0x0000000000018713 0x411e ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_line 0x000000000001c831 0x205d ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_line 0x000000000001e88e 0x3ff4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_line 0x0000000000022882 0xfde ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_line 0x0000000000023860 0x1277 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_line 0x0000000000024ad7 0xbcf ./FATFS/App/fatfs.o - .debug_line 0x00000000000256a6 0xb6d ./FATFS/Target/bsp_driver_sd.o - .debug_line 0x0000000000026213 0x9a8 ./FATFS/Target/fatfs_platform.o - .debug_line 0x0000000000026bbb 0xded ./FATFS/Target/sd_diskio.o - .debug_line 0x00000000000279a8 0x110e ./LWFTPC/lwftpc.o - .debug_line 0x0000000000028ab6 0xff1 ./LWIP/App/lwip.o - .debug_line 0x0000000000029aa7 0x1514 ./LWIP/Target/ethernetif.o - .debug_line 0x000000000002afbb 0xc5e ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_line 0x000000000002bc19 0x1327 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_line 0x000000000002cf40 0x796 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_line 0x000000000002d6d6 0x155e ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_line 0x000000000002ec34 0x1b20 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_line 0x0000000000030754 0xd37 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_line 0x000000000003148b 0x830 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .debug_line 0x0000000000031cbb 0x9bd ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_line 0x0000000000032678 0x1782 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_line 0x0000000000033dfa 0x1fe5 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_line 0x0000000000035ddf 0xf51 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_line 0x0000000000036d30 0x129f ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_line 0x0000000000037fcf 0xe3e ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_line 0x0000000000038e0d 0xf98 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_line 0x0000000000039da5 0x10b8 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_line 0x000000000003ae5d 0xd84 ./Middlewares/Third_Party/LwIP/src/core/ip.o - .debug_line 0x000000000003bbe1 0x1366 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_line 0x000000000003cf47 0x12cb ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_line 0x000000000003e212 0x172c ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_line 0x000000000003f93e 0x1aad ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_line 0x00000000000413eb 0x2073 ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_line 0x000000000004345e 0x2167 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_line 0x00000000000455c5 0x1d61 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_line 0x0000000000047326 0x12ff ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_line 0x0000000000048625 0x14a5 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_line 0x0000000000049aca 0x1506 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_line 0x000000000004afd0 0xf8a ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_line 0x000000000004bf5a 0x117d ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_line 0x000000000004d0d7 0x104b ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_line 0x000000000004e122 0x1482 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_line 0x000000000004f5a4 0xf6d ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_line 0x0000000000050511 0x11a2 ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - -.debug_str 0x0000000000000000 0x183e93 - .debug_str 0x0000000000000000 0x15ae8d ./Core/Src/freertos.o - 0x15b333 (size before relaxing) - .debug_str 0x000000000015ae8d 0xf9c2 ./Core/Src/main.o - 0x16aff6 (size before relaxing) - .debug_str 0x000000000016a84f 0x43d ./Core/Src/stm32h7xx_hal_msp.o - 0x1591c4 (size before relaxing) - .debug_str 0x000000000016ac8c 0xf5 ./Core/Src/stm32h7xx_hal_timebase_tim.o - 0x15839e (size before relaxing) - .debug_str 0x000000000016ad81 0xa12 ./Core/Src/stm32h7xx_it.o - 0x158d95 (size before relaxing) - .debug_str 0x000000000016b793 0xef4 ./Core/Src/syscalls.o - 0x15e0a1 (size before relaxing) - .debug_str 0x000000000016c687 0x6b ./Core/Src/sysmem.o - 0x15d6b3 (size before relaxing) - .debug_str 0x000000000016c6f2 0x1a1 ./Core/Src/system_stm32h7xx.o - 0x157677 (size before relaxing) - .debug_str 0x000000000016c893 0x34 ./Core/Startup/startup_stm32h723vghx.o - 0x5a (size before relaxing) - .debug_str 0x000000000016c8c7 0x1efe ./Drivers/BSP/Components/lan8742/lan8742.o - 0x5c88 (size before relaxing) - .debug_str 0x000000000016e7c5 0x946 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - 0x1586fa (size before relaxing) - .debug_str 0x000000000016f10b 0x25c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - 0x157fdc (size before relaxing) - .debug_str 0x000000000016f367 0x881 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - 0x157e25 (size before relaxing) - .debug_str 0x000000000016fbe8 0x1070 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - 0x158f3f (size before relaxing) - .debug_str 0x0000000000170c58 0x1b99 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - 0x1593f0 (size before relaxing) - .debug_str 0x00000000001727f1 0xec ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - 0x1576bb (size before relaxing) - .debug_str 0x00000000001728dd 0x476 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - 0x157a36 (size before relaxing) - .debug_str 0x0000000000172d53 0x5da ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - 0x157ac3 (size before relaxing) - .debug_str 0x000000000017332d 0x1e4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - 0x157a3e (size before relaxing) - .debug_str 0x0000000000173511 0x64b ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - 0x157f56 (size before relaxing) - .debug_str 0x0000000000173b5c 0x9f0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - 0x158098 (size before relaxing) - .debug_str 0x000000000017454c 0xdc0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - 0x15882c (size before relaxing) - .debug_str 0x000000000017530c 0x5ff ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - 0x1581e9 (size before relaxing) - .debug_str 0x000000000017590b 0x9ef ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - 0x1585de (size before relaxing) - .debug_str 0x00000000001762fa 0x25a ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - 0x157b9e (size before relaxing) - .debug_str 0x0000000000176554 0x269 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - 0x157852 (size before relaxing) - .debug_str 0x00000000001767bd 0x1f0 ./FATFS/App/fatfs.o - 0x15dcea (size before relaxing) - .debug_str 0x00000000001769ad 0x16b ./FATFS/Target/bsp_driver_sd.o - 0x1578b2 (size before relaxing) - .debug_str 0x0000000000176b18 0x21 ./FATFS/Target/fatfs_platform.o - 0x1572af (size before relaxing) - .debug_str 0x0000000000176b39 0x28d ./FATFS/Target/sd_diskio.o - 0x15e753 (size before relaxing) - .debug_str 0x0000000000176dc6 0x208 ./LWFTPC/lwftpc.o - 0x166649 (size before relaxing) - .debug_str 0x0000000000176fce 0x472 ./LWIP/App/lwip.o - 0x16797a (size before relaxing) - .debug_str 0x0000000000177440 0x4fd ./LWIP/Target/ethernetif.o - 0x16b5e9 (size before relaxing) - .debug_str 0x000000000017793d 0xb5 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - 0x15dbd2 (size before relaxing) - .debug_str 0x00000000001779f2 0x869 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0xe94e (size before relaxing) - .debug_str 0x000000000017825b 0x12d ./Middlewares/Third_Party/FreeRTOS/Source/list.o - 0xab32 (size before relaxing) - .debug_str 0x0000000000178388 0x835 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0xc516 (size before relaxing) - .debug_str 0x0000000000178bbd 0x1050 ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0xd03e (size before relaxing) - .debug_str 0x0000000000179c0d 0x4d9 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - 0xca8c (size before relaxing) - .debug_str 0x000000000017a0e6 0x783 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - 0x8777 (size before relaxing) - .debug_str 0x000000000017a869 0x31d ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - 0xb474 (size before relaxing) - .debug_str 0x000000000017ab86 0x3397 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - 0x16b006 (size before relaxing) - .debug_str 0x000000000017df1d 0x54b ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - 0x169c69 (size before relaxing) - .debug_str 0x000000000017e468 0xa1 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - 0x1600aa (size before relaxing) - .debug_str 0x000000000017e509 0x3db ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - 0x168744 (size before relaxing) - .debug_str 0x000000000017e8e4 0xb6 ./Middlewares/Third_Party/LwIP/src/core/def.o - 0x15d4cf (size before relaxing) - .debug_str 0x000000000017e99a 0x207 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - 0x15f404 (size before relaxing) - .debug_str 0x000000000017eba1 0x1978 ./Middlewares/Third_Party/LwIP/src/core/init.o - 0x16c27d (size before relaxing) - .debug_str 0x0000000000180519 0xd6 ./Middlewares/Third_Party/LwIP/src/core/ip.o - 0x161264 (size before relaxing) - .debug_str 0x00000000001805ef 0x404 ./Middlewares/Third_Party/LwIP/src/core/mem.o - 0x164a1b (size before relaxing) - .debug_str 0x00000000001809f3 0xa19 ./Middlewares/Third_Party/LwIP/src/core/memp.o - 0x16ce01 (size before relaxing) - .debug_str 0x000000000018140c 0x783 ./Middlewares/Third_Party/LwIP/src/core/netif.o - 0x16a302 (size before relaxing) - .debug_str 0x0000000000181b8f 0x555 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x169fff (size before relaxing) - .debug_str 0x00000000001820e4 0x60a ./Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x163af3 (size before relaxing) - .debug_str 0x00000000001826ee 0x2a6 ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - 0x16392e (size before relaxing) - .debug_str 0x0000000000182994 0x355 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - 0x16395d (size before relaxing) - .debug_str 0x0000000000182ce9 0x23e ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - 0x16a026 (size before relaxing) - .debug_str 0x0000000000182f27 0x245 ./Middlewares/Third_Party/LwIP/src/core/udp.o - 0x162140 (size before relaxing) - .debug_str 0x000000000018316c 0x57a ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - 0x161943 (size before relaxing) - .debug_str 0x00000000001836e6 0x103 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - 0x16178b (size before relaxing) - .debug_str 0x00000000001837e9 0xec ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - 0x16361c (size before relaxing) - .debug_str 0x00000000001838d5 0xb1 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - 0x1605ab (size before relaxing) - .debug_str 0x0000000000183986 0x3ed ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - 0x161b34 (size before relaxing) - .debug_str 0x0000000000183d73 0x73 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - 0x161d8d (size before relaxing) - .debug_str 0x0000000000183de6 0xad ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x164cfe (size before relaxing) - -.debug_frame 0x0000000000000000 0xde4c - .debug_frame 0x0000000000000000 0x88 ./Core/Src/freertos.o - .debug_frame 0x0000000000000088 0x2c4 ./Core/Src/main.o - .debug_frame 0x000000000000034c 0x168 ./Core/Src/stm32h7xx_hal_msp.o - .debug_frame 0x00000000000004b4 0x74 ./Core/Src/stm32h7xx_hal_timebase_tim.o - .debug_frame 0x0000000000000528 0x188 ./Core/Src/stm32h7xx_it.o - .debug_frame 0x00000000000006b0 0x2c4 ./Core/Src/syscalls.o - .debug_frame 0x0000000000000974 0x38 ./Core/Src/sysmem.o - .debug_frame 0x00000000000009ac 0x60 ./Core/Src/system_stm32h7xx.o - .debug_frame 0x0000000000000a0c 0x20c ./Drivers/BSP/Components/lan8742/lan8742.o - .debug_frame 0x0000000000000c18 0x760 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o - .debug_frame 0x0000000000001378 0x4b8 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o - .debug_frame 0x0000000000001830 0x2b4 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o - .debug_frame 0x0000000000001ae4 0x898 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o - .debug_frame 0x000000000000237c 0xf9c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o - .debug_frame 0x0000000000003318 0x14c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o - .debug_frame 0x0000000000003464 0x34c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o - .debug_frame 0x00000000000037b0 0x540 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o - .debug_frame 0x0000000000003cf0 0x1fc ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o - .debug_frame 0x0000000000003eec 0x414 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o - .debug_frame 0x0000000000004300 0x670 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o - .debug_frame 0x0000000000004970 0x121c ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o - .debug_frame 0x0000000000005b8c 0x724 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o - .debug_frame 0x00000000000062b0 0xa94 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o - .debug_frame 0x0000000000006d44 0x2c0 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o - .debug_frame 0x0000000000007004 0x740 ./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o - .debug_frame 0x0000000000007744 0x4c ./FATFS/App/fatfs.o - .debug_frame 0x0000000000007790 0x238 ./FATFS/Target/bsp_driver_sd.o - .debug_frame 0x00000000000079c8 0x34 ./FATFS/Target/fatfs_platform.o - .debug_frame 0x00000000000079fc 0x148 ./FATFS/Target/sd_diskio.o - .debug_frame 0x0000000000007b44 0x134 ./LWFTPC/lwftpc.o - .debug_frame 0x0000000000007c78 0x64 ./LWIP/App/lwip.o - .debug_frame 0x0000000000007cdc 0x2ec ./LWIP/Target/ethernetif.o - .debug_frame 0x0000000000007fc8 0xc8 ./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_frame 0x0000000000008090 0x7f8 ./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - .debug_frame 0x0000000000008888 0xd8 ./Middlewares/Third_Party/FreeRTOS/Source/list.o - .debug_frame 0x0000000000008960 0x490 ./Middlewares/Third_Party/FreeRTOS/Source/queue.o - .debug_frame 0x0000000000008df0 0x80c ./Middlewares/Third_Party/FreeRTOS/Source/tasks.o - .debug_frame 0x00000000000095fc 0x368 ./Middlewares/Third_Party/FreeRTOS/Source/timers.o - .debug_frame 0x0000000000009964 0x1a8 ./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o - .debug_frame 0x0000000000009b0c 0x12c ./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - .debug_frame 0x0000000000009c38 0x400 ./Middlewares/Third_Party/LwIP/src/api/api_lib.o - .debug_frame 0x000000000000a038 0x410 ./Middlewares/Third_Party/LwIP/src/api/api_msg.o - .debug_frame 0x000000000000a448 0x154 ./Middlewares/Third_Party/LwIP/src/api/netbuf.o - .debug_frame 0x000000000000a59c 0x270 ./Middlewares/Third_Party/LwIP/src/api/tcpip.o - .debug_frame 0x000000000000a80c 0xf8 ./Middlewares/Third_Party/LwIP/src/core/def.o - .debug_frame 0x000000000000a904 0x158 ./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o - .debug_frame 0x000000000000aa5c 0x34 ./Middlewares/Third_Party/LwIP/src/core/init.o - .debug_frame 0x000000000000aa90 0x160 ./Middlewares/Third_Party/LwIP/src/core/mem.o - .debug_frame 0x000000000000abf0 0x134 ./Middlewares/Third_Party/LwIP/src/core/memp.o - .debug_frame 0x000000000000ad24 0x3a8 ./Middlewares/Third_Party/LwIP/src/core/netif.o - .debug_frame 0x000000000000b0cc 0x554 ./Middlewares/Third_Party/LwIP/src/core/pbuf.o - .debug_frame 0x000000000000b620 0x77c ./Middlewares/Third_Party/LwIP/src/core/tcp.o - .debug_frame 0x000000000000bd9c 0x1bc ./Middlewares/Third_Party/LwIP/src/core/tcp_in.o - .debug_frame 0x000000000000bf58 0x3b4 ./Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .debug_frame 0x000000000000c30c 0x170 ./Middlewares/Third_Party/LwIP/src/core/timeouts.o - .debug_frame 0x000000000000c47c 0x288 ./Middlewares/Third_Party/LwIP/src/core/udp.o - .debug_frame 0x000000000000c704 0x228 ./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - .debug_frame 0x000000000000c92c 0xa8 ./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .debug_frame 0x000000000000c9d4 0xf0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - .debug_frame 0x000000000000cac4 0xf4 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - .debug_frame 0x000000000000cbb8 0x1a0 ./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - .debug_frame 0x000000000000cd58 0x58 ./Middlewares/Third_Party/LwIP/src/netif/ethernet.o - .debug_frame 0x000000000000cdb0 0x34c ./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - .debug_frame 0x000000000000d0fc 0x44 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-rand.o) - .debug_frame 0x000000000000d140 0x64 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strtoul.o) - .debug_frame 0x000000000000d1a4 0x144 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-findfp.o) - .debug_frame 0x000000000000d2e8 0x34 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fwalk.o) - .debug_frame 0x000000000000d31c 0x6c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-printf.o) - .debug_frame 0x000000000000d388 0x30 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-putchar.o) - .debug_frame 0x000000000000d3b8 0x3c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-puts.o) - .debug_frame 0x000000000000d3f4 0x7c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-snprintf.o) - .debug_frame 0x000000000000d470 0x88 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-stdio.o) - .debug_frame 0x000000000000d4f8 0x40 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-wbuf.o) - .debug_frame 0x000000000000d538 0x2c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-wsetup.o) - .debug_frame 0x000000000000d564 0x28 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memcmp.o) - .debug_frame 0x000000000000d58c 0x28 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memmove.o) - .debug_frame 0x000000000000d5b4 0x20 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memset.o) - .debug_frame 0x000000000000d5d4 0x20 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strchr.o) - .debug_frame 0x000000000000d5f4 0x2c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-closer.o) - .debug_frame 0x000000000000d620 0x2c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lseekr.o) - .debug_frame 0x000000000000d64c 0x2c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-readr.o) - .debug_frame 0x000000000000d678 0x2c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-writer.o) - .debug_frame 0x000000000000d6a4 0x2c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-init.o) - .debug_frame 0x000000000000d6d0 0xb0 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-lock.o) - .debug_frame 0x000000000000d780 0x20 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-strcmp.o) - .debug_frame 0x000000000000d7a0 0x28 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-memcpy-stub.o) - .debug_frame 0x000000000000d7c8 0x40 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-assert.o) - .debug_frame 0x000000000000d808 0x38 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-freer.o) - .debug_frame 0x000000000000d840 0x30 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-malloc.o) - .debug_frame 0x000000000000d870 0x50 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-mallocr.o) - .debug_frame 0x000000000000d8c0 0x30 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-mlock.o) - .debug_frame 0x000000000000d8f0 0x90 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-svfprintf.o) - .debug_frame 0x000000000000d980 0xa8 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-vfprintf.o) - .debug_frame 0x000000000000da28 0x60 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-nano-vfprintf_i.o) - .debug_frame 0x000000000000da88 0x5c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fflush.o) - .debug_frame 0x000000000000dae4 0x64 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fprintf.o) - .debug_frame 0x000000000000db48 0x58 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-makebuf.o) - .debug_frame 0x000000000000dba0 0x3c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-putc.o) - .debug_frame 0x000000000000dbdc 0x2c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-fstatr.o) - .debug_frame 0x000000000000dc08 0x2c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-isattyr.o) - .debug_frame 0x000000000000dc34 0x2c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-sbrkr.o) - .debug_frame 0x000000000000dc60 0x28 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-abort.o) - .debug_frame 0x000000000000dc88 0x3c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-reallocr.o) - .debug_frame 0x000000000000dcc4 0xcc C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-signal.o) - .debug_frame 0x000000000000dd90 0x3c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-signalr.o) - .debug_frame 0x000000000000ddcc 0x20 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(libc_a-msizer.o) - .debug_frame 0x000000000000ddec 0x2c C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard\libgcc.a(_aeabi_uldivmod.o) - .debug_frame 0x000000000000de18 0x34 C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+dp/hard\libgcc.a(_udivmoddi4.o) - -.debug_line_str - 0x0000000000000000 0x4e - .debug_line_str - 0x0000000000000000 0x4e ./Core/Startup/startup_stm32h723vghx.o - 0x66 (size before relaxing) diff --git a/Debug/makefile b/Debug/makefile deleted file mode 100644 index cca620f..0000000 --- a/Debug/makefile +++ /dev/null @@ -1,114 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -# Toolchain: GNU Tools for STM32 (11.3.rel1) -################################################################################ - --include ../makefile.init - -RM := rm -rf - -# All of the sources participating in the build are defined here --include sources.mk --include Middlewares/Third_Party/LwIP/system/OS/subdir.mk --include Middlewares/Third_Party/LwIP/src/netif/ppp/subdir.mk --include Middlewares/Third_Party/LwIP/src/netif/subdir.mk --include Middlewares/Third_Party/LwIP/src/core/ipv6/subdir.mk --include Middlewares/Third_Party/LwIP/src/core/ipv4/subdir.mk --include Middlewares/Third_Party/LwIP/src/core/subdir.mk --include Middlewares/Third_Party/LwIP/src/apps/mqtt/subdir.mk --include Middlewares/Third_Party/LwIP/src/api/subdir.mk --include Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/subdir.mk --include Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/subdir.mk --include Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/subdir.mk --include Middlewares/Third_Party/FreeRTOS/Source/subdir.mk --include Middlewares/Third_Party/FatFs/src/option/subdir.mk --include Middlewares/Third_Party/FatFs/src/subdir.mk --include LWIP/Target/subdir.mk --include LWIP/App/subdir.mk --include LWFTPC/subdir.mk --include FATFS/Target/subdir.mk --include FATFS/App/subdir.mk --include Drivers/STM32H7xx_HAL_Driver/Src/subdir.mk --include Drivers/BSP/Components/lan8742/subdir.mk --include Core/Startup/subdir.mk --include Core/Src/subdir.mk --include objects.mk - -ifneq ($(MAKECMDGOALS),clean) -ifneq ($(strip $(S_DEPS)),) --include $(S_DEPS) -endif -ifneq ($(strip $(S_UPPER_DEPS)),) --include $(S_UPPER_DEPS) -endif -ifneq ($(strip $(C_DEPS)),) --include $(C_DEPS) -endif -endif - --include ../makefile.defs - -OPTIONAL_TOOL_DEPS := \ -$(wildcard ../makefile.defs) \ -$(wildcard ../makefile.init) \ -$(wildcard ../makefile.targets) \ - - -BUILD_ARTIFACT_NAME := TBD_TaxiBoard -BUILD_ARTIFACT_EXTENSION := elf -BUILD_ARTIFACT_PREFIX := -BUILD_ARTIFACT := $(BUILD_ARTIFACT_PREFIX)$(BUILD_ARTIFACT_NAME)$(if $(BUILD_ARTIFACT_EXTENSION),.$(BUILD_ARTIFACT_EXTENSION),) - -# Add inputs and outputs from these tool invocations to the build variables -EXECUTABLES += \ -TBD_TaxiBoard.elf \ - -MAP_FILES += \ -TBD_TaxiBoard.map \ - -SIZE_OUTPUT += \ -default.size.stdout \ - -OBJDUMP_LIST += \ -TBD_TaxiBoard.list \ - - -# All Target -all: main-build - -# Main-build Target -main-build: TBD_TaxiBoard.elf secondary-outputs - -# Tool invocations -TBD_TaxiBoard.elf TBD_TaxiBoard.map: $(OBJS) $(USER_OBJS) C:\_NoSleep\STM32\TBD_TaxiBoard\STM32H723VGHX_FLASH.ld makefile objects.list $(OPTIONAL_TOOL_DEPS) - arm-none-eabi-gcc -o "TBD_TaxiBoard.elf" @"objects.list" $(USER_OBJS) $(LIBS) -mcpu=cortex-m7 -T"C:\_NoSleep\STM32\TBD_TaxiBoard\STM32H723VGHX_FLASH.ld" --specs=nosys.specs -Wl,-Map="TBD_TaxiBoard.map" -Wl,--gc-sections -static --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group - @echo 'Finished building target: $@' - @echo ' ' - -default.size.stdout: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS) - arm-none-eabi-size $(EXECUTABLES) - @echo 'Finished building: $@' - @echo ' ' - -TBD_TaxiBoard.list: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS) - arm-none-eabi-objdump -h -S $(EXECUTABLES) > "TBD_TaxiBoard.list" - @echo 'Finished building: $@' - @echo ' ' - -# Other Targets -clean: - -$(RM) TBD_TaxiBoard.elf TBD_TaxiBoard.list TBD_TaxiBoard.map default.size.stdout - -@echo ' ' - -secondary-outputs: $(SIZE_OUTPUT) $(OBJDUMP_LIST) - -fail-specified-linker-script-missing: - @echo 'Error: Cannot find the specified linker script. Check the linker settings in the build configuration.' - @exit 2 - -warn-no-linker-script-specified: - @echo 'Warning: No linker script specified. Check the linker settings in the build configuration.' - -.PHONY: all clean dependents main-build fail-specified-linker-script-missing warn-no-linker-script-specified - --include ../makefile.targets diff --git a/Debug/objects.list b/Debug/objects.list deleted file mode 100644 index a0660f3..0000000 --- a/Debug/objects.list +++ /dev/null @@ -1,140 +0,0 @@ -"./Core/Src/freertos.o" -"./Core/Src/main.o" -"./Core/Src/stm32h7xx_hal_msp.o" -"./Core/Src/stm32h7xx_hal_timebase_tim.o" -"./Core/Src/stm32h7xx_it.o" -"./Core/Src/syscalls.o" -"./Core/Src/sysmem.o" -"./Core/Src/system_stm32h7xx.o" -"./Core/Startup/startup_stm32h723vghx.o" -"./Drivers/BSP/Components/lan8742/lan8742.o" -"./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o" -"./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o" -"./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o" -"./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o" -"./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.o" -"./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.o" -"./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o" -"./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.o" -"./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o" -"./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.o" -"./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.o" -"./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.o" -"./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.o" -"./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.o" -"./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.o" -"./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.o" -"./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.o" -"./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.o" -"./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.o" -"./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.o" -"./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.o" -"./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.o" -"./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.o" -"./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.o" -"./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.o" -"./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.o" -"./Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o" -"./FATFS/App/fatfs.o" -"./FATFS/Target/bsp_driver_sd.o" -"./FATFS/Target/fatfs_platform.o" -"./FATFS/Target/sd_diskio.o" -"./LWFTPC/lwftpc.o" -"./LWIP/App/lwip.o" -"./LWIP/Target/ethernetif.o" -"./Middlewares/Third_Party/FatFs/src/diskio.o" -"./Middlewares/Third_Party/FatFs/src/ff.o" -"./Middlewares/Third_Party/FatFs/src/ff_gen_drv.o" -"./Middlewares/Third_Party/FatFs/src/option/ccsbcs.o" -"./Middlewares/Third_Party/FatFs/src/option/syscall.o" -"./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o" -"./Middlewares/Third_Party/FreeRTOS/Source/croutine.o" -"./Middlewares/Third_Party/FreeRTOS/Source/event_groups.o" -"./Middlewares/Third_Party/FreeRTOS/Source/list.o" -"./Middlewares/Third_Party/FreeRTOS/Source/queue.o" -"./Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.o" -"./Middlewares/Third_Party/FreeRTOS/Source/tasks.o" -"./Middlewares/Third_Party/FreeRTOS/Source/timers.o" -"./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o" -"./Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o" -"./Middlewares/Third_Party/LwIP/src/api/api_lib.o" -"./Middlewares/Third_Party/LwIP/src/api/api_msg.o" -"./Middlewares/Third_Party/LwIP/src/api/err.o" -"./Middlewares/Third_Party/LwIP/src/api/if_api.o" -"./Middlewares/Third_Party/LwIP/src/api/netbuf.o" -"./Middlewares/Third_Party/LwIP/src/api/netdb.o" -"./Middlewares/Third_Party/LwIP/src/api/netifapi.o" -"./Middlewares/Third_Party/LwIP/src/api/sockets.o" -"./Middlewares/Third_Party/LwIP/src/api/tcpip.o" -"./Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.o" -"./Middlewares/Third_Party/LwIP/src/core/altcp.o" -"./Middlewares/Third_Party/LwIP/src/core/altcp_alloc.o" -"./Middlewares/Third_Party/LwIP/src/core/altcp_tcp.o" -"./Middlewares/Third_Party/LwIP/src/core/def.o" -"./Middlewares/Third_Party/LwIP/src/core/dns.o" -"./Middlewares/Third_Party/LwIP/src/core/inet_chksum.o" -"./Middlewares/Third_Party/LwIP/src/core/init.o" -"./Middlewares/Third_Party/LwIP/src/core/ip.o" -"./Middlewares/Third_Party/LwIP/src/core/mem.o" -"./Middlewares/Third_Party/LwIP/src/core/memp.o" -"./Middlewares/Third_Party/LwIP/src/core/netif.o" -"./Middlewares/Third_Party/LwIP/src/core/pbuf.o" -"./Middlewares/Third_Party/LwIP/src/core/raw.o" -"./Middlewares/Third_Party/LwIP/src/core/stats.o" -"./Middlewares/Third_Party/LwIP/src/core/sys.o" -"./Middlewares/Third_Party/LwIP/src/core/tcp.o" -"./Middlewares/Third_Party/LwIP/src/core/tcp_in.o" -"./Middlewares/Third_Party/LwIP/src/core/tcp_out.o" -"./Middlewares/Third_Party/LwIP/src/core/timeouts.o" -"./Middlewares/Third_Party/LwIP/src/core/udp.o" -"./Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.o" -"./Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o" -"./Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o" -"./Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o" -"./Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.o" -"./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o" -"./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o" -"./Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o" -"./Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.o" -"./Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.o" -"./Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.o" -"./Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.o" -"./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.o" -"./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.o" -"./Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.o" -"./Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.o" -"./Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.o" -"./Middlewares/Third_Party/LwIP/src/netif/bridgeif.o" -"./Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.o" -"./Middlewares/Third_Party/LwIP/src/netif/ethernet.o" -"./Middlewares/Third_Party/LwIP/src/netif/lowpan6.o" -"./Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.o" -"./Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.o" -"./Middlewares/Third_Party/LwIP/src/netif/slipif.o" -"./Middlewares/Third_Party/LwIP/src/netif/zepif.o" -"./Middlewares/Third_Party/LwIP/src/netif/ppp/auth.o" -"./Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.o" -"./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.o" -"./Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.o" -"./Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.o" -"./Middlewares/Third_Party/LwIP/src/netif/ppp/demand.o" -"./Middlewares/Third_Party/LwIP/src/netif/ppp/eap.o" -"./Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.o" -"./Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.o" -"./Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.o" -"./Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.o" -"./Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.o" -"./Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.o" -"./Middlewares/Third_Party/LwIP/src/netif/ppp/magic.o" -"./Middlewares/Third_Party/LwIP/src/netif/ppp/mppe.o" -"./Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.o" -"./Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.o" -"./Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.o" -"./Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.o" -"./Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.o" -"./Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.o" -"./Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.o" -"./Middlewares/Third_Party/LwIP/src/netif/ppp/upap.o" -"./Middlewares/Third_Party/LwIP/src/netif/ppp/utils.o" -"./Middlewares/Third_Party/LwIP/src/netif/ppp/vj.o" -"./Middlewares/Third_Party/LwIP/system/OS/sys_arch.o" diff --git a/Debug/objects.mk b/Debug/objects.mk deleted file mode 100644 index 820854b..0000000 --- a/Debug/objects.mk +++ /dev/null @@ -1,9 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -# Toolchain: GNU Tools for STM32 (11.3.rel1) -################################################################################ - -USER_OBJS := - -LIBS := - diff --git a/Debug/sources.mk b/Debug/sources.mk deleted file mode 100644 index 2d46f72..0000000 --- a/Debug/sources.mk +++ /dev/null @@ -1,48 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -# Toolchain: GNU Tools for STM32 (11.3.rel1) -################################################################################ - -ELF_SRCS := -OBJ_SRCS := -S_SRCS := -C_SRCS := -S_UPPER_SRCS := -O_SRCS := -CYCLO_FILES := -SIZE_OUTPUT := -OBJDUMP_LIST := -SU_FILES := -EXECUTABLES := -OBJS := -MAP_FILES := -S_DEPS := -S_UPPER_DEPS := -C_DEPS := - -# Every subdirectory with source files must be described here -SUBDIRS := \ -Core/Src \ -Core/Startup \ -Drivers/BSP/Components/lan8742 \ -Drivers/STM32H7xx_HAL_Driver/Src \ -FATFS/App \ -FATFS/Target \ -LWFTPC \ -LWIP/App \ -LWIP/Target \ -Middlewares/Third_Party/FatFs/src \ -Middlewares/Third_Party/FatFs/src/option \ -Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS \ -Middlewares/Third_Party/FreeRTOS/Source \ -Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F \ -Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang \ -Middlewares/Third_Party/LwIP/src/api \ -Middlewares/Third_Party/LwIP/src/apps/mqtt \ -Middlewares/Third_Party/LwIP/src/core \ -Middlewares/Third_Party/LwIP/src/core/ipv4 \ -Middlewares/Third_Party/LwIP/src/core/ipv6 \ -Middlewares/Third_Party/LwIP/src/netif \ -Middlewares/Third_Party/LwIP/src/netif/ppp \ -Middlewares/Third_Party/LwIP/system/OS \ - diff --git a/Drivers/BSP/Components/lan8742/lan8742.c b/Drivers/BSP/Components/lan8742/lan8742.c deleted file mode 100644 index a268393..0000000 --- a/Drivers/BSP/Components/lan8742/lan8742.c +++ /dev/null @@ -1,664 +0,0 @@ -/** - ****************************************************************************** - * @file lan8742.c - * @author MCD Application Team - * @brief This file provides a set of functions needed to manage the LAN742 - * PHY devices. - ****************************************************************************** - * @attention - * - *

© Copyright (c) 2017 STMicroelectronics. - * All rights reserved.

- * - * This software component is licensed by ST under BSD 3-Clause license, - * the "License"; You may not use this file except in compliance with the - * License. You may obtain a copy of the License at: - * opensource.org/licenses/BSD-3-Clause - * - ****************************************************************************** - */ - -/* Includes ------------------------------------------------------------------*/ -#include "lan8742.h" - -/** @addtogroup BSP - * @{ - */ - -/** @addtogroup Component - * @{ - */ - -/** @defgroup LAN8742 LAN8742 - * @{ - */ - -/* Private typedef -----------------------------------------------------------*/ -/* Private define ------------------------------------------------------------*/ -/** @defgroup LAN8742_Private_Defines LAN8742 Private Defines - * @{ - */ -#define LAN8742_SW_RESET_TO ((uint32_t)500U) -#define LAN8742_INIT_TO ((uint32_t)2000U) -#define LAN8742_MAX_DEV_ADDR ((uint32_t)31U) -/** - * @} - */ - -/* Private macro -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private function prototypes -----------------------------------------------*/ -/* Private functions ---------------------------------------------------------*/ -/** @defgroup LAN8742_Private_Functions LAN8742 Private Functions - * @{ - */ - -/** - * @brief Register IO functions to component object - * @param pObj: device object of LAN8742_Object_t. - * @param ioctx: holds device IO functions. - * @retval LAN8742_STATUS_OK if OK - * LAN8742_STATUS_ERROR if missing mandatory function - */ -int32_t LAN8742_RegisterBusIO(lan8742_Object_t *pObj, lan8742_IOCtx_t *ioctx) -{ - if(!pObj || !ioctx->ReadReg || !ioctx->WriteReg || !ioctx->GetTick) - { - return LAN8742_STATUS_ERROR; - } - - pObj->IO.Init = ioctx->Init; - pObj->IO.DeInit = ioctx->DeInit; - pObj->IO.ReadReg = ioctx->ReadReg; - pObj->IO.WriteReg = ioctx->WriteReg; - pObj->IO.GetTick = ioctx->GetTick; - - return LAN8742_STATUS_OK; -} - -/** - * @brief Initialize the lan8742 and configure the needed hardware resources - * @param pObj: device object LAN8742_Object_t. - * @retval LAN8742_STATUS_OK if OK - * LAN8742_STATUS_ADDRESS_ERROR if cannot find device address - * LAN8742_STATUS_READ_ERROR if connot read register - * LAN8742_STATUS_WRITE_ERROR if connot write to register - * LAN8742_STATUS_RESET_TIMEOUT if cannot perform a software reset - */ - int32_t LAN8742_Init(lan8742_Object_t *pObj) - { - uint32_t tickstart = 0, regvalue = 0, addr = 0; - int32_t status = LAN8742_STATUS_OK; - - if(pObj->Is_Initialized == 0) - { - if(pObj->IO.Init != 0) - { - /* GPIO and Clocks initialization */ - pObj->IO.Init(); - } - - /* for later check */ - pObj->DevAddr = LAN8742_MAX_DEV_ADDR + 1; - - /* Get the device address from special mode register */ - for(addr = 0; addr <= LAN8742_MAX_DEV_ADDR; addr ++) - { - if(pObj->IO.ReadReg(addr, LAN8742_SMR, ®value) < 0) - { - status = LAN8742_STATUS_READ_ERROR; - /* Can't read from this device address - continue with next address */ - continue; - } - - if((regvalue & LAN8742_SMR_PHY_ADDR) == addr) - { - pObj->DevAddr = addr; - status = LAN8742_STATUS_OK; - break; - } - } - - if(pObj->DevAddr > LAN8742_MAX_DEV_ADDR) - { - status = LAN8742_STATUS_ADDRESS_ERROR; - } - - /* if device address is matched */ - if(status == LAN8742_STATUS_OK) - { - /* set a software reset */ - if(pObj->IO.WriteReg(pObj->DevAddr, LAN8742_BCR, LAN8742_BCR_SOFT_RESET) >= 0) - { - /* get software reset status */ - if(pObj->IO.ReadReg(pObj->DevAddr, LAN8742_BCR, ®value) >= 0) - { - tickstart = pObj->IO.GetTick(); - - /* wait until software reset is done or timeout occured */ - while(regvalue & LAN8742_BCR_SOFT_RESET) - { - if((pObj->IO.GetTick() - tickstart) <= LAN8742_SW_RESET_TO) - { - if(pObj->IO.ReadReg(pObj->DevAddr, LAN8742_BCR, ®value) < 0) - { - status = LAN8742_STATUS_READ_ERROR; - break; - } - } - else - { - status = LAN8742_STATUS_RESET_TIMEOUT; - break; - } - } - } - else - { - status = LAN8742_STATUS_READ_ERROR; - } - } - else - { - status = LAN8742_STATUS_WRITE_ERROR; - } - } - } - - if(status == LAN8742_STATUS_OK) - { - tickstart = pObj->IO.GetTick(); - - /* Wait for 2s to perform initialization */ - while((pObj->IO.GetTick() - tickstart) <= LAN8742_INIT_TO) - { - } - pObj->Is_Initialized = 1; - } - - return status; - } - -/** - * @brief De-Initialize the lan8742 and it's hardware resources - * @param pObj: device object LAN8742_Object_t. - * @retval None - */ -int32_t LAN8742_DeInit(lan8742_Object_t *pObj) -{ - if(pObj->Is_Initialized) - { - if(pObj->IO.DeInit != 0) - { - if(pObj->IO.DeInit() < 0) - { - return LAN8742_STATUS_ERROR; - } - } - - pObj->Is_Initialized = 0; - } - - return LAN8742_STATUS_OK; -} - -/** - * @brief Disable the LAN8742 power down mode. - * @param pObj: device object LAN8742_Object_t. - * @retval LAN8742_STATUS_OK if OK - * LAN8742_STATUS_READ_ERROR if connot read register - * LAN8742_STATUS_WRITE_ERROR if connot write to register - */ -int32_t LAN8742_DisablePowerDownMode(lan8742_Object_t *pObj) -{ - uint32_t readval = 0; - int32_t status = LAN8742_STATUS_OK; - - if(pObj->IO.ReadReg(pObj->DevAddr, LAN8742_BCR, &readval) >= 0) - { - readval &= ~LAN8742_BCR_POWER_DOWN; - - /* Apply configuration */ - if(pObj->IO.WriteReg(pObj->DevAddr, LAN8742_BCR, readval) < 0) - { - status = LAN8742_STATUS_WRITE_ERROR; - } - } - else - { - status = LAN8742_STATUS_READ_ERROR; - } - - return status; -} - -/** - * @brief Enable the LAN8742 power down mode. - * @param pObj: device object LAN8742_Object_t. - * @retval LAN8742_STATUS_OK if OK - * LAN8742_STATUS_READ_ERROR if connot read register - * LAN8742_STATUS_WRITE_ERROR if connot write to register - */ -int32_t LAN8742_EnablePowerDownMode(lan8742_Object_t *pObj) -{ - uint32_t readval = 0; - int32_t status = LAN8742_STATUS_OK; - - if(pObj->IO.ReadReg(pObj->DevAddr, LAN8742_BCR, &readval) >= 0) - { - readval |= LAN8742_BCR_POWER_DOWN; - - /* Apply configuration */ - if(pObj->IO.WriteReg(pObj->DevAddr, LAN8742_BCR, readval) < 0) - { - status = LAN8742_STATUS_WRITE_ERROR; - } - } - else - { - status = LAN8742_STATUS_READ_ERROR; - } - - return status; -} - -/** - * @brief Start the auto negotiation process. - * @param pObj: device object LAN8742_Object_t. - * @retval LAN8742_STATUS_OK if OK - * LAN8742_STATUS_READ_ERROR if connot read register - * LAN8742_STATUS_WRITE_ERROR if connot write to register - */ -int32_t LAN8742_StartAutoNego(lan8742_Object_t *pObj) -{ - uint32_t readval = 0; - int32_t status = LAN8742_STATUS_OK; - - if(pObj->IO.ReadReg(pObj->DevAddr, LAN8742_BCR, &readval) >= 0) - { - readval |= LAN8742_BCR_AUTONEGO_EN; - - /* Apply configuration */ - if(pObj->IO.WriteReg(pObj->DevAddr, LAN8742_BCR, readval) < 0) - { - status = LAN8742_STATUS_WRITE_ERROR; - } - } - else - { - status = LAN8742_STATUS_READ_ERROR; - } - - return status; -} - -/** - * @brief Get the link state of LAN8742 device. - * @param pObj: Pointer to device object. - * @param pLinkState: Pointer to link state - * @retval LAN8742_STATUS_LINK_DOWN if link is down - * LAN8742_STATUS_AUTONEGO_NOTDONE if Auto nego not completed - * LAN8742_STATUS_100MBITS_FULLDUPLEX if 100Mb/s FD - * LAN8742_STATUS_100MBITS_HALFDUPLEX if 100Mb/s HD - * LAN8742_STATUS_10MBITS_FULLDUPLEX if 10Mb/s FD - * LAN8742_STATUS_10MBITS_HALFDUPLEX if 10Mb/s HD - * LAN8742_STATUS_READ_ERROR if connot read register - * LAN8742_STATUS_WRITE_ERROR if connot write to register - */ -int32_t LAN8742_GetLinkState(lan8742_Object_t *pObj) -{ - uint32_t readval = 0; - - /* Read Status register */ - if(pObj->IO.ReadReg(pObj->DevAddr, LAN8742_BSR, &readval) < 0) - { - return LAN8742_STATUS_READ_ERROR; - } - - /* Read Status register again */ - if(pObj->IO.ReadReg(pObj->DevAddr, LAN8742_BSR, &readval) < 0) - { - return LAN8742_STATUS_READ_ERROR; - } - - if((readval & LAN8742_BSR_LINK_STATUS) == 0) - { - /* Return Link Down status */ - return LAN8742_STATUS_LINK_DOWN; - } - - /* Check Auto negotiaition */ - if(pObj->IO.ReadReg(pObj->DevAddr, LAN8742_BCR, &readval) < 0) - { - return LAN8742_STATUS_READ_ERROR; - } - - if((readval & LAN8742_BCR_AUTONEGO_EN) != LAN8742_BCR_AUTONEGO_EN) - { - if(((readval & LAN8742_BCR_SPEED_SELECT) == LAN8742_BCR_SPEED_SELECT) && ((readval & LAN8742_BCR_DUPLEX_MODE) == LAN8742_BCR_DUPLEX_MODE)) - { - return LAN8742_STATUS_100MBITS_FULLDUPLEX; - } - else if ((readval & LAN8742_BCR_SPEED_SELECT) == LAN8742_BCR_SPEED_SELECT) - { - return LAN8742_STATUS_100MBITS_HALFDUPLEX; - } - else if ((readval & LAN8742_BCR_DUPLEX_MODE) == LAN8742_BCR_DUPLEX_MODE) - { - return LAN8742_STATUS_10MBITS_FULLDUPLEX; - } - else - { - return LAN8742_STATUS_10MBITS_HALFDUPLEX; - } - } - else /* Auto Nego enabled */ - { - if(pObj->IO.ReadReg(pObj->DevAddr, LAN8742_PHYSCSR, &readval) < 0) - { - return LAN8742_STATUS_READ_ERROR; - } - - /* Check if auto nego not done */ - if((readval & LAN8742_PHYSCSR_AUTONEGO_DONE) == 0) - { - return LAN8742_STATUS_AUTONEGO_NOTDONE; - } - - if((readval & LAN8742_PHYSCSR_HCDSPEEDMASK) == LAN8742_PHYSCSR_100BTX_FD) - { - return LAN8742_STATUS_100MBITS_FULLDUPLEX; - } - else if ((readval & LAN8742_PHYSCSR_HCDSPEEDMASK) == LAN8742_PHYSCSR_100BTX_HD) - { - return LAN8742_STATUS_100MBITS_HALFDUPLEX; - } - else if ((readval & LAN8742_PHYSCSR_HCDSPEEDMASK) == LAN8742_PHYSCSR_10BT_FD) - { - return LAN8742_STATUS_10MBITS_FULLDUPLEX; - } - else - { - return LAN8742_STATUS_10MBITS_HALFDUPLEX; - } - } -} - -/** - * @brief Set the link state of LAN8742 device. - * @param pObj: Pointer to device object. - * @param pLinkState: link state can be one of the following - * LAN8742_STATUS_100MBITS_FULLDUPLEX if 100Mb/s FD - * LAN8742_STATUS_100MBITS_HALFDUPLEX if 100Mb/s HD - * LAN8742_STATUS_10MBITS_FULLDUPLEX if 10Mb/s FD - * LAN8742_STATUS_10MBITS_HALFDUPLEX if 10Mb/s HD - * @retval LAN8742_STATUS_OK if OK - * LAN8742_STATUS_ERROR if parameter error - * LAN8742_STATUS_READ_ERROR if connot read register - * LAN8742_STATUS_WRITE_ERROR if connot write to register - */ -int32_t LAN8742_SetLinkState(lan8742_Object_t *pObj, uint32_t LinkState) -{ - uint32_t bcrvalue = 0; - int32_t status = LAN8742_STATUS_OK; - - if(pObj->IO.ReadReg(pObj->DevAddr, LAN8742_BCR, &bcrvalue) >= 0) - { - /* Disable link config (Auto nego, speed and duplex) */ - bcrvalue &= ~(LAN8742_BCR_AUTONEGO_EN | LAN8742_BCR_SPEED_SELECT | LAN8742_BCR_DUPLEX_MODE); - - if(LinkState == LAN8742_STATUS_100MBITS_FULLDUPLEX) - { - bcrvalue |= (LAN8742_BCR_SPEED_SELECT | LAN8742_BCR_DUPLEX_MODE); - } - else if (LinkState == LAN8742_STATUS_100MBITS_HALFDUPLEX) - { - bcrvalue |= LAN8742_BCR_SPEED_SELECT; - } - else if (LinkState == LAN8742_STATUS_10MBITS_FULLDUPLEX) - { - bcrvalue |= LAN8742_BCR_DUPLEX_MODE; - } - else - { - /* Wrong link status parameter */ - status = LAN8742_STATUS_ERROR; - } - } - else - { - status = LAN8742_STATUS_READ_ERROR; - } - - if(status == LAN8742_STATUS_OK) - { - /* Apply configuration */ - if(pObj->IO.WriteReg(pObj->DevAddr, LAN8742_BCR, bcrvalue) < 0) - { - status = LAN8742_STATUS_WRITE_ERROR; - } - } - - return status; -} - -/** - * @brief Enable loopback mode. - * @param pObj: Pointer to device object. - * @retval LAN8742_STATUS_OK if OK - * LAN8742_STATUS_READ_ERROR if connot read register - * LAN8742_STATUS_WRITE_ERROR if connot write to register - */ -int32_t LAN8742_EnableLoopbackMode(lan8742_Object_t *pObj) -{ - uint32_t readval = 0; - int32_t status = LAN8742_STATUS_OK; - - if(pObj->IO.ReadReg(pObj->DevAddr, LAN8742_BCR, &readval) >= 0) - { - readval |= LAN8742_BCR_LOOPBACK; - - /* Apply configuration */ - if(pObj->IO.WriteReg(pObj->DevAddr, LAN8742_BCR, readval) < 0) - { - status = LAN8742_STATUS_WRITE_ERROR; - } - } - else - { - status = LAN8742_STATUS_READ_ERROR; - } - - return status; -} - -/** - * @brief Disable loopback mode. - * @param pObj: Pointer to device object. - * @retval LAN8742_STATUS_OK if OK - * LAN8742_STATUS_READ_ERROR if connot read register - * LAN8742_STATUS_WRITE_ERROR if connot write to register - */ -int32_t LAN8742_DisableLoopbackMode(lan8742_Object_t *pObj) -{ - uint32_t readval = 0; - int32_t status = LAN8742_STATUS_OK; - - if(pObj->IO.ReadReg(pObj->DevAddr, LAN8742_BCR, &readval) >= 0) - { - readval &= ~LAN8742_BCR_LOOPBACK; - - /* Apply configuration */ - if(pObj->IO.WriteReg(pObj->DevAddr, LAN8742_BCR, readval) < 0) - { - status = LAN8742_STATUS_WRITE_ERROR; - } - } - else - { - status = LAN8742_STATUS_READ_ERROR; - } - - return status; -} - -/** - * @brief Enable IT source. - * @param pObj: Pointer to device object. - * @param Interrupt: IT source to be enabled - * should be a value or a combination of the following: - * LAN8742_WOL_IT - * LAN8742_ENERGYON_IT - * LAN8742_AUTONEGO_COMPLETE_IT - * LAN8742_REMOTE_FAULT_IT - * LAN8742_LINK_DOWN_IT - * LAN8742_AUTONEGO_LP_ACK_IT - * LAN8742_PARALLEL_DETECTION_FAULT_IT - * LAN8742_AUTONEGO_PAGE_RECEIVED_IT - * @retval LAN8742_STATUS_OK if OK - * LAN8742_STATUS_READ_ERROR if connot read register - * LAN8742_STATUS_WRITE_ERROR if connot write to register - */ -int32_t LAN8742_EnableIT(lan8742_Object_t *pObj, uint32_t Interrupt) -{ - uint32_t readval = 0; - int32_t status = LAN8742_STATUS_OK; - - if(pObj->IO.ReadReg(pObj->DevAddr, LAN8742_IMR, &readval) >= 0) - { - readval |= Interrupt; - - /* Apply configuration */ - if(pObj->IO.WriteReg(pObj->DevAddr, LAN8742_IMR, readval) < 0) - { - status = LAN8742_STATUS_WRITE_ERROR; - } - } - else - { - status = LAN8742_STATUS_READ_ERROR; - } - - return status; -} - -/** - * @brief Disable IT source. - * @param pObj: Pointer to device object. - * @param Interrupt: IT source to be disabled - * should be a value or a combination of the following: - * LAN8742_WOL_IT - * LAN8742_ENERGYON_IT - * LAN8742_AUTONEGO_COMPLETE_IT - * LAN8742_REMOTE_FAULT_IT - * LAN8742_LINK_DOWN_IT - * LAN8742_AUTONEGO_LP_ACK_IT - * LAN8742_PARALLEL_DETECTION_FAULT_IT - * LAN8742_AUTONEGO_PAGE_RECEIVED_IT - * @retval LAN8742_STATUS_OK if OK - * LAN8742_STATUS_READ_ERROR if connot read register - * LAN8742_STATUS_WRITE_ERROR if connot write to register - */ -int32_t LAN8742_DisableIT(lan8742_Object_t *pObj, uint32_t Interrupt) -{ - uint32_t readval = 0; - int32_t status = LAN8742_STATUS_OK; - - if(pObj->IO.ReadReg(pObj->DevAddr, LAN8742_IMR, &readval) >= 0) - { - readval &= ~Interrupt; - - /* Apply configuration */ - if(pObj->IO.WriteReg(pObj->DevAddr, LAN8742_IMR, readval) < 0) - { - status = LAN8742_STATUS_WRITE_ERROR; - } - } - else - { - status = LAN8742_STATUS_READ_ERROR; - } - - return status; -} - -/** - * @brief Clear IT flag. - * @param pObj: Pointer to device object. - * @param Interrupt: IT flag to be cleared - * should be a value or a combination of the following: - * LAN8742_WOL_IT - * LAN8742_ENERGYON_IT - * LAN8742_AUTONEGO_COMPLETE_IT - * LAN8742_REMOTE_FAULT_IT - * LAN8742_LINK_DOWN_IT - * LAN8742_AUTONEGO_LP_ACK_IT - * LAN8742_PARALLEL_DETECTION_FAULT_IT - * LAN8742_AUTONEGO_PAGE_RECEIVED_IT - * @retval LAN8742_STATUS_OK if OK - * LAN8742_STATUS_READ_ERROR if connot read register - */ -int32_t LAN8742_ClearIT(lan8742_Object_t *pObj, uint32_t Interrupt) -{ - uint32_t readval = 0; - int32_t status = LAN8742_STATUS_OK; - - if(pObj->IO.ReadReg(pObj->DevAddr, LAN8742_ISFR, &readval) < 0) - { - status = LAN8742_STATUS_READ_ERROR; - } - - return status; -} - -/** - * @brief Get IT Flag status. - * @param pObj: Pointer to device object. - * @param Interrupt: IT Flag to be checked, - * should be a value or a combination of the following: - * LAN8742_WOL_IT - * LAN8742_ENERGYON_IT - * LAN8742_AUTONEGO_COMPLETE_IT - * LAN8742_REMOTE_FAULT_IT - * LAN8742_LINK_DOWN_IT - * LAN8742_AUTONEGO_LP_ACK_IT - * LAN8742_PARALLEL_DETECTION_FAULT_IT - * LAN8742_AUTONEGO_PAGE_RECEIVED_IT - * @retval 1 IT flag is SET - * 0 IT flag is RESET - * LAN8742_STATUS_READ_ERROR if connot read register - */ -int32_t LAN8742_GetITStatus(lan8742_Object_t *pObj, uint32_t Interrupt) -{ - uint32_t readval = 0; - int32_t status = 0; - - if(pObj->IO.ReadReg(pObj->DevAddr, LAN8742_ISFR, &readval) >= 0) - { - status = ((readval & Interrupt) == Interrupt); - } - else - { - status = LAN8742_STATUS_READ_ERROR; - } - - return status; -} - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ -/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Drivers/BSP/Components/lan8742/lan8742.h b/Drivers/BSP/Components/lan8742/lan8742.h deleted file mode 100644 index c1620dd..0000000 --- a/Drivers/BSP/Components/lan8742/lan8742.h +++ /dev/null @@ -1,448 +0,0 @@ -/** - ****************************************************************************** - * @file lan8742.h - * @author MCD Application Team - * @brief This file contains all the functions prototypes for the - * lan8742.c PHY driver. - ****************************************************************************** - * @attention - * - *

© Copyright (c) 2017 STMicroelectronics. - * All rights reserved.

- * - * This software component is licensed by ST under BSD 3-Clause license, - * the "License"; You may not use this file except in compliance with the - * License. You may obtain a copy of the License at: - * opensource.org/licenses/BSD-3-Clause - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef LAN8742_H -#define LAN8742_H - -#ifdef __cplusplus - extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include - -/** @addtogroup BSP - * @{ - */ - -/** @addtogroup Component - * @{ - */ - -/** @defgroup LAN8742 - * @{ - */ -/* Exported constants --------------------------------------------------------*/ -/** @defgroup LAN8742_Exported_Constants LAN8742 Exported Constants - * @{ - */ - -/** @defgroup LAN8742_Registers_Mapping LAN8742 Registers Mapping - * @{ - */ -#define LAN8742_BCR ((uint16_t)0x0000U) -#define LAN8742_BSR ((uint16_t)0x0001U) -#define LAN8742_PHYI1R ((uint16_t)0x0002U) -#define LAN8742_PHYI2R ((uint16_t)0x0003U) -#define LAN8742_ANAR ((uint16_t)0x0004U) -#define LAN8742_ANLPAR ((uint16_t)0x0005U) -#define LAN8742_ANER ((uint16_t)0x0006U) -#define LAN8742_ANNPTR ((uint16_t)0x0007U) -#define LAN8742_ANNPRR ((uint16_t)0x0008U) -#define LAN8742_MMDACR ((uint16_t)0x000DU) -#define LAN8742_MMDAADR ((uint16_t)0x000EU) -#define LAN8742_ENCTR ((uint16_t)0x0010U) -#define LAN8742_MCSR ((uint16_t)0x0011U) -#define LAN8742_SMR ((uint16_t)0x0012U) -#define LAN8742_TPDCR ((uint16_t)0x0018U) -#define LAN8742_TCSR ((uint16_t)0x0019U) -#define LAN8742_SECR ((uint16_t)0x001AU) -#define LAN8742_SCSIR ((uint16_t)0x001BU) -#define LAN8742_CLR ((uint16_t)0x001CU) -#define LAN8742_ISFR ((uint16_t)0x001DU) -#define LAN8742_IMR ((uint16_t)0x001EU) -#define LAN8742_PHYSCSR ((uint16_t)0x001FU) -/** - * @} - */ - -/** @defgroup LAN8742_BCR_Bit_Definition LAN8742 BCR Bit Definition - * @{ - */ -#define LAN8742_BCR_SOFT_RESET ((uint16_t)0x8000U) -#define LAN8742_BCR_LOOPBACK ((uint16_t)0x4000U) -#define LAN8742_BCR_SPEED_SELECT ((uint16_t)0x2000U) -#define LAN8742_BCR_AUTONEGO_EN ((uint16_t)0x1000U) -#define LAN8742_BCR_POWER_DOWN ((uint16_t)0x0800U) -#define LAN8742_BCR_ISOLATE ((uint16_t)0x0400U) -#define LAN8742_BCR_RESTART_AUTONEGO ((uint16_t)0x0200U) -#define LAN8742_BCR_DUPLEX_MODE ((uint16_t)0x0100U) -/** - * @} - */ - -/** @defgroup LAN8742_BSR_Bit_Definition LAN8742 BSR Bit Definition - * @{ - */ -#define LAN8742_BSR_100BASE_T4 ((uint16_t)0x8000U) -#define LAN8742_BSR_100BASE_TX_FD ((uint16_t)0x4000U) -#define LAN8742_BSR_100BASE_TX_HD ((uint16_t)0x2000U) -#define LAN8742_BSR_10BASE_T_FD ((uint16_t)0x1000U) -#define LAN8742_BSR_10BASE_T_HD ((uint16_t)0x0800U) -#define LAN8742_BSR_100BASE_T2_FD ((uint16_t)0x0400U) -#define LAN8742_BSR_100BASE_T2_HD ((uint16_t)0x0200U) -#define LAN8742_BSR_EXTENDED_STATUS ((uint16_t)0x0100U) -#define LAN8742_BSR_AUTONEGO_CPLT ((uint16_t)0x0020U) -#define LAN8742_BSR_REMOTE_FAULT ((uint16_t)0x0010U) -#define LAN8742_BSR_AUTONEGO_ABILITY ((uint16_t)0x0008U) -#define LAN8742_BSR_LINK_STATUS ((uint16_t)0x0004U) -#define LAN8742_BSR_JABBER_DETECT ((uint16_t)0x0002U) -#define LAN8742_BSR_EXTENDED_CAP ((uint16_t)0x0001U) -/** - * @} - */ - -/** @defgroup LAN8742_PHYI1R_Bit_Definition LAN8742 PHYI1R Bit Definition - * @{ - */ -#define LAN8742_PHYI1R_OUI_3_18 ((uint16_t)0xFFFFU) -/** - * @} - */ - -/** @defgroup LAN8742_PHYI2R_Bit_Definition LAN8742 PHYI2R Bit Definition - * @{ - */ -#define LAN8742_PHYI2R_OUI_19_24 ((uint16_t)0xFC00U) -#define LAN8742_PHYI2R_MODEL_NBR ((uint16_t)0x03F0U) -#define LAN8742_PHYI2R_REVISION_NBR ((uint16_t)0x000FU) -/** - * @} - */ - -/** @defgroup LAN8742_ANAR_Bit_Definition LAN8742 ANAR Bit Definition - * @{ - */ -#define LAN8742_ANAR_NEXT_PAGE ((uint16_t)0x8000U) -#define LAN8742_ANAR_REMOTE_FAULT ((uint16_t)0x2000U) -#define LAN8742_ANAR_PAUSE_OPERATION ((uint16_t)0x0C00U) -#define LAN8742_ANAR_PO_NOPAUSE ((uint16_t)0x0000U) -#define LAN8742_ANAR_PO_SYMMETRIC_PAUSE ((uint16_t)0x0400U) -#define LAN8742_ANAR_PO_ASYMMETRIC_PAUSE ((uint16_t)0x0800U) -#define LAN8742_ANAR_PO_ADVERTISE_SUPPORT ((uint16_t)0x0C00U) -#define LAN8742_ANAR_100BASE_TX_FD ((uint16_t)0x0100U) -#define LAN8742_ANAR_100BASE_TX ((uint16_t)0x0080U) -#define LAN8742_ANAR_10BASE_T_FD ((uint16_t)0x0040U) -#define LAN8742_ANAR_10BASE_T ((uint16_t)0x0020U) -#define LAN8742_ANAR_SELECTOR_FIELD ((uint16_t)0x000FU) -/** - * @} - */ - -/** @defgroup LAN8742_ANLPAR_Bit_Definition LAN8742 ANLPAR Bit Definition - * @{ - */ -#define LAN8742_ANLPAR_NEXT_PAGE ((uint16_t)0x8000U) -#define LAN8742_ANLPAR_REMOTE_FAULT ((uint16_t)0x2000U) -#define LAN8742_ANLPAR_PAUSE_OPERATION ((uint16_t)0x0C00U) -#define LAN8742_ANLPAR_PO_NOPAUSE ((uint16_t)0x0000U) -#define LAN8742_ANLPAR_PO_SYMMETRIC_PAUSE ((uint16_t)0x0400U) -#define LAN8742_ANLPAR_PO_ASYMMETRIC_PAUSE ((uint16_t)0x0800U) -#define LAN8742_ANLPAR_PO_ADVERTISE_SUPPORT ((uint16_t)0x0C00U) -#define LAN8742_ANLPAR_100BASE_TX_FD ((uint16_t)0x0100U) -#define LAN8742_ANLPAR_100BASE_TX ((uint16_t)0x0080U) -#define LAN8742_ANLPAR_10BASE_T_FD ((uint16_t)0x0040U) -#define LAN8742_ANLPAR_10BASE_T ((uint16_t)0x0020U) -#define LAN8742_ANLPAR_SELECTOR_FIELD ((uint16_t)0x000FU) -/** - * @} - */ - -/** @defgroup LAN8742_ANER_Bit_Definition LAN8742 ANER Bit Definition - * @{ - */ -#define LAN8742_ANER_RX_NP_LOCATION_ABLE ((uint16_t)0x0040U) -#define LAN8742_ANER_RX_NP_STORAGE_LOCATION ((uint16_t)0x0020U) -#define LAN8742_ANER_PARALLEL_DETECT_FAULT ((uint16_t)0x0010U) -#define LAN8742_ANER_LP_NP_ABLE ((uint16_t)0x0008U) -#define LAN8742_ANER_NP_ABLE ((uint16_t)0x0004U) -#define LAN8742_ANER_PAGE_RECEIVED ((uint16_t)0x0002U) -#define LAN8742_ANER_LP_AUTONEG_ABLE ((uint16_t)0x0001U) -/** - * @} - */ - -/** @defgroup LAN8742_ANNPTR_Bit_Definition LAN8742 ANNPTR Bit Definition - * @{ - */ -#define LAN8742_ANNPTR_NEXT_PAGE ((uint16_t)0x8000U) -#define LAN8742_ANNPTR_MESSAGE_PAGE ((uint16_t)0x2000U) -#define LAN8742_ANNPTR_ACK2 ((uint16_t)0x1000U) -#define LAN8742_ANNPTR_TOGGLE ((uint16_t)0x0800U) -#define LAN8742_ANNPTR_MESSAGGE_CODE ((uint16_t)0x07FFU) -/** - * @} - */ - -/** @defgroup LAN8742_ANNPRR_Bit_Definition LAN8742 ANNPRR Bit Definition - * @{ - */ -#define LAN8742_ANNPTR_NEXT_PAGE ((uint16_t)0x8000U) -#define LAN8742_ANNPRR_ACK ((uint16_t)0x4000U) -#define LAN8742_ANNPRR_MESSAGE_PAGE ((uint16_t)0x2000U) -#define LAN8742_ANNPRR_ACK2 ((uint16_t)0x1000U) -#define LAN8742_ANNPRR_TOGGLE ((uint16_t)0x0800U) -#define LAN8742_ANNPRR_MESSAGGE_CODE ((uint16_t)0x07FFU) -/** - * @} - */ - -/** @defgroup LAN8742_MMDACR_Bit_Definition LAN8742 MMDACR Bit Definition - * @{ - */ -#define LAN8742_MMDACR_MMD_FUNCTION ((uint16_t)0xC000U) -#define LAN8742_MMDACR_MMD_FUNCTION_ADDR ((uint16_t)0x0000U) -#define LAN8742_MMDACR_MMD_FUNCTION_DATA ((uint16_t)0x4000U) -#define LAN8742_MMDACR_MMD_DEV_ADDR ((uint16_t)0x001FU) -/** - * @} - */ - -/** @defgroup LAN8742_ENCTR_Bit_Definition LAN8742 ENCTR Bit Definition - * @{ - */ -#define LAN8742_ENCTR_TX_ENABLE ((uint16_t)0x8000U) -#define LAN8742_ENCTR_TX_TIMER ((uint16_t)0x6000U) -#define LAN8742_ENCTR_TX_TIMER_1S ((uint16_t)0x0000U) -#define LAN8742_ENCTR_TX_TIMER_768MS ((uint16_t)0x2000U) -#define LAN8742_ENCTR_TX_TIMER_512MS ((uint16_t)0x4000U) -#define LAN8742_ENCTR_TX_TIMER_265MS ((uint16_t)0x6000U) -#define LAN8742_ENCTR_RX_ENABLE ((uint16_t)0x1000U) -#define LAN8742_ENCTR_RX_MAX_INTERVAL ((uint16_t)0x0C00U) -#define LAN8742_ENCTR_RX_MAX_INTERVAL_64MS ((uint16_t)0x0000U) -#define LAN8742_ENCTR_RX_MAX_INTERVAL_256MS ((uint16_t)0x0400U) -#define LAN8742_ENCTR_RX_MAX_INTERVAL_512MS ((uint16_t)0x0800U) -#define LAN8742_ENCTR_RX_MAX_INTERVAL_1S ((uint16_t)0x0C00U) -#define LAN8742_ENCTR_EX_CROSS_OVER ((uint16_t)0x0002U) -#define LAN8742_ENCTR_EX_MANUAL_CROSS_OVER ((uint16_t)0x0001U) -/** - * @} - */ - -/** @defgroup LAN8742_MCSR_Bit_Definition LAN8742 MCSR Bit Definition - * @{ - */ -#define LAN8742_MCSR_EDPWRDOWN ((uint16_t)0x2000U) -#define LAN8742_MCSR_FARLOOPBACK ((uint16_t)0x0200U) -#define LAN8742_MCSR_ALTINT ((uint16_t)0x0040U) -#define LAN8742_MCSR_ENERGYON ((uint16_t)0x0002U) -/** - * @} - */ - -/** @defgroup LAN8742_SMR_Bit_Definition LAN8742 SMR Bit Definition - * @{ - */ -#define LAN8742_SMR_MODE ((uint16_t)0x00E0U) -#define LAN8742_SMR_PHY_ADDR ((uint16_t)0x001FU) -/** - * @} - */ - -/** @defgroup LAN8742_TPDCR_Bit_Definition LAN8742 TPDCR Bit Definition - * @{ - */ -#define LAN8742_TPDCR_DELAY_IN ((uint16_t)0x8000U) -#define LAN8742_TPDCR_LINE_BREAK_COUNTER ((uint16_t)0x7000U) -#define LAN8742_TPDCR_PATTERN_HIGH ((uint16_t)0x0FC0U) -#define LAN8742_TPDCR_PATTERN_LOW ((uint16_t)0x003FU) -/** - * @} - */ - -/** @defgroup LAN8742_TCSR_Bit_Definition LAN8742 TCSR Bit Definition - * @{ - */ -#define LAN8742_TCSR_TDR_ENABLE ((uint16_t)0x8000U) -#define LAN8742_TCSR_TDR_AD_FILTER_ENABLE ((uint16_t)0x4000U) -#define LAN8742_TCSR_TDR_CH_CABLE_TYPE ((uint16_t)0x0600U) -#define LAN8742_TCSR_TDR_CH_CABLE_DEFAULT ((uint16_t)0x0000U) -#define LAN8742_TCSR_TDR_CH_CABLE_SHORTED ((uint16_t)0x0200U) -#define LAN8742_TCSR_TDR_CH_CABLE_OPEN ((uint16_t)0x0400U) -#define LAN8742_TCSR_TDR_CH_CABLE_MATCH ((uint16_t)0x0600U) -#define LAN8742_TCSR_TDR_CH_STATUS ((uint16_t)0x0100U) -#define LAN8742_TCSR_TDR_CH_LENGTH ((uint16_t)0x00FFU) -/** - * @} - */ - -/** @defgroup LAN8742_SCSIR_Bit_Definition LAN8742 SCSIR Bit Definition - * @{ - */ -#define LAN8742_SCSIR_AUTO_MDIX_ENABLE ((uint16_t)0x8000U) -#define LAN8742_SCSIR_CHANNEL_SELECT ((uint16_t)0x2000U) -#define LAN8742_SCSIR_SQE_DISABLE ((uint16_t)0x0800U) -#define LAN8742_SCSIR_XPOLALITY ((uint16_t)0x0010U) -/** - * @} - */ - -/** @defgroup LAN8742_CLR_Bit_Definition LAN8742 CLR Bit Definition - * @{ - */ -#define LAN8742_CLR_CABLE_LENGTH ((uint16_t)0xF000U) -/** - * @} - */ - -/** @defgroup LAN8742_IMR_ISFR_Bit_Definition LAN8742 IMR ISFR Bit Definition - * @{ - */ -#define LAN8742_INT_8 ((uint16_t)0x0100U) -#define LAN8742_INT_7 ((uint16_t)0x0080U) -#define LAN8742_INT_6 ((uint16_t)0x0040U) -#define LAN8742_INT_5 ((uint16_t)0x0020U) -#define LAN8742_INT_4 ((uint16_t)0x0010U) -#define LAN8742_INT_3 ((uint16_t)0x0008U) -#define LAN8742_INT_2 ((uint16_t)0x0004U) -#define LAN8742_INT_1 ((uint16_t)0x0002U) -/** - * @} - */ - -/** @defgroup LAN8742_PHYSCSR_Bit_Definition LAN8742 PHYSCSR Bit Definition - * @{ - */ -#define LAN8742_PHYSCSR_AUTONEGO_DONE ((uint16_t)0x1000U) -#define LAN8742_PHYSCSR_HCDSPEEDMASK ((uint16_t)0x001CU) -#define LAN8742_PHYSCSR_10BT_HD ((uint16_t)0x0004U) -#define LAN8742_PHYSCSR_10BT_FD ((uint16_t)0x0014U) -#define LAN8742_PHYSCSR_100BTX_HD ((uint16_t)0x0008U) -#define LAN8742_PHYSCSR_100BTX_FD ((uint16_t)0x0018U) -/** - * @} - */ - -/** @defgroup LAN8742_Status LAN8742 Status - * @{ - */ - -#define LAN8742_STATUS_READ_ERROR ((int32_t)-5) -#define LAN8742_STATUS_WRITE_ERROR ((int32_t)-4) -#define LAN8742_STATUS_ADDRESS_ERROR ((int32_t)-3) -#define LAN8742_STATUS_RESET_TIMEOUT ((int32_t)-2) -#define LAN8742_STATUS_ERROR ((int32_t)-1) -#define LAN8742_STATUS_OK ((int32_t) 0) -#define LAN8742_STATUS_LINK_DOWN ((int32_t) 1) -#define LAN8742_STATUS_100MBITS_FULLDUPLEX ((int32_t) 2) -#define LAN8742_STATUS_100MBITS_HALFDUPLEX ((int32_t) 3) -#define LAN8742_STATUS_10MBITS_FULLDUPLEX ((int32_t) 4) -#define LAN8742_STATUS_10MBITS_HALFDUPLEX ((int32_t) 5) -#define LAN8742_STATUS_AUTONEGO_NOTDONE ((int32_t) 6) -/** - * @} - */ - -/** @defgroup LAN8742_IT_Flags LAN8742 IT Flags - * @{ - */ -#define LAN8742_WOL_IT LAN8742_INT_8 -#define LAN8742_ENERGYON_IT LAN8742_INT_7 -#define LAN8742_AUTONEGO_COMPLETE_IT LAN8742_INT_6 -#define LAN8742_REMOTE_FAULT_IT LAN8742_INT_5 -#define LAN8742_LINK_DOWN_IT LAN8742_INT_4 -#define LAN8742_AUTONEGO_LP_ACK_IT LAN8742_INT_3 -#define LAN8742_PARALLEL_DETECTION_FAULT_IT LAN8742_INT_2 -#define LAN8742_AUTONEGO_PAGE_RECEIVED_IT LAN8742_INT_1 -/** - * @} - */ - -/** - * @} - */ - -/* Exported types ------------------------------------------------------------*/ -/** @defgroup LAN8742_Exported_Types LAN8742 Exported Types - * @{ - */ -typedef int32_t (*lan8742_Init_Func) (void); -typedef int32_t (*lan8742_DeInit_Func) (void); -typedef int32_t (*lan8742_ReadReg_Func) (uint32_t, uint32_t, uint32_t *); -typedef int32_t (*lan8742_WriteReg_Func) (uint32_t, uint32_t, uint32_t); -typedef int32_t (*lan8742_GetTick_Func) (void); - -typedef struct -{ - lan8742_Init_Func Init; - lan8742_DeInit_Func DeInit; - lan8742_WriteReg_Func WriteReg; - lan8742_ReadReg_Func ReadReg; - lan8742_GetTick_Func GetTick; -} lan8742_IOCtx_t; - - -typedef struct -{ - uint32_t DevAddr; - uint32_t Is_Initialized; - lan8742_IOCtx_t IO; - void *pData; -}lan8742_Object_t; -/** - * @} - */ - -/* Exported macro ------------------------------------------------------------*/ -/* Exported functions --------------------------------------------------------*/ -/** @defgroup LAN8742_Exported_Functions LAN8742 Exported Functions - * @{ - */ -int32_t LAN8742_RegisterBusIO(lan8742_Object_t *pObj, lan8742_IOCtx_t *ioctx); -int32_t LAN8742_Init(lan8742_Object_t *pObj); -int32_t LAN8742_DeInit(lan8742_Object_t *pObj); -int32_t LAN8742_DisablePowerDownMode(lan8742_Object_t *pObj); -int32_t LAN8742_EnablePowerDownMode(lan8742_Object_t *pObj); -int32_t LAN8742_StartAutoNego(lan8742_Object_t *pObj); -int32_t LAN8742_GetLinkState(lan8742_Object_t *pObj); -int32_t LAN8742_SetLinkState(lan8742_Object_t *pObj, uint32_t LinkState); -int32_t LAN8742_EnableLoopbackMode(lan8742_Object_t *pObj); -int32_t LAN8742_DisableLoopbackMode(lan8742_Object_t *pObj); -int32_t LAN8742_EnableIT(lan8742_Object_t *pObj, uint32_t Interrupt); -int32_t LAN8742_DisableIT(lan8742_Object_t *pObj, uint32_t Interrupt); -int32_t LAN8742_ClearIT(lan8742_Object_t *pObj, uint32_t Interrupt); -int32_t LAN8742_GetITStatus(lan8742_Object_t *pObj, uint32_t Interrupt); -/** - * @} - */ - -#ifdef __cplusplus -} -#endif -#endif /* LAN8742_H */ - - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ -/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h b/Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h deleted file mode 100644 index dfe7f0f..0000000 --- a/Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h723xx.h +++ /dev/null @@ -1,24262 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h723xx.h - * @author MCD Application Team - * @brief CMSIS STM32H723xx Device Peripheral Access Layer Header File. - * - * This file contains: - * - Data structures and the address mapping for all peripherals - * - Peripheral's registers declarations and bits definition - * - Macros to access peripheral's registers hardware - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2019 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/** @addtogroup CMSIS_Device - * @{ - */ - -/** @addtogroup stm32h723xx - * @{ - */ - -#ifndef STM32H723xx_H -#define STM32H723xx_H - -#ifdef __cplusplus - extern "C" { -#endif /* __cplusplus */ - -/** @addtogroup Peripheral_interrupt_number_definition - * @{ - */ - -/** - * @brief STM32H7XX Interrupt Number Definition, according to the selected device - * in @ref Library_configuration_section - */ -typedef enum -{ -/****** Cortex-M Processor Exceptions Numbers *****************************************************************/ - NonMaskableInt_IRQn = -14, /*!< 2 Non Maskable Interrupt */ - HardFault_IRQn = -13, /*!< 3 Cortex-M Hard Fault Interrupt */ - MemoryManagement_IRQn = -12, /*!< 4 Cortex-M Memory Management Interrupt */ - BusFault_IRQn = -11, /*!< 5 Cortex-M Bus Fault Interrupt */ - UsageFault_IRQn = -10, /*!< 6 Cortex-M Usage Fault Interrupt */ - SVCall_IRQn = -5, /*!< 11 Cortex-M SV Call Interrupt */ - DebugMonitor_IRQn = -4, /*!< 12 Cortex-M Debug Monitor Interrupt */ - PendSV_IRQn = -2, /*!< 14 Cortex-M Pend SV Interrupt */ - SysTick_IRQn = -1, /*!< 15 Cortex-M System Tick Interrupt */ -/****** STM32 specific Interrupt Numbers **********************************************************************/ - WWDG_IRQn = 0, /*!< Window WatchDog Interrupt ( wwdg1_it, wwdg2_it) */ - PVD_AVD_IRQn = 1, /*!< PVD/AVD through EXTI Line detection Interrupt */ - TAMP_STAMP_IRQn = 2, /*!< Tamper and TimeStamp interrupts through the EXTI line */ - RTC_WKUP_IRQn = 3, /*!< RTC Wakeup interrupt through the EXTI line */ - FLASH_IRQn = 4, /*!< FLASH global Interrupt */ - RCC_IRQn = 5, /*!< RCC global Interrupt */ - EXTI0_IRQn = 6, /*!< EXTI Line0 Interrupt */ - EXTI1_IRQn = 7, /*!< EXTI Line1 Interrupt */ - EXTI2_IRQn = 8, /*!< EXTI Line2 Interrupt */ - EXTI3_IRQn = 9, /*!< EXTI Line3 Interrupt */ - EXTI4_IRQn = 10, /*!< EXTI Line4 Interrupt */ - DMA1_Stream0_IRQn = 11, /*!< DMA1 Stream 0 global Interrupt */ - DMA1_Stream1_IRQn = 12, /*!< DMA1 Stream 1 global Interrupt */ - DMA1_Stream2_IRQn = 13, /*!< DMA1 Stream 2 global Interrupt */ - DMA1_Stream3_IRQn = 14, /*!< DMA1 Stream 3 global Interrupt */ - DMA1_Stream4_IRQn = 15, /*!< DMA1 Stream 4 global Interrupt */ - DMA1_Stream5_IRQn = 16, /*!< DMA1 Stream 5 global Interrupt */ - DMA1_Stream6_IRQn = 17, /*!< DMA1 Stream 6 global Interrupt */ - ADC_IRQn = 18, /*!< ADC1 and ADC2 global Interrupts */ - FDCAN1_IT0_IRQn = 19, /*!< FDCAN1 Interrupt line 0 */ - FDCAN2_IT0_IRQn = 20, /*!< FDCAN2 Interrupt line 0 */ - FDCAN1_IT1_IRQn = 21, /*!< FDCAN1 Interrupt line 1 */ - FDCAN2_IT1_IRQn = 22, /*!< FDCAN2 Interrupt line 1 */ - EXTI9_5_IRQn = 23, /*!< External Line[9:5] Interrupts */ - TIM1_BRK_IRQn = 24, /*!< TIM1 Break Interrupt */ - TIM1_UP_IRQn = 25, /*!< TIM1 Update Interrupt */ - TIM1_TRG_COM_IRQn = 26, /*!< TIM1 Trigger and Commutation Interrupt */ - TIM1_CC_IRQn = 27, /*!< TIM1 Capture Compare Interrupt */ - TIM2_IRQn = 28, /*!< TIM2 global Interrupt */ - TIM3_IRQn = 29, /*!< TIM3 global Interrupt */ - TIM4_IRQn = 30, /*!< TIM4 global Interrupt */ - I2C1_EV_IRQn = 31, /*!< I2C1 Event Interrupt */ - I2C1_ER_IRQn = 32, /*!< I2C1 Error Interrupt */ - I2C2_EV_IRQn = 33, /*!< I2C2 Event Interrupt */ - I2C2_ER_IRQn = 34, /*!< I2C2 Error Interrupt */ - SPI1_IRQn = 35, /*!< SPI1 global Interrupt */ - SPI2_IRQn = 36, /*!< SPI2 global Interrupt */ - USART1_IRQn = 37, /*!< USART1 global Interrupt */ - USART2_IRQn = 38, /*!< USART2 global Interrupt */ - USART3_IRQn = 39, /*!< USART3 global Interrupt */ - EXTI15_10_IRQn = 40, /*!< External Line[15:10] Interrupts */ - RTC_Alarm_IRQn = 41, /*!< RTC Alarm (A and B) through EXTI Line Interrupt */ - TIM8_BRK_TIM12_IRQn = 43, /*!< TIM8 Break Interrupt and TIM12 global interrupt */ - TIM8_UP_TIM13_IRQn = 44, /*!< TIM8 Update Interrupt and TIM13 global interrupt */ - TIM8_TRG_COM_TIM14_IRQn = 45, /*!< TIM8 Trigger and Commutation Interrupt and TIM14 global interrupt */ - TIM8_CC_IRQn = 46, /*!< TIM8 Capture Compare Interrupt */ - DMA1_Stream7_IRQn = 47, /*!< DMA1 Stream7 Interrupt */ - FMC_IRQn = 48, /*!< FMC global Interrupt */ - SDMMC1_IRQn = 49, /*!< SDMMC1 global Interrupt */ - TIM5_IRQn = 50, /*!< TIM5 global Interrupt */ - SPI3_IRQn = 51, /*!< SPI3 global Interrupt */ - UART4_IRQn = 52, /*!< UART4 global Interrupt */ - UART5_IRQn = 53, /*!< UART5 global Interrupt */ - TIM6_DAC_IRQn = 54, /*!< TIM6 global and DAC1&2 underrun error interrupts */ - TIM7_IRQn = 55, /*!< TIM7 global interrupt */ - DMA2_Stream0_IRQn = 56, /*!< DMA2 Stream 0 global Interrupt */ - DMA2_Stream1_IRQn = 57, /*!< DMA2 Stream 1 global Interrupt */ - DMA2_Stream2_IRQn = 58, /*!< DMA2 Stream 2 global Interrupt */ - DMA2_Stream3_IRQn = 59, /*!< DMA2 Stream 3 global Interrupt */ - DMA2_Stream4_IRQn = 60, /*!< DMA2 Stream 4 global Interrupt */ - ETH_IRQn = 61, /*!< Ethernet global Interrupt */ - ETH_WKUP_IRQn = 62, /*!< Ethernet Wakeup through EXTI line Interrupt */ - FDCAN_CAL_IRQn = 63, /*!< FDCAN Calibration unit Interrupt */ - DMA2_Stream5_IRQn = 68, /*!< DMA2 Stream 5 global interrupt */ - DMA2_Stream6_IRQn = 69, /*!< DMA2 Stream 6 global interrupt */ - DMA2_Stream7_IRQn = 70, /*!< DMA2 Stream 7 global interrupt */ - USART6_IRQn = 71, /*!< USART6 global interrupt */ - I2C3_EV_IRQn = 72, /*!< I2C3 event interrupt */ - I2C3_ER_IRQn = 73, /*!< I2C3 error interrupt */ - OTG_HS_EP1_OUT_IRQn = 74, /*!< USB OTG HS End Point 1 Out global interrupt */ - OTG_HS_EP1_IN_IRQn = 75, /*!< USB OTG HS End Point 1 In global interrupt */ - OTG_HS_WKUP_IRQn = 76, /*!< USB OTG HS Wakeup through EXTI interrupt */ - OTG_HS_IRQn = 77, /*!< USB OTG HS global interrupt */ - DCMI_PSSI_IRQn = 78, /*!< DCMI and PSSI global interrupt */ - RNG_IRQn = 80, /*!< RNG global interrupt */ - FPU_IRQn = 81, /*!< FPU global interrupt */ - UART7_IRQn = 82, /*!< UART7 global interrupt */ - UART8_IRQn = 83, /*!< UART8 global interrupt */ - SPI4_IRQn = 84, /*!< SPI4 global Interrupt */ - SPI5_IRQn = 85, /*!< SPI5 global Interrupt */ - SPI6_IRQn = 86, /*!< SPI6 global Interrupt */ - SAI1_IRQn = 87, /*!< SAI1 global Interrupt */ - LTDC_IRQn = 88, /*!< LTDC global Interrupt */ - LTDC_ER_IRQn = 89, /*!< LTDC Error global Interrupt */ - DMA2D_IRQn = 90, /*!< DMA2D global Interrupt */ - OCTOSPI1_IRQn = 92, /*!< OCTOSPI1 global interrupt */ - LPTIM1_IRQn = 93, /*!< LP TIM1 interrupt */ - CEC_IRQn = 94, /*!< HDMI-CEC global Interrupt */ - I2C4_EV_IRQn = 95, /*!< I2C4 Event Interrupt */ - I2C4_ER_IRQn = 96, /*!< I2C4 Error Interrupt */ - SPDIF_RX_IRQn = 97, /*!< SPDIF-RX global Interrupt */ - DMAMUX1_OVR_IRQn = 102, /*! - -/** @addtogroup Peripheral_registers_structures - * @{ - */ - -/** - * @brief Analog to Digital Converter - */ - -typedef struct -{ - __IO uint32_t ISR; /*!< ADC Interrupt and Status Register, Address offset: 0x00 */ - __IO uint32_t IER; /*!< ADC Interrupt Enable Register, Address offset: 0x04 */ - __IO uint32_t CR; /*!< ADC control register, Address offset: 0x08 */ - __IO uint32_t CFGR; /*!< ADC Configuration register, Address offset: 0x0C */ - __IO uint32_t CFGR2; /*!< ADC Configuration register 2, Address offset: 0x10 */ - __IO uint32_t SMPR1; /*!< ADC sample time register 1, Address offset: 0x14 */ - __IO uint32_t SMPR2; /*!< ADC sample time register 2, Address offset: 0x18 */ - __IO uint32_t PCSEL_RES0; /*!< Reserved for ADC3, ADC1/2 pre-channel selection, Address offset: 0x1C */ - __IO uint32_t LTR1_TR1; /*!< ADC watchdog Lower threshold register 1, Address offset: 0x20 */ - __IO uint32_t HTR1_TR2; /*!< ADC watchdog higher threshold register 1, Address offset: 0x24 */ - __IO uint32_t RES1_TR3; /*!< Reserved for ADC1/2, ADC3 threshold register, Address offset: 0x28 */ - uint32_t RESERVED2; /*!< Reserved, 0x02C */ - __IO uint32_t SQR1; /*!< ADC regular sequence register 1, Address offset: 0x30 */ - __IO uint32_t SQR2; /*!< ADC regular sequence register 2, Address offset: 0x34 */ - __IO uint32_t SQR3; /*!< ADC regular sequence register 3, Address offset: 0x38 */ - __IO uint32_t SQR4; /*!< ADC regular sequence register 4, Address offset: 0x3C */ - __IO uint32_t DR; /*!< ADC regular data register, Address offset: 0x40 */ - uint32_t RESERVED3; /*!< Reserved, 0x044 */ - uint32_t RESERVED4; /*!< Reserved, 0x048 */ - __IO uint32_t JSQR; /*!< ADC injected sequence register, Address offset: 0x4C */ - uint32_t RESERVED5[4]; /*!< Reserved, 0x050 - 0x05C */ - __IO uint32_t OFR1; /*!< ADC offset register 1, Address offset: 0x60 */ - __IO uint32_t OFR2; /*!< ADC offset register 2, Address offset: 0x64 */ - __IO uint32_t OFR3; /*!< ADC offset register 3, Address offset: 0x68 */ - __IO uint32_t OFR4; /*!< ADC offset register 4, Address offset: 0x6C */ - uint32_t RESERVED6[4]; /*!< Reserved, 0x070 - 0x07C */ - __IO uint32_t JDR1; /*!< ADC injected data register 1, Address offset: 0x80 */ - __IO uint32_t JDR2; /*!< ADC injected data register 2, Address offset: 0x84 */ - __IO uint32_t JDR3; /*!< ADC injected data register 3, Address offset: 0x88 */ - __IO uint32_t JDR4; /*!< ADC injected data register 4, Address offset: 0x8C */ - uint32_t RESERVED7[4]; /*!< Reserved, 0x090 - 0x09C */ - __IO uint32_t AWD2CR; /*!< ADC Analog Watchdog 2 Configuration Register, Address offset: 0xA0 */ - __IO uint32_t AWD3CR; /*!< ADC Analog Watchdog 3 Configuration Register, Address offset: 0xA4 */ - uint32_t RESERVED8; /*!< Reserved, 0x0A8 */ - uint32_t RESERVED9; /*!< Reserved, 0x0AC */ - __IO uint32_t LTR2_DIFSEL; /*!< ADC watchdog Lower threshold register 2, Difsel for ADC3, Address offset: 0xB0 */ - __IO uint32_t HTR2_CALFACT; /*!< ADC watchdog Higher threshold register 2, Calfact for ADC3, Address offset: 0xB4 */ - __IO uint32_t LTR3_RES10; /*!< ADC watchdog Lower threshold register 3, specific ADC1/2, Address offset: 0xB8 */ - __IO uint32_t HTR3_RES11; /*!< ADC watchdog Higher threshold register 3, specific ADC1/2, Address offset: 0xBC */ - __IO uint32_t DIFSEL_RES12; /*!< ADC Differential Mode Selection Register specific ADC1/2, Address offset: 0xC0 */ - __IO uint32_t CALFACT_RES13; /*!< ADC Calibration Factors specific ADC1/2, Address offset: 0xC4 */ - __IO uint32_t CALFACT2_RES14; /*!< ADC Linearity Calibration Factors specific ADC1/2, Address offset: 0xC8 */ -} ADC_TypeDef; - - -typedef struct -{ -__IO uint32_t CSR; /*!< ADC Common status register, Address offset: ADC1/3 base address + 0x300 */ -uint32_t RESERVED; /*!< Reserved, ADC1/3 base address + 0x304 */ -__IO uint32_t CCR; /*!< ADC common control register, Address offset: ADC1/3 base address + 0x308 */ -__IO uint32_t CDR; /*!< ADC common regular data register for dual Address offset: ADC1/3 base address + 0x30C */ -__IO uint32_t CDR2; /*!< ADC common regular data register for 32-bit dual mode Address offset: ADC1/3 base address + 0x310 */ - -} ADC_Common_TypeDef; - - -/** - * @brief VREFBUF - */ - -typedef struct -{ - __IO uint32_t CSR; /*!< VREFBUF control and status register, Address offset: 0x00 */ - __IO uint32_t CCR; /*!< VREFBUF calibration and control register, Address offset: 0x04 */ -} VREFBUF_TypeDef; - - -/** - * @brief FD Controller Area Network - */ - -typedef struct -{ - __IO uint32_t CREL; /*!< FDCAN Core Release register, Address offset: 0x000 */ - __IO uint32_t ENDN; /*!< FDCAN Endian register, Address offset: 0x004 */ - __IO uint32_t RESERVED1; /*!< Reserved, 0x008 */ - __IO uint32_t DBTP; /*!< FDCAN Data Bit Timing & Prescaler register, Address offset: 0x00C */ - __IO uint32_t TEST; /*!< FDCAN Test register, Address offset: 0x010 */ - __IO uint32_t RWD; /*!< FDCAN RAM Watchdog register, Address offset: 0x014 */ - __IO uint32_t CCCR; /*!< FDCAN CC Control register, Address offset: 0x018 */ - __IO uint32_t NBTP; /*!< FDCAN Nominal Bit Timing & Prescaler register, Address offset: 0x01C */ - __IO uint32_t TSCC; /*!< FDCAN Timestamp Counter Configuration register, Address offset: 0x020 */ - __IO uint32_t TSCV; /*!< FDCAN Timestamp Counter Value register, Address offset: 0x024 */ - __IO uint32_t TOCC; /*!< FDCAN Timeout Counter Configuration register, Address offset: 0x028 */ - __IO uint32_t TOCV; /*!< FDCAN Timeout Counter Value register, Address offset: 0x02C */ - __IO uint32_t RESERVED2[4]; /*!< Reserved, 0x030 - 0x03C */ - __IO uint32_t ECR; /*!< FDCAN Error Counter register, Address offset: 0x040 */ - __IO uint32_t PSR; /*!< FDCAN Protocol Status register, Address offset: 0x044 */ - __IO uint32_t TDCR; /*!< FDCAN Transmitter Delay Compensation register, Address offset: 0x048 */ - __IO uint32_t RESERVED3; /*!< Reserved, 0x04C */ - __IO uint32_t IR; /*!< FDCAN Interrupt register, Address offset: 0x050 */ - __IO uint32_t IE; /*!< FDCAN Interrupt Enable register, Address offset: 0x054 */ - __IO uint32_t ILS; /*!< FDCAN Interrupt Line Select register, Address offset: 0x058 */ - __IO uint32_t ILE; /*!< FDCAN Interrupt Line Enable register, Address offset: 0x05C */ - __IO uint32_t RESERVED4[8]; /*!< Reserved, 0x060 - 0x07C */ - __IO uint32_t GFC; /*!< FDCAN Global Filter Configuration register, Address offset: 0x080 */ - __IO uint32_t SIDFC; /*!< FDCAN Standard ID Filter Configuration register, Address offset: 0x084 */ - __IO uint32_t XIDFC; /*!< FDCAN Extended ID Filter Configuration register, Address offset: 0x088 */ - __IO uint32_t RESERVED5; /*!< Reserved, 0x08C */ - __IO uint32_t XIDAM; /*!< FDCAN Extended ID AND Mask register, Address offset: 0x090 */ - __IO uint32_t HPMS; /*!< FDCAN High Priority Message Status register, Address offset: 0x094 */ - __IO uint32_t NDAT1; /*!< FDCAN New Data 1 register, Address offset: 0x098 */ - __IO uint32_t NDAT2; /*!< FDCAN New Data 2 register, Address offset: 0x09C */ - __IO uint32_t RXF0C; /*!< FDCAN Rx FIFO 0 Configuration register, Address offset: 0x0A0 */ - __IO uint32_t RXF0S; /*!< FDCAN Rx FIFO 0 Status register, Address offset: 0x0A4 */ - __IO uint32_t RXF0A; /*!< FDCAN Rx FIFO 0 Acknowledge register, Address offset: 0x0A8 */ - __IO uint32_t RXBC; /*!< FDCAN Rx Buffer Configuration register, Address offset: 0x0AC */ - __IO uint32_t RXF1C; /*!< FDCAN Rx FIFO 1 Configuration register, Address offset: 0x0B0 */ - __IO uint32_t RXF1S; /*!< FDCAN Rx FIFO 1 Status register, Address offset: 0x0B4 */ - __IO uint32_t RXF1A; /*!< FDCAN Rx FIFO 1 Acknowledge register, Address offset: 0x0B8 */ - __IO uint32_t RXESC; /*!< FDCAN Rx Buffer/FIFO Element Size Configuration register, Address offset: 0x0BC */ - __IO uint32_t TXBC; /*!< FDCAN Tx Buffer Configuration register, Address offset: 0x0C0 */ - __IO uint32_t TXFQS; /*!< FDCAN Tx FIFO/Queue Status register, Address offset: 0x0C4 */ - __IO uint32_t TXESC; /*!< FDCAN Tx Buffer Element Size Configuration register, Address offset: 0x0C8 */ - __IO uint32_t TXBRP; /*!< FDCAN Tx Buffer Request Pending register, Address offset: 0x0CC */ - __IO uint32_t TXBAR; /*!< FDCAN Tx Buffer Add Request register, Address offset: 0x0D0 */ - __IO uint32_t TXBCR; /*!< FDCAN Tx Buffer Cancellation Request register, Address offset: 0x0D4 */ - __IO uint32_t TXBTO; /*!< FDCAN Tx Buffer Transmission Occurred register, Address offset: 0x0D8 */ - __IO uint32_t TXBCF; /*!< FDCAN Tx Buffer Cancellation Finished register, Address offset: 0x0DC */ - __IO uint32_t TXBTIE; /*!< FDCAN Tx Buffer Transmission Interrupt Enable register, Address offset: 0x0E0 */ - __IO uint32_t TXBCIE; /*!< FDCAN Tx Buffer Cancellation Finished Interrupt Enable register, Address offset: 0x0E4 */ - __IO uint32_t RESERVED6[2]; /*!< Reserved, 0x0E8 - 0x0EC */ - __IO uint32_t TXEFC; /*!< FDCAN Tx Event FIFO Configuration register, Address offset: 0x0F0 */ - __IO uint32_t TXEFS; /*!< FDCAN Tx Event FIFO Status register, Address offset: 0x0F4 */ - __IO uint32_t TXEFA; /*!< FDCAN Tx Event FIFO Acknowledge register, Address offset: 0x0F8 */ - __IO uint32_t RESERVED7; /*!< Reserved, 0x0FC */ -} FDCAN_GlobalTypeDef; - -/** - * @brief TTFD Controller Area Network - */ - -typedef struct -{ - __IO uint32_t TTTMC; /*!< TT Trigger Memory Configuration register, Address offset: 0x100 */ - __IO uint32_t TTRMC; /*!< TT Reference Message Configuration register, Address offset: 0x104 */ - __IO uint32_t TTOCF; /*!< TT Operation Configuration register, Address offset: 0x108 */ - __IO uint32_t TTMLM; /*!< TT Matrix Limits register, Address offset: 0x10C */ - __IO uint32_t TURCF; /*!< TUR Configuration register, Address offset: 0x110 */ - __IO uint32_t TTOCN; /*!< TT Operation Control register, Address offset: 0x114 */ - __IO uint32_t TTGTP; /*!< TT Global Time Preset register, Address offset: 0x118 */ - __IO uint32_t TTTMK; /*!< TT Time Mark register, Address offset: 0x11C */ - __IO uint32_t TTIR; /*!< TT Interrupt register, Address offset: 0x120 */ - __IO uint32_t TTIE; /*!< TT Interrupt Enable register, Address offset: 0x124 */ - __IO uint32_t TTILS; /*!< TT Interrupt Line Select register, Address offset: 0x128 */ - __IO uint32_t TTOST; /*!< TT Operation Status register, Address offset: 0x12C */ - __IO uint32_t TURNA; /*!< TT TUR Numerator Actual register, Address offset: 0x130 */ - __IO uint32_t TTLGT; /*!< TT Local and Global Time register, Address offset: 0x134 */ - __IO uint32_t TTCTC; /*!< TT Cycle Time and Count register, Address offset: 0x138 */ - __IO uint32_t TTCPT; /*!< TT Capture Time register, Address offset: 0x13C */ - __IO uint32_t TTCSM; /*!< TT Cycle Sync Mark register, Address offset: 0x140 */ - __IO uint32_t RESERVED1[111]; /*!< Reserved, 0x144 - 0x2FC */ - __IO uint32_t TTTS; /*!< TT Trigger Select register, Address offset: 0x300 */ -} TTCAN_TypeDef; - -/** - * @brief FD Controller Area Network - */ - -typedef struct -{ - __IO uint32_t CREL; /*!< Clock Calibration Unit Core Release register, Address offset: 0x00 */ - __IO uint32_t CCFG; /*!< Calibration Configuration register, Address offset: 0x04 */ - __IO uint32_t CSTAT; /*!< Calibration Status register, Address offset: 0x08 */ - __IO uint32_t CWD; /*!< Calibration Watchdog register, Address offset: 0x0C */ - __IO uint32_t IR; /*!< CCU Interrupt register, Address offset: 0x10 */ - __IO uint32_t IE; /*!< CCU Interrupt Enable register, Address offset: 0x14 */ -} FDCAN_ClockCalibrationUnit_TypeDef; - - -/** - * @brief Consumer Electronics Control - */ - -typedef struct -{ - __IO uint32_t CR; /*!< CEC control register, Address offset:0x00 */ - __IO uint32_t CFGR; /*!< CEC configuration register, Address offset:0x04 */ - __IO uint32_t TXDR; /*!< CEC Tx data register , Address offset:0x08 */ - __IO uint32_t RXDR; /*!< CEC Rx Data Register, Address offset:0x0C */ - __IO uint32_t ISR; /*!< CEC Interrupt and Status Register, Address offset:0x10 */ - __IO uint32_t IER; /*!< CEC interrupt enable register, Address offset:0x14 */ -}CEC_TypeDef; - -/** - * @brief COordincate Rotation DIgital Computer - */ -typedef struct -{ - __IO uint32_t CSR; /*!< CORDIC control and status register, Address offset: 0x00 */ - __IO uint32_t WDATA; /*!< CORDIC argument register, Address offset: 0x04 */ - __IO uint32_t RDATA; /*!< CORDIC result register, Address offset: 0x08 */ -} CORDIC_TypeDef; - -/** - * @brief CRC calculation unit - */ - -typedef struct -{ - __IO uint32_t DR; /*!< CRC Data register, Address offset: 0x00 */ - __IO uint32_t IDR; /*!< CRC Independent data register, Address offset: 0x04 */ - __IO uint32_t CR; /*!< CRC Control register, Address offset: 0x08 */ - uint32_t RESERVED2; /*!< Reserved, 0x0C */ - __IO uint32_t INIT; /*!< Initial CRC value register, Address offset: 0x10 */ - __IO uint32_t POL; /*!< CRC polynomial register, Address offset: 0x14 */ -} CRC_TypeDef; - - -/** - * @brief Clock Recovery System - */ -typedef struct -{ -__IO uint32_t CR; /*!< CRS ccontrol register, Address offset: 0x00 */ -__IO uint32_t CFGR; /*!< CRS configuration register, Address offset: 0x04 */ -__IO uint32_t ISR; /*!< CRS interrupt and status register, Address offset: 0x08 */ -__IO uint32_t ICR; /*!< CRS interrupt flag clear register, Address offset: 0x0C */ -} CRS_TypeDef; - - -/** - * @brief Digital to Analog Converter - */ - -typedef struct -{ - __IO uint32_t CR; /*!< DAC control register, Address offset: 0x00 */ - __IO uint32_t SWTRIGR; /*!< DAC software trigger register, Address offset: 0x04 */ - __IO uint32_t DHR12R1; /*!< DAC channel1 12-bit right-aligned data holding register, Address offset: 0x08 */ - __IO uint32_t DHR12L1; /*!< DAC channel1 12-bit left aligned data holding register, Address offset: 0x0C */ - __IO uint32_t DHR8R1; /*!< DAC channel1 8-bit right aligned data holding register, Address offset: 0x10 */ - __IO uint32_t DHR12R2; /*!< DAC channel2 12-bit right aligned data holding register, Address offset: 0x14 */ - __IO uint32_t DHR12L2; /*!< DAC channel2 12-bit left aligned data holding register, Address offset: 0x18 */ - __IO uint32_t DHR8R2; /*!< DAC channel2 8-bit right-aligned data holding register, Address offset: 0x1C */ - __IO uint32_t DHR12RD; /*!< Dual DAC 12-bit right-aligned data holding register, Address offset: 0x20 */ - __IO uint32_t DHR12LD; /*!< DUAL DAC 12-bit left aligned data holding register, Address offset: 0x24 */ - __IO uint32_t DHR8RD; /*!< DUAL DAC 8-bit right aligned data holding register, Address offset: 0x28 */ - __IO uint32_t DOR1; /*!< DAC channel1 data output register, Address offset: 0x2C */ - __IO uint32_t DOR2; /*!< DAC channel2 data output register, Address offset: 0x30 */ - __IO uint32_t SR; /*!< DAC status register, Address offset: 0x34 */ - __IO uint32_t CCR; /*!< DAC calibration control register, Address offset: 0x38 */ - __IO uint32_t MCR; /*!< DAC mode control register, Address offset: 0x3C */ - __IO uint32_t SHSR1; /*!< DAC Sample and Hold sample time register 1, Address offset: 0x40 */ - __IO uint32_t SHSR2; /*!< DAC Sample and Hold sample time register 2, Address offset: 0x44 */ - __IO uint32_t SHHR; /*!< DAC Sample and Hold hold time register, Address offset: 0x48 */ - __IO uint32_t SHRR; /*!< DAC Sample and Hold refresh time register, Address offset: 0x4C */ -} DAC_TypeDef; - -/** - * @brief DFSDM module registers - */ -typedef struct -{ - __IO uint32_t FLTCR1; /*!< DFSDM control register1, Address offset: 0x100 */ - __IO uint32_t FLTCR2; /*!< DFSDM control register2, Address offset: 0x104 */ - __IO uint32_t FLTISR; /*!< DFSDM interrupt and status register, Address offset: 0x108 */ - __IO uint32_t FLTICR; /*!< DFSDM interrupt flag clear register, Address offset: 0x10C */ - __IO uint32_t FLTJCHGR; /*!< DFSDM injected channel group selection register, Address offset: 0x110 */ - __IO uint32_t FLTFCR; /*!< DFSDM filter control register, Address offset: 0x114 */ - __IO uint32_t FLTJDATAR; /*!< DFSDM data register for injected group, Address offset: 0x118 */ - __IO uint32_t FLTRDATAR; /*!< DFSDM data register for regular group, Address offset: 0x11C */ - __IO uint32_t FLTAWHTR; /*!< DFSDM analog watchdog high threshold register, Address offset: 0x120 */ - __IO uint32_t FLTAWLTR; /*!< DFSDM analog watchdog low threshold register, Address offset: 0x124 */ - __IO uint32_t FLTAWSR; /*!< DFSDM analog watchdog status register Address offset: 0x128 */ - __IO uint32_t FLTAWCFR; /*!< DFSDM analog watchdog clear flag register Address offset: 0x12C */ - __IO uint32_t FLTEXMAX; /*!< DFSDM extreme detector maximum register, Address offset: 0x130 */ - __IO uint32_t FLTEXMIN; /*!< DFSDM extreme detector minimum register Address offset: 0x134 */ - __IO uint32_t FLTCNVTIMR; /*!< DFSDM conversion timer, Address offset: 0x138 */ -} DFSDM_Filter_TypeDef; - -/** - * @brief DFSDM channel configuration registers - */ -typedef struct -{ - __IO uint32_t CHCFGR1; /*!< DFSDM channel configuration register1, Address offset: 0x00 */ - __IO uint32_t CHCFGR2; /*!< DFSDM channel configuration register2, Address offset: 0x04 */ - __IO uint32_t CHAWSCDR; /*!< DFSDM channel analog watchdog and - short circuit detector register, Address offset: 0x08 */ - __IO uint32_t CHWDATAR; /*!< DFSDM channel watchdog filter data register, Address offset: 0x0C */ - __IO uint32_t CHDATINR; /*!< DFSDM channel data input register, Address offset: 0x10 */ -} DFSDM_Channel_TypeDef; - -/** - * @brief Debug MCU - */ -typedef struct -{ - __IO uint32_t IDCODE; /*!< MCU device ID code, Address offset: 0x00 */ - __IO uint32_t CR; /*!< Debug MCU configuration register, Address offset: 0x04 */ - uint32_t RESERVED4[11]; /*!< Reserved, Address offset: 0x08 */ - __IO uint32_t APB3FZ1; /*!< Debug MCU APB3FZ1 freeze register, Address offset: 0x34 */ - uint32_t RESERVED5; /*!< Reserved, Address offset: 0x38 */ - __IO uint32_t APB1LFZ1; /*!< Debug MCU APB1LFZ1 freeze register, Address offset: 0x3C */ - uint32_t RESERVED6; /*!< Reserved, Address offset: 0x40 */ - __IO uint32_t APB1HFZ1; /*!< Debug MCU APB1LFZ1 freeze register, Address offset: 0x44 */ - uint32_t RESERVED7; /*!< Reserved, Address offset: 0x48 */ - __IO uint32_t APB2FZ1; /*!< Debug MCU APB2FZ1 freeze register, Address offset: 0x4C */ - uint32_t RESERVED8; /*!< Reserved, Address offset: 0x50 */ - __IO uint32_t APB4FZ1; /*!< Debug MCU APB4FZ1 freeze register, Address offset: 0x54 */ - __IO uint32_t RESERVED9[990]; /*!< Reserved, Address offset: 0x58-0xFCC */ - __IO uint32_t PIDR4; /*!< Debug MCU peripheral identity register 4, Address offset: 0xFD0 */ - __IO uint32_t RESERVED10[3];/*!< Reserved, Address offset: 0xFD4-0xFDC */ - __IO uint32_t PIDR0; /*!< Debug MCU peripheral identity register 0, Address offset: 0xFE0 */ - __IO uint32_t PIDR1; /*!< Debug MCU peripheral identity register 1, Address offset: 0xFE4 */ - __IO uint32_t PIDR2; /*!< Debug MCU peripheral identity register 2, Address offset: 0xFE8 */ - __IO uint32_t PIDR3; /*!< Debug MCU peripheral identity register 3, Address offset: 0xFEC */ - __IO uint32_t CIDR0; /*!< Debug MCU component identity register 0, Address offset: 0xFF0 */ - __IO uint32_t CIDR1; /*!< Debug MCU component identity register 1, Address offset: 0xFF4 */ - __IO uint32_t CIDR2; /*!< Debug MCU component identity register 2, Address offset: 0xFF8 */ - __IO uint32_t CIDR3; /*!< Debug MCU component identity register 3, Address offset: 0xFFC */ -}DBGMCU_TypeDef; -/** - * @brief DCMI - */ - -typedef struct -{ - __IO uint32_t CR; /*!< DCMI control register 1, Address offset: 0x00 */ - __IO uint32_t SR; /*!< DCMI status register, Address offset: 0x04 */ - __IO uint32_t RISR; /*!< DCMI raw interrupt status register, Address offset: 0x08 */ - __IO uint32_t IER; /*!< DCMI interrupt enable register, Address offset: 0x0C */ - __IO uint32_t MISR; /*!< DCMI masked interrupt status register, Address offset: 0x10 */ - __IO uint32_t ICR; /*!< DCMI interrupt clear register, Address offset: 0x14 */ - __IO uint32_t ESCR; /*!< DCMI embedded synchronization code register, Address offset: 0x18 */ - __IO uint32_t ESUR; /*!< DCMI embedded synchronization unmask register, Address offset: 0x1C */ - __IO uint32_t CWSTRTR; /*!< DCMI crop window start, Address offset: 0x20 */ - __IO uint32_t CWSIZER; /*!< DCMI crop window size, Address offset: 0x24 */ - __IO uint32_t DR; /*!< DCMI data register, Address offset: 0x28 */ -} DCMI_TypeDef; - -/** - * @brief PSSI - */ - -typedef struct -{ - __IO uint32_t CR; /*!< PSSI control register 1, Address offset: 0x000 */ - __IO uint32_t SR; /*!< PSSI status register, Address offset: 0x004 */ - __IO uint32_t RIS; /*!< PSSI raw interrupt status register, Address offset: 0x008 */ - __IO uint32_t IER; /*!< PSSI interrupt enable register, Address offset: 0x00C */ - __IO uint32_t MIS; /*!< PSSI masked interrupt status register, Address offset: 0x010 */ - __IO uint32_t ICR; /*!< PSSI interrupt clear register, Address offset: 0x014 */ - __IO uint32_t RESERVED1[4]; /*!< Reserved, 0x018 - 0x024 */ - __IO uint32_t DR; /*!< PSSI data register, Address offset: 0x028 */ - __IO uint32_t RESERVED2[241]; /*!< Reserved, 0x02C - 0x3EC */ - __IO uint32_t HWCFGR; /*!< PSSI IP HW configuration register, Address offset: 0x3F0 */ - __IO uint32_t VERR; /*!< PSSI IP version register, Address offset: 0x3F4 */ - __IO uint32_t IPIDR; /*!< PSSI IP ID register, Address offset: 0x3F8 */ - __IO uint32_t SIDR; /*!< PSSI SIZE ID register, Address offset: 0x3FC */ -} PSSI_TypeDef; - -/** - * @brief DMA Controller - */ - -typedef struct -{ - __IO uint32_t CR; /*!< DMA stream x configuration register */ - __IO uint32_t NDTR; /*!< DMA stream x number of data register */ - __IO uint32_t PAR; /*!< DMA stream x peripheral address register */ - __IO uint32_t M0AR; /*!< DMA stream x memory 0 address register */ - __IO uint32_t M1AR; /*!< DMA stream x memory 1 address register */ - __IO uint32_t FCR; /*!< DMA stream x FIFO control register */ -} DMA_Stream_TypeDef; - -typedef struct -{ - __IO uint32_t LISR; /*!< DMA low interrupt status register, Address offset: 0x00 */ - __IO uint32_t HISR; /*!< DMA high interrupt status register, Address offset: 0x04 */ - __IO uint32_t LIFCR; /*!< DMA low interrupt flag clear register, Address offset: 0x08 */ - __IO uint32_t HIFCR; /*!< DMA high interrupt flag clear register, Address offset: 0x0C */ -} DMA_TypeDef; - -typedef struct -{ - __IO uint32_t CCR; /*!< DMA channel x configuration register */ - __IO uint32_t CNDTR; /*!< DMA channel x number of data register */ - __IO uint32_t CPAR; /*!< DMA channel x peripheral address register */ - __IO uint32_t CM0AR; /*!< DMA channel x memory 0 address register */ - __IO uint32_t CM1AR; /*!< DMA channel x memory 1 address register */ -} BDMA_Channel_TypeDef; - -typedef struct -{ - __IO uint32_t ISR; /*!< DMA interrupt status register, Address offset: 0x00 */ - __IO uint32_t IFCR; /*!< DMA interrupt flag clear register, Address offset: 0x04 */ -} BDMA_TypeDef; - -typedef struct -{ - __IO uint32_t CCR; /*!< DMA Multiplexer Channel x Control Register */ -}DMAMUX_Channel_TypeDef; - -typedef struct -{ - __IO uint32_t CSR; /*!< DMA Channel Status Register */ - __IO uint32_t CFR; /*!< DMA Channel Clear Flag Register */ -}DMAMUX_ChannelStatus_TypeDef; - -typedef struct -{ - __IO uint32_t RGCR; /*!< DMA Request Generator x Control Register */ -}DMAMUX_RequestGen_TypeDef; - -typedef struct -{ - __IO uint32_t RGSR; /*!< DMA Request Generator Status Register */ - __IO uint32_t RGCFR; /*!< DMA Request Generator Clear Flag Register */ -}DMAMUX_RequestGenStatus_TypeDef; - -/** - * @brief MDMA Controller - */ -typedef struct -{ - __IO uint32_t GISR0; /*!< MDMA Global Interrupt/Status Register 0, Address offset: 0x00 */ -}MDMA_TypeDef; - -typedef struct -{ - __IO uint32_t CISR; /*!< MDMA channel x interrupt/status register, Address offset: 0x40 */ - __IO uint32_t CIFCR; /*!< MDMA channel x interrupt flag clear register, Address offset: 0x44 */ - __IO uint32_t CESR; /*!< MDMA Channel x error status register, Address offset: 0x48 */ - __IO uint32_t CCR; /*!< MDMA channel x control register, Address offset: 0x4C */ - __IO uint32_t CTCR; /*!< MDMA channel x Transfer Configuration register, Address offset: 0x50 */ - __IO uint32_t CBNDTR; /*!< MDMA Channel x block number of data register, Address offset: 0x54 */ - __IO uint32_t CSAR; /*!< MDMA channel x source address register, Address offset: 0x58 */ - __IO uint32_t CDAR; /*!< MDMA channel x destination address register, Address offset: 0x5C */ - __IO uint32_t CBRUR; /*!< MDMA channel x Block Repeat address Update register, Address offset: 0x60 */ - __IO uint32_t CLAR; /*!< MDMA channel x Link Address register, Address offset: 0x64 */ - __IO uint32_t CTBR; /*!< MDMA channel x Trigger and Bus selection Register, Address offset: 0x68 */ - uint32_t RESERVED0; /*!< Reserved, 0x6C */ - __IO uint32_t CMAR; /*!< MDMA channel x Mask address register, Address offset: 0x70 */ - __IO uint32_t CMDR; /*!< MDMA channel x Mask Data register, Address offset: 0x74 */ -}MDMA_Channel_TypeDef; - -/** - * @brief DMA2D Controller - */ - -typedef struct -{ - __IO uint32_t CR; /*!< DMA2D Control Register, Address offset: 0x00 */ - __IO uint32_t ISR; /*!< DMA2D Interrupt Status Register, Address offset: 0x04 */ - __IO uint32_t IFCR; /*!< DMA2D Interrupt Flag Clear Register, Address offset: 0x08 */ - __IO uint32_t FGMAR; /*!< DMA2D Foreground Memory Address Register, Address offset: 0x0C */ - __IO uint32_t FGOR; /*!< DMA2D Foreground Offset Register, Address offset: 0x10 */ - __IO uint32_t BGMAR; /*!< DMA2D Background Memory Address Register, Address offset: 0x14 */ - __IO uint32_t BGOR; /*!< DMA2D Background Offset Register, Address offset: 0x18 */ - __IO uint32_t FGPFCCR; /*!< DMA2D Foreground PFC Control Register, Address offset: 0x1C */ - __IO uint32_t FGCOLR; /*!< DMA2D Foreground Color Register, Address offset: 0x20 */ - __IO uint32_t BGPFCCR; /*!< DMA2D Background PFC Control Register, Address offset: 0x24 */ - __IO uint32_t BGCOLR; /*!< DMA2D Background Color Register, Address offset: 0x28 */ - __IO uint32_t FGCMAR; /*!< DMA2D Foreground CLUT Memory Address Register, Address offset: 0x2C */ - __IO uint32_t BGCMAR; /*!< DMA2D Background CLUT Memory Address Register, Address offset: 0x30 */ - __IO uint32_t OPFCCR; /*!< DMA2D Output PFC Control Register, Address offset: 0x34 */ - __IO uint32_t OCOLR; /*!< DMA2D Output Color Register, Address offset: 0x38 */ - __IO uint32_t OMAR; /*!< DMA2D Output Memory Address Register, Address offset: 0x3C */ - __IO uint32_t OOR; /*!< DMA2D Output Offset Register, Address offset: 0x40 */ - __IO uint32_t NLR; /*!< DMA2D Number of Line Register, Address offset: 0x44 */ - __IO uint32_t LWR; /*!< DMA2D Line Watermark Register, Address offset: 0x48 */ - __IO uint32_t AMTCR; /*!< DMA2D AHB Master Timer Configuration Register, Address offset: 0x4C */ - uint32_t RESERVED[236]; /*!< Reserved, 0x50-0x3FF */ - __IO uint32_t FGCLUT[256]; /*!< DMA2D Foreground CLUT, Address offset:400-7FF */ - __IO uint32_t BGCLUT[256]; /*!< DMA2D Background CLUT, Address offset:800-BFF */ -} DMA2D_TypeDef; - - -/** - * @brief Ethernet MAC - */ -typedef struct -{ - __IO uint32_t MACCR; - __IO uint32_t MACECR; - __IO uint32_t MACPFR; - __IO uint32_t MACWTR; - __IO uint32_t MACHT0R; - __IO uint32_t MACHT1R; - uint32_t RESERVED1[14]; - __IO uint32_t MACVTR; - uint32_t RESERVED2; - __IO uint32_t MACVHTR; - uint32_t RESERVED3; - __IO uint32_t MACVIR; - __IO uint32_t MACIVIR; - uint32_t RESERVED4[2]; - __IO uint32_t MACTFCR; - uint32_t RESERVED5[7]; - __IO uint32_t MACRFCR; - uint32_t RESERVED6[7]; - __IO uint32_t MACISR; - __IO uint32_t MACIER; - __IO uint32_t MACRXTXSR; - uint32_t RESERVED7; - __IO uint32_t MACPCSR; - __IO uint32_t MACRWKPFR; - uint32_t RESERVED8[2]; - __IO uint32_t MACLCSR; - __IO uint32_t MACLTCR; - __IO uint32_t MACLETR; - __IO uint32_t MAC1USTCR; - uint32_t RESERVED9[12]; - __IO uint32_t MACVR; - __IO uint32_t MACDR; - uint32_t RESERVED10; - __IO uint32_t MACHWF0R; - __IO uint32_t MACHWF1R; - __IO uint32_t MACHWF2R; - uint32_t RESERVED11[54]; - __IO uint32_t MACMDIOAR; - __IO uint32_t MACMDIODR; - uint32_t RESERVED12[2]; - __IO uint32_t MACARPAR; - uint32_t RESERVED13[59]; - __IO uint32_t MACA0HR; - __IO uint32_t MACA0LR; - __IO uint32_t MACA1HR; - __IO uint32_t MACA1LR; - __IO uint32_t MACA2HR; - __IO uint32_t MACA2LR; - __IO uint32_t MACA3HR; - __IO uint32_t MACA3LR; - uint32_t RESERVED14[248]; - __IO uint32_t MMCCR; - __IO uint32_t MMCRIR; - __IO uint32_t MMCTIR; - __IO uint32_t MMCRIMR; - __IO uint32_t MMCTIMR; - uint32_t RESERVED15[14]; - __IO uint32_t MMCTSCGPR; - __IO uint32_t MMCTMCGPR; - uint32_t RESERVED16[5]; - __IO uint32_t MMCTPCGR; - uint32_t RESERVED17[10]; - __IO uint32_t MMCRCRCEPR; - __IO uint32_t MMCRAEPR; - uint32_t RESERVED18[10]; - __IO uint32_t MMCRUPGR; - uint32_t RESERVED19[9]; - __IO uint32_t MMCTLPIMSTR; - __IO uint32_t MMCTLPITCR; - __IO uint32_t MMCRLPIMSTR; - __IO uint32_t MMCRLPITCR; - uint32_t RESERVED20[65]; - __IO uint32_t MACL3L4C0R; - __IO uint32_t MACL4A0R; - uint32_t RESERVED21[2]; - __IO uint32_t MACL3A0R0R; - __IO uint32_t MACL3A1R0R; - __IO uint32_t MACL3A2R0R; - __IO uint32_t MACL3A3R0R; - uint32_t RESERVED22[4]; - __IO uint32_t MACL3L4C1R; - __IO uint32_t MACL4A1R; - uint32_t RESERVED23[2]; - __IO uint32_t MACL3A0R1R; - __IO uint32_t MACL3A1R1R; - __IO uint32_t MACL3A2R1R; - __IO uint32_t MACL3A3R1R; - uint32_t RESERVED24[108]; - __IO uint32_t MACTSCR; - __IO uint32_t MACSSIR; - __IO uint32_t MACSTSR; - __IO uint32_t MACSTNR; - __IO uint32_t MACSTSUR; - __IO uint32_t MACSTNUR; - __IO uint32_t MACTSAR; - uint32_t RESERVED25; - __IO uint32_t MACTSSR; - uint32_t RESERVED26[3]; - __IO uint32_t MACTTSSNR; - __IO uint32_t MACTTSSSR; - uint32_t RESERVED27[2]; - __IO uint32_t MACACR; - uint32_t RESERVED28; - __IO uint32_t MACATSNR; - __IO uint32_t MACATSSR; - __IO uint32_t MACTSIACR; - __IO uint32_t MACTSEACR; - __IO uint32_t MACTSICNR; - __IO uint32_t MACTSECNR; - uint32_t RESERVED29[4]; - __IO uint32_t MACPPSCR; - uint32_t RESERVED30[3]; - __IO uint32_t MACPPSTTSR; - __IO uint32_t MACPPSTTNR; - __IO uint32_t MACPPSIR; - __IO uint32_t MACPPSWR; - uint32_t RESERVED31[12]; - __IO uint32_t MACPOCR; - __IO uint32_t MACSPI0R; - __IO uint32_t MACSPI1R; - __IO uint32_t MACSPI2R; - __IO uint32_t MACLMIR; - uint32_t RESERVED32[11]; - __IO uint32_t MTLOMR; - uint32_t RESERVED33[7]; - __IO uint32_t MTLISR; - uint32_t RESERVED34[55]; - __IO uint32_t MTLTQOMR; - __IO uint32_t MTLTQUR; - __IO uint32_t MTLTQDR; - uint32_t RESERVED35[8]; - __IO uint32_t MTLQICSR; - __IO uint32_t MTLRQOMR; - __IO uint32_t MTLRQMPOCR; - __IO uint32_t MTLRQDR; - uint32_t RESERVED36[177]; - __IO uint32_t DMAMR; - __IO uint32_t DMASBMR; - __IO uint32_t DMAISR; - __IO uint32_t DMADSR; - uint32_t RESERVED37[60]; - __IO uint32_t DMACCR; - __IO uint32_t DMACTCR; - __IO uint32_t DMACRCR; - uint32_t RESERVED38[2]; - __IO uint32_t DMACTDLAR; - uint32_t RESERVED39; - __IO uint32_t DMACRDLAR; - __IO uint32_t DMACTDTPR; - uint32_t RESERVED40; - __IO uint32_t DMACRDTPR; - __IO uint32_t DMACTDRLR; - __IO uint32_t DMACRDRLR; - __IO uint32_t DMACIER; - __IO uint32_t DMACRIWTR; -__IO uint32_t DMACSFCSR; - uint32_t RESERVED41; - __IO uint32_t DMACCATDR; - uint32_t RESERVED42; - __IO uint32_t DMACCARDR; - uint32_t RESERVED43; - __IO uint32_t DMACCATBR; - uint32_t RESERVED44; - __IO uint32_t DMACCARBR; - __IO uint32_t DMACSR; -uint32_t RESERVED45[2]; -__IO uint32_t DMACMFCR; -}ETH_TypeDef; -/** - * @brief External Interrupt/Event Controller - */ - -typedef struct -{ -__IO uint32_t RTSR1; /*!< EXTI Rising trigger selection register, Address offset: 0x00 */ -__IO uint32_t FTSR1; /*!< EXTI Falling trigger selection register, Address offset: 0x04 */ -__IO uint32_t SWIER1; /*!< EXTI Software interrupt event register, Address offset: 0x08 */ -__IO uint32_t D3PMR1; /*!< EXTI D3 Pending mask register, (same register as to SRDPMR1) Address offset: 0x0C */ -__IO uint32_t D3PCR1L; /*!< EXTI D3 Pending clear selection register low, (same register as to SRDPCR1L) Address offset: 0x10 */ -__IO uint32_t D3PCR1H; /*!< EXTI D3 Pending clear selection register High, (same register as to SRDPCR1H) Address offset: 0x14 */ -uint32_t RESERVED1[2]; /*!< Reserved, 0x18 to 0x1C */ -__IO uint32_t RTSR2; /*!< EXTI Rising trigger selection register, Address offset: 0x20 */ -__IO uint32_t FTSR2; /*!< EXTI Falling trigger selection register, Address offset: 0x24 */ -__IO uint32_t SWIER2; /*!< EXTI Software interrupt event register, Address offset: 0x28 */ -__IO uint32_t D3PMR2; /*!< EXTI D3 Pending mask register, (same register as to SRDPMR2) Address offset: 0x2C */ -__IO uint32_t D3PCR2L; /*!< EXTI D3 Pending clear selection register low, (same register as to SRDPCR2L) Address offset: 0x30 */ -__IO uint32_t D3PCR2H; /*!< EXTI D3 Pending clear selection register High, (same register as to SRDPCR2H) Address offset: 0x34 */ -uint32_t RESERVED2[2]; /*!< Reserved, 0x38 to 0x3C */ -__IO uint32_t RTSR3; /*!< EXTI Rising trigger selection register, Address offset: 0x40 */ -__IO uint32_t FTSR3; /*!< EXTI Falling trigger selection register, Address offset: 0x44 */ -__IO uint32_t SWIER3; /*!< EXTI Software interrupt event register, Address offset: 0x48 */ -__IO uint32_t D3PMR3; /*!< EXTI D3 Pending mask register, (same register as to SRDPMR3) Address offset: 0x4C */ -__IO uint32_t D3PCR3L; /*!< EXTI D3 Pending clear selection register low, (same register as to SRDPCR3L) Address offset: 0x50 */ -__IO uint32_t D3PCR3H; /*!< EXTI D3 Pending clear selection register High, (same register as to SRDPCR3H) Address offset: 0x54 */ -uint32_t RESERVED3[10]; /*!< Reserved, 0x58 to 0x7C */ -__IO uint32_t IMR1; /*!< EXTI Interrupt mask register, Address offset: 0x80 */ -__IO uint32_t EMR1; /*!< EXTI Event mask register, Address offset: 0x84 */ -__IO uint32_t PR1; /*!< EXTI Pending register, Address offset: 0x88 */ -uint32_t RESERVED4; /*!< Reserved, 0x8C */ -__IO uint32_t IMR2; /*!< EXTI Interrupt mask register, Address offset: 0x90 */ -__IO uint32_t EMR2; /*!< EXTI Event mask register, Address offset: 0x94 */ -__IO uint32_t PR2; /*!< EXTI Pending register, Address offset: 0x98 */ -uint32_t RESERVED5; /*!< Reserved, 0x9C */ -__IO uint32_t IMR3; /*!< EXTI Interrupt mask register, Address offset: 0xA0 */ -__IO uint32_t EMR3; /*!< EXTI Event mask register, Address offset: 0xA4 */ -__IO uint32_t PR3; /*!< EXTI Pending register, Address offset: 0xA8 */ -}EXTI_TypeDef; - -/** - * @brief This structure registers corresponds to EXTI_Typdef CPU1/CPU2 registers subset (IMRx, EMRx and PRx), allowing to define EXTI_D1/EXTI_D2 - * with rapid/common access to these IMRx, EMRx, PRx registers for CPU1 and CPU2. - * Note that EXTI_D1 and EXTI_D2 bases addresses are calculated to point to CPUx first register: - * IMR1 in case of EXTI_D1 that is addressing CPU1 (Cortex-M7) - * C2IMR1 in case of EXTI_D2 that is addressing CPU2 (Cortex-M4) - * Note: EXTI_D2 and corresponding C2IMRx, C2EMRx and C2PRx registers are available for Dual Core devices only - */ - -typedef struct -{ -__IO uint32_t IMR1; /*!< EXTI Interrupt mask register, Address offset: 0x00 */ -__IO uint32_t EMR1; /*!< EXTI Event mask register, Address offset: 0x04 */ -__IO uint32_t PR1; /*!< EXTI Pending register, Address offset: 0x08 */ -uint32_t RESERVED1; /*!< Reserved, 0x0C */ -__IO uint32_t IMR2; /*!< EXTI Interrupt mask register, Address offset: 0x10 */ -__IO uint32_t EMR2; /*!< EXTI Event mask register, Address offset: 0x14 */ -__IO uint32_t PR2; /*!< EXTI Pending register, Address offset: 0x18 */ -uint32_t RESERVED2; /*!< Reserved, 0x1C */ -__IO uint32_t IMR3; /*!< EXTI Interrupt mask register, Address offset: 0x20 */ -__IO uint32_t EMR3; /*!< EXTI Event mask register, Address offset: 0x24 */ -__IO uint32_t PR3; /*!< EXTI Pending register, Address offset: 0x28 */ -}EXTI_Core_TypeDef; - - -/** - * @brief FLASH Registers - */ - -typedef struct -{ - __IO uint32_t ACR; /*!< FLASH access control register, Address offset: 0x00 */ - __IO uint32_t KEYR1; /*!< Flash Key Register for bank1, Address offset: 0x04 */ - __IO uint32_t OPTKEYR; /*!< Flash Option Key Register, Address offset: 0x08 */ - __IO uint32_t CR1; /*!< Flash Control Register for bank1, Address offset: 0x0C */ - __IO uint32_t SR1; /*!< Flash Status Register for bank1, Address offset: 0x10 */ - __IO uint32_t CCR1; /*!< Flash Control Register for bank1, Address offset: 0x14 */ - __IO uint32_t OPTCR; /*!< Flash Option Control Register, Address offset: 0x18 */ - __IO uint32_t OPTSR_CUR; /*!< Flash Option Status Current Register, Address offset: 0x1C */ - __IO uint32_t OPTSR_PRG; /*!< Flash Option Status to Program Register, Address offset: 0x20 */ - __IO uint32_t OPTCCR; /*!< Flash Option Clear Control Register, Address offset: 0x24 */ - __IO uint32_t PRAR_CUR1; /*!< Flash Current Protection Address Register for bank1, Address offset: 0x28 */ - __IO uint32_t PRAR_PRG1; /*!< Flash Protection Address to Program Register for bank1, Address offset: 0x2C */ - __IO uint32_t SCAR_CUR1; /*!< Flash Current Secure Address Register for bank1, Address offset: 0x30 */ - __IO uint32_t SCAR_PRG1; /*!< Flash Secure Address to Program Register for bank1, Address offset: 0x34 */ - __IO uint32_t WPSN_CUR1; /*!< Flash Current Write Protection Register on bank1, Address offset: 0x38 */ - __IO uint32_t WPSN_PRG1; /*!< Flash Write Protection to Program Register on bank1, Address offset: 0x3C */ - __IO uint32_t BOOT_CUR; /*!< Flash Current Boot Address for Pelican Core Register, Address offset: 0x40 */ - __IO uint32_t BOOT_PRG; /*!< Flash Boot Address to Program for Pelican Core Register, Address offset: 0x44 */ - uint32_t RESERVED0[2]; /*!< Reserved, 0x48 to 0x4C */ - __IO uint32_t CRCCR1; /*!< Flash CRC Control register For Bank1 Register , Address offset: 0x50 */ - __IO uint32_t CRCSADD1; /*!< Flash CRC Start Address Register for Bank1 , Address offset: 0x54 */ - __IO uint32_t CRCEADD1; /*!< Flash CRC End Address Register for Bank1 , Address offset: 0x58 */ - __IO uint32_t CRCDATA; /*!< Flash CRC Data Register for Bank1 , Address offset: 0x5C */ - __IO uint32_t ECC_FA1; /*!< Flash ECC Fail Address For Bank1 Register , Address offset: 0x60 */ - uint32_t RESERVED[3]; /*!< Reserved, 0x64 to 0x6C */ - __IO uint32_t OPTSR2_CUR; /*!< Flash Option Status Current Register 2, Address offset: 0x70 */ - __IO uint32_t OPTSR2_PRG; /*!< Flash Option Status to Program Register 2, Address offset: 0x74 */ -} FLASH_TypeDef; - -/** - * @brief Filter and Mathematical ACcelerator - */ -typedef struct -{ - __IO uint32_t X1BUFCFG; /*!< FMAC X1 Buffer Configuration register, Address offset: 0x00 */ - __IO uint32_t X2BUFCFG; /*!< FMAC X2 Buffer Configuration register, Address offset: 0x04 */ - __IO uint32_t YBUFCFG; /*!< FMAC Y Buffer Configuration register, Address offset: 0x08 */ - __IO uint32_t PARAM; /*!< FMAC Parameter register, Address offset: 0x0C */ - __IO uint32_t CR; /*!< FMAC Control register, Address offset: 0x10 */ - __IO uint32_t SR; /*!< FMAC Status register, Address offset: 0x14 */ - __IO uint32_t WDATA; /*!< FMAC Write Data register, Address offset: 0x18 */ - __IO uint32_t RDATA; /*!< FMAC Read Data register, Address offset: 0x1C */ -} FMAC_TypeDef; - -/** - * @brief Flexible Memory Controller - */ - -typedef struct -{ - __IO uint32_t BTCR[8]; /*!< NOR/PSRAM chip-select control register(BCR) and chip-select timing register(BTR), Address offset: 0x00-1C */ -} FMC_Bank1_TypeDef; - -/** - * @brief Flexible Memory Controller Bank1E - */ - -typedef struct -{ - __IO uint32_t BWTR[7]; /*!< NOR/PSRAM write timing registers, Address offset: 0x104-0x11C */ -} FMC_Bank1E_TypeDef; - -/** - * @brief Flexible Memory Controller Bank2 - */ - -typedef struct -{ - __IO uint32_t PCR2; /*!< NAND Flash control register 2, Address offset: 0x60 */ - __IO uint32_t SR2; /*!< NAND Flash FIFO status and interrupt register 2, Address offset: 0x64 */ - __IO uint32_t PMEM2; /*!< NAND Flash Common memory space timing register 2, Address offset: 0x68 */ - __IO uint32_t PATT2; /*!< NAND Flash Attribute memory space timing register 2, Address offset: 0x6C */ - uint32_t RESERVED0; /*!< Reserved, 0x70 */ - __IO uint32_t ECCR2; /*!< NAND Flash ECC result registers 2, Address offset: 0x74 */ -} FMC_Bank2_TypeDef; - -/** - * @brief Flexible Memory Controller Bank3 - */ - -typedef struct -{ - __IO uint32_t PCR; /*!< NAND Flash control register 3, Address offset: 0x80 */ - __IO uint32_t SR; /*!< NAND Flash FIFO status and interrupt register 3, Address offset: 0x84 */ - __IO uint32_t PMEM; /*!< NAND Flash Common memory space timing register 3, Address offset: 0x88 */ - __IO uint32_t PATT; /*!< NAND Flash Attribute memory space timing register 3, Address offset: 0x8C */ - uint32_t RESERVED; /*!< Reserved, 0x90 */ - __IO uint32_t ECCR; /*!< NAND Flash ECC result registers 3, Address offset: 0x94 */ -} FMC_Bank3_TypeDef; - -/** - * @brief Flexible Memory Controller Bank5 and 6 - */ - - -typedef struct -{ - __IO uint32_t SDCR[2]; /*!< SDRAM Control registers , Address offset: 0x140-0x144 */ - __IO uint32_t SDTR[2]; /*!< SDRAM Timing registers , Address offset: 0x148-0x14C */ - __IO uint32_t SDCMR; /*!< SDRAM Command Mode register, Address offset: 0x150 */ - __IO uint32_t SDRTR; /*!< SDRAM Refresh Timer register, Address offset: 0x154 */ - __IO uint32_t SDSR; /*!< SDRAM Status register, Address offset: 0x158 */ -} FMC_Bank5_6_TypeDef; - -/** - * @brief General Purpose I/O - */ - -typedef struct -{ - __IO uint32_t MODER; /*!< GPIO port mode register, Address offset: 0x00 */ - __IO uint32_t OTYPER; /*!< GPIO port output type register, Address offset: 0x04 */ - __IO uint32_t OSPEEDR; /*!< GPIO port output speed register, Address offset: 0x08 */ - __IO uint32_t PUPDR; /*!< GPIO port pull-up/pull-down register, Address offset: 0x0C */ - __IO uint32_t IDR; /*!< GPIO port input data register, Address offset: 0x10 */ - __IO uint32_t ODR; /*!< GPIO port output data register, Address offset: 0x14 */ - __IO uint32_t BSRR; /*!< GPIO port bit set/reset, Address offset: 0x18 */ - __IO uint32_t LCKR; /*!< GPIO port configuration lock register, Address offset: 0x1C */ - __IO uint32_t AFR[2]; /*!< GPIO alternate function registers, Address offset: 0x20-0x24 */ -} GPIO_TypeDef; - -/** - * @brief Operational Amplifier (OPAMP) - */ - -typedef struct -{ - __IO uint32_t CSR; /*!< OPAMP control/status register, Address offset: 0x00 */ - __IO uint32_t OTR; /*!< OPAMP offset trimming register for normal mode, Address offset: 0x04 */ - __IO uint32_t HSOTR; /*!< OPAMP offset trimming register for high speed mode, Address offset: 0x08 */ -} OPAMP_TypeDef; - -/** - * @brief System configuration controller - */ - -typedef struct -{ - uint32_t RESERVED1; /*!< Reserved, Address offset: 0x00 */ - __IO uint32_t PMCR; /*!< SYSCFG peripheral mode configuration register, Address offset: 0x04 */ - __IO uint32_t EXTICR[4]; /*!< SYSCFG external interrupt configuration registers, Address offset: 0x08-0x14 */ - __IO uint32_t CFGR; /*!< SYSCFG configuration registers, Address offset: 0x18 */ - uint32_t RESERVED2; /*!< Reserved, Address offset: 0x1C */ - __IO uint32_t CCCSR; /*!< SYSCFG compensation cell control/status register, Address offset: 0x20 */ - __IO uint32_t CCVR; /*!< SYSCFG compensation cell value register, Address offset: 0x24 */ - __IO uint32_t CCCR; /*!< SYSCFG compensation cell code register, Address offset: 0x28 */ - uint32_t RESERVED3; /*!< Reserved, Address offset: 0x2C */ - __IO uint32_t ADC2ALT; /*!< ADC2 internal input alternate connection register, Address offset: 0x30 */ - uint32_t RESERVED4[60]; /*!< Reserved, 0x34-0x120 */ - __IO uint32_t PKGR; /*!< SYSCFG package register, Address offset: 0x124 */ - uint32_t RESERVED5[118]; /*!< Reserved, 0x128-0x2FC */ - __IO uint32_t UR0; /*!< SYSCFG user register 0, Address offset: 0x300 */ - __IO uint32_t UR1; /*!< SYSCFG user register 1, Address offset: 0x304 */ - __IO uint32_t UR2; /*!< SYSCFG user register 2, Address offset: 0x308 */ - __IO uint32_t UR3; /*!< SYSCFG user register 3, Address offset: 0x30C */ - __IO uint32_t UR4; /*!< SYSCFG user register 4, Address offset: 0x310 */ - __IO uint32_t UR5; /*!< SYSCFG user register 5, Address offset: 0x314 */ - __IO uint32_t UR6; /*!< SYSCFG user register 6, Address offset: 0x318 */ - __IO uint32_t UR7; /*!< SYSCFG user register 7, Address offset: 0x31C */ - uint32_t RESERVED6[3]; /*!< Reserved, Address offset: 0x320-0x328 */ - __IO uint32_t UR11; /*!< SYSCFG user register 11, Address offset: 0x32C */ - __IO uint32_t UR12; /*!< SYSCFG user register 12, Address offset: 0x330 */ - __IO uint32_t UR13; /*!< SYSCFG user register 13, Address offset: 0x334 */ - __IO uint32_t UR14; /*!< SYSCFG user register 14, Address offset: 0x338 */ - __IO uint32_t UR15; /*!< SYSCFG user register 15, Address offset: 0x33C */ - __IO uint32_t UR16; /*!< SYSCFG user register 16, Address offset: 0x340 */ - __IO uint32_t UR17; /*!< SYSCFG user register 17, Address offset: 0x344 */ - __IO uint32_t UR18; /*!< SYSCFG user register 18, Address offset: 0x348 */ - -} SYSCFG_TypeDef; - -/** - * @brief Inter-integrated Circuit Interface - */ - -typedef struct -{ - __IO uint32_t CR1; /*!< I2C Control register 1, Address offset: 0x00 */ - __IO uint32_t CR2; /*!< I2C Control register 2, Address offset: 0x04 */ - __IO uint32_t OAR1; /*!< I2C Own address 1 register, Address offset: 0x08 */ - __IO uint32_t OAR2; /*!< I2C Own address 2 register, Address offset: 0x0C */ - __IO uint32_t TIMINGR; /*!< I2C Timing register, Address offset: 0x10 */ - __IO uint32_t TIMEOUTR; /*!< I2C Timeout register, Address offset: 0x14 */ - __IO uint32_t ISR; /*!< I2C Interrupt and status register, Address offset: 0x18 */ - __IO uint32_t ICR; /*!< I2C Interrupt clear register, Address offset: 0x1C */ - __IO uint32_t PECR; /*!< I2C PEC register, Address offset: 0x20 */ - __IO uint32_t RXDR; /*!< I2C Receive data register, Address offset: 0x24 */ - __IO uint32_t TXDR; /*!< I2C Transmit data register, Address offset: 0x28 */ -} I2C_TypeDef; - -/** - * @brief Independent WATCHDOG - */ - -typedef struct -{ - __IO uint32_t KR; /*!< IWDG Key register, Address offset: 0x00 */ - __IO uint32_t PR; /*!< IWDG Prescaler register, Address offset: 0x04 */ - __IO uint32_t RLR; /*!< IWDG Reload register, Address offset: 0x08 */ - __IO uint32_t SR; /*!< IWDG Status register, Address offset: 0x0C */ - __IO uint32_t WINR; /*!< IWDG Window register, Address offset: 0x10 */ -} IWDG_TypeDef; - - -/** - * @brief LCD-TFT Display Controller - */ - -typedef struct -{ - uint32_t RESERVED0[2]; /*!< Reserved, 0x00-0x04 */ - __IO uint32_t SSCR; /*!< LTDC Synchronization Size Configuration Register, Address offset: 0x08 */ - __IO uint32_t BPCR; /*!< LTDC Back Porch Configuration Register, Address offset: 0x0C */ - __IO uint32_t AWCR; /*!< LTDC Active Width Configuration Register, Address offset: 0x10 */ - __IO uint32_t TWCR; /*!< LTDC Total Width Configuration Register, Address offset: 0x14 */ - __IO uint32_t GCR; /*!< LTDC Global Control Register, Address offset: 0x18 */ - uint32_t RESERVED1[2]; /*!< Reserved, 0x1C-0x20 */ - __IO uint32_t SRCR; /*!< LTDC Shadow Reload Configuration Register, Address offset: 0x24 */ - uint32_t RESERVED2[1]; /*!< Reserved, 0x28 */ - __IO uint32_t BCCR; /*!< LTDC Background Color Configuration Register, Address offset: 0x2C */ - uint32_t RESERVED3[1]; /*!< Reserved, 0x30 */ - __IO uint32_t IER; /*!< LTDC Interrupt Enable Register, Address offset: 0x34 */ - __IO uint32_t ISR; /*!< LTDC Interrupt Status Register, Address offset: 0x38 */ - __IO uint32_t ICR; /*!< LTDC Interrupt Clear Register, Address offset: 0x3C */ - __IO uint32_t LIPCR; /*!< LTDC Line Interrupt Position Configuration Register, Address offset: 0x40 */ - __IO uint32_t CPSR; /*!< LTDC Current Position Status Register, Address offset: 0x44 */ - __IO uint32_t CDSR; /*!< LTDC Current Display Status Register, Address offset: 0x48 */ -} LTDC_TypeDef; - -/** - * @brief LCD-TFT Display layer x Controller - */ - -typedef struct -{ - __IO uint32_t CR; /*!< LTDC Layerx Control Register Address offset: 0x84 */ - __IO uint32_t WHPCR; /*!< LTDC Layerx Window Horizontal Position Configuration Register Address offset: 0x88 */ - __IO uint32_t WVPCR; /*!< LTDC Layerx Window Vertical Position Configuration Register Address offset: 0x8C */ - __IO uint32_t CKCR; /*!< LTDC Layerx Color Keying Configuration Register Address offset: 0x90 */ - __IO uint32_t PFCR; /*!< LTDC Layerx Pixel Format Configuration Register Address offset: 0x94 */ - __IO uint32_t CACR; /*!< LTDC Layerx Constant Alpha Configuration Register Address offset: 0x98 */ - __IO uint32_t DCCR; /*!< LTDC Layerx Default Color Configuration Register Address offset: 0x9C */ - __IO uint32_t BFCR; /*!< LTDC Layerx Blending Factors Configuration Register Address offset: 0xA0 */ - uint32_t RESERVED0[2]; /*!< Reserved */ - __IO uint32_t CFBAR; /*!< LTDC Layerx Color Frame Buffer Address Register Address offset: 0xAC */ - __IO uint32_t CFBLR; /*!< LTDC Layerx Color Frame Buffer Length Register Address offset: 0xB0 */ - __IO uint32_t CFBLNR; /*!< LTDC Layerx ColorFrame Buffer Line Number Register Address offset: 0xB4 */ - uint32_t RESERVED1[3]; /*!< Reserved */ - __IO uint32_t CLUTWR; /*!< LTDC Layerx CLUT Write Register Address offset: 0x144 */ - -} LTDC_Layer_TypeDef; - -/** - * @brief Power Control - */ - -typedef struct -{ - __IO uint32_t CR1; /*!< PWR power control register 1, Address offset: 0x00 */ - __IO uint32_t CSR1; /*!< PWR power control status register 1, Address offset: 0x04 */ - __IO uint32_t CR2; /*!< PWR power control register 2, Address offset: 0x08 */ - __IO uint32_t CR3; /*!< PWR power control register 3, Address offset: 0x0C */ - __IO uint32_t CPUCR; /*!< PWR CPU control register, Address offset: 0x10 */ - uint32_t RESERVED0; /*!< Reserved, Address offset: 0x14 */ - __IO uint32_t D3CR; /*!< PWR D3 domain control register, Address offset: 0x18 */ - uint32_t RESERVED1; /*!< Reserved, Address offset: 0x1C */ - __IO uint32_t WKUPCR; /*!< PWR wakeup clear register, Address offset: 0x20 */ - __IO uint32_t WKUPFR; /*!< PWR wakeup flag register, Address offset: 0x24 */ - __IO uint32_t WKUPEPR; /*!< PWR wakeup enable and polarity register, Address offset: 0x28 */ -} PWR_TypeDef; - -/** - * @brief Reset and Clock Control - */ - -typedef struct -{ - __IO uint32_t CR; /*!< RCC clock control register, Address offset: 0x00 */ - __IO uint32_t HSICFGR; /*!< HSI Clock Calibration Register, Address offset: 0x04 */ - __IO uint32_t CRRCR; /*!< Clock Recovery RC Register, Address offset: 0x08 */ - __IO uint32_t CSICFGR; /*!< CSI Clock Calibration Register, Address offset: 0x0C */ - __IO uint32_t CFGR; /*!< RCC clock configuration register, Address offset: 0x10 */ - uint32_t RESERVED1; /*!< Reserved, Address offset: 0x14 */ - __IO uint32_t D1CFGR; /*!< RCC Domain 1 configuration register, Address offset: 0x18 */ - __IO uint32_t D2CFGR; /*!< RCC Domain 2 configuration register, Address offset: 0x1C */ - __IO uint32_t D3CFGR; /*!< RCC Domain 3 configuration register, Address offset: 0x20 */ - uint32_t RESERVED2; /*!< Reserved, Address offset: 0x24 */ - __IO uint32_t PLLCKSELR; /*!< RCC PLLs Clock Source Selection Register, Address offset: 0x28 */ - __IO uint32_t PLLCFGR; /*!< RCC PLLs Configuration Register, Address offset: 0x2C */ - __IO uint32_t PLL1DIVR; /*!< RCC PLL1 Dividers Configuration Register, Address offset: 0x30 */ - __IO uint32_t PLL1FRACR; /*!< RCC PLL1 Fractional Divider Configuration Register, Address offset: 0x34 */ - __IO uint32_t PLL2DIVR; /*!< RCC PLL2 Dividers Configuration Register, Address offset: 0x38 */ - __IO uint32_t PLL2FRACR; /*!< RCC PLL2 Fractional Divider Configuration Register, Address offset: 0x3C */ - __IO uint32_t PLL3DIVR; /*!< RCC PLL3 Dividers Configuration Register, Address offset: 0x40 */ - __IO uint32_t PLL3FRACR; /*!< RCC PLL3 Fractional Divider Configuration Register, Address offset: 0x44 */ - uint32_t RESERVED3; /*!< Reserved, Address offset: 0x48 */ - __IO uint32_t D1CCIPR; /*!< RCC Domain 1 Kernel Clock Configuration Register Address offset: 0x4C */ - __IO uint32_t D2CCIP1R; /*!< RCC Domain 2 Kernel Clock Configuration Register Address offset: 0x50 */ - __IO uint32_t D2CCIP2R; /*!< RCC Domain 2 Kernel Clock Configuration Register Address offset: 0x54 */ - __IO uint32_t D3CCIPR; /*!< RCC Domain 3 Kernel Clock Configuration Register Address offset: 0x58 */ - uint32_t RESERVED4; /*!< Reserved, Address offset: 0x5C */ - __IO uint32_t CIER; /*!< RCC Clock Source Interrupt Enable Register Address offset: 0x60 */ - __IO uint32_t CIFR; /*!< RCC Clock Source Interrupt Flag Register Address offset: 0x64 */ - __IO uint32_t CICR; /*!< RCC Clock Source Interrupt Clear Register Address offset: 0x68 */ - uint32_t RESERVED5; /*!< Reserved, Address offset: 0x6C */ - __IO uint32_t BDCR; /*!< RCC Vswitch Backup Domain Control Register, Address offset: 0x70 */ - __IO uint32_t CSR; /*!< RCC clock control & status register, Address offset: 0x74 */ - uint32_t RESERVED6; /*!< Reserved, Address offset: 0x78 */ - __IO uint32_t AHB3RSTR; /*!< RCC AHB3 peripheral reset register, Address offset: 0x7C */ - __IO uint32_t AHB1RSTR; /*!< RCC AHB1 peripheral reset register, Address offset: 0x80 */ - __IO uint32_t AHB2RSTR; /*!< RCC AHB2 peripheral reset register, Address offset: 0x84 */ - __IO uint32_t AHB4RSTR; /*!< RCC AHB4 peripheral reset register, Address offset: 0x88 */ - __IO uint32_t APB3RSTR; /*!< RCC APB3 peripheral reset register, Address offset: 0x8C */ - __IO uint32_t APB1LRSTR; /*!< RCC APB1 peripheral reset Low Word register, Address offset: 0x90 */ - __IO uint32_t APB1HRSTR; /*!< RCC APB1 peripheral reset High Word register, Address offset: 0x94 */ - __IO uint32_t APB2RSTR; /*!< RCC APB2 peripheral reset register, Address offset: 0x98 */ - __IO uint32_t APB4RSTR; /*!< RCC APB4 peripheral reset register, Address offset: 0x9C */ - __IO uint32_t GCR; /*!< RCC RCC Global Control Register, Address offset: 0xA0 */ - uint32_t RESERVED8; /*!< Reserved, Address offset: 0xA4 */ - __IO uint32_t D3AMR; /*!< RCC Domain 3 Autonomous Mode Register, Address offset: 0xA8 */ - uint32_t RESERVED11[9]; /*!< Reserved, 0xAC-0xCC Address offset: 0xAC */ - __IO uint32_t RSR; /*!< RCC Reset status register, Address offset: 0xD0 */ - __IO uint32_t AHB3ENR; /*!< RCC AHB3 peripheral clock register, Address offset: 0xD4 */ - __IO uint32_t AHB1ENR; /*!< RCC AHB1 peripheral clock register, Address offset: 0xD8 */ - __IO uint32_t AHB2ENR; /*!< RCC AHB2 peripheral clock register, Address offset: 0xDC */ - __IO uint32_t AHB4ENR; /*!< RCC AHB4 peripheral clock register, Address offset: 0xE0 */ - __IO uint32_t APB3ENR; /*!< RCC APB3 peripheral clock register, Address offset: 0xE4 */ - __IO uint32_t APB1LENR; /*!< RCC APB1 peripheral clock Low Word register, Address offset: 0xE8 */ - __IO uint32_t APB1HENR; /*!< RCC APB1 peripheral clock High Word register, Address offset: 0xEC */ - __IO uint32_t APB2ENR; /*!< RCC APB2 peripheral clock register, Address offset: 0xF0 */ - __IO uint32_t APB4ENR; /*!< RCC APB4 peripheral clock register, Address offset: 0xF4 */ - uint32_t RESERVED12; /*!< Reserved, Address offset: 0xF8 */ - __IO uint32_t AHB3LPENR; /*!< RCC AHB3 peripheral sleep clock register, Address offset: 0xFC */ - __IO uint32_t AHB1LPENR; /*!< RCC AHB1 peripheral sleep clock register, Address offset: 0x100 */ - __IO uint32_t AHB2LPENR; /*!< RCC AHB2 peripheral sleep clock register, Address offset: 0x104 */ - __IO uint32_t AHB4LPENR; /*!< RCC AHB4 peripheral sleep clock register, Address offset: 0x108 */ - __IO uint32_t APB3LPENR; /*!< RCC APB3 peripheral sleep clock register, Address offset: 0x10C */ - __IO uint32_t APB1LLPENR; /*!< RCC APB1 peripheral sleep clock Low Word register, Address offset: 0x110 */ - __IO uint32_t APB1HLPENR; /*!< RCC APB1 peripheral sleep clock High Word register, Address offset: 0x114 */ - __IO uint32_t APB2LPENR; /*!< RCC APB2 peripheral sleep clock register, Address offset: 0x118 */ - __IO uint32_t APB4LPENR; /*!< RCC APB4 peripheral sleep clock register, Address offset: 0x11C */ - uint32_t RESERVED13[4]; /*!< Reserved, 0x120-0x12C Address offset: 0x120 */ - -} RCC_TypeDef; - - -/** - * @brief Real-Time Clock - */ -typedef struct -{ - __IO uint32_t TR; /*!< RTC time register, Address offset: 0x00 */ - __IO uint32_t DR; /*!< RTC date register, Address offset: 0x04 */ - __IO uint32_t CR; /*!< RTC control register, Address offset: 0x08 */ - __IO uint32_t ISR; /*!< RTC initialization and status register, Address offset: 0x0C */ - __IO uint32_t PRER; /*!< RTC prescaler register, Address offset: 0x10 */ - __IO uint32_t WUTR; /*!< RTC wakeup timer register, Address offset: 0x14 */ - uint32_t RESERVED; /*!< Reserved, Address offset: 0x18 */ - __IO uint32_t ALRMAR; /*!< RTC alarm A register, Address offset: 0x1C */ - __IO uint32_t ALRMBR; /*!< RTC alarm B register, Address offset: 0x20 */ - __IO uint32_t WPR; /*!< RTC write protection register, Address offset: 0x24 */ - __IO uint32_t SSR; /*!< RTC sub second register, Address offset: 0x28 */ - __IO uint32_t SHIFTR; /*!< RTC shift control register, Address offset: 0x2C */ - __IO uint32_t TSTR; /*!< RTC time stamp time register, Address offset: 0x30 */ - __IO uint32_t TSDR; /*!< RTC time stamp date register, Address offset: 0x34 */ - __IO uint32_t TSSSR; /*!< RTC time-stamp sub second register, Address offset: 0x38 */ - __IO uint32_t CALR; /*!< RTC calibration register, Address offset: 0x3C */ - __IO uint32_t TAMPCR; /*!< RTC tamper configuration register, Address offset: 0x40 */ - __IO uint32_t ALRMASSR; /*!< RTC alarm A sub second register, Address offset: 0x44 */ - __IO uint32_t ALRMBSSR; /*!< RTC alarm B sub second register, Address offset: 0x48 */ - __IO uint32_t OR; /*!< RTC option register, Address offset: 0x4C */ - __IO uint32_t BKP0R; /*!< RTC backup register 0, Address offset: 0x50 */ - __IO uint32_t BKP1R; /*!< RTC backup register 1, Address offset: 0x54 */ - __IO uint32_t BKP2R; /*!< RTC backup register 2, Address offset: 0x58 */ - __IO uint32_t BKP3R; /*!< RTC backup register 3, Address offset: 0x5C */ - __IO uint32_t BKP4R; /*!< RTC backup register 4, Address offset: 0x60 */ - __IO uint32_t BKP5R; /*!< RTC backup register 5, Address offset: 0x64 */ - __IO uint32_t BKP6R; /*!< RTC backup register 6, Address offset: 0x68 */ - __IO uint32_t BKP7R; /*!< RTC backup register 7, Address offset: 0x6C */ - __IO uint32_t BKP8R; /*!< RTC backup register 8, Address offset: 0x70 */ - __IO uint32_t BKP9R; /*!< RTC backup register 9, Address offset: 0x74 */ - __IO uint32_t BKP10R; /*!< RTC backup register 10, Address offset: 0x78 */ - __IO uint32_t BKP11R; /*!< RTC backup register 11, Address offset: 0x7C */ - __IO uint32_t BKP12R; /*!< RTC backup register 12, Address offset: 0x80 */ - __IO uint32_t BKP13R; /*!< RTC backup register 13, Address offset: 0x84 */ - __IO uint32_t BKP14R; /*!< RTC backup register 14, Address offset: 0x88 */ - __IO uint32_t BKP15R; /*!< RTC backup register 15, Address offset: 0x8C */ - __IO uint32_t BKP16R; /*!< RTC backup register 16, Address offset: 0x90 */ - __IO uint32_t BKP17R; /*!< RTC backup register 17, Address offset: 0x94 */ - __IO uint32_t BKP18R; /*!< RTC backup register 18, Address offset: 0x98 */ - __IO uint32_t BKP19R; /*!< RTC backup register 19, Address offset: 0x9C */ - __IO uint32_t BKP20R; /*!< RTC backup register 20, Address offset: 0xA0 */ - __IO uint32_t BKP21R; /*!< RTC backup register 21, Address offset: 0xA4 */ - __IO uint32_t BKP22R; /*!< RTC backup register 22, Address offset: 0xA8 */ - __IO uint32_t BKP23R; /*!< RTC backup register 23, Address offset: 0xAC */ - __IO uint32_t BKP24R; /*!< RTC backup register 24, Address offset: 0xB0 */ - __IO uint32_t BKP25R; /*!< RTC backup register 25, Address offset: 0xB4 */ - __IO uint32_t BKP26R; /*!< RTC backup register 26, Address offset: 0xB8 */ - __IO uint32_t BKP27R; /*!< RTC backup register 27, Address offset: 0xBC */ - __IO uint32_t BKP28R; /*!< RTC backup register 28, Address offset: 0xC0 */ - __IO uint32_t BKP29R; /*!< RTC backup register 29, Address offset: 0xC4 */ - __IO uint32_t BKP30R; /*!< RTC backup register 30, Address offset: 0xC8 */ - __IO uint32_t BKP31R; /*!< RTC backup register 31, Address offset: 0xCC */ -} RTC_TypeDef; - -/** - * @brief Serial Audio Interface - */ - -typedef struct -{ - __IO uint32_t GCR; /*!< SAI global configuration register, Address offset: 0x00 */ - uint32_t RESERVED0[16]; /*!< Reserved, 0x04 - 0x43 */ - __IO uint32_t PDMCR; /*!< SAI PDM control register, Address offset: 0x44 */ - __IO uint32_t PDMDLY; /*!< SAI PDM delay register, Address offset: 0x48 */ -} SAI_TypeDef; - -typedef struct -{ - __IO uint32_t CR1; /*!< SAI block x configuration register 1, Address offset: 0x04 */ - __IO uint32_t CR2; /*!< SAI block x configuration register 2, Address offset: 0x08 */ - __IO uint32_t FRCR; /*!< SAI block x frame configuration register, Address offset: 0x0C */ - __IO uint32_t SLOTR; /*!< SAI block x slot register, Address offset: 0x10 */ - __IO uint32_t IMR; /*!< SAI block x interrupt mask register, Address offset: 0x14 */ - __IO uint32_t SR; /*!< SAI block x status register, Address offset: 0x18 */ - __IO uint32_t CLRFR; /*!< SAI block x clear flag register, Address offset: 0x1C */ - __IO uint32_t DR; /*!< SAI block x data register, Address offset: 0x20 */ -} SAI_Block_TypeDef; - -/** - * @brief SPDIF-RX Interface - */ - -typedef struct -{ - __IO uint32_t CR; /*!< Control register, Address offset: 0x00 */ - __IO uint32_t IMR; /*!< Interrupt mask register, Address offset: 0x04 */ - __IO uint32_t SR; /*!< Status register, Address offset: 0x08 */ - __IO uint32_t IFCR; /*!< Interrupt Flag Clear register, Address offset: 0x0C */ - __IO uint32_t DR; /*!< Data input register, Address offset: 0x10 */ - __IO uint32_t CSR; /*!< Channel Status register, Address offset: 0x14 */ - __IO uint32_t DIR; /*!< Debug Information register, Address offset: 0x18 */ - uint32_t RESERVED2; /*!< Reserved, 0x1A */ -} SPDIFRX_TypeDef; - - -/** - * @brief Secure digital input/output Interface - */ - -typedef struct -{ - __IO uint32_t POWER; /*!< SDMMC power control register, Address offset: 0x00 */ - __IO uint32_t CLKCR; /*!< SDMMC clock control register, Address offset: 0x04 */ - __IO uint32_t ARG; /*!< SDMMC argument register, Address offset: 0x08 */ - __IO uint32_t CMD; /*!< SDMMC command register, Address offset: 0x0C */ - __I uint32_t RESPCMD; /*!< SDMMC command response register, Address offset: 0x10 */ - __I uint32_t RESP1; /*!< SDMMC response 1 register, Address offset: 0x14 */ - __I uint32_t RESP2; /*!< SDMMC response 2 register, Address offset: 0x18 */ - __I uint32_t RESP3; /*!< SDMMC response 3 register, Address offset: 0x1C */ - __I uint32_t RESP4; /*!< SDMMC response 4 register, Address offset: 0x20 */ - __IO uint32_t DTIMER; /*!< SDMMC data timer register, Address offset: 0x24 */ - __IO uint32_t DLEN; /*!< SDMMC data length register, Address offset: 0x28 */ - __IO uint32_t DCTRL; /*!< SDMMC data control register, Address offset: 0x2C */ - __I uint32_t DCOUNT; /*!< SDMMC data counter register, Address offset: 0x30 */ - __I uint32_t STA; /*!< SDMMC status register, Address offset: 0x34 */ - __IO uint32_t ICR; /*!< SDMMC interrupt clear register, Address offset: 0x38 */ - __IO uint32_t MASK; /*!< SDMMC mask register, Address offset: 0x3C */ - __IO uint32_t ACKTIME; /*!< SDMMC Acknowledgement timer register, Address offset: 0x40 */ - uint32_t RESERVED0[3]; /*!< Reserved, 0x44 - 0x4C - 0x4C */ - __IO uint32_t IDMACTRL; /*!< SDMMC DMA control register, Address offset: 0x50 */ - __IO uint32_t IDMABSIZE; /*!< SDMMC DMA buffer size register, Address offset: 0x54 */ - __IO uint32_t IDMABASE0; /*!< SDMMC DMA buffer 0 base address register, Address offset: 0x58 */ - __IO uint32_t IDMABASE1; /*!< SDMMC DMA buffer 1 base address register, Address offset: 0x5C */ - uint32_t RESERVED1[8]; /*!< Reserved, 0x60-0x7C */ - __IO uint32_t FIFO; /*!< SDMMC data FIFO register, Address offset: 0x80 */ - uint32_t RESERVED2[222]; /*!< Reserved, 0x84-0x3F8 */ - __IO uint32_t IPVR; /*!< SDMMC data FIFO register, Address offset: 0x3FC */ -} SDMMC_TypeDef; - - -/** - * @brief Delay Block DLYB - */ - -typedef struct -{ - __IO uint32_t CR; /*!< DELAY BLOCK control register, Address offset: 0x00 */ - __IO uint32_t CFGR; /*!< DELAY BLOCK configuration register, Address offset: 0x04 */ -} DLYB_TypeDef; - -/** - * @brief HW Semaphore HSEM - */ - -typedef struct -{ - __IO uint32_t R[32]; /*!< 2-step write lock and read back registers, Address offset: 00h-7Ch */ - __IO uint32_t RLR[32]; /*!< 1-step read lock registers, Address offset: 80h-FCh */ - __IO uint32_t C1IER; /*!< HSEM Interrupt enable register , Address offset: 100h */ - __IO uint32_t C1ICR; /*!< HSEM Interrupt clear register , Address offset: 104h */ - __IO uint32_t C1ISR; /*!< HSEM Interrupt Status register , Address offset: 108h */ - __IO uint32_t C1MISR; /*!< HSEM Interrupt Masked Status register , Address offset: 10Ch */ - uint32_t Reserved[12]; /* Reserved Address offset: 110h-13Ch */ - __IO uint32_t CR; /*!< HSEM Semaphore clear register , Address offset: 140h */ - __IO uint32_t KEYR; /*!< HSEM Semaphore clear key register , Address offset: 144h */ - -} HSEM_TypeDef; - -typedef struct -{ - __IO uint32_t IER; /*!< HSEM interrupt enable register , Address offset: 0h */ - __IO uint32_t ICR; /*!< HSEM interrupt clear register , Address offset: 4h */ - __IO uint32_t ISR; /*!< HSEM interrupt status register , Address offset: 8h */ - __IO uint32_t MISR; /*!< HSEM masked interrupt status register , Address offset: Ch */ -} HSEM_Common_TypeDef; - -/** - * @brief Serial Peripheral Interface - */ - -typedef struct -{ - __IO uint32_t CR1; /*!< SPI/I2S Control register 1, Address offset: 0x00 */ - __IO uint32_t CR2; /*!< SPI Control register 2, Address offset: 0x04 */ - __IO uint32_t CFG1; /*!< SPI Configuration register 1, Address offset: 0x08 */ - __IO uint32_t CFG2; /*!< SPI Configuration register 2, Address offset: 0x0C */ - __IO uint32_t IER; /*!< SPI/I2S Interrupt Enable register, Address offset: 0x10 */ - __IO uint32_t SR; /*!< SPI/I2S Status register, Address offset: 0x14 */ - __IO uint32_t IFCR; /*!< SPI/I2S Interrupt/Status flags clear register, Address offset: 0x18 */ - uint32_t RESERVED0; /*!< Reserved, 0x1C */ - __IO uint32_t TXDR; /*!< SPI/I2S Transmit data register, Address offset: 0x20 */ - uint32_t RESERVED1[3]; /*!< Reserved, 0x24-0x2C */ - __IO uint32_t RXDR; /*!< SPI/I2S Receive data register, Address offset: 0x30 */ - uint32_t RESERVED2[3]; /*!< Reserved, 0x34-0x3C */ - __IO uint32_t CRCPOLY; /*!< SPI CRC Polynomial register, Address offset: 0x40 */ - __IO uint32_t TXCRC; /*!< SPI Transmitter CRC register, Address offset: 0x44 */ - __IO uint32_t RXCRC; /*!< SPI Receiver CRC register, Address offset: 0x48 */ - __IO uint32_t UDRDR; /*!< SPI Underrun data register, Address offset: 0x4C */ - __IO uint32_t I2SCFGR; /*!< I2S Configuration register, Address offset: 0x50 */ - -} SPI_TypeDef; - -/** - * @brief DTS - */ -typedef struct -{ - __IO uint32_t CFGR1; /*!< DTS configuration register, Address offset: 0x00 */ - uint32_t RESERVED0; /*!< Reserved, Address offset: 0x04 */ - __IO uint32_t T0VALR1; /*!< DTS T0 Value register, Address offset: 0x08 */ - uint32_t RESERVED1; /*!< Reserved, Address offset: 0x0C */ - __IO uint32_t RAMPVALR; /*!< DTS Ramp value register, Address offset: 0x10 */ - __IO uint32_t ITR1; /*!< DTS Interrupt threshold register, Address offset: 0x14 */ - uint32_t RESERVED2; /*!< Reserved, Address offset: 0x18 */ - __IO uint32_t DR; /*!< DTS data register, Address offset: 0x1C */ - __IO uint32_t SR; /*!< DTS status register Address offset: 0x20 */ - __IO uint32_t ITENR; /*!< DTS Interrupt enable register, Address offset: 0x24 */ - __IO uint32_t ICIFR; /*!< DTS Clear Interrupt flag register, Address offset: 0x28 */ - __IO uint32_t OR; /*!< DTS option register 1, Address offset: 0x2C */ -} -DTS_TypeDef; - -/** - * @brief TIM - */ - -typedef struct -{ - __IO uint32_t CR1; /*!< TIM control register 1, Address offset: 0x00 */ - __IO uint32_t CR2; /*!< TIM control register 2, Address offset: 0x04 */ - __IO uint32_t SMCR; /*!< TIM slave mode control register, Address offset: 0x08 */ - __IO uint32_t DIER; /*!< TIM DMA/interrupt enable register, Address offset: 0x0C */ - __IO uint32_t SR; /*!< TIM status register, Address offset: 0x10 */ - __IO uint32_t EGR; /*!< TIM event generation register, Address offset: 0x14 */ - __IO uint32_t CCMR1; /*!< TIM capture/compare mode register 1, Address offset: 0x18 */ - __IO uint32_t CCMR2; /*!< TIM capture/compare mode register 2, Address offset: 0x1C */ - __IO uint32_t CCER; /*!< TIM capture/compare enable register, Address offset: 0x20 */ - __IO uint32_t CNT; /*!< TIM counter register, Address offset: 0x24 */ - __IO uint32_t PSC; /*!< TIM prescaler, Address offset: 0x28 */ - __IO uint32_t ARR; /*!< TIM auto-reload register, Address offset: 0x2C */ - __IO uint32_t RCR; /*!< TIM repetition counter register, Address offset: 0x30 */ - __IO uint32_t CCR1; /*!< TIM capture/compare register 1, Address offset: 0x34 */ - __IO uint32_t CCR2; /*!< TIM capture/compare register 2, Address offset: 0x38 */ - __IO uint32_t CCR3; /*!< TIM capture/compare register 3, Address offset: 0x3C */ - __IO uint32_t CCR4; /*!< TIM capture/compare register 4, Address offset: 0x40 */ - __IO uint32_t BDTR; /*!< TIM break and dead-time register, Address offset: 0x44 */ - __IO uint32_t DCR; /*!< TIM DMA control register, Address offset: 0x48 */ - __IO uint32_t DMAR; /*!< TIM DMA address for full transfer, Address offset: 0x4C */ - uint32_t RESERVED1; /*!< Reserved, 0x50 */ - __IO uint32_t CCMR3; /*!< TIM capture/compare mode register 3, Address offset: 0x54 */ - __IO uint32_t CCR5; /*!< TIM capture/compare register5, Address offset: 0x58 */ - __IO uint32_t CCR6; /*!< TIM capture/compare register6, Address offset: 0x5C */ - __IO uint32_t AF1; /*!< TIM alternate function option register 1, Address offset: 0x60 */ - __IO uint32_t AF2; /*!< TIM alternate function option register 2, Address offset: 0x64 */ - __IO uint32_t TISEL; /*!< TIM Input Selection register, Address offset: 0x68 */ -} TIM_TypeDef; - -/** - * @brief LPTIMIMER - */ -typedef struct -{ - __IO uint32_t ISR; /*!< LPTIM Interrupt and Status register, Address offset: 0x00 */ - __IO uint32_t ICR; /*!< LPTIM Interrupt Clear register, Address offset: 0x04 */ - __IO uint32_t IER; /*!< LPTIM Interrupt Enable register, Address offset: 0x08 */ - __IO uint32_t CFGR; /*!< LPTIM Configuration register, Address offset: 0x0C */ - __IO uint32_t CR; /*!< LPTIM Control register, Address offset: 0x10 */ - __IO uint32_t CMP; /*!< LPTIM Compare register, Address offset: 0x14 */ - __IO uint32_t ARR; /*!< LPTIM Autoreload register, Address offset: 0x18 */ - __IO uint32_t CNT; /*!< LPTIM Counter register, Address offset: 0x1C */ - uint32_t RESERVED1; /*!< Reserved, 0x20 */ - __IO uint32_t CFGR2; /*!< LPTIM Configuration register, Address offset: 0x24 */ -} LPTIM_TypeDef; - -/** - * @brief Comparator - */ -typedef struct -{ - __IO uint32_t SR; /*!< Comparator status register, Address offset: 0x00 */ - __IO uint32_t ICFR; /*!< Comparator interrupt clear flag register, Address offset: 0x04 */ - __IO uint32_t OR; /*!< Comparator option register, Address offset: 0x08 */ -} COMPOPT_TypeDef; - -typedef struct -{ - __IO uint32_t CFGR; /*!< Comparator configuration register , Address offset: 0x00 */ -} COMP_TypeDef; - -typedef struct -{ - __IO uint32_t CFGR; /*!< COMP control and status register, used for bits common to several COMP instances, Address offset: 0x00 */ -} COMP_Common_TypeDef; -/** - * @brief Universal Synchronous Asynchronous Receiver Transmitter - */ - -typedef struct -{ - __IO uint32_t CR1; /*!< USART Control register 1, Address offset: 0x00 */ - __IO uint32_t CR2; /*!< USART Control register 2, Address offset: 0x04 */ - __IO uint32_t CR3; /*!< USART Control register 3, Address offset: 0x08 */ - __IO uint32_t BRR; /*!< USART Baud rate register, Address offset: 0x0C */ - __IO uint32_t GTPR; /*!< USART Guard time and prescaler register, Address offset: 0x10 */ - __IO uint32_t RTOR; /*!< USART Receiver Time Out register, Address offset: 0x14 */ - __IO uint32_t RQR; /*!< USART Request register, Address offset: 0x18 */ - __IO uint32_t ISR; /*!< USART Interrupt and status register, Address offset: 0x1C */ - __IO uint32_t ICR; /*!< USART Interrupt flag Clear register, Address offset: 0x20 */ - __IO uint32_t RDR; /*!< USART Receive Data register, Address offset: 0x24 */ - __IO uint32_t TDR; /*!< USART Transmit Data register, Address offset: 0x28 */ - __IO uint32_t PRESC; /*!< USART clock Prescaler register, Address offset: 0x2C */ -} USART_TypeDef; - -/** - * @brief Single Wire Protocol Master Interface SPWMI - */ -typedef struct -{ - __IO uint32_t CR; /*!< SWPMI Configuration/Control register, Address offset: 0x00 */ - __IO uint32_t BRR; /*!< SWPMI bitrate register, Address offset: 0x04 */ - uint32_t RESERVED1; /*!< Reserved, 0x08 */ - __IO uint32_t ISR; /*!< SWPMI Interrupt and Status register, Address offset: 0x0C */ - __IO uint32_t ICR; /*!< SWPMI Interrupt Flag Clear register, Address offset: 0x10 */ - __IO uint32_t IER; /*!< SWPMI Interrupt Enable register, Address offset: 0x14 */ - __IO uint32_t RFL; /*!< SWPMI Receive Frame Length register, Address offset: 0x18 */ - __IO uint32_t TDR; /*!< SWPMI Transmit data register, Address offset: 0x1C */ - __IO uint32_t RDR; /*!< SWPMI Receive data register, Address offset: 0x20 */ - __IO uint32_t OR; /*!< SWPMI Option register, Address offset: 0x24 */ -} SWPMI_TypeDef; - -/** - * @brief Window WATCHDOG - */ - -typedef struct -{ - __IO uint32_t CR; /*!< WWDG Control register, Address offset: 0x00 */ - __IO uint32_t CFR; /*!< WWDG Configuration register, Address offset: 0x04 */ - __IO uint32_t SR; /*!< WWDG Status register, Address offset: 0x08 */ -} WWDG_TypeDef; - - -/** - * @brief RAM_ECC_Specific_Registers - */ -typedef struct -{ - __IO uint32_t CR; /*!< RAMECC monitor configuration register */ - __IO uint32_t SR; /*!< RAMECC monitor status register */ - __IO uint32_t FAR; /*!< RAMECC monitor failing address register */ - __IO uint32_t FDRL; /*!< RAMECC monitor failing data low register */ - __IO uint32_t FDRH; /*!< RAMECC monitor failing data high register */ - __IO uint32_t FECR; /*!< RAMECC monitor failing ECC error code register */ -} RAMECC_MonitorTypeDef; - -typedef struct -{ - __IO uint32_t IER; /*!< RAMECC interrupt enable register */ -} RAMECC_TypeDef; -/** - * @} - */ - - - -/** - * @brief RNG - */ - -typedef struct -{ - __IO uint32_t CR; /*!< RNG control register, Address offset: 0x00 */ - __IO uint32_t SR; /*!< RNG status register, Address offset: 0x04 */ - __IO uint32_t DR; /*!< RNG data register, Address offset: 0x08 */ - uint32_t RESERVED; - __IO uint32_t HTCR; /*!< RNG health test configuration register, Address offset: 0x10 */ -} RNG_TypeDef; - -/** - * @brief MDIOS - */ - -typedef struct -{ - __IO uint32_t CR; - __IO uint32_t WRFR; - __IO uint32_t CWRFR; - __IO uint32_t RDFR; - __IO uint32_t CRDFR; - __IO uint32_t SR; - __IO uint32_t CLRFR; - uint32_t RESERVED[57]; - __IO uint32_t DINR0; - __IO uint32_t DINR1; - __IO uint32_t DINR2; - __IO uint32_t DINR3; - __IO uint32_t DINR4; - __IO uint32_t DINR5; - __IO uint32_t DINR6; - __IO uint32_t DINR7; - __IO uint32_t DINR8; - __IO uint32_t DINR9; - __IO uint32_t DINR10; - __IO uint32_t DINR11; - __IO uint32_t DINR12; - __IO uint32_t DINR13; - __IO uint32_t DINR14; - __IO uint32_t DINR15; - __IO uint32_t DINR16; - __IO uint32_t DINR17; - __IO uint32_t DINR18; - __IO uint32_t DINR19; - __IO uint32_t DINR20; - __IO uint32_t DINR21; - __IO uint32_t DINR22; - __IO uint32_t DINR23; - __IO uint32_t DINR24; - __IO uint32_t DINR25; - __IO uint32_t DINR26; - __IO uint32_t DINR27; - __IO uint32_t DINR28; - __IO uint32_t DINR29; - __IO uint32_t DINR30; - __IO uint32_t DINR31; - __IO uint32_t DOUTR0; - __IO uint32_t DOUTR1; - __IO uint32_t DOUTR2; - __IO uint32_t DOUTR3; - __IO uint32_t DOUTR4; - __IO uint32_t DOUTR5; - __IO uint32_t DOUTR6; - __IO uint32_t DOUTR7; - __IO uint32_t DOUTR8; - __IO uint32_t DOUTR9; - __IO uint32_t DOUTR10; - __IO uint32_t DOUTR11; - __IO uint32_t DOUTR12; - __IO uint32_t DOUTR13; - __IO uint32_t DOUTR14; - __IO uint32_t DOUTR15; - __IO uint32_t DOUTR16; - __IO uint32_t DOUTR17; - __IO uint32_t DOUTR18; - __IO uint32_t DOUTR19; - __IO uint32_t DOUTR20; - __IO uint32_t DOUTR21; - __IO uint32_t DOUTR22; - __IO uint32_t DOUTR23; - __IO uint32_t DOUTR24; - __IO uint32_t DOUTR25; - __IO uint32_t DOUTR26; - __IO uint32_t DOUTR27; - __IO uint32_t DOUTR28; - __IO uint32_t DOUTR29; - __IO uint32_t DOUTR30; - __IO uint32_t DOUTR31; -} MDIOS_TypeDef; - - -/** - * @brief USB_OTG_Core_Registers - */ -typedef struct -{ - __IO uint32_t GOTGCTL; /*!< USB_OTG Control and Status Register 000h */ - __IO uint32_t GOTGINT; /*!< USB_OTG Interrupt Register 004h */ - __IO uint32_t GAHBCFG; /*!< Core AHB Configuration Register 008h */ - __IO uint32_t GUSBCFG; /*!< Core USB Configuration Register 00Ch */ - __IO uint32_t GRSTCTL; /*!< Core Reset Register 010h */ - __IO uint32_t GINTSTS; /*!< Core Interrupt Register 014h */ - __IO uint32_t GINTMSK; /*!< Core Interrupt Mask Register 018h */ - __IO uint32_t GRXSTSR; /*!< Receive Sts Q Read Register 01Ch */ - __IO uint32_t GRXSTSP; /*!< Receive Sts Q Read & POP Register 020h */ - __IO uint32_t GRXFSIZ; /*!< Receive FIFO Size Register 024h */ - __IO uint32_t DIEPTXF0_HNPTXFSIZ; /*!< EP0 / Non Periodic Tx FIFO Size Register 028h */ - __IO uint32_t HNPTXSTS; /*!< Non Periodic Tx FIFO/Queue Sts reg 02Ch */ - uint32_t Reserved30[2]; /*!< Reserved 030h */ - __IO uint32_t GCCFG; /*!< General Purpose IO Register 038h */ - __IO uint32_t CID; /*!< User ID Register 03Ch */ - __IO uint32_t GSNPSID; /* USB_OTG core ID 040h*/ - __IO uint32_t GHWCFG1; /* User HW config1 044h*/ - __IO uint32_t GHWCFG2; /* User HW config2 048h*/ - __IO uint32_t GHWCFG3; /*!< User HW config3 04Ch */ - uint32_t Reserved6; /*!< Reserved 050h */ - __IO uint32_t GLPMCFG; /*!< LPM Register 054h */ - __IO uint32_t GPWRDN; /*!< Power Down Register 058h */ - __IO uint32_t GDFIFOCFG; /*!< DFIFO Software Config Register 05Ch */ - __IO uint32_t GADPCTL; /*!< ADP Timer, Control and Status Register 60Ch */ - uint32_t Reserved43[39]; /*!< Reserved 058h-0FFh */ - __IO uint32_t HPTXFSIZ; /*!< Host Periodic Tx FIFO Size Reg 100h */ - __IO uint32_t DIEPTXF[0x0F]; /*!< dev Periodic Transmit FIFO */ -} USB_OTG_GlobalTypeDef; - - -/** - * @brief USB_OTG_device_Registers - */ -typedef struct -{ - __IO uint32_t DCFG; /*!< dev Configuration Register 800h */ - __IO uint32_t DCTL; /*!< dev Control Register 804h */ - __IO uint32_t DSTS; /*!< dev Status Register (RO) 808h */ - uint32_t Reserved0C; /*!< Reserved 80Ch */ - __IO uint32_t DIEPMSK; /*!< dev IN Endpoint Mask 810h */ - __IO uint32_t DOEPMSK; /*!< dev OUT Endpoint Mask 814h */ - __IO uint32_t DAINT; /*!< dev All Endpoints Itr Reg 818h */ - __IO uint32_t DAINTMSK; /*!< dev All Endpoints Itr Mask 81Ch */ - uint32_t Reserved20; /*!< Reserved 820h */ - uint32_t Reserved9; /*!< Reserved 824h */ - __IO uint32_t DVBUSDIS; /*!< dev VBUS discharge Register 828h */ - __IO uint32_t DVBUSPULSE; /*!< dev VBUS Pulse Register 82Ch */ - __IO uint32_t DTHRCTL; /*!< dev threshold 830h */ - __IO uint32_t DIEPEMPMSK; /*!< dev empty msk 834h */ - __IO uint32_t DEACHINT; /*!< dedicated EP interrupt 838h */ - __IO uint32_t DEACHMSK; /*!< dedicated EP msk 83Ch */ - uint32_t Reserved40; /*!< dedicated EP mask 840h */ - __IO uint32_t DINEP1MSK; /*!< dedicated EP mask 844h */ - uint32_t Reserved44[15]; /*!< Reserved 844-87Ch */ - __IO uint32_t DOUTEP1MSK; /*!< dedicated EP msk 884h */ -} USB_OTG_DeviceTypeDef; - - -/** - * @brief USB_OTG_IN_Endpoint-Specific_Register - */ -typedef struct -{ - __IO uint32_t DIEPCTL; /*!< dev IN Endpoint Control Reg 900h + (ep_num * 20h) + 00h */ - uint32_t Reserved04; /*!< Reserved 900h + (ep_num * 20h) + 04h */ - __IO uint32_t DIEPINT; /*!< dev IN Endpoint Itr Reg 900h + (ep_num * 20h) + 08h */ - uint32_t Reserved0C; /*!< Reserved 900h + (ep_num * 20h) + 0Ch */ - __IO uint32_t DIEPTSIZ; /*!< IN Endpoint Txfer Size 900h + (ep_num * 20h) + 10h */ - __IO uint32_t DIEPDMA; /*!< IN Endpoint DMA Address Reg 900h + (ep_num * 20h) + 14h */ - __IO uint32_t DTXFSTS; /*!< IN Endpoint Tx FIFO Status Reg 900h + (ep_num * 20h) + 18h */ - uint32_t Reserved18; /*!< Reserved 900h+(ep_num*20h)+1Ch-900h+ (ep_num * 20h) + 1Ch */ -} USB_OTG_INEndpointTypeDef; - - -/** - * @brief USB_OTG_OUT_Endpoint-Specific_Registers - */ -typedef struct -{ - __IO uint32_t DOEPCTL; /*!< dev OUT Endpoint Control Reg B00h + (ep_num * 20h) + 00h */ - uint32_t Reserved04; /*!< Reserved B00h + (ep_num * 20h) + 04h */ - __IO uint32_t DOEPINT; /*!< dev OUT Endpoint Itr Reg B00h + (ep_num * 20h) + 08h */ - uint32_t Reserved0C; /*!< Reserved B00h + (ep_num * 20h) + 0Ch */ - __IO uint32_t DOEPTSIZ; /*!< dev OUT Endpoint Txfer Size B00h + (ep_num * 20h) + 10h */ - __IO uint32_t DOEPDMA; /*!< dev OUT Endpoint DMA Address B00h + (ep_num * 20h) + 14h */ - uint32_t Reserved18[2]; /*!< Reserved B00h + (ep_num * 20h) + 18h - B00h + (ep_num * 20h) + 1Ch */ -} USB_OTG_OUTEndpointTypeDef; - - -/** - * @brief USB_OTG_Host_Mode_Register_Structures - */ -typedef struct -{ - __IO uint32_t HCFG; /*!< Host Configuration Register 400h */ - __IO uint32_t HFIR; /*!< Host Frame Interval Register 404h */ - __IO uint32_t HFNUM; /*!< Host Frame Nbr/Frame Remaining 408h */ - uint32_t Reserved40C; /*!< Reserved 40Ch */ - __IO uint32_t HPTXSTS; /*!< Host Periodic Tx FIFO/ Queue Status 410h */ - __IO uint32_t HAINT; /*!< Host All Channels Interrupt Register 414h */ - __IO uint32_t HAINTMSK; /*!< Host All Channels Interrupt Mask 418h */ -} USB_OTG_HostTypeDef; - -/** - * @brief USB_OTG_Host_Channel_Specific_Registers - */ -typedef struct -{ - __IO uint32_t HCCHAR; /*!< Host Channel Characteristics Register 500h */ - __IO uint32_t HCSPLT; /*!< Host Channel Split Control Register 504h */ - __IO uint32_t HCINT; /*!< Host Channel Interrupt Register 508h */ - __IO uint32_t HCINTMSK; /*!< Host Channel Interrupt Mask Register 50Ch */ - __IO uint32_t HCTSIZ; /*!< Host Channel Transfer Size Register 510h */ - __IO uint32_t HCDMA; /*!< Host Channel DMA Address Register 514h */ - uint32_t Reserved[2]; /*!< Reserved */ -} USB_OTG_HostChannelTypeDef; -/** - * @} - */ - -/** - * @brief OCTO Serial Peripheral Interface - */ - -typedef struct -{ - __IO uint32_t CR; /*!< OCTOSPI Control register, Address offset: 0x000 */ - uint32_t RESERVED; /*!< Reserved, Address offset: 0x004 */ - __IO uint32_t DCR1; /*!< OCTOSPI Device Configuration register 1, Address offset: 0x008 */ - __IO uint32_t DCR2; /*!< OCTOSPI Device Configuration register 2, Address offset: 0x00C */ - __IO uint32_t DCR3; /*!< OCTOSPI Device Configuration register 3, Address offset: 0x010 */ - __IO uint32_t DCR4; /*!< OCTOSPI Device Configuration register 4, Address offset: 0x014 */ - uint32_t RESERVED1[2]; /*!< Reserved, Address offset: 0x018-0x01C */ - __IO uint32_t SR; /*!< OCTOSPI Status register, Address offset: 0x020 */ - __IO uint32_t FCR; /*!< OCTOSPI Flag Clear register, Address offset: 0x024 */ - uint32_t RESERVED2[6]; /*!< Reserved, Address offset: 0x028-0x03C */ - __IO uint32_t DLR; /*!< OCTOSPI Data Length register, Address offset: 0x040 */ - uint32_t RESERVED3; /*!< Reserved, Address offset: 0x044 */ - __IO uint32_t AR; /*!< OCTOSPI Address register, Address offset: 0x048 */ - uint32_t RESERVED4; /*!< Reserved, Address offset: 0x04C */ - __IO uint32_t DR; /*!< OCTOSPI Data register, Address offset: 0x050 */ - uint32_t RESERVED5[11]; /*!< Reserved, Address offset: 0x054-0x07C */ - __IO uint32_t PSMKR; /*!< OCTOSPI Polling Status Mask register, Address offset: 0x080 */ - uint32_t RESERVED6; /*!< Reserved, Address offset: 0x084 */ - __IO uint32_t PSMAR; /*!< OCTOSPI Polling Status Match register, Address offset: 0x088 */ - uint32_t RESERVED7; /*!< Reserved, Address offset: 0x08C */ - __IO uint32_t PIR; /*!< OCTOSPI Polling Interval register, Address offset: 0x090 */ - uint32_t RESERVED8[27]; /*!< Reserved, Address offset: 0x094-0x0FC */ - __IO uint32_t CCR; /*!< OCTOSPI Communication Configuration register, Address offset: 0x100 */ - uint32_t RESERVED9; /*!< Reserved, Address offset: 0x104 */ - __IO uint32_t TCR; /*!< OCTOSPI Timing Configuration register, Address offset: 0x108 */ - uint32_t RESERVED10; /*!< Reserved, Address offset: 0x10C */ - __IO uint32_t IR; /*!< OCTOSPI Instruction register, Address offset: 0x110 */ - uint32_t RESERVED11[3]; /*!< Reserved, Address offset: 0x114-0x11C */ - __IO uint32_t ABR; /*!< OCTOSPI Alternate Bytes register, Address offset: 0x120 */ - uint32_t RESERVED12[3]; /*!< Reserved, Address offset: 0x124-0x12C */ - __IO uint32_t LPTR; /*!< OCTOSPI Low Power Timeout register, Address offset: 0x130 */ - uint32_t RESERVED13[3]; /*!< Reserved, Address offset: 0x134-0x13C */ - __IO uint32_t WPCCR; /*!< OCTOSPI Wrap Communication Configuration register, Address offset: 0x140 */ - uint32_t RESERVED14; /*!< Reserved, Address offset: 0x144 */ - __IO uint32_t WPTCR; /*!< OCTOSPI Wrap Timing Configuration register, Address offset: 0x148 */ - uint32_t RESERVED15; /*!< Reserved, Address offset: 0x14C */ - __IO uint32_t WPIR; /*!< OCTOSPI Wrap Instruction register, Address offset: 0x150 */ - uint32_t RESERVED16[3]; /*!< Reserved, Address offset: 0x154-0x15C */ - __IO uint32_t WPABR; /*!< OCTOSPI Wrap Alternate Bytes register, Address offset: 0x160 */ - uint32_t RESERVED17[7]; /*!< Reserved, Address offset: 0x164-0x17C */ - __IO uint32_t WCCR; /*!< OCTOSPI Write Communication Configuration register, Address offset: 0x180 */ - uint32_t RESERVED18; /*!< Reserved, Address offset: 0x184 */ - __IO uint32_t WTCR; /*!< OCTOSPI Write Timing Configuration register, Address offset: 0x188 */ - uint32_t RESERVED19; /*!< Reserved, Address offset: 0x18C */ - __IO uint32_t WIR; /*!< OCTOSPI Write Instruction register, Address offset: 0x190 */ - uint32_t RESERVED20[3]; /*!< Reserved, Address offset: 0x194-0x19C */ - __IO uint32_t WABR; /*!< OCTOSPI Write Alternate Bytes register, Address offset: 0x1A0 */ - uint32_t RESERVED21[23]; /*!< Reserved, Address offset: 0x1A4-0x1FC */ - __IO uint32_t HLCR; /*!< OCTOSPI Hyperbus Latency Configuration register, Address offset: 0x200 */ - uint32_t RESERVED22[122]; /*!< Reserved, Address offset: 0x204-0x3EC */ - __IO uint32_t HWCFGR; /*!< OCTOSPI HW Configuration register, Address offset: 0x3F0 */ - __IO uint32_t VER; /*!< OCTOSPI Version register, Address offset: 0x3F4 */ - __IO uint32_t ID; /*!< OCTOSPI Identification register, Address offset: 0x3F8 */ - __IO uint32_t MID; /*!< OCTOPSI HW Magic ID register, Address offset: 0x3FC */ -} OCTOSPI_TypeDef; - -/** - * @} - */ -/** - * @brief OCTO Serial Peripheral Interface IO Manager - */ - -typedef struct -{ - __IO uint32_t CR; /*!< OCTOSPI IO Manager Control register, Address offset: 0x00 */ - __IO uint32_t PCR[3]; /*!< OCTOSPI IO Manager Port[1:3] Configuration register, Address offset: 0x04-0x20 */ -} OCTOSPIM_TypeDef; - -/** - * @} - */ - -/** - * @brief Global Programmer View - */ - -typedef struct -{ - uint32_t RESERVED0[2036]; /*!< Reserved, Address offset: 0x00-0x1FCC */ - __IO uint32_t AXI_PERIPH_ID_4; /*!< AXI interconnect - peripheral ID4 register, Address offset: 0x1FD0 */ - uint32_t AXI_PERIPH_ID_5; /*!< Reserved, Address offset: 0x1FD4 */ - uint32_t AXI_PERIPH_ID_6; /*!< Reserved, Address offset: 0x1FD8 */ - uint32_t AXI_PERIPH_ID_7; /*!< Reserved, Address offset: 0x1FDC */ - __IO uint32_t AXI_PERIPH_ID_0; /*!< AXI interconnect - peripheral ID0 register, Address offset: 0x1FE0 */ - __IO uint32_t AXI_PERIPH_ID_1; /*!< AXI interconnect - peripheral ID1 register, Address offset: 0x1FE4 */ - __IO uint32_t AXI_PERIPH_ID_2; /*!< AXI interconnect - peripheral ID2 register, Address offset: 0x1FE8 */ - __IO uint32_t AXI_PERIPH_ID_3; /*!< AXI interconnect - peripheral ID3 register, Address offset: 0x1FEC */ - __IO uint32_t AXI_COMP_ID_0; /*!< AXI interconnect - component ID0 register, Address offset: 0x1FF0 */ - __IO uint32_t AXI_COMP_ID_1; /*!< AXI interconnect - component ID1 register, Address offset: 0x1FF4 */ - __IO uint32_t AXI_COMP_ID_2; /*!< AXI interconnect - component ID2 register, Address offset: 0x1FF8 */ - __IO uint32_t AXI_COMP_ID_3; /*!< AXI interconnect - component ID3 register, Address offset: 0x1FFC */ - uint32_t RESERVED1[2]; /*!< Reserved, Address offset: 0x2000-0x2004 */ - __IO uint32_t AXI_TARG1_FN_MOD_ISS_BM; /*!< AXI interconnect - TARG 1 bus matrix issuing functionality register, Address offset: 0x2008 */ - uint32_t RESERVED2[6]; /*!< Reserved, Address offset: 0x200C-0x2020 */ - __IO uint32_t AXI_TARG1_FN_MOD2; /*!< AXI interconnect - TARG 1 bus matrix functionality 2 register, Address offset: 0x2024 */ - uint32_t RESERVED3; /*!< Reserved, Address offset: 0x2028 */ - __IO uint32_t AXI_TARG1_FN_MOD_LB; /*!< AXI interconnect - TARG 1 long burst functionality modification register, Address offset: 0x202C */ - uint32_t RESERVED4[54]; /*!< Reserved, Address offset: 0x2030-0x2104 */ - __IO uint32_t AXI_TARG1_FN_MOD; /*!< AXI interconnect - TARG 1 issuing functionality modification register, Address offset: 0x2108 */ - uint32_t RESERVED5[959]; /*!< Reserved, Address offset: 0x210C-0x3004 */ - __IO uint32_t AXI_TARG2_FN_MOD_ISS_BM; /*!< AXI interconnect - TARG 2 bus matrix issuing functionality register, Address offset: 0x3008 */ - uint32_t RESERVED6[6]; /*!< Reserved, Address offset: 0x300C-0x3020 */ - __IO uint32_t AXI_TARG2_FN_MOD2; /*!< AXI interconnect - TARG 2 bus matrix functionality 2 register, Address offset: 0x3024 */ - uint32_t RESERVED7; /*!< Reserved, Address offset: 0x3028 */ - __IO uint32_t AXI_TARG2_FN_MOD_LB; /*!< AXI interconnect - TARG 2 long burst functionality modification register, Address offset: 0x302C */ - uint32_t RESERVED8[54]; /*!< Reserved, Address offset: 0x3030-0x3104 */ - __IO uint32_t AXI_TARG2_FN_MOD; /*!< AXI interconnect - TARG 2 issuing functionality modification register, Address offset: 0x3108 */ - uint32_t RESERVED9[959]; /*!< Reserved, Address offset: 0x310C-0x4004 */ - __IO uint32_t AXI_TARG3_FN_MOD_ISS_BM; /*!< AXI interconnect - TARG 3 bus matrix issuing functionality register, Address offset: 0x4008 */ - uint32_t RESERVED10[1023]; /*!< Reserved, Address offset: 0x400C-0x5004 */ - __IO uint32_t AXI_TARG4_FN_MOD_ISS_BM; /*!< AXI interconnect - TARG 4 bus matrix issuing functionality register, Address offset: 0x5008 */ - uint32_t RESERVED11[1023]; /*!< Reserved, Address offset: 0x500C-0x6004 */ - __IO uint32_t AXI_TARG5_FN_MOD_ISS_BM; /*!< AXI interconnect - TARG 5 bus matrix issuing functionality register, Address offset: 0x6008 */ - uint32_t RESERVED12[1023]; /*!< Reserved, Address offset: 0x600C-0x7004 */ - __IO uint32_t AXI_TARG6_FN_MOD_ISS_BM; /*!< AXI interconnect - TARG 6 bus matrix issuing functionality register, Address offset: 0x7008 */ - uint32_t RESERVED13[1023]; /*!< Reserved, Address offset: 0x700C-0x8004 */ - __IO uint32_t AXI_TARG7_FN_MOD_ISS_BM; /*!< AXI interconnect - TARG 7 bus matrix issuing functionality register, Address offset: 0x8008 */ - uint32_t RESERVED14[6]; /*!< Reserved, Address offset: 0x800C-0x8020 */ - __IO uint32_t AXI_TARG7_FN_MOD2; /*!< AXI interconnect - TARG 7 bus matrix functionality 2 register, Address offset: 0x8024 */ - uint32_t RESERVED15; /*!< Reserved, Address offset: 0x8028 */ - __IO uint32_t AXI_TARG7_FN_MOD_LB; /*!< AXI interconnect - TARG 7 long burst functionality modification register, Address offset: 0x802C */ - uint32_t RESERVED16[54]; /*!< Reserved, Address offset: 0x8030-0x8104 */ - __IO uint32_t AXI_TARG7_FN_MOD; /*!< AXI interconnect - TARG 7 issuing functionality modification register, Address offset: 0x8108 */ - uint32_t RESERVED17[959]; /*!< Reserved, Address offset: 0x810C-0x9004 */ - __IO uint32_t AXI_TARG8_FN_MOD_ISS_BM; /*!< AXI interconnect - TARG 8 bus matrix issuing functionality register, Address offset: 0x9008 */ - uint32_t RESERVED117[6]; /*!< Reserved, Address offset: 0x900C-0x9020 */ - __IO uint32_t AXI_TARG8_FN_MOD2; /*!< AXI interconnect - TARG 8 bus matrix functionality 2 register, Address offset: 0x9024 */ - uint32_t RESERVED118[56]; /*!< Reserved, Address offset: 0x9028-0x9104 */ - __IO uint32_t AXI_TARG8_FN_MOD; /*!< AXI interconnect - TARG 8 issuing functionality modification register, Address offset: 0x9108 */ - uint32_t RESERVED119[58310]; /*!< Reserved, Address offset: 0x910C-0x42020 */ - __IO uint32_t AXI_INI1_FN_MOD2; /*!< AXI interconnect - INI 1 functionality modification 2 register, Address offset: 0x42024 */ - __IO uint32_t AXI_INI1_FN_MOD_AHB; /*!< AXI interconnect - INI 1 AHB functionality modification register, Address offset: 0x42028 */ - uint32_t RESERVED18[53]; /*!< Reserved, Address offset: 0x4202C-0x420FC */ - __IO uint32_t AXI_INI1_READ_QOS; /*!< AXI interconnect - INI 1 read QoS register, Address offset: 0x42100 */ - __IO uint32_t AXI_INI1_WRITE_QOS; /*!< AXI interconnect - INI 1 write QoS register, Address offset: 0x42104 */ - __IO uint32_t AXI_INI1_FN_MOD; /*!< AXI interconnect - INI 1 issuing functionality modification register, Address offset: 0x42108 */ - uint32_t RESERVED19[1021]; /*!< Reserved, Address offset: 0x4210C-0x430FC */ - __IO uint32_t AXI_INI2_READ_QOS; /*!< AXI interconnect - INI 2 read QoS register, Address offset: 0x43100 */ - __IO uint32_t AXI_INI2_WRITE_QOS; /*!< AXI interconnect - INI 2 write QoS register, Address offset: 0x43104 */ - __IO uint32_t AXI_INI2_FN_MOD; /*!< AXI interconnect - INI 2 issuing functionality modification register, Address offset: 0x43108 */ - uint32_t RESERVED20[966]; /*!< Reserved, Address offset: 0x4310C-0x44020 */ - __IO uint32_t AXI_INI3_FN_MOD2; /*!< AXI interconnect - INI 3 functionality modification 2 register, Address offset: 0x44024 */ - __IO uint32_t AXI_INI3_FN_MOD_AHB; /*!< AXI interconnect - INI 3 AHB functionality modification register, Address offset: 0x44028 */ - uint32_t RESERVED21[53]; /*!< Reserved, Address offset: 0x4402C-0x440FC */ - __IO uint32_t AXI_INI3_READ_QOS; /*!< AXI interconnect - INI 3 read QoS register, Address offset: 0x44100 */ - __IO uint32_t AXI_INI3_WRITE_QOS; /*!< AXI interconnect - INI 3 write QoS register, Address offset: 0x44104 */ - __IO uint32_t AXI_INI3_FN_MOD; /*!< AXI interconnect - INI 3 issuing functionality modification register, Address offset: 0x44108 */ - uint32_t RESERVED22[1021]; /*!< Reserved, Address offset: 0x4410C-0x450FC */ - __IO uint32_t AXI_INI4_READ_QOS; /*!< AXI interconnect - INI 4 read QoS register, Address offset: 0x45100 */ - __IO uint32_t AXI_INI4_WRITE_QOS; /*!< AXI interconnect - INI 4 write QoS register, Address offset: 0x45104 */ - __IO uint32_t AXI_INI4_FN_MOD; /*!< AXI interconnect - INI 4 issuing functionality modification register, Address offset: 0x45108 */ - uint32_t RESERVED23[1021]; /*!< Reserved, Address offset: 0x4510C-0x460FC */ - __IO uint32_t AXI_INI5_READ_QOS; /*!< AXI interconnect - INI 5 read QoS register, Address offset: 0x46100 */ - __IO uint32_t AXI_INI5_WRITE_QOS; /*!< AXI interconnect - INI 5 write QoS register, Address offset: 0x46104 */ - __IO uint32_t AXI_INI5_FN_MOD; /*!< AXI interconnect - INI 5 issuing functionality modification register, Address offset: 0x46108 */ - uint32_t RESERVED24[1021]; /*!< Reserved, Address offset: 0x4610C-0x470FC */ - __IO uint32_t AXI_INI6_READ_QOS; /*!< AXI interconnect - INI 6 read QoS register, Address offset: 0x47100 */ - __IO uint32_t AXI_INI6_WRITE_QOS; /*!< AXI interconnect - INI 6 write QoS register, Address offset: 0x47104 */ - __IO uint32_t AXI_INI6_FN_MOD; /*!< AXI interconnect - INI 6 issuing functionality modification register, Address offset: 0x47108 */ - -} GPV_TypeDef; - -/** @addtogroup Peripheral_memory_map - * @{ - */ -#define D1_ITCMRAM_BASE (0x00000000UL) /*!< Base address of : 64KB RAM reserved for CPU execution/instruction accessible over ITCM */ -#define D1_ITCMICP_BASE (0x00100000UL) /*!< Base address of : (up to 128KB) embedded Test FLASH memory accessible over ITCM */ -#define D1_DTCMRAM_BASE (0x20000000UL) /*!< Base address of : 128KB system data RAM accessible over DTCM */ -#define D1_AXIFLASH_BASE (0x08000000UL) /*!< Base address of : (up to 1 MB) embedded FLASH memory accessible over AXI */ -#define D1_AXIICP_BASE (0x1FF00000UL) /*!< Base address of : (up to 128KB) embedded Test FLASH memory accessible over AXI */ -#define D1_AXISRAM1_BASE (0x24000000UL) /*!< Base address of : (up to 128KB) system data RAM1 accessible over over AXI */ -#define D1_AXISRAM2_BASE (0x24020000UL) /*!< Base address of : (up to 192KB) system data RAM2 accessible over over AXI to be shared with ITCM (64K granularity) */ -#define D1_AXISRAM_BASE D1_AXISRAM1_BASE /*!< Base address of : (up to 320KB) system data RAM1/2 accessible over over AXI */ - -#define D2_AHBSRAM1_BASE (0x30000000UL) /*!< Base address of : (up to 16KB) system data RAM accessible over over AXI->AHB Bridge */ -#define D2_AHBSRAM2_BASE (0x30004000UL) /*!< Base address of : (up to 16KB) system data RAM accessible over over AXI->AHB Bridge */ -#define D2_AHBSRAM_BASE D2_AHBSRAM1_BASE /*!< Base address of : (up to 32KB) system data RAM1/2 accessible over over AXI->AHB Bridge */ - -#define D3_BKPSRAM_BASE (0x38800000UL) /*!< Base address of : Backup SRAM(4 KB) over AXI->AHB Bridge */ -#define D3_SRAM_BASE (0x38000000UL) /*!< Base address of : Backup SRAM(16 KB) over AXI->AHB Bridge */ - -#define PERIPH_BASE (0x40000000UL) /*!< Base address of : AHB/APB Peripherals */ -#define OCTOSPI1_BASE (0x90000000UL) /*!< Base address of : OCTOSPI1 memories accessible over AXI */ -#define OCTOSPI2_BASE (0x70000000UL) /*!< Base address of : OCTOSPI2 memories accessible over AXI */ - -#define FLASH_BANK1_BASE (0x08000000UL) /*!< Base address of : (up to 1 MB) Flash Bank1 accessible over AXI */ -#define FLASH_END (0x080FFFFFUL) /*!< FLASH end address */ - - -/* Legacy define */ -#define FLASH_BASE FLASH_BANK1_BASE - -/*!< Device electronic signature memory map */ -#define UID_BASE (0x1FF1E800UL) /*!< Unique device ID register base address */ -#define FLASHSIZE_BASE (0x1FF1E880UL) /*!< FLASH Size register base address */ - - -/*!< Peripheral memory map */ -#define D2_APB1PERIPH_BASE PERIPH_BASE -#define D2_APB2PERIPH_BASE (PERIPH_BASE + 0x00010000UL) -#define D2_AHB1PERIPH_BASE (PERIPH_BASE + 0x00020000UL) -#define D2_AHB2PERIPH_BASE (PERIPH_BASE + 0x08020000UL) - -#define D1_APB1PERIPH_BASE (PERIPH_BASE + 0x10000000UL) -#define D1_AHB1PERIPH_BASE (PERIPH_BASE + 0x12000000UL) - -#define D3_APB1PERIPH_BASE (PERIPH_BASE + 0x18000000UL) -#define D3_AHB1PERIPH_BASE (PERIPH_BASE + 0x18020000UL) - -/*!< Legacy Peripheral memory map */ -#define APB1PERIPH_BASE PERIPH_BASE -#define APB2PERIPH_BASE (PERIPH_BASE + 0x00010000UL) -#define AHB1PERIPH_BASE (PERIPH_BASE + 0x00020000UL) -#define AHB2PERIPH_BASE (PERIPH_BASE + 0x08000000UL) - - -/*!< D1_AHB1PERIPH peripherals */ - -#define MDMA_BASE (D1_AHB1PERIPH_BASE + 0x0000UL) -#define DMA2D_BASE (D1_AHB1PERIPH_BASE + 0x1000UL) -#define FLASH_R_BASE (D1_AHB1PERIPH_BASE + 0x2000UL) -#define FMC_R_BASE (D1_AHB1PERIPH_BASE + 0x4000UL) -#define OCTOSPI1_R_BASE (D1_AHB1PERIPH_BASE + 0x5000UL) -#define DLYB_OCTOSPI1_BASE (D1_AHB1PERIPH_BASE + 0x6000UL) -#define SDMMC1_BASE (D1_AHB1PERIPH_BASE + 0x7000UL) -#define DLYB_SDMMC1_BASE (D1_AHB1PERIPH_BASE + 0x8000UL) -#define RAMECC1_BASE (D1_AHB1PERIPH_BASE + 0x9000UL) -#define OCTOSPI2_R_BASE (D1_AHB1PERIPH_BASE + 0xA000UL) -#define DLYB_OCTOSPI2_BASE (D1_AHB1PERIPH_BASE + 0xB000UL) -#define OCTOSPIM_BASE (D1_AHB1PERIPH_BASE + 0xB400UL) - -/*!< D2_AHB1PERIPH peripherals */ - -#define DMA1_BASE (D2_AHB1PERIPH_BASE + 0x0000UL) -#define DMA2_BASE (D2_AHB1PERIPH_BASE + 0x0400UL) -#define DMAMUX1_BASE (D2_AHB1PERIPH_BASE + 0x0800UL) -#define ADC1_BASE (D2_AHB1PERIPH_BASE + 0x2000UL) -#define ADC2_BASE (D2_AHB1PERIPH_BASE + 0x2100UL) -#define ADC12_COMMON_BASE (D2_AHB1PERIPH_BASE + 0x2300UL) -#define ETH_BASE (D2_AHB1PERIPH_BASE + 0x8000UL) -#define ETH_MAC_BASE (ETH_BASE) - -/*!< USB registers base address */ -#define USB1_OTG_HS_PERIPH_BASE (0x40040000UL) -#define USB_OTG_GLOBAL_BASE (0x000UL) -#define USB_OTG_DEVICE_BASE (0x800UL) -#define USB_OTG_IN_ENDPOINT_BASE (0x900UL) -#define USB_OTG_OUT_ENDPOINT_BASE (0xB00UL) -#define USB_OTG_EP_REG_SIZE (0x20UL) -#define USB_OTG_HOST_BASE (0x400UL) -#define USB_OTG_HOST_PORT_BASE (0x440UL) -#define USB_OTG_HOST_CHANNEL_BASE (0x500UL) -#define USB_OTG_HOST_CHANNEL_SIZE (0x20UL) -#define USB_OTG_PCGCCTL_BASE (0xE00UL) -#define USB_OTG_FIFO_BASE (0x1000UL) -#define USB_OTG_FIFO_SIZE (0x1000UL) - -/*!< D2_AHB2PERIPH peripherals */ - -#define DCMI_BASE (D2_AHB2PERIPH_BASE + 0x0000UL) -#define PSSI_BASE (D2_AHB2PERIPH_BASE + 0x0400UL) -#define RNG_BASE (D2_AHB2PERIPH_BASE + 0x1800UL) -#define SDMMC2_BASE (D2_AHB2PERIPH_BASE + 0x2400UL) -#define DLYB_SDMMC2_BASE (D2_AHB2PERIPH_BASE + 0x2800UL) -#define RAMECC2_BASE (D2_AHB2PERIPH_BASE + 0x3000UL) -#define FMAC_BASE (D2_AHB2PERIPH_BASE + 0x4000UL) -#define CORDIC_BASE (D2_AHB2PERIPH_BASE + 0x4400UL) - -/*!< D3_AHB1PERIPH peripherals */ -#define GPIOA_BASE (D3_AHB1PERIPH_BASE + 0x0000UL) -#define GPIOB_BASE (D3_AHB1PERIPH_BASE + 0x0400UL) -#define GPIOC_BASE (D3_AHB1PERIPH_BASE + 0x0800UL) -#define GPIOD_BASE (D3_AHB1PERIPH_BASE + 0x0C00UL) -#define GPIOE_BASE (D3_AHB1PERIPH_BASE + 0x1000UL) -#define GPIOF_BASE (D3_AHB1PERIPH_BASE + 0x1400UL) -#define GPIOG_BASE (D3_AHB1PERIPH_BASE + 0x1800UL) -#define GPIOH_BASE (D3_AHB1PERIPH_BASE + 0x1C00UL) -#define GPIOJ_BASE (D3_AHB1PERIPH_BASE + 0x2400UL) -#define GPIOK_BASE (D3_AHB1PERIPH_BASE + 0x2800UL) -#define RCC_BASE (D3_AHB1PERIPH_BASE + 0x4400UL) -#define PWR_BASE (D3_AHB1PERIPH_BASE + 0x4800UL) -#define CRC_BASE (D3_AHB1PERIPH_BASE + 0x4C00UL) -#define BDMA_BASE (D3_AHB1PERIPH_BASE + 0x5400UL) -#define DMAMUX2_BASE (D3_AHB1PERIPH_BASE + 0x5800UL) -#define ADC3_BASE (D3_AHB1PERIPH_BASE + 0x6000UL) -#define ADC3_COMMON_BASE (D3_AHB1PERIPH_BASE + 0x6300UL) -#define HSEM_BASE (D3_AHB1PERIPH_BASE + 0x6400UL) -#define RAMECC3_BASE (D3_AHB1PERIPH_BASE + 0x7000UL) - -/*!< D1_APB1PERIPH peripherals */ -#define LTDC_BASE (D1_APB1PERIPH_BASE + 0x1000UL) -#define LTDC_Layer1_BASE (LTDC_BASE + 0x84UL) -#define LTDC_Layer2_BASE (LTDC_BASE + 0x104UL) -#define WWDG1_BASE (D1_APB1PERIPH_BASE + 0x3000UL) - -/*!< D2_APB1PERIPH peripherals */ -#define TIM2_BASE (D2_APB1PERIPH_BASE + 0x0000UL) -#define TIM3_BASE (D2_APB1PERIPH_BASE + 0x0400UL) -#define TIM4_BASE (D2_APB1PERIPH_BASE + 0x0800UL) -#define TIM5_BASE (D2_APB1PERIPH_BASE + 0x0C00UL) -#define TIM6_BASE (D2_APB1PERIPH_BASE + 0x1000UL) -#define TIM7_BASE (D2_APB1PERIPH_BASE + 0x1400UL) -#define TIM12_BASE (D2_APB1PERIPH_BASE + 0x1800UL) -#define TIM13_BASE (D2_APB1PERIPH_BASE + 0x1C00UL) -#define TIM14_BASE (D2_APB1PERIPH_BASE + 0x2000UL) -#define LPTIM1_BASE (D2_APB1PERIPH_BASE + 0x2400UL) - - -#define SPI2_BASE (D2_APB1PERIPH_BASE + 0x3800UL) -#define SPI3_BASE (D2_APB1PERIPH_BASE + 0x3C00UL) -#define SPDIFRX_BASE (D2_APB1PERIPH_BASE + 0x4000UL) -#define USART2_BASE (D2_APB1PERIPH_BASE + 0x4400UL) -#define USART3_BASE (D2_APB1PERIPH_BASE + 0x4800UL) -#define UART4_BASE (D2_APB1PERIPH_BASE + 0x4C00UL) -#define UART5_BASE (D2_APB1PERIPH_BASE + 0x5000UL) -#define I2C1_BASE (D2_APB1PERIPH_BASE + 0x5400UL) -#define I2C2_BASE (D2_APB1PERIPH_BASE + 0x5800UL) -#define I2C3_BASE (D2_APB1PERIPH_BASE + 0x5C00UL) -#define I2C5_BASE (D2_APB1PERIPH_BASE + 0x6400UL) -#define CEC_BASE (D2_APB1PERIPH_BASE + 0x6C00UL) -#define DAC1_BASE (D2_APB1PERIPH_BASE + 0x7400UL) -#define UART7_BASE (D2_APB1PERIPH_BASE + 0x7800UL) -#define UART8_BASE (D2_APB1PERIPH_BASE + 0x7C00UL) -#define CRS_BASE (D2_APB1PERIPH_BASE + 0x8400UL) -#define SWPMI1_BASE (D2_APB1PERIPH_BASE + 0x8800UL) -#define OPAMP_BASE (D2_APB1PERIPH_BASE + 0x9000UL) -#define OPAMP1_BASE (D2_APB1PERIPH_BASE + 0x9000UL) -#define OPAMP2_BASE (D2_APB1PERIPH_BASE + 0x9010UL) -#define MDIOS_BASE (D2_APB1PERIPH_BASE + 0x9400UL) -#define FDCAN1_BASE (D2_APB1PERIPH_BASE + 0xA000UL) -#define FDCAN2_BASE (D2_APB1PERIPH_BASE + 0xA400UL) -#define FDCAN_CCU_BASE (D2_APB1PERIPH_BASE + 0xA800UL) -#define SRAMCAN_BASE (D2_APB1PERIPH_BASE + 0xAC00UL) -#define FDCAN3_BASE (D2_APB1PERIPH_BASE + 0xD400UL) -#define TIM23_BASE (D2_APB1PERIPH_BASE + 0xE000UL) -#define TIM24_BASE (D2_APB1PERIPH_BASE + 0xE400UL) - -/*!< D2_APB2PERIPH peripherals */ - -#define TIM1_BASE (D2_APB2PERIPH_BASE + 0x0000UL) -#define TIM8_BASE (D2_APB2PERIPH_BASE + 0x0400UL) -#define USART1_BASE (D2_APB2PERIPH_BASE + 0x1000UL) -#define USART6_BASE (D2_APB2PERIPH_BASE + 0x1400UL) -#define UART9_BASE (D2_APB2PERIPH_BASE + 0x1800UL) -#define USART10_BASE (D2_APB2PERIPH_BASE + 0x1C00UL) -#define SPI1_BASE (D2_APB2PERIPH_BASE + 0x3000UL) -#define SPI4_BASE (D2_APB2PERIPH_BASE + 0x3400UL) -#define TIM15_BASE (D2_APB2PERIPH_BASE + 0x4000UL) -#define TIM16_BASE (D2_APB2PERIPH_BASE + 0x4400UL) -#define TIM17_BASE (D2_APB2PERIPH_BASE + 0x4800UL) -#define SPI5_BASE (D2_APB2PERIPH_BASE + 0x5000UL) -#define SAI1_BASE (D2_APB2PERIPH_BASE + 0x5800UL) -#define SAI1_Block_A_BASE (SAI1_BASE + 0x004UL) -#define SAI1_Block_B_BASE (SAI1_BASE + 0x024UL) -#define DFSDM1_BASE (D2_APB2PERIPH_BASE + 0x7800UL) -#define DFSDM1_Channel0_BASE (DFSDM1_BASE + 0x00UL) -#define DFSDM1_Channel1_BASE (DFSDM1_BASE + 0x20UL) -#define DFSDM1_Channel2_BASE (DFSDM1_BASE + 0x40UL) -#define DFSDM1_Channel3_BASE (DFSDM1_BASE + 0x60UL) -#define DFSDM1_Channel4_BASE (DFSDM1_BASE + 0x80UL) -#define DFSDM1_Channel5_BASE (DFSDM1_BASE + 0xA0UL) -#define DFSDM1_Channel6_BASE (DFSDM1_BASE + 0xC0UL) -#define DFSDM1_Channel7_BASE (DFSDM1_BASE + 0xE0UL) -#define DFSDM1_Filter0_BASE (DFSDM1_BASE + 0x100UL) -#define DFSDM1_Filter1_BASE (DFSDM1_BASE + 0x180UL) -#define DFSDM1_Filter2_BASE (DFSDM1_BASE + 0x200UL) -#define DFSDM1_Filter3_BASE (DFSDM1_BASE + 0x280UL) - - -/*!< D3_APB1PERIPH peripherals */ -#define EXTI_BASE (D3_APB1PERIPH_BASE + 0x0000UL) -#define EXTI_D1_BASE (EXTI_BASE + 0x0080UL) -#define EXTI_D2_BASE (EXTI_BASE + 0x00C0UL) -#define SYSCFG_BASE (D3_APB1PERIPH_BASE + 0x0400UL) -#define LPUART1_BASE (D3_APB1PERIPH_BASE + 0x0C00UL) -#define SPI6_BASE (D3_APB1PERIPH_BASE + 0x1400UL) -#define I2C4_BASE (D3_APB1PERIPH_BASE + 0x1C00UL) -#define LPTIM2_BASE (D3_APB1PERIPH_BASE + 0x2400UL) -#define LPTIM3_BASE (D3_APB1PERIPH_BASE + 0x2800UL) -#define LPTIM4_BASE (D3_APB1PERIPH_BASE + 0x2C00UL) -#define LPTIM5_BASE (D3_APB1PERIPH_BASE + 0x3000UL) -#define COMP12_BASE (D3_APB1PERIPH_BASE + 0x3800UL) -#define COMP1_BASE (COMP12_BASE + 0x0CUL) -#define COMP2_BASE (COMP12_BASE + 0x10UL) -#define VREFBUF_BASE (D3_APB1PERIPH_BASE + 0x3C00UL) -#define RTC_BASE (D3_APB1PERIPH_BASE + 0x4000UL) -#define IWDG1_BASE (D3_APB1PERIPH_BASE + 0x4800UL) - - -#define SAI4_BASE (D3_APB1PERIPH_BASE + 0x5400UL) -#define SAI4_Block_A_BASE (SAI4_BASE + 0x004UL) -#define SAI4_Block_B_BASE (SAI4_BASE + 0x024UL) - -#define DTS_BASE (D3_APB1PERIPH_BASE + 0x6800UL) - - - -#define BDMA_Channel0_BASE (BDMA_BASE + 0x0008UL) -#define BDMA_Channel1_BASE (BDMA_BASE + 0x001CUL) -#define BDMA_Channel2_BASE (BDMA_BASE + 0x0030UL) -#define BDMA_Channel3_BASE (BDMA_BASE + 0x0044UL) -#define BDMA_Channel4_BASE (BDMA_BASE + 0x0058UL) -#define BDMA_Channel5_BASE (BDMA_BASE + 0x006CUL) -#define BDMA_Channel6_BASE (BDMA_BASE + 0x0080UL) -#define BDMA_Channel7_BASE (BDMA_BASE + 0x0094UL) - -#define DMAMUX2_Channel0_BASE (DMAMUX2_BASE) -#define DMAMUX2_Channel1_BASE (DMAMUX2_BASE + 0x0004UL) -#define DMAMUX2_Channel2_BASE (DMAMUX2_BASE + 0x0008UL) -#define DMAMUX2_Channel3_BASE (DMAMUX2_BASE + 0x000CUL) -#define DMAMUX2_Channel4_BASE (DMAMUX2_BASE + 0x0010UL) -#define DMAMUX2_Channel5_BASE (DMAMUX2_BASE + 0x0014UL) -#define DMAMUX2_Channel6_BASE (DMAMUX2_BASE + 0x0018UL) -#define DMAMUX2_Channel7_BASE (DMAMUX2_BASE + 0x001CUL) - -#define DMAMUX2_RequestGenerator0_BASE (DMAMUX2_BASE + 0x0100UL) -#define DMAMUX2_RequestGenerator1_BASE (DMAMUX2_BASE + 0x0104UL) -#define DMAMUX2_RequestGenerator2_BASE (DMAMUX2_BASE + 0x0108UL) -#define DMAMUX2_RequestGenerator3_BASE (DMAMUX2_BASE + 0x010CUL) -#define DMAMUX2_RequestGenerator4_BASE (DMAMUX2_BASE + 0x0110UL) -#define DMAMUX2_RequestGenerator5_BASE (DMAMUX2_BASE + 0x0114UL) -#define DMAMUX2_RequestGenerator6_BASE (DMAMUX2_BASE + 0x0118UL) -#define DMAMUX2_RequestGenerator7_BASE (DMAMUX2_BASE + 0x011CUL) - -#define DMAMUX2_ChannelStatus_BASE (DMAMUX2_BASE + 0x0080UL) -#define DMAMUX2_RequestGenStatus_BASE (DMAMUX2_BASE + 0x0140UL) - -#define DMA1_Stream0_BASE (DMA1_BASE + 0x010UL) -#define DMA1_Stream1_BASE (DMA1_BASE + 0x028UL) -#define DMA1_Stream2_BASE (DMA1_BASE + 0x040UL) -#define DMA1_Stream3_BASE (DMA1_BASE + 0x058UL) -#define DMA1_Stream4_BASE (DMA1_BASE + 0x070UL) -#define DMA1_Stream5_BASE (DMA1_BASE + 0x088UL) -#define DMA1_Stream6_BASE (DMA1_BASE + 0x0A0UL) -#define DMA1_Stream7_BASE (DMA1_BASE + 0x0B8UL) - -#define DMA2_Stream0_BASE (DMA2_BASE + 0x010UL) -#define DMA2_Stream1_BASE (DMA2_BASE + 0x028UL) -#define DMA2_Stream2_BASE (DMA2_BASE + 0x040UL) -#define DMA2_Stream3_BASE (DMA2_BASE + 0x058UL) -#define DMA2_Stream4_BASE (DMA2_BASE + 0x070UL) -#define DMA2_Stream5_BASE (DMA2_BASE + 0x088UL) -#define DMA2_Stream6_BASE (DMA2_BASE + 0x0A0UL) -#define DMA2_Stream7_BASE (DMA2_BASE + 0x0B8UL) - -#define DMAMUX1_Channel0_BASE (DMAMUX1_BASE) -#define DMAMUX1_Channel1_BASE (DMAMUX1_BASE + 0x0004UL) -#define DMAMUX1_Channel2_BASE (DMAMUX1_BASE + 0x0008UL) -#define DMAMUX1_Channel3_BASE (DMAMUX1_BASE + 0x000CUL) -#define DMAMUX1_Channel4_BASE (DMAMUX1_BASE + 0x0010UL) -#define DMAMUX1_Channel5_BASE (DMAMUX1_BASE + 0x0014UL) -#define DMAMUX1_Channel6_BASE (DMAMUX1_BASE + 0x0018UL) -#define DMAMUX1_Channel7_BASE (DMAMUX1_BASE + 0x001CUL) -#define DMAMUX1_Channel8_BASE (DMAMUX1_BASE + 0x0020UL) -#define DMAMUX1_Channel9_BASE (DMAMUX1_BASE + 0x0024UL) -#define DMAMUX1_Channel10_BASE (DMAMUX1_BASE + 0x0028UL) -#define DMAMUX1_Channel11_BASE (DMAMUX1_BASE + 0x002CUL) -#define DMAMUX1_Channel12_BASE (DMAMUX1_BASE + 0x0030UL) -#define DMAMUX1_Channel13_BASE (DMAMUX1_BASE + 0x0034UL) -#define DMAMUX1_Channel14_BASE (DMAMUX1_BASE + 0x0038UL) -#define DMAMUX1_Channel15_BASE (DMAMUX1_BASE + 0x003CUL) - -#define DMAMUX1_RequestGenerator0_BASE (DMAMUX1_BASE + 0x0100UL) -#define DMAMUX1_RequestGenerator1_BASE (DMAMUX1_BASE + 0x0104UL) -#define DMAMUX1_RequestGenerator2_BASE (DMAMUX1_BASE + 0x0108UL) -#define DMAMUX1_RequestGenerator3_BASE (DMAMUX1_BASE + 0x010CUL) -#define DMAMUX1_RequestGenerator4_BASE (DMAMUX1_BASE + 0x0110UL) -#define DMAMUX1_RequestGenerator5_BASE (DMAMUX1_BASE + 0x0114UL) -#define DMAMUX1_RequestGenerator6_BASE (DMAMUX1_BASE + 0x0118UL) -#define DMAMUX1_RequestGenerator7_BASE (DMAMUX1_BASE + 0x011CUL) - -#define DMAMUX1_ChannelStatus_BASE (DMAMUX1_BASE + 0x0080UL) -#define DMAMUX1_RequestGenStatus_BASE (DMAMUX1_BASE + 0x0140UL) - -/*!< FMC Banks registers base address */ -#define FMC_Bank1_R_BASE (FMC_R_BASE + 0x0000UL) -#define FMC_Bank1E_R_BASE (FMC_R_BASE + 0x0104UL) -#define FMC_Bank2_R_BASE (FMC_R_BASE + 0x0060UL) -#define FMC_Bank3_R_BASE (FMC_R_BASE + 0x0080UL) -#define FMC_Bank5_6_R_BASE (FMC_R_BASE + 0x0140UL) - -/* Debug MCU registers base address */ -#define DBGMCU_BASE (0x5C001000UL) - -#define MDMA_Channel0_BASE (MDMA_BASE + 0x00000040UL) -#define MDMA_Channel1_BASE (MDMA_BASE + 0x00000080UL) -#define MDMA_Channel2_BASE (MDMA_BASE + 0x000000C0UL) -#define MDMA_Channel3_BASE (MDMA_BASE + 0x00000100UL) -#define MDMA_Channel4_BASE (MDMA_BASE + 0x00000140UL) -#define MDMA_Channel5_BASE (MDMA_BASE + 0x00000180UL) -#define MDMA_Channel6_BASE (MDMA_BASE + 0x000001C0UL) -#define MDMA_Channel7_BASE (MDMA_BASE + 0x00000200UL) -#define MDMA_Channel8_BASE (MDMA_BASE + 0x00000240UL) -#define MDMA_Channel9_BASE (MDMA_BASE + 0x00000280UL) -#define MDMA_Channel10_BASE (MDMA_BASE + 0x000002C0UL) -#define MDMA_Channel11_BASE (MDMA_BASE + 0x00000300UL) -#define MDMA_Channel12_BASE (MDMA_BASE + 0x00000340UL) -#define MDMA_Channel13_BASE (MDMA_BASE + 0x00000380UL) -#define MDMA_Channel14_BASE (MDMA_BASE + 0x000003C0UL) -#define MDMA_Channel15_BASE (MDMA_BASE + 0x00000400UL) - -#define RAMECC1_Monitor1_BASE (RAMECC1_BASE + 0x20UL) -#define RAMECC1_Monitor2_BASE (RAMECC1_BASE + 0x40UL) -#define RAMECC1_Monitor3_BASE (RAMECC1_BASE + 0x60UL) -#define RAMECC1_Monitor4_BASE (RAMECC1_BASE + 0x80UL) -#define RAMECC1_Monitor5_BASE (RAMECC1_BASE + 0xA0UL) -#define RAMECC1_Monitor6_BASE (RAMECC1_BASE + 0xC0UL) - -#define RAMECC2_Monitor1_BASE (RAMECC2_BASE + 0x20UL) -#define RAMECC2_Monitor2_BASE (RAMECC2_BASE + 0x40UL) -#define RAMECC2_Monitor3_BASE (RAMECC2_BASE + 0x60UL) - -#define RAMECC3_Monitor1_BASE (RAMECC3_BASE + 0x20UL) -#define RAMECC3_Monitor2_BASE (RAMECC3_BASE + 0x40UL) - - - -#define GPV_BASE (PERIPH_BASE + 0x11000000UL) /*!< GPV_BASE (PERIPH_BASE + 0x11000000UL) */ - -/** - * @} - */ - -/** @addtogroup Peripheral_declaration - * @{ - */ -#define TIM2 ((TIM_TypeDef *) TIM2_BASE) -#define TIM3 ((TIM_TypeDef *) TIM3_BASE) -#define TIM4 ((TIM_TypeDef *) TIM4_BASE) -#define TIM5 ((TIM_TypeDef *) TIM5_BASE) -#define TIM6 ((TIM_TypeDef *) TIM6_BASE) -#define TIM7 ((TIM_TypeDef *) TIM7_BASE) -#define TIM13 ((TIM_TypeDef *) TIM13_BASE) -#define TIM14 ((TIM_TypeDef *) TIM14_BASE) -#define VREFBUF ((VREFBUF_TypeDef *) VREFBUF_BASE) -#define RTC ((RTC_TypeDef *) RTC_BASE) -#define WWDG1 ((WWDG_TypeDef *) WWDG1_BASE) - - -#define IWDG1 ((IWDG_TypeDef *) IWDG1_BASE) -#define SPI2 ((SPI_TypeDef *) SPI2_BASE) -#define SPI3 ((SPI_TypeDef *) SPI3_BASE) -#define SPI4 ((SPI_TypeDef *) SPI4_BASE) -#define SPI5 ((SPI_TypeDef *) SPI5_BASE) -#define SPI6 ((SPI_TypeDef *) SPI6_BASE) -#define USART2 ((USART_TypeDef *) USART2_BASE) -#define USART3 ((USART_TypeDef *) USART3_BASE) -#define USART6 ((USART_TypeDef *) USART6_BASE) -#define USART10 ((USART_TypeDef *) USART10_BASE) -#define UART7 ((USART_TypeDef *) UART7_BASE) -#define UART8 ((USART_TypeDef *) UART8_BASE) -#define UART9 ((USART_TypeDef *) UART9_BASE) -#define CRS ((CRS_TypeDef *) CRS_BASE) -#define UART4 ((USART_TypeDef *) UART4_BASE) -#define UART5 ((USART_TypeDef *) UART5_BASE) -#define I2C1 ((I2C_TypeDef *) I2C1_BASE) -#define I2C2 ((I2C_TypeDef *) I2C2_BASE) -#define I2C3 ((I2C_TypeDef *) I2C3_BASE) -#define I2C4 ((I2C_TypeDef *) I2C4_BASE) -#define I2C5 ((I2C_TypeDef *) I2C5_BASE) -#define FDCAN1 ((FDCAN_GlobalTypeDef *) FDCAN1_BASE) -#define FDCAN2 ((FDCAN_GlobalTypeDef *) FDCAN2_BASE) -#define FDCAN_CCU ((FDCAN_ClockCalibrationUnit_TypeDef *) FDCAN_CCU_BASE) -#define FDCAN3 ((FDCAN_GlobalTypeDef *) FDCAN3_BASE) -#define TIM23 ((TIM_TypeDef *) TIM23_BASE) -#define TIM24 ((TIM_TypeDef *) TIM24_BASE) -#define CEC ((CEC_TypeDef *) CEC_BASE) -#define LPTIM1 ((LPTIM_TypeDef *) LPTIM1_BASE) -#define PWR ((PWR_TypeDef *) PWR_BASE) -#define DAC1 ((DAC_TypeDef *) DAC1_BASE) -#define LPUART1 ((USART_TypeDef *) LPUART1_BASE) -#define SWPMI1 ((SWPMI_TypeDef *) SWPMI1_BASE) -#define LPTIM2 ((LPTIM_TypeDef *) LPTIM2_BASE) -#define LPTIM3 ((LPTIM_TypeDef *) LPTIM3_BASE) -#define DTS ((DTS_TypeDef *) DTS_BASE) -#define LPTIM4 ((LPTIM_TypeDef *) LPTIM4_BASE) -#define LPTIM5 ((LPTIM_TypeDef *) LPTIM5_BASE) - -#define SYSCFG ((SYSCFG_TypeDef *) SYSCFG_BASE) -#define COMP12 ((COMPOPT_TypeDef *) COMP12_BASE) -#define COMP1 ((COMP_TypeDef *) COMP1_BASE) -#define COMP2 ((COMP_TypeDef *) COMP2_BASE) -#define COMP12_COMMON ((COMP_Common_TypeDef *) COMP2_BASE) -#define OPAMP ((OPAMP_TypeDef *) OPAMP_BASE) -#define OPAMP1 ((OPAMP_TypeDef *) OPAMP1_BASE) -#define OPAMP2 ((OPAMP_TypeDef *) OPAMP2_BASE) - - -#define EXTI ((EXTI_TypeDef *) EXTI_BASE) -#define EXTI_D1 ((EXTI_Core_TypeDef *) EXTI_D1_BASE) -#define EXTI_D2 ((EXTI_Core_TypeDef *) EXTI_D2_BASE) -#define TIM1 ((TIM_TypeDef *) TIM1_BASE) -#define SPI1 ((SPI_TypeDef *) SPI1_BASE) -#define TIM8 ((TIM_TypeDef *) TIM8_BASE) -#define USART1 ((USART_TypeDef *) USART1_BASE) -#define TIM12 ((TIM_TypeDef *) TIM12_BASE) -#define TIM15 ((TIM_TypeDef *) TIM15_BASE) -#define TIM16 ((TIM_TypeDef *) TIM16_BASE) -#define TIM17 ((TIM_TypeDef *) TIM17_BASE) -#define SAI1 ((SAI_TypeDef *) SAI1_BASE) -#define SAI1_Block_A ((SAI_Block_TypeDef *)SAI1_Block_A_BASE) -#define SAI1_Block_B ((SAI_Block_TypeDef *)SAI1_Block_B_BASE) -#define SAI4 ((SAI_TypeDef *) SAI4_BASE) -#define SAI4_Block_A ((SAI_Block_TypeDef *)SAI4_Block_A_BASE) -#define SAI4_Block_B ((SAI_Block_TypeDef *)SAI4_Block_B_BASE) - -#define SPDIFRX ((SPDIFRX_TypeDef *) SPDIFRX_BASE) -#define DFSDM1_Channel0 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel0_BASE) -#define DFSDM1_Channel1 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel1_BASE) -#define DFSDM1_Channel2 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel2_BASE) -#define DFSDM1_Channel3 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel3_BASE) -#define DFSDM1_Channel4 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel4_BASE) -#define DFSDM1_Channel5 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel5_BASE) -#define DFSDM1_Channel6 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel6_BASE) -#define DFSDM1_Channel7 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel7_BASE) -#define DFSDM1_Filter0 ((DFSDM_Filter_TypeDef *) DFSDM1_Filter0_BASE) -#define DFSDM1_Filter1 ((DFSDM_Filter_TypeDef *) DFSDM1_Filter1_BASE) -#define DFSDM1_Filter2 ((DFSDM_Filter_TypeDef *) DFSDM1_Filter2_BASE) -#define DFSDM1_Filter3 ((DFSDM_Filter_TypeDef *) DFSDM1_Filter3_BASE) -#define DMA2D ((DMA2D_TypeDef *) DMA2D_BASE) -#define DCMI ((DCMI_TypeDef *) DCMI_BASE) -#define PSSI ((PSSI_TypeDef *) PSSI_BASE) -#define RCC ((RCC_TypeDef *) RCC_BASE) -#define FLASH ((FLASH_TypeDef *) FLASH_R_BASE) -#define CRC ((CRC_TypeDef *) CRC_BASE) - -#define GPIOA ((GPIO_TypeDef *) GPIOA_BASE) -#define GPIOB ((GPIO_TypeDef *) GPIOB_BASE) -#define GPIOC ((GPIO_TypeDef *) GPIOC_BASE) -#define GPIOD ((GPIO_TypeDef *) GPIOD_BASE) -#define GPIOE ((GPIO_TypeDef *) GPIOE_BASE) -#define GPIOF ((GPIO_TypeDef *) GPIOF_BASE) -#define GPIOG ((GPIO_TypeDef *) GPIOG_BASE) -#define GPIOH ((GPIO_TypeDef *) GPIOH_BASE) -#define GPIOJ ((GPIO_TypeDef *) GPIOJ_BASE) -#define GPIOK ((GPIO_TypeDef *) GPIOK_BASE) - -#define ADC1 ((ADC_TypeDef *) ADC1_BASE) -#define ADC2 ((ADC_TypeDef *) ADC2_BASE) -#define ADC3 ((ADC_TypeDef *) ADC3_BASE) -#define ADC3_COMMON ((ADC_Common_TypeDef *) ADC3_COMMON_BASE) -#define ADC12_COMMON ((ADC_Common_TypeDef *) ADC12_COMMON_BASE) - -#define RNG ((RNG_TypeDef *) RNG_BASE) -#define SDMMC2 ((SDMMC_TypeDef *) SDMMC2_BASE) -#define DLYB_SDMMC2 ((DLYB_TypeDef *) DLYB_SDMMC2_BASE) -#define FMAC ((FMAC_TypeDef *) FMAC_BASE) -#define CORDIC ((CORDIC_TypeDef *) CORDIC_BASE) - -#define BDMA ((BDMA_TypeDef *) BDMA_BASE) -#define BDMA_Channel0 ((BDMA_Channel_TypeDef *) BDMA_Channel0_BASE) -#define BDMA_Channel1 ((BDMA_Channel_TypeDef *) BDMA_Channel1_BASE) -#define BDMA_Channel2 ((BDMA_Channel_TypeDef *) BDMA_Channel2_BASE) -#define BDMA_Channel3 ((BDMA_Channel_TypeDef *) BDMA_Channel3_BASE) -#define BDMA_Channel4 ((BDMA_Channel_TypeDef *) BDMA_Channel4_BASE) -#define BDMA_Channel5 ((BDMA_Channel_TypeDef *) BDMA_Channel5_BASE) -#define BDMA_Channel6 ((BDMA_Channel_TypeDef *) BDMA_Channel6_BASE) -#define BDMA_Channel7 ((BDMA_Channel_TypeDef *) BDMA_Channel7_BASE) - -#define RAMECC1 ((RAMECC_TypeDef *)RAMECC1_BASE) -#define RAMECC1_Monitor1 ((RAMECC_MonitorTypeDef *)RAMECC1_Monitor1_BASE) -#define RAMECC1_Monitor2 ((RAMECC_MonitorTypeDef *)RAMECC1_Monitor2_BASE) -#define RAMECC1_Monitor3 ((RAMECC_MonitorTypeDef *)RAMECC1_Monitor3_BASE) -#define RAMECC1_Monitor4 ((RAMECC_MonitorTypeDef *)RAMECC1_Monitor4_BASE) -#define RAMECC1_Monitor5 ((RAMECC_MonitorTypeDef *)RAMECC1_Monitor5_BASE) -#define RAMECC1_Monitor6 ((RAMECC_MonitorTypeDef *)RAMECC1_Monitor6_BASE) - -#define RAMECC2 ((RAMECC_TypeDef *)RAMECC2_BASE) -#define RAMECC2_Monitor1 ((RAMECC_MonitorTypeDef *)RAMECC2_Monitor1_BASE) -#define RAMECC2_Monitor2 ((RAMECC_MonitorTypeDef *)RAMECC2_Monitor2_BASE) -#define RAMECC2_Monitor3 ((RAMECC_MonitorTypeDef *)RAMECC2_Monitor3_BASE) - -#define RAMECC3 ((RAMECC_TypeDef *)RAMECC3_BASE) -#define RAMECC3_Monitor1 ((RAMECC_MonitorTypeDef *)RAMECC3_Monitor1_BASE) -#define RAMECC3_Monitor2 ((RAMECC_MonitorTypeDef *)RAMECC3_Monitor2_BASE) - -#define DMAMUX2 ((DMAMUX_Channel_TypeDef *) DMAMUX2_BASE) -#define DMAMUX2_Channel0 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel0_BASE) -#define DMAMUX2_Channel1 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel1_BASE) -#define DMAMUX2_Channel2 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel2_BASE) -#define DMAMUX2_Channel3 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel3_BASE) -#define DMAMUX2_Channel4 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel4_BASE) -#define DMAMUX2_Channel5 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel5_BASE) -#define DMAMUX2_Channel6 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel6_BASE) -#define DMAMUX2_Channel7 ((DMAMUX_Channel_TypeDef *) DMAMUX2_Channel7_BASE) - - -#define DMAMUX2_RequestGenerator0 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator0_BASE) -#define DMAMUX2_RequestGenerator1 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator1_BASE) -#define DMAMUX2_RequestGenerator2 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator2_BASE) -#define DMAMUX2_RequestGenerator3 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator3_BASE) -#define DMAMUX2_RequestGenerator4 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator4_BASE) -#define DMAMUX2_RequestGenerator5 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator5_BASE) -#define DMAMUX2_RequestGenerator6 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator6_BASE) -#define DMAMUX2_RequestGenerator7 ((DMAMUX_RequestGen_TypeDef *) DMAMUX2_RequestGenerator7_BASE) - -#define DMAMUX2_ChannelStatus ((DMAMUX_ChannelStatus_TypeDef *) DMAMUX2_ChannelStatus_BASE) -#define DMAMUX2_RequestGenStatus ((DMAMUX_RequestGenStatus_TypeDef *) DMAMUX2_RequestGenStatus_BASE) - -#define DMA2 ((DMA_TypeDef *) DMA2_BASE) -#define DMA2_Stream0 ((DMA_Stream_TypeDef *) DMA2_Stream0_BASE) -#define DMA2_Stream1 ((DMA_Stream_TypeDef *) DMA2_Stream1_BASE) -#define DMA2_Stream2 ((DMA_Stream_TypeDef *) DMA2_Stream2_BASE) -#define DMA2_Stream3 ((DMA_Stream_TypeDef *) DMA2_Stream3_BASE) -#define DMA2_Stream4 ((DMA_Stream_TypeDef *) DMA2_Stream4_BASE) -#define DMA2_Stream5 ((DMA_Stream_TypeDef *) DMA2_Stream5_BASE) -#define DMA2_Stream6 ((DMA_Stream_TypeDef *) DMA2_Stream6_BASE) -#define DMA2_Stream7 ((DMA_Stream_TypeDef *) DMA2_Stream7_BASE) - -#define DMA1 ((DMA_TypeDef *) DMA1_BASE) -#define DMA1_Stream0 ((DMA_Stream_TypeDef *) DMA1_Stream0_BASE) -#define DMA1_Stream1 ((DMA_Stream_TypeDef *) DMA1_Stream1_BASE) -#define DMA1_Stream2 ((DMA_Stream_TypeDef *) DMA1_Stream2_BASE) -#define DMA1_Stream3 ((DMA_Stream_TypeDef *) DMA1_Stream3_BASE) -#define DMA1_Stream4 ((DMA_Stream_TypeDef *) DMA1_Stream4_BASE) -#define DMA1_Stream5 ((DMA_Stream_TypeDef *) DMA1_Stream5_BASE) -#define DMA1_Stream6 ((DMA_Stream_TypeDef *) DMA1_Stream6_BASE) -#define DMA1_Stream7 ((DMA_Stream_TypeDef *) DMA1_Stream7_BASE) - - -#define DMAMUX1 ((DMAMUX_Channel_TypeDef *) DMAMUX1_BASE) -#define DMAMUX1_Channel0 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel0_BASE) -#define DMAMUX1_Channel1 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel1_BASE) -#define DMAMUX1_Channel2 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel2_BASE) -#define DMAMUX1_Channel3 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel3_BASE) -#define DMAMUX1_Channel4 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel4_BASE) -#define DMAMUX1_Channel5 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel5_BASE) -#define DMAMUX1_Channel6 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel6_BASE) -#define DMAMUX1_Channel7 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel7_BASE) -#define DMAMUX1_Channel8 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel8_BASE) -#define DMAMUX1_Channel9 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel9_BASE) -#define DMAMUX1_Channel10 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel10_BASE) -#define DMAMUX1_Channel11 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel11_BASE) -#define DMAMUX1_Channel12 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel12_BASE) -#define DMAMUX1_Channel13 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel13_BASE) -#define DMAMUX1_Channel14 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel14_BASE) -#define DMAMUX1_Channel15 ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel15_BASE) - -#define DMAMUX1_RequestGenerator0 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator0_BASE) -#define DMAMUX1_RequestGenerator1 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator1_BASE) -#define DMAMUX1_RequestGenerator2 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator2_BASE) -#define DMAMUX1_RequestGenerator3 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator3_BASE) -#define DMAMUX1_RequestGenerator4 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator4_BASE) -#define DMAMUX1_RequestGenerator5 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator5_BASE) -#define DMAMUX1_RequestGenerator6 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator6_BASE) -#define DMAMUX1_RequestGenerator7 ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator7_BASE) - -#define DMAMUX1_ChannelStatus ((DMAMUX_ChannelStatus_TypeDef *) DMAMUX1_ChannelStatus_BASE) -#define DMAMUX1_RequestGenStatus ((DMAMUX_RequestGenStatus_TypeDef *) DMAMUX1_RequestGenStatus_BASE) - - -#define FMC_Bank1_R ((FMC_Bank1_TypeDef *) FMC_Bank1_R_BASE) -#define FMC_Bank1E_R ((FMC_Bank1E_TypeDef *) FMC_Bank1E_R_BASE) -#define FMC_Bank2_R ((FMC_Bank2_TypeDef *) FMC_Bank2_R_BASE) -#define FMC_Bank3_R ((FMC_Bank3_TypeDef *) FMC_Bank3_R_BASE) -#define FMC_Bank5_6_R ((FMC_Bank5_6_TypeDef *) FMC_Bank5_6_R_BASE) - -#define OCTOSPI1 ((OCTOSPI_TypeDef *) OCTOSPI1_R_BASE) -#define DLYB_OCTOSPI1 ((DLYB_TypeDef *) DLYB_OCTOSPI1_BASE) -#define OCTOSPI2 ((OCTOSPI_TypeDef *) OCTOSPI2_R_BASE) -#define DLYB_OCTOSPI2 ((DLYB_TypeDef *) DLYB_OCTOSPI2_BASE) -#define OCTOSPIM ((OCTOSPIM_TypeDef *) OCTOSPIM_BASE) - -#define SDMMC1 ((SDMMC_TypeDef *) SDMMC1_BASE) -#define DLYB_SDMMC1 ((DLYB_TypeDef *) DLYB_SDMMC1_BASE) - -#define DBGMCU ((DBGMCU_TypeDef *) DBGMCU_BASE) - -#define HSEM ((HSEM_TypeDef *) HSEM_BASE) -#define HSEM_COMMON ((HSEM_Common_TypeDef *) (HSEM_BASE + 0x100UL)) - -#define LTDC ((LTDC_TypeDef *)LTDC_BASE) -#define LTDC_Layer1 ((LTDC_Layer_TypeDef *)LTDC_Layer1_BASE) -#define LTDC_Layer2 ((LTDC_Layer_TypeDef *)LTDC_Layer2_BASE) - -#define MDIOS ((MDIOS_TypeDef *) MDIOS_BASE) - -#define ETH ((ETH_TypeDef *)ETH_BASE) -#define MDMA ((MDMA_TypeDef *)MDMA_BASE) -#define MDMA_Channel0 ((MDMA_Channel_TypeDef *)MDMA_Channel0_BASE) -#define MDMA_Channel1 ((MDMA_Channel_TypeDef *)MDMA_Channel1_BASE) -#define MDMA_Channel2 ((MDMA_Channel_TypeDef *)MDMA_Channel2_BASE) -#define MDMA_Channel3 ((MDMA_Channel_TypeDef *)MDMA_Channel3_BASE) -#define MDMA_Channel4 ((MDMA_Channel_TypeDef *)MDMA_Channel4_BASE) -#define MDMA_Channel5 ((MDMA_Channel_TypeDef *)MDMA_Channel5_BASE) -#define MDMA_Channel6 ((MDMA_Channel_TypeDef *)MDMA_Channel6_BASE) -#define MDMA_Channel7 ((MDMA_Channel_TypeDef *)MDMA_Channel7_BASE) -#define MDMA_Channel8 ((MDMA_Channel_TypeDef *)MDMA_Channel8_BASE) -#define MDMA_Channel9 ((MDMA_Channel_TypeDef *)MDMA_Channel9_BASE) -#define MDMA_Channel10 ((MDMA_Channel_TypeDef *)MDMA_Channel10_BASE) -#define MDMA_Channel11 ((MDMA_Channel_TypeDef *)MDMA_Channel11_BASE) -#define MDMA_Channel12 ((MDMA_Channel_TypeDef *)MDMA_Channel12_BASE) -#define MDMA_Channel13 ((MDMA_Channel_TypeDef *)MDMA_Channel13_BASE) -#define MDMA_Channel14 ((MDMA_Channel_TypeDef *)MDMA_Channel14_BASE) -#define MDMA_Channel15 ((MDMA_Channel_TypeDef *)MDMA_Channel15_BASE) - - -#define USB1_OTG_HS ((USB_OTG_GlobalTypeDef *) USB1_OTG_HS_PERIPH_BASE) - -/* Legacy defines */ -#define USB_OTG_HS USB1_OTG_HS -#define USB_OTG_HS_PERIPH_BASE USB1_OTG_HS_PERIPH_BASE - -#define GPV ((GPV_TypeDef *) GPV_BASE) - -/** - * @} - */ - -/** @addtogroup Exported_constants - * @{ - */ - - /** @addtogroup Hardware_Constant_Definition - * @{ - */ -#define LSI_STARTUP_TIME 130U /*!< LSI Maximum startup time in us */ - - /** - * @} - */ - - /** @addtogroup Peripheral_Registers_Bits_Definition - * @{ - */ - -/******************************************************************************/ -/* Peripheral Registers_Bits_Definition */ -/******************************************************************************/ - -/******************************************************************************/ -/* */ -/* Analog to Digital Converter */ -/* */ -/******************************************************************************/ -/******************************* ADC VERSION ********************************/ -#define ADC_VER_V5_V90 -/******************** Bit definition for ADC_ISR register ********************/ -#define ADC_ISR_ADRDY_Pos (0U) -#define ADC_ISR_ADRDY_Msk (0x1UL << ADC_ISR_ADRDY_Pos) /*!< 0x00000001 */ -#define ADC_ISR_ADRDY ADC_ISR_ADRDY_Msk /*!< ADC Ready (ADRDY) flag */ -#define ADC_ISR_EOSMP_Pos (1U) -#define ADC_ISR_EOSMP_Msk (0x1UL << ADC_ISR_EOSMP_Pos) /*!< 0x00000002 */ -#define ADC_ISR_EOSMP ADC_ISR_EOSMP_Msk /*!< ADC End of Sampling flag */ -#define ADC_ISR_EOC_Pos (2U) -#define ADC_ISR_EOC_Msk (0x1UL << ADC_ISR_EOC_Pos) /*!< 0x00000004 */ -#define ADC_ISR_EOC ADC_ISR_EOC_Msk /*!< ADC End of Regular Conversion flag */ -#define ADC_ISR_EOS_Pos (3U) -#define ADC_ISR_EOS_Msk (0x1UL << ADC_ISR_EOS_Pos) /*!< 0x00000008 */ -#define ADC_ISR_EOS ADC_ISR_EOS_Msk /*!< ADC End of Regular sequence of Conversions flag */ -#define ADC_ISR_OVR_Pos (4U) -#define ADC_ISR_OVR_Msk (0x1UL << ADC_ISR_OVR_Pos) /*!< 0x00000010 */ -#define ADC_ISR_OVR ADC_ISR_OVR_Msk /*!< ADC overrun flag */ -#define ADC_ISR_JEOC_Pos (5U) -#define ADC_ISR_JEOC_Msk (0x1UL << ADC_ISR_JEOC_Pos) /*!< 0x00000020 */ -#define ADC_ISR_JEOC ADC_ISR_JEOC_Msk /*!< ADC End of Injected Conversion flag */ -#define ADC_ISR_JEOS_Pos (6U) -#define ADC_ISR_JEOS_Msk (0x1UL << ADC_ISR_JEOS_Pos) /*!< 0x00000040 */ -#define ADC_ISR_JEOS ADC_ISR_JEOS_Msk /*!< ADC End of Injected sequence of Conversions flag */ -#define ADC_ISR_AWD1_Pos (7U) -#define ADC_ISR_AWD1_Msk (0x1UL << ADC_ISR_AWD1_Pos) /*!< 0x00000080 */ -#define ADC_ISR_AWD1 ADC_ISR_AWD1_Msk /*!< ADC Analog watchdog 1 flag */ -#define ADC_ISR_AWD2_Pos (8U) -#define ADC_ISR_AWD2_Msk (0x1UL << ADC_ISR_AWD2_Pos) /*!< 0x00000100 */ -#define ADC_ISR_AWD2 ADC_ISR_AWD2_Msk /*!< ADC Analog watchdog 2 flag */ -#define ADC_ISR_AWD3_Pos (9U) -#define ADC_ISR_AWD3_Msk (0x1UL << ADC_ISR_AWD3_Pos) /*!< 0x00000200 */ -#define ADC_ISR_AWD3 ADC_ISR_AWD3_Msk /*!< ADC Analog watchdog 3 flag */ -#define ADC_ISR_JQOVF_Pos (10U) -#define ADC_ISR_JQOVF_Msk (0x1UL << ADC_ISR_JQOVF_Pos) /*!< 0x00000400 */ -#define ADC_ISR_JQOVF ADC_ISR_JQOVF_Msk /*!< ADC Injected Context Queue Overflow flag */ -#define ADC_ISR_LDORDY_Pos (12U) -#define ADC_ISR_LDORDY_Msk (0x1UL << ADC_ISR_LDORDY_Pos) /*!< 0x00001000 */ -#define ADC_ISR_LDORDY ADC_ISR_LDORDY_Msk /*!< ADC LDO output voltage ready bit */ - -/******************** Bit definition for ADC_IER register ********************/ -#define ADC_IER_ADRDYIE_Pos (0U) -#define ADC_IER_ADRDYIE_Msk (0x1UL << ADC_IER_ADRDYIE_Pos) /*!< 0x00000001 */ -#define ADC_IER_ADRDYIE ADC_IER_ADRDYIE_Msk /*!< ADC Ready (ADRDY) interrupt source */ -#define ADC_IER_EOSMPIE_Pos (1U) -#define ADC_IER_EOSMPIE_Msk (0x1UL << ADC_IER_EOSMPIE_Pos) /*!< 0x00000002 */ -#define ADC_IER_EOSMPIE ADC_IER_EOSMPIE_Msk /*!< ADC End of Sampling interrupt source */ -#define ADC_IER_EOCIE_Pos (2U) -#define ADC_IER_EOCIE_Msk (0x1UL << ADC_IER_EOCIE_Pos) /*!< 0x00000004 */ -#define ADC_IER_EOCIE ADC_IER_EOCIE_Msk /*!< ADC End of Regular Conversion interrupt source */ -#define ADC_IER_EOSIE_Pos (3U) -#define ADC_IER_EOSIE_Msk (0x1UL << ADC_IER_EOSIE_Pos) /*!< 0x00000008 */ -#define ADC_IER_EOSIE ADC_IER_EOSIE_Msk /*!< ADC End of Regular sequence of Conversions interrupt source */ -#define ADC_IER_OVRIE_Pos (4U) -#define ADC_IER_OVRIE_Msk (0x1UL << ADC_IER_OVRIE_Pos) /*!< 0x00000010 */ -#define ADC_IER_OVRIE ADC_IER_OVRIE_Msk /*!< ADC overrun interrupt source */ -#define ADC_IER_JEOCIE_Pos (5U) -#define ADC_IER_JEOCIE_Msk (0x1UL << ADC_IER_JEOCIE_Pos) /*!< 0x00000020 */ -#define ADC_IER_JEOCIE ADC_IER_JEOCIE_Msk /*!< ADC End of Injected Conversion interrupt source */ -#define ADC_IER_JEOSIE_Pos (6U) -#define ADC_IER_JEOSIE_Msk (0x1UL << ADC_IER_JEOSIE_Pos) /*!< 0x00000040 */ -#define ADC_IER_JEOSIE ADC_IER_JEOSIE_Msk /*!< ADC End of Injected sequence of Conversions interrupt source */ -#define ADC_IER_AWD1IE_Pos (7U) -#define ADC_IER_AWD1IE_Msk (0x1UL << ADC_IER_AWD1IE_Pos) /*!< 0x00000080 */ -#define ADC_IER_AWD1IE ADC_IER_AWD1IE_Msk /*!< ADC Analog watchdog 1 interrupt source */ -#define ADC_IER_AWD2IE_Pos (8U) -#define ADC_IER_AWD2IE_Msk (0x1UL << ADC_IER_AWD2IE_Pos) /*!< 0x00000100 */ -#define ADC_IER_AWD2IE ADC_IER_AWD2IE_Msk /*!< ADC Analog watchdog 2 interrupt source */ -#define ADC_IER_AWD3IE_Pos (9U) -#define ADC_IER_AWD3IE_Msk (0x1UL << ADC_IER_AWD3IE_Pos) /*!< 0x00000200 */ -#define ADC_IER_AWD3IE ADC_IER_AWD3IE_Msk /*!< ADC Analog watchdog 3 interrupt source */ -#define ADC_IER_JQOVFIE_Pos (10U) -#define ADC_IER_JQOVFIE_Msk (0x1UL << ADC_IER_JQOVFIE_Pos) /*!< 0x00000400 */ -#define ADC_IER_JQOVFIE ADC_IER_JQOVFIE_Msk /*!< ADC Injected Context Queue Overflow interrupt source */ - -/******************** Bit definition for ADC_CR register ********************/ -#define ADC_CR_ADEN_Pos (0U) -#define ADC_CR_ADEN_Msk (0x1UL << ADC_CR_ADEN_Pos) /*!< 0x00000001 */ -#define ADC_CR_ADEN ADC_CR_ADEN_Msk /*!< ADC Enable control */ -#define ADC_CR_ADDIS_Pos (1U) -#define ADC_CR_ADDIS_Msk (0x1UL << ADC_CR_ADDIS_Pos) /*!< 0x00000002 */ -#define ADC_CR_ADDIS ADC_CR_ADDIS_Msk /*!< ADC Disable command */ -#define ADC_CR_ADSTART_Pos (2U) -#define ADC_CR_ADSTART_Msk (0x1UL << ADC_CR_ADSTART_Pos) /*!< 0x00000004 */ -#define ADC_CR_ADSTART ADC_CR_ADSTART_Msk /*!< ADC Start of Regular conversion */ -#define ADC_CR_JADSTART_Pos (3U) -#define ADC_CR_JADSTART_Msk (0x1UL << ADC_CR_JADSTART_Pos) /*!< 0x00000008 */ -#define ADC_CR_JADSTART ADC_CR_JADSTART_Msk /*!< ADC Start of injected conversion */ -#define ADC_CR_ADSTP_Pos (4U) -#define ADC_CR_ADSTP_Msk (0x1UL << ADC_CR_ADSTP_Pos) /*!< 0x00000010 */ -#define ADC_CR_ADSTP ADC_CR_ADSTP_Msk /*!< ADC Stop of Regular conversion */ -#define ADC_CR_JADSTP_Pos (5U) -#define ADC_CR_JADSTP_Msk (0x1UL << ADC_CR_JADSTP_Pos) /*!< 0x00000020 */ -#define ADC_CR_JADSTP ADC_CR_JADSTP_Msk /*!< ADC Stop of injected conversion */ -#define ADC_CR_BOOST_Pos (8U) -#define ADC_CR_BOOST_Msk (0x3UL << ADC_CR_BOOST_Pos) /*!< 0x00000300 */ -#define ADC_CR_BOOST ADC_CR_BOOST_Msk /*!< ADC Boost Mode configuration */ -#define ADC_CR_BOOST_0 (0x1UL << ADC_CR_BOOST_Pos) /*!< 0x00000100 */ -#define ADC_CR_BOOST_1 (0x2UL << ADC_CR_BOOST_Pos) /*!< 0x00000200 */ -#define ADC_CR_ADCALLIN_Pos (16U) -#define ADC_CR_ADCALLIN_Msk (0x1UL << ADC_CR_ADCALLIN_Pos) /*!< 0x00010000 */ -#define ADC_CR_ADCALLIN ADC_CR_ADCALLIN_Msk /*!< ADC Linearity calibration */ -#define ADC_CR_LINCALRDYW1_Pos (22U) -#define ADC_CR_LINCALRDYW1_Msk (0x1UL << ADC_CR_LINCALRDYW1_Pos) /*!< 0x00400000 */ -#define ADC_CR_LINCALRDYW1 ADC_CR_LINCALRDYW1_Msk /*!< ADC Linearity calibration ready Word 1 */ -#define ADC_CR_LINCALRDYW2_Pos (23U) -#define ADC_CR_LINCALRDYW2_Msk (0x1UL << ADC_CR_LINCALRDYW2_Pos) /*!< 0x00800000 */ -#define ADC_CR_LINCALRDYW2 ADC_CR_LINCALRDYW2_Msk /*!< ADC Linearity calibration ready Word 2 */ -#define ADC_CR_LINCALRDYW3_Pos (24U) -#define ADC_CR_LINCALRDYW3_Msk (0x1UL << ADC_CR_LINCALRDYW3_Pos) /*!< 0x01000000 */ -#define ADC_CR_LINCALRDYW3 ADC_CR_LINCALRDYW3_Msk /*!< ADC Linearity calibration ready Word 3 */ -#define ADC_CR_LINCALRDYW4_Pos (25U) -#define ADC_CR_LINCALRDYW4_Msk (0x1UL << ADC_CR_LINCALRDYW4_Pos) /*!< 0x02000000 */ -#define ADC_CR_LINCALRDYW4 ADC_CR_LINCALRDYW4_Msk /*!< ADC Linearity calibration ready Word 4 */ -#define ADC_CR_LINCALRDYW5_Pos (26U) -#define ADC_CR_LINCALRDYW5_Msk (0x1UL << ADC_CR_LINCALRDYW5_Pos) /*!< 0x04000000 */ -#define ADC_CR_LINCALRDYW5 ADC_CR_LINCALRDYW5_Msk /*!< ADC Linearity calibration ready Word 5 */ -#define ADC_CR_LINCALRDYW6_Pos (27U) -#define ADC_CR_LINCALRDYW6_Msk (0x1UL << ADC_CR_LINCALRDYW6_Pos) /*!< 0x08000000 */ -#define ADC_CR_LINCALRDYW6 ADC_CR_LINCALRDYW6_Msk /*!< ADC Linearity calibration ready Word 6 */ -#define ADC_CR_ADVREGEN_Pos (28U) -#define ADC_CR_ADVREGEN_Msk (0x1UL << ADC_CR_ADVREGEN_Pos) /*!< 0x10000000 */ -#define ADC_CR_ADVREGEN ADC_CR_ADVREGEN_Msk /*!< ADC Voltage regulator Enable */ -#define ADC_CR_DEEPPWD_Pos (29U) -#define ADC_CR_DEEPPWD_Msk (0x1UL << ADC_CR_DEEPPWD_Pos) /*!< 0x20000000 */ -#define ADC_CR_DEEPPWD ADC_CR_DEEPPWD_Msk /*!< ADC Deep power down Enable */ -#define ADC_CR_ADCALDIF_Pos (30U) -#define ADC_CR_ADCALDIF_Msk (0x1UL << ADC_CR_ADCALDIF_Pos) /*!< 0x40000000 */ -#define ADC_CR_ADCALDIF ADC_CR_ADCALDIF_Msk /*!< ADC Differential Mode for calibration */ -#define ADC_CR_ADCAL_Pos (31U) -#define ADC_CR_ADCAL_Msk (0x1UL << ADC_CR_ADCAL_Pos) /*!< 0x80000000 */ -#define ADC_CR_ADCAL ADC_CR_ADCAL_Msk /*!< ADC Calibration */ - -/******************** Bit definition for ADC_CFGR register ********************/ -#define ADC_CFGR_DMNGT_Pos (0U) -#define ADC_CFGR_DMNGT_Msk (0x3UL << ADC_CFGR_DMNGT_Pos) /*!< 0x00000003 */ -#define ADC_CFGR_DMNGT ADC_CFGR_DMNGT_Msk /*!< ADC Data Management configuration */ -#define ADC_CFGR_DMNGT_0 (0x1UL << ADC_CFGR_DMNGT_Pos) /*!< 0x00000001 */ -#define ADC_CFGR_DMNGT_1 (0x2UL << ADC_CFGR_DMNGT_Pos) /*!< 0x00000002 */ - -#define ADC_CFGR_RES_Pos (2U) -#define ADC_CFGR_RES_Msk (0x7UL << ADC_CFGR_RES_Pos) /*!< 0x0000001C */ -#define ADC_CFGR_RES ADC_CFGR_RES_Msk /*!< ADC Data resolution */ -#define ADC_CFGR_RES_0 (0x1UL << ADC_CFGR_RES_Pos) /*!< 0x00000004 */ -#define ADC_CFGR_RES_1 (0x2UL << ADC_CFGR_RES_Pos) /*!< 0x00000008 */ -#define ADC_CFGR_RES_2 (0x4UL << ADC_CFGR_RES_Pos) /*!< 0x00000010 */ - -#define ADC_CFGR_EXTSEL_Pos (5U) -#define ADC_CFGR_EXTSEL_Msk (0x1FUL << ADC_CFGR_EXTSEL_Pos) /*!< 0x000003E0 */ -#define ADC_CFGR_EXTSEL ADC_CFGR_EXTSEL_Msk /*!< ADC External trigger selection for regular group */ -#define ADC_CFGR_EXTSEL_0 (0x01UL << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000020 */ -#define ADC_CFGR_EXTSEL_1 (0x02UL << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000040 */ -#define ADC_CFGR_EXTSEL_2 (0x04UL << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000080 */ -#define ADC_CFGR_EXTSEL_3 (0x08UL << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000100 */ -#define ADC_CFGR_EXTSEL_4 (0x10UL << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000200 */ - -#define ADC_CFGR_EXTEN_Pos (10U) -#define ADC_CFGR_EXTEN_Msk (0x3UL << ADC_CFGR_EXTEN_Pos) /*!< 0x00000C00 */ -#define ADC_CFGR_EXTEN ADC_CFGR_EXTEN_Msk /*!< ADC External trigger enable and polarity selection for regular channels */ -#define ADC_CFGR_EXTEN_0 (0x1UL << ADC_CFGR_EXTEN_Pos) /*!< 0x00000400 */ -#define ADC_CFGR_EXTEN_1 (0x2UL << ADC_CFGR_EXTEN_Pos) /*!< 0x00000800 */ - -#define ADC_CFGR_OVRMOD_Pos (12U) -#define ADC_CFGR_OVRMOD_Msk (0x1UL << ADC_CFGR_OVRMOD_Pos) /*!< 0x00001000 */ -#define ADC_CFGR_OVRMOD ADC_CFGR_OVRMOD_Msk /*!< ADC overrun mode */ -#define ADC_CFGR_CONT_Pos (13U) -#define ADC_CFGR_CONT_Msk (0x1UL << ADC_CFGR_CONT_Pos) /*!< 0x00002000 */ -#define ADC_CFGR_CONT ADC_CFGR_CONT_Msk /*!< ADC Single/continuous conversion mode for regular conversion */ -#define ADC_CFGR_AUTDLY_Pos (14U) -#define ADC_CFGR_AUTDLY_Msk (0x1UL << ADC_CFGR_AUTDLY_Pos) /*!< 0x00004000 */ -#define ADC_CFGR_AUTDLY ADC_CFGR_AUTDLY_Msk /*!< ADC Delayed conversion mode */ - -#define ADC_CFGR_DISCEN_Pos (16U) -#define ADC_CFGR_DISCEN_Msk (0x1UL << ADC_CFGR_DISCEN_Pos) /*!< 0x00010000 */ -#define ADC_CFGR_DISCEN ADC_CFGR_DISCEN_Msk /*!< ADC Discontinuous mode for regular channels */ - -#define ADC_CFGR_DISCNUM_Pos (17U) -#define ADC_CFGR_DISCNUM_Msk (0x7UL << ADC_CFGR_DISCNUM_Pos) /*!< 0x000E0000 */ -#define ADC_CFGR_DISCNUM ADC_CFGR_DISCNUM_Msk /*!< ADC Discontinuous mode channel count */ -#define ADC_CFGR_DISCNUM_0 (0x1UL << ADC_CFGR_DISCNUM_Pos) /*!< 0x00020000 */ -#define ADC_CFGR_DISCNUM_1 (0x2UL << ADC_CFGR_DISCNUM_Pos) /*!< 0x00040000 */ -#define ADC_CFGR_DISCNUM_2 (0x4UL << ADC_CFGR_DISCNUM_Pos) /*!< 0x00080000 */ - -#define ADC_CFGR_JDISCEN_Pos (20U) -#define ADC_CFGR_JDISCEN_Msk (0x1UL << ADC_CFGR_JDISCEN_Pos) /*!< 0x00100000 */ -#define ADC_CFGR_JDISCEN ADC_CFGR_JDISCEN_Msk /*!< ADC Discontinuous mode on injected channels */ -#define ADC_CFGR_JQM_Pos (21U) -#define ADC_CFGR_JQM_Msk (0x1UL << ADC_CFGR_JQM_Pos) /*!< 0x00200000 */ -#define ADC_CFGR_JQM ADC_CFGR_JQM_Msk /*!< ADC JSQR Queue mode */ -#define ADC_CFGR_AWD1SGL_Pos (22U) -#define ADC_CFGR_AWD1SGL_Msk (0x1UL << ADC_CFGR_AWD1SGL_Pos) /*!< 0x00400000 */ -#define ADC_CFGR_AWD1SGL ADC_CFGR_AWD1SGL_Msk /*!< Enable the watchdog 1 on a single channel or on all channels */ -#define ADC_CFGR_AWD1EN_Pos (23U) -#define ADC_CFGR_AWD1EN_Msk (0x1UL << ADC_CFGR_AWD1EN_Pos) /*!< 0x00800000 */ -#define ADC_CFGR_AWD1EN ADC_CFGR_AWD1EN_Msk /*!< ADC Analog watchdog 1 enable on regular Channels */ -#define ADC_CFGR_JAWD1EN_Pos (24U) -#define ADC_CFGR_JAWD1EN_Msk (0x1UL << ADC_CFGR_JAWD1EN_Pos) /*!< 0x01000000 */ -#define ADC_CFGR_JAWD1EN ADC_CFGR_JAWD1EN_Msk /*!< ADC Analog watchdog 1 enable on injected Channels */ -#define ADC_CFGR_JAUTO_Pos (25U) -#define ADC_CFGR_JAUTO_Msk (0x1UL << ADC_CFGR_JAUTO_Pos) /*!< 0x02000000 */ -#define ADC_CFGR_JAUTO ADC_CFGR_JAUTO_Msk /*!< ADC Automatic injected group conversion */ - -#define ADC_CFGR_AWD1CH_Pos (26U) -#define ADC_CFGR_AWD1CH_Msk (0x1FUL << ADC_CFGR_AWD1CH_Pos) /*!< 0x7C000000 */ -#define ADC_CFGR_AWD1CH ADC_CFGR_AWD1CH_Msk /*!< ADC Analog watchdog 1 Channel selection */ -#define ADC_CFGR_AWD1CH_0 (0x01UL << ADC_CFGR_AWD1CH_Pos) /*!< 0x04000000 */ -#define ADC_CFGR_AWD1CH_1 (0x02UL << ADC_CFGR_AWD1CH_Pos) /*!< 0x08000000 */ -#define ADC_CFGR_AWD1CH_2 (0x04UL << ADC_CFGR_AWD1CH_Pos) /*!< 0x10000000 */ -#define ADC_CFGR_AWD1CH_3 (0x08UL << ADC_CFGR_AWD1CH_Pos) /*!< 0x20000000 */ -#define ADC_CFGR_AWD1CH_4 (0x10UL << ADC_CFGR_AWD1CH_Pos) /*!< 0x40000000 */ - -#define ADC_CFGR_JQDIS_Pos (31U) -#define ADC_CFGR_JQDIS_Msk (0x1UL << ADC_CFGR_JQDIS_Pos) /*!< 0x80000000 */ -#define ADC_CFGR_JQDIS ADC_CFGR_JQDIS_Msk /*!< ADC Injected queue disable */ - -#define ADC3_CFGR_DMAEN_Pos (0U) -#define ADC3_CFGR_DMAEN_Msk (0x1UL << ADC3_CFGR_DMAEN_Pos) /*!< 0x00000001 */ -#define ADC3_CFGR_DMAEN ADC3_CFGR_DMAEN_Msk /*!< ADC DMA transfer enable */ -#define ADC3_CFGR_DMACFG_Pos (1U) -#define ADC3_CFGR_DMACFG_Msk (0x1UL << ADC3_CFGR_DMACFG_Pos) /*!< 0x00000002 */ -#define ADC3_CFGR_DMACFG ADC3_CFGR_DMACFG_Msk /*!< ADC DMA transfer configuration */ - -#define ADC3_CFGR_RES_Pos (3U) -#define ADC3_CFGR_RES_Msk (0x3UL << ADC3_CFGR_RES_Pos) /*!< 0x00000018 */ -#define ADC3_CFGR_RES ADC3_CFGR_RES_Msk /*!< ADC data resolution */ -#define ADC3_CFGR_RES_0 (0x1UL << ADC3_CFGR_RES_Pos) /*!< 0x00000008 */ -#define ADC3_CFGR_RES_1 (0x2UL << ADC3_CFGR_RES_Pos) /*!< 0x00000010 */ - -#define ADC3_CFGR_ALIGN_Pos (15U) -#define ADC3_CFGR_ALIGN_Msk (0x1UL << ADC3_CFGR_ALIGN_Pos) /*!< 0x00008000 */ -#define ADC3_CFGR_ALIGN ADC3_CFGR_ALIGN_Msk /*!< ADC data alignment */ -/******************** Bit definition for ADC_CFGR2 register ********************/ -#define ADC_CFGR2_ROVSE_Pos (0U) -#define ADC_CFGR2_ROVSE_Msk (0x1UL << ADC_CFGR2_ROVSE_Pos) /*!< 0x00000001 */ -#define ADC_CFGR2_ROVSE ADC_CFGR2_ROVSE_Msk /*!< ADC Regular group oversampler enable */ -#define ADC_CFGR2_JOVSE_Pos (1U) -#define ADC_CFGR2_JOVSE_Msk (0x1UL << ADC_CFGR2_JOVSE_Pos) /*!< 0x00000002 */ -#define ADC_CFGR2_JOVSE ADC_CFGR2_JOVSE_Msk /*!< ADC Injected group oversampler enable */ - -#define ADC_CFGR2_OVSS_Pos (5U) -#define ADC_CFGR2_OVSS_Msk (0xFUL << ADC_CFGR2_OVSS_Pos) /*!< 0x000001E0 */ -#define ADC_CFGR2_OVSS ADC_CFGR2_OVSS_Msk /*!< ADC Regular Oversampling shift */ -#define ADC_CFGR2_OVSS_0 (0x1UL << ADC_CFGR2_OVSS_Pos) /*!< 0x00000020 */ -#define ADC_CFGR2_OVSS_1 (0x2UL << ADC_CFGR2_OVSS_Pos) /*!< 0x00000040 */ -#define ADC_CFGR2_OVSS_2 (0x4UL << ADC_CFGR2_OVSS_Pos) /*!< 0x00000080 */ -#define ADC_CFGR2_OVSS_3 (0x8UL << ADC_CFGR2_OVSS_Pos) /*!< 0x00000100 */ - -#define ADC_CFGR2_TROVS_Pos (9U) -#define ADC_CFGR2_TROVS_Msk (0x1UL << ADC_CFGR2_TROVS_Pos) /*!< 0x00000200 */ -#define ADC_CFGR2_TROVS ADC_CFGR2_TROVS_Msk /*!< ADC Triggered regular Oversampling */ -#define ADC_CFGR2_ROVSM_Pos (10U) -#define ADC_CFGR2_ROVSM_Msk (0x1UL << ADC_CFGR2_ROVSM_Pos) /*!< 0x00000400 */ -#define ADC_CFGR2_ROVSM ADC_CFGR2_ROVSM_Msk /*!< ADC Regular oversampling mode */ - -#define ADC_CFGR2_RSHIFT1_Pos (11U) -#define ADC_CFGR2_RSHIFT1_Msk (0x1UL << ADC_CFGR2_RSHIFT1_Pos) /*!< 0x00000800 */ -#define ADC_CFGR2_RSHIFT1 ADC_CFGR2_RSHIFT1_Msk /*!< ADC Right-shift data after Offset 1 correction */ -#define ADC_CFGR2_RSHIFT2_Pos (12U) -#define ADC_CFGR2_RSHIFT2_Msk (0x1UL << ADC_CFGR2_RSHIFT2_Pos) /*!< 0x00001000 */ -#define ADC_CFGR2_RSHIFT2 ADC_CFGR2_RSHIFT2_Msk /*!< ADC Right-shift data after Offset 2 correction */ -#define ADC_CFGR2_RSHIFT3_Pos (13U) -#define ADC_CFGR2_RSHIFT3_Msk (0x1UL << ADC_CFGR2_RSHIFT3_Pos) /*!< 0x00002000 */ -#define ADC_CFGR2_RSHIFT3 ADC_CFGR2_RSHIFT3_Msk /*!< ADC Right-shift data after Offset 3 correction */ -#define ADC_CFGR2_RSHIFT4_Pos (14U) -#define ADC_CFGR2_RSHIFT4_Msk (0x1UL << ADC_CFGR2_RSHIFT4_Pos) /*!< 0x00004000 */ -#define ADC_CFGR2_RSHIFT4 ADC_CFGR2_RSHIFT4_Msk /*!< ADC Right-shift data after Offset 4 correction */ - -#define ADC_CFGR2_OVSR_Pos (16U) -#define ADC_CFGR2_OVSR_Msk (0x3FFUL << ADC_CFGR2_OVSR_Pos) /*!< 0x03FF0000 */ -#define ADC_CFGR2_OVSR ADC_CFGR2_OVSR_Msk /*!< ADC oversampling Ratio */ -#define ADC_CFGR2_OVSR_0 (0x001UL << ADC_CFGR2_OVSR_Pos) /*!< 0x00010000 */ -#define ADC_CFGR2_OVSR_1 (0x002UL << ADC_CFGR2_OVSR_Pos) /*!< 0x00020000 */ -#define ADC_CFGR2_OVSR_2 (0x004UL << ADC_CFGR2_OVSR_Pos) /*!< 0x00040000 */ -#define ADC_CFGR2_OVSR_3 (0x008UL << ADC_CFGR2_OVSR_Pos) /*!< 0x00080000 */ -#define ADC_CFGR2_OVSR_4 (0x010UL << ADC_CFGR2_OVSR_Pos) /*!< 0x00100000 */ -#define ADC_CFGR2_OVSR_5 (0x020UL << ADC_CFGR2_OVSR_Pos) /*!< 0x00200000 */ -#define ADC_CFGR2_OVSR_6 (0x040UL << ADC_CFGR2_OVSR_Pos) /*!< 0x00400000 */ -#define ADC_CFGR2_OVSR_7 (0x080UL << ADC_CFGR2_OVSR_Pos) /*!< 0x00800000 */ -#define ADC_CFGR2_OVSR_8 (0x100UL << ADC_CFGR2_OVSR_Pos) /*!< 0x01000000 */ -#define ADC_CFGR2_OVSR_9 (0x200UL << ADC_CFGR2_OVSR_Pos) /*!< 0x02000000 */ - -#define ADC_CFGR2_LSHIFT_Pos (28U) -#define ADC_CFGR2_LSHIFT_Msk (0xFUL << ADC_CFGR2_LSHIFT_Pos) /*!< 0xF0000000 */ -#define ADC_CFGR2_LSHIFT ADC_CFGR2_LSHIFT_Msk /*!< ADC Left shift factor */ -#define ADC_CFGR2_LSHIFT_0 (0x1UL << ADC_CFGR2_LSHIFT_Pos) /*!< 0x10000000 */ -#define ADC_CFGR2_LSHIFT_1 (0x2UL << ADC_CFGR2_LSHIFT_Pos) /*!< 0x20000000 */ -#define ADC_CFGR2_LSHIFT_2 (0x4UL << ADC_CFGR2_LSHIFT_Pos) /*!< 0x40000000 */ -#define ADC_CFGR2_LSHIFT_3 (0x8UL << ADC_CFGR2_LSHIFT_Pos) /*!< 0x80000000 */ - -#define ADC3_CFGR2_OVSR_Pos (2U) -#define ADC3_CFGR2_OVSR_Msk (0x7UL << ADC3_CFGR2_OVSR_Pos) /*!< 0x0000001C */ -#define ADC3_CFGR2_OVSR ADC3_CFGR2_OVSR_Msk /*!< ADC oversampling ratio */ -#define ADC3_CFGR2_OVSR_0 (0x1UL << ADC3_CFGR2_OVSR_Pos) /*!< 0x00000004 */ -#define ADC3_CFGR2_OVSR_1 (0x2UL << ADC3_CFGR2_OVSR_Pos) /*!< 0x00000008 */ -#define ADC3_CFGR2_OVSR_2 (0x4UL << ADC3_CFGR2_OVSR_Pos) /*!< 0x00000010 */ - -#define ADC3_CFGR2_SWTRIG_Pos (25U) -#define ADC3_CFGR2_SWTRIG_Msk (0x1UL << ADC3_CFGR2_SWTRIG_Pos) /*!< 0x02000000 */ -#define ADC3_CFGR2_SWTRIG ADC3_CFGR2_SWTRIG_Msk /*!< ADC Software Trigger Bit for Sample time control trigger mode */ -#define ADC3_CFGR2_BULB_Pos (26U) -#define ADC3_CFGR2_BULB_Msk (0x1UL << ADC3_CFGR2_BULB_Pos) /*!< 0x04000000 */ -#define ADC3_CFGR2_BULB ADC3_CFGR2_BULB_Msk /*!< ADC Bulb sampling mode */ -#define ADC3_CFGR2_SMPTRIG_Pos (27U) -#define ADC3_CFGR2_SMPTRIG_Msk (0x1UL << ADC3_CFGR2_SMPTRIG_Pos) /*!< 0x08000000 */ -#define ADC3_CFGR2_SMPTRIG ADC3_CFGR2_SMPTRIG_Msk /*!< ADC Sample Time Control Trigger mode */ -/******************** Bit definition for ADC_SMPR1 register ********************/ -#define ADC_SMPR1_SMP0_Pos (0U) -#define ADC_SMPR1_SMP0_Msk (0x7UL << ADC_SMPR1_SMP0_Pos) /*!< 0x00000007 */ -#define ADC_SMPR1_SMP0 ADC_SMPR1_SMP0_Msk /*!< ADC Channel 0 Sampling time selection */ -#define ADC_SMPR1_SMP0_0 (0x1UL << ADC_SMPR1_SMP0_Pos) /*!< 0x00000001 */ -#define ADC_SMPR1_SMP0_1 (0x2UL << ADC_SMPR1_SMP0_Pos) /*!< 0x00000002 */ -#define ADC_SMPR1_SMP0_2 (0x4UL << ADC_SMPR1_SMP0_Pos) /*!< 0x00000004 */ - -#define ADC_SMPR1_SMP1_Pos (3U) -#define ADC_SMPR1_SMP1_Msk (0x7UL << ADC_SMPR1_SMP1_Pos) /*!< 0x00000038 */ -#define ADC_SMPR1_SMP1 ADC_SMPR1_SMP1_Msk /*!< ADC Channel 1 Sampling time selection */ -#define ADC_SMPR1_SMP1_0 (0x1UL << ADC_SMPR1_SMP1_Pos) /*!< 0x00000008 */ -#define ADC_SMPR1_SMP1_1 (0x2UL << ADC_SMPR1_SMP1_Pos) /*!< 0x00000010 */ -#define ADC_SMPR1_SMP1_2 (0x4UL << ADC_SMPR1_SMP1_Pos) /*!< 0x00000020 */ - -#define ADC_SMPR1_SMP2_Pos (6U) -#define ADC_SMPR1_SMP2_Msk (0x7UL << ADC_SMPR1_SMP2_Pos) /*!< 0x000001C0 */ -#define ADC_SMPR1_SMP2 ADC_SMPR1_SMP2_Msk /*!< ADC Channel 2 Sampling time selection */ -#define ADC_SMPR1_SMP2_0 (0x1UL << ADC_SMPR1_SMP2_Pos) /*!< 0x00000040 */ -#define ADC_SMPR1_SMP2_1 (0x2UL << ADC_SMPR1_SMP2_Pos) /*!< 0x00000080 */ -#define ADC_SMPR1_SMP2_2 (0x4UL << ADC_SMPR1_SMP2_Pos) /*!< 0x00000100 */ - -#define ADC_SMPR1_SMP3_Pos (9U) -#define ADC_SMPR1_SMP3_Msk (0x7UL << ADC_SMPR1_SMP3_Pos) /*!< 0x00000E00 */ -#define ADC_SMPR1_SMP3 ADC_SMPR1_SMP3_Msk /*!< ADC Channel 3 Sampling time selection */ -#define ADC_SMPR1_SMP3_0 (0x1UL << ADC_SMPR1_SMP3_Pos) /*!< 0x00000200 */ -#define ADC_SMPR1_SMP3_1 (0x2UL << ADC_SMPR1_SMP3_Pos) /*!< 0x00000400 */ -#define ADC_SMPR1_SMP3_2 (0x4UL << ADC_SMPR1_SMP3_Pos) /*!< 0x00000800 */ - -#define ADC_SMPR1_SMP4_Pos (12U) -#define ADC_SMPR1_SMP4_Msk (0x7UL << ADC_SMPR1_SMP4_Pos) /*!< 0x00007000 */ -#define ADC_SMPR1_SMP4 ADC_SMPR1_SMP4_Msk /*!< ADC Channel 4 Sampling time selection */ -#define ADC_SMPR1_SMP4_0 (0x1UL << ADC_SMPR1_SMP4_Pos) /*!< 0x00001000 */ -#define ADC_SMPR1_SMP4_1 (0x2UL << ADC_SMPR1_SMP4_Pos) /*!< 0x00002000 */ -#define ADC_SMPR1_SMP4_2 (0x4UL << ADC_SMPR1_SMP4_Pos) /*!< 0x00004000 */ - -#define ADC_SMPR1_SMP5_Pos (15U) -#define ADC_SMPR1_SMP5_Msk (0x7UL << ADC_SMPR1_SMP5_Pos) /*!< 0x00038000 */ -#define ADC_SMPR1_SMP5 ADC_SMPR1_SMP5_Msk /*!< ADC Channel 5 Sampling time selection */ -#define ADC_SMPR1_SMP5_0 (0x1UL << ADC_SMPR1_SMP5_Pos) /*!< 0x00008000 */ -#define ADC_SMPR1_SMP5_1 (0x2UL << ADC_SMPR1_SMP5_Pos) /*!< 0x00010000 */ -#define ADC_SMPR1_SMP5_2 (0x4UL << ADC_SMPR1_SMP5_Pos) /*!< 0x00020000 */ - -#define ADC_SMPR1_SMP6_Pos (18U) -#define ADC_SMPR1_SMP6_Msk (0x7UL << ADC_SMPR1_SMP6_Pos) /*!< 0x001C0000 */ -#define ADC_SMPR1_SMP6 ADC_SMPR1_SMP6_Msk /*!< ADC Channel 6 Sampling time selection */ -#define ADC_SMPR1_SMP6_0 (0x1UL << ADC_SMPR1_SMP6_Pos) /*!< 0x00040000 */ -#define ADC_SMPR1_SMP6_1 (0x2UL << ADC_SMPR1_SMP6_Pos) /*!< 0x00080000 */ -#define ADC_SMPR1_SMP6_2 (0x4UL << ADC_SMPR1_SMP6_Pos) /*!< 0x00100000 */ - -#define ADC_SMPR1_SMP7_Pos (21U) -#define ADC_SMPR1_SMP7_Msk (0x7UL << ADC_SMPR1_SMP7_Pos) /*!< 0x00E00000 */ -#define ADC_SMPR1_SMP7 ADC_SMPR1_SMP7_Msk /*!< ADC Channel 7 Sampling time selection */ -#define ADC_SMPR1_SMP7_0 (0x1UL << ADC_SMPR1_SMP7_Pos) /*!< 0x00200000 */ -#define ADC_SMPR1_SMP7_1 (0x2UL << ADC_SMPR1_SMP7_Pos) /*!< 0x00400000 */ -#define ADC_SMPR1_SMP7_2 (0x4UL << ADC_SMPR1_SMP7_Pos) /*!< 0x00800000 */ - -#define ADC_SMPR1_SMP8_Pos (24U) -#define ADC_SMPR1_SMP8_Msk (0x7UL << ADC_SMPR1_SMP8_Pos) /*!< 0x07000000 */ -#define ADC_SMPR1_SMP8 ADC_SMPR1_SMP8_Msk /*!< ADC Channel 8 Sampling time selection */ -#define ADC_SMPR1_SMP8_0 (0x1UL << ADC_SMPR1_SMP8_Pos) /*!< 0x01000000 */ -#define ADC_SMPR1_SMP8_1 (0x2UL << ADC_SMPR1_SMP8_Pos) /*!< 0x02000000 */ -#define ADC_SMPR1_SMP8_2 (0x4UL << ADC_SMPR1_SMP8_Pos) /*!< 0x04000000 */ - -#define ADC_SMPR1_SMP9_Pos (27U) -#define ADC_SMPR1_SMP9_Msk (0x7UL << ADC_SMPR1_SMP9_Pos) /*!< 0x38000000 */ -#define ADC_SMPR1_SMP9 ADC_SMPR1_SMP9_Msk /*!< ADC Channel 9 Sampling time selection */ -#define ADC_SMPR1_SMP9_0 (0x1UL << ADC_SMPR1_SMP9_Pos) /*!< 0x08000000 */ -#define ADC_SMPR1_SMP9_1 (0x2UL << ADC_SMPR1_SMP9_Pos) /*!< 0x10000000 */ -#define ADC_SMPR1_SMP9_2 (0x4UL << ADC_SMPR1_SMP9_Pos) /*!< 0x20000000 */ - -/******************** Bit definition for ADC_SMPR2 register ********************/ -#define ADC_SMPR2_SMP10_Pos (0U) -#define ADC_SMPR2_SMP10_Msk (0x7UL << ADC_SMPR2_SMP10_Pos) /*!< 0x00000007 */ -#define ADC_SMPR2_SMP10 ADC_SMPR2_SMP10_Msk /*!< ADC Channel 10 Sampling time selection */ -#define ADC_SMPR2_SMP10_0 (0x1UL << ADC_SMPR2_SMP10_Pos) /*!< 0x00000001 */ -#define ADC_SMPR2_SMP10_1 (0x2UL << ADC_SMPR2_SMP10_Pos) /*!< 0x00000002 */ -#define ADC_SMPR2_SMP10_2 (0x4UL << ADC_SMPR2_SMP10_Pos) /*!< 0x00000004 */ - -#define ADC_SMPR2_SMP11_Pos (3U) -#define ADC_SMPR2_SMP11_Msk (0x7UL << ADC_SMPR2_SMP11_Pos) /*!< 0x00000038 */ -#define ADC_SMPR2_SMP11 ADC_SMPR2_SMP11_Msk /*!< ADC Channel 11 Sampling time selection */ -#define ADC_SMPR2_SMP11_0 (0x1UL << ADC_SMPR2_SMP11_Pos) /*!< 0x00000008 */ -#define ADC_SMPR2_SMP11_1 (0x2UL << ADC_SMPR2_SMP11_Pos) /*!< 0x00000010 */ -#define ADC_SMPR2_SMP11_2 (0x4UL << ADC_SMPR2_SMP11_Pos) /*!< 0x00000020 */ - -#define ADC_SMPR2_SMP12_Pos (6U) -#define ADC_SMPR2_SMP12_Msk (0x7UL << ADC_SMPR2_SMP12_Pos) /*!< 0x000001C0 */ -#define ADC_SMPR2_SMP12 ADC_SMPR2_SMP12_Msk /*!< ADC Channel 12 Sampling time selection */ -#define ADC_SMPR2_SMP12_0 (0x1UL << ADC_SMPR2_SMP12_Pos) /*!< 0x00000040 */ -#define ADC_SMPR2_SMP12_1 (0x2UL << ADC_SMPR2_SMP12_Pos) /*!< 0x00000080 */ -#define ADC_SMPR2_SMP12_2 (0x4UL << ADC_SMPR2_SMP12_Pos) /*!< 0x00000100 */ - -#define ADC_SMPR2_SMP13_Pos (9U) -#define ADC_SMPR2_SMP13_Msk (0x7UL << ADC_SMPR2_SMP13_Pos) /*!< 0x00000E00 */ -#define ADC_SMPR2_SMP13 ADC_SMPR2_SMP13_Msk /*!< ADC Channel 13 Sampling time selection */ -#define ADC_SMPR2_SMP13_0 (0x1UL << ADC_SMPR2_SMP13_Pos) /*!< 0x00000200 */ -#define ADC_SMPR2_SMP13_1 (0x2UL << ADC_SMPR2_SMP13_Pos) /*!< 0x00000400 */ -#define ADC_SMPR2_SMP13_2 (0x4UL << ADC_SMPR2_SMP13_Pos) /*!< 0x00000800 */ - -#define ADC_SMPR2_SMP14_Pos (12U) -#define ADC_SMPR2_SMP14_Msk (0x7UL << ADC_SMPR2_SMP14_Pos) /*!< 0x00007000 */ -#define ADC_SMPR2_SMP14 ADC_SMPR2_SMP14_Msk /*!< ADC Channel 14 Sampling time selection */ -#define ADC_SMPR2_SMP14_0 (0x1UL << ADC_SMPR2_SMP14_Pos) /*!< 0x00001000 */ -#define ADC_SMPR2_SMP14_1 (0x2UL << ADC_SMPR2_SMP14_Pos) /*!< 0x00002000 */ -#define ADC_SMPR2_SMP14_2 (0x4UL << ADC_SMPR2_SMP14_Pos) /*!< 0x00004000 */ - -#define ADC_SMPR2_SMP15_Pos (15U) -#define ADC_SMPR2_SMP15_Msk (0x7UL << ADC_SMPR2_SMP15_Pos) /*!< 0x00038000 */ -#define ADC_SMPR2_SMP15 ADC_SMPR2_SMP15_Msk /*!< ADC Channel 15 Sampling time selection */ -#define ADC_SMPR2_SMP15_0 (0x1UL << ADC_SMPR2_SMP15_Pos) /*!< 0x00008000 */ -#define ADC_SMPR2_SMP15_1 (0x2UL << ADC_SMPR2_SMP15_Pos) /*!< 0x00010000 */ -#define ADC_SMPR2_SMP15_2 (0x4UL << ADC_SMPR2_SMP15_Pos) /*!< 0x00020000 */ - -#define ADC_SMPR2_SMP16_Pos (18U) -#define ADC_SMPR2_SMP16_Msk (0x7UL << ADC_SMPR2_SMP16_Pos) /*!< 0x001C0000 */ -#define ADC_SMPR2_SMP16 ADC_SMPR2_SMP16_Msk /*!< ADC Channel 16 Sampling time selection */ -#define ADC_SMPR2_SMP16_0 (0x1UL << ADC_SMPR2_SMP16_Pos) /*!< 0x00040000 */ -#define ADC_SMPR2_SMP16_1 (0x2UL << ADC_SMPR2_SMP16_Pos) /*!< 0x00080000 */ -#define ADC_SMPR2_SMP16_2 (0x4UL << ADC_SMPR2_SMP16_Pos) /*!< 0x00100000 */ - -#define ADC_SMPR2_SMP17_Pos (21U) -#define ADC_SMPR2_SMP17_Msk (0x7UL << ADC_SMPR2_SMP17_Pos) /*!< 0x00E00000 */ -#define ADC_SMPR2_SMP17 ADC_SMPR2_SMP17_Msk /*!< ADC Channel 17 Sampling time selection */ -#define ADC_SMPR2_SMP17_0 (0x1UL << ADC_SMPR2_SMP17_Pos) /*!< 0x00200000 */ -#define ADC_SMPR2_SMP17_1 (0x2UL << ADC_SMPR2_SMP17_Pos) /*!< 0x00400000 */ -#define ADC_SMPR2_SMP17_2 (0x4UL << ADC_SMPR2_SMP17_Pos) /*!< 0x00800000 */ - -#define ADC_SMPR2_SMP18_Pos (24U) -#define ADC_SMPR2_SMP18_Msk (0x7UL << ADC_SMPR2_SMP18_Pos) /*!< 0x07000000 */ -#define ADC_SMPR2_SMP18 ADC_SMPR2_SMP18_Msk /*!< ADC Channel 18 Sampling time selection */ -#define ADC_SMPR2_SMP18_0 (0x1UL << ADC_SMPR2_SMP18_Pos) /*!< 0x01000000 */ -#define ADC_SMPR2_SMP18_1 (0x2UL << ADC_SMPR2_SMP18_Pos) /*!< 0x02000000 */ -#define ADC_SMPR2_SMP18_2 (0x4UL << ADC_SMPR2_SMP18_Pos) /*!< 0x04000000 */ - -#define ADC_SMPR2_SMP19_Pos (27U) -#define ADC_SMPR2_SMP19_Msk (0x7UL << ADC_SMPR2_SMP19_Pos) /*!< 0x38000000 */ -#define ADC_SMPR2_SMP19 ADC_SMPR2_SMP19_Msk /*!< ADC Channel 19 Sampling time selection */ -#define ADC_SMPR2_SMP19_0 (0x1UL << ADC_SMPR2_SMP19_Pos) /*!< 0x08000000 */ -#define ADC_SMPR2_SMP19_1 (0x2UL << ADC_SMPR2_SMP19_Pos) /*!< 0x10000000 */ -#define ADC_SMPR2_SMP19_2 (0x4UL << ADC_SMPR2_SMP19_Pos) /*!< 0x20000000 */ - -/******************** Bit definition for ADC_PCSEL register ********************/ -#define ADC_PCSEL_PCSEL_Pos (0U) -#define ADC_PCSEL_PCSEL_Msk (0xFFFFFUL << ADC_PCSEL_PCSEL_Pos) /*!< 0x000FFFFF */ -#define ADC_PCSEL_PCSEL ADC_PCSEL_PCSEL_Msk /*!< ADC pre channel selection */ -#define ADC_PCSEL_PCSEL_0 (0x00001UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000001 */ -#define ADC_PCSEL_PCSEL_1 (0x00002UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000002 */ -#define ADC_PCSEL_PCSEL_2 (0x00004UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000004 */ -#define ADC_PCSEL_PCSEL_3 (0x00008UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000008 */ -#define ADC_PCSEL_PCSEL_4 (0x00010UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000010 */ -#define ADC_PCSEL_PCSEL_5 (0x00020UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000020 */ -#define ADC_PCSEL_PCSEL_6 (0x00040UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000040 */ -#define ADC_PCSEL_PCSEL_7 (0x00080UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000080 */ -#define ADC_PCSEL_PCSEL_8 (0x00100UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000100 */ -#define ADC_PCSEL_PCSEL_9 (0x00200UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000200 */ -#define ADC_PCSEL_PCSEL_10 (0x00400UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000400 */ -#define ADC_PCSEL_PCSEL_11 (0x00800UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00000800 */ -#define ADC_PCSEL_PCSEL_12 (0x01000UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00001000 */ -#define ADC_PCSEL_PCSEL_13 (0x02000UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00002000 */ -#define ADC_PCSEL_PCSEL_14 (0x04000UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00004000 */ -#define ADC_PCSEL_PCSEL_15 (0x08000UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00008000 */ -#define ADC_PCSEL_PCSEL_16 (0x10000UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00010000 */ -#define ADC_PCSEL_PCSEL_17 (0x20000UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00020000 */ -#define ADC_PCSEL_PCSEL_18 (0x40000UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00040000 */ -#define ADC_PCSEL_PCSEL_19 (0x80000UL << ADC_PCSEL_PCSEL_Pos) /*!< 0x00080000 */ - -/***************** Bit definition for ADC_LTR1, 2, 3 registers *****************/ -#define ADC_LTR_LT_Pos (0U) -#define ADC_LTR_LT_Msk (0x3FFFFFFUL << ADC_LTR_LT_Pos) /*!< 0x03FFFFFF */ -#define ADC_LTR_LT ADC_LTR_LT_Msk /*!< ADC Analog watchdog 1, 2 and 3 lower threshold */ - -/***************** Bit definition for ADC_HTR1, 2, 3 registers ****************/ -#define ADC_HTR_HT_Pos (0U) -#define ADC_HTR_HT_Msk (0x3FFFFFFUL << ADC_HTR_HT_Pos) /*!< 0x03FFFFFF */ -#define ADC_HTR_HT ADC_HTR_HT_Msk /*!< ADC Analog watchdog 1,2 and 3 higher threshold */ - -/******************** Bit definition for ADC3_TR1 register *******************/ -#define ADC3_TR1_LT1_Pos (0U) -#define ADC3_TR1_LT1_Msk (0xFFFUL << ADC3_TR1_LT1_Pos) /*!< 0x00000FFF */ -#define ADC3_TR1_LT1 ADC3_TR1_LT1_Msk /*!< ADC analog watchdog 1 threshold low */ - -#define ADC3_TR1_AWDFILT_Pos (12U) -#define ADC3_TR1_AWDFILT_Msk (0x7UL << ADC3_TR1_AWDFILT_Pos) /*!< 0x00007000 */ -#define ADC3_TR1_AWDFILT ADC3_TR1_AWDFILT_Msk /*!< ADC analog watchdog filtering parameter */ -#define ADC3_TR1_AWDFILT_0 (0x1UL << ADC3_TR1_AWDFILT_Pos) /*!< 0x00001000 */ -#define ADC3_TR1_AWDFILT_1 (0x2UL << ADC3_TR1_AWDFILT_Pos) /*!< 0x00002000 */ -#define ADC3_TR1_AWDFILT_2 (0x4UL << ADC3_TR1_AWDFILT_Pos) /*!< 0x00004000 */ - -#define ADC3_TR1_HT1_Pos (16U) -#define ADC3_TR1_HT1_Msk (0xFFFUL << ADC3_TR1_HT1_Pos) /*!< 0x0FFF0000 */ -#define ADC3_TR1_HT1 ADC3_TR1_HT1_Msk /*!< ADC analog watchdog 1 threshold high */ - -/******************** Bit definition for ADC3_TR2 register *******************/ -#define ADC3_TR2_LT2_Pos (0U) -#define ADC3_TR2_LT2_Msk (0xFFUL << ADC3_TR2_LT2_Pos) /*!< 0x000000FF */ -#define ADC3_TR2_LT2 ADC3_TR2_LT2_Msk /*!< ADC analog watchdog 2 threshold low */ - -#define ADC3_TR2_HT2_Pos (16U) -#define ADC3_TR2_HT2_Msk (0xFFUL << ADC3_TR2_HT2_Pos) /*!< 0x00FF0000 */ -#define ADC3_TR2_HT2 ADC3_TR2_HT2_Msk /*!< ADC analog watchdog 2 threshold high */ - -/******************** Bit definition for ADC3_TR3 register *******************/ -#define ADC3_TR3_LT3_Pos (0U) -#define ADC3_TR3_LT3_Msk (0xFFUL << ADC3_TR3_LT3_Pos) /*!< 0x000000FF */ -#define ADC3_TR3_LT3 ADC3_TR3_LT3_Msk /*!< ADC analog watchdog 3 threshold low */ - -#define ADC3_TR3_HT3_Pos (16U) -#define ADC3_TR3_HT3_Msk (0xFFUL << ADC3_TR3_HT3_Pos) /*!< 0x00FF0000 */ -#define ADC3_TR3_HT3 ADC3_TR3_HT3_Msk /*!< ADC analog watchdog 3 threshold high */ - -/******************** Bit definition for ADC_SQR1 register ********************/ -#define ADC_SQR1_L_Pos (0U) -#define ADC_SQR1_L_Msk (0xFUL << ADC_SQR1_L_Pos) /*!< 0x0000000F */ -#define ADC_SQR1_L ADC_SQR1_L_Msk /*!< ADC regular channel sequence length */ -#define ADC_SQR1_L_0 (0x1UL << ADC_SQR1_L_Pos) /*!< 0x00000001 */ -#define ADC_SQR1_L_1 (0x2UL << ADC_SQR1_L_Pos) /*!< 0x00000002 */ -#define ADC_SQR1_L_2 (0x4UL << ADC_SQR1_L_Pos) /*!< 0x00000004 */ -#define ADC_SQR1_L_3 (0x8UL << ADC_SQR1_L_Pos) /*!< 0x00000008 */ - -#define ADC_SQR1_SQ1_Pos (6U) -#define ADC_SQR1_SQ1_Msk (0x1FUL << ADC_SQR1_SQ1_Pos) /*!< 0x000007C0 */ -#define ADC_SQR1_SQ1 ADC_SQR1_SQ1_Msk /*!< ADC 1st conversion in regular sequence */ -#define ADC_SQR1_SQ1_0 (0x01UL << ADC_SQR1_SQ1_Pos) /*!< 0x00000040 */ -#define ADC_SQR1_SQ1_1 (0x02UL << ADC_SQR1_SQ1_Pos) /*!< 0x00000080 */ -#define ADC_SQR1_SQ1_2 (0x04UL << ADC_SQR1_SQ1_Pos) /*!< 0x00000100 */ -#define ADC_SQR1_SQ1_3 (0x08UL << ADC_SQR1_SQ1_Pos) /*!< 0x00000200 */ -#define ADC_SQR1_SQ1_4 (0x10UL << ADC_SQR1_SQ1_Pos) /*!< 0x00000400 */ - -#define ADC_SQR1_SQ2_Pos (12U) -#define ADC_SQR1_SQ2_Msk (0x1FUL << ADC_SQR1_SQ2_Pos) /*!< 0x0001F000 */ -#define ADC_SQR1_SQ2 ADC_SQR1_SQ2_Msk /*!< ADC 2nd conversion in regular sequence */ -#define ADC_SQR1_SQ2_0 (0x01UL << ADC_SQR1_SQ2_Pos) /*!< 0x00001000 */ -#define ADC_SQR1_SQ2_1 (0x02UL << ADC_SQR1_SQ2_Pos) /*!< 0x00002000 */ -#define ADC_SQR1_SQ2_2 (0x04UL << ADC_SQR1_SQ2_Pos) /*!< 0x00004000 */ -#define ADC_SQR1_SQ2_3 (0x08UL << ADC_SQR1_SQ2_Pos) /*!< 0x00008000 */ -#define ADC_SQR1_SQ2_4 (0x10UL << ADC_SQR1_SQ2_Pos) /*!< 0x00010000 */ - -#define ADC_SQR1_SQ3_Pos (18U) -#define ADC_SQR1_SQ3_Msk (0x1FUL << ADC_SQR1_SQ3_Pos) /*!< 0x007C0000 */ -#define ADC_SQR1_SQ3 ADC_SQR1_SQ3_Msk /*!< ADC 3rd conversion in regular sequence */ -#define ADC_SQR1_SQ3_0 (0x01UL << ADC_SQR1_SQ3_Pos) /*!< 0x00040000 */ -#define ADC_SQR1_SQ3_1 (0x02UL << ADC_SQR1_SQ3_Pos) /*!< 0x00080000 */ -#define ADC_SQR1_SQ3_2 (0x04UL << ADC_SQR1_SQ3_Pos) /*!< 0x00100000 */ -#define ADC_SQR1_SQ3_3 (0x08UL << ADC_SQR1_SQ3_Pos) /*!< 0x00200000 */ -#define ADC_SQR1_SQ3_4 (0x10UL << ADC_SQR1_SQ3_Pos) /*!< 0x00400000 */ - -#define ADC_SQR1_SQ4_Pos (24U) -#define ADC_SQR1_SQ4_Msk (0x1FUL << ADC_SQR1_SQ4_Pos) /*!< 0x1F000000 */ -#define ADC_SQR1_SQ4 ADC_SQR1_SQ4_Msk /*!< ADC 4th conversion in regular sequence */ -#define ADC_SQR1_SQ4_0 (0x01UL << ADC_SQR1_SQ4_Pos) /*!< 0x01000000 */ -#define ADC_SQR1_SQ4_1 (0x02UL << ADC_SQR1_SQ4_Pos) /*!< 0x02000000 */ -#define ADC_SQR1_SQ4_2 (0x04UL << ADC_SQR1_SQ4_Pos) /*!< 0x04000000 */ -#define ADC_SQR1_SQ4_3 (0x08UL << ADC_SQR1_SQ4_Pos) /*!< 0x08000000 */ -#define ADC_SQR1_SQ4_4 (0x10UL << ADC_SQR1_SQ4_Pos) /*!< 0x10000000 */ - -/******************** Bit definition for ADC_SQR2 register ********************/ -#define ADC_SQR2_SQ5_Pos (0U) -#define ADC_SQR2_SQ5_Msk (0x1FUL << ADC_SQR2_SQ5_Pos) /*!< 0x0000001F */ -#define ADC_SQR2_SQ5 ADC_SQR2_SQ5_Msk /*!< ADC 5th conversion in regular sequence */ -#define ADC_SQR2_SQ5_0 (0x01UL << ADC_SQR2_SQ5_Pos) /*!< 0x00000001 */ -#define ADC_SQR2_SQ5_1 (0x02UL << ADC_SQR2_SQ5_Pos) /*!< 0x00000002 */ -#define ADC_SQR2_SQ5_2 (0x04UL << ADC_SQR2_SQ5_Pos) /*!< 0x00000004 */ -#define ADC_SQR2_SQ5_3 (0x08UL << ADC_SQR2_SQ5_Pos) /*!< 0x00000008 */ -#define ADC_SQR2_SQ5_4 (0x10UL << ADC_SQR2_SQ5_Pos) /*!< 0x00000010 */ - -#define ADC_SQR2_SQ6_Pos (6U) -#define ADC_SQR2_SQ6_Msk (0x1FUL << ADC_SQR2_SQ6_Pos) /*!< 0x000007C0 */ -#define ADC_SQR2_SQ6 ADC_SQR2_SQ6_Msk /*!< ADC 6th conversion in regular sequence */ -#define ADC_SQR2_SQ6_0 (0x01UL << ADC_SQR2_SQ6_Pos) /*!< 0x00000040 */ -#define ADC_SQR2_SQ6_1 (0x02UL << ADC_SQR2_SQ6_Pos) /*!< 0x00000080 */ -#define ADC_SQR2_SQ6_2 (0x04UL << ADC_SQR2_SQ6_Pos) /*!< 0x00000100 */ -#define ADC_SQR2_SQ6_3 (0x08UL << ADC_SQR2_SQ6_Pos) /*!< 0x00000200 */ -#define ADC_SQR2_SQ6_4 (0x10UL << ADC_SQR2_SQ6_Pos) /*!< 0x00000400 */ - -#define ADC_SQR2_SQ7_Pos (12U) -#define ADC_SQR2_SQ7_Msk (0x1FUL << ADC_SQR2_SQ7_Pos) /*!< 0x0001F000 */ -#define ADC_SQR2_SQ7 ADC_SQR2_SQ7_Msk /*!< ADC 7th conversion in regular sequence */ -#define ADC_SQR2_SQ7_0 (0x01UL << ADC_SQR2_SQ7_Pos) /*!< 0x00001000 */ -#define ADC_SQR2_SQ7_1 (0x02UL << ADC_SQR2_SQ7_Pos) /*!< 0x00002000 */ -#define ADC_SQR2_SQ7_2 (0x04UL << ADC_SQR2_SQ7_Pos) /*!< 0x00004000 */ -#define ADC_SQR2_SQ7_3 (0x08UL << ADC_SQR2_SQ7_Pos) /*!< 0x00008000 */ -#define ADC_SQR2_SQ7_4 (0x10UL << ADC_SQR2_SQ7_Pos) /*!< 0x00010000 */ - -#define ADC_SQR2_SQ8_Pos (18U) -#define ADC_SQR2_SQ8_Msk (0x1FUL << ADC_SQR2_SQ8_Pos) /*!< 0x007C0000 */ -#define ADC_SQR2_SQ8 ADC_SQR2_SQ8_Msk /*!< ADC 8th conversion in regular sequence */ -#define ADC_SQR2_SQ8_0 (0x01UL << ADC_SQR2_SQ8_Pos) /*!< 0x00040000 */ -#define ADC_SQR2_SQ8_1 (0x02UL << ADC_SQR2_SQ8_Pos) /*!< 0x00080000 */ -#define ADC_SQR2_SQ8_2 (0x04UL << ADC_SQR2_SQ8_Pos) /*!< 0x00100000 */ -#define ADC_SQR2_SQ8_3 (0x08UL << ADC_SQR2_SQ8_Pos) /*!< 0x00200000 */ -#define ADC_SQR2_SQ8_4 (0x10UL << ADC_SQR2_SQ8_Pos) /*!< 0x00400000 */ - -#define ADC_SQR2_SQ9_Pos (24U) -#define ADC_SQR2_SQ9_Msk (0x1FUL << ADC_SQR2_SQ9_Pos) /*!< 0x1F000000 */ -#define ADC_SQR2_SQ9 ADC_SQR2_SQ9_Msk /*!< ADC 9th conversion in regular sequence */ -#define ADC_SQR2_SQ9_0 (0x01UL << ADC_SQR2_SQ9_Pos) /*!< 0x01000000 */ -#define ADC_SQR2_SQ9_1 (0x02UL << ADC_SQR2_SQ9_Pos) /*!< 0x02000000 */ -#define ADC_SQR2_SQ9_2 (0x04UL << ADC_SQR2_SQ9_Pos) /*!< 0x04000000 */ -#define ADC_SQR2_SQ9_3 (0x08UL << ADC_SQR2_SQ9_Pos) /*!< 0x08000000 */ -#define ADC_SQR2_SQ9_4 (0x10UL << ADC_SQR2_SQ9_Pos) /*!< 0x10000000 */ - -/******************** Bit definition for ADC_SQR3 register ********************/ -#define ADC_SQR3_SQ10_Pos (0U) -#define ADC_SQR3_SQ10_Msk (0x1FUL << ADC_SQR3_SQ10_Pos) /*!< 0x0000001F */ -#define ADC_SQR3_SQ10 ADC_SQR3_SQ10_Msk /*!< ADC 10th conversion in regular sequence */ -#define ADC_SQR3_SQ10_0 (0x01UL << ADC_SQR3_SQ10_Pos) /*!< 0x00000001 */ -#define ADC_SQR3_SQ10_1 (0x02UL << ADC_SQR3_SQ10_Pos) /*!< 0x00000002 */ -#define ADC_SQR3_SQ10_2 (0x04UL << ADC_SQR3_SQ10_Pos) /*!< 0x00000004 */ -#define ADC_SQR3_SQ10_3 (0x08UL << ADC_SQR3_SQ10_Pos) /*!< 0x00000008 */ -#define ADC_SQR3_SQ10_4 (0x10UL << ADC_SQR3_SQ10_Pos) /*!< 0x00000010 */ - -#define ADC_SQR3_SQ11_Pos (6U) -#define ADC_SQR3_SQ11_Msk (0x1FUL << ADC_SQR3_SQ11_Pos) /*!< 0x000007C0 */ -#define ADC_SQR3_SQ11 ADC_SQR3_SQ11_Msk /*!< ADC 11th conversion in regular sequence */ -#define ADC_SQR3_SQ11_0 (0x01UL << ADC_SQR3_SQ11_Pos) /*!< 0x00000040 */ -#define ADC_SQR3_SQ11_1 (0x02UL << ADC_SQR3_SQ11_Pos) /*!< 0x00000080 */ -#define ADC_SQR3_SQ11_2 (0x04UL << ADC_SQR3_SQ11_Pos) /*!< 0x00000100 */ -#define ADC_SQR3_SQ11_3 (0x08UL << ADC_SQR3_SQ11_Pos) /*!< 0x00000200 */ -#define ADC_SQR3_SQ11_4 (0x10UL << ADC_SQR3_SQ11_Pos) /*!< 0x00000400 */ - -#define ADC_SQR3_SQ12_Pos (12U) -#define ADC_SQR3_SQ12_Msk (0x1FUL << ADC_SQR3_SQ12_Pos) /*!< 0x0001F000 */ -#define ADC_SQR3_SQ12 ADC_SQR3_SQ12_Msk /*!< ADC 12th conversion in regular sequence */ -#define ADC_SQR3_SQ12_0 (0x01UL << ADC_SQR3_SQ12_Pos) /*!< 0x00001000 */ -#define ADC_SQR3_SQ12_1 (0x02UL << ADC_SQR3_SQ12_Pos) /*!< 0x00002000 */ -#define ADC_SQR3_SQ12_2 (0x04UL << ADC_SQR3_SQ12_Pos) /*!< 0x00004000 */ -#define ADC_SQR3_SQ12_3 (0x08UL << ADC_SQR3_SQ12_Pos) /*!< 0x00008000 */ -#define ADC_SQR3_SQ12_4 (0x10UL << ADC_SQR3_SQ12_Pos) /*!< 0x00010000 */ - -#define ADC_SQR3_SQ13_Pos (18U) -#define ADC_SQR3_SQ13_Msk (0x1FUL << ADC_SQR3_SQ13_Pos) /*!< 0x007C0000 */ -#define ADC_SQR3_SQ13 ADC_SQR3_SQ13_Msk /*!< ADC 13th conversion in regular sequence */ -#define ADC_SQR3_SQ13_0 (0x01UL << ADC_SQR3_SQ13_Pos) /*!< 0x00040000 */ -#define ADC_SQR3_SQ13_1 (0x02UL << ADC_SQR3_SQ13_Pos) /*!< 0x00080000 */ -#define ADC_SQR3_SQ13_2 (0x04UL << ADC_SQR3_SQ13_Pos) /*!< 0x00100000 */ -#define ADC_SQR3_SQ13_3 (0x08UL << ADC_SQR3_SQ13_Pos) /*!< 0x00200000 */ -#define ADC_SQR3_SQ13_4 (0x10UL << ADC_SQR3_SQ13_Pos) /*!< 0x00400000 */ - -#define ADC_SQR3_SQ14_Pos (24U) -#define ADC_SQR3_SQ14_Msk (0x1FUL << ADC_SQR3_SQ14_Pos) /*!< 0x1F000000 */ -#define ADC_SQR3_SQ14 ADC_SQR3_SQ14_Msk /*!< ADC 14th conversion in regular sequence */ -#define ADC_SQR3_SQ14_0 (0x01UL << ADC_SQR3_SQ14_Pos) /*!< 0x01000000 */ -#define ADC_SQR3_SQ14_1 (0x02UL << ADC_SQR3_SQ14_Pos) /*!< 0x02000000 */ -#define ADC_SQR3_SQ14_2 (0x04UL << ADC_SQR3_SQ14_Pos) /*!< 0x04000000 */ -#define ADC_SQR3_SQ14_3 (0x08UL << ADC_SQR3_SQ14_Pos) /*!< 0x08000000 */ -#define ADC_SQR3_SQ14_4 (0x10UL << ADC_SQR3_SQ14_Pos) /*!< 0x10000000 */ - -/******************** Bit definition for ADC_SQR4 register ********************/ -#define ADC_SQR4_SQ15_Pos (0U) -#define ADC_SQR4_SQ15_Msk (0x1FUL << ADC_SQR4_SQ15_Pos) /*!< 0x0000001F */ -#define ADC_SQR4_SQ15 ADC_SQR4_SQ15_Msk /*!< ADC 15th conversion in regular sequence */ -#define ADC_SQR4_SQ15_0 (0x01UL << ADC_SQR4_SQ15_Pos) /*!< 0x00000001 */ -#define ADC_SQR4_SQ15_1 (0x02UL << ADC_SQR4_SQ15_Pos) /*!< 0x00000002 */ -#define ADC_SQR4_SQ15_2 (0x04UL << ADC_SQR4_SQ15_Pos) /*!< 0x00000004 */ -#define ADC_SQR4_SQ15_3 (0x08UL << ADC_SQR4_SQ15_Pos) /*!< 0x00000008 */ -#define ADC_SQR4_SQ15_4 (0x10UL << ADC_SQR4_SQ15_Pos) /*!< 0x00000010 */ - -#define ADC_SQR4_SQ16_Pos (6U) -#define ADC_SQR4_SQ16_Msk (0x1FUL << ADC_SQR4_SQ16_Pos) /*!< 0x000007C0 */ -#define ADC_SQR4_SQ16 ADC_SQR4_SQ16_Msk /*!< ADC 16th conversion in regular sequence */ -#define ADC_SQR4_SQ16_0 (0x01UL << ADC_SQR4_SQ16_Pos) /*!< 0x00000040 */ -#define ADC_SQR4_SQ16_1 (0x02UL << ADC_SQR4_SQ16_Pos) /*!< 0x00000080 */ -#define ADC_SQR4_SQ16_2 (0x04UL << ADC_SQR4_SQ16_Pos) /*!< 0x00000100 */ -#define ADC_SQR4_SQ16_3 (0x08UL << ADC_SQR4_SQ16_Pos) /*!< 0x00000200 */ -#define ADC_SQR4_SQ16_4 (0x10UL << ADC_SQR4_SQ16_Pos) /*!< 0x00000400 */ -/******************** Bit definition for ADC_DR register ********************/ -#define ADC_DR_RDATA_Pos (0U) -#define ADC_DR_RDATA_Msk (0xFFFFFFFFUL << ADC_DR_RDATA_Pos) /*!< 0xFFFFFFFF */ -#define ADC_DR_RDATA ADC_DR_RDATA_Msk /*!< ADC regular Data converted */ - -/******************** Bit definition for ADC_JSQR register ********************/ -#define ADC_JSQR_JL_Pos (0U) -#define ADC_JSQR_JL_Msk (0x3UL << ADC_JSQR_JL_Pos) /*!< 0x00000003 */ -#define ADC_JSQR_JL ADC_JSQR_JL_Msk /*!< ADC injected channel sequence length */ -#define ADC_JSQR_JL_0 (0x1UL << ADC_JSQR_JL_Pos) /*!< 0x00000001 */ -#define ADC_JSQR_JL_1 (0x2UL << ADC_JSQR_JL_Pos) /*!< 0x00000002 */ - -#define ADC_JSQR_JEXTSEL_Pos (2U) -#define ADC_JSQR_JEXTSEL_Msk (0x1FUL << ADC_JSQR_JEXTSEL_Pos) /*!< 0x0000007C */ -#define ADC_JSQR_JEXTSEL ADC_JSQR_JEXTSEL_Msk /*!< ADC external trigger selection for injected group */ -#define ADC_JSQR_JEXTSEL_0 (0x01UL << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000004 */ -#define ADC_JSQR_JEXTSEL_1 (0x02UL << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000008 */ -#define ADC_JSQR_JEXTSEL_2 (0x04UL << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000010 */ -#define ADC_JSQR_JEXTSEL_3 (0x08UL << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000020 */ -#define ADC_JSQR_JEXTSEL_4 (0x10UL << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000040 */ - -#define ADC_JSQR_JEXTEN_Pos (7U) -#define ADC_JSQR_JEXTEN_Msk (0x3UL << ADC_JSQR_JEXTEN_Pos) /*!< 0x00000180 */ -#define ADC_JSQR_JEXTEN ADC_JSQR_JEXTEN_Msk /*!< ADC external trigger enable and polarity selection for injected channels */ -#define ADC_JSQR_JEXTEN_0 (0x1UL << ADC_JSQR_JEXTEN_Pos) /*!< 0x00000080 */ -#define ADC_JSQR_JEXTEN_1 (0x2UL << ADC_JSQR_JEXTEN_Pos) /*!< 0x00000100 */ - -#define ADC_JSQR_JSQ1_Pos (9U) -#define ADC_JSQR_JSQ1_Msk (0x1FUL << ADC_JSQR_JSQ1_Pos) /*!< 0x00003E00 */ -#define ADC_JSQR_JSQ1 ADC_JSQR_JSQ1_Msk /*!< ADC 1st conversion in injected sequence */ -#define ADC_JSQR_JSQ1_0 (0x01UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00000200 */ -#define ADC_JSQR_JSQ1_1 (0x02UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00000400 */ -#define ADC_JSQR_JSQ1_2 (0x04UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00000800 */ -#define ADC_JSQR_JSQ1_3 (0x08UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00001000 */ -#define ADC_JSQR_JSQ1_4 (0x10UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00002000 */ - -#define ADC_JSQR_JSQ2_Pos (15U) -#define ADC_JSQR_JSQ2_Msk (0x1FUL << ADC_JSQR_JSQ2_Pos) /*!< 0x000F8000 */ -#define ADC_JSQR_JSQ2 ADC_JSQR_JSQ2_Msk /*!< ADC 2nd conversion in injected sequence */ -#define ADC_JSQR_JSQ2_0 (0x01UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00008000 */ -#define ADC_JSQR_JSQ2_1 (0x02UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00010000 */ -#define ADC_JSQR_JSQ2_2 (0x04UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00020000 */ -#define ADC_JSQR_JSQ2_3 (0x08UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00040000 */ -#define ADC_JSQR_JSQ2_4 (0x10UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00080000 */ - -#define ADC_JSQR_JSQ3_Pos (21U) -#define ADC_JSQR_JSQ3_Msk (0x1FUL << ADC_JSQR_JSQ3_Pos) /*!< 0x03E00000 */ -#define ADC_JSQR_JSQ3 ADC_JSQR_JSQ3_Msk /*!< ADC 3rd conversion in injected sequence */ -#define ADC_JSQR_JSQ3_0 (0x01UL << ADC_JSQR_JSQ3_Pos) /*!< 0x00200000 */ -#define ADC_JSQR_JSQ3_1 (0x02UL << ADC_JSQR_JSQ3_Pos) /*!< 0x00400000 */ -#define ADC_JSQR_JSQ3_2 (0x04UL << ADC_JSQR_JSQ3_Pos) /*!< 0x00800000 */ -#define ADC_JSQR_JSQ3_3 (0x08UL << ADC_JSQR_JSQ3_Pos) /*!< 0x01000000 */ -#define ADC_JSQR_JSQ3_4 (0x10UL << ADC_JSQR_JSQ3_Pos) /*!< 0x02000000 */ - -#define ADC_JSQR_JSQ4_Pos (27U) -#define ADC_JSQR_JSQ4_Msk (0x1FUL << ADC_JSQR_JSQ4_Pos) /*!< 0xF8000000 */ -#define ADC_JSQR_JSQ4 ADC_JSQR_JSQ4_Msk /*!< ADC 4th conversion in injected sequence */ -#define ADC_JSQR_JSQ4_0 (0x01UL << ADC_JSQR_JSQ4_Pos) /*!< 0x08000000 */ -#define ADC_JSQR_JSQ4_1 (0x02UL << ADC_JSQR_JSQ4_Pos) /*!< 0x10000000 */ -#define ADC_JSQR_JSQ4_2 (0x04UL << ADC_JSQR_JSQ4_Pos) /*!< 0x20000000 */ -#define ADC_JSQR_JSQ4_3 (0x08UL << ADC_JSQR_JSQ4_Pos) /*!< 0x40000000 */ -#define ADC_JSQR_JSQ4_4 (0x10UL << ADC_JSQR_JSQ4_Pos) /*!< 0x80000000 */ - -/******************** Bit definition for ADC_OFR1 register ********************/ -#define ADC_OFR1_OFFSET1_Pos (0U) -#define ADC_OFR1_OFFSET1_Msk (0x3FFFFFFUL << ADC_OFR1_OFFSET1_Pos) /*!< 0x03FFFFFF */ -#define ADC_OFR1_OFFSET1 ADC_OFR1_OFFSET1_Msk /*!< ADC data offset 1 for channel programmed into bits OFFSET1_CH[4:0] */ -#define ADC_OFR1_OFFSET1_0 (0x0000001UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000001 */ -#define ADC_OFR1_OFFSET1_1 (0x0000002UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000002 */ -#define ADC_OFR1_OFFSET1_2 (0x0000004UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000004 */ -#define ADC_OFR1_OFFSET1_3 (0x0000008UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000008 */ -#define ADC_OFR1_OFFSET1_4 (0x0000010UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000010 */ -#define ADC_OFR1_OFFSET1_5 (0x0000020UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000020 */ -#define ADC_OFR1_OFFSET1_6 (0x0000040UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000040 */ -#define ADC_OFR1_OFFSET1_7 (0x0000080UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000080 */ -#define ADC_OFR1_OFFSET1_8 (0x0000100UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000100 */ -#define ADC_OFR1_OFFSET1_9 (0x0000200UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000200 */ -#define ADC_OFR1_OFFSET1_10 (0x0000400UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000400 */ -#define ADC_OFR1_OFFSET1_11 (0x0000800UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000800 */ -#define ADC_OFR1_OFFSET1_12 (0x0001000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00001000 */ -#define ADC_OFR1_OFFSET1_13 (0x0002000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00002000 */ -#define ADC_OFR1_OFFSET1_14 (0x0004000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00004000 */ -#define ADC_OFR1_OFFSET1_15 (0x0008000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00008000 */ -#define ADC_OFR1_OFFSET1_16 (0x0010000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00010000 */ -#define ADC_OFR1_OFFSET1_17 (0x0020000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00020000 */ -#define ADC_OFR1_OFFSET1_18 (0x0040000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00040000 */ -#define ADC_OFR1_OFFSET1_19 (0x0080000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00080000 */ -#define ADC_OFR1_OFFSET1_20 (0x0100000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00100000 */ -#define ADC_OFR1_OFFSET1_21 (0x0200000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00200000 */ -#define ADC_OFR1_OFFSET1_22 (0x0400000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00400000 */ -#define ADC_OFR1_OFFSET1_23 (0x0800000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00800000 */ -#define ADC_OFR1_OFFSET1_24 (0x1000000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x01000000 */ -#define ADC_OFR1_OFFSET1_25 (0x2000000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x02000000 */ - -#define ADC_OFR1_OFFSET1_CH_Pos (26U) -#define ADC_OFR1_OFFSET1_CH_Msk (0x1FUL << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x7C000000 */ -#define ADC_OFR1_OFFSET1_CH ADC_OFR1_OFFSET1_CH_Msk /*!< ADC Channel selection for the data offset 1 */ -#define ADC_OFR1_OFFSET1_CH_0 (0x01UL << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x04000000 */ -#define ADC_OFR1_OFFSET1_CH_1 (0x02UL << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x08000000 */ -#define ADC_OFR1_OFFSET1_CH_2 (0x04UL << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x10000000 */ -#define ADC_OFR1_OFFSET1_CH_3 (0x08UL << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x20000000 */ -#define ADC_OFR1_OFFSET1_CH_4 (0x10UL << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x40000000 */ - -#define ADC_OFR1_SSATE_Pos (31U) -#define ADC_OFR1_SSATE_Msk (0x1UL << ADC_OFR1_SSATE_Pos) /*!< 0x80000000 */ -#define ADC_OFR1_SSATE ADC_OFR1_SSATE_Msk /*!< ADC Signed saturation Enable */ - -#define ADC3_OFR1_OFFSET1_Pos (0U) -#define ADC3_OFR1_OFFSET1_Msk (0xFFFUL << ADC3_OFR1_OFFSET1_Pos) /*!< 0x00000FFF */ -#define ADC3_OFR1_OFFSET1 ADC3_OFR1_OFFSET1_Msk /*!< ADC data offset 1 for channel programmed into bits OFFSET1_CH[4:0] */ - -#define ADC3_OFR1_OFFSETPOS_Pos (24U) -#define ADC3_OFR1_OFFSETPOS_Msk (0x1UL << ADC3_OFR1_OFFSETPOS_Pos) /*!< 0x01000000 */ -#define ADC3_OFR1_OFFSETPOS ADC3_OFR1_OFFSETPOS_Msk /*!< ADC offset number 1 positive */ -#define ADC3_OFR1_SATEN_Pos (25U) -#define ADC3_OFR1_SATEN_Msk (0x1UL << ADC3_OFR1_SATEN_Pos) /*!< 0x02000000 */ -#define ADC3_OFR1_SATEN ADC3_OFR1_SATEN_Msk /*!< ADC offset number 1 saturation enable */ - -#define ADC3_OFR1_OFFSET1_EN_Pos (31U) -#define ADC3_OFR1_OFFSET1_EN_Msk (0x1UL << ADC3_OFR1_OFFSET1_EN_Pos) /*!< 0x80000000 */ -#define ADC3_OFR1_OFFSET1_EN ADC3_OFR1_OFFSET1_EN_Msk /*!< ADC offset number 1 enable */ - -/******************** Bit definition for ADC_OFR2 register ********************/ -#define ADC_OFR2_OFFSET2_Pos (0U) -#define ADC_OFR2_OFFSET2_Msk (0x3FFFFFFUL << ADC_OFR2_OFFSET2_Pos) /*!< 0x03FFFFFF */ -#define ADC_OFR2_OFFSET2 ADC_OFR2_OFFSET2_Msk /*!< ADC data offset 2 for channel programmed into bits OFFSET2_CH[4:0] */ -#define ADC_OFR2_OFFSET2_0 (0x0000001UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000001 */ -#define ADC_OFR2_OFFSET2_1 (0x0000002UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000002 */ -#define ADC_OFR2_OFFSET2_2 (0x0000004UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000004 */ -#define ADC_OFR2_OFFSET2_3 (0x0000008UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000008 */ -#define ADC_OFR2_OFFSET2_4 (0x0000010UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000010 */ -#define ADC_OFR2_OFFSET2_5 (0x0000020UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000020 */ -#define ADC_OFR2_OFFSET2_6 (0x0000040UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000040 */ -#define ADC_OFR2_OFFSET2_7 (0x0000080UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000080 */ -#define ADC_OFR2_OFFSET2_8 (0x0000100UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000100 */ -#define ADC_OFR2_OFFSET2_9 (0x0000200UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000200 */ -#define ADC_OFR2_OFFSET2_10 (0x0000400UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000400 */ -#define ADC_OFR2_OFFSET2_11 (0x0000800UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000800 */ -#define ADC_OFR2_OFFSET2_12 (0x0001000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00001000 */ -#define ADC_OFR2_OFFSET2_13 (0x0002000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00002000 */ -#define ADC_OFR2_OFFSET2_14 (0x0004000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00004000 */ -#define ADC_OFR2_OFFSET2_15 (0x0008000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00008000 */ -#define ADC_OFR2_OFFSET2_16 (0x0010000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00010000 */ -#define ADC_OFR2_OFFSET2_17 (0x0020000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00020000 */ -#define ADC_OFR2_OFFSET2_18 (0x0040000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00040000 */ -#define ADC_OFR2_OFFSET2_19 (0x0080000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00080000 */ -#define ADC_OFR2_OFFSET2_20 (0x0100000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00100000 */ -#define ADC_OFR2_OFFSET2_21 (0x0200000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00200000 */ -#define ADC_OFR2_OFFSET2_22 (0x0400000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00400000 */ -#define ADC_OFR2_OFFSET2_23 (0x0800000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00800000 */ -#define ADC_OFR2_OFFSET2_24 (0x1000000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x01000000 */ -#define ADC_OFR2_OFFSET2_25 (0x2000000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x02000000 */ - -#define ADC_OFR2_OFFSET2_CH_Pos (26U) -#define ADC_OFR2_OFFSET2_CH_Msk (0x1FUL << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x7C000000 */ -#define ADC_OFR2_OFFSET2_CH ADC_OFR2_OFFSET2_CH_Msk /*!< ADC Channel selection for the data offset 2 */ -#define ADC_OFR2_OFFSET2_CH_0 (0x01UL << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x04000000 */ -#define ADC_OFR2_OFFSET2_CH_1 (0x02UL << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x08000000 */ -#define ADC_OFR2_OFFSET2_CH_2 (0x04UL << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x10000000 */ -#define ADC_OFR2_OFFSET2_CH_3 (0x08UL << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x20000000 */ -#define ADC_OFR2_OFFSET2_CH_4 (0x10UL << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x40000000 */ - -#define ADC_OFR2_SSATE_Pos (31U) -#define ADC_OFR2_SSATE_Msk (0x1UL << ADC_OFR2_SSATE_Pos) /*!< 0x80000000 */ -#define ADC_OFR2_SSATE ADC_OFR2_SSATE_Msk /*!< ADC Signed saturation Enable */ - -#define ADC3_OFR2_OFFSET2_Pos (0U) -#define ADC3_OFR2_OFFSET2_Msk (0xFFFUL << ADC3_OFR2_OFFSET2_Pos) /*!< 0x00000FFF */ -#define ADC3_OFR2_OFFSET2 ADC3_OFR2_OFFSET2_Msk /*!< ADC data offset 2 for channel programmed into bits OFFSET1_CH[4:0] */ - -#define ADC3_OFR2_OFFSETPOS_Pos (24U) -#define ADC3_OFR2_OFFSETPOS_Msk (0x1UL << ADC3_OFR2_OFFSETPOS_Pos) /*!< 0x01000000 */ -#define ADC3_OFR2_OFFSETPOS ADC3_OFR2_OFFSETPOS_Msk /*!< ADC offset number 2 positive */ -#define ADC3_OFR2_SATEN_Pos (25U) -#define ADC3_OFR2_SATEN_Msk (0x1UL << ADC3_OFR2_SATEN_Pos) /*!< 0x02000000 */ -#define ADC3_OFR2_SATEN ADC3_OFR2_SATEN_Msk /*!< ADC offset number 2 saturation enable */ - -#define ADC3_OFR2_OFFSET2_EN_Pos (31U) -#define ADC3_OFR2_OFFSET2_EN_Msk (0x1UL << ADC3_OFR2_OFFSET2_EN_Pos) /*!< 0x80000000 */ -#define ADC3_OFR2_OFFSET2_EN ADC3_OFR2_OFFSET2_EN_Msk /*!< ADC offset number 2 enable */ - -/******************** Bit definition for ADC_OFR3 register ********************/ -#define ADC_OFR3_OFFSET3_Pos (0U) -#define ADC_OFR3_OFFSET3_Msk (0x3FFFFFFUL << ADC_OFR3_OFFSET3_Pos) /*!< 0x03FFFFFF */ -#define ADC_OFR3_OFFSET3 ADC_OFR3_OFFSET3_Msk /*!< ADC data offset 3 for channel programmed into bits OFFSET3_CH[4:0] */ -#define ADC_OFR3_OFFSET3_0 (0x0000001UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000001 */ -#define ADC_OFR3_OFFSET3_1 (0x0000002UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000002 */ -#define ADC_OFR3_OFFSET3_2 (0x0000004UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000004 */ -#define ADC_OFR3_OFFSET3_3 (0x0000008UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000008 */ -#define ADC_OFR3_OFFSET3_4 (0x0000010UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000010 */ -#define ADC_OFR3_OFFSET3_5 (0x0000020UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000020 */ -#define ADC_OFR3_OFFSET3_6 (0x0000040UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000040 */ -#define ADC_OFR3_OFFSET3_7 (0x0000080UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000080 */ -#define ADC_OFR3_OFFSET3_8 (0x0000100UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000100 */ -#define ADC_OFR3_OFFSET3_9 (0x0000200UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000200 */ -#define ADC_OFR3_OFFSET3_10 (0x0000400UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000400 */ -#define ADC_OFR3_OFFSET3_11 (0x0000800UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000800 */ -#define ADC_OFR3_OFFSET3_12 (0x0001000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00001000 */ -#define ADC_OFR3_OFFSET3_13 (0x0002000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00002000 */ -#define ADC_OFR3_OFFSET3_14 (0x0004000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00004000 */ -#define ADC_OFR3_OFFSET3_15 (0x0008000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00008000 */ -#define ADC_OFR3_OFFSET3_16 (0x0010000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00010000 */ -#define ADC_OFR3_OFFSET3_17 (0x0020000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00020000 */ -#define ADC_OFR3_OFFSET3_18 (0x0040000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00040000 */ -#define ADC_OFR3_OFFSET3_19 (0x0080000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00080000 */ -#define ADC_OFR3_OFFSET3_20 (0x0100000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00100000 */ -#define ADC_OFR3_OFFSET3_21 (0x0200000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00200000 */ -#define ADC_OFR3_OFFSET3_22 (0x0400000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00400000 */ -#define ADC_OFR3_OFFSET3_23 (0x0800000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00800000 */ -#define ADC_OFR3_OFFSET3_24 (0x1000000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x01000000 */ -#define ADC_OFR3_OFFSET3_25 (0x2000000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x02000000 */ - -#define ADC_OFR3_OFFSET3_CH_Pos (26U) -#define ADC_OFR3_OFFSET3_CH_Msk (0x1FUL << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x7C000000 */ -#define ADC_OFR3_OFFSET3_CH ADC_OFR3_OFFSET3_CH_Msk /*!< ADC Channel selection for the data offset 3 */ -#define ADC_OFR3_OFFSET3_CH_0 (0x01UL << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x04000000 */ -#define ADC_OFR3_OFFSET3_CH_1 (0x02UL << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x08000000 */ -#define ADC_OFR3_OFFSET3_CH_2 (0x04UL << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x10000000 */ -#define ADC_OFR3_OFFSET3_CH_3 (0x08UL << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x20000000 */ -#define ADC_OFR3_OFFSET3_CH_4 (0x10UL << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x40000000 */ - -#define ADC_OFR3_SSATE_Pos (31U) -#define ADC_OFR3_SSATE_Msk (0x1UL << ADC_OFR3_SSATE_Pos) /*!< 0x80000000 */ -#define ADC_OFR3_SSATE ADC_OFR3_SSATE_Msk /*!< ADC Signed saturation Enable */ - -#define ADC3_OFR3_OFFSET3_Pos (0U) -#define ADC3_OFR3_OFFSET3_Msk (0xFFFUL << ADC3_OFR3_OFFSET3_Pos) /*!< 0x00000FFF */ -#define ADC3_OFR3_OFFSET3 ADC3_OFR3_OFFSET3_Msk /*!< ADC data offset 3 for channel programmed into bits OFFSET1_CH[4:0] */ - -#define ADC3_OFR3_OFFSETPOS_Pos (24U) -#define ADC3_OFR3_OFFSETPOS_Msk (0x1UL << ADC3_OFR3_OFFSETPOS_Pos) /*!< 0x01000000 */ -#define ADC3_OFR3_OFFSETPOS ADC3_OFR3_OFFSETPOS_Msk /*!< ADC offset number 3 positive */ -#define ADC3_OFR3_SATEN_Pos (25U) -#define ADC3_OFR3_SATEN_Msk (0x1UL << ADC3_OFR3_SATEN_Pos) /*!< 0x02000000 */ -#define ADC3_OFR3_SATEN ADC3_OFR3_SATEN_Msk /*!< ADC offset number 3 saturation enable */ - -#define ADC3_OFR3_OFFSET3_EN_Pos (31U) -#define ADC3_OFR3_OFFSET3_EN_Msk (0x1UL << ADC3_OFR3_OFFSET3_EN_Pos) /*!< 0x80000000 */ -#define ADC3_OFR3_OFFSET3_EN ADC3_OFR3_OFFSET3_EN_Msk /*!< ADC offset number 3 enable */ - -/******************** Bit definition for ADC_OFR4 register ********************/ -#define ADC_OFR4_OFFSET4_Pos (0U) -#define ADC_OFR4_OFFSET4_Msk (0x3FFFFFFUL << ADC_OFR4_OFFSET4_Pos) /*!< 0x03FFFFFF */ -#define ADC_OFR4_OFFSET4 ADC_OFR4_OFFSET4_Msk /*!< ADC data offset 4 for channel programmed into bits OFFSET4_CH[4:0] */ -#define ADC_OFR4_OFFSET4_0 (0x0000001UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000001 */ -#define ADC_OFR4_OFFSET4_1 (0x0000002UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000002 */ -#define ADC_OFR4_OFFSET4_2 (0x0000004UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000004 */ -#define ADC_OFR4_OFFSET4_3 (0x0000008UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000008 */ -#define ADC_OFR4_OFFSET4_4 (0x0000010UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000010 */ -#define ADC_OFR4_OFFSET4_5 (0x0000020UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000020 */ -#define ADC_OFR4_OFFSET4_6 (0x0000040UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000040 */ -#define ADC_OFR4_OFFSET4_7 (0x0000080UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000080 */ -#define ADC_OFR4_OFFSET4_8 (0x0000100UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000100 */ -#define ADC_OFR4_OFFSET4_9 (0x0000200UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000200 */ -#define ADC_OFR4_OFFSET4_10 (0x0000400UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000400 */ -#define ADC_OFR4_OFFSET4_11 (0x0000800UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000800 */ -#define ADC_OFR4_OFFSET4_12 (0x0001000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00001000 */ -#define ADC_OFR4_OFFSET4_13 (0x0002000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00002000 */ -#define ADC_OFR4_OFFSET4_14 (0x0004000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00004000 */ -#define ADC_OFR4_OFFSET4_15 (0x0008000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00008000 */ -#define ADC_OFR4_OFFSET4_16 (0x0010000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00010000 */ -#define ADC_OFR4_OFFSET4_17 (0x0020000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00020000 */ -#define ADC_OFR4_OFFSET4_18 (0x0040000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00040000 */ -#define ADC_OFR4_OFFSET4_19 (0x0080000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00080000 */ -#define ADC_OFR4_OFFSET4_20 (0x0100000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00100000 */ -#define ADC_OFR4_OFFSET4_21 (0x0200000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00200000 */ -#define ADC_OFR4_OFFSET4_22 (0x0400000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00400000 */ -#define ADC_OFR4_OFFSET4_23 (0x0800000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00800000 */ -#define ADC_OFR4_OFFSET4_24 (0x1000000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x01000000 */ -#define ADC_OFR4_OFFSET4_25 (0x2000000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x02000000 */ - -#define ADC_OFR4_OFFSET4_CH_Pos (26U) -#define ADC_OFR4_OFFSET4_CH_Msk (0x1FUL << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x7C000000 */ -#define ADC_OFR4_OFFSET4_CH ADC_OFR4_OFFSET4_CH_Msk /*!< ADC Channel selection for the data offset 4 */ -#define ADC_OFR4_OFFSET4_CH_0 (0x01UL << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x04000000 */ -#define ADC_OFR4_OFFSET4_CH_1 (0x02UL << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x08000000 */ -#define ADC_OFR4_OFFSET4_CH_2 (0x04UL << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x10000000 */ -#define ADC_OFR4_OFFSET4_CH_3 (0x08UL << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x20000000 */ -#define ADC_OFR4_OFFSET4_CH_4 (0x10UL << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x40000000 */ - -#define ADC_OFR4_SSATE_Pos (31U) -#define ADC_OFR4_SSATE_Msk (0x1UL << ADC_OFR4_SSATE_Pos) /*!< 0x80000000 */ -#define ADC_OFR4_SSATE ADC_OFR4_SSATE_Msk /*!< ADC Signed saturation Enable */ - -#define ADC3_OFR4_OFFSET4_Pos (0U) -#define ADC3_OFR4_OFFSET4_Msk (0xFFFUL << ADC3_OFR4_OFFSET4_Pos) /*!< 0x00000FFF */ -#define ADC3_OFR4_OFFSET4 ADC3_OFR4_OFFSET4_Msk /*!< ADC data offset 4 for channel programmed into bits OFFSET1_CH[4:0] */ - -#define ADC3_OFR4_OFFSETPOS_Pos (24U) -#define ADC3_OFR4_OFFSETPOS_Msk (0x1UL << ADC3_OFR4_OFFSETPOS_Pos) /*!< 0x01000000 */ -#define ADC3_OFR4_OFFSETPOS ADC3_OFR4_OFFSETPOS_Msk /*!< ADC offset number 4 positive */ -#define ADC3_OFR4_SATEN_Pos (25U) -#define ADC3_OFR4_SATEN_Msk (0x1UL << ADC3_OFR4_SATEN_Pos) /*!< 0x02000000 */ -#define ADC3_OFR4_SATEN ADC3_OFR4_SATEN_Msk /*!< ADC offset number 4 saturation enable */ - -#define ADC3_OFR4_OFFSET4_EN_Pos (31U) -#define ADC3_OFR4_OFFSET4_EN_Msk (0x1UL << ADC3_OFR4_OFFSET4_EN_Pos) /*!< 0x80000000 */ -#define ADC3_OFR4_OFFSET4_EN ADC3_OFR4_OFFSET4_EN_Msk /*!< ADC offset number 4 enable */ - -/******************** Bit definition for ADC_JDR1 register ********************/ -#define ADC_JDR1_JDATA_Pos (0U) -#define ADC_JDR1_JDATA_Msk (0xFFFFFFFFUL << ADC_JDR1_JDATA_Pos) /*!< 0xFFFFFFFF */ -#define ADC_JDR1_JDATA ADC_JDR1_JDATA_Msk /*!< ADC Injected DATA */ -#define ADC_JDR1_JDATA_0 (0x00000001UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000001 */ -#define ADC_JDR1_JDATA_1 (0x00000002UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000002 */ -#define ADC_JDR1_JDATA_2 (0x00000004UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000004 */ -#define ADC_JDR1_JDATA_3 (0x00000008UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000008 */ -#define ADC_JDR1_JDATA_4 (0x00000010UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000010 */ -#define ADC_JDR1_JDATA_5 (0x00000020UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000020 */ -#define ADC_JDR1_JDATA_6 (0x00000040UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000040 */ -#define ADC_JDR1_JDATA_7 (0x00000080UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000080 */ -#define ADC_JDR1_JDATA_8 (0x00000100UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000100 */ -#define ADC_JDR1_JDATA_9 (0x00000200UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000200 */ -#define ADC_JDR1_JDATA_10 (0x00000400UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000400 */ -#define ADC_JDR1_JDATA_11 (0x00000800UL << ADC_JDR1_JDATA_Pos) /*!< 0x00000800 */ -#define ADC_JDR1_JDATA_12 (0x00001000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00001000 */ -#define ADC_JDR1_JDATA_13 (0x00002000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00002000 */ -#define ADC_JDR1_JDATA_14 (0x00004000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00004000 */ -#define ADC_JDR1_JDATA_15 (0x00008000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00008000 */ -#define ADC_JDR1_JDATA_16 (0x00010000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00010000 */ -#define ADC_JDR1_JDATA_17 (0x00020000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00020000 */ -#define ADC_JDR1_JDATA_18 (0x00040000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00040000 */ -#define ADC_JDR1_JDATA_19 (0x00080000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00080000 */ -#define ADC_JDR1_JDATA_20 (0x00100000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00100000 */ -#define ADC_JDR1_JDATA_21 (0x00200000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00200000 */ -#define ADC_JDR1_JDATA_22 (0x00400000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00400000 */ -#define ADC_JDR1_JDATA_23 (0x00800000UL << ADC_JDR1_JDATA_Pos) /*!< 0x00800000 */ -#define ADC_JDR1_JDATA_24 (0x01000000UL << ADC_JDR1_JDATA_Pos) /*!< 0x01000000 */ -#define ADC_JDR1_JDATA_25 (0x02000000UL << ADC_JDR1_JDATA_Pos) /*!< 0x02000000 */ -#define ADC_JDR1_JDATA_26 (0x04000000UL << ADC_JDR1_JDATA_Pos) /*!< 0x04000000 */ -#define ADC_JDR1_JDATA_27 (0x08000000UL << ADC_JDR1_JDATA_Pos) /*!< 0x08000000 */ -#define ADC_JDR1_JDATA_28 (0x10000000UL << ADC_JDR1_JDATA_Pos) /*!< 0x10000000 */ -#define ADC_JDR1_JDATA_29 (0x20000000UL << ADC_JDR1_JDATA_Pos) /*!< 0x20000000 */ -#define ADC_JDR1_JDATA_30 (0x40000000UL << ADC_JDR1_JDATA_Pos) /*!< 0x40000000 */ -#define ADC_JDR1_JDATA_31 (0x80000000UL << ADC_JDR1_JDATA_Pos) /*!< 0x80000000 */ - -/******************** Bit definition for ADC_JDR2 register ********************/ -#define ADC_JDR2_JDATA_Pos (0U) -#define ADC_JDR2_JDATA_Msk (0xFFFFFFFFUL << ADC_JDR2_JDATA_Pos) /*!< 0xFFFFFFFF */ -#define ADC_JDR2_JDATA ADC_JDR2_JDATA_Msk /*!< ADC Injected DATA */ -#define ADC_JDR2_JDATA_0 (0x00000001UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000001 */ -#define ADC_JDR2_JDATA_1 (0x00000002UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000002 */ -#define ADC_JDR2_JDATA_2 (0x00000004UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000004 */ -#define ADC_JDR2_JDATA_3 (0x00000008UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000008 */ -#define ADC_JDR2_JDATA_4 (0x00000010UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000010 */ -#define ADC_JDR2_JDATA_5 (0x00000020UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000020 */ -#define ADC_JDR2_JDATA_6 (0x00000040UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000040 */ -#define ADC_JDR2_JDATA_7 (0x00000080UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000080 */ -#define ADC_JDR2_JDATA_8 (0x00000100UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000100 */ -#define ADC_JDR2_JDATA_9 (0x00000200UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000200 */ -#define ADC_JDR2_JDATA_10 (0x00000400UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000400 */ -#define ADC_JDR2_JDATA_11 (0x00000800UL << ADC_JDR2_JDATA_Pos) /*!< 0x00000800 */ -#define ADC_JDR2_JDATA_12 (0x00001000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00001000 */ -#define ADC_JDR2_JDATA_13 (0x00002000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00002000 */ -#define ADC_JDR2_JDATA_14 (0x00004000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00004000 */ -#define ADC_JDR2_JDATA_15 (0x00008000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00008000 */ -#define ADC_JDR2_JDATA_16 (0x00010000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00010000 */ -#define ADC_JDR2_JDATA_17 (0x00020000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00020000 */ -#define ADC_JDR2_JDATA_18 (0x00040000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00040000 */ -#define ADC_JDR2_JDATA_19 (0x00080000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00080000 */ -#define ADC_JDR2_JDATA_20 (0x00100000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00100000 */ -#define ADC_JDR2_JDATA_21 (0x00200000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00200000 */ -#define ADC_JDR2_JDATA_22 (0x00400000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00400000 */ -#define ADC_JDR2_JDATA_23 (0x00800000UL << ADC_JDR2_JDATA_Pos) /*!< 0x00800000 */ -#define ADC_JDR2_JDATA_24 (0x01000000UL << ADC_JDR2_JDATA_Pos) /*!< 0x01000000 */ -#define ADC_JDR2_JDATA_25 (0x02000000UL << ADC_JDR2_JDATA_Pos) /*!< 0x02000000 */ -#define ADC_JDR2_JDATA_26 (0x04000000UL << ADC_JDR2_JDATA_Pos) /*!< 0x04000000 */ -#define ADC_JDR2_JDATA_27 (0x08000000UL << ADC_JDR2_JDATA_Pos) /*!< 0x08000000 */ -#define ADC_JDR2_JDATA_28 (0x10000000UL << ADC_JDR2_JDATA_Pos) /*!< 0x10000000 */ -#define ADC_JDR2_JDATA_29 (0x20000000UL << ADC_JDR2_JDATA_Pos) /*!< 0x20000000 */ -#define ADC_JDR2_JDATA_30 (0x40000000UL << ADC_JDR2_JDATA_Pos) /*!< 0x40000000 */ -#define ADC_JDR2_JDATA_31 (0x80000000UL << ADC_JDR2_JDATA_Pos) /*!< 0x80000000 */ - -/******************** Bit definition for ADC_JDR3 register ********************/ -#define ADC_JDR3_JDATA_Pos (0U) -#define ADC_JDR3_JDATA_Msk (0xFFFFFFFFUL << ADC_JDR3_JDATA_Pos) /*!< 0xFFFFFFFF */ -#define ADC_JDR3_JDATA ADC_JDR3_JDATA_Msk /*!< ADC Injected DATA */ -#define ADC_JDR3_JDATA_0 (0x00000001UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000001 */ -#define ADC_JDR3_JDATA_1 (0x00000002UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000002 */ -#define ADC_JDR3_JDATA_2 (0x00000004UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000004 */ -#define ADC_JDR3_JDATA_3 (0x00000008UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000008 */ -#define ADC_JDR3_JDATA_4 (0x00000010UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000010 */ -#define ADC_JDR3_JDATA_5 (0x00000020UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000020 */ -#define ADC_JDR3_JDATA_6 (0x00000040UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000040 */ -#define ADC_JDR3_JDATA_7 (0x00000080UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000080 */ -#define ADC_JDR3_JDATA_8 (0x00000100UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000100 */ -#define ADC_JDR3_JDATA_9 (0x00000200UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000200 */ -#define ADC_JDR3_JDATA_10 (0x00000400UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000400 */ -#define ADC_JDR3_JDATA_11 (0x00000800UL << ADC_JDR3_JDATA_Pos) /*!< 0x00000800 */ -#define ADC_JDR3_JDATA_12 (0x00001000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00001000 */ -#define ADC_JDR3_JDATA_13 (0x00002000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00002000 */ -#define ADC_JDR3_JDATA_14 (0x00004000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00004000 */ -#define ADC_JDR3_JDATA_15 (0x00008000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00008000 */ -#define ADC_JDR3_JDATA_16 (0x00010000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00010000 */ -#define ADC_JDR3_JDATA_17 (0x00020000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00020000 */ -#define ADC_JDR3_JDATA_18 (0x00040000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00040000 */ -#define ADC_JDR3_JDATA_19 (0x00080000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00080000 */ -#define ADC_JDR3_JDATA_20 (0x00100000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00100000 */ -#define ADC_JDR3_JDATA_21 (0x00200000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00200000 */ -#define ADC_JDR3_JDATA_22 (0x00400000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00400000 */ -#define ADC_JDR3_JDATA_23 (0x00800000UL << ADC_JDR3_JDATA_Pos) /*!< 0x00800000 */ -#define ADC_JDR3_JDATA_24 (0x01000000UL << ADC_JDR3_JDATA_Pos) /*!< 0x01000000 */ -#define ADC_JDR3_JDATA_25 (0x02000000UL << ADC_JDR3_JDATA_Pos) /*!< 0x02000000 */ -#define ADC_JDR3_JDATA_26 (0x04000000UL << ADC_JDR3_JDATA_Pos) /*!< 0x04000000 */ -#define ADC_JDR3_JDATA_27 (0x08000000UL << ADC_JDR3_JDATA_Pos) /*!< 0x08000000 */ -#define ADC_JDR3_JDATA_28 (0x10000000UL << ADC_JDR3_JDATA_Pos) /*!< 0x10000000 */ -#define ADC_JDR3_JDATA_29 (0x20000000UL << ADC_JDR3_JDATA_Pos) /*!< 0x20000000 */ -#define ADC_JDR3_JDATA_30 (0x40000000UL << ADC_JDR3_JDATA_Pos) /*!< 0x40000000 */ -#define ADC_JDR3_JDATA_31 (0x80000000UL << ADC_JDR3_JDATA_Pos) /*!< 0x80000000 */ - -/******************** Bit definition for ADC_JDR4 register ********************/ -#define ADC_JDR4_JDATA_Pos (0U) -#define ADC_JDR4_JDATA_Msk (0xFFFFFFFFUL << ADC_JDR4_JDATA_Pos) /*!< 0xFFFFFFFF */ -#define ADC_JDR4_JDATA ADC_JDR4_JDATA_Msk /*!< ADC Injected DATA */ -#define ADC_JDR4_JDATA_0 (0x00000001UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000001 */ -#define ADC_JDR4_JDATA_1 (0x00000002UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000002 */ -#define ADC_JDR4_JDATA_2 (0x00000004UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000004 */ -#define ADC_JDR4_JDATA_3 (0x00000008UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000008 */ -#define ADC_JDR4_JDATA_4 (0x00000010UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000010 */ -#define ADC_JDR4_JDATA_5 (0x00000020UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000020 */ -#define ADC_JDR4_JDATA_6 (0x00000040UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000040 */ -#define ADC_JDR4_JDATA_7 (0x00000080UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000080 */ -#define ADC_JDR4_JDATA_8 (0x00000100UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000100 */ -#define ADC_JDR4_JDATA_9 (0x00000200UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000200 */ -#define ADC_JDR4_JDATA_10 (0x00000400UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000400 */ -#define ADC_JDR4_JDATA_11 (0x00000800UL << ADC_JDR4_JDATA_Pos) /*!< 0x00000800 */ -#define ADC_JDR4_JDATA_12 (0x00001000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00001000 */ -#define ADC_JDR4_JDATA_13 (0x00002000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00002000 */ -#define ADC_JDR4_JDATA_14 (0x00004000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00004000 */ -#define ADC_JDR4_JDATA_15 (0x00008000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00008000 */ -#define ADC_JDR4_JDATA_16 (0x00010000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00010000 */ -#define ADC_JDR4_JDATA_17 (0x00020000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00020000 */ -#define ADC_JDR4_JDATA_18 (0x00040000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00040000 */ -#define ADC_JDR4_JDATA_19 (0x00080000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00080000 */ -#define ADC_JDR4_JDATA_20 (0x00100000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00100000 */ -#define ADC_JDR4_JDATA_21 (0x00200000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00200000 */ -#define ADC_JDR4_JDATA_22 (0x00400000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00400000 */ -#define ADC_JDR4_JDATA_23 (0x00800000UL << ADC_JDR4_JDATA_Pos) /*!< 0x00800000 */ -#define ADC_JDR4_JDATA_24 (0x01000000UL << ADC_JDR4_JDATA_Pos) /*!< 0x01000000 */ -#define ADC_JDR4_JDATA_25 (0x02000000UL << ADC_JDR4_JDATA_Pos) /*!< 0x02000000 */ -#define ADC_JDR4_JDATA_26 (0x04000000UL << ADC_JDR4_JDATA_Pos) /*!< 0x04000000 */ -#define ADC_JDR4_JDATA_27 (0x08000000UL << ADC_JDR4_JDATA_Pos) /*!< 0x08000000 */ -#define ADC_JDR4_JDATA_28 (0x10000000UL << ADC_JDR4_JDATA_Pos) /*!< 0x10000000 */ -#define ADC_JDR4_JDATA_29 (0x20000000UL << ADC_JDR4_JDATA_Pos) /*!< 0x20000000 */ -#define ADC_JDR4_JDATA_30 (0x40000000UL << ADC_JDR4_JDATA_Pos) /*!< 0x40000000 */ -#define ADC_JDR4_JDATA_31 (0x80000000UL << ADC_JDR4_JDATA_Pos) /*!< 0x80000000 */ - -/******************** Bit definition for ADC_AWD2CR register ********************/ -#define ADC_AWD2CR_AWD2CH_Pos (0U) -#define ADC_AWD2CR_AWD2CH_Msk (0xFFFFFUL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x000FFFFF */ -#define ADC_AWD2CR_AWD2CH ADC_AWD2CR_AWD2CH_Msk /*!< ADC Analog watchdog 2 channel selection */ -#define ADC_AWD2CR_AWD2CH_0 (0x00001UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000001 */ -#define ADC_AWD2CR_AWD2CH_1 (0x00002UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000002 */ -#define ADC_AWD2CR_AWD2CH_2 (0x00004UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000004 */ -#define ADC_AWD2CR_AWD2CH_3 (0x00008UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000008 */ -#define ADC_AWD2CR_AWD2CH_4 (0x00010UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000010 */ -#define ADC_AWD2CR_AWD2CH_5 (0x00020UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000020 */ -#define ADC_AWD2CR_AWD2CH_6 (0x00040UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000040 */ -#define ADC_AWD2CR_AWD2CH_7 (0x00080UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000080 */ -#define ADC_AWD2CR_AWD2CH_8 (0x00100UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000100 */ -#define ADC_AWD2CR_AWD2CH_9 (0x00200UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000200 */ -#define ADC_AWD2CR_AWD2CH_10 (0x00400UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000400 */ -#define ADC_AWD2CR_AWD2CH_11 (0x00800UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000800 */ -#define ADC_AWD2CR_AWD2CH_12 (0x01000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00001000 */ -#define ADC_AWD2CR_AWD2CH_13 (0x02000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00002000 */ -#define ADC_AWD2CR_AWD2CH_14 (0x04000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00004000 */ -#define ADC_AWD2CR_AWD2CH_15 (0x08000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00008000 */ -#define ADC_AWD2CR_AWD2CH_16 (0x10000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00010000 */ -#define ADC_AWD2CR_AWD2CH_17 (0x20000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00020000 */ -#define ADC_AWD2CR_AWD2CH_18 (0x40000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00040000 */ -#define ADC_AWD2CR_AWD2CH_19 (0x80000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00080000 */ - -/******************** Bit definition for ADC_AWD3CR register ********************/ -#define ADC_AWD3CR_AWD3CH_Pos (0U) -#define ADC_AWD3CR_AWD3CH_Msk (0xFFFFFUL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x000FFFFF */ -#define ADC_AWD3CR_AWD3CH ADC_AWD3CR_AWD3CH_Msk /*!< ADC Analog watchdog 2 channel selection */ -#define ADC_AWD3CR_AWD3CH_0 (0x00001UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000001 */ -#define ADC_AWD3CR_AWD3CH_1 (0x00002UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000002 */ -#define ADC_AWD3CR_AWD3CH_2 (0x00004UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000004 */ -#define ADC_AWD3CR_AWD3CH_3 (0x00008UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000008 */ -#define ADC_AWD3CR_AWD3CH_4 (0x00010UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000010 */ -#define ADC_AWD3CR_AWD3CH_5 (0x00020UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000020 */ -#define ADC_AWD3CR_AWD3CH_6 (0x00040UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000040 */ -#define ADC_AWD3CR_AWD3CH_7 (0x00080UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000080 */ -#define ADC_AWD3CR_AWD3CH_8 (0x00100UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000100 */ -#define ADC_AWD3CR_AWD3CH_9 (0x00200UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000200 */ -#define ADC_AWD3CR_AWD3CH_10 (0x00400UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000400 */ -#define ADC_AWD3CR_AWD3CH_11 (0x00800UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000800 */ -#define ADC_AWD3CR_AWD3CH_12 (0x01000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00001000 */ -#define ADC_AWD3CR_AWD3CH_13 (0x02000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00002000 */ -#define ADC_AWD3CR_AWD3CH_14 (0x04000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00004000 */ -#define ADC_AWD3CR_AWD3CH_15 (0x08000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00008000 */ -#define ADC_AWD3CR_AWD3CH_16 (0x10000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00010000 */ -#define ADC_AWD3CR_AWD3CH_17 (0x20000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00020000 */ -#define ADC_AWD3CR_AWD3CH_18 (0x40000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00040000 */ -#define ADC_AWD3CR_AWD3CH_19 (0x80000UL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00080000 */ - -/******************** Bit definition for ADC_DIFSEL register ********************/ -#define ADC_DIFSEL_DIFSEL_Pos (0U) -#define ADC_DIFSEL_DIFSEL_Msk (0xFFFFFUL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x000FFFFF */ -#define ADC_DIFSEL_DIFSEL ADC_DIFSEL_DIFSEL_Msk /*!< ADC differential modes for channels 1 to 18 */ -#define ADC_DIFSEL_DIFSEL_0 (0x00001UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000001 */ -#define ADC_DIFSEL_DIFSEL_1 (0x00002UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000002 */ -#define ADC_DIFSEL_DIFSEL_2 (0x00004UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000004 */ -#define ADC_DIFSEL_DIFSEL_3 (0x00008UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000008 */ -#define ADC_DIFSEL_DIFSEL_4 (0x00010UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000010 */ -#define ADC_DIFSEL_DIFSEL_5 (0x00020UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000020 */ -#define ADC_DIFSEL_DIFSEL_6 (0x00040UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000040 */ -#define ADC_DIFSEL_DIFSEL_7 (0x00080UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000080 */ -#define ADC_DIFSEL_DIFSEL_8 (0x00100UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000100 */ -#define ADC_DIFSEL_DIFSEL_9 (0x00200UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000200 */ -#define ADC_DIFSEL_DIFSEL_10 (0x00400UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000400 */ -#define ADC_DIFSEL_DIFSEL_11 (0x00800UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000800 */ -#define ADC_DIFSEL_DIFSEL_12 (0x01000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00001000 */ -#define ADC_DIFSEL_DIFSEL_13 (0x02000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00002000 */ -#define ADC_DIFSEL_DIFSEL_14 (0x04000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00004000 */ -#define ADC_DIFSEL_DIFSEL_15 (0x08000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00008000 */ -#define ADC_DIFSEL_DIFSEL_16 (0x10000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00010000 */ -#define ADC_DIFSEL_DIFSEL_17 (0x20000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00020000 */ -#define ADC_DIFSEL_DIFSEL_18 (0x40000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00040000 */ -#define ADC_DIFSEL_DIFSEL_19 (0x80000UL << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00080000 */ - -/******************** Bit definition for ADC_CALFACT register ********************/ -#define ADC_CALFACT_CALFACT_S_Pos (0U) -#define ADC_CALFACT_CALFACT_S_Msk (0x7FFUL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x000007FF */ -#define ADC_CALFACT_CALFACT_S ADC_CALFACT_CALFACT_S_Msk /*!< ADC calibration factors in single-ended mode */ -#define ADC_CALFACT_CALFACT_S_0 (0x001UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000001 */ -#define ADC_CALFACT_CALFACT_S_1 (0x002UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000002 */ -#define ADC_CALFACT_CALFACT_S_2 (0x004UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000004 */ -#define ADC_CALFACT_CALFACT_S_3 (0x008UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000008 */ -#define ADC_CALFACT_CALFACT_S_4 (0x010UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000010 */ -#define ADC_CALFACT_CALFACT_S_5 (0x020UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000020 */ -#define ADC_CALFACT_CALFACT_S_6 (0x040UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000040 */ -#define ADC_CALFACT_CALFACT_S_7 (0x080UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000080 */ -#define ADC_CALFACT_CALFACT_S_8 (0x100UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000100 */ -#define ADC_CALFACT_CALFACT_S_9 (0x200UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000200 */ -#define ADC_CALFACT_CALFACT_S_10 (0x400UL << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000400 */ -#define ADC_CALFACT_CALFACT_D_Pos (16U) -#define ADC_CALFACT_CALFACT_D_Msk (0x7FFUL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x07FF0000 */ -#define ADC_CALFACT_CALFACT_D ADC_CALFACT_CALFACT_D_Msk /*!< ADC calibration factors in differential mode */ -#define ADC_CALFACT_CALFACT_D_0 (0x001UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00010000 */ -#define ADC_CALFACT_CALFACT_D_1 (0x002UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00020000 */ -#define ADC_CALFACT_CALFACT_D_2 (0x004UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00040000 */ -#define ADC_CALFACT_CALFACT_D_3 (0x008UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00080000 */ -#define ADC_CALFACT_CALFACT_D_4 (0x010UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00100000 */ -#define ADC_CALFACT_CALFACT_D_5 (0x020UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00200000 */ -#define ADC_CALFACT_CALFACT_D_6 (0x040UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00400000 */ -#define ADC_CALFACT_CALFACT_D_7 (0x080UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00800000 */ -#define ADC_CALFACT_CALFACT_D_8 (0x100UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x01000000 */ -#define ADC_CALFACT_CALFACT_D_9 (0x200UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x02000000 */ -#define ADC_CALFACT_CALFACT_D_10 (0x400UL << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x04000000 */ - -/******************** Bit definition for ADC_CALFACT2 register ********************/ -#define ADC_CALFACT2_LINCALFACT_Pos (0U) -#define ADC_CALFACT2_LINCALFACT_Msk (0x3FFFFFFFUL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x3FFFFFFF */ -#define ADC_CALFACT2_LINCALFACT ADC_CALFACT2_LINCALFACT_Msk /*!< ADC Linearity calibration factors */ -#define ADC_CALFACT2_LINCALFACT_0 (0x00000001UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000001 */ -#define ADC_CALFACT2_LINCALFACT_1 (0x00000002UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000002 */ -#define ADC_CALFACT2_LINCALFACT_2 (0x00000004UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000004 */ -#define ADC_CALFACT2_LINCALFACT_3 (0x00000008UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000008 */ -#define ADC_CALFACT2_LINCALFACT_4 (0x00000010UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000010 */ -#define ADC_CALFACT2_LINCALFACT_5 (0x00000020UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000020 */ -#define ADC_CALFACT2_LINCALFACT_6 (0x00000040UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000040 */ -#define ADC_CALFACT2_LINCALFACT_7 (0x00000080UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000080 */ -#define ADC_CALFACT2_LINCALFACT_8 (0x00000100UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000100 */ -#define ADC_CALFACT2_LINCALFACT_9 (0x00000200UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000200 */ -#define ADC_CALFACT2_LINCALFACT_10 (0x00000400UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000400 */ -#define ADC_CALFACT2_LINCALFACT_11 (0x00000800UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00000800 */ -#define ADC_CALFACT2_LINCALFACT_12 (0x00001000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00001000 */ -#define ADC_CALFACT2_LINCALFACT_13 (0x00002000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00002000 */ -#define ADC_CALFACT2_LINCALFACT_14 (0x00004000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00004000 */ -#define ADC_CALFACT2_LINCALFACT_15 (0x00008000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00008000 */ -#define ADC_CALFACT2_LINCALFACT_16 (0x00010000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00010000 */ -#define ADC_CALFACT2_LINCALFACT_17 (0x00020000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00020000 */ -#define ADC_CALFACT2_LINCALFACT_18 (0x00040000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00040000 */ -#define ADC_CALFACT2_LINCALFACT_19 (0x00080000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00080000 */ -#define ADC_CALFACT2_LINCALFACT_20 (0x00100000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00100000 */ -#define ADC_CALFACT2_LINCALFACT_21 (0x00200000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00200000 */ -#define ADC_CALFACT2_LINCALFACT_22 (0x00400000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00400000 */ -#define ADC_CALFACT2_LINCALFACT_23 (0x00800000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x00800000 */ -#define ADC_CALFACT2_LINCALFACT_24 (0x01000000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x01000000 */ -#define ADC_CALFACT2_LINCALFACT_25 (0x02000000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x02000000 */ -#define ADC_CALFACT2_LINCALFACT_26 (0x04000000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x04000000 */ -#define ADC_CALFACT2_LINCALFACT_27 (0x08000000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x08000000 */ -#define ADC_CALFACT2_LINCALFACT_28 (0x10000000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x10000000 */ -#define ADC_CALFACT2_LINCALFACT_29 (0x20000000UL << ADC_CALFACT2_LINCALFACT_Pos) /*!< 0x20000000 */ - -/************************* ADC Common registers *****************************/ -/******************** Bit definition for ADC_CSR register ********************/ -#define ADC_CSR_ADRDY_MST_Pos (0U) -#define ADC_CSR_ADRDY_MST_Msk (0x1UL << ADC_CSR_ADRDY_MST_Pos) /*!< 0x00000001 */ -#define ADC_CSR_ADRDY_MST ADC_CSR_ADRDY_MST_Msk /*!< Master ADC ready */ -#define ADC_CSR_EOSMP_MST_Pos (1U) -#define ADC_CSR_EOSMP_MST_Msk (0x1UL << ADC_CSR_EOSMP_MST_Pos) /*!< 0x00000002 */ -#define ADC_CSR_EOSMP_MST ADC_CSR_EOSMP_MST_Msk /*!< End of sampling phase flag of the master ADC */ -#define ADC_CSR_EOC_MST_Pos (2U) -#define ADC_CSR_EOC_MST_Msk (0x1UL << ADC_CSR_EOC_MST_Pos) /*!< 0x00000004 */ -#define ADC_CSR_EOC_MST ADC_CSR_EOC_MST_Msk /*!< End of regular conversion of the master ADC */ -#define ADC_CSR_EOS_MST_Pos (3U) -#define ADC_CSR_EOS_MST_Msk (0x1UL << ADC_CSR_EOS_MST_Pos) /*!< 0x00000008 */ -#define ADC_CSR_EOS_MST ADC_CSR_EOS_MST_Msk /*!< End of regular sequence flag of the master ADC */ -#define ADC_CSR_OVR_MST_Pos (4U) -#define ADC_CSR_OVR_MST_Msk (0x1UL << ADC_CSR_OVR_MST_Pos) /*!< 0x00000010 */ -#define ADC_CSR_OVR_MST ADC_CSR_OVR_MST_Msk /*!< Overrun flag of the master ADC */ -#define ADC_CSR_JEOC_MST_Pos (5U) -#define ADC_CSR_JEOC_MST_Msk (0x1UL << ADC_CSR_JEOC_MST_Pos) /*!< 0x00000020 */ -#define ADC_CSR_JEOC_MST ADC_CSR_JEOC_MST_Msk /*!< End of injected conversion of the master ADC */ -#define ADC_CSR_JEOS_MST_Pos (6U) -#define ADC_CSR_JEOS_MST_Msk (0x1UL << ADC_CSR_JEOS_MST_Pos) /*!< 0x00000040 */ -#define ADC_CSR_JEOS_MST ADC_CSR_JEOS_MST_Msk /*!< End of injected sequence flag of the master ADC */ -#define ADC_CSR_AWD1_MST_Pos (7U) -#define ADC_CSR_AWD1_MST_Msk (0x1UL << ADC_CSR_AWD1_MST_Pos) /*!< 0x00000080 */ -#define ADC_CSR_AWD1_MST ADC_CSR_AWD1_MST_Msk /*!< Analog watchdog 1 flag of the master ADC */ -#define ADC_CSR_AWD2_MST_Pos (8U) -#define ADC_CSR_AWD2_MST_Msk (0x1UL << ADC_CSR_AWD2_MST_Pos) /*!< 0x00000100 */ -#define ADC_CSR_AWD2_MST ADC_CSR_AWD2_MST_Msk /*!< Analog watchdog 2 flag of the master ADC */ -#define ADC_CSR_AWD3_MST_Pos (9U) -#define ADC_CSR_AWD3_MST_Msk (0x1UL << ADC_CSR_AWD3_MST_Pos) /*!< 0x00000200 */ -#define ADC_CSR_AWD3_MST ADC_CSR_AWD3_MST_Msk /*!< Analog watchdog 3 flag of the master ADC */ -#define ADC_CSR_JQOVF_MST_Pos (10U) -#define ADC_CSR_JQOVF_MST_Msk (0x1UL << ADC_CSR_JQOVF_MST_Pos) /*!< 0x00000400 */ -#define ADC_CSR_JQOVF_MST ADC_CSR_JQOVF_MST_Msk /*!< Injected context queue overflow flag of the master ADC */ -#define ADC_CSR_ADRDY_SLV_Pos (16U) -#define ADC_CSR_ADRDY_SLV_Msk (0x1UL << ADC_CSR_ADRDY_SLV_Pos) /*!< 0x00010000 */ -#define ADC_CSR_ADRDY_SLV ADC_CSR_ADRDY_SLV_Msk /*!< Slave ADC ready */ -#define ADC_CSR_EOSMP_SLV_Pos (17U) -#define ADC_CSR_EOSMP_SLV_Msk (0x1UL << ADC_CSR_EOSMP_SLV_Pos) /*!< 0x00020000 */ -#define ADC_CSR_EOSMP_SLV ADC_CSR_EOSMP_SLV_Msk /*!< End of sampling phase flag of the slave ADC */ -#define ADC_CSR_EOC_SLV_Pos (18U) -#define ADC_CSR_EOC_SLV_Msk (0x1UL << ADC_CSR_EOC_SLV_Pos) /*!< 0x00040000 */ -#define ADC_CSR_EOC_SLV ADC_CSR_EOC_SLV_Msk /*!< End of regular conversion of the slave ADC */ -#define ADC_CSR_EOS_SLV_Pos (19U) -#define ADC_CSR_EOS_SLV_Msk (0x1UL << ADC_CSR_EOS_SLV_Pos) /*!< 0x00080000 */ -#define ADC_CSR_EOS_SLV ADC_CSR_EOS_SLV_Msk /*!< End of regular sequence flag of the slave ADC */ -#define ADC_CSR_OVR_SLV_Pos (20U) -#define ADC_CSR_OVR_SLV_Msk (0x1UL << ADC_CSR_OVR_SLV_Pos) /*!< 0x00100000 */ -#define ADC_CSR_OVR_SLV ADC_CSR_OVR_SLV_Msk /*!< Overrun flag of the slave ADC */ -#define ADC_CSR_JEOC_SLV_Pos (21U) -#define ADC_CSR_JEOC_SLV_Msk (0x1UL << ADC_CSR_JEOC_SLV_Pos) /*!< 0x00200000 */ -#define ADC_CSR_JEOC_SLV ADC_CSR_JEOC_SLV_Msk /*!< End of injected conversion of the slave ADC */ -#define ADC_CSR_JEOS_SLV_Pos (22U) -#define ADC_CSR_JEOS_SLV_Msk (0x1UL << ADC_CSR_JEOS_SLV_Pos) /*!< 0x00400000 */ -#define ADC_CSR_JEOS_SLV ADC_CSR_JEOS_SLV_Msk /*!< End of injected sequence flag of the slave ADC */ -#define ADC_CSR_AWD1_SLV_Pos (23U) -#define ADC_CSR_AWD1_SLV_Msk (0x1UL << ADC_CSR_AWD1_SLV_Pos) /*!< 0x00800000 */ -#define ADC_CSR_AWD1_SLV ADC_CSR_AWD1_SLV_Msk /*!< Analog watchdog 1 flag of the slave ADC */ -#define ADC_CSR_AWD2_SLV_Pos (24U) -#define ADC_CSR_AWD2_SLV_Msk (0x1UL << ADC_CSR_AWD2_SLV_Pos) /*!< 0x01000000 */ -#define ADC_CSR_AWD2_SLV ADC_CSR_AWD2_SLV_Msk /*!< Analog watchdog 2 flag of the slave ADC */ -#define ADC_CSR_AWD3_SLV_Pos (25U) -#define ADC_CSR_AWD3_SLV_Msk (0x1UL << ADC_CSR_AWD3_SLV_Pos) /*!< 0x02000000 */ -#define ADC_CSR_AWD3_SLV ADC_CSR_AWD3_SLV_Msk /*!< Analog watchdog 3 flag of the slave ADC */ -#define ADC_CSR_JQOVF_SLV_Pos (26U) -#define ADC_CSR_JQOVF_SLV_Msk (0x1UL << ADC_CSR_JQOVF_SLV_Pos) /*!< 0x04000000 */ -#define ADC_CSR_JQOVF_SLV ADC_CSR_JQOVF_SLV_Msk /*!< Injected context queue overflow flag of the slave ADC */ - -/******************** Bit definition for ADC_CCR register ********************/ -#define ADC_CCR_DUAL_Pos (0U) -#define ADC_CCR_DUAL_Msk (0x1FUL << ADC_CCR_DUAL_Pos) /*!< 0x0000001F */ -#define ADC_CCR_DUAL ADC_CCR_DUAL_Msk /*!< Dual ADC mode selection */ -#define ADC_CCR_DUAL_0 (0x01UL << ADC_CCR_DUAL_Pos) /*!< 0x00000001 */ -#define ADC_CCR_DUAL_1 (0x02UL << ADC_CCR_DUAL_Pos) /*!< 0x00000002 */ -#define ADC_CCR_DUAL_2 (0x04UL << ADC_CCR_DUAL_Pos) /*!< 0x00000004 */ -#define ADC_CCR_DUAL_3 (0x08UL << ADC_CCR_DUAL_Pos) /*!< 0x00000008 */ -#define ADC_CCR_DUAL_4 (0x10UL << ADC_CCR_DUAL_Pos) /*!< 0x00000010 */ - -#define ADC_CCR_DELAY_Pos (8U) -#define ADC_CCR_DELAY_Msk (0xFUL << ADC_CCR_DELAY_Pos) /*!< 0x00000F00 */ -#define ADC_CCR_DELAY ADC_CCR_DELAY_Msk /*!< Delay between 2 sampling phases */ -#define ADC_CCR_DELAY_0 (0x1UL << ADC_CCR_DELAY_Pos) /*!< 0x00000100 */ -#define ADC_CCR_DELAY_1 (0x2UL << ADC_CCR_DELAY_Pos) /*!< 0x00000200 */ -#define ADC_CCR_DELAY_2 (0x4UL << ADC_CCR_DELAY_Pos) /*!< 0x00000400 */ -#define ADC_CCR_DELAY_3 (0x8UL << ADC_CCR_DELAY_Pos) /*!< 0x00000800 */ - - -#define ADC_CCR_DAMDF_Pos (14U) -#define ADC_CCR_DAMDF_Msk (0x3UL << ADC_CCR_DAMDF_Pos) /*!< 0x0000C000 */ -#define ADC_CCR_DAMDF ADC_CCR_DAMDF_Msk /*!< Dual ADC mode Data format */ -#define ADC_CCR_DAMDF_0 (0x1UL << ADC_CCR_DAMDF_Pos) /*!< 0x00004000 */ -#define ADC_CCR_DAMDF_1 (0x2UL << ADC_CCR_DAMDF_Pos) /*!< 0x00008000 */ - -#define ADC_CCR_CKMODE_Pos (16U) -#define ADC_CCR_CKMODE_Msk (0x3UL << ADC_CCR_CKMODE_Pos) /*!< 0x00030000 */ -#define ADC_CCR_CKMODE ADC_CCR_CKMODE_Msk /*!< ADC clock mode */ -#define ADC_CCR_CKMODE_0 (0x1UL << ADC_CCR_CKMODE_Pos) /*!< 0x00010000 */ -#define ADC_CCR_CKMODE_1 (0x2UL << ADC_CCR_CKMODE_Pos) /*!< 0x00020000 */ - -#define ADC_CCR_PRESC_Pos (18U) -#define ADC_CCR_PRESC_Msk (0xFUL << ADC_CCR_PRESC_Pos) /*!< 0x003C0000 */ -#define ADC_CCR_PRESC ADC_CCR_PRESC_Msk /*!< ADC prescaler */ -#define ADC_CCR_PRESC_0 (0x1UL << ADC_CCR_PRESC_Pos) /*!< 0x00040000 */ -#define ADC_CCR_PRESC_1 (0x2UL << ADC_CCR_PRESC_Pos) /*!< 0x00080000 */ -#define ADC_CCR_PRESC_2 (0x4UL << ADC_CCR_PRESC_Pos) /*!< 0x00100000 */ -#define ADC_CCR_PRESC_3 (0x8UL << ADC_CCR_PRESC_Pos) /*!< 0x00200000 */ - -#define ADC_CCR_VREFEN_Pos (22U) -#define ADC_CCR_VREFEN_Msk (0x1UL << ADC_CCR_VREFEN_Pos) /*!< 0x00400000 */ -#define ADC_CCR_VREFEN ADC_CCR_VREFEN_Msk /*!< VREFINT enable */ -#define ADC_CCR_TSEN_Pos (23U) -#define ADC_CCR_TSEN_Msk (0x1UL << ADC_CCR_TSEN_Pos) /*!< 0x00800000 */ -#define ADC_CCR_TSEN ADC_CCR_TSEN_Msk /*!< Temperature sensor enable */ -#define ADC_CCR_VBATEN_Pos (24U) -#define ADC_CCR_VBATEN_Msk (0x1UL << ADC_CCR_VBATEN_Pos) /*!< 0x01000000 */ -#define ADC_CCR_VBATEN ADC_CCR_VBATEN_Msk /*!< VBAT enable */ - -/******************** Bit definition for ADC_CDR register *******************/ -#define ADC_CDR_RDATA_MST_Pos (0U) -#define ADC_CDR_RDATA_MST_Msk (0xFFFFUL << ADC_CDR_RDATA_MST_Pos) /*!< 0x0000FFFF */ -#define ADC_CDR_RDATA_MST ADC_CDR_RDATA_MST_Msk /*!< ADC multimode master group regular conversion data */ - -#define ADC_CDR_RDATA_SLV_Pos (16U) -#define ADC_CDR_RDATA_SLV_Msk (0xFFFFUL << ADC_CDR_RDATA_SLV_Pos) /*!< 0xFFFF0000 */ -#define ADC_CDR_RDATA_SLV ADC_CDR_RDATA_SLV_Msk /*!< ADC multimode slave group regular conversion data */ - -/******************** Bit definition for ADC_CDR2 register ******************/ -#define ADC_CDR2_RDATA_ALT_Pos (0U) -#define ADC_CDR2_RDATA_ALT_Msk (0xFFFFFFFFUL << ADC_CDR2_RDATA_ALT_Pos) /*!< 0xFFFFFFFF */ -#define ADC_CDR2_RDATA_ALT ADC_CDR2_RDATA_ALT_Msk /*!< Regular data of the master/slave alternated ADCs */ - - -/******************************************************************************/ -/* */ -/* VREFBUF */ -/* */ -/******************************************************************************/ -/******************* Bit definition for VREFBUF_CSR register ****************/ -#define VREFBUF_CSR_ENVR_Pos (0U) -#define VREFBUF_CSR_ENVR_Msk (0x1UL << VREFBUF_CSR_ENVR_Pos) /*!< 0x00000001 */ -#define VREFBUF_CSR_ENVR VREFBUF_CSR_ENVR_Msk /*!*/ -#define DAC_CR_CEN1_Pos (14U) -#define DAC_CR_CEN1_Msk (0x1UL << DAC_CR_CEN1_Pos) /*!< 0x00004000 */ -#define DAC_CR_CEN1 DAC_CR_CEN1_Msk /*!*/ - -#define DAC_CR_EN2_Pos (16U) -#define DAC_CR_EN2_Msk (0x1UL << DAC_CR_EN2_Pos) /*!< 0x00010000 */ -#define DAC_CR_EN2 DAC_CR_EN2_Msk /*!*/ -#define DAC_CR_CEN2_Pos (30U) -#define DAC_CR_CEN2_Msk (0x1UL << DAC_CR_CEN2_Pos) /*!< 0x40000000 */ -#define DAC_CR_CEN2 DAC_CR_CEN2_Msk /*!*/ - -/***************** Bit definition for DAC_SWTRIGR register ******************/ -#define DAC_SWTRIGR_SWTRIG1_Pos (0U) -#define DAC_SWTRIGR_SWTRIG1_Msk (0x1UL << DAC_SWTRIGR_SWTRIG1_Pos) /*!< 0x00000001 */ -#define DAC_SWTRIGR_SWTRIG1 DAC_SWTRIGR_SWTRIG1_Msk /*!>= 1U; value != 0U; value >>= 1U) - { - result <<= 1U; - result |= value & 1U; - s--; - } - result <<= s; /* shift when v's highest bits are zero */ - return result; -} -#endif - - -/** - \brief Count leading zeros - \details Counts the number of leading zeros of a data value. - \param [in] value Value to count the leading zeros - \return number of leading zeros in value - */ -#define __CLZ __clz - - -#if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ - (defined (__ARM_ARCH_7EM__) && (__ARM_ARCH_7EM__ == 1)) ) - -/** - \brief LDR Exclusive (8 bit) - \details Executes a exclusive LDR instruction for 8 bit value. - \param [in] ptr Pointer to data - \return value of type uint8_t at (*ptr) - */ -#if defined(__ARMCC_VERSION) && (__ARMCC_VERSION < 5060020) - #define __LDREXB(ptr) ((uint8_t ) __ldrex(ptr)) -#else - #define __LDREXB(ptr) _Pragma("push") _Pragma("diag_suppress 3731") ((uint8_t ) __ldrex(ptr)) _Pragma("pop") -#endif - - -/** - \brief LDR Exclusive (16 bit) - \details Executes a exclusive LDR instruction for 16 bit values. - \param [in] ptr Pointer to data - \return value of type uint16_t at (*ptr) - */ -#if defined(__ARMCC_VERSION) && (__ARMCC_VERSION < 5060020) - #define __LDREXH(ptr) ((uint16_t) __ldrex(ptr)) -#else - #define __LDREXH(ptr) _Pragma("push") _Pragma("diag_suppress 3731") ((uint16_t) __ldrex(ptr)) _Pragma("pop") -#endif - - -/** - \brief LDR Exclusive (32 bit) - \details Executes a exclusive LDR instruction for 32 bit values. - \param [in] ptr Pointer to data - \return value of type uint32_t at (*ptr) - */ -#if defined(__ARMCC_VERSION) && (__ARMCC_VERSION < 5060020) - #define __LDREXW(ptr) ((uint32_t ) __ldrex(ptr)) -#else - #define __LDREXW(ptr) _Pragma("push") _Pragma("diag_suppress 3731") ((uint32_t ) __ldrex(ptr)) _Pragma("pop") -#endif - - -/** - \brief STR Exclusive (8 bit) - \details Executes a exclusive STR instruction for 8 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -#if defined(__ARMCC_VERSION) && (__ARMCC_VERSION < 5060020) - #define __STREXB(value, ptr) __strex(value, ptr) -#else - #define __STREXB(value, ptr) _Pragma("push") _Pragma("diag_suppress 3731") __strex(value, ptr) _Pragma("pop") -#endif - - -/** - \brief STR Exclusive (16 bit) - \details Executes a exclusive STR instruction for 16 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -#if defined(__ARMCC_VERSION) && (__ARMCC_VERSION < 5060020) - #define __STREXH(value, ptr) __strex(value, ptr) -#else - #define __STREXH(value, ptr) _Pragma("push") _Pragma("diag_suppress 3731") __strex(value, ptr) _Pragma("pop") -#endif - - -/** - \brief STR Exclusive (32 bit) - \details Executes a exclusive STR instruction for 32 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -#if defined(__ARMCC_VERSION) && (__ARMCC_VERSION < 5060020) - #define __STREXW(value, ptr) __strex(value, ptr) -#else - #define __STREXW(value, ptr) _Pragma("push") _Pragma("diag_suppress 3731") __strex(value, ptr) _Pragma("pop") -#endif - - -/** - \brief Remove the exclusive lock - \details Removes the exclusive lock which is created by LDREX. - */ -#define __CLREX __clrex - - -/** - \brief Signed Saturate - \details Saturates a signed value. - \param [in] value Value to be saturated - \param [in] sat Bit position to saturate to (1..32) - \return Saturated value - */ -#define __SSAT __ssat - - -/** - \brief Unsigned Saturate - \details Saturates an unsigned value. - \param [in] value Value to be saturated - \param [in] sat Bit position to saturate to (0..31) - \return Saturated value - */ -#define __USAT __usat - - -/** - \brief Rotate Right with Extend (32 bit) - \details Moves each bit of a bitstring right by one bit. - The carry input is shifted in at the left end of the bitstring. - \param [in] value Value to rotate - \return Rotated value - */ -#ifndef __NO_EMBEDDED_ASM -__attribute__((section(".rrx_text"))) __STATIC_INLINE __ASM uint32_t __RRX(uint32_t value) -{ - rrx r0, r0 - bx lr -} -#endif - - -/** - \brief LDRT Unprivileged (8 bit) - \details Executes a Unprivileged LDRT instruction for 8 bit value. - \param [in] ptr Pointer to data - \return value of type uint8_t at (*ptr) - */ -#define __LDRBT(ptr) ((uint8_t ) __ldrt(ptr)) - - -/** - \brief LDRT Unprivileged (16 bit) - \details Executes a Unprivileged LDRT instruction for 16 bit values. - \param [in] ptr Pointer to data - \return value of type uint16_t at (*ptr) - */ -#define __LDRHT(ptr) ((uint16_t) __ldrt(ptr)) - - -/** - \brief LDRT Unprivileged (32 bit) - \details Executes a Unprivileged LDRT instruction for 32 bit values. - \param [in] ptr Pointer to data - \return value of type uint32_t at (*ptr) - */ -#define __LDRT(ptr) ((uint32_t ) __ldrt(ptr)) - - -/** - \brief STRT Unprivileged (8 bit) - \details Executes a Unprivileged STRT instruction for 8 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - */ -#define __STRBT(value, ptr) __strt(value, ptr) - - -/** - \brief STRT Unprivileged (16 bit) - \details Executes a Unprivileged STRT instruction for 16 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - */ -#define __STRHT(value, ptr) __strt(value, ptr) - - -/** - \brief STRT Unprivileged (32 bit) - \details Executes a Unprivileged STRT instruction for 32 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - */ -#define __STRT(value, ptr) __strt(value, ptr) - -#else /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ - (defined (__ARM_ARCH_7EM__) && (__ARM_ARCH_7EM__ == 1)) ) */ - -/** - \brief Signed Saturate - \details Saturates a signed value. - \param [in] value Value to be saturated - \param [in] sat Bit position to saturate to (1..32) - \return Saturated value - */ -__attribute__((always_inline)) __STATIC_INLINE int32_t __SSAT(int32_t val, uint32_t sat) -{ - if ((sat >= 1U) && (sat <= 32U)) - { - const int32_t max = (int32_t)((1U << (sat - 1U)) - 1U); - const int32_t min = -1 - max ; - if (val > max) - { - return max; - } - else if (val < min) - { - return min; - } - } - return val; -} - -/** - \brief Unsigned Saturate - \details Saturates an unsigned value. - \param [in] value Value to be saturated - \param [in] sat Bit position to saturate to (0..31) - \return Saturated value - */ -__attribute__((always_inline)) __STATIC_INLINE uint32_t __USAT(int32_t val, uint32_t sat) -{ - if (sat <= 31U) - { - const uint32_t max = ((1U << sat) - 1U); - if (val > (int32_t)max) - { - return max; - } - else if (val < 0) - { - return 0U; - } - } - return (uint32_t)val; -} - -#endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ - (defined (__ARM_ARCH_7EM__) && (__ARM_ARCH_7EM__ == 1)) ) */ - -/*@}*/ /* end of group CMSIS_Core_InstructionInterface */ - - -/* ################### Compiler specific Intrinsics ########################### */ -/** \defgroup CMSIS_SIMD_intrinsics CMSIS SIMD Intrinsics - Access to dedicated SIMD instructions - @{ -*/ - -#if ((defined (__ARM_ARCH_7EM__) && (__ARM_ARCH_7EM__ == 1)) ) - -#define __SADD8 __sadd8 -#define __QADD8 __qadd8 -#define __SHADD8 __shadd8 -#define __UADD8 __uadd8 -#define __UQADD8 __uqadd8 -#define __UHADD8 __uhadd8 -#define __SSUB8 __ssub8 -#define __QSUB8 __qsub8 -#define __SHSUB8 __shsub8 -#define __USUB8 __usub8 -#define __UQSUB8 __uqsub8 -#define __UHSUB8 __uhsub8 -#define __SADD16 __sadd16 -#define __QADD16 __qadd16 -#define __SHADD16 __shadd16 -#define __UADD16 __uadd16 -#define __UQADD16 __uqadd16 -#define __UHADD16 __uhadd16 -#define __SSUB16 __ssub16 -#define __QSUB16 __qsub16 -#define __SHSUB16 __shsub16 -#define __USUB16 __usub16 -#define __UQSUB16 __uqsub16 -#define __UHSUB16 __uhsub16 -#define __SASX __sasx -#define __QASX __qasx -#define __SHASX __shasx -#define __UASX __uasx -#define __UQASX __uqasx -#define __UHASX __uhasx -#define __SSAX __ssax -#define __QSAX __qsax -#define __SHSAX __shsax -#define __USAX __usax -#define __UQSAX __uqsax -#define __UHSAX __uhsax -#define __USAD8 __usad8 -#define __USADA8 __usada8 -#define __SSAT16 __ssat16 -#define __USAT16 __usat16 -#define __UXTB16 __uxtb16 -#define __UXTAB16 __uxtab16 -#define __SXTB16 __sxtb16 -#define __SXTAB16 __sxtab16 -#define __SMUAD __smuad -#define __SMUADX __smuadx -#define __SMLAD __smlad -#define __SMLADX __smladx -#define __SMLALD __smlald -#define __SMLALDX __smlaldx -#define __SMUSD __smusd -#define __SMUSDX __smusdx -#define __SMLSD __smlsd -#define __SMLSDX __smlsdx -#define __SMLSLD __smlsld -#define __SMLSLDX __smlsldx -#define __SEL __sel -#define __QADD __qadd -#define __QSUB __qsub - -#define __PKHBT(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0x0000FFFFUL) | \ - ((((uint32_t)(ARG2)) << (ARG3)) & 0xFFFF0000UL) ) - -#define __PKHTB(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0xFFFF0000UL) | \ - ((((uint32_t)(ARG2)) >> (ARG3)) & 0x0000FFFFUL) ) - -#define __SMMLA(ARG1,ARG2,ARG3) ( (int32_t)((((int64_t)(ARG1) * (ARG2)) + \ - ((int64_t)(ARG3) << 32U) ) >> 32U)) - -#endif /* ((defined (__ARM_ARCH_7EM__) && (__ARM_ARCH_7EM__ == 1)) ) */ -/*@} end of group CMSIS_SIMD_intrinsics */ - - -#endif /* __CMSIS_ARMCC_H */ diff --git a/Drivers/CMSIS/Include/cmsis_armclang.h b/Drivers/CMSIS/Include/cmsis_armclang.h deleted file mode 100644 index e917f35..0000000 --- a/Drivers/CMSIS/Include/cmsis_armclang.h +++ /dev/null @@ -1,1444 +0,0 @@ -/**************************************************************************//** - * @file cmsis_armclang.h - * @brief CMSIS compiler armclang (Arm Compiler 6) header file - * @version V5.2.0 - * @date 08. May 2019 - ******************************************************************************/ -/* - * Copyright (c) 2009-2019 Arm Limited. All rights reserved. - * - * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the License); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/*lint -esym(9058, IRQn)*/ /* disable MISRA 2012 Rule 2.4 for IRQn */ - -#ifndef __CMSIS_ARMCLANG_H -#define __CMSIS_ARMCLANG_H - -#pragma clang system_header /* treat file as system include file */ - -#ifndef __ARM_COMPAT_H -#include /* Compatibility header for Arm Compiler 5 intrinsics */ -#endif - -/* CMSIS compiler specific defines */ -#ifndef __ASM - #define __ASM __asm -#endif -#ifndef __INLINE - #define __INLINE __inline -#endif -#ifndef __STATIC_INLINE - #define __STATIC_INLINE static __inline -#endif -#ifndef __STATIC_FORCEINLINE - #define __STATIC_FORCEINLINE __attribute__((always_inline)) static __inline -#endif -#ifndef __NO_RETURN - #define __NO_RETURN __attribute__((__noreturn__)) -#endif -#ifndef __USED - #define __USED __attribute__((used)) -#endif -#ifndef __WEAK - #define __WEAK __attribute__((weak)) -#endif -#ifndef __PACKED - #define __PACKED __attribute__((packed, aligned(1))) -#endif -#ifndef __PACKED_STRUCT - #define __PACKED_STRUCT struct __attribute__((packed, aligned(1))) -#endif -#ifndef __PACKED_UNION - #define __PACKED_UNION union __attribute__((packed, aligned(1))) -#endif -#ifndef __UNALIGNED_UINT32 /* deprecated */ - #pragma clang diagnostic push - #pragma clang diagnostic ignored "-Wpacked" -/*lint -esym(9058, T_UINT32)*/ /* disable MISRA 2012 Rule 2.4 for T_UINT32 */ - struct __attribute__((packed)) T_UINT32 { uint32_t v; }; - #pragma clang diagnostic pop - #define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v) -#endif -#ifndef __UNALIGNED_UINT16_WRITE - #pragma clang diagnostic push - #pragma clang diagnostic ignored "-Wpacked" -/*lint -esym(9058, T_UINT16_WRITE)*/ /* disable MISRA 2012 Rule 2.4 for T_UINT16_WRITE */ - __PACKED_STRUCT T_UINT16_WRITE { uint16_t v; }; - #pragma clang diagnostic pop - #define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))->v) = (val)) -#endif -#ifndef __UNALIGNED_UINT16_READ - #pragma clang diagnostic push - #pragma clang diagnostic ignored "-Wpacked" -/*lint -esym(9058, T_UINT16_READ)*/ /* disable MISRA 2012 Rule 2.4 for T_UINT16_READ */ - __PACKED_STRUCT T_UINT16_READ { uint16_t v; }; - #pragma clang diagnostic pop - #define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr))->v) -#endif -#ifndef __UNALIGNED_UINT32_WRITE - #pragma clang diagnostic push - #pragma clang diagnostic ignored "-Wpacked" -/*lint -esym(9058, T_UINT32_WRITE)*/ /* disable MISRA 2012 Rule 2.4 for T_UINT32_WRITE */ - __PACKED_STRUCT T_UINT32_WRITE { uint32_t v; }; - #pragma clang diagnostic pop - #define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->v) = (val)) -#endif -#ifndef __UNALIGNED_UINT32_READ - #pragma clang diagnostic push - #pragma clang diagnostic ignored "-Wpacked" -/*lint -esym(9058, T_UINT32_READ)*/ /* disable MISRA 2012 Rule 2.4 for T_UINT32_READ */ - __PACKED_STRUCT T_UINT32_READ { uint32_t v; }; - #pragma clang diagnostic pop - #define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr))->v) -#endif -#ifndef __ALIGNED - #define __ALIGNED(x) __attribute__((aligned(x))) -#endif -#ifndef __RESTRICT - #define __RESTRICT __restrict -#endif -#ifndef __COMPILER_BARRIER - #define __COMPILER_BARRIER() __ASM volatile("":::"memory") -#endif - -/* ######################### Startup and Lowlevel Init ######################## */ - -#ifndef __PROGRAM_START -#define __PROGRAM_START __main -#endif - -#ifndef __INITIAL_SP -#define __INITIAL_SP Image$$ARM_LIB_STACK$$ZI$$Limit -#endif - -#ifndef __STACK_LIMIT -#define __STACK_LIMIT Image$$ARM_LIB_STACK$$ZI$$Base -#endif - -#ifndef __VECTOR_TABLE -#define __VECTOR_TABLE __Vectors -#endif - -#ifndef __VECTOR_TABLE_ATTRIBUTE -#define __VECTOR_TABLE_ATTRIBUTE __attribute((used, section("RESET"))) -#endif - -/* ########################### Core Function Access ########################### */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_RegAccFunctions CMSIS Core Register Access Functions - @{ - */ - -/** - \brief Enable IRQ Interrupts - \details Enables IRQ interrupts by clearing the I-bit in the CPSR. - Can only be executed in Privileged modes. - */ -/* intrinsic void __enable_irq(); see arm_compat.h */ - - -/** - \brief Disable IRQ Interrupts - \details Disables IRQ interrupts by setting the I-bit in the CPSR. - Can only be executed in Privileged modes. - */ -/* intrinsic void __disable_irq(); see arm_compat.h */ - - -/** - \brief Get Control Register - \details Returns the content of the Control Register. - \return Control Register value - */ -__STATIC_FORCEINLINE uint32_t __get_CONTROL(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, control" : "=r" (result) ); - return(result); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Get Control Register (non-secure) - \details Returns the content of the non-secure Control Register when in secure mode. - \return non-secure Control Register value - */ -__STATIC_FORCEINLINE uint32_t __TZ_get_CONTROL_NS(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, control_ns" : "=r" (result) ); - return(result); -} -#endif - - -/** - \brief Set Control Register - \details Writes the given value to the Control Register. - \param [in] control Control Register value to set - */ -__STATIC_FORCEINLINE void __set_CONTROL(uint32_t control) -{ - __ASM volatile ("MSR control, %0" : : "r" (control) : "memory"); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Set Control Register (non-secure) - \details Writes the given value to the non-secure Control Register when in secure state. - \param [in] control Control Register value to set - */ -__STATIC_FORCEINLINE void __TZ_set_CONTROL_NS(uint32_t control) -{ - __ASM volatile ("MSR control_ns, %0" : : "r" (control) : "memory"); -} -#endif - - -/** - \brief Get IPSR Register - \details Returns the content of the IPSR Register. - \return IPSR Register value - */ -__STATIC_FORCEINLINE uint32_t __get_IPSR(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, ipsr" : "=r" (result) ); - return(result); -} - - -/** - \brief Get APSR Register - \details Returns the content of the APSR Register. - \return APSR Register value - */ -__STATIC_FORCEINLINE uint32_t __get_APSR(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, apsr" : "=r" (result) ); - return(result); -} - - -/** - \brief Get xPSR Register - \details Returns the content of the xPSR Register. - \return xPSR Register value - */ -__STATIC_FORCEINLINE uint32_t __get_xPSR(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, xpsr" : "=r" (result) ); - return(result); -} - - -/** - \brief Get Process Stack Pointer - \details Returns the current value of the Process Stack Pointer (PSP). - \return PSP Register value - */ -__STATIC_FORCEINLINE uint32_t __get_PSP(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, psp" : "=r" (result) ); - return(result); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Get Process Stack Pointer (non-secure) - \details Returns the current value of the non-secure Process Stack Pointer (PSP) when in secure state. - \return PSP Register value - */ -__STATIC_FORCEINLINE uint32_t __TZ_get_PSP_NS(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, psp_ns" : "=r" (result) ); - return(result); -} -#endif - - -/** - \brief Set Process Stack Pointer - \details Assigns the given value to the Process Stack Pointer (PSP). - \param [in] topOfProcStack Process Stack Pointer value to set - */ -__STATIC_FORCEINLINE void __set_PSP(uint32_t topOfProcStack) -{ - __ASM volatile ("MSR psp, %0" : : "r" (topOfProcStack) : ); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Set Process Stack Pointer (non-secure) - \details Assigns the given value to the non-secure Process Stack Pointer (PSP) when in secure state. - \param [in] topOfProcStack Process Stack Pointer value to set - */ -__STATIC_FORCEINLINE void __TZ_set_PSP_NS(uint32_t topOfProcStack) -{ - __ASM volatile ("MSR psp_ns, %0" : : "r" (topOfProcStack) : ); -} -#endif - - -/** - \brief Get Main Stack Pointer - \details Returns the current value of the Main Stack Pointer (MSP). - \return MSP Register value - */ -__STATIC_FORCEINLINE uint32_t __get_MSP(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, msp" : "=r" (result) ); - return(result); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Get Main Stack Pointer (non-secure) - \details Returns the current value of the non-secure Main Stack Pointer (MSP) when in secure state. - \return MSP Register value - */ -__STATIC_FORCEINLINE uint32_t __TZ_get_MSP_NS(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, msp_ns" : "=r" (result) ); - return(result); -} -#endif - - -/** - \brief Set Main Stack Pointer - \details Assigns the given value to the Main Stack Pointer (MSP). - \param [in] topOfMainStack Main Stack Pointer value to set - */ -__STATIC_FORCEINLINE void __set_MSP(uint32_t topOfMainStack) -{ - __ASM volatile ("MSR msp, %0" : : "r" (topOfMainStack) : ); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Set Main Stack Pointer (non-secure) - \details Assigns the given value to the non-secure Main Stack Pointer (MSP) when in secure state. - \param [in] topOfMainStack Main Stack Pointer value to set - */ -__STATIC_FORCEINLINE void __TZ_set_MSP_NS(uint32_t topOfMainStack) -{ - __ASM volatile ("MSR msp_ns, %0" : : "r" (topOfMainStack) : ); -} -#endif - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Get Stack Pointer (non-secure) - \details Returns the current value of the non-secure Stack Pointer (SP) when in secure state. - \return SP Register value - */ -__STATIC_FORCEINLINE uint32_t __TZ_get_SP_NS(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, sp_ns" : "=r" (result) ); - return(result); -} - - -/** - \brief Set Stack Pointer (non-secure) - \details Assigns the given value to the non-secure Stack Pointer (SP) when in secure state. - \param [in] topOfStack Stack Pointer value to set - */ -__STATIC_FORCEINLINE void __TZ_set_SP_NS(uint32_t topOfStack) -{ - __ASM volatile ("MSR sp_ns, %0" : : "r" (topOfStack) : ); -} -#endif - - -/** - \brief Get Priority Mask - \details Returns the current state of the priority mask bit from the Priority Mask Register. - \return Priority Mask value - */ -__STATIC_FORCEINLINE uint32_t __get_PRIMASK(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, primask" : "=r" (result) ); - return(result); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Get Priority Mask (non-secure) - \details Returns the current state of the non-secure priority mask bit from the Priority Mask Register when in secure state. - \return Priority Mask value - */ -__STATIC_FORCEINLINE uint32_t __TZ_get_PRIMASK_NS(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, primask_ns" : "=r" (result) ); - return(result); -} -#endif - - -/** - \brief Set Priority Mask - \details Assigns the given value to the Priority Mask Register. - \param [in] priMask Priority Mask - */ -__STATIC_FORCEINLINE void __set_PRIMASK(uint32_t priMask) -{ - __ASM volatile ("MSR primask, %0" : : "r" (priMask) : "memory"); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Set Priority Mask (non-secure) - \details Assigns the given value to the non-secure Priority Mask Register when in secure state. - \param [in] priMask Priority Mask - */ -__STATIC_FORCEINLINE void __TZ_set_PRIMASK_NS(uint32_t priMask) -{ - __ASM volatile ("MSR primask_ns, %0" : : "r" (priMask) : "memory"); -} -#endif - - -#if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ - (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ - (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) -/** - \brief Enable FIQ - \details Enables FIQ interrupts by clearing the F-bit in the CPSR. - Can only be executed in Privileged modes. - */ -#define __enable_fault_irq __enable_fiq /* see arm_compat.h */ - - -/** - \brief Disable FIQ - \details Disables FIQ interrupts by setting the F-bit in the CPSR. - Can only be executed in Privileged modes. - */ -#define __disable_fault_irq __disable_fiq /* see arm_compat.h */ - - -/** - \brief Get Base Priority - \details Returns the current value of the Base Priority register. - \return Base Priority register value - */ -__STATIC_FORCEINLINE uint32_t __get_BASEPRI(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, basepri" : "=r" (result) ); - return(result); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Get Base Priority (non-secure) - \details Returns the current value of the non-secure Base Priority register when in secure state. - \return Base Priority register value - */ -__STATIC_FORCEINLINE uint32_t __TZ_get_BASEPRI_NS(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, basepri_ns" : "=r" (result) ); - return(result); -} -#endif - - -/** - \brief Set Base Priority - \details Assigns the given value to the Base Priority register. - \param [in] basePri Base Priority value to set - */ -__STATIC_FORCEINLINE void __set_BASEPRI(uint32_t basePri) -{ - __ASM volatile ("MSR basepri, %0" : : "r" (basePri) : "memory"); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Set Base Priority (non-secure) - \details Assigns the given value to the non-secure Base Priority register when in secure state. - \param [in] basePri Base Priority value to set - */ -__STATIC_FORCEINLINE void __TZ_set_BASEPRI_NS(uint32_t basePri) -{ - __ASM volatile ("MSR basepri_ns, %0" : : "r" (basePri) : "memory"); -} -#endif - - -/** - \brief Set Base Priority with condition - \details Assigns the given value to the Base Priority register only if BASEPRI masking is disabled, - or the new value increases the BASEPRI priority level. - \param [in] basePri Base Priority value to set - */ -__STATIC_FORCEINLINE void __set_BASEPRI_MAX(uint32_t basePri) -{ - __ASM volatile ("MSR basepri_max, %0" : : "r" (basePri) : "memory"); -} - - -/** - \brief Get Fault Mask - \details Returns the current value of the Fault Mask register. - \return Fault Mask register value - */ -__STATIC_FORCEINLINE uint32_t __get_FAULTMASK(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, faultmask" : "=r" (result) ); - return(result); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Get Fault Mask (non-secure) - \details Returns the current value of the non-secure Fault Mask register when in secure state. - \return Fault Mask register value - */ -__STATIC_FORCEINLINE uint32_t __TZ_get_FAULTMASK_NS(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, faultmask_ns" : "=r" (result) ); - return(result); -} -#endif - - -/** - \brief Set Fault Mask - \details Assigns the given value to the Fault Mask register. - \param [in] faultMask Fault Mask value to set - */ -__STATIC_FORCEINLINE void __set_FAULTMASK(uint32_t faultMask) -{ - __ASM volatile ("MSR faultmask, %0" : : "r" (faultMask) : "memory"); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Set Fault Mask (non-secure) - \details Assigns the given value to the non-secure Fault Mask register when in secure state. - \param [in] faultMask Fault Mask value to set - */ -__STATIC_FORCEINLINE void __TZ_set_FAULTMASK_NS(uint32_t faultMask) -{ - __ASM volatile ("MSR faultmask_ns, %0" : : "r" (faultMask) : "memory"); -} -#endif - -#endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ - (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ - (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) */ - - -#if ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ - (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) - -/** - \brief Get Process Stack Pointer Limit - Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure - Stack Pointer Limit register hence zero is returned always in non-secure - mode. - - \details Returns the current value of the Process Stack Pointer Limit (PSPLIM). - \return PSPLIM Register value - */ -__STATIC_FORCEINLINE uint32_t __get_PSPLIM(void) -{ -#if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ - (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) - // without main extensions, the non-secure PSPLIM is RAZ/WI - return 0U; -#else - uint32_t result; - __ASM volatile ("MRS %0, psplim" : "=r" (result) ); - return result; -#endif -} - -#if (defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Get Process Stack Pointer Limit (non-secure) - Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure - Stack Pointer Limit register hence zero is returned always in non-secure - mode. - - \details Returns the current value of the non-secure Process Stack Pointer Limit (PSPLIM) when in secure state. - \return PSPLIM Register value - */ -__STATIC_FORCEINLINE uint32_t __TZ_get_PSPLIM_NS(void) -{ -#if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) - // without main extensions, the non-secure PSPLIM is RAZ/WI - return 0U; -#else - uint32_t result; - __ASM volatile ("MRS %0, psplim_ns" : "=r" (result) ); - return result; -#endif -} -#endif - - -/** - \brief Set Process Stack Pointer Limit - Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure - Stack Pointer Limit register hence the write is silently ignored in non-secure - mode. - - \details Assigns the given value to the Process Stack Pointer Limit (PSPLIM). - \param [in] ProcStackPtrLimit Process Stack Pointer Limit value to set - */ -__STATIC_FORCEINLINE void __set_PSPLIM(uint32_t ProcStackPtrLimit) -{ -#if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ - (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) - // without main extensions, the non-secure PSPLIM is RAZ/WI - (void)ProcStackPtrLimit; -#else - __ASM volatile ("MSR psplim, %0" : : "r" (ProcStackPtrLimit)); -#endif -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Set Process Stack Pointer (non-secure) - Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure - Stack Pointer Limit register hence the write is silently ignored in non-secure - mode. - - \details Assigns the given value to the non-secure Process Stack Pointer Limit (PSPLIM) when in secure state. - \param [in] ProcStackPtrLimit Process Stack Pointer Limit value to set - */ -__STATIC_FORCEINLINE void __TZ_set_PSPLIM_NS(uint32_t ProcStackPtrLimit) -{ -#if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) - // without main extensions, the non-secure PSPLIM is RAZ/WI - (void)ProcStackPtrLimit; -#else - __ASM volatile ("MSR psplim_ns, %0\n" : : "r" (ProcStackPtrLimit)); -#endif -} -#endif - - -/** - \brief Get Main Stack Pointer Limit - Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure - Stack Pointer Limit register hence zero is returned always. - - \details Returns the current value of the Main Stack Pointer Limit (MSPLIM). - \return MSPLIM Register value - */ -__STATIC_FORCEINLINE uint32_t __get_MSPLIM(void) -{ -#if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ - (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) - // without main extensions, the non-secure MSPLIM is RAZ/WI - return 0U; -#else - uint32_t result; - __ASM volatile ("MRS %0, msplim" : "=r" (result) ); - return result; -#endif -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Get Main Stack Pointer Limit (non-secure) - Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure - Stack Pointer Limit register hence zero is returned always. - - \details Returns the current value of the non-secure Main Stack Pointer Limit(MSPLIM) when in secure state. - \return MSPLIM Register value - */ -__STATIC_FORCEINLINE uint32_t __TZ_get_MSPLIM_NS(void) -{ -#if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) - // without main extensions, the non-secure MSPLIM is RAZ/WI - return 0U; -#else - uint32_t result; - __ASM volatile ("MRS %0, msplim_ns" : "=r" (result) ); - return result; -#endif -} -#endif - - -/** - \brief Set Main Stack Pointer Limit - Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure - Stack Pointer Limit register hence the write is silently ignored. - - \details Assigns the given value to the Main Stack Pointer Limit (MSPLIM). - \param [in] MainStackPtrLimit Main Stack Pointer Limit value to set - */ -__STATIC_FORCEINLINE void __set_MSPLIM(uint32_t MainStackPtrLimit) -{ -#if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ - (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) - // without main extensions, the non-secure MSPLIM is RAZ/WI - (void)MainStackPtrLimit; -#else - __ASM volatile ("MSR msplim, %0" : : "r" (MainStackPtrLimit)); -#endif -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Set Main Stack Pointer Limit (non-secure) - Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure - Stack Pointer Limit register hence the write is silently ignored. - - \details Assigns the given value to the non-secure Main Stack Pointer Limit (MSPLIM) when in secure state. - \param [in] MainStackPtrLimit Main Stack Pointer value to set - */ -__STATIC_FORCEINLINE void __TZ_set_MSPLIM_NS(uint32_t MainStackPtrLimit) -{ -#if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) - // without main extensions, the non-secure MSPLIM is RAZ/WI - (void)MainStackPtrLimit; -#else - __ASM volatile ("MSR msplim_ns, %0" : : "r" (MainStackPtrLimit)); -#endif -} -#endif - -#endif /* ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ - (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) */ - -/** - \brief Get FPSCR - \details Returns the current value of the Floating Point Status/Control register. - \return Floating Point Status/Control register value - */ -#if ((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \ - (defined (__FPU_USED ) && (__FPU_USED == 1U)) ) -#define __get_FPSCR (uint32_t)__builtin_arm_get_fpscr -#else -#define __get_FPSCR() ((uint32_t)0U) -#endif - -/** - \brief Set FPSCR - \details Assigns the given value to the Floating Point Status/Control register. - \param [in] fpscr Floating Point Status/Control value to set - */ -#if ((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \ - (defined (__FPU_USED ) && (__FPU_USED == 1U)) ) -#define __set_FPSCR __builtin_arm_set_fpscr -#else -#define __set_FPSCR(x) ((void)(x)) -#endif - - -/*@} end of CMSIS_Core_RegAccFunctions */ - - -/* ########################## Core Instruction Access ######################### */ -/** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface - Access to dedicated instructions - @{ -*/ - -/* Define macros for porting to both thumb1 and thumb2. - * For thumb1, use low register (r0-r7), specified by constraint "l" - * Otherwise, use general registers, specified by constraint "r" */ -#if defined (__thumb__) && !defined (__thumb2__) -#define __CMSIS_GCC_OUT_REG(r) "=l" (r) -#define __CMSIS_GCC_RW_REG(r) "+l" (r) -#define __CMSIS_GCC_USE_REG(r) "l" (r) -#else -#define __CMSIS_GCC_OUT_REG(r) "=r" (r) -#define __CMSIS_GCC_RW_REG(r) "+r" (r) -#define __CMSIS_GCC_USE_REG(r) "r" (r) -#endif - -/** - \brief No Operation - \details No Operation does nothing. This instruction can be used for code alignment purposes. - */ -#define __NOP __builtin_arm_nop - -/** - \brief Wait For Interrupt - \details Wait For Interrupt is a hint instruction that suspends execution until one of a number of events occurs. - */ -#define __WFI __builtin_arm_wfi - - -/** - \brief Wait For Event - \details Wait For Event is a hint instruction that permits the processor to enter - a low-power state until one of a number of events occurs. - */ -#define __WFE __builtin_arm_wfe - - -/** - \brief Send Event - \details Send Event is a hint instruction. It causes an event to be signaled to the CPU. - */ -#define __SEV __builtin_arm_sev - - -/** - \brief Instruction Synchronization Barrier - \details Instruction Synchronization Barrier flushes the pipeline in the processor, - so that all instructions following the ISB are fetched from cache or memory, - after the instruction has been completed. - */ -#define __ISB() __builtin_arm_isb(0xF) - -/** - \brief Data Synchronization Barrier - \details Acts as a special kind of Data Memory Barrier. - It completes when all explicit memory accesses before this instruction complete. - */ -#define __DSB() __builtin_arm_dsb(0xF) - - -/** - \brief Data Memory Barrier - \details Ensures the apparent order of the explicit memory operations before - and after the instruction, without ensuring their completion. - */ -#define __DMB() __builtin_arm_dmb(0xF) - - -/** - \brief Reverse byte order (32 bit) - \details Reverses the byte order in unsigned integer value. For example, 0x12345678 becomes 0x78563412. - \param [in] value Value to reverse - \return Reversed value - */ -#define __REV(value) __builtin_bswap32(value) - - -/** - \brief Reverse byte order (16 bit) - \details Reverses the byte order within each halfword of a word. For example, 0x12345678 becomes 0x34127856. - \param [in] value Value to reverse - \return Reversed value - */ -#define __REV16(value) __ROR(__REV(value), 16) - - -/** - \brief Reverse byte order (16 bit) - \details Reverses the byte order in a 16-bit value and returns the signed 16-bit result. For example, 0x0080 becomes 0x8000. - \param [in] value Value to reverse - \return Reversed value - */ -#define __REVSH(value) (int16_t)__builtin_bswap16(value) - - -/** - \brief Rotate Right in unsigned value (32 bit) - \details Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits. - \param [in] op1 Value to rotate - \param [in] op2 Number of Bits to rotate - \return Rotated value - */ -__STATIC_FORCEINLINE uint32_t __ROR(uint32_t op1, uint32_t op2) -{ - op2 %= 32U; - if (op2 == 0U) - { - return op1; - } - return (op1 >> op2) | (op1 << (32U - op2)); -} - - -/** - \brief Breakpoint - \details Causes the processor to enter Debug state. - Debug tools can use this to investigate system state when the instruction at a particular address is reached. - \param [in] value is ignored by the processor. - If required, a debugger can use it to store additional information about the breakpoint. - */ -#define __BKPT(value) __ASM volatile ("bkpt "#value) - - -/** - \brief Reverse bit order of value - \details Reverses the bit order of the given value. - \param [in] value Value to reverse - \return Reversed value - */ -#define __RBIT __builtin_arm_rbit - -/** - \brief Count leading zeros - \details Counts the number of leading zeros of a data value. - \param [in] value Value to count the leading zeros - \return number of leading zeros in value - */ -__STATIC_FORCEINLINE uint8_t __CLZ(uint32_t value) -{ - /* Even though __builtin_clz produces a CLZ instruction on ARM, formally - __builtin_clz(0) is undefined behaviour, so handle this case specially. - This guarantees ARM-compatible results if happening to compile on a non-ARM - target, and ensures the compiler doesn't decide to activate any - optimisations using the logic "value was passed to __builtin_clz, so it - is non-zero". - ARM Compiler 6.10 and possibly earlier will optimise this test away, leaving a - single CLZ instruction. - */ - if (value == 0U) - { - return 32U; - } - return __builtin_clz(value); -} - - -#if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ - (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ - (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ - (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) -/** - \brief LDR Exclusive (8 bit) - \details Executes a exclusive LDR instruction for 8 bit value. - \param [in] ptr Pointer to data - \return value of type uint8_t at (*ptr) - */ -#define __LDREXB (uint8_t)__builtin_arm_ldrex - - -/** - \brief LDR Exclusive (16 bit) - \details Executes a exclusive LDR instruction for 16 bit values. - \param [in] ptr Pointer to data - \return value of type uint16_t at (*ptr) - */ -#define __LDREXH (uint16_t)__builtin_arm_ldrex - - -/** - \brief LDR Exclusive (32 bit) - \details Executes a exclusive LDR instruction for 32 bit values. - \param [in] ptr Pointer to data - \return value of type uint32_t at (*ptr) - */ -#define __LDREXW (uint32_t)__builtin_arm_ldrex - - -/** - \brief STR Exclusive (8 bit) - \details Executes a exclusive STR instruction for 8 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -#define __STREXB (uint32_t)__builtin_arm_strex - - -/** - \brief STR Exclusive (16 bit) - \details Executes a exclusive STR instruction for 16 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -#define __STREXH (uint32_t)__builtin_arm_strex - - -/** - \brief STR Exclusive (32 bit) - \details Executes a exclusive STR instruction for 32 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -#define __STREXW (uint32_t)__builtin_arm_strex - - -/** - \brief Remove the exclusive lock - \details Removes the exclusive lock which is created by LDREX. - */ -#define __CLREX __builtin_arm_clrex - -#endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ - (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ - (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ - (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) */ - - -#if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ - (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ - (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) - -/** - \brief Signed Saturate - \details Saturates a signed value. - \param [in] value Value to be saturated - \param [in] sat Bit position to saturate to (1..32) - \return Saturated value - */ -#define __SSAT __builtin_arm_ssat - - -/** - \brief Unsigned Saturate - \details Saturates an unsigned value. - \param [in] value Value to be saturated - \param [in] sat Bit position to saturate to (0..31) - \return Saturated value - */ -#define __USAT __builtin_arm_usat - - -/** - \brief Rotate Right with Extend (32 bit) - \details Moves each bit of a bitstring right by one bit. - The carry input is shifted in at the left end of the bitstring. - \param [in] value Value to rotate - \return Rotated value - */ -__STATIC_FORCEINLINE uint32_t __RRX(uint32_t value) -{ - uint32_t result; - - __ASM volatile ("rrx %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); - return(result); -} - - -/** - \brief LDRT Unprivileged (8 bit) - \details Executes a Unprivileged LDRT instruction for 8 bit value. - \param [in] ptr Pointer to data - \return value of type uint8_t at (*ptr) - */ -__STATIC_FORCEINLINE uint8_t __LDRBT(volatile uint8_t *ptr) -{ - uint32_t result; - - __ASM volatile ("ldrbt %0, %1" : "=r" (result) : "Q" (*ptr) ); - return ((uint8_t) result); /* Add explicit type cast here */ -} - - -/** - \brief LDRT Unprivileged (16 bit) - \details Executes a Unprivileged LDRT instruction for 16 bit values. - \param [in] ptr Pointer to data - \return value of type uint16_t at (*ptr) - */ -__STATIC_FORCEINLINE uint16_t __LDRHT(volatile uint16_t *ptr) -{ - uint32_t result; - - __ASM volatile ("ldrht %0, %1" : "=r" (result) : "Q" (*ptr) ); - return ((uint16_t) result); /* Add explicit type cast here */ -} - - -/** - \brief LDRT Unprivileged (32 bit) - \details Executes a Unprivileged LDRT instruction for 32 bit values. - \param [in] ptr Pointer to data - \return value of type uint32_t at (*ptr) - */ -__STATIC_FORCEINLINE uint32_t __LDRT(volatile uint32_t *ptr) -{ - uint32_t result; - - __ASM volatile ("ldrt %0, %1" : "=r" (result) : "Q" (*ptr) ); - return(result); -} - - -/** - \brief STRT Unprivileged (8 bit) - \details Executes a Unprivileged STRT instruction for 8 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - */ -__STATIC_FORCEINLINE void __STRBT(uint8_t value, volatile uint8_t *ptr) -{ - __ASM volatile ("strbt %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); -} - - -/** - \brief STRT Unprivileged (16 bit) - \details Executes a Unprivileged STRT instruction for 16 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - */ -__STATIC_FORCEINLINE void __STRHT(uint16_t value, volatile uint16_t *ptr) -{ - __ASM volatile ("strht %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); -} - - -/** - \brief STRT Unprivileged (32 bit) - \details Executes a Unprivileged STRT instruction for 32 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - */ -__STATIC_FORCEINLINE void __STRT(uint32_t value, volatile uint32_t *ptr) -{ - __ASM volatile ("strt %1, %0" : "=Q" (*ptr) : "r" (value) ); -} - -#else /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ - (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ - (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) */ - -/** - \brief Signed Saturate - \details Saturates a signed value. - \param [in] value Value to be saturated - \param [in] sat Bit position to saturate to (1..32) - \return Saturated value - */ -__STATIC_FORCEINLINE int32_t __SSAT(int32_t val, uint32_t sat) -{ - if ((sat >= 1U) && (sat <= 32U)) - { - const int32_t max = (int32_t)((1U << (sat - 1U)) - 1U); - const int32_t min = -1 - max ; - if (val > max) - { - return max; - } - else if (val < min) - { - return min; - } - } - return val; -} - -/** - \brief Unsigned Saturate - \details Saturates an unsigned value. - \param [in] value Value to be saturated - \param [in] sat Bit position to saturate to (0..31) - \return Saturated value - */ -__STATIC_FORCEINLINE uint32_t __USAT(int32_t val, uint32_t sat) -{ - if (sat <= 31U) - { - const uint32_t max = ((1U << sat) - 1U); - if (val > (int32_t)max) - { - return max; - } - else if (val < 0) - { - return 0U; - } - } - return (uint32_t)val; -} - -#endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ - (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ - (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) */ - - -#if ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ - (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) -/** - \brief Load-Acquire (8 bit) - \details Executes a LDAB instruction for 8 bit value. - \param [in] ptr Pointer to data - \return value of type uint8_t at (*ptr) - */ -__STATIC_FORCEINLINE uint8_t __LDAB(volatile uint8_t *ptr) -{ - uint32_t result; - - __ASM volatile ("ldab %0, %1" : "=r" (result) : "Q" (*ptr) ); - return ((uint8_t) result); -} - - -/** - \brief Load-Acquire (16 bit) - \details Executes a LDAH instruction for 16 bit values. - \param [in] ptr Pointer to data - \return value of type uint16_t at (*ptr) - */ -__STATIC_FORCEINLINE uint16_t __LDAH(volatile uint16_t *ptr) -{ - uint32_t result; - - __ASM volatile ("ldah %0, %1" : "=r" (result) : "Q" (*ptr) ); - return ((uint16_t) result); -} - - -/** - \brief Load-Acquire (32 bit) - \details Executes a LDA instruction for 32 bit values. - \param [in] ptr Pointer to data - \return value of type uint32_t at (*ptr) - */ -__STATIC_FORCEINLINE uint32_t __LDA(volatile uint32_t *ptr) -{ - uint32_t result; - - __ASM volatile ("lda %0, %1" : "=r" (result) : "Q" (*ptr) ); - return(result); -} - - -/** - \brief Store-Release (8 bit) - \details Executes a STLB instruction for 8 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - */ -__STATIC_FORCEINLINE void __STLB(uint8_t value, volatile uint8_t *ptr) -{ - __ASM volatile ("stlb %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); -} - - -/** - \brief Store-Release (16 bit) - \details Executes a STLH instruction for 16 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - */ -__STATIC_FORCEINLINE void __STLH(uint16_t value, volatile uint16_t *ptr) -{ - __ASM volatile ("stlh %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); -} - - -/** - \brief Store-Release (32 bit) - \details Executes a STL instruction for 32 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - */ -__STATIC_FORCEINLINE void __STL(uint32_t value, volatile uint32_t *ptr) -{ - __ASM volatile ("stl %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); -} - - -/** - \brief Load-Acquire Exclusive (8 bit) - \details Executes a LDAB exclusive instruction for 8 bit value. - \param [in] ptr Pointer to data - \return value of type uint8_t at (*ptr) - */ -#define __LDAEXB (uint8_t)__builtin_arm_ldaex - - -/** - \brief Load-Acquire Exclusive (16 bit) - \details Executes a LDAH exclusive instruction for 16 bit values. - \param [in] ptr Pointer to data - \return value of type uint16_t at (*ptr) - */ -#define __LDAEXH (uint16_t)__builtin_arm_ldaex - - -/** - \brief Load-Acquire Exclusive (32 bit) - \details Executes a LDA exclusive instruction for 32 bit values. - \param [in] ptr Pointer to data - \return value of type uint32_t at (*ptr) - */ -#define __LDAEX (uint32_t)__builtin_arm_ldaex - - -/** - \brief Store-Release Exclusive (8 bit) - \details Executes a STLB exclusive instruction for 8 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -#define __STLEXB (uint32_t)__builtin_arm_stlex - - -/** - \brief Store-Release Exclusive (16 bit) - \details Executes a STLH exclusive instruction for 16 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -#define __STLEXH (uint32_t)__builtin_arm_stlex - - -/** - \brief Store-Release Exclusive (32 bit) - \details Executes a STL exclusive instruction for 32 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -#define __STLEX (uint32_t)__builtin_arm_stlex - -#endif /* ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ - (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) */ - -/*@}*/ /* end of group CMSIS_Core_InstructionInterface */ - - -/* ################### Compiler specific Intrinsics ########################### */ -/** \defgroup CMSIS_SIMD_intrinsics CMSIS SIMD Intrinsics - Access to dedicated SIMD instructions - @{ -*/ - -#if (defined (__ARM_FEATURE_DSP) && (__ARM_FEATURE_DSP == 1)) - -#define __SADD8 __builtin_arm_sadd8 -#define __QADD8 __builtin_arm_qadd8 -#define __SHADD8 __builtin_arm_shadd8 -#define __UADD8 __builtin_arm_uadd8 -#define __UQADD8 __builtin_arm_uqadd8 -#define __UHADD8 __builtin_arm_uhadd8 -#define __SSUB8 __builtin_arm_ssub8 -#define __QSUB8 __builtin_arm_qsub8 -#define __SHSUB8 __builtin_arm_shsub8 -#define __USUB8 __builtin_arm_usub8 -#define __UQSUB8 __builtin_arm_uqsub8 -#define __UHSUB8 __builtin_arm_uhsub8 -#define __SADD16 __builtin_arm_sadd16 -#define __QADD16 __builtin_arm_qadd16 -#define __SHADD16 __builtin_arm_shadd16 -#define __UADD16 __builtin_arm_uadd16 -#define __UQADD16 __builtin_arm_uqadd16 -#define __UHADD16 __builtin_arm_uhadd16 -#define __SSUB16 __builtin_arm_ssub16 -#define __QSUB16 __builtin_arm_qsub16 -#define __SHSUB16 __builtin_arm_shsub16 -#define __USUB16 __builtin_arm_usub16 -#define __UQSUB16 __builtin_arm_uqsub16 -#define __UHSUB16 __builtin_arm_uhsub16 -#define __SASX __builtin_arm_sasx -#define __QASX __builtin_arm_qasx -#define __SHASX __builtin_arm_shasx -#define __UASX __builtin_arm_uasx -#define __UQASX __builtin_arm_uqasx -#define __UHASX __builtin_arm_uhasx -#define __SSAX __builtin_arm_ssax -#define __QSAX __builtin_arm_qsax -#define __SHSAX __builtin_arm_shsax -#define __USAX __builtin_arm_usax -#define __UQSAX __builtin_arm_uqsax -#define __UHSAX __builtin_arm_uhsax -#define __USAD8 __builtin_arm_usad8 -#define __USADA8 __builtin_arm_usada8 -#define __SSAT16 __builtin_arm_ssat16 -#define __USAT16 __builtin_arm_usat16 -#define __UXTB16 __builtin_arm_uxtb16 -#define __UXTAB16 __builtin_arm_uxtab16 -#define __SXTB16 __builtin_arm_sxtb16 -#define __SXTAB16 __builtin_arm_sxtab16 -#define __SMUAD __builtin_arm_smuad -#define __SMUADX __builtin_arm_smuadx -#define __SMLAD __builtin_arm_smlad -#define __SMLADX __builtin_arm_smladx -#define __SMLALD __builtin_arm_smlald -#define __SMLALDX __builtin_arm_smlaldx -#define __SMUSD __builtin_arm_smusd -#define __SMUSDX __builtin_arm_smusdx -#define __SMLSD __builtin_arm_smlsd -#define __SMLSDX __builtin_arm_smlsdx -#define __SMLSLD __builtin_arm_smlsld -#define __SMLSLDX __builtin_arm_smlsldx -#define __SEL __builtin_arm_sel -#define __QADD __builtin_arm_qadd -#define __QSUB __builtin_arm_qsub - -#define __PKHBT(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0x0000FFFFUL) | \ - ((((uint32_t)(ARG2)) << (ARG3)) & 0xFFFF0000UL) ) - -#define __PKHTB(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0xFFFF0000UL) | \ - ((((uint32_t)(ARG2)) >> (ARG3)) & 0x0000FFFFUL) ) - -__STATIC_FORCEINLINE int32_t __SMMLA (int32_t op1, int32_t op2, int32_t op3) -{ - int32_t result; - - __ASM volatile ("smmla %0, %1, %2, %3" : "=r" (result): "r" (op1), "r" (op2), "r" (op3) ); - return(result); -} - -#endif /* (__ARM_FEATURE_DSP == 1) */ -/*@} end of group CMSIS_SIMD_intrinsics */ - - -#endif /* __CMSIS_ARMCLANG_H */ diff --git a/Drivers/CMSIS/Include/cmsis_armclang_ltm.h b/Drivers/CMSIS/Include/cmsis_armclang_ltm.h deleted file mode 100644 index feec324..0000000 --- a/Drivers/CMSIS/Include/cmsis_armclang_ltm.h +++ /dev/null @@ -1,1891 +0,0 @@ -/**************************************************************************//** - * @file cmsis_armclang_ltm.h - * @brief CMSIS compiler armclang (Arm Compiler 6) header file - * @version V1.2.0 - * @date 08. May 2019 - ******************************************************************************/ -/* - * Copyright (c) 2018-2019 Arm Limited. All rights reserved. - * - * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the License); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/*lint -esym(9058, IRQn)*/ /* disable MISRA 2012 Rule 2.4 for IRQn */ - -#ifndef __CMSIS_ARMCLANG_H -#define __CMSIS_ARMCLANG_H - -#pragma clang system_header /* treat file as system include file */ - -#ifndef __ARM_COMPAT_H -#include /* Compatibility header for Arm Compiler 5 intrinsics */ -#endif - -/* CMSIS compiler specific defines */ -#ifndef __ASM - #define __ASM __asm -#endif -#ifndef __INLINE - #define __INLINE __inline -#endif -#ifndef __STATIC_INLINE - #define __STATIC_INLINE static __inline -#endif -#ifndef __STATIC_FORCEINLINE - #define __STATIC_FORCEINLINE __attribute__((always_inline)) static __inline -#endif -#ifndef __NO_RETURN - #define __NO_RETURN __attribute__((__noreturn__)) -#endif -#ifndef __USED - #define __USED __attribute__((used)) -#endif -#ifndef __WEAK - #define __WEAK __attribute__((weak)) -#endif -#ifndef __PACKED - #define __PACKED __attribute__((packed, aligned(1))) -#endif -#ifndef __PACKED_STRUCT - #define __PACKED_STRUCT struct __attribute__((packed, aligned(1))) -#endif -#ifndef __PACKED_UNION - #define __PACKED_UNION union __attribute__((packed, aligned(1))) -#endif -#ifndef __UNALIGNED_UINT32 /* deprecated */ - #pragma clang diagnostic push - #pragma clang diagnostic ignored "-Wpacked" -/*lint -esym(9058, T_UINT32)*/ /* disable MISRA 2012 Rule 2.4 for T_UINT32 */ - struct __attribute__((packed)) T_UINT32 { uint32_t v; }; - #pragma clang diagnostic pop - #define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v) -#endif -#ifndef __UNALIGNED_UINT16_WRITE - #pragma clang diagnostic push - #pragma clang diagnostic ignored "-Wpacked" -/*lint -esym(9058, T_UINT16_WRITE)*/ /* disable MISRA 2012 Rule 2.4 for T_UINT16_WRITE */ - __PACKED_STRUCT T_UINT16_WRITE { uint16_t v; }; - #pragma clang diagnostic pop - #define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))->v) = (val)) -#endif -#ifndef __UNALIGNED_UINT16_READ - #pragma clang diagnostic push - #pragma clang diagnostic ignored "-Wpacked" -/*lint -esym(9058, T_UINT16_READ)*/ /* disable MISRA 2012 Rule 2.4 for T_UINT16_READ */ - __PACKED_STRUCT T_UINT16_READ { uint16_t v; }; - #pragma clang diagnostic pop - #define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr))->v) -#endif -#ifndef __UNALIGNED_UINT32_WRITE - #pragma clang diagnostic push - #pragma clang diagnostic ignored "-Wpacked" -/*lint -esym(9058, T_UINT32_WRITE)*/ /* disable MISRA 2012 Rule 2.4 for T_UINT32_WRITE */ - __PACKED_STRUCT T_UINT32_WRITE { uint32_t v; }; - #pragma clang diagnostic pop - #define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->v) = (val)) -#endif -#ifndef __UNALIGNED_UINT32_READ - #pragma clang diagnostic push - #pragma clang diagnostic ignored "-Wpacked" -/*lint -esym(9058, T_UINT32_READ)*/ /* disable MISRA 2012 Rule 2.4 for T_UINT32_READ */ - __PACKED_STRUCT T_UINT32_READ { uint32_t v; }; - #pragma clang diagnostic pop - #define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr))->v) -#endif -#ifndef __ALIGNED - #define __ALIGNED(x) __attribute__((aligned(x))) -#endif -#ifndef __RESTRICT - #define __RESTRICT __restrict -#endif -#ifndef __COMPILER_BARRIER - #define __COMPILER_BARRIER() __ASM volatile("":::"memory") -#endif - -/* ######################### Startup and Lowlevel Init ######################## */ - -#ifndef __PROGRAM_START -#define __PROGRAM_START __main -#endif - -#ifndef __INITIAL_SP -#define __INITIAL_SP Image$$ARM_LIB_STACK$$ZI$$Limit -#endif - -#ifndef __STACK_LIMIT -#define __STACK_LIMIT Image$$ARM_LIB_STACK$$ZI$$Base -#endif - -#ifndef __VECTOR_TABLE -#define __VECTOR_TABLE __Vectors -#endif - -#ifndef __VECTOR_TABLE_ATTRIBUTE -#define __VECTOR_TABLE_ATTRIBUTE __attribute((used, section("RESET"))) -#endif - - -/* ########################### Core Function Access ########################### */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_RegAccFunctions CMSIS Core Register Access Functions - @{ - */ - -/** - \brief Enable IRQ Interrupts - \details Enables IRQ interrupts by clearing the I-bit in the CPSR. - Can only be executed in Privileged modes. - */ -/* intrinsic void __enable_irq(); see arm_compat.h */ - - -/** - \brief Disable IRQ Interrupts - \details Disables IRQ interrupts by setting the I-bit in the CPSR. - Can only be executed in Privileged modes. - */ -/* intrinsic void __disable_irq(); see arm_compat.h */ - - -/** - \brief Get Control Register - \details Returns the content of the Control Register. - \return Control Register value - */ -__STATIC_FORCEINLINE uint32_t __get_CONTROL(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, control" : "=r" (result) ); - return(result); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Get Control Register (non-secure) - \details Returns the content of the non-secure Control Register when in secure mode. - \return non-secure Control Register value - */ -__STATIC_FORCEINLINE uint32_t __TZ_get_CONTROL_NS(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, control_ns" : "=r" (result) ); - return(result); -} -#endif - - -/** - \brief Set Control Register - \details Writes the given value to the Control Register. - \param [in] control Control Register value to set - */ -__STATIC_FORCEINLINE void __set_CONTROL(uint32_t control) -{ - __ASM volatile ("MSR control, %0" : : "r" (control) : "memory"); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Set Control Register (non-secure) - \details Writes the given value to the non-secure Control Register when in secure state. - \param [in] control Control Register value to set - */ -__STATIC_FORCEINLINE void __TZ_set_CONTROL_NS(uint32_t control) -{ - __ASM volatile ("MSR control_ns, %0" : : "r" (control) : "memory"); -} -#endif - - -/** - \brief Get IPSR Register - \details Returns the content of the IPSR Register. - \return IPSR Register value - */ -__STATIC_FORCEINLINE uint32_t __get_IPSR(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, ipsr" : "=r" (result) ); - return(result); -} - - -/** - \brief Get APSR Register - \details Returns the content of the APSR Register. - \return APSR Register value - */ -__STATIC_FORCEINLINE uint32_t __get_APSR(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, apsr" : "=r" (result) ); - return(result); -} - - -/** - \brief Get xPSR Register - \details Returns the content of the xPSR Register. - \return xPSR Register value - */ -__STATIC_FORCEINLINE uint32_t __get_xPSR(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, xpsr" : "=r" (result) ); - return(result); -} - - -/** - \brief Get Process Stack Pointer - \details Returns the current value of the Process Stack Pointer (PSP). - \return PSP Register value - */ -__STATIC_FORCEINLINE uint32_t __get_PSP(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, psp" : "=r" (result) ); - return(result); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Get Process Stack Pointer (non-secure) - \details Returns the current value of the non-secure Process Stack Pointer (PSP) when in secure state. - \return PSP Register value - */ -__STATIC_FORCEINLINE uint32_t __TZ_get_PSP_NS(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, psp_ns" : "=r" (result) ); - return(result); -} -#endif - - -/** - \brief Set Process Stack Pointer - \details Assigns the given value to the Process Stack Pointer (PSP). - \param [in] topOfProcStack Process Stack Pointer value to set - */ -__STATIC_FORCEINLINE void __set_PSP(uint32_t topOfProcStack) -{ - __ASM volatile ("MSR psp, %0" : : "r" (topOfProcStack) : ); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Set Process Stack Pointer (non-secure) - \details Assigns the given value to the non-secure Process Stack Pointer (PSP) when in secure state. - \param [in] topOfProcStack Process Stack Pointer value to set - */ -__STATIC_FORCEINLINE void __TZ_set_PSP_NS(uint32_t topOfProcStack) -{ - __ASM volatile ("MSR psp_ns, %0" : : "r" (topOfProcStack) : ); -} -#endif - - -/** - \brief Get Main Stack Pointer - \details Returns the current value of the Main Stack Pointer (MSP). - \return MSP Register value - */ -__STATIC_FORCEINLINE uint32_t __get_MSP(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, msp" : "=r" (result) ); - return(result); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Get Main Stack Pointer (non-secure) - \details Returns the current value of the non-secure Main Stack Pointer (MSP) when in secure state. - \return MSP Register value - */ -__STATIC_FORCEINLINE uint32_t __TZ_get_MSP_NS(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, msp_ns" : "=r" (result) ); - return(result); -} -#endif - - -/** - \brief Set Main Stack Pointer - \details Assigns the given value to the Main Stack Pointer (MSP). - \param [in] topOfMainStack Main Stack Pointer value to set - */ -__STATIC_FORCEINLINE void __set_MSP(uint32_t topOfMainStack) -{ - __ASM volatile ("MSR msp, %0" : : "r" (topOfMainStack) : ); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Set Main Stack Pointer (non-secure) - \details Assigns the given value to the non-secure Main Stack Pointer (MSP) when in secure state. - \param [in] topOfMainStack Main Stack Pointer value to set - */ -__STATIC_FORCEINLINE void __TZ_set_MSP_NS(uint32_t topOfMainStack) -{ - __ASM volatile ("MSR msp_ns, %0" : : "r" (topOfMainStack) : ); -} -#endif - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Get Stack Pointer (non-secure) - \details Returns the current value of the non-secure Stack Pointer (SP) when in secure state. - \return SP Register value - */ -__STATIC_FORCEINLINE uint32_t __TZ_get_SP_NS(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, sp_ns" : "=r" (result) ); - return(result); -} - - -/** - \brief Set Stack Pointer (non-secure) - \details Assigns the given value to the non-secure Stack Pointer (SP) when in secure state. - \param [in] topOfStack Stack Pointer value to set - */ -__STATIC_FORCEINLINE void __TZ_set_SP_NS(uint32_t topOfStack) -{ - __ASM volatile ("MSR sp_ns, %0" : : "r" (topOfStack) : ); -} -#endif - - -/** - \brief Get Priority Mask - \details Returns the current state of the priority mask bit from the Priority Mask Register. - \return Priority Mask value - */ -__STATIC_FORCEINLINE uint32_t __get_PRIMASK(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, primask" : "=r" (result) ); - return(result); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Get Priority Mask (non-secure) - \details Returns the current state of the non-secure priority mask bit from the Priority Mask Register when in secure state. - \return Priority Mask value - */ -__STATIC_FORCEINLINE uint32_t __TZ_get_PRIMASK_NS(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, primask_ns" : "=r" (result) ); - return(result); -} -#endif - - -/** - \brief Set Priority Mask - \details Assigns the given value to the Priority Mask Register. - \param [in] priMask Priority Mask - */ -__STATIC_FORCEINLINE void __set_PRIMASK(uint32_t priMask) -{ - __ASM volatile ("MSR primask, %0" : : "r" (priMask) : "memory"); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Set Priority Mask (non-secure) - \details Assigns the given value to the non-secure Priority Mask Register when in secure state. - \param [in] priMask Priority Mask - */ -__STATIC_FORCEINLINE void __TZ_set_PRIMASK_NS(uint32_t priMask) -{ - __ASM volatile ("MSR primask_ns, %0" : : "r" (priMask) : "memory"); -} -#endif - - -#if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ - (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ - (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) -/** - \brief Enable FIQ - \details Enables FIQ interrupts by clearing the F-bit in the CPSR. - Can only be executed in Privileged modes. - */ -#define __enable_fault_irq __enable_fiq /* see arm_compat.h */ - - -/** - \brief Disable FIQ - \details Disables FIQ interrupts by setting the F-bit in the CPSR. - Can only be executed in Privileged modes. - */ -#define __disable_fault_irq __disable_fiq /* see arm_compat.h */ - - -/** - \brief Get Base Priority - \details Returns the current value of the Base Priority register. - \return Base Priority register value - */ -__STATIC_FORCEINLINE uint32_t __get_BASEPRI(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, basepri" : "=r" (result) ); - return(result); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Get Base Priority (non-secure) - \details Returns the current value of the non-secure Base Priority register when in secure state. - \return Base Priority register value - */ -__STATIC_FORCEINLINE uint32_t __TZ_get_BASEPRI_NS(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, basepri_ns" : "=r" (result) ); - return(result); -} -#endif - - -/** - \brief Set Base Priority - \details Assigns the given value to the Base Priority register. - \param [in] basePri Base Priority value to set - */ -__STATIC_FORCEINLINE void __set_BASEPRI(uint32_t basePri) -{ - __ASM volatile ("MSR basepri, %0" : : "r" (basePri) : "memory"); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Set Base Priority (non-secure) - \details Assigns the given value to the non-secure Base Priority register when in secure state. - \param [in] basePri Base Priority value to set - */ -__STATIC_FORCEINLINE void __TZ_set_BASEPRI_NS(uint32_t basePri) -{ - __ASM volatile ("MSR basepri_ns, %0" : : "r" (basePri) : "memory"); -} -#endif - - -/** - \brief Set Base Priority with condition - \details Assigns the given value to the Base Priority register only if BASEPRI masking is disabled, - or the new value increases the BASEPRI priority level. - \param [in] basePri Base Priority value to set - */ -__STATIC_FORCEINLINE void __set_BASEPRI_MAX(uint32_t basePri) -{ - __ASM volatile ("MSR basepri_max, %0" : : "r" (basePri) : "memory"); -} - - -/** - \brief Get Fault Mask - \details Returns the current value of the Fault Mask register. - \return Fault Mask register value - */ -__STATIC_FORCEINLINE uint32_t __get_FAULTMASK(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, faultmask" : "=r" (result) ); - return(result); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Get Fault Mask (non-secure) - \details Returns the current value of the non-secure Fault Mask register when in secure state. - \return Fault Mask register value - */ -__STATIC_FORCEINLINE uint32_t __TZ_get_FAULTMASK_NS(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, faultmask_ns" : "=r" (result) ); - return(result); -} -#endif - - -/** - \brief Set Fault Mask - \details Assigns the given value to the Fault Mask register. - \param [in] faultMask Fault Mask value to set - */ -__STATIC_FORCEINLINE void __set_FAULTMASK(uint32_t faultMask) -{ - __ASM volatile ("MSR faultmask, %0" : : "r" (faultMask) : "memory"); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Set Fault Mask (non-secure) - \details Assigns the given value to the non-secure Fault Mask register when in secure state. - \param [in] faultMask Fault Mask value to set - */ -__STATIC_FORCEINLINE void __TZ_set_FAULTMASK_NS(uint32_t faultMask) -{ - __ASM volatile ("MSR faultmask_ns, %0" : : "r" (faultMask) : "memory"); -} -#endif - -#endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ - (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ - (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) */ - - -#if ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ - (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) - -/** - \brief Get Process Stack Pointer Limit - Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure - Stack Pointer Limit register hence zero is returned always in non-secure - mode. - - \details Returns the current value of the Process Stack Pointer Limit (PSPLIM). - \return PSPLIM Register value - */ -__STATIC_FORCEINLINE uint32_t __get_PSPLIM(void) -{ -#if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ - (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) - // without main extensions, the non-secure PSPLIM is RAZ/WI - return 0U; -#else - uint32_t result; - __ASM volatile ("MRS %0, psplim" : "=r" (result) ); - return result; -#endif -} - -#if (defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Get Process Stack Pointer Limit (non-secure) - Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure - Stack Pointer Limit register hence zero is returned always in non-secure - mode. - - \details Returns the current value of the non-secure Process Stack Pointer Limit (PSPLIM) when in secure state. - \return PSPLIM Register value - */ -__STATIC_FORCEINLINE uint32_t __TZ_get_PSPLIM_NS(void) -{ -#if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) - // without main extensions, the non-secure PSPLIM is RAZ/WI - return 0U; -#else - uint32_t result; - __ASM volatile ("MRS %0, psplim_ns" : "=r" (result) ); - return result; -#endif -} -#endif - - -/** - \brief Set Process Stack Pointer Limit - Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure - Stack Pointer Limit register hence the write is silently ignored in non-secure - mode. - - \details Assigns the given value to the Process Stack Pointer Limit (PSPLIM). - \param [in] ProcStackPtrLimit Process Stack Pointer Limit value to set - */ -__STATIC_FORCEINLINE void __set_PSPLIM(uint32_t ProcStackPtrLimit) -{ -#if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ - (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) - // without main extensions, the non-secure PSPLIM is RAZ/WI - (void)ProcStackPtrLimit; -#else - __ASM volatile ("MSR psplim, %0" : : "r" (ProcStackPtrLimit)); -#endif -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Set Process Stack Pointer (non-secure) - Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure - Stack Pointer Limit register hence the write is silently ignored in non-secure - mode. - - \details Assigns the given value to the non-secure Process Stack Pointer Limit (PSPLIM) when in secure state. - \param [in] ProcStackPtrLimit Process Stack Pointer Limit value to set - */ -__STATIC_FORCEINLINE void __TZ_set_PSPLIM_NS(uint32_t ProcStackPtrLimit) -{ -#if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) - // without main extensions, the non-secure PSPLIM is RAZ/WI - (void)ProcStackPtrLimit; -#else - __ASM volatile ("MSR psplim_ns, %0\n" : : "r" (ProcStackPtrLimit)); -#endif -} -#endif - - -/** - \brief Get Main Stack Pointer Limit - Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure - Stack Pointer Limit register hence zero is returned always. - - \details Returns the current value of the Main Stack Pointer Limit (MSPLIM). - \return MSPLIM Register value - */ -__STATIC_FORCEINLINE uint32_t __get_MSPLIM(void) -{ -#if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ - (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) - // without main extensions, the non-secure MSPLIM is RAZ/WI - return 0U; -#else - uint32_t result; - __ASM volatile ("MRS %0, msplim" : "=r" (result) ); - return result; -#endif -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Get Main Stack Pointer Limit (non-secure) - Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure - Stack Pointer Limit register hence zero is returned always. - - \details Returns the current value of the non-secure Main Stack Pointer Limit(MSPLIM) when in secure state. - \return MSPLIM Register value - */ -__STATIC_FORCEINLINE uint32_t __TZ_get_MSPLIM_NS(void) -{ -#if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) - // without main extensions, the non-secure MSPLIM is RAZ/WI - return 0U; -#else - uint32_t result; - __ASM volatile ("MRS %0, msplim_ns" : "=r" (result) ); - return result; -#endif -} -#endif - - -/** - \brief Set Main Stack Pointer Limit - Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure - Stack Pointer Limit register hence the write is silently ignored. - - \details Assigns the given value to the Main Stack Pointer Limit (MSPLIM). - \param [in] MainStackPtrLimit Main Stack Pointer Limit value to set - */ -__STATIC_FORCEINLINE void __set_MSPLIM(uint32_t MainStackPtrLimit) -{ -#if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ - (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) - // without main extensions, the non-secure MSPLIM is RAZ/WI - (void)MainStackPtrLimit; -#else - __ASM volatile ("MSR msplim, %0" : : "r" (MainStackPtrLimit)); -#endif -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Set Main Stack Pointer Limit (non-secure) - Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure - Stack Pointer Limit register hence the write is silently ignored. - - \details Assigns the given value to the non-secure Main Stack Pointer Limit (MSPLIM) when in secure state. - \param [in] MainStackPtrLimit Main Stack Pointer value to set - */ -__STATIC_FORCEINLINE void __TZ_set_MSPLIM_NS(uint32_t MainStackPtrLimit) -{ -#if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) - // without main extensions, the non-secure MSPLIM is RAZ/WI - (void)MainStackPtrLimit; -#else - __ASM volatile ("MSR msplim_ns, %0" : : "r" (MainStackPtrLimit)); -#endif -} -#endif - -#endif /* ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ - (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) */ - -/** - \brief Get FPSCR - \details Returns the current value of the Floating Point Status/Control register. - \return Floating Point Status/Control register value - */ -#if ((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \ - (defined (__FPU_USED ) && (__FPU_USED == 1U)) ) -#define __get_FPSCR (uint32_t)__builtin_arm_get_fpscr -#else -#define __get_FPSCR() ((uint32_t)0U) -#endif - -/** - \brief Set FPSCR - \details Assigns the given value to the Floating Point Status/Control register. - \param [in] fpscr Floating Point Status/Control value to set - */ -#if ((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \ - (defined (__FPU_USED ) && (__FPU_USED == 1U)) ) -#define __set_FPSCR __builtin_arm_set_fpscr -#else -#define __set_FPSCR(x) ((void)(x)) -#endif - - -/*@} end of CMSIS_Core_RegAccFunctions */ - - -/* ########################## Core Instruction Access ######################### */ -/** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface - Access to dedicated instructions - @{ -*/ - -/* Define macros for porting to both thumb1 and thumb2. - * For thumb1, use low register (r0-r7), specified by constraint "l" - * Otherwise, use general registers, specified by constraint "r" */ -#if defined (__thumb__) && !defined (__thumb2__) -#define __CMSIS_GCC_OUT_REG(r) "=l" (r) -#define __CMSIS_GCC_USE_REG(r) "l" (r) -#else -#define __CMSIS_GCC_OUT_REG(r) "=r" (r) -#define __CMSIS_GCC_USE_REG(r) "r" (r) -#endif - -/** - \brief No Operation - \details No Operation does nothing. This instruction can be used for code alignment purposes. - */ -#define __NOP __builtin_arm_nop - -/** - \brief Wait For Interrupt - \details Wait For Interrupt is a hint instruction that suspends execution until one of a number of events occurs. - */ -#define __WFI __builtin_arm_wfi - - -/** - \brief Wait For Event - \details Wait For Event is a hint instruction that permits the processor to enter - a low-power state until one of a number of events occurs. - */ -#define __WFE __builtin_arm_wfe - - -/** - \brief Send Event - \details Send Event is a hint instruction. It causes an event to be signaled to the CPU. - */ -#define __SEV __builtin_arm_sev - - -/** - \brief Instruction Synchronization Barrier - \details Instruction Synchronization Barrier flushes the pipeline in the processor, - so that all instructions following the ISB are fetched from cache or memory, - after the instruction has been completed. - */ -#define __ISB() __builtin_arm_isb(0xF) - -/** - \brief Data Synchronization Barrier - \details Acts as a special kind of Data Memory Barrier. - It completes when all explicit memory accesses before this instruction complete. - */ -#define __DSB() __builtin_arm_dsb(0xF) - - -/** - \brief Data Memory Barrier - \details Ensures the apparent order of the explicit memory operations before - and after the instruction, without ensuring their completion. - */ -#define __DMB() __builtin_arm_dmb(0xF) - - -/** - \brief Reverse byte order (32 bit) - \details Reverses the byte order in unsigned integer value. For example, 0x12345678 becomes 0x78563412. - \param [in] value Value to reverse - \return Reversed value - */ -#define __REV(value) __builtin_bswap32(value) - - -/** - \brief Reverse byte order (16 bit) - \details Reverses the byte order within each halfword of a word. For example, 0x12345678 becomes 0x34127856. - \param [in] value Value to reverse - \return Reversed value - */ -#define __REV16(value) __ROR(__REV(value), 16) - - -/** - \brief Reverse byte order (16 bit) - \details Reverses the byte order in a 16-bit value and returns the signed 16-bit result. For example, 0x0080 becomes 0x8000. - \param [in] value Value to reverse - \return Reversed value - */ -#define __REVSH(value) (int16_t)__builtin_bswap16(value) - - -/** - \brief Rotate Right in unsigned value (32 bit) - \details Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits. - \param [in] op1 Value to rotate - \param [in] op2 Number of Bits to rotate - \return Rotated value - */ -__STATIC_FORCEINLINE uint32_t __ROR(uint32_t op1, uint32_t op2) -{ - op2 %= 32U; - if (op2 == 0U) - { - return op1; - } - return (op1 >> op2) | (op1 << (32U - op2)); -} - - -/** - \brief Breakpoint - \details Causes the processor to enter Debug state. - Debug tools can use this to investigate system state when the instruction at a particular address is reached. - \param [in] value is ignored by the processor. - If required, a debugger can use it to store additional information about the breakpoint. - */ -#define __BKPT(value) __ASM volatile ("bkpt "#value) - - -/** - \brief Reverse bit order of value - \details Reverses the bit order of the given value. - \param [in] value Value to reverse - \return Reversed value - */ -#define __RBIT __builtin_arm_rbit - -/** - \brief Count leading zeros - \details Counts the number of leading zeros of a data value. - \param [in] value Value to count the leading zeros - \return number of leading zeros in value - */ -__STATIC_FORCEINLINE uint8_t __CLZ(uint32_t value) -{ - /* Even though __builtin_clz produces a CLZ instruction on ARM, formally - __builtin_clz(0) is undefined behaviour, so handle this case specially. - This guarantees ARM-compatible results if happening to compile on a non-ARM - target, and ensures the compiler doesn't decide to activate any - optimisations using the logic "value was passed to __builtin_clz, so it - is non-zero". - ARM Compiler 6.10 and possibly earlier will optimise this test away, leaving a - single CLZ instruction. - */ - if (value == 0U) - { - return 32U; - } - return __builtin_clz(value); -} - - -#if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ - (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ - (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ - (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) -/** - \brief LDR Exclusive (8 bit) - \details Executes a exclusive LDR instruction for 8 bit value. - \param [in] ptr Pointer to data - \return value of type uint8_t at (*ptr) - */ -#define __LDREXB (uint8_t)__builtin_arm_ldrex - - -/** - \brief LDR Exclusive (16 bit) - \details Executes a exclusive LDR instruction for 16 bit values. - \param [in] ptr Pointer to data - \return value of type uint16_t at (*ptr) - */ -#define __LDREXH (uint16_t)__builtin_arm_ldrex - - -/** - \brief LDR Exclusive (32 bit) - \details Executes a exclusive LDR instruction for 32 bit values. - \param [in] ptr Pointer to data - \return value of type uint32_t at (*ptr) - */ -#define __LDREXW (uint32_t)__builtin_arm_ldrex - - -/** - \brief STR Exclusive (8 bit) - \details Executes a exclusive STR instruction for 8 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -#define __STREXB (uint32_t)__builtin_arm_strex - - -/** - \brief STR Exclusive (16 bit) - \details Executes a exclusive STR instruction for 16 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -#define __STREXH (uint32_t)__builtin_arm_strex - - -/** - \brief STR Exclusive (32 bit) - \details Executes a exclusive STR instruction for 32 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -#define __STREXW (uint32_t)__builtin_arm_strex - - -/** - \brief Remove the exclusive lock - \details Removes the exclusive lock which is created by LDREX. - */ -#define __CLREX __builtin_arm_clrex - -#endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ - (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ - (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ - (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) */ - - -#if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ - (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ - (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) - -/** - \brief Signed Saturate - \details Saturates a signed value. - \param [in] value Value to be saturated - \param [in] sat Bit position to saturate to (1..32) - \return Saturated value - */ -#define __SSAT __builtin_arm_ssat - - -/** - \brief Unsigned Saturate - \details Saturates an unsigned value. - \param [in] value Value to be saturated - \param [in] sat Bit position to saturate to (0..31) - \return Saturated value - */ -#define __USAT __builtin_arm_usat - - -/** - \brief Rotate Right with Extend (32 bit) - \details Moves each bit of a bitstring right by one bit. - The carry input is shifted in at the left end of the bitstring. - \param [in] value Value to rotate - \return Rotated value - */ -__STATIC_FORCEINLINE uint32_t __RRX(uint32_t value) -{ - uint32_t result; - - __ASM volatile ("rrx %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); - return(result); -} - - -/** - \brief LDRT Unprivileged (8 bit) - \details Executes a Unprivileged LDRT instruction for 8 bit value. - \param [in] ptr Pointer to data - \return value of type uint8_t at (*ptr) - */ -__STATIC_FORCEINLINE uint8_t __LDRBT(volatile uint8_t *ptr) -{ - uint32_t result; - - __ASM volatile ("ldrbt %0, %1" : "=r" (result) : "Q" (*ptr) ); - return ((uint8_t) result); /* Add explicit type cast here */ -} - - -/** - \brief LDRT Unprivileged (16 bit) - \details Executes a Unprivileged LDRT instruction for 16 bit values. - \param [in] ptr Pointer to data - \return value of type uint16_t at (*ptr) - */ -__STATIC_FORCEINLINE uint16_t __LDRHT(volatile uint16_t *ptr) -{ - uint32_t result; - - __ASM volatile ("ldrht %0, %1" : "=r" (result) : "Q" (*ptr) ); - return ((uint16_t) result); /* Add explicit type cast here */ -} - - -/** - \brief LDRT Unprivileged (32 bit) - \details Executes a Unprivileged LDRT instruction for 32 bit values. - \param [in] ptr Pointer to data - \return value of type uint32_t at (*ptr) - */ -__STATIC_FORCEINLINE uint32_t __LDRT(volatile uint32_t *ptr) -{ - uint32_t result; - - __ASM volatile ("ldrt %0, %1" : "=r" (result) : "Q" (*ptr) ); - return(result); -} - - -/** - \brief STRT Unprivileged (8 bit) - \details Executes a Unprivileged STRT instruction for 8 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - */ -__STATIC_FORCEINLINE void __STRBT(uint8_t value, volatile uint8_t *ptr) -{ - __ASM volatile ("strbt %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); -} - - -/** - \brief STRT Unprivileged (16 bit) - \details Executes a Unprivileged STRT instruction for 16 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - */ -__STATIC_FORCEINLINE void __STRHT(uint16_t value, volatile uint16_t *ptr) -{ - __ASM volatile ("strht %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); -} - - -/** - \brief STRT Unprivileged (32 bit) - \details Executes a Unprivileged STRT instruction for 32 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - */ -__STATIC_FORCEINLINE void __STRT(uint32_t value, volatile uint32_t *ptr) -{ - __ASM volatile ("strt %1, %0" : "=Q" (*ptr) : "r" (value) ); -} - -#else /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ - (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ - (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) */ - -/** - \brief Signed Saturate - \details Saturates a signed value. - \param [in] value Value to be saturated - \param [in] sat Bit position to saturate to (1..32) - \return Saturated value - */ -__STATIC_FORCEINLINE int32_t __SSAT(int32_t val, uint32_t sat) -{ - if ((sat >= 1U) && (sat <= 32U)) - { - const int32_t max = (int32_t)((1U << (sat - 1U)) - 1U); - const int32_t min = -1 - max ; - if (val > max) - { - return max; - } - else if (val < min) - { - return min; - } - } - return val; -} - -/** - \brief Unsigned Saturate - \details Saturates an unsigned value. - \param [in] value Value to be saturated - \param [in] sat Bit position to saturate to (0..31) - \return Saturated value - */ -__STATIC_FORCEINLINE uint32_t __USAT(int32_t val, uint32_t sat) -{ - if (sat <= 31U) - { - const uint32_t max = ((1U << sat) - 1U); - if (val > (int32_t)max) - { - return max; - } - else if (val < 0) - { - return 0U; - } - } - return (uint32_t)val; -} - -#endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ - (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ - (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) */ - - -#if ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ - (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) -/** - \brief Load-Acquire (8 bit) - \details Executes a LDAB instruction for 8 bit value. - \param [in] ptr Pointer to data - \return value of type uint8_t at (*ptr) - */ -__STATIC_FORCEINLINE uint8_t __LDAB(volatile uint8_t *ptr) -{ - uint32_t result; - - __ASM volatile ("ldab %0, %1" : "=r" (result) : "Q" (*ptr) ); - return ((uint8_t) result); -} - - -/** - \brief Load-Acquire (16 bit) - \details Executes a LDAH instruction for 16 bit values. - \param [in] ptr Pointer to data - \return value of type uint16_t at (*ptr) - */ -__STATIC_FORCEINLINE uint16_t __LDAH(volatile uint16_t *ptr) -{ - uint32_t result; - - __ASM volatile ("ldah %0, %1" : "=r" (result) : "Q" (*ptr) ); - return ((uint16_t) result); -} - - -/** - \brief Load-Acquire (32 bit) - \details Executes a LDA instruction for 32 bit values. - \param [in] ptr Pointer to data - \return value of type uint32_t at (*ptr) - */ -__STATIC_FORCEINLINE uint32_t __LDA(volatile uint32_t *ptr) -{ - uint32_t result; - - __ASM volatile ("lda %0, %1" : "=r" (result) : "Q" (*ptr) ); - return(result); -} - - -/** - \brief Store-Release (8 bit) - \details Executes a STLB instruction for 8 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - */ -__STATIC_FORCEINLINE void __STLB(uint8_t value, volatile uint8_t *ptr) -{ - __ASM volatile ("stlb %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); -} - - -/** - \brief Store-Release (16 bit) - \details Executes a STLH instruction for 16 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - */ -__STATIC_FORCEINLINE void __STLH(uint16_t value, volatile uint16_t *ptr) -{ - __ASM volatile ("stlh %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); -} - - -/** - \brief Store-Release (32 bit) - \details Executes a STL instruction for 32 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - */ -__STATIC_FORCEINLINE void __STL(uint32_t value, volatile uint32_t *ptr) -{ - __ASM volatile ("stl %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); -} - - -/** - \brief Load-Acquire Exclusive (8 bit) - \details Executes a LDAB exclusive instruction for 8 bit value. - \param [in] ptr Pointer to data - \return value of type uint8_t at (*ptr) - */ -#define __LDAEXB (uint8_t)__builtin_arm_ldaex - - -/** - \brief Load-Acquire Exclusive (16 bit) - \details Executes a LDAH exclusive instruction for 16 bit values. - \param [in] ptr Pointer to data - \return value of type uint16_t at (*ptr) - */ -#define __LDAEXH (uint16_t)__builtin_arm_ldaex - - -/** - \brief Load-Acquire Exclusive (32 bit) - \details Executes a LDA exclusive instruction for 32 bit values. - \param [in] ptr Pointer to data - \return value of type uint32_t at (*ptr) - */ -#define __LDAEX (uint32_t)__builtin_arm_ldaex - - -/** - \brief Store-Release Exclusive (8 bit) - \details Executes a STLB exclusive instruction for 8 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -#define __STLEXB (uint32_t)__builtin_arm_stlex - - -/** - \brief Store-Release Exclusive (16 bit) - \details Executes a STLH exclusive instruction for 16 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -#define __STLEXH (uint32_t)__builtin_arm_stlex - - -/** - \brief Store-Release Exclusive (32 bit) - \details Executes a STL exclusive instruction for 32 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -#define __STLEX (uint32_t)__builtin_arm_stlex - -#endif /* ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ - (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) */ - -/*@}*/ /* end of group CMSIS_Core_InstructionInterface */ - - -/* ################### Compiler specific Intrinsics ########################### */ -/** \defgroup CMSIS_SIMD_intrinsics CMSIS SIMD Intrinsics - Access to dedicated SIMD instructions - @{ -*/ - -#if (defined (__ARM_FEATURE_DSP) && (__ARM_FEATURE_DSP == 1)) - -__STATIC_FORCEINLINE uint32_t __SADD8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("sadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __QADD8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("qadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SHADD8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("shadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UADD8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UQADD8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uqadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UHADD8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uhadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - - -__STATIC_FORCEINLINE uint32_t __SSUB8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("ssub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __QSUB8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("qsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SHSUB8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("shsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __USUB8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("usub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UQSUB8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uqsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UHSUB8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uhsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - - -__STATIC_FORCEINLINE uint32_t __SADD16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("sadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __QADD16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("qadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SHADD16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("shadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UADD16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UQADD16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uqadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UHADD16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uhadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SSUB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("ssub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __QSUB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("qsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SHSUB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("shsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __USUB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("usub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UQSUB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uqsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UHSUB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uhsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SASX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("sasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __QASX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("qasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SHASX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("shasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UASX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UQASX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uqasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UHASX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uhasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SSAX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("ssax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __QSAX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("qsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SHSAX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("shsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __USAX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("usax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UQSAX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uqsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UHSAX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uhsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __USAD8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("usad8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __USADA8(uint32_t op1, uint32_t op2, uint32_t op3) -{ - uint32_t result; - - __ASM volatile ("usada8 %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); - return(result); -} - -#define __SSAT16(ARG1,ARG2) \ -({ \ - int32_t __RES, __ARG1 = (ARG1); \ - __ASM ("ssat16 %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ - __RES; \ - }) - -#define __USAT16(ARG1,ARG2) \ -({ \ - uint32_t __RES, __ARG1 = (ARG1); \ - __ASM ("usat16 %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ - __RES; \ - }) - -__STATIC_FORCEINLINE uint32_t __UXTB16(uint32_t op1) -{ - uint32_t result; - - __ASM volatile ("uxtb16 %0, %1" : "=r" (result) : "r" (op1)); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UXTAB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uxtab16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SXTB16(uint32_t op1) -{ - uint32_t result; - - __ASM volatile ("sxtb16 %0, %1" : "=r" (result) : "r" (op1)); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SXTAB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("sxtab16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SMUAD (uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("smuad %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SMUADX (uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("smuadx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SMLAD (uint32_t op1, uint32_t op2, uint32_t op3) -{ - uint32_t result; - - __ASM volatile ("smlad %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SMLADX (uint32_t op1, uint32_t op2, uint32_t op3) -{ - uint32_t result; - - __ASM volatile ("smladx %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); - return(result); -} - -__STATIC_FORCEINLINE uint64_t __SMLALD (uint32_t op1, uint32_t op2, uint64_t acc) -{ - union llreg_u{ - uint32_t w32[2]; - uint64_t w64; - } llr; - llr.w64 = acc; - -#ifndef __ARMEB__ /* Little endian */ - __ASM volatile ("smlald %0, %1, %2, %3" : "=r" (llr.w32[0]), "=r" (llr.w32[1]): "r" (op1), "r" (op2) , "0" (llr.w32[0]), "1" (llr.w32[1]) ); -#else /* Big endian */ - __ASM volatile ("smlald %0, %1, %2, %3" : "=r" (llr.w32[1]), "=r" (llr.w32[0]): "r" (op1), "r" (op2) , "0" (llr.w32[1]), "1" (llr.w32[0]) ); -#endif - - return(llr.w64); -} - -__STATIC_FORCEINLINE uint64_t __SMLALDX (uint32_t op1, uint32_t op2, uint64_t acc) -{ - union llreg_u{ - uint32_t w32[2]; - uint64_t w64; - } llr; - llr.w64 = acc; - -#ifndef __ARMEB__ /* Little endian */ - __ASM volatile ("smlaldx %0, %1, %2, %3" : "=r" (llr.w32[0]), "=r" (llr.w32[1]): "r" (op1), "r" (op2) , "0" (llr.w32[0]), "1" (llr.w32[1]) ); -#else /* Big endian */ - __ASM volatile ("smlaldx %0, %1, %2, %3" : "=r" (llr.w32[1]), "=r" (llr.w32[0]): "r" (op1), "r" (op2) , "0" (llr.w32[1]), "1" (llr.w32[0]) ); -#endif - - return(llr.w64); -} - -__STATIC_FORCEINLINE uint32_t __SMUSD (uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("smusd %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SMUSDX (uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("smusdx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SMLSD (uint32_t op1, uint32_t op2, uint32_t op3) -{ - uint32_t result; - - __ASM volatile ("smlsd %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SMLSDX (uint32_t op1, uint32_t op2, uint32_t op3) -{ - uint32_t result; - - __ASM volatile ("smlsdx %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); - return(result); -} - -__STATIC_FORCEINLINE uint64_t __SMLSLD (uint32_t op1, uint32_t op2, uint64_t acc) -{ - union llreg_u{ - uint32_t w32[2]; - uint64_t w64; - } llr; - llr.w64 = acc; - -#ifndef __ARMEB__ /* Little endian */ - __ASM volatile ("smlsld %0, %1, %2, %3" : "=r" (llr.w32[0]), "=r" (llr.w32[1]): "r" (op1), "r" (op2) , "0" (llr.w32[0]), "1" (llr.w32[1]) ); -#else /* Big endian */ - __ASM volatile ("smlsld %0, %1, %2, %3" : "=r" (llr.w32[1]), "=r" (llr.w32[0]): "r" (op1), "r" (op2) , "0" (llr.w32[1]), "1" (llr.w32[0]) ); -#endif - - return(llr.w64); -} - -__STATIC_FORCEINLINE uint64_t __SMLSLDX (uint32_t op1, uint32_t op2, uint64_t acc) -{ - union llreg_u{ - uint32_t w32[2]; - uint64_t w64; - } llr; - llr.w64 = acc; - -#ifndef __ARMEB__ /* Little endian */ - __ASM volatile ("smlsldx %0, %1, %2, %3" : "=r" (llr.w32[0]), "=r" (llr.w32[1]): "r" (op1), "r" (op2) , "0" (llr.w32[0]), "1" (llr.w32[1]) ); -#else /* Big endian */ - __ASM volatile ("smlsldx %0, %1, %2, %3" : "=r" (llr.w32[1]), "=r" (llr.w32[0]): "r" (op1), "r" (op2) , "0" (llr.w32[1]), "1" (llr.w32[0]) ); -#endif - - return(llr.w64); -} - -__STATIC_FORCEINLINE uint32_t __SEL (uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("sel %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE int32_t __QADD( int32_t op1, int32_t op2) -{ - int32_t result; - - __ASM volatile ("qadd %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE int32_t __QSUB( int32_t op1, int32_t op2) -{ - int32_t result; - - __ASM volatile ("qsub %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -#define __PKHBT(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0x0000FFFFUL) | \ - ((((uint32_t)(ARG2)) << (ARG3)) & 0xFFFF0000UL) ) - -#define __PKHTB(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0xFFFF0000UL) | \ - ((((uint32_t)(ARG2)) >> (ARG3)) & 0x0000FFFFUL) ) - -__STATIC_FORCEINLINE int32_t __SMMLA (int32_t op1, int32_t op2, int32_t op3) -{ - int32_t result; - - __ASM volatile ("smmla %0, %1, %2, %3" : "=r" (result): "r" (op1), "r" (op2), "r" (op3) ); - return(result); -} - -#endif /* (__ARM_FEATURE_DSP == 1) */ -/*@} end of group CMSIS_SIMD_intrinsics */ - - -#endif /* __CMSIS_ARMCLANG_H */ diff --git a/Drivers/CMSIS/Include/cmsis_compiler.h b/Drivers/CMSIS/Include/cmsis_compiler.h deleted file mode 100644 index adbf296..0000000 --- a/Drivers/CMSIS/Include/cmsis_compiler.h +++ /dev/null @@ -1,283 +0,0 @@ -/**************************************************************************//** - * @file cmsis_compiler.h - * @brief CMSIS compiler generic header file - * @version V5.1.0 - * @date 09. October 2018 - ******************************************************************************/ -/* - * Copyright (c) 2009-2018 Arm Limited. All rights reserved. - * - * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the License); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef __CMSIS_COMPILER_H -#define __CMSIS_COMPILER_H - -#include - -/* - * Arm Compiler 4/5 - */ -#if defined ( __CC_ARM ) - #include "cmsis_armcc.h" - - -/* - * Arm Compiler 6.6 LTM (armclang) - */ -#elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) && (__ARMCC_VERSION < 6100100) - #include "cmsis_armclang_ltm.h" - - /* - * Arm Compiler above 6.10.1 (armclang) - */ -#elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6100100) - #include "cmsis_armclang.h" - - -/* - * GNU Compiler - */ -#elif defined ( __GNUC__ ) - #include "cmsis_gcc.h" - - -/* - * IAR Compiler - */ -#elif defined ( __ICCARM__ ) - #include - - -/* - * TI Arm Compiler - */ -#elif defined ( __TI_ARM__ ) - #include - - #ifndef __ASM - #define __ASM __asm - #endif - #ifndef __INLINE - #define __INLINE inline - #endif - #ifndef __STATIC_INLINE - #define __STATIC_INLINE static inline - #endif - #ifndef __STATIC_FORCEINLINE - #define __STATIC_FORCEINLINE __STATIC_INLINE - #endif - #ifndef __NO_RETURN - #define __NO_RETURN __attribute__((noreturn)) - #endif - #ifndef __USED - #define __USED __attribute__((used)) - #endif - #ifndef __WEAK - #define __WEAK __attribute__((weak)) - #endif - #ifndef __PACKED - #define __PACKED __attribute__((packed)) - #endif - #ifndef __PACKED_STRUCT - #define __PACKED_STRUCT struct __attribute__((packed)) - #endif - #ifndef __PACKED_UNION - #define __PACKED_UNION union __attribute__((packed)) - #endif - #ifndef __UNALIGNED_UINT32 /* deprecated */ - struct __attribute__((packed)) T_UINT32 { uint32_t v; }; - #define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v) - #endif - #ifndef __UNALIGNED_UINT16_WRITE - __PACKED_STRUCT T_UINT16_WRITE { uint16_t v; }; - #define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void*)(addr))->v) = (val)) - #endif - #ifndef __UNALIGNED_UINT16_READ - __PACKED_STRUCT T_UINT16_READ { uint16_t v; }; - #define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr))->v) - #endif - #ifndef __UNALIGNED_UINT32_WRITE - __PACKED_STRUCT T_UINT32_WRITE { uint32_t v; }; - #define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->v) = (val)) - #endif - #ifndef __UNALIGNED_UINT32_READ - __PACKED_STRUCT T_UINT32_READ { uint32_t v; }; - #define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr))->v) - #endif - #ifndef __ALIGNED - #define __ALIGNED(x) __attribute__((aligned(x))) - #endif - #ifndef __RESTRICT - #define __RESTRICT __restrict - #endif - #ifndef __COMPILER_BARRIER - #warning No compiler specific solution for __COMPILER_BARRIER. __COMPILER_BARRIER is ignored. - #define __COMPILER_BARRIER() (void)0 - #endif - - -/* - * TASKING Compiler - */ -#elif defined ( __TASKING__ ) - /* - * The CMSIS functions have been implemented as intrinsics in the compiler. - * Please use "carm -?i" to get an up to date list of all intrinsics, - * Including the CMSIS ones. - */ - - #ifndef __ASM - #define __ASM __asm - #endif - #ifndef __INLINE - #define __INLINE inline - #endif - #ifndef __STATIC_INLINE - #define __STATIC_INLINE static inline - #endif - #ifndef __STATIC_FORCEINLINE - #define __STATIC_FORCEINLINE __STATIC_INLINE - #endif - #ifndef __NO_RETURN - #define __NO_RETURN __attribute__((noreturn)) - #endif - #ifndef __USED - #define __USED __attribute__((used)) - #endif - #ifndef __WEAK - #define __WEAK __attribute__((weak)) - #endif - #ifndef __PACKED - #define __PACKED __packed__ - #endif - #ifndef __PACKED_STRUCT - #define __PACKED_STRUCT struct __packed__ - #endif - #ifndef __PACKED_UNION - #define __PACKED_UNION union __packed__ - #endif - #ifndef __UNALIGNED_UINT32 /* deprecated */ - struct __packed__ T_UINT32 { uint32_t v; }; - #define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v) - #endif - #ifndef __UNALIGNED_UINT16_WRITE - __PACKED_STRUCT T_UINT16_WRITE { uint16_t v; }; - #define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))->v) = (val)) - #endif - #ifndef __UNALIGNED_UINT16_READ - __PACKED_STRUCT T_UINT16_READ { uint16_t v; }; - #define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr))->v) - #endif - #ifndef __UNALIGNED_UINT32_WRITE - __PACKED_STRUCT T_UINT32_WRITE { uint32_t v; }; - #define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->v) = (val)) - #endif - #ifndef __UNALIGNED_UINT32_READ - __PACKED_STRUCT T_UINT32_READ { uint32_t v; }; - #define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr))->v) - #endif - #ifndef __ALIGNED - #define __ALIGNED(x) __align(x) - #endif - #ifndef __RESTRICT - #warning No compiler specific solution for __RESTRICT. __RESTRICT is ignored. - #define __RESTRICT - #endif - #ifndef __COMPILER_BARRIER - #warning No compiler specific solution for __COMPILER_BARRIER. __COMPILER_BARRIER is ignored. - #define __COMPILER_BARRIER() (void)0 - #endif - - -/* - * COSMIC Compiler - */ -#elif defined ( __CSMC__ ) - #include - - #ifndef __ASM - #define __ASM _asm - #endif - #ifndef __INLINE - #define __INLINE inline - #endif - #ifndef __STATIC_INLINE - #define __STATIC_INLINE static inline - #endif - #ifndef __STATIC_FORCEINLINE - #define __STATIC_FORCEINLINE __STATIC_INLINE - #endif - #ifndef __NO_RETURN - // NO RETURN is automatically detected hence no warning here - #define __NO_RETURN - #endif - #ifndef __USED - #warning No compiler specific solution for __USED. __USED is ignored. - #define __USED - #endif - #ifndef __WEAK - #define __WEAK __weak - #endif - #ifndef __PACKED - #define __PACKED @packed - #endif - #ifndef __PACKED_STRUCT - #define __PACKED_STRUCT @packed struct - #endif - #ifndef __PACKED_UNION - #define __PACKED_UNION @packed union - #endif - #ifndef __UNALIGNED_UINT32 /* deprecated */ - @packed struct T_UINT32 { uint32_t v; }; - #define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v) - #endif - #ifndef __UNALIGNED_UINT16_WRITE - __PACKED_STRUCT T_UINT16_WRITE { uint16_t v; }; - #define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))->v) = (val)) - #endif - #ifndef __UNALIGNED_UINT16_READ - __PACKED_STRUCT T_UINT16_READ { uint16_t v; }; - #define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr))->v) - #endif - #ifndef __UNALIGNED_UINT32_WRITE - __PACKED_STRUCT T_UINT32_WRITE { uint32_t v; }; - #define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->v) = (val)) - #endif - #ifndef __UNALIGNED_UINT32_READ - __PACKED_STRUCT T_UINT32_READ { uint32_t v; }; - #define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr))->v) - #endif - #ifndef __ALIGNED - #warning No compiler specific solution for __ALIGNED. __ALIGNED is ignored. - #define __ALIGNED(x) - #endif - #ifndef __RESTRICT - #warning No compiler specific solution for __RESTRICT. __RESTRICT is ignored. - #define __RESTRICT - #endif - #ifndef __COMPILER_BARRIER - #warning No compiler specific solution for __COMPILER_BARRIER. __COMPILER_BARRIER is ignored. - #define __COMPILER_BARRIER() (void)0 - #endif - - -#else - #error Unknown compiler. -#endif - - -#endif /* __CMSIS_COMPILER_H */ - diff --git a/Drivers/CMSIS/Include/cmsis_gcc.h b/Drivers/CMSIS/Include/cmsis_gcc.h deleted file mode 100644 index 3ddcc58..0000000 --- a/Drivers/CMSIS/Include/cmsis_gcc.h +++ /dev/null @@ -1,2168 +0,0 @@ -/**************************************************************************//** - * @file cmsis_gcc.h - * @brief CMSIS compiler GCC header file - * @version V5.2.0 - * @date 08. May 2019 - ******************************************************************************/ -/* - * Copyright (c) 2009-2019 Arm Limited. All rights reserved. - * - * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the License); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef __CMSIS_GCC_H -#define __CMSIS_GCC_H - -/* ignore some GCC warnings */ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wsign-conversion" -#pragma GCC diagnostic ignored "-Wconversion" -#pragma GCC diagnostic ignored "-Wunused-parameter" - -/* Fallback for __has_builtin */ -#ifndef __has_builtin - #define __has_builtin(x) (0) -#endif - -/* CMSIS compiler specific defines */ -#ifndef __ASM - #define __ASM __asm -#endif -#ifndef __INLINE - #define __INLINE inline -#endif -#ifndef __STATIC_INLINE - #define __STATIC_INLINE static inline -#endif -#ifndef __STATIC_FORCEINLINE - #define __STATIC_FORCEINLINE __attribute__((always_inline)) static inline -#endif -#ifndef __NO_RETURN - #define __NO_RETURN __attribute__((__noreturn__)) -#endif -#ifndef __USED - #define __USED __attribute__((used)) -#endif -#ifndef __WEAK - #define __WEAK __attribute__((weak)) -#endif -#ifndef __PACKED - #define __PACKED __attribute__((packed, aligned(1))) -#endif -#ifndef __PACKED_STRUCT - #define __PACKED_STRUCT struct __attribute__((packed, aligned(1))) -#endif -#ifndef __PACKED_UNION - #define __PACKED_UNION union __attribute__((packed, aligned(1))) -#endif -#ifndef __UNALIGNED_UINT32 /* deprecated */ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wpacked" - #pragma GCC diagnostic ignored "-Wattributes" - struct __attribute__((packed)) T_UINT32 { uint32_t v; }; - #pragma GCC diagnostic pop - #define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v) -#endif -#ifndef __UNALIGNED_UINT16_WRITE - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wpacked" - #pragma GCC diagnostic ignored "-Wattributes" - __PACKED_STRUCT T_UINT16_WRITE { uint16_t v; }; - #pragma GCC diagnostic pop - #define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))->v) = (val)) -#endif -#ifndef __UNALIGNED_UINT16_READ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wpacked" - #pragma GCC diagnostic ignored "-Wattributes" - __PACKED_STRUCT T_UINT16_READ { uint16_t v; }; - #pragma GCC diagnostic pop - #define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr))->v) -#endif -#ifndef __UNALIGNED_UINT32_WRITE - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wpacked" - #pragma GCC diagnostic ignored "-Wattributes" - __PACKED_STRUCT T_UINT32_WRITE { uint32_t v; }; - #pragma GCC diagnostic pop - #define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->v) = (val)) -#endif -#ifndef __UNALIGNED_UINT32_READ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wpacked" - #pragma GCC diagnostic ignored "-Wattributes" - __PACKED_STRUCT T_UINT32_READ { uint32_t v; }; - #pragma GCC diagnostic pop - #define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr))->v) -#endif -#ifndef __ALIGNED - #define __ALIGNED(x) __attribute__((aligned(x))) -#endif -#ifndef __RESTRICT - #define __RESTRICT __restrict -#endif -#ifndef __COMPILER_BARRIER - #define __COMPILER_BARRIER() __ASM volatile("":::"memory") -#endif - -/* ######################### Startup and Lowlevel Init ######################## */ - -#ifndef __PROGRAM_START - -/** - \brief Initializes data and bss sections - \details This default implementations initialized all data and additional bss - sections relying on .copy.table and .zero.table specified properly - in the used linker script. - - */ -__STATIC_FORCEINLINE __NO_RETURN void __cmsis_start(void) -{ - extern void _start(void) __NO_RETURN; - - typedef struct { - uint32_t const* src; - uint32_t* dest; - uint32_t wlen; - } __copy_table_t; - - typedef struct { - uint32_t* dest; - uint32_t wlen; - } __zero_table_t; - - extern const __copy_table_t __copy_table_start__; - extern const __copy_table_t __copy_table_end__; - extern const __zero_table_t __zero_table_start__; - extern const __zero_table_t __zero_table_end__; - - for (__copy_table_t const* pTable = &__copy_table_start__; pTable < &__copy_table_end__; ++pTable) { - for(uint32_t i=0u; iwlen; ++i) { - pTable->dest[i] = pTable->src[i]; - } - } - - for (__zero_table_t const* pTable = &__zero_table_start__; pTable < &__zero_table_end__; ++pTable) { - for(uint32_t i=0u; iwlen; ++i) { - pTable->dest[i] = 0u; - } - } - - _start(); -} - -#define __PROGRAM_START __cmsis_start -#endif - -#ifndef __INITIAL_SP -#define __INITIAL_SP __StackTop -#endif - -#ifndef __STACK_LIMIT -#define __STACK_LIMIT __StackLimit -#endif - -#ifndef __VECTOR_TABLE -#define __VECTOR_TABLE __Vectors -#endif - -#ifndef __VECTOR_TABLE_ATTRIBUTE -#define __VECTOR_TABLE_ATTRIBUTE __attribute((used, section(".vectors"))) -#endif - -/* ########################### Core Function Access ########################### */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_RegAccFunctions CMSIS Core Register Access Functions - @{ - */ - -/** - \brief Enable IRQ Interrupts - \details Enables IRQ interrupts by clearing the I-bit in the CPSR. - Can only be executed in Privileged modes. - */ -__STATIC_FORCEINLINE void __enable_irq(void) -{ - __ASM volatile ("cpsie i" : : : "memory"); -} - - -/** - \brief Disable IRQ Interrupts - \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"); -} - - -/** - \brief Get Control Register - \details Returns the content of the Control Register. - \return Control Register value - */ -__STATIC_FORCEINLINE uint32_t __get_CONTROL(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, control" : "=r" (result) ); - return(result); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Get Control Register (non-secure) - \details Returns the content of the non-secure Control Register when in secure mode. - \return non-secure Control Register value - */ -__STATIC_FORCEINLINE uint32_t __TZ_get_CONTROL_NS(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, control_ns" : "=r" (result) ); - return(result); -} -#endif - - -/** - \brief Set Control Register - \details Writes the given value to the Control Register. - \param [in] control Control Register value to set - */ -__STATIC_FORCEINLINE void __set_CONTROL(uint32_t control) -{ - __ASM volatile ("MSR control, %0" : : "r" (control) : "memory"); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Set Control Register (non-secure) - \details Writes the given value to the non-secure Control Register when in secure state. - \param [in] control Control Register value to set - */ -__STATIC_FORCEINLINE void __TZ_set_CONTROL_NS(uint32_t control) -{ - __ASM volatile ("MSR control_ns, %0" : : "r" (control) : "memory"); -} -#endif - - -/** - \brief Get IPSR Register - \details Returns the content of the IPSR Register. - \return IPSR Register value - */ -__STATIC_FORCEINLINE uint32_t __get_IPSR(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, ipsr" : "=r" (result) ); - return(result); -} - - -/** - \brief Get APSR Register - \details Returns the content of the APSR Register. - \return APSR Register value - */ -__STATIC_FORCEINLINE uint32_t __get_APSR(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, apsr" : "=r" (result) ); - return(result); -} - - -/** - \brief Get xPSR Register - \details Returns the content of the xPSR Register. - \return xPSR Register value - */ -__STATIC_FORCEINLINE uint32_t __get_xPSR(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, xpsr" : "=r" (result) ); - return(result); -} - - -/** - \brief Get Process Stack Pointer - \details Returns the current value of the Process Stack Pointer (PSP). - \return PSP Register value - */ -__STATIC_FORCEINLINE uint32_t __get_PSP(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, psp" : "=r" (result) ); - return(result); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Get Process Stack Pointer (non-secure) - \details Returns the current value of the non-secure Process Stack Pointer (PSP) when in secure state. - \return PSP Register value - */ -__STATIC_FORCEINLINE uint32_t __TZ_get_PSP_NS(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, psp_ns" : "=r" (result) ); - return(result); -} -#endif - - -/** - \brief Set Process Stack Pointer - \details Assigns the given value to the Process Stack Pointer (PSP). - \param [in] topOfProcStack Process Stack Pointer value to set - */ -__STATIC_FORCEINLINE void __set_PSP(uint32_t topOfProcStack) -{ - __ASM volatile ("MSR psp, %0" : : "r" (topOfProcStack) : ); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Set Process Stack Pointer (non-secure) - \details Assigns the given value to the non-secure Process Stack Pointer (PSP) when in secure state. - \param [in] topOfProcStack Process Stack Pointer value to set - */ -__STATIC_FORCEINLINE void __TZ_set_PSP_NS(uint32_t topOfProcStack) -{ - __ASM volatile ("MSR psp_ns, %0" : : "r" (topOfProcStack) : ); -} -#endif - - -/** - \brief Get Main Stack Pointer - \details Returns the current value of the Main Stack Pointer (MSP). - \return MSP Register value - */ -__STATIC_FORCEINLINE uint32_t __get_MSP(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, msp" : "=r" (result) ); - return(result); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Get Main Stack Pointer (non-secure) - \details Returns the current value of the non-secure Main Stack Pointer (MSP) when in secure state. - \return MSP Register value - */ -__STATIC_FORCEINLINE uint32_t __TZ_get_MSP_NS(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, msp_ns" : "=r" (result) ); - return(result); -} -#endif - - -/** - \brief Set Main Stack Pointer - \details Assigns the given value to the Main Stack Pointer (MSP). - \param [in] topOfMainStack Main Stack Pointer value to set - */ -__STATIC_FORCEINLINE void __set_MSP(uint32_t topOfMainStack) -{ - __ASM volatile ("MSR msp, %0" : : "r" (topOfMainStack) : ); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Set Main Stack Pointer (non-secure) - \details Assigns the given value to the non-secure Main Stack Pointer (MSP) when in secure state. - \param [in] topOfMainStack Main Stack Pointer value to set - */ -__STATIC_FORCEINLINE void __TZ_set_MSP_NS(uint32_t topOfMainStack) -{ - __ASM volatile ("MSR msp_ns, %0" : : "r" (topOfMainStack) : ); -} -#endif - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Get Stack Pointer (non-secure) - \details Returns the current value of the non-secure Stack Pointer (SP) when in secure state. - \return SP Register value - */ -__STATIC_FORCEINLINE uint32_t __TZ_get_SP_NS(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, sp_ns" : "=r" (result) ); - return(result); -} - - -/** - \brief Set Stack Pointer (non-secure) - \details Assigns the given value to the non-secure Stack Pointer (SP) when in secure state. - \param [in] topOfStack Stack Pointer value to set - */ -__STATIC_FORCEINLINE void __TZ_set_SP_NS(uint32_t topOfStack) -{ - __ASM volatile ("MSR sp_ns, %0" : : "r" (topOfStack) : ); -} -#endif - - -/** - \brief Get Priority Mask - \details Returns the current state of the priority mask bit from the Priority Mask Register. - \return Priority Mask value - */ -__STATIC_FORCEINLINE uint32_t __get_PRIMASK(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, primask" : "=r" (result) :: "memory"); - return(result); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Get Priority Mask (non-secure) - \details Returns the current state of the non-secure priority mask bit from the Priority Mask Register when in secure state. - \return Priority Mask value - */ -__STATIC_FORCEINLINE uint32_t __TZ_get_PRIMASK_NS(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, primask_ns" : "=r" (result) :: "memory"); - return(result); -} -#endif - - -/** - \brief Set Priority Mask - \details Assigns the given value to the Priority Mask Register. - \param [in] priMask Priority Mask - */ -__STATIC_FORCEINLINE void __set_PRIMASK(uint32_t priMask) -{ - __ASM volatile ("MSR primask, %0" : : "r" (priMask) : "memory"); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Set Priority Mask (non-secure) - \details Assigns the given value to the non-secure Priority Mask Register when in secure state. - \param [in] priMask Priority Mask - */ -__STATIC_FORCEINLINE void __TZ_set_PRIMASK_NS(uint32_t priMask) -{ - __ASM volatile ("MSR primask_ns, %0" : : "r" (priMask) : "memory"); -} -#endif - - -#if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ - (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ - (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) -/** - \brief Enable FIQ - \details Enables FIQ interrupts by clearing the F-bit in the CPSR. - Can only be executed in Privileged modes. - */ -__STATIC_FORCEINLINE void __enable_fault_irq(void) -{ - __ASM volatile ("cpsie f" : : : "memory"); -} - - -/** - \brief Disable FIQ - \details Disables FIQ interrupts by setting the F-bit in the CPSR. - Can only be executed in Privileged modes. - */ -__STATIC_FORCEINLINE void __disable_fault_irq(void) -{ - __ASM volatile ("cpsid f" : : : "memory"); -} - - -/** - \brief Get Base Priority - \details Returns the current value of the Base Priority register. - \return Base Priority register value - */ -__STATIC_FORCEINLINE uint32_t __get_BASEPRI(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, basepri" : "=r" (result) ); - return(result); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Get Base Priority (non-secure) - \details Returns the current value of the non-secure Base Priority register when in secure state. - \return Base Priority register value - */ -__STATIC_FORCEINLINE uint32_t __TZ_get_BASEPRI_NS(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, basepri_ns" : "=r" (result) ); - return(result); -} -#endif - - -/** - \brief Set Base Priority - \details Assigns the given value to the Base Priority register. - \param [in] basePri Base Priority value to set - */ -__STATIC_FORCEINLINE void __set_BASEPRI(uint32_t basePri) -{ - __ASM volatile ("MSR basepri, %0" : : "r" (basePri) : "memory"); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Set Base Priority (non-secure) - \details Assigns the given value to the non-secure Base Priority register when in secure state. - \param [in] basePri Base Priority value to set - */ -__STATIC_FORCEINLINE void __TZ_set_BASEPRI_NS(uint32_t basePri) -{ - __ASM volatile ("MSR basepri_ns, %0" : : "r" (basePri) : "memory"); -} -#endif - - -/** - \brief Set Base Priority with condition - \details Assigns the given value to the Base Priority register only if BASEPRI masking is disabled, - or the new value increases the BASEPRI priority level. - \param [in] basePri Base Priority value to set - */ -__STATIC_FORCEINLINE void __set_BASEPRI_MAX(uint32_t basePri) -{ - __ASM volatile ("MSR basepri_max, %0" : : "r" (basePri) : "memory"); -} - - -/** - \brief Get Fault Mask - \details Returns the current value of the Fault Mask register. - \return Fault Mask register value - */ -__STATIC_FORCEINLINE uint32_t __get_FAULTMASK(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, faultmask" : "=r" (result) ); - return(result); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Get Fault Mask (non-secure) - \details Returns the current value of the non-secure Fault Mask register when in secure state. - \return Fault Mask register value - */ -__STATIC_FORCEINLINE uint32_t __TZ_get_FAULTMASK_NS(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, faultmask_ns" : "=r" (result) ); - return(result); -} -#endif - - -/** - \brief Set Fault Mask - \details Assigns the given value to the Fault Mask register. - \param [in] faultMask Fault Mask value to set - */ -__STATIC_FORCEINLINE void __set_FAULTMASK(uint32_t faultMask) -{ - __ASM volatile ("MSR faultmask, %0" : : "r" (faultMask) : "memory"); -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Set Fault Mask (non-secure) - \details Assigns the given value to the non-secure Fault Mask register when in secure state. - \param [in] faultMask Fault Mask value to set - */ -__STATIC_FORCEINLINE void __TZ_set_FAULTMASK_NS(uint32_t faultMask) -{ - __ASM volatile ("MSR faultmask_ns, %0" : : "r" (faultMask) : "memory"); -} -#endif - -#endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ - (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ - (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) */ - - -#if ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ - (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) - -/** - \brief Get Process Stack Pointer Limit - Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure - Stack Pointer Limit register hence zero is returned always in non-secure - mode. - - \details Returns the current value of the Process Stack Pointer Limit (PSPLIM). - \return PSPLIM Register value - */ -__STATIC_FORCEINLINE uint32_t __get_PSPLIM(void) -{ -#if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ - (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) - // without main extensions, the non-secure PSPLIM is RAZ/WI - return 0U; -#else - uint32_t result; - __ASM volatile ("MRS %0, psplim" : "=r" (result) ); - return result; -#endif -} - -#if (defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Get Process Stack Pointer Limit (non-secure) - Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure - Stack Pointer Limit register hence zero is returned always. - - \details Returns the current value of the non-secure Process Stack Pointer Limit (PSPLIM) when in secure state. - \return PSPLIM Register value - */ -__STATIC_FORCEINLINE uint32_t __TZ_get_PSPLIM_NS(void) -{ -#if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) - // without main extensions, the non-secure PSPLIM is RAZ/WI - return 0U; -#else - uint32_t result; - __ASM volatile ("MRS %0, psplim_ns" : "=r" (result) ); - return result; -#endif -} -#endif - - -/** - \brief Set Process Stack Pointer Limit - Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure - Stack Pointer Limit register hence the write is silently ignored in non-secure - mode. - - \details Assigns the given value to the Process Stack Pointer Limit (PSPLIM). - \param [in] ProcStackPtrLimit Process Stack Pointer Limit value to set - */ -__STATIC_FORCEINLINE void __set_PSPLIM(uint32_t ProcStackPtrLimit) -{ -#if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ - (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) - // without main extensions, the non-secure PSPLIM is RAZ/WI - (void)ProcStackPtrLimit; -#else - __ASM volatile ("MSR psplim, %0" : : "r" (ProcStackPtrLimit)); -#endif -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Set Process Stack Pointer (non-secure) - Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure - Stack Pointer Limit register hence the write is silently ignored. - - \details Assigns the given value to the non-secure Process Stack Pointer Limit (PSPLIM) when in secure state. - \param [in] ProcStackPtrLimit Process Stack Pointer Limit value to set - */ -__STATIC_FORCEINLINE void __TZ_set_PSPLIM_NS(uint32_t ProcStackPtrLimit) -{ -#if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) - // without main extensions, the non-secure PSPLIM is RAZ/WI - (void)ProcStackPtrLimit; -#else - __ASM volatile ("MSR psplim_ns, %0\n" : : "r" (ProcStackPtrLimit)); -#endif -} -#endif - - -/** - \brief Get Main Stack Pointer Limit - Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure - Stack Pointer Limit register hence zero is returned always in non-secure - mode. - - \details Returns the current value of the Main Stack Pointer Limit (MSPLIM). - \return MSPLIM Register value - */ -__STATIC_FORCEINLINE uint32_t __get_MSPLIM(void) -{ -#if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ - (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) - // without main extensions, the non-secure MSPLIM is RAZ/WI - return 0U; -#else - uint32_t result; - __ASM volatile ("MRS %0, msplim" : "=r" (result) ); - return result; -#endif -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Get Main Stack Pointer Limit (non-secure) - Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure - Stack Pointer Limit register hence zero is returned always. - - \details Returns the current value of the non-secure Main Stack Pointer Limit(MSPLIM) when in secure state. - \return MSPLIM Register value - */ -__STATIC_FORCEINLINE uint32_t __TZ_get_MSPLIM_NS(void) -{ -#if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) - // without main extensions, the non-secure MSPLIM is RAZ/WI - return 0U; -#else - uint32_t result; - __ASM volatile ("MRS %0, msplim_ns" : "=r" (result) ); - return result; -#endif -} -#endif - - -/** - \brief Set Main Stack Pointer Limit - Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure - Stack Pointer Limit register hence the write is silently ignored in non-secure - mode. - - \details Assigns the given value to the Main Stack Pointer Limit (MSPLIM). - \param [in] MainStackPtrLimit Main Stack Pointer Limit value to set - */ -__STATIC_FORCEINLINE void __set_MSPLIM(uint32_t MainStackPtrLimit) -{ -#if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ - (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) - // without main extensions, the non-secure MSPLIM is RAZ/WI - (void)MainStackPtrLimit; -#else - __ASM volatile ("MSR msplim, %0" : : "r" (MainStackPtrLimit)); -#endif -} - - -#if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) -/** - \brief Set Main Stack Pointer Limit (non-secure) - Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure - Stack Pointer Limit register hence the write is silently ignored. - - \details Assigns the given value to the non-secure Main Stack Pointer Limit (MSPLIM) when in secure state. - \param [in] MainStackPtrLimit Main Stack Pointer value to set - */ -__STATIC_FORCEINLINE void __TZ_set_MSPLIM_NS(uint32_t MainStackPtrLimit) -{ -#if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) - // without main extensions, the non-secure MSPLIM is RAZ/WI - (void)MainStackPtrLimit; -#else - __ASM volatile ("MSR msplim_ns, %0" : : "r" (MainStackPtrLimit)); -#endif -} -#endif - -#endif /* ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ - (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) */ - - -/** - \brief Get FPSCR - \details Returns the current value of the Floating Point Status/Control register. - \return Floating Point Status/Control register value - */ -__STATIC_FORCEINLINE uint32_t __get_FPSCR(void) -{ -#if ((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \ - (defined (__FPU_USED ) && (__FPU_USED == 1U)) ) -#if __has_builtin(__builtin_arm_get_fpscr) -// Re-enable using built-in when GCC has been fixed -// || (__GNUC__ > 7) || (__GNUC__ == 7 && __GNUC_MINOR__ >= 2) - /* see https://gcc.gnu.org/ml/gcc-patches/2017-04/msg00443.html */ - return __builtin_arm_get_fpscr(); -#else - uint32_t result; - - __ASM volatile ("VMRS %0, fpscr" : "=r" (result) ); - return(result); -#endif -#else - return(0U); -#endif -} - - -/** - \brief Set FPSCR - \details Assigns the given value to the Floating Point Status/Control register. - \param [in] fpscr Floating Point Status/Control value to set - */ -__STATIC_FORCEINLINE void __set_FPSCR(uint32_t fpscr) -{ -#if ((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \ - (defined (__FPU_USED ) && (__FPU_USED == 1U)) ) -#if __has_builtin(__builtin_arm_set_fpscr) -// Re-enable using built-in when GCC has been fixed -// || (__GNUC__ > 7) || (__GNUC__ == 7 && __GNUC_MINOR__ >= 2) - /* see https://gcc.gnu.org/ml/gcc-patches/2017-04/msg00443.html */ - __builtin_arm_set_fpscr(fpscr); -#else - __ASM volatile ("VMSR fpscr, %0" : : "r" (fpscr) : "vfpcc", "memory"); -#endif -#else - (void)fpscr; -#endif -} - - -/*@} end of CMSIS_Core_RegAccFunctions */ - - -/* ########################## Core Instruction Access ######################### */ -/** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface - Access to dedicated instructions - @{ -*/ - -/* Define macros for porting to both thumb1 and thumb2. - * For thumb1, use low register (r0-r7), specified by constraint "l" - * Otherwise, use general registers, specified by constraint "r" */ -#if defined (__thumb__) && !defined (__thumb2__) -#define __CMSIS_GCC_OUT_REG(r) "=l" (r) -#define __CMSIS_GCC_RW_REG(r) "+l" (r) -#define __CMSIS_GCC_USE_REG(r) "l" (r) -#else -#define __CMSIS_GCC_OUT_REG(r) "=r" (r) -#define __CMSIS_GCC_RW_REG(r) "+r" (r) -#define __CMSIS_GCC_USE_REG(r) "r" (r) -#endif - -/** - \brief No Operation - \details No Operation does nothing. This instruction can be used for code alignment purposes. - */ -#define __NOP() __ASM volatile ("nop") - -/** - \brief Wait For Interrupt - \details Wait For Interrupt is a hint instruction that suspends execution until one of a number of events occurs. - */ -#define __WFI() __ASM volatile ("wfi") - - -/** - \brief Wait For Event - \details Wait For Event is a hint instruction that permits the processor to enter - a low-power state until one of a number of events occurs. - */ -#define __WFE() __ASM volatile ("wfe") - - -/** - \brief Send Event - \details Send Event is a hint instruction. It causes an event to be signaled to the CPU. - */ -#define __SEV() __ASM volatile ("sev") - - -/** - \brief Instruction Synchronization Barrier - \details Instruction Synchronization Barrier flushes the pipeline in the processor, - so that all instructions following the ISB are fetched from cache or memory, - after the instruction has been completed. - */ -__STATIC_FORCEINLINE void __ISB(void) -{ - __ASM volatile ("isb 0xF":::"memory"); -} - - -/** - \brief Data Synchronization Barrier - \details Acts as a special kind of Data Memory Barrier. - It completes when all explicit memory accesses before this instruction complete. - */ -__STATIC_FORCEINLINE void __DSB(void) -{ - __ASM volatile ("dsb 0xF":::"memory"); -} - - -/** - \brief Data Memory Barrier - \details Ensures the apparent order of the explicit memory operations before - and after the instruction, without ensuring their completion. - */ -__STATIC_FORCEINLINE void __DMB(void) -{ - __ASM volatile ("dmb 0xF":::"memory"); -} - - -/** - \brief Reverse byte order (32 bit) - \details Reverses the byte order in unsigned integer value. For example, 0x12345678 becomes 0x78563412. - \param [in] value Value to reverse - \return Reversed value - */ -__STATIC_FORCEINLINE uint32_t __REV(uint32_t value) -{ -#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) - return __builtin_bswap32(value); -#else - uint32_t result; - - __ASM volatile ("rev %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); - return result; -#endif -} - - -/** - \brief Reverse byte order (16 bit) - \details Reverses the byte order within each halfword of a word. For example, 0x12345678 becomes 0x34127856. - \param [in] value Value to reverse - \return Reversed value - */ -__STATIC_FORCEINLINE uint32_t __REV16(uint32_t value) -{ - uint32_t result; - - __ASM volatile ("rev16 %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); - return result; -} - - -/** - \brief Reverse byte order (16 bit) - \details Reverses the byte order in a 16-bit value and returns the signed 16-bit result. For example, 0x0080 becomes 0x8000. - \param [in] value Value to reverse - \return Reversed value - */ -__STATIC_FORCEINLINE int16_t __REVSH(int16_t value) -{ -#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) - return (int16_t)__builtin_bswap16(value); -#else - int16_t result; - - __ASM volatile ("revsh %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); - return result; -#endif -} - - -/** - \brief Rotate Right in unsigned value (32 bit) - \details Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits. - \param [in] op1 Value to rotate - \param [in] op2 Number of Bits to rotate - \return Rotated value - */ -__STATIC_FORCEINLINE uint32_t __ROR(uint32_t op1, uint32_t op2) -{ - op2 %= 32U; - if (op2 == 0U) - { - return op1; - } - return (op1 >> op2) | (op1 << (32U - op2)); -} - - -/** - \brief Breakpoint - \details Causes the processor to enter Debug state. - Debug tools can use this to investigate system state when the instruction at a particular address is reached. - \param [in] value is ignored by the processor. - If required, a debugger can use it to store additional information about the breakpoint. - */ -#define __BKPT(value) __ASM volatile ("bkpt "#value) - - -/** - \brief Reverse bit order of value - \details Reverses the bit order of the given value. - \param [in] value Value to reverse - \return Reversed value - */ -__STATIC_FORCEINLINE uint32_t __RBIT(uint32_t value) -{ - uint32_t result; - -#if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ - (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ - (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) - __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); -#else - uint32_t s = (4U /*sizeof(v)*/ * 8U) - 1U; /* extra shift needed at end */ - - result = value; /* r will be reversed bits of v; first get LSB of v */ - for (value >>= 1U; value != 0U; value >>= 1U) - { - result <<= 1U; - result |= value & 1U; - s--; - } - result <<= s; /* shift when v's highest bits are zero */ -#endif - return result; -} - - -/** - \brief Count leading zeros - \details Counts the number of leading zeros of a data value. - \param [in] value Value to count the leading zeros - \return number of leading zeros in value - */ -__STATIC_FORCEINLINE uint8_t __CLZ(uint32_t value) -{ - /* Even though __builtin_clz produces a CLZ instruction on ARM, formally - __builtin_clz(0) is undefined behaviour, so handle this case specially. - This guarantees ARM-compatible results if happening to compile on a non-ARM - target, and ensures the compiler doesn't decide to activate any - optimisations using the logic "value was passed to __builtin_clz, so it - is non-zero". - ARM GCC 7.3 and possibly earlier will optimise this test away, leaving a - single CLZ instruction. - */ - if (value == 0U) - { - return 32U; - } - return __builtin_clz(value); -} - - -#if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ - (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ - (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ - (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) -/** - \brief LDR Exclusive (8 bit) - \details Executes a exclusive LDR instruction for 8 bit value. - \param [in] ptr Pointer to data - \return value of type uint8_t at (*ptr) - */ -__STATIC_FORCEINLINE uint8_t __LDREXB(volatile uint8_t *addr) -{ - uint32_t result; - -#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) - __ASM volatile ("ldrexb %0, %1" : "=r" (result) : "Q" (*addr) ); -#else - /* Prior to GCC 4.8, "Q" will be expanded to [rx, #0] which is not - accepted by assembler. So has to use following less efficient pattern. - */ - __ASM volatile ("ldrexb %0, [%1]" : "=r" (result) : "r" (addr) : "memory" ); -#endif - return ((uint8_t) result); /* Add explicit type cast here */ -} - - -/** - \brief LDR Exclusive (16 bit) - \details Executes a exclusive LDR instruction for 16 bit values. - \param [in] ptr Pointer to data - \return value of type uint16_t at (*ptr) - */ -__STATIC_FORCEINLINE uint16_t __LDREXH(volatile uint16_t *addr) -{ - uint32_t result; - -#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) - __ASM volatile ("ldrexh %0, %1" : "=r" (result) : "Q" (*addr) ); -#else - /* Prior to GCC 4.8, "Q" will be expanded to [rx, #0] which is not - accepted by assembler. So has to use following less efficient pattern. - */ - __ASM volatile ("ldrexh %0, [%1]" : "=r" (result) : "r" (addr) : "memory" ); -#endif - return ((uint16_t) result); /* Add explicit type cast here */ -} - - -/** - \brief LDR Exclusive (32 bit) - \details Executes a exclusive LDR instruction for 32 bit values. - \param [in] ptr Pointer to data - \return value of type uint32_t at (*ptr) - */ -__STATIC_FORCEINLINE uint32_t __LDREXW(volatile uint32_t *addr) -{ - uint32_t result; - - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - return(result); -} - - -/** - \brief STR Exclusive (8 bit) - \details Executes a exclusive STR instruction for 8 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -__STATIC_FORCEINLINE uint32_t __STREXB(uint8_t value, volatile uint8_t *addr) -{ - uint32_t result; - - __ASM volatile ("strexb %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" ((uint32_t)value) ); - return(result); -} - - -/** - \brief STR Exclusive (16 bit) - \details Executes a exclusive STR instruction for 16 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -__STATIC_FORCEINLINE uint32_t __STREXH(uint16_t value, volatile uint16_t *addr) -{ - uint32_t result; - - __ASM volatile ("strexh %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" ((uint32_t)value) ); - return(result); -} - - -/** - \brief STR Exclusive (32 bit) - \details Executes a exclusive STR instruction for 32 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -__STATIC_FORCEINLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr) -{ - uint32_t result; - - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - return(result); -} - - -/** - \brief Remove the exclusive lock - \details Removes the exclusive lock which is created by LDREX. - */ -__STATIC_FORCEINLINE void __CLREX(void) -{ - __ASM volatile ("clrex" ::: "memory"); -} - -#endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ - (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ - (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ - (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) */ - - -#if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ - (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ - (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) -/** - \brief Signed Saturate - \details Saturates a signed value. - \param [in] ARG1 Value to be saturated - \param [in] ARG2 Bit position to saturate to (1..32) - \return Saturated value - */ -#define __SSAT(ARG1,ARG2) \ -__extension__ \ -({ \ - int32_t __RES, __ARG1 = (ARG1); \ - __ASM ("ssat %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ - __RES; \ - }) - - -/** - \brief Unsigned Saturate - \details Saturates an unsigned value. - \param [in] ARG1 Value to be saturated - \param [in] ARG2 Bit position to saturate to (0..31) - \return Saturated value - */ -#define __USAT(ARG1,ARG2) \ - __extension__ \ -({ \ - uint32_t __RES, __ARG1 = (ARG1); \ - __ASM ("usat %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ - __RES; \ - }) - - -/** - \brief Rotate Right with Extend (32 bit) - \details Moves each bit of a bitstring right by one bit. - The carry input is shifted in at the left end of the bitstring. - \param [in] value Value to rotate - \return Rotated value - */ -__STATIC_FORCEINLINE uint32_t __RRX(uint32_t value) -{ - uint32_t result; - - __ASM volatile ("rrx %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); - return(result); -} - - -/** - \brief LDRT Unprivileged (8 bit) - \details Executes a Unprivileged LDRT instruction for 8 bit value. - \param [in] ptr Pointer to data - \return value of type uint8_t at (*ptr) - */ -__STATIC_FORCEINLINE uint8_t __LDRBT(volatile uint8_t *ptr) -{ - uint32_t result; - -#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) - __ASM volatile ("ldrbt %0, %1" : "=r" (result) : "Q" (*ptr) ); -#else - /* Prior to GCC 4.8, "Q" will be expanded to [rx, #0] which is not - accepted by assembler. So has to use following less efficient pattern. - */ - __ASM volatile ("ldrbt %0, [%1]" : "=r" (result) : "r" (ptr) : "memory" ); -#endif - return ((uint8_t) result); /* Add explicit type cast here */ -} - - -/** - \brief LDRT Unprivileged (16 bit) - \details Executes a Unprivileged LDRT instruction for 16 bit values. - \param [in] ptr Pointer to data - \return value of type uint16_t at (*ptr) - */ -__STATIC_FORCEINLINE uint16_t __LDRHT(volatile uint16_t *ptr) -{ - uint32_t result; - -#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) - __ASM volatile ("ldrht %0, %1" : "=r" (result) : "Q" (*ptr) ); -#else - /* Prior to GCC 4.8, "Q" will be expanded to [rx, #0] which is not - accepted by assembler. So has to use following less efficient pattern. - */ - __ASM volatile ("ldrht %0, [%1]" : "=r" (result) : "r" (ptr) : "memory" ); -#endif - return ((uint16_t) result); /* Add explicit type cast here */ -} - - -/** - \brief LDRT Unprivileged (32 bit) - \details Executes a Unprivileged LDRT instruction for 32 bit values. - \param [in] ptr Pointer to data - \return value of type uint32_t at (*ptr) - */ -__STATIC_FORCEINLINE uint32_t __LDRT(volatile uint32_t *ptr) -{ - uint32_t result; - - __ASM volatile ("ldrt %0, %1" : "=r" (result) : "Q" (*ptr) ); - return(result); -} - - -/** - \brief STRT Unprivileged (8 bit) - \details Executes a Unprivileged STRT instruction for 8 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - */ -__STATIC_FORCEINLINE void __STRBT(uint8_t value, volatile uint8_t *ptr) -{ - __ASM volatile ("strbt %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); -} - - -/** - \brief STRT Unprivileged (16 bit) - \details Executes a Unprivileged STRT instruction for 16 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - */ -__STATIC_FORCEINLINE void __STRHT(uint16_t value, volatile uint16_t *ptr) -{ - __ASM volatile ("strht %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); -} - - -/** - \brief STRT Unprivileged (32 bit) - \details Executes a Unprivileged STRT instruction for 32 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - */ -__STATIC_FORCEINLINE void __STRT(uint32_t value, volatile uint32_t *ptr) -{ - __ASM volatile ("strt %1, %0" : "=Q" (*ptr) : "r" (value) ); -} - -#else /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ - (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ - (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) */ - -/** - \brief Signed Saturate - \details Saturates a signed value. - \param [in] value Value to be saturated - \param [in] sat Bit position to saturate to (1..32) - \return Saturated value - */ -__STATIC_FORCEINLINE int32_t __SSAT(int32_t val, uint32_t sat) -{ - if ((sat >= 1U) && (sat <= 32U)) - { - const int32_t max = (int32_t)((1U << (sat - 1U)) - 1U); - const int32_t min = -1 - max ; - if (val > max) - { - return max; - } - else if (val < min) - { - return min; - } - } - return val; -} - -/** - \brief Unsigned Saturate - \details Saturates an unsigned value. - \param [in] value Value to be saturated - \param [in] sat Bit position to saturate to (0..31) - \return Saturated value - */ -__STATIC_FORCEINLINE uint32_t __USAT(int32_t val, uint32_t sat) -{ - if (sat <= 31U) - { - const uint32_t max = ((1U << sat) - 1U); - if (val > (int32_t)max) - { - return max; - } - else if (val < 0) - { - return 0U; - } - } - return (uint32_t)val; -} - -#endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ - (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ - (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) */ - - -#if ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ - (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) -/** - \brief Load-Acquire (8 bit) - \details Executes a LDAB instruction for 8 bit value. - \param [in] ptr Pointer to data - \return value of type uint8_t at (*ptr) - */ -__STATIC_FORCEINLINE uint8_t __LDAB(volatile uint8_t *ptr) -{ - uint32_t result; - - __ASM volatile ("ldab %0, %1" : "=r" (result) : "Q" (*ptr) ); - return ((uint8_t) result); -} - - -/** - \brief Load-Acquire (16 bit) - \details Executes a LDAH instruction for 16 bit values. - \param [in] ptr Pointer to data - \return value of type uint16_t at (*ptr) - */ -__STATIC_FORCEINLINE uint16_t __LDAH(volatile uint16_t *ptr) -{ - uint32_t result; - - __ASM volatile ("ldah %0, %1" : "=r" (result) : "Q" (*ptr) ); - return ((uint16_t) result); -} - - -/** - \brief Load-Acquire (32 bit) - \details Executes a LDA instruction for 32 bit values. - \param [in] ptr Pointer to data - \return value of type uint32_t at (*ptr) - */ -__STATIC_FORCEINLINE uint32_t __LDA(volatile uint32_t *ptr) -{ - uint32_t result; - - __ASM volatile ("lda %0, %1" : "=r" (result) : "Q" (*ptr) ); - return(result); -} - - -/** - \brief Store-Release (8 bit) - \details Executes a STLB instruction for 8 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - */ -__STATIC_FORCEINLINE void __STLB(uint8_t value, volatile uint8_t *ptr) -{ - __ASM volatile ("stlb %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); -} - - -/** - \brief Store-Release (16 bit) - \details Executes a STLH instruction for 16 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - */ -__STATIC_FORCEINLINE void __STLH(uint16_t value, volatile uint16_t *ptr) -{ - __ASM volatile ("stlh %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); -} - - -/** - \brief Store-Release (32 bit) - \details Executes a STL instruction for 32 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - */ -__STATIC_FORCEINLINE void __STL(uint32_t value, volatile uint32_t *ptr) -{ - __ASM volatile ("stl %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); -} - - -/** - \brief Load-Acquire Exclusive (8 bit) - \details Executes a LDAB exclusive instruction for 8 bit value. - \param [in] ptr Pointer to data - \return value of type uint8_t at (*ptr) - */ -__STATIC_FORCEINLINE uint8_t __LDAEXB(volatile uint8_t *ptr) -{ - uint32_t result; - - __ASM volatile ("ldaexb %0, %1" : "=r" (result) : "Q" (*ptr) ); - return ((uint8_t) result); -} - - -/** - \brief Load-Acquire Exclusive (16 bit) - \details Executes a LDAH exclusive instruction for 16 bit values. - \param [in] ptr Pointer to data - \return value of type uint16_t at (*ptr) - */ -__STATIC_FORCEINLINE uint16_t __LDAEXH(volatile uint16_t *ptr) -{ - uint32_t result; - - __ASM volatile ("ldaexh %0, %1" : "=r" (result) : "Q" (*ptr) ); - return ((uint16_t) result); -} - - -/** - \brief Load-Acquire Exclusive (32 bit) - \details Executes a LDA exclusive instruction for 32 bit values. - \param [in] ptr Pointer to data - \return value of type uint32_t at (*ptr) - */ -__STATIC_FORCEINLINE uint32_t __LDAEX(volatile uint32_t *ptr) -{ - uint32_t result; - - __ASM volatile ("ldaex %0, %1" : "=r" (result) : "Q" (*ptr) ); - return(result); -} - - -/** - \brief Store-Release Exclusive (8 bit) - \details Executes a STLB exclusive instruction for 8 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -__STATIC_FORCEINLINE uint32_t __STLEXB(uint8_t value, volatile uint8_t *ptr) -{ - uint32_t result; - - __ASM volatile ("stlexb %0, %2, %1" : "=&r" (result), "=Q" (*ptr) : "r" ((uint32_t)value) ); - return(result); -} - - -/** - \brief Store-Release Exclusive (16 bit) - \details Executes a STLH exclusive instruction for 16 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -__STATIC_FORCEINLINE uint32_t __STLEXH(uint16_t value, volatile uint16_t *ptr) -{ - uint32_t result; - - __ASM volatile ("stlexh %0, %2, %1" : "=&r" (result), "=Q" (*ptr) : "r" ((uint32_t)value) ); - return(result); -} - - -/** - \brief Store-Release Exclusive (32 bit) - \details Executes a STL exclusive instruction for 32 bit values. - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -__STATIC_FORCEINLINE uint32_t __STLEX(uint32_t value, volatile uint32_t *ptr) -{ - uint32_t result; - - __ASM volatile ("stlex %0, %2, %1" : "=&r" (result), "=Q" (*ptr) : "r" ((uint32_t)value) ); - return(result); -} - -#endif /* ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ - (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) */ - -/*@}*/ /* end of group CMSIS_Core_InstructionInterface */ - - -/* ################### Compiler specific Intrinsics ########################### */ -/** \defgroup CMSIS_SIMD_intrinsics CMSIS SIMD Intrinsics - Access to dedicated SIMD instructions - @{ -*/ - -#if (defined (__ARM_FEATURE_DSP) && (__ARM_FEATURE_DSP == 1)) - -__STATIC_FORCEINLINE uint32_t __SADD8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("sadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __QADD8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("qadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SHADD8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("shadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UADD8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UQADD8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uqadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UHADD8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uhadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - - -__STATIC_FORCEINLINE uint32_t __SSUB8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("ssub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __QSUB8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("qsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SHSUB8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("shsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __USUB8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("usub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UQSUB8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uqsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UHSUB8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uhsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - - -__STATIC_FORCEINLINE uint32_t __SADD16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("sadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __QADD16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("qadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SHADD16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("shadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UADD16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UQADD16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uqadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UHADD16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uhadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SSUB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("ssub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __QSUB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("qsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SHSUB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("shsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __USUB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("usub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UQSUB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uqsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UHSUB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uhsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SASX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("sasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __QASX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("qasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SHASX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("shasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UASX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UQASX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uqasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UHASX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uhasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SSAX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("ssax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __QSAX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("qsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SHSAX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("shsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __USAX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("usax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UQSAX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uqsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UHSAX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uhsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __USAD8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("usad8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __USADA8(uint32_t op1, uint32_t op2, uint32_t op3) -{ - uint32_t result; - - __ASM volatile ("usada8 %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); - return(result); -} - -#define __SSAT16(ARG1,ARG2) \ -({ \ - int32_t __RES, __ARG1 = (ARG1); \ - __ASM ("ssat16 %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ - __RES; \ - }) - -#define __USAT16(ARG1,ARG2) \ -({ \ - uint32_t __RES, __ARG1 = (ARG1); \ - __ASM ("usat16 %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ - __RES; \ - }) - -__STATIC_FORCEINLINE uint32_t __UXTB16(uint32_t op1) -{ - uint32_t result; - - __ASM volatile ("uxtb16 %0, %1" : "=r" (result) : "r" (op1)); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __UXTAB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uxtab16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SXTB16(uint32_t op1) -{ - uint32_t result; - - __ASM volatile ("sxtb16 %0, %1" : "=r" (result) : "r" (op1)); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SXTAB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("sxtab16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SMUAD (uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("smuad %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SMUADX (uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("smuadx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SMLAD (uint32_t op1, uint32_t op2, uint32_t op3) -{ - uint32_t result; - - __ASM volatile ("smlad %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SMLADX (uint32_t op1, uint32_t op2, uint32_t op3) -{ - uint32_t result; - - __ASM volatile ("smladx %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); - return(result); -} - -__STATIC_FORCEINLINE uint64_t __SMLALD (uint32_t op1, uint32_t op2, uint64_t acc) -{ - union llreg_u{ - uint32_t w32[2]; - uint64_t w64; - } llr; - llr.w64 = acc; - -#ifndef __ARMEB__ /* Little endian */ - __ASM volatile ("smlald %0, %1, %2, %3" : "=r" (llr.w32[0]), "=r" (llr.w32[1]): "r" (op1), "r" (op2) , "0" (llr.w32[0]), "1" (llr.w32[1]) ); -#else /* Big endian */ - __ASM volatile ("smlald %0, %1, %2, %3" : "=r" (llr.w32[1]), "=r" (llr.w32[0]): "r" (op1), "r" (op2) , "0" (llr.w32[1]), "1" (llr.w32[0]) ); -#endif - - return(llr.w64); -} - -__STATIC_FORCEINLINE uint64_t __SMLALDX (uint32_t op1, uint32_t op2, uint64_t acc) -{ - union llreg_u{ - uint32_t w32[2]; - uint64_t w64; - } llr; - llr.w64 = acc; - -#ifndef __ARMEB__ /* Little endian */ - __ASM volatile ("smlaldx %0, %1, %2, %3" : "=r" (llr.w32[0]), "=r" (llr.w32[1]): "r" (op1), "r" (op2) , "0" (llr.w32[0]), "1" (llr.w32[1]) ); -#else /* Big endian */ - __ASM volatile ("smlaldx %0, %1, %2, %3" : "=r" (llr.w32[1]), "=r" (llr.w32[0]): "r" (op1), "r" (op2) , "0" (llr.w32[1]), "1" (llr.w32[0]) ); -#endif - - return(llr.w64); -} - -__STATIC_FORCEINLINE uint32_t __SMUSD (uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("smusd %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SMUSDX (uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("smusdx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SMLSD (uint32_t op1, uint32_t op2, uint32_t op3) -{ - uint32_t result; - - __ASM volatile ("smlsd %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); - return(result); -} - -__STATIC_FORCEINLINE uint32_t __SMLSDX (uint32_t op1, uint32_t op2, uint32_t op3) -{ - uint32_t result; - - __ASM volatile ("smlsdx %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); - return(result); -} - -__STATIC_FORCEINLINE uint64_t __SMLSLD (uint32_t op1, uint32_t op2, uint64_t acc) -{ - union llreg_u{ - uint32_t w32[2]; - uint64_t w64; - } llr; - llr.w64 = acc; - -#ifndef __ARMEB__ /* Little endian */ - __ASM volatile ("smlsld %0, %1, %2, %3" : "=r" (llr.w32[0]), "=r" (llr.w32[1]): "r" (op1), "r" (op2) , "0" (llr.w32[0]), "1" (llr.w32[1]) ); -#else /* Big endian */ - __ASM volatile ("smlsld %0, %1, %2, %3" : "=r" (llr.w32[1]), "=r" (llr.w32[0]): "r" (op1), "r" (op2) , "0" (llr.w32[1]), "1" (llr.w32[0]) ); -#endif - - return(llr.w64); -} - -__STATIC_FORCEINLINE uint64_t __SMLSLDX (uint32_t op1, uint32_t op2, uint64_t acc) -{ - union llreg_u{ - uint32_t w32[2]; - uint64_t w64; - } llr; - llr.w64 = acc; - -#ifndef __ARMEB__ /* Little endian */ - __ASM volatile ("smlsldx %0, %1, %2, %3" : "=r" (llr.w32[0]), "=r" (llr.w32[1]): "r" (op1), "r" (op2) , "0" (llr.w32[0]), "1" (llr.w32[1]) ); -#else /* Big endian */ - __ASM volatile ("smlsldx %0, %1, %2, %3" : "=r" (llr.w32[1]), "=r" (llr.w32[0]): "r" (op1), "r" (op2) , "0" (llr.w32[1]), "1" (llr.w32[0]) ); -#endif - - return(llr.w64); -} - -__STATIC_FORCEINLINE uint32_t __SEL (uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("sel %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE int32_t __QADD( int32_t op1, int32_t op2) -{ - int32_t result; - - __ASM volatile ("qadd %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__STATIC_FORCEINLINE int32_t __QSUB( int32_t op1, int32_t op2) -{ - int32_t result; - - __ASM volatile ("qsub %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -#if 0 -#define __PKHBT(ARG1,ARG2,ARG3) \ -({ \ - uint32_t __RES, __ARG1 = (ARG1), __ARG2 = (ARG2); \ - __ASM ("pkhbt %0, %1, %2, lsl %3" : "=r" (__RES) : "r" (__ARG1), "r" (__ARG2), "I" (ARG3) ); \ - __RES; \ - }) - -#define __PKHTB(ARG1,ARG2,ARG3) \ -({ \ - uint32_t __RES, __ARG1 = (ARG1), __ARG2 = (ARG2); \ - if (ARG3 == 0) \ - __ASM ("pkhtb %0, %1, %2" : "=r" (__RES) : "r" (__ARG1), "r" (__ARG2) ); \ - else \ - __ASM ("pkhtb %0, %1, %2, asr %3" : "=r" (__RES) : "r" (__ARG1), "r" (__ARG2), "I" (ARG3) ); \ - __RES; \ - }) -#endif - -#define __PKHBT(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0x0000FFFFUL) | \ - ((((uint32_t)(ARG2)) << (ARG3)) & 0xFFFF0000UL) ) - -#define __PKHTB(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0xFFFF0000UL) | \ - ((((uint32_t)(ARG2)) >> (ARG3)) & 0x0000FFFFUL) ) - -__STATIC_FORCEINLINE int32_t __SMMLA (int32_t op1, int32_t op2, int32_t op3) -{ - int32_t result; - - __ASM volatile ("smmla %0, %1, %2, %3" : "=r" (result): "r" (op1), "r" (op2), "r" (op3) ); - return(result); -} - -#endif /* (__ARM_FEATURE_DSP == 1) */ -/*@} end of group CMSIS_SIMD_intrinsics */ - - -#pragma GCC diagnostic pop - -#endif /* __CMSIS_GCC_H */ diff --git a/Drivers/CMSIS/Include/cmsis_iccarm.h b/Drivers/CMSIS/Include/cmsis_iccarm.h deleted file mode 100644 index 12d68fd..0000000 --- a/Drivers/CMSIS/Include/cmsis_iccarm.h +++ /dev/null @@ -1,964 +0,0 @@ -/**************************************************************************//** - * @file cmsis_iccarm.h - * @brief CMSIS compiler ICCARM (IAR Compiler for Arm) header file - * @version V5.1.0 - * @date 08. May 2019 - ******************************************************************************/ - -//------------------------------------------------------------------------------ -// -// Copyright (c) 2017-2019 IAR Systems -// Copyright (c) 2017-2019 Arm Limited. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License") -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -//------------------------------------------------------------------------------ - - -#ifndef __CMSIS_ICCARM_H__ -#define __CMSIS_ICCARM_H__ - -#ifndef __ICCARM__ - #error This file should only be compiled by ICCARM -#endif - -#pragma system_include - -#define __IAR_FT _Pragma("inline=forced") __intrinsic - -#if (__VER__ >= 8000000) - #define __ICCARM_V8 1 -#else - #define __ICCARM_V8 0 -#endif - -#ifndef __ALIGNED - #if __ICCARM_V8 - #define __ALIGNED(x) __attribute__((aligned(x))) - #elif (__VER__ >= 7080000) - /* Needs IAR language extensions */ - #define __ALIGNED(x) __attribute__((aligned(x))) - #else - #warning No compiler specific solution for __ALIGNED.__ALIGNED is ignored. - #define __ALIGNED(x) - #endif -#endif - - -/* Define compiler macros for CPU architecture, used in CMSIS 5. - */ -#if __ARM_ARCH_6M__ || __ARM_ARCH_7M__ || __ARM_ARCH_7EM__ || __ARM_ARCH_8M_BASE__ || __ARM_ARCH_8M_MAIN__ -/* Macros already defined */ -#else - #if defined(__ARM8M_MAINLINE__) || defined(__ARM8EM_MAINLINE__) - #define __ARM_ARCH_8M_MAIN__ 1 - #elif defined(__ARM8M_BASELINE__) - #define __ARM_ARCH_8M_BASE__ 1 - #elif defined(__ARM_ARCH_PROFILE) && __ARM_ARCH_PROFILE == 'M' - #if __ARM_ARCH == 6 - #define __ARM_ARCH_6M__ 1 - #elif __ARM_ARCH == 7 - #if __ARM_FEATURE_DSP - #define __ARM_ARCH_7EM__ 1 - #else - #define __ARM_ARCH_7M__ 1 - #endif - #endif /* __ARM_ARCH */ - #endif /* __ARM_ARCH_PROFILE == 'M' */ -#endif - -/* Alternativ core deduction for older ICCARM's */ -#if !defined(__ARM_ARCH_6M__) && !defined(__ARM_ARCH_7M__) && !defined(__ARM_ARCH_7EM__) && \ - !defined(__ARM_ARCH_8M_BASE__) && !defined(__ARM_ARCH_8M_MAIN__) - #if defined(__ARM6M__) && (__CORE__ == __ARM6M__) - #define __ARM_ARCH_6M__ 1 - #elif defined(__ARM7M__) && (__CORE__ == __ARM7M__) - #define __ARM_ARCH_7M__ 1 - #elif defined(__ARM7EM__) && (__CORE__ == __ARM7EM__) - #define __ARM_ARCH_7EM__ 1 - #elif defined(__ARM8M_BASELINE__) && (__CORE == __ARM8M_BASELINE__) - #define __ARM_ARCH_8M_BASE__ 1 - #elif defined(__ARM8M_MAINLINE__) && (__CORE == __ARM8M_MAINLINE__) - #define __ARM_ARCH_8M_MAIN__ 1 - #elif defined(__ARM8EM_MAINLINE__) && (__CORE == __ARM8EM_MAINLINE__) - #define __ARM_ARCH_8M_MAIN__ 1 - #else - #error "Unknown target." - #endif -#endif - - - -#if defined(__ARM_ARCH_6M__) && __ARM_ARCH_6M__==1 - #define __IAR_M0_FAMILY 1 -#elif defined(__ARM_ARCH_8M_BASE__) && __ARM_ARCH_8M_BASE__==1 - #define __IAR_M0_FAMILY 1 -#else - #define __IAR_M0_FAMILY 0 -#endif - - -#ifndef __ASM - #define __ASM __asm -#endif - -#ifndef __COMPILER_BARRIER - #define __COMPILER_BARRIER() __ASM volatile("":::"memory") -#endif - -#ifndef __INLINE - #define __INLINE inline -#endif - -#ifndef __NO_RETURN - #if __ICCARM_V8 - #define __NO_RETURN __attribute__((__noreturn__)) - #else - #define __NO_RETURN _Pragma("object_attribute=__noreturn") - #endif -#endif - -#ifndef __PACKED - #if __ICCARM_V8 - #define __PACKED __attribute__((packed, aligned(1))) - #else - /* Needs IAR language extensions */ - #define __PACKED __packed - #endif -#endif - -#ifndef __PACKED_STRUCT - #if __ICCARM_V8 - #define __PACKED_STRUCT struct __attribute__((packed, aligned(1))) - #else - /* Needs IAR language extensions */ - #define __PACKED_STRUCT __packed struct - #endif -#endif - -#ifndef __PACKED_UNION - #if __ICCARM_V8 - #define __PACKED_UNION union __attribute__((packed, aligned(1))) - #else - /* Needs IAR language extensions */ - #define __PACKED_UNION __packed union - #endif -#endif - -#ifndef __RESTRICT - #if __ICCARM_V8 - #define __RESTRICT __restrict - #else - /* Needs IAR language extensions */ - #define __RESTRICT restrict - #endif -#endif - -#ifndef __STATIC_INLINE - #define __STATIC_INLINE static inline -#endif - -#ifndef __FORCEINLINE - #define __FORCEINLINE _Pragma("inline=forced") -#endif - -#ifndef __STATIC_FORCEINLINE - #define __STATIC_FORCEINLINE __FORCEINLINE __STATIC_INLINE -#endif - -#ifndef __UNALIGNED_UINT16_READ -#pragma language=save -#pragma language=extended -__IAR_FT uint16_t __iar_uint16_read(void const *ptr) -{ - return *(__packed uint16_t*)(ptr); -} -#pragma language=restore -#define __UNALIGNED_UINT16_READ(PTR) __iar_uint16_read(PTR) -#endif - - -#ifndef __UNALIGNED_UINT16_WRITE -#pragma language=save -#pragma language=extended -__IAR_FT void __iar_uint16_write(void const *ptr, uint16_t val) -{ - *(__packed uint16_t*)(ptr) = val;; -} -#pragma language=restore -#define __UNALIGNED_UINT16_WRITE(PTR,VAL) __iar_uint16_write(PTR,VAL) -#endif - -#ifndef __UNALIGNED_UINT32_READ -#pragma language=save -#pragma language=extended -__IAR_FT uint32_t __iar_uint32_read(void const *ptr) -{ - return *(__packed uint32_t*)(ptr); -} -#pragma language=restore -#define __UNALIGNED_UINT32_READ(PTR) __iar_uint32_read(PTR) -#endif - -#ifndef __UNALIGNED_UINT32_WRITE -#pragma language=save -#pragma language=extended -__IAR_FT void __iar_uint32_write(void const *ptr, uint32_t val) -{ - *(__packed uint32_t*)(ptr) = val;; -} -#pragma language=restore -#define __UNALIGNED_UINT32_WRITE(PTR,VAL) __iar_uint32_write(PTR,VAL) -#endif - -#ifndef __UNALIGNED_UINT32 /* deprecated */ -#pragma language=save -#pragma language=extended -__packed struct __iar_u32 { uint32_t v; }; -#pragma language=restore -#define __UNALIGNED_UINT32(PTR) (((struct __iar_u32 *)(PTR))->v) -#endif - -#ifndef __USED - #if __ICCARM_V8 - #define __USED __attribute__((used)) - #else - #define __USED _Pragma("__root") - #endif -#endif - -#ifndef __WEAK - #if __ICCARM_V8 - #define __WEAK __attribute__((weak)) - #else - #define __WEAK _Pragma("__weak") - #endif -#endif - -#ifndef __PROGRAM_START -#define __PROGRAM_START __iar_program_start -#endif - -#ifndef __INITIAL_SP -#define __INITIAL_SP CSTACK$$Limit -#endif - -#ifndef __STACK_LIMIT -#define __STACK_LIMIT CSTACK$$Base -#endif - -#ifndef __VECTOR_TABLE -#define __VECTOR_TABLE __vector_table -#endif - -#ifndef __VECTOR_TABLE_ATTRIBUTE -#define __VECTOR_TABLE_ATTRIBUTE @".intvec" -#endif - -#ifndef __ICCARM_INTRINSICS_VERSION__ - #define __ICCARM_INTRINSICS_VERSION__ 0 -#endif - -#if __ICCARM_INTRINSICS_VERSION__ == 2 - - #if defined(__CLZ) - #undef __CLZ - #endif - #if defined(__REVSH) - #undef __REVSH - #endif - #if defined(__RBIT) - #undef __RBIT - #endif - #if defined(__SSAT) - #undef __SSAT - #endif - #if defined(__USAT) - #undef __USAT - #endif - - #include "iccarm_builtin.h" - - #define __disable_fault_irq __iar_builtin_disable_fiq - #define __disable_irq __iar_builtin_disable_interrupt - #define __enable_fault_irq __iar_builtin_enable_fiq - #define __enable_irq __iar_builtin_enable_interrupt - #define __arm_rsr __iar_builtin_rsr - #define __arm_wsr __iar_builtin_wsr - - - #define __get_APSR() (__arm_rsr("APSR")) - #define __get_BASEPRI() (__arm_rsr("BASEPRI")) - #define __get_CONTROL() (__arm_rsr("CONTROL")) - #define __get_FAULTMASK() (__arm_rsr("FAULTMASK")) - - #if ((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \ - (defined (__FPU_USED ) && (__FPU_USED == 1U)) ) - #define __get_FPSCR() (__arm_rsr("FPSCR")) - #define __set_FPSCR(VALUE) (__arm_wsr("FPSCR", (VALUE))) - #else - #define __get_FPSCR() ( 0 ) - #define __set_FPSCR(VALUE) ((void)VALUE) - #endif - - #define __get_IPSR() (__arm_rsr("IPSR")) - #define __get_MSP() (__arm_rsr("MSP")) - #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ - (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) - // without main extensions, the non-secure MSPLIM is RAZ/WI - #define __get_MSPLIM() (0U) - #else - #define __get_MSPLIM() (__arm_rsr("MSPLIM")) - #endif - #define __get_PRIMASK() (__arm_rsr("PRIMASK")) - #define __get_PSP() (__arm_rsr("PSP")) - - #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ - (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) - // without main extensions, the non-secure PSPLIM is RAZ/WI - #define __get_PSPLIM() (0U) - #else - #define __get_PSPLIM() (__arm_rsr("PSPLIM")) - #endif - - #define __get_xPSR() (__arm_rsr("xPSR")) - - #define __set_BASEPRI(VALUE) (__arm_wsr("BASEPRI", (VALUE))) - #define __set_BASEPRI_MAX(VALUE) (__arm_wsr("BASEPRI_MAX", (VALUE))) - #define __set_CONTROL(VALUE) (__arm_wsr("CONTROL", (VALUE))) - #define __set_FAULTMASK(VALUE) (__arm_wsr("FAULTMASK", (VALUE))) - #define __set_MSP(VALUE) (__arm_wsr("MSP", (VALUE))) - - #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ - (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) - // without main extensions, the non-secure MSPLIM is RAZ/WI - #define __set_MSPLIM(VALUE) ((void)(VALUE)) - #else - #define __set_MSPLIM(VALUE) (__arm_wsr("MSPLIM", (VALUE))) - #endif - #define __set_PRIMASK(VALUE) (__arm_wsr("PRIMASK", (VALUE))) - #define __set_PSP(VALUE) (__arm_wsr("PSP", (VALUE))) - #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ - (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) - // without main extensions, the non-secure PSPLIM is RAZ/WI - #define __set_PSPLIM(VALUE) ((void)(VALUE)) - #else - #define __set_PSPLIM(VALUE) (__arm_wsr("PSPLIM", (VALUE))) - #endif - - #define __TZ_get_CONTROL_NS() (__arm_rsr("CONTROL_NS")) - #define __TZ_set_CONTROL_NS(VALUE) (__arm_wsr("CONTROL_NS", (VALUE))) - #define __TZ_get_PSP_NS() (__arm_rsr("PSP_NS")) - #define __TZ_set_PSP_NS(VALUE) (__arm_wsr("PSP_NS", (VALUE))) - #define __TZ_get_MSP_NS() (__arm_rsr("MSP_NS")) - #define __TZ_set_MSP_NS(VALUE) (__arm_wsr("MSP_NS", (VALUE))) - #define __TZ_get_SP_NS() (__arm_rsr("SP_NS")) - #define __TZ_set_SP_NS(VALUE) (__arm_wsr("SP_NS", (VALUE))) - #define __TZ_get_PRIMASK_NS() (__arm_rsr("PRIMASK_NS")) - #define __TZ_set_PRIMASK_NS(VALUE) (__arm_wsr("PRIMASK_NS", (VALUE))) - #define __TZ_get_BASEPRI_NS() (__arm_rsr("BASEPRI_NS")) - #define __TZ_set_BASEPRI_NS(VALUE) (__arm_wsr("BASEPRI_NS", (VALUE))) - #define __TZ_get_FAULTMASK_NS() (__arm_rsr("FAULTMASK_NS")) - #define __TZ_set_FAULTMASK_NS(VALUE)(__arm_wsr("FAULTMASK_NS", (VALUE))) - - #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ - (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) - // without main extensions, the non-secure PSPLIM is RAZ/WI - #define __TZ_get_PSPLIM_NS() (0U) - #define __TZ_set_PSPLIM_NS(VALUE) ((void)(VALUE)) - #else - #define __TZ_get_PSPLIM_NS() (__arm_rsr("PSPLIM_NS")) - #define __TZ_set_PSPLIM_NS(VALUE) (__arm_wsr("PSPLIM_NS", (VALUE))) - #endif - - #define __TZ_get_MSPLIM_NS() (__arm_rsr("MSPLIM_NS")) - #define __TZ_set_MSPLIM_NS(VALUE) (__arm_wsr("MSPLIM_NS", (VALUE))) - - #define __NOP __iar_builtin_no_operation - - #define __CLZ __iar_builtin_CLZ - #define __CLREX __iar_builtin_CLREX - - #define __DMB __iar_builtin_DMB - #define __DSB __iar_builtin_DSB - #define __ISB __iar_builtin_ISB - - #define __LDREXB __iar_builtin_LDREXB - #define __LDREXH __iar_builtin_LDREXH - #define __LDREXW __iar_builtin_LDREX - - #define __RBIT __iar_builtin_RBIT - #define __REV __iar_builtin_REV - #define __REV16 __iar_builtin_REV16 - - __IAR_FT int16_t __REVSH(int16_t val) - { - return (int16_t) __iar_builtin_REVSH(val); - } - - #define __ROR __iar_builtin_ROR - #define __RRX __iar_builtin_RRX - - #define __SEV __iar_builtin_SEV - - #if !__IAR_M0_FAMILY - #define __SSAT __iar_builtin_SSAT - #endif - - #define __STREXB __iar_builtin_STREXB - #define __STREXH __iar_builtin_STREXH - #define __STREXW __iar_builtin_STREX - - #if !__IAR_M0_FAMILY - #define __USAT __iar_builtin_USAT - #endif - - #define __WFE __iar_builtin_WFE - #define __WFI __iar_builtin_WFI - - #if __ARM_MEDIA__ - #define __SADD8 __iar_builtin_SADD8 - #define __QADD8 __iar_builtin_QADD8 - #define __SHADD8 __iar_builtin_SHADD8 - #define __UADD8 __iar_builtin_UADD8 - #define __UQADD8 __iar_builtin_UQADD8 - #define __UHADD8 __iar_builtin_UHADD8 - #define __SSUB8 __iar_builtin_SSUB8 - #define __QSUB8 __iar_builtin_QSUB8 - #define __SHSUB8 __iar_builtin_SHSUB8 - #define __USUB8 __iar_builtin_USUB8 - #define __UQSUB8 __iar_builtin_UQSUB8 - #define __UHSUB8 __iar_builtin_UHSUB8 - #define __SADD16 __iar_builtin_SADD16 - #define __QADD16 __iar_builtin_QADD16 - #define __SHADD16 __iar_builtin_SHADD16 - #define __UADD16 __iar_builtin_UADD16 - #define __UQADD16 __iar_builtin_UQADD16 - #define __UHADD16 __iar_builtin_UHADD16 - #define __SSUB16 __iar_builtin_SSUB16 - #define __QSUB16 __iar_builtin_QSUB16 - #define __SHSUB16 __iar_builtin_SHSUB16 - #define __USUB16 __iar_builtin_USUB16 - #define __UQSUB16 __iar_builtin_UQSUB16 - #define __UHSUB16 __iar_builtin_UHSUB16 - #define __SASX __iar_builtin_SASX - #define __QASX __iar_builtin_QASX - #define __SHASX __iar_builtin_SHASX - #define __UASX __iar_builtin_UASX - #define __UQASX __iar_builtin_UQASX - #define __UHASX __iar_builtin_UHASX - #define __SSAX __iar_builtin_SSAX - #define __QSAX __iar_builtin_QSAX - #define __SHSAX __iar_builtin_SHSAX - #define __USAX __iar_builtin_USAX - #define __UQSAX __iar_builtin_UQSAX - #define __UHSAX __iar_builtin_UHSAX - #define __USAD8 __iar_builtin_USAD8 - #define __USADA8 __iar_builtin_USADA8 - #define __SSAT16 __iar_builtin_SSAT16 - #define __USAT16 __iar_builtin_USAT16 - #define __UXTB16 __iar_builtin_UXTB16 - #define __UXTAB16 __iar_builtin_UXTAB16 - #define __SXTB16 __iar_builtin_SXTB16 - #define __SXTAB16 __iar_builtin_SXTAB16 - #define __SMUAD __iar_builtin_SMUAD - #define __SMUADX __iar_builtin_SMUADX - #define __SMMLA __iar_builtin_SMMLA - #define __SMLAD __iar_builtin_SMLAD - #define __SMLADX __iar_builtin_SMLADX - #define __SMLALD __iar_builtin_SMLALD - #define __SMLALDX __iar_builtin_SMLALDX - #define __SMUSD __iar_builtin_SMUSD - #define __SMUSDX __iar_builtin_SMUSDX - #define __SMLSD __iar_builtin_SMLSD - #define __SMLSDX __iar_builtin_SMLSDX - #define __SMLSLD __iar_builtin_SMLSLD - #define __SMLSLDX __iar_builtin_SMLSLDX - #define __SEL __iar_builtin_SEL - #define __QADD __iar_builtin_QADD - #define __QSUB __iar_builtin_QSUB - #define __PKHBT __iar_builtin_PKHBT - #define __PKHTB __iar_builtin_PKHTB - #endif - -#else /* __ICCARM_INTRINSICS_VERSION__ == 2 */ - - #if __IAR_M0_FAMILY - /* Avoid clash between intrinsics.h and arm_math.h when compiling for Cortex-M0. */ - #define __CLZ __cmsis_iar_clz_not_active - #define __SSAT __cmsis_iar_ssat_not_active - #define __USAT __cmsis_iar_usat_not_active - #define __RBIT __cmsis_iar_rbit_not_active - #define __get_APSR __cmsis_iar_get_APSR_not_active - #endif - - - #if (!((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \ - (defined (__FPU_USED ) && (__FPU_USED == 1U)) )) - #define __get_FPSCR __cmsis_iar_get_FPSR_not_active - #define __set_FPSCR __cmsis_iar_set_FPSR_not_active - #endif - - #ifdef __INTRINSICS_INCLUDED - #error intrinsics.h is already included previously! - #endif - - #include - - #if __IAR_M0_FAMILY - /* Avoid clash between intrinsics.h and arm_math.h when compiling for Cortex-M0. */ - #undef __CLZ - #undef __SSAT - #undef __USAT - #undef __RBIT - #undef __get_APSR - - __STATIC_INLINE uint8_t __CLZ(uint32_t data) - { - if (data == 0U) { return 32U; } - - uint32_t count = 0U; - uint32_t mask = 0x80000000U; - - while ((data & mask) == 0U) - { - count += 1U; - mask = mask >> 1U; - } - return count; - } - - __STATIC_INLINE uint32_t __RBIT(uint32_t v) - { - uint8_t sc = 31U; - uint32_t r = v; - for (v >>= 1U; v; v >>= 1U) - { - r <<= 1U; - r |= v & 1U; - sc--; - } - return (r << sc); - } - - __STATIC_INLINE uint32_t __get_APSR(void) - { - uint32_t res; - __asm("MRS %0,APSR" : "=r" (res)); - return res; - } - - #endif - - #if (!((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \ - (defined (__FPU_USED ) && (__FPU_USED == 1U)) )) - #undef __get_FPSCR - #undef __set_FPSCR - #define __get_FPSCR() (0) - #define __set_FPSCR(VALUE) ((void)VALUE) - #endif - - #pragma diag_suppress=Pe940 - #pragma diag_suppress=Pe177 - - #define __enable_irq __enable_interrupt - #define __disable_irq __disable_interrupt - #define __NOP __no_operation - - #define __get_xPSR __get_PSR - - #if (!defined(__ARM_ARCH_6M__) || __ARM_ARCH_6M__==0) - - __IAR_FT uint32_t __LDREXW(uint32_t volatile *ptr) - { - return __LDREX((unsigned long *)ptr); - } - - __IAR_FT uint32_t __STREXW(uint32_t value, uint32_t volatile *ptr) - { - return __STREX(value, (unsigned long *)ptr); - } - #endif - - - /* __CORTEX_M is defined in core_cm0.h, core_cm3.h and core_cm4.h. */ - #if (__CORTEX_M >= 0x03) - - __IAR_FT uint32_t __RRX(uint32_t value) - { - uint32_t result; - __ASM("RRX %0, %1" : "=r"(result) : "r" (value) : "cc"); - return(result); - } - - __IAR_FT void __set_BASEPRI_MAX(uint32_t value) - { - __asm volatile("MSR BASEPRI_MAX,%0"::"r" (value)); - } - - - #define __enable_fault_irq __enable_fiq - #define __disable_fault_irq __disable_fiq - - - #endif /* (__CORTEX_M >= 0x03) */ - - __IAR_FT uint32_t __ROR(uint32_t op1, uint32_t op2) - { - return (op1 >> op2) | (op1 << ((sizeof(op1)*8)-op2)); - } - - #if ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ - (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) - - __IAR_FT uint32_t __get_MSPLIM(void) - { - uint32_t res; - #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ - (!defined (__ARM_FEATURE_CMSE ) || (__ARM_FEATURE_CMSE < 3))) - // without main extensions, the non-secure MSPLIM is RAZ/WI - res = 0U; - #else - __asm volatile("MRS %0,MSPLIM" : "=r" (res)); - #endif - return res; - } - - __IAR_FT void __set_MSPLIM(uint32_t value) - { - #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ - (!defined (__ARM_FEATURE_CMSE ) || (__ARM_FEATURE_CMSE < 3))) - // without main extensions, the non-secure MSPLIM is RAZ/WI - (void)value; - #else - __asm volatile("MSR MSPLIM,%0" :: "r" (value)); - #endif - } - - __IAR_FT uint32_t __get_PSPLIM(void) - { - uint32_t res; - #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ - (!defined (__ARM_FEATURE_CMSE ) || (__ARM_FEATURE_CMSE < 3))) - // without main extensions, the non-secure PSPLIM is RAZ/WI - res = 0U; - #else - __asm volatile("MRS %0,PSPLIM" : "=r" (res)); - #endif - return res; - } - - __IAR_FT void __set_PSPLIM(uint32_t value) - { - #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ - (!defined (__ARM_FEATURE_CMSE ) || (__ARM_FEATURE_CMSE < 3))) - // without main extensions, the non-secure PSPLIM is RAZ/WI - (void)value; - #else - __asm volatile("MSR PSPLIM,%0" :: "r" (value)); - #endif - } - - __IAR_FT uint32_t __TZ_get_CONTROL_NS(void) - { - uint32_t res; - __asm volatile("MRS %0,CONTROL_NS" : "=r" (res)); - return res; - } - - __IAR_FT void __TZ_set_CONTROL_NS(uint32_t value) - { - __asm volatile("MSR CONTROL_NS,%0" :: "r" (value)); - } - - __IAR_FT uint32_t __TZ_get_PSP_NS(void) - { - uint32_t res; - __asm volatile("MRS %0,PSP_NS" : "=r" (res)); - return res; - } - - __IAR_FT void __TZ_set_PSP_NS(uint32_t value) - { - __asm volatile("MSR PSP_NS,%0" :: "r" (value)); - } - - __IAR_FT uint32_t __TZ_get_MSP_NS(void) - { - uint32_t res; - __asm volatile("MRS %0,MSP_NS" : "=r" (res)); - return res; - } - - __IAR_FT void __TZ_set_MSP_NS(uint32_t value) - { - __asm volatile("MSR MSP_NS,%0" :: "r" (value)); - } - - __IAR_FT uint32_t __TZ_get_SP_NS(void) - { - uint32_t res; - __asm volatile("MRS %0,SP_NS" : "=r" (res)); - return res; - } - __IAR_FT void __TZ_set_SP_NS(uint32_t value) - { - __asm volatile("MSR SP_NS,%0" :: "r" (value)); - } - - __IAR_FT uint32_t __TZ_get_PRIMASK_NS(void) - { - uint32_t res; - __asm volatile("MRS %0,PRIMASK_NS" : "=r" (res)); - return res; - } - - __IAR_FT void __TZ_set_PRIMASK_NS(uint32_t value) - { - __asm volatile("MSR PRIMASK_NS,%0" :: "r" (value)); - } - - __IAR_FT uint32_t __TZ_get_BASEPRI_NS(void) - { - uint32_t res; - __asm volatile("MRS %0,BASEPRI_NS" : "=r" (res)); - return res; - } - - __IAR_FT void __TZ_set_BASEPRI_NS(uint32_t value) - { - __asm volatile("MSR BASEPRI_NS,%0" :: "r" (value)); - } - - __IAR_FT uint32_t __TZ_get_FAULTMASK_NS(void) - { - uint32_t res; - __asm volatile("MRS %0,FAULTMASK_NS" : "=r" (res)); - return res; - } - - __IAR_FT void __TZ_set_FAULTMASK_NS(uint32_t value) - { - __asm volatile("MSR FAULTMASK_NS,%0" :: "r" (value)); - } - - __IAR_FT uint32_t __TZ_get_PSPLIM_NS(void) - { - uint32_t res; - #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ - (!defined (__ARM_FEATURE_CMSE ) || (__ARM_FEATURE_CMSE < 3))) - // without main extensions, the non-secure PSPLIM is RAZ/WI - res = 0U; - #else - __asm volatile("MRS %0,PSPLIM_NS" : "=r" (res)); - #endif - return res; - } - - __IAR_FT void __TZ_set_PSPLIM_NS(uint32_t value) - { - #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ - (!defined (__ARM_FEATURE_CMSE ) || (__ARM_FEATURE_CMSE < 3))) - // without main extensions, the non-secure PSPLIM is RAZ/WI - (void)value; - #else - __asm volatile("MSR PSPLIM_NS,%0" :: "r" (value)); - #endif - } - - __IAR_FT uint32_t __TZ_get_MSPLIM_NS(void) - { - uint32_t res; - __asm volatile("MRS %0,MSPLIM_NS" : "=r" (res)); - return res; - } - - __IAR_FT void __TZ_set_MSPLIM_NS(uint32_t value) - { - __asm volatile("MSR MSPLIM_NS,%0" :: "r" (value)); - } - - #endif /* __ARM_ARCH_8M_MAIN__ or __ARM_ARCH_8M_BASE__ */ - -#endif /* __ICCARM_INTRINSICS_VERSION__ == 2 */ - -#define __BKPT(value) __asm volatile ("BKPT %0" : : "i"(value)) - -#if __IAR_M0_FAMILY - __STATIC_INLINE int32_t __SSAT(int32_t val, uint32_t sat) - { - if ((sat >= 1U) && (sat <= 32U)) - { - const int32_t max = (int32_t)((1U << (sat - 1U)) - 1U); - const int32_t min = -1 - max ; - if (val > max) - { - return max; - } - else if (val < min) - { - return min; - } - } - return val; - } - - __STATIC_INLINE uint32_t __USAT(int32_t val, uint32_t sat) - { - if (sat <= 31U) - { - const uint32_t max = ((1U << sat) - 1U); - if (val > (int32_t)max) - { - return max; - } - else if (val < 0) - { - return 0U; - } - } - return (uint32_t)val; - } -#endif - -#if (__CORTEX_M >= 0x03) /* __CORTEX_M is defined in core_cm0.h, core_cm3.h and core_cm4.h. */ - - __IAR_FT uint8_t __LDRBT(volatile uint8_t *addr) - { - uint32_t res; - __ASM("LDRBT %0, [%1]" : "=r" (res) : "r" (addr) : "memory"); - return ((uint8_t)res); - } - - __IAR_FT uint16_t __LDRHT(volatile uint16_t *addr) - { - uint32_t res; - __ASM("LDRHT %0, [%1]" : "=r" (res) : "r" (addr) : "memory"); - return ((uint16_t)res); - } - - __IAR_FT uint32_t __LDRT(volatile uint32_t *addr) - { - uint32_t res; - __ASM("LDRT %0, [%1]" : "=r" (res) : "r" (addr) : "memory"); - return res; - } - - __IAR_FT void __STRBT(uint8_t value, volatile uint8_t *addr) - { - __ASM("STRBT %1, [%0]" : : "r" (addr), "r" ((uint32_t)value) : "memory"); - } - - __IAR_FT void __STRHT(uint16_t value, volatile uint16_t *addr) - { - __ASM("STRHT %1, [%0]" : : "r" (addr), "r" ((uint32_t)value) : "memory"); - } - - __IAR_FT void __STRT(uint32_t value, volatile uint32_t *addr) - { - __ASM("STRT %1, [%0]" : : "r" (addr), "r" (value) : "memory"); - } - -#endif /* (__CORTEX_M >= 0x03) */ - -#if ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ - (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) - - - __IAR_FT uint8_t __LDAB(volatile uint8_t *ptr) - { - uint32_t res; - __ASM volatile ("LDAB %0, [%1]" : "=r" (res) : "r" (ptr) : "memory"); - return ((uint8_t)res); - } - - __IAR_FT uint16_t __LDAH(volatile uint16_t *ptr) - { - uint32_t res; - __ASM volatile ("LDAH %0, [%1]" : "=r" (res) : "r" (ptr) : "memory"); - return ((uint16_t)res); - } - - __IAR_FT uint32_t __LDA(volatile uint32_t *ptr) - { - uint32_t res; - __ASM volatile ("LDA %0, [%1]" : "=r" (res) : "r" (ptr) : "memory"); - return res; - } - - __IAR_FT void __STLB(uint8_t value, volatile uint8_t *ptr) - { - __ASM volatile ("STLB %1, [%0]" :: "r" (ptr), "r" (value) : "memory"); - } - - __IAR_FT void __STLH(uint16_t value, volatile uint16_t *ptr) - { - __ASM volatile ("STLH %1, [%0]" :: "r" (ptr), "r" (value) : "memory"); - } - - __IAR_FT void __STL(uint32_t value, volatile uint32_t *ptr) - { - __ASM volatile ("STL %1, [%0]" :: "r" (ptr), "r" (value) : "memory"); - } - - __IAR_FT uint8_t __LDAEXB(volatile uint8_t *ptr) - { - uint32_t res; - __ASM volatile ("LDAEXB %0, [%1]" : "=r" (res) : "r" (ptr) : "memory"); - return ((uint8_t)res); - } - - __IAR_FT uint16_t __LDAEXH(volatile uint16_t *ptr) - { - uint32_t res; - __ASM volatile ("LDAEXH %0, [%1]" : "=r" (res) : "r" (ptr) : "memory"); - return ((uint16_t)res); - } - - __IAR_FT uint32_t __LDAEX(volatile uint32_t *ptr) - { - uint32_t res; - __ASM volatile ("LDAEX %0, [%1]" : "=r" (res) : "r" (ptr) : "memory"); - return res; - } - - __IAR_FT uint32_t __STLEXB(uint8_t value, volatile uint8_t *ptr) - { - uint32_t res; - __ASM volatile ("STLEXB %0, %2, [%1]" : "=r" (res) : "r" (ptr), "r" (value) : "memory"); - return res; - } - - __IAR_FT uint32_t __STLEXH(uint16_t value, volatile uint16_t *ptr) - { - uint32_t res; - __ASM volatile ("STLEXH %0, %2, [%1]" : "=r" (res) : "r" (ptr), "r" (value) : "memory"); - return res; - } - - __IAR_FT uint32_t __STLEX(uint32_t value, volatile uint32_t *ptr) - { - uint32_t res; - __ASM volatile ("STLEX %0, %2, [%1]" : "=r" (res) : "r" (ptr), "r" (value) : "memory"); - return res; - } - -#endif /* __ARM_ARCH_8M_MAIN__ or __ARM_ARCH_8M_BASE__ */ - -#undef __IAR_FT -#undef __IAR_M0_FAMILY -#undef __ICCARM_V8 - -#pragma diag_default=Pe940 -#pragma diag_default=Pe177 - -#endif /* __CMSIS_ICCARM_H__ */ diff --git a/Drivers/CMSIS/Include/cmsis_version.h b/Drivers/CMSIS/Include/cmsis_version.h deleted file mode 100644 index f2e2746..0000000 --- a/Drivers/CMSIS/Include/cmsis_version.h +++ /dev/null @@ -1,39 +0,0 @@ -/**************************************************************************//** - * @file cmsis_version.h - * @brief CMSIS Core(M) Version definitions - * @version V5.0.3 - * @date 24. June 2019 - ******************************************************************************/ -/* - * Copyright (c) 2009-2019 ARM Limited. All rights reserved. - * - * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the License); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#if defined ( __ICCARM__ ) - #pragma system_include /* treat file as system include file for MISRA check */ -#elif defined (__clang__) - #pragma clang system_header /* treat file as system include file */ -#endif - -#ifndef __CMSIS_VERSION_H -#define __CMSIS_VERSION_H - -/* CMSIS Version definitions */ -#define __CM_CMSIS_VERSION_MAIN ( 5U) /*!< [31:16] CMSIS Core(M) main version */ -#define __CM_CMSIS_VERSION_SUB ( 3U) /*!< [15:0] CMSIS Core(M) sub version */ -#define __CM_CMSIS_VERSION ((__CM_CMSIS_VERSION_MAIN << 16U) | \ - __CM_CMSIS_VERSION_SUB ) /*!< CMSIS Core(M) version number */ -#endif diff --git a/Drivers/CMSIS/Include/core_armv81mml.h b/Drivers/CMSIS/Include/core_armv81mml.h deleted file mode 100644 index 8441e57..0000000 --- a/Drivers/CMSIS/Include/core_armv81mml.h +++ /dev/null @@ -1,2968 +0,0 @@ -/**************************************************************************//** - * @file core_armv81mml.h - * @brief CMSIS Armv8.1-M Mainline Core Peripheral Access Layer Header File - * @version V1.0.0 - * @date 15. March 2019 - ******************************************************************************/ -/* - * Copyright (c) 2018-2019 Arm Limited. All rights reserved. - * - * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the License); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#if defined ( __ICCARM__ ) - #pragma system_include /* treat file as system include file for MISRA check */ -#elif defined (__clang__) - #pragma clang system_header /* treat file as system include file */ -#endif - -#ifndef __CORE_ARMV81MML_H_GENERIC -#define __CORE_ARMV81MML_H_GENERIC - -#include - -#ifdef __cplusplus - extern "C" { -#endif - -/** - \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions - CMSIS violates the following MISRA-C:2004 rules: - - \li Required Rule 8.5, object/function definition in header file.
- Function definitions in header files are used to allow 'inlining'. - - \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
- Unions are used for effective representation of core registers. - - \li Advisory Rule 19.7, Function-like macro defined.
- Function-like macros are used to allow more efficient code. - */ - - -/******************************************************************************* - * CMSIS definitions - ******************************************************************************/ -/** - \ingroup Cortex_ARMV81MML - @{ - */ - -#include "cmsis_version.h" - -#define __ARM_ARCH_8M_MAIN__ 1 // patching for now -/* CMSIS ARMV81MML definitions */ -#define __ARMv81MML_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ -#define __ARMv81MML_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ -#define __ARMv81MML_CMSIS_VERSION ((__ARMv81MML_CMSIS_VERSION_MAIN << 16U) | \ - __ARMv81MML_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ - -#define __CORTEX_M (81U) /*!< Cortex-M Core */ - -/** __FPU_USED indicates whether an FPU is used or not. - For this, __FPU_PRESENT has to be checked prior to making use of FPU specific registers and functions. -*/ -#if defined ( __CC_ARM ) - #if defined __TARGET_FPU_VFP - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - - #if defined(__ARM_FEATURE_DSP) - #if defined(__DSP_PRESENT) && (__DSP_PRESENT == 1U) - #define __DSP_USED 1U - #else - #error "Compiler generates DSP (SIMD) instructions for a devices without DSP extensions (check __DSP_PRESENT)" - #define __DSP_USED 0U - #endif - #else - #define __DSP_USED 0U - #endif - -#elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) - #if defined __ARM_FP - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - - #if defined(__ARM_FEATURE_DSP) - #if defined(__DSP_PRESENT) && (__DSP_PRESENT == 1U) - #define __DSP_USED 1U - #else - #error "Compiler generates DSP (SIMD) instructions for a devices without DSP extensions (check __DSP_PRESENT)" - #define __DSP_USED 0U - #endif - #else - #define __DSP_USED 0U - #endif - -#elif defined ( __GNUC__ ) - #if defined (__VFP_FP__) && !defined(__SOFTFP__) - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - - #if defined(__ARM_FEATURE_DSP) - #if defined(__DSP_PRESENT) && (__DSP_PRESENT == 1U) - #define __DSP_USED 1U - #else - #error "Compiler generates DSP (SIMD) instructions for a devices without DSP extensions (check __DSP_PRESENT)" - #define __DSP_USED 0U - #endif - #else - #define __DSP_USED 0U - #endif - -#elif defined ( __ICCARM__ ) - #if defined __ARMVFP__ - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - - #if defined(__ARM_FEATURE_DSP) - #if defined(__DSP_PRESENT) && (__DSP_PRESENT == 1U) - #define __DSP_USED 1U - #else - #error "Compiler generates DSP (SIMD) instructions for a devices without DSP extensions (check __DSP_PRESENT)" - #define __DSP_USED 0U - #endif - #else - #define __DSP_USED 0U - #endif - -#elif defined ( __TI_ARM__ ) - #if defined __TI_VFP_SUPPORT__ - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - -#elif defined ( __TASKING__ ) - #if defined __FPU_VFP__ - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - -#elif defined ( __CSMC__ ) - #if ( __CSMC__ & 0x400U) - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - -#endif - -#include "cmsis_compiler.h" /* CMSIS compiler specific defines */ - - -#ifdef __cplusplus -} -#endif - -#endif /* __CORE_ARMV81MML_H_GENERIC */ - -#ifndef __CMSIS_GENERIC - -#ifndef __CORE_ARMV81MML_H_DEPENDANT -#define __CORE_ARMV81MML_H_DEPENDANT - -#ifdef __cplusplus - extern "C" { -#endif - -/* check device defines and use defaults */ -#if defined __CHECK_DEVICE_DEFINES - #ifndef __ARMv81MML_REV - #define __ARMv81MML_REV 0x0000U - #warning "__ARMv81MML_REV not defined in device header file; using default!" - #endif - - #ifndef __FPU_PRESENT - #define __FPU_PRESENT 0U - #warning "__FPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __MPU_PRESENT - #define __MPU_PRESENT 0U - #warning "__MPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __SAUREGION_PRESENT - #define __SAUREGION_PRESENT 0U - #warning "__SAUREGION_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __DSP_PRESENT - #define __DSP_PRESENT 0U - #warning "__DSP_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __NVIC_PRIO_BITS - #define __NVIC_PRIO_BITS 3U - #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" - #endif - - #ifndef __Vendor_SysTickConfig - #define __Vendor_SysTickConfig 0U - #warning "__Vendor_SysTickConfig not defined in device header file; using default!" - #endif -#endif - -/* IO definitions (access restrictions to peripheral registers) */ -/** - \defgroup CMSIS_glob_defs CMSIS Global Defines - - IO Type Qualifiers are used - \li to specify the access to peripheral variables. - \li for automatic generation of peripheral register debug information. -*/ -#ifdef __cplusplus - #define __I volatile /*!< Defines 'read only' permissions */ -#else - #define __I volatile const /*!< Defines 'read only' permissions */ -#endif -#define __O volatile /*!< Defines 'write only' permissions */ -#define __IO volatile /*!< Defines 'read / write' permissions */ - -/* following defines should be used for structure members */ -#define __IM volatile const /*! Defines 'read only' structure member permissions */ -#define __OM volatile /*! Defines 'write only' structure member permissions */ -#define __IOM volatile /*! Defines 'read / write' structure member permissions */ - -/*@} end of group ARMv81MML */ - - - -/******************************************************************************* - * Register Abstraction - Core Register contain: - - Core Register - - Core NVIC Register - - Core SCB Register - - Core SysTick Register - - Core Debug Register - - Core MPU Register - - Core SAU Register - - Core FPU Register - ******************************************************************************/ -/** - \defgroup CMSIS_core_register Defines and Type Definitions - \brief Type definitions and defines for Cortex-M processor based devices. -*/ - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_CORE Status and Control Registers - \brief Core Register type definitions. - @{ - */ - -/** - \brief Union type to access the Application Program Status Register (APSR). - */ -typedef union -{ - struct - { - uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} APSR_Type; - -/* APSR Register Definitions */ -#define APSR_N_Pos 31U /*!< APSR: N Position */ -#define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ - -#define APSR_Z_Pos 30U /*!< APSR: Z Position */ -#define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ - -#define APSR_C_Pos 29U /*!< APSR: C Position */ -#define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ - -#define APSR_V_Pos 28U /*!< APSR: V Position */ -#define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ - -#define APSR_Q_Pos 27U /*!< APSR: Q Position */ -#define APSR_Q_Msk (1UL << APSR_Q_Pos) /*!< APSR: Q Mask */ - -#define APSR_GE_Pos 16U /*!< APSR: GE Position */ -#define APSR_GE_Msk (0xFUL << APSR_GE_Pos) /*!< APSR: GE Mask */ - - -/** - \brief Union type to access the Interrupt Program Status Register (IPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} IPSR_Type; - -/* IPSR Register Definitions */ -#define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ -#define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ - - -/** - \brief Union type to access the Special-Purpose Program Status Registers (xPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:7; /*!< bit: 9..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ - uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ - uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} xPSR_Type; - -/* xPSR Register Definitions */ -#define xPSR_N_Pos 31U /*!< xPSR: N Position */ -#define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ - -#define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ -#define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ - -#define xPSR_C_Pos 29U /*!< xPSR: C Position */ -#define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ - -#define xPSR_V_Pos 28U /*!< xPSR: V Position */ -#define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ - -#define xPSR_Q_Pos 27U /*!< xPSR: Q Position */ -#define xPSR_Q_Msk (1UL << xPSR_Q_Pos) /*!< xPSR: Q Mask */ - -#define xPSR_IT_Pos 25U /*!< xPSR: IT Position */ -#define xPSR_IT_Msk (3UL << xPSR_IT_Pos) /*!< xPSR: IT Mask */ - -#define xPSR_T_Pos 24U /*!< xPSR: T Position */ -#define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ - -#define xPSR_GE_Pos 16U /*!< xPSR: GE Position */ -#define xPSR_GE_Msk (0xFUL << xPSR_GE_Pos) /*!< xPSR: GE Mask */ - -#define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ -#define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ - - -/** - \brief Union type to access the Control Registers (CONTROL). - */ -typedef union -{ - struct - { - uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ - uint32_t SPSEL:1; /*!< bit: 1 Stack-pointer select */ - uint32_t FPCA:1; /*!< bit: 2 Floating-point context active */ - uint32_t SFPA:1; /*!< bit: 3 Secure floating-point active */ - uint32_t _reserved1:28; /*!< bit: 4..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} CONTROL_Type; - -/* CONTROL Register Definitions */ -#define CONTROL_SFPA_Pos 3U /*!< CONTROL: SFPA Position */ -#define CONTROL_SFPA_Msk (1UL << CONTROL_SFPA_Pos) /*!< CONTROL: SFPA Mask */ - -#define CONTROL_FPCA_Pos 2U /*!< CONTROL: FPCA Position */ -#define CONTROL_FPCA_Msk (1UL << CONTROL_FPCA_Pos) /*!< CONTROL: FPCA Mask */ - -#define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ -#define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ - -#define CONTROL_nPRIV_Pos 0U /*!< CONTROL: nPRIV Position */ -#define CONTROL_nPRIV_Msk (1UL /*<< CONTROL_nPRIV_Pos*/) /*!< CONTROL: nPRIV Mask */ - -/*@} end of group CMSIS_CORE */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) - \brief Type definitions for the NVIC Registers - @{ - */ - -/** - \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). - */ -typedef struct -{ - __IOM uint32_t ISER[16U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ - uint32_t RESERVED0[16U]; - __IOM uint32_t ICER[16U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ - uint32_t RSERVED1[16U]; - __IOM uint32_t ISPR[16U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ - uint32_t RESERVED2[16U]; - __IOM uint32_t ICPR[16U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ - uint32_t RESERVED3[16U]; - __IOM uint32_t IABR[16U]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ - uint32_t RESERVED4[16U]; - __IOM uint32_t ITNS[16U]; /*!< Offset: 0x280 (R/W) Interrupt Non-Secure State Register */ - uint32_t RESERVED5[16U]; - __IOM uint8_t IPR[496U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ - uint32_t RESERVED6[580U]; - __OM uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ -} NVIC_Type; - -/* Software Triggered Interrupt Register Definitions */ -#define NVIC_STIR_INTID_Pos 0U /*!< STIR: INTLINESNUM Position */ -#define NVIC_STIR_INTID_Msk (0x1FFUL /*<< NVIC_STIR_INTID_Pos*/) /*!< STIR: INTLINESNUM Mask */ - -/*@} end of group CMSIS_NVIC */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SCB System Control Block (SCB) - \brief Type definitions for the System Control Block Registers - @{ - */ - -/** - \brief Structure type to access the System Control Block (SCB). - */ -typedef struct -{ - __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ - __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ - __IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ - __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ - __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ - __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ - __IOM uint8_t SHPR[12U]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ - __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ - __IOM uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ - __IOM uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ - __IOM uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ - __IOM uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ - __IOM uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ - __IOM uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ - __IM uint32_t ID_PFR[2U]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ - __IM uint32_t ID_DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ - __IM uint32_t ID_ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ - __IM uint32_t ID_MMFR[4U]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ - __IM uint32_t ID_ISAR[6U]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ - __IM uint32_t CLIDR; /*!< Offset: 0x078 (R/ ) Cache Level ID register */ - __IM uint32_t CTR; /*!< Offset: 0x07C (R/ ) Cache Type register */ - __IM uint32_t CCSIDR; /*!< Offset: 0x080 (R/ ) Cache Size ID Register */ - __IOM uint32_t CSSELR; /*!< Offset: 0x084 (R/W) Cache Size Selection Register */ - __IOM uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ - __IOM uint32_t NSACR; /*!< Offset: 0x08C (R/W) Non-Secure Access Control Register */ - uint32_t RESERVED3[92U]; - __OM uint32_t STIR; /*!< Offset: 0x200 ( /W) Software Triggered Interrupt Register */ - uint32_t RESERVED4[15U]; - __IM uint32_t MVFR0; /*!< Offset: 0x240 (R/ ) Media and VFP Feature Register 0 */ - __IM uint32_t MVFR1; /*!< Offset: 0x244 (R/ ) Media and VFP Feature Register 1 */ - __IM uint32_t MVFR2; /*!< Offset: 0x248 (R/ ) Media and VFP Feature Register 2 */ - uint32_t RESERVED5[1U]; - __OM uint32_t ICIALLU; /*!< Offset: 0x250 ( /W) I-Cache Invalidate All to PoU */ - uint32_t RESERVED6[1U]; - __OM uint32_t ICIMVAU; /*!< Offset: 0x258 ( /W) I-Cache Invalidate by MVA to PoU */ - __OM uint32_t DCIMVAC; /*!< Offset: 0x25C ( /W) D-Cache Invalidate by MVA to PoC */ - __OM uint32_t DCISW; /*!< Offset: 0x260 ( /W) D-Cache Invalidate by Set-way */ - __OM uint32_t DCCMVAU; /*!< Offset: 0x264 ( /W) D-Cache Clean by MVA to PoU */ - __OM uint32_t DCCMVAC; /*!< Offset: 0x268 ( /W) D-Cache Clean by MVA to PoC */ - __OM uint32_t DCCSW; /*!< Offset: 0x26C ( /W) D-Cache Clean by Set-way */ - __OM uint32_t DCCIMVAC; /*!< Offset: 0x270 ( /W) D-Cache Clean and Invalidate by MVA to PoC */ - __OM uint32_t DCCISW; /*!< Offset: 0x274 ( /W) D-Cache Clean and Invalidate by Set-way */ - uint32_t RESERVED7[6U]; - __IOM uint32_t ITCMCR; /*!< Offset: 0x290 (R/W) Instruction Tightly-Coupled Memory Control Register */ - __IOM uint32_t DTCMCR; /*!< Offset: 0x294 (R/W) Data Tightly-Coupled Memory Control Registers */ - __IOM uint32_t AHBPCR; /*!< Offset: 0x298 (R/W) AHBP Control Register */ - __IOM uint32_t CACR; /*!< Offset: 0x29C (R/W) L1 Cache Control Register */ - __IOM uint32_t AHBSCR; /*!< Offset: 0x2A0 (R/W) AHB Slave Control Register */ - uint32_t RESERVED8[1U]; - __IOM uint32_t ABFSR; /*!< Offset: 0x2A8 (R/W) Auxiliary Bus Fault Status Register */ -} SCB_Type; - -/* SCB CPUID Register Definitions */ -#define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ -#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ - -#define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ -#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ - -#define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ -#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ - -#define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ -#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ - -#define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ -#define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ - -/* SCB Interrupt Control State Register Definitions */ -#define SCB_ICSR_PENDNMISET_Pos 31U /*!< SCB ICSR: PENDNMISET Position */ -#define SCB_ICSR_PENDNMISET_Msk (1UL << SCB_ICSR_PENDNMISET_Pos) /*!< SCB ICSR: PENDNMISET Mask */ - -#define SCB_ICSR_NMIPENDSET_Pos SCB_ICSR_PENDNMISET_Pos /*!< SCB ICSR: NMIPENDSET Position, backward compatibility */ -#define SCB_ICSR_NMIPENDSET_Msk SCB_ICSR_PENDNMISET_Msk /*!< SCB ICSR: NMIPENDSET Mask, backward compatibility */ - -#define SCB_ICSR_PENDNMICLR_Pos 30U /*!< SCB ICSR: PENDNMICLR Position */ -#define SCB_ICSR_PENDNMICLR_Msk (1UL << SCB_ICSR_PENDNMICLR_Pos) /*!< SCB ICSR: PENDNMICLR Mask */ - -#define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ -#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ - -#define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ -#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ - -#define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ -#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ - -#define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ -#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ - -#define SCB_ICSR_STTNS_Pos 24U /*!< SCB ICSR: STTNS Position (Security Extension) */ -#define SCB_ICSR_STTNS_Msk (1UL << SCB_ICSR_STTNS_Pos) /*!< SCB ICSR: STTNS Mask (Security Extension) */ - -#define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ -#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ - -#define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ -#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ - -#define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ -#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ - -#define SCB_ICSR_RETTOBASE_Pos 11U /*!< SCB ICSR: RETTOBASE Position */ -#define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ - -#define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ -#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ - -/* SCB Vector Table Offset Register Definitions */ -#define SCB_VTOR_TBLOFF_Pos 7U /*!< SCB VTOR: TBLOFF Position */ -#define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ - -/* SCB Application Interrupt and Reset Control Register Definitions */ -#define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ -#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ - -#define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ -#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ - -#define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ -#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ - -#define SCB_AIRCR_PRIS_Pos 14U /*!< SCB AIRCR: PRIS Position */ -#define SCB_AIRCR_PRIS_Msk (1UL << SCB_AIRCR_PRIS_Pos) /*!< SCB AIRCR: PRIS Mask */ - -#define SCB_AIRCR_BFHFNMINS_Pos 13U /*!< SCB AIRCR: BFHFNMINS Position */ -#define SCB_AIRCR_BFHFNMINS_Msk (1UL << SCB_AIRCR_BFHFNMINS_Pos) /*!< SCB AIRCR: BFHFNMINS Mask */ - -#define SCB_AIRCR_PRIGROUP_Pos 8U /*!< SCB AIRCR: PRIGROUP Position */ -#define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ - -#define SCB_AIRCR_SYSRESETREQS_Pos 3U /*!< SCB AIRCR: SYSRESETREQS Position */ -#define SCB_AIRCR_SYSRESETREQS_Msk (1UL << SCB_AIRCR_SYSRESETREQS_Pos) /*!< SCB AIRCR: SYSRESETREQS Mask */ - -#define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ -#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ - -#define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ -#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ - -/* SCB System Control Register Definitions */ -#define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ -#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ - -#define SCB_SCR_SLEEPDEEPS_Pos 3U /*!< SCB SCR: SLEEPDEEPS Position */ -#define SCB_SCR_SLEEPDEEPS_Msk (1UL << SCB_SCR_SLEEPDEEPS_Pos) /*!< SCB SCR: SLEEPDEEPS Mask */ - -#define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ -#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ - -#define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ -#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ - -/* SCB Configuration Control Register Definitions */ -#define SCB_CCR_BP_Pos 18U /*!< SCB CCR: BP Position */ -#define SCB_CCR_BP_Msk (1UL << SCB_CCR_BP_Pos) /*!< SCB CCR: BP Mask */ - -#define SCB_CCR_IC_Pos 17U /*!< SCB CCR: IC Position */ -#define SCB_CCR_IC_Msk (1UL << SCB_CCR_IC_Pos) /*!< SCB CCR: IC Mask */ - -#define SCB_CCR_DC_Pos 16U /*!< SCB CCR: DC Position */ -#define SCB_CCR_DC_Msk (1UL << SCB_CCR_DC_Pos) /*!< SCB CCR: DC Mask */ - -#define SCB_CCR_STKOFHFNMIGN_Pos 10U /*!< SCB CCR: STKOFHFNMIGN Position */ -#define SCB_CCR_STKOFHFNMIGN_Msk (1UL << SCB_CCR_STKOFHFNMIGN_Pos) /*!< SCB CCR: STKOFHFNMIGN Mask */ - -#define SCB_CCR_BFHFNMIGN_Pos 8U /*!< SCB CCR: BFHFNMIGN Position */ -#define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ - -#define SCB_CCR_DIV_0_TRP_Pos 4U /*!< SCB CCR: DIV_0_TRP Position */ -#define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ - -#define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ -#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ - -#define SCB_CCR_USERSETMPEND_Pos 1U /*!< SCB CCR: USERSETMPEND Position */ -#define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ - -/* SCB System Handler Control and State Register Definitions */ -#define SCB_SHCSR_HARDFAULTPENDED_Pos 21U /*!< SCB SHCSR: HARDFAULTPENDED Position */ -#define SCB_SHCSR_HARDFAULTPENDED_Msk (1UL << SCB_SHCSR_HARDFAULTPENDED_Pos) /*!< SCB SHCSR: HARDFAULTPENDED Mask */ - -#define SCB_SHCSR_SECUREFAULTPENDED_Pos 20U /*!< SCB SHCSR: SECUREFAULTPENDED Position */ -#define SCB_SHCSR_SECUREFAULTPENDED_Msk (1UL << SCB_SHCSR_SECUREFAULTPENDED_Pos) /*!< SCB SHCSR: SECUREFAULTPENDED Mask */ - -#define SCB_SHCSR_SECUREFAULTENA_Pos 19U /*!< SCB SHCSR: SECUREFAULTENA Position */ -#define SCB_SHCSR_SECUREFAULTENA_Msk (1UL << SCB_SHCSR_SECUREFAULTENA_Pos) /*!< SCB SHCSR: SECUREFAULTENA Mask */ - -#define SCB_SHCSR_USGFAULTENA_Pos 18U /*!< SCB SHCSR: USGFAULTENA Position */ -#define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ - -#define SCB_SHCSR_BUSFAULTENA_Pos 17U /*!< SCB SHCSR: BUSFAULTENA Position */ -#define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ - -#define SCB_SHCSR_MEMFAULTENA_Pos 16U /*!< SCB SHCSR: MEMFAULTENA Position */ -#define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ - -#define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ -#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ - -#define SCB_SHCSR_BUSFAULTPENDED_Pos 14U /*!< SCB SHCSR: BUSFAULTPENDED Position */ -#define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ - -#define SCB_SHCSR_MEMFAULTPENDED_Pos 13U /*!< SCB SHCSR: MEMFAULTPENDED Position */ -#define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ - -#define SCB_SHCSR_USGFAULTPENDED_Pos 12U /*!< SCB SHCSR: USGFAULTPENDED Position */ -#define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ - -#define SCB_SHCSR_SYSTICKACT_Pos 11U /*!< SCB SHCSR: SYSTICKACT Position */ -#define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ - -#define SCB_SHCSR_PENDSVACT_Pos 10U /*!< SCB SHCSR: PENDSVACT Position */ -#define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ - -#define SCB_SHCSR_MONITORACT_Pos 8U /*!< SCB SHCSR: MONITORACT Position */ -#define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ - -#define SCB_SHCSR_SVCALLACT_Pos 7U /*!< SCB SHCSR: SVCALLACT Position */ -#define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ - -#define SCB_SHCSR_NMIACT_Pos 5U /*!< SCB SHCSR: NMIACT Position */ -#define SCB_SHCSR_NMIACT_Msk (1UL << SCB_SHCSR_NMIACT_Pos) /*!< SCB SHCSR: NMIACT Mask */ - -#define SCB_SHCSR_SECUREFAULTACT_Pos 4U /*!< SCB SHCSR: SECUREFAULTACT Position */ -#define SCB_SHCSR_SECUREFAULTACT_Msk (1UL << SCB_SHCSR_SECUREFAULTACT_Pos) /*!< SCB SHCSR: SECUREFAULTACT Mask */ - -#define SCB_SHCSR_USGFAULTACT_Pos 3U /*!< SCB SHCSR: USGFAULTACT Position */ -#define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ - -#define SCB_SHCSR_HARDFAULTACT_Pos 2U /*!< SCB SHCSR: HARDFAULTACT Position */ -#define SCB_SHCSR_HARDFAULTACT_Msk (1UL << SCB_SHCSR_HARDFAULTACT_Pos) /*!< SCB SHCSR: HARDFAULTACT Mask */ - -#define SCB_SHCSR_BUSFAULTACT_Pos 1U /*!< SCB SHCSR: BUSFAULTACT Position */ -#define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ - -#define SCB_SHCSR_MEMFAULTACT_Pos 0U /*!< SCB SHCSR: MEMFAULTACT Position */ -#define SCB_SHCSR_MEMFAULTACT_Msk (1UL /*<< SCB_SHCSR_MEMFAULTACT_Pos*/) /*!< SCB SHCSR: MEMFAULTACT Mask */ - -/* SCB Configurable Fault Status Register Definitions */ -#define SCB_CFSR_USGFAULTSR_Pos 16U /*!< SCB CFSR: Usage Fault Status Register Position */ -#define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ - -#define SCB_CFSR_BUSFAULTSR_Pos 8U /*!< SCB CFSR: Bus Fault Status Register Position */ -#define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ - -#define SCB_CFSR_MEMFAULTSR_Pos 0U /*!< SCB CFSR: Memory Manage Fault Status Register Position */ -#define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL /*<< SCB_CFSR_MEMFAULTSR_Pos*/) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ - -/* MemManage Fault Status Register (part of SCB Configurable Fault Status Register) */ -#define SCB_CFSR_MMARVALID_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 7U) /*!< SCB CFSR (MMFSR): MMARVALID Position */ -#define SCB_CFSR_MMARVALID_Msk (1UL << SCB_CFSR_MMARVALID_Pos) /*!< SCB CFSR (MMFSR): MMARVALID Mask */ - -#define SCB_CFSR_MLSPERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 5U) /*!< SCB CFSR (MMFSR): MLSPERR Position */ -#define SCB_CFSR_MLSPERR_Msk (1UL << SCB_CFSR_MLSPERR_Pos) /*!< SCB CFSR (MMFSR): MLSPERR Mask */ - -#define SCB_CFSR_MSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 4U) /*!< SCB CFSR (MMFSR): MSTKERR Position */ -#define SCB_CFSR_MSTKERR_Msk (1UL << SCB_CFSR_MSTKERR_Pos) /*!< SCB CFSR (MMFSR): MSTKERR Mask */ - -#define SCB_CFSR_MUNSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 3U) /*!< SCB CFSR (MMFSR): MUNSTKERR Position */ -#define SCB_CFSR_MUNSTKERR_Msk (1UL << SCB_CFSR_MUNSTKERR_Pos) /*!< SCB CFSR (MMFSR): MUNSTKERR Mask */ - -#define SCB_CFSR_DACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 1U) /*!< SCB CFSR (MMFSR): DACCVIOL Position */ -#define SCB_CFSR_DACCVIOL_Msk (1UL << SCB_CFSR_DACCVIOL_Pos) /*!< SCB CFSR (MMFSR): DACCVIOL Mask */ - -#define SCB_CFSR_IACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 0U) /*!< SCB CFSR (MMFSR): IACCVIOL Position */ -#define SCB_CFSR_IACCVIOL_Msk (1UL /*<< SCB_CFSR_IACCVIOL_Pos*/) /*!< SCB CFSR (MMFSR): IACCVIOL Mask */ - -/* BusFault Status Register (part of SCB Configurable Fault Status Register) */ -#define SCB_CFSR_BFARVALID_Pos (SCB_CFSR_BUSFAULTSR_Pos + 7U) /*!< SCB CFSR (BFSR): BFARVALID Position */ -#define SCB_CFSR_BFARVALID_Msk (1UL << SCB_CFSR_BFARVALID_Pos) /*!< SCB CFSR (BFSR): BFARVALID Mask */ - -#define SCB_CFSR_LSPERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 5U) /*!< SCB CFSR (BFSR): LSPERR Position */ -#define SCB_CFSR_LSPERR_Msk (1UL << SCB_CFSR_LSPERR_Pos) /*!< SCB CFSR (BFSR): LSPERR Mask */ - -#define SCB_CFSR_STKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 4U) /*!< SCB CFSR (BFSR): STKERR Position */ -#define SCB_CFSR_STKERR_Msk (1UL << SCB_CFSR_STKERR_Pos) /*!< SCB CFSR (BFSR): STKERR Mask */ - -#define SCB_CFSR_UNSTKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 3U) /*!< SCB CFSR (BFSR): UNSTKERR Position */ -#define SCB_CFSR_UNSTKERR_Msk (1UL << SCB_CFSR_UNSTKERR_Pos) /*!< SCB CFSR (BFSR): UNSTKERR Mask */ - -#define SCB_CFSR_IMPRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 2U) /*!< SCB CFSR (BFSR): IMPRECISERR Position */ -#define SCB_CFSR_IMPRECISERR_Msk (1UL << SCB_CFSR_IMPRECISERR_Pos) /*!< SCB CFSR (BFSR): IMPRECISERR Mask */ - -#define SCB_CFSR_PRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 1U) /*!< SCB CFSR (BFSR): PRECISERR Position */ -#define SCB_CFSR_PRECISERR_Msk (1UL << SCB_CFSR_PRECISERR_Pos) /*!< SCB CFSR (BFSR): PRECISERR Mask */ - -#define SCB_CFSR_IBUSERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 0U) /*!< SCB CFSR (BFSR): IBUSERR Position */ -#define SCB_CFSR_IBUSERR_Msk (1UL << SCB_CFSR_IBUSERR_Pos) /*!< SCB CFSR (BFSR): IBUSERR Mask */ - -/* UsageFault Status Register (part of SCB Configurable Fault Status Register) */ -#define SCB_CFSR_DIVBYZERO_Pos (SCB_CFSR_USGFAULTSR_Pos + 9U) /*!< SCB CFSR (UFSR): DIVBYZERO Position */ -#define SCB_CFSR_DIVBYZERO_Msk (1UL << SCB_CFSR_DIVBYZERO_Pos) /*!< SCB CFSR (UFSR): DIVBYZERO Mask */ - -#define SCB_CFSR_UNALIGNED_Pos (SCB_CFSR_USGFAULTSR_Pos + 8U) /*!< SCB CFSR (UFSR): UNALIGNED Position */ -#define SCB_CFSR_UNALIGNED_Msk (1UL << SCB_CFSR_UNALIGNED_Pos) /*!< SCB CFSR (UFSR): UNALIGNED Mask */ - -#define SCB_CFSR_STKOF_Pos (SCB_CFSR_USGFAULTSR_Pos + 4U) /*!< SCB CFSR (UFSR): STKOF Position */ -#define SCB_CFSR_STKOF_Msk (1UL << SCB_CFSR_STKOF_Pos) /*!< SCB CFSR (UFSR): STKOF Mask */ - -#define SCB_CFSR_NOCP_Pos (SCB_CFSR_USGFAULTSR_Pos + 3U) /*!< SCB CFSR (UFSR): NOCP Position */ -#define SCB_CFSR_NOCP_Msk (1UL << SCB_CFSR_NOCP_Pos) /*!< SCB CFSR (UFSR): NOCP Mask */ - -#define SCB_CFSR_INVPC_Pos (SCB_CFSR_USGFAULTSR_Pos + 2U) /*!< SCB CFSR (UFSR): INVPC Position */ -#define SCB_CFSR_INVPC_Msk (1UL << SCB_CFSR_INVPC_Pos) /*!< SCB CFSR (UFSR): INVPC Mask */ - -#define SCB_CFSR_INVSTATE_Pos (SCB_CFSR_USGFAULTSR_Pos + 1U) /*!< SCB CFSR (UFSR): INVSTATE Position */ -#define SCB_CFSR_INVSTATE_Msk (1UL << SCB_CFSR_INVSTATE_Pos) /*!< SCB CFSR (UFSR): INVSTATE Mask */ - -#define SCB_CFSR_UNDEFINSTR_Pos (SCB_CFSR_USGFAULTSR_Pos + 0U) /*!< SCB CFSR (UFSR): UNDEFINSTR Position */ -#define SCB_CFSR_UNDEFINSTR_Msk (1UL << SCB_CFSR_UNDEFINSTR_Pos) /*!< SCB CFSR (UFSR): UNDEFINSTR Mask */ - -/* SCB Hard Fault Status Register Definitions */ -#define SCB_HFSR_DEBUGEVT_Pos 31U /*!< SCB HFSR: DEBUGEVT Position */ -#define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ - -#define SCB_HFSR_FORCED_Pos 30U /*!< SCB HFSR: FORCED Position */ -#define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ - -#define SCB_HFSR_VECTTBL_Pos 1U /*!< SCB HFSR: VECTTBL Position */ -#define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ - -/* SCB Debug Fault Status Register Definitions */ -#define SCB_DFSR_EXTERNAL_Pos 4U /*!< SCB DFSR: EXTERNAL Position */ -#define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ - -#define SCB_DFSR_VCATCH_Pos 3U /*!< SCB DFSR: VCATCH Position */ -#define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ - -#define SCB_DFSR_DWTTRAP_Pos 2U /*!< SCB DFSR: DWTTRAP Position */ -#define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ - -#define SCB_DFSR_BKPT_Pos 1U /*!< SCB DFSR: BKPT Position */ -#define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ - -#define SCB_DFSR_HALTED_Pos 0U /*!< SCB DFSR: HALTED Position */ -#define SCB_DFSR_HALTED_Msk (1UL /*<< SCB_DFSR_HALTED_Pos*/) /*!< SCB DFSR: HALTED Mask */ - -/* SCB Non-Secure Access Control Register Definitions */ -#define SCB_NSACR_CP11_Pos 11U /*!< SCB NSACR: CP11 Position */ -#define SCB_NSACR_CP11_Msk (1UL << SCB_NSACR_CP11_Pos) /*!< SCB NSACR: CP11 Mask */ - -#define SCB_NSACR_CP10_Pos 10U /*!< SCB NSACR: CP10 Position */ -#define SCB_NSACR_CP10_Msk (1UL << SCB_NSACR_CP10_Pos) /*!< SCB NSACR: CP10 Mask */ - -#define SCB_NSACR_CPn_Pos 0U /*!< SCB NSACR: CPn Position */ -#define SCB_NSACR_CPn_Msk (1UL /*<< SCB_NSACR_CPn_Pos*/) /*!< SCB NSACR: CPn Mask */ - -/* SCB Cache Level ID Register Definitions */ -#define SCB_CLIDR_LOUU_Pos 27U /*!< SCB CLIDR: LoUU Position */ -#define SCB_CLIDR_LOUU_Msk (7UL << SCB_CLIDR_LOUU_Pos) /*!< SCB CLIDR: LoUU Mask */ - -#define SCB_CLIDR_LOC_Pos 24U /*!< SCB CLIDR: LoC Position */ -#define SCB_CLIDR_LOC_Msk (7UL << SCB_CLIDR_LOC_Pos) /*!< SCB CLIDR: LoC Mask */ - -/* SCB Cache Type Register Definitions */ -#define SCB_CTR_FORMAT_Pos 29U /*!< SCB CTR: Format Position */ -#define SCB_CTR_FORMAT_Msk (7UL << SCB_CTR_FORMAT_Pos) /*!< SCB CTR: Format Mask */ - -#define SCB_CTR_CWG_Pos 24U /*!< SCB CTR: CWG Position */ -#define SCB_CTR_CWG_Msk (0xFUL << SCB_CTR_CWG_Pos) /*!< SCB CTR: CWG Mask */ - -#define SCB_CTR_ERG_Pos 20U /*!< SCB CTR: ERG Position */ -#define SCB_CTR_ERG_Msk (0xFUL << SCB_CTR_ERG_Pos) /*!< SCB CTR: ERG Mask */ - -#define SCB_CTR_DMINLINE_Pos 16U /*!< SCB CTR: DminLine Position */ -#define SCB_CTR_DMINLINE_Msk (0xFUL << SCB_CTR_DMINLINE_Pos) /*!< SCB CTR: DminLine Mask */ - -#define SCB_CTR_IMINLINE_Pos 0U /*!< SCB CTR: ImInLine Position */ -#define SCB_CTR_IMINLINE_Msk (0xFUL /*<< SCB_CTR_IMINLINE_Pos*/) /*!< SCB CTR: ImInLine Mask */ - -/* SCB Cache Size ID Register Definitions */ -#define SCB_CCSIDR_WT_Pos 31U /*!< SCB CCSIDR: WT Position */ -#define SCB_CCSIDR_WT_Msk (1UL << SCB_CCSIDR_WT_Pos) /*!< SCB CCSIDR: WT Mask */ - -#define SCB_CCSIDR_WB_Pos 30U /*!< SCB CCSIDR: WB Position */ -#define SCB_CCSIDR_WB_Msk (1UL << SCB_CCSIDR_WB_Pos) /*!< SCB CCSIDR: WB Mask */ - -#define SCB_CCSIDR_RA_Pos 29U /*!< SCB CCSIDR: RA Position */ -#define SCB_CCSIDR_RA_Msk (1UL << SCB_CCSIDR_RA_Pos) /*!< SCB CCSIDR: RA Mask */ - -#define SCB_CCSIDR_WA_Pos 28U /*!< SCB CCSIDR: WA Position */ -#define SCB_CCSIDR_WA_Msk (1UL << SCB_CCSIDR_WA_Pos) /*!< SCB CCSIDR: WA Mask */ - -#define SCB_CCSIDR_NUMSETS_Pos 13U /*!< SCB CCSIDR: NumSets Position */ -#define SCB_CCSIDR_NUMSETS_Msk (0x7FFFUL << SCB_CCSIDR_NUMSETS_Pos) /*!< SCB CCSIDR: NumSets Mask */ - -#define SCB_CCSIDR_ASSOCIATIVITY_Pos 3U /*!< SCB CCSIDR: Associativity Position */ -#define SCB_CCSIDR_ASSOCIATIVITY_Msk (0x3FFUL << SCB_CCSIDR_ASSOCIATIVITY_Pos) /*!< SCB CCSIDR: Associativity Mask */ - -#define SCB_CCSIDR_LINESIZE_Pos 0U /*!< SCB CCSIDR: LineSize Position */ -#define SCB_CCSIDR_LINESIZE_Msk (7UL /*<< SCB_CCSIDR_LINESIZE_Pos*/) /*!< SCB CCSIDR: LineSize Mask */ - -/* SCB Cache Size Selection Register Definitions */ -#define SCB_CSSELR_LEVEL_Pos 1U /*!< SCB CSSELR: Level Position */ -#define SCB_CSSELR_LEVEL_Msk (7UL << SCB_CSSELR_LEVEL_Pos) /*!< SCB CSSELR: Level Mask */ - -#define SCB_CSSELR_IND_Pos 0U /*!< SCB CSSELR: InD Position */ -#define SCB_CSSELR_IND_Msk (1UL /*<< SCB_CSSELR_IND_Pos*/) /*!< SCB CSSELR: InD Mask */ - -/* SCB Software Triggered Interrupt Register Definitions */ -#define SCB_STIR_INTID_Pos 0U /*!< SCB STIR: INTID Position */ -#define SCB_STIR_INTID_Msk (0x1FFUL /*<< SCB_STIR_INTID_Pos*/) /*!< SCB STIR: INTID Mask */ - -/* SCB D-Cache Invalidate by Set-way Register Definitions */ -#define SCB_DCISW_WAY_Pos 30U /*!< SCB DCISW: Way Position */ -#define SCB_DCISW_WAY_Msk (3UL << SCB_DCISW_WAY_Pos) /*!< SCB DCISW: Way Mask */ - -#define SCB_DCISW_SET_Pos 5U /*!< SCB DCISW: Set Position */ -#define SCB_DCISW_SET_Msk (0x1FFUL << SCB_DCISW_SET_Pos) /*!< SCB DCISW: Set Mask */ - -/* SCB D-Cache Clean by Set-way Register Definitions */ -#define SCB_DCCSW_WAY_Pos 30U /*!< SCB DCCSW: Way Position */ -#define SCB_DCCSW_WAY_Msk (3UL << SCB_DCCSW_WAY_Pos) /*!< SCB DCCSW: Way Mask */ - -#define SCB_DCCSW_SET_Pos 5U /*!< SCB DCCSW: Set Position */ -#define SCB_DCCSW_SET_Msk (0x1FFUL << SCB_DCCSW_SET_Pos) /*!< SCB DCCSW: Set Mask */ - -/* SCB D-Cache Clean and Invalidate by Set-way Register Definitions */ -#define SCB_DCCISW_WAY_Pos 30U /*!< SCB DCCISW: Way Position */ -#define SCB_DCCISW_WAY_Msk (3UL << SCB_DCCISW_WAY_Pos) /*!< SCB DCCISW: Way Mask */ - -#define SCB_DCCISW_SET_Pos 5U /*!< SCB DCCISW: Set Position */ -#define SCB_DCCISW_SET_Msk (0x1FFUL << SCB_DCCISW_SET_Pos) /*!< SCB DCCISW: Set Mask */ - -/* Instruction Tightly-Coupled Memory Control Register Definitions */ -#define SCB_ITCMCR_SZ_Pos 3U /*!< SCB ITCMCR: SZ Position */ -#define SCB_ITCMCR_SZ_Msk (0xFUL << SCB_ITCMCR_SZ_Pos) /*!< SCB ITCMCR: SZ Mask */ - -#define SCB_ITCMCR_RETEN_Pos 2U /*!< SCB ITCMCR: RETEN Position */ -#define SCB_ITCMCR_RETEN_Msk (1UL << SCB_ITCMCR_RETEN_Pos) /*!< SCB ITCMCR: RETEN Mask */ - -#define SCB_ITCMCR_RMW_Pos 1U /*!< SCB ITCMCR: RMW Position */ -#define SCB_ITCMCR_RMW_Msk (1UL << SCB_ITCMCR_RMW_Pos) /*!< SCB ITCMCR: RMW Mask */ - -#define SCB_ITCMCR_EN_Pos 0U /*!< SCB ITCMCR: EN Position */ -#define SCB_ITCMCR_EN_Msk (1UL /*<< SCB_ITCMCR_EN_Pos*/) /*!< SCB ITCMCR: EN Mask */ - -/* Data Tightly-Coupled Memory Control Register Definitions */ -#define SCB_DTCMCR_SZ_Pos 3U /*!< SCB DTCMCR: SZ Position */ -#define SCB_DTCMCR_SZ_Msk (0xFUL << SCB_DTCMCR_SZ_Pos) /*!< SCB DTCMCR: SZ Mask */ - -#define SCB_DTCMCR_RETEN_Pos 2U /*!< SCB DTCMCR: RETEN Position */ -#define SCB_DTCMCR_RETEN_Msk (1UL << SCB_DTCMCR_RETEN_Pos) /*!< SCB DTCMCR: RETEN Mask */ - -#define SCB_DTCMCR_RMW_Pos 1U /*!< SCB DTCMCR: RMW Position */ -#define SCB_DTCMCR_RMW_Msk (1UL << SCB_DTCMCR_RMW_Pos) /*!< SCB DTCMCR: RMW Mask */ - -#define SCB_DTCMCR_EN_Pos 0U /*!< SCB DTCMCR: EN Position */ -#define SCB_DTCMCR_EN_Msk (1UL /*<< SCB_DTCMCR_EN_Pos*/) /*!< SCB DTCMCR: EN Mask */ - -/* AHBP Control Register Definitions */ -#define SCB_AHBPCR_SZ_Pos 1U /*!< SCB AHBPCR: SZ Position */ -#define SCB_AHBPCR_SZ_Msk (7UL << SCB_AHBPCR_SZ_Pos) /*!< SCB AHBPCR: SZ Mask */ - -#define SCB_AHBPCR_EN_Pos 0U /*!< SCB AHBPCR: EN Position */ -#define SCB_AHBPCR_EN_Msk (1UL /*<< SCB_AHBPCR_EN_Pos*/) /*!< SCB AHBPCR: EN Mask */ - -/* L1 Cache Control Register Definitions */ -#define SCB_CACR_FORCEWT_Pos 2U /*!< SCB CACR: FORCEWT Position */ -#define SCB_CACR_FORCEWT_Msk (1UL << SCB_CACR_FORCEWT_Pos) /*!< SCB CACR: FORCEWT Mask */ - -#define SCB_CACR_ECCEN_Pos 1U /*!< SCB CACR: ECCEN Position */ -#define SCB_CACR_ECCEN_Msk (1UL << SCB_CACR_ECCEN_Pos) /*!< SCB CACR: ECCEN Mask */ - -#define SCB_CACR_SIWT_Pos 0U /*!< SCB CACR: SIWT Position */ -#define SCB_CACR_SIWT_Msk (1UL /*<< SCB_CACR_SIWT_Pos*/) /*!< SCB CACR: SIWT Mask */ - -/* AHBS Control Register Definitions */ -#define SCB_AHBSCR_INITCOUNT_Pos 11U /*!< SCB AHBSCR: INITCOUNT Position */ -#define SCB_AHBSCR_INITCOUNT_Msk (0x1FUL << SCB_AHBPCR_INITCOUNT_Pos) /*!< SCB AHBSCR: INITCOUNT Mask */ - -#define SCB_AHBSCR_TPRI_Pos 2U /*!< SCB AHBSCR: TPRI Position */ -#define SCB_AHBSCR_TPRI_Msk (0x1FFUL << SCB_AHBPCR_TPRI_Pos) /*!< SCB AHBSCR: TPRI Mask */ - -#define SCB_AHBSCR_CTL_Pos 0U /*!< SCB AHBSCR: CTL Position*/ -#define SCB_AHBSCR_CTL_Msk (3UL /*<< SCB_AHBPCR_CTL_Pos*/) /*!< SCB AHBSCR: CTL Mask */ - -/* Auxiliary Bus Fault Status Register Definitions */ -#define SCB_ABFSR_AXIMTYPE_Pos 8U /*!< SCB ABFSR: AXIMTYPE Position*/ -#define SCB_ABFSR_AXIMTYPE_Msk (3UL << SCB_ABFSR_AXIMTYPE_Pos) /*!< SCB ABFSR: AXIMTYPE Mask */ - -#define SCB_ABFSR_EPPB_Pos 4U /*!< SCB ABFSR: EPPB Position*/ -#define SCB_ABFSR_EPPB_Msk (1UL << SCB_ABFSR_EPPB_Pos) /*!< SCB ABFSR: EPPB Mask */ - -#define SCB_ABFSR_AXIM_Pos 3U /*!< SCB ABFSR: AXIM Position*/ -#define SCB_ABFSR_AXIM_Msk (1UL << SCB_ABFSR_AXIM_Pos) /*!< SCB ABFSR: AXIM Mask */ - -#define SCB_ABFSR_AHBP_Pos 2U /*!< SCB ABFSR: AHBP Position*/ -#define SCB_ABFSR_AHBP_Msk (1UL << SCB_ABFSR_AHBP_Pos) /*!< SCB ABFSR: AHBP Mask */ - -#define SCB_ABFSR_DTCM_Pos 1U /*!< SCB ABFSR: DTCM Position*/ -#define SCB_ABFSR_DTCM_Msk (1UL << SCB_ABFSR_DTCM_Pos) /*!< SCB ABFSR: DTCM Mask */ - -#define SCB_ABFSR_ITCM_Pos 0U /*!< SCB ABFSR: ITCM Position*/ -#define SCB_ABFSR_ITCM_Msk (1UL /*<< SCB_ABFSR_ITCM_Pos*/) /*!< SCB ABFSR: ITCM Mask */ - -/*@} end of group CMSIS_SCB */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) - \brief Type definitions for the System Control and ID Register not in the SCB - @{ - */ - -/** - \brief Structure type to access the System Control and ID Register not in the SCB. - */ -typedef struct -{ - uint32_t RESERVED0[1U]; - __IM uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ - __IOM uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ - __IOM uint32_t CPPWR; /*!< Offset: 0x00C (R/W) Coprocessor Power Control Register */ -} SCnSCB_Type; - -/* Interrupt Controller Type Register Definitions */ -#define SCnSCB_ICTR_INTLINESNUM_Pos 0U /*!< ICTR: INTLINESNUM Position */ -#define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL /*<< SCnSCB_ICTR_INTLINESNUM_Pos*/) /*!< ICTR: INTLINESNUM Mask */ - -/*@} end of group CMSIS_SCnotSCB */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SysTick System Tick Timer (SysTick) - \brief Type definitions for the System Timer Registers. - @{ - */ - -/** - \brief Structure type to access the System Timer (SysTick). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ - __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ - __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ - __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ -} SysTick_Type; - -/* SysTick Control / Status Register Definitions */ -#define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ -#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ - -#define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ -#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ - -#define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ -#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ - -#define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ -#define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ - -/* SysTick Reload Register Definitions */ -#define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ -#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ - -/* SysTick Current Register Definitions */ -#define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ -#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ - -/* SysTick Calibration Register Definitions */ -#define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ -#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ - -#define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ -#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ - -#define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ -#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ - -/*@} end of group CMSIS_SysTick */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_ITM Instrumentation Trace Macrocell (ITM) - \brief Type definitions for the Instrumentation Trace Macrocell (ITM) - @{ - */ - -/** - \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). - */ -typedef struct -{ - __OM union - { - __OM uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ - __OM uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ - __OM uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ - } PORT [32U]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ - uint32_t RESERVED0[864U]; - __IOM uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ - uint32_t RESERVED1[15U]; - __IOM uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ - uint32_t RESERVED2[15U]; - __IOM uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ - uint32_t RESERVED3[29U]; - __OM uint32_t IWR; /*!< Offset: 0xEF8 ( /W) ITM Integration Write Register */ - __IM uint32_t IRR; /*!< Offset: 0xEFC (R/ ) ITM Integration Read Register */ - __IOM uint32_t IMCR; /*!< Offset: 0xF00 (R/W) ITM Integration Mode Control Register */ - uint32_t RESERVED4[43U]; - __OM uint32_t LAR; /*!< Offset: 0xFB0 ( /W) ITM Lock Access Register */ - __IM uint32_t LSR; /*!< Offset: 0xFB4 (R/ ) ITM Lock Status Register */ - uint32_t RESERVED5[1U]; - __IM uint32_t DEVARCH; /*!< Offset: 0xFBC (R/ ) ITM Device Architecture Register */ - uint32_t RESERVED6[4U]; - __IM uint32_t PID4; /*!< Offset: 0xFD0 (R/ ) ITM Peripheral Identification Register #4 */ - __IM uint32_t PID5; /*!< Offset: 0xFD4 (R/ ) ITM Peripheral Identification Register #5 */ - __IM uint32_t PID6; /*!< Offset: 0xFD8 (R/ ) ITM Peripheral Identification Register #6 */ - __IM uint32_t PID7; /*!< Offset: 0xFDC (R/ ) ITM Peripheral Identification Register #7 */ - __IM uint32_t PID0; /*!< Offset: 0xFE0 (R/ ) ITM Peripheral Identification Register #0 */ - __IM uint32_t PID1; /*!< Offset: 0xFE4 (R/ ) ITM Peripheral Identification Register #1 */ - __IM uint32_t PID2; /*!< Offset: 0xFE8 (R/ ) ITM Peripheral Identification Register #2 */ - __IM uint32_t PID3; /*!< Offset: 0xFEC (R/ ) ITM Peripheral Identification Register #3 */ - __IM uint32_t CID0; /*!< Offset: 0xFF0 (R/ ) ITM Component Identification Register #0 */ - __IM uint32_t CID1; /*!< Offset: 0xFF4 (R/ ) ITM Component Identification Register #1 */ - __IM uint32_t CID2; /*!< Offset: 0xFF8 (R/ ) ITM Component Identification Register #2 */ - __IM uint32_t CID3; /*!< Offset: 0xFFC (R/ ) ITM Component Identification Register #3 */ -} ITM_Type; - -/* ITM Stimulus Port Register Definitions */ -#define ITM_STIM_DISABLED_Pos 1U /*!< ITM STIM: DISABLED Position */ -#define ITM_STIM_DISABLED_Msk (0x1UL << ITM_STIM_DISABLED_Pos) /*!< ITM STIM: DISABLED Mask */ - -#define ITM_STIM_FIFOREADY_Pos 0U /*!< ITM STIM: FIFOREADY Position */ -#define ITM_STIM_FIFOREADY_Msk (0x1UL /*<< ITM_STIM_FIFOREADY_Pos*/) /*!< ITM STIM: FIFOREADY Mask */ - -/* ITM Trace Privilege Register Definitions */ -#define ITM_TPR_PRIVMASK_Pos 0U /*!< ITM TPR: PRIVMASK Position */ -#define ITM_TPR_PRIVMASK_Msk (0xFUL /*<< ITM_TPR_PRIVMASK_Pos*/) /*!< ITM TPR: PRIVMASK Mask */ - -/* ITM Trace Control Register Definitions */ -#define ITM_TCR_BUSY_Pos 23U /*!< ITM TCR: BUSY Position */ -#define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ - -#define ITM_TCR_TRACEBUSID_Pos 16U /*!< ITM TCR: ATBID Position */ -#define ITM_TCR_TRACEBUSID_Msk (0x7FUL << ITM_TCR_TRACEBUSID_Pos) /*!< ITM TCR: ATBID Mask */ - -#define ITM_TCR_GTSFREQ_Pos 10U /*!< ITM TCR: Global timestamp frequency Position */ -#define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ - -#define ITM_TCR_TSPRESCALE_Pos 8U /*!< ITM TCR: TSPRESCALE Position */ -#define ITM_TCR_TSPRESCALE_Msk (3UL << ITM_TCR_TSPRESCALE_Pos) /*!< ITM TCR: TSPRESCALE Mask */ - -#define ITM_TCR_STALLENA_Pos 5U /*!< ITM TCR: STALLENA Position */ -#define ITM_TCR_STALLENA_Msk (1UL << ITM_TCR_STALLENA_Pos) /*!< ITM TCR: STALLENA Mask */ - -#define ITM_TCR_SWOENA_Pos 4U /*!< ITM TCR: SWOENA Position */ -#define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ - -#define ITM_TCR_DWTENA_Pos 3U /*!< ITM TCR: DWTENA Position */ -#define ITM_TCR_DWTENA_Msk (1UL << ITM_TCR_DWTENA_Pos) /*!< ITM TCR: DWTENA Mask */ - -#define ITM_TCR_SYNCENA_Pos 2U /*!< ITM TCR: SYNCENA Position */ -#define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ - -#define ITM_TCR_TSENA_Pos 1U /*!< ITM TCR: TSENA Position */ -#define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ - -#define ITM_TCR_ITMENA_Pos 0U /*!< ITM TCR: ITM Enable bit Position */ -#define ITM_TCR_ITMENA_Msk (1UL /*<< ITM_TCR_ITMENA_Pos*/) /*!< ITM TCR: ITM Enable bit Mask */ - -/* ITM Integration Write Register Definitions */ -#define ITM_IWR_ATVALIDM_Pos 0U /*!< ITM IWR: ATVALIDM Position */ -#define ITM_IWR_ATVALIDM_Msk (1UL /*<< ITM_IWR_ATVALIDM_Pos*/) /*!< ITM IWR: ATVALIDM Mask */ - -/* ITM Integration Read Register Definitions */ -#define ITM_IRR_ATREADYM_Pos 0U /*!< ITM IRR: ATREADYM Position */ -#define ITM_IRR_ATREADYM_Msk (1UL /*<< ITM_IRR_ATREADYM_Pos*/) /*!< ITM IRR: ATREADYM Mask */ - -/* ITM Integration Mode Control Register Definitions */ -#define ITM_IMCR_INTEGRATION_Pos 0U /*!< ITM IMCR: INTEGRATION Position */ -#define ITM_IMCR_INTEGRATION_Msk (1UL /*<< ITM_IMCR_INTEGRATION_Pos*/) /*!< ITM IMCR: INTEGRATION Mask */ - -/* ITM Lock Status Register Definitions */ -#define ITM_LSR_ByteAcc_Pos 2U /*!< ITM LSR: ByteAcc Position */ -#define ITM_LSR_ByteAcc_Msk (1UL << ITM_LSR_ByteAcc_Pos) /*!< ITM LSR: ByteAcc Mask */ - -#define ITM_LSR_Access_Pos 1U /*!< ITM LSR: Access Position */ -#define ITM_LSR_Access_Msk (1UL << ITM_LSR_Access_Pos) /*!< ITM LSR: Access Mask */ - -#define ITM_LSR_Present_Pos 0U /*!< ITM LSR: Present Position */ -#define ITM_LSR_Present_Msk (1UL /*<< ITM_LSR_Present_Pos*/) /*!< ITM LSR: Present Mask */ - -/*@}*/ /* end of group CMSIS_ITM */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) - \brief Type definitions for the Data Watchpoint and Trace (DWT) - @{ - */ - -/** - \brief Structure type to access the Data Watchpoint and Trace Register (DWT). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ - __IOM uint32_t CYCCNT; /*!< Offset: 0x004 (R/W) Cycle Count Register */ - __IOM uint32_t CPICNT; /*!< Offset: 0x008 (R/W) CPI Count Register */ - __IOM uint32_t EXCCNT; /*!< Offset: 0x00C (R/W) Exception Overhead Count Register */ - __IOM uint32_t SLEEPCNT; /*!< Offset: 0x010 (R/W) Sleep Count Register */ - __IOM uint32_t LSUCNT; /*!< Offset: 0x014 (R/W) LSU Count Register */ - __IOM uint32_t FOLDCNT; /*!< Offset: 0x018 (R/W) Folded-instruction Count Register */ - __IM uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ - __IOM uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ - uint32_t RESERVED1[1U]; - __IOM uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ - uint32_t RESERVED2[1U]; - __IOM uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ - uint32_t RESERVED3[1U]; - __IOM uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ - uint32_t RESERVED4[1U]; - __IOM uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ - uint32_t RESERVED5[1U]; - __IOM uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ - uint32_t RESERVED6[1U]; - __IOM uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ - uint32_t RESERVED7[1U]; - __IOM uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ - uint32_t RESERVED8[1U]; - __IOM uint32_t COMP4; /*!< Offset: 0x060 (R/W) Comparator Register 4 */ - uint32_t RESERVED9[1U]; - __IOM uint32_t FUNCTION4; /*!< Offset: 0x068 (R/W) Function Register 4 */ - uint32_t RESERVED10[1U]; - __IOM uint32_t COMP5; /*!< Offset: 0x070 (R/W) Comparator Register 5 */ - uint32_t RESERVED11[1U]; - __IOM uint32_t FUNCTION5; /*!< Offset: 0x078 (R/W) Function Register 5 */ - uint32_t RESERVED12[1U]; - __IOM uint32_t COMP6; /*!< Offset: 0x080 (R/W) Comparator Register 6 */ - uint32_t RESERVED13[1U]; - __IOM uint32_t FUNCTION6; /*!< Offset: 0x088 (R/W) Function Register 6 */ - uint32_t RESERVED14[1U]; - __IOM uint32_t COMP7; /*!< Offset: 0x090 (R/W) Comparator Register 7 */ - uint32_t RESERVED15[1U]; - __IOM uint32_t FUNCTION7; /*!< Offset: 0x098 (R/W) Function Register 7 */ - uint32_t RESERVED16[1U]; - __IOM uint32_t COMP8; /*!< Offset: 0x0A0 (R/W) Comparator Register 8 */ - uint32_t RESERVED17[1U]; - __IOM uint32_t FUNCTION8; /*!< Offset: 0x0A8 (R/W) Function Register 8 */ - uint32_t RESERVED18[1U]; - __IOM uint32_t COMP9; /*!< Offset: 0x0B0 (R/W) Comparator Register 9 */ - uint32_t RESERVED19[1U]; - __IOM uint32_t FUNCTION9; /*!< Offset: 0x0B8 (R/W) Function Register 9 */ - uint32_t RESERVED20[1U]; - __IOM uint32_t COMP10; /*!< Offset: 0x0C0 (R/W) Comparator Register 10 */ - uint32_t RESERVED21[1U]; - __IOM uint32_t FUNCTION10; /*!< Offset: 0x0C8 (R/W) Function Register 10 */ - uint32_t RESERVED22[1U]; - __IOM uint32_t COMP11; /*!< Offset: 0x0D0 (R/W) Comparator Register 11 */ - uint32_t RESERVED23[1U]; - __IOM uint32_t FUNCTION11; /*!< Offset: 0x0D8 (R/W) Function Register 11 */ - uint32_t RESERVED24[1U]; - __IOM uint32_t COMP12; /*!< Offset: 0x0E0 (R/W) Comparator Register 12 */ - uint32_t RESERVED25[1U]; - __IOM uint32_t FUNCTION12; /*!< Offset: 0x0E8 (R/W) Function Register 12 */ - uint32_t RESERVED26[1U]; - __IOM uint32_t COMP13; /*!< Offset: 0x0F0 (R/W) Comparator Register 13 */ - uint32_t RESERVED27[1U]; - __IOM uint32_t FUNCTION13; /*!< Offset: 0x0F8 (R/W) Function Register 13 */ - uint32_t RESERVED28[1U]; - __IOM uint32_t COMP14; /*!< Offset: 0x100 (R/W) Comparator Register 14 */ - uint32_t RESERVED29[1U]; - __IOM uint32_t FUNCTION14; /*!< Offset: 0x108 (R/W) Function Register 14 */ - uint32_t RESERVED30[1U]; - __IOM uint32_t COMP15; /*!< Offset: 0x110 (R/W) Comparator Register 15 */ - uint32_t RESERVED31[1U]; - __IOM uint32_t FUNCTION15; /*!< Offset: 0x118 (R/W) Function Register 15 */ - uint32_t RESERVED32[934U]; - __IM uint32_t LSR; /*!< Offset: 0xFB4 (R ) Lock Status Register */ - uint32_t RESERVED33[1U]; - __IM uint32_t DEVARCH; /*!< Offset: 0xFBC (R/ ) Device Architecture Register */ -} DWT_Type; - -/* DWT Control Register Definitions */ -#define DWT_CTRL_NUMCOMP_Pos 28U /*!< DWT CTRL: NUMCOMP Position */ -#define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ - -#define DWT_CTRL_NOTRCPKT_Pos 27U /*!< DWT CTRL: NOTRCPKT Position */ -#define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ - -#define DWT_CTRL_NOEXTTRIG_Pos 26U /*!< DWT CTRL: NOEXTTRIG Position */ -#define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ - -#define DWT_CTRL_NOCYCCNT_Pos 25U /*!< DWT CTRL: NOCYCCNT Position */ -#define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ - -#define DWT_CTRL_NOPRFCNT_Pos 24U /*!< DWT CTRL: NOPRFCNT Position */ -#define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ - -#define DWT_CTRL_CYCDISS_Pos 23U /*!< DWT CTRL: CYCDISS Position */ -#define DWT_CTRL_CYCDISS_Msk (0x1UL << DWT_CTRL_CYCDISS_Pos) /*!< DWT CTRL: CYCDISS Mask */ - -#define DWT_CTRL_CYCEVTENA_Pos 22U /*!< DWT CTRL: CYCEVTENA Position */ -#define DWT_CTRL_CYCEVTENA_Msk (0x1UL << DWT_CTRL_CYCEVTENA_Pos) /*!< DWT CTRL: CYCEVTENA Mask */ - -#define DWT_CTRL_FOLDEVTENA_Pos 21U /*!< DWT CTRL: FOLDEVTENA Position */ -#define DWT_CTRL_FOLDEVTENA_Msk (0x1UL << DWT_CTRL_FOLDEVTENA_Pos) /*!< DWT CTRL: FOLDEVTENA Mask */ - -#define DWT_CTRL_LSUEVTENA_Pos 20U /*!< DWT CTRL: LSUEVTENA Position */ -#define DWT_CTRL_LSUEVTENA_Msk (0x1UL << DWT_CTRL_LSUEVTENA_Pos) /*!< DWT CTRL: LSUEVTENA Mask */ - -#define DWT_CTRL_SLEEPEVTENA_Pos 19U /*!< DWT CTRL: SLEEPEVTENA Position */ -#define DWT_CTRL_SLEEPEVTENA_Msk (0x1UL << DWT_CTRL_SLEEPEVTENA_Pos) /*!< DWT CTRL: SLEEPEVTENA Mask */ - -#define DWT_CTRL_EXCEVTENA_Pos 18U /*!< DWT CTRL: EXCEVTENA Position */ -#define DWT_CTRL_EXCEVTENA_Msk (0x1UL << DWT_CTRL_EXCEVTENA_Pos) /*!< DWT CTRL: EXCEVTENA Mask */ - -#define DWT_CTRL_CPIEVTENA_Pos 17U /*!< DWT CTRL: CPIEVTENA Position */ -#define DWT_CTRL_CPIEVTENA_Msk (0x1UL << DWT_CTRL_CPIEVTENA_Pos) /*!< DWT CTRL: CPIEVTENA Mask */ - -#define DWT_CTRL_EXCTRCENA_Pos 16U /*!< DWT CTRL: EXCTRCENA Position */ -#define DWT_CTRL_EXCTRCENA_Msk (0x1UL << DWT_CTRL_EXCTRCENA_Pos) /*!< DWT CTRL: EXCTRCENA Mask */ - -#define DWT_CTRL_PCSAMPLENA_Pos 12U /*!< DWT CTRL: PCSAMPLENA Position */ -#define DWT_CTRL_PCSAMPLENA_Msk (0x1UL << DWT_CTRL_PCSAMPLENA_Pos) /*!< DWT CTRL: PCSAMPLENA Mask */ - -#define DWT_CTRL_SYNCTAP_Pos 10U /*!< DWT CTRL: SYNCTAP Position */ -#define DWT_CTRL_SYNCTAP_Msk (0x3UL << DWT_CTRL_SYNCTAP_Pos) /*!< DWT CTRL: SYNCTAP Mask */ - -#define DWT_CTRL_CYCTAP_Pos 9U /*!< DWT CTRL: CYCTAP Position */ -#define DWT_CTRL_CYCTAP_Msk (0x1UL << DWT_CTRL_CYCTAP_Pos) /*!< DWT CTRL: CYCTAP Mask */ - -#define DWT_CTRL_POSTINIT_Pos 5U /*!< DWT CTRL: POSTINIT Position */ -#define DWT_CTRL_POSTINIT_Msk (0xFUL << DWT_CTRL_POSTINIT_Pos) /*!< DWT CTRL: POSTINIT Mask */ - -#define DWT_CTRL_POSTPRESET_Pos 1U /*!< DWT CTRL: POSTPRESET Position */ -#define DWT_CTRL_POSTPRESET_Msk (0xFUL << DWT_CTRL_POSTPRESET_Pos) /*!< DWT CTRL: POSTPRESET Mask */ - -#define DWT_CTRL_CYCCNTENA_Pos 0U /*!< DWT CTRL: CYCCNTENA Position */ -#define DWT_CTRL_CYCCNTENA_Msk (0x1UL /*<< DWT_CTRL_CYCCNTENA_Pos*/) /*!< DWT CTRL: CYCCNTENA Mask */ - -/* DWT CPI Count Register Definitions */ -#define DWT_CPICNT_CPICNT_Pos 0U /*!< DWT CPICNT: CPICNT Position */ -#define DWT_CPICNT_CPICNT_Msk (0xFFUL /*<< DWT_CPICNT_CPICNT_Pos*/) /*!< DWT CPICNT: CPICNT Mask */ - -/* DWT Exception Overhead Count Register Definitions */ -#define DWT_EXCCNT_EXCCNT_Pos 0U /*!< DWT EXCCNT: EXCCNT Position */ -#define DWT_EXCCNT_EXCCNT_Msk (0xFFUL /*<< DWT_EXCCNT_EXCCNT_Pos*/) /*!< DWT EXCCNT: EXCCNT Mask */ - -/* DWT Sleep Count Register Definitions */ -#define DWT_SLEEPCNT_SLEEPCNT_Pos 0U /*!< DWT SLEEPCNT: SLEEPCNT Position */ -#define DWT_SLEEPCNT_SLEEPCNT_Msk (0xFFUL /*<< DWT_SLEEPCNT_SLEEPCNT_Pos*/) /*!< DWT SLEEPCNT: SLEEPCNT Mask */ - -/* DWT LSU Count Register Definitions */ -#define DWT_LSUCNT_LSUCNT_Pos 0U /*!< DWT LSUCNT: LSUCNT Position */ -#define DWT_LSUCNT_LSUCNT_Msk (0xFFUL /*<< DWT_LSUCNT_LSUCNT_Pos*/) /*!< DWT LSUCNT: LSUCNT Mask */ - -/* DWT Folded-instruction Count Register Definitions */ -#define DWT_FOLDCNT_FOLDCNT_Pos 0U /*!< DWT FOLDCNT: FOLDCNT Position */ -#define DWT_FOLDCNT_FOLDCNT_Msk (0xFFUL /*<< DWT_FOLDCNT_FOLDCNT_Pos*/) /*!< DWT FOLDCNT: FOLDCNT Mask */ - -/* DWT Comparator Function Register Definitions */ -#define DWT_FUNCTION_ID_Pos 27U /*!< DWT FUNCTION: ID Position */ -#define DWT_FUNCTION_ID_Msk (0x1FUL << DWT_FUNCTION_ID_Pos) /*!< DWT FUNCTION: ID Mask */ - -#define DWT_FUNCTION_MATCHED_Pos 24U /*!< DWT FUNCTION: MATCHED Position */ -#define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ - -#define DWT_FUNCTION_DATAVSIZE_Pos 10U /*!< DWT FUNCTION: DATAVSIZE Position */ -#define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ - -#define DWT_FUNCTION_ACTION_Pos 4U /*!< DWT FUNCTION: ACTION Position */ -#define DWT_FUNCTION_ACTION_Msk (0x1UL << DWT_FUNCTION_ACTION_Pos) /*!< DWT FUNCTION: ACTION Mask */ - -#define DWT_FUNCTION_MATCH_Pos 0U /*!< DWT FUNCTION: MATCH Position */ -#define DWT_FUNCTION_MATCH_Msk (0xFUL /*<< DWT_FUNCTION_MATCH_Pos*/) /*!< DWT FUNCTION: MATCH Mask */ - -/*@}*/ /* end of group CMSIS_DWT */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_TPI Trace Port Interface (TPI) - \brief Type definitions for the Trace Port Interface (TPI) - @{ - */ - -/** - \brief Structure type to access the Trace Port Interface Register (TPI). - */ -typedef struct -{ - __IM uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Sizes Register */ - __IOM uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Sizes Register */ - uint32_t RESERVED0[2U]; - __IOM uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ - uint32_t RESERVED1[55U]; - __IOM uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ - uint32_t RESERVED2[131U]; - __IM uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ - __IOM uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ - __IM uint32_t FSCR; /*!< Offset: 0x308 (R/ ) Formatter Synchronization Counter Register */ - uint32_t RESERVED3[759U]; - __IM uint32_t TRIGGER; /*!< Offset: 0xEE8 (R/ ) TRIGGER */ - __IM uint32_t FIFO0; /*!< Offset: 0xEEC (R/ ) Integration ETM Data */ - __IM uint32_t ITATBCTR2; /*!< Offset: 0xEF0 (R/ ) ITATBCTR2 */ - uint32_t RESERVED4[1U]; - __IM uint32_t ITATBCTR0; /*!< Offset: 0xEF8 (R/ ) ITATBCTR0 */ - __IM uint32_t FIFO1; /*!< Offset: 0xEFC (R/ ) Integration ITM Data */ - __IOM uint32_t ITCTRL; /*!< Offset: 0xF00 (R/W) Integration Mode Control */ - uint32_t RESERVED5[39U]; - __IOM uint32_t CLAIMSET; /*!< Offset: 0xFA0 (R/W) Claim tag set */ - __IOM uint32_t CLAIMCLR; /*!< Offset: 0xFA4 (R/W) Claim tag clear */ - uint32_t RESERVED7[8U]; - __IM uint32_t DEVID; /*!< Offset: 0xFC8 (R/ ) TPIU_DEVID */ - __IM uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) TPIU_DEVTYPE */ -} TPI_Type; - -/* TPI Asynchronous Clock Prescaler Register Definitions */ -#define TPI_ACPR_PRESCALER_Pos 0U /*!< TPI ACPR: PRESCALER Position */ -#define TPI_ACPR_PRESCALER_Msk (0x1FFFUL /*<< TPI_ACPR_PRESCALER_Pos*/) /*!< TPI ACPR: PRESCALER Mask */ - -/* TPI Selected Pin Protocol Register Definitions */ -#define TPI_SPPR_TXMODE_Pos 0U /*!< TPI SPPR: TXMODE Position */ -#define TPI_SPPR_TXMODE_Msk (0x3UL /*<< TPI_SPPR_TXMODE_Pos*/) /*!< TPI SPPR: TXMODE Mask */ - -/* TPI Formatter and Flush Status Register Definitions */ -#define TPI_FFSR_FtNonStop_Pos 3U /*!< TPI FFSR: FtNonStop Position */ -#define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ - -#define TPI_FFSR_TCPresent_Pos 2U /*!< TPI FFSR: TCPresent Position */ -#define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ - -#define TPI_FFSR_FtStopped_Pos 1U /*!< TPI FFSR: FtStopped Position */ -#define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ - -#define TPI_FFSR_FlInProg_Pos 0U /*!< TPI FFSR: FlInProg Position */ -#define TPI_FFSR_FlInProg_Msk (0x1UL /*<< TPI_FFSR_FlInProg_Pos*/) /*!< TPI FFSR: FlInProg Mask */ - -/* TPI Formatter and Flush Control Register Definitions */ -#define TPI_FFCR_TrigIn_Pos 8U /*!< TPI FFCR: TrigIn Position */ -#define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ - -#define TPI_FFCR_EnFCont_Pos 1U /*!< TPI FFCR: EnFCont Position */ -#define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ - -/* TPI TRIGGER Register Definitions */ -#define TPI_TRIGGER_TRIGGER_Pos 0U /*!< TPI TRIGGER: TRIGGER Position */ -#define TPI_TRIGGER_TRIGGER_Msk (0x1UL /*<< TPI_TRIGGER_TRIGGER_Pos*/) /*!< TPI TRIGGER: TRIGGER Mask */ - -/* TPI Integration ETM Data Register Definitions (FIFO0) */ -#define TPI_FIFO0_ITM_ATVALID_Pos 29U /*!< TPI FIFO0: ITM_ATVALID Position */ -#define TPI_FIFO0_ITM_ATVALID_Msk (0x3UL << TPI_FIFO0_ITM_ATVALID_Pos) /*!< TPI FIFO0: ITM_ATVALID Mask */ - -#define TPI_FIFO0_ITM_bytecount_Pos 27U /*!< TPI FIFO0: ITM_bytecount Position */ -#define TPI_FIFO0_ITM_bytecount_Msk (0x3UL << TPI_FIFO0_ITM_bytecount_Pos) /*!< TPI FIFO0: ITM_bytecount Mask */ - -#define TPI_FIFO0_ETM_ATVALID_Pos 26U /*!< TPI FIFO0: ETM_ATVALID Position */ -#define TPI_FIFO0_ETM_ATVALID_Msk (0x3UL << TPI_FIFO0_ETM_ATVALID_Pos) /*!< TPI FIFO0: ETM_ATVALID Mask */ - -#define TPI_FIFO0_ETM_bytecount_Pos 24U /*!< TPI FIFO0: ETM_bytecount Position */ -#define TPI_FIFO0_ETM_bytecount_Msk (0x3UL << TPI_FIFO0_ETM_bytecount_Pos) /*!< TPI FIFO0: ETM_bytecount Mask */ - -#define TPI_FIFO0_ETM2_Pos 16U /*!< TPI FIFO0: ETM2 Position */ -#define TPI_FIFO0_ETM2_Msk (0xFFUL << TPI_FIFO0_ETM2_Pos) /*!< TPI FIFO0: ETM2 Mask */ - -#define TPI_FIFO0_ETM1_Pos 8U /*!< TPI FIFO0: ETM1 Position */ -#define TPI_FIFO0_ETM1_Msk (0xFFUL << TPI_FIFO0_ETM1_Pos) /*!< TPI FIFO0: ETM1 Mask */ - -#define TPI_FIFO0_ETM0_Pos 0U /*!< TPI FIFO0: ETM0 Position */ -#define TPI_FIFO0_ETM0_Msk (0xFFUL /*<< TPI_FIFO0_ETM0_Pos*/) /*!< TPI FIFO0: ETM0 Mask */ - -/* TPI ITATBCTR2 Register Definitions */ -#define TPI_ITATBCTR2_ATREADY_Pos 0U /*!< TPI ITATBCTR2: ATREADY Position */ -#define TPI_ITATBCTR2_ATREADY_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY_Pos*/) /*!< TPI ITATBCTR2: ATREADY Mask */ - -/* TPI Integration ITM Data Register Definitions (FIFO1) */ -#define TPI_FIFO1_ITM_ATVALID_Pos 29U /*!< TPI FIFO1: ITM_ATVALID Position */ -#define TPI_FIFO1_ITM_ATVALID_Msk (0x3UL << TPI_FIFO1_ITM_ATVALID_Pos) /*!< TPI FIFO1: ITM_ATVALID Mask */ - -#define TPI_FIFO1_ITM_bytecount_Pos 27U /*!< TPI FIFO1: ITM_bytecount Position */ -#define TPI_FIFO1_ITM_bytecount_Msk (0x3UL << TPI_FIFO1_ITM_bytecount_Pos) /*!< TPI FIFO1: ITM_bytecount Mask */ - -#define TPI_FIFO1_ETM_ATVALID_Pos 26U /*!< TPI FIFO1: ETM_ATVALID Position */ -#define TPI_FIFO1_ETM_ATVALID_Msk (0x3UL << TPI_FIFO1_ETM_ATVALID_Pos) /*!< TPI FIFO1: ETM_ATVALID Mask */ - -#define TPI_FIFO1_ETM_bytecount_Pos 24U /*!< TPI FIFO1: ETM_bytecount Position */ -#define TPI_FIFO1_ETM_bytecount_Msk (0x3UL << TPI_FIFO1_ETM_bytecount_Pos) /*!< TPI FIFO1: ETM_bytecount Mask */ - -#define TPI_FIFO1_ITM2_Pos 16U /*!< TPI FIFO1: ITM2 Position */ -#define TPI_FIFO1_ITM2_Msk (0xFFUL << TPI_FIFO1_ITM2_Pos) /*!< TPI FIFO1: ITM2 Mask */ - -#define TPI_FIFO1_ITM1_Pos 8U /*!< TPI FIFO1: ITM1 Position */ -#define TPI_FIFO1_ITM1_Msk (0xFFUL << TPI_FIFO1_ITM1_Pos) /*!< TPI FIFO1: ITM1 Mask */ - -#define TPI_FIFO1_ITM0_Pos 0U /*!< TPI FIFO1: ITM0 Position */ -#define TPI_FIFO1_ITM0_Msk (0xFFUL /*<< TPI_FIFO1_ITM0_Pos*/) /*!< TPI FIFO1: ITM0 Mask */ - -/* TPI ITATBCTR0 Register Definitions */ -#define TPI_ITATBCTR0_ATREADY_Pos 0U /*!< TPI ITATBCTR0: ATREADY Position */ -#define TPI_ITATBCTR0_ATREADY_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY_Pos*/) /*!< TPI ITATBCTR0: ATREADY Mask */ - -/* TPI Integration Mode Control Register Definitions */ -#define TPI_ITCTRL_Mode_Pos 0U /*!< TPI ITCTRL: Mode Position */ -#define TPI_ITCTRL_Mode_Msk (0x1UL /*<< TPI_ITCTRL_Mode_Pos*/) /*!< TPI ITCTRL: Mode Mask */ - -/* TPI DEVID Register Definitions */ -#define TPI_DEVID_NRZVALID_Pos 11U /*!< TPI DEVID: NRZVALID Position */ -#define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ - -#define TPI_DEVID_MANCVALID_Pos 10U /*!< TPI DEVID: MANCVALID Position */ -#define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ - -#define TPI_DEVID_PTINVALID_Pos 9U /*!< TPI DEVID: PTINVALID Position */ -#define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ - -#define TPI_DEVID_MinBufSz_Pos 6U /*!< TPI DEVID: MinBufSz Position */ -#define TPI_DEVID_MinBufSz_Msk (0x7UL << TPI_DEVID_MinBufSz_Pos) /*!< TPI DEVID: MinBufSz Mask */ - -#define TPI_DEVID_AsynClkIn_Pos 5U /*!< TPI DEVID: AsynClkIn Position */ -#define TPI_DEVID_AsynClkIn_Msk (0x1UL << TPI_DEVID_AsynClkIn_Pos) /*!< TPI DEVID: AsynClkIn Mask */ - -#define TPI_DEVID_NrTraceInput_Pos 0U /*!< TPI DEVID: NrTraceInput Position */ -#define TPI_DEVID_NrTraceInput_Msk (0x1FUL /*<< TPI_DEVID_NrTraceInput_Pos*/) /*!< TPI DEVID: NrTraceInput Mask */ - -/* TPI DEVTYPE Register Definitions */ -#define TPI_DEVTYPE_MajorType_Pos 4U /*!< TPI DEVTYPE: MajorType Position */ -#define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ - -#define TPI_DEVTYPE_SubType_Pos 0U /*!< TPI DEVTYPE: SubType Position */ -#define TPI_DEVTYPE_SubType_Msk (0xFUL /*<< TPI_DEVTYPE_SubType_Pos*/) /*!< TPI DEVTYPE: SubType Mask */ - -/*@}*/ /* end of group CMSIS_TPI */ - - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_MPU Memory Protection Unit (MPU) - \brief Type definitions for the Memory Protection Unit (MPU) - @{ - */ - -/** - \brief Structure type to access the Memory Protection Unit (MPU). - */ -typedef struct -{ - __IM uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ - __IOM uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ - __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region Number Register */ - __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ - __IOM uint32_t RLAR; /*!< Offset: 0x010 (R/W) MPU Region Limit Address Register */ - __IOM uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Region Base Address Register Alias 1 */ - __IOM uint32_t RLAR_A1; /*!< Offset: 0x018 (R/W) MPU Region Limit Address Register Alias 1 */ - __IOM uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Region Base Address Register Alias 2 */ - __IOM uint32_t RLAR_A2; /*!< Offset: 0x020 (R/W) MPU Region Limit Address Register Alias 2 */ - __IOM uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Region Base Address Register Alias 3 */ - __IOM uint32_t RLAR_A3; /*!< Offset: 0x028 (R/W) MPU Region Limit Address Register Alias 3 */ - uint32_t RESERVED0[1]; - union { - __IOM uint32_t MAIR[2]; - struct { - __IOM uint32_t MAIR0; /*!< Offset: 0x030 (R/W) MPU Memory Attribute Indirection Register 0 */ - __IOM uint32_t MAIR1; /*!< Offset: 0x034 (R/W) MPU Memory Attribute Indirection Register 1 */ - }; - }; -} MPU_Type; - -#define MPU_TYPE_RALIASES 4U - -/* MPU Type Register Definitions */ -#define MPU_TYPE_IREGION_Pos 16U /*!< MPU TYPE: IREGION Position */ -#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ - -#define MPU_TYPE_DREGION_Pos 8U /*!< MPU TYPE: DREGION Position */ -#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ - -#define MPU_TYPE_SEPARATE_Pos 0U /*!< MPU TYPE: SEPARATE Position */ -#define MPU_TYPE_SEPARATE_Msk (1UL /*<< MPU_TYPE_SEPARATE_Pos*/) /*!< MPU TYPE: SEPARATE Mask */ - -/* MPU Control Register Definitions */ -#define MPU_CTRL_PRIVDEFENA_Pos 2U /*!< MPU CTRL: PRIVDEFENA Position */ -#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ - -#define MPU_CTRL_HFNMIENA_Pos 1U /*!< MPU CTRL: HFNMIENA Position */ -#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ - -#define MPU_CTRL_ENABLE_Pos 0U /*!< MPU CTRL: ENABLE Position */ -#define MPU_CTRL_ENABLE_Msk (1UL /*<< MPU_CTRL_ENABLE_Pos*/) /*!< MPU CTRL: ENABLE Mask */ - -/* MPU Region Number Register Definitions */ -#define MPU_RNR_REGION_Pos 0U /*!< MPU RNR: REGION Position */ -#define MPU_RNR_REGION_Msk (0xFFUL /*<< MPU_RNR_REGION_Pos*/) /*!< MPU RNR: REGION Mask */ - -/* MPU Region Base Address Register Definitions */ -#define MPU_RBAR_ADDR_Pos 5U /*!< MPU RBAR: ADDR Position */ -#define MPU_RBAR_ADDR_Msk (0x7FFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ - -#define MPU_RBAR_SH_Pos 3U /*!< MPU RBAR: SH Position */ -#define MPU_RBAR_SH_Msk (0x3UL << MPU_RBAR_SH_Pos) /*!< MPU RBAR: SH Mask */ - -#define MPU_RBAR_AP_Pos 1U /*!< MPU RBAR: AP Position */ -#define MPU_RBAR_AP_Msk (0x3UL << MPU_RBAR_AP_Pos) /*!< MPU RBAR: AP Mask */ - -#define MPU_RBAR_XN_Pos 0U /*!< MPU RBAR: XN Position */ -#define MPU_RBAR_XN_Msk (01UL /*<< MPU_RBAR_XN_Pos*/) /*!< MPU RBAR: XN Mask */ - -/* MPU Region Limit Address Register Definitions */ -#define MPU_RLAR_LIMIT_Pos 5U /*!< MPU RLAR: LIMIT Position */ -#define MPU_RLAR_LIMIT_Msk (0x7FFFFFFUL << MPU_RLAR_LIMIT_Pos) /*!< MPU RLAR: LIMIT Mask */ - -#define MPU_RLAR_PXN_Pos 4U /*!< MPU RLAR: PXN Position */ -#define MPU_RLAR_PXN_Msk (0x1UL << MPU_RLAR_PXN_Pos) /*!< MPU RLAR: PXN Mask */ - -#define MPU_RLAR_AttrIndx_Pos 1U /*!< MPU RLAR: AttrIndx Position */ -#define MPU_RLAR_AttrIndx_Msk (0x7UL << MPU_RLAR_AttrIndx_Pos) /*!< MPU RLAR: AttrIndx Mask */ - -#define MPU_RLAR_EN_Pos 0U /*!< MPU RLAR: Region enable bit Position */ -#define MPU_RLAR_EN_Msk (1UL /*<< MPU_RLAR_EN_Pos*/) /*!< MPU RLAR: Region enable bit Disable Mask */ - -/* MPU Memory Attribute Indirection Register 0 Definitions */ -#define MPU_MAIR0_Attr3_Pos 24U /*!< MPU MAIR0: Attr3 Position */ -#define MPU_MAIR0_Attr3_Msk (0xFFUL << MPU_MAIR0_Attr3_Pos) /*!< MPU MAIR0: Attr3 Mask */ - -#define MPU_MAIR0_Attr2_Pos 16U /*!< MPU MAIR0: Attr2 Position */ -#define MPU_MAIR0_Attr2_Msk (0xFFUL << MPU_MAIR0_Attr2_Pos) /*!< MPU MAIR0: Attr2 Mask */ - -#define MPU_MAIR0_Attr1_Pos 8U /*!< MPU MAIR0: Attr1 Position */ -#define MPU_MAIR0_Attr1_Msk (0xFFUL << MPU_MAIR0_Attr1_Pos) /*!< MPU MAIR0: Attr1 Mask */ - -#define MPU_MAIR0_Attr0_Pos 0U /*!< MPU MAIR0: Attr0 Position */ -#define MPU_MAIR0_Attr0_Msk (0xFFUL /*<< MPU_MAIR0_Attr0_Pos*/) /*!< MPU MAIR0: Attr0 Mask */ - -/* MPU Memory Attribute Indirection Register 1 Definitions */ -#define MPU_MAIR1_Attr7_Pos 24U /*!< MPU MAIR1: Attr7 Position */ -#define MPU_MAIR1_Attr7_Msk (0xFFUL << MPU_MAIR1_Attr7_Pos) /*!< MPU MAIR1: Attr7 Mask */ - -#define MPU_MAIR1_Attr6_Pos 16U /*!< MPU MAIR1: Attr6 Position */ -#define MPU_MAIR1_Attr6_Msk (0xFFUL << MPU_MAIR1_Attr6_Pos) /*!< MPU MAIR1: Attr6 Mask */ - -#define MPU_MAIR1_Attr5_Pos 8U /*!< MPU MAIR1: Attr5 Position */ -#define MPU_MAIR1_Attr5_Msk (0xFFUL << MPU_MAIR1_Attr5_Pos) /*!< MPU MAIR1: Attr5 Mask */ - -#define MPU_MAIR1_Attr4_Pos 0U /*!< MPU MAIR1: Attr4 Position */ -#define MPU_MAIR1_Attr4_Msk (0xFFUL /*<< MPU_MAIR1_Attr4_Pos*/) /*!< MPU MAIR1: Attr4 Mask */ - -/*@} end of group CMSIS_MPU */ -#endif - - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SAU Security Attribution Unit (SAU) - \brief Type definitions for the Security Attribution Unit (SAU) - @{ - */ - -/** - \brief Structure type to access the Security Attribution Unit (SAU). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SAU Control Register */ - __IM uint32_t TYPE; /*!< Offset: 0x004 (R/ ) SAU Type Register */ -#if defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) - __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) SAU Region Number Register */ - __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) SAU Region Base Address Register */ - __IOM uint32_t RLAR; /*!< Offset: 0x010 (R/W) SAU Region Limit Address Register */ -#else - uint32_t RESERVED0[3]; -#endif - __IOM uint32_t SFSR; /*!< Offset: 0x014 (R/W) Secure Fault Status Register */ - __IOM uint32_t SFAR; /*!< Offset: 0x018 (R/W) Secure Fault Address Register */ -} SAU_Type; - -/* SAU Control Register Definitions */ -#define SAU_CTRL_ALLNS_Pos 1U /*!< SAU CTRL: ALLNS Position */ -#define SAU_CTRL_ALLNS_Msk (1UL << SAU_CTRL_ALLNS_Pos) /*!< SAU CTRL: ALLNS Mask */ - -#define SAU_CTRL_ENABLE_Pos 0U /*!< SAU CTRL: ENABLE Position */ -#define SAU_CTRL_ENABLE_Msk (1UL /*<< SAU_CTRL_ENABLE_Pos*/) /*!< SAU CTRL: ENABLE Mask */ - -/* SAU Type Register Definitions */ -#define SAU_TYPE_SREGION_Pos 0U /*!< SAU TYPE: SREGION Position */ -#define SAU_TYPE_SREGION_Msk (0xFFUL /*<< SAU_TYPE_SREGION_Pos*/) /*!< SAU TYPE: SREGION Mask */ - -#if defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) -/* SAU Region Number Register Definitions */ -#define SAU_RNR_REGION_Pos 0U /*!< SAU RNR: REGION Position */ -#define SAU_RNR_REGION_Msk (0xFFUL /*<< SAU_RNR_REGION_Pos*/) /*!< SAU RNR: REGION Mask */ - -/* SAU Region Base Address Register Definitions */ -#define SAU_RBAR_BADDR_Pos 5U /*!< SAU RBAR: BADDR Position */ -#define SAU_RBAR_BADDR_Msk (0x7FFFFFFUL << SAU_RBAR_BADDR_Pos) /*!< SAU RBAR: BADDR Mask */ - -/* SAU Region Limit Address Register Definitions */ -#define SAU_RLAR_LADDR_Pos 5U /*!< SAU RLAR: LADDR Position */ -#define SAU_RLAR_LADDR_Msk (0x7FFFFFFUL << SAU_RLAR_LADDR_Pos) /*!< SAU RLAR: LADDR Mask */ - -#define SAU_RLAR_NSC_Pos 1U /*!< SAU RLAR: NSC Position */ -#define SAU_RLAR_NSC_Msk (1UL << SAU_RLAR_NSC_Pos) /*!< SAU RLAR: NSC Mask */ - -#define SAU_RLAR_ENABLE_Pos 0U /*!< SAU RLAR: ENABLE Position */ -#define SAU_RLAR_ENABLE_Msk (1UL /*<< SAU_RLAR_ENABLE_Pos*/) /*!< SAU RLAR: ENABLE Mask */ - -#endif /* defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) */ - -/* Secure Fault Status Register Definitions */ -#define SAU_SFSR_LSERR_Pos 7U /*!< SAU SFSR: LSERR Position */ -#define SAU_SFSR_LSERR_Msk (1UL << SAU_SFSR_LSERR_Pos) /*!< SAU SFSR: LSERR Mask */ - -#define SAU_SFSR_SFARVALID_Pos 6U /*!< SAU SFSR: SFARVALID Position */ -#define SAU_SFSR_SFARVALID_Msk (1UL << SAU_SFSR_SFARVALID_Pos) /*!< SAU SFSR: SFARVALID Mask */ - -#define SAU_SFSR_LSPERR_Pos 5U /*!< SAU SFSR: LSPERR Position */ -#define SAU_SFSR_LSPERR_Msk (1UL << SAU_SFSR_LSPERR_Pos) /*!< SAU SFSR: LSPERR Mask */ - -#define SAU_SFSR_INVTRAN_Pos 4U /*!< SAU SFSR: INVTRAN Position */ -#define SAU_SFSR_INVTRAN_Msk (1UL << SAU_SFSR_INVTRAN_Pos) /*!< SAU SFSR: INVTRAN Mask */ - -#define SAU_SFSR_AUVIOL_Pos 3U /*!< SAU SFSR: AUVIOL Position */ -#define SAU_SFSR_AUVIOL_Msk (1UL << SAU_SFSR_AUVIOL_Pos) /*!< SAU SFSR: AUVIOL Mask */ - -#define SAU_SFSR_INVER_Pos 2U /*!< SAU SFSR: INVER Position */ -#define SAU_SFSR_INVER_Msk (1UL << SAU_SFSR_INVER_Pos) /*!< SAU SFSR: INVER Mask */ - -#define SAU_SFSR_INVIS_Pos 1U /*!< SAU SFSR: INVIS Position */ -#define SAU_SFSR_INVIS_Msk (1UL << SAU_SFSR_INVIS_Pos) /*!< SAU SFSR: INVIS Mask */ - -#define SAU_SFSR_INVEP_Pos 0U /*!< SAU SFSR: INVEP Position */ -#define SAU_SFSR_INVEP_Msk (1UL /*<< SAU_SFSR_INVEP_Pos*/) /*!< SAU SFSR: INVEP Mask */ - -/*@} end of group CMSIS_SAU */ -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_FPU Floating Point Unit (FPU) - \brief Type definitions for the Floating Point Unit (FPU) - @{ - */ - -/** - \brief Structure type to access the Floating Point Unit (FPU). - */ -typedef struct -{ - uint32_t RESERVED0[1U]; - __IOM uint32_t FPCCR; /*!< Offset: 0x004 (R/W) Floating-Point Context Control Register */ - __IOM uint32_t FPCAR; /*!< Offset: 0x008 (R/W) Floating-Point Context Address Register */ - __IOM uint32_t FPDSCR; /*!< Offset: 0x00C (R/W) Floating-Point Default Status Control Register */ - __IM uint32_t MVFR0; /*!< Offset: 0x010 (R/ ) Media and FP Feature Register 0 */ - __IM uint32_t MVFR1; /*!< Offset: 0x014 (R/ ) Media and FP Feature Register 1 */ -} FPU_Type; - -/* Floating-Point Context Control Register Definitions */ -#define FPU_FPCCR_ASPEN_Pos 31U /*!< FPCCR: ASPEN bit Position */ -#define FPU_FPCCR_ASPEN_Msk (1UL << FPU_FPCCR_ASPEN_Pos) /*!< FPCCR: ASPEN bit Mask */ - -#define FPU_FPCCR_LSPEN_Pos 30U /*!< FPCCR: LSPEN Position */ -#define FPU_FPCCR_LSPEN_Msk (1UL << FPU_FPCCR_LSPEN_Pos) /*!< FPCCR: LSPEN bit Mask */ - -#define FPU_FPCCR_LSPENS_Pos 29U /*!< FPCCR: LSPENS Position */ -#define FPU_FPCCR_LSPENS_Msk (1UL << FPU_FPCCR_LSPENS_Pos) /*!< FPCCR: LSPENS bit Mask */ - -#define FPU_FPCCR_CLRONRET_Pos 28U /*!< FPCCR: CLRONRET Position */ -#define FPU_FPCCR_CLRONRET_Msk (1UL << FPU_FPCCR_CLRONRET_Pos) /*!< FPCCR: CLRONRET bit Mask */ - -#define FPU_FPCCR_CLRONRETS_Pos 27U /*!< FPCCR: CLRONRETS Position */ -#define FPU_FPCCR_CLRONRETS_Msk (1UL << FPU_FPCCR_CLRONRETS_Pos) /*!< FPCCR: CLRONRETS bit Mask */ - -#define FPU_FPCCR_TS_Pos 26U /*!< FPCCR: TS Position */ -#define FPU_FPCCR_TS_Msk (1UL << FPU_FPCCR_TS_Pos) /*!< FPCCR: TS bit Mask */ - -#define FPU_FPCCR_UFRDY_Pos 10U /*!< FPCCR: UFRDY Position */ -#define FPU_FPCCR_UFRDY_Msk (1UL << FPU_FPCCR_UFRDY_Pos) /*!< FPCCR: UFRDY bit Mask */ - -#define FPU_FPCCR_SPLIMVIOL_Pos 9U /*!< FPCCR: SPLIMVIOL Position */ -#define FPU_FPCCR_SPLIMVIOL_Msk (1UL << FPU_FPCCR_SPLIMVIOL_Pos) /*!< FPCCR: SPLIMVIOL bit Mask */ - -#define FPU_FPCCR_MONRDY_Pos 8U /*!< FPCCR: MONRDY Position */ -#define FPU_FPCCR_MONRDY_Msk (1UL << FPU_FPCCR_MONRDY_Pos) /*!< FPCCR: MONRDY bit Mask */ - -#define FPU_FPCCR_SFRDY_Pos 7U /*!< FPCCR: SFRDY Position */ -#define FPU_FPCCR_SFRDY_Msk (1UL << FPU_FPCCR_SFRDY_Pos) /*!< FPCCR: SFRDY bit Mask */ - -#define FPU_FPCCR_BFRDY_Pos 6U /*!< FPCCR: BFRDY Position */ -#define FPU_FPCCR_BFRDY_Msk (1UL << FPU_FPCCR_BFRDY_Pos) /*!< FPCCR: BFRDY bit Mask */ - -#define FPU_FPCCR_MMRDY_Pos 5U /*!< FPCCR: MMRDY Position */ -#define FPU_FPCCR_MMRDY_Msk (1UL << FPU_FPCCR_MMRDY_Pos) /*!< FPCCR: MMRDY bit Mask */ - -#define FPU_FPCCR_HFRDY_Pos 4U /*!< FPCCR: HFRDY Position */ -#define FPU_FPCCR_HFRDY_Msk (1UL << FPU_FPCCR_HFRDY_Pos) /*!< FPCCR: HFRDY bit Mask */ - -#define FPU_FPCCR_THREAD_Pos 3U /*!< FPCCR: processor mode bit Position */ -#define FPU_FPCCR_THREAD_Msk (1UL << FPU_FPCCR_THREAD_Pos) /*!< FPCCR: processor mode active bit Mask */ - -#define FPU_FPCCR_S_Pos 2U /*!< FPCCR: Security status of the FP context bit Position */ -#define FPU_FPCCR_S_Msk (1UL << FPU_FPCCR_S_Pos) /*!< FPCCR: Security status of the FP context bit Mask */ - -#define FPU_FPCCR_USER_Pos 1U /*!< FPCCR: privilege level bit Position */ -#define FPU_FPCCR_USER_Msk (1UL << FPU_FPCCR_USER_Pos) /*!< FPCCR: privilege level bit Mask */ - -#define FPU_FPCCR_LSPACT_Pos 0U /*!< FPCCR: Lazy state preservation active bit Position */ -#define FPU_FPCCR_LSPACT_Msk (1UL /*<< FPU_FPCCR_LSPACT_Pos*/) /*!< FPCCR: Lazy state preservation active bit Mask */ - -/* Floating-Point Context Address Register Definitions */ -#define FPU_FPCAR_ADDRESS_Pos 3U /*!< FPCAR: ADDRESS bit Position */ -#define FPU_FPCAR_ADDRESS_Msk (0x1FFFFFFFUL << FPU_FPCAR_ADDRESS_Pos) /*!< FPCAR: ADDRESS bit Mask */ - -/* Floating-Point Default Status Control Register Definitions */ -#define FPU_FPDSCR_AHP_Pos 26U /*!< FPDSCR: AHP bit Position */ -#define FPU_FPDSCR_AHP_Msk (1UL << FPU_FPDSCR_AHP_Pos) /*!< FPDSCR: AHP bit Mask */ - -#define FPU_FPDSCR_DN_Pos 25U /*!< FPDSCR: DN bit Position */ -#define FPU_FPDSCR_DN_Msk (1UL << FPU_FPDSCR_DN_Pos) /*!< FPDSCR: DN bit Mask */ - -#define FPU_FPDSCR_FZ_Pos 24U /*!< FPDSCR: FZ bit Position */ -#define FPU_FPDSCR_FZ_Msk (1UL << FPU_FPDSCR_FZ_Pos) /*!< FPDSCR: FZ bit Mask */ - -#define FPU_FPDSCR_RMode_Pos 22U /*!< FPDSCR: RMode bit Position */ -#define FPU_FPDSCR_RMode_Msk (3UL << FPU_FPDSCR_RMode_Pos) /*!< FPDSCR: RMode bit Mask */ - -/* Media and FP Feature Register 0 Definitions */ -#define FPU_MVFR0_FP_rounding_modes_Pos 28U /*!< MVFR0: FP rounding modes bits Position */ -#define FPU_MVFR0_FP_rounding_modes_Msk (0xFUL << FPU_MVFR0_FP_rounding_modes_Pos) /*!< MVFR0: FP rounding modes bits Mask */ - -#define FPU_MVFR0_Short_vectors_Pos 24U /*!< MVFR0: Short vectors bits Position */ -#define FPU_MVFR0_Short_vectors_Msk (0xFUL << FPU_MVFR0_Short_vectors_Pos) /*!< MVFR0: Short vectors bits Mask */ - -#define FPU_MVFR0_Square_root_Pos 20U /*!< MVFR0: Square root bits Position */ -#define FPU_MVFR0_Square_root_Msk (0xFUL << FPU_MVFR0_Square_root_Pos) /*!< MVFR0: Square root bits Mask */ - -#define FPU_MVFR0_Divide_Pos 16U /*!< MVFR0: Divide bits Position */ -#define FPU_MVFR0_Divide_Msk (0xFUL << FPU_MVFR0_Divide_Pos) /*!< MVFR0: Divide bits Mask */ - -#define FPU_MVFR0_FP_excep_trapping_Pos 12U /*!< MVFR0: FP exception trapping bits Position */ -#define FPU_MVFR0_FP_excep_trapping_Msk (0xFUL << FPU_MVFR0_FP_excep_trapping_Pos) /*!< MVFR0: FP exception trapping bits Mask */ - -#define FPU_MVFR0_Double_precision_Pos 8U /*!< MVFR0: Double-precision bits Position */ -#define FPU_MVFR0_Double_precision_Msk (0xFUL << FPU_MVFR0_Double_precision_Pos) /*!< MVFR0: Double-precision bits Mask */ - -#define FPU_MVFR0_Single_precision_Pos 4U /*!< MVFR0: Single-precision bits Position */ -#define FPU_MVFR0_Single_precision_Msk (0xFUL << FPU_MVFR0_Single_precision_Pos) /*!< MVFR0: Single-precision bits Mask */ - -#define FPU_MVFR0_A_SIMD_registers_Pos 0U /*!< MVFR0: A_SIMD registers bits Position */ -#define FPU_MVFR0_A_SIMD_registers_Msk (0xFUL /*<< FPU_MVFR0_A_SIMD_registers_Pos*/) /*!< MVFR0: A_SIMD registers bits Mask */ - -/* Media and FP Feature Register 1 Definitions */ -#define FPU_MVFR1_FP_fused_MAC_Pos 28U /*!< MVFR1: FP fused MAC bits Position */ -#define FPU_MVFR1_FP_fused_MAC_Msk (0xFUL << FPU_MVFR1_FP_fused_MAC_Pos) /*!< MVFR1: FP fused MAC bits Mask */ - -#define FPU_MVFR1_FP_HPFP_Pos 24U /*!< MVFR1: FP HPFP bits Position */ -#define FPU_MVFR1_FP_HPFP_Msk (0xFUL << FPU_MVFR1_FP_HPFP_Pos) /*!< MVFR1: FP HPFP bits Mask */ - -#define FPU_MVFR1_D_NaN_mode_Pos 4U /*!< MVFR1: D_NaN mode bits Position */ -#define FPU_MVFR1_D_NaN_mode_Msk (0xFUL << FPU_MVFR1_D_NaN_mode_Pos) /*!< MVFR1: D_NaN mode bits Mask */ - -#define FPU_MVFR1_FtZ_mode_Pos 0U /*!< MVFR1: FtZ mode bits Position */ -#define FPU_MVFR1_FtZ_mode_Msk (0xFUL /*<< FPU_MVFR1_FtZ_mode_Pos*/) /*!< MVFR1: FtZ mode bits Mask */ - -/*@} end of group CMSIS_FPU */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) - \brief Type definitions for the Core Debug Registers - @{ - */ - -/** - \brief Structure type to access the Core Debug Register (CoreDebug). - */ -typedef struct -{ - __IOM uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ - __OM uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ - __IOM uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ - __IOM uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ - uint32_t RESERVED4[1U]; - __IOM uint32_t DAUTHCTRL; /*!< Offset: 0x014 (R/W) Debug Authentication Control Register */ - __IOM uint32_t DSCSR; /*!< Offset: 0x018 (R/W) Debug Security Control and Status Register */ -} CoreDebug_Type; - -/* Debug Halting Control and Status Register Definitions */ -#define CoreDebug_DHCSR_DBGKEY_Pos 16U /*!< CoreDebug DHCSR: DBGKEY Position */ -#define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ - -#define CoreDebug_DHCSR_S_RESTART_ST_Pos 26U /*!< CoreDebug DHCSR: S_RESTART_ST Position */ -#define CoreDebug_DHCSR_S_RESTART_ST_Msk (1UL << CoreDebug_DHCSR_S_RESTART_ST_Pos) /*!< CoreDebug DHCSR: S_RESTART_ST Mask */ - -#define CoreDebug_DHCSR_S_RESET_ST_Pos 25U /*!< CoreDebug DHCSR: S_RESET_ST Position */ -#define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ - -#define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24U /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ -#define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ - -#define CoreDebug_DHCSR_S_LOCKUP_Pos 19U /*!< CoreDebug DHCSR: S_LOCKUP Position */ -#define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ - -#define CoreDebug_DHCSR_S_SLEEP_Pos 18U /*!< CoreDebug DHCSR: S_SLEEP Position */ -#define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ - -#define CoreDebug_DHCSR_S_HALT_Pos 17U /*!< CoreDebug DHCSR: S_HALT Position */ -#define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ - -#define CoreDebug_DHCSR_S_REGRDY_Pos 16U /*!< CoreDebug DHCSR: S_REGRDY Position */ -#define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ - -#define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5U /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ -#define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ - -#define CoreDebug_DHCSR_C_MASKINTS_Pos 3U /*!< CoreDebug DHCSR: C_MASKINTS Position */ -#define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ - -#define CoreDebug_DHCSR_C_STEP_Pos 2U /*!< CoreDebug DHCSR: C_STEP Position */ -#define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ - -#define CoreDebug_DHCSR_C_HALT_Pos 1U /*!< CoreDebug DHCSR: C_HALT Position */ -#define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ - -#define CoreDebug_DHCSR_C_DEBUGEN_Pos 0U /*!< CoreDebug DHCSR: C_DEBUGEN Position */ -#define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL /*<< CoreDebug_DHCSR_C_DEBUGEN_Pos*/) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ - -/* Debug Core Register Selector Register Definitions */ -#define CoreDebug_DCRSR_REGWnR_Pos 16U /*!< CoreDebug DCRSR: REGWnR Position */ -#define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ - -#define CoreDebug_DCRSR_REGSEL_Pos 0U /*!< CoreDebug DCRSR: REGSEL Position */ -#define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL /*<< CoreDebug_DCRSR_REGSEL_Pos*/) /*!< CoreDebug DCRSR: REGSEL Mask */ - -/* Debug Exception and Monitor Control Register Definitions */ -#define CoreDebug_DEMCR_TRCENA_Pos 24U /*!< CoreDebug DEMCR: TRCENA Position */ -#define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ - -#define CoreDebug_DEMCR_MON_REQ_Pos 19U /*!< CoreDebug DEMCR: MON_REQ Position */ -#define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ - -#define CoreDebug_DEMCR_MON_STEP_Pos 18U /*!< CoreDebug DEMCR: MON_STEP Position */ -#define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ - -#define CoreDebug_DEMCR_MON_PEND_Pos 17U /*!< CoreDebug DEMCR: MON_PEND Position */ -#define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ - -#define CoreDebug_DEMCR_MON_EN_Pos 16U /*!< CoreDebug DEMCR: MON_EN Position */ -#define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ - -#define CoreDebug_DEMCR_VC_HARDERR_Pos 10U /*!< CoreDebug DEMCR: VC_HARDERR Position */ -#define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ - -#define CoreDebug_DEMCR_VC_INTERR_Pos 9U /*!< CoreDebug DEMCR: VC_INTERR Position */ -#define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ - -#define CoreDebug_DEMCR_VC_BUSERR_Pos 8U /*!< CoreDebug DEMCR: VC_BUSERR Position */ -#define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ - -#define CoreDebug_DEMCR_VC_STATERR_Pos 7U /*!< CoreDebug DEMCR: VC_STATERR Position */ -#define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ - -#define CoreDebug_DEMCR_VC_CHKERR_Pos 6U /*!< CoreDebug DEMCR: VC_CHKERR Position */ -#define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ - -#define CoreDebug_DEMCR_VC_NOCPERR_Pos 5U /*!< CoreDebug DEMCR: VC_NOCPERR Position */ -#define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ - -#define CoreDebug_DEMCR_VC_MMERR_Pos 4U /*!< CoreDebug DEMCR: VC_MMERR Position */ -#define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ - -#define CoreDebug_DEMCR_VC_CORERESET_Pos 0U /*!< CoreDebug DEMCR: VC_CORERESET Position */ -#define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL /*<< CoreDebug_DEMCR_VC_CORERESET_Pos*/) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ - -/* Debug Authentication Control Register Definitions */ -#define CoreDebug_DAUTHCTRL_INTSPNIDEN_Pos 3U /*!< CoreDebug DAUTHCTRL: INTSPNIDEN, Position */ -#define CoreDebug_DAUTHCTRL_INTSPNIDEN_Msk (1UL << CoreDebug_DAUTHCTRL_INTSPNIDEN_Pos) /*!< CoreDebug DAUTHCTRL: INTSPNIDEN, Mask */ - -#define CoreDebug_DAUTHCTRL_SPNIDENSEL_Pos 2U /*!< CoreDebug DAUTHCTRL: SPNIDENSEL Position */ -#define CoreDebug_DAUTHCTRL_SPNIDENSEL_Msk (1UL << CoreDebug_DAUTHCTRL_SPNIDENSEL_Pos) /*!< CoreDebug DAUTHCTRL: SPNIDENSEL Mask */ - -#define CoreDebug_DAUTHCTRL_INTSPIDEN_Pos 1U /*!< CoreDebug DAUTHCTRL: INTSPIDEN Position */ -#define CoreDebug_DAUTHCTRL_INTSPIDEN_Msk (1UL << CoreDebug_DAUTHCTRL_INTSPIDEN_Pos) /*!< CoreDebug DAUTHCTRL: INTSPIDEN Mask */ - -#define CoreDebug_DAUTHCTRL_SPIDENSEL_Pos 0U /*!< CoreDebug DAUTHCTRL: SPIDENSEL Position */ -#define CoreDebug_DAUTHCTRL_SPIDENSEL_Msk (1UL /*<< CoreDebug_DAUTHCTRL_SPIDENSEL_Pos*/) /*!< CoreDebug DAUTHCTRL: SPIDENSEL Mask */ - -/* Debug Security Control and Status Register Definitions */ -#define CoreDebug_DSCSR_CDS_Pos 16U /*!< CoreDebug DSCSR: CDS Position */ -#define CoreDebug_DSCSR_CDS_Msk (1UL << CoreDebug_DSCSR_CDS_Pos) /*!< CoreDebug DSCSR: CDS Mask */ - -#define CoreDebug_DSCSR_SBRSEL_Pos 1U /*!< CoreDebug DSCSR: SBRSEL Position */ -#define CoreDebug_DSCSR_SBRSEL_Msk (1UL << CoreDebug_DSCSR_SBRSEL_Pos) /*!< CoreDebug DSCSR: SBRSEL Mask */ - -#define CoreDebug_DSCSR_SBRSELEN_Pos 0U /*!< CoreDebug DSCSR: SBRSELEN Position */ -#define CoreDebug_DSCSR_SBRSELEN_Msk (1UL /*<< CoreDebug_DSCSR_SBRSELEN_Pos*/) /*!< CoreDebug DSCSR: SBRSELEN Mask */ - -/*@} end of group CMSIS_CoreDebug */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_core_bitfield Core register bit field macros - \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). - @{ - */ - -/** - \brief Mask and shift a bit field value for use in a register bit range. - \param[in] field Name of the register bit field. - \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. - \return Masked and shifted value. -*/ -#define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) - -/** - \brief Mask and shift a register value to extract a bit filed value. - \param[in] field Name of the register bit field. - \param[in] value Value of register. This parameter is interpreted as an uint32_t type. - \return Masked and shifted bit field value. -*/ -#define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) - -/*@} end of group CMSIS_core_bitfield */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_core_base Core Definitions - \brief Definitions for base addresses, unions, and structures. - @{ - */ - -/* Memory mapping of Core Hardware */ - #define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ - #define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ - #define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ - #define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ - #define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ - #define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ - #define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ - #define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ - - #define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ - #define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ - #define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ - #define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ - #define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ - #define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ - #define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ - #define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE ) /*!< Core Debug configuration struct */ - - #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) - #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ - #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ - #endif - - #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) - #define SAU_BASE (SCS_BASE + 0x0DD0UL) /*!< Security Attribution Unit */ - #define SAU ((SAU_Type *) SAU_BASE ) /*!< Security Attribution Unit */ - #endif - - #define FPU_BASE (SCS_BASE + 0x0F30UL) /*!< Floating Point Unit */ - #define FPU ((FPU_Type *) FPU_BASE ) /*!< Floating Point Unit */ - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) - #define SCS_BASE_NS (0xE002E000UL) /*!< System Control Space Base Address (non-secure address space) */ - #define CoreDebug_BASE_NS (0xE002EDF0UL) /*!< Core Debug Base Address (non-secure address space) */ - #define SysTick_BASE_NS (SCS_BASE_NS + 0x0010UL) /*!< SysTick Base Address (non-secure address space) */ - #define NVIC_BASE_NS (SCS_BASE_NS + 0x0100UL) /*!< NVIC Base Address (non-secure address space) */ - #define SCB_BASE_NS (SCS_BASE_NS + 0x0D00UL) /*!< System Control Block Base Address (non-secure address space) */ - - #define SCnSCB_NS ((SCnSCB_Type *) SCS_BASE_NS ) /*!< System control Register not in SCB(non-secure address space) */ - #define SCB_NS ((SCB_Type *) SCB_BASE_NS ) /*!< SCB configuration struct (non-secure address space) */ - #define SysTick_NS ((SysTick_Type *) SysTick_BASE_NS ) /*!< SysTick configuration struct (non-secure address space) */ - #define NVIC_NS ((NVIC_Type *) NVIC_BASE_NS ) /*!< NVIC configuration struct (non-secure address space) */ - #define CoreDebug_NS ((CoreDebug_Type *) CoreDebug_BASE_NS) /*!< Core Debug configuration struct (non-secure address space) */ - - #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) - #define MPU_BASE_NS (SCS_BASE_NS + 0x0D90UL) /*!< Memory Protection Unit (non-secure address space) */ - #define MPU_NS ((MPU_Type *) MPU_BASE_NS ) /*!< Memory Protection Unit (non-secure address space) */ - #endif - - #define FPU_BASE_NS (SCS_BASE_NS + 0x0F30UL) /*!< Floating Point Unit (non-secure address space) */ - #define FPU_NS ((FPU_Type *) FPU_BASE_NS ) /*!< Floating Point Unit (non-secure address space) */ - -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ -/*@} */ - - - -/******************************************************************************* - * Hardware Abstraction Layer - Core Function Interface contains: - - Core NVIC Functions - - Core SysTick Functions - - Core Debug Functions - - Core Register Access Functions - ******************************************************************************/ -/** - \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference -*/ - - - -/* ########################## NVIC functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_NVICFunctions NVIC Functions - \brief Functions that manage interrupts and exceptions via the NVIC. - @{ - */ - -#ifdef CMSIS_NVIC_VIRTUAL - #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE - #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" - #endif - #include CMSIS_NVIC_VIRTUAL_HEADER_FILE -#else - #define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping - #define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping - #define NVIC_EnableIRQ __NVIC_EnableIRQ - #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ - #define NVIC_DisableIRQ __NVIC_DisableIRQ - #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ - #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ - #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ - #define NVIC_GetActive __NVIC_GetActive - #define NVIC_SetPriority __NVIC_SetPriority - #define NVIC_GetPriority __NVIC_GetPriority - #define NVIC_SystemReset __NVIC_SystemReset -#endif /* CMSIS_NVIC_VIRTUAL */ - -#ifdef CMSIS_VECTAB_VIRTUAL - #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE - #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" - #endif - #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE -#else - #define NVIC_SetVector __NVIC_SetVector - #define NVIC_GetVector __NVIC_GetVector -#endif /* (CMSIS_VECTAB_VIRTUAL) */ - -#define NVIC_USER_IRQ_OFFSET 16 - - - -/** - \brief Set Priority Grouping - \details Sets the priority grouping field using the required unlock sequence. - The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. - Only values from 0..7 are used. - 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) -{ - uint32_t reg_value; - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - - reg_value = SCB->AIRCR; /* read old register configuration */ - reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ - reg_value = (reg_value | - ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - (PriorityGroupTmp << 8U) ); /* Insert write key and priorty group */ - SCB->AIRCR = reg_value; -} - - -/** - \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) -{ - return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); -} - - -/** - \brief Enable Interrupt - \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) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Interrupt Enable status - \details Returns a device specific interrupt enable status from the NVIC interrupt controller. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt is not enabled. - \return 1 Interrupt is enabled. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Disable Interrupt - \details Disables 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_DisableIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - __DSB(); - __ISB(); - } -} - - -/** - \brief Get Pending Interrupt - \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not pending. - \return 1 Interrupt status is pending. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Pending Interrupt - \details Sets the pending bit of a device specific interrupt in the NVIC pending register. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Clear Pending Interrupt - \details Clears the pending bit of a device specific interrupt in the NVIC pending register. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Active Interrupt - \details Reads the active register in the NVIC and returns the active bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not active. - \return 1 Interrupt status is active. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetActive(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) -/** - \brief Get Interrupt Target State - \details Reads the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 if interrupt is assigned to Secure - \return 1 if interrupt is assigned to Non Secure - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t NVIC_GetTargetState(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Interrupt Target State - \details Sets the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 if interrupt is assigned to Secure - 1 if interrupt is assigned to Non Secure - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t NVIC_SetTargetState(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] |= ((uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL))); - return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Clear Interrupt Target State - \details Clears the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 if interrupt is assigned to Secure - 1 if interrupt is assigned to Non Secure - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t NVIC_ClearTargetState(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] &= ~((uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL))); - return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ - - -/** - \brief Set Interrupt Priority - \details Sets the priority of a device specific interrupt or a processor exception. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \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) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->IPR[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - } - else - { - SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - } -} - - -/** - \brief Get Interrupt Priority - \details Reads the priority of a device specific interrupt or a processor exception. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Interrupt Priority. - Value is aligned automatically to the implemented priority bits of the microcontroller. - */ -__STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) -{ - - if ((int32_t)(IRQn) >= 0) - { - return(((uint32_t)NVIC->IPR[((uint32_t)IRQn)] >> (8U - __NVIC_PRIO_BITS))); - } - else - { - return(((uint32_t)SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] >> (8U - __NVIC_PRIO_BITS))); - } -} - - -/** - \brief Encode Priority - \details Encodes the priority for an interrupt with the given priority group, - preemptive priority value, and subpriority value. - 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 Used priority group. - \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) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - - return ( - ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) - ); -} - - -/** - \brief Decode Priority - \details Decodes an interrupt priority value with a given priority group to - preemptive priority value and subpriority value. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. - \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). - \param [in] PriorityGroup Used priority group. - \param [out] pPreemptPriority Preemptive priority value (starting from 0). - \param [out] pSubPriority Subpriority value (starting from 0). - */ -__STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - - *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); - *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); -} - - -/** - \brief Set Interrupt Vector - \details Sets an interrupt vector in SRAM based interrupt vector table. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - VTOR must been relocated to SRAM before. - \param [in] IRQn Interrupt number - \param [in] vector Address of interrupt handler function - */ -__STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) -{ - uint32_t *vectors = (uint32_t *)SCB->VTOR; - vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET] = vector; - __DSB(); -} - - -/** - \brief Get Interrupt Vector - \details Reads an interrupt vector from interrupt vector table. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Address of interrupt handler function - */ -__STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) -{ - uint32_t *vectors = (uint32_t *)SCB->VTOR; - return vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET]; -} - - -/** - \brief System Reset - \details Initiates a system reset request to reset the MCU. - */ -__NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) -{ - __DSB(); /* Ensure all outstanding memory accesses included - buffered write are completed before reset */ - SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | - SCB_AIRCR_SYSRESETREQ_Msk ); /* Keep priority group unchanged */ - __DSB(); /* Ensure completion of memory access */ - - for(;;) /* wait until reset */ - { - __NOP(); - } -} - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) -/** - \brief Set Priority Grouping (non-secure) - \details Sets the non-secure priority grouping field when in secure state using the required unlock sequence. - The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. - Only values from 0..7 are used. - 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 TZ_NVIC_SetPriorityGrouping_NS(uint32_t PriorityGroup) -{ - uint32_t reg_value; - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - - reg_value = SCB_NS->AIRCR; /* read old register configuration */ - reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ - reg_value = (reg_value | - ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - (PriorityGroupTmp << 8U) ); /* Insert write key and priorty group */ - SCB_NS->AIRCR = reg_value; -} - - -/** - \brief Get Priority Grouping (non-secure) - \details Reads the priority grouping field from the non-secure NVIC when in secure state. - \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). - */ -__STATIC_INLINE uint32_t TZ_NVIC_GetPriorityGrouping_NS(void) -{ - return ((uint32_t)((SCB_NS->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); -} - - -/** - \brief Enable Interrupt (non-secure) - \details Enables a device specific interrupt in the non-secure NVIC interrupt controller when in secure state. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void TZ_NVIC_EnableIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Interrupt Enable status (non-secure) - \details Returns a device specific interrupt enable status from the non-secure NVIC interrupt controller when in secure state. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt is not enabled. - \return 1 Interrupt is enabled. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t TZ_NVIC_GetEnableIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC_NS->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Disable Interrupt (non-secure) - \details Disables a device specific interrupt in the non-secure NVIC interrupt controller when in secure state. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void TZ_NVIC_DisableIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Pending Interrupt (non-secure) - \details Reads the NVIC pending register in the non-secure NVIC when in secure state and returns the pending bit for the specified device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not pending. - \return 1 Interrupt status is pending. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t TZ_NVIC_GetPendingIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC_NS->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Pending Interrupt (non-secure) - \details Sets the pending bit of a device specific interrupt in the non-secure NVIC pending register when in secure state. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void TZ_NVIC_SetPendingIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Clear Pending Interrupt (non-secure) - \details Clears the pending bit of a device specific interrupt in the non-secure NVIC pending register when in secure state. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void TZ_NVIC_ClearPendingIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Active Interrupt (non-secure) - \details Reads the active register in non-secure NVIC when in secure state and returns the active bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not active. - \return 1 Interrupt status is active. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t TZ_NVIC_GetActive_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC_NS->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Interrupt Priority (non-secure) - \details Sets the priority of a non-secure device specific interrupt or a non-secure processor exception when in secure state. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \param [in] priority Priority to set. - \note The priority cannot be set for every non-secure processor exception. - */ -__STATIC_INLINE void TZ_NVIC_SetPriority_NS(IRQn_Type IRQn, uint32_t priority) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->IPR[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - } - else - { - SCB_NS->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - } -} - - -/** - \brief Get Interrupt Priority (non-secure) - \details Reads the priority of a non-secure device specific interrupt or a non-secure processor exception when in secure state. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. - */ -__STATIC_INLINE uint32_t TZ_NVIC_GetPriority_NS(IRQn_Type IRQn) -{ - - if ((int32_t)(IRQn) >= 0) - { - return(((uint32_t)NVIC_NS->IPR[((uint32_t)IRQn)] >> (8U - __NVIC_PRIO_BITS))); - } - else - { - return(((uint32_t)SCB_NS->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] >> (8U - __NVIC_PRIO_BITS))); - } -} -#endif /* defined (__ARM_FEATURE_CMSE) &&(__ARM_FEATURE_CMSE == 3U) */ - -/*@} end of CMSIS_Core_NVICFunctions */ - -/* ########################## MPU functions #################################### */ - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) - -#include "mpu_armv8.h" - -#endif - -/* ########################## FPU functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_FpuFunctions FPU Functions - \brief Function that provides FPU type. - @{ - */ - -/** - \brief get FPU type - \details returns the FPU type - \returns - - \b 0: No FPU - - \b 1: Single precision FPU - - \b 2: Double + Single precision FPU - */ -__STATIC_INLINE uint32_t SCB_GetFPUType(void) -{ - uint32_t mvfr0; - - mvfr0 = FPU->MVFR0; - if ((mvfr0 & (FPU_MVFR0_Single_precision_Msk | FPU_MVFR0_Double_precision_Msk)) == 0x220U) - { - return 2U; /* Double + Single precision FPU */ - } - else if ((mvfr0 & (FPU_MVFR0_Single_precision_Msk | FPU_MVFR0_Double_precision_Msk)) == 0x020U) - { - return 1U; /* Single precision FPU */ - } - else - { - return 0U; /* No FPU */ - } -} - - -/*@} end of CMSIS_Core_FpuFunctions */ - - - -/* ########################## SAU functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SAUFunctions SAU Functions - \brief Functions that configure the SAU. - @{ - */ - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) - -/** - \brief Enable SAU - \details Enables the Security Attribution Unit (SAU). - */ -__STATIC_INLINE void TZ_SAU_Enable(void) -{ - SAU->CTRL |= (SAU_CTRL_ENABLE_Msk); -} - - - -/** - \brief Disable SAU - \details Disables the Security Attribution Unit (SAU). - */ -__STATIC_INLINE void TZ_SAU_Disable(void) -{ - SAU->CTRL &= ~(SAU_CTRL_ENABLE_Msk); -} - -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ - -/*@} end of CMSIS_Core_SAUFunctions */ - - - - -/* ################################## SysTick function ############################################ */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SysTickFunctions SysTick Functions - \brief Functions that configure the System. - @{ - */ - -#if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) - -/** - \brief System Tick Configuration - \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. - Counter is in free running mode to generate periodic interrupts. - \param [in] ticks Number of ticks between two interrupts. - \return 0 Function succeeded. - \return 1 Function failed. - \note When the variable __Vendor_SysTickConfig is set to 1, then the - function SysTick_Config is not included. In this case, the file device.h - must contain a vendor-specific implementation of this function. - */ -__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) -{ - if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - { - return (1UL); /* Reload value impossible */ - } - - SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ - SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0UL); /* Function successful */ -} - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) -/** - \brief System Tick Configuration (non-secure) - \details Initializes the non-secure System Timer and its interrupt when in secure state, and starts the System Tick Timer. - Counter is in free running mode to generate periodic interrupts. - \param [in] ticks Number of ticks between two interrupts. - \return 0 Function succeeded. - \return 1 Function failed. - \note When the variable __Vendor_SysTickConfig is set to 1, then the - function TZ_SysTick_Config_NS is not included. In this case, the file device.h - must contain a vendor-specific implementation of this function. - - */ -__STATIC_INLINE uint32_t TZ_SysTick_Config_NS(uint32_t ticks) -{ - if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - { - return (1UL); /* Reload value impossible */ - } - - SysTick_NS->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - TZ_NVIC_SetPriority_NS (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - SysTick_NS->VAL = 0UL; /* Load the SysTick Counter Value */ - SysTick_NS->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0UL); /* Function successful */ -} -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ - -#endif - -/*@} end of CMSIS_Core_SysTickFunctions */ - - - -/* ##################################### Debug In/Output function ########################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_core_DebugFunctions ITM Functions - \brief Functions that access the ITM debug interface. - @{ - */ - -extern volatile int32_t ITM_RxBuffer; /*!< External variable to receive characters. */ -#define ITM_RXBUFFER_EMPTY ((int32_t)0x5AA55AA5U) /*!< Value identifying \ref ITM_RxBuffer is ready for next character. */ - - -/** - \brief ITM Send Character - \details Transmits a character via the ITM channel 0, and - \li Just returns when no debugger is connected that has booked the output. - \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted. - \param [in] ch Character to transmit. - \returns Character to transmit. - */ -__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch) -{ - if (((ITM->TCR & ITM_TCR_ITMENA_Msk) != 0UL) && /* ITM enabled */ - ((ITM->TER & 1UL ) != 0UL) ) /* ITM Port #0 enabled */ - { - while (ITM->PORT[0U].u32 == 0UL) - { - __NOP(); - } - ITM->PORT[0U].u8 = (uint8_t)ch; - } - return (ch); -} - - -/** - \brief ITM Receive Character - \details Inputs a character via the external variable \ref ITM_RxBuffer. - \return Received character. - \return -1 No character pending. - */ -__STATIC_INLINE int32_t ITM_ReceiveChar (void) -{ - int32_t ch = -1; /* no character available */ - - if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) - { - ch = ITM_RxBuffer; - ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ - } - - return (ch); -} - - -/** - \brief ITM Check Character - \details Checks whether a character is pending for reading in the variable \ref ITM_RxBuffer. - \return 0 No character available. - \return 1 Character available. - */ -__STATIC_INLINE int32_t ITM_CheckChar (void) -{ - - if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) - { - return (0); /* no character available */ - } - else - { - return (1); /* character available */ - } -} - -/*@} end of CMSIS_core_DebugFunctions */ - - - - -#ifdef __cplusplus -} -#endif - -#endif /* __CORE_ARMV81MML_H_DEPENDANT */ - -#endif /* __CMSIS_GENERIC */ diff --git a/Drivers/CMSIS/Include/core_armv8mbl.h b/Drivers/CMSIS/Include/core_armv8mbl.h deleted file mode 100644 index 344dca5..0000000 --- a/Drivers/CMSIS/Include/core_armv8mbl.h +++ /dev/null @@ -1,1921 +0,0 @@ -/**************************************************************************//** - * @file core_armv8mbl.h - * @brief CMSIS Armv8-M Baseline Core Peripheral Access Layer Header File - * @version V5.0.8 - * @date 12. November 2018 - ******************************************************************************/ -/* - * Copyright (c) 2009-2018 Arm Limited. All rights reserved. - * - * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the License); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#if defined ( __ICCARM__ ) - #pragma system_include /* treat file as system include file for MISRA check */ -#elif defined (__clang__) - #pragma clang system_header /* treat file as system include file */ -#endif - -#ifndef __CORE_ARMV8MBL_H_GENERIC -#define __CORE_ARMV8MBL_H_GENERIC - -#include - -#ifdef __cplusplus - extern "C" { -#endif - -/** - \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions - CMSIS violates the following MISRA-C:2004 rules: - - \li Required Rule 8.5, object/function definition in header file.
- Function definitions in header files are used to allow 'inlining'. - - \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
- Unions are used for effective representation of core registers. - - \li Advisory Rule 19.7, Function-like macro defined.
- Function-like macros are used to allow more efficient code. - */ - - -/******************************************************************************* - * CMSIS definitions - ******************************************************************************/ -/** - \ingroup Cortex_ARMv8MBL - @{ - */ - -#include "cmsis_version.h" - -/* CMSIS definitions */ -#define __ARMv8MBL_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ -#define __ARMv8MBL_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ -#define __ARMv8MBL_CMSIS_VERSION ((__ARMv8MBL_CMSIS_VERSION_MAIN << 16U) | \ - __ARMv8MBL_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ - -#define __CORTEX_M ( 2U) /*!< Cortex-M Core */ - -/** __FPU_USED indicates whether an FPU is used or not. - This core does not support an FPU at all -*/ -#define __FPU_USED 0U - -#if defined ( __CC_ARM ) - #if defined __TARGET_FPU_VFP - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) - #if defined __ARM_FP - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __GNUC__ ) - #if defined (__VFP_FP__) && !defined(__SOFTFP__) - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __ICCARM__ ) - #if defined __ARMVFP__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __TI_ARM__ ) - #if defined __TI_VFP_SUPPORT__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __TASKING__ ) - #if defined __FPU_VFP__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __CSMC__ ) - #if ( __CSMC__ & 0x400U) - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#endif - -#include "cmsis_compiler.h" /* CMSIS compiler specific defines */ - - -#ifdef __cplusplus -} -#endif - -#endif /* __CORE_ARMV8MBL_H_GENERIC */ - -#ifndef __CMSIS_GENERIC - -#ifndef __CORE_ARMV8MBL_H_DEPENDANT -#define __CORE_ARMV8MBL_H_DEPENDANT - -#ifdef __cplusplus - extern "C" { -#endif - -/* check device defines and use defaults */ -#if defined __CHECK_DEVICE_DEFINES - #ifndef __ARMv8MBL_REV - #define __ARMv8MBL_REV 0x0000U - #warning "__ARMv8MBL_REV not defined in device header file; using default!" - #endif - - #ifndef __FPU_PRESENT - #define __FPU_PRESENT 0U - #warning "__FPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __MPU_PRESENT - #define __MPU_PRESENT 0U - #warning "__MPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __SAUREGION_PRESENT - #define __SAUREGION_PRESENT 0U - #warning "__SAUREGION_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __VTOR_PRESENT - #define __VTOR_PRESENT 0U - #warning "__VTOR_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __NVIC_PRIO_BITS - #define __NVIC_PRIO_BITS 2U - #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" - #endif - - #ifndef __Vendor_SysTickConfig - #define __Vendor_SysTickConfig 0U - #warning "__Vendor_SysTickConfig not defined in device header file; using default!" - #endif - - #ifndef __ETM_PRESENT - #define __ETM_PRESENT 0U - #warning "__ETM_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __MTB_PRESENT - #define __MTB_PRESENT 0U - #warning "__MTB_PRESENT not defined in device header file; using default!" - #endif - -#endif - -/* IO definitions (access restrictions to peripheral registers) */ -/** - \defgroup CMSIS_glob_defs CMSIS Global Defines - - IO Type Qualifiers are used - \li to specify the access to peripheral variables. - \li for automatic generation of peripheral register debug information. -*/ -#ifdef __cplusplus - #define __I volatile /*!< Defines 'read only' permissions */ -#else - #define __I volatile const /*!< Defines 'read only' permissions */ -#endif -#define __O volatile /*!< Defines 'write only' permissions */ -#define __IO volatile /*!< Defines 'read / write' permissions */ - -/* following defines should be used for structure members */ -#define __IM volatile const /*! Defines 'read only' structure member permissions */ -#define __OM volatile /*! Defines 'write only' structure member permissions */ -#define __IOM volatile /*! Defines 'read / write' structure member permissions */ - -/*@} end of group ARMv8MBL */ - - - -/******************************************************************************* - * Register Abstraction - Core Register contain: - - Core Register - - Core NVIC Register - - Core SCB Register - - Core SysTick Register - - Core Debug Register - - Core MPU Register - - Core SAU Register - ******************************************************************************/ -/** - \defgroup CMSIS_core_register Defines and Type Definitions - \brief Type definitions and defines for Cortex-M processor based devices. -*/ - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_CORE Status and Control Registers - \brief Core Register type definitions. - @{ - */ - -/** - \brief Union type to access the Application Program Status Register (APSR). - */ -typedef union -{ - struct - { - uint32_t _reserved0:28; /*!< bit: 0..27 Reserved */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} APSR_Type; - -/* APSR Register Definitions */ -#define APSR_N_Pos 31U /*!< APSR: N Position */ -#define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ - -#define APSR_Z_Pos 30U /*!< APSR: Z Position */ -#define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ - -#define APSR_C_Pos 29U /*!< APSR: C Position */ -#define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ - -#define APSR_V_Pos 28U /*!< APSR: V Position */ -#define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ - - -/** - \brief Union type to access the Interrupt Program Status Register (IPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} IPSR_Type; - -/* IPSR Register Definitions */ -#define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ -#define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ - - -/** - \brief Union type to access the Special-Purpose Program Status Registers (xPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ - uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ - uint32_t _reserved1:3; /*!< bit: 25..27 Reserved */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} xPSR_Type; - -/* xPSR Register Definitions */ -#define xPSR_N_Pos 31U /*!< xPSR: N Position */ -#define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ - -#define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ -#define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ - -#define xPSR_C_Pos 29U /*!< xPSR: C Position */ -#define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ - -#define xPSR_V_Pos 28U /*!< xPSR: V Position */ -#define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ - -#define xPSR_T_Pos 24U /*!< xPSR: T Position */ -#define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ - -#define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ -#define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ - - -/** - \brief Union type to access the Control Registers (CONTROL). - */ -typedef union -{ - struct - { - uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ - uint32_t SPSEL:1; /*!< bit: 1 Stack-pointer select */ - uint32_t _reserved1:30; /*!< bit: 2..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} CONTROL_Type; - -/* CONTROL Register Definitions */ -#define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ -#define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ - -#define CONTROL_nPRIV_Pos 0U /*!< CONTROL: nPRIV Position */ -#define CONTROL_nPRIV_Msk (1UL /*<< CONTROL_nPRIV_Pos*/) /*!< CONTROL: nPRIV Mask */ - -/*@} end of group CMSIS_CORE */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) - \brief Type definitions for the NVIC Registers - @{ - */ - -/** - \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). - */ -typedef struct -{ - __IOM uint32_t ISER[16U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ - uint32_t RESERVED0[16U]; - __IOM uint32_t ICER[16U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ - uint32_t RSERVED1[16U]; - __IOM uint32_t ISPR[16U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ - uint32_t RESERVED2[16U]; - __IOM uint32_t ICPR[16U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ - uint32_t RESERVED3[16U]; - __IOM uint32_t IABR[16U]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ - uint32_t RESERVED4[16U]; - __IOM uint32_t ITNS[16U]; /*!< Offset: 0x280 (R/W) Interrupt Non-Secure State Register */ - uint32_t RESERVED5[16U]; - __IOM uint32_t IPR[124U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register */ -} NVIC_Type; - -/*@} end of group CMSIS_NVIC */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SCB System Control Block (SCB) - \brief Type definitions for the System Control Block Registers - @{ - */ - -/** - \brief Structure type to access the System Control Block (SCB). - */ -typedef struct -{ - __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ - __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ -#if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) - __IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ -#else - uint32_t RESERVED0; -#endif - __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ - __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ - __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ - uint32_t RESERVED1; - __IOM uint32_t SHPR[2U]; /*!< Offset: 0x01C (R/W) System Handlers Priority Registers. [0] is RESERVED */ - __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ -} SCB_Type; - -/* SCB CPUID Register Definitions */ -#define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ -#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ - -#define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ -#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ - -#define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ -#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ - -#define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ -#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ - -#define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ -#define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ - -/* SCB Interrupt Control State Register Definitions */ -#define SCB_ICSR_PENDNMISET_Pos 31U /*!< SCB ICSR: PENDNMISET Position */ -#define SCB_ICSR_PENDNMISET_Msk (1UL << SCB_ICSR_PENDNMISET_Pos) /*!< SCB ICSR: PENDNMISET Mask */ - -#define SCB_ICSR_NMIPENDSET_Pos SCB_ICSR_PENDNMISET_Pos /*!< SCB ICSR: NMIPENDSET Position, backward compatibility */ -#define SCB_ICSR_NMIPENDSET_Msk SCB_ICSR_PENDNMISET_Msk /*!< SCB ICSR: NMIPENDSET Mask, backward compatibility */ - -#define SCB_ICSR_PENDNMICLR_Pos 30U /*!< SCB ICSR: PENDNMICLR Position */ -#define SCB_ICSR_PENDNMICLR_Msk (1UL << SCB_ICSR_PENDNMICLR_Pos) /*!< SCB ICSR: PENDNMICLR Mask */ - -#define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ -#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ - -#define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ -#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ - -#define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ -#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ - -#define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ -#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ - -#define SCB_ICSR_STTNS_Pos 24U /*!< SCB ICSR: STTNS Position (Security Extension) */ -#define SCB_ICSR_STTNS_Msk (1UL << SCB_ICSR_STTNS_Pos) /*!< SCB ICSR: STTNS Mask (Security Extension) */ - -#define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ -#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ - -#define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ -#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ - -#define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ -#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ - -#define SCB_ICSR_RETTOBASE_Pos 11U /*!< SCB ICSR: RETTOBASE Position */ -#define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ - -#define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ -#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ - -#if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) -/* SCB Vector Table Offset Register Definitions */ -#define SCB_VTOR_TBLOFF_Pos 7U /*!< SCB VTOR: TBLOFF Position */ -#define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ -#endif - -/* SCB Application Interrupt and Reset Control Register Definitions */ -#define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ -#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ - -#define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ -#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ - -#define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ -#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ - -#define SCB_AIRCR_PRIS_Pos 14U /*!< SCB AIRCR: PRIS Position */ -#define SCB_AIRCR_PRIS_Msk (1UL << SCB_AIRCR_PRIS_Pos) /*!< SCB AIRCR: PRIS Mask */ - -#define SCB_AIRCR_BFHFNMINS_Pos 13U /*!< SCB AIRCR: BFHFNMINS Position */ -#define SCB_AIRCR_BFHFNMINS_Msk (1UL << SCB_AIRCR_BFHFNMINS_Pos) /*!< SCB AIRCR: BFHFNMINS Mask */ - -#define SCB_AIRCR_SYSRESETREQS_Pos 3U /*!< SCB AIRCR: SYSRESETREQS Position */ -#define SCB_AIRCR_SYSRESETREQS_Msk (1UL << SCB_AIRCR_SYSRESETREQS_Pos) /*!< SCB AIRCR: SYSRESETREQS Mask */ - -#define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ -#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ - -#define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ -#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ - -/* SCB System Control Register Definitions */ -#define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ -#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ - -#define SCB_SCR_SLEEPDEEPS_Pos 3U /*!< SCB SCR: SLEEPDEEPS Position */ -#define SCB_SCR_SLEEPDEEPS_Msk (1UL << SCB_SCR_SLEEPDEEPS_Pos) /*!< SCB SCR: SLEEPDEEPS Mask */ - -#define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ -#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ - -#define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ -#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ - -/* SCB Configuration Control Register Definitions */ -#define SCB_CCR_BP_Pos 18U /*!< SCB CCR: BP Position */ -#define SCB_CCR_BP_Msk (1UL << SCB_CCR_BP_Pos) /*!< SCB CCR: BP Mask */ - -#define SCB_CCR_IC_Pos 17U /*!< SCB CCR: IC Position */ -#define SCB_CCR_IC_Msk (1UL << SCB_CCR_IC_Pos) /*!< SCB CCR: IC Mask */ - -#define SCB_CCR_DC_Pos 16U /*!< SCB CCR: DC Position */ -#define SCB_CCR_DC_Msk (1UL << SCB_CCR_DC_Pos) /*!< SCB CCR: DC Mask */ - -#define SCB_CCR_STKOFHFNMIGN_Pos 10U /*!< SCB CCR: STKOFHFNMIGN Position */ -#define SCB_CCR_STKOFHFNMIGN_Msk (1UL << SCB_CCR_STKOFHFNMIGN_Pos) /*!< SCB CCR: STKOFHFNMIGN Mask */ - -#define SCB_CCR_BFHFNMIGN_Pos 8U /*!< SCB CCR: BFHFNMIGN Position */ -#define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ - -#define SCB_CCR_DIV_0_TRP_Pos 4U /*!< SCB CCR: DIV_0_TRP Position */ -#define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ - -#define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ -#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ - -#define SCB_CCR_USERSETMPEND_Pos 1U /*!< SCB CCR: USERSETMPEND Position */ -#define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ - -/* SCB System Handler Control and State Register Definitions */ -#define SCB_SHCSR_HARDFAULTPENDED_Pos 21U /*!< SCB SHCSR: HARDFAULTPENDED Position */ -#define SCB_SHCSR_HARDFAULTPENDED_Msk (1UL << SCB_SHCSR_HARDFAULTPENDED_Pos) /*!< SCB SHCSR: HARDFAULTPENDED Mask */ - -#define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ -#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ - -#define SCB_SHCSR_SYSTICKACT_Pos 11U /*!< SCB SHCSR: SYSTICKACT Position */ -#define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ - -#define SCB_SHCSR_PENDSVACT_Pos 10U /*!< SCB SHCSR: PENDSVACT Position */ -#define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ - -#define SCB_SHCSR_SVCALLACT_Pos 7U /*!< SCB SHCSR: SVCALLACT Position */ -#define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ - -#define SCB_SHCSR_NMIACT_Pos 5U /*!< SCB SHCSR: NMIACT Position */ -#define SCB_SHCSR_NMIACT_Msk (1UL << SCB_SHCSR_NMIACT_Pos) /*!< SCB SHCSR: NMIACT Mask */ - -#define SCB_SHCSR_HARDFAULTACT_Pos 2U /*!< SCB SHCSR: HARDFAULTACT Position */ -#define SCB_SHCSR_HARDFAULTACT_Msk (1UL << SCB_SHCSR_HARDFAULTACT_Pos) /*!< SCB SHCSR: HARDFAULTACT Mask */ - -/*@} end of group CMSIS_SCB */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SysTick System Tick Timer (SysTick) - \brief Type definitions for the System Timer Registers. - @{ - */ - -/** - \brief Structure type to access the System Timer (SysTick). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ - __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ - __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ - __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ -} SysTick_Type; - -/* SysTick Control / Status Register Definitions */ -#define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ -#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ - -#define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ -#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ - -#define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ -#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ - -#define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ -#define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ - -/* SysTick Reload Register Definitions */ -#define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ -#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ - -/* SysTick Current Register Definitions */ -#define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ -#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ - -/* SysTick Calibration Register Definitions */ -#define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ -#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ - -#define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ -#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ - -#define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ -#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ - -/*@} end of group CMSIS_SysTick */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) - \brief Type definitions for the Data Watchpoint and Trace (DWT) - @{ - */ - -/** - \brief Structure type to access the Data Watchpoint and Trace Register (DWT). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ - uint32_t RESERVED0[6U]; - __IM uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ - __IOM uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ - uint32_t RESERVED1[1U]; - __IOM uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ - uint32_t RESERVED2[1U]; - __IOM uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ - uint32_t RESERVED3[1U]; - __IOM uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ - uint32_t RESERVED4[1U]; - __IOM uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ - uint32_t RESERVED5[1U]; - __IOM uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ - uint32_t RESERVED6[1U]; - __IOM uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ - uint32_t RESERVED7[1U]; - __IOM uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ - uint32_t RESERVED8[1U]; - __IOM uint32_t COMP4; /*!< Offset: 0x060 (R/W) Comparator Register 4 */ - uint32_t RESERVED9[1U]; - __IOM uint32_t FUNCTION4; /*!< Offset: 0x068 (R/W) Function Register 4 */ - uint32_t RESERVED10[1U]; - __IOM uint32_t COMP5; /*!< Offset: 0x070 (R/W) Comparator Register 5 */ - uint32_t RESERVED11[1U]; - __IOM uint32_t FUNCTION5; /*!< Offset: 0x078 (R/W) Function Register 5 */ - uint32_t RESERVED12[1U]; - __IOM uint32_t COMP6; /*!< Offset: 0x080 (R/W) Comparator Register 6 */ - uint32_t RESERVED13[1U]; - __IOM uint32_t FUNCTION6; /*!< Offset: 0x088 (R/W) Function Register 6 */ - uint32_t RESERVED14[1U]; - __IOM uint32_t COMP7; /*!< Offset: 0x090 (R/W) Comparator Register 7 */ - uint32_t RESERVED15[1U]; - __IOM uint32_t FUNCTION7; /*!< Offset: 0x098 (R/W) Function Register 7 */ - uint32_t RESERVED16[1U]; - __IOM uint32_t COMP8; /*!< Offset: 0x0A0 (R/W) Comparator Register 8 */ - uint32_t RESERVED17[1U]; - __IOM uint32_t FUNCTION8; /*!< Offset: 0x0A8 (R/W) Function Register 8 */ - uint32_t RESERVED18[1U]; - __IOM uint32_t COMP9; /*!< Offset: 0x0B0 (R/W) Comparator Register 9 */ - uint32_t RESERVED19[1U]; - __IOM uint32_t FUNCTION9; /*!< Offset: 0x0B8 (R/W) Function Register 9 */ - uint32_t RESERVED20[1U]; - __IOM uint32_t COMP10; /*!< Offset: 0x0C0 (R/W) Comparator Register 10 */ - uint32_t RESERVED21[1U]; - __IOM uint32_t FUNCTION10; /*!< Offset: 0x0C8 (R/W) Function Register 10 */ - uint32_t RESERVED22[1U]; - __IOM uint32_t COMP11; /*!< Offset: 0x0D0 (R/W) Comparator Register 11 */ - uint32_t RESERVED23[1U]; - __IOM uint32_t FUNCTION11; /*!< Offset: 0x0D8 (R/W) Function Register 11 */ - uint32_t RESERVED24[1U]; - __IOM uint32_t COMP12; /*!< Offset: 0x0E0 (R/W) Comparator Register 12 */ - uint32_t RESERVED25[1U]; - __IOM uint32_t FUNCTION12; /*!< Offset: 0x0E8 (R/W) Function Register 12 */ - uint32_t RESERVED26[1U]; - __IOM uint32_t COMP13; /*!< Offset: 0x0F0 (R/W) Comparator Register 13 */ - uint32_t RESERVED27[1U]; - __IOM uint32_t FUNCTION13; /*!< Offset: 0x0F8 (R/W) Function Register 13 */ - uint32_t RESERVED28[1U]; - __IOM uint32_t COMP14; /*!< Offset: 0x100 (R/W) Comparator Register 14 */ - uint32_t RESERVED29[1U]; - __IOM uint32_t FUNCTION14; /*!< Offset: 0x108 (R/W) Function Register 14 */ - uint32_t RESERVED30[1U]; - __IOM uint32_t COMP15; /*!< Offset: 0x110 (R/W) Comparator Register 15 */ - uint32_t RESERVED31[1U]; - __IOM uint32_t FUNCTION15; /*!< Offset: 0x118 (R/W) Function Register 15 */ -} DWT_Type; - -/* DWT Control Register Definitions */ -#define DWT_CTRL_NUMCOMP_Pos 28U /*!< DWT CTRL: NUMCOMP Position */ -#define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ - -#define DWT_CTRL_NOTRCPKT_Pos 27U /*!< DWT CTRL: NOTRCPKT Position */ -#define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ - -#define DWT_CTRL_NOEXTTRIG_Pos 26U /*!< DWT CTRL: NOEXTTRIG Position */ -#define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ - -#define DWT_CTRL_NOCYCCNT_Pos 25U /*!< DWT CTRL: NOCYCCNT Position */ -#define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ - -#define DWT_CTRL_NOPRFCNT_Pos 24U /*!< DWT CTRL: NOPRFCNT Position */ -#define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ - -/* DWT Comparator Function Register Definitions */ -#define DWT_FUNCTION_ID_Pos 27U /*!< DWT FUNCTION: ID Position */ -#define DWT_FUNCTION_ID_Msk (0x1FUL << DWT_FUNCTION_ID_Pos) /*!< DWT FUNCTION: ID Mask */ - -#define DWT_FUNCTION_MATCHED_Pos 24U /*!< DWT FUNCTION: MATCHED Position */ -#define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ - -#define DWT_FUNCTION_DATAVSIZE_Pos 10U /*!< DWT FUNCTION: DATAVSIZE Position */ -#define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ - -#define DWT_FUNCTION_ACTION_Pos 4U /*!< DWT FUNCTION: ACTION Position */ -#define DWT_FUNCTION_ACTION_Msk (0x3UL << DWT_FUNCTION_ACTION_Pos) /*!< DWT FUNCTION: ACTION Mask */ - -#define DWT_FUNCTION_MATCH_Pos 0U /*!< DWT FUNCTION: MATCH Position */ -#define DWT_FUNCTION_MATCH_Msk (0xFUL /*<< DWT_FUNCTION_MATCH_Pos*/) /*!< DWT FUNCTION: MATCH Mask */ - -/*@}*/ /* end of group CMSIS_DWT */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_TPI Trace Port Interface (TPI) - \brief Type definitions for the Trace Port Interface (TPI) - @{ - */ - -/** - \brief Structure type to access the Trace Port Interface Register (TPI). - */ -typedef struct -{ - __IM uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Sizes Register */ - __IOM uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Sizes Register */ - uint32_t RESERVED0[2U]; - __IOM uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ - uint32_t RESERVED1[55U]; - __IOM uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ - uint32_t RESERVED2[131U]; - __IM uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ - __IOM uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ - __IOM uint32_t PSCR; /*!< Offset: 0x308 (R/W) Periodic Synchronization Control Register */ - uint32_t RESERVED3[809U]; - __OM uint32_t LAR; /*!< Offset: 0xFB0 ( /W) Software Lock Access Register */ - __IM uint32_t LSR; /*!< Offset: 0xFB4 (R/ ) Software Lock Status Register */ - uint32_t RESERVED4[4U]; - __IM uint32_t TYPE; /*!< Offset: 0xFC8 (R/ ) Device Identifier Register */ - __IM uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) Device Type Register */ -} TPI_Type; - -/* TPI Asynchronous Clock Prescaler Register Definitions */ -#define TPI_ACPR_SWOSCALER_Pos 0U /*!< TPI ACPR: SWOSCALER Position */ -#define TPI_ACPR_SWOSCALER_Msk (0xFFFFUL /*<< TPI_ACPR_SWOSCALER_Pos*/) /*!< TPI ACPR: SWOSCALER Mask */ - -/* TPI Selected Pin Protocol Register Definitions */ -#define TPI_SPPR_TXMODE_Pos 0U /*!< TPI SPPR: TXMODE Position */ -#define TPI_SPPR_TXMODE_Msk (0x3UL /*<< TPI_SPPR_TXMODE_Pos*/) /*!< TPI SPPR: TXMODE Mask */ - -/* TPI Formatter and Flush Status Register Definitions */ -#define TPI_FFSR_FtNonStop_Pos 3U /*!< TPI FFSR: FtNonStop Position */ -#define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ - -#define TPI_FFSR_TCPresent_Pos 2U /*!< TPI FFSR: TCPresent Position */ -#define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ - -#define TPI_FFSR_FtStopped_Pos 1U /*!< TPI FFSR: FtStopped Position */ -#define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ - -#define TPI_FFSR_FlInProg_Pos 0U /*!< TPI FFSR: FlInProg Position */ -#define TPI_FFSR_FlInProg_Msk (0x1UL /*<< TPI_FFSR_FlInProg_Pos*/) /*!< TPI FFSR: FlInProg Mask */ - -/* TPI Formatter and Flush Control Register Definitions */ -#define TPI_FFCR_TrigIn_Pos 8U /*!< TPI FFCR: TrigIn Position */ -#define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ - -#define TPI_FFCR_FOnMan_Pos 6U /*!< TPI FFCR: FOnMan Position */ -#define TPI_FFCR_FOnMan_Msk (0x1UL << TPI_FFCR_FOnMan_Pos) /*!< TPI FFCR: FOnMan Mask */ - -#define TPI_FFCR_EnFCont_Pos 1U /*!< TPI FFCR: EnFCont Position */ -#define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ - -/* TPI Periodic Synchronization Control Register Definitions */ -#define TPI_PSCR_PSCount_Pos 0U /*!< TPI PSCR: PSCount Position */ -#define TPI_PSCR_PSCount_Msk (0x1FUL /*<< TPI_PSCR_PSCount_Pos*/) /*!< TPI PSCR: TPSCount Mask */ - -/* TPI Software Lock Status Register Definitions */ -#define TPI_LSR_nTT_Pos 1U /*!< TPI LSR: Not thirty-two bit. Position */ -#define TPI_LSR_nTT_Msk (0x1UL << TPI_LSR_nTT_Pos) /*!< TPI LSR: Not thirty-two bit. Mask */ - -#define TPI_LSR_SLK_Pos 1U /*!< TPI LSR: Software Lock status Position */ -#define TPI_LSR_SLK_Msk (0x1UL << TPI_LSR_SLK_Pos) /*!< TPI LSR: Software Lock status Mask */ - -#define TPI_LSR_SLI_Pos 0U /*!< TPI LSR: Software Lock implemented Position */ -#define TPI_LSR_SLI_Msk (0x1UL /*<< TPI_LSR_SLI_Pos*/) /*!< TPI LSR: Software Lock implemented Mask */ - -/* TPI DEVID Register Definitions */ -#define TPI_DEVID_NRZVALID_Pos 11U /*!< TPI DEVID: NRZVALID Position */ -#define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ - -#define TPI_DEVID_MANCVALID_Pos 10U /*!< TPI DEVID: MANCVALID Position */ -#define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ - -#define TPI_DEVID_PTINVALID_Pos 9U /*!< TPI DEVID: PTINVALID Position */ -#define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ - -#define TPI_DEVID_FIFOSZ_Pos 6U /*!< TPI DEVID: FIFO depth Position */ -#define TPI_DEVID_FIFOSZ_Msk (0x7UL << TPI_DEVID_FIFOSZ_Pos) /*!< TPI DEVID: FIFO depth Mask */ - -/* TPI DEVTYPE Register Definitions */ -#define TPI_DEVTYPE_SubType_Pos 4U /*!< TPI DEVTYPE: SubType Position */ -#define TPI_DEVTYPE_SubType_Msk (0xFUL /*<< TPI_DEVTYPE_SubType_Pos*/) /*!< TPI DEVTYPE: SubType Mask */ - -#define TPI_DEVTYPE_MajorType_Pos 0U /*!< TPI DEVTYPE: MajorType Position */ -#define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ - -/*@}*/ /* end of group CMSIS_TPI */ - - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_MPU Memory Protection Unit (MPU) - \brief Type definitions for the Memory Protection Unit (MPU) - @{ - */ - -/** - \brief Structure type to access the Memory Protection Unit (MPU). - */ -typedef struct -{ - __IM uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ - __IOM uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ - __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region Number Register */ - __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ - __IOM uint32_t RLAR; /*!< Offset: 0x010 (R/W) MPU Region Limit Address Register */ - uint32_t RESERVED0[7U]; - union { - __IOM uint32_t MAIR[2]; - struct { - __IOM uint32_t MAIR0; /*!< Offset: 0x030 (R/W) MPU Memory Attribute Indirection Register 0 */ - __IOM uint32_t MAIR1; /*!< Offset: 0x034 (R/W) MPU Memory Attribute Indirection Register 1 */ - }; - }; -} MPU_Type; - -#define MPU_TYPE_RALIASES 1U - -/* MPU Type Register Definitions */ -#define MPU_TYPE_IREGION_Pos 16U /*!< MPU TYPE: IREGION Position */ -#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ - -#define MPU_TYPE_DREGION_Pos 8U /*!< MPU TYPE: DREGION Position */ -#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ - -#define MPU_TYPE_SEPARATE_Pos 0U /*!< MPU TYPE: SEPARATE Position */ -#define MPU_TYPE_SEPARATE_Msk (1UL /*<< MPU_TYPE_SEPARATE_Pos*/) /*!< MPU TYPE: SEPARATE Mask */ - -/* MPU Control Register Definitions */ -#define MPU_CTRL_PRIVDEFENA_Pos 2U /*!< MPU CTRL: PRIVDEFENA Position */ -#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ - -#define MPU_CTRL_HFNMIENA_Pos 1U /*!< MPU CTRL: HFNMIENA Position */ -#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ - -#define MPU_CTRL_ENABLE_Pos 0U /*!< MPU CTRL: ENABLE Position */ -#define MPU_CTRL_ENABLE_Msk (1UL /*<< MPU_CTRL_ENABLE_Pos*/) /*!< MPU CTRL: ENABLE Mask */ - -/* MPU Region Number Register Definitions */ -#define MPU_RNR_REGION_Pos 0U /*!< MPU RNR: REGION Position */ -#define MPU_RNR_REGION_Msk (0xFFUL /*<< MPU_RNR_REGION_Pos*/) /*!< MPU RNR: REGION Mask */ - -/* MPU Region Base Address Register Definitions */ -#define MPU_RBAR_BASE_Pos 5U /*!< MPU RBAR: BASE Position */ -#define MPU_RBAR_BASE_Msk (0x7FFFFFFUL << MPU_RBAR_BASE_Pos) /*!< MPU RBAR: BASE Mask */ - -#define MPU_RBAR_SH_Pos 3U /*!< MPU RBAR: SH Position */ -#define MPU_RBAR_SH_Msk (0x3UL << MPU_RBAR_SH_Pos) /*!< MPU RBAR: SH Mask */ - -#define MPU_RBAR_AP_Pos 1U /*!< MPU RBAR: AP Position */ -#define MPU_RBAR_AP_Msk (0x3UL << MPU_RBAR_AP_Pos) /*!< MPU RBAR: AP Mask */ - -#define MPU_RBAR_XN_Pos 0U /*!< MPU RBAR: XN Position */ -#define MPU_RBAR_XN_Msk (01UL /*<< MPU_RBAR_XN_Pos*/) /*!< MPU RBAR: XN Mask */ - -/* MPU Region Limit Address Register Definitions */ -#define MPU_RLAR_LIMIT_Pos 5U /*!< MPU RLAR: LIMIT Position */ -#define MPU_RLAR_LIMIT_Msk (0x7FFFFFFUL << MPU_RLAR_LIMIT_Pos) /*!< MPU RLAR: LIMIT Mask */ - -#define MPU_RLAR_AttrIndx_Pos 1U /*!< MPU RLAR: AttrIndx Position */ -#define MPU_RLAR_AttrIndx_Msk (0x7UL << MPU_RLAR_AttrIndx_Pos) /*!< MPU RLAR: AttrIndx Mask */ - -#define MPU_RLAR_EN_Pos 0U /*!< MPU RLAR: EN Position */ -#define MPU_RLAR_EN_Msk (1UL /*<< MPU_RLAR_EN_Pos*/) /*!< MPU RLAR: EN Mask */ - -/* MPU Memory Attribute Indirection Register 0 Definitions */ -#define MPU_MAIR0_Attr3_Pos 24U /*!< MPU MAIR0: Attr3 Position */ -#define MPU_MAIR0_Attr3_Msk (0xFFUL << MPU_MAIR0_Attr3_Pos) /*!< MPU MAIR0: Attr3 Mask */ - -#define MPU_MAIR0_Attr2_Pos 16U /*!< MPU MAIR0: Attr2 Position */ -#define MPU_MAIR0_Attr2_Msk (0xFFUL << MPU_MAIR0_Attr2_Pos) /*!< MPU MAIR0: Attr2 Mask */ - -#define MPU_MAIR0_Attr1_Pos 8U /*!< MPU MAIR0: Attr1 Position */ -#define MPU_MAIR0_Attr1_Msk (0xFFUL << MPU_MAIR0_Attr1_Pos) /*!< MPU MAIR0: Attr1 Mask */ - -#define MPU_MAIR0_Attr0_Pos 0U /*!< MPU MAIR0: Attr0 Position */ -#define MPU_MAIR0_Attr0_Msk (0xFFUL /*<< MPU_MAIR0_Attr0_Pos*/) /*!< MPU MAIR0: Attr0 Mask */ - -/* MPU Memory Attribute Indirection Register 1 Definitions */ -#define MPU_MAIR1_Attr7_Pos 24U /*!< MPU MAIR1: Attr7 Position */ -#define MPU_MAIR1_Attr7_Msk (0xFFUL << MPU_MAIR1_Attr7_Pos) /*!< MPU MAIR1: Attr7 Mask */ - -#define MPU_MAIR1_Attr6_Pos 16U /*!< MPU MAIR1: Attr6 Position */ -#define MPU_MAIR1_Attr6_Msk (0xFFUL << MPU_MAIR1_Attr6_Pos) /*!< MPU MAIR1: Attr6 Mask */ - -#define MPU_MAIR1_Attr5_Pos 8U /*!< MPU MAIR1: Attr5 Position */ -#define MPU_MAIR1_Attr5_Msk (0xFFUL << MPU_MAIR1_Attr5_Pos) /*!< MPU MAIR1: Attr5 Mask */ - -#define MPU_MAIR1_Attr4_Pos 0U /*!< MPU MAIR1: Attr4 Position */ -#define MPU_MAIR1_Attr4_Msk (0xFFUL /*<< MPU_MAIR1_Attr4_Pos*/) /*!< MPU MAIR1: Attr4 Mask */ - -/*@} end of group CMSIS_MPU */ -#endif - - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SAU Security Attribution Unit (SAU) - \brief Type definitions for the Security Attribution Unit (SAU) - @{ - */ - -/** - \brief Structure type to access the Security Attribution Unit (SAU). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SAU Control Register */ - __IM uint32_t TYPE; /*!< Offset: 0x004 (R/ ) SAU Type Register */ -#if defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) - __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) SAU Region Number Register */ - __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) SAU Region Base Address Register */ - __IOM uint32_t RLAR; /*!< Offset: 0x010 (R/W) SAU Region Limit Address Register */ -#endif -} SAU_Type; - -/* SAU Control Register Definitions */ -#define SAU_CTRL_ALLNS_Pos 1U /*!< SAU CTRL: ALLNS Position */ -#define SAU_CTRL_ALLNS_Msk (1UL << SAU_CTRL_ALLNS_Pos) /*!< SAU CTRL: ALLNS Mask */ - -#define SAU_CTRL_ENABLE_Pos 0U /*!< SAU CTRL: ENABLE Position */ -#define SAU_CTRL_ENABLE_Msk (1UL /*<< SAU_CTRL_ENABLE_Pos*/) /*!< SAU CTRL: ENABLE Mask */ - -/* SAU Type Register Definitions */ -#define SAU_TYPE_SREGION_Pos 0U /*!< SAU TYPE: SREGION Position */ -#define SAU_TYPE_SREGION_Msk (0xFFUL /*<< SAU_TYPE_SREGION_Pos*/) /*!< SAU TYPE: SREGION Mask */ - -#if defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) -/* SAU Region Number Register Definitions */ -#define SAU_RNR_REGION_Pos 0U /*!< SAU RNR: REGION Position */ -#define SAU_RNR_REGION_Msk (0xFFUL /*<< SAU_RNR_REGION_Pos*/) /*!< SAU RNR: REGION Mask */ - -/* SAU Region Base Address Register Definitions */ -#define SAU_RBAR_BADDR_Pos 5U /*!< SAU RBAR: BADDR Position */ -#define SAU_RBAR_BADDR_Msk (0x7FFFFFFUL << SAU_RBAR_BADDR_Pos) /*!< SAU RBAR: BADDR Mask */ - -/* SAU Region Limit Address Register Definitions */ -#define SAU_RLAR_LADDR_Pos 5U /*!< SAU RLAR: LADDR Position */ -#define SAU_RLAR_LADDR_Msk (0x7FFFFFFUL << SAU_RLAR_LADDR_Pos) /*!< SAU RLAR: LADDR Mask */ - -#define SAU_RLAR_NSC_Pos 1U /*!< SAU RLAR: NSC Position */ -#define SAU_RLAR_NSC_Msk (1UL << SAU_RLAR_NSC_Pos) /*!< SAU RLAR: NSC Mask */ - -#define SAU_RLAR_ENABLE_Pos 0U /*!< SAU RLAR: ENABLE Position */ -#define SAU_RLAR_ENABLE_Msk (1UL /*<< SAU_RLAR_ENABLE_Pos*/) /*!< SAU RLAR: ENABLE Mask */ - -#endif /* defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) */ - -/*@} end of group CMSIS_SAU */ -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) - \brief Type definitions for the Core Debug Registers - @{ - */ - -/** - \brief Structure type to access the Core Debug Register (CoreDebug). - */ -typedef struct -{ - __IOM uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ - __OM uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ - __IOM uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ - __IOM uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ - uint32_t RESERVED4[1U]; - __IOM uint32_t DAUTHCTRL; /*!< Offset: 0x014 (R/W) Debug Authentication Control Register */ - __IOM uint32_t DSCSR; /*!< Offset: 0x018 (R/W) Debug Security Control and Status Register */ -} CoreDebug_Type; - -/* Debug Halting Control and Status Register Definitions */ -#define CoreDebug_DHCSR_DBGKEY_Pos 16U /*!< CoreDebug DHCSR: DBGKEY Position */ -#define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ - -#define CoreDebug_DHCSR_S_RESTART_ST_Pos 26U /*!< CoreDebug DHCSR: S_RESTART_ST Position */ -#define CoreDebug_DHCSR_S_RESTART_ST_Msk (1UL << CoreDebug_DHCSR_S_RESTART_ST_Pos) /*!< CoreDebug DHCSR: S_RESTART_ST Mask */ - -#define CoreDebug_DHCSR_S_RESET_ST_Pos 25U /*!< CoreDebug DHCSR: S_RESET_ST Position */ -#define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ - -#define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24U /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ -#define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ - -#define CoreDebug_DHCSR_S_LOCKUP_Pos 19U /*!< CoreDebug DHCSR: S_LOCKUP Position */ -#define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ - -#define CoreDebug_DHCSR_S_SLEEP_Pos 18U /*!< CoreDebug DHCSR: S_SLEEP Position */ -#define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ - -#define CoreDebug_DHCSR_S_HALT_Pos 17U /*!< CoreDebug DHCSR: S_HALT Position */ -#define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ - -#define CoreDebug_DHCSR_S_REGRDY_Pos 16U /*!< CoreDebug DHCSR: S_REGRDY Position */ -#define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ - -#define CoreDebug_DHCSR_C_MASKINTS_Pos 3U /*!< CoreDebug DHCSR: C_MASKINTS Position */ -#define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ - -#define CoreDebug_DHCSR_C_STEP_Pos 2U /*!< CoreDebug DHCSR: C_STEP Position */ -#define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ - -#define CoreDebug_DHCSR_C_HALT_Pos 1U /*!< CoreDebug DHCSR: C_HALT Position */ -#define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ - -#define CoreDebug_DHCSR_C_DEBUGEN_Pos 0U /*!< CoreDebug DHCSR: C_DEBUGEN Position */ -#define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL /*<< CoreDebug_DHCSR_C_DEBUGEN_Pos*/) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ - -/* Debug Core Register Selector Register Definitions */ -#define CoreDebug_DCRSR_REGWnR_Pos 16U /*!< CoreDebug DCRSR: REGWnR Position */ -#define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ - -#define CoreDebug_DCRSR_REGSEL_Pos 0U /*!< CoreDebug DCRSR: REGSEL Position */ -#define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL /*<< CoreDebug_DCRSR_REGSEL_Pos*/) /*!< CoreDebug DCRSR: REGSEL Mask */ - -/* Debug Exception and Monitor Control Register */ -#define CoreDebug_DEMCR_DWTENA_Pos 24U /*!< CoreDebug DEMCR: DWTENA Position */ -#define CoreDebug_DEMCR_DWTENA_Msk (1UL << CoreDebug_DEMCR_DWTENA_Pos) /*!< CoreDebug DEMCR: DWTENA Mask */ - -#define CoreDebug_DEMCR_VC_HARDERR_Pos 10U /*!< CoreDebug DEMCR: VC_HARDERR Position */ -#define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ - -#define CoreDebug_DEMCR_VC_CORERESET_Pos 0U /*!< CoreDebug DEMCR: VC_CORERESET Position */ -#define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL /*<< CoreDebug_DEMCR_VC_CORERESET_Pos*/) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ - -/* Debug Authentication Control Register Definitions */ -#define CoreDebug_DAUTHCTRL_INTSPNIDEN_Pos 3U /*!< CoreDebug DAUTHCTRL: INTSPNIDEN, Position */ -#define CoreDebug_DAUTHCTRL_INTSPNIDEN_Msk (1UL << CoreDebug_DAUTHCTRL_INTSPNIDEN_Pos) /*!< CoreDebug DAUTHCTRL: INTSPNIDEN, Mask */ - -#define CoreDebug_DAUTHCTRL_SPNIDENSEL_Pos 2U /*!< CoreDebug DAUTHCTRL: SPNIDENSEL Position */ -#define CoreDebug_DAUTHCTRL_SPNIDENSEL_Msk (1UL << CoreDebug_DAUTHCTRL_SPNIDENSEL_Pos) /*!< CoreDebug DAUTHCTRL: SPNIDENSEL Mask */ - -#define CoreDebug_DAUTHCTRL_INTSPIDEN_Pos 1U /*!< CoreDebug DAUTHCTRL: INTSPIDEN Position */ -#define CoreDebug_DAUTHCTRL_INTSPIDEN_Msk (1UL << CoreDebug_DAUTHCTRL_INTSPIDEN_Pos) /*!< CoreDebug DAUTHCTRL: INTSPIDEN Mask */ - -#define CoreDebug_DAUTHCTRL_SPIDENSEL_Pos 0U /*!< CoreDebug DAUTHCTRL: SPIDENSEL Position */ -#define CoreDebug_DAUTHCTRL_SPIDENSEL_Msk (1UL /*<< CoreDebug_DAUTHCTRL_SPIDENSEL_Pos*/) /*!< CoreDebug DAUTHCTRL: SPIDENSEL Mask */ - -/* Debug Security Control and Status Register Definitions */ -#define CoreDebug_DSCSR_CDS_Pos 16U /*!< CoreDebug DSCSR: CDS Position */ -#define CoreDebug_DSCSR_CDS_Msk (1UL << CoreDebug_DSCSR_CDS_Pos) /*!< CoreDebug DSCSR: CDS Mask */ - -#define CoreDebug_DSCSR_SBRSEL_Pos 1U /*!< CoreDebug DSCSR: SBRSEL Position */ -#define CoreDebug_DSCSR_SBRSEL_Msk (1UL << CoreDebug_DSCSR_SBRSEL_Pos) /*!< CoreDebug DSCSR: SBRSEL Mask */ - -#define CoreDebug_DSCSR_SBRSELEN_Pos 0U /*!< CoreDebug DSCSR: SBRSELEN Position */ -#define CoreDebug_DSCSR_SBRSELEN_Msk (1UL /*<< CoreDebug_DSCSR_SBRSELEN_Pos*/) /*!< CoreDebug DSCSR: SBRSELEN Mask */ - -/*@} end of group CMSIS_CoreDebug */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_core_bitfield Core register bit field macros - \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). - @{ - */ - -/** - \brief Mask and shift a bit field value for use in a register bit range. - \param[in] field Name of the register bit field. - \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. - \return Masked and shifted value. -*/ -#define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) - -/** - \brief Mask and shift a register value to extract a bit filed value. - \param[in] field Name of the register bit field. - \param[in] value Value of register. This parameter is interpreted as an uint32_t type. - \return Masked and shifted bit field value. -*/ -#define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) - -/*@} end of group CMSIS_core_bitfield */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_core_base Core Definitions - \brief Definitions for base addresses, unions, and structures. - @{ - */ - -/* Memory mapping of Core Hardware */ - #define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ - #define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ - #define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ - #define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ - #define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ - #define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ - #define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ - - - #define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ - #define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ - #define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ - #define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ - #define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ - #define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE ) /*!< Core Debug configuration struct */ - - #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) - #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ - #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ - #endif - - #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) - #define SAU_BASE (SCS_BASE + 0x0DD0UL) /*!< Security Attribution Unit */ - #define SAU ((SAU_Type *) SAU_BASE ) /*!< Security Attribution Unit */ - #endif - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) - #define SCS_BASE_NS (0xE002E000UL) /*!< System Control Space Base Address (non-secure address space) */ - #define CoreDebug_BASE_NS (0xE002EDF0UL) /*!< Core Debug Base Address (non-secure address space) */ - #define SysTick_BASE_NS (SCS_BASE_NS + 0x0010UL) /*!< SysTick Base Address (non-secure address space) */ - #define NVIC_BASE_NS (SCS_BASE_NS + 0x0100UL) /*!< NVIC Base Address (non-secure address space) */ - #define SCB_BASE_NS (SCS_BASE_NS + 0x0D00UL) /*!< System Control Block Base Address (non-secure address space) */ - - #define SCB_NS ((SCB_Type *) SCB_BASE_NS ) /*!< SCB configuration struct (non-secure address space) */ - #define SysTick_NS ((SysTick_Type *) SysTick_BASE_NS ) /*!< SysTick configuration struct (non-secure address space) */ - #define NVIC_NS ((NVIC_Type *) NVIC_BASE_NS ) /*!< NVIC configuration struct (non-secure address space) */ - #define CoreDebug_NS ((CoreDebug_Type *) CoreDebug_BASE_NS) /*!< Core Debug configuration struct (non-secure address space) */ - - #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) - #define MPU_BASE_NS (SCS_BASE_NS + 0x0D90UL) /*!< Memory Protection Unit (non-secure address space) */ - #define MPU_NS ((MPU_Type *) MPU_BASE_NS ) /*!< Memory Protection Unit (non-secure address space) */ - #endif - -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ -/*@} */ - - - -/******************************************************************************* - * Hardware Abstraction Layer - Core Function Interface contains: - - Core NVIC Functions - - Core SysTick Functions - - Core Register Access Functions - ******************************************************************************/ -/** - \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference -*/ - - - -/* ########################## NVIC functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_NVICFunctions NVIC Functions - \brief Functions that manage interrupts and exceptions via the NVIC. - @{ - */ - -#ifdef CMSIS_NVIC_VIRTUAL - #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE - #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" - #endif - #include CMSIS_NVIC_VIRTUAL_HEADER_FILE -#else - #define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping - #define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping - #define NVIC_EnableIRQ __NVIC_EnableIRQ - #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ - #define NVIC_DisableIRQ __NVIC_DisableIRQ - #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ - #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ - #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ - #define NVIC_GetActive __NVIC_GetActive - #define NVIC_SetPriority __NVIC_SetPriority - #define NVIC_GetPriority __NVIC_GetPriority - #define NVIC_SystemReset __NVIC_SystemReset -#endif /* CMSIS_NVIC_VIRTUAL */ - -#ifdef CMSIS_VECTAB_VIRTUAL - #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE - #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" - #endif - #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE -#else - #define NVIC_SetVector __NVIC_SetVector - #define NVIC_GetVector __NVIC_GetVector -#endif /* (CMSIS_VECTAB_VIRTUAL) */ - -#define NVIC_USER_IRQ_OFFSET 16 - - -/* Special LR values for Secure/Non-Secure call handling and exception handling */ - -/* Function Return Payload (from ARMv8-M Architecture Reference Manual) LR value on entry from Secure BLXNS */ -#define FNC_RETURN (0xFEFFFFFFUL) /* bit [0] ignored when processing a branch */ - -/* The following EXC_RETURN mask values are used to evaluate the LR on exception entry */ -#define EXC_RETURN_PREFIX (0xFF000000UL) /* bits [31:24] set to indicate an EXC_RETURN value */ -#define EXC_RETURN_S (0x00000040UL) /* bit [6] stack used to push registers: 0=Non-secure 1=Secure */ -#define EXC_RETURN_DCRS (0x00000020UL) /* bit [5] stacking rules for called registers: 0=skipped 1=saved */ -#define EXC_RETURN_FTYPE (0x00000010UL) /* bit [4] allocate stack for floating-point context: 0=done 1=skipped */ -#define EXC_RETURN_MODE (0x00000008UL) /* bit [3] processor mode for return: 0=Handler mode 1=Thread mode */ -#define EXC_RETURN_SPSEL (0x00000004UL) /* bit [2] stack pointer used to restore context: 0=MSP 1=PSP */ -#define EXC_RETURN_ES (0x00000001UL) /* bit [0] security state exception was taken to: 0=Non-secure 1=Secure */ - -/* Integrity Signature (from ARMv8-M Architecture Reference Manual) for exception context stacking */ -#if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) /* Value for processors with floating-point extension: */ -#define EXC_INTEGRITY_SIGNATURE (0xFEFA125AUL) /* bit [0] SFTC must match LR bit[4] EXC_RETURN_FTYPE */ -#else -#define EXC_INTEGRITY_SIGNATURE (0xFEFA125BUL) /* Value for processors without floating-point extension */ -#endif - - -/* Interrupt Priorities are WORD accessible only under Armv6-M */ -/* The following MACROS handle generation of the register offset and byte masks */ -#define _BIT_SHIFT(IRQn) ( ((((uint32_t)(int32_t)(IRQn)) ) & 0x03UL) * 8UL) -#define _SHP_IDX(IRQn) ( (((((uint32_t)(int32_t)(IRQn)) & 0x0FUL)-8UL) >> 2UL) ) -#define _IP_IDX(IRQn) ( (((uint32_t)(int32_t)(IRQn)) >> 2UL) ) - -#define __NVIC_SetPriorityGrouping(X) (void)(X) -#define __NVIC_GetPriorityGrouping() (0U) - -/** - \brief Enable Interrupt - \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) -{ - if ((int32_t)(IRQn) >= 0) - { - __COMPILER_BARRIER(); - NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - __COMPILER_BARRIER(); - } -} - - -/** - \brief Get Interrupt Enable status - \details Returns a device specific interrupt enable status from the NVIC interrupt controller. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt is not enabled. - \return 1 Interrupt is enabled. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Disable Interrupt - \details Disables 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_DisableIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - __DSB(); - __ISB(); - } -} - - -/** - \brief Get Pending Interrupt - \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not pending. - \return 1 Interrupt status is pending. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Pending Interrupt - \details Sets the pending bit of a device specific interrupt in the NVIC pending register. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Clear Pending Interrupt - \details Clears the pending bit of a device specific interrupt in the NVIC pending register. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Active Interrupt - \details Reads the active register in the NVIC and returns the active bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not active. - \return 1 Interrupt status is active. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetActive(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) -/** - \brief Get Interrupt Target State - \details Reads the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 if interrupt is assigned to Secure - \return 1 if interrupt is assigned to Non Secure - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t NVIC_GetTargetState(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Interrupt Target State - \details Sets the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 if interrupt is assigned to Secure - 1 if interrupt is assigned to Non Secure - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t NVIC_SetTargetState(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] |= ((uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL))); - return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Clear Interrupt Target State - \details Clears the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 if interrupt is assigned to Secure - 1 if interrupt is assigned to Non Secure - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t NVIC_ClearTargetState(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] &= ~((uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL))); - return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ - - -/** - \brief Set Interrupt Priority - \details Sets the priority of a device specific interrupt or a processor exception. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \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) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->IPR[_IP_IDX(IRQn)] = ((uint32_t)(NVIC->IPR[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | - (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - } - else - { - SCB->SHPR[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHPR[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | - (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - } -} - - -/** - \brief Get Interrupt Priority - \details Reads the priority of a device specific interrupt or a processor exception. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Interrupt Priority. - Value is aligned automatically to the implemented priority bits of the microcontroller. - */ -__STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) -{ - - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->IPR[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); - } - else - { - return((uint32_t)(((SCB->SHPR[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); - } -} - - -/** - \brief Encode Priority - \details Encodes the priority for an interrupt with the given priority group, - preemptive priority value, and subpriority value. - 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 Used priority group. - \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) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - - return ( - ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) - ); -} - - -/** - \brief Decode Priority - \details Decodes an interrupt priority value with a given priority group to - preemptive priority value and subpriority value. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. - \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). - \param [in] PriorityGroup Used priority group. - \param [out] pPreemptPriority Preemptive priority value (starting from 0). - \param [out] pSubPriority Subpriority value (starting from 0). - */ -__STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - - *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); - *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); -} - - -/** - \brief Set Interrupt Vector - \details Sets an interrupt vector in SRAM based interrupt vector table. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - VTOR must been relocated to SRAM before. - If VTOR is not present address 0 must be mapped to SRAM. - \param [in] IRQn Interrupt number - \param [in] vector Address of interrupt handler function - */ -__STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) -{ -#if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) - uint32_t *vectors = (uint32_t *)SCB->VTOR; -#else - uint32_t *vectors = (uint32_t *)0x0U; -#endif - vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET] = vector; - __DSB(); -} - - -/** - \brief Get Interrupt Vector - \details Reads an interrupt vector from interrupt vector table. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Address of interrupt handler function - */ -__STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) -{ -#if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) - uint32_t *vectors = (uint32_t *)SCB->VTOR; -#else - uint32_t *vectors = (uint32_t *)0x0U; -#endif - return vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET]; -} - - -/** - \brief System Reset - \details Initiates a system reset request to reset the MCU. - */ -__NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) -{ - __DSB(); /* Ensure all outstanding memory accesses included - buffered write are completed before reset */ - SCB->AIRCR = ((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - SCB_AIRCR_SYSRESETREQ_Msk); - __DSB(); /* Ensure completion of memory access */ - - for(;;) /* wait until reset */ - { - __NOP(); - } -} - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) -/** - \brief Enable Interrupt (non-secure) - \details Enables a device specific interrupt in the non-secure NVIC interrupt controller when in secure state. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void TZ_NVIC_EnableIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Interrupt Enable status (non-secure) - \details Returns a device specific interrupt enable status from the non-secure NVIC interrupt controller when in secure state. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt is not enabled. - \return 1 Interrupt is enabled. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t TZ_NVIC_GetEnableIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC_NS->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Disable Interrupt (non-secure) - \details Disables a device specific interrupt in the non-secure NVIC interrupt controller when in secure state. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void TZ_NVIC_DisableIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Pending Interrupt (non-secure) - \details Reads the NVIC pending register in the non-secure NVIC when in secure state and returns the pending bit for the specified device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not pending. - \return 1 Interrupt status is pending. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t TZ_NVIC_GetPendingIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC_NS->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Pending Interrupt (non-secure) - \details Sets the pending bit of a device specific interrupt in the non-secure NVIC pending register when in secure state. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void TZ_NVIC_SetPendingIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Clear Pending Interrupt (non-secure) - \details Clears the pending bit of a device specific interrupt in the non-secure NVIC pending register when in secure state. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void TZ_NVIC_ClearPendingIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Active Interrupt (non-secure) - \details Reads the active register in non-secure NVIC when in secure state and returns the active bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not active. - \return 1 Interrupt status is active. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t TZ_NVIC_GetActive_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC_NS->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Interrupt Priority (non-secure) - \details Sets the priority of a non-secure device specific interrupt or a non-secure processor exception when in secure state. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \param [in] priority Priority to set. - \note The priority cannot be set for every non-secure processor exception. - */ -__STATIC_INLINE void TZ_NVIC_SetPriority_NS(IRQn_Type IRQn, uint32_t priority) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->IPR[_IP_IDX(IRQn)] = ((uint32_t)(NVIC_NS->IPR[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | - (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - } - else - { - SCB_NS->SHPR[_SHP_IDX(IRQn)] = ((uint32_t)(SCB_NS->SHPR[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | - (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - } -} - - -/** - \brief Get Interrupt Priority (non-secure) - \details Reads the priority of a non-secure device specific interrupt or a non-secure processor exception when in secure state. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. - */ -__STATIC_INLINE uint32_t TZ_NVIC_GetPriority_NS(IRQn_Type IRQn) -{ - - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC_NS->IPR[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); - } - else - { - return((uint32_t)(((SCB_NS->SHPR[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); - } -} -#endif /* defined (__ARM_FEATURE_CMSE) &&(__ARM_FEATURE_CMSE == 3U) */ - -/*@} end of CMSIS_Core_NVICFunctions */ - -/* ########################## MPU functions #################################### */ - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) - -#include "mpu_armv8.h" - -#endif - -/* ########################## FPU functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_FpuFunctions FPU Functions - \brief Function that provides FPU type. - @{ - */ - -/** - \brief get FPU type - \details returns the FPU type - \returns - - \b 0: No FPU - - \b 1: Single precision FPU - - \b 2: Double + Single precision FPU - */ -__STATIC_INLINE uint32_t SCB_GetFPUType(void) -{ - return 0U; /* No FPU */ -} - - -/*@} end of CMSIS_Core_FpuFunctions */ - - - -/* ########################## SAU functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SAUFunctions SAU Functions - \brief Functions that configure the SAU. - @{ - */ - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) - -/** - \brief Enable SAU - \details Enables the Security Attribution Unit (SAU). - */ -__STATIC_INLINE void TZ_SAU_Enable(void) -{ - SAU->CTRL |= (SAU_CTRL_ENABLE_Msk); -} - - - -/** - \brief Disable SAU - \details Disables the Security Attribution Unit (SAU). - */ -__STATIC_INLINE void TZ_SAU_Disable(void) -{ - SAU->CTRL &= ~(SAU_CTRL_ENABLE_Msk); -} - -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ - -/*@} end of CMSIS_Core_SAUFunctions */ - - - - -/* ################################## SysTick function ############################################ */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SysTickFunctions SysTick Functions - \brief Functions that configure the System. - @{ - */ - -#if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) - -/** - \brief System Tick Configuration - \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. - Counter is in free running mode to generate periodic interrupts. - \param [in] ticks Number of ticks between two interrupts. - \return 0 Function succeeded. - \return 1 Function failed. - \note When the variable __Vendor_SysTickConfig is set to 1, then the - function SysTick_Config is not included. In this case, the file device.h - must contain a vendor-specific implementation of this function. - */ -__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) -{ - if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - { - return (1UL); /* Reload value impossible */ - } - - SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ - SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0UL); /* Function successful */ -} - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) -/** - \brief System Tick Configuration (non-secure) - \details Initializes the non-secure System Timer and its interrupt when in secure state, and starts the System Tick Timer. - Counter is in free running mode to generate periodic interrupts. - \param [in] ticks Number of ticks between two interrupts. - \return 0 Function succeeded. - \return 1 Function failed. - \note When the variable __Vendor_SysTickConfig is set to 1, then the - function TZ_SysTick_Config_NS is not included. In this case, the file device.h - must contain a vendor-specific implementation of this function. - - */ -__STATIC_INLINE uint32_t TZ_SysTick_Config_NS(uint32_t ticks) -{ - if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - { - return (1UL); /* Reload value impossible */ - } - - SysTick_NS->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - TZ_NVIC_SetPriority_NS (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - SysTick_NS->VAL = 0UL; /* Load the SysTick Counter Value */ - SysTick_NS->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0UL); /* Function successful */ -} -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ - -#endif - -/*@} end of CMSIS_Core_SysTickFunctions */ - - - - -#ifdef __cplusplus -} -#endif - -#endif /* __CORE_ARMV8MBL_H_DEPENDANT */ - -#endif /* __CMSIS_GENERIC */ diff --git a/Drivers/CMSIS/Include/core_armv8mml.h b/Drivers/CMSIS/Include/core_armv8mml.h deleted file mode 100644 index 5ddb8ae..0000000 --- a/Drivers/CMSIS/Include/core_armv8mml.h +++ /dev/null @@ -1,2835 +0,0 @@ -/**************************************************************************//** - * @file core_armv8mml.h - * @brief CMSIS Armv8-M Mainline Core Peripheral Access Layer Header File - * @version V5.1.0 - * @date 12. September 2018 - ******************************************************************************/ -/* - * Copyright (c) 2009-2018 Arm Limited. All rights reserved. - * - * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the License); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#if defined ( __ICCARM__ ) - #pragma system_include /* treat file as system include file for MISRA check */ -#elif defined (__clang__) - #pragma clang system_header /* treat file as system include file */ -#endif - -#ifndef __CORE_ARMV8MML_H_GENERIC -#define __CORE_ARMV8MML_H_GENERIC - -#include - -#ifdef __cplusplus - extern "C" { -#endif - -/** - \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions - CMSIS violates the following MISRA-C:2004 rules: - - \li Required Rule 8.5, object/function definition in header file.
- Function definitions in header files are used to allow 'inlining'. - - \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
- Unions are used for effective representation of core registers. - - \li Advisory Rule 19.7, Function-like macro defined.
- Function-like macros are used to allow more efficient code. - */ - - -/******************************************************************************* - * CMSIS definitions - ******************************************************************************/ -/** - \ingroup Cortex_ARMv8MML - @{ - */ - -#include "cmsis_version.h" - -/* CMSIS Armv8MML definitions */ -#define __ARMv8MML_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ -#define __ARMv8MML_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ -#define __ARMv8MML_CMSIS_VERSION ((__ARMv8MML_CMSIS_VERSION_MAIN << 16U) | \ - __ARMv8MML_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ - -#define __CORTEX_M (81U) /*!< Cortex-M Core */ - -/** __FPU_USED indicates whether an FPU is used or not. - For this, __FPU_PRESENT has to be checked prior to making use of FPU specific registers and functions. -*/ -#if defined ( __CC_ARM ) - #if defined __TARGET_FPU_VFP - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - - #if defined(__ARM_FEATURE_DSP) - #if defined(__DSP_PRESENT) && (__DSP_PRESENT == 1U) - #define __DSP_USED 1U - #else - #error "Compiler generates DSP (SIMD) instructions for a devices without DSP extensions (check __DSP_PRESENT)" - #define __DSP_USED 0U - #endif - #else - #define __DSP_USED 0U - #endif - -#elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) - #if defined __ARM_FP - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - - #if defined(__ARM_FEATURE_DSP) - #if defined(__DSP_PRESENT) && (__DSP_PRESENT == 1U) - #define __DSP_USED 1U - #else - #error "Compiler generates DSP (SIMD) instructions for a devices without DSP extensions (check __DSP_PRESENT)" - #define __DSP_USED 0U - #endif - #else - #define __DSP_USED 0U - #endif - -#elif defined ( __GNUC__ ) - #if defined (__VFP_FP__) && !defined(__SOFTFP__) - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - - #if defined(__ARM_FEATURE_DSP) - #if defined(__DSP_PRESENT) && (__DSP_PRESENT == 1U) - #define __DSP_USED 1U - #else - #error "Compiler generates DSP (SIMD) instructions for a devices without DSP extensions (check __DSP_PRESENT)" - #define __DSP_USED 0U - #endif - #else - #define __DSP_USED 0U - #endif - -#elif defined ( __ICCARM__ ) - #if defined __ARMVFP__ - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - - #if defined(__ARM_FEATURE_DSP) - #if defined(__DSP_PRESENT) && (__DSP_PRESENT == 1U) - #define __DSP_USED 1U - #else - #error "Compiler generates DSP (SIMD) instructions for a devices without DSP extensions (check __DSP_PRESENT)" - #define __DSP_USED 0U - #endif - #else - #define __DSP_USED 0U - #endif - -#elif defined ( __TI_ARM__ ) - #if defined __TI_VFP_SUPPORT__ - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - -#elif defined ( __TASKING__ ) - #if defined __FPU_VFP__ - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - -#elif defined ( __CSMC__ ) - #if ( __CSMC__ & 0x400U) - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - -#endif - -#include "cmsis_compiler.h" /* CMSIS compiler specific defines */ - - -#ifdef __cplusplus -} -#endif - -#endif /* __CORE_ARMV8MML_H_GENERIC */ - -#ifndef __CMSIS_GENERIC - -#ifndef __CORE_ARMV8MML_H_DEPENDANT -#define __CORE_ARMV8MML_H_DEPENDANT - -#ifdef __cplusplus - extern "C" { -#endif - -/* check device defines and use defaults */ -#if defined __CHECK_DEVICE_DEFINES - #ifndef __ARMv8MML_REV - #define __ARMv8MML_REV 0x0000U - #warning "__ARMv8MML_REV not defined in device header file; using default!" - #endif - - #ifndef __FPU_PRESENT - #define __FPU_PRESENT 0U - #warning "__FPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __MPU_PRESENT - #define __MPU_PRESENT 0U - #warning "__MPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __SAUREGION_PRESENT - #define __SAUREGION_PRESENT 0U - #warning "__SAUREGION_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __DSP_PRESENT - #define __DSP_PRESENT 0U - #warning "__DSP_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __NVIC_PRIO_BITS - #define __NVIC_PRIO_BITS 3U - #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" - #endif - - #ifndef __Vendor_SysTickConfig - #define __Vendor_SysTickConfig 0U - #warning "__Vendor_SysTickConfig not defined in device header file; using default!" - #endif -#endif - -/* IO definitions (access restrictions to peripheral registers) */ -/** - \defgroup CMSIS_glob_defs CMSIS Global Defines - - IO Type Qualifiers are used - \li to specify the access to peripheral variables. - \li for automatic generation of peripheral register debug information. -*/ -#ifdef __cplusplus - #define __I volatile /*!< Defines 'read only' permissions */ -#else - #define __I volatile const /*!< Defines 'read only' permissions */ -#endif -#define __O volatile /*!< Defines 'write only' permissions */ -#define __IO volatile /*!< Defines 'read / write' permissions */ - -/* following defines should be used for structure members */ -#define __IM volatile const /*! Defines 'read only' structure member permissions */ -#define __OM volatile /*! Defines 'write only' structure member permissions */ -#define __IOM volatile /*! Defines 'read / write' structure member permissions */ - -/*@} end of group ARMv8MML */ - - - -/******************************************************************************* - * Register Abstraction - Core Register contain: - - Core Register - - Core NVIC Register - - Core SCB Register - - Core SysTick Register - - Core Debug Register - - Core MPU Register - - Core SAU Register - - Core FPU Register - ******************************************************************************/ -/** - \defgroup CMSIS_core_register Defines and Type Definitions - \brief Type definitions and defines for Cortex-M processor based devices. -*/ - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_CORE Status and Control Registers - \brief Core Register type definitions. - @{ - */ - -/** - \brief Union type to access the Application Program Status Register (APSR). - */ -typedef union -{ - struct - { - uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} APSR_Type; - -/* APSR Register Definitions */ -#define APSR_N_Pos 31U /*!< APSR: N Position */ -#define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ - -#define APSR_Z_Pos 30U /*!< APSR: Z Position */ -#define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ - -#define APSR_C_Pos 29U /*!< APSR: C Position */ -#define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ - -#define APSR_V_Pos 28U /*!< APSR: V Position */ -#define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ - -#define APSR_Q_Pos 27U /*!< APSR: Q Position */ -#define APSR_Q_Msk (1UL << APSR_Q_Pos) /*!< APSR: Q Mask */ - -#define APSR_GE_Pos 16U /*!< APSR: GE Position */ -#define APSR_GE_Msk (0xFUL << APSR_GE_Pos) /*!< APSR: GE Mask */ - - -/** - \brief Union type to access the Interrupt Program Status Register (IPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} IPSR_Type; - -/* IPSR Register Definitions */ -#define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ -#define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ - - -/** - \brief Union type to access the Special-Purpose Program Status Registers (xPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:7; /*!< bit: 9..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ - uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ - uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} xPSR_Type; - -/* xPSR Register Definitions */ -#define xPSR_N_Pos 31U /*!< xPSR: N Position */ -#define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ - -#define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ -#define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ - -#define xPSR_C_Pos 29U /*!< xPSR: C Position */ -#define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ - -#define xPSR_V_Pos 28U /*!< xPSR: V Position */ -#define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ - -#define xPSR_Q_Pos 27U /*!< xPSR: Q Position */ -#define xPSR_Q_Msk (1UL << xPSR_Q_Pos) /*!< xPSR: Q Mask */ - -#define xPSR_IT_Pos 25U /*!< xPSR: IT Position */ -#define xPSR_IT_Msk (3UL << xPSR_IT_Pos) /*!< xPSR: IT Mask */ - -#define xPSR_T_Pos 24U /*!< xPSR: T Position */ -#define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ - -#define xPSR_GE_Pos 16U /*!< xPSR: GE Position */ -#define xPSR_GE_Msk (0xFUL << xPSR_GE_Pos) /*!< xPSR: GE Mask */ - -#define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ -#define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ - - -/** - \brief Union type to access the Control Registers (CONTROL). - */ -typedef union -{ - struct - { - uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ - uint32_t SPSEL:1; /*!< bit: 1 Stack-pointer select */ - uint32_t FPCA:1; /*!< bit: 2 Floating-point context active */ - uint32_t SFPA:1; /*!< bit: 3 Secure floating-point active */ - uint32_t _reserved1:28; /*!< bit: 4..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} CONTROL_Type; - -/* CONTROL Register Definitions */ -#define CONTROL_SFPA_Pos 3U /*!< CONTROL: SFPA Position */ -#define CONTROL_SFPA_Msk (1UL << CONTROL_SFPA_Pos) /*!< CONTROL: SFPA Mask */ - -#define CONTROL_FPCA_Pos 2U /*!< CONTROL: FPCA Position */ -#define CONTROL_FPCA_Msk (1UL << CONTROL_FPCA_Pos) /*!< CONTROL: FPCA Mask */ - -#define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ -#define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ - -#define CONTROL_nPRIV_Pos 0U /*!< CONTROL: nPRIV Position */ -#define CONTROL_nPRIV_Msk (1UL /*<< CONTROL_nPRIV_Pos*/) /*!< CONTROL: nPRIV Mask */ - -/*@} end of group CMSIS_CORE */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) - \brief Type definitions for the NVIC Registers - @{ - */ - -/** - \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). - */ -typedef struct -{ - __IOM uint32_t ISER[16U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ - uint32_t RESERVED0[16U]; - __IOM uint32_t ICER[16U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ - uint32_t RSERVED1[16U]; - __IOM uint32_t ISPR[16U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ - uint32_t RESERVED2[16U]; - __IOM uint32_t ICPR[16U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ - uint32_t RESERVED3[16U]; - __IOM uint32_t IABR[16U]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ - uint32_t RESERVED4[16U]; - __IOM uint32_t ITNS[16U]; /*!< Offset: 0x280 (R/W) Interrupt Non-Secure State Register */ - uint32_t RESERVED5[16U]; - __IOM uint8_t IPR[496U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ - uint32_t RESERVED6[580U]; - __OM uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ -} NVIC_Type; - -/* Software Triggered Interrupt Register Definitions */ -#define NVIC_STIR_INTID_Pos 0U /*!< STIR: INTLINESNUM Position */ -#define NVIC_STIR_INTID_Msk (0x1FFUL /*<< NVIC_STIR_INTID_Pos*/) /*!< STIR: INTLINESNUM Mask */ - -/*@} end of group CMSIS_NVIC */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SCB System Control Block (SCB) - \brief Type definitions for the System Control Block Registers - @{ - */ - -/** - \brief Structure type to access the System Control Block (SCB). - */ -typedef struct -{ - __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ - __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ - __IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ - __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ - __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ - __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ - __IOM uint8_t SHPR[12U]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ - __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ - __IOM uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ - __IOM uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ - __IOM uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ - __IOM uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ - __IOM uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ - __IOM uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ - __IM uint32_t ID_PFR[2U]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ - __IM uint32_t ID_DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ - __IM uint32_t ID_ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ - __IM uint32_t ID_MMFR[4U]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ - __IM uint32_t ID_ISAR[6U]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ - __IM uint32_t CLIDR; /*!< Offset: 0x078 (R/ ) Cache Level ID register */ - __IM uint32_t CTR; /*!< Offset: 0x07C (R/ ) Cache Type register */ - __IM uint32_t CCSIDR; /*!< Offset: 0x080 (R/ ) Cache Size ID Register */ - __IOM uint32_t CSSELR; /*!< Offset: 0x084 (R/W) Cache Size Selection Register */ - __IOM uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ - __IOM uint32_t NSACR; /*!< Offset: 0x08C (R/W) Non-Secure Access Control Register */ - uint32_t RESERVED3[92U]; - __OM uint32_t STIR; /*!< Offset: 0x200 ( /W) Software Triggered Interrupt Register */ - uint32_t RESERVED4[15U]; - __IM uint32_t MVFR0; /*!< Offset: 0x240 (R/ ) Media and VFP Feature Register 0 */ - __IM uint32_t MVFR1; /*!< Offset: 0x244 (R/ ) Media and VFP Feature Register 1 */ - __IM uint32_t MVFR2; /*!< Offset: 0x248 (R/ ) Media and VFP Feature Register 2 */ - uint32_t RESERVED5[1U]; - __OM uint32_t ICIALLU; /*!< Offset: 0x250 ( /W) I-Cache Invalidate All to PoU */ - uint32_t RESERVED6[1U]; - __OM uint32_t ICIMVAU; /*!< Offset: 0x258 ( /W) I-Cache Invalidate by MVA to PoU */ - __OM uint32_t DCIMVAC; /*!< Offset: 0x25C ( /W) D-Cache Invalidate by MVA to PoC */ - __OM uint32_t DCISW; /*!< Offset: 0x260 ( /W) D-Cache Invalidate by Set-way */ - __OM uint32_t DCCMVAU; /*!< Offset: 0x264 ( /W) D-Cache Clean by MVA to PoU */ - __OM uint32_t DCCMVAC; /*!< Offset: 0x268 ( /W) D-Cache Clean by MVA to PoC */ - __OM uint32_t DCCSW; /*!< Offset: 0x26C ( /W) D-Cache Clean by Set-way */ - __OM uint32_t DCCIMVAC; /*!< Offset: 0x270 ( /W) D-Cache Clean and Invalidate by MVA to PoC */ - __OM uint32_t DCCISW; /*!< Offset: 0x274 ( /W) D-Cache Clean and Invalidate by Set-way */ -} SCB_Type; - -/* SCB CPUID Register Definitions */ -#define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ -#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ - -#define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ -#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ - -#define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ -#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ - -#define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ -#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ - -#define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ -#define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ - -/* SCB Interrupt Control State Register Definitions */ -#define SCB_ICSR_PENDNMISET_Pos 31U /*!< SCB ICSR: PENDNMISET Position */ -#define SCB_ICSR_PENDNMISET_Msk (1UL << SCB_ICSR_PENDNMISET_Pos) /*!< SCB ICSR: PENDNMISET Mask */ - -#define SCB_ICSR_NMIPENDSET_Pos SCB_ICSR_PENDNMISET_Pos /*!< SCB ICSR: NMIPENDSET Position, backward compatibility */ -#define SCB_ICSR_NMIPENDSET_Msk SCB_ICSR_PENDNMISET_Msk /*!< SCB ICSR: NMIPENDSET Mask, backward compatibility */ - -#define SCB_ICSR_PENDNMICLR_Pos 30U /*!< SCB ICSR: PENDNMICLR Position */ -#define SCB_ICSR_PENDNMICLR_Msk (1UL << SCB_ICSR_PENDNMICLR_Pos) /*!< SCB ICSR: PENDNMICLR Mask */ - -#define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ -#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ - -#define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ -#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ - -#define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ -#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ - -#define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ -#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ - -#define SCB_ICSR_STTNS_Pos 24U /*!< SCB ICSR: STTNS Position (Security Extension) */ -#define SCB_ICSR_STTNS_Msk (1UL << SCB_ICSR_STTNS_Pos) /*!< SCB ICSR: STTNS Mask (Security Extension) */ - -#define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ -#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ - -#define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ -#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ - -#define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ -#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ - -#define SCB_ICSR_RETTOBASE_Pos 11U /*!< SCB ICSR: RETTOBASE Position */ -#define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ - -#define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ -#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ - -/* SCB Vector Table Offset Register Definitions */ -#define SCB_VTOR_TBLOFF_Pos 7U /*!< SCB VTOR: TBLOFF Position */ -#define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ - -/* SCB Application Interrupt and Reset Control Register Definitions */ -#define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ -#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ - -#define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ -#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ - -#define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ -#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ - -#define SCB_AIRCR_PRIS_Pos 14U /*!< SCB AIRCR: PRIS Position */ -#define SCB_AIRCR_PRIS_Msk (1UL << SCB_AIRCR_PRIS_Pos) /*!< SCB AIRCR: PRIS Mask */ - -#define SCB_AIRCR_BFHFNMINS_Pos 13U /*!< SCB AIRCR: BFHFNMINS Position */ -#define SCB_AIRCR_BFHFNMINS_Msk (1UL << SCB_AIRCR_BFHFNMINS_Pos) /*!< SCB AIRCR: BFHFNMINS Mask */ - -#define SCB_AIRCR_PRIGROUP_Pos 8U /*!< SCB AIRCR: PRIGROUP Position */ -#define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ - -#define SCB_AIRCR_SYSRESETREQS_Pos 3U /*!< SCB AIRCR: SYSRESETREQS Position */ -#define SCB_AIRCR_SYSRESETREQS_Msk (1UL << SCB_AIRCR_SYSRESETREQS_Pos) /*!< SCB AIRCR: SYSRESETREQS Mask */ - -#define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ -#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ - -#define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ -#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ - -/* SCB System Control Register Definitions */ -#define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ -#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ - -#define SCB_SCR_SLEEPDEEPS_Pos 3U /*!< SCB SCR: SLEEPDEEPS Position */ -#define SCB_SCR_SLEEPDEEPS_Msk (1UL << SCB_SCR_SLEEPDEEPS_Pos) /*!< SCB SCR: SLEEPDEEPS Mask */ - -#define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ -#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ - -#define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ -#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ - -/* SCB Configuration Control Register Definitions */ -#define SCB_CCR_BP_Pos 18U /*!< SCB CCR: BP Position */ -#define SCB_CCR_BP_Msk (1UL << SCB_CCR_BP_Pos) /*!< SCB CCR: BP Mask */ - -#define SCB_CCR_IC_Pos 17U /*!< SCB CCR: IC Position */ -#define SCB_CCR_IC_Msk (1UL << SCB_CCR_IC_Pos) /*!< SCB CCR: IC Mask */ - -#define SCB_CCR_DC_Pos 16U /*!< SCB CCR: DC Position */ -#define SCB_CCR_DC_Msk (1UL << SCB_CCR_DC_Pos) /*!< SCB CCR: DC Mask */ - -#define SCB_CCR_STKOFHFNMIGN_Pos 10U /*!< SCB CCR: STKOFHFNMIGN Position */ -#define SCB_CCR_STKOFHFNMIGN_Msk (1UL << SCB_CCR_STKOFHFNMIGN_Pos) /*!< SCB CCR: STKOFHFNMIGN Mask */ - -#define SCB_CCR_BFHFNMIGN_Pos 8U /*!< SCB CCR: BFHFNMIGN Position */ -#define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ - -#define SCB_CCR_DIV_0_TRP_Pos 4U /*!< SCB CCR: DIV_0_TRP Position */ -#define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ - -#define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ -#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ - -#define SCB_CCR_USERSETMPEND_Pos 1U /*!< SCB CCR: USERSETMPEND Position */ -#define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ - -/* SCB System Handler Control and State Register Definitions */ -#define SCB_SHCSR_HARDFAULTPENDED_Pos 21U /*!< SCB SHCSR: HARDFAULTPENDED Position */ -#define SCB_SHCSR_HARDFAULTPENDED_Msk (1UL << SCB_SHCSR_HARDFAULTPENDED_Pos) /*!< SCB SHCSR: HARDFAULTPENDED Mask */ - -#define SCB_SHCSR_SECUREFAULTPENDED_Pos 20U /*!< SCB SHCSR: SECUREFAULTPENDED Position */ -#define SCB_SHCSR_SECUREFAULTPENDED_Msk (1UL << SCB_SHCSR_SECUREFAULTPENDED_Pos) /*!< SCB SHCSR: SECUREFAULTPENDED Mask */ - -#define SCB_SHCSR_SECUREFAULTENA_Pos 19U /*!< SCB SHCSR: SECUREFAULTENA Position */ -#define SCB_SHCSR_SECUREFAULTENA_Msk (1UL << SCB_SHCSR_SECUREFAULTENA_Pos) /*!< SCB SHCSR: SECUREFAULTENA Mask */ - -#define SCB_SHCSR_USGFAULTENA_Pos 18U /*!< SCB SHCSR: USGFAULTENA Position */ -#define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ - -#define SCB_SHCSR_BUSFAULTENA_Pos 17U /*!< SCB SHCSR: BUSFAULTENA Position */ -#define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ - -#define SCB_SHCSR_MEMFAULTENA_Pos 16U /*!< SCB SHCSR: MEMFAULTENA Position */ -#define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ - -#define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ -#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ - -#define SCB_SHCSR_BUSFAULTPENDED_Pos 14U /*!< SCB SHCSR: BUSFAULTPENDED Position */ -#define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ - -#define SCB_SHCSR_MEMFAULTPENDED_Pos 13U /*!< SCB SHCSR: MEMFAULTPENDED Position */ -#define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ - -#define SCB_SHCSR_USGFAULTPENDED_Pos 12U /*!< SCB SHCSR: USGFAULTPENDED Position */ -#define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ - -#define SCB_SHCSR_SYSTICKACT_Pos 11U /*!< SCB SHCSR: SYSTICKACT Position */ -#define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ - -#define SCB_SHCSR_PENDSVACT_Pos 10U /*!< SCB SHCSR: PENDSVACT Position */ -#define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ - -#define SCB_SHCSR_MONITORACT_Pos 8U /*!< SCB SHCSR: MONITORACT Position */ -#define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ - -#define SCB_SHCSR_SVCALLACT_Pos 7U /*!< SCB SHCSR: SVCALLACT Position */ -#define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ - -#define SCB_SHCSR_NMIACT_Pos 5U /*!< SCB SHCSR: NMIACT Position */ -#define SCB_SHCSR_NMIACT_Msk (1UL << SCB_SHCSR_NMIACT_Pos) /*!< SCB SHCSR: NMIACT Mask */ - -#define SCB_SHCSR_SECUREFAULTACT_Pos 4U /*!< SCB SHCSR: SECUREFAULTACT Position */ -#define SCB_SHCSR_SECUREFAULTACT_Msk (1UL << SCB_SHCSR_SECUREFAULTACT_Pos) /*!< SCB SHCSR: SECUREFAULTACT Mask */ - -#define SCB_SHCSR_USGFAULTACT_Pos 3U /*!< SCB SHCSR: USGFAULTACT Position */ -#define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ - -#define SCB_SHCSR_HARDFAULTACT_Pos 2U /*!< SCB SHCSR: HARDFAULTACT Position */ -#define SCB_SHCSR_HARDFAULTACT_Msk (1UL << SCB_SHCSR_HARDFAULTACT_Pos) /*!< SCB SHCSR: HARDFAULTACT Mask */ - -#define SCB_SHCSR_BUSFAULTACT_Pos 1U /*!< SCB SHCSR: BUSFAULTACT Position */ -#define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ - -#define SCB_SHCSR_MEMFAULTACT_Pos 0U /*!< SCB SHCSR: MEMFAULTACT Position */ -#define SCB_SHCSR_MEMFAULTACT_Msk (1UL /*<< SCB_SHCSR_MEMFAULTACT_Pos*/) /*!< SCB SHCSR: MEMFAULTACT Mask */ - -/* SCB Configurable Fault Status Register Definitions */ -#define SCB_CFSR_USGFAULTSR_Pos 16U /*!< SCB CFSR: Usage Fault Status Register Position */ -#define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ - -#define SCB_CFSR_BUSFAULTSR_Pos 8U /*!< SCB CFSR: Bus Fault Status Register Position */ -#define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ - -#define SCB_CFSR_MEMFAULTSR_Pos 0U /*!< SCB CFSR: Memory Manage Fault Status Register Position */ -#define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL /*<< SCB_CFSR_MEMFAULTSR_Pos*/) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ - -/* MemManage Fault Status Register (part of SCB Configurable Fault Status Register) */ -#define SCB_CFSR_MMARVALID_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 7U) /*!< SCB CFSR (MMFSR): MMARVALID Position */ -#define SCB_CFSR_MMARVALID_Msk (1UL << SCB_CFSR_MMARVALID_Pos) /*!< SCB CFSR (MMFSR): MMARVALID Mask */ - -#define SCB_CFSR_MLSPERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 5U) /*!< SCB CFSR (MMFSR): MLSPERR Position */ -#define SCB_CFSR_MLSPERR_Msk (1UL << SCB_CFSR_MLSPERR_Pos) /*!< SCB CFSR (MMFSR): MLSPERR Mask */ - -#define SCB_CFSR_MSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 4U) /*!< SCB CFSR (MMFSR): MSTKERR Position */ -#define SCB_CFSR_MSTKERR_Msk (1UL << SCB_CFSR_MSTKERR_Pos) /*!< SCB CFSR (MMFSR): MSTKERR Mask */ - -#define SCB_CFSR_MUNSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 3U) /*!< SCB CFSR (MMFSR): MUNSTKERR Position */ -#define SCB_CFSR_MUNSTKERR_Msk (1UL << SCB_CFSR_MUNSTKERR_Pos) /*!< SCB CFSR (MMFSR): MUNSTKERR Mask */ - -#define SCB_CFSR_DACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 1U) /*!< SCB CFSR (MMFSR): DACCVIOL Position */ -#define SCB_CFSR_DACCVIOL_Msk (1UL << SCB_CFSR_DACCVIOL_Pos) /*!< SCB CFSR (MMFSR): DACCVIOL Mask */ - -#define SCB_CFSR_IACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 0U) /*!< SCB CFSR (MMFSR): IACCVIOL Position */ -#define SCB_CFSR_IACCVIOL_Msk (1UL /*<< SCB_CFSR_IACCVIOL_Pos*/) /*!< SCB CFSR (MMFSR): IACCVIOL Mask */ - -/* BusFault Status Register (part of SCB Configurable Fault Status Register) */ -#define SCB_CFSR_BFARVALID_Pos (SCB_CFSR_BUSFAULTSR_Pos + 7U) /*!< SCB CFSR (BFSR): BFARVALID Position */ -#define SCB_CFSR_BFARVALID_Msk (1UL << SCB_CFSR_BFARVALID_Pos) /*!< SCB CFSR (BFSR): BFARVALID Mask */ - -#define SCB_CFSR_LSPERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 5U) /*!< SCB CFSR (BFSR): LSPERR Position */ -#define SCB_CFSR_LSPERR_Msk (1UL << SCB_CFSR_LSPERR_Pos) /*!< SCB CFSR (BFSR): LSPERR Mask */ - -#define SCB_CFSR_STKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 4U) /*!< SCB CFSR (BFSR): STKERR Position */ -#define SCB_CFSR_STKERR_Msk (1UL << SCB_CFSR_STKERR_Pos) /*!< SCB CFSR (BFSR): STKERR Mask */ - -#define SCB_CFSR_UNSTKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 3U) /*!< SCB CFSR (BFSR): UNSTKERR Position */ -#define SCB_CFSR_UNSTKERR_Msk (1UL << SCB_CFSR_UNSTKERR_Pos) /*!< SCB CFSR (BFSR): UNSTKERR Mask */ - -#define SCB_CFSR_IMPRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 2U) /*!< SCB CFSR (BFSR): IMPRECISERR Position */ -#define SCB_CFSR_IMPRECISERR_Msk (1UL << SCB_CFSR_IMPRECISERR_Pos) /*!< SCB CFSR (BFSR): IMPRECISERR Mask */ - -#define SCB_CFSR_PRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 1U) /*!< SCB CFSR (BFSR): PRECISERR Position */ -#define SCB_CFSR_PRECISERR_Msk (1UL << SCB_CFSR_PRECISERR_Pos) /*!< SCB CFSR (BFSR): PRECISERR Mask */ - -#define SCB_CFSR_IBUSERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 0U) /*!< SCB CFSR (BFSR): IBUSERR Position */ -#define SCB_CFSR_IBUSERR_Msk (1UL << SCB_CFSR_IBUSERR_Pos) /*!< SCB CFSR (BFSR): IBUSERR Mask */ - -/* UsageFault Status Register (part of SCB Configurable Fault Status Register) */ -#define SCB_CFSR_DIVBYZERO_Pos (SCB_CFSR_USGFAULTSR_Pos + 9U) /*!< SCB CFSR (UFSR): DIVBYZERO Position */ -#define SCB_CFSR_DIVBYZERO_Msk (1UL << SCB_CFSR_DIVBYZERO_Pos) /*!< SCB CFSR (UFSR): DIVBYZERO Mask */ - -#define SCB_CFSR_UNALIGNED_Pos (SCB_CFSR_USGFAULTSR_Pos + 8U) /*!< SCB CFSR (UFSR): UNALIGNED Position */ -#define SCB_CFSR_UNALIGNED_Msk (1UL << SCB_CFSR_UNALIGNED_Pos) /*!< SCB CFSR (UFSR): UNALIGNED Mask */ - -#define SCB_CFSR_STKOF_Pos (SCB_CFSR_USGFAULTSR_Pos + 4U) /*!< SCB CFSR (UFSR): STKOF Position */ -#define SCB_CFSR_STKOF_Msk (1UL << SCB_CFSR_STKOF_Pos) /*!< SCB CFSR (UFSR): STKOF Mask */ - -#define SCB_CFSR_NOCP_Pos (SCB_CFSR_USGFAULTSR_Pos + 3U) /*!< SCB CFSR (UFSR): NOCP Position */ -#define SCB_CFSR_NOCP_Msk (1UL << SCB_CFSR_NOCP_Pos) /*!< SCB CFSR (UFSR): NOCP Mask */ - -#define SCB_CFSR_INVPC_Pos (SCB_CFSR_USGFAULTSR_Pos + 2U) /*!< SCB CFSR (UFSR): INVPC Position */ -#define SCB_CFSR_INVPC_Msk (1UL << SCB_CFSR_INVPC_Pos) /*!< SCB CFSR (UFSR): INVPC Mask */ - -#define SCB_CFSR_INVSTATE_Pos (SCB_CFSR_USGFAULTSR_Pos + 1U) /*!< SCB CFSR (UFSR): INVSTATE Position */ -#define SCB_CFSR_INVSTATE_Msk (1UL << SCB_CFSR_INVSTATE_Pos) /*!< SCB CFSR (UFSR): INVSTATE Mask */ - -#define SCB_CFSR_UNDEFINSTR_Pos (SCB_CFSR_USGFAULTSR_Pos + 0U) /*!< SCB CFSR (UFSR): UNDEFINSTR Position */ -#define SCB_CFSR_UNDEFINSTR_Msk (1UL << SCB_CFSR_UNDEFINSTR_Pos) /*!< SCB CFSR (UFSR): UNDEFINSTR Mask */ - -/* SCB Hard Fault Status Register Definitions */ -#define SCB_HFSR_DEBUGEVT_Pos 31U /*!< SCB HFSR: DEBUGEVT Position */ -#define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ - -#define SCB_HFSR_FORCED_Pos 30U /*!< SCB HFSR: FORCED Position */ -#define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ - -#define SCB_HFSR_VECTTBL_Pos 1U /*!< SCB HFSR: VECTTBL Position */ -#define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ - -/* SCB Debug Fault Status Register Definitions */ -#define SCB_DFSR_EXTERNAL_Pos 4U /*!< SCB DFSR: EXTERNAL Position */ -#define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ - -#define SCB_DFSR_VCATCH_Pos 3U /*!< SCB DFSR: VCATCH Position */ -#define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ - -#define SCB_DFSR_DWTTRAP_Pos 2U /*!< SCB DFSR: DWTTRAP Position */ -#define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ - -#define SCB_DFSR_BKPT_Pos 1U /*!< SCB DFSR: BKPT Position */ -#define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ - -#define SCB_DFSR_HALTED_Pos 0U /*!< SCB DFSR: HALTED Position */ -#define SCB_DFSR_HALTED_Msk (1UL /*<< SCB_DFSR_HALTED_Pos*/) /*!< SCB DFSR: HALTED Mask */ - -/* SCB Non-Secure Access Control Register Definitions */ -#define SCB_NSACR_CP11_Pos 11U /*!< SCB NSACR: CP11 Position */ -#define SCB_NSACR_CP11_Msk (1UL << SCB_NSACR_CP11_Pos) /*!< SCB NSACR: CP11 Mask */ - -#define SCB_NSACR_CP10_Pos 10U /*!< SCB NSACR: CP10 Position */ -#define SCB_NSACR_CP10_Msk (1UL << SCB_NSACR_CP10_Pos) /*!< SCB NSACR: CP10 Mask */ - -#define SCB_NSACR_CPn_Pos 0U /*!< SCB NSACR: CPn Position */ -#define SCB_NSACR_CPn_Msk (1UL /*<< SCB_NSACR_CPn_Pos*/) /*!< SCB NSACR: CPn Mask */ - -/* SCB Cache Level ID Register Definitions */ -#define SCB_CLIDR_LOUU_Pos 27U /*!< SCB CLIDR: LoUU Position */ -#define SCB_CLIDR_LOUU_Msk (7UL << SCB_CLIDR_LOUU_Pos) /*!< SCB CLIDR: LoUU Mask */ - -#define SCB_CLIDR_LOC_Pos 24U /*!< SCB CLIDR: LoC Position */ -#define SCB_CLIDR_LOC_Msk (7UL << SCB_CLIDR_LOC_Pos) /*!< SCB CLIDR: LoC Mask */ - -/* SCB Cache Type Register Definitions */ -#define SCB_CTR_FORMAT_Pos 29U /*!< SCB CTR: Format Position */ -#define SCB_CTR_FORMAT_Msk (7UL << SCB_CTR_FORMAT_Pos) /*!< SCB CTR: Format Mask */ - -#define SCB_CTR_CWG_Pos 24U /*!< SCB CTR: CWG Position */ -#define SCB_CTR_CWG_Msk (0xFUL << SCB_CTR_CWG_Pos) /*!< SCB CTR: CWG Mask */ - -#define SCB_CTR_ERG_Pos 20U /*!< SCB CTR: ERG Position */ -#define SCB_CTR_ERG_Msk (0xFUL << SCB_CTR_ERG_Pos) /*!< SCB CTR: ERG Mask */ - -#define SCB_CTR_DMINLINE_Pos 16U /*!< SCB CTR: DminLine Position */ -#define SCB_CTR_DMINLINE_Msk (0xFUL << SCB_CTR_DMINLINE_Pos) /*!< SCB CTR: DminLine Mask */ - -#define SCB_CTR_IMINLINE_Pos 0U /*!< SCB CTR: ImInLine Position */ -#define SCB_CTR_IMINLINE_Msk (0xFUL /*<< SCB_CTR_IMINLINE_Pos*/) /*!< SCB CTR: ImInLine Mask */ - -/* SCB Cache Size ID Register Definitions */ -#define SCB_CCSIDR_WT_Pos 31U /*!< SCB CCSIDR: WT Position */ -#define SCB_CCSIDR_WT_Msk (1UL << SCB_CCSIDR_WT_Pos) /*!< SCB CCSIDR: WT Mask */ - -#define SCB_CCSIDR_WB_Pos 30U /*!< SCB CCSIDR: WB Position */ -#define SCB_CCSIDR_WB_Msk (1UL << SCB_CCSIDR_WB_Pos) /*!< SCB CCSIDR: WB Mask */ - -#define SCB_CCSIDR_RA_Pos 29U /*!< SCB CCSIDR: RA Position */ -#define SCB_CCSIDR_RA_Msk (1UL << SCB_CCSIDR_RA_Pos) /*!< SCB CCSIDR: RA Mask */ - -#define SCB_CCSIDR_WA_Pos 28U /*!< SCB CCSIDR: WA Position */ -#define SCB_CCSIDR_WA_Msk (1UL << SCB_CCSIDR_WA_Pos) /*!< SCB CCSIDR: WA Mask */ - -#define SCB_CCSIDR_NUMSETS_Pos 13U /*!< SCB CCSIDR: NumSets Position */ -#define SCB_CCSIDR_NUMSETS_Msk (0x7FFFUL << SCB_CCSIDR_NUMSETS_Pos) /*!< SCB CCSIDR: NumSets Mask */ - -#define SCB_CCSIDR_ASSOCIATIVITY_Pos 3U /*!< SCB CCSIDR: Associativity Position */ -#define SCB_CCSIDR_ASSOCIATIVITY_Msk (0x3FFUL << SCB_CCSIDR_ASSOCIATIVITY_Pos) /*!< SCB CCSIDR: Associativity Mask */ - -#define SCB_CCSIDR_LINESIZE_Pos 0U /*!< SCB CCSIDR: LineSize Position */ -#define SCB_CCSIDR_LINESIZE_Msk (7UL /*<< SCB_CCSIDR_LINESIZE_Pos*/) /*!< SCB CCSIDR: LineSize Mask */ - -/* SCB Cache Size Selection Register Definitions */ -#define SCB_CSSELR_LEVEL_Pos 1U /*!< SCB CSSELR: Level Position */ -#define SCB_CSSELR_LEVEL_Msk (7UL << SCB_CSSELR_LEVEL_Pos) /*!< SCB CSSELR: Level Mask */ - -#define SCB_CSSELR_IND_Pos 0U /*!< SCB CSSELR: InD Position */ -#define SCB_CSSELR_IND_Msk (1UL /*<< SCB_CSSELR_IND_Pos*/) /*!< SCB CSSELR: InD Mask */ - -/* SCB Software Triggered Interrupt Register Definitions */ -#define SCB_STIR_INTID_Pos 0U /*!< SCB STIR: INTID Position */ -#define SCB_STIR_INTID_Msk (0x1FFUL /*<< SCB_STIR_INTID_Pos*/) /*!< SCB STIR: INTID Mask */ - -/* SCB D-Cache Invalidate by Set-way Register Definitions */ -#define SCB_DCISW_WAY_Pos 30U /*!< SCB DCISW: Way Position */ -#define SCB_DCISW_WAY_Msk (3UL << SCB_DCISW_WAY_Pos) /*!< SCB DCISW: Way Mask */ - -#define SCB_DCISW_SET_Pos 5U /*!< SCB DCISW: Set Position */ -#define SCB_DCISW_SET_Msk (0x1FFUL << SCB_DCISW_SET_Pos) /*!< SCB DCISW: Set Mask */ - -/* SCB D-Cache Clean by Set-way Register Definitions */ -#define SCB_DCCSW_WAY_Pos 30U /*!< SCB DCCSW: Way Position */ -#define SCB_DCCSW_WAY_Msk (3UL << SCB_DCCSW_WAY_Pos) /*!< SCB DCCSW: Way Mask */ - -#define SCB_DCCSW_SET_Pos 5U /*!< SCB DCCSW: Set Position */ -#define SCB_DCCSW_SET_Msk (0x1FFUL << SCB_DCCSW_SET_Pos) /*!< SCB DCCSW: Set Mask */ - -/* SCB D-Cache Clean and Invalidate by Set-way Register Definitions */ -#define SCB_DCCISW_WAY_Pos 30U /*!< SCB DCCISW: Way Position */ -#define SCB_DCCISW_WAY_Msk (3UL << SCB_DCCISW_WAY_Pos) /*!< SCB DCCISW: Way Mask */ - -#define SCB_DCCISW_SET_Pos 5U /*!< SCB DCCISW: Set Position */ -#define SCB_DCCISW_SET_Msk (0x1FFUL << SCB_DCCISW_SET_Pos) /*!< SCB DCCISW: Set Mask */ - -/*@} end of group CMSIS_SCB */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) - \brief Type definitions for the System Control and ID Register not in the SCB - @{ - */ - -/** - \brief Structure type to access the System Control and ID Register not in the SCB. - */ -typedef struct -{ - uint32_t RESERVED0[1U]; - __IM uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ - __IOM uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ - __IOM uint32_t CPPWR; /*!< Offset: 0x00C (R/W) Coprocessor Power Control Register */ -} SCnSCB_Type; - -/* Interrupt Controller Type Register Definitions */ -#define SCnSCB_ICTR_INTLINESNUM_Pos 0U /*!< ICTR: INTLINESNUM Position */ -#define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL /*<< SCnSCB_ICTR_INTLINESNUM_Pos*/) /*!< ICTR: INTLINESNUM Mask */ - -/*@} end of group CMSIS_SCnotSCB */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SysTick System Tick Timer (SysTick) - \brief Type definitions for the System Timer Registers. - @{ - */ - -/** - \brief Structure type to access the System Timer (SysTick). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ - __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ - __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ - __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ -} SysTick_Type; - -/* SysTick Control / Status Register Definitions */ -#define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ -#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ - -#define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ -#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ - -#define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ -#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ - -#define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ -#define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ - -/* SysTick Reload Register Definitions */ -#define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ -#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ - -/* SysTick Current Register Definitions */ -#define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ -#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ - -/* SysTick Calibration Register Definitions */ -#define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ -#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ - -#define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ -#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ - -#define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ -#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ - -/*@} end of group CMSIS_SysTick */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_ITM Instrumentation Trace Macrocell (ITM) - \brief Type definitions for the Instrumentation Trace Macrocell (ITM) - @{ - */ - -/** - \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). - */ -typedef struct -{ - __OM union - { - __OM uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ - __OM uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ - __OM uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ - } PORT [32U]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ - uint32_t RESERVED0[864U]; - __IOM uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ - uint32_t RESERVED1[15U]; - __IOM uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ - uint32_t RESERVED2[15U]; - __IOM uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ - uint32_t RESERVED3[32U]; - uint32_t RESERVED4[43U]; - __OM uint32_t LAR; /*!< Offset: 0xFB0 ( /W) ITM Lock Access Register */ - __IM uint32_t LSR; /*!< Offset: 0xFB4 (R/ ) ITM Lock Status Register */ - uint32_t RESERVED5[1U]; - __IM uint32_t DEVARCH; /*!< Offset: 0xFBC (R/ ) ITM Device Architecture Register */ - uint32_t RESERVED6[4U]; - __IM uint32_t PID4; /*!< Offset: 0xFD0 (R/ ) ITM Peripheral Identification Register #4 */ - __IM uint32_t PID5; /*!< Offset: 0xFD4 (R/ ) ITM Peripheral Identification Register #5 */ - __IM uint32_t PID6; /*!< Offset: 0xFD8 (R/ ) ITM Peripheral Identification Register #6 */ - __IM uint32_t PID7; /*!< Offset: 0xFDC (R/ ) ITM Peripheral Identification Register #7 */ - __IM uint32_t PID0; /*!< Offset: 0xFE0 (R/ ) ITM Peripheral Identification Register #0 */ - __IM uint32_t PID1; /*!< Offset: 0xFE4 (R/ ) ITM Peripheral Identification Register #1 */ - __IM uint32_t PID2; /*!< Offset: 0xFE8 (R/ ) ITM Peripheral Identification Register #2 */ - __IM uint32_t PID3; /*!< Offset: 0xFEC (R/ ) ITM Peripheral Identification Register #3 */ - __IM uint32_t CID0; /*!< Offset: 0xFF0 (R/ ) ITM Component Identification Register #0 */ - __IM uint32_t CID1; /*!< Offset: 0xFF4 (R/ ) ITM Component Identification Register #1 */ - __IM uint32_t CID2; /*!< Offset: 0xFF8 (R/ ) ITM Component Identification Register #2 */ - __IM uint32_t CID3; /*!< Offset: 0xFFC (R/ ) ITM Component Identification Register #3 */ -} ITM_Type; - -/* ITM Stimulus Port Register Definitions */ -#define ITM_STIM_DISABLED_Pos 1U /*!< ITM STIM: DISABLED Position */ -#define ITM_STIM_DISABLED_Msk (0x1UL << ITM_STIM_DISABLED_Pos) /*!< ITM STIM: DISABLED Mask */ - -#define ITM_STIM_FIFOREADY_Pos 0U /*!< ITM STIM: FIFOREADY Position */ -#define ITM_STIM_FIFOREADY_Msk (0x1UL /*<< ITM_STIM_FIFOREADY_Pos*/) /*!< ITM STIM: FIFOREADY Mask */ - -/* ITM Trace Privilege Register Definitions */ -#define ITM_TPR_PRIVMASK_Pos 0U /*!< ITM TPR: PRIVMASK Position */ -#define ITM_TPR_PRIVMASK_Msk (0xFUL /*<< ITM_TPR_PRIVMASK_Pos*/) /*!< ITM TPR: PRIVMASK Mask */ - -/* ITM Trace Control Register Definitions */ -#define ITM_TCR_BUSY_Pos 23U /*!< ITM TCR: BUSY Position */ -#define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ - -#define ITM_TCR_TRACEBUSID_Pos 16U /*!< ITM TCR: ATBID Position */ -#define ITM_TCR_TRACEBUSID_Msk (0x7FUL << ITM_TCR_TRACEBUSID_Pos) /*!< ITM TCR: ATBID Mask */ - -#define ITM_TCR_GTSFREQ_Pos 10U /*!< ITM TCR: Global timestamp frequency Position */ -#define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ - -#define ITM_TCR_TSPRESCALE_Pos 8U /*!< ITM TCR: TSPRESCALE Position */ -#define ITM_TCR_TSPRESCALE_Msk (3UL << ITM_TCR_TSPRESCALE_Pos) /*!< ITM TCR: TSPRESCALE Mask */ - -#define ITM_TCR_STALLENA_Pos 5U /*!< ITM TCR: STALLENA Position */ -#define ITM_TCR_STALLENA_Msk (1UL << ITM_TCR_STALLENA_Pos) /*!< ITM TCR: STALLENA Mask */ - -#define ITM_TCR_SWOENA_Pos 4U /*!< ITM TCR: SWOENA Position */ -#define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ - -#define ITM_TCR_DWTENA_Pos 3U /*!< ITM TCR: DWTENA Position */ -#define ITM_TCR_DWTENA_Msk (1UL << ITM_TCR_DWTENA_Pos) /*!< ITM TCR: DWTENA Mask */ - -#define ITM_TCR_SYNCENA_Pos 2U /*!< ITM TCR: SYNCENA Position */ -#define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ - -#define ITM_TCR_TSENA_Pos 1U /*!< ITM TCR: TSENA Position */ -#define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ - -#define ITM_TCR_ITMENA_Pos 0U /*!< ITM TCR: ITM Enable bit Position */ -#define ITM_TCR_ITMENA_Msk (1UL /*<< ITM_TCR_ITMENA_Pos*/) /*!< ITM TCR: ITM Enable bit Mask */ - -/* ITM Lock Status Register Definitions */ -#define ITM_LSR_ByteAcc_Pos 2U /*!< ITM LSR: ByteAcc Position */ -#define ITM_LSR_ByteAcc_Msk (1UL << ITM_LSR_ByteAcc_Pos) /*!< ITM LSR: ByteAcc Mask */ - -#define ITM_LSR_Access_Pos 1U /*!< ITM LSR: Access Position */ -#define ITM_LSR_Access_Msk (1UL << ITM_LSR_Access_Pos) /*!< ITM LSR: Access Mask */ - -#define ITM_LSR_Present_Pos 0U /*!< ITM LSR: Present Position */ -#define ITM_LSR_Present_Msk (1UL /*<< ITM_LSR_Present_Pos*/) /*!< ITM LSR: Present Mask */ - -/*@}*/ /* end of group CMSIS_ITM */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) - \brief Type definitions for the Data Watchpoint and Trace (DWT) - @{ - */ - -/** - \brief Structure type to access the Data Watchpoint and Trace Register (DWT). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ - __IOM uint32_t CYCCNT; /*!< Offset: 0x004 (R/W) Cycle Count Register */ - __IOM uint32_t CPICNT; /*!< Offset: 0x008 (R/W) CPI Count Register */ - __IOM uint32_t EXCCNT; /*!< Offset: 0x00C (R/W) Exception Overhead Count Register */ - __IOM uint32_t SLEEPCNT; /*!< Offset: 0x010 (R/W) Sleep Count Register */ - __IOM uint32_t LSUCNT; /*!< Offset: 0x014 (R/W) LSU Count Register */ - __IOM uint32_t FOLDCNT; /*!< Offset: 0x018 (R/W) Folded-instruction Count Register */ - __IM uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ - __IOM uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ - uint32_t RESERVED1[1U]; - __IOM uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ - uint32_t RESERVED2[1U]; - __IOM uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ - uint32_t RESERVED3[1U]; - __IOM uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ - uint32_t RESERVED4[1U]; - __IOM uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ - uint32_t RESERVED5[1U]; - __IOM uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ - uint32_t RESERVED6[1U]; - __IOM uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ - uint32_t RESERVED7[1U]; - __IOM uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ - uint32_t RESERVED8[1U]; - __IOM uint32_t COMP4; /*!< Offset: 0x060 (R/W) Comparator Register 4 */ - uint32_t RESERVED9[1U]; - __IOM uint32_t FUNCTION4; /*!< Offset: 0x068 (R/W) Function Register 4 */ - uint32_t RESERVED10[1U]; - __IOM uint32_t COMP5; /*!< Offset: 0x070 (R/W) Comparator Register 5 */ - uint32_t RESERVED11[1U]; - __IOM uint32_t FUNCTION5; /*!< Offset: 0x078 (R/W) Function Register 5 */ - uint32_t RESERVED12[1U]; - __IOM uint32_t COMP6; /*!< Offset: 0x080 (R/W) Comparator Register 6 */ - uint32_t RESERVED13[1U]; - __IOM uint32_t FUNCTION6; /*!< Offset: 0x088 (R/W) Function Register 6 */ - uint32_t RESERVED14[1U]; - __IOM uint32_t COMP7; /*!< Offset: 0x090 (R/W) Comparator Register 7 */ - uint32_t RESERVED15[1U]; - __IOM uint32_t FUNCTION7; /*!< Offset: 0x098 (R/W) Function Register 7 */ - uint32_t RESERVED16[1U]; - __IOM uint32_t COMP8; /*!< Offset: 0x0A0 (R/W) Comparator Register 8 */ - uint32_t RESERVED17[1U]; - __IOM uint32_t FUNCTION8; /*!< Offset: 0x0A8 (R/W) Function Register 8 */ - uint32_t RESERVED18[1U]; - __IOM uint32_t COMP9; /*!< Offset: 0x0B0 (R/W) Comparator Register 9 */ - uint32_t RESERVED19[1U]; - __IOM uint32_t FUNCTION9; /*!< Offset: 0x0B8 (R/W) Function Register 9 */ - uint32_t RESERVED20[1U]; - __IOM uint32_t COMP10; /*!< Offset: 0x0C0 (R/W) Comparator Register 10 */ - uint32_t RESERVED21[1U]; - __IOM uint32_t FUNCTION10; /*!< Offset: 0x0C8 (R/W) Function Register 10 */ - uint32_t RESERVED22[1U]; - __IOM uint32_t COMP11; /*!< Offset: 0x0D0 (R/W) Comparator Register 11 */ - uint32_t RESERVED23[1U]; - __IOM uint32_t FUNCTION11; /*!< Offset: 0x0D8 (R/W) Function Register 11 */ - uint32_t RESERVED24[1U]; - __IOM uint32_t COMP12; /*!< Offset: 0x0E0 (R/W) Comparator Register 12 */ - uint32_t RESERVED25[1U]; - __IOM uint32_t FUNCTION12; /*!< Offset: 0x0E8 (R/W) Function Register 12 */ - uint32_t RESERVED26[1U]; - __IOM uint32_t COMP13; /*!< Offset: 0x0F0 (R/W) Comparator Register 13 */ - uint32_t RESERVED27[1U]; - __IOM uint32_t FUNCTION13; /*!< Offset: 0x0F8 (R/W) Function Register 13 */ - uint32_t RESERVED28[1U]; - __IOM uint32_t COMP14; /*!< Offset: 0x100 (R/W) Comparator Register 14 */ - uint32_t RESERVED29[1U]; - __IOM uint32_t FUNCTION14; /*!< Offset: 0x108 (R/W) Function Register 14 */ - uint32_t RESERVED30[1U]; - __IOM uint32_t COMP15; /*!< Offset: 0x110 (R/W) Comparator Register 15 */ - uint32_t RESERVED31[1U]; - __IOM uint32_t FUNCTION15; /*!< Offset: 0x118 (R/W) Function Register 15 */ - uint32_t RESERVED32[934U]; - __IM uint32_t LSR; /*!< Offset: 0xFB4 (R ) Lock Status Register */ - uint32_t RESERVED33[1U]; - __IM uint32_t DEVARCH; /*!< Offset: 0xFBC (R/ ) Device Architecture Register */ -} DWT_Type; - -/* DWT Control Register Definitions */ -#define DWT_CTRL_NUMCOMP_Pos 28U /*!< DWT CTRL: NUMCOMP Position */ -#define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ - -#define DWT_CTRL_NOTRCPKT_Pos 27U /*!< DWT CTRL: NOTRCPKT Position */ -#define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ - -#define DWT_CTRL_NOEXTTRIG_Pos 26U /*!< DWT CTRL: NOEXTTRIG Position */ -#define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ - -#define DWT_CTRL_NOCYCCNT_Pos 25U /*!< DWT CTRL: NOCYCCNT Position */ -#define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ - -#define DWT_CTRL_NOPRFCNT_Pos 24U /*!< DWT CTRL: NOPRFCNT Position */ -#define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ - -#define DWT_CTRL_CYCDISS_Pos 23U /*!< DWT CTRL: CYCDISS Position */ -#define DWT_CTRL_CYCDISS_Msk (0x1UL << DWT_CTRL_CYCDISS_Pos) /*!< DWT CTRL: CYCDISS Mask */ - -#define DWT_CTRL_CYCEVTENA_Pos 22U /*!< DWT CTRL: CYCEVTENA Position */ -#define DWT_CTRL_CYCEVTENA_Msk (0x1UL << DWT_CTRL_CYCEVTENA_Pos) /*!< DWT CTRL: CYCEVTENA Mask */ - -#define DWT_CTRL_FOLDEVTENA_Pos 21U /*!< DWT CTRL: FOLDEVTENA Position */ -#define DWT_CTRL_FOLDEVTENA_Msk (0x1UL << DWT_CTRL_FOLDEVTENA_Pos) /*!< DWT CTRL: FOLDEVTENA Mask */ - -#define DWT_CTRL_LSUEVTENA_Pos 20U /*!< DWT CTRL: LSUEVTENA Position */ -#define DWT_CTRL_LSUEVTENA_Msk (0x1UL << DWT_CTRL_LSUEVTENA_Pos) /*!< DWT CTRL: LSUEVTENA Mask */ - -#define DWT_CTRL_SLEEPEVTENA_Pos 19U /*!< DWT CTRL: SLEEPEVTENA Position */ -#define DWT_CTRL_SLEEPEVTENA_Msk (0x1UL << DWT_CTRL_SLEEPEVTENA_Pos) /*!< DWT CTRL: SLEEPEVTENA Mask */ - -#define DWT_CTRL_EXCEVTENA_Pos 18U /*!< DWT CTRL: EXCEVTENA Position */ -#define DWT_CTRL_EXCEVTENA_Msk (0x1UL << DWT_CTRL_EXCEVTENA_Pos) /*!< DWT CTRL: EXCEVTENA Mask */ - -#define DWT_CTRL_CPIEVTENA_Pos 17U /*!< DWT CTRL: CPIEVTENA Position */ -#define DWT_CTRL_CPIEVTENA_Msk (0x1UL << DWT_CTRL_CPIEVTENA_Pos) /*!< DWT CTRL: CPIEVTENA Mask */ - -#define DWT_CTRL_EXCTRCENA_Pos 16U /*!< DWT CTRL: EXCTRCENA Position */ -#define DWT_CTRL_EXCTRCENA_Msk (0x1UL << DWT_CTRL_EXCTRCENA_Pos) /*!< DWT CTRL: EXCTRCENA Mask */ - -#define DWT_CTRL_PCSAMPLENA_Pos 12U /*!< DWT CTRL: PCSAMPLENA Position */ -#define DWT_CTRL_PCSAMPLENA_Msk (0x1UL << DWT_CTRL_PCSAMPLENA_Pos) /*!< DWT CTRL: PCSAMPLENA Mask */ - -#define DWT_CTRL_SYNCTAP_Pos 10U /*!< DWT CTRL: SYNCTAP Position */ -#define DWT_CTRL_SYNCTAP_Msk (0x3UL << DWT_CTRL_SYNCTAP_Pos) /*!< DWT CTRL: SYNCTAP Mask */ - -#define DWT_CTRL_CYCTAP_Pos 9U /*!< DWT CTRL: CYCTAP Position */ -#define DWT_CTRL_CYCTAP_Msk (0x1UL << DWT_CTRL_CYCTAP_Pos) /*!< DWT CTRL: CYCTAP Mask */ - -#define DWT_CTRL_POSTINIT_Pos 5U /*!< DWT CTRL: POSTINIT Position */ -#define DWT_CTRL_POSTINIT_Msk (0xFUL << DWT_CTRL_POSTINIT_Pos) /*!< DWT CTRL: POSTINIT Mask */ - -#define DWT_CTRL_POSTPRESET_Pos 1U /*!< DWT CTRL: POSTPRESET Position */ -#define DWT_CTRL_POSTPRESET_Msk (0xFUL << DWT_CTRL_POSTPRESET_Pos) /*!< DWT CTRL: POSTPRESET Mask */ - -#define DWT_CTRL_CYCCNTENA_Pos 0U /*!< DWT CTRL: CYCCNTENA Position */ -#define DWT_CTRL_CYCCNTENA_Msk (0x1UL /*<< DWT_CTRL_CYCCNTENA_Pos*/) /*!< DWT CTRL: CYCCNTENA Mask */ - -/* DWT CPI Count Register Definitions */ -#define DWT_CPICNT_CPICNT_Pos 0U /*!< DWT CPICNT: CPICNT Position */ -#define DWT_CPICNT_CPICNT_Msk (0xFFUL /*<< DWT_CPICNT_CPICNT_Pos*/) /*!< DWT CPICNT: CPICNT Mask */ - -/* DWT Exception Overhead Count Register Definitions */ -#define DWT_EXCCNT_EXCCNT_Pos 0U /*!< DWT EXCCNT: EXCCNT Position */ -#define DWT_EXCCNT_EXCCNT_Msk (0xFFUL /*<< DWT_EXCCNT_EXCCNT_Pos*/) /*!< DWT EXCCNT: EXCCNT Mask */ - -/* DWT Sleep Count Register Definitions */ -#define DWT_SLEEPCNT_SLEEPCNT_Pos 0U /*!< DWT SLEEPCNT: SLEEPCNT Position */ -#define DWT_SLEEPCNT_SLEEPCNT_Msk (0xFFUL /*<< DWT_SLEEPCNT_SLEEPCNT_Pos*/) /*!< DWT SLEEPCNT: SLEEPCNT Mask */ - -/* DWT LSU Count Register Definitions */ -#define DWT_LSUCNT_LSUCNT_Pos 0U /*!< DWT LSUCNT: LSUCNT Position */ -#define DWT_LSUCNT_LSUCNT_Msk (0xFFUL /*<< DWT_LSUCNT_LSUCNT_Pos*/) /*!< DWT LSUCNT: LSUCNT Mask */ - -/* DWT Folded-instruction Count Register Definitions */ -#define DWT_FOLDCNT_FOLDCNT_Pos 0U /*!< DWT FOLDCNT: FOLDCNT Position */ -#define DWT_FOLDCNT_FOLDCNT_Msk (0xFFUL /*<< DWT_FOLDCNT_FOLDCNT_Pos*/) /*!< DWT FOLDCNT: FOLDCNT Mask */ - -/* DWT Comparator Function Register Definitions */ -#define DWT_FUNCTION_ID_Pos 27U /*!< DWT FUNCTION: ID Position */ -#define DWT_FUNCTION_ID_Msk (0x1FUL << DWT_FUNCTION_ID_Pos) /*!< DWT FUNCTION: ID Mask */ - -#define DWT_FUNCTION_MATCHED_Pos 24U /*!< DWT FUNCTION: MATCHED Position */ -#define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ - -#define DWT_FUNCTION_DATAVSIZE_Pos 10U /*!< DWT FUNCTION: DATAVSIZE Position */ -#define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ - -#define DWT_FUNCTION_ACTION_Pos 4U /*!< DWT FUNCTION: ACTION Position */ -#define DWT_FUNCTION_ACTION_Msk (0x1UL << DWT_FUNCTION_ACTION_Pos) /*!< DWT FUNCTION: ACTION Mask */ - -#define DWT_FUNCTION_MATCH_Pos 0U /*!< DWT FUNCTION: MATCH Position */ -#define DWT_FUNCTION_MATCH_Msk (0xFUL /*<< DWT_FUNCTION_MATCH_Pos*/) /*!< DWT FUNCTION: MATCH Mask */ - -/*@}*/ /* end of group CMSIS_DWT */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_TPI Trace Port Interface (TPI) - \brief Type definitions for the Trace Port Interface (TPI) - @{ - */ - -/** - \brief Structure type to access the Trace Port Interface Register (TPI). - */ -typedef struct -{ - __IM uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Sizes Register */ - __IOM uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Sizes Register */ - uint32_t RESERVED0[2U]; - __IOM uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ - uint32_t RESERVED1[55U]; - __IOM uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ - uint32_t RESERVED2[131U]; - __IM uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ - __IOM uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ - __IOM uint32_t PSCR; /*!< Offset: 0x308 (R/W) Periodic Synchronization Control Register */ - uint32_t RESERVED3[809U]; - __OM uint32_t LAR; /*!< Offset: 0xFB0 ( /W) Software Lock Access Register */ - __IM uint32_t LSR; /*!< Offset: 0xFB4 (R/ ) Software Lock Status Register */ - uint32_t RESERVED4[4U]; - __IM uint32_t TYPE; /*!< Offset: 0xFC8 (R/ ) Device Identifier Register */ - __IM uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) Device Type Register */ -} TPI_Type; - -/* TPI Asynchronous Clock Prescaler Register Definitions */ -#define TPI_ACPR_SWOSCALER_Pos 0U /*!< TPI ACPR: SWOSCALER Position */ -#define TPI_ACPR_SWOSCALER_Msk (0xFFFFUL /*<< TPI_ACPR_SWOSCALER_Pos*/) /*!< TPI ACPR: SWOSCALER Mask */ - -/* TPI Selected Pin Protocol Register Definitions */ -#define TPI_SPPR_TXMODE_Pos 0U /*!< TPI SPPR: TXMODE Position */ -#define TPI_SPPR_TXMODE_Msk (0x3UL /*<< TPI_SPPR_TXMODE_Pos*/) /*!< TPI SPPR: TXMODE Mask */ - -/* TPI Formatter and Flush Status Register Definitions */ -#define TPI_FFSR_FtNonStop_Pos 3U /*!< TPI FFSR: FtNonStop Position */ -#define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ - -#define TPI_FFSR_TCPresent_Pos 2U /*!< TPI FFSR: TCPresent Position */ -#define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ - -#define TPI_FFSR_FtStopped_Pos 1U /*!< TPI FFSR: FtStopped Position */ -#define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ - -#define TPI_FFSR_FlInProg_Pos 0U /*!< TPI FFSR: FlInProg Position */ -#define TPI_FFSR_FlInProg_Msk (0x1UL /*<< TPI_FFSR_FlInProg_Pos*/) /*!< TPI FFSR: FlInProg Mask */ - -/* TPI Formatter and Flush Control Register Definitions */ -#define TPI_FFCR_TrigIn_Pos 8U /*!< TPI FFCR: TrigIn Position */ -#define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ - -#define TPI_FFCR_FOnMan_Pos 6U /*!< TPI FFCR: FOnMan Position */ -#define TPI_FFCR_FOnMan_Msk (0x1UL << TPI_FFCR_FOnMan_Pos) /*!< TPI FFCR: FOnMan Mask */ - -#define TPI_FFCR_EnFCont_Pos 1U /*!< TPI FFCR: EnFCont Position */ -#define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ - -/* TPI Periodic Synchronization Control Register Definitions */ -#define TPI_PSCR_PSCount_Pos 0U /*!< TPI PSCR: PSCount Position */ -#define TPI_PSCR_PSCount_Msk (0x1FUL /*<< TPI_PSCR_PSCount_Pos*/) /*!< TPI PSCR: TPSCount Mask */ - -/* TPI Software Lock Status Register Definitions */ -#define TPI_LSR_nTT_Pos 1U /*!< TPI LSR: Not thirty-two bit. Position */ -#define TPI_LSR_nTT_Msk (0x1UL << TPI_LSR_nTT_Pos) /*!< TPI LSR: Not thirty-two bit. Mask */ - -#define TPI_LSR_SLK_Pos 1U /*!< TPI LSR: Software Lock status Position */ -#define TPI_LSR_SLK_Msk (0x1UL << TPI_LSR_SLK_Pos) /*!< TPI LSR: Software Lock status Mask */ - -#define TPI_LSR_SLI_Pos 0U /*!< TPI LSR: Software Lock implemented Position */ -#define TPI_LSR_SLI_Msk (0x1UL /*<< TPI_LSR_SLI_Pos*/) /*!< TPI LSR: Software Lock implemented Mask */ - -/* TPI DEVID Register Definitions */ -#define TPI_DEVID_NRZVALID_Pos 11U /*!< TPI DEVID: NRZVALID Position */ -#define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ - -#define TPI_DEVID_MANCVALID_Pos 10U /*!< TPI DEVID: MANCVALID Position */ -#define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ - -#define TPI_DEVID_PTINVALID_Pos 9U /*!< TPI DEVID: PTINVALID Position */ -#define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ - -#define TPI_DEVID_FIFOSZ_Pos 6U /*!< TPI DEVID: FIFO depth Position */ -#define TPI_DEVID_FIFOSZ_Msk (0x7UL << TPI_DEVID_FIFOSZ_Pos) /*!< TPI DEVID: FIFO depth Mask */ - -/* TPI DEVTYPE Register Definitions */ -#define TPI_DEVTYPE_SubType_Pos 4U /*!< TPI DEVTYPE: SubType Position */ -#define TPI_DEVTYPE_SubType_Msk (0xFUL /*<< TPI_DEVTYPE_SubType_Pos*/) /*!< TPI DEVTYPE: SubType Mask */ - -#define TPI_DEVTYPE_MajorType_Pos 0U /*!< TPI DEVTYPE: MajorType Position */ -#define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ - -/*@}*/ /* end of group CMSIS_TPI */ - - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_MPU Memory Protection Unit (MPU) - \brief Type definitions for the Memory Protection Unit (MPU) - @{ - */ - -/** - \brief Structure type to access the Memory Protection Unit (MPU). - */ -typedef struct -{ - __IM uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ - __IOM uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ - __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region Number Register */ - __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ - __IOM uint32_t RLAR; /*!< Offset: 0x010 (R/W) MPU Region Limit Address Register */ - __IOM uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Region Base Address Register Alias 1 */ - __IOM uint32_t RLAR_A1; /*!< Offset: 0x018 (R/W) MPU Region Limit Address Register Alias 1 */ - __IOM uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Region Base Address Register Alias 2 */ - __IOM uint32_t RLAR_A2; /*!< Offset: 0x020 (R/W) MPU Region Limit Address Register Alias 2 */ - __IOM uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Region Base Address Register Alias 3 */ - __IOM uint32_t RLAR_A3; /*!< Offset: 0x028 (R/W) MPU Region Limit Address Register Alias 3 */ - uint32_t RESERVED0[1]; - union { - __IOM uint32_t MAIR[2]; - struct { - __IOM uint32_t MAIR0; /*!< Offset: 0x030 (R/W) MPU Memory Attribute Indirection Register 0 */ - __IOM uint32_t MAIR1; /*!< Offset: 0x034 (R/W) MPU Memory Attribute Indirection Register 1 */ - }; - }; -} MPU_Type; - -#define MPU_TYPE_RALIASES 4U - -/* MPU Type Register Definitions */ -#define MPU_TYPE_IREGION_Pos 16U /*!< MPU TYPE: IREGION Position */ -#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ - -#define MPU_TYPE_DREGION_Pos 8U /*!< MPU TYPE: DREGION Position */ -#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ - -#define MPU_TYPE_SEPARATE_Pos 0U /*!< MPU TYPE: SEPARATE Position */ -#define MPU_TYPE_SEPARATE_Msk (1UL /*<< MPU_TYPE_SEPARATE_Pos*/) /*!< MPU TYPE: SEPARATE Mask */ - -/* MPU Control Register Definitions */ -#define MPU_CTRL_PRIVDEFENA_Pos 2U /*!< MPU CTRL: PRIVDEFENA Position */ -#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ - -#define MPU_CTRL_HFNMIENA_Pos 1U /*!< MPU CTRL: HFNMIENA Position */ -#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ - -#define MPU_CTRL_ENABLE_Pos 0U /*!< MPU CTRL: ENABLE Position */ -#define MPU_CTRL_ENABLE_Msk (1UL /*<< MPU_CTRL_ENABLE_Pos*/) /*!< MPU CTRL: ENABLE Mask */ - -/* MPU Region Number Register Definitions */ -#define MPU_RNR_REGION_Pos 0U /*!< MPU RNR: REGION Position */ -#define MPU_RNR_REGION_Msk (0xFFUL /*<< MPU_RNR_REGION_Pos*/) /*!< MPU RNR: REGION Mask */ - -/* MPU Region Base Address Register Definitions */ -#define MPU_RBAR_BASE_Pos 5U /*!< MPU RBAR: BASE Position */ -#define MPU_RBAR_BASE_Msk (0x7FFFFFFUL << MPU_RBAR_BASE_Pos) /*!< MPU RBAR: BASE Mask */ - -#define MPU_RBAR_SH_Pos 3U /*!< MPU RBAR: SH Position */ -#define MPU_RBAR_SH_Msk (0x3UL << MPU_RBAR_SH_Pos) /*!< MPU RBAR: SH Mask */ - -#define MPU_RBAR_AP_Pos 1U /*!< MPU RBAR: AP Position */ -#define MPU_RBAR_AP_Msk (0x3UL << MPU_RBAR_AP_Pos) /*!< MPU RBAR: AP Mask */ - -#define MPU_RBAR_XN_Pos 0U /*!< MPU RBAR: XN Position */ -#define MPU_RBAR_XN_Msk (01UL /*<< MPU_RBAR_XN_Pos*/) /*!< MPU RBAR: XN Mask */ - -/* MPU Region Limit Address Register Definitions */ -#define MPU_RLAR_LIMIT_Pos 5U /*!< MPU RLAR: LIMIT Position */ -#define MPU_RLAR_LIMIT_Msk (0x7FFFFFFUL << MPU_RLAR_LIMIT_Pos) /*!< MPU RLAR: LIMIT Mask */ - -#define MPU_RLAR_AttrIndx_Pos 1U /*!< MPU RLAR: AttrIndx Position */ -#define MPU_RLAR_AttrIndx_Msk (0x7UL << MPU_RLAR_AttrIndx_Pos) /*!< MPU RLAR: AttrIndx Mask */ - -#define MPU_RLAR_EN_Pos 0U /*!< MPU RLAR: Region enable bit Position */ -#define MPU_RLAR_EN_Msk (1UL /*<< MPU_RLAR_EN_Pos*/) /*!< MPU RLAR: Region enable bit Disable Mask */ - -/* MPU Memory Attribute Indirection Register 0 Definitions */ -#define MPU_MAIR0_Attr3_Pos 24U /*!< MPU MAIR0: Attr3 Position */ -#define MPU_MAIR0_Attr3_Msk (0xFFUL << MPU_MAIR0_Attr3_Pos) /*!< MPU MAIR0: Attr3 Mask */ - -#define MPU_MAIR0_Attr2_Pos 16U /*!< MPU MAIR0: Attr2 Position */ -#define MPU_MAIR0_Attr2_Msk (0xFFUL << MPU_MAIR0_Attr2_Pos) /*!< MPU MAIR0: Attr2 Mask */ - -#define MPU_MAIR0_Attr1_Pos 8U /*!< MPU MAIR0: Attr1 Position */ -#define MPU_MAIR0_Attr1_Msk (0xFFUL << MPU_MAIR0_Attr1_Pos) /*!< MPU MAIR0: Attr1 Mask */ - -#define MPU_MAIR0_Attr0_Pos 0U /*!< MPU MAIR0: Attr0 Position */ -#define MPU_MAIR0_Attr0_Msk (0xFFUL /*<< MPU_MAIR0_Attr0_Pos*/) /*!< MPU MAIR0: Attr0 Mask */ - -/* MPU Memory Attribute Indirection Register 1 Definitions */ -#define MPU_MAIR1_Attr7_Pos 24U /*!< MPU MAIR1: Attr7 Position */ -#define MPU_MAIR1_Attr7_Msk (0xFFUL << MPU_MAIR1_Attr7_Pos) /*!< MPU MAIR1: Attr7 Mask */ - -#define MPU_MAIR1_Attr6_Pos 16U /*!< MPU MAIR1: Attr6 Position */ -#define MPU_MAIR1_Attr6_Msk (0xFFUL << MPU_MAIR1_Attr6_Pos) /*!< MPU MAIR1: Attr6 Mask */ - -#define MPU_MAIR1_Attr5_Pos 8U /*!< MPU MAIR1: Attr5 Position */ -#define MPU_MAIR1_Attr5_Msk (0xFFUL << MPU_MAIR1_Attr5_Pos) /*!< MPU MAIR1: Attr5 Mask */ - -#define MPU_MAIR1_Attr4_Pos 0U /*!< MPU MAIR1: Attr4 Position */ -#define MPU_MAIR1_Attr4_Msk (0xFFUL /*<< MPU_MAIR1_Attr4_Pos*/) /*!< MPU MAIR1: Attr4 Mask */ - -/*@} end of group CMSIS_MPU */ -#endif - - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SAU Security Attribution Unit (SAU) - \brief Type definitions for the Security Attribution Unit (SAU) - @{ - */ - -/** - \brief Structure type to access the Security Attribution Unit (SAU). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SAU Control Register */ - __IM uint32_t TYPE; /*!< Offset: 0x004 (R/ ) SAU Type Register */ -#if defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) - __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) SAU Region Number Register */ - __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) SAU Region Base Address Register */ - __IOM uint32_t RLAR; /*!< Offset: 0x010 (R/W) SAU Region Limit Address Register */ -#else - uint32_t RESERVED0[3]; -#endif - __IOM uint32_t SFSR; /*!< Offset: 0x014 (R/W) Secure Fault Status Register */ - __IOM uint32_t SFAR; /*!< Offset: 0x018 (R/W) Secure Fault Address Register */ -} SAU_Type; - -/* SAU Control Register Definitions */ -#define SAU_CTRL_ALLNS_Pos 1U /*!< SAU CTRL: ALLNS Position */ -#define SAU_CTRL_ALLNS_Msk (1UL << SAU_CTRL_ALLNS_Pos) /*!< SAU CTRL: ALLNS Mask */ - -#define SAU_CTRL_ENABLE_Pos 0U /*!< SAU CTRL: ENABLE Position */ -#define SAU_CTRL_ENABLE_Msk (1UL /*<< SAU_CTRL_ENABLE_Pos*/) /*!< SAU CTRL: ENABLE Mask */ - -/* SAU Type Register Definitions */ -#define SAU_TYPE_SREGION_Pos 0U /*!< SAU TYPE: SREGION Position */ -#define SAU_TYPE_SREGION_Msk (0xFFUL /*<< SAU_TYPE_SREGION_Pos*/) /*!< SAU TYPE: SREGION Mask */ - -#if defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) -/* SAU Region Number Register Definitions */ -#define SAU_RNR_REGION_Pos 0U /*!< SAU RNR: REGION Position */ -#define SAU_RNR_REGION_Msk (0xFFUL /*<< SAU_RNR_REGION_Pos*/) /*!< SAU RNR: REGION Mask */ - -/* SAU Region Base Address Register Definitions */ -#define SAU_RBAR_BADDR_Pos 5U /*!< SAU RBAR: BADDR Position */ -#define SAU_RBAR_BADDR_Msk (0x7FFFFFFUL << SAU_RBAR_BADDR_Pos) /*!< SAU RBAR: BADDR Mask */ - -/* SAU Region Limit Address Register Definitions */ -#define SAU_RLAR_LADDR_Pos 5U /*!< SAU RLAR: LADDR Position */ -#define SAU_RLAR_LADDR_Msk (0x7FFFFFFUL << SAU_RLAR_LADDR_Pos) /*!< SAU RLAR: LADDR Mask */ - -#define SAU_RLAR_NSC_Pos 1U /*!< SAU RLAR: NSC Position */ -#define SAU_RLAR_NSC_Msk (1UL << SAU_RLAR_NSC_Pos) /*!< SAU RLAR: NSC Mask */ - -#define SAU_RLAR_ENABLE_Pos 0U /*!< SAU RLAR: ENABLE Position */ -#define SAU_RLAR_ENABLE_Msk (1UL /*<< SAU_RLAR_ENABLE_Pos*/) /*!< SAU RLAR: ENABLE Mask */ - -#endif /* defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) */ - -/* Secure Fault Status Register Definitions */ -#define SAU_SFSR_LSERR_Pos 7U /*!< SAU SFSR: LSERR Position */ -#define SAU_SFSR_LSERR_Msk (1UL << SAU_SFSR_LSERR_Pos) /*!< SAU SFSR: LSERR Mask */ - -#define SAU_SFSR_SFARVALID_Pos 6U /*!< SAU SFSR: SFARVALID Position */ -#define SAU_SFSR_SFARVALID_Msk (1UL << SAU_SFSR_SFARVALID_Pos) /*!< SAU SFSR: SFARVALID Mask */ - -#define SAU_SFSR_LSPERR_Pos 5U /*!< SAU SFSR: LSPERR Position */ -#define SAU_SFSR_LSPERR_Msk (1UL << SAU_SFSR_LSPERR_Pos) /*!< SAU SFSR: LSPERR Mask */ - -#define SAU_SFSR_INVTRAN_Pos 4U /*!< SAU SFSR: INVTRAN Position */ -#define SAU_SFSR_INVTRAN_Msk (1UL << SAU_SFSR_INVTRAN_Pos) /*!< SAU SFSR: INVTRAN Mask */ - -#define SAU_SFSR_AUVIOL_Pos 3U /*!< SAU SFSR: AUVIOL Position */ -#define SAU_SFSR_AUVIOL_Msk (1UL << SAU_SFSR_AUVIOL_Pos) /*!< SAU SFSR: AUVIOL Mask */ - -#define SAU_SFSR_INVER_Pos 2U /*!< SAU SFSR: INVER Position */ -#define SAU_SFSR_INVER_Msk (1UL << SAU_SFSR_INVER_Pos) /*!< SAU SFSR: INVER Mask */ - -#define SAU_SFSR_INVIS_Pos 1U /*!< SAU SFSR: INVIS Position */ -#define SAU_SFSR_INVIS_Msk (1UL << SAU_SFSR_INVIS_Pos) /*!< SAU SFSR: INVIS Mask */ - -#define SAU_SFSR_INVEP_Pos 0U /*!< SAU SFSR: INVEP Position */ -#define SAU_SFSR_INVEP_Msk (1UL /*<< SAU_SFSR_INVEP_Pos*/) /*!< SAU SFSR: INVEP Mask */ - -/*@} end of group CMSIS_SAU */ -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_FPU Floating Point Unit (FPU) - \brief Type definitions for the Floating Point Unit (FPU) - @{ - */ - -/** - \brief Structure type to access the Floating Point Unit (FPU). - */ -typedef struct -{ - uint32_t RESERVED0[1U]; - __IOM uint32_t FPCCR; /*!< Offset: 0x004 (R/W) Floating-Point Context Control Register */ - __IOM uint32_t FPCAR; /*!< Offset: 0x008 (R/W) Floating-Point Context Address Register */ - __IOM uint32_t FPDSCR; /*!< Offset: 0x00C (R/W) Floating-Point Default Status Control Register */ - __IM uint32_t MVFR0; /*!< Offset: 0x010 (R/ ) Media and FP Feature Register 0 */ - __IM uint32_t MVFR1; /*!< Offset: 0x014 (R/ ) Media and FP Feature Register 1 */ -} FPU_Type; - -/* Floating-Point Context Control Register Definitions */ -#define FPU_FPCCR_ASPEN_Pos 31U /*!< FPCCR: ASPEN bit Position */ -#define FPU_FPCCR_ASPEN_Msk (1UL << FPU_FPCCR_ASPEN_Pos) /*!< FPCCR: ASPEN bit Mask */ - -#define FPU_FPCCR_LSPEN_Pos 30U /*!< FPCCR: LSPEN Position */ -#define FPU_FPCCR_LSPEN_Msk (1UL << FPU_FPCCR_LSPEN_Pos) /*!< FPCCR: LSPEN bit Mask */ - -#define FPU_FPCCR_LSPENS_Pos 29U /*!< FPCCR: LSPENS Position */ -#define FPU_FPCCR_LSPENS_Msk (1UL << FPU_FPCCR_LSPENS_Pos) /*!< FPCCR: LSPENS bit Mask */ - -#define FPU_FPCCR_CLRONRET_Pos 28U /*!< FPCCR: CLRONRET Position */ -#define FPU_FPCCR_CLRONRET_Msk (1UL << FPU_FPCCR_CLRONRET_Pos) /*!< FPCCR: CLRONRET bit Mask */ - -#define FPU_FPCCR_CLRONRETS_Pos 27U /*!< FPCCR: CLRONRETS Position */ -#define FPU_FPCCR_CLRONRETS_Msk (1UL << FPU_FPCCR_CLRONRETS_Pos) /*!< FPCCR: CLRONRETS bit Mask */ - -#define FPU_FPCCR_TS_Pos 26U /*!< FPCCR: TS Position */ -#define FPU_FPCCR_TS_Msk (1UL << FPU_FPCCR_TS_Pos) /*!< FPCCR: TS bit Mask */ - -#define FPU_FPCCR_UFRDY_Pos 10U /*!< FPCCR: UFRDY Position */ -#define FPU_FPCCR_UFRDY_Msk (1UL << FPU_FPCCR_UFRDY_Pos) /*!< FPCCR: UFRDY bit Mask */ - -#define FPU_FPCCR_SPLIMVIOL_Pos 9U /*!< FPCCR: SPLIMVIOL Position */ -#define FPU_FPCCR_SPLIMVIOL_Msk (1UL << FPU_FPCCR_SPLIMVIOL_Pos) /*!< FPCCR: SPLIMVIOL bit Mask */ - -#define FPU_FPCCR_MONRDY_Pos 8U /*!< FPCCR: MONRDY Position */ -#define FPU_FPCCR_MONRDY_Msk (1UL << FPU_FPCCR_MONRDY_Pos) /*!< FPCCR: MONRDY bit Mask */ - -#define FPU_FPCCR_SFRDY_Pos 7U /*!< FPCCR: SFRDY Position */ -#define FPU_FPCCR_SFRDY_Msk (1UL << FPU_FPCCR_SFRDY_Pos) /*!< FPCCR: SFRDY bit Mask */ - -#define FPU_FPCCR_BFRDY_Pos 6U /*!< FPCCR: BFRDY Position */ -#define FPU_FPCCR_BFRDY_Msk (1UL << FPU_FPCCR_BFRDY_Pos) /*!< FPCCR: BFRDY bit Mask */ - -#define FPU_FPCCR_MMRDY_Pos 5U /*!< FPCCR: MMRDY Position */ -#define FPU_FPCCR_MMRDY_Msk (1UL << FPU_FPCCR_MMRDY_Pos) /*!< FPCCR: MMRDY bit Mask */ - -#define FPU_FPCCR_HFRDY_Pos 4U /*!< FPCCR: HFRDY Position */ -#define FPU_FPCCR_HFRDY_Msk (1UL << FPU_FPCCR_HFRDY_Pos) /*!< FPCCR: HFRDY bit Mask */ - -#define FPU_FPCCR_THREAD_Pos 3U /*!< FPCCR: processor mode bit Position */ -#define FPU_FPCCR_THREAD_Msk (1UL << FPU_FPCCR_THREAD_Pos) /*!< FPCCR: processor mode active bit Mask */ - -#define FPU_FPCCR_S_Pos 2U /*!< FPCCR: Security status of the FP context bit Position */ -#define FPU_FPCCR_S_Msk (1UL << FPU_FPCCR_S_Pos) /*!< FPCCR: Security status of the FP context bit Mask */ - -#define FPU_FPCCR_USER_Pos 1U /*!< FPCCR: privilege level bit Position */ -#define FPU_FPCCR_USER_Msk (1UL << FPU_FPCCR_USER_Pos) /*!< FPCCR: privilege level bit Mask */ - -#define FPU_FPCCR_LSPACT_Pos 0U /*!< FPCCR: Lazy state preservation active bit Position */ -#define FPU_FPCCR_LSPACT_Msk (1UL /*<< FPU_FPCCR_LSPACT_Pos*/) /*!< FPCCR: Lazy state preservation active bit Mask */ - -/* Floating-Point Context Address Register Definitions */ -#define FPU_FPCAR_ADDRESS_Pos 3U /*!< FPCAR: ADDRESS bit Position */ -#define FPU_FPCAR_ADDRESS_Msk (0x1FFFFFFFUL << FPU_FPCAR_ADDRESS_Pos) /*!< FPCAR: ADDRESS bit Mask */ - -/* Floating-Point Default Status Control Register Definitions */ -#define FPU_FPDSCR_AHP_Pos 26U /*!< FPDSCR: AHP bit Position */ -#define FPU_FPDSCR_AHP_Msk (1UL << FPU_FPDSCR_AHP_Pos) /*!< FPDSCR: AHP bit Mask */ - -#define FPU_FPDSCR_DN_Pos 25U /*!< FPDSCR: DN bit Position */ -#define FPU_FPDSCR_DN_Msk (1UL << FPU_FPDSCR_DN_Pos) /*!< FPDSCR: DN bit Mask */ - -#define FPU_FPDSCR_FZ_Pos 24U /*!< FPDSCR: FZ bit Position */ -#define FPU_FPDSCR_FZ_Msk (1UL << FPU_FPDSCR_FZ_Pos) /*!< FPDSCR: FZ bit Mask */ - -#define FPU_FPDSCR_RMode_Pos 22U /*!< FPDSCR: RMode bit Position */ -#define FPU_FPDSCR_RMode_Msk (3UL << FPU_FPDSCR_RMode_Pos) /*!< FPDSCR: RMode bit Mask */ - -/* Media and FP Feature Register 0 Definitions */ -#define FPU_MVFR0_FP_rounding_modes_Pos 28U /*!< MVFR0: FP rounding modes bits Position */ -#define FPU_MVFR0_FP_rounding_modes_Msk (0xFUL << FPU_MVFR0_FP_rounding_modes_Pos) /*!< MVFR0: FP rounding modes bits Mask */ - -#define FPU_MVFR0_Short_vectors_Pos 24U /*!< MVFR0: Short vectors bits Position */ -#define FPU_MVFR0_Short_vectors_Msk (0xFUL << FPU_MVFR0_Short_vectors_Pos) /*!< MVFR0: Short vectors bits Mask */ - -#define FPU_MVFR0_Square_root_Pos 20U /*!< MVFR0: Square root bits Position */ -#define FPU_MVFR0_Square_root_Msk (0xFUL << FPU_MVFR0_Square_root_Pos) /*!< MVFR0: Square root bits Mask */ - -#define FPU_MVFR0_Divide_Pos 16U /*!< MVFR0: Divide bits Position */ -#define FPU_MVFR0_Divide_Msk (0xFUL << FPU_MVFR0_Divide_Pos) /*!< MVFR0: Divide bits Mask */ - -#define FPU_MVFR0_FP_excep_trapping_Pos 12U /*!< MVFR0: FP exception trapping bits Position */ -#define FPU_MVFR0_FP_excep_trapping_Msk (0xFUL << FPU_MVFR0_FP_excep_trapping_Pos) /*!< MVFR0: FP exception trapping bits Mask */ - -#define FPU_MVFR0_Double_precision_Pos 8U /*!< MVFR0: Double-precision bits Position */ -#define FPU_MVFR0_Double_precision_Msk (0xFUL << FPU_MVFR0_Double_precision_Pos) /*!< MVFR0: Double-precision bits Mask */ - -#define FPU_MVFR0_Single_precision_Pos 4U /*!< MVFR0: Single-precision bits Position */ -#define FPU_MVFR0_Single_precision_Msk (0xFUL << FPU_MVFR0_Single_precision_Pos) /*!< MVFR0: Single-precision bits Mask */ - -#define FPU_MVFR0_A_SIMD_registers_Pos 0U /*!< MVFR0: A_SIMD registers bits Position */ -#define FPU_MVFR0_A_SIMD_registers_Msk (0xFUL /*<< FPU_MVFR0_A_SIMD_registers_Pos*/) /*!< MVFR0: A_SIMD registers bits Mask */ - -/* Media and FP Feature Register 1 Definitions */ -#define FPU_MVFR1_FP_fused_MAC_Pos 28U /*!< MVFR1: FP fused MAC bits Position */ -#define FPU_MVFR1_FP_fused_MAC_Msk (0xFUL << FPU_MVFR1_FP_fused_MAC_Pos) /*!< MVFR1: FP fused MAC bits Mask */ - -#define FPU_MVFR1_FP_HPFP_Pos 24U /*!< MVFR1: FP HPFP bits Position */ -#define FPU_MVFR1_FP_HPFP_Msk (0xFUL << FPU_MVFR1_FP_HPFP_Pos) /*!< MVFR1: FP HPFP bits Mask */ - -#define FPU_MVFR1_D_NaN_mode_Pos 4U /*!< MVFR1: D_NaN mode bits Position */ -#define FPU_MVFR1_D_NaN_mode_Msk (0xFUL << FPU_MVFR1_D_NaN_mode_Pos) /*!< MVFR1: D_NaN mode bits Mask */ - -#define FPU_MVFR1_FtZ_mode_Pos 0U /*!< MVFR1: FtZ mode bits Position */ -#define FPU_MVFR1_FtZ_mode_Msk (0xFUL /*<< FPU_MVFR1_FtZ_mode_Pos*/) /*!< MVFR1: FtZ mode bits Mask */ - -/*@} end of group CMSIS_FPU */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) - \brief Type definitions for the Core Debug Registers - @{ - */ - -/** - \brief Structure type to access the Core Debug Register (CoreDebug). - */ -typedef struct -{ - __IOM uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ - __OM uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ - __IOM uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ - __IOM uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ - uint32_t RESERVED4[1U]; - __IOM uint32_t DAUTHCTRL; /*!< Offset: 0x014 (R/W) Debug Authentication Control Register */ - __IOM uint32_t DSCSR; /*!< Offset: 0x018 (R/W) Debug Security Control and Status Register */ -} CoreDebug_Type; - -/* Debug Halting Control and Status Register Definitions */ -#define CoreDebug_DHCSR_DBGKEY_Pos 16U /*!< CoreDebug DHCSR: DBGKEY Position */ -#define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ - -#define CoreDebug_DHCSR_S_RESTART_ST_Pos 26U /*!< CoreDebug DHCSR: S_RESTART_ST Position */ -#define CoreDebug_DHCSR_S_RESTART_ST_Msk (1UL << CoreDebug_DHCSR_S_RESTART_ST_Pos) /*!< CoreDebug DHCSR: S_RESTART_ST Mask */ - -#define CoreDebug_DHCSR_S_RESET_ST_Pos 25U /*!< CoreDebug DHCSR: S_RESET_ST Position */ -#define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ - -#define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24U /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ -#define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ - -#define CoreDebug_DHCSR_S_LOCKUP_Pos 19U /*!< CoreDebug DHCSR: S_LOCKUP Position */ -#define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ - -#define CoreDebug_DHCSR_S_SLEEP_Pos 18U /*!< CoreDebug DHCSR: S_SLEEP Position */ -#define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ - -#define CoreDebug_DHCSR_S_HALT_Pos 17U /*!< CoreDebug DHCSR: S_HALT Position */ -#define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ - -#define CoreDebug_DHCSR_S_REGRDY_Pos 16U /*!< CoreDebug DHCSR: S_REGRDY Position */ -#define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ - -#define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5U /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ -#define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ - -#define CoreDebug_DHCSR_C_MASKINTS_Pos 3U /*!< CoreDebug DHCSR: C_MASKINTS Position */ -#define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ - -#define CoreDebug_DHCSR_C_STEP_Pos 2U /*!< CoreDebug DHCSR: C_STEP Position */ -#define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ - -#define CoreDebug_DHCSR_C_HALT_Pos 1U /*!< CoreDebug DHCSR: C_HALT Position */ -#define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ - -#define CoreDebug_DHCSR_C_DEBUGEN_Pos 0U /*!< CoreDebug DHCSR: C_DEBUGEN Position */ -#define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL /*<< CoreDebug_DHCSR_C_DEBUGEN_Pos*/) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ - -/* Debug Core Register Selector Register Definitions */ -#define CoreDebug_DCRSR_REGWnR_Pos 16U /*!< CoreDebug DCRSR: REGWnR Position */ -#define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ - -#define CoreDebug_DCRSR_REGSEL_Pos 0U /*!< CoreDebug DCRSR: REGSEL Position */ -#define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL /*<< CoreDebug_DCRSR_REGSEL_Pos*/) /*!< CoreDebug DCRSR: REGSEL Mask */ - -/* Debug Exception and Monitor Control Register Definitions */ -#define CoreDebug_DEMCR_TRCENA_Pos 24U /*!< CoreDebug DEMCR: TRCENA Position */ -#define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ - -#define CoreDebug_DEMCR_MON_REQ_Pos 19U /*!< CoreDebug DEMCR: MON_REQ Position */ -#define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ - -#define CoreDebug_DEMCR_MON_STEP_Pos 18U /*!< CoreDebug DEMCR: MON_STEP Position */ -#define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ - -#define CoreDebug_DEMCR_MON_PEND_Pos 17U /*!< CoreDebug DEMCR: MON_PEND Position */ -#define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ - -#define CoreDebug_DEMCR_MON_EN_Pos 16U /*!< CoreDebug DEMCR: MON_EN Position */ -#define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ - -#define CoreDebug_DEMCR_VC_HARDERR_Pos 10U /*!< CoreDebug DEMCR: VC_HARDERR Position */ -#define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ - -#define CoreDebug_DEMCR_VC_INTERR_Pos 9U /*!< CoreDebug DEMCR: VC_INTERR Position */ -#define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ - -#define CoreDebug_DEMCR_VC_BUSERR_Pos 8U /*!< CoreDebug DEMCR: VC_BUSERR Position */ -#define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ - -#define CoreDebug_DEMCR_VC_STATERR_Pos 7U /*!< CoreDebug DEMCR: VC_STATERR Position */ -#define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ - -#define CoreDebug_DEMCR_VC_CHKERR_Pos 6U /*!< CoreDebug DEMCR: VC_CHKERR Position */ -#define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ - -#define CoreDebug_DEMCR_VC_NOCPERR_Pos 5U /*!< CoreDebug DEMCR: VC_NOCPERR Position */ -#define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ - -#define CoreDebug_DEMCR_VC_MMERR_Pos 4U /*!< CoreDebug DEMCR: VC_MMERR Position */ -#define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ - -#define CoreDebug_DEMCR_VC_CORERESET_Pos 0U /*!< CoreDebug DEMCR: VC_CORERESET Position */ -#define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL /*<< CoreDebug_DEMCR_VC_CORERESET_Pos*/) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ - -/* Debug Authentication Control Register Definitions */ -#define CoreDebug_DAUTHCTRL_INTSPNIDEN_Pos 3U /*!< CoreDebug DAUTHCTRL: INTSPNIDEN, Position */ -#define CoreDebug_DAUTHCTRL_INTSPNIDEN_Msk (1UL << CoreDebug_DAUTHCTRL_INTSPNIDEN_Pos) /*!< CoreDebug DAUTHCTRL: INTSPNIDEN, Mask */ - -#define CoreDebug_DAUTHCTRL_SPNIDENSEL_Pos 2U /*!< CoreDebug DAUTHCTRL: SPNIDENSEL Position */ -#define CoreDebug_DAUTHCTRL_SPNIDENSEL_Msk (1UL << CoreDebug_DAUTHCTRL_SPNIDENSEL_Pos) /*!< CoreDebug DAUTHCTRL: SPNIDENSEL Mask */ - -#define CoreDebug_DAUTHCTRL_INTSPIDEN_Pos 1U /*!< CoreDebug DAUTHCTRL: INTSPIDEN Position */ -#define CoreDebug_DAUTHCTRL_INTSPIDEN_Msk (1UL << CoreDebug_DAUTHCTRL_INTSPIDEN_Pos) /*!< CoreDebug DAUTHCTRL: INTSPIDEN Mask */ - -#define CoreDebug_DAUTHCTRL_SPIDENSEL_Pos 0U /*!< CoreDebug DAUTHCTRL: SPIDENSEL Position */ -#define CoreDebug_DAUTHCTRL_SPIDENSEL_Msk (1UL /*<< CoreDebug_DAUTHCTRL_SPIDENSEL_Pos*/) /*!< CoreDebug DAUTHCTRL: SPIDENSEL Mask */ - -/* Debug Security Control and Status Register Definitions */ -#define CoreDebug_DSCSR_CDS_Pos 16U /*!< CoreDebug DSCSR: CDS Position */ -#define CoreDebug_DSCSR_CDS_Msk (1UL << CoreDebug_DSCSR_CDS_Pos) /*!< CoreDebug DSCSR: CDS Mask */ - -#define CoreDebug_DSCSR_SBRSEL_Pos 1U /*!< CoreDebug DSCSR: SBRSEL Position */ -#define CoreDebug_DSCSR_SBRSEL_Msk (1UL << CoreDebug_DSCSR_SBRSEL_Pos) /*!< CoreDebug DSCSR: SBRSEL Mask */ - -#define CoreDebug_DSCSR_SBRSELEN_Pos 0U /*!< CoreDebug DSCSR: SBRSELEN Position */ -#define CoreDebug_DSCSR_SBRSELEN_Msk (1UL /*<< CoreDebug_DSCSR_SBRSELEN_Pos*/) /*!< CoreDebug DSCSR: SBRSELEN Mask */ - -/*@} end of group CMSIS_CoreDebug */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_core_bitfield Core register bit field macros - \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). - @{ - */ - -/** - \brief Mask and shift a bit field value for use in a register bit range. - \param[in] field Name of the register bit field. - \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. - \return Masked and shifted value. -*/ -#define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) - -/** - \brief Mask and shift a register value to extract a bit filed value. - \param[in] field Name of the register bit field. - \param[in] value Value of register. This parameter is interpreted as an uint32_t type. - \return Masked and shifted bit field value. -*/ -#define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) - -/*@} end of group CMSIS_core_bitfield */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_core_base Core Definitions - \brief Definitions for base addresses, unions, and structures. - @{ - */ - -/* Memory mapping of Core Hardware */ - #define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ - #define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ - #define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ - #define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ - #define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ - #define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ - #define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ - #define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ - - #define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ - #define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ - #define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ - #define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ - #define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ - #define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ - #define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ - #define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE ) /*!< Core Debug configuration struct */ - - #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) - #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ - #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ - #endif - - #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) - #define SAU_BASE (SCS_BASE + 0x0DD0UL) /*!< Security Attribution Unit */ - #define SAU ((SAU_Type *) SAU_BASE ) /*!< Security Attribution Unit */ - #endif - - #define FPU_BASE (SCS_BASE + 0x0F30UL) /*!< Floating Point Unit */ - #define FPU ((FPU_Type *) FPU_BASE ) /*!< Floating Point Unit */ - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) - #define SCS_BASE_NS (0xE002E000UL) /*!< System Control Space Base Address (non-secure address space) */ - #define CoreDebug_BASE_NS (0xE002EDF0UL) /*!< Core Debug Base Address (non-secure address space) */ - #define SysTick_BASE_NS (SCS_BASE_NS + 0x0010UL) /*!< SysTick Base Address (non-secure address space) */ - #define NVIC_BASE_NS (SCS_BASE_NS + 0x0100UL) /*!< NVIC Base Address (non-secure address space) */ - #define SCB_BASE_NS (SCS_BASE_NS + 0x0D00UL) /*!< System Control Block Base Address (non-secure address space) */ - - #define SCnSCB_NS ((SCnSCB_Type *) SCS_BASE_NS ) /*!< System control Register not in SCB(non-secure address space) */ - #define SCB_NS ((SCB_Type *) SCB_BASE_NS ) /*!< SCB configuration struct (non-secure address space) */ - #define SysTick_NS ((SysTick_Type *) SysTick_BASE_NS ) /*!< SysTick configuration struct (non-secure address space) */ - #define NVIC_NS ((NVIC_Type *) NVIC_BASE_NS ) /*!< NVIC configuration struct (non-secure address space) */ - #define CoreDebug_NS ((CoreDebug_Type *) CoreDebug_BASE_NS) /*!< Core Debug configuration struct (non-secure address space) */ - - #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) - #define MPU_BASE_NS (SCS_BASE_NS + 0x0D90UL) /*!< Memory Protection Unit (non-secure address space) */ - #define MPU_NS ((MPU_Type *) MPU_BASE_NS ) /*!< Memory Protection Unit (non-secure address space) */ - #endif - - #define FPU_BASE_NS (SCS_BASE_NS + 0x0F30UL) /*!< Floating Point Unit (non-secure address space) */ - #define FPU_NS ((FPU_Type *) FPU_BASE_NS ) /*!< Floating Point Unit (non-secure address space) */ - -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ -/*@} */ - - - -/******************************************************************************* - * Hardware Abstraction Layer - Core Function Interface contains: - - Core NVIC Functions - - Core SysTick Functions - - Core Debug Functions - - Core Register Access Functions - ******************************************************************************/ -/** - \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference -*/ - - - -/* ########################## NVIC functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_NVICFunctions NVIC Functions - \brief Functions that manage interrupts and exceptions via the NVIC. - @{ - */ - -#ifdef CMSIS_NVIC_VIRTUAL - #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE - #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" - #endif - #include CMSIS_NVIC_VIRTUAL_HEADER_FILE -#else - #define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping - #define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping - #define NVIC_EnableIRQ __NVIC_EnableIRQ - #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ - #define NVIC_DisableIRQ __NVIC_DisableIRQ - #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ - #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ - #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ - #define NVIC_GetActive __NVIC_GetActive - #define NVIC_SetPriority __NVIC_SetPriority - #define NVIC_GetPriority __NVIC_GetPriority - #define NVIC_SystemReset __NVIC_SystemReset -#endif /* CMSIS_NVIC_VIRTUAL */ - -#ifdef CMSIS_VECTAB_VIRTUAL - #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE - #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" - #endif - #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE -#else - #define NVIC_SetVector __NVIC_SetVector - #define NVIC_GetVector __NVIC_GetVector -#endif /* (CMSIS_VECTAB_VIRTUAL) */ - -#define NVIC_USER_IRQ_OFFSET 16 - - -/* Special LR values for Secure/Non-Secure call handling and exception handling */ - -/* Function Return Payload (from ARMv8-M Architecture Reference Manual) LR value on entry from Secure BLXNS */ -#define FNC_RETURN (0xFEFFFFFFUL) /* bit [0] ignored when processing a branch */ - -/* The following EXC_RETURN mask values are used to evaluate the LR on exception entry */ -#define EXC_RETURN_PREFIX (0xFF000000UL) /* bits [31:24] set to indicate an EXC_RETURN value */ -#define EXC_RETURN_S (0x00000040UL) /* bit [6] stack used to push registers: 0=Non-secure 1=Secure */ -#define EXC_RETURN_DCRS (0x00000020UL) /* bit [5] stacking rules for called registers: 0=skipped 1=saved */ -#define EXC_RETURN_FTYPE (0x00000010UL) /* bit [4] allocate stack for floating-point context: 0=done 1=skipped */ -#define EXC_RETURN_MODE (0x00000008UL) /* bit [3] processor mode for return: 0=Handler mode 1=Thread mode */ -#define EXC_RETURN_SPSEL (0x00000004UL) /* bit [2] stack pointer used to restore context: 0=MSP 1=PSP */ -#define EXC_RETURN_ES (0x00000001UL) /* bit [0] security state exception was taken to: 0=Non-secure 1=Secure */ - -/* Integrity Signature (from ARMv8-M Architecture Reference Manual) for exception context stacking */ -#if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) /* Value for processors with floating-point extension: */ -#define EXC_INTEGRITY_SIGNATURE (0xFEFA125AUL) /* bit [0] SFTC must match LR bit[4] EXC_RETURN_FTYPE */ -#else -#define EXC_INTEGRITY_SIGNATURE (0xFEFA125BUL) /* Value for processors without floating-point extension */ -#endif - - -/** - \brief Set Priority Grouping - \details Sets the priority grouping field using the required unlock sequence. - The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. - Only values from 0..7 are used. - 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) -{ - uint32_t reg_value; - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - - reg_value = SCB->AIRCR; /* read old register configuration */ - reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ - reg_value = (reg_value | - ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ - SCB->AIRCR = reg_value; -} - - -/** - \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) -{ - return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); -} - - -/** - \brief Enable Interrupt - \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) -{ - if ((int32_t)(IRQn) >= 0) - { - __COMPILER_BARRIER(); - NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - __COMPILER_BARRIER(); - } -} - - -/** - \brief Get Interrupt Enable status - \details Returns a device specific interrupt enable status from the NVIC interrupt controller. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt is not enabled. - \return 1 Interrupt is enabled. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Disable Interrupt - \details Disables 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_DisableIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - __DSB(); - __ISB(); - } -} - - -/** - \brief Get Pending Interrupt - \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not pending. - \return 1 Interrupt status is pending. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Pending Interrupt - \details Sets the pending bit of a device specific interrupt in the NVIC pending register. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Clear Pending Interrupt - \details Clears the pending bit of a device specific interrupt in the NVIC pending register. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Active Interrupt - \details Reads the active register in the NVIC and returns the active bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not active. - \return 1 Interrupt status is active. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetActive(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) -/** - \brief Get Interrupt Target State - \details Reads the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 if interrupt is assigned to Secure - \return 1 if interrupt is assigned to Non Secure - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t NVIC_GetTargetState(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Interrupt Target State - \details Sets the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 if interrupt is assigned to Secure - 1 if interrupt is assigned to Non Secure - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t NVIC_SetTargetState(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] |= ((uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL))); - return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Clear Interrupt Target State - \details Clears the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 if interrupt is assigned to Secure - 1 if interrupt is assigned to Non Secure - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t NVIC_ClearTargetState(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] &= ~((uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL))); - return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ - - -/** - \brief Set Interrupt Priority - \details Sets the priority of a device specific interrupt or a processor exception. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \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) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->IPR[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - } - else - { - SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - } -} - - -/** - \brief Get Interrupt Priority - \details Reads the priority of a device specific interrupt or a processor exception. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Interrupt Priority. - Value is aligned automatically to the implemented priority bits of the microcontroller. - */ -__STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) -{ - - if ((int32_t)(IRQn) >= 0) - { - return(((uint32_t)NVIC->IPR[((uint32_t)IRQn)] >> (8U - __NVIC_PRIO_BITS))); - } - else - { - return(((uint32_t)SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] >> (8U - __NVIC_PRIO_BITS))); - } -} - - -/** - \brief Encode Priority - \details Encodes the priority for an interrupt with the given priority group, - preemptive priority value, and subpriority value. - 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 Used priority group. - \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) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - - return ( - ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) - ); -} - - -/** - \brief Decode Priority - \details Decodes an interrupt priority value with a given priority group to - preemptive priority value and subpriority value. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. - \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). - \param [in] PriorityGroup Used priority group. - \param [out] pPreemptPriority Preemptive priority value (starting from 0). - \param [out] pSubPriority Subpriority value (starting from 0). - */ -__STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - - *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); - *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); -} - - -/** - \brief Set Interrupt Vector - \details Sets an interrupt vector in SRAM based interrupt vector table. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - VTOR must been relocated to SRAM before. - \param [in] IRQn Interrupt number - \param [in] vector Address of interrupt handler function - */ -__STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) -{ - uint32_t *vectors = (uint32_t *)SCB->VTOR; - vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET] = vector; - __DSB(); -} - - -/** - \brief Get Interrupt Vector - \details Reads an interrupt vector from interrupt vector table. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Address of interrupt handler function - */ -__STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) -{ - uint32_t *vectors = (uint32_t *)SCB->VTOR; - return vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET]; -} - - -/** - \brief System Reset - \details Initiates a system reset request to reset the MCU. - */ -__NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) -{ - __DSB(); /* Ensure all outstanding memory accesses included - buffered write are completed before reset */ - SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | - SCB_AIRCR_SYSRESETREQ_Msk ); /* Keep priority group unchanged */ - __DSB(); /* Ensure completion of memory access */ - - for(;;) /* wait until reset */ - { - __NOP(); - } -} - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) -/** - \brief Set Priority Grouping (non-secure) - \details Sets the non-secure priority grouping field when in secure state using the required unlock sequence. - The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. - Only values from 0..7 are used. - 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 TZ_NVIC_SetPriorityGrouping_NS(uint32_t PriorityGroup) -{ - uint32_t reg_value; - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - - reg_value = SCB_NS->AIRCR; /* read old register configuration */ - reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ - reg_value = (reg_value | - ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ - SCB_NS->AIRCR = reg_value; -} - - -/** - \brief Get Priority Grouping (non-secure) - \details Reads the priority grouping field from the non-secure NVIC when in secure state. - \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). - */ -__STATIC_INLINE uint32_t TZ_NVIC_GetPriorityGrouping_NS(void) -{ - return ((uint32_t)((SCB_NS->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); -} - - -/** - \brief Enable Interrupt (non-secure) - \details Enables a device specific interrupt in the non-secure NVIC interrupt controller when in secure state. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void TZ_NVIC_EnableIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Interrupt Enable status (non-secure) - \details Returns a device specific interrupt enable status from the non-secure NVIC interrupt controller when in secure state. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt is not enabled. - \return 1 Interrupt is enabled. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t TZ_NVIC_GetEnableIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC_NS->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Disable Interrupt (non-secure) - \details Disables a device specific interrupt in the non-secure NVIC interrupt controller when in secure state. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void TZ_NVIC_DisableIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Pending Interrupt (non-secure) - \details Reads the NVIC pending register in the non-secure NVIC when in secure state and returns the pending bit for the specified device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not pending. - \return 1 Interrupt status is pending. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t TZ_NVIC_GetPendingIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC_NS->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Pending Interrupt (non-secure) - \details Sets the pending bit of a device specific interrupt in the non-secure NVIC pending register when in secure state. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void TZ_NVIC_SetPendingIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Clear Pending Interrupt (non-secure) - \details Clears the pending bit of a device specific interrupt in the non-secure NVIC pending register when in secure state. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void TZ_NVIC_ClearPendingIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Active Interrupt (non-secure) - \details Reads the active register in non-secure NVIC when in secure state and returns the active bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not active. - \return 1 Interrupt status is active. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t TZ_NVIC_GetActive_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC_NS->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Interrupt Priority (non-secure) - \details Sets the priority of a non-secure device specific interrupt or a non-secure processor exception when in secure state. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \param [in] priority Priority to set. - \note The priority cannot be set for every non-secure processor exception. - */ -__STATIC_INLINE void TZ_NVIC_SetPriority_NS(IRQn_Type IRQn, uint32_t priority) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->IPR[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - } - else - { - SCB_NS->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - } -} - - -/** - \brief Get Interrupt Priority (non-secure) - \details Reads the priority of a non-secure device specific interrupt or a non-secure processor exception when in secure state. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. - */ -__STATIC_INLINE uint32_t TZ_NVIC_GetPriority_NS(IRQn_Type IRQn) -{ - - if ((int32_t)(IRQn) >= 0) - { - return(((uint32_t)NVIC_NS->IPR[((uint32_t)IRQn)] >> (8U - __NVIC_PRIO_BITS))); - } - else - { - return(((uint32_t)SCB_NS->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] >> (8U - __NVIC_PRIO_BITS))); - } -} -#endif /* defined (__ARM_FEATURE_CMSE) &&(__ARM_FEATURE_CMSE == 3U) */ - -/*@} end of CMSIS_Core_NVICFunctions */ - -/* ########################## MPU functions #################################### */ - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) - -#include "mpu_armv8.h" - -#endif - -/* ########################## FPU functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_FpuFunctions FPU Functions - \brief Function that provides FPU type. - @{ - */ - -/** - \brief get FPU type - \details returns the FPU type - \returns - - \b 0: No FPU - - \b 1: Single precision FPU - - \b 2: Double + Single precision FPU - */ -__STATIC_INLINE uint32_t SCB_GetFPUType(void) -{ - uint32_t mvfr0; - - mvfr0 = FPU->MVFR0; - if ((mvfr0 & (FPU_MVFR0_Single_precision_Msk | FPU_MVFR0_Double_precision_Msk)) == 0x220U) - { - return 2U; /* Double + Single precision FPU */ - } - else if ((mvfr0 & (FPU_MVFR0_Single_precision_Msk | FPU_MVFR0_Double_precision_Msk)) == 0x020U) - { - return 1U; /* Single precision FPU */ - } - else - { - return 0U; /* No FPU */ - } -} - - -/*@} end of CMSIS_Core_FpuFunctions */ - - - -/* ########################## SAU functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SAUFunctions SAU Functions - \brief Functions that configure the SAU. - @{ - */ - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) - -/** - \brief Enable SAU - \details Enables the Security Attribution Unit (SAU). - */ -__STATIC_INLINE void TZ_SAU_Enable(void) -{ - SAU->CTRL |= (SAU_CTRL_ENABLE_Msk); -} - - - -/** - \brief Disable SAU - \details Disables the Security Attribution Unit (SAU). - */ -__STATIC_INLINE void TZ_SAU_Disable(void) -{ - SAU->CTRL &= ~(SAU_CTRL_ENABLE_Msk); -} - -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ - -/*@} end of CMSIS_Core_SAUFunctions */ - - - - -/* ################################## SysTick function ############################################ */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SysTickFunctions SysTick Functions - \brief Functions that configure the System. - @{ - */ - -#if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) - -/** - \brief System Tick Configuration - \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. - Counter is in free running mode to generate periodic interrupts. - \param [in] ticks Number of ticks between two interrupts. - \return 0 Function succeeded. - \return 1 Function failed. - \note When the variable __Vendor_SysTickConfig is set to 1, then the - function SysTick_Config is not included. In this case, the file device.h - must contain a vendor-specific implementation of this function. - */ -__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) -{ - if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - { - return (1UL); /* Reload value impossible */ - } - - SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ - SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0UL); /* Function successful */ -} - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) -/** - \brief System Tick Configuration (non-secure) - \details Initializes the non-secure System Timer and its interrupt when in secure state, and starts the System Tick Timer. - Counter is in free running mode to generate periodic interrupts. - \param [in] ticks Number of ticks between two interrupts. - \return 0 Function succeeded. - \return 1 Function failed. - \note When the variable __Vendor_SysTickConfig is set to 1, then the - function TZ_SysTick_Config_NS is not included. In this case, the file device.h - must contain a vendor-specific implementation of this function. - - */ -__STATIC_INLINE uint32_t TZ_SysTick_Config_NS(uint32_t ticks) -{ - if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - { - return (1UL); /* Reload value impossible */ - } - - SysTick_NS->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - TZ_NVIC_SetPriority_NS (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - SysTick_NS->VAL = 0UL; /* Load the SysTick Counter Value */ - SysTick_NS->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0UL); /* Function successful */ -} -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ - -#endif - -/*@} end of CMSIS_Core_SysTickFunctions */ - - - -/* ##################################### Debug In/Output function ########################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_core_DebugFunctions ITM Functions - \brief Functions that access the ITM debug interface. - @{ - */ - -extern volatile int32_t ITM_RxBuffer; /*!< External variable to receive characters. */ -#define ITM_RXBUFFER_EMPTY ((int32_t)0x5AA55AA5U) /*!< Value identifying \ref ITM_RxBuffer is ready for next character. */ - - -/** - \brief ITM Send Character - \details Transmits a character via the ITM channel 0, and - \li Just returns when no debugger is connected that has booked the output. - \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted. - \param [in] ch Character to transmit. - \returns Character to transmit. - */ -__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch) -{ - if (((ITM->TCR & ITM_TCR_ITMENA_Msk) != 0UL) && /* ITM enabled */ - ((ITM->TER & 1UL ) != 0UL) ) /* ITM Port #0 enabled */ - { - while (ITM->PORT[0U].u32 == 0UL) - { - __NOP(); - } - ITM->PORT[0U].u8 = (uint8_t)ch; - } - return (ch); -} - - -/** - \brief ITM Receive Character - \details Inputs a character via the external variable \ref ITM_RxBuffer. - \return Received character. - \return -1 No character pending. - */ -__STATIC_INLINE int32_t ITM_ReceiveChar (void) -{ - int32_t ch = -1; /* no character available */ - - if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) - { - ch = ITM_RxBuffer; - ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ - } - - return (ch); -} - - -/** - \brief ITM Check Character - \details Checks whether a character is pending for reading in the variable \ref ITM_RxBuffer. - \return 0 No character available. - \return 1 Character available. - */ -__STATIC_INLINE int32_t ITM_CheckChar (void) -{ - - if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) - { - return (0); /* no character available */ - } - else - { - return (1); /* character available */ - } -} - -/*@} end of CMSIS_core_DebugFunctions */ - - - - -#ifdef __cplusplus -} -#endif - -#endif /* __CORE_ARMV8MML_H_DEPENDANT */ - -#endif /* __CMSIS_GENERIC */ diff --git a/Drivers/CMSIS/Include/core_cm0.h b/Drivers/CMSIS/Include/core_cm0.h deleted file mode 100644 index cafae5a..0000000 --- a/Drivers/CMSIS/Include/core_cm0.h +++ /dev/null @@ -1,952 +0,0 @@ -/**************************************************************************//** - * @file core_cm0.h - * @brief CMSIS Cortex-M0 Core Peripheral Access Layer Header File - * @version V5.0.6 - * @date 13. March 2019 - ******************************************************************************/ -/* - * Copyright (c) 2009-2019 Arm Limited. All rights reserved. - * - * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the License); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#if defined ( __ICCARM__ ) - #pragma system_include /* treat file as system include file for MISRA check */ -#elif defined (__clang__) - #pragma clang system_header /* treat file as system include file */ -#endif - -#ifndef __CORE_CM0_H_GENERIC -#define __CORE_CM0_H_GENERIC - -#include - -#ifdef __cplusplus - extern "C" { -#endif - -/** - \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions - CMSIS violates the following MISRA-C:2004 rules: - - \li Required Rule 8.5, object/function definition in header file.
- Function definitions in header files are used to allow 'inlining'. - - \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
- Unions are used for effective representation of core registers. - - \li Advisory Rule 19.7, Function-like macro defined.
- Function-like macros are used to allow more efficient code. - */ - - -/******************************************************************************* - * CMSIS definitions - ******************************************************************************/ -/** - \ingroup Cortex_M0 - @{ - */ - -#include "cmsis_version.h" - -/* CMSIS CM0 definitions */ -#define __CM0_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ -#define __CM0_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ -#define __CM0_CMSIS_VERSION ((__CM0_CMSIS_VERSION_MAIN << 16U) | \ - __CM0_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ - -#define __CORTEX_M (0U) /*!< Cortex-M Core */ - -/** __FPU_USED indicates whether an FPU is used or not. - This core does not support an FPU at all -*/ -#define __FPU_USED 0U - -#if defined ( __CC_ARM ) - #if defined __TARGET_FPU_VFP - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) - #if defined __ARM_FP - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __GNUC__ ) - #if defined (__VFP_FP__) && !defined(__SOFTFP__) - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __ICCARM__ ) - #if defined __ARMVFP__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __TI_ARM__ ) - #if defined __TI_VFP_SUPPORT__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __TASKING__ ) - #if defined __FPU_VFP__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __CSMC__ ) - #if ( __CSMC__ & 0x400U) - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#endif - -#include "cmsis_compiler.h" /* CMSIS compiler specific defines */ - - -#ifdef __cplusplus -} -#endif - -#endif /* __CORE_CM0_H_GENERIC */ - -#ifndef __CMSIS_GENERIC - -#ifndef __CORE_CM0_H_DEPENDANT -#define __CORE_CM0_H_DEPENDANT - -#ifdef __cplusplus - extern "C" { -#endif - -/* check device defines and use defaults */ -#if defined __CHECK_DEVICE_DEFINES - #ifndef __CM0_REV - #define __CM0_REV 0x0000U - #warning "__CM0_REV not defined in device header file; using default!" - #endif - - #ifndef __NVIC_PRIO_BITS - #define __NVIC_PRIO_BITS 2U - #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" - #endif - - #ifndef __Vendor_SysTickConfig - #define __Vendor_SysTickConfig 0U - #warning "__Vendor_SysTickConfig not defined in device header file; using default!" - #endif -#endif - -/* IO definitions (access restrictions to peripheral registers) */ -/** - \defgroup CMSIS_glob_defs CMSIS Global Defines - - IO Type Qualifiers are used - \li to specify the access to peripheral variables. - \li for automatic generation of peripheral register debug information. -*/ -#ifdef __cplusplus - #define __I volatile /*!< Defines 'read only' permissions */ -#else - #define __I volatile const /*!< Defines 'read only' permissions */ -#endif -#define __O volatile /*!< Defines 'write only' permissions */ -#define __IO volatile /*!< Defines 'read / write' permissions */ - -/* following defines should be used for structure members */ -#define __IM volatile const /*! Defines 'read only' structure member permissions */ -#define __OM volatile /*! Defines 'write only' structure member permissions */ -#define __IOM volatile /*! Defines 'read / write' structure member permissions */ - -/*@} end of group Cortex_M0 */ - - - -/******************************************************************************* - * Register Abstraction - Core Register contain: - - Core Register - - Core NVIC Register - - Core SCB Register - - Core SysTick Register - ******************************************************************************/ -/** - \defgroup CMSIS_core_register Defines and Type Definitions - \brief Type definitions and defines for Cortex-M processor based devices. -*/ - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_CORE Status and Control Registers - \brief Core Register type definitions. - @{ - */ - -/** - \brief Union type to access the Application Program Status Register (APSR). - */ -typedef union -{ - struct - { - uint32_t _reserved0:28; /*!< bit: 0..27 Reserved */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} APSR_Type; - -/* APSR Register Definitions */ -#define APSR_N_Pos 31U /*!< APSR: N Position */ -#define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ - -#define APSR_Z_Pos 30U /*!< APSR: Z Position */ -#define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ - -#define APSR_C_Pos 29U /*!< APSR: C Position */ -#define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ - -#define APSR_V_Pos 28U /*!< APSR: V Position */ -#define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ - - -/** - \brief Union type to access the Interrupt Program Status Register (IPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} IPSR_Type; - -/* IPSR Register Definitions */ -#define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ -#define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ - - -/** - \brief Union type to access the Special-Purpose Program Status Registers (xPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ - uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ - uint32_t _reserved1:3; /*!< bit: 25..27 Reserved */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} xPSR_Type; - -/* xPSR Register Definitions */ -#define xPSR_N_Pos 31U /*!< xPSR: N Position */ -#define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ - -#define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ -#define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ - -#define xPSR_C_Pos 29U /*!< xPSR: C Position */ -#define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ - -#define xPSR_V_Pos 28U /*!< xPSR: V Position */ -#define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ - -#define xPSR_T_Pos 24U /*!< xPSR: T Position */ -#define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ - -#define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ -#define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ - - -/** - \brief Union type to access the Control Registers (CONTROL). - */ -typedef union -{ - struct - { - uint32_t _reserved0:1; /*!< bit: 0 Reserved */ - uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ - uint32_t _reserved1:30; /*!< bit: 2..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} CONTROL_Type; - -/* CONTROL Register Definitions */ -#define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ -#define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ - -/*@} end of group CMSIS_CORE */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) - \brief Type definitions for the NVIC Registers - @{ - */ - -/** - \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). - */ -typedef struct -{ - __IOM uint32_t ISER[1U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ - uint32_t RESERVED0[31U]; - __IOM uint32_t ICER[1U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ - uint32_t RESERVED1[31U]; - __IOM uint32_t ISPR[1U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ - uint32_t RESERVED2[31U]; - __IOM uint32_t ICPR[1U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ - uint32_t RESERVED3[31U]; - uint32_t RESERVED4[64U]; - __IOM uint32_t IP[8U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register */ -} NVIC_Type; - -/*@} end of group CMSIS_NVIC */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SCB System Control Block (SCB) - \brief Type definitions for the System Control Block Registers - @{ - */ - -/** - \brief Structure type to access the System Control Block (SCB). - */ -typedef struct -{ - __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ - __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ - uint32_t RESERVED0; - __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ - __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ - __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ - uint32_t RESERVED1; - __IOM uint32_t SHP[2U]; /*!< Offset: 0x01C (R/W) System Handlers Priority Registers. [0] is RESERVED */ - __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ -} SCB_Type; - -/* SCB CPUID Register Definitions */ -#define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ -#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ - -#define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ -#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ - -#define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ -#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ - -#define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ -#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ - -#define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ -#define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ - -/* SCB Interrupt Control State Register Definitions */ -#define SCB_ICSR_NMIPENDSET_Pos 31U /*!< SCB ICSR: NMIPENDSET Position */ -#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ - -#define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ -#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ - -#define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ -#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ - -#define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ -#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ - -#define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ -#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ - -#define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ -#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ - -#define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ -#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ - -#define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ -#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ - -#define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ -#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ - -/* SCB Application Interrupt and Reset Control Register Definitions */ -#define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ -#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ - -#define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ -#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ - -#define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ -#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ - -#define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ -#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ - -#define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ -#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ - -/* SCB System Control Register Definitions */ -#define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ -#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ - -#define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ -#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ - -#define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ -#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ - -/* SCB Configuration Control Register Definitions */ -#define SCB_CCR_STKALIGN_Pos 9U /*!< SCB CCR: STKALIGN Position */ -#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ - -#define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ -#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ - -/* SCB System Handler Control and State Register Definitions */ -#define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ -#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ - -/*@} end of group CMSIS_SCB */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SysTick System Tick Timer (SysTick) - \brief Type definitions for the System Timer Registers. - @{ - */ - -/** - \brief Structure type to access the System Timer (SysTick). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ - __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ - __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ - __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ -} SysTick_Type; - -/* SysTick Control / Status Register Definitions */ -#define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ -#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ - -#define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ -#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ - -#define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ -#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ - -#define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ -#define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ - -/* SysTick Reload Register Definitions */ -#define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ -#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ - -/* SysTick Current Register Definitions */ -#define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ -#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ - -/* SysTick Calibration Register Definitions */ -#define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ -#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ - -#define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ -#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ - -#define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ -#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ - -/*@} end of group CMSIS_SysTick */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) - \brief Cortex-M0 Core Debug Registers (DCB registers, SHCSR, and DFSR) are only accessible over DAP and not via processor. - Therefore they are not covered by the Cortex-M0 header file. - @{ - */ -/*@} end of group CMSIS_CoreDebug */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_core_bitfield Core register bit field macros - \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). - @{ - */ - -/** - \brief Mask and shift a bit field value for use in a register bit range. - \param[in] field Name of the register bit field. - \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. - \return Masked and shifted value. -*/ -#define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) - -/** - \brief Mask and shift a register value to extract a bit filed value. - \param[in] field Name of the register bit field. - \param[in] value Value of register. This parameter is interpreted as an uint32_t type. - \return Masked and shifted bit field value. -*/ -#define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) - -/*@} end of group CMSIS_core_bitfield */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_core_base Core Definitions - \brief Definitions for base addresses, unions, and structures. - @{ - */ - -/* Memory mapping of Core Hardware */ -#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ -#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ -#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ -#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ - -#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ -#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ -#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ - - -/*@} */ - - - -/******************************************************************************* - * Hardware Abstraction Layer - Core Function Interface contains: - - Core NVIC Functions - - Core SysTick Functions - - Core Register Access Functions - ******************************************************************************/ -/** - \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference -*/ - - - -/* ########################## NVIC functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_NVICFunctions NVIC Functions - \brief Functions that manage interrupts and exceptions via the NVIC. - @{ - */ - -#ifdef CMSIS_NVIC_VIRTUAL - #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE - #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" - #endif - #include CMSIS_NVIC_VIRTUAL_HEADER_FILE -#else - #define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping - #define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping - #define NVIC_EnableIRQ __NVIC_EnableIRQ - #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ - #define NVIC_DisableIRQ __NVIC_DisableIRQ - #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ - #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ - #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ -/*#define NVIC_GetActive __NVIC_GetActive not available for Cortex-M0 */ - #define NVIC_SetPriority __NVIC_SetPriority - #define NVIC_GetPriority __NVIC_GetPriority - #define NVIC_SystemReset __NVIC_SystemReset -#endif /* CMSIS_NVIC_VIRTUAL */ - -#ifdef CMSIS_VECTAB_VIRTUAL - #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE - #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" - #endif - #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE -#else - #define NVIC_SetVector __NVIC_SetVector - #define NVIC_GetVector __NVIC_GetVector -#endif /* (CMSIS_VECTAB_VIRTUAL) */ - -#define NVIC_USER_IRQ_OFFSET 16 - - -/* The following EXC_RETURN values are saved the LR on exception entry */ -#define EXC_RETURN_HANDLER (0xFFFFFFF1UL) /* return to Handler mode, uses MSP after return */ -#define EXC_RETURN_THREAD_MSP (0xFFFFFFF9UL) /* return to Thread mode, uses MSP after return */ -#define EXC_RETURN_THREAD_PSP (0xFFFFFFFDUL) /* return to Thread mode, uses PSP after return */ - - -/* Interrupt Priorities are WORD accessible only under Armv6-M */ -/* The following MACROS handle generation of the register offset and byte masks */ -#define _BIT_SHIFT(IRQn) ( ((((uint32_t)(int32_t)(IRQn)) ) & 0x03UL) * 8UL) -#define _SHP_IDX(IRQn) ( (((((uint32_t)(int32_t)(IRQn)) & 0x0FUL)-8UL) >> 2UL) ) -#define _IP_IDX(IRQn) ( (((uint32_t)(int32_t)(IRQn)) >> 2UL) ) - -#define __NVIC_SetPriorityGrouping(X) (void)(X) -#define __NVIC_GetPriorityGrouping() (0U) - -/** - \brief Enable Interrupt - \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) -{ - if ((int32_t)(IRQn) >= 0) - { - __COMPILER_BARRIER(); - NVIC->ISER[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - __COMPILER_BARRIER(); - } -} - - -/** - \brief Get Interrupt Enable status - \details Returns a device specific interrupt enable status from the NVIC interrupt controller. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt is not enabled. - \return 1 Interrupt is enabled. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ISER[0U] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Disable Interrupt - \details Disables 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_DisableIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ICER[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - __DSB(); - __ISB(); - } -} - - -/** - \brief Get Pending Interrupt - \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not pending. - \return 1 Interrupt status is pending. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ISPR[0U] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Pending Interrupt - \details Sets the pending bit of a device specific interrupt in the NVIC pending register. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ISPR[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Clear Pending Interrupt - \details Clears the pending bit of a device specific interrupt in the NVIC pending register. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ICPR[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Set Interrupt Priority - \details Sets the priority of a device specific interrupt or a processor exception. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \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) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->IP[_IP_IDX(IRQn)] = ((uint32_t)(NVIC->IP[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | - (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - } - else - { - SCB->SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | - (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - } -} - - -/** - \brief Get Interrupt Priority - \details Reads the priority of a device specific interrupt or a processor exception. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Interrupt Priority. - Value is aligned automatically to the implemented priority bits of the microcontroller. - */ -__STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) -{ - - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->IP[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); - } - else - { - return((uint32_t)(((SCB->SHP[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); - } -} - - -/** - \brief Encode Priority - \details Encodes the priority for an interrupt with the given priority group, - preemptive priority value, and subpriority value. - 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 Used priority group. - \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) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - - return ( - ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) - ); -} - - -/** - \brief Decode Priority - \details Decodes an interrupt priority value with a given priority group to - preemptive priority value and subpriority value. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. - \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). - \param [in] PriorityGroup Used priority group. - \param [out] pPreemptPriority Preemptive priority value (starting from 0). - \param [out] pSubPriority Subpriority value (starting from 0). - */ -__STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - - *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); - *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); -} - - - -/** - \brief Set Interrupt Vector - \details Sets an interrupt vector in SRAM based interrupt vector table. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - Address 0 must be mapped to SRAM. - \param [in] IRQn Interrupt number - \param [in] vector Address of interrupt handler function - */ -__STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) -{ - uint32_t vectors = 0x0U; - (* (int *) (vectors + ((int32_t)IRQn + NVIC_USER_IRQ_OFFSET) * 4)) = vector; - /* ARM Application Note 321 states that the M0 does not require the architectural barrier */ -} - - -/** - \brief Get Interrupt Vector - \details Reads an interrupt vector from interrupt vector table. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Address of interrupt handler function - */ -__STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) -{ - uint32_t vectors = 0x0U; - return (uint32_t)(* (int *) (vectors + ((int32_t)IRQn + NVIC_USER_IRQ_OFFSET) * 4)); -} - - -/** - \brief System Reset - \details Initiates a system reset request to reset the MCU. - */ -__NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) -{ - __DSB(); /* Ensure all outstanding memory accesses included - buffered write are completed before reset */ - SCB->AIRCR = ((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - SCB_AIRCR_SYSRESETREQ_Msk); - __DSB(); /* Ensure completion of memory access */ - - for(;;) /* wait until reset */ - { - __NOP(); - } -} - -/*@} end of CMSIS_Core_NVICFunctions */ - - -/* ########################## FPU functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_FpuFunctions FPU Functions - \brief Function that provides FPU type. - @{ - */ - -/** - \brief get FPU type - \details returns the FPU type - \returns - - \b 0: No FPU - - \b 1: Single precision FPU - - \b 2: Double + Single precision FPU - */ -__STATIC_INLINE uint32_t SCB_GetFPUType(void) -{ - return 0U; /* No FPU */ -} - - -/*@} end of CMSIS_Core_FpuFunctions */ - - - -/* ################################## SysTick function ############################################ */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SysTickFunctions SysTick Functions - \brief Functions that configure the System. - @{ - */ - -#if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) - -/** - \brief System Tick Configuration - \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. - Counter is in free running mode to generate periodic interrupts. - \param [in] ticks Number of ticks between two interrupts. - \return 0 Function succeeded. - \return 1 Function failed. - \note When the variable __Vendor_SysTickConfig is set to 1, then the - function SysTick_Config is not included. In this case, the file device.h - must contain a vendor-specific implementation of this function. - */ -__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) -{ - if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - { - return (1UL); /* Reload value impossible */ - } - - SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ - SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0UL); /* Function successful */ -} - -#endif - -/*@} end of CMSIS_Core_SysTickFunctions */ - - - - -#ifdef __cplusplus -} -#endif - -#endif /* __CORE_CM0_H_DEPENDANT */ - -#endif /* __CMSIS_GENERIC */ diff --git a/Drivers/CMSIS/Include/core_cm0plus.h b/Drivers/CMSIS/Include/core_cm0plus.h deleted file mode 100644 index d104965..0000000 --- a/Drivers/CMSIS/Include/core_cm0plus.h +++ /dev/null @@ -1,1085 +0,0 @@ -/**************************************************************************//** - * @file core_cm0plus.h - * @brief CMSIS Cortex-M0+ Core Peripheral Access Layer Header File - * @version V5.0.7 - * @date 13. March 2019 - ******************************************************************************/ -/* - * Copyright (c) 2009-2019 Arm Limited. All rights reserved. - * - * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the License); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#if defined ( __ICCARM__ ) - #pragma system_include /* treat file as system include file for MISRA check */ -#elif defined (__clang__) - #pragma clang system_header /* treat file as system include file */ -#endif - -#ifndef __CORE_CM0PLUS_H_GENERIC -#define __CORE_CM0PLUS_H_GENERIC - -#include - -#ifdef __cplusplus - extern "C" { -#endif - -/** - \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions - CMSIS violates the following MISRA-C:2004 rules: - - \li Required Rule 8.5, object/function definition in header file.
- Function definitions in header files are used to allow 'inlining'. - - \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
- Unions are used for effective representation of core registers. - - \li Advisory Rule 19.7, Function-like macro defined.
- Function-like macros are used to allow more efficient code. - */ - - -/******************************************************************************* - * CMSIS definitions - ******************************************************************************/ -/** - \ingroup Cortex-M0+ - @{ - */ - -#include "cmsis_version.h" - -/* CMSIS CM0+ definitions */ -#define __CM0PLUS_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ -#define __CM0PLUS_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ -#define __CM0PLUS_CMSIS_VERSION ((__CM0PLUS_CMSIS_VERSION_MAIN << 16U) | \ - __CM0PLUS_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ - -#define __CORTEX_M (0U) /*!< Cortex-M Core */ - -/** __FPU_USED indicates whether an FPU is used or not. - This core does not support an FPU at all -*/ -#define __FPU_USED 0U - -#if defined ( __CC_ARM ) - #if defined __TARGET_FPU_VFP - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) - #if defined __ARM_FP - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __GNUC__ ) - #if defined (__VFP_FP__) && !defined(__SOFTFP__) - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __ICCARM__ ) - #if defined __ARMVFP__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __TI_ARM__ ) - #if defined __TI_VFP_SUPPORT__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __TASKING__ ) - #if defined __FPU_VFP__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __CSMC__ ) - #if ( __CSMC__ & 0x400U) - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#endif - -#include "cmsis_compiler.h" /* CMSIS compiler specific defines */ - - -#ifdef __cplusplus -} -#endif - -#endif /* __CORE_CM0PLUS_H_GENERIC */ - -#ifndef __CMSIS_GENERIC - -#ifndef __CORE_CM0PLUS_H_DEPENDANT -#define __CORE_CM0PLUS_H_DEPENDANT - -#ifdef __cplusplus - extern "C" { -#endif - -/* check device defines and use defaults */ -#if defined __CHECK_DEVICE_DEFINES - #ifndef __CM0PLUS_REV - #define __CM0PLUS_REV 0x0000U - #warning "__CM0PLUS_REV not defined in device header file; using default!" - #endif - - #ifndef __MPU_PRESENT - #define __MPU_PRESENT 0U - #warning "__MPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __VTOR_PRESENT - #define __VTOR_PRESENT 0U - #warning "__VTOR_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __NVIC_PRIO_BITS - #define __NVIC_PRIO_BITS 2U - #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" - #endif - - #ifndef __Vendor_SysTickConfig - #define __Vendor_SysTickConfig 0U - #warning "__Vendor_SysTickConfig not defined in device header file; using default!" - #endif -#endif - -/* IO definitions (access restrictions to peripheral registers) */ -/** - \defgroup CMSIS_glob_defs CMSIS Global Defines - - IO Type Qualifiers are used - \li to specify the access to peripheral variables. - \li for automatic generation of peripheral register debug information. -*/ -#ifdef __cplusplus - #define __I volatile /*!< Defines 'read only' permissions */ -#else - #define __I volatile const /*!< Defines 'read only' permissions */ -#endif -#define __O volatile /*!< Defines 'write only' permissions */ -#define __IO volatile /*!< Defines 'read / write' permissions */ - -/* following defines should be used for structure members */ -#define __IM volatile const /*! Defines 'read only' structure member permissions */ -#define __OM volatile /*! Defines 'write only' structure member permissions */ -#define __IOM volatile /*! Defines 'read / write' structure member permissions */ - -/*@} end of group Cortex-M0+ */ - - - -/******************************************************************************* - * Register Abstraction - Core Register contain: - - Core Register - - Core NVIC Register - - Core SCB Register - - Core SysTick Register - - Core MPU Register - ******************************************************************************/ -/** - \defgroup CMSIS_core_register Defines and Type Definitions - \brief Type definitions and defines for Cortex-M processor based devices. -*/ - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_CORE Status and Control Registers - \brief Core Register type definitions. - @{ - */ - -/** - \brief Union type to access the Application Program Status Register (APSR). - */ -typedef union -{ - struct - { - uint32_t _reserved0:28; /*!< bit: 0..27 Reserved */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} APSR_Type; - -/* APSR Register Definitions */ -#define APSR_N_Pos 31U /*!< APSR: N Position */ -#define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ - -#define APSR_Z_Pos 30U /*!< APSR: Z Position */ -#define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ - -#define APSR_C_Pos 29U /*!< APSR: C Position */ -#define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ - -#define APSR_V_Pos 28U /*!< APSR: V Position */ -#define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ - - -/** - \brief Union type to access the Interrupt Program Status Register (IPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} IPSR_Type; - -/* IPSR Register Definitions */ -#define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ -#define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ - - -/** - \brief Union type to access the Special-Purpose Program Status Registers (xPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ - uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ - uint32_t _reserved1:3; /*!< bit: 25..27 Reserved */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} xPSR_Type; - -/* xPSR Register Definitions */ -#define xPSR_N_Pos 31U /*!< xPSR: N Position */ -#define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ - -#define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ -#define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ - -#define xPSR_C_Pos 29U /*!< xPSR: C Position */ -#define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ - -#define xPSR_V_Pos 28U /*!< xPSR: V Position */ -#define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ - -#define xPSR_T_Pos 24U /*!< xPSR: T Position */ -#define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ - -#define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ -#define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ - - -/** - \brief Union type to access the Control Registers (CONTROL). - */ -typedef union -{ - struct - { - uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ - uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ - uint32_t _reserved1:30; /*!< bit: 2..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} CONTROL_Type; - -/* CONTROL Register Definitions */ -#define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ -#define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ - -#define CONTROL_nPRIV_Pos 0U /*!< CONTROL: nPRIV Position */ -#define CONTROL_nPRIV_Msk (1UL /*<< CONTROL_nPRIV_Pos*/) /*!< CONTROL: nPRIV Mask */ - -/*@} end of group CMSIS_CORE */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) - \brief Type definitions for the NVIC Registers - @{ - */ - -/** - \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). - */ -typedef struct -{ - __IOM uint32_t ISER[1U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ - uint32_t RESERVED0[31U]; - __IOM uint32_t ICER[1U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ - uint32_t RESERVED1[31U]; - __IOM uint32_t ISPR[1U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ - uint32_t RESERVED2[31U]; - __IOM uint32_t ICPR[1U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ - uint32_t RESERVED3[31U]; - uint32_t RESERVED4[64U]; - __IOM uint32_t IP[8U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register */ -} NVIC_Type; - -/*@} end of group CMSIS_NVIC */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SCB System Control Block (SCB) - \brief Type definitions for the System Control Block Registers - @{ - */ - -/** - \brief Structure type to access the System Control Block (SCB). - */ -typedef struct -{ - __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ - __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ -#if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) - __IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ -#else - uint32_t RESERVED0; -#endif - __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ - __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ - __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ - uint32_t RESERVED1; - __IOM uint32_t SHP[2U]; /*!< Offset: 0x01C (R/W) System Handlers Priority Registers. [0] is RESERVED */ - __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ -} SCB_Type; - -/* SCB CPUID Register Definitions */ -#define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ -#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ - -#define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ -#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ - -#define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ -#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ - -#define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ -#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ - -#define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ -#define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ - -/* SCB Interrupt Control State Register Definitions */ -#define SCB_ICSR_NMIPENDSET_Pos 31U /*!< SCB ICSR: NMIPENDSET Position */ -#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ - -#define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ -#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ - -#define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ -#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ - -#define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ -#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ - -#define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ -#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ - -#define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ -#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ - -#define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ -#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ - -#define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ -#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ - -#define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ -#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ - -#if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) -/* SCB Interrupt Control State Register Definitions */ -#define SCB_VTOR_TBLOFF_Pos 8U /*!< SCB VTOR: TBLOFF Position */ -#define SCB_VTOR_TBLOFF_Msk (0xFFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ -#endif - -/* SCB Application Interrupt and Reset Control Register Definitions */ -#define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ -#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ - -#define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ -#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ - -#define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ -#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ - -#define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ -#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ - -#define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ -#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ - -/* SCB System Control Register Definitions */ -#define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ -#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ - -#define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ -#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ - -#define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ -#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ - -/* SCB Configuration Control Register Definitions */ -#define SCB_CCR_STKALIGN_Pos 9U /*!< SCB CCR: STKALIGN Position */ -#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ - -#define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ -#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ - -/* SCB System Handler Control and State Register Definitions */ -#define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ -#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ - -/*@} end of group CMSIS_SCB */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SysTick System Tick Timer (SysTick) - \brief Type definitions for the System Timer Registers. - @{ - */ - -/** - \brief Structure type to access the System Timer (SysTick). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ - __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ - __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ - __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ -} SysTick_Type; - -/* SysTick Control / Status Register Definitions */ -#define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ -#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ - -#define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ -#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ - -#define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ -#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ - -#define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ -#define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ - -/* SysTick Reload Register Definitions */ -#define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ -#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ - -/* SysTick Current Register Definitions */ -#define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ -#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ - -/* SysTick Calibration Register Definitions */ -#define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ -#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ - -#define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ -#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ - -#define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ -#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ - -/*@} end of group CMSIS_SysTick */ - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_MPU Memory Protection Unit (MPU) - \brief Type definitions for the Memory Protection Unit (MPU) - @{ - */ - -/** - \brief Structure type to access the Memory Protection Unit (MPU). - */ -typedef struct -{ - __IM uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ - __IOM uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ - __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ - __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ - __IOM uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ -} MPU_Type; - -#define MPU_TYPE_RALIASES 1U - -/* MPU Type Register Definitions */ -#define MPU_TYPE_IREGION_Pos 16U /*!< MPU TYPE: IREGION Position */ -#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ - -#define MPU_TYPE_DREGION_Pos 8U /*!< MPU TYPE: DREGION Position */ -#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ - -#define MPU_TYPE_SEPARATE_Pos 0U /*!< MPU TYPE: SEPARATE Position */ -#define MPU_TYPE_SEPARATE_Msk (1UL /*<< MPU_TYPE_SEPARATE_Pos*/) /*!< MPU TYPE: SEPARATE Mask */ - -/* MPU Control Register Definitions */ -#define MPU_CTRL_PRIVDEFENA_Pos 2U /*!< MPU CTRL: PRIVDEFENA Position */ -#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ - -#define MPU_CTRL_HFNMIENA_Pos 1U /*!< MPU CTRL: HFNMIENA Position */ -#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ - -#define MPU_CTRL_ENABLE_Pos 0U /*!< MPU CTRL: ENABLE Position */ -#define MPU_CTRL_ENABLE_Msk (1UL /*<< MPU_CTRL_ENABLE_Pos*/) /*!< MPU CTRL: ENABLE Mask */ - -/* MPU Region Number Register Definitions */ -#define MPU_RNR_REGION_Pos 0U /*!< MPU RNR: REGION Position */ -#define MPU_RNR_REGION_Msk (0xFFUL /*<< MPU_RNR_REGION_Pos*/) /*!< MPU RNR: REGION Mask */ - -/* MPU Region Base Address Register Definitions */ -#define MPU_RBAR_ADDR_Pos 8U /*!< MPU RBAR: ADDR Position */ -#define MPU_RBAR_ADDR_Msk (0xFFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ - -#define MPU_RBAR_VALID_Pos 4U /*!< MPU RBAR: VALID Position */ -#define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ - -#define MPU_RBAR_REGION_Pos 0U /*!< MPU RBAR: REGION Position */ -#define MPU_RBAR_REGION_Msk (0xFUL /*<< MPU_RBAR_REGION_Pos*/) /*!< MPU RBAR: REGION Mask */ - -/* MPU Region Attribute and Size Register Definitions */ -#define MPU_RASR_ATTRS_Pos 16U /*!< MPU RASR: MPU Region Attribute field Position */ -#define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ - -#define MPU_RASR_XN_Pos 28U /*!< MPU RASR: ATTRS.XN Position */ -#define MPU_RASR_XN_Msk (1UL << MPU_RASR_XN_Pos) /*!< MPU RASR: ATTRS.XN Mask */ - -#define MPU_RASR_AP_Pos 24U /*!< MPU RASR: ATTRS.AP Position */ -#define MPU_RASR_AP_Msk (0x7UL << MPU_RASR_AP_Pos) /*!< MPU RASR: ATTRS.AP Mask */ - -#define MPU_RASR_TEX_Pos 19U /*!< MPU RASR: ATTRS.TEX Position */ -#define MPU_RASR_TEX_Msk (0x7UL << MPU_RASR_TEX_Pos) /*!< MPU RASR: ATTRS.TEX Mask */ - -#define MPU_RASR_S_Pos 18U /*!< MPU RASR: ATTRS.S Position */ -#define MPU_RASR_S_Msk (1UL << MPU_RASR_S_Pos) /*!< MPU RASR: ATTRS.S Mask */ - -#define MPU_RASR_C_Pos 17U /*!< MPU RASR: ATTRS.C Position */ -#define MPU_RASR_C_Msk (1UL << MPU_RASR_C_Pos) /*!< MPU RASR: ATTRS.C Mask */ - -#define MPU_RASR_B_Pos 16U /*!< MPU RASR: ATTRS.B Position */ -#define MPU_RASR_B_Msk (1UL << MPU_RASR_B_Pos) /*!< MPU RASR: ATTRS.B Mask */ - -#define MPU_RASR_SRD_Pos 8U /*!< MPU RASR: Sub-Region Disable Position */ -#define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ - -#define MPU_RASR_SIZE_Pos 1U /*!< MPU RASR: Region Size Field Position */ -#define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ - -#define MPU_RASR_ENABLE_Pos 0U /*!< MPU RASR: Region enable bit Position */ -#define MPU_RASR_ENABLE_Msk (1UL /*<< MPU_RASR_ENABLE_Pos*/) /*!< MPU RASR: Region enable bit Disable Mask */ - -/*@} end of group CMSIS_MPU */ -#endif - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) - \brief Cortex-M0+ Core Debug Registers (DCB registers, SHCSR, and DFSR) are only accessible over DAP and not via processor. - Therefore they are not covered by the Cortex-M0+ header file. - @{ - */ -/*@} end of group CMSIS_CoreDebug */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_core_bitfield Core register bit field macros - \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). - @{ - */ - -/** - \brief Mask and shift a bit field value for use in a register bit range. - \param[in] field Name of the register bit field. - \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. - \return Masked and shifted value. -*/ -#define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) - -/** - \brief Mask and shift a register value to extract a bit filed value. - \param[in] field Name of the register bit field. - \param[in] value Value of register. This parameter is interpreted as an uint32_t type. - \return Masked and shifted bit field value. -*/ -#define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) - -/*@} end of group CMSIS_core_bitfield */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_core_base Core Definitions - \brief Definitions for base addresses, unions, and structures. - @{ - */ - -/* Memory mapping of Core Hardware */ -#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ -#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ -#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ -#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ - -#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ -#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ -#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) - #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ - #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ -#endif - -/*@} */ - - - -/******************************************************************************* - * Hardware Abstraction Layer - Core Function Interface contains: - - Core NVIC Functions - - Core SysTick Functions - - Core Register Access Functions - ******************************************************************************/ -/** - \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference -*/ - - - -/* ########################## NVIC functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_NVICFunctions NVIC Functions - \brief Functions that manage interrupts and exceptions via the NVIC. - @{ - */ - -#ifdef CMSIS_NVIC_VIRTUAL - #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE - #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" - #endif - #include CMSIS_NVIC_VIRTUAL_HEADER_FILE -#else - #define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping - #define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping - #define NVIC_EnableIRQ __NVIC_EnableIRQ - #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ - #define NVIC_DisableIRQ __NVIC_DisableIRQ - #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ - #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ - #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ -/*#define NVIC_GetActive __NVIC_GetActive not available for Cortex-M0+ */ - #define NVIC_SetPriority __NVIC_SetPriority - #define NVIC_GetPriority __NVIC_GetPriority - #define NVIC_SystemReset __NVIC_SystemReset -#endif /* CMSIS_NVIC_VIRTUAL */ - -#ifdef CMSIS_VECTAB_VIRTUAL - #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE - #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" - #endif - #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE -#else - #define NVIC_SetVector __NVIC_SetVector - #define NVIC_GetVector __NVIC_GetVector -#endif /* (CMSIS_VECTAB_VIRTUAL) */ - -#define NVIC_USER_IRQ_OFFSET 16 - - -/* The following EXC_RETURN values are saved the LR on exception entry */ -#define EXC_RETURN_HANDLER (0xFFFFFFF1UL) /* return to Handler mode, uses MSP after return */ -#define EXC_RETURN_THREAD_MSP (0xFFFFFFF9UL) /* return to Thread mode, uses MSP after return */ -#define EXC_RETURN_THREAD_PSP (0xFFFFFFFDUL) /* return to Thread mode, uses PSP after return */ - - -/* Interrupt Priorities are WORD accessible only under Armv6-M */ -/* The following MACROS handle generation of the register offset and byte masks */ -#define _BIT_SHIFT(IRQn) ( ((((uint32_t)(int32_t)(IRQn)) ) & 0x03UL) * 8UL) -#define _SHP_IDX(IRQn) ( (((((uint32_t)(int32_t)(IRQn)) & 0x0FUL)-8UL) >> 2UL) ) -#define _IP_IDX(IRQn) ( (((uint32_t)(int32_t)(IRQn)) >> 2UL) ) - -#define __NVIC_SetPriorityGrouping(X) (void)(X) -#define __NVIC_GetPriorityGrouping() (0U) - -/** - \brief Enable Interrupt - \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) -{ - if ((int32_t)(IRQn) >= 0) - { - __COMPILER_BARRIER(); - NVIC->ISER[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - __COMPILER_BARRIER(); - } -} - - -/** - \brief Get Interrupt Enable status - \details Returns a device specific interrupt enable status from the NVIC interrupt controller. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt is not enabled. - \return 1 Interrupt is enabled. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ISER[0U] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Disable Interrupt - \details Disables 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_DisableIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ICER[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - __DSB(); - __ISB(); - } -} - - -/** - \brief Get Pending Interrupt - \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not pending. - \return 1 Interrupt status is pending. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ISPR[0U] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Pending Interrupt - \details Sets the pending bit of a device specific interrupt in the NVIC pending register. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ISPR[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Clear Pending Interrupt - \details Clears the pending bit of a device specific interrupt in the NVIC pending register. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ICPR[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Set Interrupt Priority - \details Sets the priority of a device specific interrupt or a processor exception. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \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) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->IP[_IP_IDX(IRQn)] = ((uint32_t)(NVIC->IP[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | - (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - } - else - { - SCB->SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | - (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - } -} - - -/** - \brief Get Interrupt Priority - \details Reads the priority of a device specific interrupt or a processor exception. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Interrupt Priority. - Value is aligned automatically to the implemented priority bits of the microcontroller. - */ -__STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) -{ - - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->IP[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); - } - else - { - return((uint32_t)(((SCB->SHP[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); - } -} - - -/** - \brief Encode Priority - \details Encodes the priority for an interrupt with the given priority group, - preemptive priority value, and subpriority value. - 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 Used priority group. - \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) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - - return ( - ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) - ); -} - - -/** - \brief Decode Priority - \details Decodes an interrupt priority value with a given priority group to - preemptive priority value and subpriority value. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. - \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). - \param [in] PriorityGroup Used priority group. - \param [out] pPreemptPriority Preemptive priority value (starting from 0). - \param [out] pSubPriority Subpriority value (starting from 0). - */ -__STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - - *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); - *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); -} - - -/** - \brief Set Interrupt Vector - \details Sets an interrupt vector in SRAM based interrupt vector table. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - VTOR must been relocated to SRAM before. - If VTOR is not present address 0 must be mapped to SRAM. - \param [in] IRQn Interrupt number - \param [in] vector Address of interrupt handler function - */ -__STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) -{ -#if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) - uint32_t vectors = SCB->VTOR; -#else - uint32_t vectors = 0x0U; -#endif - (* (int *) (vectors + ((int32_t)IRQn + NVIC_USER_IRQ_OFFSET) * 4)) = vector; - /* ARM Application Note 321 states that the M0+ does not require the architectural barrier */ -} - - -/** - \brief Get Interrupt Vector - \details Reads an interrupt vector from interrupt vector table. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Address of interrupt handler function - */ -__STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) -{ -#if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) - uint32_t vectors = SCB->VTOR; -#else - uint32_t vectors = 0x0U; -#endif - return (uint32_t)(* (int *) (vectors + ((int32_t)IRQn + NVIC_USER_IRQ_OFFSET) * 4)); -} - - -/** - \brief System Reset - \details Initiates a system reset request to reset the MCU. - */ -__NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) -{ - __DSB(); /* Ensure all outstanding memory accesses included - buffered write are completed before reset */ - SCB->AIRCR = ((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - SCB_AIRCR_SYSRESETREQ_Msk); - __DSB(); /* Ensure completion of memory access */ - - for(;;) /* wait until reset */ - { - __NOP(); - } -} - -/*@} end of CMSIS_Core_NVICFunctions */ - -/* ########################## MPU functions #################################### */ - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) - -#include "mpu_armv7.h" - -#endif - -/* ########################## FPU functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_FpuFunctions FPU Functions - \brief Function that provides FPU type. - @{ - */ - -/** - \brief get FPU type - \details returns the FPU type - \returns - - \b 0: No FPU - - \b 1: Single precision FPU - - \b 2: Double + Single precision FPU - */ -__STATIC_INLINE uint32_t SCB_GetFPUType(void) -{ - return 0U; /* No FPU */ -} - - -/*@} end of CMSIS_Core_FpuFunctions */ - - - -/* ################################## SysTick function ############################################ */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SysTickFunctions SysTick Functions - \brief Functions that configure the System. - @{ - */ - -#if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) - -/** - \brief System Tick Configuration - \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. - Counter is in free running mode to generate periodic interrupts. - \param [in] ticks Number of ticks between two interrupts. - \return 0 Function succeeded. - \return 1 Function failed. - \note When the variable __Vendor_SysTickConfig is set to 1, then the - function SysTick_Config is not included. In this case, the file device.h - must contain a vendor-specific implementation of this function. - */ -__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) -{ - if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - { - return (1UL); /* Reload value impossible */ - } - - SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ - SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0UL); /* Function successful */ -} - -#endif - -/*@} end of CMSIS_Core_SysTickFunctions */ - - - - -#ifdef __cplusplus -} -#endif - -#endif /* __CORE_CM0PLUS_H_DEPENDANT */ - -#endif /* __CMSIS_GENERIC */ diff --git a/Drivers/CMSIS/Include/core_cm1.h b/Drivers/CMSIS/Include/core_cm1.h deleted file mode 100644 index 76b4569..0000000 --- a/Drivers/CMSIS/Include/core_cm1.h +++ /dev/null @@ -1,979 +0,0 @@ -/**************************************************************************//** - * @file core_cm1.h - * @brief CMSIS Cortex-M1 Core Peripheral Access Layer Header File - * @version V1.0.1 - * @date 12. November 2018 - ******************************************************************************/ -/* - * Copyright (c) 2009-2018 Arm Limited. All rights reserved. - * - * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the License); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#if defined ( __ICCARM__ ) - #pragma system_include /* treat file as system include file for MISRA check */ -#elif defined (__clang__) - #pragma clang system_header /* treat file as system include file */ -#endif - -#ifndef __CORE_CM1_H_GENERIC -#define __CORE_CM1_H_GENERIC - -#include - -#ifdef __cplusplus - extern "C" { -#endif - -/** - \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions - CMSIS violates the following MISRA-C:2004 rules: - - \li Required Rule 8.5, object/function definition in header file.
- Function definitions in header files are used to allow 'inlining'. - - \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
- Unions are used for effective representation of core registers. - - \li Advisory Rule 19.7, Function-like macro defined.
- Function-like macros are used to allow more efficient code. - */ - - -/******************************************************************************* - * CMSIS definitions - ******************************************************************************/ -/** - \ingroup Cortex_M1 - @{ - */ - -#include "cmsis_version.h" - -/* CMSIS CM1 definitions */ -#define __CM1_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ -#define __CM1_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ -#define __CM1_CMSIS_VERSION ((__CM1_CMSIS_VERSION_MAIN << 16U) | \ - __CM1_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ - -#define __CORTEX_M (1U) /*!< Cortex-M Core */ - -/** __FPU_USED indicates whether an FPU is used or not. - This core does not support an FPU at all -*/ -#define __FPU_USED 0U - -#if defined ( __CC_ARM ) - #if defined __TARGET_FPU_VFP - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) - #if defined __ARM_FP - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __GNUC__ ) - #if defined (__VFP_FP__) && !defined(__SOFTFP__) - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __ICCARM__ ) - #if defined __ARMVFP__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __TI_ARM__ ) - #if defined __TI_VFP_SUPPORT__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __TASKING__ ) - #if defined __FPU_VFP__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __CSMC__ ) - #if ( __CSMC__ & 0x400U) - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#endif - -#include "cmsis_compiler.h" /* CMSIS compiler specific defines */ - - -#ifdef __cplusplus -} -#endif - -#endif /* __CORE_CM1_H_GENERIC */ - -#ifndef __CMSIS_GENERIC - -#ifndef __CORE_CM1_H_DEPENDANT -#define __CORE_CM1_H_DEPENDANT - -#ifdef __cplusplus - extern "C" { -#endif - -/* check device defines and use defaults */ -#if defined __CHECK_DEVICE_DEFINES - #ifndef __CM1_REV - #define __CM1_REV 0x0100U - #warning "__CM1_REV not defined in device header file; using default!" - #endif - - #ifndef __NVIC_PRIO_BITS - #define __NVIC_PRIO_BITS 2U - #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" - #endif - - #ifndef __Vendor_SysTickConfig - #define __Vendor_SysTickConfig 0U - #warning "__Vendor_SysTickConfig not defined in device header file; using default!" - #endif -#endif - -/* IO definitions (access restrictions to peripheral registers) */ -/** - \defgroup CMSIS_glob_defs CMSIS Global Defines - - IO Type Qualifiers are used - \li to specify the access to peripheral variables. - \li for automatic generation of peripheral register debug information. -*/ -#ifdef __cplusplus - #define __I volatile /*!< Defines 'read only' permissions */ -#else - #define __I volatile const /*!< Defines 'read only' permissions */ -#endif -#define __O volatile /*!< Defines 'write only' permissions */ -#define __IO volatile /*!< Defines 'read / write' permissions */ - -/* following defines should be used for structure members */ -#define __IM volatile const /*! Defines 'read only' structure member permissions */ -#define __OM volatile /*! Defines 'write only' structure member permissions */ -#define __IOM volatile /*! Defines 'read / write' structure member permissions */ - -/*@} end of group Cortex_M1 */ - - - -/******************************************************************************* - * Register Abstraction - Core Register contain: - - Core Register - - Core NVIC Register - - Core SCB Register - - Core SysTick Register - ******************************************************************************/ -/** - \defgroup CMSIS_core_register Defines and Type Definitions - \brief Type definitions and defines for Cortex-M processor based devices. -*/ - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_CORE Status and Control Registers - \brief Core Register type definitions. - @{ - */ - -/** - \brief Union type to access the Application Program Status Register (APSR). - */ -typedef union -{ - struct - { - uint32_t _reserved0:28; /*!< bit: 0..27 Reserved */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} APSR_Type; - -/* APSR Register Definitions */ -#define APSR_N_Pos 31U /*!< APSR: N Position */ -#define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ - -#define APSR_Z_Pos 30U /*!< APSR: Z Position */ -#define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ - -#define APSR_C_Pos 29U /*!< APSR: C Position */ -#define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ - -#define APSR_V_Pos 28U /*!< APSR: V Position */ -#define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ - - -/** - \brief Union type to access the Interrupt Program Status Register (IPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} IPSR_Type; - -/* IPSR Register Definitions */ -#define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ -#define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ - - -/** - \brief Union type to access the Special-Purpose Program Status Registers (xPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ - uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ - uint32_t _reserved1:3; /*!< bit: 25..27 Reserved */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} xPSR_Type; - -/* xPSR Register Definitions */ -#define xPSR_N_Pos 31U /*!< xPSR: N Position */ -#define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ - -#define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ -#define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ - -#define xPSR_C_Pos 29U /*!< xPSR: C Position */ -#define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ - -#define xPSR_V_Pos 28U /*!< xPSR: V Position */ -#define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ - -#define xPSR_T_Pos 24U /*!< xPSR: T Position */ -#define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ - -#define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ -#define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ - - -/** - \brief Union type to access the Control Registers (CONTROL). - */ -typedef union -{ - struct - { - uint32_t _reserved0:1; /*!< bit: 0 Reserved */ - uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ - uint32_t _reserved1:30; /*!< bit: 2..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} CONTROL_Type; - -/* CONTROL Register Definitions */ -#define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ -#define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ - -/*@} end of group CMSIS_CORE */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) - \brief Type definitions for the NVIC Registers - @{ - */ - -/** - \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). - */ -typedef struct -{ - __IOM uint32_t ISER[1U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ - uint32_t RESERVED0[31U]; - __IOM uint32_t ICER[1U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ - uint32_t RSERVED1[31U]; - __IOM uint32_t ISPR[1U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ - uint32_t RESERVED2[31U]; - __IOM uint32_t ICPR[1U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ - uint32_t RESERVED3[31U]; - uint32_t RESERVED4[64U]; - __IOM uint32_t IP[8U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register */ -} NVIC_Type; - -/*@} end of group CMSIS_NVIC */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SCB System Control Block (SCB) - \brief Type definitions for the System Control Block Registers - @{ - */ - -/** - \brief Structure type to access the System Control Block (SCB). - */ -typedef struct -{ - __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ - __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ - uint32_t RESERVED0; - __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ - __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ - __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ - uint32_t RESERVED1; - __IOM uint32_t SHP[2U]; /*!< Offset: 0x01C (R/W) System Handlers Priority Registers. [0] is RESERVED */ - __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ -} SCB_Type; - -/* SCB CPUID Register Definitions */ -#define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ -#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ - -#define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ -#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ - -#define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ -#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ - -#define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ -#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ - -#define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ -#define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ - -/* SCB Interrupt Control State Register Definitions */ -#define SCB_ICSR_NMIPENDSET_Pos 31U /*!< SCB ICSR: NMIPENDSET Position */ -#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ - -#define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ -#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ - -#define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ -#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ - -#define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ -#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ - -#define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ -#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ - -#define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ -#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ - -#define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ -#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ - -#define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ -#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ - -#define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ -#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ - -/* SCB Application Interrupt and Reset Control Register Definitions */ -#define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ -#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ - -#define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ -#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ - -#define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ -#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ - -#define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ -#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ - -#define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ -#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ - -/* SCB System Control Register Definitions */ -#define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ -#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ - -#define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ -#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ - -#define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ -#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ - -/* SCB Configuration Control Register Definitions */ -#define SCB_CCR_STKALIGN_Pos 9U /*!< SCB CCR: STKALIGN Position */ -#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ - -#define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ -#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ - -/* SCB System Handler Control and State Register Definitions */ -#define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ -#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ - -/*@} end of group CMSIS_SCB */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) - \brief Type definitions for the System Control and ID Register not in the SCB - @{ - */ - -/** - \brief Structure type to access the System Control and ID Register not in the SCB. - */ -typedef struct -{ - uint32_t RESERVED0[2U]; - __IOM uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ -} SCnSCB_Type; - -/* Auxiliary Control Register Definitions */ -#define SCnSCB_ACTLR_ITCMUAEN_Pos 4U /*!< ACTLR: Instruction TCM Upper Alias Enable Position */ -#define SCnSCB_ACTLR_ITCMUAEN_Msk (1UL << SCnSCB_ACTLR_ITCMUAEN_Pos) /*!< ACTLR: Instruction TCM Upper Alias Enable Mask */ - -#define SCnSCB_ACTLR_ITCMLAEN_Pos 3U /*!< ACTLR: Instruction TCM Lower Alias Enable Position */ -#define SCnSCB_ACTLR_ITCMLAEN_Msk (1UL << SCnSCB_ACTLR_ITCMLAEN_Pos) /*!< ACTLR: Instruction TCM Lower Alias Enable Mask */ - -/*@} end of group CMSIS_SCnotSCB */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SysTick System Tick Timer (SysTick) - \brief Type definitions for the System Timer Registers. - @{ - */ - -/** - \brief Structure type to access the System Timer (SysTick). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ - __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ - __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ - __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ -} SysTick_Type; - -/* SysTick Control / Status Register Definitions */ -#define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ -#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ - -#define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ -#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ - -#define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ -#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ - -#define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ -#define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ - -/* SysTick Reload Register Definitions */ -#define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ -#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ - -/* SysTick Current Register Definitions */ -#define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ -#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ - -/* SysTick Calibration Register Definitions */ -#define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ -#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ - -#define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ -#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ - -#define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ -#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ - -/*@} end of group CMSIS_SysTick */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) - \brief Cortex-M1 Core Debug Registers (DCB registers, SHCSR, and DFSR) are only accessible over DAP and not via processor. - Therefore they are not covered by the Cortex-M1 header file. - @{ - */ -/*@} end of group CMSIS_CoreDebug */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_core_bitfield Core register bit field macros - \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). - @{ - */ - -/** - \brief Mask and shift a bit field value for use in a register bit range. - \param[in] field Name of the register bit field. - \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. - \return Masked and shifted value. -*/ -#define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) - -/** - \brief Mask and shift a register value to extract a bit filed value. - \param[in] field Name of the register bit field. - \param[in] value Value of register. This parameter is interpreted as an uint32_t type. - \return Masked and shifted bit field value. -*/ -#define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) - -/*@} end of group CMSIS_core_bitfield */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_core_base Core Definitions - \brief Definitions for base addresses, unions, and structures. - @{ - */ - -/* Memory mapping of Core Hardware */ -#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ -#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ -#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ -#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ - -#define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ -#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ -#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ -#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ - - -/*@} */ - - - -/******************************************************************************* - * Hardware Abstraction Layer - Core Function Interface contains: - - Core NVIC Functions - - Core SysTick Functions - - Core Register Access Functions - ******************************************************************************/ -/** - \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference -*/ - - - -/* ########################## NVIC functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_NVICFunctions NVIC Functions - \brief Functions that manage interrupts and exceptions via the NVIC. - @{ - */ - -#ifdef CMSIS_NVIC_VIRTUAL - #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE - #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" - #endif - #include CMSIS_NVIC_VIRTUAL_HEADER_FILE -#else - #define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping - #define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping - #define NVIC_EnableIRQ __NVIC_EnableIRQ - #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ - #define NVIC_DisableIRQ __NVIC_DisableIRQ - #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ - #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ - #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ -/*#define NVIC_GetActive __NVIC_GetActive not available for Cortex-M1 */ - #define NVIC_SetPriority __NVIC_SetPriority - #define NVIC_GetPriority __NVIC_GetPriority - #define NVIC_SystemReset __NVIC_SystemReset -#endif /* CMSIS_NVIC_VIRTUAL */ - -#ifdef CMSIS_VECTAB_VIRTUAL - #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE - #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" - #endif - #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE -#else - #define NVIC_SetVector __NVIC_SetVector - #define NVIC_GetVector __NVIC_GetVector -#endif /* (CMSIS_VECTAB_VIRTUAL) */ - -#define NVIC_USER_IRQ_OFFSET 16 - - -/* The following EXC_RETURN values are saved the LR on exception entry */ -#define EXC_RETURN_HANDLER (0xFFFFFFF1UL) /* return to Handler mode, uses MSP after return */ -#define EXC_RETURN_THREAD_MSP (0xFFFFFFF9UL) /* return to Thread mode, uses MSP after return */ -#define EXC_RETURN_THREAD_PSP (0xFFFFFFFDUL) /* return to Thread mode, uses PSP after return */ - - -/* Interrupt Priorities are WORD accessible only under Armv6-M */ -/* The following MACROS handle generation of the register offset and byte masks */ -#define _BIT_SHIFT(IRQn) ( ((((uint32_t)(int32_t)(IRQn)) ) & 0x03UL) * 8UL) -#define _SHP_IDX(IRQn) ( (((((uint32_t)(int32_t)(IRQn)) & 0x0FUL)-8UL) >> 2UL) ) -#define _IP_IDX(IRQn) ( (((uint32_t)(int32_t)(IRQn)) >> 2UL) ) - -#define __NVIC_SetPriorityGrouping(X) (void)(X) -#define __NVIC_GetPriorityGrouping() (0U) - -/** - \brief Enable Interrupt - \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) -{ - if ((int32_t)(IRQn) >= 0) - { - __COMPILER_BARRIER(); - NVIC->ISER[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - __COMPILER_BARRIER(); - } -} - - -/** - \brief Get Interrupt Enable status - \details Returns a device specific interrupt enable status from the NVIC interrupt controller. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt is not enabled. - \return 1 Interrupt is enabled. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ISER[0U] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Disable Interrupt - \details Disables 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_DisableIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ICER[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - __DSB(); - __ISB(); - } -} - - -/** - \brief Get Pending Interrupt - \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not pending. - \return 1 Interrupt status is pending. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ISPR[0U] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Pending Interrupt - \details Sets the pending bit of a device specific interrupt in the NVIC pending register. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ISPR[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Clear Pending Interrupt - \details Clears the pending bit of a device specific interrupt in the NVIC pending register. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ICPR[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Set Interrupt Priority - \details Sets the priority of a device specific interrupt or a processor exception. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \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) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->IP[_IP_IDX(IRQn)] = ((uint32_t)(NVIC->IP[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | - (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - } - else - { - SCB->SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | - (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - } -} - - -/** - \brief Get Interrupt Priority - \details Reads the priority of a device specific interrupt or a processor exception. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Interrupt Priority. - Value is aligned automatically to the implemented priority bits of the microcontroller. - */ -__STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) -{ - - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->IP[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); - } - else - { - return((uint32_t)(((SCB->SHP[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); - } -} - - -/** - \brief Encode Priority - \details Encodes the priority for an interrupt with the given priority group, - preemptive priority value, and subpriority value. - 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 Used priority group. - \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) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - - return ( - ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) - ); -} - - -/** - \brief Decode Priority - \details Decodes an interrupt priority value with a given priority group to - preemptive priority value and subpriority value. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. - \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). - \param [in] PriorityGroup Used priority group. - \param [out] pPreemptPriority Preemptive priority value (starting from 0). - \param [out] pSubPriority Subpriority value (starting from 0). - */ -__STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - - *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); - *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); -} - - - -/** - \brief Set Interrupt Vector - \details Sets an interrupt vector in SRAM based interrupt vector table. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - Address 0 must be mapped to SRAM. - \param [in] IRQn Interrupt number - \param [in] vector Address of interrupt handler function - */ -__STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) -{ - uint32_t *vectors = (uint32_t *)0x0U; - vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET] = vector; - /* ARM Application Note 321 states that the M1 does not require the architectural barrier */ -} - - -/** - \brief Get Interrupt Vector - \details Reads an interrupt vector from interrupt vector table. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Address of interrupt handler function - */ -__STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) -{ - uint32_t *vectors = (uint32_t *)0x0U; - return vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET]; -} - - -/** - \brief System Reset - \details Initiates a system reset request to reset the MCU. - */ -__NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) -{ - __DSB(); /* Ensure all outstanding memory accesses included - buffered write are completed before reset */ - SCB->AIRCR = ((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - SCB_AIRCR_SYSRESETREQ_Msk); - __DSB(); /* Ensure completion of memory access */ - - for(;;) /* wait until reset */ - { - __NOP(); - } -} - -/*@} end of CMSIS_Core_NVICFunctions */ - - -/* ########################## FPU functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_FpuFunctions FPU Functions - \brief Function that provides FPU type. - @{ - */ - -/** - \brief get FPU type - \details returns the FPU type - \returns - - \b 0: No FPU - - \b 1: Single precision FPU - - \b 2: Double + Single precision FPU - */ -__STATIC_INLINE uint32_t SCB_GetFPUType(void) -{ - return 0U; /* No FPU */ -} - - -/*@} end of CMSIS_Core_FpuFunctions */ - - - -/* ################################## SysTick function ############################################ */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SysTickFunctions SysTick Functions - \brief Functions that configure the System. - @{ - */ - -#if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) - -/** - \brief System Tick Configuration - \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. - Counter is in free running mode to generate periodic interrupts. - \param [in] ticks Number of ticks between two interrupts. - \return 0 Function succeeded. - \return 1 Function failed. - \note When the variable __Vendor_SysTickConfig is set to 1, then the - function SysTick_Config is not included. In this case, the file device.h - must contain a vendor-specific implementation of this function. - */ -__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) -{ - if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - { - return (1UL); /* Reload value impossible */ - } - - SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ - SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0UL); /* Function successful */ -} - -#endif - -/*@} end of CMSIS_Core_SysTickFunctions */ - - - - -#ifdef __cplusplus -} -#endif - -#endif /* __CORE_CM1_H_DEPENDANT */ - -#endif /* __CMSIS_GENERIC */ diff --git a/Drivers/CMSIS/Include/core_cm23.h b/Drivers/CMSIS/Include/core_cm23.h deleted file mode 100644 index b79c6af..0000000 --- a/Drivers/CMSIS/Include/core_cm23.h +++ /dev/null @@ -1,1996 +0,0 @@ -/**************************************************************************//** - * @file core_cm23.h - * @brief CMSIS Cortex-M23 Core Peripheral Access Layer Header File - * @version V5.0.8 - * @date 12. November 2018 - ******************************************************************************/ -/* - * Copyright (c) 2009-2018 Arm Limited. All rights reserved. - * - * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the License); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#if defined ( __ICCARM__ ) - #pragma system_include /* treat file as system include file for MISRA check */ -#elif defined (__clang__) - #pragma clang system_header /* treat file as system include file */ -#endif - -#ifndef __CORE_CM23_H_GENERIC -#define __CORE_CM23_H_GENERIC - -#include - -#ifdef __cplusplus - extern "C" { -#endif - -/** - \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions - CMSIS violates the following MISRA-C:2004 rules: - - \li Required Rule 8.5, object/function definition in header file.
- Function definitions in header files are used to allow 'inlining'. - - \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
- Unions are used for effective representation of core registers. - - \li Advisory Rule 19.7, Function-like macro defined.
- Function-like macros are used to allow more efficient code. - */ - - -/******************************************************************************* - * CMSIS definitions - ******************************************************************************/ -/** - \ingroup Cortex_M23 - @{ - */ - -#include "cmsis_version.h" - -/* CMSIS definitions */ -#define __CM23_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ -#define __CM23_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ -#define __CM23_CMSIS_VERSION ((__CM23_CMSIS_VERSION_MAIN << 16U) | \ - __CM23_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ - -#define __CORTEX_M (23U) /*!< Cortex-M Core */ - -/** __FPU_USED indicates whether an FPU is used or not. - This core does not support an FPU at all -*/ -#define __FPU_USED 0U - -#if defined ( __CC_ARM ) - #if defined __TARGET_FPU_VFP - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) - #if defined __ARM_FP - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __GNUC__ ) - #if defined (__VFP_FP__) && !defined(__SOFTFP__) - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __ICCARM__ ) - #if defined __ARMVFP__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __TI_ARM__ ) - #if defined __TI_VFP_SUPPORT__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __TASKING__ ) - #if defined __FPU_VFP__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __CSMC__ ) - #if ( __CSMC__ & 0x400U) - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#endif - -#include "cmsis_compiler.h" /* CMSIS compiler specific defines */ - - -#ifdef __cplusplus -} -#endif - -#endif /* __CORE_CM23_H_GENERIC */ - -#ifndef __CMSIS_GENERIC - -#ifndef __CORE_CM23_H_DEPENDANT -#define __CORE_CM23_H_DEPENDANT - -#ifdef __cplusplus - extern "C" { -#endif - -/* check device defines and use defaults */ -#if defined __CHECK_DEVICE_DEFINES - #ifndef __CM23_REV - #define __CM23_REV 0x0000U - #warning "__CM23_REV not defined in device header file; using default!" - #endif - - #ifndef __FPU_PRESENT - #define __FPU_PRESENT 0U - #warning "__FPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __MPU_PRESENT - #define __MPU_PRESENT 0U - #warning "__MPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __SAUREGION_PRESENT - #define __SAUREGION_PRESENT 0U - #warning "__SAUREGION_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __VTOR_PRESENT - #define __VTOR_PRESENT 0U - #warning "__VTOR_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __NVIC_PRIO_BITS - #define __NVIC_PRIO_BITS 2U - #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" - #endif - - #ifndef __Vendor_SysTickConfig - #define __Vendor_SysTickConfig 0U - #warning "__Vendor_SysTickConfig not defined in device header file; using default!" - #endif - - #ifndef __ETM_PRESENT - #define __ETM_PRESENT 0U - #warning "__ETM_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __MTB_PRESENT - #define __MTB_PRESENT 0U - #warning "__MTB_PRESENT not defined in device header file; using default!" - #endif - -#endif - -/* IO definitions (access restrictions to peripheral registers) */ -/** - \defgroup CMSIS_glob_defs CMSIS Global Defines - - IO Type Qualifiers are used - \li to specify the access to peripheral variables. - \li for automatic generation of peripheral register debug information. -*/ -#ifdef __cplusplus - #define __I volatile /*!< Defines 'read only' permissions */ -#else - #define __I volatile const /*!< Defines 'read only' permissions */ -#endif -#define __O volatile /*!< Defines 'write only' permissions */ -#define __IO volatile /*!< Defines 'read / write' permissions */ - -/* following defines should be used for structure members */ -#define __IM volatile const /*! Defines 'read only' structure member permissions */ -#define __OM volatile /*! Defines 'write only' structure member permissions */ -#define __IOM volatile /*! Defines 'read / write' structure member permissions */ - -/*@} end of group Cortex_M23 */ - - - -/******************************************************************************* - * Register Abstraction - Core Register contain: - - Core Register - - Core NVIC Register - - Core SCB Register - - Core SysTick Register - - Core Debug Register - - Core MPU Register - - Core SAU Register - ******************************************************************************/ -/** - \defgroup CMSIS_core_register Defines and Type Definitions - \brief Type definitions and defines for Cortex-M processor based devices. -*/ - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_CORE Status and Control Registers - \brief Core Register type definitions. - @{ - */ - -/** - \brief Union type to access the Application Program Status Register (APSR). - */ -typedef union -{ - struct - { - uint32_t _reserved0:28; /*!< bit: 0..27 Reserved */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} APSR_Type; - -/* APSR Register Definitions */ -#define APSR_N_Pos 31U /*!< APSR: N Position */ -#define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ - -#define APSR_Z_Pos 30U /*!< APSR: Z Position */ -#define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ - -#define APSR_C_Pos 29U /*!< APSR: C Position */ -#define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ - -#define APSR_V_Pos 28U /*!< APSR: V Position */ -#define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ - - -/** - \brief Union type to access the Interrupt Program Status Register (IPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} IPSR_Type; - -/* IPSR Register Definitions */ -#define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ -#define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ - - -/** - \brief Union type to access the Special-Purpose Program Status Registers (xPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ - uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ - uint32_t _reserved1:3; /*!< bit: 25..27 Reserved */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} xPSR_Type; - -/* xPSR Register Definitions */ -#define xPSR_N_Pos 31U /*!< xPSR: N Position */ -#define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ - -#define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ -#define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ - -#define xPSR_C_Pos 29U /*!< xPSR: C Position */ -#define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ - -#define xPSR_V_Pos 28U /*!< xPSR: V Position */ -#define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ - -#define xPSR_T_Pos 24U /*!< xPSR: T Position */ -#define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ - -#define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ -#define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ - - -/** - \brief Union type to access the Control Registers (CONTROL). - */ -typedef union -{ - struct - { - uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ - uint32_t SPSEL:1; /*!< bit: 1 Stack-pointer select */ - uint32_t _reserved1:30; /*!< bit: 2..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} CONTROL_Type; - -/* CONTROL Register Definitions */ -#define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ -#define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ - -#define CONTROL_nPRIV_Pos 0U /*!< CONTROL: nPRIV Position */ -#define CONTROL_nPRIV_Msk (1UL /*<< CONTROL_nPRIV_Pos*/) /*!< CONTROL: nPRIV Mask */ - -/*@} end of group CMSIS_CORE */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) - \brief Type definitions for the NVIC Registers - @{ - */ - -/** - \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). - */ -typedef struct -{ - __IOM uint32_t ISER[16U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ - uint32_t RESERVED0[16U]; - __IOM uint32_t ICER[16U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ - uint32_t RSERVED1[16U]; - __IOM uint32_t ISPR[16U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ - uint32_t RESERVED2[16U]; - __IOM uint32_t ICPR[16U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ - uint32_t RESERVED3[16U]; - __IOM uint32_t IABR[16U]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ - uint32_t RESERVED4[16U]; - __IOM uint32_t ITNS[16U]; /*!< Offset: 0x280 (R/W) Interrupt Non-Secure State Register */ - uint32_t RESERVED5[16U]; - __IOM uint32_t IPR[124U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register */ -} NVIC_Type; - -/*@} end of group CMSIS_NVIC */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SCB System Control Block (SCB) - \brief Type definitions for the System Control Block Registers - @{ - */ - -/** - \brief Structure type to access the System Control Block (SCB). - */ -typedef struct -{ - __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ - __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ -#if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) - __IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ -#else - uint32_t RESERVED0; -#endif - __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ - __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ - __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ - uint32_t RESERVED1; - __IOM uint32_t SHPR[2U]; /*!< Offset: 0x01C (R/W) System Handlers Priority Registers. [0] is RESERVED */ - __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ -} SCB_Type; - -/* SCB CPUID Register Definitions */ -#define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ -#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ - -#define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ -#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ - -#define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ -#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ - -#define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ -#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ - -#define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ -#define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ - -/* SCB Interrupt Control State Register Definitions */ -#define SCB_ICSR_PENDNMISET_Pos 31U /*!< SCB ICSR: PENDNMISET Position */ -#define SCB_ICSR_PENDNMISET_Msk (1UL << SCB_ICSR_PENDNMISET_Pos) /*!< SCB ICSR: PENDNMISET Mask */ - -#define SCB_ICSR_NMIPENDSET_Pos SCB_ICSR_PENDNMISET_Pos /*!< SCB ICSR: NMIPENDSET Position, backward compatibility */ -#define SCB_ICSR_NMIPENDSET_Msk SCB_ICSR_PENDNMISET_Msk /*!< SCB ICSR: NMIPENDSET Mask, backward compatibility */ - -#define SCB_ICSR_PENDNMICLR_Pos 30U /*!< SCB ICSR: PENDNMICLR Position */ -#define SCB_ICSR_PENDNMICLR_Msk (1UL << SCB_ICSR_PENDNMICLR_Pos) /*!< SCB ICSR: PENDNMICLR Mask */ - -#define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ -#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ - -#define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ -#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ - -#define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ -#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ - -#define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ -#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ - -#define SCB_ICSR_STTNS_Pos 24U /*!< SCB ICSR: STTNS Position (Security Extension) */ -#define SCB_ICSR_STTNS_Msk (1UL << SCB_ICSR_STTNS_Pos) /*!< SCB ICSR: STTNS Mask (Security Extension) */ - -#define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ -#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ - -#define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ -#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ - -#define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ -#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ - -#define SCB_ICSR_RETTOBASE_Pos 11U /*!< SCB ICSR: RETTOBASE Position */ -#define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ - -#define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ -#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ - -#if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) -/* SCB Vector Table Offset Register Definitions */ -#define SCB_VTOR_TBLOFF_Pos 7U /*!< SCB VTOR: TBLOFF Position */ -#define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ -#endif - -/* SCB Application Interrupt and Reset Control Register Definitions */ -#define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ -#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ - -#define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ -#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ - -#define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ -#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ - -#define SCB_AIRCR_PRIS_Pos 14U /*!< SCB AIRCR: PRIS Position */ -#define SCB_AIRCR_PRIS_Msk (1UL << SCB_AIRCR_PRIS_Pos) /*!< SCB AIRCR: PRIS Mask */ - -#define SCB_AIRCR_BFHFNMINS_Pos 13U /*!< SCB AIRCR: BFHFNMINS Position */ -#define SCB_AIRCR_BFHFNMINS_Msk (1UL << SCB_AIRCR_BFHFNMINS_Pos) /*!< SCB AIRCR: BFHFNMINS Mask */ - -#define SCB_AIRCR_SYSRESETREQS_Pos 3U /*!< SCB AIRCR: SYSRESETREQS Position */ -#define SCB_AIRCR_SYSRESETREQS_Msk (1UL << SCB_AIRCR_SYSRESETREQS_Pos) /*!< SCB AIRCR: SYSRESETREQS Mask */ - -#define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ -#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ - -#define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ -#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ - -/* SCB System Control Register Definitions */ -#define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ -#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ - -#define SCB_SCR_SLEEPDEEPS_Pos 3U /*!< SCB SCR: SLEEPDEEPS Position */ -#define SCB_SCR_SLEEPDEEPS_Msk (1UL << SCB_SCR_SLEEPDEEPS_Pos) /*!< SCB SCR: SLEEPDEEPS Mask */ - -#define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ -#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ - -#define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ -#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ - -/* SCB Configuration Control Register Definitions */ -#define SCB_CCR_BP_Pos 18U /*!< SCB CCR: BP Position */ -#define SCB_CCR_BP_Msk (1UL << SCB_CCR_BP_Pos) /*!< SCB CCR: BP Mask */ - -#define SCB_CCR_IC_Pos 17U /*!< SCB CCR: IC Position */ -#define SCB_CCR_IC_Msk (1UL << SCB_CCR_IC_Pos) /*!< SCB CCR: IC Mask */ - -#define SCB_CCR_DC_Pos 16U /*!< SCB CCR: DC Position */ -#define SCB_CCR_DC_Msk (1UL << SCB_CCR_DC_Pos) /*!< SCB CCR: DC Mask */ - -#define SCB_CCR_STKOFHFNMIGN_Pos 10U /*!< SCB CCR: STKOFHFNMIGN Position */ -#define SCB_CCR_STKOFHFNMIGN_Msk (1UL << SCB_CCR_STKOFHFNMIGN_Pos) /*!< SCB CCR: STKOFHFNMIGN Mask */ - -#define SCB_CCR_BFHFNMIGN_Pos 8U /*!< SCB CCR: BFHFNMIGN Position */ -#define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ - -#define SCB_CCR_DIV_0_TRP_Pos 4U /*!< SCB CCR: DIV_0_TRP Position */ -#define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ - -#define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ -#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ - -#define SCB_CCR_USERSETMPEND_Pos 1U /*!< SCB CCR: USERSETMPEND Position */ -#define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ - -/* SCB System Handler Control and State Register Definitions */ -#define SCB_SHCSR_HARDFAULTPENDED_Pos 21U /*!< SCB SHCSR: HARDFAULTPENDED Position */ -#define SCB_SHCSR_HARDFAULTPENDED_Msk (1UL << SCB_SHCSR_HARDFAULTPENDED_Pos) /*!< SCB SHCSR: HARDFAULTPENDED Mask */ - -#define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ -#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ - -#define SCB_SHCSR_SYSTICKACT_Pos 11U /*!< SCB SHCSR: SYSTICKACT Position */ -#define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ - -#define SCB_SHCSR_PENDSVACT_Pos 10U /*!< SCB SHCSR: PENDSVACT Position */ -#define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ - -#define SCB_SHCSR_SVCALLACT_Pos 7U /*!< SCB SHCSR: SVCALLACT Position */ -#define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ - -#define SCB_SHCSR_NMIACT_Pos 5U /*!< SCB SHCSR: NMIACT Position */ -#define SCB_SHCSR_NMIACT_Msk (1UL << SCB_SHCSR_NMIACT_Pos) /*!< SCB SHCSR: NMIACT Mask */ - -#define SCB_SHCSR_HARDFAULTACT_Pos 2U /*!< SCB SHCSR: HARDFAULTACT Position */ -#define SCB_SHCSR_HARDFAULTACT_Msk (1UL << SCB_SHCSR_HARDFAULTACT_Pos) /*!< SCB SHCSR: HARDFAULTACT Mask */ - -/*@} end of group CMSIS_SCB */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SysTick System Tick Timer (SysTick) - \brief Type definitions for the System Timer Registers. - @{ - */ - -/** - \brief Structure type to access the System Timer (SysTick). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ - __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ - __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ - __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ -} SysTick_Type; - -/* SysTick Control / Status Register Definitions */ -#define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ -#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ - -#define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ -#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ - -#define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ -#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ - -#define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ -#define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ - -/* SysTick Reload Register Definitions */ -#define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ -#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ - -/* SysTick Current Register Definitions */ -#define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ -#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ - -/* SysTick Calibration Register Definitions */ -#define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ -#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ - -#define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ -#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ - -#define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ -#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ - -/*@} end of group CMSIS_SysTick */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) - \brief Type definitions for the Data Watchpoint and Trace (DWT) - @{ - */ - -/** - \brief Structure type to access the Data Watchpoint and Trace Register (DWT). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ - uint32_t RESERVED0[6U]; - __IM uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ - __IOM uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ - uint32_t RESERVED1[1U]; - __IOM uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ - uint32_t RESERVED2[1U]; - __IOM uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ - uint32_t RESERVED3[1U]; - __IOM uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ - uint32_t RESERVED4[1U]; - __IOM uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ - uint32_t RESERVED5[1U]; - __IOM uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ - uint32_t RESERVED6[1U]; - __IOM uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ - uint32_t RESERVED7[1U]; - __IOM uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ - uint32_t RESERVED8[1U]; - __IOM uint32_t COMP4; /*!< Offset: 0x060 (R/W) Comparator Register 4 */ - uint32_t RESERVED9[1U]; - __IOM uint32_t FUNCTION4; /*!< Offset: 0x068 (R/W) Function Register 4 */ - uint32_t RESERVED10[1U]; - __IOM uint32_t COMP5; /*!< Offset: 0x070 (R/W) Comparator Register 5 */ - uint32_t RESERVED11[1U]; - __IOM uint32_t FUNCTION5; /*!< Offset: 0x078 (R/W) Function Register 5 */ - uint32_t RESERVED12[1U]; - __IOM uint32_t COMP6; /*!< Offset: 0x080 (R/W) Comparator Register 6 */ - uint32_t RESERVED13[1U]; - __IOM uint32_t FUNCTION6; /*!< Offset: 0x088 (R/W) Function Register 6 */ - uint32_t RESERVED14[1U]; - __IOM uint32_t COMP7; /*!< Offset: 0x090 (R/W) Comparator Register 7 */ - uint32_t RESERVED15[1U]; - __IOM uint32_t FUNCTION7; /*!< Offset: 0x098 (R/W) Function Register 7 */ - uint32_t RESERVED16[1U]; - __IOM uint32_t COMP8; /*!< Offset: 0x0A0 (R/W) Comparator Register 8 */ - uint32_t RESERVED17[1U]; - __IOM uint32_t FUNCTION8; /*!< Offset: 0x0A8 (R/W) Function Register 8 */ - uint32_t RESERVED18[1U]; - __IOM uint32_t COMP9; /*!< Offset: 0x0B0 (R/W) Comparator Register 9 */ - uint32_t RESERVED19[1U]; - __IOM uint32_t FUNCTION9; /*!< Offset: 0x0B8 (R/W) Function Register 9 */ - uint32_t RESERVED20[1U]; - __IOM uint32_t COMP10; /*!< Offset: 0x0C0 (R/W) Comparator Register 10 */ - uint32_t RESERVED21[1U]; - __IOM uint32_t FUNCTION10; /*!< Offset: 0x0C8 (R/W) Function Register 10 */ - uint32_t RESERVED22[1U]; - __IOM uint32_t COMP11; /*!< Offset: 0x0D0 (R/W) Comparator Register 11 */ - uint32_t RESERVED23[1U]; - __IOM uint32_t FUNCTION11; /*!< Offset: 0x0D8 (R/W) Function Register 11 */ - uint32_t RESERVED24[1U]; - __IOM uint32_t COMP12; /*!< Offset: 0x0E0 (R/W) Comparator Register 12 */ - uint32_t RESERVED25[1U]; - __IOM uint32_t FUNCTION12; /*!< Offset: 0x0E8 (R/W) Function Register 12 */ - uint32_t RESERVED26[1U]; - __IOM uint32_t COMP13; /*!< Offset: 0x0F0 (R/W) Comparator Register 13 */ - uint32_t RESERVED27[1U]; - __IOM uint32_t FUNCTION13; /*!< Offset: 0x0F8 (R/W) Function Register 13 */ - uint32_t RESERVED28[1U]; - __IOM uint32_t COMP14; /*!< Offset: 0x100 (R/W) Comparator Register 14 */ - uint32_t RESERVED29[1U]; - __IOM uint32_t FUNCTION14; /*!< Offset: 0x108 (R/W) Function Register 14 */ - uint32_t RESERVED30[1U]; - __IOM uint32_t COMP15; /*!< Offset: 0x110 (R/W) Comparator Register 15 */ - uint32_t RESERVED31[1U]; - __IOM uint32_t FUNCTION15; /*!< Offset: 0x118 (R/W) Function Register 15 */ -} DWT_Type; - -/* DWT Control Register Definitions */ -#define DWT_CTRL_NUMCOMP_Pos 28U /*!< DWT CTRL: NUMCOMP Position */ -#define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ - -#define DWT_CTRL_NOTRCPKT_Pos 27U /*!< DWT CTRL: NOTRCPKT Position */ -#define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ - -#define DWT_CTRL_NOEXTTRIG_Pos 26U /*!< DWT CTRL: NOEXTTRIG Position */ -#define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ - -#define DWT_CTRL_NOCYCCNT_Pos 25U /*!< DWT CTRL: NOCYCCNT Position */ -#define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ - -#define DWT_CTRL_NOPRFCNT_Pos 24U /*!< DWT CTRL: NOPRFCNT Position */ -#define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ - -/* DWT Comparator Function Register Definitions */ -#define DWT_FUNCTION_ID_Pos 27U /*!< DWT FUNCTION: ID Position */ -#define DWT_FUNCTION_ID_Msk (0x1FUL << DWT_FUNCTION_ID_Pos) /*!< DWT FUNCTION: ID Mask */ - -#define DWT_FUNCTION_MATCHED_Pos 24U /*!< DWT FUNCTION: MATCHED Position */ -#define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ - -#define DWT_FUNCTION_DATAVSIZE_Pos 10U /*!< DWT FUNCTION: DATAVSIZE Position */ -#define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ - -#define DWT_FUNCTION_ACTION_Pos 4U /*!< DWT FUNCTION: ACTION Position */ -#define DWT_FUNCTION_ACTION_Msk (0x3UL << DWT_FUNCTION_ACTION_Pos) /*!< DWT FUNCTION: ACTION Mask */ - -#define DWT_FUNCTION_MATCH_Pos 0U /*!< DWT FUNCTION: MATCH Position */ -#define DWT_FUNCTION_MATCH_Msk (0xFUL /*<< DWT_FUNCTION_MATCH_Pos*/) /*!< DWT FUNCTION: MATCH Mask */ - -/*@}*/ /* end of group CMSIS_DWT */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_TPI Trace Port Interface (TPI) - \brief Type definitions for the Trace Port Interface (TPI) - @{ - */ - -/** - \brief Structure type to access the Trace Port Interface Register (TPI). - */ -typedef struct -{ - __IM uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Size Register */ - __IOM uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Size Register */ - uint32_t RESERVED0[2U]; - __IOM uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ - uint32_t RESERVED1[55U]; - __IOM uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ - uint32_t RESERVED2[131U]; - __IM uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ - __IOM uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ - __IOM uint32_t PSCR; /*!< Offset: 0x308 (R/W) Periodic Synchronization Control Register */ - uint32_t RESERVED3[759U]; - __IM uint32_t TRIGGER; /*!< Offset: 0xEE8 (R/ ) TRIGGER Register */ - __IM uint32_t ITFTTD0; /*!< Offset: 0xEEC (R/ ) Integration Test FIFO Test Data 0 Register */ - __IOM uint32_t ITATBCTR2; /*!< Offset: 0xEF0 (R/W) Integration Test ATB Control Register 2 */ - uint32_t RESERVED4[1U]; - __IM uint32_t ITATBCTR0; /*!< Offset: 0xEF8 (R/ ) Integration Test ATB Control Register 0 */ - __IM uint32_t ITFTTD1; /*!< Offset: 0xEFC (R/ ) Integration Test FIFO Test Data 1 Register */ - __IOM uint32_t ITCTRL; /*!< Offset: 0xF00 (R/W) Integration Mode Control */ - uint32_t RESERVED5[39U]; - __IOM uint32_t CLAIMSET; /*!< Offset: 0xFA0 (R/W) Claim tag set */ - __IOM uint32_t CLAIMCLR; /*!< Offset: 0xFA4 (R/W) Claim tag clear */ - uint32_t RESERVED7[8U]; - __IM uint32_t DEVID; /*!< Offset: 0xFC8 (R/ ) Device Configuration Register */ - __IM uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) Device Type Identifier Register */ -} TPI_Type; - -/* TPI Asynchronous Clock Prescaler Register Definitions */ -#define TPI_ACPR_PRESCALER_Pos 0U /*!< TPI ACPR: PRESCALER Position */ -#define TPI_ACPR_PRESCALER_Msk (0x1FFFUL /*<< TPI_ACPR_PRESCALER_Pos*/) /*!< TPI ACPR: PRESCALER Mask */ - -/* TPI Selected Pin Protocol Register Definitions */ -#define TPI_SPPR_TXMODE_Pos 0U /*!< TPI SPPR: TXMODE Position */ -#define TPI_SPPR_TXMODE_Msk (0x3UL /*<< TPI_SPPR_TXMODE_Pos*/) /*!< TPI SPPR: TXMODE Mask */ - -/* TPI Formatter and Flush Status Register Definitions */ -#define TPI_FFSR_FtNonStop_Pos 3U /*!< TPI FFSR: FtNonStop Position */ -#define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ - -#define TPI_FFSR_TCPresent_Pos 2U /*!< TPI FFSR: TCPresent Position */ -#define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ - -#define TPI_FFSR_FtStopped_Pos 1U /*!< TPI FFSR: FtStopped Position */ -#define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ - -#define TPI_FFSR_FlInProg_Pos 0U /*!< TPI FFSR: FlInProg Position */ -#define TPI_FFSR_FlInProg_Msk (0x1UL /*<< TPI_FFSR_FlInProg_Pos*/) /*!< TPI FFSR: FlInProg Mask */ - -/* TPI Formatter and Flush Control Register Definitions */ -#define TPI_FFCR_TrigIn_Pos 8U /*!< TPI FFCR: TrigIn Position */ -#define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ - -#define TPI_FFCR_FOnMan_Pos 6U /*!< TPI FFCR: FOnMan Position */ -#define TPI_FFCR_FOnMan_Msk (0x1UL << TPI_FFCR_FOnMan_Pos) /*!< TPI FFCR: FOnMan Mask */ - -#define TPI_FFCR_EnFCont_Pos 1U /*!< TPI FFCR: EnFCont Position */ -#define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ - -/* TPI TRIGGER Register Definitions */ -#define TPI_TRIGGER_TRIGGER_Pos 0U /*!< TPI TRIGGER: TRIGGER Position */ -#define TPI_TRIGGER_TRIGGER_Msk (0x1UL /*<< TPI_TRIGGER_TRIGGER_Pos*/) /*!< TPI TRIGGER: TRIGGER Mask */ - -/* TPI Integration Test FIFO Test Data 0 Register Definitions */ -#define TPI_ITFTTD0_ATB_IF2_ATVALID_Pos 29U /*!< TPI ITFTTD0: ATB Interface 2 ATVALIDPosition */ -#define TPI_ITFTTD0_ATB_IF2_ATVALID_Msk (0x3UL << TPI_ITFTTD0_ATB_IF2_ATVALID_Pos) /*!< TPI ITFTTD0: ATB Interface 2 ATVALID Mask */ - -#define TPI_ITFTTD0_ATB_IF2_bytecount_Pos 27U /*!< TPI ITFTTD0: ATB Interface 2 byte count Position */ -#define TPI_ITFTTD0_ATB_IF2_bytecount_Msk (0x3UL << TPI_ITFTTD0_ATB_IF2_bytecount_Pos) /*!< TPI ITFTTD0: ATB Interface 2 byte count Mask */ - -#define TPI_ITFTTD0_ATB_IF1_ATVALID_Pos 26U /*!< TPI ITFTTD0: ATB Interface 1 ATVALID Position */ -#define TPI_ITFTTD0_ATB_IF1_ATVALID_Msk (0x3UL << TPI_ITFTTD0_ATB_IF1_ATVALID_Pos) /*!< TPI ITFTTD0: ATB Interface 1 ATVALID Mask */ - -#define TPI_ITFTTD0_ATB_IF1_bytecount_Pos 24U /*!< TPI ITFTTD0: ATB Interface 1 byte count Position */ -#define TPI_ITFTTD0_ATB_IF1_bytecount_Msk (0x3UL << TPI_ITFTTD0_ATB_IF1_bytecount_Pos) /*!< TPI ITFTTD0: ATB Interface 1 byte countt Mask */ - -#define TPI_ITFTTD0_ATB_IF1_data2_Pos 16U /*!< TPI ITFTTD0: ATB Interface 1 data2 Position */ -#define TPI_ITFTTD0_ATB_IF1_data2_Msk (0xFFUL << TPI_ITFTTD0_ATB_IF1_data1_Pos) /*!< TPI ITFTTD0: ATB Interface 1 data2 Mask */ - -#define TPI_ITFTTD0_ATB_IF1_data1_Pos 8U /*!< TPI ITFTTD0: ATB Interface 1 data1 Position */ -#define TPI_ITFTTD0_ATB_IF1_data1_Msk (0xFFUL << TPI_ITFTTD0_ATB_IF1_data1_Pos) /*!< TPI ITFTTD0: ATB Interface 1 data1 Mask */ - -#define TPI_ITFTTD0_ATB_IF1_data0_Pos 0U /*!< TPI ITFTTD0: ATB Interface 1 data0 Position */ -#define TPI_ITFTTD0_ATB_IF1_data0_Msk (0xFFUL /*<< TPI_ITFTTD0_ATB_IF1_data0_Pos*/) /*!< TPI ITFTTD0: ATB Interface 1 data0 Mask */ - -/* TPI Integration Test ATB Control Register 2 Register Definitions */ -#define TPI_ITATBCTR2_AFVALID2S_Pos 1U /*!< TPI ITATBCTR2: AFVALID2S Position */ -#define TPI_ITATBCTR2_AFVALID2S_Msk (0x1UL << TPI_ITATBCTR2_AFVALID2S_Pos) /*!< TPI ITATBCTR2: AFVALID2SS Mask */ - -#define TPI_ITATBCTR2_AFVALID1S_Pos 1U /*!< TPI ITATBCTR2: AFVALID1S Position */ -#define TPI_ITATBCTR2_AFVALID1S_Msk (0x1UL << TPI_ITATBCTR2_AFVALID1S_Pos) /*!< TPI ITATBCTR2: AFVALID1SS Mask */ - -#define TPI_ITATBCTR2_ATREADY2S_Pos 0U /*!< TPI ITATBCTR2: ATREADY2S Position */ -#define TPI_ITATBCTR2_ATREADY2S_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY2S_Pos*/) /*!< TPI ITATBCTR2: ATREADY2S Mask */ - -#define TPI_ITATBCTR2_ATREADY1S_Pos 0U /*!< TPI ITATBCTR2: ATREADY1S Position */ -#define TPI_ITATBCTR2_ATREADY1S_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY1S_Pos*/) /*!< TPI ITATBCTR2: ATREADY1S Mask */ - -/* TPI Integration Test FIFO Test Data 1 Register Definitions */ -#define TPI_ITFTTD1_ATB_IF2_ATVALID_Pos 29U /*!< TPI ITFTTD1: ATB Interface 2 ATVALID Position */ -#define TPI_ITFTTD1_ATB_IF2_ATVALID_Msk (0x3UL << TPI_ITFTTD1_ATB_IF2_ATVALID_Pos) /*!< TPI ITFTTD1: ATB Interface 2 ATVALID Mask */ - -#define TPI_ITFTTD1_ATB_IF2_bytecount_Pos 27U /*!< TPI ITFTTD1: ATB Interface 2 byte count Position */ -#define TPI_ITFTTD1_ATB_IF2_bytecount_Msk (0x3UL << TPI_ITFTTD1_ATB_IF2_bytecount_Pos) /*!< TPI ITFTTD1: ATB Interface 2 byte count Mask */ - -#define TPI_ITFTTD1_ATB_IF1_ATVALID_Pos 26U /*!< TPI ITFTTD1: ATB Interface 1 ATVALID Position */ -#define TPI_ITFTTD1_ATB_IF1_ATVALID_Msk (0x3UL << TPI_ITFTTD1_ATB_IF1_ATVALID_Pos) /*!< TPI ITFTTD1: ATB Interface 1 ATVALID Mask */ - -#define TPI_ITFTTD1_ATB_IF1_bytecount_Pos 24U /*!< TPI ITFTTD1: ATB Interface 1 byte count Position */ -#define TPI_ITFTTD1_ATB_IF1_bytecount_Msk (0x3UL << TPI_ITFTTD1_ATB_IF1_bytecount_Pos) /*!< TPI ITFTTD1: ATB Interface 1 byte countt Mask */ - -#define TPI_ITFTTD1_ATB_IF2_data2_Pos 16U /*!< TPI ITFTTD1: ATB Interface 2 data2 Position */ -#define TPI_ITFTTD1_ATB_IF2_data2_Msk (0xFFUL << TPI_ITFTTD1_ATB_IF2_data1_Pos) /*!< TPI ITFTTD1: ATB Interface 2 data2 Mask */ - -#define TPI_ITFTTD1_ATB_IF2_data1_Pos 8U /*!< TPI ITFTTD1: ATB Interface 2 data1 Position */ -#define TPI_ITFTTD1_ATB_IF2_data1_Msk (0xFFUL << TPI_ITFTTD1_ATB_IF2_data1_Pos) /*!< TPI ITFTTD1: ATB Interface 2 data1 Mask */ - -#define TPI_ITFTTD1_ATB_IF2_data0_Pos 0U /*!< TPI ITFTTD1: ATB Interface 2 data0 Position */ -#define TPI_ITFTTD1_ATB_IF2_data0_Msk (0xFFUL /*<< TPI_ITFTTD1_ATB_IF2_data0_Pos*/) /*!< TPI ITFTTD1: ATB Interface 2 data0 Mask */ - -/* TPI Integration Test ATB Control Register 0 Definitions */ -#define TPI_ITATBCTR0_AFVALID2S_Pos 1U /*!< TPI ITATBCTR0: AFVALID2S Position */ -#define TPI_ITATBCTR0_AFVALID2S_Msk (0x1UL << TPI_ITATBCTR0_AFVALID2S_Pos) /*!< TPI ITATBCTR0: AFVALID2SS Mask */ - -#define TPI_ITATBCTR0_AFVALID1S_Pos 1U /*!< TPI ITATBCTR0: AFVALID1S Position */ -#define TPI_ITATBCTR0_AFVALID1S_Msk (0x1UL << TPI_ITATBCTR0_AFVALID1S_Pos) /*!< TPI ITATBCTR0: AFVALID1SS Mask */ - -#define TPI_ITATBCTR0_ATREADY2S_Pos 0U /*!< TPI ITATBCTR0: ATREADY2S Position */ -#define TPI_ITATBCTR0_ATREADY2S_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY2S_Pos*/) /*!< TPI ITATBCTR0: ATREADY2S Mask */ - -#define TPI_ITATBCTR0_ATREADY1S_Pos 0U /*!< TPI ITATBCTR0: ATREADY1S Position */ -#define TPI_ITATBCTR0_ATREADY1S_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY1S_Pos*/) /*!< TPI ITATBCTR0: ATREADY1S Mask */ - -/* TPI Integration Mode Control Register Definitions */ -#define TPI_ITCTRL_Mode_Pos 0U /*!< TPI ITCTRL: Mode Position */ -#define TPI_ITCTRL_Mode_Msk (0x3UL /*<< TPI_ITCTRL_Mode_Pos*/) /*!< TPI ITCTRL: Mode Mask */ - -/* TPI DEVID Register Definitions */ -#define TPI_DEVID_NRZVALID_Pos 11U /*!< TPI DEVID: NRZVALID Position */ -#define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ - -#define TPI_DEVID_MANCVALID_Pos 10U /*!< TPI DEVID: MANCVALID Position */ -#define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ - -#define TPI_DEVID_PTINVALID_Pos 9U /*!< TPI DEVID: PTINVALID Position */ -#define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ - -#define TPI_DEVID_FIFOSZ_Pos 6U /*!< TPI DEVID: FIFOSZ Position */ -#define TPI_DEVID_FIFOSZ_Msk (0x7UL << TPI_DEVID_FIFOSZ_Pos) /*!< TPI DEVID: FIFOSZ Mask */ - -#define TPI_DEVID_NrTraceInput_Pos 0U /*!< TPI DEVID: NrTraceInput Position */ -#define TPI_DEVID_NrTraceInput_Msk (0x3FUL /*<< TPI_DEVID_NrTraceInput_Pos*/) /*!< TPI DEVID: NrTraceInput Mask */ - -/* TPI DEVTYPE Register Definitions */ -#define TPI_DEVTYPE_SubType_Pos 4U /*!< TPI DEVTYPE: SubType Position */ -#define TPI_DEVTYPE_SubType_Msk (0xFUL /*<< TPI_DEVTYPE_SubType_Pos*/) /*!< TPI DEVTYPE: SubType Mask */ - -#define TPI_DEVTYPE_MajorType_Pos 0U /*!< TPI DEVTYPE: MajorType Position */ -#define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ - -/*@}*/ /* end of group CMSIS_TPI */ - - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_MPU Memory Protection Unit (MPU) - \brief Type definitions for the Memory Protection Unit (MPU) - @{ - */ - -/** - \brief Structure type to access the Memory Protection Unit (MPU). - */ -typedef struct -{ - __IM uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ - __IOM uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ - __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region Number Register */ - __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ - __IOM uint32_t RLAR; /*!< Offset: 0x010 (R/W) MPU Region Limit Address Register */ - uint32_t RESERVED0[7U]; - union { - __IOM uint32_t MAIR[2]; - struct { - __IOM uint32_t MAIR0; /*!< Offset: 0x030 (R/W) MPU Memory Attribute Indirection Register 0 */ - __IOM uint32_t MAIR1; /*!< Offset: 0x034 (R/W) MPU Memory Attribute Indirection Register 1 */ - }; - }; -} MPU_Type; - -#define MPU_TYPE_RALIASES 1U - -/* MPU Type Register Definitions */ -#define MPU_TYPE_IREGION_Pos 16U /*!< MPU TYPE: IREGION Position */ -#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ - -#define MPU_TYPE_DREGION_Pos 8U /*!< MPU TYPE: DREGION Position */ -#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ - -#define MPU_TYPE_SEPARATE_Pos 0U /*!< MPU TYPE: SEPARATE Position */ -#define MPU_TYPE_SEPARATE_Msk (1UL /*<< MPU_TYPE_SEPARATE_Pos*/) /*!< MPU TYPE: SEPARATE Mask */ - -/* MPU Control Register Definitions */ -#define MPU_CTRL_PRIVDEFENA_Pos 2U /*!< MPU CTRL: PRIVDEFENA Position */ -#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ - -#define MPU_CTRL_HFNMIENA_Pos 1U /*!< MPU CTRL: HFNMIENA Position */ -#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ - -#define MPU_CTRL_ENABLE_Pos 0U /*!< MPU CTRL: ENABLE Position */ -#define MPU_CTRL_ENABLE_Msk (1UL /*<< MPU_CTRL_ENABLE_Pos*/) /*!< MPU CTRL: ENABLE Mask */ - -/* MPU Region Number Register Definitions */ -#define MPU_RNR_REGION_Pos 0U /*!< MPU RNR: REGION Position */ -#define MPU_RNR_REGION_Msk (0xFFUL /*<< MPU_RNR_REGION_Pos*/) /*!< MPU RNR: REGION Mask */ - -/* MPU Region Base Address Register Definitions */ -#define MPU_RBAR_BASE_Pos 5U /*!< MPU RBAR: BASE Position */ -#define MPU_RBAR_BASE_Msk (0x7FFFFFFUL << MPU_RBAR_BASE_Pos) /*!< MPU RBAR: BASE Mask */ - -#define MPU_RBAR_SH_Pos 3U /*!< MPU RBAR: SH Position */ -#define MPU_RBAR_SH_Msk (0x3UL << MPU_RBAR_SH_Pos) /*!< MPU RBAR: SH Mask */ - -#define MPU_RBAR_AP_Pos 1U /*!< MPU RBAR: AP Position */ -#define MPU_RBAR_AP_Msk (0x3UL << MPU_RBAR_AP_Pos) /*!< MPU RBAR: AP Mask */ - -#define MPU_RBAR_XN_Pos 0U /*!< MPU RBAR: XN Position */ -#define MPU_RBAR_XN_Msk (01UL /*<< MPU_RBAR_XN_Pos*/) /*!< MPU RBAR: XN Mask */ - -/* MPU Region Limit Address Register Definitions */ -#define MPU_RLAR_LIMIT_Pos 5U /*!< MPU RLAR: LIMIT Position */ -#define MPU_RLAR_LIMIT_Msk (0x7FFFFFFUL << MPU_RLAR_LIMIT_Pos) /*!< MPU RLAR: LIMIT Mask */ - -#define MPU_RLAR_AttrIndx_Pos 1U /*!< MPU RLAR: AttrIndx Position */ -#define MPU_RLAR_AttrIndx_Msk (0x7UL << MPU_RLAR_AttrIndx_Pos) /*!< MPU RLAR: AttrIndx Mask */ - -#define MPU_RLAR_EN_Pos 0U /*!< MPU RLAR: EN Position */ -#define MPU_RLAR_EN_Msk (1UL /*<< MPU_RLAR_EN_Pos*/) /*!< MPU RLAR: EN Mask */ - -/* MPU Memory Attribute Indirection Register 0 Definitions */ -#define MPU_MAIR0_Attr3_Pos 24U /*!< MPU MAIR0: Attr3 Position */ -#define MPU_MAIR0_Attr3_Msk (0xFFUL << MPU_MAIR0_Attr3_Pos) /*!< MPU MAIR0: Attr3 Mask */ - -#define MPU_MAIR0_Attr2_Pos 16U /*!< MPU MAIR0: Attr2 Position */ -#define MPU_MAIR0_Attr2_Msk (0xFFUL << MPU_MAIR0_Attr2_Pos) /*!< MPU MAIR0: Attr2 Mask */ - -#define MPU_MAIR0_Attr1_Pos 8U /*!< MPU MAIR0: Attr1 Position */ -#define MPU_MAIR0_Attr1_Msk (0xFFUL << MPU_MAIR0_Attr1_Pos) /*!< MPU MAIR0: Attr1 Mask */ - -#define MPU_MAIR0_Attr0_Pos 0U /*!< MPU MAIR0: Attr0 Position */ -#define MPU_MAIR0_Attr0_Msk (0xFFUL /*<< MPU_MAIR0_Attr0_Pos*/) /*!< MPU MAIR0: Attr0 Mask */ - -/* MPU Memory Attribute Indirection Register 1 Definitions */ -#define MPU_MAIR1_Attr7_Pos 24U /*!< MPU MAIR1: Attr7 Position */ -#define MPU_MAIR1_Attr7_Msk (0xFFUL << MPU_MAIR1_Attr7_Pos) /*!< MPU MAIR1: Attr7 Mask */ - -#define MPU_MAIR1_Attr6_Pos 16U /*!< MPU MAIR1: Attr6 Position */ -#define MPU_MAIR1_Attr6_Msk (0xFFUL << MPU_MAIR1_Attr6_Pos) /*!< MPU MAIR1: Attr6 Mask */ - -#define MPU_MAIR1_Attr5_Pos 8U /*!< MPU MAIR1: Attr5 Position */ -#define MPU_MAIR1_Attr5_Msk (0xFFUL << MPU_MAIR1_Attr5_Pos) /*!< MPU MAIR1: Attr5 Mask */ - -#define MPU_MAIR1_Attr4_Pos 0U /*!< MPU MAIR1: Attr4 Position */ -#define MPU_MAIR1_Attr4_Msk (0xFFUL /*<< MPU_MAIR1_Attr4_Pos*/) /*!< MPU MAIR1: Attr4 Mask */ - -/*@} end of group CMSIS_MPU */ -#endif - - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SAU Security Attribution Unit (SAU) - \brief Type definitions for the Security Attribution Unit (SAU) - @{ - */ - -/** - \brief Structure type to access the Security Attribution Unit (SAU). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SAU Control Register */ - __IM uint32_t TYPE; /*!< Offset: 0x004 (R/ ) SAU Type Register */ -#if defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) - __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) SAU Region Number Register */ - __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) SAU Region Base Address Register */ - __IOM uint32_t RLAR; /*!< Offset: 0x010 (R/W) SAU Region Limit Address Register */ -#endif -} SAU_Type; - -/* SAU Control Register Definitions */ -#define SAU_CTRL_ALLNS_Pos 1U /*!< SAU CTRL: ALLNS Position */ -#define SAU_CTRL_ALLNS_Msk (1UL << SAU_CTRL_ALLNS_Pos) /*!< SAU CTRL: ALLNS Mask */ - -#define SAU_CTRL_ENABLE_Pos 0U /*!< SAU CTRL: ENABLE Position */ -#define SAU_CTRL_ENABLE_Msk (1UL /*<< SAU_CTRL_ENABLE_Pos*/) /*!< SAU CTRL: ENABLE Mask */ - -/* SAU Type Register Definitions */ -#define SAU_TYPE_SREGION_Pos 0U /*!< SAU TYPE: SREGION Position */ -#define SAU_TYPE_SREGION_Msk (0xFFUL /*<< SAU_TYPE_SREGION_Pos*/) /*!< SAU TYPE: SREGION Mask */ - -#if defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) -/* SAU Region Number Register Definitions */ -#define SAU_RNR_REGION_Pos 0U /*!< SAU RNR: REGION Position */ -#define SAU_RNR_REGION_Msk (0xFFUL /*<< SAU_RNR_REGION_Pos*/) /*!< SAU RNR: REGION Mask */ - -/* SAU Region Base Address Register Definitions */ -#define SAU_RBAR_BADDR_Pos 5U /*!< SAU RBAR: BADDR Position */ -#define SAU_RBAR_BADDR_Msk (0x7FFFFFFUL << SAU_RBAR_BADDR_Pos) /*!< SAU RBAR: BADDR Mask */ - -/* SAU Region Limit Address Register Definitions */ -#define SAU_RLAR_LADDR_Pos 5U /*!< SAU RLAR: LADDR Position */ -#define SAU_RLAR_LADDR_Msk (0x7FFFFFFUL << SAU_RLAR_LADDR_Pos) /*!< SAU RLAR: LADDR Mask */ - -#define SAU_RLAR_NSC_Pos 1U /*!< SAU RLAR: NSC Position */ -#define SAU_RLAR_NSC_Msk (1UL << SAU_RLAR_NSC_Pos) /*!< SAU RLAR: NSC Mask */ - -#define SAU_RLAR_ENABLE_Pos 0U /*!< SAU RLAR: ENABLE Position */ -#define SAU_RLAR_ENABLE_Msk (1UL /*<< SAU_RLAR_ENABLE_Pos*/) /*!< SAU RLAR: ENABLE Mask */ - -#endif /* defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) */ - -/*@} end of group CMSIS_SAU */ -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) - \brief Type definitions for the Core Debug Registers - @{ - */ - -/** - \brief Structure type to access the Core Debug Register (CoreDebug). - */ -typedef struct -{ - __IOM uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ - __OM uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ - __IOM uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ - __IOM uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ - uint32_t RESERVED4[1U]; - __IOM uint32_t DAUTHCTRL; /*!< Offset: 0x014 (R/W) Debug Authentication Control Register */ - __IOM uint32_t DSCSR; /*!< Offset: 0x018 (R/W) Debug Security Control and Status Register */ -} CoreDebug_Type; - -/* Debug Halting Control and Status Register Definitions */ -#define CoreDebug_DHCSR_DBGKEY_Pos 16U /*!< CoreDebug DHCSR: DBGKEY Position */ -#define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ - -#define CoreDebug_DHCSR_S_RESTART_ST_Pos 26U /*!< CoreDebug DHCSR: S_RESTART_ST Position */ -#define CoreDebug_DHCSR_S_RESTART_ST_Msk (1UL << CoreDebug_DHCSR_S_RESTART_ST_Pos) /*!< CoreDebug DHCSR: S_RESTART_ST Mask */ - -#define CoreDebug_DHCSR_S_RESET_ST_Pos 25U /*!< CoreDebug DHCSR: S_RESET_ST Position */ -#define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ - -#define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24U /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ -#define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ - -#define CoreDebug_DHCSR_S_LOCKUP_Pos 19U /*!< CoreDebug DHCSR: S_LOCKUP Position */ -#define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ - -#define CoreDebug_DHCSR_S_SLEEP_Pos 18U /*!< CoreDebug DHCSR: S_SLEEP Position */ -#define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ - -#define CoreDebug_DHCSR_S_HALT_Pos 17U /*!< CoreDebug DHCSR: S_HALT Position */ -#define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ - -#define CoreDebug_DHCSR_S_REGRDY_Pos 16U /*!< CoreDebug DHCSR: S_REGRDY Position */ -#define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ - -#define CoreDebug_DHCSR_C_MASKINTS_Pos 3U /*!< CoreDebug DHCSR: C_MASKINTS Position */ -#define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ - -#define CoreDebug_DHCSR_C_STEP_Pos 2U /*!< CoreDebug DHCSR: C_STEP Position */ -#define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ - -#define CoreDebug_DHCSR_C_HALT_Pos 1U /*!< CoreDebug DHCSR: C_HALT Position */ -#define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ - -#define CoreDebug_DHCSR_C_DEBUGEN_Pos 0U /*!< CoreDebug DHCSR: C_DEBUGEN Position */ -#define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL /*<< CoreDebug_DHCSR_C_DEBUGEN_Pos*/) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ - -/* Debug Core Register Selector Register Definitions */ -#define CoreDebug_DCRSR_REGWnR_Pos 16U /*!< CoreDebug DCRSR: REGWnR Position */ -#define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ - -#define CoreDebug_DCRSR_REGSEL_Pos 0U /*!< CoreDebug DCRSR: REGSEL Position */ -#define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL /*<< CoreDebug_DCRSR_REGSEL_Pos*/) /*!< CoreDebug DCRSR: REGSEL Mask */ - -/* Debug Exception and Monitor Control Register */ -#define CoreDebug_DEMCR_DWTENA_Pos 24U /*!< CoreDebug DEMCR: DWTENA Position */ -#define CoreDebug_DEMCR_DWTENA_Msk (1UL << CoreDebug_DEMCR_DWTENA_Pos) /*!< CoreDebug DEMCR: DWTENA Mask */ - -#define CoreDebug_DEMCR_VC_HARDERR_Pos 10U /*!< CoreDebug DEMCR: VC_HARDERR Position */ -#define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ - -#define CoreDebug_DEMCR_VC_CORERESET_Pos 0U /*!< CoreDebug DEMCR: VC_CORERESET Position */ -#define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL /*<< CoreDebug_DEMCR_VC_CORERESET_Pos*/) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ - -/* Debug Authentication Control Register Definitions */ -#define CoreDebug_DAUTHCTRL_INTSPNIDEN_Pos 3U /*!< CoreDebug DAUTHCTRL: INTSPNIDEN, Position */ -#define CoreDebug_DAUTHCTRL_INTSPNIDEN_Msk (1UL << CoreDebug_DAUTHCTRL_INTSPNIDEN_Pos) /*!< CoreDebug DAUTHCTRL: INTSPNIDEN, Mask */ - -#define CoreDebug_DAUTHCTRL_SPNIDENSEL_Pos 2U /*!< CoreDebug DAUTHCTRL: SPNIDENSEL Position */ -#define CoreDebug_DAUTHCTRL_SPNIDENSEL_Msk (1UL << CoreDebug_DAUTHCTRL_SPNIDENSEL_Pos) /*!< CoreDebug DAUTHCTRL: SPNIDENSEL Mask */ - -#define CoreDebug_DAUTHCTRL_INTSPIDEN_Pos 1U /*!< CoreDebug DAUTHCTRL: INTSPIDEN Position */ -#define CoreDebug_DAUTHCTRL_INTSPIDEN_Msk (1UL << CoreDebug_DAUTHCTRL_INTSPIDEN_Pos) /*!< CoreDebug DAUTHCTRL: INTSPIDEN Mask */ - -#define CoreDebug_DAUTHCTRL_SPIDENSEL_Pos 0U /*!< CoreDebug DAUTHCTRL: SPIDENSEL Position */ -#define CoreDebug_DAUTHCTRL_SPIDENSEL_Msk (1UL /*<< CoreDebug_DAUTHCTRL_SPIDENSEL_Pos*/) /*!< CoreDebug DAUTHCTRL: SPIDENSEL Mask */ - -/* Debug Security Control and Status Register Definitions */ -#define CoreDebug_DSCSR_CDS_Pos 16U /*!< CoreDebug DSCSR: CDS Position */ -#define CoreDebug_DSCSR_CDS_Msk (1UL << CoreDebug_DSCSR_CDS_Pos) /*!< CoreDebug DSCSR: CDS Mask */ - -#define CoreDebug_DSCSR_SBRSEL_Pos 1U /*!< CoreDebug DSCSR: SBRSEL Position */ -#define CoreDebug_DSCSR_SBRSEL_Msk (1UL << CoreDebug_DSCSR_SBRSEL_Pos) /*!< CoreDebug DSCSR: SBRSEL Mask */ - -#define CoreDebug_DSCSR_SBRSELEN_Pos 0U /*!< CoreDebug DSCSR: SBRSELEN Position */ -#define CoreDebug_DSCSR_SBRSELEN_Msk (1UL /*<< CoreDebug_DSCSR_SBRSELEN_Pos*/) /*!< CoreDebug DSCSR: SBRSELEN Mask */ - -/*@} end of group CMSIS_CoreDebug */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_core_bitfield Core register bit field macros - \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). - @{ - */ - -/** - \brief Mask and shift a bit field value for use in a register bit range. - \param[in] field Name of the register bit field. - \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. - \return Masked and shifted value. -*/ -#define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) - -/** - \brief Mask and shift a register value to extract a bit filed value. - \param[in] field Name of the register bit field. - \param[in] value Value of register. This parameter is interpreted as an uint32_t type. - \return Masked and shifted bit field value. -*/ -#define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) - -/*@} end of group CMSIS_core_bitfield */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_core_base Core Definitions - \brief Definitions for base addresses, unions, and structures. - @{ - */ - -/* Memory mapping of Core Hardware */ - #define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ - #define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ - #define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ - #define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ - #define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ - #define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ - #define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ - - - #define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ - #define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ - #define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ - #define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ - #define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ - #define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE ) /*!< Core Debug configuration struct */ - - #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) - #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ - #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ - #endif - - #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) - #define SAU_BASE (SCS_BASE + 0x0DD0UL) /*!< Security Attribution Unit */ - #define SAU ((SAU_Type *) SAU_BASE ) /*!< Security Attribution Unit */ - #endif - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) - #define SCS_BASE_NS (0xE002E000UL) /*!< System Control Space Base Address (non-secure address space) */ - #define CoreDebug_BASE_NS (0xE002EDF0UL) /*!< Core Debug Base Address (non-secure address space) */ - #define SysTick_BASE_NS (SCS_BASE_NS + 0x0010UL) /*!< SysTick Base Address (non-secure address space) */ - #define NVIC_BASE_NS (SCS_BASE_NS + 0x0100UL) /*!< NVIC Base Address (non-secure address space) */ - #define SCB_BASE_NS (SCS_BASE_NS + 0x0D00UL) /*!< System Control Block Base Address (non-secure address space) */ - - #define SCB_NS ((SCB_Type *) SCB_BASE_NS ) /*!< SCB configuration struct (non-secure address space) */ - #define SysTick_NS ((SysTick_Type *) SysTick_BASE_NS ) /*!< SysTick configuration struct (non-secure address space) */ - #define NVIC_NS ((NVIC_Type *) NVIC_BASE_NS ) /*!< NVIC configuration struct (non-secure address space) */ - #define CoreDebug_NS ((CoreDebug_Type *) CoreDebug_BASE_NS) /*!< Core Debug configuration struct (non-secure address space) */ - - #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) - #define MPU_BASE_NS (SCS_BASE_NS + 0x0D90UL) /*!< Memory Protection Unit (non-secure address space) */ - #define MPU_NS ((MPU_Type *) MPU_BASE_NS ) /*!< Memory Protection Unit (non-secure address space) */ - #endif - -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ -/*@} */ - - - -/******************************************************************************* - * Hardware Abstraction Layer - Core Function Interface contains: - - Core NVIC Functions - - Core SysTick Functions - - Core Register Access Functions - ******************************************************************************/ -/** - \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference -*/ - - - -/* ########################## NVIC functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_NVICFunctions NVIC Functions - \brief Functions that manage interrupts and exceptions via the NVIC. - @{ - */ - -#ifdef CMSIS_NVIC_VIRTUAL - #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE - #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" - #endif - #include CMSIS_NVIC_VIRTUAL_HEADER_FILE -#else -/*#define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping not available for Cortex-M23 */ -/*#define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping not available for Cortex-M23 */ - #define NVIC_EnableIRQ __NVIC_EnableIRQ - #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ - #define NVIC_DisableIRQ __NVIC_DisableIRQ - #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ - #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ - #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ - #define NVIC_GetActive __NVIC_GetActive - #define NVIC_SetPriority __NVIC_SetPriority - #define NVIC_GetPriority __NVIC_GetPriority - #define NVIC_SystemReset __NVIC_SystemReset -#endif /* CMSIS_NVIC_VIRTUAL */ - -#ifdef CMSIS_VECTAB_VIRTUAL - #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE - #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" - #endif - #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE -#else - #define NVIC_SetVector __NVIC_SetVector - #define NVIC_GetVector __NVIC_GetVector -#endif /* (CMSIS_VECTAB_VIRTUAL) */ - -#define NVIC_USER_IRQ_OFFSET 16 - - -/* Special LR values for Secure/Non-Secure call handling and exception handling */ - -/* Function Return Payload (from ARMv8-M Architecture Reference Manual) LR value on entry from Secure BLXNS */ -#define FNC_RETURN (0xFEFFFFFFUL) /* bit [0] ignored when processing a branch */ - -/* The following EXC_RETURN mask values are used to evaluate the LR on exception entry */ -#define EXC_RETURN_PREFIX (0xFF000000UL) /* bits [31:24] set to indicate an EXC_RETURN value */ -#define EXC_RETURN_S (0x00000040UL) /* bit [6] stack used to push registers: 0=Non-secure 1=Secure */ -#define EXC_RETURN_DCRS (0x00000020UL) /* bit [5] stacking rules for called registers: 0=skipped 1=saved */ -#define EXC_RETURN_FTYPE (0x00000010UL) /* bit [4] allocate stack for floating-point context: 0=done 1=skipped */ -#define EXC_RETURN_MODE (0x00000008UL) /* bit [3] processor mode for return: 0=Handler mode 1=Thread mode */ -#define EXC_RETURN_SPSEL (0x00000004UL) /* bit [2] stack pointer used to restore context: 0=MSP 1=PSP */ -#define EXC_RETURN_ES (0x00000001UL) /* bit [0] security state exception was taken to: 0=Non-secure 1=Secure */ - -/* Integrity Signature (from ARMv8-M Architecture Reference Manual) for exception context stacking */ -#if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) /* Value for processors with floating-point extension: */ -#define EXC_INTEGRITY_SIGNATURE (0xFEFA125AUL) /* bit [0] SFTC must match LR bit[4] EXC_RETURN_FTYPE */ -#else -#define EXC_INTEGRITY_SIGNATURE (0xFEFA125BUL) /* Value for processors without floating-point extension */ -#endif - - -/* Interrupt Priorities are WORD accessible only under Armv6-M */ -/* The following MACROS handle generation of the register offset and byte masks */ -#define _BIT_SHIFT(IRQn) ( ((((uint32_t)(int32_t)(IRQn)) ) & 0x03UL) * 8UL) -#define _SHP_IDX(IRQn) ( (((((uint32_t)(int32_t)(IRQn)) & 0x0FUL)-8UL) >> 2UL) ) -#define _IP_IDX(IRQn) ( (((uint32_t)(int32_t)(IRQn)) >> 2UL) ) - -#define __NVIC_SetPriorityGrouping(X) (void)(X) -#define __NVIC_GetPriorityGrouping() (0U) - -/** - \brief Enable Interrupt - \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) -{ - if ((int32_t)(IRQn) >= 0) - { - __COMPILER_BARRIER(); - NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - __COMPILER_BARRIER(); - } -} - - -/** - \brief Get Interrupt Enable status - \details Returns a device specific interrupt enable status from the NVIC interrupt controller. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt is not enabled. - \return 1 Interrupt is enabled. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Disable Interrupt - \details Disables 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_DisableIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - __DSB(); - __ISB(); - } -} - - -/** - \brief Get Pending Interrupt - \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not pending. - \return 1 Interrupt status is pending. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Pending Interrupt - \details Sets the pending bit of a device specific interrupt in the NVIC pending register. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Clear Pending Interrupt - \details Clears the pending bit of a device specific interrupt in the NVIC pending register. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Active Interrupt - \details Reads the active register in the NVIC and returns the active bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not active. - \return 1 Interrupt status is active. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetActive(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) -/** - \brief Get Interrupt Target State - \details Reads the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 if interrupt is assigned to Secure - \return 1 if interrupt is assigned to Non Secure - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t NVIC_GetTargetState(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Interrupt Target State - \details Sets the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 if interrupt is assigned to Secure - 1 if interrupt is assigned to Non Secure - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t NVIC_SetTargetState(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] |= ((uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL))); - return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Clear Interrupt Target State - \details Clears the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 if interrupt is assigned to Secure - 1 if interrupt is assigned to Non Secure - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t NVIC_ClearTargetState(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] &= ~((uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL))); - return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ - - -/** - \brief Set Interrupt Priority - \details Sets the priority of a device specific interrupt or a processor exception. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \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) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->IPR[_IP_IDX(IRQn)] = ((uint32_t)(NVIC->IPR[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | - (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - } - else - { - SCB->SHPR[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHPR[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | - (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - } -} - - -/** - \brief Get Interrupt Priority - \details Reads the priority of a device specific interrupt or a processor exception. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Interrupt Priority. - Value is aligned automatically to the implemented priority bits of the microcontroller. - */ -__STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) -{ - - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->IPR[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); - } - else - { - return((uint32_t)(((SCB->SHPR[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); - } -} - - -/** - \brief Encode Priority - \details Encodes the priority for an interrupt with the given priority group, - preemptive priority value, and subpriority value. - 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 Used priority group. - \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) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - - return ( - ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) - ); -} - - -/** - \brief Decode Priority - \details Decodes an interrupt priority value with a given priority group to - preemptive priority value and subpriority value. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. - \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). - \param [in] PriorityGroup Used priority group. - \param [out] pPreemptPriority Preemptive priority value (starting from 0). - \param [out] pSubPriority Subpriority value (starting from 0). - */ -__STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - - *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); - *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); -} - - -/** - \brief Set Interrupt Vector - \details Sets an interrupt vector in SRAM based interrupt vector table. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - VTOR must been relocated to SRAM before. - If VTOR is not present address 0 must be mapped to SRAM. - \param [in] IRQn Interrupt number - \param [in] vector Address of interrupt handler function - */ -__STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) -{ -#if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) - uint32_t *vectors = (uint32_t *)SCB->VTOR; -#else - uint32_t *vectors = (uint32_t *)0x0U; -#endif - vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET] = vector; - __DSB(); -} - - -/** - \brief Get Interrupt Vector - \details Reads an interrupt vector from interrupt vector table. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Address of interrupt handler function - */ -__STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) -{ -#if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) - uint32_t *vectors = (uint32_t *)SCB->VTOR; -#else - uint32_t *vectors = (uint32_t *)0x0U; -#endif - return vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET]; -} - - -/** - \brief System Reset - \details Initiates a system reset request to reset the MCU. - */ -__NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) -{ - __DSB(); /* Ensure all outstanding memory accesses included - buffered write are completed before reset */ - SCB->AIRCR = ((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - SCB_AIRCR_SYSRESETREQ_Msk); - __DSB(); /* Ensure completion of memory access */ - - for(;;) /* wait until reset */ - { - __NOP(); - } -} - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) -/** - \brief Enable Interrupt (non-secure) - \details Enables a device specific interrupt in the non-secure NVIC interrupt controller when in secure state. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void TZ_NVIC_EnableIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Interrupt Enable status (non-secure) - \details Returns a device specific interrupt enable status from the non-secure NVIC interrupt controller when in secure state. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt is not enabled. - \return 1 Interrupt is enabled. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t TZ_NVIC_GetEnableIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC_NS->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Disable Interrupt (non-secure) - \details Disables a device specific interrupt in the non-secure NVIC interrupt controller when in secure state. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void TZ_NVIC_DisableIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Pending Interrupt (non-secure) - \details Reads the NVIC pending register in the non-secure NVIC when in secure state and returns the pending bit for the specified device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not pending. - \return 1 Interrupt status is pending. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t TZ_NVIC_GetPendingIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC_NS->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Pending Interrupt (non-secure) - \details Sets the pending bit of a device specific interrupt in the non-secure NVIC pending register when in secure state. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void TZ_NVIC_SetPendingIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Clear Pending Interrupt (non-secure) - \details Clears the pending bit of a device specific interrupt in the non-secure NVIC pending register when in secure state. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void TZ_NVIC_ClearPendingIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Active Interrupt (non-secure) - \details Reads the active register in non-secure NVIC when in secure state and returns the active bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not active. - \return 1 Interrupt status is active. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t TZ_NVIC_GetActive_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC_NS->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Interrupt Priority (non-secure) - \details Sets the priority of a non-secure device specific interrupt or a non-secure processor exception when in secure state. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \param [in] priority Priority to set. - \note The priority cannot be set for every non-secure processor exception. - */ -__STATIC_INLINE void TZ_NVIC_SetPriority_NS(IRQn_Type IRQn, uint32_t priority) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->IPR[_IP_IDX(IRQn)] = ((uint32_t)(NVIC_NS->IPR[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | - (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - } - else - { - SCB_NS->SHPR[_SHP_IDX(IRQn)] = ((uint32_t)(SCB_NS->SHPR[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | - (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - } -} - - -/** - \brief Get Interrupt Priority (non-secure) - \details Reads the priority of a non-secure device specific interrupt or a non-secure processor exception when in secure state. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. - */ -__STATIC_INLINE uint32_t TZ_NVIC_GetPriority_NS(IRQn_Type IRQn) -{ - - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC_NS->IPR[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); - } - else - { - return((uint32_t)(((SCB_NS->SHPR[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); - } -} -#endif /* defined (__ARM_FEATURE_CMSE) &&(__ARM_FEATURE_CMSE == 3U) */ - -/*@} end of CMSIS_Core_NVICFunctions */ - -/* ########################## MPU functions #################################### */ - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) - -#include "mpu_armv8.h" - -#endif - -/* ########################## FPU functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_FpuFunctions FPU Functions - \brief Function that provides FPU type. - @{ - */ - -/** - \brief get FPU type - \details returns the FPU type - \returns - - \b 0: No FPU - - \b 1: Single precision FPU - - \b 2: Double + Single precision FPU - */ -__STATIC_INLINE uint32_t SCB_GetFPUType(void) -{ - return 0U; /* No FPU */ -} - - -/*@} end of CMSIS_Core_FpuFunctions */ - - - -/* ########################## SAU functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SAUFunctions SAU Functions - \brief Functions that configure the SAU. - @{ - */ - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) - -/** - \brief Enable SAU - \details Enables the Security Attribution Unit (SAU). - */ -__STATIC_INLINE void TZ_SAU_Enable(void) -{ - SAU->CTRL |= (SAU_CTRL_ENABLE_Msk); -} - - - -/** - \brief Disable SAU - \details Disables the Security Attribution Unit (SAU). - */ -__STATIC_INLINE void TZ_SAU_Disable(void) -{ - SAU->CTRL &= ~(SAU_CTRL_ENABLE_Msk); -} - -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ - -/*@} end of CMSIS_Core_SAUFunctions */ - - - - -/* ################################## SysTick function ############################################ */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SysTickFunctions SysTick Functions - \brief Functions that configure the System. - @{ - */ - -#if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) - -/** - \brief System Tick Configuration - \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. - Counter is in free running mode to generate periodic interrupts. - \param [in] ticks Number of ticks between two interrupts. - \return 0 Function succeeded. - \return 1 Function failed. - \note When the variable __Vendor_SysTickConfig is set to 1, then the - function SysTick_Config is not included. In this case, the file device.h - must contain a vendor-specific implementation of this function. - */ -__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) -{ - if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - { - return (1UL); /* Reload value impossible */ - } - - SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ - SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0UL); /* Function successful */ -} - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) -/** - \brief System Tick Configuration (non-secure) - \details Initializes the non-secure System Timer and its interrupt when in secure state, and starts the System Tick Timer. - Counter is in free running mode to generate periodic interrupts. - \param [in] ticks Number of ticks between two interrupts. - \return 0 Function succeeded. - \return 1 Function failed. - \note When the variable __Vendor_SysTickConfig is set to 1, then the - function TZ_SysTick_Config_NS is not included. In this case, the file device.h - must contain a vendor-specific implementation of this function. - - */ -__STATIC_INLINE uint32_t TZ_SysTick_Config_NS(uint32_t ticks) -{ - if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - { - return (1UL); /* Reload value impossible */ - } - - SysTick_NS->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - TZ_NVIC_SetPriority_NS (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - SysTick_NS->VAL = 0UL; /* Load the SysTick Counter Value */ - SysTick_NS->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0UL); /* Function successful */ -} -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ - -#endif - -/*@} end of CMSIS_Core_SysTickFunctions */ - - - - -#ifdef __cplusplus -} -#endif - -#endif /* __CORE_CM23_H_DEPENDANT */ - -#endif /* __CMSIS_GENERIC */ diff --git a/Drivers/CMSIS/Include/core_cm3.h b/Drivers/CMSIS/Include/core_cm3.h deleted file mode 100644 index 8157ca7..0000000 --- a/Drivers/CMSIS/Include/core_cm3.h +++ /dev/null @@ -1,1937 +0,0 @@ -/**************************************************************************//** - * @file core_cm3.h - * @brief CMSIS Cortex-M3 Core Peripheral Access Layer Header File - * @version V5.1.0 - * @date 13. March 2019 - ******************************************************************************/ -/* - * Copyright (c) 2009-2019 Arm Limited. All rights reserved. - * - * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the License); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#if defined ( __ICCARM__ ) - #pragma system_include /* treat file as system include file for MISRA check */ -#elif defined (__clang__) - #pragma clang system_header /* treat file as system include file */ -#endif - -#ifndef __CORE_CM3_H_GENERIC -#define __CORE_CM3_H_GENERIC - -#include - -#ifdef __cplusplus - extern "C" { -#endif - -/** - \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions - CMSIS violates the following MISRA-C:2004 rules: - - \li Required Rule 8.5, object/function definition in header file.
- Function definitions in header files are used to allow 'inlining'. - - \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
- Unions are used for effective representation of core registers. - - \li Advisory Rule 19.7, Function-like macro defined.
- Function-like macros are used to allow more efficient code. - */ - - -/******************************************************************************* - * CMSIS definitions - ******************************************************************************/ -/** - \ingroup Cortex_M3 - @{ - */ - -#include "cmsis_version.h" - -/* CMSIS CM3 definitions */ -#define __CM3_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ -#define __CM3_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ -#define __CM3_CMSIS_VERSION ((__CM3_CMSIS_VERSION_MAIN << 16U) | \ - __CM3_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ - -#define __CORTEX_M (3U) /*!< Cortex-M Core */ - -/** __FPU_USED indicates whether an FPU is used or not. - This core does not support an FPU at all -*/ -#define __FPU_USED 0U - -#if defined ( __CC_ARM ) - #if defined __TARGET_FPU_VFP - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) - #if defined __ARM_FP - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __GNUC__ ) - #if defined (__VFP_FP__) && !defined(__SOFTFP__) - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __ICCARM__ ) - #if defined __ARMVFP__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __TI_ARM__ ) - #if defined __TI_VFP_SUPPORT__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __TASKING__ ) - #if defined __FPU_VFP__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __CSMC__ ) - #if ( __CSMC__ & 0x400U) - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#endif - -#include "cmsis_compiler.h" /* CMSIS compiler specific defines */ - - -#ifdef __cplusplus -} -#endif - -#endif /* __CORE_CM3_H_GENERIC */ - -#ifndef __CMSIS_GENERIC - -#ifndef __CORE_CM3_H_DEPENDANT -#define __CORE_CM3_H_DEPENDANT - -#ifdef __cplusplus - extern "C" { -#endif - -/* check device defines and use defaults */ -#if defined __CHECK_DEVICE_DEFINES - #ifndef __CM3_REV - #define __CM3_REV 0x0200U - #warning "__CM3_REV not defined in device header file; using default!" - #endif - - #ifndef __MPU_PRESENT - #define __MPU_PRESENT 0U - #warning "__MPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __NVIC_PRIO_BITS - #define __NVIC_PRIO_BITS 3U - #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" - #endif - - #ifndef __Vendor_SysTickConfig - #define __Vendor_SysTickConfig 0U - #warning "__Vendor_SysTickConfig not defined in device header file; using default!" - #endif -#endif - -/* IO definitions (access restrictions to peripheral registers) */ -/** - \defgroup CMSIS_glob_defs CMSIS Global Defines - - IO Type Qualifiers are used - \li to specify the access to peripheral variables. - \li for automatic generation of peripheral register debug information. -*/ -#ifdef __cplusplus - #define __I volatile /*!< Defines 'read only' permissions */ -#else - #define __I volatile const /*!< Defines 'read only' permissions */ -#endif -#define __O volatile /*!< Defines 'write only' permissions */ -#define __IO volatile /*!< Defines 'read / write' permissions */ - -/* following defines should be used for structure members */ -#define __IM volatile const /*! Defines 'read only' structure member permissions */ -#define __OM volatile /*! Defines 'write only' structure member permissions */ -#define __IOM volatile /*! Defines 'read / write' structure member permissions */ - -/*@} end of group Cortex_M3 */ - - - -/******************************************************************************* - * Register Abstraction - Core Register contain: - - Core Register - - Core NVIC Register - - Core SCB Register - - Core SysTick Register - - Core Debug Register - - Core MPU Register - ******************************************************************************/ -/** - \defgroup CMSIS_core_register Defines and Type Definitions - \brief Type definitions and defines for Cortex-M processor based devices. -*/ - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_CORE Status and Control Registers - \brief Core Register type definitions. - @{ - */ - -/** - \brief Union type to access the Application Program Status Register (APSR). - */ -typedef union -{ - struct - { - uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} APSR_Type; - -/* APSR Register Definitions */ -#define APSR_N_Pos 31U /*!< APSR: N Position */ -#define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ - -#define APSR_Z_Pos 30U /*!< APSR: Z Position */ -#define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ - -#define APSR_C_Pos 29U /*!< APSR: C Position */ -#define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ - -#define APSR_V_Pos 28U /*!< APSR: V Position */ -#define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ - -#define APSR_Q_Pos 27U /*!< APSR: Q Position */ -#define APSR_Q_Msk (1UL << APSR_Q_Pos) /*!< APSR: Q Mask */ - - -/** - \brief Union type to access the Interrupt Program Status Register (IPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} IPSR_Type; - -/* IPSR Register Definitions */ -#define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ -#define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ - - -/** - \brief Union type to access the Special-Purpose Program Status Registers (xPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:1; /*!< bit: 9 Reserved */ - uint32_t ICI_IT_1:6; /*!< bit: 10..15 ICI/IT part 1 */ - uint32_t _reserved1:8; /*!< bit: 16..23 Reserved */ - uint32_t T:1; /*!< bit: 24 Thumb bit */ - uint32_t ICI_IT_2:2; /*!< bit: 25..26 ICI/IT part 2 */ - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} xPSR_Type; - -/* xPSR Register Definitions */ -#define xPSR_N_Pos 31U /*!< xPSR: N Position */ -#define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ - -#define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ -#define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ - -#define xPSR_C_Pos 29U /*!< xPSR: C Position */ -#define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ - -#define xPSR_V_Pos 28U /*!< xPSR: V Position */ -#define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ - -#define xPSR_Q_Pos 27U /*!< xPSR: Q Position */ -#define xPSR_Q_Msk (1UL << xPSR_Q_Pos) /*!< xPSR: Q Mask */ - -#define xPSR_ICI_IT_2_Pos 25U /*!< xPSR: ICI/IT part 2 Position */ -#define xPSR_ICI_IT_2_Msk (3UL << xPSR_ICI_IT_2_Pos) /*!< xPSR: ICI/IT part 2 Mask */ - -#define xPSR_T_Pos 24U /*!< xPSR: T Position */ -#define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ - -#define xPSR_ICI_IT_1_Pos 10U /*!< xPSR: ICI/IT part 1 Position */ -#define xPSR_ICI_IT_1_Msk (0x3FUL << xPSR_ICI_IT_1_Pos) /*!< xPSR: ICI/IT part 1 Mask */ - -#define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ -#define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ - - -/** - \brief Union type to access the Control Registers (CONTROL). - */ -typedef union -{ - struct - { - uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ - uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ - uint32_t _reserved1:30; /*!< bit: 2..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} CONTROL_Type; - -/* CONTROL Register Definitions */ -#define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ -#define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ - -#define CONTROL_nPRIV_Pos 0U /*!< CONTROL: nPRIV Position */ -#define CONTROL_nPRIV_Msk (1UL /*<< CONTROL_nPRIV_Pos*/) /*!< CONTROL: nPRIV Mask */ - -/*@} end of group CMSIS_CORE */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) - \brief Type definitions for the NVIC Registers - @{ - */ - -/** - \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). - */ -typedef struct -{ - __IOM uint32_t ISER[8U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ - uint32_t RESERVED0[24U]; - __IOM uint32_t ICER[8U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ - uint32_t RESERVED1[24U]; - __IOM uint32_t ISPR[8U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ - uint32_t RESERVED2[24U]; - __IOM uint32_t ICPR[8U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ - uint32_t RESERVED3[24U]; - __IOM uint32_t IABR[8U]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ - uint32_t RESERVED4[56U]; - __IOM uint8_t IP[240U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ - uint32_t RESERVED5[644U]; - __OM uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ -} NVIC_Type; - -/* Software Triggered Interrupt Register Definitions */ -#define NVIC_STIR_INTID_Pos 0U /*!< STIR: INTLINESNUM Position */ -#define NVIC_STIR_INTID_Msk (0x1FFUL /*<< NVIC_STIR_INTID_Pos*/) /*!< STIR: INTLINESNUM Mask */ - -/*@} end of group CMSIS_NVIC */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SCB System Control Block (SCB) - \brief Type definitions for the System Control Block Registers - @{ - */ - -/** - \brief Structure type to access the System Control Block (SCB). - */ -typedef struct -{ - __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ - __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ - __IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ - __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ - __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ - __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ - __IOM uint8_t SHP[12U]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ - __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ - __IOM uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ - __IOM uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ - __IOM uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ - __IOM uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ - __IOM uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ - __IOM uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ - __IM uint32_t PFR[2U]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ - __IM uint32_t DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ - __IM uint32_t ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ - __IM uint32_t MMFR[4U]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ - __IM uint32_t ISAR[5U]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ - uint32_t RESERVED0[5U]; - __IOM uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ -} SCB_Type; - -/* SCB CPUID Register Definitions */ -#define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ -#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ - -#define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ -#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ - -#define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ -#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ - -#define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ -#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ - -#define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ -#define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ - -/* SCB Interrupt Control State Register Definitions */ -#define SCB_ICSR_NMIPENDSET_Pos 31U /*!< SCB ICSR: NMIPENDSET Position */ -#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ - -#define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ -#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ - -#define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ -#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ - -#define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ -#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ - -#define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ -#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ - -#define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ -#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ - -#define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ -#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ - -#define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ -#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ - -#define SCB_ICSR_RETTOBASE_Pos 11U /*!< SCB ICSR: RETTOBASE Position */ -#define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ - -#define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ -#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ - -/* SCB Vector Table Offset Register Definitions */ -#if defined (__CM3_REV) && (__CM3_REV < 0x0201U) /* core r2p1 */ -#define SCB_VTOR_TBLBASE_Pos 29U /*!< SCB VTOR: TBLBASE Position */ -#define SCB_VTOR_TBLBASE_Msk (1UL << SCB_VTOR_TBLBASE_Pos) /*!< SCB VTOR: TBLBASE Mask */ - -#define SCB_VTOR_TBLOFF_Pos 7U /*!< SCB VTOR: TBLOFF Position */ -#define SCB_VTOR_TBLOFF_Msk (0x3FFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ -#else -#define SCB_VTOR_TBLOFF_Pos 7U /*!< SCB VTOR: TBLOFF Position */ -#define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ -#endif - -/* SCB Application Interrupt and Reset Control Register Definitions */ -#define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ -#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ - -#define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ -#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ - -#define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ -#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ - -#define SCB_AIRCR_PRIGROUP_Pos 8U /*!< SCB AIRCR: PRIGROUP Position */ -#define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ - -#define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ -#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ - -#define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ -#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ - -#define SCB_AIRCR_VECTRESET_Pos 0U /*!< SCB AIRCR: VECTRESET Position */ -#define SCB_AIRCR_VECTRESET_Msk (1UL /*<< SCB_AIRCR_VECTRESET_Pos*/) /*!< SCB AIRCR: VECTRESET Mask */ - -/* SCB System Control Register Definitions */ -#define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ -#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ - -#define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ -#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ - -#define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ -#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ - -/* SCB Configuration Control Register Definitions */ -#define SCB_CCR_STKALIGN_Pos 9U /*!< SCB CCR: STKALIGN Position */ -#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ - -#define SCB_CCR_BFHFNMIGN_Pos 8U /*!< SCB CCR: BFHFNMIGN Position */ -#define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ - -#define SCB_CCR_DIV_0_TRP_Pos 4U /*!< SCB CCR: DIV_0_TRP Position */ -#define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ - -#define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ -#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ - -#define SCB_CCR_USERSETMPEND_Pos 1U /*!< SCB CCR: USERSETMPEND Position */ -#define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ - -#define SCB_CCR_NONBASETHRDENA_Pos 0U /*!< SCB CCR: NONBASETHRDENA Position */ -#define SCB_CCR_NONBASETHRDENA_Msk (1UL /*<< SCB_CCR_NONBASETHRDENA_Pos*/) /*!< SCB CCR: NONBASETHRDENA Mask */ - -/* SCB System Handler Control and State Register Definitions */ -#define SCB_SHCSR_USGFAULTENA_Pos 18U /*!< SCB SHCSR: USGFAULTENA Position */ -#define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ - -#define SCB_SHCSR_BUSFAULTENA_Pos 17U /*!< SCB SHCSR: BUSFAULTENA Position */ -#define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ - -#define SCB_SHCSR_MEMFAULTENA_Pos 16U /*!< SCB SHCSR: MEMFAULTENA Position */ -#define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ - -#define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ -#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ - -#define SCB_SHCSR_BUSFAULTPENDED_Pos 14U /*!< SCB SHCSR: BUSFAULTPENDED Position */ -#define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ - -#define SCB_SHCSR_MEMFAULTPENDED_Pos 13U /*!< SCB SHCSR: MEMFAULTPENDED Position */ -#define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ - -#define SCB_SHCSR_USGFAULTPENDED_Pos 12U /*!< SCB SHCSR: USGFAULTPENDED Position */ -#define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ - -#define SCB_SHCSR_SYSTICKACT_Pos 11U /*!< SCB SHCSR: SYSTICKACT Position */ -#define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ - -#define SCB_SHCSR_PENDSVACT_Pos 10U /*!< SCB SHCSR: PENDSVACT Position */ -#define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ - -#define SCB_SHCSR_MONITORACT_Pos 8U /*!< SCB SHCSR: MONITORACT Position */ -#define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ - -#define SCB_SHCSR_SVCALLACT_Pos 7U /*!< SCB SHCSR: SVCALLACT Position */ -#define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ - -#define SCB_SHCSR_USGFAULTACT_Pos 3U /*!< SCB SHCSR: USGFAULTACT Position */ -#define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ - -#define SCB_SHCSR_BUSFAULTACT_Pos 1U /*!< SCB SHCSR: BUSFAULTACT Position */ -#define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ - -#define SCB_SHCSR_MEMFAULTACT_Pos 0U /*!< SCB SHCSR: MEMFAULTACT Position */ -#define SCB_SHCSR_MEMFAULTACT_Msk (1UL /*<< SCB_SHCSR_MEMFAULTACT_Pos*/) /*!< SCB SHCSR: MEMFAULTACT Mask */ - -/* SCB Configurable Fault Status Register Definitions */ -#define SCB_CFSR_USGFAULTSR_Pos 16U /*!< SCB CFSR: Usage Fault Status Register Position */ -#define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ - -#define SCB_CFSR_BUSFAULTSR_Pos 8U /*!< SCB CFSR: Bus Fault Status Register Position */ -#define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ - -#define SCB_CFSR_MEMFAULTSR_Pos 0U /*!< SCB CFSR: Memory Manage Fault Status Register Position */ -#define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL /*<< SCB_CFSR_MEMFAULTSR_Pos*/) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ - -/* MemManage Fault Status Register (part of SCB Configurable Fault Status Register) */ -#define SCB_CFSR_MMARVALID_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 7U) /*!< SCB CFSR (MMFSR): MMARVALID Position */ -#define SCB_CFSR_MMARVALID_Msk (1UL << SCB_CFSR_MMARVALID_Pos) /*!< SCB CFSR (MMFSR): MMARVALID Mask */ - -#define SCB_CFSR_MSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 4U) /*!< SCB CFSR (MMFSR): MSTKERR Position */ -#define SCB_CFSR_MSTKERR_Msk (1UL << SCB_CFSR_MSTKERR_Pos) /*!< SCB CFSR (MMFSR): MSTKERR Mask */ - -#define SCB_CFSR_MUNSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 3U) /*!< SCB CFSR (MMFSR): MUNSTKERR Position */ -#define SCB_CFSR_MUNSTKERR_Msk (1UL << SCB_CFSR_MUNSTKERR_Pos) /*!< SCB CFSR (MMFSR): MUNSTKERR Mask */ - -#define SCB_CFSR_DACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 1U) /*!< SCB CFSR (MMFSR): DACCVIOL Position */ -#define SCB_CFSR_DACCVIOL_Msk (1UL << SCB_CFSR_DACCVIOL_Pos) /*!< SCB CFSR (MMFSR): DACCVIOL Mask */ - -#define SCB_CFSR_IACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 0U) /*!< SCB CFSR (MMFSR): IACCVIOL Position */ -#define SCB_CFSR_IACCVIOL_Msk (1UL /*<< SCB_CFSR_IACCVIOL_Pos*/) /*!< SCB CFSR (MMFSR): IACCVIOL Mask */ - -/* BusFault Status Register (part of SCB Configurable Fault Status Register) */ -#define SCB_CFSR_BFARVALID_Pos (SCB_CFSR_BUSFAULTSR_Pos + 7U) /*!< SCB CFSR (BFSR): BFARVALID Position */ -#define SCB_CFSR_BFARVALID_Msk (1UL << SCB_CFSR_BFARVALID_Pos) /*!< SCB CFSR (BFSR): BFARVALID Mask */ - -#define SCB_CFSR_STKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 4U) /*!< SCB CFSR (BFSR): STKERR Position */ -#define SCB_CFSR_STKERR_Msk (1UL << SCB_CFSR_STKERR_Pos) /*!< SCB CFSR (BFSR): STKERR Mask */ - -#define SCB_CFSR_UNSTKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 3U) /*!< SCB CFSR (BFSR): UNSTKERR Position */ -#define SCB_CFSR_UNSTKERR_Msk (1UL << SCB_CFSR_UNSTKERR_Pos) /*!< SCB CFSR (BFSR): UNSTKERR Mask */ - -#define SCB_CFSR_IMPRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 2U) /*!< SCB CFSR (BFSR): IMPRECISERR Position */ -#define SCB_CFSR_IMPRECISERR_Msk (1UL << SCB_CFSR_IMPRECISERR_Pos) /*!< SCB CFSR (BFSR): IMPRECISERR Mask */ - -#define SCB_CFSR_PRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 1U) /*!< SCB CFSR (BFSR): PRECISERR Position */ -#define SCB_CFSR_PRECISERR_Msk (1UL << SCB_CFSR_PRECISERR_Pos) /*!< SCB CFSR (BFSR): PRECISERR Mask */ - -#define SCB_CFSR_IBUSERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 0U) /*!< SCB CFSR (BFSR): IBUSERR Position */ -#define SCB_CFSR_IBUSERR_Msk (1UL << SCB_CFSR_IBUSERR_Pos) /*!< SCB CFSR (BFSR): IBUSERR Mask */ - -/* UsageFault Status Register (part of SCB Configurable Fault Status Register) */ -#define SCB_CFSR_DIVBYZERO_Pos (SCB_CFSR_USGFAULTSR_Pos + 9U) /*!< SCB CFSR (UFSR): DIVBYZERO Position */ -#define SCB_CFSR_DIVBYZERO_Msk (1UL << SCB_CFSR_DIVBYZERO_Pos) /*!< SCB CFSR (UFSR): DIVBYZERO Mask */ - -#define SCB_CFSR_UNALIGNED_Pos (SCB_CFSR_USGFAULTSR_Pos + 8U) /*!< SCB CFSR (UFSR): UNALIGNED Position */ -#define SCB_CFSR_UNALIGNED_Msk (1UL << SCB_CFSR_UNALIGNED_Pos) /*!< SCB CFSR (UFSR): UNALIGNED Mask */ - -#define SCB_CFSR_NOCP_Pos (SCB_CFSR_USGFAULTSR_Pos + 3U) /*!< SCB CFSR (UFSR): NOCP Position */ -#define SCB_CFSR_NOCP_Msk (1UL << SCB_CFSR_NOCP_Pos) /*!< SCB CFSR (UFSR): NOCP Mask */ - -#define SCB_CFSR_INVPC_Pos (SCB_CFSR_USGFAULTSR_Pos + 2U) /*!< SCB CFSR (UFSR): INVPC Position */ -#define SCB_CFSR_INVPC_Msk (1UL << SCB_CFSR_INVPC_Pos) /*!< SCB CFSR (UFSR): INVPC Mask */ - -#define SCB_CFSR_INVSTATE_Pos (SCB_CFSR_USGFAULTSR_Pos + 1U) /*!< SCB CFSR (UFSR): INVSTATE Position */ -#define SCB_CFSR_INVSTATE_Msk (1UL << SCB_CFSR_INVSTATE_Pos) /*!< SCB CFSR (UFSR): INVSTATE Mask */ - -#define SCB_CFSR_UNDEFINSTR_Pos (SCB_CFSR_USGFAULTSR_Pos + 0U) /*!< SCB CFSR (UFSR): UNDEFINSTR Position */ -#define SCB_CFSR_UNDEFINSTR_Msk (1UL << SCB_CFSR_UNDEFINSTR_Pos) /*!< SCB CFSR (UFSR): UNDEFINSTR Mask */ - -/* SCB Hard Fault Status Register Definitions */ -#define SCB_HFSR_DEBUGEVT_Pos 31U /*!< SCB HFSR: DEBUGEVT Position */ -#define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ - -#define SCB_HFSR_FORCED_Pos 30U /*!< SCB HFSR: FORCED Position */ -#define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ - -#define SCB_HFSR_VECTTBL_Pos 1U /*!< SCB HFSR: VECTTBL Position */ -#define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ - -/* SCB Debug Fault Status Register Definitions */ -#define SCB_DFSR_EXTERNAL_Pos 4U /*!< SCB DFSR: EXTERNAL Position */ -#define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ - -#define SCB_DFSR_VCATCH_Pos 3U /*!< SCB DFSR: VCATCH Position */ -#define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ - -#define SCB_DFSR_DWTTRAP_Pos 2U /*!< SCB DFSR: DWTTRAP Position */ -#define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ - -#define SCB_DFSR_BKPT_Pos 1U /*!< SCB DFSR: BKPT Position */ -#define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ - -#define SCB_DFSR_HALTED_Pos 0U /*!< SCB DFSR: HALTED Position */ -#define SCB_DFSR_HALTED_Msk (1UL /*<< SCB_DFSR_HALTED_Pos*/) /*!< SCB DFSR: HALTED Mask */ - -/*@} end of group CMSIS_SCB */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) - \brief Type definitions for the System Control and ID Register not in the SCB - @{ - */ - -/** - \brief Structure type to access the System Control and ID Register not in the SCB. - */ -typedef struct -{ - uint32_t RESERVED0[1U]; - __IM uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ -#if defined (__CM3_REV) && (__CM3_REV >= 0x200U) - __IOM uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ -#else - uint32_t RESERVED1[1U]; -#endif -} SCnSCB_Type; - -/* Interrupt Controller Type Register Definitions */ -#define SCnSCB_ICTR_INTLINESNUM_Pos 0U /*!< ICTR: INTLINESNUM Position */ -#define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL /*<< SCnSCB_ICTR_INTLINESNUM_Pos*/) /*!< ICTR: INTLINESNUM Mask */ - -/* Auxiliary Control Register Definitions */ -#if defined (__CM3_REV) && (__CM3_REV >= 0x200U) -#define SCnSCB_ACTLR_DISOOFP_Pos 9U /*!< ACTLR: DISOOFP Position */ -#define SCnSCB_ACTLR_DISOOFP_Msk (1UL << SCnSCB_ACTLR_DISOOFP_Pos) /*!< ACTLR: DISOOFP Mask */ - -#define SCnSCB_ACTLR_DISFPCA_Pos 8U /*!< ACTLR: DISFPCA Position */ -#define SCnSCB_ACTLR_DISFPCA_Msk (1UL << SCnSCB_ACTLR_DISFPCA_Pos) /*!< ACTLR: DISFPCA Mask */ - -#define SCnSCB_ACTLR_DISFOLD_Pos 2U /*!< ACTLR: DISFOLD Position */ -#define SCnSCB_ACTLR_DISFOLD_Msk (1UL << SCnSCB_ACTLR_DISFOLD_Pos) /*!< ACTLR: DISFOLD Mask */ - -#define SCnSCB_ACTLR_DISDEFWBUF_Pos 1U /*!< ACTLR: DISDEFWBUF Position */ -#define SCnSCB_ACTLR_DISDEFWBUF_Msk (1UL << SCnSCB_ACTLR_DISDEFWBUF_Pos) /*!< ACTLR: DISDEFWBUF Mask */ - -#define SCnSCB_ACTLR_DISMCYCINT_Pos 0U /*!< ACTLR: DISMCYCINT Position */ -#define SCnSCB_ACTLR_DISMCYCINT_Msk (1UL /*<< SCnSCB_ACTLR_DISMCYCINT_Pos*/) /*!< ACTLR: DISMCYCINT Mask */ -#endif - -/*@} end of group CMSIS_SCnotSCB */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SysTick System Tick Timer (SysTick) - \brief Type definitions for the System Timer Registers. - @{ - */ - -/** - \brief Structure type to access the System Timer (SysTick). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ - __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ - __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ - __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ -} SysTick_Type; - -/* SysTick Control / Status Register Definitions */ -#define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ -#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ - -#define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ -#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ - -#define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ -#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ - -#define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ -#define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ - -/* SysTick Reload Register Definitions */ -#define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ -#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ - -/* SysTick Current Register Definitions */ -#define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ -#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ - -/* SysTick Calibration Register Definitions */ -#define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ -#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ - -#define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ -#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ - -#define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ -#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ - -/*@} end of group CMSIS_SysTick */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_ITM Instrumentation Trace Macrocell (ITM) - \brief Type definitions for the Instrumentation Trace Macrocell (ITM) - @{ - */ - -/** - \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). - */ -typedef struct -{ - __OM union - { - __OM uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ - __OM uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ - __OM uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ - } PORT [32U]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ - uint32_t RESERVED0[864U]; - __IOM uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ - uint32_t RESERVED1[15U]; - __IOM uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ - uint32_t RESERVED2[15U]; - __IOM uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ - uint32_t RESERVED3[32U]; - uint32_t RESERVED4[43U]; - __OM uint32_t LAR; /*!< Offset: 0xFB0 ( /W) ITM Lock Access Register */ - __IM uint32_t LSR; /*!< Offset: 0xFB4 (R/ ) ITM Lock Status Register */ - uint32_t RESERVED5[6U]; - __IM uint32_t PID4; /*!< Offset: 0xFD0 (R/ ) ITM Peripheral Identification Register #4 */ - __IM uint32_t PID5; /*!< Offset: 0xFD4 (R/ ) ITM Peripheral Identification Register #5 */ - __IM uint32_t PID6; /*!< Offset: 0xFD8 (R/ ) ITM Peripheral Identification Register #6 */ - __IM uint32_t PID7; /*!< Offset: 0xFDC (R/ ) ITM Peripheral Identification Register #7 */ - __IM uint32_t PID0; /*!< Offset: 0xFE0 (R/ ) ITM Peripheral Identification Register #0 */ - __IM uint32_t PID1; /*!< Offset: 0xFE4 (R/ ) ITM Peripheral Identification Register #1 */ - __IM uint32_t PID2; /*!< Offset: 0xFE8 (R/ ) ITM Peripheral Identification Register #2 */ - __IM uint32_t PID3; /*!< Offset: 0xFEC (R/ ) ITM Peripheral Identification Register #3 */ - __IM uint32_t CID0; /*!< Offset: 0xFF0 (R/ ) ITM Component Identification Register #0 */ - __IM uint32_t CID1; /*!< Offset: 0xFF4 (R/ ) ITM Component Identification Register #1 */ - __IM uint32_t CID2; /*!< Offset: 0xFF8 (R/ ) ITM Component Identification Register #2 */ - __IM uint32_t CID3; /*!< Offset: 0xFFC (R/ ) ITM Component Identification Register #3 */ -} ITM_Type; - -/* ITM Trace Privilege Register Definitions */ -#define ITM_TPR_PRIVMASK_Pos 0U /*!< ITM TPR: PRIVMASK Position */ -#define ITM_TPR_PRIVMASK_Msk (0xFFFFFFFFUL /*<< ITM_TPR_PRIVMASK_Pos*/) /*!< ITM TPR: PRIVMASK Mask */ - -/* ITM Trace Control Register Definitions */ -#define ITM_TCR_BUSY_Pos 23U /*!< ITM TCR: BUSY Position */ -#define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ - -#define ITM_TCR_TraceBusID_Pos 16U /*!< ITM TCR: ATBID Position */ -#define ITM_TCR_TraceBusID_Msk (0x7FUL << ITM_TCR_TraceBusID_Pos) /*!< ITM TCR: ATBID Mask */ - -#define ITM_TCR_GTSFREQ_Pos 10U /*!< ITM TCR: Global timestamp frequency Position */ -#define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ - -#define ITM_TCR_TSPrescale_Pos 8U /*!< ITM TCR: TSPrescale Position */ -#define ITM_TCR_TSPrescale_Msk (3UL << ITM_TCR_TSPrescale_Pos) /*!< ITM TCR: TSPrescale Mask */ - -#define ITM_TCR_SWOENA_Pos 4U /*!< ITM TCR: SWOENA Position */ -#define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ - -#define ITM_TCR_DWTENA_Pos 3U /*!< ITM TCR: DWTENA Position */ -#define ITM_TCR_DWTENA_Msk (1UL << ITM_TCR_DWTENA_Pos) /*!< ITM TCR: DWTENA Mask */ - -#define ITM_TCR_SYNCENA_Pos 2U /*!< ITM TCR: SYNCENA Position */ -#define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ - -#define ITM_TCR_TSENA_Pos 1U /*!< ITM TCR: TSENA Position */ -#define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ - -#define ITM_TCR_ITMENA_Pos 0U /*!< ITM TCR: ITM Enable bit Position */ -#define ITM_TCR_ITMENA_Msk (1UL /*<< ITM_TCR_ITMENA_Pos*/) /*!< ITM TCR: ITM Enable bit Mask */ - -/* ITM Lock Status Register Definitions */ -#define ITM_LSR_ByteAcc_Pos 2U /*!< ITM LSR: ByteAcc Position */ -#define ITM_LSR_ByteAcc_Msk (1UL << ITM_LSR_ByteAcc_Pos) /*!< ITM LSR: ByteAcc Mask */ - -#define ITM_LSR_Access_Pos 1U /*!< ITM LSR: Access Position */ -#define ITM_LSR_Access_Msk (1UL << ITM_LSR_Access_Pos) /*!< ITM LSR: Access Mask */ - -#define ITM_LSR_Present_Pos 0U /*!< ITM LSR: Present Position */ -#define ITM_LSR_Present_Msk (1UL /*<< ITM_LSR_Present_Pos*/) /*!< ITM LSR: Present Mask */ - -/*@}*/ /* end of group CMSIS_ITM */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) - \brief Type definitions for the Data Watchpoint and Trace (DWT) - @{ - */ - -/** - \brief Structure type to access the Data Watchpoint and Trace Register (DWT). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ - __IOM uint32_t CYCCNT; /*!< Offset: 0x004 (R/W) Cycle Count Register */ - __IOM uint32_t CPICNT; /*!< Offset: 0x008 (R/W) CPI Count Register */ - __IOM uint32_t EXCCNT; /*!< Offset: 0x00C (R/W) Exception Overhead Count Register */ - __IOM uint32_t SLEEPCNT; /*!< Offset: 0x010 (R/W) Sleep Count Register */ - __IOM uint32_t LSUCNT; /*!< Offset: 0x014 (R/W) LSU Count Register */ - __IOM uint32_t FOLDCNT; /*!< Offset: 0x018 (R/W) Folded-instruction Count Register */ - __IM uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ - __IOM uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ - __IOM uint32_t MASK0; /*!< Offset: 0x024 (R/W) Mask Register 0 */ - __IOM uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ - uint32_t RESERVED0[1U]; - __IOM uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ - __IOM uint32_t MASK1; /*!< Offset: 0x034 (R/W) Mask Register 1 */ - __IOM uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ - uint32_t RESERVED1[1U]; - __IOM uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ - __IOM uint32_t MASK2; /*!< Offset: 0x044 (R/W) Mask Register 2 */ - __IOM uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ - uint32_t RESERVED2[1U]; - __IOM uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ - __IOM uint32_t MASK3; /*!< Offset: 0x054 (R/W) Mask Register 3 */ - __IOM uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ -} DWT_Type; - -/* DWT Control Register Definitions */ -#define DWT_CTRL_NUMCOMP_Pos 28U /*!< DWT CTRL: NUMCOMP Position */ -#define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ - -#define DWT_CTRL_NOTRCPKT_Pos 27U /*!< DWT CTRL: NOTRCPKT Position */ -#define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ - -#define DWT_CTRL_NOEXTTRIG_Pos 26U /*!< DWT CTRL: NOEXTTRIG Position */ -#define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ - -#define DWT_CTRL_NOCYCCNT_Pos 25U /*!< DWT CTRL: NOCYCCNT Position */ -#define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ - -#define DWT_CTRL_NOPRFCNT_Pos 24U /*!< DWT CTRL: NOPRFCNT Position */ -#define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ - -#define DWT_CTRL_CYCEVTENA_Pos 22U /*!< DWT CTRL: CYCEVTENA Position */ -#define DWT_CTRL_CYCEVTENA_Msk (0x1UL << DWT_CTRL_CYCEVTENA_Pos) /*!< DWT CTRL: CYCEVTENA Mask */ - -#define DWT_CTRL_FOLDEVTENA_Pos 21U /*!< DWT CTRL: FOLDEVTENA Position */ -#define DWT_CTRL_FOLDEVTENA_Msk (0x1UL << DWT_CTRL_FOLDEVTENA_Pos) /*!< DWT CTRL: FOLDEVTENA Mask */ - -#define DWT_CTRL_LSUEVTENA_Pos 20U /*!< DWT CTRL: LSUEVTENA Position */ -#define DWT_CTRL_LSUEVTENA_Msk (0x1UL << DWT_CTRL_LSUEVTENA_Pos) /*!< DWT CTRL: LSUEVTENA Mask */ - -#define DWT_CTRL_SLEEPEVTENA_Pos 19U /*!< DWT CTRL: SLEEPEVTENA Position */ -#define DWT_CTRL_SLEEPEVTENA_Msk (0x1UL << DWT_CTRL_SLEEPEVTENA_Pos) /*!< DWT CTRL: SLEEPEVTENA Mask */ - -#define DWT_CTRL_EXCEVTENA_Pos 18U /*!< DWT CTRL: EXCEVTENA Position */ -#define DWT_CTRL_EXCEVTENA_Msk (0x1UL << DWT_CTRL_EXCEVTENA_Pos) /*!< DWT CTRL: EXCEVTENA Mask */ - -#define DWT_CTRL_CPIEVTENA_Pos 17U /*!< DWT CTRL: CPIEVTENA Position */ -#define DWT_CTRL_CPIEVTENA_Msk (0x1UL << DWT_CTRL_CPIEVTENA_Pos) /*!< DWT CTRL: CPIEVTENA Mask */ - -#define DWT_CTRL_EXCTRCENA_Pos 16U /*!< DWT CTRL: EXCTRCENA Position */ -#define DWT_CTRL_EXCTRCENA_Msk (0x1UL << DWT_CTRL_EXCTRCENA_Pos) /*!< DWT CTRL: EXCTRCENA Mask */ - -#define DWT_CTRL_PCSAMPLENA_Pos 12U /*!< DWT CTRL: PCSAMPLENA Position */ -#define DWT_CTRL_PCSAMPLENA_Msk (0x1UL << DWT_CTRL_PCSAMPLENA_Pos) /*!< DWT CTRL: PCSAMPLENA Mask */ - -#define DWT_CTRL_SYNCTAP_Pos 10U /*!< DWT CTRL: SYNCTAP Position */ -#define DWT_CTRL_SYNCTAP_Msk (0x3UL << DWT_CTRL_SYNCTAP_Pos) /*!< DWT CTRL: SYNCTAP Mask */ - -#define DWT_CTRL_CYCTAP_Pos 9U /*!< DWT CTRL: CYCTAP Position */ -#define DWT_CTRL_CYCTAP_Msk (0x1UL << DWT_CTRL_CYCTAP_Pos) /*!< DWT CTRL: CYCTAP Mask */ - -#define DWT_CTRL_POSTINIT_Pos 5U /*!< DWT CTRL: POSTINIT Position */ -#define DWT_CTRL_POSTINIT_Msk (0xFUL << DWT_CTRL_POSTINIT_Pos) /*!< DWT CTRL: POSTINIT Mask */ - -#define DWT_CTRL_POSTPRESET_Pos 1U /*!< DWT CTRL: POSTPRESET Position */ -#define DWT_CTRL_POSTPRESET_Msk (0xFUL << DWT_CTRL_POSTPRESET_Pos) /*!< DWT CTRL: POSTPRESET Mask */ - -#define DWT_CTRL_CYCCNTENA_Pos 0U /*!< DWT CTRL: CYCCNTENA Position */ -#define DWT_CTRL_CYCCNTENA_Msk (0x1UL /*<< DWT_CTRL_CYCCNTENA_Pos*/) /*!< DWT CTRL: CYCCNTENA Mask */ - -/* DWT CPI Count Register Definitions */ -#define DWT_CPICNT_CPICNT_Pos 0U /*!< DWT CPICNT: CPICNT Position */ -#define DWT_CPICNT_CPICNT_Msk (0xFFUL /*<< DWT_CPICNT_CPICNT_Pos*/) /*!< DWT CPICNT: CPICNT Mask */ - -/* DWT Exception Overhead Count Register Definitions */ -#define DWT_EXCCNT_EXCCNT_Pos 0U /*!< DWT EXCCNT: EXCCNT Position */ -#define DWT_EXCCNT_EXCCNT_Msk (0xFFUL /*<< DWT_EXCCNT_EXCCNT_Pos*/) /*!< DWT EXCCNT: EXCCNT Mask */ - -/* DWT Sleep Count Register Definitions */ -#define DWT_SLEEPCNT_SLEEPCNT_Pos 0U /*!< DWT SLEEPCNT: SLEEPCNT Position */ -#define DWT_SLEEPCNT_SLEEPCNT_Msk (0xFFUL /*<< DWT_SLEEPCNT_SLEEPCNT_Pos*/) /*!< DWT SLEEPCNT: SLEEPCNT Mask */ - -/* DWT LSU Count Register Definitions */ -#define DWT_LSUCNT_LSUCNT_Pos 0U /*!< DWT LSUCNT: LSUCNT Position */ -#define DWT_LSUCNT_LSUCNT_Msk (0xFFUL /*<< DWT_LSUCNT_LSUCNT_Pos*/) /*!< DWT LSUCNT: LSUCNT Mask */ - -/* DWT Folded-instruction Count Register Definitions */ -#define DWT_FOLDCNT_FOLDCNT_Pos 0U /*!< DWT FOLDCNT: FOLDCNT Position */ -#define DWT_FOLDCNT_FOLDCNT_Msk (0xFFUL /*<< DWT_FOLDCNT_FOLDCNT_Pos*/) /*!< DWT FOLDCNT: FOLDCNT Mask */ - -/* DWT Comparator Mask Register Definitions */ -#define DWT_MASK_MASK_Pos 0U /*!< DWT MASK: MASK Position */ -#define DWT_MASK_MASK_Msk (0x1FUL /*<< DWT_MASK_MASK_Pos*/) /*!< DWT MASK: MASK Mask */ - -/* DWT Comparator Function Register Definitions */ -#define DWT_FUNCTION_MATCHED_Pos 24U /*!< DWT FUNCTION: MATCHED Position */ -#define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ - -#define DWT_FUNCTION_DATAVADDR1_Pos 16U /*!< DWT FUNCTION: DATAVADDR1 Position */ -#define DWT_FUNCTION_DATAVADDR1_Msk (0xFUL << DWT_FUNCTION_DATAVADDR1_Pos) /*!< DWT FUNCTION: DATAVADDR1 Mask */ - -#define DWT_FUNCTION_DATAVADDR0_Pos 12U /*!< DWT FUNCTION: DATAVADDR0 Position */ -#define DWT_FUNCTION_DATAVADDR0_Msk (0xFUL << DWT_FUNCTION_DATAVADDR0_Pos) /*!< DWT FUNCTION: DATAVADDR0 Mask */ - -#define DWT_FUNCTION_DATAVSIZE_Pos 10U /*!< DWT FUNCTION: DATAVSIZE Position */ -#define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ - -#define DWT_FUNCTION_LNK1ENA_Pos 9U /*!< DWT FUNCTION: LNK1ENA Position */ -#define DWT_FUNCTION_LNK1ENA_Msk (0x1UL << DWT_FUNCTION_LNK1ENA_Pos) /*!< DWT FUNCTION: LNK1ENA Mask */ - -#define DWT_FUNCTION_DATAVMATCH_Pos 8U /*!< DWT FUNCTION: DATAVMATCH Position */ -#define DWT_FUNCTION_DATAVMATCH_Msk (0x1UL << DWT_FUNCTION_DATAVMATCH_Pos) /*!< DWT FUNCTION: DATAVMATCH Mask */ - -#define DWT_FUNCTION_CYCMATCH_Pos 7U /*!< DWT FUNCTION: CYCMATCH Position */ -#define DWT_FUNCTION_CYCMATCH_Msk (0x1UL << DWT_FUNCTION_CYCMATCH_Pos) /*!< DWT FUNCTION: CYCMATCH Mask */ - -#define DWT_FUNCTION_EMITRANGE_Pos 5U /*!< DWT FUNCTION: EMITRANGE Position */ -#define DWT_FUNCTION_EMITRANGE_Msk (0x1UL << DWT_FUNCTION_EMITRANGE_Pos) /*!< DWT FUNCTION: EMITRANGE Mask */ - -#define DWT_FUNCTION_FUNCTION_Pos 0U /*!< DWT FUNCTION: FUNCTION Position */ -#define DWT_FUNCTION_FUNCTION_Msk (0xFUL /*<< DWT_FUNCTION_FUNCTION_Pos*/) /*!< DWT FUNCTION: FUNCTION Mask */ - -/*@}*/ /* end of group CMSIS_DWT */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_TPI Trace Port Interface (TPI) - \brief Type definitions for the Trace Port Interface (TPI) - @{ - */ - -/** - \brief Structure type to access the Trace Port Interface Register (TPI). - */ -typedef struct -{ - __IM uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Size Register */ - __IOM uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Size Register */ - uint32_t RESERVED0[2U]; - __IOM uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ - uint32_t RESERVED1[55U]; - __IOM uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ - uint32_t RESERVED2[131U]; - __IM uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ - __IOM uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ - __IM uint32_t FSCR; /*!< Offset: 0x308 (R/ ) Formatter Synchronization Counter Register */ - uint32_t RESERVED3[759U]; - __IM uint32_t TRIGGER; /*!< Offset: 0xEE8 (R/ ) TRIGGER Register */ - __IM uint32_t FIFO0; /*!< Offset: 0xEEC (R/ ) Integration ETM Data */ - __IM uint32_t ITATBCTR2; /*!< Offset: 0xEF0 (R/ ) ITATBCTR2 */ - uint32_t RESERVED4[1U]; - __IM uint32_t ITATBCTR0; /*!< Offset: 0xEF8 (R/ ) ITATBCTR0 */ - __IM uint32_t FIFO1; /*!< Offset: 0xEFC (R/ ) Integration ITM Data */ - __IOM uint32_t ITCTRL; /*!< Offset: 0xF00 (R/W) Integration Mode Control */ - uint32_t RESERVED5[39U]; - __IOM uint32_t CLAIMSET; /*!< Offset: 0xFA0 (R/W) Claim tag set */ - __IOM uint32_t CLAIMCLR; /*!< Offset: 0xFA4 (R/W) Claim tag clear */ - uint32_t RESERVED7[8U]; - __IM uint32_t DEVID; /*!< Offset: 0xFC8 (R/ ) TPIU_DEVID */ - __IM uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) TPIU_DEVTYPE */ -} TPI_Type; - -/* TPI Asynchronous Clock Prescaler Register Definitions */ -#define TPI_ACPR_PRESCALER_Pos 0U /*!< TPI ACPR: PRESCALER Position */ -#define TPI_ACPR_PRESCALER_Msk (0x1FFFUL /*<< TPI_ACPR_PRESCALER_Pos*/) /*!< TPI ACPR: PRESCALER Mask */ - -/* TPI Selected Pin Protocol Register Definitions */ -#define TPI_SPPR_TXMODE_Pos 0U /*!< TPI SPPR: TXMODE Position */ -#define TPI_SPPR_TXMODE_Msk (0x3UL /*<< TPI_SPPR_TXMODE_Pos*/) /*!< TPI SPPR: TXMODE Mask */ - -/* TPI Formatter and Flush Status Register Definitions */ -#define TPI_FFSR_FtNonStop_Pos 3U /*!< TPI FFSR: FtNonStop Position */ -#define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ - -#define TPI_FFSR_TCPresent_Pos 2U /*!< TPI FFSR: TCPresent Position */ -#define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ - -#define TPI_FFSR_FtStopped_Pos 1U /*!< TPI FFSR: FtStopped Position */ -#define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ - -#define TPI_FFSR_FlInProg_Pos 0U /*!< TPI FFSR: FlInProg Position */ -#define TPI_FFSR_FlInProg_Msk (0x1UL /*<< TPI_FFSR_FlInProg_Pos*/) /*!< TPI FFSR: FlInProg Mask */ - -/* TPI Formatter and Flush Control Register Definitions */ -#define TPI_FFCR_TrigIn_Pos 8U /*!< TPI FFCR: TrigIn Position */ -#define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ - -#define TPI_FFCR_EnFCont_Pos 1U /*!< TPI FFCR: EnFCont Position */ -#define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ - -/* TPI TRIGGER Register Definitions */ -#define TPI_TRIGGER_TRIGGER_Pos 0U /*!< TPI TRIGGER: TRIGGER Position */ -#define TPI_TRIGGER_TRIGGER_Msk (0x1UL /*<< TPI_TRIGGER_TRIGGER_Pos*/) /*!< TPI TRIGGER: TRIGGER Mask */ - -/* TPI Integration ETM Data Register Definitions (FIFO0) */ -#define TPI_FIFO0_ITM_ATVALID_Pos 29U /*!< TPI FIFO0: ITM_ATVALID Position */ -#define TPI_FIFO0_ITM_ATVALID_Msk (0x1UL << TPI_FIFO0_ITM_ATVALID_Pos) /*!< TPI FIFO0: ITM_ATVALID Mask */ - -#define TPI_FIFO0_ITM_bytecount_Pos 27U /*!< TPI FIFO0: ITM_bytecount Position */ -#define TPI_FIFO0_ITM_bytecount_Msk (0x3UL << TPI_FIFO0_ITM_bytecount_Pos) /*!< TPI FIFO0: ITM_bytecount Mask */ - -#define TPI_FIFO0_ETM_ATVALID_Pos 26U /*!< TPI FIFO0: ETM_ATVALID Position */ -#define TPI_FIFO0_ETM_ATVALID_Msk (0x1UL << TPI_FIFO0_ETM_ATVALID_Pos) /*!< TPI FIFO0: ETM_ATVALID Mask */ - -#define TPI_FIFO0_ETM_bytecount_Pos 24U /*!< TPI FIFO0: ETM_bytecount Position */ -#define TPI_FIFO0_ETM_bytecount_Msk (0x3UL << TPI_FIFO0_ETM_bytecount_Pos) /*!< TPI FIFO0: ETM_bytecount Mask */ - -#define TPI_FIFO0_ETM2_Pos 16U /*!< TPI FIFO0: ETM2 Position */ -#define TPI_FIFO0_ETM2_Msk (0xFFUL << TPI_FIFO0_ETM2_Pos) /*!< TPI FIFO0: ETM2 Mask */ - -#define TPI_FIFO0_ETM1_Pos 8U /*!< TPI FIFO0: ETM1 Position */ -#define TPI_FIFO0_ETM1_Msk (0xFFUL << TPI_FIFO0_ETM1_Pos) /*!< TPI FIFO0: ETM1 Mask */ - -#define TPI_FIFO0_ETM0_Pos 0U /*!< TPI FIFO0: ETM0 Position */ -#define TPI_FIFO0_ETM0_Msk (0xFFUL /*<< TPI_FIFO0_ETM0_Pos*/) /*!< TPI FIFO0: ETM0 Mask */ - -/* TPI ITATBCTR2 Register Definitions */ -#define TPI_ITATBCTR2_ATREADY2_Pos 0U /*!< TPI ITATBCTR2: ATREADY2 Position */ -#define TPI_ITATBCTR2_ATREADY2_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY2_Pos*/) /*!< TPI ITATBCTR2: ATREADY2 Mask */ - -#define TPI_ITATBCTR2_ATREADY1_Pos 0U /*!< TPI ITATBCTR2: ATREADY1 Position */ -#define TPI_ITATBCTR2_ATREADY1_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY1_Pos*/) /*!< TPI ITATBCTR2: ATREADY1 Mask */ - -/* TPI Integration ITM Data Register Definitions (FIFO1) */ -#define TPI_FIFO1_ITM_ATVALID_Pos 29U /*!< TPI FIFO1: ITM_ATVALID Position */ -#define TPI_FIFO1_ITM_ATVALID_Msk (0x1UL << TPI_FIFO1_ITM_ATVALID_Pos) /*!< TPI FIFO1: ITM_ATVALID Mask */ - -#define TPI_FIFO1_ITM_bytecount_Pos 27U /*!< TPI FIFO1: ITM_bytecount Position */ -#define TPI_FIFO1_ITM_bytecount_Msk (0x3UL << TPI_FIFO1_ITM_bytecount_Pos) /*!< TPI FIFO1: ITM_bytecount Mask */ - -#define TPI_FIFO1_ETM_ATVALID_Pos 26U /*!< TPI FIFO1: ETM_ATVALID Position */ -#define TPI_FIFO1_ETM_ATVALID_Msk (0x1UL << TPI_FIFO1_ETM_ATVALID_Pos) /*!< TPI FIFO1: ETM_ATVALID Mask */ - -#define TPI_FIFO1_ETM_bytecount_Pos 24U /*!< TPI FIFO1: ETM_bytecount Position */ -#define TPI_FIFO1_ETM_bytecount_Msk (0x3UL << TPI_FIFO1_ETM_bytecount_Pos) /*!< TPI FIFO1: ETM_bytecount Mask */ - -#define TPI_FIFO1_ITM2_Pos 16U /*!< TPI FIFO1: ITM2 Position */ -#define TPI_FIFO1_ITM2_Msk (0xFFUL << TPI_FIFO1_ITM2_Pos) /*!< TPI FIFO1: ITM2 Mask */ - -#define TPI_FIFO1_ITM1_Pos 8U /*!< TPI FIFO1: ITM1 Position */ -#define TPI_FIFO1_ITM1_Msk (0xFFUL << TPI_FIFO1_ITM1_Pos) /*!< TPI FIFO1: ITM1 Mask */ - -#define TPI_FIFO1_ITM0_Pos 0U /*!< TPI FIFO1: ITM0 Position */ -#define TPI_FIFO1_ITM0_Msk (0xFFUL /*<< TPI_FIFO1_ITM0_Pos*/) /*!< TPI FIFO1: ITM0 Mask */ - -/* TPI ITATBCTR0 Register Definitions */ -#define TPI_ITATBCTR0_ATREADY2_Pos 0U /*!< TPI ITATBCTR0: ATREADY2 Position */ -#define TPI_ITATBCTR0_ATREADY2_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY2_Pos*/) /*!< TPI ITATBCTR0: ATREADY2 Mask */ - -#define TPI_ITATBCTR0_ATREADY1_Pos 0U /*!< TPI ITATBCTR0: ATREADY1 Position */ -#define TPI_ITATBCTR0_ATREADY1_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY1_Pos*/) /*!< TPI ITATBCTR0: ATREADY1 Mask */ - -/* TPI Integration Mode Control Register Definitions */ -#define TPI_ITCTRL_Mode_Pos 0U /*!< TPI ITCTRL: Mode Position */ -#define TPI_ITCTRL_Mode_Msk (0x3UL /*<< TPI_ITCTRL_Mode_Pos*/) /*!< TPI ITCTRL: Mode Mask */ - -/* TPI DEVID Register Definitions */ -#define TPI_DEVID_NRZVALID_Pos 11U /*!< TPI DEVID: NRZVALID Position */ -#define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ - -#define TPI_DEVID_MANCVALID_Pos 10U /*!< TPI DEVID: MANCVALID Position */ -#define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ - -#define TPI_DEVID_PTINVALID_Pos 9U /*!< TPI DEVID: PTINVALID Position */ -#define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ - -#define TPI_DEVID_MinBufSz_Pos 6U /*!< TPI DEVID: MinBufSz Position */ -#define TPI_DEVID_MinBufSz_Msk (0x7UL << TPI_DEVID_MinBufSz_Pos) /*!< TPI DEVID: MinBufSz Mask */ - -#define TPI_DEVID_AsynClkIn_Pos 5U /*!< TPI DEVID: AsynClkIn Position */ -#define TPI_DEVID_AsynClkIn_Msk (0x1UL << TPI_DEVID_AsynClkIn_Pos) /*!< TPI DEVID: AsynClkIn Mask */ - -#define TPI_DEVID_NrTraceInput_Pos 0U /*!< TPI DEVID: NrTraceInput Position */ -#define TPI_DEVID_NrTraceInput_Msk (0x1FUL /*<< TPI_DEVID_NrTraceInput_Pos*/) /*!< TPI DEVID: NrTraceInput Mask */ - -/* TPI DEVTYPE Register Definitions */ -#define TPI_DEVTYPE_SubType_Pos 4U /*!< TPI DEVTYPE: SubType Position */ -#define TPI_DEVTYPE_SubType_Msk (0xFUL /*<< TPI_DEVTYPE_SubType_Pos*/) /*!< TPI DEVTYPE: SubType Mask */ - -#define TPI_DEVTYPE_MajorType_Pos 0U /*!< TPI DEVTYPE: MajorType Position */ -#define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ - -/*@}*/ /* end of group CMSIS_TPI */ - - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_MPU Memory Protection Unit (MPU) - \brief Type definitions for the Memory Protection Unit (MPU) - @{ - */ - -/** - \brief Structure type to access the Memory Protection Unit (MPU). - */ -typedef struct -{ - __IM uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ - __IOM uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ - __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ - __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ - __IOM uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ - __IOM uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Alias 1 Region Base Address Register */ - __IOM uint32_t RASR_A1; /*!< Offset: 0x018 (R/W) MPU Alias 1 Region Attribute and Size Register */ - __IOM uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Alias 2 Region Base Address Register */ - __IOM uint32_t RASR_A2; /*!< Offset: 0x020 (R/W) MPU Alias 2 Region Attribute and Size Register */ - __IOM uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Alias 3 Region Base Address Register */ - __IOM uint32_t RASR_A3; /*!< Offset: 0x028 (R/W) MPU Alias 3 Region Attribute and Size Register */ -} MPU_Type; - -#define MPU_TYPE_RALIASES 4U - -/* MPU Type Register Definitions */ -#define MPU_TYPE_IREGION_Pos 16U /*!< MPU TYPE: IREGION Position */ -#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ - -#define MPU_TYPE_DREGION_Pos 8U /*!< MPU TYPE: DREGION Position */ -#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ - -#define MPU_TYPE_SEPARATE_Pos 0U /*!< MPU TYPE: SEPARATE Position */ -#define MPU_TYPE_SEPARATE_Msk (1UL /*<< MPU_TYPE_SEPARATE_Pos*/) /*!< MPU TYPE: SEPARATE Mask */ - -/* MPU Control Register Definitions */ -#define MPU_CTRL_PRIVDEFENA_Pos 2U /*!< MPU CTRL: PRIVDEFENA Position */ -#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ - -#define MPU_CTRL_HFNMIENA_Pos 1U /*!< MPU CTRL: HFNMIENA Position */ -#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ - -#define MPU_CTRL_ENABLE_Pos 0U /*!< MPU CTRL: ENABLE Position */ -#define MPU_CTRL_ENABLE_Msk (1UL /*<< MPU_CTRL_ENABLE_Pos*/) /*!< MPU CTRL: ENABLE Mask */ - -/* MPU Region Number Register Definitions */ -#define MPU_RNR_REGION_Pos 0U /*!< MPU RNR: REGION Position */ -#define MPU_RNR_REGION_Msk (0xFFUL /*<< MPU_RNR_REGION_Pos*/) /*!< MPU RNR: REGION Mask */ - -/* MPU Region Base Address Register Definitions */ -#define MPU_RBAR_ADDR_Pos 5U /*!< MPU RBAR: ADDR Position */ -#define MPU_RBAR_ADDR_Msk (0x7FFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ - -#define MPU_RBAR_VALID_Pos 4U /*!< MPU RBAR: VALID Position */ -#define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ - -#define MPU_RBAR_REGION_Pos 0U /*!< MPU RBAR: REGION Position */ -#define MPU_RBAR_REGION_Msk (0xFUL /*<< MPU_RBAR_REGION_Pos*/) /*!< MPU RBAR: REGION Mask */ - -/* MPU Region Attribute and Size Register Definitions */ -#define MPU_RASR_ATTRS_Pos 16U /*!< MPU RASR: MPU Region Attribute field Position */ -#define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ - -#define MPU_RASR_XN_Pos 28U /*!< MPU RASR: ATTRS.XN Position */ -#define MPU_RASR_XN_Msk (1UL << MPU_RASR_XN_Pos) /*!< MPU RASR: ATTRS.XN Mask */ - -#define MPU_RASR_AP_Pos 24U /*!< MPU RASR: ATTRS.AP Position */ -#define MPU_RASR_AP_Msk (0x7UL << MPU_RASR_AP_Pos) /*!< MPU RASR: ATTRS.AP Mask */ - -#define MPU_RASR_TEX_Pos 19U /*!< MPU RASR: ATTRS.TEX Position */ -#define MPU_RASR_TEX_Msk (0x7UL << MPU_RASR_TEX_Pos) /*!< MPU RASR: ATTRS.TEX Mask */ - -#define MPU_RASR_S_Pos 18U /*!< MPU RASR: ATTRS.S Position */ -#define MPU_RASR_S_Msk (1UL << MPU_RASR_S_Pos) /*!< MPU RASR: ATTRS.S Mask */ - -#define MPU_RASR_C_Pos 17U /*!< MPU RASR: ATTRS.C Position */ -#define MPU_RASR_C_Msk (1UL << MPU_RASR_C_Pos) /*!< MPU RASR: ATTRS.C Mask */ - -#define MPU_RASR_B_Pos 16U /*!< MPU RASR: ATTRS.B Position */ -#define MPU_RASR_B_Msk (1UL << MPU_RASR_B_Pos) /*!< MPU RASR: ATTRS.B Mask */ - -#define MPU_RASR_SRD_Pos 8U /*!< MPU RASR: Sub-Region Disable Position */ -#define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ - -#define MPU_RASR_SIZE_Pos 1U /*!< MPU RASR: Region Size Field Position */ -#define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ - -#define MPU_RASR_ENABLE_Pos 0U /*!< MPU RASR: Region enable bit Position */ -#define MPU_RASR_ENABLE_Msk (1UL /*<< MPU_RASR_ENABLE_Pos*/) /*!< MPU RASR: Region enable bit Disable Mask */ - -/*@} end of group CMSIS_MPU */ -#endif - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) - \brief Type definitions for the Core Debug Registers - @{ - */ - -/** - \brief Structure type to access the Core Debug Register (CoreDebug). - */ -typedef struct -{ - __IOM uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ - __OM uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ - __IOM uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ - __IOM uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ -} CoreDebug_Type; - -/* Debug Halting Control and Status Register Definitions */ -#define CoreDebug_DHCSR_DBGKEY_Pos 16U /*!< CoreDebug DHCSR: DBGKEY Position */ -#define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ - -#define CoreDebug_DHCSR_S_RESET_ST_Pos 25U /*!< CoreDebug DHCSR: S_RESET_ST Position */ -#define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ - -#define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24U /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ -#define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ - -#define CoreDebug_DHCSR_S_LOCKUP_Pos 19U /*!< CoreDebug DHCSR: S_LOCKUP Position */ -#define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ - -#define CoreDebug_DHCSR_S_SLEEP_Pos 18U /*!< CoreDebug DHCSR: S_SLEEP Position */ -#define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ - -#define CoreDebug_DHCSR_S_HALT_Pos 17U /*!< CoreDebug DHCSR: S_HALT Position */ -#define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ - -#define CoreDebug_DHCSR_S_REGRDY_Pos 16U /*!< CoreDebug DHCSR: S_REGRDY Position */ -#define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ - -#define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5U /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ -#define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ - -#define CoreDebug_DHCSR_C_MASKINTS_Pos 3U /*!< CoreDebug DHCSR: C_MASKINTS Position */ -#define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ - -#define CoreDebug_DHCSR_C_STEP_Pos 2U /*!< CoreDebug DHCSR: C_STEP Position */ -#define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ - -#define CoreDebug_DHCSR_C_HALT_Pos 1U /*!< CoreDebug DHCSR: C_HALT Position */ -#define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ - -#define CoreDebug_DHCSR_C_DEBUGEN_Pos 0U /*!< CoreDebug DHCSR: C_DEBUGEN Position */ -#define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL /*<< CoreDebug_DHCSR_C_DEBUGEN_Pos*/) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ - -/* Debug Core Register Selector Register Definitions */ -#define CoreDebug_DCRSR_REGWnR_Pos 16U /*!< CoreDebug DCRSR: REGWnR Position */ -#define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ - -#define CoreDebug_DCRSR_REGSEL_Pos 0U /*!< CoreDebug DCRSR: REGSEL Position */ -#define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL /*<< CoreDebug_DCRSR_REGSEL_Pos*/) /*!< CoreDebug DCRSR: REGSEL Mask */ - -/* Debug Exception and Monitor Control Register Definitions */ -#define CoreDebug_DEMCR_TRCENA_Pos 24U /*!< CoreDebug DEMCR: TRCENA Position */ -#define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ - -#define CoreDebug_DEMCR_MON_REQ_Pos 19U /*!< CoreDebug DEMCR: MON_REQ Position */ -#define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ - -#define CoreDebug_DEMCR_MON_STEP_Pos 18U /*!< CoreDebug DEMCR: MON_STEP Position */ -#define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ - -#define CoreDebug_DEMCR_MON_PEND_Pos 17U /*!< CoreDebug DEMCR: MON_PEND Position */ -#define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ - -#define CoreDebug_DEMCR_MON_EN_Pos 16U /*!< CoreDebug DEMCR: MON_EN Position */ -#define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ - -#define CoreDebug_DEMCR_VC_HARDERR_Pos 10U /*!< CoreDebug DEMCR: VC_HARDERR Position */ -#define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ - -#define CoreDebug_DEMCR_VC_INTERR_Pos 9U /*!< CoreDebug DEMCR: VC_INTERR Position */ -#define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ - -#define CoreDebug_DEMCR_VC_BUSERR_Pos 8U /*!< CoreDebug DEMCR: VC_BUSERR Position */ -#define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ - -#define CoreDebug_DEMCR_VC_STATERR_Pos 7U /*!< CoreDebug DEMCR: VC_STATERR Position */ -#define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ - -#define CoreDebug_DEMCR_VC_CHKERR_Pos 6U /*!< CoreDebug DEMCR: VC_CHKERR Position */ -#define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ - -#define CoreDebug_DEMCR_VC_NOCPERR_Pos 5U /*!< CoreDebug DEMCR: VC_NOCPERR Position */ -#define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ - -#define CoreDebug_DEMCR_VC_MMERR_Pos 4U /*!< CoreDebug DEMCR: VC_MMERR Position */ -#define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ - -#define CoreDebug_DEMCR_VC_CORERESET_Pos 0U /*!< CoreDebug DEMCR: VC_CORERESET Position */ -#define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL /*<< CoreDebug_DEMCR_VC_CORERESET_Pos*/) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ - -/*@} end of group CMSIS_CoreDebug */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_core_bitfield Core register bit field macros - \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). - @{ - */ - -/** - \brief Mask and shift a bit field value for use in a register bit range. - \param[in] field Name of the register bit field. - \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. - \return Masked and shifted value. -*/ -#define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) - -/** - \brief Mask and shift a register value to extract a bit filed value. - \param[in] field Name of the register bit field. - \param[in] value Value of register. This parameter is interpreted as an uint32_t type. - \return Masked and shifted bit field value. -*/ -#define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) - -/*@} end of group CMSIS_core_bitfield */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_core_base Core Definitions - \brief Definitions for base addresses, unions, and structures. - @{ - */ - -/* Memory mapping of Core Hardware */ -#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ -#define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ -#define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ -#define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ -#define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ -#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ -#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ -#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ - -#define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ -#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ -#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ -#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ -#define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ -#define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ -#define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ -#define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE) /*!< Core Debug configuration struct */ - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) - #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ - #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ -#endif - -/*@} */ - - - -/******************************************************************************* - * Hardware Abstraction Layer - Core Function Interface contains: - - Core NVIC Functions - - Core SysTick Functions - - Core Debug Functions - - Core Register Access Functions - ******************************************************************************/ -/** - \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference -*/ - - - -/* ########################## NVIC functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_NVICFunctions NVIC Functions - \brief Functions that manage interrupts and exceptions via the NVIC. - @{ - */ - -#ifdef CMSIS_NVIC_VIRTUAL - #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE - #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" - #endif - #include CMSIS_NVIC_VIRTUAL_HEADER_FILE -#else - #define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping - #define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping - #define NVIC_EnableIRQ __NVIC_EnableIRQ - #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ - #define NVIC_DisableIRQ __NVIC_DisableIRQ - #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ - #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ - #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ - #define NVIC_GetActive __NVIC_GetActive - #define NVIC_SetPriority __NVIC_SetPriority - #define NVIC_GetPriority __NVIC_GetPriority - #define NVIC_SystemReset __NVIC_SystemReset -#endif /* CMSIS_NVIC_VIRTUAL */ - -#ifdef CMSIS_VECTAB_VIRTUAL - #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE - #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" - #endif - #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE -#else - #define NVIC_SetVector __NVIC_SetVector - #define NVIC_GetVector __NVIC_GetVector -#endif /* (CMSIS_VECTAB_VIRTUAL) */ - -#define NVIC_USER_IRQ_OFFSET 16 - - -/* The following EXC_RETURN values are saved the LR on exception entry */ -#define EXC_RETURN_HANDLER (0xFFFFFFF1UL) /* return to Handler mode, uses MSP after return */ -#define EXC_RETURN_THREAD_MSP (0xFFFFFFF9UL) /* return to Thread mode, uses MSP after return */ -#define EXC_RETURN_THREAD_PSP (0xFFFFFFFDUL) /* return to Thread mode, uses PSP after return */ - - -/** - \brief Set Priority Grouping - \details Sets the priority grouping field using the required unlock sequence. - The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. - Only values from 0..7 are used. - 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) -{ - uint32_t reg_value; - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - - reg_value = SCB->AIRCR; /* read old register configuration */ - reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ - reg_value = (reg_value | - ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ - SCB->AIRCR = reg_value; -} - - -/** - \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) -{ - return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); -} - - -/** - \brief Enable Interrupt - \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) -{ - if ((int32_t)(IRQn) >= 0) - { - __COMPILER_BARRIER(); - NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - __COMPILER_BARRIER(); - } -} - - -/** - \brief Get Interrupt Enable status - \details Returns a device specific interrupt enable status from the NVIC interrupt controller. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt is not enabled. - \return 1 Interrupt is enabled. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Disable Interrupt - \details Disables 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_DisableIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - __DSB(); - __ISB(); - } -} - - -/** - \brief Get Pending Interrupt - \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not pending. - \return 1 Interrupt status is pending. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Pending Interrupt - \details Sets the pending bit of a device specific interrupt in the NVIC pending register. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Clear Pending Interrupt - \details Clears the pending bit of a device specific interrupt in the NVIC pending register. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Active Interrupt - \details Reads the active register in the NVIC and returns the active bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not active. - \return 1 Interrupt status is active. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetActive(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Interrupt Priority - \details Sets the priority of a device specific interrupt or a processor exception. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \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) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - } - else - { - SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - } -} - - -/** - \brief Get Interrupt Priority - \details Reads the priority of a device specific interrupt or a processor exception. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Interrupt Priority. - Value is aligned automatically to the implemented priority bits of the microcontroller. - */ -__STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) -{ - - if ((int32_t)(IRQn) >= 0) - { - return(((uint32_t)NVIC->IP[((uint32_t)IRQn)] >> (8U - __NVIC_PRIO_BITS))); - } - else - { - return(((uint32_t)SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] >> (8U - __NVIC_PRIO_BITS))); - } -} - - -/** - \brief Encode Priority - \details Encodes the priority for an interrupt with the given priority group, - preemptive priority value, and subpriority value. - 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 Used priority group. - \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) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - - return ( - ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) - ); -} - - -/** - \brief Decode Priority - \details Decodes an interrupt priority value with a given priority group to - preemptive priority value and subpriority value. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. - \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). - \param [in] PriorityGroup Used priority group. - \param [out] pPreemptPriority Preemptive priority value (starting from 0). - \param [out] pSubPriority Subpriority value (starting from 0). - */ -__STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - - *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); - *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); -} - - -/** - \brief Set Interrupt Vector - \details Sets an interrupt vector in SRAM based interrupt vector table. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - VTOR must been relocated to SRAM before. - \param [in] IRQn Interrupt number - \param [in] vector Address of interrupt handler function - */ -__STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) -{ - uint32_t vectors = (uint32_t )SCB->VTOR; - (* (int *) (vectors + ((int32_t)IRQn + NVIC_USER_IRQ_OFFSET) * 4)) = vector; - /* ARM Application Note 321 states that the M3 does not require the architectural barrier */ -} - - -/** - \brief Get Interrupt Vector - \details Reads an interrupt vector from interrupt vector table. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Address of interrupt handler function - */ -__STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) -{ - uint32_t vectors = (uint32_t )SCB->VTOR; - return (uint32_t)(* (int *) (vectors + ((int32_t)IRQn + NVIC_USER_IRQ_OFFSET) * 4)); -} - - -/** - \brief System Reset - \details Initiates a system reset request to reset the MCU. - */ -__NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) -{ - __DSB(); /* Ensure all outstanding memory accesses included - buffered write are completed before reset */ - SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | - SCB_AIRCR_SYSRESETREQ_Msk ); /* Keep priority group unchanged */ - __DSB(); /* Ensure completion of memory access */ - - for(;;) /* wait until reset */ - { - __NOP(); - } -} - -/*@} end of CMSIS_Core_NVICFunctions */ - -/* ########################## MPU functions #################################### */ - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) - -#include "mpu_armv7.h" - -#endif - - -/* ########################## FPU functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_FpuFunctions FPU Functions - \brief Function that provides FPU type. - @{ - */ - -/** - \brief get FPU type - \details returns the FPU type - \returns - - \b 0: No FPU - - \b 1: Single precision FPU - - \b 2: Double + Single precision FPU - */ -__STATIC_INLINE uint32_t SCB_GetFPUType(void) -{ - return 0U; /* No FPU */ -} - - -/*@} end of CMSIS_Core_FpuFunctions */ - - - -/* ################################## SysTick function ############################################ */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SysTickFunctions SysTick Functions - \brief Functions that configure the System. - @{ - */ - -#if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) - -/** - \brief System Tick Configuration - \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. - Counter is in free running mode to generate periodic interrupts. - \param [in] ticks Number of ticks between two interrupts. - \return 0 Function succeeded. - \return 1 Function failed. - \note When the variable __Vendor_SysTickConfig is set to 1, then the - function SysTick_Config is not included. In this case, the file device.h - must contain a vendor-specific implementation of this function. - */ -__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) -{ - if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - { - return (1UL); /* Reload value impossible */ - } - - SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ - SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0UL); /* Function successful */ -} - -#endif - -/*@} end of CMSIS_Core_SysTickFunctions */ - - - -/* ##################################### Debug In/Output function ########################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_core_DebugFunctions ITM Functions - \brief Functions that access the ITM debug interface. - @{ - */ - -extern volatile int32_t ITM_RxBuffer; /*!< External variable to receive characters. */ -#define ITM_RXBUFFER_EMPTY ((int32_t)0x5AA55AA5U) /*!< Value identifying \ref ITM_RxBuffer is ready for next character. */ - - -/** - \brief ITM Send Character - \details Transmits a character via the ITM channel 0, and - \li Just returns when no debugger is connected that has booked the output. - \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted. - \param [in] ch Character to transmit. - \returns Character to transmit. - */ -__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch) -{ - if (((ITM->TCR & ITM_TCR_ITMENA_Msk) != 0UL) && /* ITM enabled */ - ((ITM->TER & 1UL ) != 0UL) ) /* ITM Port #0 enabled */ - { - while (ITM->PORT[0U].u32 == 0UL) - { - __NOP(); - } - ITM->PORT[0U].u8 = (uint8_t)ch; - } - return (ch); -} - - -/** - \brief ITM Receive Character - \details Inputs a character via the external variable \ref ITM_RxBuffer. - \return Received character. - \return -1 No character pending. - */ -__STATIC_INLINE int32_t ITM_ReceiveChar (void) -{ - int32_t ch = -1; /* no character available */ - - if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) - { - ch = ITM_RxBuffer; - ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ - } - - return (ch); -} - - -/** - \brief ITM Check Character - \details Checks whether a character is pending for reading in the variable \ref ITM_RxBuffer. - \return 0 No character available. - \return 1 Character available. - */ -__STATIC_INLINE int32_t ITM_CheckChar (void) -{ - - if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) - { - return (0); /* no character available */ - } - else - { - return (1); /* character available */ - } -} - -/*@} end of CMSIS_core_DebugFunctions */ - - - - -#ifdef __cplusplus -} -#endif - -#endif /* __CORE_CM3_H_DEPENDANT */ - -#endif /* __CMSIS_GENERIC */ diff --git a/Drivers/CMSIS/Include/core_cm33.h b/Drivers/CMSIS/Include/core_cm33.h deleted file mode 100644 index 7fed59a..0000000 --- a/Drivers/CMSIS/Include/core_cm33.h +++ /dev/null @@ -1,2910 +0,0 @@ -/**************************************************************************//** - * @file core_cm33.h - * @brief CMSIS Cortex-M33 Core Peripheral Access Layer Header File - * @version V5.1.0 - * @date 12. November 2018 - ******************************************************************************/ -/* - * Copyright (c) 2009-2018 Arm Limited. All rights reserved. - * - * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the License); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#if defined ( __ICCARM__ ) - #pragma system_include /* treat file as system include file for MISRA check */ -#elif defined (__clang__) - #pragma clang system_header /* treat file as system include file */ -#endif - -#ifndef __CORE_CM33_H_GENERIC -#define __CORE_CM33_H_GENERIC - -#include - -#ifdef __cplusplus - extern "C" { -#endif - -/** - \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions - CMSIS violates the following MISRA-C:2004 rules: - - \li Required Rule 8.5, object/function definition in header file.
- Function definitions in header files are used to allow 'inlining'. - - \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
- Unions are used for effective representation of core registers. - - \li Advisory Rule 19.7, Function-like macro defined.
- Function-like macros are used to allow more efficient code. - */ - - -/******************************************************************************* - * CMSIS definitions - ******************************************************************************/ -/** - \ingroup Cortex_M33 - @{ - */ - -#include "cmsis_version.h" - -/* CMSIS CM33 definitions */ -#define __CM33_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ -#define __CM33_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ -#define __CM33_CMSIS_VERSION ((__CM33_CMSIS_VERSION_MAIN << 16U) | \ - __CM33_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ - -#define __CORTEX_M (33U) /*!< Cortex-M Core */ - -/** __FPU_USED indicates whether an FPU is used or not. - For this, __FPU_PRESENT has to be checked prior to making use of FPU specific registers and functions. -*/ -#if defined ( __CC_ARM ) - #if defined (__TARGET_FPU_VFP) - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - - #if defined (__ARM_FEATURE_DSP) && (__ARM_FEATURE_DSP == 1U) - #if defined (__DSP_PRESENT) && (__DSP_PRESENT == 1U) - #define __DSP_USED 1U - #else - #error "Compiler generates DSP (SIMD) instructions for a devices without DSP extensions (check __DSP_PRESENT)" - #define __DSP_USED 0U - #endif - #else - #define __DSP_USED 0U - #endif - -#elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) - #if defined (__ARM_FP) - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - - #if defined (__ARM_FEATURE_DSP) && (__ARM_FEATURE_DSP == 1U) - #if defined (__DSP_PRESENT) && (__DSP_PRESENT == 1U) - #define __DSP_USED 1U - #else - #error "Compiler generates DSP (SIMD) instructions for a devices without DSP extensions (check __DSP_PRESENT)" - #define __DSP_USED 0U - #endif - #else - #define __DSP_USED 0U - #endif - -#elif defined ( __GNUC__ ) - #if defined (__VFP_FP__) && !defined(__SOFTFP__) - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - - #if defined (__ARM_FEATURE_DSP) && (__ARM_FEATURE_DSP == 1U) - #if defined (__DSP_PRESENT) && (__DSP_PRESENT == 1U) - #define __DSP_USED 1U - #else - #error "Compiler generates DSP (SIMD) instructions for a devices without DSP extensions (check __DSP_PRESENT)" - #define __DSP_USED 0U - #endif - #else - #define __DSP_USED 0U - #endif - -#elif defined ( __ICCARM__ ) - #if defined (__ARMVFP__) - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - - #if defined (__ARM_FEATURE_DSP) && (__ARM_FEATURE_DSP == 1U) - #if defined (__DSP_PRESENT) && (__DSP_PRESENT == 1U) - #define __DSP_USED 1U - #else - #error "Compiler generates DSP (SIMD) instructions for a devices without DSP extensions (check __DSP_PRESENT)" - #define __DSP_USED 0U - #endif - #else - #define __DSP_USED 0U - #endif - -#elif defined ( __TI_ARM__ ) - #if defined (__TI_VFP_SUPPORT__) - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - -#elif defined ( __TASKING__ ) - #if defined (__FPU_VFP__) - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - -#elif defined ( __CSMC__ ) - #if ( __CSMC__ & 0x400U) - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - -#endif - -#include "cmsis_compiler.h" /* CMSIS compiler specific defines */ - - -#ifdef __cplusplus -} -#endif - -#endif /* __CORE_CM33_H_GENERIC */ - -#ifndef __CMSIS_GENERIC - -#ifndef __CORE_CM33_H_DEPENDANT -#define __CORE_CM33_H_DEPENDANT - -#ifdef __cplusplus - extern "C" { -#endif - -/* check device defines and use defaults */ -#if defined __CHECK_DEVICE_DEFINES - #ifndef __CM33_REV - #define __CM33_REV 0x0000U - #warning "__CM33_REV not defined in device header file; using default!" - #endif - - #ifndef __FPU_PRESENT - #define __FPU_PRESENT 0U - #warning "__FPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __MPU_PRESENT - #define __MPU_PRESENT 0U - #warning "__MPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __SAUREGION_PRESENT - #define __SAUREGION_PRESENT 0U - #warning "__SAUREGION_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __DSP_PRESENT - #define __DSP_PRESENT 0U - #warning "__DSP_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __NVIC_PRIO_BITS - #define __NVIC_PRIO_BITS 3U - #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" - #endif - - #ifndef __Vendor_SysTickConfig - #define __Vendor_SysTickConfig 0U - #warning "__Vendor_SysTickConfig not defined in device header file; using default!" - #endif -#endif - -/* IO definitions (access restrictions to peripheral registers) */ -/** - \defgroup CMSIS_glob_defs CMSIS Global Defines - - IO Type Qualifiers are used - \li to specify the access to peripheral variables. - \li for automatic generation of peripheral register debug information. -*/ -#ifdef __cplusplus - #define __I volatile /*!< Defines 'read only' permissions */ -#else - #define __I volatile const /*!< Defines 'read only' permissions */ -#endif -#define __O volatile /*!< Defines 'write only' permissions */ -#define __IO volatile /*!< Defines 'read / write' permissions */ - -/* following defines should be used for structure members */ -#define __IM volatile const /*! Defines 'read only' structure member permissions */ -#define __OM volatile /*! Defines 'write only' structure member permissions */ -#define __IOM volatile /*! Defines 'read / write' structure member permissions */ - -/*@} end of group Cortex_M33 */ - - - -/******************************************************************************* - * Register Abstraction - Core Register contain: - - Core Register - - Core NVIC Register - - Core SCB Register - - Core SysTick Register - - Core Debug Register - - Core MPU Register - - Core SAU Register - - Core FPU Register - ******************************************************************************/ -/** - \defgroup CMSIS_core_register Defines and Type Definitions - \brief Type definitions and defines for Cortex-M processor based devices. -*/ - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_CORE Status and Control Registers - \brief Core Register type definitions. - @{ - */ - -/** - \brief Union type to access the Application Program Status Register (APSR). - */ -typedef union -{ - struct - { - uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} APSR_Type; - -/* APSR Register Definitions */ -#define APSR_N_Pos 31U /*!< APSR: N Position */ -#define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ - -#define APSR_Z_Pos 30U /*!< APSR: Z Position */ -#define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ - -#define APSR_C_Pos 29U /*!< APSR: C Position */ -#define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ - -#define APSR_V_Pos 28U /*!< APSR: V Position */ -#define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ - -#define APSR_Q_Pos 27U /*!< APSR: Q Position */ -#define APSR_Q_Msk (1UL << APSR_Q_Pos) /*!< APSR: Q Mask */ - -#define APSR_GE_Pos 16U /*!< APSR: GE Position */ -#define APSR_GE_Msk (0xFUL << APSR_GE_Pos) /*!< APSR: GE Mask */ - - -/** - \brief Union type to access the Interrupt Program Status Register (IPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} IPSR_Type; - -/* IPSR Register Definitions */ -#define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ -#define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ - - -/** - \brief Union type to access the Special-Purpose Program Status Registers (xPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:7; /*!< bit: 9..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ - uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ - uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} xPSR_Type; - -/* xPSR Register Definitions */ -#define xPSR_N_Pos 31U /*!< xPSR: N Position */ -#define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ - -#define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ -#define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ - -#define xPSR_C_Pos 29U /*!< xPSR: C Position */ -#define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ - -#define xPSR_V_Pos 28U /*!< xPSR: V Position */ -#define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ - -#define xPSR_Q_Pos 27U /*!< xPSR: Q Position */ -#define xPSR_Q_Msk (1UL << xPSR_Q_Pos) /*!< xPSR: Q Mask */ - -#define xPSR_IT_Pos 25U /*!< xPSR: IT Position */ -#define xPSR_IT_Msk (3UL << xPSR_IT_Pos) /*!< xPSR: IT Mask */ - -#define xPSR_T_Pos 24U /*!< xPSR: T Position */ -#define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ - -#define xPSR_GE_Pos 16U /*!< xPSR: GE Position */ -#define xPSR_GE_Msk (0xFUL << xPSR_GE_Pos) /*!< xPSR: GE Mask */ - -#define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ -#define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ - - -/** - \brief Union type to access the Control Registers (CONTROL). - */ -typedef union -{ - struct - { - uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ - uint32_t SPSEL:1; /*!< bit: 1 Stack-pointer select */ - uint32_t FPCA:1; /*!< bit: 2 Floating-point context active */ - uint32_t SFPA:1; /*!< bit: 3 Secure floating-point active */ - uint32_t _reserved1:28; /*!< bit: 4..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} CONTROL_Type; - -/* CONTROL Register Definitions */ -#define CONTROL_SFPA_Pos 3U /*!< CONTROL: SFPA Position */ -#define CONTROL_SFPA_Msk (1UL << CONTROL_SFPA_Pos) /*!< CONTROL: SFPA Mask */ - -#define CONTROL_FPCA_Pos 2U /*!< CONTROL: FPCA Position */ -#define CONTROL_FPCA_Msk (1UL << CONTROL_FPCA_Pos) /*!< CONTROL: FPCA Mask */ - -#define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ -#define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ - -#define CONTROL_nPRIV_Pos 0U /*!< CONTROL: nPRIV Position */ -#define CONTROL_nPRIV_Msk (1UL /*<< CONTROL_nPRIV_Pos*/) /*!< CONTROL: nPRIV Mask */ - -/*@} end of group CMSIS_CORE */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) - \brief Type definitions for the NVIC Registers - @{ - */ - -/** - \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). - */ -typedef struct -{ - __IOM uint32_t ISER[16U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ - uint32_t RESERVED0[16U]; - __IOM uint32_t ICER[16U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ - uint32_t RSERVED1[16U]; - __IOM uint32_t ISPR[16U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ - uint32_t RESERVED2[16U]; - __IOM uint32_t ICPR[16U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ - uint32_t RESERVED3[16U]; - __IOM uint32_t IABR[16U]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ - uint32_t RESERVED4[16U]; - __IOM uint32_t ITNS[16U]; /*!< Offset: 0x280 (R/W) Interrupt Non-Secure State Register */ - uint32_t RESERVED5[16U]; - __IOM uint8_t IPR[496U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ - uint32_t RESERVED6[580U]; - __OM uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ -} NVIC_Type; - -/* Software Triggered Interrupt Register Definitions */ -#define NVIC_STIR_INTID_Pos 0U /*!< STIR: INTLINESNUM Position */ -#define NVIC_STIR_INTID_Msk (0x1FFUL /*<< NVIC_STIR_INTID_Pos*/) /*!< STIR: INTLINESNUM Mask */ - -/*@} end of group CMSIS_NVIC */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SCB System Control Block (SCB) - \brief Type definitions for the System Control Block Registers - @{ - */ - -/** - \brief Structure type to access the System Control Block (SCB). - */ -typedef struct -{ - __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ - __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ - __IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ - __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ - __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ - __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ - __IOM uint8_t SHPR[12U]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ - __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ - __IOM uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ - __IOM uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ - __IOM uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ - __IOM uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ - __IOM uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ - __IOM uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ - __IM uint32_t ID_PFR[2U]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ - __IM uint32_t ID_DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ - __IM uint32_t ID_ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ - __IM uint32_t ID_MMFR[4U]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ - __IM uint32_t ID_ISAR[6U]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ - __IM uint32_t CLIDR; /*!< Offset: 0x078 (R/ ) Cache Level ID register */ - __IM uint32_t CTR; /*!< Offset: 0x07C (R/ ) Cache Type register */ - __IM uint32_t CCSIDR; /*!< Offset: 0x080 (R/ ) Cache Size ID Register */ - __IOM uint32_t CSSELR; /*!< Offset: 0x084 (R/W) Cache Size Selection Register */ - __IOM uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ - __IOM uint32_t NSACR; /*!< Offset: 0x08C (R/W) Non-Secure Access Control Register */ - uint32_t RESERVED3[92U]; - __OM uint32_t STIR; /*!< Offset: 0x200 ( /W) Software Triggered Interrupt Register */ - uint32_t RESERVED4[15U]; - __IM uint32_t MVFR0; /*!< Offset: 0x240 (R/ ) Media and VFP Feature Register 0 */ - __IM uint32_t MVFR1; /*!< Offset: 0x244 (R/ ) Media and VFP Feature Register 1 */ - __IM uint32_t MVFR2; /*!< Offset: 0x248 (R/ ) Media and VFP Feature Register 2 */ - uint32_t RESERVED5[1U]; - __OM uint32_t ICIALLU; /*!< Offset: 0x250 ( /W) I-Cache Invalidate All to PoU */ - uint32_t RESERVED6[1U]; - __OM uint32_t ICIMVAU; /*!< Offset: 0x258 ( /W) I-Cache Invalidate by MVA to PoU */ - __OM uint32_t DCIMVAC; /*!< Offset: 0x25C ( /W) D-Cache Invalidate by MVA to PoC */ - __OM uint32_t DCISW; /*!< Offset: 0x260 ( /W) D-Cache Invalidate by Set-way */ - __OM uint32_t DCCMVAU; /*!< Offset: 0x264 ( /W) D-Cache Clean by MVA to PoU */ - __OM uint32_t DCCMVAC; /*!< Offset: 0x268 ( /W) D-Cache Clean by MVA to PoC */ - __OM uint32_t DCCSW; /*!< Offset: 0x26C ( /W) D-Cache Clean by Set-way */ - __OM uint32_t DCCIMVAC; /*!< Offset: 0x270 ( /W) D-Cache Clean and Invalidate by MVA to PoC */ - __OM uint32_t DCCISW; /*!< Offset: 0x274 ( /W) D-Cache Clean and Invalidate by Set-way */ -} SCB_Type; - -/* SCB CPUID Register Definitions */ -#define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ -#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ - -#define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ -#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ - -#define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ -#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ - -#define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ -#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ - -#define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ -#define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ - -/* SCB Interrupt Control State Register Definitions */ -#define SCB_ICSR_PENDNMISET_Pos 31U /*!< SCB ICSR: PENDNMISET Position */ -#define SCB_ICSR_PENDNMISET_Msk (1UL << SCB_ICSR_PENDNMISET_Pos) /*!< SCB ICSR: PENDNMISET Mask */ - -#define SCB_ICSR_NMIPENDSET_Pos SCB_ICSR_PENDNMISET_Pos /*!< SCB ICSR: NMIPENDSET Position, backward compatibility */ -#define SCB_ICSR_NMIPENDSET_Msk SCB_ICSR_PENDNMISET_Msk /*!< SCB ICSR: NMIPENDSET Mask, backward compatibility */ - -#define SCB_ICSR_PENDNMICLR_Pos 30U /*!< SCB ICSR: PENDNMICLR Position */ -#define SCB_ICSR_PENDNMICLR_Msk (1UL << SCB_ICSR_PENDNMICLR_Pos) /*!< SCB ICSR: PENDNMICLR Mask */ - -#define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ -#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ - -#define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ -#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ - -#define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ -#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ - -#define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ -#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ - -#define SCB_ICSR_STTNS_Pos 24U /*!< SCB ICSR: STTNS Position (Security Extension) */ -#define SCB_ICSR_STTNS_Msk (1UL << SCB_ICSR_STTNS_Pos) /*!< SCB ICSR: STTNS Mask (Security Extension) */ - -#define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ -#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ - -#define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ -#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ - -#define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ -#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ - -#define SCB_ICSR_RETTOBASE_Pos 11U /*!< SCB ICSR: RETTOBASE Position */ -#define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ - -#define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ -#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ - -/* SCB Vector Table Offset Register Definitions */ -#define SCB_VTOR_TBLOFF_Pos 7U /*!< SCB VTOR: TBLOFF Position */ -#define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ - -/* SCB Application Interrupt and Reset Control Register Definitions */ -#define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ -#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ - -#define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ -#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ - -#define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ -#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ - -#define SCB_AIRCR_PRIS_Pos 14U /*!< SCB AIRCR: PRIS Position */ -#define SCB_AIRCR_PRIS_Msk (1UL << SCB_AIRCR_PRIS_Pos) /*!< SCB AIRCR: PRIS Mask */ - -#define SCB_AIRCR_BFHFNMINS_Pos 13U /*!< SCB AIRCR: BFHFNMINS Position */ -#define SCB_AIRCR_BFHFNMINS_Msk (1UL << SCB_AIRCR_BFHFNMINS_Pos) /*!< SCB AIRCR: BFHFNMINS Mask */ - -#define SCB_AIRCR_PRIGROUP_Pos 8U /*!< SCB AIRCR: PRIGROUP Position */ -#define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ - -#define SCB_AIRCR_SYSRESETREQS_Pos 3U /*!< SCB AIRCR: SYSRESETREQS Position */ -#define SCB_AIRCR_SYSRESETREQS_Msk (1UL << SCB_AIRCR_SYSRESETREQS_Pos) /*!< SCB AIRCR: SYSRESETREQS Mask */ - -#define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ -#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ - -#define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ -#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ - -/* SCB System Control Register Definitions */ -#define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ -#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ - -#define SCB_SCR_SLEEPDEEPS_Pos 3U /*!< SCB SCR: SLEEPDEEPS Position */ -#define SCB_SCR_SLEEPDEEPS_Msk (1UL << SCB_SCR_SLEEPDEEPS_Pos) /*!< SCB SCR: SLEEPDEEPS Mask */ - -#define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ -#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ - -#define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ -#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ - -/* SCB Configuration Control Register Definitions */ -#define SCB_CCR_BP_Pos 18U /*!< SCB CCR: BP Position */ -#define SCB_CCR_BP_Msk (1UL << SCB_CCR_BP_Pos) /*!< SCB CCR: BP Mask */ - -#define SCB_CCR_IC_Pos 17U /*!< SCB CCR: IC Position */ -#define SCB_CCR_IC_Msk (1UL << SCB_CCR_IC_Pos) /*!< SCB CCR: IC Mask */ - -#define SCB_CCR_DC_Pos 16U /*!< SCB CCR: DC Position */ -#define SCB_CCR_DC_Msk (1UL << SCB_CCR_DC_Pos) /*!< SCB CCR: DC Mask */ - -#define SCB_CCR_STKOFHFNMIGN_Pos 10U /*!< SCB CCR: STKOFHFNMIGN Position */ -#define SCB_CCR_STKOFHFNMIGN_Msk (1UL << SCB_CCR_STKOFHFNMIGN_Pos) /*!< SCB CCR: STKOFHFNMIGN Mask */ - -#define SCB_CCR_BFHFNMIGN_Pos 8U /*!< SCB CCR: BFHFNMIGN Position */ -#define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ - -#define SCB_CCR_DIV_0_TRP_Pos 4U /*!< SCB CCR: DIV_0_TRP Position */ -#define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ - -#define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ -#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ - -#define SCB_CCR_USERSETMPEND_Pos 1U /*!< SCB CCR: USERSETMPEND Position */ -#define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ - -/* SCB System Handler Control and State Register Definitions */ -#define SCB_SHCSR_HARDFAULTPENDED_Pos 21U /*!< SCB SHCSR: HARDFAULTPENDED Position */ -#define SCB_SHCSR_HARDFAULTPENDED_Msk (1UL << SCB_SHCSR_HARDFAULTPENDED_Pos) /*!< SCB SHCSR: HARDFAULTPENDED Mask */ - -#define SCB_SHCSR_SECUREFAULTPENDED_Pos 20U /*!< SCB SHCSR: SECUREFAULTPENDED Position */ -#define SCB_SHCSR_SECUREFAULTPENDED_Msk (1UL << SCB_SHCSR_SECUREFAULTPENDED_Pos) /*!< SCB SHCSR: SECUREFAULTPENDED Mask */ - -#define SCB_SHCSR_SECUREFAULTENA_Pos 19U /*!< SCB SHCSR: SECUREFAULTENA Position */ -#define SCB_SHCSR_SECUREFAULTENA_Msk (1UL << SCB_SHCSR_SECUREFAULTENA_Pos) /*!< SCB SHCSR: SECUREFAULTENA Mask */ - -#define SCB_SHCSR_USGFAULTENA_Pos 18U /*!< SCB SHCSR: USGFAULTENA Position */ -#define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ - -#define SCB_SHCSR_BUSFAULTENA_Pos 17U /*!< SCB SHCSR: BUSFAULTENA Position */ -#define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ - -#define SCB_SHCSR_MEMFAULTENA_Pos 16U /*!< SCB SHCSR: MEMFAULTENA Position */ -#define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ - -#define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ -#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ - -#define SCB_SHCSR_BUSFAULTPENDED_Pos 14U /*!< SCB SHCSR: BUSFAULTPENDED Position */ -#define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ - -#define SCB_SHCSR_MEMFAULTPENDED_Pos 13U /*!< SCB SHCSR: MEMFAULTPENDED Position */ -#define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ - -#define SCB_SHCSR_USGFAULTPENDED_Pos 12U /*!< SCB SHCSR: USGFAULTPENDED Position */ -#define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ - -#define SCB_SHCSR_SYSTICKACT_Pos 11U /*!< SCB SHCSR: SYSTICKACT Position */ -#define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ - -#define SCB_SHCSR_PENDSVACT_Pos 10U /*!< SCB SHCSR: PENDSVACT Position */ -#define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ - -#define SCB_SHCSR_MONITORACT_Pos 8U /*!< SCB SHCSR: MONITORACT Position */ -#define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ - -#define SCB_SHCSR_SVCALLACT_Pos 7U /*!< SCB SHCSR: SVCALLACT Position */ -#define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ - -#define SCB_SHCSR_NMIACT_Pos 5U /*!< SCB SHCSR: NMIACT Position */ -#define SCB_SHCSR_NMIACT_Msk (1UL << SCB_SHCSR_NMIACT_Pos) /*!< SCB SHCSR: NMIACT Mask */ - -#define SCB_SHCSR_SECUREFAULTACT_Pos 4U /*!< SCB SHCSR: SECUREFAULTACT Position */ -#define SCB_SHCSR_SECUREFAULTACT_Msk (1UL << SCB_SHCSR_SECUREFAULTACT_Pos) /*!< SCB SHCSR: SECUREFAULTACT Mask */ - -#define SCB_SHCSR_USGFAULTACT_Pos 3U /*!< SCB SHCSR: USGFAULTACT Position */ -#define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ - -#define SCB_SHCSR_HARDFAULTACT_Pos 2U /*!< SCB SHCSR: HARDFAULTACT Position */ -#define SCB_SHCSR_HARDFAULTACT_Msk (1UL << SCB_SHCSR_HARDFAULTACT_Pos) /*!< SCB SHCSR: HARDFAULTACT Mask */ - -#define SCB_SHCSR_BUSFAULTACT_Pos 1U /*!< SCB SHCSR: BUSFAULTACT Position */ -#define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ - -#define SCB_SHCSR_MEMFAULTACT_Pos 0U /*!< SCB SHCSR: MEMFAULTACT Position */ -#define SCB_SHCSR_MEMFAULTACT_Msk (1UL /*<< SCB_SHCSR_MEMFAULTACT_Pos*/) /*!< SCB SHCSR: MEMFAULTACT Mask */ - -/* SCB Configurable Fault Status Register Definitions */ -#define SCB_CFSR_USGFAULTSR_Pos 16U /*!< SCB CFSR: Usage Fault Status Register Position */ -#define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ - -#define SCB_CFSR_BUSFAULTSR_Pos 8U /*!< SCB CFSR: Bus Fault Status Register Position */ -#define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ - -#define SCB_CFSR_MEMFAULTSR_Pos 0U /*!< SCB CFSR: Memory Manage Fault Status Register Position */ -#define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL /*<< SCB_CFSR_MEMFAULTSR_Pos*/) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ - -/* MemManage Fault Status Register (part of SCB Configurable Fault Status Register) */ -#define SCB_CFSR_MMARVALID_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 7U) /*!< SCB CFSR (MMFSR): MMARVALID Position */ -#define SCB_CFSR_MMARVALID_Msk (1UL << SCB_CFSR_MMARVALID_Pos) /*!< SCB CFSR (MMFSR): MMARVALID Mask */ - -#define SCB_CFSR_MLSPERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 5U) /*!< SCB CFSR (MMFSR): MLSPERR Position */ -#define SCB_CFSR_MLSPERR_Msk (1UL << SCB_CFSR_MLSPERR_Pos) /*!< SCB CFSR (MMFSR): MLSPERR Mask */ - -#define SCB_CFSR_MSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 4U) /*!< SCB CFSR (MMFSR): MSTKERR Position */ -#define SCB_CFSR_MSTKERR_Msk (1UL << SCB_CFSR_MSTKERR_Pos) /*!< SCB CFSR (MMFSR): MSTKERR Mask */ - -#define SCB_CFSR_MUNSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 3U) /*!< SCB CFSR (MMFSR): MUNSTKERR Position */ -#define SCB_CFSR_MUNSTKERR_Msk (1UL << SCB_CFSR_MUNSTKERR_Pos) /*!< SCB CFSR (MMFSR): MUNSTKERR Mask */ - -#define SCB_CFSR_DACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 1U) /*!< SCB CFSR (MMFSR): DACCVIOL Position */ -#define SCB_CFSR_DACCVIOL_Msk (1UL << SCB_CFSR_DACCVIOL_Pos) /*!< SCB CFSR (MMFSR): DACCVIOL Mask */ - -#define SCB_CFSR_IACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 0U) /*!< SCB CFSR (MMFSR): IACCVIOL Position */ -#define SCB_CFSR_IACCVIOL_Msk (1UL /*<< SCB_CFSR_IACCVIOL_Pos*/) /*!< SCB CFSR (MMFSR): IACCVIOL Mask */ - -/* BusFault Status Register (part of SCB Configurable Fault Status Register) */ -#define SCB_CFSR_BFARVALID_Pos (SCB_CFSR_BUSFAULTSR_Pos + 7U) /*!< SCB CFSR (BFSR): BFARVALID Position */ -#define SCB_CFSR_BFARVALID_Msk (1UL << SCB_CFSR_BFARVALID_Pos) /*!< SCB CFSR (BFSR): BFARVALID Mask */ - -#define SCB_CFSR_LSPERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 5U) /*!< SCB CFSR (BFSR): LSPERR Position */ -#define SCB_CFSR_LSPERR_Msk (1UL << SCB_CFSR_LSPERR_Pos) /*!< SCB CFSR (BFSR): LSPERR Mask */ - -#define SCB_CFSR_STKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 4U) /*!< SCB CFSR (BFSR): STKERR Position */ -#define SCB_CFSR_STKERR_Msk (1UL << SCB_CFSR_STKERR_Pos) /*!< SCB CFSR (BFSR): STKERR Mask */ - -#define SCB_CFSR_UNSTKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 3U) /*!< SCB CFSR (BFSR): UNSTKERR Position */ -#define SCB_CFSR_UNSTKERR_Msk (1UL << SCB_CFSR_UNSTKERR_Pos) /*!< SCB CFSR (BFSR): UNSTKERR Mask */ - -#define SCB_CFSR_IMPRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 2U) /*!< SCB CFSR (BFSR): IMPRECISERR Position */ -#define SCB_CFSR_IMPRECISERR_Msk (1UL << SCB_CFSR_IMPRECISERR_Pos) /*!< SCB CFSR (BFSR): IMPRECISERR Mask */ - -#define SCB_CFSR_PRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 1U) /*!< SCB CFSR (BFSR): PRECISERR Position */ -#define SCB_CFSR_PRECISERR_Msk (1UL << SCB_CFSR_PRECISERR_Pos) /*!< SCB CFSR (BFSR): PRECISERR Mask */ - -#define SCB_CFSR_IBUSERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 0U) /*!< SCB CFSR (BFSR): IBUSERR Position */ -#define SCB_CFSR_IBUSERR_Msk (1UL << SCB_CFSR_IBUSERR_Pos) /*!< SCB CFSR (BFSR): IBUSERR Mask */ - -/* UsageFault Status Register (part of SCB Configurable Fault Status Register) */ -#define SCB_CFSR_DIVBYZERO_Pos (SCB_CFSR_USGFAULTSR_Pos + 9U) /*!< SCB CFSR (UFSR): DIVBYZERO Position */ -#define SCB_CFSR_DIVBYZERO_Msk (1UL << SCB_CFSR_DIVBYZERO_Pos) /*!< SCB CFSR (UFSR): DIVBYZERO Mask */ - -#define SCB_CFSR_UNALIGNED_Pos (SCB_CFSR_USGFAULTSR_Pos + 8U) /*!< SCB CFSR (UFSR): UNALIGNED Position */ -#define SCB_CFSR_UNALIGNED_Msk (1UL << SCB_CFSR_UNALIGNED_Pos) /*!< SCB CFSR (UFSR): UNALIGNED Mask */ - -#define SCB_CFSR_STKOF_Pos (SCB_CFSR_USGFAULTSR_Pos + 4U) /*!< SCB CFSR (UFSR): STKOF Position */ -#define SCB_CFSR_STKOF_Msk (1UL << SCB_CFSR_STKOF_Pos) /*!< SCB CFSR (UFSR): STKOF Mask */ - -#define SCB_CFSR_NOCP_Pos (SCB_CFSR_USGFAULTSR_Pos + 3U) /*!< SCB CFSR (UFSR): NOCP Position */ -#define SCB_CFSR_NOCP_Msk (1UL << SCB_CFSR_NOCP_Pos) /*!< SCB CFSR (UFSR): NOCP Mask */ - -#define SCB_CFSR_INVPC_Pos (SCB_CFSR_USGFAULTSR_Pos + 2U) /*!< SCB CFSR (UFSR): INVPC Position */ -#define SCB_CFSR_INVPC_Msk (1UL << SCB_CFSR_INVPC_Pos) /*!< SCB CFSR (UFSR): INVPC Mask */ - -#define SCB_CFSR_INVSTATE_Pos (SCB_CFSR_USGFAULTSR_Pos + 1U) /*!< SCB CFSR (UFSR): INVSTATE Position */ -#define SCB_CFSR_INVSTATE_Msk (1UL << SCB_CFSR_INVSTATE_Pos) /*!< SCB CFSR (UFSR): INVSTATE Mask */ - -#define SCB_CFSR_UNDEFINSTR_Pos (SCB_CFSR_USGFAULTSR_Pos + 0U) /*!< SCB CFSR (UFSR): UNDEFINSTR Position */ -#define SCB_CFSR_UNDEFINSTR_Msk (1UL << SCB_CFSR_UNDEFINSTR_Pos) /*!< SCB CFSR (UFSR): UNDEFINSTR Mask */ - -/* SCB Hard Fault Status Register Definitions */ -#define SCB_HFSR_DEBUGEVT_Pos 31U /*!< SCB HFSR: DEBUGEVT Position */ -#define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ - -#define SCB_HFSR_FORCED_Pos 30U /*!< SCB HFSR: FORCED Position */ -#define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ - -#define SCB_HFSR_VECTTBL_Pos 1U /*!< SCB HFSR: VECTTBL Position */ -#define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ - -/* SCB Debug Fault Status Register Definitions */ -#define SCB_DFSR_EXTERNAL_Pos 4U /*!< SCB DFSR: EXTERNAL Position */ -#define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ - -#define SCB_DFSR_VCATCH_Pos 3U /*!< SCB DFSR: VCATCH Position */ -#define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ - -#define SCB_DFSR_DWTTRAP_Pos 2U /*!< SCB DFSR: DWTTRAP Position */ -#define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ - -#define SCB_DFSR_BKPT_Pos 1U /*!< SCB DFSR: BKPT Position */ -#define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ - -#define SCB_DFSR_HALTED_Pos 0U /*!< SCB DFSR: HALTED Position */ -#define SCB_DFSR_HALTED_Msk (1UL /*<< SCB_DFSR_HALTED_Pos*/) /*!< SCB DFSR: HALTED Mask */ - -/* SCB Non-Secure Access Control Register Definitions */ -#define SCB_NSACR_CP11_Pos 11U /*!< SCB NSACR: CP11 Position */ -#define SCB_NSACR_CP11_Msk (1UL << SCB_NSACR_CP11_Pos) /*!< SCB NSACR: CP11 Mask */ - -#define SCB_NSACR_CP10_Pos 10U /*!< SCB NSACR: CP10 Position */ -#define SCB_NSACR_CP10_Msk (1UL << SCB_NSACR_CP10_Pos) /*!< SCB NSACR: CP10 Mask */ - -#define SCB_NSACR_CPn_Pos 0U /*!< SCB NSACR: CPn Position */ -#define SCB_NSACR_CPn_Msk (1UL /*<< SCB_NSACR_CPn_Pos*/) /*!< SCB NSACR: CPn Mask */ - -/* SCB Cache Level ID Register Definitions */ -#define SCB_CLIDR_LOUU_Pos 27U /*!< SCB CLIDR: LoUU Position */ -#define SCB_CLIDR_LOUU_Msk (7UL << SCB_CLIDR_LOUU_Pos) /*!< SCB CLIDR: LoUU Mask */ - -#define SCB_CLIDR_LOC_Pos 24U /*!< SCB CLIDR: LoC Position */ -#define SCB_CLIDR_LOC_Msk (7UL << SCB_CLIDR_LOC_Pos) /*!< SCB CLIDR: LoC Mask */ - -/* SCB Cache Type Register Definitions */ -#define SCB_CTR_FORMAT_Pos 29U /*!< SCB CTR: Format Position */ -#define SCB_CTR_FORMAT_Msk (7UL << SCB_CTR_FORMAT_Pos) /*!< SCB CTR: Format Mask */ - -#define SCB_CTR_CWG_Pos 24U /*!< SCB CTR: CWG Position */ -#define SCB_CTR_CWG_Msk (0xFUL << SCB_CTR_CWG_Pos) /*!< SCB CTR: CWG Mask */ - -#define SCB_CTR_ERG_Pos 20U /*!< SCB CTR: ERG Position */ -#define SCB_CTR_ERG_Msk (0xFUL << SCB_CTR_ERG_Pos) /*!< SCB CTR: ERG Mask */ - -#define SCB_CTR_DMINLINE_Pos 16U /*!< SCB CTR: DminLine Position */ -#define SCB_CTR_DMINLINE_Msk (0xFUL << SCB_CTR_DMINLINE_Pos) /*!< SCB CTR: DminLine Mask */ - -#define SCB_CTR_IMINLINE_Pos 0U /*!< SCB CTR: ImInLine Position */ -#define SCB_CTR_IMINLINE_Msk (0xFUL /*<< SCB_CTR_IMINLINE_Pos*/) /*!< SCB CTR: ImInLine Mask */ - -/* SCB Cache Size ID Register Definitions */ -#define SCB_CCSIDR_WT_Pos 31U /*!< SCB CCSIDR: WT Position */ -#define SCB_CCSIDR_WT_Msk (1UL << SCB_CCSIDR_WT_Pos) /*!< SCB CCSIDR: WT Mask */ - -#define SCB_CCSIDR_WB_Pos 30U /*!< SCB CCSIDR: WB Position */ -#define SCB_CCSIDR_WB_Msk (1UL << SCB_CCSIDR_WB_Pos) /*!< SCB CCSIDR: WB Mask */ - -#define SCB_CCSIDR_RA_Pos 29U /*!< SCB CCSIDR: RA Position */ -#define SCB_CCSIDR_RA_Msk (1UL << SCB_CCSIDR_RA_Pos) /*!< SCB CCSIDR: RA Mask */ - -#define SCB_CCSIDR_WA_Pos 28U /*!< SCB CCSIDR: WA Position */ -#define SCB_CCSIDR_WA_Msk (1UL << SCB_CCSIDR_WA_Pos) /*!< SCB CCSIDR: WA Mask */ - -#define SCB_CCSIDR_NUMSETS_Pos 13U /*!< SCB CCSIDR: NumSets Position */ -#define SCB_CCSIDR_NUMSETS_Msk (0x7FFFUL << SCB_CCSIDR_NUMSETS_Pos) /*!< SCB CCSIDR: NumSets Mask */ - -#define SCB_CCSIDR_ASSOCIATIVITY_Pos 3U /*!< SCB CCSIDR: Associativity Position */ -#define SCB_CCSIDR_ASSOCIATIVITY_Msk (0x3FFUL << SCB_CCSIDR_ASSOCIATIVITY_Pos) /*!< SCB CCSIDR: Associativity Mask */ - -#define SCB_CCSIDR_LINESIZE_Pos 0U /*!< SCB CCSIDR: LineSize Position */ -#define SCB_CCSIDR_LINESIZE_Msk (7UL /*<< SCB_CCSIDR_LINESIZE_Pos*/) /*!< SCB CCSIDR: LineSize Mask */ - -/* SCB Cache Size Selection Register Definitions */ -#define SCB_CSSELR_LEVEL_Pos 1U /*!< SCB CSSELR: Level Position */ -#define SCB_CSSELR_LEVEL_Msk (7UL << SCB_CSSELR_LEVEL_Pos) /*!< SCB CSSELR: Level Mask */ - -#define SCB_CSSELR_IND_Pos 0U /*!< SCB CSSELR: InD Position */ -#define SCB_CSSELR_IND_Msk (1UL /*<< SCB_CSSELR_IND_Pos*/) /*!< SCB CSSELR: InD Mask */ - -/* SCB Software Triggered Interrupt Register Definitions */ -#define SCB_STIR_INTID_Pos 0U /*!< SCB STIR: INTID Position */ -#define SCB_STIR_INTID_Msk (0x1FFUL /*<< SCB_STIR_INTID_Pos*/) /*!< SCB STIR: INTID Mask */ - -/* SCB D-Cache Invalidate by Set-way Register Definitions */ -#define SCB_DCISW_WAY_Pos 30U /*!< SCB DCISW: Way Position */ -#define SCB_DCISW_WAY_Msk (3UL << SCB_DCISW_WAY_Pos) /*!< SCB DCISW: Way Mask */ - -#define SCB_DCISW_SET_Pos 5U /*!< SCB DCISW: Set Position */ -#define SCB_DCISW_SET_Msk (0x1FFUL << SCB_DCISW_SET_Pos) /*!< SCB DCISW: Set Mask */ - -/* SCB D-Cache Clean by Set-way Register Definitions */ -#define SCB_DCCSW_WAY_Pos 30U /*!< SCB DCCSW: Way Position */ -#define SCB_DCCSW_WAY_Msk (3UL << SCB_DCCSW_WAY_Pos) /*!< SCB DCCSW: Way Mask */ - -#define SCB_DCCSW_SET_Pos 5U /*!< SCB DCCSW: Set Position */ -#define SCB_DCCSW_SET_Msk (0x1FFUL << SCB_DCCSW_SET_Pos) /*!< SCB DCCSW: Set Mask */ - -/* SCB D-Cache Clean and Invalidate by Set-way Register Definitions */ -#define SCB_DCCISW_WAY_Pos 30U /*!< SCB DCCISW: Way Position */ -#define SCB_DCCISW_WAY_Msk (3UL << SCB_DCCISW_WAY_Pos) /*!< SCB DCCISW: Way Mask */ - -#define SCB_DCCISW_SET_Pos 5U /*!< SCB DCCISW: Set Position */ -#define SCB_DCCISW_SET_Msk (0x1FFUL << SCB_DCCISW_SET_Pos) /*!< SCB DCCISW: Set Mask */ - -/*@} end of group CMSIS_SCB */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) - \brief Type definitions for the System Control and ID Register not in the SCB - @{ - */ - -/** - \brief Structure type to access the System Control and ID Register not in the SCB. - */ -typedef struct -{ - uint32_t RESERVED0[1U]; - __IM uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ - __IOM uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ - __IOM uint32_t CPPWR; /*!< Offset: 0x00C (R/W) Coprocessor Power Control Register */ -} SCnSCB_Type; - -/* Interrupt Controller Type Register Definitions */ -#define SCnSCB_ICTR_INTLINESNUM_Pos 0U /*!< ICTR: INTLINESNUM Position */ -#define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL /*<< SCnSCB_ICTR_INTLINESNUM_Pos*/) /*!< ICTR: INTLINESNUM Mask */ - -/*@} end of group CMSIS_SCnotSCB */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SysTick System Tick Timer (SysTick) - \brief Type definitions for the System Timer Registers. - @{ - */ - -/** - \brief Structure type to access the System Timer (SysTick). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ - __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ - __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ - __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ -} SysTick_Type; - -/* SysTick Control / Status Register Definitions */ -#define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ -#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ - -#define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ -#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ - -#define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ -#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ - -#define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ -#define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ - -/* SysTick Reload Register Definitions */ -#define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ -#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ - -/* SysTick Current Register Definitions */ -#define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ -#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ - -/* SysTick Calibration Register Definitions */ -#define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ -#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ - -#define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ -#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ - -#define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ -#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ - -/*@} end of group CMSIS_SysTick */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_ITM Instrumentation Trace Macrocell (ITM) - \brief Type definitions for the Instrumentation Trace Macrocell (ITM) - @{ - */ - -/** - \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). - */ -typedef struct -{ - __OM union - { - __OM uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ - __OM uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ - __OM uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ - } PORT [32U]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ - uint32_t RESERVED0[864U]; - __IOM uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ - uint32_t RESERVED1[15U]; - __IOM uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ - uint32_t RESERVED2[15U]; - __IOM uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ - uint32_t RESERVED3[32U]; - uint32_t RESERVED4[43U]; - __OM uint32_t LAR; /*!< Offset: 0xFB0 ( /W) ITM Lock Access Register */ - __IM uint32_t LSR; /*!< Offset: 0xFB4 (R/ ) ITM Lock Status Register */ - uint32_t RESERVED5[1U]; - __IM uint32_t DEVARCH; /*!< Offset: 0xFBC (R/ ) ITM Device Architecture Register */ - uint32_t RESERVED6[4U]; - __IM uint32_t PID4; /*!< Offset: 0xFD0 (R/ ) ITM Peripheral Identification Register #4 */ - __IM uint32_t PID5; /*!< Offset: 0xFD4 (R/ ) ITM Peripheral Identification Register #5 */ - __IM uint32_t PID6; /*!< Offset: 0xFD8 (R/ ) ITM Peripheral Identification Register #6 */ - __IM uint32_t PID7; /*!< Offset: 0xFDC (R/ ) ITM Peripheral Identification Register #7 */ - __IM uint32_t PID0; /*!< Offset: 0xFE0 (R/ ) ITM Peripheral Identification Register #0 */ - __IM uint32_t PID1; /*!< Offset: 0xFE4 (R/ ) ITM Peripheral Identification Register #1 */ - __IM uint32_t PID2; /*!< Offset: 0xFE8 (R/ ) ITM Peripheral Identification Register #2 */ - __IM uint32_t PID3; /*!< Offset: 0xFEC (R/ ) ITM Peripheral Identification Register #3 */ - __IM uint32_t CID0; /*!< Offset: 0xFF0 (R/ ) ITM Component Identification Register #0 */ - __IM uint32_t CID1; /*!< Offset: 0xFF4 (R/ ) ITM Component Identification Register #1 */ - __IM uint32_t CID2; /*!< Offset: 0xFF8 (R/ ) ITM Component Identification Register #2 */ - __IM uint32_t CID3; /*!< Offset: 0xFFC (R/ ) ITM Component Identification Register #3 */ -} ITM_Type; - -/* ITM Stimulus Port Register Definitions */ -#define ITM_STIM_DISABLED_Pos 1U /*!< ITM STIM: DISABLED Position */ -#define ITM_STIM_DISABLED_Msk (0x1UL << ITM_STIM_DISABLED_Pos) /*!< ITM STIM: DISABLED Mask */ - -#define ITM_STIM_FIFOREADY_Pos 0U /*!< ITM STIM: FIFOREADY Position */ -#define ITM_STIM_FIFOREADY_Msk (0x1UL /*<< ITM_STIM_FIFOREADY_Pos*/) /*!< ITM STIM: FIFOREADY Mask */ - -/* ITM Trace Privilege Register Definitions */ -#define ITM_TPR_PRIVMASK_Pos 0U /*!< ITM TPR: PRIVMASK Position */ -#define ITM_TPR_PRIVMASK_Msk (0xFFFFFFFFUL /*<< ITM_TPR_PRIVMASK_Pos*/) /*!< ITM TPR: PRIVMASK Mask */ - -/* ITM Trace Control Register Definitions */ -#define ITM_TCR_BUSY_Pos 23U /*!< ITM TCR: BUSY Position */ -#define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ - -#define ITM_TCR_TRACEBUSID_Pos 16U /*!< ITM TCR: ATBID Position */ -#define ITM_TCR_TRACEBUSID_Msk (0x7FUL << ITM_TCR_TRACEBUSID_Pos) /*!< ITM TCR: ATBID Mask */ - -#define ITM_TCR_GTSFREQ_Pos 10U /*!< ITM TCR: Global timestamp frequency Position */ -#define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ - -#define ITM_TCR_TSPRESCALE_Pos 8U /*!< ITM TCR: TSPRESCALE Position */ -#define ITM_TCR_TSPRESCALE_Msk (3UL << ITM_TCR_TSPRESCALE_Pos) /*!< ITM TCR: TSPRESCALE Mask */ - -#define ITM_TCR_STALLENA_Pos 5U /*!< ITM TCR: STALLENA Position */ -#define ITM_TCR_STALLENA_Msk (1UL << ITM_TCR_STALLENA_Pos) /*!< ITM TCR: STALLENA Mask */ - -#define ITM_TCR_SWOENA_Pos 4U /*!< ITM TCR: SWOENA Position */ -#define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ - -#define ITM_TCR_DWTENA_Pos 3U /*!< ITM TCR: DWTENA Position */ -#define ITM_TCR_DWTENA_Msk (1UL << ITM_TCR_DWTENA_Pos) /*!< ITM TCR: DWTENA Mask */ - -#define ITM_TCR_SYNCENA_Pos 2U /*!< ITM TCR: SYNCENA Position */ -#define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ - -#define ITM_TCR_TSENA_Pos 1U /*!< ITM TCR: TSENA Position */ -#define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ - -#define ITM_TCR_ITMENA_Pos 0U /*!< ITM TCR: ITM Enable bit Position */ -#define ITM_TCR_ITMENA_Msk (1UL /*<< ITM_TCR_ITMENA_Pos*/) /*!< ITM TCR: ITM Enable bit Mask */ - -/* ITM Lock Status Register Definitions */ -#define ITM_LSR_ByteAcc_Pos 2U /*!< ITM LSR: ByteAcc Position */ -#define ITM_LSR_ByteAcc_Msk (1UL << ITM_LSR_ByteAcc_Pos) /*!< ITM LSR: ByteAcc Mask */ - -#define ITM_LSR_Access_Pos 1U /*!< ITM LSR: Access Position */ -#define ITM_LSR_Access_Msk (1UL << ITM_LSR_Access_Pos) /*!< ITM LSR: Access Mask */ - -#define ITM_LSR_Present_Pos 0U /*!< ITM LSR: Present Position */ -#define ITM_LSR_Present_Msk (1UL /*<< ITM_LSR_Present_Pos*/) /*!< ITM LSR: Present Mask */ - -/*@}*/ /* end of group CMSIS_ITM */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) - \brief Type definitions for the Data Watchpoint and Trace (DWT) - @{ - */ - -/** - \brief Structure type to access the Data Watchpoint and Trace Register (DWT). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ - __IOM uint32_t CYCCNT; /*!< Offset: 0x004 (R/W) Cycle Count Register */ - __IOM uint32_t CPICNT; /*!< Offset: 0x008 (R/W) CPI Count Register */ - __IOM uint32_t EXCCNT; /*!< Offset: 0x00C (R/W) Exception Overhead Count Register */ - __IOM uint32_t SLEEPCNT; /*!< Offset: 0x010 (R/W) Sleep Count Register */ - __IOM uint32_t LSUCNT; /*!< Offset: 0x014 (R/W) LSU Count Register */ - __IOM uint32_t FOLDCNT; /*!< Offset: 0x018 (R/W) Folded-instruction Count Register */ - __IM uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ - __IOM uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ - uint32_t RESERVED1[1U]; - __IOM uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ - uint32_t RESERVED2[1U]; - __IOM uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ - uint32_t RESERVED3[1U]; - __IOM uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ - uint32_t RESERVED4[1U]; - __IOM uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ - uint32_t RESERVED5[1U]; - __IOM uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ - uint32_t RESERVED6[1U]; - __IOM uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ - uint32_t RESERVED7[1U]; - __IOM uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ - uint32_t RESERVED8[1U]; - __IOM uint32_t COMP4; /*!< Offset: 0x060 (R/W) Comparator Register 4 */ - uint32_t RESERVED9[1U]; - __IOM uint32_t FUNCTION4; /*!< Offset: 0x068 (R/W) Function Register 4 */ - uint32_t RESERVED10[1U]; - __IOM uint32_t COMP5; /*!< Offset: 0x070 (R/W) Comparator Register 5 */ - uint32_t RESERVED11[1U]; - __IOM uint32_t FUNCTION5; /*!< Offset: 0x078 (R/W) Function Register 5 */ - uint32_t RESERVED12[1U]; - __IOM uint32_t COMP6; /*!< Offset: 0x080 (R/W) Comparator Register 6 */ - uint32_t RESERVED13[1U]; - __IOM uint32_t FUNCTION6; /*!< Offset: 0x088 (R/W) Function Register 6 */ - uint32_t RESERVED14[1U]; - __IOM uint32_t COMP7; /*!< Offset: 0x090 (R/W) Comparator Register 7 */ - uint32_t RESERVED15[1U]; - __IOM uint32_t FUNCTION7; /*!< Offset: 0x098 (R/W) Function Register 7 */ - uint32_t RESERVED16[1U]; - __IOM uint32_t COMP8; /*!< Offset: 0x0A0 (R/W) Comparator Register 8 */ - uint32_t RESERVED17[1U]; - __IOM uint32_t FUNCTION8; /*!< Offset: 0x0A8 (R/W) Function Register 8 */ - uint32_t RESERVED18[1U]; - __IOM uint32_t COMP9; /*!< Offset: 0x0B0 (R/W) Comparator Register 9 */ - uint32_t RESERVED19[1U]; - __IOM uint32_t FUNCTION9; /*!< Offset: 0x0B8 (R/W) Function Register 9 */ - uint32_t RESERVED20[1U]; - __IOM uint32_t COMP10; /*!< Offset: 0x0C0 (R/W) Comparator Register 10 */ - uint32_t RESERVED21[1U]; - __IOM uint32_t FUNCTION10; /*!< Offset: 0x0C8 (R/W) Function Register 10 */ - uint32_t RESERVED22[1U]; - __IOM uint32_t COMP11; /*!< Offset: 0x0D0 (R/W) Comparator Register 11 */ - uint32_t RESERVED23[1U]; - __IOM uint32_t FUNCTION11; /*!< Offset: 0x0D8 (R/W) Function Register 11 */ - uint32_t RESERVED24[1U]; - __IOM uint32_t COMP12; /*!< Offset: 0x0E0 (R/W) Comparator Register 12 */ - uint32_t RESERVED25[1U]; - __IOM uint32_t FUNCTION12; /*!< Offset: 0x0E8 (R/W) Function Register 12 */ - uint32_t RESERVED26[1U]; - __IOM uint32_t COMP13; /*!< Offset: 0x0F0 (R/W) Comparator Register 13 */ - uint32_t RESERVED27[1U]; - __IOM uint32_t FUNCTION13; /*!< Offset: 0x0F8 (R/W) Function Register 13 */ - uint32_t RESERVED28[1U]; - __IOM uint32_t COMP14; /*!< Offset: 0x100 (R/W) Comparator Register 14 */ - uint32_t RESERVED29[1U]; - __IOM uint32_t FUNCTION14; /*!< Offset: 0x108 (R/W) Function Register 14 */ - uint32_t RESERVED30[1U]; - __IOM uint32_t COMP15; /*!< Offset: 0x110 (R/W) Comparator Register 15 */ - uint32_t RESERVED31[1U]; - __IOM uint32_t FUNCTION15; /*!< Offset: 0x118 (R/W) Function Register 15 */ - uint32_t RESERVED32[934U]; - __IM uint32_t LSR; /*!< Offset: 0xFB4 (R ) Lock Status Register */ - uint32_t RESERVED33[1U]; - __IM uint32_t DEVARCH; /*!< Offset: 0xFBC (R/ ) Device Architecture Register */ -} DWT_Type; - -/* DWT Control Register Definitions */ -#define DWT_CTRL_NUMCOMP_Pos 28U /*!< DWT CTRL: NUMCOMP Position */ -#define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ - -#define DWT_CTRL_NOTRCPKT_Pos 27U /*!< DWT CTRL: NOTRCPKT Position */ -#define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ - -#define DWT_CTRL_NOEXTTRIG_Pos 26U /*!< DWT CTRL: NOEXTTRIG Position */ -#define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ - -#define DWT_CTRL_NOCYCCNT_Pos 25U /*!< DWT CTRL: NOCYCCNT Position */ -#define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ - -#define DWT_CTRL_NOPRFCNT_Pos 24U /*!< DWT CTRL: NOPRFCNT Position */ -#define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ - -#define DWT_CTRL_CYCDISS_Pos 23U /*!< DWT CTRL: CYCDISS Position */ -#define DWT_CTRL_CYCDISS_Msk (0x1UL << DWT_CTRL_CYCDISS_Pos) /*!< DWT CTRL: CYCDISS Mask */ - -#define DWT_CTRL_CYCEVTENA_Pos 22U /*!< DWT CTRL: CYCEVTENA Position */ -#define DWT_CTRL_CYCEVTENA_Msk (0x1UL << DWT_CTRL_CYCEVTENA_Pos) /*!< DWT CTRL: CYCEVTENA Mask */ - -#define DWT_CTRL_FOLDEVTENA_Pos 21U /*!< DWT CTRL: FOLDEVTENA Position */ -#define DWT_CTRL_FOLDEVTENA_Msk (0x1UL << DWT_CTRL_FOLDEVTENA_Pos) /*!< DWT CTRL: FOLDEVTENA Mask */ - -#define DWT_CTRL_LSUEVTENA_Pos 20U /*!< DWT CTRL: LSUEVTENA Position */ -#define DWT_CTRL_LSUEVTENA_Msk (0x1UL << DWT_CTRL_LSUEVTENA_Pos) /*!< DWT CTRL: LSUEVTENA Mask */ - -#define DWT_CTRL_SLEEPEVTENA_Pos 19U /*!< DWT CTRL: SLEEPEVTENA Position */ -#define DWT_CTRL_SLEEPEVTENA_Msk (0x1UL << DWT_CTRL_SLEEPEVTENA_Pos) /*!< DWT CTRL: SLEEPEVTENA Mask */ - -#define DWT_CTRL_EXCEVTENA_Pos 18U /*!< DWT CTRL: EXCEVTENA Position */ -#define DWT_CTRL_EXCEVTENA_Msk (0x1UL << DWT_CTRL_EXCEVTENA_Pos) /*!< DWT CTRL: EXCEVTENA Mask */ - -#define DWT_CTRL_CPIEVTENA_Pos 17U /*!< DWT CTRL: CPIEVTENA Position */ -#define DWT_CTRL_CPIEVTENA_Msk (0x1UL << DWT_CTRL_CPIEVTENA_Pos) /*!< DWT CTRL: CPIEVTENA Mask */ - -#define DWT_CTRL_EXCTRCENA_Pos 16U /*!< DWT CTRL: EXCTRCENA Position */ -#define DWT_CTRL_EXCTRCENA_Msk (0x1UL << DWT_CTRL_EXCTRCENA_Pos) /*!< DWT CTRL: EXCTRCENA Mask */ - -#define DWT_CTRL_PCSAMPLENA_Pos 12U /*!< DWT CTRL: PCSAMPLENA Position */ -#define DWT_CTRL_PCSAMPLENA_Msk (0x1UL << DWT_CTRL_PCSAMPLENA_Pos) /*!< DWT CTRL: PCSAMPLENA Mask */ - -#define DWT_CTRL_SYNCTAP_Pos 10U /*!< DWT CTRL: SYNCTAP Position */ -#define DWT_CTRL_SYNCTAP_Msk (0x3UL << DWT_CTRL_SYNCTAP_Pos) /*!< DWT CTRL: SYNCTAP Mask */ - -#define DWT_CTRL_CYCTAP_Pos 9U /*!< DWT CTRL: CYCTAP Position */ -#define DWT_CTRL_CYCTAP_Msk (0x1UL << DWT_CTRL_CYCTAP_Pos) /*!< DWT CTRL: CYCTAP Mask */ - -#define DWT_CTRL_POSTINIT_Pos 5U /*!< DWT CTRL: POSTINIT Position */ -#define DWT_CTRL_POSTINIT_Msk (0xFUL << DWT_CTRL_POSTINIT_Pos) /*!< DWT CTRL: POSTINIT Mask */ - -#define DWT_CTRL_POSTPRESET_Pos 1U /*!< DWT CTRL: POSTPRESET Position */ -#define DWT_CTRL_POSTPRESET_Msk (0xFUL << DWT_CTRL_POSTPRESET_Pos) /*!< DWT CTRL: POSTPRESET Mask */ - -#define DWT_CTRL_CYCCNTENA_Pos 0U /*!< DWT CTRL: CYCCNTENA Position */ -#define DWT_CTRL_CYCCNTENA_Msk (0x1UL /*<< DWT_CTRL_CYCCNTENA_Pos*/) /*!< DWT CTRL: CYCCNTENA Mask */ - -/* DWT CPI Count Register Definitions */ -#define DWT_CPICNT_CPICNT_Pos 0U /*!< DWT CPICNT: CPICNT Position */ -#define DWT_CPICNT_CPICNT_Msk (0xFFUL /*<< DWT_CPICNT_CPICNT_Pos*/) /*!< DWT CPICNT: CPICNT Mask */ - -/* DWT Exception Overhead Count Register Definitions */ -#define DWT_EXCCNT_EXCCNT_Pos 0U /*!< DWT EXCCNT: EXCCNT Position */ -#define DWT_EXCCNT_EXCCNT_Msk (0xFFUL /*<< DWT_EXCCNT_EXCCNT_Pos*/) /*!< DWT EXCCNT: EXCCNT Mask */ - -/* DWT Sleep Count Register Definitions */ -#define DWT_SLEEPCNT_SLEEPCNT_Pos 0U /*!< DWT SLEEPCNT: SLEEPCNT Position */ -#define DWT_SLEEPCNT_SLEEPCNT_Msk (0xFFUL /*<< DWT_SLEEPCNT_SLEEPCNT_Pos*/) /*!< DWT SLEEPCNT: SLEEPCNT Mask */ - -/* DWT LSU Count Register Definitions */ -#define DWT_LSUCNT_LSUCNT_Pos 0U /*!< DWT LSUCNT: LSUCNT Position */ -#define DWT_LSUCNT_LSUCNT_Msk (0xFFUL /*<< DWT_LSUCNT_LSUCNT_Pos*/) /*!< DWT LSUCNT: LSUCNT Mask */ - -/* DWT Folded-instruction Count Register Definitions */ -#define DWT_FOLDCNT_FOLDCNT_Pos 0U /*!< DWT FOLDCNT: FOLDCNT Position */ -#define DWT_FOLDCNT_FOLDCNT_Msk (0xFFUL /*<< DWT_FOLDCNT_FOLDCNT_Pos*/) /*!< DWT FOLDCNT: FOLDCNT Mask */ - -/* DWT Comparator Function Register Definitions */ -#define DWT_FUNCTION_ID_Pos 27U /*!< DWT FUNCTION: ID Position */ -#define DWT_FUNCTION_ID_Msk (0x1FUL << DWT_FUNCTION_ID_Pos) /*!< DWT FUNCTION: ID Mask */ - -#define DWT_FUNCTION_MATCHED_Pos 24U /*!< DWT FUNCTION: MATCHED Position */ -#define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ - -#define DWT_FUNCTION_DATAVSIZE_Pos 10U /*!< DWT FUNCTION: DATAVSIZE Position */ -#define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ - -#define DWT_FUNCTION_ACTION_Pos 4U /*!< DWT FUNCTION: ACTION Position */ -#define DWT_FUNCTION_ACTION_Msk (0x1UL << DWT_FUNCTION_ACTION_Pos) /*!< DWT FUNCTION: ACTION Mask */ - -#define DWT_FUNCTION_MATCH_Pos 0U /*!< DWT FUNCTION: MATCH Position */ -#define DWT_FUNCTION_MATCH_Msk (0xFUL /*<< DWT_FUNCTION_MATCH_Pos*/) /*!< DWT FUNCTION: MATCH Mask */ - -/*@}*/ /* end of group CMSIS_DWT */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_TPI Trace Port Interface (TPI) - \brief Type definitions for the Trace Port Interface (TPI) - @{ - */ - -/** - \brief Structure type to access the Trace Port Interface Register (TPI). - */ -typedef struct -{ - __IM uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Size Register */ - __IOM uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Size Register */ - uint32_t RESERVED0[2U]; - __IOM uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ - uint32_t RESERVED1[55U]; - __IOM uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ - uint32_t RESERVED2[131U]; - __IM uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ - __IOM uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ - __IOM uint32_t PSCR; /*!< Offset: 0x308 (R/W) Periodic Synchronization Control Register */ - uint32_t RESERVED3[759U]; - __IM uint32_t TRIGGER; /*!< Offset: 0xEE8 (R/ ) TRIGGER Register */ - __IM uint32_t ITFTTD0; /*!< Offset: 0xEEC (R/ ) Integration Test FIFO Test Data 0 Register */ - __IOM uint32_t ITATBCTR2; /*!< Offset: 0xEF0 (R/W) Integration Test ATB Control Register 2 */ - uint32_t RESERVED4[1U]; - __IM uint32_t ITATBCTR0; /*!< Offset: 0xEF8 (R/ ) Integration Test ATB Control Register 0 */ - __IM uint32_t ITFTTD1; /*!< Offset: 0xEFC (R/ ) Integration Test FIFO Test Data 1 Register */ - __IOM uint32_t ITCTRL; /*!< Offset: 0xF00 (R/W) Integration Mode Control */ - uint32_t RESERVED5[39U]; - __IOM uint32_t CLAIMSET; /*!< Offset: 0xFA0 (R/W) Claim tag set */ - __IOM uint32_t CLAIMCLR; /*!< Offset: 0xFA4 (R/W) Claim tag clear */ - uint32_t RESERVED7[8U]; - __IM uint32_t DEVID; /*!< Offset: 0xFC8 (R/ ) Device Configuration Register */ - __IM uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) Device Type Identifier Register */ -} TPI_Type; - -/* TPI Asynchronous Clock Prescaler Register Definitions */ -#define TPI_ACPR_PRESCALER_Pos 0U /*!< TPI ACPR: PRESCALER Position */ -#define TPI_ACPR_PRESCALER_Msk (0x1FFFUL /*<< TPI_ACPR_PRESCALER_Pos*/) /*!< TPI ACPR: PRESCALER Mask */ - -/* TPI Selected Pin Protocol Register Definitions */ -#define TPI_SPPR_TXMODE_Pos 0U /*!< TPI SPPR: TXMODE Position */ -#define TPI_SPPR_TXMODE_Msk (0x3UL /*<< TPI_SPPR_TXMODE_Pos*/) /*!< TPI SPPR: TXMODE Mask */ - -/* TPI Formatter and Flush Status Register Definitions */ -#define TPI_FFSR_FtNonStop_Pos 3U /*!< TPI FFSR: FtNonStop Position */ -#define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ - -#define TPI_FFSR_TCPresent_Pos 2U /*!< TPI FFSR: TCPresent Position */ -#define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ - -#define TPI_FFSR_FtStopped_Pos 1U /*!< TPI FFSR: FtStopped Position */ -#define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ - -#define TPI_FFSR_FlInProg_Pos 0U /*!< TPI FFSR: FlInProg Position */ -#define TPI_FFSR_FlInProg_Msk (0x1UL /*<< TPI_FFSR_FlInProg_Pos*/) /*!< TPI FFSR: FlInProg Mask */ - -/* TPI Formatter and Flush Control Register Definitions */ -#define TPI_FFCR_TrigIn_Pos 8U /*!< TPI FFCR: TrigIn Position */ -#define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ - -#define TPI_FFCR_FOnMan_Pos 6U /*!< TPI FFCR: FOnMan Position */ -#define TPI_FFCR_FOnMan_Msk (0x1UL << TPI_FFCR_FOnMan_Pos) /*!< TPI FFCR: FOnMan Mask */ - -#define TPI_FFCR_EnFCont_Pos 1U /*!< TPI FFCR: EnFCont Position */ -#define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ - -/* TPI TRIGGER Register Definitions */ -#define TPI_TRIGGER_TRIGGER_Pos 0U /*!< TPI TRIGGER: TRIGGER Position */ -#define TPI_TRIGGER_TRIGGER_Msk (0x1UL /*<< TPI_TRIGGER_TRIGGER_Pos*/) /*!< TPI TRIGGER: TRIGGER Mask */ - -/* TPI Integration Test FIFO Test Data 0 Register Definitions */ -#define TPI_ITFTTD0_ATB_IF2_ATVALID_Pos 29U /*!< TPI ITFTTD0: ATB Interface 2 ATVALIDPosition */ -#define TPI_ITFTTD0_ATB_IF2_ATVALID_Msk (0x3UL << TPI_ITFTTD0_ATB_IF2_ATVALID_Pos) /*!< TPI ITFTTD0: ATB Interface 2 ATVALID Mask */ - -#define TPI_ITFTTD0_ATB_IF2_bytecount_Pos 27U /*!< TPI ITFTTD0: ATB Interface 2 byte count Position */ -#define TPI_ITFTTD0_ATB_IF2_bytecount_Msk (0x3UL << TPI_ITFTTD0_ATB_IF2_bytecount_Pos) /*!< TPI ITFTTD0: ATB Interface 2 byte count Mask */ - -#define TPI_ITFTTD0_ATB_IF1_ATVALID_Pos 26U /*!< TPI ITFTTD0: ATB Interface 1 ATVALID Position */ -#define TPI_ITFTTD0_ATB_IF1_ATVALID_Msk (0x3UL << TPI_ITFTTD0_ATB_IF1_ATVALID_Pos) /*!< TPI ITFTTD0: ATB Interface 1 ATVALID Mask */ - -#define TPI_ITFTTD0_ATB_IF1_bytecount_Pos 24U /*!< TPI ITFTTD0: ATB Interface 1 byte count Position */ -#define TPI_ITFTTD0_ATB_IF1_bytecount_Msk (0x3UL << TPI_ITFTTD0_ATB_IF1_bytecount_Pos) /*!< TPI ITFTTD0: ATB Interface 1 byte countt Mask */ - -#define TPI_ITFTTD0_ATB_IF1_data2_Pos 16U /*!< TPI ITFTTD0: ATB Interface 1 data2 Position */ -#define TPI_ITFTTD0_ATB_IF1_data2_Msk (0xFFUL << TPI_ITFTTD0_ATB_IF1_data1_Pos) /*!< TPI ITFTTD0: ATB Interface 1 data2 Mask */ - -#define TPI_ITFTTD0_ATB_IF1_data1_Pos 8U /*!< TPI ITFTTD0: ATB Interface 1 data1 Position */ -#define TPI_ITFTTD0_ATB_IF1_data1_Msk (0xFFUL << TPI_ITFTTD0_ATB_IF1_data1_Pos) /*!< TPI ITFTTD0: ATB Interface 1 data1 Mask */ - -#define TPI_ITFTTD0_ATB_IF1_data0_Pos 0U /*!< TPI ITFTTD0: ATB Interface 1 data0 Position */ -#define TPI_ITFTTD0_ATB_IF1_data0_Msk (0xFFUL /*<< TPI_ITFTTD0_ATB_IF1_data0_Pos*/) /*!< TPI ITFTTD0: ATB Interface 1 data0 Mask */ - -/* TPI Integration Test ATB Control Register 2 Register Definitions */ -#define TPI_ITATBCTR2_AFVALID2S_Pos 1U /*!< TPI ITATBCTR2: AFVALID2S Position */ -#define TPI_ITATBCTR2_AFVALID2S_Msk (0x1UL << TPI_ITATBCTR2_AFVALID2S_Pos) /*!< TPI ITATBCTR2: AFVALID2SS Mask */ - -#define TPI_ITATBCTR2_AFVALID1S_Pos 1U /*!< TPI ITATBCTR2: AFVALID1S Position */ -#define TPI_ITATBCTR2_AFVALID1S_Msk (0x1UL << TPI_ITATBCTR2_AFVALID1S_Pos) /*!< TPI ITATBCTR2: AFVALID1SS Mask */ - -#define TPI_ITATBCTR2_ATREADY2S_Pos 0U /*!< TPI ITATBCTR2: ATREADY2S Position */ -#define TPI_ITATBCTR2_ATREADY2S_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY2S_Pos*/) /*!< TPI ITATBCTR2: ATREADY2S Mask */ - -#define TPI_ITATBCTR2_ATREADY1S_Pos 0U /*!< TPI ITATBCTR2: ATREADY1S Position */ -#define TPI_ITATBCTR2_ATREADY1S_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY1S_Pos*/) /*!< TPI ITATBCTR2: ATREADY1S Mask */ - -/* TPI Integration Test FIFO Test Data 1 Register Definitions */ -#define TPI_ITFTTD1_ATB_IF2_ATVALID_Pos 29U /*!< TPI ITFTTD1: ATB Interface 2 ATVALID Position */ -#define TPI_ITFTTD1_ATB_IF2_ATVALID_Msk (0x3UL << TPI_ITFTTD1_ATB_IF2_ATVALID_Pos) /*!< TPI ITFTTD1: ATB Interface 2 ATVALID Mask */ - -#define TPI_ITFTTD1_ATB_IF2_bytecount_Pos 27U /*!< TPI ITFTTD1: ATB Interface 2 byte count Position */ -#define TPI_ITFTTD1_ATB_IF2_bytecount_Msk (0x3UL << TPI_ITFTTD1_ATB_IF2_bytecount_Pos) /*!< TPI ITFTTD1: ATB Interface 2 byte count Mask */ - -#define TPI_ITFTTD1_ATB_IF1_ATVALID_Pos 26U /*!< TPI ITFTTD1: ATB Interface 1 ATVALID Position */ -#define TPI_ITFTTD1_ATB_IF1_ATVALID_Msk (0x3UL << TPI_ITFTTD1_ATB_IF1_ATVALID_Pos) /*!< TPI ITFTTD1: ATB Interface 1 ATVALID Mask */ - -#define TPI_ITFTTD1_ATB_IF1_bytecount_Pos 24U /*!< TPI ITFTTD1: ATB Interface 1 byte count Position */ -#define TPI_ITFTTD1_ATB_IF1_bytecount_Msk (0x3UL << TPI_ITFTTD1_ATB_IF1_bytecount_Pos) /*!< TPI ITFTTD1: ATB Interface 1 byte countt Mask */ - -#define TPI_ITFTTD1_ATB_IF2_data2_Pos 16U /*!< TPI ITFTTD1: ATB Interface 2 data2 Position */ -#define TPI_ITFTTD1_ATB_IF2_data2_Msk (0xFFUL << TPI_ITFTTD1_ATB_IF2_data1_Pos) /*!< TPI ITFTTD1: ATB Interface 2 data2 Mask */ - -#define TPI_ITFTTD1_ATB_IF2_data1_Pos 8U /*!< TPI ITFTTD1: ATB Interface 2 data1 Position */ -#define TPI_ITFTTD1_ATB_IF2_data1_Msk (0xFFUL << TPI_ITFTTD1_ATB_IF2_data1_Pos) /*!< TPI ITFTTD1: ATB Interface 2 data1 Mask */ - -#define TPI_ITFTTD1_ATB_IF2_data0_Pos 0U /*!< TPI ITFTTD1: ATB Interface 2 data0 Position */ -#define TPI_ITFTTD1_ATB_IF2_data0_Msk (0xFFUL /*<< TPI_ITFTTD1_ATB_IF2_data0_Pos*/) /*!< TPI ITFTTD1: ATB Interface 2 data0 Mask */ - -/* TPI Integration Test ATB Control Register 0 Definitions */ -#define TPI_ITATBCTR0_AFVALID2S_Pos 1U /*!< TPI ITATBCTR0: AFVALID2S Position */ -#define TPI_ITATBCTR0_AFVALID2S_Msk (0x1UL << TPI_ITATBCTR0_AFVALID2S_Pos) /*!< TPI ITATBCTR0: AFVALID2SS Mask */ - -#define TPI_ITATBCTR0_AFVALID1S_Pos 1U /*!< TPI ITATBCTR0: AFVALID1S Position */ -#define TPI_ITATBCTR0_AFVALID1S_Msk (0x1UL << TPI_ITATBCTR0_AFVALID1S_Pos) /*!< TPI ITATBCTR0: AFVALID1SS Mask */ - -#define TPI_ITATBCTR0_ATREADY2S_Pos 0U /*!< TPI ITATBCTR0: ATREADY2S Position */ -#define TPI_ITATBCTR0_ATREADY2S_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY2S_Pos*/) /*!< TPI ITATBCTR0: ATREADY2S Mask */ - -#define TPI_ITATBCTR0_ATREADY1S_Pos 0U /*!< TPI ITATBCTR0: ATREADY1S Position */ -#define TPI_ITATBCTR0_ATREADY1S_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY1S_Pos*/) /*!< TPI ITATBCTR0: ATREADY1S Mask */ - -/* TPI Integration Mode Control Register Definitions */ -#define TPI_ITCTRL_Mode_Pos 0U /*!< TPI ITCTRL: Mode Position */ -#define TPI_ITCTRL_Mode_Msk (0x3UL /*<< TPI_ITCTRL_Mode_Pos*/) /*!< TPI ITCTRL: Mode Mask */ - -/* TPI DEVID Register Definitions */ -#define TPI_DEVID_NRZVALID_Pos 11U /*!< TPI DEVID: NRZVALID Position */ -#define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ - -#define TPI_DEVID_MANCVALID_Pos 10U /*!< TPI DEVID: MANCVALID Position */ -#define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ - -#define TPI_DEVID_PTINVALID_Pos 9U /*!< TPI DEVID: PTINVALID Position */ -#define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ - -#define TPI_DEVID_FIFOSZ_Pos 6U /*!< TPI DEVID: FIFOSZ Position */ -#define TPI_DEVID_FIFOSZ_Msk (0x7UL << TPI_DEVID_FIFOSZ_Pos) /*!< TPI DEVID: FIFOSZ Mask */ - -#define TPI_DEVID_NrTraceInput_Pos 0U /*!< TPI DEVID: NrTraceInput Position */ -#define TPI_DEVID_NrTraceInput_Msk (0x3FUL /*<< TPI_DEVID_NrTraceInput_Pos*/) /*!< TPI DEVID: NrTraceInput Mask */ - -/* TPI DEVTYPE Register Definitions */ -#define TPI_DEVTYPE_SubType_Pos 4U /*!< TPI DEVTYPE: SubType Position */ -#define TPI_DEVTYPE_SubType_Msk (0xFUL /*<< TPI_DEVTYPE_SubType_Pos*/) /*!< TPI DEVTYPE: SubType Mask */ - -#define TPI_DEVTYPE_MajorType_Pos 0U /*!< TPI DEVTYPE: MajorType Position */ -#define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ - -/*@}*/ /* end of group CMSIS_TPI */ - - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_MPU Memory Protection Unit (MPU) - \brief Type definitions for the Memory Protection Unit (MPU) - @{ - */ - -/** - \brief Structure type to access the Memory Protection Unit (MPU). - */ -typedef struct -{ - __IM uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ - __IOM uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ - __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region Number Register */ - __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ - __IOM uint32_t RLAR; /*!< Offset: 0x010 (R/W) MPU Region Limit Address Register */ - __IOM uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Region Base Address Register Alias 1 */ - __IOM uint32_t RLAR_A1; /*!< Offset: 0x018 (R/W) MPU Region Limit Address Register Alias 1 */ - __IOM uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Region Base Address Register Alias 2 */ - __IOM uint32_t RLAR_A2; /*!< Offset: 0x020 (R/W) MPU Region Limit Address Register Alias 2 */ - __IOM uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Region Base Address Register Alias 3 */ - __IOM uint32_t RLAR_A3; /*!< Offset: 0x028 (R/W) MPU Region Limit Address Register Alias 3 */ - uint32_t RESERVED0[1]; - union { - __IOM uint32_t MAIR[2]; - struct { - __IOM uint32_t MAIR0; /*!< Offset: 0x030 (R/W) MPU Memory Attribute Indirection Register 0 */ - __IOM uint32_t MAIR1; /*!< Offset: 0x034 (R/W) MPU Memory Attribute Indirection Register 1 */ - }; - }; -} MPU_Type; - -#define MPU_TYPE_RALIASES 4U - -/* MPU Type Register Definitions */ -#define MPU_TYPE_IREGION_Pos 16U /*!< MPU TYPE: IREGION Position */ -#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ - -#define MPU_TYPE_DREGION_Pos 8U /*!< MPU TYPE: DREGION Position */ -#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ - -#define MPU_TYPE_SEPARATE_Pos 0U /*!< MPU TYPE: SEPARATE Position */ -#define MPU_TYPE_SEPARATE_Msk (1UL /*<< MPU_TYPE_SEPARATE_Pos*/) /*!< MPU TYPE: SEPARATE Mask */ - -/* MPU Control Register Definitions */ -#define MPU_CTRL_PRIVDEFENA_Pos 2U /*!< MPU CTRL: PRIVDEFENA Position */ -#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ - -#define MPU_CTRL_HFNMIENA_Pos 1U /*!< MPU CTRL: HFNMIENA Position */ -#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ - -#define MPU_CTRL_ENABLE_Pos 0U /*!< MPU CTRL: ENABLE Position */ -#define MPU_CTRL_ENABLE_Msk (1UL /*<< MPU_CTRL_ENABLE_Pos*/) /*!< MPU CTRL: ENABLE Mask */ - -/* MPU Region Number Register Definitions */ -#define MPU_RNR_REGION_Pos 0U /*!< MPU RNR: REGION Position */ -#define MPU_RNR_REGION_Msk (0xFFUL /*<< MPU_RNR_REGION_Pos*/) /*!< MPU RNR: REGION Mask */ - -/* MPU Region Base Address Register Definitions */ -#define MPU_RBAR_BASE_Pos 5U /*!< MPU RBAR: BASE Position */ -#define MPU_RBAR_BASE_Msk (0x7FFFFFFUL << MPU_RBAR_BASE_Pos) /*!< MPU RBAR: BASE Mask */ - -#define MPU_RBAR_SH_Pos 3U /*!< MPU RBAR: SH Position */ -#define MPU_RBAR_SH_Msk (0x3UL << MPU_RBAR_SH_Pos) /*!< MPU RBAR: SH Mask */ - -#define MPU_RBAR_AP_Pos 1U /*!< MPU RBAR: AP Position */ -#define MPU_RBAR_AP_Msk (0x3UL << MPU_RBAR_AP_Pos) /*!< MPU RBAR: AP Mask */ - -#define MPU_RBAR_XN_Pos 0U /*!< MPU RBAR: XN Position */ -#define MPU_RBAR_XN_Msk (01UL /*<< MPU_RBAR_XN_Pos*/) /*!< MPU RBAR: XN Mask */ - -/* MPU Region Limit Address Register Definitions */ -#define MPU_RLAR_LIMIT_Pos 5U /*!< MPU RLAR: LIMIT Position */ -#define MPU_RLAR_LIMIT_Msk (0x7FFFFFFUL << MPU_RLAR_LIMIT_Pos) /*!< MPU RLAR: LIMIT Mask */ - -#define MPU_RLAR_AttrIndx_Pos 1U /*!< MPU RLAR: AttrIndx Position */ -#define MPU_RLAR_AttrIndx_Msk (0x7UL << MPU_RLAR_AttrIndx_Pos) /*!< MPU RLAR: AttrIndx Mask */ - -#define MPU_RLAR_EN_Pos 0U /*!< MPU RLAR: Region enable bit Position */ -#define MPU_RLAR_EN_Msk (1UL /*<< MPU_RLAR_EN_Pos*/) /*!< MPU RLAR: Region enable bit Disable Mask */ - -/* MPU Memory Attribute Indirection Register 0 Definitions */ -#define MPU_MAIR0_Attr3_Pos 24U /*!< MPU MAIR0: Attr3 Position */ -#define MPU_MAIR0_Attr3_Msk (0xFFUL << MPU_MAIR0_Attr3_Pos) /*!< MPU MAIR0: Attr3 Mask */ - -#define MPU_MAIR0_Attr2_Pos 16U /*!< MPU MAIR0: Attr2 Position */ -#define MPU_MAIR0_Attr2_Msk (0xFFUL << MPU_MAIR0_Attr2_Pos) /*!< MPU MAIR0: Attr2 Mask */ - -#define MPU_MAIR0_Attr1_Pos 8U /*!< MPU MAIR0: Attr1 Position */ -#define MPU_MAIR0_Attr1_Msk (0xFFUL << MPU_MAIR0_Attr1_Pos) /*!< MPU MAIR0: Attr1 Mask */ - -#define MPU_MAIR0_Attr0_Pos 0U /*!< MPU MAIR0: Attr0 Position */ -#define MPU_MAIR0_Attr0_Msk (0xFFUL /*<< MPU_MAIR0_Attr0_Pos*/) /*!< MPU MAIR0: Attr0 Mask */ - -/* MPU Memory Attribute Indirection Register 1 Definitions */ -#define MPU_MAIR1_Attr7_Pos 24U /*!< MPU MAIR1: Attr7 Position */ -#define MPU_MAIR1_Attr7_Msk (0xFFUL << MPU_MAIR1_Attr7_Pos) /*!< MPU MAIR1: Attr7 Mask */ - -#define MPU_MAIR1_Attr6_Pos 16U /*!< MPU MAIR1: Attr6 Position */ -#define MPU_MAIR1_Attr6_Msk (0xFFUL << MPU_MAIR1_Attr6_Pos) /*!< MPU MAIR1: Attr6 Mask */ - -#define MPU_MAIR1_Attr5_Pos 8U /*!< MPU MAIR1: Attr5 Position */ -#define MPU_MAIR1_Attr5_Msk (0xFFUL << MPU_MAIR1_Attr5_Pos) /*!< MPU MAIR1: Attr5 Mask */ - -#define MPU_MAIR1_Attr4_Pos 0U /*!< MPU MAIR1: Attr4 Position */ -#define MPU_MAIR1_Attr4_Msk (0xFFUL /*<< MPU_MAIR1_Attr4_Pos*/) /*!< MPU MAIR1: Attr4 Mask */ - -/*@} end of group CMSIS_MPU */ -#endif - - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SAU Security Attribution Unit (SAU) - \brief Type definitions for the Security Attribution Unit (SAU) - @{ - */ - -/** - \brief Structure type to access the Security Attribution Unit (SAU). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SAU Control Register */ - __IM uint32_t TYPE; /*!< Offset: 0x004 (R/ ) SAU Type Register */ -#if defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) - __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) SAU Region Number Register */ - __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) SAU Region Base Address Register */ - __IOM uint32_t RLAR; /*!< Offset: 0x010 (R/W) SAU Region Limit Address Register */ -#else - uint32_t RESERVED0[3]; -#endif - __IOM uint32_t SFSR; /*!< Offset: 0x014 (R/W) Secure Fault Status Register */ - __IOM uint32_t SFAR; /*!< Offset: 0x018 (R/W) Secure Fault Address Register */ -} SAU_Type; - -/* SAU Control Register Definitions */ -#define SAU_CTRL_ALLNS_Pos 1U /*!< SAU CTRL: ALLNS Position */ -#define SAU_CTRL_ALLNS_Msk (1UL << SAU_CTRL_ALLNS_Pos) /*!< SAU CTRL: ALLNS Mask */ - -#define SAU_CTRL_ENABLE_Pos 0U /*!< SAU CTRL: ENABLE Position */ -#define SAU_CTRL_ENABLE_Msk (1UL /*<< SAU_CTRL_ENABLE_Pos*/) /*!< SAU CTRL: ENABLE Mask */ - -/* SAU Type Register Definitions */ -#define SAU_TYPE_SREGION_Pos 0U /*!< SAU TYPE: SREGION Position */ -#define SAU_TYPE_SREGION_Msk (0xFFUL /*<< SAU_TYPE_SREGION_Pos*/) /*!< SAU TYPE: SREGION Mask */ - -#if defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) -/* SAU Region Number Register Definitions */ -#define SAU_RNR_REGION_Pos 0U /*!< SAU RNR: REGION Position */ -#define SAU_RNR_REGION_Msk (0xFFUL /*<< SAU_RNR_REGION_Pos*/) /*!< SAU RNR: REGION Mask */ - -/* SAU Region Base Address Register Definitions */ -#define SAU_RBAR_BADDR_Pos 5U /*!< SAU RBAR: BADDR Position */ -#define SAU_RBAR_BADDR_Msk (0x7FFFFFFUL << SAU_RBAR_BADDR_Pos) /*!< SAU RBAR: BADDR Mask */ - -/* SAU Region Limit Address Register Definitions */ -#define SAU_RLAR_LADDR_Pos 5U /*!< SAU RLAR: LADDR Position */ -#define SAU_RLAR_LADDR_Msk (0x7FFFFFFUL << SAU_RLAR_LADDR_Pos) /*!< SAU RLAR: LADDR Mask */ - -#define SAU_RLAR_NSC_Pos 1U /*!< SAU RLAR: NSC Position */ -#define SAU_RLAR_NSC_Msk (1UL << SAU_RLAR_NSC_Pos) /*!< SAU RLAR: NSC Mask */ - -#define SAU_RLAR_ENABLE_Pos 0U /*!< SAU RLAR: ENABLE Position */ -#define SAU_RLAR_ENABLE_Msk (1UL /*<< SAU_RLAR_ENABLE_Pos*/) /*!< SAU RLAR: ENABLE Mask */ - -#endif /* defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) */ - -/* Secure Fault Status Register Definitions */ -#define SAU_SFSR_LSERR_Pos 7U /*!< SAU SFSR: LSERR Position */ -#define SAU_SFSR_LSERR_Msk (1UL << SAU_SFSR_LSERR_Pos) /*!< SAU SFSR: LSERR Mask */ - -#define SAU_SFSR_SFARVALID_Pos 6U /*!< SAU SFSR: SFARVALID Position */ -#define SAU_SFSR_SFARVALID_Msk (1UL << SAU_SFSR_SFARVALID_Pos) /*!< SAU SFSR: SFARVALID Mask */ - -#define SAU_SFSR_LSPERR_Pos 5U /*!< SAU SFSR: LSPERR Position */ -#define SAU_SFSR_LSPERR_Msk (1UL << SAU_SFSR_LSPERR_Pos) /*!< SAU SFSR: LSPERR Mask */ - -#define SAU_SFSR_INVTRAN_Pos 4U /*!< SAU SFSR: INVTRAN Position */ -#define SAU_SFSR_INVTRAN_Msk (1UL << SAU_SFSR_INVTRAN_Pos) /*!< SAU SFSR: INVTRAN Mask */ - -#define SAU_SFSR_AUVIOL_Pos 3U /*!< SAU SFSR: AUVIOL Position */ -#define SAU_SFSR_AUVIOL_Msk (1UL << SAU_SFSR_AUVIOL_Pos) /*!< SAU SFSR: AUVIOL Mask */ - -#define SAU_SFSR_INVER_Pos 2U /*!< SAU SFSR: INVER Position */ -#define SAU_SFSR_INVER_Msk (1UL << SAU_SFSR_INVER_Pos) /*!< SAU SFSR: INVER Mask */ - -#define SAU_SFSR_INVIS_Pos 1U /*!< SAU SFSR: INVIS Position */ -#define SAU_SFSR_INVIS_Msk (1UL << SAU_SFSR_INVIS_Pos) /*!< SAU SFSR: INVIS Mask */ - -#define SAU_SFSR_INVEP_Pos 0U /*!< SAU SFSR: INVEP Position */ -#define SAU_SFSR_INVEP_Msk (1UL /*<< SAU_SFSR_INVEP_Pos*/) /*!< SAU SFSR: INVEP Mask */ - -/*@} end of group CMSIS_SAU */ -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_FPU Floating Point Unit (FPU) - \brief Type definitions for the Floating Point Unit (FPU) - @{ - */ - -/** - \brief Structure type to access the Floating Point Unit (FPU). - */ -typedef struct -{ - uint32_t RESERVED0[1U]; - __IOM uint32_t FPCCR; /*!< Offset: 0x004 (R/W) Floating-Point Context Control Register */ - __IOM uint32_t FPCAR; /*!< Offset: 0x008 (R/W) Floating-Point Context Address Register */ - __IOM uint32_t FPDSCR; /*!< Offset: 0x00C (R/W) Floating-Point Default Status Control Register */ - __IM uint32_t MVFR0; /*!< Offset: 0x010 (R/ ) Media and FP Feature Register 0 */ - __IM uint32_t MVFR1; /*!< Offset: 0x014 (R/ ) Media and FP Feature Register 1 */ -} FPU_Type; - -/* Floating-Point Context Control Register Definitions */ -#define FPU_FPCCR_ASPEN_Pos 31U /*!< FPCCR: ASPEN bit Position */ -#define FPU_FPCCR_ASPEN_Msk (1UL << FPU_FPCCR_ASPEN_Pos) /*!< FPCCR: ASPEN bit Mask */ - -#define FPU_FPCCR_LSPEN_Pos 30U /*!< FPCCR: LSPEN Position */ -#define FPU_FPCCR_LSPEN_Msk (1UL << FPU_FPCCR_LSPEN_Pos) /*!< FPCCR: LSPEN bit Mask */ - -#define FPU_FPCCR_LSPENS_Pos 29U /*!< FPCCR: LSPENS Position */ -#define FPU_FPCCR_LSPENS_Msk (1UL << FPU_FPCCR_LSPENS_Pos) /*!< FPCCR: LSPENS bit Mask */ - -#define FPU_FPCCR_CLRONRET_Pos 28U /*!< FPCCR: CLRONRET Position */ -#define FPU_FPCCR_CLRONRET_Msk (1UL << FPU_FPCCR_CLRONRET_Pos) /*!< FPCCR: CLRONRET bit Mask */ - -#define FPU_FPCCR_CLRONRETS_Pos 27U /*!< FPCCR: CLRONRETS Position */ -#define FPU_FPCCR_CLRONRETS_Msk (1UL << FPU_FPCCR_CLRONRETS_Pos) /*!< FPCCR: CLRONRETS bit Mask */ - -#define FPU_FPCCR_TS_Pos 26U /*!< FPCCR: TS Position */ -#define FPU_FPCCR_TS_Msk (1UL << FPU_FPCCR_TS_Pos) /*!< FPCCR: TS bit Mask */ - -#define FPU_FPCCR_UFRDY_Pos 10U /*!< FPCCR: UFRDY Position */ -#define FPU_FPCCR_UFRDY_Msk (1UL << FPU_FPCCR_UFRDY_Pos) /*!< FPCCR: UFRDY bit Mask */ - -#define FPU_FPCCR_SPLIMVIOL_Pos 9U /*!< FPCCR: SPLIMVIOL Position */ -#define FPU_FPCCR_SPLIMVIOL_Msk (1UL << FPU_FPCCR_SPLIMVIOL_Pos) /*!< FPCCR: SPLIMVIOL bit Mask */ - -#define FPU_FPCCR_MONRDY_Pos 8U /*!< FPCCR: MONRDY Position */ -#define FPU_FPCCR_MONRDY_Msk (1UL << FPU_FPCCR_MONRDY_Pos) /*!< FPCCR: MONRDY bit Mask */ - -#define FPU_FPCCR_SFRDY_Pos 7U /*!< FPCCR: SFRDY Position */ -#define FPU_FPCCR_SFRDY_Msk (1UL << FPU_FPCCR_SFRDY_Pos) /*!< FPCCR: SFRDY bit Mask */ - -#define FPU_FPCCR_BFRDY_Pos 6U /*!< FPCCR: BFRDY Position */ -#define FPU_FPCCR_BFRDY_Msk (1UL << FPU_FPCCR_BFRDY_Pos) /*!< FPCCR: BFRDY bit Mask */ - -#define FPU_FPCCR_MMRDY_Pos 5U /*!< FPCCR: MMRDY Position */ -#define FPU_FPCCR_MMRDY_Msk (1UL << FPU_FPCCR_MMRDY_Pos) /*!< FPCCR: MMRDY bit Mask */ - -#define FPU_FPCCR_HFRDY_Pos 4U /*!< FPCCR: HFRDY Position */ -#define FPU_FPCCR_HFRDY_Msk (1UL << FPU_FPCCR_HFRDY_Pos) /*!< FPCCR: HFRDY bit Mask */ - -#define FPU_FPCCR_THREAD_Pos 3U /*!< FPCCR: processor mode bit Position */ -#define FPU_FPCCR_THREAD_Msk (1UL << FPU_FPCCR_THREAD_Pos) /*!< FPCCR: processor mode active bit Mask */ - -#define FPU_FPCCR_S_Pos 2U /*!< FPCCR: Security status of the FP context bit Position */ -#define FPU_FPCCR_S_Msk (1UL << FPU_FPCCR_S_Pos) /*!< FPCCR: Security status of the FP context bit Mask */ - -#define FPU_FPCCR_USER_Pos 1U /*!< FPCCR: privilege level bit Position */ -#define FPU_FPCCR_USER_Msk (1UL << FPU_FPCCR_USER_Pos) /*!< FPCCR: privilege level bit Mask */ - -#define FPU_FPCCR_LSPACT_Pos 0U /*!< FPCCR: Lazy state preservation active bit Position */ -#define FPU_FPCCR_LSPACT_Msk (1UL /*<< FPU_FPCCR_LSPACT_Pos*/) /*!< FPCCR: Lazy state preservation active bit Mask */ - -/* Floating-Point Context Address Register Definitions */ -#define FPU_FPCAR_ADDRESS_Pos 3U /*!< FPCAR: ADDRESS bit Position */ -#define FPU_FPCAR_ADDRESS_Msk (0x1FFFFFFFUL << FPU_FPCAR_ADDRESS_Pos) /*!< FPCAR: ADDRESS bit Mask */ - -/* Floating-Point Default Status Control Register Definitions */ -#define FPU_FPDSCR_AHP_Pos 26U /*!< FPDSCR: AHP bit Position */ -#define FPU_FPDSCR_AHP_Msk (1UL << FPU_FPDSCR_AHP_Pos) /*!< FPDSCR: AHP bit Mask */ - -#define FPU_FPDSCR_DN_Pos 25U /*!< FPDSCR: DN bit Position */ -#define FPU_FPDSCR_DN_Msk (1UL << FPU_FPDSCR_DN_Pos) /*!< FPDSCR: DN bit Mask */ - -#define FPU_FPDSCR_FZ_Pos 24U /*!< FPDSCR: FZ bit Position */ -#define FPU_FPDSCR_FZ_Msk (1UL << FPU_FPDSCR_FZ_Pos) /*!< FPDSCR: FZ bit Mask */ - -#define FPU_FPDSCR_RMode_Pos 22U /*!< FPDSCR: RMode bit Position */ -#define FPU_FPDSCR_RMode_Msk (3UL << FPU_FPDSCR_RMode_Pos) /*!< FPDSCR: RMode bit Mask */ - -/* Media and FP Feature Register 0 Definitions */ -#define FPU_MVFR0_FP_rounding_modes_Pos 28U /*!< MVFR0: FP rounding modes bits Position */ -#define FPU_MVFR0_FP_rounding_modes_Msk (0xFUL << FPU_MVFR0_FP_rounding_modes_Pos) /*!< MVFR0: FP rounding modes bits Mask */ - -#define FPU_MVFR0_Short_vectors_Pos 24U /*!< MVFR0: Short vectors bits Position */ -#define FPU_MVFR0_Short_vectors_Msk (0xFUL << FPU_MVFR0_Short_vectors_Pos) /*!< MVFR0: Short vectors bits Mask */ - -#define FPU_MVFR0_Square_root_Pos 20U /*!< MVFR0: Square root bits Position */ -#define FPU_MVFR0_Square_root_Msk (0xFUL << FPU_MVFR0_Square_root_Pos) /*!< MVFR0: Square root bits Mask */ - -#define FPU_MVFR0_Divide_Pos 16U /*!< MVFR0: Divide bits Position */ -#define FPU_MVFR0_Divide_Msk (0xFUL << FPU_MVFR0_Divide_Pos) /*!< MVFR0: Divide bits Mask */ - -#define FPU_MVFR0_FP_excep_trapping_Pos 12U /*!< MVFR0: FP exception trapping bits Position */ -#define FPU_MVFR0_FP_excep_trapping_Msk (0xFUL << FPU_MVFR0_FP_excep_trapping_Pos) /*!< MVFR0: FP exception trapping bits Mask */ - -#define FPU_MVFR0_Double_precision_Pos 8U /*!< MVFR0: Double-precision bits Position */ -#define FPU_MVFR0_Double_precision_Msk (0xFUL << FPU_MVFR0_Double_precision_Pos) /*!< MVFR0: Double-precision bits Mask */ - -#define FPU_MVFR0_Single_precision_Pos 4U /*!< MVFR0: Single-precision bits Position */ -#define FPU_MVFR0_Single_precision_Msk (0xFUL << FPU_MVFR0_Single_precision_Pos) /*!< MVFR0: Single-precision bits Mask */ - -#define FPU_MVFR0_A_SIMD_registers_Pos 0U /*!< MVFR0: A_SIMD registers bits Position */ -#define FPU_MVFR0_A_SIMD_registers_Msk (0xFUL /*<< FPU_MVFR0_A_SIMD_registers_Pos*/) /*!< MVFR0: A_SIMD registers bits Mask */ - -/* Media and FP Feature Register 1 Definitions */ -#define FPU_MVFR1_FP_fused_MAC_Pos 28U /*!< MVFR1: FP fused MAC bits Position */ -#define FPU_MVFR1_FP_fused_MAC_Msk (0xFUL << FPU_MVFR1_FP_fused_MAC_Pos) /*!< MVFR1: FP fused MAC bits Mask */ - -#define FPU_MVFR1_FP_HPFP_Pos 24U /*!< MVFR1: FP HPFP bits Position */ -#define FPU_MVFR1_FP_HPFP_Msk (0xFUL << FPU_MVFR1_FP_HPFP_Pos) /*!< MVFR1: FP HPFP bits Mask */ - -#define FPU_MVFR1_D_NaN_mode_Pos 4U /*!< MVFR1: D_NaN mode bits Position */ -#define FPU_MVFR1_D_NaN_mode_Msk (0xFUL << FPU_MVFR1_D_NaN_mode_Pos) /*!< MVFR1: D_NaN mode bits Mask */ - -#define FPU_MVFR1_FtZ_mode_Pos 0U /*!< MVFR1: FtZ mode bits Position */ -#define FPU_MVFR1_FtZ_mode_Msk (0xFUL /*<< FPU_MVFR1_FtZ_mode_Pos*/) /*!< MVFR1: FtZ mode bits Mask */ - -/*@} end of group CMSIS_FPU */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) - \brief Type definitions for the Core Debug Registers - @{ - */ - -/** - \brief Structure type to access the Core Debug Register (CoreDebug). - */ -typedef struct -{ - __IOM uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ - __OM uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ - __IOM uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ - __IOM uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ - uint32_t RESERVED4[1U]; - __IOM uint32_t DAUTHCTRL; /*!< Offset: 0x014 (R/W) Debug Authentication Control Register */ - __IOM uint32_t DSCSR; /*!< Offset: 0x018 (R/W) Debug Security Control and Status Register */ -} CoreDebug_Type; - -/* Debug Halting Control and Status Register Definitions */ -#define CoreDebug_DHCSR_DBGKEY_Pos 16U /*!< CoreDebug DHCSR: DBGKEY Position */ -#define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ - -#define CoreDebug_DHCSR_S_RESTART_ST_Pos 26U /*!< CoreDebug DHCSR: S_RESTART_ST Position */ -#define CoreDebug_DHCSR_S_RESTART_ST_Msk (1UL << CoreDebug_DHCSR_S_RESTART_ST_Pos) /*!< CoreDebug DHCSR: S_RESTART_ST Mask */ - -#define CoreDebug_DHCSR_S_RESET_ST_Pos 25U /*!< CoreDebug DHCSR: S_RESET_ST Position */ -#define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ - -#define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24U /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ -#define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ - -#define CoreDebug_DHCSR_S_LOCKUP_Pos 19U /*!< CoreDebug DHCSR: S_LOCKUP Position */ -#define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ - -#define CoreDebug_DHCSR_S_SLEEP_Pos 18U /*!< CoreDebug DHCSR: S_SLEEP Position */ -#define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ - -#define CoreDebug_DHCSR_S_HALT_Pos 17U /*!< CoreDebug DHCSR: S_HALT Position */ -#define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ - -#define CoreDebug_DHCSR_S_REGRDY_Pos 16U /*!< CoreDebug DHCSR: S_REGRDY Position */ -#define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ - -#define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5U /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ -#define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ - -#define CoreDebug_DHCSR_C_MASKINTS_Pos 3U /*!< CoreDebug DHCSR: C_MASKINTS Position */ -#define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ - -#define CoreDebug_DHCSR_C_STEP_Pos 2U /*!< CoreDebug DHCSR: C_STEP Position */ -#define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ - -#define CoreDebug_DHCSR_C_HALT_Pos 1U /*!< CoreDebug DHCSR: C_HALT Position */ -#define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ - -#define CoreDebug_DHCSR_C_DEBUGEN_Pos 0U /*!< CoreDebug DHCSR: C_DEBUGEN Position */ -#define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL /*<< CoreDebug_DHCSR_C_DEBUGEN_Pos*/) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ - -/* Debug Core Register Selector Register Definitions */ -#define CoreDebug_DCRSR_REGWnR_Pos 16U /*!< CoreDebug DCRSR: REGWnR Position */ -#define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ - -#define CoreDebug_DCRSR_REGSEL_Pos 0U /*!< CoreDebug DCRSR: REGSEL Position */ -#define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL /*<< CoreDebug_DCRSR_REGSEL_Pos*/) /*!< CoreDebug DCRSR: REGSEL Mask */ - -/* Debug Exception and Monitor Control Register Definitions */ -#define CoreDebug_DEMCR_TRCENA_Pos 24U /*!< CoreDebug DEMCR: TRCENA Position */ -#define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ - -#define CoreDebug_DEMCR_MON_REQ_Pos 19U /*!< CoreDebug DEMCR: MON_REQ Position */ -#define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ - -#define CoreDebug_DEMCR_MON_STEP_Pos 18U /*!< CoreDebug DEMCR: MON_STEP Position */ -#define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ - -#define CoreDebug_DEMCR_MON_PEND_Pos 17U /*!< CoreDebug DEMCR: MON_PEND Position */ -#define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ - -#define CoreDebug_DEMCR_MON_EN_Pos 16U /*!< CoreDebug DEMCR: MON_EN Position */ -#define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ - -#define CoreDebug_DEMCR_VC_HARDERR_Pos 10U /*!< CoreDebug DEMCR: VC_HARDERR Position */ -#define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ - -#define CoreDebug_DEMCR_VC_INTERR_Pos 9U /*!< CoreDebug DEMCR: VC_INTERR Position */ -#define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ - -#define CoreDebug_DEMCR_VC_BUSERR_Pos 8U /*!< CoreDebug DEMCR: VC_BUSERR Position */ -#define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ - -#define CoreDebug_DEMCR_VC_STATERR_Pos 7U /*!< CoreDebug DEMCR: VC_STATERR Position */ -#define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ - -#define CoreDebug_DEMCR_VC_CHKERR_Pos 6U /*!< CoreDebug DEMCR: VC_CHKERR Position */ -#define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ - -#define CoreDebug_DEMCR_VC_NOCPERR_Pos 5U /*!< CoreDebug DEMCR: VC_NOCPERR Position */ -#define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ - -#define CoreDebug_DEMCR_VC_MMERR_Pos 4U /*!< CoreDebug DEMCR: VC_MMERR Position */ -#define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ - -#define CoreDebug_DEMCR_VC_CORERESET_Pos 0U /*!< CoreDebug DEMCR: VC_CORERESET Position */ -#define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL /*<< CoreDebug_DEMCR_VC_CORERESET_Pos*/) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ - -/* Debug Authentication Control Register Definitions */ -#define CoreDebug_DAUTHCTRL_INTSPNIDEN_Pos 3U /*!< CoreDebug DAUTHCTRL: INTSPNIDEN, Position */ -#define CoreDebug_DAUTHCTRL_INTSPNIDEN_Msk (1UL << CoreDebug_DAUTHCTRL_INTSPNIDEN_Pos) /*!< CoreDebug DAUTHCTRL: INTSPNIDEN, Mask */ - -#define CoreDebug_DAUTHCTRL_SPNIDENSEL_Pos 2U /*!< CoreDebug DAUTHCTRL: SPNIDENSEL Position */ -#define CoreDebug_DAUTHCTRL_SPNIDENSEL_Msk (1UL << CoreDebug_DAUTHCTRL_SPNIDENSEL_Pos) /*!< CoreDebug DAUTHCTRL: SPNIDENSEL Mask */ - -#define CoreDebug_DAUTHCTRL_INTSPIDEN_Pos 1U /*!< CoreDebug DAUTHCTRL: INTSPIDEN Position */ -#define CoreDebug_DAUTHCTRL_INTSPIDEN_Msk (1UL << CoreDebug_DAUTHCTRL_INTSPIDEN_Pos) /*!< CoreDebug DAUTHCTRL: INTSPIDEN Mask */ - -#define CoreDebug_DAUTHCTRL_SPIDENSEL_Pos 0U /*!< CoreDebug DAUTHCTRL: SPIDENSEL Position */ -#define CoreDebug_DAUTHCTRL_SPIDENSEL_Msk (1UL /*<< CoreDebug_DAUTHCTRL_SPIDENSEL_Pos*/) /*!< CoreDebug DAUTHCTRL: SPIDENSEL Mask */ - -/* Debug Security Control and Status Register Definitions */ -#define CoreDebug_DSCSR_CDS_Pos 16U /*!< CoreDebug DSCSR: CDS Position */ -#define CoreDebug_DSCSR_CDS_Msk (1UL << CoreDebug_DSCSR_CDS_Pos) /*!< CoreDebug DSCSR: CDS Mask */ - -#define CoreDebug_DSCSR_SBRSEL_Pos 1U /*!< CoreDebug DSCSR: SBRSEL Position */ -#define CoreDebug_DSCSR_SBRSEL_Msk (1UL << CoreDebug_DSCSR_SBRSEL_Pos) /*!< CoreDebug DSCSR: SBRSEL Mask */ - -#define CoreDebug_DSCSR_SBRSELEN_Pos 0U /*!< CoreDebug DSCSR: SBRSELEN Position */ -#define CoreDebug_DSCSR_SBRSELEN_Msk (1UL /*<< CoreDebug_DSCSR_SBRSELEN_Pos*/) /*!< CoreDebug DSCSR: SBRSELEN Mask */ - -/*@} end of group CMSIS_CoreDebug */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_core_bitfield Core register bit field macros - \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). - @{ - */ - -/** - \brief Mask and shift a bit field value for use in a register bit range. - \param[in] field Name of the register bit field. - \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. - \return Masked and shifted value. -*/ -#define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) - -/** - \brief Mask and shift a register value to extract a bit filed value. - \param[in] field Name of the register bit field. - \param[in] value Value of register. This parameter is interpreted as an uint32_t type. - \return Masked and shifted bit field value. -*/ -#define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) - -/*@} end of group CMSIS_core_bitfield */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_core_base Core Definitions - \brief Definitions for base addresses, unions, and structures. - @{ - */ - -/* Memory mapping of Core Hardware */ - #define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ - #define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ - #define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ - #define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ - #define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ - #define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ - #define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ - #define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ - - #define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ - #define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ - #define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ - #define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ - #define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ - #define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ - #define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ - #define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE ) /*!< Core Debug configuration struct */ - - #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) - #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ - #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ - #endif - - #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) - #define SAU_BASE (SCS_BASE + 0x0DD0UL) /*!< Security Attribution Unit */ - #define SAU ((SAU_Type *) SAU_BASE ) /*!< Security Attribution Unit */ - #endif - - #define FPU_BASE (SCS_BASE + 0x0F30UL) /*!< Floating Point Unit */ - #define FPU ((FPU_Type *) FPU_BASE ) /*!< Floating Point Unit */ - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) - #define SCS_BASE_NS (0xE002E000UL) /*!< System Control Space Base Address (non-secure address space) */ - #define CoreDebug_BASE_NS (0xE002EDF0UL) /*!< Core Debug Base Address (non-secure address space) */ - #define SysTick_BASE_NS (SCS_BASE_NS + 0x0010UL) /*!< SysTick Base Address (non-secure address space) */ - #define NVIC_BASE_NS (SCS_BASE_NS + 0x0100UL) /*!< NVIC Base Address (non-secure address space) */ - #define SCB_BASE_NS (SCS_BASE_NS + 0x0D00UL) /*!< System Control Block Base Address (non-secure address space) */ - - #define SCnSCB_NS ((SCnSCB_Type *) SCS_BASE_NS ) /*!< System control Register not in SCB(non-secure address space) */ - #define SCB_NS ((SCB_Type *) SCB_BASE_NS ) /*!< SCB configuration struct (non-secure address space) */ - #define SysTick_NS ((SysTick_Type *) SysTick_BASE_NS ) /*!< SysTick configuration struct (non-secure address space) */ - #define NVIC_NS ((NVIC_Type *) NVIC_BASE_NS ) /*!< NVIC configuration struct (non-secure address space) */ - #define CoreDebug_NS ((CoreDebug_Type *) CoreDebug_BASE_NS) /*!< Core Debug configuration struct (non-secure address space) */ - - #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) - #define MPU_BASE_NS (SCS_BASE_NS + 0x0D90UL) /*!< Memory Protection Unit (non-secure address space) */ - #define MPU_NS ((MPU_Type *) MPU_BASE_NS ) /*!< Memory Protection Unit (non-secure address space) */ - #endif - - #define FPU_BASE_NS (SCS_BASE_NS + 0x0F30UL) /*!< Floating Point Unit (non-secure address space) */ - #define FPU_NS ((FPU_Type *) FPU_BASE_NS ) /*!< Floating Point Unit (non-secure address space) */ - -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ -/*@} */ - - - -/******************************************************************************* - * Hardware Abstraction Layer - Core Function Interface contains: - - Core NVIC Functions - - Core SysTick Functions - - Core Debug Functions - - Core Register Access Functions - ******************************************************************************/ -/** - \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference -*/ - - - -/* ########################## NVIC functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_NVICFunctions NVIC Functions - \brief Functions that manage interrupts and exceptions via the NVIC. - @{ - */ - -#ifdef CMSIS_NVIC_VIRTUAL - #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE - #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" - #endif - #include CMSIS_NVIC_VIRTUAL_HEADER_FILE -#else - #define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping - #define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping - #define NVIC_EnableIRQ __NVIC_EnableIRQ - #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ - #define NVIC_DisableIRQ __NVIC_DisableIRQ - #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ - #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ - #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ - #define NVIC_GetActive __NVIC_GetActive - #define NVIC_SetPriority __NVIC_SetPriority - #define NVIC_GetPriority __NVIC_GetPriority - #define NVIC_SystemReset __NVIC_SystemReset -#endif /* CMSIS_NVIC_VIRTUAL */ - -#ifdef CMSIS_VECTAB_VIRTUAL - #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE - #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" - #endif - #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE -#else - #define NVIC_SetVector __NVIC_SetVector - #define NVIC_GetVector __NVIC_GetVector -#endif /* (CMSIS_VECTAB_VIRTUAL) */ - -#define NVIC_USER_IRQ_OFFSET 16 - - -/* Special LR values for Secure/Non-Secure call handling and exception handling */ - -/* Function Return Payload (from ARMv8-M Architecture Reference Manual) LR value on entry from Secure BLXNS */ -#define FNC_RETURN (0xFEFFFFFFUL) /* bit [0] ignored when processing a branch */ - -/* The following EXC_RETURN mask values are used to evaluate the LR on exception entry */ -#define EXC_RETURN_PREFIX (0xFF000000UL) /* bits [31:24] set to indicate an EXC_RETURN value */ -#define EXC_RETURN_S (0x00000040UL) /* bit [6] stack used to push registers: 0=Non-secure 1=Secure */ -#define EXC_RETURN_DCRS (0x00000020UL) /* bit [5] stacking rules for called registers: 0=skipped 1=saved */ -#define EXC_RETURN_FTYPE (0x00000010UL) /* bit [4] allocate stack for floating-point context: 0=done 1=skipped */ -#define EXC_RETURN_MODE (0x00000008UL) /* bit [3] processor mode for return: 0=Handler mode 1=Thread mode */ -#define EXC_RETURN_SPSEL (0x00000004UL) /* bit [2] stack pointer used to restore context: 0=MSP 1=PSP */ -#define EXC_RETURN_ES (0x00000001UL) /* bit [0] security state exception was taken to: 0=Non-secure 1=Secure */ - -/* Integrity Signature (from ARMv8-M Architecture Reference Manual) for exception context stacking */ -#if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) /* Value for processors with floating-point extension: */ -#define EXC_INTEGRITY_SIGNATURE (0xFEFA125AUL) /* bit [0] SFTC must match LR bit[4] EXC_RETURN_FTYPE */ -#else -#define EXC_INTEGRITY_SIGNATURE (0xFEFA125BUL) /* Value for processors without floating-point extension */ -#endif - - -/** - \brief Set Priority Grouping - \details Sets the priority grouping field using the required unlock sequence. - The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. - Only values from 0..7 are used. - 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) -{ - uint32_t reg_value; - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - - reg_value = SCB->AIRCR; /* read old register configuration */ - reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ - reg_value = (reg_value | - ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ - SCB->AIRCR = reg_value; -} - - -/** - \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) -{ - return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); -} - - -/** - \brief Enable Interrupt - \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) -{ - if ((int32_t)(IRQn) >= 0) - { - __COMPILER_BARRIER(); - NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - __COMPILER_BARRIER(); - } -} - - -/** - \brief Get Interrupt Enable status - \details Returns a device specific interrupt enable status from the NVIC interrupt controller. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt is not enabled. - \return 1 Interrupt is enabled. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Disable Interrupt - \details Disables 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_DisableIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - __DSB(); - __ISB(); - } -} - - -/** - \brief Get Pending Interrupt - \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not pending. - \return 1 Interrupt status is pending. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Pending Interrupt - \details Sets the pending bit of a device specific interrupt in the NVIC pending register. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Clear Pending Interrupt - \details Clears the pending bit of a device specific interrupt in the NVIC pending register. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Active Interrupt - \details Reads the active register in the NVIC and returns the active bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not active. - \return 1 Interrupt status is active. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetActive(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) -/** - \brief Get Interrupt Target State - \details Reads the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 if interrupt is assigned to Secure - \return 1 if interrupt is assigned to Non Secure - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t NVIC_GetTargetState(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Interrupt Target State - \details Sets the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 if interrupt is assigned to Secure - 1 if interrupt is assigned to Non Secure - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t NVIC_SetTargetState(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] |= ((uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL))); - return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Clear Interrupt Target State - \details Clears the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 if interrupt is assigned to Secure - 1 if interrupt is assigned to Non Secure - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t NVIC_ClearTargetState(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] &= ~((uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL))); - return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ - - -/** - \brief Set Interrupt Priority - \details Sets the priority of a device specific interrupt or a processor exception. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \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) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->IPR[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - } - else - { - SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - } -} - - -/** - \brief Get Interrupt Priority - \details Reads the priority of a device specific interrupt or a processor exception. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Interrupt Priority. - Value is aligned automatically to the implemented priority bits of the microcontroller. - */ -__STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) -{ - - if ((int32_t)(IRQn) >= 0) - { - return(((uint32_t)NVIC->IPR[((uint32_t)IRQn)] >> (8U - __NVIC_PRIO_BITS))); - } - else - { - return(((uint32_t)SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] >> (8U - __NVIC_PRIO_BITS))); - } -} - - -/** - \brief Encode Priority - \details Encodes the priority for an interrupt with the given priority group, - preemptive priority value, and subpriority value. - 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 Used priority group. - \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) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - - return ( - ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) - ); -} - - -/** - \brief Decode Priority - \details Decodes an interrupt priority value with a given priority group to - preemptive priority value and subpriority value. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. - \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). - \param [in] PriorityGroup Used priority group. - \param [out] pPreemptPriority Preemptive priority value (starting from 0). - \param [out] pSubPriority Subpriority value (starting from 0). - */ -__STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - - *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); - *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); -} - - -/** - \brief Set Interrupt Vector - \details Sets an interrupt vector in SRAM based interrupt vector table. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - VTOR must been relocated to SRAM before. - \param [in] IRQn Interrupt number - \param [in] vector Address of interrupt handler function - */ -__STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) -{ - uint32_t *vectors = (uint32_t *)SCB->VTOR; - vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET] = vector; - __DSB(); -} - - -/** - \brief Get Interrupt Vector - \details Reads an interrupt vector from interrupt vector table. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Address of interrupt handler function - */ -__STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) -{ - uint32_t *vectors = (uint32_t *)SCB->VTOR; - return vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET]; -} - - -/** - \brief System Reset - \details Initiates a system reset request to reset the MCU. - */ -__NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) -{ - __DSB(); /* Ensure all outstanding memory accesses included - buffered write are completed before reset */ - SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | - SCB_AIRCR_SYSRESETREQ_Msk ); /* Keep priority group unchanged */ - __DSB(); /* Ensure completion of memory access */ - - for(;;) /* wait until reset */ - { - __NOP(); - } -} - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) -/** - \brief Set Priority Grouping (non-secure) - \details Sets the non-secure priority grouping field when in secure state using the required unlock sequence. - The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. - Only values from 0..7 are used. - 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 TZ_NVIC_SetPriorityGrouping_NS(uint32_t PriorityGroup) -{ - uint32_t reg_value; - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - - reg_value = SCB_NS->AIRCR; /* read old register configuration */ - reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ - reg_value = (reg_value | - ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ - SCB_NS->AIRCR = reg_value; -} - - -/** - \brief Get Priority Grouping (non-secure) - \details Reads the priority grouping field from the non-secure NVIC when in secure state. - \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). - */ -__STATIC_INLINE uint32_t TZ_NVIC_GetPriorityGrouping_NS(void) -{ - return ((uint32_t)((SCB_NS->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); -} - - -/** - \brief Enable Interrupt (non-secure) - \details Enables a device specific interrupt in the non-secure NVIC interrupt controller when in secure state. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void TZ_NVIC_EnableIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Interrupt Enable status (non-secure) - \details Returns a device specific interrupt enable status from the non-secure NVIC interrupt controller when in secure state. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt is not enabled. - \return 1 Interrupt is enabled. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t TZ_NVIC_GetEnableIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC_NS->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Disable Interrupt (non-secure) - \details Disables a device specific interrupt in the non-secure NVIC interrupt controller when in secure state. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void TZ_NVIC_DisableIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Pending Interrupt (non-secure) - \details Reads the NVIC pending register in the non-secure NVIC when in secure state and returns the pending bit for the specified device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not pending. - \return 1 Interrupt status is pending. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t TZ_NVIC_GetPendingIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC_NS->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Pending Interrupt (non-secure) - \details Sets the pending bit of a device specific interrupt in the non-secure NVIC pending register when in secure state. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void TZ_NVIC_SetPendingIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Clear Pending Interrupt (non-secure) - \details Clears the pending bit of a device specific interrupt in the non-secure NVIC pending register when in secure state. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void TZ_NVIC_ClearPendingIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Active Interrupt (non-secure) - \details Reads the active register in non-secure NVIC when in secure state and returns the active bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not active. - \return 1 Interrupt status is active. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t TZ_NVIC_GetActive_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC_NS->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Interrupt Priority (non-secure) - \details Sets the priority of a non-secure device specific interrupt or a non-secure processor exception when in secure state. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \param [in] priority Priority to set. - \note The priority cannot be set for every non-secure processor exception. - */ -__STATIC_INLINE void TZ_NVIC_SetPriority_NS(IRQn_Type IRQn, uint32_t priority) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->IPR[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - } - else - { - SCB_NS->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - } -} - - -/** - \brief Get Interrupt Priority (non-secure) - \details Reads the priority of a non-secure device specific interrupt or a non-secure processor exception when in secure state. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. - */ -__STATIC_INLINE uint32_t TZ_NVIC_GetPriority_NS(IRQn_Type IRQn) -{ - - if ((int32_t)(IRQn) >= 0) - { - return(((uint32_t)NVIC_NS->IPR[((uint32_t)IRQn)] >> (8U - __NVIC_PRIO_BITS))); - } - else - { - return(((uint32_t)SCB_NS->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] >> (8U - __NVIC_PRIO_BITS))); - } -} -#endif /* defined (__ARM_FEATURE_CMSE) &&(__ARM_FEATURE_CMSE == 3U) */ - -/*@} end of CMSIS_Core_NVICFunctions */ - -/* ########################## MPU functions #################################### */ - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) - -#include "mpu_armv8.h" - -#endif - -/* ########################## FPU functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_FpuFunctions FPU Functions - \brief Function that provides FPU type. - @{ - */ - -/** - \brief get FPU type - \details returns the FPU type - \returns - - \b 0: No FPU - - \b 1: Single precision FPU - - \b 2: Double + Single precision FPU - */ -__STATIC_INLINE uint32_t SCB_GetFPUType(void) -{ - uint32_t mvfr0; - - mvfr0 = FPU->MVFR0; - if ((mvfr0 & (FPU_MVFR0_Single_precision_Msk | FPU_MVFR0_Double_precision_Msk)) == 0x220U) - { - return 2U; /* Double + Single precision FPU */ - } - else if ((mvfr0 & (FPU_MVFR0_Single_precision_Msk | FPU_MVFR0_Double_precision_Msk)) == 0x020U) - { - return 1U; /* Single precision FPU */ - } - else - { - return 0U; /* No FPU */ - } -} - - -/*@} end of CMSIS_Core_FpuFunctions */ - - - -/* ########################## SAU functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SAUFunctions SAU Functions - \brief Functions that configure the SAU. - @{ - */ - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) - -/** - \brief Enable SAU - \details Enables the Security Attribution Unit (SAU). - */ -__STATIC_INLINE void TZ_SAU_Enable(void) -{ - SAU->CTRL |= (SAU_CTRL_ENABLE_Msk); -} - - - -/** - \brief Disable SAU - \details Disables the Security Attribution Unit (SAU). - */ -__STATIC_INLINE void TZ_SAU_Disable(void) -{ - SAU->CTRL &= ~(SAU_CTRL_ENABLE_Msk); -} - -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ - -/*@} end of CMSIS_Core_SAUFunctions */ - - - - -/* ################################## SysTick function ############################################ */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SysTickFunctions SysTick Functions - \brief Functions that configure the System. - @{ - */ - -#if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) - -/** - \brief System Tick Configuration - \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. - Counter is in free running mode to generate periodic interrupts. - \param [in] ticks Number of ticks between two interrupts. - \return 0 Function succeeded. - \return 1 Function failed. - \note When the variable __Vendor_SysTickConfig is set to 1, then the - function SysTick_Config is not included. In this case, the file device.h - must contain a vendor-specific implementation of this function. - */ -__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) -{ - if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - { - return (1UL); /* Reload value impossible */ - } - - SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ - SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0UL); /* Function successful */ -} - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) -/** - \brief System Tick Configuration (non-secure) - \details Initializes the non-secure System Timer and its interrupt when in secure state, and starts the System Tick Timer. - Counter is in free running mode to generate periodic interrupts. - \param [in] ticks Number of ticks between two interrupts. - \return 0 Function succeeded. - \return 1 Function failed. - \note When the variable __Vendor_SysTickConfig is set to 1, then the - function TZ_SysTick_Config_NS is not included. In this case, the file device.h - must contain a vendor-specific implementation of this function. - - */ -__STATIC_INLINE uint32_t TZ_SysTick_Config_NS(uint32_t ticks) -{ - if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - { - return (1UL); /* Reload value impossible */ - } - - SysTick_NS->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - TZ_NVIC_SetPriority_NS (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - SysTick_NS->VAL = 0UL; /* Load the SysTick Counter Value */ - SysTick_NS->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0UL); /* Function successful */ -} -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ - -#endif - -/*@} end of CMSIS_Core_SysTickFunctions */ - - - -/* ##################################### Debug In/Output function ########################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_core_DebugFunctions ITM Functions - \brief Functions that access the ITM debug interface. - @{ - */ - -extern volatile int32_t ITM_RxBuffer; /*!< External variable to receive characters. */ -#define ITM_RXBUFFER_EMPTY ((int32_t)0x5AA55AA5U) /*!< Value identifying \ref ITM_RxBuffer is ready for next character. */ - - -/** - \brief ITM Send Character - \details Transmits a character via the ITM channel 0, and - \li Just returns when no debugger is connected that has booked the output. - \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted. - \param [in] ch Character to transmit. - \returns Character to transmit. - */ -__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch) -{ - if (((ITM->TCR & ITM_TCR_ITMENA_Msk) != 0UL) && /* ITM enabled */ - ((ITM->TER & 1UL ) != 0UL) ) /* ITM Port #0 enabled */ - { - while (ITM->PORT[0U].u32 == 0UL) - { - __NOP(); - } - ITM->PORT[0U].u8 = (uint8_t)ch; - } - return (ch); -} - - -/** - \brief ITM Receive Character - \details Inputs a character via the external variable \ref ITM_RxBuffer. - \return Received character. - \return -1 No character pending. - */ -__STATIC_INLINE int32_t ITM_ReceiveChar (void) -{ - int32_t ch = -1; /* no character available */ - - if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) - { - ch = ITM_RxBuffer; - ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ - } - - return (ch); -} - - -/** - \brief ITM Check Character - \details Checks whether a character is pending for reading in the variable \ref ITM_RxBuffer. - \return 0 No character available. - \return 1 Character available. - */ -__STATIC_INLINE int32_t ITM_CheckChar (void) -{ - - if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) - { - return (0); /* no character available */ - } - else - { - return (1); /* character available */ - } -} - -/*@} end of CMSIS_core_DebugFunctions */ - - - - -#ifdef __cplusplus -} -#endif - -#endif /* __CORE_CM33_H_DEPENDANT */ - -#endif /* __CMSIS_GENERIC */ diff --git a/Drivers/CMSIS/Include/core_cm35p.h b/Drivers/CMSIS/Include/core_cm35p.h deleted file mode 100644 index 5579c82..0000000 --- a/Drivers/CMSIS/Include/core_cm35p.h +++ /dev/null @@ -1,2910 +0,0 @@ -/**************************************************************************//** - * @file core_cm35p.h - * @brief CMSIS Cortex-M35P Core Peripheral Access Layer Header File - * @version V1.0.0 - * @date 12. November 2018 - ******************************************************************************/ -/* - * Copyright (c) 2018 Arm Limited. All rights reserved. - * - * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the License); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#if defined ( __ICCARM__ ) - #pragma system_include /* treat file as system include file for MISRA check */ -#elif defined (__clang__) - #pragma clang system_header /* treat file as system include file */ -#endif - -#ifndef __CORE_CM35P_H_GENERIC -#define __CORE_CM35P_H_GENERIC - -#include - -#ifdef __cplusplus - extern "C" { -#endif - -/** - \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions - CMSIS violates the following MISRA-C:2004 rules: - - \li Required Rule 8.5, object/function definition in header file.
- Function definitions in header files are used to allow 'inlining'. - - \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
- Unions are used for effective representation of core registers. - - \li Advisory Rule 19.7, Function-like macro defined.
- Function-like macros are used to allow more efficient code. - */ - - -/******************************************************************************* - * CMSIS definitions - ******************************************************************************/ -/** - \ingroup Cortex_M35P - @{ - */ - -#include "cmsis_version.h" - -/* CMSIS CM35P definitions */ -#define __CM35P_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ -#define __CM35P_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ -#define __CM35P_CMSIS_VERSION ((__CM35P_CMSIS_VERSION_MAIN << 16U) | \ - __CM35P_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ - -#define __CORTEX_M (35U) /*!< Cortex-M Core */ - -/** __FPU_USED indicates whether an FPU is used or not. - For this, __FPU_PRESENT has to be checked prior to making use of FPU specific registers and functions. -*/ -#if defined ( __CC_ARM ) - #if defined (__TARGET_FPU_VFP) - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - - #if defined (__ARM_FEATURE_DSP) && (__ARM_FEATURE_DSP == 1U) - #if defined (__DSP_PRESENT) && (__DSP_PRESENT == 1U) - #define __DSP_USED 1U - #else - #error "Compiler generates DSP (SIMD) instructions for a devices without DSP extensions (check __DSP_PRESENT)" - #define __DSP_USED 0U - #endif - #else - #define __DSP_USED 0U - #endif - -#elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) - #if defined (__ARM_FP) - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - - #if defined (__ARM_FEATURE_DSP) && (__ARM_FEATURE_DSP == 1U) - #if defined (__DSP_PRESENT) && (__DSP_PRESENT == 1U) - #define __DSP_USED 1U - #else - #error "Compiler generates DSP (SIMD) instructions for a devices without DSP extensions (check __DSP_PRESENT)" - #define __DSP_USED 0U - #endif - #else - #define __DSP_USED 0U - #endif - -#elif defined ( __GNUC__ ) - #if defined (__VFP_FP__) && !defined(__SOFTFP__) - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - - #if defined (__ARM_FEATURE_DSP) && (__ARM_FEATURE_DSP == 1U) - #if defined (__DSP_PRESENT) && (__DSP_PRESENT == 1U) - #define __DSP_USED 1U - #else - #error "Compiler generates DSP (SIMD) instructions for a devices without DSP extensions (check __DSP_PRESENT)" - #define __DSP_USED 0U - #endif - #else - #define __DSP_USED 0U - #endif - -#elif defined ( __ICCARM__ ) - #if defined (__ARMVFP__) - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - - #if defined (__ARM_FEATURE_DSP) && (__ARM_FEATURE_DSP == 1U) - #if defined (__DSP_PRESENT) && (__DSP_PRESENT == 1U) - #define __DSP_USED 1U - #else - #error "Compiler generates DSP (SIMD) instructions for a devices without DSP extensions (check __DSP_PRESENT)" - #define __DSP_USED 0U - #endif - #else - #define __DSP_USED 0U - #endif - -#elif defined ( __TI_ARM__ ) - #if defined (__TI_VFP_SUPPORT__) - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - -#elif defined ( __TASKING__ ) - #if defined (__FPU_VFP__) - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - -#elif defined ( __CSMC__ ) - #if ( __CSMC__ & 0x400U) - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - -#endif - -#include "cmsis_compiler.h" /* CMSIS compiler specific defines */ - - -#ifdef __cplusplus -} -#endif - -#endif /* __CORE_CM35P_H_GENERIC */ - -#ifndef __CMSIS_GENERIC - -#ifndef __CORE_CM35P_H_DEPENDANT -#define __CORE_CM35P_H_DEPENDANT - -#ifdef __cplusplus - extern "C" { -#endif - -/* check device defines and use defaults */ -#if defined __CHECK_DEVICE_DEFINES - #ifndef __CM35P_REV - #define __CM35P_REV 0x0000U - #warning "__CM35P_REV not defined in device header file; using default!" - #endif - - #ifndef __FPU_PRESENT - #define __FPU_PRESENT 0U - #warning "__FPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __MPU_PRESENT - #define __MPU_PRESENT 0U - #warning "__MPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __SAUREGION_PRESENT - #define __SAUREGION_PRESENT 0U - #warning "__SAUREGION_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __DSP_PRESENT - #define __DSP_PRESENT 0U - #warning "__DSP_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __NVIC_PRIO_BITS - #define __NVIC_PRIO_BITS 3U - #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" - #endif - - #ifndef __Vendor_SysTickConfig - #define __Vendor_SysTickConfig 0U - #warning "__Vendor_SysTickConfig not defined in device header file; using default!" - #endif -#endif - -/* IO definitions (access restrictions to peripheral registers) */ -/** - \defgroup CMSIS_glob_defs CMSIS Global Defines - - IO Type Qualifiers are used - \li to specify the access to peripheral variables. - \li for automatic generation of peripheral register debug information. -*/ -#ifdef __cplusplus - #define __I volatile /*!< Defines 'read only' permissions */ -#else - #define __I volatile const /*!< Defines 'read only' permissions */ -#endif -#define __O volatile /*!< Defines 'write only' permissions */ -#define __IO volatile /*!< Defines 'read / write' permissions */ - -/* following defines should be used for structure members */ -#define __IM volatile const /*! Defines 'read only' structure member permissions */ -#define __OM volatile /*! Defines 'write only' structure member permissions */ -#define __IOM volatile /*! Defines 'read / write' structure member permissions */ - -/*@} end of group Cortex_M35P */ - - - -/******************************************************************************* - * Register Abstraction - Core Register contain: - - Core Register - - Core NVIC Register - - Core SCB Register - - Core SysTick Register - - Core Debug Register - - Core MPU Register - - Core SAU Register - - Core FPU Register - ******************************************************************************/ -/** - \defgroup CMSIS_core_register Defines and Type Definitions - \brief Type definitions and defines for Cortex-M processor based devices. -*/ - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_CORE Status and Control Registers - \brief Core Register type definitions. - @{ - */ - -/** - \brief Union type to access the Application Program Status Register (APSR). - */ -typedef union -{ - struct - { - uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} APSR_Type; - -/* APSR Register Definitions */ -#define APSR_N_Pos 31U /*!< APSR: N Position */ -#define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ - -#define APSR_Z_Pos 30U /*!< APSR: Z Position */ -#define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ - -#define APSR_C_Pos 29U /*!< APSR: C Position */ -#define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ - -#define APSR_V_Pos 28U /*!< APSR: V Position */ -#define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ - -#define APSR_Q_Pos 27U /*!< APSR: Q Position */ -#define APSR_Q_Msk (1UL << APSR_Q_Pos) /*!< APSR: Q Mask */ - -#define APSR_GE_Pos 16U /*!< APSR: GE Position */ -#define APSR_GE_Msk (0xFUL << APSR_GE_Pos) /*!< APSR: GE Mask */ - - -/** - \brief Union type to access the Interrupt Program Status Register (IPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} IPSR_Type; - -/* IPSR Register Definitions */ -#define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ -#define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ - - -/** - \brief Union type to access the Special-Purpose Program Status Registers (xPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:7; /*!< bit: 9..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ - uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ - uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} xPSR_Type; - -/* xPSR Register Definitions */ -#define xPSR_N_Pos 31U /*!< xPSR: N Position */ -#define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ - -#define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ -#define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ - -#define xPSR_C_Pos 29U /*!< xPSR: C Position */ -#define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ - -#define xPSR_V_Pos 28U /*!< xPSR: V Position */ -#define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ - -#define xPSR_Q_Pos 27U /*!< xPSR: Q Position */ -#define xPSR_Q_Msk (1UL << xPSR_Q_Pos) /*!< xPSR: Q Mask */ - -#define xPSR_IT_Pos 25U /*!< xPSR: IT Position */ -#define xPSR_IT_Msk (3UL << xPSR_IT_Pos) /*!< xPSR: IT Mask */ - -#define xPSR_T_Pos 24U /*!< xPSR: T Position */ -#define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ - -#define xPSR_GE_Pos 16U /*!< xPSR: GE Position */ -#define xPSR_GE_Msk (0xFUL << xPSR_GE_Pos) /*!< xPSR: GE Mask */ - -#define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ -#define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ - - -/** - \brief Union type to access the Control Registers (CONTROL). - */ -typedef union -{ - struct - { - uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ - uint32_t SPSEL:1; /*!< bit: 1 Stack-pointer select */ - uint32_t FPCA:1; /*!< bit: 2 Floating-point context active */ - uint32_t SFPA:1; /*!< bit: 3 Secure floating-point active */ - uint32_t _reserved1:28; /*!< bit: 4..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} CONTROL_Type; - -/* CONTROL Register Definitions */ -#define CONTROL_SFPA_Pos 3U /*!< CONTROL: SFPA Position */ -#define CONTROL_SFPA_Msk (1UL << CONTROL_SFPA_Pos) /*!< CONTROL: SFPA Mask */ - -#define CONTROL_FPCA_Pos 2U /*!< CONTROL: FPCA Position */ -#define CONTROL_FPCA_Msk (1UL << CONTROL_FPCA_Pos) /*!< CONTROL: FPCA Mask */ - -#define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ -#define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ - -#define CONTROL_nPRIV_Pos 0U /*!< CONTROL: nPRIV Position */ -#define CONTROL_nPRIV_Msk (1UL /*<< CONTROL_nPRIV_Pos*/) /*!< CONTROL: nPRIV Mask */ - -/*@} end of group CMSIS_CORE */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) - \brief Type definitions for the NVIC Registers - @{ - */ - -/** - \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). - */ -typedef struct -{ - __IOM uint32_t ISER[16U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ - uint32_t RESERVED0[16U]; - __IOM uint32_t ICER[16U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ - uint32_t RSERVED1[16U]; - __IOM uint32_t ISPR[16U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ - uint32_t RESERVED2[16U]; - __IOM uint32_t ICPR[16U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ - uint32_t RESERVED3[16U]; - __IOM uint32_t IABR[16U]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ - uint32_t RESERVED4[16U]; - __IOM uint32_t ITNS[16U]; /*!< Offset: 0x280 (R/W) Interrupt Non-Secure State Register */ - uint32_t RESERVED5[16U]; - __IOM uint8_t IPR[496U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ - uint32_t RESERVED6[580U]; - __OM uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ -} NVIC_Type; - -/* Software Triggered Interrupt Register Definitions */ -#define NVIC_STIR_INTID_Pos 0U /*!< STIR: INTLINESNUM Position */ -#define NVIC_STIR_INTID_Msk (0x1FFUL /*<< NVIC_STIR_INTID_Pos*/) /*!< STIR: INTLINESNUM Mask */ - -/*@} end of group CMSIS_NVIC */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SCB System Control Block (SCB) - \brief Type definitions for the System Control Block Registers - @{ - */ - -/** - \brief Structure type to access the System Control Block (SCB). - */ -typedef struct -{ - __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ - __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ - __IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ - __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ - __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ - __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ - __IOM uint8_t SHPR[12U]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ - __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ - __IOM uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ - __IOM uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ - __IOM uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ - __IOM uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ - __IOM uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ - __IOM uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ - __IM uint32_t ID_PFR[2U]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ - __IM uint32_t ID_DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ - __IM uint32_t ID_ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ - __IM uint32_t ID_MMFR[4U]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ - __IM uint32_t ID_ISAR[6U]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ - __IM uint32_t CLIDR; /*!< Offset: 0x078 (R/ ) Cache Level ID register */ - __IM uint32_t CTR; /*!< Offset: 0x07C (R/ ) Cache Type register */ - __IM uint32_t CCSIDR; /*!< Offset: 0x080 (R/ ) Cache Size ID Register */ - __IOM uint32_t CSSELR; /*!< Offset: 0x084 (R/W) Cache Size Selection Register */ - __IOM uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ - __IOM uint32_t NSACR; /*!< Offset: 0x08C (R/W) Non-Secure Access Control Register */ - uint32_t RESERVED3[92U]; - __OM uint32_t STIR; /*!< Offset: 0x200 ( /W) Software Triggered Interrupt Register */ - uint32_t RESERVED4[15U]; - __IM uint32_t MVFR0; /*!< Offset: 0x240 (R/ ) Media and VFP Feature Register 0 */ - __IM uint32_t MVFR1; /*!< Offset: 0x244 (R/ ) Media and VFP Feature Register 1 */ - __IM uint32_t MVFR2; /*!< Offset: 0x248 (R/ ) Media and VFP Feature Register 2 */ - uint32_t RESERVED5[1U]; - __OM uint32_t ICIALLU; /*!< Offset: 0x250 ( /W) I-Cache Invalidate All to PoU */ - uint32_t RESERVED6[1U]; - __OM uint32_t ICIMVAU; /*!< Offset: 0x258 ( /W) I-Cache Invalidate by MVA to PoU */ - __OM uint32_t DCIMVAC; /*!< Offset: 0x25C ( /W) D-Cache Invalidate by MVA to PoC */ - __OM uint32_t DCISW; /*!< Offset: 0x260 ( /W) D-Cache Invalidate by Set-way */ - __OM uint32_t DCCMVAU; /*!< Offset: 0x264 ( /W) D-Cache Clean by MVA to PoU */ - __OM uint32_t DCCMVAC; /*!< Offset: 0x268 ( /W) D-Cache Clean by MVA to PoC */ - __OM uint32_t DCCSW; /*!< Offset: 0x26C ( /W) D-Cache Clean by Set-way */ - __OM uint32_t DCCIMVAC; /*!< Offset: 0x270 ( /W) D-Cache Clean and Invalidate by MVA to PoC */ - __OM uint32_t DCCISW; /*!< Offset: 0x274 ( /W) D-Cache Clean and Invalidate by Set-way */ -} SCB_Type; - -/* SCB CPUID Register Definitions */ -#define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ -#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ - -#define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ -#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ - -#define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ -#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ - -#define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ -#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ - -#define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ -#define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ - -/* SCB Interrupt Control State Register Definitions */ -#define SCB_ICSR_PENDNMISET_Pos 31U /*!< SCB ICSR: PENDNMISET Position */ -#define SCB_ICSR_PENDNMISET_Msk (1UL << SCB_ICSR_PENDNMISET_Pos) /*!< SCB ICSR: PENDNMISET Mask */ - -#define SCB_ICSR_NMIPENDSET_Pos SCB_ICSR_PENDNMISET_Pos /*!< SCB ICSR: NMIPENDSET Position, backward compatibility */ -#define SCB_ICSR_NMIPENDSET_Msk SCB_ICSR_PENDNMISET_Msk /*!< SCB ICSR: NMIPENDSET Mask, backward compatibility */ - -#define SCB_ICSR_PENDNMICLR_Pos 30U /*!< SCB ICSR: PENDNMICLR Position */ -#define SCB_ICSR_PENDNMICLR_Msk (1UL << SCB_ICSR_PENDNMICLR_Pos) /*!< SCB ICSR: PENDNMICLR Mask */ - -#define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ -#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ - -#define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ -#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ - -#define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ -#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ - -#define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ -#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ - -#define SCB_ICSR_STTNS_Pos 24U /*!< SCB ICSR: STTNS Position (Security Extension) */ -#define SCB_ICSR_STTNS_Msk (1UL << SCB_ICSR_STTNS_Pos) /*!< SCB ICSR: STTNS Mask (Security Extension) */ - -#define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ -#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ - -#define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ -#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ - -#define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ -#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ - -#define SCB_ICSR_RETTOBASE_Pos 11U /*!< SCB ICSR: RETTOBASE Position */ -#define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ - -#define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ -#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ - -/* SCB Vector Table Offset Register Definitions */ -#define SCB_VTOR_TBLOFF_Pos 7U /*!< SCB VTOR: TBLOFF Position */ -#define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ - -/* SCB Application Interrupt and Reset Control Register Definitions */ -#define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ -#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ - -#define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ -#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ - -#define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ -#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ - -#define SCB_AIRCR_PRIS_Pos 14U /*!< SCB AIRCR: PRIS Position */ -#define SCB_AIRCR_PRIS_Msk (1UL << SCB_AIRCR_PRIS_Pos) /*!< SCB AIRCR: PRIS Mask */ - -#define SCB_AIRCR_BFHFNMINS_Pos 13U /*!< SCB AIRCR: BFHFNMINS Position */ -#define SCB_AIRCR_BFHFNMINS_Msk (1UL << SCB_AIRCR_BFHFNMINS_Pos) /*!< SCB AIRCR: BFHFNMINS Mask */ - -#define SCB_AIRCR_PRIGROUP_Pos 8U /*!< SCB AIRCR: PRIGROUP Position */ -#define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ - -#define SCB_AIRCR_SYSRESETREQS_Pos 3U /*!< SCB AIRCR: SYSRESETREQS Position */ -#define SCB_AIRCR_SYSRESETREQS_Msk (1UL << SCB_AIRCR_SYSRESETREQS_Pos) /*!< SCB AIRCR: SYSRESETREQS Mask */ - -#define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ -#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ - -#define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ -#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ - -/* SCB System Control Register Definitions */ -#define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ -#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ - -#define SCB_SCR_SLEEPDEEPS_Pos 3U /*!< SCB SCR: SLEEPDEEPS Position */ -#define SCB_SCR_SLEEPDEEPS_Msk (1UL << SCB_SCR_SLEEPDEEPS_Pos) /*!< SCB SCR: SLEEPDEEPS Mask */ - -#define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ -#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ - -#define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ -#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ - -/* SCB Configuration Control Register Definitions */ -#define SCB_CCR_BP_Pos 18U /*!< SCB CCR: BP Position */ -#define SCB_CCR_BP_Msk (1UL << SCB_CCR_BP_Pos) /*!< SCB CCR: BP Mask */ - -#define SCB_CCR_IC_Pos 17U /*!< SCB CCR: IC Position */ -#define SCB_CCR_IC_Msk (1UL << SCB_CCR_IC_Pos) /*!< SCB CCR: IC Mask */ - -#define SCB_CCR_DC_Pos 16U /*!< SCB CCR: DC Position */ -#define SCB_CCR_DC_Msk (1UL << SCB_CCR_DC_Pos) /*!< SCB CCR: DC Mask */ - -#define SCB_CCR_STKOFHFNMIGN_Pos 10U /*!< SCB CCR: STKOFHFNMIGN Position */ -#define SCB_CCR_STKOFHFNMIGN_Msk (1UL << SCB_CCR_STKOFHFNMIGN_Pos) /*!< SCB CCR: STKOFHFNMIGN Mask */ - -#define SCB_CCR_BFHFNMIGN_Pos 8U /*!< SCB CCR: BFHFNMIGN Position */ -#define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ - -#define SCB_CCR_DIV_0_TRP_Pos 4U /*!< SCB CCR: DIV_0_TRP Position */ -#define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ - -#define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ -#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ - -#define SCB_CCR_USERSETMPEND_Pos 1U /*!< SCB CCR: USERSETMPEND Position */ -#define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ - -/* SCB System Handler Control and State Register Definitions */ -#define SCB_SHCSR_HARDFAULTPENDED_Pos 21U /*!< SCB SHCSR: HARDFAULTPENDED Position */ -#define SCB_SHCSR_HARDFAULTPENDED_Msk (1UL << SCB_SHCSR_HARDFAULTPENDED_Pos) /*!< SCB SHCSR: HARDFAULTPENDED Mask */ - -#define SCB_SHCSR_SECUREFAULTPENDED_Pos 20U /*!< SCB SHCSR: SECUREFAULTPENDED Position */ -#define SCB_SHCSR_SECUREFAULTPENDED_Msk (1UL << SCB_SHCSR_SECUREFAULTPENDED_Pos) /*!< SCB SHCSR: SECUREFAULTPENDED Mask */ - -#define SCB_SHCSR_SECUREFAULTENA_Pos 19U /*!< SCB SHCSR: SECUREFAULTENA Position */ -#define SCB_SHCSR_SECUREFAULTENA_Msk (1UL << SCB_SHCSR_SECUREFAULTENA_Pos) /*!< SCB SHCSR: SECUREFAULTENA Mask */ - -#define SCB_SHCSR_USGFAULTENA_Pos 18U /*!< SCB SHCSR: USGFAULTENA Position */ -#define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ - -#define SCB_SHCSR_BUSFAULTENA_Pos 17U /*!< SCB SHCSR: BUSFAULTENA Position */ -#define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ - -#define SCB_SHCSR_MEMFAULTENA_Pos 16U /*!< SCB SHCSR: MEMFAULTENA Position */ -#define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ - -#define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ -#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ - -#define SCB_SHCSR_BUSFAULTPENDED_Pos 14U /*!< SCB SHCSR: BUSFAULTPENDED Position */ -#define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ - -#define SCB_SHCSR_MEMFAULTPENDED_Pos 13U /*!< SCB SHCSR: MEMFAULTPENDED Position */ -#define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ - -#define SCB_SHCSR_USGFAULTPENDED_Pos 12U /*!< SCB SHCSR: USGFAULTPENDED Position */ -#define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ - -#define SCB_SHCSR_SYSTICKACT_Pos 11U /*!< SCB SHCSR: SYSTICKACT Position */ -#define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ - -#define SCB_SHCSR_PENDSVACT_Pos 10U /*!< SCB SHCSR: PENDSVACT Position */ -#define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ - -#define SCB_SHCSR_MONITORACT_Pos 8U /*!< SCB SHCSR: MONITORACT Position */ -#define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ - -#define SCB_SHCSR_SVCALLACT_Pos 7U /*!< SCB SHCSR: SVCALLACT Position */ -#define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ - -#define SCB_SHCSR_NMIACT_Pos 5U /*!< SCB SHCSR: NMIACT Position */ -#define SCB_SHCSR_NMIACT_Msk (1UL << SCB_SHCSR_NMIACT_Pos) /*!< SCB SHCSR: NMIACT Mask */ - -#define SCB_SHCSR_SECUREFAULTACT_Pos 4U /*!< SCB SHCSR: SECUREFAULTACT Position */ -#define SCB_SHCSR_SECUREFAULTACT_Msk (1UL << SCB_SHCSR_SECUREFAULTACT_Pos) /*!< SCB SHCSR: SECUREFAULTACT Mask */ - -#define SCB_SHCSR_USGFAULTACT_Pos 3U /*!< SCB SHCSR: USGFAULTACT Position */ -#define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ - -#define SCB_SHCSR_HARDFAULTACT_Pos 2U /*!< SCB SHCSR: HARDFAULTACT Position */ -#define SCB_SHCSR_HARDFAULTACT_Msk (1UL << SCB_SHCSR_HARDFAULTACT_Pos) /*!< SCB SHCSR: HARDFAULTACT Mask */ - -#define SCB_SHCSR_BUSFAULTACT_Pos 1U /*!< SCB SHCSR: BUSFAULTACT Position */ -#define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ - -#define SCB_SHCSR_MEMFAULTACT_Pos 0U /*!< SCB SHCSR: MEMFAULTACT Position */ -#define SCB_SHCSR_MEMFAULTACT_Msk (1UL /*<< SCB_SHCSR_MEMFAULTACT_Pos*/) /*!< SCB SHCSR: MEMFAULTACT Mask */ - -/* SCB Configurable Fault Status Register Definitions */ -#define SCB_CFSR_USGFAULTSR_Pos 16U /*!< SCB CFSR: Usage Fault Status Register Position */ -#define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ - -#define SCB_CFSR_BUSFAULTSR_Pos 8U /*!< SCB CFSR: Bus Fault Status Register Position */ -#define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ - -#define SCB_CFSR_MEMFAULTSR_Pos 0U /*!< SCB CFSR: Memory Manage Fault Status Register Position */ -#define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL /*<< SCB_CFSR_MEMFAULTSR_Pos*/) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ - -/* MemManage Fault Status Register (part of SCB Configurable Fault Status Register) */ -#define SCB_CFSR_MMARVALID_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 7U) /*!< SCB CFSR (MMFSR): MMARVALID Position */ -#define SCB_CFSR_MMARVALID_Msk (1UL << SCB_CFSR_MMARVALID_Pos) /*!< SCB CFSR (MMFSR): MMARVALID Mask */ - -#define SCB_CFSR_MLSPERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 5U) /*!< SCB CFSR (MMFSR): MLSPERR Position */ -#define SCB_CFSR_MLSPERR_Msk (1UL << SCB_CFSR_MLSPERR_Pos) /*!< SCB CFSR (MMFSR): MLSPERR Mask */ - -#define SCB_CFSR_MSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 4U) /*!< SCB CFSR (MMFSR): MSTKERR Position */ -#define SCB_CFSR_MSTKERR_Msk (1UL << SCB_CFSR_MSTKERR_Pos) /*!< SCB CFSR (MMFSR): MSTKERR Mask */ - -#define SCB_CFSR_MUNSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 3U) /*!< SCB CFSR (MMFSR): MUNSTKERR Position */ -#define SCB_CFSR_MUNSTKERR_Msk (1UL << SCB_CFSR_MUNSTKERR_Pos) /*!< SCB CFSR (MMFSR): MUNSTKERR Mask */ - -#define SCB_CFSR_DACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 1U) /*!< SCB CFSR (MMFSR): DACCVIOL Position */ -#define SCB_CFSR_DACCVIOL_Msk (1UL << SCB_CFSR_DACCVIOL_Pos) /*!< SCB CFSR (MMFSR): DACCVIOL Mask */ - -#define SCB_CFSR_IACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 0U) /*!< SCB CFSR (MMFSR): IACCVIOL Position */ -#define SCB_CFSR_IACCVIOL_Msk (1UL /*<< SCB_CFSR_IACCVIOL_Pos*/) /*!< SCB CFSR (MMFSR): IACCVIOL Mask */ - -/* BusFault Status Register (part of SCB Configurable Fault Status Register) */ -#define SCB_CFSR_BFARVALID_Pos (SCB_CFSR_BUSFAULTSR_Pos + 7U) /*!< SCB CFSR (BFSR): BFARVALID Position */ -#define SCB_CFSR_BFARVALID_Msk (1UL << SCB_CFSR_BFARVALID_Pos) /*!< SCB CFSR (BFSR): BFARVALID Mask */ - -#define SCB_CFSR_LSPERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 5U) /*!< SCB CFSR (BFSR): LSPERR Position */ -#define SCB_CFSR_LSPERR_Msk (1UL << SCB_CFSR_LSPERR_Pos) /*!< SCB CFSR (BFSR): LSPERR Mask */ - -#define SCB_CFSR_STKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 4U) /*!< SCB CFSR (BFSR): STKERR Position */ -#define SCB_CFSR_STKERR_Msk (1UL << SCB_CFSR_STKERR_Pos) /*!< SCB CFSR (BFSR): STKERR Mask */ - -#define SCB_CFSR_UNSTKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 3U) /*!< SCB CFSR (BFSR): UNSTKERR Position */ -#define SCB_CFSR_UNSTKERR_Msk (1UL << SCB_CFSR_UNSTKERR_Pos) /*!< SCB CFSR (BFSR): UNSTKERR Mask */ - -#define SCB_CFSR_IMPRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 2U) /*!< SCB CFSR (BFSR): IMPRECISERR Position */ -#define SCB_CFSR_IMPRECISERR_Msk (1UL << SCB_CFSR_IMPRECISERR_Pos) /*!< SCB CFSR (BFSR): IMPRECISERR Mask */ - -#define SCB_CFSR_PRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 1U) /*!< SCB CFSR (BFSR): PRECISERR Position */ -#define SCB_CFSR_PRECISERR_Msk (1UL << SCB_CFSR_PRECISERR_Pos) /*!< SCB CFSR (BFSR): PRECISERR Mask */ - -#define SCB_CFSR_IBUSERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 0U) /*!< SCB CFSR (BFSR): IBUSERR Position */ -#define SCB_CFSR_IBUSERR_Msk (1UL << SCB_CFSR_IBUSERR_Pos) /*!< SCB CFSR (BFSR): IBUSERR Mask */ - -/* UsageFault Status Register (part of SCB Configurable Fault Status Register) */ -#define SCB_CFSR_DIVBYZERO_Pos (SCB_CFSR_USGFAULTSR_Pos + 9U) /*!< SCB CFSR (UFSR): DIVBYZERO Position */ -#define SCB_CFSR_DIVBYZERO_Msk (1UL << SCB_CFSR_DIVBYZERO_Pos) /*!< SCB CFSR (UFSR): DIVBYZERO Mask */ - -#define SCB_CFSR_UNALIGNED_Pos (SCB_CFSR_USGFAULTSR_Pos + 8U) /*!< SCB CFSR (UFSR): UNALIGNED Position */ -#define SCB_CFSR_UNALIGNED_Msk (1UL << SCB_CFSR_UNALIGNED_Pos) /*!< SCB CFSR (UFSR): UNALIGNED Mask */ - -#define SCB_CFSR_STKOF_Pos (SCB_CFSR_USGFAULTSR_Pos + 4U) /*!< SCB CFSR (UFSR): STKOF Position */ -#define SCB_CFSR_STKOF_Msk (1UL << SCB_CFSR_STKOF_Pos) /*!< SCB CFSR (UFSR): STKOF Mask */ - -#define SCB_CFSR_NOCP_Pos (SCB_CFSR_USGFAULTSR_Pos + 3U) /*!< SCB CFSR (UFSR): NOCP Position */ -#define SCB_CFSR_NOCP_Msk (1UL << SCB_CFSR_NOCP_Pos) /*!< SCB CFSR (UFSR): NOCP Mask */ - -#define SCB_CFSR_INVPC_Pos (SCB_CFSR_USGFAULTSR_Pos + 2U) /*!< SCB CFSR (UFSR): INVPC Position */ -#define SCB_CFSR_INVPC_Msk (1UL << SCB_CFSR_INVPC_Pos) /*!< SCB CFSR (UFSR): INVPC Mask */ - -#define SCB_CFSR_INVSTATE_Pos (SCB_CFSR_USGFAULTSR_Pos + 1U) /*!< SCB CFSR (UFSR): INVSTATE Position */ -#define SCB_CFSR_INVSTATE_Msk (1UL << SCB_CFSR_INVSTATE_Pos) /*!< SCB CFSR (UFSR): INVSTATE Mask */ - -#define SCB_CFSR_UNDEFINSTR_Pos (SCB_CFSR_USGFAULTSR_Pos + 0U) /*!< SCB CFSR (UFSR): UNDEFINSTR Position */ -#define SCB_CFSR_UNDEFINSTR_Msk (1UL << SCB_CFSR_UNDEFINSTR_Pos) /*!< SCB CFSR (UFSR): UNDEFINSTR Mask */ - -/* SCB Hard Fault Status Register Definitions */ -#define SCB_HFSR_DEBUGEVT_Pos 31U /*!< SCB HFSR: DEBUGEVT Position */ -#define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ - -#define SCB_HFSR_FORCED_Pos 30U /*!< SCB HFSR: FORCED Position */ -#define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ - -#define SCB_HFSR_VECTTBL_Pos 1U /*!< SCB HFSR: VECTTBL Position */ -#define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ - -/* SCB Debug Fault Status Register Definitions */ -#define SCB_DFSR_EXTERNAL_Pos 4U /*!< SCB DFSR: EXTERNAL Position */ -#define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ - -#define SCB_DFSR_VCATCH_Pos 3U /*!< SCB DFSR: VCATCH Position */ -#define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ - -#define SCB_DFSR_DWTTRAP_Pos 2U /*!< SCB DFSR: DWTTRAP Position */ -#define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ - -#define SCB_DFSR_BKPT_Pos 1U /*!< SCB DFSR: BKPT Position */ -#define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ - -#define SCB_DFSR_HALTED_Pos 0U /*!< SCB DFSR: HALTED Position */ -#define SCB_DFSR_HALTED_Msk (1UL /*<< SCB_DFSR_HALTED_Pos*/) /*!< SCB DFSR: HALTED Mask */ - -/* SCB Non-Secure Access Control Register Definitions */ -#define SCB_NSACR_CP11_Pos 11U /*!< SCB NSACR: CP11 Position */ -#define SCB_NSACR_CP11_Msk (1UL << SCB_NSACR_CP11_Pos) /*!< SCB NSACR: CP11 Mask */ - -#define SCB_NSACR_CP10_Pos 10U /*!< SCB NSACR: CP10 Position */ -#define SCB_NSACR_CP10_Msk (1UL << SCB_NSACR_CP10_Pos) /*!< SCB NSACR: CP10 Mask */ - -#define SCB_NSACR_CPn_Pos 0U /*!< SCB NSACR: CPn Position */ -#define SCB_NSACR_CPn_Msk (1UL /*<< SCB_NSACR_CPn_Pos*/) /*!< SCB NSACR: CPn Mask */ - -/* SCB Cache Level ID Register Definitions */ -#define SCB_CLIDR_LOUU_Pos 27U /*!< SCB CLIDR: LoUU Position */ -#define SCB_CLIDR_LOUU_Msk (7UL << SCB_CLIDR_LOUU_Pos) /*!< SCB CLIDR: LoUU Mask */ - -#define SCB_CLIDR_LOC_Pos 24U /*!< SCB CLIDR: LoC Position */ -#define SCB_CLIDR_LOC_Msk (7UL << SCB_CLIDR_LOC_Pos) /*!< SCB CLIDR: LoC Mask */ - -/* SCB Cache Type Register Definitions */ -#define SCB_CTR_FORMAT_Pos 29U /*!< SCB CTR: Format Position */ -#define SCB_CTR_FORMAT_Msk (7UL << SCB_CTR_FORMAT_Pos) /*!< SCB CTR: Format Mask */ - -#define SCB_CTR_CWG_Pos 24U /*!< SCB CTR: CWG Position */ -#define SCB_CTR_CWG_Msk (0xFUL << SCB_CTR_CWG_Pos) /*!< SCB CTR: CWG Mask */ - -#define SCB_CTR_ERG_Pos 20U /*!< SCB CTR: ERG Position */ -#define SCB_CTR_ERG_Msk (0xFUL << SCB_CTR_ERG_Pos) /*!< SCB CTR: ERG Mask */ - -#define SCB_CTR_DMINLINE_Pos 16U /*!< SCB CTR: DminLine Position */ -#define SCB_CTR_DMINLINE_Msk (0xFUL << SCB_CTR_DMINLINE_Pos) /*!< SCB CTR: DminLine Mask */ - -#define SCB_CTR_IMINLINE_Pos 0U /*!< SCB CTR: ImInLine Position */ -#define SCB_CTR_IMINLINE_Msk (0xFUL /*<< SCB_CTR_IMINLINE_Pos*/) /*!< SCB CTR: ImInLine Mask */ - -/* SCB Cache Size ID Register Definitions */ -#define SCB_CCSIDR_WT_Pos 31U /*!< SCB CCSIDR: WT Position */ -#define SCB_CCSIDR_WT_Msk (1UL << SCB_CCSIDR_WT_Pos) /*!< SCB CCSIDR: WT Mask */ - -#define SCB_CCSIDR_WB_Pos 30U /*!< SCB CCSIDR: WB Position */ -#define SCB_CCSIDR_WB_Msk (1UL << SCB_CCSIDR_WB_Pos) /*!< SCB CCSIDR: WB Mask */ - -#define SCB_CCSIDR_RA_Pos 29U /*!< SCB CCSIDR: RA Position */ -#define SCB_CCSIDR_RA_Msk (1UL << SCB_CCSIDR_RA_Pos) /*!< SCB CCSIDR: RA Mask */ - -#define SCB_CCSIDR_WA_Pos 28U /*!< SCB CCSIDR: WA Position */ -#define SCB_CCSIDR_WA_Msk (1UL << SCB_CCSIDR_WA_Pos) /*!< SCB CCSIDR: WA Mask */ - -#define SCB_CCSIDR_NUMSETS_Pos 13U /*!< SCB CCSIDR: NumSets Position */ -#define SCB_CCSIDR_NUMSETS_Msk (0x7FFFUL << SCB_CCSIDR_NUMSETS_Pos) /*!< SCB CCSIDR: NumSets Mask */ - -#define SCB_CCSIDR_ASSOCIATIVITY_Pos 3U /*!< SCB CCSIDR: Associativity Position */ -#define SCB_CCSIDR_ASSOCIATIVITY_Msk (0x3FFUL << SCB_CCSIDR_ASSOCIATIVITY_Pos) /*!< SCB CCSIDR: Associativity Mask */ - -#define SCB_CCSIDR_LINESIZE_Pos 0U /*!< SCB CCSIDR: LineSize Position */ -#define SCB_CCSIDR_LINESIZE_Msk (7UL /*<< SCB_CCSIDR_LINESIZE_Pos*/) /*!< SCB CCSIDR: LineSize Mask */ - -/* SCB Cache Size Selection Register Definitions */ -#define SCB_CSSELR_LEVEL_Pos 1U /*!< SCB CSSELR: Level Position */ -#define SCB_CSSELR_LEVEL_Msk (7UL << SCB_CSSELR_LEVEL_Pos) /*!< SCB CSSELR: Level Mask */ - -#define SCB_CSSELR_IND_Pos 0U /*!< SCB CSSELR: InD Position */ -#define SCB_CSSELR_IND_Msk (1UL /*<< SCB_CSSELR_IND_Pos*/) /*!< SCB CSSELR: InD Mask */ - -/* SCB Software Triggered Interrupt Register Definitions */ -#define SCB_STIR_INTID_Pos 0U /*!< SCB STIR: INTID Position */ -#define SCB_STIR_INTID_Msk (0x1FFUL /*<< SCB_STIR_INTID_Pos*/) /*!< SCB STIR: INTID Mask */ - -/* SCB D-Cache Invalidate by Set-way Register Definitions */ -#define SCB_DCISW_WAY_Pos 30U /*!< SCB DCISW: Way Position */ -#define SCB_DCISW_WAY_Msk (3UL << SCB_DCISW_WAY_Pos) /*!< SCB DCISW: Way Mask */ - -#define SCB_DCISW_SET_Pos 5U /*!< SCB DCISW: Set Position */ -#define SCB_DCISW_SET_Msk (0x1FFUL << SCB_DCISW_SET_Pos) /*!< SCB DCISW: Set Mask */ - -/* SCB D-Cache Clean by Set-way Register Definitions */ -#define SCB_DCCSW_WAY_Pos 30U /*!< SCB DCCSW: Way Position */ -#define SCB_DCCSW_WAY_Msk (3UL << SCB_DCCSW_WAY_Pos) /*!< SCB DCCSW: Way Mask */ - -#define SCB_DCCSW_SET_Pos 5U /*!< SCB DCCSW: Set Position */ -#define SCB_DCCSW_SET_Msk (0x1FFUL << SCB_DCCSW_SET_Pos) /*!< SCB DCCSW: Set Mask */ - -/* SCB D-Cache Clean and Invalidate by Set-way Register Definitions */ -#define SCB_DCCISW_WAY_Pos 30U /*!< SCB DCCISW: Way Position */ -#define SCB_DCCISW_WAY_Msk (3UL << SCB_DCCISW_WAY_Pos) /*!< SCB DCCISW: Way Mask */ - -#define SCB_DCCISW_SET_Pos 5U /*!< SCB DCCISW: Set Position */ -#define SCB_DCCISW_SET_Msk (0x1FFUL << SCB_DCCISW_SET_Pos) /*!< SCB DCCISW: Set Mask */ - -/*@} end of group CMSIS_SCB */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) - \brief Type definitions for the System Control and ID Register not in the SCB - @{ - */ - -/** - \brief Structure type to access the System Control and ID Register not in the SCB. - */ -typedef struct -{ - uint32_t RESERVED0[1U]; - __IM uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ - __IOM uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ - __IOM uint32_t CPPWR; /*!< Offset: 0x00C (R/W) Coprocessor Power Control Register */ -} SCnSCB_Type; - -/* Interrupt Controller Type Register Definitions */ -#define SCnSCB_ICTR_INTLINESNUM_Pos 0U /*!< ICTR: INTLINESNUM Position */ -#define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL /*<< SCnSCB_ICTR_INTLINESNUM_Pos*/) /*!< ICTR: INTLINESNUM Mask */ - -/*@} end of group CMSIS_SCnotSCB */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SysTick System Tick Timer (SysTick) - \brief Type definitions for the System Timer Registers. - @{ - */ - -/** - \brief Structure type to access the System Timer (SysTick). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ - __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ - __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ - __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ -} SysTick_Type; - -/* SysTick Control / Status Register Definitions */ -#define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ -#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ - -#define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ -#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ - -#define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ -#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ - -#define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ -#define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ - -/* SysTick Reload Register Definitions */ -#define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ -#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ - -/* SysTick Current Register Definitions */ -#define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ -#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ - -/* SysTick Calibration Register Definitions */ -#define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ -#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ - -#define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ -#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ - -#define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ -#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ - -/*@} end of group CMSIS_SysTick */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_ITM Instrumentation Trace Macrocell (ITM) - \brief Type definitions for the Instrumentation Trace Macrocell (ITM) - @{ - */ - -/** - \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). - */ -typedef struct -{ - __OM union - { - __OM uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ - __OM uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ - __OM uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ - } PORT [32U]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ - uint32_t RESERVED0[864U]; - __IOM uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ - uint32_t RESERVED1[15U]; - __IOM uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ - uint32_t RESERVED2[15U]; - __IOM uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ - uint32_t RESERVED3[32U]; - uint32_t RESERVED4[43U]; - __OM uint32_t LAR; /*!< Offset: 0xFB0 ( /W) ITM Lock Access Register */ - __IM uint32_t LSR; /*!< Offset: 0xFB4 (R/ ) ITM Lock Status Register */ - uint32_t RESERVED5[1U]; - __IM uint32_t DEVARCH; /*!< Offset: 0xFBC (R/ ) ITM Device Architecture Register */ - uint32_t RESERVED6[4U]; - __IM uint32_t PID4; /*!< Offset: 0xFD0 (R/ ) ITM Peripheral Identification Register #4 */ - __IM uint32_t PID5; /*!< Offset: 0xFD4 (R/ ) ITM Peripheral Identification Register #5 */ - __IM uint32_t PID6; /*!< Offset: 0xFD8 (R/ ) ITM Peripheral Identification Register #6 */ - __IM uint32_t PID7; /*!< Offset: 0xFDC (R/ ) ITM Peripheral Identification Register #7 */ - __IM uint32_t PID0; /*!< Offset: 0xFE0 (R/ ) ITM Peripheral Identification Register #0 */ - __IM uint32_t PID1; /*!< Offset: 0xFE4 (R/ ) ITM Peripheral Identification Register #1 */ - __IM uint32_t PID2; /*!< Offset: 0xFE8 (R/ ) ITM Peripheral Identification Register #2 */ - __IM uint32_t PID3; /*!< Offset: 0xFEC (R/ ) ITM Peripheral Identification Register #3 */ - __IM uint32_t CID0; /*!< Offset: 0xFF0 (R/ ) ITM Component Identification Register #0 */ - __IM uint32_t CID1; /*!< Offset: 0xFF4 (R/ ) ITM Component Identification Register #1 */ - __IM uint32_t CID2; /*!< Offset: 0xFF8 (R/ ) ITM Component Identification Register #2 */ - __IM uint32_t CID3; /*!< Offset: 0xFFC (R/ ) ITM Component Identification Register #3 */ -} ITM_Type; - -/* ITM Stimulus Port Register Definitions */ -#define ITM_STIM_DISABLED_Pos 1U /*!< ITM STIM: DISABLED Position */ -#define ITM_STIM_DISABLED_Msk (0x1UL << ITM_STIM_DISABLED_Pos) /*!< ITM STIM: DISABLED Mask */ - -#define ITM_STIM_FIFOREADY_Pos 0U /*!< ITM STIM: FIFOREADY Position */ -#define ITM_STIM_FIFOREADY_Msk (0x1UL /*<< ITM_STIM_FIFOREADY_Pos*/) /*!< ITM STIM: FIFOREADY Mask */ - -/* ITM Trace Privilege Register Definitions */ -#define ITM_TPR_PRIVMASK_Pos 0U /*!< ITM TPR: PRIVMASK Position */ -#define ITM_TPR_PRIVMASK_Msk (0xFFFFFFFFUL /*<< ITM_TPR_PRIVMASK_Pos*/) /*!< ITM TPR: PRIVMASK Mask */ - -/* ITM Trace Control Register Definitions */ -#define ITM_TCR_BUSY_Pos 23U /*!< ITM TCR: BUSY Position */ -#define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ - -#define ITM_TCR_TRACEBUSID_Pos 16U /*!< ITM TCR: ATBID Position */ -#define ITM_TCR_TRACEBUSID_Msk (0x7FUL << ITM_TCR_TRACEBUSID_Pos) /*!< ITM TCR: ATBID Mask */ - -#define ITM_TCR_GTSFREQ_Pos 10U /*!< ITM TCR: Global timestamp frequency Position */ -#define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ - -#define ITM_TCR_TSPRESCALE_Pos 8U /*!< ITM TCR: TSPRESCALE Position */ -#define ITM_TCR_TSPRESCALE_Msk (3UL << ITM_TCR_TSPRESCALE_Pos) /*!< ITM TCR: TSPRESCALE Mask */ - -#define ITM_TCR_STALLENA_Pos 5U /*!< ITM TCR: STALLENA Position */ -#define ITM_TCR_STALLENA_Msk (1UL << ITM_TCR_STALLENA_Pos) /*!< ITM TCR: STALLENA Mask */ - -#define ITM_TCR_SWOENA_Pos 4U /*!< ITM TCR: SWOENA Position */ -#define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ - -#define ITM_TCR_DWTENA_Pos 3U /*!< ITM TCR: DWTENA Position */ -#define ITM_TCR_DWTENA_Msk (1UL << ITM_TCR_DWTENA_Pos) /*!< ITM TCR: DWTENA Mask */ - -#define ITM_TCR_SYNCENA_Pos 2U /*!< ITM TCR: SYNCENA Position */ -#define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ - -#define ITM_TCR_TSENA_Pos 1U /*!< ITM TCR: TSENA Position */ -#define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ - -#define ITM_TCR_ITMENA_Pos 0U /*!< ITM TCR: ITM Enable bit Position */ -#define ITM_TCR_ITMENA_Msk (1UL /*<< ITM_TCR_ITMENA_Pos*/) /*!< ITM TCR: ITM Enable bit Mask */ - -/* ITM Lock Status Register Definitions */ -#define ITM_LSR_ByteAcc_Pos 2U /*!< ITM LSR: ByteAcc Position */ -#define ITM_LSR_ByteAcc_Msk (1UL << ITM_LSR_ByteAcc_Pos) /*!< ITM LSR: ByteAcc Mask */ - -#define ITM_LSR_Access_Pos 1U /*!< ITM LSR: Access Position */ -#define ITM_LSR_Access_Msk (1UL << ITM_LSR_Access_Pos) /*!< ITM LSR: Access Mask */ - -#define ITM_LSR_Present_Pos 0U /*!< ITM LSR: Present Position */ -#define ITM_LSR_Present_Msk (1UL /*<< ITM_LSR_Present_Pos*/) /*!< ITM LSR: Present Mask */ - -/*@}*/ /* end of group CMSIS_ITM */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) - \brief Type definitions for the Data Watchpoint and Trace (DWT) - @{ - */ - -/** - \brief Structure type to access the Data Watchpoint and Trace Register (DWT). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ - __IOM uint32_t CYCCNT; /*!< Offset: 0x004 (R/W) Cycle Count Register */ - __IOM uint32_t CPICNT; /*!< Offset: 0x008 (R/W) CPI Count Register */ - __IOM uint32_t EXCCNT; /*!< Offset: 0x00C (R/W) Exception Overhead Count Register */ - __IOM uint32_t SLEEPCNT; /*!< Offset: 0x010 (R/W) Sleep Count Register */ - __IOM uint32_t LSUCNT; /*!< Offset: 0x014 (R/W) LSU Count Register */ - __IOM uint32_t FOLDCNT; /*!< Offset: 0x018 (R/W) Folded-instruction Count Register */ - __IM uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ - __IOM uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ - uint32_t RESERVED1[1U]; - __IOM uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ - uint32_t RESERVED2[1U]; - __IOM uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ - uint32_t RESERVED3[1U]; - __IOM uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ - uint32_t RESERVED4[1U]; - __IOM uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ - uint32_t RESERVED5[1U]; - __IOM uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ - uint32_t RESERVED6[1U]; - __IOM uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ - uint32_t RESERVED7[1U]; - __IOM uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ - uint32_t RESERVED8[1U]; - __IOM uint32_t COMP4; /*!< Offset: 0x060 (R/W) Comparator Register 4 */ - uint32_t RESERVED9[1U]; - __IOM uint32_t FUNCTION4; /*!< Offset: 0x068 (R/W) Function Register 4 */ - uint32_t RESERVED10[1U]; - __IOM uint32_t COMP5; /*!< Offset: 0x070 (R/W) Comparator Register 5 */ - uint32_t RESERVED11[1U]; - __IOM uint32_t FUNCTION5; /*!< Offset: 0x078 (R/W) Function Register 5 */ - uint32_t RESERVED12[1U]; - __IOM uint32_t COMP6; /*!< Offset: 0x080 (R/W) Comparator Register 6 */ - uint32_t RESERVED13[1U]; - __IOM uint32_t FUNCTION6; /*!< Offset: 0x088 (R/W) Function Register 6 */ - uint32_t RESERVED14[1U]; - __IOM uint32_t COMP7; /*!< Offset: 0x090 (R/W) Comparator Register 7 */ - uint32_t RESERVED15[1U]; - __IOM uint32_t FUNCTION7; /*!< Offset: 0x098 (R/W) Function Register 7 */ - uint32_t RESERVED16[1U]; - __IOM uint32_t COMP8; /*!< Offset: 0x0A0 (R/W) Comparator Register 8 */ - uint32_t RESERVED17[1U]; - __IOM uint32_t FUNCTION8; /*!< Offset: 0x0A8 (R/W) Function Register 8 */ - uint32_t RESERVED18[1U]; - __IOM uint32_t COMP9; /*!< Offset: 0x0B0 (R/W) Comparator Register 9 */ - uint32_t RESERVED19[1U]; - __IOM uint32_t FUNCTION9; /*!< Offset: 0x0B8 (R/W) Function Register 9 */ - uint32_t RESERVED20[1U]; - __IOM uint32_t COMP10; /*!< Offset: 0x0C0 (R/W) Comparator Register 10 */ - uint32_t RESERVED21[1U]; - __IOM uint32_t FUNCTION10; /*!< Offset: 0x0C8 (R/W) Function Register 10 */ - uint32_t RESERVED22[1U]; - __IOM uint32_t COMP11; /*!< Offset: 0x0D0 (R/W) Comparator Register 11 */ - uint32_t RESERVED23[1U]; - __IOM uint32_t FUNCTION11; /*!< Offset: 0x0D8 (R/W) Function Register 11 */ - uint32_t RESERVED24[1U]; - __IOM uint32_t COMP12; /*!< Offset: 0x0E0 (R/W) Comparator Register 12 */ - uint32_t RESERVED25[1U]; - __IOM uint32_t FUNCTION12; /*!< Offset: 0x0E8 (R/W) Function Register 12 */ - uint32_t RESERVED26[1U]; - __IOM uint32_t COMP13; /*!< Offset: 0x0F0 (R/W) Comparator Register 13 */ - uint32_t RESERVED27[1U]; - __IOM uint32_t FUNCTION13; /*!< Offset: 0x0F8 (R/W) Function Register 13 */ - uint32_t RESERVED28[1U]; - __IOM uint32_t COMP14; /*!< Offset: 0x100 (R/W) Comparator Register 14 */ - uint32_t RESERVED29[1U]; - __IOM uint32_t FUNCTION14; /*!< Offset: 0x108 (R/W) Function Register 14 */ - uint32_t RESERVED30[1U]; - __IOM uint32_t COMP15; /*!< Offset: 0x110 (R/W) Comparator Register 15 */ - uint32_t RESERVED31[1U]; - __IOM uint32_t FUNCTION15; /*!< Offset: 0x118 (R/W) Function Register 15 */ - uint32_t RESERVED32[934U]; - __IM uint32_t LSR; /*!< Offset: 0xFB4 (R ) Lock Status Register */ - uint32_t RESERVED33[1U]; - __IM uint32_t DEVARCH; /*!< Offset: 0xFBC (R/ ) Device Architecture Register */ -} DWT_Type; - -/* DWT Control Register Definitions */ -#define DWT_CTRL_NUMCOMP_Pos 28U /*!< DWT CTRL: NUMCOMP Position */ -#define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ - -#define DWT_CTRL_NOTRCPKT_Pos 27U /*!< DWT CTRL: NOTRCPKT Position */ -#define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ - -#define DWT_CTRL_NOEXTTRIG_Pos 26U /*!< DWT CTRL: NOEXTTRIG Position */ -#define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ - -#define DWT_CTRL_NOCYCCNT_Pos 25U /*!< DWT CTRL: NOCYCCNT Position */ -#define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ - -#define DWT_CTRL_NOPRFCNT_Pos 24U /*!< DWT CTRL: NOPRFCNT Position */ -#define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ - -#define DWT_CTRL_CYCDISS_Pos 23U /*!< DWT CTRL: CYCDISS Position */ -#define DWT_CTRL_CYCDISS_Msk (0x1UL << DWT_CTRL_CYCDISS_Pos) /*!< DWT CTRL: CYCDISS Mask */ - -#define DWT_CTRL_CYCEVTENA_Pos 22U /*!< DWT CTRL: CYCEVTENA Position */ -#define DWT_CTRL_CYCEVTENA_Msk (0x1UL << DWT_CTRL_CYCEVTENA_Pos) /*!< DWT CTRL: CYCEVTENA Mask */ - -#define DWT_CTRL_FOLDEVTENA_Pos 21U /*!< DWT CTRL: FOLDEVTENA Position */ -#define DWT_CTRL_FOLDEVTENA_Msk (0x1UL << DWT_CTRL_FOLDEVTENA_Pos) /*!< DWT CTRL: FOLDEVTENA Mask */ - -#define DWT_CTRL_LSUEVTENA_Pos 20U /*!< DWT CTRL: LSUEVTENA Position */ -#define DWT_CTRL_LSUEVTENA_Msk (0x1UL << DWT_CTRL_LSUEVTENA_Pos) /*!< DWT CTRL: LSUEVTENA Mask */ - -#define DWT_CTRL_SLEEPEVTENA_Pos 19U /*!< DWT CTRL: SLEEPEVTENA Position */ -#define DWT_CTRL_SLEEPEVTENA_Msk (0x1UL << DWT_CTRL_SLEEPEVTENA_Pos) /*!< DWT CTRL: SLEEPEVTENA Mask */ - -#define DWT_CTRL_EXCEVTENA_Pos 18U /*!< DWT CTRL: EXCEVTENA Position */ -#define DWT_CTRL_EXCEVTENA_Msk (0x1UL << DWT_CTRL_EXCEVTENA_Pos) /*!< DWT CTRL: EXCEVTENA Mask */ - -#define DWT_CTRL_CPIEVTENA_Pos 17U /*!< DWT CTRL: CPIEVTENA Position */ -#define DWT_CTRL_CPIEVTENA_Msk (0x1UL << DWT_CTRL_CPIEVTENA_Pos) /*!< DWT CTRL: CPIEVTENA Mask */ - -#define DWT_CTRL_EXCTRCENA_Pos 16U /*!< DWT CTRL: EXCTRCENA Position */ -#define DWT_CTRL_EXCTRCENA_Msk (0x1UL << DWT_CTRL_EXCTRCENA_Pos) /*!< DWT CTRL: EXCTRCENA Mask */ - -#define DWT_CTRL_PCSAMPLENA_Pos 12U /*!< DWT CTRL: PCSAMPLENA Position */ -#define DWT_CTRL_PCSAMPLENA_Msk (0x1UL << DWT_CTRL_PCSAMPLENA_Pos) /*!< DWT CTRL: PCSAMPLENA Mask */ - -#define DWT_CTRL_SYNCTAP_Pos 10U /*!< DWT CTRL: SYNCTAP Position */ -#define DWT_CTRL_SYNCTAP_Msk (0x3UL << DWT_CTRL_SYNCTAP_Pos) /*!< DWT CTRL: SYNCTAP Mask */ - -#define DWT_CTRL_CYCTAP_Pos 9U /*!< DWT CTRL: CYCTAP Position */ -#define DWT_CTRL_CYCTAP_Msk (0x1UL << DWT_CTRL_CYCTAP_Pos) /*!< DWT CTRL: CYCTAP Mask */ - -#define DWT_CTRL_POSTINIT_Pos 5U /*!< DWT CTRL: POSTINIT Position */ -#define DWT_CTRL_POSTINIT_Msk (0xFUL << DWT_CTRL_POSTINIT_Pos) /*!< DWT CTRL: POSTINIT Mask */ - -#define DWT_CTRL_POSTPRESET_Pos 1U /*!< DWT CTRL: POSTPRESET Position */ -#define DWT_CTRL_POSTPRESET_Msk (0xFUL << DWT_CTRL_POSTPRESET_Pos) /*!< DWT CTRL: POSTPRESET Mask */ - -#define DWT_CTRL_CYCCNTENA_Pos 0U /*!< DWT CTRL: CYCCNTENA Position */ -#define DWT_CTRL_CYCCNTENA_Msk (0x1UL /*<< DWT_CTRL_CYCCNTENA_Pos*/) /*!< DWT CTRL: CYCCNTENA Mask */ - -/* DWT CPI Count Register Definitions */ -#define DWT_CPICNT_CPICNT_Pos 0U /*!< DWT CPICNT: CPICNT Position */ -#define DWT_CPICNT_CPICNT_Msk (0xFFUL /*<< DWT_CPICNT_CPICNT_Pos*/) /*!< DWT CPICNT: CPICNT Mask */ - -/* DWT Exception Overhead Count Register Definitions */ -#define DWT_EXCCNT_EXCCNT_Pos 0U /*!< DWT EXCCNT: EXCCNT Position */ -#define DWT_EXCCNT_EXCCNT_Msk (0xFFUL /*<< DWT_EXCCNT_EXCCNT_Pos*/) /*!< DWT EXCCNT: EXCCNT Mask */ - -/* DWT Sleep Count Register Definitions */ -#define DWT_SLEEPCNT_SLEEPCNT_Pos 0U /*!< DWT SLEEPCNT: SLEEPCNT Position */ -#define DWT_SLEEPCNT_SLEEPCNT_Msk (0xFFUL /*<< DWT_SLEEPCNT_SLEEPCNT_Pos*/) /*!< DWT SLEEPCNT: SLEEPCNT Mask */ - -/* DWT LSU Count Register Definitions */ -#define DWT_LSUCNT_LSUCNT_Pos 0U /*!< DWT LSUCNT: LSUCNT Position */ -#define DWT_LSUCNT_LSUCNT_Msk (0xFFUL /*<< DWT_LSUCNT_LSUCNT_Pos*/) /*!< DWT LSUCNT: LSUCNT Mask */ - -/* DWT Folded-instruction Count Register Definitions */ -#define DWT_FOLDCNT_FOLDCNT_Pos 0U /*!< DWT FOLDCNT: FOLDCNT Position */ -#define DWT_FOLDCNT_FOLDCNT_Msk (0xFFUL /*<< DWT_FOLDCNT_FOLDCNT_Pos*/) /*!< DWT FOLDCNT: FOLDCNT Mask */ - -/* DWT Comparator Function Register Definitions */ -#define DWT_FUNCTION_ID_Pos 27U /*!< DWT FUNCTION: ID Position */ -#define DWT_FUNCTION_ID_Msk (0x1FUL << DWT_FUNCTION_ID_Pos) /*!< DWT FUNCTION: ID Mask */ - -#define DWT_FUNCTION_MATCHED_Pos 24U /*!< DWT FUNCTION: MATCHED Position */ -#define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ - -#define DWT_FUNCTION_DATAVSIZE_Pos 10U /*!< DWT FUNCTION: DATAVSIZE Position */ -#define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ - -#define DWT_FUNCTION_ACTION_Pos 4U /*!< DWT FUNCTION: ACTION Position */ -#define DWT_FUNCTION_ACTION_Msk (0x1UL << DWT_FUNCTION_ACTION_Pos) /*!< DWT FUNCTION: ACTION Mask */ - -#define DWT_FUNCTION_MATCH_Pos 0U /*!< DWT FUNCTION: MATCH Position */ -#define DWT_FUNCTION_MATCH_Msk (0xFUL /*<< DWT_FUNCTION_MATCH_Pos*/) /*!< DWT FUNCTION: MATCH Mask */ - -/*@}*/ /* end of group CMSIS_DWT */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_TPI Trace Port Interface (TPI) - \brief Type definitions for the Trace Port Interface (TPI) - @{ - */ - -/** - \brief Structure type to access the Trace Port Interface Register (TPI). - */ -typedef struct -{ - __IM uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Size Register */ - __IOM uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Size Register */ - uint32_t RESERVED0[2U]; - __IOM uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ - uint32_t RESERVED1[55U]; - __IOM uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ - uint32_t RESERVED2[131U]; - __IM uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ - __IOM uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ - __IOM uint32_t PSCR; /*!< Offset: 0x308 (R/W) Periodic Synchronization Control Register */ - uint32_t RESERVED3[759U]; - __IM uint32_t TRIGGER; /*!< Offset: 0xEE8 (R/ ) TRIGGER Register */ - __IM uint32_t ITFTTD0; /*!< Offset: 0xEEC (R/ ) Integration Test FIFO Test Data 0 Register */ - __IOM uint32_t ITATBCTR2; /*!< Offset: 0xEF0 (R/W) Integration Test ATB Control Register 2 */ - uint32_t RESERVED4[1U]; - __IM uint32_t ITATBCTR0; /*!< Offset: 0xEF8 (R/ ) Integration Test ATB Control Register 0 */ - __IM uint32_t ITFTTD1; /*!< Offset: 0xEFC (R/ ) Integration Test FIFO Test Data 1 Register */ - __IOM uint32_t ITCTRL; /*!< Offset: 0xF00 (R/W) Integration Mode Control */ - uint32_t RESERVED5[39U]; - __IOM uint32_t CLAIMSET; /*!< Offset: 0xFA0 (R/W) Claim tag set */ - __IOM uint32_t CLAIMCLR; /*!< Offset: 0xFA4 (R/W) Claim tag clear */ - uint32_t RESERVED7[8U]; - __IM uint32_t DEVID; /*!< Offset: 0xFC8 (R/ ) Device Configuration Register */ - __IM uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) Device Type Identifier Register */ -} TPI_Type; - -/* TPI Asynchronous Clock Prescaler Register Definitions */ -#define TPI_ACPR_PRESCALER_Pos 0U /*!< TPI ACPR: PRESCALER Position */ -#define TPI_ACPR_PRESCALER_Msk (0x1FFFUL /*<< TPI_ACPR_PRESCALER_Pos*/) /*!< TPI ACPR: PRESCALER Mask */ - -/* TPI Selected Pin Protocol Register Definitions */ -#define TPI_SPPR_TXMODE_Pos 0U /*!< TPI SPPR: TXMODE Position */ -#define TPI_SPPR_TXMODE_Msk (0x3UL /*<< TPI_SPPR_TXMODE_Pos*/) /*!< TPI SPPR: TXMODE Mask */ - -/* TPI Formatter and Flush Status Register Definitions */ -#define TPI_FFSR_FtNonStop_Pos 3U /*!< TPI FFSR: FtNonStop Position */ -#define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ - -#define TPI_FFSR_TCPresent_Pos 2U /*!< TPI FFSR: TCPresent Position */ -#define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ - -#define TPI_FFSR_FtStopped_Pos 1U /*!< TPI FFSR: FtStopped Position */ -#define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ - -#define TPI_FFSR_FlInProg_Pos 0U /*!< TPI FFSR: FlInProg Position */ -#define TPI_FFSR_FlInProg_Msk (0x1UL /*<< TPI_FFSR_FlInProg_Pos*/) /*!< TPI FFSR: FlInProg Mask */ - -/* TPI Formatter and Flush Control Register Definitions */ -#define TPI_FFCR_TrigIn_Pos 8U /*!< TPI FFCR: TrigIn Position */ -#define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ - -#define TPI_FFCR_FOnMan_Pos 6U /*!< TPI FFCR: FOnMan Position */ -#define TPI_FFCR_FOnMan_Msk (0x1UL << TPI_FFCR_FOnMan_Pos) /*!< TPI FFCR: FOnMan Mask */ - -#define TPI_FFCR_EnFCont_Pos 1U /*!< TPI FFCR: EnFCont Position */ -#define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ - -/* TPI TRIGGER Register Definitions */ -#define TPI_TRIGGER_TRIGGER_Pos 0U /*!< TPI TRIGGER: TRIGGER Position */ -#define TPI_TRIGGER_TRIGGER_Msk (0x1UL /*<< TPI_TRIGGER_TRIGGER_Pos*/) /*!< TPI TRIGGER: TRIGGER Mask */ - -/* TPI Integration Test FIFO Test Data 0 Register Definitions */ -#define TPI_ITFTTD0_ATB_IF2_ATVALID_Pos 29U /*!< TPI ITFTTD0: ATB Interface 2 ATVALIDPosition */ -#define TPI_ITFTTD0_ATB_IF2_ATVALID_Msk (0x3UL << TPI_ITFTTD0_ATB_IF2_ATVALID_Pos) /*!< TPI ITFTTD0: ATB Interface 2 ATVALID Mask */ - -#define TPI_ITFTTD0_ATB_IF2_bytecount_Pos 27U /*!< TPI ITFTTD0: ATB Interface 2 byte count Position */ -#define TPI_ITFTTD0_ATB_IF2_bytecount_Msk (0x3UL << TPI_ITFTTD0_ATB_IF2_bytecount_Pos) /*!< TPI ITFTTD0: ATB Interface 2 byte count Mask */ - -#define TPI_ITFTTD0_ATB_IF1_ATVALID_Pos 26U /*!< TPI ITFTTD0: ATB Interface 1 ATVALID Position */ -#define TPI_ITFTTD0_ATB_IF1_ATVALID_Msk (0x3UL << TPI_ITFTTD0_ATB_IF1_ATVALID_Pos) /*!< TPI ITFTTD0: ATB Interface 1 ATVALID Mask */ - -#define TPI_ITFTTD0_ATB_IF1_bytecount_Pos 24U /*!< TPI ITFTTD0: ATB Interface 1 byte count Position */ -#define TPI_ITFTTD0_ATB_IF1_bytecount_Msk (0x3UL << TPI_ITFTTD0_ATB_IF1_bytecount_Pos) /*!< TPI ITFTTD0: ATB Interface 1 byte countt Mask */ - -#define TPI_ITFTTD0_ATB_IF1_data2_Pos 16U /*!< TPI ITFTTD0: ATB Interface 1 data2 Position */ -#define TPI_ITFTTD0_ATB_IF1_data2_Msk (0xFFUL << TPI_ITFTTD0_ATB_IF1_data1_Pos) /*!< TPI ITFTTD0: ATB Interface 1 data2 Mask */ - -#define TPI_ITFTTD0_ATB_IF1_data1_Pos 8U /*!< TPI ITFTTD0: ATB Interface 1 data1 Position */ -#define TPI_ITFTTD0_ATB_IF1_data1_Msk (0xFFUL << TPI_ITFTTD0_ATB_IF1_data1_Pos) /*!< TPI ITFTTD0: ATB Interface 1 data1 Mask */ - -#define TPI_ITFTTD0_ATB_IF1_data0_Pos 0U /*!< TPI ITFTTD0: ATB Interface 1 data0 Position */ -#define TPI_ITFTTD0_ATB_IF1_data0_Msk (0xFFUL /*<< TPI_ITFTTD0_ATB_IF1_data0_Pos*/) /*!< TPI ITFTTD0: ATB Interface 1 data0 Mask */ - -/* TPI Integration Test ATB Control Register 2 Register Definitions */ -#define TPI_ITATBCTR2_AFVALID2S_Pos 1U /*!< TPI ITATBCTR2: AFVALID2S Position */ -#define TPI_ITATBCTR2_AFVALID2S_Msk (0x1UL << TPI_ITATBCTR2_AFVALID2S_Pos) /*!< TPI ITATBCTR2: AFVALID2SS Mask */ - -#define TPI_ITATBCTR2_AFVALID1S_Pos 1U /*!< TPI ITATBCTR2: AFVALID1S Position */ -#define TPI_ITATBCTR2_AFVALID1S_Msk (0x1UL << TPI_ITATBCTR2_AFVALID1S_Pos) /*!< TPI ITATBCTR2: AFVALID1SS Mask */ - -#define TPI_ITATBCTR2_ATREADY2S_Pos 0U /*!< TPI ITATBCTR2: ATREADY2S Position */ -#define TPI_ITATBCTR2_ATREADY2S_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY2S_Pos*/) /*!< TPI ITATBCTR2: ATREADY2S Mask */ - -#define TPI_ITATBCTR2_ATREADY1S_Pos 0U /*!< TPI ITATBCTR2: ATREADY1S Position */ -#define TPI_ITATBCTR2_ATREADY1S_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY1S_Pos*/) /*!< TPI ITATBCTR2: ATREADY1S Mask */ - -/* TPI Integration Test FIFO Test Data 1 Register Definitions */ -#define TPI_ITFTTD1_ATB_IF2_ATVALID_Pos 29U /*!< TPI ITFTTD1: ATB Interface 2 ATVALID Position */ -#define TPI_ITFTTD1_ATB_IF2_ATVALID_Msk (0x3UL << TPI_ITFTTD1_ATB_IF2_ATVALID_Pos) /*!< TPI ITFTTD1: ATB Interface 2 ATVALID Mask */ - -#define TPI_ITFTTD1_ATB_IF2_bytecount_Pos 27U /*!< TPI ITFTTD1: ATB Interface 2 byte count Position */ -#define TPI_ITFTTD1_ATB_IF2_bytecount_Msk (0x3UL << TPI_ITFTTD1_ATB_IF2_bytecount_Pos) /*!< TPI ITFTTD1: ATB Interface 2 byte count Mask */ - -#define TPI_ITFTTD1_ATB_IF1_ATVALID_Pos 26U /*!< TPI ITFTTD1: ATB Interface 1 ATVALID Position */ -#define TPI_ITFTTD1_ATB_IF1_ATVALID_Msk (0x3UL << TPI_ITFTTD1_ATB_IF1_ATVALID_Pos) /*!< TPI ITFTTD1: ATB Interface 1 ATVALID Mask */ - -#define TPI_ITFTTD1_ATB_IF1_bytecount_Pos 24U /*!< TPI ITFTTD1: ATB Interface 1 byte count Position */ -#define TPI_ITFTTD1_ATB_IF1_bytecount_Msk (0x3UL << TPI_ITFTTD1_ATB_IF1_bytecount_Pos) /*!< TPI ITFTTD1: ATB Interface 1 byte countt Mask */ - -#define TPI_ITFTTD1_ATB_IF2_data2_Pos 16U /*!< TPI ITFTTD1: ATB Interface 2 data2 Position */ -#define TPI_ITFTTD1_ATB_IF2_data2_Msk (0xFFUL << TPI_ITFTTD1_ATB_IF2_data1_Pos) /*!< TPI ITFTTD1: ATB Interface 2 data2 Mask */ - -#define TPI_ITFTTD1_ATB_IF2_data1_Pos 8U /*!< TPI ITFTTD1: ATB Interface 2 data1 Position */ -#define TPI_ITFTTD1_ATB_IF2_data1_Msk (0xFFUL << TPI_ITFTTD1_ATB_IF2_data1_Pos) /*!< TPI ITFTTD1: ATB Interface 2 data1 Mask */ - -#define TPI_ITFTTD1_ATB_IF2_data0_Pos 0U /*!< TPI ITFTTD1: ATB Interface 2 data0 Position */ -#define TPI_ITFTTD1_ATB_IF2_data0_Msk (0xFFUL /*<< TPI_ITFTTD1_ATB_IF2_data0_Pos*/) /*!< TPI ITFTTD1: ATB Interface 2 data0 Mask */ - -/* TPI Integration Test ATB Control Register 0 Definitions */ -#define TPI_ITATBCTR0_AFVALID2S_Pos 1U /*!< TPI ITATBCTR0: AFVALID2S Position */ -#define TPI_ITATBCTR0_AFVALID2S_Msk (0x1UL << TPI_ITATBCTR0_AFVALID2S_Pos) /*!< TPI ITATBCTR0: AFVALID2SS Mask */ - -#define TPI_ITATBCTR0_AFVALID1S_Pos 1U /*!< TPI ITATBCTR0: AFVALID1S Position */ -#define TPI_ITATBCTR0_AFVALID1S_Msk (0x1UL << TPI_ITATBCTR0_AFVALID1S_Pos) /*!< TPI ITATBCTR0: AFVALID1SS Mask */ - -#define TPI_ITATBCTR0_ATREADY2S_Pos 0U /*!< TPI ITATBCTR0: ATREADY2S Position */ -#define TPI_ITATBCTR0_ATREADY2S_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY2S_Pos*/) /*!< TPI ITATBCTR0: ATREADY2S Mask */ - -#define TPI_ITATBCTR0_ATREADY1S_Pos 0U /*!< TPI ITATBCTR0: ATREADY1S Position */ -#define TPI_ITATBCTR0_ATREADY1S_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY1S_Pos*/) /*!< TPI ITATBCTR0: ATREADY1S Mask */ - -/* TPI Integration Mode Control Register Definitions */ -#define TPI_ITCTRL_Mode_Pos 0U /*!< TPI ITCTRL: Mode Position */ -#define TPI_ITCTRL_Mode_Msk (0x3UL /*<< TPI_ITCTRL_Mode_Pos*/) /*!< TPI ITCTRL: Mode Mask */ - -/* TPI DEVID Register Definitions */ -#define TPI_DEVID_NRZVALID_Pos 11U /*!< TPI DEVID: NRZVALID Position */ -#define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ - -#define TPI_DEVID_MANCVALID_Pos 10U /*!< TPI DEVID: MANCVALID Position */ -#define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ - -#define TPI_DEVID_PTINVALID_Pos 9U /*!< TPI DEVID: PTINVALID Position */ -#define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ - -#define TPI_DEVID_FIFOSZ_Pos 6U /*!< TPI DEVID: FIFOSZ Position */ -#define TPI_DEVID_FIFOSZ_Msk (0x7UL << TPI_DEVID_FIFOSZ_Pos) /*!< TPI DEVID: FIFOSZ Mask */ - -#define TPI_DEVID_NrTraceInput_Pos 0U /*!< TPI DEVID: NrTraceInput Position */ -#define TPI_DEVID_NrTraceInput_Msk (0x3FUL /*<< TPI_DEVID_NrTraceInput_Pos*/) /*!< TPI DEVID: NrTraceInput Mask */ - -/* TPI DEVTYPE Register Definitions */ -#define TPI_DEVTYPE_SubType_Pos 4U /*!< TPI DEVTYPE: SubType Position */ -#define TPI_DEVTYPE_SubType_Msk (0xFUL /*<< TPI_DEVTYPE_SubType_Pos*/) /*!< TPI DEVTYPE: SubType Mask */ - -#define TPI_DEVTYPE_MajorType_Pos 0U /*!< TPI DEVTYPE: MajorType Position */ -#define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ - -/*@}*/ /* end of group CMSIS_TPI */ - - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_MPU Memory Protection Unit (MPU) - \brief Type definitions for the Memory Protection Unit (MPU) - @{ - */ - -/** - \brief Structure type to access the Memory Protection Unit (MPU). - */ -typedef struct -{ - __IM uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ - __IOM uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ - __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region Number Register */ - __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ - __IOM uint32_t RLAR; /*!< Offset: 0x010 (R/W) MPU Region Limit Address Register */ - __IOM uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Region Base Address Register Alias 1 */ - __IOM uint32_t RLAR_A1; /*!< Offset: 0x018 (R/W) MPU Region Limit Address Register Alias 1 */ - __IOM uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Region Base Address Register Alias 2 */ - __IOM uint32_t RLAR_A2; /*!< Offset: 0x020 (R/W) MPU Region Limit Address Register Alias 2 */ - __IOM uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Region Base Address Register Alias 3 */ - __IOM uint32_t RLAR_A3; /*!< Offset: 0x028 (R/W) MPU Region Limit Address Register Alias 3 */ - uint32_t RESERVED0[1]; - union { - __IOM uint32_t MAIR[2]; - struct { - __IOM uint32_t MAIR0; /*!< Offset: 0x030 (R/W) MPU Memory Attribute Indirection Register 0 */ - __IOM uint32_t MAIR1; /*!< Offset: 0x034 (R/W) MPU Memory Attribute Indirection Register 1 */ - }; - }; -} MPU_Type; - -#define MPU_TYPE_RALIASES 4U - -/* MPU Type Register Definitions */ -#define MPU_TYPE_IREGION_Pos 16U /*!< MPU TYPE: IREGION Position */ -#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ - -#define MPU_TYPE_DREGION_Pos 8U /*!< MPU TYPE: DREGION Position */ -#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ - -#define MPU_TYPE_SEPARATE_Pos 0U /*!< MPU TYPE: SEPARATE Position */ -#define MPU_TYPE_SEPARATE_Msk (1UL /*<< MPU_TYPE_SEPARATE_Pos*/) /*!< MPU TYPE: SEPARATE Mask */ - -/* MPU Control Register Definitions */ -#define MPU_CTRL_PRIVDEFENA_Pos 2U /*!< MPU CTRL: PRIVDEFENA Position */ -#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ - -#define MPU_CTRL_HFNMIENA_Pos 1U /*!< MPU CTRL: HFNMIENA Position */ -#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ - -#define MPU_CTRL_ENABLE_Pos 0U /*!< MPU CTRL: ENABLE Position */ -#define MPU_CTRL_ENABLE_Msk (1UL /*<< MPU_CTRL_ENABLE_Pos*/) /*!< MPU CTRL: ENABLE Mask */ - -/* MPU Region Number Register Definitions */ -#define MPU_RNR_REGION_Pos 0U /*!< MPU RNR: REGION Position */ -#define MPU_RNR_REGION_Msk (0xFFUL /*<< MPU_RNR_REGION_Pos*/) /*!< MPU RNR: REGION Mask */ - -/* MPU Region Base Address Register Definitions */ -#define MPU_RBAR_BASE_Pos 5U /*!< MPU RBAR: BASE Position */ -#define MPU_RBAR_BASE_Msk (0x7FFFFFFUL << MPU_RBAR_BASE_Pos) /*!< MPU RBAR: BASE Mask */ - -#define MPU_RBAR_SH_Pos 3U /*!< MPU RBAR: SH Position */ -#define MPU_RBAR_SH_Msk (0x3UL << MPU_RBAR_SH_Pos) /*!< MPU RBAR: SH Mask */ - -#define MPU_RBAR_AP_Pos 1U /*!< MPU RBAR: AP Position */ -#define MPU_RBAR_AP_Msk (0x3UL << MPU_RBAR_AP_Pos) /*!< MPU RBAR: AP Mask */ - -#define MPU_RBAR_XN_Pos 0U /*!< MPU RBAR: XN Position */ -#define MPU_RBAR_XN_Msk (01UL /*<< MPU_RBAR_XN_Pos*/) /*!< MPU RBAR: XN Mask */ - -/* MPU Region Limit Address Register Definitions */ -#define MPU_RLAR_LIMIT_Pos 5U /*!< MPU RLAR: LIMIT Position */ -#define MPU_RLAR_LIMIT_Msk (0x7FFFFFFUL << MPU_RLAR_LIMIT_Pos) /*!< MPU RLAR: LIMIT Mask */ - -#define MPU_RLAR_AttrIndx_Pos 1U /*!< MPU RLAR: AttrIndx Position */ -#define MPU_RLAR_AttrIndx_Msk (0x7UL << MPU_RLAR_AttrIndx_Pos) /*!< MPU RLAR: AttrIndx Mask */ - -#define MPU_RLAR_EN_Pos 0U /*!< MPU RLAR: Region enable bit Position */ -#define MPU_RLAR_EN_Msk (1UL /*<< MPU_RLAR_EN_Pos*/) /*!< MPU RLAR: Region enable bit Disable Mask */ - -/* MPU Memory Attribute Indirection Register 0 Definitions */ -#define MPU_MAIR0_Attr3_Pos 24U /*!< MPU MAIR0: Attr3 Position */ -#define MPU_MAIR0_Attr3_Msk (0xFFUL << MPU_MAIR0_Attr3_Pos) /*!< MPU MAIR0: Attr3 Mask */ - -#define MPU_MAIR0_Attr2_Pos 16U /*!< MPU MAIR0: Attr2 Position */ -#define MPU_MAIR0_Attr2_Msk (0xFFUL << MPU_MAIR0_Attr2_Pos) /*!< MPU MAIR0: Attr2 Mask */ - -#define MPU_MAIR0_Attr1_Pos 8U /*!< MPU MAIR0: Attr1 Position */ -#define MPU_MAIR0_Attr1_Msk (0xFFUL << MPU_MAIR0_Attr1_Pos) /*!< MPU MAIR0: Attr1 Mask */ - -#define MPU_MAIR0_Attr0_Pos 0U /*!< MPU MAIR0: Attr0 Position */ -#define MPU_MAIR0_Attr0_Msk (0xFFUL /*<< MPU_MAIR0_Attr0_Pos*/) /*!< MPU MAIR0: Attr0 Mask */ - -/* MPU Memory Attribute Indirection Register 1 Definitions */ -#define MPU_MAIR1_Attr7_Pos 24U /*!< MPU MAIR1: Attr7 Position */ -#define MPU_MAIR1_Attr7_Msk (0xFFUL << MPU_MAIR1_Attr7_Pos) /*!< MPU MAIR1: Attr7 Mask */ - -#define MPU_MAIR1_Attr6_Pos 16U /*!< MPU MAIR1: Attr6 Position */ -#define MPU_MAIR1_Attr6_Msk (0xFFUL << MPU_MAIR1_Attr6_Pos) /*!< MPU MAIR1: Attr6 Mask */ - -#define MPU_MAIR1_Attr5_Pos 8U /*!< MPU MAIR1: Attr5 Position */ -#define MPU_MAIR1_Attr5_Msk (0xFFUL << MPU_MAIR1_Attr5_Pos) /*!< MPU MAIR1: Attr5 Mask */ - -#define MPU_MAIR1_Attr4_Pos 0U /*!< MPU MAIR1: Attr4 Position */ -#define MPU_MAIR1_Attr4_Msk (0xFFUL /*<< MPU_MAIR1_Attr4_Pos*/) /*!< MPU MAIR1: Attr4 Mask */ - -/*@} end of group CMSIS_MPU */ -#endif - - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SAU Security Attribution Unit (SAU) - \brief Type definitions for the Security Attribution Unit (SAU) - @{ - */ - -/** - \brief Structure type to access the Security Attribution Unit (SAU). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SAU Control Register */ - __IM uint32_t TYPE; /*!< Offset: 0x004 (R/ ) SAU Type Register */ -#if defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) - __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) SAU Region Number Register */ - __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) SAU Region Base Address Register */ - __IOM uint32_t RLAR; /*!< Offset: 0x010 (R/W) SAU Region Limit Address Register */ -#else - uint32_t RESERVED0[3]; -#endif - __IOM uint32_t SFSR; /*!< Offset: 0x014 (R/W) Secure Fault Status Register */ - __IOM uint32_t SFAR; /*!< Offset: 0x018 (R/W) Secure Fault Address Register */ -} SAU_Type; - -/* SAU Control Register Definitions */ -#define SAU_CTRL_ALLNS_Pos 1U /*!< SAU CTRL: ALLNS Position */ -#define SAU_CTRL_ALLNS_Msk (1UL << SAU_CTRL_ALLNS_Pos) /*!< SAU CTRL: ALLNS Mask */ - -#define SAU_CTRL_ENABLE_Pos 0U /*!< SAU CTRL: ENABLE Position */ -#define SAU_CTRL_ENABLE_Msk (1UL /*<< SAU_CTRL_ENABLE_Pos*/) /*!< SAU CTRL: ENABLE Mask */ - -/* SAU Type Register Definitions */ -#define SAU_TYPE_SREGION_Pos 0U /*!< SAU TYPE: SREGION Position */ -#define SAU_TYPE_SREGION_Msk (0xFFUL /*<< SAU_TYPE_SREGION_Pos*/) /*!< SAU TYPE: SREGION Mask */ - -#if defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) -/* SAU Region Number Register Definitions */ -#define SAU_RNR_REGION_Pos 0U /*!< SAU RNR: REGION Position */ -#define SAU_RNR_REGION_Msk (0xFFUL /*<< SAU_RNR_REGION_Pos*/) /*!< SAU RNR: REGION Mask */ - -/* SAU Region Base Address Register Definitions */ -#define SAU_RBAR_BADDR_Pos 5U /*!< SAU RBAR: BADDR Position */ -#define SAU_RBAR_BADDR_Msk (0x7FFFFFFUL << SAU_RBAR_BADDR_Pos) /*!< SAU RBAR: BADDR Mask */ - -/* SAU Region Limit Address Register Definitions */ -#define SAU_RLAR_LADDR_Pos 5U /*!< SAU RLAR: LADDR Position */ -#define SAU_RLAR_LADDR_Msk (0x7FFFFFFUL << SAU_RLAR_LADDR_Pos) /*!< SAU RLAR: LADDR Mask */ - -#define SAU_RLAR_NSC_Pos 1U /*!< SAU RLAR: NSC Position */ -#define SAU_RLAR_NSC_Msk (1UL << SAU_RLAR_NSC_Pos) /*!< SAU RLAR: NSC Mask */ - -#define SAU_RLAR_ENABLE_Pos 0U /*!< SAU RLAR: ENABLE Position */ -#define SAU_RLAR_ENABLE_Msk (1UL /*<< SAU_RLAR_ENABLE_Pos*/) /*!< SAU RLAR: ENABLE Mask */ - -#endif /* defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) */ - -/* Secure Fault Status Register Definitions */ -#define SAU_SFSR_LSERR_Pos 7U /*!< SAU SFSR: LSERR Position */ -#define SAU_SFSR_LSERR_Msk (1UL << SAU_SFSR_LSERR_Pos) /*!< SAU SFSR: LSERR Mask */ - -#define SAU_SFSR_SFARVALID_Pos 6U /*!< SAU SFSR: SFARVALID Position */ -#define SAU_SFSR_SFARVALID_Msk (1UL << SAU_SFSR_SFARVALID_Pos) /*!< SAU SFSR: SFARVALID Mask */ - -#define SAU_SFSR_LSPERR_Pos 5U /*!< SAU SFSR: LSPERR Position */ -#define SAU_SFSR_LSPERR_Msk (1UL << SAU_SFSR_LSPERR_Pos) /*!< SAU SFSR: LSPERR Mask */ - -#define SAU_SFSR_INVTRAN_Pos 4U /*!< SAU SFSR: INVTRAN Position */ -#define SAU_SFSR_INVTRAN_Msk (1UL << SAU_SFSR_INVTRAN_Pos) /*!< SAU SFSR: INVTRAN Mask */ - -#define SAU_SFSR_AUVIOL_Pos 3U /*!< SAU SFSR: AUVIOL Position */ -#define SAU_SFSR_AUVIOL_Msk (1UL << SAU_SFSR_AUVIOL_Pos) /*!< SAU SFSR: AUVIOL Mask */ - -#define SAU_SFSR_INVER_Pos 2U /*!< SAU SFSR: INVER Position */ -#define SAU_SFSR_INVER_Msk (1UL << SAU_SFSR_INVER_Pos) /*!< SAU SFSR: INVER Mask */ - -#define SAU_SFSR_INVIS_Pos 1U /*!< SAU SFSR: INVIS Position */ -#define SAU_SFSR_INVIS_Msk (1UL << SAU_SFSR_INVIS_Pos) /*!< SAU SFSR: INVIS Mask */ - -#define SAU_SFSR_INVEP_Pos 0U /*!< SAU SFSR: INVEP Position */ -#define SAU_SFSR_INVEP_Msk (1UL /*<< SAU_SFSR_INVEP_Pos*/) /*!< SAU SFSR: INVEP Mask */ - -/*@} end of group CMSIS_SAU */ -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_FPU Floating Point Unit (FPU) - \brief Type definitions for the Floating Point Unit (FPU) - @{ - */ - -/** - \brief Structure type to access the Floating Point Unit (FPU). - */ -typedef struct -{ - uint32_t RESERVED0[1U]; - __IOM uint32_t FPCCR; /*!< Offset: 0x004 (R/W) Floating-Point Context Control Register */ - __IOM uint32_t FPCAR; /*!< Offset: 0x008 (R/W) Floating-Point Context Address Register */ - __IOM uint32_t FPDSCR; /*!< Offset: 0x00C (R/W) Floating-Point Default Status Control Register */ - __IM uint32_t MVFR0; /*!< Offset: 0x010 (R/ ) Media and FP Feature Register 0 */ - __IM uint32_t MVFR1; /*!< Offset: 0x014 (R/ ) Media and FP Feature Register 1 */ -} FPU_Type; - -/* Floating-Point Context Control Register Definitions */ -#define FPU_FPCCR_ASPEN_Pos 31U /*!< FPCCR: ASPEN bit Position */ -#define FPU_FPCCR_ASPEN_Msk (1UL << FPU_FPCCR_ASPEN_Pos) /*!< FPCCR: ASPEN bit Mask */ - -#define FPU_FPCCR_LSPEN_Pos 30U /*!< FPCCR: LSPEN Position */ -#define FPU_FPCCR_LSPEN_Msk (1UL << FPU_FPCCR_LSPEN_Pos) /*!< FPCCR: LSPEN bit Mask */ - -#define FPU_FPCCR_LSPENS_Pos 29U /*!< FPCCR: LSPENS Position */ -#define FPU_FPCCR_LSPENS_Msk (1UL << FPU_FPCCR_LSPENS_Pos) /*!< FPCCR: LSPENS bit Mask */ - -#define FPU_FPCCR_CLRONRET_Pos 28U /*!< FPCCR: CLRONRET Position */ -#define FPU_FPCCR_CLRONRET_Msk (1UL << FPU_FPCCR_CLRONRET_Pos) /*!< FPCCR: CLRONRET bit Mask */ - -#define FPU_FPCCR_CLRONRETS_Pos 27U /*!< FPCCR: CLRONRETS Position */ -#define FPU_FPCCR_CLRONRETS_Msk (1UL << FPU_FPCCR_CLRONRETS_Pos) /*!< FPCCR: CLRONRETS bit Mask */ - -#define FPU_FPCCR_TS_Pos 26U /*!< FPCCR: TS Position */ -#define FPU_FPCCR_TS_Msk (1UL << FPU_FPCCR_TS_Pos) /*!< FPCCR: TS bit Mask */ - -#define FPU_FPCCR_UFRDY_Pos 10U /*!< FPCCR: UFRDY Position */ -#define FPU_FPCCR_UFRDY_Msk (1UL << FPU_FPCCR_UFRDY_Pos) /*!< FPCCR: UFRDY bit Mask */ - -#define FPU_FPCCR_SPLIMVIOL_Pos 9U /*!< FPCCR: SPLIMVIOL Position */ -#define FPU_FPCCR_SPLIMVIOL_Msk (1UL << FPU_FPCCR_SPLIMVIOL_Pos) /*!< FPCCR: SPLIMVIOL bit Mask */ - -#define FPU_FPCCR_MONRDY_Pos 8U /*!< FPCCR: MONRDY Position */ -#define FPU_FPCCR_MONRDY_Msk (1UL << FPU_FPCCR_MONRDY_Pos) /*!< FPCCR: MONRDY bit Mask */ - -#define FPU_FPCCR_SFRDY_Pos 7U /*!< FPCCR: SFRDY Position */ -#define FPU_FPCCR_SFRDY_Msk (1UL << FPU_FPCCR_SFRDY_Pos) /*!< FPCCR: SFRDY bit Mask */ - -#define FPU_FPCCR_BFRDY_Pos 6U /*!< FPCCR: BFRDY Position */ -#define FPU_FPCCR_BFRDY_Msk (1UL << FPU_FPCCR_BFRDY_Pos) /*!< FPCCR: BFRDY bit Mask */ - -#define FPU_FPCCR_MMRDY_Pos 5U /*!< FPCCR: MMRDY Position */ -#define FPU_FPCCR_MMRDY_Msk (1UL << FPU_FPCCR_MMRDY_Pos) /*!< FPCCR: MMRDY bit Mask */ - -#define FPU_FPCCR_HFRDY_Pos 4U /*!< FPCCR: HFRDY Position */ -#define FPU_FPCCR_HFRDY_Msk (1UL << FPU_FPCCR_HFRDY_Pos) /*!< FPCCR: HFRDY bit Mask */ - -#define FPU_FPCCR_THREAD_Pos 3U /*!< FPCCR: processor mode bit Position */ -#define FPU_FPCCR_THREAD_Msk (1UL << FPU_FPCCR_THREAD_Pos) /*!< FPCCR: processor mode active bit Mask */ - -#define FPU_FPCCR_S_Pos 2U /*!< FPCCR: Security status of the FP context bit Position */ -#define FPU_FPCCR_S_Msk (1UL << FPU_FPCCR_S_Pos) /*!< FPCCR: Security status of the FP context bit Mask */ - -#define FPU_FPCCR_USER_Pos 1U /*!< FPCCR: privilege level bit Position */ -#define FPU_FPCCR_USER_Msk (1UL << FPU_FPCCR_USER_Pos) /*!< FPCCR: privilege level bit Mask */ - -#define FPU_FPCCR_LSPACT_Pos 0U /*!< FPCCR: Lazy state preservation active bit Position */ -#define FPU_FPCCR_LSPACT_Msk (1UL /*<< FPU_FPCCR_LSPACT_Pos*/) /*!< FPCCR: Lazy state preservation active bit Mask */ - -/* Floating-Point Context Address Register Definitions */ -#define FPU_FPCAR_ADDRESS_Pos 3U /*!< FPCAR: ADDRESS bit Position */ -#define FPU_FPCAR_ADDRESS_Msk (0x1FFFFFFFUL << FPU_FPCAR_ADDRESS_Pos) /*!< FPCAR: ADDRESS bit Mask */ - -/* Floating-Point Default Status Control Register Definitions */ -#define FPU_FPDSCR_AHP_Pos 26U /*!< FPDSCR: AHP bit Position */ -#define FPU_FPDSCR_AHP_Msk (1UL << FPU_FPDSCR_AHP_Pos) /*!< FPDSCR: AHP bit Mask */ - -#define FPU_FPDSCR_DN_Pos 25U /*!< FPDSCR: DN bit Position */ -#define FPU_FPDSCR_DN_Msk (1UL << FPU_FPDSCR_DN_Pos) /*!< FPDSCR: DN bit Mask */ - -#define FPU_FPDSCR_FZ_Pos 24U /*!< FPDSCR: FZ bit Position */ -#define FPU_FPDSCR_FZ_Msk (1UL << FPU_FPDSCR_FZ_Pos) /*!< FPDSCR: FZ bit Mask */ - -#define FPU_FPDSCR_RMode_Pos 22U /*!< FPDSCR: RMode bit Position */ -#define FPU_FPDSCR_RMode_Msk (3UL << FPU_FPDSCR_RMode_Pos) /*!< FPDSCR: RMode bit Mask */ - -/* Media and FP Feature Register 0 Definitions */ -#define FPU_MVFR0_FP_rounding_modes_Pos 28U /*!< MVFR0: FP rounding modes bits Position */ -#define FPU_MVFR0_FP_rounding_modes_Msk (0xFUL << FPU_MVFR0_FP_rounding_modes_Pos) /*!< MVFR0: FP rounding modes bits Mask */ - -#define FPU_MVFR0_Short_vectors_Pos 24U /*!< MVFR0: Short vectors bits Position */ -#define FPU_MVFR0_Short_vectors_Msk (0xFUL << FPU_MVFR0_Short_vectors_Pos) /*!< MVFR0: Short vectors bits Mask */ - -#define FPU_MVFR0_Square_root_Pos 20U /*!< MVFR0: Square root bits Position */ -#define FPU_MVFR0_Square_root_Msk (0xFUL << FPU_MVFR0_Square_root_Pos) /*!< MVFR0: Square root bits Mask */ - -#define FPU_MVFR0_Divide_Pos 16U /*!< MVFR0: Divide bits Position */ -#define FPU_MVFR0_Divide_Msk (0xFUL << FPU_MVFR0_Divide_Pos) /*!< MVFR0: Divide bits Mask */ - -#define FPU_MVFR0_FP_excep_trapping_Pos 12U /*!< MVFR0: FP exception trapping bits Position */ -#define FPU_MVFR0_FP_excep_trapping_Msk (0xFUL << FPU_MVFR0_FP_excep_trapping_Pos) /*!< MVFR0: FP exception trapping bits Mask */ - -#define FPU_MVFR0_Double_precision_Pos 8U /*!< MVFR0: Double-precision bits Position */ -#define FPU_MVFR0_Double_precision_Msk (0xFUL << FPU_MVFR0_Double_precision_Pos) /*!< MVFR0: Double-precision bits Mask */ - -#define FPU_MVFR0_Single_precision_Pos 4U /*!< MVFR0: Single-precision bits Position */ -#define FPU_MVFR0_Single_precision_Msk (0xFUL << FPU_MVFR0_Single_precision_Pos) /*!< MVFR0: Single-precision bits Mask */ - -#define FPU_MVFR0_A_SIMD_registers_Pos 0U /*!< MVFR0: A_SIMD registers bits Position */ -#define FPU_MVFR0_A_SIMD_registers_Msk (0xFUL /*<< FPU_MVFR0_A_SIMD_registers_Pos*/) /*!< MVFR0: A_SIMD registers bits Mask */ - -/* Media and FP Feature Register 1 Definitions */ -#define FPU_MVFR1_FP_fused_MAC_Pos 28U /*!< MVFR1: FP fused MAC bits Position */ -#define FPU_MVFR1_FP_fused_MAC_Msk (0xFUL << FPU_MVFR1_FP_fused_MAC_Pos) /*!< MVFR1: FP fused MAC bits Mask */ - -#define FPU_MVFR1_FP_HPFP_Pos 24U /*!< MVFR1: FP HPFP bits Position */ -#define FPU_MVFR1_FP_HPFP_Msk (0xFUL << FPU_MVFR1_FP_HPFP_Pos) /*!< MVFR1: FP HPFP bits Mask */ - -#define FPU_MVFR1_D_NaN_mode_Pos 4U /*!< MVFR1: D_NaN mode bits Position */ -#define FPU_MVFR1_D_NaN_mode_Msk (0xFUL << FPU_MVFR1_D_NaN_mode_Pos) /*!< MVFR1: D_NaN mode bits Mask */ - -#define FPU_MVFR1_FtZ_mode_Pos 0U /*!< MVFR1: FtZ mode bits Position */ -#define FPU_MVFR1_FtZ_mode_Msk (0xFUL /*<< FPU_MVFR1_FtZ_mode_Pos*/) /*!< MVFR1: FtZ mode bits Mask */ - -/*@} end of group CMSIS_FPU */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) - \brief Type definitions for the Core Debug Registers - @{ - */ - -/** - \brief Structure type to access the Core Debug Register (CoreDebug). - */ -typedef struct -{ - __IOM uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ - __OM uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ - __IOM uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ - __IOM uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ - uint32_t RESERVED4[1U]; - __IOM uint32_t DAUTHCTRL; /*!< Offset: 0x014 (R/W) Debug Authentication Control Register */ - __IOM uint32_t DSCSR; /*!< Offset: 0x018 (R/W) Debug Security Control and Status Register */ -} CoreDebug_Type; - -/* Debug Halting Control and Status Register Definitions */ -#define CoreDebug_DHCSR_DBGKEY_Pos 16U /*!< CoreDebug DHCSR: DBGKEY Position */ -#define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ - -#define CoreDebug_DHCSR_S_RESTART_ST_Pos 26U /*!< CoreDebug DHCSR: S_RESTART_ST Position */ -#define CoreDebug_DHCSR_S_RESTART_ST_Msk (1UL << CoreDebug_DHCSR_S_RESTART_ST_Pos) /*!< CoreDebug DHCSR: S_RESTART_ST Mask */ - -#define CoreDebug_DHCSR_S_RESET_ST_Pos 25U /*!< CoreDebug DHCSR: S_RESET_ST Position */ -#define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ - -#define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24U /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ -#define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ - -#define CoreDebug_DHCSR_S_LOCKUP_Pos 19U /*!< CoreDebug DHCSR: S_LOCKUP Position */ -#define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ - -#define CoreDebug_DHCSR_S_SLEEP_Pos 18U /*!< CoreDebug DHCSR: S_SLEEP Position */ -#define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ - -#define CoreDebug_DHCSR_S_HALT_Pos 17U /*!< CoreDebug DHCSR: S_HALT Position */ -#define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ - -#define CoreDebug_DHCSR_S_REGRDY_Pos 16U /*!< CoreDebug DHCSR: S_REGRDY Position */ -#define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ - -#define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5U /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ -#define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ - -#define CoreDebug_DHCSR_C_MASKINTS_Pos 3U /*!< CoreDebug DHCSR: C_MASKINTS Position */ -#define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ - -#define CoreDebug_DHCSR_C_STEP_Pos 2U /*!< CoreDebug DHCSR: C_STEP Position */ -#define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ - -#define CoreDebug_DHCSR_C_HALT_Pos 1U /*!< CoreDebug DHCSR: C_HALT Position */ -#define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ - -#define CoreDebug_DHCSR_C_DEBUGEN_Pos 0U /*!< CoreDebug DHCSR: C_DEBUGEN Position */ -#define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL /*<< CoreDebug_DHCSR_C_DEBUGEN_Pos*/) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ - -/* Debug Core Register Selector Register Definitions */ -#define CoreDebug_DCRSR_REGWnR_Pos 16U /*!< CoreDebug DCRSR: REGWnR Position */ -#define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ - -#define CoreDebug_DCRSR_REGSEL_Pos 0U /*!< CoreDebug DCRSR: REGSEL Position */ -#define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL /*<< CoreDebug_DCRSR_REGSEL_Pos*/) /*!< CoreDebug DCRSR: REGSEL Mask */ - -/* Debug Exception and Monitor Control Register Definitions */ -#define CoreDebug_DEMCR_TRCENA_Pos 24U /*!< CoreDebug DEMCR: TRCENA Position */ -#define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ - -#define CoreDebug_DEMCR_MON_REQ_Pos 19U /*!< CoreDebug DEMCR: MON_REQ Position */ -#define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ - -#define CoreDebug_DEMCR_MON_STEP_Pos 18U /*!< CoreDebug DEMCR: MON_STEP Position */ -#define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ - -#define CoreDebug_DEMCR_MON_PEND_Pos 17U /*!< CoreDebug DEMCR: MON_PEND Position */ -#define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ - -#define CoreDebug_DEMCR_MON_EN_Pos 16U /*!< CoreDebug DEMCR: MON_EN Position */ -#define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ - -#define CoreDebug_DEMCR_VC_HARDERR_Pos 10U /*!< CoreDebug DEMCR: VC_HARDERR Position */ -#define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ - -#define CoreDebug_DEMCR_VC_INTERR_Pos 9U /*!< CoreDebug DEMCR: VC_INTERR Position */ -#define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ - -#define CoreDebug_DEMCR_VC_BUSERR_Pos 8U /*!< CoreDebug DEMCR: VC_BUSERR Position */ -#define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ - -#define CoreDebug_DEMCR_VC_STATERR_Pos 7U /*!< CoreDebug DEMCR: VC_STATERR Position */ -#define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ - -#define CoreDebug_DEMCR_VC_CHKERR_Pos 6U /*!< CoreDebug DEMCR: VC_CHKERR Position */ -#define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ - -#define CoreDebug_DEMCR_VC_NOCPERR_Pos 5U /*!< CoreDebug DEMCR: VC_NOCPERR Position */ -#define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ - -#define CoreDebug_DEMCR_VC_MMERR_Pos 4U /*!< CoreDebug DEMCR: VC_MMERR Position */ -#define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ - -#define CoreDebug_DEMCR_VC_CORERESET_Pos 0U /*!< CoreDebug DEMCR: VC_CORERESET Position */ -#define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL /*<< CoreDebug_DEMCR_VC_CORERESET_Pos*/) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ - -/* Debug Authentication Control Register Definitions */ -#define CoreDebug_DAUTHCTRL_INTSPNIDEN_Pos 3U /*!< CoreDebug DAUTHCTRL: INTSPNIDEN, Position */ -#define CoreDebug_DAUTHCTRL_INTSPNIDEN_Msk (1UL << CoreDebug_DAUTHCTRL_INTSPNIDEN_Pos) /*!< CoreDebug DAUTHCTRL: INTSPNIDEN, Mask */ - -#define CoreDebug_DAUTHCTRL_SPNIDENSEL_Pos 2U /*!< CoreDebug DAUTHCTRL: SPNIDENSEL Position */ -#define CoreDebug_DAUTHCTRL_SPNIDENSEL_Msk (1UL << CoreDebug_DAUTHCTRL_SPNIDENSEL_Pos) /*!< CoreDebug DAUTHCTRL: SPNIDENSEL Mask */ - -#define CoreDebug_DAUTHCTRL_INTSPIDEN_Pos 1U /*!< CoreDebug DAUTHCTRL: INTSPIDEN Position */ -#define CoreDebug_DAUTHCTRL_INTSPIDEN_Msk (1UL << CoreDebug_DAUTHCTRL_INTSPIDEN_Pos) /*!< CoreDebug DAUTHCTRL: INTSPIDEN Mask */ - -#define CoreDebug_DAUTHCTRL_SPIDENSEL_Pos 0U /*!< CoreDebug DAUTHCTRL: SPIDENSEL Position */ -#define CoreDebug_DAUTHCTRL_SPIDENSEL_Msk (1UL /*<< CoreDebug_DAUTHCTRL_SPIDENSEL_Pos*/) /*!< CoreDebug DAUTHCTRL: SPIDENSEL Mask */ - -/* Debug Security Control and Status Register Definitions */ -#define CoreDebug_DSCSR_CDS_Pos 16U /*!< CoreDebug DSCSR: CDS Position */ -#define CoreDebug_DSCSR_CDS_Msk (1UL << CoreDebug_DSCSR_CDS_Pos) /*!< CoreDebug DSCSR: CDS Mask */ - -#define CoreDebug_DSCSR_SBRSEL_Pos 1U /*!< CoreDebug DSCSR: SBRSEL Position */ -#define CoreDebug_DSCSR_SBRSEL_Msk (1UL << CoreDebug_DSCSR_SBRSEL_Pos) /*!< CoreDebug DSCSR: SBRSEL Mask */ - -#define CoreDebug_DSCSR_SBRSELEN_Pos 0U /*!< CoreDebug DSCSR: SBRSELEN Position */ -#define CoreDebug_DSCSR_SBRSELEN_Msk (1UL /*<< CoreDebug_DSCSR_SBRSELEN_Pos*/) /*!< CoreDebug DSCSR: SBRSELEN Mask */ - -/*@} end of group CMSIS_CoreDebug */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_core_bitfield Core register bit field macros - \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). - @{ - */ - -/** - \brief Mask and shift a bit field value for use in a register bit range. - \param[in] field Name of the register bit field. - \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. - \return Masked and shifted value. -*/ -#define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) - -/** - \brief Mask and shift a register value to extract a bit filed value. - \param[in] field Name of the register bit field. - \param[in] value Value of register. This parameter is interpreted as an uint32_t type. - \return Masked and shifted bit field value. -*/ -#define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) - -/*@} end of group CMSIS_core_bitfield */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_core_base Core Definitions - \brief Definitions for base addresses, unions, and structures. - @{ - */ - -/* Memory mapping of Core Hardware */ - #define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ - #define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ - #define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ - #define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ - #define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ - #define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ - #define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ - #define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ - - #define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ - #define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ - #define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ - #define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ - #define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ - #define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ - #define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ - #define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE ) /*!< Core Debug configuration struct */ - - #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) - #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ - #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ - #endif - - #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) - #define SAU_BASE (SCS_BASE + 0x0DD0UL) /*!< Security Attribution Unit */ - #define SAU ((SAU_Type *) SAU_BASE ) /*!< Security Attribution Unit */ - #endif - - #define FPU_BASE (SCS_BASE + 0x0F30UL) /*!< Floating Point Unit */ - #define FPU ((FPU_Type *) FPU_BASE ) /*!< Floating Point Unit */ - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) - #define SCS_BASE_NS (0xE002E000UL) /*!< System Control Space Base Address (non-secure address space) */ - #define CoreDebug_BASE_NS (0xE002EDF0UL) /*!< Core Debug Base Address (non-secure address space) */ - #define SysTick_BASE_NS (SCS_BASE_NS + 0x0010UL) /*!< SysTick Base Address (non-secure address space) */ - #define NVIC_BASE_NS (SCS_BASE_NS + 0x0100UL) /*!< NVIC Base Address (non-secure address space) */ - #define SCB_BASE_NS (SCS_BASE_NS + 0x0D00UL) /*!< System Control Block Base Address (non-secure address space) */ - - #define SCnSCB_NS ((SCnSCB_Type *) SCS_BASE_NS ) /*!< System control Register not in SCB(non-secure address space) */ - #define SCB_NS ((SCB_Type *) SCB_BASE_NS ) /*!< SCB configuration struct (non-secure address space) */ - #define SysTick_NS ((SysTick_Type *) SysTick_BASE_NS ) /*!< SysTick configuration struct (non-secure address space) */ - #define NVIC_NS ((NVIC_Type *) NVIC_BASE_NS ) /*!< NVIC configuration struct (non-secure address space) */ - #define CoreDebug_NS ((CoreDebug_Type *) CoreDebug_BASE_NS) /*!< Core Debug configuration struct (non-secure address space) */ - - #if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) - #define MPU_BASE_NS (SCS_BASE_NS + 0x0D90UL) /*!< Memory Protection Unit (non-secure address space) */ - #define MPU_NS ((MPU_Type *) MPU_BASE_NS ) /*!< Memory Protection Unit (non-secure address space) */ - #endif - - #define FPU_BASE_NS (SCS_BASE_NS + 0x0F30UL) /*!< Floating Point Unit (non-secure address space) */ - #define FPU_NS ((FPU_Type *) FPU_BASE_NS ) /*!< Floating Point Unit (non-secure address space) */ - -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ -/*@} */ - - - -/******************************************************************************* - * Hardware Abstraction Layer - Core Function Interface contains: - - Core NVIC Functions - - Core SysTick Functions - - Core Debug Functions - - Core Register Access Functions - ******************************************************************************/ -/** - \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference -*/ - - - -/* ########################## NVIC functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_NVICFunctions NVIC Functions - \brief Functions that manage interrupts and exceptions via the NVIC. - @{ - */ - -#ifdef CMSIS_NVIC_VIRTUAL - #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE - #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" - #endif - #include CMSIS_NVIC_VIRTUAL_HEADER_FILE -#else - #define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping - #define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping - #define NVIC_EnableIRQ __NVIC_EnableIRQ - #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ - #define NVIC_DisableIRQ __NVIC_DisableIRQ - #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ - #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ - #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ - #define NVIC_GetActive __NVIC_GetActive - #define NVIC_SetPriority __NVIC_SetPriority - #define NVIC_GetPriority __NVIC_GetPriority - #define NVIC_SystemReset __NVIC_SystemReset -#endif /* CMSIS_NVIC_VIRTUAL */ - -#ifdef CMSIS_VECTAB_VIRTUAL - #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE - #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" - #endif - #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE -#else - #define NVIC_SetVector __NVIC_SetVector - #define NVIC_GetVector __NVIC_GetVector -#endif /* (CMSIS_VECTAB_VIRTUAL) */ - -#define NVIC_USER_IRQ_OFFSET 16 - - -/* Special LR values for Secure/Non-Secure call handling and exception handling */ - -/* Function Return Payload (from ARMv8-M Architecture Reference Manual) LR value on entry from Secure BLXNS */ -#define FNC_RETURN (0xFEFFFFFFUL) /* bit [0] ignored when processing a branch */ - -/* The following EXC_RETURN mask values are used to evaluate the LR on exception entry */ -#define EXC_RETURN_PREFIX (0xFF000000UL) /* bits [31:24] set to indicate an EXC_RETURN value */ -#define EXC_RETURN_S (0x00000040UL) /* bit [6] stack used to push registers: 0=Non-secure 1=Secure */ -#define EXC_RETURN_DCRS (0x00000020UL) /* bit [5] stacking rules for called registers: 0=skipped 1=saved */ -#define EXC_RETURN_FTYPE (0x00000010UL) /* bit [4] allocate stack for floating-point context: 0=done 1=skipped */ -#define EXC_RETURN_MODE (0x00000008UL) /* bit [3] processor mode for return: 0=Handler mode 1=Thread mode */ -#define EXC_RETURN_SPSEL (0x00000004UL) /* bit [2] stack pointer used to restore context: 0=MSP 1=PSP */ -#define EXC_RETURN_ES (0x00000001UL) /* bit [0] security state exception was taken to: 0=Non-secure 1=Secure */ - -/* Integrity Signature (from ARMv8-M Architecture Reference Manual) for exception context stacking */ -#if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) /* Value for processors with floating-point extension: */ -#define EXC_INTEGRITY_SIGNATURE (0xFEFA125AUL) /* bit [0] SFTC must match LR bit[4] EXC_RETURN_FTYPE */ -#else -#define EXC_INTEGRITY_SIGNATURE (0xFEFA125BUL) /* Value for processors without floating-point extension */ -#endif - - -/** - \brief Set Priority Grouping - \details Sets the priority grouping field using the required unlock sequence. - The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. - Only values from 0..7 are used. - 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) -{ - uint32_t reg_value; - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - - reg_value = SCB->AIRCR; /* read old register configuration */ - reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ - reg_value = (reg_value | - ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ - SCB->AIRCR = reg_value; -} - - -/** - \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) -{ - return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); -} - - -/** - \brief Enable Interrupt - \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) -{ - if ((int32_t)(IRQn) >= 0) - { - __COMPILER_BARRIER(); - NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - __COMPILER_BARRIER(); - } -} - - -/** - \brief Get Interrupt Enable status - \details Returns a device specific interrupt enable status from the NVIC interrupt controller. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt is not enabled. - \return 1 Interrupt is enabled. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Disable Interrupt - \details Disables 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_DisableIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - __DSB(); - __ISB(); - } -} - - -/** - \brief Get Pending Interrupt - \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not pending. - \return 1 Interrupt status is pending. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Pending Interrupt - \details Sets the pending bit of a device specific interrupt in the NVIC pending register. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Clear Pending Interrupt - \details Clears the pending bit of a device specific interrupt in the NVIC pending register. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Active Interrupt - \details Reads the active register in the NVIC and returns the active bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not active. - \return 1 Interrupt status is active. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetActive(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) -/** - \brief Get Interrupt Target State - \details Reads the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 if interrupt is assigned to Secure - \return 1 if interrupt is assigned to Non Secure - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t NVIC_GetTargetState(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Interrupt Target State - \details Sets the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 if interrupt is assigned to Secure - 1 if interrupt is assigned to Non Secure - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t NVIC_SetTargetState(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] |= ((uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL))); - return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Clear Interrupt Target State - \details Clears the interrupt target field in the NVIC and returns the interrupt target bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 if interrupt is assigned to Secure - 1 if interrupt is assigned to Non Secure - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t NVIC_ClearTargetState(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] &= ~((uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL))); - return((uint32_t)(((NVIC->ITNS[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ - - -/** - \brief Set Interrupt Priority - \details Sets the priority of a device specific interrupt or a processor exception. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \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) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->IPR[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - } - else - { - SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - } -} - - -/** - \brief Get Interrupt Priority - \details Reads the priority of a device specific interrupt or a processor exception. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Interrupt Priority. - Value is aligned automatically to the implemented priority bits of the microcontroller. - */ -__STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) -{ - - if ((int32_t)(IRQn) >= 0) - { - return(((uint32_t)NVIC->IPR[((uint32_t)IRQn)] >> (8U - __NVIC_PRIO_BITS))); - } - else - { - return(((uint32_t)SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] >> (8U - __NVIC_PRIO_BITS))); - } -} - - -/** - \brief Encode Priority - \details Encodes the priority for an interrupt with the given priority group, - preemptive priority value, and subpriority value. - 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 Used priority group. - \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) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - - return ( - ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) - ); -} - - -/** - \brief Decode Priority - \details Decodes an interrupt priority value with a given priority group to - preemptive priority value and subpriority value. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. - \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). - \param [in] PriorityGroup Used priority group. - \param [out] pPreemptPriority Preemptive priority value (starting from 0). - \param [out] pSubPriority Subpriority value (starting from 0). - */ -__STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - - *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); - *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); -} - - -/** - \brief Set Interrupt Vector - \details Sets an interrupt vector in SRAM based interrupt vector table. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - VTOR must been relocated to SRAM before. - \param [in] IRQn Interrupt number - \param [in] vector Address of interrupt handler function - */ -__STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) -{ - uint32_t *vectors = (uint32_t *)SCB->VTOR; - vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET] = vector; - __DSB(); -} - - -/** - \brief Get Interrupt Vector - \details Reads an interrupt vector from interrupt vector table. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Address of interrupt handler function - */ -__STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) -{ - uint32_t *vectors = (uint32_t *)SCB->VTOR; - return vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET]; -} - - -/** - \brief System Reset - \details Initiates a system reset request to reset the MCU. - */ -__NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) -{ - __DSB(); /* Ensure all outstanding memory accesses included - buffered write are completed before reset */ - SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | - SCB_AIRCR_SYSRESETREQ_Msk ); /* Keep priority group unchanged */ - __DSB(); /* Ensure completion of memory access */ - - for(;;) /* wait until reset */ - { - __NOP(); - } -} - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) -/** - \brief Set Priority Grouping (non-secure) - \details Sets the non-secure priority grouping field when in secure state using the required unlock sequence. - The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. - Only values from 0..7 are used. - 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 TZ_NVIC_SetPriorityGrouping_NS(uint32_t PriorityGroup) -{ - uint32_t reg_value; - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - - reg_value = SCB_NS->AIRCR; /* read old register configuration */ - reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ - reg_value = (reg_value | - ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ - SCB_NS->AIRCR = reg_value; -} - - -/** - \brief Get Priority Grouping (non-secure) - \details Reads the priority grouping field from the non-secure NVIC when in secure state. - \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). - */ -__STATIC_INLINE uint32_t TZ_NVIC_GetPriorityGrouping_NS(void) -{ - return ((uint32_t)((SCB_NS->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); -} - - -/** - \brief Enable Interrupt (non-secure) - \details Enables a device specific interrupt in the non-secure NVIC interrupt controller when in secure state. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void TZ_NVIC_EnableIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Interrupt Enable status (non-secure) - \details Returns a device specific interrupt enable status from the non-secure NVIC interrupt controller when in secure state. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt is not enabled. - \return 1 Interrupt is enabled. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t TZ_NVIC_GetEnableIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC_NS->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Disable Interrupt (non-secure) - \details Disables a device specific interrupt in the non-secure NVIC interrupt controller when in secure state. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void TZ_NVIC_DisableIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Pending Interrupt (non-secure) - \details Reads the NVIC pending register in the non-secure NVIC when in secure state and returns the pending bit for the specified device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not pending. - \return 1 Interrupt status is pending. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t TZ_NVIC_GetPendingIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC_NS->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Pending Interrupt (non-secure) - \details Sets the pending bit of a device specific interrupt in the non-secure NVIC pending register when in secure state. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void TZ_NVIC_SetPendingIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Clear Pending Interrupt (non-secure) - \details Clears the pending bit of a device specific interrupt in the non-secure NVIC pending register when in secure state. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void TZ_NVIC_ClearPendingIRQ_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Active Interrupt (non-secure) - \details Reads the active register in non-secure NVIC when in secure state and returns the active bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not active. - \return 1 Interrupt status is active. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t TZ_NVIC_GetActive_NS(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC_NS->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Interrupt Priority (non-secure) - \details Sets the priority of a non-secure device specific interrupt or a non-secure processor exception when in secure state. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \param [in] priority Priority to set. - \note The priority cannot be set for every non-secure processor exception. - */ -__STATIC_INLINE void TZ_NVIC_SetPriority_NS(IRQn_Type IRQn, uint32_t priority) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC_NS->IPR[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - } - else - { - SCB_NS->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - } -} - - -/** - \brief Get Interrupt Priority (non-secure) - \details Reads the priority of a non-secure device specific interrupt or a non-secure processor exception when in secure state. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. - */ -__STATIC_INLINE uint32_t TZ_NVIC_GetPriority_NS(IRQn_Type IRQn) -{ - - if ((int32_t)(IRQn) >= 0) - { - return(((uint32_t)NVIC_NS->IPR[((uint32_t)IRQn)] >> (8U - __NVIC_PRIO_BITS))); - } - else - { - return(((uint32_t)SCB_NS->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] >> (8U - __NVIC_PRIO_BITS))); - } -} -#endif /* defined (__ARM_FEATURE_CMSE) &&(__ARM_FEATURE_CMSE == 3U) */ - -/*@} end of CMSIS_Core_NVICFunctions */ - -/* ########################## MPU functions #################################### */ - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) - -#include "mpu_armv8.h" - -#endif - -/* ########################## FPU functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_FpuFunctions FPU Functions - \brief Function that provides FPU type. - @{ - */ - -/** - \brief get FPU type - \details returns the FPU type - \returns - - \b 0: No FPU - - \b 1: Single precision FPU - - \b 2: Double + Single precision FPU - */ -__STATIC_INLINE uint32_t SCB_GetFPUType(void) -{ - uint32_t mvfr0; - - mvfr0 = FPU->MVFR0; - if ((mvfr0 & (FPU_MVFR0_Single_precision_Msk | FPU_MVFR0_Double_precision_Msk)) == 0x220U) - { - return 2U; /* Double + Single precision FPU */ - } - else if ((mvfr0 & (FPU_MVFR0_Single_precision_Msk | FPU_MVFR0_Double_precision_Msk)) == 0x020U) - { - return 1U; /* Single precision FPU */ - } - else - { - return 0U; /* No FPU */ - } -} - - -/*@} end of CMSIS_Core_FpuFunctions */ - - - -/* ########################## SAU functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SAUFunctions SAU Functions - \brief Functions that configure the SAU. - @{ - */ - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) - -/** - \brief Enable SAU - \details Enables the Security Attribution Unit (SAU). - */ -__STATIC_INLINE void TZ_SAU_Enable(void) -{ - SAU->CTRL |= (SAU_CTRL_ENABLE_Msk); -} - - - -/** - \brief Disable SAU - \details Disables the Security Attribution Unit (SAU). - */ -__STATIC_INLINE void TZ_SAU_Disable(void) -{ - SAU->CTRL &= ~(SAU_CTRL_ENABLE_Msk); -} - -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ - -/*@} end of CMSIS_Core_SAUFunctions */ - - - - -/* ################################## SysTick function ############################################ */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SysTickFunctions SysTick Functions - \brief Functions that configure the System. - @{ - */ - -#if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) - -/** - \brief System Tick Configuration - \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. - Counter is in free running mode to generate periodic interrupts. - \param [in] ticks Number of ticks between two interrupts. - \return 0 Function succeeded. - \return 1 Function failed. - \note When the variable __Vendor_SysTickConfig is set to 1, then the - function SysTick_Config is not included. In this case, the file device.h - must contain a vendor-specific implementation of this function. - */ -__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) -{ - if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - { - return (1UL); /* Reload value impossible */ - } - - SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ - SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0UL); /* Function successful */ -} - -#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) -/** - \brief System Tick Configuration (non-secure) - \details Initializes the non-secure System Timer and its interrupt when in secure state, and starts the System Tick Timer. - Counter is in free running mode to generate periodic interrupts. - \param [in] ticks Number of ticks between two interrupts. - \return 0 Function succeeded. - \return 1 Function failed. - \note When the variable __Vendor_SysTickConfig is set to 1, then the - function TZ_SysTick_Config_NS is not included. In this case, the file device.h - must contain a vendor-specific implementation of this function. - - */ -__STATIC_INLINE uint32_t TZ_SysTick_Config_NS(uint32_t ticks) -{ - if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - { - return (1UL); /* Reload value impossible */ - } - - SysTick_NS->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - TZ_NVIC_SetPriority_NS (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - SysTick_NS->VAL = 0UL; /* Load the SysTick Counter Value */ - SysTick_NS->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0UL); /* Function successful */ -} -#endif /* defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */ - -#endif - -/*@} end of CMSIS_Core_SysTickFunctions */ - - - -/* ##################################### Debug In/Output function ########################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_core_DebugFunctions ITM Functions - \brief Functions that access the ITM debug interface. - @{ - */ - -extern volatile int32_t ITM_RxBuffer; /*!< External variable to receive characters. */ -#define ITM_RXBUFFER_EMPTY ((int32_t)0x5AA55AA5U) /*!< Value identifying \ref ITM_RxBuffer is ready for next character. */ - - -/** - \brief ITM Send Character - \details Transmits a character via the ITM channel 0, and - \li Just returns when no debugger is connected that has booked the output. - \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted. - \param [in] ch Character to transmit. - \returns Character to transmit. - */ -__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch) -{ - if (((ITM->TCR & ITM_TCR_ITMENA_Msk) != 0UL) && /* ITM enabled */ - ((ITM->TER & 1UL ) != 0UL) ) /* ITM Port #0 enabled */ - { - while (ITM->PORT[0U].u32 == 0UL) - { - __NOP(); - } - ITM->PORT[0U].u8 = (uint8_t)ch; - } - return (ch); -} - - -/** - \brief ITM Receive Character - \details Inputs a character via the external variable \ref ITM_RxBuffer. - \return Received character. - \return -1 No character pending. - */ -__STATIC_INLINE int32_t ITM_ReceiveChar (void) -{ - int32_t ch = -1; /* no character available */ - - if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) - { - ch = ITM_RxBuffer; - ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ - } - - return (ch); -} - - -/** - \brief ITM Check Character - \details Checks whether a character is pending for reading in the variable \ref ITM_RxBuffer. - \return 0 No character available. - \return 1 Character available. - */ -__STATIC_INLINE int32_t ITM_CheckChar (void) -{ - - if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) - { - return (0); /* no character available */ - } - else - { - return (1); /* character available */ - } -} - -/*@} end of CMSIS_core_DebugFunctions */ - - - - -#ifdef __cplusplus -} -#endif - -#endif /* __CORE_CM35P_H_DEPENDANT */ - -#endif /* __CMSIS_GENERIC */ diff --git a/Drivers/CMSIS/Include/core_cm4.h b/Drivers/CMSIS/Include/core_cm4.h deleted file mode 100644 index 12c023b..0000000 --- a/Drivers/CMSIS/Include/core_cm4.h +++ /dev/null @@ -1,2124 +0,0 @@ -/**************************************************************************//** - * @file core_cm4.h - * @brief CMSIS Cortex-M4 Core Peripheral Access Layer Header File - * @version V5.1.0 - * @date 13. March 2019 - ******************************************************************************/ -/* - * Copyright (c) 2009-2019 Arm Limited. All rights reserved. - * - * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the License); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#if defined ( __ICCARM__ ) - #pragma system_include /* treat file as system include file for MISRA check */ -#elif defined (__clang__) - #pragma clang system_header /* treat file as system include file */ -#endif - -#ifndef __CORE_CM4_H_GENERIC -#define __CORE_CM4_H_GENERIC - -#include - -#ifdef __cplusplus - extern "C" { -#endif - -/** - \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions - CMSIS violates the following MISRA-C:2004 rules: - - \li Required Rule 8.5, object/function definition in header file.
- Function definitions in header files are used to allow 'inlining'. - - \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
- Unions are used for effective representation of core registers. - - \li Advisory Rule 19.7, Function-like macro defined.
- Function-like macros are used to allow more efficient code. - */ - - -/******************************************************************************* - * CMSIS definitions - ******************************************************************************/ -/** - \ingroup Cortex_M4 - @{ - */ - -#include "cmsis_version.h" - -/* CMSIS CM4 definitions */ -#define __CM4_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ -#define __CM4_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ -#define __CM4_CMSIS_VERSION ((__CM4_CMSIS_VERSION_MAIN << 16U) | \ - __CM4_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ - -#define __CORTEX_M (4U) /*!< Cortex-M Core */ - -/** __FPU_USED indicates whether an FPU is used or not. - For this, __FPU_PRESENT has to be checked prior to making use of FPU specific registers and functions. -*/ -#if defined ( __CC_ARM ) - #if defined __TARGET_FPU_VFP - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - -#elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) - #if defined __ARM_FP - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - -#elif defined ( __GNUC__ ) - #if defined (__VFP_FP__) && !defined(__SOFTFP__) - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - -#elif defined ( __ICCARM__ ) - #if defined __ARMVFP__ - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - -#elif defined ( __TI_ARM__ ) - #if defined __TI_VFP_SUPPORT__ - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - -#elif defined ( __TASKING__ ) - #if defined __FPU_VFP__ - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - -#elif defined ( __CSMC__ ) - #if ( __CSMC__ & 0x400U) - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - -#endif - -#include "cmsis_compiler.h" /* CMSIS compiler specific defines */ - - -#ifdef __cplusplus -} -#endif - -#endif /* __CORE_CM4_H_GENERIC */ - -#ifndef __CMSIS_GENERIC - -#ifndef __CORE_CM4_H_DEPENDANT -#define __CORE_CM4_H_DEPENDANT - -#ifdef __cplusplus - extern "C" { -#endif - -/* check device defines and use defaults */ -#if defined __CHECK_DEVICE_DEFINES - #ifndef __CM4_REV - #define __CM4_REV 0x0000U - #warning "__CM4_REV not defined in device header file; using default!" - #endif - - #ifndef __FPU_PRESENT - #define __FPU_PRESENT 0U - #warning "__FPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __MPU_PRESENT - #define __MPU_PRESENT 0U - #warning "__MPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __NVIC_PRIO_BITS - #define __NVIC_PRIO_BITS 3U - #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" - #endif - - #ifndef __Vendor_SysTickConfig - #define __Vendor_SysTickConfig 0U - #warning "__Vendor_SysTickConfig not defined in device header file; using default!" - #endif -#endif - -/* IO definitions (access restrictions to peripheral registers) */ -/** - \defgroup CMSIS_glob_defs CMSIS Global Defines - - IO Type Qualifiers are used - \li to specify the access to peripheral variables. - \li for automatic generation of peripheral register debug information. -*/ -#ifdef __cplusplus - #define __I volatile /*!< Defines 'read only' permissions */ -#else - #define __I volatile const /*!< Defines 'read only' permissions */ -#endif -#define __O volatile /*!< Defines 'write only' permissions */ -#define __IO volatile /*!< Defines 'read / write' permissions */ - -/* following defines should be used for structure members */ -#define __IM volatile const /*! Defines 'read only' structure member permissions */ -#define __OM volatile /*! Defines 'write only' structure member permissions */ -#define __IOM volatile /*! Defines 'read / write' structure member permissions */ - -/*@} end of group Cortex_M4 */ - - - -/******************************************************************************* - * Register Abstraction - Core Register contain: - - Core Register - - Core NVIC Register - - Core SCB Register - - Core SysTick Register - - Core Debug Register - - Core MPU Register - - Core FPU Register - ******************************************************************************/ -/** - \defgroup CMSIS_core_register Defines and Type Definitions - \brief Type definitions and defines for Cortex-M processor based devices. -*/ - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_CORE Status and Control Registers - \brief Core Register type definitions. - @{ - */ - -/** - \brief Union type to access the Application Program Status Register (APSR). - */ -typedef union -{ - struct - { - uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} APSR_Type; - -/* APSR Register Definitions */ -#define APSR_N_Pos 31U /*!< APSR: N Position */ -#define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ - -#define APSR_Z_Pos 30U /*!< APSR: Z Position */ -#define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ - -#define APSR_C_Pos 29U /*!< APSR: C Position */ -#define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ - -#define APSR_V_Pos 28U /*!< APSR: V Position */ -#define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ - -#define APSR_Q_Pos 27U /*!< APSR: Q Position */ -#define APSR_Q_Msk (1UL << APSR_Q_Pos) /*!< APSR: Q Mask */ - -#define APSR_GE_Pos 16U /*!< APSR: GE Position */ -#define APSR_GE_Msk (0xFUL << APSR_GE_Pos) /*!< APSR: GE Mask */ - - -/** - \brief Union type to access the Interrupt Program Status Register (IPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} IPSR_Type; - -/* IPSR Register Definitions */ -#define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ -#define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ - - -/** - \brief Union type to access the Special-Purpose Program Status Registers (xPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:1; /*!< bit: 9 Reserved */ - uint32_t ICI_IT_1:6; /*!< bit: 10..15 ICI/IT part 1 */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ - uint32_t T:1; /*!< bit: 24 Thumb bit */ - uint32_t ICI_IT_2:2; /*!< bit: 25..26 ICI/IT part 2 */ - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} xPSR_Type; - -/* xPSR Register Definitions */ -#define xPSR_N_Pos 31U /*!< xPSR: N Position */ -#define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ - -#define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ -#define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ - -#define xPSR_C_Pos 29U /*!< xPSR: C Position */ -#define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ - -#define xPSR_V_Pos 28U /*!< xPSR: V Position */ -#define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ - -#define xPSR_Q_Pos 27U /*!< xPSR: Q Position */ -#define xPSR_Q_Msk (1UL << xPSR_Q_Pos) /*!< xPSR: Q Mask */ - -#define xPSR_ICI_IT_2_Pos 25U /*!< xPSR: ICI/IT part 2 Position */ -#define xPSR_ICI_IT_2_Msk (3UL << xPSR_ICI_IT_2_Pos) /*!< xPSR: ICI/IT part 2 Mask */ - -#define xPSR_T_Pos 24U /*!< xPSR: T Position */ -#define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ - -#define xPSR_GE_Pos 16U /*!< xPSR: GE Position */ -#define xPSR_GE_Msk (0xFUL << xPSR_GE_Pos) /*!< xPSR: GE Mask */ - -#define xPSR_ICI_IT_1_Pos 10U /*!< xPSR: ICI/IT part 1 Position */ -#define xPSR_ICI_IT_1_Msk (0x3FUL << xPSR_ICI_IT_1_Pos) /*!< xPSR: ICI/IT part 1 Mask */ - -#define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ -#define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ - - -/** - \brief Union type to access the Control Registers (CONTROL). - */ -typedef union -{ - struct - { - uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ - uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ - uint32_t FPCA:1; /*!< bit: 2 FP extension active flag */ - uint32_t _reserved0:29; /*!< bit: 3..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} CONTROL_Type; - -/* CONTROL Register Definitions */ -#define CONTROL_FPCA_Pos 2U /*!< CONTROL: FPCA Position */ -#define CONTROL_FPCA_Msk (1UL << CONTROL_FPCA_Pos) /*!< CONTROL: FPCA Mask */ - -#define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ -#define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ - -#define CONTROL_nPRIV_Pos 0U /*!< CONTROL: nPRIV Position */ -#define CONTROL_nPRIV_Msk (1UL /*<< CONTROL_nPRIV_Pos*/) /*!< CONTROL: nPRIV Mask */ - -/*@} end of group CMSIS_CORE */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) - \brief Type definitions for the NVIC Registers - @{ - */ - -/** - \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). - */ -typedef struct -{ - __IOM uint32_t ISER[8U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ - uint32_t RESERVED0[24U]; - __IOM uint32_t ICER[8U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ - uint32_t RESERVED1[24U]; - __IOM uint32_t ISPR[8U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ - uint32_t RESERVED2[24U]; - __IOM uint32_t ICPR[8U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ - uint32_t RESERVED3[24U]; - __IOM uint32_t IABR[8U]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ - uint32_t RESERVED4[56U]; - __IOM uint8_t IP[240U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ - uint32_t RESERVED5[644U]; - __OM uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ -} NVIC_Type; - -/* Software Triggered Interrupt Register Definitions */ -#define NVIC_STIR_INTID_Pos 0U /*!< STIR: INTLINESNUM Position */ -#define NVIC_STIR_INTID_Msk (0x1FFUL /*<< NVIC_STIR_INTID_Pos*/) /*!< STIR: INTLINESNUM Mask */ - -/*@} end of group CMSIS_NVIC */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SCB System Control Block (SCB) - \brief Type definitions for the System Control Block Registers - @{ - */ - -/** - \brief Structure type to access the System Control Block (SCB). - */ -typedef struct -{ - __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ - __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ - __IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ - __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ - __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ - __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ - __IOM uint8_t SHP[12U]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ - __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ - __IOM uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ - __IOM uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ - __IOM uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ - __IOM uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ - __IOM uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ - __IOM uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ - __IM uint32_t PFR[2U]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ - __IM uint32_t DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ - __IM uint32_t ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ - __IM uint32_t MMFR[4U]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ - __IM uint32_t ISAR[5U]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ - uint32_t RESERVED0[5U]; - __IOM uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ -} SCB_Type; - -/* SCB CPUID Register Definitions */ -#define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ -#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ - -#define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ -#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ - -#define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ -#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ - -#define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ -#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ - -#define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ -#define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ - -/* SCB Interrupt Control State Register Definitions */ -#define SCB_ICSR_NMIPENDSET_Pos 31U /*!< SCB ICSR: NMIPENDSET Position */ -#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ - -#define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ -#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ - -#define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ -#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ - -#define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ -#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ - -#define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ -#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ - -#define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ -#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ - -#define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ -#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ - -#define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ -#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ - -#define SCB_ICSR_RETTOBASE_Pos 11U /*!< SCB ICSR: RETTOBASE Position */ -#define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ - -#define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ -#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ - -/* SCB Vector Table Offset Register Definitions */ -#define SCB_VTOR_TBLOFF_Pos 7U /*!< SCB VTOR: TBLOFF Position */ -#define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ - -/* SCB Application Interrupt and Reset Control Register Definitions */ -#define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ -#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ - -#define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ -#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ - -#define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ -#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ - -#define SCB_AIRCR_PRIGROUP_Pos 8U /*!< SCB AIRCR: PRIGROUP Position */ -#define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ - -#define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ -#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ - -#define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ -#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ - -#define SCB_AIRCR_VECTRESET_Pos 0U /*!< SCB AIRCR: VECTRESET Position */ -#define SCB_AIRCR_VECTRESET_Msk (1UL /*<< SCB_AIRCR_VECTRESET_Pos*/) /*!< SCB AIRCR: VECTRESET Mask */ - -/* SCB System Control Register Definitions */ -#define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ -#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ - -#define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ -#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ - -#define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ -#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ - -/* SCB Configuration Control Register Definitions */ -#define SCB_CCR_STKALIGN_Pos 9U /*!< SCB CCR: STKALIGN Position */ -#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ - -#define SCB_CCR_BFHFNMIGN_Pos 8U /*!< SCB CCR: BFHFNMIGN Position */ -#define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ - -#define SCB_CCR_DIV_0_TRP_Pos 4U /*!< SCB CCR: DIV_0_TRP Position */ -#define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ - -#define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ -#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ - -#define SCB_CCR_USERSETMPEND_Pos 1U /*!< SCB CCR: USERSETMPEND Position */ -#define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ - -#define SCB_CCR_NONBASETHRDENA_Pos 0U /*!< SCB CCR: NONBASETHRDENA Position */ -#define SCB_CCR_NONBASETHRDENA_Msk (1UL /*<< SCB_CCR_NONBASETHRDENA_Pos*/) /*!< SCB CCR: NONBASETHRDENA Mask */ - -/* SCB System Handler Control and State Register Definitions */ -#define SCB_SHCSR_USGFAULTENA_Pos 18U /*!< SCB SHCSR: USGFAULTENA Position */ -#define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ - -#define SCB_SHCSR_BUSFAULTENA_Pos 17U /*!< SCB SHCSR: BUSFAULTENA Position */ -#define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ - -#define SCB_SHCSR_MEMFAULTENA_Pos 16U /*!< SCB SHCSR: MEMFAULTENA Position */ -#define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ - -#define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ -#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ - -#define SCB_SHCSR_BUSFAULTPENDED_Pos 14U /*!< SCB SHCSR: BUSFAULTPENDED Position */ -#define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ - -#define SCB_SHCSR_MEMFAULTPENDED_Pos 13U /*!< SCB SHCSR: MEMFAULTPENDED Position */ -#define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ - -#define SCB_SHCSR_USGFAULTPENDED_Pos 12U /*!< SCB SHCSR: USGFAULTPENDED Position */ -#define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ - -#define SCB_SHCSR_SYSTICKACT_Pos 11U /*!< SCB SHCSR: SYSTICKACT Position */ -#define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ - -#define SCB_SHCSR_PENDSVACT_Pos 10U /*!< SCB SHCSR: PENDSVACT Position */ -#define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ - -#define SCB_SHCSR_MONITORACT_Pos 8U /*!< SCB SHCSR: MONITORACT Position */ -#define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ - -#define SCB_SHCSR_SVCALLACT_Pos 7U /*!< SCB SHCSR: SVCALLACT Position */ -#define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ - -#define SCB_SHCSR_USGFAULTACT_Pos 3U /*!< SCB SHCSR: USGFAULTACT Position */ -#define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ - -#define SCB_SHCSR_BUSFAULTACT_Pos 1U /*!< SCB SHCSR: BUSFAULTACT Position */ -#define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ - -#define SCB_SHCSR_MEMFAULTACT_Pos 0U /*!< SCB SHCSR: MEMFAULTACT Position */ -#define SCB_SHCSR_MEMFAULTACT_Msk (1UL /*<< SCB_SHCSR_MEMFAULTACT_Pos*/) /*!< SCB SHCSR: MEMFAULTACT Mask */ - -/* SCB Configurable Fault Status Register Definitions */ -#define SCB_CFSR_USGFAULTSR_Pos 16U /*!< SCB CFSR: Usage Fault Status Register Position */ -#define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ - -#define SCB_CFSR_BUSFAULTSR_Pos 8U /*!< SCB CFSR: Bus Fault Status Register Position */ -#define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ - -#define SCB_CFSR_MEMFAULTSR_Pos 0U /*!< SCB CFSR: Memory Manage Fault Status Register Position */ -#define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL /*<< SCB_CFSR_MEMFAULTSR_Pos*/) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ - -/* MemManage Fault Status Register (part of SCB Configurable Fault Status Register) */ -#define SCB_CFSR_MMARVALID_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 7U) /*!< SCB CFSR (MMFSR): MMARVALID Position */ -#define SCB_CFSR_MMARVALID_Msk (1UL << SCB_CFSR_MMARVALID_Pos) /*!< SCB CFSR (MMFSR): MMARVALID Mask */ - -#define SCB_CFSR_MLSPERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 5U) /*!< SCB CFSR (MMFSR): MLSPERR Position */ -#define SCB_CFSR_MLSPERR_Msk (1UL << SCB_CFSR_MLSPERR_Pos) /*!< SCB CFSR (MMFSR): MLSPERR Mask */ - -#define SCB_CFSR_MSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 4U) /*!< SCB CFSR (MMFSR): MSTKERR Position */ -#define SCB_CFSR_MSTKERR_Msk (1UL << SCB_CFSR_MSTKERR_Pos) /*!< SCB CFSR (MMFSR): MSTKERR Mask */ - -#define SCB_CFSR_MUNSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 3U) /*!< SCB CFSR (MMFSR): MUNSTKERR Position */ -#define SCB_CFSR_MUNSTKERR_Msk (1UL << SCB_CFSR_MUNSTKERR_Pos) /*!< SCB CFSR (MMFSR): MUNSTKERR Mask */ - -#define SCB_CFSR_DACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 1U) /*!< SCB CFSR (MMFSR): DACCVIOL Position */ -#define SCB_CFSR_DACCVIOL_Msk (1UL << SCB_CFSR_DACCVIOL_Pos) /*!< SCB CFSR (MMFSR): DACCVIOL Mask */ - -#define SCB_CFSR_IACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 0U) /*!< SCB CFSR (MMFSR): IACCVIOL Position */ -#define SCB_CFSR_IACCVIOL_Msk (1UL /*<< SCB_CFSR_IACCVIOL_Pos*/) /*!< SCB CFSR (MMFSR): IACCVIOL Mask */ - -/* BusFault Status Register (part of SCB Configurable Fault Status Register) */ -#define SCB_CFSR_BFARVALID_Pos (SCB_CFSR_BUSFAULTSR_Pos + 7U) /*!< SCB CFSR (BFSR): BFARVALID Position */ -#define SCB_CFSR_BFARVALID_Msk (1UL << SCB_CFSR_BFARVALID_Pos) /*!< SCB CFSR (BFSR): BFARVALID Mask */ - -#define SCB_CFSR_LSPERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 5U) /*!< SCB CFSR (BFSR): LSPERR Position */ -#define SCB_CFSR_LSPERR_Msk (1UL << SCB_CFSR_LSPERR_Pos) /*!< SCB CFSR (BFSR): LSPERR Mask */ - -#define SCB_CFSR_STKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 4U) /*!< SCB CFSR (BFSR): STKERR Position */ -#define SCB_CFSR_STKERR_Msk (1UL << SCB_CFSR_STKERR_Pos) /*!< SCB CFSR (BFSR): STKERR Mask */ - -#define SCB_CFSR_UNSTKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 3U) /*!< SCB CFSR (BFSR): UNSTKERR Position */ -#define SCB_CFSR_UNSTKERR_Msk (1UL << SCB_CFSR_UNSTKERR_Pos) /*!< SCB CFSR (BFSR): UNSTKERR Mask */ - -#define SCB_CFSR_IMPRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 2U) /*!< SCB CFSR (BFSR): IMPRECISERR Position */ -#define SCB_CFSR_IMPRECISERR_Msk (1UL << SCB_CFSR_IMPRECISERR_Pos) /*!< SCB CFSR (BFSR): IMPRECISERR Mask */ - -#define SCB_CFSR_PRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 1U) /*!< SCB CFSR (BFSR): PRECISERR Position */ -#define SCB_CFSR_PRECISERR_Msk (1UL << SCB_CFSR_PRECISERR_Pos) /*!< SCB CFSR (BFSR): PRECISERR Mask */ - -#define SCB_CFSR_IBUSERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 0U) /*!< SCB CFSR (BFSR): IBUSERR Position */ -#define SCB_CFSR_IBUSERR_Msk (1UL << SCB_CFSR_IBUSERR_Pos) /*!< SCB CFSR (BFSR): IBUSERR Mask */ - -/* UsageFault Status Register (part of SCB Configurable Fault Status Register) */ -#define SCB_CFSR_DIVBYZERO_Pos (SCB_CFSR_USGFAULTSR_Pos + 9U) /*!< SCB CFSR (UFSR): DIVBYZERO Position */ -#define SCB_CFSR_DIVBYZERO_Msk (1UL << SCB_CFSR_DIVBYZERO_Pos) /*!< SCB CFSR (UFSR): DIVBYZERO Mask */ - -#define SCB_CFSR_UNALIGNED_Pos (SCB_CFSR_USGFAULTSR_Pos + 8U) /*!< SCB CFSR (UFSR): UNALIGNED Position */ -#define SCB_CFSR_UNALIGNED_Msk (1UL << SCB_CFSR_UNALIGNED_Pos) /*!< SCB CFSR (UFSR): UNALIGNED Mask */ - -#define SCB_CFSR_NOCP_Pos (SCB_CFSR_USGFAULTSR_Pos + 3U) /*!< SCB CFSR (UFSR): NOCP Position */ -#define SCB_CFSR_NOCP_Msk (1UL << SCB_CFSR_NOCP_Pos) /*!< SCB CFSR (UFSR): NOCP Mask */ - -#define SCB_CFSR_INVPC_Pos (SCB_CFSR_USGFAULTSR_Pos + 2U) /*!< SCB CFSR (UFSR): INVPC Position */ -#define SCB_CFSR_INVPC_Msk (1UL << SCB_CFSR_INVPC_Pos) /*!< SCB CFSR (UFSR): INVPC Mask */ - -#define SCB_CFSR_INVSTATE_Pos (SCB_CFSR_USGFAULTSR_Pos + 1U) /*!< SCB CFSR (UFSR): INVSTATE Position */ -#define SCB_CFSR_INVSTATE_Msk (1UL << SCB_CFSR_INVSTATE_Pos) /*!< SCB CFSR (UFSR): INVSTATE Mask */ - -#define SCB_CFSR_UNDEFINSTR_Pos (SCB_CFSR_USGFAULTSR_Pos + 0U) /*!< SCB CFSR (UFSR): UNDEFINSTR Position */ -#define SCB_CFSR_UNDEFINSTR_Msk (1UL << SCB_CFSR_UNDEFINSTR_Pos) /*!< SCB CFSR (UFSR): UNDEFINSTR Mask */ - -/* SCB Hard Fault Status Register Definitions */ -#define SCB_HFSR_DEBUGEVT_Pos 31U /*!< SCB HFSR: DEBUGEVT Position */ -#define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ - -#define SCB_HFSR_FORCED_Pos 30U /*!< SCB HFSR: FORCED Position */ -#define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ - -#define SCB_HFSR_VECTTBL_Pos 1U /*!< SCB HFSR: VECTTBL Position */ -#define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ - -/* SCB Debug Fault Status Register Definitions */ -#define SCB_DFSR_EXTERNAL_Pos 4U /*!< SCB DFSR: EXTERNAL Position */ -#define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ - -#define SCB_DFSR_VCATCH_Pos 3U /*!< SCB DFSR: VCATCH Position */ -#define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ - -#define SCB_DFSR_DWTTRAP_Pos 2U /*!< SCB DFSR: DWTTRAP Position */ -#define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ - -#define SCB_DFSR_BKPT_Pos 1U /*!< SCB DFSR: BKPT Position */ -#define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ - -#define SCB_DFSR_HALTED_Pos 0U /*!< SCB DFSR: HALTED Position */ -#define SCB_DFSR_HALTED_Msk (1UL /*<< SCB_DFSR_HALTED_Pos*/) /*!< SCB DFSR: HALTED Mask */ - -/*@} end of group CMSIS_SCB */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) - \brief Type definitions for the System Control and ID Register not in the SCB - @{ - */ - -/** - \brief Structure type to access the System Control and ID Register not in the SCB. - */ -typedef struct -{ - uint32_t RESERVED0[1U]; - __IM uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ - __IOM uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ -} SCnSCB_Type; - -/* Interrupt Controller Type Register Definitions */ -#define SCnSCB_ICTR_INTLINESNUM_Pos 0U /*!< ICTR: INTLINESNUM Position */ -#define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL /*<< SCnSCB_ICTR_INTLINESNUM_Pos*/) /*!< ICTR: INTLINESNUM Mask */ - -/* Auxiliary Control Register Definitions */ -#define SCnSCB_ACTLR_DISOOFP_Pos 9U /*!< ACTLR: DISOOFP Position */ -#define SCnSCB_ACTLR_DISOOFP_Msk (1UL << SCnSCB_ACTLR_DISOOFP_Pos) /*!< ACTLR: DISOOFP Mask */ - -#define SCnSCB_ACTLR_DISFPCA_Pos 8U /*!< ACTLR: DISFPCA Position */ -#define SCnSCB_ACTLR_DISFPCA_Msk (1UL << SCnSCB_ACTLR_DISFPCA_Pos) /*!< ACTLR: DISFPCA Mask */ - -#define SCnSCB_ACTLR_DISFOLD_Pos 2U /*!< ACTLR: DISFOLD Position */ -#define SCnSCB_ACTLR_DISFOLD_Msk (1UL << SCnSCB_ACTLR_DISFOLD_Pos) /*!< ACTLR: DISFOLD Mask */ - -#define SCnSCB_ACTLR_DISDEFWBUF_Pos 1U /*!< ACTLR: DISDEFWBUF Position */ -#define SCnSCB_ACTLR_DISDEFWBUF_Msk (1UL << SCnSCB_ACTLR_DISDEFWBUF_Pos) /*!< ACTLR: DISDEFWBUF Mask */ - -#define SCnSCB_ACTLR_DISMCYCINT_Pos 0U /*!< ACTLR: DISMCYCINT Position */ -#define SCnSCB_ACTLR_DISMCYCINT_Msk (1UL /*<< SCnSCB_ACTLR_DISMCYCINT_Pos*/) /*!< ACTLR: DISMCYCINT Mask */ - -/*@} end of group CMSIS_SCnotSCB */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SysTick System Tick Timer (SysTick) - \brief Type definitions for the System Timer Registers. - @{ - */ - -/** - \brief Structure type to access the System Timer (SysTick). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ - __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ - __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ - __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ -} SysTick_Type; - -/* SysTick Control / Status Register Definitions */ -#define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ -#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ - -#define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ -#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ - -#define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ -#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ - -#define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ -#define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ - -/* SysTick Reload Register Definitions */ -#define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ -#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ - -/* SysTick Current Register Definitions */ -#define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ -#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ - -/* SysTick Calibration Register Definitions */ -#define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ -#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ - -#define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ -#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ - -#define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ -#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ - -/*@} end of group CMSIS_SysTick */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_ITM Instrumentation Trace Macrocell (ITM) - \brief Type definitions for the Instrumentation Trace Macrocell (ITM) - @{ - */ - -/** - \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). - */ -typedef struct -{ - __OM union - { - __OM uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ - __OM uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ - __OM uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ - } PORT [32U]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ - uint32_t RESERVED0[864U]; - __IOM uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ - uint32_t RESERVED1[15U]; - __IOM uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ - uint32_t RESERVED2[15U]; - __IOM uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ - uint32_t RESERVED3[32U]; - uint32_t RESERVED4[43U]; - __OM uint32_t LAR; /*!< Offset: 0xFB0 ( /W) ITM Lock Access Register */ - __IM uint32_t LSR; /*!< Offset: 0xFB4 (R/ ) ITM Lock Status Register */ - uint32_t RESERVED5[6U]; - __IM uint32_t PID4; /*!< Offset: 0xFD0 (R/ ) ITM Peripheral Identification Register #4 */ - __IM uint32_t PID5; /*!< Offset: 0xFD4 (R/ ) ITM Peripheral Identification Register #5 */ - __IM uint32_t PID6; /*!< Offset: 0xFD8 (R/ ) ITM Peripheral Identification Register #6 */ - __IM uint32_t PID7; /*!< Offset: 0xFDC (R/ ) ITM Peripheral Identification Register #7 */ - __IM uint32_t PID0; /*!< Offset: 0xFE0 (R/ ) ITM Peripheral Identification Register #0 */ - __IM uint32_t PID1; /*!< Offset: 0xFE4 (R/ ) ITM Peripheral Identification Register #1 */ - __IM uint32_t PID2; /*!< Offset: 0xFE8 (R/ ) ITM Peripheral Identification Register #2 */ - __IM uint32_t PID3; /*!< Offset: 0xFEC (R/ ) ITM Peripheral Identification Register #3 */ - __IM uint32_t CID0; /*!< Offset: 0xFF0 (R/ ) ITM Component Identification Register #0 */ - __IM uint32_t CID1; /*!< Offset: 0xFF4 (R/ ) ITM Component Identification Register #1 */ - __IM uint32_t CID2; /*!< Offset: 0xFF8 (R/ ) ITM Component Identification Register #2 */ - __IM uint32_t CID3; /*!< Offset: 0xFFC (R/ ) ITM Component Identification Register #3 */ -} ITM_Type; - -/* ITM Trace Privilege Register Definitions */ -#define ITM_TPR_PRIVMASK_Pos 0U /*!< ITM TPR: PRIVMASK Position */ -#define ITM_TPR_PRIVMASK_Msk (0xFFFFFFFFUL /*<< ITM_TPR_PRIVMASK_Pos*/) /*!< ITM TPR: PRIVMASK Mask */ - -/* ITM Trace Control Register Definitions */ -#define ITM_TCR_BUSY_Pos 23U /*!< ITM TCR: BUSY Position */ -#define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ - -#define ITM_TCR_TraceBusID_Pos 16U /*!< ITM TCR: ATBID Position */ -#define ITM_TCR_TraceBusID_Msk (0x7FUL << ITM_TCR_TraceBusID_Pos) /*!< ITM TCR: ATBID Mask */ - -#define ITM_TCR_GTSFREQ_Pos 10U /*!< ITM TCR: Global timestamp frequency Position */ -#define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ - -#define ITM_TCR_TSPrescale_Pos 8U /*!< ITM TCR: TSPrescale Position */ -#define ITM_TCR_TSPrescale_Msk (3UL << ITM_TCR_TSPrescale_Pos) /*!< ITM TCR: TSPrescale Mask */ - -#define ITM_TCR_SWOENA_Pos 4U /*!< ITM TCR: SWOENA Position */ -#define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ - -#define ITM_TCR_DWTENA_Pos 3U /*!< ITM TCR: DWTENA Position */ -#define ITM_TCR_DWTENA_Msk (1UL << ITM_TCR_DWTENA_Pos) /*!< ITM TCR: DWTENA Mask */ - -#define ITM_TCR_SYNCENA_Pos 2U /*!< ITM TCR: SYNCENA Position */ -#define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ - -#define ITM_TCR_TSENA_Pos 1U /*!< ITM TCR: TSENA Position */ -#define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ - -#define ITM_TCR_ITMENA_Pos 0U /*!< ITM TCR: ITM Enable bit Position */ -#define ITM_TCR_ITMENA_Msk (1UL /*<< ITM_TCR_ITMENA_Pos*/) /*!< ITM TCR: ITM Enable bit Mask */ - -/* ITM Lock Status Register Definitions */ -#define ITM_LSR_ByteAcc_Pos 2U /*!< ITM LSR: ByteAcc Position */ -#define ITM_LSR_ByteAcc_Msk (1UL << ITM_LSR_ByteAcc_Pos) /*!< ITM LSR: ByteAcc Mask */ - -#define ITM_LSR_Access_Pos 1U /*!< ITM LSR: Access Position */ -#define ITM_LSR_Access_Msk (1UL << ITM_LSR_Access_Pos) /*!< ITM LSR: Access Mask */ - -#define ITM_LSR_Present_Pos 0U /*!< ITM LSR: Present Position */ -#define ITM_LSR_Present_Msk (1UL /*<< ITM_LSR_Present_Pos*/) /*!< ITM LSR: Present Mask */ - -/*@}*/ /* end of group CMSIS_ITM */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) - \brief Type definitions for the Data Watchpoint and Trace (DWT) - @{ - */ - -/** - \brief Structure type to access the Data Watchpoint and Trace Register (DWT). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ - __IOM uint32_t CYCCNT; /*!< Offset: 0x004 (R/W) Cycle Count Register */ - __IOM uint32_t CPICNT; /*!< Offset: 0x008 (R/W) CPI Count Register */ - __IOM uint32_t EXCCNT; /*!< Offset: 0x00C (R/W) Exception Overhead Count Register */ - __IOM uint32_t SLEEPCNT; /*!< Offset: 0x010 (R/W) Sleep Count Register */ - __IOM uint32_t LSUCNT; /*!< Offset: 0x014 (R/W) LSU Count Register */ - __IOM uint32_t FOLDCNT; /*!< Offset: 0x018 (R/W) Folded-instruction Count Register */ - __IM uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ - __IOM uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ - __IOM uint32_t MASK0; /*!< Offset: 0x024 (R/W) Mask Register 0 */ - __IOM uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ - uint32_t RESERVED0[1U]; - __IOM uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ - __IOM uint32_t MASK1; /*!< Offset: 0x034 (R/W) Mask Register 1 */ - __IOM uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ - uint32_t RESERVED1[1U]; - __IOM uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ - __IOM uint32_t MASK2; /*!< Offset: 0x044 (R/W) Mask Register 2 */ - __IOM uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ - uint32_t RESERVED2[1U]; - __IOM uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ - __IOM uint32_t MASK3; /*!< Offset: 0x054 (R/W) Mask Register 3 */ - __IOM uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ -} DWT_Type; - -/* DWT Control Register Definitions */ -#define DWT_CTRL_NUMCOMP_Pos 28U /*!< DWT CTRL: NUMCOMP Position */ -#define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ - -#define DWT_CTRL_NOTRCPKT_Pos 27U /*!< DWT CTRL: NOTRCPKT Position */ -#define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ - -#define DWT_CTRL_NOEXTTRIG_Pos 26U /*!< DWT CTRL: NOEXTTRIG Position */ -#define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ - -#define DWT_CTRL_NOCYCCNT_Pos 25U /*!< DWT CTRL: NOCYCCNT Position */ -#define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ - -#define DWT_CTRL_NOPRFCNT_Pos 24U /*!< DWT CTRL: NOPRFCNT Position */ -#define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ - -#define DWT_CTRL_CYCEVTENA_Pos 22U /*!< DWT CTRL: CYCEVTENA Position */ -#define DWT_CTRL_CYCEVTENA_Msk (0x1UL << DWT_CTRL_CYCEVTENA_Pos) /*!< DWT CTRL: CYCEVTENA Mask */ - -#define DWT_CTRL_FOLDEVTENA_Pos 21U /*!< DWT CTRL: FOLDEVTENA Position */ -#define DWT_CTRL_FOLDEVTENA_Msk (0x1UL << DWT_CTRL_FOLDEVTENA_Pos) /*!< DWT CTRL: FOLDEVTENA Mask */ - -#define DWT_CTRL_LSUEVTENA_Pos 20U /*!< DWT CTRL: LSUEVTENA Position */ -#define DWT_CTRL_LSUEVTENA_Msk (0x1UL << DWT_CTRL_LSUEVTENA_Pos) /*!< DWT CTRL: LSUEVTENA Mask */ - -#define DWT_CTRL_SLEEPEVTENA_Pos 19U /*!< DWT CTRL: SLEEPEVTENA Position */ -#define DWT_CTRL_SLEEPEVTENA_Msk (0x1UL << DWT_CTRL_SLEEPEVTENA_Pos) /*!< DWT CTRL: SLEEPEVTENA Mask */ - -#define DWT_CTRL_EXCEVTENA_Pos 18U /*!< DWT CTRL: EXCEVTENA Position */ -#define DWT_CTRL_EXCEVTENA_Msk (0x1UL << DWT_CTRL_EXCEVTENA_Pos) /*!< DWT CTRL: EXCEVTENA Mask */ - -#define DWT_CTRL_CPIEVTENA_Pos 17U /*!< DWT CTRL: CPIEVTENA Position */ -#define DWT_CTRL_CPIEVTENA_Msk (0x1UL << DWT_CTRL_CPIEVTENA_Pos) /*!< DWT CTRL: CPIEVTENA Mask */ - -#define DWT_CTRL_EXCTRCENA_Pos 16U /*!< DWT CTRL: EXCTRCENA Position */ -#define DWT_CTRL_EXCTRCENA_Msk (0x1UL << DWT_CTRL_EXCTRCENA_Pos) /*!< DWT CTRL: EXCTRCENA Mask */ - -#define DWT_CTRL_PCSAMPLENA_Pos 12U /*!< DWT CTRL: PCSAMPLENA Position */ -#define DWT_CTRL_PCSAMPLENA_Msk (0x1UL << DWT_CTRL_PCSAMPLENA_Pos) /*!< DWT CTRL: PCSAMPLENA Mask */ - -#define DWT_CTRL_SYNCTAP_Pos 10U /*!< DWT CTRL: SYNCTAP Position */ -#define DWT_CTRL_SYNCTAP_Msk (0x3UL << DWT_CTRL_SYNCTAP_Pos) /*!< DWT CTRL: SYNCTAP Mask */ - -#define DWT_CTRL_CYCTAP_Pos 9U /*!< DWT CTRL: CYCTAP Position */ -#define DWT_CTRL_CYCTAP_Msk (0x1UL << DWT_CTRL_CYCTAP_Pos) /*!< DWT CTRL: CYCTAP Mask */ - -#define DWT_CTRL_POSTINIT_Pos 5U /*!< DWT CTRL: POSTINIT Position */ -#define DWT_CTRL_POSTINIT_Msk (0xFUL << DWT_CTRL_POSTINIT_Pos) /*!< DWT CTRL: POSTINIT Mask */ - -#define DWT_CTRL_POSTPRESET_Pos 1U /*!< DWT CTRL: POSTPRESET Position */ -#define DWT_CTRL_POSTPRESET_Msk (0xFUL << DWT_CTRL_POSTPRESET_Pos) /*!< DWT CTRL: POSTPRESET Mask */ - -#define DWT_CTRL_CYCCNTENA_Pos 0U /*!< DWT CTRL: CYCCNTENA Position */ -#define DWT_CTRL_CYCCNTENA_Msk (0x1UL /*<< DWT_CTRL_CYCCNTENA_Pos*/) /*!< DWT CTRL: CYCCNTENA Mask */ - -/* DWT CPI Count Register Definitions */ -#define DWT_CPICNT_CPICNT_Pos 0U /*!< DWT CPICNT: CPICNT Position */ -#define DWT_CPICNT_CPICNT_Msk (0xFFUL /*<< DWT_CPICNT_CPICNT_Pos*/) /*!< DWT CPICNT: CPICNT Mask */ - -/* DWT Exception Overhead Count Register Definitions */ -#define DWT_EXCCNT_EXCCNT_Pos 0U /*!< DWT EXCCNT: EXCCNT Position */ -#define DWT_EXCCNT_EXCCNT_Msk (0xFFUL /*<< DWT_EXCCNT_EXCCNT_Pos*/) /*!< DWT EXCCNT: EXCCNT Mask */ - -/* DWT Sleep Count Register Definitions */ -#define DWT_SLEEPCNT_SLEEPCNT_Pos 0U /*!< DWT SLEEPCNT: SLEEPCNT Position */ -#define DWT_SLEEPCNT_SLEEPCNT_Msk (0xFFUL /*<< DWT_SLEEPCNT_SLEEPCNT_Pos*/) /*!< DWT SLEEPCNT: SLEEPCNT Mask */ - -/* DWT LSU Count Register Definitions */ -#define DWT_LSUCNT_LSUCNT_Pos 0U /*!< DWT LSUCNT: LSUCNT Position */ -#define DWT_LSUCNT_LSUCNT_Msk (0xFFUL /*<< DWT_LSUCNT_LSUCNT_Pos*/) /*!< DWT LSUCNT: LSUCNT Mask */ - -/* DWT Folded-instruction Count Register Definitions */ -#define DWT_FOLDCNT_FOLDCNT_Pos 0U /*!< DWT FOLDCNT: FOLDCNT Position */ -#define DWT_FOLDCNT_FOLDCNT_Msk (0xFFUL /*<< DWT_FOLDCNT_FOLDCNT_Pos*/) /*!< DWT FOLDCNT: FOLDCNT Mask */ - -/* DWT Comparator Mask Register Definitions */ -#define DWT_MASK_MASK_Pos 0U /*!< DWT MASK: MASK Position */ -#define DWT_MASK_MASK_Msk (0x1FUL /*<< DWT_MASK_MASK_Pos*/) /*!< DWT MASK: MASK Mask */ - -/* DWT Comparator Function Register Definitions */ -#define DWT_FUNCTION_MATCHED_Pos 24U /*!< DWT FUNCTION: MATCHED Position */ -#define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ - -#define DWT_FUNCTION_DATAVADDR1_Pos 16U /*!< DWT FUNCTION: DATAVADDR1 Position */ -#define DWT_FUNCTION_DATAVADDR1_Msk (0xFUL << DWT_FUNCTION_DATAVADDR1_Pos) /*!< DWT FUNCTION: DATAVADDR1 Mask */ - -#define DWT_FUNCTION_DATAVADDR0_Pos 12U /*!< DWT FUNCTION: DATAVADDR0 Position */ -#define DWT_FUNCTION_DATAVADDR0_Msk (0xFUL << DWT_FUNCTION_DATAVADDR0_Pos) /*!< DWT FUNCTION: DATAVADDR0 Mask */ - -#define DWT_FUNCTION_DATAVSIZE_Pos 10U /*!< DWT FUNCTION: DATAVSIZE Position */ -#define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ - -#define DWT_FUNCTION_LNK1ENA_Pos 9U /*!< DWT FUNCTION: LNK1ENA Position */ -#define DWT_FUNCTION_LNK1ENA_Msk (0x1UL << DWT_FUNCTION_LNK1ENA_Pos) /*!< DWT FUNCTION: LNK1ENA Mask */ - -#define DWT_FUNCTION_DATAVMATCH_Pos 8U /*!< DWT FUNCTION: DATAVMATCH Position */ -#define DWT_FUNCTION_DATAVMATCH_Msk (0x1UL << DWT_FUNCTION_DATAVMATCH_Pos) /*!< DWT FUNCTION: DATAVMATCH Mask */ - -#define DWT_FUNCTION_CYCMATCH_Pos 7U /*!< DWT FUNCTION: CYCMATCH Position */ -#define DWT_FUNCTION_CYCMATCH_Msk (0x1UL << DWT_FUNCTION_CYCMATCH_Pos) /*!< DWT FUNCTION: CYCMATCH Mask */ - -#define DWT_FUNCTION_EMITRANGE_Pos 5U /*!< DWT FUNCTION: EMITRANGE Position */ -#define DWT_FUNCTION_EMITRANGE_Msk (0x1UL << DWT_FUNCTION_EMITRANGE_Pos) /*!< DWT FUNCTION: EMITRANGE Mask */ - -#define DWT_FUNCTION_FUNCTION_Pos 0U /*!< DWT FUNCTION: FUNCTION Position */ -#define DWT_FUNCTION_FUNCTION_Msk (0xFUL /*<< DWT_FUNCTION_FUNCTION_Pos*/) /*!< DWT FUNCTION: FUNCTION Mask */ - -/*@}*/ /* end of group CMSIS_DWT */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_TPI Trace Port Interface (TPI) - \brief Type definitions for the Trace Port Interface (TPI) - @{ - */ - -/** - \brief Structure type to access the Trace Port Interface Register (TPI). - */ -typedef struct -{ - __IM uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Size Register */ - __IOM uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Size Register */ - uint32_t RESERVED0[2U]; - __IOM uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ - uint32_t RESERVED1[55U]; - __IOM uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ - uint32_t RESERVED2[131U]; - __IM uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ - __IOM uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ - __IM uint32_t FSCR; /*!< Offset: 0x308 (R/ ) Formatter Synchronization Counter Register */ - uint32_t RESERVED3[759U]; - __IM uint32_t TRIGGER; /*!< Offset: 0xEE8 (R/ ) TRIGGER Register */ - __IM uint32_t FIFO0; /*!< Offset: 0xEEC (R/ ) Integration ETM Data */ - __IM uint32_t ITATBCTR2; /*!< Offset: 0xEF0 (R/ ) ITATBCTR2 */ - uint32_t RESERVED4[1U]; - __IM uint32_t ITATBCTR0; /*!< Offset: 0xEF8 (R/ ) ITATBCTR0 */ - __IM uint32_t FIFO1; /*!< Offset: 0xEFC (R/ ) Integration ITM Data */ - __IOM uint32_t ITCTRL; /*!< Offset: 0xF00 (R/W) Integration Mode Control */ - uint32_t RESERVED5[39U]; - __IOM uint32_t CLAIMSET; /*!< Offset: 0xFA0 (R/W) Claim tag set */ - __IOM uint32_t CLAIMCLR; /*!< Offset: 0xFA4 (R/W) Claim tag clear */ - uint32_t RESERVED7[8U]; - __IM uint32_t DEVID; /*!< Offset: 0xFC8 (R/ ) TPIU_DEVID */ - __IM uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) TPIU_DEVTYPE */ -} TPI_Type; - -/* TPI Asynchronous Clock Prescaler Register Definitions */ -#define TPI_ACPR_PRESCALER_Pos 0U /*!< TPI ACPR: PRESCALER Position */ -#define TPI_ACPR_PRESCALER_Msk (0x1FFFUL /*<< TPI_ACPR_PRESCALER_Pos*/) /*!< TPI ACPR: PRESCALER Mask */ - -/* TPI Selected Pin Protocol Register Definitions */ -#define TPI_SPPR_TXMODE_Pos 0U /*!< TPI SPPR: TXMODE Position */ -#define TPI_SPPR_TXMODE_Msk (0x3UL /*<< TPI_SPPR_TXMODE_Pos*/) /*!< TPI SPPR: TXMODE Mask */ - -/* TPI Formatter and Flush Status Register Definitions */ -#define TPI_FFSR_FtNonStop_Pos 3U /*!< TPI FFSR: FtNonStop Position */ -#define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ - -#define TPI_FFSR_TCPresent_Pos 2U /*!< TPI FFSR: TCPresent Position */ -#define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ - -#define TPI_FFSR_FtStopped_Pos 1U /*!< TPI FFSR: FtStopped Position */ -#define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ - -#define TPI_FFSR_FlInProg_Pos 0U /*!< TPI FFSR: FlInProg Position */ -#define TPI_FFSR_FlInProg_Msk (0x1UL /*<< TPI_FFSR_FlInProg_Pos*/) /*!< TPI FFSR: FlInProg Mask */ - -/* TPI Formatter and Flush Control Register Definitions */ -#define TPI_FFCR_TrigIn_Pos 8U /*!< TPI FFCR: TrigIn Position */ -#define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ - -#define TPI_FFCR_EnFCont_Pos 1U /*!< TPI FFCR: EnFCont Position */ -#define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ - -/* TPI TRIGGER Register Definitions */ -#define TPI_TRIGGER_TRIGGER_Pos 0U /*!< TPI TRIGGER: TRIGGER Position */ -#define TPI_TRIGGER_TRIGGER_Msk (0x1UL /*<< TPI_TRIGGER_TRIGGER_Pos*/) /*!< TPI TRIGGER: TRIGGER Mask */ - -/* TPI Integration ETM Data Register Definitions (FIFO0) */ -#define TPI_FIFO0_ITM_ATVALID_Pos 29U /*!< TPI FIFO0: ITM_ATVALID Position */ -#define TPI_FIFO0_ITM_ATVALID_Msk (0x1UL << TPI_FIFO0_ITM_ATVALID_Pos) /*!< TPI FIFO0: ITM_ATVALID Mask */ - -#define TPI_FIFO0_ITM_bytecount_Pos 27U /*!< TPI FIFO0: ITM_bytecount Position */ -#define TPI_FIFO0_ITM_bytecount_Msk (0x3UL << TPI_FIFO0_ITM_bytecount_Pos) /*!< TPI FIFO0: ITM_bytecount Mask */ - -#define TPI_FIFO0_ETM_ATVALID_Pos 26U /*!< TPI FIFO0: ETM_ATVALID Position */ -#define TPI_FIFO0_ETM_ATVALID_Msk (0x1UL << TPI_FIFO0_ETM_ATVALID_Pos) /*!< TPI FIFO0: ETM_ATVALID Mask */ - -#define TPI_FIFO0_ETM_bytecount_Pos 24U /*!< TPI FIFO0: ETM_bytecount Position */ -#define TPI_FIFO0_ETM_bytecount_Msk (0x3UL << TPI_FIFO0_ETM_bytecount_Pos) /*!< TPI FIFO0: ETM_bytecount Mask */ - -#define TPI_FIFO0_ETM2_Pos 16U /*!< TPI FIFO0: ETM2 Position */ -#define TPI_FIFO0_ETM2_Msk (0xFFUL << TPI_FIFO0_ETM2_Pos) /*!< TPI FIFO0: ETM2 Mask */ - -#define TPI_FIFO0_ETM1_Pos 8U /*!< TPI FIFO0: ETM1 Position */ -#define TPI_FIFO0_ETM1_Msk (0xFFUL << TPI_FIFO0_ETM1_Pos) /*!< TPI FIFO0: ETM1 Mask */ - -#define TPI_FIFO0_ETM0_Pos 0U /*!< TPI FIFO0: ETM0 Position */ -#define TPI_FIFO0_ETM0_Msk (0xFFUL /*<< TPI_FIFO0_ETM0_Pos*/) /*!< TPI FIFO0: ETM0 Mask */ - -/* TPI ITATBCTR2 Register Definitions */ -#define TPI_ITATBCTR2_ATREADY2_Pos 0U /*!< TPI ITATBCTR2: ATREADY2 Position */ -#define TPI_ITATBCTR2_ATREADY2_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY2_Pos*/) /*!< TPI ITATBCTR2: ATREADY2 Mask */ - -#define TPI_ITATBCTR2_ATREADY1_Pos 0U /*!< TPI ITATBCTR2: ATREADY1 Position */ -#define TPI_ITATBCTR2_ATREADY1_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY1_Pos*/) /*!< TPI ITATBCTR2: ATREADY1 Mask */ - -/* TPI Integration ITM Data Register Definitions (FIFO1) */ -#define TPI_FIFO1_ITM_ATVALID_Pos 29U /*!< TPI FIFO1: ITM_ATVALID Position */ -#define TPI_FIFO1_ITM_ATVALID_Msk (0x1UL << TPI_FIFO1_ITM_ATVALID_Pos) /*!< TPI FIFO1: ITM_ATVALID Mask */ - -#define TPI_FIFO1_ITM_bytecount_Pos 27U /*!< TPI FIFO1: ITM_bytecount Position */ -#define TPI_FIFO1_ITM_bytecount_Msk (0x3UL << TPI_FIFO1_ITM_bytecount_Pos) /*!< TPI FIFO1: ITM_bytecount Mask */ - -#define TPI_FIFO1_ETM_ATVALID_Pos 26U /*!< TPI FIFO1: ETM_ATVALID Position */ -#define TPI_FIFO1_ETM_ATVALID_Msk (0x1UL << TPI_FIFO1_ETM_ATVALID_Pos) /*!< TPI FIFO1: ETM_ATVALID Mask */ - -#define TPI_FIFO1_ETM_bytecount_Pos 24U /*!< TPI FIFO1: ETM_bytecount Position */ -#define TPI_FIFO1_ETM_bytecount_Msk (0x3UL << TPI_FIFO1_ETM_bytecount_Pos) /*!< TPI FIFO1: ETM_bytecount Mask */ - -#define TPI_FIFO1_ITM2_Pos 16U /*!< TPI FIFO1: ITM2 Position */ -#define TPI_FIFO1_ITM2_Msk (0xFFUL << TPI_FIFO1_ITM2_Pos) /*!< TPI FIFO1: ITM2 Mask */ - -#define TPI_FIFO1_ITM1_Pos 8U /*!< TPI FIFO1: ITM1 Position */ -#define TPI_FIFO1_ITM1_Msk (0xFFUL << TPI_FIFO1_ITM1_Pos) /*!< TPI FIFO1: ITM1 Mask */ - -#define TPI_FIFO1_ITM0_Pos 0U /*!< TPI FIFO1: ITM0 Position */ -#define TPI_FIFO1_ITM0_Msk (0xFFUL /*<< TPI_FIFO1_ITM0_Pos*/) /*!< TPI FIFO1: ITM0 Mask */ - -/* TPI ITATBCTR0 Register Definitions */ -#define TPI_ITATBCTR0_ATREADY2_Pos 0U /*!< TPI ITATBCTR0: ATREADY2 Position */ -#define TPI_ITATBCTR0_ATREADY2_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY2_Pos*/) /*!< TPI ITATBCTR0: ATREADY2 Mask */ - -#define TPI_ITATBCTR0_ATREADY1_Pos 0U /*!< TPI ITATBCTR0: ATREADY1 Position */ -#define TPI_ITATBCTR0_ATREADY1_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY1_Pos*/) /*!< TPI ITATBCTR0: ATREADY1 Mask */ - -/* TPI Integration Mode Control Register Definitions */ -#define TPI_ITCTRL_Mode_Pos 0U /*!< TPI ITCTRL: Mode Position */ -#define TPI_ITCTRL_Mode_Msk (0x3UL /*<< TPI_ITCTRL_Mode_Pos*/) /*!< TPI ITCTRL: Mode Mask */ - -/* TPI DEVID Register Definitions */ -#define TPI_DEVID_NRZVALID_Pos 11U /*!< TPI DEVID: NRZVALID Position */ -#define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ - -#define TPI_DEVID_MANCVALID_Pos 10U /*!< TPI DEVID: MANCVALID Position */ -#define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ - -#define TPI_DEVID_PTINVALID_Pos 9U /*!< TPI DEVID: PTINVALID Position */ -#define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ - -#define TPI_DEVID_MinBufSz_Pos 6U /*!< TPI DEVID: MinBufSz Position */ -#define TPI_DEVID_MinBufSz_Msk (0x7UL << TPI_DEVID_MinBufSz_Pos) /*!< TPI DEVID: MinBufSz Mask */ - -#define TPI_DEVID_AsynClkIn_Pos 5U /*!< TPI DEVID: AsynClkIn Position */ -#define TPI_DEVID_AsynClkIn_Msk (0x1UL << TPI_DEVID_AsynClkIn_Pos) /*!< TPI DEVID: AsynClkIn Mask */ - -#define TPI_DEVID_NrTraceInput_Pos 0U /*!< TPI DEVID: NrTraceInput Position */ -#define TPI_DEVID_NrTraceInput_Msk (0x1FUL /*<< TPI_DEVID_NrTraceInput_Pos*/) /*!< TPI DEVID: NrTraceInput Mask */ - -/* TPI DEVTYPE Register Definitions */ -#define TPI_DEVTYPE_SubType_Pos 4U /*!< TPI DEVTYPE: SubType Position */ -#define TPI_DEVTYPE_SubType_Msk (0xFUL /*<< TPI_DEVTYPE_SubType_Pos*/) /*!< TPI DEVTYPE: SubType Mask */ - -#define TPI_DEVTYPE_MajorType_Pos 0U /*!< TPI DEVTYPE: MajorType Position */ -#define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ - -/*@}*/ /* end of group CMSIS_TPI */ - - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_MPU Memory Protection Unit (MPU) - \brief Type definitions for the Memory Protection Unit (MPU) - @{ - */ - -/** - \brief Structure type to access the Memory Protection Unit (MPU). - */ -typedef struct -{ - __IM uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ - __IOM uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ - __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ - __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ - __IOM uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ - __IOM uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Alias 1 Region Base Address Register */ - __IOM uint32_t RASR_A1; /*!< Offset: 0x018 (R/W) MPU Alias 1 Region Attribute and Size Register */ - __IOM uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Alias 2 Region Base Address Register */ - __IOM uint32_t RASR_A2; /*!< Offset: 0x020 (R/W) MPU Alias 2 Region Attribute and Size Register */ - __IOM uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Alias 3 Region Base Address Register */ - __IOM uint32_t RASR_A3; /*!< Offset: 0x028 (R/W) MPU Alias 3 Region Attribute and Size Register */ -} MPU_Type; - -#define MPU_TYPE_RALIASES 4U - -/* MPU Type Register Definitions */ -#define MPU_TYPE_IREGION_Pos 16U /*!< MPU TYPE: IREGION Position */ -#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ - -#define MPU_TYPE_DREGION_Pos 8U /*!< MPU TYPE: DREGION Position */ -#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ - -#define MPU_TYPE_SEPARATE_Pos 0U /*!< MPU TYPE: SEPARATE Position */ -#define MPU_TYPE_SEPARATE_Msk (1UL /*<< MPU_TYPE_SEPARATE_Pos*/) /*!< MPU TYPE: SEPARATE Mask */ - -/* MPU Control Register Definitions */ -#define MPU_CTRL_PRIVDEFENA_Pos 2U /*!< MPU CTRL: PRIVDEFENA Position */ -#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ - -#define MPU_CTRL_HFNMIENA_Pos 1U /*!< MPU CTRL: HFNMIENA Position */ -#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ - -#define MPU_CTRL_ENABLE_Pos 0U /*!< MPU CTRL: ENABLE Position */ -#define MPU_CTRL_ENABLE_Msk (1UL /*<< MPU_CTRL_ENABLE_Pos*/) /*!< MPU CTRL: ENABLE Mask */ - -/* MPU Region Number Register Definitions */ -#define MPU_RNR_REGION_Pos 0U /*!< MPU RNR: REGION Position */ -#define MPU_RNR_REGION_Msk (0xFFUL /*<< MPU_RNR_REGION_Pos*/) /*!< MPU RNR: REGION Mask */ - -/* MPU Region Base Address Register Definitions */ -#define MPU_RBAR_ADDR_Pos 5U /*!< MPU RBAR: ADDR Position */ -#define MPU_RBAR_ADDR_Msk (0x7FFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ - -#define MPU_RBAR_VALID_Pos 4U /*!< MPU RBAR: VALID Position */ -#define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ - -#define MPU_RBAR_REGION_Pos 0U /*!< MPU RBAR: REGION Position */ -#define MPU_RBAR_REGION_Msk (0xFUL /*<< MPU_RBAR_REGION_Pos*/) /*!< MPU RBAR: REGION Mask */ - -/* MPU Region Attribute and Size Register Definitions */ -#define MPU_RASR_ATTRS_Pos 16U /*!< MPU RASR: MPU Region Attribute field Position */ -#define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ - -#define MPU_RASR_XN_Pos 28U /*!< MPU RASR: ATTRS.XN Position */ -#define MPU_RASR_XN_Msk (1UL << MPU_RASR_XN_Pos) /*!< MPU RASR: ATTRS.XN Mask */ - -#define MPU_RASR_AP_Pos 24U /*!< MPU RASR: ATTRS.AP Position */ -#define MPU_RASR_AP_Msk (0x7UL << MPU_RASR_AP_Pos) /*!< MPU RASR: ATTRS.AP Mask */ - -#define MPU_RASR_TEX_Pos 19U /*!< MPU RASR: ATTRS.TEX Position */ -#define MPU_RASR_TEX_Msk (0x7UL << MPU_RASR_TEX_Pos) /*!< MPU RASR: ATTRS.TEX Mask */ - -#define MPU_RASR_S_Pos 18U /*!< MPU RASR: ATTRS.S Position */ -#define MPU_RASR_S_Msk (1UL << MPU_RASR_S_Pos) /*!< MPU RASR: ATTRS.S Mask */ - -#define MPU_RASR_C_Pos 17U /*!< MPU RASR: ATTRS.C Position */ -#define MPU_RASR_C_Msk (1UL << MPU_RASR_C_Pos) /*!< MPU RASR: ATTRS.C Mask */ - -#define MPU_RASR_B_Pos 16U /*!< MPU RASR: ATTRS.B Position */ -#define MPU_RASR_B_Msk (1UL << MPU_RASR_B_Pos) /*!< MPU RASR: ATTRS.B Mask */ - -#define MPU_RASR_SRD_Pos 8U /*!< MPU RASR: Sub-Region Disable Position */ -#define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ - -#define MPU_RASR_SIZE_Pos 1U /*!< MPU RASR: Region Size Field Position */ -#define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ - -#define MPU_RASR_ENABLE_Pos 0U /*!< MPU RASR: Region enable bit Position */ -#define MPU_RASR_ENABLE_Msk (1UL /*<< MPU_RASR_ENABLE_Pos*/) /*!< MPU RASR: Region enable bit Disable Mask */ - -/*@} end of group CMSIS_MPU */ -#endif /* defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_FPU Floating Point Unit (FPU) - \brief Type definitions for the Floating Point Unit (FPU) - @{ - */ - -/** - \brief Structure type to access the Floating Point Unit (FPU). - */ -typedef struct -{ - uint32_t RESERVED0[1U]; - __IOM uint32_t FPCCR; /*!< Offset: 0x004 (R/W) Floating-Point Context Control Register */ - __IOM uint32_t FPCAR; /*!< Offset: 0x008 (R/W) Floating-Point Context Address Register */ - __IOM uint32_t FPDSCR; /*!< Offset: 0x00C (R/W) Floating-Point Default Status Control Register */ - __IM uint32_t MVFR0; /*!< Offset: 0x010 (R/ ) Media and FP Feature Register 0 */ - __IM uint32_t MVFR1; /*!< Offset: 0x014 (R/ ) Media and FP Feature Register 1 */ - __IM uint32_t MVFR2; /*!< Offset: 0x018 (R/ ) Media and FP Feature Register 2 */ -} FPU_Type; - -/* Floating-Point Context Control Register Definitions */ -#define FPU_FPCCR_ASPEN_Pos 31U /*!< FPCCR: ASPEN bit Position */ -#define FPU_FPCCR_ASPEN_Msk (1UL << FPU_FPCCR_ASPEN_Pos) /*!< FPCCR: ASPEN bit Mask */ - -#define FPU_FPCCR_LSPEN_Pos 30U /*!< FPCCR: LSPEN Position */ -#define FPU_FPCCR_LSPEN_Msk (1UL << FPU_FPCCR_LSPEN_Pos) /*!< FPCCR: LSPEN bit Mask */ - -#define FPU_FPCCR_MONRDY_Pos 8U /*!< FPCCR: MONRDY Position */ -#define FPU_FPCCR_MONRDY_Msk (1UL << FPU_FPCCR_MONRDY_Pos) /*!< FPCCR: MONRDY bit Mask */ - -#define FPU_FPCCR_BFRDY_Pos 6U /*!< FPCCR: BFRDY Position */ -#define FPU_FPCCR_BFRDY_Msk (1UL << FPU_FPCCR_BFRDY_Pos) /*!< FPCCR: BFRDY bit Mask */ - -#define FPU_FPCCR_MMRDY_Pos 5U /*!< FPCCR: MMRDY Position */ -#define FPU_FPCCR_MMRDY_Msk (1UL << FPU_FPCCR_MMRDY_Pos) /*!< FPCCR: MMRDY bit Mask */ - -#define FPU_FPCCR_HFRDY_Pos 4U /*!< FPCCR: HFRDY Position */ -#define FPU_FPCCR_HFRDY_Msk (1UL << FPU_FPCCR_HFRDY_Pos) /*!< FPCCR: HFRDY bit Mask */ - -#define FPU_FPCCR_THREAD_Pos 3U /*!< FPCCR: processor mode bit Position */ -#define FPU_FPCCR_THREAD_Msk (1UL << FPU_FPCCR_THREAD_Pos) /*!< FPCCR: processor mode active bit Mask */ - -#define FPU_FPCCR_USER_Pos 1U /*!< FPCCR: privilege level bit Position */ -#define FPU_FPCCR_USER_Msk (1UL << FPU_FPCCR_USER_Pos) /*!< FPCCR: privilege level bit Mask */ - -#define FPU_FPCCR_LSPACT_Pos 0U /*!< FPCCR: Lazy state preservation active bit Position */ -#define FPU_FPCCR_LSPACT_Msk (1UL /*<< FPU_FPCCR_LSPACT_Pos*/) /*!< FPCCR: Lazy state preservation active bit Mask */ - -/* Floating-Point Context Address Register Definitions */ -#define FPU_FPCAR_ADDRESS_Pos 3U /*!< FPCAR: ADDRESS bit Position */ -#define FPU_FPCAR_ADDRESS_Msk (0x1FFFFFFFUL << FPU_FPCAR_ADDRESS_Pos) /*!< FPCAR: ADDRESS bit Mask */ - -/* Floating-Point Default Status Control Register Definitions */ -#define FPU_FPDSCR_AHP_Pos 26U /*!< FPDSCR: AHP bit Position */ -#define FPU_FPDSCR_AHP_Msk (1UL << FPU_FPDSCR_AHP_Pos) /*!< FPDSCR: AHP bit Mask */ - -#define FPU_FPDSCR_DN_Pos 25U /*!< FPDSCR: DN bit Position */ -#define FPU_FPDSCR_DN_Msk (1UL << FPU_FPDSCR_DN_Pos) /*!< FPDSCR: DN bit Mask */ - -#define FPU_FPDSCR_FZ_Pos 24U /*!< FPDSCR: FZ bit Position */ -#define FPU_FPDSCR_FZ_Msk (1UL << FPU_FPDSCR_FZ_Pos) /*!< FPDSCR: FZ bit Mask */ - -#define FPU_FPDSCR_RMode_Pos 22U /*!< FPDSCR: RMode bit Position */ -#define FPU_FPDSCR_RMode_Msk (3UL << FPU_FPDSCR_RMode_Pos) /*!< FPDSCR: RMode bit Mask */ - -/* Media and FP Feature Register 0 Definitions */ -#define FPU_MVFR0_FP_rounding_modes_Pos 28U /*!< MVFR0: FP rounding modes bits Position */ -#define FPU_MVFR0_FP_rounding_modes_Msk (0xFUL << FPU_MVFR0_FP_rounding_modes_Pos) /*!< MVFR0: FP rounding modes bits Mask */ - -#define FPU_MVFR0_Short_vectors_Pos 24U /*!< MVFR0: Short vectors bits Position */ -#define FPU_MVFR0_Short_vectors_Msk (0xFUL << FPU_MVFR0_Short_vectors_Pos) /*!< MVFR0: Short vectors bits Mask */ - -#define FPU_MVFR0_Square_root_Pos 20U /*!< MVFR0: Square root bits Position */ -#define FPU_MVFR0_Square_root_Msk (0xFUL << FPU_MVFR0_Square_root_Pos) /*!< MVFR0: Square root bits Mask */ - -#define FPU_MVFR0_Divide_Pos 16U /*!< MVFR0: Divide bits Position */ -#define FPU_MVFR0_Divide_Msk (0xFUL << FPU_MVFR0_Divide_Pos) /*!< MVFR0: Divide bits Mask */ - -#define FPU_MVFR0_FP_excep_trapping_Pos 12U /*!< MVFR0: FP exception trapping bits Position */ -#define FPU_MVFR0_FP_excep_trapping_Msk (0xFUL << FPU_MVFR0_FP_excep_trapping_Pos) /*!< MVFR0: FP exception trapping bits Mask */ - -#define FPU_MVFR0_Double_precision_Pos 8U /*!< MVFR0: Double-precision bits Position */ -#define FPU_MVFR0_Double_precision_Msk (0xFUL << FPU_MVFR0_Double_precision_Pos) /*!< MVFR0: Double-precision bits Mask */ - -#define FPU_MVFR0_Single_precision_Pos 4U /*!< MVFR0: Single-precision bits Position */ -#define FPU_MVFR0_Single_precision_Msk (0xFUL << FPU_MVFR0_Single_precision_Pos) /*!< MVFR0: Single-precision bits Mask */ - -#define FPU_MVFR0_A_SIMD_registers_Pos 0U /*!< MVFR0: A_SIMD registers bits Position */ -#define FPU_MVFR0_A_SIMD_registers_Msk (0xFUL /*<< FPU_MVFR0_A_SIMD_registers_Pos*/) /*!< MVFR0: A_SIMD registers bits Mask */ - -/* Media and FP Feature Register 1 Definitions */ -#define FPU_MVFR1_FP_fused_MAC_Pos 28U /*!< MVFR1: FP fused MAC bits Position */ -#define FPU_MVFR1_FP_fused_MAC_Msk (0xFUL << FPU_MVFR1_FP_fused_MAC_Pos) /*!< MVFR1: FP fused MAC bits Mask */ - -#define FPU_MVFR1_FP_HPFP_Pos 24U /*!< MVFR1: FP HPFP bits Position */ -#define FPU_MVFR1_FP_HPFP_Msk (0xFUL << FPU_MVFR1_FP_HPFP_Pos) /*!< MVFR1: FP HPFP bits Mask */ - -#define FPU_MVFR1_D_NaN_mode_Pos 4U /*!< MVFR1: D_NaN mode bits Position */ -#define FPU_MVFR1_D_NaN_mode_Msk (0xFUL << FPU_MVFR1_D_NaN_mode_Pos) /*!< MVFR1: D_NaN mode bits Mask */ - -#define FPU_MVFR1_FtZ_mode_Pos 0U /*!< MVFR1: FtZ mode bits Position */ -#define FPU_MVFR1_FtZ_mode_Msk (0xFUL /*<< FPU_MVFR1_FtZ_mode_Pos*/) /*!< MVFR1: FtZ mode bits Mask */ - -/* Media and FP Feature Register 2 Definitions */ - -#define FPU_MVFR2_VFP_Misc_Pos 4U /*!< MVFR2: VFP Misc bits Position */ -#define FPU_MVFR2_VFP_Misc_Msk (0xFUL << FPU_MVFR2_VFP_Misc_Pos) /*!< MVFR2: VFP Misc bits Mask */ - -/*@} end of group CMSIS_FPU */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) - \brief Type definitions for the Core Debug Registers - @{ - */ - -/** - \brief Structure type to access the Core Debug Register (CoreDebug). - */ -typedef struct -{ - __IOM uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ - __OM uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ - __IOM uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ - __IOM uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ -} CoreDebug_Type; - -/* Debug Halting Control and Status Register Definitions */ -#define CoreDebug_DHCSR_DBGKEY_Pos 16U /*!< CoreDebug DHCSR: DBGKEY Position */ -#define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ - -#define CoreDebug_DHCSR_S_RESET_ST_Pos 25U /*!< CoreDebug DHCSR: S_RESET_ST Position */ -#define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ - -#define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24U /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ -#define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ - -#define CoreDebug_DHCSR_S_LOCKUP_Pos 19U /*!< CoreDebug DHCSR: S_LOCKUP Position */ -#define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ - -#define CoreDebug_DHCSR_S_SLEEP_Pos 18U /*!< CoreDebug DHCSR: S_SLEEP Position */ -#define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ - -#define CoreDebug_DHCSR_S_HALT_Pos 17U /*!< CoreDebug DHCSR: S_HALT Position */ -#define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ - -#define CoreDebug_DHCSR_S_REGRDY_Pos 16U /*!< CoreDebug DHCSR: S_REGRDY Position */ -#define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ - -#define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5U /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ -#define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ - -#define CoreDebug_DHCSR_C_MASKINTS_Pos 3U /*!< CoreDebug DHCSR: C_MASKINTS Position */ -#define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ - -#define CoreDebug_DHCSR_C_STEP_Pos 2U /*!< CoreDebug DHCSR: C_STEP Position */ -#define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ - -#define CoreDebug_DHCSR_C_HALT_Pos 1U /*!< CoreDebug DHCSR: C_HALT Position */ -#define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ - -#define CoreDebug_DHCSR_C_DEBUGEN_Pos 0U /*!< CoreDebug DHCSR: C_DEBUGEN Position */ -#define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL /*<< CoreDebug_DHCSR_C_DEBUGEN_Pos*/) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ - -/* Debug Core Register Selector Register Definitions */ -#define CoreDebug_DCRSR_REGWnR_Pos 16U /*!< CoreDebug DCRSR: REGWnR Position */ -#define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ - -#define CoreDebug_DCRSR_REGSEL_Pos 0U /*!< CoreDebug DCRSR: REGSEL Position */ -#define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL /*<< CoreDebug_DCRSR_REGSEL_Pos*/) /*!< CoreDebug DCRSR: REGSEL Mask */ - -/* Debug Exception and Monitor Control Register Definitions */ -#define CoreDebug_DEMCR_TRCENA_Pos 24U /*!< CoreDebug DEMCR: TRCENA Position */ -#define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ - -#define CoreDebug_DEMCR_MON_REQ_Pos 19U /*!< CoreDebug DEMCR: MON_REQ Position */ -#define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ - -#define CoreDebug_DEMCR_MON_STEP_Pos 18U /*!< CoreDebug DEMCR: MON_STEP Position */ -#define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ - -#define CoreDebug_DEMCR_MON_PEND_Pos 17U /*!< CoreDebug DEMCR: MON_PEND Position */ -#define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ - -#define CoreDebug_DEMCR_MON_EN_Pos 16U /*!< CoreDebug DEMCR: MON_EN Position */ -#define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ - -#define CoreDebug_DEMCR_VC_HARDERR_Pos 10U /*!< CoreDebug DEMCR: VC_HARDERR Position */ -#define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ - -#define CoreDebug_DEMCR_VC_INTERR_Pos 9U /*!< CoreDebug DEMCR: VC_INTERR Position */ -#define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ - -#define CoreDebug_DEMCR_VC_BUSERR_Pos 8U /*!< CoreDebug DEMCR: VC_BUSERR Position */ -#define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ - -#define CoreDebug_DEMCR_VC_STATERR_Pos 7U /*!< CoreDebug DEMCR: VC_STATERR Position */ -#define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ - -#define CoreDebug_DEMCR_VC_CHKERR_Pos 6U /*!< CoreDebug DEMCR: VC_CHKERR Position */ -#define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ - -#define CoreDebug_DEMCR_VC_NOCPERR_Pos 5U /*!< CoreDebug DEMCR: VC_NOCPERR Position */ -#define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ - -#define CoreDebug_DEMCR_VC_MMERR_Pos 4U /*!< CoreDebug DEMCR: VC_MMERR Position */ -#define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ - -#define CoreDebug_DEMCR_VC_CORERESET_Pos 0U /*!< CoreDebug DEMCR: VC_CORERESET Position */ -#define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL /*<< CoreDebug_DEMCR_VC_CORERESET_Pos*/) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ - -/*@} end of group CMSIS_CoreDebug */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_core_bitfield Core register bit field macros - \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). - @{ - */ - -/** - \brief Mask and shift a bit field value for use in a register bit range. - \param[in] field Name of the register bit field. - \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. - \return Masked and shifted value. -*/ -#define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) - -/** - \brief Mask and shift a register value to extract a bit filed value. - \param[in] field Name of the register bit field. - \param[in] value Value of register. This parameter is interpreted as an uint32_t type. - \return Masked and shifted bit field value. -*/ -#define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) - -/*@} end of group CMSIS_core_bitfield */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_core_base Core Definitions - \brief Definitions for base addresses, unions, and structures. - @{ - */ - -/* Memory mapping of Core Hardware */ -#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ -#define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ -#define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ -#define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ -#define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ -#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ -#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ -#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ - -#define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ -#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ -#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ -#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ -#define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ -#define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ -#define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ -#define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE) /*!< Core Debug configuration struct */ - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) - #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ - #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ -#endif - -#define FPU_BASE (SCS_BASE + 0x0F30UL) /*!< Floating Point Unit */ -#define FPU ((FPU_Type *) FPU_BASE ) /*!< Floating Point Unit */ - -/*@} */ - - - -/******************************************************************************* - * Hardware Abstraction Layer - Core Function Interface contains: - - Core NVIC Functions - - Core SysTick Functions - - Core Debug Functions - - Core Register Access Functions - ******************************************************************************/ -/** - \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference -*/ - - - -/* ########################## NVIC functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_NVICFunctions NVIC Functions - \brief Functions that manage interrupts and exceptions via the NVIC. - @{ - */ - -#ifdef CMSIS_NVIC_VIRTUAL - #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE - #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" - #endif - #include CMSIS_NVIC_VIRTUAL_HEADER_FILE -#else - #define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping - #define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping - #define NVIC_EnableIRQ __NVIC_EnableIRQ - #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ - #define NVIC_DisableIRQ __NVIC_DisableIRQ - #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ - #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ - #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ - #define NVIC_GetActive __NVIC_GetActive - #define NVIC_SetPriority __NVIC_SetPriority - #define NVIC_GetPriority __NVIC_GetPriority - #define NVIC_SystemReset __NVIC_SystemReset -#endif /* CMSIS_NVIC_VIRTUAL */ - -#ifdef CMSIS_VECTAB_VIRTUAL - #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE - #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" - #endif - #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE -#else - #define NVIC_SetVector __NVIC_SetVector - #define NVIC_GetVector __NVIC_GetVector -#endif /* (CMSIS_VECTAB_VIRTUAL) */ - -#define NVIC_USER_IRQ_OFFSET 16 - - -/* The following EXC_RETURN values are saved the LR on exception entry */ -#define EXC_RETURN_HANDLER (0xFFFFFFF1UL) /* return to Handler mode, uses MSP after return */ -#define EXC_RETURN_THREAD_MSP (0xFFFFFFF9UL) /* return to Thread mode, uses MSP after return */ -#define EXC_RETURN_THREAD_PSP (0xFFFFFFFDUL) /* return to Thread mode, uses PSP after return */ -#define EXC_RETURN_HANDLER_FPU (0xFFFFFFE1UL) /* return to Handler mode, uses MSP after return, restore floating-point state */ -#define EXC_RETURN_THREAD_MSP_FPU (0xFFFFFFE9UL) /* return to Thread mode, uses MSP after return, restore floating-point state */ -#define EXC_RETURN_THREAD_PSP_FPU (0xFFFFFFEDUL) /* return to Thread mode, uses PSP after return, restore floating-point state */ - - -/** - \brief Set Priority Grouping - \details Sets the priority grouping field using the required unlock sequence. - The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. - Only values from 0..7 are used. - 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) -{ - uint32_t reg_value; - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - - reg_value = SCB->AIRCR; /* read old register configuration */ - reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ - reg_value = (reg_value | - ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ - SCB->AIRCR = reg_value; -} - - -/** - \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) -{ - return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); -} - - -/** - \brief Enable Interrupt - \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) -{ - if ((int32_t)(IRQn) >= 0) - { - __COMPILER_BARRIER(); - NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - __COMPILER_BARRIER(); - } -} - - -/** - \brief Get Interrupt Enable status - \details Returns a device specific interrupt enable status from the NVIC interrupt controller. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt is not enabled. - \return 1 Interrupt is enabled. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Disable Interrupt - \details Disables 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_DisableIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - __DSB(); - __ISB(); - } -} - - -/** - \brief Get Pending Interrupt - \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not pending. - \return 1 Interrupt status is pending. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Pending Interrupt - \details Sets the pending bit of a device specific interrupt in the NVIC pending register. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Clear Pending Interrupt - \details Clears the pending bit of a device specific interrupt in the NVIC pending register. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Active Interrupt - \details Reads the active register in the NVIC and returns the active bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not active. - \return 1 Interrupt status is active. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetActive(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Interrupt Priority - \details Sets the priority of a device specific interrupt or a processor exception. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \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) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - } - else - { - SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - } -} - - -/** - \brief Get Interrupt Priority - \details Reads the priority of a device specific interrupt or a processor exception. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Interrupt Priority. - Value is aligned automatically to the implemented priority bits of the microcontroller. - */ -__STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) -{ - - if ((int32_t)(IRQn) >= 0) - { - return(((uint32_t)NVIC->IP[((uint32_t)IRQn)] >> (8U - __NVIC_PRIO_BITS))); - } - else - { - return(((uint32_t)SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] >> (8U - __NVIC_PRIO_BITS))); - } -} - - -/** - \brief Encode Priority - \details Encodes the priority for an interrupt with the given priority group, - preemptive priority value, and subpriority value. - 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 Used priority group. - \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) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - - return ( - ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) - ); -} - - -/** - \brief Decode Priority - \details Decodes an interrupt priority value with a given priority group to - preemptive priority value and subpriority value. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. - \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). - \param [in] PriorityGroup Used priority group. - \param [out] pPreemptPriority Preemptive priority value (starting from 0). - \param [out] pSubPriority Subpriority value (starting from 0). - */ -__STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - - *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); - *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); -} - - -/** - \brief Set Interrupt Vector - \details Sets an interrupt vector in SRAM based interrupt vector table. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - VTOR must been relocated to SRAM before. - \param [in] IRQn Interrupt number - \param [in] vector Address of interrupt handler function - */ -__STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) -{ - uint32_t vectors = (uint32_t )SCB->VTOR; - (* (int *) (vectors + ((int32_t)IRQn + NVIC_USER_IRQ_OFFSET) * 4)) = vector; - /* ARM Application Note 321 states that the M4 does not require the architectural barrier */ -} - - -/** - \brief Get Interrupt Vector - \details Reads an interrupt vector from interrupt vector table. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Address of interrupt handler function - */ -__STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) -{ - uint32_t vectors = (uint32_t )SCB->VTOR; - return (uint32_t)(* (int *) (vectors + ((int32_t)IRQn + NVIC_USER_IRQ_OFFSET) * 4)); -} - - -/** - \brief System Reset - \details Initiates a system reset request to reset the MCU. - */ -__NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) -{ - __DSB(); /* Ensure all outstanding memory accesses included - buffered write are completed before reset */ - SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | - SCB_AIRCR_SYSRESETREQ_Msk ); /* Keep priority group unchanged */ - __DSB(); /* Ensure completion of memory access */ - - for(;;) /* wait until reset */ - { - __NOP(); - } -} - -/*@} end of CMSIS_Core_NVICFunctions */ - - -/* ########################## MPU functions #################################### */ - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) - -#include "mpu_armv7.h" - -#endif - - -/* ########################## FPU functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_FpuFunctions FPU Functions - \brief Function that provides FPU type. - @{ - */ - -/** - \brief get FPU type - \details returns the FPU type - \returns - - \b 0: No FPU - - \b 1: Single precision FPU - - \b 2: Double + Single precision FPU - */ -__STATIC_INLINE uint32_t SCB_GetFPUType(void) -{ - uint32_t mvfr0; - - mvfr0 = FPU->MVFR0; - if ((mvfr0 & (FPU_MVFR0_Single_precision_Msk | FPU_MVFR0_Double_precision_Msk)) == 0x020U) - { - return 1U; /* Single precision FPU */ - } - else - { - return 0U; /* No FPU */ - } -} - - -/*@} end of CMSIS_Core_FpuFunctions */ - - - -/* ################################## SysTick function ############################################ */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SysTickFunctions SysTick Functions - \brief Functions that configure the System. - @{ - */ - -#if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) - -/** - \brief System Tick Configuration - \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. - Counter is in free running mode to generate periodic interrupts. - \param [in] ticks Number of ticks between two interrupts. - \return 0 Function succeeded. - \return 1 Function failed. - \note When the variable __Vendor_SysTickConfig is set to 1, then the - function SysTick_Config is not included. In this case, the file device.h - must contain a vendor-specific implementation of this function. - */ -__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) -{ - if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - { - return (1UL); /* Reload value impossible */ - } - - SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ - SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0UL); /* Function successful */ -} - -#endif - -/*@} end of CMSIS_Core_SysTickFunctions */ - - - -/* ##################################### Debug In/Output function ########################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_core_DebugFunctions ITM Functions - \brief Functions that access the ITM debug interface. - @{ - */ - -extern volatile int32_t ITM_RxBuffer; /*!< External variable to receive characters. */ -#define ITM_RXBUFFER_EMPTY ((int32_t)0x5AA55AA5U) /*!< Value identifying \ref ITM_RxBuffer is ready for next character. */ - - -/** - \brief ITM Send Character - \details Transmits a character via the ITM channel 0, and - \li Just returns when no debugger is connected that has booked the output. - \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted. - \param [in] ch Character to transmit. - \returns Character to transmit. - */ -__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch) -{ - if (((ITM->TCR & ITM_TCR_ITMENA_Msk) != 0UL) && /* ITM enabled */ - ((ITM->TER & 1UL ) != 0UL) ) /* ITM Port #0 enabled */ - { - while (ITM->PORT[0U].u32 == 0UL) - { - __NOP(); - } - ITM->PORT[0U].u8 = (uint8_t)ch; - } - return (ch); -} - - -/** - \brief ITM Receive Character - \details Inputs a character via the external variable \ref ITM_RxBuffer. - \return Received character. - \return -1 No character pending. - */ -__STATIC_INLINE int32_t ITM_ReceiveChar (void) -{ - int32_t ch = -1; /* no character available */ - - if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) - { - ch = ITM_RxBuffer; - ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ - } - - return (ch); -} - - -/** - \brief ITM Check Character - \details Checks whether a character is pending for reading in the variable \ref ITM_RxBuffer. - \return 0 No character available. - \return 1 Character available. - */ -__STATIC_INLINE int32_t ITM_CheckChar (void) -{ - - if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) - { - return (0); /* no character available */ - } - else - { - return (1); /* character available */ - } -} - -/*@} end of CMSIS_core_DebugFunctions */ - - - - -#ifdef __cplusplus -} -#endif - -#endif /* __CORE_CM4_H_DEPENDANT */ - -#endif /* __CMSIS_GENERIC */ diff --git a/Drivers/CMSIS/Include/core_cm7.h b/Drivers/CMSIS/Include/core_cm7.h deleted file mode 100644 index c4515d8..0000000 --- a/Drivers/CMSIS/Include/core_cm7.h +++ /dev/null @@ -1,2725 +0,0 @@ -/**************************************************************************//** - * @file core_cm7.h - * @brief CMSIS Cortex-M7 Core Peripheral Access Layer Header File - * @version V5.1.1 - * @date 28. March 2019 - ******************************************************************************/ -/* - * Copyright (c) 2009-2019 Arm Limited. All rights reserved. - * - * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the License); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#if defined ( __ICCARM__ ) - #pragma system_include /* treat file as system include file for MISRA check */ -#elif defined (__clang__) - #pragma clang system_header /* treat file as system include file */ -#endif - -#ifndef __CORE_CM7_H_GENERIC -#define __CORE_CM7_H_GENERIC - -#include - -#ifdef __cplusplus - extern "C" { -#endif - -/** - \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions - CMSIS violates the following MISRA-C:2004 rules: - - \li Required Rule 8.5, object/function definition in header file.
- Function definitions in header files are used to allow 'inlining'. - - \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
- Unions are used for effective representation of core registers. - - \li Advisory Rule 19.7, Function-like macro defined.
- Function-like macros are used to allow more efficient code. - */ - - -/******************************************************************************* - * CMSIS definitions - ******************************************************************************/ -/** - \ingroup Cortex_M7 - @{ - */ - -#include "cmsis_version.h" - -/* CMSIS CM7 definitions */ -#define __CM7_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ -#define __CM7_CMSIS_VERSION_SUB ( __CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ -#define __CM7_CMSIS_VERSION ((__CM7_CMSIS_VERSION_MAIN << 16U) | \ - __CM7_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ - -#define __CORTEX_M (7U) /*!< Cortex-M Core */ - -/** __FPU_USED indicates whether an FPU is used or not. - For this, __FPU_PRESENT has to be checked prior to making use of FPU specific registers and functions. -*/ -#if defined ( __CC_ARM ) - #if defined __TARGET_FPU_VFP - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - -#elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) - #if defined __ARM_FP - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - -#elif defined ( __GNUC__ ) - #if defined (__VFP_FP__) && !defined(__SOFTFP__) - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - -#elif defined ( __ICCARM__ ) - #if defined __ARMVFP__ - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - -#elif defined ( __TI_ARM__ ) - #if defined __TI_VFP_SUPPORT__ - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - -#elif defined ( __TASKING__ ) - #if defined __FPU_VFP__ - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - -#elif defined ( __CSMC__ ) - #if ( __CSMC__ & 0x400U) - #if defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U) - #define __FPU_USED 1U - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0U - #endif - #else - #define __FPU_USED 0U - #endif - -#endif - -#include "cmsis_compiler.h" /* CMSIS compiler specific defines */ - - -#ifdef __cplusplus -} -#endif - -#endif /* __CORE_CM7_H_GENERIC */ - -#ifndef __CMSIS_GENERIC - -#ifndef __CORE_CM7_H_DEPENDANT -#define __CORE_CM7_H_DEPENDANT - -#ifdef __cplusplus - extern "C" { -#endif - -/* check device defines and use defaults */ -#if defined __CHECK_DEVICE_DEFINES - #ifndef __CM7_REV - #define __CM7_REV 0x0000U - #warning "__CM7_REV not defined in device header file; using default!" - #endif - - #ifndef __FPU_PRESENT - #define __FPU_PRESENT 0U - #warning "__FPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __MPU_PRESENT - #define __MPU_PRESENT 0U - #warning "__MPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __ICACHE_PRESENT - #define __ICACHE_PRESENT 0U - #warning "__ICACHE_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __DCACHE_PRESENT - #define __DCACHE_PRESENT 0U - #warning "__DCACHE_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __DTCM_PRESENT - #define __DTCM_PRESENT 0U - #warning "__DTCM_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __NVIC_PRIO_BITS - #define __NVIC_PRIO_BITS 3U - #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" - #endif - - #ifndef __Vendor_SysTickConfig - #define __Vendor_SysTickConfig 0U - #warning "__Vendor_SysTickConfig not defined in device header file; using default!" - #endif -#endif - -/* IO definitions (access restrictions to peripheral registers) */ -/** - \defgroup CMSIS_glob_defs CMSIS Global Defines - - IO Type Qualifiers are used - \li to specify the access to peripheral variables. - \li for automatic generation of peripheral register debug information. -*/ -#ifdef __cplusplus - #define __I volatile /*!< Defines 'read only' permissions */ -#else - #define __I volatile const /*!< Defines 'read only' permissions */ -#endif -#define __O volatile /*!< Defines 'write only' permissions */ -#define __IO volatile /*!< Defines 'read / write' permissions */ - -/* following defines should be used for structure members */ -#define __IM volatile const /*! Defines 'read only' structure member permissions */ -#define __OM volatile /*! Defines 'write only' structure member permissions */ -#define __IOM volatile /*! Defines 'read / write' structure member permissions */ - -/*@} end of group Cortex_M7 */ - - - -/******************************************************************************* - * Register Abstraction - Core Register contain: - - Core Register - - Core NVIC Register - - Core SCB Register - - Core SysTick Register - - Core Debug Register - - Core MPU Register - - Core FPU Register - ******************************************************************************/ -/** - \defgroup CMSIS_core_register Defines and Type Definitions - \brief Type definitions and defines for Cortex-M processor based devices. -*/ - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_CORE Status and Control Registers - \brief Core Register type definitions. - @{ - */ - -/** - \brief Union type to access the Application Program Status Register (APSR). - */ -typedef union -{ - struct - { - uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} APSR_Type; - -/* APSR Register Definitions */ -#define APSR_N_Pos 31U /*!< APSR: N Position */ -#define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ - -#define APSR_Z_Pos 30U /*!< APSR: Z Position */ -#define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ - -#define APSR_C_Pos 29U /*!< APSR: C Position */ -#define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ - -#define APSR_V_Pos 28U /*!< APSR: V Position */ -#define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ - -#define APSR_Q_Pos 27U /*!< APSR: Q Position */ -#define APSR_Q_Msk (1UL << APSR_Q_Pos) /*!< APSR: Q Mask */ - -#define APSR_GE_Pos 16U /*!< APSR: GE Position */ -#define APSR_GE_Msk (0xFUL << APSR_GE_Pos) /*!< APSR: GE Mask */ - - -/** - \brief Union type to access the Interrupt Program Status Register (IPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} IPSR_Type; - -/* IPSR Register Definitions */ -#define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ -#define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ - - -/** - \brief Union type to access the Special-Purpose Program Status Registers (xPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:1; /*!< bit: 9 Reserved */ - uint32_t ICI_IT_1:6; /*!< bit: 10..15 ICI/IT part 1 */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ - uint32_t T:1; /*!< bit: 24 Thumb bit */ - uint32_t ICI_IT_2:2; /*!< bit: 25..26 ICI/IT part 2 */ - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} xPSR_Type; - -/* xPSR Register Definitions */ -#define xPSR_N_Pos 31U /*!< xPSR: N Position */ -#define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ - -#define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ -#define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ - -#define xPSR_C_Pos 29U /*!< xPSR: C Position */ -#define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ - -#define xPSR_V_Pos 28U /*!< xPSR: V Position */ -#define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ - -#define xPSR_Q_Pos 27U /*!< xPSR: Q Position */ -#define xPSR_Q_Msk (1UL << xPSR_Q_Pos) /*!< xPSR: Q Mask */ - -#define xPSR_ICI_IT_2_Pos 25U /*!< xPSR: ICI/IT part 2 Position */ -#define xPSR_ICI_IT_2_Msk (3UL << xPSR_ICI_IT_2_Pos) /*!< xPSR: ICI/IT part 2 Mask */ - -#define xPSR_T_Pos 24U /*!< xPSR: T Position */ -#define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ - -#define xPSR_GE_Pos 16U /*!< xPSR: GE Position */ -#define xPSR_GE_Msk (0xFUL << xPSR_GE_Pos) /*!< xPSR: GE Mask */ - -#define xPSR_ICI_IT_1_Pos 10U /*!< xPSR: ICI/IT part 1 Position */ -#define xPSR_ICI_IT_1_Msk (0x3FUL << xPSR_ICI_IT_1_Pos) /*!< xPSR: ICI/IT part 1 Mask */ - -#define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ -#define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ - - -/** - \brief Union type to access the Control Registers (CONTROL). - */ -typedef union -{ - struct - { - uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ - uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ - uint32_t FPCA:1; /*!< bit: 2 FP extension active flag */ - uint32_t _reserved0:29; /*!< bit: 3..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} CONTROL_Type; - -/* CONTROL Register Definitions */ -#define CONTROL_FPCA_Pos 2U /*!< CONTROL: FPCA Position */ -#define CONTROL_FPCA_Msk (1UL << CONTROL_FPCA_Pos) /*!< CONTROL: FPCA Mask */ - -#define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ -#define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ - -#define CONTROL_nPRIV_Pos 0U /*!< CONTROL: nPRIV Position */ -#define CONTROL_nPRIV_Msk (1UL /*<< CONTROL_nPRIV_Pos*/) /*!< CONTROL: nPRIV Mask */ - -/*@} end of group CMSIS_CORE */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) - \brief Type definitions for the NVIC Registers - @{ - */ - -/** - \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). - */ -typedef struct -{ - __IOM uint32_t ISER[8U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ - uint32_t RESERVED0[24U]; - __IOM uint32_t ICER[8U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ - uint32_t RESERVED1[24U]; - __IOM uint32_t ISPR[8U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ - uint32_t RESERVED2[24U]; - __IOM uint32_t ICPR[8U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ - uint32_t RESERVED3[24U]; - __IOM uint32_t IABR[8U]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ - uint32_t RESERVED4[56U]; - __IOM uint8_t IP[240U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ - uint32_t RESERVED5[644U]; - __OM uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ -} NVIC_Type; - -/* Software Triggered Interrupt Register Definitions */ -#define NVIC_STIR_INTID_Pos 0U /*!< STIR: INTLINESNUM Position */ -#define NVIC_STIR_INTID_Msk (0x1FFUL /*<< NVIC_STIR_INTID_Pos*/) /*!< STIR: INTLINESNUM Mask */ - -/*@} end of group CMSIS_NVIC */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SCB System Control Block (SCB) - \brief Type definitions for the System Control Block Registers - @{ - */ - -/** - \brief Structure type to access the System Control Block (SCB). - */ -typedef struct -{ - __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ - __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ - __IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ - __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ - __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ - __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ - __IOM uint8_t SHPR[12U]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ - __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ - __IOM uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ - __IOM uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ - __IOM uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ - __IOM uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ - __IOM uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ - __IOM uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ - __IM uint32_t ID_PFR[2U]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ - __IM uint32_t ID_DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ - __IM uint32_t ID_AFR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ - __IM uint32_t ID_MFR[4U]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ - __IM uint32_t ID_ISAR[5U]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ - uint32_t RESERVED0[1U]; - __IM uint32_t CLIDR; /*!< Offset: 0x078 (R/ ) Cache Level ID register */ - __IM uint32_t CTR; /*!< Offset: 0x07C (R/ ) Cache Type register */ - __IM uint32_t CCSIDR; /*!< Offset: 0x080 (R/ ) Cache Size ID Register */ - __IOM uint32_t CSSELR; /*!< Offset: 0x084 (R/W) Cache Size Selection Register */ - __IOM uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ - uint32_t RESERVED3[93U]; - __OM uint32_t STIR; /*!< Offset: 0x200 ( /W) Software Triggered Interrupt Register */ - uint32_t RESERVED4[15U]; - __IM uint32_t MVFR0; /*!< Offset: 0x240 (R/ ) Media and VFP Feature Register 0 */ - __IM uint32_t MVFR1; /*!< Offset: 0x244 (R/ ) Media and VFP Feature Register 1 */ - __IM uint32_t MVFR2; /*!< Offset: 0x248 (R/ ) Media and VFP Feature Register 2 */ - uint32_t RESERVED5[1U]; - __OM uint32_t ICIALLU; /*!< Offset: 0x250 ( /W) I-Cache Invalidate All to PoU */ - uint32_t RESERVED6[1U]; - __OM uint32_t ICIMVAU; /*!< Offset: 0x258 ( /W) I-Cache Invalidate by MVA to PoU */ - __OM uint32_t DCIMVAC; /*!< Offset: 0x25C ( /W) D-Cache Invalidate by MVA to PoC */ - __OM uint32_t DCISW; /*!< Offset: 0x260 ( /W) D-Cache Invalidate by Set-way */ - __OM uint32_t DCCMVAU; /*!< Offset: 0x264 ( /W) D-Cache Clean by MVA to PoU */ - __OM uint32_t DCCMVAC; /*!< Offset: 0x268 ( /W) D-Cache Clean by MVA to PoC */ - __OM uint32_t DCCSW; /*!< Offset: 0x26C ( /W) D-Cache Clean by Set-way */ - __OM uint32_t DCCIMVAC; /*!< Offset: 0x270 ( /W) D-Cache Clean and Invalidate by MVA to PoC */ - __OM uint32_t DCCISW; /*!< Offset: 0x274 ( /W) D-Cache Clean and Invalidate by Set-way */ - uint32_t RESERVED7[6U]; - __IOM uint32_t ITCMCR; /*!< Offset: 0x290 (R/W) Instruction Tightly-Coupled Memory Control Register */ - __IOM uint32_t DTCMCR; /*!< Offset: 0x294 (R/W) Data Tightly-Coupled Memory Control Registers */ - __IOM uint32_t AHBPCR; /*!< Offset: 0x298 (R/W) AHBP Control Register */ - __IOM uint32_t CACR; /*!< Offset: 0x29C (R/W) L1 Cache Control Register */ - __IOM uint32_t AHBSCR; /*!< Offset: 0x2A0 (R/W) AHB Slave Control Register */ - uint32_t RESERVED8[1U]; - __IOM uint32_t ABFSR; /*!< Offset: 0x2A8 (R/W) Auxiliary Bus Fault Status Register */ -} SCB_Type; - -/* SCB CPUID Register Definitions */ -#define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ -#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ - -#define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ -#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ - -#define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ -#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ - -#define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ -#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ - -#define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ -#define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ - -/* SCB Interrupt Control State Register Definitions */ -#define SCB_ICSR_NMIPENDSET_Pos 31U /*!< SCB ICSR: NMIPENDSET Position */ -#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ - -#define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ -#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ - -#define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ -#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ - -#define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ -#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ - -#define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ -#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ - -#define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ -#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ - -#define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ -#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ - -#define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ -#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ - -#define SCB_ICSR_RETTOBASE_Pos 11U /*!< SCB ICSR: RETTOBASE Position */ -#define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ - -#define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ -#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ - -/* SCB Vector Table Offset Register Definitions */ -#define SCB_VTOR_TBLOFF_Pos 7U /*!< SCB VTOR: TBLOFF Position */ -#define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ - -/* SCB Application Interrupt and Reset Control Register Definitions */ -#define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ -#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ - -#define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ -#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ - -#define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ -#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ - -#define SCB_AIRCR_PRIGROUP_Pos 8U /*!< SCB AIRCR: PRIGROUP Position */ -#define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ - -#define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ -#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ - -#define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ -#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ - -#define SCB_AIRCR_VECTRESET_Pos 0U /*!< SCB AIRCR: VECTRESET Position */ -#define SCB_AIRCR_VECTRESET_Msk (1UL /*<< SCB_AIRCR_VECTRESET_Pos*/) /*!< SCB AIRCR: VECTRESET Mask */ - -/* SCB System Control Register Definitions */ -#define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ -#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ - -#define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ -#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ - -#define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ -#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ - -/* SCB Configuration Control Register Definitions */ -#define SCB_CCR_BP_Pos 18U /*!< SCB CCR: Branch prediction enable bit Position */ -#define SCB_CCR_BP_Msk (1UL << SCB_CCR_BP_Pos) /*!< SCB CCR: Branch prediction enable bit Mask */ - -#define SCB_CCR_IC_Pos 17U /*!< SCB CCR: Instruction cache enable bit Position */ -#define SCB_CCR_IC_Msk (1UL << SCB_CCR_IC_Pos) /*!< SCB CCR: Instruction cache enable bit Mask */ - -#define SCB_CCR_DC_Pos 16U /*!< SCB CCR: Cache enable bit Position */ -#define SCB_CCR_DC_Msk (1UL << SCB_CCR_DC_Pos) /*!< SCB CCR: Cache enable bit Mask */ - -#define SCB_CCR_STKALIGN_Pos 9U /*!< SCB CCR: STKALIGN Position */ -#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ - -#define SCB_CCR_BFHFNMIGN_Pos 8U /*!< SCB CCR: BFHFNMIGN Position */ -#define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ - -#define SCB_CCR_DIV_0_TRP_Pos 4U /*!< SCB CCR: DIV_0_TRP Position */ -#define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ - -#define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ -#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ - -#define SCB_CCR_USERSETMPEND_Pos 1U /*!< SCB CCR: USERSETMPEND Position */ -#define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ - -#define SCB_CCR_NONBASETHRDENA_Pos 0U /*!< SCB CCR: NONBASETHRDENA Position */ -#define SCB_CCR_NONBASETHRDENA_Msk (1UL /*<< SCB_CCR_NONBASETHRDENA_Pos*/) /*!< SCB CCR: NONBASETHRDENA Mask */ - -/* SCB System Handler Control and State Register Definitions */ -#define SCB_SHCSR_USGFAULTENA_Pos 18U /*!< SCB SHCSR: USGFAULTENA Position */ -#define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ - -#define SCB_SHCSR_BUSFAULTENA_Pos 17U /*!< SCB SHCSR: BUSFAULTENA Position */ -#define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ - -#define SCB_SHCSR_MEMFAULTENA_Pos 16U /*!< SCB SHCSR: MEMFAULTENA Position */ -#define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ - -#define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ -#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ - -#define SCB_SHCSR_BUSFAULTPENDED_Pos 14U /*!< SCB SHCSR: BUSFAULTPENDED Position */ -#define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ - -#define SCB_SHCSR_MEMFAULTPENDED_Pos 13U /*!< SCB SHCSR: MEMFAULTPENDED Position */ -#define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ - -#define SCB_SHCSR_USGFAULTPENDED_Pos 12U /*!< SCB SHCSR: USGFAULTPENDED Position */ -#define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ - -#define SCB_SHCSR_SYSTICKACT_Pos 11U /*!< SCB SHCSR: SYSTICKACT Position */ -#define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ - -#define SCB_SHCSR_PENDSVACT_Pos 10U /*!< SCB SHCSR: PENDSVACT Position */ -#define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ - -#define SCB_SHCSR_MONITORACT_Pos 8U /*!< SCB SHCSR: MONITORACT Position */ -#define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ - -#define SCB_SHCSR_SVCALLACT_Pos 7U /*!< SCB SHCSR: SVCALLACT Position */ -#define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ - -#define SCB_SHCSR_USGFAULTACT_Pos 3U /*!< SCB SHCSR: USGFAULTACT Position */ -#define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ - -#define SCB_SHCSR_BUSFAULTACT_Pos 1U /*!< SCB SHCSR: BUSFAULTACT Position */ -#define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ - -#define SCB_SHCSR_MEMFAULTACT_Pos 0U /*!< SCB SHCSR: MEMFAULTACT Position */ -#define SCB_SHCSR_MEMFAULTACT_Msk (1UL /*<< SCB_SHCSR_MEMFAULTACT_Pos*/) /*!< SCB SHCSR: MEMFAULTACT Mask */ - -/* SCB Configurable Fault Status Register Definitions */ -#define SCB_CFSR_USGFAULTSR_Pos 16U /*!< SCB CFSR: Usage Fault Status Register Position */ -#define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ - -#define SCB_CFSR_BUSFAULTSR_Pos 8U /*!< SCB CFSR: Bus Fault Status Register Position */ -#define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ - -#define SCB_CFSR_MEMFAULTSR_Pos 0U /*!< SCB CFSR: Memory Manage Fault Status Register Position */ -#define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL /*<< SCB_CFSR_MEMFAULTSR_Pos*/) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ - -/* MemManage Fault Status Register (part of SCB Configurable Fault Status Register) */ -#define SCB_CFSR_MMARVALID_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 7U) /*!< SCB CFSR (MMFSR): MMARVALID Position */ -#define SCB_CFSR_MMARVALID_Msk (1UL << SCB_CFSR_MMARVALID_Pos) /*!< SCB CFSR (MMFSR): MMARVALID Mask */ - -#define SCB_CFSR_MLSPERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 5U) /*!< SCB CFSR (MMFSR): MLSPERR Position */ -#define SCB_CFSR_MLSPERR_Msk (1UL << SCB_CFSR_MLSPERR_Pos) /*!< SCB CFSR (MMFSR): MLSPERR Mask */ - -#define SCB_CFSR_MSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 4U) /*!< SCB CFSR (MMFSR): MSTKERR Position */ -#define SCB_CFSR_MSTKERR_Msk (1UL << SCB_CFSR_MSTKERR_Pos) /*!< SCB CFSR (MMFSR): MSTKERR Mask */ - -#define SCB_CFSR_MUNSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 3U) /*!< SCB CFSR (MMFSR): MUNSTKERR Position */ -#define SCB_CFSR_MUNSTKERR_Msk (1UL << SCB_CFSR_MUNSTKERR_Pos) /*!< SCB CFSR (MMFSR): MUNSTKERR Mask */ - -#define SCB_CFSR_DACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 1U) /*!< SCB CFSR (MMFSR): DACCVIOL Position */ -#define SCB_CFSR_DACCVIOL_Msk (1UL << SCB_CFSR_DACCVIOL_Pos) /*!< SCB CFSR (MMFSR): DACCVIOL Mask */ - -#define SCB_CFSR_IACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 0U) /*!< SCB CFSR (MMFSR): IACCVIOL Position */ -#define SCB_CFSR_IACCVIOL_Msk (1UL /*<< SCB_CFSR_IACCVIOL_Pos*/) /*!< SCB CFSR (MMFSR): IACCVIOL Mask */ - -/* BusFault Status Register (part of SCB Configurable Fault Status Register) */ -#define SCB_CFSR_BFARVALID_Pos (SCB_CFSR_BUSFAULTSR_Pos + 7U) /*!< SCB CFSR (BFSR): BFARVALID Position */ -#define SCB_CFSR_BFARVALID_Msk (1UL << SCB_CFSR_BFARVALID_Pos) /*!< SCB CFSR (BFSR): BFARVALID Mask */ - -#define SCB_CFSR_LSPERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 5U) /*!< SCB CFSR (BFSR): LSPERR Position */ -#define SCB_CFSR_LSPERR_Msk (1UL << SCB_CFSR_LSPERR_Pos) /*!< SCB CFSR (BFSR): LSPERR Mask */ - -#define SCB_CFSR_STKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 4U) /*!< SCB CFSR (BFSR): STKERR Position */ -#define SCB_CFSR_STKERR_Msk (1UL << SCB_CFSR_STKERR_Pos) /*!< SCB CFSR (BFSR): STKERR Mask */ - -#define SCB_CFSR_UNSTKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 3U) /*!< SCB CFSR (BFSR): UNSTKERR Position */ -#define SCB_CFSR_UNSTKERR_Msk (1UL << SCB_CFSR_UNSTKERR_Pos) /*!< SCB CFSR (BFSR): UNSTKERR Mask */ - -#define SCB_CFSR_IMPRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 2U) /*!< SCB CFSR (BFSR): IMPRECISERR Position */ -#define SCB_CFSR_IMPRECISERR_Msk (1UL << SCB_CFSR_IMPRECISERR_Pos) /*!< SCB CFSR (BFSR): IMPRECISERR Mask */ - -#define SCB_CFSR_PRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 1U) /*!< SCB CFSR (BFSR): PRECISERR Position */ -#define SCB_CFSR_PRECISERR_Msk (1UL << SCB_CFSR_PRECISERR_Pos) /*!< SCB CFSR (BFSR): PRECISERR Mask */ - -#define SCB_CFSR_IBUSERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 0U) /*!< SCB CFSR (BFSR): IBUSERR Position */ -#define SCB_CFSR_IBUSERR_Msk (1UL << SCB_CFSR_IBUSERR_Pos) /*!< SCB CFSR (BFSR): IBUSERR Mask */ - -/* UsageFault Status Register (part of SCB Configurable Fault Status Register) */ -#define SCB_CFSR_DIVBYZERO_Pos (SCB_CFSR_USGFAULTSR_Pos + 9U) /*!< SCB CFSR (UFSR): DIVBYZERO Position */ -#define SCB_CFSR_DIVBYZERO_Msk (1UL << SCB_CFSR_DIVBYZERO_Pos) /*!< SCB CFSR (UFSR): DIVBYZERO Mask */ - -#define SCB_CFSR_UNALIGNED_Pos (SCB_CFSR_USGFAULTSR_Pos + 8U) /*!< SCB CFSR (UFSR): UNALIGNED Position */ -#define SCB_CFSR_UNALIGNED_Msk (1UL << SCB_CFSR_UNALIGNED_Pos) /*!< SCB CFSR (UFSR): UNALIGNED Mask */ - -#define SCB_CFSR_NOCP_Pos (SCB_CFSR_USGFAULTSR_Pos + 3U) /*!< SCB CFSR (UFSR): NOCP Position */ -#define SCB_CFSR_NOCP_Msk (1UL << SCB_CFSR_NOCP_Pos) /*!< SCB CFSR (UFSR): NOCP Mask */ - -#define SCB_CFSR_INVPC_Pos (SCB_CFSR_USGFAULTSR_Pos + 2U) /*!< SCB CFSR (UFSR): INVPC Position */ -#define SCB_CFSR_INVPC_Msk (1UL << SCB_CFSR_INVPC_Pos) /*!< SCB CFSR (UFSR): INVPC Mask */ - -#define SCB_CFSR_INVSTATE_Pos (SCB_CFSR_USGFAULTSR_Pos + 1U) /*!< SCB CFSR (UFSR): INVSTATE Position */ -#define SCB_CFSR_INVSTATE_Msk (1UL << SCB_CFSR_INVSTATE_Pos) /*!< SCB CFSR (UFSR): INVSTATE Mask */ - -#define SCB_CFSR_UNDEFINSTR_Pos (SCB_CFSR_USGFAULTSR_Pos + 0U) /*!< SCB CFSR (UFSR): UNDEFINSTR Position */ -#define SCB_CFSR_UNDEFINSTR_Msk (1UL << SCB_CFSR_UNDEFINSTR_Pos) /*!< SCB CFSR (UFSR): UNDEFINSTR Mask */ - -/* SCB Hard Fault Status Register Definitions */ -#define SCB_HFSR_DEBUGEVT_Pos 31U /*!< SCB HFSR: DEBUGEVT Position */ -#define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ - -#define SCB_HFSR_FORCED_Pos 30U /*!< SCB HFSR: FORCED Position */ -#define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ - -#define SCB_HFSR_VECTTBL_Pos 1U /*!< SCB HFSR: VECTTBL Position */ -#define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ - -/* SCB Debug Fault Status Register Definitions */ -#define SCB_DFSR_EXTERNAL_Pos 4U /*!< SCB DFSR: EXTERNAL Position */ -#define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ - -#define SCB_DFSR_VCATCH_Pos 3U /*!< SCB DFSR: VCATCH Position */ -#define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ - -#define SCB_DFSR_DWTTRAP_Pos 2U /*!< SCB DFSR: DWTTRAP Position */ -#define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ - -#define SCB_DFSR_BKPT_Pos 1U /*!< SCB DFSR: BKPT Position */ -#define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ - -#define SCB_DFSR_HALTED_Pos 0U /*!< SCB DFSR: HALTED Position */ -#define SCB_DFSR_HALTED_Msk (1UL /*<< SCB_DFSR_HALTED_Pos*/) /*!< SCB DFSR: HALTED Mask */ - -/* SCB Cache Level ID Register Definitions */ -#define SCB_CLIDR_LOUU_Pos 27U /*!< SCB CLIDR: LoUU Position */ -#define SCB_CLIDR_LOUU_Msk (7UL << SCB_CLIDR_LOUU_Pos) /*!< SCB CLIDR: LoUU Mask */ - -#define SCB_CLIDR_LOC_Pos 24U /*!< SCB CLIDR: LoC Position */ -#define SCB_CLIDR_LOC_Msk (7UL << SCB_CLIDR_LOC_Pos) /*!< SCB CLIDR: LoC Mask */ - -/* SCB Cache Type Register Definitions */ -#define SCB_CTR_FORMAT_Pos 29U /*!< SCB CTR: Format Position */ -#define SCB_CTR_FORMAT_Msk (7UL << SCB_CTR_FORMAT_Pos) /*!< SCB CTR: Format Mask */ - -#define SCB_CTR_CWG_Pos 24U /*!< SCB CTR: CWG Position */ -#define SCB_CTR_CWG_Msk (0xFUL << SCB_CTR_CWG_Pos) /*!< SCB CTR: CWG Mask */ - -#define SCB_CTR_ERG_Pos 20U /*!< SCB CTR: ERG Position */ -#define SCB_CTR_ERG_Msk (0xFUL << SCB_CTR_ERG_Pos) /*!< SCB CTR: ERG Mask */ - -#define SCB_CTR_DMINLINE_Pos 16U /*!< SCB CTR: DminLine Position */ -#define SCB_CTR_DMINLINE_Msk (0xFUL << SCB_CTR_DMINLINE_Pos) /*!< SCB CTR: DminLine Mask */ - -#define SCB_CTR_IMINLINE_Pos 0U /*!< SCB CTR: ImInLine Position */ -#define SCB_CTR_IMINLINE_Msk (0xFUL /*<< SCB_CTR_IMINLINE_Pos*/) /*!< SCB CTR: ImInLine Mask */ - -/* SCB Cache Size ID Register Definitions */ -#define SCB_CCSIDR_WT_Pos 31U /*!< SCB CCSIDR: WT Position */ -#define SCB_CCSIDR_WT_Msk (1UL << SCB_CCSIDR_WT_Pos) /*!< SCB CCSIDR: WT Mask */ - -#define SCB_CCSIDR_WB_Pos 30U /*!< SCB CCSIDR: WB Position */ -#define SCB_CCSIDR_WB_Msk (1UL << SCB_CCSIDR_WB_Pos) /*!< SCB CCSIDR: WB Mask */ - -#define SCB_CCSIDR_RA_Pos 29U /*!< SCB CCSIDR: RA Position */ -#define SCB_CCSIDR_RA_Msk (1UL << SCB_CCSIDR_RA_Pos) /*!< SCB CCSIDR: RA Mask */ - -#define SCB_CCSIDR_WA_Pos 28U /*!< SCB CCSIDR: WA Position */ -#define SCB_CCSIDR_WA_Msk (1UL << SCB_CCSIDR_WA_Pos) /*!< SCB CCSIDR: WA Mask */ - -#define SCB_CCSIDR_NUMSETS_Pos 13U /*!< SCB CCSIDR: NumSets Position */ -#define SCB_CCSIDR_NUMSETS_Msk (0x7FFFUL << SCB_CCSIDR_NUMSETS_Pos) /*!< SCB CCSIDR: NumSets Mask */ - -#define SCB_CCSIDR_ASSOCIATIVITY_Pos 3U /*!< SCB CCSIDR: Associativity Position */ -#define SCB_CCSIDR_ASSOCIATIVITY_Msk (0x3FFUL << SCB_CCSIDR_ASSOCIATIVITY_Pos) /*!< SCB CCSIDR: Associativity Mask */ - -#define SCB_CCSIDR_LINESIZE_Pos 0U /*!< SCB CCSIDR: LineSize Position */ -#define SCB_CCSIDR_LINESIZE_Msk (7UL /*<< SCB_CCSIDR_LINESIZE_Pos*/) /*!< SCB CCSIDR: LineSize Mask */ - -/* SCB Cache Size Selection Register Definitions */ -#define SCB_CSSELR_LEVEL_Pos 1U /*!< SCB CSSELR: Level Position */ -#define SCB_CSSELR_LEVEL_Msk (7UL << SCB_CSSELR_LEVEL_Pos) /*!< SCB CSSELR: Level Mask */ - -#define SCB_CSSELR_IND_Pos 0U /*!< SCB CSSELR: InD Position */ -#define SCB_CSSELR_IND_Msk (1UL /*<< SCB_CSSELR_IND_Pos*/) /*!< SCB CSSELR: InD Mask */ - -/* SCB Software Triggered Interrupt Register Definitions */ -#define SCB_STIR_INTID_Pos 0U /*!< SCB STIR: INTID Position */ -#define SCB_STIR_INTID_Msk (0x1FFUL /*<< SCB_STIR_INTID_Pos*/) /*!< SCB STIR: INTID Mask */ - -/* SCB D-Cache Invalidate by Set-way Register Definitions */ -#define SCB_DCISW_WAY_Pos 30U /*!< SCB DCISW: Way Position */ -#define SCB_DCISW_WAY_Msk (3UL << SCB_DCISW_WAY_Pos) /*!< SCB DCISW: Way Mask */ - -#define SCB_DCISW_SET_Pos 5U /*!< SCB DCISW: Set Position */ -#define SCB_DCISW_SET_Msk (0x1FFUL << SCB_DCISW_SET_Pos) /*!< SCB DCISW: Set Mask */ - -/* SCB D-Cache Clean by Set-way Register Definitions */ -#define SCB_DCCSW_WAY_Pos 30U /*!< SCB DCCSW: Way Position */ -#define SCB_DCCSW_WAY_Msk (3UL << SCB_DCCSW_WAY_Pos) /*!< SCB DCCSW: Way Mask */ - -#define SCB_DCCSW_SET_Pos 5U /*!< SCB DCCSW: Set Position */ -#define SCB_DCCSW_SET_Msk (0x1FFUL << SCB_DCCSW_SET_Pos) /*!< SCB DCCSW: Set Mask */ - -/* SCB D-Cache Clean and Invalidate by Set-way Register Definitions */ -#define SCB_DCCISW_WAY_Pos 30U /*!< SCB DCCISW: Way Position */ -#define SCB_DCCISW_WAY_Msk (3UL << SCB_DCCISW_WAY_Pos) /*!< SCB DCCISW: Way Mask */ - -#define SCB_DCCISW_SET_Pos 5U /*!< SCB DCCISW: Set Position */ -#define SCB_DCCISW_SET_Msk (0x1FFUL << SCB_DCCISW_SET_Pos) /*!< SCB DCCISW: Set Mask */ - -/* Instruction Tightly-Coupled Memory Control Register Definitions */ -#define SCB_ITCMCR_SZ_Pos 3U /*!< SCB ITCMCR: SZ Position */ -#define SCB_ITCMCR_SZ_Msk (0xFUL << SCB_ITCMCR_SZ_Pos) /*!< SCB ITCMCR: SZ Mask */ - -#define SCB_ITCMCR_RETEN_Pos 2U /*!< SCB ITCMCR: RETEN Position */ -#define SCB_ITCMCR_RETEN_Msk (1UL << SCB_ITCMCR_RETEN_Pos) /*!< SCB ITCMCR: RETEN Mask */ - -#define SCB_ITCMCR_RMW_Pos 1U /*!< SCB ITCMCR: RMW Position */ -#define SCB_ITCMCR_RMW_Msk (1UL << SCB_ITCMCR_RMW_Pos) /*!< SCB ITCMCR: RMW Mask */ - -#define SCB_ITCMCR_EN_Pos 0U /*!< SCB ITCMCR: EN Position */ -#define SCB_ITCMCR_EN_Msk (1UL /*<< SCB_ITCMCR_EN_Pos*/) /*!< SCB ITCMCR: EN Mask */ - -/* Data Tightly-Coupled Memory Control Register Definitions */ -#define SCB_DTCMCR_SZ_Pos 3U /*!< SCB DTCMCR: SZ Position */ -#define SCB_DTCMCR_SZ_Msk (0xFUL << SCB_DTCMCR_SZ_Pos) /*!< SCB DTCMCR: SZ Mask */ - -#define SCB_DTCMCR_RETEN_Pos 2U /*!< SCB DTCMCR: RETEN Position */ -#define SCB_DTCMCR_RETEN_Msk (1UL << SCB_DTCMCR_RETEN_Pos) /*!< SCB DTCMCR: RETEN Mask */ - -#define SCB_DTCMCR_RMW_Pos 1U /*!< SCB DTCMCR: RMW Position */ -#define SCB_DTCMCR_RMW_Msk (1UL << SCB_DTCMCR_RMW_Pos) /*!< SCB DTCMCR: RMW Mask */ - -#define SCB_DTCMCR_EN_Pos 0U /*!< SCB DTCMCR: EN Position */ -#define SCB_DTCMCR_EN_Msk (1UL /*<< SCB_DTCMCR_EN_Pos*/) /*!< SCB DTCMCR: EN Mask */ - -/* AHBP Control Register Definitions */ -#define SCB_AHBPCR_SZ_Pos 1U /*!< SCB AHBPCR: SZ Position */ -#define SCB_AHBPCR_SZ_Msk (7UL << SCB_AHBPCR_SZ_Pos) /*!< SCB AHBPCR: SZ Mask */ - -#define SCB_AHBPCR_EN_Pos 0U /*!< SCB AHBPCR: EN Position */ -#define SCB_AHBPCR_EN_Msk (1UL /*<< SCB_AHBPCR_EN_Pos*/) /*!< SCB AHBPCR: EN Mask */ - -/* L1 Cache Control Register Definitions */ -#define SCB_CACR_FORCEWT_Pos 2U /*!< SCB CACR: FORCEWT Position */ -#define SCB_CACR_FORCEWT_Msk (1UL << SCB_CACR_FORCEWT_Pos) /*!< SCB CACR: FORCEWT Mask */ - -#define SCB_CACR_ECCEN_Pos 1U /*!< SCB CACR: ECCEN Position */ -#define SCB_CACR_ECCEN_Msk (1UL << SCB_CACR_ECCEN_Pos) /*!< SCB CACR: ECCEN Mask */ - -#define SCB_CACR_SIWT_Pos 0U /*!< SCB CACR: SIWT Position */ -#define SCB_CACR_SIWT_Msk (1UL /*<< SCB_CACR_SIWT_Pos*/) /*!< SCB CACR: SIWT Mask */ - -/* AHBS Control Register Definitions */ -#define SCB_AHBSCR_INITCOUNT_Pos 11U /*!< SCB AHBSCR: INITCOUNT Position */ -#define SCB_AHBSCR_INITCOUNT_Msk (0x1FUL << SCB_AHBPCR_INITCOUNT_Pos) /*!< SCB AHBSCR: INITCOUNT Mask */ - -#define SCB_AHBSCR_TPRI_Pos 2U /*!< SCB AHBSCR: TPRI Position */ -#define SCB_AHBSCR_TPRI_Msk (0x1FFUL << SCB_AHBPCR_TPRI_Pos) /*!< SCB AHBSCR: TPRI Mask */ - -#define SCB_AHBSCR_CTL_Pos 0U /*!< SCB AHBSCR: CTL Position*/ -#define SCB_AHBSCR_CTL_Msk (3UL /*<< SCB_AHBPCR_CTL_Pos*/) /*!< SCB AHBSCR: CTL Mask */ - -/* Auxiliary Bus Fault Status Register Definitions */ -#define SCB_ABFSR_AXIMTYPE_Pos 8U /*!< SCB ABFSR: AXIMTYPE Position*/ -#define SCB_ABFSR_AXIMTYPE_Msk (3UL << SCB_ABFSR_AXIMTYPE_Pos) /*!< SCB ABFSR: AXIMTYPE Mask */ - -#define SCB_ABFSR_EPPB_Pos 4U /*!< SCB ABFSR: EPPB Position*/ -#define SCB_ABFSR_EPPB_Msk (1UL << SCB_ABFSR_EPPB_Pos) /*!< SCB ABFSR: EPPB Mask */ - -#define SCB_ABFSR_AXIM_Pos 3U /*!< SCB ABFSR: AXIM Position*/ -#define SCB_ABFSR_AXIM_Msk (1UL << SCB_ABFSR_AXIM_Pos) /*!< SCB ABFSR: AXIM Mask */ - -#define SCB_ABFSR_AHBP_Pos 2U /*!< SCB ABFSR: AHBP Position*/ -#define SCB_ABFSR_AHBP_Msk (1UL << SCB_ABFSR_AHBP_Pos) /*!< SCB ABFSR: AHBP Mask */ - -#define SCB_ABFSR_DTCM_Pos 1U /*!< SCB ABFSR: DTCM Position*/ -#define SCB_ABFSR_DTCM_Msk (1UL << SCB_ABFSR_DTCM_Pos) /*!< SCB ABFSR: DTCM Mask */ - -#define SCB_ABFSR_ITCM_Pos 0U /*!< SCB ABFSR: ITCM Position*/ -#define SCB_ABFSR_ITCM_Msk (1UL /*<< SCB_ABFSR_ITCM_Pos*/) /*!< SCB ABFSR: ITCM Mask */ - -/*@} end of group CMSIS_SCB */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) - \brief Type definitions for the System Control and ID Register not in the SCB - @{ - */ - -/** - \brief Structure type to access the System Control and ID Register not in the SCB. - */ -typedef struct -{ - uint32_t RESERVED0[1U]; - __IM uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ - __IOM uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ -} SCnSCB_Type; - -/* Interrupt Controller Type Register Definitions */ -#define SCnSCB_ICTR_INTLINESNUM_Pos 0U /*!< ICTR: INTLINESNUM Position */ -#define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL /*<< SCnSCB_ICTR_INTLINESNUM_Pos*/) /*!< ICTR: INTLINESNUM Mask */ - -/* Auxiliary Control Register Definitions */ -#define SCnSCB_ACTLR_DISDYNADD_Pos 26U /*!< ACTLR: DISDYNADD Position */ -#define SCnSCB_ACTLR_DISDYNADD_Msk (1UL << SCnSCB_ACTLR_DISDYNADD_Pos) /*!< ACTLR: DISDYNADD Mask */ - -#define SCnSCB_ACTLR_DISISSCH1_Pos 21U /*!< ACTLR: DISISSCH1 Position */ -#define SCnSCB_ACTLR_DISISSCH1_Msk (0x1FUL << SCnSCB_ACTLR_DISISSCH1_Pos) /*!< ACTLR: DISISSCH1 Mask */ - -#define SCnSCB_ACTLR_DISDI_Pos 16U /*!< ACTLR: DISDI Position */ -#define SCnSCB_ACTLR_DISDI_Msk (0x1FUL << SCnSCB_ACTLR_DISDI_Pos) /*!< ACTLR: DISDI Mask */ - -#define SCnSCB_ACTLR_DISCRITAXIRUR_Pos 15U /*!< ACTLR: DISCRITAXIRUR Position */ -#define SCnSCB_ACTLR_DISCRITAXIRUR_Msk (1UL << SCnSCB_ACTLR_DISCRITAXIRUR_Pos) /*!< ACTLR: DISCRITAXIRUR Mask */ - -#define SCnSCB_ACTLR_DISBTACALLOC_Pos 14U /*!< ACTLR: DISBTACALLOC Position */ -#define SCnSCB_ACTLR_DISBTACALLOC_Msk (1UL << SCnSCB_ACTLR_DISBTACALLOC_Pos) /*!< ACTLR: DISBTACALLOC Mask */ - -#define SCnSCB_ACTLR_DISBTACREAD_Pos 13U /*!< ACTLR: DISBTACREAD Position */ -#define SCnSCB_ACTLR_DISBTACREAD_Msk (1UL << SCnSCB_ACTLR_DISBTACREAD_Pos) /*!< ACTLR: DISBTACREAD Mask */ - -#define SCnSCB_ACTLR_DISITMATBFLUSH_Pos 12U /*!< ACTLR: DISITMATBFLUSH Position */ -#define SCnSCB_ACTLR_DISITMATBFLUSH_Msk (1UL << SCnSCB_ACTLR_DISITMATBFLUSH_Pos) /*!< ACTLR: DISITMATBFLUSH Mask */ - -#define SCnSCB_ACTLR_DISRAMODE_Pos 11U /*!< ACTLR: DISRAMODE Position */ -#define SCnSCB_ACTLR_DISRAMODE_Msk (1UL << SCnSCB_ACTLR_DISRAMODE_Pos) /*!< ACTLR: DISRAMODE Mask */ - -#define SCnSCB_ACTLR_FPEXCODIS_Pos 10U /*!< ACTLR: FPEXCODIS Position */ -#define SCnSCB_ACTLR_FPEXCODIS_Msk (1UL << SCnSCB_ACTLR_FPEXCODIS_Pos) /*!< ACTLR: FPEXCODIS Mask */ - -#define SCnSCB_ACTLR_DISFOLD_Pos 2U /*!< ACTLR: DISFOLD Position */ -#define SCnSCB_ACTLR_DISFOLD_Msk (1UL << SCnSCB_ACTLR_DISFOLD_Pos) /*!< ACTLR: DISFOLD Mask */ - -#define SCnSCB_ACTLR_DISMCYCINT_Pos 0U /*!< ACTLR: DISMCYCINT Position */ -#define SCnSCB_ACTLR_DISMCYCINT_Msk (1UL /*<< SCnSCB_ACTLR_DISMCYCINT_Pos*/) /*!< ACTLR: DISMCYCINT Mask */ - -/*@} end of group CMSIS_SCnotSCB */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SysTick System Tick Timer (SysTick) - \brief Type definitions for the System Timer Registers. - @{ - */ - -/** - \brief Structure type to access the System Timer (SysTick). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ - __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ - __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ - __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ -} SysTick_Type; - -/* SysTick Control / Status Register Definitions */ -#define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ -#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ - -#define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ -#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ - -#define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ -#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ - -#define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ -#define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ - -/* SysTick Reload Register Definitions */ -#define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ -#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ - -/* SysTick Current Register Definitions */ -#define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ -#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ - -/* SysTick Calibration Register Definitions */ -#define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ -#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ - -#define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ -#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ - -#define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ -#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ - -/*@} end of group CMSIS_SysTick */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_ITM Instrumentation Trace Macrocell (ITM) - \brief Type definitions for the Instrumentation Trace Macrocell (ITM) - @{ - */ - -/** - \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). - */ -typedef struct -{ - __OM union - { - __OM uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ - __OM uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ - __OM uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ - } PORT [32U]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ - uint32_t RESERVED0[864U]; - __IOM uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ - uint32_t RESERVED1[15U]; - __IOM uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ - uint32_t RESERVED2[15U]; - __IOM uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ - uint32_t RESERVED3[32U]; - uint32_t RESERVED4[43U]; - __OM uint32_t LAR; /*!< Offset: 0xFB0 ( /W) ITM Lock Access Register */ - __IM uint32_t LSR; /*!< Offset: 0xFB4 (R/ ) ITM Lock Status Register */ - uint32_t RESERVED5[6U]; - __IM uint32_t PID4; /*!< Offset: 0xFD0 (R/ ) ITM Peripheral Identification Register #4 */ - __IM uint32_t PID5; /*!< Offset: 0xFD4 (R/ ) ITM Peripheral Identification Register #5 */ - __IM uint32_t PID6; /*!< Offset: 0xFD8 (R/ ) ITM Peripheral Identification Register #6 */ - __IM uint32_t PID7; /*!< Offset: 0xFDC (R/ ) ITM Peripheral Identification Register #7 */ - __IM uint32_t PID0; /*!< Offset: 0xFE0 (R/ ) ITM Peripheral Identification Register #0 */ - __IM uint32_t PID1; /*!< Offset: 0xFE4 (R/ ) ITM Peripheral Identification Register #1 */ - __IM uint32_t PID2; /*!< Offset: 0xFE8 (R/ ) ITM Peripheral Identification Register #2 */ - __IM uint32_t PID3; /*!< Offset: 0xFEC (R/ ) ITM Peripheral Identification Register #3 */ - __IM uint32_t CID0; /*!< Offset: 0xFF0 (R/ ) ITM Component Identification Register #0 */ - __IM uint32_t CID1; /*!< Offset: 0xFF4 (R/ ) ITM Component Identification Register #1 */ - __IM uint32_t CID2; /*!< Offset: 0xFF8 (R/ ) ITM Component Identification Register #2 */ - __IM uint32_t CID3; /*!< Offset: 0xFFC (R/ ) ITM Component Identification Register #3 */ -} ITM_Type; - -/* ITM Trace Privilege Register Definitions */ -#define ITM_TPR_PRIVMASK_Pos 0U /*!< ITM TPR: PRIVMASK Position */ -#define ITM_TPR_PRIVMASK_Msk (0xFFFFFFFFUL /*<< ITM_TPR_PRIVMASK_Pos*/) /*!< ITM TPR: PRIVMASK Mask */ - -/* ITM Trace Control Register Definitions */ -#define ITM_TCR_BUSY_Pos 23U /*!< ITM TCR: BUSY Position */ -#define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ - -#define ITM_TCR_TraceBusID_Pos 16U /*!< ITM TCR: ATBID Position */ -#define ITM_TCR_TraceBusID_Msk (0x7FUL << ITM_TCR_TraceBusID_Pos) /*!< ITM TCR: ATBID Mask */ - -#define ITM_TCR_GTSFREQ_Pos 10U /*!< ITM TCR: Global timestamp frequency Position */ -#define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ - -#define ITM_TCR_TSPrescale_Pos 8U /*!< ITM TCR: TSPrescale Position */ -#define ITM_TCR_TSPrescale_Msk (3UL << ITM_TCR_TSPrescale_Pos) /*!< ITM TCR: TSPrescale Mask */ - -#define ITM_TCR_SWOENA_Pos 4U /*!< ITM TCR: SWOENA Position */ -#define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ - -#define ITM_TCR_DWTENA_Pos 3U /*!< ITM TCR: DWTENA Position */ -#define ITM_TCR_DWTENA_Msk (1UL << ITM_TCR_DWTENA_Pos) /*!< ITM TCR: DWTENA Mask */ - -#define ITM_TCR_SYNCENA_Pos 2U /*!< ITM TCR: SYNCENA Position */ -#define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ - -#define ITM_TCR_TSENA_Pos 1U /*!< ITM TCR: TSENA Position */ -#define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ - -#define ITM_TCR_ITMENA_Pos 0U /*!< ITM TCR: ITM Enable bit Position */ -#define ITM_TCR_ITMENA_Msk (1UL /*<< ITM_TCR_ITMENA_Pos*/) /*!< ITM TCR: ITM Enable bit Mask */ - -/* ITM Lock Status Register Definitions */ -#define ITM_LSR_ByteAcc_Pos 2U /*!< ITM LSR: ByteAcc Position */ -#define ITM_LSR_ByteAcc_Msk (1UL << ITM_LSR_ByteAcc_Pos) /*!< ITM LSR: ByteAcc Mask */ - -#define ITM_LSR_Access_Pos 1U /*!< ITM LSR: Access Position */ -#define ITM_LSR_Access_Msk (1UL << ITM_LSR_Access_Pos) /*!< ITM LSR: Access Mask */ - -#define ITM_LSR_Present_Pos 0U /*!< ITM LSR: Present Position */ -#define ITM_LSR_Present_Msk (1UL /*<< ITM_LSR_Present_Pos*/) /*!< ITM LSR: Present Mask */ - -/*@}*/ /* end of group CMSIS_ITM */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) - \brief Type definitions for the Data Watchpoint and Trace (DWT) - @{ - */ - -/** - \brief Structure type to access the Data Watchpoint and Trace Register (DWT). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ - __IOM uint32_t CYCCNT; /*!< Offset: 0x004 (R/W) Cycle Count Register */ - __IOM uint32_t CPICNT; /*!< Offset: 0x008 (R/W) CPI Count Register */ - __IOM uint32_t EXCCNT; /*!< Offset: 0x00C (R/W) Exception Overhead Count Register */ - __IOM uint32_t SLEEPCNT; /*!< Offset: 0x010 (R/W) Sleep Count Register */ - __IOM uint32_t LSUCNT; /*!< Offset: 0x014 (R/W) LSU Count Register */ - __IOM uint32_t FOLDCNT; /*!< Offset: 0x018 (R/W) Folded-instruction Count Register */ - __IM uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ - __IOM uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ - __IOM uint32_t MASK0; /*!< Offset: 0x024 (R/W) Mask Register 0 */ - __IOM uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ - uint32_t RESERVED0[1U]; - __IOM uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ - __IOM uint32_t MASK1; /*!< Offset: 0x034 (R/W) Mask Register 1 */ - __IOM uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ - uint32_t RESERVED1[1U]; - __IOM uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ - __IOM uint32_t MASK2; /*!< Offset: 0x044 (R/W) Mask Register 2 */ - __IOM uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ - uint32_t RESERVED2[1U]; - __IOM uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ - __IOM uint32_t MASK3; /*!< Offset: 0x054 (R/W) Mask Register 3 */ - __IOM uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ - uint32_t RESERVED3[981U]; - __OM uint32_t LAR; /*!< Offset: 0xFB0 ( W) Lock Access Register */ - __IM uint32_t LSR; /*!< Offset: 0xFB4 (R ) Lock Status Register */ -} DWT_Type; - -/* DWT Control Register Definitions */ -#define DWT_CTRL_NUMCOMP_Pos 28U /*!< DWT CTRL: NUMCOMP Position */ -#define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ - -#define DWT_CTRL_NOTRCPKT_Pos 27U /*!< DWT CTRL: NOTRCPKT Position */ -#define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ - -#define DWT_CTRL_NOEXTTRIG_Pos 26U /*!< DWT CTRL: NOEXTTRIG Position */ -#define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ - -#define DWT_CTRL_NOCYCCNT_Pos 25U /*!< DWT CTRL: NOCYCCNT Position */ -#define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ - -#define DWT_CTRL_NOPRFCNT_Pos 24U /*!< DWT CTRL: NOPRFCNT Position */ -#define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ - -#define DWT_CTRL_CYCEVTENA_Pos 22U /*!< DWT CTRL: CYCEVTENA Position */ -#define DWT_CTRL_CYCEVTENA_Msk (0x1UL << DWT_CTRL_CYCEVTENA_Pos) /*!< DWT CTRL: CYCEVTENA Mask */ - -#define DWT_CTRL_FOLDEVTENA_Pos 21U /*!< DWT CTRL: FOLDEVTENA Position */ -#define DWT_CTRL_FOLDEVTENA_Msk (0x1UL << DWT_CTRL_FOLDEVTENA_Pos) /*!< DWT CTRL: FOLDEVTENA Mask */ - -#define DWT_CTRL_LSUEVTENA_Pos 20U /*!< DWT CTRL: LSUEVTENA Position */ -#define DWT_CTRL_LSUEVTENA_Msk (0x1UL << DWT_CTRL_LSUEVTENA_Pos) /*!< DWT CTRL: LSUEVTENA Mask */ - -#define DWT_CTRL_SLEEPEVTENA_Pos 19U /*!< DWT CTRL: SLEEPEVTENA Position */ -#define DWT_CTRL_SLEEPEVTENA_Msk (0x1UL << DWT_CTRL_SLEEPEVTENA_Pos) /*!< DWT CTRL: SLEEPEVTENA Mask */ - -#define DWT_CTRL_EXCEVTENA_Pos 18U /*!< DWT CTRL: EXCEVTENA Position */ -#define DWT_CTRL_EXCEVTENA_Msk (0x1UL << DWT_CTRL_EXCEVTENA_Pos) /*!< DWT CTRL: EXCEVTENA Mask */ - -#define DWT_CTRL_CPIEVTENA_Pos 17U /*!< DWT CTRL: CPIEVTENA Position */ -#define DWT_CTRL_CPIEVTENA_Msk (0x1UL << DWT_CTRL_CPIEVTENA_Pos) /*!< DWT CTRL: CPIEVTENA Mask */ - -#define DWT_CTRL_EXCTRCENA_Pos 16U /*!< DWT CTRL: EXCTRCENA Position */ -#define DWT_CTRL_EXCTRCENA_Msk (0x1UL << DWT_CTRL_EXCTRCENA_Pos) /*!< DWT CTRL: EXCTRCENA Mask */ - -#define DWT_CTRL_PCSAMPLENA_Pos 12U /*!< DWT CTRL: PCSAMPLENA Position */ -#define DWT_CTRL_PCSAMPLENA_Msk (0x1UL << DWT_CTRL_PCSAMPLENA_Pos) /*!< DWT CTRL: PCSAMPLENA Mask */ - -#define DWT_CTRL_SYNCTAP_Pos 10U /*!< DWT CTRL: SYNCTAP Position */ -#define DWT_CTRL_SYNCTAP_Msk (0x3UL << DWT_CTRL_SYNCTAP_Pos) /*!< DWT CTRL: SYNCTAP Mask */ - -#define DWT_CTRL_CYCTAP_Pos 9U /*!< DWT CTRL: CYCTAP Position */ -#define DWT_CTRL_CYCTAP_Msk (0x1UL << DWT_CTRL_CYCTAP_Pos) /*!< DWT CTRL: CYCTAP Mask */ - -#define DWT_CTRL_POSTINIT_Pos 5U /*!< DWT CTRL: POSTINIT Position */ -#define DWT_CTRL_POSTINIT_Msk (0xFUL << DWT_CTRL_POSTINIT_Pos) /*!< DWT CTRL: POSTINIT Mask */ - -#define DWT_CTRL_POSTPRESET_Pos 1U /*!< DWT CTRL: POSTPRESET Position */ -#define DWT_CTRL_POSTPRESET_Msk (0xFUL << DWT_CTRL_POSTPRESET_Pos) /*!< DWT CTRL: POSTPRESET Mask */ - -#define DWT_CTRL_CYCCNTENA_Pos 0U /*!< DWT CTRL: CYCCNTENA Position */ -#define DWT_CTRL_CYCCNTENA_Msk (0x1UL /*<< DWT_CTRL_CYCCNTENA_Pos*/) /*!< DWT CTRL: CYCCNTENA Mask */ - -/* DWT CPI Count Register Definitions */ -#define DWT_CPICNT_CPICNT_Pos 0U /*!< DWT CPICNT: CPICNT Position */ -#define DWT_CPICNT_CPICNT_Msk (0xFFUL /*<< DWT_CPICNT_CPICNT_Pos*/) /*!< DWT CPICNT: CPICNT Mask */ - -/* DWT Exception Overhead Count Register Definitions */ -#define DWT_EXCCNT_EXCCNT_Pos 0U /*!< DWT EXCCNT: EXCCNT Position */ -#define DWT_EXCCNT_EXCCNT_Msk (0xFFUL /*<< DWT_EXCCNT_EXCCNT_Pos*/) /*!< DWT EXCCNT: EXCCNT Mask */ - -/* DWT Sleep Count Register Definitions */ -#define DWT_SLEEPCNT_SLEEPCNT_Pos 0U /*!< DWT SLEEPCNT: SLEEPCNT Position */ -#define DWT_SLEEPCNT_SLEEPCNT_Msk (0xFFUL /*<< DWT_SLEEPCNT_SLEEPCNT_Pos*/) /*!< DWT SLEEPCNT: SLEEPCNT Mask */ - -/* DWT LSU Count Register Definitions */ -#define DWT_LSUCNT_LSUCNT_Pos 0U /*!< DWT LSUCNT: LSUCNT Position */ -#define DWT_LSUCNT_LSUCNT_Msk (0xFFUL /*<< DWT_LSUCNT_LSUCNT_Pos*/) /*!< DWT LSUCNT: LSUCNT Mask */ - -/* DWT Folded-instruction Count Register Definitions */ -#define DWT_FOLDCNT_FOLDCNT_Pos 0U /*!< DWT FOLDCNT: FOLDCNT Position */ -#define DWT_FOLDCNT_FOLDCNT_Msk (0xFFUL /*<< DWT_FOLDCNT_FOLDCNT_Pos*/) /*!< DWT FOLDCNT: FOLDCNT Mask */ - -/* DWT Comparator Mask Register Definitions */ -#define DWT_MASK_MASK_Pos 0U /*!< DWT MASK: MASK Position */ -#define DWT_MASK_MASK_Msk (0x1FUL /*<< DWT_MASK_MASK_Pos*/) /*!< DWT MASK: MASK Mask */ - -/* DWT Comparator Function Register Definitions */ -#define DWT_FUNCTION_MATCHED_Pos 24U /*!< DWT FUNCTION: MATCHED Position */ -#define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ - -#define DWT_FUNCTION_DATAVADDR1_Pos 16U /*!< DWT FUNCTION: DATAVADDR1 Position */ -#define DWT_FUNCTION_DATAVADDR1_Msk (0xFUL << DWT_FUNCTION_DATAVADDR1_Pos) /*!< DWT FUNCTION: DATAVADDR1 Mask */ - -#define DWT_FUNCTION_DATAVADDR0_Pos 12U /*!< DWT FUNCTION: DATAVADDR0 Position */ -#define DWT_FUNCTION_DATAVADDR0_Msk (0xFUL << DWT_FUNCTION_DATAVADDR0_Pos) /*!< DWT FUNCTION: DATAVADDR0 Mask */ - -#define DWT_FUNCTION_DATAVSIZE_Pos 10U /*!< DWT FUNCTION: DATAVSIZE Position */ -#define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ - -#define DWT_FUNCTION_LNK1ENA_Pos 9U /*!< DWT FUNCTION: LNK1ENA Position */ -#define DWT_FUNCTION_LNK1ENA_Msk (0x1UL << DWT_FUNCTION_LNK1ENA_Pos) /*!< DWT FUNCTION: LNK1ENA Mask */ - -#define DWT_FUNCTION_DATAVMATCH_Pos 8U /*!< DWT FUNCTION: DATAVMATCH Position */ -#define DWT_FUNCTION_DATAVMATCH_Msk (0x1UL << DWT_FUNCTION_DATAVMATCH_Pos) /*!< DWT FUNCTION: DATAVMATCH Mask */ - -#define DWT_FUNCTION_CYCMATCH_Pos 7U /*!< DWT FUNCTION: CYCMATCH Position */ -#define DWT_FUNCTION_CYCMATCH_Msk (0x1UL << DWT_FUNCTION_CYCMATCH_Pos) /*!< DWT FUNCTION: CYCMATCH Mask */ - -#define DWT_FUNCTION_EMITRANGE_Pos 5U /*!< DWT FUNCTION: EMITRANGE Position */ -#define DWT_FUNCTION_EMITRANGE_Msk (0x1UL << DWT_FUNCTION_EMITRANGE_Pos) /*!< DWT FUNCTION: EMITRANGE Mask */ - -#define DWT_FUNCTION_FUNCTION_Pos 0U /*!< DWT FUNCTION: FUNCTION Position */ -#define DWT_FUNCTION_FUNCTION_Msk (0xFUL /*<< DWT_FUNCTION_FUNCTION_Pos*/) /*!< DWT FUNCTION: FUNCTION Mask */ - -/*@}*/ /* end of group CMSIS_DWT */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_TPI Trace Port Interface (TPI) - \brief Type definitions for the Trace Port Interface (TPI) - @{ - */ - -/** - \brief Structure type to access the Trace Port Interface Register (TPI). - */ -typedef struct -{ - __IM uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Size Register */ - __IOM uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Size Register */ - uint32_t RESERVED0[2U]; - __IOM uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ - uint32_t RESERVED1[55U]; - __IOM uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ - uint32_t RESERVED2[131U]; - __IM uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ - __IOM uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ - __IM uint32_t FSCR; /*!< Offset: 0x308 (R/ ) Formatter Synchronization Counter Register */ - uint32_t RESERVED3[759U]; - __IM uint32_t TRIGGER; /*!< Offset: 0xEE8 (R/ ) TRIGGER Register */ - __IM uint32_t FIFO0; /*!< Offset: 0xEEC (R/ ) Integration ETM Data */ - __IM uint32_t ITATBCTR2; /*!< Offset: 0xEF0 (R/ ) ITATBCTR2 */ - uint32_t RESERVED4[1U]; - __IM uint32_t ITATBCTR0; /*!< Offset: 0xEF8 (R/ ) ITATBCTR0 */ - __IM uint32_t FIFO1; /*!< Offset: 0xEFC (R/ ) Integration ITM Data */ - __IOM uint32_t ITCTRL; /*!< Offset: 0xF00 (R/W) Integration Mode Control */ - uint32_t RESERVED5[39U]; - __IOM uint32_t CLAIMSET; /*!< Offset: 0xFA0 (R/W) Claim tag set */ - __IOM uint32_t CLAIMCLR; /*!< Offset: 0xFA4 (R/W) Claim tag clear */ - uint32_t RESERVED7[8U]; - __IM uint32_t DEVID; /*!< Offset: 0xFC8 (R/ ) TPIU_DEVID */ - __IM uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) TPIU_DEVTYPE */ -} TPI_Type; - -/* TPI Asynchronous Clock Prescaler Register Definitions */ -#define TPI_ACPR_PRESCALER_Pos 0U /*!< TPI ACPR: PRESCALER Position */ -#define TPI_ACPR_PRESCALER_Msk (0x1FFFUL /*<< TPI_ACPR_PRESCALER_Pos*/) /*!< TPI ACPR: PRESCALER Mask */ - -/* TPI Selected Pin Protocol Register Definitions */ -#define TPI_SPPR_TXMODE_Pos 0U /*!< TPI SPPR: TXMODE Position */ -#define TPI_SPPR_TXMODE_Msk (0x3UL /*<< TPI_SPPR_TXMODE_Pos*/) /*!< TPI SPPR: TXMODE Mask */ - -/* TPI Formatter and Flush Status Register Definitions */ -#define TPI_FFSR_FtNonStop_Pos 3U /*!< TPI FFSR: FtNonStop Position */ -#define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ - -#define TPI_FFSR_TCPresent_Pos 2U /*!< TPI FFSR: TCPresent Position */ -#define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ - -#define TPI_FFSR_FtStopped_Pos 1U /*!< TPI FFSR: FtStopped Position */ -#define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ - -#define TPI_FFSR_FlInProg_Pos 0U /*!< TPI FFSR: FlInProg Position */ -#define TPI_FFSR_FlInProg_Msk (0x1UL /*<< TPI_FFSR_FlInProg_Pos*/) /*!< TPI FFSR: FlInProg Mask */ - -/* TPI Formatter and Flush Control Register Definitions */ -#define TPI_FFCR_TrigIn_Pos 8U /*!< TPI FFCR: TrigIn Position */ -#define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ - -#define TPI_FFCR_EnFCont_Pos 1U /*!< TPI FFCR: EnFCont Position */ -#define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ - -/* TPI TRIGGER Register Definitions */ -#define TPI_TRIGGER_TRIGGER_Pos 0U /*!< TPI TRIGGER: TRIGGER Position */ -#define TPI_TRIGGER_TRIGGER_Msk (0x1UL /*<< TPI_TRIGGER_TRIGGER_Pos*/) /*!< TPI TRIGGER: TRIGGER Mask */ - -/* TPI Integration ETM Data Register Definitions (FIFO0) */ -#define TPI_FIFO0_ITM_ATVALID_Pos 29U /*!< TPI FIFO0: ITM_ATVALID Position */ -#define TPI_FIFO0_ITM_ATVALID_Msk (0x1UL << TPI_FIFO0_ITM_ATVALID_Pos) /*!< TPI FIFO0: ITM_ATVALID Mask */ - -#define TPI_FIFO0_ITM_bytecount_Pos 27U /*!< TPI FIFO0: ITM_bytecount Position */ -#define TPI_FIFO0_ITM_bytecount_Msk (0x3UL << TPI_FIFO0_ITM_bytecount_Pos) /*!< TPI FIFO0: ITM_bytecount Mask */ - -#define TPI_FIFO0_ETM_ATVALID_Pos 26U /*!< TPI FIFO0: ETM_ATVALID Position */ -#define TPI_FIFO0_ETM_ATVALID_Msk (0x1UL << TPI_FIFO0_ETM_ATVALID_Pos) /*!< TPI FIFO0: ETM_ATVALID Mask */ - -#define TPI_FIFO0_ETM_bytecount_Pos 24U /*!< TPI FIFO0: ETM_bytecount Position */ -#define TPI_FIFO0_ETM_bytecount_Msk (0x3UL << TPI_FIFO0_ETM_bytecount_Pos) /*!< TPI FIFO0: ETM_bytecount Mask */ - -#define TPI_FIFO0_ETM2_Pos 16U /*!< TPI FIFO0: ETM2 Position */ -#define TPI_FIFO0_ETM2_Msk (0xFFUL << TPI_FIFO0_ETM2_Pos) /*!< TPI FIFO0: ETM2 Mask */ - -#define TPI_FIFO0_ETM1_Pos 8U /*!< TPI FIFO0: ETM1 Position */ -#define TPI_FIFO0_ETM1_Msk (0xFFUL << TPI_FIFO0_ETM1_Pos) /*!< TPI FIFO0: ETM1 Mask */ - -#define TPI_FIFO0_ETM0_Pos 0U /*!< TPI FIFO0: ETM0 Position */ -#define TPI_FIFO0_ETM0_Msk (0xFFUL /*<< TPI_FIFO0_ETM0_Pos*/) /*!< TPI FIFO0: ETM0 Mask */ - -/* TPI ITATBCTR2 Register Definitions */ -#define TPI_ITATBCTR2_ATREADY2_Pos 0U /*!< TPI ITATBCTR2: ATREADY2 Position */ -#define TPI_ITATBCTR2_ATREADY2_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY2_Pos*/) /*!< TPI ITATBCTR2: ATREADY2 Mask */ - -#define TPI_ITATBCTR2_ATREADY1_Pos 0U /*!< TPI ITATBCTR2: ATREADY1 Position */ -#define TPI_ITATBCTR2_ATREADY1_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY1_Pos*/) /*!< TPI ITATBCTR2: ATREADY1 Mask */ - -/* TPI Integration ITM Data Register Definitions (FIFO1) */ -#define TPI_FIFO1_ITM_ATVALID_Pos 29U /*!< TPI FIFO1: ITM_ATVALID Position */ -#define TPI_FIFO1_ITM_ATVALID_Msk (0x1UL << TPI_FIFO1_ITM_ATVALID_Pos) /*!< TPI FIFO1: ITM_ATVALID Mask */ - -#define TPI_FIFO1_ITM_bytecount_Pos 27U /*!< TPI FIFO1: ITM_bytecount Position */ -#define TPI_FIFO1_ITM_bytecount_Msk (0x3UL << TPI_FIFO1_ITM_bytecount_Pos) /*!< TPI FIFO1: ITM_bytecount Mask */ - -#define TPI_FIFO1_ETM_ATVALID_Pos 26U /*!< TPI FIFO1: ETM_ATVALID Position */ -#define TPI_FIFO1_ETM_ATVALID_Msk (0x1UL << TPI_FIFO1_ETM_ATVALID_Pos) /*!< TPI FIFO1: ETM_ATVALID Mask */ - -#define TPI_FIFO1_ETM_bytecount_Pos 24U /*!< TPI FIFO1: ETM_bytecount Position */ -#define TPI_FIFO1_ETM_bytecount_Msk (0x3UL << TPI_FIFO1_ETM_bytecount_Pos) /*!< TPI FIFO1: ETM_bytecount Mask */ - -#define TPI_FIFO1_ITM2_Pos 16U /*!< TPI FIFO1: ITM2 Position */ -#define TPI_FIFO1_ITM2_Msk (0xFFUL << TPI_FIFO1_ITM2_Pos) /*!< TPI FIFO1: ITM2 Mask */ - -#define TPI_FIFO1_ITM1_Pos 8U /*!< TPI FIFO1: ITM1 Position */ -#define TPI_FIFO1_ITM1_Msk (0xFFUL << TPI_FIFO1_ITM1_Pos) /*!< TPI FIFO1: ITM1 Mask */ - -#define TPI_FIFO1_ITM0_Pos 0U /*!< TPI FIFO1: ITM0 Position */ -#define TPI_FIFO1_ITM0_Msk (0xFFUL /*<< TPI_FIFO1_ITM0_Pos*/) /*!< TPI FIFO1: ITM0 Mask */ - -/* TPI ITATBCTR0 Register Definitions */ -#define TPI_ITATBCTR0_ATREADY2_Pos 0U /*!< TPI ITATBCTR0: ATREADY2 Position */ -#define TPI_ITATBCTR0_ATREADY2_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY2_Pos*/) /*!< TPI ITATBCTR0: ATREADY2 Mask */ - -#define TPI_ITATBCTR0_ATREADY1_Pos 0U /*!< TPI ITATBCTR0: ATREADY1 Position */ -#define TPI_ITATBCTR0_ATREADY1_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY1_Pos*/) /*!< TPI ITATBCTR0: ATREADY1 Mask */ - -/* TPI Integration Mode Control Register Definitions */ -#define TPI_ITCTRL_Mode_Pos 0U /*!< TPI ITCTRL: Mode Position */ -#define TPI_ITCTRL_Mode_Msk (0x3UL /*<< TPI_ITCTRL_Mode_Pos*/) /*!< TPI ITCTRL: Mode Mask */ - -/* TPI DEVID Register Definitions */ -#define TPI_DEVID_NRZVALID_Pos 11U /*!< TPI DEVID: NRZVALID Position */ -#define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ - -#define TPI_DEVID_MANCVALID_Pos 10U /*!< TPI DEVID: MANCVALID Position */ -#define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ - -#define TPI_DEVID_PTINVALID_Pos 9U /*!< TPI DEVID: PTINVALID Position */ -#define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ - -#define TPI_DEVID_MinBufSz_Pos 6U /*!< TPI DEVID: MinBufSz Position */ -#define TPI_DEVID_MinBufSz_Msk (0x7UL << TPI_DEVID_MinBufSz_Pos) /*!< TPI DEVID: MinBufSz Mask */ - -#define TPI_DEVID_AsynClkIn_Pos 5U /*!< TPI DEVID: AsynClkIn Position */ -#define TPI_DEVID_AsynClkIn_Msk (0x1UL << TPI_DEVID_AsynClkIn_Pos) /*!< TPI DEVID: AsynClkIn Mask */ - -#define TPI_DEVID_NrTraceInput_Pos 0U /*!< TPI DEVID: NrTraceInput Position */ -#define TPI_DEVID_NrTraceInput_Msk (0x1FUL /*<< TPI_DEVID_NrTraceInput_Pos*/) /*!< TPI DEVID: NrTraceInput Mask */ - -/* TPI DEVTYPE Register Definitions */ -#define TPI_DEVTYPE_SubType_Pos 4U /*!< TPI DEVTYPE: SubType Position */ -#define TPI_DEVTYPE_SubType_Msk (0xFUL /*<< TPI_DEVTYPE_SubType_Pos*/) /*!< TPI DEVTYPE: SubType Mask */ - -#define TPI_DEVTYPE_MajorType_Pos 0U /*!< TPI DEVTYPE: MajorType Position */ -#define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ - -/*@}*/ /* end of group CMSIS_TPI */ - - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_MPU Memory Protection Unit (MPU) - \brief Type definitions for the Memory Protection Unit (MPU) - @{ - */ - -/** - \brief Structure type to access the Memory Protection Unit (MPU). - */ -typedef struct -{ - __IM uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ - __IOM uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ - __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ - __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ - __IOM uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ - __IOM uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Alias 1 Region Base Address Register */ - __IOM uint32_t RASR_A1; /*!< Offset: 0x018 (R/W) MPU Alias 1 Region Attribute and Size Register */ - __IOM uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Alias 2 Region Base Address Register */ - __IOM uint32_t RASR_A2; /*!< Offset: 0x020 (R/W) MPU Alias 2 Region Attribute and Size Register */ - __IOM uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Alias 3 Region Base Address Register */ - __IOM uint32_t RASR_A3; /*!< Offset: 0x028 (R/W) MPU Alias 3 Region Attribute and Size Register */ -} MPU_Type; - -#define MPU_TYPE_RALIASES 4U - -/* MPU Type Register Definitions */ -#define MPU_TYPE_IREGION_Pos 16U /*!< MPU TYPE: IREGION Position */ -#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ - -#define MPU_TYPE_DREGION_Pos 8U /*!< MPU TYPE: DREGION Position */ -#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ - -#define MPU_TYPE_SEPARATE_Pos 0U /*!< MPU TYPE: SEPARATE Position */ -#define MPU_TYPE_SEPARATE_Msk (1UL /*<< MPU_TYPE_SEPARATE_Pos*/) /*!< MPU TYPE: SEPARATE Mask */ - -/* MPU Control Register Definitions */ -#define MPU_CTRL_PRIVDEFENA_Pos 2U /*!< MPU CTRL: PRIVDEFENA Position */ -#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ - -#define MPU_CTRL_HFNMIENA_Pos 1U /*!< MPU CTRL: HFNMIENA Position */ -#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ - -#define MPU_CTRL_ENABLE_Pos 0U /*!< MPU CTRL: ENABLE Position */ -#define MPU_CTRL_ENABLE_Msk (1UL /*<< MPU_CTRL_ENABLE_Pos*/) /*!< MPU CTRL: ENABLE Mask */ - -/* MPU Region Number Register Definitions */ -#define MPU_RNR_REGION_Pos 0U /*!< MPU RNR: REGION Position */ -#define MPU_RNR_REGION_Msk (0xFFUL /*<< MPU_RNR_REGION_Pos*/) /*!< MPU RNR: REGION Mask */ - -/* MPU Region Base Address Register Definitions */ -#define MPU_RBAR_ADDR_Pos 5U /*!< MPU RBAR: ADDR Position */ -#define MPU_RBAR_ADDR_Msk (0x7FFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ - -#define MPU_RBAR_VALID_Pos 4U /*!< MPU RBAR: VALID Position */ -#define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ - -#define MPU_RBAR_REGION_Pos 0U /*!< MPU RBAR: REGION Position */ -#define MPU_RBAR_REGION_Msk (0xFUL /*<< MPU_RBAR_REGION_Pos*/) /*!< MPU RBAR: REGION Mask */ - -/* MPU Region Attribute and Size Register Definitions */ -#define MPU_RASR_ATTRS_Pos 16U /*!< MPU RASR: MPU Region Attribute field Position */ -#define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ - -#define MPU_RASR_XN_Pos 28U /*!< MPU RASR: ATTRS.XN Position */ -#define MPU_RASR_XN_Msk (1UL << MPU_RASR_XN_Pos) /*!< MPU RASR: ATTRS.XN Mask */ - -#define MPU_RASR_AP_Pos 24U /*!< MPU RASR: ATTRS.AP Position */ -#define MPU_RASR_AP_Msk (0x7UL << MPU_RASR_AP_Pos) /*!< MPU RASR: ATTRS.AP Mask */ - -#define MPU_RASR_TEX_Pos 19U /*!< MPU RASR: ATTRS.TEX Position */ -#define MPU_RASR_TEX_Msk (0x7UL << MPU_RASR_TEX_Pos) /*!< MPU RASR: ATTRS.TEX Mask */ - -#define MPU_RASR_S_Pos 18U /*!< MPU RASR: ATTRS.S Position */ -#define MPU_RASR_S_Msk (1UL << MPU_RASR_S_Pos) /*!< MPU RASR: ATTRS.S Mask */ - -#define MPU_RASR_C_Pos 17U /*!< MPU RASR: ATTRS.C Position */ -#define MPU_RASR_C_Msk (1UL << MPU_RASR_C_Pos) /*!< MPU RASR: ATTRS.C Mask */ - -#define MPU_RASR_B_Pos 16U /*!< MPU RASR: ATTRS.B Position */ -#define MPU_RASR_B_Msk (1UL << MPU_RASR_B_Pos) /*!< MPU RASR: ATTRS.B Mask */ - -#define MPU_RASR_SRD_Pos 8U /*!< MPU RASR: Sub-Region Disable Position */ -#define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ - -#define MPU_RASR_SIZE_Pos 1U /*!< MPU RASR: Region Size Field Position */ -#define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ - -#define MPU_RASR_ENABLE_Pos 0U /*!< MPU RASR: Region enable bit Position */ -#define MPU_RASR_ENABLE_Msk (1UL /*<< MPU_RASR_ENABLE_Pos*/) /*!< MPU RASR: Region enable bit Disable Mask */ - -/*@} end of group CMSIS_MPU */ -#endif /* defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_FPU Floating Point Unit (FPU) - \brief Type definitions for the Floating Point Unit (FPU) - @{ - */ - -/** - \brief Structure type to access the Floating Point Unit (FPU). - */ -typedef struct -{ - uint32_t RESERVED0[1U]; - __IOM uint32_t FPCCR; /*!< Offset: 0x004 (R/W) Floating-Point Context Control Register */ - __IOM uint32_t FPCAR; /*!< Offset: 0x008 (R/W) Floating-Point Context Address Register */ - __IOM uint32_t FPDSCR; /*!< Offset: 0x00C (R/W) Floating-Point Default Status Control Register */ - __IM uint32_t MVFR0; /*!< Offset: 0x010 (R/ ) Media and FP Feature Register 0 */ - __IM uint32_t MVFR1; /*!< Offset: 0x014 (R/ ) Media and FP Feature Register 1 */ - __IM uint32_t MVFR2; /*!< Offset: 0x018 (R/ ) Media and FP Feature Register 2 */ -} FPU_Type; - -/* Floating-Point Context Control Register Definitions */ -#define FPU_FPCCR_ASPEN_Pos 31U /*!< FPCCR: ASPEN bit Position */ -#define FPU_FPCCR_ASPEN_Msk (1UL << FPU_FPCCR_ASPEN_Pos) /*!< FPCCR: ASPEN bit Mask */ - -#define FPU_FPCCR_LSPEN_Pos 30U /*!< FPCCR: LSPEN Position */ -#define FPU_FPCCR_LSPEN_Msk (1UL << FPU_FPCCR_LSPEN_Pos) /*!< FPCCR: LSPEN bit Mask */ - -#define FPU_FPCCR_MONRDY_Pos 8U /*!< FPCCR: MONRDY Position */ -#define FPU_FPCCR_MONRDY_Msk (1UL << FPU_FPCCR_MONRDY_Pos) /*!< FPCCR: MONRDY bit Mask */ - -#define FPU_FPCCR_BFRDY_Pos 6U /*!< FPCCR: BFRDY Position */ -#define FPU_FPCCR_BFRDY_Msk (1UL << FPU_FPCCR_BFRDY_Pos) /*!< FPCCR: BFRDY bit Mask */ - -#define FPU_FPCCR_MMRDY_Pos 5U /*!< FPCCR: MMRDY Position */ -#define FPU_FPCCR_MMRDY_Msk (1UL << FPU_FPCCR_MMRDY_Pos) /*!< FPCCR: MMRDY bit Mask */ - -#define FPU_FPCCR_HFRDY_Pos 4U /*!< FPCCR: HFRDY Position */ -#define FPU_FPCCR_HFRDY_Msk (1UL << FPU_FPCCR_HFRDY_Pos) /*!< FPCCR: HFRDY bit Mask */ - -#define FPU_FPCCR_THREAD_Pos 3U /*!< FPCCR: processor mode bit Position */ -#define FPU_FPCCR_THREAD_Msk (1UL << FPU_FPCCR_THREAD_Pos) /*!< FPCCR: processor mode active bit Mask */ - -#define FPU_FPCCR_USER_Pos 1U /*!< FPCCR: privilege level bit Position */ -#define FPU_FPCCR_USER_Msk (1UL << FPU_FPCCR_USER_Pos) /*!< FPCCR: privilege level bit Mask */ - -#define FPU_FPCCR_LSPACT_Pos 0U /*!< FPCCR: Lazy state preservation active bit Position */ -#define FPU_FPCCR_LSPACT_Msk (1UL /*<< FPU_FPCCR_LSPACT_Pos*/) /*!< FPCCR: Lazy state preservation active bit Mask */ - -/* Floating-Point Context Address Register Definitions */ -#define FPU_FPCAR_ADDRESS_Pos 3U /*!< FPCAR: ADDRESS bit Position */ -#define FPU_FPCAR_ADDRESS_Msk (0x1FFFFFFFUL << FPU_FPCAR_ADDRESS_Pos) /*!< FPCAR: ADDRESS bit Mask */ - -/* Floating-Point Default Status Control Register Definitions */ -#define FPU_FPDSCR_AHP_Pos 26U /*!< FPDSCR: AHP bit Position */ -#define FPU_FPDSCR_AHP_Msk (1UL << FPU_FPDSCR_AHP_Pos) /*!< FPDSCR: AHP bit Mask */ - -#define FPU_FPDSCR_DN_Pos 25U /*!< FPDSCR: DN bit Position */ -#define FPU_FPDSCR_DN_Msk (1UL << FPU_FPDSCR_DN_Pos) /*!< FPDSCR: DN bit Mask */ - -#define FPU_FPDSCR_FZ_Pos 24U /*!< FPDSCR: FZ bit Position */ -#define FPU_FPDSCR_FZ_Msk (1UL << FPU_FPDSCR_FZ_Pos) /*!< FPDSCR: FZ bit Mask */ - -#define FPU_FPDSCR_RMode_Pos 22U /*!< FPDSCR: RMode bit Position */ -#define FPU_FPDSCR_RMode_Msk (3UL << FPU_FPDSCR_RMode_Pos) /*!< FPDSCR: RMode bit Mask */ - -/* Media and FP Feature Register 0 Definitions */ -#define FPU_MVFR0_FP_rounding_modes_Pos 28U /*!< MVFR0: FP rounding modes bits Position */ -#define FPU_MVFR0_FP_rounding_modes_Msk (0xFUL << FPU_MVFR0_FP_rounding_modes_Pos) /*!< MVFR0: FP rounding modes bits Mask */ - -#define FPU_MVFR0_Short_vectors_Pos 24U /*!< MVFR0: Short vectors bits Position */ -#define FPU_MVFR0_Short_vectors_Msk (0xFUL << FPU_MVFR0_Short_vectors_Pos) /*!< MVFR0: Short vectors bits Mask */ - -#define FPU_MVFR0_Square_root_Pos 20U /*!< MVFR0: Square root bits Position */ -#define FPU_MVFR0_Square_root_Msk (0xFUL << FPU_MVFR0_Square_root_Pos) /*!< MVFR0: Square root bits Mask */ - -#define FPU_MVFR0_Divide_Pos 16U /*!< MVFR0: Divide bits Position */ -#define FPU_MVFR0_Divide_Msk (0xFUL << FPU_MVFR0_Divide_Pos) /*!< MVFR0: Divide bits Mask */ - -#define FPU_MVFR0_FP_excep_trapping_Pos 12U /*!< MVFR0: FP exception trapping bits Position */ -#define FPU_MVFR0_FP_excep_trapping_Msk (0xFUL << FPU_MVFR0_FP_excep_trapping_Pos) /*!< MVFR0: FP exception trapping bits Mask */ - -#define FPU_MVFR0_Double_precision_Pos 8U /*!< MVFR0: Double-precision bits Position */ -#define FPU_MVFR0_Double_precision_Msk (0xFUL << FPU_MVFR0_Double_precision_Pos) /*!< MVFR0: Double-precision bits Mask */ - -#define FPU_MVFR0_Single_precision_Pos 4U /*!< MVFR0: Single-precision bits Position */ -#define FPU_MVFR0_Single_precision_Msk (0xFUL << FPU_MVFR0_Single_precision_Pos) /*!< MVFR0: Single-precision bits Mask */ - -#define FPU_MVFR0_A_SIMD_registers_Pos 0U /*!< MVFR0: A_SIMD registers bits Position */ -#define FPU_MVFR0_A_SIMD_registers_Msk (0xFUL /*<< FPU_MVFR0_A_SIMD_registers_Pos*/) /*!< MVFR0: A_SIMD registers bits Mask */ - -/* Media and FP Feature Register 1 Definitions */ -#define FPU_MVFR1_FP_fused_MAC_Pos 28U /*!< MVFR1: FP fused MAC bits Position */ -#define FPU_MVFR1_FP_fused_MAC_Msk (0xFUL << FPU_MVFR1_FP_fused_MAC_Pos) /*!< MVFR1: FP fused MAC bits Mask */ - -#define FPU_MVFR1_FP_HPFP_Pos 24U /*!< MVFR1: FP HPFP bits Position */ -#define FPU_MVFR1_FP_HPFP_Msk (0xFUL << FPU_MVFR1_FP_HPFP_Pos) /*!< MVFR1: FP HPFP bits Mask */ - -#define FPU_MVFR1_D_NaN_mode_Pos 4U /*!< MVFR1: D_NaN mode bits Position */ -#define FPU_MVFR1_D_NaN_mode_Msk (0xFUL << FPU_MVFR1_D_NaN_mode_Pos) /*!< MVFR1: D_NaN mode bits Mask */ - -#define FPU_MVFR1_FtZ_mode_Pos 0U /*!< MVFR1: FtZ mode bits Position */ -#define FPU_MVFR1_FtZ_mode_Msk (0xFUL /*<< FPU_MVFR1_FtZ_mode_Pos*/) /*!< MVFR1: FtZ mode bits Mask */ - -/* Media and FP Feature Register 2 Definitions */ - -#define FPU_MVFR2_VFP_Misc_Pos 4U /*!< MVFR2: VFP Misc bits Position */ -#define FPU_MVFR2_VFP_Misc_Msk (0xFUL << FPU_MVFR2_VFP_Misc_Pos) /*!< MVFR2: VFP Misc bits Mask */ - -/*@} end of group CMSIS_FPU */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) - \brief Type definitions for the Core Debug Registers - @{ - */ - -/** - \brief Structure type to access the Core Debug Register (CoreDebug). - */ -typedef struct -{ - __IOM uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ - __OM uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ - __IOM uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ - __IOM uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ -} CoreDebug_Type; - -/* Debug Halting Control and Status Register Definitions */ -#define CoreDebug_DHCSR_DBGKEY_Pos 16U /*!< CoreDebug DHCSR: DBGKEY Position */ -#define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ - -#define CoreDebug_DHCSR_S_RESET_ST_Pos 25U /*!< CoreDebug DHCSR: S_RESET_ST Position */ -#define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ - -#define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24U /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ -#define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ - -#define CoreDebug_DHCSR_S_LOCKUP_Pos 19U /*!< CoreDebug DHCSR: S_LOCKUP Position */ -#define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ - -#define CoreDebug_DHCSR_S_SLEEP_Pos 18U /*!< CoreDebug DHCSR: S_SLEEP Position */ -#define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ - -#define CoreDebug_DHCSR_S_HALT_Pos 17U /*!< CoreDebug DHCSR: S_HALT Position */ -#define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ - -#define CoreDebug_DHCSR_S_REGRDY_Pos 16U /*!< CoreDebug DHCSR: S_REGRDY Position */ -#define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ - -#define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5U /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ -#define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ - -#define CoreDebug_DHCSR_C_MASKINTS_Pos 3U /*!< CoreDebug DHCSR: C_MASKINTS Position */ -#define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ - -#define CoreDebug_DHCSR_C_STEP_Pos 2U /*!< CoreDebug DHCSR: C_STEP Position */ -#define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ - -#define CoreDebug_DHCSR_C_HALT_Pos 1U /*!< CoreDebug DHCSR: C_HALT Position */ -#define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ - -#define CoreDebug_DHCSR_C_DEBUGEN_Pos 0U /*!< CoreDebug DHCSR: C_DEBUGEN Position */ -#define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL /*<< CoreDebug_DHCSR_C_DEBUGEN_Pos*/) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ - -/* Debug Core Register Selector Register Definitions */ -#define CoreDebug_DCRSR_REGWnR_Pos 16U /*!< CoreDebug DCRSR: REGWnR Position */ -#define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ - -#define CoreDebug_DCRSR_REGSEL_Pos 0U /*!< CoreDebug DCRSR: REGSEL Position */ -#define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL /*<< CoreDebug_DCRSR_REGSEL_Pos*/) /*!< CoreDebug DCRSR: REGSEL Mask */ - -/* Debug Exception and Monitor Control Register Definitions */ -#define CoreDebug_DEMCR_TRCENA_Pos 24U /*!< CoreDebug DEMCR: TRCENA Position */ -#define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ - -#define CoreDebug_DEMCR_MON_REQ_Pos 19U /*!< CoreDebug DEMCR: MON_REQ Position */ -#define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ - -#define CoreDebug_DEMCR_MON_STEP_Pos 18U /*!< CoreDebug DEMCR: MON_STEP Position */ -#define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ - -#define CoreDebug_DEMCR_MON_PEND_Pos 17U /*!< CoreDebug DEMCR: MON_PEND Position */ -#define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ - -#define CoreDebug_DEMCR_MON_EN_Pos 16U /*!< CoreDebug DEMCR: MON_EN Position */ -#define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ - -#define CoreDebug_DEMCR_VC_HARDERR_Pos 10U /*!< CoreDebug DEMCR: VC_HARDERR Position */ -#define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ - -#define CoreDebug_DEMCR_VC_INTERR_Pos 9U /*!< CoreDebug DEMCR: VC_INTERR Position */ -#define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ - -#define CoreDebug_DEMCR_VC_BUSERR_Pos 8U /*!< CoreDebug DEMCR: VC_BUSERR Position */ -#define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ - -#define CoreDebug_DEMCR_VC_STATERR_Pos 7U /*!< CoreDebug DEMCR: VC_STATERR Position */ -#define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ - -#define CoreDebug_DEMCR_VC_CHKERR_Pos 6U /*!< CoreDebug DEMCR: VC_CHKERR Position */ -#define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ - -#define CoreDebug_DEMCR_VC_NOCPERR_Pos 5U /*!< CoreDebug DEMCR: VC_NOCPERR Position */ -#define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ - -#define CoreDebug_DEMCR_VC_MMERR_Pos 4U /*!< CoreDebug DEMCR: VC_MMERR Position */ -#define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ - -#define CoreDebug_DEMCR_VC_CORERESET_Pos 0U /*!< CoreDebug DEMCR: VC_CORERESET Position */ -#define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL /*<< CoreDebug_DEMCR_VC_CORERESET_Pos*/) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ - -/*@} end of group CMSIS_CoreDebug */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_core_bitfield Core register bit field macros - \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). - @{ - */ - -/** - \brief Mask and shift a bit field value for use in a register bit range. - \param[in] field Name of the register bit field. - \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. - \return Masked and shifted value. -*/ -#define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) - -/** - \brief Mask and shift a register value to extract a bit filed value. - \param[in] field Name of the register bit field. - \param[in] value Value of register. This parameter is interpreted as an uint32_t type. - \return Masked and shifted bit field value. -*/ -#define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) - -/*@} end of group CMSIS_core_bitfield */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_core_base Core Definitions - \brief Definitions for base addresses, unions, and structures. - @{ - */ - -/* Memory mapping of Core Hardware */ -#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ -#define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ -#define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ -#define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ -#define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ -#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ -#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ -#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ - -#define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ -#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ -#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ -#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ -#define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ -#define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ -#define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ -#define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE) /*!< Core Debug configuration struct */ - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) - #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ - #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ -#endif - -#define FPU_BASE (SCS_BASE + 0x0F30UL) /*!< Floating Point Unit */ -#define FPU ((FPU_Type *) FPU_BASE ) /*!< Floating Point Unit */ - -/*@} */ - - - -/******************************************************************************* - * Hardware Abstraction Layer - Core Function Interface contains: - - Core NVIC Functions - - Core SysTick Functions - - Core Debug Functions - - Core Register Access Functions - ******************************************************************************/ -/** - \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference -*/ - - - -/* ########################## NVIC functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_NVICFunctions NVIC Functions - \brief Functions that manage interrupts and exceptions via the NVIC. - @{ - */ - -#ifdef CMSIS_NVIC_VIRTUAL - #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE - #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" - #endif - #include CMSIS_NVIC_VIRTUAL_HEADER_FILE -#else - #define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping - #define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping - #define NVIC_EnableIRQ __NVIC_EnableIRQ - #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ - #define NVIC_DisableIRQ __NVIC_DisableIRQ - #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ - #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ - #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ - #define NVIC_GetActive __NVIC_GetActive - #define NVIC_SetPriority __NVIC_SetPriority - #define NVIC_GetPriority __NVIC_GetPriority - #define NVIC_SystemReset __NVIC_SystemReset -#endif /* CMSIS_NVIC_VIRTUAL */ - -#ifdef CMSIS_VECTAB_VIRTUAL - #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE - #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" - #endif - #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE -#else - #define NVIC_SetVector __NVIC_SetVector - #define NVIC_GetVector __NVIC_GetVector -#endif /* (CMSIS_VECTAB_VIRTUAL) */ - -#define NVIC_USER_IRQ_OFFSET 16 - - -/* The following EXC_RETURN values are saved the LR on exception entry */ -#define EXC_RETURN_HANDLER (0xFFFFFFF1UL) /* return to Handler mode, uses MSP after return */ -#define EXC_RETURN_THREAD_MSP (0xFFFFFFF9UL) /* return to Thread mode, uses MSP after return */ -#define EXC_RETURN_THREAD_PSP (0xFFFFFFFDUL) /* return to Thread mode, uses PSP after return */ -#define EXC_RETURN_HANDLER_FPU (0xFFFFFFE1UL) /* return to Handler mode, uses MSP after return, restore floating-point state */ -#define EXC_RETURN_THREAD_MSP_FPU (0xFFFFFFE9UL) /* return to Thread mode, uses MSP after return, restore floating-point state */ -#define EXC_RETURN_THREAD_PSP_FPU (0xFFFFFFEDUL) /* return to Thread mode, uses PSP after return, restore floating-point state */ - - -/** - \brief Set Priority Grouping - \details Sets the priority grouping field using the required unlock sequence. - The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. - Only values from 0..7 are used. - 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) -{ - uint32_t reg_value; - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - - reg_value = SCB->AIRCR; /* read old register configuration */ - reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ - reg_value = (reg_value | - ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ - SCB->AIRCR = reg_value; -} - - -/** - \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) -{ - return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); -} - - -/** - \brief Enable Interrupt - \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) -{ - if ((int32_t)(IRQn) >= 0) - { - __COMPILER_BARRIER(); - NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - __COMPILER_BARRIER(); - } -} - - -/** - \brief Get Interrupt Enable status - \details Returns a device specific interrupt enable status from the NVIC interrupt controller. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt is not enabled. - \return 1 Interrupt is enabled. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Disable Interrupt - \details Disables 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_DisableIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - __DSB(); - __ISB(); - } -} - - -/** - \brief Get Pending Interrupt - \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not pending. - \return 1 Interrupt status is pending. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Pending Interrupt - \details Sets the pending bit of a device specific interrupt in the NVIC pending register. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Clear Pending Interrupt - \details Clears the pending bit of a device specific interrupt in the NVIC pending register. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Active Interrupt - \details Reads the active register in the NVIC and returns the active bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not active. - \return 1 Interrupt status is active. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetActive(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Interrupt Priority - \details Sets the priority of a device specific interrupt or a processor exception. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \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) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - } - else - { - SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - } -} - - -/** - \brief Get Interrupt Priority - \details Reads the priority of a device specific interrupt or a processor exception. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Interrupt Priority. - Value is aligned automatically to the implemented priority bits of the microcontroller. - */ -__STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) -{ - - if ((int32_t)(IRQn) >= 0) - { - return(((uint32_t)NVIC->IP[((uint32_t)IRQn)] >> (8U - __NVIC_PRIO_BITS))); - } - else - { - return(((uint32_t)SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] >> (8U - __NVIC_PRIO_BITS))); - } -} - - -/** - \brief Encode Priority - \details Encodes the priority for an interrupt with the given priority group, - preemptive priority value, and subpriority value. - 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 Used priority group. - \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) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - - return ( - ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) - ); -} - - -/** - \brief Decode Priority - \details Decodes an interrupt priority value with a given priority group to - preemptive priority value and subpriority value. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. - \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). - \param [in] PriorityGroup Used priority group. - \param [out] pPreemptPriority Preemptive priority value (starting from 0). - \param [out] pSubPriority Subpriority value (starting from 0). - */ -__STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - - *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); - *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); -} - - -/** - \brief Set Interrupt Vector - \details Sets an interrupt vector in SRAM based interrupt vector table. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - VTOR must been relocated to SRAM before. - \param [in] IRQn Interrupt number - \param [in] vector Address of interrupt handler function - */ -__STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) -{ - uint32_t vectors = (uint32_t )SCB->VTOR; - (* (int *) (vectors + ((int32_t)IRQn + NVIC_USER_IRQ_OFFSET) * 4)) = vector; - __DSB(); -} - - -/** - \brief Get Interrupt Vector - \details Reads an interrupt vector from interrupt vector table. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Address of interrupt handler function - */ -__STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) -{ - uint32_t vectors = (uint32_t )SCB->VTOR; - return (uint32_t)(* (int *) (vectors + ((int32_t)IRQn + NVIC_USER_IRQ_OFFSET) * 4)); -} - - -/** - \brief System Reset - \details Initiates a system reset request to reset the MCU. - */ -__NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) -{ - __DSB(); /* Ensure all outstanding memory accesses included - buffered write are completed before reset */ - SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | - SCB_AIRCR_SYSRESETREQ_Msk ); /* Keep priority group unchanged */ - __DSB(); /* Ensure completion of memory access */ - - for(;;) /* wait until reset */ - { - __NOP(); - } -} - -/*@} end of CMSIS_Core_NVICFunctions */ - - -/* ########################## MPU functions #################################### */ - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) - -#include "mpu_armv7.h" - -#endif - - -/* ########################## FPU functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_FpuFunctions FPU Functions - \brief Function that provides FPU type. - @{ - */ - -/** - \brief get FPU type - \details returns the FPU type - \returns - - \b 0: No FPU - - \b 1: Single precision FPU - - \b 2: Double + Single precision FPU - */ -__STATIC_INLINE uint32_t SCB_GetFPUType(void) -{ - uint32_t mvfr0; - - mvfr0 = SCB->MVFR0; - if ((mvfr0 & (FPU_MVFR0_Single_precision_Msk | FPU_MVFR0_Double_precision_Msk)) == 0x220U) - { - return 2U; /* Double + Single precision FPU */ - } - else if ((mvfr0 & (FPU_MVFR0_Single_precision_Msk | FPU_MVFR0_Double_precision_Msk)) == 0x020U) - { - return 1U; /* Single precision FPU */ - } - else - { - return 0U; /* No FPU */ - } -} - -/*@} end of CMSIS_Core_FpuFunctions */ - - - -/* ########################## Cache functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_CacheFunctions Cache Functions - \brief Functions that configure Instruction and Data cache. - @{ - */ - -/* Cache Size ID Register Macros */ -#define CCSIDR_WAYS(x) (((x) & SCB_CCSIDR_ASSOCIATIVITY_Msk) >> SCB_CCSIDR_ASSOCIATIVITY_Pos) -#define CCSIDR_SETS(x) (((x) & SCB_CCSIDR_NUMSETS_Msk ) >> SCB_CCSIDR_NUMSETS_Pos ) - -#define __SCB_DCACHE_LINE_SIZE 32U /*!< Cortex-M7 cache line size is fixed to 32 bytes (8 words). See also register SCB_CCSIDR */ -#define __SCB_ICACHE_LINE_SIZE 32U /*!< Cortex-M7 cache line size is fixed to 32 bytes (8 words). See also register SCB_CCSIDR */ - -/** - \brief Enable I-Cache - \details Turns on I-Cache - */ -__STATIC_FORCEINLINE void SCB_EnableICache (void) -{ - #if defined (__ICACHE_PRESENT) && (__ICACHE_PRESENT == 1U) - if (SCB->CCR & SCB_CCR_IC_Msk) return; /* return if ICache is already enabled */ - - __DSB(); - __ISB(); - SCB->ICIALLU = 0UL; /* invalidate I-Cache */ - __DSB(); - __ISB(); - SCB->CCR |= (uint32_t)SCB_CCR_IC_Msk; /* enable I-Cache */ - __DSB(); - __ISB(); - #endif -} - - -/** - \brief Disable I-Cache - \details Turns off I-Cache - */ -__STATIC_FORCEINLINE void SCB_DisableICache (void) -{ - #if defined (__ICACHE_PRESENT) && (__ICACHE_PRESENT == 1U) - __DSB(); - __ISB(); - SCB->CCR &= ~(uint32_t)SCB_CCR_IC_Msk; /* disable I-Cache */ - SCB->ICIALLU = 0UL; /* invalidate I-Cache */ - __DSB(); - __ISB(); - #endif -} - - -/** - \brief Invalidate I-Cache - \details Invalidates I-Cache - */ -__STATIC_FORCEINLINE void SCB_InvalidateICache (void) -{ - #if defined (__ICACHE_PRESENT) && (__ICACHE_PRESENT == 1U) - __DSB(); - __ISB(); - SCB->ICIALLU = 0UL; - __DSB(); - __ISB(); - #endif -} - - -/** - \brief I-Cache Invalidate by address - \details Invalidates I-Cache for the given address. - I-Cache is invalidated starting from a 32 byte aligned address in 32 byte granularity. - I-Cache memory blocks which are part of given address + given size are invalidated. - \param[in] addr address - \param[in] isize size of memory block (in number of bytes) -*/ -__STATIC_FORCEINLINE void SCB_InvalidateICache_by_Addr (void *addr, int32_t isize) -{ - #if defined (__ICACHE_PRESENT) && (__ICACHE_PRESENT == 1U) - if ( isize > 0 ) { - int32_t op_size = isize + (((uint32_t)addr) & (__SCB_ICACHE_LINE_SIZE - 1U)); - uint32_t op_addr = (uint32_t)addr /* & ~(__SCB_ICACHE_LINE_SIZE - 1U) */; - - __DSB(); - - do { - SCB->ICIMVAU = op_addr; /* register accepts only 32byte aligned values, only bits 31..5 are valid */ - op_addr += __SCB_ICACHE_LINE_SIZE; - op_size -= __SCB_ICACHE_LINE_SIZE; - } while ( op_size > 0 ); - - __DSB(); - __ISB(); - } - #endif -} - - -/** - \brief Enable D-Cache - \details Turns on D-Cache - */ -__STATIC_FORCEINLINE void SCB_EnableDCache (void) -{ - #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U) - uint32_t ccsidr; - uint32_t sets; - uint32_t ways; - - if (SCB->CCR & SCB_CCR_DC_Msk) return; /* return if DCache is already enabled */ - - SCB->CSSELR = 0U; /* select Level 1 data cache */ - __DSB(); - - ccsidr = SCB->CCSIDR; - - /* invalidate D-Cache */ - sets = (uint32_t)(CCSIDR_SETS(ccsidr)); - do { - ways = (uint32_t)(CCSIDR_WAYS(ccsidr)); - do { - SCB->DCISW = (((sets << SCB_DCISW_SET_Pos) & SCB_DCISW_SET_Msk) | - ((ways << SCB_DCISW_WAY_Pos) & SCB_DCISW_WAY_Msk) ); - #if defined ( __CC_ARM ) - __schedule_barrier(); - #endif - } while (ways-- != 0U); - } while(sets-- != 0U); - __DSB(); - - SCB->CCR |= (uint32_t)SCB_CCR_DC_Msk; /* enable D-Cache */ - - __DSB(); - __ISB(); - #endif -} - - -/** - \brief Disable D-Cache - \details Turns off D-Cache - */ -__STATIC_FORCEINLINE void SCB_DisableDCache (void) -{ - #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U) - uint32_t ccsidr; - uint32_t sets; - uint32_t ways; - - SCB->CSSELR = 0U; /* select Level 1 data cache */ - __DSB(); - - SCB->CCR &= ~(uint32_t)SCB_CCR_DC_Msk; /* disable D-Cache */ - __DSB(); - - ccsidr = SCB->CCSIDR; - - /* clean & invalidate D-Cache */ - sets = (uint32_t)(CCSIDR_SETS(ccsidr)); - do { - ways = (uint32_t)(CCSIDR_WAYS(ccsidr)); - do { - SCB->DCCISW = (((sets << SCB_DCCISW_SET_Pos) & SCB_DCCISW_SET_Msk) | - ((ways << SCB_DCCISW_WAY_Pos) & SCB_DCCISW_WAY_Msk) ); - #if defined ( __CC_ARM ) - __schedule_barrier(); - #endif - } while (ways-- != 0U); - } while(sets-- != 0U); - - __DSB(); - __ISB(); - #endif -} - - -/** - \brief Invalidate D-Cache - \details Invalidates D-Cache - */ -__STATIC_FORCEINLINE void SCB_InvalidateDCache (void) -{ - #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U) - uint32_t ccsidr; - uint32_t sets; - uint32_t ways; - - SCB->CSSELR = 0U; /* select Level 1 data cache */ - __DSB(); - - ccsidr = SCB->CCSIDR; - - /* invalidate D-Cache */ - sets = (uint32_t)(CCSIDR_SETS(ccsidr)); - do { - ways = (uint32_t)(CCSIDR_WAYS(ccsidr)); - do { - SCB->DCISW = (((sets << SCB_DCISW_SET_Pos) & SCB_DCISW_SET_Msk) | - ((ways << SCB_DCISW_WAY_Pos) & SCB_DCISW_WAY_Msk) ); - #if defined ( __CC_ARM ) - __schedule_barrier(); - #endif - } while (ways-- != 0U); - } while(sets-- != 0U); - - __DSB(); - __ISB(); - #endif -} - - -/** - \brief Clean D-Cache - \details Cleans D-Cache - */ -__STATIC_FORCEINLINE void SCB_CleanDCache (void) -{ - #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U) - uint32_t ccsidr; - uint32_t sets; - uint32_t ways; - - SCB->CSSELR = 0U; /* select Level 1 data cache */ - __DSB(); - - ccsidr = SCB->CCSIDR; - - /* clean D-Cache */ - sets = (uint32_t)(CCSIDR_SETS(ccsidr)); - do { - ways = (uint32_t)(CCSIDR_WAYS(ccsidr)); - do { - SCB->DCCSW = (((sets << SCB_DCCSW_SET_Pos) & SCB_DCCSW_SET_Msk) | - ((ways << SCB_DCCSW_WAY_Pos) & SCB_DCCSW_WAY_Msk) ); - #if defined ( __CC_ARM ) - __schedule_barrier(); - #endif - } while (ways-- != 0U); - } while(sets-- != 0U); - - __DSB(); - __ISB(); - #endif -} - - -/** - \brief Clean & Invalidate D-Cache - \details Cleans and Invalidates D-Cache - */ -__STATIC_FORCEINLINE void SCB_CleanInvalidateDCache (void) -{ - #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U) - uint32_t ccsidr; - uint32_t sets; - uint32_t ways; - - SCB->CSSELR = 0U; /* select Level 1 data cache */ - __DSB(); - - ccsidr = SCB->CCSIDR; - - /* clean & invalidate D-Cache */ - sets = (uint32_t)(CCSIDR_SETS(ccsidr)); - do { - ways = (uint32_t)(CCSIDR_WAYS(ccsidr)); - do { - SCB->DCCISW = (((sets << SCB_DCCISW_SET_Pos) & SCB_DCCISW_SET_Msk) | - ((ways << SCB_DCCISW_WAY_Pos) & SCB_DCCISW_WAY_Msk) ); - #if defined ( __CC_ARM ) - __schedule_barrier(); - #endif - } while (ways-- != 0U); - } while(sets-- != 0U); - - __DSB(); - __ISB(); - #endif -} - - -/** - \brief D-Cache Invalidate by address - \details Invalidates D-Cache for the given address. - D-Cache is invalidated starting from a 32 byte aligned address in 32 byte granularity. - D-Cache memory blocks which are part of given address + given size are invalidated. - \param[in] addr address - \param[in] dsize size of memory block (in number of bytes) -*/ -__STATIC_FORCEINLINE void SCB_InvalidateDCache_by_Addr (void *addr, int32_t dsize) -{ - #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U) - if ( dsize > 0 ) { - int32_t op_size = dsize + (((uint32_t)addr) & (__SCB_DCACHE_LINE_SIZE - 1U)); - uint32_t op_addr = (uint32_t)addr /* & ~(__SCB_DCACHE_LINE_SIZE - 1U) */; - - __DSB(); - - do { - SCB->DCIMVAC = op_addr; /* register accepts only 32byte aligned values, only bits 31..5 are valid */ - op_addr += __SCB_DCACHE_LINE_SIZE; - op_size -= __SCB_DCACHE_LINE_SIZE; - } while ( op_size > 0 ); - - __DSB(); - __ISB(); - } - #endif -} - - -/** - \brief D-Cache Clean by address - \details Cleans D-Cache for the given address - D-Cache is cleaned starting from a 32 byte aligned address in 32 byte granularity. - D-Cache memory blocks which are part of given address + given size are cleaned. - \param[in] addr address - \param[in] dsize size of memory block (in number of bytes) -*/ -__STATIC_FORCEINLINE void SCB_CleanDCache_by_Addr (uint32_t *addr, int32_t dsize) -{ - #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U) - if ( dsize > 0 ) { - int32_t op_size = dsize + (((uint32_t)addr) & (__SCB_DCACHE_LINE_SIZE - 1U)); - uint32_t op_addr = (uint32_t)addr /* & ~(__SCB_DCACHE_LINE_SIZE - 1U) */; - - __DSB(); - - do { - SCB->DCCMVAC = op_addr; /* register accepts only 32byte aligned values, only bits 31..5 are valid */ - op_addr += __SCB_DCACHE_LINE_SIZE; - op_size -= __SCB_DCACHE_LINE_SIZE; - } while ( op_size > 0 ); - - __DSB(); - __ISB(); - } - #endif -} - - -/** - \brief D-Cache Clean and Invalidate by address - \details Cleans and invalidates D_Cache for the given address - D-Cache is cleaned and invalidated starting from a 32 byte aligned address in 32 byte granularity. - D-Cache memory blocks which are part of given address + given size are cleaned and invalidated. - \param[in] addr address (aligned to 32-byte boundary) - \param[in] dsize size of memory block (in number of bytes) -*/ -__STATIC_FORCEINLINE void SCB_CleanInvalidateDCache_by_Addr (uint32_t *addr, int32_t dsize) -{ - #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U) - if ( dsize > 0 ) { - int32_t op_size = dsize + (((uint32_t)addr) & (__SCB_DCACHE_LINE_SIZE - 1U)); - uint32_t op_addr = (uint32_t)addr /* & ~(__SCB_DCACHE_LINE_SIZE - 1U) */; - - __DSB(); - - do { - SCB->DCCIMVAC = op_addr; /* register accepts only 32byte aligned values, only bits 31..5 are valid */ - op_addr += __SCB_DCACHE_LINE_SIZE; - op_size -= __SCB_DCACHE_LINE_SIZE; - } while ( op_size > 0 ); - - __DSB(); - __ISB(); - } - #endif -} - -/*@} end of CMSIS_Core_CacheFunctions */ - - - -/* ################################## SysTick function ############################################ */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SysTickFunctions SysTick Functions - \brief Functions that configure the System. - @{ - */ - -#if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) - -/** - \brief System Tick Configuration - \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. - Counter is in free running mode to generate periodic interrupts. - \param [in] ticks Number of ticks between two interrupts. - \return 0 Function succeeded. - \return 1 Function failed. - \note When the variable __Vendor_SysTickConfig is set to 1, then the - function SysTick_Config is not included. In this case, the file device.h - must contain a vendor-specific implementation of this function. - */ -__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) -{ - if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - { - return (1UL); /* Reload value impossible */ - } - - SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ - SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0UL); /* Function successful */ -} - -#endif - -/*@} end of CMSIS_Core_SysTickFunctions */ - - - -/* ##################################### Debug In/Output function ########################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_core_DebugFunctions ITM Functions - \brief Functions that access the ITM debug interface. - @{ - */ - -extern volatile int32_t ITM_RxBuffer; /*!< External variable to receive characters. */ -#define ITM_RXBUFFER_EMPTY ((int32_t)0x5AA55AA5U) /*!< Value identifying \ref ITM_RxBuffer is ready for next character. */ - - -/** - \brief ITM Send Character - \details Transmits a character via the ITM channel 0, and - \li Just returns when no debugger is connected that has booked the output. - \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted. - \param [in] ch Character to transmit. - \returns Character to transmit. - */ -__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch) -{ - if (((ITM->TCR & ITM_TCR_ITMENA_Msk) != 0UL) && /* ITM enabled */ - ((ITM->TER & 1UL ) != 0UL) ) /* ITM Port #0 enabled */ - { - while (ITM->PORT[0U].u32 == 0UL) - { - __NOP(); - } - ITM->PORT[0U].u8 = (uint8_t)ch; - } - return (ch); -} - - -/** - \brief ITM Receive Character - \details Inputs a character via the external variable \ref ITM_RxBuffer. - \return Received character. - \return -1 No character pending. - */ -__STATIC_INLINE int32_t ITM_ReceiveChar (void) -{ - int32_t ch = -1; /* no character available */ - - if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) - { - ch = ITM_RxBuffer; - ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ - } - - return (ch); -} - - -/** - \brief ITM Check Character - \details Checks whether a character is pending for reading in the variable \ref ITM_RxBuffer. - \return 0 No character available. - \return 1 Character available. - */ -__STATIC_INLINE int32_t ITM_CheckChar (void) -{ - - if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) - { - return (0); /* no character available */ - } - else - { - return (1); /* character available */ - } -} - -/*@} end of CMSIS_core_DebugFunctions */ - - - - -#ifdef __cplusplus -} -#endif - -#endif /* __CORE_CM7_H_DEPENDANT */ - -#endif /* __CMSIS_GENERIC */ diff --git a/Drivers/CMSIS/Include/core_sc000.h b/Drivers/CMSIS/Include/core_sc000.h deleted file mode 100644 index cf92577..0000000 --- a/Drivers/CMSIS/Include/core_sc000.h +++ /dev/null @@ -1,1025 +0,0 @@ -/**************************************************************************//** - * @file core_sc000.h - * @brief CMSIS SC000 Core Peripheral Access Layer Header File - * @version V5.0.6 - * @date 12. November 2018 - ******************************************************************************/ -/* - * Copyright (c) 2009-2018 Arm Limited. All rights reserved. - * - * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the License); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#if defined ( __ICCARM__ ) - #pragma system_include /* treat file as system include file for MISRA check */ -#elif defined (__clang__) - #pragma clang system_header /* treat file as system include file */ -#endif - -#ifndef __CORE_SC000_H_GENERIC -#define __CORE_SC000_H_GENERIC - -#include - -#ifdef __cplusplus - extern "C" { -#endif - -/** - \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions - CMSIS violates the following MISRA-C:2004 rules: - - \li Required Rule 8.5, object/function definition in header file.
- Function definitions in header files are used to allow 'inlining'. - - \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
- Unions are used for effective representation of core registers. - - \li Advisory Rule 19.7, Function-like macro defined.
- Function-like macros are used to allow more efficient code. - */ - - -/******************************************************************************* - * CMSIS definitions - ******************************************************************************/ -/** - \ingroup SC000 - @{ - */ - -#include "cmsis_version.h" - -/* CMSIS SC000 definitions */ -#define __SC000_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ -#define __SC000_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ -#define __SC000_CMSIS_VERSION ((__SC000_CMSIS_VERSION_MAIN << 16U) | \ - __SC000_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ - -#define __CORTEX_SC (000U) /*!< Cortex secure core */ - -/** __FPU_USED indicates whether an FPU is used or not. - This core does not support an FPU at all -*/ -#define __FPU_USED 0U - -#if defined ( __CC_ARM ) - #if defined __TARGET_FPU_VFP - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) - #if defined __ARM_FP - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __GNUC__ ) - #if defined (__VFP_FP__) && !defined(__SOFTFP__) - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __ICCARM__ ) - #if defined __ARMVFP__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __TI_ARM__ ) - #if defined __TI_VFP_SUPPORT__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __TASKING__ ) - #if defined __FPU_VFP__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __CSMC__ ) - #if ( __CSMC__ & 0x400U) - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#endif - -#include "cmsis_compiler.h" /* CMSIS compiler specific defines */ - - -#ifdef __cplusplus -} -#endif - -#endif /* __CORE_SC000_H_GENERIC */ - -#ifndef __CMSIS_GENERIC - -#ifndef __CORE_SC000_H_DEPENDANT -#define __CORE_SC000_H_DEPENDANT - -#ifdef __cplusplus - extern "C" { -#endif - -/* check device defines and use defaults */ -#if defined __CHECK_DEVICE_DEFINES - #ifndef __SC000_REV - #define __SC000_REV 0x0000U - #warning "__SC000_REV not defined in device header file; using default!" - #endif - - #ifndef __MPU_PRESENT - #define __MPU_PRESENT 0U - #warning "__MPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __NVIC_PRIO_BITS - #define __NVIC_PRIO_BITS 2U - #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" - #endif - - #ifndef __Vendor_SysTickConfig - #define __Vendor_SysTickConfig 0U - #warning "__Vendor_SysTickConfig not defined in device header file; using default!" - #endif -#endif - -/* IO definitions (access restrictions to peripheral registers) */ -/** - \defgroup CMSIS_glob_defs CMSIS Global Defines - - IO Type Qualifiers are used - \li to specify the access to peripheral variables. - \li for automatic generation of peripheral register debug information. -*/ -#ifdef __cplusplus - #define __I volatile /*!< Defines 'read only' permissions */ -#else - #define __I volatile const /*!< Defines 'read only' permissions */ -#endif -#define __O volatile /*!< Defines 'write only' permissions */ -#define __IO volatile /*!< Defines 'read / write' permissions */ - -/* following defines should be used for structure members */ -#define __IM volatile const /*! Defines 'read only' structure member permissions */ -#define __OM volatile /*! Defines 'write only' structure member permissions */ -#define __IOM volatile /*! Defines 'read / write' structure member permissions */ - -/*@} end of group SC000 */ - - - -/******************************************************************************* - * Register Abstraction - Core Register contain: - - Core Register - - Core NVIC Register - - Core SCB Register - - Core SysTick Register - - Core MPU Register - ******************************************************************************/ -/** - \defgroup CMSIS_core_register Defines and Type Definitions - \brief Type definitions and defines for Cortex-M processor based devices. -*/ - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_CORE Status and Control Registers - \brief Core Register type definitions. - @{ - */ - -/** - \brief Union type to access the Application Program Status Register (APSR). - */ -typedef union -{ - struct - { - uint32_t _reserved0:28; /*!< bit: 0..27 Reserved */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} APSR_Type; - -/* APSR Register Definitions */ -#define APSR_N_Pos 31U /*!< APSR: N Position */ -#define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ - -#define APSR_Z_Pos 30U /*!< APSR: Z Position */ -#define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ - -#define APSR_C_Pos 29U /*!< APSR: C Position */ -#define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ - -#define APSR_V_Pos 28U /*!< APSR: V Position */ -#define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ - - -/** - \brief Union type to access the Interrupt Program Status Register (IPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} IPSR_Type; - -/* IPSR Register Definitions */ -#define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ -#define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ - - -/** - \brief Union type to access the Special-Purpose Program Status Registers (xPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ - uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ - uint32_t _reserved1:3; /*!< bit: 25..27 Reserved */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} xPSR_Type; - -/* xPSR Register Definitions */ -#define xPSR_N_Pos 31U /*!< xPSR: N Position */ -#define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ - -#define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ -#define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ - -#define xPSR_C_Pos 29U /*!< xPSR: C Position */ -#define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ - -#define xPSR_V_Pos 28U /*!< xPSR: V Position */ -#define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ - -#define xPSR_T_Pos 24U /*!< xPSR: T Position */ -#define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ - -#define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ -#define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ - - -/** - \brief Union type to access the Control Registers (CONTROL). - */ -typedef union -{ - struct - { - uint32_t _reserved0:1; /*!< bit: 0 Reserved */ - uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ - uint32_t _reserved1:30; /*!< bit: 2..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} CONTROL_Type; - -/* CONTROL Register Definitions */ -#define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ -#define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ - -/*@} end of group CMSIS_CORE */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) - \brief Type definitions for the NVIC Registers - @{ - */ - -/** - \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). - */ -typedef struct -{ - __IOM uint32_t ISER[1U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ - uint32_t RESERVED0[31U]; - __IOM uint32_t ICER[1U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ - uint32_t RSERVED1[31U]; - __IOM uint32_t ISPR[1U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ - uint32_t RESERVED2[31U]; - __IOM uint32_t ICPR[1U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ - uint32_t RESERVED3[31U]; - uint32_t RESERVED4[64U]; - __IOM uint32_t IP[8U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register */ -} NVIC_Type; - -/*@} end of group CMSIS_NVIC */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SCB System Control Block (SCB) - \brief Type definitions for the System Control Block Registers - @{ - */ - -/** - \brief Structure type to access the System Control Block (SCB). - */ -typedef struct -{ - __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ - __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ - __IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ - __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ - __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ - __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ - uint32_t RESERVED0[1U]; - __IOM uint32_t SHP[2U]; /*!< Offset: 0x01C (R/W) System Handlers Priority Registers. [0] is RESERVED */ - __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ - uint32_t RESERVED1[154U]; - __IOM uint32_t SFCR; /*!< Offset: 0x290 (R/W) Security Features Control Register */ -} SCB_Type; - -/* SCB CPUID Register Definitions */ -#define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ -#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ - -#define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ -#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ - -#define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ -#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ - -#define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ -#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ - -#define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ -#define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ - -/* SCB Interrupt Control State Register Definitions */ -#define SCB_ICSR_NMIPENDSET_Pos 31U /*!< SCB ICSR: NMIPENDSET Position */ -#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ - -#define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ -#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ - -#define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ -#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ - -#define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ -#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ - -#define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ -#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ - -#define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ -#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ - -#define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ -#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ - -#define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ -#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ - -#define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ -#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ - -/* SCB Interrupt Control State Register Definitions */ -#define SCB_VTOR_TBLOFF_Pos 7U /*!< SCB VTOR: TBLOFF Position */ -#define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ - -/* SCB Application Interrupt and Reset Control Register Definitions */ -#define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ -#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ - -#define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ -#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ - -#define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ -#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ - -#define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ -#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ - -#define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ -#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ - -/* SCB System Control Register Definitions */ -#define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ -#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ - -#define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ -#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ - -#define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ -#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ - -/* SCB Configuration Control Register Definitions */ -#define SCB_CCR_STKALIGN_Pos 9U /*!< SCB CCR: STKALIGN Position */ -#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ - -#define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ -#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ - -/* SCB System Handler Control and State Register Definitions */ -#define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ -#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ - -/*@} end of group CMSIS_SCB */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) - \brief Type definitions for the System Control and ID Register not in the SCB - @{ - */ - -/** - \brief Structure type to access the System Control and ID Register not in the SCB. - */ -typedef struct -{ - uint32_t RESERVED0[2U]; - __IOM uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ -} SCnSCB_Type; - -/* Auxiliary Control Register Definitions */ -#define SCnSCB_ACTLR_DISMCYCINT_Pos 0U /*!< ACTLR: DISMCYCINT Position */ -#define SCnSCB_ACTLR_DISMCYCINT_Msk (1UL /*<< SCnSCB_ACTLR_DISMCYCINT_Pos*/) /*!< ACTLR: DISMCYCINT Mask */ - -/*@} end of group CMSIS_SCnotSCB */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SysTick System Tick Timer (SysTick) - \brief Type definitions for the System Timer Registers. - @{ - */ - -/** - \brief Structure type to access the System Timer (SysTick). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ - __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ - __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ - __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ -} SysTick_Type; - -/* SysTick Control / Status Register Definitions */ -#define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ -#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ - -#define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ -#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ - -#define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ -#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ - -#define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ -#define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ - -/* SysTick Reload Register Definitions */ -#define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ -#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ - -/* SysTick Current Register Definitions */ -#define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ -#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ - -/* SysTick Calibration Register Definitions */ -#define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ -#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ - -#define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ -#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ - -#define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ -#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ - -/*@} end of group CMSIS_SysTick */ - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_MPU Memory Protection Unit (MPU) - \brief Type definitions for the Memory Protection Unit (MPU) - @{ - */ - -/** - \brief Structure type to access the Memory Protection Unit (MPU). - */ -typedef struct -{ - __IM uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ - __IOM uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ - __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ - __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ - __IOM uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ -} MPU_Type; - -/* MPU Type Register Definitions */ -#define MPU_TYPE_IREGION_Pos 16U /*!< MPU TYPE: IREGION Position */ -#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ - -#define MPU_TYPE_DREGION_Pos 8U /*!< MPU TYPE: DREGION Position */ -#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ - -#define MPU_TYPE_SEPARATE_Pos 0U /*!< MPU TYPE: SEPARATE Position */ -#define MPU_TYPE_SEPARATE_Msk (1UL /*<< MPU_TYPE_SEPARATE_Pos*/) /*!< MPU TYPE: SEPARATE Mask */ - -/* MPU Control Register Definitions */ -#define MPU_CTRL_PRIVDEFENA_Pos 2U /*!< MPU CTRL: PRIVDEFENA Position */ -#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ - -#define MPU_CTRL_HFNMIENA_Pos 1U /*!< MPU CTRL: HFNMIENA Position */ -#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ - -#define MPU_CTRL_ENABLE_Pos 0U /*!< MPU CTRL: ENABLE Position */ -#define MPU_CTRL_ENABLE_Msk (1UL /*<< MPU_CTRL_ENABLE_Pos*/) /*!< MPU CTRL: ENABLE Mask */ - -/* MPU Region Number Register Definitions */ -#define MPU_RNR_REGION_Pos 0U /*!< MPU RNR: REGION Position */ -#define MPU_RNR_REGION_Msk (0xFFUL /*<< MPU_RNR_REGION_Pos*/) /*!< MPU RNR: REGION Mask */ - -/* MPU Region Base Address Register Definitions */ -#define MPU_RBAR_ADDR_Pos 8U /*!< MPU RBAR: ADDR Position */ -#define MPU_RBAR_ADDR_Msk (0xFFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ - -#define MPU_RBAR_VALID_Pos 4U /*!< MPU RBAR: VALID Position */ -#define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ - -#define MPU_RBAR_REGION_Pos 0U /*!< MPU RBAR: REGION Position */ -#define MPU_RBAR_REGION_Msk (0xFUL /*<< MPU_RBAR_REGION_Pos*/) /*!< MPU RBAR: REGION Mask */ - -/* MPU Region Attribute and Size Register Definitions */ -#define MPU_RASR_ATTRS_Pos 16U /*!< MPU RASR: MPU Region Attribute field Position */ -#define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ - -#define MPU_RASR_XN_Pos 28U /*!< MPU RASR: ATTRS.XN Position */ -#define MPU_RASR_XN_Msk (1UL << MPU_RASR_XN_Pos) /*!< MPU RASR: ATTRS.XN Mask */ - -#define MPU_RASR_AP_Pos 24U /*!< MPU RASR: ATTRS.AP Position */ -#define MPU_RASR_AP_Msk (0x7UL << MPU_RASR_AP_Pos) /*!< MPU RASR: ATTRS.AP Mask */ - -#define MPU_RASR_TEX_Pos 19U /*!< MPU RASR: ATTRS.TEX Position */ -#define MPU_RASR_TEX_Msk (0x7UL << MPU_RASR_TEX_Pos) /*!< MPU RASR: ATTRS.TEX Mask */ - -#define MPU_RASR_S_Pos 18U /*!< MPU RASR: ATTRS.S Position */ -#define MPU_RASR_S_Msk (1UL << MPU_RASR_S_Pos) /*!< MPU RASR: ATTRS.S Mask */ - -#define MPU_RASR_C_Pos 17U /*!< MPU RASR: ATTRS.C Position */ -#define MPU_RASR_C_Msk (1UL << MPU_RASR_C_Pos) /*!< MPU RASR: ATTRS.C Mask */ - -#define MPU_RASR_B_Pos 16U /*!< MPU RASR: ATTRS.B Position */ -#define MPU_RASR_B_Msk (1UL << MPU_RASR_B_Pos) /*!< MPU RASR: ATTRS.B Mask */ - -#define MPU_RASR_SRD_Pos 8U /*!< MPU RASR: Sub-Region Disable Position */ -#define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ - -#define MPU_RASR_SIZE_Pos 1U /*!< MPU RASR: Region Size Field Position */ -#define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ - -#define MPU_RASR_ENABLE_Pos 0U /*!< MPU RASR: Region enable bit Position */ -#define MPU_RASR_ENABLE_Msk (1UL /*<< MPU_RASR_ENABLE_Pos*/) /*!< MPU RASR: Region enable bit Disable Mask */ - -/*@} end of group CMSIS_MPU */ -#endif - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) - \brief SC000 Core Debug Registers (DCB registers, SHCSR, and DFSR) are only accessible over DAP and not via processor. - Therefore they are not covered by the SC000 header file. - @{ - */ -/*@} end of group CMSIS_CoreDebug */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_core_bitfield Core register bit field macros - \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). - @{ - */ - -/** - \brief Mask and shift a bit field value for use in a register bit range. - \param[in] field Name of the register bit field. - \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. - \return Masked and shifted value. -*/ -#define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) - -/** - \brief Mask and shift a register value to extract a bit filed value. - \param[in] field Name of the register bit field. - \param[in] value Value of register. This parameter is interpreted as an uint32_t type. - \return Masked and shifted bit field value. -*/ -#define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) - -/*@} end of group CMSIS_core_bitfield */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_core_base Core Definitions - \brief Definitions for base addresses, unions, and structures. - @{ - */ - -/* Memory mapping of Core Hardware */ -#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ -#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ -#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ -#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ - -#define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ -#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ -#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ -#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) - #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ - #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ -#endif - -/*@} */ - - - -/******************************************************************************* - * Hardware Abstraction Layer - Core Function Interface contains: - - Core NVIC Functions - - Core SysTick Functions - - Core Register Access Functions - ******************************************************************************/ -/** - \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference -*/ - - - -/* ########################## NVIC functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_NVICFunctions NVIC Functions - \brief Functions that manage interrupts and exceptions via the NVIC. - @{ - */ - -#ifdef CMSIS_NVIC_VIRTUAL - #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE - #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" - #endif - #include CMSIS_NVIC_VIRTUAL_HEADER_FILE -#else -/*#define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping not available for SC000 */ -/*#define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping not available for SC000 */ - #define NVIC_EnableIRQ __NVIC_EnableIRQ - #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ - #define NVIC_DisableIRQ __NVIC_DisableIRQ - #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ - #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ - #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ -/*#define NVIC_GetActive __NVIC_GetActive not available for SC000 */ - #define NVIC_SetPriority __NVIC_SetPriority - #define NVIC_GetPriority __NVIC_GetPriority - #define NVIC_SystemReset __NVIC_SystemReset -#endif /* CMSIS_NVIC_VIRTUAL */ - -#ifdef CMSIS_VECTAB_VIRTUAL - #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE - #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" - #endif - #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE -#else - #define NVIC_SetVector __NVIC_SetVector - #define NVIC_GetVector __NVIC_GetVector -#endif /* (CMSIS_VECTAB_VIRTUAL) */ - -#define NVIC_USER_IRQ_OFFSET 16 - - -/* The following EXC_RETURN values are saved the LR on exception entry */ -#define EXC_RETURN_HANDLER (0xFFFFFFF1UL) /* return to Handler mode, uses MSP after return */ -#define EXC_RETURN_THREAD_MSP (0xFFFFFFF9UL) /* return to Thread mode, uses MSP after return */ -#define EXC_RETURN_THREAD_PSP (0xFFFFFFFDUL) /* return to Thread mode, uses PSP after return */ - - -/* Interrupt Priorities are WORD accessible only under Armv6-M */ -/* The following MACROS handle generation of the register offset and byte masks */ -#define _BIT_SHIFT(IRQn) ( ((((uint32_t)(int32_t)(IRQn)) ) & 0x03UL) * 8UL) -#define _SHP_IDX(IRQn) ( (((((uint32_t)(int32_t)(IRQn)) & 0x0FUL)-8UL) >> 2UL) ) -#define _IP_IDX(IRQn) ( (((uint32_t)(int32_t)(IRQn)) >> 2UL) ) - - -/** - \brief Enable Interrupt - \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) -{ - if ((int32_t)(IRQn) >= 0) - { - __COMPILER_BARRIER(); - NVIC->ISER[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - __COMPILER_BARRIER(); - } -} - - -/** - \brief Get Interrupt Enable status - \details Returns a device specific interrupt enable status from the NVIC interrupt controller. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt is not enabled. - \return 1 Interrupt is enabled. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ISER[0U] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Disable Interrupt - \details Disables 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_DisableIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ICER[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - __DSB(); - __ISB(); - } -} - - -/** - \brief Get Pending Interrupt - \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not pending. - \return 1 Interrupt status is pending. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ISPR[0U] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Pending Interrupt - \details Sets the pending bit of a device specific interrupt in the NVIC pending register. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ISPR[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Clear Pending Interrupt - \details Clears the pending bit of a device specific interrupt in the NVIC pending register. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ICPR[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Set Interrupt Priority - \details Sets the priority of a device specific interrupt or a processor exception. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \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) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->IP[_IP_IDX(IRQn)] = ((uint32_t)(NVIC->IP[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | - (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - } - else - { - SCB->SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | - (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - } -} - - -/** - \brief Get Interrupt Priority - \details Reads the priority of a device specific interrupt or a processor exception. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Interrupt Priority. - Value is aligned automatically to the implemented priority bits of the microcontroller. - */ -__STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) -{ - - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->IP[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); - } - else - { - return((uint32_t)(((SCB->SHP[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - __NVIC_PRIO_BITS))); - } -} - - -/** - \brief Set Interrupt Vector - \details Sets an interrupt vector in SRAM based interrupt vector table. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - VTOR must been relocated to SRAM before. - \param [in] IRQn Interrupt number - \param [in] vector Address of interrupt handler function - */ -__STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) -{ - uint32_t *vectors = (uint32_t *)SCB->VTOR; - vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET] = vector; - /* ARM Application Note 321 states that the M0 and M0+ do not require the architectural barrier - assume SC000 is the same */ -} - - -/** - \brief Get Interrupt Vector - \details Reads an interrupt vector from interrupt vector table. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Address of interrupt handler function - */ -__STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) -{ - uint32_t *vectors = (uint32_t *)SCB->VTOR; - return vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET]; -} - - -/** - \brief System Reset - \details Initiates a system reset request to reset the MCU. - */ -__NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) -{ - __DSB(); /* Ensure all outstanding memory accesses included - buffered write are completed before reset */ - SCB->AIRCR = ((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - SCB_AIRCR_SYSRESETREQ_Msk); - __DSB(); /* Ensure completion of memory access */ - - for(;;) /* wait until reset */ - { - __NOP(); - } -} - -/*@} end of CMSIS_Core_NVICFunctions */ - - -/* ########################## FPU functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_FpuFunctions FPU Functions - \brief Function that provides FPU type. - @{ - */ - -/** - \brief get FPU type - \details returns the FPU type - \returns - - \b 0: No FPU - - \b 1: Single precision FPU - - \b 2: Double + Single precision FPU - */ -__STATIC_INLINE uint32_t SCB_GetFPUType(void) -{ - return 0U; /* No FPU */ -} - - -/*@} end of CMSIS_Core_FpuFunctions */ - - - -/* ################################## SysTick function ############################################ */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SysTickFunctions SysTick Functions - \brief Functions that configure the System. - @{ - */ - -#if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) - -/** - \brief System Tick Configuration - \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. - Counter is in free running mode to generate periodic interrupts. - \param [in] ticks Number of ticks between two interrupts. - \return 0 Function succeeded. - \return 1 Function failed. - \note When the variable __Vendor_SysTickConfig is set to 1, then the - function SysTick_Config is not included. In this case, the file device.h - must contain a vendor-specific implementation of this function. - */ -__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) -{ - if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - { - return (1UL); /* Reload value impossible */ - } - - SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ - SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0UL); /* Function successful */ -} - -#endif - -/*@} end of CMSIS_Core_SysTickFunctions */ - - - - -#ifdef __cplusplus -} -#endif - -#endif /* __CORE_SC000_H_DEPENDANT */ - -#endif /* __CMSIS_GENERIC */ diff --git a/Drivers/CMSIS/Include/core_sc300.h b/Drivers/CMSIS/Include/core_sc300.h deleted file mode 100644 index 40f3af8..0000000 --- a/Drivers/CMSIS/Include/core_sc300.h +++ /dev/null @@ -1,1912 +0,0 @@ -/**************************************************************************//** - * @file core_sc300.h - * @brief CMSIS SC300 Core Peripheral Access Layer Header File - * @version V5.0.8 - * @date 31. May 2019 - ******************************************************************************/ -/* - * Copyright (c) 2009-2019 Arm Limited. All rights reserved. - * - * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the License); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#if defined ( __ICCARM__ ) - #pragma system_include /* treat file as system include file for MISRA check */ -#elif defined (__clang__) - #pragma clang system_header /* treat file as system include file */ -#endif - -#ifndef __CORE_SC300_H_GENERIC -#define __CORE_SC300_H_GENERIC - -#include - -#ifdef __cplusplus - extern "C" { -#endif - -/** - \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions - CMSIS violates the following MISRA-C:2004 rules: - - \li Required Rule 8.5, object/function definition in header file.
- Function definitions in header files are used to allow 'inlining'. - - \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
- Unions are used for effective representation of core registers. - - \li Advisory Rule 19.7, Function-like macro defined.
- Function-like macros are used to allow more efficient code. - */ - - -/******************************************************************************* - * CMSIS definitions - ******************************************************************************/ -/** - \ingroup SC3000 - @{ - */ - -#include "cmsis_version.h" - -/* CMSIS SC300 definitions */ -#define __SC300_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */ -#define __SC300_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) /*!< \deprecated [15:0] CMSIS HAL sub version */ -#define __SC300_CMSIS_VERSION ((__SC300_CMSIS_VERSION_MAIN << 16U) | \ - __SC300_CMSIS_VERSION_SUB ) /*!< \deprecated CMSIS HAL version number */ - -#define __CORTEX_SC (300U) /*!< Cortex secure core */ - -/** __FPU_USED indicates whether an FPU is used or not. - This core does not support an FPU at all -*/ -#define __FPU_USED 0U - -#if defined ( __CC_ARM ) - #if defined __TARGET_FPU_VFP - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) - #if defined __ARM_FP - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __GNUC__ ) - #if defined (__VFP_FP__) && !defined(__SOFTFP__) - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __ICCARM__ ) - #if defined __ARMVFP__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __TI_ARM__ ) - #if defined __TI_VFP_SUPPORT__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __TASKING__ ) - #if defined __FPU_VFP__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __CSMC__ ) - #if ( __CSMC__ & 0x400U) - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#endif - -#include "cmsis_compiler.h" /* CMSIS compiler specific defines */ - - -#ifdef __cplusplus -} -#endif - -#endif /* __CORE_SC300_H_GENERIC */ - -#ifndef __CMSIS_GENERIC - -#ifndef __CORE_SC300_H_DEPENDANT -#define __CORE_SC300_H_DEPENDANT - -#ifdef __cplusplus - extern "C" { -#endif - -/* check device defines and use defaults */ -#if defined __CHECK_DEVICE_DEFINES - #ifndef __SC300_REV - #define __SC300_REV 0x0000U - #warning "__SC300_REV not defined in device header file; using default!" - #endif - - #ifndef __MPU_PRESENT - #define __MPU_PRESENT 0U - #warning "__MPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __NVIC_PRIO_BITS - #define __NVIC_PRIO_BITS 3U - #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" - #endif - - #ifndef __Vendor_SysTickConfig - #define __Vendor_SysTickConfig 0U - #warning "__Vendor_SysTickConfig not defined in device header file; using default!" - #endif -#endif - -/* IO definitions (access restrictions to peripheral registers) */ -/** - \defgroup CMSIS_glob_defs CMSIS Global Defines - - IO Type Qualifiers are used - \li to specify the access to peripheral variables. - \li for automatic generation of peripheral register debug information. -*/ -#ifdef __cplusplus - #define __I volatile /*!< Defines 'read only' permissions */ -#else - #define __I volatile const /*!< Defines 'read only' permissions */ -#endif -#define __O volatile /*!< Defines 'write only' permissions */ -#define __IO volatile /*!< Defines 'read / write' permissions */ - -/* following defines should be used for structure members */ -#define __IM volatile const /*! Defines 'read only' structure member permissions */ -#define __OM volatile /*! Defines 'write only' structure member permissions */ -#define __IOM volatile /*! Defines 'read / write' structure member permissions */ - -/*@} end of group SC300 */ - - - -/******************************************************************************* - * Register Abstraction - Core Register contain: - - Core Register - - Core NVIC Register - - Core SCB Register - - Core SysTick Register - - Core Debug Register - - Core MPU Register - ******************************************************************************/ -/** - \defgroup CMSIS_core_register Defines and Type Definitions - \brief Type definitions and defines for Cortex-M processor based devices. -*/ - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_CORE Status and Control Registers - \brief Core Register type definitions. - @{ - */ - -/** - \brief Union type to access the Application Program Status Register (APSR). - */ -typedef union -{ - struct - { - uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} APSR_Type; - -/* APSR Register Definitions */ -#define APSR_N_Pos 31U /*!< APSR: N Position */ -#define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR: N Mask */ - -#define APSR_Z_Pos 30U /*!< APSR: Z Position */ -#define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR: Z Mask */ - -#define APSR_C_Pos 29U /*!< APSR: C Position */ -#define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR: C Mask */ - -#define APSR_V_Pos 28U /*!< APSR: V Position */ -#define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR: V Mask */ - -#define APSR_Q_Pos 27U /*!< APSR: Q Position */ -#define APSR_Q_Msk (1UL << APSR_Q_Pos) /*!< APSR: Q Mask */ - - -/** - \brief Union type to access the Interrupt Program Status Register (IPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} IPSR_Type; - -/* IPSR Register Definitions */ -#define IPSR_ISR_Pos 0U /*!< IPSR: ISR Position */ -#define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR: ISR Mask */ - - -/** - \brief Union type to access the Special-Purpose Program Status Registers (xPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:1; /*!< bit: 9 Reserved */ - uint32_t ICI_IT_1:6; /*!< bit: 10..15 ICI/IT part 1 */ - uint32_t _reserved1:8; /*!< bit: 16..23 Reserved */ - uint32_t T:1; /*!< bit: 24 Thumb bit */ - uint32_t ICI_IT_2:2; /*!< bit: 25..26 ICI/IT part 2 */ - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} xPSR_Type; - -/* xPSR Register Definitions */ -#define xPSR_N_Pos 31U /*!< xPSR: N Position */ -#define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR: N Mask */ - -#define xPSR_Z_Pos 30U /*!< xPSR: Z Position */ -#define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR: Z Mask */ - -#define xPSR_C_Pos 29U /*!< xPSR: C Position */ -#define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR: C Mask */ - -#define xPSR_V_Pos 28U /*!< xPSR: V Position */ -#define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR: V Mask */ - -#define xPSR_Q_Pos 27U /*!< xPSR: Q Position */ -#define xPSR_Q_Msk (1UL << xPSR_Q_Pos) /*!< xPSR: Q Mask */ - -#define xPSR_ICI_IT_2_Pos 25U /*!< xPSR: ICI/IT part 2 Position */ -#define xPSR_ICI_IT_2_Msk (3UL << xPSR_ICI_IT_2_Pos) /*!< xPSR: ICI/IT part 2 Mask */ - -#define xPSR_T_Pos 24U /*!< xPSR: T Position */ -#define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR: T Mask */ - -#define xPSR_ICI_IT_1_Pos 10U /*!< xPSR: ICI/IT part 1 Position */ -#define xPSR_ICI_IT_1_Msk (0x3FUL << xPSR_ICI_IT_1_Pos) /*!< xPSR: ICI/IT part 1 Mask */ - -#define xPSR_ISR_Pos 0U /*!< xPSR: ISR Position */ -#define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR: ISR Mask */ - - -/** - \brief Union type to access the Control Registers (CONTROL). - */ -typedef union -{ - struct - { - uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ - uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ - uint32_t _reserved1:30; /*!< bit: 2..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} CONTROL_Type; - -/* CONTROL Register Definitions */ -#define CONTROL_SPSEL_Pos 1U /*!< CONTROL: SPSEL Position */ -#define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONTROL: SPSEL Mask */ - -#define CONTROL_nPRIV_Pos 0U /*!< CONTROL: nPRIV Position */ -#define CONTROL_nPRIV_Msk (1UL /*<< CONTROL_nPRIV_Pos*/) /*!< CONTROL: nPRIV Mask */ - -/*@} end of group CMSIS_CORE */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) - \brief Type definitions for the NVIC Registers - @{ - */ - -/** - \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). - */ -typedef struct -{ - __IOM uint32_t ISER[8U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ - uint32_t RESERVED0[24U]; - __IOM uint32_t ICER[8U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ - uint32_t RESERVED1[24U]; - __IOM uint32_t ISPR[8U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ - uint32_t RESERVED2[24U]; - __IOM uint32_t ICPR[8U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ - uint32_t RESERVED3[24U]; - __IOM uint32_t IABR[8U]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ - uint32_t RESERVED4[56U]; - __IOM uint8_t IP[240U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ - uint32_t RESERVED5[644U]; - __OM uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ -} NVIC_Type; - -/* Software Triggered Interrupt Register Definitions */ -#define NVIC_STIR_INTID_Pos 0U /*!< STIR: INTLINESNUM Position */ -#define NVIC_STIR_INTID_Msk (0x1FFUL /*<< NVIC_STIR_INTID_Pos*/) /*!< STIR: INTLINESNUM Mask */ - -/*@} end of group CMSIS_NVIC */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SCB System Control Block (SCB) - \brief Type definitions for the System Control Block Registers - @{ - */ - -/** - \brief Structure type to access the System Control Block (SCB). - */ -typedef struct -{ - __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ - __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ - __IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ - __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ - __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ - __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ - __IOM uint8_t SHP[12U]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ - __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ - __IOM uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ - __IOM uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ - __IOM uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ - __IOM uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ - __IOM uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ - __IOM uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ - __IM uint32_t PFR[2U]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ - __IM uint32_t DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ - __IM uint32_t ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ - __IM uint32_t MMFR[4U]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ - __IM uint32_t ISAR[5U]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ - uint32_t RESERVED0[5U]; - __IOM uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ - uint32_t RESERVED1[129U]; - __IOM uint32_t SFCR; /*!< Offset: 0x290 (R/W) Security Features Control Register */ -} SCB_Type; - -/* SCB CPUID Register Definitions */ -#define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB CPUID: IMPLEMENTER Position */ -#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ - -#define SCB_CPUID_VARIANT_Pos 20U /*!< SCB CPUID: VARIANT Position */ -#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ - -#define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB CPUID: ARCHITECTURE Position */ -#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ - -#define SCB_CPUID_PARTNO_Pos 4U /*!< SCB CPUID: PARTNO Position */ -#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ - -#define SCB_CPUID_REVISION_Pos 0U /*!< SCB CPUID: REVISION Position */ -#define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB CPUID: REVISION Mask */ - -/* SCB Interrupt Control State Register Definitions */ -#define SCB_ICSR_NMIPENDSET_Pos 31U /*!< SCB ICSR: NMIPENDSET Position */ -#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ - -#define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB ICSR: PENDSVSET Position */ -#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ - -#define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB ICSR: PENDSVCLR Position */ -#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ - -#define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB ICSR: PENDSTSET Position */ -#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ - -#define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB ICSR: PENDSTCLR Position */ -#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ - -#define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB ICSR: ISRPREEMPT Position */ -#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ - -#define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB ICSR: ISRPENDING Position */ -#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ - -#define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB ICSR: VECTPENDING Position */ -#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ - -#define SCB_ICSR_RETTOBASE_Pos 11U /*!< SCB ICSR: RETTOBASE Position */ -#define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ - -#define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB ICSR: VECTACTIVE Position */ -#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB ICSR: VECTACTIVE Mask */ - -/* SCB Vector Table Offset Register Definitions */ -#define SCB_VTOR_TBLBASE_Pos 29U /*!< SCB VTOR: TBLBASE Position */ -#define SCB_VTOR_TBLBASE_Msk (1UL << SCB_VTOR_TBLBASE_Pos) /*!< SCB VTOR: TBLBASE Mask */ - -#define SCB_VTOR_TBLOFF_Pos 7U /*!< SCB VTOR: TBLOFF Position */ -#define SCB_VTOR_TBLOFF_Msk (0x3FFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ - -/* SCB Application Interrupt and Reset Control Register Definitions */ -#define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB AIRCR: VECTKEY Position */ -#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ - -#define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB AIRCR: VECTKEYSTAT Position */ -#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ - -#define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB AIRCR: ENDIANESS Position */ -#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ - -#define SCB_AIRCR_PRIGROUP_Pos 8U /*!< SCB AIRCR: PRIGROUP Position */ -#define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ - -#define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB AIRCR: SYSRESETREQ Position */ -#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ - -#define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB AIRCR: VECTCLRACTIVE Position */ -#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ - -#define SCB_AIRCR_VECTRESET_Pos 0U /*!< SCB AIRCR: VECTRESET Position */ -#define SCB_AIRCR_VECTRESET_Msk (1UL /*<< SCB_AIRCR_VECTRESET_Pos*/) /*!< SCB AIRCR: VECTRESET Mask */ - -/* SCB System Control Register Definitions */ -#define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB SCR: SEVONPEND Position */ -#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ - -#define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB SCR: SLEEPDEEP Position */ -#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ - -#define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB SCR: SLEEPONEXIT Position */ -#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ - -/* SCB Configuration Control Register Definitions */ -#define SCB_CCR_STKALIGN_Pos 9U /*!< SCB CCR: STKALIGN Position */ -#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ - -#define SCB_CCR_BFHFNMIGN_Pos 8U /*!< SCB CCR: BFHFNMIGN Position */ -#define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ - -#define SCB_CCR_DIV_0_TRP_Pos 4U /*!< SCB CCR: DIV_0_TRP Position */ -#define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ - -#define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB CCR: UNALIGN_TRP Position */ -#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ - -#define SCB_CCR_USERSETMPEND_Pos 1U /*!< SCB CCR: USERSETMPEND Position */ -#define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ - -#define SCB_CCR_NONBASETHRDENA_Pos 0U /*!< SCB CCR: NONBASETHRDENA Position */ -#define SCB_CCR_NONBASETHRDENA_Msk (1UL /*<< SCB_CCR_NONBASETHRDENA_Pos*/) /*!< SCB CCR: NONBASETHRDENA Mask */ - -/* SCB System Handler Control and State Register Definitions */ -#define SCB_SHCSR_USGFAULTENA_Pos 18U /*!< SCB SHCSR: USGFAULTENA Position */ -#define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ - -#define SCB_SHCSR_BUSFAULTENA_Pos 17U /*!< SCB SHCSR: BUSFAULTENA Position */ -#define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ - -#define SCB_SHCSR_MEMFAULTENA_Pos 16U /*!< SCB SHCSR: MEMFAULTENA Position */ -#define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ - -#define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB SHCSR: SVCALLPENDED Position */ -#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ - -#define SCB_SHCSR_BUSFAULTPENDED_Pos 14U /*!< SCB SHCSR: BUSFAULTPENDED Position */ -#define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ - -#define SCB_SHCSR_MEMFAULTPENDED_Pos 13U /*!< SCB SHCSR: MEMFAULTPENDED Position */ -#define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ - -#define SCB_SHCSR_USGFAULTPENDED_Pos 12U /*!< SCB SHCSR: USGFAULTPENDED Position */ -#define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ - -#define SCB_SHCSR_SYSTICKACT_Pos 11U /*!< SCB SHCSR: SYSTICKACT Position */ -#define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ - -#define SCB_SHCSR_PENDSVACT_Pos 10U /*!< SCB SHCSR: PENDSVACT Position */ -#define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ - -#define SCB_SHCSR_MONITORACT_Pos 8U /*!< SCB SHCSR: MONITORACT Position */ -#define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ - -#define SCB_SHCSR_SVCALLACT_Pos 7U /*!< SCB SHCSR: SVCALLACT Position */ -#define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ - -#define SCB_SHCSR_USGFAULTACT_Pos 3U /*!< SCB SHCSR: USGFAULTACT Position */ -#define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ - -#define SCB_SHCSR_BUSFAULTACT_Pos 1U /*!< SCB SHCSR: BUSFAULTACT Position */ -#define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ - -#define SCB_SHCSR_MEMFAULTACT_Pos 0U /*!< SCB SHCSR: MEMFAULTACT Position */ -#define SCB_SHCSR_MEMFAULTACT_Msk (1UL /*<< SCB_SHCSR_MEMFAULTACT_Pos*/) /*!< SCB SHCSR: MEMFAULTACT Mask */ - -/* SCB Configurable Fault Status Register Definitions */ -#define SCB_CFSR_USGFAULTSR_Pos 16U /*!< SCB CFSR: Usage Fault Status Register Position */ -#define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ - -#define SCB_CFSR_BUSFAULTSR_Pos 8U /*!< SCB CFSR: Bus Fault Status Register Position */ -#define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ - -#define SCB_CFSR_MEMFAULTSR_Pos 0U /*!< SCB CFSR: Memory Manage Fault Status Register Position */ -#define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL /*<< SCB_CFSR_MEMFAULTSR_Pos*/) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ - -/* MemManage Fault Status Register (part of SCB Configurable Fault Status Register) */ -#define SCB_CFSR_MMARVALID_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 7U) /*!< SCB CFSR (MMFSR): MMARVALID Position */ -#define SCB_CFSR_MMARVALID_Msk (1UL << SCB_CFSR_MMARVALID_Pos) /*!< SCB CFSR (MMFSR): MMARVALID Mask */ - -#define SCB_CFSR_MSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 4U) /*!< SCB CFSR (MMFSR): MSTKERR Position */ -#define SCB_CFSR_MSTKERR_Msk (1UL << SCB_CFSR_MSTKERR_Pos) /*!< SCB CFSR (MMFSR): MSTKERR Mask */ - -#define SCB_CFSR_MUNSTKERR_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 3U) /*!< SCB CFSR (MMFSR): MUNSTKERR Position */ -#define SCB_CFSR_MUNSTKERR_Msk (1UL << SCB_CFSR_MUNSTKERR_Pos) /*!< SCB CFSR (MMFSR): MUNSTKERR Mask */ - -#define SCB_CFSR_DACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 1U) /*!< SCB CFSR (MMFSR): DACCVIOL Position */ -#define SCB_CFSR_DACCVIOL_Msk (1UL << SCB_CFSR_DACCVIOL_Pos) /*!< SCB CFSR (MMFSR): DACCVIOL Mask */ - -#define SCB_CFSR_IACCVIOL_Pos (SCB_SHCSR_MEMFAULTACT_Pos + 0U) /*!< SCB CFSR (MMFSR): IACCVIOL Position */ -#define SCB_CFSR_IACCVIOL_Msk (1UL /*<< SCB_CFSR_IACCVIOL_Pos*/) /*!< SCB CFSR (MMFSR): IACCVIOL Mask */ - -/* BusFault Status Register (part of SCB Configurable Fault Status Register) */ -#define SCB_CFSR_BFARVALID_Pos (SCB_CFSR_BUSFAULTSR_Pos + 7U) /*!< SCB CFSR (BFSR): BFARVALID Position */ -#define SCB_CFSR_BFARVALID_Msk (1UL << SCB_CFSR_BFARVALID_Pos) /*!< SCB CFSR (BFSR): BFARVALID Mask */ - -#define SCB_CFSR_STKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 4U) /*!< SCB CFSR (BFSR): STKERR Position */ -#define SCB_CFSR_STKERR_Msk (1UL << SCB_CFSR_STKERR_Pos) /*!< SCB CFSR (BFSR): STKERR Mask */ - -#define SCB_CFSR_UNSTKERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 3U) /*!< SCB CFSR (BFSR): UNSTKERR Position */ -#define SCB_CFSR_UNSTKERR_Msk (1UL << SCB_CFSR_UNSTKERR_Pos) /*!< SCB CFSR (BFSR): UNSTKERR Mask */ - -#define SCB_CFSR_IMPRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 2U) /*!< SCB CFSR (BFSR): IMPRECISERR Position */ -#define SCB_CFSR_IMPRECISERR_Msk (1UL << SCB_CFSR_IMPRECISERR_Pos) /*!< SCB CFSR (BFSR): IMPRECISERR Mask */ - -#define SCB_CFSR_PRECISERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 1U) /*!< SCB CFSR (BFSR): PRECISERR Position */ -#define SCB_CFSR_PRECISERR_Msk (1UL << SCB_CFSR_PRECISERR_Pos) /*!< SCB CFSR (BFSR): PRECISERR Mask */ - -#define SCB_CFSR_IBUSERR_Pos (SCB_CFSR_BUSFAULTSR_Pos + 0U) /*!< SCB CFSR (BFSR): IBUSERR Position */ -#define SCB_CFSR_IBUSERR_Msk (1UL << SCB_CFSR_IBUSERR_Pos) /*!< SCB CFSR (BFSR): IBUSERR Mask */ - -/* UsageFault Status Register (part of SCB Configurable Fault Status Register) */ -#define SCB_CFSR_DIVBYZERO_Pos (SCB_CFSR_USGFAULTSR_Pos + 9U) /*!< SCB CFSR (UFSR): DIVBYZERO Position */ -#define SCB_CFSR_DIVBYZERO_Msk (1UL << SCB_CFSR_DIVBYZERO_Pos) /*!< SCB CFSR (UFSR): DIVBYZERO Mask */ - -#define SCB_CFSR_UNALIGNED_Pos (SCB_CFSR_USGFAULTSR_Pos + 8U) /*!< SCB CFSR (UFSR): UNALIGNED Position */ -#define SCB_CFSR_UNALIGNED_Msk (1UL << SCB_CFSR_UNALIGNED_Pos) /*!< SCB CFSR (UFSR): UNALIGNED Mask */ - -#define SCB_CFSR_NOCP_Pos (SCB_CFSR_USGFAULTSR_Pos + 3U) /*!< SCB CFSR (UFSR): NOCP Position */ -#define SCB_CFSR_NOCP_Msk (1UL << SCB_CFSR_NOCP_Pos) /*!< SCB CFSR (UFSR): NOCP Mask */ - -#define SCB_CFSR_INVPC_Pos (SCB_CFSR_USGFAULTSR_Pos + 2U) /*!< SCB CFSR (UFSR): INVPC Position */ -#define SCB_CFSR_INVPC_Msk (1UL << SCB_CFSR_INVPC_Pos) /*!< SCB CFSR (UFSR): INVPC Mask */ - -#define SCB_CFSR_INVSTATE_Pos (SCB_CFSR_USGFAULTSR_Pos + 1U) /*!< SCB CFSR (UFSR): INVSTATE Position */ -#define SCB_CFSR_INVSTATE_Msk (1UL << SCB_CFSR_INVSTATE_Pos) /*!< SCB CFSR (UFSR): INVSTATE Mask */ - -#define SCB_CFSR_UNDEFINSTR_Pos (SCB_CFSR_USGFAULTSR_Pos + 0U) /*!< SCB CFSR (UFSR): UNDEFINSTR Position */ -#define SCB_CFSR_UNDEFINSTR_Msk (1UL << SCB_CFSR_UNDEFINSTR_Pos) /*!< SCB CFSR (UFSR): UNDEFINSTR Mask */ - -/* SCB Hard Fault Status Register Definitions */ -#define SCB_HFSR_DEBUGEVT_Pos 31U /*!< SCB HFSR: DEBUGEVT Position */ -#define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ - -#define SCB_HFSR_FORCED_Pos 30U /*!< SCB HFSR: FORCED Position */ -#define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ - -#define SCB_HFSR_VECTTBL_Pos 1U /*!< SCB HFSR: VECTTBL Position */ -#define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ - -/* SCB Debug Fault Status Register Definitions */ -#define SCB_DFSR_EXTERNAL_Pos 4U /*!< SCB DFSR: EXTERNAL Position */ -#define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ - -#define SCB_DFSR_VCATCH_Pos 3U /*!< SCB DFSR: VCATCH Position */ -#define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ - -#define SCB_DFSR_DWTTRAP_Pos 2U /*!< SCB DFSR: DWTTRAP Position */ -#define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ - -#define SCB_DFSR_BKPT_Pos 1U /*!< SCB DFSR: BKPT Position */ -#define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ - -#define SCB_DFSR_HALTED_Pos 0U /*!< SCB DFSR: HALTED Position */ -#define SCB_DFSR_HALTED_Msk (1UL /*<< SCB_DFSR_HALTED_Pos*/) /*!< SCB DFSR: HALTED Mask */ - -/*@} end of group CMSIS_SCB */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) - \brief Type definitions for the System Control and ID Register not in the SCB - @{ - */ - -/** - \brief Structure type to access the System Control and ID Register not in the SCB. - */ -typedef struct -{ - uint32_t RESERVED0[1U]; - __IM uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ - __IOM uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ -} SCnSCB_Type; - -/* Interrupt Controller Type Register Definitions */ -#define SCnSCB_ICTR_INTLINESNUM_Pos 0U /*!< ICTR: INTLINESNUM Position */ -#define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL /*<< SCnSCB_ICTR_INTLINESNUM_Pos*/) /*!< ICTR: INTLINESNUM Mask */ - -/* Auxiliary Control Register Definitions */ -#define SCnSCB_ACTLR_DISFOLD_Pos 2U /*!< ACTLR: DISFOLD Position */ -#define SCnSCB_ACTLR_DISFOLD_Msk (1UL << SCnSCB_ACTLR_DISFOLD_Pos) /*!< ACTLR: DISFOLD Mask */ - -#define SCnSCB_ACTLR_DISDEFWBUF_Pos 1U /*!< ACTLR: DISDEFWBUF Position */ -#define SCnSCB_ACTLR_DISDEFWBUF_Msk (1UL << SCnSCB_ACTLR_DISDEFWBUF_Pos) /*!< ACTLR: DISDEFWBUF Mask */ - -#define SCnSCB_ACTLR_DISMCYCINT_Pos 0U /*!< ACTLR: DISMCYCINT Position */ -#define SCnSCB_ACTLR_DISMCYCINT_Msk (1UL /*<< SCnSCB_ACTLR_DISMCYCINT_Pos*/) /*!< ACTLR: DISMCYCINT Mask */ - -/*@} end of group CMSIS_SCnotSCB */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_SysTick System Tick Timer (SysTick) - \brief Type definitions for the System Timer Registers. - @{ - */ - -/** - \brief Structure type to access the System Timer (SysTick). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ - __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ - __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ - __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ -} SysTick_Type; - -/* SysTick Control / Status Register Definitions */ -#define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysTick CTRL: COUNTFLAG Position */ -#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ - -#define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysTick CTRL: CLKSOURCE Position */ -#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ - -#define SysTick_CTRL_TICKINT_Pos 1U /*!< SysTick CTRL: TICKINT Position */ -#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ - -#define SysTick_CTRL_ENABLE_Pos 0U /*!< SysTick CTRL: ENABLE Position */ -#define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysTick CTRL: ENABLE Mask */ - -/* SysTick Reload Register Definitions */ -#define SysTick_LOAD_RELOAD_Pos 0U /*!< SysTick LOAD: RELOAD Position */ -#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysTick LOAD: RELOAD Mask */ - -/* SysTick Current Register Definitions */ -#define SysTick_VAL_CURRENT_Pos 0U /*!< SysTick VAL: CURRENT Position */ -#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysTick VAL: CURRENT Mask */ - -/* SysTick Calibration Register Definitions */ -#define SysTick_CALIB_NOREF_Pos 31U /*!< SysTick CALIB: NOREF Position */ -#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ - -#define SysTick_CALIB_SKEW_Pos 30U /*!< SysTick CALIB: SKEW Position */ -#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ - -#define SysTick_CALIB_TENMS_Pos 0U /*!< SysTick CALIB: TENMS Position */ -#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysTick CALIB: TENMS Mask */ - -/*@} end of group CMSIS_SysTick */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_ITM Instrumentation Trace Macrocell (ITM) - \brief Type definitions for the Instrumentation Trace Macrocell (ITM) - @{ - */ - -/** - \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). - */ -typedef struct -{ - __OM union - { - __OM uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ - __OM uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ - __OM uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ - } PORT [32U]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ - uint32_t RESERVED0[864U]; - __IOM uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ - uint32_t RESERVED1[15U]; - __IOM uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ - uint32_t RESERVED2[15U]; - __IOM uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ - uint32_t RESERVED3[32U]; - uint32_t RESERVED4[43U]; - __OM uint32_t LAR; /*!< Offset: 0xFB0 ( /W) ITM Lock Access Register */ - __IM uint32_t LSR; /*!< Offset: 0xFB4 (R/ ) ITM Lock Status Register */ - uint32_t RESERVED5[6U]; - __IM uint32_t PID4; /*!< Offset: 0xFD0 (R/ ) ITM Peripheral Identification Register #4 */ - __IM uint32_t PID5; /*!< Offset: 0xFD4 (R/ ) ITM Peripheral Identification Register #5 */ - __IM uint32_t PID6; /*!< Offset: 0xFD8 (R/ ) ITM Peripheral Identification Register #6 */ - __IM uint32_t PID7; /*!< Offset: 0xFDC (R/ ) ITM Peripheral Identification Register #7 */ - __IM uint32_t PID0; /*!< Offset: 0xFE0 (R/ ) ITM Peripheral Identification Register #0 */ - __IM uint32_t PID1; /*!< Offset: 0xFE4 (R/ ) ITM Peripheral Identification Register #1 */ - __IM uint32_t PID2; /*!< Offset: 0xFE8 (R/ ) ITM Peripheral Identification Register #2 */ - __IM uint32_t PID3; /*!< Offset: 0xFEC (R/ ) ITM Peripheral Identification Register #3 */ - __IM uint32_t CID0; /*!< Offset: 0xFF0 (R/ ) ITM Component Identification Register #0 */ - __IM uint32_t CID1; /*!< Offset: 0xFF4 (R/ ) ITM Component Identification Register #1 */ - __IM uint32_t CID2; /*!< Offset: 0xFF8 (R/ ) ITM Component Identification Register #2 */ - __IM uint32_t CID3; /*!< Offset: 0xFFC (R/ ) ITM Component Identification Register #3 */ -} ITM_Type; - -/* ITM Trace Privilege Register Definitions */ -#define ITM_TPR_PRIVMASK_Pos 0U /*!< ITM TPR: PRIVMASK Position */ -#define ITM_TPR_PRIVMASK_Msk (0xFUL /*<< ITM_TPR_PRIVMASK_Pos*/) /*!< ITM TPR: PRIVMASK Mask */ - -/* ITM Trace Control Register Definitions */ -#define ITM_TCR_BUSY_Pos 23U /*!< ITM TCR: BUSY Position */ -#define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ - -#define ITM_TCR_TraceBusID_Pos 16U /*!< ITM TCR: ATBID Position */ -#define ITM_TCR_TraceBusID_Msk (0x7FUL << ITM_TCR_TraceBusID_Pos) /*!< ITM TCR: ATBID Mask */ - -#define ITM_TCR_GTSFREQ_Pos 10U /*!< ITM TCR: Global timestamp frequency Position */ -#define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ - -#define ITM_TCR_TSPrescale_Pos 8U /*!< ITM TCR: TSPrescale Position */ -#define ITM_TCR_TSPrescale_Msk (3UL << ITM_TCR_TSPrescale_Pos) /*!< ITM TCR: TSPrescale Mask */ - -#define ITM_TCR_SWOENA_Pos 4U /*!< ITM TCR: SWOENA Position */ -#define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ - -#define ITM_TCR_DWTENA_Pos 3U /*!< ITM TCR: DWTENA Position */ -#define ITM_TCR_DWTENA_Msk (1UL << ITM_TCR_DWTENA_Pos) /*!< ITM TCR: DWTENA Mask */ - -#define ITM_TCR_SYNCENA_Pos 2U /*!< ITM TCR: SYNCENA Position */ -#define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ - -#define ITM_TCR_TSENA_Pos 1U /*!< ITM TCR: TSENA Position */ -#define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ - -#define ITM_TCR_ITMENA_Pos 0U /*!< ITM TCR: ITM Enable bit Position */ -#define ITM_TCR_ITMENA_Msk (1UL /*<< ITM_TCR_ITMENA_Pos*/) /*!< ITM TCR: ITM Enable bit Mask */ - -/* ITM Lock Status Register Definitions */ -#define ITM_LSR_ByteAcc_Pos 2U /*!< ITM LSR: ByteAcc Position */ -#define ITM_LSR_ByteAcc_Msk (1UL << ITM_LSR_ByteAcc_Pos) /*!< ITM LSR: ByteAcc Mask */ - -#define ITM_LSR_Access_Pos 1U /*!< ITM LSR: Access Position */ -#define ITM_LSR_Access_Msk (1UL << ITM_LSR_Access_Pos) /*!< ITM LSR: Access Mask */ - -#define ITM_LSR_Present_Pos 0U /*!< ITM LSR: Present Position */ -#define ITM_LSR_Present_Msk (1UL /*<< ITM_LSR_Present_Pos*/) /*!< ITM LSR: Present Mask */ - -/*@}*/ /* end of group CMSIS_ITM */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) - \brief Type definitions for the Data Watchpoint and Trace (DWT) - @{ - */ - -/** - \brief Structure type to access the Data Watchpoint and Trace Register (DWT). - */ -typedef struct -{ - __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ - __IOM uint32_t CYCCNT; /*!< Offset: 0x004 (R/W) Cycle Count Register */ - __IOM uint32_t CPICNT; /*!< Offset: 0x008 (R/W) CPI Count Register */ - __IOM uint32_t EXCCNT; /*!< Offset: 0x00C (R/W) Exception Overhead Count Register */ - __IOM uint32_t SLEEPCNT; /*!< Offset: 0x010 (R/W) Sleep Count Register */ - __IOM uint32_t LSUCNT; /*!< Offset: 0x014 (R/W) LSU Count Register */ - __IOM uint32_t FOLDCNT; /*!< Offset: 0x018 (R/W) Folded-instruction Count Register */ - __IM uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ - __IOM uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ - __IOM uint32_t MASK0; /*!< Offset: 0x024 (R/W) Mask Register 0 */ - __IOM uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ - uint32_t RESERVED0[1U]; - __IOM uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ - __IOM uint32_t MASK1; /*!< Offset: 0x034 (R/W) Mask Register 1 */ - __IOM uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ - uint32_t RESERVED1[1U]; - __IOM uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ - __IOM uint32_t MASK2; /*!< Offset: 0x044 (R/W) Mask Register 2 */ - __IOM uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ - uint32_t RESERVED2[1U]; - __IOM uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ - __IOM uint32_t MASK3; /*!< Offset: 0x054 (R/W) Mask Register 3 */ - __IOM uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ -} DWT_Type; - -/* DWT Control Register Definitions */ -#define DWT_CTRL_NUMCOMP_Pos 28U /*!< DWT CTRL: NUMCOMP Position */ -#define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ - -#define DWT_CTRL_NOTRCPKT_Pos 27U /*!< DWT CTRL: NOTRCPKT Position */ -#define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ - -#define DWT_CTRL_NOEXTTRIG_Pos 26U /*!< DWT CTRL: NOEXTTRIG Position */ -#define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ - -#define DWT_CTRL_NOCYCCNT_Pos 25U /*!< DWT CTRL: NOCYCCNT Position */ -#define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ - -#define DWT_CTRL_NOPRFCNT_Pos 24U /*!< DWT CTRL: NOPRFCNT Position */ -#define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ - -#define DWT_CTRL_CYCEVTENA_Pos 22U /*!< DWT CTRL: CYCEVTENA Position */ -#define DWT_CTRL_CYCEVTENA_Msk (0x1UL << DWT_CTRL_CYCEVTENA_Pos) /*!< DWT CTRL: CYCEVTENA Mask */ - -#define DWT_CTRL_FOLDEVTENA_Pos 21U /*!< DWT CTRL: FOLDEVTENA Position */ -#define DWT_CTRL_FOLDEVTENA_Msk (0x1UL << DWT_CTRL_FOLDEVTENA_Pos) /*!< DWT CTRL: FOLDEVTENA Mask */ - -#define DWT_CTRL_LSUEVTENA_Pos 20U /*!< DWT CTRL: LSUEVTENA Position */ -#define DWT_CTRL_LSUEVTENA_Msk (0x1UL << DWT_CTRL_LSUEVTENA_Pos) /*!< DWT CTRL: LSUEVTENA Mask */ - -#define DWT_CTRL_SLEEPEVTENA_Pos 19U /*!< DWT CTRL: SLEEPEVTENA Position */ -#define DWT_CTRL_SLEEPEVTENA_Msk (0x1UL << DWT_CTRL_SLEEPEVTENA_Pos) /*!< DWT CTRL: SLEEPEVTENA Mask */ - -#define DWT_CTRL_EXCEVTENA_Pos 18U /*!< DWT CTRL: EXCEVTENA Position */ -#define DWT_CTRL_EXCEVTENA_Msk (0x1UL << DWT_CTRL_EXCEVTENA_Pos) /*!< DWT CTRL: EXCEVTENA Mask */ - -#define DWT_CTRL_CPIEVTENA_Pos 17U /*!< DWT CTRL: CPIEVTENA Position */ -#define DWT_CTRL_CPIEVTENA_Msk (0x1UL << DWT_CTRL_CPIEVTENA_Pos) /*!< DWT CTRL: CPIEVTENA Mask */ - -#define DWT_CTRL_EXCTRCENA_Pos 16U /*!< DWT CTRL: EXCTRCENA Position */ -#define DWT_CTRL_EXCTRCENA_Msk (0x1UL << DWT_CTRL_EXCTRCENA_Pos) /*!< DWT CTRL: EXCTRCENA Mask */ - -#define DWT_CTRL_PCSAMPLENA_Pos 12U /*!< DWT CTRL: PCSAMPLENA Position */ -#define DWT_CTRL_PCSAMPLENA_Msk (0x1UL << DWT_CTRL_PCSAMPLENA_Pos) /*!< DWT CTRL: PCSAMPLENA Mask */ - -#define DWT_CTRL_SYNCTAP_Pos 10U /*!< DWT CTRL: SYNCTAP Position */ -#define DWT_CTRL_SYNCTAP_Msk (0x3UL << DWT_CTRL_SYNCTAP_Pos) /*!< DWT CTRL: SYNCTAP Mask */ - -#define DWT_CTRL_CYCTAP_Pos 9U /*!< DWT CTRL: CYCTAP Position */ -#define DWT_CTRL_CYCTAP_Msk (0x1UL << DWT_CTRL_CYCTAP_Pos) /*!< DWT CTRL: CYCTAP Mask */ - -#define DWT_CTRL_POSTINIT_Pos 5U /*!< DWT CTRL: POSTINIT Position */ -#define DWT_CTRL_POSTINIT_Msk (0xFUL << DWT_CTRL_POSTINIT_Pos) /*!< DWT CTRL: POSTINIT Mask */ - -#define DWT_CTRL_POSTPRESET_Pos 1U /*!< DWT CTRL: POSTPRESET Position */ -#define DWT_CTRL_POSTPRESET_Msk (0xFUL << DWT_CTRL_POSTPRESET_Pos) /*!< DWT CTRL: POSTPRESET Mask */ - -#define DWT_CTRL_CYCCNTENA_Pos 0U /*!< DWT CTRL: CYCCNTENA Position */ -#define DWT_CTRL_CYCCNTENA_Msk (0x1UL /*<< DWT_CTRL_CYCCNTENA_Pos*/) /*!< DWT CTRL: CYCCNTENA Mask */ - -/* DWT CPI Count Register Definitions */ -#define DWT_CPICNT_CPICNT_Pos 0U /*!< DWT CPICNT: CPICNT Position */ -#define DWT_CPICNT_CPICNT_Msk (0xFFUL /*<< DWT_CPICNT_CPICNT_Pos*/) /*!< DWT CPICNT: CPICNT Mask */ - -/* DWT Exception Overhead Count Register Definitions */ -#define DWT_EXCCNT_EXCCNT_Pos 0U /*!< DWT EXCCNT: EXCCNT Position */ -#define DWT_EXCCNT_EXCCNT_Msk (0xFFUL /*<< DWT_EXCCNT_EXCCNT_Pos*/) /*!< DWT EXCCNT: EXCCNT Mask */ - -/* DWT Sleep Count Register Definitions */ -#define DWT_SLEEPCNT_SLEEPCNT_Pos 0U /*!< DWT SLEEPCNT: SLEEPCNT Position */ -#define DWT_SLEEPCNT_SLEEPCNT_Msk (0xFFUL /*<< DWT_SLEEPCNT_SLEEPCNT_Pos*/) /*!< DWT SLEEPCNT: SLEEPCNT Mask */ - -/* DWT LSU Count Register Definitions */ -#define DWT_LSUCNT_LSUCNT_Pos 0U /*!< DWT LSUCNT: LSUCNT Position */ -#define DWT_LSUCNT_LSUCNT_Msk (0xFFUL /*<< DWT_LSUCNT_LSUCNT_Pos*/) /*!< DWT LSUCNT: LSUCNT Mask */ - -/* DWT Folded-instruction Count Register Definitions */ -#define DWT_FOLDCNT_FOLDCNT_Pos 0U /*!< DWT FOLDCNT: FOLDCNT Position */ -#define DWT_FOLDCNT_FOLDCNT_Msk (0xFFUL /*<< DWT_FOLDCNT_FOLDCNT_Pos*/) /*!< DWT FOLDCNT: FOLDCNT Mask */ - -/* DWT Comparator Mask Register Definitions */ -#define DWT_MASK_MASK_Pos 0U /*!< DWT MASK: MASK Position */ -#define DWT_MASK_MASK_Msk (0x1FUL /*<< DWT_MASK_MASK_Pos*/) /*!< DWT MASK: MASK Mask */ - -/* DWT Comparator Function Register Definitions */ -#define DWT_FUNCTION_MATCHED_Pos 24U /*!< DWT FUNCTION: MATCHED Position */ -#define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ - -#define DWT_FUNCTION_DATAVADDR1_Pos 16U /*!< DWT FUNCTION: DATAVADDR1 Position */ -#define DWT_FUNCTION_DATAVADDR1_Msk (0xFUL << DWT_FUNCTION_DATAVADDR1_Pos) /*!< DWT FUNCTION: DATAVADDR1 Mask */ - -#define DWT_FUNCTION_DATAVADDR0_Pos 12U /*!< DWT FUNCTION: DATAVADDR0 Position */ -#define DWT_FUNCTION_DATAVADDR0_Msk (0xFUL << DWT_FUNCTION_DATAVADDR0_Pos) /*!< DWT FUNCTION: DATAVADDR0 Mask */ - -#define DWT_FUNCTION_DATAVSIZE_Pos 10U /*!< DWT FUNCTION: DATAVSIZE Position */ -#define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ - -#define DWT_FUNCTION_LNK1ENA_Pos 9U /*!< DWT FUNCTION: LNK1ENA Position */ -#define DWT_FUNCTION_LNK1ENA_Msk (0x1UL << DWT_FUNCTION_LNK1ENA_Pos) /*!< DWT FUNCTION: LNK1ENA Mask */ - -#define DWT_FUNCTION_DATAVMATCH_Pos 8U /*!< DWT FUNCTION: DATAVMATCH Position */ -#define DWT_FUNCTION_DATAVMATCH_Msk (0x1UL << DWT_FUNCTION_DATAVMATCH_Pos) /*!< DWT FUNCTION: DATAVMATCH Mask */ - -#define DWT_FUNCTION_CYCMATCH_Pos 7U /*!< DWT FUNCTION: CYCMATCH Position */ -#define DWT_FUNCTION_CYCMATCH_Msk (0x1UL << DWT_FUNCTION_CYCMATCH_Pos) /*!< DWT FUNCTION: CYCMATCH Mask */ - -#define DWT_FUNCTION_EMITRANGE_Pos 5U /*!< DWT FUNCTION: EMITRANGE Position */ -#define DWT_FUNCTION_EMITRANGE_Msk (0x1UL << DWT_FUNCTION_EMITRANGE_Pos) /*!< DWT FUNCTION: EMITRANGE Mask */ - -#define DWT_FUNCTION_FUNCTION_Pos 0U /*!< DWT FUNCTION: FUNCTION Position */ -#define DWT_FUNCTION_FUNCTION_Msk (0xFUL /*<< DWT_FUNCTION_FUNCTION_Pos*/) /*!< DWT FUNCTION: FUNCTION Mask */ - -/*@}*/ /* end of group CMSIS_DWT */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_TPI Trace Port Interface (TPI) - \brief Type definitions for the Trace Port Interface (TPI) - @{ - */ - -/** - \brief Structure type to access the Trace Port Interface Register (TPI). - */ -typedef struct -{ - __IM uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Size Register */ - __IOM uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Size Register */ - uint32_t RESERVED0[2U]; - __IOM uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ - uint32_t RESERVED1[55U]; - __IOM uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ - uint32_t RESERVED2[131U]; - __IM uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ - __IOM uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ - __IM uint32_t FSCR; /*!< Offset: 0x308 (R/ ) Formatter Synchronization Counter Register */ - uint32_t RESERVED3[759U]; - __IM uint32_t TRIGGER; /*!< Offset: 0xEE8 (R/ ) TRIGGER Register */ - __IM uint32_t FIFO0; /*!< Offset: 0xEEC (R/ ) Integration ETM Data */ - __IM uint32_t ITATBCTR2; /*!< Offset: 0xEF0 (R/ ) ITATBCTR2 */ - uint32_t RESERVED4[1U]; - __IM uint32_t ITATBCTR0; /*!< Offset: 0xEF8 (R/ ) ITATBCTR0 */ - __IM uint32_t FIFO1; /*!< Offset: 0xEFC (R/ ) Integration ITM Data */ - __IOM uint32_t ITCTRL; /*!< Offset: 0xF00 (R/W) Integration Mode Control */ - uint32_t RESERVED5[39U]; - __IOM uint32_t CLAIMSET; /*!< Offset: 0xFA0 (R/W) Claim tag set */ - __IOM uint32_t CLAIMCLR; /*!< Offset: 0xFA4 (R/W) Claim tag clear */ - uint32_t RESERVED7[8U]; - __IM uint32_t DEVID; /*!< Offset: 0xFC8 (R/ ) TPIU_DEVID */ - __IM uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) TPIU_DEVTYPE */ -} TPI_Type; - -/* TPI Asynchronous Clock Prescaler Register Definitions */ -#define TPI_ACPR_PRESCALER_Pos 0U /*!< TPI ACPR: PRESCALER Position */ -#define TPI_ACPR_PRESCALER_Msk (0x1FFFUL /*<< TPI_ACPR_PRESCALER_Pos*/) /*!< TPI ACPR: PRESCALER Mask */ - -/* TPI Selected Pin Protocol Register Definitions */ -#define TPI_SPPR_TXMODE_Pos 0U /*!< TPI SPPR: TXMODE Position */ -#define TPI_SPPR_TXMODE_Msk (0x3UL /*<< TPI_SPPR_TXMODE_Pos*/) /*!< TPI SPPR: TXMODE Mask */ - -/* TPI Formatter and Flush Status Register Definitions */ -#define TPI_FFSR_FtNonStop_Pos 3U /*!< TPI FFSR: FtNonStop Position */ -#define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ - -#define TPI_FFSR_TCPresent_Pos 2U /*!< TPI FFSR: TCPresent Position */ -#define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ - -#define TPI_FFSR_FtStopped_Pos 1U /*!< TPI FFSR: FtStopped Position */ -#define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ - -#define TPI_FFSR_FlInProg_Pos 0U /*!< TPI FFSR: FlInProg Position */ -#define TPI_FFSR_FlInProg_Msk (0x1UL /*<< TPI_FFSR_FlInProg_Pos*/) /*!< TPI FFSR: FlInProg Mask */ - -/* TPI Formatter and Flush Control Register Definitions */ -#define TPI_FFCR_TrigIn_Pos 8U /*!< TPI FFCR: TrigIn Position */ -#define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ - -#define TPI_FFCR_EnFCont_Pos 1U /*!< TPI FFCR: EnFCont Position */ -#define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ - -/* TPI TRIGGER Register Definitions */ -#define TPI_TRIGGER_TRIGGER_Pos 0U /*!< TPI TRIGGER: TRIGGER Position */ -#define TPI_TRIGGER_TRIGGER_Msk (0x1UL /*<< TPI_TRIGGER_TRIGGER_Pos*/) /*!< TPI TRIGGER: TRIGGER Mask */ - -/* TPI Integration ETM Data Register Definitions (FIFO0) */ -#define TPI_FIFO0_ITM_ATVALID_Pos 29U /*!< TPI FIFO0: ITM_ATVALID Position */ -#define TPI_FIFO0_ITM_ATVALID_Msk (0x1UL << TPI_FIFO0_ITM_ATVALID_Pos) /*!< TPI FIFO0: ITM_ATVALID Mask */ - -#define TPI_FIFO0_ITM_bytecount_Pos 27U /*!< TPI FIFO0: ITM_bytecount Position */ -#define TPI_FIFO0_ITM_bytecount_Msk (0x3UL << TPI_FIFO0_ITM_bytecount_Pos) /*!< TPI FIFO0: ITM_bytecount Mask */ - -#define TPI_FIFO0_ETM_ATVALID_Pos 26U /*!< TPI FIFO0: ETM_ATVALID Position */ -#define TPI_FIFO0_ETM_ATVALID_Msk (0x1UL << TPI_FIFO0_ETM_ATVALID_Pos) /*!< TPI FIFO0: ETM_ATVALID Mask */ - -#define TPI_FIFO0_ETM_bytecount_Pos 24U /*!< TPI FIFO0: ETM_bytecount Position */ -#define TPI_FIFO0_ETM_bytecount_Msk (0x3UL << TPI_FIFO0_ETM_bytecount_Pos) /*!< TPI FIFO0: ETM_bytecount Mask */ - -#define TPI_FIFO0_ETM2_Pos 16U /*!< TPI FIFO0: ETM2 Position */ -#define TPI_FIFO0_ETM2_Msk (0xFFUL << TPI_FIFO0_ETM2_Pos) /*!< TPI FIFO0: ETM2 Mask */ - -#define TPI_FIFO0_ETM1_Pos 8U /*!< TPI FIFO0: ETM1 Position */ -#define TPI_FIFO0_ETM1_Msk (0xFFUL << TPI_FIFO0_ETM1_Pos) /*!< TPI FIFO0: ETM1 Mask */ - -#define TPI_FIFO0_ETM0_Pos 0U /*!< TPI FIFO0: ETM0 Position */ -#define TPI_FIFO0_ETM0_Msk (0xFFUL /*<< TPI_FIFO0_ETM0_Pos*/) /*!< TPI FIFO0: ETM0 Mask */ - -/* TPI ITATBCTR2 Register Definitions */ -#define TPI_ITATBCTR2_ATREADY2_Pos 0U /*!< TPI ITATBCTR2: ATREADY2 Position */ -#define TPI_ITATBCTR2_ATREADY2_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY2_Pos*/) /*!< TPI ITATBCTR2: ATREADY2 Mask */ - -#define TPI_ITATBCTR2_ATREADY1_Pos 0U /*!< TPI ITATBCTR2: ATREADY1 Position */ -#define TPI_ITATBCTR2_ATREADY1_Msk (0x1UL /*<< TPI_ITATBCTR2_ATREADY1_Pos*/) /*!< TPI ITATBCTR2: ATREADY1 Mask */ - -/* TPI Integration ITM Data Register Definitions (FIFO1) */ -#define TPI_FIFO1_ITM_ATVALID_Pos 29U /*!< TPI FIFO1: ITM_ATVALID Position */ -#define TPI_FIFO1_ITM_ATVALID_Msk (0x1UL << TPI_FIFO1_ITM_ATVALID_Pos) /*!< TPI FIFO1: ITM_ATVALID Mask */ - -#define TPI_FIFO1_ITM_bytecount_Pos 27U /*!< TPI FIFO1: ITM_bytecount Position */ -#define TPI_FIFO1_ITM_bytecount_Msk (0x3UL << TPI_FIFO1_ITM_bytecount_Pos) /*!< TPI FIFO1: ITM_bytecount Mask */ - -#define TPI_FIFO1_ETM_ATVALID_Pos 26U /*!< TPI FIFO1: ETM_ATVALID Position */ -#define TPI_FIFO1_ETM_ATVALID_Msk (0x1UL << TPI_FIFO1_ETM_ATVALID_Pos) /*!< TPI FIFO1: ETM_ATVALID Mask */ - -#define TPI_FIFO1_ETM_bytecount_Pos 24U /*!< TPI FIFO1: ETM_bytecount Position */ -#define TPI_FIFO1_ETM_bytecount_Msk (0x3UL << TPI_FIFO1_ETM_bytecount_Pos) /*!< TPI FIFO1: ETM_bytecount Mask */ - -#define TPI_FIFO1_ITM2_Pos 16U /*!< TPI FIFO1: ITM2 Position */ -#define TPI_FIFO1_ITM2_Msk (0xFFUL << TPI_FIFO1_ITM2_Pos) /*!< TPI FIFO1: ITM2 Mask */ - -#define TPI_FIFO1_ITM1_Pos 8U /*!< TPI FIFO1: ITM1 Position */ -#define TPI_FIFO1_ITM1_Msk (0xFFUL << TPI_FIFO1_ITM1_Pos) /*!< TPI FIFO1: ITM1 Mask */ - -#define TPI_FIFO1_ITM0_Pos 0U /*!< TPI FIFO1: ITM0 Position */ -#define TPI_FIFO1_ITM0_Msk (0xFFUL /*<< TPI_FIFO1_ITM0_Pos*/) /*!< TPI FIFO1: ITM0 Mask */ - -/* TPI ITATBCTR0 Register Definitions */ -#define TPI_ITATBCTR0_ATREADY2_Pos 0U /*!< TPI ITATBCTR0: ATREADY2 Position */ -#define TPI_ITATBCTR0_ATREADY2_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY2_Pos*/) /*!< TPI ITATBCTR0: ATREADY2 Mask */ - -#define TPI_ITATBCTR0_ATREADY1_Pos 0U /*!< TPI ITATBCTR0: ATREADY1 Position */ -#define TPI_ITATBCTR0_ATREADY1_Msk (0x1UL /*<< TPI_ITATBCTR0_ATREADY1_Pos*/) /*!< TPI ITATBCTR0: ATREADY1 Mask */ - -/* TPI Integration Mode Control Register Definitions */ -#define TPI_ITCTRL_Mode_Pos 0U /*!< TPI ITCTRL: Mode Position */ -#define TPI_ITCTRL_Mode_Msk (0x3UL /*<< TPI_ITCTRL_Mode_Pos*/) /*!< TPI ITCTRL: Mode Mask */ - -/* TPI DEVID Register Definitions */ -#define TPI_DEVID_NRZVALID_Pos 11U /*!< TPI DEVID: NRZVALID Position */ -#define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ - -#define TPI_DEVID_MANCVALID_Pos 10U /*!< TPI DEVID: MANCVALID Position */ -#define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ - -#define TPI_DEVID_PTINVALID_Pos 9U /*!< TPI DEVID: PTINVALID Position */ -#define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ - -#define TPI_DEVID_MinBufSz_Pos 6U /*!< TPI DEVID: MinBufSz Position */ -#define TPI_DEVID_MinBufSz_Msk (0x7UL << TPI_DEVID_MinBufSz_Pos) /*!< TPI DEVID: MinBufSz Mask */ - -#define TPI_DEVID_AsynClkIn_Pos 5U /*!< TPI DEVID: AsynClkIn Position */ -#define TPI_DEVID_AsynClkIn_Msk (0x1UL << TPI_DEVID_AsynClkIn_Pos) /*!< TPI DEVID: AsynClkIn Mask */ - -#define TPI_DEVID_NrTraceInput_Pos 0U /*!< TPI DEVID: NrTraceInput Position */ -#define TPI_DEVID_NrTraceInput_Msk (0x1FUL /*<< TPI_DEVID_NrTraceInput_Pos*/) /*!< TPI DEVID: NrTraceInput Mask */ - -/* TPI DEVTYPE Register Definitions */ -#define TPI_DEVTYPE_SubType_Pos 4U /*!< TPI DEVTYPE: SubType Position */ -#define TPI_DEVTYPE_SubType_Msk (0xFUL /*<< TPI_DEVTYPE_SubType_Pos*/) /*!< TPI DEVTYPE: SubType Mask */ - -#define TPI_DEVTYPE_MajorType_Pos 0U /*!< TPI DEVTYPE: MajorType Position */ -#define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ - -/*@}*/ /* end of group CMSIS_TPI */ - - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_MPU Memory Protection Unit (MPU) - \brief Type definitions for the Memory Protection Unit (MPU) - @{ - */ - -/** - \brief Structure type to access the Memory Protection Unit (MPU). - */ -typedef struct -{ - __IM uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ - __IOM uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ - __IOM uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ - __IOM uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ - __IOM uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ - __IOM uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Alias 1 Region Base Address Register */ - __IOM uint32_t RASR_A1; /*!< Offset: 0x018 (R/W) MPU Alias 1 Region Attribute and Size Register */ - __IOM uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Alias 2 Region Base Address Register */ - __IOM uint32_t RASR_A2; /*!< Offset: 0x020 (R/W) MPU Alias 2 Region Attribute and Size Register */ - __IOM uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Alias 3 Region Base Address Register */ - __IOM uint32_t RASR_A3; /*!< Offset: 0x028 (R/W) MPU Alias 3 Region Attribute and Size Register */ -} MPU_Type; - -/* MPU Type Register Definitions */ -#define MPU_TYPE_IREGION_Pos 16U /*!< MPU TYPE: IREGION Position */ -#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ - -#define MPU_TYPE_DREGION_Pos 8U /*!< MPU TYPE: DREGION Position */ -#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ - -#define MPU_TYPE_SEPARATE_Pos 0U /*!< MPU TYPE: SEPARATE Position */ -#define MPU_TYPE_SEPARATE_Msk (1UL /*<< MPU_TYPE_SEPARATE_Pos*/) /*!< MPU TYPE: SEPARATE Mask */ - -/* MPU Control Register Definitions */ -#define MPU_CTRL_PRIVDEFENA_Pos 2U /*!< MPU CTRL: PRIVDEFENA Position */ -#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ - -#define MPU_CTRL_HFNMIENA_Pos 1U /*!< MPU CTRL: HFNMIENA Position */ -#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ - -#define MPU_CTRL_ENABLE_Pos 0U /*!< MPU CTRL: ENABLE Position */ -#define MPU_CTRL_ENABLE_Msk (1UL /*<< MPU_CTRL_ENABLE_Pos*/) /*!< MPU CTRL: ENABLE Mask */ - -/* MPU Region Number Register Definitions */ -#define MPU_RNR_REGION_Pos 0U /*!< MPU RNR: REGION Position */ -#define MPU_RNR_REGION_Msk (0xFFUL /*<< MPU_RNR_REGION_Pos*/) /*!< MPU RNR: REGION Mask */ - -/* MPU Region Base Address Register Definitions */ -#define MPU_RBAR_ADDR_Pos 5U /*!< MPU RBAR: ADDR Position */ -#define MPU_RBAR_ADDR_Msk (0x7FFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ - -#define MPU_RBAR_VALID_Pos 4U /*!< MPU RBAR: VALID Position */ -#define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ - -#define MPU_RBAR_REGION_Pos 0U /*!< MPU RBAR: REGION Position */ -#define MPU_RBAR_REGION_Msk (0xFUL /*<< MPU_RBAR_REGION_Pos*/) /*!< MPU RBAR: REGION Mask */ - -/* MPU Region Attribute and Size Register Definitions */ -#define MPU_RASR_ATTRS_Pos 16U /*!< MPU RASR: MPU Region Attribute field Position */ -#define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ - -#define MPU_RASR_XN_Pos 28U /*!< MPU RASR: ATTRS.XN Position */ -#define MPU_RASR_XN_Msk (1UL << MPU_RASR_XN_Pos) /*!< MPU RASR: ATTRS.XN Mask */ - -#define MPU_RASR_AP_Pos 24U /*!< MPU RASR: ATTRS.AP Position */ -#define MPU_RASR_AP_Msk (0x7UL << MPU_RASR_AP_Pos) /*!< MPU RASR: ATTRS.AP Mask */ - -#define MPU_RASR_TEX_Pos 19U /*!< MPU RASR: ATTRS.TEX Position */ -#define MPU_RASR_TEX_Msk (0x7UL << MPU_RASR_TEX_Pos) /*!< MPU RASR: ATTRS.TEX Mask */ - -#define MPU_RASR_S_Pos 18U /*!< MPU RASR: ATTRS.S Position */ -#define MPU_RASR_S_Msk (1UL << MPU_RASR_S_Pos) /*!< MPU RASR: ATTRS.S Mask */ - -#define MPU_RASR_C_Pos 17U /*!< MPU RASR: ATTRS.C Position */ -#define MPU_RASR_C_Msk (1UL << MPU_RASR_C_Pos) /*!< MPU RASR: ATTRS.C Mask */ - -#define MPU_RASR_B_Pos 16U /*!< MPU RASR: ATTRS.B Position */ -#define MPU_RASR_B_Msk (1UL << MPU_RASR_B_Pos) /*!< MPU RASR: ATTRS.B Mask */ - -#define MPU_RASR_SRD_Pos 8U /*!< MPU RASR: Sub-Region Disable Position */ -#define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ - -#define MPU_RASR_SIZE_Pos 1U /*!< MPU RASR: Region Size Field Position */ -#define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ - -#define MPU_RASR_ENABLE_Pos 0U /*!< MPU RASR: Region enable bit Position */ -#define MPU_RASR_ENABLE_Msk (1UL /*<< MPU_RASR_ENABLE_Pos*/) /*!< MPU RASR: Region enable bit Disable Mask */ - -/*@} end of group CMSIS_MPU */ -#endif - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) - \brief Type definitions for the Core Debug Registers - @{ - */ - -/** - \brief Structure type to access the Core Debug Register (CoreDebug). - */ -typedef struct -{ - __IOM uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ - __OM uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ - __IOM uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ - __IOM uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ -} CoreDebug_Type; - -/* Debug Halting Control and Status Register Definitions */ -#define CoreDebug_DHCSR_DBGKEY_Pos 16U /*!< CoreDebug DHCSR: DBGKEY Position */ -#define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ - -#define CoreDebug_DHCSR_S_RESET_ST_Pos 25U /*!< CoreDebug DHCSR: S_RESET_ST Position */ -#define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ - -#define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24U /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ -#define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ - -#define CoreDebug_DHCSR_S_LOCKUP_Pos 19U /*!< CoreDebug DHCSR: S_LOCKUP Position */ -#define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ - -#define CoreDebug_DHCSR_S_SLEEP_Pos 18U /*!< CoreDebug DHCSR: S_SLEEP Position */ -#define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ - -#define CoreDebug_DHCSR_S_HALT_Pos 17U /*!< CoreDebug DHCSR: S_HALT Position */ -#define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ - -#define CoreDebug_DHCSR_S_REGRDY_Pos 16U /*!< CoreDebug DHCSR: S_REGRDY Position */ -#define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ - -#define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5U /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ -#define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ - -#define CoreDebug_DHCSR_C_MASKINTS_Pos 3U /*!< CoreDebug DHCSR: C_MASKINTS Position */ -#define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ - -#define CoreDebug_DHCSR_C_STEP_Pos 2U /*!< CoreDebug DHCSR: C_STEP Position */ -#define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ - -#define CoreDebug_DHCSR_C_HALT_Pos 1U /*!< CoreDebug DHCSR: C_HALT Position */ -#define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ - -#define CoreDebug_DHCSR_C_DEBUGEN_Pos 0U /*!< CoreDebug DHCSR: C_DEBUGEN Position */ -#define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL /*<< CoreDebug_DHCSR_C_DEBUGEN_Pos*/) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ - -/* Debug Core Register Selector Register Definitions */ -#define CoreDebug_DCRSR_REGWnR_Pos 16U /*!< CoreDebug DCRSR: REGWnR Position */ -#define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ - -#define CoreDebug_DCRSR_REGSEL_Pos 0U /*!< CoreDebug DCRSR: REGSEL Position */ -#define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL /*<< CoreDebug_DCRSR_REGSEL_Pos*/) /*!< CoreDebug DCRSR: REGSEL Mask */ - -/* Debug Exception and Monitor Control Register Definitions */ -#define CoreDebug_DEMCR_TRCENA_Pos 24U /*!< CoreDebug DEMCR: TRCENA Position */ -#define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ - -#define CoreDebug_DEMCR_MON_REQ_Pos 19U /*!< CoreDebug DEMCR: MON_REQ Position */ -#define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ - -#define CoreDebug_DEMCR_MON_STEP_Pos 18U /*!< CoreDebug DEMCR: MON_STEP Position */ -#define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ - -#define CoreDebug_DEMCR_MON_PEND_Pos 17U /*!< CoreDebug DEMCR: MON_PEND Position */ -#define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ - -#define CoreDebug_DEMCR_MON_EN_Pos 16U /*!< CoreDebug DEMCR: MON_EN Position */ -#define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ - -#define CoreDebug_DEMCR_VC_HARDERR_Pos 10U /*!< CoreDebug DEMCR: VC_HARDERR Position */ -#define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ - -#define CoreDebug_DEMCR_VC_INTERR_Pos 9U /*!< CoreDebug DEMCR: VC_INTERR Position */ -#define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ - -#define CoreDebug_DEMCR_VC_BUSERR_Pos 8U /*!< CoreDebug DEMCR: VC_BUSERR Position */ -#define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ - -#define CoreDebug_DEMCR_VC_STATERR_Pos 7U /*!< CoreDebug DEMCR: VC_STATERR Position */ -#define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ - -#define CoreDebug_DEMCR_VC_CHKERR_Pos 6U /*!< CoreDebug DEMCR: VC_CHKERR Position */ -#define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ - -#define CoreDebug_DEMCR_VC_NOCPERR_Pos 5U /*!< CoreDebug DEMCR: VC_NOCPERR Position */ -#define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ - -#define CoreDebug_DEMCR_VC_MMERR_Pos 4U /*!< CoreDebug DEMCR: VC_MMERR Position */ -#define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ - -#define CoreDebug_DEMCR_VC_CORERESET_Pos 0U /*!< CoreDebug DEMCR: VC_CORERESET Position */ -#define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL /*<< CoreDebug_DEMCR_VC_CORERESET_Pos*/) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ - -/*@} end of group CMSIS_CoreDebug */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_core_bitfield Core register bit field macros - \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). - @{ - */ - -/** - \brief Mask and shift a bit field value for use in a register bit range. - \param[in] field Name of the register bit field. - \param[in] value Value of the bit field. This parameter is interpreted as an uint32_t type. - \return Masked and shifted value. -*/ -#define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) - -/** - \brief Mask and shift a register value to extract a bit filed value. - \param[in] field Name of the register bit field. - \param[in] value Value of register. This parameter is interpreted as an uint32_t type. - \return Masked and shifted bit field value. -*/ -#define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) - -/*@} end of group CMSIS_core_bitfield */ - - -/** - \ingroup CMSIS_core_register - \defgroup CMSIS_core_base Core Definitions - \brief Definitions for base addresses, unions, and structures. - @{ - */ - -/* Memory mapping of Core Hardware */ -#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ -#define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ -#define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ -#define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ -#define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ -#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ -#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ -#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ - -#define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ -#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ -#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ -#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ -#define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ -#define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ -#define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ -#define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE) /*!< Core Debug configuration struct */ - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1U) - #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ - #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ -#endif - -/*@} */ - - - -/******************************************************************************* - * Hardware Abstraction Layer - Core Function Interface contains: - - Core NVIC Functions - - Core SysTick Functions - - Core Debug Functions - - Core Register Access Functions - ******************************************************************************/ -/** - \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference -*/ - - - -/* ########################## NVIC functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_NVICFunctions NVIC Functions - \brief Functions that manage interrupts and exceptions via the NVIC. - @{ - */ - -#ifdef CMSIS_NVIC_VIRTUAL - #ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE - #define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h" - #endif - #include CMSIS_NVIC_VIRTUAL_HEADER_FILE -#else - #define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping - #define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping - #define NVIC_EnableIRQ __NVIC_EnableIRQ - #define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ - #define NVIC_DisableIRQ __NVIC_DisableIRQ - #define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ - #define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ - #define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ - #define NVIC_GetActive __NVIC_GetActive - #define NVIC_SetPriority __NVIC_SetPriority - #define NVIC_GetPriority __NVIC_GetPriority - #define NVIC_SystemReset __NVIC_SystemReset -#endif /* CMSIS_NVIC_VIRTUAL */ - -#ifdef CMSIS_VECTAB_VIRTUAL - #ifndef CMSIS_VECTAB_VIRTUAL_HEADER_FILE - #define CMSIS_VECTAB_VIRTUAL_HEADER_FILE "cmsis_vectab_virtual.h" - #endif - #include CMSIS_VECTAB_VIRTUAL_HEADER_FILE -#else - #define NVIC_SetVector __NVIC_SetVector - #define NVIC_GetVector __NVIC_GetVector -#endif /* (CMSIS_VECTAB_VIRTUAL) */ - -#define NVIC_USER_IRQ_OFFSET 16 - - -/* The following EXC_RETURN values are saved the LR on exception entry */ -#define EXC_RETURN_HANDLER (0xFFFFFFF1UL) /* return to Handler mode, uses MSP after return */ -#define EXC_RETURN_THREAD_MSP (0xFFFFFFF9UL) /* return to Thread mode, uses MSP after return */ -#define EXC_RETURN_THREAD_PSP (0xFFFFFFFDUL) /* return to Thread mode, uses PSP after return */ - - -/** - \brief Set Priority Grouping - \details Sets the priority grouping field using the required unlock sequence. - The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. - Only values from 0..7 are used. - 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) -{ - uint32_t reg_value; - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - - reg_value = SCB->AIRCR; /* read old register configuration */ - reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ - reg_value = (reg_value | - ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ - SCB->AIRCR = reg_value; -} - - -/** - \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) -{ - return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); -} - - -/** - \brief Enable Interrupt - \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) -{ - if ((int32_t)(IRQn) >= 0) - { - __COMPILER_BARRIER(); - NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - __COMPILER_BARRIER(); - } -} - - -/** - \brief Get Interrupt Enable status - \details Returns a device specific interrupt enable status from the NVIC interrupt controller. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt is not enabled. - \return 1 Interrupt is enabled. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Disable Interrupt - \details Disables 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_DisableIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ICER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - __DSB(); - __ISB(); - } -} - - -/** - \brief Get Pending Interrupt - \details Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not pending. - \return 1 Interrupt status is pending. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Pending Interrupt - \details Sets the pending bit of a device specific interrupt in the NVIC pending register. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void __NVIC_SetPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ISPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Clear Pending Interrupt - \details Clears the pending bit of a device specific interrupt in the NVIC pending register. - \param [in] IRQn Device specific interrupt number. - \note IRQn must not be negative. - */ -__STATIC_INLINE void __NVIC_ClearPendingIRQ(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->ICPR[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - } -} - - -/** - \brief Get Active Interrupt - \details Reads the active register in the NVIC and returns the active bit for the device specific interrupt. - \param [in] IRQn Device specific interrupt number. - \return 0 Interrupt status is not active. - \return 1 Interrupt status is active. - \note IRQn must not be negative. - */ -__STATIC_INLINE uint32_t __NVIC_GetActive(IRQn_Type IRQn) -{ - if ((int32_t)(IRQn) >= 0) - { - return((uint32_t)(((NVIC->IABR[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL)); - } - else - { - return(0U); - } -} - - -/** - \brief Set Interrupt Priority - \details Sets the priority of a device specific interrupt or a processor exception. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \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) -{ - if ((int32_t)(IRQn) >= 0) - { - NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - } - else - { - SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - } -} - - -/** - \brief Get Interrupt Priority - \details Reads the priority of a device specific interrupt or a processor exception. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Interrupt Priority. - Value is aligned automatically to the implemented priority bits of the microcontroller. - */ -__STATIC_INLINE uint32_t __NVIC_GetPriority(IRQn_Type IRQn) -{ - - if ((int32_t)(IRQn) >= 0) - { - return(((uint32_t)NVIC->IP[((uint32_t)IRQn)] >> (8U - __NVIC_PRIO_BITS))); - } - else - { - return(((uint32_t)SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] >> (8U - __NVIC_PRIO_BITS))); - } -} - - -/** - \brief Encode Priority - \details Encodes the priority for an interrupt with the given priority group, - preemptive priority value, and subpriority value. - 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 Used priority group. - \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) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - - return ( - ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) - ); -} - - -/** - \brief Decode Priority - \details Decodes an interrupt priority value with a given priority group to - preemptive priority value and subpriority value. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. - \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). - \param [in] PriorityGroup Used priority group. - \param [out] pPreemptPriority Preemptive priority value (starting from 0). - \param [out] pSubPriority Subpriority value (starting from 0). - */ -__STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* const pPreemptPriority, uint32_t* const pSubPriority) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - - *pPreemptPriority = (Priority >> SubPriorityBits) & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL); - *pSubPriority = (Priority ) & (uint32_t)((1UL << (SubPriorityBits )) - 1UL); -} - - -/** - \brief Set Interrupt Vector - \details Sets an interrupt vector in SRAM based interrupt vector table. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - VTOR must been relocated to SRAM before. - \param [in] IRQn Interrupt number - \param [in] vector Address of interrupt handler function - */ -__STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) -{ - uint32_t vectors = (uint32_t )SCB->VTOR; - (* (int *) (vectors + ((int32_t)IRQn + NVIC_USER_IRQ_OFFSET) * 4)) = vector; - /* ARM Application Note 321 states that the M3 does not require the architectural barrier */ -} - - -/** - \brief Get Interrupt Vector - \details Reads an interrupt vector from interrupt vector table. - The interrupt number can be positive to specify a device specific interrupt, - or negative to specify a processor exception. - \param [in] IRQn Interrupt number. - \return Address of interrupt handler function - */ -__STATIC_INLINE uint32_t __NVIC_GetVector(IRQn_Type IRQn) -{ - uint32_t vectors = (uint32_t )SCB->VTOR; - return (uint32_t)(* (int *) (vectors + ((int32_t)IRQn + NVIC_USER_IRQ_OFFSET) * 4)); -} - - -/** - \brief System Reset - \details Initiates a system reset request to reset the MCU. - */ -__NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) -{ - __DSB(); /* Ensure all outstanding memory accesses included - buffered write are completed before reset */ - SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | - SCB_AIRCR_SYSRESETREQ_Msk ); /* Keep priority group unchanged */ - __DSB(); /* Ensure completion of memory access */ - - for(;;) /* wait until reset */ - { - __NOP(); - } -} - -/*@} end of CMSIS_Core_NVICFunctions */ - - -/* ########################## FPU functions #################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_FpuFunctions FPU Functions - \brief Function that provides FPU type. - @{ - */ - -/** - \brief get FPU type - \details returns the FPU type - \returns - - \b 0: No FPU - - \b 1: Single precision FPU - - \b 2: Double + Single precision FPU - */ -__STATIC_INLINE uint32_t SCB_GetFPUType(void) -{ - return 0U; /* No FPU */ -} - - -/*@} end of CMSIS_Core_FpuFunctions */ - - - -/* ################################## SysTick function ############################################ */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SysTickFunctions SysTick Functions - \brief Functions that configure the System. - @{ - */ - -#if defined (__Vendor_SysTickConfig) && (__Vendor_SysTickConfig == 0U) - -/** - \brief System Tick Configuration - \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. - Counter is in free running mode to generate periodic interrupts. - \param [in] ticks Number of ticks between two interrupts. - \return 0 Function succeeded. - \return 1 Function failed. - \note When the variable __Vendor_SysTickConfig is set to 1, then the - function SysTick_Config is not included. In this case, the file device.h - must contain a vendor-specific implementation of this function. - */ -__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) -{ - if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - { - return (1UL); /* Reload value impossible */ - } - - SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ - SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0UL); /* Function successful */ -} - -#endif - -/*@} end of CMSIS_Core_SysTickFunctions */ - - - -/* ##################################### Debug In/Output function ########################################### */ -/** - \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_core_DebugFunctions ITM Functions - \brief Functions that access the ITM debug interface. - @{ - */ - -extern volatile int32_t ITM_RxBuffer; /*!< External variable to receive characters. */ -#define ITM_RXBUFFER_EMPTY ((int32_t)0x5AA55AA5U) /*!< Value identifying \ref ITM_RxBuffer is ready for next character. */ - - -/** - \brief ITM Send Character - \details Transmits a character via the ITM channel 0, and - \li Just returns when no debugger is connected that has booked the output. - \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted. - \param [in] ch Character to transmit. - \returns Character to transmit. - */ -__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch) -{ - if (((ITM->TCR & ITM_TCR_ITMENA_Msk) != 0UL) && /* ITM enabled */ - ((ITM->TER & 1UL ) != 0UL) ) /* ITM Port #0 enabled */ - { - while (ITM->PORT[0U].u32 == 0UL) - { - __NOP(); - } - ITM->PORT[0U].u8 = (uint8_t)ch; - } - return (ch); -} - - -/** - \brief ITM Receive Character - \details Inputs a character via the external variable \ref ITM_RxBuffer. - \return Received character. - \return -1 No character pending. - */ -__STATIC_INLINE int32_t ITM_ReceiveChar (void) -{ - int32_t ch = -1; /* no character available */ - - if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) - { - ch = ITM_RxBuffer; - ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ - } - - return (ch); -} - - -/** - \brief ITM Check Character - \details Checks whether a character is pending for reading in the variable \ref ITM_RxBuffer. - \return 0 No character available. - \return 1 Character available. - */ -__STATIC_INLINE int32_t ITM_CheckChar (void) -{ - - if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) - { - return (0); /* no character available */ - } - else - { - return (1); /* character available */ - } -} - -/*@} end of CMSIS_core_DebugFunctions */ - - - - -#ifdef __cplusplus -} -#endif - -#endif /* __CORE_SC300_H_DEPENDANT */ - -#endif /* __CMSIS_GENERIC */ diff --git a/Drivers/CMSIS/Include/mpu_armv7.h b/Drivers/CMSIS/Include/mpu_armv7.h deleted file mode 100644 index 66ef59b..0000000 --- a/Drivers/CMSIS/Include/mpu_armv7.h +++ /dev/null @@ -1,272 +0,0 @@ -/****************************************************************************** - * @file mpu_armv7.h - * @brief CMSIS MPU API for Armv7-M MPU - * @version V5.1.0 - * @date 08. March 2019 - ******************************************************************************/ -/* - * Copyright (c) 2017-2019 Arm Limited. All rights reserved. - * - * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the License); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#if defined ( __ICCARM__ ) - #pragma system_include /* treat file as system include file for MISRA check */ -#elif defined (__clang__) - #pragma clang system_header /* treat file as system include file */ -#endif - -#ifndef ARM_MPU_ARMV7_H -#define ARM_MPU_ARMV7_H - -#define ARM_MPU_REGION_SIZE_32B ((uint8_t)0x04U) ///!< MPU Region Size 32 Bytes -#define ARM_MPU_REGION_SIZE_64B ((uint8_t)0x05U) ///!< MPU Region Size 64 Bytes -#define ARM_MPU_REGION_SIZE_128B ((uint8_t)0x06U) ///!< MPU Region Size 128 Bytes -#define ARM_MPU_REGION_SIZE_256B ((uint8_t)0x07U) ///!< MPU Region Size 256 Bytes -#define ARM_MPU_REGION_SIZE_512B ((uint8_t)0x08U) ///!< MPU Region Size 512 Bytes -#define ARM_MPU_REGION_SIZE_1KB ((uint8_t)0x09U) ///!< MPU Region Size 1 KByte -#define ARM_MPU_REGION_SIZE_2KB ((uint8_t)0x0AU) ///!< MPU Region Size 2 KBytes -#define ARM_MPU_REGION_SIZE_4KB ((uint8_t)0x0BU) ///!< MPU Region Size 4 KBytes -#define ARM_MPU_REGION_SIZE_8KB ((uint8_t)0x0CU) ///!< MPU Region Size 8 KBytes -#define ARM_MPU_REGION_SIZE_16KB ((uint8_t)0x0DU) ///!< MPU Region Size 16 KBytes -#define ARM_MPU_REGION_SIZE_32KB ((uint8_t)0x0EU) ///!< MPU Region Size 32 KBytes -#define ARM_MPU_REGION_SIZE_64KB ((uint8_t)0x0FU) ///!< MPU Region Size 64 KBytes -#define ARM_MPU_REGION_SIZE_128KB ((uint8_t)0x10U) ///!< MPU Region Size 128 KBytes -#define ARM_MPU_REGION_SIZE_256KB ((uint8_t)0x11U) ///!< MPU Region Size 256 KBytes -#define ARM_MPU_REGION_SIZE_512KB ((uint8_t)0x12U) ///!< MPU Region Size 512 KBytes -#define ARM_MPU_REGION_SIZE_1MB ((uint8_t)0x13U) ///!< MPU Region Size 1 MByte -#define ARM_MPU_REGION_SIZE_2MB ((uint8_t)0x14U) ///!< MPU Region Size 2 MBytes -#define ARM_MPU_REGION_SIZE_4MB ((uint8_t)0x15U) ///!< MPU Region Size 4 MBytes -#define ARM_MPU_REGION_SIZE_8MB ((uint8_t)0x16U) ///!< MPU Region Size 8 MBytes -#define ARM_MPU_REGION_SIZE_16MB ((uint8_t)0x17U) ///!< MPU Region Size 16 MBytes -#define ARM_MPU_REGION_SIZE_32MB ((uint8_t)0x18U) ///!< MPU Region Size 32 MBytes -#define ARM_MPU_REGION_SIZE_64MB ((uint8_t)0x19U) ///!< MPU Region Size 64 MBytes -#define ARM_MPU_REGION_SIZE_128MB ((uint8_t)0x1AU) ///!< MPU Region Size 128 MBytes -#define ARM_MPU_REGION_SIZE_256MB ((uint8_t)0x1BU) ///!< MPU Region Size 256 MBytes -#define ARM_MPU_REGION_SIZE_512MB ((uint8_t)0x1CU) ///!< MPU Region Size 512 MBytes -#define ARM_MPU_REGION_SIZE_1GB ((uint8_t)0x1DU) ///!< MPU Region Size 1 GByte -#define ARM_MPU_REGION_SIZE_2GB ((uint8_t)0x1EU) ///!< MPU Region Size 2 GBytes -#define ARM_MPU_REGION_SIZE_4GB ((uint8_t)0x1FU) ///!< MPU Region Size 4 GBytes - -#define ARM_MPU_AP_NONE 0U ///!< MPU Access Permission no access -#define ARM_MPU_AP_PRIV 1U ///!< MPU Access Permission privileged access only -#define ARM_MPU_AP_URO 2U ///!< MPU Access Permission unprivileged access read-only -#define ARM_MPU_AP_FULL 3U ///!< MPU Access Permission full access -#define ARM_MPU_AP_PRO 5U ///!< MPU Access Permission privileged access read-only -#define ARM_MPU_AP_RO 6U ///!< MPU Access Permission read-only access - -/** MPU Region Base Address Register Value -* -* \param Region The region to be configured, number 0 to 15. -* \param BaseAddress The base address for the region. -*/ -#define ARM_MPU_RBAR(Region, BaseAddress) \ - (((BaseAddress) & MPU_RBAR_ADDR_Msk) | \ - ((Region) & MPU_RBAR_REGION_Msk) | \ - (MPU_RBAR_VALID_Msk)) - -/** -* MPU Memory Access Attributes -* -* \param TypeExtField Type extension field, allows you to configure memory access type, for example strongly ordered, peripheral. -* \param IsShareable Region is shareable between multiple bus masters. -* \param IsCacheable Region is cacheable, i.e. its value may be kept in cache. -* \param IsBufferable Region is bufferable, i.e. using write-back caching. Cacheable but non-bufferable regions use write-through policy. -*/ -#define ARM_MPU_ACCESS_(TypeExtField, IsShareable, IsCacheable, IsBufferable) \ - ((((TypeExtField) << MPU_RASR_TEX_Pos) & MPU_RASR_TEX_Msk) | \ - (((IsShareable) << MPU_RASR_S_Pos) & MPU_RASR_S_Msk) | \ - (((IsCacheable) << MPU_RASR_C_Pos) & MPU_RASR_C_Msk) | \ - (((IsBufferable) << MPU_RASR_B_Pos) & MPU_RASR_B_Msk)) - -/** -* MPU Region Attribute and Size Register Value -* -* \param DisableExec Instruction access disable bit, 1= disable instruction fetches. -* \param AccessPermission Data access permissions, allows you to configure read/write access for User and Privileged mode. -* \param AccessAttributes Memory access attribution, see \ref ARM_MPU_ACCESS_. -* \param SubRegionDisable Sub-region disable field. -* \param Size Region size of the region to be configured, for example 4K, 8K. -*/ -#define ARM_MPU_RASR_EX(DisableExec, AccessPermission, AccessAttributes, SubRegionDisable, Size) \ - ((((DisableExec) << MPU_RASR_XN_Pos) & MPU_RASR_XN_Msk) | \ - (((AccessPermission) << MPU_RASR_AP_Pos) & MPU_RASR_AP_Msk) | \ - (((AccessAttributes) & (MPU_RASR_TEX_Msk | MPU_RASR_S_Msk | MPU_RASR_C_Msk | MPU_RASR_B_Msk))) | \ - (((SubRegionDisable) << MPU_RASR_SRD_Pos) & MPU_RASR_SRD_Msk) | \ - (((Size) << MPU_RASR_SIZE_Pos) & MPU_RASR_SIZE_Msk) | \ - (((MPU_RASR_ENABLE_Msk)))) - -/** -* MPU Region Attribute and Size Register Value -* -* \param DisableExec Instruction access disable bit, 1= disable instruction fetches. -* \param AccessPermission Data access permissions, allows you to configure read/write access for User and Privileged mode. -* \param TypeExtField Type extension field, allows you to configure memory access type, for example strongly ordered, peripheral. -* \param IsShareable Region is shareable between multiple bus masters. -* \param IsCacheable Region is cacheable, i.e. its value may be kept in cache. -* \param IsBufferable Region is bufferable, i.e. using write-back caching. Cacheable but non-bufferable regions use write-through policy. -* \param SubRegionDisable Sub-region disable field. -* \param Size Region size of the region to be configured, for example 4K, 8K. -*/ -#define ARM_MPU_RASR(DisableExec, AccessPermission, TypeExtField, IsShareable, IsCacheable, IsBufferable, SubRegionDisable, Size) \ - ARM_MPU_RASR_EX(DisableExec, AccessPermission, ARM_MPU_ACCESS_(TypeExtField, IsShareable, IsCacheable, IsBufferable), SubRegionDisable, Size) - -/** -* MPU Memory Access Attribute for strongly ordered memory. -* - TEX: 000b -* - Shareable -* - Non-cacheable -* - Non-bufferable -*/ -#define ARM_MPU_ACCESS_ORDERED ARM_MPU_ACCESS_(0U, 1U, 0U, 0U) - -/** -* MPU Memory Access Attribute for device memory. -* - TEX: 000b (if shareable) or 010b (if non-shareable) -* - Shareable or non-shareable -* - Non-cacheable -* - Bufferable (if shareable) or non-bufferable (if non-shareable) -* -* \param IsShareable Configures the device memory as shareable or non-shareable. -*/ -#define ARM_MPU_ACCESS_DEVICE(IsShareable) ((IsShareable) ? ARM_MPU_ACCESS_(0U, 1U, 0U, 1U) : ARM_MPU_ACCESS_(2U, 0U, 0U, 0U)) - -/** -* MPU Memory Access Attribute for normal memory. -* - TEX: 1BBb (reflecting outer cacheability rules) -* - Shareable or non-shareable -* - Cacheable or non-cacheable (reflecting inner cacheability rules) -* - Bufferable or non-bufferable (reflecting inner cacheability rules) -* -* \param OuterCp Configures the outer cache policy. -* \param InnerCp Configures the inner cache policy. -* \param IsShareable Configures the memory as shareable or non-shareable. -*/ -#define ARM_MPU_ACCESS_NORMAL(OuterCp, InnerCp, IsShareable) ARM_MPU_ACCESS_((4U | (OuterCp)), IsShareable, ((InnerCp) & 2U), ((InnerCp) & 1U)) - -/** -* MPU Memory Access Attribute non-cacheable policy. -*/ -#define ARM_MPU_CACHEP_NOCACHE 0U - -/** -* MPU Memory Access Attribute write-back, write and read allocate policy. -*/ -#define ARM_MPU_CACHEP_WB_WRA 1U - -/** -* MPU Memory Access Attribute write-through, no write allocate policy. -*/ -#define ARM_MPU_CACHEP_WT_NWA 2U - -/** -* MPU Memory Access Attribute write-back, no write allocate policy. -*/ -#define ARM_MPU_CACHEP_WB_NWA 3U - - -/** -* Struct for a single MPU Region -*/ -typedef struct { - uint32_t RBAR; //!< The region base address register value (RBAR) - uint32_t RASR; //!< The region attribute and size register value (RASR) \ref MPU_RASR -} ARM_MPU_Region_t; - -/** Enable the MPU. -* \param MPU_Control Default access permissions for unconfigured regions. -*/ -__STATIC_INLINE void ARM_MPU_Enable(uint32_t MPU_Control) -{ - MPU->CTRL = MPU_Control | MPU_CTRL_ENABLE_Msk; -#ifdef SCB_SHCSR_MEMFAULTENA_Msk - SCB->SHCSR |= SCB_SHCSR_MEMFAULTENA_Msk; -#endif - __DSB(); - __ISB(); -} - -/** Disable the MPU. -*/ -__STATIC_INLINE void ARM_MPU_Disable(void) -{ - __DMB(); -#ifdef SCB_SHCSR_MEMFAULTENA_Msk - SCB->SHCSR &= ~SCB_SHCSR_MEMFAULTENA_Msk; -#endif - MPU->CTRL &= ~MPU_CTRL_ENABLE_Msk; -} - -/** Clear and disable the given MPU region. -* \param rnr Region number to be cleared. -*/ -__STATIC_INLINE void ARM_MPU_ClrRegion(uint32_t rnr) -{ - MPU->RNR = rnr; - MPU->RASR = 0U; -} - -/** Configure an MPU region. -* \param rbar Value for RBAR register. -* \param rsar Value for RSAR register. -*/ -__STATIC_INLINE void ARM_MPU_SetRegion(uint32_t rbar, uint32_t rasr) -{ - MPU->RBAR = rbar; - MPU->RASR = rasr; -} - -/** Configure the given MPU region. -* \param rnr Region number to be configured. -* \param rbar Value for RBAR register. -* \param rsar Value for RSAR register. -*/ -__STATIC_INLINE void ARM_MPU_SetRegionEx(uint32_t rnr, uint32_t rbar, uint32_t rasr) -{ - MPU->RNR = rnr; - MPU->RBAR = rbar; - MPU->RASR = rasr; -} - -/** Memcopy with strictly ordered memory access, e.g. for register targets. -* \param dst Destination data is copied to. -* \param src Source data is copied from. -* \param len Amount of data words to be copied. -*/ -__STATIC_INLINE void ARM_MPU_OrderedMemcpy(volatile uint32_t* dst, const uint32_t* __RESTRICT src, uint32_t len) -{ - uint32_t i; - for (i = 0U; i < len; ++i) - { - dst[i] = src[i]; - } -} - -/** Load the given number of MPU regions from a table. -* \param table Pointer to the MPU configuration table. -* \param cnt Amount of regions to be configured. -*/ -__STATIC_INLINE void ARM_MPU_Load(ARM_MPU_Region_t const* table, uint32_t cnt) -{ - const uint32_t rowWordSize = sizeof(ARM_MPU_Region_t)/4U; - while (cnt > MPU_TYPE_RALIASES) { - ARM_MPU_OrderedMemcpy(&(MPU->RBAR), &(table->RBAR), MPU_TYPE_RALIASES*rowWordSize); - table += MPU_TYPE_RALIASES; - cnt -= MPU_TYPE_RALIASES; - } - ARM_MPU_OrderedMemcpy(&(MPU->RBAR), &(table->RBAR), cnt*rowWordSize); -} - -#endif diff --git a/Drivers/CMSIS/Include/mpu_armv8.h b/Drivers/CMSIS/Include/mpu_armv8.h deleted file mode 100644 index 0041d4d..0000000 --- a/Drivers/CMSIS/Include/mpu_armv8.h +++ /dev/null @@ -1,346 +0,0 @@ -/****************************************************************************** - * @file mpu_armv8.h - * @brief CMSIS MPU API for Armv8-M and Armv8.1-M MPU - * @version V5.1.0 - * @date 08. March 2019 - ******************************************************************************/ -/* - * Copyright (c) 2017-2019 Arm Limited. All rights reserved. - * - * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the License); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#if defined ( __ICCARM__ ) - #pragma system_include /* treat file as system include file for MISRA check */ -#elif defined (__clang__) - #pragma clang system_header /* treat file as system include file */ -#endif - -#ifndef ARM_MPU_ARMV8_H -#define ARM_MPU_ARMV8_H - -/** \brief Attribute for device memory (outer only) */ -#define ARM_MPU_ATTR_DEVICE ( 0U ) - -/** \brief Attribute for non-cacheable, normal memory */ -#define ARM_MPU_ATTR_NON_CACHEABLE ( 4U ) - -/** \brief Attribute for normal memory (outer and inner) -* \param NT Non-Transient: Set to 1 for non-transient data. -* \param WB Write-Back: Set to 1 to use write-back update policy. -* \param RA Read Allocation: Set to 1 to use cache allocation on read miss. -* \param WA Write Allocation: Set to 1 to use cache allocation on write miss. -*/ -#define ARM_MPU_ATTR_MEMORY_(NT, WB, RA, WA) \ - (((NT & 1U) << 3U) | ((WB & 1U) << 2U) | ((RA & 1U) << 1U) | (WA & 1U)) - -/** \brief Device memory type non Gathering, non Re-ordering, non Early Write Acknowledgement */ -#define ARM_MPU_ATTR_DEVICE_nGnRnE (0U) - -/** \brief Device memory type non Gathering, non Re-ordering, Early Write Acknowledgement */ -#define ARM_MPU_ATTR_DEVICE_nGnRE (1U) - -/** \brief Device memory type non Gathering, Re-ordering, Early Write Acknowledgement */ -#define ARM_MPU_ATTR_DEVICE_nGRE (2U) - -/** \brief Device memory type Gathering, Re-ordering, Early Write Acknowledgement */ -#define ARM_MPU_ATTR_DEVICE_GRE (3U) - -/** \brief Memory Attribute -* \param O Outer memory attributes -* \param I O == ARM_MPU_ATTR_DEVICE: Device memory attributes, else: Inner memory attributes -*/ -#define ARM_MPU_ATTR(O, I) (((O & 0xFU) << 4U) | (((O & 0xFU) != 0U) ? (I & 0xFU) : ((I & 0x3U) << 2U))) - -/** \brief Normal memory non-shareable */ -#define ARM_MPU_SH_NON (0U) - -/** \brief Normal memory outer shareable */ -#define ARM_MPU_SH_OUTER (2U) - -/** \brief Normal memory inner shareable */ -#define ARM_MPU_SH_INNER (3U) - -/** \brief Memory access permissions -* \param RO Read-Only: Set to 1 for read-only memory. -* \param NP Non-Privileged: Set to 1 for non-privileged memory. -*/ -#define ARM_MPU_AP_(RO, NP) (((RO & 1U) << 1U) | (NP & 1U)) - -/** \brief Region Base Address Register value -* \param BASE The base address bits [31:5] of a memory region. The value is zero extended. Effective address gets 32 byte aligned. -* \param SH Defines the Shareability domain for this memory region. -* \param RO Read-Only: Set to 1 for a read-only memory region. -* \param NP Non-Privileged: Set to 1 for a non-privileged memory region. -* \oaram XN eXecute Never: Set to 1 for a non-executable memory region. -*/ -#define ARM_MPU_RBAR(BASE, SH, RO, NP, XN) \ - ((BASE & MPU_RBAR_BASE_Msk) | \ - ((SH << MPU_RBAR_SH_Pos) & MPU_RBAR_SH_Msk) | \ - ((ARM_MPU_AP_(RO, NP) << MPU_RBAR_AP_Pos) & MPU_RBAR_AP_Msk) | \ - ((XN << MPU_RBAR_XN_Pos) & MPU_RBAR_XN_Msk)) - -/** \brief Region Limit Address Register value -* \param LIMIT The limit address bits [31:5] for this memory region. The value is one extended. -* \param IDX The attribute index to be associated with this memory region. -*/ -#define ARM_MPU_RLAR(LIMIT, IDX) \ - ((LIMIT & MPU_RLAR_LIMIT_Msk) | \ - ((IDX << MPU_RLAR_AttrIndx_Pos) & MPU_RLAR_AttrIndx_Msk) | \ - (MPU_RLAR_EN_Msk)) - -#if defined(MPU_RLAR_PXN_Pos) - -/** \brief Region Limit Address Register with PXN value -* \param LIMIT The limit address bits [31:5] for this memory region. The value is one extended. -* \param PXN Privileged execute never. Defines whether code can be executed from this privileged region. -* \param IDX The attribute index to be associated with this memory region. -*/ -#define ARM_MPU_RLAR_PXN(LIMIT, PXN, IDX) \ - ((LIMIT & MPU_RLAR_LIMIT_Msk) | \ - ((PXN << MPU_RLAR_PXN_Pos) & MPU_RLAR_PXN_Msk) | \ - ((IDX << MPU_RLAR_AttrIndx_Pos) & MPU_RLAR_AttrIndx_Msk) | \ - (MPU_RLAR_EN_Msk)) - -#endif - -/** -* Struct for a single MPU Region -*/ -typedef struct { - uint32_t RBAR; /*!< Region Base Address Register value */ - uint32_t RLAR; /*!< Region Limit Address Register value */ -} ARM_MPU_Region_t; - -/** Enable the MPU. -* \param MPU_Control Default access permissions for unconfigured regions. -*/ -__STATIC_INLINE void ARM_MPU_Enable(uint32_t MPU_Control) -{ - MPU->CTRL = MPU_Control | MPU_CTRL_ENABLE_Msk; -#ifdef SCB_SHCSR_MEMFAULTENA_Msk - SCB->SHCSR |= SCB_SHCSR_MEMFAULTENA_Msk; -#endif - __DSB(); - __ISB(); -} - -/** Disable the MPU. -*/ -__STATIC_INLINE void ARM_MPU_Disable(void) -{ - __DMB(); -#ifdef SCB_SHCSR_MEMFAULTENA_Msk - SCB->SHCSR &= ~SCB_SHCSR_MEMFAULTENA_Msk; -#endif - MPU->CTRL &= ~MPU_CTRL_ENABLE_Msk; -} - -#ifdef MPU_NS -/** Enable the Non-secure MPU. -* \param MPU_Control Default access permissions for unconfigured regions. -*/ -__STATIC_INLINE void ARM_MPU_Enable_NS(uint32_t MPU_Control) -{ - MPU_NS->CTRL = MPU_Control | MPU_CTRL_ENABLE_Msk; -#ifdef SCB_SHCSR_MEMFAULTENA_Msk - SCB_NS->SHCSR |= SCB_SHCSR_MEMFAULTENA_Msk; -#endif - __DSB(); - __ISB(); -} - -/** Disable the Non-secure MPU. -*/ -__STATIC_INLINE void ARM_MPU_Disable_NS(void) -{ - __DMB(); -#ifdef SCB_SHCSR_MEMFAULTENA_Msk - SCB_NS->SHCSR &= ~SCB_SHCSR_MEMFAULTENA_Msk; -#endif - MPU_NS->CTRL &= ~MPU_CTRL_ENABLE_Msk; -} -#endif - -/** Set the memory attribute encoding to the given MPU. -* \param mpu Pointer to the MPU to be configured. -* \param idx The attribute index to be set [0-7] -* \param attr The attribute value to be set. -*/ -__STATIC_INLINE void ARM_MPU_SetMemAttrEx(MPU_Type* mpu, uint8_t idx, uint8_t attr) -{ - const uint8_t reg = idx / 4U; - const uint32_t pos = ((idx % 4U) * 8U); - const uint32_t mask = 0xFFU << pos; - - if (reg >= (sizeof(mpu->MAIR) / sizeof(mpu->MAIR[0]))) { - return; // invalid index - } - - mpu->MAIR[reg] = ((mpu->MAIR[reg] & ~mask) | ((attr << pos) & mask)); -} - -/** Set the memory attribute encoding. -* \param idx The attribute index to be set [0-7] -* \param attr The attribute value to be set. -*/ -__STATIC_INLINE void ARM_MPU_SetMemAttr(uint8_t idx, uint8_t attr) -{ - ARM_MPU_SetMemAttrEx(MPU, idx, attr); -} - -#ifdef MPU_NS -/** Set the memory attribute encoding to the Non-secure MPU. -* \param idx The attribute index to be set [0-7] -* \param attr The attribute value to be set. -*/ -__STATIC_INLINE void ARM_MPU_SetMemAttr_NS(uint8_t idx, uint8_t attr) -{ - ARM_MPU_SetMemAttrEx(MPU_NS, idx, attr); -} -#endif - -/** Clear and disable the given MPU region of the given MPU. -* \param mpu Pointer to MPU to be used. -* \param rnr Region number to be cleared. -*/ -__STATIC_INLINE void ARM_MPU_ClrRegionEx(MPU_Type* mpu, uint32_t rnr) -{ - mpu->RNR = rnr; - mpu->RLAR = 0U; -} - -/** Clear and disable the given MPU region. -* \param rnr Region number to be cleared. -*/ -__STATIC_INLINE void ARM_MPU_ClrRegion(uint32_t rnr) -{ - ARM_MPU_ClrRegionEx(MPU, rnr); -} - -#ifdef MPU_NS -/** Clear and disable the given Non-secure MPU region. -* \param rnr Region number to be cleared. -*/ -__STATIC_INLINE void ARM_MPU_ClrRegion_NS(uint32_t rnr) -{ - ARM_MPU_ClrRegionEx(MPU_NS, rnr); -} -#endif - -/** Configure the given MPU region of the given MPU. -* \param mpu Pointer to MPU to be used. -* \param rnr Region number to be configured. -* \param rbar Value for RBAR register. -* \param rlar Value for RLAR register. -*/ -__STATIC_INLINE void ARM_MPU_SetRegionEx(MPU_Type* mpu, uint32_t rnr, uint32_t rbar, uint32_t rlar) -{ - mpu->RNR = rnr; - mpu->RBAR = rbar; - mpu->RLAR = rlar; -} - -/** Configure the given MPU region. -* \param rnr Region number to be configured. -* \param rbar Value for RBAR register. -* \param rlar Value for RLAR register. -*/ -__STATIC_INLINE void ARM_MPU_SetRegion(uint32_t rnr, uint32_t rbar, uint32_t rlar) -{ - ARM_MPU_SetRegionEx(MPU, rnr, rbar, rlar); -} - -#ifdef MPU_NS -/** Configure the given Non-secure MPU region. -* \param rnr Region number to be configured. -* \param rbar Value for RBAR register. -* \param rlar Value for RLAR register. -*/ -__STATIC_INLINE void ARM_MPU_SetRegion_NS(uint32_t rnr, uint32_t rbar, uint32_t rlar) -{ - ARM_MPU_SetRegionEx(MPU_NS, rnr, rbar, rlar); -} -#endif - -/** Memcopy with strictly ordered memory access, e.g. for register targets. -* \param dst Destination data is copied to. -* \param src Source data is copied from. -* \param len Amount of data words to be copied. -*/ -__STATIC_INLINE void ARM_MPU_OrderedMemcpy(volatile uint32_t* dst, const uint32_t* __RESTRICT src, uint32_t len) -{ - uint32_t i; - for (i = 0U; i < len; ++i) - { - dst[i] = src[i]; - } -} - -/** Load the given number of MPU regions from a table to the given MPU. -* \param mpu Pointer to the MPU registers to be used. -* \param rnr First region number to be configured. -* \param table Pointer to the MPU configuration table. -* \param cnt Amount of regions to be configured. -*/ -__STATIC_INLINE void ARM_MPU_LoadEx(MPU_Type* mpu, uint32_t rnr, ARM_MPU_Region_t const* table, uint32_t cnt) -{ - const uint32_t rowWordSize = sizeof(ARM_MPU_Region_t)/4U; - if (cnt == 1U) { - mpu->RNR = rnr; - ARM_MPU_OrderedMemcpy(&(mpu->RBAR), &(table->RBAR), rowWordSize); - } else { - uint32_t rnrBase = rnr & ~(MPU_TYPE_RALIASES-1U); - uint32_t rnrOffset = rnr % MPU_TYPE_RALIASES; - - mpu->RNR = rnrBase; - while ((rnrOffset + cnt) > MPU_TYPE_RALIASES) { - uint32_t c = MPU_TYPE_RALIASES - rnrOffset; - ARM_MPU_OrderedMemcpy(&(mpu->RBAR)+(rnrOffset*2U), &(table->RBAR), c*rowWordSize); - table += c; - cnt -= c; - rnrOffset = 0U; - rnrBase += MPU_TYPE_RALIASES; - mpu->RNR = rnrBase; - } - - ARM_MPU_OrderedMemcpy(&(mpu->RBAR)+(rnrOffset*2U), &(table->RBAR), cnt*rowWordSize); - } -} - -/** Load the given number of MPU regions from a table. -* \param rnr First region number to be configured. -* \param table Pointer to the MPU configuration table. -* \param cnt Amount of regions to be configured. -*/ -__STATIC_INLINE void ARM_MPU_Load(uint32_t rnr, ARM_MPU_Region_t const* table, uint32_t cnt) -{ - ARM_MPU_LoadEx(MPU, rnr, table, cnt); -} - -#ifdef MPU_NS -/** Load the given number of MPU regions from a table to the Non-secure MPU. -* \param rnr First region number to be configured. -* \param table Pointer to the MPU configuration table. -* \param cnt Amount of regions to be configured. -*/ -__STATIC_INLINE void ARM_MPU_Load_NS(uint32_t rnr, ARM_MPU_Region_t const* table, uint32_t cnt) -{ - ARM_MPU_LoadEx(MPU_NS, rnr, table, cnt); -} -#endif - -#endif - diff --git a/Drivers/CMSIS/Include/tz_context.h b/Drivers/CMSIS/Include/tz_context.h deleted file mode 100644 index 0d09749..0000000 --- a/Drivers/CMSIS/Include/tz_context.h +++ /dev/null @@ -1,70 +0,0 @@ -/****************************************************************************** - * @file tz_context.h - * @brief Context Management for Armv8-M TrustZone - * @version V1.0.1 - * @date 10. January 2018 - ******************************************************************************/ -/* - * Copyright (c) 2017-2018 Arm Limited. All rights reserved. - * - * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the License); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#if defined ( __ICCARM__ ) - #pragma system_include /* treat file as system include file for MISRA check */ -#elif defined (__clang__) - #pragma clang system_header /* treat file as system include file */ -#endif - -#ifndef TZ_CONTEXT_H -#define TZ_CONTEXT_H - -#include - -#ifndef TZ_MODULEID_T -#define TZ_MODULEID_T -/// \details Data type that identifies secure software modules called by a process. -typedef uint32_t TZ_ModuleId_t; -#endif - -/// \details TZ Memory ID identifies an allocated memory slot. -typedef uint32_t TZ_MemoryId_t; - -/// Initialize secure context memory system -/// \return execution status (1: success, 0: error) -uint32_t TZ_InitContextSystem_S (void); - -/// Allocate context memory for calling secure software modules in TrustZone -/// \param[in] module identifies software modules called from non-secure mode -/// \return value != 0 id TrustZone memory slot identifier -/// \return value 0 no memory available or internal error -TZ_MemoryId_t TZ_AllocModuleContext_S (TZ_ModuleId_t module); - -/// Free context memory that was previously allocated with \ref TZ_AllocModuleContext_S -/// \param[in] id TrustZone memory slot identifier -/// \return execution status (1: success, 0: error) -uint32_t TZ_FreeModuleContext_S (TZ_MemoryId_t id); - -/// Load secure context (called on RTOS thread context switch) -/// \param[in] id TrustZone memory slot identifier -/// \return execution status (1: success, 0: error) -uint32_t TZ_LoadContext_S (TZ_MemoryId_t id); - -/// Store secure context (called on RTOS thread context switch) -/// \param[in] id TrustZone memory slot identifier -/// \return execution status (1: success, 0: error) -uint32_t TZ_StoreContext_S (TZ_MemoryId_t id); - -#endif // TZ_CONTEXT_H diff --git a/Drivers/CMSIS/LICENSE.txt b/Drivers/CMSIS/LICENSE.txt deleted file mode 100644 index 8dada3e..0000000 --- a/Drivers/CMSIS/LICENSE.txt +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright {yyyy} {name of copyright owner} - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h b/Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h deleted file mode 100644 index 7338082..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h +++ /dev/null @@ -1,4027 +0,0 @@ -/** - ****************************************************************************** - * @file stm32_hal_legacy.h - * @author MCD Application Team - * @brief This file contains aliases definition for the STM32Cube HAL constants - * macros and functions maintained for legacy purpose. - ****************************************************************************** - * @attention - * - * Copyright (c) 2021 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32_HAL_LEGACY -#define STM32_HAL_LEGACY - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -/* Exported types ------------------------------------------------------------*/ -/* Exported constants --------------------------------------------------------*/ - -/** @defgroup HAL_AES_Aliased_Defines HAL CRYP Aliased Defines maintained for legacy purpose - * @{ - */ -#define AES_FLAG_RDERR CRYP_FLAG_RDERR -#define AES_FLAG_WRERR CRYP_FLAG_WRERR -#define AES_CLEARFLAG_CCF CRYP_CLEARFLAG_CCF -#define AES_CLEARFLAG_RDERR CRYP_CLEARFLAG_RDERR -#define AES_CLEARFLAG_WRERR CRYP_CLEARFLAG_WRERR -#if defined(STM32U5) || defined(STM32H7) || defined(STM32MP1) -#define CRYP_DATATYPE_32B CRYP_NO_SWAP -#define CRYP_DATATYPE_16B CRYP_HALFWORD_SWAP -#define CRYP_DATATYPE_8B CRYP_BYTE_SWAP -#define CRYP_DATATYPE_1B CRYP_BIT_SWAP -#if defined(STM32U5) -#define CRYP_CCF_CLEAR CRYP_CLEAR_CCF -#define CRYP_ERR_CLEAR CRYP_CLEAR_RWEIF -#endif /* STM32U5 */ -#endif /* STM32U5 || STM32H7 || STM32MP1 */ -/** - * @} - */ - -/** @defgroup HAL_ADC_Aliased_Defines HAL ADC Aliased Defines maintained for legacy purpose - * @{ - */ -#define ADC_RESOLUTION12b ADC_RESOLUTION_12B -#define ADC_RESOLUTION10b ADC_RESOLUTION_10B -#define ADC_RESOLUTION8b ADC_RESOLUTION_8B -#define ADC_RESOLUTION6b ADC_RESOLUTION_6B -#define OVR_DATA_OVERWRITTEN ADC_OVR_DATA_OVERWRITTEN -#define OVR_DATA_PRESERVED ADC_OVR_DATA_PRESERVED -#define EOC_SINGLE_CONV ADC_EOC_SINGLE_CONV -#define EOC_SEQ_CONV ADC_EOC_SEQ_CONV -#define EOC_SINGLE_SEQ_CONV ADC_EOC_SINGLE_SEQ_CONV -#define REGULAR_GROUP ADC_REGULAR_GROUP -#define INJECTED_GROUP ADC_INJECTED_GROUP -#define REGULAR_INJECTED_GROUP ADC_REGULAR_INJECTED_GROUP -#define AWD_EVENT ADC_AWD_EVENT -#define AWD1_EVENT ADC_AWD1_EVENT -#define AWD2_EVENT ADC_AWD2_EVENT -#define AWD3_EVENT ADC_AWD3_EVENT -#define OVR_EVENT ADC_OVR_EVENT -#define JQOVF_EVENT ADC_JQOVF_EVENT -#define ALL_CHANNELS ADC_ALL_CHANNELS -#define REGULAR_CHANNELS ADC_REGULAR_CHANNELS -#define INJECTED_CHANNELS ADC_INJECTED_CHANNELS -#define SYSCFG_FLAG_SENSOR_ADC ADC_FLAG_SENSOR -#define SYSCFG_FLAG_VREF_ADC ADC_FLAG_VREFINT -#define ADC_CLOCKPRESCALER_PCLK_DIV1 ADC_CLOCK_SYNC_PCLK_DIV1 -#define ADC_CLOCKPRESCALER_PCLK_DIV2 ADC_CLOCK_SYNC_PCLK_DIV2 -#define ADC_CLOCKPRESCALER_PCLK_DIV4 ADC_CLOCK_SYNC_PCLK_DIV4 -#define ADC_CLOCKPRESCALER_PCLK_DIV6 ADC_CLOCK_SYNC_PCLK_DIV6 -#define ADC_CLOCKPRESCALER_PCLK_DIV8 ADC_CLOCK_SYNC_PCLK_DIV8 -#define ADC_EXTERNALTRIG0_T6_TRGO ADC_EXTERNALTRIGCONV_T6_TRGO -#define ADC_EXTERNALTRIG1_T21_CC2 ADC_EXTERNALTRIGCONV_T21_CC2 -#define ADC_EXTERNALTRIG2_T2_TRGO ADC_EXTERNALTRIGCONV_T2_TRGO -#define ADC_EXTERNALTRIG3_T2_CC4 ADC_EXTERNALTRIGCONV_T2_CC4 -#define ADC_EXTERNALTRIG4_T22_TRGO ADC_EXTERNALTRIGCONV_T22_TRGO -#define ADC_EXTERNALTRIG7_EXT_IT11 ADC_EXTERNALTRIGCONV_EXT_IT11 -#define ADC_CLOCK_ASYNC ADC_CLOCK_ASYNC_DIV1 -#define ADC_EXTERNALTRIG_EDGE_NONE ADC_EXTERNALTRIGCONVEDGE_NONE -#define ADC_EXTERNALTRIG_EDGE_RISING ADC_EXTERNALTRIGCONVEDGE_RISING -#define ADC_EXTERNALTRIG_EDGE_FALLING ADC_EXTERNALTRIGCONVEDGE_FALLING -#define ADC_EXTERNALTRIG_EDGE_RISINGFALLING ADC_EXTERNALTRIGCONVEDGE_RISINGFALLING -#define ADC_SAMPLETIME_2CYCLE_5 ADC_SAMPLETIME_2CYCLES_5 - -#define HAL_ADC_STATE_BUSY_REG HAL_ADC_STATE_REG_BUSY -#define HAL_ADC_STATE_BUSY_INJ HAL_ADC_STATE_INJ_BUSY -#define HAL_ADC_STATE_EOC_REG HAL_ADC_STATE_REG_EOC -#define HAL_ADC_STATE_EOC_INJ HAL_ADC_STATE_INJ_EOC -#define HAL_ADC_STATE_ERROR HAL_ADC_STATE_ERROR_INTERNAL -#define HAL_ADC_STATE_BUSY HAL_ADC_STATE_BUSY_INTERNAL -#define HAL_ADC_STATE_AWD HAL_ADC_STATE_AWD1 - -#if defined(STM32H7) -#define ADC_CHANNEL_VBAT_DIV4 ADC_CHANNEL_VBAT -#endif /* STM32H7 */ - -#if defined(STM32U5) -#define ADC_SAMPLETIME_5CYCLE ADC_SAMPLETIME_5CYCLES -#define ADC_SAMPLETIME_391CYCLES_5 ADC_SAMPLETIME_391CYCLES -#define ADC4_SAMPLETIME_160CYCLES_5 ADC4_SAMPLETIME_814CYCLES_5 -#endif /* STM32U5 */ - -/** - * @} - */ - -/** @defgroup HAL_CEC_Aliased_Defines HAL CEC Aliased Defines maintained for legacy purpose - * @{ - */ - -#define __HAL_CEC_GET_IT __HAL_CEC_GET_FLAG - -/** - * @} - */ - -/** @defgroup HAL_COMP_Aliased_Defines HAL COMP Aliased Defines maintained for legacy purpose - * @{ - */ -#define COMP_WINDOWMODE_DISABLED COMP_WINDOWMODE_DISABLE -#define COMP_WINDOWMODE_ENABLED COMP_WINDOWMODE_ENABLE -#define COMP_EXTI_LINE_COMP1_EVENT COMP_EXTI_LINE_COMP1 -#define COMP_EXTI_LINE_COMP2_EVENT COMP_EXTI_LINE_COMP2 -#define COMP_EXTI_LINE_COMP3_EVENT COMP_EXTI_LINE_COMP3 -#define COMP_EXTI_LINE_COMP4_EVENT COMP_EXTI_LINE_COMP4 -#define COMP_EXTI_LINE_COMP5_EVENT COMP_EXTI_LINE_COMP5 -#define COMP_EXTI_LINE_COMP6_EVENT COMP_EXTI_LINE_COMP6 -#define COMP_EXTI_LINE_COMP7_EVENT COMP_EXTI_LINE_COMP7 -#if defined(STM32L0) -#define COMP_LPTIMCONNECTION_ENABLED ((uint32_t)0x00000003U) /*!< COMPX output generic naming: connected to LPTIM input 1 for COMP1, LPTIM input 2 for COMP2 */ -#endif -#define COMP_OUTPUT_COMP6TIM2OCREFCLR COMP_OUTPUT_COMP6_TIM2OCREFCLR -#if defined(STM32F373xC) || defined(STM32F378xx) -#define COMP_OUTPUT_TIM3IC1 COMP_OUTPUT_COMP1_TIM3IC1 -#define COMP_OUTPUT_TIM3OCREFCLR COMP_OUTPUT_COMP1_TIM3OCREFCLR -#endif /* STM32F373xC || STM32F378xx */ - -#if defined(STM32L0) || defined(STM32L4) -#define COMP_WINDOWMODE_ENABLE COMP_WINDOWMODE_COMP1_INPUT_PLUS_COMMON - -#define COMP_NONINVERTINGINPUT_IO1 COMP_INPUT_PLUS_IO1 -#define COMP_NONINVERTINGINPUT_IO2 COMP_INPUT_PLUS_IO2 -#define COMP_NONINVERTINGINPUT_IO3 COMP_INPUT_PLUS_IO3 -#define COMP_NONINVERTINGINPUT_IO4 COMP_INPUT_PLUS_IO4 -#define COMP_NONINVERTINGINPUT_IO5 COMP_INPUT_PLUS_IO5 -#define COMP_NONINVERTINGINPUT_IO6 COMP_INPUT_PLUS_IO6 - -#define COMP_INVERTINGINPUT_1_4VREFINT COMP_INPUT_MINUS_1_4VREFINT -#define COMP_INVERTINGINPUT_1_2VREFINT COMP_INPUT_MINUS_1_2VREFINT -#define COMP_INVERTINGINPUT_3_4VREFINT COMP_INPUT_MINUS_3_4VREFINT -#define COMP_INVERTINGINPUT_VREFINT COMP_INPUT_MINUS_VREFINT -#define COMP_INVERTINGINPUT_DAC1_CH1 COMP_INPUT_MINUS_DAC1_CH1 -#define COMP_INVERTINGINPUT_DAC1_CH2 COMP_INPUT_MINUS_DAC1_CH2 -#define COMP_INVERTINGINPUT_DAC1 COMP_INPUT_MINUS_DAC1_CH1 -#define COMP_INVERTINGINPUT_DAC2 COMP_INPUT_MINUS_DAC1_CH2 -#define COMP_INVERTINGINPUT_IO1 COMP_INPUT_MINUS_IO1 -#if defined(STM32L0) -/* Issue fixed on STM32L0 COMP driver: only 2 dedicated IO (IO1 and IO2), */ -/* IO2 was wrongly assigned to IO shared with DAC and IO3 was corresponding */ -/* to the second dedicated IO (only for COMP2). */ -#define COMP_INVERTINGINPUT_IO2 COMP_INPUT_MINUS_DAC1_CH2 -#define COMP_INVERTINGINPUT_IO3 COMP_INPUT_MINUS_IO2 -#else -#define COMP_INVERTINGINPUT_IO2 COMP_INPUT_MINUS_IO2 -#define COMP_INVERTINGINPUT_IO3 COMP_INPUT_MINUS_IO3 -#endif -#define COMP_INVERTINGINPUT_IO4 COMP_INPUT_MINUS_IO4 -#define COMP_INVERTINGINPUT_IO5 COMP_INPUT_MINUS_IO5 - -#define COMP_OUTPUTLEVEL_LOW COMP_OUTPUT_LEVEL_LOW -#define COMP_OUTPUTLEVEL_HIGH COMP_OUTPUT_LEVEL_HIGH - -/* Note: Literal "COMP_FLAG_LOCK" kept for legacy purpose. */ -/* To check COMP lock state, use macro "__HAL_COMP_IS_LOCKED()". */ -#if defined(COMP_CSR_LOCK) -#define COMP_FLAG_LOCK COMP_CSR_LOCK -#elif defined(COMP_CSR_COMP1LOCK) -#define COMP_FLAG_LOCK COMP_CSR_COMP1LOCK -#elif defined(COMP_CSR_COMPxLOCK) -#define COMP_FLAG_LOCK COMP_CSR_COMPxLOCK -#endif - -#if defined(STM32L4) -#define COMP_BLANKINGSRCE_TIM1OC5 COMP_BLANKINGSRC_TIM1_OC5_COMP1 -#define COMP_BLANKINGSRCE_TIM2OC3 COMP_BLANKINGSRC_TIM2_OC3_COMP1 -#define COMP_BLANKINGSRCE_TIM3OC3 COMP_BLANKINGSRC_TIM3_OC3_COMP1 -#define COMP_BLANKINGSRCE_TIM3OC4 COMP_BLANKINGSRC_TIM3_OC4_COMP2 -#define COMP_BLANKINGSRCE_TIM8OC5 COMP_BLANKINGSRC_TIM8_OC5_COMP2 -#define COMP_BLANKINGSRCE_TIM15OC1 COMP_BLANKINGSRC_TIM15_OC1_COMP2 -#define COMP_BLANKINGSRCE_NONE COMP_BLANKINGSRC_NONE -#endif - -#if defined(STM32L0) -#define COMP_MODE_HIGHSPEED COMP_POWERMODE_MEDIUMSPEED -#define COMP_MODE_LOWSPEED COMP_POWERMODE_ULTRALOWPOWER -#else -#define COMP_MODE_HIGHSPEED COMP_POWERMODE_HIGHSPEED -#define COMP_MODE_MEDIUMSPEED COMP_POWERMODE_MEDIUMSPEED -#define COMP_MODE_LOWPOWER COMP_POWERMODE_LOWPOWER -#define COMP_MODE_ULTRALOWPOWER COMP_POWERMODE_ULTRALOWPOWER -#endif - -#endif - -#if defined(STM32U5) -#define __HAL_COMP_COMP1_EXTI_CLEAR_RASING_FLAG __HAL_COMP_COMP1_EXTI_CLEAR_RISING_FLAG -#endif - -/** - * @} - */ - -/** @defgroup HAL_CORTEX_Aliased_Defines HAL CORTEX Aliased Defines maintained for legacy purpose - * @{ - */ -#define __HAL_CORTEX_SYSTICKCLK_CONFIG HAL_SYSTICK_CLKSourceConfig -#if defined(STM32U5) -#define MPU_DEVICE_nGnRnE MPU_DEVICE_NGNRNE -#define MPU_DEVICE_nGnRE MPU_DEVICE_NGNRE -#define MPU_DEVICE_nGRE MPU_DEVICE_NGRE -#endif /* STM32U5 */ -/** - * @} - */ - -/** @defgroup CRC_Aliases CRC API aliases - * @{ - */ -#if defined(STM32C0) -#else -#define HAL_CRC_Input_Data_Reverse HAL_CRCEx_Input_Data_Reverse /*!< Aliased to HAL_CRCEx_Input_Data_Reverse for inter STM32 series compatibility */ -#define HAL_CRC_Output_Data_Reverse HAL_CRCEx_Output_Data_Reverse /*!< Aliased to HAL_CRCEx_Output_Data_Reverse for inter STM32 series compatibility */ -#endif -/** - * @} - */ - -/** @defgroup HAL_CRC_Aliased_Defines HAL CRC Aliased Defines maintained for legacy purpose - * @{ - */ - -#define CRC_OUTPUTDATA_INVERSION_DISABLED CRC_OUTPUTDATA_INVERSION_DISABLE -#define CRC_OUTPUTDATA_INVERSION_ENABLED CRC_OUTPUTDATA_INVERSION_ENABLE - -/** - * @} - */ - -/** @defgroup HAL_DAC_Aliased_Defines HAL DAC Aliased Defines maintained for legacy purpose - * @{ - */ - -#define DAC1_CHANNEL_1 DAC_CHANNEL_1 -#define DAC1_CHANNEL_2 DAC_CHANNEL_2 -#define DAC2_CHANNEL_1 DAC_CHANNEL_1 -#define DAC_WAVE_NONE 0x00000000U -#define DAC_WAVE_NOISE DAC_CR_WAVE1_0 -#define DAC_WAVE_TRIANGLE DAC_CR_WAVE1_1 -#define DAC_WAVEGENERATION_NONE DAC_WAVE_NONE -#define DAC_WAVEGENERATION_NOISE DAC_WAVE_NOISE -#define DAC_WAVEGENERATION_TRIANGLE DAC_WAVE_TRIANGLE - -#if defined(STM32G4) || defined(STM32L5) || defined(STM32H7) || defined (STM32U5) -#define DAC_CHIPCONNECT_DISABLE DAC_CHIPCONNECT_EXTERNAL -#define DAC_CHIPCONNECT_ENABLE DAC_CHIPCONNECT_INTERNAL -#endif - -#if defined(STM32U5) -#define DAC_TRIGGER_STOP_LPTIM1_OUT DAC_TRIGGER_STOP_LPTIM1_CH1 -#define DAC_TRIGGER_STOP_LPTIM3_OUT DAC_TRIGGER_STOP_LPTIM3_CH1 -#define DAC_TRIGGER_LPTIM1_OUT DAC_TRIGGER_LPTIM1_CH1 -#define DAC_TRIGGER_LPTIM3_OUT DAC_TRIGGER_LPTIM3_CH1 -#endif - -#if defined(STM32L1) || defined(STM32L4) || defined(STM32G0) || defined(STM32L5) || defined(STM32H7) || defined(STM32F4) || defined(STM32G4) -#define HAL_DAC_MSP_INIT_CB_ID HAL_DAC_MSPINIT_CB_ID -#define HAL_DAC_MSP_DEINIT_CB_ID HAL_DAC_MSPDEINIT_CB_ID -#endif - -/** - * @} - */ - -/** @defgroup HAL_DMA_Aliased_Defines HAL DMA Aliased Defines maintained for legacy purpose - * @{ - */ -#define HAL_REMAPDMA_ADC_DMA_CH2 DMA_REMAP_ADC_DMA_CH2 -#define HAL_REMAPDMA_USART1_TX_DMA_CH4 DMA_REMAP_USART1_TX_DMA_CH4 -#define HAL_REMAPDMA_USART1_RX_DMA_CH5 DMA_REMAP_USART1_RX_DMA_CH5 -#define HAL_REMAPDMA_TIM16_DMA_CH4 DMA_REMAP_TIM16_DMA_CH4 -#define HAL_REMAPDMA_TIM17_DMA_CH2 DMA_REMAP_TIM17_DMA_CH2 -#define HAL_REMAPDMA_USART3_DMA_CH32 DMA_REMAP_USART3_DMA_CH32 -#define HAL_REMAPDMA_TIM16_DMA_CH6 DMA_REMAP_TIM16_DMA_CH6 -#define HAL_REMAPDMA_TIM17_DMA_CH7 DMA_REMAP_TIM17_DMA_CH7 -#define HAL_REMAPDMA_SPI2_DMA_CH67 DMA_REMAP_SPI2_DMA_CH67 -#define HAL_REMAPDMA_USART2_DMA_CH67 DMA_REMAP_USART2_DMA_CH67 -#define HAL_REMAPDMA_I2C1_DMA_CH76 DMA_REMAP_I2C1_DMA_CH76 -#define HAL_REMAPDMA_TIM1_DMA_CH6 DMA_REMAP_TIM1_DMA_CH6 -#define HAL_REMAPDMA_TIM2_DMA_CH7 DMA_REMAP_TIM2_DMA_CH7 -#define HAL_REMAPDMA_TIM3_DMA_CH6 DMA_REMAP_TIM3_DMA_CH6 - -#define IS_HAL_REMAPDMA IS_DMA_REMAP -#define __HAL_REMAPDMA_CHANNEL_ENABLE __HAL_DMA_REMAP_CHANNEL_ENABLE -#define __HAL_REMAPDMA_CHANNEL_DISABLE __HAL_DMA_REMAP_CHANNEL_DISABLE - -#if defined(STM32L4) - -#define HAL_DMAMUX1_REQUEST_GEN_EXTI0 HAL_DMAMUX1_REQ_GEN_EXTI0 -#define HAL_DMAMUX1_REQUEST_GEN_EXTI1 HAL_DMAMUX1_REQ_GEN_EXTI1 -#define HAL_DMAMUX1_REQUEST_GEN_EXTI2 HAL_DMAMUX1_REQ_GEN_EXTI2 -#define HAL_DMAMUX1_REQUEST_GEN_EXTI3 HAL_DMAMUX1_REQ_GEN_EXTI3 -#define HAL_DMAMUX1_REQUEST_GEN_EXTI4 HAL_DMAMUX1_REQ_GEN_EXTI4 -#define HAL_DMAMUX1_REQUEST_GEN_EXTI5 HAL_DMAMUX1_REQ_GEN_EXTI5 -#define HAL_DMAMUX1_REQUEST_GEN_EXTI6 HAL_DMAMUX1_REQ_GEN_EXTI6 -#define HAL_DMAMUX1_REQUEST_GEN_EXTI7 HAL_DMAMUX1_REQ_GEN_EXTI7 -#define HAL_DMAMUX1_REQUEST_GEN_EXTI8 HAL_DMAMUX1_REQ_GEN_EXTI8 -#define HAL_DMAMUX1_REQUEST_GEN_EXTI9 HAL_DMAMUX1_REQ_GEN_EXTI9 -#define HAL_DMAMUX1_REQUEST_GEN_EXTI10 HAL_DMAMUX1_REQ_GEN_EXTI10 -#define HAL_DMAMUX1_REQUEST_GEN_EXTI11 HAL_DMAMUX1_REQ_GEN_EXTI11 -#define HAL_DMAMUX1_REQUEST_GEN_EXTI12 HAL_DMAMUX1_REQ_GEN_EXTI12 -#define HAL_DMAMUX1_REQUEST_GEN_EXTI13 HAL_DMAMUX1_REQ_GEN_EXTI13 -#define HAL_DMAMUX1_REQUEST_GEN_EXTI14 HAL_DMAMUX1_REQ_GEN_EXTI14 -#define HAL_DMAMUX1_REQUEST_GEN_EXTI15 HAL_DMAMUX1_REQ_GEN_EXTI15 -#define HAL_DMAMUX1_REQUEST_GEN_DMAMUX1_CH0_EVT HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH0_EVT -#define HAL_DMAMUX1_REQUEST_GEN_DMAMUX1_CH1_EVT HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH1_EVT -#define HAL_DMAMUX1_REQUEST_GEN_DMAMUX1_CH2_EVT HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH2_EVT -#define HAL_DMAMUX1_REQUEST_GEN_DMAMUX1_CH3_EVT HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH3_EVT -#define HAL_DMAMUX1_REQUEST_GEN_LPTIM1_OUT HAL_DMAMUX1_REQ_GEN_LPTIM1_OUT -#define HAL_DMAMUX1_REQUEST_GEN_LPTIM2_OUT HAL_DMAMUX1_REQ_GEN_LPTIM2_OUT -#define HAL_DMAMUX1_REQUEST_GEN_DSI_TE HAL_DMAMUX1_REQ_GEN_DSI_TE -#define HAL_DMAMUX1_REQUEST_GEN_DSI_EOT HAL_DMAMUX1_REQ_GEN_DSI_EOT -#define HAL_DMAMUX1_REQUEST_GEN_DMA2D_EOT HAL_DMAMUX1_REQ_GEN_DMA2D_EOT -#define HAL_DMAMUX1_REQUEST_GEN_LTDC_IT HAL_DMAMUX1_REQ_GEN_LTDC_IT - -#define HAL_DMAMUX_REQUEST_GEN_NO_EVENT HAL_DMAMUX_REQ_GEN_NO_EVENT -#define HAL_DMAMUX_REQUEST_GEN_RISING HAL_DMAMUX_REQ_GEN_RISING -#define HAL_DMAMUX_REQUEST_GEN_FALLING HAL_DMAMUX_REQ_GEN_FALLING -#define HAL_DMAMUX_REQUEST_GEN_RISING_FALLING HAL_DMAMUX_REQ_GEN_RISING_FALLING - -#if defined(STM32L4R5xx) || defined(STM32L4R9xx) || defined(STM32L4R9xx) || defined(STM32L4S5xx) || defined(STM32L4S7xx) || defined(STM32L4S9xx) -#define DMA_REQUEST_DCMI_PSSI DMA_REQUEST_DCMI -#endif - -#endif /* STM32L4 */ - -#if defined(STM32G0) -#define DMA_REQUEST_DAC1_CHANNEL1 DMA_REQUEST_DAC1_CH1 -#define DMA_REQUEST_DAC1_CHANNEL2 DMA_REQUEST_DAC1_CH2 -#define DMA_REQUEST_TIM16_TRIG_COM DMA_REQUEST_TIM16_COM -#define DMA_REQUEST_TIM17_TRIG_COM DMA_REQUEST_TIM17_COM - -#define LL_DMAMUX_REQ_TIM16_TRIG_COM LL_DMAMUX_REQ_TIM16_COM -#define LL_DMAMUX_REQ_TIM17_TRIG_COM LL_DMAMUX_REQ_TIM17_COM -#endif - -#if defined(STM32H7) - -#define DMA_REQUEST_DAC1 DMA_REQUEST_DAC1_CH1 -#define DMA_REQUEST_DAC2 DMA_REQUEST_DAC1_CH2 - -#define BDMA_REQUEST_LP_UART1_RX BDMA_REQUEST_LPUART1_RX -#define BDMA_REQUEST_LP_UART1_TX BDMA_REQUEST_LPUART1_TX - -#define HAL_DMAMUX1_REQUEST_GEN_DMAMUX1_CH0_EVT HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH0_EVT -#define HAL_DMAMUX1_REQUEST_GEN_DMAMUX1_CH1_EVT HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH1_EVT -#define HAL_DMAMUX1_REQUEST_GEN_DMAMUX1_CH2_EVT HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH2_EVT -#define HAL_DMAMUX1_REQUEST_GEN_LPTIM1_OUT HAL_DMAMUX1_REQ_GEN_LPTIM1_OUT -#define HAL_DMAMUX1_REQUEST_GEN_LPTIM2_OUT HAL_DMAMUX1_REQ_GEN_LPTIM2_OUT -#define HAL_DMAMUX1_REQUEST_GEN_LPTIM3_OUT HAL_DMAMUX1_REQ_GEN_LPTIM3_OUT -#define HAL_DMAMUX1_REQUEST_GEN_EXTI0 HAL_DMAMUX1_REQ_GEN_EXTI0 -#define HAL_DMAMUX1_REQUEST_GEN_TIM12_TRGO HAL_DMAMUX1_REQ_GEN_TIM12_TRGO - -#define HAL_DMAMUX2_REQUEST_GEN_DMAMUX2_CH0_EVT HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH0_EVT -#define HAL_DMAMUX2_REQUEST_GEN_DMAMUX2_CH1_EVT HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH1_EVT -#define HAL_DMAMUX2_REQUEST_GEN_DMAMUX2_CH2_EVT HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH2_EVT -#define HAL_DMAMUX2_REQUEST_GEN_DMAMUX2_CH3_EVT HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH3_EVT -#define HAL_DMAMUX2_REQUEST_GEN_DMAMUX2_CH4_EVT HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH4_EVT -#define HAL_DMAMUX2_REQUEST_GEN_DMAMUX2_CH5_EVT HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH5_EVT -#define HAL_DMAMUX2_REQUEST_GEN_DMAMUX2_CH6_EVT HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH6_EVT -#define HAL_DMAMUX2_REQUEST_GEN_LPUART1_RX_WKUP HAL_DMAMUX2_REQ_GEN_LPUART1_RX_WKUP -#define HAL_DMAMUX2_REQUEST_GEN_LPUART1_TX_WKUP HAL_DMAMUX2_REQ_GEN_LPUART1_TX_WKUP -#define HAL_DMAMUX2_REQUEST_GEN_LPTIM2_WKUP HAL_DMAMUX2_REQ_GEN_LPTIM2_WKUP -#define HAL_DMAMUX2_REQUEST_GEN_LPTIM2_OUT HAL_DMAMUX2_REQ_GEN_LPTIM2_OUT -#define HAL_DMAMUX2_REQUEST_GEN_LPTIM3_WKUP HAL_DMAMUX2_REQ_GEN_LPTIM3_WKUP -#define HAL_DMAMUX2_REQUEST_GEN_LPTIM3_OUT HAL_DMAMUX2_REQ_GEN_LPTIM3_OUT -#define HAL_DMAMUX2_REQUEST_GEN_LPTIM4_WKUP HAL_DMAMUX2_REQ_GEN_LPTIM4_WKUP -#define HAL_DMAMUX2_REQUEST_GEN_LPTIM5_WKUP HAL_DMAMUX2_REQ_GEN_LPTIM5_WKUP -#define HAL_DMAMUX2_REQUEST_GEN_I2C4_WKUP HAL_DMAMUX2_REQ_GEN_I2C4_WKUP -#define HAL_DMAMUX2_REQUEST_GEN_SPI6_WKUP HAL_DMAMUX2_REQ_GEN_SPI6_WKUP -#define HAL_DMAMUX2_REQUEST_GEN_COMP1_OUT HAL_DMAMUX2_REQ_GEN_COMP1_OUT -#define HAL_DMAMUX2_REQUEST_GEN_COMP2_OUT HAL_DMAMUX2_REQ_GEN_COMP2_OUT -#define HAL_DMAMUX2_REQUEST_GEN_RTC_WKUP HAL_DMAMUX2_REQ_GEN_RTC_WKUP -#define HAL_DMAMUX2_REQUEST_GEN_EXTI0 HAL_DMAMUX2_REQ_GEN_EXTI0 -#define HAL_DMAMUX2_REQUEST_GEN_EXTI2 HAL_DMAMUX2_REQ_GEN_EXTI2 -#define HAL_DMAMUX2_REQUEST_GEN_I2C4_IT_EVT HAL_DMAMUX2_REQ_GEN_I2C4_IT_EVT -#define HAL_DMAMUX2_REQUEST_GEN_SPI6_IT HAL_DMAMUX2_REQ_GEN_SPI6_IT -#define HAL_DMAMUX2_REQUEST_GEN_LPUART1_TX_IT HAL_DMAMUX2_REQ_GEN_LPUART1_TX_IT -#define HAL_DMAMUX2_REQUEST_GEN_LPUART1_RX_IT HAL_DMAMUX2_REQ_GEN_LPUART1_RX_IT -#define HAL_DMAMUX2_REQUEST_GEN_ADC3_IT HAL_DMAMUX2_REQ_GEN_ADC3_IT -#define HAL_DMAMUX2_REQUEST_GEN_ADC3_AWD1_OUT HAL_DMAMUX2_REQ_GEN_ADC3_AWD1_OUT -#define HAL_DMAMUX2_REQUEST_GEN_BDMA_CH0_IT HAL_DMAMUX2_REQ_GEN_BDMA_CH0_IT -#define HAL_DMAMUX2_REQUEST_GEN_BDMA_CH1_IT HAL_DMAMUX2_REQ_GEN_BDMA_CH1_IT - -#define HAL_DMAMUX_REQUEST_GEN_NO_EVENT HAL_DMAMUX_REQ_GEN_NO_EVENT -#define HAL_DMAMUX_REQUEST_GEN_RISING HAL_DMAMUX_REQ_GEN_RISING -#define HAL_DMAMUX_REQUEST_GEN_FALLING HAL_DMAMUX_REQ_GEN_FALLING -#define HAL_DMAMUX_REQUEST_GEN_RISING_FALLING HAL_DMAMUX_REQ_GEN_RISING_FALLING - -#define DFSDM_FILTER_EXT_TRIG_LPTIM1 DFSDM_FILTER_EXT_TRIG_LPTIM1_OUT -#define DFSDM_FILTER_EXT_TRIG_LPTIM2 DFSDM_FILTER_EXT_TRIG_LPTIM2_OUT -#define DFSDM_FILTER_EXT_TRIG_LPTIM3 DFSDM_FILTER_EXT_TRIG_LPTIM3_OUT - -#define DAC_TRIGGER_LP1_OUT DAC_TRIGGER_LPTIM1_OUT -#define DAC_TRIGGER_LP2_OUT DAC_TRIGGER_LPTIM2_OUT - -#endif /* STM32H7 */ - -#if defined(STM32U5) -#define GPDMA1_REQUEST_DCMI GPDMA1_REQUEST_DCMI_PSSI -#endif /* STM32U5 */ -/** - * @} - */ - -/** @defgroup HAL_FLASH_Aliased_Defines HAL FLASH Aliased Defines maintained for legacy purpose - * @{ - */ - -#define TYPEPROGRAM_BYTE FLASH_TYPEPROGRAM_BYTE -#define TYPEPROGRAM_HALFWORD FLASH_TYPEPROGRAM_HALFWORD -#define TYPEPROGRAM_WORD FLASH_TYPEPROGRAM_WORD -#define TYPEPROGRAM_DOUBLEWORD FLASH_TYPEPROGRAM_DOUBLEWORD -#define TYPEERASE_SECTORS FLASH_TYPEERASE_SECTORS -#define TYPEERASE_PAGES FLASH_TYPEERASE_PAGES -#define TYPEERASE_PAGEERASE FLASH_TYPEERASE_PAGES -#define TYPEERASE_MASSERASE FLASH_TYPEERASE_MASSERASE -#define WRPSTATE_DISABLE OB_WRPSTATE_DISABLE -#define WRPSTATE_ENABLE OB_WRPSTATE_ENABLE -#define HAL_FLASH_TIMEOUT_VALUE FLASH_TIMEOUT_VALUE -#define OBEX_PCROP OPTIONBYTE_PCROP -#define OBEX_BOOTCONFIG OPTIONBYTE_BOOTCONFIG -#define PCROPSTATE_DISABLE OB_PCROP_STATE_DISABLE -#define PCROPSTATE_ENABLE OB_PCROP_STATE_ENABLE -#define TYPEERASEDATA_BYTE FLASH_TYPEERASEDATA_BYTE -#define TYPEERASEDATA_HALFWORD FLASH_TYPEERASEDATA_HALFWORD -#define TYPEERASEDATA_WORD FLASH_TYPEERASEDATA_WORD -#define TYPEPROGRAMDATA_BYTE FLASH_TYPEPROGRAMDATA_BYTE -#define TYPEPROGRAMDATA_HALFWORD FLASH_TYPEPROGRAMDATA_HALFWORD -#define TYPEPROGRAMDATA_WORD FLASH_TYPEPROGRAMDATA_WORD -#define TYPEPROGRAMDATA_FASTBYTE FLASH_TYPEPROGRAMDATA_FASTBYTE -#define TYPEPROGRAMDATA_FASTHALFWORD FLASH_TYPEPROGRAMDATA_FASTHALFWORD -#define TYPEPROGRAMDATA_FASTWORD FLASH_TYPEPROGRAMDATA_FASTWORD -#define PAGESIZE FLASH_PAGE_SIZE -#define TYPEPROGRAM_FASTBYTE FLASH_TYPEPROGRAM_BYTE -#define TYPEPROGRAM_FASTHALFWORD FLASH_TYPEPROGRAM_HALFWORD -#define TYPEPROGRAM_FASTWORD FLASH_TYPEPROGRAM_WORD -#define VOLTAGE_RANGE_1 FLASH_VOLTAGE_RANGE_1 -#define VOLTAGE_RANGE_2 FLASH_VOLTAGE_RANGE_2 -#define VOLTAGE_RANGE_3 FLASH_VOLTAGE_RANGE_3 -#define VOLTAGE_RANGE_4 FLASH_VOLTAGE_RANGE_4 -#define TYPEPROGRAM_FAST FLASH_TYPEPROGRAM_FAST -#define TYPEPROGRAM_FAST_AND_LAST FLASH_TYPEPROGRAM_FAST_AND_LAST -#define WRPAREA_BANK1_AREAA OB_WRPAREA_BANK1_AREAA -#define WRPAREA_BANK1_AREAB OB_WRPAREA_BANK1_AREAB -#define WRPAREA_BANK2_AREAA OB_WRPAREA_BANK2_AREAA -#define WRPAREA_BANK2_AREAB OB_WRPAREA_BANK2_AREAB -#define IWDG_STDBY_FREEZE OB_IWDG_STDBY_FREEZE -#define IWDG_STDBY_ACTIVE OB_IWDG_STDBY_RUN -#define IWDG_STOP_FREEZE OB_IWDG_STOP_FREEZE -#define IWDG_STOP_ACTIVE OB_IWDG_STOP_RUN -#define FLASH_ERROR_NONE HAL_FLASH_ERROR_NONE -#define FLASH_ERROR_RD HAL_FLASH_ERROR_RD -#define FLASH_ERROR_PG HAL_FLASH_ERROR_PROG -#define FLASH_ERROR_PGP HAL_FLASH_ERROR_PGS -#define FLASH_ERROR_WRP HAL_FLASH_ERROR_WRP -#define FLASH_ERROR_OPTV HAL_FLASH_ERROR_OPTV -#define FLASH_ERROR_OPTVUSR HAL_FLASH_ERROR_OPTVUSR -#define FLASH_ERROR_PROG HAL_FLASH_ERROR_PROG -#define FLASH_ERROR_OP HAL_FLASH_ERROR_OPERATION -#define FLASH_ERROR_PGA HAL_FLASH_ERROR_PGA -#define FLASH_ERROR_SIZE HAL_FLASH_ERROR_SIZE -#define FLASH_ERROR_SIZ HAL_FLASH_ERROR_SIZE -#define FLASH_ERROR_PGS HAL_FLASH_ERROR_PGS -#define FLASH_ERROR_MIS HAL_FLASH_ERROR_MIS -#define FLASH_ERROR_FAST HAL_FLASH_ERROR_FAST -#define FLASH_ERROR_FWWERR HAL_FLASH_ERROR_FWWERR -#define FLASH_ERROR_NOTZERO HAL_FLASH_ERROR_NOTZERO -#define FLASH_ERROR_OPERATION HAL_FLASH_ERROR_OPERATION -#define FLASH_ERROR_ERS HAL_FLASH_ERROR_ERS -#define OB_WDG_SW OB_IWDG_SW -#define OB_WDG_HW OB_IWDG_HW -#define OB_SDADC12_VDD_MONITOR_SET OB_SDACD_VDD_MONITOR_SET -#define OB_SDADC12_VDD_MONITOR_RESET OB_SDACD_VDD_MONITOR_RESET -#define OB_RAM_PARITY_CHECK_SET OB_SRAM_PARITY_SET -#define OB_RAM_PARITY_CHECK_RESET OB_SRAM_PARITY_RESET -#define IS_OB_SDADC12_VDD_MONITOR IS_OB_SDACD_VDD_MONITOR -#define OB_RDP_LEVEL0 OB_RDP_LEVEL_0 -#define OB_RDP_LEVEL1 OB_RDP_LEVEL_1 -#define OB_RDP_LEVEL2 OB_RDP_LEVEL_2 -#if defined(STM32G0) || defined(STM32C0) -#define OB_BOOT_LOCK_DISABLE OB_BOOT_ENTRY_FORCED_NONE -#define OB_BOOT_LOCK_ENABLE OB_BOOT_ENTRY_FORCED_FLASH -#else -#define OB_BOOT_ENTRY_FORCED_NONE OB_BOOT_LOCK_DISABLE -#define OB_BOOT_ENTRY_FORCED_FLASH OB_BOOT_LOCK_ENABLE -#endif -#if defined(STM32H7) -#define FLASH_FLAG_SNECCE_BANK1RR FLASH_FLAG_SNECCERR_BANK1 -#define FLASH_FLAG_DBECCE_BANK1RR FLASH_FLAG_DBECCERR_BANK1 -#define FLASH_FLAG_STRBER_BANK1R FLASH_FLAG_STRBERR_BANK1 -#define FLASH_FLAG_SNECCE_BANK2RR FLASH_FLAG_SNECCERR_BANK2 -#define FLASH_FLAG_DBECCE_BANK2RR FLASH_FLAG_DBECCERR_BANK2 -#define FLASH_FLAG_STRBER_BANK2R FLASH_FLAG_STRBERR_BANK2 -#define FLASH_FLAG_WDW FLASH_FLAG_WBNE -#define OB_WRP_SECTOR_All OB_WRP_SECTOR_ALL -#endif /* STM32H7 */ -#if defined(STM32U5) -#define OB_USER_nRST_STOP OB_USER_NRST_STOP -#define OB_USER_nRST_STDBY OB_USER_NRST_STDBY -#define OB_USER_nRST_SHDW OB_USER_NRST_SHDW -#define OB_USER_nSWBOOT0 OB_USER_NSWBOOT0 -#define OB_USER_nBOOT0 OB_USER_NBOOT0 -#define OB_nBOOT0_RESET OB_NBOOT0_RESET -#define OB_nBOOT0_SET OB_NBOOT0_SET -#define OB_USER_SRAM134_RST OB_USER_SRAM_RST -#define OB_SRAM134_RST_ERASE OB_SRAM_RST_ERASE -#define OB_SRAM134_RST_NOT_ERASE OB_SRAM_RST_NOT_ERASE -#endif /* STM32U5 */ - -/** - * @} - */ - -/** @defgroup HAL_JPEG_Aliased_Macros HAL JPEG Aliased Macros maintained for legacy purpose - * @{ - */ - -#if defined(STM32H7) -#define __HAL_RCC_JPEG_CLK_ENABLE __HAL_RCC_JPGDECEN_CLK_ENABLE -#define __HAL_RCC_JPEG_CLK_DISABLE __HAL_RCC_JPGDECEN_CLK_DISABLE -#define __HAL_RCC_JPEG_FORCE_RESET __HAL_RCC_JPGDECRST_FORCE_RESET -#define __HAL_RCC_JPEG_RELEASE_RESET __HAL_RCC_JPGDECRST_RELEASE_RESET -#define __HAL_RCC_JPEG_CLK_SLEEP_ENABLE __HAL_RCC_JPGDEC_CLK_SLEEP_ENABLE -#define __HAL_RCC_JPEG_CLK_SLEEP_DISABLE __HAL_RCC_JPGDEC_CLK_SLEEP_DISABLE -#endif /* STM32H7 */ - -/** - * @} - */ - -/** @defgroup HAL_SYSCFG_Aliased_Defines HAL SYSCFG Aliased Defines maintained for legacy purpose - * @{ - */ - -#define HAL_SYSCFG_FASTMODEPLUS_I2C_PA9 I2C_FASTMODEPLUS_PA9 -#define HAL_SYSCFG_FASTMODEPLUS_I2C_PA10 I2C_FASTMODEPLUS_PA10 -#define HAL_SYSCFG_FASTMODEPLUS_I2C_PB6 I2C_FASTMODEPLUS_PB6 -#define HAL_SYSCFG_FASTMODEPLUS_I2C_PB7 I2C_FASTMODEPLUS_PB7 -#define HAL_SYSCFG_FASTMODEPLUS_I2C_PB8 I2C_FASTMODEPLUS_PB8 -#define HAL_SYSCFG_FASTMODEPLUS_I2C_PB9 I2C_FASTMODEPLUS_PB9 -#define HAL_SYSCFG_FASTMODEPLUS_I2C1 I2C_FASTMODEPLUS_I2C1 -#define HAL_SYSCFG_FASTMODEPLUS_I2C2 I2C_FASTMODEPLUS_I2C2 -#define HAL_SYSCFG_FASTMODEPLUS_I2C3 I2C_FASTMODEPLUS_I2C3 -#if defined(STM32G4) - -#define HAL_SYSCFG_EnableIOAnalogSwitchBooster HAL_SYSCFG_EnableIOSwitchBooster -#define HAL_SYSCFG_DisableIOAnalogSwitchBooster HAL_SYSCFG_DisableIOSwitchBooster -#define HAL_SYSCFG_EnableIOAnalogSwitchVDD HAL_SYSCFG_EnableIOSwitchVDD -#define HAL_SYSCFG_DisableIOAnalogSwitchVDD HAL_SYSCFG_DisableIOSwitchVDD -#endif /* STM32G4 */ - -/** - * @} - */ - - -/** @defgroup LL_FMC_Aliased_Defines LL FMC Aliased Defines maintained for compatibility purpose - * @{ - */ -#if defined(STM32L4) || defined(STM32F7) || defined(STM32H7) || defined(STM32G4) -#define FMC_NAND_PCC_WAIT_FEATURE_DISABLE FMC_NAND_WAIT_FEATURE_DISABLE -#define FMC_NAND_PCC_WAIT_FEATURE_ENABLE FMC_NAND_WAIT_FEATURE_ENABLE -#define FMC_NAND_PCC_MEM_BUS_WIDTH_8 FMC_NAND_MEM_BUS_WIDTH_8 -#define FMC_NAND_PCC_MEM_BUS_WIDTH_16 FMC_NAND_MEM_BUS_WIDTH_16 -#elif defined(STM32F1) || defined(STM32F2) || defined(STM32F3) || defined(STM32F4) -#define FMC_NAND_WAIT_FEATURE_DISABLE FMC_NAND_PCC_WAIT_FEATURE_DISABLE -#define FMC_NAND_WAIT_FEATURE_ENABLE FMC_NAND_PCC_WAIT_FEATURE_ENABLE -#define FMC_NAND_MEM_BUS_WIDTH_8 FMC_NAND_PCC_MEM_BUS_WIDTH_8 -#define FMC_NAND_MEM_BUS_WIDTH_16 FMC_NAND_PCC_MEM_BUS_WIDTH_16 -#endif -/** - * @} - */ - -/** @defgroup LL_FSMC_Aliased_Defines LL FSMC Aliased Defines maintained for legacy purpose - * @{ - */ - -#define FSMC_NORSRAM_TYPEDEF FSMC_NORSRAM_TypeDef -#define FSMC_NORSRAM_EXTENDED_TYPEDEF FSMC_NORSRAM_EXTENDED_TypeDef -/** - * @} - */ - -/** @defgroup HAL_GPIO_Aliased_Macros HAL GPIO Aliased Macros maintained for legacy purpose - * @{ - */ -#define GET_GPIO_SOURCE GPIO_GET_INDEX -#define GET_GPIO_INDEX GPIO_GET_INDEX - -#if defined(STM32F4) -#define GPIO_AF12_SDMMC GPIO_AF12_SDIO -#define GPIO_AF12_SDMMC1 GPIO_AF12_SDIO -#endif - -#if defined(STM32F7) -#define GPIO_AF12_SDIO GPIO_AF12_SDMMC1 -#define GPIO_AF12_SDMMC GPIO_AF12_SDMMC1 -#endif - -#if defined(STM32L4) -#define GPIO_AF12_SDIO GPIO_AF12_SDMMC1 -#define GPIO_AF12_SDMMC GPIO_AF12_SDMMC1 -#endif - -#if defined(STM32H7) -#define GPIO_AF7_SDIO1 GPIO_AF7_SDMMC1 -#define GPIO_AF8_SDIO1 GPIO_AF8_SDMMC1 -#define GPIO_AF12_SDIO1 GPIO_AF12_SDMMC1 -#define GPIO_AF9_SDIO2 GPIO_AF9_SDMMC2 -#define GPIO_AF10_SDIO2 GPIO_AF10_SDMMC2 -#define GPIO_AF11_SDIO2 GPIO_AF11_SDMMC2 - -#if defined (STM32H743xx) || defined (STM32H753xx) || defined (STM32H750xx) || defined (STM32H742xx) || \ - defined (STM32H745xx) || defined (STM32H755xx) || defined (STM32H747xx) || defined (STM32H757xx) -#define GPIO_AF10_OTG2_HS GPIO_AF10_OTG2_FS -#define GPIO_AF10_OTG1_FS GPIO_AF10_OTG1_HS -#define GPIO_AF12_OTG2_FS GPIO_AF12_OTG1_FS -#endif /*STM32H743xx || STM32H753xx || STM32H750xx || STM32H742xx || STM32H745xx || STM32H755xx || STM32H747xx || STM32H757xx */ -#endif /* STM32H7 */ - -#define GPIO_AF0_LPTIM GPIO_AF0_LPTIM1 -#define GPIO_AF1_LPTIM GPIO_AF1_LPTIM1 -#define GPIO_AF2_LPTIM GPIO_AF2_LPTIM1 - -#if defined(STM32L0) || defined(STM32L4) || defined(STM32F4) || defined(STM32F2) || defined(STM32F7) || defined(STM32G4) || defined(STM32H7) || defined(STM32WB) || defined(STM32U5) -#define GPIO_SPEED_LOW GPIO_SPEED_FREQ_LOW -#define GPIO_SPEED_MEDIUM GPIO_SPEED_FREQ_MEDIUM -#define GPIO_SPEED_FAST GPIO_SPEED_FREQ_HIGH -#define GPIO_SPEED_HIGH GPIO_SPEED_FREQ_VERY_HIGH -#endif /* STM32L0 || STM32L4 || STM32F4 || STM32F2 || STM32F7 || STM32G4 || STM32H7 || STM32WB || STM32U5*/ - -#if defined(STM32L1) -#define GPIO_SPEED_VERY_LOW GPIO_SPEED_FREQ_LOW -#define GPIO_SPEED_LOW GPIO_SPEED_FREQ_MEDIUM -#define GPIO_SPEED_MEDIUM GPIO_SPEED_FREQ_HIGH -#define GPIO_SPEED_HIGH GPIO_SPEED_FREQ_VERY_HIGH -#endif /* STM32L1 */ - -#if defined(STM32F0) || defined(STM32F3) || defined(STM32F1) -#define GPIO_SPEED_LOW GPIO_SPEED_FREQ_LOW -#define GPIO_SPEED_MEDIUM GPIO_SPEED_FREQ_MEDIUM -#define GPIO_SPEED_HIGH GPIO_SPEED_FREQ_HIGH -#endif /* STM32F0 || STM32F3 || STM32F1 */ - -#define GPIO_AF6_DFSDM GPIO_AF6_DFSDM1 - -#if defined(STM32U5) -#define GPIO_AF0_RTC_50Hz GPIO_AF0_RTC_50HZ -#define GPIO_AF0_S2DSTOP GPIO_AF0_SRDSTOP -#define GPIO_AF11_LPGPIO GPIO_AF11_LPGPIO1 -#endif /* STM32U5 */ -/** - * @} - */ - -/** @defgroup HAL_GTZC_Aliased_Defines HAL GTZC Aliased Defines maintained for legacy purpose - * @{ - */ -#if defined(STM32U5) -#define GTZC_PERIPH_DCMI GTZC_PERIPH_DCMI_PSSI -#define GTZC_PERIPH_LTDC GTZC_PERIPH_LTDCUSB -#endif /* STM32U5 */ - -/** - * @} - */ - -/** @defgroup HAL_HRTIM_Aliased_Macros HAL HRTIM Aliased Macros maintained for legacy purpose - * @{ - */ -#define HRTIM_TIMDELAYEDPROTECTION_DISABLED HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DISABLED -#define HRTIM_TIMDELAYEDPROTECTION_DELAYEDOUT1_EEV68 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDOUT1_EEV6 -#define HRTIM_TIMDELAYEDPROTECTION_DELAYEDOUT2_EEV68 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDOUT2_EEV6 -#define HRTIM_TIMDELAYEDPROTECTION_DELAYEDBOTH_EEV68 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDBOTH_EEV6 -#define HRTIM_TIMDELAYEDPROTECTION_BALANCED_EEV68 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_BALANCED_EEV6 -#define HRTIM_TIMDELAYEDPROTECTION_DELAYEDOUT1_DEEV79 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDOUT1_DEEV7 -#define HRTIM_TIMDELAYEDPROTECTION_DELAYEDOUT2_DEEV79 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDOUT2_DEEV7 -#define HRTIM_TIMDELAYEDPROTECTION_DELAYEDBOTH_EEV79 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDBOTH_EEV7 -#define HRTIM_TIMDELAYEDPROTECTION_BALANCED_EEV79 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_BALANCED_EEV7 - -#define __HAL_HRTIM_SetCounter __HAL_HRTIM_SETCOUNTER -#define __HAL_HRTIM_GetCounter __HAL_HRTIM_GETCOUNTER -#define __HAL_HRTIM_SetPeriod __HAL_HRTIM_SETPERIOD -#define __HAL_HRTIM_GetPeriod __HAL_HRTIM_GETPERIOD -#define __HAL_HRTIM_SetClockPrescaler __HAL_HRTIM_SETCLOCKPRESCALER -#define __HAL_HRTIM_GetClockPrescaler __HAL_HRTIM_GETCLOCKPRESCALER -#define __HAL_HRTIM_SetCompare __HAL_HRTIM_SETCOMPARE -#define __HAL_HRTIM_GetCompare __HAL_HRTIM_GETCOMPARE - -#if defined(STM32G4) -#define HAL_HRTIM_ExternalEventCounterConfig HAL_HRTIM_ExtEventCounterConfig -#define HAL_HRTIM_ExternalEventCounterEnable HAL_HRTIM_ExtEventCounterEnable -#define HAL_HRTIM_ExternalEventCounterDisable HAL_HRTIM_ExtEventCounterDisable -#define HAL_HRTIM_ExternalEventCounterReset HAL_HRTIM_ExtEventCounterReset -#define HRTIM_TIMEEVENT_A HRTIM_EVENTCOUNTER_A -#define HRTIM_TIMEEVENT_B HRTIM_EVENTCOUNTER_B -#define HRTIM_TIMEEVENTRESETMODE_UNCONDITIONAL HRTIM_EVENTCOUNTER_RSTMODE_UNCONDITIONAL -#define HRTIM_TIMEEVENTRESETMODE_CONDITIONAL HRTIM_EVENTCOUNTER_RSTMODE_CONDITIONAL -#endif /* STM32G4 */ - -#if defined(STM32H7) -#define HRTIM_OUTPUTSET_TIMAEV1_TIMBCMP1 HRTIM_OUTPUTSET_TIMEV_1 -#define HRTIM_OUTPUTSET_TIMAEV2_TIMBCMP2 HRTIM_OUTPUTSET_TIMEV_2 -#define HRTIM_OUTPUTSET_TIMAEV3_TIMCCMP2 HRTIM_OUTPUTSET_TIMEV_3 -#define HRTIM_OUTPUTSET_TIMAEV4_TIMCCMP3 HRTIM_OUTPUTSET_TIMEV_4 -#define HRTIM_OUTPUTSET_TIMAEV5_TIMDCMP1 HRTIM_OUTPUTSET_TIMEV_5 -#define HRTIM_OUTPUTSET_TIMAEV6_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_6 -#define HRTIM_OUTPUTSET_TIMAEV7_TIMECMP3 HRTIM_OUTPUTSET_TIMEV_7 -#define HRTIM_OUTPUTSET_TIMAEV8_TIMECMP4 HRTIM_OUTPUTSET_TIMEV_8 -#define HRTIM_OUTPUTSET_TIMAEV9_TIMFCMP4 HRTIM_OUTPUTSET_TIMEV_9 -#define HRTIM_OUTPUTSET_TIMBEV1_TIMACMP1 HRTIM_OUTPUTSET_TIMEV_1 -#define HRTIM_OUTPUTSET_TIMBEV2_TIMACMP2 HRTIM_OUTPUTSET_TIMEV_2 -#define HRTIM_OUTPUTSET_TIMBEV3_TIMCCMP3 HRTIM_OUTPUTSET_TIMEV_3 -#define HRTIM_OUTPUTSET_TIMBEV4_TIMCCMP4 HRTIM_OUTPUTSET_TIMEV_4 -#define HRTIM_OUTPUTSET_TIMBEV5_TIMDCMP3 HRTIM_OUTPUTSET_TIMEV_5 -#define HRTIM_OUTPUTSET_TIMBEV6_TIMDCMP4 HRTIM_OUTPUTSET_TIMEV_6 -#define HRTIM_OUTPUTSET_TIMBEV7_TIMECMP1 HRTIM_OUTPUTSET_TIMEV_7 -#define HRTIM_OUTPUTSET_TIMBEV8_TIMECMP2 HRTIM_OUTPUTSET_TIMEV_8 -#define HRTIM_OUTPUTSET_TIMBEV9_TIMFCMP3 HRTIM_OUTPUTSET_TIMEV_9 -#define HRTIM_OUTPUTSET_TIMCEV1_TIMACMP1 HRTIM_OUTPUTSET_TIMEV_1 -#define HRTIM_OUTPUTSET_TIMCEV2_TIMACMP2 HRTIM_OUTPUTSET_TIMEV_2 -#define HRTIM_OUTPUTSET_TIMCEV3_TIMBCMP2 HRTIM_OUTPUTSET_TIMEV_3 -#define HRTIM_OUTPUTSET_TIMCEV4_TIMBCMP3 HRTIM_OUTPUTSET_TIMEV_4 -#define HRTIM_OUTPUTSET_TIMCEV5_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_5 -#define HRTIM_OUTPUTSET_TIMCEV6_TIMDCMP4 HRTIM_OUTPUTSET_TIMEV_6 -#define HRTIM_OUTPUTSET_TIMCEV7_TIMECMP3 HRTIM_OUTPUTSET_TIMEV_7 -#define HRTIM_OUTPUTSET_TIMCEV8_TIMECMP4 HRTIM_OUTPUTSET_TIMEV_8 -#define HRTIM_OUTPUTSET_TIMCEV9_TIMFCMP2 HRTIM_OUTPUTSET_TIMEV_9 -#define HRTIM_OUTPUTSET_TIMDEV1_TIMACMP1 HRTIM_OUTPUTSET_TIMEV_1 -#define HRTIM_OUTPUTSET_TIMDEV2_TIMACMP4 HRTIM_OUTPUTSET_TIMEV_2 -#define HRTIM_OUTPUTSET_TIMDEV3_TIMBCMP2 HRTIM_OUTPUTSET_TIMEV_3 -#define HRTIM_OUTPUTSET_TIMDEV4_TIMBCMP4 HRTIM_OUTPUTSET_TIMEV_4 -#define HRTIM_OUTPUTSET_TIMDEV5_TIMCCMP4 HRTIM_OUTPUTSET_TIMEV_5 -#define HRTIM_OUTPUTSET_TIMDEV6_TIMECMP1 HRTIM_OUTPUTSET_TIMEV_6 -#define HRTIM_OUTPUTSET_TIMDEV7_TIMECMP4 HRTIM_OUTPUTSET_TIMEV_7 -#define HRTIM_OUTPUTSET_TIMDEV8_TIMFCMP1 HRTIM_OUTPUTSET_TIMEV_8 -#define HRTIM_OUTPUTSET_TIMDEV9_TIMFCMP3 HRTIM_OUTPUTSET_TIMEV_9 -#define HRTIM_OUTPUTSET_TIMEEV1_TIMACMP4 HRTIM_OUTPUTSET_TIMEV_1 -#define HRTIM_OUTPUTSET_TIMEEV2_TIMBCMP3 HRTIM_OUTPUTSET_TIMEV_2 -#define HRTIM_OUTPUTSET_TIMEEV3_TIMBCMP4 HRTIM_OUTPUTSET_TIMEV_3 -#define HRTIM_OUTPUTSET_TIMEEV4_TIMCCMP1 HRTIM_OUTPUTSET_TIMEV_4 -#define HRTIM_OUTPUTSET_TIMEEV5_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_5 -#define HRTIM_OUTPUTSET_TIMEEV6_TIMDCMP1 HRTIM_OUTPUTSET_TIMEV_6 -#define HRTIM_OUTPUTSET_TIMEEV7_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_7 -#define HRTIM_OUTPUTSET_TIMEEV8_TIMFCMP3 HRTIM_OUTPUTSET_TIMEV_8 -#define HRTIM_OUTPUTSET_TIMEEV9_TIMFCMP4 HRTIM_OUTPUTSET_TIMEV_9 -#define HRTIM_OUTPUTSET_TIMFEV1_TIMACMP3 HRTIM_OUTPUTSET_TIMEV_1 -#define HRTIM_OUTPUTSET_TIMFEV2_TIMBCMP1 HRTIM_OUTPUTSET_TIMEV_2 -#define HRTIM_OUTPUTSET_TIMFEV3_TIMBCMP4 HRTIM_OUTPUTSET_TIMEV_3 -#define HRTIM_OUTPUTSET_TIMFEV4_TIMCCMP1 HRTIM_OUTPUTSET_TIMEV_4 -#define HRTIM_OUTPUTSET_TIMFEV5_TIMCCMP4 HRTIM_OUTPUTSET_TIMEV_5 -#define HRTIM_OUTPUTSET_TIMFEV6_TIMDCMP3 HRTIM_OUTPUTSET_TIMEV_6 -#define HRTIM_OUTPUTSET_TIMFEV7_TIMDCMP4 HRTIM_OUTPUTSET_TIMEV_7 -#define HRTIM_OUTPUTSET_TIMFEV8_TIMECMP2 HRTIM_OUTPUTSET_TIMEV_8 -#define HRTIM_OUTPUTSET_TIMFEV9_TIMECMP3 HRTIM_OUTPUTSET_TIMEV_9 - -#define HRTIM_OUTPUTRESET_TIMAEV1_TIMBCMP1 HRTIM_OUTPUTSET_TIMEV_1 -#define HRTIM_OUTPUTRESET_TIMAEV2_TIMBCMP2 HRTIM_OUTPUTSET_TIMEV_2 -#define HRTIM_OUTPUTRESET_TIMAEV3_TIMCCMP2 HRTIM_OUTPUTSET_TIMEV_3 -#define HRTIM_OUTPUTRESET_TIMAEV4_TIMCCMP3 HRTIM_OUTPUTSET_TIMEV_4 -#define HRTIM_OUTPUTRESET_TIMAEV5_TIMDCMP1 HRTIM_OUTPUTSET_TIMEV_5 -#define HRTIM_OUTPUTRESET_TIMAEV6_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_6 -#define HRTIM_OUTPUTRESET_TIMAEV7_TIMECMP3 HRTIM_OUTPUTSET_TIMEV_7 -#define HRTIM_OUTPUTRESET_TIMAEV8_TIMECMP4 HRTIM_OUTPUTSET_TIMEV_8 -#define HRTIM_OUTPUTRESET_TIMAEV9_TIMFCMP4 HRTIM_OUTPUTSET_TIMEV_9 -#define HRTIM_OUTPUTRESET_TIMBEV1_TIMACMP1 HRTIM_OUTPUTSET_TIMEV_1 -#define HRTIM_OUTPUTRESET_TIMBEV2_TIMACMP2 HRTIM_OUTPUTSET_TIMEV_2 -#define HRTIM_OUTPUTRESET_TIMBEV3_TIMCCMP3 HRTIM_OUTPUTSET_TIMEV_3 -#define HRTIM_OUTPUTRESET_TIMBEV4_TIMCCMP4 HRTIM_OUTPUTSET_TIMEV_4 -#define HRTIM_OUTPUTRESET_TIMBEV5_TIMDCMP3 HRTIM_OUTPUTSET_TIMEV_5 -#define HRTIM_OUTPUTRESET_TIMBEV6_TIMDCMP4 HRTIM_OUTPUTSET_TIMEV_6 -#define HRTIM_OUTPUTRESET_TIMBEV7_TIMECMP1 HRTIM_OUTPUTSET_TIMEV_7 -#define HRTIM_OUTPUTRESET_TIMBEV8_TIMECMP2 HRTIM_OUTPUTSET_TIMEV_8 -#define HRTIM_OUTPUTRESET_TIMBEV9_TIMFCMP3 HRTIM_OUTPUTSET_TIMEV_9 -#define HRTIM_OUTPUTRESET_TIMCEV1_TIMACMP1 HRTIM_OUTPUTSET_TIMEV_1 -#define HRTIM_OUTPUTRESET_TIMCEV2_TIMACMP2 HRTIM_OUTPUTSET_TIMEV_2 -#define HRTIM_OUTPUTRESET_TIMCEV3_TIMBCMP2 HRTIM_OUTPUTSET_TIMEV_3 -#define HRTIM_OUTPUTRESET_TIMCEV4_TIMBCMP3 HRTIM_OUTPUTSET_TIMEV_4 -#define HRTIM_OUTPUTRESET_TIMCEV5_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_5 -#define HRTIM_OUTPUTRESET_TIMCEV6_TIMDCMP4 HRTIM_OUTPUTSET_TIMEV_6 -#define HRTIM_OUTPUTRESET_TIMCEV7_TIMECMP3 HRTIM_OUTPUTSET_TIMEV_7 -#define HRTIM_OUTPUTRESET_TIMCEV8_TIMECMP4 HRTIM_OUTPUTSET_TIMEV_8 -#define HRTIM_OUTPUTRESET_TIMCEV9_TIMFCMP2 HRTIM_OUTPUTSET_TIMEV_9 -#define HRTIM_OUTPUTRESET_TIMDEV1_TIMACMP1 HRTIM_OUTPUTSET_TIMEV_1 -#define HRTIM_OUTPUTRESET_TIMDEV2_TIMACMP4 HRTIM_OUTPUTSET_TIMEV_2 -#define HRTIM_OUTPUTRESET_TIMDEV3_TIMBCMP2 HRTIM_OUTPUTSET_TIMEV_3 -#define HRTIM_OUTPUTRESET_TIMDEV4_TIMBCMP4 HRTIM_OUTPUTSET_TIMEV_4 -#define HRTIM_OUTPUTRESET_TIMDEV5_TIMCCMP4 HRTIM_OUTPUTSET_TIMEV_5 -#define HRTIM_OUTPUTRESET_TIMDEV6_TIMECMP1 HRTIM_OUTPUTSET_TIMEV_6 -#define HRTIM_OUTPUTRESET_TIMDEV7_TIMECMP4 HRTIM_OUTPUTSET_TIMEV_7 -#define HRTIM_OUTPUTRESET_TIMDEV8_TIMFCMP1 HRTIM_OUTPUTSET_TIMEV_8 -#define HRTIM_OUTPUTRESET_TIMDEV9_TIMFCMP3 HRTIM_OUTPUTSET_TIMEV_9 -#define HRTIM_OUTPUTRESET_TIMEEV1_TIMACMP4 HRTIM_OUTPUTSET_TIMEV_1 -#define HRTIM_OUTPUTRESET_TIMEEV2_TIMBCMP3 HRTIM_OUTPUTSET_TIMEV_2 -#define HRTIM_OUTPUTRESET_TIMEEV3_TIMBCMP4 HRTIM_OUTPUTSET_TIMEV_3 -#define HRTIM_OUTPUTRESET_TIMEEV4_TIMCCMP1 HRTIM_OUTPUTSET_TIMEV_4 -#define HRTIM_OUTPUTRESET_TIMEEV5_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_5 -#define HRTIM_OUTPUTRESET_TIMEEV6_TIMDCMP1 HRTIM_OUTPUTSET_TIMEV_6 -#define HRTIM_OUTPUTRESET_TIMEEV7_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_7 -#define HRTIM_OUTPUTRESET_TIMEEV8_TIMFCMP3 HRTIM_OUTPUTSET_TIMEV_8 -#define HRTIM_OUTPUTRESET_TIMEEV9_TIMFCMP4 HRTIM_OUTPUTSET_TIMEV_9 -#define HRTIM_OUTPUTRESET_TIMFEV1_TIMACMP3 HRTIM_OUTPUTSET_TIMEV_1 -#define HRTIM_OUTPUTRESET_TIMFEV2_TIMBCMP1 HRTIM_OUTPUTSET_TIMEV_2 -#define HRTIM_OUTPUTRESET_TIMFEV3_TIMBCMP4 HRTIM_OUTPUTSET_TIMEV_3 -#define HRTIM_OUTPUTRESET_TIMFEV4_TIMCCMP1 HRTIM_OUTPUTSET_TIMEV_4 -#define HRTIM_OUTPUTRESET_TIMFEV5_TIMCCMP4 HRTIM_OUTPUTSET_TIMEV_5 -#define HRTIM_OUTPUTRESET_TIMFEV6_TIMDCMP3 HRTIM_OUTPUTSET_TIMEV_6 -#define HRTIM_OUTPUTRESET_TIMFEV7_TIMDCMP4 HRTIM_OUTPUTSET_TIMEV_7 -#define HRTIM_OUTPUTRESET_TIMFEV8_TIMECMP2 HRTIM_OUTPUTSET_TIMEV_8 -#define HRTIM_OUTPUTRESET_TIMFEV9_TIMECMP3 HRTIM_OUTPUTSET_TIMEV_9 -#endif /* STM32H7 */ - -#if defined(STM32F3) -/** @brief Constants defining available sources associated to external events. - */ -#define HRTIM_EVENTSRC_1 (0x00000000U) -#define HRTIM_EVENTSRC_2 (HRTIM_EECR1_EE1SRC_0) -#define HRTIM_EVENTSRC_3 (HRTIM_EECR1_EE1SRC_1) -#define HRTIM_EVENTSRC_4 (HRTIM_EECR1_EE1SRC_1 | HRTIM_EECR1_EE1SRC_0) - -/** @brief Constants defining the DLL calibration periods (in micro seconds) - */ -#define HRTIM_CALIBRATIONRATE_7300 0x00000000U -#define HRTIM_CALIBRATIONRATE_910 (HRTIM_DLLCR_CALRTE_0) -#define HRTIM_CALIBRATIONRATE_114 (HRTIM_DLLCR_CALRTE_1) -#define HRTIM_CALIBRATIONRATE_14 (HRTIM_DLLCR_CALRTE_1 | HRTIM_DLLCR_CALRTE_0) - -#endif /* STM32F3 */ -/** - * @} - */ - -/** @defgroup HAL_I2C_Aliased_Defines HAL I2C Aliased Defines maintained for legacy purpose - * @{ - */ -#define I2C_DUALADDRESS_DISABLED I2C_DUALADDRESS_DISABLE -#define I2C_DUALADDRESS_ENABLED I2C_DUALADDRESS_ENABLE -#define I2C_GENERALCALL_DISABLED I2C_GENERALCALL_DISABLE -#define I2C_GENERALCALL_ENABLED I2C_GENERALCALL_ENABLE -#define I2C_NOSTRETCH_DISABLED I2C_NOSTRETCH_DISABLE -#define I2C_NOSTRETCH_ENABLED I2C_NOSTRETCH_ENABLE -#define I2C_ANALOGFILTER_ENABLED I2C_ANALOGFILTER_ENABLE -#define I2C_ANALOGFILTER_DISABLED I2C_ANALOGFILTER_DISABLE -#if defined(STM32F0) || defined(STM32F1) || defined(STM32F3) || defined(STM32G0) || defined(STM32L4) || defined(STM32L1) || defined(STM32F7) -#define HAL_I2C_STATE_MEM_BUSY_TX HAL_I2C_STATE_BUSY_TX -#define HAL_I2C_STATE_MEM_BUSY_RX HAL_I2C_STATE_BUSY_RX -#define HAL_I2C_STATE_MASTER_BUSY_TX HAL_I2C_STATE_BUSY_TX -#define HAL_I2C_STATE_MASTER_BUSY_RX HAL_I2C_STATE_BUSY_RX -#define HAL_I2C_STATE_SLAVE_BUSY_TX HAL_I2C_STATE_BUSY_TX -#define HAL_I2C_STATE_SLAVE_BUSY_RX HAL_I2C_STATE_BUSY_RX -#endif -/** - * @} - */ - -/** @defgroup HAL_IRDA_Aliased_Defines HAL IRDA Aliased Defines maintained for legacy purpose - * @{ - */ -#define IRDA_ONE_BIT_SAMPLE_DISABLED IRDA_ONE_BIT_SAMPLE_DISABLE -#define IRDA_ONE_BIT_SAMPLE_ENABLED IRDA_ONE_BIT_SAMPLE_ENABLE - -/** - * @} - */ - -/** @defgroup HAL_IWDG_Aliased_Defines HAL IWDG Aliased Defines maintained for legacy purpose - * @{ - */ -#define KR_KEY_RELOAD IWDG_KEY_RELOAD -#define KR_KEY_ENABLE IWDG_KEY_ENABLE -#define KR_KEY_EWA IWDG_KEY_WRITE_ACCESS_ENABLE -#define KR_KEY_DWA IWDG_KEY_WRITE_ACCESS_DISABLE -/** - * @} - */ - -/** @defgroup HAL_LPTIM_Aliased_Defines HAL LPTIM Aliased Defines maintained for legacy purpose - * @{ - */ - -#define LPTIM_CLOCKSAMPLETIME_DIRECTTRANSISTION LPTIM_CLOCKSAMPLETIME_DIRECTTRANSITION -#define LPTIM_CLOCKSAMPLETIME_2TRANSISTIONS LPTIM_CLOCKSAMPLETIME_2TRANSITIONS -#define LPTIM_CLOCKSAMPLETIME_4TRANSISTIONS LPTIM_CLOCKSAMPLETIME_4TRANSITIONS -#define LPTIM_CLOCKSAMPLETIME_8TRANSISTIONS LPTIM_CLOCKSAMPLETIME_8TRANSITIONS - -#define LPTIM_CLOCKPOLARITY_RISINGEDGE LPTIM_CLOCKPOLARITY_RISING -#define LPTIM_CLOCKPOLARITY_FALLINGEDGE LPTIM_CLOCKPOLARITY_FALLING -#define LPTIM_CLOCKPOLARITY_BOTHEDGES LPTIM_CLOCKPOLARITY_RISING_FALLING - -#define LPTIM_TRIGSAMPLETIME_DIRECTTRANSISTION LPTIM_TRIGSAMPLETIME_DIRECTTRANSITION -#define LPTIM_TRIGSAMPLETIME_2TRANSISTIONS LPTIM_TRIGSAMPLETIME_2TRANSITIONS -#define LPTIM_TRIGSAMPLETIME_4TRANSISTIONS LPTIM_TRIGSAMPLETIME_4TRANSITIONS -#define LPTIM_TRIGSAMPLETIME_8TRANSISTIONS LPTIM_TRIGSAMPLETIME_8TRANSITIONS - -/* The following 3 definition have also been present in a temporary version of lptim.h */ -/* They need to be renamed also to the right name, just in case */ -#define LPTIM_TRIGSAMPLETIME_2TRANSITION LPTIM_TRIGSAMPLETIME_2TRANSITIONS -#define LPTIM_TRIGSAMPLETIME_4TRANSITION LPTIM_TRIGSAMPLETIME_4TRANSITIONS -#define LPTIM_TRIGSAMPLETIME_8TRANSITION LPTIM_TRIGSAMPLETIME_8TRANSITIONS - - -/** @defgroup HAL_LPTIM_Aliased_Defines HAL LPTIM Aliased Defines maintained for legacy purpose - * @{ - */ -#define HAL_LPTIM_ReadCompare HAL_LPTIM_ReadCapturedValue -/** - * @} - */ - -#if defined(STM32U5) -#define LPTIM_ISR_CC1 LPTIM_ISR_CC1IF -#define LPTIM_ISR_CC2 LPTIM_ISR_CC2IF -#define LPTIM_CHANNEL_ALL 0x00000000U -#endif /* STM32U5 */ -/** - * @} - */ - -/** @defgroup HAL_NAND_Aliased_Defines HAL NAND Aliased Defines maintained for legacy purpose - * @{ - */ -#define HAL_NAND_Read_Page HAL_NAND_Read_Page_8b -#define HAL_NAND_Write_Page HAL_NAND_Write_Page_8b -#define HAL_NAND_Read_SpareArea HAL_NAND_Read_SpareArea_8b -#define HAL_NAND_Write_SpareArea HAL_NAND_Write_SpareArea_8b - -#define NAND_AddressTypedef NAND_AddressTypeDef - -#define __ARRAY_ADDRESS ARRAY_ADDRESS -#define __ADDR_1st_CYCLE ADDR_1ST_CYCLE -#define __ADDR_2nd_CYCLE ADDR_2ND_CYCLE -#define __ADDR_3rd_CYCLE ADDR_3RD_CYCLE -#define __ADDR_4th_CYCLE ADDR_4TH_CYCLE -/** - * @} - */ - -/** @defgroup HAL_NOR_Aliased_Defines HAL NOR Aliased Defines maintained for legacy purpose - * @{ - */ -#define NOR_StatusTypedef HAL_NOR_StatusTypeDef -#define NOR_SUCCESS HAL_NOR_STATUS_SUCCESS -#define NOR_ONGOING HAL_NOR_STATUS_ONGOING -#define NOR_ERROR HAL_NOR_STATUS_ERROR -#define NOR_TIMEOUT HAL_NOR_STATUS_TIMEOUT - -#define __NOR_WRITE NOR_WRITE -#define __NOR_ADDR_SHIFT NOR_ADDR_SHIFT -/** - * @} - */ - -/** @defgroup HAL_OPAMP_Aliased_Defines HAL OPAMP Aliased Defines maintained for legacy purpose - * @{ - */ - -#define OPAMP_NONINVERTINGINPUT_VP0 OPAMP_NONINVERTINGINPUT_IO0 -#define OPAMP_NONINVERTINGINPUT_VP1 OPAMP_NONINVERTINGINPUT_IO1 -#define OPAMP_NONINVERTINGINPUT_VP2 OPAMP_NONINVERTINGINPUT_IO2 -#define OPAMP_NONINVERTINGINPUT_VP3 OPAMP_NONINVERTINGINPUT_IO3 - -#define OPAMP_SEC_NONINVERTINGINPUT_VP0 OPAMP_SEC_NONINVERTINGINPUT_IO0 -#define OPAMP_SEC_NONINVERTINGINPUT_VP1 OPAMP_SEC_NONINVERTINGINPUT_IO1 -#define OPAMP_SEC_NONINVERTINGINPUT_VP2 OPAMP_SEC_NONINVERTINGINPUT_IO2 -#define OPAMP_SEC_NONINVERTINGINPUT_VP3 OPAMP_SEC_NONINVERTINGINPUT_IO3 - -#define OPAMP_INVERTINGINPUT_VM0 OPAMP_INVERTINGINPUT_IO0 -#define OPAMP_INVERTINGINPUT_VM1 OPAMP_INVERTINGINPUT_IO1 - -#define IOPAMP_INVERTINGINPUT_VM0 OPAMP_INVERTINGINPUT_IO0 -#define IOPAMP_INVERTINGINPUT_VM1 OPAMP_INVERTINGINPUT_IO1 - -#define OPAMP_SEC_INVERTINGINPUT_VM0 OPAMP_SEC_INVERTINGINPUT_IO0 -#define OPAMP_SEC_INVERTINGINPUT_VM1 OPAMP_SEC_INVERTINGINPUT_IO1 - -#define OPAMP_INVERTINGINPUT_VINM OPAMP_SEC_INVERTINGINPUT_IO1 - -#define OPAMP_PGACONNECT_NO OPAMP_PGA_CONNECT_INVERTINGINPUT_NO -#define OPAMP_PGACONNECT_VM0 OPAMP_PGA_CONNECT_INVERTINGINPUT_IO0 -#define OPAMP_PGACONNECT_VM1 OPAMP_PGA_CONNECT_INVERTINGINPUT_IO1 - -#if defined(STM32L1) || defined(STM32L4) || defined(STM32L5) || defined(STM32H7) || defined(STM32G4) || defined(STM32U5) -#define HAL_OPAMP_MSP_INIT_CB_ID HAL_OPAMP_MSPINIT_CB_ID -#define HAL_OPAMP_MSP_DEINIT_CB_ID HAL_OPAMP_MSPDEINIT_CB_ID -#endif - -#if defined(STM32L4) || defined(STM32L5) -#define OPAMP_POWERMODE_NORMAL OPAMP_POWERMODE_NORMALPOWER -#elif defined(STM32G4) -#define OPAMP_POWERMODE_NORMAL OPAMP_POWERMODE_NORMALSPEED -#endif - -/** - * @} - */ - -/** @defgroup HAL_I2S_Aliased_Defines HAL I2S Aliased Defines maintained for legacy purpose - * @{ - */ -#define I2S_STANDARD_PHILLIPS I2S_STANDARD_PHILIPS - -#if defined(STM32H7) -#define I2S_IT_TXE I2S_IT_TXP -#define I2S_IT_RXNE I2S_IT_RXP - -#define I2S_FLAG_TXE I2S_FLAG_TXP -#define I2S_FLAG_RXNE I2S_FLAG_RXP -#endif - -#if defined(STM32F7) -#define I2S_CLOCK_SYSCLK I2S_CLOCK_PLL -#endif -/** - * @} - */ - -/** @defgroup HAL_PCCARD_Aliased_Defines HAL PCCARD Aliased Defines maintained for legacy purpose - * @{ - */ - -/* Compact Flash-ATA registers description */ -#define CF_DATA ATA_DATA -#define CF_SECTOR_COUNT ATA_SECTOR_COUNT -#define CF_SECTOR_NUMBER ATA_SECTOR_NUMBER -#define CF_CYLINDER_LOW ATA_CYLINDER_LOW -#define CF_CYLINDER_HIGH ATA_CYLINDER_HIGH -#define CF_CARD_HEAD ATA_CARD_HEAD -#define CF_STATUS_CMD ATA_STATUS_CMD -#define CF_STATUS_CMD_ALTERNATE ATA_STATUS_CMD_ALTERNATE -#define CF_COMMON_DATA_AREA ATA_COMMON_DATA_AREA - -/* Compact Flash-ATA commands */ -#define CF_READ_SECTOR_CMD ATA_READ_SECTOR_CMD -#define CF_WRITE_SECTOR_CMD ATA_WRITE_SECTOR_CMD -#define CF_ERASE_SECTOR_CMD ATA_ERASE_SECTOR_CMD -#define CF_IDENTIFY_CMD ATA_IDENTIFY_CMD - -#define PCCARD_StatusTypedef HAL_PCCARD_StatusTypeDef -#define PCCARD_SUCCESS HAL_PCCARD_STATUS_SUCCESS -#define PCCARD_ONGOING HAL_PCCARD_STATUS_ONGOING -#define PCCARD_ERROR HAL_PCCARD_STATUS_ERROR -#define PCCARD_TIMEOUT HAL_PCCARD_STATUS_TIMEOUT -/** - * @} - */ - -/** @defgroup HAL_RTC_Aliased_Defines HAL RTC Aliased Defines maintained for legacy purpose - * @{ - */ - -#define FORMAT_BIN RTC_FORMAT_BIN -#define FORMAT_BCD RTC_FORMAT_BCD - -#define RTC_ALARMSUBSECONDMASK_None RTC_ALARMSUBSECONDMASK_NONE -#define RTC_TAMPERERASEBACKUP_DISABLED RTC_TAMPER_ERASE_BACKUP_DISABLE -#define RTC_TAMPERMASK_FLAG_DISABLED RTC_TAMPERMASK_FLAG_DISABLE -#define RTC_TAMPERMASK_FLAG_ENABLED RTC_TAMPERMASK_FLAG_ENABLE - -#define RTC_MASKTAMPERFLAG_DISABLED RTC_TAMPERMASK_FLAG_DISABLE -#define RTC_MASKTAMPERFLAG_ENABLED RTC_TAMPERMASK_FLAG_ENABLE -#define RTC_TAMPERERASEBACKUP_ENABLED RTC_TAMPER_ERASE_BACKUP_ENABLE -#define RTC_TAMPER1_2_INTERRUPT RTC_ALL_TAMPER_INTERRUPT -#define RTC_TAMPER1_2_3_INTERRUPT RTC_ALL_TAMPER_INTERRUPT - -#define RTC_TIMESTAMPPIN_PC13 RTC_TIMESTAMPPIN_DEFAULT -#define RTC_TIMESTAMPPIN_PA0 RTC_TIMESTAMPPIN_POS1 -#define RTC_TIMESTAMPPIN_PI8 RTC_TIMESTAMPPIN_POS1 -#define RTC_TIMESTAMPPIN_PC1 RTC_TIMESTAMPPIN_POS2 - -#define RTC_OUTPUT_REMAP_PC13 RTC_OUTPUT_REMAP_NONE -#define RTC_OUTPUT_REMAP_PB14 RTC_OUTPUT_REMAP_POS1 -#define RTC_OUTPUT_REMAP_PB2 RTC_OUTPUT_REMAP_POS1 - -#define RTC_TAMPERPIN_PC13 RTC_TAMPERPIN_DEFAULT -#define RTC_TAMPERPIN_PA0 RTC_TAMPERPIN_POS1 -#define RTC_TAMPERPIN_PI8 RTC_TAMPERPIN_POS1 - -#if defined(STM32F7) -#define RTC_TAMPCR_TAMPXE RTC_TAMPER_ENABLE_BITS_MASK -#define RTC_TAMPCR_TAMPXIE RTC_TAMPER_IT_ENABLE_BITS_MASK -#endif /* STM32F7 */ - -#if defined(STM32H7) -#define RTC_TAMPCR_TAMPXE RTC_TAMPER_X -#define RTC_TAMPCR_TAMPXIE RTC_TAMPER_X_INTERRUPT -#endif /* STM32H7 */ - -#if defined(STM32F7) || defined(STM32H7) -#define RTC_TAMPER1_INTERRUPT RTC_IT_TAMP1 -#define RTC_TAMPER2_INTERRUPT RTC_IT_TAMP2 -#define RTC_TAMPER3_INTERRUPT RTC_IT_TAMP3 -#define RTC_ALL_TAMPER_INTERRUPT RTC_IT_TAMP -#endif /* STM32F7 || STM32H7 */ - -/** - * @} - */ - - -/** @defgroup HAL_SMARTCARD_Aliased_Defines HAL SMARTCARD Aliased Defines maintained for legacy purpose - * @{ - */ -#define SMARTCARD_NACK_ENABLED SMARTCARD_NACK_ENABLE -#define SMARTCARD_NACK_DISABLED SMARTCARD_NACK_DISABLE - -#define SMARTCARD_ONEBIT_SAMPLING_DISABLED SMARTCARD_ONE_BIT_SAMPLE_DISABLE -#define SMARTCARD_ONEBIT_SAMPLING_ENABLED SMARTCARD_ONE_BIT_SAMPLE_ENABLE -#define SMARTCARD_ONEBIT_SAMPLING_DISABLE SMARTCARD_ONE_BIT_SAMPLE_DISABLE -#define SMARTCARD_ONEBIT_SAMPLING_ENABLE SMARTCARD_ONE_BIT_SAMPLE_ENABLE - -#define SMARTCARD_TIMEOUT_DISABLED SMARTCARD_TIMEOUT_DISABLE -#define SMARTCARD_TIMEOUT_ENABLED SMARTCARD_TIMEOUT_ENABLE - -#define SMARTCARD_LASTBIT_DISABLED SMARTCARD_LASTBIT_DISABLE -#define SMARTCARD_LASTBIT_ENABLED SMARTCARD_LASTBIT_ENABLE -/** - * @} - */ - - -/** @defgroup HAL_SMBUS_Aliased_Defines HAL SMBUS Aliased Defines maintained for legacy purpose - * @{ - */ -#define SMBUS_DUALADDRESS_DISABLED SMBUS_DUALADDRESS_DISABLE -#define SMBUS_DUALADDRESS_ENABLED SMBUS_DUALADDRESS_ENABLE -#define SMBUS_GENERALCALL_DISABLED SMBUS_GENERALCALL_DISABLE -#define SMBUS_GENERALCALL_ENABLED SMBUS_GENERALCALL_ENABLE -#define SMBUS_NOSTRETCH_DISABLED SMBUS_NOSTRETCH_DISABLE -#define SMBUS_NOSTRETCH_ENABLED SMBUS_NOSTRETCH_ENABLE -#define SMBUS_ANALOGFILTER_ENABLED SMBUS_ANALOGFILTER_ENABLE -#define SMBUS_ANALOGFILTER_DISABLED SMBUS_ANALOGFILTER_DISABLE -#define SMBUS_PEC_DISABLED SMBUS_PEC_DISABLE -#define SMBUS_PEC_ENABLED SMBUS_PEC_ENABLE -#define HAL_SMBUS_STATE_SLAVE_LISTEN HAL_SMBUS_STATE_LISTEN -/** - * @} - */ - -/** @defgroup HAL_SPI_Aliased_Defines HAL SPI Aliased Defines maintained for legacy purpose - * @{ - */ -#define SPI_TIMODE_DISABLED SPI_TIMODE_DISABLE -#define SPI_TIMODE_ENABLED SPI_TIMODE_ENABLE - -#define SPI_CRCCALCULATION_DISABLED SPI_CRCCALCULATION_DISABLE -#define SPI_CRCCALCULATION_ENABLED SPI_CRCCALCULATION_ENABLE - -#define SPI_NSS_PULSE_DISABLED SPI_NSS_PULSE_DISABLE -#define SPI_NSS_PULSE_ENABLED SPI_NSS_PULSE_ENABLE - -#if defined(STM32H7) - -#define SPI_FLAG_TXE SPI_FLAG_TXP -#define SPI_FLAG_RXNE SPI_FLAG_RXP - -#define SPI_IT_TXE SPI_IT_TXP -#define SPI_IT_RXNE SPI_IT_RXP - -#define SPI_FRLVL_EMPTY SPI_RX_FIFO_0PACKET -#define SPI_FRLVL_QUARTER_FULL SPI_RX_FIFO_1PACKET -#define SPI_FRLVL_HALF_FULL SPI_RX_FIFO_2PACKET -#define SPI_FRLVL_FULL SPI_RX_FIFO_3PACKET - -#endif /* STM32H7 */ - -/** - * @} - */ - -/** @defgroup HAL_TIM_Aliased_Defines HAL TIM Aliased Defines maintained for legacy purpose - * @{ - */ -#define CCER_CCxE_MASK TIM_CCER_CCxE_MASK -#define CCER_CCxNE_MASK TIM_CCER_CCxNE_MASK - -#define TIM_DMABase_CR1 TIM_DMABASE_CR1 -#define TIM_DMABase_CR2 TIM_DMABASE_CR2 -#define TIM_DMABase_SMCR TIM_DMABASE_SMCR -#define TIM_DMABase_DIER TIM_DMABASE_DIER -#define TIM_DMABase_SR TIM_DMABASE_SR -#define TIM_DMABase_EGR TIM_DMABASE_EGR -#define TIM_DMABase_CCMR1 TIM_DMABASE_CCMR1 -#define TIM_DMABase_CCMR2 TIM_DMABASE_CCMR2 -#define TIM_DMABase_CCER TIM_DMABASE_CCER -#define TIM_DMABase_CNT TIM_DMABASE_CNT -#define TIM_DMABase_PSC TIM_DMABASE_PSC -#define TIM_DMABase_ARR TIM_DMABASE_ARR -#define TIM_DMABase_RCR TIM_DMABASE_RCR -#define TIM_DMABase_CCR1 TIM_DMABASE_CCR1 -#define TIM_DMABase_CCR2 TIM_DMABASE_CCR2 -#define TIM_DMABase_CCR3 TIM_DMABASE_CCR3 -#define TIM_DMABase_CCR4 TIM_DMABASE_CCR4 -#define TIM_DMABase_BDTR TIM_DMABASE_BDTR -#define TIM_DMABase_DCR TIM_DMABASE_DCR -#define TIM_DMABase_DMAR TIM_DMABASE_DMAR -#define TIM_DMABase_OR1 TIM_DMABASE_OR1 -#define TIM_DMABase_CCMR3 TIM_DMABASE_CCMR3 -#define TIM_DMABase_CCR5 TIM_DMABASE_CCR5 -#define TIM_DMABase_CCR6 TIM_DMABASE_CCR6 -#define TIM_DMABase_OR2 TIM_DMABASE_OR2 -#define TIM_DMABase_OR3 TIM_DMABASE_OR3 -#define TIM_DMABase_OR TIM_DMABASE_OR - -#define TIM_EventSource_Update TIM_EVENTSOURCE_UPDATE -#define TIM_EventSource_CC1 TIM_EVENTSOURCE_CC1 -#define TIM_EventSource_CC2 TIM_EVENTSOURCE_CC2 -#define TIM_EventSource_CC3 TIM_EVENTSOURCE_CC3 -#define TIM_EventSource_CC4 TIM_EVENTSOURCE_CC4 -#define TIM_EventSource_COM TIM_EVENTSOURCE_COM -#define TIM_EventSource_Trigger TIM_EVENTSOURCE_TRIGGER -#define TIM_EventSource_Break TIM_EVENTSOURCE_BREAK -#define TIM_EventSource_Break2 TIM_EVENTSOURCE_BREAK2 - -#define TIM_DMABurstLength_1Transfer TIM_DMABURSTLENGTH_1TRANSFER -#define TIM_DMABurstLength_2Transfers TIM_DMABURSTLENGTH_2TRANSFERS -#define TIM_DMABurstLength_3Transfers TIM_DMABURSTLENGTH_3TRANSFERS -#define TIM_DMABurstLength_4Transfers TIM_DMABURSTLENGTH_4TRANSFERS -#define TIM_DMABurstLength_5Transfers TIM_DMABURSTLENGTH_5TRANSFERS -#define TIM_DMABurstLength_6Transfers TIM_DMABURSTLENGTH_6TRANSFERS -#define TIM_DMABurstLength_7Transfers TIM_DMABURSTLENGTH_7TRANSFERS -#define TIM_DMABurstLength_8Transfers TIM_DMABURSTLENGTH_8TRANSFERS -#define TIM_DMABurstLength_9Transfers TIM_DMABURSTLENGTH_9TRANSFERS -#define TIM_DMABurstLength_10Transfers TIM_DMABURSTLENGTH_10TRANSFERS -#define TIM_DMABurstLength_11Transfers TIM_DMABURSTLENGTH_11TRANSFERS -#define TIM_DMABurstLength_12Transfers TIM_DMABURSTLENGTH_12TRANSFERS -#define TIM_DMABurstLength_13Transfers TIM_DMABURSTLENGTH_13TRANSFERS -#define TIM_DMABurstLength_14Transfers TIM_DMABURSTLENGTH_14TRANSFERS -#define TIM_DMABurstLength_15Transfers TIM_DMABURSTLENGTH_15TRANSFERS -#define TIM_DMABurstLength_16Transfers TIM_DMABURSTLENGTH_16TRANSFERS -#define TIM_DMABurstLength_17Transfers TIM_DMABURSTLENGTH_17TRANSFERS -#define TIM_DMABurstLength_18Transfers TIM_DMABURSTLENGTH_18TRANSFERS - -#if defined(STM32L0) -#define TIM22_TI1_GPIO1 TIM22_TI1_GPIO -#define TIM22_TI1_GPIO2 TIM22_TI1_GPIO -#endif - -#if defined(STM32F3) -#define IS_TIM_HALL_INTERFACE_INSTANCE IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE -#endif - -#if defined(STM32H7) -#define TIM_TIM1_ETR_COMP1_OUT TIM_TIM1_ETR_COMP1 -#define TIM_TIM1_ETR_COMP2_OUT TIM_TIM1_ETR_COMP2 -#define TIM_TIM8_ETR_COMP1_OUT TIM_TIM8_ETR_COMP1 -#define TIM_TIM8_ETR_COMP2_OUT TIM_TIM8_ETR_COMP2 -#define TIM_TIM2_ETR_COMP1_OUT TIM_TIM2_ETR_COMP1 -#define TIM_TIM2_ETR_COMP2_OUT TIM_TIM2_ETR_COMP2 -#define TIM_TIM3_ETR_COMP1_OUT TIM_TIM3_ETR_COMP1 -#define TIM_TIM1_TI1_COMP1_OUT TIM_TIM1_TI1_COMP1 -#define TIM_TIM8_TI1_COMP2_OUT TIM_TIM8_TI1_COMP2 -#define TIM_TIM2_TI4_COMP1_OUT TIM_TIM2_TI4_COMP1 -#define TIM_TIM2_TI4_COMP2_OUT TIM_TIM2_TI4_COMP2 -#define TIM_TIM2_TI4_COMP1COMP2_OUT TIM_TIM2_TI4_COMP1_COMP2 -#define TIM_TIM3_TI1_COMP1_OUT TIM_TIM3_TI1_COMP1 -#define TIM_TIM3_TI1_COMP2_OUT TIM_TIM3_TI1_COMP2 -#define TIM_TIM3_TI1_COMP1COMP2_OUT TIM_TIM3_TI1_COMP1_COMP2 -#endif - -#if defined(STM32U5) || defined(STM32MP2) -#define OCREF_CLEAR_SELECT_Pos OCREF_CLEAR_SELECT_POS -#define OCREF_CLEAR_SELECT_Msk OCREF_CLEAR_SELECT_MSK -#endif -/** - * @} - */ - -/** @defgroup HAL_TSC_Aliased_Defines HAL TSC Aliased Defines maintained for legacy purpose - * @{ - */ -#define TSC_SYNC_POL_FALL TSC_SYNC_POLARITY_FALLING -#define TSC_SYNC_POL_RISE_HIGH TSC_SYNC_POLARITY_RISING -/** - * @} - */ - -/** @defgroup HAL_UART_Aliased_Defines HAL UART Aliased Defines maintained for legacy purpose - * @{ - */ -#define UART_ONEBIT_SAMPLING_DISABLED UART_ONE_BIT_SAMPLE_DISABLE -#define UART_ONEBIT_SAMPLING_ENABLED UART_ONE_BIT_SAMPLE_ENABLE -#define UART_ONE_BIT_SAMPLE_DISABLED UART_ONE_BIT_SAMPLE_DISABLE -#define UART_ONE_BIT_SAMPLE_ENABLED UART_ONE_BIT_SAMPLE_ENABLE - -#define __HAL_UART_ONEBIT_ENABLE __HAL_UART_ONE_BIT_SAMPLE_ENABLE -#define __HAL_UART_ONEBIT_DISABLE __HAL_UART_ONE_BIT_SAMPLE_DISABLE - -#define __DIV_SAMPLING16 UART_DIV_SAMPLING16 -#define __DIVMANT_SAMPLING16 UART_DIVMANT_SAMPLING16 -#define __DIVFRAQ_SAMPLING16 UART_DIVFRAQ_SAMPLING16 -#define __UART_BRR_SAMPLING16 UART_BRR_SAMPLING16 - -#define __DIV_SAMPLING8 UART_DIV_SAMPLING8 -#define __DIVMANT_SAMPLING8 UART_DIVMANT_SAMPLING8 -#define __DIVFRAQ_SAMPLING8 UART_DIVFRAQ_SAMPLING8 -#define __UART_BRR_SAMPLING8 UART_BRR_SAMPLING8 - -#define __DIV_LPUART UART_DIV_LPUART - -#define UART_WAKEUPMETHODE_IDLELINE UART_WAKEUPMETHOD_IDLELINE -#define UART_WAKEUPMETHODE_ADDRESSMARK UART_WAKEUPMETHOD_ADDRESSMARK - -/** - * @} - */ - - -/** @defgroup HAL_USART_Aliased_Defines HAL USART Aliased Defines maintained for legacy purpose - * @{ - */ - -#define USART_CLOCK_DISABLED USART_CLOCK_DISABLE -#define USART_CLOCK_ENABLED USART_CLOCK_ENABLE - -#define USARTNACK_ENABLED USART_NACK_ENABLE -#define USARTNACK_DISABLED USART_NACK_DISABLE -/** - * @} - */ - -/** @defgroup HAL_WWDG_Aliased_Defines HAL WWDG Aliased Defines maintained for legacy purpose - * @{ - */ -#define CFR_BASE WWDG_CFR_BASE - -/** - * @} - */ - -/** @defgroup HAL_CAN_Aliased_Defines HAL CAN Aliased Defines maintained for legacy purpose - * @{ - */ -#define CAN_FilterFIFO0 CAN_FILTER_FIFO0 -#define CAN_FilterFIFO1 CAN_FILTER_FIFO1 -#define CAN_IT_RQCP0 CAN_IT_TME -#define CAN_IT_RQCP1 CAN_IT_TME -#define CAN_IT_RQCP2 CAN_IT_TME -#define INAK_TIMEOUT CAN_TIMEOUT_VALUE -#define SLAK_TIMEOUT CAN_TIMEOUT_VALUE -#define CAN_TXSTATUS_FAILED ((uint8_t)0x00U) -#define CAN_TXSTATUS_OK ((uint8_t)0x01U) -#define CAN_TXSTATUS_PENDING ((uint8_t)0x02U) - -/** - * @} - */ - -/** @defgroup HAL_ETH_Aliased_Defines HAL ETH Aliased Defines maintained for legacy purpose - * @{ - */ - -#define VLAN_TAG ETH_VLAN_TAG -#define MIN_ETH_PAYLOAD ETH_MIN_ETH_PAYLOAD -#define MAX_ETH_PAYLOAD ETH_MAX_ETH_PAYLOAD -#define JUMBO_FRAME_PAYLOAD ETH_JUMBO_FRAME_PAYLOAD -#define MACMIIAR_CR_MASK ETH_MACMIIAR_CR_MASK -#define MACCR_CLEAR_MASK ETH_MACCR_CLEAR_MASK -#define MACFCR_CLEAR_MASK ETH_MACFCR_CLEAR_MASK -#define DMAOMR_CLEAR_MASK ETH_DMAOMR_CLEAR_MASK - -#define ETH_MMCCR 0x00000100U -#define ETH_MMCRIR 0x00000104U -#define ETH_MMCTIR 0x00000108U -#define ETH_MMCRIMR 0x0000010CU -#define ETH_MMCTIMR 0x00000110U -#define ETH_MMCTGFSCCR 0x0000014CU -#define ETH_MMCTGFMSCCR 0x00000150U -#define ETH_MMCTGFCR 0x00000168U -#define ETH_MMCRFCECR 0x00000194U -#define ETH_MMCRFAECR 0x00000198U -#define ETH_MMCRGUFCR 0x000001C4U - -#define ETH_MAC_TXFIFO_FULL 0x02000000U /* Tx FIFO full */ -#define ETH_MAC_TXFIFONOT_EMPTY 0x01000000U /* Tx FIFO not empty */ -#define ETH_MAC_TXFIFO_WRITE_ACTIVE 0x00400000U /* Tx FIFO write active */ -#define ETH_MAC_TXFIFO_IDLE 0x00000000U /* Tx FIFO read status: Idle */ -#define ETH_MAC_TXFIFO_READ 0x00100000U /* Tx FIFO read status: Read (transferring data to the MAC transmitter) */ -#define ETH_MAC_TXFIFO_WAITING 0x00200000U /* Tx FIFO read status: Waiting for TxStatus from MAC transmitter */ -#define ETH_MAC_TXFIFO_WRITING 0x00300000U /* Tx FIFO read status: Writing the received TxStatus or flushing the TxFIFO */ -#define ETH_MAC_TRANSMISSION_PAUSE 0x00080000U /* MAC transmitter in pause */ -#define ETH_MAC_TRANSMITFRAMECONTROLLER_IDLE 0x00000000U /* MAC transmit frame controller: Idle */ -#define ETH_MAC_TRANSMITFRAMECONTROLLER_WAITING 0x00020000U /* MAC transmit frame controller: Waiting for Status of previous frame or IFG/backoff period to be over */ -#define ETH_MAC_TRANSMITFRAMECONTROLLER_GENRATING_PCF 0x00040000U /* MAC transmit frame controller: Generating and transmitting a Pause control frame (in full duplex mode) */ -#define ETH_MAC_TRANSMITFRAMECONTROLLER_TRANSFERRING 0x00060000U /* MAC transmit frame controller: Transferring input frame for transmission */ -#define ETH_MAC_MII_TRANSMIT_ACTIVE 0x00010000U /* MAC MII transmit engine active */ -#define ETH_MAC_RXFIFO_EMPTY 0x00000000U /* Rx FIFO fill level: empty */ -#define ETH_MAC_RXFIFO_BELOW_THRESHOLD 0x00000100U /* Rx FIFO fill level: fill-level below flow-control de-activate threshold */ -#define ETH_MAC_RXFIFO_ABOVE_THRESHOLD 0x00000200U /* Rx FIFO fill level: fill-level above flow-control activate threshold */ -#define ETH_MAC_RXFIFO_FULL 0x00000300U /* Rx FIFO fill level: full */ -#if defined(STM32F1) -#else -#define ETH_MAC_READCONTROLLER_IDLE 0x00000000U /* Rx FIFO read controller IDLE state */ -#define ETH_MAC_READCONTROLLER_READING_DATA 0x00000020U /* Rx FIFO read controller Reading frame data */ -#define ETH_MAC_READCONTROLLER_READING_STATUS 0x00000040U /* Rx FIFO read controller Reading frame status (or time-stamp) */ -#endif -#define ETH_MAC_READCONTROLLER_FLUSHING 0x00000060U /* Rx FIFO read controller Flushing the frame data and status */ -#define ETH_MAC_RXFIFO_WRITE_ACTIVE 0x00000010U /* Rx FIFO write controller active */ -#define ETH_MAC_SMALL_FIFO_NOTACTIVE 0x00000000U /* MAC small FIFO read / write controllers not active */ -#define ETH_MAC_SMALL_FIFO_READ_ACTIVE 0x00000002U /* MAC small FIFO read controller active */ -#define ETH_MAC_SMALL_FIFO_WRITE_ACTIVE 0x00000004U /* MAC small FIFO write controller active */ -#define ETH_MAC_SMALL_FIFO_RW_ACTIVE 0x00000006U /* MAC small FIFO read / write controllers active */ -#define ETH_MAC_MII_RECEIVE_PROTOCOL_ACTIVE 0x00000001U /* MAC MII receive protocol engine active */ - -/** - * @} - */ - -/** @defgroup HAL_DCMI_Aliased_Defines HAL DCMI Aliased Defines maintained for legacy purpose - * @{ - */ -#define HAL_DCMI_ERROR_OVF HAL_DCMI_ERROR_OVR -#define DCMI_IT_OVF DCMI_IT_OVR -#define DCMI_FLAG_OVFRI DCMI_FLAG_OVRRI -#define DCMI_FLAG_OVFMI DCMI_FLAG_OVRMI - -#define HAL_DCMI_ConfigCROP HAL_DCMI_ConfigCrop -#define HAL_DCMI_EnableCROP HAL_DCMI_EnableCrop -#define HAL_DCMI_DisableCROP HAL_DCMI_DisableCrop - -/** - * @} - */ - -#if defined(STM32L4) || defined(STM32F7) || defined(STM32F427xx) || defined(STM32F437xx) \ - || defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx) \ - || defined(STM32H7) -/** @defgroup HAL_DMA2D_Aliased_Defines HAL DMA2D Aliased Defines maintained for legacy purpose - * @{ - */ -#define DMA2D_ARGB8888 DMA2D_OUTPUT_ARGB8888 -#define DMA2D_RGB888 DMA2D_OUTPUT_RGB888 -#define DMA2D_RGB565 DMA2D_OUTPUT_RGB565 -#define DMA2D_ARGB1555 DMA2D_OUTPUT_ARGB1555 -#define DMA2D_ARGB4444 DMA2D_OUTPUT_ARGB4444 - -#define CM_ARGB8888 DMA2D_INPUT_ARGB8888 -#define CM_RGB888 DMA2D_INPUT_RGB888 -#define CM_RGB565 DMA2D_INPUT_RGB565 -#define CM_ARGB1555 DMA2D_INPUT_ARGB1555 -#define CM_ARGB4444 DMA2D_INPUT_ARGB4444 -#define CM_L8 DMA2D_INPUT_L8 -#define CM_AL44 DMA2D_INPUT_AL44 -#define CM_AL88 DMA2D_INPUT_AL88 -#define CM_L4 DMA2D_INPUT_L4 -#define CM_A8 DMA2D_INPUT_A8 -#define CM_A4 DMA2D_INPUT_A4 -/** - * @} - */ -#endif /* STM32L4 || STM32F7 || STM32F4 || STM32H7 */ - -#if defined(STM32L4) || defined(STM32F7) || defined(STM32F427xx) || defined(STM32F437xx) \ - || defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx) \ - || defined(STM32H7) || defined(STM32U5) -/** @defgroup DMA2D_Aliases DMA2D API Aliases - * @{ - */ -#define HAL_DMA2D_DisableCLUT HAL_DMA2D_CLUTLoading_Abort /*!< Aliased to HAL_DMA2D_CLUTLoading_Abort - for compatibility with legacy code */ -/** - * @} - */ - -#endif /* STM32L4 || STM32F7 || STM32F4 || STM32H7 || STM32U5 */ - -/** @defgroup HAL_PPP_Aliased_Defines HAL PPP Aliased Defines maintained for legacy purpose - * @{ - */ - -/** - * @} - */ - -/* Exported functions --------------------------------------------------------*/ - -/** @defgroup HAL_CRYP_Aliased_Functions HAL CRYP Aliased Functions maintained for legacy purpose - * @{ - */ -#define HAL_CRYP_ComputationCpltCallback HAL_CRYPEx_ComputationCpltCallback -/** - * @} - */ - -/** @defgroup HAL_DCACHE_Aliased_Functions HAL DCACHE Aliased Functions maintained for legacy purpose - * @{ - */ - -#if defined(STM32U5) -#define HAL_DCACHE_CleanInvalidateByAddr HAL_DCACHE_CleanInvalidByAddr -#define HAL_DCACHE_CleanInvalidateByAddr_IT HAL_DCACHE_CleanInvalidByAddr_IT -#endif /* STM32U5 */ - -/** - * @} - */ - -#if !defined(STM32F2) -/** @defgroup HASH_alias HASH API alias - * @{ - */ -#define HAL_HASHEx_IRQHandler HAL_HASH_IRQHandler /*!< Redirection for compatibility with legacy code */ -/** - * - * @} - */ -#endif /* STM32F2 */ -/** @defgroup HAL_HASH_Aliased_Functions HAL HASH Aliased Functions maintained for legacy purpose - * @{ - */ -#define HAL_HASH_STATETypeDef HAL_HASH_StateTypeDef -#define HAL_HASHPhaseTypeDef HAL_HASH_PhaseTypeDef -#define HAL_HMAC_MD5_Finish HAL_HASH_MD5_Finish -#define HAL_HMAC_SHA1_Finish HAL_HASH_SHA1_Finish -#define HAL_HMAC_SHA224_Finish HAL_HASH_SHA224_Finish -#define HAL_HMAC_SHA256_Finish HAL_HASH_SHA256_Finish - -/*HASH Algorithm Selection*/ - -#define HASH_AlgoSelection_SHA1 HASH_ALGOSELECTION_SHA1 -#define HASH_AlgoSelection_SHA224 HASH_ALGOSELECTION_SHA224 -#define HASH_AlgoSelection_SHA256 HASH_ALGOSELECTION_SHA256 -#define HASH_AlgoSelection_MD5 HASH_ALGOSELECTION_MD5 - -#define HASH_AlgoMode_HASH HASH_ALGOMODE_HASH -#define HASH_AlgoMode_HMAC HASH_ALGOMODE_HMAC - -#define HASH_HMACKeyType_ShortKey HASH_HMAC_KEYTYPE_SHORTKEY -#define HASH_HMACKeyType_LongKey HASH_HMAC_KEYTYPE_LONGKEY - -#if defined(STM32L4) || defined(STM32L5) || defined(STM32F2) || defined(STM32F4) || defined(STM32F7) || defined(STM32H7) - -#define HAL_HASH_MD5_Accumulate HAL_HASH_MD5_Accmlt -#define HAL_HASH_MD5_Accumulate_End HAL_HASH_MD5_Accmlt_End -#define HAL_HASH_MD5_Accumulate_IT HAL_HASH_MD5_Accmlt_IT -#define HAL_HASH_MD5_Accumulate_End_IT HAL_HASH_MD5_Accmlt_End_IT - -#define HAL_HASH_SHA1_Accumulate HAL_HASH_SHA1_Accmlt -#define HAL_HASH_SHA1_Accumulate_End HAL_HASH_SHA1_Accmlt_End -#define HAL_HASH_SHA1_Accumulate_IT HAL_HASH_SHA1_Accmlt_IT -#define HAL_HASH_SHA1_Accumulate_End_IT HAL_HASH_SHA1_Accmlt_End_IT - -#define HAL_HASHEx_SHA224_Accumulate HAL_HASHEx_SHA224_Accmlt -#define HAL_HASHEx_SHA224_Accumulate_End HAL_HASHEx_SHA224_Accmlt_End -#define HAL_HASHEx_SHA224_Accumulate_IT HAL_HASHEx_SHA224_Accmlt_IT -#define HAL_HASHEx_SHA224_Accumulate_End_IT HAL_HASHEx_SHA224_Accmlt_End_IT - -#define HAL_HASHEx_SHA256_Accumulate HAL_HASHEx_SHA256_Accmlt -#define HAL_HASHEx_SHA256_Accumulate_End HAL_HASHEx_SHA256_Accmlt_End -#define HAL_HASHEx_SHA256_Accumulate_IT HAL_HASHEx_SHA256_Accmlt_IT -#define HAL_HASHEx_SHA256_Accumulate_End_IT HAL_HASHEx_SHA256_Accmlt_End_IT - -#endif /* STM32L4 || STM32L5 || STM32F2 || STM32F4 || STM32F7 || STM32H7 */ -/** - * @} - */ - -/** @defgroup HAL_Aliased_Functions HAL Generic Aliased Functions maintained for legacy purpose - * @{ - */ -#define HAL_EnableDBGSleepMode HAL_DBGMCU_EnableDBGSleepMode -#define HAL_DisableDBGSleepMode HAL_DBGMCU_DisableDBGSleepMode -#define HAL_EnableDBGStopMode HAL_DBGMCU_EnableDBGStopMode -#define HAL_DisableDBGStopMode HAL_DBGMCU_DisableDBGStopMode -#define HAL_EnableDBGStandbyMode HAL_DBGMCU_EnableDBGStandbyMode -#define HAL_DisableDBGStandbyMode HAL_DBGMCU_DisableDBGStandbyMode -#define HAL_DBG_LowPowerConfig(Periph, cmd) (((cmd\ - )==ENABLE)? HAL_DBGMCU_DBG_EnableLowPowerConfig(Periph) : HAL_DBGMCU_DBG_DisableLowPowerConfig(Periph)) -#define HAL_VREFINT_OutputSelect HAL_SYSCFG_VREFINT_OutputSelect -#define HAL_Lock_Cmd(cmd) (((cmd)==ENABLE) ? HAL_SYSCFG_Enable_Lock_VREFINT() : HAL_SYSCFG_Disable_Lock_VREFINT()) -#if defined(STM32L0) -#else -#define HAL_VREFINT_Cmd(cmd) (((cmd)==ENABLE)? HAL_SYSCFG_EnableVREFINT() : HAL_SYSCFG_DisableVREFINT()) -#endif -#define HAL_ADC_EnableBuffer_Cmd(cmd) (((cmd)==ENABLE) ? HAL_ADCEx_EnableVREFINT() : HAL_ADCEx_DisableVREFINT()) -#define HAL_ADC_EnableBufferSensor_Cmd(cmd) (((cmd\ - )==ENABLE) ? HAL_ADCEx_EnableVREFINTTempSensor() : HAL_ADCEx_DisableVREFINTTempSensor()) -#if defined(STM32H7A3xx) || defined(STM32H7B3xx) || defined(STM32H7B0xx) || defined(STM32H7A3xxQ) || defined(STM32H7B3xxQ) || defined(STM32H7B0xxQ) -#define HAL_EnableSRDomainDBGStopMode HAL_EnableDomain3DBGStopMode -#define HAL_DisableSRDomainDBGStopMode HAL_DisableDomain3DBGStopMode -#define HAL_EnableSRDomainDBGStandbyMode HAL_EnableDomain3DBGStandbyMode -#define HAL_DisableSRDomainDBGStandbyMode HAL_DisableDomain3DBGStandbyMode -#endif /* STM32H7A3xx || STM32H7B3xx || STM32H7B0xx || STM32H7A3xxQ || STM32H7B3xxQ || STM32H7B0xxQ */ - -/** - * @} - */ - -/** @defgroup HAL_FLASH_Aliased_Functions HAL FLASH Aliased Functions maintained for legacy purpose - * @{ - */ -#define FLASH_HalfPageProgram HAL_FLASHEx_HalfPageProgram -#define FLASH_EnableRunPowerDown HAL_FLASHEx_EnableRunPowerDown -#define FLASH_DisableRunPowerDown HAL_FLASHEx_DisableRunPowerDown -#define HAL_DATA_EEPROMEx_Unlock HAL_FLASHEx_DATAEEPROM_Unlock -#define HAL_DATA_EEPROMEx_Lock HAL_FLASHEx_DATAEEPROM_Lock -#define HAL_DATA_EEPROMEx_Erase HAL_FLASHEx_DATAEEPROM_Erase -#define HAL_DATA_EEPROMEx_Program HAL_FLASHEx_DATAEEPROM_Program - -/** - * @} - */ - -/** @defgroup HAL_I2C_Aliased_Functions HAL I2C Aliased Functions maintained for legacy purpose - * @{ - */ -#define HAL_I2CEx_AnalogFilter_Config HAL_I2CEx_ConfigAnalogFilter -#define HAL_I2CEx_DigitalFilter_Config HAL_I2CEx_ConfigDigitalFilter -#define HAL_FMPI2CEx_AnalogFilter_Config HAL_FMPI2CEx_ConfigAnalogFilter -#define HAL_FMPI2CEx_DigitalFilter_Config HAL_FMPI2CEx_ConfigDigitalFilter - -#define HAL_I2CFastModePlusConfig(SYSCFG_I2CFastModePlus, cmd) (((cmd\ - )==ENABLE)? HAL_I2CEx_EnableFastModePlus(SYSCFG_I2CFastModePlus): HAL_I2CEx_DisableFastModePlus(SYSCFG_I2CFastModePlus)) - -#if defined(STM32H7) || defined(STM32WB) || defined(STM32G0) || defined(STM32F0) || defined(STM32F1) || defined(STM32F2) || defined(STM32F3) || defined(STM32F4) || defined(STM32F7) || defined(STM32L0) || defined(STM32L4) || defined(STM32L5) || defined(STM32G4) || defined(STM32L1) -#define HAL_I2C_Master_Sequential_Transmit_IT HAL_I2C_Master_Seq_Transmit_IT -#define HAL_I2C_Master_Sequential_Receive_IT HAL_I2C_Master_Seq_Receive_IT -#define HAL_I2C_Slave_Sequential_Transmit_IT HAL_I2C_Slave_Seq_Transmit_IT -#define HAL_I2C_Slave_Sequential_Receive_IT HAL_I2C_Slave_Seq_Receive_IT -#endif /* STM32H7 || STM32WB || STM32G0 || STM32F0 || STM32F1 || STM32F2 || STM32F3 || STM32F4 || STM32F7 || STM32L0 || STM32L4 || STM32L5 || STM32G4 || STM32L1 */ -#if defined(STM32H7) || defined(STM32WB) || defined(STM32G0) || defined(STM32F4) || defined(STM32F7) || defined(STM32L0) || defined(STM32L4) || defined(STM32L5) || defined(STM32G4)|| defined(STM32L1) -#define HAL_I2C_Master_Sequential_Transmit_DMA HAL_I2C_Master_Seq_Transmit_DMA -#define HAL_I2C_Master_Sequential_Receive_DMA HAL_I2C_Master_Seq_Receive_DMA -#define HAL_I2C_Slave_Sequential_Transmit_DMA HAL_I2C_Slave_Seq_Transmit_DMA -#define HAL_I2C_Slave_Sequential_Receive_DMA HAL_I2C_Slave_Seq_Receive_DMA -#endif /* STM32H7 || STM32WB || STM32G0 || STM32F4 || STM32F7 || STM32L0 || STM32L4 || STM32L5 || STM32G4 || STM32L1 */ - -#if defined(STM32F4) -#define HAL_FMPI2C_Master_Sequential_Transmit_IT HAL_FMPI2C_Master_Seq_Transmit_IT -#define HAL_FMPI2C_Master_Sequential_Receive_IT HAL_FMPI2C_Master_Seq_Receive_IT -#define HAL_FMPI2C_Slave_Sequential_Transmit_IT HAL_FMPI2C_Slave_Seq_Transmit_IT -#define HAL_FMPI2C_Slave_Sequential_Receive_IT HAL_FMPI2C_Slave_Seq_Receive_IT -#define HAL_FMPI2C_Master_Sequential_Transmit_DMA HAL_FMPI2C_Master_Seq_Transmit_DMA -#define HAL_FMPI2C_Master_Sequential_Receive_DMA HAL_FMPI2C_Master_Seq_Receive_DMA -#define HAL_FMPI2C_Slave_Sequential_Transmit_DMA HAL_FMPI2C_Slave_Seq_Transmit_DMA -#define HAL_FMPI2C_Slave_Sequential_Receive_DMA HAL_FMPI2C_Slave_Seq_Receive_DMA -#endif /* STM32F4 */ -/** - * @} - */ - -/** @defgroup HAL_PWR_Aliased HAL PWR Aliased maintained for legacy purpose - * @{ - */ - -#if defined(STM32G0) -#define HAL_PWR_ConfigPVD HAL_PWREx_ConfigPVD -#define HAL_PWR_EnablePVD HAL_PWREx_EnablePVD -#define HAL_PWR_DisablePVD HAL_PWREx_DisablePVD -#define HAL_PWR_PVD_IRQHandler HAL_PWREx_PVD_IRQHandler -#endif -#define HAL_PWR_PVDConfig HAL_PWR_ConfigPVD -#define HAL_PWR_DisableBkUpReg HAL_PWREx_DisableBkUpReg -#define HAL_PWR_DisableFlashPowerDown HAL_PWREx_DisableFlashPowerDown -#define HAL_PWR_DisableVddio2Monitor HAL_PWREx_DisableVddio2Monitor -#define HAL_PWR_EnableBkUpReg HAL_PWREx_EnableBkUpReg -#define HAL_PWR_EnableFlashPowerDown HAL_PWREx_EnableFlashPowerDown -#define HAL_PWR_EnableVddio2Monitor HAL_PWREx_EnableVddio2Monitor -#define HAL_PWR_PVD_PVM_IRQHandler HAL_PWREx_PVD_PVM_IRQHandler -#define HAL_PWR_PVDLevelConfig HAL_PWR_ConfigPVD -#define HAL_PWR_Vddio2Monitor_IRQHandler HAL_PWREx_Vddio2Monitor_IRQHandler -#define HAL_PWR_Vddio2MonitorCallback HAL_PWREx_Vddio2MonitorCallback -#define HAL_PWREx_ActivateOverDrive HAL_PWREx_EnableOverDrive -#define HAL_PWREx_DeactivateOverDrive HAL_PWREx_DisableOverDrive -#define HAL_PWREx_DisableSDADCAnalog HAL_PWREx_DisableSDADC -#define HAL_PWREx_EnableSDADCAnalog HAL_PWREx_EnableSDADC -#define HAL_PWREx_PVMConfig HAL_PWREx_ConfigPVM - -#define PWR_MODE_NORMAL PWR_PVD_MODE_NORMAL -#define PWR_MODE_IT_RISING PWR_PVD_MODE_IT_RISING -#define PWR_MODE_IT_FALLING PWR_PVD_MODE_IT_FALLING -#define PWR_MODE_IT_RISING_FALLING PWR_PVD_MODE_IT_RISING_FALLING -#define PWR_MODE_EVENT_RISING PWR_PVD_MODE_EVENT_RISING -#define PWR_MODE_EVENT_FALLING PWR_PVD_MODE_EVENT_FALLING -#define PWR_MODE_EVENT_RISING_FALLING PWR_PVD_MODE_EVENT_RISING_FALLING - -#define CR_OFFSET_BB PWR_CR_OFFSET_BB -#define CSR_OFFSET_BB PWR_CSR_OFFSET_BB -#define PMODE_BIT_NUMBER VOS_BIT_NUMBER -#define CR_PMODE_BB CR_VOS_BB - -#define DBP_BitNumber DBP_BIT_NUMBER -#define PVDE_BitNumber PVDE_BIT_NUMBER -#define PMODE_BitNumber PMODE_BIT_NUMBER -#define EWUP_BitNumber EWUP_BIT_NUMBER -#define FPDS_BitNumber FPDS_BIT_NUMBER -#define ODEN_BitNumber ODEN_BIT_NUMBER -#define ODSWEN_BitNumber ODSWEN_BIT_NUMBER -#define MRLVDS_BitNumber MRLVDS_BIT_NUMBER -#define LPLVDS_BitNumber LPLVDS_BIT_NUMBER -#define BRE_BitNumber BRE_BIT_NUMBER - -#define PWR_MODE_EVT PWR_PVD_MODE_NORMAL - -#if defined (STM32U5) -#define PWR_SRAM1_PAGE1_STOP_RETENTION PWR_SRAM1_PAGE1_STOP -#define PWR_SRAM1_PAGE2_STOP_RETENTION PWR_SRAM1_PAGE2_STOP -#define PWR_SRAM1_PAGE3_STOP_RETENTION PWR_SRAM1_PAGE3_STOP -#define PWR_SRAM1_PAGE4_STOP_RETENTION PWR_SRAM1_PAGE4_STOP -#define PWR_SRAM1_PAGE5_STOP_RETENTION PWR_SRAM1_PAGE5_STOP -#define PWR_SRAM1_PAGE6_STOP_RETENTION PWR_SRAM1_PAGE6_STOP -#define PWR_SRAM1_PAGE7_STOP_RETENTION PWR_SRAM1_PAGE7_STOP -#define PWR_SRAM1_PAGE8_STOP_RETENTION PWR_SRAM1_PAGE8_STOP -#define PWR_SRAM1_PAGE9_STOP_RETENTION PWR_SRAM1_PAGE9_STOP -#define PWR_SRAM1_PAGE10_STOP_RETENTION PWR_SRAM1_PAGE10_STOP -#define PWR_SRAM1_PAGE11_STOP_RETENTION PWR_SRAM1_PAGE11_STOP -#define PWR_SRAM1_PAGE12_STOP_RETENTION PWR_SRAM1_PAGE12_STOP -#define PWR_SRAM1_FULL_STOP_RETENTION PWR_SRAM1_FULL_STOP - -#define PWR_SRAM2_PAGE1_STOP_RETENTION PWR_SRAM2_PAGE1_STOP -#define PWR_SRAM2_PAGE2_STOP_RETENTION PWR_SRAM2_PAGE2_STOP -#define PWR_SRAM2_FULL_STOP_RETENTION PWR_SRAM2_FULL_STOP - -#define PWR_SRAM3_PAGE1_STOP_RETENTION PWR_SRAM3_PAGE1_STOP -#define PWR_SRAM3_PAGE2_STOP_RETENTION PWR_SRAM3_PAGE2_STOP -#define PWR_SRAM3_PAGE3_STOP_RETENTION PWR_SRAM3_PAGE3_STOP -#define PWR_SRAM3_PAGE4_STOP_RETENTION PWR_SRAM3_PAGE4_STOP -#define PWR_SRAM3_PAGE5_STOP_RETENTION PWR_SRAM3_PAGE5_STOP -#define PWR_SRAM3_PAGE6_STOP_RETENTION PWR_SRAM3_PAGE6_STOP -#define PWR_SRAM3_PAGE7_STOP_RETENTION PWR_SRAM3_PAGE7_STOP -#define PWR_SRAM3_PAGE8_STOP_RETENTION PWR_SRAM3_PAGE8_STOP -#define PWR_SRAM3_PAGE9_STOP_RETENTION PWR_SRAM3_PAGE9_STOP -#define PWR_SRAM3_PAGE10_STOP_RETENTION PWR_SRAM3_PAGE10_STOP -#define PWR_SRAM3_PAGE11_STOP_RETENTION PWR_SRAM3_PAGE11_STOP -#define PWR_SRAM3_PAGE12_STOP_RETENTION PWR_SRAM3_PAGE12_STOP -#define PWR_SRAM3_PAGE13_STOP_RETENTION PWR_SRAM3_PAGE13_STOP -#define PWR_SRAM3_FULL_STOP_RETENTION PWR_SRAM3_FULL_STOP - -#define PWR_SRAM4_FULL_STOP_RETENTION PWR_SRAM4_FULL_STOP - -#define PWR_SRAM5_PAGE1_STOP_RETENTION PWR_SRAM5_PAGE1_STOP -#define PWR_SRAM5_PAGE2_STOP_RETENTION PWR_SRAM5_PAGE2_STOP -#define PWR_SRAM5_PAGE3_STOP_RETENTION PWR_SRAM5_PAGE3_STOP -#define PWR_SRAM5_PAGE4_STOP_RETENTION PWR_SRAM5_PAGE4_STOP -#define PWR_SRAM5_PAGE5_STOP_RETENTION PWR_SRAM5_PAGE5_STOP -#define PWR_SRAM5_PAGE6_STOP_RETENTION PWR_SRAM5_PAGE6_STOP -#define PWR_SRAM5_PAGE7_STOP_RETENTION PWR_SRAM5_PAGE7_STOP -#define PWR_SRAM5_PAGE8_STOP_RETENTION PWR_SRAM5_PAGE8_STOP -#define PWR_SRAM5_PAGE9_STOP_RETENTION PWR_SRAM5_PAGE9_STOP -#define PWR_SRAM5_PAGE10_STOP_RETENTION PWR_SRAM5_PAGE10_STOP -#define PWR_SRAM5_PAGE11_STOP_RETENTION PWR_SRAM5_PAGE11_STOP -#define PWR_SRAM5_PAGE12_STOP_RETENTION PWR_SRAM5_PAGE12_STOP -#define PWR_SRAM5_PAGE13_STOP_RETENTION PWR_SRAM5_PAGE13_STOP -#define PWR_SRAM5_FULL_STOP_RETENTION PWR_SRAM5_FULL_STOP - -#define PWR_ICACHE_FULL_STOP_RETENTION PWR_ICACHE_FULL_STOP -#define PWR_DCACHE1_FULL_STOP_RETENTION PWR_DCACHE1_FULL_STOP -#define PWR_DCACHE2_FULL_STOP_RETENTION PWR_DCACHE2_FULL_STOP -#define PWR_DMA2DRAM_FULL_STOP_RETENTION PWR_DMA2DRAM_FULL_STOP -#define PWR_PERIPHRAM_FULL_STOP_RETENTION PWR_PERIPHRAM_FULL_STOP -#define PWR_PKA32RAM_FULL_STOP_RETENTION PWR_PKA32RAM_FULL_STOP -#define PWR_GRAPHICPRAM_FULL_STOP_RETENTION PWR_GRAPHICPRAM_FULL_STOP -#define PWR_DSIRAM_FULL_STOP_RETENTION PWR_DSIRAM_FULL_STOP - -#define PWR_SRAM2_PAGE1_STANDBY_RETENTION PWR_SRAM2_PAGE1_STANDBY -#define PWR_SRAM2_PAGE2_STANDBY_RETENTION PWR_SRAM2_PAGE2_STANDBY -#define PWR_SRAM2_FULL_STANDBY_RETENTION PWR_SRAM2_FULL_STANDBY - -#define PWR_SRAM1_FULL_RUN_RETENTION PWR_SRAM1_FULL_RUN -#define PWR_SRAM2_FULL_RUN_RETENTION PWR_SRAM2_FULL_RUN -#define PWR_SRAM3_FULL_RUN_RETENTION PWR_SRAM3_FULL_RUN -#define PWR_SRAM4_FULL_RUN_RETENTION PWR_SRAM4_FULL_RUN -#define PWR_SRAM5_FULL_RUN_RETENTION PWR_SRAM5_FULL_RUN - -#define PWR_ALL_RAM_RUN_RETENTION_MASK PWR_ALL_RAM_RUN_MASK -#endif - -/** - * @} - */ - -/** @defgroup HAL_SMBUS_Aliased_Functions HAL SMBUS Aliased Functions maintained for legacy purpose - * @{ - */ -#define HAL_SMBUS_Slave_Listen_IT HAL_SMBUS_EnableListen_IT -#define HAL_SMBUS_SlaveAddrCallback HAL_SMBUS_AddrCallback -#define HAL_SMBUS_SlaveListenCpltCallback HAL_SMBUS_ListenCpltCallback -/** - * @} - */ - -/** @defgroup HAL_SPI_Aliased_Functions HAL SPI Aliased Functions maintained for legacy purpose - * @{ - */ -#define HAL_SPI_FlushRxFifo HAL_SPIEx_FlushRxFifo -/** - * @} - */ - -/** @defgroup HAL_TIM_Aliased_Functions HAL TIM Aliased Functions maintained for legacy purpose - * @{ - */ -#define HAL_TIM_DMADelayPulseCplt TIM_DMADelayPulseCplt -#define HAL_TIM_DMAError TIM_DMAError -#define HAL_TIM_DMACaptureCplt TIM_DMACaptureCplt -#define HAL_TIMEx_DMACommutationCplt TIMEx_DMACommutationCplt -#if defined(STM32H7) || defined(STM32G0) || defined(STM32F0) || defined(STM32F1) || defined(STM32F2) || defined(STM32F3) || defined(STM32F4) || defined(STM32F7) || defined(STM32L0) || defined(STM32L4) -#define HAL_TIM_SlaveConfigSynchronization HAL_TIM_SlaveConfigSynchro -#define HAL_TIM_SlaveConfigSynchronization_IT HAL_TIM_SlaveConfigSynchro_IT -#define HAL_TIMEx_CommutationCallback HAL_TIMEx_CommutCallback -#define HAL_TIMEx_ConfigCommutationEvent HAL_TIMEx_ConfigCommutEvent -#define HAL_TIMEx_ConfigCommutationEvent_IT HAL_TIMEx_ConfigCommutEvent_IT -#define HAL_TIMEx_ConfigCommutationEvent_DMA HAL_TIMEx_ConfigCommutEvent_DMA -#endif /* STM32H7 || STM32G0 || STM32F0 || STM32F1 || STM32F2 || STM32F3 || STM32F4 || STM32F7 || STM32L0 */ -/** - * @} - */ - -/** @defgroup HAL_UART_Aliased_Functions HAL UART Aliased Functions maintained for legacy purpose - * @{ - */ -#define HAL_UART_WakeupCallback HAL_UARTEx_WakeupCallback -/** - * @} - */ - -/** @defgroup HAL_LTDC_Aliased_Functions HAL LTDC Aliased Functions maintained for legacy purpose - * @{ - */ -#define HAL_LTDC_LineEvenCallback HAL_LTDC_LineEventCallback -#define HAL_LTDC_Relaod HAL_LTDC_Reload -#define HAL_LTDC_StructInitFromVideoConfig HAL_LTDCEx_StructInitFromVideoConfig -#define HAL_LTDC_StructInitFromAdaptedCommandConfig HAL_LTDCEx_StructInitFromAdaptedCommandConfig -/** - * @} - */ - - -/** @defgroup HAL_PPP_Aliased_Functions HAL PPP Aliased Functions maintained for legacy purpose - * @{ - */ - -/** - * @} - */ - -/* Exported macros ------------------------------------------------------------*/ - -/** @defgroup HAL_AES_Aliased_Macros HAL CRYP Aliased Macros maintained for legacy purpose - * @{ - */ -#define AES_IT_CC CRYP_IT_CC -#define AES_IT_ERR CRYP_IT_ERR -#define AES_FLAG_CCF CRYP_FLAG_CCF -/** - * @} - */ - -/** @defgroup HAL_Aliased_Macros HAL Generic Aliased Macros maintained for legacy purpose - * @{ - */ -#define __HAL_GET_BOOT_MODE __HAL_SYSCFG_GET_BOOT_MODE -#define __HAL_REMAPMEMORY_FLASH __HAL_SYSCFG_REMAPMEMORY_FLASH -#define __HAL_REMAPMEMORY_SYSTEMFLASH __HAL_SYSCFG_REMAPMEMORY_SYSTEMFLASH -#define __HAL_REMAPMEMORY_SRAM __HAL_SYSCFG_REMAPMEMORY_SRAM -#define __HAL_REMAPMEMORY_FMC __HAL_SYSCFG_REMAPMEMORY_FMC -#define __HAL_REMAPMEMORY_FMC_SDRAM __HAL_SYSCFG_REMAPMEMORY_FMC_SDRAM -#define __HAL_REMAPMEMORY_FSMC __HAL_SYSCFG_REMAPMEMORY_FSMC -#define __HAL_REMAPMEMORY_QUADSPI __HAL_SYSCFG_REMAPMEMORY_QUADSPI -#define __HAL_FMC_BANK __HAL_SYSCFG_FMC_BANK -#define __HAL_GET_FLAG __HAL_SYSCFG_GET_FLAG -#define __HAL_CLEAR_FLAG __HAL_SYSCFG_CLEAR_FLAG -#define __HAL_VREFINT_OUT_ENABLE __HAL_SYSCFG_VREFINT_OUT_ENABLE -#define __HAL_VREFINT_OUT_DISABLE __HAL_SYSCFG_VREFINT_OUT_DISABLE -#define __HAL_SYSCFG_SRAM2_WRP_ENABLE __HAL_SYSCFG_SRAM2_WRP_0_31_ENABLE - -#define SYSCFG_FLAG_VREF_READY SYSCFG_FLAG_VREFINT_READY -#define SYSCFG_FLAG_RC48 RCC_FLAG_HSI48 -#define IS_SYSCFG_FASTMODEPLUS_CONFIG IS_I2C_FASTMODEPLUS -#define UFB_MODE_BitNumber UFB_MODE_BIT_NUMBER -#define CMP_PD_BitNumber CMP_PD_BIT_NUMBER - -/** - * @} - */ - - -/** @defgroup HAL_ADC_Aliased_Macros HAL ADC Aliased Macros maintained for legacy purpose - * @{ - */ -#define __ADC_ENABLE __HAL_ADC_ENABLE -#define __ADC_DISABLE __HAL_ADC_DISABLE -#define __HAL_ADC_ENABLING_CONDITIONS ADC_ENABLING_CONDITIONS -#define __HAL_ADC_DISABLING_CONDITIONS ADC_DISABLING_CONDITIONS -#define __HAL_ADC_IS_ENABLED ADC_IS_ENABLE -#define __ADC_IS_ENABLED ADC_IS_ENABLE -#define __HAL_ADC_IS_SOFTWARE_START_REGULAR ADC_IS_SOFTWARE_START_REGULAR -#define __HAL_ADC_IS_SOFTWARE_START_INJECTED ADC_IS_SOFTWARE_START_INJECTED -#define __HAL_ADC_IS_CONVERSION_ONGOING_REGULAR_INJECTED ADC_IS_CONVERSION_ONGOING_REGULAR_INJECTED -#define __HAL_ADC_IS_CONVERSION_ONGOING_REGULAR ADC_IS_CONVERSION_ONGOING_REGULAR -#define __HAL_ADC_IS_CONVERSION_ONGOING_INJECTED ADC_IS_CONVERSION_ONGOING_INJECTED -#define __HAL_ADC_IS_CONVERSION_ONGOING ADC_IS_CONVERSION_ONGOING -#define __HAL_ADC_CLEAR_ERRORCODE ADC_CLEAR_ERRORCODE - -#define __HAL_ADC_GET_RESOLUTION ADC_GET_RESOLUTION -#define __HAL_ADC_JSQR_RK ADC_JSQR_RK -#define __HAL_ADC_CFGR_AWD1CH ADC_CFGR_AWD1CH_SHIFT -#define __HAL_ADC_CFGR_AWD23CR ADC_CFGR_AWD23CR -#define __HAL_ADC_CFGR_INJECT_AUTO_CONVERSION ADC_CFGR_INJECT_AUTO_CONVERSION -#define __HAL_ADC_CFGR_INJECT_CONTEXT_QUEUE ADC_CFGR_INJECT_CONTEXT_QUEUE -#define __HAL_ADC_CFGR_INJECT_DISCCONTINUOUS ADC_CFGR_INJECT_DISCCONTINUOUS -#define __HAL_ADC_CFGR_REG_DISCCONTINUOUS ADC_CFGR_REG_DISCCONTINUOUS -#define __HAL_ADC_CFGR_DISCONTINUOUS_NUM ADC_CFGR_DISCONTINUOUS_NUM -#define __HAL_ADC_CFGR_AUTOWAIT ADC_CFGR_AUTOWAIT -#define __HAL_ADC_CFGR_CONTINUOUS ADC_CFGR_CONTINUOUS -#define __HAL_ADC_CFGR_OVERRUN ADC_CFGR_OVERRUN -#define __HAL_ADC_CFGR_DMACONTREQ ADC_CFGR_DMACONTREQ -#define __HAL_ADC_CFGR_EXTSEL ADC_CFGR_EXTSEL_SET -#define __HAL_ADC_JSQR_JEXTSEL ADC_JSQR_JEXTSEL_SET -#define __HAL_ADC_OFR_CHANNEL ADC_OFR_CHANNEL -#define __HAL_ADC_DIFSEL_CHANNEL ADC_DIFSEL_CHANNEL -#define __HAL_ADC_CALFACT_DIFF_SET ADC_CALFACT_DIFF_SET -#define __HAL_ADC_CALFACT_DIFF_GET ADC_CALFACT_DIFF_GET -#define __HAL_ADC_TRX_HIGHTHRESHOLD ADC_TRX_HIGHTHRESHOLD - -#define __HAL_ADC_OFFSET_SHIFT_RESOLUTION ADC_OFFSET_SHIFT_RESOLUTION -#define __HAL_ADC_AWD1THRESHOLD_SHIFT_RESOLUTION ADC_AWD1THRESHOLD_SHIFT_RESOLUTION -#define __HAL_ADC_AWD23THRESHOLD_SHIFT_RESOLUTION ADC_AWD23THRESHOLD_SHIFT_RESOLUTION -#define __HAL_ADC_COMMON_REGISTER ADC_COMMON_REGISTER -#define __HAL_ADC_COMMON_CCR_MULTI ADC_COMMON_CCR_MULTI -#define __HAL_ADC_MULTIMODE_IS_ENABLED ADC_MULTIMODE_IS_ENABLE -#define __ADC_MULTIMODE_IS_ENABLED ADC_MULTIMODE_IS_ENABLE -#define __HAL_ADC_NONMULTIMODE_OR_MULTIMODEMASTER ADC_NONMULTIMODE_OR_MULTIMODEMASTER -#define __HAL_ADC_COMMON_ADC_OTHER ADC_COMMON_ADC_OTHER -#define __HAL_ADC_MULTI_SLAVE ADC_MULTI_SLAVE - -#define __HAL_ADC_SQR1_L ADC_SQR1_L_SHIFT -#define __HAL_ADC_JSQR_JL ADC_JSQR_JL_SHIFT -#define __HAL_ADC_JSQR_RK_JL ADC_JSQR_RK_JL -#define __HAL_ADC_CR1_DISCONTINUOUS_NUM ADC_CR1_DISCONTINUOUS_NUM -#define __HAL_ADC_CR1_SCAN ADC_CR1_SCAN_SET -#define __HAL_ADC_CONVCYCLES_MAX_RANGE ADC_CONVCYCLES_MAX_RANGE -#define __HAL_ADC_CLOCK_PRESCALER_RANGE ADC_CLOCK_PRESCALER_RANGE -#define __HAL_ADC_GET_CLOCK_PRESCALER ADC_GET_CLOCK_PRESCALER - -#define __HAL_ADC_SQR1 ADC_SQR1 -#define __HAL_ADC_SMPR1 ADC_SMPR1 -#define __HAL_ADC_SMPR2 ADC_SMPR2 -#define __HAL_ADC_SQR3_RK ADC_SQR3_RK -#define __HAL_ADC_SQR2_RK ADC_SQR2_RK -#define __HAL_ADC_SQR1_RK ADC_SQR1_RK -#define __HAL_ADC_CR2_CONTINUOUS ADC_CR2_CONTINUOUS -#define __HAL_ADC_CR1_DISCONTINUOUS ADC_CR1_DISCONTINUOUS -#define __HAL_ADC_CR1_SCANCONV ADC_CR1_SCANCONV -#define __HAL_ADC_CR2_EOCSelection ADC_CR2_EOCSelection -#define __HAL_ADC_CR2_DMAContReq ADC_CR2_DMAContReq -#define __HAL_ADC_JSQR ADC_JSQR - -#define __HAL_ADC_CHSELR_CHANNEL ADC_CHSELR_CHANNEL -#define __HAL_ADC_CFGR1_REG_DISCCONTINUOUS ADC_CFGR1_REG_DISCCONTINUOUS -#define __HAL_ADC_CFGR1_AUTOOFF ADC_CFGR1_AUTOOFF -#define __HAL_ADC_CFGR1_AUTOWAIT ADC_CFGR1_AUTOWAIT -#define __HAL_ADC_CFGR1_CONTINUOUS ADC_CFGR1_CONTINUOUS -#define __HAL_ADC_CFGR1_OVERRUN ADC_CFGR1_OVERRUN -#define __HAL_ADC_CFGR1_SCANDIR ADC_CFGR1_SCANDIR -#define __HAL_ADC_CFGR1_DMACONTREQ ADC_CFGR1_DMACONTREQ - -/** - * @} - */ - -/** @defgroup HAL_DAC_Aliased_Macros HAL DAC Aliased Macros maintained for legacy purpose - * @{ - */ -#define __HAL_DHR12R1_ALIGNEMENT DAC_DHR12R1_ALIGNMENT -#define __HAL_DHR12R2_ALIGNEMENT DAC_DHR12R2_ALIGNMENT -#define __HAL_DHR12RD_ALIGNEMENT DAC_DHR12RD_ALIGNMENT -#define IS_DAC_GENERATE_WAVE IS_DAC_WAVE - -/** - * @} - */ - -/** @defgroup HAL_DBGMCU_Aliased_Macros HAL DBGMCU Aliased Macros maintained for legacy purpose - * @{ - */ -#define __HAL_FREEZE_TIM1_DBGMCU __HAL_DBGMCU_FREEZE_TIM1 -#define __HAL_UNFREEZE_TIM1_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM1 -#define __HAL_FREEZE_TIM2_DBGMCU __HAL_DBGMCU_FREEZE_TIM2 -#define __HAL_UNFREEZE_TIM2_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM2 -#define __HAL_FREEZE_TIM3_DBGMCU __HAL_DBGMCU_FREEZE_TIM3 -#define __HAL_UNFREEZE_TIM3_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM3 -#define __HAL_FREEZE_TIM4_DBGMCU __HAL_DBGMCU_FREEZE_TIM4 -#define __HAL_UNFREEZE_TIM4_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM4 -#define __HAL_FREEZE_TIM5_DBGMCU __HAL_DBGMCU_FREEZE_TIM5 -#define __HAL_UNFREEZE_TIM5_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM5 -#define __HAL_FREEZE_TIM6_DBGMCU __HAL_DBGMCU_FREEZE_TIM6 -#define __HAL_UNFREEZE_TIM6_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM6 -#define __HAL_FREEZE_TIM7_DBGMCU __HAL_DBGMCU_FREEZE_TIM7 -#define __HAL_UNFREEZE_TIM7_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM7 -#define __HAL_FREEZE_TIM8_DBGMCU __HAL_DBGMCU_FREEZE_TIM8 -#define __HAL_UNFREEZE_TIM8_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM8 - -#define __HAL_FREEZE_TIM9_DBGMCU __HAL_DBGMCU_FREEZE_TIM9 -#define __HAL_UNFREEZE_TIM9_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM9 -#define __HAL_FREEZE_TIM10_DBGMCU __HAL_DBGMCU_FREEZE_TIM10 -#define __HAL_UNFREEZE_TIM10_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM10 -#define __HAL_FREEZE_TIM11_DBGMCU __HAL_DBGMCU_FREEZE_TIM11 -#define __HAL_UNFREEZE_TIM11_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM11 -#define __HAL_FREEZE_TIM12_DBGMCU __HAL_DBGMCU_FREEZE_TIM12 -#define __HAL_UNFREEZE_TIM12_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM12 -#define __HAL_FREEZE_TIM13_DBGMCU __HAL_DBGMCU_FREEZE_TIM13 -#define __HAL_UNFREEZE_TIM13_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM13 -#define __HAL_FREEZE_TIM14_DBGMCU __HAL_DBGMCU_FREEZE_TIM14 -#define __HAL_UNFREEZE_TIM14_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM14 -#define __HAL_FREEZE_CAN2_DBGMCU __HAL_DBGMCU_FREEZE_CAN2 -#define __HAL_UNFREEZE_CAN2_DBGMCU __HAL_DBGMCU_UNFREEZE_CAN2 - - -#define __HAL_FREEZE_TIM15_DBGMCU __HAL_DBGMCU_FREEZE_TIM15 -#define __HAL_UNFREEZE_TIM15_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM15 -#define __HAL_FREEZE_TIM16_DBGMCU __HAL_DBGMCU_FREEZE_TIM16 -#define __HAL_UNFREEZE_TIM16_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM16 -#define __HAL_FREEZE_TIM17_DBGMCU __HAL_DBGMCU_FREEZE_TIM17 -#define __HAL_UNFREEZE_TIM17_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM17 -#define __HAL_FREEZE_RTC_DBGMCU __HAL_DBGMCU_FREEZE_RTC -#define __HAL_UNFREEZE_RTC_DBGMCU __HAL_DBGMCU_UNFREEZE_RTC -#if defined(STM32H7) -#define __HAL_FREEZE_WWDG_DBGMCU __HAL_DBGMCU_FREEZE_WWDG1 -#define __HAL_UNFREEZE_WWDG_DBGMCU __HAL_DBGMCU_UnFreeze_WWDG1 -#define __HAL_FREEZE_IWDG_DBGMCU __HAL_DBGMCU_FREEZE_IWDG1 -#define __HAL_UNFREEZE_IWDG_DBGMCU __HAL_DBGMCU_UnFreeze_IWDG1 -#else -#define __HAL_FREEZE_WWDG_DBGMCU __HAL_DBGMCU_FREEZE_WWDG -#define __HAL_UNFREEZE_WWDG_DBGMCU __HAL_DBGMCU_UNFREEZE_WWDG -#define __HAL_FREEZE_IWDG_DBGMCU __HAL_DBGMCU_FREEZE_IWDG -#define __HAL_UNFREEZE_IWDG_DBGMCU __HAL_DBGMCU_UNFREEZE_IWDG -#endif /* STM32H7 */ -#define __HAL_FREEZE_I2C1_TIMEOUT_DBGMCU __HAL_DBGMCU_FREEZE_I2C1_TIMEOUT -#define __HAL_UNFREEZE_I2C1_TIMEOUT_DBGMCU __HAL_DBGMCU_UNFREEZE_I2C1_TIMEOUT -#define __HAL_FREEZE_I2C2_TIMEOUT_DBGMCU __HAL_DBGMCU_FREEZE_I2C2_TIMEOUT -#define __HAL_UNFREEZE_I2C2_TIMEOUT_DBGMCU __HAL_DBGMCU_UNFREEZE_I2C2_TIMEOUT -#define __HAL_FREEZE_I2C3_TIMEOUT_DBGMCU __HAL_DBGMCU_FREEZE_I2C3_TIMEOUT -#define __HAL_UNFREEZE_I2C3_TIMEOUT_DBGMCU __HAL_DBGMCU_UNFREEZE_I2C3_TIMEOUT -#define __HAL_FREEZE_CAN1_DBGMCU __HAL_DBGMCU_FREEZE_CAN1 -#define __HAL_UNFREEZE_CAN1_DBGMCU __HAL_DBGMCU_UNFREEZE_CAN1 -#define __HAL_FREEZE_LPTIM1_DBGMCU __HAL_DBGMCU_FREEZE_LPTIM1 -#define __HAL_UNFREEZE_LPTIM1_DBGMCU __HAL_DBGMCU_UNFREEZE_LPTIM1 -#define __HAL_FREEZE_LPTIM2_DBGMCU __HAL_DBGMCU_FREEZE_LPTIM2 -#define __HAL_UNFREEZE_LPTIM2_DBGMCU __HAL_DBGMCU_UNFREEZE_LPTIM2 - -/** - * @} - */ - -/** @defgroup HAL_COMP_Aliased_Macros HAL COMP Aliased Macros maintained for legacy purpose - * @{ - */ -#if defined(STM32F3) -#define COMP_START __HAL_COMP_ENABLE -#define COMP_STOP __HAL_COMP_DISABLE -#define COMP_LOCK __HAL_COMP_LOCK - -#if defined(STM32F301x8) || defined(STM32F302x8) || defined(STM32F318xx) || defined(STM32F303x8) || defined(STM32F334x8) || defined(STM32F328xx) -#define __HAL_COMP_EXTI_RISING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_RISING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_RISING_EDGE() : \ - __HAL_COMP_COMP6_EXTI_ENABLE_RISING_EDGE()) -#define __HAL_COMP_EXTI_RISING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_RISING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_RISING_EDGE() : \ - __HAL_COMP_COMP6_EXTI_DISABLE_RISING_EDGE()) -#define __HAL_COMP_EXTI_FALLING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_FALLING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_FALLING_EDGE() : \ - __HAL_COMP_COMP6_EXTI_ENABLE_FALLING_EDGE()) -#define __HAL_COMP_EXTI_FALLING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_FALLING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_FALLING_EDGE() : \ - __HAL_COMP_COMP6_EXTI_DISABLE_FALLING_EDGE()) -#define __HAL_COMP_EXTI_ENABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_IT() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_IT() : \ - __HAL_COMP_COMP6_EXTI_ENABLE_IT()) -#define __HAL_COMP_EXTI_DISABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_IT() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_IT() : \ - __HAL_COMP_COMP6_EXTI_DISABLE_IT()) -#define __HAL_COMP_EXTI_GET_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_GET_FLAG() : \ - ((__FLAG__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_GET_FLAG() : \ - __HAL_COMP_COMP6_EXTI_GET_FLAG()) -#define __HAL_COMP_EXTI_CLEAR_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_CLEAR_FLAG() : \ - ((__FLAG__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_CLEAR_FLAG() : \ - __HAL_COMP_COMP6_EXTI_CLEAR_FLAG()) -# endif -# if defined(STM32F302xE) || defined(STM32F302xC) -#define __HAL_COMP_EXTI_RISING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_RISING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_RISING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_RISING_EDGE() : \ - __HAL_COMP_COMP6_EXTI_ENABLE_RISING_EDGE()) -#define __HAL_COMP_EXTI_RISING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_RISING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_RISING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_RISING_EDGE() : \ - __HAL_COMP_COMP6_EXTI_DISABLE_RISING_EDGE()) -#define __HAL_COMP_EXTI_FALLING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_FALLING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_FALLING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_FALLING_EDGE() : \ - __HAL_COMP_COMP6_EXTI_ENABLE_FALLING_EDGE()) -#define __HAL_COMP_EXTI_FALLING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_FALLING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_FALLING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_FALLING_EDGE() : \ - __HAL_COMP_COMP6_EXTI_DISABLE_FALLING_EDGE()) -#define __HAL_COMP_EXTI_ENABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_IT() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_IT() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_IT() : \ - __HAL_COMP_COMP6_EXTI_ENABLE_IT()) -#define __HAL_COMP_EXTI_DISABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_IT() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_IT() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_IT() : \ - __HAL_COMP_COMP6_EXTI_DISABLE_IT()) -#define __HAL_COMP_EXTI_GET_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_GET_FLAG() : \ - ((__FLAG__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_GET_FLAG() : \ - ((__FLAG__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_GET_FLAG() : \ - __HAL_COMP_COMP6_EXTI_GET_FLAG()) -#define __HAL_COMP_EXTI_CLEAR_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_CLEAR_FLAG() : \ - ((__FLAG__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_CLEAR_FLAG() : \ - ((__FLAG__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_CLEAR_FLAG() : \ - __HAL_COMP_COMP6_EXTI_CLEAR_FLAG()) -# endif -# if defined(STM32F303xE) || defined(STM32F398xx) || defined(STM32F303xC) || defined(STM32F358xx) -#define __HAL_COMP_EXTI_RISING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_RISING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_RISING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_ENABLE_RISING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_RISING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_ENABLE_RISING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_ENABLE_RISING_EDGE() : \ - __HAL_COMP_COMP7_EXTI_ENABLE_RISING_EDGE()) -#define __HAL_COMP_EXTI_RISING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_RISING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_RISING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_DISABLE_RISING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_RISING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_DISABLE_RISING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_DISABLE_RISING_EDGE() : \ - __HAL_COMP_COMP7_EXTI_DISABLE_RISING_EDGE()) -#define __HAL_COMP_EXTI_FALLING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_FALLING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_FALLING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_ENABLE_FALLING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_FALLING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_ENABLE_FALLING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_ENABLE_FALLING_EDGE() : \ - __HAL_COMP_COMP7_EXTI_ENABLE_FALLING_EDGE()) -#define __HAL_COMP_EXTI_FALLING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_FALLING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_FALLING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_DISABLE_FALLING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_FALLING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_DISABLE_FALLING_EDGE() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_DISABLE_FALLING_EDGE() : \ - __HAL_COMP_COMP7_EXTI_DISABLE_FALLING_EDGE()) -#define __HAL_COMP_EXTI_ENABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_IT() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_IT() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_ENABLE_IT() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_IT() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_ENABLE_IT() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_ENABLE_IT() : \ - __HAL_COMP_COMP7_EXTI_ENABLE_IT()) -#define __HAL_COMP_EXTI_DISABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_IT() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_IT() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_DISABLE_IT() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_IT() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_DISABLE_IT() : \ - ((__EXTILINE__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_DISABLE_IT() : \ - __HAL_COMP_COMP7_EXTI_DISABLE_IT()) -#define __HAL_COMP_EXTI_GET_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_GET_FLAG() : \ - ((__FLAG__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_GET_FLAG() : \ - ((__FLAG__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_GET_FLAG() : \ - ((__FLAG__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_GET_FLAG() : \ - ((__FLAG__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_GET_FLAG() : \ - ((__FLAG__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_GET_FLAG() : \ - __HAL_COMP_COMP7_EXTI_GET_FLAG()) -#define __HAL_COMP_EXTI_CLEAR_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_CLEAR_FLAG() : \ - ((__FLAG__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_CLEAR_FLAG() : \ - ((__FLAG__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_CLEAR_FLAG() : \ - ((__FLAG__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_CLEAR_FLAG() : \ - ((__FLAG__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_CLEAR_FLAG() : \ - ((__FLAG__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_CLEAR_FLAG() : \ - __HAL_COMP_COMP7_EXTI_CLEAR_FLAG()) -# endif -# if defined(STM32F373xC) ||defined(STM32F378xx) -#define __HAL_COMP_EXTI_RISING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_RISING_EDGE() : \ - __HAL_COMP_COMP2_EXTI_ENABLE_RISING_EDGE()) -#define __HAL_COMP_EXTI_RISING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_RISING_EDGE() : \ - __HAL_COMP_COMP2_EXTI_DISABLE_RISING_EDGE()) -#define __HAL_COMP_EXTI_FALLING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_FALLING_EDGE() : \ - __HAL_COMP_COMP2_EXTI_ENABLE_FALLING_EDGE()) -#define __HAL_COMP_EXTI_FALLING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_FALLING_EDGE() : \ - __HAL_COMP_COMP2_EXTI_DISABLE_FALLING_EDGE()) -#define __HAL_COMP_EXTI_ENABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_IT() : \ - __HAL_COMP_COMP2_EXTI_ENABLE_IT()) -#define __HAL_COMP_EXTI_DISABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_IT() : \ - __HAL_COMP_COMP2_EXTI_DISABLE_IT()) -#define __HAL_COMP_EXTI_GET_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_GET_FLAG() : \ - __HAL_COMP_COMP2_EXTI_GET_FLAG()) -#define __HAL_COMP_EXTI_CLEAR_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_CLEAR_FLAG() : \ - __HAL_COMP_COMP2_EXTI_CLEAR_FLAG()) -# endif -#else -#define __HAL_COMP_EXTI_RISING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_RISING_EDGE() : \ - __HAL_COMP_COMP2_EXTI_ENABLE_RISING_EDGE()) -#define __HAL_COMP_EXTI_RISING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_RISING_EDGE() : \ - __HAL_COMP_COMP2_EXTI_DISABLE_RISING_EDGE()) -#define __HAL_COMP_EXTI_FALLING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_FALLING_EDGE() : \ - __HAL_COMP_COMP2_EXTI_ENABLE_FALLING_EDGE()) -#define __HAL_COMP_EXTI_FALLING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_FALLING_EDGE() : \ - __HAL_COMP_COMP2_EXTI_DISABLE_FALLING_EDGE()) -#define __HAL_COMP_EXTI_ENABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_IT() : \ - __HAL_COMP_COMP2_EXTI_ENABLE_IT()) -#define __HAL_COMP_EXTI_DISABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_IT() : \ - __HAL_COMP_COMP2_EXTI_DISABLE_IT()) -#define __HAL_COMP_EXTI_GET_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_GET_FLAG() : \ - __HAL_COMP_COMP2_EXTI_GET_FLAG()) -#define __HAL_COMP_EXTI_CLEAR_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_CLEAR_FLAG() : \ - __HAL_COMP_COMP2_EXTI_CLEAR_FLAG()) -#endif - -#define __HAL_COMP_GET_EXTI_LINE COMP_GET_EXTI_LINE - -#if defined(STM32L0) || defined(STM32L4) -/* Note: On these STM32 families, the only argument of this macro */ -/* is COMP_FLAG_LOCK. */ -/* This macro is replaced by __HAL_COMP_IS_LOCKED with only HAL handle */ -/* argument. */ -#define __HAL_COMP_GET_FLAG(__HANDLE__, __FLAG__) (__HAL_COMP_IS_LOCKED(__HANDLE__)) -#endif -/** - * @} - */ - -#if defined(STM32L0) || defined(STM32L4) -/** @defgroup HAL_COMP_Aliased_Functions HAL COMP Aliased Functions maintained for legacy purpose - * @{ - */ -#define HAL_COMP_Start_IT HAL_COMP_Start /* Function considered as legacy as EXTI event or IT configuration is done into HAL_COMP_Init() */ -#define HAL_COMP_Stop_IT HAL_COMP_Stop /* Function considered as legacy as EXTI event or IT configuration is done into HAL_COMP_Init() */ -/** - * @} - */ -#endif - -/** @defgroup HAL_DAC_Aliased_Macros HAL DAC Aliased Macros maintained for legacy purpose - * @{ - */ - -#define IS_DAC_WAVE(WAVE) (((WAVE) == DAC_WAVE_NONE) || \ - ((WAVE) == DAC_WAVE_NOISE)|| \ - ((WAVE) == DAC_WAVE_TRIANGLE)) - -/** - * @} - */ - -/** @defgroup HAL_FLASH_Aliased_Macros HAL FLASH Aliased Macros maintained for legacy purpose - * @{ - */ - -#define IS_WRPAREA IS_OB_WRPAREA -#define IS_TYPEPROGRAM IS_FLASH_TYPEPROGRAM -#define IS_TYPEPROGRAMFLASH IS_FLASH_TYPEPROGRAM -#define IS_TYPEERASE IS_FLASH_TYPEERASE -#define IS_NBSECTORS IS_FLASH_NBSECTORS -#define IS_OB_WDG_SOURCE IS_OB_IWDG_SOURCE - -/** - * @} - */ - -/** @defgroup HAL_I2C_Aliased_Macros HAL I2C Aliased Macros maintained for legacy purpose - * @{ - */ - -#define __HAL_I2C_RESET_CR2 I2C_RESET_CR2 -#define __HAL_I2C_GENERATE_START I2C_GENERATE_START -#if defined(STM32F1) -#define __HAL_I2C_FREQ_RANGE I2C_FREQRANGE -#else -#define __HAL_I2C_FREQ_RANGE I2C_FREQ_RANGE -#endif /* STM32F1 */ -#define __HAL_I2C_RISE_TIME I2C_RISE_TIME -#define __HAL_I2C_SPEED_STANDARD I2C_SPEED_STANDARD -#define __HAL_I2C_SPEED_FAST I2C_SPEED_FAST -#define __HAL_I2C_SPEED I2C_SPEED -#define __HAL_I2C_7BIT_ADD_WRITE I2C_7BIT_ADD_WRITE -#define __HAL_I2C_7BIT_ADD_READ I2C_7BIT_ADD_READ -#define __HAL_I2C_10BIT_ADDRESS I2C_10BIT_ADDRESS -#define __HAL_I2C_10BIT_HEADER_WRITE I2C_10BIT_HEADER_WRITE -#define __HAL_I2C_10BIT_HEADER_READ I2C_10BIT_HEADER_READ -#define __HAL_I2C_MEM_ADD_MSB I2C_MEM_ADD_MSB -#define __HAL_I2C_MEM_ADD_LSB I2C_MEM_ADD_LSB -#define __HAL_I2C_FREQRANGE I2C_FREQRANGE -/** - * @} - */ - -/** @defgroup HAL_I2S_Aliased_Macros HAL I2S Aliased Macros maintained for legacy purpose - * @{ - */ - -#define IS_I2S_INSTANCE IS_I2S_ALL_INSTANCE -#define IS_I2S_INSTANCE_EXT IS_I2S_ALL_INSTANCE_EXT - -#if defined(STM32H7) -#define __HAL_I2S_CLEAR_FREFLAG __HAL_I2S_CLEAR_TIFREFLAG -#endif - -/** - * @} - */ - -/** @defgroup HAL_IRDA_Aliased_Macros HAL IRDA Aliased Macros maintained for legacy purpose - * @{ - */ - -#define __IRDA_DISABLE __HAL_IRDA_DISABLE -#define __IRDA_ENABLE __HAL_IRDA_ENABLE - -#define __HAL_IRDA_GETCLOCKSOURCE IRDA_GETCLOCKSOURCE -#define __HAL_IRDA_MASK_COMPUTATION IRDA_MASK_COMPUTATION -#define __IRDA_GETCLOCKSOURCE IRDA_GETCLOCKSOURCE -#define __IRDA_MASK_COMPUTATION IRDA_MASK_COMPUTATION - -#define IS_IRDA_ONEBIT_SAMPLE IS_IRDA_ONE_BIT_SAMPLE - - -/** - * @} - */ - - -/** @defgroup HAL_IWDG_Aliased_Macros HAL IWDG Aliased Macros maintained for legacy purpose - * @{ - */ -#define __HAL_IWDG_ENABLE_WRITE_ACCESS IWDG_ENABLE_WRITE_ACCESS -#define __HAL_IWDG_DISABLE_WRITE_ACCESS IWDG_DISABLE_WRITE_ACCESS -/** - * @} - */ - - -/** @defgroup HAL_LPTIM_Aliased_Macros HAL LPTIM Aliased Macros maintained for legacy purpose - * @{ - */ - -#define __HAL_LPTIM_ENABLE_INTERRUPT __HAL_LPTIM_ENABLE_IT -#define __HAL_LPTIM_DISABLE_INTERRUPT __HAL_LPTIM_DISABLE_IT -#define __HAL_LPTIM_GET_ITSTATUS __HAL_LPTIM_GET_IT_SOURCE - -/** - * @} - */ - - -/** @defgroup HAL_OPAMP_Aliased_Macros HAL OPAMP Aliased Macros maintained for legacy purpose - * @{ - */ -#define __OPAMP_CSR_OPAXPD OPAMP_CSR_OPAXPD -#define __OPAMP_CSR_S3SELX OPAMP_CSR_S3SELX -#define __OPAMP_CSR_S4SELX OPAMP_CSR_S4SELX -#define __OPAMP_CSR_S5SELX OPAMP_CSR_S5SELX -#define __OPAMP_CSR_S6SELX OPAMP_CSR_S6SELX -#define __OPAMP_CSR_OPAXCAL_L OPAMP_CSR_OPAXCAL_L -#define __OPAMP_CSR_OPAXCAL_H OPAMP_CSR_OPAXCAL_H -#define __OPAMP_CSR_OPAXLPM OPAMP_CSR_OPAXLPM -#define __OPAMP_CSR_ALL_SWITCHES OPAMP_CSR_ALL_SWITCHES -#define __OPAMP_CSR_ANAWSELX OPAMP_CSR_ANAWSELX -#define __OPAMP_CSR_OPAXCALOUT OPAMP_CSR_OPAXCALOUT -#define __OPAMP_OFFSET_TRIM_BITSPOSITION OPAMP_OFFSET_TRIM_BITSPOSITION -#define __OPAMP_OFFSET_TRIM_SET OPAMP_OFFSET_TRIM_SET - -/** - * @} - */ - - -/** @defgroup HAL_PWR_Aliased_Macros HAL PWR Aliased Macros maintained for legacy purpose - * @{ - */ -#define __HAL_PVD_EVENT_DISABLE __HAL_PWR_PVD_EXTI_DISABLE_EVENT -#define __HAL_PVD_EVENT_ENABLE __HAL_PWR_PVD_EXTI_ENABLE_EVENT -#define __HAL_PVD_EXTI_FALLINGTRIGGER_DISABLE __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE -#define __HAL_PVD_EXTI_FALLINGTRIGGER_ENABLE __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE -#define __HAL_PVD_EXTI_RISINGTRIGGER_DISABLE __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE -#define __HAL_PVD_EXTI_RISINGTRIGGER_ENABLE __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE -#define __HAL_PVM_EVENT_DISABLE __HAL_PWR_PVM_EVENT_DISABLE -#define __HAL_PVM_EVENT_ENABLE __HAL_PWR_PVM_EVENT_ENABLE -#define __HAL_PVM_EXTI_FALLINGTRIGGER_DISABLE __HAL_PWR_PVM_EXTI_FALLINGTRIGGER_DISABLE -#define __HAL_PVM_EXTI_FALLINGTRIGGER_ENABLE __HAL_PWR_PVM_EXTI_FALLINGTRIGGER_ENABLE -#define __HAL_PVM_EXTI_RISINGTRIGGER_DISABLE __HAL_PWR_PVM_EXTI_RISINGTRIGGER_DISABLE -#define __HAL_PVM_EXTI_RISINGTRIGGER_ENABLE __HAL_PWR_PVM_EXTI_RISINGTRIGGER_ENABLE -#define __HAL_PWR_INTERNALWAKEUP_DISABLE HAL_PWREx_DisableInternalWakeUpLine -#define __HAL_PWR_INTERNALWAKEUP_ENABLE HAL_PWREx_EnableInternalWakeUpLine -#define __HAL_PWR_PULL_UP_DOWN_CONFIG_DISABLE HAL_PWREx_DisablePullUpPullDownConfig -#define __HAL_PWR_PULL_UP_DOWN_CONFIG_ENABLE HAL_PWREx_EnablePullUpPullDownConfig -#define __HAL_PWR_PVD_EXTI_CLEAR_EGDE_TRIGGER() do { __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE();__HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE(); } while(0) -#define __HAL_PWR_PVD_EXTI_EVENT_DISABLE __HAL_PWR_PVD_EXTI_DISABLE_EVENT -#define __HAL_PWR_PVD_EXTI_EVENT_ENABLE __HAL_PWR_PVD_EXTI_ENABLE_EVENT -#define __HAL_PWR_PVD_EXTI_FALLINGTRIGGER_DISABLE __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE -#define __HAL_PWR_PVD_EXTI_FALLINGTRIGGER_ENABLE __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE -#define __HAL_PWR_PVD_EXTI_RISINGTRIGGER_DISABLE __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE -#define __HAL_PWR_PVD_EXTI_RISINGTRIGGER_ENABLE __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE -#define __HAL_PWR_PVD_EXTI_SET_FALLING_EGDE_TRIGGER __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE -#define __HAL_PWR_PVD_EXTI_SET_RISING_EDGE_TRIGGER __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE -#define __HAL_PWR_PVM_DISABLE() do { HAL_PWREx_DisablePVM1();HAL_PWREx_DisablePVM2();HAL_PWREx_DisablePVM3();HAL_PWREx_DisablePVM4(); } while(0) -#define __HAL_PWR_PVM_ENABLE() do { HAL_PWREx_EnablePVM1();HAL_PWREx_EnablePVM2();HAL_PWREx_EnablePVM3();HAL_PWREx_EnablePVM4(); } while(0) -#define __HAL_PWR_SRAM2CONTENT_PRESERVE_DISABLE HAL_PWREx_DisableSRAM2ContentRetention -#define __HAL_PWR_SRAM2CONTENT_PRESERVE_ENABLE HAL_PWREx_EnableSRAM2ContentRetention -#define __HAL_PWR_VDDIO2_DISABLE HAL_PWREx_DisableVddIO2 -#define __HAL_PWR_VDDIO2_ENABLE HAL_PWREx_EnableVddIO2 -#define __HAL_PWR_VDDIO2_EXTI_CLEAR_EGDE_TRIGGER __HAL_PWR_VDDIO2_EXTI_DISABLE_FALLING_EDGE -#define __HAL_PWR_VDDIO2_EXTI_SET_FALLING_EGDE_TRIGGER __HAL_PWR_VDDIO2_EXTI_ENABLE_FALLING_EDGE -#define __HAL_PWR_VDDUSB_DISABLE HAL_PWREx_DisableVddUSB -#define __HAL_PWR_VDDUSB_ENABLE HAL_PWREx_EnableVddUSB - -#if defined (STM32F4) -#define __HAL_PVD_EXTI_ENABLE_IT(PWR_EXTI_LINE_PVD) __HAL_PWR_PVD_EXTI_ENABLE_IT() -#define __HAL_PVD_EXTI_DISABLE_IT(PWR_EXTI_LINE_PVD) __HAL_PWR_PVD_EXTI_DISABLE_IT() -#define __HAL_PVD_EXTI_GET_FLAG(PWR_EXTI_LINE_PVD) __HAL_PWR_PVD_EXTI_GET_FLAG() -#define __HAL_PVD_EXTI_CLEAR_FLAG(PWR_EXTI_LINE_PVD) __HAL_PWR_PVD_EXTI_CLEAR_FLAG() -#define __HAL_PVD_EXTI_GENERATE_SWIT(PWR_EXTI_LINE_PVD) __HAL_PWR_PVD_EXTI_GENERATE_SWIT() -#else -#define __HAL_PVD_EXTI_CLEAR_FLAG __HAL_PWR_PVD_EXTI_CLEAR_FLAG -#define __HAL_PVD_EXTI_DISABLE_IT __HAL_PWR_PVD_EXTI_DISABLE_IT -#define __HAL_PVD_EXTI_ENABLE_IT __HAL_PWR_PVD_EXTI_ENABLE_IT -#define __HAL_PVD_EXTI_GENERATE_SWIT __HAL_PWR_PVD_EXTI_GENERATE_SWIT -#define __HAL_PVD_EXTI_GET_FLAG __HAL_PWR_PVD_EXTI_GET_FLAG -#endif /* STM32F4 */ -/** - * @} - */ - - -/** @defgroup HAL_RCC_Aliased HAL RCC Aliased maintained for legacy purpose - * @{ - */ - -#define RCC_StopWakeUpClock_MSI RCC_STOP_WAKEUPCLOCK_MSI -#define RCC_StopWakeUpClock_HSI RCC_STOP_WAKEUPCLOCK_HSI - -#define HAL_RCC_CCSCallback HAL_RCC_CSSCallback -#define HAL_RC48_EnableBuffer_Cmd(cmd) (((cmd\ - )==ENABLE) ? HAL_RCCEx_EnableHSI48_VREFINT() : HAL_RCCEx_DisableHSI48_VREFINT()) - -#define __ADC_CLK_DISABLE __HAL_RCC_ADC_CLK_DISABLE -#define __ADC_CLK_ENABLE __HAL_RCC_ADC_CLK_ENABLE -#define __ADC_CLK_SLEEP_DISABLE __HAL_RCC_ADC_CLK_SLEEP_DISABLE -#define __ADC_CLK_SLEEP_ENABLE __HAL_RCC_ADC_CLK_SLEEP_ENABLE -#define __ADC_FORCE_RESET __HAL_RCC_ADC_FORCE_RESET -#define __ADC_RELEASE_RESET __HAL_RCC_ADC_RELEASE_RESET -#define __ADC1_CLK_DISABLE __HAL_RCC_ADC1_CLK_DISABLE -#define __ADC1_CLK_ENABLE __HAL_RCC_ADC1_CLK_ENABLE -#define __ADC1_FORCE_RESET __HAL_RCC_ADC1_FORCE_RESET -#define __ADC1_RELEASE_RESET __HAL_RCC_ADC1_RELEASE_RESET -#define __ADC1_CLK_SLEEP_ENABLE __HAL_RCC_ADC1_CLK_SLEEP_ENABLE -#define __ADC1_CLK_SLEEP_DISABLE __HAL_RCC_ADC1_CLK_SLEEP_DISABLE -#define __ADC2_CLK_DISABLE __HAL_RCC_ADC2_CLK_DISABLE -#define __ADC2_CLK_ENABLE __HAL_RCC_ADC2_CLK_ENABLE -#define __ADC2_FORCE_RESET __HAL_RCC_ADC2_FORCE_RESET -#define __ADC2_RELEASE_RESET __HAL_RCC_ADC2_RELEASE_RESET -#define __ADC3_CLK_DISABLE __HAL_RCC_ADC3_CLK_DISABLE -#define __ADC3_CLK_ENABLE __HAL_RCC_ADC3_CLK_ENABLE -#define __ADC3_FORCE_RESET __HAL_RCC_ADC3_FORCE_RESET -#define __ADC3_RELEASE_RESET __HAL_RCC_ADC3_RELEASE_RESET -#define __AES_CLK_DISABLE __HAL_RCC_AES_CLK_DISABLE -#define __AES_CLK_ENABLE __HAL_RCC_AES_CLK_ENABLE -#define __AES_CLK_SLEEP_DISABLE __HAL_RCC_AES_CLK_SLEEP_DISABLE -#define __AES_CLK_SLEEP_ENABLE __HAL_RCC_AES_CLK_SLEEP_ENABLE -#define __AES_FORCE_RESET __HAL_RCC_AES_FORCE_RESET -#define __AES_RELEASE_RESET __HAL_RCC_AES_RELEASE_RESET -#define __CRYP_CLK_SLEEP_ENABLE __HAL_RCC_CRYP_CLK_SLEEP_ENABLE -#define __CRYP_CLK_SLEEP_DISABLE __HAL_RCC_CRYP_CLK_SLEEP_DISABLE -#define __CRYP_CLK_ENABLE __HAL_RCC_CRYP_CLK_ENABLE -#define __CRYP_CLK_DISABLE __HAL_RCC_CRYP_CLK_DISABLE -#define __CRYP_FORCE_RESET __HAL_RCC_CRYP_FORCE_RESET -#define __CRYP_RELEASE_RESET __HAL_RCC_CRYP_RELEASE_RESET -#define __AFIO_CLK_DISABLE __HAL_RCC_AFIO_CLK_DISABLE -#define __AFIO_CLK_ENABLE __HAL_RCC_AFIO_CLK_ENABLE -#define __AFIO_FORCE_RESET __HAL_RCC_AFIO_FORCE_RESET -#define __AFIO_RELEASE_RESET __HAL_RCC_AFIO_RELEASE_RESET -#define __AHB_FORCE_RESET __HAL_RCC_AHB_FORCE_RESET -#define __AHB_RELEASE_RESET __HAL_RCC_AHB_RELEASE_RESET -#define __AHB1_FORCE_RESET __HAL_RCC_AHB1_FORCE_RESET -#define __AHB1_RELEASE_RESET __HAL_RCC_AHB1_RELEASE_RESET -#define __AHB2_FORCE_RESET __HAL_RCC_AHB2_FORCE_RESET -#define __AHB2_RELEASE_RESET __HAL_RCC_AHB2_RELEASE_RESET -#define __AHB3_FORCE_RESET __HAL_RCC_AHB3_FORCE_RESET -#define __AHB3_RELEASE_RESET __HAL_RCC_AHB3_RELEASE_RESET -#define __APB1_FORCE_RESET __HAL_RCC_APB1_FORCE_RESET -#define __APB1_RELEASE_RESET __HAL_RCC_APB1_RELEASE_RESET -#define __APB2_FORCE_RESET __HAL_RCC_APB2_FORCE_RESET -#define __APB2_RELEASE_RESET __HAL_RCC_APB2_RELEASE_RESET -#define __BKP_CLK_DISABLE __HAL_RCC_BKP_CLK_DISABLE -#define __BKP_CLK_ENABLE __HAL_RCC_BKP_CLK_ENABLE -#define __BKP_FORCE_RESET __HAL_RCC_BKP_FORCE_RESET -#define __BKP_RELEASE_RESET __HAL_RCC_BKP_RELEASE_RESET -#define __CAN1_CLK_DISABLE __HAL_RCC_CAN1_CLK_DISABLE -#define __CAN1_CLK_ENABLE __HAL_RCC_CAN1_CLK_ENABLE -#define __CAN1_CLK_SLEEP_DISABLE __HAL_RCC_CAN1_CLK_SLEEP_DISABLE -#define __CAN1_CLK_SLEEP_ENABLE __HAL_RCC_CAN1_CLK_SLEEP_ENABLE -#define __CAN1_FORCE_RESET __HAL_RCC_CAN1_FORCE_RESET -#define __CAN1_RELEASE_RESET __HAL_RCC_CAN1_RELEASE_RESET -#define __CAN_CLK_DISABLE __HAL_RCC_CAN1_CLK_DISABLE -#define __CAN_CLK_ENABLE __HAL_RCC_CAN1_CLK_ENABLE -#define __CAN_FORCE_RESET __HAL_RCC_CAN1_FORCE_RESET -#define __CAN_RELEASE_RESET __HAL_RCC_CAN1_RELEASE_RESET -#define __CAN2_CLK_DISABLE __HAL_RCC_CAN2_CLK_DISABLE -#define __CAN2_CLK_ENABLE __HAL_RCC_CAN2_CLK_ENABLE -#define __CAN2_FORCE_RESET __HAL_RCC_CAN2_FORCE_RESET -#define __CAN2_RELEASE_RESET __HAL_RCC_CAN2_RELEASE_RESET -#define __CEC_CLK_DISABLE __HAL_RCC_CEC_CLK_DISABLE -#define __CEC_CLK_ENABLE __HAL_RCC_CEC_CLK_ENABLE -#define __COMP_CLK_DISABLE __HAL_RCC_COMP_CLK_DISABLE -#define __COMP_CLK_ENABLE __HAL_RCC_COMP_CLK_ENABLE -#define __COMP_FORCE_RESET __HAL_RCC_COMP_FORCE_RESET -#define __COMP_RELEASE_RESET __HAL_RCC_COMP_RELEASE_RESET -#define __COMP_CLK_SLEEP_ENABLE __HAL_RCC_COMP_CLK_SLEEP_ENABLE -#define __COMP_CLK_SLEEP_DISABLE __HAL_RCC_COMP_CLK_SLEEP_DISABLE -#define __CEC_FORCE_RESET __HAL_RCC_CEC_FORCE_RESET -#define __CEC_RELEASE_RESET __HAL_RCC_CEC_RELEASE_RESET -#define __CRC_CLK_DISABLE __HAL_RCC_CRC_CLK_DISABLE -#define __CRC_CLK_ENABLE __HAL_RCC_CRC_CLK_ENABLE -#define __CRC_CLK_SLEEP_DISABLE __HAL_RCC_CRC_CLK_SLEEP_DISABLE -#define __CRC_CLK_SLEEP_ENABLE __HAL_RCC_CRC_CLK_SLEEP_ENABLE -#define __CRC_FORCE_RESET __HAL_RCC_CRC_FORCE_RESET -#define __CRC_RELEASE_RESET __HAL_RCC_CRC_RELEASE_RESET -#define __DAC_CLK_DISABLE __HAL_RCC_DAC_CLK_DISABLE -#define __DAC_CLK_ENABLE __HAL_RCC_DAC_CLK_ENABLE -#define __DAC_FORCE_RESET __HAL_RCC_DAC_FORCE_RESET -#define __DAC_RELEASE_RESET __HAL_RCC_DAC_RELEASE_RESET -#define __DAC1_CLK_DISABLE __HAL_RCC_DAC1_CLK_DISABLE -#define __DAC1_CLK_ENABLE __HAL_RCC_DAC1_CLK_ENABLE -#define __DAC1_CLK_SLEEP_DISABLE __HAL_RCC_DAC1_CLK_SLEEP_DISABLE -#define __DAC1_CLK_SLEEP_ENABLE __HAL_RCC_DAC1_CLK_SLEEP_ENABLE -#define __DAC1_FORCE_RESET __HAL_RCC_DAC1_FORCE_RESET -#define __DAC1_RELEASE_RESET __HAL_RCC_DAC1_RELEASE_RESET -#define __DBGMCU_CLK_ENABLE __HAL_RCC_DBGMCU_CLK_ENABLE -#define __DBGMCU_CLK_DISABLE __HAL_RCC_DBGMCU_CLK_DISABLE -#define __DBGMCU_FORCE_RESET __HAL_RCC_DBGMCU_FORCE_RESET -#define __DBGMCU_RELEASE_RESET __HAL_RCC_DBGMCU_RELEASE_RESET -#define __DFSDM_CLK_DISABLE __HAL_RCC_DFSDM_CLK_DISABLE -#define __DFSDM_CLK_ENABLE __HAL_RCC_DFSDM_CLK_ENABLE -#define __DFSDM_CLK_SLEEP_DISABLE __HAL_RCC_DFSDM_CLK_SLEEP_DISABLE -#define __DFSDM_CLK_SLEEP_ENABLE __HAL_RCC_DFSDM_CLK_SLEEP_ENABLE -#define __DFSDM_FORCE_RESET __HAL_RCC_DFSDM_FORCE_RESET -#define __DFSDM_RELEASE_RESET __HAL_RCC_DFSDM_RELEASE_RESET -#define __DMA1_CLK_DISABLE __HAL_RCC_DMA1_CLK_DISABLE -#define __DMA1_CLK_ENABLE __HAL_RCC_DMA1_CLK_ENABLE -#define __DMA1_CLK_SLEEP_DISABLE __HAL_RCC_DMA1_CLK_SLEEP_DISABLE -#define __DMA1_CLK_SLEEP_ENABLE __HAL_RCC_DMA1_CLK_SLEEP_ENABLE -#define __DMA1_FORCE_RESET __HAL_RCC_DMA1_FORCE_RESET -#define __DMA1_RELEASE_RESET __HAL_RCC_DMA1_RELEASE_RESET -#define __DMA2_CLK_DISABLE __HAL_RCC_DMA2_CLK_DISABLE -#define __DMA2_CLK_ENABLE __HAL_RCC_DMA2_CLK_ENABLE -#define __DMA2_CLK_SLEEP_DISABLE __HAL_RCC_DMA2_CLK_SLEEP_DISABLE -#define __DMA2_CLK_SLEEP_ENABLE __HAL_RCC_DMA2_CLK_SLEEP_ENABLE -#define __DMA2_FORCE_RESET __HAL_RCC_DMA2_FORCE_RESET -#define __DMA2_RELEASE_RESET __HAL_RCC_DMA2_RELEASE_RESET -#define __ETHMAC_CLK_DISABLE __HAL_RCC_ETHMAC_CLK_DISABLE -#define __ETHMAC_CLK_ENABLE __HAL_RCC_ETHMAC_CLK_ENABLE -#define __ETHMAC_FORCE_RESET __HAL_RCC_ETHMAC_FORCE_RESET -#define __ETHMAC_RELEASE_RESET __HAL_RCC_ETHMAC_RELEASE_RESET -#define __ETHMACRX_CLK_DISABLE __HAL_RCC_ETHMACRX_CLK_DISABLE -#define __ETHMACRX_CLK_ENABLE __HAL_RCC_ETHMACRX_CLK_ENABLE -#define __ETHMACTX_CLK_DISABLE __HAL_RCC_ETHMACTX_CLK_DISABLE -#define __ETHMACTX_CLK_ENABLE __HAL_RCC_ETHMACTX_CLK_ENABLE -#define __FIREWALL_CLK_DISABLE __HAL_RCC_FIREWALL_CLK_DISABLE -#define __FIREWALL_CLK_ENABLE __HAL_RCC_FIREWALL_CLK_ENABLE -#define __FLASH_CLK_DISABLE __HAL_RCC_FLASH_CLK_DISABLE -#define __FLASH_CLK_ENABLE __HAL_RCC_FLASH_CLK_ENABLE -#define __FLASH_CLK_SLEEP_DISABLE __HAL_RCC_FLASH_CLK_SLEEP_DISABLE -#define __FLASH_CLK_SLEEP_ENABLE __HAL_RCC_FLASH_CLK_SLEEP_ENABLE -#define __FLASH_FORCE_RESET __HAL_RCC_FLASH_FORCE_RESET -#define __FLASH_RELEASE_RESET __HAL_RCC_FLASH_RELEASE_RESET -#define __FLITF_CLK_DISABLE __HAL_RCC_FLITF_CLK_DISABLE -#define __FLITF_CLK_ENABLE __HAL_RCC_FLITF_CLK_ENABLE -#define __FLITF_FORCE_RESET __HAL_RCC_FLITF_FORCE_RESET -#define __FLITF_RELEASE_RESET __HAL_RCC_FLITF_RELEASE_RESET -#define __FLITF_CLK_SLEEP_ENABLE __HAL_RCC_FLITF_CLK_SLEEP_ENABLE -#define __FLITF_CLK_SLEEP_DISABLE __HAL_RCC_FLITF_CLK_SLEEP_DISABLE -#define __FMC_CLK_DISABLE __HAL_RCC_FMC_CLK_DISABLE -#define __FMC_CLK_ENABLE __HAL_RCC_FMC_CLK_ENABLE -#define __FMC_CLK_SLEEP_DISABLE __HAL_RCC_FMC_CLK_SLEEP_DISABLE -#define __FMC_CLK_SLEEP_ENABLE __HAL_RCC_FMC_CLK_SLEEP_ENABLE -#define __FMC_FORCE_RESET __HAL_RCC_FMC_FORCE_RESET -#define __FMC_RELEASE_RESET __HAL_RCC_FMC_RELEASE_RESET -#define __FSMC_CLK_DISABLE __HAL_RCC_FSMC_CLK_DISABLE -#define __FSMC_CLK_ENABLE __HAL_RCC_FSMC_CLK_ENABLE -#define __GPIOA_CLK_DISABLE __HAL_RCC_GPIOA_CLK_DISABLE -#define __GPIOA_CLK_ENABLE __HAL_RCC_GPIOA_CLK_ENABLE -#define __GPIOA_CLK_SLEEP_DISABLE __HAL_RCC_GPIOA_CLK_SLEEP_DISABLE -#define __GPIOA_CLK_SLEEP_ENABLE __HAL_RCC_GPIOA_CLK_SLEEP_ENABLE -#define __GPIOA_FORCE_RESET __HAL_RCC_GPIOA_FORCE_RESET -#define __GPIOA_RELEASE_RESET __HAL_RCC_GPIOA_RELEASE_RESET -#define __GPIOB_CLK_DISABLE __HAL_RCC_GPIOB_CLK_DISABLE -#define __GPIOB_CLK_ENABLE __HAL_RCC_GPIOB_CLK_ENABLE -#define __GPIOB_CLK_SLEEP_DISABLE __HAL_RCC_GPIOB_CLK_SLEEP_DISABLE -#define __GPIOB_CLK_SLEEP_ENABLE __HAL_RCC_GPIOB_CLK_SLEEP_ENABLE -#define __GPIOB_FORCE_RESET __HAL_RCC_GPIOB_FORCE_RESET -#define __GPIOB_RELEASE_RESET __HAL_RCC_GPIOB_RELEASE_RESET -#define __GPIOC_CLK_DISABLE __HAL_RCC_GPIOC_CLK_DISABLE -#define __GPIOC_CLK_ENABLE __HAL_RCC_GPIOC_CLK_ENABLE -#define __GPIOC_CLK_SLEEP_DISABLE __HAL_RCC_GPIOC_CLK_SLEEP_DISABLE -#define __GPIOC_CLK_SLEEP_ENABLE __HAL_RCC_GPIOC_CLK_SLEEP_ENABLE -#define __GPIOC_FORCE_RESET __HAL_RCC_GPIOC_FORCE_RESET -#define __GPIOC_RELEASE_RESET __HAL_RCC_GPIOC_RELEASE_RESET -#define __GPIOD_CLK_DISABLE __HAL_RCC_GPIOD_CLK_DISABLE -#define __GPIOD_CLK_ENABLE __HAL_RCC_GPIOD_CLK_ENABLE -#define __GPIOD_CLK_SLEEP_DISABLE __HAL_RCC_GPIOD_CLK_SLEEP_DISABLE -#define __GPIOD_CLK_SLEEP_ENABLE __HAL_RCC_GPIOD_CLK_SLEEP_ENABLE -#define __GPIOD_FORCE_RESET __HAL_RCC_GPIOD_FORCE_RESET -#define __GPIOD_RELEASE_RESET __HAL_RCC_GPIOD_RELEASE_RESET -#define __GPIOE_CLK_DISABLE __HAL_RCC_GPIOE_CLK_DISABLE -#define __GPIOE_CLK_ENABLE __HAL_RCC_GPIOE_CLK_ENABLE -#define __GPIOE_CLK_SLEEP_DISABLE __HAL_RCC_GPIOE_CLK_SLEEP_DISABLE -#define __GPIOE_CLK_SLEEP_ENABLE __HAL_RCC_GPIOE_CLK_SLEEP_ENABLE -#define __GPIOE_FORCE_RESET __HAL_RCC_GPIOE_FORCE_RESET -#define __GPIOE_RELEASE_RESET __HAL_RCC_GPIOE_RELEASE_RESET -#define __GPIOF_CLK_DISABLE __HAL_RCC_GPIOF_CLK_DISABLE -#define __GPIOF_CLK_ENABLE __HAL_RCC_GPIOF_CLK_ENABLE -#define __GPIOF_CLK_SLEEP_DISABLE __HAL_RCC_GPIOF_CLK_SLEEP_DISABLE -#define __GPIOF_CLK_SLEEP_ENABLE __HAL_RCC_GPIOF_CLK_SLEEP_ENABLE -#define __GPIOF_FORCE_RESET __HAL_RCC_GPIOF_FORCE_RESET -#define __GPIOF_RELEASE_RESET __HAL_RCC_GPIOF_RELEASE_RESET -#define __GPIOG_CLK_DISABLE __HAL_RCC_GPIOG_CLK_DISABLE -#define __GPIOG_CLK_ENABLE __HAL_RCC_GPIOG_CLK_ENABLE -#define __GPIOG_CLK_SLEEP_DISABLE __HAL_RCC_GPIOG_CLK_SLEEP_DISABLE -#define __GPIOG_CLK_SLEEP_ENABLE __HAL_RCC_GPIOG_CLK_SLEEP_ENABLE -#define __GPIOG_FORCE_RESET __HAL_RCC_GPIOG_FORCE_RESET -#define __GPIOG_RELEASE_RESET __HAL_RCC_GPIOG_RELEASE_RESET -#define __GPIOH_CLK_DISABLE __HAL_RCC_GPIOH_CLK_DISABLE -#define __GPIOH_CLK_ENABLE __HAL_RCC_GPIOH_CLK_ENABLE -#define __GPIOH_CLK_SLEEP_DISABLE __HAL_RCC_GPIOH_CLK_SLEEP_DISABLE -#define __GPIOH_CLK_SLEEP_ENABLE __HAL_RCC_GPIOH_CLK_SLEEP_ENABLE -#define __GPIOH_FORCE_RESET __HAL_RCC_GPIOH_FORCE_RESET -#define __GPIOH_RELEASE_RESET __HAL_RCC_GPIOH_RELEASE_RESET -#define __I2C1_CLK_DISABLE __HAL_RCC_I2C1_CLK_DISABLE -#define __I2C1_CLK_ENABLE __HAL_RCC_I2C1_CLK_ENABLE -#define __I2C1_CLK_SLEEP_DISABLE __HAL_RCC_I2C1_CLK_SLEEP_DISABLE -#define __I2C1_CLK_SLEEP_ENABLE __HAL_RCC_I2C1_CLK_SLEEP_ENABLE -#define __I2C1_FORCE_RESET __HAL_RCC_I2C1_FORCE_RESET -#define __I2C1_RELEASE_RESET __HAL_RCC_I2C1_RELEASE_RESET -#define __I2C2_CLK_DISABLE __HAL_RCC_I2C2_CLK_DISABLE -#define __I2C2_CLK_ENABLE __HAL_RCC_I2C2_CLK_ENABLE -#define __I2C2_CLK_SLEEP_DISABLE __HAL_RCC_I2C2_CLK_SLEEP_DISABLE -#define __I2C2_CLK_SLEEP_ENABLE __HAL_RCC_I2C2_CLK_SLEEP_ENABLE -#define __I2C2_FORCE_RESET __HAL_RCC_I2C2_FORCE_RESET -#define __I2C2_RELEASE_RESET __HAL_RCC_I2C2_RELEASE_RESET -#define __I2C3_CLK_DISABLE __HAL_RCC_I2C3_CLK_DISABLE -#define __I2C3_CLK_ENABLE __HAL_RCC_I2C3_CLK_ENABLE -#define __I2C3_CLK_SLEEP_DISABLE __HAL_RCC_I2C3_CLK_SLEEP_DISABLE -#define __I2C3_CLK_SLEEP_ENABLE __HAL_RCC_I2C3_CLK_SLEEP_ENABLE -#define __I2C3_FORCE_RESET __HAL_RCC_I2C3_FORCE_RESET -#define __I2C3_RELEASE_RESET __HAL_RCC_I2C3_RELEASE_RESET -#define __LCD_CLK_DISABLE __HAL_RCC_LCD_CLK_DISABLE -#define __LCD_CLK_ENABLE __HAL_RCC_LCD_CLK_ENABLE -#define __LCD_CLK_SLEEP_DISABLE __HAL_RCC_LCD_CLK_SLEEP_DISABLE -#define __LCD_CLK_SLEEP_ENABLE __HAL_RCC_LCD_CLK_SLEEP_ENABLE -#define __LCD_FORCE_RESET __HAL_RCC_LCD_FORCE_RESET -#define __LCD_RELEASE_RESET __HAL_RCC_LCD_RELEASE_RESET -#define __LPTIM1_CLK_DISABLE __HAL_RCC_LPTIM1_CLK_DISABLE -#define __LPTIM1_CLK_ENABLE __HAL_RCC_LPTIM1_CLK_ENABLE -#define __LPTIM1_CLK_SLEEP_DISABLE __HAL_RCC_LPTIM1_CLK_SLEEP_DISABLE -#define __LPTIM1_CLK_SLEEP_ENABLE __HAL_RCC_LPTIM1_CLK_SLEEP_ENABLE -#define __LPTIM1_FORCE_RESET __HAL_RCC_LPTIM1_FORCE_RESET -#define __LPTIM1_RELEASE_RESET __HAL_RCC_LPTIM1_RELEASE_RESET -#define __LPTIM2_CLK_DISABLE __HAL_RCC_LPTIM2_CLK_DISABLE -#define __LPTIM2_CLK_ENABLE __HAL_RCC_LPTIM2_CLK_ENABLE -#define __LPTIM2_CLK_SLEEP_DISABLE __HAL_RCC_LPTIM2_CLK_SLEEP_DISABLE -#define __LPTIM2_CLK_SLEEP_ENABLE __HAL_RCC_LPTIM2_CLK_SLEEP_ENABLE -#define __LPTIM2_FORCE_RESET __HAL_RCC_LPTIM2_FORCE_RESET -#define __LPTIM2_RELEASE_RESET __HAL_RCC_LPTIM2_RELEASE_RESET -#define __LPUART1_CLK_DISABLE __HAL_RCC_LPUART1_CLK_DISABLE -#define __LPUART1_CLK_ENABLE __HAL_RCC_LPUART1_CLK_ENABLE -#define __LPUART1_CLK_SLEEP_DISABLE __HAL_RCC_LPUART1_CLK_SLEEP_DISABLE -#define __LPUART1_CLK_SLEEP_ENABLE __HAL_RCC_LPUART1_CLK_SLEEP_ENABLE -#define __LPUART1_FORCE_RESET __HAL_RCC_LPUART1_FORCE_RESET -#define __LPUART1_RELEASE_RESET __HAL_RCC_LPUART1_RELEASE_RESET -#define __OPAMP_CLK_DISABLE __HAL_RCC_OPAMP_CLK_DISABLE -#define __OPAMP_CLK_ENABLE __HAL_RCC_OPAMP_CLK_ENABLE -#define __OPAMP_CLK_SLEEP_DISABLE __HAL_RCC_OPAMP_CLK_SLEEP_DISABLE -#define __OPAMP_CLK_SLEEP_ENABLE __HAL_RCC_OPAMP_CLK_SLEEP_ENABLE -#define __OPAMP_FORCE_RESET __HAL_RCC_OPAMP_FORCE_RESET -#define __OPAMP_RELEASE_RESET __HAL_RCC_OPAMP_RELEASE_RESET -#define __OTGFS_CLK_DISABLE __HAL_RCC_OTGFS_CLK_DISABLE -#define __OTGFS_CLK_ENABLE __HAL_RCC_OTGFS_CLK_ENABLE -#define __OTGFS_CLK_SLEEP_DISABLE __HAL_RCC_OTGFS_CLK_SLEEP_DISABLE -#define __OTGFS_CLK_SLEEP_ENABLE __HAL_RCC_OTGFS_CLK_SLEEP_ENABLE -#define __OTGFS_FORCE_RESET __HAL_RCC_OTGFS_FORCE_RESET -#define __OTGFS_RELEASE_RESET __HAL_RCC_OTGFS_RELEASE_RESET -#define __PWR_CLK_DISABLE __HAL_RCC_PWR_CLK_DISABLE -#define __PWR_CLK_ENABLE __HAL_RCC_PWR_CLK_ENABLE -#define __PWR_CLK_SLEEP_DISABLE __HAL_RCC_PWR_CLK_SLEEP_DISABLE -#define __PWR_CLK_SLEEP_ENABLE __HAL_RCC_PWR_CLK_SLEEP_ENABLE -#define __PWR_FORCE_RESET __HAL_RCC_PWR_FORCE_RESET -#define __PWR_RELEASE_RESET __HAL_RCC_PWR_RELEASE_RESET -#define __QSPI_CLK_DISABLE __HAL_RCC_QSPI_CLK_DISABLE -#define __QSPI_CLK_ENABLE __HAL_RCC_QSPI_CLK_ENABLE -#define __QSPI_CLK_SLEEP_DISABLE __HAL_RCC_QSPI_CLK_SLEEP_DISABLE -#define __QSPI_CLK_SLEEP_ENABLE __HAL_RCC_QSPI_CLK_SLEEP_ENABLE -#define __QSPI_FORCE_RESET __HAL_RCC_QSPI_FORCE_RESET -#define __QSPI_RELEASE_RESET __HAL_RCC_QSPI_RELEASE_RESET - -#if defined(STM32WB) -#define __HAL_RCC_QSPI_CLK_DISABLE __HAL_RCC_QUADSPI_CLK_DISABLE -#define __HAL_RCC_QSPI_CLK_ENABLE __HAL_RCC_QUADSPI_CLK_ENABLE -#define __HAL_RCC_QSPI_CLK_SLEEP_DISABLE __HAL_RCC_QUADSPI_CLK_SLEEP_DISABLE -#define __HAL_RCC_QSPI_CLK_SLEEP_ENABLE __HAL_RCC_QUADSPI_CLK_SLEEP_ENABLE -#define __HAL_RCC_QSPI_FORCE_RESET __HAL_RCC_QUADSPI_FORCE_RESET -#define __HAL_RCC_QSPI_RELEASE_RESET __HAL_RCC_QUADSPI_RELEASE_RESET -#define __HAL_RCC_QSPI_IS_CLK_ENABLED __HAL_RCC_QUADSPI_IS_CLK_ENABLED -#define __HAL_RCC_QSPI_IS_CLK_DISABLED __HAL_RCC_QUADSPI_IS_CLK_DISABLED -#define __HAL_RCC_QSPI_IS_CLK_SLEEP_ENABLED __HAL_RCC_QUADSPI_IS_CLK_SLEEP_ENABLED -#define __HAL_RCC_QSPI_IS_CLK_SLEEP_DISABLED __HAL_RCC_QUADSPI_IS_CLK_SLEEP_DISABLED -#define QSPI_IRQHandler QUADSPI_IRQHandler -#endif /* __HAL_RCC_QUADSPI_CLK_ENABLE */ - -#define __RNG_CLK_DISABLE __HAL_RCC_RNG_CLK_DISABLE -#define __RNG_CLK_ENABLE __HAL_RCC_RNG_CLK_ENABLE -#define __RNG_CLK_SLEEP_DISABLE __HAL_RCC_RNG_CLK_SLEEP_DISABLE -#define __RNG_CLK_SLEEP_ENABLE __HAL_RCC_RNG_CLK_SLEEP_ENABLE -#define __RNG_FORCE_RESET __HAL_RCC_RNG_FORCE_RESET -#define __RNG_RELEASE_RESET __HAL_RCC_RNG_RELEASE_RESET -#define __SAI1_CLK_DISABLE __HAL_RCC_SAI1_CLK_DISABLE -#define __SAI1_CLK_ENABLE __HAL_RCC_SAI1_CLK_ENABLE -#define __SAI1_CLK_SLEEP_DISABLE __HAL_RCC_SAI1_CLK_SLEEP_DISABLE -#define __SAI1_CLK_SLEEP_ENABLE __HAL_RCC_SAI1_CLK_SLEEP_ENABLE -#define __SAI1_FORCE_RESET __HAL_RCC_SAI1_FORCE_RESET -#define __SAI1_RELEASE_RESET __HAL_RCC_SAI1_RELEASE_RESET -#define __SAI2_CLK_DISABLE __HAL_RCC_SAI2_CLK_DISABLE -#define __SAI2_CLK_ENABLE __HAL_RCC_SAI2_CLK_ENABLE -#define __SAI2_CLK_SLEEP_DISABLE __HAL_RCC_SAI2_CLK_SLEEP_DISABLE -#define __SAI2_CLK_SLEEP_ENABLE __HAL_RCC_SAI2_CLK_SLEEP_ENABLE -#define __SAI2_FORCE_RESET __HAL_RCC_SAI2_FORCE_RESET -#define __SAI2_RELEASE_RESET __HAL_RCC_SAI2_RELEASE_RESET -#define __SDIO_CLK_DISABLE __HAL_RCC_SDIO_CLK_DISABLE -#define __SDIO_CLK_ENABLE __HAL_RCC_SDIO_CLK_ENABLE -#define __SDMMC_CLK_DISABLE __HAL_RCC_SDMMC_CLK_DISABLE -#define __SDMMC_CLK_ENABLE __HAL_RCC_SDMMC_CLK_ENABLE -#define __SDMMC_CLK_SLEEP_DISABLE __HAL_RCC_SDMMC_CLK_SLEEP_DISABLE -#define __SDMMC_CLK_SLEEP_ENABLE __HAL_RCC_SDMMC_CLK_SLEEP_ENABLE -#define __SDMMC_FORCE_RESET __HAL_RCC_SDMMC_FORCE_RESET -#define __SDMMC_RELEASE_RESET __HAL_RCC_SDMMC_RELEASE_RESET -#define __SPI1_CLK_DISABLE __HAL_RCC_SPI1_CLK_DISABLE -#define __SPI1_CLK_ENABLE __HAL_RCC_SPI1_CLK_ENABLE -#define __SPI1_CLK_SLEEP_DISABLE __HAL_RCC_SPI1_CLK_SLEEP_DISABLE -#define __SPI1_CLK_SLEEP_ENABLE __HAL_RCC_SPI1_CLK_SLEEP_ENABLE -#define __SPI1_FORCE_RESET __HAL_RCC_SPI1_FORCE_RESET -#define __SPI1_RELEASE_RESET __HAL_RCC_SPI1_RELEASE_RESET -#define __SPI2_CLK_DISABLE __HAL_RCC_SPI2_CLK_DISABLE -#define __SPI2_CLK_ENABLE __HAL_RCC_SPI2_CLK_ENABLE -#define __SPI2_CLK_SLEEP_DISABLE __HAL_RCC_SPI2_CLK_SLEEP_DISABLE -#define __SPI2_CLK_SLEEP_ENABLE __HAL_RCC_SPI2_CLK_SLEEP_ENABLE -#define __SPI2_FORCE_RESET __HAL_RCC_SPI2_FORCE_RESET -#define __SPI2_RELEASE_RESET __HAL_RCC_SPI2_RELEASE_RESET -#define __SPI3_CLK_DISABLE __HAL_RCC_SPI3_CLK_DISABLE -#define __SPI3_CLK_ENABLE __HAL_RCC_SPI3_CLK_ENABLE -#define __SPI3_CLK_SLEEP_DISABLE __HAL_RCC_SPI3_CLK_SLEEP_DISABLE -#define __SPI3_CLK_SLEEP_ENABLE __HAL_RCC_SPI3_CLK_SLEEP_ENABLE -#define __SPI3_FORCE_RESET __HAL_RCC_SPI3_FORCE_RESET -#define __SPI3_RELEASE_RESET __HAL_RCC_SPI3_RELEASE_RESET -#define __SRAM_CLK_DISABLE __HAL_RCC_SRAM_CLK_DISABLE -#define __SRAM_CLK_ENABLE __HAL_RCC_SRAM_CLK_ENABLE -#define __SRAM1_CLK_SLEEP_DISABLE __HAL_RCC_SRAM1_CLK_SLEEP_DISABLE -#define __SRAM1_CLK_SLEEP_ENABLE __HAL_RCC_SRAM1_CLK_SLEEP_ENABLE -#define __SRAM2_CLK_SLEEP_DISABLE __HAL_RCC_SRAM2_CLK_SLEEP_DISABLE -#define __SRAM2_CLK_SLEEP_ENABLE __HAL_RCC_SRAM2_CLK_SLEEP_ENABLE -#define __SWPMI1_CLK_DISABLE __HAL_RCC_SWPMI1_CLK_DISABLE -#define __SWPMI1_CLK_ENABLE __HAL_RCC_SWPMI1_CLK_ENABLE -#define __SWPMI1_CLK_SLEEP_DISABLE __HAL_RCC_SWPMI1_CLK_SLEEP_DISABLE -#define __SWPMI1_CLK_SLEEP_ENABLE __HAL_RCC_SWPMI1_CLK_SLEEP_ENABLE -#define __SWPMI1_FORCE_RESET __HAL_RCC_SWPMI1_FORCE_RESET -#define __SWPMI1_RELEASE_RESET __HAL_RCC_SWPMI1_RELEASE_RESET -#define __SYSCFG_CLK_DISABLE __HAL_RCC_SYSCFG_CLK_DISABLE -#define __SYSCFG_CLK_ENABLE __HAL_RCC_SYSCFG_CLK_ENABLE -#define __SYSCFG_CLK_SLEEP_DISABLE __HAL_RCC_SYSCFG_CLK_SLEEP_DISABLE -#define __SYSCFG_CLK_SLEEP_ENABLE __HAL_RCC_SYSCFG_CLK_SLEEP_ENABLE -#define __SYSCFG_FORCE_RESET __HAL_RCC_SYSCFG_FORCE_RESET -#define __SYSCFG_RELEASE_RESET __HAL_RCC_SYSCFG_RELEASE_RESET -#define __TIM1_CLK_DISABLE __HAL_RCC_TIM1_CLK_DISABLE -#define __TIM1_CLK_ENABLE __HAL_RCC_TIM1_CLK_ENABLE -#define __TIM1_CLK_SLEEP_DISABLE __HAL_RCC_TIM1_CLK_SLEEP_DISABLE -#define __TIM1_CLK_SLEEP_ENABLE __HAL_RCC_TIM1_CLK_SLEEP_ENABLE -#define __TIM1_FORCE_RESET __HAL_RCC_TIM1_FORCE_RESET -#define __TIM1_RELEASE_RESET __HAL_RCC_TIM1_RELEASE_RESET -#define __TIM10_CLK_DISABLE __HAL_RCC_TIM10_CLK_DISABLE -#define __TIM10_CLK_ENABLE __HAL_RCC_TIM10_CLK_ENABLE -#define __TIM10_FORCE_RESET __HAL_RCC_TIM10_FORCE_RESET -#define __TIM10_RELEASE_RESET __HAL_RCC_TIM10_RELEASE_RESET -#define __TIM11_CLK_DISABLE __HAL_RCC_TIM11_CLK_DISABLE -#define __TIM11_CLK_ENABLE __HAL_RCC_TIM11_CLK_ENABLE -#define __TIM11_FORCE_RESET __HAL_RCC_TIM11_FORCE_RESET -#define __TIM11_RELEASE_RESET __HAL_RCC_TIM11_RELEASE_RESET -#define __TIM12_CLK_DISABLE __HAL_RCC_TIM12_CLK_DISABLE -#define __TIM12_CLK_ENABLE __HAL_RCC_TIM12_CLK_ENABLE -#define __TIM12_FORCE_RESET __HAL_RCC_TIM12_FORCE_RESET -#define __TIM12_RELEASE_RESET __HAL_RCC_TIM12_RELEASE_RESET -#define __TIM13_CLK_DISABLE __HAL_RCC_TIM13_CLK_DISABLE -#define __TIM13_CLK_ENABLE __HAL_RCC_TIM13_CLK_ENABLE -#define __TIM13_FORCE_RESET __HAL_RCC_TIM13_FORCE_RESET -#define __TIM13_RELEASE_RESET __HAL_RCC_TIM13_RELEASE_RESET -#define __TIM14_CLK_DISABLE __HAL_RCC_TIM14_CLK_DISABLE -#define __TIM14_CLK_ENABLE __HAL_RCC_TIM14_CLK_ENABLE -#define __TIM14_FORCE_RESET __HAL_RCC_TIM14_FORCE_RESET -#define __TIM14_RELEASE_RESET __HAL_RCC_TIM14_RELEASE_RESET -#define __TIM15_CLK_DISABLE __HAL_RCC_TIM15_CLK_DISABLE -#define __TIM15_CLK_ENABLE __HAL_RCC_TIM15_CLK_ENABLE -#define __TIM15_CLK_SLEEP_DISABLE __HAL_RCC_TIM15_CLK_SLEEP_DISABLE -#define __TIM15_CLK_SLEEP_ENABLE __HAL_RCC_TIM15_CLK_SLEEP_ENABLE -#define __TIM15_FORCE_RESET __HAL_RCC_TIM15_FORCE_RESET -#define __TIM15_RELEASE_RESET __HAL_RCC_TIM15_RELEASE_RESET -#define __TIM16_CLK_DISABLE __HAL_RCC_TIM16_CLK_DISABLE -#define __TIM16_CLK_ENABLE __HAL_RCC_TIM16_CLK_ENABLE -#define __TIM16_CLK_SLEEP_DISABLE __HAL_RCC_TIM16_CLK_SLEEP_DISABLE -#define __TIM16_CLK_SLEEP_ENABLE __HAL_RCC_TIM16_CLK_SLEEP_ENABLE -#define __TIM16_FORCE_RESET __HAL_RCC_TIM16_FORCE_RESET -#define __TIM16_RELEASE_RESET __HAL_RCC_TIM16_RELEASE_RESET -#define __TIM17_CLK_DISABLE __HAL_RCC_TIM17_CLK_DISABLE -#define __TIM17_CLK_ENABLE __HAL_RCC_TIM17_CLK_ENABLE -#define __TIM17_CLK_SLEEP_DISABLE __HAL_RCC_TIM17_CLK_SLEEP_DISABLE -#define __TIM17_CLK_SLEEP_ENABLE __HAL_RCC_TIM17_CLK_SLEEP_ENABLE -#define __TIM17_FORCE_RESET __HAL_RCC_TIM17_FORCE_RESET -#define __TIM17_RELEASE_RESET __HAL_RCC_TIM17_RELEASE_RESET -#define __TIM2_CLK_DISABLE __HAL_RCC_TIM2_CLK_DISABLE -#define __TIM2_CLK_ENABLE __HAL_RCC_TIM2_CLK_ENABLE -#define __TIM2_CLK_SLEEP_DISABLE __HAL_RCC_TIM2_CLK_SLEEP_DISABLE -#define __TIM2_CLK_SLEEP_ENABLE __HAL_RCC_TIM2_CLK_SLEEP_ENABLE -#define __TIM2_FORCE_RESET __HAL_RCC_TIM2_FORCE_RESET -#define __TIM2_RELEASE_RESET __HAL_RCC_TIM2_RELEASE_RESET -#define __TIM3_CLK_DISABLE __HAL_RCC_TIM3_CLK_DISABLE -#define __TIM3_CLK_ENABLE __HAL_RCC_TIM3_CLK_ENABLE -#define __TIM3_CLK_SLEEP_DISABLE __HAL_RCC_TIM3_CLK_SLEEP_DISABLE -#define __TIM3_CLK_SLEEP_ENABLE __HAL_RCC_TIM3_CLK_SLEEP_ENABLE -#define __TIM3_FORCE_RESET __HAL_RCC_TIM3_FORCE_RESET -#define __TIM3_RELEASE_RESET __HAL_RCC_TIM3_RELEASE_RESET -#define __TIM4_CLK_DISABLE __HAL_RCC_TIM4_CLK_DISABLE -#define __TIM4_CLK_ENABLE __HAL_RCC_TIM4_CLK_ENABLE -#define __TIM4_CLK_SLEEP_DISABLE __HAL_RCC_TIM4_CLK_SLEEP_DISABLE -#define __TIM4_CLK_SLEEP_ENABLE __HAL_RCC_TIM4_CLK_SLEEP_ENABLE -#define __TIM4_FORCE_RESET __HAL_RCC_TIM4_FORCE_RESET -#define __TIM4_RELEASE_RESET __HAL_RCC_TIM4_RELEASE_RESET -#define __TIM5_CLK_DISABLE __HAL_RCC_TIM5_CLK_DISABLE -#define __TIM5_CLK_ENABLE __HAL_RCC_TIM5_CLK_ENABLE -#define __TIM5_CLK_SLEEP_DISABLE __HAL_RCC_TIM5_CLK_SLEEP_DISABLE -#define __TIM5_CLK_SLEEP_ENABLE __HAL_RCC_TIM5_CLK_SLEEP_ENABLE -#define __TIM5_FORCE_RESET __HAL_RCC_TIM5_FORCE_RESET -#define __TIM5_RELEASE_RESET __HAL_RCC_TIM5_RELEASE_RESET -#define __TIM6_CLK_DISABLE __HAL_RCC_TIM6_CLK_DISABLE -#define __TIM6_CLK_ENABLE __HAL_RCC_TIM6_CLK_ENABLE -#define __TIM6_CLK_SLEEP_DISABLE __HAL_RCC_TIM6_CLK_SLEEP_DISABLE -#define __TIM6_CLK_SLEEP_ENABLE __HAL_RCC_TIM6_CLK_SLEEP_ENABLE -#define __TIM6_FORCE_RESET __HAL_RCC_TIM6_FORCE_RESET -#define __TIM6_RELEASE_RESET __HAL_RCC_TIM6_RELEASE_RESET -#define __TIM7_CLK_DISABLE __HAL_RCC_TIM7_CLK_DISABLE -#define __TIM7_CLK_ENABLE __HAL_RCC_TIM7_CLK_ENABLE -#define __TIM7_CLK_SLEEP_DISABLE __HAL_RCC_TIM7_CLK_SLEEP_DISABLE -#define __TIM7_CLK_SLEEP_ENABLE __HAL_RCC_TIM7_CLK_SLEEP_ENABLE -#define __TIM7_FORCE_RESET __HAL_RCC_TIM7_FORCE_RESET -#define __TIM7_RELEASE_RESET __HAL_RCC_TIM7_RELEASE_RESET -#define __TIM8_CLK_DISABLE __HAL_RCC_TIM8_CLK_DISABLE -#define __TIM8_CLK_ENABLE __HAL_RCC_TIM8_CLK_ENABLE -#define __TIM8_CLK_SLEEP_DISABLE __HAL_RCC_TIM8_CLK_SLEEP_DISABLE -#define __TIM8_CLK_SLEEP_ENABLE __HAL_RCC_TIM8_CLK_SLEEP_ENABLE -#define __TIM8_FORCE_RESET __HAL_RCC_TIM8_FORCE_RESET -#define __TIM8_RELEASE_RESET __HAL_RCC_TIM8_RELEASE_RESET -#define __TIM9_CLK_DISABLE __HAL_RCC_TIM9_CLK_DISABLE -#define __TIM9_CLK_ENABLE __HAL_RCC_TIM9_CLK_ENABLE -#define __TIM9_FORCE_RESET __HAL_RCC_TIM9_FORCE_RESET -#define __TIM9_RELEASE_RESET __HAL_RCC_TIM9_RELEASE_RESET -#define __TSC_CLK_DISABLE __HAL_RCC_TSC_CLK_DISABLE -#define __TSC_CLK_ENABLE __HAL_RCC_TSC_CLK_ENABLE -#define __TSC_CLK_SLEEP_DISABLE __HAL_RCC_TSC_CLK_SLEEP_DISABLE -#define __TSC_CLK_SLEEP_ENABLE __HAL_RCC_TSC_CLK_SLEEP_ENABLE -#define __TSC_FORCE_RESET __HAL_RCC_TSC_FORCE_RESET -#define __TSC_RELEASE_RESET __HAL_RCC_TSC_RELEASE_RESET -#define __UART4_CLK_DISABLE __HAL_RCC_UART4_CLK_DISABLE -#define __UART4_CLK_ENABLE __HAL_RCC_UART4_CLK_ENABLE -#define __UART4_CLK_SLEEP_DISABLE __HAL_RCC_UART4_CLK_SLEEP_DISABLE -#define __UART4_CLK_SLEEP_ENABLE __HAL_RCC_UART4_CLK_SLEEP_ENABLE -#define __UART4_FORCE_RESET __HAL_RCC_UART4_FORCE_RESET -#define __UART4_RELEASE_RESET __HAL_RCC_UART4_RELEASE_RESET -#define __UART5_CLK_DISABLE __HAL_RCC_UART5_CLK_DISABLE -#define __UART5_CLK_ENABLE __HAL_RCC_UART5_CLK_ENABLE -#define __UART5_CLK_SLEEP_DISABLE __HAL_RCC_UART5_CLK_SLEEP_DISABLE -#define __UART5_CLK_SLEEP_ENABLE __HAL_RCC_UART5_CLK_SLEEP_ENABLE -#define __UART5_FORCE_RESET __HAL_RCC_UART5_FORCE_RESET -#define __UART5_RELEASE_RESET __HAL_RCC_UART5_RELEASE_RESET -#define __USART1_CLK_DISABLE __HAL_RCC_USART1_CLK_DISABLE -#define __USART1_CLK_ENABLE __HAL_RCC_USART1_CLK_ENABLE -#define __USART1_CLK_SLEEP_DISABLE __HAL_RCC_USART1_CLK_SLEEP_DISABLE -#define __USART1_CLK_SLEEP_ENABLE __HAL_RCC_USART1_CLK_SLEEP_ENABLE -#define __USART1_FORCE_RESET __HAL_RCC_USART1_FORCE_RESET -#define __USART1_RELEASE_RESET __HAL_RCC_USART1_RELEASE_RESET -#define __USART2_CLK_DISABLE __HAL_RCC_USART2_CLK_DISABLE -#define __USART2_CLK_ENABLE __HAL_RCC_USART2_CLK_ENABLE -#define __USART2_CLK_SLEEP_DISABLE __HAL_RCC_USART2_CLK_SLEEP_DISABLE -#define __USART2_CLK_SLEEP_ENABLE __HAL_RCC_USART2_CLK_SLEEP_ENABLE -#define __USART2_FORCE_RESET __HAL_RCC_USART2_FORCE_RESET -#define __USART2_RELEASE_RESET __HAL_RCC_USART2_RELEASE_RESET -#define __USART3_CLK_DISABLE __HAL_RCC_USART3_CLK_DISABLE -#define __USART3_CLK_ENABLE __HAL_RCC_USART3_CLK_ENABLE -#define __USART3_CLK_SLEEP_DISABLE __HAL_RCC_USART3_CLK_SLEEP_DISABLE -#define __USART3_CLK_SLEEP_ENABLE __HAL_RCC_USART3_CLK_SLEEP_ENABLE -#define __USART3_FORCE_RESET __HAL_RCC_USART3_FORCE_RESET -#define __USART3_RELEASE_RESET __HAL_RCC_USART3_RELEASE_RESET -#define __USART4_CLK_DISABLE __HAL_RCC_UART4_CLK_DISABLE -#define __USART4_CLK_ENABLE __HAL_RCC_UART4_CLK_ENABLE -#define __USART4_CLK_SLEEP_ENABLE __HAL_RCC_UART4_CLK_SLEEP_ENABLE -#define __USART4_CLK_SLEEP_DISABLE __HAL_RCC_UART4_CLK_SLEEP_DISABLE -#define __USART4_FORCE_RESET __HAL_RCC_UART4_FORCE_RESET -#define __USART4_RELEASE_RESET __HAL_RCC_UART4_RELEASE_RESET -#define __USART5_CLK_DISABLE __HAL_RCC_UART5_CLK_DISABLE -#define __USART5_CLK_ENABLE __HAL_RCC_UART5_CLK_ENABLE -#define __USART5_CLK_SLEEP_ENABLE __HAL_RCC_UART5_CLK_SLEEP_ENABLE -#define __USART5_CLK_SLEEP_DISABLE __HAL_RCC_UART5_CLK_SLEEP_DISABLE -#define __USART5_FORCE_RESET __HAL_RCC_UART5_FORCE_RESET -#define __USART5_RELEASE_RESET __HAL_RCC_UART5_RELEASE_RESET -#define __USART7_CLK_DISABLE __HAL_RCC_UART7_CLK_DISABLE -#define __USART7_CLK_ENABLE __HAL_RCC_UART7_CLK_ENABLE -#define __USART7_FORCE_RESET __HAL_RCC_UART7_FORCE_RESET -#define __USART7_RELEASE_RESET __HAL_RCC_UART7_RELEASE_RESET -#define __USART8_CLK_DISABLE __HAL_RCC_UART8_CLK_DISABLE -#define __USART8_CLK_ENABLE __HAL_RCC_UART8_CLK_ENABLE -#define __USART8_FORCE_RESET __HAL_RCC_UART8_FORCE_RESET -#define __USART8_RELEASE_RESET __HAL_RCC_UART8_RELEASE_RESET -#define __USB_CLK_DISABLE __HAL_RCC_USB_CLK_DISABLE -#define __USB_CLK_ENABLE __HAL_RCC_USB_CLK_ENABLE -#define __USB_FORCE_RESET __HAL_RCC_USB_FORCE_RESET -#define __USB_CLK_SLEEP_ENABLE __HAL_RCC_USB_CLK_SLEEP_ENABLE -#define __USB_CLK_SLEEP_DISABLE __HAL_RCC_USB_CLK_SLEEP_DISABLE -#define __USB_OTG_FS_CLK_DISABLE __HAL_RCC_USB_OTG_FS_CLK_DISABLE -#define __USB_OTG_FS_CLK_ENABLE __HAL_RCC_USB_OTG_FS_CLK_ENABLE -#define __USB_RELEASE_RESET __HAL_RCC_USB_RELEASE_RESET - -#if defined(STM32H7) -#define __HAL_RCC_WWDG_CLK_DISABLE __HAL_RCC_WWDG1_CLK_DISABLE -#define __HAL_RCC_WWDG_CLK_ENABLE __HAL_RCC_WWDG1_CLK_ENABLE -#define __HAL_RCC_WWDG_CLK_SLEEP_DISABLE __HAL_RCC_WWDG1_CLK_SLEEP_DISABLE -#define __HAL_RCC_WWDG_CLK_SLEEP_ENABLE __HAL_RCC_WWDG1_CLK_SLEEP_ENABLE - -#define __HAL_RCC_WWDG_FORCE_RESET ((void)0U) /* Not available on the STM32H7*/ -#define __HAL_RCC_WWDG_RELEASE_RESET ((void)0U) /* Not available on the STM32H7*/ - - -#define __HAL_RCC_WWDG_IS_CLK_ENABLED __HAL_RCC_WWDG1_IS_CLK_ENABLED -#define __HAL_RCC_WWDG_IS_CLK_DISABLED __HAL_RCC_WWDG1_IS_CLK_DISABLED -#define RCC_SPI4CLKSOURCE_D2PCLK1 RCC_SPI4CLKSOURCE_D2PCLK2 -#define RCC_SPI5CLKSOURCE_D2PCLK1 RCC_SPI5CLKSOURCE_D2PCLK2 -#define RCC_SPI45CLKSOURCE_D2PCLK1 RCC_SPI45CLKSOURCE_D2PCLK2 -#define RCC_SPI45CLKSOURCE_CDPCLK1 RCC_SPI45CLKSOURCE_CDPCLK2 -#define RCC_SPI45CLKSOURCE_PCLK1 RCC_SPI45CLKSOURCE_PCLK2 -#endif - -#define __WWDG_CLK_DISABLE __HAL_RCC_WWDG_CLK_DISABLE -#define __WWDG_CLK_ENABLE __HAL_RCC_WWDG_CLK_ENABLE -#define __WWDG_CLK_SLEEP_DISABLE __HAL_RCC_WWDG_CLK_SLEEP_DISABLE -#define __WWDG_CLK_SLEEP_ENABLE __HAL_RCC_WWDG_CLK_SLEEP_ENABLE -#define __WWDG_FORCE_RESET __HAL_RCC_WWDG_FORCE_RESET -#define __WWDG_RELEASE_RESET __HAL_RCC_WWDG_RELEASE_RESET - -#define __TIM21_CLK_ENABLE __HAL_RCC_TIM21_CLK_ENABLE -#define __TIM21_CLK_DISABLE __HAL_RCC_TIM21_CLK_DISABLE -#define __TIM21_FORCE_RESET __HAL_RCC_TIM21_FORCE_RESET -#define __TIM21_RELEASE_RESET __HAL_RCC_TIM21_RELEASE_RESET -#define __TIM21_CLK_SLEEP_ENABLE __HAL_RCC_TIM21_CLK_SLEEP_ENABLE -#define __TIM21_CLK_SLEEP_DISABLE __HAL_RCC_TIM21_CLK_SLEEP_DISABLE -#define __TIM22_CLK_ENABLE __HAL_RCC_TIM22_CLK_ENABLE -#define __TIM22_CLK_DISABLE __HAL_RCC_TIM22_CLK_DISABLE -#define __TIM22_FORCE_RESET __HAL_RCC_TIM22_FORCE_RESET -#define __TIM22_RELEASE_RESET __HAL_RCC_TIM22_RELEASE_RESET -#define __TIM22_CLK_SLEEP_ENABLE __HAL_RCC_TIM22_CLK_SLEEP_ENABLE -#define __TIM22_CLK_SLEEP_DISABLE __HAL_RCC_TIM22_CLK_SLEEP_DISABLE -#define __CRS_CLK_DISABLE __HAL_RCC_CRS_CLK_DISABLE -#define __CRS_CLK_ENABLE __HAL_RCC_CRS_CLK_ENABLE -#define __CRS_CLK_SLEEP_DISABLE __HAL_RCC_CRS_CLK_SLEEP_DISABLE -#define __CRS_CLK_SLEEP_ENABLE __HAL_RCC_CRS_CLK_SLEEP_ENABLE -#define __CRS_FORCE_RESET __HAL_RCC_CRS_FORCE_RESET -#define __CRS_RELEASE_RESET __HAL_RCC_CRS_RELEASE_RESET -#define __RCC_BACKUPRESET_FORCE __HAL_RCC_BACKUPRESET_FORCE -#define __RCC_BACKUPRESET_RELEASE __HAL_RCC_BACKUPRESET_RELEASE - -#define __USB_OTG_FS_FORCE_RESET __HAL_RCC_USB_OTG_FS_FORCE_RESET -#define __USB_OTG_FS_RELEASE_RESET __HAL_RCC_USB_OTG_FS_RELEASE_RESET -#define __USB_OTG_FS_CLK_SLEEP_ENABLE __HAL_RCC_USB_OTG_FS_CLK_SLEEP_ENABLE -#define __USB_OTG_FS_CLK_SLEEP_DISABLE __HAL_RCC_USB_OTG_FS_CLK_SLEEP_DISABLE -#define __USB_OTG_HS_CLK_DISABLE __HAL_RCC_USB_OTG_HS_CLK_DISABLE -#define __USB_OTG_HS_CLK_ENABLE __HAL_RCC_USB_OTG_HS_CLK_ENABLE -#define __USB_OTG_HS_ULPI_CLK_ENABLE __HAL_RCC_USB_OTG_HS_ULPI_CLK_ENABLE -#define __USB_OTG_HS_ULPI_CLK_DISABLE __HAL_RCC_USB_OTG_HS_ULPI_CLK_DISABLE -#define __TIM9_CLK_SLEEP_ENABLE __HAL_RCC_TIM9_CLK_SLEEP_ENABLE -#define __TIM9_CLK_SLEEP_DISABLE __HAL_RCC_TIM9_CLK_SLEEP_DISABLE -#define __TIM10_CLK_SLEEP_ENABLE __HAL_RCC_TIM10_CLK_SLEEP_ENABLE -#define __TIM10_CLK_SLEEP_DISABLE __HAL_RCC_TIM10_CLK_SLEEP_DISABLE -#define __TIM11_CLK_SLEEP_ENABLE __HAL_RCC_TIM11_CLK_SLEEP_ENABLE -#define __TIM11_CLK_SLEEP_DISABLE __HAL_RCC_TIM11_CLK_SLEEP_DISABLE -#define __ETHMACPTP_CLK_SLEEP_ENABLE __HAL_RCC_ETHMACPTP_CLK_SLEEP_ENABLE -#define __ETHMACPTP_CLK_SLEEP_DISABLE __HAL_RCC_ETHMACPTP_CLK_SLEEP_DISABLE -#define __ETHMACPTP_CLK_ENABLE __HAL_RCC_ETHMACPTP_CLK_ENABLE -#define __ETHMACPTP_CLK_DISABLE __HAL_RCC_ETHMACPTP_CLK_DISABLE -#define __HASH_CLK_ENABLE __HAL_RCC_HASH_CLK_ENABLE -#define __HASH_FORCE_RESET __HAL_RCC_HASH_FORCE_RESET -#define __HASH_RELEASE_RESET __HAL_RCC_HASH_RELEASE_RESET -#define __HASH_CLK_SLEEP_ENABLE __HAL_RCC_HASH_CLK_SLEEP_ENABLE -#define __HASH_CLK_SLEEP_DISABLE __HAL_RCC_HASH_CLK_SLEEP_DISABLE -#define __HASH_CLK_DISABLE __HAL_RCC_HASH_CLK_DISABLE -#define __SPI5_CLK_ENABLE __HAL_RCC_SPI5_CLK_ENABLE -#define __SPI5_CLK_DISABLE __HAL_RCC_SPI5_CLK_DISABLE -#define __SPI5_FORCE_RESET __HAL_RCC_SPI5_FORCE_RESET -#define __SPI5_RELEASE_RESET __HAL_RCC_SPI5_RELEASE_RESET -#define __SPI5_CLK_SLEEP_ENABLE __HAL_RCC_SPI5_CLK_SLEEP_ENABLE -#define __SPI5_CLK_SLEEP_DISABLE __HAL_RCC_SPI5_CLK_SLEEP_DISABLE -#define __SPI6_CLK_ENABLE __HAL_RCC_SPI6_CLK_ENABLE -#define __SPI6_CLK_DISABLE __HAL_RCC_SPI6_CLK_DISABLE -#define __SPI6_FORCE_RESET __HAL_RCC_SPI6_FORCE_RESET -#define __SPI6_RELEASE_RESET __HAL_RCC_SPI6_RELEASE_RESET -#define __SPI6_CLK_SLEEP_ENABLE __HAL_RCC_SPI6_CLK_SLEEP_ENABLE -#define __SPI6_CLK_SLEEP_DISABLE __HAL_RCC_SPI6_CLK_SLEEP_DISABLE -#define __LTDC_CLK_ENABLE __HAL_RCC_LTDC_CLK_ENABLE -#define __LTDC_CLK_DISABLE __HAL_RCC_LTDC_CLK_DISABLE -#define __LTDC_FORCE_RESET __HAL_RCC_LTDC_FORCE_RESET -#define __LTDC_RELEASE_RESET __HAL_RCC_LTDC_RELEASE_RESET -#define __LTDC_CLK_SLEEP_ENABLE __HAL_RCC_LTDC_CLK_SLEEP_ENABLE -#define __ETHMAC_CLK_SLEEP_ENABLE __HAL_RCC_ETHMAC_CLK_SLEEP_ENABLE -#define __ETHMAC_CLK_SLEEP_DISABLE __HAL_RCC_ETHMAC_CLK_SLEEP_DISABLE -#define __ETHMACTX_CLK_SLEEP_ENABLE __HAL_RCC_ETHMACTX_CLK_SLEEP_ENABLE -#define __ETHMACTX_CLK_SLEEP_DISABLE __HAL_RCC_ETHMACTX_CLK_SLEEP_DISABLE -#define __ETHMACRX_CLK_SLEEP_ENABLE __HAL_RCC_ETHMACRX_CLK_SLEEP_ENABLE -#define __ETHMACRX_CLK_SLEEP_DISABLE __HAL_RCC_ETHMACRX_CLK_SLEEP_DISABLE -#define __TIM12_CLK_SLEEP_ENABLE __HAL_RCC_TIM12_CLK_SLEEP_ENABLE -#define __TIM12_CLK_SLEEP_DISABLE __HAL_RCC_TIM12_CLK_SLEEP_DISABLE -#define __TIM13_CLK_SLEEP_ENABLE __HAL_RCC_TIM13_CLK_SLEEP_ENABLE -#define __TIM13_CLK_SLEEP_DISABLE __HAL_RCC_TIM13_CLK_SLEEP_DISABLE -#define __TIM14_CLK_SLEEP_ENABLE __HAL_RCC_TIM14_CLK_SLEEP_ENABLE -#define __TIM14_CLK_SLEEP_DISABLE __HAL_RCC_TIM14_CLK_SLEEP_DISABLE -#define __BKPSRAM_CLK_ENABLE __HAL_RCC_BKPSRAM_CLK_ENABLE -#define __BKPSRAM_CLK_DISABLE __HAL_RCC_BKPSRAM_CLK_DISABLE -#define __BKPSRAM_CLK_SLEEP_ENABLE __HAL_RCC_BKPSRAM_CLK_SLEEP_ENABLE -#define __BKPSRAM_CLK_SLEEP_DISABLE __HAL_RCC_BKPSRAM_CLK_SLEEP_DISABLE -#define __CCMDATARAMEN_CLK_ENABLE __HAL_RCC_CCMDATARAMEN_CLK_ENABLE -#define __CCMDATARAMEN_CLK_DISABLE __HAL_RCC_CCMDATARAMEN_CLK_DISABLE -#define __USART6_CLK_ENABLE __HAL_RCC_USART6_CLK_ENABLE -#define __USART6_CLK_DISABLE __HAL_RCC_USART6_CLK_DISABLE -#define __USART6_FORCE_RESET __HAL_RCC_USART6_FORCE_RESET -#define __USART6_RELEASE_RESET __HAL_RCC_USART6_RELEASE_RESET -#define __USART6_CLK_SLEEP_ENABLE __HAL_RCC_USART6_CLK_SLEEP_ENABLE -#define __USART6_CLK_SLEEP_DISABLE __HAL_RCC_USART6_CLK_SLEEP_DISABLE -#define __SPI4_CLK_ENABLE __HAL_RCC_SPI4_CLK_ENABLE -#define __SPI4_CLK_DISABLE __HAL_RCC_SPI4_CLK_DISABLE -#define __SPI4_FORCE_RESET __HAL_RCC_SPI4_FORCE_RESET -#define __SPI4_RELEASE_RESET __HAL_RCC_SPI4_RELEASE_RESET -#define __SPI4_CLK_SLEEP_ENABLE __HAL_RCC_SPI4_CLK_SLEEP_ENABLE -#define __SPI4_CLK_SLEEP_DISABLE __HAL_RCC_SPI4_CLK_SLEEP_DISABLE -#define __GPIOI_CLK_ENABLE __HAL_RCC_GPIOI_CLK_ENABLE -#define __GPIOI_CLK_DISABLE __HAL_RCC_GPIOI_CLK_DISABLE -#define __GPIOI_FORCE_RESET __HAL_RCC_GPIOI_FORCE_RESET -#define __GPIOI_RELEASE_RESET __HAL_RCC_GPIOI_RELEASE_RESET -#define __GPIOI_CLK_SLEEP_ENABLE __HAL_RCC_GPIOI_CLK_SLEEP_ENABLE -#define __GPIOI_CLK_SLEEP_DISABLE __HAL_RCC_GPIOI_CLK_SLEEP_DISABLE -#define __GPIOJ_CLK_ENABLE __HAL_RCC_GPIOJ_CLK_ENABLE -#define __GPIOJ_CLK_DISABLE __HAL_RCC_GPIOJ_CLK_DISABLE -#define __GPIOJ_FORCE_RESET __HAL_RCC_GPIOJ_FORCE_RESET -#define __GPIOJ_RELEASE_RESET __HAL_RCC_GPIOJ_RELEASE_RESET -#define __GPIOJ_CLK_SLEEP_ENABLE __HAL_RCC_GPIOJ_CLK_SLEEP_ENABLE -#define __GPIOJ_CLK_SLEEP_DISABLE __HAL_RCC_GPIOJ_CLK_SLEEP_DISABLE -#define __GPIOK_CLK_ENABLE __HAL_RCC_GPIOK_CLK_ENABLE -#define __GPIOK_CLK_DISABLE __HAL_RCC_GPIOK_CLK_DISABLE -#define __GPIOK_RELEASE_RESET __HAL_RCC_GPIOK_RELEASE_RESET -#define __GPIOK_CLK_SLEEP_ENABLE __HAL_RCC_GPIOK_CLK_SLEEP_ENABLE -#define __GPIOK_CLK_SLEEP_DISABLE __HAL_RCC_GPIOK_CLK_SLEEP_DISABLE -#define __ETH_CLK_ENABLE __HAL_RCC_ETH_CLK_ENABLE -#define __ETH_CLK_DISABLE __HAL_RCC_ETH_CLK_DISABLE -#define __DCMI_CLK_ENABLE __HAL_RCC_DCMI_CLK_ENABLE -#define __DCMI_CLK_DISABLE __HAL_RCC_DCMI_CLK_DISABLE -#define __DCMI_FORCE_RESET __HAL_RCC_DCMI_FORCE_RESET -#define __DCMI_RELEASE_RESET __HAL_RCC_DCMI_RELEASE_RESET -#define __DCMI_CLK_SLEEP_ENABLE __HAL_RCC_DCMI_CLK_SLEEP_ENABLE -#define __DCMI_CLK_SLEEP_DISABLE __HAL_RCC_DCMI_CLK_SLEEP_DISABLE -#define __UART7_CLK_ENABLE __HAL_RCC_UART7_CLK_ENABLE -#define __UART7_CLK_DISABLE __HAL_RCC_UART7_CLK_DISABLE -#define __UART7_RELEASE_RESET __HAL_RCC_UART7_RELEASE_RESET -#define __UART7_FORCE_RESET __HAL_RCC_UART7_FORCE_RESET -#define __UART7_CLK_SLEEP_ENABLE __HAL_RCC_UART7_CLK_SLEEP_ENABLE -#define __UART7_CLK_SLEEP_DISABLE __HAL_RCC_UART7_CLK_SLEEP_DISABLE -#define __UART8_CLK_ENABLE __HAL_RCC_UART8_CLK_ENABLE -#define __UART8_CLK_DISABLE __HAL_RCC_UART8_CLK_DISABLE -#define __UART8_FORCE_RESET __HAL_RCC_UART8_FORCE_RESET -#define __UART8_RELEASE_RESET __HAL_RCC_UART8_RELEASE_RESET -#define __UART8_CLK_SLEEP_ENABLE __HAL_RCC_UART8_CLK_SLEEP_ENABLE -#define __UART8_CLK_SLEEP_DISABLE __HAL_RCC_UART8_CLK_SLEEP_DISABLE -#define __OTGHS_CLK_SLEEP_ENABLE __HAL_RCC_USB_OTG_HS_CLK_SLEEP_ENABLE -#define __OTGHS_CLK_SLEEP_DISABLE __HAL_RCC_USB_OTG_HS_CLK_SLEEP_DISABLE -#define __OTGHS_FORCE_RESET __HAL_RCC_USB_OTG_HS_FORCE_RESET -#define __OTGHS_RELEASE_RESET __HAL_RCC_USB_OTG_HS_RELEASE_RESET -#define __OTGHSULPI_CLK_SLEEP_ENABLE __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_ENABLE -#define __OTGHSULPI_CLK_SLEEP_DISABLE __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_DISABLE -#define __HAL_RCC_OTGHS_CLK_SLEEP_ENABLE __HAL_RCC_USB_OTG_HS_CLK_SLEEP_ENABLE -#define __HAL_RCC_OTGHS_CLK_SLEEP_DISABLE __HAL_RCC_USB_OTG_HS_CLK_SLEEP_DISABLE -#define __HAL_RCC_OTGHS_IS_CLK_SLEEP_ENABLED __HAL_RCC_USB_OTG_HS_IS_CLK_SLEEP_ENABLED -#define __HAL_RCC_OTGHS_IS_CLK_SLEEP_DISABLED __HAL_RCC_USB_OTG_HS_IS_CLK_SLEEP_DISABLED -#define __HAL_RCC_OTGHS_FORCE_RESET __HAL_RCC_USB_OTG_HS_FORCE_RESET -#define __HAL_RCC_OTGHS_RELEASE_RESET __HAL_RCC_USB_OTG_HS_RELEASE_RESET -#define __HAL_RCC_OTGHSULPI_CLK_SLEEP_ENABLE __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_ENABLE -#define __HAL_RCC_OTGHSULPI_CLK_SLEEP_DISABLE __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_DISABLE -#define __HAL_RCC_OTGHSULPI_IS_CLK_SLEEP_ENABLED __HAL_RCC_USB_OTG_HS_ULPI_IS_CLK_SLEEP_ENABLED -#define __HAL_RCC_OTGHSULPI_IS_CLK_SLEEP_DISABLED __HAL_RCC_USB_OTG_HS_ULPI_IS_CLK_SLEEP_DISABLED -#define __SRAM3_CLK_SLEEP_ENABLE __HAL_RCC_SRAM3_CLK_SLEEP_ENABLE -#define __CAN2_CLK_SLEEP_ENABLE __HAL_RCC_CAN2_CLK_SLEEP_ENABLE -#define __CAN2_CLK_SLEEP_DISABLE __HAL_RCC_CAN2_CLK_SLEEP_DISABLE -#define __DAC_CLK_SLEEP_ENABLE __HAL_RCC_DAC_CLK_SLEEP_ENABLE -#define __DAC_CLK_SLEEP_DISABLE __HAL_RCC_DAC_CLK_SLEEP_DISABLE -#define __ADC2_CLK_SLEEP_ENABLE __HAL_RCC_ADC2_CLK_SLEEP_ENABLE -#define __ADC2_CLK_SLEEP_DISABLE __HAL_RCC_ADC2_CLK_SLEEP_DISABLE -#define __ADC3_CLK_SLEEP_ENABLE __HAL_RCC_ADC3_CLK_SLEEP_ENABLE -#define __ADC3_CLK_SLEEP_DISABLE __HAL_RCC_ADC3_CLK_SLEEP_DISABLE -#define __FSMC_FORCE_RESET __HAL_RCC_FSMC_FORCE_RESET -#define __FSMC_RELEASE_RESET __HAL_RCC_FSMC_RELEASE_RESET -#define __FSMC_CLK_SLEEP_ENABLE __HAL_RCC_FSMC_CLK_SLEEP_ENABLE -#define __FSMC_CLK_SLEEP_DISABLE __HAL_RCC_FSMC_CLK_SLEEP_DISABLE -#define __SDIO_FORCE_RESET __HAL_RCC_SDIO_FORCE_RESET -#define __SDIO_RELEASE_RESET __HAL_RCC_SDIO_RELEASE_RESET -#define __SDIO_CLK_SLEEP_DISABLE __HAL_RCC_SDIO_CLK_SLEEP_DISABLE -#define __SDIO_CLK_SLEEP_ENABLE __HAL_RCC_SDIO_CLK_SLEEP_ENABLE -#define __DMA2D_CLK_ENABLE __HAL_RCC_DMA2D_CLK_ENABLE -#define __DMA2D_CLK_DISABLE __HAL_RCC_DMA2D_CLK_DISABLE -#define __DMA2D_FORCE_RESET __HAL_RCC_DMA2D_FORCE_RESET -#define __DMA2D_RELEASE_RESET __HAL_RCC_DMA2D_RELEASE_RESET -#define __DMA2D_CLK_SLEEP_ENABLE __HAL_RCC_DMA2D_CLK_SLEEP_ENABLE -#define __DMA2D_CLK_SLEEP_DISABLE __HAL_RCC_DMA2D_CLK_SLEEP_DISABLE - -/* alias define maintained for legacy */ -#define __HAL_RCC_OTGFS_FORCE_RESET __HAL_RCC_USB_OTG_FS_FORCE_RESET -#define __HAL_RCC_OTGFS_RELEASE_RESET __HAL_RCC_USB_OTG_FS_RELEASE_RESET - -#define __ADC12_CLK_ENABLE __HAL_RCC_ADC12_CLK_ENABLE -#define __ADC12_CLK_DISABLE __HAL_RCC_ADC12_CLK_DISABLE -#define __ADC34_CLK_ENABLE __HAL_RCC_ADC34_CLK_ENABLE -#define __ADC34_CLK_DISABLE __HAL_RCC_ADC34_CLK_DISABLE -#define __DAC2_CLK_ENABLE __HAL_RCC_DAC2_CLK_ENABLE -#define __DAC2_CLK_DISABLE __HAL_RCC_DAC2_CLK_DISABLE -#define __TIM18_CLK_ENABLE __HAL_RCC_TIM18_CLK_ENABLE -#define __TIM18_CLK_DISABLE __HAL_RCC_TIM18_CLK_DISABLE -#define __TIM19_CLK_ENABLE __HAL_RCC_TIM19_CLK_ENABLE -#define __TIM19_CLK_DISABLE __HAL_RCC_TIM19_CLK_DISABLE -#define __TIM20_CLK_ENABLE __HAL_RCC_TIM20_CLK_ENABLE -#define __TIM20_CLK_DISABLE __HAL_RCC_TIM20_CLK_DISABLE -#define __HRTIM1_CLK_ENABLE __HAL_RCC_HRTIM1_CLK_ENABLE -#define __HRTIM1_CLK_DISABLE __HAL_RCC_HRTIM1_CLK_DISABLE -#define __SDADC1_CLK_ENABLE __HAL_RCC_SDADC1_CLK_ENABLE -#define __SDADC2_CLK_ENABLE __HAL_RCC_SDADC2_CLK_ENABLE -#define __SDADC3_CLK_ENABLE __HAL_RCC_SDADC3_CLK_ENABLE -#define __SDADC1_CLK_DISABLE __HAL_RCC_SDADC1_CLK_DISABLE -#define __SDADC2_CLK_DISABLE __HAL_RCC_SDADC2_CLK_DISABLE -#define __SDADC3_CLK_DISABLE __HAL_RCC_SDADC3_CLK_DISABLE - -#define __ADC12_FORCE_RESET __HAL_RCC_ADC12_FORCE_RESET -#define __ADC12_RELEASE_RESET __HAL_RCC_ADC12_RELEASE_RESET -#define __ADC34_FORCE_RESET __HAL_RCC_ADC34_FORCE_RESET -#define __ADC34_RELEASE_RESET __HAL_RCC_ADC34_RELEASE_RESET -#define __DAC2_FORCE_RESET __HAL_RCC_DAC2_FORCE_RESET -#define __DAC2_RELEASE_RESET __HAL_RCC_DAC2_RELEASE_RESET -#define __TIM18_FORCE_RESET __HAL_RCC_TIM18_FORCE_RESET -#define __TIM18_RELEASE_RESET __HAL_RCC_TIM18_RELEASE_RESET -#define __TIM19_FORCE_RESET __HAL_RCC_TIM19_FORCE_RESET -#define __TIM19_RELEASE_RESET __HAL_RCC_TIM19_RELEASE_RESET -#define __TIM20_FORCE_RESET __HAL_RCC_TIM20_FORCE_RESET -#define __TIM20_RELEASE_RESET __HAL_RCC_TIM20_RELEASE_RESET -#define __HRTIM1_FORCE_RESET __HAL_RCC_HRTIM1_FORCE_RESET -#define __HRTIM1_RELEASE_RESET __HAL_RCC_HRTIM1_RELEASE_RESET -#define __SDADC1_FORCE_RESET __HAL_RCC_SDADC1_FORCE_RESET -#define __SDADC2_FORCE_RESET __HAL_RCC_SDADC2_FORCE_RESET -#define __SDADC3_FORCE_RESET __HAL_RCC_SDADC3_FORCE_RESET -#define __SDADC1_RELEASE_RESET __HAL_RCC_SDADC1_RELEASE_RESET -#define __SDADC2_RELEASE_RESET __HAL_RCC_SDADC2_RELEASE_RESET -#define __SDADC3_RELEASE_RESET __HAL_RCC_SDADC3_RELEASE_RESET - -#define __ADC1_IS_CLK_ENABLED __HAL_RCC_ADC1_IS_CLK_ENABLED -#define __ADC1_IS_CLK_DISABLED __HAL_RCC_ADC1_IS_CLK_DISABLED -#define __ADC12_IS_CLK_ENABLED __HAL_RCC_ADC12_IS_CLK_ENABLED -#define __ADC12_IS_CLK_DISABLED __HAL_RCC_ADC12_IS_CLK_DISABLED -#define __ADC34_IS_CLK_ENABLED __HAL_RCC_ADC34_IS_CLK_ENABLED -#define __ADC34_IS_CLK_DISABLED __HAL_RCC_ADC34_IS_CLK_DISABLED -#define __CEC_IS_CLK_ENABLED __HAL_RCC_CEC_IS_CLK_ENABLED -#define __CEC_IS_CLK_DISABLED __HAL_RCC_CEC_IS_CLK_DISABLED -#define __CRC_IS_CLK_ENABLED __HAL_RCC_CRC_IS_CLK_ENABLED -#define __CRC_IS_CLK_DISABLED __HAL_RCC_CRC_IS_CLK_DISABLED -#define __DAC1_IS_CLK_ENABLED __HAL_RCC_DAC1_IS_CLK_ENABLED -#define __DAC1_IS_CLK_DISABLED __HAL_RCC_DAC1_IS_CLK_DISABLED -#define __DAC2_IS_CLK_ENABLED __HAL_RCC_DAC2_IS_CLK_ENABLED -#define __DAC2_IS_CLK_DISABLED __HAL_RCC_DAC2_IS_CLK_DISABLED -#define __DMA1_IS_CLK_ENABLED __HAL_RCC_DMA1_IS_CLK_ENABLED -#define __DMA1_IS_CLK_DISABLED __HAL_RCC_DMA1_IS_CLK_DISABLED -#define __DMA2_IS_CLK_ENABLED __HAL_RCC_DMA2_IS_CLK_ENABLED -#define __DMA2_IS_CLK_DISABLED __HAL_RCC_DMA2_IS_CLK_DISABLED -#define __FLITF_IS_CLK_ENABLED __HAL_RCC_FLITF_IS_CLK_ENABLED -#define __FLITF_IS_CLK_DISABLED __HAL_RCC_FLITF_IS_CLK_DISABLED -#define __FMC_IS_CLK_ENABLED __HAL_RCC_FMC_IS_CLK_ENABLED -#define __FMC_IS_CLK_DISABLED __HAL_RCC_FMC_IS_CLK_DISABLED -#define __GPIOA_IS_CLK_ENABLED __HAL_RCC_GPIOA_IS_CLK_ENABLED -#define __GPIOA_IS_CLK_DISABLED __HAL_RCC_GPIOA_IS_CLK_DISABLED -#define __GPIOB_IS_CLK_ENABLED __HAL_RCC_GPIOB_IS_CLK_ENABLED -#define __GPIOB_IS_CLK_DISABLED __HAL_RCC_GPIOB_IS_CLK_DISABLED -#define __GPIOC_IS_CLK_ENABLED __HAL_RCC_GPIOC_IS_CLK_ENABLED -#define __GPIOC_IS_CLK_DISABLED __HAL_RCC_GPIOC_IS_CLK_DISABLED -#define __GPIOD_IS_CLK_ENABLED __HAL_RCC_GPIOD_IS_CLK_ENABLED -#define __GPIOD_IS_CLK_DISABLED __HAL_RCC_GPIOD_IS_CLK_DISABLED -#define __GPIOE_IS_CLK_ENABLED __HAL_RCC_GPIOE_IS_CLK_ENABLED -#define __GPIOE_IS_CLK_DISABLED __HAL_RCC_GPIOE_IS_CLK_DISABLED -#define __GPIOF_IS_CLK_ENABLED __HAL_RCC_GPIOF_IS_CLK_ENABLED -#define __GPIOF_IS_CLK_DISABLED __HAL_RCC_GPIOF_IS_CLK_DISABLED -#define __GPIOG_IS_CLK_ENABLED __HAL_RCC_GPIOG_IS_CLK_ENABLED -#define __GPIOG_IS_CLK_DISABLED __HAL_RCC_GPIOG_IS_CLK_DISABLED -#define __GPIOH_IS_CLK_ENABLED __HAL_RCC_GPIOH_IS_CLK_ENABLED -#define __GPIOH_IS_CLK_DISABLED __HAL_RCC_GPIOH_IS_CLK_DISABLED -#define __HRTIM1_IS_CLK_ENABLED __HAL_RCC_HRTIM1_IS_CLK_ENABLED -#define __HRTIM1_IS_CLK_DISABLED __HAL_RCC_HRTIM1_IS_CLK_DISABLED -#define __I2C1_IS_CLK_ENABLED __HAL_RCC_I2C1_IS_CLK_ENABLED -#define __I2C1_IS_CLK_DISABLED __HAL_RCC_I2C1_IS_CLK_DISABLED -#define __I2C2_IS_CLK_ENABLED __HAL_RCC_I2C2_IS_CLK_ENABLED -#define __I2C2_IS_CLK_DISABLED __HAL_RCC_I2C2_IS_CLK_DISABLED -#define __I2C3_IS_CLK_ENABLED __HAL_RCC_I2C3_IS_CLK_ENABLED -#define __I2C3_IS_CLK_DISABLED __HAL_RCC_I2C3_IS_CLK_DISABLED -#define __PWR_IS_CLK_ENABLED __HAL_RCC_PWR_IS_CLK_ENABLED -#define __PWR_IS_CLK_DISABLED __HAL_RCC_PWR_IS_CLK_DISABLED -#define __SYSCFG_IS_CLK_ENABLED __HAL_RCC_SYSCFG_IS_CLK_ENABLED -#define __SYSCFG_IS_CLK_DISABLED __HAL_RCC_SYSCFG_IS_CLK_DISABLED -#define __SPI1_IS_CLK_ENABLED __HAL_RCC_SPI1_IS_CLK_ENABLED -#define __SPI1_IS_CLK_DISABLED __HAL_RCC_SPI1_IS_CLK_DISABLED -#define __SPI2_IS_CLK_ENABLED __HAL_RCC_SPI2_IS_CLK_ENABLED -#define __SPI2_IS_CLK_DISABLED __HAL_RCC_SPI2_IS_CLK_DISABLED -#define __SPI3_IS_CLK_ENABLED __HAL_RCC_SPI3_IS_CLK_ENABLED -#define __SPI3_IS_CLK_DISABLED __HAL_RCC_SPI3_IS_CLK_DISABLED -#define __SPI4_IS_CLK_ENABLED __HAL_RCC_SPI4_IS_CLK_ENABLED -#define __SPI4_IS_CLK_DISABLED __HAL_RCC_SPI4_IS_CLK_DISABLED -#define __SDADC1_IS_CLK_ENABLED __HAL_RCC_SDADC1_IS_CLK_ENABLED -#define __SDADC1_IS_CLK_DISABLED __HAL_RCC_SDADC1_IS_CLK_DISABLED -#define __SDADC2_IS_CLK_ENABLED __HAL_RCC_SDADC2_IS_CLK_ENABLED -#define __SDADC2_IS_CLK_DISABLED __HAL_RCC_SDADC2_IS_CLK_DISABLED -#define __SDADC3_IS_CLK_ENABLED __HAL_RCC_SDADC3_IS_CLK_ENABLED -#define __SDADC3_IS_CLK_DISABLED __HAL_RCC_SDADC3_IS_CLK_DISABLED -#define __SRAM_IS_CLK_ENABLED __HAL_RCC_SRAM_IS_CLK_ENABLED -#define __SRAM_IS_CLK_DISABLED __HAL_RCC_SRAM_IS_CLK_DISABLED -#define __TIM1_IS_CLK_ENABLED __HAL_RCC_TIM1_IS_CLK_ENABLED -#define __TIM1_IS_CLK_DISABLED __HAL_RCC_TIM1_IS_CLK_DISABLED -#define __TIM2_IS_CLK_ENABLED __HAL_RCC_TIM2_IS_CLK_ENABLED -#define __TIM2_IS_CLK_DISABLED __HAL_RCC_TIM2_IS_CLK_DISABLED -#define __TIM3_IS_CLK_ENABLED __HAL_RCC_TIM3_IS_CLK_ENABLED -#define __TIM3_IS_CLK_DISABLED __HAL_RCC_TIM3_IS_CLK_DISABLED -#define __TIM4_IS_CLK_ENABLED __HAL_RCC_TIM4_IS_CLK_ENABLED -#define __TIM4_IS_CLK_DISABLED __HAL_RCC_TIM4_IS_CLK_DISABLED -#define __TIM5_IS_CLK_ENABLED __HAL_RCC_TIM5_IS_CLK_ENABLED -#define __TIM5_IS_CLK_DISABLED __HAL_RCC_TIM5_IS_CLK_DISABLED -#define __TIM6_IS_CLK_ENABLED __HAL_RCC_TIM6_IS_CLK_ENABLED -#define __TIM6_IS_CLK_DISABLED __HAL_RCC_TIM6_IS_CLK_DISABLED -#define __TIM7_IS_CLK_ENABLED __HAL_RCC_TIM7_IS_CLK_ENABLED -#define __TIM7_IS_CLK_DISABLED __HAL_RCC_TIM7_IS_CLK_DISABLED -#define __TIM8_IS_CLK_ENABLED __HAL_RCC_TIM8_IS_CLK_ENABLED -#define __TIM8_IS_CLK_DISABLED __HAL_RCC_TIM8_IS_CLK_DISABLED -#define __TIM12_IS_CLK_ENABLED __HAL_RCC_TIM12_IS_CLK_ENABLED -#define __TIM12_IS_CLK_DISABLED __HAL_RCC_TIM12_IS_CLK_DISABLED -#define __TIM13_IS_CLK_ENABLED __HAL_RCC_TIM13_IS_CLK_ENABLED -#define __TIM13_IS_CLK_DISABLED __HAL_RCC_TIM13_IS_CLK_DISABLED -#define __TIM14_IS_CLK_ENABLED __HAL_RCC_TIM14_IS_CLK_ENABLED -#define __TIM14_IS_CLK_DISABLED __HAL_RCC_TIM14_IS_CLK_DISABLED -#define __TIM15_IS_CLK_ENABLED __HAL_RCC_TIM15_IS_CLK_ENABLED -#define __TIM15_IS_CLK_DISABLED __HAL_RCC_TIM15_IS_CLK_DISABLED -#define __TIM16_IS_CLK_ENABLED __HAL_RCC_TIM16_IS_CLK_ENABLED -#define __TIM16_IS_CLK_DISABLED __HAL_RCC_TIM16_IS_CLK_DISABLED -#define __TIM17_IS_CLK_ENABLED __HAL_RCC_TIM17_IS_CLK_ENABLED -#define __TIM17_IS_CLK_DISABLED __HAL_RCC_TIM17_IS_CLK_DISABLED -#define __TIM18_IS_CLK_ENABLED __HAL_RCC_TIM18_IS_CLK_ENABLED -#define __TIM18_IS_CLK_DISABLED __HAL_RCC_TIM18_IS_CLK_DISABLED -#define __TIM19_IS_CLK_ENABLED __HAL_RCC_TIM19_IS_CLK_ENABLED -#define __TIM19_IS_CLK_DISABLED __HAL_RCC_TIM19_IS_CLK_DISABLED -#define __TIM20_IS_CLK_ENABLED __HAL_RCC_TIM20_IS_CLK_ENABLED -#define __TIM20_IS_CLK_DISABLED __HAL_RCC_TIM20_IS_CLK_DISABLED -#define __TSC_IS_CLK_ENABLED __HAL_RCC_TSC_IS_CLK_ENABLED -#define __TSC_IS_CLK_DISABLED __HAL_RCC_TSC_IS_CLK_DISABLED -#define __UART4_IS_CLK_ENABLED __HAL_RCC_UART4_IS_CLK_ENABLED -#define __UART4_IS_CLK_DISABLED __HAL_RCC_UART4_IS_CLK_DISABLED -#define __UART5_IS_CLK_ENABLED __HAL_RCC_UART5_IS_CLK_ENABLED -#define __UART5_IS_CLK_DISABLED __HAL_RCC_UART5_IS_CLK_DISABLED -#define __USART1_IS_CLK_ENABLED __HAL_RCC_USART1_IS_CLK_ENABLED -#define __USART1_IS_CLK_DISABLED __HAL_RCC_USART1_IS_CLK_DISABLED -#define __USART2_IS_CLK_ENABLED __HAL_RCC_USART2_IS_CLK_ENABLED -#define __USART2_IS_CLK_DISABLED __HAL_RCC_USART2_IS_CLK_DISABLED -#define __USART3_IS_CLK_ENABLED __HAL_RCC_USART3_IS_CLK_ENABLED -#define __USART3_IS_CLK_DISABLED __HAL_RCC_USART3_IS_CLK_DISABLED -#define __USB_IS_CLK_ENABLED __HAL_RCC_USB_IS_CLK_ENABLED -#define __USB_IS_CLK_DISABLED __HAL_RCC_USB_IS_CLK_DISABLED -#define __WWDG_IS_CLK_ENABLED __HAL_RCC_WWDG_IS_CLK_ENABLED -#define __WWDG_IS_CLK_DISABLED __HAL_RCC_WWDG_IS_CLK_DISABLED - -#if defined(STM32L1) -#define __HAL_RCC_CRYP_CLK_DISABLE __HAL_RCC_AES_CLK_DISABLE -#define __HAL_RCC_CRYP_CLK_ENABLE __HAL_RCC_AES_CLK_ENABLE -#define __HAL_RCC_CRYP_CLK_SLEEP_DISABLE __HAL_RCC_AES_CLK_SLEEP_DISABLE -#define __HAL_RCC_CRYP_CLK_SLEEP_ENABLE __HAL_RCC_AES_CLK_SLEEP_ENABLE -#define __HAL_RCC_CRYP_FORCE_RESET __HAL_RCC_AES_FORCE_RESET -#define __HAL_RCC_CRYP_RELEASE_RESET __HAL_RCC_AES_RELEASE_RESET -#endif /* STM32L1 */ - -#if defined(STM32F4) -#define __HAL_RCC_SDMMC1_FORCE_RESET __HAL_RCC_SDIO_FORCE_RESET -#define __HAL_RCC_SDMMC1_RELEASE_RESET __HAL_RCC_SDIO_RELEASE_RESET -#define __HAL_RCC_SDMMC1_CLK_SLEEP_ENABLE __HAL_RCC_SDIO_CLK_SLEEP_ENABLE -#define __HAL_RCC_SDMMC1_CLK_SLEEP_DISABLE __HAL_RCC_SDIO_CLK_SLEEP_DISABLE -#define __HAL_RCC_SDMMC1_CLK_ENABLE __HAL_RCC_SDIO_CLK_ENABLE -#define __HAL_RCC_SDMMC1_CLK_DISABLE __HAL_RCC_SDIO_CLK_DISABLE -#define __HAL_RCC_SDMMC1_IS_CLK_ENABLED __HAL_RCC_SDIO_IS_CLK_ENABLED -#define __HAL_RCC_SDMMC1_IS_CLK_DISABLED __HAL_RCC_SDIO_IS_CLK_DISABLED -#define Sdmmc1ClockSelection SdioClockSelection -#define RCC_PERIPHCLK_SDMMC1 RCC_PERIPHCLK_SDIO -#define RCC_SDMMC1CLKSOURCE_CLK48 RCC_SDIOCLKSOURCE_CK48 -#define RCC_SDMMC1CLKSOURCE_SYSCLK RCC_SDIOCLKSOURCE_SYSCLK -#define __HAL_RCC_SDMMC1_CONFIG __HAL_RCC_SDIO_CONFIG -#define __HAL_RCC_GET_SDMMC1_SOURCE __HAL_RCC_GET_SDIO_SOURCE -#endif - -#if defined(STM32F7) || defined(STM32L4) -#define __HAL_RCC_SDIO_FORCE_RESET __HAL_RCC_SDMMC1_FORCE_RESET -#define __HAL_RCC_SDIO_RELEASE_RESET __HAL_RCC_SDMMC1_RELEASE_RESET -#define __HAL_RCC_SDIO_CLK_SLEEP_ENABLE __HAL_RCC_SDMMC1_CLK_SLEEP_ENABLE -#define __HAL_RCC_SDIO_CLK_SLEEP_DISABLE __HAL_RCC_SDMMC1_CLK_SLEEP_DISABLE -#define __HAL_RCC_SDIO_CLK_ENABLE __HAL_RCC_SDMMC1_CLK_ENABLE -#define __HAL_RCC_SDIO_CLK_DISABLE __HAL_RCC_SDMMC1_CLK_DISABLE -#define __HAL_RCC_SDIO_IS_CLK_ENABLED __HAL_RCC_SDMMC1_IS_CLK_ENABLED -#define __HAL_RCC_SDIO_IS_CLK_DISABLED __HAL_RCC_SDMMC1_IS_CLK_DISABLED -#define SdioClockSelection Sdmmc1ClockSelection -#define RCC_PERIPHCLK_SDIO RCC_PERIPHCLK_SDMMC1 -#define __HAL_RCC_SDIO_CONFIG __HAL_RCC_SDMMC1_CONFIG -#define __HAL_RCC_GET_SDIO_SOURCE __HAL_RCC_GET_SDMMC1_SOURCE -#endif - -#if defined(STM32F7) -#define RCC_SDIOCLKSOURCE_CLK48 RCC_SDMMC1CLKSOURCE_CLK48 -#define RCC_SDIOCLKSOURCE_SYSCLK RCC_SDMMC1CLKSOURCE_SYSCLK -#endif - -#if defined(STM32H7) -#define __HAL_RCC_USB_OTG_HS_CLK_ENABLE() __HAL_RCC_USB1_OTG_HS_CLK_ENABLE() -#define __HAL_RCC_USB_OTG_HS_ULPI_CLK_ENABLE() __HAL_RCC_USB1_OTG_HS_ULPI_CLK_ENABLE() -#define __HAL_RCC_USB_OTG_HS_CLK_DISABLE() __HAL_RCC_USB1_OTG_HS_CLK_DISABLE() -#define __HAL_RCC_USB_OTG_HS_ULPI_CLK_DISABLE() __HAL_RCC_USB1_OTG_HS_ULPI_CLK_DISABLE() -#define __HAL_RCC_USB_OTG_HS_FORCE_RESET() __HAL_RCC_USB1_OTG_HS_FORCE_RESET() -#define __HAL_RCC_USB_OTG_HS_RELEASE_RESET() __HAL_RCC_USB1_OTG_HS_RELEASE_RESET() -#define __HAL_RCC_USB_OTG_HS_CLK_SLEEP_ENABLE() __HAL_RCC_USB1_OTG_HS_CLK_SLEEP_ENABLE() -#define __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_ENABLE() __HAL_RCC_USB1_OTG_HS_ULPI_CLK_SLEEP_ENABLE() -#define __HAL_RCC_USB_OTG_HS_CLK_SLEEP_DISABLE() __HAL_RCC_USB1_OTG_HS_CLK_SLEEP_DISABLE() -#define __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_DISABLE() __HAL_RCC_USB1_OTG_HS_ULPI_CLK_SLEEP_DISABLE() - -#define __HAL_RCC_USB_OTG_FS_CLK_ENABLE() __HAL_RCC_USB2_OTG_FS_CLK_ENABLE() -#define __HAL_RCC_USB_OTG_FS_ULPI_CLK_ENABLE() __HAL_RCC_USB2_OTG_FS_ULPI_CLK_ENABLE() -#define __HAL_RCC_USB_OTG_FS_CLK_DISABLE() __HAL_RCC_USB2_OTG_FS_CLK_DISABLE() -#define __HAL_RCC_USB_OTG_FS_ULPI_CLK_DISABLE() __HAL_RCC_USB2_OTG_FS_ULPI_CLK_DISABLE() -#define __HAL_RCC_USB_OTG_FS_FORCE_RESET() __HAL_RCC_USB2_OTG_FS_FORCE_RESET() -#define __HAL_RCC_USB_OTG_FS_RELEASE_RESET() __HAL_RCC_USB2_OTG_FS_RELEASE_RESET() -#define __HAL_RCC_USB_OTG_FS_CLK_SLEEP_ENABLE() __HAL_RCC_USB2_OTG_FS_CLK_SLEEP_ENABLE() -#define __HAL_RCC_USB_OTG_FS_ULPI_CLK_SLEEP_ENABLE() __HAL_RCC_USB2_OTG_FS_ULPI_CLK_SLEEP_ENABLE() -#define __HAL_RCC_USB_OTG_FS_CLK_SLEEP_DISABLE() __HAL_RCC_USB2_OTG_FS_CLK_SLEEP_DISABLE() -#define __HAL_RCC_USB_OTG_FS_ULPI_CLK_SLEEP_DISABLE() __HAL_RCC_USB2_OTG_FS_ULPI_CLK_SLEEP_DISABLE() -#endif - -#define __HAL_RCC_I2SCLK __HAL_RCC_I2S_CONFIG -#define __HAL_RCC_I2SCLK_CONFIG __HAL_RCC_I2S_CONFIG - -#define __RCC_PLLSRC RCC_GET_PLL_OSCSOURCE - -#define IS_RCC_MSIRANGE IS_RCC_MSI_CLOCK_RANGE -#define IS_RCC_RTCCLK_SOURCE IS_RCC_RTCCLKSOURCE -#define IS_RCC_SYSCLK_DIV IS_RCC_HCLK -#define IS_RCC_HCLK_DIV IS_RCC_PCLK -#define IS_RCC_PERIPHCLK IS_RCC_PERIPHCLOCK - -#define RCC_IT_HSI14 RCC_IT_HSI14RDY - -#define RCC_IT_CSSLSE RCC_IT_LSECSS -#define RCC_IT_CSSHSE RCC_IT_CSS - -#define RCC_PLLMUL_3 RCC_PLL_MUL3 -#define RCC_PLLMUL_4 RCC_PLL_MUL4 -#define RCC_PLLMUL_6 RCC_PLL_MUL6 -#define RCC_PLLMUL_8 RCC_PLL_MUL8 -#define RCC_PLLMUL_12 RCC_PLL_MUL12 -#define RCC_PLLMUL_16 RCC_PLL_MUL16 -#define RCC_PLLMUL_24 RCC_PLL_MUL24 -#define RCC_PLLMUL_32 RCC_PLL_MUL32 -#define RCC_PLLMUL_48 RCC_PLL_MUL48 - -#define RCC_PLLDIV_2 RCC_PLL_DIV2 -#define RCC_PLLDIV_3 RCC_PLL_DIV3 -#define RCC_PLLDIV_4 RCC_PLL_DIV4 - -#define IS_RCC_MCOSOURCE IS_RCC_MCO1SOURCE -#define __HAL_RCC_MCO_CONFIG __HAL_RCC_MCO1_CONFIG -#define RCC_MCO_NODIV RCC_MCODIV_1 -#define RCC_MCO_DIV1 RCC_MCODIV_1 -#define RCC_MCO_DIV2 RCC_MCODIV_2 -#define RCC_MCO_DIV4 RCC_MCODIV_4 -#define RCC_MCO_DIV8 RCC_MCODIV_8 -#define RCC_MCO_DIV16 RCC_MCODIV_16 -#define RCC_MCO_DIV32 RCC_MCODIV_32 -#define RCC_MCO_DIV64 RCC_MCODIV_64 -#define RCC_MCO_DIV128 RCC_MCODIV_128 -#define RCC_MCOSOURCE_NONE RCC_MCO1SOURCE_NOCLOCK -#define RCC_MCOSOURCE_LSI RCC_MCO1SOURCE_LSI -#define RCC_MCOSOURCE_LSE RCC_MCO1SOURCE_LSE -#define RCC_MCOSOURCE_SYSCLK RCC_MCO1SOURCE_SYSCLK -#define RCC_MCOSOURCE_HSI RCC_MCO1SOURCE_HSI -#define RCC_MCOSOURCE_HSI14 RCC_MCO1SOURCE_HSI14 -#define RCC_MCOSOURCE_HSI48 RCC_MCO1SOURCE_HSI48 -#define RCC_MCOSOURCE_HSE RCC_MCO1SOURCE_HSE -#define RCC_MCOSOURCE_PLLCLK_DIV1 RCC_MCO1SOURCE_PLLCLK -#define RCC_MCOSOURCE_PLLCLK_NODIV RCC_MCO1SOURCE_PLLCLK -#define RCC_MCOSOURCE_PLLCLK_DIV2 RCC_MCO1SOURCE_PLLCLK_DIV2 - -#if defined(STM32L4) || defined(STM32WB) || defined(STM32G0) || defined(STM32G4) || defined(STM32L5) || defined(STM32WL) || defined(STM32C0) -#define RCC_RTCCLKSOURCE_NO_CLK RCC_RTCCLKSOURCE_NONE -#else -#define RCC_RTCCLKSOURCE_NONE RCC_RTCCLKSOURCE_NO_CLK -#endif - -#define RCC_USBCLK_PLLSAI1 RCC_USBCLKSOURCE_PLLSAI1 -#define RCC_USBCLK_PLL RCC_USBCLKSOURCE_PLL -#define RCC_USBCLK_MSI RCC_USBCLKSOURCE_MSI -#define RCC_USBCLKSOURCE_PLLCLK RCC_USBCLKSOURCE_PLL -#define RCC_USBPLLCLK_DIV1 RCC_USBCLKSOURCE_PLL -#define RCC_USBPLLCLK_DIV1_5 RCC_USBCLKSOURCE_PLL_DIV1_5 -#define RCC_USBPLLCLK_DIV2 RCC_USBCLKSOURCE_PLL_DIV2 -#define RCC_USBPLLCLK_DIV3 RCC_USBCLKSOURCE_PLL_DIV3 - -#define HSION_BitNumber RCC_HSION_BIT_NUMBER -#define HSION_BITNUMBER RCC_HSION_BIT_NUMBER -#define HSEON_BitNumber RCC_HSEON_BIT_NUMBER -#define HSEON_BITNUMBER RCC_HSEON_BIT_NUMBER -#define MSION_BITNUMBER RCC_MSION_BIT_NUMBER -#define CSSON_BitNumber RCC_CSSON_BIT_NUMBER -#define CSSON_BITNUMBER RCC_CSSON_BIT_NUMBER -#define PLLON_BitNumber RCC_PLLON_BIT_NUMBER -#define PLLON_BITNUMBER RCC_PLLON_BIT_NUMBER -#define PLLI2SON_BitNumber RCC_PLLI2SON_BIT_NUMBER -#define I2SSRC_BitNumber RCC_I2SSRC_BIT_NUMBER -#define RTCEN_BitNumber RCC_RTCEN_BIT_NUMBER -#define RTCEN_BITNUMBER RCC_RTCEN_BIT_NUMBER -#define BDRST_BitNumber RCC_BDRST_BIT_NUMBER -#define BDRST_BITNUMBER RCC_BDRST_BIT_NUMBER -#define RTCRST_BITNUMBER RCC_RTCRST_BIT_NUMBER -#define LSION_BitNumber RCC_LSION_BIT_NUMBER -#define LSION_BITNUMBER RCC_LSION_BIT_NUMBER -#define LSEON_BitNumber RCC_LSEON_BIT_NUMBER -#define LSEON_BITNUMBER RCC_LSEON_BIT_NUMBER -#define LSEBYP_BITNUMBER RCC_LSEBYP_BIT_NUMBER -#define PLLSAION_BitNumber RCC_PLLSAION_BIT_NUMBER -#define TIMPRE_BitNumber RCC_TIMPRE_BIT_NUMBER -#define RMVF_BitNumber RCC_RMVF_BIT_NUMBER -#define RMVF_BITNUMBER RCC_RMVF_BIT_NUMBER -#define RCC_CR2_HSI14TRIM_BitNumber RCC_HSI14TRIM_BIT_NUMBER -#define CR_BYTE2_ADDRESS RCC_CR_BYTE2_ADDRESS -#define CIR_BYTE1_ADDRESS RCC_CIR_BYTE1_ADDRESS -#define CIR_BYTE2_ADDRESS RCC_CIR_BYTE2_ADDRESS -#define BDCR_BYTE0_ADDRESS RCC_BDCR_BYTE0_ADDRESS -#define DBP_TIMEOUT_VALUE RCC_DBP_TIMEOUT_VALUE -#define LSE_TIMEOUT_VALUE RCC_LSE_TIMEOUT_VALUE - -#define CR_HSION_BB RCC_CR_HSION_BB -#define CR_CSSON_BB RCC_CR_CSSON_BB -#define CR_PLLON_BB RCC_CR_PLLON_BB -#define CR_PLLI2SON_BB RCC_CR_PLLI2SON_BB -#define CR_MSION_BB RCC_CR_MSION_BB -#define CSR_LSION_BB RCC_CSR_LSION_BB -#define CSR_LSEON_BB RCC_CSR_LSEON_BB -#define CSR_LSEBYP_BB RCC_CSR_LSEBYP_BB -#define CSR_RTCEN_BB RCC_CSR_RTCEN_BB -#define CSR_RTCRST_BB RCC_CSR_RTCRST_BB -#define CFGR_I2SSRC_BB RCC_CFGR_I2SSRC_BB -#define BDCR_RTCEN_BB RCC_BDCR_RTCEN_BB -#define BDCR_BDRST_BB RCC_BDCR_BDRST_BB -#define CR_HSEON_BB RCC_CR_HSEON_BB -#define CSR_RMVF_BB RCC_CSR_RMVF_BB -#define CR_PLLSAION_BB RCC_CR_PLLSAION_BB -#define DCKCFGR_TIMPRE_BB RCC_DCKCFGR_TIMPRE_BB - -#define __HAL_RCC_CRS_ENABLE_FREQ_ERROR_COUNTER __HAL_RCC_CRS_FREQ_ERROR_COUNTER_ENABLE -#define __HAL_RCC_CRS_DISABLE_FREQ_ERROR_COUNTER __HAL_RCC_CRS_FREQ_ERROR_COUNTER_DISABLE -#define __HAL_RCC_CRS_ENABLE_AUTOMATIC_CALIB __HAL_RCC_CRS_AUTOMATIC_CALIB_ENABLE -#define __HAL_RCC_CRS_DISABLE_AUTOMATIC_CALIB __HAL_RCC_CRS_AUTOMATIC_CALIB_DISABLE -#define __HAL_RCC_CRS_CALCULATE_RELOADVALUE __HAL_RCC_CRS_RELOADVALUE_CALCULATE - -#define __HAL_RCC_GET_IT_SOURCE __HAL_RCC_GET_IT - -#define RCC_CRS_SYNCWARM RCC_CRS_SYNCWARN -#define RCC_CRS_TRIMOV RCC_CRS_TRIMOVF - -#define RCC_PERIPHCLK_CK48 RCC_PERIPHCLK_CLK48 -#define RCC_CK48CLKSOURCE_PLLQ RCC_CLK48CLKSOURCE_PLLQ -#define RCC_CK48CLKSOURCE_PLLSAIP RCC_CLK48CLKSOURCE_PLLSAIP -#define RCC_CK48CLKSOURCE_PLLI2SQ RCC_CLK48CLKSOURCE_PLLI2SQ -#define IS_RCC_CK48CLKSOURCE IS_RCC_CLK48CLKSOURCE -#define RCC_SDIOCLKSOURCE_CK48 RCC_SDIOCLKSOURCE_CLK48 - -#define __HAL_RCC_DFSDM_CLK_ENABLE __HAL_RCC_DFSDM1_CLK_ENABLE -#define __HAL_RCC_DFSDM_CLK_DISABLE __HAL_RCC_DFSDM1_CLK_DISABLE -#define __HAL_RCC_DFSDM_IS_CLK_ENABLED __HAL_RCC_DFSDM1_IS_CLK_ENABLED -#define __HAL_RCC_DFSDM_IS_CLK_DISABLED __HAL_RCC_DFSDM1_IS_CLK_DISABLED -#define __HAL_RCC_DFSDM_FORCE_RESET __HAL_RCC_DFSDM1_FORCE_RESET -#define __HAL_RCC_DFSDM_RELEASE_RESET __HAL_RCC_DFSDM1_RELEASE_RESET -#define __HAL_RCC_DFSDM_CLK_SLEEP_ENABLE __HAL_RCC_DFSDM1_CLK_SLEEP_ENABLE -#define __HAL_RCC_DFSDM_CLK_SLEEP_DISABLE __HAL_RCC_DFSDM1_CLK_SLEEP_DISABLE -#define __HAL_RCC_DFSDM_IS_CLK_SLEEP_ENABLED __HAL_RCC_DFSDM1_IS_CLK_SLEEP_ENABLED -#define __HAL_RCC_DFSDM_IS_CLK_SLEEP_DISABLED __HAL_RCC_DFSDM1_IS_CLK_SLEEP_DISABLED -#define DfsdmClockSelection Dfsdm1ClockSelection -#define RCC_PERIPHCLK_DFSDM RCC_PERIPHCLK_DFSDM1 -#define RCC_DFSDMCLKSOURCE_PCLK RCC_DFSDM1CLKSOURCE_PCLK2 -#define RCC_DFSDMCLKSOURCE_SYSCLK RCC_DFSDM1CLKSOURCE_SYSCLK -#define __HAL_RCC_DFSDM_CONFIG __HAL_RCC_DFSDM1_CONFIG -#define __HAL_RCC_GET_DFSDM_SOURCE __HAL_RCC_GET_DFSDM1_SOURCE -#define RCC_DFSDM1CLKSOURCE_PCLK RCC_DFSDM1CLKSOURCE_PCLK2 -#define RCC_SWPMI1CLKSOURCE_PCLK RCC_SWPMI1CLKSOURCE_PCLK1 -#define RCC_LPTIM1CLKSOURCE_PCLK RCC_LPTIM1CLKSOURCE_PCLK1 -#define RCC_LPTIM2CLKSOURCE_PCLK RCC_LPTIM2CLKSOURCE_PCLK1 - -#define RCC_DFSDM1AUDIOCLKSOURCE_I2SAPB1 RCC_DFSDM1AUDIOCLKSOURCE_I2S1 -#define RCC_DFSDM1AUDIOCLKSOURCE_I2SAPB2 RCC_DFSDM1AUDIOCLKSOURCE_I2S2 -#define RCC_DFSDM2AUDIOCLKSOURCE_I2SAPB1 RCC_DFSDM2AUDIOCLKSOURCE_I2S1 -#define RCC_DFSDM2AUDIOCLKSOURCE_I2SAPB2 RCC_DFSDM2AUDIOCLKSOURCE_I2S2 -#define RCC_DFSDM1CLKSOURCE_APB2 RCC_DFSDM1CLKSOURCE_PCLK2 -#define RCC_DFSDM2CLKSOURCE_APB2 RCC_DFSDM2CLKSOURCE_PCLK2 -#define RCC_FMPI2C1CLKSOURCE_APB RCC_FMPI2C1CLKSOURCE_PCLK1 -#if defined(STM32U5) -#define MSIKPLLModeSEL RCC_MSIKPLL_MODE_SEL -#define MSISPLLModeSEL RCC_MSISPLL_MODE_SEL -#define __HAL_RCC_AHB21_CLK_DISABLE __HAL_RCC_AHB2_1_CLK_DISABLE -#define __HAL_RCC_AHB22_CLK_DISABLE __HAL_RCC_AHB2_2_CLK_DISABLE -#define __HAL_RCC_AHB1_CLK_Disable_Clear __HAL_RCC_AHB1_CLK_ENABLE -#define __HAL_RCC_AHB21_CLK_Disable_Clear __HAL_RCC_AHB2_1_CLK_ENABLE -#define __HAL_RCC_AHB22_CLK_Disable_Clear __HAL_RCC_AHB2_2_CLK_ENABLE -#define __HAL_RCC_AHB3_CLK_Disable_Clear __HAL_RCC_AHB3_CLK_ENABLE -#define __HAL_RCC_APB1_CLK_Disable_Clear __HAL_RCC_APB1_CLK_ENABLE -#define __HAL_RCC_APB2_CLK_Disable_Clear __HAL_RCC_APB2_CLK_ENABLE -#define __HAL_RCC_APB3_CLK_Disable_Clear __HAL_RCC_APB3_CLK_ENABLE -#define IS_RCC_MSIPLLModeSelection IS_RCC_MSIPLLMODE_SELECT -#define RCC_PERIPHCLK_CLK48 RCC_PERIPHCLK_ICLK -#define RCC_CLK48CLKSOURCE_HSI48 RCC_ICLK_CLKSOURCE_HSI48 -#define RCC_CLK48CLKSOURCE_PLL2 RCC_ICLK_CLKSOURCE_PLL2 -#define RCC_CLK48CLKSOURCE_PLL1 RCC_ICLK_CLKSOURCE_PLL1 -#define RCC_CLK48CLKSOURCE_MSIK RCC_ICLK_CLKSOURCE_MSIK -#define __HAL_RCC_ADC1_CLK_ENABLE __HAL_RCC_ADC12_CLK_ENABLE -#define __HAL_RCC_ADC1_CLK_DISABLE __HAL_RCC_ADC12_CLK_DISABLE -#define __HAL_RCC_ADC1_IS_CLK_ENABLED __HAL_RCC_ADC12_IS_CLK_ENABLED -#define __HAL_RCC_ADC1_IS_CLK_DISABLED __HAL_RCC_ADC12_IS_CLK_DISABLED -#define __HAL_RCC_ADC1_FORCE_RESET __HAL_RCC_ADC12_FORCE_RESET -#define __HAL_RCC_ADC1_RELEASE_RESET __HAL_RCC_ADC12_RELEASE_RESET -#define __HAL_RCC_ADC1_CLK_SLEEP_ENABLE __HAL_RCC_ADC12_CLK_SLEEP_ENABLE -#define __HAL_RCC_ADC1_CLK_SLEEP_DISABLE __HAL_RCC_ADC12_CLK_SLEEP_DISABLE -#define __HAL_RCC_GET_CLK48_SOURCE __HAL_RCC_GET_ICLK_SOURCE -#define __HAL_RCC_PLLFRACN_ENABLE __HAL_RCC_PLL_FRACN_ENABLE -#define __HAL_RCC_PLLFRACN_DISABLE __HAL_RCC_PLL_FRACN_DISABLE -#define __HAL_RCC_PLLFRACN_CONFIG __HAL_RCC_PLL_FRACN_CONFIG -#define IS_RCC_PLLFRACN_VALUE IS_RCC_PLL_FRACN_VALUE -#endif /* STM32U5 */ - -/** - * @} - */ - -/** @defgroup HAL_RNG_Aliased_Macros HAL RNG Aliased Macros maintained for legacy purpose - * @{ - */ -#define HAL_RNG_ReadyCallback(__HANDLE__) HAL_RNG_ReadyDataCallback((__HANDLE__), uint32_t random32bit) - -/** - * @} - */ - -/** @defgroup HAL_RTC_Aliased_Macros HAL RTC Aliased Macros maintained for legacy purpose - * @{ - */ -#if defined (STM32G0) || defined (STM32L5) || defined (STM32L412xx) || defined (STM32L422xx) || defined (STM32L4P5xx)|| \ - defined (STM32L4Q5xx) || defined (STM32G4) || defined (STM32WL) || defined (STM32U5) || \ - defined (STM32C0) -#else -#define __HAL_RTC_CLEAR_FLAG __HAL_RTC_EXTI_CLEAR_FLAG -#endif -#define __HAL_RTC_DISABLE_IT __HAL_RTC_EXTI_DISABLE_IT -#define __HAL_RTC_ENABLE_IT __HAL_RTC_EXTI_ENABLE_IT - -#if defined (STM32F1) -#define __HAL_RTC_EXTI_CLEAR_FLAG(RTC_EXTI_LINE_ALARM_EVENT) __HAL_RTC_ALARM_EXTI_CLEAR_FLAG() - -#define __HAL_RTC_EXTI_ENABLE_IT(RTC_EXTI_LINE_ALARM_EVENT) __HAL_RTC_ALARM_EXTI_ENABLE_IT() - -#define __HAL_RTC_EXTI_DISABLE_IT(RTC_EXTI_LINE_ALARM_EVENT) __HAL_RTC_ALARM_EXTI_DISABLE_IT() - -#define __HAL_RTC_EXTI_GET_FLAG(RTC_EXTI_LINE_ALARM_EVENT) __HAL_RTC_ALARM_EXTI_GET_FLAG() - -#define __HAL_RTC_EXTI_GENERATE_SWIT(RTC_EXTI_LINE_ALARM_EVENT) __HAL_RTC_ALARM_EXTI_GENERATE_SWIT() -#else -#define __HAL_RTC_EXTI_CLEAR_FLAG(__EXTI_LINE__) (((__EXTI_LINE__) == RTC_EXTI_LINE_ALARM_EVENT) ? __HAL_RTC_ALARM_EXTI_CLEAR_FLAG() : \ - (((__EXTI_LINE__) == RTC_EXTI_LINE_WAKEUPTIMER_EVENT) ? __HAL_RTC_WAKEUPTIMER_EXTI_CLEAR_FLAG() : \ - __HAL_RTC_TAMPER_TIMESTAMP_EXTI_CLEAR_FLAG())) -#define __HAL_RTC_EXTI_ENABLE_IT(__EXTI_LINE__) (((__EXTI_LINE__) == RTC_EXTI_LINE_ALARM_EVENT) ? __HAL_RTC_ALARM_EXTI_ENABLE_IT() : \ - (((__EXTI_LINE__) == RTC_EXTI_LINE_WAKEUPTIMER_EVENT) ? __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_IT() : \ - __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_IT())) -#define __HAL_RTC_EXTI_DISABLE_IT(__EXTI_LINE__) (((__EXTI_LINE__) == RTC_EXTI_LINE_ALARM_EVENT) ? __HAL_RTC_ALARM_EXTI_DISABLE_IT() : \ - (((__EXTI_LINE__) == RTC_EXTI_LINE_WAKEUPTIMER_EVENT) ? __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_IT() : \ - __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_IT())) -#define __HAL_RTC_EXTI_GET_FLAG(__EXTI_LINE__) (((__EXTI_LINE__) == RTC_EXTI_LINE_ALARM_EVENT) ? __HAL_RTC_ALARM_EXTI_GET_FLAG() : \ - (((__EXTI_LINE__) == RTC_EXTI_LINE_WAKEUPTIMER_EVENT) ? __HAL_RTC_WAKEUPTIMER_EXTI_GET_FLAG() : \ - __HAL_RTC_TAMPER_TIMESTAMP_EXTI_GET_FLAG())) -#define __HAL_RTC_EXTI_GENERATE_SWIT(__EXTI_LINE__) (((__EXTI_LINE__) == RTC_EXTI_LINE_ALARM_EVENT) ? __HAL_RTC_ALARM_EXTI_GENERATE_SWIT() : \ - (((__EXTI_LINE__) == RTC_EXTI_LINE_WAKEUPTIMER_EVENT) ? __HAL_RTC_WAKEUPTIMER_EXTI_GENERATE_SWIT() : \ - __HAL_RTC_TAMPER_TIMESTAMP_EXTI_GENERATE_SWIT())) -#endif /* STM32F1 */ - -#define IS_ALARM IS_RTC_ALARM -#define IS_ALARM_MASK IS_RTC_ALARM_MASK -#define IS_TAMPER IS_RTC_TAMPER -#define IS_TAMPER_ERASE_MODE IS_RTC_TAMPER_ERASE_MODE -#define IS_TAMPER_FILTER IS_RTC_TAMPER_FILTER -#define IS_TAMPER_INTERRUPT IS_RTC_TAMPER_INTERRUPT -#define IS_TAMPER_MASKFLAG_STATE IS_RTC_TAMPER_MASKFLAG_STATE -#define IS_TAMPER_PRECHARGE_DURATION IS_RTC_TAMPER_PRECHARGE_DURATION -#define IS_TAMPER_PULLUP_STATE IS_RTC_TAMPER_PULLUP_STATE -#define IS_TAMPER_SAMPLING_FREQ IS_RTC_TAMPER_SAMPLING_FREQ -#define IS_TAMPER_TIMESTAMPONTAMPER_DETECTION IS_RTC_TAMPER_TIMESTAMPONTAMPER_DETECTION -#define IS_TAMPER_TRIGGER IS_RTC_TAMPER_TRIGGER -#define IS_WAKEUP_CLOCK IS_RTC_WAKEUP_CLOCK -#define IS_WAKEUP_COUNTER IS_RTC_WAKEUP_COUNTER - -#define __RTC_WRITEPROTECTION_ENABLE __HAL_RTC_WRITEPROTECTION_ENABLE -#define __RTC_WRITEPROTECTION_DISABLE __HAL_RTC_WRITEPROTECTION_DISABLE - -/** - * @} - */ - -/** @defgroup HAL_SD_Aliased_Macros HAL SD/MMC Aliased Macros maintained for legacy purpose - * @{ - */ - -#define SD_OCR_CID_CSD_OVERWRIETE SD_OCR_CID_CSD_OVERWRITE -#define SD_CMD_SD_APP_STAUS SD_CMD_SD_APP_STATUS - -#if !defined(STM32F1) && !defined(STM32F2) && !defined(STM32F4) && !defined(STM32L1) -#define eMMC_HIGH_VOLTAGE_RANGE EMMC_HIGH_VOLTAGE_RANGE -#define eMMC_DUAL_VOLTAGE_RANGE EMMC_DUAL_VOLTAGE_RANGE -#define eMMC_LOW_VOLTAGE_RANGE EMMC_LOW_VOLTAGE_RANGE - -#define SDMMC_NSpeed_CLK_DIV SDMMC_NSPEED_CLK_DIV -#define SDMMC_HSpeed_CLK_DIV SDMMC_HSPEED_CLK_DIV -#endif - -#if defined(STM32F4) || defined(STM32F2) -#define SD_SDMMC_DISABLED SD_SDIO_DISABLED -#define SD_SDMMC_FUNCTION_BUSY SD_SDIO_FUNCTION_BUSY -#define SD_SDMMC_FUNCTION_FAILED SD_SDIO_FUNCTION_FAILED -#define SD_SDMMC_UNKNOWN_FUNCTION SD_SDIO_UNKNOWN_FUNCTION -#define SD_CMD_SDMMC_SEN_OP_COND SD_CMD_SDIO_SEN_OP_COND -#define SD_CMD_SDMMC_RW_DIRECT SD_CMD_SDIO_RW_DIRECT -#define SD_CMD_SDMMC_RW_EXTENDED SD_CMD_SDIO_RW_EXTENDED -#define __HAL_SD_SDMMC_ENABLE __HAL_SD_SDIO_ENABLE -#define __HAL_SD_SDMMC_DISABLE __HAL_SD_SDIO_DISABLE -#define __HAL_SD_SDMMC_DMA_ENABLE __HAL_SD_SDIO_DMA_ENABLE -#define __HAL_SD_SDMMC_DMA_DISABLE __HAL_SD_SDIO_DMA_DISABL -#define __HAL_SD_SDMMC_ENABLE_IT __HAL_SD_SDIO_ENABLE_IT -#define __HAL_SD_SDMMC_DISABLE_IT __HAL_SD_SDIO_DISABLE_IT -#define __HAL_SD_SDMMC_GET_FLAG __HAL_SD_SDIO_GET_FLAG -#define __HAL_SD_SDMMC_CLEAR_FLAG __HAL_SD_SDIO_CLEAR_FLAG -#define __HAL_SD_SDMMC_GET_IT __HAL_SD_SDIO_GET_IT -#define __HAL_SD_SDMMC_CLEAR_IT __HAL_SD_SDIO_CLEAR_IT -#define SDMMC_STATIC_FLAGS SDIO_STATIC_FLAGS -#define SDMMC_CMD0TIMEOUT SDIO_CMD0TIMEOUT -#define SD_SDMMC_SEND_IF_COND SD_SDIO_SEND_IF_COND -/* alias CMSIS */ -#define SDMMC1_IRQn SDIO_IRQn -#define SDMMC1_IRQHandler SDIO_IRQHandler -#endif - -#if defined(STM32F7) || defined(STM32L4) -#define SD_SDIO_DISABLED SD_SDMMC_DISABLED -#define SD_SDIO_FUNCTION_BUSY SD_SDMMC_FUNCTION_BUSY -#define SD_SDIO_FUNCTION_FAILED SD_SDMMC_FUNCTION_FAILED -#define SD_SDIO_UNKNOWN_FUNCTION SD_SDMMC_UNKNOWN_FUNCTION -#define SD_CMD_SDIO_SEN_OP_COND SD_CMD_SDMMC_SEN_OP_COND -#define SD_CMD_SDIO_RW_DIRECT SD_CMD_SDMMC_RW_DIRECT -#define SD_CMD_SDIO_RW_EXTENDED SD_CMD_SDMMC_RW_EXTENDED -#define __HAL_SD_SDIO_ENABLE __HAL_SD_SDMMC_ENABLE -#define __HAL_SD_SDIO_DISABLE __HAL_SD_SDMMC_DISABLE -#define __HAL_SD_SDIO_DMA_ENABLE __HAL_SD_SDMMC_DMA_ENABLE -#define __HAL_SD_SDIO_DMA_DISABL __HAL_SD_SDMMC_DMA_DISABLE -#define __HAL_SD_SDIO_ENABLE_IT __HAL_SD_SDMMC_ENABLE_IT -#define __HAL_SD_SDIO_DISABLE_IT __HAL_SD_SDMMC_DISABLE_IT -#define __HAL_SD_SDIO_GET_FLAG __HAL_SD_SDMMC_GET_FLAG -#define __HAL_SD_SDIO_CLEAR_FLAG __HAL_SD_SDMMC_CLEAR_FLAG -#define __HAL_SD_SDIO_GET_IT __HAL_SD_SDMMC_GET_IT -#define __HAL_SD_SDIO_CLEAR_IT __HAL_SD_SDMMC_CLEAR_IT -#define SDIO_STATIC_FLAGS SDMMC_STATIC_FLAGS -#define SDIO_CMD0TIMEOUT SDMMC_CMD0TIMEOUT -#define SD_SDIO_SEND_IF_COND SD_SDMMC_SEND_IF_COND -/* alias CMSIS for compatibilities */ -#define SDIO_IRQn SDMMC1_IRQn -#define SDIO_IRQHandler SDMMC1_IRQHandler -#endif - -#if defined(STM32F7) || defined(STM32F4) || defined(STM32F2) || defined(STM32L4) || defined(STM32H7) -#define HAL_SD_CardCIDTypedef HAL_SD_CardCIDTypeDef -#define HAL_SD_CardCSDTypedef HAL_SD_CardCSDTypeDef -#define HAL_SD_CardStatusTypedef HAL_SD_CardStatusTypeDef -#define HAL_SD_CardStateTypedef HAL_SD_CardStateTypeDef -#endif - -#if defined(STM32H7) || defined(STM32L5) -#define HAL_MMCEx_Read_DMADoubleBuffer0CpltCallback HAL_MMCEx_Read_DMADoubleBuf0CpltCallback -#define HAL_MMCEx_Read_DMADoubleBuffer1CpltCallback HAL_MMCEx_Read_DMADoubleBuf1CpltCallback -#define HAL_MMCEx_Write_DMADoubleBuffer0CpltCallback HAL_MMCEx_Write_DMADoubleBuf0CpltCallback -#define HAL_MMCEx_Write_DMADoubleBuffer1CpltCallback HAL_MMCEx_Write_DMADoubleBuf1CpltCallback -#define HAL_SDEx_Read_DMADoubleBuffer0CpltCallback HAL_SDEx_Read_DMADoubleBuf0CpltCallback -#define HAL_SDEx_Read_DMADoubleBuffer1CpltCallback HAL_SDEx_Read_DMADoubleBuf1CpltCallback -#define HAL_SDEx_Write_DMADoubleBuffer0CpltCallback HAL_SDEx_Write_DMADoubleBuf0CpltCallback -#define HAL_SDEx_Write_DMADoubleBuffer1CpltCallback HAL_SDEx_Write_DMADoubleBuf1CpltCallback -#define HAL_SD_DriveTransciver_1_8V_Callback HAL_SD_DriveTransceiver_1_8V_Callback -#endif -/** - * @} - */ - -/** @defgroup HAL_SMARTCARD_Aliased_Macros HAL SMARTCARD Aliased Macros maintained for legacy purpose - * @{ - */ - -#define __SMARTCARD_ENABLE_IT __HAL_SMARTCARD_ENABLE_IT -#define __SMARTCARD_DISABLE_IT __HAL_SMARTCARD_DISABLE_IT -#define __SMARTCARD_ENABLE __HAL_SMARTCARD_ENABLE -#define __SMARTCARD_DISABLE __HAL_SMARTCARD_DISABLE -#define __SMARTCARD_DMA_REQUEST_ENABLE __HAL_SMARTCARD_DMA_REQUEST_ENABLE -#define __SMARTCARD_DMA_REQUEST_DISABLE __HAL_SMARTCARD_DMA_REQUEST_DISABLE - -#define __HAL_SMARTCARD_GETCLOCKSOURCE SMARTCARD_GETCLOCKSOURCE -#define __SMARTCARD_GETCLOCKSOURCE SMARTCARD_GETCLOCKSOURCE - -#define IS_SMARTCARD_ONEBIT_SAMPLING IS_SMARTCARD_ONE_BIT_SAMPLE - -/** - * @} - */ - -/** @defgroup HAL_SMBUS_Aliased_Macros HAL SMBUS Aliased Macros maintained for legacy purpose - * @{ - */ -#define __HAL_SMBUS_RESET_CR1 SMBUS_RESET_CR1 -#define __HAL_SMBUS_RESET_CR2 SMBUS_RESET_CR2 -#define __HAL_SMBUS_GENERATE_START SMBUS_GENERATE_START -#define __HAL_SMBUS_GET_ADDR_MATCH SMBUS_GET_ADDR_MATCH -#define __HAL_SMBUS_GET_DIR SMBUS_GET_DIR -#define __HAL_SMBUS_GET_STOP_MODE SMBUS_GET_STOP_MODE -#define __HAL_SMBUS_GET_PEC_MODE SMBUS_GET_PEC_MODE -#define __HAL_SMBUS_GET_ALERT_ENABLED SMBUS_GET_ALERT_ENABLED -/** - * @} - */ - -/** @defgroup HAL_SPI_Aliased_Macros HAL SPI Aliased Macros maintained for legacy purpose - * @{ - */ - -#define __HAL_SPI_1LINE_TX SPI_1LINE_TX -#define __HAL_SPI_1LINE_RX SPI_1LINE_RX -#define __HAL_SPI_RESET_CRC SPI_RESET_CRC - -/** - * @} - */ - -/** @defgroup HAL_UART_Aliased_Macros HAL UART Aliased Macros maintained for legacy purpose - * @{ - */ - -#define __HAL_UART_GETCLOCKSOURCE UART_GETCLOCKSOURCE -#define __HAL_UART_MASK_COMPUTATION UART_MASK_COMPUTATION -#define __UART_GETCLOCKSOURCE UART_GETCLOCKSOURCE -#define __UART_MASK_COMPUTATION UART_MASK_COMPUTATION - -#define IS_UART_WAKEUPMETHODE IS_UART_WAKEUPMETHOD - -#define IS_UART_ONEBIT_SAMPLE IS_UART_ONE_BIT_SAMPLE -#define IS_UART_ONEBIT_SAMPLING IS_UART_ONE_BIT_SAMPLE - -/** - * @} - */ - - -/** @defgroup HAL_USART_Aliased_Macros HAL USART Aliased Macros maintained for legacy purpose - * @{ - */ - -#define __USART_ENABLE_IT __HAL_USART_ENABLE_IT -#define __USART_DISABLE_IT __HAL_USART_DISABLE_IT -#define __USART_ENABLE __HAL_USART_ENABLE -#define __USART_DISABLE __HAL_USART_DISABLE - -#define __HAL_USART_GETCLOCKSOURCE USART_GETCLOCKSOURCE -#define __USART_GETCLOCKSOURCE USART_GETCLOCKSOURCE - -#if defined(STM32F0) || defined(STM32F3) || defined(STM32F7) -#define USART_OVERSAMPLING_16 0x00000000U -#define USART_OVERSAMPLING_8 USART_CR1_OVER8 - -#define IS_USART_OVERSAMPLING(__SAMPLING__) (((__SAMPLING__) == USART_OVERSAMPLING_16) || \ - ((__SAMPLING__) == USART_OVERSAMPLING_8)) -#endif /* STM32F0 || STM32F3 || STM32F7 */ -/** - * @} - */ - -/** @defgroup HAL_USB_Aliased_Macros HAL USB Aliased Macros maintained for legacy purpose - * @{ - */ -#define USB_EXTI_LINE_WAKEUP USB_WAKEUP_EXTI_LINE - -#define USB_FS_EXTI_TRIGGER_RISING_EDGE USB_OTG_FS_WAKEUP_EXTI_RISING_EDGE -#define USB_FS_EXTI_TRIGGER_FALLING_EDGE USB_OTG_FS_WAKEUP_EXTI_FALLING_EDGE -#define USB_FS_EXTI_TRIGGER_BOTH_EDGE USB_OTG_FS_WAKEUP_EXTI_RISING_FALLING_EDGE -#define USB_FS_EXTI_LINE_WAKEUP USB_OTG_FS_WAKEUP_EXTI_LINE - -#define USB_HS_EXTI_TRIGGER_RISING_EDGE USB_OTG_HS_WAKEUP_EXTI_RISING_EDGE -#define USB_HS_EXTI_TRIGGER_FALLING_EDGE USB_OTG_HS_WAKEUP_EXTI_FALLING_EDGE -#define USB_HS_EXTI_TRIGGER_BOTH_EDGE USB_OTG_HS_WAKEUP_EXTI_RISING_FALLING_EDGE -#define USB_HS_EXTI_LINE_WAKEUP USB_OTG_HS_WAKEUP_EXTI_LINE - -#define __HAL_USB_EXTI_ENABLE_IT __HAL_USB_WAKEUP_EXTI_ENABLE_IT -#define __HAL_USB_EXTI_DISABLE_IT __HAL_USB_WAKEUP_EXTI_DISABLE_IT -#define __HAL_USB_EXTI_GET_FLAG __HAL_USB_WAKEUP_EXTI_GET_FLAG -#define __HAL_USB_EXTI_CLEAR_FLAG __HAL_USB_WAKEUP_EXTI_CLEAR_FLAG -#define __HAL_USB_EXTI_SET_RISING_EDGE_TRIGGER __HAL_USB_WAKEUP_EXTI_ENABLE_RISING_EDGE -#define __HAL_USB_EXTI_SET_FALLING_EDGE_TRIGGER __HAL_USB_WAKEUP_EXTI_ENABLE_FALLING_EDGE -#define __HAL_USB_EXTI_SET_FALLINGRISING_TRIGGER __HAL_USB_WAKEUP_EXTI_ENABLE_RISING_FALLING_EDGE - -#define __HAL_USB_FS_EXTI_ENABLE_IT __HAL_USB_OTG_FS_WAKEUP_EXTI_ENABLE_IT -#define __HAL_USB_FS_EXTI_DISABLE_IT __HAL_USB_OTG_FS_WAKEUP_EXTI_DISABLE_IT -#define __HAL_USB_FS_EXTI_GET_FLAG __HAL_USB_OTG_FS_WAKEUP_EXTI_GET_FLAG -#define __HAL_USB_FS_EXTI_CLEAR_FLAG __HAL_USB_OTG_FS_WAKEUP_EXTI_CLEAR_FLAG -#define __HAL_USB_FS_EXTI_SET_RISING_EGDE_TRIGGER __HAL_USB_OTG_FS_WAKEUP_EXTI_ENABLE_RISING_EDGE -#define __HAL_USB_FS_EXTI_SET_FALLING_EGDE_TRIGGER __HAL_USB_OTG_FS_WAKEUP_EXTI_ENABLE_FALLING_EDGE -#define __HAL_USB_FS_EXTI_SET_FALLINGRISING_TRIGGER __HAL_USB_OTG_FS_WAKEUP_EXTI_ENABLE_RISING_FALLING_EDGE -#define __HAL_USB_FS_EXTI_GENERATE_SWIT __HAL_USB_OTG_FS_WAKEUP_EXTI_GENERATE_SWIT - -#define __HAL_USB_HS_EXTI_ENABLE_IT __HAL_USB_OTG_HS_WAKEUP_EXTI_ENABLE_IT -#define __HAL_USB_HS_EXTI_DISABLE_IT __HAL_USB_OTG_HS_WAKEUP_EXTI_DISABLE_IT -#define __HAL_USB_HS_EXTI_GET_FLAG __HAL_USB_OTG_HS_WAKEUP_EXTI_GET_FLAG -#define __HAL_USB_HS_EXTI_CLEAR_FLAG __HAL_USB_OTG_HS_WAKEUP_EXTI_CLEAR_FLAG -#define __HAL_USB_HS_EXTI_SET_RISING_EGDE_TRIGGER __HAL_USB_OTG_HS_WAKEUP_EXTI_ENABLE_RISING_EDGE -#define __HAL_USB_HS_EXTI_SET_FALLING_EGDE_TRIGGER __HAL_USB_OTG_HS_WAKEUP_EXTI_ENABLE_FALLING_EDGE -#define __HAL_USB_HS_EXTI_SET_FALLINGRISING_TRIGGER __HAL_USB_OTG_HS_WAKEUP_EXTI_ENABLE_RISING_FALLING_EDGE -#define __HAL_USB_HS_EXTI_GENERATE_SWIT __HAL_USB_OTG_HS_WAKEUP_EXTI_GENERATE_SWIT - -#define HAL_PCD_ActiveRemoteWakeup HAL_PCD_ActivateRemoteWakeup -#define HAL_PCD_DeActiveRemoteWakeup HAL_PCD_DeActivateRemoteWakeup - -#define HAL_PCD_SetTxFiFo HAL_PCDEx_SetTxFiFo -#define HAL_PCD_SetRxFiFo HAL_PCDEx_SetRxFiFo -/** - * @} - */ - -/** @defgroup HAL_TIM_Aliased_Macros HAL TIM Aliased Macros maintained for legacy purpose - * @{ - */ -#define __HAL_TIM_SetICPrescalerValue TIM_SET_ICPRESCALERVALUE -#define __HAL_TIM_ResetICPrescalerValue TIM_RESET_ICPRESCALERVALUE - -#define TIM_GET_ITSTATUS __HAL_TIM_GET_IT_SOURCE -#define TIM_GET_CLEAR_IT __HAL_TIM_CLEAR_IT - -#define __HAL_TIM_GET_ITSTATUS __HAL_TIM_GET_IT_SOURCE - -#define __HAL_TIM_DIRECTION_STATUS __HAL_TIM_IS_TIM_COUNTING_DOWN -#define __HAL_TIM_PRESCALER __HAL_TIM_SET_PRESCALER -#define __HAL_TIM_SetCounter __HAL_TIM_SET_COUNTER -#define __HAL_TIM_GetCounter __HAL_TIM_GET_COUNTER -#define __HAL_TIM_SetAutoreload __HAL_TIM_SET_AUTORELOAD -#define __HAL_TIM_GetAutoreload __HAL_TIM_GET_AUTORELOAD -#define __HAL_TIM_SetClockDivision __HAL_TIM_SET_CLOCKDIVISION -#define __HAL_TIM_GetClockDivision __HAL_TIM_GET_CLOCKDIVISION -#define __HAL_TIM_SetICPrescaler __HAL_TIM_SET_ICPRESCALER -#define __HAL_TIM_GetICPrescaler __HAL_TIM_GET_ICPRESCALER -#define __HAL_TIM_SetCompare __HAL_TIM_SET_COMPARE -#define __HAL_TIM_GetCompare __HAL_TIM_GET_COMPARE - -#define TIM_BREAKINPUTSOURCE_DFSDM TIM_BREAKINPUTSOURCE_DFSDM1 -/** - * @} - */ - -/** @defgroup HAL_ETH_Aliased_Macros HAL ETH Aliased Macros maintained for legacy purpose - * @{ - */ - -#define __HAL_ETH_EXTI_ENABLE_IT __HAL_ETH_WAKEUP_EXTI_ENABLE_IT -#define __HAL_ETH_EXTI_DISABLE_IT __HAL_ETH_WAKEUP_EXTI_DISABLE_IT -#define __HAL_ETH_EXTI_GET_FLAG __HAL_ETH_WAKEUP_EXTI_GET_FLAG -#define __HAL_ETH_EXTI_CLEAR_FLAG __HAL_ETH_WAKEUP_EXTI_CLEAR_FLAG -#define __HAL_ETH_EXTI_SET_RISING_EGDE_TRIGGER __HAL_ETH_WAKEUP_EXTI_ENABLE_RISING_EDGE_TRIGGER -#define __HAL_ETH_EXTI_SET_FALLING_EGDE_TRIGGER __HAL_ETH_WAKEUP_EXTI_ENABLE_FALLING_EDGE_TRIGGER -#define __HAL_ETH_EXTI_SET_FALLINGRISING_TRIGGER __HAL_ETH_WAKEUP_EXTI_ENABLE_FALLINGRISING_TRIGGER - -#define ETH_PROMISCIOUSMODE_ENABLE ETH_PROMISCUOUS_MODE_ENABLE -#define ETH_PROMISCIOUSMODE_DISABLE ETH_PROMISCUOUS_MODE_DISABLE -#define IS_ETH_PROMISCIOUS_MODE IS_ETH_PROMISCUOUS_MODE -/** - * @} - */ - -/** @defgroup HAL_LTDC_Aliased_Macros HAL LTDC Aliased Macros maintained for legacy purpose - * @{ - */ -#define __HAL_LTDC_LAYER LTDC_LAYER -#define __HAL_LTDC_RELOAD_CONFIG __HAL_LTDC_RELOAD_IMMEDIATE_CONFIG -/** - * @} - */ - -/** @defgroup HAL_SAI_Aliased_Macros HAL SAI Aliased Macros maintained for legacy purpose - * @{ - */ -#define SAI_OUTPUTDRIVE_DISABLED SAI_OUTPUTDRIVE_DISABLE -#define SAI_OUTPUTDRIVE_ENABLED SAI_OUTPUTDRIVE_ENABLE -#define SAI_MASTERDIVIDER_ENABLED SAI_MASTERDIVIDER_ENABLE -#define SAI_MASTERDIVIDER_DISABLED SAI_MASTERDIVIDER_DISABLE -#define SAI_STREOMODE SAI_STEREOMODE -#define SAI_FIFOStatus_Empty SAI_FIFOSTATUS_EMPTY -#define SAI_FIFOStatus_Less1QuarterFull SAI_FIFOSTATUS_LESS1QUARTERFULL -#define SAI_FIFOStatus_1QuarterFull SAI_FIFOSTATUS_1QUARTERFULL -#define SAI_FIFOStatus_HalfFull SAI_FIFOSTATUS_HALFFULL -#define SAI_FIFOStatus_3QuartersFull SAI_FIFOSTATUS_3QUARTERFULL -#define SAI_FIFOStatus_Full SAI_FIFOSTATUS_FULL -#define IS_SAI_BLOCK_MONO_STREO_MODE IS_SAI_BLOCK_MONO_STEREO_MODE -#define SAI_SYNCHRONOUS_EXT SAI_SYNCHRONOUS_EXT_SAI1 -#define SAI_SYNCEXT_IN_ENABLE SAI_SYNCEXT_OUTBLOCKA_ENABLE -/** - * @} - */ - -/** @defgroup HAL_SPDIFRX_Aliased_Macros HAL SPDIFRX Aliased Macros maintained for legacy purpose - * @{ - */ -#if defined(STM32H7) -#define HAL_SPDIFRX_ReceiveControlFlow HAL_SPDIFRX_ReceiveCtrlFlow -#define HAL_SPDIFRX_ReceiveControlFlow_IT HAL_SPDIFRX_ReceiveCtrlFlow_IT -#define HAL_SPDIFRX_ReceiveControlFlow_DMA HAL_SPDIFRX_ReceiveCtrlFlow_DMA -#endif -/** - * @} - */ - -/** @defgroup HAL_HRTIM_Aliased_Functions HAL HRTIM Aliased Functions maintained for legacy purpose - * @{ - */ -#if defined (STM32H7) || defined (STM32G4) || defined (STM32F3) -#define HAL_HRTIM_WaveformCounterStart_IT HAL_HRTIM_WaveformCountStart_IT -#define HAL_HRTIM_WaveformCounterStart_DMA HAL_HRTIM_WaveformCountStart_DMA -#define HAL_HRTIM_WaveformCounterStart HAL_HRTIM_WaveformCountStart -#define HAL_HRTIM_WaveformCounterStop_IT HAL_HRTIM_WaveformCountStop_IT -#define HAL_HRTIM_WaveformCounterStop_DMA HAL_HRTIM_WaveformCountStop_DMA -#define HAL_HRTIM_WaveformCounterStop HAL_HRTIM_WaveformCountStop -#endif -/** - * @} - */ - -/** @defgroup HAL_QSPI_Aliased_Macros HAL QSPI Aliased Macros maintained for legacy purpose - * @{ - */ -#if defined (STM32L4) || defined (STM32F4) || defined (STM32F7) || defined(STM32H7) -#define HAL_QPSI_TIMEOUT_DEFAULT_VALUE HAL_QSPI_TIMEOUT_DEFAULT_VALUE -#endif /* STM32L4 || STM32F4 || STM32F7 */ -/** - * @} - */ - -/** @defgroup HAL_Generic_Aliased_Macros HAL Generic Aliased Macros maintained for legacy purpose - * @{ - */ -#if defined (STM32F7) -#define ART_ACCLERATOR_ENABLE ART_ACCELERATOR_ENABLE -#endif /* STM32F7 */ -/** - * @} - */ - -/** @defgroup HAL_PPP_Aliased_Macros HAL PPP Aliased Macros maintained for legacy purpose - * @{ - */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32_HAL_LEGACY */ - - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h deleted file mode 100644 index ef50a4a..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h +++ /dev/null @@ -1,1185 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal.h - * @author MCD Application Team - * @brief This file contains all the functions prototypes for the HAL - * module driver. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_HAL_H -#define STM32H7xx_HAL_H - -#ifdef __cplusplus - extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal_conf.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @addtogroup HAL - * @{ - */ - -/* Exported types ------------------------------------------------------------*/ -/** @defgroup HAL_TICK_FREQ Tick Frequency - * @{ - */ -typedef enum -{ - HAL_TICK_FREQ_10HZ = 100U, - HAL_TICK_FREQ_100HZ = 10U, - HAL_TICK_FREQ_1KHZ = 1U, - HAL_TICK_FREQ_DEFAULT = HAL_TICK_FREQ_1KHZ -} HAL_TickFreqTypeDef; -/** - * @} - */ - -/* Exported constants --------------------------------------------------------*/ -/** @defgroup HAL_Exported_Constants HAL Exported Constants - * @{ - */ -/** @defgroup REV_ID device revision ID - * @{ - */ -#define REV_ID_Y ((uint32_t)0x1003) /*!< STM32H7 rev.Y */ -#define REV_ID_B ((uint32_t)0x2000) /*!< STM32H7 rev.B */ -#define REV_ID_X ((uint32_t)0x2001) /*!< STM32H7 rev.X */ -#define REV_ID_V ((uint32_t)0x2003) /*!< STM32H7 rev.V */ - -/** - * @} - */ - -/** @defgroup SYSCFG_Exported_Constants SYSCFG Exported Constants - * @{ - */ - -/** @defgroup SYSCFG_VREFBUF_VoltageScale VREFBUF Voltage Scale - * @{ - */ -#define SYSCFG_VREFBUF_VOLTAGE_SCALE0 VREFBUF_CSR_VRS_OUT1 /*!< Voltage reference scale 0 (VREF_OUT1) */ -#define SYSCFG_VREFBUF_VOLTAGE_SCALE1 VREFBUF_CSR_VRS_OUT2 /*!< Voltage reference scale 1 (VREF_OUT2) */ -#define SYSCFG_VREFBUF_VOLTAGE_SCALE2 VREFBUF_CSR_VRS_OUT3 /*!< Voltage reference scale 2 (VREF_OUT3) */ -#define SYSCFG_VREFBUF_VOLTAGE_SCALE3 VREFBUF_CSR_VRS_OUT4 /*!< Voltage reference scale 3 (VREF_OUT4) */ - - -#define IS_SYSCFG_VREFBUF_VOLTAGE_SCALE(__SCALE__) (((__SCALE__) == SYSCFG_VREFBUF_VOLTAGE_SCALE0) || \ - ((__SCALE__) == SYSCFG_VREFBUF_VOLTAGE_SCALE1) || \ - ((__SCALE__) == SYSCFG_VREFBUF_VOLTAGE_SCALE2) || \ - ((__SCALE__) == SYSCFG_VREFBUF_VOLTAGE_SCALE3)) - - -/** - * @} - */ - -/** @defgroup SYSCFG_VREFBUF_HighImpedance VREFBUF High Impedance - * @{ - */ -#define SYSCFG_VREFBUF_HIGH_IMPEDANCE_DISABLE ((uint32_t)0x00000000) /*!< VREF_plus pin is internally connected to Voltage reference buffer output */ -#define SYSCFG_VREFBUF_HIGH_IMPEDANCE_ENABLE VREFBUF_CSR_HIZ /*!< VREF_plus pin is high impedance */ - -#define IS_SYSCFG_VREFBUF_HIGH_IMPEDANCE(__VALUE__) (((__VALUE__) == SYSCFG_VREFBUF_HIGH_IMPEDANCE_DISABLE) || \ - ((__VALUE__) == SYSCFG_VREFBUF_HIGH_IMPEDANCE_ENABLE)) - -#define IS_SYSCFG_VREFBUF_TRIMMING(__VALUE__) (((__VALUE__) > 0UL) && ((__VALUE__) <= VREFBUF_CCR_TRIM)) - -/** - * @} - */ - -#if !defined(SYSCFG_PMCR_BOOSTEN) -/** @defgroup SYSCFG_FastModePlus_GPIO Fast-mode Plus on GPIO - * @{ - */ - -/** @brief Fast-mode Plus driving capability on a specific GPIO - */ -#define SYSCFG_FASTMODEPLUS_PB6 SYSCFG_PMCR_I2C_PB6_FMP /*!< Enable Fast-mode Plus on PB6 */ -#define SYSCFG_FASTMODEPLUS_PB7 SYSCFG_PMCR_I2C_PB7_FMP /*!< Enable Fast-mode Plus on PB7 */ -#define SYSCFG_FASTMODEPLUS_PB8 SYSCFG_PMCR_I2C_PB8_FMP /*!< Enable Fast-mode Plus on PB8 */ -#define SYSCFG_FASTMODEPLUS_PB9 SYSCFG_PMCR_I2C_PB9_FMP /*!< Enable Fast-mode Plus on PB9 */ - -#define IS_SYSCFG_FASTMODEPLUS(__PIN__) ((((__PIN__) & SYSCFG_FASTMODEPLUS_PB6) == SYSCFG_FASTMODEPLUS_PB6) || \ - (((__PIN__) & SYSCFG_FASTMODEPLUS_PB7) == SYSCFG_FASTMODEPLUS_PB7) || \ - (((__PIN__) & SYSCFG_FASTMODEPLUS_PB8) == SYSCFG_FASTMODEPLUS_PB8) || \ - (((__PIN__) & SYSCFG_FASTMODEPLUS_PB9) == SYSCFG_FASTMODEPLUS_PB9)) - -/** - * @} - */ -#endif /* ! SYSCFG_PMCR_BOOSTEN */ - - -#if defined(SYSCFG_ADC2ALT_ADC2_ROUT0) || defined(SYSCFG_ADC2ALT_ADC2_ROUT1) -/** @defgroup SYSCFG_Adc2_Alternate_Connection SYSCFG ADC2 Alternate Connection - * @{ - */ - -/** @brief Adc2 Alternate Connection on Vinp[16] and Vinp[17] - */ -#define SYSCFG_ADC2_ROUT0_DAC1_1 ((uint32_t)0x00000000) /*!< DAC1_out1 connected to ADC2 VINP[16] */ -#define SYSCFG_ADC2_ROUT0_VBAT4 SYSCFG_ADC2ALT_ADC2_ROUT0 /*!< VBAT/4 connected to ADC2 VINP[16] */ -#define SYSCFG_ADC2_ROUT1_DAC1_2 ((uint32_t)0x00000000) /*!< DAC1_out2 connected to ADC2 VINP[17] */ -#define SYSCFG_ADC2_ROUT1_VREFINT SYSCFG_ADC2ALT_ADC2_ROUT1 /*!< VREFINT connected to ADC2 VINP[17] */ - -#define IS_SYSCFG_ADC2ALT_ROUT0(__VALUE__) (((__VALUE__) == SYSCFG_ADC2_ROUT0_DAC1_1) || \ - ((__VALUE__) == SYSCFG_ADC2_ROUT0_VBAT4)) -#define IS_SYSCFG_ADC2ALT_ROUT1(__VALUE__) (((__VALUE__) == SYSCFG_ADC2_ROUT1_DAC1_2) || \ - ((__VALUE__) == SYSCFG_ADC2_ROUT1_VREFINT)) - -/** - * @} - */ -#endif /*SYSCFG_ADC2ALT_ADC2_ROUT0 || SYSCFG_ADC2ALT_ADC2_ROUT1*/ - - -/** @defgroup SYSCFG_Ethernet_Config Ethernet Config - * @{ - */ -#define SYSCFG_ETH_MII ((uint32_t)0x00000000) /*!< Select the Media Independent Interface */ -#define SYSCFG_ETH_RMII SYSCFG_PMCR_EPIS_SEL_2 /*!< Select the Reduced Media Independent Interface */ - -#define IS_SYSCFG_ETHERNET_CONFIG(CONFIG) (((CONFIG) == SYSCFG_ETH_MII) || \ - ((CONFIG) == SYSCFG_ETH_RMII)) - -/** - * @} - */ - - -/** @defgroup SYSCFG_Analog_Switch_Config Analog Switch Config - * @{ - */ -#define SYSCFG_SWITCH_PA0 SYSCFG_PMCR_PA0SO /*!< Select PA0 analog switch */ -#define SYSCFG_SWITCH_PA1 SYSCFG_PMCR_PA1SO /*!< Select PA1 analog switch */ -#define SYSCFG_SWITCH_PC2 SYSCFG_PMCR_PC2SO /*!< Select PC2 analog switch */ -#define SYSCFG_SWITCH_PC3 SYSCFG_PMCR_PC3SO /*!< Select PC3 analog switch */ - - - - -#define SYSCFG_SWITCH_PA0_OPEN SYSCFG_PMCR_PA0SO /*!< PA0 analog switch opened */ -#define SYSCFG_SWITCH_PA0_CLOSE ((uint32_t)0x00000000) /*!< PA0 analog switch closed */ -#define SYSCFG_SWITCH_PA1_OPEN SYSCFG_PMCR_PA1SO /*!< PA1 analog switch opened */ -#define SYSCFG_SWITCH_PA1_CLOSE ((uint32_t)0x00000000) /*!< PA1 analog switch closed*/ -#define SYSCFG_SWITCH_PC2_OPEN SYSCFG_PMCR_PC2SO /*!< PC2 analog switch opened */ -#define SYSCFG_SWITCH_PC2_CLOSE ((uint32_t)0x00000000) /*!< PC2 analog switch closed */ -#define SYSCFG_SWITCH_PC3_OPEN SYSCFG_PMCR_PC3SO /*!< PC3 analog switch opened */ -#define SYSCFG_SWITCH_PC3_CLOSE ((uint32_t)0x00000000) /*!< PC3 analog switch closed */ - -/** - * @} - */ - -#define IS_SYSCFG_ANALOG_SWITCH(SWITCH) ((((SWITCH) & SYSCFG_SWITCH_PA0) == SYSCFG_SWITCH_PA0)|| \ - (((SWITCH) & SYSCFG_SWITCH_PA1) == SYSCFG_SWITCH_PA1) || \ - (((SWITCH) & SYSCFG_SWITCH_PC2) == SYSCFG_SWITCH_PC2) || \ - (((SWITCH) & SYSCFG_SWITCH_PC3) == SYSCFG_SWITCH_PC3)) - - -#define IS_SYSCFG_SWITCH_STATE(STATE) ((((STATE) & SYSCFG_SWITCH_PA0_OPEN) == SYSCFG_SWITCH_PA0_OPEN) || \ - (((STATE) & SYSCFG_SWITCH_PA0_CLOSE) == SYSCFG_SWITCH_PA0_CLOSE) || \ - (((STATE) & SYSCFG_SWITCH_PA1_OPEN) == SYSCFG_SWITCH_PA1_OPEN) || \ - (((STATE) & SYSCFG_SWITCH_PA1_CLOSE) == SYSCFG_SWITCH_PA1_CLOSE) || \ - (((STATE) & SYSCFG_SWITCH_PC2_OPEN) == SYSCFG_SWITCH_PC2_OPEN) || \ - (((STATE) & SYSCFG_SWITCH_PC2_CLOSE) == SYSCFG_SWITCH_PC2_CLOSE) || \ - (((STATE) & SYSCFG_SWITCH_PC3_OPEN) == SYSCFG_SWITCH_PC3_OPEN) || \ - (((STATE) & SYSCFG_SWITCH_PC3_CLOSE) == SYSCFG_SWITCH_PC3_CLOSE)) - - -/** @defgroup SYSCFG_Boot_Config Boot Config - * @{ - */ -#define SYSCFG_BOOT_ADDR0 ((uint32_t)0x00000000) /*!< Select Boot address0 */ -#define SYSCFG_BOOT_ADDR1 ((uint32_t)0x00000001) /*!< Select Boot address1 */ - -#define IS_SYSCFG_BOOT_REGISTER(REGISTER) (((REGISTER) == SYSCFG_BOOT_ADDR0)|| \ - ((REGISTER) == SYSCFG_BOOT_ADDR1)) - -#define IS_SYSCFG_BOOT_ADDRESS(ADDRESS) ((ADDRESS) < PERIPH_BASE) - -/** - * @} - */ - - -/** @defgroup SYSCFG_IOCompenstionCell_Config IOCompenstionCell Config - * @{ - */ -#define SYSCFG_CELL_CODE ((uint32_t)0x00000000) /*!< Select Code from the cell */ -#define SYSCFG_REGISTER_CODE SYSCFG_CCCSR_CS /*!< Code from the SYSCFG compensation cell code register */ - -#define IS_SYSCFG_CODE_SELECT(SELECT) (((SELECT) == SYSCFG_CELL_CODE)|| \ - ((SELECT) == SYSCFG_REGISTER_CODE)) - -#define IS_SYSCFG_CODE_CONFIG(CONFIG) ((CONFIG) < (0x10UL)) - -/** - * @} - */ - -/** - * @} - */ - - -/** @defgroup EXTI_Event_Input_Config Event Input Config - * @{ - */ - -#define EXTI_MODE_IT ((uint32_t)0x00010000) -#define EXTI_MODE_EVT ((uint32_t)0x00020000) -#define EXTI_RISING_EDGE ((uint32_t)0x00100000) -#define EXTI_FALLING_EDGE ((uint32_t)0x00200000) - -#define IS_EXTI_EDGE_LINE(EDGE) (((EDGE) == EXTI_RISING_EDGE) || ((EDGE) == EXTI_FALLING_EDGE)) -#define IS_EXTI_MODE_LINE(MODE) (((MODE) == EXTI_MODE_IT) || ((MODE) == EXTI_MODE_EVT)) - -#define EXTI_LINE0 ((uint32_t)0x00) /*!< External interrupt LINE 0 */ -#define EXTI_LINE1 ((uint32_t)0x01) /*!< External interrupt LINE 1 */ -#define EXTI_LINE2 ((uint32_t)0x02) /*!< External interrupt LINE 2 */ -#define EXTI_LINE3 ((uint32_t)0x03) /*!< External interrupt LINE 3 */ -#define EXTI_LINE4 ((uint32_t)0x04) /*!< External interrupt LINE 4 */ -#define EXTI_LINE5 ((uint32_t)0x05) /*!< External interrupt LINE 5 */ -#define EXTI_LINE6 ((uint32_t)0x06) /*!< External interrupt LINE 6 */ -#define EXTI_LINE7 ((uint32_t)0x07) /*!< External interrupt LINE 7 */ -#define EXTI_LINE8 ((uint32_t)0x08) /*!< External interrupt LINE 8 */ -#define EXTI_LINE9 ((uint32_t)0x09) /*!< External interrupt LINE 9 */ -#define EXTI_LINE10 ((uint32_t)0x0A) /*!< External interrupt LINE 10 */ -#define EXTI_LINE11 ((uint32_t)0x0B) /*!< External interrupt LINE 11 */ -#define EXTI_LINE12 ((uint32_t)0x0C) /*!< External interrupt LINE 12 */ -#define EXTI_LINE13 ((uint32_t)0x0D) /*!< External interrupt LINE 13 */ -#define EXTI_LINE14 ((uint32_t)0x0E) /*!< External interrupt LINE 14 */ -#define EXTI_LINE15 ((uint32_t)0x0F) /*!< External interrupt LINE 15 */ -#define EXTI_LINE16 ((uint32_t)0x10) -#define EXTI_LINE17 ((uint32_t)0x11) -#define EXTI_LINE18 ((uint32_t)0x12) -#define EXTI_LINE19 ((uint32_t)0x13) -#define EXTI_LINE20 ((uint32_t)0x14) -#define EXTI_LINE21 ((uint32_t)0x15) -#define EXTI_LINE22 ((uint32_t)0x16) -#define EXTI_LINE23 ((uint32_t)0x17) -#define EXTI_LINE24 ((uint32_t)0x18) -#define EXTI_LINE25 ((uint32_t)0x19) -#define EXTI_LINE26 ((uint32_t)0x1A) -#define EXTI_LINE27 ((uint32_t)0x1B) -#define EXTI_LINE28 ((uint32_t)0x1C) -#define EXTI_LINE29 ((uint32_t)0x1D) -#define EXTI_LINE30 ((uint32_t)0x1E) -#define EXTI_LINE31 ((uint32_t)0x1F) -#define EXTI_LINE32 ((uint32_t)0x20) -#define EXTI_LINE33 ((uint32_t)0x21) -#define EXTI_LINE34 ((uint32_t)0x22) -#define EXTI_LINE35 ((uint32_t)0x23) -#define EXTI_LINE36 ((uint32_t)0x24) -#define EXTI_LINE37 ((uint32_t)0x25) -#define EXTI_LINE38 ((uint32_t)0x26) -#define EXTI_LINE39 ((uint32_t)0x27) - -#define EXTI_LINE40 ((uint32_t)0x28) -#define EXTI_LINE41 ((uint32_t)0x29) -#define EXTI_LINE42 ((uint32_t)0x2A) -#define EXTI_LINE43 ((uint32_t)0x2B) -#define EXTI_LINE44 ((uint32_t)0x2C) /* Not available in all family lines */ -/* EXTI_LINE45 Reserved */ -#if defined(DUAL_CORE) -#define EXTI_LINE46 ((uint32_t)0x2E) -#else -/* EXTI_LINE46 Reserved */ -#endif /* DUAL_CORE */ -#define EXTI_LINE47 ((uint32_t)0x2F) -#define EXTI_LINE48 ((uint32_t)0x30) -#define EXTI_LINE49 ((uint32_t)0x31) -#define EXTI_LINE50 ((uint32_t)0x32) -#define EXTI_LINE51 ((uint32_t)0x33) -#define EXTI_LINE52 ((uint32_t)0x34) -#define EXTI_LINE53 ((uint32_t)0x35) -#define EXTI_LINE54 ((uint32_t)0x36) -#define EXTI_LINE55 ((uint32_t)0x37) -#define EXTI_LINE56 ((uint32_t)0x38) -#define EXTI_LINE57 ((uint32_t)0x39) -#define EXTI_LINE58 ((uint32_t)0x3A) -#define EXTI_LINE59 ((uint32_t)0x3B) -#define EXTI_LINE60 ((uint32_t)0x3C) -#define EXTI_LINE61 ((uint32_t)0x3D) -#define EXTI_LINE62 ((uint32_t)0x3E) -#define EXTI_LINE63 ((uint32_t)0x3F) -#define EXTI_LINE64 ((uint32_t)0x40) -#define EXTI_LINE65 ((uint32_t)0x41) -#define EXTI_LINE66 ((uint32_t)0x42) -#define EXTI_LINE67 ((uint32_t)0x43) -#define EXTI_LINE68 ((uint32_t)0x44) -#define EXTI_LINE69 ((uint32_t)0x45) -#define EXTI_LINE70 ((uint32_t)0x46) -#define EXTI_LINE71 ((uint32_t)0x47) -#define EXTI_LINE72 ((uint32_t)0x48) -#define EXTI_LINE73 ((uint32_t)0x49) -#define EXTI_LINE74 ((uint32_t)0x4A) -#define EXTI_LINE75 ((uint32_t)0x4B) /* Not available in all family lines */ -#define EXTI_LINE76 ((uint32_t)0x4C) /* Not available in all family lines */ -#if defined(DUAL_CORE) -#define EXTI_LINE77 ((uint32_t)0x4D) -#define EXTI_LINE78 ((uint32_t)0x4E) -#define EXTI_LINE79 ((uint32_t)0x4F) -#define EXTI_LINE80 ((uint32_t)0x50) -#else -/* EXTI_LINE77 Reserved */ -/* EXTI_LINE78 Reserved */ -/* EXTI_LINE79 Reserved */ -/* EXTI_LINE80 Reserved */ -#endif /* DUAL_CORE */ -/* EXTI_LINE81 Reserved */ -#if defined(DUAL_CORE) -#define EXTI_LINE82 ((uint32_t)0x52) -#else -/* EXTI_LINE82 Reserved */ -#endif /* DUAL_CORE */ -/* EXTI_LINE83 Reserved */ -#if defined(DUAL_CORE) -#define EXTI_LINE84 ((uint32_t)0x54) -#else -/* EXTI_LINE84 Reserved */ -#endif /* DUAL_CORE */ -#define EXTI_LINE85 ((uint32_t)0x55) -#define EXTI_LINE86 ((uint32_t)0x56) /* Not available in all family lines */ -#define EXTI_LINE87 ((uint32_t)0x57) -#define EXTI_LINE88 ((uint32_t)0x58) /* Not available in all family lines */ -#define EXTI_LINE89 ((uint32_t)0x59) /* Not available in all family lines */ -#define EXTI_LINE90 ((uint32_t)0x5A) /* Not available in all family lines */ -#define EXTI_LINE91 ((uint32_t)0x5B) /* Not available in all family lines */ - -#if defined(DUAL_CORE) -#define IS_HAL_EXTI_CONFIG_LINE(LINE) (((LINE) == EXTI_LINE0) || ((LINE) == EXTI_LINE1) || \ - ((LINE) == EXTI_LINE2) || ((LINE) == EXTI_LINE3) || \ - ((LINE) == EXTI_LINE4) || ((LINE) == EXTI_LINE5) || \ - ((LINE) == EXTI_LINE6) || ((LINE) == EXTI_LINE7) || \ - ((LINE) == EXTI_LINE8) || ((LINE) == EXTI_LINE9) || \ - ((LINE) == EXTI_LINE10) || ((LINE) == EXTI_LINE11) || \ - ((LINE) == EXTI_LINE12) || ((LINE) == EXTI_LINE13) || \ - ((LINE) == EXTI_LINE14) || ((LINE) == EXTI_LINE15) || \ - ((LINE) == EXTI_LINE16) || ((LINE) == EXTI_LINE17) || \ - ((LINE) == EXTI_LINE18) || ((LINE) == EXTI_LINE19) || \ - ((LINE) == EXTI_LINE20) || ((LINE) == EXTI_LINE21) || \ - ((LINE) == EXTI_LINE49) || ((LINE) == EXTI_LINE51) || \ - ((LINE) == EXTI_LINE82) || ((LINE) == EXTI_LINE84) || \ - ((LINE) == EXTI_LINE85) || ((LINE) == EXTI_LINE86)) -#else -#define IS_HAL_EXTI_CONFIG_LINE(LINE) (((LINE) == EXTI_LINE0) || ((LINE) == EXTI_LINE1)|| \ - ((LINE) == EXTI_LINE2) || ((LINE) == EXTI_LINE3) || \ - ((LINE) == EXTI_LINE4) || ((LINE) == EXTI_LINE5) || \ - ((LINE) == EXTI_LINE6) || ((LINE) == EXTI_LINE7) || \ - ((LINE) == EXTI_LINE8) || ((LINE) == EXTI_LINE9) || \ - ((LINE) == EXTI_LINE10) || ((LINE) == EXTI_LINE11) || \ - ((LINE) == EXTI_LINE12) || ((LINE) == EXTI_LINE13) || \ - ((LINE) == EXTI_LINE14) || ((LINE) == EXTI_LINE15) || \ - ((LINE) == EXTI_LINE16) || ((LINE) == EXTI_LINE17) || \ - ((LINE) == EXTI_LINE18) || ((LINE) == EXTI_LINE19) || \ - ((LINE) == EXTI_LINE20) || ((LINE) == EXTI_LINE21) || \ - ((LINE) == EXTI_LINE49) || ((LINE) == EXTI_LINE51) || \ - ((LINE) == EXTI_LINE85) || ((LINE) == EXTI_LINE86)) -#endif /* DUAL_CORE */ - -#if defined(DUAL_CORE) -#define IS_EXTI_ALL_LINE(LINE) (((LINE) == EXTI_LINE0) || ((LINE) == EXTI_LINE1) || \ - ((LINE) == EXTI_LINE2) || ((LINE) == EXTI_LINE3) || \ - ((LINE) == EXTI_LINE4) || ((LINE) == EXTI_LINE5) || \ - ((LINE) == EXTI_LINE6) || ((LINE) == EXTI_LINE7) || \ - ((LINE) == EXTI_LINE8) || ((LINE) == EXTI_LINE9) || \ - ((LINE) == EXTI_LINE10) || ((LINE) == EXTI_LINE11) || \ - ((LINE) == EXTI_LINE12) || ((LINE) == EXTI_LINE13) || \ - ((LINE) == EXTI_LINE14) || ((LINE) == EXTI_LINE15) || \ - ((LINE) == EXTI_LINE16) || ((LINE) == EXTI_LINE17) || \ - ((LINE) == EXTI_LINE18) || ((LINE) == EXTI_LINE19) || \ - ((LINE) == EXTI_LINE20) || ((LINE) == EXTI_LINE21) || \ - ((LINE) == EXTI_LINE22) || ((LINE) == EXTI_LINE23) || \ - ((LINE) == EXTI_LINE24) || ((LINE) == EXTI_LINE25) || \ - ((LINE) == EXTI_LINE26) || ((LINE) == EXTI_LINE27) || \ - ((LINE) == EXTI_LINE28) || ((LINE) == EXTI_LINE29) || \ - ((LINE) == EXTI_LINE30) || ((LINE) == EXTI_LINE31) || \ - ((LINE) == EXTI_LINE32) || ((LINE) == EXTI_LINE33) || \ - ((LINE) == EXTI_LINE34) || ((LINE) == EXTI_LINE35) || \ - ((LINE) == EXTI_LINE36) || ((LINE) == EXTI_LINE37) || \ - ((LINE) == EXTI_LINE38) || ((LINE) == EXTI_LINE39) || \ - ((LINE) == EXTI_LINE40) || ((LINE) == EXTI_LINE41) || \ - ((LINE) == EXTI_LINE42) || ((LINE) == EXTI_LINE43) || \ - ((LINE) == EXTI_LINE44) || ((LINE) == EXTI_LINE46) || \ - ((LINE) == EXTI_LINE47) || ((LINE) == EXTI_LINE48) || \ - ((LINE) == EXTI_LINE49) || ((LINE) == EXTI_LINE50) || \ - ((LINE) == EXTI_LINE51) || ((LINE) == EXTI_LINE52) || \ - ((LINE) == EXTI_LINE53) || ((LINE) == EXTI_LINE54) || \ - ((LINE) == EXTI_LINE55) || ((LINE) == EXTI_LINE56) || \ - ((LINE) == EXTI_LINE57) || ((LINE) == EXTI_LINE58) || \ - ((LINE) == EXTI_LINE59) || ((LINE) == EXTI_LINE60) || \ - ((LINE) == EXTI_LINE61) || ((LINE) == EXTI_LINE62) || \ - ((LINE) == EXTI_LINE63) || ((LINE) == EXTI_LINE64) || \ - ((LINE) == EXTI_LINE65) || ((LINE) == EXTI_LINE66) || \ - ((LINE) == EXTI_LINE67) || ((LINE) == EXTI_LINE68) || \ - ((LINE) == EXTI_LINE69) || ((LINE) == EXTI_LINE70) || \ - ((LINE) == EXTI_LINE71) || ((LINE) == EXTI_LINE72) || \ - ((LINE) == EXTI_LINE73) || ((LINE) == EXTI_LINE74) || \ - ((LINE) == EXTI_LINE75) || ((LINE) == EXTI_LINE76) || \ - ((LINE) == EXTI_LINE77) || ((LINE) == EXTI_LINE79) || \ - ((LINE) == EXTI_LINE84) || ((LINE) == EXTI_LINE85) || \ - ((LINE) == EXTI_LINE86) || ((LINE) == EXTI_LINE87) || \ - ((LINE) == EXTI_LINE78) || \ - ((LINE) == EXTI_LINE80) || ((LINE) == EXTI_LINE82)) -#else -#define IS_EXTI_ALL_LINE(LINE) (((LINE) == EXTI_LINE0) || ((LINE) == EXTI_LINE1) || \ - ((LINE) == EXTI_LINE2) || ((LINE) == EXTI_LINE3) || \ - ((LINE) == EXTI_LINE4) || ((LINE) == EXTI_LINE5) || \ - ((LINE) == EXTI_LINE6) || ((LINE) == EXTI_LINE7) || \ - ((LINE) == EXTI_LINE8) || ((LINE) == EXTI_LINE9) || \ - ((LINE) == EXTI_LINE10) || ((LINE) == EXTI_LINE11) || \ - ((LINE) == EXTI_LINE12) || ((LINE) == EXTI_LINE13) || \ - ((LINE) == EXTI_LINE14) || ((LINE) == EXTI_LINE15) || \ - ((LINE) == EXTI_LINE16) || ((LINE) == EXTI_LINE17) || \ - ((LINE) == EXTI_LINE18) || ((LINE) == EXTI_LINE19) || \ - ((LINE) == EXTI_LINE20) || ((LINE) == EXTI_LINE21) || \ - ((LINE) == EXTI_LINE22) || ((LINE) == EXTI_LINE23) || \ - ((LINE) == EXTI_LINE24) || ((LINE) == EXTI_LINE25) || \ - ((LINE) == EXTI_LINE26) || ((LINE) == EXTI_LINE27) || \ - ((LINE) == EXTI_LINE28) || ((LINE) == EXTI_LINE29) || \ - ((LINE) == EXTI_LINE30) || ((LINE) == EXTI_LINE31) || \ - ((LINE) == EXTI_LINE32) || ((LINE) == EXTI_LINE33) || \ - ((LINE) == EXTI_LINE34) || ((LINE) == EXTI_LINE35) || \ - ((LINE) == EXTI_LINE36) || ((LINE) == EXTI_LINE37) || \ - ((LINE) == EXTI_LINE38) || ((LINE) == EXTI_LINE39) || \ - ((LINE) == EXTI_LINE40) || ((LINE) == EXTI_LINE41) || \ - ((LINE) == EXTI_LINE42) || ((LINE) == EXTI_LINE43) || \ - ((LINE) == EXTI_LINE44) || \ - ((LINE) == EXTI_LINE47) || ((LINE) == EXTI_LINE48) || \ - ((LINE) == EXTI_LINE49) || ((LINE) == EXTI_LINE50) || \ - ((LINE) == EXTI_LINE51) || ((LINE) == EXTI_LINE52) || \ - ((LINE) == EXTI_LINE53) || ((LINE) == EXTI_LINE54) || \ - ((LINE) == EXTI_LINE55) || ((LINE) == EXTI_LINE56) || \ - ((LINE) == EXTI_LINE57) || ((LINE) == EXTI_LINE58) || \ - ((LINE) == EXTI_LINE59) || ((LINE) == EXTI_LINE60) || \ - ((LINE) == EXTI_LINE61) || ((LINE) == EXTI_LINE62) || \ - ((LINE) == EXTI_LINE63) || ((LINE) == EXTI_LINE64) || \ - ((LINE) == EXTI_LINE65) || ((LINE) == EXTI_LINE66) || \ - ((LINE) == EXTI_LINE67) || ((LINE) == EXTI_LINE68) || \ - ((LINE) == EXTI_LINE69) || ((LINE) == EXTI_LINE70) || \ - ((LINE) == EXTI_LINE71) || ((LINE) == EXTI_LINE72) || \ - ((LINE) == EXTI_LINE73) || ((LINE) == EXTI_LINE74) || \ - ((LINE) == EXTI_LINE75) || ((LINE) == EXTI_LINE76) || \ - ((LINE) == EXTI_LINE85) || \ - ((LINE) == EXTI_LINE86) || ((LINE) == EXTI_LINE87) || \ - ((LINE) == EXTI_LINE88) || ((LINE) == EXTI_LINE89) || \ - ((LINE) == EXTI_LINE90) || ((LINE) == EXTI_LINE91)) -#endif /*DUAL_CORE*/ - -#if defined(DUAL_CORE) -#define IS_EXTI_D1_LINE(LINE) (((LINE) == EXTI_LINE0) || ((LINE) == EXTI_LINE1) || \ - ((LINE) == EXTI_LINE2) || ((LINE) == EXTI_LINE3) || \ - ((LINE) == EXTI_LINE4) || ((LINE) == EXTI_LINE5) || \ - ((LINE) == EXTI_LINE6) || ((LINE) == EXTI_LINE7) || \ - ((LINE) == EXTI_LINE8) || ((LINE) == EXTI_LINE9) || \ - ((LINE) == EXTI_LINE10) || ((LINE) == EXTI_LINE11) || \ - ((LINE) == EXTI_LINE12) || ((LINE) == EXTI_LINE13) || \ - ((LINE) == EXTI_LINE14) || ((LINE) == EXTI_LINE15) || \ - ((LINE) == EXTI_LINE16) || ((LINE) == EXTI_LINE17) || \ - ((LINE) == EXTI_LINE18) || ((LINE) == EXTI_LINE19) || \ - ((LINE) == EXTI_LINE20) || ((LINE) == EXTI_LINE21) || \ - ((LINE) == EXTI_LINE22) || ((LINE) == EXTI_LINE23) || \ - ((LINE) == EXTI_LINE24) || ((LINE) == EXTI_LINE25) || \ - ((LINE) == EXTI_LINE26) || ((LINE) == EXTI_LINE27) || \ - ((LINE) == EXTI_LINE28) || ((LINE) == EXTI_LINE29) || \ - ((LINE) == EXTI_LINE30) || ((LINE) == EXTI_LINE31) || \ - ((LINE) == EXTI_LINE32) || ((LINE) == EXTI_LINE33) || \ - ((LINE) == EXTI_LINE34) || ((LINE) == EXTI_LINE35) || \ - ((LINE) == EXTI_LINE36) || ((LINE) == EXTI_LINE37) || \ - ((LINE) == EXTI_LINE38) || ((LINE) == EXTI_LINE39) || \ - ((LINE) == EXTI_LINE40) || ((LINE) == EXTI_LINE41) || \ - ((LINE) == EXTI_LINE42) || ((LINE) == EXTI_LINE43) || \ - ((LINE) == EXTI_LINE44) || ((LINE) == EXTI_LINE46) || \ - ((LINE) == EXTI_LINE47) || ((LINE) == EXTI_LINE48) || \ - ((LINE) == EXTI_LINE49) || ((LINE) == EXTI_LINE50) || \ - ((LINE) == EXTI_LINE51) || ((LINE) == EXTI_LINE52) || \ - ((LINE) == EXTI_LINE53) || ((LINE) == EXTI_LINE54) || \ - ((LINE) == EXTI_LINE55) || ((LINE) == EXTI_LINE56) || \ - ((LINE) == EXTI_LINE57) || ((LINE) == EXTI_LINE58) || \ - ((LINE) == EXTI_LINE59) || ((LINE) == EXTI_LINE60) || \ - ((LINE) == EXTI_LINE61) || ((LINE) == EXTI_LINE62) || \ - ((LINE) == EXTI_LINE63) || ((LINE) == EXTI_LINE64) || \ - ((LINE) == EXTI_LINE65) || ((LINE) == EXTI_LINE66) || \ - ((LINE) == EXTI_LINE67) || ((LINE) == EXTI_LINE68) || \ - ((LINE) == EXTI_LINE69) || ((LINE) == EXTI_LINE70) || \ - ((LINE) == EXTI_LINE71) || ((LINE) == EXTI_LINE72) || \ - ((LINE) == EXTI_LINE73) || ((LINE) == EXTI_LINE74) || \ - ((LINE) == EXTI_LINE75) || ((LINE) == EXTI_LINE76) || \ - ((LINE) == EXTI_LINE77) || ((LINE) == EXTI_LINE79) || \ - ((LINE) == EXTI_LINE84) || ((LINE) == EXTI_LINE85) || \ - ((LINE) == EXTI_LINE86) || ((LINE) == EXTI_LINE87)) -#else -#define IS_EXTI_D1_LINE(LINE) (((LINE) == EXTI_LINE0) || ((LINE) == EXTI_LINE1) || \ - ((LINE) == EXTI_LINE2) || ((LINE) == EXTI_LINE3) || \ - ((LINE) == EXTI_LINE4) || ((LINE) == EXTI_LINE5) || \ - ((LINE) == EXTI_LINE6) || ((LINE) == EXTI_LINE7) || \ - ((LINE) == EXTI_LINE8) || ((LINE) == EXTI_LINE9) || \ - ((LINE) == EXTI_LINE10) || ((LINE) == EXTI_LINE11) || \ - ((LINE) == EXTI_LINE12) || ((LINE) == EXTI_LINE13) || \ - ((LINE) == EXTI_LINE14) || ((LINE) == EXTI_LINE15) || \ - ((LINE) == EXTI_LINE16) || ((LINE) == EXTI_LINE17) || \ - ((LINE) == EXTI_LINE18) || ((LINE) == EXTI_LINE19) || \ - ((LINE) == EXTI_LINE20) || ((LINE) == EXTI_LINE21) || \ - ((LINE) == EXTI_LINE22) || ((LINE) == EXTI_LINE23) || \ - ((LINE) == EXTI_LINE24) || ((LINE) == EXTI_LINE25) || \ - ((LINE) == EXTI_LINE26) || ((LINE) == EXTI_LINE27) || \ - ((LINE) == EXTI_LINE28) || ((LINE) == EXTI_LINE29) || \ - ((LINE) == EXTI_LINE30) || ((LINE) == EXTI_LINE31) || \ - ((LINE) == EXTI_LINE32) || ((LINE) == EXTI_LINE33) || \ - ((LINE) == EXTI_LINE34) || ((LINE) == EXTI_LINE35) || \ - ((LINE) == EXTI_LINE36) || ((LINE) == EXTI_LINE37) || \ - ((LINE) == EXTI_LINE38) || ((LINE) == EXTI_LINE39) || \ - ((LINE) == EXTI_LINE40) || ((LINE) == EXTI_LINE41) || \ - ((LINE) == EXTI_LINE42) || ((LINE) == EXTI_LINE43) || \ - ((LINE) == EXTI_LINE44) || \ - ((LINE) == EXTI_LINE47) || ((LINE) == EXTI_LINE48) || \ - ((LINE) == EXTI_LINE49) || ((LINE) == EXTI_LINE50) || \ - ((LINE) == EXTI_LINE51) || ((LINE) == EXTI_LINE52) || \ - ((LINE) == EXTI_LINE53) || ((LINE) == EXTI_LINE54) || \ - ((LINE) == EXTI_LINE55) || ((LINE) == EXTI_LINE56) || \ - ((LINE) == EXTI_LINE57) || ((LINE) == EXTI_LINE58) || \ - ((LINE) == EXTI_LINE59) || ((LINE) == EXTI_LINE60) || \ - ((LINE) == EXTI_LINE61) || ((LINE) == EXTI_LINE62) || \ - ((LINE) == EXTI_LINE63) || ((LINE) == EXTI_LINE64) || \ - ((LINE) == EXTI_LINE65) || ((LINE) == EXTI_LINE66) || \ - ((LINE) == EXTI_LINE67) || ((LINE) == EXTI_LINE68) || \ - ((LINE) == EXTI_LINE69) || ((LINE) == EXTI_LINE70) || \ - ((LINE) == EXTI_LINE71) || ((LINE) == EXTI_LINE72) || \ - ((LINE) == EXTI_LINE73) || ((LINE) == EXTI_LINE74) || \ - ((LINE) == EXTI_LINE75) || ((LINE) == EXTI_LINE76) || \ - ((LINE) == EXTI_LINE85) || \ - ((LINE) == EXTI_LINE86) || ((LINE) == EXTI_LINE87) || \ - ((LINE) == EXTI_LINE88) || ((LINE) == EXTI_LINE89) || \ - ((LINE) == EXTI_LINE90) || ((LINE) == EXTI_LINE91)) -#endif /*DUAL_CORE*/ - -#if defined(DUAL_CORE) -#define IS_EXTI_D2_LINE(LINE) (((LINE) == EXTI_LINE0) || ((LINE) == EXTI_LINE1) || \ - ((LINE) == EXTI_LINE2) || ((LINE) == EXTI_LINE3) || \ - ((LINE) == EXTI_LINE4) || ((LINE) == EXTI_LINE5) || \ - ((LINE) == EXTI_LINE6) || ((LINE) == EXTI_LINE7) || \ - ((LINE) == EXTI_LINE8) || ((LINE) == EXTI_LINE9) || \ - ((LINE) == EXTI_LINE10) || ((LINE) == EXTI_LINE11) || \ - ((LINE) == EXTI_LINE12) || ((LINE) == EXTI_LINE13) || \ - ((LINE) == EXTI_LINE14) || ((LINE) == EXTI_LINE15) || \ - ((LINE) == EXTI_LINE16) || ((LINE) == EXTI_LINE17) || \ - ((LINE) == EXTI_LINE18) || ((LINE) == EXTI_LINE19) || \ - ((LINE) == EXTI_LINE20) || ((LINE) == EXTI_LINE21) || \ - ((LINE) == EXTI_LINE22) || ((LINE) == EXTI_LINE23) || \ - ((LINE) == EXTI_LINE24) || ((LINE) == EXTI_LINE25) || \ - ((LINE) == EXTI_LINE26) || ((LINE) == EXTI_LINE27) || \ - ((LINE) == EXTI_LINE28) || ((LINE) == EXTI_LINE29) || \ - ((LINE) == EXTI_LINE30) || ((LINE) == EXTI_LINE31) || \ - ((LINE) == EXTI_LINE32) || ((LINE) == EXTI_LINE33) || \ - ((LINE) == EXTI_LINE34) || ((LINE) == EXTI_LINE35) || \ - ((LINE) == EXTI_LINE36) || ((LINE) == EXTI_LINE37) || \ - ((LINE) == EXTI_LINE38) || ((LINE) == EXTI_LINE39) || \ - ((LINE) == EXTI_LINE40) || ((LINE) == EXTI_LINE41) || \ - ((LINE) == EXTI_LINE42) || ((LINE) == EXTI_LINE43) || \ - ((LINE) == EXTI_LINE44) || ((LINE) == EXTI_LINE46) || \ - ((LINE) == EXTI_LINE47) || ((LINE) == EXTI_LINE48) || \ - ((LINE) == EXTI_LINE49) || ((LINE) == EXTI_LINE50) || \ - ((LINE) == EXTI_LINE51) || ((LINE) == EXTI_LINE52) || \ - ((LINE) == EXTI_LINE53) || ((LINE) == EXTI_LINE54) || \ - ((LINE) == EXTI_LINE55) || ((LINE) == EXTI_LINE56) || \ - ((LINE) == EXTI_LINE57) || ((LINE) == EXTI_LINE58) || \ - ((LINE) == EXTI_LINE59) || ((LINE) == EXTI_LINE60) || \ - ((LINE) == EXTI_LINE61) || ((LINE) == EXTI_LINE62) || \ - ((LINE) == EXTI_LINE63) || ((LINE) == EXTI_LINE64) || \ - ((LINE) == EXTI_LINE65) || ((LINE) == EXTI_LINE66) || \ - ((LINE) == EXTI_LINE67) || ((LINE) == EXTI_LINE68) || \ - ((LINE) == EXTI_LINE69) || ((LINE) == EXTI_LINE70) || \ - ((LINE) == EXTI_LINE71) || ((LINE) == EXTI_LINE72) || \ - ((LINE) == EXTI_LINE73) || ((LINE) == EXTI_LINE74) || \ - ((LINE) == EXTI_LINE75) || ((LINE) == EXTI_LINE76) || \ - ((LINE) == EXTI_LINE78) || ((LINE) == EXTI_LINE80) || \ - ((LINE) == EXTI_LINE82) || ((LINE) == EXTI_LINE85) || \ - ((LINE) == EXTI_LINE86) || ((LINE) == EXTI_LINE87)) -#endif /*DUAL_CORE*/ - -#if defined(DUAL_CORE) -#define IS_EXTI_D3_LINE(LINE) (((LINE) == EXTI_LINE0) || ((LINE) == EXTI_LINE1) || \ - ((LINE) == EXTI_LINE2) || ((LINE) == EXTI_LINE3) || \ - ((LINE) == EXTI_LINE4) || ((LINE) == EXTI_LINE5) || \ - ((LINE) == EXTI_LINE6) || ((LINE) == EXTI_LINE7) || \ - ((LINE) == EXTI_LINE8) || ((LINE) == EXTI_LINE9) || \ - ((LINE) == EXTI_LINE10) || ((LINE) == EXTI_LINE11) || \ - ((LINE) == EXTI_LINE12) || ((LINE) == EXTI_LINE13) || \ - ((LINE) == EXTI_LINE14) || ((LINE) == EXTI_LINE15) || \ - ((LINE) == EXTI_LINE19) || ((LINE) == EXTI_LINE20) || \ - ((LINE) == EXTI_LINE21) || ((LINE) == EXTI_LINE25) || \ - ((LINE) == EXTI_LINE34) || ((LINE) == EXTI_LINE35) || \ - ((LINE) == EXTI_LINE41) || ((LINE) == EXTI_LINE48) || \ - ((LINE) == EXTI_LINE49) || ((LINE) == EXTI_LINE50) || \ - ((LINE) == EXTI_LINE51) || ((LINE) == EXTI_LINE52) || \ - ((LINE) == EXTI_LINE53)) -#elif (POWER_DOMAINS_NUMBER == 3U) -#define IS_EXTI_D3_LINE(LINE) (((LINE) == EXTI_LINE0) || ((LINE) == EXTI_LINE1) || \ - ((LINE) == EXTI_LINE2) || ((LINE) == EXTI_LINE3) || \ - ((LINE) == EXTI_LINE4) || ((LINE) == EXTI_LINE5) || \ - ((LINE) == EXTI_LINE6) || ((LINE) == EXTI_LINE7) || \ - ((LINE) == EXTI_LINE8) || ((LINE) == EXTI_LINE9) || \ - ((LINE) == EXTI_LINE10) || ((LINE) == EXTI_LINE11) || \ - ((LINE) == EXTI_LINE12) || ((LINE) == EXTI_LINE13) || \ - ((LINE) == EXTI_LINE14) || ((LINE) == EXTI_LINE15) || \ - ((LINE) == EXTI_LINE19) || ((LINE) == EXTI_LINE20) || \ - ((LINE) == EXTI_LINE21) || ((LINE) == EXTI_LINE25) || \ - ((LINE) == EXTI_LINE34) || ((LINE) == EXTI_LINE35) || \ - ((LINE) == EXTI_LINE41) || ((LINE) == EXTI_LINE48) || \ - ((LINE) == EXTI_LINE49) || ((LINE) == EXTI_LINE50) || \ - ((LINE) == EXTI_LINE51) || ((LINE) == EXTI_LINE52) || \ - ((LINE) == EXTI_LINE53) || ((LINE) == EXTI_LINE88)) -#else -#define IS_EXTI_D3_LINE(LINE) (((LINE) == EXTI_LINE0) || ((LINE) == EXTI_LINE1) || \ - ((LINE) == EXTI_LINE2) || ((LINE) == EXTI_LINE3) || \ - ((LINE) == EXTI_LINE4) || ((LINE) == EXTI_LINE5) || \ - ((LINE) == EXTI_LINE6) || ((LINE) == EXTI_LINE7) || \ - ((LINE) == EXTI_LINE8) || ((LINE) == EXTI_LINE9) || \ - ((LINE) == EXTI_LINE10) || ((LINE) == EXTI_LINE11) || \ - ((LINE) == EXTI_LINE12) || ((LINE) == EXTI_LINE13) || \ - ((LINE) == EXTI_LINE14) || ((LINE) == EXTI_LINE15) || \ - ((LINE) == EXTI_LINE19) || ((LINE) == EXTI_LINE20) || \ - ((LINE) == EXTI_LINE21) || ((LINE) == EXTI_LINE25) || \ - ((LINE) == EXTI_LINE34) || ((LINE) == EXTI_LINE35) || \ - ((LINE) == EXTI_LINE41) || ((LINE) == EXTI_LINE48) || \ - ((LINE) == EXTI_LINE49) || ((LINE) == EXTI_LINE50) || \ - ((LINE) == EXTI_LINE51) || ((LINE) == EXTI_LINE88)) -#endif /*DUAL_CORE*/ - - -#define BDMA_CH6_CLEAR ((uint32_t)0x00000000) /*!< BDMA ch6 event selected as D3 domain pendclear source*/ -#define BDMA_CH7_CLEAR ((uint32_t)0x00000001) /*!< BDMA ch7 event selected as D3 domain pendclear source*/ -#if defined (LPTIM4) -#define LPTIM4_OUT_CLEAR ((uint32_t)0x00000002) /*!< LPTIM4 out selected as D3 domain pendclear source*/ -#else -#define LPTIM2_OUT_CLEAR ((uint32_t)0x00000002) /*!< LPTIM2 out selected as D3 domain pendclear source*/ -#endif /* LPTIM4 */ -#if defined (LPTIM5) -#define LPTIM5_OUT_CLEAR ((uint32_t)0x00000003) /*!< LPTIM5 out selected as D3 domain pendclear source*/ -#else -#define LPTIM3_OUT_CLEAR ((uint32_t)0x00000003) /*!< LPTIM3 out selected as D3 domain pendclear source*/ -#endif /* LPTIM5 */ -#if defined (LPTIM4) && defined (LPTIM5) -#define IS_EXTI_D3_CLEAR(SOURCE) (((SOURCE) == BDMA_CH6_CLEAR) || ((SOURCE) == BDMA_CH7_CLEAR) || \ - ((SOURCE) == LPTIM4_OUT_CLEAR) || ((SOURCE) == LPTIM5_OUT_CLEAR)) -#else -#define IS_EXTI_D3_CLEAR(SOURCE) (((SOURCE) == BDMA_CH6_CLEAR) || ((SOURCE) == BDMA_CH7_CLEAR) || \ - ((SOURCE) == LPTIM2_OUT_CLEAR) || ((SOURCE) == LPTIM3_OUT_CLEAR)) -#endif /* LPTIM4 LPTIM5 */ -/** - * @} - */ - - -/** @defgroup FMC_SwapBankMapping_Config SwapBankMapping Config - * @{ - */ -#define FMC_SWAPBMAP_DISABLE (0x00000000U) -#define FMC_SWAPBMAP_SDRAM_SRAM FMC_BCR1_BMAP_0 -#define FMC_SWAPBMAP_SDRAMB2 FMC_BCR1_BMAP_1 - -#define IS_FMC_SWAPBMAP_MODE(__MODE__) (((__MODE__) == FMC_SWAPBMAP_DISABLE) || \ - ((__MODE__) == FMC_SWAPBMAP_SDRAM_SRAM) || \ - ((__MODE__) == FMC_SWAPBMAP_SDRAMB2)) -/** - * @} - */ -/** - * @} - */ - -/* Exported macro ------------------------------------------------------------*/ -/** @defgroup HAL_Exported_Macros HAL Exported Macros - * @{ - */ -#if defined(DUAL_CORE) -/** @defgroup ART_Exported_Macros ART Exported Macros - * @{ - */ - -/** @brief ART Enable Macro. - * Enable the Cortex-M4 ART cache. - */ -#define __HAL_ART_ENABLE() SET_BIT(ART->CTR, ART_CTR_EN) - -/** @brief ART Disable Macro. - * Disable the Cortex-M4 ART cache. - */ -#define __HAL_ART_DISABLE() CLEAR_BIT(ART->CTR, ART_CTR_EN) - -/** @brief ART Cache BaseAddress Config. - * Configure the Cortex-M4 ART cache Base Address. - */ -#define __HAL_ART_CONFIG_BASE_ADDRESS(__BASE_ADDRESS__) MODIFY_REG(ART->CTR, ART_CTR_PCACHEADDR, (((__BASE_ADDRESS__) >> 12U) & 0x000FFF00UL)) - -/** - * @} - */ -#endif /* DUAL_CORE */ - -/** @defgroup SYSCFG_Exported_Macros SYSCFG Exported Macros - * @{ - */ - -/** @brief SYSCFG Break AXIRAM double ECC lock. - * Enable and lock the connection of AXIRAM double ECC error to TIM1/8/15/16/17 and HRTIMER Break input. - * @note The selected configuration is locked and can be unlocked only by system reset. - This feature is available on STM32H7 rev.B and above. - */ -#define __HAL_SYSCFG_BREAK_AXISRAM_DBL_ECC_LOCK() SET_BIT(SYSCFG->CFGR, SYSCFG_CFGR_AXISRAML) - -/** @brief SYSCFG Break ITCM double ECC lock. - * Enable and lock the connection of ITCM double ECC error to TIM1/8/15/16/17 and HRTIMER Break input. - * @note The selected configuration is locked and can be unlocked only by system reset. - This feature is available on STM32H7 rev.B and above. - */ -#define __HAL_SYSCFG_BREAK_ITCM_DBL_ECC_LOCK() SET_BIT(SYSCFG->CFGR, SYSCFG_CFGR_ITCML) - -/** @brief SYSCFG Break DTCM double ECC lock. - * Enable and lock the connection of DTCM double ECC error to TIM1/8/15/16/17 and HRTIMER Break input. - * @note The selected configuration is locked and can be unlocked only by system reset. - This feature is available on STM32H7 rev.B and above. - */ -#define __HAL_SYSCFG_BREAK_DTCM_DBL_ECC_LOCK() SET_BIT(SYSCFG->CFGR, SYSCFG_CFGR_DTCML) - -/** @brief SYSCFG Break SRAM1 double ECC lock. - * Enable and lock the connection of SRAM1 double ECC error to TIM1/8/15/16/17 and HRTIMER Break input. - * @note The selected configuration is locked and can be unlocked only by system reset. - This feature is available on STM32H7 rev.B and above. - */ -#define __HAL_SYSCFG_BREAK_SRAM1_DBL_ECC_LOCK() SET_BIT(SYSCFG->CFGR, SYSCFG_CFGR_SRAM1L) - -/** @brief SYSCFG Break SRAM2 double ECC lock. - * Enable and lock the connection of SRAM2 double ECC error to TIM1/8/15/16/17 and HRTIMER Break input. - * @note The selected configuration is locked and can be unlocked only by system reset. - This feature is available on STM32H7 rev.B and above. - */ -#define __HAL_SYSCFG_BREAK_SRAM2_DBL_ECC_LOCK() SET_BIT(SYSCFG->CFGR, SYSCFG_CFGR_SRAM2L) - -/** @brief SYSCFG Break SRAM3 double ECC lock. - * Enable and lock the connection of SRAM3 double ECC error to TIM1/8/15/16/17 and HRTIMER Break input. - * @note The selected configuration is locked and can be unlocked only by system reset. - This feature is available on STM32H7 rev.B and above. - */ -#define __HAL_SYSCFG_BREAK_SRAM3_DBL_ECC_LOCK() SET_BIT(SYSCFG->CFGR, SYSCFG_CFGR_SRAM3L) - -/** @brief SYSCFG Break SRAM4 double ECC lock. - * Enable and lock the connection of SRAM4 double ECC error to TIM1/8/15/16/17 and HRTIMER Break input. - * @note The selected configuration is locked and can be unlocked only by system reset. - This feature is available on STM32H7 rev.B and above. - */ -#define __HAL_SYSCFG_BREAK_SRAM4_DBL_ECC_LOCK() SET_BIT(SYSCFG->CFGR, SYSCFG_CFGR_SRAM4L) - -/** @brief SYSCFG Break Backup SRAM double ECC lock. - * Enable and lock the connection of Backup SRAM double ECC error to TIM1/8/15/16/17 and HRTIMER Break input. - * @note The selected configuration is locked and can be unlocked only by system reset. - This feature is available on STM32H7 rev.B and above. - */ -#define __HAL_SYSCFG_BREAK_BKRAM_DBL_ECC_LOCK() SET_BIT(SYSCFG->CFGR, SYSCFG_CFGR_BKRAML) - -/** @brief SYSCFG Break Cortex-M7 Lockup lock. - * Enable and lock the connection of Cortex-M7 LOCKUP output to TIM1/8/15/16/17 and HRTIMER Break input. - * @note The selected configuration is locked and can be unlocked only by system reset. - This feature is available on STM32H7 rev.B and above. - */ -#define __HAL_SYSCFG_BREAK_CM7_LOCKUP_LOCK() SET_BIT(SYSCFG->CFGR, SYSCFG_CFGR_CM7L) - -/** @brief SYSCFG Break FLASH double ECC lock. - * Enable and lock the connection of Flash double ECC error connection to TIM1/8/15/16/17 and HRTIMER Break input. - * @note The selected configuration is locked and can be unlocked only by system reset. - This feature is available on STM32H7 rev.B and above. - */ -#define __HAL_SYSCFG_BREAK_FLASH_DBL_ECC_LOCK() SET_BIT(SYSCFG->CFGR, SYSCFG_CFGR_FLASHL) - -/** @brief SYSCFG Break PVD lock. - * Enable and lock the PVD connection to Timer1/8/15/16/17 and HRTIMER Break input, as well as the PVDE and PLS[2:0] in the PWR_CR1 register. - * @note The selected configuration is locked and can be unlocked only by system reset. - This feature is available on STM32H7 rev.B and above. - */ -#define __HAL_SYSCFG_BREAK_PVD_LOCK() SET_BIT(SYSCFG->CFGR, SYSCFG_CFGR_PVDL) - -#if defined(DUAL_CORE) -/** @brief SYSCFG Break Cortex-M4 Lockup lock. - * Enable and lock the connection of Cortex-M4 LOCKUP output to TIM1/8/15/16/17 and HRTIMER Break input. - * @note The selected configuration is locked and can be unlocked only by system reset. - This feature is available on STM32H7 rev.B and above. - */ -#define __HAL_SYSCFG_BREAK_CM4_LOCKUP_LOCK() SET_BIT(SYSCFG->CFGR, SYSCFG_CFGR_CM4L) -#endif /* DUAL_CORE */ - -#if !defined(SYSCFG_PMCR_BOOSTEN) -/** @brief Fast-mode Plus driving capability enable/disable macros - * @param __FASTMODEPLUS__ This parameter can be a value of : - * @arg @ref SYSCFG_FASTMODEPLUS_PB6 Fast-mode Plus driving capability activation on PB6 - * @arg @ref SYSCFG_FASTMODEPLUS_PB7 Fast-mode Plus driving capability activation on PB7 - * @arg @ref SYSCFG_FASTMODEPLUS_PB8 Fast-mode Plus driving capability activation on PB8 - * @arg @ref SYSCFG_FASTMODEPLUS_PB9 Fast-mode Plus driving capability activation on PB9 - */ -#define __HAL_SYSCFG_FASTMODEPLUS_ENABLE(__FASTMODEPLUS__) do {assert_param(IS_SYSCFG_FASTMODEPLUS((__FASTMODEPLUS__)));\ - SET_BIT(SYSCFG->PMCR, (__FASTMODEPLUS__));\ - }while(0) - -#define __HAL_SYSCFG_FASTMODEPLUS_DISABLE(__FASTMODEPLUS__) do {assert_param(IS_SYSCFG_FASTMODEPLUS((__FASTMODEPLUS__)));\ - CLEAR_BIT(SYSCFG->PMCR, (__FASTMODEPLUS__));\ - }while(0) - -#endif /* !SYSCFG_PMCR_BOOSTEN */ -/** - * @} - */ - -/** @defgroup DBG_Exported_Macros DBG Exported Macros - * @{ - */ - -/** @brief Freeze/Unfreeze Peripherals in Debug mode - */ -#define __HAL_DBGMCU_FREEZE_WWDG1() (DBGMCU->APB3FZ1 |= (DBGMCU_APB3FZ1_DBG_WWDG1)) - -#define __HAL_DBGMCU_FREEZE_TIM2() (DBGMCU->APB1LFZ1 |= (DBGMCU_APB1LFZ1_DBG_TIM2)) -#define __HAL_DBGMCU_FREEZE_TIM3() (DBGMCU->APB1LFZ1 |= (DBGMCU_APB1LFZ1_DBG_TIM3)) -#define __HAL_DBGMCU_FREEZE_TIM4() (DBGMCU->APB1LFZ1 |= (DBGMCU_APB1LFZ1_DBG_TIM4)) -#define __HAL_DBGMCU_FREEZE_TIM5() (DBGMCU->APB1LFZ1 |= (DBGMCU_APB1LFZ1_DBG_TIM5)) -#define __HAL_DBGMCU_FREEZE_TIM6() (DBGMCU->APB1LFZ1 |= (DBGMCU_APB1LFZ1_DBG_TIM6)) -#define __HAL_DBGMCU_FREEZE_TIM7() (DBGMCU->APB1LFZ1 |= (DBGMCU_APB1LFZ1_DBG_TIM7)) -#define __HAL_DBGMCU_FREEZE_TIM12() (DBGMCU->APB1LFZ1 |= (DBGMCU_APB1LFZ1_DBG_TIM12)) -#define __HAL_DBGMCU_FREEZE_TIM13() (DBGMCU->APB1LFZ1 |= (DBGMCU_APB1LFZ1_DBG_TIM13)) -#define __HAL_DBGMCU_FREEZE_TIM14() (DBGMCU->APB1LFZ1 |= (DBGMCU_APB1LFZ1_DBG_TIM14)) -#define __HAL_DBGMCU_FREEZE_LPTIM1() (DBGMCU->APB1LFZ1 |= (DBGMCU_APB1LFZ1_DBG_LPTIM1)) -#define __HAL_DBGMCU_FREEZE_I2C1() (DBGMCU->APB1LFZ1 |= (DBGMCU_APB1LFZ1_DBG_I2C1)) -#define __HAL_DBGMCU_FREEZE_I2C2() (DBGMCU->APB1LFZ1 |= (DBGMCU_APB1LFZ1_DBG_I2C2)) -#define __HAL_DBGMCU_FREEZE_I2C3() (DBGMCU->APB1LFZ1 |= (DBGMCU_APB1LFZ1_DBG_I2C3)) -#if defined(I2C5) -#define __HAL_DBGMCU_FREEZE_I2C5() (DBGMCU->APB1LFZ1 |= (DBGMCU_APB1LFZ1_DBG_I2C5)) -#endif /*I2C5*/ -#if defined(DBGMCU_APB1HFZ1_DBG_FDCAN) -#define __HAL_DBGMCU_FREEZE_FDCAN() (DBGMCU->APB1HFZ1 |= (DBGMCU_APB1HFZ1_DBG_FDCAN)) -#endif /*DBGMCU_APB1HFZ1_DBG_FDCAN*/ - -#if defined(TIM23) -#define __HAL_DBGMCU_FREEZE_TIM23() (DBGMCU->APB1HFZ1 |= (DBGMCU_APB1HFZ1_DBG_TIM23)) -#endif /*TIM23*/ -#if defined(TIM24) -#define __HAL_DBGMCU_FREEZE_TIM24() (DBGMCU->APB1HFZ1 |= (DBGMCU_APB1HFZ1_DBG_TIM24)) -#endif /*TIM24*/ - -#define __HAL_DBGMCU_FREEZE_TIM1() (DBGMCU->APB2FZ1 |= (DBGMCU_APB2FZ1_DBG_TIM1)) -#define __HAL_DBGMCU_FREEZE_TIM8() (DBGMCU->APB2FZ1 |= (DBGMCU_APB2FZ1_DBG_TIM8)) -#define __HAL_DBGMCU_FREEZE_TIM15() (DBGMCU->APB2FZ1 |= (DBGMCU_APB2FZ1_DBG_TIM15)) -#define __HAL_DBGMCU_FREEZE_TIM16() (DBGMCU->APB2FZ1 |= (DBGMCU_APB2FZ1_DBG_TIM16)) -#define __HAL_DBGMCU_FREEZE_TIM17() (DBGMCU->APB2FZ1 |= (DBGMCU_APB2FZ1_DBG_TIM17)) -#define __HAL_DBGMCU_FREEZE_HRTIM() (DBGMCU->APB2FZ1 |= (DBGMCU_APB2FZ1_DBG_HRTIM)) - -#define __HAL_DBGMCU_FREEZE_I2C4() (DBGMCU->APB4FZ1 |= (DBGMCU_APB4FZ1_DBG_I2C4)) -#define __HAL_DBGMCU_FREEZE_LPTIM2() (DBGMCU->APB4FZ1 |= (DBGMCU_APB4FZ1_DBG_LPTIM2)) -#define __HAL_DBGMCU_FREEZE_LPTIM3() (DBGMCU->APB4FZ1 |= (DBGMCU_APB4FZ1_DBG_LPTIM3)) -#define __HAL_DBGMCU_FREEZE_LPTIM4() (DBGMCU->APB4FZ1 |= (DBGMCU_APB4FZ1_DBG_LPTIM4)) -#define __HAL_DBGMCU_FREEZE_LPTIM5() (DBGMCU->APB4FZ1 |= (DBGMCU_APB4FZ1_DBG_LPTIM5)) -#define __HAL_DBGMCU_FREEZE_RTC() (DBGMCU->APB4FZ1 |= (DBGMCU_APB4FZ1_DBG_RTC)) -#define __HAL_DBGMCU_FREEZE_IWDG1() (DBGMCU->APB4FZ1 |= (DBGMCU_APB4FZ1_DBG_IWDG1)) - - -#define __HAL_DBGMCU_UnFreeze_WWDG1() (DBGMCU->APB3FZ1 &= ~ (DBGMCU_APB3FZ1_DBG_WWDG1)) - -#define __HAL_DBGMCU_UnFreeze_TIM2() (DBGMCU->APB1LFZ1 &= ~ (DBGMCU_APB1LFZ1_DBG_TIM2)) -#define __HAL_DBGMCU_UnFreeze_TIM3() (DBGMCU->APB1LFZ1 &= ~ (DBGMCU_APB1LFZ1_DBG_TIM3)) -#define __HAL_DBGMCU_UnFreeze_TIM4() (DBGMCU->APB1LFZ1 &= ~ (DBGMCU_APB1LFZ1_DBG_TIM4)) -#define __HAL_DBGMCU_UnFreeze_TIM5() (DBGMCU->APB1LFZ1 &= ~ (DBGMCU_APB1LFZ1_DBG_TIM5)) -#define __HAL_DBGMCU_UnFreeze_TIM6() (DBGMCU->APB1LFZ1 &= ~ (DBGMCU_APB1LFZ1_DBG_TIM6)) -#define __HAL_DBGMCU_UnFreeze_TIM7() (DBGMCU->APB1LFZ1 &= ~ (DBGMCU_APB1LFZ1_DBG_TIM7)) -#define __HAL_DBGMCU_UnFreeze_TIM12() (DBGMCU->APB1LFZ1 &= ~ (DBGMCU_APB1LFZ1_DBG_TIM12)) -#define __HAL_DBGMCU_UnFreeze_TIM13() (DBGMCU->APB1LFZ1 &= ~ (DBGMCU_APB1LFZ1_DBG_TIM13)) -#define __HAL_DBGMCU_UnFreeze_TIM14() (DBGMCU->APB1LFZ1 &= ~ (DBGMCU_APB1LFZ1_DBG_TIM14)) -#define __HAL_DBGMCU_UnFreeze_LPTIM1() (DBGMCU->APB1LFZ1 &= ~ (DBGMCU_APB1LFZ1_DBG_LPTIM1)) -#define __HAL_DBGMCU_UnFreeze_I2C1() (DBGMCU->APB1LFZ1 &= ~ (DBGMCU_APB1LFZ1_DBG_I2C1)) -#define __HAL_DBGMCU_UnFreeze_I2C2() (DBGMCU->APB1LFZ1 &= ~ (DBGMCU_APB1LFZ1_DBG_I2C2)) -#define __HAL_DBGMCU_UnFreeze_I2C3() (DBGMCU->APB1LFZ1 &= ~ (DBGMCU_APB1LFZ1_DBG_I2C3)) -#if defined(I2C5) -#define __HAL_DBGMCU_UnFreeze_I2C5() (DBGMCU->APB1LFZ1 &= ~ (DBGMCU_APB1LFZ1_DBG_I2C5)) -#endif /*I2C5*/ -#if defined(DBGMCU_APB1HFZ1_DBG_FDCAN) -#define __HAL_DBGMCU_UnFreeze_FDCAN() (DBGMCU->APB1HFZ1 &= ~ (DBGMCU_APB1HFZ1_DBG_FDCAN)) -#endif /*DBGMCU_APB1HFZ1_DBG_FDCAN*/ - -#if defined(TIM23) -#define __HAL_DBGMCU_UnFreeze_TIM23() (DBGMCU->APB1HFZ1 &= ~ (DBGMCU_APB1HFZ1_DBG_TIM23)) -#endif /*TIM23*/ -#if defined(TIM24) -#define __HAL_DBGMCU_UnFreeze_TIM24() (DBGMCU->APB1HFZ1 &= ~ (DBGMCU_APB1HFZ1_DBG_TIM24)) -#endif /*TIM24*/ - -#define __HAL_DBGMCU_UnFreeze_TIM1() (DBGMCU->APB2FZ1 &= ~ (DBGMCU_APB2FZ1_DBG_TIM1)) -#define __HAL_DBGMCU_UnFreeze_TIM8() (DBGMCU->APB2FZ1 &= ~ (DBGMCU_APB2FZ1_DBG_TIM8)) -#define __HAL_DBGMCU_UnFreeze_TIM15() (DBGMCU->APB2FZ1 &= ~ (DBGMCU_APB2FZ1_DBG_TIM15)) -#define __HAL_DBGMCU_UnFreeze_TIM16() (DBGMCU->APB2FZ1 &= ~ (DBGMCU_APB2FZ1_DBG_TIM16)) -#define __HAL_DBGMCU_UnFreeze_TIM17() (DBGMCU->APB2FZ1 &= ~ (DBGMCU_APB2FZ1_DBG_TIM17)) -#define __HAL_DBGMCU_UnFreeze_HRTIM() (DBGMCU->APB2FZ1 &= ~ (DBGMCU_APB2FZ1_DBG_HRTIM)) - -#define __HAL_DBGMCU_UnFreeze_I2C4() (DBGMCU->APB4FZ1 &= ~ (DBGMCU_APB4FZ1_DBG_I2C4)) -#define __HAL_DBGMCU_UnFreeze_LPTIM2() (DBGMCU->APB4FZ1 &= ~ (DBGMCU_APB4FZ1_DBG_LPTIM2)) -#define __HAL_DBGMCU_UnFreeze_LPTIM3() (DBGMCU->APB4FZ1 &= ~ (DBGMCU_APB4FZ1_DBG_LPTIM3)) -#define __HAL_DBGMCU_UnFreeze_LPTIM4() (DBGMCU->APB4FZ1 &= ~ (DBGMCU_APB4FZ1_DBG_LPTIM4)) -#define __HAL_DBGMCU_UnFreeze_LPTIM5() (DBGMCU->APB4FZ1 &= ~ (DBGMCU_APB4FZ1_DBG_LPTIM5)) -#define __HAL_DBGMCU_UnFreeze_RTC() (DBGMCU->APB4FZ1 &= ~ (DBGMCU_APB4FZ1_DBG_RTC)) -#define __HAL_DBGMCU_UnFreeze_IWDG1() (DBGMCU->APB4FZ1 &= ~ (DBGMCU_APB4FZ1_DBG_IWDG1)) - - -#if defined(DUAL_CORE) -#define __HAL_DBGMCU_FREEZE2_IWDG2() (DBGMCU->APB4FZ2 |= (DBGMCU_APB4FZ2_DBG_IWDG2)) -#define __HAL_DBGMCU_FREEZE2_WWDG2() (DBGMCU->APB1LFZ2 |= (DBGMCU_APB1LFZ2_DBG_WWDG2)) - -#define __HAL_DBGMCU_UnFreeze2_IWDG2() (DBGMCU->APB4FZ2 &= ~ (DBGMCU_APB4FZ2_DBG_IWDG2)) -#define __HAL_DBGMCU_UnFreeze2_WWDG2() (DBGMCU->APB1LFZ2 &= ~ (DBGMCU_APB1LFZ2_DBG_WWDG2)) - - -#define __HAL_DBGMCU_FREEZE2_WWDG1() (DBGMCU->APB3FZ2 |= (DBGMCU_APB3FZ2_DBG_WWDG1)) - -#define __HAL_DBGMCU_FREEZE2_TIM2() (DBGMCU->APB1LFZ2 |= (DBGMCU_APB1LFZ2_DBG_TIM2)) -#define __HAL_DBGMCU_FREEZE2_TIM3() (DBGMCU->APB1LFZ2 |= (DBGMCU_APB1LFZ2_DBG_TIM3)) -#define __HAL_DBGMCU_FREEZE2_TIM4() (DBGMCU->APB1LFZ2 |= (DBGMCU_APB1LFZ2_DBG_TIM4)) -#define __HAL_DBGMCU_FREEZE2_TIM5() (DBGMCU->APB1LFZ2 |= (DBGMCU_APB1LFZ2_DBG_TIM5)) -#define __HAL_DBGMCU_FREEZE2_TIM6() (DBGMCU->APB1LFZ2 |= (DBGMCU_APB1LFZ2_DBG_TIM6)) -#define __HAL_DBGMCU_FREEZE2_TIM7() (DBGMCU->APB1LFZ2 |= (DBGMCU_APB1LFZ2_DBG_TIM7)) -#define __HAL_DBGMCU_FREEZE2_TIM12() (DBGMCU->APB1LFZ2 |= (DBGMCU_APB1LFZ2_DBG_TIM12)) -#define __HAL_DBGMCU_FREEZE2_TIM13() (DBGMCU->APB1LFZ2 |= (DBGMCU_APB1LFZ2_DBG_TIM13)) -#define __HAL_DBGMCU_FREEZE2_TIM14() (DBGMCU->APB1LFZ2 |= (DBGMCU_APB1LFZ2_DBG_TIM14)) -#define __HAL_DBGMCU_FREEZE2_LPTIM1() (DBGMCU->APB1LFZ2 |= (DBGMCU_APB1LFZ2_DBG_LPTIM1)) -#define __HAL_DBGMCU_FREEZE2_I2C1() (DBGMCU->APB1LFZ2 |= (DBGMCU_APB1LFZ2_DBG_I2C1)) -#define __HAL_DBGMCU_FREEZE2_I2C2() (DBGMCU->APB1LFZ2 |= (DBGMCU_APB1LFZ2_DBG_I2C2)) -#define __HAL_DBGMCU_FREEZE2_I2C3() (DBGMCU->APB1LFZ2 |= (DBGMCU_APB1LFZ2_DBG_I2C3)) -#define __HAL_DBGMCU_FREEZE2_FDCAN() (DBGMCU->APB1HFZ2 |= (DBGMCU_APB1HFZ2_DBG_FDCAN)) - - -#define __HAL_DBGMCU_FREEZE2_TIM1() (DBGMCU->APB2FZ2 |= (DBGMCU_APB2FZ2_DBG_TIM1)) -#define __HAL_DBGMCU_FREEZE2_TIM8() (DBGMCU->APB2FZ2 |= (DBGMCU_APB2FZ2_DBG_TIM8)) -#define __HAL_DBGMCU_FREEZE2_TIM15() (DBGMCU->APB2FZ2 |= (DBGMCU_APB2FZ2_DBG_TIM15)) -#define __HAL_DBGMCU_FREEZE2_TIM16() (DBGMCU->APB2FZ2 |= (DBGMCU_APB2FZ2_DBG_TIM16)) -#define __HAL_DBGMCU_FREEZE2_TIM17() (DBGMCU->APB2FZ2 |= (DBGMCU_APB2FZ2_DBG_TIM17)) -#define __HAL_DBGMCU_FREEZE2_HRTIM() (DBGMCU->APB2FZ2 |= (DBGMCU_APB2FZ2_DBG_HRTIM)) - -#define __HAL_DBGMCU_FREEZE2_I2C4() (DBGMCU->APB4FZ2 |= (DBGMCU_APB4FZ2_DBG_I2C4)) -#define __HAL_DBGMCU_FREEZE2_LPTIM2() (DBGMCU->APB4FZ2 |= (DBGMCU_APB4FZ2_DBG_LPTIM2)) -#define __HAL_DBGMCU_FREEZE2_LPTIM3() (DBGMCU->APB4FZ2 |= (DBGMCU_APB4FZ2_DBG_LPTIM3)) -#define __HAL_DBGMCU_FREEZE2_LPTIM4() (DBGMCU->APB4FZ2 |= (DBGMCU_APB4FZ2_DBG_LPTIM4)) -#define __HAL_DBGMCU_FREEZE2_LPTIM5() (DBGMCU->APB4FZ2 |= (DBGMCU_APB4FZ2_DBG_LPTIM5)) -#define __HAL_DBGMCU_FREEZE2_RTC() (DBGMCU->APB4FZ2 |= (DBGMCU_APB4FZ2_DBG_RTC)) -#define __HAL_DBGMCU_FREEZE2_IWDG1() (DBGMCU->APB4FZ2 |= (DBGMCU_APB4FZ2_DBG_IWDG1)) - -#define __HAL_DBGMCU_UnFreeze2_WWDG1() (DBGMCU->APB3FZ2 &= ~ (DBGMCU_APB3FZ2_DBG_WWDG1)) - -#define __HAL_DBGMCU_UnFreeze2_TIM2() (DBGMCU->APB1LFZ2 &= ~ (DBGMCU_APB1LFZ2_DBG_TIM2)) -#define __HAL_DBGMCU_UnFreeze2_TIM3() (DBGMCU->APB1LFZ2 &= ~ (DBGMCU_APB1LFZ2_DBG_TIM3)) -#define __HAL_DBGMCU_UnFreeze2_TIM4() (DBGMCU->APB1LFZ2 &= ~ (DBGMCU_APB1LFZ2_DBG_TIM4)) -#define __HAL_DBGMCU_UnFreeze2_TIM5() (DBGMCU->APB1LFZ2 &= ~ (DBGMCU_APB1LFZ2_DBG_TIM5)) -#define __HAL_DBGMCU_UnFreeze2_TIM6() (DBGMCU->APB1LFZ2 &= ~ (DBGMCU_APB1LFZ2_DBG_TIM6)) -#define __HAL_DBGMCU_UnFreeze2_TIM7() (DBGMCU->APB1LFZ2 &= ~ (DBGMCU_APB1LFZ2_DBG_TIM7)) -#define __HAL_DBGMCU_UnFreeze2_TIM12() (DBGMCU->APB1LFZ2 &= ~ (DBGMCU_APB1LFZ2_DBG_TIM12)) -#define __HAL_DBGMCU_UnFreeze2_TIM13() (DBGMCU->APB1LFZ2 &= ~ (DBGMCU_APB1LFZ2_DBG_TIM13)) -#define __HAL_DBGMCU_UnFreeze2_TIM14() (DBGMCU->APB1LFZ2 &= ~ (DBGMCU_APB1LFZ2_DBG_TIM14)) -#define __HAL_DBGMCU_UnFreeze2_LPTIM1() (DBGMCU->APB1LFZ2 &= ~ (DBGMCU_APB1LFZ2_DBG_LPTIM1)) -#define __HAL_DBGMCU_UnFreeze2_I2C1() (DBGMCU->APB1LFZ2 &= ~ (DBGMCU_APB1LFZ2_DBG_I2C1)) -#define __HAL_DBGMCU_UnFreeze2_I2C2() (DBGMCU->APB1LFZ2 &= ~ (DBGMCU_APB1LFZ2_DBG_I2C2)) -#define __HAL_DBGMCU_UnFreeze2_I2C3() (DBGMCU->APB1LFZ2 &= ~ (DBGMCU_APB1LFZ2_DBG_I2C3)) -#define __HAL_DBGMCU_UnFreeze2_FDCAN() (DBGMCU->APB1HFZ2 &= ~ (DBGMCU_APB1HFZ2_DBG_FDCAN)) - - -#define __HAL_DBGMCU_UnFreeze2_TIM1() (DBGMCU->APB2FZ2 &= ~ (DBGMCU_APB2FZ2_DBG_TIM1)) -#define __HAL_DBGMCU_UnFreeze2_TIM8() (DBGMCU->APB2FZ2 &= ~ (DBGMCU_APB2FZ2_DBG_TIM8)) -#define __HAL_DBGMCU_UnFreeze2_TIM15() (DBGMCU->APB2FZ2 &= ~ (DBGMCU_APB2FZ2_DBG_TIM15)) -#define __HAL_DBGMCU_UnFreeze2_TIM16() (DBGMCU->APB2FZ2 &= ~ (DBGMCU_APB2FZ2_DBG_TIM16)) -#define __HAL_DBGMCU_UnFreeze2_TIM17() (DBGMCU->APB2FZ2 &= ~ (DBGMCU_APB2FZ2_DBG_TIM17)) -#define __HAL_DBGMCU_UnFreeze2_HRTIM() (DBGMCU->APB2FZ2 &= ~ (DBGMCU_APB2FZ2_DBG_HRTIM)) - -#define __HAL_DBGMCU_UnFreeze2_I2C4() (DBGMCU->APB4FZ2 &= ~ (DBGMCU_APB4FZ2_DBG_I2C4)) -#define __HAL_DBGMCU_UnFreeze2_LPTIM2() (DBGMCU->APB4FZ2 &= ~ (DBGMCU_APB4FZ2_DBG_LPTIM2)) -#define __HAL_DBGMCU_UnFreeze2_LPTIM3() (DBGMCU->APB4FZ2 &= ~ (DBGMCU_APB4FZ2_DBG_LPTIM3)) -#define __HAL_DBGMCU_UnFreeze2_LPTIM4() (DBGMCU->APB4FZ2 &= ~ (DBGMCU_APB4FZ2_DBG_LPTIM4)) -#define __HAL_DBGMCU_UnFreeze2_LPTIM5() (DBGMCU->APB4FZ2 &= ~ (DBGMCU_APB4FZ2_DBG_LPTIM5)) -#define __HAL_DBGMCU_UnFreeze2_RTC() (DBGMCU->APB4FZ2 &= ~ (DBGMCU_APB4FZ2_DBG_RTC)) -#define __HAL_DBGMCU_UnFreeze2_IWDG1() (DBGMCU->APB4FZ2 &= ~ (DBGMCU_APB4FZ2_DBG_IWDG1)) - -#endif /*DUAL_CORE*/ -/** - * @} - */ -/** - * @} - */ - -/** @defgroup HAL_Private_Macros HAL Private Macros - * @{ - */ -#define IS_TICKFREQ(FREQ) (((FREQ) == HAL_TICK_FREQ_10HZ) || \ - ((FREQ) == HAL_TICK_FREQ_100HZ) || \ - ((FREQ) == HAL_TICK_FREQ_1KHZ)) -/** - * @} - */ - -/* Exported variables --------------------------------------------------------*/ - -/** @addtogroup HAL_Exported_Variables - * @{ - */ -extern __IO uint32_t uwTick; -extern uint32_t uwTickPrio; -extern HAL_TickFreqTypeDef uwTickFreq; -/** - * @} - */ - -/* Exported functions --------------------------------------------------------*/ -/** @defgroup HAL_Exported_Functions HAL Exported Functions - * @{ - */ -/* Initialization and de-initialization functions ******************************/ -/** @defgroup HAL_Group1 Initialization and de-initialization Functions - * @{ - */ -HAL_StatusTypeDef HAL_Init(void); -HAL_StatusTypeDef HAL_DeInit(void); -void HAL_MspInit(void); -void HAL_MspDeInit(void); -HAL_StatusTypeDef HAL_InitTick (uint32_t TickPriority); - -/** - * @} - */ - -/* Peripheral Control functions ************************************************/ -/** @defgroup HAL_Group2 HAL Control functions - * - */ -void HAL_IncTick(void); -void HAL_Delay(uint32_t Delay); -uint32_t HAL_GetTick(void); -uint32_t HAL_GetTickPrio(void); -HAL_StatusTypeDef HAL_SetTickFreq(HAL_TickFreqTypeDef Freq); -HAL_TickFreqTypeDef HAL_GetTickFreq(void); -void HAL_SuspendTick(void); -void HAL_ResumeTick(void); -uint32_t HAL_GetHalVersion(void); -uint32_t HAL_GetREVID(void); -uint32_t HAL_GetDEVID(void); -uint32_t HAL_GetUIDw0(void); -uint32_t HAL_GetUIDw1(void); -uint32_t HAL_GetUIDw2(void); -#if defined(SYSCFG_PMCR_EPIS_SEL) -void HAL_SYSCFG_ETHInterfaceSelect(uint32_t SYSCFG_ETHInterface); -#endif /* SYSCFG_PMCR_EPIS_SEL */ -void HAL_SYSCFG_AnalogSwitchConfig(uint32_t SYSCFG_AnalogSwitch , uint32_t SYSCFG_SwitchState ); -#if defined(SYSCFG_PMCR_BOOSTEN) -void HAL_SYSCFG_EnableBOOST(void); -void HAL_SYSCFG_DisableBOOST(void); -#endif /* SYSCFG_PMCR_BOOSTEN */ - -#if defined (SYSCFG_UR2_BOOT_ADD0) || defined (SYSCFG_UR2_BCM7_ADD0) -void HAL_SYSCFG_CM7BootAddConfig(uint32_t BootRegister, uint32_t BootAddress); -#endif /* SYSCFG_UR2_BOOT_ADD0 || SYSCFG_UR2_BCM7_ADD0*/ - -#if defined(DUAL_CORE) -void HAL_SYSCFG_CM4BootAddConfig(uint32_t BootRegister, uint32_t BootAddress); -void HAL_SYSCFG_EnableCM7BOOT(void); -void HAL_SYSCFG_DisableCM7BOOT(void); -void HAL_SYSCFG_EnableCM4BOOT(void); -void HAL_SYSCFG_DisableCM4BOOT(void); -#endif /*DUAL_CORE*/ -void HAL_EnableCompensationCell(void); -void HAL_DisableCompensationCell(void); -void HAL_SYSCFG_EnableIOSpeedOptimize(void); -void HAL_SYSCFG_DisableIOSpeedOptimize(void); -void HAL_SYSCFG_CompensationCodeSelect(uint32_t SYSCFG_CompCode); -void HAL_SYSCFG_CompensationCodeConfig(uint32_t SYSCFG_PMOSCode, uint32_t SYSCFG_NMOSCode); -#if defined(SYSCFG_CCCR_NCC_MMC) -void HAL_SYSCFG_VDDMMC_CompensationCodeConfig(uint32_t SYSCFG_PMOSCode, uint32_t SYSCFG_NMOSCode); -#endif /* SYSCFG_CCCR_NCC_MMC */ -void HAL_DBGMCU_EnableDBGSleepMode(void); -void HAL_DBGMCU_DisableDBGSleepMode(void); -void HAL_DBGMCU_EnableDBGStopMode(void); -void HAL_DBGMCU_DisableDBGStopMode(void); -void HAL_DBGMCU_EnableDBGStandbyMode(void); -void HAL_DBGMCU_DisableDBGStandbyMode(void); -#if defined(DUAL_CORE) -void HAL_EnableDomain2DBGSleepMode(void); -void HAL_DisableDomain2DBGSleepMode(void); -void HAL_EnableDomain2DBGStopMode(void); -void HAL_DisableDomain2DBGStopMode(void); -void HAL_EnableDomain2DBGStandbyMode(void); -void HAL_DisableDomain2DBGStandbyMode(void); -#endif /*DUAL_CORE*/ -#if defined(DBGMCU_CR_DBG_STOPD3) -void HAL_EnableDomain3DBGStopMode(void); -void HAL_DisableDomain3DBGStopMode(void); -#endif /*DBGMCU_CR_DBG_STOPD3*/ -#if defined(DBGMCU_CR_DBG_STANDBYD3) -void HAL_EnableDomain3DBGStandbyMode(void); -void HAL_DisableDomain3DBGStandbyMode(void); -#endif /*DBGMCU_CR_DBG_STANDBYD3*/ -void HAL_EXTI_EdgeConfig(uint32_t EXTI_Line , uint32_t EXTI_Edge ); -void HAL_EXTI_GenerateSWInterrupt(uint32_t EXTI_Line); -#if defined(DUAL_CORE) -void HAL_EXTI_D2_ClearFlag(uint32_t EXTI_Line); -#endif /*DUAL_CORE*/ -void HAL_EXTI_D1_ClearFlag(uint32_t EXTI_Line); -void HAL_EXTI_D1_EventInputConfig(uint32_t EXTI_Line , uint32_t EXTI_Mode, uint32_t EXTI_LineCmd); -#if defined(DUAL_CORE) -void HAL_EXTI_D2_EventInputConfig(uint32_t EXTI_Line , uint32_t EXTI_Mode, uint32_t EXTI_LineCmd); -#endif /*DUAL_CORE*/ -void HAL_EXTI_D3_EventInputConfig(uint32_t EXTI_Line, uint32_t EXTI_LineCmd , uint32_t EXTI_ClearSrc); -void HAL_SetFMCMemorySwappingConfig(uint32_t BankMapConfig); -uint32_t HAL_GetFMCMemorySwappingConfig(void); -void HAL_SYSCFG_VREFBUF_VoltageScalingConfig(uint32_t VoltageScaling); -void HAL_SYSCFG_VREFBUF_HighImpedanceConfig(uint32_t Mode); -void HAL_SYSCFG_VREFBUF_TrimmingConfig(uint32_t TrimmingValue); -HAL_StatusTypeDef HAL_SYSCFG_EnableVREFBUF(void); -void HAL_SYSCFG_DisableVREFBUF(void); -#if defined(SYSCFG_ADC2ALT_ADC2_ROUT0) -void HAL_SYSCFG_ADC2ALT_Rout0Config(uint32_t Adc2AltRout0); -#endif /*SYSCFG_ADC2ALT_ADC2_ROUT0*/ -#if defined(SYSCFG_ADC2ALT_ADC2_ROUT1) -void HAL_SYSCFG_ADC2ALT_Rout1Config(uint32_t Adc2AltRout1); -#endif /*SYSCFG_ADC2ALT_ADC2_ROUT1*/ - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_HAL_H */ - - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h deleted file mode 100644 index 2645c28..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h +++ /dev/null @@ -1,459 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_cortex.h - * @author MCD Application Team - * @brief Header file of CORTEX HAL module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file in - * the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_HAL_CORTEX_H -#define STM32H7xx_HAL_CORTEX_H - -#ifdef __cplusplus - extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal_def.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @addtogroup CORTEX - * @{ - */ -/* Exported types ------------------------------------------------------------*/ -/** @defgroup CORTEX_Exported_Types Cortex Exported Types - * @{ - */ - -#if (__MPU_PRESENT == 1) -/** @defgroup CORTEX_MPU_Region_Initialization_Structure_definition MPU Region Initialization Structure Definition - * @brief MPU Region initialization structure - * @{ - */ -typedef struct -{ - uint8_t Enable; /*!< Specifies the status of the region. - This parameter can be a value of @ref CORTEX_MPU_Region_Enable */ - uint8_t Number; /*!< Specifies the number of the region to protect. - This parameter can be a value of @ref CORTEX_MPU_Region_Number */ - uint32_t BaseAddress; /*!< Specifies the base address of the region to protect. */ - uint8_t Size; /*!< Specifies the size of the region to protect. - This parameter can be a value of @ref CORTEX_MPU_Region_Size */ - uint8_t SubRegionDisable; /*!< Specifies the number of the subregion protection to disable. - This parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFF */ - uint8_t TypeExtField; /*!< Specifies the TEX field level. - This parameter can be a value of @ref CORTEX_MPU_TEX_Levels */ - uint8_t AccessPermission; /*!< Specifies the region access permission type. - This parameter can be a value of @ref CORTEX_MPU_Region_Permission_Attributes */ - uint8_t DisableExec; /*!< Specifies the instruction access status. - This parameter can be a value of @ref CORTEX_MPU_Instruction_Access */ - uint8_t IsShareable; /*!< Specifies the shareability status of the protected region. - This parameter can be a value of @ref CORTEX_MPU_Access_Shareable */ - uint8_t IsCacheable; /*!< Specifies the cacheable status of the region protected. - This parameter can be a value of @ref CORTEX_MPU_Access_Cacheable */ - uint8_t IsBufferable; /*!< Specifies the bufferable status of the protected region. - This parameter can be a value of @ref CORTEX_MPU_Access_Bufferable */ -}MPU_Region_InitTypeDef; -/** - * @} - */ -#endif /* __MPU_PRESENT */ - -/** - * @} - */ - -/* Exported constants --------------------------------------------------------*/ - -/** @defgroup CORTEX_Exported_Constants CORTEX Exported Constants - * @{ - */ - -/** @defgroup CORTEX_Preemption_Priority_Group CORTEX Preemption Priority Group - * @{ - */ -#define NVIC_PRIORITYGROUP_0 ((uint32_t)0x00000007) /*!< 0 bits for pre-emption priority - 4 bits for subpriority */ -#define NVIC_PRIORITYGROUP_1 ((uint32_t)0x00000006) /*!< 1 bits for pre-emption priority - 3 bits for subpriority */ -#define NVIC_PRIORITYGROUP_2 ((uint32_t)0x00000005) /*!< 2 bits for pre-emption priority - 2 bits for subpriority */ -#define NVIC_PRIORITYGROUP_3 ((uint32_t)0x00000004) /*!< 3 bits for pre-emption priority - 1 bits for subpriority */ -#define NVIC_PRIORITYGROUP_4 ((uint32_t)0x00000003) /*!< 4 bits for pre-emption priority - 0 bits for subpriority */ -/** - * @} - */ - -/** @defgroup CORTEX_SysTick_clock_source CORTEX _SysTick clock source - * @{ - */ -#define SYSTICK_CLKSOURCE_HCLK_DIV8 ((uint32_t)0x00000000) -#define SYSTICK_CLKSOURCE_HCLK ((uint32_t)0x00000004) - -/** - * @} - */ - -#if (__MPU_PRESENT == 1) -/** @defgroup CORTEX_MPU_HFNMI_PRIVDEF_Control MPU HFNMI and PRIVILEGED Access control - * @{ - */ -#define MPU_HFNMI_PRIVDEF_NONE ((uint32_t)0x00000000) -#define MPU_HARDFAULT_NMI ((uint32_t)0x00000002) -#define MPU_PRIVILEGED_DEFAULT ((uint32_t)0x00000004) -#define MPU_HFNMI_PRIVDEF ((uint32_t)0x00000006) -/** - * @} - */ - -/** @defgroup CORTEX_MPU_Region_Enable CORTEX MPU Region Enable - * @{ - */ -#define MPU_REGION_ENABLE ((uint8_t)0x01) -#define MPU_REGION_DISABLE ((uint8_t)0x00) -/** - * @} - */ - -/** @defgroup CORTEX_MPU_Instruction_Access CORTEX MPU Instruction Access - * @{ - */ -#define MPU_INSTRUCTION_ACCESS_ENABLE ((uint8_t)0x00) -#define MPU_INSTRUCTION_ACCESS_DISABLE ((uint8_t)0x01) -/** - * @} - */ - -/** @defgroup CORTEX_MPU_Access_Shareable CORTEX MPU Instruction Access Shareable - * @{ - */ -#define MPU_ACCESS_SHAREABLE ((uint8_t)0x01) -#define MPU_ACCESS_NOT_SHAREABLE ((uint8_t)0x00) -/** - * @} - */ - -/** @defgroup CORTEX_MPU_Access_Cacheable CORTEX MPU Instruction Access Cacheable - * @{ - */ -#define MPU_ACCESS_CACHEABLE ((uint8_t)0x01) -#define MPU_ACCESS_NOT_CACHEABLE ((uint8_t)0x00) -/** - * @} - */ - -/** @defgroup CORTEX_MPU_Access_Bufferable CORTEX MPU Instruction Access Bufferable - * @{ - */ -#define MPU_ACCESS_BUFFERABLE ((uint8_t)0x01) -#define MPU_ACCESS_NOT_BUFFERABLE ((uint8_t)0x00) -/** - * @} - */ - -/** @defgroup CORTEX_MPU_TEX_Levels MPU TEX Levels - * @{ - */ -#define MPU_TEX_LEVEL0 ((uint8_t)0x00) -#define MPU_TEX_LEVEL1 ((uint8_t)0x01) -#define MPU_TEX_LEVEL2 ((uint8_t)0x02) -/** - * @} - */ - -/** @defgroup CORTEX_MPU_Region_Size CORTEX MPU Region Size - * @{ - */ -#define MPU_REGION_SIZE_32B ((uint8_t)0x04) -#define MPU_REGION_SIZE_64B ((uint8_t)0x05) -#define MPU_REGION_SIZE_128B ((uint8_t)0x06) -#define MPU_REGION_SIZE_256B ((uint8_t)0x07) -#define MPU_REGION_SIZE_512B ((uint8_t)0x08) -#define MPU_REGION_SIZE_1KB ((uint8_t)0x09) -#define MPU_REGION_SIZE_2KB ((uint8_t)0x0A) -#define MPU_REGION_SIZE_4KB ((uint8_t)0x0B) -#define MPU_REGION_SIZE_8KB ((uint8_t)0x0C) -#define MPU_REGION_SIZE_16KB ((uint8_t)0x0D) -#define MPU_REGION_SIZE_32KB ((uint8_t)0x0E) -#define MPU_REGION_SIZE_64KB ((uint8_t)0x0F) -#define MPU_REGION_SIZE_128KB ((uint8_t)0x10) -#define MPU_REGION_SIZE_256KB ((uint8_t)0x11) -#define MPU_REGION_SIZE_512KB ((uint8_t)0x12) -#define MPU_REGION_SIZE_1MB ((uint8_t)0x13) -#define MPU_REGION_SIZE_2MB ((uint8_t)0x14) -#define MPU_REGION_SIZE_4MB ((uint8_t)0x15) -#define MPU_REGION_SIZE_8MB ((uint8_t)0x16) -#define MPU_REGION_SIZE_16MB ((uint8_t)0x17) -#define MPU_REGION_SIZE_32MB ((uint8_t)0x18) -#define MPU_REGION_SIZE_64MB ((uint8_t)0x19) -#define MPU_REGION_SIZE_128MB ((uint8_t)0x1A) -#define MPU_REGION_SIZE_256MB ((uint8_t)0x1B) -#define MPU_REGION_SIZE_512MB ((uint8_t)0x1C) -#define MPU_REGION_SIZE_1GB ((uint8_t)0x1D) -#define MPU_REGION_SIZE_2GB ((uint8_t)0x1E) -#define MPU_REGION_SIZE_4GB ((uint8_t)0x1F) -/** - * @} - */ - -/** @defgroup CORTEX_MPU_Region_Permission_Attributes CORTEX MPU Region Permission Attributes - * @{ - */ -#define MPU_REGION_NO_ACCESS ((uint8_t)0x00) -#define MPU_REGION_PRIV_RW ((uint8_t)0x01) -#define MPU_REGION_PRIV_RW_URO ((uint8_t)0x02) -#define MPU_REGION_FULL_ACCESS ((uint8_t)0x03) -#define MPU_REGION_PRIV_RO ((uint8_t)0x05) -#define MPU_REGION_PRIV_RO_URO ((uint8_t)0x06) -/** - * @} - */ - -/** @defgroup CORTEX_MPU_Region_Number CORTEX MPU Region Number - * @{ - */ -#define MPU_REGION_NUMBER0 ((uint8_t)0x00) -#define MPU_REGION_NUMBER1 ((uint8_t)0x01) -#define MPU_REGION_NUMBER2 ((uint8_t)0x02) -#define MPU_REGION_NUMBER3 ((uint8_t)0x03) -#define MPU_REGION_NUMBER4 ((uint8_t)0x04) -#define MPU_REGION_NUMBER5 ((uint8_t)0x05) -#define MPU_REGION_NUMBER6 ((uint8_t)0x06) -#define MPU_REGION_NUMBER7 ((uint8_t)0x07) -#if !defined(CORE_CM4) -#define MPU_REGION_NUMBER8 ((uint8_t)0x08) -#define MPU_REGION_NUMBER9 ((uint8_t)0x09) -#define MPU_REGION_NUMBER10 ((uint8_t)0x0A) -#define MPU_REGION_NUMBER11 ((uint8_t)0x0B) -#define MPU_REGION_NUMBER12 ((uint8_t)0x0C) -#define MPU_REGION_NUMBER13 ((uint8_t)0x0D) -#define MPU_REGION_NUMBER14 ((uint8_t)0x0E) -#define MPU_REGION_NUMBER15 ((uint8_t)0x0F) -#endif /* !defined(CORE_CM4) */ - -/** - * @} - */ -#endif /* __MPU_PRESENT */ - -/** - * @} - */ - - -/* Exported Macros -----------------------------------------------------------*/ -/** @defgroup CORTEX_Exported_Macros CORTEX Exported Macros - * @{ - */ - -/** - * @} - */ - - - -/** @defgroup CORTEX_CPU_Identifier CORTEX_CPU_Identifier - * @{ - */ -#define CM7_CPUID ((uint32_t)0x00000003) - -#if defined(DUAL_CORE) -#define CM4_CPUID ((uint32_t)0x00000001) -#endif /*DUAL_CORE*/ -/** - * @} - */ - - -/* Exported functions --------------------------------------------------------*/ -/** @addtogroup CORTEX_Exported_Functions - * @{ - */ - -/** @addtogroup CORTEX_Exported_Functions_Group1 - * @{ - */ -/* Initialization and de-initialization functions *****************************/ -void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup); -void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority); -void HAL_NVIC_EnableIRQ(IRQn_Type IRQn); -void HAL_NVIC_DisableIRQ(IRQn_Type IRQn); -void HAL_NVIC_SystemReset(void); -uint32_t HAL_SYSTICK_Config(uint32_t TicksNumb); -/** - * @} - */ - -/** @addtogroup CORTEX_Exported_Functions_Group2 - * @{ - */ -/* Peripheral Control functions ***********************************************/ -#if (__MPU_PRESENT == 1) -void HAL_MPU_Enable(uint32_t MPU_Control); -void HAL_MPU_Disable(void); -void HAL_MPU_ConfigRegion(MPU_Region_InitTypeDef *MPU_Init); -#endif /* __MPU_PRESENT */ -uint32_t HAL_NVIC_GetPriorityGrouping(void); -void HAL_NVIC_GetPriority(IRQn_Type IRQn, uint32_t PriorityGroup, uint32_t* pPreemptPriority, uint32_t* pSubPriority); -uint32_t HAL_NVIC_GetPendingIRQ(IRQn_Type IRQn); -void HAL_NVIC_SetPendingIRQ(IRQn_Type IRQn); -void HAL_NVIC_ClearPendingIRQ(IRQn_Type IRQn); -uint32_t HAL_NVIC_GetActive(IRQn_Type IRQn); -void HAL_SYSTICK_CLKSourceConfig(uint32_t CLKSource); -void HAL_SYSTICK_IRQHandler(void); -void HAL_SYSTICK_Callback(void); -uint32_t HAL_GetCurrentCPUID(void); - - -/** - * @} - */ - -/** - * @} - */ - -/* Private types -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private constants ---------------------------------------------------------*/ -/* Private macros ------------------------------------------------------------*/ -/** @defgroup CORTEX_Private_Macros CORTEX Private Macros - * @{ - */ -#define IS_NVIC_PRIORITY_GROUP(GROUP) (((GROUP) == NVIC_PRIORITYGROUP_0) || \ - ((GROUP) == NVIC_PRIORITYGROUP_1) || \ - ((GROUP) == NVIC_PRIORITYGROUP_2) || \ - ((GROUP) == NVIC_PRIORITYGROUP_3) || \ - ((GROUP) == NVIC_PRIORITYGROUP_4)) - -#define IS_NVIC_PREEMPTION_PRIORITY(PRIORITY) ((PRIORITY) < 0x10UL) - -#define IS_NVIC_SUB_PRIORITY(PRIORITY) ((PRIORITY) < 0x10UL) - -#define IS_NVIC_DEVICE_IRQ(IRQ) (((int32_t)IRQ) >= 0x00) - -#define IS_SYSTICK_CLK_SOURCE(SOURCE) (((SOURCE) == SYSTICK_CLKSOURCE_HCLK) || \ - ((SOURCE) == SYSTICK_CLKSOURCE_HCLK_DIV8)) - -#if (__MPU_PRESENT == 1) -#define IS_MPU_REGION_ENABLE(STATE) (((STATE) == MPU_REGION_ENABLE) || \ - ((STATE) == MPU_REGION_DISABLE)) - -#define IS_MPU_INSTRUCTION_ACCESS(STATE) (((STATE) == MPU_INSTRUCTION_ACCESS_ENABLE) || \ - ((STATE) == MPU_INSTRUCTION_ACCESS_DISABLE)) - -#define IS_MPU_ACCESS_SHAREABLE(STATE) (((STATE) == MPU_ACCESS_SHAREABLE) || \ - ((STATE) == MPU_ACCESS_NOT_SHAREABLE)) - -#define IS_MPU_ACCESS_CACHEABLE(STATE) (((STATE) == MPU_ACCESS_CACHEABLE) || \ - ((STATE) == MPU_ACCESS_NOT_CACHEABLE)) - -#define IS_MPU_ACCESS_BUFFERABLE(STATE) (((STATE) == MPU_ACCESS_BUFFERABLE) || \ - ((STATE) == MPU_ACCESS_NOT_BUFFERABLE)) - -#define IS_MPU_TEX_LEVEL(TYPE) (((TYPE) == MPU_TEX_LEVEL0) || \ - ((TYPE) == MPU_TEX_LEVEL1) || \ - ((TYPE) == MPU_TEX_LEVEL2)) - -#define IS_MPU_REGION_PERMISSION_ATTRIBUTE(TYPE) (((TYPE) == MPU_REGION_NO_ACCESS) || \ - ((TYPE) == MPU_REGION_PRIV_RW) || \ - ((TYPE) == MPU_REGION_PRIV_RW_URO) || \ - ((TYPE) == MPU_REGION_FULL_ACCESS) || \ - ((TYPE) == MPU_REGION_PRIV_RO) || \ - ((TYPE) == MPU_REGION_PRIV_RO_URO)) - -#if !defined(CORE_CM4) -#define IS_MPU_REGION_NUMBER(NUMBER) (((NUMBER) == MPU_REGION_NUMBER0) || \ - ((NUMBER) == MPU_REGION_NUMBER1) || \ - ((NUMBER) == MPU_REGION_NUMBER2) || \ - ((NUMBER) == MPU_REGION_NUMBER3) || \ - ((NUMBER) == MPU_REGION_NUMBER4) || \ - ((NUMBER) == MPU_REGION_NUMBER5) || \ - ((NUMBER) == MPU_REGION_NUMBER6) || \ - ((NUMBER) == MPU_REGION_NUMBER7) || \ - ((NUMBER) == MPU_REGION_NUMBER8) || \ - ((NUMBER) == MPU_REGION_NUMBER9) || \ - ((NUMBER) == MPU_REGION_NUMBER10) || \ - ((NUMBER) == MPU_REGION_NUMBER11) || \ - ((NUMBER) == MPU_REGION_NUMBER12) || \ - ((NUMBER) == MPU_REGION_NUMBER13) || \ - ((NUMBER) == MPU_REGION_NUMBER14) || \ - ((NUMBER) == MPU_REGION_NUMBER15)) -#else -#define IS_MPU_REGION_NUMBER(NUMBER) (((NUMBER) == MPU_REGION_NUMBER0) || \ - ((NUMBER) == MPU_REGION_NUMBER1) || \ - ((NUMBER) == MPU_REGION_NUMBER2) || \ - ((NUMBER) == MPU_REGION_NUMBER3) || \ - ((NUMBER) == MPU_REGION_NUMBER4) || \ - ((NUMBER) == MPU_REGION_NUMBER5) || \ - ((NUMBER) == MPU_REGION_NUMBER6) || \ - ((NUMBER) == MPU_REGION_NUMBER7)) -#endif /* !defined(CORE_CM4) */ - -#define IS_MPU_REGION_SIZE(SIZE) (((SIZE) == MPU_REGION_SIZE_32B) || \ - ((SIZE) == MPU_REGION_SIZE_64B) || \ - ((SIZE) == MPU_REGION_SIZE_128B) || \ - ((SIZE) == MPU_REGION_SIZE_256B) || \ - ((SIZE) == MPU_REGION_SIZE_512B) || \ - ((SIZE) == MPU_REGION_SIZE_1KB) || \ - ((SIZE) == MPU_REGION_SIZE_2KB) || \ - ((SIZE) == MPU_REGION_SIZE_4KB) || \ - ((SIZE) == MPU_REGION_SIZE_8KB) || \ - ((SIZE) == MPU_REGION_SIZE_16KB) || \ - ((SIZE) == MPU_REGION_SIZE_32KB) || \ - ((SIZE) == MPU_REGION_SIZE_64KB) || \ - ((SIZE) == MPU_REGION_SIZE_128KB) || \ - ((SIZE) == MPU_REGION_SIZE_256KB) || \ - ((SIZE) == MPU_REGION_SIZE_512KB) || \ - ((SIZE) == MPU_REGION_SIZE_1MB) || \ - ((SIZE) == MPU_REGION_SIZE_2MB) || \ - ((SIZE) == MPU_REGION_SIZE_4MB) || \ - ((SIZE) == MPU_REGION_SIZE_8MB) || \ - ((SIZE) == MPU_REGION_SIZE_16MB) || \ - ((SIZE) == MPU_REGION_SIZE_32MB) || \ - ((SIZE) == MPU_REGION_SIZE_64MB) || \ - ((SIZE) == MPU_REGION_SIZE_128MB) || \ - ((SIZE) == MPU_REGION_SIZE_256MB) || \ - ((SIZE) == MPU_REGION_SIZE_512MB) || \ - ((SIZE) == MPU_REGION_SIZE_1GB) || \ - ((SIZE) == MPU_REGION_SIZE_2GB) || \ - ((SIZE) == MPU_REGION_SIZE_4GB)) - -#define IS_MPU_SUB_REGION_DISABLE(SUBREGION) ((SUBREGION) < (uint16_t)0x00FF) -#endif /* __MPU_PRESENT */ - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_HAL_CORTEX_H */ - - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h deleted file mode 100644 index 69101d6..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h +++ /dev/null @@ -1,220 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_def.h - * @author MCD Application Team - * @brief This file contains HAL common defines, enumeration, macros and - * structures definitions. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_HAL_DEF -#define STM32H7xx_HAL_DEF - -#ifdef __cplusplus - extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx.h" -#include "Legacy/stm32_hal_legacy.h" -#include -#include - -/* Exported types ------------------------------------------------------------*/ - -/** - * @brief HAL Status structures definition - */ -typedef enum -{ - HAL_OK = 0x00, - HAL_ERROR = 0x01, - HAL_BUSY = 0x02, - HAL_TIMEOUT = 0x03 -} HAL_StatusTypeDef; - -/** - * @brief HAL Lock structures definition - */ -typedef enum -{ - HAL_UNLOCKED = 0x00, - HAL_LOCKED = 0x01 -} HAL_LockTypeDef; - -/* Exported macro ------------------------------------------------------------*/ - -#define HAL_MAX_DELAY 0xFFFFFFFFU - -#define HAL_IS_BIT_SET(REG, BIT) (((REG) & (BIT)) == (BIT)) -#define HAL_IS_BIT_CLR(REG, BIT) (((REG) & (BIT)) == 0U) - -#define __HAL_LINKDMA(__HANDLE__, __PPP_DMA_FIELD__, __DMA_HANDLE__) \ - do{ \ - (__HANDLE__)->__PPP_DMA_FIELD__ = &(__DMA_HANDLE__); \ - (__DMA_HANDLE__).Parent = (__HANDLE__); \ - } while(0) - -#define UNUSED(x) ((void)(x)) - -/** @brief Reset the Handle's State field. - * @param __HANDLE__: specifies the Peripheral Handle. - * @note This macro can be used for the following purpose: - * - When the Handle is declared as local variable; before passing it as parameter - * to HAL_PPP_Init() for the first time, it is mandatory to use this macro - * to set to 0 the Handle's "State" field. - * Otherwise, "State" field may have any random value and the first time the function - * HAL_PPP_Init() is called, the low level hardware initialization will be missed - * (i.e. HAL_PPP_MspInit() will not be executed). - * - When there is a need to reconfigure the low level hardware: instead of calling - * HAL_PPP_DeInit() then HAL_PPP_Init(), user can make a call to this macro then HAL_PPP_Init(). - * In this later function, when the Handle's "State" field is set to 0, it will execute the function - * HAL_PPP_MspInit() which will reconfigure the low level hardware. - * @retval None - */ -#define __HAL_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = 0) - -#if (USE_RTOS == 1) - #error " USE_RTOS should be 0 in the current HAL release " -#else - #define __HAL_LOCK(__HANDLE__) \ - do{ \ - if((__HANDLE__)->Lock == HAL_LOCKED) \ - { \ - return HAL_BUSY; \ - } \ - else \ - { \ - (__HANDLE__)->Lock = HAL_LOCKED; \ - } \ - }while (0) - - #define __HAL_UNLOCK(__HANDLE__) \ - do{ \ - (__HANDLE__)->Lock = HAL_UNLOCKED; \ - }while (0) -#endif /* USE_RTOS */ - - -#if defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) /* ARM Compiler V6 */ - #ifndef __weak - #define __weak __attribute__((weak)) - #endif - #ifndef __packed - #define __packed __attribute__((packed)) - #endif -#elif defined ( __GNUC__ ) && !defined (__CC_ARM) /* GNU Compiler */ - #ifndef __weak - #define __weak __attribute__((weak)) - #endif /* __weak */ - #ifndef __packed - #define __packed __attribute__((__packed__)) - #endif /* __packed */ -#endif /* __GNUC__ */ - - -/* Macro to get variable aligned on 4-bytes, for __ICCARM__ the directive "#pragma data_alignment=4" must be used instead */ -#if defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) /* ARM Compiler V6 */ - #ifndef __ALIGN_BEGIN - #define __ALIGN_BEGIN - #endif - #ifndef __ALIGN_END - #define __ALIGN_END __attribute__ ((aligned (4))) - #endif -#elif defined ( __GNUC__ ) && !defined (__CC_ARM) /* GNU Compiler */ - #ifndef __ALIGN_END - #define __ALIGN_END __attribute__ ((aligned (4))) - #endif /* __ALIGN_END */ - #ifndef __ALIGN_BEGIN - #define __ALIGN_BEGIN - #endif /* __ALIGN_BEGIN */ -#else - #ifndef __ALIGN_END - #define __ALIGN_END - #endif /* __ALIGN_END */ - #ifndef __ALIGN_BEGIN - #if defined (__CC_ARM) /* ARM Compiler V5 */ - #define __ALIGN_BEGIN __align(4) - #elif defined (__ICCARM__) /* IAR Compiler */ - #define __ALIGN_BEGIN - #endif /* __CC_ARM */ - #endif /* __ALIGN_BEGIN */ -#endif /* __GNUC__ */ - -/* Macro to get variable aligned on 32-bytes,needed for cache maintenance purpose */ -#if defined (__GNUC__) /* GNU Compiler */ - #define ALIGN_32BYTES(buf) buf __attribute__ ((aligned (32))) -#elif defined (__ICCARM__) /* IAR Compiler */ - #define ALIGN_32BYTES(buf) _Pragma("data_alignment=32") buf -#elif defined (__CC_ARM) /* ARM Compiler */ - #define ALIGN_32BYTES(buf) __align(32) buf -#endif - -/** - * @brief __RAM_FUNC definition - */ -#if defined ( __CC_ARM ) || (defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)) -/* ARM Compiler V4/V5 and V6 - -------------------------- - RAM functions are defined using the toolchain options. - Functions that are executed in RAM should reside in a separate source module. - Using the 'Options for File' dialog you can simply change the 'Code / Const' - area of a module to a memory space in physical RAM. - Available memory areas are declared in the 'Target' tab of the 'Options for Target' - dialog. -*/ -#define __RAM_FUNC - -#elif defined ( __ICCARM__ ) -/* ICCARM Compiler - --------------- - RAM functions are defined using a specific toolchain keyword "__ramfunc". -*/ -#define __RAM_FUNC __ramfunc - -#elif defined ( __GNUC__ ) -/* GNU Compiler - ------------ - RAM functions are defined using a specific toolchain attribute - "__attribute__((section(".RamFunc")))". -*/ -#define __RAM_FUNC __attribute__((section(".RamFunc"))) - -#endif - -/** - * @brief __NOINLINE definition - */ -#if defined ( __CC_ARM ) || (defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)) || defined ( __GNUC__ ) -/* ARM V4/V5 and V6 & GNU Compiler - ------------------------------- -*/ -#define __NOINLINE __attribute__ ( (noinline) ) - -#elif defined ( __ICCARM__ ) -/* ICCARM Compiler - --------------- -*/ -#define __NOINLINE _Pragma("optimize = no_inline") - -#endif - - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_HAL_DEF */ - - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h deleted file mode 100644 index 82f6f21..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h +++ /dev/null @@ -1,1333 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_dma.h - * @author MCD Application Team - * @brief Header file of DMA HAL module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_HAL_DMA_H -#define STM32H7xx_HAL_DMA_H - -#ifdef __cplusplus - extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal_def.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @addtogroup DMA - * @{ - */ - -/* Exported types ------------------------------------------------------------*/ - -/** @defgroup DMA_Exported_Types DMA Exported Types - * @brief DMA Exported Types - * @{ - */ - -/** - * @brief DMA Configuration Structure definition - */ -typedef struct -{ - uint32_t Request; /*!< Specifies the request selected for the specified stream. - This parameter can be a value of @ref DMA_Request_selection */ - - uint32_t Direction; /*!< Specifies if the data will be transferred from memory to peripheral, - from memory to memory or from peripheral to memory. - This parameter can be a value of @ref DMA_Data_transfer_direction */ - - uint32_t PeriphInc; /*!< Specifies whether the Peripheral address register should be incremented or not. - This parameter can be a value of @ref DMA_Peripheral_incremented_mode */ - - uint32_t MemInc; /*!< Specifies whether the memory address register should be incremented or not. - This parameter can be a value of @ref DMA_Memory_incremented_mode */ - - uint32_t PeriphDataAlignment; /*!< Specifies the Peripheral data width. - This parameter can be a value of @ref DMA_Peripheral_data_size */ - - uint32_t MemDataAlignment; /*!< Specifies the Memory data width. - This parameter can be a value of @ref DMA_Memory_data_size */ - - uint32_t Mode; /*!< Specifies the operation mode of the DMAy Streamx. - This parameter can be a value of @ref DMA_mode - @note The circular buffer mode cannot be used if the memory-to-memory - data transfer is configured on the selected Stream */ - - uint32_t Priority; /*!< Specifies the software priority for the DMAy Streamx. - This parameter can be a value of @ref DMA_Priority_level */ - - uint32_t FIFOMode; /*!< Specifies if the FIFO mode or Direct mode will be used for the specified stream. - This parameter can be a value of @ref DMA_FIFO_direct_mode - @note The Direct mode (FIFO mode disabled) cannot be used if the - memory-to-memory data transfer is configured on the selected stream */ - - uint32_t FIFOThreshold; /*!< Specifies the FIFO threshold level. - This parameter can be a value of @ref DMA_FIFO_threshold_level */ - - uint32_t MemBurst; /*!< Specifies the Burst transfer configuration for the memory transfers. - It specifies the amount of data to be transferred in a single non interruptible - transaction. - This parameter can be a value of @ref DMA_Memory_burst - @note The burst mode is possible only if the address Increment mode is enabled. */ - - uint32_t PeriphBurst; /*!< Specifies the Burst transfer configuration for the peripheral transfers. - It specifies the amount of data to be transferred in a single non interruptible - transaction. - This parameter can be a value of @ref DMA_Peripheral_burst - @note The burst mode is possible only if the address Increment mode is enabled. */ -}DMA_InitTypeDef; - -/** - * @brief HAL DMA State structures definition - */ -typedef enum -{ - HAL_DMA_STATE_RESET = 0x00U, /*!< DMA not yet initialized or disabled */ - HAL_DMA_STATE_READY = 0x01U, /*!< DMA initialized and ready for use */ - HAL_DMA_STATE_BUSY = 0x02U, /*!< DMA process is ongoing */ - HAL_DMA_STATE_ERROR = 0x03U, /*!< DMA error state */ - HAL_DMA_STATE_ABORT = 0x04U, /*!< DMA Abort state */ -}HAL_DMA_StateTypeDef; - -/** - * @brief HAL DMA Transfer complete level structure definition - */ -typedef enum -{ - HAL_DMA_FULL_TRANSFER = 0x00U, /*!< Full transfer */ - HAL_DMA_HALF_TRANSFER = 0x01U, /*!< Half Transfer */ -}HAL_DMA_LevelCompleteTypeDef; - -/** - * @brief HAL DMA Callbacks IDs structure definition - */ -typedef enum -{ - HAL_DMA_XFER_CPLT_CB_ID = 0x00U, /*!< Full transfer */ - HAL_DMA_XFER_HALFCPLT_CB_ID = 0x01U, /*!< Half Transfer */ - HAL_DMA_XFER_M1CPLT_CB_ID = 0x02U, /*!< M1 Full Transfer */ - HAL_DMA_XFER_M1HALFCPLT_CB_ID = 0x03U, /*!< M1 Half Transfer */ - HAL_DMA_XFER_ERROR_CB_ID = 0x04U, /*!< Error */ - HAL_DMA_XFER_ABORT_CB_ID = 0x05U, /*!< Abort */ - HAL_DMA_XFER_ALL_CB_ID = 0x06U /*!< All */ -}HAL_DMA_CallbackIDTypeDef; - -/** - * @brief DMA handle Structure definition - */ -typedef struct __DMA_HandleTypeDef -{ - void *Instance; /*!< Register base address */ - - DMA_InitTypeDef Init; /*!< DMA communication parameters */ - - HAL_LockTypeDef Lock; /*!< DMA locking object */ - - __IO HAL_DMA_StateTypeDef State; /*!< DMA transfer state */ - - void *Parent; /*!< Parent object state */ - - void (* XferCpltCallback)( struct __DMA_HandleTypeDef * hdma); /*!< DMA transfer complete callback */ - - void (* XferHalfCpltCallback)( struct __DMA_HandleTypeDef * hdma); /*!< DMA Half transfer complete callback */ - - void (* XferM1CpltCallback)( struct __DMA_HandleTypeDef * hdma); /*!< DMA transfer complete Memory1 callback */ - - void (* XferM1HalfCpltCallback)( struct __DMA_HandleTypeDef * hdma); /*!< DMA transfer Half complete Memory1 callback */ - - void (* XferErrorCallback)( struct __DMA_HandleTypeDef * hdma); /*!< DMA transfer error callback */ - - void (* XferAbortCallback)( struct __DMA_HandleTypeDef * hdma); /*!< DMA transfer Abort callback */ - - __IO uint32_t ErrorCode; /*!< DMA Error code */ - - uint32_t StreamBaseAddress; /*!< DMA Stream Base Address */ - - uint32_t StreamIndex; /*!< DMA Stream Index */ - - DMAMUX_Channel_TypeDef *DMAmuxChannel; /*!< DMAMUX Channel Base Address */ - - DMAMUX_ChannelStatus_TypeDef *DMAmuxChannelStatus; /*!< DMAMUX Channels Status Base Address */ - - uint32_t DMAmuxChannelStatusMask; /*!< DMAMUX Channel Status Mask */ - - - DMAMUX_RequestGen_TypeDef *DMAmuxRequestGen; /*!< DMAMUX request generator Base Address */ - - DMAMUX_RequestGenStatus_TypeDef *DMAmuxRequestGenStatus; /*!< DMAMUX request generator Status Address */ - - uint32_t DMAmuxRequestGenStatusMask; /*!< DMAMUX request generator Status mask */ - -}DMA_HandleTypeDef; - -/** - * @} - */ - - -/* Exported constants --------------------------------------------------------*/ - -/** @defgroup DMA_Exported_Constants DMA Exported Constants - * @brief DMA Exported constants - * @{ - */ - -/** @defgroup DMA_Error_Code DMA Error Code - * @brief DMA Error Code - * @{ - */ -#define HAL_DMA_ERROR_NONE (0x00000000U) /*!< No error */ -#define HAL_DMA_ERROR_TE (0x00000001U) /*!< Transfer error */ -#define HAL_DMA_ERROR_FE (0x00000002U) /*!< FIFO error */ -#define HAL_DMA_ERROR_DME (0x00000004U) /*!< Direct Mode error */ -#define HAL_DMA_ERROR_TIMEOUT (0x00000020U) /*!< Timeout error */ -#define HAL_DMA_ERROR_PARAM (0x00000040U) /*!< Parameter error */ -#define HAL_DMA_ERROR_NO_XFER (0x00000080U) /*!< Abort requested with no Xfer ongoing */ -#define HAL_DMA_ERROR_NOT_SUPPORTED (0x00000100U) /*!< Not supported mode */ -#define HAL_DMA_ERROR_SYNC (0x00000200U) /*!< DMAMUX sync overrun error */ -#define HAL_DMA_ERROR_REQGEN (0x00000400U) /*!< DMAMUX request generator overrun error */ -#define HAL_DMA_ERROR_BUSY (0x00000800U) /*!< DMA Busy error */ - -/** - * @} - */ - -/** @defgroup DMA_Request_selection DMA Request selection - * @brief DMA Request selection - * @{ - */ -/* DMAMUX1 requests */ -#define DMA_REQUEST_MEM2MEM 0U /*!< memory to memory transfer */ - -#define DMA_REQUEST_GENERATOR0 1U /*!< DMAMUX1 request generator 0 */ -#define DMA_REQUEST_GENERATOR1 2U /*!< DMAMUX1 request generator 1 */ -#define DMA_REQUEST_GENERATOR2 3U /*!< DMAMUX1 request generator 2 */ -#define DMA_REQUEST_GENERATOR3 4U /*!< DMAMUX1 request generator 3 */ -#define DMA_REQUEST_GENERATOR4 5U /*!< DMAMUX1 request generator 4 */ -#define DMA_REQUEST_GENERATOR5 6U /*!< DMAMUX1 request generator 5 */ -#define DMA_REQUEST_GENERATOR6 7U /*!< DMAMUX1 request generator 6 */ -#define DMA_REQUEST_GENERATOR7 8U /*!< DMAMUX1 request generator 7 */ - -#define DMA_REQUEST_ADC1 9U /*!< DMAMUX1 ADC1 request */ -#define DMA_REQUEST_ADC2 10U /*!< DMAMUX1 ADC2 request */ - -#define DMA_REQUEST_TIM1_CH1 11U /*!< DMAMUX1 TIM1 CH1 request */ -#define DMA_REQUEST_TIM1_CH2 12U /*!< DMAMUX1 TIM1 CH2 request */ -#define DMA_REQUEST_TIM1_CH3 13U /*!< DMAMUX1 TIM1 CH3 request */ -#define DMA_REQUEST_TIM1_CH4 14U /*!< DMAMUX1 TIM1 CH4 request */ -#define DMA_REQUEST_TIM1_UP 15U /*!< DMAMUX1 TIM1 UP request */ -#define DMA_REQUEST_TIM1_TRIG 16U /*!< DMAMUX1 TIM1 TRIG request */ -#define DMA_REQUEST_TIM1_COM 17U /*!< DMAMUX1 TIM1 COM request */ - -#define DMA_REQUEST_TIM2_CH1 18U /*!< DMAMUX1 TIM2 CH1 request */ -#define DMA_REQUEST_TIM2_CH2 19U /*!< DMAMUX1 TIM2 CH2 request */ -#define DMA_REQUEST_TIM2_CH3 20U /*!< DMAMUX1 TIM2 CH3 request */ -#define DMA_REQUEST_TIM2_CH4 21U /*!< DMAMUX1 TIM2 CH4 request */ -#define DMA_REQUEST_TIM2_UP 22U /*!< DMAMUX1 TIM2 UP request */ - -#define DMA_REQUEST_TIM3_CH1 23U /*!< DMAMUX1 TIM3 CH1 request */ -#define DMA_REQUEST_TIM3_CH2 24U /*!< DMAMUX1 TIM3 CH2 request */ -#define DMA_REQUEST_TIM3_CH3 25U /*!< DMAMUX1 TIM3 CH3 request */ -#define DMA_REQUEST_TIM3_CH4 26U /*!< DMAMUX1 TIM3 CH4 request */ -#define DMA_REQUEST_TIM3_UP 27U /*!< DMAMUX1 TIM3 UP request */ -#define DMA_REQUEST_TIM3_TRIG 28U /*!< DMAMUX1 TIM3 TRIG request */ - -#define DMA_REQUEST_TIM4_CH1 29U /*!< DMAMUX1 TIM4 CH1 request */ -#define DMA_REQUEST_TIM4_CH2 30U /*!< DMAMUX1 TIM4 CH2 request */ -#define DMA_REQUEST_TIM4_CH3 31U /*!< DMAMUX1 TIM4 CH3 request */ -#define DMA_REQUEST_TIM4_UP 32U /*!< DMAMUX1 TIM4 UP request */ - -#define DMA_REQUEST_I2C1_RX 33U /*!< DMAMUX1 I2C1 RX request */ -#define DMA_REQUEST_I2C1_TX 34U /*!< DMAMUX1 I2C1 TX request */ -#define DMA_REQUEST_I2C2_RX 35U /*!< DMAMUX1 I2C2 RX request */ -#define DMA_REQUEST_I2C2_TX 36U /*!< DMAMUX1 I2C2 TX request */ - -#define DMA_REQUEST_SPI1_RX 37U /*!< DMAMUX1 SPI1 RX request */ -#define DMA_REQUEST_SPI1_TX 38U /*!< DMAMUX1 SPI1 TX request */ -#define DMA_REQUEST_SPI2_RX 39U /*!< DMAMUX1 SPI2 RX request */ -#define DMA_REQUEST_SPI2_TX 40U /*!< DMAMUX1 SPI2 TX request */ - -#define DMA_REQUEST_USART1_RX 41U /*!< DMAMUX1 USART1 RX request */ -#define DMA_REQUEST_USART1_TX 42U /*!< DMAMUX1 USART1 TX request */ -#define DMA_REQUEST_USART2_RX 43U /*!< DMAMUX1 USART2 RX request */ -#define DMA_REQUEST_USART2_TX 44U /*!< DMAMUX1 USART2 TX request */ -#define DMA_REQUEST_USART3_RX 45U /*!< DMAMUX1 USART3 RX request */ -#define DMA_REQUEST_USART3_TX 46U /*!< DMAMUX1 USART3 TX request */ - -#define DMA_REQUEST_TIM8_CH1 47U /*!< DMAMUX1 TIM8 CH1 request */ -#define DMA_REQUEST_TIM8_CH2 48U /*!< DMAMUX1 TIM8 CH2 request */ -#define DMA_REQUEST_TIM8_CH3 49U /*!< DMAMUX1 TIM8 CH3 request */ -#define DMA_REQUEST_TIM8_CH4 50U /*!< DMAMUX1 TIM8 CH4 request */ -#define DMA_REQUEST_TIM8_UP 51U /*!< DMAMUX1 TIM8 UP request */ -#define DMA_REQUEST_TIM8_TRIG 52U /*!< DMAMUX1 TIM8 TRIG request */ -#define DMA_REQUEST_TIM8_COM 53U /*!< DMAMUX1 TIM8 COM request */ - -#define DMA_REQUEST_TIM5_CH1 55U /*!< DMAMUX1 TIM5 CH1 request */ -#define DMA_REQUEST_TIM5_CH2 56U /*!< DMAMUX1 TIM5 CH2 request */ -#define DMA_REQUEST_TIM5_CH3 57U /*!< DMAMUX1 TIM5 CH3 request */ -#define DMA_REQUEST_TIM5_CH4 58U /*!< DMAMUX1 TIM5 CH4 request */ -#define DMA_REQUEST_TIM5_UP 59U /*!< DMAMUX1 TIM5 UP request */ -#define DMA_REQUEST_TIM5_TRIG 60U /*!< DMAMUX1 TIM5 TRIG request */ - -#define DMA_REQUEST_SPI3_RX 61U /*!< DMAMUX1 SPI3 RX request */ -#define DMA_REQUEST_SPI3_TX 62U /*!< DMAMUX1 SPI3 TX request */ - -#define DMA_REQUEST_UART4_RX 63U /*!< DMAMUX1 UART4 RX request */ -#define DMA_REQUEST_UART4_TX 64U /*!< DMAMUX1 UART4 TX request */ -#define DMA_REQUEST_UART5_RX 65U /*!< DMAMUX1 UART5 RX request */ -#define DMA_REQUEST_UART5_TX 66U /*!< DMAMUX1 UART5 TX request */ - -#define DMA_REQUEST_DAC1_CH1 67U /*!< DMAMUX1 DAC1 Channel 1 request */ -#define DMA_REQUEST_DAC1_CH2 68U /*!< DMAMUX1 DAC1 Channel 2 request */ - -#define DMA_REQUEST_TIM6_UP 69U /*!< DMAMUX1 TIM6 UP request */ -#define DMA_REQUEST_TIM7_UP 70U /*!< DMAMUX1 TIM7 UP request */ - -#define DMA_REQUEST_USART6_RX 71U /*!< DMAMUX1 USART6 RX request */ -#define DMA_REQUEST_USART6_TX 72U /*!< DMAMUX1 USART6 TX request */ - -#define DMA_REQUEST_I2C3_RX 73U /*!< DMAMUX1 I2C3 RX request */ -#define DMA_REQUEST_I2C3_TX 74U /*!< DMAMUX1 I2C3 TX request */ - -#if defined (PSSI) -#define DMA_REQUEST_DCMI_PSSI 75U /*!< DMAMUX1 DCMI/PSSI request */ -#define DMA_REQUEST_DCMI DMA_REQUEST_DCMI_PSSI /* Legacy define */ -#else -#define DMA_REQUEST_DCMI 75U /*!< DMAMUX1 DCMI request */ -#endif /* PSSI */ - -#define DMA_REQUEST_CRYP_IN 76U /*!< DMAMUX1 CRYP IN request */ -#define DMA_REQUEST_CRYP_OUT 77U /*!< DMAMUX1 CRYP OUT request */ - -#define DMA_REQUEST_HASH_IN 78U /*!< DMAMUX1 HASH IN request */ - -#define DMA_REQUEST_UART7_RX 79U /*!< DMAMUX1 UART7 RX request */ -#define DMA_REQUEST_UART7_TX 80U /*!< DMAMUX1 UART7 TX request */ -#define DMA_REQUEST_UART8_RX 81U /*!< DMAMUX1 UART8 RX request */ -#define DMA_REQUEST_UART8_TX 82U /*!< DMAMUX1 UART8 TX request */ - -#define DMA_REQUEST_SPI4_RX 83U /*!< DMAMUX1 SPI4 RX request */ -#define DMA_REQUEST_SPI4_TX 84U /*!< DMAMUX1 SPI4 TX request */ -#define DMA_REQUEST_SPI5_RX 85U /*!< DMAMUX1 SPI5 RX request */ -#define DMA_REQUEST_SPI5_TX 86U /*!< DMAMUX1 SPI5 TX request */ - -#define DMA_REQUEST_SAI1_A 87U /*!< DMAMUX1 SAI1 A request */ -#define DMA_REQUEST_SAI1_B 88U /*!< DMAMUX1 SAI1 B request */ - -#if defined(SAI2) -#define DMA_REQUEST_SAI2_A 89U /*!< DMAMUX1 SAI2 A request */ -#define DMA_REQUEST_SAI2_B 90U /*!< DMAMUX1 SAI2 B request */ -#endif /* SAI2 */ - -#define DMA_REQUEST_SWPMI_RX 91U /*!< DMAMUX1 SWPMI RX request */ -#define DMA_REQUEST_SWPMI_TX 92U /*!< DMAMUX1 SWPMI TX request */ - -#define DMA_REQUEST_SPDIF_RX_DT 93U /*!< DMAMUX1 SPDIF RXDT request*/ -#define DMA_REQUEST_SPDIF_RX_CS 94U /*!< DMAMUX1 SPDIF RXCS request*/ - -#if defined(HRTIM1) -#define DMA_REQUEST_HRTIM_MASTER 95U /*!< DMAMUX1 HRTIM1 Master request 1 */ -#define DMA_REQUEST_HRTIM_TIMER_A 96U /*!< DMAMUX1 HRTIM1 Timer A request 2 */ -#define DMA_REQUEST_HRTIM_TIMER_B 97U /*!< DMAMUX1 HRTIM1 Timer B request 3 */ -#define DMA_REQUEST_HRTIM_TIMER_C 98U /*!< DMAMUX1 HRTIM1 Timer C request 4 */ -#define DMA_REQUEST_HRTIM_TIMER_D 99U /*!< DMAMUX1 HRTIM1 Timer D request 5 */ -#define DMA_REQUEST_HRTIM_TIMER_E 100U /*!< DMAMUX1 HRTIM1 Timer E request 6*/ -#endif /* HRTIM1 */ - -#define DMA_REQUEST_DFSDM1_FLT0 101U /*!< DMAMUX1 DFSDM Filter0 request */ -#define DMA_REQUEST_DFSDM1_FLT1 102U /*!< DMAMUX1 DFSDM Filter1 request */ -#define DMA_REQUEST_DFSDM1_FLT2 103U /*!< DMAMUX1 DFSDM Filter2 request */ -#define DMA_REQUEST_DFSDM1_FLT3 104U /*!< DMAMUX1 DFSDM Filter3 request */ - -#define DMA_REQUEST_TIM15_CH1 105U /*!< DMAMUX1 TIM15 CH1 request */ -#define DMA_REQUEST_TIM15_UP 106U /*!< DMAMUX1 TIM15 UP request */ -#define DMA_REQUEST_TIM15_TRIG 107U /*!< DMAMUX1 TIM15 TRIG request */ -#define DMA_REQUEST_TIM15_COM 108U /*!< DMAMUX1 TIM15 COM request */ - -#define DMA_REQUEST_TIM16_CH1 109U /*!< DMAMUX1 TIM16 CH1 request */ -#define DMA_REQUEST_TIM16_UP 110U /*!< DMAMUX1 TIM16 UP request */ - -#define DMA_REQUEST_TIM17_CH1 111U /*!< DMAMUX1 TIM17 CH1 request */ -#define DMA_REQUEST_TIM17_UP 112U /*!< DMAMUX1 TIM17 UP request */ - -#if defined(SAI3) -#define DMA_REQUEST_SAI3_A 113U /*!< DMAMUX1 SAI3 A request */ -#define DMA_REQUEST_SAI3_B 114U /*!< DMAMUX1 SAI3 B request */ -#endif /* SAI3 */ - -#if defined(ADC3) -#define DMA_REQUEST_ADC3 115U /*!< DMAMUX1 ADC3 request */ -#endif /* ADC3 */ - -#if defined(UART9) -#define DMA_REQUEST_UART9_RX 116U /*!< DMAMUX1 UART9 request */ -#define DMA_REQUEST_UART9_TX 117U /*!< DMAMUX1 UART9 request */ -#endif /* UART9 */ - -#if defined(USART10) -#define DMA_REQUEST_USART10_RX 118U /*!< DMAMUX1 USART10 request */ -#define DMA_REQUEST_USART10_TX 119U /*!< DMAMUX1 USART10 request */ -#endif /* USART10 */ - -#if defined(FMAC) -#define DMA_REQUEST_FMAC_READ 120U /*!< DMAMUX1 FMAC Read request */ -#define DMA_REQUEST_FMAC_WRITE 121U /*!< DMAMUX1 FMAC Write request */ -#endif /* FMAC */ - -#if defined(CORDIC) -#define DMA_REQUEST_CORDIC_READ 122U /*!< DMAMUX1 CORDIC Read request */ -#define DMA_REQUEST_CORDIC_WRITE 123U /*!< DMAMUX1 CORDIC Write request */ -#endif /* CORDIC */ - -#if defined(I2C5) -#define DMA_REQUEST_I2C5_RX 124U /*!< DMAMUX1 I2C5 RX request */ -#define DMA_REQUEST_I2C5_TX 125U /*!< DMAMUX1 I2C5 TX request */ -#endif /* I2C5 */ - -#if defined(TIM23) -#define DMA_REQUEST_TIM23_CH1 126U /*!< DMAMUX1 TIM23 CH1 request */ -#define DMA_REQUEST_TIM23_CH2 127U /*!< DMAMUX1 TIM23 CH2 request */ -#define DMA_REQUEST_TIM23_CH3 128U /*!< DMAMUX1 TIM23 CH3 request */ -#define DMA_REQUEST_TIM23_CH4 129U /*!< DMAMUX1 TIM23 CH4 request */ -#define DMA_REQUEST_TIM23_UP 130U /*!< DMAMUX1 TIM23 UP request */ -#define DMA_REQUEST_TIM23_TRIG 131U /*!< DMAMUX1 TIM23 TRIG request */ -#endif /* TIM23 */ - -#if defined(TIM24) -#define DMA_REQUEST_TIM24_CH1 132U /*!< DMAMUX1 TIM24 CH1 request */ -#define DMA_REQUEST_TIM24_CH2 133U /*!< DMAMUX1 TIM24 CH2 request */ -#define DMA_REQUEST_TIM24_CH3 134U /*!< DMAMUX1 TIM24 CH3 request */ -#define DMA_REQUEST_TIM24_CH4 135U /*!< DMAMUX1 TIM24 CH4 request */ -#define DMA_REQUEST_TIM24_UP 136U /*!< DMAMUX1 TIM24 UP request */ -#define DMA_REQUEST_TIM24_TRIG 137U /*!< DMAMUX1 TIM24 TRIG request */ -#endif /* TIM24 */ - -/* DMAMUX2 requests */ -#define BDMA_REQUEST_MEM2MEM 0U /*!< memory to memory transfer */ -#define BDMA_REQUEST_GENERATOR0 1U /*!< DMAMUX2 request generator 0 */ -#define BDMA_REQUEST_GENERATOR1 2U /*!< DMAMUX2 request generator 1 */ -#define BDMA_REQUEST_GENERATOR2 3U /*!< DMAMUX2 request generator 2 */ -#define BDMA_REQUEST_GENERATOR3 4U /*!< DMAMUX2 request generator 3 */ -#define BDMA_REQUEST_GENERATOR4 5U /*!< DMAMUX2 request generator 4 */ -#define BDMA_REQUEST_GENERATOR5 6U /*!< DMAMUX2 request generator 5 */ -#define BDMA_REQUEST_GENERATOR6 7U /*!< DMAMUX2 request generator 6 */ -#define BDMA_REQUEST_GENERATOR7 8U /*!< DMAMUX2 request generator 7 */ -#define BDMA_REQUEST_LPUART1_RX 9U /*!< DMAMUX2 LP_UART1_RX request */ -#define BDMA_REQUEST_LPUART1_TX 10U /*!< DMAMUX2 LP_UART1_TX request */ -#define BDMA_REQUEST_SPI6_RX 11U /*!< DMAMUX2 SPI6 RX request */ -#define BDMA_REQUEST_SPI6_TX 12U /*!< DMAMUX2 SPI6 TX request */ -#define BDMA_REQUEST_I2C4_RX 13U /*!< DMAMUX2 I2C4 RX request */ -#define BDMA_REQUEST_I2C4_TX 14U /*!< DMAMUX2 I2C4 TX request */ -#if defined(SAI4) -#define BDMA_REQUEST_SAI4_A 15U /*!< DMAMUX2 SAI4 A request */ -#define BDMA_REQUEST_SAI4_B 16U /*!< DMAMUX2 SAI4 B request */ -#endif /* SAI4 */ -#if defined(ADC3) -#define BDMA_REQUEST_ADC3 17U /*!< DMAMUX2 ADC3 request */ -#endif /* ADC3 */ -#if defined(DAC2) -#define BDMA_REQUEST_DAC2_CH1 17U /*!< DMAMUX2 DAC2 CH1 request */ -#endif /* DAC2 */ -#if defined(DFSDM2_Channel0) -#define BDMA_REQUEST_DFSDM2_FLT0 18U /*!< DMAMUX2 DFSDM2 request */ -#endif /* DFSDM1_Channel0 */ - -/** - * @} - */ - -/** @defgroup DMA_Data_transfer_direction DMA Data transfer direction - * @brief DMA data transfer direction - * @{ - */ -#define DMA_PERIPH_TO_MEMORY ((uint32_t)0x00000000U) /*!< Peripheral to memory direction */ -#define DMA_MEMORY_TO_PERIPH ((uint32_t)DMA_SxCR_DIR_0) /*!< Memory to peripheral direction */ -#define DMA_MEMORY_TO_MEMORY ((uint32_t)DMA_SxCR_DIR_1) /*!< Memory to memory direction */ -/** - * @} - */ - -/** @defgroup DMA_Peripheral_incremented_mode DMA Peripheral incremented mode - * @brief DMA peripheral incremented mode - * @{ - */ -#define DMA_PINC_ENABLE ((uint32_t)DMA_SxCR_PINC) /*!< Peripheral increment mode enable */ -#define DMA_PINC_DISABLE ((uint32_t)0x00000000U) /*!< Peripheral increment mode disable */ -/** - * @} - */ - -/** @defgroup DMA_Memory_incremented_mode DMA Memory incremented mode - * @brief DMA memory incremented mode - * @{ - */ -#define DMA_MINC_ENABLE ((uint32_t)DMA_SxCR_MINC) /*!< Memory increment mode enable */ -#define DMA_MINC_DISABLE ((uint32_t)0x00000000U) /*!< Memory increment mode disable */ -/** - * @} - */ - -/** @defgroup DMA_Peripheral_data_size DMA Peripheral data size - * @brief DMA peripheral data size - * @{ - */ -#define DMA_PDATAALIGN_BYTE ((uint32_t)0x00000000U) /*!< Peripheral data alignment: Byte */ -#define DMA_PDATAALIGN_HALFWORD ((uint32_t)DMA_SxCR_PSIZE_0) /*!< Peripheral data alignment: HalfWord */ -#define DMA_PDATAALIGN_WORD ((uint32_t)DMA_SxCR_PSIZE_1) /*!< Peripheral data alignment: Word */ -/** - * @} - */ - -/** @defgroup DMA_Memory_data_size DMA Memory data size - * @brief DMA memory data size - * @{ - */ -#define DMA_MDATAALIGN_BYTE ((uint32_t)0x00000000U) /*!< Memory data alignment: Byte */ -#define DMA_MDATAALIGN_HALFWORD ((uint32_t)DMA_SxCR_MSIZE_0) /*!< Memory data alignment: HalfWord */ -#define DMA_MDATAALIGN_WORD ((uint32_t)DMA_SxCR_MSIZE_1) /*!< Memory data alignment: Word */ -/** - * @} - */ - -/** @defgroup DMA_mode DMA mode - * @brief DMA mode - * @{ - */ -#define DMA_NORMAL ((uint32_t)0x00000000U) /*!< Normal mode */ -#define DMA_CIRCULAR ((uint32_t)DMA_SxCR_CIRC) /*!< Circular mode */ -#define DMA_PFCTRL ((uint32_t)DMA_SxCR_PFCTRL) /*!< Peripheral flow control mode */ -#define DMA_DOUBLE_BUFFER_M0 ((uint32_t)DMA_SxCR_DBM) /*!< Double buffer mode with first target memory M0 */ -#define DMA_DOUBLE_BUFFER_M1 ((uint32_t)(DMA_SxCR_DBM | DMA_SxCR_CT)) /*!< Double buffer mode with first target memory M1 */ -/** - * @} - */ - -/** @defgroup DMA_Priority_level DMA Priority level - * @brief DMA priority levels - * @{ - */ -#define DMA_PRIORITY_LOW ((uint32_t)0x00000000U) /*!< Priority level: Low */ -#define DMA_PRIORITY_MEDIUM ((uint32_t)DMA_SxCR_PL_0) /*!< Priority level: Medium */ -#define DMA_PRIORITY_HIGH ((uint32_t)DMA_SxCR_PL_1) /*!< Priority level: High */ -#define DMA_PRIORITY_VERY_HIGH ((uint32_t)DMA_SxCR_PL) /*!< Priority level: Very High */ -/** - * @} - */ - -/** @defgroup DMA_FIFO_direct_mode DMA FIFO direct mode - * @brief DMA FIFO direct mode - * @{ - */ -#define DMA_FIFOMODE_DISABLE ((uint32_t)0x00000000U) /*!< FIFO mode disable */ -#define DMA_FIFOMODE_ENABLE ((uint32_t)DMA_SxFCR_DMDIS) /*!< FIFO mode enable */ -/** - * @} - */ - -/** @defgroup DMA_FIFO_threshold_level DMA FIFO threshold level - * @brief DMA FIFO level - * @{ - */ -#define DMA_FIFO_THRESHOLD_1QUARTERFULL ((uint32_t)0x00000000U) /*!< FIFO threshold 1 quart full configuration */ -#define DMA_FIFO_THRESHOLD_HALFFULL ((uint32_t)DMA_SxFCR_FTH_0) /*!< FIFO threshold half full configuration */ -#define DMA_FIFO_THRESHOLD_3QUARTERSFULL ((uint32_t)DMA_SxFCR_FTH_1) /*!< FIFO threshold 3 quarts full configuration */ -#define DMA_FIFO_THRESHOLD_FULL ((uint32_t)DMA_SxFCR_FTH) /*!< FIFO threshold full configuration */ -/** - * @} - */ - -/** @defgroup DMA_Memory_burst DMA Memory burst - * @brief DMA memory burst - * @{ - */ -#define DMA_MBURST_SINGLE ((uint32_t)0x00000000U) -#define DMA_MBURST_INC4 ((uint32_t)DMA_SxCR_MBURST_0) -#define DMA_MBURST_INC8 ((uint32_t)DMA_SxCR_MBURST_1) -#define DMA_MBURST_INC16 ((uint32_t)DMA_SxCR_MBURST) -/** - * @} - */ - -/** @defgroup DMA_Peripheral_burst DMA Peripheral burst - * @brief DMA peripheral burst - * @{ - */ -#define DMA_PBURST_SINGLE ((uint32_t)0x00000000U) -#define DMA_PBURST_INC4 ((uint32_t)DMA_SxCR_PBURST_0) -#define DMA_PBURST_INC8 ((uint32_t)DMA_SxCR_PBURST_1) -#define DMA_PBURST_INC16 ((uint32_t)DMA_SxCR_PBURST) -/** - * @} - */ - -/** @defgroup DMA_interrupt_enable_definitions DMA interrupt enable definitions - * @brief DMA interrupts definition - * @{ - */ -#define DMA_IT_TC ((uint32_t)DMA_SxCR_TCIE) -#define DMA_IT_HT ((uint32_t)DMA_SxCR_HTIE) -#define DMA_IT_TE ((uint32_t)DMA_SxCR_TEIE) -#define DMA_IT_DME ((uint32_t)DMA_SxCR_DMEIE) -#define DMA_IT_FE ((uint32_t)0x00000080U) -/** - * @} - */ - -/** @defgroup DMA_flag_definitions DMA flag definitions - * @brief DMA flag definitions - * @{ - */ -#define DMA_FLAG_FEIF0_4 ((uint32_t)0x00000001U) -#define DMA_FLAG_DMEIF0_4 ((uint32_t)0x00000004U) -#define DMA_FLAG_TEIF0_4 ((uint32_t)0x00000008U) -#define DMA_FLAG_HTIF0_4 ((uint32_t)0x00000010U) -#define DMA_FLAG_TCIF0_4 ((uint32_t)0x00000020U) -#define DMA_FLAG_FEIF1_5 ((uint32_t)0x00000040U) -#define DMA_FLAG_DMEIF1_5 ((uint32_t)0x00000100U) -#define DMA_FLAG_TEIF1_5 ((uint32_t)0x00000200U) -#define DMA_FLAG_HTIF1_5 ((uint32_t)0x00000400U) -#define DMA_FLAG_TCIF1_5 ((uint32_t)0x00000800U) -#define DMA_FLAG_FEIF2_6 ((uint32_t)0x00010000U) -#define DMA_FLAG_DMEIF2_6 ((uint32_t)0x00040000U) -#define DMA_FLAG_TEIF2_6 ((uint32_t)0x00080000U) -#define DMA_FLAG_HTIF2_6 ((uint32_t)0x00100000U) -#define DMA_FLAG_TCIF2_6 ((uint32_t)0x00200000U) -#define DMA_FLAG_FEIF3_7 ((uint32_t)0x00400000U) -#define DMA_FLAG_DMEIF3_7 ((uint32_t)0x01000000U) -#define DMA_FLAG_TEIF3_7 ((uint32_t)0x02000000U) -#define DMA_FLAG_HTIF3_7 ((uint32_t)0x04000000U) -#define DMA_FLAG_TCIF3_7 ((uint32_t)0x08000000U) -/** - * @} - */ - -/** @defgroup BDMA_flag_definitions BDMA flag definitions - * @brief BDMA flag definitions - * @{ - */ -#define BDMA_FLAG_GL0 ((uint32_t)0x00000001) -#define BDMA_FLAG_TC0 ((uint32_t)0x00000002) -#define BDMA_FLAG_HT0 ((uint32_t)0x00000004) -#define BDMA_FLAG_TE0 ((uint32_t)0x00000008) -#define BDMA_FLAG_GL1 ((uint32_t)0x00000010) -#define BDMA_FLAG_TC1 ((uint32_t)0x00000020) -#define BDMA_FLAG_HT1 ((uint32_t)0x00000040) -#define BDMA_FLAG_TE1 ((uint32_t)0x00000080) -#define BDMA_FLAG_GL2 ((uint32_t)0x00000100) -#define BDMA_FLAG_TC2 ((uint32_t)0x00000200) -#define BDMA_FLAG_HT2 ((uint32_t)0x00000400) -#define BDMA_FLAG_TE2 ((uint32_t)0x00000800) -#define BDMA_FLAG_GL3 ((uint32_t)0x00001000) -#define BDMA_FLAG_TC3 ((uint32_t)0x00002000) -#define BDMA_FLAG_HT3 ((uint32_t)0x00004000) -#define BDMA_FLAG_TE3 ((uint32_t)0x00008000) -#define BDMA_FLAG_GL4 ((uint32_t)0x00010000) -#define BDMA_FLAG_TC4 ((uint32_t)0x00020000) -#define BDMA_FLAG_HT4 ((uint32_t)0x00040000) -#define BDMA_FLAG_TE4 ((uint32_t)0x00080000) -#define BDMA_FLAG_GL5 ((uint32_t)0x00100000) -#define BDMA_FLAG_TC5 ((uint32_t)0x00200000) -#define BDMA_FLAG_HT5 ((uint32_t)0x00400000) -#define BDMA_FLAG_TE5 ((uint32_t)0x00800000) -#define BDMA_FLAG_GL6 ((uint32_t)0x01000000) -#define BDMA_FLAG_TC6 ((uint32_t)0x02000000) -#define BDMA_FLAG_HT6 ((uint32_t)0x04000000) -#define BDMA_FLAG_TE6 ((uint32_t)0x08000000) -#define BDMA_FLAG_GL7 ((uint32_t)0x10000000) -#define BDMA_FLAG_TC7 ((uint32_t)0x20000000) -#define BDMA_FLAG_HT7 ((uint32_t)0x40000000) -#define BDMA_FLAG_TE7 ((uint32_t)0x80000000) - -/** - * @} - */ - -/** - * @} - */ - -/* Exported macro ------------------------------------------------------------*/ -/** @defgroup DMA_Exported_Macros DMA Exported Macros - * @{ - */ - -/** @brief Reset DMA handle state - * @param __HANDLE__: specifies the DMA handle. - * @retval None - */ -#define __HAL_DMA_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_DMA_STATE_RESET) - -/** - * @brief Return the current DMA Stream FIFO filled level. - * @param __HANDLE__: DMA handle - * @retval The FIFO filling state. - * - DMA_FIFOStatus_Less1QuarterFull: when FIFO is less than 1 quarter-full - * and not empty. - * - DMA_FIFOStatus_1QuarterFull: if more than 1 quarter-full. - * - DMA_FIFOStatus_HalfFull: if more than 1 half-full. - * - DMA_FIFOStatus_3QuartersFull: if more than 3 quarters-full. - * - DMA_FIFOStatus_Empty: when FIFO is empty - * - DMA_FIFOStatus_Full: when FIFO is full - */ -#define __HAL_DMA_GET_FS(__HANDLE__) ((IS_DMA_STREAM_INSTANCE((__HANDLE__)->Instance))? (((DMA_Stream_TypeDef *)(__HANDLE__)->Instance)->FCR & (DMA_SxFCR_FS)) : 0) - -/** - * @brief Enable the specified DMA Stream. - * @param __HANDLE__: DMA handle - * @retval None - */ -#define __HAL_DMA_ENABLE(__HANDLE__) \ -((IS_DMA_STREAM_INSTANCE((__HANDLE__)->Instance))? (((DMA_Stream_TypeDef *)(__HANDLE__)->Instance)->CR |= DMA_SxCR_EN) : \ -(((BDMA_Channel_TypeDef *)(__HANDLE__)->Instance)->CCR |= BDMA_CCR_EN)) - -/** - * @brief Disable the specified DMA Stream. - * @param __HANDLE__: DMA handle - * @retval None - */ -#define __HAL_DMA_DISABLE(__HANDLE__) \ -((IS_DMA_STREAM_INSTANCE((__HANDLE__)->Instance))? (((DMA_Stream_TypeDef *)(__HANDLE__)->Instance)->CR &= ~DMA_SxCR_EN) : \ -(((BDMA_Channel_TypeDef *)(__HANDLE__)->Instance)->CCR &= ~BDMA_CCR_EN)) - -/* Interrupt & Flag management */ - -/** - * @brief Return the current DMA Stream transfer complete flag. - * @param __HANDLE__: DMA handle - * @retval The specified transfer complete flag index. - */ -#if defined(BDMA1) -#define __HAL_DMA_GET_TC_FLAG_INDEX(__HANDLE__) \ -(((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream0))? DMA_FLAG_TCIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream0))? DMA_FLAG_TCIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream4))? DMA_FLAG_TCIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream4))? DMA_FLAG_TCIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream1))? DMA_FLAG_TCIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream1))? DMA_FLAG_TCIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream5))? DMA_FLAG_TCIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream5))? DMA_FLAG_TCIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream2))? DMA_FLAG_TCIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream2))? DMA_FLAG_TCIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream6))? DMA_FLAG_TCIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream6))? DMA_FLAG_TCIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream3))? DMA_FLAG_TCIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream3))? DMA_FLAG_TCIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream7))? DMA_FLAG_TCIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream7))? DMA_FLAG_TCIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel0))? BDMA_FLAG_TC0 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel0))? BDMA_FLAG_TC0 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel1))? BDMA_FLAG_TC1 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel1))? BDMA_FLAG_TC1 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel2))? BDMA_FLAG_TC2 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel2))? BDMA_FLAG_TC2 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel3))? BDMA_FLAG_TC3 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel3))? BDMA_FLAG_TC3 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel4))? BDMA_FLAG_TC4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel4))? BDMA_FLAG_TC4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel5))? BDMA_FLAG_TC5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel5))? BDMA_FLAG_TC5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel6))? BDMA_FLAG_TC6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel6))? BDMA_FLAG_TC6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel7))? BDMA_FLAG_TC7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel7))? BDMA_FLAG_TC7 :\ - (uint32_t)0x00000000) -#else -#define __HAL_DMA_GET_TC_FLAG_INDEX(__HANDLE__) \ -(((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream0))? DMA_FLAG_TCIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream0))? DMA_FLAG_TCIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream4))? DMA_FLAG_TCIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream4))? DMA_FLAG_TCIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream1))? DMA_FLAG_TCIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream1))? DMA_FLAG_TCIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream5))? DMA_FLAG_TCIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream5))? DMA_FLAG_TCIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream2))? DMA_FLAG_TCIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream2))? DMA_FLAG_TCIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream6))? DMA_FLAG_TCIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream6))? DMA_FLAG_TCIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream3))? DMA_FLAG_TCIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream3))? DMA_FLAG_TCIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream7))? DMA_FLAG_TCIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream7))? DMA_FLAG_TCIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel0))? BDMA_FLAG_TC0 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel1))? BDMA_FLAG_TC1 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel2))? BDMA_FLAG_TC2 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel3))? BDMA_FLAG_TC3 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel4))? BDMA_FLAG_TC4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel5))? BDMA_FLAG_TC5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel6))? BDMA_FLAG_TC6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel7))? BDMA_FLAG_TC7 :\ - (uint32_t)0x00000000) -#endif /* BDMA1 */ - -/** - * @brief Return the current DMA Stream half transfer complete flag. - * @param __HANDLE__: DMA handle - * @retval The specified half transfer complete flag index. - */ -#if defined(BDMA1) -#define __HAL_DMA_GET_HT_FLAG_INDEX(__HANDLE__)\ -(((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream0))? DMA_FLAG_HTIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream0))? DMA_FLAG_HTIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream4))? DMA_FLAG_HTIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream4))? DMA_FLAG_HTIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream1))? DMA_FLAG_HTIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream1))? DMA_FLAG_HTIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream5))? DMA_FLAG_HTIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream5))? DMA_FLAG_HTIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream2))? DMA_FLAG_HTIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream2))? DMA_FLAG_HTIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream6))? DMA_FLAG_HTIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream6))? DMA_FLAG_HTIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream3))? DMA_FLAG_HTIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream3))? DMA_FLAG_HTIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream7))? DMA_FLAG_HTIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream7))? DMA_FLAG_HTIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel0))? BDMA_FLAG_HT0 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel0))? BDMA_FLAG_HT0 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel1))? BDMA_FLAG_HT1 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel1))? BDMA_FLAG_HT1 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel2))? BDMA_FLAG_HT2 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel2))? BDMA_FLAG_HT2 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel3))? BDMA_FLAG_HT3 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel3))? BDMA_FLAG_HT3 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel4))? BDMA_FLAG_HT4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel4))? BDMA_FLAG_HT4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel5))? BDMA_FLAG_HT5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel5))? BDMA_FLAG_HT5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel6))? BDMA_FLAG_HT6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel6))? BDMA_FLAG_HT6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel7))? BDMA_FLAG_HT7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel7))? BDMA_FLAG_HT7 :\ - (uint32_t)0x00000000) -#else -#define __HAL_DMA_GET_HT_FLAG_INDEX(__HANDLE__)\ -(((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream0))? DMA_FLAG_HTIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream0))? DMA_FLAG_HTIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream4))? DMA_FLAG_HTIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream4))? DMA_FLAG_HTIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream1))? DMA_FLAG_HTIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream1))? DMA_FLAG_HTIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream5))? DMA_FLAG_HTIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream5))? DMA_FLAG_HTIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream2))? DMA_FLAG_HTIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream2))? DMA_FLAG_HTIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream6))? DMA_FLAG_HTIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream6))? DMA_FLAG_HTIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream3))? DMA_FLAG_HTIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream3))? DMA_FLAG_HTIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream7))? DMA_FLAG_HTIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream7))? DMA_FLAG_HTIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel0))? BDMA_FLAG_HT0 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel1))? BDMA_FLAG_HT1 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel2))? BDMA_FLAG_HT2 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel3))? BDMA_FLAG_HT3 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel4))? BDMA_FLAG_HT4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel5))? BDMA_FLAG_HT5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel6))? BDMA_FLAG_HT6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel7))? BDMA_FLAG_HT7 :\ - (uint32_t)0x00000000) -#endif /* BDMA1 */ - -/** - * @brief Return the current DMA Stream transfer error flag. - * @param __HANDLE__: DMA handle - * @retval The specified transfer error flag index. - */ -#if defined(BDMA1) -#define __HAL_DMA_GET_TE_FLAG_INDEX(__HANDLE__)\ -(((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream0))? DMA_FLAG_TEIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream0))? DMA_FLAG_TEIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream4))? DMA_FLAG_TEIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream4))? DMA_FLAG_TEIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream1))? DMA_FLAG_TEIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream1))? DMA_FLAG_TEIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream5))? DMA_FLAG_TEIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream5))? DMA_FLAG_TEIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream2))? DMA_FLAG_TEIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream2))? DMA_FLAG_TEIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream6))? DMA_FLAG_TEIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream6))? DMA_FLAG_TEIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream3))? DMA_FLAG_TEIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream3))? DMA_FLAG_TEIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream7))? DMA_FLAG_TEIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream7))? DMA_FLAG_TEIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel0))? BDMA_FLAG_TE0 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel0))? BDMA_FLAG_TE0 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel1))? BDMA_FLAG_TE1 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel1))? BDMA_FLAG_TE1 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel2))? BDMA_FLAG_TE2 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel2))? BDMA_FLAG_TE2 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel3))? BDMA_FLAG_TE3 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel3))? BDMA_FLAG_TE3 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel4))? BDMA_FLAG_TE4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel4))? BDMA_FLAG_TE4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel5))? BDMA_FLAG_TE5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel5))? BDMA_FLAG_TE5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel6))? BDMA_FLAG_TE6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel6))? BDMA_FLAG_TE6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel7))? BDMA_FLAG_TE7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel7))? BDMA_FLAG_TE7 :\ - (uint32_t)0x00000000) -#else -#define __HAL_DMA_GET_TE_FLAG_INDEX(__HANDLE__)\ -(((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream0))? DMA_FLAG_TEIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream0))? DMA_FLAG_TEIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream4))? DMA_FLAG_TEIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream4))? DMA_FLAG_TEIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream1))? DMA_FLAG_TEIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream1))? DMA_FLAG_TEIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream5))? DMA_FLAG_TEIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream5))? DMA_FLAG_TEIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream2))? DMA_FLAG_TEIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream2))? DMA_FLAG_TEIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream6))? DMA_FLAG_TEIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream6))? DMA_FLAG_TEIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream3))? DMA_FLAG_TEIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream3))? DMA_FLAG_TEIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream7))? DMA_FLAG_TEIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream7))? DMA_FLAG_TEIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel0))? BDMA_FLAG_TE0 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel1))? BDMA_FLAG_TE1 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel2))? BDMA_FLAG_TE2 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel3))? BDMA_FLAG_TE3 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel4))? BDMA_FLAG_TE4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel5))? BDMA_FLAG_TE5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel6))? BDMA_FLAG_TE6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel7))? BDMA_FLAG_TE7 :\ - (uint32_t)0x00000000) -#endif /* BDMA1 */ - -/** - * @brief Return the current DMA Stream FIFO error flag. - * @param __HANDLE__: DMA handle - * @retval The specified FIFO error flag index. - */ -#define __HAL_DMA_GET_FE_FLAG_INDEX(__HANDLE__)\ -(((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream0))? DMA_FLAG_FEIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream0))? DMA_FLAG_FEIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream4))? DMA_FLAG_FEIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream4))? DMA_FLAG_FEIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream1))? DMA_FLAG_FEIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream1))? DMA_FLAG_FEIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream5))? DMA_FLAG_FEIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream5))? DMA_FLAG_FEIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream2))? DMA_FLAG_FEIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream2))? DMA_FLAG_FEIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream6))? DMA_FLAG_FEIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream6))? DMA_FLAG_FEIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream3))? DMA_FLAG_FEIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream3))? DMA_FLAG_FEIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream7))? DMA_FLAG_FEIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream7))? DMA_FLAG_FEIF3_7 :\ - (uint32_t)0x00000000) - -/** - * @brief Return the current DMA Stream direct mode error flag. - * @param __HANDLE__: DMA handle - * @retval The specified direct mode error flag index. - */ -#define __HAL_DMA_GET_DME_FLAG_INDEX(__HANDLE__)\ -(((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream0))? DMA_FLAG_DMEIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream0))? DMA_FLAG_DMEIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream4))? DMA_FLAG_DMEIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream4))? DMA_FLAG_DMEIF0_4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream1))? DMA_FLAG_DMEIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream1))? DMA_FLAG_DMEIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream5))? DMA_FLAG_DMEIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream5))? DMA_FLAG_DMEIF1_5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream2))? DMA_FLAG_DMEIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream2))? DMA_FLAG_DMEIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream6))? DMA_FLAG_DMEIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream6))? DMA_FLAG_DMEIF2_6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream3))? DMA_FLAG_DMEIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream3))? DMA_FLAG_DMEIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Stream7))? DMA_FLAG_DMEIF3_7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Stream7))? DMA_FLAG_DMEIF3_7 :\ - (uint32_t)0x00000000) - -/** - * @brief Returns the current BDMA Channel Global interrupt flag. - * @param __HANDLE__: DMA handle - * @retval The specified transfer error flag index. - */ -#if defined(BDMA1) -#define __HAL_BDMA_GET_GI_FLAG_INDEX(__HANDLE__)\ -(((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel0))? BDMA_ISR_GIF0 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel0))? BDMA_ISR_GIF0 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel1))? BDMA_ISR_GIF1 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel1))? BDMA_ISR_GIF1 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel2))? BDMA_ISR_GIF2 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel2))? BDMA_ISR_GIF2 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel3))? BDMA_ISR_GIF3 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel3))? BDMA_ISR_GIF3 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel4))? BDMA_ISR_GIF4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel4))? BDMA_ISR_GIF4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel5))? BDMA_ISR_GIF5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel5))? BDMA_ISR_GIF5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel6))? BDMA_ISR_GIF6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel6))? BDMA_ISR_GIF6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA1_Channel7))? BDMA_ISR_GIF7 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA2_Channel7))? BDMA_ISR_GIF7 :\ - (uint32_t)0x00000000) -#else -#define __HAL_BDMA_GET_GI_FLAG_INDEX(__HANDLE__)\ -(((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel0))? BDMA_ISR_GIF0 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel1))? BDMA_ISR_GIF1 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel2))? BDMA_ISR_GIF2 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel3))? BDMA_ISR_GIF3 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel4))? BDMA_ISR_GIF4 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel5))? BDMA_ISR_GIF5 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel6))? BDMA_ISR_GIF6 :\ - ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)BDMA_Channel7))? BDMA_ISR_GIF7 :\ - (uint32_t)0x00000000) -#endif /* BDMA1 */ - -/** - * @brief Get the DMA Stream pending flags. - * @param __HANDLE__: DMA handle - * @param __FLAG__: Get the specified flag. - * This parameter can be any combination of the following values: - * @arg DMA_FLAG_TCIFx: Transfer complete flag. - * @arg DMA_FLAG_HTIFx: Half transfer complete flag. - * @arg DMA_FLAG_TEIFx: Transfer error flag. - * @arg DMA_FLAG_DMEIFx: Direct mode error flag. - * @arg DMA_FLAG_FEIFx: FIFO error flag. - * Where x can be 0_4, 1_5, 2_6 or 3_7 to select the DMA Stream flag. - * @retval The state of FLAG (SET or RESET). - */ -#if defined(BDMA1) -#define __HAL_DMA_GET_FLAG(__HANDLE__, __FLAG__)\ -(((uint32_t)((__HANDLE__)->Instance) > (uint32_t)BDMA1_Channel7)? (BDMA2->ISR & (__FLAG__)) :\ - ((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA2_Stream7 )? (BDMA1->ISR & (__FLAG__)) :\ - ((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA2_Stream3 )? (DMA2->HISR & (__FLAG__)) :\ - ((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA1_Stream7 )? (DMA2->LISR & (__FLAG__)) :\ - ((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA1_Stream3 )? (DMA1->HISR & (__FLAG__)) : (DMA1->LISR & (__FLAG__))) -#else -#define __HAL_DMA_GET_FLAG(__HANDLE__, __FLAG__)\ -(((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA2_Stream7)? (BDMA->ISR & (__FLAG__)) :\ - ((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA2_Stream3)? (DMA2->HISR & (__FLAG__)) :\ - ((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA1_Stream7)? (DMA2->LISR & (__FLAG__)) :\ - ((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA1_Stream3)? (DMA1->HISR & (__FLAG__)) : (DMA1->LISR & (__FLAG__))) -#endif /* BDMA1 */ - -/** - * @brief Clear the DMA Stream pending flags. - * @param __HANDLE__: DMA handle - * @param __FLAG__: specifies the flag to clear. - * This parameter can be any combination of the following values: - * @arg DMA_FLAG_TCIFx: Transfer complete flag. - * @arg DMA_FLAG_HTIFx: Half transfer complete flag. - * @arg DMA_FLAG_TEIFx: Transfer error flag. - * @arg DMA_FLAG_DMEIFx: Direct mode error flag. - * @arg DMA_FLAG_FEIFx: FIFO error flag. - * Where x can be 0_4, 1_5, 2_6 or 3_7 to select the DMA Stream flag. - * @retval None - */ -#if defined(BDMA1) -#define __HAL_DMA_CLEAR_FLAG(__HANDLE__, __FLAG__) \ -(((uint32_t)((__HANDLE__)->Instance) > (uint32_t)BDMA1_Channel7)? (BDMA2->IFCR = (__FLAG__)) :\ - ((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA2_Stream7)? (BDMA1->IFCR = (__FLAG__)) :\ - ((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA2_Stream3)? (DMA2->HIFCR = (__FLAG__)) :\ - ((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA1_Stream7)? (DMA2->LIFCR = (__FLAG__)) :\ - ((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA1_Stream3)? (DMA1->HIFCR = (__FLAG__)) : (DMA1->LIFCR = (__FLAG__))) -#else -#define __HAL_DMA_CLEAR_FLAG(__HANDLE__, __FLAG__) \ -(((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA2_Stream7)? (BDMA->IFCR = (__FLAG__)) :\ - ((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA2_Stream3)? (DMA2->HIFCR = (__FLAG__)) :\ - ((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA1_Stream7)? (DMA2->LIFCR = (__FLAG__)) :\ - ((uint32_t)((__HANDLE__)->Instance) > (uint32_t)DMA1_Stream3)? (DMA1->HIFCR = (__FLAG__)) : (DMA1->LIFCR = (__FLAG__))) -#endif /* BDMA1 */ - -#define DMA_TO_BDMA_IT(__DMA_IT__) \ -((((__DMA_IT__) & (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE)) == (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE)) ? (BDMA_CCR_TCIE | BDMA_CCR_HTIE |BDMA_CCR_TEIE) :\ - (((__DMA_IT__) & (DMA_IT_TC | DMA_IT_HT)) == (DMA_IT_TC | DMA_IT_HT)) ? (BDMA_CCR_TCIE | BDMA_CCR_HTIE) :\ - (((__DMA_IT__) & (DMA_IT_HT | DMA_IT_TE)) == (DMA_IT_HT | DMA_IT_TE)) ? (BDMA_CCR_HTIE |BDMA_CCR_TEIE) :\ - (((__DMA_IT__) & (DMA_IT_TC | DMA_IT_TE)) == (DMA_IT_TC | DMA_IT_TE)) ? (BDMA_CCR_TCIE |BDMA_CCR_TEIE) :\ - ((__DMA_IT__) == DMA_IT_TC) ? BDMA_CCR_TCIE :\ - ((__DMA_IT__) == DMA_IT_HT) ? BDMA_CCR_HTIE :\ - ((__DMA_IT__) == DMA_IT_TE) ? BDMA_CCR_TEIE :\ - (uint32_t)0x00000000) - - -#define __HAL_BDMA_CHANNEL_ENABLE_IT(__HANDLE__, __INTERRUPT__) \ -(((BDMA_Channel_TypeDef *)(__HANDLE__)->Instance)->CCR |= (DMA_TO_BDMA_IT(__INTERRUPT__))) - -#define __HAL_DMA_STREAM_ENABLE_IT(__HANDLE__, __INTERRUPT__) (((__INTERRUPT__) != DMA_IT_FE)? \ -(((DMA_Stream_TypeDef *)(__HANDLE__)->Instance)->CR |= (__INTERRUPT__)) : (((DMA_Stream_TypeDef *)(__HANDLE__)->Instance)->FCR |= (__INTERRUPT__))) - -/** - * @brief Enable the specified DMA Stream interrupts. - * @param __HANDLE__: DMA handle - * @param __INTERRUPT__: specifies the DMA interrupt sources to be enabled or disabled. - * This parameter can be one of the following values: - * @arg DMA_IT_TC: Transfer complete interrupt mask. - * @arg DMA_IT_HT: Half transfer complete interrupt mask. - * @arg DMA_IT_TE: Transfer error interrupt mask. - * @arg DMA_IT_FE: FIFO error interrupt mask. - * @arg DMA_IT_DME: Direct mode error interrupt. - * @retval None - */ -#define __HAL_DMA_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((IS_DMA_STREAM_INSTANCE((__HANDLE__)->Instance))?\ - (__HAL_DMA_STREAM_ENABLE_IT((__HANDLE__), (__INTERRUPT__))) :\ - (__HAL_BDMA_CHANNEL_ENABLE_IT((__HANDLE__), (__INTERRUPT__)))) - - -#define __HAL_BDMA_CHANNEL_DISABLE_IT(__HANDLE__, __INTERRUPT__) (((BDMA_Channel_TypeDef *)(__HANDLE__)->Instance)->CCR &= ~(DMA_TO_BDMA_IT(__INTERRUPT__))) - -#define __HAL_DMA_STREAM_DISABLE_IT(__HANDLE__, __INTERRUPT__) (((__INTERRUPT__) != DMA_IT_FE)? \ -(((DMA_Stream_TypeDef *)(__HANDLE__)->Instance)->CR &= ~(__INTERRUPT__)) : (((DMA_Stream_TypeDef *)(__HANDLE__)->Instance)->FCR &= ~(__INTERRUPT__))) - -/** - * @brief Disable the specified DMA Stream interrupts. - * @param __HANDLE__: DMA handle - * @param __INTERRUPT__: specifies the DMA interrupt sources to be enabled or disabled. - * This parameter can be one of the following values: - * @arg DMA_IT_TC: Transfer complete interrupt mask. - * @arg DMA_IT_HT: Half transfer complete interrupt mask. - * @arg DMA_IT_TE: Transfer error interrupt mask. - * @arg DMA_IT_FE: FIFO error interrupt mask. - * @arg DMA_IT_DME: Direct mode error interrupt. - * @retval None - */ -#define __HAL_DMA_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((IS_DMA_STREAM_INSTANCE((__HANDLE__)->Instance))?\ - (__HAL_DMA_STREAM_DISABLE_IT((__HANDLE__), (__INTERRUPT__))) :\ - (__HAL_BDMA_CHANNEL_DISABLE_IT((__HANDLE__), (__INTERRUPT__)))) - - -#define __HAL_BDMA_CHANNEL_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((((BDMA_Channel_TypeDef *)(__HANDLE__)->Instance)->CCR & (DMA_TO_BDMA_IT(__INTERRUPT__)))) - -#define __HAL_DMA_STREAM_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) (((__INTERRUPT__) != DMA_IT_FE)? \ - (((DMA_Stream_TypeDef *)(__HANDLE__)->Instance)->CR & (__INTERRUPT__)) : \ - (((DMA_Stream_TypeDef *)(__HANDLE__)->Instance)->FCR & (__INTERRUPT__))) - -/** - * @brief Check whether the specified DMA Stream interrupt is enabled or not. - * @param __HANDLE__: DMA handle - * @param __INTERRUPT__: specifies the DMA interrupt source to check. - * This parameter can be one of the following values: - * @arg DMA_IT_TC: Transfer complete interrupt mask. - * @arg DMA_IT_HT: Half transfer complete interrupt mask. - * @arg DMA_IT_TE: Transfer error interrupt mask. - * @arg DMA_IT_FE: FIFO error interrupt mask. - * @arg DMA_IT_DME: Direct mode error interrupt. - * @retval The state of DMA_IT. - */ -#define __HAL_DMA_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((IS_DMA_STREAM_INSTANCE((__HANDLE__)->Instance))? \ - (__HAL_DMA_STREAM_GET_IT_SOURCE((__HANDLE__), (__INTERRUPT__))) :\ - (__HAL_BDMA_CHANNEL_GET_IT_SOURCE((__HANDLE__), (__INTERRUPT__)))) - -/** - * @brief Writes the number of data units to be transferred on the DMA Stream. - * @param __HANDLE__: DMA handle - * @param __COUNTER__: Number of data units to be transferred (from 0 to 65535) - * Number of data items depends only on the Peripheral data format. - * - * @note If Peripheral data format is Bytes: number of data units is equal - * to total number of bytes to be transferred. - * - * @note If Peripheral data format is Half-Word: number of data units is - * equal to total number of bytes to be transferred / 2. - * - * @note If Peripheral data format is Word: number of data units is equal - * to total number of bytes to be transferred / 4. - * - * @retval The number of remaining data units in the current DMAy Streamx transfer. - */ -#define __HAL_DMA_SET_COUNTER(__HANDLE__, __COUNTER__) ((IS_DMA_STREAM_INSTANCE((__HANDLE__)->Instance))? \ - (((DMA_Stream_TypeDef *)(__HANDLE__)->Instance)->NDTR = (uint16_t)(__COUNTER__)) :\ - (((BDMA_Channel_TypeDef *)(__HANDLE__)->Instance)->CNDTR = (uint16_t)(__COUNTER__))) - -/** - * @brief Returns the number of remaining data units in the current DMAy Streamx transfer. - * @param __HANDLE__: DMA handle - * - * @retval The number of remaining data units in the current DMA Stream transfer. - */ -#define __HAL_DMA_GET_COUNTER(__HANDLE__) ((IS_DMA_STREAM_INSTANCE((__HANDLE__)->Instance))? \ - (((DMA_Stream_TypeDef *)(__HANDLE__)->Instance)->NDTR) :\ - (((BDMA_Channel_TypeDef *)(__HANDLE__)->Instance)->CNDTR)) - -/** - * @} - */ - -/* Include DMA HAL Extension module */ -#include "stm32h7xx_hal_dma_ex.h" - -/* Exported functions --------------------------------------------------------*/ - -/** @defgroup DMA_Exported_Functions DMA Exported Functions - * @brief DMA Exported functions - * @{ - */ - -/** @defgroup DMA_Exported_Functions_Group1 Initialization and de-initialization functions - * @brief Initialization and de-initialization functions - * @{ - */ -HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma); -HAL_StatusTypeDef HAL_DMA_DeInit(DMA_HandleTypeDef *hdma); -/** - * @} - */ - -/** @defgroup DMA_Exported_Functions_Group2 I/O operation functions - * @brief I/O operation functions - * @{ - */ -HAL_StatusTypeDef HAL_DMA_Start (DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength); -HAL_StatusTypeDef HAL_DMA_Start_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength); -HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma); -HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma); -HAL_StatusTypeDef HAL_DMA_PollForTransfer(DMA_HandleTypeDef *hdma, HAL_DMA_LevelCompleteTypeDef CompleteLevel, uint32_t Timeout); -void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma); -HAL_StatusTypeDef HAL_DMA_RegisterCallback(DMA_HandleTypeDef *hdma, HAL_DMA_CallbackIDTypeDef CallbackID, void (* pCallback)(DMA_HandleTypeDef *_hdma)); -HAL_StatusTypeDef HAL_DMA_UnRegisterCallback(DMA_HandleTypeDef *hdma, HAL_DMA_CallbackIDTypeDef CallbackID); - -/** - * @} - */ - -/** @defgroup DMA_Exported_Functions_Group3 Peripheral State functions - * @brief Peripheral State functions - * @{ - */ -HAL_DMA_StateTypeDef HAL_DMA_GetState(DMA_HandleTypeDef *hdma); -uint32_t HAL_DMA_GetError(DMA_HandleTypeDef *hdma); -/** - * @} - */ -/** - * @} - */ -/* Private Constants -------------------------------------------------------------*/ -/** @defgroup DMA_Private_Constants DMA Private Constants - * @brief DMA private defines and constants - * @{ - */ -/** - * @} - */ - -/* Private types -------------------------------------------------------------*/ -/** @defgroup DMA_Private_Types DMA Private Types - * @{ - */ -/** - * @} - */ - -/* Private macros ------------------------------------------------------------*/ -/** @defgroup DMA_Private_Macros DMA Private Macros - * @brief DMA private macros - * @{ - */ - -#if defined(TIM24) -#define IS_DMA_REQUEST(REQUEST) (((REQUEST) <= DMA_REQUEST_TIM24_TRIG)) -#elif defined(ADC3) -#define IS_DMA_REQUEST(REQUEST) (((REQUEST) <= DMA_REQUEST_ADC3)) -#else -#define IS_DMA_REQUEST(REQUEST) (((REQUEST) <= DMA_REQUEST_USART10_TX)) -#endif /* TIM24 */ - -#if defined(ADC3) -#define IS_BDMA_REQUEST(REQUEST) (((REQUEST) <= BDMA_REQUEST_ADC3)) -#else -#define IS_BDMA_REQUEST(REQUEST) (((REQUEST) <= BDMA_REQUEST_DFSDM2_FLT0)) -#endif /* ADC3 */ - -#define IS_DMA_DIRECTION(DIRECTION) (((DIRECTION) == DMA_PERIPH_TO_MEMORY ) || \ - ((DIRECTION) == DMA_MEMORY_TO_PERIPH) || \ - ((DIRECTION) == DMA_MEMORY_TO_MEMORY)) - -#define IS_DMA_BUFFER_SIZE(SIZE) (((SIZE) >= 0x01U) && ((SIZE) < 0x10000U)) - -#define IS_DMA_PERIPHERAL_INC_STATE(STATE) (((STATE) == DMA_PINC_ENABLE) || \ - ((STATE) == DMA_PINC_DISABLE)) - -#define IS_DMA_MEMORY_INC_STATE(STATE) (((STATE) == DMA_MINC_ENABLE) || \ - ((STATE) == DMA_MINC_DISABLE)) - -#define IS_DMA_PERIPHERAL_DATA_SIZE(SIZE) (((SIZE) == DMA_PDATAALIGN_BYTE) || \ - ((SIZE) == DMA_PDATAALIGN_HALFWORD) || \ - ((SIZE) == DMA_PDATAALIGN_WORD)) - -#define IS_DMA_MEMORY_DATA_SIZE(SIZE) (((SIZE) == DMA_MDATAALIGN_BYTE) || \ - ((SIZE) == DMA_MDATAALIGN_HALFWORD) || \ - ((SIZE) == DMA_MDATAALIGN_WORD )) - -#define IS_DMA_MODE(MODE) (((MODE) == DMA_NORMAL ) || \ - ((MODE) == DMA_CIRCULAR) || \ - ((MODE) == DMA_PFCTRL) || \ - ((MODE) == DMA_DOUBLE_BUFFER_M0) || \ - ((MODE) == DMA_DOUBLE_BUFFER_M1)) - -#define IS_DMA_PRIORITY(PRIORITY) (((PRIORITY) == DMA_PRIORITY_LOW ) || \ - ((PRIORITY) == DMA_PRIORITY_MEDIUM) || \ - ((PRIORITY) == DMA_PRIORITY_HIGH) || \ - ((PRIORITY) == DMA_PRIORITY_VERY_HIGH)) - -#define IS_DMA_FIFO_MODE_STATE(STATE) (((STATE) == DMA_FIFOMODE_DISABLE ) || \ - ((STATE) == DMA_FIFOMODE_ENABLE)) - -#define IS_DMA_FIFO_THRESHOLD(THRESHOLD) (((THRESHOLD) == DMA_FIFO_THRESHOLD_1QUARTERFULL ) || \ - ((THRESHOLD) == DMA_FIFO_THRESHOLD_HALFFULL) || \ - ((THRESHOLD) == DMA_FIFO_THRESHOLD_3QUARTERSFULL) || \ - ((THRESHOLD) == DMA_FIFO_THRESHOLD_FULL)) - -#define IS_DMA_MEMORY_BURST(BURST) (((BURST) == DMA_MBURST_SINGLE) || \ - ((BURST) == DMA_MBURST_INC4) || \ - ((BURST) == DMA_MBURST_INC8) || \ - ((BURST) == DMA_MBURST_INC16)) - -#define IS_DMA_PERIPHERAL_BURST(BURST) (((BURST) == DMA_PBURST_SINGLE) || \ - ((BURST) == DMA_PBURST_INC4) || \ - ((BURST) == DMA_PBURST_INC8) || \ - ((BURST) == DMA_PBURST_INC16)) -/** - * @} - */ - -/* Private functions ---------------------------------------------------------*/ -/** @defgroup DMA_Private_Functions DMA Private Functions - * @brief DMA private functions - * @{ - */ -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_HAL_DMA_H */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h deleted file mode 100644 index cde5755..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h +++ /dev/null @@ -1,310 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_dma_ex.h - * @author MCD Application Team - * @brief Header file of DMA HAL extension module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_HAL_DMA_EX_H -#define STM32H7xx_HAL_DMA_EX_H - -#ifdef __cplusplus - extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal_def.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @addtogroup DMAEx - * @{ - */ - -/* Exported types ------------------------------------------------------------*/ -/** @defgroup DMAEx_Exported_Types DMAEx Exported Types - * @brief DMAEx Exported types - * @{ - */ - -/** - * @brief HAL DMA Memory definition - */ -typedef enum -{ - MEMORY0 = 0x00U, /*!< Memory 0 */ - MEMORY1 = 0x01U, /*!< Memory 1 */ - -}HAL_DMA_MemoryTypeDef; - -/** - * @brief HAL DMAMUX Synchronization configuration structure definition - */ -typedef struct -{ - uint32_t SyncSignalID; /*!< Specifies the synchronization signal gating the DMA request in periodic mode. - This parameter can be a value of @ref DMAEx_MUX_SyncSignalID_selection */ - - uint32_t SyncPolarity; /*!< Specifies the polarity of the signal on which the DMA request is synchronized. - This parameter can be a value of @ref DMAEx_MUX_SyncPolarity_selection */ - - FunctionalState SyncEnable; /*!< Specifies if the synchronization shall be enabled or disabled - This parameter can take the value ENABLE or DISABLE*/ - - - FunctionalState EventEnable; /*!< Specifies if an event shall be generated once the RequestNumber is reached. - This parameter can take the value ENABLE or DISABLE */ - - uint32_t RequestNumber; /*!< Specifies the number of DMA request that will be authorized after a sync event. - This parameters can be in the range 1 to 32 */ - -}HAL_DMA_MuxSyncConfigTypeDef; - - -/** - * @brief HAL DMAMUX request generator parameters structure definition - */ -typedef struct -{ - uint32_t SignalID; /*!< Specifies the ID of the signal used for DMAMUX request generator - This parameter can be a value of @ref DMAEx_MUX_SignalGeneratorID_selection */ - - uint32_t Polarity; /*!< Specifies the polarity of the signal on which the request is generated. - This parameter can be a value of @ref DMAEx_MUX_RequestGeneneratorPolarity_selection */ - - uint32_t RequestNumber; /*!< Specifies the number of DMA request that will be generated after a signal event. - This parameters can be in the range 1 to 32 */ - -}HAL_DMA_MuxRequestGeneratorConfigTypeDef; - -/** - * @} - */ - -/* Exported constants --------------------------------------------------------*/ - -/** @defgroup DMAEx_Exported_Constants DMA Exported Constants - * @brief DMAEx Exported constants - * @{ - */ - -/** @defgroup DMAEx_MUX_SyncSignalID_selection DMAEx MUX SyncSignalID selection - * @brief DMAEx MUX SyncSignalID selection - * @{ - */ -#define HAL_DMAMUX1_SYNC_DMAMUX1_CH0_EVT 0U /*!< DMAMUX1 synchronization Signal is DMAMUX1 Channel0 Event */ -#define HAL_DMAMUX1_SYNC_DMAMUX1_CH1_EVT 1U /*!< DMAMUX1 synchronization Signal is DMAMUX1 Channel1 Event */ -#define HAL_DMAMUX1_SYNC_DMAMUX1_CH2_EVT 2U /*!< DMAMUX1 synchronization Signal is DMAMUX1 Channel2 Event */ -#define HAL_DMAMUX1_SYNC_LPTIM1_OUT 3U /*!< DMAMUX1 synchronization Signal is LPTIM1 OUT */ -#define HAL_DMAMUX1_SYNC_LPTIM2_OUT 4U /*!< DMAMUX1 synchronization Signal is LPTIM2 OUT */ -#define HAL_DMAMUX1_SYNC_LPTIM3_OUT 5U /*!< DMAMUX1 synchronization Signal is LPTIM3 OUT */ -#define HAL_DMAMUX1_SYNC_EXTI0 6U /*!< DMAMUX1 synchronization Signal is EXTI0 IT */ -#define HAL_DMAMUX1_SYNC_TIM12_TRGO 7U /*!< DMAMUX1 synchronization Signal is TIM12 TRGO */ - -#define HAL_DMAMUX2_SYNC_DMAMUX2_CH0_EVT 0U /*!< DMAMUX2 synchronization Signal is DMAMUX2 Channel0 Event */ -#define HAL_DMAMUX2_SYNC_DMAMUX2_CH1_EVT 1U /*!< DMAMUX2 synchronization Signal is DMAMUX2 Channel1 Event */ -#define HAL_DMAMUX2_SYNC_DMAMUX2_CH2_EVT 2U /*!< DMAMUX2 synchronization Signal is DMAMUX2 Channel2 Event */ -#define HAL_DMAMUX2_SYNC_DMAMUX2_CH3_EVT 3U /*!< DMAMUX2 synchronization Signal is DMAMUX2 Channel3 Event */ -#define HAL_DMAMUX2_SYNC_DMAMUX2_CH4_EVT 4U /*!< DMAMUX2 synchronization Signal is DMAMUX2 Channel4 Event */ -#define HAL_DMAMUX2_SYNC_DMAMUX2_CH5_EVT 5U /*!< DMAMUX2 synchronization Signal is DMAMUX2 Channel5 Event */ -#define HAL_DMAMUX2_SYNC_LPUART1_RX_WKUP 6U /*!< DMAMUX2 synchronization Signal is LPUART1 RX Wakeup */ -#define HAL_DMAMUX2_SYNC_LPUART1_TX_WKUP 7U /*!< DMAMUX2 synchronization Signal is LPUART1 TX Wakeup */ -#define HAL_DMAMUX2_SYNC_LPTIM2_OUT 8U /*!< DMAMUX2 synchronization Signal is LPTIM2 output */ -#define HAL_DMAMUX2_SYNC_LPTIM3_OUT 9U /*!< DMAMUX2 synchronization Signal is LPTIM3 output */ -#define HAL_DMAMUX2_SYNC_I2C4_WKUP 10U /*!< DMAMUX2 synchronization Signal is I2C4 Wakeup */ -#define HAL_DMAMUX2_SYNC_SPI6_WKUP 11U /*!< DMAMUX2 synchronization Signal is SPI6 Wakeup */ -#define HAL_DMAMUX2_SYNC_COMP1_OUT 12U /*!< DMAMUX2 synchronization Signal is Comparator 1 output */ -#define HAL_DMAMUX2_SYNC_RTC_WKUP 13U /*!< DMAMUX2 synchronization Signal is RTC Wakeup */ -#define HAL_DMAMUX2_SYNC_EXTI0 14U /*!< DMAMUX2 synchronization Signal is EXTI0 IT */ -#define HAL_DMAMUX2_SYNC_EXTI2 15U /*!< DMAMUX2 synchronization Signal is EXTI2 IT */ - -/** - * @} - */ - -/** @defgroup DMAEx_MUX_SyncPolarity_selection DMAEx MUX SyncPolarity selection - * @brief DMAEx MUX SyncPolarity selection - * @{ - */ -#define HAL_DMAMUX_SYNC_NO_EVENT 0x00000000U /*!< block synchronization events */ -#define HAL_DMAMUX_SYNC_RISING DMAMUX_CxCR_SPOL_0 /*!< synchronize with rising edge events */ -#define HAL_DMAMUX_SYNC_FALLING DMAMUX_CxCR_SPOL_1 /*!< synchronize with falling edge events */ -#define HAL_DMAMUX_SYNC_RISING_FALLING DMAMUX_CxCR_SPOL /*!< synchronize with rising and falling edge events */ - -/** - * @} - */ - - -/** @defgroup DMAEx_MUX_SignalGeneratorID_selection DMAEx MUX SignalGeneratorID selection - * @brief DMAEx MUX SignalGeneratorID selection - * @{ - */ -#define HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH0_EVT 0U /*!< DMAMUX1 Request generator Signal is DMAMUX1 Channel0 Event */ -#define HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH1_EVT 1U /*!< DMAMUX1 Request generator Signal is DMAMUX1 Channel1 Event */ -#define HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH2_EVT 2U /*!< DMAMUX1 Request generator Signal is DMAMUX1 Channel2 Event */ -#define HAL_DMAMUX1_REQ_GEN_LPTIM1_OUT 3U /*!< DMAMUX1 Request generator Signal is LPTIM1 OUT */ -#define HAL_DMAMUX1_REQ_GEN_LPTIM2_OUT 4U /*!< DMAMUX1 Request generator Signal is LPTIM2 OUT */ -#define HAL_DMAMUX1_REQ_GEN_LPTIM3_OUT 5U /*!< DMAMUX1 Request generator Signal is LPTIM3 OUT */ -#define HAL_DMAMUX1_REQ_GEN_EXTI0 6U /*!< DMAMUX1 Request generator Signal is EXTI0 IT */ -#define HAL_DMAMUX1_REQ_GEN_TIM12_TRGO 7U /*!< DMAMUX1 Request generator Signal is TIM12 TRGO */ - -#define HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH0_EVT 0U /*!< DMAMUX2 Request generator Signal is DMAMUX2 Channel0 Event */ -#define HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH1_EVT 1U /*!< DMAMUX2 Request generator Signal is DMAMUX2 Channel1 Event */ -#define HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH2_EVT 2U /*!< DMAMUX2 Request generator Signal is DMAMUX2 Channel2 Event */ -#define HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH3_EVT 3U /*!< DMAMUX2 Request generator Signal is DMAMUX2 Channel3 Event */ -#define HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH4_EVT 4U /*!< DMAMUX2 Request generator Signal is DMAMUX2 Channel4 Event */ -#define HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH5_EVT 5U /*!< DMAMUX2 Request generator Signal is DMAMUX2 Channel5 Event */ -#define HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH6_EVT 6U /*!< DMAMUX2 Request generator Signal is DMAMUX2 Channel6 Event */ -#define HAL_DMAMUX2_REQ_GEN_LPUART1_RX_WKUP 7U /*!< DMAMUX2 Request generator Signal is LPUART1 RX Wakeup */ -#define HAL_DMAMUX2_REQ_GEN_LPUART1_TX_WKUP 8U /*!< DMAMUX2 Request generator Signal is LPUART1 TX Wakeup */ -#define HAL_DMAMUX2_REQ_GEN_LPTIM2_WKUP 9U /*!< DMAMUX2 Request generator Signal is LPTIM2 Wakeup */ -#define HAL_DMAMUX2_REQ_GEN_LPTIM2_OUT 10U /*!< DMAMUX2 Request generator Signal is LPTIM2 OUT */ -#define HAL_DMAMUX2_REQ_GEN_LPTIM3_WKUP 11U /*!< DMAMUX2 Request generator Signal is LPTIM3 Wakeup */ -#define HAL_DMAMUX2_REQ_GEN_LPTIM3_OUT 12U /*!< DMAMUX2 Request generator Signal is LPTIM3 OUT */ -#if defined(LPTIM4) -#define HAL_DMAMUX2_REQ_GEN_LPTIM4_WKUP 13U /*!< DMAMUX2 Request generator Signal is LPTIM4 Wakeup */ -#endif /* LPTIM4 */ -#if defined(LPTIM5) -#define HAL_DMAMUX2_REQ_GEN_LPTIM5_WKUP 14U /*!< DMAMUX2 Request generator Signal is LPTIM5 Wakeup */ -#endif /* LPTIM5 */ -#define HAL_DMAMUX2_REQ_GEN_I2C4_WKUP 15U /*!< DMAMUX2 Request generator Signal is I2C4 Wakeup */ -#define HAL_DMAMUX2_REQ_GEN_SPI6_WKUP 16U /*!< DMAMUX2 Request generator Signal is SPI6 Wakeup */ -#define HAL_DMAMUX2_REQ_GEN_COMP1_OUT 17U /*!< DMAMUX2 Request generator Signal is Comparator 1 output */ -#define HAL_DMAMUX2_REQ_GEN_COMP2_OUT 18U /*!< DMAMUX2 Request generator Signal is Comparator 2 output */ -#define HAL_DMAMUX2_REQ_GEN_RTC_WKUP 19U /*!< DMAMUX2 Request generator Signal is RTC Wakeup */ -#define HAL_DMAMUX2_REQ_GEN_EXTI0 20U /*!< DMAMUX2 Request generator Signal is EXTI0 */ -#define HAL_DMAMUX2_REQ_GEN_EXTI2 21U /*!< DMAMUX2 Request generator Signal is EXTI2 */ -#define HAL_DMAMUX2_REQ_GEN_I2C4_IT_EVT 22U /*!< DMAMUX2 Request generator Signal is I2C4 IT Event */ -#define HAL_DMAMUX2_REQ_GEN_SPI6_IT 23U /*!< DMAMUX2 Request generator Signal is SPI6 IT */ -#define HAL_DMAMUX2_REQ_GEN_LPUART1_TX_IT 24U /*!< DMAMUX2 Request generator Signal is LPUART1 Tx IT */ -#define HAL_DMAMUX2_REQ_GEN_LPUART1_RX_IT 25U /*!< DMAMUX2 Request generator Signal is LPUART1 Rx IT */ -#if defined(ADC3) -#define HAL_DMAMUX2_REQ_GEN_ADC3_IT 26U /*!< DMAMUX2 Request generator Signal is ADC3 IT */ -#define HAL_DMAMUX2_REQ_GEN_ADC3_AWD1_OUT 27U /*!< DMAMUX2 Request generator Signal is ADC3 Analog Watchdog 1 output */ -#endif /* ADC3 */ -#define HAL_DMAMUX2_REQ_GEN_BDMA_CH0_IT 28U /*!< DMAMUX2 Request generator Signal is BDMA Channel 0 IT */ -#define HAL_DMAMUX2_REQ_GEN_BDMA_CH1_IT 29U /*!< DMAMUX2 Request generator Signal is BDMA Channel 1 IT */ - - -/** - * @} - */ - -/** @defgroup DMAEx_MUX_RequestGeneneratorPolarity_selection DMAEx MUX RequestGeneneratorPolarity selection - * @brief DMAEx MUX RequestGeneneratorPolarity selection - * @{ - */ -#define HAL_DMAMUX_REQ_GEN_NO_EVENT 0x00000000U /*!< block request generator events */ -#define HAL_DMAMUX_REQ_GEN_RISING DMAMUX_RGxCR_GPOL_0 /*!< generate request on rising edge events */ -#define HAL_DMAMUX_REQ_GEN_FALLING DMAMUX_RGxCR_GPOL_1 /*!< generate request on falling edge events */ -#define HAL_DMAMUX_REQ_GEN_RISING_FALLING DMAMUX_RGxCR_GPOL /*!< generate request on rising and falling edge events */ - -/** - * @} - */ - -/** - * @} - */ - -/* Exported functions --------------------------------------------------------*/ -/** @defgroup DMAEx_Exported_Functions DMAEx Exported Functions - * @brief DMAEx Exported functions - * @{ - */ - -/** @defgroup DMAEx_Exported_Functions_Group1 Extended features functions - * @brief Extended features functions - * @{ - */ - -/* IO operation functions *******************************************************/ -HAL_StatusTypeDef HAL_DMAEx_MultiBufferStart(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t SecondMemAddress, uint32_t DataLength); -HAL_StatusTypeDef HAL_DMAEx_MultiBufferStart_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t SecondMemAddress, uint32_t DataLength); -HAL_StatusTypeDef HAL_DMAEx_ChangeMemory(DMA_HandleTypeDef *hdma, uint32_t Address, HAL_DMA_MemoryTypeDef memory); -HAL_StatusTypeDef HAL_DMAEx_ConfigMuxSync(DMA_HandleTypeDef *hdma, HAL_DMA_MuxSyncConfigTypeDef *pSyncConfig); -HAL_StatusTypeDef HAL_DMAEx_ConfigMuxRequestGenerator (DMA_HandleTypeDef *hdma, HAL_DMA_MuxRequestGeneratorConfigTypeDef *pRequestGeneratorConfig); -HAL_StatusTypeDef HAL_DMAEx_EnableMuxRequestGenerator (DMA_HandleTypeDef *hdma); -HAL_StatusTypeDef HAL_DMAEx_DisableMuxRequestGenerator (DMA_HandleTypeDef *hdma); - -void HAL_DMAEx_MUX_IRQHandler(DMA_HandleTypeDef *hdma); -/** - * @} - */ -/** - * @} - */ - -/* Private macros ------------------------------------------------------------*/ -/** @defgroup DMAEx_Private_Macros DMA Private Macros - * @brief DMAEx private macros - * @{ - */ - -#define IS_DMA_DMAMUX_SYNC_SIGNAL_ID(SIGNAL_ID) ((SIGNAL_ID) <= HAL_DMAMUX1_SYNC_TIM12_TRGO) -#define IS_BDMA_DMAMUX_SYNC_SIGNAL_ID(SIGNAL_ID) ((SIGNAL_ID) <= HAL_DMAMUX2_SYNC_EXTI2) - -#define IS_DMAMUX_SYNC_REQUEST_NUMBER(REQUEST_NUMBER) (((REQUEST_NUMBER) > 0U) && ((REQUEST_NUMBER) <= 32U)) - -#define IS_DMAMUX_SYNC_POLARITY(POLARITY) (((POLARITY) == HAL_DMAMUX_SYNC_NO_EVENT) || \ - ((POLARITY) == HAL_DMAMUX_SYNC_RISING) || \ - ((POLARITY) == HAL_DMAMUX_SYNC_FALLING) || \ - ((POLARITY) == HAL_DMAMUX_SYNC_RISING_FALLING)) - -#define IS_DMAMUX_SYNC_STATE(SYNC) (((SYNC) == DISABLE) || ((SYNC) == ENABLE)) - -#define IS_DMAMUX_SYNC_EVENT(EVENT) (((EVENT) == DISABLE) || \ - ((EVENT) == ENABLE)) - -#define IS_DMA_DMAMUX_REQUEST_GEN_SIGNAL_ID(SIGNAL_ID) ((SIGNAL_ID) <= HAL_DMAMUX1_REQ_GEN_TIM12_TRGO) -#define IS_BDMA_DMAMUX_REQUEST_GEN_SIGNAL_ID(SIGNAL_ID) ((SIGNAL_ID) <= HAL_DMAMUX2_REQ_GEN_BDMA_CH1_IT) - -#define IS_DMAMUX_REQUEST_GEN_REQUEST_NUMBER(REQUEST_NUMBER) (((REQUEST_NUMBER) > 0U) && ((REQUEST_NUMBER) <= 32U)) - -#define IS_DMAMUX_REQUEST_GEN_POLARITY(POLARITY) (((POLARITY) == HAL_DMAMUX_REQ_GEN_NO_EVENT) || \ - ((POLARITY) == HAL_DMAMUX_REQ_GEN_RISING) || \ - ((POLARITY) == HAL_DMAMUX_REQ_GEN_FALLING) || \ - ((POLARITY) == HAL_DMAMUX_REQ_GEN_RISING_FALLING)) - -/** - * @} - */ - -/* Private functions ---------------------------------------------------------*/ -/** @defgroup DMAEx_Private_Functions DMAEx Private Functions - * @brief DMAEx Private functions - * @{ - */ -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_HAL_DMA_H */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h deleted file mode 100644 index 0a14686..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth.h +++ /dev/null @@ -1,1855 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_eth.h - * @author MCD Application Team - * @brief Header file of ETH HAL module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_HAL_ETH_H -#define STM32H7xx_HAL_ETH_H - -#ifdef __cplusplus -extern "C" { -#endif - - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal_def.h" - -#if defined(ETH) - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @addtogroup ETH - * @{ - */ - -/* Exported types ------------------------------------------------------------*/ -#ifndef ETH_TX_DESC_CNT -#define ETH_TX_DESC_CNT 4U -#endif /* ETH_TX_DESC_CNT */ - -#ifndef ETH_RX_DESC_CNT -#define ETH_RX_DESC_CNT 4U -#endif /* ETH_RX_DESC_CNT */ - -#ifndef ETH_SWRESET_TIMEOUT -#define ETH_SWRESET_TIMEOUT 500U -#endif /* ETH_SWRESET_TIMEOUT */ - -#ifndef ETH_MDIO_BUS_TIMEOUT -#define ETH_MDIO_BUS_TIMEOUT 1000U -#endif /* ETH_MDIO_BUS_TIMEOUT */ - -#ifndef ETH_MAC_US_TICK -#define ETH_MAC_US_TICK 1000000U -#endif /* ETH_MAC_US_TICK */ - -/*********************** Descriptors struct def section ************************/ -/** @defgroup ETH_Exported_Types ETH Exported Types - * @{ - */ - -/** - * @brief ETH DMA Descriptor structure definition - */ -typedef struct -{ - __IO uint32_t DESC0; - __IO uint32_t DESC1; - __IO uint32_t DESC2; - __IO uint32_t DESC3; - uint32_t BackupAddr0; /* used to store rx buffer 1 address */ - uint32_t BackupAddr1; /* used to store rx buffer 2 address */ -} ETH_DMADescTypeDef; -/** - * - */ - -/** - * @brief ETH Buffers List structure definition - */ -typedef struct __ETH_BufferTypeDef -{ - uint8_t *buffer; /*gState = HAL_ETH_STATE_RESET; \ - (__HANDLE__)->MspInitCallback = NULL; \ - (__HANDLE__)->MspDeInitCallback = NULL; \ - } while(0) -#else -#define __HAL_ETH_RESET_HANDLE_STATE(__HANDLE__) do{ \ - (__HANDLE__)->gState = HAL_ETH_STATE_RESET; \ - } while(0) -#endif /*USE_HAL_ETH_REGISTER_CALLBACKS */ - -/** - * @brief Enables the specified ETHERNET DMA interrupts. - * @param __HANDLE__ : ETH Handle - * @param __INTERRUPT__: specifies the ETHERNET DMA interrupt sources to be - * enabled @ref ETH_DMA_Interrupts - * @retval None - */ -#define __HAL_ETH_DMA_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->DMACIER |= (__INTERRUPT__)) - -/** - * @brief Disables the specified ETHERNET DMA interrupts. - * @param __HANDLE__ : ETH Handle - * @param __INTERRUPT__: specifies the ETHERNET DMA interrupt sources to be - * disabled. @ref ETH_DMA_Interrupts - * @retval None - */ -#define __HAL_ETH_DMA_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->DMACIER &= ~(__INTERRUPT__)) - -/** - * @brief Gets the ETHERNET DMA IT source enabled or disabled. - * @param __HANDLE__ : ETH Handle - * @param __INTERRUPT__: specifies the interrupt source to get . @ref ETH_DMA_Interrupts - * @retval The ETH DMA IT Source enabled or disabled - */ -#define __HAL_ETH_DMA_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) \ - (((__HANDLE__)->Instance->DMACIER & (__INTERRUPT__)) == (__INTERRUPT__)) - -/** - * @brief Gets the ETHERNET DMA IT pending bit. - * @param __HANDLE__ : ETH Handle - * @param __INTERRUPT__: specifies the interrupt source to get . @ref ETH_DMA_Interrupts - * @retval The state of ETH DMA IT (SET or RESET) - */ -#define __HAL_ETH_DMA_GET_IT(__HANDLE__, __INTERRUPT__) \ - (((__HANDLE__)->Instance->DMACSR & (__INTERRUPT__)) == (__INTERRUPT__)) - -/** - * @brief Clears the ETHERNET DMA IT pending bit. - * @param __HANDLE__ : ETH Handle - * @param __INTERRUPT__: specifies the interrupt pending bit to clear. @ref ETH_DMA_Interrupts - * @retval None - */ -#define __HAL_ETH_DMA_CLEAR_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->DMACSR = (__INTERRUPT__)) - -/** - * @brief Checks whether the specified ETHERNET DMA flag is set or not. - * @param __HANDLE__: ETH Handle - * @param __FLAG__: specifies the flag to check. @ref ETH_DMA_Status_Flags - * @retval The state of ETH DMA FLAG (SET or RESET). - */ -#define __HAL_ETH_DMA_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->DMACSR &( __FLAG__)) == ( __FLAG__)) - -/** - * @brief Clears the specified ETHERNET DMA flag. - * @param __HANDLE__: ETH Handle - * @param __FLAG__: specifies the flag to check. @ref ETH_DMA_Status_Flags - * @retval The state of ETH DMA FLAG (SET or RESET). - */ -#define __HAL_ETH_DMA_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->DMACSR = ( __FLAG__)) - -/** - * @brief Enables the specified ETHERNET MAC interrupts. - * @param __HANDLE__ : ETH Handle - * @param __INTERRUPT__: specifies the ETHERNET MAC interrupt sources to be - * enabled @ref ETH_MAC_Interrupts - * @retval None - */ -#define __HAL_ETH_MAC_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->MACIER |= (__INTERRUPT__)) - -/** - * @brief Disables the specified ETHERNET MAC interrupts. - * @param __HANDLE__ : ETH Handle - * @param __INTERRUPT__: specifies the ETHERNET MAC interrupt sources to be - * enabled @ref ETH_MAC_Interrupts - * @retval None - */ -#define __HAL_ETH_MAC_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->MACIER &= ~(__INTERRUPT__)) - -/** - * @brief Checks whether the specified ETHERNET MAC flag is set or not. - * @param __HANDLE__: ETH Handle - * @param __INTERRUPT__: specifies the flag to check. @ref ETH_MAC_Interrupts - * @retval The state of ETH MAC IT (SET or RESET). - */ -#define __HAL_ETH_MAC_GET_IT(__HANDLE__, __INTERRUPT__) \ - (((__HANDLE__)->Instance->MACISR &( __INTERRUPT__)) == ( __INTERRUPT__)) - -/*!< External interrupt line 86 Connected to the ETH wakeup EXTI Line */ -#define ETH_WAKEUP_EXTI_LINE 0x00400000U /* !< 86 - 64 = 22 */ - -/** - * @brief Enable the ETH WAKEUP Exti Line. - * @param __EXTI_LINE__: specifies the ETH WAKEUP Exti sources to be enabled. - * @arg ETH_WAKEUP_EXTI_LINE - * @retval None. - */ -#define __HAL_ETH_WAKEUP_EXTI_ENABLE_IT(__EXTI_LINE__) (EXTI_D1->IMR3 |= (__EXTI_LINE__)) - -/** - * @brief checks whether the specified ETH WAKEUP Exti interrupt flag is set or not. - * @param __EXTI_LINE__: specifies the ETH WAKEUP Exti sources to be cleared. - * @arg ETH_WAKEUP_EXTI_LINE - * @retval EXTI ETH WAKEUP Line Status. - */ -#define __HAL_ETH_WAKEUP_EXTI_GET_FLAG(__EXTI_LINE__) (EXTI_D1->PR3 & (__EXTI_LINE__)) - -/** - * @brief Clear the ETH WAKEUP Exti flag. - * @param __EXTI_LINE__: specifies the ETH WAKEUP Exti sources to be cleared. - * @arg ETH_WAKEUP_EXTI_LINE - * @retval None. - */ -#define __HAL_ETH_WAKEUP_EXTI_CLEAR_FLAG(__EXTI_LINE__) (EXTI_D1->PR3 = (__EXTI_LINE__)) - -#if defined(DUAL_CORE) -/** - * @brief Enable the ETH WAKEUP Exti Line by Core2. - * @param __EXTI_LINE__: specifies the ETH WAKEUP Exti sources to be enabled. - * @arg ETH_WAKEUP_EXTI_LINE - * @retval None. - */ -#define __HAL_ETH_WAKEUP_EXTID2_ENABLE_IT(__EXTI_LINE__) (EXTI_D2->IMR3 |= (__EXTI_LINE__)) - -/** - * @brief checks whether the specified ETH WAKEUP Exti interrupt flag is set or not. - * @param __EXTI_LINE__: specifies the ETH WAKEUP Exti sources to be cleared. - * @arg ETH_WAKEUP_EXTI_LINE - * @retval EXTI ETH WAKEUP Line Status. - */ -#define __HAL_ETH_WAKEUP_EXTID2_GET_FLAG(__EXTI_LINE__) (EXTI_D2->PR3 & (__EXTI_LINE__)) - -/** - * @brief Clear the ETH WAKEUP Exti flag. - * @param __EXTI_LINE__: specifies the ETH WAKEUP Exti sources to be cleared. - * @arg ETH_WAKEUP_EXTI_LINE - * @retval None. - */ -#define __HAL_ETH_WAKEUP_EXTID2_CLEAR_FLAG(__EXTI_LINE__) (EXTI_D2->PR3 = (__EXTI_LINE__)) -#endif /* DUAL_CORE */ - -/** - * @brief enable rising edge interrupt on selected EXTI line. - * @param __EXTI_LINE__: specifies the ETH WAKEUP EXTI sources to be disabled. - * @arg ETH_WAKEUP_EXTI_LINE - * @retval None - */ -#define __HAL_ETH_WAKEUP_EXTI_ENABLE_RISING_EDGE(__EXTI_LINE__) (EXTI->FTSR3 &= ~(__EXTI_LINE__)); \ - (EXTI->RTSR3 |= (__EXTI_LINE__)) - -/** - * @brief enable falling edge interrupt on selected EXTI line. - * @param __EXTI_LINE__: specifies the ETH WAKEUP EXTI sources to be disabled. - * @arg ETH_WAKEUP_EXTI_LINE - * @retval None - */ -#define __HAL_ETH_WAKEUP_EXTI_ENABLE_FALLING_EDGE(__EXTI_LINE__) (EXTI->RTSR3 &= ~(__EXTI_LINE__));\ - (EXTI->FTSR3 |= (__EXTI_LINE__)) - -/** - * @brief enable falling edge interrupt on selected EXTI line. - * @param __EXTI_LINE__: specifies the ETH WAKEUP EXTI sources to be disabled. - * @arg ETH_WAKEUP_EXTI_LINE - * @retval None - */ -#define __HAL_ETH_WAKEUP_EXTI_ENABLE_RISING_FALLING_EDGE(__EXTI_LINE__) (EXTI->RTSR3 |= (__EXTI_LINE__));\ - (EXTI->FTSR3 |= (__EXTI_LINE__)) - -/** - * @brief Generates a Software interrupt on selected EXTI line. - * @param __EXTI_LINE__: specifies the ETH WAKEUP EXTI sources to be disabled. - * @arg ETH_WAKEUP_EXTI_LINE - * @retval None - */ -#define __HAL_ETH_WAKEUP_EXTI_GENERATE_SWIT(__EXTI_LINE__) (EXTI->SWIER3 |= (__EXTI_LINE__)) - -#define __HAL_ETH_GET_PTP_CONTROL(__HANDLE__, __FLAG__) (((((__HANDLE__)->Instance->MACTSCR) & \ - (__FLAG__)) == (__FLAG__)) ? SET : RESET) - -#define __HAL_ETH_SET_PTP_CONTROL(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->MACTSCR |= (__FLAG__)) -/** - * @} - */ - -/* Include ETH HAL Extension module */ -#include "stm32h7xx_hal_eth_ex.h" - -/* Exported functions --------------------------------------------------------*/ - -/** @addtogroup ETH_Exported_Functions - * @{ - */ - -/** @addtogroup ETH_Exported_Functions_Group1 - * @{ - */ -/* Initialization and de initialization functions **********************************/ -HAL_StatusTypeDef HAL_ETH_Init(ETH_HandleTypeDef *heth); -HAL_StatusTypeDef HAL_ETH_DeInit(ETH_HandleTypeDef *heth); -void HAL_ETH_MspInit(ETH_HandleTypeDef *heth); -void HAL_ETH_MspDeInit(ETH_HandleTypeDef *heth); - -/* Callbacks Register/UnRegister functions ***********************************/ -#if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) -HAL_StatusTypeDef HAL_ETH_RegisterCallback(ETH_HandleTypeDef *heth, HAL_ETH_CallbackIDTypeDef CallbackID, - pETH_CallbackTypeDef pCallback); -HAL_StatusTypeDef HAL_ETH_UnRegisterCallback(ETH_HandleTypeDef *heth, HAL_ETH_CallbackIDTypeDef CallbackID); -#endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ - -/** - * @} - */ - -/** @addtogroup ETH_Exported_Functions_Group2 - * @{ - */ -/* IO operation functions *******************************************************/ -HAL_StatusTypeDef HAL_ETH_Start(ETH_HandleTypeDef *heth); -HAL_StatusTypeDef HAL_ETH_Start_IT(ETH_HandleTypeDef *heth); -HAL_StatusTypeDef HAL_ETH_Stop(ETH_HandleTypeDef *heth); -HAL_StatusTypeDef HAL_ETH_Stop_IT(ETH_HandleTypeDef *heth); - -HAL_StatusTypeDef HAL_ETH_ReadData(ETH_HandleTypeDef *heth, void **pAppBuff); -HAL_StatusTypeDef HAL_ETH_RegisterRxAllocateCallback(ETH_HandleTypeDef *heth, - pETH_rxAllocateCallbackTypeDef rxAllocateCallback); -HAL_StatusTypeDef HAL_ETH_UnRegisterRxAllocateCallback(ETH_HandleTypeDef *heth); -HAL_StatusTypeDef HAL_ETH_RegisterRxLinkCallback(ETH_HandleTypeDef *heth, pETH_rxLinkCallbackTypeDef rxLinkCallback); -HAL_StatusTypeDef HAL_ETH_UnRegisterRxLinkCallback(ETH_HandleTypeDef *heth); -HAL_StatusTypeDef HAL_ETH_GetRxDataErrorCode(ETH_HandleTypeDef *heth, uint32_t *pErrorCode); -HAL_StatusTypeDef HAL_ETH_RegisterTxFreeCallback(ETH_HandleTypeDef *heth, pETH_txFreeCallbackTypeDef txFreeCallback); -HAL_StatusTypeDef HAL_ETH_UnRegisterTxFreeCallback(ETH_HandleTypeDef *heth); -HAL_StatusTypeDef HAL_ETH_ReleaseTxPacket(ETH_HandleTypeDef *heth); - -#ifdef HAL_ETH_USE_PTP -HAL_StatusTypeDef HAL_ETH_PTP_SetConfig(ETH_HandleTypeDef *heth, ETH_PTP_ConfigTypeDef *ptpconfig); -HAL_StatusTypeDef HAL_ETH_PTP_GetConfig(ETH_HandleTypeDef *heth, ETH_PTP_ConfigTypeDef *ptpconfig); -HAL_StatusTypeDef HAL_ETH_PTP_SetTime(ETH_HandleTypeDef *heth, ETH_TimeTypeDef *time); -HAL_StatusTypeDef HAL_ETH_PTP_GetTime(ETH_HandleTypeDef *heth, ETH_TimeTypeDef *time); -HAL_StatusTypeDef HAL_ETH_PTP_AddTimeOffset(ETH_HandleTypeDef *heth, ETH_PtpUpdateTypeDef ptpoffsettype, - ETH_TimeTypeDef *timeoffset); -HAL_StatusTypeDef HAL_ETH_PTP_InsertTxTimestamp(ETH_HandleTypeDef *heth); -HAL_StatusTypeDef HAL_ETH_PTP_GetTxTimestamp(ETH_HandleTypeDef *heth, ETH_TimeStampTypeDef *timestamp); -HAL_StatusTypeDef HAL_ETH_PTP_GetRxTimestamp(ETH_HandleTypeDef *heth, ETH_TimeStampTypeDef *timestamp); -HAL_StatusTypeDef HAL_ETH_RegisterTxPtpCallback(ETH_HandleTypeDef *heth, pETH_txPtpCallbackTypeDef txPtpCallback); -HAL_StatusTypeDef HAL_ETH_UnRegisterTxPtpCallback(ETH_HandleTypeDef *heth); -#endif /* HAL_ETH_USE_PTP */ - -HAL_StatusTypeDef HAL_ETH_Transmit(ETH_HandleTypeDef *heth, ETH_TxPacketConfig *pTxConfig, uint32_t Timeout); -HAL_StatusTypeDef HAL_ETH_Transmit_IT(ETH_HandleTypeDef *heth, ETH_TxPacketConfig *pTxConfig); - -HAL_StatusTypeDef HAL_ETH_WritePHYRegister(ETH_HandleTypeDef *heth, uint32_t PHYAddr, uint32_t PHYReg, - uint32_t RegValue); -HAL_StatusTypeDef HAL_ETH_ReadPHYRegister(ETH_HandleTypeDef *heth, uint32_t PHYAddr, uint32_t PHYReg, - uint32_t *pRegValue); - -void HAL_ETH_IRQHandler(ETH_HandleTypeDef *heth); -void HAL_ETH_TxCpltCallback(ETH_HandleTypeDef *heth); -void HAL_ETH_RxCpltCallback(ETH_HandleTypeDef *heth); -void HAL_ETH_ErrorCallback(ETH_HandleTypeDef *heth); -void HAL_ETH_PMTCallback(ETH_HandleTypeDef *heth); -void HAL_ETH_EEECallback(ETH_HandleTypeDef *heth); -void HAL_ETH_WakeUpCallback(ETH_HandleTypeDef *heth); -void HAL_ETH_RxAllocateCallback(uint8_t **buff); -void HAL_ETH_RxLinkCallback(void **pStart, void **pEnd, uint8_t *buff, uint16_t Length); -void HAL_ETH_TxFreeCallback(uint32_t *buff); -void HAL_ETH_TxPtpCallback(uint32_t *buff, ETH_TimeStampTypeDef *timestamp); -/** - * @} - */ - -/** @addtogroup ETH_Exported_Functions_Group3 - * @{ - */ -/* Peripheral Control functions **********************************************/ -/* MAC & DMA Configuration APIs **********************************************/ -HAL_StatusTypeDef HAL_ETH_GetMACConfig(ETH_HandleTypeDef *heth, ETH_MACConfigTypeDef *macconf); -HAL_StatusTypeDef HAL_ETH_GetDMAConfig(ETH_HandleTypeDef *heth, ETH_DMAConfigTypeDef *dmaconf); -HAL_StatusTypeDef HAL_ETH_SetMACConfig(ETH_HandleTypeDef *heth, ETH_MACConfigTypeDef *macconf); -HAL_StatusTypeDef HAL_ETH_SetDMAConfig(ETH_HandleTypeDef *heth, ETH_DMAConfigTypeDef *dmaconf); -void HAL_ETH_SetMDIOClockRange(ETH_HandleTypeDef *heth); - -/* MAC VLAN Processing APIs ************************************************/ -void HAL_ETH_SetRxVLANIdentifier(ETH_HandleTypeDef *heth, uint32_t ComparisonBits, - uint32_t VLANIdentifier); - -/* MAC L2 Packet Filtering APIs **********************************************/ -HAL_StatusTypeDef HAL_ETH_GetMACFilterConfig(ETH_HandleTypeDef *heth, ETH_MACFilterConfigTypeDef *pFilterConfig); -HAL_StatusTypeDef HAL_ETH_SetMACFilterConfig(ETH_HandleTypeDef *heth, ETH_MACFilterConfigTypeDef *pFilterConfig); -HAL_StatusTypeDef HAL_ETH_SetHashTable(ETH_HandleTypeDef *heth, uint32_t *pHashTable); -HAL_StatusTypeDef HAL_ETH_SetSourceMACAddrMatch(ETH_HandleTypeDef *heth, uint32_t AddrNbr, uint8_t *pMACAddr); - -/* MAC Power Down APIs *****************************************************/ -void HAL_ETH_EnterPowerDownMode(ETH_HandleTypeDef *heth, ETH_PowerDownConfigTypeDef *pPowerDownConfig); -void HAL_ETH_ExitPowerDownMode(ETH_HandleTypeDef *heth); -HAL_StatusTypeDef HAL_ETH_SetWakeUpFilter(ETH_HandleTypeDef *heth, uint32_t *pFilter, uint32_t Count); - -/** - * @} - */ - -/** @addtogroup ETH_Exported_Functions_Group4 - * @{ - */ -/* Peripheral State functions **************************************************/ -HAL_ETH_StateTypeDef HAL_ETH_GetState(ETH_HandleTypeDef *heth); -uint32_t HAL_ETH_GetError(ETH_HandleTypeDef *heth); -uint32_t HAL_ETH_GetDMAError(ETH_HandleTypeDef *heth); -uint32_t HAL_ETH_GetMACError(ETH_HandleTypeDef *heth); -uint32_t HAL_ETH_GetMACWakeUpSource(ETH_HandleTypeDef *heth); -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -#endif /* ETH */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_HAL_ETH_H */ - - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h deleted file mode 100644 index b9580fa..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_eth_ex.h +++ /dev/null @@ -1,368 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_eth_ex.h - * @author MCD Application Team - * @brief Header file of ETH HAL Extended module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_HAL_ETH_EX_H -#define STM32H7xx_HAL_ETH_EX_H - -#ifdef __cplusplus -extern "C" { -#endif - -#if defined(ETH) - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal_def.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @addtogroup ETHEx - * @{ - */ - -/* Exported types ------------------------------------------------------------*/ -/** @defgroup ETHEx_Exported_Types ETHEx Exported Types - * @{ - */ - -/** - * @brief ETH RX VLAN structure definition - */ -typedef struct -{ - FunctionalState InnerVLANTagInStatus; /*!< Enables or disables Inner VLAN Tag in Rx Status */ - - uint32_t StripInnerVLANTag; /*!< Sets the Inner VLAN Tag Stripping on Receive - This parameter can be a value of - @ref ETHEx_Rx_Inner_VLAN_Tag_Stripping */ - - FunctionalState InnerVLANTag; /*!< Enables or disables Inner VLAN Tag */ - - FunctionalState DoubleVLANProcessing; /*!< Enable or Disable double VLAN processing */ - - FunctionalState VLANTagHashTableMatch; /*!< Enable or Disable VLAN Tag Hash Table Match */ - - FunctionalState VLANTagInStatus; /*!< Enable or Disable VLAN Tag in Rx status */ - - uint32_t StripVLANTag; /*!< Set the VLAN Tag Stripping on Receive - This parameter can be a value of @ref ETHEx_Rx_VLAN_Tag_Stripping */ - - uint32_t VLANTypeCheck; /*!< Enable or Disable VLAN Type Check - This parameter can be a value of @ref ETHEx_VLAN_Type_Check */ - - FunctionalState VLANTagInverceMatch; /*!< Enable or disable VLAN Tag Inverse Match */ -} ETH_RxVLANConfigTypeDef; -/** - * - */ - -/** - * @brief ETH TX VLAN structure definition - */ -typedef struct -{ - FunctionalState SourceTxDesc; /*!< Enable or Disable VLAN tag source from DMA tx descriptors */ - - FunctionalState SVLANType; /*!< Enable or Disable insertion of SVLAN type */ - - uint32_t VLANTagControl; /*!< Sets the VLAN tag control in tx packets - This parameter can be a value of @ref ETHEx_VLAN_Tag_Control */ -} ETH_TxVLANConfigTypeDef; -/** - * - */ - -/** - * @brief ETH L3 filter structure definition - */ -typedef struct -{ - uint32_t Protocol; /*!< Sets the L3 filter protocol to IPv4 or IPv6 - This parameter can be a value of @ref ETHEx_L3_Protocol */ - - uint32_t SrcAddrFilterMatch; /*!< Sets the L3 filter source address match - This parameter can be a value of @ref ETHEx_L3_Source_Match */ - - uint32_t DestAddrFilterMatch; /*!< Sets the L3 filter destination address match - This parameter can be a value of @ref ETHEx_L3_Destination_Match */ - - uint32_t SrcAddrHigherBitsMatch; /*!< Sets the L3 filter source address higher bits match - This parameter can be a value from 0 to 31 */ - - uint32_t DestAddrHigherBitsMatch; /*!< Sets the L3 filter destination address higher bits match - This parameter can be a value from 0 to 31 */ - - uint32_t Ip4SrcAddr; /*!< Sets the L3 filter IPv4 source address if IPv4 protocol is used - This parameter can be a value from 0x0 to 0xFFFFFFFF */ - - uint32_t Ip4DestAddr; /*!< Sets the L3 filter IPv4 destination address if IPv4 protocol is used - This parameter can be a value from 0 to 0xFFFFFFFF */ - - uint32_t Ip6Addr[4]; /*!< Sets the L3 filter IPv6 address if IPv6 protocol is used - This parameter must be a table of 4 words (4* 32 bits) */ -} ETH_L3FilterConfigTypeDef; -/** - * - */ - -/** - * @brief ETH L4 filter structure definition - */ -typedef struct -{ - uint32_t Protocol; /*!< Sets the L4 filter protocol to TCP or UDP - This parameter can be a value of @ref ETHEx_L4_Protocol */ - - uint32_t SrcPortFilterMatch; /*!< Sets the L4 filter source port match - This parameter can be a value of @ref ETHEx_L4_Source_Match */ - - uint32_t DestPortFilterMatch; /*!< Sets the L4 filter destination port match - This parameter can be a value of @ref ETHEx_L4_Destination_Match */ - - uint32_t SourcePort; /*!< Sets the L4 filter source port - This parameter must be a value from 0x0 to 0xFFFF */ - - uint32_t DestinationPort; /*!< Sets the L4 filter destination port - This parameter must be a value from 0x0 to 0xFFFF */ -} ETH_L4FilterConfigTypeDef; -/** - * - */ - -/** - * @} - */ - -/* Exported constants --------------------------------------------------------*/ -/** @defgroup ETHEx_Exported_Constants ETHEx Exported Constants - * @{ - */ - -/** @defgroup ETHEx_LPI_Event ETHEx LPI Event - * @{ - */ -#define ETH_TX_LPI_ENTRY ETH_MACLCSR_TLPIEN -#define ETH_TX_LPI_EXIT ETH_MACLCSR_TLPIEX -#define ETH_RX_LPI_ENTRY ETH_MACLCSR_RLPIEN -#define ETH_RX_LPI_EXIT ETH_MACLCSR_RLPIEX -/** - * @} - */ - -/** @defgroup ETHEx_L3_Filter ETHEx L3 Filter - * @{ - */ -#define ETH_L3_FILTER_0 0x00000000U -#define ETH_L3_FILTER_1 0x0000000CU -/** - * @} - */ - -/** @defgroup ETHEx_L4_Filter ETHEx L4 Filter - * @{ - */ -#define ETH_L4_FILTER_0 0x00000000U -#define ETH_L4_FILTER_1 0x0000000CU -/** - * @} - */ - -/** @defgroup ETHEx_L3_Protocol ETHEx L3 Protocol - * @{ - */ -#define ETH_L3_IPV6_MATCH ETH_MACL3L4CR_L3PEN -#define ETH_L3_IPV4_MATCH 0x00000000U -/** - * @} - */ - -/** @defgroup ETHEx_L3_Source_Match ETHEx L3 Source Match - * @{ - */ -#define ETH_L3_SRC_ADDR_PERFECT_MATCH_ENABLE ETH_MACL3L4CR_L3SAM -#define ETH_L3_SRC_ADDR_INVERSE_MATCH_ENABLE (ETH_MACL3L4CR_L3SAM | ETH_MACL3L4CR_L3SAIM) -#define ETH_L3_SRC_ADDR_MATCH_DISABLE 0x00000000U -/** - * @} - */ - -/** @defgroup ETHEx_L3_Destination_Match ETHEx L3 Destination Match - * @{ - */ -#define ETH_L3_DEST_ADDR_PERFECT_MATCH_ENABLE ETH_MACL3L4CR_L3DAM -#define ETH_L3_DEST_ADDR_INVERSE_MATCH_ENABLE (ETH_MACL3L4CR_L3DAM | ETH_MACL3L4CR_L3DAIM) -#define ETH_L3_DEST_ADDR_MATCH_DISABLE 0x00000000U -/** - * @} - */ - -/** @defgroup ETHEx_L4_Protocol ETHEx L4 Protocol - * @{ - */ -#define ETH_L4_UDP_MATCH ETH_MACL3L4CR_L4PEN -#define ETH_L4_TCP_MATCH 0x00000000U -/** - * @} - */ - -/** @defgroup ETHEx_L4_Source_Match ETHEx L4 Source Match - * @{ - */ -#define ETH_L4_SRC_PORT_PERFECT_MATCH_ENABLE ETH_MACL3L4CR_L4SPM -#define ETH_L4_SRC_PORT_INVERSE_MATCH_ENABLE (ETH_MACL3L4CR_L4SPM |ETH_MACL3L4CR_L4SPIM) -#define ETH_L4_SRC_PORT_MATCH_DISABLE 0x00000000U -/** - * @} - */ - -/** @defgroup ETHEx_L4_Destination_Match ETHEx L4 Destination Match - * @{ - */ -#define ETH_L4_DEST_PORT_PERFECT_MATCH_ENABLE ETH_MACL3L4CR_L4DPM -#define ETH_L4_DEST_PORT_INVERSE_MATCH_ENABLE (ETH_MACL3L4CR_L4DPM | ETH_MACL3L4CR_L4DPIM) -#define ETH_L4_DEST_PORT_MATCH_DISABLE 0x00000000U -/** - * @} - */ - -/** @defgroup ETHEx_Rx_Inner_VLAN_Tag_Stripping ETHEx Rx Inner VLAN Tag Stripping - * @{ - */ -#define ETH_INNERVLANTAGRXSTRIPPING_NONE ETH_MACVTR_EIVLS_DONOTSTRIP -#define ETH_INNERVLANTAGRXSTRIPPING_IFPASS ETH_MACVTR_EIVLS_STRIPIFPASS -#define ETH_INNERVLANTAGRXSTRIPPING_IFFAILS ETH_MACVTR_EIVLS_STRIPIFFAILS -#define ETH_INNERVLANTAGRXSTRIPPING_ALWAYS ETH_MACVTR_EIVLS_ALWAYSSTRIP -/** - * @} - */ - -/** @defgroup ETHEx_Rx_VLAN_Tag_Stripping ETHEx Rx VLAN Tag Stripping - * @{ - */ -#define ETH_VLANTAGRXSTRIPPING_NONE ETH_MACVTR_EVLS_DONOTSTRIP -#define ETH_VLANTAGRXSTRIPPING_IFPASS ETH_MACVTR_EVLS_STRIPIFPASS -#define ETH_VLANTAGRXSTRIPPING_IFFAILS ETH_MACVTR_EVLS_STRIPIFFAILS -#define ETH_VLANTAGRXSTRIPPING_ALWAYS ETH_MACVTR_EVLS_ALWAYSSTRIP -/** - * @} - */ - -/** @defgroup ETHEx_VLAN_Type_Check ETHEx VLAN Type Check - * @{ - */ -#define ETH_VLANTYPECHECK_DISABLE ETH_MACVTR_DOVLTC -#define ETH_VLANTYPECHECK_SVLAN (ETH_MACVTR_ERSVLM | ETH_MACVTR_ESVL) -#define ETH_VLANTYPECHECK_CVLAN 0x00000000U -/** - * @} - */ - -/** @defgroup ETHEx_VLAN_Tag_Control ETHEx_VLAN_Tag_Control - * @{ - */ -#define ETH_VLANTAGCONTROL_NONE (ETH_MACVIR_VLP | ETH_MACVIR_VLC_NOVLANTAG) -#define ETH_VLANTAGCONTROL_DELETE (ETH_MACVIR_VLP | ETH_MACVIR_VLC_VLANTAGDELETE) -#define ETH_VLANTAGCONTROL_INSERT (ETH_MACVIR_VLP | ETH_MACVIR_VLC_VLANTAGINSERT) -#define ETH_VLANTAGCONTROL_REPLACE (ETH_MACVIR_VLP | ETH_MACVIR_VLC_VLANTAGREPLACE) -/** - * @} - */ - -/** @defgroup ETHEx_Tx_VLAN_Tag ETHEx Tx VLAN Tag - * @{ - */ -#define ETH_INNER_TX_VLANTAG 0x00000001U -#define ETH_OUTER_TX_VLANTAG 0x00000000U -/** - * @} - */ - -/** - * @} - */ - -/* Exported functions --------------------------------------------------------*/ -/** @addtogroup ETHEx_Exported_Functions - * @{ - */ - -/** @addtogroup ETHEx_Exported_Functions_Group1 - * @{ - */ -/* MAC ARP Offloading APIs ***************************************************/ -void HAL_ETHEx_EnableARPOffload(ETH_HandleTypeDef *heth); -void HAL_ETHEx_DisableARPOffload(ETH_HandleTypeDef *heth); -void HAL_ETHEx_SetARPAddressMatch(ETH_HandleTypeDef *heth, uint32_t IpAddress); - -/* MAC L3 L4 Filtering APIs ***************************************************/ -void HAL_ETHEx_EnableL3L4Filtering(ETH_HandleTypeDef *heth); -void HAL_ETHEx_DisableL3L4Filtering(ETH_HandleTypeDef *heth); -HAL_StatusTypeDef HAL_ETHEx_GetL3FilterConfig(ETH_HandleTypeDef *heth, uint32_t Filter, - ETH_L3FilterConfigTypeDef *pL3FilterConfig); -HAL_StatusTypeDef HAL_ETHEx_GetL4FilterConfig(ETH_HandleTypeDef *heth, uint32_t Filter, - ETH_L4FilterConfigTypeDef *pL4FilterConfig); -HAL_StatusTypeDef HAL_ETHEx_SetL3FilterConfig(ETH_HandleTypeDef *heth, uint32_t Filter, - ETH_L3FilterConfigTypeDef *pL3FilterConfig); -HAL_StatusTypeDef HAL_ETHEx_SetL4FilterConfig(ETH_HandleTypeDef *heth, uint32_t Filter, - ETH_L4FilterConfigTypeDef *pL4FilterConfig); - -/* MAC VLAN Processing APIs ************************************************/ -void HAL_ETHEx_EnableVLANProcessing(ETH_HandleTypeDef *heth); -void HAL_ETHEx_DisableVLANProcessing(ETH_HandleTypeDef *heth); -HAL_StatusTypeDef HAL_ETHEx_GetRxVLANConfig(ETH_HandleTypeDef *heth, ETH_RxVLANConfigTypeDef *pVlanConfig); -HAL_StatusTypeDef HAL_ETHEx_SetRxVLANConfig(ETH_HandleTypeDef *heth, ETH_RxVLANConfigTypeDef *pVlanConfig); -void HAL_ETHEx_SetVLANHashTable(ETH_HandleTypeDef *heth, uint32_t VLANHashTable); -HAL_StatusTypeDef HAL_ETHEx_GetTxVLANConfig(ETH_HandleTypeDef *heth, uint32_t VLANTag, - ETH_TxVLANConfigTypeDef *pVlanConfig); -HAL_StatusTypeDef HAL_ETHEx_SetTxVLANConfig(ETH_HandleTypeDef *heth, uint32_t VLANTag, - ETH_TxVLANConfigTypeDef *pVlanConfig); -void HAL_ETHEx_SetTxVLANIdentifier(ETH_HandleTypeDef *heth, uint32_t VLANTag, uint32_t VLANIdentifier); - -/* Energy Efficient Ethernet APIs *********************************************/ -void HAL_ETHEx_EnterLPIMode(ETH_HandleTypeDef *heth, FunctionalState TxAutomate, - FunctionalState TxClockStop); -void HAL_ETHEx_ExitLPIMode(ETH_HandleTypeDef *heth); -uint32_t HAL_ETHEx_GetMACLPIEvent(ETH_HandleTypeDef *heth); - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -#endif /* ETH */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_HAL_ETH_EX_H */ - - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h deleted file mode 100644 index 91d7d95..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h +++ /dev/null @@ -1,537 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_exti.h - * @author MCD Application Team - * @brief Header file of EXTI HAL module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_HAL_EXTI_H -#define STM32H7xx_HAL_EXTI_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal_def.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @defgroup EXTI EXTI - * @brief EXTI HAL module driver - * @{ - */ - -/* Exported types ------------------------------------------------------------*/ - -/** @defgroup EXTI_Exported_Types EXTI Exported Types - * @{ - */ -typedef enum -{ - HAL_EXTI_COMMON_CB_ID = 0x00U, -} EXTI_CallbackIDTypeDef; - - -/** - * @brief EXTI Handle structure definition - */ -typedef struct -{ - uint32_t Line; /*!< Exti line number */ - void (* PendingCallback)(void); /*!< Exti pending callback */ -} EXTI_HandleTypeDef; - -/** - * @brief EXTI Configuration structure definition - */ -typedef struct -{ - uint32_t Line; /*!< The Exti line to be configured. This parameter - can be a value of @ref EXTI_Line */ - uint32_t Mode; /*!< The Exit Mode to be configured for a core. - This parameter can be a combination of @ref EXTI_Mode */ - uint32_t Trigger; /*!< The Exti Trigger to be configured. This parameter - can be a value of @ref EXTI_Trigger */ - uint32_t GPIOSel; /*!< The Exti GPIO multiplexer selection to be configured. - This parameter is only possible for line 0 to 15. It - can be a value of @ref EXTI_GPIOSel */ - - uint32_t PendClearSource; /*!< Specifies the event pending clear source for D3/SRD - domain. This parameter can be a value of @ref - EXTI_PendClear_Source */ - -} EXTI_ConfigTypeDef; - -/** - * @} - */ - -/* Exported constants --------------------------------------------------------*/ -/** @defgroup EXTI_Exported_Constants EXTI Exported Constants - * @{ - */ - -/** @defgroup EXTI_Line EXTI Line - * @{ - */ -#define EXTI_LINE_0 (EXTI_GPIO | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL | 0x00U) -#define EXTI_LINE_1 (EXTI_GPIO | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL | 0x01U) -#define EXTI_LINE_2 (EXTI_GPIO | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL | 0x02U) -#define EXTI_LINE_3 (EXTI_GPIO | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL | 0x03U) -#define EXTI_LINE_4 (EXTI_GPIO | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL | 0x04U) -#define EXTI_LINE_5 (EXTI_GPIO | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL | 0x05U) -#define EXTI_LINE_6 (EXTI_GPIO | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL | 0x06U) -#define EXTI_LINE_7 (EXTI_GPIO | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL | 0x07U) -#define EXTI_LINE_8 (EXTI_GPIO | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL | 0x08U) -#define EXTI_LINE_9 (EXTI_GPIO | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL | 0x09U) -#define EXTI_LINE_10 (EXTI_GPIO | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL | 0x0AU) -#define EXTI_LINE_11 (EXTI_GPIO | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL | 0x0BU) -#define EXTI_LINE_12 (EXTI_GPIO | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL | 0x0CU) -#define EXTI_LINE_13 (EXTI_GPIO | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL | 0x0DU) -#define EXTI_LINE_14 (EXTI_GPIO | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL | 0x0EU) -#define EXTI_LINE_15 (EXTI_GPIO | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL | 0x0FU) -#define EXTI_LINE_16 (EXTI_CONFIG | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL_CPU | 0x10U) -#define EXTI_LINE_17 (EXTI_CONFIG | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL_CPU | 0x11U) -#define EXTI_LINE_18 (EXTI_CONFIG | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL_CPU | 0x12U) -#define EXTI_LINE_19 (EXTI_CONFIG | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL | 0x13U) -#define EXTI_LINE_20 (EXTI_CONFIG | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL | 0x14U) -#define EXTI_LINE_21 (EXTI_CONFIG | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL | 0x15U) -#define EXTI_LINE_22 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL_CPU | 0x16U) -#define EXTI_LINE_23 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL_CPU | 0x17U) -#define EXTI_LINE_24 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL_CPU | 0x18U) -#define EXTI_LINE_25 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL | 0x19U) -#define EXTI_LINE_26 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL_CPU | 0x1AU) -#define EXTI_LINE_27 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL_CPU | 0x1BU) -#define EXTI_LINE_28 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL_CPU | 0x1CU) -#define EXTI_LINE_29 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL_CPU | 0x1DU) -#define EXTI_LINE_30 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL_CPU | 0x1EU) -#define EXTI_LINE_31 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG1 | EXTI_TARGET_MSK_ALL_CPU | 0x1FU) -#define EXTI_LINE_32 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL_CPU | 0x00U) -#define EXTI_LINE_33 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL_CPU | 0x01U) -#define EXTI_LINE_34 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL | 0x02U) -#define EXTI_LINE_35 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL | 0x03U) -#define EXTI_LINE_36 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL_CPU | 0x04U) -#define EXTI_LINE_37 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL_CPU | 0x05U) -#define EXTI_LINE_38 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL_CPU | 0x06U) -#define EXTI_LINE_39 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL_CPU | 0x07U) -#define EXTI_LINE_40 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL_CPU | 0x08U) -#define EXTI_LINE_41 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL | 0x09U) -#define EXTI_LINE_42 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL_CPU | 0x0AU) -#define EXTI_LINE_43 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL_CPU | 0x0BU) -#if !defined(USB2_OTG_FS) -#define EXTI_LINE_44 (EXTI_RESERVED | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_NONE | 0x0CU) -#else -#define EXTI_LINE_44 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL_CPU | 0x0CU) -#endif /* USB2_OTG_FS */ -#define EXTI_LINE_45 (EXTI_RESERVED | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_NONE | 0x0DU) -#if defined(DSI) -#define EXTI_LINE_46 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL_CPU | 0x0EU) -#else -#define EXTI_LINE_46 (EXTI_RESERVED | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_NONE | 0x0EU) -#endif /* DSI */ -#define EXTI_LINE_47 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL_CPU | 0x0FU) -#define EXTI_LINE_48 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL | 0x10U) -#define EXTI_LINE_49 (EXTI_CONFIG | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL | 0x11U) -#define EXTI_LINE_50 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL | 0x12U) -#define EXTI_LINE_51 (EXTI_CONFIG | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL | 0x13U) -#if defined(LPTIM4) -#define EXTI_LINE_52 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL | 0x14U) -#else -#define EXTI_LINE_52 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL_CPU | 0x14U) -#endif /*LPTIM4*/ -#if defined(LPTIM5) -#define EXTI_LINE_53 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL | 0x15U) -#else -#define EXTI_LINE_53 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL_CPU | 0x15U) -#endif /*LPTIM5*/ -#define EXTI_LINE_54 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL_CPU | 0x16U) -#define EXTI_LINE_55 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL_CPU | 0x17U) -#define EXTI_LINE_56 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL_CPU | 0x18U) -#if defined(EXTI_IMR2_IM57) -#define EXTI_LINE_57 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL_CPU | 0x19U) -#else -#define EXTI_LINE_57 (EXTI_RESERVED | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_NONE | 0x19U) -#endif /*EXTI_IMR2_IM57*/ -#define EXTI_LINE_58 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL_CPU | 0x1AU) -#if defined(EXTI_IMR2_IM59) -#define EXTI_LINE_59 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL_CPU | 0x1BU) -#else -#define EXTI_LINE_59 (EXTI_RESERVED | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_NONE | 0x1BU) -#endif /*EXTI_IMR2_IM59*/ -#define EXTI_LINE_60 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL_CPU | 0x1CU) -#define EXTI_LINE_61 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL_CPU | 0x1DU) -#define EXTI_LINE_62 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL_CPU | 0x1EU) -#define EXTI_LINE_63 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG2 | EXTI_TARGET_MSK_ALL_CPU | 0x1FU) -#define EXTI_LINE_64 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_ALL_CPU | 0x00U) -#define EXTI_LINE_65 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_ALL_CPU | 0x01U) -#define EXTI_LINE_66 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_ALL_CPU | 0x02U) -#define EXTI_LINE_67 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_ALL_CPU | 0x03U) -#define EXTI_LINE_68 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_ALL_CPU | 0x04U) -#define EXTI_LINE_69 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_ALL_CPU | 0x05U) -#define EXTI_LINE_70 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_ALL_CPU | 0x06U) -#define EXTI_LINE_71 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_ALL_CPU | 0x07U) -#define EXTI_LINE_72 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_ALL_CPU | 0x08U) -#define EXTI_LINE_73 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_ALL_CPU | 0x09U) -#define EXTI_LINE_74 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_ALL_CPU | 0x0AU) -#if defined(ADC3) -#define EXTI_LINE_75 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_ALL_CPU | 0x0BU) -#else -#define EXTI_LINE_75 (EXTI_RESERVED | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_NONE | 0x0BU) -#endif /* ADC3 */ -#if defined(SAI4) -#define EXTI_LINE_76 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_ALL_CPU | 0x0CU) -#else -#define EXTI_LINE_76 (EXTI_RESERVED | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_NONE | 0x0CU) -#endif /* SAI4 */ -#if defined (DUAL_CORE) -#define EXTI_LINE_77 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_CPU1| 0x0DU) -#define EXTI_LINE_78 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_CPU2| 0x0EU) -#define EXTI_LINE_79 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_CPU1| 0x0FU) -#define EXTI_LINE_80 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_CPU2| 0x10U) -#else -#define EXTI_LINE_77 (EXTI_RESERVED | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_NONE| 0x0DU) -#define EXTI_LINE_78 (EXTI_RESERVED | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_NONE| 0x0EU) -#define EXTI_LINE_79 (EXTI_RESERVED | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_NONE| 0x0FU) -#define EXTI_LINE_80 (EXTI_RESERVED | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_NONE| 0x10U) -#endif /* DUAL_CORE */ -#define EXTI_LINE_81 (EXTI_RESERVED | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_NONE| 0x11U) -#if defined (DUAL_CORE) -#define EXTI_LINE_82 (EXTI_CONFIG | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_CPU2| 0x12U) -#else -#define EXTI_LINE_82 (EXTI_RESERVED | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_NONE| 0x12U) -#endif /* DUAL_CORE */ -#define EXTI_LINE_83 (EXTI_RESERVED | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_NONE| 0x13U) -#if defined (DUAL_CORE) -#define EXTI_LINE_84 (EXTI_CONFIG | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_CPU1| 0x14U) -#else -#define EXTI_LINE_84 (EXTI_RESERVED | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_NONE| 0x14U) -#endif /* DUAL_CORE */ -#define EXTI_LINE_85 (EXTI_CONFIG | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_ALL_CPU | 0x15U) -#if defined(ETH) -#define EXTI_LINE_86 (EXTI_CONFIG | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_ALL_CPU | 0x16U) -#else -#define EXTI_LINE_86 (EXTI_RESERVED | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_NONE| 0x16U) -#endif /* ETH */ -#define EXTI_LINE_87 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_ALL_CPU | 0x17U) -#if defined(DTS) -#define EXTI_LINE_88 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_ALL | 0x18U) -#endif /* DTS */ -#if defined(EXTI_IMR3_IM89) -#define EXTI_LINE_89 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_ALL_CPU | 0x19U) -#endif /*EXTI_IMR3_IM89*/ -#if defined(EXTI_IMR3_IM90) -#define EXTI_LINE_90 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_ALL_CPU | 0x1AU) -#endif /*EXTI_IMR3_IM90*/ -#if defined(I2C5) -#define EXTI_LINE_91 (EXTI_DIRECT | EXTI_EVENT | EXTI_REG3 | EXTI_TARGET_MSK_ALL_CPU | 0x1BU) -#endif /*I2C5*/ - -/** - * @} - */ - -/** @defgroup EXTI_Mode EXTI Mode - * @{ - */ -#define EXTI_MODE_NONE 0x00000000U -#define EXTI_MODE_INTERRUPT 0x00000001U -#define EXTI_MODE_EVENT 0x00000002U -#if defined(DUAL_CORE) -#define EXTI_MODE_CORE1_INTERRUPT EXTI_MODE_INTERRUPT -#define EXTI_MODE_CORE1_EVENT EXTI_MODE_EVENT -#define EXTI_MODE_CORE2_INTERRUPT 0x00000010U -#define EXTI_MODE_CORE2_EVENT 0x00000020U -#endif /* DUAL_CORE */ -/** - * @} - */ - -/** @defgroup EXTI_Trigger EXTI Trigger - * @{ - */ -#define EXTI_TRIGGER_NONE 0x00000000U -#define EXTI_TRIGGER_RISING 0x00000001U -#define EXTI_TRIGGER_FALLING 0x00000002U -#define EXTI_TRIGGER_RISING_FALLING (EXTI_TRIGGER_RISING | EXTI_TRIGGER_FALLING) -/** - * @} - */ - -/** @defgroup EXTI_GPIOSel EXTI GPIOSel - * @brief - * @{ - */ -#define EXTI_GPIOA 0x00000000U -#define EXTI_GPIOB 0x00000001U -#define EXTI_GPIOC 0x00000002U -#define EXTI_GPIOD 0x00000003U -#define EXTI_GPIOE 0x00000004U -#define EXTI_GPIOF 0x00000005U -#define EXTI_GPIOG 0x00000006U -#define EXTI_GPIOH 0x00000007U -#if defined(GPIOI) -#define EXTI_GPIOI 0x00000008U -#endif /*GPIOI*/ -#define EXTI_GPIOJ 0x00000009U -#define EXTI_GPIOK 0x0000000AU - -/** - * @} - */ - -/** @defgroup EXTI_PendClear_Source EXTI PendClear Source - * @brief - * @{ - */ -#define EXTI_D3_PENDCLR_SRC_NONE 0x00000000U /*!< No D3 domain pendclear source , PMRx register to be set to zero */ -#define EXTI_D3_PENDCLR_SRC_DMACH6 0x00000001U /*!< DMA ch6 event selected as D3 domain pendclear source, PMRx register to be set to 1 */ -#define EXTI_D3_PENDCLR_SRC_DMACH7 0x00000002U /*!< DMA ch7 event selected as D3 domain pendclear source, PMRx register to be set to 1*/ -#if defined (LPTIM4) -#define EXTI_D3_PENDCLR_SRC_LPTIM4 0x00000003U /*!< LPTIM4 out selected as D3 domain pendclear source, PMRx register to be set to 1 */ -#else -#define EXTI_D3_PENDCLR_SRC_LPTIM2 0x00000003U /*!< LPTIM2 out selected as D3 domain pendclear source, PMRx register to be set to 1 */ -#endif -#if defined (LPTIM5) -#define EXTI_D3_PENDCLR_SRC_LPTIM5 0x00000004U /*!< LPTIM5 out selected as D3 domain pendclear source, PMRx register to be set to 1 */ -#else -#define EXTI_D3_PENDCLR_SRC_LPTIM3 0x00000004U /*!< LPTIM3 out selected as D3 domain pendclear source, PMRx register to be set to 1 */ -#endif -/** - * @} - */ - -/** - * @} - */ - -/* Exported macro ------------------------------------------------------------*/ -/** @defgroup EXTI_Exported_Macros EXTI Exported Macros - * @{ - */ - -/** - * @} - */ - -/* Private constants --------------------------------------------------------*/ -/** @defgroup EXTI_Private_Constants EXTI Private Constants - * @{ - */ -/** - * @brief EXTI Line property definition - */ -#define EXTI_PROPERTY_SHIFT 24U -#define EXTI_DIRECT (0x01UL << EXTI_PROPERTY_SHIFT) -#define EXTI_CONFIG (0x02UL << EXTI_PROPERTY_SHIFT) -#define EXTI_GPIO ((0x04UL << EXTI_PROPERTY_SHIFT) | EXTI_CONFIG) -#define EXTI_RESERVED (0x08UL << EXTI_PROPERTY_SHIFT) -#define EXTI_PROPERTY_MASK (EXTI_DIRECT | EXTI_CONFIG | EXTI_GPIO) - -/** - * @brief EXTI Event presence definition - */ -#define EXTI_EVENT_PRESENCE_SHIFT 28U -#define EXTI_EVENT (0x01UL << EXTI_EVENT_PRESENCE_SHIFT) -#define EXTI_EVENT_PRESENCE_MASK (EXTI_EVENT) - -/** - * @brief EXTI Register and bit usage - */ -#define EXTI_REG_SHIFT 16U -#define EXTI_REG1 (0x00UL << EXTI_REG_SHIFT) -#define EXTI_REG2 (0x01UL << EXTI_REG_SHIFT) -#define EXTI_REG3 (0x02UL << EXTI_REG_SHIFT) -#define EXTI_REG_MASK (EXTI_REG1 | EXTI_REG2 | EXTI_REG3) -#define EXTI_PIN_MASK 0x0000001FUL - -/** - * @brief EXTI Target and bit usage - */ -#define EXTI_TARGET_SHIFT 20U -#define EXTI_TARGET_MSK_NONE (0x00UL << EXTI_TARGET_SHIFT) -#define EXTI_TARGET_MSK_D3SRD (0x01UL << EXTI_TARGET_SHIFT) -#define EXTI_TARGET_MSK_CPU1 (0x02UL << EXTI_TARGET_SHIFT) -#if defined (DUAL_CORE) -#define EXTI_TARGET_MSK_CPU2 (0x04UL << EXTI_TARGET_SHIFT) -#define EXTI_TARGET_MASK (EXTI_TARGET_MSK_D3SRD | EXTI_TARGET_MSK_CPU1 | EXTI_TARGET_MSK_CPU2) -#define EXTI_TARGET_MSK_ALL_CPU (EXTI_TARGET_MSK_CPU1 | EXTI_TARGET_MSK_CPU2) -#else -#define EXTI_TARGET_MASK (EXTI_TARGET_MSK_D3SRD | EXTI_TARGET_MSK_CPU1) -#define EXTI_TARGET_MSK_ALL_CPU EXTI_TARGET_MSK_CPU1 -#endif /* DUAL_CORE */ -#define EXTI_TARGET_MSK_ALL EXTI_TARGET_MASK - -/** - * @brief EXTI Mask for interrupt & event mode - */ -#if defined (DUAL_CORE) -#define EXTI_MODE_MASK (EXTI_MODE_CORE1_EVENT | EXTI_MODE_CORE1_INTERRUPT | EXTI_MODE_CORE2_INTERRUPT | EXTI_MODE_CORE2_EVENT) -#else -#define EXTI_MODE_MASK (EXTI_MODE_EVENT | EXTI_MODE_INTERRUPT) -#endif /* DUAL_CORE */ - -/** - * @brief EXTI Mask for trigger possibilities - */ -#define EXTI_TRIGGER_MASK (EXTI_TRIGGER_RISING | EXTI_TRIGGER_FALLING) - -/** - * @brief EXTI Line number - */ -#if (STM32H7_DEV_ID == 0x483UL) -#define EXTI_LINE_NB 92UL -#elif (STM32H7_DEV_ID == 0x480UL) -#define EXTI_LINE_NB 89UL -#else -#define EXTI_LINE_NB 88UL -#endif /* EXTI_LINE_91 */ - -/** - * @} - */ - -/* Private macros ------------------------------------------------------------*/ -/** @defgroup EXTI_Private_Macros EXTI Private Macros - * @{ - */ -#define IS_EXTI_PROPERTY(__EXTI_LINE__) ((((__EXTI_LINE__) & EXTI_PROPERTY_MASK) == EXTI_DIRECT) || \ - (((__EXTI_LINE__) & EXTI_PROPERTY_MASK) == EXTI_CONFIG) || \ - (((__EXTI_LINE__) & EXTI_PROPERTY_MASK) == EXTI_GPIO)) -#if defined (DUAL_CORE) -#define IS_EXTI_TARGET(__EXTI_LINE__) ((((__EXTI_LINE__) & EXTI_TARGET_MASK) == EXTI_TARGET_MSK_CPU1) || \ - (((__EXTI_LINE__) & EXTI_TARGET_MASK) == EXTI_TARGET_MSK_CPU2) || \ - (((__EXTI_LINE__) & EXTI_TARGET_MASK) == EXTI_TARGET_MSK_ALL_CPU) || \ - (((__EXTI_LINE__) & EXTI_TARGET_MASK) == EXTI_TARGET_MSK_ALL)) -#else -#define IS_EXTI_TARGET(__EXTI_LINE__) ((((__EXTI_LINE__) & EXTI_TARGET_MASK) == EXTI_TARGET_MSK_CPU1) || \ - (((__EXTI_LINE__) & EXTI_TARGET_MASK) == EXTI_TARGET_MSK_ALL)) -#endif - -#define IS_EXTI_LINE(__EXTI_LINE__) ((((__EXTI_LINE__) & ~(EXTI_PROPERTY_MASK | EXTI_EVENT_PRESENCE_MASK |\ - EXTI_REG_MASK | EXTI_PIN_MASK | EXTI_TARGET_MASK)) == 0x00UL) && \ - IS_EXTI_PROPERTY(__EXTI_LINE__) && IS_EXTI_TARGET(__EXTI_LINE__) && \ - (((__EXTI_LINE__) & (EXTI_REG_MASK | EXTI_PIN_MASK)) < \ - (((EXTI_LINE_NB / 32UL) << EXTI_REG_SHIFT) | (EXTI_LINE_NB % 32UL)))) - -#define IS_EXTI_MODE(__MODE__) (((__MODE__) & ~EXTI_MODE_MASK) == 0x00UL) - -#define IS_EXTI_TRIGGER(__EXTI_LINE__) (((__EXTI_LINE__) & ~EXTI_TRIGGER_MASK) == 0x00UL) - -#define IS_EXTI_PENDING_EDGE(__EXTI_LINE__) (((__EXTI_LINE__) == EXTI_TRIGGER_RISING) || \ - ((__EXTI_LINE__) == EXTI_TRIGGER_FALLING)|| \ - ((__EXTI_LINE__) == EXTI_TRIGGER_RISING_FALLING)) - -#define IS_EXTI_CONFIG_LINE(__EXTI_LINE__) (((__EXTI_LINE__) & EXTI_CONFIG) != 0x00UL) - -#if defined(GPIOI) -#define IS_EXTI_GPIO_PORT(__PORT__) (((__PORT__) == EXTI_GPIOA) || \ - ((__PORT__) == EXTI_GPIOB) || \ - ((__PORT__) == EXTI_GPIOC) || \ - ((__PORT__) == EXTI_GPIOD) || \ - ((__PORT__) == EXTI_GPIOE) || \ - ((__PORT__) == EXTI_GPIOF) || \ - ((__PORT__) == EXTI_GPIOG) || \ - ((__PORT__) == EXTI_GPIOH) || \ - ((__PORT__) == EXTI_GPIOI) || \ - ((__PORT__) == EXTI_GPIOJ) || \ - ((__PORT__) == EXTI_GPIOK)) -#else -#define IS_EXTI_GPIO_PORT(__PORT__) (((__PORT__) == EXTI_GPIOA) || \ - ((__PORT__) == EXTI_GPIOB) || \ - ((__PORT__) == EXTI_GPIOC) || \ - ((__PORT__) == EXTI_GPIOD) || \ - ((__PORT__) == EXTI_GPIOE) || \ - ((__PORT__) == EXTI_GPIOF) || \ - ((__PORT__) == EXTI_GPIOG) || \ - ((__PORT__) == EXTI_GPIOH) || \ - ((__PORT__) == EXTI_GPIOJ) || \ - ((__PORT__) == EXTI_GPIOK)) -#endif /*GPIOI*/ - -#define IS_EXTI_GPIO_PIN(__PIN__) ((__PIN__) < 16UL) -#if defined (LPTIM4) && defined (LPTIM5) -#define IS_EXTI_D3_PENDCLR_SRC(__SRC__) (((__SRC__) == EXTI_D3_PENDCLR_SRC_NONE) || \ - ((__SRC__) == EXTI_D3_PENDCLR_SRC_DMACH6) || \ - ((__SRC__) == EXTI_D3_PENDCLR_SRC_DMACH7) || \ - ((__SRC__) == EXTI_D3_PENDCLR_SRC_LPTIM4) || \ - ((__SRC__) == EXTI_D3_PENDCLR_SRC_LPTIM5)) -#else -#define IS_EXTI_D3_PENDCLR_SRC(__SRC__) (((__SRC__) == EXTI_D3_PENDCLR_SRC_NONE) || \ - ((__SRC__) == EXTI_D3_PENDCLR_SRC_DMACH6) || \ - ((__SRC__) == EXTI_D3_PENDCLR_SRC_DMACH7) || \ - ((__SRC__) == EXTI_D3_PENDCLR_SRC_LPTIM2) || \ - ((__SRC__) == EXTI_D3_PENDCLR_SRC_LPTIM3)) -#endif /* LPTIM4 && LPTIM5 */ - -/** - * @} - */ - - -/* Exported functions --------------------------------------------------------*/ -/** @defgroup EXTI_Exported_Functions EXTI Exported Functions - * @brief EXTI Exported Functions - * @{ - */ - -/** @defgroup EXTI_Exported_Functions_Group1 Configuration functions - * @brief Configuration functions - * @{ - */ -/* Configuration functions ****************************************************/ -HAL_StatusTypeDef HAL_EXTI_SetConfigLine(EXTI_HandleTypeDef *hexti, EXTI_ConfigTypeDef *pExtiConfig); -HAL_StatusTypeDef HAL_EXTI_GetConfigLine(EXTI_HandleTypeDef *hexti, EXTI_ConfigTypeDef *pExtiConfig); -HAL_StatusTypeDef HAL_EXTI_ClearConfigLine(EXTI_HandleTypeDef *hexti); -HAL_StatusTypeDef HAL_EXTI_RegisterCallback(EXTI_HandleTypeDef *hexti, EXTI_CallbackIDTypeDef CallbackID, void (*pPendingCbfn)(void)); -HAL_StatusTypeDef HAL_EXTI_GetHandle(EXTI_HandleTypeDef *hexti, uint32_t ExtiLine); -/** - * @} - */ - -/** @defgroup EXTI_Exported_Functions_Group2 IO operation functions - * @brief IO operation functions - * @{ - */ -/* IO operation functions *****************************************************/ -void HAL_EXTI_IRQHandler(EXTI_HandleTypeDef *hexti); -uint32_t HAL_EXTI_GetPending(EXTI_HandleTypeDef *hexti, uint32_t Edge); -void HAL_EXTI_ClearPending(EXTI_HandleTypeDef *hexti, uint32_t Edge); -void HAL_EXTI_GenerateSWI(EXTI_HandleTypeDef *hexti); - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_HAL_EXTI_H */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h deleted file mode 100644 index 47f1fac..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h +++ /dev/null @@ -1,2422 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_fdcan.h - * @author MCD Application Team - * @brief Header file of FDCAN HAL module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_HAL_FDCAN_H -#define STM32H7xx_HAL_FDCAN_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal_def.h" - -#if defined(FDCAN1) - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @addtogroup FDCAN - * @{ - */ - -/* Exported types ------------------------------------------------------------*/ -/** @defgroup FDCAN_Exported_Types FDCAN Exported Types - * @{ - */ - -/** - * @brief HAL State structures definition - */ -typedef enum -{ - HAL_FDCAN_STATE_RESET = 0x00U, /*!< FDCAN not yet initialized or disabled */ - HAL_FDCAN_STATE_READY = 0x01U, /*!< FDCAN initialized and ready for use */ - HAL_FDCAN_STATE_BUSY = 0x02U, /*!< FDCAN process is ongoing */ - HAL_FDCAN_STATE_ERROR = 0x03U /*!< FDCAN error state */ -} HAL_FDCAN_StateTypeDef; - -/** - * @brief FDCAN Init structure definition - */ -typedef struct -{ - uint32_t FrameFormat; /*!< Specifies the FDCAN frame format. - This parameter can be a value of @ref FDCAN_frame_format */ - - uint32_t Mode; /*!< Specifies the FDCAN mode. - This parameter can be a value of @ref FDCAN_operating_mode */ - - FunctionalState AutoRetransmission; /*!< Enable or disable the automatic retransmission mode. - This parameter can be set to ENABLE or DISABLE */ - - FunctionalState TransmitPause; /*!< Enable or disable the Transmit Pause feature. - This parameter can be set to ENABLE or DISABLE */ - - FunctionalState ProtocolException; /*!< Enable or disable the Protocol Exception Handling. - This parameter can be set to ENABLE or DISABLE */ - - uint32_t NominalPrescaler; /*!< Specifies the value by which the oscillator frequency is - divided for generating the nominal bit time quanta. - This parameter must be a number between 1 and 512 */ - - uint32_t NominalSyncJumpWidth; /*!< Specifies the maximum number of time quanta the FDCAN - hardware is allowed to lengthen or shorten a bit to perform - resynchronization. - This parameter must be a number between 1 and 128 */ - - uint32_t NominalTimeSeg1; /*!< Specifies the number of time quanta in Bit Segment 1. - This parameter must be a number between 2 and 256 */ - - uint32_t NominalTimeSeg2; /*!< Specifies the number of time quanta in Bit Segment 2. - This parameter must be a number between 2 and 128 */ - - uint32_t DataPrescaler; /*!< Specifies the value by which the oscillator frequency is - divided for generating the data bit time quanta. - This parameter must be a number between 1 and 32 */ - - uint32_t DataSyncJumpWidth; /*!< Specifies the maximum number of time quanta the FDCAN - hardware is allowed to lengthen or shorten a data bit to - perform resynchronization. - This parameter must be a number between 1 and 16 */ - - uint32_t DataTimeSeg1; /*!< Specifies the number of time quanta in Data Bit Segment 1. - This parameter must be a number between 1 and 32 */ - - uint32_t DataTimeSeg2; /*!< Specifies the number of time quanta in Data Bit Segment 2. - This parameter must be a number between 1 and 16 */ - - uint32_t MessageRAMOffset; /*!< Specifies the message RAM start address. - This parameter must be a number between 0 and 2560 */ - - uint32_t StdFiltersNbr; /*!< Specifies the number of standard Message ID filters. - This parameter must be a number between 0 and 128 */ - - uint32_t ExtFiltersNbr; /*!< Specifies the number of extended Message ID filters. - This parameter must be a number between 0 and 64 */ - - uint32_t RxFifo0ElmtsNbr; /*!< Specifies the number of Rx FIFO0 Elements. - This parameter must be a number between 0 and 64 */ - - uint32_t RxFifo0ElmtSize; /*!< Specifies the Data Field Size in an Rx FIFO 0 element. - This parameter can be a value of @ref FDCAN_data_field_size */ - - uint32_t RxFifo1ElmtsNbr; /*!< Specifies the number of Rx FIFO 1 Elements. - This parameter must be a number between 0 and 64 */ - - uint32_t RxFifo1ElmtSize; /*!< Specifies the Data Field Size in an Rx FIFO 1 element. - This parameter can be a value of @ref FDCAN_data_field_size */ - - uint32_t RxBuffersNbr; /*!< Specifies the number of Dedicated Rx Buffer elements. - This parameter must be a number between 0 and 64 */ - - uint32_t RxBufferSize; /*!< Specifies the Data Field Size in an Rx Buffer element. - This parameter can be a value of @ref FDCAN_data_field_size */ - - uint32_t TxEventsNbr; /*!< Specifies the number of Tx Event FIFO elements. - This parameter must be a number between 0 and 32 */ - - uint32_t TxBuffersNbr; /*!< Specifies the number of Dedicated Tx Buffers. - This parameter must be a number between 0 and 32 */ - - uint32_t TxFifoQueueElmtsNbr; /*!< Specifies the number of Tx Buffers used for Tx FIFO/Queue. - This parameter must be a number between 0 and 32 */ - - uint32_t TxFifoQueueMode; /*!< Tx FIFO/Queue Mode selection. - This parameter can be a value of @ref FDCAN_txFifoQueue_Mode */ - - uint32_t TxElmtSize; /*!< Specifies the Data Field Size in a Tx Element. - This parameter can be a value of @ref FDCAN_data_field_size */ - -} FDCAN_InitTypeDef; - -/** - * @brief FDCAN clock calibration unit structure definition - */ -typedef struct -{ - uint32_t ClockCalibration; /*!< Enable or disable the clock calibration. - This parameter can be a value of @ref FDCAN_clock_calibration. */ - - uint32_t ClockDivider; /*!< Specifies the FDCAN kernel clock divider when the clock calibration - is bypassed. - This parameter can be a value of @ref FDCAN_clock_divider */ - - uint32_t MinOscClkPeriods; /*!< Configures the minimum number of periods in two CAN bit times. The - actual configured number of periods is MinOscClkPeriods x 32. - This parameter must be a number between 0x00 and 0xFF */ - - uint32_t CalFieldLength; /*!< Specifies the calibration field length. - This parameter can be a value of @ref FDCAN_calibration_field_length */ - - uint32_t TimeQuantaPerBitTime; /*!< Configures the number of time quanta per bit time. - This parameter must be a number between 4 and 25 */ - - uint32_t WatchdogStartValue; /*!< Start value of the Calibration Watchdog Counter. - If set to zero the counter is disabled. - This parameter must be a number between 0x0000 and 0xFFFF */ - -} FDCAN_ClkCalUnitTypeDef; - -/** - * @brief FDCAN filter structure definition - */ -typedef struct -{ - uint32_t IdType; /*!< Specifies the identifier type. - This parameter can be a value of @ref FDCAN_id_type */ - - uint32_t FilterIndex; /*!< Specifies the filter which will be initialized. - This parameter must be a number between: - - 0 and 127, if IdType is FDCAN_STANDARD_ID - - 0 and 63, if IdType is FDCAN_EXTENDED_ID */ - - uint32_t FilterType; /*!< Specifies the filter type. - This parameter can be a value of @ref FDCAN_filter_type. - The value FDCAN_EXT_FILTER_RANGE_NO_EIDM is permitted - only when IdType is FDCAN_EXTENDED_ID. - This parameter is ignored if FilterConfig is set to - FDCAN_FILTER_TO_RXBUFFER */ - - uint32_t FilterConfig; /*!< Specifies the filter configuration. - This parameter can be a value of @ref FDCAN_filter_config */ - - uint32_t FilterID1; /*!< Specifies the filter identification 1. - This parameter must be a number between: - - 0 and 0x7FF, if IdType is FDCAN_STANDARD_ID - - 0 and 0x1FFFFFFF, if IdType is FDCAN_EXTENDED_ID */ - - uint32_t FilterID2; /*!< Specifies the filter identification 2. - This parameter is ignored if FilterConfig is set to - FDCAN_FILTER_TO_RXBUFFER. - This parameter must be a number between: - - 0 and 0x7FF, if IdType is FDCAN_STANDARD_ID - - 0 and 0x1FFFFFFF, if IdType is FDCAN_EXTENDED_ID */ - - uint32_t RxBufferIndex; /*!< Contains the index of the Rx buffer in which the - matching message will be stored. - This parameter must be a number between 0 and 63. - This parameter is ignored if FilterConfig is different - from FDCAN_FILTER_TO_RXBUFFER */ - - uint32_t IsCalibrationMsg; /*!< Specifies whether the filter is configured for - calibration messages. - This parameter is ignored if FilterConfig is different - from FDCAN_FILTER_TO_RXBUFFER. - This parameter can be: - - 0 : ordinary message - - 1 : calibration message */ - -} FDCAN_FilterTypeDef; - -/** - * @brief FDCAN Tx header structure definition - */ -typedef struct -{ - uint32_t Identifier; /*!< Specifies the identifier. - This parameter must be a number between: - - 0 and 0x7FF, if IdType is FDCAN_STANDARD_ID - - 0 and 0x1FFFFFFF, if IdType is FDCAN_EXTENDED_ID */ - - uint32_t IdType; /*!< Specifies the identifier type for the message that will be - transmitted. - This parameter can be a value of @ref FDCAN_id_type */ - - uint32_t TxFrameType; /*!< Specifies the frame type of the message that will be transmitted. - This parameter can be a value of @ref FDCAN_frame_type */ - - uint32_t DataLength; /*!< Specifies the length of the frame that will be transmitted. - This parameter can be a value of @ref FDCAN_data_length_code */ - - uint32_t ErrorStateIndicator; /*!< Specifies the error state indicator. - This parameter can be a value of @ref FDCAN_error_state_indicator */ - - uint32_t BitRateSwitch; /*!< Specifies whether the Tx frame will be transmitted with or without - bit rate switching. - This parameter can be a value of @ref FDCAN_bit_rate_switching */ - - uint32_t FDFormat; /*!< Specifies whether the Tx frame will be transmitted in classic or - FD format. - This parameter can be a value of @ref FDCAN_format */ - - uint32_t TxEventFifoControl; /*!< Specifies the event FIFO control. - This parameter can be a value of @ref FDCAN_EFC */ - - uint32_t MessageMarker; /*!< Specifies the message marker to be copied into Tx Event FIFO - element for identification of Tx message status. - This parameter must be a number between 0 and 0xFF */ - -} FDCAN_TxHeaderTypeDef; - -/** - * @brief FDCAN Rx header structure definition - */ -typedef struct -{ - uint32_t Identifier; /*!< Specifies the identifier. - This parameter must be a number between: - - 0 and 0x7FF, if IdType is FDCAN_STANDARD_ID - - 0 and 0x1FFFFFFF, if IdType is FDCAN_EXTENDED_ID */ - - uint32_t IdType; /*!< Specifies the identifier type of the received message. - This parameter can be a value of @ref FDCAN_id_type */ - - uint32_t RxFrameType; /*!< Specifies the the received message frame type. - This parameter can be a value of @ref FDCAN_frame_type */ - - uint32_t DataLength; /*!< Specifies the received frame length. - This parameter can be a value of @ref FDCAN_data_length_code */ - - uint32_t ErrorStateIndicator; /*!< Specifies the error state indicator. - This parameter can be a value of @ref FDCAN_error_state_indicator */ - - uint32_t BitRateSwitch; /*!< Specifies whether the Rx frame is received with or without bit - rate switching. - This parameter can be a value of @ref FDCAN_bit_rate_switching */ - - uint32_t FDFormat; /*!< Specifies whether the Rx frame is received in classic or FD - format. - This parameter can be a value of @ref FDCAN_format */ - - uint32_t RxTimestamp; /*!< Specifies the timestamp counter value captured on start of frame - reception. - This parameter must be a number between 0 and 0xFFFF */ - - uint32_t FilterIndex; /*!< Specifies the index of matching Rx acceptance filter element. - This parameter must be a number between: - - 0 and 127, if IdType is FDCAN_STANDARD_ID - - 0 and 63, if IdType is FDCAN_EXTENDED_ID - When the frame is a Non-Filter matching frame, this parameter - is unused. */ - - uint32_t IsFilterMatchingFrame; /*!< Specifies whether the accepted frame did not match any Rx filter. - Acceptance of non-matching frames may be enabled via - HAL_FDCAN_ConfigGlobalFilter(). - This parameter takes 0 if the frame matched an Rx filter or - 1 if it did not match any Rx filter */ - -} FDCAN_RxHeaderTypeDef; - -/** - * @brief FDCAN Tx event FIFO structure definition - */ -typedef struct -{ - uint32_t Identifier; /*!< Specifies the identifier. - This parameter must be a number between: - - 0 and 0x7FF, if IdType is FDCAN_STANDARD_ID - - 0 and 0x1FFFFFFF, if IdType is FDCAN_EXTENDED_ID */ - - uint32_t IdType; /*!< Specifies the identifier type for the transmitted message. - This parameter can be a value of @ref FDCAN_id_type */ - - uint32_t TxFrameType; /*!< Specifies the frame type of the transmitted message. - This parameter can be a value of @ref FDCAN_frame_type */ - - uint32_t DataLength; /*!< Specifies the length of the transmitted frame. - This parameter can be a value of @ref FDCAN_data_length_code */ - - uint32_t ErrorStateIndicator; /*!< Specifies the error state indicator. - This parameter can be a value of @ref FDCAN_error_state_indicator */ - - uint32_t BitRateSwitch; /*!< Specifies whether the Tx frame is transmitted with or without bit - rate switching. - This parameter can be a value of @ref FDCAN_bit_rate_switching */ - - uint32_t FDFormat; /*!< Specifies whether the Tx frame is transmitted in classic or FD - format. - This parameter can be a value of @ref FDCAN_format */ - - uint32_t TxTimestamp; /*!< Specifies the timestamp counter value captured on start of frame - transmission. - This parameter must be a number between 0 and 0xFFFF */ - - uint32_t MessageMarker; /*!< Specifies the message marker copied into Tx Event FIFO element - for identification of Tx message status. - This parameter must be a number between 0 and 0xFF */ - - uint32_t EventType; /*!< Specifies the event type. - This parameter can be a value of @ref FDCAN_event_type */ - -} FDCAN_TxEventFifoTypeDef; - -/** - * @brief FDCAN High Priority Message Status structure definition - */ -typedef struct -{ - uint32_t FilterList; /*!< Specifies the filter list of the matching filter element. - This parameter can be: - - 0 : Standard Filter List - - 1 : Extended Filter List */ - - uint32_t FilterIndex; /*!< Specifies the index of matching filter element. - This parameter can be a number between: - - 0 and 127, if FilterList is 0 (Standard) - - 0 and 63, if FilterList is 1 (Extended) */ - - uint32_t MessageStorage; /*!< Specifies the HP Message Storage. - This parameter can be a value of @ref FDCAN_hp_msg_storage */ - - uint32_t MessageIndex; /*!< Specifies the Index of Rx FIFO element to which the - message was stored. - This parameter is valid only when MessageStorage is: - FDCAN_HP_STORAGE_RXFIFO0 - or - FDCAN_HP_STORAGE_RXFIFO1 */ - -} FDCAN_HpMsgStatusTypeDef; - -/** - * @brief FDCAN Protocol Status structure definition - */ -typedef struct -{ - uint32_t LastErrorCode; /*!< Specifies the type of the last error that occurred on the FDCAN bus. - This parameter can be a value of @ref FDCAN_protocol_error_code */ - - uint32_t DataLastErrorCode; /*!< Specifies the type of the last error that occurred in the data phase of a CAN FD format - frame with its BRS flag set. - This parameter can be a value of @ref FDCAN_protocol_error_code */ - - uint32_t Activity; /*!< Specifies the FDCAN module communication state. - This parameter can be a value of @ref FDCAN_communication_state */ - - uint32_t ErrorPassive; /*!< Specifies the FDCAN module error status. - This parameter can be: - - 0 : The FDCAN is in Error_Active state - - 1 : The FDCAN is in Error_Passive state */ - - uint32_t Warning; /*!< Specifies the FDCAN module warning status. - This parameter can be: - - 0 : error counters (RxErrorCnt and TxErrorCnt) are below the Error_Warning limit of 96 - - 1 : at least one of error counters has reached the Error_Warning limit of 96 */ - - uint32_t BusOff; /*!< Specifies the FDCAN module Bus_Off status. - This parameter can be: - - 0 : The FDCAN is not in Bus_Off state - - 1 : The FDCAN is in Bus_Off state */ - - uint32_t RxESIflag; /*!< Specifies ESI flag of last received CAN FD message. - This parameter can be: - - 0 : Last received CAN FD message did not have its ESI flag set - - 1 : Last received CAN FD message had its ESI flag set */ - - uint32_t RxBRSflag; /*!< Specifies BRS flag of last received CAN FD message. - This parameter can be: - - 0 : Last received CAN FD message did not have its BRS flag set - - 1 : Last received CAN FD message had its BRS flag set */ - - uint32_t RxFDFflag; /*!< Specifies if CAN FD message (FDF flag set) has been received since last protocol status. - This parameter can be: - - 0 : no CAN FD message received - - 1 : CAN FD message received */ - - uint32_t ProtocolException; /*!< Specifies the FDCAN module Protocol Exception status. - This parameter can be: - - 0 : No protocol exception event occurred since last read access - - 1 : Protocol exception event occurred */ - - uint32_t TDCvalue; /*!< Specifies the Transmitter Delay Compensation Value. - This parameter can be a number between 0 and 127 */ - -} FDCAN_ProtocolStatusTypeDef; - -/** - * @brief FDCAN Error Counters structure definition - */ -typedef struct -{ - uint32_t TxErrorCnt; /*!< Specifies the Transmit Error Counter Value. - This parameter can be a number between 0 and 255 */ - - uint32_t RxErrorCnt; /*!< Specifies the Receive Error Counter Value. - This parameter can be a number between 0 and 127 */ - - uint32_t RxErrorPassive; /*!< Specifies the Receive Error Passive status. - This parameter can be: - - 0 : The Receive Error Counter (RxErrorCnt) is below the error passive level of 128 - - 1 : The Receive Error Counter (RxErrorCnt) has reached the error passive level of 128 */ - - uint32_t ErrorLogging; /*!< Specifies the Transmit/Receive error logging counter value. - This parameter can be a number between 0 and 255. - This counter is incremented each time when a FDCAN protocol error causes the TxErrorCnt - or the RxErrorCnt to be incremented. The counter stops at 255; the next increment of - TxErrorCnt or RxErrorCnt sets interrupt flag FDCAN_FLAG_ERROR_LOGGING_OVERFLOW */ - -} FDCAN_ErrorCountersTypeDef; - -/** - * @brief FDCAN TT Init structure definition - */ -typedef struct -{ - uint32_t OperationMode; /*!< Specifies the FDCAN Operation Mode. - This parameter can be a value of @ref FDCAN_operation_mode */ - - uint32_t GapEnable; /*!< Specifies the FDCAN TT Operation. - This parameter can be a value of @ref FDCAN_TT_operation. - This parameter is ignored if OperationMode is set to - FDCAN_TT_COMMUNICATION_LEVEL0 */ - - uint32_t TimeMaster; /*!< Specifies whether the instance is a slave or a potential master. - This parameter can be a value of @ref FDCAN_TT_time_master */ - - uint32_t SyncDevLimit; /*!< Specifies the Synchronization Deviation Limit SDL of the TUR - numerator : TUR = (Numerator +/- SDL) / Denominator. - With : SDL = 2^(SyncDevLimit+5). - This parameter must be a number between 0 and 7 */ - - uint32_t InitRefTrigOffset; /*!< Specifies the Initial Reference Trigger Offset. - This parameter must be a number between 0 and 127 */ - - uint32_t ExternalClkSync; /*!< Enable or disable External Clock Synchronization. - This parameter can be a value of @ref FDCAN_TT_external_clk_sync. - This parameter is ignored if OperationMode is set to - FDCAN_TT_COMMUNICATION_LEVEL1 */ - - uint32_t AppWdgLimit; /*!< Specifies the Application Watchdog Limit : maximum time after - which the application has to serve the application watchdog. - The application watchdog is incremented once each 256 NTUs. - The application watchdog can be disabled by setting AppWdgLimit to 0. - This parameter must be a number between 0 and 255. - This parameter is ignored if OperationMode is set to - FDCAN_TT_COMMUNICATION_LEVEL0 */ - - uint32_t GlobalTimeFilter; /*!< Enable or disable Global Time Filtering. - This parameter can be a value of @ref FDCAN_TT_global_time_filtering. - This parameter is ignored if OperationMode is set to - FDCAN_TT_COMMUNICATION_LEVEL1 */ - - uint32_t ClockCalibration; /*!< Enable or disable Automatic Clock Calibration. - This parameter can be a value of @ref FDCAN_TT_auto_clk_calibration. - This parameter is ignored if OperationMode is set to - FDCAN_TT_COMMUNICATION_LEVEL1 */ - - uint32_t EvtTrigPolarity; /*!< Specifies the Event Trigger Polarity. - This parameter can be a value of @ref FDCAN_TT_event_trig_polarity. - This parameter is ignored if OperationMode is set to - FDCAN_TT_COMMUNICATION_LEVEL0 */ - - uint32_t BasicCyclesNbr; /*!< Specifies the number of basic cycles in the system matrix. - This parameter can be a value of @ref FDCAN_TT_basic_cycle_number */ - - uint32_t CycleStartSync; /*!< Enable or disable synchronization pulse output at pin fdcan1_soc. - This parameter can be a value of @ref FDCAN_TT_cycle_start_sync */ - - uint32_t TxEnableWindow; /*!< Specifies the length of Tx enable window in NTUs. - This parameter must be a number between 1 and 16 */ - - uint32_t ExpTxTrigNbr; /*!< Specifies the number of expected Tx_Triggers in the system matrix. - This is the sum of Tx_Triggers for exclusive, single arbitrating and - merged arbitrating windows. - This parameter must be a number between 0 and 4095 */ - - uint32_t TURNumerator; /*!< Specifies the TUR (Time Unit Ratio) numerator. - It is advised to set this parameter to the largest applicable value. - This parameter must be a number between 0x10000 and 0x1FFFF */ - - uint32_t TURDenominator; /*!< Specifies the TUR (Time Unit Ratio) denominator. - This parameter must be a number between 0x0001 and 0x3FFF */ - - uint32_t TriggerMemoryNbr; /*!< Specifies the number of trigger memory elements. - This parameter must be a number between 0 and 64 */ - - uint32_t StopWatchTrigSel; /*!< Specifies the input to be used as stop watch trigger. - This parameter can be a value of @ref FDCAN_TT_stop_watch_trig_selection */ - - uint32_t EventTrigSel; /*!< Specifies the input to be used as event trigger. - This parameter can be a value of @ref FDCAN_TT_event_trig_selection */ - -} FDCAN_TT_ConfigTypeDef; - -/** - * @brief FDCAN Trigger structure definition - */ -typedef struct -{ - uint32_t TriggerIndex; /*!< Specifies the trigger which will be configured. - This parameter must be a number between 0 and 63 */ - - uint32_t TimeMark; /*!< Specifies the cycle time for which the trigger becomes active. - This parameter must be a number between 0 and 0xFFFF */ - - uint32_t RepeatFactor; /*!< Specifies the trigger repeat factor. - This parameter can be a value of @ref FDCAN_TT_Repeat_Factor */ - - uint32_t StartCycle; /*!< Specifies the index of the first cycle in which the trigger becomes active. - This parameter is ignored if RepeatFactor is set to FDCAN_TT_REPEAT_EVERY_CYCLE. - This parameter must be a number between 0 and RepeatFactor */ - - uint32_t TmEventInt; /*!< Enable or disable the internal time mark event. - If enabled, FDCAN_TT_FLAG_TRIG_TIME_MARK flag is set when trigger memory element - becomes active. - This parameter can be a value of @ref FDCAN_TT_Time_Mark_Event_Internal */ - - uint32_t TmEventExt; /*!< Enable or disable the external time mark event. - If enabled, and if TTOCN.TTIE is set, a pulse is generated at fdcan1_tmp when - trigger memory element becomes active. - This parameter can be a value of @ref FDCAN_TT_Time_Mark_Event_External */ - - uint32_t TriggerType; /*!< Specifies the trigger type. - This parameter can be a value of @ref FDCAN_TT_Trigger_Type */ - - uint32_t FilterType; /*!< Specifies the filter identifier type. - This parameter can be a value of @ref FDCAN_id_type */ - - uint32_t TxBufferIndex; /*!< Specifies the index of the Tx buffer for which the trigger is valid. - This parameter can be a value of @ref FDCAN_Tx_location. - This parameter is taken in consideration only if the trigger is configured for - transmission. */ - - uint32_t FilterIndex; /*!< Specifies the filter for which the trigger is valid. - This parameter is taken in consideration only if the trigger is configured for - reception. - This parameter must be a number between: - - 0 and 127, if FilterType is FDCAN_STANDARD_ID - - 0 and 63, if FilterType is FDCAN_EXTENDED_ID */ - -} FDCAN_TriggerTypeDef; - -/** - * @brief FDCAN TT Operation Status structure definition - */ -typedef struct -{ - uint32_t ErrorLevel; /*!< Specifies the type of the TT operation error level. - This parameter can be a value of @ref FDCAN_TT_error_level */ - - uint32_t MasterState; /*!< Specifies the type of the TT master state. - This parameter can be a value of @ref FDCAN_TT_master_state */ - - uint32_t SyncState; /*!< Specifies the type of the TT synchronization state. - This parameter can be a value of @ref FDCAN_TT_sync_state */ - - uint32_t GTimeQuality; /*!< Specifies the Quality of Global Time Phase. - This parameter is only relevant in Level 0 and Level 2, otherwise fixed to 0. - This parameter can be: - - 0 : Global time not valid - - 1 : Global time in phase with Time Master */ - - uint32_t ClockQuality; /*!< Specifies the Quality of Clock Speed. - This parameter is only relevant in Level 0 and Level 2, otherwise fixed to 1. - This parameter can be: - - 0 : Local clock speed not synchronized to Time Master clock speed - - 1 : Synchronization Deviation = SDL */ - - uint32_t RefTrigOffset; /*!< Specifies the Actual Reference Trigger Offset Value. - This parameter can be a number between 0 and 0xFF */ - - uint32_t GTimeDiscPending; /*!< Specifies the Global Time Discontinuity State. - This parameter can be: - - 0 : No global time preset pending - - 1 : Node waits for the global time preset to take effect */ - - uint32_t GapFinished; /*!< Specifies whether a Gap is finished. - This parameter can be: - - 0 : Reset at the end of each reference message - - 1 : Gap finished */ - - uint32_t MasterPriority; /*!< Specifies the Priority of actual Time Master. - This parameter can be a number between 0 and 0x7 */ - - uint32_t GapStarted; /*!< Specifies whether a Gap is started. - This parameter can be: - - 0 : No Gap in schedule - - 1 : Gap time after Basic Cycle has started */ - - uint32_t WaitForEvt; /*!< Specifies whether a Gap is announced. - This parameter can be: - - 0 : No Gap announced, reset by a reference message with Next_is_Gap = 0 - - 1 : Reference message with Next_is_Gap = 1 received */ - - uint32_t AppWdgEvt; /*!< Specifies the Application Watchdog State. - This parameter can be: - - 0 : Application Watchdog served in time - - 1 : Failed to serve Application Watchdog in time */ - - uint32_t ECSPending; /*!< Specifies the External Clock Synchronization State. - This parameter can be: - - 0 : No external clock synchronization pending - - 1 : Node waits for external clock synchronization to take effect */ - - uint32_t PhaseLock; /*!< Specifies the Phase Lock State. - This parameter can be: - - 0 : Phase outside range - - 1 : Phase inside range */ - -} FDCAN_TTOperationStatusTypeDef; - -/** - * @brief FDCAN Message RAM blocks - */ -typedef struct -{ - uint32_t StandardFilterSA; /*!< Specifies the Standard Filter List Start Address. - This parameter must be a 32-bit word address */ - - uint32_t ExtendedFilterSA; /*!< Specifies the Extended Filter List Start Address. - This parameter must be a 32-bit word address */ - - uint32_t RxFIFO0SA; /*!< Specifies the Rx FIFO 0 Start Address. - This parameter must be a 32-bit word address */ - - uint32_t RxFIFO1SA; /*!< Specifies the Rx FIFO 1 Start Address. - This parameter must be a 32-bit word address */ - - uint32_t RxBufferSA; /*!< Specifies the Rx Buffer Start Address. - This parameter must be a 32-bit word address */ - - uint32_t TxEventFIFOSA; /*!< Specifies the Tx Event FIFO Start Address. - This parameter must be a 32-bit word address */ - - uint32_t TxBufferSA; /*!< Specifies the Tx Buffers Start Address. - This parameter must be a 32-bit word address */ - - uint32_t TxFIFOQSA; /*!< Specifies the Tx FIFO/Queue Start Address. - This parameter must be a 32-bit word address */ - - uint32_t TTMemorySA; /*!< Specifies the Trigger Memory Start Address. - This parameter must be a 32-bit word address */ - - uint32_t EndAddress; /*!< Specifies the End Address of the allocated RAM. - This parameter must be a 32-bit word address */ - -} FDCAN_MsgRamAddressTypeDef; - -/** - * @brief FDCAN handle structure definition - */ -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 -typedef struct __FDCAN_HandleTypeDef -#else -typedef struct -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ -{ - FDCAN_GlobalTypeDef *Instance; /*!< Register base address */ - - TTCAN_TypeDef *ttcan; /*!< TT register base address */ - - FDCAN_InitTypeDef Init; /*!< FDCAN required parameters */ - - FDCAN_MsgRamAddressTypeDef msgRam; /*!< FDCAN Message RAM blocks */ - - uint32_t LatestTxFifoQRequest; /*!< FDCAN Tx buffer index - of latest Tx FIFO/Queue request */ - - __IO HAL_FDCAN_StateTypeDef State; /*!< FDCAN communication state */ - - HAL_LockTypeDef Lock; /*!< FDCAN locking object */ - - __IO uint32_t ErrorCode; /*!< FDCAN Error code */ - -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - void (* ClockCalibrationCallback)(struct __FDCAN_HandleTypeDef *hfdcan, uint32_t ClkCalibrationITs); /*!< FDCAN Clock Calibration callback */ - void (* TxEventFifoCallback)(struct __FDCAN_HandleTypeDef *hfdcan, uint32_t TxEventFifoITs); /*!< FDCAN Tx Event Fifo callback */ - void (* RxFifo0Callback)(struct __FDCAN_HandleTypeDef *hfdcan, uint32_t RxFifo0ITs); /*!< FDCAN Rx Fifo 0 callback */ - void (* RxFifo1Callback)(struct __FDCAN_HandleTypeDef *hfdcan, uint32_t RxFifo1ITs); /*!< FDCAN Rx Fifo 1 callback */ - void (* TxFifoEmptyCallback)(struct __FDCAN_HandleTypeDef *hfdcan); /*!< FDCAN Tx Fifo Empty callback */ - void (* TxBufferCompleteCallback)(struct __FDCAN_HandleTypeDef *hfdcan, uint32_t BufferIndexes); /*!< FDCAN Tx Buffer complete callback */ - void (* TxBufferAbortCallback)(struct __FDCAN_HandleTypeDef *hfdcan, uint32_t BufferIndexes); /*!< FDCAN Tx Buffer abort callback */ - void (* RxBufferNewMessageCallback)(struct __FDCAN_HandleTypeDef *hfdcan); /*!< FDCAN Rx Buffer New Message callback */ - void (* HighPriorityMessageCallback)(struct __FDCAN_HandleTypeDef *hfdcan); /*!< FDCAN High priority message callback */ - void (* TimestampWraparoundCallback)(struct __FDCAN_HandleTypeDef *hfdcan); /*!< FDCAN Timestamp wraparound callback */ - void (* TimeoutOccurredCallback)(struct __FDCAN_HandleTypeDef *hfdcan); /*!< FDCAN Timeout occurred callback */ - void (* ErrorCallback)(struct __FDCAN_HandleTypeDef *hfdcan); /*!< FDCAN Error callback */ - void (* ErrorStatusCallback)(struct __FDCAN_HandleTypeDef *hfdcan, uint32_t ErrorStatusITs); /*!< FDCAN Error status callback */ - void (* TT_ScheduleSyncCallback)(struct __FDCAN_HandleTypeDef *hfdcan, uint32_t TTSchedSyncITs); /*!< FDCAN T Schedule Synchronization callback */ - void (* TT_TimeMarkCallback)(struct __FDCAN_HandleTypeDef *hfdcan, uint32_t TTTimeMarkITs); /*!< FDCAN TT Time Mark callback */ - void (* TT_StopWatchCallback)(struct __FDCAN_HandleTypeDef *hfdcan, uint32_t SWTime, uint32_t SWCycleCount); /*!< FDCAN TT Stop Watch callback */ - void (* TT_GlobalTimeCallback)(struct __FDCAN_HandleTypeDef *hfdcan, uint32_t TTGlobTimeITs); /*!< FDCAN TT Global Time callback */ - - void (* MspInitCallback)(struct __FDCAN_HandleTypeDef *hfdcan); /*!< FDCAN Msp Init callback */ - void (* MspDeInitCallback)(struct __FDCAN_HandleTypeDef *hfdcan); /*!< FDCAN Msp DeInit callback */ -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - -} FDCAN_HandleTypeDef; - -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 -/** - * @brief HAL FDCAN common Callback ID enumeration definition - */ -typedef enum -{ - HAL_FDCAN_TX_FIFO_EMPTY_CB_ID = 0x00U, /*!< FDCAN Tx Fifo Empty callback ID */ - HAL_FDCAN_RX_BUFFER_NEW_MSG_CB_ID = 0x01U, /*!< FDCAN Rx buffer new message callback ID */ - HAL_FDCAN_HIGH_PRIO_MESSAGE_CB_ID = 0x02U, /*!< FDCAN High priority message callback ID */ - HAL_FDCAN_TIMESTAMP_WRAPAROUND_CB_ID = 0x03U, /*!< FDCAN Timestamp wraparound callback ID */ - HAL_FDCAN_TIMEOUT_OCCURRED_CB_ID = 0x04U, /*!< FDCAN Timeout occurred callback ID */ - HAL_FDCAN_ERROR_CALLBACK_CB_ID = 0x05U, /*!< FDCAN Error callback ID */ - - HAL_FDCAN_MSPINIT_CB_ID = 0x06U, /*!< FDCAN MspInit callback ID */ - HAL_FDCAN_MSPDEINIT_CB_ID = 0x07U, /*!< FDCAN MspDeInit callback ID */ - -} HAL_FDCAN_CallbackIDTypeDef; - -/** - * @brief HAL FDCAN Callback pointer definition - */ -typedef void (*pFDCAN_CallbackTypeDef)(FDCAN_HandleTypeDef *hfdcan); /*!< pointer to a common FDCAN callback function */ -typedef void (*pFDCAN_ClockCalibrationCallbackTypeDef)(FDCAN_HandleTypeDef *hfdcan, uint32_t ClkCalibrationITs); /*!< pointer to Clock Calibration FDCAN callback function */ -typedef void (*pFDCAN_TxEventFifoCallbackTypeDef)(FDCAN_HandleTypeDef *hfdcan, uint32_t TxEventFifoITs); /*!< pointer to Tx event Fifo FDCAN callback function */ -typedef void (*pFDCAN_RxFifo0CallbackTypeDef)(FDCAN_HandleTypeDef *hfdcan, uint32_t RxFifo0ITs); /*!< pointer to Rx Fifo 0 FDCAN callback function */ -typedef void (*pFDCAN_RxFifo1CallbackTypeDef)(FDCAN_HandleTypeDef *hfdcan, uint32_t RxFifo1ITs); /*!< pointer to Rx Fifo 1 FDCAN callback function */ -typedef void (*pFDCAN_TxBufferCompleteCallbackTypeDef)(FDCAN_HandleTypeDef *hfdcan, uint32_t BufferIndexes); /*!< pointer to Tx Buffer complete FDCAN callback function */ -typedef void (*pFDCAN_TxBufferAbortCallbackTypeDef)(FDCAN_HandleTypeDef *hfdcan, uint32_t BufferIndexes); /*!< pointer to Tx Buffer abort FDCAN callback function */ -typedef void (*pFDCAN_ErrorStatusCallbackTypeDef)(FDCAN_HandleTypeDef *hfdcan, uint32_t ErrorStatusITs); /*!< pointer to Error Status callback function */ -typedef void (*pFDCAN_TT_ScheduleSyncCallbackTypeDef)(FDCAN_HandleTypeDef *hfdcan, uint32_t TTSchedSyncITs); /*!< pointer to TT Schedule Synchronization FDCAN callback function */ -typedef void (*pFDCAN_TT_TimeMarkCallbackTypeDef)(FDCAN_HandleTypeDef *hfdcan, uint32_t TTTimeMarkITs); /*!< pointer to TT Time Mark FDCAN callback function */ -typedef void (*pFDCAN_TT_StopWatchCallbackTypeDef)(FDCAN_HandleTypeDef *hfdcan, uint32_t SWTime, uint32_t SWCycleCount); /*!< pointer to TT Stop Watch FDCAN callback function */ -typedef void (*pFDCAN_TT_GlobalTimeCallbackTypeDef)(FDCAN_HandleTypeDef *hfdcan, uint32_t TTGlobTimeITs); /*!< pointer to TT Global Time FDCAN callback function */ -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - -/** - * @} - */ - -/* Exported constants --------------------------------------------------------*/ -/** @defgroup FDCAN_Exported_Constants FDCAN Exported Constants - * @{ - */ - -/** @defgroup HAL_FDCAN_Error_Code HAL FDCAN Error Code - * @{ - */ -#define HAL_FDCAN_ERROR_NONE ((uint32_t)0x00000000U) /*!< No error */ -#define HAL_FDCAN_ERROR_TIMEOUT ((uint32_t)0x00000001U) /*!< Timeout error */ -#define HAL_FDCAN_ERROR_NOT_INITIALIZED ((uint32_t)0x00000002U) /*!< Peripheral not initialized */ -#define HAL_FDCAN_ERROR_NOT_READY ((uint32_t)0x00000004U) /*!< Peripheral not ready */ -#define HAL_FDCAN_ERROR_NOT_STARTED ((uint32_t)0x00000008U) /*!< Peripheral not started */ -#define HAL_FDCAN_ERROR_NOT_SUPPORTED ((uint32_t)0x00000010U) /*!< Mode not supported */ -#define HAL_FDCAN_ERROR_PARAM ((uint32_t)0x00000020U) /*!< Parameter error */ -#define HAL_FDCAN_ERROR_PENDING ((uint32_t)0x00000040U) /*!< Pending operation */ -#define HAL_FDCAN_ERROR_RAM_ACCESS ((uint32_t)0x00000080U) /*!< Message RAM Access Failure */ -#define HAL_FDCAN_ERROR_FIFO_EMPTY ((uint32_t)0x00000100U) /*!< Put element in full FIFO */ -#define HAL_FDCAN_ERROR_FIFO_FULL ((uint32_t)0x00000200U) /*!< Get element from empty FIFO */ -#define HAL_FDCAN_ERROR_LOG_OVERFLOW FDCAN_IR_ELO /*!< Overflow of CAN Error Logging Counter */ -#define HAL_FDCAN_ERROR_RAM_WDG FDCAN_IR_WDI /*!< Message RAM Watchdog event occurred */ -#define HAL_FDCAN_ERROR_PROTOCOL_ARBT FDCAN_IR_PEA /*!< Protocol Error in Arbitration Phase (Nominal Bit Time is used) */ -#define HAL_FDCAN_ERROR_PROTOCOL_DATA FDCAN_IR_PED /*!< Protocol Error in Data Phase (Data Bit Time is used) */ -#define HAL_FDCAN_ERROR_RESERVED_AREA FDCAN_IR_ARA /*!< Access to Reserved Address */ -#define HAL_FDCAN_ERROR_TT_GLOBAL_TIME FDCAN_TTIR_GTE /*!< Global Time Error : Synchronization deviation exceeded limit */ -#define HAL_FDCAN_ERROR_TT_TX_UNDERFLOW FDCAN_TTIR_TXU /*!< Tx Count Underflow : Less Tx trigger than expected in one matrix cycle */ -#define HAL_FDCAN_ERROR_TT_TX_OVERFLOW FDCAN_TTIR_TXO /*!< Tx Count Overflow : More Tx trigger than expected in one matrix cycle */ -#define HAL_FDCAN_ERROR_TT_SCHEDULE1 FDCAN_TTIR_SE1 /*!< Scheduling error 1 */ -#define HAL_FDCAN_ERROR_TT_SCHEDULE2 FDCAN_TTIR_SE2 /*!< Scheduling error 2 */ -#define HAL_FDCAN_ERROR_TT_NO_INIT_REF FDCAN_TTIR_IWT /*!< No system startup due to missing reference message */ -#define HAL_FDCAN_ERROR_TT_NO_REF FDCAN_TTIR_WT /*!< Missing reference message */ -#define HAL_FDCAN_ERROR_TT_APPL_WDG FDCAN_TTIR_AW /*!< Application watchdog not served in time */ -#define HAL_FDCAN_ERROR_TT_CONFIG FDCAN_TTIR_CER /*!< Error found in trigger list */ - -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 -#define HAL_FDCAN_ERROR_INVALID_CALLBACK ((uint32_t)0x00000100U) /*!< Invalid Callback error */ -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ -/** - * @} - */ - -/** @defgroup FDCAN_frame_format FDCAN Frame Format - * @{ - */ -#define FDCAN_FRAME_CLASSIC ((uint32_t)0x00000000U) /*!< Classic mode */ -#define FDCAN_FRAME_FD_NO_BRS ((uint32_t)FDCAN_CCCR_FDOE) /*!< FD mode without BitRate Switching */ -#define FDCAN_FRAME_FD_BRS ((uint32_t)(FDCAN_CCCR_FDOE | FDCAN_CCCR_BRSE)) /*!< FD mode with BitRate Switching */ -/** - * @} - */ - -/** @defgroup FDCAN_operating_mode FDCAN Operating Mode - * @{ - */ -#define FDCAN_MODE_NORMAL ((uint32_t)0x00000000U) /*!< Normal mode */ -#define FDCAN_MODE_RESTRICTED_OPERATION ((uint32_t)0x00000001U) /*!< Restricted Operation mode */ -#define FDCAN_MODE_BUS_MONITORING ((uint32_t)0x00000002U) /*!< Bus Monitoring mode */ -#define FDCAN_MODE_INTERNAL_LOOPBACK ((uint32_t)0x00000003U) /*!< Internal LoopBack mode */ -#define FDCAN_MODE_EXTERNAL_LOOPBACK ((uint32_t)0x00000004U) /*!< External LoopBack mode */ -/** - * @} - */ - -/** @defgroup FDCAN_clock_calibration FDCAN Clock Calibration - * @{ - */ -#define FDCAN_CLOCK_CALIBRATION_DISABLE ((uint32_t)0x00000000U) /*!< Disable Clock Calibration */ -#define FDCAN_CLOCK_CALIBRATION_ENABLE ((uint32_t)0x00000001U) /*!< Enable Clock Calibration */ -/** - * @} - */ - -/** @defgroup FDCAN_clock_divider FDCAN Clock Divider - * @{ - */ -#define FDCAN_CLOCK_DIV1 ((uint32_t)0x00000000U) /*!< Divide kernel clock by 1 */ -#define FDCAN_CLOCK_DIV2 ((uint32_t)0x00010000U) /*!< Divide kernel clock by 2 */ -#define FDCAN_CLOCK_DIV4 ((uint32_t)0x00020000U) /*!< Divide kernel clock by 4 */ -#define FDCAN_CLOCK_DIV6 ((uint32_t)0x00030000U) /*!< Divide kernel clock by 6 */ -#define FDCAN_CLOCK_DIV8 ((uint32_t)0x00040000U) /*!< Divide kernel clock by 8 */ -#define FDCAN_CLOCK_DIV10 ((uint32_t)0x00050000U) /*!< Divide kernel clock by 10 */ -#define FDCAN_CLOCK_DIV12 ((uint32_t)0x00060000U) /*!< Divide kernel clock by 12 */ -#define FDCAN_CLOCK_DIV14 ((uint32_t)0x00070000U) /*!< Divide kernel clock by 14 */ -#define FDCAN_CLOCK_DIV16 ((uint32_t)0x00080000U) /*!< Divide kernel clock by 16 */ -#define FDCAN_CLOCK_DIV18 ((uint32_t)0x00090000U) /*!< Divide kernel clock by 18 */ -#define FDCAN_CLOCK_DIV20 ((uint32_t)0x000A0000U) /*!< Divide kernel clock by 20 */ -#define FDCAN_CLOCK_DIV22 ((uint32_t)0x000B0000U) /*!< Divide kernel clock by 22 */ -#define FDCAN_CLOCK_DIV24 ((uint32_t)0x000C0000U) /*!< Divide kernel clock by 24 */ -#define FDCAN_CLOCK_DIV26 ((uint32_t)0x000D0000U) /*!< Divide kernel clock by 26 */ -#define FDCAN_CLOCK_DIV28 ((uint32_t)0x000E0000U) /*!< Divide kernel clock by 28 */ -#define FDCAN_CLOCK_DIV30 ((uint32_t)0x000F0000U) /*!< Divide kernel clock by 30 */ -/** - * @} - */ - -/** @defgroup FDCAN_calibration_field_length FDCAN Calibration Field Length - * @{ - */ -#define FDCAN_CALIB_FIELD_LENGTH_32 ((uint32_t)0x00000000U) /*!< Calibration field length is 32 bits */ -#define FDCAN_CALIB_FIELD_LENGTH_64 ((uint32_t)FDCANCCU_CCFG_CFL) /*!< Calibration field length is 64 bits */ -/** - * @} - */ - -/** @defgroup FDCAN_calibration_state FDCAN Calibration State - * @{ - */ -#define FDCAN_CLOCK_NOT_CALIBRATED ((uint32_t)0x00000000U) /*!< Clock not calibrated */ -#define FDCAN_CLOCK_BASIC_CALIBRATED ((uint32_t)0x40000000U) /*!< Clock basic calibrated */ -#define FDCAN_CLOCK_PRECISION_CALIBRATED ((uint32_t)0x80000000U) /*!< Clock precision calibrated */ -/** - * @} - */ - -/** @defgroup FDCAN_calibration_counter FDCAN Calibration Counter - * @{ - */ -#define FDCAN_CALIB_TIME_QUANTA_COUNTER ((uint32_t)0x00000000U) /*!< Time Quanta Counter */ -#define FDCAN_CALIB_CLOCK_PERIOD_COUNTER ((uint32_t)0x00000001U) /*!< Oscillator Clock Period Counter */ -#define FDCAN_CALIB_WATCHDOG_COUNTER ((uint32_t)0x00000002U) /*!< Calibration Watchdog Counter */ -/** - * @} - */ - -/** @defgroup FDCAN_data_field_size FDCAN Data Field Size - * @{ - */ -#define FDCAN_DATA_BYTES_8 ((uint32_t)0x00000004U) /*!< 8 bytes data field */ -#define FDCAN_DATA_BYTES_12 ((uint32_t)0x00000005U) /*!< 12 bytes data field */ -#define FDCAN_DATA_BYTES_16 ((uint32_t)0x00000006U) /*!< 16 bytes data field */ -#define FDCAN_DATA_BYTES_20 ((uint32_t)0x00000007U) /*!< 20 bytes data field */ -#define FDCAN_DATA_BYTES_24 ((uint32_t)0x00000008U) /*!< 24 bytes data field */ -#define FDCAN_DATA_BYTES_32 ((uint32_t)0x0000000AU) /*!< 32 bytes data field */ -#define FDCAN_DATA_BYTES_48 ((uint32_t)0x0000000EU) /*!< 48 bytes data field */ -#define FDCAN_DATA_BYTES_64 ((uint32_t)0x00000012U) /*!< 64 bytes data field */ -/** - * @} - */ - -/** @defgroup FDCAN_txFifoQueue_Mode FDCAN Tx FIFO/Queue Mode - * @{ - */ -#define FDCAN_TX_FIFO_OPERATION ((uint32_t)0x00000000U) /*!< FIFO mode */ -#define FDCAN_TX_QUEUE_OPERATION ((uint32_t)FDCAN_TXBC_TFQM) /*!< Queue mode */ -/** - * @} - */ - -/** @defgroup FDCAN_id_type FDCAN ID Type - * @{ - */ -#define FDCAN_STANDARD_ID ((uint32_t)0x00000000U) /*!< Standard ID element */ -#define FDCAN_EXTENDED_ID ((uint32_t)0x40000000U) /*!< Extended ID element */ -/** - * @} - */ - -/** @defgroup FDCAN_frame_type FDCAN Frame Type - * @{ - */ -#define FDCAN_DATA_FRAME ((uint32_t)0x00000000U) /*!< Data frame */ -#define FDCAN_REMOTE_FRAME ((uint32_t)0x20000000U) /*!< Remote frame */ -/** - * @} - */ - -/** @defgroup FDCAN_data_length_code FDCAN Data Length Code - * @{ - */ -#define FDCAN_DLC_BYTES_0 ((uint32_t)0x00000000U) /*!< 0 bytes data field */ -#define FDCAN_DLC_BYTES_1 ((uint32_t)0x00010000U) /*!< 1 bytes data field */ -#define FDCAN_DLC_BYTES_2 ((uint32_t)0x00020000U) /*!< 2 bytes data field */ -#define FDCAN_DLC_BYTES_3 ((uint32_t)0x00030000U) /*!< 3 bytes data field */ -#define FDCAN_DLC_BYTES_4 ((uint32_t)0x00040000U) /*!< 4 bytes data field */ -#define FDCAN_DLC_BYTES_5 ((uint32_t)0x00050000U) /*!< 5 bytes data field */ -#define FDCAN_DLC_BYTES_6 ((uint32_t)0x00060000U) /*!< 6 bytes data field */ -#define FDCAN_DLC_BYTES_7 ((uint32_t)0x00070000U) /*!< 7 bytes data field */ -#define FDCAN_DLC_BYTES_8 ((uint32_t)0x00080000U) /*!< 8 bytes data field */ -#define FDCAN_DLC_BYTES_12 ((uint32_t)0x00090000U) /*!< 12 bytes data field */ -#define FDCAN_DLC_BYTES_16 ((uint32_t)0x000A0000U) /*!< 16 bytes data field */ -#define FDCAN_DLC_BYTES_20 ((uint32_t)0x000B0000U) /*!< 20 bytes data field */ -#define FDCAN_DLC_BYTES_24 ((uint32_t)0x000C0000U) /*!< 24 bytes data field */ -#define FDCAN_DLC_BYTES_32 ((uint32_t)0x000D0000U) /*!< 32 bytes data field */ -#define FDCAN_DLC_BYTES_48 ((uint32_t)0x000E0000U) /*!< 48 bytes data field */ -#define FDCAN_DLC_BYTES_64 ((uint32_t)0x000F0000U) /*!< 64 bytes data field */ -/** - * @} - */ - -/** @defgroup FDCAN_error_state_indicator FDCAN Error State Indicator - * @{ - */ -#define FDCAN_ESI_ACTIVE ((uint32_t)0x00000000U) /*!< Transmitting node is error active */ -#define FDCAN_ESI_PASSIVE ((uint32_t)0x80000000U) /*!< Transmitting node is error passive */ -/** - * @} - */ - -/** @defgroup FDCAN_bit_rate_switching FDCAN Bit Rate Switching - * @{ - */ -#define FDCAN_BRS_OFF ((uint32_t)0x00000000U) /*!< FDCAN frames transmitted/received without bit rate switching */ -#define FDCAN_BRS_ON ((uint32_t)0x00100000U) /*!< FDCAN frames transmitted/received with bit rate switching */ -/** - * @} - */ - -/** @defgroup FDCAN_format FDCAN format - * @{ - */ -#define FDCAN_CLASSIC_CAN ((uint32_t)0x00000000U) /*!< Frame transmitted/received in Classic CAN format */ -#define FDCAN_FD_CAN ((uint32_t)0x00200000U) /*!< Frame transmitted/received in FDCAN format */ -/** - * @} - */ - -/** @defgroup FDCAN_EFC FDCAN Event FIFO control - * @{ - */ -#define FDCAN_NO_TX_EVENTS ((uint32_t)0x00000000U) /*!< Do not store Tx events */ -#define FDCAN_STORE_TX_EVENTS ((uint32_t)0x00800000U) /*!< Store Tx events */ -/** - * @} - */ - -/** @defgroup FDCAN_filter_type FDCAN Filter Type - * @{ - */ -#define FDCAN_FILTER_RANGE ((uint32_t)0x00000000U) /*!< Range filter from FilterID1 to FilterID2 */ -#define FDCAN_FILTER_DUAL ((uint32_t)0x00000001U) /*!< Dual ID filter for FilterID1 or FilterID2 */ -#define FDCAN_FILTER_MASK ((uint32_t)0x00000002U) /*!< Classic filter: FilterID1 = filter, FilterID2 = mask */ -#define FDCAN_FILTER_RANGE_NO_EIDM ((uint32_t)0x00000003U) /*!< Range filter from FilterID1 to FilterID2, EIDM mask not applied */ -/** - * @} - */ - -/** @defgroup FDCAN_filter_config FDCAN Filter Configuration - * @{ - */ -#define FDCAN_FILTER_DISABLE ((uint32_t)0x00000000U) /*!< Disable filter element */ -#define FDCAN_FILTER_TO_RXFIFO0 ((uint32_t)0x00000001U) /*!< Store in Rx FIFO 0 if filter matches */ -#define FDCAN_FILTER_TO_RXFIFO1 ((uint32_t)0x00000002U) /*!< Store in Rx FIFO 1 if filter matches */ -#define FDCAN_FILTER_REJECT ((uint32_t)0x00000003U) /*!< Reject ID if filter matches */ -#define FDCAN_FILTER_HP ((uint32_t)0x00000004U) /*!< Set high priority if filter matches */ -#define FDCAN_FILTER_TO_RXFIFO0_HP ((uint32_t)0x00000005U) /*!< Set high priority and store in FIFO 0 if filter matches */ -#define FDCAN_FILTER_TO_RXFIFO1_HP ((uint32_t)0x00000006U) /*!< Set high priority and store in FIFO 1 if filter matches */ -#define FDCAN_FILTER_TO_RXBUFFER ((uint32_t)0x00000007U) /*!< Store into Rx Buffer, configuration of FilterType ignored */ -/** - * @} - */ - -/** @defgroup FDCAN_Tx_location FDCAN Tx Location - * @{ - */ -#define FDCAN_TX_BUFFER0 ((uint32_t)0x00000001U) /*!< Add message to Tx Buffer 0 */ -#define FDCAN_TX_BUFFER1 ((uint32_t)0x00000002U) /*!< Add message to Tx Buffer 1 */ -#define FDCAN_TX_BUFFER2 ((uint32_t)0x00000004U) /*!< Add message to Tx Buffer 2 */ -#define FDCAN_TX_BUFFER3 ((uint32_t)0x00000008U) /*!< Add message to Tx Buffer 3 */ -#define FDCAN_TX_BUFFER4 ((uint32_t)0x00000010U) /*!< Add message to Tx Buffer 4 */ -#define FDCAN_TX_BUFFER5 ((uint32_t)0x00000020U) /*!< Add message to Tx Buffer 5 */ -#define FDCAN_TX_BUFFER6 ((uint32_t)0x00000040U) /*!< Add message to Tx Buffer 6 */ -#define FDCAN_TX_BUFFER7 ((uint32_t)0x00000080U) /*!< Add message to Tx Buffer 7 */ -#define FDCAN_TX_BUFFER8 ((uint32_t)0x00000100U) /*!< Add message to Tx Buffer 8 */ -#define FDCAN_TX_BUFFER9 ((uint32_t)0x00000200U) /*!< Add message to Tx Buffer 9 */ -#define FDCAN_TX_BUFFER10 ((uint32_t)0x00000400U) /*!< Add message to Tx Buffer 10 */ -#define FDCAN_TX_BUFFER11 ((uint32_t)0x00000800U) /*!< Add message to Tx Buffer 11 */ -#define FDCAN_TX_BUFFER12 ((uint32_t)0x00001000U) /*!< Add message to Tx Buffer 12 */ -#define FDCAN_TX_BUFFER13 ((uint32_t)0x00002000U) /*!< Add message to Tx Buffer 13 */ -#define FDCAN_TX_BUFFER14 ((uint32_t)0x00004000U) /*!< Add message to Tx Buffer 14 */ -#define FDCAN_TX_BUFFER15 ((uint32_t)0x00008000U) /*!< Add message to Tx Buffer 15 */ -#define FDCAN_TX_BUFFER16 ((uint32_t)0x00010000U) /*!< Add message to Tx Buffer 16 */ -#define FDCAN_TX_BUFFER17 ((uint32_t)0x00020000U) /*!< Add message to Tx Buffer 17 */ -#define FDCAN_TX_BUFFER18 ((uint32_t)0x00040000U) /*!< Add message to Tx Buffer 18 */ -#define FDCAN_TX_BUFFER19 ((uint32_t)0x00080000U) /*!< Add message to Tx Buffer 19 */ -#define FDCAN_TX_BUFFER20 ((uint32_t)0x00100000U) /*!< Add message to Tx Buffer 20 */ -#define FDCAN_TX_BUFFER21 ((uint32_t)0x00200000U) /*!< Add message to Tx Buffer 21 */ -#define FDCAN_TX_BUFFER22 ((uint32_t)0x00400000U) /*!< Add message to Tx Buffer 22 */ -#define FDCAN_TX_BUFFER23 ((uint32_t)0x00800000U) /*!< Add message to Tx Buffer 23 */ -#define FDCAN_TX_BUFFER24 ((uint32_t)0x01000000U) /*!< Add message to Tx Buffer 24 */ -#define FDCAN_TX_BUFFER25 ((uint32_t)0x02000000U) /*!< Add message to Tx Buffer 25 */ -#define FDCAN_TX_BUFFER26 ((uint32_t)0x04000000U) /*!< Add message to Tx Buffer 26 */ -#define FDCAN_TX_BUFFER27 ((uint32_t)0x08000000U) /*!< Add message to Tx Buffer 27 */ -#define FDCAN_TX_BUFFER28 ((uint32_t)0x10000000U) /*!< Add message to Tx Buffer 28 */ -#define FDCAN_TX_BUFFER29 ((uint32_t)0x20000000U) /*!< Add message to Tx Buffer 29 */ -#define FDCAN_TX_BUFFER30 ((uint32_t)0x40000000U) /*!< Add message to Tx Buffer 30 */ -#define FDCAN_TX_BUFFER31 ((uint32_t)0x80000000U) /*!< Add message to Tx Buffer 31 */ -/** - * @} - */ - -/** @defgroup FDCAN_Rx_location FDCAN Rx Location - * @{ - */ -#define FDCAN_RX_FIFO0 ((uint32_t)0x00000040U) /*!< Get received message from Rx FIFO 0 */ -#define FDCAN_RX_FIFO1 ((uint32_t)0x00000041U) /*!< Get received message from Rx FIFO 1 */ -#define FDCAN_RX_BUFFER0 ((uint32_t)0x00000000U) /*!< Get received message from Rx Buffer 0 */ -#define FDCAN_RX_BUFFER1 ((uint32_t)0x00000001U) /*!< Get received message from Rx Buffer 1 */ -#define FDCAN_RX_BUFFER2 ((uint32_t)0x00000002U) /*!< Get received message from Rx Buffer 2 */ -#define FDCAN_RX_BUFFER3 ((uint32_t)0x00000003U) /*!< Get received message from Rx Buffer 3 */ -#define FDCAN_RX_BUFFER4 ((uint32_t)0x00000004U) /*!< Get received message from Rx Buffer 4 */ -#define FDCAN_RX_BUFFER5 ((uint32_t)0x00000005U) /*!< Get received message from Rx Buffer 5 */ -#define FDCAN_RX_BUFFER6 ((uint32_t)0x00000006U) /*!< Get received message from Rx Buffer 6 */ -#define FDCAN_RX_BUFFER7 ((uint32_t)0x00000007U) /*!< Get received message from Rx Buffer 7 */ -#define FDCAN_RX_BUFFER8 ((uint32_t)0x00000008U) /*!< Get received message from Rx Buffer 8 */ -#define FDCAN_RX_BUFFER9 ((uint32_t)0x00000009U) /*!< Get received message from Rx Buffer 9 */ -#define FDCAN_RX_BUFFER10 ((uint32_t)0x0000000AU) /*!< Get received message from Rx Buffer 10 */ -#define FDCAN_RX_BUFFER11 ((uint32_t)0x0000000BU) /*!< Get received message from Rx Buffer 11 */ -#define FDCAN_RX_BUFFER12 ((uint32_t)0x0000000CU) /*!< Get received message from Rx Buffer 12 */ -#define FDCAN_RX_BUFFER13 ((uint32_t)0x0000000DU) /*!< Get received message from Rx Buffer 13 */ -#define FDCAN_RX_BUFFER14 ((uint32_t)0x0000000EU) /*!< Get received message from Rx Buffer 14 */ -#define FDCAN_RX_BUFFER15 ((uint32_t)0x0000000FU) /*!< Get received message from Rx Buffer 15 */ -#define FDCAN_RX_BUFFER16 ((uint32_t)0x00000010U) /*!< Get received message from Rx Buffer 16 */ -#define FDCAN_RX_BUFFER17 ((uint32_t)0x00000011U) /*!< Get received message from Rx Buffer 17 */ -#define FDCAN_RX_BUFFER18 ((uint32_t)0x00000012U) /*!< Get received message from Rx Buffer 18 */ -#define FDCAN_RX_BUFFER19 ((uint32_t)0x00000013U) /*!< Get received message from Rx Buffer 19 */ -#define FDCAN_RX_BUFFER20 ((uint32_t)0x00000014U) /*!< Get received message from Rx Buffer 20 */ -#define FDCAN_RX_BUFFER21 ((uint32_t)0x00000015U) /*!< Get received message from Rx Buffer 21 */ -#define FDCAN_RX_BUFFER22 ((uint32_t)0x00000016U) /*!< Get received message from Rx Buffer 22 */ -#define FDCAN_RX_BUFFER23 ((uint32_t)0x00000017U) /*!< Get received message from Rx Buffer 23 */ -#define FDCAN_RX_BUFFER24 ((uint32_t)0x00000018U) /*!< Get received message from Rx Buffer 24 */ -#define FDCAN_RX_BUFFER25 ((uint32_t)0x00000019U) /*!< Get received message from Rx Buffer 25 */ -#define FDCAN_RX_BUFFER26 ((uint32_t)0x0000001AU) /*!< Get received message from Rx Buffer 26 */ -#define FDCAN_RX_BUFFER27 ((uint32_t)0x0000001BU) /*!< Get received message from Rx Buffer 27 */ -#define FDCAN_RX_BUFFER28 ((uint32_t)0x0000001CU) /*!< Get received message from Rx Buffer 28 */ -#define FDCAN_RX_BUFFER29 ((uint32_t)0x0000001DU) /*!< Get received message from Rx Buffer 29 */ -#define FDCAN_RX_BUFFER30 ((uint32_t)0x0000001EU) /*!< Get received message from Rx Buffer 30 */ -#define FDCAN_RX_BUFFER31 ((uint32_t)0x0000001FU) /*!< Get received message from Rx Buffer 31 */ -#define FDCAN_RX_BUFFER32 ((uint32_t)0x00000020U) /*!< Get received message from Rx Buffer 32 */ -#define FDCAN_RX_BUFFER33 ((uint32_t)0x00000021U) /*!< Get received message from Rx Buffer 33 */ -#define FDCAN_RX_BUFFER34 ((uint32_t)0x00000022U) /*!< Get received message from Rx Buffer 34 */ -#define FDCAN_RX_BUFFER35 ((uint32_t)0x00000023U) /*!< Get received message from Rx Buffer 35 */ -#define FDCAN_RX_BUFFER36 ((uint32_t)0x00000024U) /*!< Get received message from Rx Buffer 36 */ -#define FDCAN_RX_BUFFER37 ((uint32_t)0x00000025U) /*!< Get received message from Rx Buffer 37 */ -#define FDCAN_RX_BUFFER38 ((uint32_t)0x00000026U) /*!< Get received message from Rx Buffer 38 */ -#define FDCAN_RX_BUFFER39 ((uint32_t)0x00000027U) /*!< Get received message from Rx Buffer 39 */ -#define FDCAN_RX_BUFFER40 ((uint32_t)0x00000028U) /*!< Get received message from Rx Buffer 40 */ -#define FDCAN_RX_BUFFER41 ((uint32_t)0x00000029U) /*!< Get received message from Rx Buffer 41 */ -#define FDCAN_RX_BUFFER42 ((uint32_t)0x0000002AU) /*!< Get received message from Rx Buffer 42 */ -#define FDCAN_RX_BUFFER43 ((uint32_t)0x0000002BU) /*!< Get received message from Rx Buffer 43 */ -#define FDCAN_RX_BUFFER44 ((uint32_t)0x0000002CU) /*!< Get received message from Rx Buffer 44 */ -#define FDCAN_RX_BUFFER45 ((uint32_t)0x0000002DU) /*!< Get received message from Rx Buffer 45 */ -#define FDCAN_RX_BUFFER46 ((uint32_t)0x0000002EU) /*!< Get received message from Rx Buffer 46 */ -#define FDCAN_RX_BUFFER47 ((uint32_t)0x0000002FU) /*!< Get received message from Rx Buffer 47 */ -#define FDCAN_RX_BUFFER48 ((uint32_t)0x00000030U) /*!< Get received message from Rx Buffer 48 */ -#define FDCAN_RX_BUFFER49 ((uint32_t)0x00000031U) /*!< Get received message from Rx Buffer 49 */ -#define FDCAN_RX_BUFFER50 ((uint32_t)0x00000032U) /*!< Get received message from Rx Buffer 50 */ -#define FDCAN_RX_BUFFER51 ((uint32_t)0x00000033U) /*!< Get received message from Rx Buffer 51 */ -#define FDCAN_RX_BUFFER52 ((uint32_t)0x00000034U) /*!< Get received message from Rx Buffer 52 */ -#define FDCAN_RX_BUFFER53 ((uint32_t)0x00000035U) /*!< Get received message from Rx Buffer 53 */ -#define FDCAN_RX_BUFFER54 ((uint32_t)0x00000036U) /*!< Get received message from Rx Buffer 54 */ -#define FDCAN_RX_BUFFER55 ((uint32_t)0x00000037U) /*!< Get received message from Rx Buffer 55 */ -#define FDCAN_RX_BUFFER56 ((uint32_t)0x00000038U) /*!< Get received message from Rx Buffer 56 */ -#define FDCAN_RX_BUFFER57 ((uint32_t)0x00000039U) /*!< Get received message from Rx Buffer 57 */ -#define FDCAN_RX_BUFFER58 ((uint32_t)0x0000003AU) /*!< Get received message from Rx Buffer 58 */ -#define FDCAN_RX_BUFFER59 ((uint32_t)0x0000003BU) /*!< Get received message from Rx Buffer 59 */ -#define FDCAN_RX_BUFFER60 ((uint32_t)0x0000003CU) /*!< Get received message from Rx Buffer 60 */ -#define FDCAN_RX_BUFFER61 ((uint32_t)0x0000003DU) /*!< Get received message from Rx Buffer 61 */ -#define FDCAN_RX_BUFFER62 ((uint32_t)0x0000003EU) /*!< Get received message from Rx Buffer 62 */ -#define FDCAN_RX_BUFFER63 ((uint32_t)0x0000003FU) /*!< Get received message from Rx Buffer 63 */ -/** - * @} - */ - -/** @defgroup FDCAN_event_type FDCAN Event Type - * @{ - */ -#define FDCAN_TX_EVENT ((uint32_t)0x00400000U) /*!< Tx event */ -#define FDCAN_TX_IN_SPITE_OF_ABORT ((uint32_t)0x00800000U) /*!< Transmission in spite of cancellation */ -/** - * @} - */ - -/** @defgroup FDCAN_hp_msg_storage FDCAN High Priority Message Storage - * @{ - */ -#define FDCAN_HP_STORAGE_NO_FIFO ((uint32_t)0x00000000U) /*!< No FIFO selected */ -#define FDCAN_HP_STORAGE_MSG_LOST ((uint32_t)0x00000040U) /*!< FIFO message lost */ -#define FDCAN_HP_STORAGE_RXFIFO0 ((uint32_t)0x00000080U) /*!< Message stored in FIFO 0 */ -#define FDCAN_HP_STORAGE_RXFIFO1 ((uint32_t)0x000000C0U) /*!< Message stored in FIFO 1 */ -/** - * @} - */ - -/** @defgroup FDCAN_protocol_error_code FDCAN protocol error code - * @{ - */ -#define FDCAN_PROTOCOL_ERROR_NONE ((uint32_t)0x00000000U) /*!< No error occurred */ -#define FDCAN_PROTOCOL_ERROR_STUFF ((uint32_t)0x00000001U) /*!< Stuff error */ -#define FDCAN_PROTOCOL_ERROR_FORM ((uint32_t)0x00000002U) /*!< Form error */ -#define FDCAN_PROTOCOL_ERROR_ACK ((uint32_t)0x00000003U) /*!< Acknowledge error */ -#define FDCAN_PROTOCOL_ERROR_BIT1 ((uint32_t)0x00000004U) /*!< Bit 1 (recessive) error */ -#define FDCAN_PROTOCOL_ERROR_BIT0 ((uint32_t)0x00000005U) /*!< Bit 0 (dominant) error */ -#define FDCAN_PROTOCOL_ERROR_CRC ((uint32_t)0x00000006U) /*!< CRC check sum error */ -#define FDCAN_PROTOCOL_ERROR_NO_CHANGE ((uint32_t)0x00000007U) /*!< No change since last read */ -/** - * @} - */ - -/** @defgroup FDCAN_communication_state FDCAN communication state - * @{ - */ -#define FDCAN_COM_STATE_SYNC ((uint32_t)0x00000000U) /*!< Node is synchronizing on CAN communication */ -#define FDCAN_COM_STATE_IDLE ((uint32_t)0x00000008U) /*!< Node is neither receiver nor transmitter */ -#define FDCAN_COM_STATE_RX ((uint32_t)0x00000010U) /*!< Node is operating as receiver */ -#define FDCAN_COM_STATE_TX ((uint32_t)0x00000018U) /*!< Node is operating as transmitter */ -/** - * @} - */ - -/** @defgroup FDCAN_FIFO_watermark FDCAN FIFO watermark - * @{ - */ -#define FDCAN_CFG_TX_EVENT_FIFO ((uint32_t)0x00000000U) /*!< Tx event FIFO */ -#define FDCAN_CFG_RX_FIFO0 ((uint32_t)0x00000001U) /*!< Rx FIFO0 */ -#define FDCAN_CFG_RX_FIFO1 ((uint32_t)0x00000002U) /*!< Rx FIFO1 */ -/** - * @} - */ - -/** @defgroup FDCAN_Rx_FIFO_operation_mode FDCAN FIFO operation mode - * @{ - */ -#define FDCAN_RX_FIFO_BLOCKING ((uint32_t)0x00000000U) /*!< Rx FIFO blocking mode */ -#define FDCAN_RX_FIFO_OVERWRITE ((uint32_t)0x80000000U) /*!< Rx FIFO overwrite mode */ -/** - * @} - */ - -/** @defgroup FDCAN_Non_Matching_Frames FDCAN non-matching frames - * @{ - */ -#define FDCAN_ACCEPT_IN_RX_FIFO0 ((uint32_t)0x00000000U) /*!< Accept in Rx FIFO 0 */ -#define FDCAN_ACCEPT_IN_RX_FIFO1 ((uint32_t)0x00000001U) /*!< Accept in Rx FIFO 1 */ -#define FDCAN_REJECT ((uint32_t)0x00000002U) /*!< Reject */ -/** - * @} - */ - -/** @defgroup FDCAN_Reject_Remote_Frames FDCAN reject remote frames - * @{ - */ -#define FDCAN_FILTER_REMOTE ((uint32_t)0x00000000U) /*!< Filter remote frames */ -#define FDCAN_REJECT_REMOTE ((uint32_t)0x00000001U) /*!< Reject all remote frames */ -/** - * @} - */ - -/** @defgroup FDCAN_Interrupt_Line FDCAN interrupt line - * @{ - */ -#define FDCAN_INTERRUPT_LINE0 ((uint32_t)0x00000001U) /*!< Interrupt Line 0 */ -#define FDCAN_INTERRUPT_LINE1 ((uint32_t)0x00000002U) /*!< Interrupt Line 1 */ -/** - * @} - */ - -/** @defgroup FDCAN_Timestamp FDCAN timestamp - * @{ - */ -#define FDCAN_TIMESTAMP_INTERNAL ((uint32_t)0x00000001U) /*!< Timestamp counter value incremented according to TCP */ -#define FDCAN_TIMESTAMP_EXTERNAL ((uint32_t)0x00000002U) /*!< External timestamp counter value used */ -/** - * @} - */ - -/** @defgroup FDCAN_Timestamp_Prescaler FDCAN timestamp prescaler - * @{ - */ -#define FDCAN_TIMESTAMP_PRESC_1 ((uint32_t)0x00000000U) /*!< Timestamp counter time unit in equal to CAN bit time */ -#define FDCAN_TIMESTAMP_PRESC_2 ((uint32_t)0x00010000U) /*!< Timestamp counter time unit in equal to CAN bit time multiplied by 2 */ -#define FDCAN_TIMESTAMP_PRESC_3 ((uint32_t)0x00020000U) /*!< Timestamp counter time unit in equal to CAN bit time multiplied by 3 */ -#define FDCAN_TIMESTAMP_PRESC_4 ((uint32_t)0x00030000U) /*!< Timestamp counter time unit in equal to CAN bit time multiplied by 4 */ -#define FDCAN_TIMESTAMP_PRESC_5 ((uint32_t)0x00040000U) /*!< Timestamp counter time unit in equal to CAN bit time multiplied by 5 */ -#define FDCAN_TIMESTAMP_PRESC_6 ((uint32_t)0x00050000U) /*!< Timestamp counter time unit in equal to CAN bit time multiplied by 6 */ -#define FDCAN_TIMESTAMP_PRESC_7 ((uint32_t)0x00060000U) /*!< Timestamp counter time unit in equal to CAN bit time multiplied by 7 */ -#define FDCAN_TIMESTAMP_PRESC_8 ((uint32_t)0x00070000U) /*!< Timestamp counter time unit in equal to CAN bit time multiplied by 8 */ -#define FDCAN_TIMESTAMP_PRESC_9 ((uint32_t)0x00080000U) /*!< Timestamp counter time unit in equal to CAN bit time multiplied by 9 */ -#define FDCAN_TIMESTAMP_PRESC_10 ((uint32_t)0x00090000U) /*!< Timestamp counter time unit in equal to CAN bit time multiplied by 10 */ -#define FDCAN_TIMESTAMP_PRESC_11 ((uint32_t)0x000A0000U) /*!< Timestamp counter time unit in equal to CAN bit time multiplied by 11 */ -#define FDCAN_TIMESTAMP_PRESC_12 ((uint32_t)0x000B0000U) /*!< Timestamp counter time unit in equal to CAN bit time multiplied by 12 */ -#define FDCAN_TIMESTAMP_PRESC_13 ((uint32_t)0x000C0000U) /*!< Timestamp counter time unit in equal to CAN bit time multiplied by 13 */ -#define FDCAN_TIMESTAMP_PRESC_14 ((uint32_t)0x000D0000U) /*!< Timestamp counter time unit in equal to CAN bit time multiplied by 14 */ -#define FDCAN_TIMESTAMP_PRESC_15 ((uint32_t)0x000E0000U) /*!< Timestamp counter time unit in equal to CAN bit time multiplied by 15 */ -#define FDCAN_TIMESTAMP_PRESC_16 ((uint32_t)0x000F0000U) /*!< Timestamp counter time unit in equal to CAN bit time multiplied by 16 */ -/** - * @} - */ - -/** @defgroup FDCAN_Timeout_Operation FDCAN timeout operation - * @{ - */ -#define FDCAN_TIMEOUT_CONTINUOUS ((uint32_t)0x00000000U) /*!< Timeout continuous operation */ -#define FDCAN_TIMEOUT_TX_EVENT_FIFO ((uint32_t)0x00000002U) /*!< Timeout controlled by Tx Event FIFO */ -#define FDCAN_TIMEOUT_RX_FIFO0 ((uint32_t)0x00000004U) /*!< Timeout controlled by Rx FIFO 0 */ -#define FDCAN_TIMEOUT_RX_FIFO1 ((uint32_t)0x00000006U) /*!< Timeout controlled by Rx FIFO 1 */ -/** - * @} - */ - -/** @defgroup FDCAN_TT_Reference_Message_Payload FDCAN TT reference message payload - * @{ - */ -#define FDCAN_TT_REF_MESSAGE_NO_PAYLOAD ((uint32_t)0x00000000U) /*!< Reference message has no additional payload */ -#define FDCAN_TT_REF_MESSAGE_ADD_PAYLOAD ((uint32_t)FDCAN_TTRMC_RMPS) /*!< Additional payload is taken from Tx Buffer 0 */ -/** - * @} - */ - -/** @defgroup FDCAN_TT_Repeat_Factor FDCAN TT repeat factor - * @{ - */ -#define FDCAN_TT_REPEAT_EVERY_CYCLE ((uint32_t)0x00000000U) /*!< Trigger valid for all cycles */ -#define FDCAN_TT_REPEAT_EVERY_2ND_CYCLE ((uint32_t)0x00000002U) /*!< Trigger valid every 2dn cycle */ -#define FDCAN_TT_REPEAT_EVERY_4TH_CYCLE ((uint32_t)0x00000004U) /*!< Trigger valid every 4th cycle */ -#define FDCAN_TT_REPEAT_EVERY_8TH_CYCLE ((uint32_t)0x00000008U) /*!< Trigger valid every 8th cycle */ -#define FDCAN_TT_REPEAT_EVERY_16TH_CYCLE ((uint32_t)0x00000010U) /*!< Trigger valid every 16th cycle */ -#define FDCAN_TT_REPEAT_EVERY_32ND_CYCLE ((uint32_t)0x00000020U) /*!< Trigger valid every 32nd cycle */ -#define FDCAN_TT_REPEAT_EVERY_64TH_CYCLE ((uint32_t)0x00000040U) /*!< Trigger valid every 64th cycle */ -/** - * @} - */ - -/** @defgroup FDCAN_TT_Trigger_Type FDCAN TT trigger type - * @{ - */ -#define FDCAN_TT_TX_REF_TRIGGER ((uint32_t)0x00000000U) /*!< Transmit reference message in strictly time-triggered operation */ -#define FDCAN_TT_TX_REF_TRIGGER_GAP ((uint32_t)0x00000001U) /*!< Transmit reference message in external event-synchronized time-triggered operation */ -#define FDCAN_TT_TX_TRIGGER_SINGLE ((uint32_t)0x00000002U) /*!< Start a single transmission in an exclusive time window */ -#define FDCAN_TT_TX_TRIGGER_CONTINUOUS ((uint32_t)0x00000003U) /*!< Start a continuous transmission in an exclusive time window */ -#define FDCAN_TT_TX_TRIGGER_ARBITRATION ((uint32_t)0x00000004U) /*!< Start a transmission in an arbitration time window */ -#define FDCAN_TT_TX_TRIGGER_MERGED ((uint32_t)0x00000005U) /*!< Start a merged arbitration window */ -#define FDCAN_TT_WATCH_TRIGGER ((uint32_t)0x00000006U) /*!< Check for missing reference messages in strictly time-triggered operation */ -#define FDCAN_TT_WATCH_TRIGGER_GAP ((uint32_t)0x00000007U) /*!< Check for missing reference messages in external event-synchronized time-triggered operation */ -#define FDCAN_TT_RX_TRIGGER ((uint32_t)0x00000008U) /*!< Check for the reception of periodic messages in exclusive time windows */ -#define FDCAN_TT_TIME_BASE_TRIGGER ((uint32_t)0x00000009U) /*!< Generate internal/external events depending on TmEventInt/TmEventExt configuration */ -#define FDCAN_TT_END_OF_LIST ((uint32_t)0x0000000AU) /*!< Illegal trigger, to be assigned to the unused triggers after a FDCAN_TT_WATCH_TRIGGER or FDCAN_TT_WATCH_TRIGGER_GAP */ -/** - * @} - */ - -/** @defgroup FDCAN_TT_Time_Mark_Event_Internal FDCAN TT time mark event internal - * @{ - */ -#define FDCAN_TT_TM_NO_INTERNAL_EVENT ((uint32_t)0x00000000U) /*!< No action */ -#define FDCAN_TT_TM_GEN_INTERNAL_EVENT ((uint32_t)0x00000020U) /*!< Internal event is generated when trigger becomes active */ -/** - * @} - */ - -/** @defgroup FDCAN_TT_Time_Mark_Event_External FDCAN TT time mark event external - * @{ - */ -#define FDCAN_TT_TM_NO_EXTERNAL_EVENT ((uint32_t)0x00000000U) /*!< No action */ -#define FDCAN_TT_TM_GEN_EXTERNAL_EVENT ((uint32_t)0x00000010U) /*!< External event (pulse) is generated when trigger becomes active */ -/** - * @} - */ - -/** @defgroup FDCAN_operation_mode FDCAN Operation Mode - * @{ - */ -#define FDCAN_TT_COMMUNICATION_LEVEL1 ((uint32_t)0x00000001U) /*!< Time triggered communication, level 1 */ -#define FDCAN_TT_COMMUNICATION_LEVEL2 ((uint32_t)0x00000002U) /*!< Time triggered communication, level 2 */ -#define FDCAN_TT_COMMUNICATION_LEVEL0 ((uint32_t)0x00000003U) /*!< Time triggered communication, level 0 */ -/** - * @} - */ - -/** @defgroup FDCAN_TT_operation FDCAN TT Operation - * @{ - */ -#define FDCAN_STRICTLY_TT_OPERATION ((uint32_t)0x00000000U) /*!< Strictly time-triggered operation */ -#define FDCAN_EXT_EVT_SYNC_TT_OPERATION ((uint32_t)FDCAN_TTOCF_GEN) /*!< External event-synchronized time-triggered operation */ -/** - * @} - */ - -/** @defgroup FDCAN_TT_time_master FDCAN TT Time Master - * @{ - */ -#define FDCAN_TT_SLAVE ((uint32_t)0x00000000U) /*!< Time slave */ -#define FDCAN_TT_POTENTIAL_MASTER ((uint32_t)FDCAN_TTOCF_TM) /*!< Potential time master */ -/** - * @} - */ - -/** @defgroup FDCAN_TT_external_clk_sync FDCAN TT External Clock Synchronization - * @{ - */ -#define FDCAN_TT_EXT_CLK_SYNC_DISABLE ((uint32_t)0x00000000U) /*!< External clock synchronization in Level 0,2 disabled */ -#define FDCAN_TT_EXT_CLK_SYNC_ENABLE ((uint32_t)FDCAN_TTOCF_EECS) /*!< External clock synchronization in Level 0,2 enabled */ -/** - * @} - */ - -/** @defgroup FDCAN_TT_global_time_filtering FDCAN TT Global Time Filtering - * @{ - */ -#define FDCAN_TT_GLOB_TIME_FILT_DISABLE ((uint32_t)0x00000000U) /*!< Global time filtering in Level 0,2 disabled */ -#define FDCAN_TT_GLOB_TIME_FILT_ENABLE ((uint32_t)FDCAN_TTOCF_EGTF) /*!< Global time filtering in Level 0,2 enabled */ -/** - * @} - */ - -/** @defgroup FDCAN_TT_auto_clk_calibration FDCAN TT Automatic Clock Calibration - * @{ - */ -#define FDCAN_TT_AUTO_CLK_CALIB_DISABLE ((uint32_t)0x00000000U) /*!< Automatic clock calibration in Level 0,2 disabled */ -#define FDCAN_TT_AUTO_CLK_CALIB_ENABLE ((uint32_t)FDCAN_TTOCF_ECC) /*!< Automatic clock calibration in Level 0,2 enabled */ -/** - * @} - */ - -/** @defgroup FDCAN_TT_event_trig_polarity FDCAN TT Event Trigger Polarity - * @{ - */ -#define FDCAN_TT_EVT_TRIG_POL_RISING ((uint32_t)0x00000000U) /*!< Rising edge trigger */ -#define FDCAN_TT_EVT_TRIG_POL_FALLING ((uint32_t)FDCAN_TTOCF_EVTP) /*!< Falling edge trigger */ -/** - * @} - */ - -/** @defgroup FDCAN_TT_basic_cycle_number FDCAN TT Basic Cycle Number - * @{ - */ -#define FDCAN_TT_CYCLES_PER_MATRIX_1 ((uint32_t)0x00000000U) /*!< 1 Basic Cycle per Matrix */ -#define FDCAN_TT_CYCLES_PER_MATRIX_2 ((uint32_t)0x00000001U) /*!< 2 Basic Cycles per Matrix */ -#define FDCAN_TT_CYCLES_PER_MATRIX_4 ((uint32_t)0x00000003U) /*!< 4 Basic Cycles per Matrix */ -#define FDCAN_TT_CYCLES_PER_MATRIX_8 ((uint32_t)0x00000007U) /*!< 8 Basic Cycles per Matrix */ -#define FDCAN_TT_CYCLES_PER_MATRIX_16 ((uint32_t)0x0000000FU) /*!< 16 Basic Cycles per Matrix */ -#define FDCAN_TT_CYCLES_PER_MATRIX_32 ((uint32_t)0x0000001FU) /*!< 32 Basic Cycles per Matrix */ -#define FDCAN_TT_CYCLES_PER_MATRIX_64 ((uint32_t)0x0000003FU) /*!< 64 Basic Cycles per Matrix */ -/** - * @} - */ - -/** @defgroup FDCAN_TT_cycle_start_sync FDCAN TT Cycle Start Sync - * @{ - */ -#define FDCAN_TT_NO_SYNC_PULSE ((uint32_t)0x00000000U) /*!< No sync pulse */ -#define FDCAN_TT_SYNC_BASIC_CYCLE_START ((uint32_t)0x00000040U) /*!< Sync pulse at start of basic cycle */ -#define FDCAN_TT_SYNC_MATRIX_START ((uint32_t)0x00000080U) /*!< Sync pulse at start of matrix */ -/** - * @} - */ - -/** @defgroup FDCAN_TT_stop_watch_trig_selection FDCAN TT Stop Watch Trigger Selection - * @{ - */ -#define FDCAN_TT_STOP_WATCH_TRIGGER_0 ((uint32_t)0x00000000U) /*!< TIM2 selected as stop watch trigger */ -#define FDCAN_TT_STOP_WATCH_TRIGGER_1 ((uint32_t)0x00000001U) /*!< TIM3 selected as stop watch trigger */ -#define FDCAN_TT_STOP_WATCH_TRIGGER_2 ((uint32_t)0x00000002U) /*!< ETH selected as stop watch trigger */ -#define FDCAN_TT_STOP_WATCH_TRIGGER_3 ((uint32_t)0x00000003U) /*!< HRTIM selected as stop watch trigger */ -/** - * @} - */ - -/** @defgroup FDCAN_TT_event_trig_selection FDCAN TT Event Trigger Selection - * @{ - */ -#define FDCAN_TT_EVENT_TRIGGER_0 ((uint32_t)0x00000000U) /*!< TIM2 selected as event trigger */ -#define FDCAN_TT_EVENT_TRIGGER_1 ((uint32_t)0x00000010U) /*!< TIM3 selected as event trigger */ -#define FDCAN_TT_EVENT_TRIGGER_2 ((uint32_t)0x00000020U) /*!< ETH selected as event trigger */ -#define FDCAN_TT_EVENT_TRIGGER_3 ((uint32_t)0x00000030U) /*!< HRTIM selected as event trigger */ -/** - * @} - */ - -/** @defgroup FDCAN_TT_stop_watch_source FDCAN TT Stop Watch Source - * @{ - */ -#define FDCAN_TT_STOP_WATCH_DISABLED ((uint32_t)0x00000000U) /*!< Stop Watch disabled */ -#define FDCAN_TT_STOP_WATCH_CYCLE_TIME ((uint32_t)0x00000008U) /*!< Actual value of cycle time is copied to Capture Time register (TTCPT.SWV) */ -#define FDCAN_TT_STOP_WATCH_LOCAL_TIME ((uint32_t)0x00000010U) /*!< Actual value of local time is copied to Capture Time register (TTCPT.SWV) */ -#define FDCAN_TT_STOP_WATCH_GLOBAL_TIME ((uint32_t)0x00000018U) /*!< Actual value of global time is copied to Capture Time register (TTCPT.SWV) */ -/** - * @} - */ - -/** @defgroup FDCAN_TT_stop_watch_polarity FDCAN TT Stop Watch Polarity - * @{ - */ -#define FDCAN_TT_STOP_WATCH_RISING ((uint32_t)0x00000000U) /*!< Selected stop watch source is captured at rising edge of fdcan1_swt */ -#define FDCAN_TT_STOP_WATCH_FALLING ((uint32_t)0x00000004U) /*!< Selected stop watch source is captured at falling edge of fdcan1_swt */ -/** - * @} - */ - -/** @defgroup FDCAN_TT_time_mark_source FDCAN TT Time Mark Source - * @{ - */ -#define FDCAN_TT_REG_TIMEMARK_DIABLED ((uint32_t)0x00000000U) /*!< No Register Time Mark Interrupt generated */ -#define FDCAN_TT_REG_TIMEMARK_CYC_TIME ((uint32_t)0x00000040U) /*!< Register Time Mark Interrupt if Time Mark = cycle time */ -#define FDCAN_TT_REG_TIMEMARK_LOC_TIME ((uint32_t)0x00000080U) /*!< Register Time Mark Interrupt if Time Mark = local time */ -#define FDCAN_TT_REG_TIMEMARK_GLO_TIME ((uint32_t)0x000000C0U) /*!< Register Time Mark Interrupt if Time Mark = global time */ -/** - * @} - */ - -/** @defgroup FDCAN_TT_error_level FDCAN TT Error Level - * @{ - */ -#define FDCAN_TT_NO_ERROR ((uint32_t)0x00000000U) /*!< Severity 0 - No Error */ -#define FDCAN_TT_WARNING ((uint32_t)0x00000001U) /*!< Severity 1 - Warning */ -#define FDCAN_TT_ERROR ((uint32_t)0x00000002U) /*!< Severity 2 - Error */ -#define FDCAN_TT_SEVERE_ERROR ((uint32_t)0x00000003U) /*!< Severity 3 - Severe Error */ -/** - * @} - */ - -/** @defgroup FDCAN_TT_master_state FDCAN TT Master State - * @{ - */ -#define FDCAN_TT_MASTER_OFF ((uint32_t)0x00000000U) /*!< Master_Off, no master properties relevant */ -#define FDCAN_TT_TIME_SLAVE ((uint32_t)0x00000004U) /*!< Operating as Time Slave */ -#define FDCAN_TT_BACKUP_TIME_MASTER ((uint32_t)0x00000008U) /*!< Operating as Backup Time Master */ -#define FDCAN_TT_CURRENT_TIME_MASTER ((uint32_t)0x0000000CU) /*!< Operating as current Time Master */ -/** - * @} - */ - -/** @defgroup FDCAN_TT_sync_state FDCAN TT Synchronization State - * @{ - */ -#define FDCAN_TT_OUT_OF_SYNC ((uint32_t)0x00000000U) /*!< Out of Synchronization */ -#define FDCAN_TT_SYNCHRONIZING ((uint32_t)0x00000010U) /*!< Synchronizing to communication */ -#define FDCAN_TT_IN_GAP ((uint32_t)0x00000020U) /*!< Schedule suspended by Gap */ -#define FDCAN_TT_IN_SCHEDULE ((uint32_t)0x00000030U) /*!< Synchronized to schedule */ -/** - * @} - */ - -/** @defgroup Interrupt_Masks Interrupt masks - * @{ - */ -#define FDCAN_IR_MASK ((uint32_t)0x3FCFFFFFU) /*!< FDCAN interrupts mask */ -#define CCU_IR_MASK ((uint32_t)0xC0000000U) /*!< CCU interrupts mask */ -/** - * @} - */ - -/** @defgroup FDCAN_flags FDCAN Flags - * @{ - */ -#define FDCAN_FLAG_TX_COMPLETE FDCAN_IR_TC /*!< Transmission Completed */ -#define FDCAN_FLAG_TX_ABORT_COMPLETE FDCAN_IR_TCF /*!< Transmission Cancellation Finished */ -#define FDCAN_FLAG_TX_FIFO_EMPTY FDCAN_IR_TFE /*!< Tx FIFO Empty */ -#define FDCAN_FLAG_RX_HIGH_PRIORITY_MSG FDCAN_IR_HPM /*!< High priority message received */ -#define FDCAN_FLAG_RX_BUFFER_NEW_MESSAGE FDCAN_IR_DRX /*!< At least one received message stored into a Rx Buffer */ -#define FDCAN_FLAG_TX_EVT_FIFO_ELT_LOST FDCAN_IR_TEFL /*!< Tx Event FIFO element lost */ -#define FDCAN_FLAG_TX_EVT_FIFO_FULL FDCAN_IR_TEFF /*!< Tx Event FIFO full */ -#define FDCAN_FLAG_TX_EVT_FIFO_WATERMARK FDCAN_IR_TEFW /*!< Tx Event FIFO fill level reached watermark */ -#define FDCAN_FLAG_TX_EVT_FIFO_NEW_DATA FDCAN_IR_TEFN /*!< Tx Handler wrote Tx Event FIFO element */ -#define FDCAN_FLAG_RX_FIFO0_MESSAGE_LOST FDCAN_IR_RF0L /*!< Rx FIFO 0 message lost */ -#define FDCAN_FLAG_RX_FIFO0_FULL FDCAN_IR_RF0F /*!< Rx FIFO 0 full */ -#define FDCAN_FLAG_RX_FIFO0_WATERMARK FDCAN_IR_RF0W /*!< Rx FIFO 0 fill level reached watermark */ -#define FDCAN_FLAG_RX_FIFO0_NEW_MESSAGE FDCAN_IR_RF0N /*!< New message written to Rx FIFO 0 */ -#define FDCAN_FLAG_RX_FIFO1_MESSAGE_LOST FDCAN_IR_RF1L /*!< Rx FIFO 1 message lost */ -#define FDCAN_FLAG_RX_FIFO1_FULL FDCAN_IR_RF1F /*!< Rx FIFO 1 full */ -#define FDCAN_FLAG_RX_FIFO1_WATERMARK FDCAN_IR_RF1W /*!< Rx FIFO 1 fill level reached watermark */ -#define FDCAN_FLAG_RX_FIFO1_NEW_MESSAGE FDCAN_IR_RF1N /*!< New message written to Rx FIFO 1 */ -#define FDCAN_FLAG_RAM_ACCESS_FAILURE FDCAN_IR_MRAF /*!< Message RAM access failure occurred */ -#define FDCAN_FLAG_ERROR_LOGGING_OVERFLOW FDCAN_IR_ELO /*!< Overflow of FDCAN Error Logging Counter occurred */ -#define FDCAN_FLAG_ERROR_PASSIVE FDCAN_IR_EP /*!< Error_Passive status changed */ -#define FDCAN_FLAG_ERROR_WARNING FDCAN_IR_EW /*!< Error_Warning status changed */ -#define FDCAN_FLAG_BUS_OFF FDCAN_IR_BO /*!< Bus_Off status changed */ -#define FDCAN_FLAG_RAM_WATCHDOG FDCAN_IR_WDI /*!< Message RAM Watchdog event due to missing READY */ -#define FDCAN_FLAG_ARB_PROTOCOL_ERROR FDCAN_IR_PEA /*!< Protocol error in arbitration phase detected */ -#define FDCAN_FLAG_DATA_PROTOCOL_ERROR FDCAN_IR_PED /*!< Protocol error in data phase detected */ -#define FDCAN_FLAG_RESERVED_ADDRESS_ACCESS FDCAN_IR_ARA /*!< Access to reserved address occurred */ -#define FDCAN_FLAG_TIMESTAMP_WRAPAROUND FDCAN_IR_TSW /*!< Timestamp counter wrapped around */ -#define FDCAN_FLAG_TIMEOUT_OCCURRED FDCAN_IR_TOO /*!< Timeout reached */ -#define FDCAN_FLAG_CALIB_STATE_CHANGED (FDCANCCU_IR_CSC << 30) /*!< Clock calibration state changed */ -#define FDCAN_FLAG_CALIB_WATCHDOG_EVENT (FDCANCCU_IR_CWE << 30) /*!< Clock calibration watchdog event occurred */ -/** - * @} - */ - -/** @defgroup FDCAN_Interrupts FDCAN Interrupts - * @{ - */ - -/** @defgroup FDCAN_Tx_Interrupts FDCAN Tx Interrupts - * @{ - */ -#define FDCAN_IT_TX_COMPLETE FDCAN_IE_TCE /*!< Transmission Completed */ -#define FDCAN_IT_TX_ABORT_COMPLETE FDCAN_IE_TCFE /*!< Transmission Cancellation Finished */ -#define FDCAN_IT_TX_FIFO_EMPTY FDCAN_IE_TFEE /*!< Tx FIFO Empty */ -/** - * @} - */ - -/** @defgroup FDCAN_Rx_Interrupts FDCAN Rx Interrupts - * @{ - */ -#define FDCAN_IT_RX_HIGH_PRIORITY_MSG FDCAN_IE_HPME /*!< High priority message received */ -#define FDCAN_IT_RX_BUFFER_NEW_MESSAGE FDCAN_IE_DRXE /*!< At least one received message stored into a Rx Buffer */ -/** - * @} - */ - -/** @defgroup FDCAN_Counter_Interrupts FDCAN Counter Interrupts - * @{ - */ -#define FDCAN_IT_TIMESTAMP_WRAPAROUND FDCAN_IE_TSWE /*!< Timestamp counter wrapped around */ -#define FDCAN_IT_TIMEOUT_OCCURRED FDCAN_IE_TOOE /*!< Timeout reached */ -/** - * @} - */ - -/** @defgroup FDCAN_Clock_Calibration_Interrupts Clock Calibration Interrupts - * @{ - */ -#define FDCAN_IT_CALIB_STATE_CHANGED (FDCANCCU_IE_CSCE << 30) /*!< Clock calibration state changed */ -#define FDCAN_IT_CALIB_WATCHDOG_EVENT (FDCANCCU_IE_CWEE << 30) /*!< Clock calibration watchdog event occurred */ -/** - * @} - */ - -/** @defgroup FDCAN_Tx_Event_Fifo_Interrupts FDCAN Tx Event FIFO Interrupts - * @{ - */ -#define FDCAN_IT_TX_EVT_FIFO_ELT_LOST FDCAN_IE_TEFLE /*!< Tx Event FIFO element lost */ -#define FDCAN_IT_TX_EVT_FIFO_FULL FDCAN_IE_TEFFE /*!< Tx Event FIFO full */ -#define FDCAN_IT_TX_EVT_FIFO_WATERMARK FDCAN_IE_TEFWE /*!< Tx Event FIFO fill level reached watermark */ -#define FDCAN_IT_TX_EVT_FIFO_NEW_DATA FDCAN_IE_TEFNE /*!< Tx Handler wrote Tx Event FIFO element */ -/** - * @} - */ - -/** @defgroup FDCAN_Rx_Fifo0_Interrupts FDCAN Rx FIFO 0 Interrupts - * @{ - */ -#define FDCAN_IT_RX_FIFO0_MESSAGE_LOST FDCAN_IE_RF0LE /*!< Rx FIFO 0 message lost */ -#define FDCAN_IT_RX_FIFO0_FULL FDCAN_IE_RF0FE /*!< Rx FIFO 0 full */ -#define FDCAN_IT_RX_FIFO0_WATERMARK FDCAN_IE_RF0WE /*!< Rx FIFO 0 fill level reached watermark */ -#define FDCAN_IT_RX_FIFO0_NEW_MESSAGE FDCAN_IE_RF0NE /*!< New message written to Rx FIFO 0 */ -/** - * @} - */ - -/** @defgroup FDCAN_Rx_Fifo1_Interrupts FDCAN Rx FIFO 1 Interrupts - * @{ - */ -#define FDCAN_IT_RX_FIFO1_MESSAGE_LOST FDCAN_IE_RF1LE /*!< Rx FIFO 1 message lost */ -#define FDCAN_IT_RX_FIFO1_FULL FDCAN_IE_RF1FE /*!< Rx FIFO 1 full */ -#define FDCAN_IT_RX_FIFO1_WATERMARK FDCAN_IE_RF1WE /*!< Rx FIFO 1 fill level reached watermark */ -#define FDCAN_IT_RX_FIFO1_NEW_MESSAGE FDCAN_IE_RF1NE /*!< New message written to Rx FIFO 1 */ -/** - * @} - */ - -/** @defgroup FDCAN_Error_Interrupts FDCAN Error Interrupts - * @{ - */ -#define FDCAN_IT_RAM_ACCESS_FAILURE FDCAN_IE_MRAFE /*!< Message RAM access failure occurred */ -#define FDCAN_IT_ERROR_LOGGING_OVERFLOW FDCAN_IE_ELOE /*!< Overflow of FDCAN Error Logging Counter occurred */ -#define FDCAN_IT_RAM_WATCHDOG FDCAN_IE_WDIE /*!< Message RAM Watchdog event due to missing READY */ -#define FDCAN_IT_ARB_PROTOCOL_ERROR FDCAN_IE_PEAE /*!< Protocol error in arbitration phase detected */ -#define FDCAN_IT_DATA_PROTOCOL_ERROR FDCAN_IE_PEDE /*!< Protocol error in data phase detected */ -#define FDCAN_IT_RESERVED_ADDRESS_ACCESS FDCAN_IE_ARAE /*!< Access to reserved address occurred */ -/** - * @} - */ - -/** @defgroup FDCAN_Error_Status_Interrupts FDCAN Error Status Interrupts - * @{ - */ -#define FDCAN_IT_ERROR_PASSIVE FDCAN_IE_EPE /*!< Error_Passive status changed */ -#define FDCAN_IT_ERROR_WARNING FDCAN_IE_EWE /*!< Error_Warning status changed */ -#define FDCAN_IT_BUS_OFF FDCAN_IE_BOE /*!< Bus_Off status changed */ -/** - * @} - */ - -/** - * @} - */ - -/** @defgroup FDCAN_TTflags FDCAN TT Flags - * @{ - */ -#define FDCAN_TT_FLAG_BASIC_CYCLE_START FDCAN_TTIR_SBC /*!< Start of Basic Cycle */ -#define FDCAN_TT_FLAG_MATRIX_CYCLE_START FDCAN_TTIR_SMC /*!< Start of Matrix Cycle */ -#define FDCAN_TT_FLAG_SYNC_MODE_CHANGE FDCAN_TTIR_CSM /*!< Change of Synchronization Mode */ -#define FDCAN_TT_FLAG_START_OF_GAP FDCAN_TTIR_SOG /*!< Start of Gap */ -#define FDCAN_TT_FLAG_REG_TIME_MARK FDCAN_TTIR_RTMI /*!< Register Time Mark Interrupt */ -#define FDCAN_TT_FLAG_TRIG_TIME_MARK FDCAN_TTIR_TTMI /*!< Trigger Time Mark Event Internal */ -#define FDCAN_TT_FLAG_STOP_WATCH FDCAN_TTIR_SWE /*!< Stop Watch Event */ -#define FDCAN_TT_FLAG_GLOBAL_TIME_WRAP FDCAN_TTIR_GTW /*!< Global Time Wrap */ -#define FDCAN_TT_FLAG_GLOBAL_TIME_DISC FDCAN_TTIR_GTD /*!< Global Time Discontinuity */ -#define FDCAN_TT_FLAG_GLOBAL_TIME_ERROR FDCAN_TTIR_GTE /*!< Global Time Error */ -#define FDCAN_TT_FLAG_TX_COUNT_UNDERFLOW FDCAN_TTIR_TXU /*!< Tx Count Underflow */ -#define FDCAN_TT_FLAG_TX_COUNT_OVERFLOW FDCAN_TTIR_TXO /*!< Tx Count Overflow */ -#define FDCAN_TT_FLAG_SCHEDULING_ERROR_1 FDCAN_TTIR_SE1 /*!< Scheduling Error 1 */ -#define FDCAN_TT_FLAG_SCHEDULING_ERROR_2 FDCAN_TTIR_SE2 /*!< Scheduling Error 2 */ -#define FDCAN_TT_FLAG_ERROR_LEVEL_CHANGE FDCAN_TTIR_ELC /*!< Error Level Changed */ -#define FDCAN_TT_FLAG_INIT_WATCH_TRIGGER FDCAN_TTIR_IWT /*!< Initialization Watch Trigger */ -#define FDCAN_TT_FLAG_WATCH_TRIGGER FDCAN_TTIR_WT /*!< Watch Trigger */ -#define FDCAN_TT_FLAG_APPLICATION_WATCHDOG FDCAN_TTIR_AW /*!< Application Watchdog */ -#define FDCAN_TT_FLAG_CONFIG_ERROR FDCAN_TTIR_CER /*!< Configuration Error */ -/** - * @} - */ - -/** @defgroup FDCAN_TTInterrupts FDCAN TT Interrupts - * @{ - */ - -/** @defgroup FDCAN_TTScheduleSynchronization_Interrupts FDCAN TT Schedule Synchronization Interrupts - * @{ - */ -#define FDCAN_TT_IT_BASIC_CYCLE_START FDCAN_TTIE_SBCE /*!< Start of Basic Cycle */ -#define FDCAN_TT_IT_MATRIX_CYCLE_START FDCAN_TTIE_SMCE /*!< Start of Matrix Cycle */ -#define FDCAN_TT_IT_SYNC_MODE_CHANGE FDCAN_TTIE_CSME /*!< Change of Synchronization Mode */ -#define FDCAN_TT_IT_START_OF_GAP FDCAN_TTIE_SOGE /*!< Start of Gap */ -/** - * @} - */ - -/** @defgroup FDCAN_TTTimeMark_Interrupts FDCAN TT Time Mark Interrupts - * @{ - */ -#define FDCAN_TT_IT_REG_TIME_MARK FDCAN_TTIE_RTMIE /*!< Register Time Mark Interrupt */ -#define FDCAN_TT_IT_TRIG_TIME_MARK FDCAN_TTIE_TTMIE /*!< Trigger Time Mark Event Internal */ -/** - * @} - */ - -/** @defgroup FDCAN_TTStopWatch_Interrupt FDCAN TT Stop Watch Interrupt - * @{ - */ -#define FDCAN_TT_IT_STOP_WATCH FDCAN_TTIE_SWEE /*!< Stop Watch Event */ -/** - * @} - */ - -/** @defgroup FDCAN_TTGlobalTime_Interrupts FDCAN TT Global Time Interrupts - * @{ - */ -#define FDCAN_TT_IT_GLOBAL_TIME_WRAP FDCAN_TTIE_GTWE /*!< Global Time Wrap */ -#define FDCAN_TT_IT_GLOBAL_TIME_DISC FDCAN_TTIE_GTDE /*!< Global Time Discontinuity */ -/** - * @} - */ - -/** @defgroup FDCAN_TTDisturbingError_Interrupts FDCAN TT Disturbing Error Interrupts - * @{ - */ -#define FDCAN_TT_IT_GLOBAL_TIME_ERROR FDCAN_TTIE_GTEE /*!< Global Time Error */ -#define FDCAN_TT_IT_TX_COUNT_UNDERFLOW FDCAN_TTIE_TXUE /*!< Tx Count Underflow */ -#define FDCAN_TT_IT_TX_COUNT_OVERFLOW FDCAN_TTIE_TXOE /*!< Tx Count Overflow */ -#define FDCAN_TT_IT_SCHEDULING_ERROR_1 FDCAN_TTIE_SE1E /*!< Scheduling Error 1 */ -#define FDCAN_TT_IT_SCHEDULING_ERROR_2 FDCAN_TTIE_SE2E /*!< Scheduling Error 2 */ -#define FDCAN_TT_IT_ERROR_LEVEL_CHANGE FDCAN_TTIE_ELCE /*!< Error Level Changed */ -/** - * @} - */ - -/** @defgroup FDCAN_TTFatalError_Interrupts FDCAN TT Fatal Error Interrupts - * @{ - */ -#define FDCAN_TT_IT_INIT_WATCH_TRIGGER FDCAN_TTIE_IWTE /*!< Initialization Watch Trigger */ -#define FDCAN_TT_IT_WATCH_TRIGGER FDCAN_TTIE_WTE /*!< Watch Trigger */ -#define FDCAN_TT_IT_APPLICATION_WATCHDOG FDCAN_TTIE_AWE /*!< Application Watchdog */ -#define FDCAN_TT_IT_CONFIG_ERROR FDCAN_TTIE_CERE /*!< Configuration Error */ -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -/* Exported macro ------------------------------------------------------------*/ -/** @defgroup FDCAN_Exported_Macros FDCAN Exported Macros - * @{ - */ - -/** @brief Reset FDCAN handle state. - * @param __HANDLE__ FDCAN handle. - * @retval None - */ -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 -#define __HAL_FDCAN_RESET_HANDLE_STATE(__HANDLE__) do{ \ - (__HANDLE__)->State = HAL_FDCAN_STATE_RESET; \ - (__HANDLE__)->MspInitCallback = NULL; \ - (__HANDLE__)->MspDeInitCallback = NULL; \ - } while(0) -#else -#define __HAL_FDCAN_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_FDCAN_STATE_RESET) -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - -/** - * @brief Enable the specified FDCAN interrupts. - * @param __HANDLE__ FDCAN handle. - * @param __INTERRUPT__ FDCAN interrupt. - * This parameter can be any combination of @arg FDCAN_Interrupts - * @retval None - */ -#define __HAL_FDCAN_ENABLE_IT(__HANDLE__, __INTERRUPT__) \ - do{ \ - (__HANDLE__)->Instance->IE |= ((__INTERRUPT__) & FDCAN_IR_MASK); \ - FDCAN_CCU->IE |= (((__INTERRUPT__) & CCU_IR_MASK) >> 30); \ - }while(0) - - -/** - * @brief Disable the specified FDCAN interrupts. - * @param __HANDLE__ FDCAN handle. - * @param __INTERRUPT__ FDCAN interrupt. - * This parameter can be any combination of @arg FDCAN_Interrupts - * @retval None - */ -#define __HAL_FDCAN_DISABLE_IT(__HANDLE__, __INTERRUPT__) \ - do{ \ - ((__HANDLE__)->Instance->IE) &= ~((__INTERRUPT__) & FDCAN_IR_MASK); \ - FDCAN_CCU->IE &= ~(((__INTERRUPT__) & CCU_IR_MASK) >> 30); \ - }while(0) - -/** - * @brief Check whether the specified FDCAN interrupt is set or not. - * @param __HANDLE__ FDCAN handle. - * @param __INTERRUPT__ FDCAN interrupt. - * This parameter can be one of @arg FDCAN_Interrupts - * @retval ITStatus - */ -#define __HAL_FDCAN_GET_IT(__HANDLE__, __INTERRUPT__) (((__INTERRUPT__) < FDCAN_IT_CALIB_WATCHDOG_EVENT) ? ((__HANDLE__)->Instance->IR & (__INTERRUPT__)) : ((FDCAN_CCU->IR << 30) & (__INTERRUPT__))) - -/** - * @brief Clear the specified FDCAN interrupts. - * @param __HANDLE__ FDCAN handle. - * @param __INTERRUPT__ specifies the interrupts to clear. - * This parameter can be any combination of @arg FDCAN_Interrupts - * @retval None - */ -#define __HAL_FDCAN_CLEAR_IT(__HANDLE__, __INTERRUPT__) \ -do{ \ - ((__HANDLE__)->Instance->IR) = ((__INTERRUPT__) & FDCAN_IR_MASK); \ - FDCAN_CCU->IR = (((__INTERRUPT__) & CCU_IR_MASK) >> 30); \ - }while(0) - -/** - * @brief Check whether the specified FDCAN flag is set or not. - * @param __HANDLE__ FDCAN handle. - * @param __FLAG__ FDCAN flag. - * This parameter can be one of @arg FDCAN_flags - * @retval FlagStatus - */ -#define __HAL_FDCAN_GET_FLAG(__HANDLE__, __FLAG__) (((__FLAG__) < FDCAN_FLAG_CALIB_WATCHDOG_EVENT) ? ((__HANDLE__)->Instance->IR & (__FLAG__)) : ((FDCAN_CCU->IR << 30) & (__FLAG__))) - -/** - * @brief Clear the specified FDCAN flags. - * @param __HANDLE__ FDCAN handle. - * @param __FLAG__ specifies the flags to clear. - * This parameter can be any combination of @arg FDCAN_flags - * @retval None - */ -#define __HAL_FDCAN_CLEAR_FLAG(__HANDLE__, __FLAG__) \ -do{ \ - ((__HANDLE__)->Instance->IR) = ((__FLAG__) & FDCAN_IR_MASK); \ - FDCAN_CCU->IR = (((__FLAG__) & CCU_IR_MASK) >> 30); \ - }while(0) - -/** @brief Check if the specified FDCAN interrupt source is enabled or disabled. - * @param __HANDLE__ FDCAN handle. - * @param __INTERRUPT__ specifies the FDCAN interrupt source to check. - * This parameter can be a value of @arg FDCAN_Interrupts - * @retval ITStatus - */ -#define __HAL_FDCAN_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) (((__INTERRUPT__) < FDCAN_IT_CALIB_WATCHDOG_EVENT) ? ((__HANDLE__)->Instance->IE & (__INTERRUPT__)) : ((FDCAN_CCU->IE << 30) & (__INTERRUPT__))) - -/** - * @brief Enable the specified FDCAN TT interrupts. - * @param __HANDLE__ FDCAN handle. - * @param __INTERRUPT__ FDCAN TT interrupt. - * This parameter can be any combination of @arg FDCAN_TTInterrupts - * @retval None - */ -#define __HAL_FDCAN_TT_ENABLE_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->ttcan->TTIE) |= (__INTERRUPT__)) - -/** - * @brief Disable the specified FDCAN TT interrupts. - * @param __HANDLE__ FDCAN handle. - * @param __INTERRUPT__ FDCAN TT interrupt. - * This parameter can be any combination of @arg FDCAN_TTInterrupts - * @retval None - */ -#define __HAL_FDCAN_TT_DISABLE_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->ttcan->TTIE) &= ~(__INTERRUPT__)) - -/** - * @brief Check whether the specified FDCAN TT interrupt is set or not. - * @param __HANDLE__ FDCAN handle. - * @param __INTERRUPT__ FDCAN TT interrupt. - * This parameter can be one of @arg FDCAN_TTInterrupts - * @retval ITStatus - */ -#define __HAL_FDCAN_TT_GET_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->ttcan->TTIR) & (__INTERRUPT__)) - -/** - * @brief Clear the specified FDCAN TT interrupts. - * @param __HANDLE__ FDCAN handle. - * @param __INTERRUPT__ specifies the TT interrupts to clear. - * This parameter can be any combination of @arg FDCAN_TTInterrupts - * @retval None - */ -#define __HAL_FDCAN_TT_CLEAR_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->ttcan->TTIR) = (__INTERRUPT__)) - -/** - * @brief Check whether the specified FDCAN TT flag is set or not. - * @param __HANDLE__ FDCAN handle. - * @param __FLAG__ FDCAN TT flag. - * This parameter can be one of @arg FDCAN_TTflags - * @retval FlagStatus - */ -#define __HAL_FDCAN_TT_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->ttcan->TTIR) & (__FLAG__)) - -/** - * @brief Clear the specified FDCAN TT flags. - * @param __HANDLE__ FDCAN handle. - * @param __FLAG__ specifies the TT flags to clear. - * This parameter can be any combination of @arg FDCAN_TTflags - * @retval None - */ -#define __HAL_FDCAN_TT_CLEAR_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->ttcan->TTIR) = (__FLAG__)) - -/** @brief Check if the specified FDCAN TT interrupt source is enabled or disabled. - * @param __HANDLE__ FDCAN handle. - * @param __INTERRUPT__ specifies the FDCAN TT interrupt source to check. - * This parameter can be a value of @arg FDCAN_TTInterrupts - * @retval ITStatus - */ -#define __HAL_FDCAN_TT_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->ttcan->TTIE) & (__INTERRUPT__)) - -/** - * @} - */ - -/* Exported functions --------------------------------------------------------*/ -/** @addtogroup FDCAN_Exported_Functions - * @{ - */ - -/** @addtogroup FDCAN_Exported_Functions_Group1 - * @{ - */ -/* Initialization and de-initialization functions *****************************/ -HAL_StatusTypeDef HAL_FDCAN_Init(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_DeInit(FDCAN_HandleTypeDef *hfdcan); -void HAL_FDCAN_MspInit(FDCAN_HandleTypeDef *hfdcan); -void HAL_FDCAN_MspDeInit(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_EnterPowerDownMode(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_ExitPowerDownMode(FDCAN_HandleTypeDef *hfdcan); - -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 -/* Callbacks Register/UnRegister functions ***********************************/ -HAL_StatusTypeDef HAL_FDCAN_RegisterCallback(FDCAN_HandleTypeDef *hfdcan, HAL_FDCAN_CallbackIDTypeDef CallbackID, pFDCAN_CallbackTypeDef pCallback); -HAL_StatusTypeDef HAL_FDCAN_UnRegisterCallback(FDCAN_HandleTypeDef *hfdcan, HAL_FDCAN_CallbackIDTypeDef CallbackID); -HAL_StatusTypeDef HAL_FDCAN_RegisterClockCalibrationCallback(FDCAN_HandleTypeDef *hfdcan, pFDCAN_ClockCalibrationCallbackTypeDef pCallback); -HAL_StatusTypeDef HAL_FDCAN_UnRegisterClockCalibrationCallback(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_RegisterTxEventFifoCallback(FDCAN_HandleTypeDef *hfdcan, pFDCAN_TxEventFifoCallbackTypeDef pCallback); -HAL_StatusTypeDef HAL_FDCAN_UnRegisterTxEventFifoCallback(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_RegisterRxFifo0Callback(FDCAN_HandleTypeDef *hfdcan, pFDCAN_RxFifo0CallbackTypeDef pCallback); -HAL_StatusTypeDef HAL_FDCAN_UnRegisterRxFifo0Callback(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_RegisterRxFifo1Callback(FDCAN_HandleTypeDef *hfdcan, pFDCAN_RxFifo1CallbackTypeDef pCallback); -HAL_StatusTypeDef HAL_FDCAN_UnRegisterRxFifo1Callback(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_RegisterTxBufferCompleteCallback(FDCAN_HandleTypeDef *hfdcan, pFDCAN_TxBufferCompleteCallbackTypeDef pCallback); -HAL_StatusTypeDef HAL_FDCAN_UnRegisterTxBufferCompleteCallback(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_RegisterTxBufferAbortCallback(FDCAN_HandleTypeDef *hfdcan, pFDCAN_TxBufferAbortCallbackTypeDef pCallback); -HAL_StatusTypeDef HAL_FDCAN_UnRegisterTxBufferAbortCallback(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_RegisterErrorStatusCallback(FDCAN_HandleTypeDef *hfdcan, pFDCAN_ErrorStatusCallbackTypeDef pCallback); -HAL_StatusTypeDef HAL_FDCAN_UnRegisterErrorStatusCallback(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_RegisterTTScheduleSyncCallback(FDCAN_HandleTypeDef *hfdcan, pFDCAN_TT_ScheduleSyncCallbackTypeDef pCallback); -HAL_StatusTypeDef HAL_FDCAN_UnRegisterTTScheduleSyncCallback(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_RegisterTTTimeMarkCallback(FDCAN_HandleTypeDef *hfdcan, pFDCAN_TT_TimeMarkCallbackTypeDef pCallback); -HAL_StatusTypeDef HAL_FDCAN_UnRegisterTTTimeMarkCallback(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_RegisterTTStopWatchCallback(FDCAN_HandleTypeDef *hfdcan, pFDCAN_TT_StopWatchCallbackTypeDef pCallback); -HAL_StatusTypeDef HAL_FDCAN_UnRegisterTTStopWatchCallback(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_RegisterTTGlobalTimeCallback(FDCAN_HandleTypeDef *hfdcan, pFDCAN_TT_GlobalTimeCallbackTypeDef pCallback); -HAL_StatusTypeDef HAL_FDCAN_UnRegisterTTGlobalTimeCallback(FDCAN_HandleTypeDef *hfdcan); -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ -/** - * @} - */ - -/** @addtogroup FDCAN_Exported_Functions_Group2 - * @{ - */ -/* Configuration functions ****************************************************/ -HAL_StatusTypeDef HAL_FDCAN_ConfigClockCalibration(FDCAN_HandleTypeDef *hfdcan, FDCAN_ClkCalUnitTypeDef *sCcuConfig); -uint32_t HAL_FDCAN_GetClockCalibrationState(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_ResetClockCalibrationState(FDCAN_HandleTypeDef *hfdcan); -uint32_t HAL_FDCAN_GetClockCalibrationCounter(FDCAN_HandleTypeDef *hfdcan, uint32_t Counter); -HAL_StatusTypeDef HAL_FDCAN_ConfigFilter(FDCAN_HandleTypeDef *hfdcan, FDCAN_FilterTypeDef *sFilterConfig); -HAL_StatusTypeDef HAL_FDCAN_ConfigGlobalFilter(FDCAN_HandleTypeDef *hfdcan, uint32_t NonMatchingStd, uint32_t NonMatchingExt, uint32_t RejectRemoteStd, uint32_t RejectRemoteExt); -HAL_StatusTypeDef HAL_FDCAN_ConfigExtendedIdMask(FDCAN_HandleTypeDef *hfdcan, uint32_t Mask); -HAL_StatusTypeDef HAL_FDCAN_ConfigRxFifoOverwrite(FDCAN_HandleTypeDef *hfdcan, uint32_t RxFifo, uint32_t OperationMode); -HAL_StatusTypeDef HAL_FDCAN_ConfigFifoWatermark(FDCAN_HandleTypeDef *hfdcan, uint32_t FIFO, uint32_t Watermark); -HAL_StatusTypeDef HAL_FDCAN_ConfigRamWatchdog(FDCAN_HandleTypeDef *hfdcan, uint32_t CounterStartValue); -HAL_StatusTypeDef HAL_FDCAN_ConfigTimestampCounter(FDCAN_HandleTypeDef *hfdcan, uint32_t TimestampPrescaler); -HAL_StatusTypeDef HAL_FDCAN_EnableTimestampCounter(FDCAN_HandleTypeDef *hfdcan, uint32_t TimestampOperation); -HAL_StatusTypeDef HAL_FDCAN_DisableTimestampCounter(FDCAN_HandleTypeDef *hfdcan); -uint16_t HAL_FDCAN_GetTimestampCounter(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_ResetTimestampCounter(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_ConfigTimeoutCounter(FDCAN_HandleTypeDef *hfdcan, uint32_t TimeoutOperation, uint32_t TimeoutPeriod); -HAL_StatusTypeDef HAL_FDCAN_EnableTimeoutCounter(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_DisableTimeoutCounter(FDCAN_HandleTypeDef *hfdcan); -uint16_t HAL_FDCAN_GetTimeoutCounter(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_ResetTimeoutCounter(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_ConfigTxDelayCompensation(FDCAN_HandleTypeDef *hfdcan, uint32_t TdcOffset, uint32_t TdcFilter); -HAL_StatusTypeDef HAL_FDCAN_EnableTxDelayCompensation(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_DisableTxDelayCompensation(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_EnableISOMode(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_DisableISOMode(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_EnableEdgeFiltering(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_DisableEdgeFiltering(FDCAN_HandleTypeDef *hfdcan); -/** - * @} - */ - -/** @addtogroup FDCAN_Exported_Functions_Group3 - * @{ - */ -/* Control functions **********************************************************/ -HAL_StatusTypeDef HAL_FDCAN_Start(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_Stop(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_AddMessageToTxFifoQ(FDCAN_HandleTypeDef *hfdcan, FDCAN_TxHeaderTypeDef *pTxHeader, uint8_t *pTxData); -HAL_StatusTypeDef HAL_FDCAN_AddMessageToTxBuffer(FDCAN_HandleTypeDef *hfdcan, FDCAN_TxHeaderTypeDef *pTxHeader, uint8_t *pTxData, uint32_t BufferIndex); -HAL_StatusTypeDef HAL_FDCAN_EnableTxBufferRequest(FDCAN_HandleTypeDef *hfdcan, uint32_t BufferIndex); -uint32_t HAL_FDCAN_GetLatestTxFifoQRequestBuffer(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_AbortTxRequest(FDCAN_HandleTypeDef *hfdcan, uint32_t BufferIndex); -HAL_StatusTypeDef HAL_FDCAN_GetRxMessage(FDCAN_HandleTypeDef *hfdcan, uint32_t RxLocation, FDCAN_RxHeaderTypeDef *pRxHeader, uint8_t *pRxData); -HAL_StatusTypeDef HAL_FDCAN_GetTxEvent(FDCAN_HandleTypeDef *hfdcan, FDCAN_TxEventFifoTypeDef *pTxEvent); -HAL_StatusTypeDef HAL_FDCAN_GetHighPriorityMessageStatus(FDCAN_HandleTypeDef *hfdcan, FDCAN_HpMsgStatusTypeDef *HpMsgStatus); -HAL_StatusTypeDef HAL_FDCAN_GetProtocolStatus(FDCAN_HandleTypeDef *hfdcan, FDCAN_ProtocolStatusTypeDef *ProtocolStatus); -HAL_StatusTypeDef HAL_FDCAN_GetErrorCounters(FDCAN_HandleTypeDef *hfdcan, FDCAN_ErrorCountersTypeDef *ErrorCounters); -uint32_t HAL_FDCAN_IsRxBufferMessageAvailable(FDCAN_HandleTypeDef *hfdcan, uint32_t RxBufferIndex); -uint32_t HAL_FDCAN_IsTxBufferMessagePending(FDCAN_HandleTypeDef *hfdcan, uint32_t TxBufferIndex); -uint32_t HAL_FDCAN_GetRxFifoFillLevel(FDCAN_HandleTypeDef *hfdcan, uint32_t RxFifo); -uint32_t HAL_FDCAN_GetTxFifoFreeLevel(FDCAN_HandleTypeDef *hfdcan); -uint32_t HAL_FDCAN_IsRestrictedOperationMode(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_ExitRestrictedOperationMode(FDCAN_HandleTypeDef *hfdcan); -/** - * @} - */ - -/** @addtogroup FDCAN_Exported_Functions_Group4 - * @{ - */ -/* TT Configuration and control functions**************************************/ -HAL_StatusTypeDef HAL_FDCAN_TT_ConfigOperation(FDCAN_HandleTypeDef *hfdcan, FDCAN_TT_ConfigTypeDef *pTTParams); -HAL_StatusTypeDef HAL_FDCAN_TT_ConfigReferenceMessage(FDCAN_HandleTypeDef *hfdcan, uint32_t IdType, uint32_t Identifier, uint32_t Payload); -HAL_StatusTypeDef HAL_FDCAN_TT_ConfigTrigger(FDCAN_HandleTypeDef *hfdcan, FDCAN_TriggerTypeDef *sTriggerConfig); -HAL_StatusTypeDef HAL_FDCAN_TT_SetGlobalTime(FDCAN_HandleTypeDef *hfdcan, uint32_t TimePreset); -HAL_StatusTypeDef HAL_FDCAN_TT_SetClockSynchronization(FDCAN_HandleTypeDef *hfdcan, uint32_t NewTURNumerator); -HAL_StatusTypeDef HAL_FDCAN_TT_ConfigStopWatch(FDCAN_HandleTypeDef *hfdcan, uint32_t Source, uint32_t Polarity); -HAL_StatusTypeDef HAL_FDCAN_TT_ConfigRegisterTimeMark(FDCAN_HandleTypeDef *hfdcan, uint32_t TimeMarkSource, uint32_t TimeMarkValue, uint32_t RepeatFactor, uint32_t StartCycle); -HAL_StatusTypeDef HAL_FDCAN_TT_EnableRegisterTimeMarkPulse(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_TT_DisableRegisterTimeMarkPulse(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_TT_EnableTriggerTimeMarkPulse(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_TT_DisableTriggerTimeMarkPulse(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_TT_EnableHardwareGapControl(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_TT_DisableHardwareGapControl(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_TT_EnableTimeMarkGapControl(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_TT_DisableTimeMarkGapControl(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_TT_SetNextIsGap(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_TT_SetEndOfGap(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_TT_ConfigExternalSyncPhase(FDCAN_HandleTypeDef *hfdcan, uint32_t TargetPhase); -HAL_StatusTypeDef HAL_FDCAN_TT_EnableExternalSynchronization(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_TT_DisableExternalSynchronization(FDCAN_HandleTypeDef *hfdcan); -HAL_StatusTypeDef HAL_FDCAN_TT_GetOperationStatus(FDCAN_HandleTypeDef *hfdcan, FDCAN_TTOperationStatusTypeDef *TTOpStatus); -/** - * @} - */ - -/** @addtogroup FDCAN_Exported_Functions_Group5 - * @{ - */ -/* Interrupts management ******************************************************/ -HAL_StatusTypeDef HAL_FDCAN_ConfigInterruptLines(FDCAN_HandleTypeDef *hfdcan, uint32_t ITList, uint32_t InterruptLine); -HAL_StatusTypeDef HAL_FDCAN_TT_ConfigInterruptLines(FDCAN_HandleTypeDef *hfdcan, uint32_t TTITList, uint32_t InterruptLine); -HAL_StatusTypeDef HAL_FDCAN_ActivateNotification(FDCAN_HandleTypeDef *hfdcan, uint32_t ActiveITs, uint32_t BufferIndexes); -HAL_StatusTypeDef HAL_FDCAN_DeactivateNotification(FDCAN_HandleTypeDef *hfdcan, uint32_t InactiveITs); -HAL_StatusTypeDef HAL_FDCAN_TT_ActivateNotification(FDCAN_HandleTypeDef *hfdcan, uint32_t ActiveTTITs); -HAL_StatusTypeDef HAL_FDCAN_TT_DeactivateNotification(FDCAN_HandleTypeDef *hfdcan, uint32_t InactiveTTITs); -void HAL_FDCAN_IRQHandler(FDCAN_HandleTypeDef *hfdcan); -/** - * @} - */ - -/** @addtogroup FDCAN_Exported_Functions_Group6 - * @{ - */ -/* Callback functions *********************************************************/ -void HAL_FDCAN_ClockCalibrationCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t ClkCalibrationITs); -void HAL_FDCAN_TxEventFifoCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t TxEventFifoITs); -void HAL_FDCAN_RxFifo0Callback(FDCAN_HandleTypeDef *hfdcan, uint32_t RxFifo0ITs); -void HAL_FDCAN_RxFifo1Callback(FDCAN_HandleTypeDef *hfdcan, uint32_t RxFifo1ITs); -void HAL_FDCAN_TxFifoEmptyCallback(FDCAN_HandleTypeDef *hfdcan); -void HAL_FDCAN_TxBufferCompleteCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t BufferIndexes); -void HAL_FDCAN_TxBufferAbortCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t BufferIndexes); -void HAL_FDCAN_RxBufferNewMessageCallback(FDCAN_HandleTypeDef *hfdcan); -void HAL_FDCAN_HighPriorityMessageCallback(FDCAN_HandleTypeDef *hfdcan); -void HAL_FDCAN_TimestampWraparoundCallback(FDCAN_HandleTypeDef *hfdcan); -void HAL_FDCAN_TimeoutOccurredCallback(FDCAN_HandleTypeDef *hfdcan); -void HAL_FDCAN_ErrorCallback(FDCAN_HandleTypeDef *hfdcan); -void HAL_FDCAN_ErrorStatusCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t ErrorStatusITs); -void HAL_FDCAN_TT_ScheduleSyncCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t TTSchedSyncITs); -void HAL_FDCAN_TT_TimeMarkCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t TTTimeMarkITs); -void HAL_FDCAN_TT_StopWatchCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t SWTime, uint32_t SWCycleCount); -void HAL_FDCAN_TT_GlobalTimeCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t TTGlobTimeITs); -/** - * @} - */ - -/** @addtogroup FDCAN_Exported_Functions_Group7 - * @{ - */ -/* Peripheral State functions *************************************************/ -uint32_t HAL_FDCAN_GetError(FDCAN_HandleTypeDef *hfdcan); -HAL_FDCAN_StateTypeDef HAL_FDCAN_GetState(FDCAN_HandleTypeDef *hfdcan); -/** - * @} - */ - -/** - * @} - */ - -/* Private types -------------------------------------------------------------*/ -/** @defgroup FDCAN_Private_Types FDCAN Private Types - * @{ - */ - -/** - * @} - */ - -/* Private variables ---------------------------------------------------------*/ -/** @defgroup FDCAN_Private_Variables FDCAN Private Variables - * @{ - */ - -/** - * @} - */ - -/* Private constants ---------------------------------------------------------*/ -/** @defgroup FDCAN_Private_Constants FDCAN Private Constants - * @{ - */ - -/** - * @} - */ - -/* Private macros ------------------------------------------------------------*/ -/** @defgroup FDCAN_Private_Macros FDCAN Private Macros - * @{ - */ -#define IS_FDCAN_FRAME_FORMAT(FORMAT) (((FORMAT) == FDCAN_FRAME_CLASSIC ) || \ - ((FORMAT) == FDCAN_FRAME_FD_NO_BRS) || \ - ((FORMAT) == FDCAN_FRAME_FD_BRS )) -#define IS_FDCAN_MODE(MODE) (((MODE) == FDCAN_MODE_NORMAL ) || \ - ((MODE) == FDCAN_MODE_RESTRICTED_OPERATION) || \ - ((MODE) == FDCAN_MODE_BUS_MONITORING ) || \ - ((MODE) == FDCAN_MODE_INTERNAL_LOOPBACK ) || \ - ((MODE) == FDCAN_MODE_EXTERNAL_LOOPBACK )) - -#define IS_FDCAN_CLOCK_CALIBRATION(CALIBRATION) (((CALIBRATION) == FDCAN_CLOCK_CALIBRATION_DISABLE) || \ - ((CALIBRATION) == FDCAN_CLOCK_CALIBRATION_ENABLE )) - -#define IS_FDCAN_CKDIV(CKDIV) (((CKDIV) == FDCAN_CLOCK_DIV1 ) || \ - ((CKDIV) == FDCAN_CLOCK_DIV2 ) || \ - ((CKDIV) == FDCAN_CLOCK_DIV4 ) || \ - ((CKDIV) == FDCAN_CLOCK_DIV6 ) || \ - ((CKDIV) == FDCAN_CLOCK_DIV8 ) || \ - ((CKDIV) == FDCAN_CLOCK_DIV10) || \ - ((CKDIV) == FDCAN_CLOCK_DIV12) || \ - ((CKDIV) == FDCAN_CLOCK_DIV14) || \ - ((CKDIV) == FDCAN_CLOCK_DIV16) || \ - ((CKDIV) == FDCAN_CLOCK_DIV18) || \ - ((CKDIV) == FDCAN_CLOCK_DIV20) || \ - ((CKDIV) == FDCAN_CLOCK_DIV22) || \ - ((CKDIV) == FDCAN_CLOCK_DIV24) || \ - ((CKDIV) == FDCAN_CLOCK_DIV26) || \ - ((CKDIV) == FDCAN_CLOCK_DIV28) || \ - ((CKDIV) == FDCAN_CLOCK_DIV30)) -#define IS_FDCAN_NOMINAL_PRESCALER(PRESCALER) (((PRESCALER) >= 1U) && ((PRESCALER) <= 512U)) -#define IS_FDCAN_NOMINAL_SJW(SJW) (((SJW) >= 1U) && ((SJW) <= 128U)) -#define IS_FDCAN_NOMINAL_TSEG1(TSEG1) (((TSEG1) >= 1U) && ((TSEG1) <= 256U)) -#define IS_FDCAN_NOMINAL_TSEG2(TSEG2) (((TSEG2) >= 1U) && ((TSEG2) <= 128U)) -#define IS_FDCAN_DATA_PRESCALER(PRESCALER) (((PRESCALER) >= 1U) && ((PRESCALER) <= 32U)) -#define IS_FDCAN_DATA_SJW(SJW) (((SJW) >= 1U) && ((SJW) <= 16U)) -#define IS_FDCAN_DATA_TSEG1(TSEG1) (((TSEG1) >= 1U) && ((TSEG1) <= 32U)) -#define IS_FDCAN_DATA_TSEG2(TSEG2) (((TSEG2) >= 1U) && ((TSEG2) <= 16U)) -#define IS_FDCAN_MAX_VALUE(VALUE, MAX) ((VALUE) <= (MAX)) -#define IS_FDCAN_MIN_VALUE(VALUE, MIN) ((VALUE) >= (MIN)) -#define IS_FDCAN_DATA_SIZE(SIZE) (((SIZE) == FDCAN_DATA_BYTES_8 ) || \ - ((SIZE) == FDCAN_DATA_BYTES_12) || \ - ((SIZE) == FDCAN_DATA_BYTES_16) || \ - ((SIZE) == FDCAN_DATA_BYTES_20) || \ - ((SIZE) == FDCAN_DATA_BYTES_24) || \ - ((SIZE) == FDCAN_DATA_BYTES_32) || \ - ((SIZE) == FDCAN_DATA_BYTES_48) || \ - ((SIZE) == FDCAN_DATA_BYTES_64)) -#define IS_FDCAN_TX_FIFO_QUEUE_MODE(MODE) (((MODE) == FDCAN_TX_FIFO_OPERATION ) || \ - ((MODE) == FDCAN_TX_QUEUE_OPERATION)) -#define IS_FDCAN_ID_TYPE(ID_TYPE) (((ID_TYPE) == FDCAN_STANDARD_ID) || \ - ((ID_TYPE) == FDCAN_EXTENDED_ID)) -#define IS_FDCAN_FILTER_CFG(CONFIG) (((CONFIG) == FDCAN_FILTER_DISABLE ) || \ - ((CONFIG) == FDCAN_FILTER_TO_RXFIFO0 ) || \ - ((CONFIG) == FDCAN_FILTER_TO_RXFIFO1 ) || \ - ((CONFIG) == FDCAN_FILTER_REJECT ) || \ - ((CONFIG) == FDCAN_FILTER_HP ) || \ - ((CONFIG) == FDCAN_FILTER_TO_RXFIFO0_HP) || \ - ((CONFIG) == FDCAN_FILTER_TO_RXFIFO1_HP) || \ - ((CONFIG) == FDCAN_FILTER_TO_RXBUFFER )) -#define IS_FDCAN_TX_LOCATION(LOCATION) (((LOCATION) == FDCAN_TX_BUFFER0 ) || ((LOCATION) == FDCAN_TX_BUFFER1 ) || \ - ((LOCATION) == FDCAN_TX_BUFFER2 ) || ((LOCATION) == FDCAN_TX_BUFFER3 ) || \ - ((LOCATION) == FDCAN_TX_BUFFER4 ) || ((LOCATION) == FDCAN_TX_BUFFER5 ) || \ - ((LOCATION) == FDCAN_TX_BUFFER6 ) || ((LOCATION) == FDCAN_TX_BUFFER7 ) || \ - ((LOCATION) == FDCAN_TX_BUFFER8 ) || ((LOCATION) == FDCAN_TX_BUFFER9 ) || \ - ((LOCATION) == FDCAN_TX_BUFFER10) || ((LOCATION) == FDCAN_TX_BUFFER11) || \ - ((LOCATION) == FDCAN_TX_BUFFER12) || ((LOCATION) == FDCAN_TX_BUFFER13) || \ - ((LOCATION) == FDCAN_TX_BUFFER14) || ((LOCATION) == FDCAN_TX_BUFFER15) || \ - ((LOCATION) == FDCAN_TX_BUFFER16) || ((LOCATION) == FDCAN_TX_BUFFER17) || \ - ((LOCATION) == FDCAN_TX_BUFFER18) || ((LOCATION) == FDCAN_TX_BUFFER19) || \ - ((LOCATION) == FDCAN_TX_BUFFER20) || ((LOCATION) == FDCAN_TX_BUFFER21) || \ - ((LOCATION) == FDCAN_TX_BUFFER22) || ((LOCATION) == FDCAN_TX_BUFFER23) || \ - ((LOCATION) == FDCAN_TX_BUFFER24) || ((LOCATION) == FDCAN_TX_BUFFER25) || \ - ((LOCATION) == FDCAN_TX_BUFFER26) || ((LOCATION) == FDCAN_TX_BUFFER27) || \ - ((LOCATION) == FDCAN_TX_BUFFER28) || ((LOCATION) == FDCAN_TX_BUFFER29) || \ - ((LOCATION) == FDCAN_TX_BUFFER30) || ((LOCATION) == FDCAN_TX_BUFFER31)) -#define IS_FDCAN_RX_FIFO(FIFO) (((FIFO) == FDCAN_RX_FIFO0) || \ - ((FIFO) == FDCAN_RX_FIFO1)) -#define IS_FDCAN_RX_FIFO_MODE(MODE) (((MODE) == FDCAN_RX_FIFO_BLOCKING ) || \ - ((MODE) == FDCAN_RX_FIFO_OVERWRITE)) -#define IS_FDCAN_STD_FILTER_TYPE(TYPE) (((TYPE) == FDCAN_FILTER_RANGE) || \ - ((TYPE) == FDCAN_FILTER_DUAL ) || \ - ((TYPE) == FDCAN_FILTER_MASK )) -#define IS_FDCAN_EXT_FILTER_TYPE(TYPE) (((TYPE) == FDCAN_FILTER_RANGE ) || \ - ((TYPE) == FDCAN_FILTER_DUAL ) || \ - ((TYPE) == FDCAN_FILTER_MASK ) || \ - ((TYPE) == FDCAN_FILTER_RANGE_NO_EIDM)) -#define IS_FDCAN_FRAME_TYPE(TYPE) (((TYPE) == FDCAN_DATA_FRAME ) || \ - ((TYPE) == FDCAN_REMOTE_FRAME)) -#define IS_FDCAN_DLC(DLC) (((DLC) == FDCAN_DLC_BYTES_0 ) || \ - ((DLC) == FDCAN_DLC_BYTES_1 ) || \ - ((DLC) == FDCAN_DLC_BYTES_2 ) || \ - ((DLC) == FDCAN_DLC_BYTES_3 ) || \ - ((DLC) == FDCAN_DLC_BYTES_4 ) || \ - ((DLC) == FDCAN_DLC_BYTES_5 ) || \ - ((DLC) == FDCAN_DLC_BYTES_6 ) || \ - ((DLC) == FDCAN_DLC_BYTES_7 ) || \ - ((DLC) == FDCAN_DLC_BYTES_8 ) || \ - ((DLC) == FDCAN_DLC_BYTES_12) || \ - ((DLC) == FDCAN_DLC_BYTES_16) || \ - ((DLC) == FDCAN_DLC_BYTES_20) || \ - ((DLC) == FDCAN_DLC_BYTES_24) || \ - ((DLC) == FDCAN_DLC_BYTES_32) || \ - ((DLC) == FDCAN_DLC_BYTES_48) || \ - ((DLC) == FDCAN_DLC_BYTES_64)) -#define IS_FDCAN_ESI(ESI) (((ESI) == FDCAN_ESI_ACTIVE ) || \ - ((ESI) == FDCAN_ESI_PASSIVE)) -#define IS_FDCAN_BRS(BRS) (((BRS) == FDCAN_BRS_OFF) || \ - ((BRS) == FDCAN_BRS_ON )) -#define IS_FDCAN_FDF(FDF) (((FDF) == FDCAN_CLASSIC_CAN) || \ - ((FDF) == FDCAN_FD_CAN )) -#define IS_FDCAN_EFC(EFC) (((EFC) == FDCAN_NO_TX_EVENTS ) || \ - ((EFC) == FDCAN_STORE_TX_EVENTS)) -#define IS_FDCAN_IT(IT) (((IT) & ~(FDCAN_IR_MASK | CCU_IR_MASK)) == 0U) -#define IS_FDCAN_TT_IT(IT) (((IT) & 0xFFF80000U) == 0U) -#define IS_FDCAN_FIFO_WATERMARK(FIFO) (((FIFO) == FDCAN_CFG_TX_EVENT_FIFO) || \ - ((FIFO) == FDCAN_CFG_RX_FIFO0 ) || \ - ((FIFO) == FDCAN_CFG_RX_FIFO1 )) -#define IS_FDCAN_NON_MATCHING(DESTINATION) (((DESTINATION) == FDCAN_ACCEPT_IN_RX_FIFO0) || \ - ((DESTINATION) == FDCAN_ACCEPT_IN_RX_FIFO1) || \ - ((DESTINATION) == FDCAN_REJECT )) -#define IS_FDCAN_REJECT_REMOTE(DESTINATION) (((DESTINATION) == FDCAN_FILTER_REMOTE) || \ - ((DESTINATION) == FDCAN_REJECT_REMOTE)) -#define IS_FDCAN_IT_LINE(IT_LINE) (((IT_LINE) == FDCAN_INTERRUPT_LINE0) || \ - ((IT_LINE) == FDCAN_INTERRUPT_LINE1)) -#define IS_FDCAN_TIMESTAMP(OPERATION) (((OPERATION) == FDCAN_TIMESTAMP_INTERNAL) || \ - ((OPERATION) == FDCAN_TIMESTAMP_EXTERNAL)) -#define IS_FDCAN_TIMESTAMP_PRESCALER(PRESCALER) (((PRESCALER) == FDCAN_TIMESTAMP_PRESC_1 ) || \ - ((PRESCALER) == FDCAN_TIMESTAMP_PRESC_2 ) || \ - ((PRESCALER) == FDCAN_TIMESTAMP_PRESC_3 ) || \ - ((PRESCALER) == FDCAN_TIMESTAMP_PRESC_4 ) || \ - ((PRESCALER) == FDCAN_TIMESTAMP_PRESC_5 ) || \ - ((PRESCALER) == FDCAN_TIMESTAMP_PRESC_6 ) || \ - ((PRESCALER) == FDCAN_TIMESTAMP_PRESC_7 ) || \ - ((PRESCALER) == FDCAN_TIMESTAMP_PRESC_8 ) || \ - ((PRESCALER) == FDCAN_TIMESTAMP_PRESC_9 ) || \ - ((PRESCALER) == FDCAN_TIMESTAMP_PRESC_10) || \ - ((PRESCALER) == FDCAN_TIMESTAMP_PRESC_11) || \ - ((PRESCALER) == FDCAN_TIMESTAMP_PRESC_12) || \ - ((PRESCALER) == FDCAN_TIMESTAMP_PRESC_13) || \ - ((PRESCALER) == FDCAN_TIMESTAMP_PRESC_14) || \ - ((PRESCALER) == FDCAN_TIMESTAMP_PRESC_15) || \ - ((PRESCALER) == FDCAN_TIMESTAMP_PRESC_16)) -#define IS_FDCAN_TIMEOUT(OPERATION) (((OPERATION) == FDCAN_TIMEOUT_CONTINUOUS ) || \ - ((OPERATION) == FDCAN_TIMEOUT_TX_EVENT_FIFO) || \ - ((OPERATION) == FDCAN_TIMEOUT_RX_FIFO0 ) || \ - ((OPERATION) == FDCAN_TIMEOUT_RX_FIFO1 )) -#define IS_FDCAN_CALIBRATION_FIELD_LENGTH(LENGTH) (((LENGTH) == FDCAN_CALIB_FIELD_LENGTH_32) || \ - ((LENGTH) == FDCAN_CALIB_FIELD_LENGTH_64)) -#define IS_FDCAN_CALIBRATION_COUNTER(COUNTER) (((COUNTER) == FDCAN_CALIB_TIME_QUANTA_COUNTER ) || \ - ((COUNTER) == FDCAN_CALIB_CLOCK_PERIOD_COUNTER) || \ - ((COUNTER) == FDCAN_CALIB_WATCHDOG_COUNTER )) -#define IS_FDCAN_TT_REFERENCE_MESSAGE_PAYLOAD(PAYLOAD) (((PAYLOAD) == FDCAN_TT_REF_MESSAGE_NO_PAYLOAD ) || \ - ((PAYLOAD) == FDCAN_TT_REF_MESSAGE_ADD_PAYLOAD)) -#define IS_FDCAN_TT_REPEAT_FACTOR(FACTOR) (((FACTOR) == FDCAN_TT_REPEAT_EVERY_CYCLE ) || \ - ((FACTOR) == FDCAN_TT_REPEAT_EVERY_2ND_CYCLE ) || \ - ((FACTOR) == FDCAN_TT_REPEAT_EVERY_4TH_CYCLE ) || \ - ((FACTOR) == FDCAN_TT_REPEAT_EVERY_8TH_CYCLE ) || \ - ((FACTOR) == FDCAN_TT_REPEAT_EVERY_16TH_CYCLE) || \ - ((FACTOR) == FDCAN_TT_REPEAT_EVERY_32ND_CYCLE) || \ - ((FACTOR) == FDCAN_TT_REPEAT_EVERY_64TH_CYCLE)) -#define IS_FDCAN_TT_TRIGGER_TYPE(TYPE) (((TYPE) == FDCAN_TT_TX_REF_TRIGGER ) || \ - ((TYPE) == FDCAN_TT_TX_REF_TRIGGER_GAP ) || \ - ((TYPE) == FDCAN_TT_TX_TRIGGER_SINGLE ) || \ - ((TYPE) == FDCAN_TT_TX_TRIGGER_CONTINUOUS ) || \ - ((TYPE) == FDCAN_TT_TX_TRIGGER_ARBITRATION) || \ - ((TYPE) == FDCAN_TT_TX_TRIGGER_MERGED ) || \ - ((TYPE) == FDCAN_TT_WATCH_TRIGGER ) || \ - ((TYPE) == FDCAN_TT_WATCH_TRIGGER_GAP ) || \ - ((TYPE) == FDCAN_TT_RX_TRIGGER ) || \ - ((TYPE) == FDCAN_TT_TIME_BASE_TRIGGER ) || \ - ((TYPE) == FDCAN_TT_END_OF_LIST )) -#define IS_FDCAN_TT_TM_EVENT_INTERNAL(EVENT) (((EVENT) == FDCAN_TT_TM_NO_INTERNAL_EVENT ) || \ - ((EVENT) == FDCAN_TT_TM_GEN_INTERNAL_EVENT)) -#define IS_FDCAN_TT_TM_EVENT_EXTERNAL(EVENT) (((EVENT) == FDCAN_TT_TM_NO_EXTERNAL_EVENT ) || \ - ((EVENT) == FDCAN_TT_TM_GEN_EXTERNAL_EVENT)) -#define IS_FDCAN_OPERATION_MODE(MODE) (((MODE) == FDCAN_TT_COMMUNICATION_LEVEL1 ) || \ - ((MODE) == FDCAN_TT_COMMUNICATION_LEVEL2 ) || \ - ((MODE) == FDCAN_TT_COMMUNICATION_LEVEL0 )) -#define IS_FDCAN_TT_OPERATION(OPERATION) (((OPERATION) == FDCAN_STRICTLY_TT_OPERATION ) || \ - ((OPERATION) == FDCAN_EXT_EVT_SYNC_TT_OPERATION)) -#define IS_FDCAN_TT_TIME_MASTER(FUNCTION) (((FUNCTION) == FDCAN_TT_SLAVE ) || \ - ((FUNCTION) == FDCAN_TT_POTENTIAL_MASTER)) -#define IS_FDCAN_TT_EXTERNAL_CLK_SYNC(SYNC) (((SYNC) == FDCAN_TT_EXT_CLK_SYNC_DISABLE) || \ - ((SYNC) == FDCAN_TT_EXT_CLK_SYNC_ENABLE )) -#define IS_FDCAN_TT_GLOBAL_TIME_FILTERING(FILTERING) (((FILTERING) == FDCAN_TT_GLOB_TIME_FILT_DISABLE) || \ - ((FILTERING) == FDCAN_TT_GLOB_TIME_FILT_ENABLE )) -#define IS_FDCAN_TT_AUTO_CLK_CALIBRATION(CALIBRATION) (((CALIBRATION) == FDCAN_TT_AUTO_CLK_CALIB_DISABLE) || \ - ((CALIBRATION) == FDCAN_TT_AUTO_CLK_CALIB_ENABLE )) -#define IS_FDCAN_TT_EVENT_TRIGGER_POLARITY(POLARITY) (((POLARITY) == FDCAN_TT_EVT_TRIG_POL_RISING ) || \ - ((POLARITY) == FDCAN_TT_EVT_TRIG_POL_FALLING)) -#define IS_FDCAN_TT_BASIC_CYCLES_NUMBER(NUMBER) (((NUMBER) == FDCAN_TT_CYCLES_PER_MATRIX_1 ) || \ - ((NUMBER) == FDCAN_TT_CYCLES_PER_MATRIX_2 ) || \ - ((NUMBER) == FDCAN_TT_CYCLES_PER_MATRIX_4 ) || \ - ((NUMBER) == FDCAN_TT_CYCLES_PER_MATRIX_8 ) || \ - ((NUMBER) == FDCAN_TT_CYCLES_PER_MATRIX_16) || \ - ((NUMBER) == FDCAN_TT_CYCLES_PER_MATRIX_32) || \ - ((NUMBER) == FDCAN_TT_CYCLES_PER_MATRIX_64)) -#define IS_FDCAN_TT_CYCLE_START_SYNC(SYNC) (((SYNC) == FDCAN_TT_NO_SYNC_PULSE ) || \ - ((SYNC) == FDCAN_TT_SYNC_BASIC_CYCLE_START) || \ - ((SYNC) == FDCAN_TT_SYNC_MATRIX_START )) -#define IS_FDCAN_TT_TX_ENABLE_WINDOW(NTU) (((NTU) >= 1U) && ((NTU) <= 16U)) -#define IS_FDCAN_TT_TUR_NUMERATOR(NUMERATOR) (((NUMERATOR) >= 0x10000U) && ((NUMERATOR) <= 0x1FFFFU)) -#define IS_FDCAN_TT_TUR_DENOMINATOR(DENOMINATOR) (((DENOMINATOR) >= 0x0001U) && ((DENOMINATOR) <= 0x3FFFU)) -#define IS_FDCAN_TT_TUR_LEVEL_1(NC,DC) ((NC) >= (4U * (DC))) -#define IS_FDCAN_TT_TUR_LEVEL_0_2(NC,DC) ((NC) >= (8U * (DC))) -#define IS_FDCAN_TT_STOP_WATCH_TRIGGER(TRIGGER) (((TRIGGER) == FDCAN_TT_STOP_WATCH_TRIGGER_0) || \ - ((TRIGGER) == FDCAN_TT_STOP_WATCH_TRIGGER_1) || \ - ((TRIGGER) == FDCAN_TT_STOP_WATCH_TRIGGER_2) || \ - ((TRIGGER) == FDCAN_TT_STOP_WATCH_TRIGGER_3)) -#define IS_FDCAN_TT_EVENT_TRIGGER(TRIGGER) (((TRIGGER) == FDCAN_TT_EVENT_TRIGGER_0) || \ - ((TRIGGER) == FDCAN_TT_EVENT_TRIGGER_1) || \ - ((TRIGGER) == FDCAN_TT_EVENT_TRIGGER_2) || \ - ((TRIGGER) == FDCAN_TT_EVENT_TRIGGER_3)) -#define IS_FDCAN_TT_TIME_PRESET(TIME) (((TIME) <= 0xFFFFU) && ((TIME) != 0x8000U)) -#define IS_FDCAN_TT_STOP_WATCH_SOURCE(SOURCE) (((SOURCE) == FDCAN_TT_STOP_WATCH_DISABLED ) || \ - ((SOURCE) == FDCAN_TT_STOP_WATCH_CYCLE_TIME ) || \ - ((SOURCE) == FDCAN_TT_STOP_WATCH_LOCAL_TIME ) || \ - ((SOURCE) == FDCAN_TT_STOP_WATCH_GLOBAL_TIME)) -#define IS_FDCAN_TT_STOP_WATCH_POLARITY(POLARITY) (((POLARITY) == FDCAN_TT_STOP_WATCH_RISING ) || \ - ((POLARITY) == FDCAN_TT_STOP_WATCH_FALLING)) -#define IS_FDCAN_TT_REGISTER_TIME_MARK_SOURCE(SOURCE) (((SOURCE) == FDCAN_TT_REG_TIMEMARK_DIABLED ) || \ - ((SOURCE) == FDCAN_TT_REG_TIMEMARK_CYC_TIME) || \ - ((SOURCE) == FDCAN_TT_REG_TIMEMARK_LOC_TIME) || \ - ((SOURCE) == FDCAN_TT_REG_TIMEMARK_GLO_TIME)) - -#define FDCAN_CHECK_IT_SOURCE(__IE__, __IT__) ((((__IE__) & (__IT__)) == (__IT__)) ? SET : RESET) - -#define FDCAN_CHECK_FLAG(__IR__, __FLAG__) ((((__IR__) & (__FLAG__)) == (__FLAG__)) ? SET : RESET) -/** - * @} - */ - -/* Private functions prototypes ----------------------------------------------*/ -/** @defgroup FDCAN_Private_Functions_Prototypes FDCAN Private Functions Prototypes - * @{ - */ - -/** - * @} - */ - -/* Private functions ---------------------------------------------------------*/ -/** @defgroup FDCAN_Private_Functions FDCAN Private Functions - * @{ - */ - -/** - * @} - */ -/** - * @} - */ - -/** - * @} - */ -#endif /* FDCAN1 */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_HAL_FDCAN_H */ - - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h deleted file mode 100644 index a4773b5..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h +++ /dev/null @@ -1,861 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_flash.h - * @author MCD Application Team - * @brief Header file of FLASH HAL module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file in - * the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_HAL_FLASH_H -#define STM32H7xx_HAL_FLASH_H - -#ifdef __cplusplus - extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal_def.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @addtogroup FLASH - * @{ - */ - -/* Exported types ------------------------------------------------------------*/ -/** @defgroup FLASH_Exported_Types FLASH Exported Types - * @{ - */ - -/** - * @brief FLASH Procedure structure definition - */ -typedef enum -{ - FLASH_PROC_NONE = 0U, - FLASH_PROC_SECTERASE_BANK1, - FLASH_PROC_MASSERASE_BANK1, - FLASH_PROC_PROGRAM_BANK1, - FLASH_PROC_SECTERASE_BANK2, - FLASH_PROC_MASSERASE_BANK2, - FLASH_PROC_PROGRAM_BANK2, - FLASH_PROC_ALLBANK_MASSERASE -} FLASH_ProcedureTypeDef; - - -/** - * @brief FLASH handle Structure definition - */ -typedef struct -{ - __IO FLASH_ProcedureTypeDef ProcedureOnGoing; /*!< Internal variable to indicate which procedure is ongoing or not in IT context */ - - __IO uint32_t NbSectorsToErase; /*!< Internal variable to save the remaining sectors to erase in IT context */ - - __IO uint32_t VoltageForErase; /*!< Internal variable to provide voltage range selected by user in IT context */ - - __IO uint32_t Sector; /*!< Internal variable to define the current sector which is erasing */ - - __IO uint32_t Address; /*!< Internal variable to save address selected for program */ - - HAL_LockTypeDef Lock; /*!< FLASH locking object */ - - __IO uint32_t ErrorCode; /*!< FLASH error code */ - -}FLASH_ProcessTypeDef; - -/** - * @} - */ - -/* Exported constants --------------------------------------------------------*/ -/** @defgroup FLASH_Exported_Constants FLASH Exported Constants - * @{ - */ - -/** @defgroup FLASH_Error_Code FLASH Error Code - * @brief FLASH Error Code - * @{ - */ -#define HAL_FLASH_ERROR_NONE 0x00000000U /*!< No error */ - -#define HAL_FLASH_ERROR_WRP FLASH_FLAG_WRPERR /*!< Write Protection Error */ -#define HAL_FLASH_ERROR_PGS FLASH_FLAG_PGSERR /*!< Program Sequence Error */ -#define HAL_FLASH_ERROR_STRB FLASH_FLAG_STRBERR /*!< Strobe Error */ -#define HAL_FLASH_ERROR_INC FLASH_FLAG_INCERR /*!< Inconsistency Error */ -#if defined (FLASH_SR_OPERR) -#define HAL_FLASH_ERROR_OPE FLASH_FLAG_OPERR /*!< Operation Error */ -#endif /* FLASH_SR_OPERR */ -#define HAL_FLASH_ERROR_RDP FLASH_FLAG_RDPERR /*!< Read Protection Error */ -#define HAL_FLASH_ERROR_RDS FLASH_FLAG_RDSERR /*!< Read Secured Error */ -#define HAL_FLASH_ERROR_SNECC FLASH_FLAG_SNECCERR /*!< ECC Single Correction Error */ -#define HAL_FLASH_ERROR_DBECC FLASH_FLAG_DBECCERR /*!< ECC Double Detection Error */ -#define HAL_FLASH_ERROR_CRCRD FLASH_FLAG_CRCRDERR /*!< CRC Read Error */ - -#define HAL_FLASH_ERROR_WRP_BANK1 FLASH_FLAG_WRPERR_BANK1 /*!< Write Protection Error on Bank 1 */ -#define HAL_FLASH_ERROR_PGS_BANK1 FLASH_FLAG_PGSERR_BANK1 /*!< Program Sequence Error on Bank 1 */ -#define HAL_FLASH_ERROR_STRB_BANK1 FLASH_FLAG_STRBERR_BANK1 /*!< Strobe Error on Bank 1 */ -#define HAL_FLASH_ERROR_INC_BANK1 FLASH_FLAG_INCERR_BANK1 /*!< Inconsistency Error on Bank 1 */ -#if defined (FLASH_SR_OPERR) -#define HAL_FLASH_ERROR_OPE_BANK1 FLASH_FLAG_OPERR_BANK1 /*!< Operation Error on Bank 1 */ -#endif /* FLASH_SR_OPERR */ -#define HAL_FLASH_ERROR_RDP_BANK1 FLASH_FLAG_RDPERR_BANK1 /*!< Read Protection Error on Bank 1 */ -#define HAL_FLASH_ERROR_RDS_BANK1 FLASH_FLAG_RDSERR_BANK1 /*!< Read Secured Error on Bank 1 */ -#define HAL_FLASH_ERROR_SNECC_BANK1 FLASH_FLAG_SNECCERR_BANK1 /*!< ECC Single Correction Error on Bank 1 */ -#define HAL_FLASH_ERROR_DBECC_BANK1 FLASH_FLAG_DBECCERR_BANK1 /*!< ECC Double Detection Error on Bank 1 */ -#define HAL_FLASH_ERROR_CRCRD_BANK1 FLASH_FLAG_CRCRDERR_BANK1 /*!< CRC Read Error on Bank1 */ - -#define HAL_FLASH_ERROR_WRP_BANK2 FLASH_FLAG_WRPERR_BANK2 /*!< Write Protection Error on Bank 2 */ -#define HAL_FLASH_ERROR_PGS_BANK2 FLASH_FLAG_PGSERR_BANK2 /*!< Program Sequence Error on Bank 2 */ -#define HAL_FLASH_ERROR_STRB_BANK2 FLASH_FLAG_STRBERR_BANK2 /*!< Strobe Error on Bank 2 */ -#define HAL_FLASH_ERROR_INC_BANK2 FLASH_FLAG_INCERR_BANK2 /*!< Inconsistency Error on Bank 2 */ -#if defined (FLASH_SR_OPERR) -#define HAL_FLASH_ERROR_OPE_BANK2 FLASH_FLAG_OPERR_BANK2 /*!< Operation Error on Bank 2 */ -#endif /* FLASH_SR_OPERR */ -#define HAL_FLASH_ERROR_RDP_BANK2 FLASH_FLAG_RDPERR_BANK2 /*!< Read Protection Error on Bank 2 */ -#define HAL_FLASH_ERROR_RDS_BANK2 FLASH_FLAG_RDSERR_BANK2 /*!< Read Secured Error on Bank 2 */ -#define HAL_FLASH_ERROR_SNECC_BANK2 FLASH_FLAG_SNECCERR_BANK2 /*!< ECC Single Correction Error on Bank 2 */ -#define HAL_FLASH_ERROR_DBECC_BANK2 FLASH_FLAG_DBECCERR_BANK2 /*!< ECC Double Detection Error on Bank 2 */ -#define HAL_FLASH_ERROR_CRCRD_BANK2 FLASH_FLAG_CRCRDERR_BANK2 /*!< CRC Read Error on Bank2 */ - -#define HAL_FLASH_ERROR_OB_CHANGE FLASH_OPTSR_OPTCHANGEERR /*!< Option Byte Change Error */ -/** - * @} - */ - -/** @defgroup FLASH_Type_Program FLASH Type Program - * @{ - */ -#define FLASH_TYPEPROGRAM_FLASHWORD 0x01U /*!< Program a flash word at a specified address */ -#if defined (FLASH_OPTCR_PG_OTP) -#define FLASH_TYPEPROGRAM_OTPWORD 0x02U /*!< Program an OTP word at a specified address */ -#endif /* FLASH_OPTCR_PG_OTP */ -/** - * @} - */ - -/** @defgroup FLASH_Flag_definition FLASH Flag definition - * @brief Flag definition - * @{ - */ -#define FLASH_FLAG_BSY FLASH_SR_BSY /*!< FLASH Busy flag */ -#define FLASH_FLAG_WBNE FLASH_SR_WBNE /*!< Write Buffer Not Empty flag */ -#define FLASH_FLAG_QW FLASH_SR_QW /*!< Wait Queue on flag */ -#define FLASH_FLAG_CRC_BUSY FLASH_SR_CRC_BUSY /*!< CRC Busy flag */ -#define FLASH_FLAG_EOP FLASH_SR_EOP /*!< End Of Program on flag */ -#define FLASH_FLAG_WRPERR FLASH_SR_WRPERR /*!< Write Protection Error on flag */ -#define FLASH_FLAG_PGSERR FLASH_SR_PGSERR /*!< Program Sequence Error on flag */ -#define FLASH_FLAG_STRBERR FLASH_SR_STRBERR /*!< Strobe Error flag */ -#define FLASH_FLAG_INCERR FLASH_SR_INCERR /*!< Inconsistency Error on flag */ -#if defined (FLASH_SR_OPERR) -#define FLASH_FLAG_OPERR FLASH_SR_OPERR /*!< Operation Error on flag */ -#endif /* FLASH_SR_OPERR */ -#define FLASH_FLAG_RDPERR FLASH_SR_RDPERR /*!< Read Protection Error on flag */ -#define FLASH_FLAG_RDSERR FLASH_SR_RDSERR /*!< Read Secured Error on flag */ -#define FLASH_FLAG_SNECCERR FLASH_SR_SNECCERR /*!< Single ECC Error Correction on flag */ -#define FLASH_FLAG_DBECCERR FLASH_SR_DBECCERR /*!< Double Detection ECC Error on flag */ -#define FLASH_FLAG_CRCEND FLASH_SR_CRCEND /*!< CRC End of Calculation flag */ -#define FLASH_FLAG_CRCRDERR FLASH_SR_CRCRDERR /*!< CRC Read Error on bank flag */ - -#define FLASH_FLAG_BSY_BANK1 FLASH_SR_BSY /*!< FLASH Bank 1 Busy flag */ -#define FLASH_FLAG_WBNE_BANK1 FLASH_SR_WBNE /*!< Write Buffer Not Empty on Bank 1 flag */ -#define FLASH_FLAG_QW_BANK1 FLASH_SR_QW /*!< Wait Queue on Bank 1 flag */ -#define FLASH_FLAG_CRC_BUSY_BANK1 FLASH_SR_CRC_BUSY /*!< CRC Busy on Bank 1 flag */ -#define FLASH_FLAG_EOP_BANK1 FLASH_SR_EOP /*!< End Of Program on Bank 1 flag */ -#define FLASH_FLAG_WRPERR_BANK1 FLASH_SR_WRPERR /*!< Write Protection Error on Bank 1 flag */ -#define FLASH_FLAG_PGSERR_BANK1 FLASH_SR_PGSERR /*!< Program Sequence Error on Bank 1 flag */ -#define FLASH_FLAG_STRBERR_BANK1 FLASH_SR_STRBERR /*!< Strobe Error on Bank 1 flag */ -#define FLASH_FLAG_INCERR_BANK1 FLASH_SR_INCERR /*!< Inconsistency Error on Bank 1 flag */ -#if defined (FLASH_SR_OPERR) -#define FLASH_FLAG_OPERR_BANK1 FLASH_SR_OPERR /*!< Operation Error on Bank 1 flag */ -#endif /* FLASH_SR_OPERR */ -#define FLASH_FLAG_RDPERR_BANK1 FLASH_SR_RDPERR /*!< Read Protection Error on Bank 1 flag */ -#define FLASH_FLAG_RDSERR_BANK1 FLASH_SR_RDSERR /*!< Read Secured Error on Bank 1 flag */ -#define FLASH_FLAG_SNECCERR_BANK1 FLASH_SR_SNECCERR /*!< Single ECC Error Correction on Bank 1 flag */ -#define FLASH_FLAG_DBECCERR_BANK1 FLASH_SR_DBECCERR /*!< Double Detection ECC Error on Bank 1 flag */ -#define FLASH_FLAG_CRCEND_BANK1 FLASH_SR_CRCEND /*!< CRC End of Calculation on Bank 1 flag */ -#define FLASH_FLAG_CRCRDERR_BANK1 FLASH_SR_CRCRDERR /*!< CRC Read error on Bank 1 flag */ - -#if defined (FLASH_SR_OPERR) -#define FLASH_FLAG_ALL_ERRORS_BANK1 (FLASH_FLAG_WRPERR_BANK1 | FLASH_FLAG_PGSERR_BANK1 | \ - FLASH_FLAG_STRBERR_BANK1 | FLASH_FLAG_INCERR_BANK1 | \ - FLASH_FLAG_OPERR_BANK1 | FLASH_FLAG_RDPERR_BANK1 | \ - FLASH_FLAG_RDSERR_BANK1 | FLASH_FLAG_SNECCERR_BANK1 | \ - FLASH_FLAG_DBECCERR_BANK1 | FLASH_FLAG_CRCRDERR_BANK1) /*!< All Bank 1 error flags */ -#else -#define FLASH_FLAG_ALL_ERRORS_BANK1 (FLASH_FLAG_WRPERR_BANK1 | FLASH_FLAG_PGSERR_BANK1 | \ - FLASH_FLAG_STRBERR_BANK1 | FLASH_FLAG_INCERR_BANK1 | \ - FLASH_FLAG_RDPERR_BANK1 | FLASH_FLAG_RDSERR_BANK1 | \ - FLASH_FLAG_SNECCERR_BANK1 | FLASH_FLAG_DBECCERR_BANK1 | \ - FLASH_FLAG_CRCRDERR_BANK1) /*!< All Bank 1 error flags */ -#endif /* FLASH_SR_OPERR */ - -#define FLASH_FLAG_ALL_BANK1 (FLASH_FLAG_BSY_BANK1 | FLASH_FLAG_WBNE_BANK1 | \ - FLASH_FLAG_QW_BANK1 | FLASH_FLAG_CRC_BUSY_BANK1 | \ - FLASH_FLAG_EOP_BANK1 | FLASH_FLAG_CRCEND_BANK1 | \ - FLASH_FLAG_ALL_ERRORS_BANK1) /*!< All Bank 1 flags */ - -#define FLASH_FLAG_BSY_BANK2 (FLASH_SR_BSY | 0x80000000U) /*!< FLASH Bank 2 Busy flag */ -#define FLASH_FLAG_WBNE_BANK2 (FLASH_SR_WBNE | 0x80000000U) /*!< Write Buffer Not Empty on Bank 2 flag */ -#define FLASH_FLAG_QW_BANK2 (FLASH_SR_QW | 0x80000000U) /*!< Wait Queue on Bank 2 flag */ -#define FLASH_FLAG_CRC_BUSY_BANK2 (FLASH_SR_CRC_BUSY | 0x80000000U) /*!< CRC Busy on Bank 2 flag */ -#define FLASH_FLAG_EOP_BANK2 (FLASH_SR_EOP | 0x80000000U) /*!< End Of Program on Bank 2 flag */ -#define FLASH_FLAG_WRPERR_BANK2 (FLASH_SR_WRPERR | 0x80000000U) /*!< Write Protection Error on Bank 2 flag */ -#define FLASH_FLAG_PGSERR_BANK2 (FLASH_SR_PGSERR | 0x80000000U) /*!< Program Sequence Error on Bank 2 flag */ -#define FLASH_FLAG_STRBERR_BANK2 (FLASH_SR_STRBERR | 0x80000000U) /*!< Strobe Error on Bank 2 flag */ -#define FLASH_FLAG_INCERR_BANK2 (FLASH_SR_INCERR | 0x80000000U) /*!< Inconsistency Error on Bank 2 flag */ -#if defined (FLASH_SR_OPERR) -#define FLASH_FLAG_OPERR_BANK2 (FLASH_SR_OPERR | 0x80000000U) /*!< Operation Error on Bank 2 flag */ -#endif /* FLASH_SR_OPERR */ -#define FLASH_FLAG_RDPERR_BANK2 (FLASH_SR_RDPERR | 0x80000000U) /*!< Read Protection Error on Bank 2 flag */ -#define FLASH_FLAG_RDSERR_BANK2 (FLASH_SR_RDSERR | 0x80000000U) /*!< Read Secured Error on Bank 2 flag */ -#define FLASH_FLAG_SNECCERR_BANK2 (FLASH_SR_SNECCERR | 0x80000000U) /*!< Single ECC Error Correction on Bank 2 flag */ -#define FLASH_FLAG_DBECCERR_BANK2 (FLASH_SR_DBECCERR | 0x80000000U) /*!< Double Detection ECC Error on Bank 2 flag */ -#define FLASH_FLAG_CRCEND_BANK2 (FLASH_SR_CRCEND | 0x80000000U) /*!< CRC End of Calculation on Bank 2 flag */ -#define FLASH_FLAG_CRCRDERR_BANK2 (FLASH_SR_CRCRDERR | 0x80000000U) /*!< CRC Read error on Bank 2 flag */ - -#if defined (FLASH_SR_OPERR) -#define FLASH_FLAG_ALL_ERRORS_BANK2 (FLASH_FLAG_WRPERR_BANK2 | FLASH_FLAG_PGSERR_BANK2 | \ - FLASH_FLAG_STRBERR_BANK2 | FLASH_FLAG_INCERR_BANK2 | \ - FLASH_FLAG_OPERR_BANK2 | FLASH_FLAG_RDPERR_BANK2 | \ - FLASH_FLAG_RDSERR_BANK2 | FLASH_FLAG_SNECCERR_BANK2 | \ - FLASH_FLAG_DBECCERR_BANK2 | FLASH_FLAG_CRCRDERR_BANK2) /*!< All Bank 2 error flags */ -#else -#define FLASH_FLAG_ALL_ERRORS_BANK2 (FLASH_FLAG_WRPERR_BANK2 | FLASH_FLAG_PGSERR_BANK2 | \ - FLASH_FLAG_STRBERR_BANK2 | FLASH_FLAG_INCERR_BANK2 | \ - FLASH_FLAG_RDPERR_BANK2 | FLASH_FLAG_RDSERR_BANK2 | \ - FLASH_FLAG_SNECCERR_BANK2 | FLASH_FLAG_DBECCERR_BANK2 | \ - FLASH_FLAG_CRCRDERR_BANK2) /*!< All Bank 2 error flags */ -#endif /* FLASH_SR_OPERR */ - -#define FLASH_FLAG_ALL_BANK2 (FLASH_FLAG_BSY_BANK2 | FLASH_FLAG_WBNE_BANK2 | \ - FLASH_FLAG_QW_BANK2 | FLASH_FLAG_CRC_BUSY_BANK2 | \ - FLASH_FLAG_EOP_BANK2 | FLASH_FLAG_CRCEND_BANK2 | \ - FLASH_FLAG_ALL_ERRORS_BANK2) /*!< All Bank 2 flags */ -/** - * @} - */ - -/** @defgroup FLASH_Interrupt_definition FLASH Interrupt definition - * @brief FLASH Interrupt definition - * @{ - */ -#define FLASH_IT_EOP_BANK1 FLASH_CR_EOPIE /*!< End of FLASH Bank 1 Operation Interrupt source */ -#define FLASH_IT_WRPERR_BANK1 FLASH_CR_WRPERRIE /*!< Write Protection Error on Bank 1 Interrupt source */ -#define FLASH_IT_PGSERR_BANK1 FLASH_CR_PGSERRIE /*!< Program Sequence Error on Bank 1 Interrupt source */ -#define FLASH_IT_STRBERR_BANK1 FLASH_CR_STRBERRIE /*!< Strobe Error on Bank 1 Interrupt source */ -#define FLASH_IT_INCERR_BANK1 FLASH_CR_INCERRIE /*!< Inconsistency Error on Bank 1 Interrupt source */ -#if defined (FLASH_CR_OPERRIE) -#define FLASH_IT_OPERR_BANK1 FLASH_CR_OPERRIE /*!< Operation Error on Bank 1 Interrupt source */ -#endif /* FLASH_CR_OPERRIE */ -#define FLASH_IT_RDPERR_BANK1 FLASH_CR_RDPERRIE /*!< Read protection Error on Bank 1 Interrupt source */ -#define FLASH_IT_RDSERR_BANK1 FLASH_CR_RDSERRIE /*!< Read Secured Error on Bank 1 Interrupt source */ -#define FLASH_IT_SNECCERR_BANK1 FLASH_CR_SNECCERRIE /*!< Single ECC Error Correction on Bank 1 Interrupt source */ -#define FLASH_IT_DBECCERR_BANK1 FLASH_CR_DBECCERRIE /*!< Double Detection ECC Error on Bank 1 Interrupt source */ -#define FLASH_IT_CRCEND_BANK1 FLASH_CR_CRCENDIE /*!< CRC End on Bank 1 Interrupt source */ -#define FLASH_IT_CRCRDERR_BANK1 FLASH_CR_CRCRDERRIE /*!< CRC Read error on Bank 1 Interrupt source */ - -#if defined (FLASH_CR_OPERRIE) -#define FLASH_IT_ALL_BANK1 (FLASH_IT_EOP_BANK1 | FLASH_IT_WRPERR_BANK1 | \ - FLASH_IT_PGSERR_BANK1 | FLASH_IT_STRBERR_BANK1 | \ - FLASH_IT_INCERR_BANK1 | FLASH_IT_OPERR_BANK1 | \ - FLASH_IT_RDPERR_BANK1 | FLASH_IT_RDSERR_BANK1 | \ - FLASH_IT_SNECCERR_BANK1 | FLASH_IT_DBECCERR_BANK1 | \ - FLASH_IT_CRCEND_BANK1 | FLASH_IT_CRCRDERR_BANK1) /*!< All Bank 1 Interrupt sources */ -#else -#define FLASH_IT_ALL_BANK1 (FLASH_IT_EOP_BANK1 | FLASH_IT_WRPERR_BANK1 | \ - FLASH_IT_PGSERR_BANK1 | FLASH_IT_STRBERR_BANK1 | \ - FLASH_IT_INCERR_BANK1 | FLASH_IT_RDPERR_BANK1 | \ - FLASH_IT_RDSERR_BANK1 | FLASH_IT_SNECCERR_BANK1 | \ - FLASH_IT_DBECCERR_BANK1 | FLASH_IT_CRCEND_BANK1 | \ - FLASH_IT_CRCRDERR_BANK1) /*!< All Bank 1 Interrupt sources */ -#endif /* FLASH_CR_OPERRIE */ - -#define FLASH_IT_EOP_BANK2 (FLASH_CR_EOPIE | 0x80000000U) /*!< End of FLASH Bank 2 Operation Interrupt source */ -#define FLASH_IT_WRPERR_BANK2 (FLASH_CR_WRPERRIE | 0x80000000U) /*!< Write Protection Error on Bank 2 Interrupt source */ -#define FLASH_IT_PGSERR_BANK2 (FLASH_CR_PGSERRIE | 0x80000000U) /*!< Program Sequence Error on Bank 2 Interrupt source */ -#define FLASH_IT_STRBERR_BANK2 (FLASH_CR_STRBERRIE | 0x80000000U) /*!< Strobe Error on Bank 2 Interrupt source */ -#define FLASH_IT_INCERR_BANK2 (FLASH_CR_INCERRIE | 0x80000000U) /*!< Inconsistency Error on Bank 2 Interrupt source */ -#if defined (FLASH_CR_OPERRIE) -#define FLASH_IT_OPERR_BANK2 (FLASH_CR_OPERRIE | 0x80000000U) /*!< Operation Error on Bank 2 Interrupt source */ -#endif /* FLASH_CR_OPERRIE */ -#define FLASH_IT_RDPERR_BANK2 (FLASH_CR_RDPERRIE | 0x80000000U) /*!< Read protection Error on Bank 2 Interrupt source */ -#define FLASH_IT_RDSERR_BANK2 (FLASH_CR_RDSERRIE | 0x80000000U) /*!< Read Secured Error on Bank 2 Interrupt source */ -#define FLASH_IT_SNECCERR_BANK2 (FLASH_CR_SNECCERRIE | 0x80000000U) /*!< Single ECC Error Correction on Bank 2 Interrupt source */ -#define FLASH_IT_DBECCERR_BANK2 (FLASH_CR_DBECCERRIE | 0x80000000U) /*!< Double Detection ECC Error on Bank 2 Interrupt source */ -#define FLASH_IT_CRCEND_BANK2 (FLASH_CR_CRCENDIE | 0x80000000U) /*!< CRC End on Bank 2 Interrupt source */ -#define FLASH_IT_CRCRDERR_BANK2 (FLASH_CR_CRCRDERRIE | 0x80000000U) /*!< CRC Read Error on Bank 2 Interrupt source */ - -#if defined (FLASH_CR_OPERRIE) -#define FLASH_IT_ALL_BANK2 (FLASH_IT_EOP_BANK2 | FLASH_IT_WRPERR_BANK2 | \ - FLASH_IT_PGSERR_BANK2 | FLASH_IT_STRBERR_BANK2 | \ - FLASH_IT_INCERR_BANK2 | FLASH_IT_OPERR_BANK2 | \ - FLASH_IT_RDPERR_BANK2 | FLASH_IT_RDSERR_BANK2 | \ - FLASH_IT_SNECCERR_BANK2 | FLASH_IT_DBECCERR_BANK2 | \ - FLASH_IT_CRCEND_BANK2 | FLASH_IT_CRCRDERR_BANK2) /*!< All Bank 2 Interrupt sources */ -#else -#define FLASH_IT_ALL_BANK2 (FLASH_IT_EOP_BANK2 | FLASH_IT_WRPERR_BANK2 | \ - FLASH_IT_PGSERR_BANK2 | FLASH_IT_STRBERR_BANK2 | \ - FLASH_IT_INCERR_BANK2 | FLASH_IT_RDPERR_BANK2 | \ - FLASH_IT_RDSERR_BANK2 | FLASH_IT_SNECCERR_BANK2 | \ - FLASH_IT_DBECCERR_BANK2 | FLASH_IT_CRCEND_BANK2 | \ - FLASH_IT_CRCRDERR_BANK2) /*!< All Bank 2 Interrupt sources */ -#endif /* FLASH_CR_OPERRIE */ -/** - * @} - */ - -#if defined (FLASH_CR_PSIZE) -/** @defgroup FLASH_Program_Parallelism FLASH Program Parallelism - * @{ - */ -#define FLASH_PSIZE_BYTE 0x00000000U /*!< Flash program/erase by 8 bits */ -#define FLASH_PSIZE_HALF_WORD FLASH_CR_PSIZE_0 /*!< Flash program/erase by 16 bits */ -#define FLASH_PSIZE_WORD FLASH_CR_PSIZE_1 /*!< Flash program/erase by 32 bits */ -#define FLASH_PSIZE_DOUBLE_WORD FLASH_CR_PSIZE /*!< Flash program/erase by 64 bits */ -/** - * @} - */ -#endif /* FLASH_CR_PSIZE */ - - -/** @defgroup FLASH_Keys FLASH Keys - * @{ - */ -#define FLASH_KEY1 0x45670123U -#define FLASH_KEY2 0xCDEF89ABU -#define FLASH_OPT_KEY1 0x08192A3BU -#define FLASH_OPT_KEY2 0x4C5D6E7FU -/** - * @} - */ - -/** @defgroup FLASH_Sectors FLASH Sectors - * @{ - */ -#define FLASH_SECTOR_0 0U /*!< Sector Number 0 */ -#define FLASH_SECTOR_1 1U /*!< Sector Number 1 */ -#define FLASH_SECTOR_2 2U /*!< Sector Number 2 */ -#define FLASH_SECTOR_3 3U /*!< Sector Number 3 */ -#define FLASH_SECTOR_4 4U /*!< Sector Number 4 */ -#define FLASH_SECTOR_5 5U /*!< Sector Number 5 */ -#define FLASH_SECTOR_6 6U /*!< Sector Number 6 */ -#define FLASH_SECTOR_7 7U /*!< Sector Number 7 */ -#if (FLASH_SECTOR_TOTAL == 128) -#define FLASH_SECTOR_8 8U /*!< Sector Number 8 */ -#define FLASH_SECTOR_9 9U /*!< Sector Number 9 */ -#define FLASH_SECTOR_10 10U /*!< Sector Number 10 */ -#define FLASH_SECTOR_11 11U /*!< Sector Number 11 */ -#define FLASH_SECTOR_12 12U /*!< Sector Number 12 */ -#define FLASH_SECTOR_13 13U /*!< Sector Number 13 */ -#define FLASH_SECTOR_14 14U /*!< Sector Number 14 */ -#define FLASH_SECTOR_15 15U /*!< Sector Number 15 */ -#define FLASH_SECTOR_16 16U /*!< Sector Number 16 */ -#define FLASH_SECTOR_17 17U /*!< Sector Number 17 */ -#define FLASH_SECTOR_18 18U /*!< Sector Number 18 */ -#define FLASH_SECTOR_19 19U /*!< Sector Number 19 */ -#define FLASH_SECTOR_20 20U /*!< Sector Number 20 */ -#define FLASH_SECTOR_21 21U /*!< Sector Number 21 */ -#define FLASH_SECTOR_22 22U /*!< Sector Number 22 */ -#define FLASH_SECTOR_23 23U /*!< Sector Number 23 */ -#define FLASH_SECTOR_24 24U /*!< Sector Number 24 */ -#define FLASH_SECTOR_25 25U /*!< Sector Number 25 */ -#define FLASH_SECTOR_26 26U /*!< Sector Number 26 */ -#define FLASH_SECTOR_27 27U /*!< Sector Number 27 */ -#define FLASH_SECTOR_28 28U /*!< Sector Number 28 */ -#define FLASH_SECTOR_29 29U /*!< Sector Number 29 */ -#define FLASH_SECTOR_30 30U /*!< Sector Number 30 */ -#define FLASH_SECTOR_31 31U /*!< Sector Number 31 */ -#define FLASH_SECTOR_32 32U /*!< Sector Number 32 */ -#define FLASH_SECTOR_33 33U /*!< Sector Number 33 */ -#define FLASH_SECTOR_34 34U /*!< Sector Number 34 */ -#define FLASH_SECTOR_35 35U /*!< Sector Number 35 */ -#define FLASH_SECTOR_36 36U /*!< Sector Number 36 */ -#define FLASH_SECTOR_37 37U /*!< Sector Number 37 */ -#define FLASH_SECTOR_38 38U /*!< Sector Number 38 */ -#define FLASH_SECTOR_39 39U /*!< Sector Number 39 */ -#define FLASH_SECTOR_40 40U /*!< Sector Number 40 */ -#define FLASH_SECTOR_41 41U /*!< Sector Number 41 */ -#define FLASH_SECTOR_42 42U /*!< Sector Number 42 */ -#define FLASH_SECTOR_43 43U /*!< Sector Number 43 */ -#define FLASH_SECTOR_44 44U /*!< Sector Number 44 */ -#define FLASH_SECTOR_45 45U /*!< Sector Number 45 */ -#define FLASH_SECTOR_46 46U /*!< Sector Number 46 */ -#define FLASH_SECTOR_47 47U /*!< Sector Number 47 */ -#define FLASH_SECTOR_48 48U /*!< Sector Number 48 */ -#define FLASH_SECTOR_49 49U /*!< Sector Number 49 */ -#define FLASH_SECTOR_50 50U /*!< Sector Number 50 */ -#define FLASH_SECTOR_51 51U /*!< Sector Number 51 */ -#define FLASH_SECTOR_52 52U /*!< Sector Number 52 */ -#define FLASH_SECTOR_53 53U /*!< Sector Number 53 */ -#define FLASH_SECTOR_54 54U /*!< Sector Number 54 */ -#define FLASH_SECTOR_55 55U /*!< Sector Number 55 */ -#define FLASH_SECTOR_56 56U /*!< Sector Number 56 */ -#define FLASH_SECTOR_57 57U /*!< Sector Number 57 */ -#define FLASH_SECTOR_58 58U /*!< Sector Number 58 */ -#define FLASH_SECTOR_59 59U /*!< Sector Number 59 */ -#define FLASH_SECTOR_60 60U /*!< Sector Number 60 */ -#define FLASH_SECTOR_61 61U /*!< Sector Number 61 */ -#define FLASH_SECTOR_62 62U /*!< Sector Number 62 */ -#define FLASH_SECTOR_63 63U /*!< Sector Number 63 */ -#define FLASH_SECTOR_64 64U /*!< Sector Number 64 */ -#define FLASH_SECTOR_65 65U /*!< Sector Number 65 */ -#define FLASH_SECTOR_66 66U /*!< Sector Number 66 */ -#define FLASH_SECTOR_67 67U /*!< Sector Number 67 */ -#define FLASH_SECTOR_68 68U /*!< Sector Number 68 */ -#define FLASH_SECTOR_69 69U /*!< Sector Number 69 */ -#define FLASH_SECTOR_70 70U /*!< Sector Number 70 */ -#define FLASH_SECTOR_71 71U /*!< Sector Number 71 */ -#define FLASH_SECTOR_72 72U /*!< Sector Number 72 */ -#define FLASH_SECTOR_73 73U /*!< Sector Number 73 */ -#define FLASH_SECTOR_74 74U /*!< Sector Number 74 */ -#define FLASH_SECTOR_75 75U /*!< Sector Number 75 */ -#define FLASH_SECTOR_76 76U /*!< Sector Number 76 */ -#define FLASH_SECTOR_77 77U /*!< Sector Number 77 */ -#define FLASH_SECTOR_78 78U /*!< Sector Number 78 */ -#define FLASH_SECTOR_79 79U /*!< Sector Number 79 */ -#define FLASH_SECTOR_80 80U /*!< Sector Number 80 */ -#define FLASH_SECTOR_81 81U /*!< Sector Number 81 */ -#define FLASH_SECTOR_82 82U /*!< Sector Number 82 */ -#define FLASH_SECTOR_83 83U /*!< Sector Number 83 */ -#define FLASH_SECTOR_84 84U /*!< Sector Number 84 */ -#define FLASH_SECTOR_85 85U /*!< Sector Number 85 */ -#define FLASH_SECTOR_86 86U /*!< Sector Number 86 */ -#define FLASH_SECTOR_87 87U /*!< Sector Number 87 */ -#define FLASH_SECTOR_88 88U /*!< Sector Number 88 */ -#define FLASH_SECTOR_89 89U /*!< Sector Number 89 */ -#define FLASH_SECTOR_90 90U /*!< Sector Number 90 */ -#define FLASH_SECTOR_91 91U /*!< Sector Number 91 */ -#define FLASH_SECTOR_92 92U /*!< Sector Number 92 */ -#define FLASH_SECTOR_93 93U /*!< Sector Number 93 */ -#define FLASH_SECTOR_94 94U /*!< Sector Number 94 */ -#define FLASH_SECTOR_95 95U /*!< Sector Number 95 */ -#define FLASH_SECTOR_96 96U /*!< Sector Number 96 */ -#define FLASH_SECTOR_97 97U /*!< Sector Number 97 */ -#define FLASH_SECTOR_98 98U /*!< Sector Number 98 */ -#define FLASH_SECTOR_99 99U /*!< Sector Number 99 */ -#define FLASH_SECTOR_100 100U /*!< Sector Number 100 */ -#define FLASH_SECTOR_101 101U /*!< Sector Number 101 */ -#define FLASH_SECTOR_102 102U /*!< Sector Number 102 */ -#define FLASH_SECTOR_103 103U /*!< Sector Number 103 */ -#define FLASH_SECTOR_104 104U /*!< Sector Number 104 */ -#define FLASH_SECTOR_105 105U /*!< Sector Number 105 */ -#define FLASH_SECTOR_106 106U /*!< Sector Number 106 */ -#define FLASH_SECTOR_107 107U /*!< Sector Number 107 */ -#define FLASH_SECTOR_108 108U /*!< Sector Number 108 */ -#define FLASH_SECTOR_109 109U /*!< Sector Number 109 */ -#define FLASH_SECTOR_110 110U /*!< Sector Number 110 */ -#define FLASH_SECTOR_111 111U /*!< Sector Number 111 */ -#define FLASH_SECTOR_112 112U /*!< Sector Number 112 */ -#define FLASH_SECTOR_113 113U /*!< Sector Number 113 */ -#define FLASH_SECTOR_114 114U /*!< Sector Number 114 */ -#define FLASH_SECTOR_115 115U /*!< Sector Number 115 */ -#define FLASH_SECTOR_116 116U /*!< Sector Number 116 */ -#define FLASH_SECTOR_117 117U /*!< Sector Number 117 */ -#define FLASH_SECTOR_118 118U /*!< Sector Number 118 */ -#define FLASH_SECTOR_119 119U /*!< Sector Number 119 */ -#define FLASH_SECTOR_120 120U /*!< Sector Number 120 */ -#define FLASH_SECTOR_121 121U /*!< Sector Number 121 */ -#define FLASH_SECTOR_122 122U /*!< Sector Number 122 */ -#define FLASH_SECTOR_123 123U /*!< Sector Number 123 */ -#define FLASH_SECTOR_124 124U /*!< Sector Number 124 */ -#define FLASH_SECTOR_125 125U /*!< Sector Number 125 */ -#define FLASH_SECTOR_126 126U /*!< Sector Number 126 */ -#define FLASH_SECTOR_127 127U /*!< Sector Number 127 */ -#endif /* FLASH_SECTOR_TOTAL == 128 */ -/** - * @} - */ - -/** - * @} - */ - -/* Exported macro ------------------------------------------------------------*/ -/** @defgroup FLASH_Exported_Macros FLASH Exported Macros - * @{ - */ -/** - * @brief Set the FLASH Latency. - * @param __LATENCY__: FLASH Latency - * The value of this parameter depend on device used within the same series - * @retval none - */ -#define __HAL_FLASH_SET_LATENCY(__LATENCY__) \ - MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(__LATENCY__)) - -/** - * @brief Get the FLASH Latency. - * @retval FLASH Latency - * The value of this parameter depend on device used within the same series - */ -#define __HAL_FLASH_GET_LATENCY() (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY)) - -/** - * @brief Enable the specified FLASH interrupt. - * @param __INTERRUPT__ : FLASH interrupt - * In case of Bank 1 This parameter can be any combination of the following values: - * @arg FLASH_IT_EOP_BANK1 : End of FLASH Bank 1 Operation Interrupt source - * @arg FLASH_IT_WRPERR_BANK1 : Write Protection Error on Bank 1 Interrupt source - * @arg FLASH_IT_PGSERR_BANK1 : Program Sequence Error on Bank 1 Interrupt source - * @arg FLASH_IT_STRBERR_BANK1 : Strobe Error on Bank 1 Interrupt source - * @arg FLASH_IT_INCERR_BANK1 : Inconsistency Error on Bank 1 Interrupt source - * @arg FLASH_IT_OPERR_BANK1 : Operation Error on Bank 1 Interrupt source - * @arg FLASH_IT_RDPERR_BANK1 : Read protection Error on Bank 1 Interrupt source - * @arg FLASH_IT_RDSERR_BANK1 : Read secure Error on Bank 1 Interrupt source - * @arg FLASH_IT_SNECCERR_BANK1 : Single ECC Error Correction on Bank 1 Interrupt source - * @arg FLASH_IT_DBECCERR_BANK1 : Double Detection ECC Error on Bank 1 Interrupt source - * @arg FLASH_IT_CRCEND_BANK1 : CRC End on Bank 1 Interrupt source - * @arg FLASH_IT_CRCRDERR_BANK1 : CRC Read error on Bank 1 Interrupt source - * @arg FLASH_IT_ALL_BANK1 : All Bank 1 Interrupt sources - * - * In case of Bank 2, this parameter can be any combination of the following values: - * @arg FLASH_IT_EOP_BANK2 : End of FLASH Bank 2 Operation Interrupt source - * @arg FLASH_IT_WRPERR_BANK2 : Write Protection Error on Bank 2 Interrupt source - * @arg FLASH_IT_PGSERR_BANK2 : Program Sequence Error on Bank 2 Interrupt source - * @arg FLASH_IT_STRBERR_BANK2 : Strobe Error on Bank 2 Interrupt source - * @arg FLASH_IT_INCERR_BANK2 : Inconsistency Error on Bank 2 Interrupt source - * @arg FLASH_IT_OPERR_BANK2 : Operation Error on Bank 2 Interrupt source - * @arg FLASH_IT_RDPERR_BANK2 : Read protection Error on Bank 2 Interrupt source - * @arg FLASH_IT_RDSERR_BANK2 : Read secure Error on Bank 2 Interrupt source - * @arg FLASH_IT_SNECCERR_BANK2 : Single ECC Error Correction on Bank 2 Interrupt source - * @arg FLASH_IT_DBECCERR_BANK2 : Double Detection ECC Error on Bank 2 Interrupt source - * @arg FLASH_IT_CRCEND_BANK2 : CRC End on Bank 2 Interrupt source - * @arg FLASH_IT_CRCRDERR_BANK2 : CRC Read error on Bank 2 Interrupt source - * @arg FLASH_IT_ALL_BANK2 : All Bank 2 Interrupt sources - * @retval none - */ - -#define __HAL_FLASH_ENABLE_IT_BANK1(__INTERRUPT__) (FLASH->CR1 |= (__INTERRUPT__)) - -#define __HAL_FLASH_ENABLE_IT_BANK2(__INTERRUPT__) (FLASH->CR2 |= ((__INTERRUPT__) & 0x7FFFFFFFU)) - -#if defined (DUAL_BANK) -#define __HAL_FLASH_ENABLE_IT(__INTERRUPT__) (IS_FLASH_IT_BANK1(__INTERRUPT__) ? \ - __HAL_FLASH_ENABLE_IT_BANK1(__INTERRUPT__) : \ - __HAL_FLASH_ENABLE_IT_BANK2(__INTERRUPT__)) -#else -#define __HAL_FLASH_ENABLE_IT(__INTERRUPT__) __HAL_FLASH_ENABLE_IT_BANK1(__INTERRUPT__) -#endif /* DUAL_BANK */ - - -/** - * @brief Disable the specified FLASH interrupt. - * @param __INTERRUPT__ : FLASH interrupt - * In case of Bank 1 This parameter can be any combination of the following values: - * @arg FLASH_IT_EOP_BANK1 : End of FLASH Bank 1 Operation Interrupt source - * @arg FLASH_IT_WRPERR_BANK1 : Write Protection Error on Bank 1 Interrupt source - * @arg FLASH_IT_PGSERR_BANK1 : Program Sequence Error on Bank 1 Interrupt source - * @arg FLASH_IT_STRBERR_BANK1 : Strobe Error on Bank 1 Interrupt source - * @arg FLASH_IT_INCERR_BANK1 : Inconsistency Error on Bank 1 Interrupt source - * @arg FLASH_IT_OPERR_BANK1 : Operation Error on Bank 1 Interrupt source - * @arg FLASH_IT_RDPERR_BANK1 : Read protection Error on Bank 1 Interrupt source - * @arg FLASH_IT_RDSERR_BANK1 : Read secure Error on Bank 1 Interrupt source - * @arg FLASH_IT_SNECCERR_BANK1 : Single ECC Error Correction on Bank 1 Interrupt source - * @arg FLASH_IT_DBECCERR_BANK1 : Double Detection ECC Error on Bank 1 Interrupt source - * @arg FLASH_IT_CRCEND_BANK1 : CRC End on Bank 1 Interrupt source - * @arg FLASH_IT_CRCRDERR_BANK1 : CRC Read error on Bank 1 Interrupt source - * @arg FLASH_IT_ALL_BANK1 : All Bank 1 Interrupt sources - * - * In case of Bank 2, this parameter can be any combination of the following values: - * @arg FLASH_IT_EOP_BANK2 : End of FLASH Bank 2 Operation Interrupt source - * @arg FLASH_IT_WRPERR_BANK2 : Write Protection Error on Bank 2 Interrupt source - * @arg FLASH_IT_PGSERR_BANK2 : Program Sequence Error on Bank 2 Interrupt source - * @arg FLASH_IT_STRBERR_BANK2 : Strobe Error on Bank 2 Interrupt source - * @arg FLASH_IT_INCERR_BANK2 : Inconsistency Error on Bank 2 Interrupt source - * @arg FLASH_IT_OPERR_BANK2 : Operation Error on Bank 2 Interrupt source - * @arg FLASH_IT_RDPERR_BANK2 : Read protection Error on Bank 2 Interrupt source - * @arg FLASH_IT_RDSERR_BANK2 : Read secure Error on Bank 2 Interrupt source - * @arg FLASH_IT_SNECCERR_BANK2 : Single ECC Error Correction on Bank 2 Interrupt source - * @arg FLASH_IT_DBECCERR_BANK2 : Double Detection ECC Error on Bank 2 Interrupt source - * @arg FLASH_IT_CRCEND_BANK2 : CRC End on Bank 2 Interrupt source - * @arg FLASH_IT_CRCRDERR_BANK2 : CRC Read error on Bank 2 Interrupt source - * @arg FLASH_IT_ALL_BANK2 : All Bank 2 Interrupt sources - * @retval none - */ - -#define __HAL_FLASH_DISABLE_IT_BANK1(__INTERRUPT__) (FLASH->CR1 &= ~(uint32_t)(__INTERRUPT__)) - -#define __HAL_FLASH_DISABLE_IT_BANK2(__INTERRUPT__) (FLASH->CR2 &= ~(uint32_t)((__INTERRUPT__) & 0x7FFFFFFFU)) - -#if defined (DUAL_BANK) -#define __HAL_FLASH_DISABLE_IT(__INTERRUPT__) (IS_FLASH_IT_BANK1(__INTERRUPT__) ? \ - __HAL_FLASH_DISABLE_IT_BANK1(__INTERRUPT__) : \ - __HAL_FLASH_DISABLE_IT_BANK2(__INTERRUPT__)) -#else -#define __HAL_FLASH_DISABLE_IT(__INTERRUPT__) __HAL_FLASH_DISABLE_IT_BANK1(__INTERRUPT__) -#endif /* DUAL_BANK */ - - -/** - * @brief Checks whether the specified FLASH flag is set or not. - * @param __FLAG__: specifies the FLASH flag to check. - * In case of Bank 1 This parameter can be one of the following values : - * @arg FLASH_FLAG_BSY_BANK1 : FLASH Bank 1 Busy flag - * @arg FLASH_FLAG_WBNE_BANK1 : Write Buffer Not Empty on Bank 1 flag - * @arg FLASH_FLAG_QW_BANK1 : Wait Queue on Bank 1 flag - * @arg FLASH_FLAG_CRC_BUSY_BANK1 : CRC module is working on Bank 1 flag - * @arg FLASH_FLAG_EOP_BANK1 : End Of Program on Bank 1 flag - * @arg FLASH_FLAG_WRPERR_BANK1 : Write Protection Error on Bank 1 flag - * @arg FLASH_FLAG_PGSERR_BANK1 : Program Sequence Error on Bank 1 flag - * @arg FLASH_FLAG_STRBER_BANK1 : Program Alignment Error on Bank 1 flag - * @arg FLASH_FLAG_INCERR_BANK1 : Inconsistency Error on Bank 1 flag - * @arg FLASH_FLAG_OPERR_BANK1 : Operation Error on Bank 1 flag - * @arg FLASH_FLAG_RDPERR_BANK1 : Read Protection Error on Bank 1 flag - * @arg FLASH_FLAG_RDSERR_BANK1 : Read secure Error on Bank 1 flag - * @arg FLASH_FLAG_SNECCE_BANK1 : Single ECC Error Correction on Bank 1 flag - * @arg FLASH_FLAG_DBECCE_BANK1 : Double Detection ECC Error on Bank 1 flag - * @arg FLASH_FLAG_CRCEND_BANK1 : CRC End on Bank 1 flag - * @arg FLASH_FLAG_CRCRDERR_BANK1 : CRC Read error on Bank 1 flag - * - * In case of Bank 2 This parameter can be one of the following values : - * @arg FLASH_FLAG_BSY_BANK2 : FLASH Bank 2 Busy flag - * @arg FLASH_FLAG_WBNE_BANK2 : Write Buffer Not Empty on Bank 2 flag - * @arg FLASH_FLAG_QW_BANK2 : Wait Queue on Bank 2 flag - * @arg FLASH_FLAG_CRC_BUSY_BANK2 : CRC module is working on Bank 2 flag - * @arg FLASH_FLAG_EOP_BANK2 : End Of Program on Bank 2 flag - * @arg FLASH_FLAG_WRPERR_BANK2 : Write Protection Error on Bank 2 flag - * @arg FLASH_FLAG_PGSERR_BANK2 : Program Sequence Error on Bank 2 flag - * @arg FLASH_FLAG_STRBER_BANK2 : Program Alignment Error on Bank 2 flag - * @arg FLASH_FLAG_INCERR_BANK2 : Inconsistency Error on Bank 2 flag - * @arg FLASH_FLAG_OPERR_BANK2 : Operation Error on Bank 2 flag - * @arg FLASH_FLAG_RDPERR_BANK2 : Read Protection Error on Bank 2 flag - * @arg FLASH_FLAG_RDSERR_BANK2 : Read secure Error on Bank 2 flag - * @arg FLASH_FLAG_SNECCE_BANK2 : Single ECC Error Correction on Bank 2 flag - * @arg FLASH_FLAG_DBECCE_BANK2 : Double Detection ECC Error on Bank 2 flag - * @arg FLASH_FLAG_CRCEND_BANK2 : CRC End on Bank 2 flag - * @arg FLASH_FLAG_CRCRDERR_BANK2 : CRC Read error on Bank 2 flag - * @retval The new state of FLASH_FLAG (SET or RESET). - */ -#define __HAL_FLASH_GET_FLAG_BANK1(__FLAG__) (READ_BIT(FLASH->SR1, (__FLAG__)) == (__FLAG__)) - -#define __HAL_FLASH_GET_FLAG_BANK2(__FLAG__) (READ_BIT(FLASH->SR2, ((__FLAG__) & 0x7FFFFFFFU)) == (((__FLAG__) & 0x7FFFFFFFU))) - -#if defined (DUAL_BANK) -#define __HAL_FLASH_GET_FLAG(__FLAG__) (IS_FLASH_FLAG_BANK1(__FLAG__) ? __HAL_FLASH_GET_FLAG_BANK1(__FLAG__) : \ - __HAL_FLASH_GET_FLAG_BANK2(__FLAG__)) -#else -#define __HAL_FLASH_GET_FLAG(__FLAG__) __HAL_FLASH_GET_FLAG_BANK1(__FLAG__) -#endif /* DUAL_BANK */ - - -/** - * @brief Clear the specified FLASH flag. - * @param __FLAG__: specifies the FLASH flags to clear. - * In case of Bank 1, this parameter can be any combination of the following values: - * @arg FLASH_FLAG_EOP_BANK1 : End Of Program on Bank 1 flag - * @arg FLASH_FLAG_WRPERR_BANK1 : Write Protection Error on Bank 1 flag - * @arg FLASH_FLAG_PGSERR_BANK1 : Program Sequence Error on Bank 1 flag - * @arg FLASH_FLAG_STRBER_BANK1 : Program Alignment Error on Bank 1 flag - * @arg FLASH_FLAG_INCERR_BANK1 : Inconsistency Error on Bank 1 flag - * @arg FLASH_FLAG_OPERR_BANK1 : Operation Error on Bank 1 flag - * @arg FLASH_FLAG_RDPERR_BANK1 : Read Protection Error on Bank 1 flag - * @arg FLASH_FLAG_RDSERR_BANK1 : Read secure Error on Bank 1 flag - * @arg FLASH_FLAG_SNECCE_BANK1 : Single ECC Error Correction on Bank 1 flag - * @arg FLASH_FLAG_DBECCE_BANK1 : Double Detection ECC Error on Bank 1 flag - * @arg FLASH_FLAG_CRCEND_BANK1 : CRC End on Bank 1 flag - * @arg FLASH_FLAG_CRCRDERR_BANK1 : CRC Read error on Bank 1 flag - * @arg FLASH_FLAG_ALL_ERRORS_BANK1 : All Bank 1 error flags - * @arg FLASH_FLAG_ALL_BANK1 : All Bank 1 flags - * - * In case of Bank 2, this parameter can be any combination of the following values : - * @arg FLASH_FLAG_EOP_BANK2 : End Of Program on Bank 2 flag - * @arg FLASH_FLAG_WRPERR_BANK2 : Write Protection Error on Bank 2 flag - * @arg FLASH_FLAG_PGSERR_BANK2 : Program Sequence Error on Bank 2 flag - * @arg FLASH_FLAG_STRBER_BANK2 : Program Alignment Error on Bank 2 flag - * @arg FLASH_FLAG_INCERR_BANK2 : Inconsistency Error on Bank 2 flag - * @arg FLASH_FLAG_OPERR_BANK2 : Operation Error on Bank 2 flag - * @arg FLASH_FLAG_RDPERR_BANK2 : Read Protection Error on Bank 2 flag - * @arg FLASH_FLAG_RDSERR_BANK2 : Read secure Error on Bank 2 flag - * @arg FLASH_FLAG_SNECCE_BANK2 : Single ECC Error Correction on Bank 2 flag - * @arg FLASH_FLAG_DBECCE_BANK2 : Double Detection ECC Error on Bank 2 flag - * @arg FLASH_FLAG_CRCEND_BANK2 : CRC End on Bank 2 flag - * @arg FLASH_FLAG_CRCRDERR_BANK2 : CRC Read error on Bank 2 flag - * @arg FLASH_FLAG_ALL_ERRORS_BANK2 : All Bank 2 error flags - * @arg FLASH_FLAG_ALL_BANK2 : All Bank 2 flags - * @retval none - */ - -#define __HAL_FLASH_CLEAR_FLAG_BANK1(__FLAG__) WRITE_REG(FLASH->CCR1, (__FLAG__)) - -#define __HAL_FLASH_CLEAR_FLAG_BANK2(__FLAG__) WRITE_REG(FLASH->CCR2, ((__FLAG__) & 0x7FFFFFFFU)) - -#if defined (DUAL_BANK) -#define __HAL_FLASH_CLEAR_FLAG(__FLAG__) (IS_FLASH_FLAG_BANK1(__FLAG__) ? __HAL_FLASH_CLEAR_FLAG_BANK1(__FLAG__) : \ - __HAL_FLASH_CLEAR_FLAG_BANK2(__FLAG__)) -#else -#define __HAL_FLASH_CLEAR_FLAG(__FLAG__) __HAL_FLASH_CLEAR_FLAG_BANK1(__FLAG__) -#endif /* DUAL_BANK */ - -/** - * @} - */ - -/* Include FLASH HAL Extension module */ -#include "stm32h7xx_hal_flash_ex.h" - -/* Exported functions --------------------------------------------------------*/ -/** @addtogroup FLASH_Exported_Functions - * @{ - */ -/** @addtogroup FLASH_Exported_Functions_Group1 - * @{ - */ -/* Program operation functions ***********************************************/ -HAL_StatusTypeDef HAL_FLASH_Program(uint32_t TypeProgram, uint32_t FlashAddress, uint32_t DataAddress); -HAL_StatusTypeDef HAL_FLASH_Program_IT(uint32_t TypeProgram, uint32_t FlashAddress, uint32_t DataAddress); -/* FLASH IRQ handler method */ -void HAL_FLASH_IRQHandler(void); -/* Callbacks in non blocking modes */ -void HAL_FLASH_EndOfOperationCallback(uint32_t ReturnValue); -void HAL_FLASH_OperationErrorCallback(uint32_t ReturnValue); -/** - * @} - */ - -/** @addtogroup FLASH_Exported_Functions_Group2 - * @{ - */ -/* Peripheral Control functions **********************************************/ -HAL_StatusTypeDef HAL_FLASH_Unlock(void); -HAL_StatusTypeDef HAL_FLASH_Lock(void); -HAL_StatusTypeDef HAL_FLASH_OB_Unlock(void); -HAL_StatusTypeDef HAL_FLASH_OB_Lock(void); -/* Option bytes control */ -HAL_StatusTypeDef HAL_FLASH_OB_Launch(void); -/** - * @} - */ - -/** @addtogroup FLASH_Exported_Functions_Group3 - * @{ - */ -/* Peripheral State functions ************************************************/ -uint32_t HAL_FLASH_GetError(void); -/** - * @} - */ - -/** - * @} - */ -/* Private types -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/** @defgroup FLASH_Private_Variables FLASH Private Variables - * @{ - */ -extern FLASH_ProcessTypeDef pFlash; -/** - * @} - */ -/* Private constants ---------------------------------------------------------*/ -/** @defgroup FLASH_Private_Constants FLASH Private Constants - * @{ - */ - -/** - * @} - */ - -/* Private macros ------------------------------------------------------------*/ -/** @defgroup FLASH_Private_Macros FLASH Private Macros - * @{ - */ - -#if defined (FLASH_OPTCR_PG_OTP) -#define IS_FLASH_TYPEPROGRAM(VALUE) (((VALUE) == FLASH_TYPEPROGRAM_FLASHWORD) || \ - ((VALUE) == FLASH_TYPEPROGRAM_OTPWORD)) -#else -#define IS_FLASH_TYPEPROGRAM(VALUE) ((VALUE) == FLASH_TYPEPROGRAM_FLASHWORD) -#endif /* FLASH_OPTCR_PG_OTP */ - -#define IS_FLASH_IT_BANK1(IT) (((IT) & FLASH_IT_ALL_BANK1) == (IT)) -#if defined (DUAL_BANK) -#define IS_FLASH_IT_BANK2(IT) (((IT) & FLASH_IT_ALL_BANK2) == (IT)) -#endif /* DUAL_BANK */ - -#define IS_FLASH_FLAG_BANK1(FLAG) (((FLAG) & FLASH_FLAG_ALL_BANK1) == (FLAG)) -#if defined (DUAL_BANK) -#define IS_FLASH_FLAG_BANK2(FLAG) (((FLAG) & FLASH_FLAG_ALL_BANK2) == (FLAG)) -#endif /* DUAL_BANK */ - -#if defined (DUAL_BANK) -#define IS_FLASH_PROGRAM_ADDRESS_BANK1(ADDRESS) (((ADDRESS) >= FLASH_BANK1_BASE) && ((ADDRESS) < FLASH_BANK2_BASE)) -#define IS_FLASH_PROGRAM_ADDRESS_BANK2(ADDRESS) (((ADDRESS) >= FLASH_BANK2_BASE ) && ((ADDRESS) <= FLASH_END)) -#else -#define IS_FLASH_PROGRAM_ADDRESS_BANK1(ADDRESS) (((ADDRESS) >= FLASH_BANK1_BASE) && ((ADDRESS) <= FLASH_END)) -#endif /* DUAL_BANK */ - -#if defined (DUAL_BANK) -#if defined (FLASH_OPTCR_PG_OTP) -#define IS_FLASH_PROGRAM_ADDRESS_OTP(ADDRESS) (((ADDRESS) >= 0x08FFF000U) && ((ADDRESS) <= 0x08FFF3FFU)) -#define IS_FLASH_PROGRAM_ADDRESS(ADDRESS) (IS_FLASH_PROGRAM_ADDRESS_BANK1(ADDRESS) || \ - IS_FLASH_PROGRAM_ADDRESS_BANK2(ADDRESS) || \ - IS_FLASH_PROGRAM_ADDRESS_OTP(ADDRESS)) -#else -#define IS_FLASH_PROGRAM_ADDRESS(ADDRESS) (IS_FLASH_PROGRAM_ADDRESS_BANK1(ADDRESS) || \ - IS_FLASH_PROGRAM_ADDRESS_BANK2(ADDRESS)) -#endif /* FLASH_OPTCR_PG_OTP */ -#else -#if defined (FLASH_OPTCR_PG_OTP) -#define IS_FLASH_PROGRAM_ADDRESS_OTP(ADDRESS) (((ADDRESS) >= 0x08FFF000U) && ((ADDRESS) <= 0x08FFF3FFU)) -#define IS_FLASH_PROGRAM_ADDRESS(ADDRESS) (IS_FLASH_PROGRAM_ADDRESS_BANK1(ADDRESS) || \ - IS_FLASH_PROGRAM_ADDRESS_OTP(ADDRESS)) -#else -#define IS_FLASH_PROGRAM_ADDRESS(ADDRESS) (IS_FLASH_PROGRAM_ADDRESS_BANK1(ADDRESS)) -#endif /* FLASH_OPTCR_PG_OTP */ -#endif /* DUAL_BANK */ - -#define IS_BOOT_ADDRESS(ADDRESS) ((ADDRESS) <= (0x3FFF0000U)) - -#if defined (DUAL_BANK) -#define IS_FLASH_BANK(BANK) (((BANK) == FLASH_BANK_1) || \ - ((BANK) == FLASH_BANK_2) || \ - ((BANK) == FLASH_BANK_BOTH)) -#define IS_FLASH_BANK_EXCLUSIVE(BANK) (((BANK) == FLASH_BANK_1) || \ - ((BANK) == FLASH_BANK_2)) -#else -#define IS_FLASH_BANK(BANK) ((BANK) == FLASH_BANK_1) -#define IS_FLASH_BANK_EXCLUSIVE(BANK) ((BANK) == FLASH_BANK_1) -#endif /* DUAL_BANK */ - -/** - * @} - */ -/* Private functions ---------------------------------------------------------*/ -/** @defgroup FLASH_Private_Functions FLASH Private functions - * @{ - */ -HAL_StatusTypeDef FLASH_WaitForLastOperation(uint32_t Timeout, uint32_t Bank); -HAL_StatusTypeDef FLASH_OB_WaitForLastOperation(uint32_t Timeout); -HAL_StatusTypeDef FLASH_CRC_WaitForLastOperation(uint32_t Timeout, uint32_t Bank); -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_HAL_FLASH_H */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h deleted file mode 100644 index 28bb380..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h +++ /dev/null @@ -1,1013 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_flash_ex.h - * @author MCD Application Team - * @brief Header file of FLASH HAL module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file in - * the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_HAL_FLASH_EX_H -#define STM32H7xx_HAL_FLASH_EX_H - -#ifdef __cplusplus - extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal_def.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @addtogroup FLASHEx - * @{ - */ - -/* Exported types ------------------------------------------------------------*/ -/** @defgroup FLASHEx_Exported_Types FLASH Exported Types - * @{ - */ - -/** - * @brief FLASH Erase structure definition - */ -typedef struct -{ - uint32_t TypeErase; /*!< Mass erase or sector Erase. - This parameter can be a value of @ref FLASHEx_Type_Erase */ - - uint32_t Banks; /*!< Select banks to erase when Mass erase is enabled. - This parameter must be a value of @ref FLASHEx_Banks */ - - uint32_t Sector; /*!< Initial FLASH sector to erase when Mass erase is disabled - This parameter must be a value of @ref FLASH_Sectors */ - - uint32_t NbSectors; /*!< Number of sectors to be erased. - This parameter must be a value between 1 and (max number of sectors - value of Initial sector)*/ - - uint32_t VoltageRange;/*!< The device voltage range which defines the erase parallelism - This parameter must be a value of @ref FLASHEx_Voltage_Range */ - -} FLASH_EraseInitTypeDef; - - -/** - * @brief FLASH Option Bytes Program structure definition - */ -typedef struct -{ - uint32_t OptionType; /*!< Option byte to be configured. - This parameter can be a value of @ref FLASHEx_Option_Type */ - - uint32_t WRPState; /*!< Write protection activation or deactivation. - This parameter can be a value of @ref FLASHEx_WRP_State */ - - uint32_t WRPSector; /*!< Specifies the sector(s) to be write protected. - The value of this parameter depend on device used within the same series */ - - uint32_t RDPLevel; /*!< Set the read protection level. - This parameter can be a value of @ref FLASHEx_Option_Bytes_Read_Protection */ - - uint32_t BORLevel; /*!< Set the BOR Level. - This parameter can be a value of @ref FLASHEx_BOR_Reset_Level */ - - uint32_t USERType; /*!< User option byte(s) to be configured (used for OPTIONBYTE_USER). - This parameter can be a combination of @ref FLASHEx_OB_USER_Type */ - - uint32_t USERConfig; /*!< Program the FLASH User Option Byte: IWDG_SW / RST_STOP / RST_STDBY / - IWDG_FREEZE_STOP / IWDG_FREEZE_SANDBY / IO_HSLV / SWAP_BANK_OPT */ - - uint32_t Banks; /*!< Select banks for WRP , PCROP and secure area config . - This parameter must be a value of @ref FLASHEx_Banks */ - - uint32_t PCROPConfig; /*!< specifies if the PCROP area shall be erased or not - when RDP level decreased from Level 1 to Level 0 or during a mass erase. - This parameter must be a value of @ref FLASHEx_OB_PCROP_RDP enumeration */ - - uint32_t PCROPStartAddr; /*!< PCROP Start address (used for OPTIONBYTE_PCROP). - This parameter must be a value between begin and end of a bank */ - - uint32_t PCROPEndAddr; /*!< PCROP End address (used for OPTIONBYTE_PCROP). - This parameter must be a value between PCROP Start address and end of a bank */ - - uint32_t BootConfig; /*!< Specifies if the Boot Address to be configured BOOT_ADD0, BOOT_ADD1 - or both. This parameter must be a value of @ref FLASHEx_OB_BOOT_OPTION enumeration */ - - uint32_t BootAddr0; /*!< Boot Address 0. - This parameter must be a value between begin and end of a bank */ - - uint32_t BootAddr1; /*!< Boot Address 1. - This parameter must be a value between begin and end of a bank */ -#if defined(DUAL_CORE) - uint32_t CM4BootConfig; /*!< specifies if the CM4 boot Address to be configured BOOT_ADD0, BOOT_ADD1 - or both. - This parameter must be a value of @ref FLASHEx_OB_BOOT_OPTION enumeration */ - - uint32_t CM4BootAddr0; /*!< CM4 Boot Address 0. - This parameter must be a value between begin and end of a bank */ - - uint32_t CM4BootAddr1; /*!< CM4 Boot Address 1. - This parameter must be a value between begin and end of a bank */ -#endif /*DUAL_CORE*/ - - uint32_t SecureAreaConfig; /*!< specifies if the bank secured area shall be erased or not - when RDP level decreased from Level 1 to Level 0 or during a mass erase. - This parameter must be a value of @ref FLASHEx_OB_SECURE_RDP enumeration */ - - uint32_t SecureAreaStartAddr; /*!< Bank Secure area Start address. - This parameter must be a value between begin address and end address of bank1 */ - - uint32_t SecureAreaEndAddr; /*!< Bank Secure area End address. - This parameter must be a value between Secure Area Start address and end address of a bank1 */ - -#if defined (FLASH_OTPBL_LOCKBL) - uint32_t OTPBlockLock; /*!< Specifies the OTP block(s) to be locked. - This parameter must be a value of @ref FLASHEx_OTP_Blocks */ -#endif /* FLASH_OTPBL_LOCKBL */ - -#if defined (FLASH_OPTSR2_TCM_AXI_SHARED) - uint32_t SharedRamConfig; /*!< Specifies the configuration of TCM / AXI shared RAM. - This parameter must be a value of @ref FLASHEx_OB_TCM_AXI_SHARED */ -#endif /* FLASH_OPTSR2_TCM_AXI_SHARED */ - -#if defined (FLASH_OPTSR2_CPUFREQ_BOOST) - uint32_t FreqBoostState; /*!< Specifies the state of CPU Frequency Boost. - This parameter must be a value of @ref FLASHEx_OB_CPUFREQ_BOOST */ -#endif /* FLASH_OPTSR2_CPUFREQ_BOOST */ - -} FLASH_OBProgramInitTypeDef; - -/** - * @brief FLASH Erase structure definition - */ -typedef struct -{ - uint32_t TypeCRC; /*!< CRC Selection Type. - This parameter can be a value of @ref FLASHEx_CRC_Selection_Type */ - - uint32_t BurstSize; /*!< CRC Burst Size. - This parameter can be a value of @ref FLASHEx_CRC_Burst_Size */ - - uint32_t Bank; /*!< Select bank where CRC computation is enabled. - This parameter must be FLASH_BANK_1 or FLASH_BANK_2 */ - - uint32_t Sector; /*!< Initial FLASH sector from which starts the CRC computation - This parameter must be a value of @ref FLASH_Sectors */ - - uint32_t NbSectors; /*!< Number of sectors to be computed. - This parameter must be a value between 1 and (max number of sectors - value of Initial sector)*/ - - uint32_t CRCStartAddr; /*!< CRC Start address. - This parameter must be a value between begin address and end address of a bank */ - - uint32_t CRCEndAddr; /*!< CRC End address. - This parameter must be a value between CRC Start address and end address of a bank */ - -} FLASH_CRCInitTypeDef; - -/** - * @} - */ -/* Exported constants --------------------------------------------------------*/ - -/** @defgroup FLASHEx_Exported_Constants FLASH Exported Constants - * @{ - */ - -/** @defgroup FLASHEx_Type_Erase FLASH Type Erase - * @{ - */ -#define FLASH_TYPEERASE_SECTORS 0x00U /*!< Sectors erase only */ -#define FLASH_TYPEERASE_MASSERASE 0x01U /*!< Flash Mass erase activation */ -/** - * @} - */ - -#if defined (FLASH_CR_PSIZE) -/** @defgroup FLASHEx_Voltage_Range FLASH Voltage Range - * @{ - */ -#define FLASH_VOLTAGE_RANGE_1 0x00000000U /*!< Flash program/erase by 8 bits */ -#define FLASH_VOLTAGE_RANGE_2 FLASH_CR_PSIZE_0 /*!< Flash program/erase by 16 bits */ -#define FLASH_VOLTAGE_RANGE_3 FLASH_CR_PSIZE_1 /*!< Flash program/erase by 32 bits */ -#define FLASH_VOLTAGE_RANGE_4 FLASH_CR_PSIZE /*!< Flash program/erase by 64 bits */ -/** - * @} - */ -#endif /* FLASH_CR_PSIZE */ - -/** @defgroup FLASHEx_WRP_State FLASH WRP State - * @{ - */ -#define OB_WRPSTATE_DISABLE 0x00000000U /*!< Disable the write protection of the desired bank 1 sectors */ -#define OB_WRPSTATE_ENABLE 0x00000001U /*!< Enable the write protection of the desired bank 1 sectors */ -/** - * @} - */ - -/** @defgroup FLASHEx_Option_Type FLASH Option Type - * @{ - */ -#define OPTIONBYTE_WRP 0x01U /*!< WRP option byte configuration */ -#define OPTIONBYTE_RDP 0x02U /*!< RDP option byte configuration */ -#define OPTIONBYTE_USER 0x04U /*!< USER option byte configuration */ -#define OPTIONBYTE_PCROP 0x08U /*!< PCROP option byte configuration */ -#define OPTIONBYTE_BOR 0x10U /*!< BOR option byte configuration */ -#define OPTIONBYTE_SECURE_AREA 0x20U /*!< secure area option byte configuration */ -#if defined (DUAL_CORE) -#define OPTIONBYTE_CM7_BOOTADD 0x40U /*!< CM7 BOOT ADD option byte configuration */ -#define OPTIONBYTE_CM4_BOOTADD 0x80U /*!< CM4 BOOT ADD option byte configuration */ -#define OPTIONBYTE_BOOTADD OPTIONBYTE_CM7_BOOTADD /*!< BOOT ADD option byte configuration */ -#else /* Single core */ -#define OPTIONBYTE_BOOTADD 0x40U /*!< BOOT ADD option byte configuration */ -#endif /*DUAL_CORE*/ -#if defined (FLASH_OTPBL_LOCKBL) -#define OPTIONBYTE_OTP_LOCK 0x80U /*!< OTP Lock option byte configuration */ -#endif /* FLASH_OTPBL_LOCKBL */ -#if defined (FLASH_OPTSR2_TCM_AXI_SHARED) -#define OPTIONBYTE_SHARED_RAM 0x100U /*!< TCM / AXI Shared RAM option byte configuration */ -#endif /* FLASH_OPTSR2_TCM_AXI_SHARED */ -#if defined (FLASH_OPTSR2_CPUFREQ_BOOST) -#define OPTIONBYTE_FREQ_BOOST 0x200U /*!< CPU Frequency Boost option byte configuration */ -#endif /* FLASH_OPTSR2_CPUFREQ_BOOST */ - -#if defined (DUAL_CORE) -#define OPTIONBYTE_ALL (OPTIONBYTE_WRP | OPTIONBYTE_RDP | OPTIONBYTE_USER |\ - OPTIONBYTE_PCROP | OPTIONBYTE_BOR | OPTIONBYTE_SECURE_AREA |\ - OPTIONBYTE_CM7_BOOTADD | OPTIONBYTE_CM4_BOOTADD) /*!< All option byte configuration */ -#elif defined (FLASH_OTPBL_LOCKBL) -#define OPTIONBYTE_ALL (OPTIONBYTE_WRP | OPTIONBYTE_RDP | OPTIONBYTE_USER |\ - OPTIONBYTE_PCROP | OPTIONBYTE_BOR | OPTIONBYTE_SECURE_AREA |\ - OPTIONBYTE_BOOTADD | OPTIONBYTE_OTP_LOCK) /*!< All option byte configuration */ -#elif defined (FLASH_OPTSR2_TCM_AXI_SHARED) -#define OPTIONBYTE_ALL (OPTIONBYTE_WRP | OPTIONBYTE_RDP | OPTIONBYTE_USER |\ - OPTIONBYTE_PCROP | OPTIONBYTE_BOR | OPTIONBYTE_SECURE_AREA |\ - OPTIONBYTE_BOOTADD | OPTIONBYTE_SHARED_RAM | OPTIONBYTE_FREQ_BOOST) /*!< All option byte configuration */ -#else -#define OPTIONBYTE_ALL (OPTIONBYTE_WRP | OPTIONBYTE_RDP | OPTIONBYTE_USER |\ - OPTIONBYTE_PCROP | OPTIONBYTE_BOR | OPTIONBYTE_SECURE_AREA |\ - OPTIONBYTE_BOOTADD) /*!< All option byte configuration */ -#endif /* DUAL_CORE */ -/** - * @} - */ - -/** @defgroup FLASHEx_Option_Bytes_Read_Protection FLASH Option Bytes Read Protection - * @{ - */ -#define OB_RDP_LEVEL_0 0xAA00U -#define OB_RDP_LEVEL_1 0x5500U -#define OB_RDP_LEVEL_2 0xCC00U /*!< Warning: When enabling read protection level 2 - it s no more possible to go back to level 1 or 0 */ -/** - * @} - */ - -/** @defgroup FLASHEx_Option_Bytes_IWatchdog FLASH Option Bytes IWatchdog - * @{ - */ -#define OB_IWDG_SW OB_IWDG1_SW /*!< Software IWDG selected */ -#define OB_IWDG_HW OB_IWDG1_HW /*!< Hardware IWDG selected */ -/** - * @} - */ - -/** @defgroup FLASHEx_Option_Bytes_nRST_STOP FLASH Option Bytes nRST_STOP - * @{ - */ -#define OB_STOP_NO_RST 0x40U /*!< No reset generated when entering in STOP */ -#define OB_STOP_RST 0x00U /*!< Reset generated when entering in STOP */ -/** - * @} - */ - -/** @defgroup FLASHEx_Option_Bytes_nRST_STDBY FLASH Option Bytes nRST_STDBY - * @{ - */ -#define OB_STDBY_NO_RST 0x80U /*!< No reset generated when entering in STANDBY */ -#define OB_STDBY_RST 0x00U /*!< Reset generated when entering in STANDBY */ -/** - * @} - */ - -/** @defgroup FLASHEx_Option_Bytes_IWDG_FREEZE_STOP FLASH IWDG Counter Freeze in STOP - * @{ - */ -#define OB_IWDG_STOP_FREEZE 0x00000000U /*!< Freeze IWDG counter in STOP mode */ -#define OB_IWDG_STOP_ACTIVE FLASH_OPTSR_FZ_IWDG_STOP /*!< IWDG counter active in STOP mode */ -/** - * @} - */ - -/** @defgroup FLASHEx_Option_Bytes_IWDG_FREEZE_SANDBY FLASH IWDG Counter Freeze in STANDBY - * @{ - */ -#define OB_IWDG_STDBY_FREEZE 0x00000000U /*!< Freeze IWDG counter in STANDBY mode */ -#define OB_IWDG_STDBY_ACTIVE FLASH_OPTSR_FZ_IWDG_SDBY /*!< IWDG counter active in STANDBY mode */ -/** - * @} - */ - -/** @defgroup FLASHEx_BOR_Reset_Level FLASH BOR Reset Level - * @{ - */ -#define OB_BOR_LEVEL0 0x00000000U /*!< Reset level threshold is set to 1.6V */ -#define OB_BOR_LEVEL1 FLASH_OPTSR_BOR_LEV_0 /*!< Reset level threshold is set to 2.1V */ -#define OB_BOR_LEVEL2 FLASH_OPTSR_BOR_LEV_1 /*!< Reset level threshold is set to 2.4V */ -#define OB_BOR_LEVEL3 (FLASH_OPTSR_BOR_LEV_1 | FLASH_OPTSR_BOR_LEV_0) /*!< Reset level threshold is set to 2.7V */ -/** - * @} - */ - - - -/** @defgroup FLASHEx_Boot_Address FLASH Boot Address - * @{ - */ -#define OB_BOOTADDR_ITCM_RAM 0x0000U /*!< Boot from ITCM RAM (0x00000000) */ -#define OB_BOOTADDR_SYSTEM 0x0040U /*!< Boot from System memory bootloader (0x00100000) */ -#define OB_BOOTADDR_ITCM_FLASH 0x0080U /*!< Boot from Flash on ITCM interface (0x00200000) */ -#define OB_BOOTADDR_AXIM_FLASH 0x2000U /*!< Boot from Flash on AXIM interface (0x08000000) */ -#define OB_BOOTADDR_DTCM_RAM 0x8000U /*!< Boot from DTCM RAM (0x20000000) */ -#define OB_BOOTADDR_SRAM1 0x8004U /*!< Boot from SRAM1 (0x20010000) */ -#define OB_BOOTADDR_SRAM2 0x8013U /*!< Boot from SRAM2 (0x2004C000) */ -/** - * @} - */ - -/** @defgroup FLASH_Latency FLASH Latency - * @{ - */ -#define FLASH_LATENCY_0 FLASH_ACR_LATENCY_0WS /*!< FLASH Zero Latency cycle */ -#define FLASH_LATENCY_1 FLASH_ACR_LATENCY_1WS /*!< FLASH One Latency cycle */ -#define FLASH_LATENCY_2 FLASH_ACR_LATENCY_2WS /*!< FLASH Two Latency cycles */ -#define FLASH_LATENCY_3 FLASH_ACR_LATENCY_3WS /*!< FLASH Three Latency cycles */ -#define FLASH_LATENCY_4 FLASH_ACR_LATENCY_4WS /*!< FLASH Four Latency cycles */ -#define FLASH_LATENCY_5 FLASH_ACR_LATENCY_5WS /*!< FLASH Five Latency cycles */ -#define FLASH_LATENCY_6 FLASH_ACR_LATENCY_6WS /*!< FLASH Six Latency cycles */ -#define FLASH_LATENCY_7 FLASH_ACR_LATENCY_7WS /*!< FLASH Seven Latency cycles */ - -/* Unused FLASH Latency defines */ -#define FLASH_LATENCY_8 FLASH_ACR_LATENCY_8WS /*!< FLASH Eight Latency cycle */ -#define FLASH_LATENCY_9 FLASH_ACR_LATENCY_9WS /*!< FLASH Nine Latency cycle */ -#define FLASH_LATENCY_10 FLASH_ACR_LATENCY_10WS /*!< FLASH Ten Latency cycles */ -#define FLASH_LATENCY_11 FLASH_ACR_LATENCY_11WS /*!< FLASH Eleven Latency cycles */ -#define FLASH_LATENCY_12 FLASH_ACR_LATENCY_12WS /*!< FLASH Twelve Latency cycles */ -#define FLASH_LATENCY_13 FLASH_ACR_LATENCY_13WS /*!< FLASH Thirteen Latency cycles */ -#define FLASH_LATENCY_14 FLASH_ACR_LATENCY_14WS /*!< FLASH Fourteen Latency cycles */ -#define FLASH_LATENCY_15 FLASH_ACR_LATENCY_15WS /*!< FLASH Fifteen Latency cycles */ -/** - * @} - */ - -/** @defgroup FLASHEx_Banks FLASH Banks - * @{ - */ -#define FLASH_BANK_1 0x01U /*!< Bank 1 */ -#if defined (DUAL_BANK) -#define FLASH_BANK_2 0x02U /*!< Bank 2 */ -#define FLASH_BANK_BOTH (FLASH_BANK_1 | FLASH_BANK_2) /*!< Bank1 and Bank2 */ -#endif /* DUAL_BANK */ -/** - * @} - */ - -/** @defgroup FLASHEx_OB_PCROP_RDP FLASHEx OB PCROP RDP - * @{ - */ -#define OB_PCROP_RDP_NOT_ERASE 0x00000000U /*!< PCROP area is not erased when the RDP level - is decreased from Level 1 to Level 0 or during a mass erase */ -#define OB_PCROP_RDP_ERASE FLASH_PRAR_DMEP /*!< PCROP area is erased when the RDP level is - decreased from Level 1 to Level 0 (full mass erase) */ - -/** - * @} - */ - -/** @defgroup FLASHEx_Option_Bytes_Write_Protection FLASH Option Bytes Write Protection - * @{ - */ -#if (FLASH_SECTOR_TOTAL == 128) -#define OB_WRP_SECTOR_0TO3 0x00000001U /*!< Write protection of Sector0 to Sector3 */ -#define OB_WRP_SECTOR_4TO7 0x00000002U /*!< Write protection of Sector4 to Sector7 */ -#define OB_WRP_SECTOR_8TO11 0x00000004U /*!< Write protection of Sector8 to Sector11 */ -#define OB_WRP_SECTOR_12TO15 0x00000008U /*!< Write protection of Sector12 to Sector15 */ -#define OB_WRP_SECTOR_16TO19 0x00000010U /*!< Write protection of Sector16 to Sector19 */ -#define OB_WRP_SECTOR_20TO23 0x00000020U /*!< Write protection of Sector20 to Sector23 */ -#define OB_WRP_SECTOR_24TO27 0x00000040U /*!< Write protection of Sector24 to Sector27 */ -#define OB_WRP_SECTOR_28TO31 0x00000080U /*!< Write protection of Sector28 to Sector31 */ -#define OB_WRP_SECTOR_32TO35 0x00000100U /*!< Write protection of Sector32 to Sector35 */ -#define OB_WRP_SECTOR_36TO39 0x00000200U /*!< Write protection of Sector36 to Sector39 */ -#define OB_WRP_SECTOR_40TO43 0x00000400U /*!< Write protection of Sector40 to Sector43 */ -#define OB_WRP_SECTOR_44TO47 0x00000800U /*!< Write protection of Sector44 to Sector47 */ -#define OB_WRP_SECTOR_48TO51 0x00001000U /*!< Write protection of Sector48 to Sector51 */ -#define OB_WRP_SECTOR_52TO55 0x00002000U /*!< Write protection of Sector52 to Sector55 */ -#define OB_WRP_SECTOR_56TO59 0x00004000U /*!< Write protection of Sector56 to Sector59 */ -#define OB_WRP_SECTOR_60TO63 0x00008000U /*!< Write protection of Sector60 to Sector63 */ -#define OB_WRP_SECTOR_64TO67 0x00010000U /*!< Write protection of Sector64 to Sector67 */ -#define OB_WRP_SECTOR_68TO71 0x00020000U /*!< Write protection of Sector68 to Sector71 */ -#define OB_WRP_SECTOR_72TO75 0x00040000U /*!< Write protection of Sector72 to Sector75 */ -#define OB_WRP_SECTOR_76TO79 0x00080000U /*!< Write protection of Sector76 to Sector79 */ -#define OB_WRP_SECTOR_80TO83 0x00100000U /*!< Write protection of Sector80 to Sector83 */ -#define OB_WRP_SECTOR_84TO87 0x00200000U /*!< Write protection of Sector84 to Sector87 */ -#define OB_WRP_SECTOR_88TO91 0x00400000U /*!< Write protection of Sector88 to Sector91 */ -#define OB_WRP_SECTOR_92TO95 0x00800000U /*!< Write protection of Sector92 to Sector95 */ -#define OB_WRP_SECTOR_96TO99 0x01000000U /*!< Write protection of Sector96 to Sector99 */ -#define OB_WRP_SECTOR_100TO103 0x02000000U /*!< Write protection of Sector100 to Sector103 */ -#define OB_WRP_SECTOR_104TO107 0x04000000U /*!< Write protection of Sector104 to Sector107 */ -#define OB_WRP_SECTOR_108TO111 0x08000000U /*!< Write protection of Sector108 to Sector111 */ -#define OB_WRP_SECTOR_112TO115 0x10000000U /*!< Write protection of Sector112 to Sector115 */ -#define OB_WRP_SECTOR_116TO119 0x20000000U /*!< Write protection of Sector116 to Sector119 */ -#define OB_WRP_SECTOR_120TO123 0x40000000U /*!< Write protection of Sector120 to Sector123 */ -#define OB_WRP_SECTOR_124TO127 0x80000000U /*!< Write protection of Sector124 to Sector127 */ -#define OB_WRP_SECTOR_ALL 0xFFFFFFFFU /*!< Write protection of all Sectors */ -#else -#define OB_WRP_SECTOR_0 0x00000001U /*!< Write protection of Sector0 */ -#define OB_WRP_SECTOR_1 0x00000002U /*!< Write protection of Sector1 */ -#define OB_WRP_SECTOR_2 0x00000004U /*!< Write protection of Sector2 */ -#define OB_WRP_SECTOR_3 0x00000008U /*!< Write protection of Sector3 */ -#define OB_WRP_SECTOR_4 0x00000010U /*!< Write protection of Sector4 */ -#define OB_WRP_SECTOR_5 0x00000020U /*!< Write protection of Sector5 */ -#define OB_WRP_SECTOR_6 0x00000040U /*!< Write protection of Sector6 */ -#define OB_WRP_SECTOR_7 0x00000080U /*!< Write protection of Sector7 */ -#define OB_WRP_SECTOR_ALL 0x000000FFU /*!< Write protection of all Sectors */ -#endif /* FLASH_SECTOR_TOTAL == 128 */ -/** - * @} - */ - -/** @defgroup FLASHEx_OB_SECURITY FLASHEx OB SECURITY - * @{ - */ -#define OB_SECURITY_DISABLE 0x00000000U /*!< security enabled */ -#define OB_SECURITY_ENABLE FLASH_OPTSR_SECURITY /*!< security disabled */ -/** - * @} - */ - -/** @defgroup FLASHEx_OB_ST_RAM_SIZE FLASHEx OB ST RAM SIZE - * @{ - */ -#define OB_ST_RAM_SIZE_2KB 0x00000000U /*!< 2 Kbytes reserved to ST code */ -#define OB_ST_RAM_SIZE_4KB FLASH_OPTSR_ST_RAM_SIZE_0 /*!< 4 Kbytes reserved to ST code */ -#define OB_ST_RAM_SIZE_8KB FLASH_OPTSR_ST_RAM_SIZE_1 /*!< 8 Kbytes reserved to ST code */ -#define OB_ST_RAM_SIZE_16KB FLASH_OPTSR_ST_RAM_SIZE /*!< 16 Kbytes reserved to ST code */ -/** - * @} - */ - -#if defined(DUAL_CORE) -/** @defgroup FLASHEx_OB_BCM7 FLASHEx OB BCM7 - * @{ - */ -#define OB_BCM7_DISABLE 0x00000000U /*!< CM7 Boot disabled */ -#define OB_BCM7_ENABLE FLASH_OPTSR_BCM7 /*!< CM7 Boot enabled */ - -/** - * @} - */ - -/** @defgroup FLASHEx_OB_BCM4 FLASHEx OB BCM4 - * @{ - */ -#define OB_BCM4_DISABLE 0x00000000U /*!< CM4 Boot disabled */ -#define OB_BCM4_ENABLE FLASH_OPTSR_BCM4 /*!< CM4 Boot enabled */ -/** - * @} - */ -#endif /* DUAL_CORE */ - -/** @defgroup FLASHEx_OB_IWDG1_SW FLASHEx OB IWDG1 SW - * @{ - */ -#define OB_IWDG1_SW FLASH_OPTSR_IWDG1_SW /*!< Hardware independent watchdog 1 */ -#define OB_IWDG1_HW 0x00000000U /*!< Software independent watchdog 1 */ -/** - * @} - */ - -#if defined(DUAL_CORE) -/** @defgroup FLASHEx_OB_IWDG2_SW FLASHEx OB IWDG2 SW - * @{ - */ -#define OB_IWDG2_SW FLASH_OPTSR_IWDG2_SW /*!< Hardware independent watchdog 2*/ -#define OB_IWDG2_HW 0x00000000U /*!< Software independent watchdog 2*/ -/** - * @} - */ -#endif - -/** @defgroup FLASHEx_OB_NRST_STOP_D1 FLASHEx OB NRST STOP D1 - * @{ - */ -#define OB_STOP_RST_D1 0x00000000U /*!< Reset generated when entering the D1 to stop mode */ -#define OB_STOP_NO_RST_D1 FLASH_OPTSR_NRST_STOP_D1 /*!< No reset generated when entering the D1 to stop mode */ -/** - * @} - */ - -/** @defgroup FLASHEx_OB_NRST_STDBY_D1 FLASHEx OB NRST STDBY D1 - * @{ - */ -#define OB_STDBY_RST_D1 0x00000000U /*!< Reset generated when entering the D1 to standby mode */ -#define OB_STDBY_NO_RST_D1 FLASH_OPTSR_NRST_STBY_D1 /*!< No reset generated when entering the D1 to standby mode */ -/** - * @} - */ - -#if defined (FLASH_OPTSR_NRST_STOP_D2) -/** @defgroup FLASHEx_OB_NRST_STOP_D2 FLASHEx OB NRST STOP D2 - * @{ - */ -#define OB_STOP_RST_D2 0x00000000U /*!< Reset generated when entering the D2 to stop mode */ -#define OB_STOP_NO_RST_D2 FLASH_OPTSR_NRST_STOP_D2 /*!< No reset generated when entering the D2 to stop mode */ -/** - * @} - */ - -/** @defgroup FLASHEx_OB_NRST_STDBY_D2 FLASHEx OB NRST STDBY D2 - * @{ - */ -#define OB_STDBY_RST_D2 0x00000000U /*!< Reset generated when entering the D2 to standby mode */ -#define OB_STDBY_NO_RST_D2 FLASH_OPTSR_NRST_STBY_D2 /*!< No reset generated when entering the D2 to standby mode */ -/** - * @} - */ -#endif /* FLASH_OPTSR_NRST_STOP_D2 */ - -#if defined (DUAL_BANK) -/** @defgroup FLASHEx_OB_SWAP_BANK FLASHEx OB SWAP BANK - * @{ - */ -#define OB_SWAP_BANK_DISABLE 0x00000000U /*!< Bank swap disabled */ -#define OB_SWAP_BANK_ENABLE FLASH_OPTSR_SWAP_BANK_OPT /*!< Bank swap enabled */ -/** - * @} - */ -#endif /* DUAL_BANK */ - -/** @defgroup FLASHEx_OB_IOHSLV FLASHEx OB IOHSLV - * @{ - */ -#define OB_IOHSLV_DISABLE 0x00000000U /*!< IOHSLV disabled */ -#define OB_IOHSLV_ENABLE FLASH_OPTSR_IO_HSLV /*!< IOHSLV enabled */ -/** - * @} - */ - -#if defined (FLASH_OPTSR_VDDMMC_HSLV) -/** @defgroup FLASHEx_OB_VDDMMC_HSLV FLASHEx OB VDDMMC HSLV - * @{ - */ -#define OB_VDDMMC_HSLV_DISABLE 0x00000000U /*!< VDDMMC HSLV disabled */ -#define OB_VDDMMC_HSLV_ENABLE FLASH_OPTSR_VDDMMC_HSLV /*!< VDDMMC HSLV enabled */ -/** - * @} - */ -#endif /* FLASH_OPTSR_VDDMMC_HSLV */ - -#if defined (FLASH_OPTSR2_CPUFREQ_BOOST) -/** @defgroup FLASHEx_OB_CPUFREQ_BOOST FLASHEx OB CPUFREQ BOOST - * @{ - */ -#define OB_CPUFREQ_BOOST_DISABLE 0x00000000U /*!< CPUFREQ BOOST disabled */ -#define OB_CPUFREQ_BOOST_ENABLE FLASH_OPTSR2_CPUFREQ_BOOST /*!< CPUFREQ BOOST enabled */ -/** - * @} - */ -#endif /* FLASH_OPTSR2_CPUFREQ_BOOST */ - -#if defined (FLASH_OPTSR2_TCM_AXI_SHARED) -/** @defgroup FLASHEx_OB_TCM_AXI_SHARED FLASHEx OB TCM AXI SHARED - * @{ - */ -#define OB_TCM_AXI_SHARED_ITCM64KB 0x00000000U /*!< 64KB ITCM / 320KB system AXI */ -#define OB_TCM_AXI_SHARED_ITCM128KB FLASH_OPTSR2_TCM_AXI_SHARED_0 /*!< 128KB ITCM / 256KB system AXI */ -#define OB_TCM_AXI_SHARED_ITCM192KB FLASH_OPTSR2_TCM_AXI_SHARED_1 /*!< 192KB ITCM / 192KB system AXI */ -#define OB_TCM_AXI_SHARED_ITCM256KB FLASH_OPTSR2_TCM_AXI_SHARED /*!< 256KB ITCM / 128KB system AXI */ -/** - * @} - */ -#endif /* FLASH_OPTSR2_TCM_AXI_SHARED */ - - /** @defgroup FLASHEx_OB_USER_Type FLASHEx OB USER Type - * @{ - */ -#define OB_USER_IWDG1_SW 0x0001U /*!< Independent watchdog selection */ -#define OB_USER_NRST_STOP_D1 0x0002U /*!< Reset when entering Stop mode selection*/ -#define OB_USER_NRST_STDBY_D1 0x0004U /*!< Reset when entering standby mode selection*/ -#define OB_USER_IWDG_STOP 0x0008U /*!< Independent watchdog counter freeze in stop mode */ -#define OB_USER_IWDG_STDBY 0x0010U /*!< Independent watchdog counter freeze in standby mode */ -#define OB_USER_ST_RAM_SIZE 0x0020U /*!< dedicated DTCM Ram size selection */ -#define OB_USER_SECURITY 0x0040U /*!< security selection */ -#define OB_USER_IOHSLV 0x0080U /*!< IO HSLV selection */ -#if defined (DUAL_BANK) -#define OB_USER_SWAP_BANK 0x0100U /*!< Bank swap selection */ -#endif /* DUAL_BANK */ -#if defined (FLASH_OPTSR_VDDMMC_HSLV) -#define OB_USER_VDDMMC_HSLV 0x0200U /*!< VDDMMC HSLV selection */ -#endif /* FLASH_OPTSR_VDDMMC_HSLV */ -#if defined (DUAL_CORE) -#define OB_USER_IWDG2_SW 0x0200U /*!< Window watchdog selection */ -#define OB_USER_BCM4 0x0400U /*!< CM4 boot selection */ -#define OB_USER_BCM7 0x0800U /*!< CM7 boot selection */ -#endif /*DUAL_CORE*/ -#if defined (FLASH_OPTSR_NRST_STOP_D2) -#define OB_USER_NRST_STOP_D2 0x1000U /*!< Reset when entering Stop mode selection */ -#define OB_USER_NRST_STDBY_D2 0x2000U /*!< Reset when entering standby mode selection */ -#endif /* FLASH_OPTSR_NRST_STOP_D2 */ - -#if defined (DUAL_CORE) -#define OB_USER_ALL (OB_USER_IWDG1_SW | OB_USER_NRST_STOP_D1 | OB_USER_NRST_STDBY_D1 |\ - OB_USER_IWDG_STOP | OB_USER_IWDG_STDBY | OB_USER_ST_RAM_SIZE |\ - OB_USER_SECURITY | OB_USER_IOHSLV | OB_USER_SWAP_BANK |\ - OB_USER_IWDG2_SW | OB_USER_BCM4 | OB_USER_BCM7 |\ - OB_USER_NRST_STOP_D2 | OB_USER_NRST_STDBY_D2) -#elif defined (FLASH_OPTSR_VDDMMC_HSLV) -#if defined (DUAL_BANK) -#define OB_USER_ALL (OB_USER_IWDG1_SW | OB_USER_NRST_STOP_D1 | OB_USER_NRST_STDBY_D1 |\ - OB_USER_IWDG_STOP | OB_USER_IWDG_STDBY | OB_USER_ST_RAM_SIZE |\ - OB_USER_SECURITY | OB_USER_IOHSLV | OB_USER_SWAP_BANK |\ - OB_USER_VDDMMC_HSLV) -#else -#define OB_USER_ALL (OB_USER_IWDG1_SW | OB_USER_NRST_STOP_D1 | OB_USER_NRST_STDBY_D1 |\ - OB_USER_IWDG_STOP | OB_USER_IWDG_STDBY | OB_USER_ST_RAM_SIZE |\ - OB_USER_SECURITY | OB_USER_IOHSLV |\ - OB_USER_VDDMMC_HSLV) -#endif /* DUAL_BANK */ -#elif defined (FLASH_OPTSR2_TCM_AXI_SHARED) -#define OB_USER_ALL (OB_USER_IWDG1_SW | OB_USER_NRST_STOP_D1 | OB_USER_NRST_STDBY_D1 |\ - OB_USER_IWDG_STOP | OB_USER_IWDG_STDBY | OB_USER_ST_RAM_SIZE |\ - OB_USER_SECURITY | OB_USER_IOHSLV |\ - OB_USER_NRST_STOP_D2 | OB_USER_NRST_STDBY_D2) -#else /* Single core */ -#if defined (DUAL_BANK) -#define OB_USER_ALL (OB_USER_IWDG1_SW | OB_USER_NRST_STOP_D1 | OB_USER_NRST_STDBY_D1 |\ - OB_USER_IWDG_STOP | OB_USER_IWDG_STDBY | OB_USER_ST_RAM_SIZE |\ - OB_USER_SECURITY | OB_USER_IOHSLV | OB_USER_SWAP_BANK ) -#else -#define OB_USER_ALL (OB_USER_IWDG1_SW | OB_USER_NRST_STOP_D1 | OB_USER_NRST_STDBY_D1 |\ - OB_USER_IWDG_STOP | OB_USER_IWDG_STDBY | OB_USER_ST_RAM_SIZE |\ - OB_USER_SECURITY | OB_USER_IOHSLV ) -#endif /* DUAL_BANK */ -#endif /* DUAL_CORE */ -/** - * @} - */ - -/** @defgroup FLASHEx_OB_BOOT_OPTION FLASHEx OB BOOT OPTION - * @{ - */ -#define OB_BOOT_ADD0 0x01U /*!< Select Boot Address 0 */ -#define OB_BOOT_ADD1 0x02U /*!< Select Boot Address 1 */ -#define OB_BOOT_ADD_BOTH 0x03U /*!< Select Boot Address 0 and 1 */ -/** - * @} - */ - -/** @defgroup FLASHEx_OB_SECURE_RDP FLASHEx OB SECURE RDP - * @{ - */ -#define OB_SECURE_RDP_NOT_ERASE 0x00000000U /*!< Secure area is not erased when the RDP level - is decreased from Level 1 to Level 0 or during a mass erase */ -#define OB_SECURE_RDP_ERASE FLASH_SCAR_DMES /*!< Secure area is erased when the RDP level is - decreased from Level 1 to Level 0 (full mass erase) */ -/** - * @} - */ - -/** @defgroup FLASHEx_CRC_Selection_Type FLASH CRC Selection Type - * @{ - */ -#define FLASH_CRC_ADDR 0x00000000U /*!< CRC selection type by address */ -#define FLASH_CRC_SECTORS FLASH_CRCCR_CRC_BY_SECT /*!< CRC selection type by sectors */ -#define FLASH_CRC_BANK (FLASH_CRCCR_ALL_BANK | FLASH_CRCCR_CRC_BY_SECT) /*!< CRC selection type by bank */ -/** - * @} - */ - -/** @defgroup FLASHEx_CRC_Burst_Size FLASH CRC Burst Size - * @{ - */ -#define FLASH_CRC_BURST_SIZE_4 0x00000000U /*!< Every burst has a size of 4 Flash words (256-bit) */ -#define FLASH_CRC_BURST_SIZE_16 FLASH_CRCCR_CRC_BURST_0 /*!< Every burst has a size of 16 Flash words (256-bit) */ -#define FLASH_CRC_BURST_SIZE_64 FLASH_CRCCR_CRC_BURST_1 /*!< Every burst has a size of 64 Flash words (256-bit) */ -#define FLASH_CRC_BURST_SIZE_256 FLASH_CRCCR_CRC_BURST /*!< Every burst has a size of 256 Flash words (256-bit) */ -/** - * @} - */ - -/** @defgroup FLASHEx_Programming_Delay FLASH Programming Delay - * @{ - */ -#define FLASH_PROGRAMMING_DELAY_0 0x00000000U /*!< programming delay set for Flash running at 70 MHz or below */ -#define FLASH_PROGRAMMING_DELAY_1 FLASH_ACR_WRHIGHFREQ_0 /*!< programming delay set for Flash running between 70 MHz and 185 MHz */ -#define FLASH_PROGRAMMING_DELAY_2 FLASH_ACR_WRHIGHFREQ_1 /*!< programming delay set for Flash running between 185 MHz and 225 MHz */ -#define FLASH_PROGRAMMING_DELAY_3 FLASH_ACR_WRHIGHFREQ /*!< programming delay set for Flash at startup */ -/** - * @} - */ - -#if defined (FLASH_OTPBL_LOCKBL) -/** @defgroup FLASHEx_OTP_Blocks FLASH OTP blocks - * @{ - */ -#define FLASH_OTP_BLOCK_0 0x00000001U /*!< OTP Block0 */ -#define FLASH_OTP_BLOCK_1 0x00000002U /*!< OTP Block1 */ -#define FLASH_OTP_BLOCK_2 0x00000004U /*!< OTP Block2 */ -#define FLASH_OTP_BLOCK_3 0x00000008U /*!< OTP Block3 */ -#define FLASH_OTP_BLOCK_4 0x00000010U /*!< OTP Block4 */ -#define FLASH_OTP_BLOCK_5 0x00000020U /*!< OTP Block5 */ -#define FLASH_OTP_BLOCK_6 0x00000040U /*!< OTP Block6 */ -#define FLASH_OTP_BLOCK_7 0x00000080U /*!< OTP Block7 */ -#define FLASH_OTP_BLOCK_8 0x00000100U /*!< OTP Block8 */ -#define FLASH_OTP_BLOCK_9 0x00000200U /*!< OTP Block9 */ -#define FLASH_OTP_BLOCK_10 0x00000400U /*!< OTP Block10 */ -#define FLASH_OTP_BLOCK_11 0x00000800U /*!< OTP Block11 */ -#define FLASH_OTP_BLOCK_12 0x00001000U /*!< OTP Block12 */ -#define FLASH_OTP_BLOCK_13 0x00002000U /*!< OTP Block13 */ -#define FLASH_OTP_BLOCK_14 0x00004000U /*!< OTP Block14 */ -#define FLASH_OTP_BLOCK_15 0x00008000U /*!< OTP Block15 */ -#define FLASH_OTP_BLOCK_ALL 0x0000FFFFU /*!< OTP All Blocks */ -/** - * @} - */ -#endif /* FLASH_OTPBL_LOCKBL */ -/** - * @} - */ - -/* Exported macro ------------------------------------------------------------*/ -/** @defgroup FLASHEx_Exported_Macros FLASH Exported Macros - * @{ - */ -/** - * @brief Calculate the FLASH Boot Base Address (BOOT_ADD0 or BOOT_ADD1) - * @note Returned value BOOT_ADDx[15:0] corresponds to boot address [29:14]. - * @param __ADDRESS__: FLASH Boot Address (in the range 0x0000 0000 to 0x2004 FFFF with a granularity of 16KB) - * @retval The FLASH Boot Base Address - */ -#define __HAL_FLASH_CALC_BOOT_BASE_ADR(__ADDRESS__) ((__ADDRESS__) >> 14U) - -#if defined (FLASH_CR_PSIZE) -/** - * @brief Set the FLASH Program/Erase parallelism. - * @param __PSIZE__ FLASH Program/Erase parallelism - * This parameter can be a value of @ref FLASH_Program_Parallelism - * @param __BANK__: Flash bank (FLASH_BANK_1 or FLASH_BANK_2) - * @retval none - */ -#if defined (DUAL_BANK) -#define __HAL_FLASH_SET_PSIZE(__PSIZE__, __BANK__) (((__BANK__) == FLASH_BANK_1) ? \ - MODIFY_REG(FLASH->CR1, FLASH_CR_PSIZE, (__PSIZE__)) : \ - MODIFY_REG(FLASH->CR2, FLASH_CR_PSIZE, (__PSIZE__))) -#else -#define __HAL_FLASH_SET_PSIZE(__PSIZE__, __BANK__) MODIFY_REG(FLASH->CR1, FLASH_CR_PSIZE, (__PSIZE__)) -#endif /* DUAL_BANK */ - -/** - * @brief Get the FLASH Program/Erase parallelism. - * @param __BANK__ Flash bank (FLASH_BANK_1 or FLASH_BANK_2) - * @retval FLASH Program/Erase parallelism - * This return value can be a value of @ref FLASH_Program_Parallelism - */ -#if defined (DUAL_BANK) -#define __HAL_FLASH_GET_PSIZE(__BANK__) (((__BANK__) == FLASH_BANK_1) ? \ - READ_BIT((FLASH->CR1), FLASH_CR_PSIZE) : \ - READ_BIT((FLASH->CR2), FLASH_CR_PSIZE)) -#else -#define __HAL_FLASH_GET_PSIZE(__BANK__) READ_BIT((FLASH->CR1), FLASH_CR_PSIZE) -#endif /* DUAL_BANK */ - -#endif /* FLASH_CR_PSIZE */ - -/** - * @brief Set the FLASH Programming Delay. - * @param __DELAY__ FLASH Programming Delay - * This parameter can be a value of @ref FLASHEx_Programming_Delay - * @retval none - */ -#define __HAL_FLASH_SET_PROGRAM_DELAY(__DELAY__) MODIFY_REG(FLASH->ACR, FLASH_ACR_WRHIGHFREQ, (__DELAY__)) - -/** - * @brief Get the FLASH Programming Delay. - * @retval FLASH Programming Delay - * This return value can be a value of @ref FLASHEx_Programming_Delay - */ -#define __HAL_FLASH_GET_PROGRAM_DELAY() READ_BIT(FLASH->ACR, FLASH_ACR_WRHIGHFREQ) - /** - * @} - */ - -/* Exported functions --------------------------------------------------------*/ -/** @addtogroup FLASHEx_Exported_Functions - * @{ - */ - -/** @addtogroup FLASHEx_Exported_Functions_Group1 - * @{ - */ -/* Extension Program operation functions *************************************/ -HAL_StatusTypeDef HAL_FLASHEx_Erase(FLASH_EraseInitTypeDef *pEraseInit, uint32_t *SectorError); -HAL_StatusTypeDef HAL_FLASHEx_Erase_IT(FLASH_EraseInitTypeDef *pEraseInit); -HAL_StatusTypeDef HAL_FLASHEx_OBProgram(FLASH_OBProgramInitTypeDef *pOBInit); -void HAL_FLASHEx_OBGetConfig(FLASH_OBProgramInitTypeDef *pOBInit); - -HAL_StatusTypeDef HAL_FLASHEx_Unlock_Bank1(void); -HAL_StatusTypeDef HAL_FLASHEx_Lock_Bank1(void); -#if defined (DUAL_BANK) -HAL_StatusTypeDef HAL_FLASHEx_Unlock_Bank2(void); -HAL_StatusTypeDef HAL_FLASHEx_Lock_Bank2(void); -#endif /* DUAL_BANK */ - -HAL_StatusTypeDef HAL_FLASHEx_ComputeCRC(FLASH_CRCInitTypeDef *pCRCInit, uint32_t *CRC_Result); - -/** - * @} - */ - -/** - * @} - */ -/* Private types -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private constants ---------------------------------------------------------*/ -/* Private macros ------------------------------------------------------------*/ -/** @defgroup FLASHEx_Private_Macros FLASHEx Private Macros - * @{ - */ - -/** @defgroup FLASHEx_IS_FLASH_Definitions FLASHEx Private macros to check input parameters - * @{ - */ - -#define IS_FLASH_TYPEERASE(VALUE) (((VALUE) == FLASH_TYPEERASE_SECTORS) || \ - ((VALUE) == FLASH_TYPEERASE_MASSERASE)) - -#if defined (FLASH_CR_PSIZE) -#define IS_VOLTAGERANGE(RANGE) (((RANGE) == FLASH_VOLTAGE_RANGE_1) || \ - ((RANGE) == FLASH_VOLTAGE_RANGE_2) || \ - ((RANGE) == FLASH_VOLTAGE_RANGE_3) || \ - ((RANGE) == FLASH_VOLTAGE_RANGE_4)) -#endif /* FLASH_CR_PSIZE */ - -#define IS_WRPSTATE(VALUE) (((VALUE) == OB_WRPSTATE_DISABLE) || \ - ((VALUE) == OB_WRPSTATE_ENABLE)) - -#define IS_OPTIONBYTE(VALUE) ((((VALUE) & OPTIONBYTE_ALL) != 0U) && \ - (((VALUE) & ~OPTIONBYTE_ALL) == 0U)) - -#define IS_OB_BOOT_ADDRESS(ADDRESS) ((ADDRESS) <= 0x8013U) - -#define IS_OB_RDP_LEVEL(LEVEL) (((LEVEL) == OB_RDP_LEVEL_0) ||\ - ((LEVEL) == OB_RDP_LEVEL_1) ||\ - ((LEVEL) == OB_RDP_LEVEL_2)) - -#define IS_OB_IWDG_SOURCE(SOURCE) (((SOURCE) == OB_IWDG_SW) || ((SOURCE) == OB_IWDG_HW)) - -#define IS_OB_STOP_SOURCE(SOURCE) (((SOURCE) == OB_STOP_NO_RST) || ((SOURCE) == OB_STOP_RST)) - -#define IS_OB_STDBY_SOURCE(SOURCE) (((SOURCE) == OB_STDBY_NO_RST) || ((SOURCE) == OB_STDBY_RST)) - -#define IS_OB_IWDG_STOP_FREEZE(FREEZE) (((FREEZE) == OB_IWDG_STOP_FREEZE) || ((FREEZE) == OB_IWDG_STOP_ACTIVE)) - -#define IS_OB_IWDG_STDBY_FREEZE(FREEZE) (((FREEZE) == OB_IWDG_STDBY_FREEZE) || ((FREEZE) == OB_IWDG_STDBY_ACTIVE)) - -#define IS_OB_BOR_LEVEL(LEVEL) (((LEVEL) == OB_BOR_LEVEL0) || ((LEVEL) == OB_BOR_LEVEL1) || \ - ((LEVEL) == OB_BOR_LEVEL2) || ((LEVEL) == OB_BOR_LEVEL3)) - -#define IS_FLASH_LATENCY(LATENCY) (((LATENCY) == FLASH_LATENCY_0) || \ - ((LATENCY) == FLASH_LATENCY_1) || \ - ((LATENCY) == FLASH_LATENCY_2) || \ - ((LATENCY) == FLASH_LATENCY_3) || \ - ((LATENCY) == FLASH_LATENCY_4) || \ - ((LATENCY) == FLASH_LATENCY_5) || \ - ((LATENCY) == FLASH_LATENCY_6) || \ - ((LATENCY) == FLASH_LATENCY_7) || \ - ((LATENCY) == FLASH_LATENCY_8) || \ - ((LATENCY) == FLASH_LATENCY_9) || \ - ((LATENCY) == FLASH_LATENCY_10) || \ - ((LATENCY) == FLASH_LATENCY_11) || \ - ((LATENCY) == FLASH_LATENCY_12) || \ - ((LATENCY) == FLASH_LATENCY_13) || \ - ((LATENCY) == FLASH_LATENCY_14) || \ - ((LATENCY) == FLASH_LATENCY_15)) - -#define IS_FLASH_SECTOR(SECTOR) ((SECTOR) < FLASH_SECTOR_TOTAL) - -#if (FLASH_SECTOR_TOTAL == 8U) -#define IS_OB_WRP_SECTOR(SECTOR) ((((SECTOR) & 0xFFFFFF00U) == 0x00000000U) && ((SECTOR) != 0x00000000U)) -#else -#define IS_OB_WRP_SECTOR(SECTOR) ((SECTOR) != 0x00000000U) -#endif /* FLASH_SECTOR_TOTAL == 8U */ - -#define IS_OB_PCROP_RDP(CONFIG) (((CONFIG) == OB_PCROP_RDP_NOT_ERASE) || \ - ((CONFIG) == OB_PCROP_RDP_ERASE)) - -#define IS_OB_SECURE_RDP(CONFIG) (((CONFIG) == OB_SECURE_RDP_NOT_ERASE) || \ - ((CONFIG) == OB_SECURE_RDP_ERASE)) - -#if defined (DUAL_BANK) -#define IS_OB_USER_SWAP_BANK(VALUE) (((VALUE) == OB_SWAP_BANK_DISABLE) || ((VALUE) == OB_SWAP_BANK_ENABLE)) -#endif /* DUAL_BANK */ - -#define IS_OB_USER_IOHSLV(VALUE) (((VALUE) == OB_IOHSLV_DISABLE) || ((VALUE) == OB_IOHSLV_ENABLE)) - -#if defined (FLASH_OPTSR_VDDMMC_HSLV) -#define IS_OB_USER_VDDMMC_HSLV(VALUE) (((VALUE) == OB_VDDMMC_HSLV_DISABLE) || ((VALUE) == OB_VDDMMC_HSLV_ENABLE)) -#endif /* FLASH_OPTSR_VDDMMC_HSLV */ - -#define IS_OB_IWDG1_SOURCE(SOURCE) (((SOURCE) == OB_IWDG1_SW) || ((SOURCE) == OB_IWDG1_HW)) -#if defined (DUAL_CORE) -#define IS_OB_IWDG2_SOURCE(SOURCE) (((SOURCE) == OB_IWDG2_SW) || ((SOURCE) == OB_IWDG2_HW)) -#endif /* DUAL_CORE */ -#define IS_OB_STOP_D1_RESET(VALUE) (((VALUE) == OB_STOP_NO_RST_D1) || ((VALUE) == OB_STOP_RST_D1)) - -#define IS_OB_STDBY_D1_RESET(VALUE) (((VALUE) == OB_STDBY_NO_RST_D1) || ((VALUE) == OB_STDBY_RST_D1)) - -#define IS_OB_USER_IWDG_STOP(VALUE) (((VALUE) == OB_IWDG_STOP_FREEZE) || ((VALUE) == OB_IWDG_STOP_ACTIVE)) - -#define IS_OB_USER_IWDG_STDBY(VALUE) (((VALUE) == OB_IWDG_STDBY_FREEZE) || ((VALUE) == OB_IWDG_STDBY_ACTIVE)) - -#define IS_OB_USER_ST_RAM_SIZE(VALUE) (((VALUE) == OB_ST_RAM_SIZE_2KB) || ((VALUE) == OB_ST_RAM_SIZE_4KB) || \ - ((VALUE) == OB_ST_RAM_SIZE_8KB) || ((VALUE) == OB_ST_RAM_SIZE_16KB)) - -#define IS_OB_USER_SECURITY(VALUE) (((VALUE) == OB_SECURITY_ENABLE) || ((VALUE) == OB_SECURITY_DISABLE)) - -#if defined (DUAL_CORE) -#define IS_OB_USER_BCM4(VALUE) (((VALUE) == OB_BCM4_DISABLE) || ((VALUE) == OB_BCM4_ENABLE)) - -#define IS_OB_USER_BCM7(VALUE) (((VALUE) == OB_BCM7_DISABLE) || ((VALUE) == OB_BCM7_ENABLE)) -#endif /* DUAL_CORE */ - -#if defined (FLASH_OPTSR_NRST_STOP_D2) -#define IS_OB_STOP_D2_RESET(VALUE) (((VALUE) == OB_STOP_NO_RST_D2) || ((VALUE) == OB_STOP_RST_D2)) - -#define IS_OB_STDBY_D2_RESET(VALUE) (((VALUE) == OB_STDBY_NO_RST_D2) || ((VALUE) == OB_STDBY_RST_D2)) -#endif /* FLASH_OPTSR_NRST_STOP_D2 */ - -#if defined (FLASH_OPTSR2_TCM_AXI_SHARED) -#define IS_OB_USER_TCM_AXI_SHARED(VALUE) (((VALUE) == OB_TCM_AXI_SHARED_ITCM64KB) || ((VALUE) == OB_TCM_AXI_SHARED_ITCM128KB) || \ - ((VALUE) == OB_TCM_AXI_SHARED_ITCM192KB) || ((VALUE) == OB_TCM_AXI_SHARED_ITCM256KB)) -#endif /* FLASH_OPTSR2_TCM_AXI_SHARED */ - -#if defined (FLASH_OPTSR2_CPUFREQ_BOOST) -#define IS_OB_USER_CPUFREQ_BOOST(VALUE) (((VALUE) == OB_CPUFREQ_BOOST_DISABLE) || ((VALUE) == OB_CPUFREQ_BOOST_ENABLE)) -#endif /* FLASH_OPTSR2_CPUFREQ_BOOST */ - -#define IS_OB_USER_TYPE(TYPE) ((((TYPE) & OB_USER_ALL) != 0U) && \ - (((TYPE) & ~OB_USER_ALL) == 0U)) - -#define IS_OB_BOOT_ADD_OPTION(VALUE) (((VALUE) == OB_BOOT_ADD0) || \ - ((VALUE) == OB_BOOT_ADD1) || \ - ((VALUE) == OB_BOOT_ADD_BOTH)) - -#define IS_FLASH_TYPECRC(VALUE) (((VALUE) == FLASH_CRC_ADDR) || \ - ((VALUE) == FLASH_CRC_SECTORS) || \ - ((VALUE) == FLASH_CRC_BANK)) - -#if defined (FLASH_OTPBL_LOCKBL) -#define IS_OTP_BLOCK(VALUE) ((((VALUE) & 0xFFFF0000U) == 0x00000000U) && ((VALUE) != 0x00000000U)) -#endif /* FLASH_OTPBL_LOCKBL */ -/** - * @} - */ - -/** - * @} - */ - -/* Private functions ---------------------------------------------------------*/ -/** @defgroup FLASHEx_Private_Functions FLASHEx Private Functions - * @{ - */ -void FLASH_Erase_Sector(uint32_t Sector, uint32_t Banks, uint32_t VoltageRange); -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_HAL_FLASH_EX_H */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h deleted file mode 100644 index 1cd9178..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h +++ /dev/null @@ -1,359 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_gpio.h - * @author MCD Application Team - * @brief Header file of GPIO HAL module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_HAL_GPIO_H -#define STM32H7xx_HAL_GPIO_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal_def.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @addtogroup GPIO - * @{ - */ - -/* Exported types ------------------------------------------------------------*/ -/** @defgroup GPIO_Exported_Types GPIO Exported Types - * @{ - */ - -/** - * @brief GPIO Init structure definition - */ -typedef struct -{ - uint32_t Pin; /*!< Specifies the GPIO pins to be configured. - This parameter can be any value of @ref GPIO_pins_define */ - - uint32_t Mode; /*!< Specifies the operating mode for the selected pins. - This parameter can be a value of @ref GPIO_mode_define */ - - uint32_t Pull; /*!< Specifies the Pull-up or Pull-Down activation for the selected pins. - This parameter can be a value of @ref GPIO_pull_define */ - - uint32_t Speed; /*!< Specifies the speed for the selected pins. - This parameter can be a value of @ref GPIO_speed_define */ - - uint32_t Alternate; /*!< Peripheral to be connected to the selected pins. - This parameter can be a value of @ref GPIO_Alternate_function_selection */ -} GPIO_InitTypeDef; - -/** - * @brief GPIO Bit SET and Bit RESET enumeration - */ -typedef enum -{ - GPIO_PIN_RESET = 0U, - GPIO_PIN_SET -} GPIO_PinState; -/** - * @} - */ - -/* Exported constants --------------------------------------------------------*/ - -/** @defgroup GPIO_Exported_Constants GPIO Exported Constants - * @{ - */ - -/** @defgroup GPIO_pins_define GPIO pins define - * @{ - */ -#define GPIO_PIN_0 ((uint16_t)0x0001) /* Pin 0 selected */ -#define GPIO_PIN_1 ((uint16_t)0x0002) /* Pin 1 selected */ -#define GPIO_PIN_2 ((uint16_t)0x0004) /* Pin 2 selected */ -#define GPIO_PIN_3 ((uint16_t)0x0008) /* Pin 3 selected */ -#define GPIO_PIN_4 ((uint16_t)0x0010) /* Pin 4 selected */ -#define GPIO_PIN_5 ((uint16_t)0x0020) /* Pin 5 selected */ -#define GPIO_PIN_6 ((uint16_t)0x0040) /* Pin 6 selected */ -#define GPIO_PIN_7 ((uint16_t)0x0080) /* Pin 7 selected */ -#define GPIO_PIN_8 ((uint16_t)0x0100) /* Pin 8 selected */ -#define GPIO_PIN_9 ((uint16_t)0x0200) /* Pin 9 selected */ -#define GPIO_PIN_10 ((uint16_t)0x0400) /* Pin 10 selected */ -#define GPIO_PIN_11 ((uint16_t)0x0800) /* Pin 11 selected */ -#define GPIO_PIN_12 ((uint16_t)0x1000) /* Pin 12 selected */ -#define GPIO_PIN_13 ((uint16_t)0x2000) /* Pin 13 selected */ -#define GPIO_PIN_14 ((uint16_t)0x4000) /* Pin 14 selected */ -#define GPIO_PIN_15 ((uint16_t)0x8000) /* Pin 15 selected */ -#define GPIO_PIN_All ((uint16_t)0xFFFF) /* All pins selected */ - -#define GPIO_PIN_MASK (0x0000FFFFU) /* PIN mask for assert test */ -/** - * @} - */ - -/** @defgroup GPIO_mode_define GPIO mode define - * @brief GPIO Configuration Mode - * Elements values convention: 0x00WX00YZ - * - W : EXTI trigger detection on 3 bits - * - X : EXTI mode (IT or Event) on 2 bits - * - Y : Output type (Push Pull or Open Drain) on 1 bit - * - Z : GPIO mode (Input, Output, Alternate or Analog) on 2 bits - * @{ - */ -#define GPIO_MODE_INPUT MODE_INPUT /*!< Input Floating Mode */ -#define GPIO_MODE_OUTPUT_PP (MODE_OUTPUT | OUTPUT_PP) /*!< Output Push Pull Mode */ -#define GPIO_MODE_OUTPUT_OD (MODE_OUTPUT | OUTPUT_OD) /*!< Output Open Drain Mode */ -#define GPIO_MODE_AF_PP (MODE_AF | OUTPUT_PP) /*!< Alternate Function Push Pull Mode */ -#define GPIO_MODE_AF_OD (MODE_AF | OUTPUT_OD) /*!< Alternate Function Open Drain Mode */ -#define GPIO_MODE_ANALOG MODE_ANALOG /*!< Analog Mode */ -#define GPIO_MODE_IT_RISING (MODE_INPUT | EXTI_IT | TRIGGER_RISING) /*!< External Interrupt Mode with Rising edge trigger detection */ -#define GPIO_MODE_IT_FALLING (MODE_INPUT | EXTI_IT | TRIGGER_FALLING) /*!< External Interrupt Mode with Falling edge trigger detection */ -#define GPIO_MODE_IT_RISING_FALLING (MODE_INPUT | EXTI_IT | TRIGGER_RISING | TRIGGER_FALLING) /*!< External Interrupt Mode with Rising/Falling edge trigger detection */ - -#define GPIO_MODE_EVT_RISING (MODE_INPUT | EXTI_EVT | TRIGGER_RISING) /*!< External Event Mode with Rising edge trigger detection */ -#define GPIO_MODE_EVT_FALLING (MODE_INPUT | EXTI_EVT | TRIGGER_FALLING) /*!< External Event Mode with Falling edge trigger detection */ -#define GPIO_MODE_EVT_RISING_FALLING (MODE_INPUT | EXTI_EVT | TRIGGER_RISING | TRIGGER_FALLING) /*!< External Event Mode with Rising/Falling edge trigger detection */ -/** - * @} - */ - -/** @defgroup GPIO_speed_define GPIO speed define - * @brief GPIO Output Maximum frequency - * @{ - */ -#define GPIO_SPEED_FREQ_LOW (0x00000000U) /*!< Low speed */ -#define GPIO_SPEED_FREQ_MEDIUM (0x00000001U) /*!< Medium speed */ -#define GPIO_SPEED_FREQ_HIGH (0x00000002U) /*!< Fast speed */ -#define GPIO_SPEED_FREQ_VERY_HIGH (0x00000003U) /*!< High speed */ -/** - * @} - */ - -/** @defgroup GPIO_pull_define GPIO pull define - * @brief GPIO Pull-Up or Pull-Down Activation - * @{ - */ -#define GPIO_NOPULL (0x00000000U) /*!< No Pull-up or Pull-down activation */ -#define GPIO_PULLUP (0x00000001U) /*!< Pull-up activation */ -#define GPIO_PULLDOWN (0x00000002U) /*!< Pull-down activation */ -/** - * @} - */ - -/** - * @} - */ - -/* Exported macro ------------------------------------------------------------*/ -/** @defgroup GPIO_Exported_Macros GPIO Exported Macros - * @{ - */ - -/** - * @brief Checks whether the specified EXTI line flag is set or not. - * @param __EXTI_LINE__: specifies the EXTI line flag to check. - * This parameter can be GPIO_PIN_x where x can be(0..15) - * @retval The new state of __EXTI_LINE__ (SET or RESET). - */ -#define __HAL_GPIO_EXTI_GET_FLAG(__EXTI_LINE__) (EXTI->PR1 & (__EXTI_LINE__)) - -/** - * @brief Clears the EXTI's line pending flags. - * @param __EXTI_LINE__: specifies the EXTI lines flags to clear. - * This parameter can be any combination of GPIO_PIN_x where x can be (0..15) - * @retval None - */ -#define __HAL_GPIO_EXTI_CLEAR_FLAG(__EXTI_LINE__) (EXTI->PR1 = (__EXTI_LINE__)) - -/** - * @brief Checks whether the specified EXTI line is asserted or not. - * @param __EXTI_LINE__: specifies the EXTI line to check. - * This parameter can be GPIO_PIN_x where x can be(0..15) - * @retval The new state of __EXTI_LINE__ (SET or RESET). - */ -#define __HAL_GPIO_EXTI_GET_IT(__EXTI_LINE__) (EXTI->PR1 & (__EXTI_LINE__)) - -/** - * @brief Clears the EXTI's line pending bits. - * @param __EXTI_LINE__: specifies the EXTI lines to clear. - * This parameter can be any combination of GPIO_PIN_x where x can be (0..15) - * @retval None - */ -#define __HAL_GPIO_EXTI_CLEAR_IT(__EXTI_LINE__) (EXTI->PR1 = (__EXTI_LINE__)) - -#if defined(DUAL_CORE) -/** - * @brief Checks whether the specified EXTI line flag is set or not. - * @param __EXTI_LINE__: specifies the EXTI line flag to check. - * This parameter can be GPIO_PIN_x where x can be(0..15) - * @retval The new state of __EXTI_LINE__ (SET or RESET). - */ -#define __HAL_GPIO_EXTID2_GET_FLAG(__EXTI_LINE__) (EXTI->C2PR1 & (__EXTI_LINE__)) - -/** - * @brief Clears the EXTI's line pending flags. - * @param __EXTI_LINE__: specifies the EXTI lines flags to clear. - * This parameter can be any combination of GPIO_PIN_x where x can be (0..15) - * @retval None - */ -#define __HAL_GPIO_EXTID2_CLEAR_FLAG(__EXTI_LINE__) (EXTI->C2PR1 = (__EXTI_LINE__)) - -/** - * @brief Checks whether the specified EXTI line is asserted or not. - * @param __EXTI_LINE__: specifies the EXTI line to check. - * This parameter can be GPIO_PIN_x where x can be(0..15) - * @retval The new state of __EXTI_LINE__ (SET or RESET). - */ -#define __HAL_GPIO_EXTID2_GET_IT(__EXTI_LINE__) (EXTI->C2PR1 & (__EXTI_LINE__)) - -/** - * @brief Clears the EXTI's line pending bits. - * @param __EXTI_LINE__: specifies the EXTI lines to clear. - * This parameter can be any combination of GPIO_PIN_x where x can be (0..15) - * @retval None - */ -#define __HAL_GPIO_EXTID2_CLEAR_IT(__EXTI_LINE__) (EXTI->C2PR1 = (__EXTI_LINE__)) -#endif - -/** - * @brief Generates a Software interrupt on selected EXTI line. - * @param __EXTI_LINE__: specifies the EXTI line to check. - * This parameter can be GPIO_PIN_x where x can be(0..15) - * @retval None - */ -#define __HAL_GPIO_EXTI_GENERATE_SWIT(__EXTI_LINE__) (EXTI->SWIER1 |= (__EXTI_LINE__)) -/** - * @} - */ - -/* Include GPIO HAL Extension module */ -#include "stm32h7xx_hal_gpio_ex.h" - -/* Exported functions --------------------------------------------------------*/ -/** @addtogroup GPIO_Exported_Functions - * @{ - */ - -/** @addtogroup GPIO_Exported_Functions_Group1 - * @{ - */ -/* Initialization and de-initialization functions *****************************/ -void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init); -void HAL_GPIO_DeInit(GPIO_TypeDef *GPIOx, uint32_t GPIO_Pin); -/** - * @} - */ - -/** @addtogroup GPIO_Exported_Functions_Group2 - * @{ - */ -/* IO operation functions *****************************************************/ -GPIO_PinState HAL_GPIO_ReadPin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin); -void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState); -void HAL_GPIO_TogglePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin); -HAL_StatusTypeDef HAL_GPIO_LockPin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin); -void HAL_GPIO_EXTI_IRQHandler(uint16_t GPIO_Pin); -void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin); - -/** - * @} - */ - -/** - * @} - */ -/* Private types -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private constants ---------------------------------------------------------*/ -/** @defgroup GPIO_Private_Constants GPIO Private Constants - * @{ - */ -#define GPIO_MODE_Pos 0u -#define GPIO_MODE (0x3uL << GPIO_MODE_Pos) -#define MODE_INPUT (0x0uL << GPIO_MODE_Pos) -#define MODE_OUTPUT (0x1uL << GPIO_MODE_Pos) -#define MODE_AF (0x2uL << GPIO_MODE_Pos) -#define MODE_ANALOG (0x3uL << GPIO_MODE_Pos) -#define OUTPUT_TYPE_Pos 4u -#define OUTPUT_TYPE (0x1uL << OUTPUT_TYPE_Pos) -#define OUTPUT_PP (0x0uL << OUTPUT_TYPE_Pos) -#define OUTPUT_OD (0x1uL << OUTPUT_TYPE_Pos) -#define EXTI_MODE_Pos 16u -#define EXTI_MODE (0x3uL << EXTI_MODE_Pos) -#define EXTI_IT (0x1uL << EXTI_MODE_Pos) -#define EXTI_EVT (0x2uL << EXTI_MODE_Pos) -#define TRIGGER_MODE_Pos 20u -#define TRIGGER_MODE (0x7uL << TRIGGER_MODE_Pos) -#define TRIGGER_RISING (0x1uL << TRIGGER_MODE_Pos) -#define TRIGGER_FALLING (0x2uL << TRIGGER_MODE_Pos) -#define TRIGGER_LEVEL (0x4uL << TRIGGER_MODE_Pos) -/** - * @} - */ - -/* Private macros ------------------------------------------------------------*/ -/** @defgroup GPIO_Private_Macros GPIO Private Macros - * @{ - */ -#define IS_GPIO_PIN_ACTION(ACTION) (((ACTION) == GPIO_PIN_RESET) || ((ACTION) == GPIO_PIN_SET)) -#define IS_GPIO_PIN(__PIN__) ((((uint32_t)(__PIN__) & GPIO_PIN_MASK) != 0x00U) &&\ - (((uint32_t)(__PIN__) & ~GPIO_PIN_MASK) == 0x00U)) -#define IS_GPIO_MODE(MODE) (((MODE) == GPIO_MODE_INPUT) ||\ - ((MODE) == GPIO_MODE_OUTPUT_PP) ||\ - ((MODE) == GPIO_MODE_OUTPUT_OD) ||\ - ((MODE) == GPIO_MODE_AF_PP) ||\ - ((MODE) == GPIO_MODE_AF_OD) ||\ - ((MODE) == GPIO_MODE_IT_RISING) ||\ - ((MODE) == GPIO_MODE_IT_FALLING) ||\ - ((MODE) == GPIO_MODE_IT_RISING_FALLING) ||\ - ((MODE) == GPIO_MODE_EVT_RISING) ||\ - ((MODE) == GPIO_MODE_EVT_FALLING) ||\ - ((MODE) == GPIO_MODE_EVT_RISING_FALLING) ||\ - ((MODE) == GPIO_MODE_ANALOG)) -#define IS_GPIO_SPEED(SPEED) (((SPEED) == GPIO_SPEED_FREQ_LOW) || ((SPEED) == GPIO_SPEED_FREQ_MEDIUM) || \ - ((SPEED) == GPIO_SPEED_FREQ_HIGH) || ((SPEED) == GPIO_SPEED_FREQ_VERY_HIGH)) - -#define IS_GPIO_PULL(PULL) (((PULL) == GPIO_NOPULL) || ((PULL) == GPIO_PULLUP) || \ - ((PULL) == GPIO_PULLDOWN)) - -/** - * @} - */ - -/* Private functions ---------------------------------------------------------*/ -/** @defgroup GPIO_Private_Functions GPIO Private Functions - * @{ - */ - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_HAL_GPIO_H */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h deleted file mode 100644 index 7a8edd3..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h +++ /dev/null @@ -1,487 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_gpio_ex.h - * @author MCD Application Team - * @brief Header file of GPIO HAL Extension module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_HAL_GPIO_EX_H -#define STM32H7xx_HAL_GPIO_EX_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal_def.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @addtogroup GPIOEx GPIOEx - * @{ - */ - -/* Exported types ------------------------------------------------------------*/ - -/* Exported constants --------------------------------------------------------*/ -/** @defgroup GPIOEx_Exported_Constants GPIO Exported Constants - * @{ - */ - -/** @defgroup GPIO_Alternate_function_selection GPIO Alternate Function Selection - * @{ - */ - -/** - * @brief AF 0 selection - */ -#define GPIO_AF0_RTC_50Hz ((uint8_t)0x00) /* RTC_50Hz Alternate Function mapping */ -#define GPIO_AF0_MCO ((uint8_t)0x00) /* MCO (MCO1 and MCO2) Alternate Function mapping */ -#define GPIO_AF0_SWJ ((uint8_t)0x00) /* SWJ (SWD and JTAG) Alternate Function mapping */ -#define GPIO_AF0_LCDBIAS ((uint8_t)0x00) /* LCDBIAS Alternate Function mapping */ -#define GPIO_AF0_TRACE ((uint8_t)0x00) /* TRACE Alternate Function mapping */ -#if defined (PWR_CPUCR_PDDS_D2) /* PWR D1 and D2 domains exists */ -#define GPIO_AF0_C1DSLEEP ((uint8_t)0x00) /* Cortex-M7 Deep Sleep Alternate Function mapping : available on STM32H7 Rev.B and above */ -#define GPIO_AF0_C1SLEEP ((uint8_t)0x00) /* Cortex-M7 Sleep Alternate Function mapping : available on STM32H7 Rev.B and above */ -#define GPIO_AF0_D1PWREN ((uint8_t)0x00) /* Domain 1 PWR enable Alternate Function mapping : available on STM32H7 Rev.B and above */ -#define GPIO_AF0_D2PWREN ((uint8_t)0x00) /* Domain 2 PWR enable Alternate Function mapping : available on STM32H7 Rev.B and above */ -#if defined(DUAL_CORE) -#define GPIO_AF0_C2DSLEEP ((uint8_t)0x00) /* Cortex-M4 Deep Sleep Alternate Function mapping : available on STM32H7 Rev.B and above */ -#define GPIO_AF0_C2SLEEP ((uint8_t)0x00) /* Cortex-M4 Sleep Alternate Function mapping : available on STM32H7 Rev.B and above */ -#endif /* DUAL_CORE */ -#endif /* PWR_CPUCR_PDDS_D2 */ - -/** - * @brief AF 1 selection - */ -#define GPIO_AF1_TIM1 ((uint8_t)0x01) /* TIM1 Alternate Function mapping */ -#define GPIO_AF1_TIM2 ((uint8_t)0x01) /* TIM2 Alternate Function mapping */ -#define GPIO_AF1_TIM16 ((uint8_t)0x01) /* TIM16 Alternate Function mapping */ -#define GPIO_AF1_TIM17 ((uint8_t)0x01) /* TIM17 Alternate Function mapping */ -#define GPIO_AF1_LPTIM1 ((uint8_t)0x01) /* LPTIM1 Alternate Function mapping */ -#if defined(HRTIM1) -#define GPIO_AF1_HRTIM1 ((uint8_t)0x01) /* HRTIM1 Alternate Function mapping */ -#endif /* HRTIM1 */ -#if defined(SAI4) -#define GPIO_AF1_SAI4 ((uint8_t)0x01) /* SAI4 Alternate Function mapping : available on STM32H72xxx/STM32H73xxx */ -#endif /* SAI4 */ -#define GPIO_AF1_FMC ((uint8_t)0x01) /* FMC Alternate Function mapping : available on STM32H72xxx/STM32H73xxx */ - - -/** - * @brief AF 2 selection - */ -#define GPIO_AF2_TIM3 ((uint8_t)0x02) /* TIM3 Alternate Function mapping */ -#define GPIO_AF2_TIM4 ((uint8_t)0x02) /* TIM4 Alternate Function mapping */ -#define GPIO_AF2_TIM5 ((uint8_t)0x02) /* TIM5 Alternate Function mapping */ -#define GPIO_AF2_TIM12 ((uint8_t)0x02) /* TIM12 Alternate Function mapping */ -#define GPIO_AF2_SAI1 ((uint8_t)0x02) /* SAI1 Alternate Function mapping */ -#if defined(HRTIM1) -#define GPIO_AF2_HRTIM1 ((uint8_t)0x02) /* HRTIM1 Alternate Function mapping */ -#endif /* HRTIM1 */ -#define GPIO_AF2_TIM15 ((uint8_t)0x02) /* TIM15 Alternate Function mapping : available on STM32H7A3xxx/STM32H7B3xxx/STM32H7B0xxx and STM32H72xxx/STM32H73xxx */ -#if defined(FDCAN3) -#define GPIO_AF2_FDCAN3 ((uint8_t)0x02) /* FDCAN3 Alternate Function mapping */ -#endif /*FDCAN3*/ - -/** - * @brief AF 3 selection - */ -#define GPIO_AF3_TIM8 ((uint8_t)0x03) /* TIM8 Alternate Function mapping */ -#define GPIO_AF3_LPTIM2 ((uint8_t)0x03) /* LPTIM2 Alternate Function mapping */ -#define GPIO_AF3_DFSDM1 ((uint8_t)0x03) /* DFSDM Alternate Function mapping */ -#define GPIO_AF3_LPTIM3 ((uint8_t)0x03) /* LPTIM3 Alternate Function mapping */ -#define GPIO_AF3_LPTIM4 ((uint8_t)0x03) /* LPTIM4 Alternate Function mapping */ -#define GPIO_AF3_LPTIM5 ((uint8_t)0x03) /* LPTIM5 Alternate Function mapping */ -#define GPIO_AF3_LPUART ((uint8_t)0x03) /* LPUART Alternate Function mapping */ -#if defined(OCTOSPIM) -#define GPIO_AF3_OCTOSPIM_P1 ((uint8_t)0x03) /* OCTOSPI Manager Port 1 Alternate Function mapping */ -#define GPIO_AF3_OCTOSPIM_P2 ((uint8_t)0x03) /* OCTOSPI Manager Port 2 Alternate Function mapping */ -#endif /* OCTOSPIM */ -#if defined(HRTIM1) -#define GPIO_AF3_HRTIM1 ((uint8_t)0x03) /* HRTIM1 Alternate Function mapping */ -#endif /* HRTIM1 */ -#define GPIO_AF3_LTDC ((uint8_t)0x03) /* LTDC Alternate Function mapping : available on STM32H72xxx/STM32H73xxx */ - -/** - * @brief AF 4 selection - */ -#define GPIO_AF4_I2C1 ((uint8_t)0x04) /* I2C1 Alternate Function mapping */ -#define GPIO_AF4_I2C2 ((uint8_t)0x04) /* I2C2 Alternate Function mapping */ -#define GPIO_AF4_I2C3 ((uint8_t)0x04) /* I2C3 Alternate Function mapping */ -#define GPIO_AF4_I2C4 ((uint8_t)0x04) /* I2C4 Alternate Function mapping */ -#if defined(I2C5) -#define GPIO_AF4_I2C5 ((uint8_t)0x04) /* I2C5 Alternate Function mapping */ -#endif /* I2C5*/ -#define GPIO_AF4_TIM15 ((uint8_t)0x04) /* TIM15 Alternate Function mapping */ -#define GPIO_AF4_CEC ((uint8_t)0x04) /* CEC Alternate Function mapping */ -#define GPIO_AF4_LPTIM2 ((uint8_t)0x04) /* LPTIM2 Alternate Function mapping */ -#define GPIO_AF4_USART1 ((uint8_t)0x04) /* USART1 Alternate Function mapping */ -#if defined(USART10) -#define GPIO_AF4_USART10 ((uint8_t)0x04) /* USART10 Alternate Function mapping : available on STM32H72xxx/STM32H73xxx */ -#endif /*USART10*/ -#define GPIO_AF4_DFSDM1 ((uint8_t)0x04) /* DFSDM Alternate Function mapping */ -#if defined(DFSDM2_BASE) -#define GPIO_AF4_DFSDM2 ((uint8_t)0x04) /* DFSDM2 Alternate Function mapping */ -#endif /* DFSDM2_BASE */ -#define GPIO_AF4_DCMI ((uint8_t)0x04) /* DCMI Alternate Function mapping : available on STM32H7A3xxx/STM32H7B3xxx/STM32H7B0xxx and STM32H72xxx/STM32H73xxx */ -#if defined(PSSI) -#define GPIO_AF4_PSSI ((uint8_t)0x04) /* PSSI Alternate Function mapping */ -#endif /* PSSI */ -#if defined(OCTOSPIM) -#define GPIO_AF4_OCTOSPIM_P1 ((uint8_t)0x04) /* OCTOSPI Manager Port 1 Alternate Function mapping : available on STM32H72xxx/STM32H73xxx */ -#endif /* OCTOSPIM */ - -/** - * @brief AF 5 selection - */ -#define GPIO_AF5_SPI1 ((uint8_t)0x05) /* SPI1 Alternate Function mapping */ -#define GPIO_AF5_SPI2 ((uint8_t)0x05) /* SPI2 Alternate Function mapping */ -#define GPIO_AF5_SPI3 ((uint8_t)0x05) /* SPI3 Alternate Function mapping */ -#define GPIO_AF5_SPI4 ((uint8_t)0x05) /* SPI4 Alternate Function mapping */ -#define GPIO_AF5_SPI5 ((uint8_t)0x05) /* SPI5 Alternate Function mapping */ -#define GPIO_AF5_SPI6 ((uint8_t)0x05) /* SPI6 Alternate Function mapping */ -#define GPIO_AF5_CEC ((uint8_t)0x05) /* CEC Alternate Function mapping */ -#if defined(FDCAN3) -#define GPIO_AF5_FDCAN3 ((uint8_t)0x05) /* FDCAN3 Alternate Function mapping */ -#endif /*FDCAN3*/ - -/** - * @brief AF 6 selection - */ -#define GPIO_AF6_SPI2 ((uint8_t)0x06) /* SPI2 Alternate Function mapping */ -#define GPIO_AF6_SPI3 ((uint8_t)0x06) /* SPI3 Alternate Function mapping */ -#define GPIO_AF6_SAI1 ((uint8_t)0x06) /* SAI1 Alternate Function mapping */ -#define GPIO_AF6_I2C4 ((uint8_t)0x06) /* I2C4 Alternate Function mapping */ -#if defined(I2C5) -#define GPIO_AF6_I2C5 ((uint8_t)0x06) /* I2C5 Alternate Function mapping */ -#endif /* I2C5*/ -#define GPIO_AF6_DFSDM1 ((uint8_t)0x06) /* DFSDM Alternate Function mapping */ -#define GPIO_AF6_UART4 ((uint8_t)0x06) /* UART4 Alternate Function mapping */ -#if defined(DFSDM2_BASE) -#define GPIO_AF6_DFSDM2 ((uint8_t)0x06) /* DFSDM2 Alternate Function mapping */ -#endif /* DFSDM2_BASE */ -#if defined(SAI3) -#define GPIO_AF6_SAI3 ((uint8_t)0x06) /* SAI3 Alternate Function mapping */ -#endif /* SAI3 */ -#if defined(OCTOSPIM) -#define GPIO_AF6_OCTOSPIM_P1 ((uint8_t)0x06) /* OCTOSPI Manager Port 1 Alternate Function mapping */ -#endif /* OCTOSPIM */ - -/** - * @brief AF 7 selection - */ -#define GPIO_AF7_SPI2 ((uint8_t)0x07) /* SPI2 Alternate Function mapping */ -#define GPIO_AF7_SPI3 ((uint8_t)0x07) /* SPI3 Alternate Function mapping */ -#define GPIO_AF7_SPI6 ((uint8_t)0x07) /* SPI6 Alternate Function mapping */ -#define GPIO_AF7_USART1 ((uint8_t)0x07) /* USART1 Alternate Function mapping */ -#define GPIO_AF7_USART2 ((uint8_t)0x07) /* USART2 Alternate Function mapping */ -#define GPIO_AF7_USART3 ((uint8_t)0x07) /* USART3 Alternate Function mapping */ -#define GPIO_AF7_USART6 ((uint8_t)0x07) /* USART6 Alternate Function mapping */ -#define GPIO_AF7_UART7 ((uint8_t)0x07) /* UART7 Alternate Function mapping */ -#define GPIO_AF7_SDMMC1 ((uint8_t)0x07) /* SDMMC1 Alternate Function mapping */ - -/** - * @brief AF 8 selection - */ -#define GPIO_AF8_SPI6 ((uint8_t)0x08) /* SPI6 Alternate Function mapping */ -#if defined(SAI2) -#define GPIO_AF8_SAI2 ((uint8_t)0x08) /* SAI2 Alternate Function mapping */ -#endif /*SAI2*/ -#define GPIO_AF8_UART4 ((uint8_t)0x08) /* UART4 Alternate Function mapping */ -#define GPIO_AF8_UART5 ((uint8_t)0x08) /* UART5 Alternate Function mapping */ -#define GPIO_AF8_UART8 ((uint8_t)0x08) /* UART8 Alternate Function mapping */ -#define GPIO_AF8_SPDIF ((uint8_t)0x08) /* SPDIF Alternate Function mapping */ -#define GPIO_AF8_LPUART ((uint8_t)0x08) /* LPUART Alternate Function mapping */ -#define GPIO_AF8_SDMMC1 ((uint8_t)0x08) /* SDMMC1 Alternate Function mapping */ -#if defined(SAI4) -#define GPIO_AF8_SAI4 ((uint8_t)0x08) /* SAI4 Alternate Function mapping */ -#endif /* SAI4 */ - -/** - * @brief AF 9 selection - */ -#define GPIO_AF9_FDCAN1 ((uint8_t)0x09) /* FDCAN1 Alternate Function mapping */ -#define GPIO_AF9_FDCAN2 ((uint8_t)0x09) /* FDCAN2 Alternate Function mapping */ -#define GPIO_AF9_TIM13 ((uint8_t)0x09) /* TIM13 Alternate Function mapping */ -#define GPIO_AF9_TIM14 ((uint8_t)0x09) /* TIM14 Alternate Function mapping */ -#define GPIO_AF9_SDMMC2 ((uint8_t)0x09) /* SDMMC2 Alternate Function mapping */ -#define GPIO_AF9_LTDC ((uint8_t)0x09) /* LTDC Alternate Function mapping */ -#define GPIO_AF9_SPDIF ((uint8_t)0x09) /* SPDIF Alternate Function mapping */ -#define GPIO_AF9_FMC ((uint8_t)0x09) /* FMC Alternate Function mapping */ -#if defined(QUADSPI) -#define GPIO_AF9_QUADSPI ((uint8_t)0x09) /* QUADSPI Alternate Function mapping */ -#endif /* QUADSPI */ -#if defined(SAI4) -#define GPIO_AF9_SAI4 ((uint8_t)0x09) /* SAI4 Alternate Function mapping */ -#endif /* SAI4 */ -#if defined(OCTOSPIM) -#define GPIO_AF9_OCTOSPIM_P1 ((uint8_t)0x09) /* OCTOSPI Manager Port 1 Alternate Function mapping */ -#define GPIO_AF9_OCTOSPIM_P2 ((uint8_t)0x09) /* OCTOSPI Manager Port 2 Alternate Function mapping */ -#endif /* OCTOSPIM */ - -/** - * @brief AF 10 selection - */ -#if defined(SAI2) -#define GPIO_AF10_SAI2 ((uint8_t)0x0A) /* SAI2 Alternate Function mapping */ -#endif /*SAI2*/ -#define GPIO_AF10_SDMMC2 ((uint8_t)0x0A) /* SDMMC2 Alternate Function mapping */ -#if defined(USB2_OTG_FS) -#define GPIO_AF10_OTG2_FS ((uint8_t)0x0A) /* OTG2_FS Alternate Function mapping */ -#endif /*USB2_OTG_FS*/ -#define GPIO_AF10_COMP1 ((uint8_t)0x0A) /* COMP1 Alternate Function mapping */ -#define GPIO_AF10_COMP2 ((uint8_t)0x0A) /* COMP2 Alternate Function mapping */ -#if defined(LTDC) -#define GPIO_AF10_LTDC ((uint8_t)0x0A) /* LTDC Alternate Function mapping */ -#endif /*LTDC*/ -#define GPIO_AF10_CRS_SYNC ((uint8_t)0x0A) /* CRS Sync Alternate Function mapping : available on STM32H7 Rev.B and above */ -#if defined(QUADSPI) -#define GPIO_AF10_QUADSPI ((uint8_t)0x0A) /* QUADSPI Alternate Function mapping */ -#endif /* QUADSPI */ -#if defined(SAI4) -#define GPIO_AF10_SAI4 ((uint8_t)0x0A) /* SAI4 Alternate Function mapping */ -#endif /* SAI4 */ -#if !defined(USB2_OTG_FS) -#define GPIO_AF10_OTG1_FS ((uint8_t)0x0A) /* OTG1_FS Alternate Function mapping : available on STM32H7A3xxx/STM32H7B3xxx/STM32H7B0xxx and STM32H72xxx/STM32H73xxx */ -#endif /* !USB2_OTG_FS */ -#define GPIO_AF10_OTG1_HS ((uint8_t)0x0A) /* OTG1_HS Alternate Function mapping */ -#if defined(OCTOSPIM) -#define GPIO_AF10_OCTOSPIM_P1 ((uint8_t)0x0A) /* OCTOSPI Manager Port 1 Alternate Function mapping */ -#endif /* OCTOSPIM */ -#define GPIO_AF10_TIM8 ((uint8_t)0x0A) /* TIM8 Alternate Function mapping */ -#define GPIO_AF10_FMC ((uint8_t)0x0A) /* FMC Alternate Function mapping : available on STM32H7A3xxx/STM32H7B3xxx/STM32H7B0xxx and STM32H72xxx/STM32H73xxx */ - -/** - * @brief AF 11 selection - */ -#define GPIO_AF11_SWP ((uint8_t)0x0B) /* SWP Alternate Function mapping */ -#define GPIO_AF11_MDIOS ((uint8_t)0x0B) /* MDIOS Alternate Function mapping */ -#define GPIO_AF11_UART7 ((uint8_t)0x0B) /* UART7 Alternate Function mapping */ -#define GPIO_AF11_SDMMC2 ((uint8_t)0x0B) /* SDMMC2 Alternate Function mapping */ -#define GPIO_AF11_DFSDM1 ((uint8_t)0x0B) /* DFSDM1 Alternate Function mapping */ -#define GPIO_AF11_COMP1 ((uint8_t)0x0B) /* COMP1 Alternate Function mapping */ -#define GPIO_AF11_COMP2 ((uint8_t)0x0B) /* COMP2 Alternate Function mapping */ -#define GPIO_AF11_TIM1 ((uint8_t)0x0B) /* TIM1 Alternate Function mapping */ -#define GPIO_AF11_TIM8 ((uint8_t)0x0B) /* TIM8 Alternate Function mapping */ -#define GPIO_AF11_I2C4 ((uint8_t)0x0B) /* I2C4 Alternate Function mapping */ -#if defined(DFSDM2_BASE) -#define GPIO_AF11_DFSDM2 ((uint8_t)0x0B) /* DFSDM2 Alternate Function mapping */ -#endif /* DFSDM2_BASE */ -#if defined(USART10) -#define GPIO_AF11_USART10 ((uint8_t)0x0B) /* USART10 Alternate Function mapping */ -#endif /* USART10 */ -#if defined(UART9) -#define GPIO_AF11_UART9 ((uint8_t)0x0B) /* UART9 Alternate Function mapping */ -#endif /* UART9 */ -#if defined(ETH) -#define GPIO_AF11_ETH ((uint8_t)0x0B) /* ETH Alternate Function mapping */ -#endif /* ETH */ -#if defined(LTDC) -#define GPIO_AF11_LTDC ((uint8_t)0x0B) /* LTDC Alternate Function mapping : available on STM32H7A3xxx/STM32H7B3xxx/STM32H7B0xxx and STM32H72xxx/STM32H73xxx */ -#endif /*LTDC*/ -#if defined(OCTOSPIM) -#define GPIO_AF11_OCTOSPIM_P1 ((uint8_t)0x0B) /* OCTOSPI Manager Port 1 Alternate Function mapping */ -#endif /* OCTOSPIM */ - -/** - * @brief AF 12 selection - */ -#define GPIO_AF12_FMC ((uint8_t)0x0C) /* FMC Alternate Function mapping */ -#define GPIO_AF12_SDMMC1 ((uint8_t)0x0C) /* SDMMC1 Alternate Function mapping */ -#define GPIO_AF12_MDIOS ((uint8_t)0x0C) /* MDIOS Alternate Function mapping */ -#define GPIO_AF12_COMP1 ((uint8_t)0x0C) /* COMP1 Alternate Function mapping */ -#define GPIO_AF12_COMP2 ((uint8_t)0x0C) /* COMP2 Alternate Function mapping */ -#define GPIO_AF12_TIM1 ((uint8_t)0x0C) /* TIM1 Alternate Function mapping */ -#define GPIO_AF12_TIM8 ((uint8_t)0x0C) /* TIM8 Alternate Function mapping */ -#if defined(LTDC) -#define GPIO_AF12_LTDC ((uint8_t)0x0C) /* LTDC Alternate Function mapping */ -#endif /*LTDC*/ -#if defined(USB2_OTG_FS) -#define GPIO_AF12_OTG1_FS ((uint8_t)0x0C) /* OTG1_FS Alternate Function mapping */ -#endif /* USB2_OTG_FS */ -#if defined(OCTOSPIM) -#define GPIO_AF12_OCTOSPIM_P1 ((uint8_t)0x0C) /* OCTOSPI Manager Port 1 Alternate Function mapping */ -#endif /* OCTOSPIM */ - -/** - * @brief AF 13 selection - */ -#define GPIO_AF13_DCMI ((uint8_t)0x0D) /* DCMI Alternate Function mapping */ -#define GPIO_AF13_COMP1 ((uint8_t)0x0D) /* COMP1 Alternate Function mapping */ -#define GPIO_AF13_COMP2 ((uint8_t)0x0D) /* COMP2 Alternate Function mapping */ -#if defined(LTDC) -#define GPIO_AF13_LTDC ((uint8_t)0x0D) /* LTDC Alternate Function mapping */ -#endif /*LTDC*/ -#if defined(DSI) -#define GPIO_AF13_DSI ((uint8_t)0x0D) /* DSI Alternate Function mapping */ -#endif /* DSI */ -#if defined(PSSI) -#define GPIO_AF13_PSSI ((uint8_t)0x0D) /* PSSI Alternate Function mapping */ -#endif /* PSSI */ -#define GPIO_AF13_TIM1 ((uint8_t)0x0D) /* TIM1 Alternate Function mapping */ -#if defined(TIM23) -#define GPIO_AF13_TIM23 ((uint8_t)0x0D) /* TIM23 Alternate Function mapping */ -#endif /*TIM23*/ - -/** - * @brief AF 14 selection - */ -#define GPIO_AF14_LTDC ((uint8_t)0x0E) /* LTDC Alternate Function mapping */ -#define GPIO_AF14_UART5 ((uint8_t)0x0E) /* UART5 Alternate Function mapping */ -#if defined(TIM24) -#define GPIO_AF14_TIM24 ((uint8_t)0x0E) /* TIM24 Alternate Function mapping */ -#endif /*TIM24*/ - -/** - * @brief AF 15 selection - */ -#define GPIO_AF15_EVENTOUT ((uint8_t)0x0F) /* EVENTOUT Alternate Function mapping */ - -#define IS_GPIO_AF(AF) ((AF) <= (uint8_t)0x0F) - - - -/** - * @} - */ - -/** - * @} - */ - -/* Exported macro ------------------------------------------------------------*/ -/** @defgroup GPIOEx_Exported_Macros GPIO Exported Macros - * @{ - */ -/** - * @} - */ - -/* Exported functions --------------------------------------------------------*/ -/** @defgroup GPIOEx_Exported_Functions GPIO Exported Functions - * @{ - */ -/** - * @} - */ -/* Private types -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private constants ---------------------------------------------------------*/ -/** @defgroup GPIOEx_Private_Constants GPIO Private Constants - * @{ - */ - -/** - * @brief GPIO pin available on the platform - */ -/* Defines the available pins per GPIOs */ -#define GPIOA_PIN_AVAILABLE GPIO_PIN_All -#define GPIOB_PIN_AVAILABLE GPIO_PIN_All -#define GPIOC_PIN_AVAILABLE GPIO_PIN_All -#define GPIOD_PIN_AVAILABLE GPIO_PIN_All -#define GPIOE_PIN_AVAILABLE GPIO_PIN_All -#define GPIOF_PIN_AVAILABLE GPIO_PIN_All -#define GPIOG_PIN_AVAILABLE GPIO_PIN_All -#if defined(GPIOI) -#define GPIOI_PIN_AVAILABLE GPIO_PIN_All -#endif /*GPIOI*/ -#if defined(GPIOI) -#define GPIOJ_PIN_AVAILABLE GPIO_PIN_All -#else -#define GPIOJ_PIN_AVAILABLE (GPIO_PIN_8 | GPIO_PIN_9 | GPIO_PIN_10 | GPIO_PIN_11 ) -#endif /* GPIOI */ -#define GPIOH_PIN_AVAILABLE GPIO_PIN_All -#if defined(GPIOI) -#define GPIOK_PIN_AVAILABLE (GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_3 | GPIO_PIN_4 | \ - GPIO_PIN_5 | GPIO_PIN_6 | GPIO_PIN_7) -#else -#define GPIOK_PIN_AVAILABLE (GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_2 ) -#endif /* GPIOI */ - -/** - * @} - */ - -/* Private macros ------------------------------------------------------------*/ -/** @defgroup GPIOEx_Private_Macros GPIO Private Macros - * @{ - */ -/** @defgroup GPIOEx_Get_Port_Index GPIO Get Port Index - * @{ - */ -#if defined(GPIOI) -#define GPIO_GET_INDEX(__GPIOx__) (((__GPIOx__) == (GPIOA))? 0UL :\ - ((__GPIOx__) == (GPIOB))? 1UL :\ - ((__GPIOx__) == (GPIOC))? 2UL :\ - ((__GPIOx__) == (GPIOD))? 3UL :\ - ((__GPIOx__) == (GPIOE))? 4UL :\ - ((__GPIOx__) == (GPIOF))? 5UL :\ - ((__GPIOx__) == (GPIOG))? 6UL :\ - ((__GPIOx__) == (GPIOH))? 7UL :\ - ((__GPIOx__) == (GPIOI))? 8UL :\ - ((__GPIOx__) == (GPIOJ))? 9UL : 10UL) -#else -#define GPIO_GET_INDEX(__GPIOx__) (((__GPIOx__) == (GPIOA))? 0UL :\ - ((__GPIOx__) == (GPIOB))? 1UL :\ - ((__GPIOx__) == (GPIOC))? 2UL :\ - ((__GPIOx__) == (GPIOD))? 3UL :\ - ((__GPIOx__) == (GPIOE))? 4UL :\ - ((__GPIOx__) == (GPIOF))? 5UL :\ - ((__GPIOx__) == (GPIOG))? 6UL :\ - ((__GPIOx__) == (GPIOH))? 7UL :\ - ((__GPIOx__) == (GPIOJ))? 9UL : 10UL) -#endif /* GPIOI */ - -/** - * @} - */ - -/** @defgroup GPIOEx_IS_Alternat_function_selection GPIO Check Alternate Function - * @{ - */ -/** - * @} - */ - -/** - * @} - */ - -/* Private functions ---------------------------------------------------------*/ -/** @defgroup GPIOEx_Private_Functions GPIO Private Functions - * @{ - */ - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_HAL_GPIO_EX_H */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h deleted file mode 100644 index 45f6e07..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h +++ /dev/null @@ -1,211 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_hsem.h - * @author MCD Application Team - * @brief Header file of HSEM HAL module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_HAL_HSEM_H -#define STM32H7xx_HAL_HSEM_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal_def.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @addtogroup HSEM - * @{ - */ - -/* Exported macro ------------------------------------------------------------*/ -/** @defgroup HSEM_Exported_Macros HSEM Exported Macros - * @{ - */ - -/** - * @brief SemID to mask helper Macro. - * @param __SEMID__: semaphore ID from 0 to 31 - * @retval Semaphore Mask. - */ -#define __HAL_HSEM_SEMID_TO_MASK(__SEMID__) (1 << (__SEMID__)) - -/** - * @brief Enables the specified HSEM interrupts. - * @param __SEM_MASK__: semaphores Mask - * @retval None. - */ -#if defined(DUAL_CORE) -#define __HAL_HSEM_ENABLE_IT(__SEM_MASK__) ((((SCB->CPUID & 0x000000F0) >> 4 )== 0x7) ? \ - (HSEM->C1IER |= (__SEM_MASK__)) : \ - (HSEM->C2IER |= (__SEM_MASK__))) -#else -#define __HAL_HSEM_ENABLE_IT(__SEM_MASK__) (HSEM->IER |= (__SEM_MASK__)) -#endif /* DUAL_CORE */ -/** - * @brief Disables the specified HSEM interrupts. - * @param __SEM_MASK__: semaphores Mask - * @retval None. - */ -#if defined(DUAL_CORE) -#define __HAL_HSEM_DISABLE_IT(__SEM_MASK__) ((((SCB->CPUID & 0x000000F0) >> 4 )== 0x7) ? \ - (HSEM->C1IER &= ~(__SEM_MASK__)) : \ - (HSEM->C2IER &= ~(__SEM_MASK__))) -#else -#define __HAL_HSEM_DISABLE_IT(__SEM_MASK__) (HSEM->IER &= ~(__SEM_MASK__)) -#endif /* DUAL_CORE */ - -/** - * @brief Checks whether interrupt has occurred or not for semaphores specified by a mask. - * @param __SEM_MASK__: semaphores Mask - * @retval semaphores Mask : Semaphores where an interrupt occurred. - */ -#if defined(DUAL_CORE) -#define __HAL_HSEM_GET_IT(__SEM_MASK__) ((((SCB->CPUID & 0x000000F0) >> 4 )== 0x7) ? \ - ((__SEM_MASK__) & HSEM->C1MISR) : \ - ((__SEM_MASK__) & HSEM->C2MISR1)) -#else -#define __HAL_HSEM_GET_IT(__SEM_MASK__) ((__SEM_MASK__) & HSEM->MISR) -#endif /* DUAL_CORE */ - -/** - * @brief Get the semaphores release status flags. - * @param __SEM_MASK__: semaphores Mask - * @retval semaphores Mask : Semaphores where Release flags rise. - */ -#if defined(DUAL_CORE) -#define __HAL_HSEM_GET_FLAG(__SEM_MASK__) ((((SCB->CPUID & 0x000000F0) >> 4 )== 0x7) ? \ - (__SEM_MASK__) & HSEM->C1ISR : \ - (__SEM_MASK__) & HSEM->C2ISR) -#else -#define __HAL_HSEM_GET_FLAG(__SEM_MASK__) ((__SEM_MASK__) & HSEM->ISR) -#endif /* DUAL_CORE */ - -/** - * @brief Clears the HSEM Interrupt flags. - * @param __SEM_MASK__: semaphores Mask - * @retval None. - */ -#if defined(DUAL_CORE) -#define __HAL_HSEM_CLEAR_FLAG(__SEM_MASK__) ((((SCB->CPUID & 0x000000F0) >> 4 )== 0x7) ? \ - (HSEM->C1ICR |= (__SEM_MASK__)) : \ - (HSEM->C2ICR |= (__SEM_MASK__))) -#else -#define __HAL_HSEM_CLEAR_FLAG(__SEM_MASK__) (HSEM->ICR |= (__SEM_MASK__)) -#endif /* DUAL_CORE */ - -/** - * @} - */ - -/* Exported functions --------------------------------------------------------*/ -/** @defgroup HSEM_Exported_Functions HSEM Exported Functions - * @{ - */ - -/** @addtogroup HSEM_Exported_Functions_Group1 Take and Release functions - * @brief HSEM Take and Release functions - * @{ - */ - -/* HSEM semaphore take (lock) using 2-Step method ****************************/ -HAL_StatusTypeDef HAL_HSEM_Take(uint32_t SemID, uint32_t ProcessID); -/* HSEM semaphore fast take (lock) using 1-Step method ***********************/ -HAL_StatusTypeDef HAL_HSEM_FastTake(uint32_t SemID); -/* HSEM Release **************************************************************/ -void HAL_HSEM_Release(uint32_t SemID, uint32_t ProcessID); -/* HSEM Release All************************************************************/ -void HAL_HSEM_ReleaseAll(uint32_t Key, uint32_t CoreID); -/* HSEM Check semaphore state Taken or not **********************************/ -uint32_t HAL_HSEM_IsSemTaken(uint32_t SemID); - -/** - * @} - */ - -/** @addtogroup HSEM_Exported_Functions_Group2 HSEM Set and Get Key functions - * @brief HSEM Set and Get Key functions. - * @{ - */ -/* HSEM Set Clear Key *********************************************************/ -void HAL_HSEM_SetClearKey(uint32_t Key); -/* HSEM Get Clear Key *********************************************************/ -uint32_t HAL_HSEM_GetClearKey(void); -/** - * @} - */ - -/** @addtogroup HSEM_Exported_Functions_Group3 - * @brief HSEM Notification functions - * @{ - */ -/* HSEM Activate HSEM Notification (When a semaphore is released) ) *****************/ -void HAL_HSEM_ActivateNotification(uint32_t SemMask); -/* HSEM Deactivate HSEM Notification (When a semaphore is released) ****************/ -void HAL_HSEM_DeactivateNotification(uint32_t SemMask); -/* HSEM Free Callback (When a semaphore is released) *******************************/ -void HAL_HSEM_FreeCallback(uint32_t SemMask); -/* HSEM IRQ Handler **********************************************************/ -void HAL_HSEM_IRQHandler(void); - -/** - * @} - */ - -/** - * @} - */ - -/* Private macros ------------------------------------------------------------*/ -/** @defgroup HSEM_Private_Macros HSEM Private Macros - * @{ - */ - -#define IS_HSEM_SEMID(__SEMID__) ((__SEMID__) <= HSEM_SEMID_MAX ) - -#define IS_HSEM_PROCESSID(__PROCESSID__) ((__PROCESSID__) <= HSEM_PROCESSID_MAX ) - -#define IS_HSEM_KEY(__KEY__) ((__KEY__) <= HSEM_CLEAR_KEY_MAX ) - -#if defined(DUAL_CORE) -#define IS_HSEM_COREID(__COREID__) (((__COREID__) == HSEM_CPU1_COREID) || \ - ((__COREID__) == HSEM_CPU2_COREID)) -#else -#define IS_HSEM_COREID(__COREID__) ((__COREID__) == HSEM_CPU1_COREID) -#endif - - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_HAL_HSEM_H */ diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h deleted file mode 100644 index f706250..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h +++ /dev/null @@ -1,839 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_i2c.h - * @author MCD Application Team - * @brief Header file of I2C HAL module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_HAL_I2C_H -#define STM32H7xx_HAL_I2C_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal_def.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @addtogroup I2C - * @{ - */ - -/* Exported types ------------------------------------------------------------*/ -/** @defgroup I2C_Exported_Types I2C Exported Types - * @{ - */ - -/** @defgroup I2C_Configuration_Structure_definition I2C Configuration Structure definition - * @brief I2C Configuration Structure definition - * @{ - */ -typedef struct -{ - uint32_t Timing; /*!< Specifies the I2C_TIMINGR_register value. - This parameter calculated by referring to I2C initialization section - in Reference manual */ - - uint32_t OwnAddress1; /*!< Specifies the first device own address. - This parameter can be a 7-bit or 10-bit address. */ - - uint32_t AddressingMode; /*!< Specifies if 7-bit or 10-bit addressing mode is selected. - This parameter can be a value of @ref I2C_ADDRESSING_MODE */ - - uint32_t DualAddressMode; /*!< Specifies if dual addressing mode is selected. - This parameter can be a value of @ref I2C_DUAL_ADDRESSING_MODE */ - - uint32_t OwnAddress2; /*!< Specifies the second device own address if dual addressing mode is selected - This parameter can be a 7-bit address. */ - - uint32_t OwnAddress2Masks; /*!< Specifies the acknowledge mask address second device own address if dual addressing - mode is selected. - This parameter can be a value of @ref I2C_OWN_ADDRESS2_MASKS */ - - uint32_t GeneralCallMode; /*!< Specifies if general call mode is selected. - This parameter can be a value of @ref I2C_GENERAL_CALL_ADDRESSING_MODE */ - - uint32_t NoStretchMode; /*!< Specifies if nostretch mode is selected. - This parameter can be a value of @ref I2C_NOSTRETCH_MODE */ - -} I2C_InitTypeDef; - -/** - * @} - */ - -/** @defgroup HAL_state_structure_definition HAL state structure definition - * @brief HAL State structure definition - * @note HAL I2C State value coding follow below described bitmap :\n - * b7-b6 Error information\n - * 00 : No Error\n - * 01 : Abort (Abort user request on going)\n - * 10 : Timeout\n - * 11 : Error\n - * b5 Peripheral initialization status\n - * 0 : Reset (peripheral not initialized)\n - * 1 : Init done (peripheral initialized and ready to use. HAL I2C Init function called)\n - * b4 (not used)\n - * x : Should be set to 0\n - * b3\n - * 0 : Ready or Busy (No Listen mode ongoing)\n - * 1 : Listen (peripheral in Address Listen Mode)\n - * b2 Intrinsic process state\n - * 0 : Ready\n - * 1 : Busy (peripheral busy with some configuration or internal operations)\n - * b1 Rx state\n - * 0 : Ready (no Rx operation ongoing)\n - * 1 : Busy (Rx operation ongoing)\n - * b0 Tx state\n - * 0 : Ready (no Tx operation ongoing)\n - * 1 : Busy (Tx operation ongoing) - * @{ - */ -typedef enum -{ - HAL_I2C_STATE_RESET = 0x00U, /*!< Peripheral is not yet Initialized */ - HAL_I2C_STATE_READY = 0x20U, /*!< Peripheral Initialized and ready for use */ - HAL_I2C_STATE_BUSY = 0x24U, /*!< An internal process is ongoing */ - HAL_I2C_STATE_BUSY_TX = 0x21U, /*!< Data Transmission process is ongoing */ - HAL_I2C_STATE_BUSY_RX = 0x22U, /*!< Data Reception process is ongoing */ - HAL_I2C_STATE_LISTEN = 0x28U, /*!< Address Listen Mode is ongoing */ - HAL_I2C_STATE_BUSY_TX_LISTEN = 0x29U, /*!< Address Listen Mode and Data Transmission - process is ongoing */ - HAL_I2C_STATE_BUSY_RX_LISTEN = 0x2AU, /*!< Address Listen Mode and Data Reception - process is ongoing */ - HAL_I2C_STATE_ABORT = 0x60U, /*!< Abort user request ongoing */ - HAL_I2C_STATE_TIMEOUT = 0xA0U, /*!< Timeout state */ - HAL_I2C_STATE_ERROR = 0xE0U /*!< Error */ - -} HAL_I2C_StateTypeDef; - -/** - * @} - */ - -/** @defgroup HAL_mode_structure_definition HAL mode structure definition - * @brief HAL Mode structure definition - * @note HAL I2C Mode value coding follow below described bitmap :\n - * b7 (not used)\n - * x : Should be set to 0\n - * b6\n - * 0 : None\n - * 1 : Memory (HAL I2C communication is in Memory Mode)\n - * b5\n - * 0 : None\n - * 1 : Slave (HAL I2C communication is in Slave Mode)\n - * b4\n - * 0 : None\n - * 1 : Master (HAL I2C communication is in Master Mode)\n - * b3-b2-b1-b0 (not used)\n - * xxxx : Should be set to 0000 - * @{ - */ -typedef enum -{ - HAL_I2C_MODE_NONE = 0x00U, /*!< No I2C communication on going */ - HAL_I2C_MODE_MASTER = 0x10U, /*!< I2C communication is in Master Mode */ - HAL_I2C_MODE_SLAVE = 0x20U, /*!< I2C communication is in Slave Mode */ - HAL_I2C_MODE_MEM = 0x40U /*!< I2C communication is in Memory Mode */ - -} HAL_I2C_ModeTypeDef; - -/** - * @} - */ - -/** @defgroup I2C_Error_Code_definition I2C Error Code definition - * @brief I2C Error Code definition - * @{ - */ -#define HAL_I2C_ERROR_NONE (0x00000000U) /*!< No error */ -#define HAL_I2C_ERROR_BERR (0x00000001U) /*!< BERR error */ -#define HAL_I2C_ERROR_ARLO (0x00000002U) /*!< ARLO error */ -#define HAL_I2C_ERROR_AF (0x00000004U) /*!< ACKF error */ -#define HAL_I2C_ERROR_OVR (0x00000008U) /*!< OVR error */ -#define HAL_I2C_ERROR_DMA (0x00000010U) /*!< DMA transfer error */ -#define HAL_I2C_ERROR_TIMEOUT (0x00000020U) /*!< Timeout error */ -#define HAL_I2C_ERROR_SIZE (0x00000040U) /*!< Size Management error */ -#define HAL_I2C_ERROR_DMA_PARAM (0x00000080U) /*!< DMA Parameter Error */ -#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) -#define HAL_I2C_ERROR_INVALID_CALLBACK (0x00000100U) /*!< Invalid Callback error */ -#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ -#define HAL_I2C_ERROR_INVALID_PARAM (0x00000200U) /*!< Invalid Parameters error */ -/** - * @} - */ - -/** @defgroup I2C_handle_Structure_definition I2C handle Structure definition - * @brief I2C handle Structure definition - * @{ - */ -typedef struct __I2C_HandleTypeDef -{ - I2C_TypeDef *Instance; /*!< I2C registers base address */ - - I2C_InitTypeDef Init; /*!< I2C communication parameters */ - - uint8_t *pBuffPtr; /*!< Pointer to I2C transfer buffer */ - - uint16_t XferSize; /*!< I2C transfer size */ - - __IO uint16_t XferCount; /*!< I2C transfer counter */ - - __IO uint32_t XferOptions; /*!< I2C sequantial transfer options, this parameter can - be a value of @ref I2C_XFEROPTIONS */ - - __IO uint32_t PreviousState; /*!< I2C communication Previous state */ - - HAL_StatusTypeDef(*XferISR)(struct __I2C_HandleTypeDef *hi2c, uint32_t ITFlags, uint32_t ITSources); - /*!< I2C transfer IRQ handler function pointer */ - - DMA_HandleTypeDef *hdmatx; /*!< I2C Tx DMA handle parameters */ - - DMA_HandleTypeDef *hdmarx; /*!< I2C Rx DMA handle parameters */ - - HAL_LockTypeDef Lock; /*!< I2C locking object */ - - __IO HAL_I2C_StateTypeDef State; /*!< I2C communication state */ - - __IO HAL_I2C_ModeTypeDef Mode; /*!< I2C communication mode */ - - __IO uint32_t ErrorCode; /*!< I2C Error code */ - - __IO uint32_t AddrEventCount; /*!< I2C Address Event counter */ - - __IO uint32_t Devaddress; /*!< I2C Target device address */ - - __IO uint32_t Memaddress; /*!< I2C Target memory address */ - -#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) - void (* MasterTxCpltCallback)(struct __I2C_HandleTypeDef *hi2c); - /*!< I2C Master Tx Transfer completed callback */ - void (* MasterRxCpltCallback)(struct __I2C_HandleTypeDef *hi2c); - /*!< I2C Master Rx Transfer completed callback */ - void (* SlaveTxCpltCallback)(struct __I2C_HandleTypeDef *hi2c); - /*!< I2C Slave Tx Transfer completed callback */ - void (* SlaveRxCpltCallback)(struct __I2C_HandleTypeDef *hi2c); - /*!< I2C Slave Rx Transfer completed callback */ - void (* ListenCpltCallback)(struct __I2C_HandleTypeDef *hi2c); - /*!< I2C Listen Complete callback */ - void (* MemTxCpltCallback)(struct __I2C_HandleTypeDef *hi2c); - /*!< I2C Memory Tx Transfer completed callback */ - void (* MemRxCpltCallback)(struct __I2C_HandleTypeDef *hi2c); - /*!< I2C Memory Rx Transfer completed callback */ - void (* ErrorCallback)(struct __I2C_HandleTypeDef *hi2c); - /*!< I2C Error callback */ - void (* AbortCpltCallback)(struct __I2C_HandleTypeDef *hi2c); - /*!< I2C Abort callback */ - - void (* AddrCallback)(struct __I2C_HandleTypeDef *hi2c, uint8_t TransferDirection, uint16_t AddrMatchCode); - /*!< I2C Slave Address Match callback */ - - void (* MspInitCallback)(struct __I2C_HandleTypeDef *hi2c); - /*!< I2C Msp Init callback */ - void (* MspDeInitCallback)(struct __I2C_HandleTypeDef *hi2c); - /*!< I2C Msp DeInit callback */ - -#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ -} I2C_HandleTypeDef; - -#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) -/** - * @brief HAL I2C Callback ID enumeration definition - */ -typedef enum -{ - HAL_I2C_MASTER_TX_COMPLETE_CB_ID = 0x00U, /*!< I2C Master Tx Transfer completed callback ID */ - HAL_I2C_MASTER_RX_COMPLETE_CB_ID = 0x01U, /*!< I2C Master Rx Transfer completed callback ID */ - HAL_I2C_SLAVE_TX_COMPLETE_CB_ID = 0x02U, /*!< I2C Slave Tx Transfer completed callback ID */ - HAL_I2C_SLAVE_RX_COMPLETE_CB_ID = 0x03U, /*!< I2C Slave Rx Transfer completed callback ID */ - HAL_I2C_LISTEN_COMPLETE_CB_ID = 0x04U, /*!< I2C Listen Complete callback ID */ - HAL_I2C_MEM_TX_COMPLETE_CB_ID = 0x05U, /*!< I2C Memory Tx Transfer callback ID */ - HAL_I2C_MEM_RX_COMPLETE_CB_ID = 0x06U, /*!< I2C Memory Rx Transfer completed callback ID */ - HAL_I2C_ERROR_CB_ID = 0x07U, /*!< I2C Error callback ID */ - HAL_I2C_ABORT_CB_ID = 0x08U, /*!< I2C Abort callback ID */ - - HAL_I2C_MSPINIT_CB_ID = 0x09U, /*!< I2C Msp Init callback ID */ - HAL_I2C_MSPDEINIT_CB_ID = 0x0AU /*!< I2C Msp DeInit callback ID */ - -} HAL_I2C_CallbackIDTypeDef; - -/** - * @brief HAL I2C Callback pointer definition - */ -typedef void (*pI2C_CallbackTypeDef)(I2C_HandleTypeDef *hi2c); -/*!< pointer to an I2C callback function */ -typedef void (*pI2C_AddrCallbackTypeDef)(I2C_HandleTypeDef *hi2c, uint8_t TransferDirection, - uint16_t AddrMatchCode); -/*!< pointer to an I2C Address Match callback function */ - -#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ -/** - * @} - */ - -/** - * @} - */ -/* Exported constants --------------------------------------------------------*/ - -/** @defgroup I2C_Exported_Constants I2C Exported Constants - * @{ - */ - -/** @defgroup I2C_XFEROPTIONS I2C Sequential Transfer Options - * @{ - */ -#define I2C_FIRST_FRAME ((uint32_t)I2C_SOFTEND_MODE) -#define I2C_FIRST_AND_NEXT_FRAME ((uint32_t)(I2C_RELOAD_MODE | I2C_SOFTEND_MODE)) -#define I2C_NEXT_FRAME ((uint32_t)(I2C_RELOAD_MODE | I2C_SOFTEND_MODE)) -#define I2C_FIRST_AND_LAST_FRAME ((uint32_t)I2C_AUTOEND_MODE) -#define I2C_LAST_FRAME ((uint32_t)I2C_AUTOEND_MODE) -#define I2C_LAST_FRAME_NO_STOP ((uint32_t)I2C_SOFTEND_MODE) - -/* List of XferOptions in usage of : - * 1- Restart condition in all use cases (direction change or not) - */ -#define I2C_OTHER_FRAME (0x000000AAU) -#define I2C_OTHER_AND_LAST_FRAME (0x0000AA00U) -/** - * @} - */ - -/** @defgroup I2C_ADDRESSING_MODE I2C Addressing Mode - * @{ - */ -#define I2C_ADDRESSINGMODE_7BIT (0x00000001U) -#define I2C_ADDRESSINGMODE_10BIT (0x00000002U) -/** - * @} - */ - -/** @defgroup I2C_DUAL_ADDRESSING_MODE I2C Dual Addressing Mode - * @{ - */ -#define I2C_DUALADDRESS_DISABLE (0x00000000U) -#define I2C_DUALADDRESS_ENABLE I2C_OAR2_OA2EN -/** - * @} - */ - -/** @defgroup I2C_OWN_ADDRESS2_MASKS I2C Own Address2 Masks - * @{ - */ -#define I2C_OA2_NOMASK ((uint8_t)0x00U) -#define I2C_OA2_MASK01 ((uint8_t)0x01U) -#define I2C_OA2_MASK02 ((uint8_t)0x02U) -#define I2C_OA2_MASK03 ((uint8_t)0x03U) -#define I2C_OA2_MASK04 ((uint8_t)0x04U) -#define I2C_OA2_MASK05 ((uint8_t)0x05U) -#define I2C_OA2_MASK06 ((uint8_t)0x06U) -#define I2C_OA2_MASK07 ((uint8_t)0x07U) -/** - * @} - */ - -/** @defgroup I2C_GENERAL_CALL_ADDRESSING_MODE I2C General Call Addressing Mode - * @{ - */ -#define I2C_GENERALCALL_DISABLE (0x00000000U) -#define I2C_GENERALCALL_ENABLE I2C_CR1_GCEN -/** - * @} - */ - -/** @defgroup I2C_NOSTRETCH_MODE I2C No-Stretch Mode - * @{ - */ -#define I2C_NOSTRETCH_DISABLE (0x00000000U) -#define I2C_NOSTRETCH_ENABLE I2C_CR1_NOSTRETCH -/** - * @} - */ - -/** @defgroup I2C_MEMORY_ADDRESS_SIZE I2C Memory Address Size - * @{ - */ -#define I2C_MEMADD_SIZE_8BIT (0x00000001U) -#define I2C_MEMADD_SIZE_16BIT (0x00000002U) -/** - * @} - */ - -/** @defgroup I2C_XFERDIRECTION I2C Transfer Direction Master Point of View - * @{ - */ -#define I2C_DIRECTION_TRANSMIT (0x00000000U) -#define I2C_DIRECTION_RECEIVE (0x00000001U) -/** - * @} - */ - -/** @defgroup I2C_RELOAD_END_MODE I2C Reload End Mode - * @{ - */ -#define I2C_RELOAD_MODE I2C_CR2_RELOAD -#define I2C_AUTOEND_MODE I2C_CR2_AUTOEND -#define I2C_SOFTEND_MODE (0x00000000U) -/** - * @} - */ - -/** @defgroup I2C_START_STOP_MODE I2C Start or Stop Mode - * @{ - */ -#define I2C_NO_STARTSTOP (0x00000000U) -#define I2C_GENERATE_STOP (uint32_t)(0x80000000U | I2C_CR2_STOP) -#define I2C_GENERATE_START_READ (uint32_t)(0x80000000U | I2C_CR2_START | I2C_CR2_RD_WRN) -#define I2C_GENERATE_START_WRITE (uint32_t)(0x80000000U | I2C_CR2_START) -/** - * @} - */ - -/** @defgroup I2C_Interrupt_configuration_definition I2C Interrupt configuration definition - * @brief I2C Interrupt definition - * Elements values convention: 0xXXXXXXXX - * - XXXXXXXX : Interrupt control mask - * @{ - */ -#define I2C_IT_ERRI I2C_CR1_ERRIE -#define I2C_IT_TCI I2C_CR1_TCIE -#define I2C_IT_STOPI I2C_CR1_STOPIE -#define I2C_IT_NACKI I2C_CR1_NACKIE -#define I2C_IT_ADDRI I2C_CR1_ADDRIE -#define I2C_IT_RXI I2C_CR1_RXIE -#define I2C_IT_TXI I2C_CR1_TXIE -/** - * @} - */ - -/** @defgroup I2C_Flag_definition I2C Flag definition - * @{ - */ -#define I2C_FLAG_TXE I2C_ISR_TXE -#define I2C_FLAG_TXIS I2C_ISR_TXIS -#define I2C_FLAG_RXNE I2C_ISR_RXNE -#define I2C_FLAG_ADDR I2C_ISR_ADDR -#define I2C_FLAG_AF I2C_ISR_NACKF -#define I2C_FLAG_STOPF I2C_ISR_STOPF -#define I2C_FLAG_TC I2C_ISR_TC -#define I2C_FLAG_TCR I2C_ISR_TCR -#define I2C_FLAG_BERR I2C_ISR_BERR -#define I2C_FLAG_ARLO I2C_ISR_ARLO -#define I2C_FLAG_OVR I2C_ISR_OVR -#define I2C_FLAG_PECERR I2C_ISR_PECERR -#define I2C_FLAG_TIMEOUT I2C_ISR_TIMEOUT -#define I2C_FLAG_ALERT I2C_ISR_ALERT -#define I2C_FLAG_BUSY I2C_ISR_BUSY -#define I2C_FLAG_DIR I2C_ISR_DIR -/** - * @} - */ - -/** - * @} - */ - -/* Exported macros -----------------------------------------------------------*/ - -/** @defgroup I2C_Exported_Macros I2C Exported Macros - * @{ - */ - -/** @brief Reset I2C handle state. - * @param __HANDLE__ specifies the I2C Handle. - * @retval None - */ -#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) -#define __HAL_I2C_RESET_HANDLE_STATE(__HANDLE__) do{ \ - (__HANDLE__)->State = HAL_I2C_STATE_RESET; \ - (__HANDLE__)->MspInitCallback = NULL; \ - (__HANDLE__)->MspDeInitCallback = NULL; \ - } while(0) -#else -#define __HAL_I2C_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_I2C_STATE_RESET) -#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ - -/** @brief Enable the specified I2C interrupt. - * @param __HANDLE__ specifies the I2C Handle. - * @param __INTERRUPT__ specifies the interrupt source to enable. - * This parameter can be one of the following values: - * @arg @ref I2C_IT_ERRI Errors interrupt enable - * @arg @ref I2C_IT_TCI Transfer complete interrupt enable - * @arg @ref I2C_IT_STOPI STOP detection interrupt enable - * @arg @ref I2C_IT_NACKI NACK received interrupt enable - * @arg @ref I2C_IT_ADDRI Address match interrupt enable - * @arg @ref I2C_IT_RXI RX interrupt enable - * @arg @ref I2C_IT_TXI TX interrupt enable - * - * @retval None - */ -#define __HAL_I2C_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR1 |= (__INTERRUPT__)) - -/** @brief Disable the specified I2C interrupt. - * @param __HANDLE__ specifies the I2C Handle. - * @param __INTERRUPT__ specifies the interrupt source to disable. - * This parameter can be one of the following values: - * @arg @ref I2C_IT_ERRI Errors interrupt enable - * @arg @ref I2C_IT_TCI Transfer complete interrupt enable - * @arg @ref I2C_IT_STOPI STOP detection interrupt enable - * @arg @ref I2C_IT_NACKI NACK received interrupt enable - * @arg @ref I2C_IT_ADDRI Address match interrupt enable - * @arg @ref I2C_IT_RXI RX interrupt enable - * @arg @ref I2C_IT_TXI TX interrupt enable - * - * @retval None - */ -#define __HAL_I2C_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR1 &= (~(__INTERRUPT__))) - -/** @brief Check whether the specified I2C interrupt source is enabled or not. - * @param __HANDLE__ specifies the I2C Handle. - * @param __INTERRUPT__ specifies the I2C interrupt source to check. - * This parameter can be one of the following values: - * @arg @ref I2C_IT_ERRI Errors interrupt enable - * @arg @ref I2C_IT_TCI Transfer complete interrupt enable - * @arg @ref I2C_IT_STOPI STOP detection interrupt enable - * @arg @ref I2C_IT_NACKI NACK received interrupt enable - * @arg @ref I2C_IT_ADDRI Address match interrupt enable - * @arg @ref I2C_IT_RXI RX interrupt enable - * @arg @ref I2C_IT_TXI TX interrupt enable - * - * @retval The new state of __INTERRUPT__ (SET or RESET). - */ -#define __HAL_I2C_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((((__HANDLE__)->Instance->CR1 & \ - (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET) - -/** @brief Check whether the specified I2C flag is set or not. - * @param __HANDLE__ specifies the I2C Handle. - * @param __FLAG__ specifies the flag to check. - * This parameter can be one of the following values: - * @arg @ref I2C_FLAG_TXE Transmit data register empty - * @arg @ref I2C_FLAG_TXIS Transmit interrupt status - * @arg @ref I2C_FLAG_RXNE Receive data register not empty - * @arg @ref I2C_FLAG_ADDR Address matched (slave mode) - * @arg @ref I2C_FLAG_AF Acknowledge failure received flag - * @arg @ref I2C_FLAG_STOPF STOP detection flag - * @arg @ref I2C_FLAG_TC Transfer complete (master mode) - * @arg @ref I2C_FLAG_TCR Transfer complete reload - * @arg @ref I2C_FLAG_BERR Bus error - * @arg @ref I2C_FLAG_ARLO Arbitration lost - * @arg @ref I2C_FLAG_OVR Overrun/Underrun - * @arg @ref I2C_FLAG_PECERR PEC error in reception - * @arg @ref I2C_FLAG_TIMEOUT Timeout or Tlow detection flag - * @arg @ref I2C_FLAG_ALERT SMBus alert - * @arg @ref I2C_FLAG_BUSY Bus busy - * @arg @ref I2C_FLAG_DIR Transfer direction (slave mode) - * - * @retval The new state of __FLAG__ (SET or RESET). - */ -#define I2C_FLAG_MASK (0x0001FFFFU) -#define __HAL_I2C_GET_FLAG(__HANDLE__, __FLAG__) (((((__HANDLE__)->Instance->ISR) & \ - (__FLAG__)) == (__FLAG__)) ? SET : RESET) - -/** @brief Clear the I2C pending flags which are cleared by writing 1 in a specific bit. - * @param __HANDLE__ specifies the I2C Handle. - * @param __FLAG__ specifies the flag to clear. - * This parameter can be any combination of the following values: - * @arg @ref I2C_FLAG_TXE Transmit data register empty - * @arg @ref I2C_FLAG_ADDR Address matched (slave mode) - * @arg @ref I2C_FLAG_AF Acknowledge failure received flag - * @arg @ref I2C_FLAG_STOPF STOP detection flag - * @arg @ref I2C_FLAG_BERR Bus error - * @arg @ref I2C_FLAG_ARLO Arbitration lost - * @arg @ref I2C_FLAG_OVR Overrun/Underrun - * @arg @ref I2C_FLAG_PECERR PEC error in reception - * @arg @ref I2C_FLAG_TIMEOUT Timeout or Tlow detection flag - * @arg @ref I2C_FLAG_ALERT SMBus alert - * - * @retval None - */ -#define __HAL_I2C_CLEAR_FLAG(__HANDLE__, __FLAG__) (((__FLAG__) == I2C_FLAG_TXE) ? \ - ((__HANDLE__)->Instance->ISR |= (__FLAG__)) : \ - ((__HANDLE__)->Instance->ICR = (__FLAG__))) - -/** @brief Enable the specified I2C peripheral. - * @param __HANDLE__ specifies the I2C Handle. - * @retval None - */ -#define __HAL_I2C_ENABLE(__HANDLE__) (SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE)) - -/** @brief Disable the specified I2C peripheral. - * @param __HANDLE__ specifies the I2C Handle. - * @retval None - */ -#define __HAL_I2C_DISABLE(__HANDLE__) (CLEAR_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE)) - -/** @brief Generate a Non-Acknowledge I2C peripheral in Slave mode. - * @param __HANDLE__ specifies the I2C Handle. - * @retval None - */ -#define __HAL_I2C_GENERATE_NACK(__HANDLE__) (SET_BIT((__HANDLE__)->Instance->CR2, I2C_CR2_NACK)) -/** - * @} - */ - -/* Include I2C HAL Extended module */ -#include "stm32h7xx_hal_i2c_ex.h" - -/* Exported functions --------------------------------------------------------*/ -/** @addtogroup I2C_Exported_Functions - * @{ - */ - -/** @addtogroup I2C_Exported_Functions_Group1 Initialization and de-initialization functions - * @{ - */ -/* Initialization and de-initialization functions******************************/ -HAL_StatusTypeDef HAL_I2C_Init(I2C_HandleTypeDef *hi2c); -HAL_StatusTypeDef HAL_I2C_DeInit(I2C_HandleTypeDef *hi2c); -void HAL_I2C_MspInit(I2C_HandleTypeDef *hi2c); -void HAL_I2C_MspDeInit(I2C_HandleTypeDef *hi2c); - -/* Callbacks Register/UnRegister functions ***********************************/ -#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) -HAL_StatusTypeDef HAL_I2C_RegisterCallback(I2C_HandleTypeDef *hi2c, HAL_I2C_CallbackIDTypeDef CallbackID, - pI2C_CallbackTypeDef pCallback); -HAL_StatusTypeDef HAL_I2C_UnRegisterCallback(I2C_HandleTypeDef *hi2c, HAL_I2C_CallbackIDTypeDef CallbackID); - -HAL_StatusTypeDef HAL_I2C_RegisterAddrCallback(I2C_HandleTypeDef *hi2c, pI2C_AddrCallbackTypeDef pCallback); -HAL_StatusTypeDef HAL_I2C_UnRegisterAddrCallback(I2C_HandleTypeDef *hi2c); -#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ -/** - * @} - */ - -/** @addtogroup I2C_Exported_Functions_Group2 Input and Output operation functions - * @{ - */ -/* IO operation functions ****************************************************/ -/******* Blocking mode: Polling */ -HAL_StatusTypeDef HAL_I2C_Master_Transmit(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, - uint16_t Size, uint32_t Timeout); -HAL_StatusTypeDef HAL_I2C_Master_Receive(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, - uint16_t Size, uint32_t Timeout); -HAL_StatusTypeDef HAL_I2C_Slave_Transmit(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, - uint32_t Timeout); -HAL_StatusTypeDef HAL_I2C_Slave_Receive(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, - uint32_t Timeout); -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); -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); -HAL_StatusTypeDef HAL_I2C_IsDeviceReady(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint32_t Trials, - uint32_t Timeout); - -/******* Non-Blocking mode: Interrupt */ -HAL_StatusTypeDef HAL_I2C_Master_Transmit_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, - uint16_t Size); -HAL_StatusTypeDef HAL_I2C_Master_Receive_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, - uint16_t Size); -HAL_StatusTypeDef HAL_I2C_Slave_Transmit_IT(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size); -HAL_StatusTypeDef HAL_I2C_Slave_Receive_IT(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size); -HAL_StatusTypeDef HAL_I2C_Mem_Write_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, - uint16_t MemAddSize, uint8_t *pData, uint16_t Size); -HAL_StatusTypeDef HAL_I2C_Mem_Read_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, - uint16_t MemAddSize, uint8_t *pData, uint16_t Size); - -HAL_StatusTypeDef HAL_I2C_Master_Seq_Transmit_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, - uint16_t Size, uint32_t XferOptions); -HAL_StatusTypeDef HAL_I2C_Master_Seq_Receive_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, - uint16_t Size, uint32_t XferOptions); -HAL_StatusTypeDef HAL_I2C_Slave_Seq_Transmit_IT(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, - uint32_t XferOptions); -HAL_StatusTypeDef HAL_I2C_Slave_Seq_Receive_IT(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, - uint32_t XferOptions); -HAL_StatusTypeDef HAL_I2C_EnableListen_IT(I2C_HandleTypeDef *hi2c); -HAL_StatusTypeDef HAL_I2C_DisableListen_IT(I2C_HandleTypeDef *hi2c); -HAL_StatusTypeDef HAL_I2C_Master_Abort_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress); - -/******* Non-Blocking mode: DMA */ -HAL_StatusTypeDef HAL_I2C_Master_Transmit_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, - uint16_t Size); -HAL_StatusTypeDef HAL_I2C_Master_Receive_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, - uint16_t Size); -HAL_StatusTypeDef HAL_I2C_Slave_Transmit_DMA(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size); -HAL_StatusTypeDef HAL_I2C_Slave_Receive_DMA(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size); -HAL_StatusTypeDef HAL_I2C_Mem_Write_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, - uint16_t MemAddSize, uint8_t *pData, uint16_t Size); -HAL_StatusTypeDef HAL_I2C_Mem_Read_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, - uint16_t MemAddSize, uint8_t *pData, uint16_t Size); - -HAL_StatusTypeDef HAL_I2C_Master_Seq_Transmit_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, - uint16_t Size, uint32_t XferOptions); -HAL_StatusTypeDef HAL_I2C_Master_Seq_Receive_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, - uint16_t Size, uint32_t XferOptions); -HAL_StatusTypeDef HAL_I2C_Slave_Seq_Transmit_DMA(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, - uint32_t XferOptions); -HAL_StatusTypeDef HAL_I2C_Slave_Seq_Receive_DMA(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, - uint32_t XferOptions); -/** - * @} - */ - -/** @addtogroup I2C_IRQ_Handler_and_Callbacks IRQ Handler and Callbacks - * @{ - */ -/******* I2C IRQHandler and Callbacks used in non blocking modes (Interrupt and DMA) */ -void HAL_I2C_EV_IRQHandler(I2C_HandleTypeDef *hi2c); -void HAL_I2C_ER_IRQHandler(I2C_HandleTypeDef *hi2c); -void HAL_I2C_MasterTxCpltCallback(I2C_HandleTypeDef *hi2c); -void HAL_I2C_MasterRxCpltCallback(I2C_HandleTypeDef *hi2c); -void HAL_I2C_SlaveTxCpltCallback(I2C_HandleTypeDef *hi2c); -void HAL_I2C_SlaveRxCpltCallback(I2C_HandleTypeDef *hi2c); -void HAL_I2C_AddrCallback(I2C_HandleTypeDef *hi2c, uint8_t TransferDirection, uint16_t AddrMatchCode); -void HAL_I2C_ListenCpltCallback(I2C_HandleTypeDef *hi2c); -void HAL_I2C_MemTxCpltCallback(I2C_HandleTypeDef *hi2c); -void HAL_I2C_MemRxCpltCallback(I2C_HandleTypeDef *hi2c); -void HAL_I2C_ErrorCallback(I2C_HandleTypeDef *hi2c); -void HAL_I2C_AbortCpltCallback(I2C_HandleTypeDef *hi2c); -/** - * @} - */ - -/** @addtogroup I2C_Exported_Functions_Group3 Peripheral State, Mode and Error functions - * @{ - */ -/* Peripheral State, Mode and Error functions *********************************/ -HAL_I2C_StateTypeDef HAL_I2C_GetState(I2C_HandleTypeDef *hi2c); -HAL_I2C_ModeTypeDef HAL_I2C_GetMode(I2C_HandleTypeDef *hi2c); -uint32_t HAL_I2C_GetError(I2C_HandleTypeDef *hi2c); - -/** - * @} - */ - -/** - * @} - */ - -/* Private constants ---------------------------------------------------------*/ -/** @defgroup I2C_Private_Constants I2C Private Constants - * @{ - */ - -/** - * @} - */ - -/* Private macros ------------------------------------------------------------*/ -/** @defgroup I2C_Private_Macro I2C Private Macros - * @{ - */ - -#define IS_I2C_ADDRESSING_MODE(MODE) (((MODE) == I2C_ADDRESSINGMODE_7BIT) || \ - ((MODE) == I2C_ADDRESSINGMODE_10BIT)) - -#define IS_I2C_DUAL_ADDRESS(ADDRESS) (((ADDRESS) == I2C_DUALADDRESS_DISABLE) || \ - ((ADDRESS) == I2C_DUALADDRESS_ENABLE)) - -#define IS_I2C_OWN_ADDRESS2_MASK(MASK) (((MASK) == I2C_OA2_NOMASK) || \ - ((MASK) == I2C_OA2_MASK01) || \ - ((MASK) == I2C_OA2_MASK02) || \ - ((MASK) == I2C_OA2_MASK03) || \ - ((MASK) == I2C_OA2_MASK04) || \ - ((MASK) == I2C_OA2_MASK05) || \ - ((MASK) == I2C_OA2_MASK06) || \ - ((MASK) == I2C_OA2_MASK07)) - -#define IS_I2C_GENERAL_CALL(CALL) (((CALL) == I2C_GENERALCALL_DISABLE) || \ - ((CALL) == I2C_GENERALCALL_ENABLE)) - -#define IS_I2C_NO_STRETCH(STRETCH) (((STRETCH) == I2C_NOSTRETCH_DISABLE) || \ - ((STRETCH) == I2C_NOSTRETCH_ENABLE)) - -#define IS_I2C_MEMADD_SIZE(SIZE) (((SIZE) == I2C_MEMADD_SIZE_8BIT) || \ - ((SIZE) == I2C_MEMADD_SIZE_16BIT)) - -#define IS_TRANSFER_MODE(MODE) (((MODE) == I2C_RELOAD_MODE) || \ - ((MODE) == I2C_AUTOEND_MODE) || \ - ((MODE) == I2C_SOFTEND_MODE)) - -#define IS_TRANSFER_REQUEST(REQUEST) (((REQUEST) == I2C_GENERATE_STOP) || \ - ((REQUEST) == I2C_GENERATE_START_READ) || \ - ((REQUEST) == I2C_GENERATE_START_WRITE) || \ - ((REQUEST) == I2C_NO_STARTSTOP)) - -#define IS_I2C_TRANSFER_OPTIONS_REQUEST(REQUEST) (((REQUEST) == I2C_FIRST_FRAME) || \ - ((REQUEST) == I2C_FIRST_AND_NEXT_FRAME) || \ - ((REQUEST) == I2C_NEXT_FRAME) || \ - ((REQUEST) == I2C_FIRST_AND_LAST_FRAME) || \ - ((REQUEST) == I2C_LAST_FRAME) || \ - ((REQUEST) == I2C_LAST_FRAME_NO_STOP) || \ - IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(REQUEST)) - -#define IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(REQUEST) (((REQUEST) == I2C_OTHER_FRAME) || \ - ((REQUEST) == I2C_OTHER_AND_LAST_FRAME)) - -#define I2C_RESET_CR2(__HANDLE__) ((__HANDLE__)->Instance->CR2 &= \ - (uint32_t)~((uint32_t)(I2C_CR2_SADD | I2C_CR2_HEAD10R | \ - I2C_CR2_NBYTES | I2C_CR2_RELOAD | \ - I2C_CR2_RD_WRN))) - -#define I2C_GET_ADDR_MATCH(__HANDLE__) ((uint16_t)(((__HANDLE__)->Instance->ISR & I2C_ISR_ADDCODE) \ - >> 16U)) -#define I2C_GET_DIR(__HANDLE__) ((uint8_t)(((__HANDLE__)->Instance->ISR & I2C_ISR_DIR) \ - >> 16U)) -#define I2C_GET_STOP_MODE(__HANDLE__) ((__HANDLE__)->Instance->CR2 & I2C_CR2_AUTOEND) -#define I2C_GET_OWN_ADDRESS1(__HANDLE__) ((uint16_t)((__HANDLE__)->Instance->OAR1 & I2C_OAR1_OA1)) -#define I2C_GET_OWN_ADDRESS2(__HANDLE__) ((uint16_t)((__HANDLE__)->Instance->OAR2 & I2C_OAR2_OA2)) - -#define IS_I2C_OWN_ADDRESS1(ADDRESS1) ((ADDRESS1) <= 0x000003FFU) -#define IS_I2C_OWN_ADDRESS2(ADDRESS2) ((ADDRESS2) <= (uint16_t)0x00FFU) - -#define I2C_MEM_ADD_MSB(__ADDRESS__) ((uint8_t)((uint16_t)(((uint16_t)((__ADDRESS__) & \ - (uint16_t)(0xFF00U))) >> 8U))) -#define I2C_MEM_ADD_LSB(__ADDRESS__) ((uint8_t)((uint16_t)((__ADDRESS__) & (uint16_t)(0x00FFU)))) - -#define I2C_GENERATE_START(__ADDMODE__,__ADDRESS__) (((__ADDMODE__) == I2C_ADDRESSINGMODE_7BIT) ? \ - (uint32_t)((((uint32_t)(__ADDRESS__) & (I2C_CR2_SADD)) | \ - (I2C_CR2_START) | (I2C_CR2_AUTOEND)) & \ - (~I2C_CR2_RD_WRN)) : \ - (uint32_t)((((uint32_t)(__ADDRESS__) & (I2C_CR2_SADD)) | \ - (I2C_CR2_ADD10) | (I2C_CR2_START)) & \ - (~I2C_CR2_RD_WRN))) - -#define I2C_CHECK_FLAG(__ISR__, __FLAG__) ((((__ISR__) & ((__FLAG__) & I2C_FLAG_MASK)) == \ - ((__FLAG__) & I2C_FLAG_MASK)) ? SET : RESET) -#define I2C_CHECK_IT_SOURCE(__CR1__, __IT__) ((((__CR1__) & (__IT__)) == (__IT__)) ? SET : RESET) -/** - * @} - */ - -/* Private Functions ---------------------------------------------------------*/ -/** @defgroup I2C_Private_Functions I2C Private Functions - * @{ - */ -/* Private functions are defined in stm32h7xx_hal_i2c.c file */ -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - - -#endif /* STM32H7xx_HAL_I2C_H */ diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h deleted file mode 100644 index e701b8b..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h +++ /dev/null @@ -1,175 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_i2c_ex.h - * @author MCD Application Team - * @brief Header file of I2C HAL Extended module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_HAL_I2C_EX_H -#define STM32H7xx_HAL_I2C_EX_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal_def.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @addtogroup I2CEx - * @{ - */ - -/* Exported types ------------------------------------------------------------*/ -/* Exported constants --------------------------------------------------------*/ -/** @defgroup I2CEx_Exported_Constants I2C Extended Exported Constants - * @{ - */ - -/** @defgroup I2CEx_Analog_Filter I2C Extended Analog Filter - * @{ - */ -#define I2C_ANALOGFILTER_ENABLE 0x00000000U -#define I2C_ANALOGFILTER_DISABLE I2C_CR1_ANFOFF -/** - * @} - */ - -/** @defgroup I2CEx_FastModePlus I2C Extended Fast Mode Plus - * @{ - */ -#define I2C_FMP_NOT_SUPPORTED 0xAAAA0000U /*!< Fast Mode Plus not supported */ -#define I2C_FASTMODEPLUS_PB6 SYSCFG_PMCR_I2C_PB6_FMP /*!< Enable Fast Mode Plus on PB6 */ -#define I2C_FASTMODEPLUS_PB7 SYSCFG_PMCR_I2C_PB7_FMP /*!< Enable Fast Mode Plus on PB7 */ -#define I2C_FASTMODEPLUS_PB8 SYSCFG_PMCR_I2C_PB8_FMP /*!< Enable Fast Mode Plus on PB8 */ -#define I2C_FASTMODEPLUS_PB9 SYSCFG_PMCR_I2C_PB9_FMP /*!< Enable Fast Mode Plus on PB9 */ -#define I2C_FASTMODEPLUS_I2C1 SYSCFG_PMCR_I2C1_FMP /*!< Enable Fast Mode Plus on I2C1 pins */ -#define I2C_FASTMODEPLUS_I2C2 SYSCFG_PMCR_I2C2_FMP /*!< Enable Fast Mode Plus on I2C2 pins */ -#define I2C_FASTMODEPLUS_I2C3 SYSCFG_PMCR_I2C3_FMP /*!< Enable Fast Mode Plus on I2C3 pins */ -#define I2C_FASTMODEPLUS_I2C4 SYSCFG_PMCR_I2C4_FMP /*!< Enable Fast Mode Plus on I2C4 pins */ -#if defined(SYSCFG_PMCR_I2C5_FMP) -#define I2C_FASTMODEPLUS_I2C5 SYSCFG_PMCR_I2C5_FMP /*!< Enable Fast Mode Plus on I2C5 pins */ -#else -#define I2C_FASTMODEPLUS_I2C5 (uint32_t)(0x00001000U | I2C_FMP_NOT_SUPPORTED) /*!< Fast Mode Plus I2C5 not supported */ -#endif /* SYSCFG_PMCR_I2C5_FMP */ -/** - * @} - */ - -/** - * @} - */ - -/* Exported macro ------------------------------------------------------------*/ -/** @defgroup I2CEx_Exported_Macros I2C Extended Exported Macros - * @{ - */ - -/** - * @} - */ - -/* Exported functions --------------------------------------------------------*/ -/** @addtogroup I2CEx_Exported_Functions I2C Extended Exported Functions - * @{ - */ - -/** @addtogroup I2CEx_Exported_Functions_Group1 Filter Mode Functions - * @{ - */ -/* Peripheral Control functions ************************************************/ -HAL_StatusTypeDef HAL_I2CEx_ConfigAnalogFilter(I2C_HandleTypeDef *hi2c, uint32_t AnalogFilter); -HAL_StatusTypeDef HAL_I2CEx_ConfigDigitalFilter(I2C_HandleTypeDef *hi2c, uint32_t DigitalFilter); -/** - * @} - */ - -/** @addtogroup I2CEx_Exported_Functions_Group2 WakeUp Mode Functions - * @{ - */ -HAL_StatusTypeDef HAL_I2CEx_EnableWakeUp(I2C_HandleTypeDef *hi2c); -HAL_StatusTypeDef HAL_I2CEx_DisableWakeUp(I2C_HandleTypeDef *hi2c); -/** - * @} - */ - -/** @addtogroup I2CEx_Exported_Functions_Group3 Fast Mode Plus Functions - * @{ - */ -void HAL_I2CEx_EnableFastModePlus(uint32_t ConfigFastModePlus); -void HAL_I2CEx_DisableFastModePlus(uint32_t ConfigFastModePlus); -/** - * @} - */ - -/** - * @} - */ - -/* Private constants ---------------------------------------------------------*/ -/** @defgroup I2CEx_Private_Constants I2C Extended Private Constants - * @{ - */ - -/** - * @} - */ - -/* Private macros ------------------------------------------------------------*/ -/** @defgroup I2CEx_Private_Macro I2C Extended Private Macros - * @{ - */ -#define IS_I2C_ANALOG_FILTER(FILTER) (((FILTER) == I2C_ANALOGFILTER_ENABLE) || \ - ((FILTER) == I2C_ANALOGFILTER_DISABLE)) - -#define IS_I2C_DIGITAL_FILTER(FILTER) ((FILTER) <= 0x0000000FU) - -#define IS_I2C_FASTMODEPLUS(__CONFIG__) ((((__CONFIG__) & I2C_FASTMODEPLUS_PB6) == I2C_FASTMODEPLUS_PB6) || \ - (((__CONFIG__) & I2C_FASTMODEPLUS_PB7) == I2C_FASTMODEPLUS_PB7) || \ - (((__CONFIG__) & I2C_FASTMODEPLUS_PB8) == I2C_FASTMODEPLUS_PB8) || \ - (((__CONFIG__) & I2C_FASTMODEPLUS_PB9) == I2C_FASTMODEPLUS_PB9) || \ - (((__CONFIG__) & I2C_FASTMODEPLUS_I2C1) == I2C_FASTMODEPLUS_I2C1) || \ - (((__CONFIG__) & I2C_FASTMODEPLUS_I2C2) == I2C_FASTMODEPLUS_I2C2) || \ - (((__CONFIG__) & I2C_FASTMODEPLUS_I2C3) == I2C_FASTMODEPLUS_I2C3) || \ - (((__CONFIG__) & I2C_FASTMODEPLUS_I2C4) == I2C_FASTMODEPLUS_I2C4)) -/** - * @} - */ - -/* Private Functions ---------------------------------------------------------*/ -/** @defgroup I2CEx_Private_Functions I2C Extended Private Functions - * @{ - */ -/* Private functions are defined in stm32h7xx_hal_i2c_ex.c file */ -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_HAL_I2C_EX_H */ diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h deleted file mode 100644 index a39cc0d..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h +++ /dev/null @@ -1,868 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_mdma.h - * @author MCD Application Team - * @brief Header file of DMA HAL module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_HAL_MDMA_H -#define STM32H7xx_HAL_MDMA_H - -#ifdef __cplusplus - extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal_def.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @addtogroup MDMA - * @{ - */ - -/* Exported types ------------------------------------------------------------*/ - -/** @defgroup MDMA_Exported_Types MDMA Exported Types - * @brief MDMA Exported Types - * @{ - */ - -/** - * @brief MDMA Configuration Structure definition - */ -typedef struct -{ - - uint32_t Request; /*!< Specifies the MDMA request. - This parameter can be a value of @ref MDMA_Request_selection*/ - - uint32_t TransferTriggerMode; /*!< Specifies the Trigger Transfer mode : each request triggers a : - a buffer transfer, a block transfer, a repeated block transfer or a linked list transfer - This parameter can be a value of @ref MDMA_Transfer_TriggerMode */ - - uint32_t Priority; /*!< Specifies the software priority for the MDMAy channelx. - This parameter can be a value of @ref MDMA_Priority_level */ - - uint32_t Endianness; /*!< Specifies if the MDMA transactions preserve the Little endianness. - This parameter can be a value of @ref MDMA_Endianness */ - - uint32_t SourceInc; /*!< Specifies if the Source increment mode . - This parameter can be a value of @ref MDMA_Source_increment_mode */ - - uint32_t DestinationInc; /*!< Specifies if the Destination increment mode . - This parameter can be a value of @ref MDMA_Destination_increment_mode */ - - uint32_t SourceDataSize; /*!< Specifies the source data size. - This parameter can be a value of @ref MDMA_Source_data_size */ - - uint32_t DestDataSize; /*!< Specifies the destination data size. - This parameter can be a value of @ref MDMA_Destination_data_size */ - - - uint32_t DataAlignment; /*!< Specifies the source to destination Memory data packing/padding mode. - This parameter can be a value of @ref MDMA_data_Alignment */ - - uint32_t BufferTransferLength; /*!< Specifies the buffer Transfer Length (number of bytes), - this is the number of bytes to be transferred in a single transfer (1 byte to 128 bytes)*/ - - uint32_t SourceBurst; /*!< Specifies the Burst transfer configuration for the source memory transfers. - It specifies the amount of data to be transferred in a single non interruptible - transaction. - This parameter can be a value of @ref MDMA_Source_burst - @note : the burst may be FIXED/INCR based on SourceInc value , - the BURST must be programmed as to ensure that the burst size will be lower than than - BufferTransferLength */ - - uint32_t DestBurst; /*!< Specifies the Burst transfer configuration for the destination memory transfers. - It specifies the amount of data to be transferred in a single non interruptible - transaction. - This parameter can be a value of @ref MDMA_Destination_burst - @note : the burst may be FIXED/INCR based on DestinationInc value , - the BURST must be programmed as to ensure that the burst size will be lower than than - BufferTransferLength */ - - int32_t SourceBlockAddressOffset; /*!< this field specifies the Next block source address offset - signed value : if > 0 then increment the next block source Address by offset from where the last block ends - if < 0 then decrement the next block source Address by offset from where the last block ends - if == 0, the next block source address starts from where the last block ends - */ - - - int32_t DestBlockAddressOffset; /*!< this field specifies the Next block destination address offset - signed value : if > 0 then increment the next block destination Address by offset from where the last block ends - if < 0 then decrement the next block destination Address by offset from where the last block ends - if == 0, the next block destination address starts from where the last block ends - */ - -}MDMA_InitTypeDef; - -/** - * @brief HAL MDMA linked list node structure definition - * @note The Linked list node allows to define a new MDMA configuration - * (CTCR ,CBNDTR ,CSAR ,CDAR ,CBRUR, CLAR, CTBR, CMAR and CMDR registers). - * When CLAR register is configured to a non NULL value , each time a transfer ends, - * a new configuration (linked list node) is automatically loaded from the address given in CLAR register. - */ -typedef struct -{ - __IO uint32_t CTCR; /*!< New CTCR register configuration for the given MDMA linked list node */ - __IO uint32_t CBNDTR; /*!< New CBNDTR register configuration for the given MDMA linked list node */ - __IO uint32_t CSAR; /*!< New CSAR register configuration for the given MDMA linked list node */ - __IO uint32_t CDAR; /*!< New CDAR register configuration for the given MDMA linked list node */ - __IO uint32_t CBRUR; /*!< New CBRUR register configuration for the given MDMA linked list node */ - __IO uint32_t CLAR; /*!< New CLAR register configuration for the given MDMA linked list node */ - __IO uint32_t CTBR; /*!< New CTBR register configuration for the given MDMA linked list node */ - __IO uint32_t Reserved; /*!< Reserved register */ - __IO uint32_t CMAR; /*!< New CMAR register configuration for the given MDMA linked list node */ - __IO uint32_t CMDR; /*!< New CMDR register configuration for the given MDMA linked list node */ - -}MDMA_LinkNodeTypeDef; - -/** - * @brief HAL MDMA linked list node configuration structure definition - * @note used with HAL_MDMA_LinkedList_CreateNode function - */ -typedef struct -{ - MDMA_InitTypeDef Init; /*!< configuration of the specified MDMA Linked List Node */ - uint32_t SrcAddress; /*!< The source memory address for the Linked list Node */ - uint32_t DstAddress; /*!< The destination memory address for the Linked list Node */ - uint32_t BlockDataLength; /*!< The data length of a block in bytes */ - uint32_t BlockCount; /*!< The number of blocks to be transferred */ - - uint32_t PostRequestMaskAddress; /*!< specifies the address to be updated (written) with PostRequestMaskData after a request is served. - PostRequestMaskAddress and PostRequestMaskData could be used to automatically clear a peripheral flag when the request is served */ - - uint32_t PostRequestMaskData; /*!< specifies the value to be written to PostRequestMaskAddress after a request is served. - PostRequestMaskAddress and PostRequestMaskData could be used to automatically clear a peripheral flag when the request is served */ - - -}MDMA_LinkNodeConfTypeDef; - - -/** - * @brief HAL MDMA State structure definition - */ -typedef enum -{ - HAL_MDMA_STATE_RESET = 0x00U, /*!< MDMA not yet initialized or disabled */ - HAL_MDMA_STATE_READY = 0x01U, /*!< MDMA initialized and ready for use */ - HAL_MDMA_STATE_BUSY = 0x02U, /*!< MDMA process is ongoing */ - HAL_MDMA_STATE_ERROR = 0x03U, /*!< MDMA error state */ - HAL_MDMA_STATE_ABORT = 0x04U, /*!< MDMA Abort state */ - -}HAL_MDMA_StateTypeDef; - -/** - * @brief HAL MDMA Level Complete structure definition - */ -typedef enum -{ - HAL_MDMA_FULL_TRANSFER = 0x00U, /*!< Full transfer */ - HAL_MDMA_BUFFER_TRANSFER = 0x01U, /*!< Buffer Transfer */ - HAL_MDMA_BLOCK_TRANSFER = 0x02U, /*!< Block Transfer */ - HAL_MDMA_REPEAT_BLOCK_TRANSFER = 0x03U /*!< repeat block Transfer */ - -}HAL_MDMA_LevelCompleteTypeDef; - -/** - * @brief HAL MDMA Callbacks IDs structure definition - */ -typedef enum -{ - HAL_MDMA_XFER_CPLT_CB_ID = 0x00U, /*!< Full transfer */ - HAL_MDMA_XFER_BUFFERCPLT_CB_ID = 0x01U, /*!< Buffer Transfer */ - HAL_MDMA_XFER_BLOCKCPLT_CB_ID = 0x02U, /*!< Block Transfer */ - HAL_MDMA_XFER_REPBLOCKCPLT_CB_ID = 0x03U, /*!< Repeated Block Transfer */ - HAL_MDMA_XFER_ERROR_CB_ID = 0x04U, /*!< Error */ - HAL_MDMA_XFER_ABORT_CB_ID = 0x05U, /*!< Abort */ - HAL_MDMA_XFER_ALL_CB_ID = 0x06U /*!< All */ - -}HAL_MDMA_CallbackIDTypeDef; - - -/** - * @brief MDMA handle Structure definition - */ -typedef struct __MDMA_HandleTypeDef -{ - MDMA_Channel_TypeDef *Instance; /*!< Register base address */ - - MDMA_InitTypeDef Init; /*!< MDMA communication parameters */ - - HAL_LockTypeDef Lock; /*!< MDMA locking object */ - - __IO HAL_MDMA_StateTypeDef State; /*!< MDMA transfer state */ - - void *Parent; /*!< Parent object state */ - - void (* XferCpltCallback)( struct __MDMA_HandleTypeDef * hmdma); /*!< MDMA transfer complete callback */ - - void (* XferBufferCpltCallback)( struct __MDMA_HandleTypeDef * hmdma); /*!< MDMA buffer transfer complete callback */ - - void (* XferBlockCpltCallback)( struct __MDMA_HandleTypeDef * hmdma); /*!< MDMA block transfer complete callback */ - - void (* XferRepeatBlockCpltCallback)( struct __MDMA_HandleTypeDef * hmdma); /*!< MDMA block transfer repeat callback */ - - void (* XferErrorCallback)( struct __MDMA_HandleTypeDef * hmdma); /*!< MDMA transfer error callback */ - - void (* XferAbortCallback)( struct __MDMA_HandleTypeDef * hmdma); /*!< MDMA transfer Abort callback */ - - - MDMA_LinkNodeTypeDef *FirstLinkedListNodeAddress; /*!< specifies the first node address of the transfer list - (after the initial node defined by the Init struct) - this parameter is used internally by the MDMA driver - to construct the linked list node - */ - - MDMA_LinkNodeTypeDef *LastLinkedListNodeAddress; /*!< specifies the last node address of the transfer list - this parameter is used internally by the MDMA driver - to construct the linked list node - */ - uint32_t LinkedListNodeCounter; /*!< Number of nodes in the MDMA linked list */ - - __IO uint32_t ErrorCode; /*!< MDMA Error code */ - -} MDMA_HandleTypeDef; - -/** - * @} - */ - -/* Exported constants --------------------------------------------------------*/ - -/** @defgroup MDMA_Exported_Constants MDMA Exported Constants - * @brief MDMA Exported constants - * @{ - */ - -/** @defgroup MDMA_Error_Codes MDMA Error Codes - * @brief MDMA Error Codes - * @{ - */ -#define HAL_MDMA_ERROR_NONE ((uint32_t)0x00000000U) /*!< No error */ -#define HAL_MDMA_ERROR_READ_XFER ((uint32_t)0x00000001U) /*!< Read Transfer error */ -#define HAL_MDMA_ERROR_WRITE_XFER ((uint32_t)0x00000002U) /*!< Write Transfer error */ -#define HAL_MDMA_ERROR_MASK_DATA ((uint32_t)0x00000004U) /*!< Error Mask Data error */ -#define HAL_MDMA_ERROR_LINKED_LIST ((uint32_t)0x00000008U) /*!< Linked list Data error */ -#define HAL_MDMA_ERROR_ALIGNMENT ((uint32_t)0x00000010U) /*!< Address/Size alignment error */ -#define HAL_MDMA_ERROR_BLOCK_SIZE ((uint32_t)0x00000020U) /*!< Block Size error */ -#define HAL_MDMA_ERROR_TIMEOUT ((uint32_t)0x00000040U) /*!< Timeout error */ -#define HAL_MDMA_ERROR_NO_XFER ((uint32_t)0x00000080U) /*!< Abort or SW trigger requested with no Xfer ongoing */ -#define HAL_MDMA_ERROR_BUSY ((uint32_t)0x00000100U) /*!< DeInit or SW trigger requested with Xfer ongoing */ - -/** - * @} - */ - -/** @defgroup MDMA_Request_selection MDMA Request selection - * @brief MDMA_Request_selection - * @{ - */ - -#define MDMA_REQUEST_DMA1_Stream0_TC ((uint32_t)0x00000000U) /*!< MDMA HW request is DMA1 Stream 0 Transfer Complete Flag */ -#define MDMA_REQUEST_DMA1_Stream1_TC ((uint32_t)0x00000001U) /*!< MDMA HW request is DMA1 Stream 1 Transfer Complete Flag */ -#define MDMA_REQUEST_DMA1_Stream2_TC ((uint32_t)0x00000002U) /*!< MDMA HW request is DMA1 Stream 2 Transfer Complete Flag */ -#define MDMA_REQUEST_DMA1_Stream3_TC ((uint32_t)0x00000003U) /*!< MDMA HW request is DMA1 Stream 3 Transfer Complete Flag */ -#define MDMA_REQUEST_DMA1_Stream4_TC ((uint32_t)0x00000004U) /*!< MDMA HW request is DMA1 Stream 4 Transfer Complete Flag */ -#define MDMA_REQUEST_DMA1_Stream5_TC ((uint32_t)0x00000005U) /*!< MDMA HW request is DMA1 Stream 5 Transfer Complete Flag */ -#define MDMA_REQUEST_DMA1_Stream6_TC ((uint32_t)0x00000006U) /*!< MDMA HW request is DMA1 Stream 6 Transfer Complete Flag */ -#define MDMA_REQUEST_DMA1_Stream7_TC ((uint32_t)0x00000007U) /*!< MDMA HW request is DMA1 Stream 7 Transfer Complete Flag */ -#define MDMA_REQUEST_DMA2_Stream0_TC ((uint32_t)0x00000008U) /*!< MDMA HW request is DMA2 Stream 0 Transfer Complete Flag */ -#define MDMA_REQUEST_DMA2_Stream1_TC ((uint32_t)0x00000009U) /*!< MDMA HW request is DMA2 Stream 1 Transfer Complete Flag */ -#define MDMA_REQUEST_DMA2_Stream2_TC ((uint32_t)0x0000000AU) /*!< MDMA HW request is DMA2 Stream 2 Transfer Complete Flag */ -#define MDMA_REQUEST_DMA2_Stream3_TC ((uint32_t)0x0000000BU) /*!< MDMA HW request is DMA2 Stream 3 Transfer Complete Flag */ -#define MDMA_REQUEST_DMA2_Stream4_TC ((uint32_t)0x0000000CU) /*!< MDMA HW request is DMA2 Stream 4 Transfer Complete Flag */ -#define MDMA_REQUEST_DMA2_Stream5_TC ((uint32_t)0x0000000DU) /*!< MDMA HW request is DMA2 Stream 5 Transfer Complete Flag */ -#define MDMA_REQUEST_DMA2_Stream6_TC ((uint32_t)0x0000000EU) /*!< MDMA HW request is DMA2 Stream 6 Transfer Complete Flag */ -#define MDMA_REQUEST_DMA2_Stream7_TC ((uint32_t)0x0000000FU) /*!< MDMA HW request is DMA2 Stream 7 Transfer Complete Flag */ -#if defined (LTDC) -#define MDMA_REQUEST_LTDC_LINE_IT ((uint32_t)0x00000010U) /*!< MDMA HW request is LTDC Line interrupt Flag */ -#endif /* LTDC */ -#if defined (JPEG) -#define MDMA_REQUEST_JPEG_INFIFO_TH ((uint32_t)0x00000011U) /*!< MDMA HW request is JPEG Input FIFO threshold Flag */ -#define MDMA_REQUEST_JPEG_INFIFO_NF ((uint32_t)0x00000012U) /*!< MDMA HW request is JPEG Input FIFO not full Flag */ -#define MDMA_REQUEST_JPEG_OUTFIFO_TH ((uint32_t)0x00000013U) /*!< MDMA HW request is JPEG Output FIFO threshold Flag */ -#define MDMA_REQUEST_JPEG_OUTFIFO_NE ((uint32_t)0x00000014U) /*!< MDMA HW request is JPEG Output FIFO not empty Flag */ -#define MDMA_REQUEST_JPEG_END_CONVERSION ((uint32_t)0x00000015U) /*!< MDMA HW request is JPEG End of conversion Flag */ -#endif /* JPEG */ -#if defined (OCTOSPI1) -#define MDMA_REQUEST_OCTOSPI1_FIFO_TH ((uint32_t)0x00000016U) /*!< MDMA HW request is OCTOSPI1 FIFO threshold Flag */ -#define MDMA_REQUEST_OCTOSPI1_TC ((uint32_t)0x00000017U) /*!< MDMA HW request is OCTOSPI1 Transfer complete Flag */ -#endif /* OCTOSPI1 */ -#if defined (QUADSPI) -#define MDMA_REQUEST_QUADSPI_FIFO_TH ((uint32_t)0x00000016U) /*!< MDMA HW request is QSPI FIFO threshold Flag */ -#define MDMA_REQUEST_QUADSPI_TC ((uint32_t)0x00000017U) /*!< MDMA HW request is QSPI Transfer complete Flag */ -#endif /* QUADSPI */ -#define MDMA_REQUEST_DMA2D_CLUT_TC ((uint32_t)0x00000018U) /*!< MDMA HW request is DMA2D CLUT Transfer Complete Flag */ -#define MDMA_REQUEST_DMA2D_TC ((uint32_t)0x00000019U) /*!< MDMA HW request is DMA2D Transfer Complete Flag */ -#define MDMA_REQUEST_DMA2D_TW ((uint32_t)0x0000001AU) /*!< MDMA HW request is DMA2D Transfer Watermark Flag */ - -#if defined (DSI) -#define MDMA_REQUEST_DSI_TEARING_EFFECT ((uint32_t)0x0000001BU) /*!< MDMA HW request is DSI Tearing Effect Flag */ -#define MDMA_REQUEST_DSI_END_REFRESH ((uint32_t)0x0000001CU) /*!< MDMA HW request is DSI End of refresh Flag */ -#endif /* DSI */ - -#define MDMA_REQUEST_SDMMC1_END_DATA ((uint32_t)0x0000001DU) /*!< MDMA HW request is SDMMC1 End of Data Flag */ - -#define MDMA_REQUEST_SDMMC1_DMA_ENDBUFFER ((uint32_t)0x0000001EU) /*!< MDMA HW request is SDMMC1 Internal DMA buffer End Flag */ -#define MDMA_REQUEST_SDMMC1_COMMAND_END ((uint32_t)0x0000001FU) /*!< MDMA HW request is SDMMC1 Command End Flag */ - -#if defined (OCTOSPI2) -#define MDMA_REQUEST_OCTOSPI2_FIFO_TH ((uint32_t)0x00000020U) /*!< MDMA HW request is OCTOSPI2 FIFO threshold Flag */ -#define MDMA_REQUEST_OCTOSPI2_TC ((uint32_t)0x00000021U) /*!< MDMA HW request is OCTOSPI2 Transfer complete Flag */ -#endif /* OCTOSPI2 */ - -#define MDMA_REQUEST_SW ((uint32_t)0x40000000U) /*!< MDMA SW request */ - -/** - * @} - */ - -/** @defgroup MDMA_Transfer_TriggerMode MDMA Transfer Trigger Mode - * @brief MDMA Transfer Trigger Mode - * @{ - */ -#define MDMA_BUFFER_TRANSFER ((uint32_t)0x00000000U) /*!< Each MDMA request (SW or HW) triggers a buffer transfer */ -#define MDMA_BLOCK_TRANSFER ((uint32_t)MDMA_CTCR_TRGM_0) /*!< Each MDMA request (SW or HW) triggers a block transfer */ -#define MDMA_REPEAT_BLOCK_TRANSFER ((uint32_t)MDMA_CTCR_TRGM_1) /*!< Each MDMA request (SW or HW) triggers a repeated block transfer */ -#define MDMA_FULL_TRANSFER ((uint32_t)MDMA_CTCR_TRGM) /*!< Each MDMA request (SW or HW) triggers a Full transfer or a linked list transfer if any */ - -/** - * @} - */ - -/** @defgroup MDMA_Priority_level MDMA Priority level - * @brief MDMA Priority level - * @{ - */ -#define MDMA_PRIORITY_LOW ((uint32_t)0x00000000U) /*!< Priority level: Low */ -#define MDMA_PRIORITY_MEDIUM ((uint32_t)MDMA_CCR_PL_0) /*!< Priority level: Medium */ -#define MDMA_PRIORITY_HIGH ((uint32_t)MDMA_CCR_PL_1) /*!< Priority level: High */ -#define MDMA_PRIORITY_VERY_HIGH ((uint32_t)MDMA_CCR_PL) /*!< Priority level: Very High */ - -/** - * @} - */ - - -/** @defgroup MDMA_Endianness MDMA Endianness - * @brief MDMA Endianness - * @{ - */ -#define MDMA_LITTLE_ENDIANNESS_PRESERVE ((uint32_t)0x00000000U) /*!< little endianness preserve */ -#define MDMA_LITTLE_BYTE_ENDIANNESS_EXCHANGE ((uint32_t)MDMA_CCR_BEX) /*!< BYTEs endianness exchange when destination data size is > Byte */ -#define MDMA_LITTLE_HALFWORD_ENDIANNESS_EXCHANGE ((uint32_t)MDMA_CCR_HEX) /*!< HALF WORDs endianness exchange when destination data size is > HALF WORD */ -#define MDMA_LITTLE_WORD_ENDIANNESS_EXCHANGE ((uint32_t)MDMA_CCR_WEX) /*!< WORDs endianness exchange when destination data size is > DOUBLE WORD */ - -/** - * @} - */ - -/** @defgroup MDMA_Source_increment_mode MDMA Source increment mode - * @brief MDMA Source increment mode - * @{ - */ -#define MDMA_SRC_INC_DISABLE ((uint32_t)0x00000000U) /*!< Source address pointer is fixed */ -#define MDMA_SRC_INC_BYTE ((uint32_t)MDMA_CTCR_SINC_1) /*!< Source address pointer is incremented by a BYTE (8 bits) */ -#define MDMA_SRC_INC_HALFWORD ((uint32_t)MDMA_CTCR_SINC_1 | (uint32_t)MDMA_CTCR_SINCOS_0) /*!< Source address pointer is incremented by a half Word (16 bits) */ -#define MDMA_SRC_INC_WORD ((uint32_t)MDMA_CTCR_SINC_1 | (uint32_t)MDMA_CTCR_SINCOS_1) /*!< Source address pointer is incremented by a Word (32 bits) */ -#define MDMA_SRC_INC_DOUBLEWORD ((uint32_t)MDMA_CTCR_SINC_1 | (uint32_t)MDMA_CTCR_SINCOS) /*!< Source address pointer is incremented by a double Word (64 bits)) */ -#define MDMA_SRC_DEC_BYTE ((uint32_t)MDMA_CTCR_SINC) /*!< Source address pointer is decremented by a BYTE (8 bits) */ -#define MDMA_SRC_DEC_HALFWORD ((uint32_t)MDMA_CTCR_SINC | (uint32_t)MDMA_CTCR_SINCOS_0) /*!< Source address pointer is decremented by a half Word (16 bits) */ -#define MDMA_SRC_DEC_WORD ((uint32_t)MDMA_CTCR_SINC | (uint32_t)MDMA_CTCR_SINCOS_1) /*!< Source address pointer is decremented by a Word (32 bits) */ -#define MDMA_SRC_DEC_DOUBLEWORD ((uint32_t)MDMA_CTCR_SINC | (uint32_t)MDMA_CTCR_SINCOS) /*!< Source address pointer is decremented by a double Word (64 bits)) */ - -/** - * @} - */ - -/** @defgroup MDMA_Destination_increment_mode MDMA Destination increment mode - * @brief MDMA Destination increment mode - * @{ - */ -#define MDMA_DEST_INC_DISABLE ((uint32_t)0x00000000U) /*!< Source address pointer is fixed */ -#define MDMA_DEST_INC_BYTE ((uint32_t)MDMA_CTCR_DINC_1) /*!< Source address pointer is incremented by a BYTE (8 bits) */ -#define MDMA_DEST_INC_HALFWORD ((uint32_t)MDMA_CTCR_DINC_1 | (uint32_t)MDMA_CTCR_DINCOS_0) /*!< Source address pointer is incremented by a half Word (16 bits) */ -#define MDMA_DEST_INC_WORD ((uint32_t)MDMA_CTCR_DINC_1 | (uint32_t)MDMA_CTCR_DINCOS_1) /*!< Source address pointer is incremented by a Word (32 bits) */ -#define MDMA_DEST_INC_DOUBLEWORD ((uint32_t)MDMA_CTCR_DINC_1 | (uint32_t)MDMA_CTCR_DINCOS) /*!< Source address pointer is incremented by a double Word (64 bits)) */ -#define MDMA_DEST_DEC_BYTE ((uint32_t)MDMA_CTCR_DINC) /*!< Source address pointer is decremented by a BYTE (8 bits) */ -#define MDMA_DEST_DEC_HALFWORD ((uint32_t)MDMA_CTCR_DINC | (uint32_t)MDMA_CTCR_DINCOS_0) /*!< Source address pointer is decremented by a half Word (16 bits) */ -#define MDMA_DEST_DEC_WORD ((uint32_t)MDMA_CTCR_DINC | (uint32_t)MDMA_CTCR_DINCOS_1) /*!< Source address pointer is decremented by a Word (32 bits) */ -#define MDMA_DEST_DEC_DOUBLEWORD ((uint32_t)MDMA_CTCR_DINC | (uint32_t)MDMA_CTCR_DINCOS) /*!< Source address pointer is decremented by a double Word (64 bits)) */ - -/** - * @} - */ - -/** @defgroup MDMA_Source_data_size MDMA Source data size - * @brief MDMA Source data size - * @{ - */ -#define MDMA_SRC_DATASIZE_BYTE ((uint32_t)0x00000000U) /*!< Source data size is Byte */ -#define MDMA_SRC_DATASIZE_HALFWORD ((uint32_t)MDMA_CTCR_SSIZE_0) /*!< Source data size is half word */ -#define MDMA_SRC_DATASIZE_WORD ((uint32_t)MDMA_CTCR_SSIZE_1) /*!< Source data size is word */ -#define MDMA_SRC_DATASIZE_DOUBLEWORD ((uint32_t)MDMA_CTCR_SSIZE) /*!< Source data size is double word */ - -/** - * @} - */ - -/** @defgroup MDMA_Destination_data_size MDMA Destination data size - * @brief MDMA Destination data size - * @{ - */ -#define MDMA_DEST_DATASIZE_BYTE ((uint32_t)0x00000000U) /*!< Destination data size is Byte */ -#define MDMA_DEST_DATASIZE_HALFWORD ((uint32_t)MDMA_CTCR_DSIZE_0) /*!< Destination data size is half word */ -#define MDMA_DEST_DATASIZE_WORD ((uint32_t)MDMA_CTCR_DSIZE_1) /*!< Destination data size is word */ -#define MDMA_DEST_DATASIZE_DOUBLEWORD ((uint32_t)MDMA_CTCR_DSIZE) /*!< Destination data size is double word */ - -/** - * @} - */ - -/** @defgroup MDMA_data_Alignment MDMA data alignment - * @brief MDMA data alignment - * @{ - */ -#define MDMA_DATAALIGN_PACKENABLE ((uint32_t)MDMA_CTCR_PKE) /*!< The source data is packed/un-packed into the destination data size - All data are right aligned, in Little Endien mode. */ -#define MDMA_DATAALIGN_RIGHT ((uint32_t)0x00000000U) /*!< Right Aligned, padded w/ 0s (default) */ -#define MDMA_DATAALIGN_RIGHT_SIGNED ((uint32_t)MDMA_CTCR_PAM_0) /*!< Right Aligned, Sign extended , - Note : this mode is allowed only if the Source data size is smaller than Destination data size */ -#define MDMA_DATAALIGN_LEFT ((uint32_t)MDMA_CTCR_PAM_1) /*!< Left Aligned (padded with 0s) */ - -/** - * @} - */ - -/** @defgroup MDMA_Source_burst MDMA Source burst - * @brief MDMA Source burst - * @{ - */ -#define MDMA_SOURCE_BURST_SINGLE ((uint32_t)0x00000000U) /*!< single transfer */ -#define MDMA_SOURCE_BURST_2BEATS ((uint32_t)MDMA_CTCR_SBURST_0) /*!< Burst 2 beats */ -#define MDMA_SOURCE_BURST_4BEATS ((uint32_t)MDMA_CTCR_SBURST_1) /*!< Burst 4 beats */ -#define MDMA_SOURCE_BURST_8BEATS ((uint32_t)MDMA_CTCR_SBURST_0 | (uint32_t)MDMA_CTCR_SBURST_1) /*!< Burst 8 beats */ -#define MDMA_SOURCE_BURST_16BEATS ((uint32_t)MDMA_CTCR_SBURST_2) /*!< Burst 16 beats */ -#define MDMA_SOURCE_BURST_32BEATS ((uint32_t)MDMA_CTCR_SBURST_0 | (uint32_t)MDMA_CTCR_SBURST_2) /*!< Burst 32 beats */ -#define MDMA_SOURCE_BURST_64BEATS ((uint32_t)MDMA_CTCR_SBURST_1 | (uint32_t)MDMA_CTCR_SBURST_2) /*!< Burst 64 beats */ -#define MDMA_SOURCE_BURST_128BEATS ((uint32_t)MDMA_CTCR_SBURST) /*!< Burst 128 beats */ - -/** - * @} - */ - -/** @defgroup MDMA_Destination_burst MDMA Destination burst - * @brief MDMA Destination burst - * @{ - */ -#define MDMA_DEST_BURST_SINGLE ((uint32_t)0x00000000U) /*!< single transfer */ -#define MDMA_DEST_BURST_2BEATS ((uint32_t)MDMA_CTCR_DBURST_0) /*!< Burst 2 beats */ -#define MDMA_DEST_BURST_4BEATS ((uint32_t)MDMA_CTCR_DBURST_1) /*!< Burst 4 beats */ -#define MDMA_DEST_BURST_8BEATS ((uint32_t)MDMA_CTCR_DBURST_0 | (uint32_t)MDMA_CTCR_DBURST_1) /*!< Burst 8 beats */ -#define MDMA_DEST_BURST_16BEATS ((uint32_t)MDMA_CTCR_DBURST_2) /*!< Burst 16 beats */ -#define MDMA_DEST_BURST_32BEATS ((uint32_t)MDMA_CTCR_DBURST_0 | (uint32_t)MDMA_CTCR_DBURST_2) /*!< Burst 32 beats */ -#define MDMA_DEST_BURST_64BEATS ((uint32_t)MDMA_CTCR_DBURST_1 | (uint32_t)MDMA_CTCR_DBURST_2) /*!< Burst 64 beats */ -#define MDMA_DEST_BURST_128BEATS ((uint32_t)MDMA_CTCR_DBURST) /*!< Burst 128 beats */ - -/** - * @} - */ - -/** @defgroup MDMA_interrupt_enable_definitions MDMA interrupt enable definitions - * @brief MDMA interrupt enable definitions - * @{ - */ -#define MDMA_IT_TE ((uint32_t)MDMA_CCR_TEIE) /*!< Transfer Error interrupt */ -#define MDMA_IT_CTC ((uint32_t)MDMA_CCR_CTCIE) /*!< Channel Transfer Complete interrupt */ -#define MDMA_IT_BRT ((uint32_t)MDMA_CCR_BRTIE) /*!< Block Repeat Transfer interrupt */ -#define MDMA_IT_BT ((uint32_t)MDMA_CCR_BTIE) /*!< Block Transfer interrupt */ -#define MDMA_IT_BFTC ((uint32_t)MDMA_CCR_TCIE) /*!< Buffer Transfer Complete interrupt */ - -/** - * @} - */ - -/** @defgroup MDMA_flag_definitions MDMA flag definitions - * @brief MDMA flag definitions - * @{ - */ -#define MDMA_FLAG_TE ((uint32_t)MDMA_CISR_TEIF) /*!< Transfer Error flag */ -#define MDMA_FLAG_CTC ((uint32_t)MDMA_CISR_CTCIF) /*!< Channel Transfer Complete flag */ -#define MDMA_FLAG_BRT ((uint32_t)MDMA_CISR_BRTIF) /*!< Block Repeat Transfer complete flag */ -#define MDMA_FLAG_BT ((uint32_t)MDMA_CISR_BTIF) /*!< Block Transfer complete flag */ -#define MDMA_FLAG_BFTC ((uint32_t)MDMA_CISR_TCIF) /*!< BuFfer Transfer complete flag */ -#define MDMA_FLAG_CRQA ((uint32_t)MDMA_CISR_CRQA) /*!< Channel request Active flag */ - -/** - * @} - */ - -/** - * @} - */ - -/* Exported macro ------------------------------------------------------------*/ - -/** @defgroup MDMA_Exported_Macros MDMA Exported Macros - * @{ - */ - -/** - * @brief Enable the specified MDMA Channel. - * @param __HANDLE__: MDMA handle - * @retval None - */ -#define __HAL_MDMA_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CCR |= MDMA_CCR_EN) - -/** - * @brief Disable the specified MDMA Channel. - * @param __HANDLE__: MDMA handle - * @retval None - */ -#define __HAL_MDMA_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CCR &= ~MDMA_CCR_EN) - -/** - * @brief Get the MDMA Channel pending flags. - * @param __HANDLE__: MDMA handle - * @param __FLAG__: Get the specified flag. - * This parameter can be any combination of the following values: - * @arg MDMA_FLAG_TE : Transfer Error flag. - * @arg MDMA_FLAG_CTC : Channel Transfer Complete flag. - * @arg MDMA_FLAG_BRT : Block Repeat Transfer flag. - * @arg MDMA_FLAG_BT : Block Transfer complete flag. - * @arg MDMA_FLAG_BFTC : BuFfer Transfer Complete flag. - * @arg MDMA_FLAG_CRQA : Channel request Active flag. - * @retval The state of FLAG (SET or RESET). - */ -#define __HAL_MDMA_GET_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->CISR & (__FLAG__)) - -/** - * @brief Clear the MDMA Stream pending flags. - * @param __HANDLE__: MDMA handle - * @param __FLAG__: specifies the flag to clear. - * This parameter can be any combination of the following values: - * @arg MDMA_FLAG_TE : Transfer Error flag. - * @arg MDMA_FLAG_CTC : Channel Transfer Complete flag. - * @arg MDMA_FLAG_BRT : Block Repeat Transfer flag. - * @arg MDMA_FLAG_BT : Block Transfer complete flag. - * @arg MDMA_FLAG_BFTC : BuFfer Transfer Complete flag. - * @retval None - */ -#define __HAL_MDMA_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->CIFCR = (__FLAG__)) - -/** - * @brief Enables the specified MDMA Channel interrupts. - * @param __HANDLE__: MDMA handle - * @param __INTERRUPT__: specifies the DMA interrupt sources to be enabled or disabled. - * This parameter can be any combination of the following values: - * @arg MDMA_IT_TE : Transfer Error interrupt mask - * @arg MDMA_IT_CTC : Channel Transfer Complete interrupt mask - * @arg MDMA_IT_BRT : Block Repeat Transfer interrupt mask - * @arg MDMA_IT_BT : Block Transfer interrupt mask - * @arg MDMA_IT_BFTC : BuFfer Transfer Complete interrupt mask - * @retval None - */ -#define __HAL_MDMA_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CCR |= (__INTERRUPT__)) - -/** - * @brief Disables the specified MDMA Channel interrupts. - * @param __HANDLE__: MDMA handle - * @param __INTERRUPT__: specifies the MDMA interrupt sources to be enabled or disabled. - * This parameter can be any combination of the following values: - * @arg MDMA_IT_TE : Transfer Error interrupt mask - * @arg MDMA_IT_CTC : Channel Transfer Complete interrupt mask - * @arg MDMA_IT_BRT : Block Repeat Transfer interrupt mask - * @arg MDMA_IT_BT : Block Transfer interrupt mask - * @arg MDMA_IT_BFTC : BuFfer Transfer Complete interrupt mask - * @retval None - */ -#define __HAL_MDMA_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CCR &= ~(__INTERRUPT__)) - -/** - * @brief Checks whether the specified MDMA Channel interrupt is enabled or not. - * @param __HANDLE__: MDMA handle - * @param __INTERRUPT__: specifies the MDMA interrupt source to check. - * @arg MDMA_IT_TE : Transfer Error interrupt mask - * @arg MDMA_IT_CTC : Channel Transfer Complete interrupt mask - * @arg MDMA_IT_BRT : Block Repeat Transfer interrupt mask - * @arg MDMA_IT_BT : Block Transfer interrupt mask - * @arg MDMA_IT_BFTC : BuFfer Transfer Complete interrupt mask - * @retval The state of MDMA_IT (SET or RESET). - */ -#define __HAL_MDMA_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->CCR & (__INTERRUPT__))) - -/** - * @brief Writes the number of data in bytes to be transferred on the MDMA Channelx. - * @param __HANDLE__ : MDMA handle - * @param __COUNTER__: Number of data in bytes to be transferred. - * @retval None - */ -#define __HAL_MDMA_SET_COUNTER(__HANDLE__, __COUNTER__) ((__HANDLE__)->Instance->CBNDTR |= ((__COUNTER__) & MDMA_CBNDTR_BNDT)) - -/** - * @brief Returns the number of remaining data in bytes in the current MDMA Channelx transfer. - * @param __HANDLE__ : MDMA handle - * @retval The number of remaining data in bytes in the current MDMA Channelx transfer. - */ -#define __HAL_MDMA_GET_COUNTER(__HANDLE__) ((__HANDLE__)->Instance->CBNDTR & MDMA_CBNDTR_BNDT) - -/** - * @} - */ - -/* Exported functions --------------------------------------------------------*/ -/** @defgroup MDMA_Exported_Functions MDMA Exported Functions - * @{ - */ - -/* Initialization and de-initialization functions *****************************/ -/** @defgroup MDMA_Exported_Functions_Group1 Initialization and de-initialization functions - * @brief Initialization and de-initialization functions - * @{ - */ -HAL_StatusTypeDef HAL_MDMA_Init(MDMA_HandleTypeDef *hmdma); -HAL_StatusTypeDef HAL_MDMA_DeInit (MDMA_HandleTypeDef *hmdma); -HAL_StatusTypeDef HAL_MDMA_ConfigPostRequestMask(MDMA_HandleTypeDef *hmdma, uint32_t MaskAddress, uint32_t MaskData); - -HAL_StatusTypeDef HAL_MDMA_RegisterCallback(MDMA_HandleTypeDef *hmdma, HAL_MDMA_CallbackIDTypeDef CallbackID, void (* pCallback)(MDMA_HandleTypeDef *_hmdma)); -HAL_StatusTypeDef HAL_MDMA_UnRegisterCallback(MDMA_HandleTypeDef *hmdma, HAL_MDMA_CallbackIDTypeDef CallbackID); - -/** - * @} - */ - -/* Linked list operation functions ********************************************/ -/** @defgroup MDMA_Exported_Functions_Group2 Linked List operation functions - * @brief Linked list operation functions - * @{ - */ - -HAL_StatusTypeDef HAL_MDMA_LinkedList_CreateNode(MDMA_LinkNodeTypeDef *pNode, MDMA_LinkNodeConfTypeDef *pNodeConfig); -HAL_StatusTypeDef HAL_MDMA_LinkedList_AddNode(MDMA_HandleTypeDef *hmdma, MDMA_LinkNodeTypeDef *pNewNode, MDMA_LinkNodeTypeDef *pPrevNode); -HAL_StatusTypeDef HAL_MDMA_LinkedList_RemoveNode(MDMA_HandleTypeDef *hmdma, MDMA_LinkNodeTypeDef *pNode); -HAL_StatusTypeDef HAL_MDMA_LinkedList_EnableCircularMode(MDMA_HandleTypeDef *hmdma); -HAL_StatusTypeDef HAL_MDMA_LinkedList_DisableCircularMode(MDMA_HandleTypeDef *hmdma); - - -/** - * @} - */ - -/* IO operation functions *****************************************************/ -/** @defgroup MDMA_Exported_Functions_Group3 I/O operation functions - * @brief I/O operation functions - * @{ - */ -HAL_StatusTypeDef HAL_MDMA_Start (MDMA_HandleTypeDef *hmdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t BlockDataLength, uint32_t BlockCount); -HAL_StatusTypeDef HAL_MDMA_Start_IT(MDMA_HandleTypeDef *hmdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t BlockDataLength, uint32_t BlockCount); -HAL_StatusTypeDef HAL_MDMA_Abort(MDMA_HandleTypeDef *hmdma); -HAL_StatusTypeDef HAL_MDMA_Abort_IT(MDMA_HandleTypeDef *hmdma); -HAL_StatusTypeDef HAL_MDMA_PollForTransfer(MDMA_HandleTypeDef *hmdma, HAL_MDMA_LevelCompleteTypeDef CompleteLevel, uint32_t Timeout); -HAL_StatusTypeDef HAL_MDMA_GenerateSWRequest(MDMA_HandleTypeDef *hmdma); -void HAL_MDMA_IRQHandler(MDMA_HandleTypeDef *hmdma); - -/** - * @} - */ - -/* Peripheral State and Error functions ***************************************/ -/** @defgroup MDMA_Exported_Functions_Group4 Peripheral State functions - * @brief Peripheral State functions - * @{ - */ -HAL_MDMA_StateTypeDef HAL_MDMA_GetState(MDMA_HandleTypeDef *hmdma); -uint32_t HAL_MDMA_GetError(MDMA_HandleTypeDef *hmdma); - -/** - * @} - */ - -/** - * @} - */ - -/* Private types -------------------------------------------------------------*/ -/** @defgroup MDMA_Private_Types MDMA Private Types - * @{ - */ - -/** - * @} - */ - -/* Private defines -----------------------------------------------------------*/ -/** @defgroup MDMA_Private_Defines MDMA Private Defines - * @{ - */ - -/** - * @} - */ - -/* Private variables ---------------------------------------------------------*/ -/** @defgroup MDMA_Private_Variables MDMA Private Variables - * @{ - */ - -/** - * @} - */ - -/* Private constants ---------------------------------------------------------*/ -/** @defgroup MDMA_Private_Constants MDMA Private Constants - * @{ - */ - -/** - * @} - */ - -/* Private macros ------------------------------------------------------------*/ -/** @defgroup MDMA_Private_Macros MDMA Private Macros - * @{ - */ - -#define IS_MDMA_LEVEL_COMPLETE(__LEVEL__) (((__LEVEL__) == HAL_MDMA_FULL_TRANSFER ) || \ - ((__LEVEL__) == HAL_MDMA_BUFFER_TRANSFER )|| \ - ((__LEVEL__) == HAL_MDMA_BLOCK_TRANSFER ) || \ - ((__LEVEL__) == HAL_MDMA_REPEAT_BLOCK_TRANSFER )) - - -#define IS_MDMA_PRIORITY(__PRIORITY__) (((__PRIORITY__) == MDMA_PRIORITY_LOW ) || \ - ((__PRIORITY__) == MDMA_PRIORITY_MEDIUM) || \ - ((__PRIORITY__) == MDMA_PRIORITY_HIGH) || \ - ((__PRIORITY__) == MDMA_PRIORITY_VERY_HIGH)) - -#define IS_MDMA_ENDIANNESS_MODE(__ENDIANNESS__) (((__ENDIANNESS__) == MDMA_LITTLE_ENDIANNESS_PRESERVE ) || \ - ((__ENDIANNESS__) == MDMA_LITTLE_BYTE_ENDIANNESS_EXCHANGE) || \ - ((__ENDIANNESS__) == MDMA_LITTLE_HALFWORD_ENDIANNESS_EXCHANGE) || \ - ((__ENDIANNESS__) == MDMA_LITTLE_WORD_ENDIANNESS_EXCHANGE)) - - -#if defined (OCTOSPI2) -#define IS_MDMA_REQUEST(__REQUEST__) (((__REQUEST__) == MDMA_REQUEST_SW ) || ((__REQUEST__) <= MDMA_REQUEST_OCTOSPI2_TC)) -#else -#define IS_MDMA_REQUEST(__REQUEST__) (((__REQUEST__) == MDMA_REQUEST_SW ) || ((__REQUEST__) <= MDMA_REQUEST_SDMMC1_COMMAND_END)) -#endif /* OCTOSPI2 */ - -#define IS_MDMA_SOURCE_INC(__INC__) (((__INC__) == MDMA_SRC_INC_DISABLE ) || \ - ((__INC__) == MDMA_SRC_INC_BYTE ) || \ - ((__INC__) == MDMA_SRC_INC_HALFWORD ) || \ - ((__INC__) == MDMA_SRC_INC_WORD ) || \ - ((__INC__) == MDMA_SRC_INC_DOUBLEWORD) || \ - ((__INC__) == MDMA_SRC_DEC_BYTE) || \ - ((__INC__) == MDMA_SRC_DEC_HALFWORD) || \ - ((__INC__) == MDMA_SRC_DEC_WORD) || \ - ((__INC__) == MDMA_SRC_DEC_DOUBLEWORD)) - -#define IS_MDMA_DESTINATION_INC(__INC__) (((__INC__) == MDMA_DEST_INC_DISABLE ) || \ - ((__INC__) == MDMA_DEST_INC_BYTE ) || \ - ((__INC__) == MDMA_DEST_INC_HALFWORD ) || \ - ((__INC__) == MDMA_DEST_INC_WORD ) || \ - ((__INC__) == MDMA_DEST_INC_DOUBLEWORD) || \ - ((__INC__) == MDMA_DEST_DEC_BYTE) || \ - ((__INC__) == MDMA_DEST_DEC_HALFWORD) || \ - ((__INC__) == MDMA_DEST_DEC_WORD) || \ - ((__INC__) == MDMA_DEST_DEC_DOUBLEWORD)) - -#define IS_MDMA_SOURCE_DATASIZE(__SIZE__) (((__SIZE__) == MDMA_SRC_DATASIZE_BYTE ) || \ - ((__SIZE__) == MDMA_SRC_DATASIZE_HALFWORD ) || \ - ((__SIZE__) == MDMA_SRC_DATASIZE_WORD ) || \ - ((__SIZE__) == MDMA_SRC_DATASIZE_DOUBLEWORD)) - -#define IS_MDMA_DESTINATION_DATASIZE(__SIZE__) (((__SIZE__) == MDMA_DEST_DATASIZE_BYTE ) || \ - ((__SIZE__) == MDMA_DEST_DATASIZE_HALFWORD ) || \ - ((__SIZE__) == MDMA_DEST_DATASIZE_WORD ) || \ - ((__SIZE__) == MDMA_DEST_DATASIZE_DOUBLEWORD)) - -#define IS_MDMA_DATA_ALIGNMENT(__ALIGNMENT__) (((__ALIGNMENT__) == MDMA_DATAALIGN_PACKENABLE ) || \ - ((__ALIGNMENT__) == MDMA_DATAALIGN_RIGHT ) || \ - ((__ALIGNMENT__) == MDMA_DATAALIGN_RIGHT_SIGNED ) || \ - ((__ALIGNMENT__) == MDMA_DATAALIGN_LEFT)) - - -#define IS_MDMA_SOURCE_BURST(__BURST__) (((__BURST__) == MDMA_SOURCE_BURST_SINGLE ) || \ - ((__BURST__) == MDMA_SOURCE_BURST_2BEATS ) || \ - ((__BURST__) == MDMA_SOURCE_BURST_4BEATS ) || \ - ((__BURST__) == MDMA_SOURCE_BURST_8BEATS) || \ - ((__BURST__) == MDMA_SOURCE_BURST_16BEATS) || \ - ((__BURST__) == MDMA_SOURCE_BURST_32BEATS) || \ - ((__BURST__) == MDMA_SOURCE_BURST_64BEATS) || \ - ((__BURST__) == MDMA_SOURCE_BURST_128BEATS)) - - -#define IS_MDMA_DESTINATION_BURST(__BURST__) (((__BURST__) == MDMA_DEST_BURST_SINGLE ) || \ - ((__BURST__) == MDMA_DEST_BURST_2BEATS ) || \ - ((__BURST__) == MDMA_DEST_BURST_4BEATS ) || \ - ((__BURST__) == MDMA_DEST_BURST_8BEATS) || \ - ((__BURST__) == MDMA_DEST_BURST_16BEATS) || \ - ((__BURST__) == MDMA_DEST_BURST_32BEATS) || \ - ((__BURST__) == MDMA_DEST_BURST_64BEATS) || \ - ((__BURST__) == MDMA_DEST_BURST_128BEATS)) - - #define IS_MDMA_TRANSFER_TRIGGER_MODE(__MODE__) (((__MODE__) == MDMA_BUFFER_TRANSFER ) || \ - ((__MODE__) == MDMA_BLOCK_TRANSFER ) || \ - ((__MODE__) == MDMA_REPEAT_BLOCK_TRANSFER ) || \ - ((__MODE__) == MDMA_FULL_TRANSFER)) - -#define IS_MDMA_BUFFER_TRANSFER_LENGTH(__LENGTH__) (((__LENGTH__) >= 0x00000001U) && ((__LENGTH__) < 0x000000FFU)) - -#define IS_MDMA_BLOCK_COUNT(__COUNT__) (((__COUNT__) > 0U ) && ((__COUNT__) <= 4096U)) - -#define IS_MDMA_TRANSFER_LENGTH(SIZE) (((SIZE) > 0U) && ((SIZE) <= 65536U)) - -#define IS_MDMA_BLOCK_ADDR_OFFSET(__BLOCK_ADD_OFFSET__) (((__BLOCK_ADD_OFFSET__) > (-65536)) && ((__BLOCK_ADD_OFFSET__) < 65536)) - -/** - * @} - */ - -/* Private functions prototypes ----------------------------------------------*/ -/** @defgroup MDMA_Private_Functions_Prototypes MDMA Private Functions Prototypes - * @{ - */ - -/** - * @} - */ - -/* Private functions ---------------------------------------------------------*/ -/** @defgroup MDMA_Private_Functions MDMA Private Functions - * @{ - */ - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_HAL_MDMA_H */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h deleted file mode 100644 index 91a9054..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h +++ /dev/null @@ -1,809 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_pwr.h - * @author MCD Application Team - * @brief Header file of PWR HAL module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_HAL_PWR_H -#define STM32H7xx_HAL_PWR_H - -#ifdef __cplusplus - extern "C" { -#endif /* __cplusplus */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal_def.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @addtogroup PWR - * @{ - */ - -/* Exported types ------------------------------------------------------------*/ - -/** @defgroup PWR_Exported_Types PWR Exported Types - * @{ - */ - -/** - * @brief PWR PVD configuration structure definition - */ -typedef struct -{ - uint32_t PVDLevel; /*!< PVDLevel: Specifies the PVD detection level. This - parameter can be a value of @ref - PWR_PVD_detection_level. - */ - - uint32_t Mode; /*!< Mode: Specifies the EXTI operating mode for the PVD - event. This parameter can be a value of @ref - PWR_PVD_Mode. - */ -}PWR_PVDTypeDef; - -/** - * @} - */ - -/* Exported constants --------------------------------------------------------*/ -/** @defgroup PWR_Exported_Constants PWR Exported Constants - * @{ - */ - -/** @defgroup PWR_PVD_detection_level PWR PVD detection level - * @{ - */ -#define PWR_PVDLEVEL_0 PWR_CR1_PLS_LEV0 /*!< Programmable voltage detector - level 0 selection : 1V95 */ -#define PWR_PVDLEVEL_1 PWR_CR1_PLS_LEV1 /*!< Programmable voltage detector - level 1 selection : 2V1 */ -#define PWR_PVDLEVEL_2 PWR_CR1_PLS_LEV2 /*!< Programmable voltage detector - level 2 selection : 2V25 */ -#define PWR_PVDLEVEL_3 PWR_CR1_PLS_LEV3 /*!< Programmable voltage detector - level 3 selection : 2V4 */ -#define PWR_PVDLEVEL_4 PWR_CR1_PLS_LEV4 /*!< Programmable voltage detector - level 4 selection : 2V55 */ -#define PWR_PVDLEVEL_5 PWR_CR1_PLS_LEV5 /*!< Programmable voltage detector - level 5 selection : 2V7 */ -#define PWR_PVDLEVEL_6 PWR_CR1_PLS_LEV6 /*!< Programmable voltage detector - level 6 selection : 2V85 */ -#define PWR_PVDLEVEL_7 PWR_CR1_PLS_LEV7 /*!< External input analog voltage - (Compare internally to VREF) */ -/** - * @} - */ - -/** @defgroup PWR_PVD_Mode PWR PVD Mode - * @{ - */ -#define PWR_PVD_MODE_NORMAL (0x00000000U) /*!< Basic mode is used */ -#define PWR_PVD_MODE_IT_RISING (0x00010001U) /*!< Interrupt Mode with Rising edge trigger detection */ -#define PWR_PVD_MODE_IT_FALLING (0x00010002U) /*!< Interrupt Mode with Falling edge trigger detection */ -#define PWR_PVD_MODE_IT_RISING_FALLING (0x00010003U) /*!< Interrupt Mode with Rising/Falling edge trigger detection */ -#define PWR_PVD_MODE_EVENT_RISING (0x00020001U) /*!< Event Mode with Rising edge trigger detection */ -#define PWR_PVD_MODE_EVENT_FALLING (0x00020002U) /*!< Event Mode with Falling edge trigger detection */ -#define PWR_PVD_MODE_EVENT_RISING_FALLING (0x00020003U) /*!< Event Mode with Rising/Falling edge trigger detection */ -/** - * @} - */ - -/** @defgroup PWR_Regulator_state_in_STOP_mode PWR Regulator state in SLEEP/STOP mode - * @{ - */ -#define PWR_MAINREGULATOR_ON (0U) -#define PWR_LOWPOWERREGULATOR_ON PWR_CR1_LPDS -/** - * @} - */ - -/** @defgroup PWR_SLEEP_mode_entry PWR SLEEP mode entry - * @{ - */ -#define PWR_SLEEPENTRY_WFI (0x01U) -#define PWR_SLEEPENTRY_WFE (0x02U) -/** - * @} - */ - -/** @defgroup PWR_STOP_mode_entry PWR STOP mode entry - * @{ - */ -#define PWR_STOPENTRY_WFI (0x01U) -#define PWR_STOPENTRY_WFE (0x02U) -/** - * @} - */ - -/** @defgroup PWR_Regulator_Voltage_Scale PWR Regulator Voltage Scale - * @{ - */ -#if defined(PWR_SRDCR_VOS) -#define PWR_REGULATOR_VOLTAGE_SCALE0 (PWR_SRDCR_VOS_1 | PWR_SRDCR_VOS_0) -#define PWR_REGULATOR_VOLTAGE_SCALE1 (PWR_SRDCR_VOS_1) -#define PWR_REGULATOR_VOLTAGE_SCALE2 (PWR_SRDCR_VOS_0) -#define PWR_REGULATOR_VOLTAGE_SCALE3 (0U) -#else -#define PWR_REGULATOR_VOLTAGE_SCALE0 (0U) -#define PWR_REGULATOR_VOLTAGE_SCALE1 (PWR_D3CR_VOS_1 | PWR_D3CR_VOS_0) -#define PWR_REGULATOR_VOLTAGE_SCALE2 (PWR_D3CR_VOS_1) -#define PWR_REGULATOR_VOLTAGE_SCALE3 (PWR_D3CR_VOS_0) -#endif /* PWR_SRDCR_VOS */ -/** - * @} - */ - -/** @defgroup PWR_Flag PWR Flag - * @{ - */ -/* PWR CPU flag */ -#define PWR_FLAG_STOP (0x01U) -#if defined (PWR_CPUCR_SBF_D2) -#define PWR_FLAG_SB_D1 (0x02U) -#define PWR_FLAG_SB_D2 (0x03U) -#endif /* defined (PWR_CPUCR_SBF_D2) */ -#define PWR_FLAG_SB (0x04U) -#if defined (DUAL_CORE) -#define PWR_FLAG_CPU_HOLD (0x05U) -#define PWR_FLAG_CPU2_HOLD (0x06U) -#define PWR_FLAG2_STOP (0x07U) -#define PWR_FLAG2_SB_D1 (0x08U) -#define PWR_FLAG2_SB_D2 (0x09U) -#define PWR_FLAG2_SB (0x0AU) -#endif /* defined (DUAL_CORE) */ -#define PWR_FLAG_PVDO (0x0BU) -#define PWR_FLAG_AVDO (0x0CU) -#define PWR_FLAG_ACTVOSRDY (0x0DU) -#define PWR_FLAG_ACTVOS (0x0EU) -#define PWR_FLAG_BRR (0x0FU) -#define PWR_FLAG_VOSRDY (0x10U) -#if defined (SMPS) -#define PWR_FLAG_SMPSEXTRDY (0x11U) -#else -#define PWR_FLAG_SCUEN (0x11U) -#endif /* defined (SMPS) */ -#if defined (PWR_CSR1_MMCVDO) -#define PWR_FLAG_MMCVDO (0x12U) -#endif /* defined (PWR_CSR1_MMCVDO) */ -#define PWR_FLAG_USB33RDY (0x13U) -#define PWR_FLAG_TEMPH (0x14U) -#define PWR_FLAG_TEMPL (0x15U) -#define PWR_FLAG_VBATH (0x16U) -#define PWR_FLAG_VBATL (0x17U) - -/* PWR Wake up flag */ -#define PWR_FLAG_WKUP1 PWR_WKUPCR_WKUPC1 -#define PWR_FLAG_WKUP2 PWR_WKUPCR_WKUPC2 -#define PWR_FLAG_WKUP3 PWR_WKUPCR_WKUPC3 -#define PWR_FLAG_WKUP4 PWR_WKUPCR_WKUPC4 -#define PWR_FLAG_WKUP5 PWR_WKUPCR_WKUPC5 -#define PWR_FLAG_WKUP6 PWR_WKUPCR_WKUPC6 -/** - * @} - */ - -/** @defgroup PWR_ENABLE_WUP_Mask PWR Enable WUP Mask - * @{ - */ -#define PWR_EWUP_MASK (0x0FFF3F3FU) -/** - * @} - */ - -/** - * @} - */ -/* Exported macro ------------------------------------------------------------*/ -/** @defgroup PWR_Exported_Macro PWR Exported Macro - * @{ - */ - -/** @brief Configure the main internal regulator output voltage. - * @param __REGULATOR__ : Specifies the regulator output voltage to achieve a - * trade-off between performance and power consumption - * when the device does not operate at the maximum - * frequency (refer to the datasheet for more details). - * This parameter can be one of the following values: - * @arg PWR_REGULATOR_VOLTAGE_SCALE0 : Regulator voltage output - * Scale 0 mode. - * @arg PWR_REGULATOR_VOLTAGE_SCALE1 : Regulator voltage output - * Scale 1 mode. - * @arg PWR_REGULATOR_VOLTAGE_SCALE2 : Regulator voltage output - * Scale 2 mode. - * @arg PWR_REGULATOR_VOLTAGE_SCALE3 : Regulator voltage output - * Scale 3 mode. - * @note For STM32H74x and STM32H75x lines, configuring Voltage Scale 0 is - * only possible when Vcore is supplied from LDO (Low DropOut). The - * SYSCFG Clock must be enabled through __HAL_RCC_SYSCFG_CLK_ENABLE() - * macro before configuring Voltage Scale 0 using - * __HAL_PWR_VOLTAGESCALING_CONFIG(). - * Transition to Voltage Scale 0 is only possible when the system is - * already in Voltage Scale 1. - * Transition from Voltage Scale 0 is only possible to Voltage Scale 1 - * then once in Voltage Scale 1 it is possible to switch to another - * voltage scale. - * After each regulator voltage setting, wait on VOSRDY flag to be set - * using macro __HAL_PWR_GET_FLAG(). - * To enter low power mode , and if current regulator voltage is - * Voltage Scale 0 then first switch to Voltage Scale 1 before entering - * low power mode. - * @retval None. - */ -#if defined (PWR_SRDCR_VOS) /* STM32H7Axxx and STM32H7Bxxx lines */ -#define __HAL_PWR_VOLTAGESCALING_CONFIG(__REGULATOR__) \ -do { \ - __IO uint32_t tmpreg = 0x00; \ - /* Configure the Voltage Scaling */ \ - MODIFY_REG(PWR->SRDCR, PWR_SRDCR_VOS, (__REGULATOR__)); \ - /* Delay after setting the voltage scaling */ \ - tmpreg = READ_BIT(PWR->SRDCR, PWR_SRDCR_VOS); \ - UNUSED(tmpreg); \ -} while(0) -#else /* 3 power domains devices */ -#if defined(SYSCFG_PWRCR_ODEN) /* STM32H74xxx and STM32H75xxx lines */ -#define __HAL_PWR_VOLTAGESCALING_CONFIG(__REGULATOR__) \ -do { \ - __IO uint32_t tmpreg = 0x00; \ - /* Check the voltage scaling to be configured */ \ - if((__REGULATOR__) == PWR_REGULATOR_VOLTAGE_SCALE0) \ - { \ - /* Configure the Voltage Scaling 1 */ \ - MODIFY_REG(PWR->D3CR, PWR_D3CR_VOS, PWR_REGULATOR_VOLTAGE_SCALE1); \ - /* Delay after setting the voltage scaling */ \ - tmpreg = READ_BIT(PWR->D3CR, PWR_D3CR_VOS); \ - /* Enable the PWR overdrive */ \ - SET_BIT(SYSCFG->PWRCR, SYSCFG_PWRCR_ODEN); \ - /* Delay after setting the syscfg boost setting */ \ - tmpreg = READ_BIT(SYSCFG->PWRCR, SYSCFG_PWRCR_ODEN); \ - } \ - else \ - { \ - /* Disable the PWR overdrive */ \ - CLEAR_BIT(SYSCFG->PWRCR, SYSCFG_PWRCR_ODEN); \ - /* Delay after setting the syscfg boost setting */ \ - tmpreg = READ_BIT(SYSCFG->PWRCR, SYSCFG_PWRCR_ODEN); \ - /* Configure the Voltage Scaling x */ \ - MODIFY_REG(PWR->D3CR, PWR_D3CR_VOS, (__REGULATOR__)); \ - /* Delay after setting the voltage scaling */ \ - tmpreg = READ_BIT(PWR->D3CR, PWR_D3CR_VOS); \ - } \ - UNUSED(tmpreg); \ -} while(0) -#else /* STM32H72xxx and STM32H73xxx lines */ -#define __HAL_PWR_VOLTAGESCALING_CONFIG(__REGULATOR__) \ -do { \ - __IO uint32_t tmpreg = 0x00; \ - /* Configure the Voltage Scaling */ \ - MODIFY_REG (PWR->D3CR, PWR_D3CR_VOS, (__REGULATOR__)); \ - /* Delay after setting the voltage scaling */ \ - tmpreg = READ_BIT(PWR->D3CR, PWR_D3CR_VOS); \ - UNUSED(tmpreg); \ -} while(0) -#endif /* defined(SYSCFG_PWRCR_ODEN) */ -#endif /* defined (PWR_SRDCR_VOS) */ - -/** @brief Check PWR flags are set or not. - * @param __FLAG__ : Specifies the flag to check. - * This parameter can be one of the following values: - * @arg PWR_FLAG_PVDO : PVD Output. This flag is valid only if PVD - * is enabled by the HAL_PWR_EnablePVD() - * function. - * The PVD is stopped by STANDBY mode. For this - * reason, this bit is equal to 0 after STANDBY - * or reset until the PVDE bit is set. - * @arg PWR_FLAG_AVDO : AVD Output. This flag is valid only if AVD - * is enabled by the HAL_PWREx_EnableAVD() - * function. The AVD is stopped by STANDBY mode. - * For this reason, this bit is equal to 0 - * after STANDBY or reset until the AVDE bit - * is set. - * @arg PWR_FLAG_ACTVOSRDY : This flag indicates that the Regulator - * voltage scaling output selection is - * ready. - * @arg PWR_FLAG_BRR : Backup regulator ready flag. This bit is not - * reset when the device wakes up from STANDBY - * mode or by a system reset or power-on reset. - * @arg PWR_FLAG_VOSRDY : This flag indicates that the Regulator - * voltage scaling output selection is ready. - * mode or by a system reset or power-on reset. - * @arg PWR_FLAG_USB33RDY : This flag indicates that the USB supply - * from regulator is ready. - * @arg PWR_FLAG_TEMPH : This flag indicates that the temperature - * equal or above high threshold level. - * @arg PWR_FLAG_TEMPL : This flag indicates that the temperature - * equal or below low threshold level. - * @arg PWR_FLAG_VBATH : This flag indicates that VBAT level equal - * or above high threshold level. - * @arg PWR_FLAG_VBATL : This flag indicates that VBAT level equal - * or below low threshold level. - * @arg PWR_FLAG_STOP : This flag indicates that the system entered - * in STOP mode. - * @arg PWR_FLAG_SB : This flag indicates that the system entered in - * STANDBY mode. - * @arg PWR_FLAG_SB_D1 : This flag indicates that the D1 domain - * entered in STANDBY mode. - * @arg PWR_FLAG_SB_D2 : This flag indicates that the D2 domain - * entered in STANDBY mode. - * @arg PWR_FLAG2_STOP : This flag indicates that the system entered - * in STOP mode. - * @arg PWR_FLAG2_SB : This flag indicates that the system entered - * in STANDBY mode. - * @arg PWR_FLAG2_SB_D1 : This flag indicates that the D1 domain - * entered in STANDBY mode. - * @arg PWR_FLAG2_SB_D2 : This flag indicates that the D2 domain - * entered in STANDBY mode. - * @arg PWR_FLAG_CPU_HOLD : This flag indicates that the CPU1 wakes - * up with hold. - * @arg PWR_FLAG_CPU2_HOLD : This flag indicates that the CPU2 wakes - * up with hold. - * @arg PWR_FLAG_SMPSEXTRDY : This flag indicates that the SMPS - * External supply is sready. - * @arg PWR_FLAG_SCUEN : This flag indicates that the supply - * configuration update is enabled. - * @arg PWR_FLAG_MMCVDO : This flag indicates that the VDDMMC is - * above or equal to 1.2 V. - * @note The PWR_FLAG_PVDO, PWR_FLAG_AVDO, PWR_FLAG_ACTVOSRDY, PWR_FLAG_BRR, - * PWR_FLAG_VOSRDY, PWR_FLAG_USB33RDY, PWR_FLAG_TEMPH, PWR_FLAG_TEMPL, - * PWR_FLAG_VBATH, PWR_FLAG_VBATL, PWR_FLAG_STOP and PWR_FLAG_SB flags - * are used for all H7 family lines. - * The PWR_FLAG2_STOP, PWR_FLAG2_SB, PWR_FLAG2_SB_D1, PWR_FLAG2_SB_D2, - * PWR_FLAG_CPU_HOLD and PWR_FLAG_CPU2_HOLD flags are used only for H7 - * dual core lines. - * The PWR_FLAG_SB_D1 and PWR_FLAG_SB_D2 flags are used for all H7 - * family except STM32H7Axxx and STM32H7Bxxx lines. - * The PWR_FLAG_MMCVDO flag is used only for STM32H7Axxx and - * STM32H7Bxxx lines. - * The PWR_FLAG_SCUEN flag is used for devices that support only LDO - * regulator. - * The PWR_FLAG_SMPSEXTRDY flag is used for devices that support LDO - * and SMPS regulators. - * @retval The (__FLAG__) state (TRUE or FALSE). - */ -#if defined (DUAL_CORE) /* Dual core lines */ -#define __HAL_PWR_GET_FLAG(__FLAG__) \ -(((__FLAG__) == PWR_FLAG_PVDO) ? ((PWR->CSR1 & PWR_CSR1_PVDO) == PWR_CSR1_PVDO) :\ - ((__FLAG__) == PWR_FLAG_AVDO) ? ((PWR->CSR1 & PWR_CSR1_AVDO) == PWR_CSR1_AVDO) :\ - ((__FLAG__) == PWR_FLAG_ACTVOSRDY) ? ((PWR->CSR1 & PWR_CSR1_ACTVOSRDY) == PWR_CSR1_ACTVOSRDY) :\ - ((__FLAG__) == PWR_FLAG_VOSRDY) ? ((PWR->D3CR & PWR_D3CR_VOSRDY) == PWR_D3CR_VOSRDY) :\ - ((__FLAG__) == PWR_FLAG_SMPSEXTRDY) ? ((PWR->CR3 & PWR_CR3_SMPSEXTRDY) == PWR_CR3_SMPSEXTRDY) :\ - ((__FLAG__) == PWR_FLAG_BRR) ? ((PWR->CR2 & PWR_CR2_BRRDY) == PWR_CR2_BRRDY) :\ - ((__FLAG__) == PWR_FLAG_CPU_HOLD) ? ((PWR->CPU2CR & PWR_CPU2CR_HOLD1F) == PWR_CPU2CR_HOLD1F) :\ - ((__FLAG__) == PWR_FLAG_CPU2_HOLD) ? ((PWR->CPUCR & PWR_CPUCR_HOLD2F) == PWR_CPUCR_HOLD2F) :\ - ((__FLAG__) == PWR_FLAG_SB) ? ((PWR->CPUCR & PWR_CPUCR_SBF) == PWR_CPUCR_SBF) :\ - ((__FLAG__) == PWR_FLAG2_SB) ? ((PWR->CPU2CR & PWR_CPU2CR_SBF) == PWR_CPU2CR_SBF) :\ - ((__FLAG__) == PWR_FLAG_STOP) ? ((PWR->CPUCR & PWR_CPUCR_STOPF) == PWR_CPUCR_STOPF) :\ - ((__FLAG__) == PWR_FLAG2_STOP) ? ((PWR->CPU2CR & PWR_CPU2CR_STOPF) == PWR_CPU2CR_STOPF) :\ - ((__FLAG__) == PWR_FLAG_SB_D1) ? ((PWR->CPUCR & PWR_CPUCR_SBF_D1) == PWR_CPUCR_SBF_D1) :\ - ((__FLAG__) == PWR_FLAG2_SB_D1) ? ((PWR->CPU2CR & PWR_CPU2CR_SBF_D1) == PWR_CPU2CR_SBF_D1) :\ - ((__FLAG__) == PWR_FLAG_SB_D2) ? ((PWR->CPUCR & PWR_CPUCR_SBF_D2) == PWR_CPUCR_SBF_D2) :\ - ((__FLAG__) == PWR_FLAG2_SB_D2) ? ((PWR->CPU2CR & PWR_CPU2CR_SBF_D2) == PWR_CPU2CR_SBF_D2) :\ - ((__FLAG__) == PWR_FLAG_USB33RDY) ? ((PWR->CR3 & PWR_CR3_USB33RDY) == PWR_CR3_USB33RDY) :\ - ((__FLAG__) == PWR_FLAG_TEMPH) ? ((PWR->CR2 & PWR_CR2_TEMPH) == PWR_CR2_TEMPH) :\ - ((__FLAG__) == PWR_FLAG_TEMPL) ? ((PWR->CR2 & PWR_CR2_TEMPL) == PWR_CR2_TEMPL) :\ - ((__FLAG__) == PWR_FLAG_VBATH) ? ((PWR->CR2 & PWR_CR2_VBATH) == PWR_CR2_VBATH) :\ - ((PWR->CR2 & PWR_CR2_VBATL) == PWR_CR2_VBATL)) -#else /* Single core lines */ -#if defined (PWR_CPUCR_SBF_D2) /* STM32H72x, STM32H73x, STM32H74x and STM32H75x lines */ -#if defined (SMPS) /* STM32H725 and STM32H735 lines */ -#define __HAL_PWR_GET_FLAG(__FLAG__) \ -(((__FLAG__) == PWR_FLAG_PVDO) ? ((PWR->CSR1 & PWR_CSR1_PVDO) == PWR_CSR1_PVDO) :\ - ((__FLAG__) == PWR_FLAG_AVDO) ? ((PWR->CSR1 & PWR_CSR1_AVDO) == PWR_CSR1_AVDO) :\ - ((__FLAG__) == PWR_FLAG_ACTVOSRDY) ? ((PWR->CSR1 & PWR_CSR1_ACTVOSRDY) == PWR_CSR1_ACTVOSRDY) :\ - ((__FLAG__) == PWR_FLAG_VOSRDY) ? ((PWR->D3CR & PWR_D3CR_VOSRDY) == PWR_D3CR_VOSRDY) :\ - ((__FLAG__) == PWR_FLAG_SMPSEXTRDY) ? ((PWR->CR3 & PWR_FLAG_SMPSEXTRDY) == PWR_FLAG_SMPSEXTRDY) :\ - ((__FLAG__) == PWR_FLAG_BRR) ? ((PWR->CR2 & PWR_CR2_BRRDY) == PWR_CR2_BRRDY) :\ - ((__FLAG__) == PWR_FLAG_SB) ? ((PWR->CPUCR & PWR_CPUCR_SBF) == PWR_CPUCR_SBF) :\ - ((__FLAG__) == PWR_FLAG_STOP) ? ((PWR->CPUCR & PWR_CPUCR_STOPF) == PWR_CPUCR_STOPF) :\ - ((__FLAG__) == PWR_FLAG_SB_D1) ? ((PWR->CPUCR & PWR_CPUCR_SBF_D1) == PWR_CPUCR_SBF_D1) :\ - ((__FLAG__) == PWR_FLAG_SB_D2) ? ((PWR->CPUCR & PWR_CPUCR_SBF_D2) == PWR_CPUCR_SBF_D2) :\ - ((__FLAG__) == PWR_FLAG_USB33RDY) ? ((PWR->CR3 & PWR_CR3_USB33RDY) == PWR_CR3_USB33RDY) :\ - ((__FLAG__) == PWR_FLAG_TEMPH) ? ((PWR->CR2 & PWR_CR2_TEMPH) == PWR_CR2_TEMPH) :\ - ((__FLAG__) == PWR_FLAG_TEMPL) ? ((PWR->CR2 & PWR_CR2_TEMPL) == PWR_CR2_TEMPL) :\ - ((__FLAG__) == PWR_FLAG_VBATH) ? ((PWR->CR2 & PWR_CR2_VBATH) == PWR_CR2_VBATH) :\ - ((PWR->CR2 & PWR_CR2_VBATL) == PWR_CR2_VBATL)) -#else /* STM32H723, STM32H733, STM32H742, STM32H743, STM32H750 and STM32H753 lines */ -#define __HAL_PWR_GET_FLAG(__FLAG__) \ -(((__FLAG__) == PWR_FLAG_PVDO) ? ((PWR->CSR1 & PWR_CSR1_PVDO) == PWR_CSR1_PVDO) :\ - ((__FLAG__) == PWR_FLAG_AVDO) ? ((PWR->CSR1 & PWR_CSR1_AVDO) == PWR_CSR1_AVDO) :\ - ((__FLAG__) == PWR_FLAG_ACTVOSRDY) ? ((PWR->CSR1 & PWR_CSR1_ACTVOSRDY) == PWR_CSR1_ACTVOSRDY) :\ - ((__FLAG__) == PWR_FLAG_VOSRDY) ? ((PWR->D3CR & PWR_D3CR_VOSRDY) == PWR_D3CR_VOSRDY) :\ - ((__FLAG__) == PWR_FLAG_SCUEN) ? ((PWR->CR3 & PWR_CR3_SCUEN) == PWR_CR3_SCUEN) :\ - ((__FLAG__) == PWR_FLAG_BRR) ? ((PWR->CR2 & PWR_CR2_BRRDY) == PWR_CR2_BRRDY) :\ - ((__FLAG__) == PWR_FLAG_SB) ? ((PWR->CPUCR & PWR_CPUCR_SBF) == PWR_CPUCR_SBF) :\ - ((__FLAG__) == PWR_FLAG_STOP) ? ((PWR->CPUCR & PWR_CPUCR_STOPF) == PWR_CPUCR_STOPF) :\ - ((__FLAG__) == PWR_FLAG_SB_D1) ? ((PWR->CPUCR & PWR_CPUCR_SBF_D1) == PWR_CPUCR_SBF_D1) :\ - ((__FLAG__) == PWR_FLAG_SB_D2) ? ((PWR->CPUCR & PWR_CPUCR_SBF_D2) == PWR_CPUCR_SBF_D2) :\ - ((__FLAG__) == PWR_FLAG_USB33RDY) ? ((PWR->CR3 & PWR_CR3_USB33RDY) == PWR_CR3_USB33RDY) :\ - ((__FLAG__) == PWR_FLAG_TEMPH) ? ((PWR->CR2 & PWR_CR2_TEMPH) == PWR_CR2_TEMPH) :\ - ((__FLAG__) == PWR_FLAG_TEMPL) ? ((PWR->CR2 & PWR_CR2_TEMPL) == PWR_CR2_TEMPL) :\ - ((__FLAG__) == PWR_FLAG_VBATH) ? ((PWR->CR2 & PWR_CR2_VBATH) == PWR_CR2_VBATH) :\ - ((PWR->CR2 & PWR_CR2_VBATL) == PWR_CR2_VBATL)) -#endif /* defined (SMPS) */ -#else /* STM32H7Axxx and STM32H7Bxxx lines */ -#if defined (SMPS) /* STM32H7AxxQ and STM32H7BxxQ lines */ -#define __HAL_PWR_GET_FLAG(__FLAG__) \ -(((__FLAG__) == PWR_FLAG_PVDO) ? ((PWR->CSR1 & PWR_CSR1_PVDO) == PWR_CSR1_PVDO) :\ - ((__FLAG__) == PWR_FLAG_AVDO) ? ((PWR->CSR1 & PWR_CSR1_AVDO) == PWR_CSR1_AVDO) :\ - ((__FLAG__) == PWR_FLAG_ACTVOSRDY) ? ((PWR->CSR1 & PWR_CSR1_ACTVOSRDY) == PWR_CSR1_ACTVOSRDY) :\ - ((__FLAG__) == PWR_FLAG_BRR) ? ((PWR->CR2 & PWR_CR2_BRRDY) == PWR_CR2_BRRDY) :\ - ((__FLAG__) == PWR_FLAG_VOSRDY) ? ((PWR->SRDCR & PWR_SRDCR_VOSRDY) == PWR_SRDCR_VOSRDY) :\ - ((__FLAG__) == PWR_FLAG_STOP) ? ((PWR->CPUCR & PWR_CPUCR_STOPF) == PWR_CPUCR_STOPF) :\ - ((__FLAG__) == PWR_FLAG_SB) ? ((PWR->CPUCR & PWR_CPUCR_SBF) == PWR_CPUCR_SBF) :\ - ((__FLAG__) == PWR_FLAG_MMCVDO) ? ((PWR->CSR1 & PWR_CSR1_MMCVDO) == PWR_CSR1_MMCVDO) :\ - ((__FLAG__) == PWR_FLAG_SMPSEXTRDY) ? ((PWR->CR3 & PWR_CR3_SMPSEXTRDY) == PWR_CR3_SMPSEXTRDY) :\ - ((__FLAG__) == PWR_FLAG_USB33RDY) ? ((PWR->CR3 & PWR_CR3_USB33RDY) == PWR_CR3_USB33RDY) :\ - ((__FLAG__) == PWR_FLAG_TEMPH) ? ((PWR->CR2 & PWR_CR2_TEMPH) == PWR_CR2_TEMPH) :\ - ((__FLAG__) == PWR_FLAG_TEMPL) ? ((PWR->CR2 & PWR_CR2_TEMPL) == PWR_CR2_TEMPL) :\ - ((__FLAG__) == PWR_FLAG_VBATH) ? ((PWR->CR2 & PWR_CR2_VBATH) == PWR_CR2_VBATH) :\ - ((PWR->CR2 & PWR_CR2_VBATL) == PWR_CR2_VBATL)) -#else /* STM32H7Axx and STM32H7Bxx lines */ -#define __HAL_PWR_GET_FLAG(__FLAG__) \ -(((__FLAG__) == PWR_FLAG_PVDO) ? ((PWR->CSR1 & PWR_CSR1_PVDO) == PWR_CSR1_PVDO) :\ - ((__FLAG__) == PWR_FLAG_AVDO) ? ((PWR->CSR1 & PWR_CSR1_AVDO) == PWR_CSR1_AVDO) :\ - ((__FLAG__) == PWR_FLAG_ACTVOSRDY) ? ((PWR->CSR1 & PWR_CSR1_ACTVOSRDY) == PWR_CSR1_ACTVOSRDY) :\ - ((__FLAG__) == PWR_FLAG_BRR) ? ((PWR->CR2 & PWR_CR2_BRRDY) == PWR_CR2_BRRDY) :\ - ((__FLAG__) == PWR_FLAG_VOSRDY) ? ((PWR->SRDCR & PWR_SRDCR_VOSRDY) == PWR_SRDCR_VOSRDY) :\ - ((__FLAG__) == PWR_FLAG_SCUEN) ? ((PWR->CR3 & PWR_CR3_SCUEN) == PWR_CR3_SCUEN) :\ - ((__FLAG__) == PWR_FLAG_STOP) ? ((PWR->CPUCR & PWR_CPUCR_STOPF) == PWR_CPUCR_STOPF) :\ - ((__FLAG__) == PWR_FLAG_SB) ? ((PWR->CPUCR & PWR_CPUCR_SBF) == PWR_CPUCR_SBF) :\ - ((__FLAG__) == PWR_FLAG_MMCVDO) ? ((PWR->CSR1 & PWR_CSR1_MMCVDO) == PWR_CSR1_MMCVDO) :\ - ((__FLAG__) == PWR_FLAG_USB33RDY) ? ((PWR->CR3 & PWR_CR3_USB33RDY) == PWR_CR3_USB33RDY) :\ - ((__FLAG__) == PWR_FLAG_TEMPH) ? ((PWR->CR2 & PWR_CR2_TEMPH) == PWR_CR2_TEMPH) :\ - ((__FLAG__) == PWR_FLAG_TEMPL) ? ((PWR->CR2 & PWR_CR2_TEMPL) == PWR_CR2_TEMPL) :\ - ((__FLAG__) == PWR_FLAG_VBATH) ? ((PWR->CR2 & PWR_CR2_VBATH) == PWR_CR2_VBATH) :\ - ((PWR->CR2 & PWR_CR2_VBATL) == PWR_CR2_VBATL)) -#endif /* SMPS */ -#endif /* PWR_CPUCR_SBF_D2 */ -#endif /* DUAL_CORE */ - -/** @brief Check PWR wake up flags are set or not. - * @param __FLAG__: specifies the wake up flag to check. - * This parameter can be one of the following values: - * @arg PWR_FLAG_WKUP1 : This parameter clear Wake up line 1 flag. - * @arg PWR_FLAG_WKUP2 : This parameter clear Wake up line 2 flag. - * @arg PWR_FLAG_WKUP3 : This parameter clear Wake up line 3 flag. - * @arg PWR_FLAG_WKUP4 : This parameter clear Wake up line 4 flag. - * @arg PWR_FLAG_WKUP5 : This parameter clear Wake up line 5 flag. - * @arg PWR_FLAG_WKUP6 : This parameter clear Wake up line 6 flag. - * @note The PWR_FLAG_WKUP3 and PWR_FLAG_WKUP5 are available only for devices - * that support GPIOI port. - * @retval The (__FLAG__) state (TRUE or FALSE). - */ -#define __HAL_PWR_GET_WAKEUPFLAG(__FLAG__) ((PWR->WKUPFR & (__FLAG__)) ? 0 : 1) - -#if defined (DUAL_CORE) -/** @brief Clear CPU PWR flags. - * @param __FLAG__ : Specifies the flag to clear. - * @note This parameter is not used for the STM32H7 family and is kept as - * parameter just to maintain compatibility with other families. - * @note This macro clear all CPU flags STOPF, SBF, SBF_D1, and SBF_D2. - * This parameter can be one of the following values : - * @arg PWR_CPU_FLAGS : Clear HOLD2F, STOPF, SBF, SBF_D1, and SBF_D2 - * CPU flags. - * @retval None. - */ -#define __HAL_PWR_CLEAR_FLAG(__FLAG__) \ -do { \ - SET_BIT(PWR->CPUCR, PWR_CPUCR_CSSF); \ - SET_BIT(PWR->CPU2CR, PWR_CPU2CR_CSSF); \ -} while(0) -#else -/** @brief Clear CPU PWR flags. - * @param __FLAG__ : Specifies the flag to clear. - * @note This parameter is not used for the STM32H7 family and is kept as - * parameter just to maintain compatibility with other families. - * @note This macro clear all CPU flags. - * For single core devices except STM32H7Axxx and STM32H7Bxxx, CPU - * flags are STOPF, SBF, SBF_D1 and SBF_D2. - * For STM32H7Axxx and STM32H7Bxxx lines, CPU flags are STOPF and SBF. - * @retval None. - */ -#define __HAL_PWR_CLEAR_FLAG(__FLAG__) SET_BIT(PWR->CPUCR, PWR_CPUCR_CSSF) -#endif /* defined (DUAL_CORE) */ - -/** @brief Clear PWR wake up flags. - * @param __FLAG__ : Specifies the wake up flag to be cleared. - * This parameter can be one of the following values : - * @arg PWR_FLAG_WKUP1 : This parameter clear Wake up line 1 flag. - * @arg PWR_FLAG_WKUP2 : This parameter clear Wake up line 2 flag. - * @arg PWR_FLAG_WKUP3 : This parameter clear Wake up line 3 flag. - * @arg PWR_FLAG_WKUP4 : This parameter clear Wake up line 4 flag. - * @arg PWR_FLAG_WKUP5 : This parameter clear Wake up line 5 flag. - * @arg PWR_FLAG_WKUP6 : This parameter clear Wake up line 6 flag. - * @note The PWR_FLAG_WKUP3 and PWR_FLAG_WKUP5 are available only for devices - * that support GPIOI port. - * @retval None. - */ -#define __HAL_PWR_CLEAR_WAKEUPFLAG(__FLAG__) SET_BIT(PWR->WKUPCR, (__FLAG__)) - -/** - * @brief Enable the PVD EXTI Line 16. - * @retval None. - */ -#define __HAL_PWR_PVD_EXTI_ENABLE_IT() SET_BIT(EXTI->IMR1, PWR_EXTI_LINE_PVD) - -#if defined (DUAL_CORE) -/** - * @brief Enable the PVD EXTI D2 Line 16. - * @retval None. - */ -#define __HAL_PWR_PVD_EXTID2_ENABLE_IT() SET_BIT(EXTI_D2->IMR1, PWR_EXTI_LINE_PVD) -#endif /* defined (DUAL_CORE) */ - -/** - * @brief Disable the PVD EXTI Line 16. - * @retval None. - */ -#define __HAL_PWR_PVD_EXTI_DISABLE_IT() CLEAR_BIT(EXTI->IMR1, PWR_EXTI_LINE_PVD) - -#if defined (DUAL_CORE) -/** - * @brief Disable the PVD EXTI D2 Line 16. - * @retval None. - */ -#define __HAL_PWR_PVD_EXTID2_DISABLE_IT() CLEAR_BIT(EXTI_D2->IMR1, PWR_EXTI_LINE_PVD) -#endif /* defined (DUAL_CORE) */ - -/** - * @brief Enable event on PVD EXTI Line 16. - * @retval None. - */ -#define __HAL_PWR_PVD_EXTI_ENABLE_EVENT() SET_BIT(EXTI->EMR1, PWR_EXTI_LINE_PVD) - -#if defined (DUAL_CORE) -/** - * @brief Enable event on PVD EXTI D2 Line. - * @retval None. - */ -#define __HAL_PWR_PVD_EXTID2_ENABLE_EVENT() SET_BIT(EXTI_D2->EMR1, PWR_EXTI_LINE_PVD) -#endif /* defined (DUAL_CORE) */ - -/** - * @brief Disable event on PVD EXTI Line 16. - * @retval None. - */ -#define __HAL_PWR_PVD_EXTI_DISABLE_EVENT() CLEAR_BIT(EXTI->EMR1, PWR_EXTI_LINE_PVD) - -#if defined (DUAL_CORE) -/** - * @brief Disable event on PVD EXTI D2 Line. - * @retval None. - */ -#define __HAL_PWR_PVD_EXTID2_DISABLE_EVENT() CLEAR_BIT(EXTI_D2->EMR1, PWR_EXTI_LINE_PVD) -#endif /* defined (DUAL_CORE) */ - -/** - * @brief Enable the PVD Rising Interrupt Trigger. - * @retval None. - */ -#define __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE() SET_BIT(EXTI->RTSR1, PWR_EXTI_LINE_PVD) - -/** - * @brief Disable the PVD Rising Interrupt Trigger. - * @retval None. - */ -#define __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE() CLEAR_BIT(EXTI->RTSR1, PWR_EXTI_LINE_PVD) - -/** - * @brief Enable the PVD Falling Interrupt Trigger. - * @retval None. - */ -#define __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE() SET_BIT(EXTI->FTSR1, PWR_EXTI_LINE_PVD) - -/** - * @brief Disable the PVD Falling Interrupt Trigger. - * @retval None. - */ -#define __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE() CLEAR_BIT(EXTI->FTSR1, PWR_EXTI_LINE_PVD) - -/** - * @brief Enable the PVD Rising & Falling Interrupt Trigger. - * @retval None. - */ -#define __HAL_PWR_PVD_EXTI_ENABLE_RISING_FALLING_EDGE() \ -do { \ - __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE(); \ - __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE(); \ -} while(0); - -/** - * @brief Disable the PVD Rising & Falling Interrupt Trigger. - * @retval None. - */ -#define __HAL_PWR_PVD_EXTI_DISABLE_RISING_FALLING_EDGE() \ -do { \ - __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE(); \ - __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE(); \ -} while(0); - -/** - * @brief Check whether the specified PVD EXTI interrupt flag is set or not. - * @retval EXTI PVD Line Status. - */ -#define __HAL_PWR_PVD_EXTI_GET_FLAG() ((READ_BIT(EXTI->PR1, PWR_EXTI_LINE_PVD) == PWR_EXTI_LINE_PVD) ? 1UL : 0UL) - -#if defined (DUAL_CORE) -/** - * @brief Checks whether the specified PVD EXTI interrupt flag is set or not. - * @retval EXTI D2 PVD Line Status. - */ -#define __HAL_PWR_PVD_EXTID2_GET_FLAG() ((READ_BIT(EXTI_D2->PR1, PWR_EXTI_LINE_PVD) == PWR_EXTI_LINE_PVD) ? 1UL : 0UL) -#endif /* defined (DUAL_CORE) */ - -/** - * @brief Clear the PVD EXTI flag. - * @retval None. - */ -#define __HAL_PWR_PVD_EXTI_CLEAR_FLAG() SET_BIT(EXTI->PR1, PWR_EXTI_LINE_PVD) - -#if defined (DUAL_CORE) -/** - * @brief Clear the PVD EXTI D2 flag. - * @retval None. - */ -#define __HAL_PWR_PVD_EXTID2_CLEAR_FLAG() SET_BIT(EXTI_D2->PR1, PWR_EXTI_LINE_PVD) -#endif /* defined (DUAL_CORE) */ - -/** - * @brief Generates a Software interrupt on PVD EXTI line. - * @retval None. - */ -#define __HAL_PWR_PVD_EXTI_GENERATE_SWIT() SET_BIT(EXTI->SWIER1, PWR_EXTI_LINE_PVD) -/** - * @} - */ - -/* Include PWR HAL Extension module */ -#include "stm32h7xx_hal_pwr_ex.h" - -/* Exported functions --------------------------------------------------------*/ -/** @addtogroup PWR_Exported_Functions PWR Exported Functions - * @{ - */ - -/** @addtogroup PWR_Exported_Functions_Group1 Initialization and De-Initialization Functions - * @{ - */ -/* Initialization and de-initialization functions *****************************/ -void HAL_PWR_DeInit (void); -void HAL_PWR_EnableBkUpAccess (void); -void HAL_PWR_DisableBkUpAccess (void); -/** - * @} - */ - -/** @addtogroup PWR_Exported_Functions_Group2 Peripheral Control Functions - * @{ - */ -/* Peripheral Control functions **********************************************/ -/* PVD configuration */ -void HAL_PWR_ConfigPVD (PWR_PVDTypeDef *sConfigPVD); -void HAL_PWR_EnablePVD (void); -void HAL_PWR_DisablePVD (void); - -/* WakeUp pins configuration */ -void HAL_PWR_EnableWakeUpPin (uint32_t WakeUpPinPolarity); -void HAL_PWR_DisableWakeUpPin (uint32_t WakeUpPinx); - -/* Low Power modes entry */ -void HAL_PWR_EnterSTOPMode (uint32_t Regulator, uint8_t STOPEntry); -void HAL_PWR_EnterSLEEPMode (uint32_t Regulator, uint8_t SLEEPEntry); -void HAL_PWR_EnterSTANDBYMode (void); - -/* Power PVD IRQ Handler */ -void HAL_PWR_PVD_IRQHandler (void); -void HAL_PWR_PVDCallback (void); - -/* Cortex System Control functions *******************************************/ -void HAL_PWR_EnableSleepOnExit (void); -void HAL_PWR_DisableSleepOnExit (void); -void HAL_PWR_EnableSEVOnPend (void); -void HAL_PWR_DisableSEVOnPend (void); -/** - * @} - */ - -/** - * @} - */ - -/* Private types -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private constants ---------------------------------------------------------*/ -/** @defgroup PWR_Private_Constants PWR Private Constants - * @{ - */ - -/** @defgroup PWR_PVD_EXTI_Line PWR PVD EXTI Line - * @{ - */ -#define PWR_EXTI_LINE_PVD EXTI_IMR1_IM16 /*!< External interrupt line 16 - Connected to the PVD EXTI Line */ -/** - * @} - */ - -/** - * @} - */ -/* Private macros ------------------------------------------------------------*/ -/** @defgroup PWR_Private_Macros PWR Private Macros - * @{ - */ - -/** @defgroup PWR_IS_PWR_Definitions PWR Private macros to check input parameters - * @{ - */ -/* Check PVD level parameter */ -#define IS_PWR_PVD_LEVEL(LEVEL) (((LEVEL) == PWR_PVDLEVEL_0) ||\ - ((LEVEL) == PWR_PVDLEVEL_1) ||\ - ((LEVEL) == PWR_PVDLEVEL_2) ||\ - ((LEVEL) == PWR_PVDLEVEL_3) ||\ - ((LEVEL) == PWR_PVDLEVEL_4) ||\ - ((LEVEL) == PWR_PVDLEVEL_5) ||\ - ((LEVEL) == PWR_PVDLEVEL_6) ||\ - ((LEVEL) == PWR_PVDLEVEL_7)) - -/* Check PVD mode parameter */ -#define IS_PWR_PVD_MODE(MODE) (((MODE) == PWR_PVD_MODE_IT_RISING) ||\ - ((MODE) == PWR_PVD_MODE_IT_FALLING) ||\ - ((MODE) == PWR_PVD_MODE_IT_RISING_FALLING) ||\ - ((MODE) == PWR_PVD_MODE_EVENT_RISING) ||\ - ((MODE) == PWR_PVD_MODE_EVENT_FALLING) ||\ - ((MODE) == PWR_PVD_MODE_EVENT_RISING_FALLING) ||\ - ((MODE) == PWR_PVD_MODE_NORMAL)) - -/* Check low power regulator parameter */ -#define IS_PWR_REGULATOR(REGULATOR) (((REGULATOR) == PWR_MAINREGULATOR_ON) ||\ - ((REGULATOR) == PWR_LOWPOWERREGULATOR_ON)) - -/* Check low power mode entry parameter */ -#define IS_PWR_SLEEP_ENTRY(ENTRY) (((ENTRY) == PWR_SLEEPENTRY_WFI) ||\ - ((ENTRY) == PWR_SLEEPENTRY_WFE)) - -/* Check low power mode entry parameter */ -#define IS_PWR_STOP_ENTRY(ENTRY) (((ENTRY) == PWR_STOPENTRY_WFI) ||\ - ((ENTRY) == PWR_STOPENTRY_WFE)) - -/* Check voltage scale level parameter */ -#define IS_PWR_REGULATOR_VOLTAGE(VOLTAGE) (((VOLTAGE) == PWR_REGULATOR_VOLTAGE_SCALE0) || \ - ((VOLTAGE) == PWR_REGULATOR_VOLTAGE_SCALE1) || \ - ((VOLTAGE) == PWR_REGULATOR_VOLTAGE_SCALE2) || \ - ((VOLTAGE) == PWR_REGULATOR_VOLTAGE_SCALE3)) -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif /* __cplusplus */ - -#endif /* STM32H7xx_HAL_PWR_H */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h deleted file mode 100644 index 61c7609..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h +++ /dev/null @@ -1,789 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_pwr_ex.h - * @author MCD Application Team - * @brief Header file of PWR HAL Extension module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_HAL_PWR_EX_H -#define STM32H7xx_HAL_PWR_EX_H - -#ifdef __cplusplus - extern "C" { -#endif /* __cplusplus */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal_def.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @addtogroup PWREx - * @{ - */ - -/* Exported types ------------------------------------------------------------*/ -/** @defgroup PWREx_Exported_Types PWREx Exported Types - * @{ - */ -/** - * @brief PWREx AVD configuration structure definition - */ -typedef struct -{ - uint32_t AVDLevel; /*!< AVDLevel : Specifies the AVD detection level. This - parameter can be a value of @ref - PWREx_AVD_detection_level - */ - - uint32_t Mode; /*!< Mode : Specifies the EXTI operating mode for the AVD - event. This parameter can be a value of @ref - PWREx_AVD_Mode. - */ -}PWREx_AVDTypeDef; - -/** - * @brief PWREx Wakeup pin configuration structure definition - */ -typedef struct -{ - uint32_t WakeUpPin; /*!< WakeUpPin: Specifies the Wake-Up pin to be enabled. - This parameter can be a value of @ref - PWREx_WakeUp_Pins - */ - - uint32_t PinPolarity; /*!< PinPolarity: Specifies the Wake-Up pin polarity. - This parameter can be a value of @ref - PWREx_PIN_Polarity - */ - - uint32_t PinPull; /*!< PinPull: Specifies the Wake-Up pin pull. This - parameter can be a value of @ref - PWREx_PIN_Pull - */ -}PWREx_WakeupPinTypeDef; - -#if defined (PWR_CSR1_MMCVDO) -/** - * @brief PWR VDDMMC voltage level enum definition - */ -typedef enum -{ - PWR_MMC_VOLTAGE_BELOW_1V2, /*!< VDDMMC is below 1V2 */ - PWR_MMC_VOLTAGE_EQUAL_ABOVE_1V2 /*!< VDDMMC is above or equal 1V2 */ -} PWREx_MMC_VoltageLevel; -#endif /* defined (PWR_CSR1_MMCVDO) */ - -/** - * @} - */ - -/* Exported constants --------------------------------------------------------*/ - -/** @defgroup PWREx_Exported_Constants PWREx Exported Constants - * @{ - */ -/** @defgroup PWREx_WakeUp_Pins PWREx Wake-Up Pins - * @{ - */ -/* High level and No pull (default configuration) */ -#define PWR_WAKEUP_PIN6 PWR_WKUPEPR_WKUPEN6 -#if defined (PWR_WKUPEPR_WKUPEN5) -#define PWR_WAKEUP_PIN5 PWR_WKUPEPR_WKUPEN5 -#endif /* defined (PWR_WKUPEPR_WKUPEN5) */ -#define PWR_WAKEUP_PIN4 PWR_WKUPEPR_WKUPEN4 -#if defined (PWR_WKUPEPR_WKUPEN3) -#define PWR_WAKEUP_PIN3 PWR_WKUPEPR_WKUPEN3 -#endif /* defined (PWR_WKUPEPR_WKUPEN3) */ -#define PWR_WAKEUP_PIN2 PWR_WKUPEPR_WKUPEN2 -#define PWR_WAKEUP_PIN1 PWR_WKUPEPR_WKUPEN1 - -/* High level and No pull */ -#define PWR_WAKEUP_PIN6_HIGH PWR_WKUPEPR_WKUPEN6 -#if defined (PWR_WKUPEPR_WKUPEN5) -#define PWR_WAKEUP_PIN5_HIGH PWR_WKUPEPR_WKUPEN5 -#endif /* defined (PWR_WKUPEPR_WKUPEN5) */ -#define PWR_WAKEUP_PIN4_HIGH PWR_WKUPEPR_WKUPEN4 -#if defined (PWR_WKUPEPR_WKUPEN3) -#define PWR_WAKEUP_PIN3_HIGH PWR_WKUPEPR_WKUPEN3 -#endif /* defined (PWR_WKUPEPR_WKUPEN3) */ -#define PWR_WAKEUP_PIN2_HIGH PWR_WKUPEPR_WKUPEN2 -#define PWR_WAKEUP_PIN1_HIGH PWR_WKUPEPR_WKUPEN1 - -/* Low level and No pull */ -#define PWR_WAKEUP_PIN6_LOW (PWR_WKUPEPR_WKUPP6 | PWR_WKUPEPR_WKUPEN6) -#if defined (PWR_WKUPEPR_WKUPP5) -#define PWR_WAKEUP_PIN5_LOW (PWR_WKUPEPR_WKUPP5 | PWR_WKUPEPR_WKUPEN5) -#endif /* defined (PWR_WKUPEPR_WKUPP5) */ -#define PWR_WAKEUP_PIN4_LOW (PWR_WKUPEPR_WKUPP4 | PWR_WKUPEPR_WKUPEN4) -#if defined (PWR_WKUPEPR_WKUPP3) -#define PWR_WAKEUP_PIN3_LOW (PWR_WKUPEPR_WKUPP3 | PWR_WKUPEPR_WKUPEN3) -#endif /* defined (PWR_WKUPEPR_WKUPP3) */ -#define PWR_WAKEUP_PIN2_LOW (PWR_WKUPEPR_WKUPP2 | PWR_WKUPEPR_WKUPEN2) -#define PWR_WAKEUP_PIN1_LOW (PWR_WKUPEPR_WKUPP1 | PWR_WKUPEPR_WKUPEN1) -/** - * @} - */ - -/** @defgroup PWREx_PIN_Polarity PWREx Pin Polarity configuration - * @{ - */ -#define PWR_PIN_POLARITY_HIGH (0x00000000U) -#define PWR_PIN_POLARITY_LOW (0x00000001U) -/** - * @} - */ - -/** @defgroup PWREx_PIN_Pull PWREx Pin Pull configuration - * @{ - */ -#define PWR_PIN_NO_PULL (0x00000000U) -#define PWR_PIN_PULL_UP (0x00000001U) -#define PWR_PIN_PULL_DOWN (0x00000002U) -/** - * @} - */ - -/** @defgroup PWREx_Wakeup_Pins_Flags PWREx Wakeup Pins Flags. - * @{ - */ -#define PWR_WAKEUP_FLAG1 PWR_WKUPFR_WKUPF1 /*!< Wakeup flag on PA0 */ -#define PWR_WAKEUP_FLAG2 PWR_WKUPFR_WKUPF2 /*!< Wakeup flag on PA2 */ -#if defined (PWR_WKUPFR_WKUPF3) -#define PWR_WAKEUP_FLAG3 PWR_WKUPFR_WKUPF3 /*!< Wakeup flag on PI8 */ -#endif /* defined (PWR_WKUPFR_WKUPF3) */ -#define PWR_WAKEUP_FLAG4 PWR_WKUPFR_WKUPF4 /*!< Wakeup flag on PC13 */ -#if defined (PWR_WKUPFR_WKUPF5) -#define PWR_WAKEUP_FLAG5 PWR_WKUPFR_WKUPF5 /*!< Wakeup flag on PI11 */ -#endif /* defined (PWR_WKUPFR_WKUPF5) */ -#define PWR_WAKEUP_FLAG6 PWR_WKUPFR_WKUPF6 /*!< Wakeup flag on PC1 */ -#if defined (PWR_WKUPFR_WKUPF3) -#define PWR_WAKEUP_FLAG_ALL (PWR_WKUPFR_WKUPF1 | PWR_WKUPFR_WKUPF2 |\ - PWR_WKUPFR_WKUPF3 | PWR_WKUPFR_WKUPF4 |\ - PWR_WKUPFR_WKUPF5 | PWR_WKUPFR_WKUPF6) -#else -#define PWR_WAKEUP_FLAG_ALL (PWR_WKUPFR_WKUPF1 | PWR_WKUPFR_WKUPF2 |\ - PWR_WKUPFR_WKUPF4 | PWR_WKUPFR_WKUPF6) -#endif /* defined (PWR_WKUPFR_WKUPF3) */ -/** - * @} - */ - -#if defined (DUAL_CORE) -/** @defgroup PWREx_Core_Select PWREx Core definition - * @{ - */ -#define PWR_CORE_CPU1 (0x00000000U) -#define PWR_CORE_CPU2 (0x00000001U) -/** - * @} - */ -#endif /* defined (DUAL_CORE) */ - -/** @defgroup PWREx_Domains PWREx Domains definition - * @{ - */ -#define PWR_D1_DOMAIN (0x00000000U) -#if defined (PWR_CPUCR_PDDS_D2) -#define PWR_D2_DOMAIN (0x00000001U) -#endif /* defined (PWR_CPUCR_PDDS_D2) */ -#define PWR_D3_DOMAIN (0x00000002U) -/** - * @} - */ - -/** @defgroup PWREx_Domain_Flags PWREx Domain Flags definition - * @{ - */ -#if defined (DUAL_CORE) -#define PWR_D1_DOMAIN_FLAGS (0x00000000U) -#define PWR_D2_DOMAIN_FLAGS (0x00000001U) -#define PWR_ALL_DOMAIN_FLAGS (0x00000002U) -#else -#define PWR_CPU_FLAGS (0x00000000U) -#endif /* defined (DUAL_CORE) */ -/** - * @} - */ - -/** @defgroup PWREx_D3_State PWREx D3 Domain State - * @{ - */ -#define PWR_D3_DOMAIN_STOP (0x00000000U) -#define PWR_D3_DOMAIN_RUN (0x00000800U) - -/** - * @} - */ - -/** @defgroup PWREx_Supply_configuration PWREx Supply configuration - * @{ - */ -#define PWR_LDO_SUPPLY PWR_CR3_LDOEN /*!< Core domains are supplied from the LDO */ -#if defined (SMPS) -#define PWR_DIRECT_SMPS_SUPPLY PWR_CR3_SMPSEN /*!< Core domains are supplied from the SMPS only */ -#define PWR_SMPS_1V8_SUPPLIES_LDO (PWR_CR3_SMPSLEVEL_0 | PWR_CR3_SMPSEN | PWR_CR3_LDOEN) /*!< The SMPS 1.8V output supplies the LDO which supplies the Core domains */ -#define PWR_SMPS_2V5_SUPPLIES_LDO (PWR_CR3_SMPSLEVEL_1 | PWR_CR3_SMPSEN | PWR_CR3_LDOEN) /*!< The SMPS 2.5V output supplies the LDO which supplies the Core domains */ -#define PWR_SMPS_1V8_SUPPLIES_EXT_AND_LDO (PWR_CR3_SMPSLEVEL_0 | PWR_CR3_SMPSEXTHP | PWR_CR3_SMPSEN | PWR_CR3_LDOEN) /*!< The SMPS 1.8V output supplies an external circuits and the LDO. The Core domains are supplied from the LDO */ -#define PWR_SMPS_2V5_SUPPLIES_EXT_AND_LDO (PWR_CR3_SMPSLEVEL_1 | PWR_CR3_SMPSEXTHP | PWR_CR3_SMPSEN | PWR_CR3_LDOEN) /*!< The SMPS 2.5V output supplies an external circuits and the LDO. The Core domains are supplied from the LDO */ -#define PWR_SMPS_1V8_SUPPLIES_EXT (PWR_CR3_SMPSLEVEL_0 | PWR_CR3_SMPSEXTHP | PWR_CR3_SMPSEN | PWR_CR3_BYPASS) /*!< The SMPS 1.8V output supplies an external source which supplies the Core domains */ -#define PWR_SMPS_2V5_SUPPLIES_EXT (PWR_CR3_SMPSLEVEL_1 | PWR_CR3_SMPSEXTHP | PWR_CR3_SMPSEN | PWR_CR3_BYPASS) /*!< The SMPS 2.5V output supplies an external source which supplies the Core domains */ -#endif /* defined (SMPS) */ -#define PWR_EXTERNAL_SOURCE_SUPPLY PWR_CR3_BYPASS /*!< The SMPS disabled and the LDO Bypass. The Core domains are supplied from an external source */ - -#if defined (SMPS) -#define PWR_SUPPLY_CONFIG_MASK (PWR_CR3_SMPSLEVEL | PWR_CR3_SMPSEXTHP | \ - PWR_CR3_SMPSEN | PWR_CR3_LDOEN | PWR_CR3_BYPASS) -#else -#define PWR_SUPPLY_CONFIG_MASK (PWR_CR3_SCUEN | PWR_CR3_LDOEN | PWR_CR3_BYPASS) -#endif /* defined (SMPS) */ -/** - * @} - */ - - -/** @defgroup PWREx_AVD_detection_level PWREx AVD detection level - * @{ - */ -#define PWR_AVDLEVEL_0 PWR_CR1_ALS_LEV0 /*!< Analog voltage detector level 0 - selection : 1V7 */ -#define PWR_AVDLEVEL_1 PWR_CR1_ALS_LEV1 /*!< Analog voltage detector level 1 - selection : 2V1 */ -#define PWR_AVDLEVEL_2 PWR_CR1_ALS_LEV2 /*!< Analog voltage detector level 2 - selection : 2V5 */ -#define PWR_AVDLEVEL_3 PWR_CR1_ALS_LEV3 /*!< Analog voltage detector level 3 - selection : 2V8 */ -/** - * @} - */ - -/** @defgroup PWREx_AVD_Mode PWREx AVD Mode - * @{ - */ -#define PWR_AVD_MODE_NORMAL (0x00000000U) /*!< Basic mode is used */ -#define PWR_AVD_MODE_IT_RISING (0x00010001U) /*!< External Interrupt Mode with Rising edge trigger detection */ -#define PWR_AVD_MODE_IT_FALLING (0x00010002U) /*!< External Interrupt Mode with Falling edge trigger detection */ -#define PWR_AVD_MODE_IT_RISING_FALLING (0x00010003U) /*!< External Interrupt Mode with Rising/Falling edge trigger detection */ -#define PWR_AVD_MODE_EVENT_RISING (0x00020001U) /*!< Event Mode with Rising edge trigger detection */ -#define PWR_AVD_MODE_EVENT_FALLING (0x00020002U) /*!< Event Mode with Falling edge trigger detection */ -#define PWR_AVD_MODE_EVENT_RISING_FALLING (0x00020003U) /*!< Event Mode with Rising/Falling edge trigger detection */ -/** - * @} - */ - -/** @defgroup PWREx_Regulator_Voltage_Scale PWREx Regulator Voltage Scale - * @{ - */ -#define PWR_REGULATOR_SVOS_SCALE5 (PWR_CR1_SVOS_0) -#define PWR_REGULATOR_SVOS_SCALE4 (PWR_CR1_SVOS_1) -#define PWR_REGULATOR_SVOS_SCALE3 (PWR_CR1_SVOS_0 | PWR_CR1_SVOS_1) -/** - * @} - */ - -/** @defgroup PWREx_VBAT_Battery_Charging_Resistor PWR battery charging resistor selection - * @{ - */ -#define PWR_BATTERY_CHARGING_RESISTOR_5 (0x00000000U) /*!< VBAT charging through a 5 kOhms resistor */ -#define PWR_BATTERY_CHARGING_RESISTOR_1_5 PWR_CR3_VBRS /*!< VBAT charging through a 1.5 kOhms resistor */ -/** - * @} - */ - -/** @defgroup PWREx_VBAT_Thresholds PWREx VBAT Thresholds - * @{ - */ -#define PWR_VBAT_BETWEEN_HIGH_LOW_THRESHOLD (0x00000000U) -#define PWR_VBAT_BELOW_LOW_THRESHOLD PWR_CR2_VBATL -#define PWR_VBAT_ABOVE_HIGH_THRESHOLD PWR_CR2_VBATH -/** - * @} - */ - -/** @defgroup PWREx_TEMP_Thresholds PWREx Temperature Thresholds - * @{ - */ -#define PWR_TEMP_BETWEEN_HIGH_LOW_THRESHOLD (0x00000000U) -#define PWR_TEMP_BELOW_LOW_THRESHOLD PWR_CR2_TEMPL -#define PWR_TEMP_ABOVE_HIGH_THRESHOLD PWR_CR2_TEMPH -/** - * @} - */ -/** @defgroup PWREx_AVD_EXTI_Line PWREx AVD EXTI Line 16 - * @{ - */ -#define PWR_EXTI_LINE_AVD EXTI_IMR1_IM16 /*!< External interrupt line 16 - Connected to the AVD EXTI Line */ -/** - * @} - */ - -#if defined (PWR_CR1_SRDRAMSO) -/** @defgroup PWREx_Memory_Shut_Off Memory shut-off block selection - * @{ - */ -#define PWR_SRD_AHB_MEMORY_BLOCK PWR_CR1_SRDRAMSO /*!< SmartRun domain AHB memory shut-off in DStop/DStop2 low-power mode */ -#define PWR_USB_FDCAN_MEMORY_BLOCK PWR_CR1_HSITFSO /*!< High-speed interfaces USB and FDCAN memories shut-off in DStop/DStop2 mode */ -#define PWR_GFXMMU_JPEG_MEMORY_BLOCK PWR_CR1_GFXSO /*!< GFXMMU and JPEG memories shut-off in DStop/DStop2 mode */ -#define PWR_TCM_ECM_MEMORY_BLOCK PWR_CR1_ITCMSO /*!< Instruction TCM and ETM memories shut-off in DStop/DStop2 mode */ -#define PWR_RAM1_AHB_MEMORY_BLOCK PWR_CR1_AHBRAM1SO /*!< AHB RAM1 shut-off in DStop/DStop2 mode */ -#define PWR_RAM2_AHB_MEMORY_BLOCK PWR_CR1_AHBRAM2SO /*!< AHB RAM2 shut-off in DStop/DStop2 mode */ -#define PWR_RAM1_AXI_MEMORY_BLOCK PWR_CR1_AXIRAM1SO /*!< AXI RAM1 shut-off in DStop/DStop2 mode */ -#define PWR_RAM2_AXI_MEMORY_BLOCK PWR_CR1_AXIRAM2SO /*!< AXI RAM2 shut-off in DStop/DStop2 mode */ -#define PWR_RAM3_AXI_MEMORY_BLOCK PWR_CR1_AXIRAM3SO /*!< AXI RAM3 shut-off in DStop/DStop2 mode */ -#define PWR_MEMORY_BLOCK_KEEP_ON 0U /*!< Memory content is kept in DStop or DStop2 mode */ -#define PWR_MEMORY_BLOCK_SHUT_OFF 1U /*!< Memory content is lost in DStop or DStop2 mode */ -/** - * @} - */ -#endif /* defined (PWR_CR1_SRDRAMSO) */ -/** - * @} - */ - -/* Exported macro ------------------------------------------------------------*/ - -/** @defgroup PWREx_Exported_Macro PWREx Exported Macro - * @{ - */ - -/** - * @brief Enable the AVD EXTI Line 16. - * @retval None. - */ -#define __HAL_PWR_AVD_EXTI_ENABLE_IT() SET_BIT(EXTI->IMR1, PWR_EXTI_LINE_AVD) - -#if defined (DUAL_CORE) -/** - * @brief Enable the AVD EXTI D2 Line 16. - * @retval None. - */ -#define __HAL_PWR_AVD_EXTID2_ENABLE_IT() SET_BIT(EXTI_D2->IMR1, PWR_EXTI_LINE_AVD) -#endif /* defined (DUAL_CORE) */ - -/** - * @brief Disable the AVD EXTI Line 16 - * @retval None. - */ -#define __HAL_PWR_AVD_EXTI_DISABLE_IT() CLEAR_BIT(EXTI->IMR1, PWR_EXTI_LINE_AVD) - -#if defined (DUAL_CORE) -/** - * @brief Disable the AVD EXTI D2 Line 16. - * @retval None. - */ -#define __HAL_PWR_AVD_EXTID2_DISABLE_IT() CLEAR_BIT(EXTI_D2->IMR1, PWR_EXTI_LINE_AVD) -#endif /* defined (DUAL_CORE) */ - -/** - * @brief Enable event on AVD EXTI Line 16. - * @retval None. - */ -#define __HAL_PWR_AVD_EXTI_ENABLE_EVENT() SET_BIT(EXTI->EMR1, PWR_EXTI_LINE_AVD) - -#if defined (DUAL_CORE) -/** - * @brief Enable event on AVD EXTI D2 Line 16. - * @retval None. - */ -#define __HAL_PWR_AVD_EXTID2_ENABLE_EVENT() SET_BIT(EXTI_D2->EMR1, PWR_EXTI_LINE_AVD) -#endif /* defined (DUAL_CORE) */ - -/** - * @brief Disable event on AVD EXTI Line 16. - * @retval None. - */ -#define __HAL_PWR_AVD_EXTI_DISABLE_EVENT() CLEAR_BIT(EXTI->EMR1, PWR_EXTI_LINE_AVD) - -#if defined (DUAL_CORE) -/** - * @brief Disable event on AVD EXTI D2 Line 16. - * @retval None. - */ -#define __HAL_PWR_AVD_EXTID2_DISABLE_EVENT() CLEAR_BIT(EXTI_D2->EMR1, PWR_EXTI_LINE_AVD) -#endif /* defined (DUAL_CORE) */ - -/** - * @brief Enable the AVD Extended Interrupt Rising Trigger. - * @retval None. - */ -#define __HAL_PWR_AVD_EXTI_ENABLE_RISING_EDGE() SET_BIT(EXTI->RTSR1, PWR_EXTI_LINE_AVD) - -/** - * @brief Disable the AVD Extended Interrupt Rising Trigger. - * @retval None. - */ -#define __HAL_PWR_AVD_EXTI_DISABLE_RISING_EDGE() CLEAR_BIT(EXTI->RTSR1, PWR_EXTI_LINE_AVD) - -/** - * @brief Enable the AVD Extended Interrupt Falling Trigger. - * @retval None. - */ -#define __HAL_PWR_AVD_EXTI_ENABLE_FALLING_EDGE() SET_BIT(EXTI->FTSR1, PWR_EXTI_LINE_AVD) - -/** - * @brief Disable the AVD Extended Interrupt Falling Trigger. - * @retval None. - */ -#define __HAL_PWR_AVD_EXTI_DISABLE_FALLING_EDGE() CLEAR_BIT(EXTI->FTSR1, PWR_EXTI_LINE_AVD) - -/** - * @brief Enable the AVD Extended Interrupt Rising and Falling Trigger. - * @retval None. - */ -#define __HAL_PWR_AVD_EXTI_ENABLE_RISING_FALLING_EDGE() \ -do { \ - __HAL_PWR_AVD_EXTI_ENABLE_RISING_EDGE(); \ - __HAL_PWR_AVD_EXTI_ENABLE_FALLING_EDGE(); \ -} while(0); - -/** - * @brief Disable the AVD Extended Interrupt Rising & Falling Trigger. - * @retval None. - */ -#define __HAL_PWR_AVD_EXTI_DISABLE_RISING_FALLING_EDGE() \ -do { \ - __HAL_PWR_AVD_EXTI_DISABLE_RISING_EDGE(); \ - __HAL_PWR_AVD_EXTI_DISABLE_FALLING_EDGE(); \ -} while(0); - -/** - * @brief Check whether the specified AVD EXTI interrupt flag is set or not. - * @retval EXTI AVD Line Status. - */ -#define __HAL_PWR_AVD_EXTI_GET_FLAG() ((READ_BIT(EXTI->PR1, PWR_EXTI_LINE_AVD) == PWR_EXTI_LINE_AVD) ? 1UL : 0UL) - -#if defined (DUAL_CORE) -/** - * @brief Check whether the specified AVD EXTI D2 interrupt flag is set or not. - * @retval EXTI D2 AVD Line Status. - */ -#define __HAL_PWR_AVD_EXTID2_GET_FLAG() ((READ_BIT(EXTI_D2->PR1, PWR_EXTI_LINE_AVD) == PWR_EXTI_LINE_AVD) ? 1UL : 0UL) -#endif /* defined (DUAL_CORE) */ - -/** - * @brief Clear the AVD EXTI flag. - * @retval None. - */ -#define __HAL_PWR_AVD_EXTI_CLEAR_FLAG() SET_BIT(EXTI->PR1, PWR_EXTI_LINE_AVD) - -#if defined (DUAL_CORE) -/** - * @brief Clear the AVD EXTI D2 flag. - * @retval None. - */ -#define __HAL_PWR_AVD_EXTID2_CLEAR_FLAG() SET_BIT(EXTI_D2->PR1, PWR_EXTI_LINE_AVD) -#endif /* defined (DUAL_CORE) */ - -/** - * @brief Generates a Software interrupt on AVD EXTI line. - * @retval None. - */ -#define __HAL_PWR_AVD_EXTI_GENERATE_SWIT() SET_BIT(EXTI->SWIER1, PWR_EXTI_LINE_AVD) -/** - * @} - */ - -/* Exported functions --------------------------------------------------------*/ - -/** @addtogroup PWREx_Exported_Functions PWREx Exported Functions - * @{ - */ - -/** @addtogroup PWREx_Exported_Functions_Group1 Power Supply Control Functions - * @{ - */ -HAL_StatusTypeDef HAL_PWREx_ConfigSupply (uint32_t SupplySource); -uint32_t HAL_PWREx_GetSupplyConfig (void); -HAL_StatusTypeDef HAL_PWREx_ControlVoltageScaling (uint32_t VoltageScaling); -uint32_t HAL_PWREx_GetVoltageRange (void); -HAL_StatusTypeDef HAL_PWREx_ControlStopModeVoltageScaling (uint32_t VoltageScaling); -uint32_t HAL_PWREx_GetStopModeVoltageRange (void); -/** - * @} - */ - -/** @addtogroup PWREx_Exported_Functions_Group2 Low Power Control Functions - * @{ - */ -/* System low power control functions */ -#if defined (PWR_CPUCR_RETDS_CD) -void HAL_PWREx_EnterSTOP2Mode (uint32_t Regulator, uint8_t STOPEntry); -#endif /* defined (PWR_CPUCR_RETDS_CD) */ -void HAL_PWREx_EnterSTOPMode (uint32_t Regulator, uint8_t STOPEntry, uint32_t Domain); -void HAL_PWREx_EnterSTANDBYMode (uint32_t Domain); -void HAL_PWREx_ConfigD3Domain (uint32_t D3State); -/* Clear Cortex-Mx pending flag */ -void HAL_PWREx_ClearPendingEvent (void); -#if defined (DUAL_CORE) -/* Clear domain flags */ -void HAL_PWREx_ClearDomainFlags (uint32_t DomainFlags); -/* Core Hold/Release functions */ -HAL_StatusTypeDef HAL_PWREx_HoldCore (uint32_t CPU); -void HAL_PWREx_ReleaseCore (uint32_t CPU); -#endif /* defined (DUAL_CORE) */ -/* Flash low power control functions */ -void HAL_PWREx_EnableFlashPowerDown (void); -void HAL_PWREx_DisableFlashPowerDown (void); -#if defined (PWR_CR1_SRDRAMSO) -/* Memory shut-off functions */ -void HAL_PWREx_EnableMemoryShutOff (uint32_t MemoryBlock); -void HAL_PWREx_DisableMemoryShutOff (uint32_t MemoryBlock); -#endif /* defined(PWR_CR1_SRDRAMSO) */ -/* Wakeup Pins control functions */ -void HAL_PWREx_EnableWakeUpPin (PWREx_WakeupPinTypeDef *sPinParams); -void HAL_PWREx_DisableWakeUpPin (uint32_t WakeUpPin); -uint32_t HAL_PWREx_GetWakeupFlag (uint32_t WakeUpFlag); -HAL_StatusTypeDef HAL_PWREx_ClearWakeupFlag (uint32_t WakeUpFlag); -/* Power Wakeup PIN IRQ Handler */ -void HAL_PWREx_WAKEUP_PIN_IRQHandler (void); -void HAL_PWREx_WKUP1_Callback (void); -void HAL_PWREx_WKUP2_Callback (void); -#if defined (PWR_WKUPEPR_WKUPEN3) -void HAL_PWREx_WKUP3_Callback (void); -#endif /* defined (PWR_WKUPEPR_WKUPEN3) */ -void HAL_PWREx_WKUP4_Callback (void); -#if defined (PWR_WKUPEPR_WKUPEN5) -void HAL_PWREx_WKUP5_Callback (void); -#endif /* defined (PWR_WKUPEPR_WKUPEN5) */ -void HAL_PWREx_WKUP6_Callback (void); -/** - * @} - */ - -/** @addtogroup PWREx_Exported_Functions_Group3 Peripherals control functions - * @{ - */ -/* Backup regulator control functions */ -HAL_StatusTypeDef HAL_PWREx_EnableBkUpReg (void); -HAL_StatusTypeDef HAL_PWREx_DisableBkUpReg (void); -/* USB regulator control functions */ -HAL_StatusTypeDef HAL_PWREx_EnableUSBReg (void); -HAL_StatusTypeDef HAL_PWREx_DisableUSBReg (void); -void HAL_PWREx_EnableUSBVoltageDetector (void); -void HAL_PWREx_DisableUSBVoltageDetector (void); -/* Battery control functions */ -void HAL_PWREx_EnableBatteryCharging (uint32_t ResistorValue); -void HAL_PWREx_DisableBatteryCharging (void); -#if defined (PWR_CR1_BOOSTE) -/* Analog Booster functions */ -void HAL_PWREx_EnableAnalogBooster (void); -void HAL_PWREx_DisableAnalogBooster (void); -#endif /* PWR_CR1_BOOSTE */ -/** - * @} - */ - -/** @addtogroup PWREx_Exported_Functions_Group4 Power Monitoring functions - * @{ - */ -/* Power VBAT/Temperature monitoring functions */ -void HAL_PWREx_EnableMonitoring (void); -void HAL_PWREx_DisableMonitoring (void); -uint32_t HAL_PWREx_GetTemperatureLevel (void); -uint32_t HAL_PWREx_GetVBATLevel (void); -#if defined (PWR_CSR1_MMCVDO) -PWREx_MMC_VoltageLevel HAL_PWREx_GetMMCVoltage (void); -#endif /* PWR_CSR1_MMCVDO */ -/* Power AVD configuration functions */ -void HAL_PWREx_ConfigAVD (PWREx_AVDTypeDef *sConfigAVD); -void HAL_PWREx_EnableAVD (void); -void HAL_PWREx_DisableAVD (void); -/* Power PVD/AVD IRQ Handler */ -void HAL_PWREx_PVD_AVD_IRQHandler (void); -void HAL_PWREx_AVDCallback (void); -/** - * @} - */ - -/** - * @} - */ -/* Private types -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private constants ---------------------------------------------------------*/ -/* Private macros ------------------------------------------------------------*/ -/** @defgroup PWREx_Private_Macros PWREx Private Macros - * @{ - */ - -/** @defgroup PWREx_IS_PWR_Definitions PWREx Private macros to check input parameters - * @{ - */ -/* Check PWR regulator configuration parameter */ -#if defined (SMPS) -#define IS_PWR_SUPPLY(PWR_SOURCE) (((PWR_SOURCE) == PWR_LDO_SUPPLY) ||\ - ((PWR_SOURCE) == PWR_DIRECT_SMPS_SUPPLY) ||\ - ((PWR_SOURCE) == PWR_SMPS_1V8_SUPPLIES_LDO) ||\ - ((PWR_SOURCE) == PWR_SMPS_2V5_SUPPLIES_LDO) ||\ - ((PWR_SOURCE) == PWR_SMPS_1V8_SUPPLIES_EXT_AND_LDO) ||\ - ((PWR_SOURCE) == PWR_SMPS_2V5_SUPPLIES_EXT_AND_LDO) ||\ - ((PWR_SOURCE) == PWR_SMPS_1V8_SUPPLIES_EXT) ||\ - ((PWR_SOURCE) == PWR_SMPS_2V5_SUPPLIES_EXT) ||\ - ((PWR_SOURCE) == PWR_EXTERNAL_SOURCE_SUPPLY)) - -#else -#define IS_PWR_SUPPLY(PWR_SOURCE) (((PWR_SOURCE) == PWR_LDO_SUPPLY) ||\ - ((PWR_SOURCE) == PWR_EXTERNAL_SOURCE_SUPPLY)) -#endif /* defined (SMPS) */ - -/* Check PWR regulator configuration in STOP mode parameter */ -#define IS_PWR_STOP_MODE_REGULATOR_VOLTAGE(VOLTAGE) (((VOLTAGE) == PWR_REGULATOR_SVOS_SCALE3) ||\ - ((VOLTAGE) == PWR_REGULATOR_SVOS_SCALE4) ||\ - ((VOLTAGE) == PWR_REGULATOR_SVOS_SCALE5)) - -/* Check PWR domain parameter */ -#if defined (PWR_CPUCR_PDDS_D2) -#define IS_PWR_DOMAIN(DOMAIN) (((DOMAIN) == PWR_D1_DOMAIN) ||\ - ((DOMAIN) == PWR_D2_DOMAIN) ||\ - ((DOMAIN) == PWR_D3_DOMAIN)) -#else -#define IS_PWR_DOMAIN(DOMAIN) (((DOMAIN) == PWR_D1_DOMAIN) ||\ - ((DOMAIN) == PWR_D3_DOMAIN)) -#endif /* defined (PWR_CPUCR_PDDS_D2) */ - -/* Check D3/SRD domain state parameter */ -#define IS_D3_STATE(STATE) (((STATE) == PWR_D3_DOMAIN_STOP) ||\ - ((STATE) == PWR_D3_DOMAIN_RUN)) - -/* Check wake up pin parameter */ -#if defined (PWR_WKUPEPR_WKUPEN3) -#define IS_PWR_WAKEUP_PIN(PIN) (((PIN) == PWR_WAKEUP_PIN1) ||\ - ((PIN) == PWR_WAKEUP_PIN2) ||\ - ((PIN) == PWR_WAKEUP_PIN3) ||\ - ((PIN) == PWR_WAKEUP_PIN4) ||\ - ((PIN) == PWR_WAKEUP_PIN5) ||\ - ((PIN) == PWR_WAKEUP_PIN6) ||\ - ((PIN) == PWR_WAKEUP_PIN1_HIGH) ||\ - ((PIN) == PWR_WAKEUP_PIN2_HIGH) ||\ - ((PIN) == PWR_WAKEUP_PIN3_HIGH) ||\ - ((PIN) == PWR_WAKEUP_PIN4_HIGH) ||\ - ((PIN) == PWR_WAKEUP_PIN5_HIGH) ||\ - ((PIN) == PWR_WAKEUP_PIN6_HIGH) ||\ - ((PIN) == PWR_WAKEUP_PIN1_LOW) ||\ - ((PIN) == PWR_WAKEUP_PIN2_LOW) ||\ - ((PIN) == PWR_WAKEUP_PIN3_LOW) ||\ - ((PIN) == PWR_WAKEUP_PIN4_LOW) ||\ - ((PIN) == PWR_WAKEUP_PIN5_LOW) ||\ - ((PIN) == PWR_WAKEUP_PIN6_LOW)) -#else -#define IS_PWR_WAKEUP_PIN(PIN) (((PIN) == PWR_WAKEUP_PIN1) ||\ - ((PIN) == PWR_WAKEUP_PIN2) ||\ - ((PIN) == PWR_WAKEUP_PIN4) ||\ - ((PIN) == PWR_WAKEUP_PIN6) ||\ - ((PIN) == PWR_WAKEUP_PIN1_HIGH) ||\ - ((PIN) == PWR_WAKEUP_PIN2_HIGH) ||\ - ((PIN) == PWR_WAKEUP_PIN4_HIGH) ||\ - ((PIN) == PWR_WAKEUP_PIN6_HIGH) ||\ - ((PIN) == PWR_WAKEUP_PIN1_LOW) ||\ - ((PIN) == PWR_WAKEUP_PIN2_LOW) ||\ - ((PIN) == PWR_WAKEUP_PIN4_LOW) ||\ - ((PIN) == PWR_WAKEUP_PIN6_LOW)) -#endif /* defined (PWR_WKUPEPR_WKUPEN3) */ - -/* Check wake up pin polarity parameter */ -#define IS_PWR_WAKEUP_PIN_POLARITY(POLARITY) (((POLARITY) == PWR_PIN_POLARITY_HIGH) ||\ - ((POLARITY) == PWR_PIN_POLARITY_LOW)) - -/* Check wake up pin pull configuration parameter */ -#define IS_PWR_WAKEUP_PIN_PULL(PULL) (((PULL) == PWR_PIN_NO_PULL) ||\ - ((PULL) == PWR_PIN_PULL_UP) ||\ - ((PULL) == PWR_PIN_PULL_DOWN)) - -/* Check wake up flag parameter */ -#if defined (PWR_WKUPEPR_WKUPEN3) -#define IS_PWR_WAKEUP_FLAG(FLAG) (((FLAG) == PWR_WAKEUP_FLAG1) ||\ - ((FLAG) == PWR_WAKEUP_FLAG2) ||\ - ((FLAG) == PWR_WAKEUP_FLAG3) ||\ - ((FLAG) == PWR_WAKEUP_FLAG4) ||\ - ((FLAG) == PWR_WAKEUP_FLAG5) ||\ - ((FLAG) == PWR_WAKEUP_FLAG6) ||\ - ((FLAG) == PWR_WAKEUP_FLAG_ALL)) -#else -#define IS_PWR_WAKEUP_FLAG(FLAG) (((FLAG) == PWR_WAKEUP_FLAG1) ||\ - ((FLAG) == PWR_WAKEUP_FLAG2) ||\ - ((FLAG) == PWR_WAKEUP_FLAG4) ||\ - ((FLAG) == PWR_WAKEUP_FLAG6) ||\ - ((FLAG) == PWR_WAKEUP_FLAG_ALL)) -#endif /* defined (PWR_WKUPEPR_WKUPEN3) */ - -/* Check wake up flag parameter */ -#define IS_PWR_AVD_LEVEL(LEVEL) (((LEVEL) == PWR_AVDLEVEL_0) ||\ - ((LEVEL) == PWR_AVDLEVEL_1) ||\ - ((LEVEL) == PWR_AVDLEVEL_2) ||\ - ((LEVEL) == PWR_AVDLEVEL_3)) - -/* Check AVD mode parameter */ -#define IS_PWR_AVD_MODE(MODE) (((MODE) == PWR_AVD_MODE_IT_RISING) ||\ - ((MODE) == PWR_AVD_MODE_IT_FALLING) ||\ - ((MODE) == PWR_AVD_MODE_IT_RISING_FALLING) ||\ - ((MODE) == PWR_AVD_MODE_EVENT_RISING) ||\ - ((MODE) == PWR_AVD_MODE_EVENT_FALLING) ||\ - ((MODE) == PWR_AVD_MODE_NORMAL) ||\ - ((MODE) == PWR_AVD_MODE_EVENT_RISING_FALLING)) - -/* Check resistor battery parameter */ -#define IS_PWR_BATTERY_RESISTOR_SELECT(RESISTOR) (((RESISTOR) == PWR_BATTERY_CHARGING_RESISTOR_5) ||\ - ((RESISTOR) == PWR_BATTERY_CHARGING_RESISTOR_1_5)) -/* Check D1/CD CPU ID parameter */ -#define IS_PWR_D1_CPU(CPU) ((CPU) == CM7_CPUID) - -#if defined (DUAL_CORE) -/* Check CPU parameter */ -#define IS_PWR_CORE(CPU) (((CPU) == PWR_CORE_CPU1) || ((CPU) == PWR_CORE_CPU2)) - -/* Check D2 CPU ID parameter */ -#define IS_PWR_D2_CPU(CPU) ((CPU) == CM4_CPUID) - -/* Check PWR domain flag parameter */ -#define IS_PWR_DOMAIN_FLAG(FLAG) (((FLAG) == PWR_D1_DOMAIN_FLAGS) || \ - ((FLAG) == PWR_D2_DOMAIN_FLAGS) || \ - ((FLAG) == PWR_ALL_DOMAIN_FLAGS)) -#endif /* defined (DUAL_CORE) */ - -#if defined (PWR_CR1_SRDRAMSO) -/* Check memory block parameter */ -#define IS_PWR_MEMORY_BLOCK(BLOCK) (((BLOCK) == PWR_SRD_AHB_MEMORY_BLOCK) || \ - ((BLOCK) == PWR_USB_FDCAN_MEMORY_BLOCK) || \ - ((BLOCK) == PWR_GFXMMU_JPEG_MEMORY_BLOCK) || \ - ((BLOCK) == PWR_TCM_ECM_MEMORY_BLOCK) || \ - ((BLOCK) == PWR_RAM1_AHB_MEMORY_BLOCK) || \ - ((BLOCK) == PWR_RAM2_AHB_MEMORY_BLOCK) || \ - ((BLOCK) == PWR_RAM1_AXI_MEMORY_BLOCK) || \ - ((BLOCK) == PWR_RAM2_AXI_MEMORY_BLOCK) || \ - ((BLOCK) == PWR_RAM3_AXI_MEMORY_BLOCK)) -#endif /* defined (PWR_CR1_SRDRAMSO) */ -/** - * @} - */ -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ -#ifdef __cplusplus -} -#endif /* __cplusplus */ - - -#endif /* STM32H7xx_HAL_PWR_EX_H */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h deleted file mode 100644 index 1626c6d..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h +++ /dev/null @@ -1,8266 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_rcc.h - * @author MCD Application Team - * @brief Header file of RCC HAL module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file in - * the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_HAL_RCC_H -#define STM32H7xx_HAL_RCC_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal_def.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @addtogroup RCC - * @{ - */ - -/* Exported types ------------------------------------------------------------*/ - -/** @defgroup RCC_Exported_Types RCC Exported Types - * @{ - */ - -/** - * @brief RCC PLL configuration structure definition - */ -typedef struct -{ - uint32_t PLLState; /*!< The new state of the PLL. - This parameter can be a value of @ref RCC_PLL_Config */ - - uint32_t PLLSource; /*!< RCC_PLLSource: PLL entry clock source. - This parameter must be a value of @ref RCC_PLL_Clock_Source */ - - uint32_t PLLM; /*!< PLLM: Division factor for PLL VCO input clock. - This parameter must be a number between Min_Data = 1 and Max_Data = 63 */ - - uint32_t PLLN; /*!< PLLN: Multiplication factor for PLL VCO output clock. - This parameter must be a number between Min_Data = 4 and Max_Data = 512 - or between Min_Data = 8 and Max_Data = 420(*) - (*) : For stm32h7a3xx and stm32h7b3xx family lines. */ - - uint32_t PLLP; /*!< PLLP: Division factor for system clock. - This parameter must be a number between Min_Data = 2 and Max_Data = 128 - odd division factors are not allowed */ - - uint32_t PLLQ; /*!< PLLQ: Division factor for peripheral clocks. - This parameter must be a number between Min_Data = 1 and Max_Data = 128 */ - - uint32_t PLLR; /*!< PLLR: Division factor for peripheral clocks. - This parameter must be a number between Min_Data = 1 and Max_Data = 128 */ - uint32_t PLLRGE; /*!AHB3ENR, RCC_AHB3ENR_MDMAEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB3ENR, RCC_AHB3ENR_MDMAEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_DMA2D_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB3ENR, RCC_AHB3ENR_DMA2DEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB3ENR, RCC_AHB3ENR_DMA2DEN);\ - UNUSED(tmpreg); \ - } while(0) - -#if defined(JPEG) -#define __HAL_RCC_JPGDECEN_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB3ENR, RCC_AHB3ENR_JPGDECEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB3ENR, RCC_AHB3ENR_JPGDECEN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* JPEG */ - -#define __HAL_RCC_FMC_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB3ENR, RCC_AHB3ENR_FMCEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB3ENR, RCC_AHB3ENR_FMCEN);\ - UNUSED(tmpreg); \ - } while(0) - -#if defined(QUADSPI) -#define __HAL_RCC_QSPI_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB3ENR, RCC_AHB3ENR_QSPIEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB3ENR, RCC_AHB3ENR_QSPIEN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* QUADSPI */ -#if defined(OCTOSPI1) -#define __HAL_RCC_OSPI1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB3ENR, RCC_AHB3ENR_OSPI1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB3ENR, RCC_AHB3ENR_OSPI1EN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* OCTOSPI1 */ -#if defined(OCTOSPI2) -#define __HAL_RCC_OSPI2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB3ENR, RCC_AHB3ENR_OSPI2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB3ENR, RCC_AHB3ENR_OSPI2EN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* OCTOSPI2 */ -#if defined(OCTOSPIM) -#define __HAL_RCC_OCTOSPIM_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB3ENR, RCC_AHB3ENR_IOMNGREN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB3ENR, RCC_AHB3ENR_IOMNGREN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* OCTOSPIM */ -#if defined(OTFDEC1) -#define __HAL_RCC_OTFDEC1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB3ENR, RCC_AHB3ENR_OTFDEC1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB3ENR, RCC_AHB3ENR_OTFDEC1EN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* OTFDEC1 */ -#if defined(OTFDEC2) -#define __HAL_RCC_OTFDEC2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB3ENR, RCC_AHB3ENR_OTFDEC2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB3ENR, RCC_AHB3ENR_OTFDEC2EN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* OTFDEC2 */ -#if defined(GFXMMU) -#define __HAL_RCC_GFXMMU_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB3ENR, RCC_AHB3ENR_GFXMMUEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB3ENR, RCC_AHB3ENR_GFXMMUEN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* GFXMMU */ -#define __HAL_RCC_SDMMC1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB3ENR, RCC_AHB3ENR_SDMMC1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB3ENR, RCC_AHB3ENR_SDMMC1EN);\ - UNUSED(tmpreg); \ - } while(0) - - -#define __HAL_RCC_MDMA_CLK_DISABLE() (RCC->AHB3ENR &= ~ (RCC_AHB3ENR_MDMAEN)) -#define __HAL_RCC_DMA2D_CLK_DISABLE() (RCC->AHB3ENR &= ~ (RCC_AHB3ENR_DMA2DEN)) -#if defined(JPEG) -#define __HAL_RCC_JPGDECEN_CLK_DISABLE() (RCC->AHB3ENR &= ~ (RCC_AHB3ENR_JPGDECEN)) -#endif /* JPEG */ -#define __HAL_RCC_FMC_CLK_DISABLE() (RCC->AHB3ENR &= ~ (RCC_AHB3ENR_FMCEN)) - -#if defined(QUADSPI) -#define __HAL_RCC_QSPI_CLK_DISABLE() (RCC->AHB3ENR &= ~ (RCC_AHB3ENR_QSPIEN)) -#endif /* QUADSPI */ -#if defined(OCTOSPI1) -#define __HAL_RCC_OSPI1_CLK_DISABLE() (RCC->AHB3ENR &= ~ (RCC_AHB3ENR_OSPI1EN)) -#endif /* OCTOSPII */ -#if defined(OCTOSPI2) -#define __HAL_RCC_OSPI2_CLK_DISABLE() (RCC->AHB3ENR &= ~ (RCC_AHB3ENR_OSPI2EN)) -#endif /* OCTOSPI2 */ -#define __HAL_RCC_SDMMC1_CLK_DISABLE() (RCC->AHB3ENR &= ~ (RCC_AHB3ENR_SDMMC1EN)) -#if defined(OCTOSPIM) -#define __HAL_RCC_OCTOSPIM_CLK_DISABLE() (RCC->AHB3ENR &= ~ (RCC_AHB3ENR_IOMNGREN)) -#endif /* OCTOSPIM */ -#if defined(OTFDEC1) -#define __HAL_RCC_OTFDEC1_CLK_DISABLE() (RCC->AHB3ENR &= ~ (RCC_AHB3ENR_OTFDEC1EN)) -#endif /* OTOFDEC1 */ -#if defined(OTFDEC2) -#define __HAL_RCC_OTFDEC2_CLK_DISABLE() (RCC->AHB3ENR &= ~ (RCC_AHB3ENR_OTFDEC2EN)) -#endif /* OTOFDEC2 */ -#if defined(GFXMMU) -#define __HAL_RCC_GFXMMU_CLK_DISABLE() (RCC->AHB3ENR &= ~ (RCC_AHB3ENR_GFXMMUEN)) -#endif /* GFXMMU */ - -/** @brief Get the enable or disable status of the AHB3 peripheral clock - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#define __HAL_RCC_MDMA_IS_CLK_ENABLED() ((RCC->AHB3ENR & RCC_AHB3ENR_MDMAEN) != 0U) -#define __HAL_RCC_DMA2D_IS_CLK_ENABLED() ((RCC->AHB3ENR & RCC_AHB3ENR_DMA2DEN) != 0U) -#if defined(JPEG) -#define __HAL_RCC_JPGDECEN_IS_CLK_ENABLED() ((RCC->AHB3ENR & RCC_AHB3ENR_JPGDECEN) != 0U) -#endif /* JPEG */ -#define __HAL_RCC_FMC_IS_CLK_ENABLED() ((RCC->AHB3ENR & RCC_AHB3ENR_FMCEN) != 0U) -#if defined (QUADSPI) -#define __HAL_RCC_QSPI_IS_CLK_ENABLED() ((RCC->AHB3ENR & RCC_AHB3ENR_QSPIEN) != 0U) -#endif /* QUADSPI */ -#if defined(OCTOSPI1) -#define __HAL_RCC_OSPI1_IS_CLK_ENABLED() ((RCC->AHB3ENR & RCC_AHB3ENR_OSPI1EN) != 0U) -#endif /* OCTOSPII */ -#if defined(OCTOSPI2) -#define __HAL_RCC_OSPI2_IS_CLK_ENABLED() ((RCC->AHB3ENR & RCC_AHB3ENR_OSPI2EN) != 0U) -#endif /* OCTOSPI2 */ -#define __HAL_RCC_SDMMC1_IS_CLK_ENABLED() ((RCC->AHB3ENR & RCC_AHB3ENR_SDMMC1EN) != 0U) -#if defined(OCTOSPIM) -#define __HAL_RCC_OCTOSPIM_IS_CLK_ENABLED() ((RCC->AHB3ENR & RCC_AHB3ENR_IOMNGREN) != 0U) -#endif /* OCTOSPIM */ -#if defined(OTFDEC1) -#define __HAL_RCC_OTFDEC1_IS_CLK_ENABLED() ((RCC->AHB3ENR & RCC_AHB3ENR_OTFDEC1EN) != 0U) -#endif /* OTOFDEC1 */ -#if defined(OTFDEC2) -#define __HAL_RCC_OTFDEC2_IS_CLK_ENABLED() ((RCC->AHB3ENR & RCC_AHB3ENR_OTFDEC2EN) != 0U) -#endif /* OTOFDEC2 */ -#if defined(GFXMMU) -#define __HAL_RCC_GFXMMU_IS_CLK_ENABLED() ((RCC->AHB3ENR & RCC_AHB3ENR_GFXMMUEN) != 0U) -#endif /* GFXMMU */ - -#define __HAL_RCC_MDMA_IS_CLK_DISABLED() ((RCC->AHB3ENR & RCC_AHB3ENR_MDMAEN) == 0U) -#define __HAL_RCC_DMA2D_IS_CLK_DISABLED() ((RCC->AHB3ENR & RCC_AHB3ENR_DMA2DEN) == 0U) -#if defined(JPEG) -#define __HAL_RCC_JPGDECEN_IS_CLK_DISABLED() ((RCC->AHB3ENR & RCC_AHB3ENR_JPGDECEN) == 0U) -#endif /* JPEG */ -#define __HAL_RCC_FMC_IS_CLK_DISABLED() ((RCC->AHB3ENR & RCC_AHB3ENR_FMCEN) == 0U) -#if defined (QUADSPI) -#define __HAL_RCC_QSPI_IS_CLK_DISABLED() ((RCC->AHB3ENR & RCC_AHB3ENR_QSPIEN) == 0U) -#endif /* QUADSPI */ -#define __HAL_RCC_SDMMC1_IS_CLK_DISABLED() ((RCC->AHB3ENR & RCC_AHB3ENR_SDMMC1EN) == 0U) -#if defined(OCTOSPI1) -#define __HAL_RCC_OSPI1_IS_CLK_DISABLED() ((RCC->AHB3ENR & RCC_AHB3ENR_OSPI1EN) == 0U) -#endif -#if defined(OCTOSPI2) -#define __HAL_RCC_OSPI2_IS_CLK_DISABLED() ((RCC->AHB3ENR & RCC_AHB3ENR_OSPI2EN) == 0U) -#endif -#if defined(OCTOSPIM) -#define __HAL_RCC_OCTOSPIM_IS_CLK_DISABLED() ((RCC->AHB3ENR & RCC_AHB3ENR_IOMNGREN) == 0U) -#endif -#if defined(OTFDEC1) -#define __HAL_RCC_OTFDEC1_IS_CLK_DISABLED() ((RCC->AHB3ENR & RCC_AHB3ENR_OTFDEC1EN) == 0U) -#endif -#if defined(OTFDEC2) -#define __HAL_RCC_OTFDEC2_IS_CLK_DISABLED() ((RCC->AHB3ENR & RCC_AHB3ENR_OTFDEC2EN) == 0U) -#endif -#if defined(GFXMMU) -#define __HAL_RCC_GFXMMU_IS_CLK_DISABLED() ((RCC->AHB3ENR & RCC_AHB3ENR_GFXMMUEN) == 0U) -#endif -/** @brief Enable or disable the AHB1 peripheral clock. - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#define __HAL_RCC_DMA1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_DMA1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_DMA1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_DMA2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_DMA2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_DMA2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_ADC12_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ADC12EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ADC12EN);\ - UNUSED(tmpreg); \ - } while(0) - -#if defined(DUAL_CORE) -#define __HAL_RCC_ART_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ARTEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ARTEN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /*DUAL_CORE*/ - -#if defined(RCC_AHB1ENR_CRCEN) -#define __HAL_RCC_CRC_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CRCEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_CRCEN);\ - UNUSED(tmpreg); \ - } while(0) -#endif - -#if defined(ETH) -#define __HAL_RCC_ETH1MAC_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETH1MACEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETH1MACEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_ETH1TX_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETH1TXEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETH1TXEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_ETH1RX_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETH1RXEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETH1RXEN);\ - UNUSED(tmpreg); \ - } while(0) -#endif - -#define __HAL_RCC_USB1_OTG_HS_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_USB1OTGHSEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_USB1OTGHSEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_USB1_OTG_HS_ULPI_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_USB1OTGHSULPIEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_USB1OTGHSULPIEN);\ - UNUSED(tmpreg); \ - } while(0) - -#if defined(USB2_OTG_FS) -#define __HAL_RCC_USB2_OTG_FS_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_USB2OTGHSEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_USB2OTGHSEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_USB2_OTG_FS_ULPI_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_USB2OTGHSULPIEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_USB2OTGHSULPIEN);\ - UNUSED(tmpreg); \ - } while(0) -#endif - -#define __HAL_RCC_DMA1_CLK_DISABLE() (RCC->AHB1ENR &= ~ (RCC_AHB1ENR_DMA1EN)) -#define __HAL_RCC_DMA2_CLK_DISABLE() (RCC->AHB1ENR &= ~ (RCC_AHB1ENR_DMA2EN)) -#define __HAL_RCC_ADC12_CLK_DISABLE() (RCC->AHB1ENR &= ~ (RCC_AHB1ENR_ADC12EN)) -#if defined(DUAL_CORE) -#define __HAL_RCC_ART_CLK_DISABLE() (RCC->AHB1ENR &= ~ (RCC_AHB1ENR_ARTEN)) -#endif /*DUAL_CORE*/ -#if defined(RCC_AHB1ENR_CRCEN) -#define __HAL_RCC_CRC_CLK_DISABLE() (RCC->AHB1ENR &= ~ (RCC_AHB1ENR_CRCEN)) -#endif -#if defined(ETH) -#define __HAL_RCC_ETH1MAC_CLK_DISABLE() (RCC->AHB1ENR &= ~ (RCC_AHB1ENR_ETH1MACEN)) -#define __HAL_RCC_ETH1TX_CLK_DISABLE() (RCC->AHB1ENR &= ~ (RCC_AHB1ENR_ETH1TXEN)) -#define __HAL_RCC_ETH1RX_CLK_DISABLE() (RCC->AHB1ENR &= ~ (RCC_AHB1ENR_ETH1RXEN)) -#endif -#define __HAL_RCC_USB1_OTG_HS_CLK_DISABLE() (RCC->AHB1ENR &= ~ (RCC_AHB1ENR_USB1OTGHSEN)) -#define __HAL_RCC_USB1_OTG_HS_ULPI_CLK_DISABLE() (RCC->AHB1ENR &= ~ (RCC_AHB1ENR_USB1OTGHSULPIEN)) -#if defined(USB2_OTG_FS) -#define __HAL_RCC_USB2_OTG_FS_CLK_DISABLE() (RCC->AHB1ENR &= ~ (RCC_AHB1ENR_USB2OTGHSEN)) -#define __HAL_RCC_USB2_OTG_FS_ULPI_CLK_DISABLE() (RCC->AHB1ENR &= ~ (RCC_AHB1ENR_USB2OTGHSULPIEN)) -#endif /* USB2_OTG_FS */ - -/** @brief Get the enable or disable status of the AHB1 peripheral clock - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#define __HAL_RCC_DMA1_IS_CLK_ENABLED() ((RCC->AHB1ENR & RCC_AHB1ENR_DMA1EN) != 0U) -#define __HAL_RCC_DMA2_IS_CLK_ENABLED() ((RCC->AHB1ENR & RCC_AHB1ENR_DMA2EN) != 0U) -#define __HAL_RCC_ADC12_IS_CLK_ENABLED() ((RCC->AHB1ENR & RCC_AHB1ENR_ADC12EN) != 0U) -#if defined(DUAL_CORE) -#define __HAL_RCC_ART_IS_CLK_ENABLED() ((RCC->AHB1ENR & RCC_AHB1ENR_ARTEN) != 0U) -#endif /*DUAL_CORE*/ -#if defined(RCC_AHB1ENR_CRCEN) -#define __HAL_RCC_CRC_IS_CLK_ENABLED() ((RCC->AHB1ENR & RCC_AHB1ENR_CRCEN) != 0U) -#endif -#if defined(ETH) -#define __HAL_RCC_ETH1MAC_IS_CLK_ENABLED() ((RCC->AHB1ENR & RCC_AHB1ENR_ETH1MACEN) != 0U) -#define __HAL_RCC_ETH1TX_IS_CLK_ENABLED() ((RCC->AHB1ENR & RCC_AHB1ENR_ETH1TXEN) != 0U) -#define __HAL_RCC_ETH1RX_IS_CLK_ENABLED() ((RCC->AHB1ENR & RCC_AHB1ENR_ETH1RXEN) != 0U) -#endif -#define __HAL_RCC_USB1_OTG_HS_IS_CLK_ENABLED() ((RCC->AHB1ENR & RCC_AHB1ENR_USB1OTGHSEN) != 0U) -#define __HAL_RCC_USB1_OTG_HS_ULPI_IS_CLK_ENABLED() ((RCC->AHB1ENR & RCC_AHB1ENR_USB1OTGHSULPIEN) != 0U) -#if defined(USB2_OTG_FS) -#define __HAL_RCC_USB2_OTG_FS_IS_CLK_ENABLED() ((RCC->AHB1ENR & RCC_AHB1ENR_USB2OTGHSEN) != 0U) -#define __HAL_RCC_USB2_OTG_FS_ULPI_IS_CLK_ENABLED() ((RCC->AHB1ENR & RCC_AHB1ENR_USB2OTGHSULPIEN) != 0U) -#endif /* USB2_OTG_FS */ - -#define __HAL_RCC_DMA1_IS_CLK_DISABLED() ((RCC->AHB1ENR & RCC_AHB1ENR_DMA1EN) == 0U) -#define __HAL_RCC_DMA2_IS_CLK_DISABLED() ((RCC->AHB1ENR & RCC_AHB1ENR_DMA2EN) == 0U) -#define __HAL_RCC_ADC12_IS_CLK_DISABLED() ((RCC->AHB1ENR & RCC_AHB1ENR_ADC12EN) == 0U) -#if defined(DUAL_CORE) -#define __HAL_RCC_ART_IS_CLK_DISABLED() ((RCC->AHB1ENR & RCC_AHB1ENR_ARTEN) == 0U) -#endif /*DUAL_CORE*/ -#if defined(RCC_AHB1ENR_CRCEN) -#define __HAL_RCC_CRC_IS_CLK_DISABLED() ((RCC->AHB1ENR & RCC_AHB1ENR_CRCEN) == 0U) -#endif -#if defined(ETH) -#define __HAL_RCC_ETH1MAC_IS_CLK_DISABLED() ((RCC->AHB1ENR & RCC_AHB1ENR_ETH1MACEN) == 0U) -#define __HAL_RCC_ETH1TX_IS_CLK_DISABLED() ((RCC->AHB1ENR & RCC_AHB1ENR_ETH1TXEN) == 0U) -#define __HAL_RCC_ETH1RX_IS_CLK_DISABLED() ((RCC->AHB1ENR & RCC_AHB1ENR_ETH1RXEN) == 0U) -#endif -#define __HAL_RCC_USB1_OTG_HS_IS_CLK_DISABLED() ((RCC->AHB1ENR & RCC_AHB1ENR_USB1OTGHSEN) == 0U) -#define __HAL_RCC_USB1_OTG_HS_ULPI_IS_CLK_DISABLED() ((RCC->AHB1ENR & RCC_AHB1ENR_USB1OTGHSULPIEN) == 0U) -#if defined(USB2_OTG_FS) -#define __HAL_RCC_USB2_OTG_FS_IS_CLK_DISABLED() ((RCC->AHB1ENR & RCC_AHB1ENR_USB2OTGHSEN) == 0U) -#define __HAL_RCC_USB2_OTG_FS_ULPI_IS_CLK_DISABLED() ((RCC->AHB1ENR & RCC_AHB1ENR_USB2OTGHSULPIEN) == 0U) -#endif /* USB2_OTG_FS */ - -/** @brief Enable or disable the AHB2 peripheral clock. - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#if defined(DCMI) && defined(PSSI) -#define __HAL_RCC_DCMI_PSSI_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_DCMI_PSSIEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_DCMI_PSSIEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_DCMI_CLK_ENABLE() __HAL_RCC_DCMI_PSSI_CLK_ENABLE() /* for API backward compatibility*/ -#else -#define __HAL_RCC_DCMI_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_DCMIEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_DCMIEN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* DCMI && PSSI */ - -#if defined(CRYP) -#define __HAL_RCC_CRYP_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_CRYPEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_CRYPEN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* CRYP */ - -#if defined(HASH) -#define __HAL_RCC_HASH_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_HASHEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_HASHEN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* HASH */ - -#define __HAL_RCC_RNG_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_RNGEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_RNGEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_SDMMC2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_SDMMC2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_SDMMC2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#if defined(FMAC) -#define __HAL_RCC_FMAC_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_FMACEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_FMACEN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* FMAC */ - -#if defined(CORDIC) -#define __HAL_RCC_CORDIC_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_CORDICEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_CORDICEN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* CORDIC */ - -#if defined(RCC_AHB2ENR_D2SRAM1EN) -#define __HAL_RCC_D2SRAM1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_D2SRAM1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_D2SRAM1EN);\ - UNUSED(tmpreg); \ - } while(0) -#else -#define __HAL_RCC_AHBSRAM1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_AHBSRAM1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_AHBSRAM1EN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* RCC_AHB2ENR_D2SRAM1EN */ - -#if defined(RCC_AHB2ENR_D2SRAM2EN) -#define __HAL_RCC_D2SRAM2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_D2SRAM2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_D2SRAM2EN);\ - UNUSED(tmpreg); \ - } while(0) -#else -#define __HAL_RCC_AHBSRAM2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_AHBSRAM2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_AHBSRAM2EN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* RCC_AHB2ENR_D2SRAM2EN */ - -#if defined(RCC_AHB2ENR_D2SRAM3EN) -#define __HAL_RCC_D2SRAM3_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_D2SRAM3EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_D2SRAM3EN);\ - UNUSED(tmpreg); \ - } while(0) -#endif - -#if defined(RCC_AHB2ENR_HSEMEN) -#define __HAL_RCC_HSEM_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_HSEMEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_HSEMEN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* RCC_AHB2ENR_HSEMEN */ - -#if defined(BDMA1) -#define __HAL_RCC_BDMA1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_BDMA1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_BDMA1EN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* BDMA1 */ - -#if defined(DCMI) && defined(PSSI) -#define __HAL_RCC_DCMI_PSSI_CLK_DISABLE() (RCC->AHB2ENR &= ~ (RCC_AHB2ENR_DCMI_PSSIEN)) -#define __HAL_RCC_DCMI_CLK_DISABLE() __HAL_RCC_DCMI_PSSI_CLK_DISABLE() /* for API backward compatibility*/ -#else -#define __HAL_RCC_DCMI_CLK_DISABLE() (RCC->AHB2ENR &= ~ (RCC_AHB2ENR_DCMIEN)) -#endif /* DCMI && PSSI */ -#if defined(CRYP) -#define __HAL_RCC_CRYP_CLK_DISABLE() (RCC->AHB2ENR &= ~ (RCC_AHB2ENR_CRYPEN)) -#endif /* CRYP */ -#if defined(HASH) -#define __HAL_RCC_HASH_CLK_DISABLE() (RCC->AHB2ENR &= ~ (RCC_AHB2ENR_HASHEN)) -#endif /* HASH */ -#define __HAL_RCC_RNG_CLK_DISABLE() (RCC->AHB2ENR &= ~ (RCC_AHB2ENR_RNGEN)) -#define __HAL_RCC_SDMMC2_CLK_DISABLE() (RCC->AHB2ENR &= ~ (RCC_AHB2ENR_SDMMC2EN)) -#if defined(FMAC) -#define __HAL_RCC_FMAC_CLK_DISABLE() (RCC->AHB2ENR &= ~ (RCC_AHB2ENR_FMACEN)) -#endif /* FMAC */ -#if defined(CORDIC) -#define __HAL_RCC_CORDIC_CLK_DISABLE() (RCC->AHB2ENR &= ~ (RCC_AHB2ENR_CORDICEN)) -#endif /* CORDIC */ -#if defined(RCC_AHB2ENR_D2SRAM1EN) -#define __HAL_RCC_D2SRAM1_CLK_DISABLE() (RCC->AHB2ENR &= ~ (RCC_AHB2ENR_D2SRAM1EN)) -#else -#define __HAL_RCC_AHBSRAM1_CLK_DISABLE() (RCC->AHB2ENR &= ~ (RCC_AHB2ENR_AHBSRAM1EN)) -#endif /* RCC_AHB2ENR_D2SRAM1EN */ -#if defined(RCC_AHB2ENR_D2SRAM2EN) -#define __HAL_RCC_D2SRAM2_CLK_DISABLE() (RCC->AHB2ENR &= ~ (RCC_AHB2ENR_D2SRAM2EN)) -#else -#define __HAL_RCC_AHBSRAM2_CLK_DISABLE() (RCC->AHB2ENR &= ~ (RCC_AHB2ENR_AHBSRAM2EN)) -#endif /* RCC_AHB2ENR_D2SRAM2EN */ -#if defined(RCC_AHB2ENR_D2SRAM3EN) -#define __HAL_RCC_D2SRAM3_CLK_DISABLE() (RCC->AHB2ENR &= ~ (RCC_AHB2ENR_D2SRAM3EN)) -#endif -#if defined(RCC_AHB2ENR_HSEMEN) -#define __HAL_RCC_HSEM_CLK_DISABLE() (RCC->AHB2ENR &= ~ (RCC_AHB2ENR_HSEMEN)) -#endif -#if defined(BDMA1) -#define __HAL_RCC_BDMA1_CLK_DISABLE() (RCC->AHB2ENR &= ~ (RCC_AHB2ENR_BDMA1EN)) -#endif - -/** @brief Get the enable or disable status of the AHB2 peripheral clock - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#if defined(DCMI) && defined(PSSI) -#define __HAL_RCC_DCMI_PSSI_IS_CLK_ENABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_DCMI_PSSIEN) != 0U) -#define __HAL_RCC_DCMI_IS_CLK_ENABLED() __HAL_RCC_DCMI_PSSI_IS_CLK_ENABLED() /* for API backward compatibility*/ -#else -#define __HAL_RCC_DCMI_IS_CLK_ENABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_DCMIEN) != 0U) -#endif /* DCMI && PSSI */ -#if defined(CRYP) -#define __HAL_RCC_CRYP_IS_CLK_ENABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_CRYPEN) != 0U) -#endif /* CRYP */ -#if defined(HASH) -#define __HAL_RCC_HASH_IS_CLK_ENABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_HASHEN) != 0U) -#endif /* HASH */ -#define __HAL_RCC_RNG_IS_CLK_ENABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_RNGEN) != 0U) -#define __HAL_RCC_SDMMC2_IS_CLK_ENABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_SDMMC2EN) != 0U) -#if defined(FMAC) -#define __HAL_RCC_FMAC_IS_CLK_ENABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_FMACEN) != 0U) -#endif /* FMAC */ -#if defined(CORDIC) -#define __HAL_RCC_CORDIC_IS_CLK_ENABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_CORDICEN) != 0U) -#endif /* CORDIC */ -#if defined(RCC_AHB2ENR_D2SRAM1EN) -#define __HAL_RCC_D2SRAM1_IS_CLK_ENABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_D2SRAM1EN) != 0U) -#else -#define __HAL_RCC_AHBSRAM1_IS_CLK_ENABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_AHBSRAM1EN) != 0U) -#endif /* RCC_AHB2ENR_D2SRAM1EN */ -#if defined(RCC_AHB2ENR_D2SRAM2EN) -#define __HAL_RCC_D2SRAM2_IS_CLK_ENABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_D2SRAM2EN) != 0U) -#else -#define __HAL_RCC_AHBSRAM2_IS_CLK_ENABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_AHBSRAM2EN) != 0U) -#endif /* RCC_AHB2ENR_D2SRAM2EN */ -#if defined(RCC_AHB2ENR_D2SRAM3EN) -#define __HAL_RCC_D2SRAM3_IS_CLK_ENABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_D2SRAM3EN) != 0U) -#endif -#if defined(RCC_AHB2ENR_HSEMEN) -#define __HAL_RCC_HSEM_IS_CLK_ENABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_HSEMEN) != 0U) -#endif -#if defined(BDMA1) -#define __HAL_RCC_BDMA1_IS_CLK_ENABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_BDMA1EN) != 0U) -#endif - -#if defined(DCMI) && defined(PSSI) -#define __HAL_RCC_DCMI_PSSI_IS_CLK_DISABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_DCMI_PSSIEN) == 0U) -#define __HAL_RCC_DCMI_IS_CLK_DISABLED() __HAL_RCC_DCMI_PSSI_IS_CLK_DISABLED() /* for API backward compatibility*/ -#else -#define __HAL_RCC_DCMI_IS_CLK_DISABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_DCMIEN) == 0U) -#endif /* DCMI && PSSI */ -#if defined(CRYP) -#define __HAL_RCC_CRYP_IS_CLK_DISABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_CRYPEN) == 0U) -#endif /* CRYP */ -#if defined(HASH) -#define __HAL_RCC_HASH_IS_CLK_DISABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_HASHEN) == 0U) -#endif /* HASH */ -#define __HAL_RCC_RNG_IS_CLK_DISABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_RNGEN) == 0U) -#define __HAL_RCC_SDMMC2_IS_CLK_DISABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_SDMMC2EN) == 0U) -#if defined(FMAC) -#define __HAL_RCC_FMAC_IS_CLK_DISABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_FMACEN) == 0U) -#endif /* FMAC */ -#if defined(CORDIC) -#define __HAL_RCC_CORDIC_IS_CLK_DISABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_CORDICEN) == 0U) -#endif /* CORDIC */ -#if defined(RCC_AHB2ENR_D2SRAM1EN) -#define __HAL_RCC_D2SRAM1_IS_CLK_DISABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_D2SRAM1EN) == 0U) -#else -#define __HAL_RCC_AHBSRAM1_IS_CLK_DISABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_AHBSRAM1EN) == 0U) -#endif /* RCC_AHB2ENR_D2SRAM1EN */ -#if defined(RCC_AHB2ENR_D2SRAM2EN) -#define __HAL_RCC_D2SRAM2_IS_CLK_DISABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_D2SRAM2EN) == 0U) -#else -#define __HAL_RCC_AHBSRAM2_IS_CLK_DISABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_AHBSRAM2EN) == 0U) -#endif /* RCC_AHB2ENR_D2SRAM2EN */ -#if defined(RCC_AHB2ENR_D2SRAM3EN) -#define __HAL_RCC_D2SRAM3_IS_CLK_DISABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_D2SRAM3EN) == 0U) -#endif -#if defined(RCC_AHB2ENR_HSEMEN) -#define __HAL_RCC_HSEM_IS_CLK_DISABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_HSEMEN) == 0U) -#endif -#if defined(BDMA1) -#define __HAL_RCC_BDMA1_IS_CLK_DISABLED() ((RCC->AHB2ENR & RCC_AHB2ENR_BDMA1EN) == 0U) -#endif - -/** @brief Enable or disable the AHB4 peripheral clock. - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#define __HAL_RCC_GPIOA_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB4ENR, RCC_AHB4ENR_GPIOAEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB4ENR, RCC_AHB4ENR_GPIOAEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_GPIOB_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB4ENR, RCC_AHB4ENR_GPIOBEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB4ENR, RCC_AHB4ENR_GPIOBEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_GPIOC_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB4ENR, RCC_AHB4ENR_GPIOCEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB4ENR, RCC_AHB4ENR_GPIOCEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_GPIOD_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB4ENR, RCC_AHB4ENR_GPIODEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB4ENR, RCC_AHB4ENR_GPIODEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_GPIOE_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB4ENR, RCC_AHB4ENR_GPIOEEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB4ENR, RCC_AHB4ENR_GPIOEEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_GPIOF_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB4ENR, RCC_AHB4ENR_GPIOFEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB4ENR, RCC_AHB4ENR_GPIOFEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_GPIOG_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB4ENR, RCC_AHB4ENR_GPIOGEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB4ENR, RCC_AHB4ENR_GPIOGEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_GPIOH_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB4ENR, RCC_AHB4ENR_GPIOHEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB4ENR, RCC_AHB4ENR_GPIOHEN);\ - UNUSED(tmpreg); \ - } while(0) - -#if defined(GPIOI) -#define __HAL_RCC_GPIOI_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB4ENR, RCC_AHB4ENR_GPIOIEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB4ENR, RCC_AHB4ENR_GPIOIEN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* GPIOI */ - -#define __HAL_RCC_GPIOJ_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB4ENR, RCC_AHB4ENR_GPIOJEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB4ENR, RCC_AHB4ENR_GPIOJEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_GPIOK_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB4ENR, RCC_AHB4ENR_GPIOKEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB4ENR, RCC_AHB4ENR_GPIOKEN);\ - UNUSED(tmpreg); \ - } while(0) - -#if defined(RCC_AHB4ENR_CRCEN) -#define __HAL_RCC_CRC_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB4ENR, RCC_AHB4ENR_CRCEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB4ENR, RCC_AHB4ENR_CRCEN);\ - UNUSED(tmpreg); \ - } while(0) -#endif - -#if defined(BDMA2) -#define __HAL_RCC_BDMA2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB4ENR, RCC_AHB4ENR_BDMA2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB4ENR, RCC_AHB4ENR_BDMA2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_BDMA_CLK_ENABLE() __HAL_RCC_BDMA2_CLK_ENABLE() /* for API backward compatibility*/ -#else -#define __HAL_RCC_BDMA_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB4ENR, RCC_AHB4ENR_BDMAEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB4ENR, RCC_AHB4ENR_BDMAEN);\ - UNUSED(tmpreg); \ - } while(0) -#endif - -#if defined(ADC3) -#define __HAL_RCC_ADC3_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB4ENR, RCC_AHB4ENR_ADC3EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB4ENR, RCC_AHB4ENR_ADC3EN);\ - UNUSED(tmpreg); \ - } while(0) -#endif - -#if defined(RCC_AHB4ENR_HSEMEN) -#define __HAL_RCC_HSEM_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB4ENR, RCC_AHB4ENR_HSEMEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB4ENR, RCC_AHB4ENR_HSEMEN);\ - UNUSED(tmpreg); \ - } while(0) -#endif - -#if defined(RCC_AHB4ENR_SRDSRAMEN) -#define __HAL_RCC_SRDSRAM_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB4ENR, RCC_AHB4ENR_SRDSRAMEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB4ENR, RCC_AHB4ENR_SRDSRAMEN);\ - UNUSED(tmpreg); \ - } while(0) -#endif - -#define __HAL_RCC_BKPRAM_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->AHB4ENR, RCC_AHB4ENR_BKPRAMEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->AHB4ENR, RCC_AHB4ENR_BKPRAMEN);\ - UNUSED(tmpreg); \ - } while(0) - - -#define __HAL_RCC_GPIOA_CLK_DISABLE() (RCC->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOAEN) -#define __HAL_RCC_GPIOB_CLK_DISABLE() (RCC->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOBEN) -#define __HAL_RCC_GPIOC_CLK_DISABLE() (RCC->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOCEN) -#define __HAL_RCC_GPIOD_CLK_DISABLE() (RCC->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIODEN) -#define __HAL_RCC_GPIOE_CLK_DISABLE() (RCC->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOEEN) -#define __HAL_RCC_GPIOF_CLK_DISABLE() (RCC->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOFEN) -#define __HAL_RCC_GPIOG_CLK_DISABLE() (RCC->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOGEN) -#define __HAL_RCC_GPIOH_CLK_DISABLE() (RCC->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOHEN) -#if defined(GPIOI) -#define __HAL_RCC_GPIOI_CLK_DISABLE() (RCC->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOIEN) -#endif /* GPIOI */ -#define __HAL_RCC_GPIOJ_CLK_DISABLE() (RCC->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOJEN) -#define __HAL_RCC_GPIOK_CLK_DISABLE() (RCC->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOKEN) -#if defined(RCC_AHB4ENR_CRCEN) -#define __HAL_RCC_CRC_CLK_DISABLE() (RCC->AHB4ENR) &= ~ (RCC_AHB4ENR_CRCEN) -#endif -#if defined(BDMA2) -#define __HAL_RCC_BDMA2_CLK_DISABLE() (RCC->AHB4ENR) &= ~ (RCC_AHB4ENR_BDMA2EN) -#define __HAL_RCC_BDMA_CLK_DISABLE() __HAL_RCC_BDMA2_CLK_DISABLE() /* for API backward compatibility*/ -#else -#define __HAL_RCC_BDMA_CLK_DISABLE() (RCC->AHB4ENR) &= ~ (RCC_AHB4ENR_BDMAEN) -#endif -#if defined(ADC3) -#define __HAL_RCC_ADC3_CLK_DISABLE() (RCC->AHB4ENR) &= ~ (RCC_AHB4ENR_ADC3EN) -#endif -#if defined(RCC_AHB4ENR_HSEMEN) -#define __HAL_RCC_HSEM_CLK_DISABLE() (RCC->AHB4ENR) &= ~ (RCC_AHB4ENR_HSEMEN) -#endif -#if defined(RCC_AHB4ENR_SRDSRAMEN) -#define __HAL_RCC_SRDSRAM_CLK_DISABLE() (RCC->AHB4ENR) &= ~ (RCC_AHB4ENR_SRDSRAMEN) -#endif -#define __HAL_RCC_BKPRAM_CLK_DISABLE() (RCC->AHB4ENR) &= ~ (RCC_AHB4ENR_BKPRAMEN) - - -/** @brief Get the enable or disable status of the AHB4 peripheral clock - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#define __HAL_RCC_GPIOA_IS_CLK_ENABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_GPIOAEN) != 0U) -#define __HAL_RCC_GPIOB_IS_CLK_ENABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_GPIOBEN) != 0U) -#define __HAL_RCC_GPIOC_IS_CLK_ENABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_GPIOCEN) != 0U) -#define __HAL_RCC_GPIOD_IS_CLK_ENABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_GPIODEN) != 0U) -#define __HAL_RCC_GPIOE_IS_CLK_ENABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_GPIOEEN) != 0U) -#define __HAL_RCC_GPIOF_IS_CLK_ENABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_GPIOFEN) != 0U) -#define __HAL_RCC_GPIOG_IS_CLK_ENABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_GPIOGEN) != 0U) -#define __HAL_RCC_GPIOH_IS_CLK_ENABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_GPIOHEN) != 0U) -#if defined(GPIOI) -#define __HAL_RCC_GPIOI_IS_CLK_ENABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_GPIOIEN) != 0U) -#endif /* GPIOI */ -#define __HAL_RCC_GPIOJ_IS_CLK_ENABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_GPIOJEN) != 0U) -#define __HAL_RCC_GPIOK_IS_CLK_ENABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_GPIOKEN) != 0U) -#if defined(RCC_AHB4ENR_CRCEN) -#define __HAL_RCC_CRC_IS_CLK_ENABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_CRCEN) != 0U) -#endif -#if defined(BDMA2) -#define __HAL_RCC_BDMA2_IS_CLK_ENABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_BDMA2EN) != 0U) -#define __HAL_RCC_BDMA_IS_CLK_ENABLED() __HAL_RCC_BDMA2_IS_CLK_ENABLED() /* for API backward compatibility*/ -#else -#define __HAL_RCC_BDMA_IS_CLK_ENABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_BDMAEN) != 0U) -#endif -#if defined(ADC3) -#define __HAL_RCC_ADC3_IS_CLK_ENABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_ADC3EN) != 0U) -#endif -#if defined(RCC_AHB4ENR_HSEMEN) -#define __HAL_RCC_HSEM_IS_CLK_ENABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_HSEMEN) != 0U) -#endif -#if defined(RCC_AHB4ENR_SRDSRAMEN) -#define __HAL_RCC_SRDSRAM_IS_CLK_ENABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_SRDSRAMEN) != 0U) -#endif -#define __HAL_RCC_BKPRAM_IS_CLK_ENABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_BKPRAMEN) != 0U) - -#define __HAL_RCC_GPIOA_IS_CLK_DISABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_GPIOAEN) == 0U) -#define __HAL_RCC_GPIOB_IS_CLK_DISABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_GPIOBEN) == 0U) -#define __HAL_RCC_GPIOC_IS_CLK_DISABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_GPIOCEN) == 0U) -#define __HAL_RCC_GPIOD_IS_CLK_DISABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_GPIODEN) == 0U) -#define __HAL_RCC_GPIOE_IS_CLK_DISABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_GPIOEEN) == 0U) -#define __HAL_RCC_GPIOF_IS_CLK_DISABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_GPIOFEN) == 0U) -#define __HAL_RCC_GPIOG_IS_CLK_DISABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_GPIOGEN) == 0U) -#define __HAL_RCC_GPIOH_IS_CLK_DISABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_GPIOHEN) == 0U) -#if defined(GPIOI) -#define __HAL_RCC_GPIOI_IS_CLK_DISABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_GPIOIEN) == 0U) -#endif /* GPIOI */ -#define __HAL_RCC_GPIOJ_IS_CLK_DISABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_GPIOJEN) == 0U) -#define __HAL_RCC_GPIOK_IS_CLK_DISABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_GPIOKEN) == 0U) - -#if defined(RCC_AHB4ENR_CRCEN) -#define __HAL_RCC_CRC_IS_CLK_DISABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_CRCEN) == 0U) -#endif -#if defined(BDMA2) -#define __HAL_RCC_BDMA2_IS_CLK_DISABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_BDMA2EN) == 0U) -#define __HAL_RCC_BDMA_IS_CLK_DISABLED() __HAL_RCC_BDMA2_IS_CLK_DISABLED() /* for API backward compatibility*/ -#else -#define __HAL_RCC_BDMA_IS_CLK_DISABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_BDMAEN) == 0U) -#endif -#if defined(ADC3) -#define __HAL_RCC_ADC3_IS_CLK_DISABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_ADC3EN) == 0U) -#endif -#if defined(RCC_AHB4ENR_HSEMEN) -#define __HAL_RCC_HSEM_IS_CLK_DISABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_HSEMEN) == 0U) -#endif -#if defined(RCC_AHB4ENR_SRDSRAMEN) -#define __HAL_RCC_SRDSRAM_IS_CLK_DISABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_SRDSRAMEN) == 0U) -#endif -#define __HAL_RCC_BKPRAM_IS_CLK_DISABLED() ((RCC->AHB4ENR & RCC_AHB4ENR_BKPRAMEN) == 0U) - - -/** @brief Enable or disable the APB3 peripheral clock. - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#if defined(LTDC) -#define __HAL_RCC_LTDC_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB3ENR, RCC_APB3ENR_LTDCEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB3ENR, RCC_APB3ENR_LTDCEN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* LTDC */ - -#if defined(DSI) -#define __HAL_RCC_DSI_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB3ENR, RCC_APB3ENR_DSIEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB3ENR, RCC_APB3ENR_DSIEN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /*DSI*/ - -#define __HAL_RCC_WWDG1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB3ENR, RCC_APB3ENR_WWDG1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB3ENR, RCC_APB3ENR_WWDG1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#if defined(LTDC) -#define __HAL_RCC_LTDC_CLK_DISABLE() (RCC->APB3ENR) &= ~ (RCC_APB3ENR_LTDCEN) -#endif /* LTDC */ -#if defined(DSI) -#define __HAL_RCC_DSI_CLK_DISABLE() (RCC->APB3ENR) &= ~ (RCC_APB3ENR_DSIEN) -#endif /*DSI*/ -#define __HAL_RCC_WWDG1_CLK_DISABLE() (RCC->APB3ENR) &= ~ (RCC_APB3ENR_WWDG1EN) - -/** @brief Get the enable or disable status of the APB3 peripheral clock - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#if defined(LTDC) -#define __HAL_RCC_LTDC_IS_CLK_ENABLED() ((RCC->APB3ENR & RCC_APB3ENR_LTDCEN) != 0U) -#endif /* LTDC */ -#if defined(DSI) -#define __HAL_RCC_DSI_IS_CLK_ENABLED() ((RCC->APB3ENR & RCC_APB3ENR_DSIEN) != 0U) -#endif /*DSI*/ -#define __HAL_RCC_WWDG1_IS_CLK_ENABLED() ((RCC->APB3ENR & RCC_APB3ENR_WWDG1EN) != 0U) -#if defined(LTDC) -#define __HAL_RCC_LTDC_IS_CLK_DISABLED() ((RCC->APB3ENR & RCC_APB3ENR_LTDCEN) == 0U) -#endif /* LTDC */ -#if defined(DSI) -#define __HAL_RCC_DSI_IS_CLK_DISABLED() ((RCC->APB3ENR & RCC_APB3ENR_DSIEN) == 0U) -#endif /*DSI*/ -#define __HAL_RCC_WWDG1_IS_CLK_DISABLED() ((RCC->APB3ENR & RCC_APB3ENR_WWDG1EN) == 0U) - - -/** @brief Enable or disable the APB1 peripheral clock. - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#define __HAL_RCC_TIM2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1LENR, RCC_APB1LENR_TIM2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1LENR, RCC_APB1LENR_TIM2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_TIM3_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1LENR, RCC_APB1LENR_TIM3EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1LENR, RCC_APB1LENR_TIM3EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_TIM4_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1LENR, RCC_APB1LENR_TIM4EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1LENR, RCC_APB1LENR_TIM4EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_TIM5_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1LENR, RCC_APB1LENR_TIM5EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1LENR, RCC_APB1LENR_TIM5EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_TIM6_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1LENR, RCC_APB1LENR_TIM6EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1LENR, RCC_APB1LENR_TIM6EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_TIM7_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1LENR, RCC_APB1LENR_TIM7EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1LENR, RCC_APB1LENR_TIM7EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_TIM12_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1LENR, RCC_APB1LENR_TIM12EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1LENR, RCC_APB1LENR_TIM12EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_TIM13_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1LENR, RCC_APB1LENR_TIM13EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1LENR, RCC_APB1LENR_TIM13EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_TIM14_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1LENR, RCC_APB1LENR_TIM14EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1LENR, RCC_APB1LENR_TIM14EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_LPTIM1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1LENR, RCC_APB1LENR_LPTIM1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1LENR, RCC_APB1LENR_LPTIM1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#if defined(DUAL_CORE) -#define __HAL_RCC_WWDG2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1LENR, RCC_APB1LENR_WWDG2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1LENR, RCC_APB1LENR_WWDG2EN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /*DUAL_CORE*/ - -#define __HAL_RCC_SPI2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1LENR, RCC_APB1LENR_SPI2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1LENR, RCC_APB1LENR_SPI2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_SPI3_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1LENR, RCC_APB1LENR_SPI3EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1LENR, RCC_APB1LENR_SPI3EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_SPDIFRX_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1LENR, RCC_APB1LENR_SPDIFRXEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1LENR, RCC_APB1LENR_SPDIFRXEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_USART2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1LENR, RCC_APB1LENR_USART2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1LENR, RCC_APB1LENR_USART2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_USART3_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1LENR, RCC_APB1LENR_USART3EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1LENR, RCC_APB1LENR_USART3EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_UART4_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1LENR, RCC_APB1LENR_UART4EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1LENR, RCC_APB1LENR_UART4EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_UART5_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1LENR, RCC_APB1LENR_UART5EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1LENR, RCC_APB1LENR_UART5EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_I2C1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1LENR, RCC_APB1LENR_I2C1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1LENR, RCC_APB1LENR_I2C1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_I2C2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1LENR, RCC_APB1LENR_I2C2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1LENR, RCC_APB1LENR_I2C2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_I2C3_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1LENR, RCC_APB1LENR_I2C3EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1LENR, RCC_APB1LENR_I2C3EN);\ - UNUSED(tmpreg); \ - } while(0) - -#if defined(I2C5) -#define __HAL_RCC_I2C5_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1LENR, RCC_APB1LENR_I2C5EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1LENR, RCC_APB1LENR_I2C5EN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* I2C5 */ - -#define __HAL_RCC_CEC_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1LENR, RCC_APB1LENR_CECEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1LENR, RCC_APB1LENR_CECEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_DAC12_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1LENR, RCC_APB1LENR_DAC12EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1LENR, RCC_APB1LENR_DAC12EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_UART7_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1LENR, RCC_APB1LENR_UART7EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1LENR, RCC_APB1LENR_UART7EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_UART8_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1LENR, RCC_APB1LENR_UART8EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1LENR, RCC_APB1LENR_UART8EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_CRS_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1HENR, RCC_APB1HENR_CRSEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1HENR, RCC_APB1HENR_CRSEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_SWPMI1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1HENR, RCC_APB1HENR_SWPMIEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1HENR, RCC_APB1HENR_SWPMIEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_OPAMP_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1HENR, RCC_APB1HENR_OPAMPEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1HENR, RCC_APB1HENR_OPAMPEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_MDIOS_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1HENR, RCC_APB1HENR_MDIOSEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1HENR, RCC_APB1HENR_MDIOSEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_FDCAN_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1HENR, RCC_APB1HENR_FDCANEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1HENR, RCC_APB1HENR_FDCANEN);\ - UNUSED(tmpreg); \ - } while(0) - -#if defined(TIM23) -#define __HAL_RCC_TIM23_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1HENR, RCC_APB1HENR_TIM23EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1HENR, RCC_APB1HENR_TIM23EN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* TIM23 */ - -#if defined(TIM24) -#define __HAL_RCC_TIM24_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB1HENR, RCC_APB1HENR_TIM24EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB1HENR, RCC_APB1HENR_TIM24EN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* TIM24 */ - -#define __HAL_RCC_TIM2_CLK_DISABLE() (RCC->APB1LENR) &= ~ (RCC_APB1LENR_TIM2EN) -#define __HAL_RCC_TIM3_CLK_DISABLE() (RCC->APB1LENR) &= ~ (RCC_APB1LENR_TIM3EN) -#define __HAL_RCC_TIM4_CLK_DISABLE() (RCC->APB1LENR) &= ~ (RCC_APB1LENR_TIM4EN) -#define __HAL_RCC_TIM5_CLK_DISABLE() (RCC->APB1LENR) &= ~ (RCC_APB1LENR_TIM5EN) -#define __HAL_RCC_TIM6_CLK_DISABLE() (RCC->APB1LENR) &= ~ (RCC_APB1LENR_TIM6EN) -#define __HAL_RCC_TIM7_CLK_DISABLE() (RCC->APB1LENR) &= ~ (RCC_APB1LENR_TIM7EN) -#define __HAL_RCC_TIM12_CLK_DISABLE() (RCC->APB1LENR) &= ~ (RCC_APB1LENR_TIM12EN) -#define __HAL_RCC_TIM13_CLK_DISABLE() (RCC->APB1LENR) &= ~ (RCC_APB1LENR_TIM13EN) -#define __HAL_RCC_TIM14_CLK_DISABLE() (RCC->APB1LENR) &= ~ (RCC_APB1LENR_TIM14EN) -#define __HAL_RCC_LPTIM1_CLK_DISABLE() (RCC->APB1LENR) &= ~ (RCC_APB1LENR_LPTIM1EN) - -#if defined(DUAL_CORE) -#define __HAL_RCC_WWDG2_CLK_DISABLE() (RCC->APB1LENR) &= ~ (RCC_APB1LENR_WWDG2EN) -#endif /*DUAL_CORE*/ - -#define __HAL_RCC_SPI2_CLK_DISABLE() (RCC->APB1LENR) &= ~ (RCC_APB1LENR_SPI2EN) -#define __HAL_RCC_SPI3_CLK_DISABLE() (RCC->APB1LENR) &= ~ (RCC_APB1LENR_SPI3EN) -#define __HAL_RCC_SPDIFRX_CLK_DISABLE() (RCC->APB1LENR) &= ~ (RCC_APB1LENR_SPDIFRXEN) -#define __HAL_RCC_USART2_CLK_DISABLE() (RCC->APB1LENR) &= ~ (RCC_APB1LENR_USART2EN) -#define __HAL_RCC_USART3_CLK_DISABLE() (RCC->APB1LENR) &= ~ (RCC_APB1LENR_USART3EN) -#define __HAL_RCC_UART4_CLK_DISABLE() (RCC->APB1LENR) &= ~ (RCC_APB1LENR_UART4EN) -#define __HAL_RCC_UART5_CLK_DISABLE() (RCC->APB1LENR) &= ~ (RCC_APB1LENR_UART5EN) -#define __HAL_RCC_I2C1_CLK_DISABLE() (RCC->APB1LENR) &= ~ (RCC_APB1LENR_I2C1EN) -#define __HAL_RCC_I2C2_CLK_DISABLE() (RCC->APB1LENR) &= ~ (RCC_APB1LENR_I2C2EN) -#define __HAL_RCC_I2C3_CLK_DISABLE() (RCC->APB1LENR) &= ~ (RCC_APB1LENR_I2C3EN) -#if defined(I2C5) -#define __HAL_RCC_I2C5_CLK_DISABLE() (RCC->APB1LENR) &= ~ (RCC_APB1LENR_I2C5EN) -#endif /* I2C5 */ -#define __HAL_RCC_CEC_CLK_DISABLE() (RCC->APB1LENR) &= ~ (RCC_APB1LENR_CECEN) -#define __HAL_RCC_DAC12_CLK_DISABLE() (RCC->APB1LENR) &= ~ (RCC_APB1LENR_DAC12EN) -#define __HAL_RCC_UART7_CLK_DISABLE() (RCC->APB1LENR) &= ~ (RCC_APB1LENR_UART7EN) -#define __HAL_RCC_UART8_CLK_DISABLE() (RCC->APB1LENR) &= ~ (RCC_APB1LENR_UART8EN) -#define __HAL_RCC_CRS_CLK_DISABLE() (RCC->APB1HENR) &= ~ (RCC_APB1HENR_CRSEN) -#define __HAL_RCC_SWPMI1_CLK_DISABLE() (RCC->APB1HENR) &= ~ (RCC_APB1HENR_SWPMIEN) -#define __HAL_RCC_OPAMP_CLK_DISABLE() (RCC->APB1HENR) &= ~ (RCC_APB1HENR_OPAMPEN) -#define __HAL_RCC_MDIOS_CLK_DISABLE() (RCC->APB1HENR) &= ~ (RCC_APB1HENR_MDIOSEN) -#define __HAL_RCC_FDCAN_CLK_DISABLE() (RCC->APB1HENR) &= ~ (RCC_APB1HENR_FDCANEN) -#if defined(TIM23) -#define __HAL_RCC_TIM23_CLK_DISABLE() (RCC->APB1HENR) &= ~ (RCC_APB1HENR_TIM23EN) -#endif /* TIM23 */ -#if defined(TIM24) -#define __HAL_RCC_TIM24_CLK_DISABLE() (RCC->APB1HENR) &= ~ (RCC_APB1HENR_TIM24EN) -#endif /* TIM24 */ - - -/** @brief Get the enable or disable status of the APB1 peripheral clock - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#define __HAL_RCC_TIM2_IS_CLK_ENABLED() ((RCC->APB1LENR & RCC_APB1LENR_TIM2EN) != 0U) -#define __HAL_RCC_TIM3_IS_CLK_ENABLED() ((RCC->APB1LENR & RCC_APB1LENR_TIM3EN) != 0U) -#define __HAL_RCC_TIM4_IS_CLK_ENABLED() ((RCC->APB1LENR & RCC_APB1LENR_TIM4EN) != 0U) -#define __HAL_RCC_TIM5_IS_CLK_ENABLED() ((RCC->APB1LENR & RCC_APB1LENR_TIM5EN) != 0U) -#define __HAL_RCC_TIM6_IS_CLK_ENABLED() ((RCC->APB1LENR & RCC_APB1LENR_TIM6EN) != 0U) -#define __HAL_RCC_TIM7_IS_CLK_ENABLED() ((RCC->APB1LENR & RCC_APB1LENR_TIM7EN) != 0U) -#define __HAL_RCC_TIM12_IS_CLK_ENABLED() ((RCC->APB1LENR & RCC_APB1LENR_TIM12EN) != 0U) -#define __HAL_RCC_TIM13_IS_CLK_ENABLED() ((RCC->APB1LENR & RCC_APB1LENR_TIM13EN) != 0U) -#define __HAL_RCC_TIM14_IS_CLK_ENABLED() ((RCC->APB1LENR & RCC_APB1LENR_TIM14EN) != 0U) -#define __HAL_RCC_LPTIM1_IS_CLK_ENABLED() ((RCC->APB1LENR & RCC_APB1LENR_LPTIM1EN) != 0U) -#if defined(DUAL_CORE) -#define __HAL_RCC_WWDG2_IS_CLK_ENABLED() ((RCC->APB1LENR & RCC_APB1LENR_WWDG2EN) != 0U) -#endif /*DUAL_CORE*/ -#define __HAL_RCC_SPI2_IS_CLK_ENABLED() ((RCC->APB1LENR & RCC_APB1LENR_SPI2EN) != 0U) -#define __HAL_RCC_SPI3_IS_CLK_ENABLED() ((RCC->APB1LENR & RCC_APB1LENR_SPI3EN) != 0U) -#define __HAL_RCC_SPDIFRX_IS_CLK_ENABLED() ((RCC->APB1LENR & RCC_APB1LENR_SPDIFRXEN) != 0U) -#define __HAL_RCC_USART2_IS_CLK_ENABLED() ((RCC->APB1LENR & RCC_APB1LENR_USART2EN) != 0U) -#define __HAL_RCC_USART3_IS_CLK_ENABLED() ((RCC->APB1LENR & RCC_APB1LENR_USART3EN) != 0U) -#define __HAL_RCC_UART4_IS_CLK_ENABLED() ((RCC->APB1LENR & RCC_APB1LENR_UART4EN) != 0U) -#define __HAL_RCC_UART5_IS_CLK_ENABLED() ((RCC->APB1LENR & RCC_APB1LENR_UART5EN) != 0U) -#define __HAL_RCC_I2C1_IS_CLK_ENABLED() ((RCC->APB1LENR & RCC_APB1LENR_I2C1EN) != 0U) -#define __HAL_RCC_I2C2_IS_CLK_ENABLED() ((RCC->APB1LENR & RCC_APB1LENR_I2C2EN) != 0U) -#define __HAL_RCC_I2C3_IS_CLK_ENABLED() ((RCC->APB1LENR & RCC_APB1LENR_I2C3EN) != 0U) -#if defined(I2C5) -#define __HAL_RCC_I2C5_IS_CLK_ENABLED() ((RCC->APB1LENR & RCC_APB1LENR_I2C5EN) != 0U) -#endif /* I2C5 */ -#define __HAL_RCC_CEC_IS_CLK_ENABLED() ((RCC->APB1LENR & RCC_APB1LENR_CECEN) != 0U) -#define __HAL_RCC_DAC12_IS_CLK_ENABLED() ((RCC->APB1LENR & RCC_APB1LENR_DAC12EN) != 0U) -#define __HAL_RCC_UART7_IS_CLK_ENABLED() ((RCC->APB1LENR & RCC_APB1LENR_UART7EN) != 0U) -#define __HAL_RCC_UART8_IS_CLK_ENABLED() ((RCC->APB1LENR & RCC_APB1LENR_UART8EN) != 0U) -#define __HAL_RCC_CRS_IS_CLK_ENABLED() ((RCC->APB1HENR & RCC_APB1HENR_CRSEN) != 0U) -#define __HAL_RCC_SWPMI1_IS_CLK_ENABLED() ((RCC->APB1HENR & RCC_APB1HENR_SWPMIEN) != 0U) -#define __HAL_RCC_OPAMP_IS_CLK_ENABLED() ((RCC->APB1HENR & RCC_APB1HENR_OPAMPEN) != 0U) -#define __HAL_RCC_MDIOS_IS_CLK_ENABLED() ((RCC->APB1HENR & RCC_APB1HENR_MDIOSEN) != 0U) -#define __HAL_RCC_FDCAN_IS_CLK_ENABLED() ((RCC->APB1HENR & RCC_APB1HENR_FDCANEN) != 0U) -#if defined(TIM23) -#define __HAL_RCC_TIM23_IS_CLK_ENABLED() ((RCC->APB1HENR & RCC_APB1HENR_TIM23EN) != 0U) -#endif /* TIM23 */ -#if defined(TIM24) -#define __HAL_RCC_TIM24_IS_CLK_ENABLED() ((RCC->APB1HENR & RCC_APB1HENR_TIM24EN) != 0U) -#endif /* TIM24 */ - -#define __HAL_RCC_TIM2_IS_CLK_DISABLED() ((RCC->APB1LENR & RCC_APB1LENR_TIM2EN) == 0U) -#define __HAL_RCC_TIM3_IS_CLK_DISABLED() ((RCC->APB1LENR & RCC_APB1LENR_TIM3EN) == 0U) -#define __HAL_RCC_TIM4_IS_CLK_DISABLED() ((RCC->APB1LENR & RCC_APB1LENR_TIM4EN) == 0U) -#define __HAL_RCC_TIM5_IS_CLK_DISABLED() ((RCC->APB1LENR & RCC_APB1LENR_TIM5EN) == 0U) -#define __HAL_RCC_TIM6_IS_CLK_DISABLED() ((RCC->APB1LENR & RCC_APB1LENR_TIM6EN) == 0U) -#define __HAL_RCC_TIM7_IS_CLK_DISABLED() ((RCC->APB1LENR & RCC_APB1LENR_TIM7EN) == 0U) -#define __HAL_RCC_TIM12_IS_CLK_DISABLED() ((RCC->APB1LENR & RCC_APB1LENR_TIM12EN) == 0U) -#define __HAL_RCC_TIM13_IS_CLK_DISABLED() ((RCC->APB1LENR & RCC_APB1LENR_TIM13EN) == 0U) -#define __HAL_RCC_TIM14_IS_CLK_DISABLED() ((RCC->APB1LENR & RCC_APB1LENR_TIM14EN) == 0U) -#define __HAL_RCC_LPTIM1_IS_CLK_DISABLED() ((RCC->APB1LENR & RCC_APB1LENR_LPTIM1EN) == 0U) -#if defined(DUAL_CORE) -#define __HAL_RCC_WWDG2_IS_CLK_DISABLED() ((RCC->APB1LENR & RCC_APB1LENR_WWDG2EN) == 0U) -#endif /*DUAL_CORE*/ -#define __HAL_RCC_SPI2_IS_CLK_DISABLED() ((RCC->APB1LENR & RCC_APB1LENR_SPI2EN) == 0U) -#define __HAL_RCC_SPI3_IS_CLK_DISABLED() ((RCC->APB1LENR & RCC_APB1LENR_SPI3EN) == 0U) -#define __HAL_RCC_SPDIFRX_IS_CLK_DISABLED() ((RCC->APB1LENR & RCC_APB1LENR_SPDIFRXEN) == 0U) -#define __HAL_RCC_USART2_IS_CLK_DISABLED() ((RCC->APB1LENR & RCC_APB1LENR_USART2EN) == 0U) -#define __HAL_RCC_USART3_IS_CLK_DISABLED() ((RCC->APB1LENR & RCC_APB1LENR_USART3EN) == 0U) -#define __HAL_RCC_UART4_IS_CLK_DISABLED() ((RCC->APB1LENR & RCC_APB1LENR_UART4EN) == 0U) -#define __HAL_RCC_UART5_IS_CLK_DISABLED() ((RCC->APB1LENR & RCC_APB1LENR_UART5EN) == 0U) -#define __HAL_RCC_I2C1_IS_CLK_DISABLED() ((RCC->APB1LENR & RCC_APB1LENR_I2C1EN) == 0U) -#define __HAL_RCC_I2C2_IS_CLK_DISABLED() ((RCC->APB1LENR & RCC_APB1LENR_I2C2EN) == 0U) -#define __HAL_RCC_I2C3_IS_CLK_DISABLED() ((RCC->APB1LENR & RCC_APB1LENR_I2C3EN) == 0U) -#if defined(I2C5) -#define __HAL_RCC_I2C5_IS_CLK_DISABLED() ((RCC->APB1LENR & RCC_APB1LENR_I2C5EN) == 0U) -#endif /* I2C5 */ -#define __HAL_RCC_CEC_IS_CLK_DISABLED() ((RCC->APB1LENR & RCC_APB1LENR_CECEN) == 0U) -#define __HAL_RCC_DAC12_IS_CLK_DISABLED() ((RCC->APB1LENR & RCC_APB1LENR_DAC12EN) == 0U) -#define __HAL_RCC_UART7_IS_CLK_DISABLED() ((RCC->APB1LENR & RCC_APB1LENR_UART7EN) == 0U) -#define __HAL_RCC_UART8_IS_CLK_DISABLED() ((RCC->APB1LENR & RCC_APB1LENR_UART8EN) == 0U) -#define __HAL_RCC_CRS_IS_CLK_DISABLED() ((RCC->APB1HENR & RCC_APB1HENR_CRSEN) == 0U) -#define __HAL_RCC_SWPMI1_IS_CLK_DISABLED() ((RCC->APB1HENR & RCC_APB1HENR_SWPMIEN) == 0U) -#define __HAL_RCC_OPAMP_IS_CLK_DISABLED() ((RCC->APB1HENR & RCC_APB1HENR_OPAMPEN) == 0U) -#define __HAL_RCC_MDIOS_IS_CLK_DISABLED() ((RCC->APB1HENR & RCC_APB1HENR_MDIOSEN) == 0U) -#define __HAL_RCC_FDCAN_IS_CLK_DISABLED() ((RCC->APB1HENR & RCC_APB1HENR_FDCANEN) == 0U) -#if defined(TIM23) -#define __HAL_RCC_TIM23_IS_CLK_DISABLED() ((RCC->APB1HENR & RCC_APB1HENR_TIM23EN) == 0U) -#endif /* TIM23 */ -#if defined(TIM24) -#define __HAL_RCC_TIM24_IS_CLK_DISABLED() ((RCC->APB1HENR & RCC_APB1HENR_TIM24EN) == 0U) -#endif /* TIM24 */ - - -/** @brief Enable or disable the APB2 peripheral clock. - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#define __HAL_RCC_TIM1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_TIM8_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM8EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM8EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_USART1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB2ENR, RCC_APB2ENR_USART1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_USART1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_USART6_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB2ENR, RCC_APB2ENR_USART6EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_USART6EN);\ - UNUSED(tmpreg); \ - } while(0) - -#if defined(UART9) -#define __HAL_RCC_UART9_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB2ENR, RCC_APB2ENR_UART9EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_UART9EN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /*UART9*/ - -#if defined(USART10) -#define __HAL_RCC_USART10_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB2ENR, RCC_APB2ENR_USART10EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_USART10EN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /*USART10*/ - -#define __HAL_RCC_SPI1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_SPI4_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI4EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI4EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_TIM15_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM15EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM15EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_TIM16_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM16EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM16EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_TIM17_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM17EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM17EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_SPI5_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI5EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SPI5EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_SAI1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SAI1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SAI1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#if defined(SAI2) -#define __HAL_RCC_SAI2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SAI2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SAI2EN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /*SAI2*/ - -#if defined(SAI3) -#define __HAL_RCC_SAI3_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SAI3EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SAI3EN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /*SAI3*/ - -#define __HAL_RCC_DFSDM1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB2ENR, RCC_APB2ENR_DFSDM1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_DFSDM1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#if defined(HRTIM1) -#define __HAL_RCC_HRTIM1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB2ENR, RCC_APB2ENR_HRTIMEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_HRTIMEN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /*HRTIM1*/ - -#define __HAL_RCC_TIM1_CLK_DISABLE() (RCC->APB2ENR) &= ~ (RCC_APB2ENR_TIM1EN) -#define __HAL_RCC_TIM8_CLK_DISABLE() (RCC->APB2ENR) &= ~ (RCC_APB2ENR_TIM8EN) -#define __HAL_RCC_USART1_CLK_DISABLE() (RCC->APB2ENR) &= ~ (RCC_APB2ENR_USART1EN) -#define __HAL_RCC_USART6_CLK_DISABLE() (RCC->APB2ENR) &= ~ (RCC_APB2ENR_USART6EN) -#if defined(UART9) -#define __HAL_RCC_UART9_CLK_DISABLE() (RCC->APB2ENR) &= ~ (RCC_APB2ENR_UART9EN) -#endif /*UART9*/ -#if defined(USART10) -#define __HAL_RCC_USART10_CLK_DISABLE() (RCC->APB2ENR) &= ~ (RCC_APB2ENR_USART10EN) -#endif /*USART10*/ -#define __HAL_RCC_SPI1_CLK_DISABLE() (RCC->APB2ENR) &= ~ (RCC_APB2ENR_SPI1EN) -#define __HAL_RCC_SPI4_CLK_DISABLE() (RCC->APB2ENR) &= ~ (RCC_APB2ENR_SPI4EN) -#define __HAL_RCC_TIM15_CLK_DISABLE() (RCC->APB2ENR) &= ~ (RCC_APB2ENR_TIM15EN) -#define __HAL_RCC_TIM16_CLK_DISABLE() (RCC->APB2ENR) &= ~ (RCC_APB2ENR_TIM16EN) -#define __HAL_RCC_TIM17_CLK_DISABLE() (RCC->APB2ENR) &= ~ (RCC_APB2ENR_TIM17EN) -#define __HAL_RCC_SPI5_CLK_DISABLE() (RCC->APB2ENR) &= ~ (RCC_APB2ENR_SPI5EN) -#define __HAL_RCC_SAI1_CLK_DISABLE() (RCC->APB2ENR) &= ~ (RCC_APB2ENR_SAI1EN) -#if defined(SAI2) -#define __HAL_RCC_SAI2_CLK_DISABLE() (RCC->APB2ENR) &= ~ (RCC_APB2ENR_SAI2EN) -#endif /*SAI2*/ -#if defined(SAI3) -#define __HAL_RCC_SAI3_CLK_DISABLE() (RCC->APB2ENR) &= ~ (RCC_APB2ENR_SAI3EN) -#endif /*SAI3*/ -#define __HAL_RCC_DFSDM1_CLK_DISABLE() (RCC->APB2ENR) &= ~ (RCC_APB2ENR_DFSDM1EN) -#if defined(HRTIM1) -#define __HAL_RCC_HRTIM1_CLK_DISABLE() (RCC->APB2ENR) &= ~ (RCC_APB2ENR_HRTIMEN) -#endif /*HRTIM*/ - -/** @brief Get the enable or disable status of the APB2 peripheral clock - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#define __HAL_RCC_TIM1_IS_CLK_ENABLED() ((RCC->APB2ENR & RCC_APB2ENR_TIM1EN) != 0U) -#define __HAL_RCC_TIM8_IS_CLK_ENABLED() ((RCC->APB2ENR & RCC_APB2ENR_TIM8EN) != 0U) -#define __HAL_RCC_USART1_IS_CLK_ENABLED() ((RCC->APB2ENR & RCC_APB2ENR_USART1EN) != 0U) -#define __HAL_RCC_USART6_IS_CLK_ENABLED() ((RCC->APB2ENR & RCC_APB2ENR_USART6EN) != 0U) -#if defined(UART9) -#define __HAL_RCC_UART9_IS_CLK_ENABLED() ((RCC->APB2ENR & RCC_APB2ENR_UART9EN) != 0U) -#endif /*UART9*/ -#if defined(USART10) -#define __HAL_RCC_USART10_IS_CLK_ENABLED() ((RCC->APB2ENR & RCC_APB2ENR_USART10EN) != 0U) -#endif /*USART10*/ -#define __HAL_RCC_SPI1_IS_CLK_ENABLED() ((RCC->APB2ENR & RCC_APB2ENR_SPI1EN) != 0U) -#define __HAL_RCC_SPI4_IS_CLK_ENABLED() ((RCC->APB2ENR & RCC_APB2ENR_SPI4EN) != 0U) -#define __HAL_RCC_TIM15_IS_CLK_ENABLED() ((RCC->APB2ENR & RCC_APB2ENR_TIM15EN) != 0U) -#define __HAL_RCC_TIM16_IS_CLK_ENABLED() ((RCC->APB2ENR & RCC_APB2ENR_TIM16EN) != 0U) -#define __HAL_RCC_TIM17_IS_CLK_ENABLED() ((RCC->APB2ENR & RCC_APB2ENR_TIM17EN) != 0U) -#define __HAL_RCC_SPI5_IS_CLK_ENABLED() ((RCC->APB2ENR & RCC_APB2ENR_SPI5EN) != 0U) -#define __HAL_RCC_SAI1_IS_CLK_ENABLED() ((RCC->APB2ENR & RCC_APB2ENR_SAI1EN) != 0U) -#if defined(SAI2) -#define __HAL_RCC_SAI2_IS_CLK_ENABLED() ((RCC->APB2ENR & RCC_APB2ENR_SAI2EN) != 0U) -#endif /*SAI2*/ -#if defined(SAI3) -#define __HAL_RCC_SAI3_IS_CLK_ENABLED() ((RCC->APB2ENR & RCC_APB2ENR_SAI3EN) != 0U) -#endif /* SAI3 */ -#define __HAL_RCC_DFSDM1_IS_CLK_ENABLED() ((RCC->APB2ENR & RCC_APB2ENR_DFSDM1EN) != 0U) -#if defined(HRTIM1) -#define __HAL_RCC_HRTIM1_IS_CLK_ENABLED() ((RCC->APB2ENR & RCC_APB2ENR_HRTIMEN) != 0U) -#endif /*HRTIM1*/ - -#define __HAL_RCC_TIM1_IS_CLK_DISABLED() ((RCC->APB2ENR & RCC_APB2ENR_TIM1EN) == 0U) -#define __HAL_RCC_TIM8_IS_CLK_DISABLED() ((RCC->APB2ENR & RCC_APB2ENR_TIM8EN) == 0U) -#define __HAL_RCC_USART1_IS_CLK_DISABLED() ((RCC->APB2ENR & RCC_APB2ENR_USART1EN) == 0U) -#define __HAL_RCC_USART6_IS_CLK_DISABLED() ((RCC->APB2ENR & RCC_APB2ENR_USART6EN) == 0U) -#if defined(UART9) -#define __HAL_RCC_UART9_IS_CLK_DISABLED() ((RCC->APB2ENR & RCC_APB2ENR_UART9EN) == 0U) -#endif /*UART9*/ -#if defined(USART10) -#define __HAL_RCC_USART10_IS_CLK_DISABLED() ((RCC->APB2ENR & RCC_APB2ENR_USART10EN) == 0U) -#endif /*USART10*/ -#define __HAL_RCC_SPI1_IS_CLK_DISABLED() ((RCC->APB2ENR & RCC_APB2ENR_SPI1EN) == 0U) -#define __HAL_RCC_SPI4_IS_CLK_DISABLED() ((RCC->APB2ENR & RCC_APB2ENR_SPI4EN) == 0U) -#define __HAL_RCC_TIM15_IS_CLK_DISABLED() ((RCC->APB2ENR & RCC_APB2ENR_TIM15EN) == 0U) -#define __HAL_RCC_TIM16_IS_CLK_DISABLED() ((RCC->APB2ENR & RCC_APB2ENR_TIM16EN) == 0U) -#define __HAL_RCC_TIM17_IS_CLK_DISABLED() ((RCC->APB2ENR & RCC_APB2ENR_TIM17EN) == 0U) -#define __HAL_RCC_SPI5_IS_CLK_DISABLED() ((RCC->APB2ENR & RCC_APB2ENR_SPI5EN) == 0U) -#define __HAL_RCC_SAI1_IS_CLK_DISABLED() ((RCC->APB2ENR & RCC_APB2ENR_SAI1EN) == 0U) -#if defined(SAI2) -#define __HAL_RCC_SAI2_IS_CLK_DISABLED() ((RCC->APB2ENR & RCC_APB2ENR_SAI2EN) == 0U) -#endif /*SAI2*/ -#if defined(SAI3) -#define __HAL_RCC_SAI3_IS_CLK_DISABLED() ((RCC->APB2ENR & RCC_APB2ENR_SAI3EN) == 0U) -#endif /*SAI3*/ -#define __HAL_RCC_DFSDM1_IS_CLK_DISABLED() ((RCC->APB2ENR & RCC_APB2ENR_DFSDM1EN) == 0U) -#if defined(HRTIM1) -#define __HAL_RCC_HRTIM1_IS_CLK_DISABLED() ((RCC->APB2ENR & RCC_APB2ENR_HRTIMEN) == 0U) -#endif /*HRTIM1*/ - -/** @brief Enable or disable the APB4 peripheral clock. - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#define __HAL_RCC_SYSCFG_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB4ENR, RCC_APB4ENR_SYSCFGEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB4ENR, RCC_APB4ENR_SYSCFGEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_LPUART1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB4ENR, RCC_APB4ENR_LPUART1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB4ENR, RCC_APB4ENR_LPUART1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_SPI6_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB4ENR, RCC_APB4ENR_SPI6EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB4ENR, RCC_APB4ENR_SPI6EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_I2C4_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB4ENR, RCC_APB4ENR_I2C4EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB4ENR, RCC_APB4ENR_I2C4EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_LPTIM2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB4ENR, RCC_APB4ENR_LPTIM2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB4ENR, RCC_APB4ENR_LPTIM2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_LPTIM3_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB4ENR, RCC_APB4ENR_LPTIM3EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB4ENR, RCC_APB4ENR_LPTIM3EN);\ - UNUSED(tmpreg); \ - } while(0) - -#if defined(LPTIM4) -#define __HAL_RCC_LPTIM4_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB4ENR, RCC_APB4ENR_LPTIM4EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB4ENR, RCC_APB4ENR_LPTIM4EN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* LPTIM4 */ - -#if defined(LPTIM5) -#define __HAL_RCC_LPTIM5_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB4ENR, RCC_APB4ENR_LPTIM5EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB4ENR, RCC_APB4ENR_LPTIM5EN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* LPTIM5 */ - -#if defined(DAC2) -#define __HAL_RCC_DAC2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB4ENR, RCC_APB4ENR_DAC2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB4ENR, RCC_APB4ENR_DAC2EN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* DAC2 */ - -#define __HAL_RCC_COMP12_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB4ENR, RCC_APB4ENR_COMP12EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB4ENR, RCC_APB4ENR_COMP12EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_VREF_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB4ENR, RCC_APB4ENR_VREFEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB4ENR, RCC_APB4ENR_VREFEN);\ - UNUSED(tmpreg); \ - } while(0) - -#if defined(SAI4) -#define __HAL_RCC_SAI4_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB4ENR, RCC_APB4ENR_SAI4EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB4ENR, RCC_APB4ENR_SAI4EN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* SAI4 */ - -#define __HAL_RCC_RTC_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB4ENR, RCC_APB4ENR_RTCAPBEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB4ENR, RCC_APB4ENR_RTCAPBEN);\ - UNUSED(tmpreg); \ - } while(0) - -#if defined(DTS) -#define __HAL_RCC_DTS_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB4ENR, RCC_APB4ENR_DTSEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB4ENR, RCC_APB4ENR_DTSEN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /*DTS*/ - -#if defined(DFSDM2_BASE) -#define __HAL_RCC_DFSDM2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC->APB4ENR, RCC_APB4ENR_DFSDM2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC->APB4ENR, RCC_APB4ENR_DFSDM2EN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /*DFSDM2*/ - -#define __HAL_RCC_SYSCFG_CLK_DISABLE() (RCC->APB4ENR) &= ~ (RCC_APB4ENR_SYSCFGEN) -#define __HAL_RCC_LPUART1_CLK_DISABLE() (RCC->APB4ENR) &= ~ (RCC_APB4ENR_LPUART1EN) -#define __HAL_RCC_SPI6_CLK_DISABLE() (RCC->APB4ENR) &= ~ (RCC_APB4ENR_SPI6EN) -#define __HAL_RCC_I2C4_CLK_DISABLE() (RCC->APB4ENR) &= ~ (RCC_APB4ENR_I2C4EN) -#define __HAL_RCC_LPTIM2_CLK_DISABLE() (RCC->APB4ENR) &= ~ (RCC_APB4ENR_LPTIM2EN) -#define __HAL_RCC_LPTIM3_CLK_DISABLE() (RCC->APB4ENR) &= ~ (RCC_APB4ENR_LPTIM3EN) -#if defined(LPTIM4) -#define __HAL_RCC_LPTIM4_CLK_DISABLE() (RCC->APB4ENR) &= ~ (RCC_APB4ENR_LPTIM4EN) -#endif /*LPTIM4*/ -#if defined(LPTIM5) -#define __HAL_RCC_LPTIM5_CLK_DISABLE() (RCC->APB4ENR) &= ~ (RCC_APB4ENR_LPTIM5EN) -#endif /*LPTIM5*/ -#if defined(DAC2) -#define __HAL_RCC_DAC2_CLK_DISABLE() (RCC->APB4ENR) &= ~ (RCC_APB4ENR_DAC2EN) -#endif /*DAC2*/ -#define __HAL_RCC_COMP12_CLK_DISABLE() (RCC->APB4ENR) &= ~ (RCC_APB4ENR_COMP12EN) -#define __HAL_RCC_VREF_CLK_DISABLE() (RCC->APB4ENR) &= ~ (RCC_APB4ENR_VREFEN) -#define __HAL_RCC_RTC_CLK_DISABLE() (RCC->APB4ENR) &= ~ (RCC_APB4ENR_RTCAPBEN) -#if defined(SAI4) -#define __HAL_RCC_SAI4_CLK_DISABLE() (RCC->APB4ENR) &= ~ (RCC_APB4ENR_SAI4EN) -#endif /*SAI4*/ -#if defined(DTS) -#define __HAL_RCC_DTS_CLK_DISABLE() (RCC->APB4ENR) &= ~ (RCC_APB4ENR_DTSEN) -#endif /*DTS*/ -#if defined(DFSDM2_BASE) -#define __HAL_RCC_DFSDM2_CLK_DISABLE() (RCC->APB4ENR) &= ~ (RCC_APB4ENR_DFSDM2EN) -#endif /*DFSDM2*/ - -/** @brief Get the enable or disable status of the APB4 peripheral clock - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#define __HAL_RCC_SYSCFG_IS_CLK_ENABLED() ((RCC->APB4ENR & RCC_APB4ENR_SYSCFGEN) != 0U) -#define __HAL_RCC_LPUART1_IS_CLK_ENABLED() ((RCC->APB4ENR & RCC_APB4ENR_LPUART1EN) != 0U) -#define __HAL_RCC_SPI6_IS_CLK_ENABLED() ((RCC->APB4ENR & RCC_APB4ENR_SPI6EN) != 0U) -#define __HAL_RCC_I2C4_IS_CLK_ENABLED() ((RCC->APB4ENR & RCC_APB4ENR_I2C4EN) != 0U) -#define __HAL_RCC_LPTIM2_IS_CLK_ENABLED() ((RCC->APB4ENR & RCC_APB4ENR_LPTIM2EN) != 0U) -#define __HAL_RCC_LPTIM3_IS_CLK_ENABLED() ((RCC->APB4ENR & RCC_APB4ENR_LPTIM3EN) != 0U) -#if defined(LPTIM4) -#define __HAL_RCC_LPTIM4_IS_CLK_ENABLED() ((RCC->APB4ENR & RCC_APB4ENR_LPTIM4EN) != 0U) -#endif /*LPTIM4*/ -#if defined(LPTIM5) -#define __HAL_RCC_LPTIM5_IS_CLK_ENABLED() ((RCC->APB4ENR & RCC_APB4ENR_LPTIM5EN) != 0U) -#endif /*LPTIM5*/ -#if defined(DAC2) -#define __HAL_RCC_DAC2_IS_CLK_ENABLED() ((RCC->APB4ENR & RCC_APB4ENR_DAC2EN) != 0U) -#endif /*DAC2*/ -#define __HAL_RCC_COMP12_IS_CLK_ENABLED() ((RCC->APB4ENR & RCC_APB4ENR_COMP12EN) != 0U) -#define __HAL_RCC_VREF_IS_CLK_ENABLED() ((RCC->APB4ENR & RCC_APB4ENR_VREFEN) != 0U) -#define __HAL_RCC_RTC_IS_CLK_ENABLED() ((RCC->APB4ENR & RCC_APB4ENR_RTCAPBEN) != 0U) -#if defined(SAI4) -#define __HAL_RCC_SAI4_IS_CLK_ENABLED() ((RCC->APB4ENR & RCC_APB4ENR_SAI4EN) != 0U) -#endif /*SAI4*/ -#if defined(DTS) -#define __HAL_RCC_DTS_IS_CLK_ENABLED() ((RCC->APB4ENR & RCC_APB4ENR_DTSEN) != 0U) -#endif /*DTS*/ -#if defined(DFSDM2_BASE) -#define __HAL_RCC_DFSDM2_IS_CLK_ENABLED() ((RCC->APB4ENR & RCC_APB4ENR_DFSDM2EN) != 0U) -#endif /*DFSDM2*/ - -#define __HAL_RCC_SYSCFG_IS_CLK_DISABLED() ((RCC->APB4ENR & RCC_APB4ENR_SYSCFGEN) == 0U) -#define __HAL_RCC_LPUART1_IS_CLK_DISABLED() ((RCC->APB4ENR & RCC_APB4ENR_LPUART1EN) == 0U) -#define __HAL_RCC_SPI6_IS_CLK_DISABLED() ((RCC->APB4ENR & RCC_APB4ENR_SPI6EN) == 0U) -#define __HAL_RCC_I2C4_IS_CLK_DISABLED() ((RCC->APB4ENR & RCC_APB4ENR_I2C4EN) == 0U) -#define __HAL_RCC_LPTIM2_IS_CLK_DISABLED() ((RCC->APB4ENR & RCC_APB4ENR_LPTIM2EN) == 0U) -#define __HAL_RCC_LPTIM3_IS_CLK_DISABLED() ((RCC->APB4ENR & RCC_APB4ENR_LPTIM3EN) == 0U) -#if defined(LPTIM4) -#define __HAL_RCC_LPTIM4_IS_CLK_DISABLED() ((RCC->APB4ENR & RCC_APB4ENR_LPTIM4EN) == 0U) -#endif /*LPTIM4*/ -#if defined(LPTIM5) -#define __HAL_RCC_LPTIM5_IS_CLK_DISABLED() ((RCC->APB4ENR & RCC_APB4ENR_LPTIM5EN) == 0U) -#endif /*LPTIM5*/ -#if defined(DAC2) -#define __HAL_RCC_DAC2_IS_CLK_DISABLED() ((RCC->APB4ENR & RCC_APB4ENR_DAC2EN) == 0U) -#endif /*DAC2*/ -#define __HAL_RCC_COMP12_IS_CLK_DISABLED() ((RCC->APB4ENR & RCC_APB4ENR_COMP12EN) == 0U) -#define __HAL_RCC_VREF_IS_CLK_DISABLED() ((RCC->APB4ENR & RCC_APB4ENR_VREFEN) == 0U) -#define __HAL_RCC_RTC_IS_CLK_DISABLED() ((RCC->APB4ENR & RCC_APB4ENR_RTCAPBEN) == 0U) -#if defined(SAI4) -#define __HAL_RCC_SAI4_IS_CLK_DISABLED() ((RCC->APB4ENR & RCC_APB4ENR_SAI4EN) == 0U) -#endif /*SAI4*/ -#if defined(DTS) -#define __HAL_RCC_DTS_IS_CLK_DISABLED() ((RCC->APB4ENR & RCC_APB4ENR_DTSEN) == 0U) -#endif /*DTS*/ -#if defined(DFSDM2_BASE) -#define __HAL_RCC_DFSDM2_IS_CLK_DISABLED() ((RCC->APB4ENR & RCC_APB4ENR_DFSDM2EN) == 0U) -#endif /*DFSDM2*/ - -#if defined(DUAL_CORE) - -/* Exported macros for RCC_C1 -------------------------------------------------*/ - -/** @brief Enable or disable the AHB3 peripheral clock. - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#define __HAL_RCC_C1_MDMA_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB3ENR, RCC_AHB3ENR_MDMAEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB3ENR, RCC_AHB3ENR_MDMAEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_DMA2D_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB3ENR, RCC_AHB3ENR_DMA2DEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB3ENR, RCC_AHB3ENR_DMA2DEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_JPGDECEN_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB3ENR, RCC_AHB3ENR_JPGDECEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB3ENR, RCC_AHB3ENR_JPGDECEN);\ - UNUSED(tmpreg); \ - } while(0) - - -#define __HAL_RCC_C1_FMC_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB3ENR, RCC_AHB3ENR_FMCEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB3ENR, RCC_AHB3ENR_FMCEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_QSPI_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB3ENR, RCC_AHB3ENR_QSPIEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB3ENR, RCC_AHB3ENR_QSPIEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_SDMMC1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB3ENR, RCC_AHB3ENR_SDMMC1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB3ENR, RCC_AHB3ENR_SDMMC1EN);\ - UNUSED(tmpreg); \ - } while(0) - - - - -#define __HAL_RCC_C1_MDMA_CLK_DISABLE() (RCC_C1->AHB3ENR &= ~ (RCC_AHB3ENR_MDMAEN)) -#define __HAL_RCC_C1_DMA2D_CLK_DISABLE() (RCC_C1->AHB3ENR &= ~ (RCC_AHB3ENR_DMA2DEN)) -#define __HAL_RCC_C1_JPGDECEN_CLK_DISABLE() (RCC_C1->AHB3ENR &= ~ (RCC_AHB3ENR_JPGDECEN)) -#define __HAL_RCC_C1_FMC_CLK_DISABLE() (RCC_C1->AHB3ENR &= ~ (RCC_AHB3ENR_FMCEN)) -#define __HAL_RCC_C1_QSPI_CLK_DISABLE() (RCC_C1->AHB3ENR &= ~ (RCC_AHB3ENR_QSPIEN)) -#define __HAL_RCC_C1_SDMMC1_CLK_DISABLE() (RCC_C1->AHB3ENR &= ~ (RCC_AHB3ENR_SDMMC1EN)) - - - - -/** @brief Enable or disable the AHB1 peripheral clock. - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#define __HAL_RCC_C1_DMA1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB1ENR, RCC_AHB1ENR_DMA1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB1ENR, RCC_AHB1ENR_DMA1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_DMA2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB1ENR, RCC_AHB1ENR_DMA2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB1ENR, RCC_AHB1ENR_DMA2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_ADC12_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB1ENR, RCC_AHB1ENR_ADC12EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB1ENR, RCC_AHB1ENR_ADC12EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_ART_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB1ENR, RCC_AHB1ENR_ARTEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB1ENR, RCC_AHB1ENR_ARTEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_ETH1MAC_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB1ENR, RCC_AHB1ENR_ETH1MACEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB1ENR, RCC_AHB1ENR_ETH1MACEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_ETH1TX_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB1ENR, RCC_AHB1ENR_ETH1TXEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB1ENR, RCC_AHB1ENR_ETH1TXEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_ETH1RX_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB1ENR, RCC_AHB1ENR_ETH1RXEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB1ENR, RCC_AHB1ENR_ETH1RXEN);\ - UNUSED(tmpreg); \ - } while(0) - - -#define __HAL_RCC_C1_USB1_OTG_HS_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB1ENR, RCC_AHB1ENR_USB1OTGHSEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB1ENR, RCC_AHB1ENR_USB1OTGHSEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_USB1_OTG_HS_ULPI_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB1ENR, RCC_AHB1ENR_USB1OTGHSULPIEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB1ENR, RCC_AHB1ENR_USB1OTGHSULPIEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_USB2_OTG_FS_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB1ENR, RCC_AHB1ENR_USB2OTGHSEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB1ENR, RCC_AHB1ENR_USB2OTGHSEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_USB2_OTG_FS_ULPI_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB1ENR, RCC_AHB1ENR_USB2OTGHSULPIEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB1ENR, RCC_AHB1ENR_USB2OTGHSULPIEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_DMA1_CLK_DISABLE() (RCC_C1->AHB1ENR &= ~ (RCC_AHB1ENR_DMA1EN)) -#define __HAL_RCC_C1_DMA2_CLK_DISABLE() (RCC_C1->AHB1ENR &= ~ (RCC_AHB1ENR_DMA2EN)) -#define __HAL_RCC_C1_ADC12_CLK_DISABLE() (RCC_C1->AHB1ENR &= ~ (RCC_AHB1ENR_ADC12EN)) -#define __HAL_RCC_C1_ART_CLK_DISABLE() (RCC_C1->AHB1ENR &= ~ (RCC_AHB1ENR_ARTEN)) -#define __HAL_RCC_C1_ETH1MAC_CLK_DISABLE() (RCC_C1->AHB1ENR &= ~ (RCC_AHB1ENR_ETH1MACEN)) -#define __HAL_RCC_C1_ETH1TX_CLK_DISABLE() (RCC_C1->AHB1ENR &= ~ (RCC_AHB1ENR_ETH1TXEN)) -#define __HAL_RCC_C1_ETH1RX_CLK_DISABLE() (RCC_C1->AHB1ENR &= ~ (RCC_AHB1ENR_ETH1RXEN)) -#define __HAL_RCC_C1_USB1_OTG_HS_CLK_DISABLE() (RCC_C1->AHB1ENR &= ~ (RCC_AHB1ENR_USB1OTGHSEN)) -#define __HAL_RCC_C1_USB1_OTG_HS_ULPI_CLK_DISABLE() (RCC_C1->AHB1ENR &= ~ (RCC_AHB1ENR_USB1OTGHSULPIEN)) -#define __HAL_RCC_C1_USB2_OTG_FS_CLK_DISABLE() (RCC_C1->AHB1ENR &= ~ (RCC_AHB1ENR_USB2OTGHSEN)) -#define __HAL_RCC_C1_USB2_OTG_FS_ULPI_CLK_DISABLE() (RCC_C1->AHB1ENR &= ~ (RCC_AHB1ENR_USB2OTGHSULPIEN)) - -/** @brief Enable or disable the AHB2 peripheral clock. - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#define __HAL_RCC_C1_DCMI_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB2ENR, RCC_AHB2ENR_DCMIEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB2ENR, RCC_AHB2ENR_DCMIEN);\ - UNUSED(tmpreg); \ - } while(0) -#if defined(CRYP) -#define __HAL_RCC_C1_CRYP_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB2ENR, RCC_AHB2ENR_CRYPEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB2ENR, RCC_AHB2ENR_CRYPEN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* CRYP */ - -#if defined(HASH) -#define __HAL_RCC_C1_HASH_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB2ENR, RCC_AHB2ENR_HASHEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB2ENR, RCC_AHB2ENR_HASHEN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* HASH */ - -#define __HAL_RCC_C1_RNG_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB2ENR, RCC_AHB2ENR_RNGEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB2ENR, RCC_AHB2ENR_RNGEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_SDMMC2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB2ENR, RCC_AHB2ENR_SDMMC2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB2ENR, RCC_AHB2ENR_SDMMC2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_D2SRAM1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB2ENR, RCC_AHB2ENR_D2SRAM1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB2ENR, RCC_AHB2ENR_D2SRAM1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_D2SRAM2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB2ENR, RCC_AHB2ENR_D2SRAM2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB2ENR, RCC_AHB2ENR_D2SRAM2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_D2SRAM3_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB2ENR, RCC_AHB2ENR_D2SRAM3EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB2ENR, RCC_AHB2ENR_D2SRAM3EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_DCMI_CLK_DISABLE() (RCC_C1->AHB2ENR &= ~ (RCC_AHB2ENR_DCMIEN)) -#if defined(CRYP) -#define __HAL_RCC_C1_CRYP_CLK_DISABLE() (RCC_C1->AHB2ENR &= ~ (RCC_AHB2ENR_CRYPEN)) -#endif /* CRYP */ -#if defined(HASH) -#define __HAL_RCC_C1_HASH_CLK_DISABLE() (RCC_C1->AHB2ENR &= ~ (RCC_AHB2ENR_HASHEN)) -#endif /* HASH */ -#define __HAL_RCC_C1_RNG_CLK_DISABLE() (RCC_C1->AHB2ENR &= ~ (RCC_AHB2ENR_RNGEN)) -#define __HAL_RCC_C1_SDMMC2_CLK_DISABLE() (RCC_C1->AHB2ENR &= ~ (RCC_AHB2ENR_SDMMC2EN)) -#define __HAL_RCC_C1_D2SRAM1_CLK_DISABLE() (RCC_C1->AHB2ENR &= ~ (RCC_AHB2ENR_D2SRAM1EN)) -#define __HAL_RCC_C1_D2SRAM2_CLK_DISABLE() (RCC_C1->AHB2ENR &= ~ (RCC_AHB2ENR_D2SRAM2EN)) -#define __HAL_RCC_C1_D2SRAM3_CLK_DISABLE() (RCC_C1->AHB2ENR &= ~ (RCC_AHB2ENR_D2SRAM3EN)) - -/** @brief Enable or disable the AHB4 peripheral clock. - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#define __HAL_RCC_C1_GPIOA_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_GPIOAEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_GPIOAEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_GPIOB_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_GPIOBEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_GPIOBEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_GPIOC_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_GPIOCEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_GPIOCEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_GPIOD_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_GPIODEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_GPIODEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_GPIOE_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_GPIOEEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_GPIOEEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_GPIOF_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_GPIOFEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_GPIOFEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_GPIOG_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_GPIOGEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_GPIOGEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_GPIOH_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_GPIOHEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_GPIOHEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_GPIOI_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_GPIOIEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_GPIOIEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_GPIOJ_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_GPIOJEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_GPIOJEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_GPIOK_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_GPIOKEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_GPIOKEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_CRC_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_CRCEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_CRCEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_BDMA_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_BDMAEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_BDMAEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_ADC3_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_ADC3EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_ADC3EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_HSEM_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_HSEMEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_HSEMEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_BKPRAM_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_BKPRAMEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->AHB4ENR, RCC_AHB4ENR_BKPRAMEN);\ - UNUSED(tmpreg); \ - } while(0) - - -#define __HAL_RCC_C1_GPIOA_CLK_DISABLE() (RCC_C1->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOAEN) -#define __HAL_RCC_C1_GPIOB_CLK_DISABLE() (RCC_C1->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOBEN) -#define __HAL_RCC_C1_GPIOC_CLK_DISABLE() (RCC_C1->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOCEN) -#define __HAL_RCC_C1_GPIOD_CLK_DISABLE() (RCC_C1->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIODEN) -#define __HAL_RCC_C1_GPIOE_CLK_DISABLE() (RCC_C1->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOEEN) -#define __HAL_RCC_C1_GPIOF_CLK_DISABLE() (RCC_C1->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOFEN) -#define __HAL_RCC_C1_GPIOG_CLK_DISABLE() (RCC_C1->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOGEN) -#define __HAL_RCC_C1_GPIOH_CLK_DISABLE() (RCC_C1->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOHEN) -#define __HAL_RCC_C1_GPIOI_CLK_DISABLE() (RCC_C1->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOIEN) -#define __HAL_RCC_C1_GPIOJ_CLK_DISABLE() (RCC_C1->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOJEN) -#define __HAL_RCC_C1_GPIOK_CLK_DISABLE() (RCC_C1->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOKEN) -#define __HAL_RCC_C1_CRC_CLK_DISABLE() (RCC_C1->AHB4ENR) &= ~ (RCC_AHB4ENR_CRCEN) -#define __HAL_RCC_C1_BDMA_CLK_DISABLE() (RCC_C1->AHB4ENR) &= ~ (RCC_AHB4ENR_BDMAEN) -#define __HAL_RCC_C1_ADC3_CLK_DISABLE() (RCC_C1->AHB4ENR) &= ~ (RCC_AHB4ENR_ADC3EN) -#define __HAL_RCC_C1_HSEM_CLK_DISABLE() (RCC_C1->AHB4ENR) &= ~ (RCC_AHB4ENR_HSEMEN) -#define __HAL_RCC_C1_BKPRAM_CLK_DISABLE() (RCC_C1->AHB4ENR) &= ~ (RCC_AHB4ENR_BKPRAMEN) - - -/** @brief Enable or disable the APB3 peripheral clock. - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#define __HAL_RCC_C1_LTDC_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB3ENR, RCC_APB3ENR_LTDCEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB3ENR, RCC_APB3ENR_LTDCEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_DSI_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB3ENR, RCC_APB3ENR_DSIEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB3ENR, RCC_APB3ENR_DSIEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_WWDG1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB3ENR, RCC_APB3ENR_WWDG1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB3ENR, RCC_APB3ENR_WWDG1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_LTDC_CLK_DISABLE() (RCC_C1->APB3ENR) &= ~ (RCC_APB3ENR_LTDCEN) -#define __HAL_RCC_C1_DSI_CLK_DISABLE() (RCC_C1->APB3ENR) &= ~ (RCC_APB3ENR_DSIEN) -#define __HAL_RCC_C1_WWDG1_CLK_DISABLE() (RCC_C1->APB3ENR) &= ~ (RCC_APB3ENR_WWDG1EN) - -/** @brief Enable or disable the APB1 peripheral clock. - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#define __HAL_RCC_C1_TIM2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_TIM2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_TIM2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_TIM3_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_TIM3EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_TIM3EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_TIM4_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_TIM4EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_TIM4EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_TIM5_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_TIM5EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_TIM5EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_TIM6_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_TIM6EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_TIM6EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_TIM7_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_TIM7EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_TIM7EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_TIM12_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_TIM12EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_TIM12EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_TIM13_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_TIM13EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_TIM13EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_TIM14_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_TIM14EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_TIM14EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_LPTIM1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_LPTIM1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_LPTIM1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_WWDG2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_WWDG2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_WWDG2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_SPI2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_SPI2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_SPI2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_SPI3_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_SPI3EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_SPI3EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_SPDIFRX_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_SPDIFRXEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_SPDIFRXEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_USART2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_USART2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_USART2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_USART3_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_USART3EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_USART3EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_UART4_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_UART4EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_UART4EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_UART5_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_UART5EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_UART5EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_I2C1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_I2C1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_I2C1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_I2C2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_I2C2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_I2C2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_I2C3_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_I2C3EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_I2C3EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_CEC_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_CECEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_CECEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_DAC12_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_DAC12EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_DAC12EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_UART7_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_UART7EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_UART7EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_UART8_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_UART8EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1LENR, RCC_APB1LENR_UART8EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_CRS_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1HENR, RCC_APB1HENR_CRSEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1HENR, RCC_APB1HENR_CRSEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_SWPMI_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1HENR, RCC_APB1HENR_SWPMIEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1HENR, RCC_APB1HENR_SWPMIEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_OPAMP_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1HENR, RCC_APB1HENR_OPAMPEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1HENR, RCC_APB1HENR_OPAMPEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_MDIOS_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1HENR, RCC_APB1HENR_MDIOSEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1HENR, RCC_APB1HENR_MDIOSEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_FDCAN_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB1HENR, RCC_APB1HENR_FDCANEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB1HENR, RCC_APB1HENR_FDCANEN);\ - UNUSED(tmpreg); \ - } while(0) - - -#define __HAL_RCC_C1_TIM2_CLK_DISABLE() (RCC_C1->APB1LENR) &= ~ (RCC_APB1LENR_TIM2EN) -#define __HAL_RCC_C1_TIM3_CLK_DISABLE() (RCC_C1->APB1LENR) &= ~ (RCC_APB1LENR_TIM3EN) -#define __HAL_RCC_C1_TIM4_CLK_DISABLE() (RCC_C1->APB1LENR) &= ~ (RCC_APB1LENR_TIM4EN) -#define __HAL_RCC_C1_TIM5_CLK_DISABLE() (RCC_C1->APB1LENR) &= ~ (RCC_APB1LENR_TIM5EN) -#define __HAL_RCC_C1_TIM6_CLK_DISABLE() (RCC_C1->APB1LENR) &= ~ (RCC_APB1LENR_TIM6EN) -#define __HAL_RCC_C1_TIM7_CLK_DISABLE() (RCC_C1->APB1LENR) &= ~ (RCC_APB1LENR_TIM7EN) -#define __HAL_RCC_C1_TIM12_CLK_DISABLE() (RCC_C1->APB1LENR) &= ~ (RCC_APB1LENR_TIM12EN) -#define __HAL_RCC_C1_TIM13_CLK_DISABLE() (RCC_C1->APB1LENR) &= ~ (RCC_APB1LENR_TIM13EN) -#define __HAL_RCC_C1_TIM14_CLK_DISABLE() (RCC_C1->APB1LENR) &= ~ (RCC_APB1LENR_TIM14EN) -#define __HAL_RCC_C1_LPTIM1_CLK_DISABLE() (RCC_C1->APB1LENR) &= ~ (RCC_APB1LENR_LPTIM1EN) -#define __HAL_RCC_C1_WWDG2_CLK_DISABLE() (RCC_C1->APB1LENR) &= ~ (RCC_APB1LENR_WWDG2EN) -#define __HAL_RCC_C1_SPI2_CLK_DISABLE() (RCC_C1->APB1LENR) &= ~ (RCC_APB1LENR_SPI2EN) -#define __HAL_RCC_C1_SPI3_CLK_DISABLE() (RCC_C1->APB1LENR) &= ~ (RCC_APB1LENR_SPI3EN) -#define __HAL_RCC_C1_SPDIFRX_CLK_DISABLE() (RCC_C1->APB1LENR) &= ~ (RCC_APB1LENR_SPDIFRXEN) -#define __HAL_RCC_C1_USART2_CLK_DISABLE() (RCC_C1->APB1LENR) &= ~ (RCC_APB1LENR_USART2EN) -#define __HAL_RCC_C1_USART3_CLK_DISABLE() (RCC_C1->APB1LENR) &= ~ (RCC_APB1LENR_USART3EN) -#define __HAL_RCC_C1_UART4_CLK_DISABLE() (RCC_C1->APB1LENR) &= ~ (RCC_APB1LENR_UART4EN) -#define __HAL_RCC_C1_UART5_CLK_DISABLE() (RCC_C1->APB1LENR) &= ~ (RCC_APB1LENR_UART5EN) -#define __HAL_RCC_C1_I2C1_CLK_DISABLE() (RCC_C1->APB1LENR) &= ~ (RCC_APB1LENR_I2C1EN) -#define __HAL_RCC_C1_I2C2_CLK_DISABLE() (RCC_C1->APB1LENR) &= ~ (RCC_APB1LENR_I2C2EN) -#define __HAL_RCC_C1_I2C3_CLK_DISABLE() (RCC_C1->APB1LENR) &= ~ (RCC_APB1LENR_I2C3EN) -#define __HAL_RCC_C1_CEC_CLK_DISABLE() (RCC_C1->APB1LENR) &= ~ (RCC_APB1LENR_CECEN) -#define __HAL_RCC_C1_DAC12_CLK_DISABLE() (RCC_C1->APB1LENR) &= ~ (RCC_APB1LENR_DAC12EN) -#define __HAL_RCC_C1_UART7_CLK_DISABLE() (RCC_C1->APB1LENR) &= ~ (RCC_APB1LENR_UART7EN) -#define __HAL_RCC_C1_UART8_CLK_DISABLE() (RCC_C1->APB1LENR) &= ~ (RCC_APB1LENR_UART8EN) -#define __HAL_RCC_C1_CRS_CLK_DISABLE() (RCC_C1->APB1HENR) &= ~ (RCC_APB1HENR_CRSEN) -#define __HAL_RCC_C1_SWPMI_CLK_DISABLE() (RCC_C1->APB1HENR) &= ~ (RCC_APB1HENR_SWPMIEN) -#define __HAL_RCC_C1_OPAMP_CLK_DISABLE() (RCC_C1->APB1HENR) &= ~ (RCC_APB1HENR_OPAMPEN) -#define __HAL_RCC_C1_MDIOS_CLK_DISABLE() (RCC_C1->APB1HENR) &= ~ (RCC_APB1HENR_MDIOSEN) -#define __HAL_RCC_C1_FDCAN_CLK_DISABLE() (RCC_C1->APB1HENR) &= ~ (RCC_APB1HENR_FDCANEN) - -/** @brief Enable or disable the APB2 peripheral clock. - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#define __HAL_RCC_C1_TIM1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_TIM1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_TIM1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_TIM8_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_TIM8EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_TIM8EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_USART1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_USART1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_USART1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_USART6_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_USART6EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_USART6EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_SPI1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_SPI1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_SPI1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_SPI4_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_SPI4EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_SPI4EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_TIM15_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_TIM15EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_TIM15EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_TIM16_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_TIM16EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_TIM16EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_TIM17_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_TIM17EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_TIM17EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_SPI5_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_SPI5EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_SPI5EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_SAI1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_SAI1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_SAI1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_SAI2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_SAI2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_SAI2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_SAI3_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_SAI3EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_SAI3EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_DFSDM1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_DFSDM1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_DFSDM1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_HRTIM1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_HRTIMEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB2ENR, RCC_APB2ENR_HRTIMEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_TIM1_CLK_DISABLE() (RCC_C1->APB2ENR) &= ~ (RCC_APB2ENR_TIM1EN) -#define __HAL_RCC_C1_TIM8_CLK_DISABLE() (RCC_C1->APB2ENR) &= ~ (RCC_APB2ENR_TIM8EN) -#define __HAL_RCC_C1_USART1_CLK_DISABLE() (RCC_C1->APB2ENR) &= ~ (RCC_APB2ENR_USART1EN) -#define __HAL_RCC_C1_USART6_CLK_DISABLE() (RCC_C1->APB2ENR) &= ~ (RCC_APB2ENR_USART6EN) -#define __HAL_RCC_C1_SPI1_CLK_DISABLE() (RCC_C1->APB2ENR) &= ~ (RCC_APB2ENR_SPI1EN) -#define __HAL_RCC_C1_SPI4_CLK_DISABLE() (RCC_C1->APB2ENR) &= ~ (RCC_APB2ENR_SPI4EN) -#define __HAL_RCC_C1_TIM15_CLK_DISABLE() (RCC_C1->APB2ENR) &= ~ (RCC_APB2ENR_TIM15EN) -#define __HAL_RCC_C1_TIM16_CLK_DISABLE() (RCC_C1->APB2ENR) &= ~ (RCC_APB2ENR_TIM16EN) -#define __HAL_RCC_C1_TIM17_CLK_DISABLE() (RCC_C1->APB2ENR) &= ~ (RCC_APB2ENR_TIM17EN) -#define __HAL_RCC_C1_SPI5_CLK_DISABLE() (RCC_C1->APB2ENR) &= ~ (RCC_APB2ENR_SPI5EN) -#define __HAL_RCC_C1_SAI1_CLK_DISABLE() (RCC_C1->APB2ENR) &= ~ (RCC_APB2ENR_SAI1EN) -#define __HAL_RCC_C1_SAI2_CLK_DISABLE() (RCC_C1->APB2ENR) &= ~ (RCC_APB2ENR_SAI2EN) -#define __HAL_RCC_C1_SAI3_CLK_DISABLE() (RCC_C1->APB2ENR) &= ~ (RCC_APB2ENR_SAI3EN) -#define __HAL_RCC_C1_DFSDM1_CLK_DISABLE() (RCC_C1->APB2ENR) &= ~ (RCC_APB2ENR_DFSDM1EN) -#define __HAL_RCC_C1_HRTIM1_CLK_DISABLE() (RCC_C1->APB2ENR) &= ~ (RCC_APB2ENR_HRTIMEN) - -/** @brief Enable or disable the APB4 peripheral clock. - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#define __HAL_RCC_C1_SYSCFG_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB4ENR, RCC_APB4ENR_SYSCFGEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB4ENR, RCC_APB4ENR_SYSCFGEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_LPUART1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB4ENR, RCC_APB4ENR_LPUART1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB4ENR, RCC_APB4ENR_LPUART1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_SPI6_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB4ENR, RCC_APB4ENR_SPI6EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB4ENR, RCC_APB4ENR_SPI6EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_I2C4_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB4ENR, RCC_APB4ENR_I2C4EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB4ENR, RCC_APB4ENR_I2C4EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_LPTIM2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB4ENR, RCC_APB4ENR_LPTIM2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB4ENR, RCC_APB4ENR_LPTIM2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_LPTIM3_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB4ENR, RCC_APB4ENR_LPTIM3EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB4ENR, RCC_APB4ENR_LPTIM3EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_LPTIM4_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB4ENR, RCC_APB4ENR_LPTIM4EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB4ENR, RCC_APB4ENR_LPTIM4EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_LPTIM5_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB4ENR, RCC_APB4ENR_LPTIM5EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB4ENR, RCC_APB4ENR_LPTIM5EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_COMP12_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB4ENR, RCC_APB4ENR_COMP12EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB4ENR, RCC_APB4ENR_COMP12EN);\ - UNUSED(tmpreg); \ - } while(0) - - -#define __HAL_RCC_C1_VREF_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB4ENR, RCC_APB4ENR_VREFEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB4ENR, RCC_APB4ENR_VREFEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_RTC_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB4ENR, RCC_APB4ENR_RTCAPBEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB4ENR, RCC_APB4ENR_RTCAPBEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C1_SAI4_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C1->APB4ENR, RCC_APB4ENR_SAI4EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C1->APB4ENR, RCC_APB4ENR_SAI4EN);\ - UNUSED(tmpreg); \ - } while(0) - - -#define __HAL_RCC_C1_SYSCFG_CLK_DISABLE() (RCC_C1->APB4ENR) &= ~ (RCC_APB4ENR_SYSCFGEN) -#define __HAL_RCC_C1_LPUART1_CLK_DISABLE() (RCC_C1->APB4ENR) &= ~ (RCC_APB4ENR_LPUART1EN) -#define __HAL_RCC_C1_SPI6_CLK_DISABLE() (RCC_C1->APB4ENR) &= ~ (RCC_APB4ENR_SPI6EN) -#define __HAL_RCC_C1_I2C4_CLK_DISABLE() (RCC_C1->APB4ENR) &= ~ (RCC_APB4ENR_I2C4EN) -#define __HAL_RCC_C1_LPTIM2_CLK_DISABLE() (RCC_C1->APB4ENR) &= ~ (RCC_APB4ENR_LPTIM2EN) -#define __HAL_RCC_C1_LPTIM3_CLK_DISABLE() (RCC_C1->APB4ENR) &= ~ (RCC_APB4ENR_LPTIM3EN) -#define __HAL_RCC_C1_LPTIM4_CLK_DISABLE() (RCC_C1->APB4ENR) &= ~ (RCC_APB4ENR_LPTIM4EN) -#define __HAL_RCC_C1_LPTIM5_CLK_DISABLE() (RCC_C1->APB4ENR) &= ~ (RCC_APB4ENR_LPTIM5EN) -#define __HAL_RCC_C1_COMP12_CLK_DISABLE() (RCC_C1->APB4ENR) &= ~ (RCC_APB4ENR_COMP12EN) -#define __HAL_RCC_C1_VREF_CLK_DISABLE() (RCC_C1->APB4ENR) &= ~ (RCC_APB4ENR_VREFEN) -#define __HAL_RCC_C1_RTC_CLK_DISABLE() (RCC_C1->APB4ENR) &= ~ (RCC_APB4ENR_RTCAPBEN) -#define __HAL_RCC_C1_SAI4_CLK_DISABLE() (RCC_C1->APB4ENR) &= ~ (RCC_APB4ENR_SAI4EN) - -/* Exported macros for RCC_C2 -------------------------------------------------*/ - -/** @brief Enable or disable the AHB3 peripheral clock. - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - - -#define __HAL_RCC_C2_MDMA_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB3ENR, RCC_AHB3ENR_MDMAEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB3ENR, RCC_AHB3ENR_MDMAEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_DMA2D_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB3ENR, RCC_AHB3ENR_DMA2DEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB3ENR, RCC_AHB3ENR_DMA2DEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_JPGDECEN_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB3ENR, RCC_AHB3ENR_JPGDECEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB3ENR, RCC_AHB3ENR_JPGDECEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_FLASH_C2_ALLOCATE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB3ENR, RCC_AHB3ENR_FLASHEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB3ENR, RCC_AHB3ENR_FLASHEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_DTCM1_C2_ALLOCATE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB3ENR, RCC_AHB3ENR_DTCM1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB3ENR, RCC_AHB3ENR_DTCM1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_DTCM2_C2_ALLOCATE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB3ENR, RCC_AHB3ENR_DTCM2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB3ENR, RCC_AHB3ENR_DTCM2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_ITCM_C2_ALLOCATE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB3ENR, RCC_AHB3ENR_ITCMEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB3ENR, RCC_AHB3ENR_ITCMEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_D1SRAM1_C2_ALLOCATE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB3ENR, RCC_AHB3ENR_AXISRAMEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB3ENR, RCC_AHB3ENR_AXISRAMEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_FMC_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB3ENR, RCC_AHB3ENR_FMCEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB3ENR, RCC_AHB3ENR_FMCEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_QSPI_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB3ENR, RCC_AHB3ENR_QSPIEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB3ENR, RCC_AHB3ENR_QSPIEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_SDMMC1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB3ENR, RCC_AHB3ENR_SDMMC1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB3ENR, RCC_AHB3ENR_SDMMC1EN);\ - UNUSED(tmpreg); \ - } while(0) - - - - -#define __HAL_RCC_C2_MDMA_CLK_DISABLE() (RCC_C2->AHB3ENR &= ~ (RCC_AHB3ENR_MDMAEN)) -#define __HAL_RCC_C2_DMA2D_CLK_DISABLE() (RCC_C2->AHB3ENR &= ~ (RCC_AHB3ENR_DMA2DEN)) -#define __HAL_RCC_C2_JPGDECEN_CLK_DISABLE() (RCC_C2->AHB3ENR &= ~ (RCC_AHB3ENR_JPGDECEN)) -#define __HAL_RCC_C2_FMC_CLK_DISABLE() (RCC_C2->AHB3ENR &= ~ (RCC_AHB3ENR_FMCEN)) -#define __HAL_RCC_C2_QSPI_CLK_DISABLE() (RCC_C2->AHB3ENR &= ~ (RCC_AHB3ENR_QSPIEN)) -#define __HAL_RCC_C2_SDMMC1_CLK_DISABLE() (RCC_C2->AHB3ENR &= ~ (RCC_AHB3ENR_SDMMC1EN)) -#define __HAL_RCC_FLASH_C2_DEALLOCATE() (RCC_C2->AHB3ENR &= ~ (RCC_AHB3ENR_FLASHEN)) -#define __HAL_RCC_DTCM1_C2_DEALLOCATE() (RCC_C2->AHB3ENR &= ~ (RCC_AHB3ENR_DTCM1EN)) -#define __HAL_RCC_DTCM2_C2_DEALLOCATE() (RCC_C2->AHB3ENR &= ~ (RCC_AHB3ENR_DTCM2EN)) -#define __HAL_RCC_ITCM_C2_DEALLOCATE() (RCC_C2->AHB3ENR &= ~ (RCC_AHB3ENR_ITCMEN)) -#define __HAL_RCC_D1SRAM1_C2_DEALLOCATE() (RCC_C2->AHB3ENR &= ~ (RCC_AHB3ENR_AXISRAMEN)) - -/** @brief Enable or disable the AHB1 peripheral clock. - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#define __HAL_RCC_C2_DMA1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB1ENR, RCC_AHB1ENR_DMA1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB1ENR, RCC_AHB1ENR_DMA1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_DMA2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB1ENR, RCC_AHB1ENR_DMA2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB1ENR, RCC_AHB1ENR_DMA2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_ADC12_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB1ENR, RCC_AHB1ENR_ADC12EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB1ENR, RCC_AHB1ENR_ADC12EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_ART_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB1ENR, RCC_AHB1ENR_ARTEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB1ENR, RCC_AHB1ENR_ARTEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_ETH1MAC_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB1ENR, RCC_AHB1ENR_ETH1MACEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB1ENR, RCC_AHB1ENR_ETH1MACEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_ETH1TX_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB1ENR, RCC_AHB1ENR_ETH1TXEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB1ENR, RCC_AHB1ENR_ETH1TXEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_ETH1RX_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB1ENR, RCC_AHB1ENR_ETH1RXEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB1ENR, RCC_AHB1ENR_ETH1RXEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_USB1_OTG_HS_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB1ENR, RCC_AHB1ENR_USB1OTGHSEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB1ENR, RCC_AHB1ENR_USB1OTGHSEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_USB1_OTG_HS_ULPI_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB1ENR, RCC_AHB1ENR_USB1OTGHSULPIEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB1ENR, RCC_AHB1ENR_USB1OTGHSULPIEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_USB2_OTG_FS_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB1ENR, RCC_AHB1ENR_USB2OTGHSEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB1ENR, RCC_AHB1ENR_USB2OTGHSEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_USB2_OTG_FS_ULPI_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB1ENR, RCC_AHB1ENR_USB2OTGHSULPIEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB1ENR, RCC_AHB1ENR_USB2OTGHSULPIEN);\ - UNUSED(tmpreg); \ - } while(0) - - -#define __HAL_RCC_C2_DMA1_CLK_DISABLE() (RCC_C2->AHB1ENR &= ~ (RCC_AHB1ENR_DMA1EN)) -#define __HAL_RCC_C2_DMA2_CLK_DISABLE() (RCC_C2->AHB1ENR &= ~ (RCC_AHB1ENR_DMA2EN)) -#define __HAL_RCC_C2_ADC12_CLK_DISABLE() (RCC_C2->AHB1ENR &= ~ (RCC_AHB1ENR_ADC12EN)) -#define __HAL_RCC_C2_ART_CLK_DISABLE() (RCC_C2->AHB1ENR &= ~ (RCC_AHB1ENR_ARTEN)) -#define __HAL_RCC_C2_ETH1MAC_CLK_DISABLE() (RCC_C2->AHB1ENR &= ~ (RCC_AHB1ENR_ETH1MACEN)) -#define __HAL_RCC_C2_ETH1TX_CLK_DISABLE() (RCC_C2->AHB1ENR &= ~ (RCC_AHB1ENR_ETH1TXEN)) -#define __HAL_RCC_C2_ETH1RX_CLK_DISABLE() (RCC_C2->AHB1ENR &= ~ (RCC_AHB1ENR_ETH1RXEN)) -#define __HAL_RCC_C2_USB1_OTG_HS_CLK_DISABLE() (RCC_C2->AHB1ENR &= ~ (RCC_AHB1ENR_USB1OTGHSEN)) -#define __HAL_RCC_C2_USB1_OTG_HS_ULPI_CLK_DISABLE() (RCC_C2->AHB1ENR &= ~ (RCC_AHB1ENR_USB1OTGHSULPIEN)) -#define __HAL_RCC_C2_USB2_OTG_FS_CLK_DISABLE() (RCC_C2->AHB1ENR &= ~ (RCC_AHB1ENR_USB2OTGHSEN)) -#define __HAL_RCC_C2_USB2_OTG_FS_ULPI_CLK_DISABLE() (RCC_C2->AHB1ENR &= ~ (RCC_AHB1ENR_USB2OTGHSULPIEN)) - -/** @brief Enable or disable the AHB2 peripheral clock. - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#define __HAL_RCC_C2_DCMI_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB2ENR, RCC_AHB2ENR_DCMIEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB2ENR, RCC_AHB2ENR_DCMIEN);\ - UNUSED(tmpreg); \ - } while(0) - -#if defined(CRYP) -#define __HAL_RCC_C2_CRYP_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB2ENR, RCC_AHB2ENR_CRYPEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB2ENR, RCC_AHB2ENR_CRYPEN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* CRYP */ - -#if defined(HASH) -#define __HAL_RCC_C2_HASH_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB2ENR, RCC_AHB2ENR_HASHEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB2ENR, RCC_AHB2ENR_HASHEN);\ - UNUSED(tmpreg); \ - } while(0) -#endif /* HASH */ - -#define __HAL_RCC_C2_RNG_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB2ENR, RCC_AHB2ENR_RNGEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB2ENR, RCC_AHB2ENR_RNGEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_SDMMC2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB2ENR, RCC_AHB2ENR_SDMMC2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB2ENR, RCC_AHB2ENR_SDMMC2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_D2SRAM1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB2ENR, RCC_AHB2ENR_D2SRAM1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB2ENR, RCC_AHB2ENR_D2SRAM1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_D2SRAM2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB2ENR, RCC_AHB2ENR_D2SRAM2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB2ENR, RCC_AHB2ENR_D2SRAM2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_D2SRAM3_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB2ENR, RCC_AHB2ENR_D2SRAM3EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB2ENR, RCC_AHB2ENR_D2SRAM3EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_DCMI_CLK_DISABLE() (RCC_C2->AHB2ENR &= ~ (RCC_AHB2ENR_DCMIEN)) -#if defined(CRYP) -#define __HAL_RCC_C2_CRYP_CLK_DISABLE() (RCC_C2->AHB2ENR &= ~ (RCC_AHB2ENR_CRYPEN)) -#endif /* CRYP */ -#if defined(HASH) -#define __HAL_RCC_C2_HASH_CLK_DISABLE() (RCC_C2->AHB2ENR &= ~ (RCC_AHB2ENR_HASHEN)) -#endif /* HASH */ -#define __HAL_RCC_C2_RNG_CLK_DISABLE() (RCC_C2->AHB2ENR &= ~ (RCC_AHB2ENR_RNGEN)) -#define __HAL_RCC_C2_SDMMC2_CLK_DISABLE() (RCC_C2->AHB2ENR &= ~ (RCC_AHB2ENR_SDMMC2EN)) -#define __HAL_RCC_C2_D2SRAM1_CLK_DISABLE() (RCC_C2->AHB2ENR &= ~ (RCC_AHB2ENR_D2SRAM1EN)) -#define __HAL_RCC_C2_D2SRAM2_CLK_DISABLE() (RCC_C2->AHB2ENR &= ~ (RCC_AHB2ENR_D2SRAM2EN)) -#define __HAL_RCC_C2_D2SRAM3_CLK_DISABLE() (RCC_C2->AHB2ENR &= ~ (RCC_AHB2ENR_D2SRAM3EN)) - -/** @brief Enable or disable the AHB4 peripheral clock. - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#define __HAL_RCC_C2_GPIOA_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_GPIOAEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_GPIOAEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_GPIOB_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_GPIOBEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_GPIOBEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_GPIOC_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_GPIOCEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_GPIOCEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_GPIOD_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_GPIODEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_GPIODEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_GPIOE_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_GPIOEEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_GPIOEEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_GPIOF_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_GPIOFEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_GPIOFEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_GPIOG_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_GPIOGEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_GPIOGEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_GPIOH_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_GPIOHEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_GPIOHEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_GPIOI_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_GPIOIEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_GPIOIEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_GPIOJ_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_GPIOJEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_GPIOJEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_GPIOK_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_GPIOKEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_GPIOKEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_CRC_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_CRCEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_CRCEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_BDMA_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_BDMAEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_BDMAEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_ADC3_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_ADC3EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_ADC3EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_HSEM_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_HSEMEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_HSEMEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_BKPRAM_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_BKPRAMEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->AHB4ENR, RCC_AHB4ENR_BKPRAMEN);\ - UNUSED(tmpreg); \ - } while(0) - - -#define __HAL_RCC_C2_GPIOA_CLK_DISABLE() (RCC_C2->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOAEN) -#define __HAL_RCC_C2_GPIOB_CLK_DISABLE() (RCC_C2->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOBEN) -#define __HAL_RCC_C2_GPIOC_CLK_DISABLE() (RCC_C2->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOCEN) -#define __HAL_RCC_C2_GPIOD_CLK_DISABLE() (RCC_C2->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIODEN) -#define __HAL_RCC_C2_GPIOE_CLK_DISABLE() (RCC_C2->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOEEN) -#define __HAL_RCC_C2_GPIOF_CLK_DISABLE() (RCC_C2->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOFEN) -#define __HAL_RCC_C2_GPIOG_CLK_DISABLE() (RCC_C2->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOGEN) -#define __HAL_RCC_C2_GPIOH_CLK_DISABLE() (RCC_C2->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOHEN) -#define __HAL_RCC_C2_GPIOI_CLK_DISABLE() (RCC_C2->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOIEN) -#define __HAL_RCC_C2_GPIOJ_CLK_DISABLE() (RCC_C2->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOJEN) -#define __HAL_RCC_C2_GPIOK_CLK_DISABLE() (RCC_C2->AHB4ENR) &= ~ (RCC_AHB4ENR_GPIOKEN) -#define __HAL_RCC_C2_CRC_CLK_DISABLE() (RCC_C2->AHB4ENR) &= ~ (RCC_AHB4ENR_CRCEN) -#define __HAL_RCC_C2_BDMA_CLK_DISABLE() (RCC_C2->AHB4ENR) &= ~ (RCC_AHB4ENR_BDMAEN) -#define __HAL_RCC_C2_ADC3_CLK_DISABLE() (RCC_C2->AHB4ENR) &= ~ (RCC_AHB4ENR_ADC3EN) -#define __HAL_RCC_C2_HSEM_CLK_DISABLE() (RCC_C2->AHB4ENR) &= ~ (RCC_AHB4ENR_HSEMEN) -#define __HAL_RCC_C2_BKPRAM_CLK_DISABLE() (RCC_C2->AHB4ENR) &= ~ (RCC_AHB4ENR_BKPRAMEN) - - -/** @brief Enable or disable the APB3 peripheral clock. - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#define __HAL_RCC_C2_LTDC_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB3ENR, RCC_APB3ENR_LTDCEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB3ENR, RCC_APB3ENR_LTDCEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_DSI_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB3ENR, RCC_APB3ENR_DSIEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB3ENR, RCC_APB3ENR_DSIEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_WWDG1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB3ENR, RCC_APB3ENR_WWDG1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB3ENR, RCC_APB3ENR_WWDG1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_LTDC_CLK_DISABLE() (RCC_C2->APB3ENR) &= ~ (RCC_APB3ENR_LTDCEN) -#define __HAL_RCC_C2_DSI_CLK_DISABLE() (RCC_C2->APB3ENR) &= ~ (RCC_APB3ENR_DSIEN) -#define __HAL_RCC_C2_WWDG1_CLK_DISABLE() (RCC_C2->APB3ENR) &= ~ (RCC_APB3ENR_WWDG1EN) - -/** @brief Enable or disable the APB1 peripheral clock. - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#define __HAL_RCC_C2_TIM2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_TIM2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_TIM2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_TIM3_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_TIM3EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_TIM3EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_TIM4_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_TIM4EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_TIM4EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_TIM5_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_TIM5EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_TIM5EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_TIM6_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_TIM6EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_TIM6EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_TIM7_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_TIM7EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_TIM7EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_TIM12_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_TIM12EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_TIM12EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_TIM13_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_TIM13EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_TIM13EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_TIM14_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_TIM14EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_TIM14EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_LPTIM1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_LPTIM1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_LPTIM1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_WWDG2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_WWDG2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_WWDG2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_SPI2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_SPI2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_SPI2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_SPI3_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_SPI3EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_SPI3EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_SPDIFRX_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_SPDIFRXEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_SPDIFRXEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_USART2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_USART2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_USART2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_USART3_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_USART3EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_USART3EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_UART4_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_UART4EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_UART4EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_UART5_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_UART5EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_UART5EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_I2C1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_I2C1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_I2C1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_I2C2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_I2C2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_I2C2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_I2C3_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_I2C3EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_I2C3EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_CEC_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_CECEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_CECEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_DAC12_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_DAC12EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_DAC12EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_UART7_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_UART7EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_UART7EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_UART8_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_UART8EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1LENR, RCC_APB1LENR_UART8EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_CRS_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1HENR, RCC_APB1HENR_CRSEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1HENR, RCC_APB1HENR_CRSEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_SWPMI_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1HENR, RCC_APB1HENR_SWPMIEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1HENR, RCC_APB1HENR_SWPMIEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_OPAMP_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1HENR, RCC_APB1HENR_OPAMPEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1HENR, RCC_APB1HENR_OPAMPEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_MDIOS_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1HENR, RCC_APB1HENR_MDIOSEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1HENR, RCC_APB1HENR_MDIOSEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_FDCAN_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB1HENR, RCC_APB1HENR_FDCANEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB1HENR, RCC_APB1HENR_FDCANEN);\ - UNUSED(tmpreg); \ - } while(0) - - -#define __HAL_RCC_C2_TIM2_CLK_DISABLE() (RCC_C2->APB1LENR) &= ~ (RCC_APB1LENR_TIM2EN) -#define __HAL_RCC_C2_TIM3_CLK_DISABLE() (RCC_C2->APB1LENR) &= ~ (RCC_APB1LENR_TIM3EN) -#define __HAL_RCC_C2_TIM4_CLK_DISABLE() (RCC_C2->APB1LENR) &= ~ (RCC_APB1LENR_TIM4EN) -#define __HAL_RCC_C2_TIM5_CLK_DISABLE() (RCC_C2->APB1LENR) &= ~ (RCC_APB1LENR_TIM5EN) -#define __HAL_RCC_C2_TIM6_CLK_DISABLE() (RCC_C2->APB1LENR) &= ~ (RCC_APB1LENR_TIM6EN) -#define __HAL_RCC_C2_TIM7_CLK_DISABLE() (RCC_C2->APB1LENR) &= ~ (RCC_APB1LENR_TIM7EN) -#define __HAL_RCC_C2_TIM12_CLK_DISABLE() (RCC_C2->APB1LENR) &= ~ (RCC_APB1LENR_TIM12EN) -#define __HAL_RCC_C2_TIM13_CLK_DISABLE() (RCC_C2->APB1LENR) &= ~ (RCC_APB1LENR_TIM13EN) -#define __HAL_RCC_C2_TIM14_CLK_DISABLE() (RCC_C2->APB1LENR) &= ~ (RCC_APB1LENR_TIM14EN) -#define __HAL_RCC_C2_LPTIM1_CLK_DISABLE() (RCC_C2->APB1LENR) &= ~ (RCC_APB1LENR_LPTIM1EN) -#define __HAL_RCC_C2_WWDG2_CLK_DISABLE() (RCC_C2->APB1LENR) &= ~ (RCC_APB1LENR_WWDG2EN) -#define __HAL_RCC_C2_SPI2_CLK_DISABLE() (RCC_C2->APB1LENR) &= ~ (RCC_APB1LENR_SPI2EN) -#define __HAL_RCC_C2_SPI3_CLK_DISABLE() (RCC_C2->APB1LENR) &= ~ (RCC_APB1LENR_SPI3EN) -#define __HAL_RCC_C2_SPDIFRX_CLK_DISABLE() (RCC_C2->APB1LENR) &= ~ (RCC_APB1LENR_SPDIFRXEN) -#define __HAL_RCC_C2_USART2_CLK_DISABLE() (RCC_C2->APB1LENR) &= ~ (RCC_APB1LENR_USART2EN) -#define __HAL_RCC_C2_USART3_CLK_DISABLE() (RCC_C2->APB1LENR) &= ~ (RCC_APB1LENR_USART3EN) -#define __HAL_RCC_C2_UART4_CLK_DISABLE() (RCC_C2->APB1LENR) &= ~ (RCC_APB1LENR_UART4EN) -#define __HAL_RCC_C2_UART5_CLK_DISABLE() (RCC_C2->APB1LENR) &= ~ (RCC_APB1LENR_UART5EN) -#define __HAL_RCC_C2_I2C1_CLK_DISABLE() (RCC_C2->APB1LENR) &= ~ (RCC_APB1LENR_I2C1EN) -#define __HAL_RCC_C2_I2C2_CLK_DISABLE() (RCC_C2->APB1LENR) &= ~ (RCC_APB1LENR_I2C2EN) -#define __HAL_RCC_C2_I2C3_CLK_DISABLE() (RCC_C2->APB1LENR) &= ~ (RCC_APB1LENR_I2C3EN) -#define __HAL_RCC_C2_CEC_CLK_DISABLE() (RCC_C2->APB1LENR) &= ~ (RCC_APB1LENR_CECEN) -#define __HAL_RCC_C2_DAC12_CLK_DISABLE() (RCC_C2->APB1LENR) &= ~ (RCC_APB1LENR_DAC12EN) -#define __HAL_RCC_C2_UART7_CLK_DISABLE() (RCC_C2->APB1LENR) &= ~ (RCC_APB1LENR_UART7EN) -#define __HAL_RCC_C2_UART8_CLK_DISABLE() (RCC_C2->APB1LENR) &= ~ (RCC_APB1LENR_UART8EN) -#define __HAL_RCC_C2_CRS_CLK_DISABLE() (RCC_C2->APB1HENR) &= ~ (RCC_APB1HENR_CRSEN) -#define __HAL_RCC_C2_SWPMI_CLK_DISABLE() (RCC_C2->APB1HENR) &= ~ (RCC_APB1HENR_SWPMIEN) -#define __HAL_RCC_C2_OPAMP_CLK_DISABLE() (RCC_C2->APB1HENR) &= ~ (RCC_APB1HENR_OPAMPEN) -#define __HAL_RCC_C2_MDIOS_CLK_DISABLE() (RCC_C2->APB1HENR) &= ~ (RCC_APB1HENR_MDIOSEN) -#define __HAL_RCC_C2_FDCAN_CLK_DISABLE() (RCC_C2->APB1HENR) &= ~ (RCC_APB1HENR_FDCANEN) - -/** @brief Enable or disable the APB2 peripheral clock. - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#define __HAL_RCC_C2_TIM1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_TIM1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_TIM1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_TIM8_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_TIM8EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_TIM8EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_USART1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_USART1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_USART1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_USART6_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_USART6EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_USART6EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_SPI1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_SPI1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_SPI1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_SPI4_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_SPI4EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_SPI4EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_TIM15_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_TIM15EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_TIM15EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_TIM16_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_TIM16EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_TIM16EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_TIM17_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_TIM17EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_TIM17EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_SPI5_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_SPI5EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_SPI5EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_SAI1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_SAI1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_SAI1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_SAI2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_SAI2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_SAI2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_SAI3_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_SAI3EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_SAI3EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_DFSDM1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_DFSDM1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_DFSDM1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_HRTIM1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_HRTIMEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB2ENR, RCC_APB2ENR_HRTIMEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_TIM1_CLK_DISABLE() (RCC_C2->APB2ENR) &= ~ (RCC_APB2ENR_TIM1EN) -#define __HAL_RCC_C2_TIM8_CLK_DISABLE() (RCC_C2->APB2ENR) &= ~ (RCC_APB2ENR_TIM8EN) -#define __HAL_RCC_C2_USART1_CLK_DISABLE() (RCC_C2->APB2ENR) &= ~ (RCC_APB2ENR_USART1EN) -#define __HAL_RCC_C2_USART6_CLK_DISABLE() (RCC_C2->APB2ENR) &= ~ (RCC_APB2ENR_USART6EN) -#define __HAL_RCC_C2_SPI1_CLK_DISABLE() (RCC_C2->APB2ENR) &= ~ (RCC_APB2ENR_SPI1EN) -#define __HAL_RCC_C2_SPI4_CLK_DISABLE() (RCC_C2->APB2ENR) &= ~ (RCC_APB2ENR_SPI4EN) -#define __HAL_RCC_C2_TIM15_CLK_DISABLE() (RCC_C2->APB2ENR) &= ~ (RCC_APB2ENR_TIM15EN) -#define __HAL_RCC_C2_TIM16_CLK_DISABLE() (RCC_C2->APB2ENR) &= ~ (RCC_APB2ENR_TIM16EN) -#define __HAL_RCC_C2_TIM17_CLK_DISABLE() (RCC_C2->APB2ENR) &= ~ (RCC_APB2ENR_TIM17EN) -#define __HAL_RCC_C2_SPI5_CLK_DISABLE() (RCC_C2->APB2ENR) &= ~ (RCC_APB2ENR_SPI5EN) -#define __HAL_RCC_C2_SAI1_CLK_DISABLE() (RCC_C2->APB2ENR) &= ~ (RCC_APB2ENR_SAI1EN) -#define __HAL_RCC_C2_SAI2_CLK_DISABLE() (RCC_C2->APB2ENR) &= ~ (RCC_APB2ENR_SAI2EN) -#define __HAL_RCC_C2_SAI3_CLK_DISABLE() (RCC_C2->APB2ENR) &= ~ (RCC_APB2ENR_SAI3EN) -#define __HAL_RCC_C2_DFSDM1_CLK_DISABLE() (RCC_C2->APB2ENR) &= ~ (RCC_APB2ENR_DFSDM1EN) -#define __HAL_RCC_C2_HRTIM1_CLK_DISABLE() (RCC_C2->APB2ENR) &= ~ (RCC_APB2ENR_HRTIMEN) - -/** @brief Enable or disable the APB4 peripheral clock. - * @note After reset, the peripheral clock (used for registers read/write access) - * is disabled and the application software has to enable this clock before - * using it. - */ - -#define __HAL_RCC_C2_SYSCFG_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB4ENR, RCC_APB4ENR_SYSCFGEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB4ENR, RCC_APB4ENR_SYSCFGEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_LPUART1_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB4ENR, RCC_APB4ENR_LPUART1EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB4ENR, RCC_APB4ENR_LPUART1EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_SPI6_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB4ENR, RCC_APB4ENR_SPI6EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB4ENR, RCC_APB4ENR_SPI6EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_I2C4_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB4ENR, RCC_APB4ENR_I2C4EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB4ENR, RCC_APB4ENR_I2C4EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_LPTIM2_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB4ENR, RCC_APB4ENR_LPTIM2EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB4ENR, RCC_APB4ENR_LPTIM2EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_LPTIM3_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB4ENR, RCC_APB4ENR_LPTIM3EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB4ENR, RCC_APB4ENR_LPTIM3EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_LPTIM4_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB4ENR, RCC_APB4ENR_LPTIM4EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB4ENR, RCC_APB4ENR_LPTIM4EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_LPTIM5_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB4ENR, RCC_APB4ENR_LPTIM5EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB4ENR, RCC_APB4ENR_LPTIM5EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_COMP12_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB4ENR, RCC_APB4ENR_COMP12EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB4ENR, RCC_APB4ENR_COMP12EN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_VREF_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB4ENR, RCC_APB4ENR_VREFEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB4ENR, RCC_APB4ENR_VREFEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_RTC_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB4ENR, RCC_APB4ENR_RTCAPBEN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB4ENR, RCC_APB4ENR_RTCAPBEN);\ - UNUSED(tmpreg); \ - } while(0) - -#define __HAL_RCC_C2_SAI4_CLK_ENABLE() do { \ - __IO uint32_t tmpreg; \ - SET_BIT(RCC_C2->APB4ENR, RCC_APB4ENR_SAI4EN);\ - /* Delay after an RCC peripheral clock enabling */ \ - tmpreg = READ_BIT(RCC_C2->APB4ENR, RCC_APB4ENR_SAI4EN);\ - UNUSED(tmpreg); \ - } while(0) - - - -#define __HAL_RCC_C2_SYSCFG_CLK_DISABLE() (RCC_C2->APB4ENR) &= ~ (RCC_APB4ENR_SYSCFGEN) -#define __HAL_RCC_C2_LPUART1_CLK_DISABLE() (RCC_C2->APB4ENR) &= ~ (RCC_APB4ENR_LPUART1EN) -#define __HAL_RCC_C2_SPI6_CLK_DISABLE() (RCC_C2->APB4ENR) &= ~ (RCC_APB4ENR_SPI6EN) -#define __HAL_RCC_C2_I2C4_CLK_DISABLE() (RCC_C2->APB4ENR) &= ~ (RCC_APB4ENR_I2C4EN) -#define __HAL_RCC_C2_LPTIM2_CLK_DISABLE() (RCC_C2->APB4ENR) &= ~ (RCC_APB4ENR_LPTIM2EN) -#define __HAL_RCC_C2_LPTIM3_CLK_DISABLE() (RCC_C2->APB4ENR) &= ~ (RCC_APB4ENR_LPTIM3EN) -#define __HAL_RCC_C2_LPTIM4_CLK_DISABLE() (RCC_C2->APB4ENR) &= ~ (RCC_APB4ENR_LPTIM4EN) -#define __HAL_RCC_C2_LPTIM5_CLK_DISABLE() (RCC_C2->APB4ENR) &= ~ (RCC_APB4ENR_LPTIM5EN) -#define __HAL_RCC_C2_COMP12_CLK_DISABLE() (RCC_C2->APB4ENR) &= ~ (RCC_APB4ENR_COMP12EN) -#define __HAL_RCC_C2_VREF_CLK_DISABLE() (RCC_C2->APB4ENR) &= ~ (RCC_APB4ENR_VREFEN) -#define __HAL_RCC_C2_RTC_CLK_DISABLE() (RCC_C2->APB4ENR) &= ~ (RCC_APB4ENR_RTCAPBEN) -#define __HAL_RCC_C2_SAI4_CLK_DISABLE() (RCC_C2->APB4ENR) &= ~ (RCC_APB4ENR_SAI4EN) - -#endif /*DUAL_CORE*/ - -/** @brief Enable or disable the AHB3 peripheral reset. - */ - -#if (STM32H7_DEV_ID == 0x450UL) -#define __HAL_RCC_AHB3_FORCE_RESET() (RCC->AHB3RSTR = 0x00015031U) /* Resets MDMA, DMA2D, JPEG, FMC, QSPI and SDMMC1 */ -#elif (STM32H7_DEV_ID == 0x480UL) -#define __HAL_RCC_AHB3_FORCE_RESET() (RCC->AHB3RSTR = 0x01E95031U) /* Resets MDMA, DMA2D, JPEG, FMC, OSPI1, SDMMC1, OSPI2, IOMNGR, OTFD1, OTFD2 and GFXMMU */ -#else -#define __HAL_RCC_AHB3_FORCE_RESET() (RCC->AHB3RSTR = 0x00E95011U) /* Resets MDMA, DMA2D, FMC, OSPI1, SDMMC1, OSPI2, IOMNGR, OTFD1, OTFD2 */ -#endif /* STM32H7_DEV_ID == 0x450UL */ -#define __HAL_RCC_MDMA_FORCE_RESET() (RCC->AHB3RSTR |= (RCC_AHB3RSTR_MDMARST)) -#define __HAL_RCC_DMA2D_FORCE_RESET() (RCC->AHB3RSTR |= (RCC_AHB3RSTR_DMA2DRST)) -#if defined(JPEG) -#define __HAL_RCC_JPGDECRST_FORCE_RESET() (RCC->AHB3RSTR |= (RCC_AHB3RSTR_JPGDECRST)) -#endif /* JPEG */ -#define __HAL_RCC_FMC_FORCE_RESET() (RCC->AHB3RSTR |= (RCC_AHB3RSTR_FMCRST)) -#if defined(QUADSPI) -#define __HAL_RCC_QSPI_FORCE_RESET() (RCC->AHB3RSTR |= (RCC_AHB3RSTR_QSPIRST)) -#endif /*QUADSPI*/ -#if defined(OCTOSPI1) -#define __HAL_RCC_OSPI1_FORCE_RESET() (RCC->AHB3RSTR |= (RCC_AHB3RSTR_OSPI1RST)) -#endif /*OCTOSPI1*/ -#define __HAL_RCC_SDMMC1_FORCE_RESET() (RCC->AHB3RSTR |= (RCC_AHB3RSTR_SDMMC1RST)) -#if defined(OCTOSPI2) -#define __HAL_RCC_OSPI2_FORCE_RESET() (RCC->AHB3RSTR |= (RCC_AHB3RSTR_OSPI2RST)) -#endif /*OCTOSPI2*/ -#if defined(OCTOSPIM) -#define __HAL_RCC_IOMNGR_FORCE_RESET() (RCC->AHB3RSTR |= (RCC_AHB3RSTR_IOMNGRRST)) -#endif /*OCTOSPIM*/ -#if defined(OTFDEC1) -#define __HAL_RCC_OTFDEC1_FORCE_RESET() (RCC->AHB3RSTR |= (RCC_AHB3RSTR_OTFDEC1RST)) -#endif /*OTFDEC1*/ -#if defined(OTFDEC2) -#define __HAL_RCC_OTFDEC2_FORCE_RESET() (RCC->AHB3RSTR |= (RCC_AHB3RSTR_OTFDEC2RST)) -#endif /*OTFDEC2*/ -#if defined(GFXMMU) -#define __HAL_RCC_GFXMMU_FORCE_RESET() (RCC->AHB3RSTR |= (RCC_AHB3RSTR_GFXMMURST)) -#endif /*GFXMMU*/ - -#define __HAL_RCC_AHB3_RELEASE_RESET() (RCC->AHB3RSTR = 0x00) -#define __HAL_RCC_MDMA_RELEASE_RESET() (RCC->AHB3RSTR &= ~ (RCC_AHB3RSTR_MDMARST)) -#define __HAL_RCC_DMA2D_RELEASE_RESET() (RCC->AHB3RSTR &= ~ (RCC_AHB3RSTR_DMA2DRST)) -#if defined(JPEG) -#define __HAL_RCC_JPGDECRST_RELEASE_RESET() (RCC->AHB3RSTR &= ~ (RCC_AHB3RSTR_JPGDECRST)) -#endif /* JPEG */ -#define __HAL_RCC_FMC_RELEASE_RESET() (RCC->AHB3RSTR &= ~ (RCC_AHB3RSTR_FMCRST)) -#if defined(QUADSPI) -#define __HAL_RCC_QSPI_RELEASE_RESET() (RCC->AHB3RSTR &= ~ (RCC_AHB3RSTR_QSPIRST)) -#endif /*QUADSPI*/ -#if defined(OCTOSPI1) -#define __HAL_RCC_OSPI1_RELEASE_RESET() (RCC->AHB3RSTR &= ~ (RCC_AHB3RSTR_OSPI1RST)) -#endif /*OCTOSPI1*/ -#define __HAL_RCC_SDMMC1_RELEASE_RESET() (RCC->AHB3RSTR &= ~ (RCC_AHB3RSTR_SDMMC1RST)) -#if defined(OCTOSPI2) -#define __HAL_RCC_OSPI2_RELEASE_RESET() (RCC->AHB3RSTR &= ~ (RCC_AHB3RSTR_OSPI2RST)) -#endif /*OCTOSPI2*/ -#if defined(OCTOSPIM) -#define __HAL_RCC_IOMNGR_RELEASE_RESET() (RCC->AHB3RSTR &= ~ (RCC_AHB3RSTR_IOMNGRRST)) -#endif /*OCTOSPIM*/ -#if defined(OTFDEC1) -#define __HAL_RCC_OTFDEC1_RELEASE_RESET() (RCC->AHB3RSTR &= ~ (RCC_AHB3RSTR_OTFDEC1RST)) -#endif /*OTFDEC1*/ -#if defined(OTFDEC2) -#define __HAL_RCC_OTFDEC2_RELEASE_RESET() (RCC->AHB3RSTR &= ~ (RCC_AHB3RSTR_OTFDEC2RST)) -#endif /*OTFDEC2*/ -#if defined(GFXMMU) -#define __HAL_RCC_GFXMMU_RELEASE_RESET() (RCC->AHB3RSTR &= ~ (RCC_AHB3RSTR_GFXMMURST)) -#endif /*GFXMMU*/ - - - -/** @brief Force or release the AHB1 peripheral reset. - */ -#if (STM32H7_DEV_ID == 0x450UL) -#define __HAL_RCC_AHB1_FORCE_RESET() (RCC->AHB1RSTR = 0x0A00C023U) /* Resets DMA1, DMA2, ADC12, ART, ETHMAC, USB1OTG and USB2OTG */ -#elif (STM32H7_DEV_ID == 0x480UL) -#define __HAL_RCC_AHB1_FORCE_RESET() (RCC->AHB1RSTR = 0x02000223U) /* Resets DMA1, DMA2, ADC12, CRC and USB1OTG */ -#else -#define __HAL_RCC_AHB1_FORCE_RESET() (RCC->AHB1RSTR = 0x02008023U) /* Resets DMA1, DMA2, ADC12, ETHMAC and USB1OTG */ -#endif /* STM32H7_DEV_ID == 0x450UL */ -#define __HAL_RCC_DMA1_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_DMA1RST)) -#define __HAL_RCC_DMA2_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_DMA2RST)) -#define __HAL_RCC_ADC12_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_ADC12RST)) -#if defined(DUAL_CORE) -#define __HAL_RCC_ART_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_ARTRST)) -#endif /*DUAL_CORE*/ -#if defined(RCC_AHB1RSTR_CRCRST) -#define __HAL_RCC_CRC_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_CRCRST)) -#endif -#if defined(ETH) -#define __HAL_RCC_ETH1MAC_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_ETH1MACRST)) -#endif /*ETH*/ -#define __HAL_RCC_USB1_OTG_HS_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_USB1OTGHSRST)) -#if defined(USB2_OTG_FS) -#define __HAL_RCC_USB2_OTG_FS_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_USB2OTGHSRST)) -#endif /*USB2_OTG_FS*/ - -#define __HAL_RCC_AHB1_RELEASE_RESET() (RCC->AHB1RSTR = 0x00U) -#define __HAL_RCC_DMA1_RELEASE_RESET() (RCC->AHB1RSTR &= ~ (RCC_AHB1RSTR_DMA1RST)) -#define __HAL_RCC_DMA2_RELEASE_RESET() (RCC->AHB1RSTR &= ~ (RCC_AHB1RSTR_DMA2RST)) -#define __HAL_RCC_ADC12_RELEASE_RESET() (RCC->AHB1RSTR &= ~ (RCC_AHB1RSTR_ADC12RST)) -#if defined(DUAL_CORE) -#define __HAL_RCC_ART_RELEASE_RESET() (RCC->AHB1RSTR &= ~ (RCC_AHB1RSTR_ARTRST)) -#endif /*DUAL_CORE*/ -#if defined(RCC_AHB1RSTR_CRCRST) -#define __HAL_RCC_CRC_RELEASE_RESET() (RCC->AHB1RSTR &= ~ (RCC_AHB1RSTR_CRCRST)) -#endif -#if defined(ETH) -#define __HAL_RCC_ETH1MAC_RELEASE_RESET() (RCC->AHB1RSTR &= ~ (RCC_AHB1RSTR_ETH1MACRST)) -#endif /*ETH*/ -#define __HAL_RCC_USB1_OTG_HS_RELEASE_RESET() (RCC->AHB1RSTR &= ~ (RCC_AHB1RSTR_USB1OTGHSRST)) -#if defined(USB2_OTG_FS) -#define __HAL_RCC_USB2_OTG_FS_RELEASE_RESET() (RCC->AHB1RSTR &= ~ (RCC_AHB1RSTR_USB2OTGHSRST)) -#endif /*USB2_OTG_FS*/ - -/** @brief Force or release the AHB2 peripheral reset. - */ -#if (STM32H7_DEV_ID == 0x450UL) -#define __HAL_RCC_AHB2_FORCE_RESET() (RCC->AHB2RSTR = 0x00000271U) /* Resets DCMI, CRYPT, HASH, RNG and SDMMC2 */ -#elif (STM32H7_DEV_ID == 0x480UL) -#define __HAL_RCC_AHB2_FORCE_RESET() (RCC->AHB2RSTR = 0x00000A75U) /* Resets DCMI_PSSI, HSEM, CRYPT, HASH, RNG, SDMMC2 and BDMA1 */ -#else -#define __HAL_RCC_AHB2_FORCE_RESET() (RCC->AHB2RSTR = 0x00030271U) /* Resets DCMI_PSSI, CRYPT, HASH, RNG, SDMMC2, FMAC and CORDIC */ -#endif /* STM32H7_DEV_ID == 0x450UL */ -#if defined(DCMI) && defined(PSSI) -#define __HAL_RCC_DCMI_PSSI_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_DCMI_PSSIRST)) -#define __HAL_RCC_DCMI_FORCE_RESET() __HAL_RCC_DCMI_PSSI_FORCE_RESET() /* for API backward compatibility*/ -#else -#define __HAL_RCC_DCMI_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_DCMIRST)) -#endif /* DCMI && PSSI */ -#if defined(CRYP) -#define __HAL_RCC_CRYP_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_CRYPRST)) -#endif /* CRYP */ -#if defined(HASH) -#define __HAL_RCC_HASH_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_HASHRST)) -#endif /* HASH */ -#define __HAL_RCC_RNG_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_RNGRST)) -#define __HAL_RCC_SDMMC2_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_SDMMC2RST)) -#if defined(FMAC) -#define __HAL_RCC_FMAC_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_FMACRST)) -#endif /*FMAC*/ -#if defined(CORDIC) -#define __HAL_RCC_CORDIC_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_CORDICRST)) -#endif /*CORDIC*/ -#if defined(RCC_AHB2RSTR_HSEMRST) -#define __HAL_RCC_HSEM_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_HSEMRST)) -#endif -#if defined(BDMA1) -#define __HAL_RCC_BDMA1_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_BDMA1RST)) -#endif /*BDMA1*/ - -#define __HAL_RCC_AHB2_RELEASE_RESET() (RCC->AHB2RSTR = 0x00U) -#if defined(DCMI) && defined(PSSI) -#define __HAL_RCC_DCMI_PSSI_RELEASE_RESET() (RCC->AHB2RSTR &= ~ (RCC_AHB2RSTR_DCMI_PSSIRST)) -#define __HAL_RCC_DCMI_RELEASE_RESET() __HAL_RCC_DCMI_PSSI_RELEASE_RESET() /* for API backward compatibility*/ -#else -#define __HAL_RCC_DCMI_RELEASE_RESET() (RCC->AHB2RSTR &= ~ (RCC_AHB2RSTR_DCMIRST)) -#endif /* DCMI && PSSI */ -#if defined(CRYP) -#define __HAL_RCC_CRYP_RELEASE_RESET() (RCC->AHB2RSTR &= ~ (RCC_AHB2RSTR_CRYPRST)) -#endif /* CRYP */ -#if defined(HASH) -#define __HAL_RCC_HASH_RELEASE_RESET() (RCC->AHB2RSTR &= ~ (RCC_AHB2RSTR_HASHRST)) -#endif /* HASH */ -#define __HAL_RCC_RNG_RELEASE_RESET() (RCC->AHB2RSTR &= ~ (RCC_AHB2RSTR_RNGRST)) -#define __HAL_RCC_SDMMC2_RELEASE_RESET() (RCC->AHB2RSTR &= ~ (RCC_AHB2RSTR_SDMMC2RST)) -#if defined(FMAC) -#define __HAL_RCC_FMAC_RELEASE_RESET() (RCC->AHB2RSTR &= ~ (RCC_AHB2RSTR_FMACRST)) -#endif /*FMAC*/ -#if defined(CORDIC) -#define __HAL_RCC_CORDIC_RELEASE_RESET() (RCC->AHB2RSTR &= ~ (RCC_AHB2RSTR_CORDICRST)) -#endif /*CORDIC*/ -#if defined(RCC_AHB2RSTR_HSEMRST) -#define __HAL_RCC_HSEM_RELEASE_RESET() (RCC->AHB2RSTR &= ~ (RCC_AHB2RSTR_HSEMRST)) -#endif -#if defined(BDMA1) -#define __HAL_RCC_BDMA1_RELEASE_RESET() (RCC->AHB2RSTR &= ~ (RCC_AHB2RSTR_BDMA1RST)) -#endif /*BDMA1*/ - - -/** @brief Force or release the AHB4 peripheral reset. - */ - -#if (STM32H7_DEV_ID == 0x450UL) -#define __HAL_RCC_AHB4_FORCE_RESET() (RCC->AHB4RSTR = 0x032807FFU) /* Resets GPIOA..GPIOK, CRC, BDMA, ADC3 and HSEM */ -#elif (STM32H7_DEV_ID == 0x480UL) -#define __HAL_RCC_AHB4_FORCE_RESET() (RCC->AHB4RSTR = 0x002007FFU) /* Resets GPIOA..GPIOK and BDMA2 */ -#else -#define __HAL_RCC_AHB4_FORCE_RESET() (RCC->AHB4RSTR = 0x032806FFU) /* Resets GPIOA..GPIOH, GPIOJ, GPIOK, CRC, BDMA, ADC3 and HSEM */ -#endif /* STM32H7_DEV_ID == 0x450UL */ -#define __HAL_RCC_GPIOA_FORCE_RESET() (RCC->AHB4RSTR) |= (RCC_AHB4RSTR_GPIOARST) -#define __HAL_RCC_GPIOB_FORCE_RESET() (RCC->AHB4RSTR) |= (RCC_AHB4RSTR_GPIOBRST) -#define __HAL_RCC_GPIOC_FORCE_RESET() (RCC->AHB4RSTR) |= (RCC_AHB4RSTR_GPIOCRST) -#define __HAL_RCC_GPIOD_FORCE_RESET() (RCC->AHB4RSTR) |= (RCC_AHB4RSTR_GPIODRST) -#define __HAL_RCC_GPIOE_FORCE_RESET() (RCC->AHB4RSTR) |= (RCC_AHB4RSTR_GPIOERST) -#define __HAL_RCC_GPIOF_FORCE_RESET() (RCC->AHB4RSTR) |= (RCC_AHB4RSTR_GPIOFRST) -#define __HAL_RCC_GPIOG_FORCE_RESET() (RCC->AHB4RSTR) |= (RCC_AHB4RSTR_GPIOGRST) -#define __HAL_RCC_GPIOH_FORCE_RESET() (RCC->AHB4RSTR) |= (RCC_AHB4RSTR_GPIOHRST) -#if defined(GPIOI) -#define __HAL_RCC_GPIOI_FORCE_RESET() (RCC->AHB4RSTR) |= (RCC_AHB4RSTR_GPIOIRST) -#endif /* GPIOI */ -#define __HAL_RCC_GPIOJ_FORCE_RESET() (RCC->AHB4RSTR) |= (RCC_AHB4RSTR_GPIOJRST) -#define __HAL_RCC_GPIOK_FORCE_RESET() (RCC->AHB4RSTR) |= (RCC_AHB4RSTR_GPIOKRST) -#if defined(RCC_AHB4RSTR_CRCRST) -#define __HAL_RCC_CRC_FORCE_RESET() (RCC->AHB4RSTR) |= (RCC_AHB4RSTR_CRCRST) -#endif -#if defined(BDMA2) -#define __HAL_RCC_BDMA2_FORCE_RESET() (RCC->AHB4RSTR) |= (RCC_AHB4RSTR_BDMA2RST) -#define __HAL_RCC_BDMA_FORCE_RESET() __HAL_RCC_BDMA2_FORCE_RESET() /* for API backward compatibility*/ -#else -#define __HAL_RCC_BDMA_FORCE_RESET() (RCC->AHB4RSTR) |= (RCC_AHB4RSTR_BDMARST) -#endif /*BDMA2*/ -#if defined(ADC3) -#define __HAL_RCC_ADC3_FORCE_RESET() (RCC->AHB4RSTR) |= (RCC_AHB4RSTR_ADC3RST) -#endif /*ADC3*/ -#if defined(RCC_AHB4RSTR_HSEMRST) -#define __HAL_RCC_HSEM_FORCE_RESET() (RCC->AHB4RSTR) |= (RCC_AHB4RSTR_HSEMRST) -#endif - -#define __HAL_RCC_AHB4_RELEASE_RESET() (RCC->AHB4RSTR = 0x00U) -#define __HAL_RCC_GPIOA_RELEASE_RESET() (RCC->AHB4RSTR) &= ~ (RCC_AHB4RSTR_GPIOARST) -#define __HAL_RCC_GPIOB_RELEASE_RESET() (RCC->AHB4RSTR) &= ~ (RCC_AHB4RSTR_GPIOBRST) -#define __HAL_RCC_GPIOC_RELEASE_RESET() (RCC->AHB4RSTR) &= ~ (RCC_AHB4RSTR_GPIOCRST) -#define __HAL_RCC_GPIOD_RELEASE_RESET() (RCC->AHB4RSTR) &= ~ (RCC_AHB4RSTR_GPIODRST) -#define __HAL_RCC_GPIOE_RELEASE_RESET() (RCC->AHB4RSTR) &= ~ (RCC_AHB4RSTR_GPIOERST) -#define __HAL_RCC_GPIOF_RELEASE_RESET() (RCC->AHB4RSTR) &= ~ (RCC_AHB4RSTR_GPIOFRST) -#define __HAL_RCC_GPIOG_RELEASE_RESET() (RCC->AHB4RSTR) &= ~ (RCC_AHB4RSTR_GPIOGRST) -#define __HAL_RCC_GPIOH_RELEASE_RESET() (RCC->AHB4RSTR) &= ~ (RCC_AHB4RSTR_GPIOHRST) -#if defined(GPIOI) -#define __HAL_RCC_GPIOI_RELEASE_RESET() (RCC->AHB4RSTR) &= ~ (RCC_AHB4RSTR_GPIOIRST) -#endif /* GPIOI */ -#define __HAL_RCC_GPIOJ_RELEASE_RESET() (RCC->AHB4RSTR) &= ~ (RCC_AHB4RSTR_GPIOJRST) -#define __HAL_RCC_GPIOK_RELEASE_RESET() (RCC->AHB4RSTR) &= ~ (RCC_AHB4RSTR_GPIOKRST) -#if defined(RCC_AHB4RSTR_CRCRST) -#define __HAL_RCC_CRC_RELEASE_RESET() (RCC->AHB4RSTR) &= ~ (RCC_AHB4RSTR_CRCRST) -#endif -#if defined(BDMA2) -#define __HAL_RCC_BDMA2_RELEASE_RESET() (RCC->AHB4RSTR) &= ~ (RCC_AHB4RSTR_BDMA2RST) -#define __HAL_RCC_BDMA_RELEASE_RESET() __HAL_RCC_BDMA2_RELEASE_RESET() /* for API backward compatibility*/ -#else -#define __HAL_RCC_BDMA_RELEASE_RESET() (RCC->AHB4RSTR) &= ~ (RCC_AHB4RSTR_BDMARST) -#endif /*BDMA2*/ -#if defined(ADC3) -#define __HAL_RCC_ADC3_RELEASE_RESET() (RCC->AHB4RSTR) &= ~ (RCC_AHB4RSTR_ADC3RST) -#endif /*ADC3*/ -#if defined(RCC_AHB4RSTR_HSEMRST) -#define __HAL_RCC_HSEM_RELEASE_RESET() (RCC->AHB4RSTR) &= ~ (RCC_AHB4RSTR_HSEMRST) -#endif - -/** @brief Force or release the APB3 peripheral reset. - */ -#if (STM32H7_DEV_ID == 0x450UL) -#define __HAL_RCC_APB3_FORCE_RESET() (RCC->APB3RSTR = 0x00000018U) /* Rests LTDC and DSI */ -#else -#define __HAL_RCC_APB3_FORCE_RESET() (RCC->APB3RSTR = 0x00000008U) /* Rests LTDC */ -#endif /* STM32H7_DEV_ID == 0x450UL */ -#if defined(LTDC) -#define __HAL_RCC_LTDC_FORCE_RESET() (RCC->APB3RSTR) |= (RCC_APB3RSTR_LTDCRST) -#endif /* LTDC */ -#if defined(DSI) -#define __HAL_RCC_DSI_FORCE_RESET() (RCC->APB3RSTR) |= (RCC_APB3RSTR_DSIRST) -#endif /*DSI*/ - -#define __HAL_RCC_APB3_RELEASE_RESET() (RCC->APB3RSTR = 0x00U) -#if defined(LTDC) -#define __HAL_RCC_LTDC_RELEASE_RESET() (RCC->APB3RSTR) &= ~ (RCC_APB3RSTR_LTDCRST) -#endif /* LTDC */ -#if defined(DSI) -#define __HAL_RCC_DSI_RELEASE_RESET() (RCC->APB3RSTR) &= ~ (RCC_APB3RSTR_DSIRST) -#endif /*DSI*/ - -/** @brief Force or release the APB1 peripheral reset. - */ -#if (STM32H7_DEV_ID == 0x450UL) || (STM32H7_DEV_ID == 0x480UL) -#define __HAL_RCC_APB1L_FORCE_RESET() (RCC->APB1LRSTR = 0xE8FFC3FFU) /* Resets TIM2..TIM7, TIM12..TIM14, LPTIM1, SPI2, SPI3, SPDIFRX, USART2, USART3, UART4, UART5, I2C1..I2C3, CEC, DAC1(2), UART7 and UART8 */ -#else -#define __HAL_RCC_APB1L_FORCE_RESET() (RCC->APB1LRSTR = 0xEAFFC3FFU) /* Resets TIM2..TIM7, TIM12..TIM14, LPTIM1, SPI2, SPI3, SPDIFRX, USART2, USART3, UART4, UART5, I2C1..I2C3, I2C5, CEC, DAC12, UART7 and UART8 */ -#endif /* STM32H7_DEV_ID == 0x450UL */ -#if (STM32H7_DEV_ID == 0x450UL) || (STM32H7_DEV_ID == 0x480UL) -#define __HAL_RCC_APB1H_FORCE_RESET() (RCC->APB1HRSTR = 0x00000136U) /* Resets CRS, SWP, OPAMP, MDIOS and FDCAN */ -#else -#define __HAL_RCC_APB1H_FORCE_RESET() (RCC->APB1HRSTR = 0x03000136U) /* Resets CRS, SWP, OPAMP, MDIOS, FDCAN, TIM23 and TIM24 */ -#endif /* STM32H7_DEV_ID == 0x450UL */ -#define __HAL_RCC_TIM2_FORCE_RESET() (RCC->APB1LRSTR) |= (RCC_APB1LRSTR_TIM2RST) -#define __HAL_RCC_TIM3_FORCE_RESET() (RCC->APB1LRSTR) |= (RCC_APB1LRSTR_TIM3RST) -#define __HAL_RCC_TIM4_FORCE_RESET() (RCC->APB1LRSTR) |= (RCC_APB1LRSTR_TIM4RST) -#define __HAL_RCC_TIM5_FORCE_RESET() (RCC->APB1LRSTR) |= (RCC_APB1LRSTR_TIM5RST) -#define __HAL_RCC_TIM6_FORCE_RESET() (RCC->APB1LRSTR) |= (RCC_APB1LRSTR_TIM6RST) -#define __HAL_RCC_TIM7_FORCE_RESET() (RCC->APB1LRSTR) |= (RCC_APB1LRSTR_TIM7RST) -#define __HAL_RCC_TIM12_FORCE_RESET() (RCC->APB1LRSTR) |= (RCC_APB1LRSTR_TIM12RST) -#define __HAL_RCC_TIM13_FORCE_RESET() (RCC->APB1LRSTR) |= (RCC_APB1LRSTR_TIM13RST) -#define __HAL_RCC_TIM14_FORCE_RESET() (RCC->APB1LRSTR) |= (RCC_APB1LRSTR_TIM14RST) -#define __HAL_RCC_LPTIM1_FORCE_RESET() (RCC->APB1LRSTR) |= (RCC_APB1LRSTR_LPTIM1RST) -#define __HAL_RCC_SPI2_FORCE_RESET() (RCC->APB1LRSTR) |= (RCC_APB1LRSTR_SPI2RST) -#define __HAL_RCC_SPI3_FORCE_RESET() (RCC->APB1LRSTR) |= (RCC_APB1LRSTR_SPI3RST) -#define __HAL_RCC_SPDIFRX_FORCE_RESET() (RCC->APB1LRSTR) |= (RCC_APB1LRSTR_SPDIFRXRST) -#define __HAL_RCC_USART2_FORCE_RESET() (RCC->APB1LRSTR) |= (RCC_APB1LRSTR_USART2RST) -#define __HAL_RCC_USART3_FORCE_RESET() (RCC->APB1LRSTR) |= (RCC_APB1LRSTR_USART3RST) -#define __HAL_RCC_UART4_FORCE_RESET() (RCC->APB1LRSTR) |= (RCC_APB1LRSTR_UART4RST) -#define __HAL_RCC_UART5_FORCE_RESET() (RCC->APB1LRSTR) |= (RCC_APB1LRSTR_UART5RST) -#define __HAL_RCC_I2C1_FORCE_RESET() (RCC->APB1LRSTR) |= (RCC_APB1LRSTR_I2C1RST) -#define __HAL_RCC_I2C2_FORCE_RESET() (RCC->APB1LRSTR) |= (RCC_APB1LRSTR_I2C2RST) -#define __HAL_RCC_I2C3_FORCE_RESET() (RCC->APB1LRSTR) |= (RCC_APB1LRSTR_I2C3RST) -#if defined(I2C5) -#define __HAL_RCC_I2C5_FORCE_RESET() (RCC->APB1LRSTR) |= (RCC_APB1LRSTR_I2C5RST) -#endif /* I2C5 */ -#define __HAL_RCC_CEC_FORCE_RESET() (RCC->APB1LRSTR) |= (RCC_APB1LRSTR_CECRST) -#define __HAL_RCC_DAC12_FORCE_RESET() (RCC->APB1LRSTR) |= (RCC_APB1LRSTR_DAC12RST) -#define __HAL_RCC_UART7_FORCE_RESET() (RCC->APB1LRSTR) |= (RCC_APB1LRSTR_UART7RST) -#define __HAL_RCC_UART8_FORCE_RESET() (RCC->APB1LRSTR) |= (RCC_APB1LRSTR_UART8RST) -#define __HAL_RCC_CRS_FORCE_RESET() (RCC->APB1HRSTR) |= (RCC_APB1HRSTR_CRSRST) -#define __HAL_RCC_SWPMI1_FORCE_RESET() (RCC->APB1HRSTR) |= (RCC_APB1HRSTR_SWPMIRST) -#define __HAL_RCC_OPAMP_FORCE_RESET() (RCC->APB1HRSTR) |= (RCC_APB1HRSTR_OPAMPRST) -#define __HAL_RCC_MDIOS_FORCE_RESET() (RCC->APB1HRSTR) |= (RCC_APB1HRSTR_MDIOSRST) -#define __HAL_RCC_FDCAN_FORCE_RESET() (RCC->APB1HRSTR) |= (RCC_APB1HRSTR_FDCANRST) -#if defined(TIM23) -#define __HAL_RCC_TIM23_FORCE_RESET() (RCC->APB1HRSTR) |= (RCC_APB1HRSTR_TIM23RST) -#endif /* TIM23 */ -#if defined(TIM24) -#define __HAL_RCC_TIM24_FORCE_RESET() (RCC->APB1HRSTR) |= (RCC_APB1HRSTR_TIM24RST) -#endif /* TIM24 */ - -#define __HAL_RCC_APB1L_RELEASE_RESET() (RCC->APB1LRSTR = 0x00U) -#define __HAL_RCC_APB1H_RELEASE_RESET() (RCC->APB1HRSTR = 0x00U) -#define __HAL_RCC_TIM2_RELEASE_RESET() (RCC->APB1LRSTR) &= ~ (RCC_APB1LRSTR_TIM2RST) -#define __HAL_RCC_TIM3_RELEASE_RESET() (RCC->APB1LRSTR) &= ~ (RCC_APB1LRSTR_TIM3RST) -#define __HAL_RCC_TIM4_RELEASE_RESET() (RCC->APB1LRSTR) &= ~ (RCC_APB1LRSTR_TIM4RST) -#define __HAL_RCC_TIM5_RELEASE_RESET() (RCC->APB1LRSTR) &= ~ (RCC_APB1LRSTR_TIM5RST) -#define __HAL_RCC_TIM6_RELEASE_RESET() (RCC->APB1LRSTR) &= ~ (RCC_APB1LRSTR_TIM6RST) -#define __HAL_RCC_TIM7_RELEASE_RESET() (RCC->APB1LRSTR) &= ~ (RCC_APB1LRSTR_TIM7RST) -#define __HAL_RCC_TIM12_RELEASE_RESET() (RCC->APB1LRSTR) &= ~ (RCC_APB1LRSTR_TIM12RST) -#define __HAL_RCC_TIM13_RELEASE_RESET() (RCC->APB1LRSTR) &= ~ (RCC_APB1LRSTR_TIM13RST) -#define __HAL_RCC_TIM14_RELEASE_RESET() (RCC->APB1LRSTR) &= ~ (RCC_APB1LRSTR_TIM14RST) -#define __HAL_RCC_LPTIM1_RELEASE_RESET() (RCC->APB1LRSTR) &= ~ (RCC_APB1LRSTR_LPTIM1RST) -#define __HAL_RCC_SPI2_RELEASE_RESET() (RCC->APB1LRSTR) &= ~ (RCC_APB1LRSTR_SPI2RST) -#define __HAL_RCC_SPI3_RELEASE_RESET() (RCC->APB1LRSTR) &= ~ (RCC_APB1LRSTR_SPI3RST) -#define __HAL_RCC_SPDIFRX_RELEASE_RESET() (RCC->APB1LRSTR) &= ~ (RCC_APB1LRSTR_SPDIFRXRST) -#define __HAL_RCC_USART2_RELEASE_RESET() (RCC->APB1LRSTR) &= ~ (RCC_APB1LRSTR_USART2RST) -#define __HAL_RCC_USART3_RELEASE_RESET() (RCC->APB1LRSTR) &= ~ (RCC_APB1LRSTR_USART3RST) -#define __HAL_RCC_UART4_RELEASE_RESET() (RCC->APB1LRSTR) &= ~ (RCC_APB1LRSTR_UART4RST) -#define __HAL_RCC_UART5_RELEASE_RESET() (RCC->APB1LRSTR) &= ~ (RCC_APB1LRSTR_UART5RST) -#define __HAL_RCC_I2C1_RELEASE_RESET() (RCC->APB1LRSTR) &= ~ (RCC_APB1LRSTR_I2C1RST) -#define __HAL_RCC_I2C2_RELEASE_RESET() (RCC->APB1LRSTR) &= ~ (RCC_APB1LRSTR_I2C2RST) -#define __HAL_RCC_I2C3_RELEASE_RESET() (RCC->APB1LRSTR) &= ~ (RCC_APB1LRSTR_I2C3RST) -#if defined(I2C5) -#define __HAL_RCC_I2C5_RELEASE_RESET() (RCC->APB1LRSTR) &= ~ (RCC_APB1LRSTR_I2C5RST) -#endif /* I2C5 */ -#define __HAL_RCC_CEC_RELEASE_RESET() (RCC->APB1LRSTR) &= ~ (RCC_APB1LRSTR_CECRST) -#define __HAL_RCC_DAC12_RELEASE_RESET() (RCC->APB1LRSTR) &= ~ (RCC_APB1LRSTR_DAC12RST) -#define __HAL_RCC_UART7_RELEASE_RESET() (RCC->APB1LRSTR) &= ~ (RCC_APB1LRSTR_UART7RST) -#define __HAL_RCC_UART8_RELEASE_RESET() (RCC->APB1LRSTR) &= ~ (RCC_APB1LRSTR_UART8RST) -#define __HAL_RCC_CRS_RELEASE_RESET() (RCC->APB1HRSTR) &= ~ (RCC_APB1HRSTR_CRSRST) -#define __HAL_RCC_SWPMI1_RELEASE_RESET() (RCC->APB1HRSTR) &= ~ (RCC_APB1HRSTR_SWPMIRST) -#define __HAL_RCC_OPAMP_RELEASE_RESET() (RCC->APB1HRSTR) &= ~ (RCC_APB1HRSTR_OPAMPRST) -#define __HAL_RCC_MDIOS_RELEASE_RESET() (RCC->APB1HRSTR) &= ~ (RCC_APB1HRSTR_MDIOSRST) -#define __HAL_RCC_FDCAN_RELEASE_RESET() (RCC->APB1HRSTR) &= ~ (RCC_APB1HRSTR_FDCANRST) -#if defined(TIM23) -#define __HAL_RCC_TIM23_RELEASE_RESET() (RCC->APB1HRSTR) &= ~ (RCC_APB1HRSTR_TIM23RST) -#endif /* TIM23 */ -#if defined(TIM24) -#define __HAL_RCC_TIM24_RELEASE_RESET() (RCC->APB1HRSTR) &= ~ (RCC_APB1HRSTR_TIM24RST) -#endif /* TIM24 */ - -/** @brief Force or release the APB2 peripheral reset. - */ -#if (STM32H7_DEV_ID == 0x450UL) -#define __HAL_RCC_APB2_FORCE_RESET() (RCC->APB2RSTR = 0x31D73033U) /* Resets TIM1, TIM8, USART1, USART6, SPI1, SPI4, TIM15..TIM17, SPI5, SAI1..SAI3, DFSDM1 and HRTIM */ -#elif (STM32H7_DEV_ID == 0x480UL) -#define __HAL_RCC_APB2_FORCE_RESET() (RCC->APB2RSTR = 0x40D730F3U) /* Resets TIM1, TIM8, USART1, USART6, UART9, USART10, SPI1, SPI4, TIM15..TIM17, SPI5, SAI1, SAI2 and DFSDM1 */ -#else -#define __HAL_RCC_APB2_FORCE_RESET() (RCC->APB2RSTR = 0x405730F3U) /* Resets TIM1, TIM8, USART1, USART6, UART9, USART10, SPI1, SPI4, TIM15..TIM17, SPI5, SAI1 and DFSDM1 */ -#endif /* STM32H7_DEV_ID == 0x450UL */ -#define __HAL_RCC_TIM1_FORCE_RESET() (RCC->APB2RSTR) |= (RCC_APB2RSTR_TIM1RST) -#define __HAL_RCC_TIM8_FORCE_RESET() (RCC->APB2RSTR) |= (RCC_APB2RSTR_TIM8RST) -#define __HAL_RCC_USART1_FORCE_RESET() (RCC->APB2RSTR) |= (RCC_APB2RSTR_USART1RST) -#define __HAL_RCC_USART6_FORCE_RESET() (RCC->APB2RSTR) |= (RCC_APB2RSTR_USART6RST) -#if defined(UART9) -#define __HAL_RCC_UART9_FORCE_RESET() (RCC->APB2RSTR) |= (RCC_APB2RSTR_UART9RST) -#endif /*UART9*/ -#if defined(USART10) -#define __HAL_RCC_USART10_FORCE_RESET() (RCC->APB2RSTR) |= (RCC_APB2RSTR_USART10RST) -#endif /*USART10*/ -#define __HAL_RCC_SPI1_FORCE_RESET() (RCC->APB2RSTR) |= (RCC_APB2RSTR_SPI1RST) -#define __HAL_RCC_SPI4_FORCE_RESET() (RCC->APB2RSTR) |= (RCC_APB2RSTR_SPI4RST) -#define __HAL_RCC_TIM15_FORCE_RESET() (RCC->APB2RSTR) |= (RCC_APB2RSTR_TIM15RST) -#define __HAL_RCC_TIM16_FORCE_RESET() (RCC->APB2RSTR) |= (RCC_APB2RSTR_TIM16RST) -#define __HAL_RCC_TIM17_FORCE_RESET() (RCC->APB2RSTR) |= (RCC_APB2RSTR_TIM17RST) -#define __HAL_RCC_SPI5_FORCE_RESET() (RCC->APB2RSTR) |= (RCC_APB2RSTR_SPI5RST) -#define __HAL_RCC_SAI1_FORCE_RESET() (RCC->APB2RSTR) |= (RCC_APB2RSTR_SAI1RST) -#if defined(SAI2) -#define __HAL_RCC_SAI2_FORCE_RESET() (RCC->APB2RSTR) |= (RCC_APB2RSTR_SAI2RST) -#endif /* SAI2 */ -#if defined(SAI3) -#define __HAL_RCC_SAI3_FORCE_RESET() (RCC->APB2RSTR) |= (RCC_APB2RSTR_SAI3RST) -#endif /*SAI3*/ -#define __HAL_RCC_DFSDM1_FORCE_RESET() (RCC->APB2RSTR) |= (RCC_APB2RSTR_DFSDM1RST) -#if defined(HRTIM1) -#define __HAL_RCC_HRTIM1_FORCE_RESET() (RCC->APB2RSTR) |= (RCC_APB2RSTR_HRTIMRST) -#endif /*HRTIM1*/ - -#define __HAL_RCC_APB2_RELEASE_RESET() (RCC->APB2RSTR = 0x00U) -#define __HAL_RCC_TIM1_RELEASE_RESET() (RCC->APB2RSTR) &= ~ (RCC_APB2RSTR_TIM1RST) -#define __HAL_RCC_TIM8_RELEASE_RESET() (RCC->APB2RSTR) &= ~ (RCC_APB2RSTR_TIM8RST) -#define __HAL_RCC_USART1_RELEASE_RESET() (RCC->APB2RSTR) &= ~ (RCC_APB2RSTR_USART1RST) -#define __HAL_RCC_USART6_RELEASE_RESET() (RCC->APB2RSTR) &= ~ (RCC_APB2RSTR_USART6RST) -#if defined(UART9) -#define __HAL_RCC_UART9_RELEASE_RESET() (RCC->APB2RSTR) &= ~ (RCC_APB2RSTR_UART9RST) -#endif /*UART9*/ -#if defined(USART10) -#define __HAL_RCC_USART10_RELEASE_RESET() (RCC->APB2RSTR) &= ~ (RCC_APB2RSTR_USART10RST) -#endif /*USART10*/ -#define __HAL_RCC_SPI1_RELEASE_RESET() (RCC->APB2RSTR) &= ~ (RCC_APB2RSTR_SPI1RST) -#define __HAL_RCC_SPI4_RELEASE_RESET() (RCC->APB2RSTR) &= ~ (RCC_APB2RSTR_SPI4RST) -#define __HAL_RCC_TIM15_RELEASE_RESET() (RCC->APB2RSTR) &= ~ (RCC_APB2RSTR_TIM15RST) -#define __HAL_RCC_TIM16_RELEASE_RESET() (RCC->APB2RSTR) &= ~ (RCC_APB2RSTR_TIM16RST) -#define __HAL_RCC_TIM17_RELEASE_RESET() (RCC->APB2RSTR) &= ~ (RCC_APB2RSTR_TIM17RST) -#define __HAL_RCC_SPI5_RELEASE_RESET() (RCC->APB2RSTR) &= ~ (RCC_APB2RSTR_SPI5RST) -#define __HAL_RCC_SAI1_RELEASE_RESET() (RCC->APB2RSTR) &= ~ (RCC_APB2RSTR_SAI1RST) -#if defined(SAI2) -#define __HAL_RCC_SAI2_RELEASE_RESET() (RCC->APB2RSTR) &= ~ (RCC_APB2RSTR_SAI2RST) -#endif /* SAI2 */ -#if defined(SAI3) -#define __HAL_RCC_SAI3_RELEASE_RESET() (RCC->APB2RSTR) &= ~ (RCC_APB2RSTR_SAI3RST) -#endif /*SAI3*/ -#define __HAL_RCC_DFSDM1_RELEASE_RESET() (RCC->APB2RSTR) &= ~ (RCC_APB2RSTR_DFSDM1RST) -#if defined(HRTIM1) -#define __HAL_RCC_HRTIM1_RELEASE_RESET() (RCC->APB2RSTR) &= ~ (RCC_APB2RSTR_HRTIMRST) -#endif /*HRTIM1*/ - -/** @brief Force or release the APB4 peripheral reset. - */ - -#if (STM32H7_DEV_ID == 0x450UL) -#define __HAL_RCC_APB4_FORCE_RESET() (RCC->APB4RSTR = 0x0020DEAAU) /* Resets SYSCFG, LPUART1, SPI6, I2C4, LPTIM2..LPTIM5, COMP12, VREF and SAI4 */ -#elif (STM32H7_DEV_ID == 0x480UL) -#define __HAL_RCC_APB4_FORCE_RESET() (RCC->APB4RSTR = 0x0C00E6AAU) /* Resets SYSCFG, LPUART1, SPI6, I2C4, LPTIM2, LPTIM3, DAC2, COMP12, VREF, DTS and DFSDM2 */ -#else -#define __HAL_RCC_APB4_FORCE_RESET() (RCC->APB4RSTR = 0x0420DEAAU) /* Resets SYSCFG, LPUART1, SPI6, I2C4, LPTIM2..LPTIM5, COMP12, VREF, SAI4 and DTS */ -#endif /* STM32H7_DEV_ID == 0x450UL */ -#define __HAL_RCC_SYSCFG_FORCE_RESET() (RCC->APB4RSTR) |= (RCC_APB4RSTR_SYSCFGRST) -#define __HAL_RCC_LPUART1_FORCE_RESET() (RCC->APB4RSTR) |= (RCC_APB4RSTR_LPUART1RST) -#define __HAL_RCC_SPI6_FORCE_RESET() (RCC->APB4RSTR) |= (RCC_APB4RSTR_SPI6RST) -#define __HAL_RCC_I2C4_FORCE_RESET() (RCC->APB4RSTR) |= (RCC_APB4RSTR_I2C4RST) -#define __HAL_RCC_LPTIM2_FORCE_RESET() (RCC->APB4RSTR) |= (RCC_APB4RSTR_LPTIM2RST) -#define __HAL_RCC_LPTIM3_FORCE_RESET() (RCC->APB4RSTR) |= (RCC_APB4RSTR_LPTIM3RST) -#if defined(LPTIM4) -#define __HAL_RCC_LPTIM4_FORCE_RESET() (RCC->APB4RSTR) |= (RCC_APB4RSTR_LPTIM4RST) -#endif /*LPTIM4*/ -#if defined(LPTIM5) -#define __HAL_RCC_LPTIM5_FORCE_RESET() (RCC->APB4RSTR) |= (RCC_APB4RSTR_LPTIM5RST) -#endif /*LPTIM5*/ -#if defined(DAC2) -#define __HAL_RCC_DAC2_FORCE_RESET() (RCC->APB4RSTR) |= (RCC_APB4RSTR_DAC2RST) -#endif /*DAC2*/ -#define __HAL_RCC_COMP12_FORCE_RESET() (RCC->APB4RSTR) |= (RCC_APB4RSTR_COMP12RST) -#define __HAL_RCC_VREF_FORCE_RESET() (RCC->APB4RSTR) |= (RCC_APB4RSTR_VREFRST) -#if defined(SAI4) -#define __HAL_RCC_SAI4_FORCE_RESET() (RCC->APB4RSTR) |= (RCC_APB4RSTR_SAI4RST) -#endif /*SAI4*/ -#if defined(DTS) -#define __HAL_RCC_DTS_FORCE_RESET() (RCC->APB4RSTR) |= (RCC_APB4RSTR_DTSRST) -#endif /*DTS*/ -#if defined(DFSDM2_BASE) -#define __HAL_RCC_DFSDM2_FORCE_RESET() (RCC->APB4RSTR) |= (RCC_APB4RSTR_DFSDM2RST) -#endif /*DFSDM2*/ - -#define __HAL_RCC_APB4_RELEASE_RESET() (RCC->APB4RSTR = 0x00U) -#define __HAL_RCC_SYSCFG_RELEASE_RESET() (RCC->APB4RSTR) &= ~ (RCC_APB4RSTR_SYSCFGRST) -#define __HAL_RCC_LPUART1_RELEASE_RESET() (RCC->APB4RSTR) &= ~ (RCC_APB4RSTR_LPUART1RST) -#define __HAL_RCC_SPI6_RELEASE_RESET() (RCC->APB4RSTR) &= ~ (RCC_APB4RSTR_SPI6RST) -#define __HAL_RCC_I2C4_RELEASE_RESET() (RCC->APB4RSTR) &= ~ (RCC_APB4RSTR_I2C4RST) -#define __HAL_RCC_LPTIM2_RELEASE_RESET() (RCC->APB4RSTR) &= ~ (RCC_APB4RSTR_LPTIM2RST) -#define __HAL_RCC_LPTIM3_RELEASE_RESET() (RCC->APB4RSTR) &= ~ (RCC_APB4RSTR_LPTIM3RST) -#if defined(LPTIM4) -#define __HAL_RCC_LPTIM4_RELEASE_RESET() (RCC->APB4RSTR) &= ~ (RCC_APB4RSTR_LPTIM4RST) -#endif /*LPTIM4*/ -#if defined(LPTIM5) -#define __HAL_RCC_LPTIM5_RELEASE_RESET() (RCC->APB4RSTR) &= ~ (RCC_APB4RSTR_LPTIM5RST) -#endif /*LPTIM5*/ -#if defined(RCC_APB4RSTR_DAC2RST) -#define __HAL_RCC_DAC2_RELEASE_RESET() (RCC->APB4RSTR) &= ~ (RCC_APB4RSTR_DAC2RST) -#endif -#define __HAL_RCC_COMP12_RELEASE_RESET() (RCC->APB4RSTR) &= ~ (RCC_APB4RSTR_COMP12RST) -#define __HAL_RCC_VREF_RELEASE_RESET() (RCC->APB4RSTR) &= ~ (RCC_APB4RSTR_VREFRST) -#if defined(SAI4) -#define __HAL_RCC_SAI4_RELEASE_RESET() (RCC->APB4RSTR) &= ~ (RCC_APB4RSTR_SAI4RST) -#endif /*SAI4*/ -#if defined(DTS) -#define __HAL_RCC_DTS_RELEASE_RESET() (RCC->APB4RSTR) &= ~ (RCC_APB4RSTR_DTSRST) -#endif /*DTS*/ -#if defined(DFSDM2_BASE) -#define __HAL_RCC_DFSDM2_RELEASE_RESET() (RCC->APB4RSTR) &= ~ (RCC_APB4RSTR_DFSDM2RST) -#endif /*DFSDM2*/ - -/** @brief Enable or disable the AHB3 peripheral clock during Low Power (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. - * @note By default, all peripheral clocks are enabled during SLEEP mode. - */ - - -#define __HAL_RCC_MDMA_CLK_SLEEP_ENABLE() (RCC->AHB3LPENR |= (RCC_AHB3LPENR_MDMALPEN)) -#define __HAL_RCC_DMA2D_CLK_SLEEP_ENABLE() (RCC->AHB3LPENR |= (RCC_AHB3LPENR_DMA2DLPEN)) -#if defined(JPEG) -#define __HAL_RCC_JPGDEC_CLK_SLEEP_ENABLE() (RCC->AHB3LPENR |= (RCC_AHB3LPENR_JPGDECLPEN)) -#endif /* JPEG */ -#define __HAL_RCC_FLASH_CLK_SLEEP_ENABLE() (RCC->AHB3LPENR |= (RCC_AHB3LPENR_FLASHLPEN)) -#define __HAL_RCC_FMC_CLK_SLEEP_ENABLE() (RCC->AHB3LPENR |= (RCC_AHB3LPENR_FMCLPEN)) -#if defined(QUADSPI) -#define __HAL_RCC_QSPI_CLK_SLEEP_ENABLE() (RCC->AHB3LPENR |= (RCC_AHB3LPENR_QSPILPEN)) -#endif /*QUADSPI*/ -#define __HAL_RCC_SDMMC1_CLK_SLEEP_ENABLE() (RCC->AHB3LPENR |= (RCC_AHB3LPENR_SDMMC1LPEN)) -#if defined(OCTOSPI1) -#define __HAL_RCC_OSPI1_CLK_SLEEP_ENABLE() (RCC->AHB3LPENR |= (RCC_AHB3LPENR_OSPI1LPEN)) -#endif /*OCTOSPI1*/ -#if defined(OCTOSPI2) -#define __HAL_RCC_OSPI2_CLK_SLEEP_ENABLE() (RCC->AHB3LPENR |= (RCC_AHB3LPENR_OSPI2LPEN)) -#endif /*OCTOSPI2*/ -#if defined(OCTOSPIM) -#define __HAL_RCC_IOMNGR_CLK_SLEEP_ENABLE() (RCC->AHB3LPENR |= (RCC_AHB3LPENR_IOMNGRLPEN)) -#endif /*OCTOSPIM*/ -#if defined(OTFDEC1) -#define __HAL_RCC_OTFDEC1_CLK_SLEEP_ENABLE() (RCC->AHB3LPENR |= (RCC_AHB3LPENR_OTFDEC1LPEN)) -#endif /*OTFDEC1*/ -#if defined(OTFDEC2) -#define __HAL_RCC_OTFDEC2_CLK_SLEEP_ENABLE() (RCC->AHB3LPENR |= (RCC_AHB3LPENR_OTFDEC2LPEN)) -#endif /*OTFDEC2*/ -#if defined(GFXMMU) -#define __HAL_RCC_GFXMMU_CLK_SLEEP_ENABLE() (RCC->AHB3LPENR |= (RCC_AHB3LPENR_GFXMMULPEN)) -#endif /*GFXMMU*/ -#if defined(CD_AXISRAM2_BASE) -#define __HAL_RCC_AXISRAM2_CLK_SLEEP_ENABLE() (RCC->AHB3LPENR |= (RCC_AHB3LPENR_AXISRAM2LPEN)) -#endif -#if defined(CD_AXISRAM3_BASE) -#define __HAL_RCC_AXISRAM3_CLK_SLEEP_ENABLE() (RCC->AHB3LPENR |= (RCC_AHB3LPENR_AXISRAM3LPEN)) -#endif -#define __HAL_RCC_DTCM1_CLK_SLEEP_ENABLE() (RCC->AHB3LPENR |= (RCC_AHB3LPENR_DTCM1LPEN)) -#define __HAL_RCC_DTCM2_CLK_SLEEP_ENABLE() (RCC->AHB3LPENR |= (RCC_AHB3LPENR_DTCM2LPEN)) -#define __HAL_RCC_ITCM_CLK_SLEEP_ENABLE() (RCC->AHB3LPENR |= (RCC_AHB3LPENR_ITCMLPEN)) -#if defined(RCC_AHB3LPENR_AXISRAMLPEN) -#define __HAL_RCC_D1SRAM1_CLK_SLEEP_ENABLE() (RCC->AHB3LPENR |= (RCC_AHB3LPENR_AXISRAMLPEN)) -#define __HAL_RCC_AXISRAM_CLK_SLEEP_ENABLE __HAL_RCC_D1SRAM1_CLK_SLEEP_ENABLE -#else -#define __HAL_RCC_AXISRAM1_CLK_SLEEP_ENABLE() (RCC->AHB3LPENR |= (RCC_AHB3LPENR_AXISRAM1LPEN)) -#define __HAL_RCC_D1SRAM1_CLK_SLEEP_ENABLE __HAL_RCC_AXISRAM1_CLK_SLEEP_ENABLE /* For backward compatibility */ -#endif /* RCC_AHB3LPENR_AXISRAMLPEN */ - -#define __HAL_RCC_MDMA_CLK_SLEEP_DISABLE() (RCC->AHB3LPENR &= ~ (RCC_AHB3LPENR_MDMALPEN)) -#define __HAL_RCC_DMA2D_CLK_SLEEP_DISABLE() (RCC->AHB3LPENR &= ~ (RCC_AHB3LPENR_DMA2DLPEN)) -#if defined(JPEG) -#define __HAL_RCC_JPGDEC_CLK_SLEEP_DISABLE() (RCC->AHB3LPENR &= ~ (RCC_AHB3LPENR_JPGDECLPEN)) -#endif /* JPEG */ -#define __HAL_RCC_FLASH_CLK_SLEEP_DISABLE() (RCC->AHB3LPENR &= ~ (RCC_AHB3LPENR_FLASHLPEN)) -#define __HAL_RCC_FMC_CLK_SLEEP_DISABLE() (RCC->AHB3LPENR &= ~ (RCC_AHB3LPENR_FMCLPEN)) -#if defined(QUADSPI) -#define __HAL_RCC_QSPI_CLK_SLEEP_DISABLE() (RCC->AHB3LPENR &= ~ (RCC_AHB3LPENR_QSPILPEN)) -#endif /*QUADSPI*/ -#define __HAL_RCC_SDMMC1_CLK_SLEEP_DISABLE() (RCC->AHB3LPENR &= ~ (RCC_AHB3LPENR_SDMMC1LPEN)) -#if defined(OCTOSPI1) -#define __HAL_RCC_OSPI1_CLK_SLEEP_DISABLE() (RCC->AHB3LPENR &= ~ (RCC_AHB3LPENR_OSPI1LPEN)) -#endif /*OCTOSPI1*/ -#if defined(OCTOSPI2) -#define __HAL_RCC_OSPI2_CLK_SLEEP_DISABLE() (RCC->AHB3LPENR &= ~ (RCC_AHB3LPENR_OSPI2LPEN)) -#endif /*OCTOSPI2*/ -#if defined(OCTOSPIM) -#define __HAL_RCC_IOMNGR_CLK_SLEEP_DISABLE() (RCC->AHB3LPENR &= ~ (RCC_AHB3LPENR_IOMNGRLPEN)) -#endif /*OCTOSPIM*/ -#if defined(OTFDEC1) -#define __HAL_RCC_OTFDEC1_CLK_SLEEP_DISABLE() (RCC->AHB3LPENR &= ~ (RCC_AHB3LPENR_OTFDEC1LPEN)) -#endif /*OTFDEC1*/ -#if defined(OTFDEC2) -#define __HAL_RCC_OTFDEC2_CLK_SLEEP_DISABLE() (RCC->AHB3LPENR &= ~ (RCC_AHB3LPENR_OTFDEC2LPEN)) -#endif /*OTFDEC2*/ -#if defined(GFXMMU) -#define __HAL_RCC_GFXMMU_CLK_SLEEP_DISABLE() (RCC->AHB3LPENR &= ~ (RCC_AHB3LPENR_GFXMMULPEN)) -#endif /*GFXMMU*/ -#if defined(CD_AXISRAM2_BASE) -#define __HAL_RCC_AXISRAM2_CLK_SLEEP_DISABLE() (RCC->AHB3LPENR &= ~ (RCC_AHB3LPENR_AXISRAM2LPEN)) -#endif -#if defined(CD_AXISRAM3_BASE) -#define __HAL_RCC_AXISRAM3_CLK_SLEEP_DISABLE() (RCC->AHB3LPENR &= ~ (RCC_AHB3LPENR_AXISRAM3LPEN)) -#endif -#define __HAL_RCC_DTCM1_CLK_SLEEP_DISABLE() (RCC->AHB3LPENR &= ~ (RCC_AHB3LPENR_DTCM1LPEN)) -#define __HAL_RCC_DTCM2_CLK_SLEEP_DISABLE() (RCC->AHB3LPENR &= ~ (RCC_AHB3LPENR_DTCM2LPEN)) -#define __HAL_RCC_ITCM_CLK_SLEEP_DISABLE() (RCC->AHB3LPENR &= ~ (RCC_AHB3LPENR_ITCMLPEN)) -#if defined(RCC_AHB3LPENR_AXISRAMLPEN) -#define __HAL_RCC_D1SRAM1_CLK_SLEEP_DISABLE() (RCC->AHB3LPENR &= ~ (RCC_AHB3LPENR_AXISRAMLPEN)) -#define __HAL_RCC_AXISRAM_CLK_SLEEP_DISABLE __HAL_RCC_D1SRAM1_CLK_SLEEP_DISABLE -#else -#define __HAL_RCC_AXISRAM1_CLK_SLEEP_DISABLE() (RCC->AHB3LPENR &= ~ (RCC_AHB3LPENR_AXISRAM1LPEN)) -#define __HAL_RCC_D1SRAM1_CLK_SLEEP_DISABLE __HAL_RCC_AXISRAM1_CLK_SLEEP_DISABLE /* For backward compatibility */ -#endif /* RCC_AHB3LPENR_AXISRAMLPEN */ - -/** @brief Get the enable or disable status of the AHB3 peripheral clock during Low Poser (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. - * @note By default, all peripheral clocks are enabled during SLEEP mode. - */ - -#define __HAL_RCC_MDMA_IS_CLK_SLEEP_ENABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_MDMALPEN) != 0U) -#define __HAL_RCC_DMA2D_IS_CLK_SLEEP_ENABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_DMA2DLPEN) != 0U) -#if defined(JPEG) -#define __HAL_RCC_JPGDEC_IS_CLK_SLEEP_ENABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_JPGDECLPEN) != 0U) -#endif /* JPEG */ -#define __HAL_RCC_FLASH_IS_CLK_SLEEP_ENABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_FLASHLPEN) != 0U) -#define __HAL_RCC_FMC_IS_CLK_SLEEP_ENABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_FMCLPEN) != 0U) -#if defined(QUADSPI) -#define __HAL_RCC_QSPI_IS_CLK_SLEEP_ENABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_QSPILPEN) != 0U) -#endif /*QUADSPI*/ -#define __HAL_RCC_SDMMC1_IS_CLK_SLEEP_ENABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_SDMMC1LPEN) != 0U) -#if defined(OCTOSPI1) -#define __HAL_RCC_OSPI1_IS_CLK_SLEEP_ENABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_OSPI1LPEN) != 0U) -#endif /*OCTOSPI1*/ -#if defined(OCTOSPI2) -#define __HAL_RCC_OSPI2_IS_CLK_SLEEP_ENABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_OSPI2LPEN) != 0U) -#endif /*OCTOSPI2*/ -#if defined(OCTOSPIM) -#define __HAL_RCC_IOMNGR_IS_CLK_SLEEP_ENABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_IOMNGRLPEN) != 0U) -#endif /*OCTOSPIM*/ -#if defined(OTFDEC1) -#define __HAL_RCC_OTFDEC1_IS_CLK_SLEEP_ENABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_OTFDEC1LPEN) != 0U) -#endif /*OTFDEC1*/ -#if defined(OTFDEC2) -#define __HAL_RCC_OTFDEC2_IS_CLK_SLEEP_ENABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_OTFDEC2LPEN) != 0U) -#endif /*OTFDEC2*/ -#if defined(GFXMMU) -#define __HAL_RCC_GFXMMU_IS_CLK_SLEEP_ENABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_GFXMMULPEN) != 0U) -#endif /*GFXMMU*/ -#if defined(CD_AXISRAM2_BASE) -#define __HAL_RCC_AXISRAM2_IS_CLK_SLEEP_ENABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_AXISRAM2LPEN) != 0U) -#endif -#if defined(CD_AXISRAM3_BASE) -#define __HAL_RCC_AXISRAM3_IS_CLK_SLEEP_ENABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_AXISRAM3LPEN) != 0U) -#endif -#define __HAL_RCC_DTCM1_IS_CLK_SLEEP_ENABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_DTCM1LPEN) != 0U) -#define __HAL_RCC_DTCM2_IS_CLK_SLEEP_ENABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_DTCM2LPEN) != 0U) -#define __HAL_RCC_ITCM_IS_CLK_SLEEP_ENABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_ITCMLPEN) != 0U) -#if defined(RCC_AHB3LPENR_AXISRAMLPEN) -#define __HAL_RCC_D1SRAM1_IS_CLK_SLEEP_ENABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_AXISRAMLPEN) != 0U) -#else -#define __HAL_RCC_AXISRAM1_IS_CLK_SLEEP_ENABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_AXISRAM1LPEN) != 0U) -#endif - -#define __HAL_RCC_MDMA_IS_CLK_SLEEP_DISABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_MDMALPEN) == 0U) -#define __HAL_RCC_DMA2D_IS_CLK_SLEEP_DISABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_DMA2DLPEN) == 0U) -#if defined(JPEG) -#define __HAL_RCC_JPGDEC_IS_CLK_SLEEP_DISABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_JPGDECLPEN) == 0U) -#endif /* JPEG */ -#define __HAL_RCC_FLASH_IS_CLK_SLEEP_DISABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_FLASHLPEN) == 0U) -#define __HAL_RCC_FMC_IS_CLK_SLEEP_DISABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_FMCLPEN) == 0U) -#if defined(QUADSPI) -#define __HAL_RCC_QSPI_IS_CLK_SLEEP_DISABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_QSPILPEN) == 0U) -#endif /*QUADSPI*/ -#define __HAL_RCC_SDMMC1_IS_CLK_SLEEP_DISABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_SDMMC1LPEN) == 0U) -#if defined(OCTOSPI1) -#define __HAL_RCC_OSPI1_IS_CLK_SLEEP_DISABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_OSPI1LPEN) == 0U) -#endif /*OCTOSPI1*/ -#if defined(OCTOSPI2) -#define __HAL_RCC_OSPI2_IS_CLK_SLEEP_DISABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_OSPI2LPEN) == 0U) -#endif /*OCTOSPI2*/ -#if defined(OCTOSPIM) -#define __HAL_RCC_IOMNGR_IS_CLK_SLEEP_DISABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_IOMNGRLPEN) == 0U) -#endif /*OCTOSPIM*/ -#if defined(OTFDEC1) -#define __HAL_RCC_OTFDEC1_IS_CLK_SLEEP_DISABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_OTFDEC1LPEN) == 0U) -#endif /*OTFDEC1*/ -#if defined(OTFDEC2) -#define __HAL_RCC_OTFDEC2_IS_CLK_SLEEP_DISABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_OTFDEC2LPEN) == 0U) -#endif /*OTFDEC2*/ -#if defined(GFXMMU) -#define __HAL_RCC_GFXMMU_IS_CLK_SLEEP_DISABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_GFXMMULPEN) == 0U) -#endif /*GFXMMU*/ -#if defined(CD_AXISRAM2_BASE) -#define __HAL_RCC_AXISRAM2_IS_CLK_SLEEP_DISABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_AXISRAM2LPEN) == 0U) -#endif -#if defined(CD_AXISRAM3_BASE) -#define __HAL_RCC_AXISRAM3_IS_CLK_SLEEP_DISABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_AXISRAM3LPEN) == 0U) -#endif -#define __HAL_RCC_DTCM1_IS_CLK_SLEEP_DISABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_DTCM1LPEN) == 0U) -#define __HAL_RCC_DTCM2_IS_CLK_SLEEP_DISABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_DTCM2LPEN) == 0U) -#define __HAL_RCC_ITCM_IS_CLK_SLEEP_DISABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_ITCMLPEN) == 0U) -#if defined(RCC_AHB3LPENR_AXISRAMLPEN) -#define __HAL_RCC_D1SRAM1_IS_CLK_SLEEP_DISABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_AXISRAMLPEN) == 0U) -#else -#define __HAL_RCC_AXISRAM1_IS_CLK_SLEEP_DISABLED() ((RCC->AHB3LPENR & RCC_AHB3LPENR_AXISRAML1PEN) == 0U) -#endif /* RCC_AHB3LPENR_AXISRAMLPEN */ - -/** @brief ENABLE or disable the AHB1 peripheral clock during Low Power (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is ENABLEd again. - * @note By default, all peripheral clocks are ENABLEd during SLEEP mode. - */ - -#define __HAL_RCC_DMA1_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_DMA1LPEN)) -#define __HAL_RCC_DMA2_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_DMA2LPEN)) -#define __HAL_RCC_ADC12_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_ADC12LPEN)) -#if defined(RCC_AHB1LPENR_CRCLPEN) -#define __HAL_RCC_CRC_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_CRCLPEN)) -#endif -#if defined(ETH) -#define __HAL_RCC_ETH1MAC_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_ETH1MACLPEN)) -#endif /*ETH*/ -#if defined(DUAL_CORE) -#define __HAL_RCC_ART_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_ARTLPEN)) -#endif /*DUAL_CORE*/ -#if defined(ETH) -#define __HAL_RCC_ETH1TX_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_ETH1TXLPEN)) -#define __HAL_RCC_ETH1RX_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_ETH1RXLPEN)) -#endif /*ETH*/ -#define __HAL_RCC_USB1_OTG_HS_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_USB1OTGHSLPEN)) -#define __HAL_RCC_USB1_OTG_HS_ULPI_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_USB1OTGHSULPILPEN)) -#if defined(USB2_OTG_FS) -#define __HAL_RCC_USB2_OTG_FS_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_USB2OTGHSLPEN)) -#define __HAL_RCC_USB2_OTG_FS_ULPI_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_USB2OTGHSULPILPEN)) -#endif /* USB2_OTG_FS */ - -#define __HAL_RCC_DMA1_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~ (RCC_AHB1LPENR_DMA1LPEN)) -#define __HAL_RCC_DMA2_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~ (RCC_AHB1LPENR_DMA2LPEN)) -#define __HAL_RCC_ADC12_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~ (RCC_AHB1LPENR_ADC12LPEN)) -#if defined(RCC_AHB1LPENR_CRCLPEN) -#define __HAL_RCC_CRC_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~ (RCC_AHB1LPENR_CRCLPEN)) -#endif -#if defined(ETH) -#define __HAL_RCC_ETH1MAC_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~ (RCC_AHB1LPENR_ETH1MACLPEN)) -#endif /*ETH*/ -#if defined(DUAL_CORE) -#define __HAL_RCC_ART_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~ (RCC_AHB1LPENR_ARTLPEN)) -#endif /*DUAL_CORE*/ -#if defined(ETH) -#define __HAL_RCC_ETH1TX_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~ (RCC_AHB1LPENR_ETH1TXLPEN)) -#define __HAL_RCC_ETH1RX_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~ (RCC_AHB1LPENR_ETH1RXLPEN)) -#endif /*ETH*/ -#define __HAL_RCC_USB1_OTG_HS_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~ (RCC_AHB1LPENR_USB1OTGHSLPEN)) -#define __HAL_RCC_USB1_OTG_HS_ULPI_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~ (RCC_AHB1LPENR_USB1OTGHSULPILPEN)) -#if defined(USB2_OTG_FS) -#define __HAL_RCC_USB2_OTG_FS_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~ (RCC_AHB1LPENR_USB2OTGHSLPEN)) -#define __HAL_RCC_USB2_OTG_FS_ULPI_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~ (RCC_AHB1LPENR_USB2OTGHSULPILPEN)) -#endif /* USB2_OTG_FS */ - -/** @brief Get the enable or disable status of the AHB1 peripheral clock during Low Poser (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. - * @note By default, all peripheral clocks are enabled during SLEEP mode. - */ - -#define __HAL_RCC_DMA1_IS_CLK_SLEEP_ENABLED() ((RCC->AHB1LPENR & (RCC_AHB1LPENR_DMA1LPEN)) != 0U) -#define __HAL_RCC_DMA2_IS_CLK_SLEEP_ENABLED() ((RCC->AHB1LPENR & (RCC_AHB1LPENR_DMA2LPEN)) != 0U) -#define __HAL_RCC_ADC12_IS_CLK_SLEEP_ENABLED() ((RCC->AHB1LPENR & (RCC_AHB1LPENR_ADC12LPEN)) != 0U) -#if defined(RCC_AHB1LPENR_CRCLPEN) -#define __HAL_RCC_CRC_IS_CLK_SLEEP_ENABLED() ((RCC->AHB1LPENR & (RCC_AHB1LPENR_CRCLPEN)) != 0U) -#endif -#if defined(ETH) -#define __HAL_RCC_ETH1MAC_IS_CLK_SLEEP_ENABLED() ((RCC->AHB1LPENR & (RCC_AHB1LPENR_ETH1MACLPEN)) != 0U) -#endif /*ETH*/ -#if defined(DUAL_CORE) -#define __HAL_RCC_ART_IS_CLK_SLEEP_ENABLED() ((RCC->AHB1LPENR & (RCC_AHB1LPENR_ARTLPEN)) != 0U) -#endif /*DUAL_CORE*/ -#if defined(ETH) -#define __HAL_RCC_ETH1TX_IS_CLK_SLEEP_ENABLED() ((RCC->AHB1LPENR & (RCC_AHB1LPENR_ETH1TXLPEN)) != 0U) -#define __HAL_RCC_ETH1RX_IS_CLK_SLEEP_ENABLED() ((RCC->AHB1LPENR & (RCC_AHB1LPENR_ETH1RXLPEN)) != 0U) -#endif /*ETH*/ -#define __HAL_RCC_USB1_OTG_HS_IS_CLK_SLEEP_ENABLED() ((RCC->AHB1LPENR & (RCC_AHB1LPENR_USB1OTGHSLPEN)) != 0U) -#define __HAL_RCC_USB1_OTG_HS_ULPI_IS_CLK_SLEEP_ENABLED() ((RCC->AHB1LPENR & (RCC_AHB1LPENR_USB1OTGHSULPILPEN)) != 0U) -#if defined(USB2_OTG_FS) -#define __HAL_RCC_USB2_OTG_FS_IS_CLK_SLEEP_ENABLED() ((RCC->AHB1LPENR & (RCC_AHB1LPENR_USB2OTGHSLPEN)) != 0U) -#define __HAL_RCC_USB2_OTG_FS_ULPI_IS_CLK_SLEEP_ENABLED() ((RCC->AHB1LPENR & (RCC_AHB1LPENR_USB2OTGHSULPILPEN)) != 0U) -#endif /* USB2_OTG_FS */ - -#define __HAL_RCC_DMA1_IS_CLK_SLEEP_DISABLED() ((RCC->AHB1LPENR & (RCC_AHB1LPENR_DMA1LPEN)) == 0U) -#define __HAL_RCC_DMA2_IS_CLK_SLEEP_DISABLED() ((RCC->AHB1LPENR & (RCC_AHB1LPENR_DMA2LPEN)) == 0U) -#define __HAL_RCC_ADC12_IS_CLK_SLEEP_DISABLED() ((RCC->AHB1LPENR & (RCC_AHB1LPENR_ADC12LPEN)) == 0U) -#if defined(RCC_AHB1LPENR_CRCLPEN) -#define __HAL_RCC_CRC_IS_CLK_SLEEP_DISABLED() ((RCC->AHB1LPENR & (RCC_AHB1LPENR_CRCLPEN)) == 0U) -#endif -#if defined(ETH) -#define __HAL_RCC_ETH1MAC_IS_CLK_SLEEP_DISABLED() ((RCC->AHB1LPENR & (RCC_AHB1LPENR_ETH1MACLPEN)) == 0U) -#endif /* ETH */ -#if defined(DUAL_CORE) -#define __HAL_RCC_ART_IS_CLK_SLEEP_DISABLED() ((RCC->AHB1LPENR & (RCC_AHB1LPENR_ARTLPEN)) == 0U) -#endif /*DUAL_CORE*/ -#if defined(ETH) -#define __HAL_RCC_ETH1TX_IS_CLK_SLEEP_DISABLED() ((RCC->AHB1LPENR & (RCC_AHB1LPENR_ETH1TXLPEN)) == 0U) -#define __HAL_RCC_ETH1RX_IS_CLK_SLEEP_DISABLED() ((RCC->AHB1LPENR & (RCC_AHB1LPENR_ETH1RXLPEN)) == 0U) -#endif /* ETH */ -#define __HAL_RCC_USB1_OTG_HS_IS_CLK_SLEEP_DISABLED() ((RCC->AHB1LPENR & (RCC_AHB1LPENR_USB1OTGHSLPEN)) == 0U) -#define __HAL_RCC_USB1_OTG_HS_ULPI_IS_CLK_SLEEP_DISABLED() ((RCC->AHB1LPENR & (RCC_AHB1LPENR_USB1OTGHSULPILPEN)) == 0U) -#if defined(USB2_OTG_FS) -#define __HAL_RCC_USB2_OTG_FS_IS_CLK_SLEEP_DISABLED() ((RCC->AHB1LPENR & (RCC_AHB1LPENR_USB2OTGHSLPEN)) == 0U) -#define __HAL_RCC_USB2_OTG_FS_ULPI_IS_CLK_SLEEP_DISABLED() ((RCC->AHB1LPENR & (RCC_AHB1LPENR_USB2OTGHSULPILPEN)) == 0U) -#endif /* USB2_OTG_FS */ - - -/** @brief ENABLE or disable the AHB2 peripheral clock during Low Power (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is ENABLEd again. - * @note By default, all peripheral clocks are ENABLEd during SLEEP mode. - */ - -#if defined(DCMI) && defined(PSSI) -#define __HAL_RCC_DCMI_PSSI_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_DCMI_PSSILPEN)) -#define __HAL_RCC_DCMI_CLK_SLEEP_ENABLE() __HAL_RCC_DCMI_PSSI_CLK_SLEEP_ENABLE() /* for API backward compatibility*/ -#else -#define __HAL_RCC_DCMI_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_DCMILPEN)) -#endif /* DCMI && PSSI */ -#if defined(CRYP) -#define __HAL_RCC_CRYP_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_CRYPLPEN)) -#endif /* CRYP */ -#if defined(HASH) -#define __HAL_RCC_HASH_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_HASHLPEN)) -#endif /* HASH */ -#define __HAL_RCC_RNG_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_RNGLPEN)) -#define __HAL_RCC_SDMMC2_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_SDMMC2LPEN)) -#if defined(RCC_AHB2LPENR_DFSDMDMALPEN) -#define __HAL_RCC_DFSDMDMA_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_DFSDMDMALPEN)) -#endif -#if defined(FMAC) -#define __HAL_RCC_FMAC_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_FMACLPEN)) -#endif /* FMAC */ -#if defined(CORDIC) -#define __HAL_RCC_CORDIC_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_CORDICLPEN)) -#endif /* CORDIC */ -#if defined(RCC_AHB2LPENR_D2SRAM1LPEN) -#define __HAL_RCC_D2SRAM1_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_D2SRAM1LPEN)) -#else -#define __HAL_RCC_AHBSRAM1_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_AHBSRAM1LPEN)) -#endif /* RCC_AHB2LPENR_D2SRAM1LPEN */ -#if defined(RCC_AHB2LPENR_D2SRAM2LPEN) -#define __HAL_RCC_D2SRAM2_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_D2SRAM2LPEN)) -#else -#define __HAL_RCC_AHBSRAM2_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_AHBSRAM2LPEN)) -#endif /* RCC_AHB2LPENR_D2SRAM2LPEN */ -#if defined(RCC_AHB2LPENR_D2SRAM3LPEN) -#define __HAL_RCC_D2SRAM3_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_D2SRAM3LPEN)) -#endif - -#if defined(DCMI) && defined(PSSI) -#define __HAL_RCC_DCMI_PSSI_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~ (RCC_AHB2LPENR_DCMI_PSSILPEN)) -#define __HAL_RCC_DCMI_CLK_SLEEP_DISABLE() __HAL_RCC_DCMI_PSSI_CLK_SLEEP_DISABLE() /* for API backward compatibility*/ -#else -#define __HAL_RCC_DCMI_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~ (RCC_AHB2LPENR_DCMILPEN)) -#endif /* DCMI && PSSI */ -#if defined(CRYP) -#define __HAL_RCC_CRYP_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~ (RCC_AHB2LPENR_CRYPLPEN)) -#endif /* CRYP */ -#if defined(HASH) -#define __HAL_RCC_HASH_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~ (RCC_AHB2LPENR_HASHLPEN)) -#endif /* HASH */ -#define __HAL_RCC_RNG_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~ (RCC_AHB2LPENR_RNGLPEN)) -#define __HAL_RCC_SDMMC2_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~ (RCC_AHB2LPENR_SDMMC2LPEN)) -#if defined(RCC_AHB2LPENR_DFSDMDMALPEN) -#define __HAL_RCC_DFSDMDMA_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~ (RCC_AHB2LPENR_DFSDMDMALPEN)) -#endif -#if defined(FMAC) -#define __HAL_RCC_FMAC_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~ (RCC_AHB2LPENR_FMACLPEN)) -#endif /* FMAC */ -#if defined(CORDIC) -#define __HAL_RCC_CORDIC_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~ (RCC_AHB2LPENR_CORDICLPEN)) -#endif /* CORDIC */ -#if defined(RCC_AHB2LPENR_D2SRAM1LPEN) -#define __HAL_RCC_D2SRAM1_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~ (RCC_AHB2LPENR_D2SRAM1LPEN)) -#else -#define __HAL_RCC_AHBSRAM1_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~ (RCC_AHB2LPENR_AHBSRAM1LPEN)) -#endif /* RCC_AHB2LPENR_D2SRAM1LPEN */ -#if defined(RCC_AHB2LPENR_D2SRAM2LPEN) -#define __HAL_RCC_D2SRAM2_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~ (RCC_AHB2LPENR_D2SRAM2LPEN)) -#else -#define __HAL_RCC_AHBSRAM2_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~ (RCC_AHB2LPENR_AHBSRAM2LPEN)) -#endif /* RCC_AHB2LPENR_D2SRAM2LPEN */ -#if defined(RCC_AHB2LPENR_D2SRAM3LPEN) -#define __HAL_RCC_D2SRAM3_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~ (RCC_AHB2LPENR_D2SRAM3LPEN)) -#endif - -/** @brief Get the enable or disable status of the AHB2 peripheral clock during Low Poser (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. - * @note By default, all peripheral clocks are enabled during SLEEP mode. - */ - -#if defined(DCMI) && defined(PSSI) -#define __HAL_RCC_DCMI_PSSI_IS_CLK_SLEEP_ENABLED() ((RCC->AHB2LPENR & (RCC_AHB2LPENR_DCMI_PSSILPEN)) != 0U) -#define __HAL_RCC_DCMI_IS_CLK_SLEEP_ENABLED() __HAL_RCC_DCMI_PSSI_IS_CLK_SLEEP_ENABLED() /* for API backward compatibility*/ -#else -#define __HAL_RCC_DCMI_IS_CLK_SLEEP_ENABLED() ((RCC->AHB2LPENR & (RCC_AHB2LPENR_DCMILPEN)) != 0U) -#endif /* DCMI && PSSI */ -#if defined(CRYP) -#define __HAL_RCC_CRYP_IS_CLK_SLEEP_ENABLED() ((RCC->AHB2LPENR & (RCC_AHB2LPENR_CRYPLPEN)) != 0U) -#endif /* CRYP */ -#if defined(HASH) -#define __HAL_RCC_HASH_IS_CLK_SLEEP_ENABLED() ((RCC->AHB2LPENR & (RCC_AHB2LPENR_HASHLPEN)) != 0U) -#endif /* HASH */ -#define __HAL_RCC_RNG_IS_CLK_SLEEP_ENABLED() ((RCC->AHB2LPENR & (RCC_AHB2LPENR_RNGLPEN)) != 0U) -#define __HAL_RCC_SDMMC2_IS_CLK_SLEEP_ENABLED() ((RCC->AHB2LPENR & (RCC_AHB2LPENR_SDMMC2LPEN)) != 0U) -#if defined(RCC_AHB2LPENR_DFSDMDMALPEN) -#define __HAL_RCC_DFSDMDMA_IS_CLK_SLEEP_ENABLED() ((RCC->AHB2LPENR & (RCC_AHB2LPENR_DFSDMDMALPEN)) != 0U) -#endif -#if defined(FMAC) -#define __HAL_RCC_FMAC_IS_CLK_SLEEP_ENABLED() ((RCC->AHB2LPENR & (RCC_AHB2LPENR_FMACLPEN)) != 0U) -#endif /* FMAC */ -#if defined(CORDIC) -#define __HAL_RCC_CORDIC_IS_CLK_SLEEP_ENABLED() ((RCC->AHB2LPENR & (RCC_AHB2LPENR_CORDICLPEN)) != 0U) -#endif /* CORDIC */ -#if defined(RCC_AHB2LPENR_D2SRAM1LPEN) -#define __HAL_RCC_D2SRAM1_IS_CLK_SLEEP_ENABLED() ((RCC->AHB2LPENR & (RCC_AHB2LPENR_D2SRAM1LPEN)) != 0U) -#else -#define __HAL_RCC_AHBSRAM1_IS_CLK_SLEEP_ENABLED() ((RCC->AHB2LPENR & (RCC_AHB2LPENR_AHBSRAM1LPEN)) != 0U) -#endif /* RCC_AHB2LPENR_D2SRAM1LPEN */ -#if defined(RCC_AHB2LPENR_D2SRAM2LPEN) -#define __HAL_RCC_D2SRAM2_IS_CLK_SLEEP_ENABLED() ((RCC->AHB2LPENR & (RCC_AHB2LPENR_D2SRAM2LPEN)) != 0U) -#else -#define __HAL_RCC_AHBSRAM2_IS_CLK_SLEEP_ENABLED() ((RCC->AHB2LPENR & (RCC_AHB2LPENR_AHBSRAM2LPEN)) != 0U) -#endif /* RCC_AHB2LPENR_D2SRAM2LPEN */ -#if defined(RCC_AHB2LPENR_D2SRAM3LPEN) -#define __HAL_RCC_D2SRAM3_IS_CLK_SLEEP_ENABLED() ((RCC->AHB2LPENR & (RCC_AHB2LPENR_D2SRAM3LPEN)) != 0U) -#endif /* RCC_AHB2LPENR_D2SRAM3LPEN */ - -#if defined(DCMI) && defined(PSSI) -#define __HAL_RCC_DCMI_PSSI_IS_CLK_SLEEP_DISABLED() ((RCC->AHB2LPENR & (RCC_AHB2LPENR_DCMI_PSSILPEN)) == 0U) -#define __HAL_RCC_DCMI_IS_CLK_SLEEP_DISABLED() __HAL_RCC_DCMI_PSSI_IS_CLK_SLEEP_DISABLED() /* for API backward compatibility*/ -#else -#define __HAL_RCC_DCMI_IS_CLK_SLEEP_DISABLED() ((RCC->AHB2LPENR & (RCC_AHB2LPENR_DCMILPEN)) == 0U) -#endif /* DCMI && PSSI */ -#if defined(CRYP) -#define __HAL_RCC_CRYP_IS_CLK_SLEEP_DISABLED() ((RCC->AHB2LPENR & (RCC_AHB2LPENR_CRYPLPEN)) == 0U) -#endif /* CRYP */ -#if defined(HASH) -#define __HAL_RCC_HASH_IS_CLK_SLEEP_DISABLED() ((RCC->AHB2LPENR & (RCC_AHB2LPENR_HASHLPEN)) == 0U) -#endif /* HASH */ -#define __HAL_RCC_RNG_IS_CLK_SLEEP_DISABLED() ((RCC->AHB2LPENR & (RCC_AHB2LPENR_RNGLPEN)) == 0U) -#if defined(RCC_AHB2LPENR_DFSDMDMALPEN) -#define __HAL_RCC_DFSDMDMA_IS_CLK_SLEEP_DISABLED() ((RCC->AHB2LPENR & (RCC_AHB2LPENR_DFSDMDMALPEN)) == 0U) -#endif -#define __HAL_RCC_SDMMC2_IS_CLK_SLEEP_DISABLED() ((RCC->AHB2LPENR & (RCC_AHB2LPENR_SDMMC2LPEN)) == 0U) -#if defined(FMAC) -#define __HAL_RCC_FMAC_IS_CLK_SLEEP_DISABLED() ((RCC->AHB2LPENR & (RCC_AHB2LPENR_FMACLPEN)) == 0U) -#endif /* FMAC */ -#if defined(CORDIC) -#define __HAL_RCC_CORDIC_IS_CLK_SLEEP_DISABLED() ((RCC->AHB2LPENR & (RCC_AHB2LPENR_CORDICLPEN)) == 0U) -#endif /* CORDIC */ -#if defined(RCC_AHB2LPENR_D2SRAM1LPEN) -#define __HAL_RCC_D2SRAM1_IS_CLK_SLEEP_DISABLED() ((RCC->AHB2LPENR & (RCC_AHB2LPENR_D2SRAM1LPEN)) == 0U) -#else -#define __HAL_RCC_AHBSRAM1_IS_CLK_SLEEP_DISABLED() ((RCC->AHB2LPENR & (RCC_AHB2LPENR_AHBSRAM1LPEN)) == 0U) -#endif /* RCC_AHB2LPENR_D2SRAM1LPEN */ -#if defined(RCC_AHB2LPENR_D2SRAM2LPEN) -#define __HAL_RCC_D2SRAM2_IS_CLK_SLEEP_DISABLED() ((RCC->AHB2LPENR & (RCC_AHB2LPENR_D2SRAM2LPEN)) == 0U) -#else -#define __HAL_RCC_AHBSRAM2_IS_CLK_SLEEP_DISABLED() ((RCC->AHB2LPENR & (RCC_AHB2LPENR_AHBSRAM2LPEN)) == 0U) -#endif /* RCC_AHB2LPENR_D2SRAM2LPEN */ -#if defined(RCC_AHB2LPENR_D2SRAM3LPEN) -#define __HAL_RCC_D2SRAM3_IS_CLK_SLEEP_DISABLED() ((RCC->AHB2LPENR & (RCC_AHB2LPENR_D2SRAM3LPEN)) == 0U) -#endif /* RCC_AHB2LPENR_D2SRAM1LPEN*/ - - -/** @brief ENABLE or disable the AHB4 peripheral clock during Low Power (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is ENABLEd again. - * @note By default, all peripheral clocks are ENABLEd during SLEEP mode. - */ - -#define __HAL_RCC_GPIOA_CLK_SLEEP_ENABLE() (RCC->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOALPEN) -#define __HAL_RCC_GPIOB_CLK_SLEEP_ENABLE() (RCC->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOBLPEN) -#define __HAL_RCC_GPIOC_CLK_SLEEP_ENABLE() (RCC->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOCLPEN) -#define __HAL_RCC_GPIOD_CLK_SLEEP_ENABLE() (RCC->AHB4LPENR) |= (RCC_AHB4LPENR_GPIODLPEN) -#define __HAL_RCC_GPIOE_CLK_SLEEP_ENABLE() (RCC->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOELPEN) -#define __HAL_RCC_GPIOF_CLK_SLEEP_ENABLE() (RCC->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOFLPEN) -#define __HAL_RCC_GPIOG_CLK_SLEEP_ENABLE() (RCC->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOGLPEN) -#define __HAL_RCC_GPIOH_CLK_SLEEP_ENABLE() (RCC->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOHLPEN) -#if defined(GPIOI) -#define __HAL_RCC_GPIOI_CLK_SLEEP_ENABLE() (RCC->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOILPEN) -#endif /* GPIOI */ -#define __HAL_RCC_GPIOJ_CLK_SLEEP_ENABLE() (RCC->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOJLPEN) -#define __HAL_RCC_GPIOK_CLK_SLEEP_ENABLE() (RCC->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOKLPEN) -#if defined(RCC_AHB4LPENR_CRCLPEN) -#define __HAL_RCC_CRC_CLK_SLEEP_ENABLE() (RCC->AHB4LPENR) |= (RCC_AHB4LPENR_CRCLPEN) -#endif -#if defined(BDMA2) -#define __HAL_RCC_BDMA2_CLK_SLEEP_ENABLE() (RCC->AHB4LPENR) |= (RCC_AHB4LPENR_BDMA2LPEN) -#define __HAL_RCC_BDMA_CLK_SLEEP_ENABLE __HAL_RCC_BDMA2_CLK_SLEEP_ENABLE /* for API backward compatibility*/ -#else -#define __HAL_RCC_BDMA_CLK_SLEEP_ENABLE() (RCC->AHB4LPENR) |= (RCC_AHB4LPENR_BDMALPEN) -#endif /* BDMA2 */ -#if defined(ADC3) -#define __HAL_RCC_ADC3_CLK_SLEEP_ENABLE() (RCC->AHB4LPENR) |= (RCC_AHB4LPENR_ADC3LPEN) -#endif /* ADC3 */ -#define __HAL_RCC_BKPRAM_CLK_SLEEP_ENABLE() (RCC->AHB4LPENR) |= (RCC_AHB4LPENR_BKPRAMLPEN) -#if defined(RCC_AHB4LPENR_SRDSRAMLPEN) -#define __HAL_RCC_SRDSRAM_CLK_SLEEP_ENABLE() (RCC->AHB4LPENR |= (RCC_AHB4LPENR_SRDSRAMLPEN)) -#define __HAL_RCC_D3SRAM1_CLK_SLEEP_ENABLE __HAL_RCC_SRDSRAM_CLK_SLEEP_ENABLE /* for API backward compatibility*/ -#else -#define __HAL_RCC_D3SRAM1_CLK_SLEEP_ENABLE() (RCC->AHB4LPENR |= (RCC_AHB4LPENR_D3SRAM1LPEN)) -#endif /* RCC_AHB4LPENR_SRDSRAMLPEN */ - -#define __HAL_RCC_GPIOA_CLK_SLEEP_DISABLE() (RCC->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOALPEN) -#define __HAL_RCC_GPIOB_CLK_SLEEP_DISABLE() (RCC->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOBLPEN) -#define __HAL_RCC_GPIOC_CLK_SLEEP_DISABLE() (RCC->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOCLPEN) -#define __HAL_RCC_GPIOD_CLK_SLEEP_DISABLE() (RCC->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIODLPEN) -#define __HAL_RCC_GPIOE_CLK_SLEEP_DISABLE() (RCC->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOELPEN) -#define __HAL_RCC_GPIOF_CLK_SLEEP_DISABLE() (RCC->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOFLPEN) -#define __HAL_RCC_GPIOG_CLK_SLEEP_DISABLE() (RCC->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOGLPEN) -#define __HAL_RCC_GPIOH_CLK_SLEEP_DISABLE() (RCC->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOHLPEN) -#if defined(GPIOI) -#define __HAL_RCC_GPIOI_CLK_SLEEP_DISABLE() (RCC->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOILPEN) -#endif /* GPIOI */ -#define __HAL_RCC_GPIOJ_CLK_SLEEP_DISABLE() (RCC->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOJLPEN) -#define __HAL_RCC_GPIOK_CLK_SLEEP_DISABLE() (RCC->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOKLPEN) -#if defined(RCC_AHB4LPENR_CRCLPEN) -#define __HAL_RCC_CRC_CLK_SLEEP_DISABLE() (RCC->AHB4LPENR) &= ~ (RCC_AHB4LPENR_CRCLPEN) -#endif -#if defined(BDMA2) -#define __HAL_RCC_BDMA2_CLK_SLEEP_DISABLE() (RCC->AHB4LPENR) &= ~ (RCC_AHB4LPENR_BDMA2LPEN) -#define __HAL_RCC_BDMA_CLK_SLEEP_DISABLE __HAL_RCC_BDMA2_CLK_SLEEP_DISABLE /* For API backward compatibility*/ -#else -#define __HAL_RCC_BDMA_CLK_SLEEP_DISABLE() (RCC->AHB4LPENR) &= ~ (RCC_AHB4LPENR_BDMALPEN) -#endif /*BDMA2*/ -#if defined(ADC3) -#define __HAL_RCC_ADC3_CLK_SLEEP_DISABLE() (RCC->AHB4LPENR) &= ~ (RCC_AHB4LPENR_ADC3LPEN) -#endif /*ADC3*/ -#define __HAL_RCC_BKPRAM_CLK_SLEEP_DISABLE() (RCC->AHB4LPENR) &= ~ (RCC_AHB4LPENR_BKPRAMLPEN) -#if defined(RCC_AHB4LPENR_SRDSRAMLPEN) -#define __HAL_RCC_SRDSRAM_CLK_SLEEP_DISABLE() (RCC->AHB4LPENR &= ~ (RCC_AHB4LPENR_SRDSRAMLPEN)) -#define __HAL_RCC_D3SRAM1_CLK_SLEEP_DISABLE __HAL_RCC_SRDSRAM_CLK_SLEEP_DISABLE -#else -#define __HAL_RCC_D3SRAM1_CLK_SLEEP_DISABLE() (RCC->AHB4LPENR &= ~ (RCC_AHB4LPENR_D3SRAM1LPEN)) -#endif - - -/** @brief Get the enable or disable status of the AHB4 peripheral clock during Low Poser (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. - * @note By default, all peripheral clocks are enabled during SLEEP mode. - */ - -#define __HAL_RCC_GPIOA_IS_CLK_SLEEP_ENABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_GPIOALPEN)) != 0U) -#define __HAL_RCC_GPIOB_IS_CLK_SLEEP_ENABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_GPIOBLPEN)) != 0U) -#define __HAL_RCC_GPIOC_IS_CLK_SLEEP_ENABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_GPIOCLPEN)) != 0U) -#define __HAL_RCC_GPIOD_IS_CLK_SLEEP_ENABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_GPIODLPEN)) != 0U) -#define __HAL_RCC_GPIOE_IS_CLK_SLEEP_ENABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_GPIOELPEN)) != 0U) -#define __HAL_RCC_GPIOF_IS_CLK_SLEEP_ENABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_GPIOFLPEN)) != 0U) -#define __HAL_RCC_GPIOG_IS_CLK_SLEEP_ENABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_GPIOGLPEN)) != 0U) -#define __HAL_RCC_GPIOH_IS_CLK_SLEEP_ENABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_GPIOHLPEN)) != 0U) -#if defined(GPIOI) -#define __HAL_RCC_GPIOI_IS_CLK_SLEEP_ENABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_GPIOILPEN)) != 0U) -#endif /* GPIOI */ -#define __HAL_RCC_GPIOJ_IS_CLK_SLEEP_ENABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_GPIOJLPEN)) != 0U) -#define __HAL_RCC_GPIOK_IS_CLK_SLEEP_ENABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_GPIOKLPEN)) != 0U) -#if defined(RCC_AHB4LPENR_CRCLPEN) -#define __HAL_RCC_CRC_IS_CLK_SLEEP_ENABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_CRCLPEN)) != 0U) -#endif -#if defined(BDMA2) -#define __HAL_RCC_BDMA2_IS_CLK_SLEEP_ENABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_BDMA2LPEN)) != 0U) -#define __HAL_RCC_BDMA_IS_CLK_SLEEP_ENABLED __HAL_RCC_BDMA2_IS_CLK_SLEEP_ENABLED /* For API backward compatibility*/ -#else -#define __HAL_RCC_BDMA_IS_CLK_SLEEP_ENABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_BDMALPEN)) != 0U) -#endif /*BDMA2*/ -#if defined(ADC3) -#define __HAL_RCC_ADC3_IS_CLK_SLEEP_ENABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_ADC3LPEN)) != 0U) -#endif /*ADC3*/ -#define __HAL_RCC_BKPRAM_IS_CLK_SLEEP_ENABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_BKPRAMLPEN)) != 0U) -#if defined(RCC_AHB4LPENR_SRDSRAMLPEN) -#define __HAL_RCC_SRDSRAM_IS_CLK_SLEEP_ENABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_SRDSRAMLPEN)) != 0U) -#define __HAL_RCC_D3SRAM1_IS_CLK_SLEEP_ENABLED __HAL_RCC_SRDSRAM_IS_CLK_SLEEP_ENABLED /* For API backward compatibility*/ -#else -#define __HAL_RCC_D3SRAM1_IS_CLK_SLEEP_ENABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_D3SRAM1LPEN)) != 0U) -#endif - -#define __HAL_RCC_GPIOA_IS_CLK_SLEEP_DISABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_GPIOALPEN)) == 0U) -#define __HAL_RCC_GPIOB_IS_CLK_SLEEP_DISABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_GPIOBLPEN)) == 0U) -#define __HAL_RCC_GPIOC_IS_CLK_SLEEP_DISABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_GPIOCLPEN)) == 0U) -#define __HAL_RCC_GPIOD_IS_CLK_SLEEP_DISABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_GPIODLPEN)) == 0U) -#define __HAL_RCC_GPIOE_IS_CLK_SLEEP_DISABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_GPIOELPEN)) == 0U) -#define __HAL_RCC_GPIOF_IS_CLK_SLEEP_DISABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_GPIOFLPEN)) == 0U) -#define __HAL_RCC_GPIOG_IS_CLK_SLEEP_DISABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_GPIOGLPEN)) == 0U) -#define __HAL_RCC_GPIOH_IS_CLK_SLEEP_DISABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_GPIOHLPEN)) == 0U) -#if defined(GPIOI) -#define __HAL_RCC_GPIOI_IS_CLK_SLEEP_DISABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_GPIOILPEN)) == 0U) -#endif /* GPIOI */ -#define __HAL_RCC_GPIOJ_IS_CLK_SLEEP_DISABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_GPIOJLPEN)) == 0U) -#define __HAL_RCC_GPIOK_IS_CLK_SLEEP_DISABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_GPIOKLPEN)) == 0U) -#if defined(RCC_AHB4LPENR_CRCLPEN) -#define __HAL_RCC_CRC_IS_CLK_SLEEP_DISABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_CRCLPEN)) == 0U) -#endif -#if defined(BDMA2) -#define __HAL_RCC_BDMA2_IS_CLK_SLEEP_DISABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_BDMA2LPEN)) == 0U) -#define __HAL_RCC_BDMA_IS_CLK_SLEEP_DISABLED __HAL_RCC_BDMA2_IS_CLK_SLEEP_DISABLED /* For API backward compatibility*/ -#else -#define __HAL_RCC_BDMA_IS_CLK_SLEEP_DISABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_BDMALPEN)) == 0U) -#endif /*BDMA2*/ -#if defined(ADC3) -#define __HAL_RCC_ADC3_IS_CLK_SLEEP_DISABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_ADC3LPEN)) == 0U) -#endif /*ADC3*/ -#define __HAL_RCC_BKPRAM_IS_CLK_SLEEP_DISABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_BKPRAMLPEN)) == 0U) -#if defined(RCC_AHB4LPENR_SRDSRAMLPEN) -#define __HAL_RCC_SRDSRAM_IS_CLK_SLEEP_DISABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_SRDSRAMLPEN)) == 0U) -#define __HAL_RCC_D3SRAM1_IS_CLK_SLEEP_DISABLED __HAL_RCC_SRDSRAM_IS_CLK_SLEEP_DISABLED /* For API backward compatibility*/ -#else -#define __HAL_RCC_D3SRAM1_IS_CLK_SLEEP_DISABLED() ((RCC->AHB4LPENR & (RCC_AHB4LPENR_D3SRAM1LPEN)) == 0U) -#endif - - -/** @brief ENABLE or disable the APB3 peripheral clock during Low Power (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is ENABLEd again. - * @note By default, all peripheral clocks are ENABLEd during SLEEP mode. - */ - -#if defined(LTDC) -#define __HAL_RCC_LTDC_CLK_SLEEP_ENABLE() (RCC->APB3LPENR) |= (RCC_APB3LPENR_LTDCLPEN) -#endif /* LTDC */ -#if defined(DSI) -#define __HAL_RCC_DSI_CLK_SLEEP_ENABLE() (RCC->APB3LPENR) |= (RCC_APB3LPENR_DSILPEN) -#endif /*DSI*/ -#define __HAL_RCC_WWDG1_CLK_SLEEP_ENABLE() (RCC->APB3LPENR) |= (RCC_APB3LPENR_WWDG1LPEN) - -#if defined(LTDC) -#define __HAL_RCC_LTDC_CLK_SLEEP_DISABLE() (RCC->APB3LPENR) &= ~ (RCC_APB3LPENR_LTDCLPEN) -#endif /* LTDC */ -#if defined(DSI) -#define __HAL_RCC_DSI_CLK_SLEEP_DISABLE() (RCC->APB3LPENR) &= ~ (RCC_APB3LPENR_DSILPEN) -#endif /*DSI*/ -#define __HAL_RCC_WWDG1_CLK_SLEEP_DISABLE() (RCC->APB3LPENR) &= ~ (RCC_APB3LPENR_WWDG1LPEN) - - -/** @brief Get the enable or disable status of the APB3 peripheral clock during Low Poser (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. - * @note By default, all peripheral clocks are enabled during SLEEP mode. - */ - -#if defined(LTDC) -#define __HAL_RCC_LTDC_IS_CLK_SLEEP_ENABLED() ((RCC->APB3LPENR & (RCC_APB3LPENR_LTDCLPEN)) != 0U) -#endif /* LTDC */ -#if defined(DSI) -#define __HAL_RCC_DSI_IS_CLK_SLEEP_ENABLED() ((RCC->APB3LPENR & (RCC_APB3LPENR_DSILPEN)) != 0U) -#endif /*DSI*/ -#define __HAL_RCC_WWDG1_IS_CLK_SLEEP_ENABLED() ((RCC->APB3LPENR & (RCC_APB3LPENR_WWDG1LPEN)) != 0U) - -#if defined(LTDC) -#define __HAL_RCC_LTDC_IS_CLK_SLEEP_DISABLED() ((RCC->APB3LPENR & (RCC_APB3LPENR_LTDCLPEN)) == 0U) -#endif /* LTDC */ -#if defined(DSI) -#define __HAL_RCC_DSI_IS_CLK_SLEEP_DISABLED() ((RCC->APB3LPENR & (RCC_APB3LPENR_DSILPEN)) == 0U) -#endif /*DSI*/ -#define __HAL_RCC_WWDG1_IS_CLK_SLEEP_DISABLED() ((RCC->APB3LPENR & (RCC_APB3LPENR_WWDG1LPEN)) == 0U) - - -/** @brief ENABLE or disable the APB1 peripheral clock during Low Power (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is ENABLEd again. - * @note By default, all peripheral clocks are ENABLEd during SLEEP mode. - */ - -#define __HAL_RCC_TIM2_CLK_SLEEP_ENABLE() (RCC->APB1LLPENR) |= (RCC_APB1LLPENR_TIM2LPEN) -#define __HAL_RCC_TIM3_CLK_SLEEP_ENABLE() (RCC->APB1LLPENR) |= (RCC_APB1LLPENR_TIM3LPEN) -#define __HAL_RCC_TIM4_CLK_SLEEP_ENABLE() (RCC->APB1LLPENR) |= (RCC_APB1LLPENR_TIM4LPEN) -#define __HAL_RCC_TIM5_CLK_SLEEP_ENABLE() (RCC->APB1LLPENR) |= (RCC_APB1LLPENR_TIM5LPEN) -#define __HAL_RCC_TIM6_CLK_SLEEP_ENABLE() (RCC->APB1LLPENR) |= (RCC_APB1LLPENR_TIM6LPEN) -#define __HAL_RCC_TIM7_CLK_SLEEP_ENABLE() (RCC->APB1LLPENR) |= (RCC_APB1LLPENR_TIM7LPEN) -#define __HAL_RCC_TIM12_CLK_SLEEP_ENABLE() (RCC->APB1LLPENR) |= (RCC_APB1LLPENR_TIM12LPEN) -#define __HAL_RCC_TIM13_CLK_SLEEP_ENABLE() (RCC->APB1LLPENR) |= (RCC_APB1LLPENR_TIM13LPEN) -#define __HAL_RCC_TIM14_CLK_SLEEP_ENABLE() (RCC->APB1LLPENR) |= (RCC_APB1LLPENR_TIM14LPEN) -#define __HAL_RCC_LPTIM1_CLK_SLEEP_ENABLE() (RCC->APB1LLPENR) |= (RCC_APB1LLPENR_LPTIM1LPEN) - -#if defined(DUAL_CORE) -#define __HAL_RCC_WWDG2_CLK_SLEEP_ENABLE() (RCC->APB1LLPENR) |= (RCC_APB1LLPENR_WWDG2LPEN) -#endif /*DUAL_CORE*/ - -#define __HAL_RCC_SPI2_CLK_SLEEP_ENABLE() (RCC->APB1LLPENR) |= (RCC_APB1LLPENR_SPI2LPEN) -#define __HAL_RCC_SPI3_CLK_SLEEP_ENABLE() (RCC->APB1LLPENR) |= (RCC_APB1LLPENR_SPI3LPEN) -#define __HAL_RCC_SPDIFRX_CLK_SLEEP_ENABLE() (RCC->APB1LLPENR) |= (RCC_APB1LLPENR_SPDIFRXLPEN) -#define __HAL_RCC_USART2_CLK_SLEEP_ENABLE() (RCC->APB1LLPENR) |= (RCC_APB1LLPENR_USART2LPEN) -#define __HAL_RCC_USART3_CLK_SLEEP_ENABLE() (RCC->APB1LLPENR) |= (RCC_APB1LLPENR_USART3LPEN) -#define __HAL_RCC_UART4_CLK_SLEEP_ENABLE() (RCC->APB1LLPENR) |= (RCC_APB1LLPENR_UART4LPEN) -#define __HAL_RCC_UART5_CLK_SLEEP_ENABLE() (RCC->APB1LLPENR) |= (RCC_APB1LLPENR_UART5LPEN) -#define __HAL_RCC_I2C1_CLK_SLEEP_ENABLE() (RCC->APB1LLPENR) |= (RCC_APB1LLPENR_I2C1LPEN) -#define __HAL_RCC_I2C2_CLK_SLEEP_ENABLE() (RCC->APB1LLPENR) |= (RCC_APB1LLPENR_I2C2LPEN) -#define __HAL_RCC_I2C3_CLK_SLEEP_ENABLE() (RCC->APB1LLPENR) |= (RCC_APB1LLPENR_I2C3LPEN) -#if defined(I2C5) -#define __HAL_RCC_I2C5_CLK_SLEEP_ENABLE() (RCC->APB1LLPENR) |= (RCC_APB1LLPENR_I2C5LPEN) -#endif /* I2C5 */ -#define __HAL_RCC_CEC_CLK_SLEEP_ENABLE() (RCC->APB1LLPENR) |= (RCC_APB1LLPENR_CECLPEN) -#define __HAL_RCC_DAC12_CLK_SLEEP_ENABLE() (RCC->APB1LLPENR) |= (RCC_APB1LLPENR_DAC12LPEN) -#define __HAL_RCC_UART7_CLK_SLEEP_ENABLE() (RCC->APB1LLPENR) |= (RCC_APB1LLPENR_UART7LPEN) -#define __HAL_RCC_UART8_CLK_SLEEP_ENABLE() (RCC->APB1LLPENR) |= (RCC_APB1LLPENR_UART8LPEN) -#define __HAL_RCC_CRS_CLK_SLEEP_ENABLE() (RCC->APB1HLPENR) |= (RCC_APB1HLPENR_CRSLPEN) -#define __HAL_RCC_SWPMI1_CLK_SLEEP_ENABLE() (RCC->APB1HLPENR) |= (RCC_APB1HLPENR_SWPMILPEN) -#define __HAL_RCC_OPAMP_CLK_SLEEP_ENABLE() (RCC->APB1HLPENR) |= (RCC_APB1HLPENR_OPAMPLPEN) -#define __HAL_RCC_MDIOS_CLK_SLEEP_ENABLE() (RCC->APB1HLPENR) |= (RCC_APB1HLPENR_MDIOSLPEN) -#define __HAL_RCC_FDCAN_CLK_SLEEP_ENABLE() (RCC->APB1HLPENR) |= (RCC_APB1HLPENR_FDCANLPEN) -#if defined(TIM23) -#define __HAL_RCC_TIM23_CLK_SLEEP_ENABLE() (RCC->APB1HLPENR) |= (RCC_APB1HLPENR_TIM23LPEN) -#endif /* TIM23 */ -#if defined(TIM24) -#define __HAL_RCC_TIM24_CLK_SLEEP_ENABLE() (RCC->APB1HLPENR) |= (RCC_APB1HLPENR_TIM24LPEN) -#endif /* TIM24 */ - - -#define __HAL_RCC_TIM2_CLK_SLEEP_DISABLE() (RCC->APB1LLPENR) &= ~ (RCC_APB1LLPENR_TIM2LPEN) -#define __HAL_RCC_TIM3_CLK_SLEEP_DISABLE() (RCC->APB1LLPENR) &= ~ (RCC_APB1LLPENR_TIM3LPEN) -#define __HAL_RCC_TIM4_CLK_SLEEP_DISABLE() (RCC->APB1LLPENR) &= ~ (RCC_APB1LLPENR_TIM4LPEN) -#define __HAL_RCC_TIM5_CLK_SLEEP_DISABLE() (RCC->APB1LLPENR) &= ~ (RCC_APB1LLPENR_TIM5LPEN) -#define __HAL_RCC_TIM6_CLK_SLEEP_DISABLE() (RCC->APB1LLPENR) &= ~ (RCC_APB1LLPENR_TIM6LPEN) -#define __HAL_RCC_TIM7_CLK_SLEEP_DISABLE() (RCC->APB1LLPENR) &= ~ (RCC_APB1LLPENR_TIM7LPEN) -#define __HAL_RCC_TIM12_CLK_SLEEP_DISABLE() (RCC->APB1LLPENR) &= ~ (RCC_APB1LLPENR_TIM12LPEN) -#define __HAL_RCC_TIM13_CLK_SLEEP_DISABLE() (RCC->APB1LLPENR) &= ~ (RCC_APB1LLPENR_TIM13LPEN) -#define __HAL_RCC_TIM14_CLK_SLEEP_DISABLE() (RCC->APB1LLPENR) &= ~ (RCC_APB1LLPENR_TIM14LPEN) -#define __HAL_RCC_LPTIM1_CLK_SLEEP_DISABLE() (RCC->APB1LLPENR) &= ~ (RCC_APB1LLPENR_LPTIM1LPEN) - -#if defined(DUAL_CORE) -#define __HAL_RCC_WWDG2_CLK_SLEEP_DISABLE() (RCC->APB1LLPENR) &= ~ (RCC_APB1LLPENR_WWDG2LPEN) -#endif /*DUAL_CORE*/ - -#define __HAL_RCC_SPI2_CLK_SLEEP_DISABLE() (RCC->APB1LLPENR) &= ~ (RCC_APB1LLPENR_SPI2LPEN) -#define __HAL_RCC_SPI3_CLK_SLEEP_DISABLE() (RCC->APB1LLPENR) &= ~ (RCC_APB1LLPENR_SPI3LPEN) -#define __HAL_RCC_SPDIFRX_CLK_SLEEP_DISABLE() (RCC->APB1LLPENR) &= ~ (RCC_APB1LLPENR_SPDIFRXLPEN) -#define __HAL_RCC_USART2_CLK_SLEEP_DISABLE() (RCC->APB1LLPENR) &= ~ (RCC_APB1LLPENR_USART2LPEN) -#define __HAL_RCC_USART3_CLK_SLEEP_DISABLE() (RCC->APB1LLPENR) &= ~ (RCC_APB1LLPENR_USART3LPEN) -#define __HAL_RCC_UART4_CLK_SLEEP_DISABLE() (RCC->APB1LLPENR) &= ~ (RCC_APB1LLPENR_UART4LPEN) -#define __HAL_RCC_UART5_CLK_SLEEP_DISABLE() (RCC->APB1LLPENR) &= ~ (RCC_APB1LLPENR_UART5LPEN) -#define __HAL_RCC_I2C1_CLK_SLEEP_DISABLE() (RCC->APB1LLPENR) &= ~ (RCC_APB1LLPENR_I2C1LPEN) -#define __HAL_RCC_I2C2_CLK_SLEEP_DISABLE() (RCC->APB1LLPENR) &= ~ (RCC_APB1LLPENR_I2C2LPEN) -#define __HAL_RCC_I2C3_CLK_SLEEP_DISABLE() (RCC->APB1LLPENR) &= ~ (RCC_APB1LLPENR_I2C3LPEN) -#if defined(I2C5) -#define __HAL_RCC_I2C5_CLK_SLEEP_DISABLE() (RCC->APB1LLPENR) &= ~ (RCC_APB1LLPENR_I2C5LPEN) -#endif /* I2C5 */ -#define __HAL_RCC_CEC_CLK_SLEEP_DISABLE() (RCC->APB1LLPENR) &= ~ (RCC_APB1LLPENR_CECLPEN) -#define __HAL_RCC_DAC12_CLK_SLEEP_DISABLE() (RCC->APB1LLPENR) &= ~ (RCC_APB1LLPENR_DAC12LPEN) -#define __HAL_RCC_UART7_CLK_SLEEP_DISABLE() (RCC->APB1LLPENR) &= ~ (RCC_APB1LLPENR_UART7LPEN) -#define __HAL_RCC_UART8_CLK_SLEEP_DISABLE() (RCC->APB1LLPENR) &= ~ (RCC_APB1LLPENR_UART8LPEN) -#define __HAL_RCC_CRS_CLK_SLEEP_DISABLE() (RCC->APB1HLPENR) &= ~ (RCC_APB1HLPENR_CRSLPEN) -#define __HAL_RCC_SWPMI1_CLK_SLEEP_DISABLE() (RCC->APB1HLPENR) &= ~ (RCC_APB1HLPENR_SWPMILPEN) -#define __HAL_RCC_OPAMP_CLK_SLEEP_DISABLE() (RCC->APB1HLPENR) &= ~ (RCC_APB1HLPENR_OPAMPLPEN) -#define __HAL_RCC_MDIOS_CLK_SLEEP_DISABLE() (RCC->APB1HLPENR) &= ~ (RCC_APB1HLPENR_MDIOSLPEN) -#define __HAL_RCC_FDCAN_CLK_SLEEP_DISABLE() (RCC->APB1HLPENR) &= ~ (RCC_APB1HLPENR_FDCANLPEN) -#if defined(TIM23) -#define __HAL_RCC_TIM23_CLK_SLEEP_DISABLE() (RCC->APB1HLPENR) &= ~ (RCC_APB1HLPENR_TIM23LPEN) -#endif /* TIM23 */ -#if defined(TIM24) -#define __HAL_RCC_TIM24_CLK_SLEEP_DISABLE() (RCC->APB1HLPENR) &= ~ (RCC_APB1HLPENR_TIM24LPEN) -#endif /* TIM24 */ - - -/** @brief Get the enable or disable status of the APB1 peripheral clock during Low Poser (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. - * @note By default, all peripheral clocks are enabled during SLEEP mode. - */ - -#define __HAL_RCC_TIM2_IS_CLK_SLEEP_ENABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_TIM2LPEN)) != 0U) -#define __HAL_RCC_TIM3_IS_CLK_SLEEP_ENABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_TIM3LPEN)) != 0U) -#define __HAL_RCC_TIM4_IS_CLK_SLEEP_ENABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_TIM4LPEN)) != 0U) -#define __HAL_RCC_TIM5_IS_CLK_SLEEP_ENABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_TIM5LPEN)) != 0U) -#define __HAL_RCC_TIM6_IS_CLK_SLEEP_ENABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_TIM6LPEN)) != 0U) -#define __HAL_RCC_TIM7_IS_CLK_SLEEP_ENABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_TIM7LPEN)) != 0U) -#define __HAL_RCC_TIM12_IS_CLK_SLEEP_ENABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_TIM12LPEN)) != 0U) -#define __HAL_RCC_TIM13_IS_CLK_SLEEP_ENABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_TIM13LPEN)) != 0U) -#define __HAL_RCC_TIM14_IS_CLK_SLEEP_ENABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_TIM14LPEN)) != 0U) -#define __HAL_RCC_LPTIM1_IS_CLK_SLEEP_ENABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_LPTIM1LPEN)) != 0U) -#if defined(DUAL_CORE) -#define __HAL_RCC_WWDG2_IS_CLK_SLEEP_ENABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_WWDG2LPEN)) != 0U) -#endif /*DUAL_CORE*/ -#define __HAL_RCC_SPI2_IS_CLK_SLEEP_ENABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_SPI2LPEN)) != 0U) -#define __HAL_RCC_SPI3_IS_CLK_SLEEP_ENABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_SPI3LPEN)) != 0U) -#define __HAL_RCC_SPDIFRX_IS_CLK_SLEEP_ENABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_SPDIFRXLPEN)) != 0U) -#define __HAL_RCC_USART2_IS_CLK_SLEEP_ENABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_USART2LPEN)) != 0U) -#define __HAL_RCC_USART3_IS_CLK_SLEEP_ENABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_USART3LPEN)) != 0U) -#define __HAL_RCC_UART4_IS_CLK_SLEEP_ENABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_UART4LPEN)) != 0U) -#define __HAL_RCC_UART5_IS_CLK_SLEEP_ENABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_UART5LPEN)) != 0U) -#define __HAL_RCC_I2C1_IS_CLK_SLEEP_ENABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_I2C1LPEN)) != 0U) -#define __HAL_RCC_I2C2_IS_CLK_SLEEP_ENABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_I2C2LPEN)) != 0U) -#define __HAL_RCC_I2C3_IS_CLK_SLEEP_ENABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_I2C3LPEN)) != 0U) -#if defined(I2C5) -#define __HAL_RCC_I2C5_IS_CLK_SLEEP_ENABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_I2C5LPEN)) != 0U) -#endif /* I2C5 */ -#define __HAL_RCC_CEC_IS_CLK_SLEEP_ENABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_CECLPEN)) != 0U) -#define __HAL_RCC_DAC12_IS_CLK_SLEEP_ENABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_DAC12LPEN)) != 0U) -#define __HAL_RCC_UART7_IS_CLK_SLEEP_ENABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_UART7LPEN)) != 0U) -#define __HAL_RCC_UART8_IS_CLK_SLEEP_ENABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_UART8LPEN)) != 0U) -#define __HAL_RCC_CRS_IS_CLK_SLEEP_ENABLED() ((RCC->APB1HLPENR & (RCC_APB1HLPENR_CRSLPEN)) != 0U) -#define __HAL_RCC_SWPMI1_IS_CLK_SLEEP_ENABLED() ((RCC->APB1HLPENR & (RCC_APB1HLPENR_SWPMILPEN)) != 0U) -#define __HAL_RCC_OPAMP_IS_CLK_SLEEP_ENABLED() ((RCC->APB1HLPENR & (RCC_APB1HLPENR_OPAMPLPEN)) != 0U) -#define __HAL_RCC_MDIOS_IS_CLK_SLEEP_ENABLED() ((RCC->APB1HLPENR & (RCC_APB1HLPENR_MDIOSLPEN)) != 0U) -#define __HAL_RCC_FDCAN_IS_CLK_SLEEP_ENABLED() ((RCC->APB1HLPENR & (RCC_APB1HLPENR_FDCANLPEN)) != 0U) -#if defined(TIM23) -#define __HAL_RCC_TIM23_IS_CLK_SLEEP_ENABLED() ((RCC->APB1HLPENR & (RCC_APB1HLPENR_TIM23LPEN)) != 0U) -#endif /* TIM23 */ -#if defined(TIM24) -#define __HAL_RCC_TIM24_IS_CLK_SLEEP_ENABLED() ((RCC->APB1HLPENR & (RCC_APB1HLPENR_TIM24LPEN)) != 0U) -#endif /* TIM24 */ - -#define __HAL_RCC_TIM2_IS_CLK_SLEEP_DISABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_TIM2LPEN)) == 0U) -#define __HAL_RCC_TIM3_IS_CLK_SLEEP_DISABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_TIM3LPEN)) == 0U) -#define __HAL_RCC_TIM4_IS_CLK_SLEEP_DISABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_TIM4LPEN)) == 0U) -#define __HAL_RCC_TIM5_IS_CLK_SLEEP_DISABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_TIM5LPEN)) == 0U) -#define __HAL_RCC_TIM6_IS_CLK_SLEEP_DISABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_TIM6LPEN)) == 0U) -#define __HAL_RCC_TIM7_IS_CLK_SLEEP_DISABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_TIM7LPEN)) == 0U) -#define __HAL_RCC_TIM12_IS_CLK_SLEEP_DISABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_TIM12LPEN)) == 0U) -#define __HAL_RCC_TIM13_IS_CLK_SLEEP_DISABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_TIM13LPEN)) == 0U) -#define __HAL_RCC_TIM14_IS_CLK_SLEEP_DISABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_TIM14LPEN)) == 0U) -#define __HAL_RCC_LPTIM1_IS_CLK_SLEEP_DISABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_LPTIM1LPEN)) == 0U) -#if defined(DUAL_CORE) -#define __HAL_RCC_WWDG2_IS_CLK_SLEEP_DISABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_WWDG2LPEN)) == 0U) -#endif /*DUAL_CORE*/ -#define __HAL_RCC_SPI2_IS_CLK_SLEEP_DISABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_SPI2LPEN)) == 0U) -#define __HAL_RCC_SPI3_IS_CLK_SLEEP_DISABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_SPI3LPEN)) == 0U) -#define __HAL_RCC_SPDIFRX_IS_CLK_SLEEP_DISABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_SPDIFRXLPEN)) == 0U) -#define __HAL_RCC_USART2_IS_CLK_SLEEP_DISABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_USART2LPEN)) == 0U) -#define __HAL_RCC_USART3_IS_CLK_SLEEP_DISABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_USART3LPEN)) == 0U) -#define __HAL_RCC_UART4_IS_CLK_SLEEP_DISABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_UART4LPEN)) == 0U) -#define __HAL_RCC_UART5_IS_CLK_SLEEP_DISABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_UART5LPEN)) == 0U) -#define __HAL_RCC_I2C1_IS_CLK_SLEEP_DISABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_I2C1LPEN)) == 0U) -#define __HAL_RCC_I2C2_IS_CLK_SLEEP_DISABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_I2C2LPEN)) == 0U) -#define __HAL_RCC_I2C3_IS_CLK_SLEEP_DISABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_I2C3LPEN)) == 0U) -#if defined(I2C5) -#define __HAL_RCC_I2C5_IS_CLK_SLEEP_DISABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_I2C5LPEN)) == 0U) -#endif /* I2C5 */ -#define __HAL_RCC_CEC_IS_CLK_SLEEP_DISABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_CECLPEN)) == 0U) -#define __HAL_RCC_DAC12_IS_CLK_SLEEP_DISABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_DAC12LPEN)) == 0U) -#define __HAL_RCC_UART7_IS_CLK_SLEEP_DISABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_UART7LPEN)) == 0U) -#define __HAL_RCC_UART8_IS_CLK_SLEEP_DISABLED() ((RCC->APB1LLPENR & (RCC_APB1LLPENR_UART8LPEN)) == 0U) -#define __HAL_RCC_CRS_IS_CLK_SLEEP_DISABLED() ((RCC->APB1HLPENR & (RCC_APB1HLPENR_CRSLPEN)) == 0U) -#define __HAL_RCC_SWPMI1_IS_CLK_SLEEP_DISABLED() ((RCC->APB1HLPENR & (RCC_APB1HLPENR_SWPMILPEN)) == 0U) -#define __HAL_RCC_OPAMP_IS_CLK_SLEEP_DISABLED() ((RCC->APB1HLPENR & (RCC_APB1HLPENR_OPAMPLPEN)) == 0U) -#define __HAL_RCC_MDIOS_IS_CLK_SLEEP_DISABLED() ((RCC->APB1HLPENR & (RCC_APB1HLPENR_MDIOSLPEN)) == 0U) -#define __HAL_RCC_FDCAN_IS_CLK_SLEEP_DISABLED() ((RCC->APB1HLPENR & (RCC_APB1HLPENR_FDCANLPEN)) == 0U) -#if defined(TIM23) -#define __HAL_RCC_TIM23_IS_CLK_SLEEP_DISABLED() ((RCC->APB1HLPENR & (RCC_APB1HLPENR_TIM23LPEN)) == 0U) -#endif /* TIM23 */ -#if defined(TIM24) -#define __HAL_RCC_TIM24_IS_CLK_SLEEP_DISABLED() ((RCC->APB1HLPENR & (RCC_APB1HLPENR_TIM24LPEN)) == 0U) -#endif /* TIM24 */ - - -/** @brief ENABLE or disable the APB2 peripheral clock during Low Power (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is ENABLEd again. - * @note By default, all peripheral clocks are ENABLEd during SLEEP mode. - */ - -#define __HAL_RCC_TIM1_CLK_SLEEP_ENABLE() (RCC->APB2LPENR) |= (RCC_APB2LPENR_TIM1LPEN) -#define __HAL_RCC_TIM8_CLK_SLEEP_ENABLE() (RCC->APB2LPENR) |= (RCC_APB2LPENR_TIM8LPEN) -#define __HAL_RCC_USART1_CLK_SLEEP_ENABLE() (RCC->APB2LPENR) |= (RCC_APB2LPENR_USART1LPEN) -#define __HAL_RCC_USART6_CLK_SLEEP_ENABLE() (RCC->APB2LPENR) |= (RCC_APB2LPENR_USART6LPEN) -#if defined(UART9) -#define __HAL_RCC_UART9_CLK_SLEEP_ENABLE() (RCC->APB2LPENR) |= (RCC_APB2LPENR_UART9LPEN) -#endif /*UART9*/ -#if defined(USART10) -#define __HAL_RCC_USART10_CLK_SLEEP_ENABLE() (RCC->APB2LPENR) |= (RCC_APB2LPENR_USART10LPEN) -#endif /*USART10*/ -#define __HAL_RCC_SPI1_CLK_SLEEP_ENABLE() (RCC->APB2LPENR) |= (RCC_APB2LPENR_SPI1LPEN) -#define __HAL_RCC_SPI4_CLK_SLEEP_ENABLE() (RCC->APB2LPENR) |= (RCC_APB2LPENR_SPI4LPEN) -#define __HAL_RCC_TIM15_CLK_SLEEP_ENABLE() (RCC->APB2LPENR) |= (RCC_APB2LPENR_TIM15LPEN) -#define __HAL_RCC_TIM16_CLK_SLEEP_ENABLE() (RCC->APB2LPENR) |= (RCC_APB2LPENR_TIM16LPEN) -#define __HAL_RCC_TIM17_CLK_SLEEP_ENABLE() (RCC->APB2LPENR) |= (RCC_APB2LPENR_TIM17LPEN) -#define __HAL_RCC_SPI5_CLK_SLEEP_ENABLE() (RCC->APB2LPENR) |= (RCC_APB2LPENR_SPI5LPEN) -#define __HAL_RCC_SAI1_CLK_SLEEP_ENABLE() (RCC->APB2LPENR) |= (RCC_APB2LPENR_SAI1LPEN) -#if defined(SAI2) -#define __HAL_RCC_SAI2_CLK_SLEEP_ENABLE() (RCC->APB2LPENR) |= (RCC_APB2LPENR_SAI2LPEN) -#endif /* SAI2 */ -#if defined(SAI3) -#define __HAL_RCC_SAI3_CLK_SLEEP_ENABLE() (RCC->APB2LPENR) |= (RCC_APB2LPENR_SAI3LPEN) -#endif /*SAI3*/ -#define __HAL_RCC_DFSDM1_CLK_SLEEP_ENABLE() (RCC->APB2LPENR) |= (RCC_APB2LPENR_DFSDM1LPEN) -#if defined(HRTIM1) -#define __HAL_RCC_HRTIM1_CLK_SLEEP_ENABLE() (RCC->APB2LPENR) |= (RCC_APB2LPENR_HRTIMLPEN) -#endif /*HRTIM1*/ - -#define __HAL_RCC_TIM1_CLK_SLEEP_DISABLE() (RCC->APB2LPENR) &= ~ (RCC_APB2LPENR_TIM1LPEN) -#define __HAL_RCC_TIM8_CLK_SLEEP_DISABLE() (RCC->APB2LPENR) &= ~ (RCC_APB2LPENR_TIM8LPEN) -#define __HAL_RCC_USART1_CLK_SLEEP_DISABLE() (RCC->APB2LPENR) &= ~ (RCC_APB2LPENR_USART1LPEN) -#define __HAL_RCC_USART6_CLK_SLEEP_DISABLE() (RCC->APB2LPENR) &= ~ (RCC_APB2LPENR_USART6LPEN) -#if defined(UART9) -#define __HAL_RCC_UART9_CLK_SLEEP_DISABLE() (RCC->APB2LPENR) &= ~ (RCC_APB2LPENR_UART9LPEN) -#endif /*UART9*/ -#if defined(USART10) -#define __HAL_RCC_USART10_CLK_SLEEP_DISABLE() (RCC->APB2LPENR) &= ~ (RCC_APB2LPENR_USART10LPEN) -#endif /*USART10*/ -#define __HAL_RCC_SPI1_CLK_SLEEP_DISABLE() (RCC->APB2LPENR) &= ~ (RCC_APB2LPENR_SPI1LPEN) -#define __HAL_RCC_SPI4_CLK_SLEEP_DISABLE() (RCC->APB2LPENR) &= ~ (RCC_APB2LPENR_SPI4LPEN) -#define __HAL_RCC_TIM15_CLK_SLEEP_DISABLE() (RCC->APB2LPENR) &= ~ (RCC_APB2LPENR_TIM15LPEN) -#define __HAL_RCC_TIM16_CLK_SLEEP_DISABLE() (RCC->APB2LPENR) &= ~ (RCC_APB2LPENR_TIM16LPEN) -#define __HAL_RCC_TIM17_CLK_SLEEP_DISABLE() (RCC->APB2LPENR) &= ~ (RCC_APB2LPENR_TIM17LPEN) -#define __HAL_RCC_SPI5_CLK_SLEEP_DISABLE() (RCC->APB2LPENR) &= ~ (RCC_APB2LPENR_SPI5LPEN) -#define __HAL_RCC_SAI1_CLK_SLEEP_DISABLE() (RCC->APB2LPENR) &= ~ (RCC_APB2LPENR_SAI1LPEN) -#if defined(SAI2) -#define __HAL_RCC_SAI2_CLK_SLEEP_DISABLE() (RCC->APB2LPENR) &= ~ (RCC_APB2LPENR_SAI2LPEN) -#endif /* SAI2 */ -#if defined(SAI3) -#define __HAL_RCC_SAI3_CLK_SLEEP_DISABLE() (RCC->APB2LPENR) &= ~ (RCC_APB2LPENR_SAI3LPEN) -#endif /*SAI3*/ -#define __HAL_RCC_DFSDM1_CLK_SLEEP_DISABLE() (RCC->APB2LPENR) &= ~ (RCC_APB2LPENR_DFSDM1LPEN) -#if defined(HRTIM1) -#define __HAL_RCC_HRTIM1_CLK_SLEEP_DISABLE() (RCC->APB2LPENR) &= ~ (RCC_APB2LPENR_HRTIMLPEN) -#endif /*HRTIM1*/ - - -/** @brief Get the enable or disable status of the APB2 peripheral clock during Low Poser (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. - * @note By default, all peripheral clocks are enabled during SLEEP mode. - */ - -#define __HAL_RCC_TIM1_IS_CLK_SLEEP_ENABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_TIM1LPEN)) != 0U) -#define __HAL_RCC_TIM8_IS_CLK_SLEEP_ENABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_TIM8LPEN)) != 0U) -#define __HAL_RCC_USART1_IS_CLK_SLEEP_ENABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_USART1LPEN)) != 0U) -#define __HAL_RCC_USART6_IS_CLK_SLEEP_ENABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_USART6LPEN)) != 0U) -#if defined(UART9) -#define __HAL_RCC_UART9_IS_CLK_SLEEP_ENABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_UART9LPEN)) != 0U) -#endif /*UART9*/ -#if defined(USART10) -#define __HAL_RCC_USART10_IS_CLK_SLEEP_ENABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_USART10LPEN)) != 0U) -#endif /*USART10*/ -#define __HAL_RCC_SPI1_IS_CLK_SLEEP_ENABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_SPI1LPEN)) != 0U) -#define __HAL_RCC_SPI4_IS_CLK_SLEEP_ENABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_SPI4LPEN)) != 0U) -#define __HAL_RCC_TIM15_IS_CLK_SLEEP_ENABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_TIM15LPEN)) != 0U) -#define __HAL_RCC_TIM16_IS_CLK_SLEEP_ENABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_TIM16LPEN)) != 0U) -#define __HAL_RCC_TIM17_IS_CLK_SLEEP_ENABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_TIM17LPEN)) != 0U) -#define __HAL_RCC_SPI5_IS_CLK_SLEEP_ENABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_SPI5LPEN)) != 0U) -#define __HAL_RCC_SAI1_IS_CLK_SLEEP_ENABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_SAI1LPEN)) != 0U) -#if defined(SAI2) -#define __HAL_RCC_SAI2_IS_CLK_SLEEP_ENABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_SAI2LPEN)) != 0U) -#endif /* SAI2 */ -#if defined(SAI3) -#define __HAL_RCC_SAI3_IS_CLK_SLEEP_ENABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_SAI3LPEN)) != 0U) -#endif /*SAI3*/ -#define __HAL_RCC_DFSDM1_IS_CLK_SLEEP_ENABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_DFSDM1LPEN)) != 0U) -#if defined(HRTIM1) -#define __HAL_RCC_HRTIM1_IS_CLK_SLEEP_ENABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_HRTIMLPEN)) != 0U) -#endif /*HRTIM1*/ - -#define __HAL_RCC_TIM1_IS_CLK_SLEEP_DISABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_TIM1LPEN)) == 0U) -#define __HAL_RCC_TIM8_IS_CLK_SLEEP_DISABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_TIM8LPEN)) == 0U) -#define __HAL_RCC_USART1_IS_CLK_SLEEP_DISABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_USART1LPEN)) == 0U) -#define __HAL_RCC_USART6_IS_CLK_SLEEP_DISABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_USART6LPEN)) == 0U) -#if defined(UART9) -#define __HAL_RCC_USART9_IS_CLK_SLEEP_DISABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_USART9LPEN)) == 0U) -#endif /*UART9*/ -#if defined(USART10) -#define __HAL_RCC_USART10_IS_CLK_SLEEP_DISABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_USART10LPEN)) == 0U) -#endif /*USART10*/ -#define __HAL_RCC_SPI1_IS_CLK_SLEEP_DISABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_SPI1LPEN)) == 0U) -#define __HAL_RCC_SPI4_IS_CLK_SLEEP_DISABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_SPI4LPEN)) == 0U) -#define __HAL_RCC_TIM15_IS_CLK_SLEEP_DISABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_TIM15LPEN)) == 0U) -#define __HAL_RCC_TIM16_IS_CLK_SLEEP_DISABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_TIM16LPEN)) == 0U) -#define __HAL_RCC_TIM17_IS_CLK_SLEEP_DISABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_TIM17LPEN)) == 0U) -#define __HAL_RCC_SPI5_IS_CLK_SLEEP_DISABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_SPI5LPEN)) == 0U) -#define __HAL_RCC_SAI1_IS_CLK_SLEEP_DISABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_SAI1LPEN)) == 0U) -#if defined(SAI2) -#define __HAL_RCC_SAI2_IS_CLK_SLEEP_DISABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_SAI2LPEN)) == 0U) -#endif /* SAI2 */ -#if defined(SAI3) -#define __HAL_RCC_SAI3_IS_CLK_SLEEP_DISABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_SAI3LPEN)) == 0U) -#endif /*SAI3*/ -#define __HAL_RCC_DFSDM1_IS_CLK_SLEEP_DISABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_DFSDM1LPEN)) == 0U) -#if defined(HRTIM1) -#define __HAL_RCC_HRTIM1_IS_CLK_SLEEP_DISABLED() ((RCC->APB2LPENR & (RCC_APB2LPENR_HRTIMLPEN)) == 0U) -#endif /*HRTIM1*/ - -/** @brief ENABLE or disable the APB4 peripheral clock during Low Power (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is ENABLEd again. - * @note By default, all peripheral clocks are ENABLEd during SLEEP mode. - */ - -#define __HAL_RCC_SYSCFG_CLK_SLEEP_ENABLE() (RCC->APB4LPENR) |= (RCC_APB4LPENR_SYSCFGLPEN) -#define __HAL_RCC_LPUART1_CLK_SLEEP_ENABLE() (RCC->APB4LPENR) |= (RCC_APB4LPENR_LPUART1LPEN) -#define __HAL_RCC_SPI6_CLK_SLEEP_ENABLE() (RCC->APB4LPENR) |= (RCC_APB4LPENR_SPI6LPEN) -#define __HAL_RCC_I2C4_CLK_SLEEP_ENABLE() (RCC->APB4LPENR) |= (RCC_APB4LPENR_I2C4LPEN) -#define __HAL_RCC_LPTIM2_CLK_SLEEP_ENABLE() (RCC->APB4LPENR) |= (RCC_APB4LPENR_LPTIM2LPEN) -#define __HAL_RCC_LPTIM3_CLK_SLEEP_ENABLE() (RCC->APB4LPENR) |= (RCC_APB4LPENR_LPTIM3LPEN) -#if defined(LPTIM4) -#define __HAL_RCC_LPTIM4_CLK_SLEEP_ENABLE() (RCC->APB4LPENR) |= (RCC_APB4LPENR_LPTIM4LPEN) -#endif /*LPTIM4*/ -#if defined(LPTIM5) -#define __HAL_RCC_LPTIM5_CLK_SLEEP_ENABLE() (RCC->APB4LPENR) |= (RCC_APB4LPENR_LPTIM5LPEN) -#endif /*LPTIM5*/ -#if defined(DAC2) -#define __HAL_RCC_DAC2_CLK_SLEEP_ENABLE() (RCC->APB4LPENR) |= (RCC_APB4LPENR_DAC2LPEN) -#endif /*DAC2*/ -#define __HAL_RCC_COMP12_CLK_SLEEP_ENABLE() (RCC->APB4LPENR) |= (RCC_APB4LPENR_COMP12LPEN) -#define __HAL_RCC_VREF_CLK_SLEEP_ENABLE() (RCC->APB4LPENR) |= (RCC_APB4LPENR_VREFLPEN) -#define __HAL_RCC_RTC_CLK_SLEEP_ENABLE() (RCC->APB4LPENR) |= (RCC_APB4LPENR_RTCAPBLPEN) -#if defined(SAI4) -#define __HAL_RCC_SAI4_CLK_SLEEP_ENABLE() (RCC->APB4LPENR) |= (RCC_APB4LPENR_SAI4LPEN) -#endif /*SAI4*/ -#if defined(DTS) -#define __HAL_RCC_DTS_CLK_SLEEP_ENABLE() (RCC->APB4LPENR) |= (RCC_APB4LPENR_DTSLPEN) -#endif /*DTS*/ -#if defined(DFSDM2_BASE) -#define __HAL_RCC_DFSDM2_CLK_SLEEP_ENABLE() (RCC->APB4LPENR) |= (RCC_APB4LPENR_DFSDM2LPEN) -#endif /*DFSDM2*/ - -#define __HAL_RCC_SYSCFG_CLK_SLEEP_DISABLE() (RCC->APB4LPENR) &= ~ (RCC_APB4LPENR_SYSCFGLPEN) -#define __HAL_RCC_LPUART1_CLK_SLEEP_DISABLE() (RCC->APB4LPENR) &= ~ (RCC_APB4LPENR_LPUART1LPEN) -#define __HAL_RCC_SPI6_CLK_SLEEP_DISABLE() (RCC->APB4LPENR) &= ~ (RCC_APB4LPENR_SPI6LPEN) -#define __HAL_RCC_I2C4_CLK_SLEEP_DISABLE() (RCC->APB4LPENR) &= ~ (RCC_APB4LPENR_I2C4LPEN) -#define __HAL_RCC_LPTIM2_CLK_SLEEP_DISABLE() (RCC->APB4LPENR) &= ~ (RCC_APB4LPENR_LPTIM2LPEN) -#define __HAL_RCC_LPTIM3_CLK_SLEEP_DISABLE() (RCC->APB4LPENR) &= ~ (RCC_APB4LPENR_LPTIM3LPEN) -#if defined(LPTIM4) -#define __HAL_RCC_LPTIM4_CLK_SLEEP_DISABLE() (RCC->APB4LPENR) &= ~ (RCC_APB4LPENR_LPTIM4LPEN) -#endif /*LPTIM4*/ -#if defined(LPTIM5) -#define __HAL_RCC_LPTIM5_CLK_SLEEP_DISABLE() (RCC->APB4LPENR) &= ~ (RCC_APB4LPENR_LPTIM5LPEN) -#endif /*LPTIM5*/ -#if defined(DAC2) -#define __HAL_RCC_DAC2_CLK_SLEEP_DISABLE() (RCC->APB4LPENR) &= ~ (RCC_APB4LPENR_DAC2LPEN) -#endif /*DAC2*/ -#define __HAL_RCC_COMP12_CLK_SLEEP_DISABLE() (RCC->APB4LPENR) &= ~ (RCC_APB4LPENR_COMP12LPEN) -#define __HAL_RCC_VREF_CLK_SLEEP_DISABLE() (RCC->APB4LPENR) &= ~ (RCC_APB4LPENR_VREFLPEN) -#define __HAL_RCC_RTC_CLK_SLEEP_DISABLE() (RCC->APB4LPENR) &= ~ (RCC_APB4LPENR_RTCAPBLPEN) -#if defined(SAI4) -#define __HAL_RCC_SAI4_CLK_SLEEP_DISABLE() (RCC->APB4LPENR) &= ~ (RCC_APB4LPENR_SAI4LPEN) -#endif /*SAI4*/ -#if defined(DTS) -#define __HAL_RCC_DTS_CLK_SLEEP_DISABLE() (RCC->APB4LPENR) &= ~ (RCC_APB4LPENR_DTSLPEN) -#endif /*DTS*/ -#if defined(DFSDM2_BASE) -#define __HAL_RCC_DFSDM2_CLK_SLEEP_DISABLE() (RCC->APB4LPENR) &= ~ (RCC_APB4LPENR_DFSDM2LPEN) -#endif /*DFSDM2*/ - - -/** @brief Get the enable or disable status of the APB4 peripheral clock during Low Poser (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. - * @note By default, all peripheral clocks are enabled during SLEEP mode. - */ - -#define __HAL_RCC_SYSCFG_IS_CLK_SLEEP_ENABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_SYSCFGLPEN)) != 0U) -#define __HAL_RCC_LPUART1_IS_CLK_SLEEP_ENABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_LPUART1LPEN)) != 0U) -#define __HAL_RCC_SPI6_IS_CLK_SLEEP_ENABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_SPI6LPEN)) != 0U) -#define __HAL_RCC_I2C4_IS_CLK_SLEEP_ENABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_I2C4LPEN)) != 0U) -#define __HAL_RCC_LPTIM2_IS_CLK_SLEEP_ENABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_LPTIM2LPEN)) != 0U) -#define __HAL_RCC_LPTIM3_IS_CLK_SLEEP_ENABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_LPTIM3LPEN)) != 0U) -#if defined(LPTIM4) -#define __HAL_RCC_LPTIM4_IS_CLK_SLEEP_ENABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_LPTIM4LPEN)) != 0U) -#endif /*LPTIM4*/ -#if defined(LPTIM5) -#define __HAL_RCC_LPTIM5_IS_CLK_SLEEP_ENABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_LPTIM5LPEN)) != 0U) -#endif /*LPTIM5*/ -#if defined(DAC2) -#define __HAL_RCC_DAC2_IS_CLK_SLEEP_ENABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_DAC2LPEN)) != 0U) -#endif /*DAC2*/ -#define __HAL_RCC_COMP12_IS_CLK_SLEEP_ENABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_COMP12LPEN)) != 0U) -#define __HAL_RCC_VREF_IS_CLK_SLEEP_ENABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_VREFLPEN)) != 0U) -#define __HAL_RCC_RTC_IS_CLK_SLEEP_ENABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_RTCAPBLPEN)) != 0U) -#if defined(SAI4) -#define __HAL_RCC_SAI4_IS_CLK_SLEEP_ENABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_SAI4LPEN)) != 0U) -#endif /*SAI4*/ -#if defined(DTS) -#define __HAL_RCC_DTS_IS_CLK_SLEEP_ENABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_DTSLPEN)) != 0U) -#endif /*DTS*/ -#if defined(DFSDM2_BASE) -#define __HAL_RCC_DFSDM2_IS_CLK_SLEEP_ENABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_DFSDM2LPEN)) != 0U) -#endif /*DFSDM2*/ - -#define __HAL_RCC_SYSCFG_IS_CLK_SLEEP_DISABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_SYSCFGLPEN)) == 0U) -#define __HAL_RCC_LPUART1_IS_CLK_SLEEP_DISABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_LPUART1LPEN)) == 0U) -#define __HAL_RCC_SPI6_IS_CLK_SLEEP_DISABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_SPI6LPEN)) == 0U) -#define __HAL_RCC_I2C4_IS_CLK_SLEEP_DISABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_I2C4LPEN)) == 0U) -#define __HAL_RCC_LPTIM2_IS_CLK_SLEEP_DISABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_LPTIM2LPEN)) == 0U) -#define __HAL_RCC_LPTIM3_IS_CLK_SLEEP_DISABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_LPTIM3LPEN)) == 0U) -#if defined(LPTIM4) -#define __HAL_RCC_LPTIM4_IS_CLK_SLEEP_DISABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_LPTIM4LPEN)) == 0U) -#endif /*LPTIM4*/ -#if defined(LPTIM5) -#define __HAL_RCC_LPTIM5_IS_CLK_SLEEP_DISABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_LPTIM5LPEN)) == 0U) -#endif /*LPTIM5*/ -#if defined(DAC2) -#define __HAL_RCC_DAC2_IS_CLK_SLEEP_DISABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_DAC2LPEN)) == 0U) -#endif /*DAC2*/ -#define __HAL_RCC_COMP12_IS_CLK_SLEEP_DISABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_COMP12LPEN)) == 0U) -#define __HAL_RCC_VREF_IS_CLK_SLEEP_DISABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_VREFLPEN)) == 0U) -#define __HAL_RCC_RTC_IS_CLK_SLEEP_DISABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_RTCAPBLPEN)) == 0U) -#if defined(SAI4) -#define __HAL_RCC_SAI4_IS_CLK_SLEEP_DISABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_SAI4LPEN)) == 0U) -#endif /*SAI4*/ -#if defined(DTS) -#define __HAL_RCC_DTS_IS_CLK_SLEEP_DISABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_DTSLPEN)) == 0U) -#endif /*DTS*/ -#if defined(DFSDM2_BASE) -#define __HAL_RCC_DFSDM2_IS_CLK_SLEEP_DISABLED() ((RCC->APB4LPENR & (RCC_APB4LPENR_DFSDM2LPEN)) == 0U) -#endif /*DFSDM2*/ - - -#if defined(DUAL_CORE) - -/** @brief Enable or disable the RCC_C1 AHB3 peripheral clock during Low Power (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. - * @note By default, all peripheral clocks are enabled during SLEEP mode. - */ -#define __HAL_RCC_C1_MDMA_CLK_SLEEP_ENABLE() (RCC_C1->AHB3LPENR |= (RCC_AHB3LPENR_MDMALPEN)) -#define __HAL_RCC_C1_DMA2D_CLK_SLEEP_ENABLE() (RCC_C1->AHB3LPENR |= (RCC_AHB3LPENR_DMA2DLPEN)) -#define __HAL_RCC_C1_JPGDEC_CLK_SLEEP_ENABLE() (RCC_C1->AHB3LPENR |= (RCC_AHB3LPENR_JPGDECLPEN)) -#define __HAL_RCC_C1_FLASH_CLK_SLEEP_ENABLE() (RCC_C1->AHB3LPENR |= (RCC_AHB3LPENR_FLASHLPEN)) -#define __HAL_RCC_C1_FMC_CLK_SLEEP_ENABLE() (RCC_C1->AHB3LPENR |= (RCC_AHB3LPENR_FMCLPEN)) -#define __HAL_RCC_C1_QSPI_CLK_SLEEP_ENABLE() (RCC_C1->AHB3LPENR |= (RCC_AHB3LPENR_QSPILPEN)) -#define __HAL_RCC_C1_SDMMC1_CLK_SLEEP_ENABLE() (RCC_C1->AHB3LPENR |= (RCC_AHB3LPENR_SDMMC1LPEN)) -#define __HAL_RCC_C1_DTCM1_CLK_SLEEP_ENABLE() (RCC_C1->AHB3LPENR |= (RCC_AHB3LPENR_DTCM1LPEN)) -#define __HAL_RCC_C1_DTCM2_CLK_SLEEP_ENABLE() (RCC_C1->AHB3LPENR |= (RCC_AHB3LPENR_DTCM2LPEN)) -#define __HAL_RCC_C1_ITCM_CLK_SLEEP_ENABLE() (RCC_C1->AHB3LPENR |= (RCC_AHB3LPENR_ITCMLPEN)) -#define __HAL_RCC_C1_D1SRAM1_CLK_SLEEP_ENABLE() (RCC_C1->AHB3LPENR |= (RCC_AHB3LPENR_AXISRAMLPEN)) - - -#define __HAL_RCC_C1_MDMA_CLK_SLEEP_DISABLE() (RCC_C1->AHB3LPENR &= ~ (RCC_AHB3LPENR_MDMALPEN)) -#define __HAL_RCC_C1_DMA2D_CLK_SLEEP_DISABLE() (RCC_C1->AHB3LPENR &= ~ (RCC_AHB3LPENR_DMA2DLPEN)) -#define __HAL_RCC_C1_JPGDEC_CLK_SLEEP_DISABLE() (RCC_C1->AHB3LPENR &= ~ (RCC_AHB3LPENR_JPGDECLPEN)) -#define __HAL_RCC_C1_FLASH_CLK_SLEEP_DISABLE() (RCC_C1->AHB3LPENR &= ~ (RCC_AHB3LPENR_FLASHLPEN)) -#define __HAL_RCC_C1_FMC_CLK_SLEEP_DISABLE() (RCC_C1->AHB3LPENR &= ~ (RCC_AHB3LPENR_FMCLPEN)) -#define __HAL_RCC_C1_QSPI_CLK_SLEEP_DISABLE() (RCC_C1->AHB3LPENR &= ~ (RCC_AHB3LPENR_QSPILPEN)) -#define __HAL_RCC_C1_SDMMC1_CLK_SLEEP_DISABLE() (RCC_C1->AHB3LPENR &= ~ (RCC_AHB3LPENR_SDMMC1LPEN)) -#define __HAL_RCC_C1_DTCM1_CLK_SLEEP_DISABLE() (RCC_C1->AHB3LPENR &= ~ (RCC_AHB3LPENR_DTCM1LPEN)) -#define __HAL_RCC_C1_DTCM2_CLK_SLEEP_DISABLE() (RCC_C1->AHB3LPENR &= ~ (RCC_AHB3LPENR_DTCM2LPEN)) -#define __HAL_RCC_C1_ITCM_CLK_SLEEP_DISABLE() (RCC_C1->AHB3LPENR &= ~ (RCC_AHB3LPENR_ITCMLPEN)) -#define __HAL_RCC_C1_D1SRAM1_CLK_SLEEP_DISABLE() (RCC_C1->AHB3LPENR &= ~ (RCC_AHB3LPENR_AXISRAMLPEN)) - - - -/** @brief ENABLE or disable the AHB1 peripheral clock during Low Power (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is ENABLEd again. - * @note By default, all peripheral clocks are ENABLEd during SLEEP mode. - */ - -#define __HAL_RCC_C1_DMA1_CLK_SLEEP_ENABLE() (RCC_C1->AHB1LPENR |= (RCC_AHB1LPENR_DMA1LPEN)) -#define __HAL_RCC_C1_DMA2_CLK_SLEEP_ENABLE() (RCC_C1->AHB1LPENR |= (RCC_AHB1LPENR_DMA2LPEN)) -#define __HAL_RCC_C1_ADC12_CLK_SLEEP_ENABLE() (RCC_C1->AHB1LPENR |= (RCC_AHB1LPENR_ADC12LPEN)) -#define __HAL_RCC_C1_ETH1MAC_CLK_SLEEP_ENABLE() (RCC_C1->AHB1LPENR |= (RCC_AHB1LPENR_ETH1MACLPEN)) -#define __HAL_RCC_C1_ETH1TX_CLK_SLEEP_ENABLE() (RCC_C1->AHB1LPENR |= (RCC_AHB1LPENR_ETH1TXLPEN)) -#define __HAL_RCC_C1_ETH1RX_CLK_SLEEP_ENABLE() (RCC_C1->AHB1LPENR |= (RCC_AHB1LPENR_ETH1RXLPEN)) -#define __HAL_RCC_C1_USB1_OTG_HS_CLK_SLEEP_ENABLE() (RCC_C1->AHB1LPENR |= (RCC_AHB1LPENR_USB1OTGHSLPEN)) -#define __HAL_RCC_C1_USB1_OTG_HS_ULPI_CLK_SLEEP_ENABLE() (RCC_C1->AHB1LPENR |= (RCC_AHB1LPENR_USB1OTGHSULPILPEN)) -#define __HAL_RCC_C1_USB2_OTG_FS_CLK_SLEEP_ENABLE() (RCC_C1->AHB1LPENR |= (RCC_AHB1LPENR_USB2OTGHSLPEN)) -#define __HAL_RCC_C1_USB2_OTG_FS_ULPI_CLK_SLEEP_ENABLE() (RCC_C1->AHB1LPENR |= (RCC_AHB1LPENR_USB2OTGHSULPILPEN)) - -#define __HAL_RCC_C1_DMA1_CLK_SLEEP_DISABLE() (RCC_C1->AHB1LPENR &= ~ (RCC_AHB1LPENR_DMA1LPEN)) -#define __HAL_RCC_C1_DMA2_CLK_SLEEP_DISABLE() (RCC_C1->AHB1LPENR &= ~ (RCC_AHB1LPENR_DMA2LPEN)) -#define __HAL_RCC_C1_ADC12_CLK_SLEEP_DISABLE() (RCC_C1->AHB1LPENR &= ~ (RCC_AHB1LPENR_ADC12LPEN)) -#define __HAL_RCC_C1_ETH1MAC_CLK_SLEEP_DISABLE() (RCC_C1->AHB1LPENR &= ~ (RCC_AHB1LPENR_ETH1MACLPEN)) -#define __HAL_RCC_C1_ETH1TX_CLK_SLEEP_DISABLE() (RCC_C1->AHB1LPENR &= ~ (RCC_AHB1LPENR_ETH1TXLPEN)) -#define __HAL_RCC_C1_ETH1RX_CLK_SLEEP_DISABLE() (RCC_C1->AHB1LPENR &= ~ (RCC_AHB1LPENR_ETH1RXLPEN)) -#define __HAL_RCC_C1_USB1_OTG_HS_CLK_SLEEP_DISABLE() (RCC_C1->AHB1LPENR &= ~ (RCC_AHB1LPENR_USB1OTGHSLPEN)) -#define __HAL_RCC_C1_USB1_OTG_HS_ULPI_CLK_SLEEP_DISABLE() (RCC_C1->AHB1LPENR &= ~ (RCC_AHB1LPENR_USB1OTGHSULPILPEN)) -#define __HAL_RCC_C1_USB2_OTG_FS_CLK_SLEEP_DISABLE() (RCC_C1->AHB1LPENR &= ~ (RCC_AHB1LPENR_USB2OTGHSLPEN)) -#define __HAL_RCC_C1_USB2_OTG_FS_ULPI_CLK_SLEEP_DISABLE() (RCC_C1->AHB1LPENR &= ~ (RCC_AHB1LPENR_USB2OTGHSULPILPEN)) - -/** @brief ENABLE or disable the AHB2 peripheral clock during Low Power (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is ENABLEd again. - * @note By default, all peripheral clocks are ENABLEd during SLEEP mode. - */ - -#define __HAL_RCC_C1_DCMI_CLK_SLEEP_ENABLE() (RCC_C1->AHB2LPENR |= (RCC_AHB2LPENR_DCMILPEN)) -#if defined(CRYP) -#define __HAL_RCC_C1_CRYP_CLK_SLEEP_ENABLE() (RCC_C1->AHB2LPENR |= (RCC_AHB2LPENR_CRYPLPEN)) -#endif /* CRYP */ -#if defined(HASH) -#define __HAL_RCC_C1_HASH_CLK_SLEEP_ENABLE() (RCC_C1->AHB2LPENR |= (RCC_AHB2LPENR_HASHLPEN)) -#endif /* HASH */ -#define __HAL_RCC_C1_RNG_CLK_SLEEP_ENABLE() (RCC_C1->AHB2LPENR |= (RCC_AHB2LPENR_RNGLPEN)) -#define __HAL_RCC_C1_SDMMC2_CLK_SLEEP_ENABLE() (RCC_C1->AHB2LPENR |= (RCC_AHB2LPENR_SDMMC2LPEN)) -#define __HAL_RCC_C1_D2SRAM1_CLK_SLEEP_ENABLE() (RCC_C1->AHB2LPENR |= (RCC_AHB2LPENR_D2SRAM1LPEN)) -#define __HAL_RCC_C1_D2SRAM2_CLK_SLEEP_ENABLE() (RCC_C1->AHB2LPENR |= (RCC_AHB2LPENR_D2SRAM2LPEN)) -#define __HAL_RCC_C1_D2SRAM3_CLK_SLEEP_ENABLE() (RCC_C1->AHB2LPENR |= (RCC_AHB2LPENR_D2SRAM3LPEN)) - -#define __HAL_RCC_C1_DCMI_CLK_SLEEP_DISABLE() (RCC_C1->AHB2LPENR &= ~ (RCC_AHB2LPENR_DCMILPEN)) -#if defined(CRYP) -#define __HAL_RCC_C1_CRYP_CLK_SLEEP_DISABLE() (RCC_C1->AHB2LPENR &= ~ (RCC_AHB2LPENR_CRYPLPEN)) -#endif /* CRYP */ -#if defined(HASH) -#define __HAL_RCC_C1_HASH_CLK_SLEEP_DISABLE() (RCC_C1->AHB2LPENR &= ~ (RCC_AHB2LPENR_HASHLPEN)) -#endif /* HASH */ -#define __HAL_RCC_C1_RNG_CLK_SLEEP_DISABLE() (RCC_C1->AHB2LPENR &= ~ (RCC_AHB2LPENR_RNGLPEN)) -#define __HAL_RCC_C1_SDMMC2_CLK_SLEEP_DISABLE() (RCC_C1->AHB2LPENR &= ~ (RCC_AHB2LPENR_SDMMC2LPEN)) -#define __HAL_RCC_C1_D2SRAM1_CLK_SLEEP_DISABLE() (RCC_C1->AHB2LPENR &= ~ (RCC_AHB2LPENR_D2SRAM1LPEN)) -#define __HAL_RCC_C1_D2SRAM2_CLK_SLEEP_DISABLE() (RCC_C1->AHB2LPENR &= ~ (RCC_AHB2LPENR_D2SRAM2LPEN)) -#define __HAL_RCC_C1_D2SRAM3_CLK_SLEEP_DISABLE() (RCC_C1->AHB2LPENR &= ~ (RCC_AHB2LPENR_D2SRAM3LPEN)) - -/** @brief ENABLE or disable the AHB4 peripheral clock during Low Power (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is ENABLEd again. - * @note By default, all peripheral clocks are ENABLEd during SLEEP mode. - */ - -#define __HAL_RCC_C1_GPIOA_CLK_SLEEP_ENABLE() (RCC_C1->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOALPEN) -#define __HAL_RCC_C1_GPIOB_CLK_SLEEP_ENABLE() (RCC_C1->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOBLPEN) -#define __HAL_RCC_C1_GPIOC_CLK_SLEEP_ENABLE() (RCC_C1->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOCLPEN) -#define __HAL_RCC_C1_GPIOD_CLK_SLEEP_ENABLE() (RCC_C1->AHB4LPENR) |= (RCC_AHB4LPENR_GPIODLPEN) -#define __HAL_RCC_C1_GPIOE_CLK_SLEEP_ENABLE() (RCC_C1->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOELPEN) -#define __HAL_RCC_C1_GPIOF_CLK_SLEEP_ENABLE() (RCC_C1->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOFLPEN) -#define __HAL_RCC_C1_GPIOG_CLK_SLEEP_ENABLE() (RCC_C1->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOGLPEN) -#define __HAL_RCC_C1_GPIOH_CLK_SLEEP_ENABLE() (RCC_C1->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOHLPEN) -#define __HAL_RCC_C1_GPIOI_CLK_SLEEP_ENABLE() (RCC_C1->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOILPEN) -#define __HAL_RCC_C1_GPIOJ_CLK_SLEEP_ENABLE() (RCC_C1->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOJLPEN) -#define __HAL_RCC_C1_GPIOK_CLK_SLEEP_ENABLE() (RCC_C1->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOKLPEN) -#define __HAL_RCC_C1_CRC_CLK_SLEEP_ENABLE() (RCC_C1->AHB4LPENR) |= (RCC_AHB4LPENR_CRCLPEN) -#define __HAL_RCC_C1_BDMA_CLK_SLEEP_ENABLE() (RCC_C1->AHB4LPENR) |= (RCC_AHB4LPENR_BDMALPEN) -#define __HAL_RCC_C1_ADC3_CLK_SLEEP_ENABLE() (RCC_C1->AHB4LPENR) |= (RCC_AHB4LPENR_ADC3LPEN) -#define __HAL_RCC_C1_BKPRAM_CLK_SLEEP_ENABLE() (RCC_C1->AHB4LPENR) |= (RCC_AHB4LPENR_BKPRAMLPEN) -#define __HAL_RCC_C1_D3SRAM1_CLK_SLEEP_ENABLE() (RCC_C1->AHB4LPENR |= (RCC_AHB4LPENR_D3SRAM1LPEN)) - -#define __HAL_RCC_C1_GPIOA_CLK_SLEEP_DISABLE() (RCC_C1->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOALPEN) -#define __HAL_RCC_C1_GPIOB_CLK_SLEEP_DISABLE() (RCC_C1->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOBLPEN) -#define __HAL_RCC_C1_GPIOC_CLK_SLEEP_DISABLE() (RCC_C1->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOCLPEN) -#define __HAL_RCC_C1_GPIOD_CLK_SLEEP_DISABLE() (RCC_C1->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIODLPEN) -#define __HAL_RCC_C1_GPIOE_CLK_SLEEP_DISABLE() (RCC_C1->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOELPEN) -#define __HAL_RCC_C1_GPIOF_CLK_SLEEP_DISABLE() (RCC_C1->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOFLPEN) -#define __HAL_RCC_C1_GPIOG_CLK_SLEEP_DISABLE() (RCC_C1->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOGLPEN) -#define __HAL_RCC_C1_GPIOH_CLK_SLEEP_DISABLE() (RCC_C1->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOHLPEN) -#define __HAL_RCC_C1_GPIOI_CLK_SLEEP_DISABLE() (RCC_C1->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOILPEN) -#define __HAL_RCC_C1_GPIOJ_CLK_SLEEP_DISABLE() (RCC_C1->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOJLPEN) -#define __HAL_RCC_C1_GPIOK_CLK_SLEEP_DISABLE() (RCC_C1->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOKLPEN) -#define __HAL_RCC_C1_CRC_CLK_SLEEP_DISABLE() (RCC_C1->AHB4LPENR) &= ~ (RCC_AHB4LPENR_CRCLPEN) -#define __HAL_RCC_C1_BDMA_CLK_SLEEP_DISABLE() (RCC_C1->AHB4LPENR) &= ~ (RCC_AHB4LPENR_BDMALPEN) -#define __HAL_RCC_C1_ADC3_CLK_SLEEP_DISABLE() (RCC_C1->AHB4LPENR) &= ~ (RCC_AHB4LPENR_ADC3LPEN) -#define __HAL_RCC_C1_BKPRAM_CLK_SLEEP_DISABLE() (RCC_C1->AHB4LPENR) &= ~ (RCC_AHB4LPENR_BKPRAMLPEN) -#define __HAL_RCC_C1_D3SRAM1_CLK_SLEEP_DISABLE() (RCC_C1->AHB4LPENR &= ~ (RCC_AHB4LPENR_D3SRAM1LPEN)) - -/** @brief ENABLE or disable the APB3 peripheral clock during Low Power (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is ENABLEd again. - * @note By default, all peripheral clocks are ENABLEd during SLEEP mode. - */ - -#define __HAL_RCC_C1_LTDC_CLK_SLEEP_ENABLE() (RCC_C1->APB3LPENR) |= (RCC_APB3LPENR_LTDCLPEN) -#define __HAL_RCC_C1_DSI_CLK_SLEEP_ENABLE() (RCC_C1->APB3LPENR) |= (RCC_APB3LPENR_DSILPEN) -#define __HAL_RCC_C1_WWDG1_CLK_SLEEP_ENABLE() (RCC_C1->APB3LPENR) |= (RCC_APB3LPENR_WWDG1LPEN) - -#define __HAL_RCC_C1_LTDC_CLK_SLEEP_DISABLE() (RCC_C1->APB3LPENR) &= ~ (RCC_APB3LPENR_LTDCLPEN) -#define __HAL_RCC_C1_DSI_CLK_SLEEP_DISABLE() (RCC_C1->APB3LPENR) &= ~ (RCC_APB3LPENR_DSILPEN) -#define __HAL_RCC_C1_WWDG1_CLK_SLEEP_DISABLE() (RCC_C1->APB3LPENR) &= ~ (RCC_APB3LPENR_WWDG1LPEN) - -/** @brief ENABLE or disable the APB1 peripheral clock during Low Power (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is ENABLEd again. - * @note By default, all peripheral clocks are ENABLEd during SLEEP mode. - */ - -#define __HAL_RCC_C1_TIM2_CLK_SLEEP_ENABLE() (RCC_C1->APB1LLPENR) |= (RCC_APB1LLPENR_TIM2LPEN) -#define __HAL_RCC_C1_TIM3_CLK_SLEEP_ENABLE() (RCC_C1->APB1LLPENR) |= (RCC_APB1LLPENR_TIM3LPEN) -#define __HAL_RCC_C1_TIM4_CLK_SLEEP_ENABLE() (RCC_C1->APB1LLPENR) |= (RCC_APB1LLPENR_TIM4LPEN) -#define __HAL_RCC_C1_TIM5_CLK_SLEEP_ENABLE() (RCC_C1->APB1LLPENR) |= (RCC_APB1LLPENR_TIM5LPEN) -#define __HAL_RCC_C1_TIM6_CLK_SLEEP_ENABLE() (RCC_C1->APB1LLPENR) |= (RCC_APB1LLPENR_TIM6LPEN) -#define __HAL_RCC_C1_TIM7_CLK_SLEEP_ENABLE() (RCC_C1->APB1LLPENR) |= (RCC_APB1LLPENR_TIM7LPEN) -#define __HAL_RCC_C1_TIM12_CLK_SLEEP_ENABLE() (RCC_C1->APB1LLPENR) |= (RCC_APB1LLPENR_TIM12LPEN) -#define __HAL_RCC_C1_TIM13_CLK_SLEEP_ENABLE() (RCC_C1->APB1LLPENR) |= (RCC_APB1LLPENR_TIM13LPEN) -#define __HAL_RCC_C1_TIM14_CLK_SLEEP_ENABLE() (RCC_C1->APB1LLPENR) |= (RCC_APB1LLPENR_TIM14LPEN) -#define __HAL_RCC_C1_LPTIM1_CLK_SLEEP_ENABLE() (RCC_C1->APB1LLPENR) |= (RCC_APB1LLPENR_LPTIM1LPEN) -#define __HAL_RCC_C1_WWDG2_CLK_SLEEP_ENABLE() (RCC_C1->APB1LLPENR) |= (RCC_APB1LLPENR_WWDG2LPEN) -#define __HAL_RCC_C1_SPI2_CLK_SLEEP_ENABLE() (RCC_C1->APB1LLPENR) |= (RCC_APB1LLPENR_SPI2LPEN) -#define __HAL_RCC_C1_SPI3_CLK_SLEEP_ENABLE() (RCC_C1->APB1LLPENR) |= (RCC_APB1LLPENR_SPI3LPEN) -#define __HAL_RCC_C1_SPDIFRX_CLK_SLEEP_ENABLE() (RCC_C1->APB1LLPENR) |= (RCC_APB1LLPENR_SPDIFRXLPEN) -#define __HAL_RCC_C1_USART2_CLK_SLEEP_ENABLE() (RCC_C1->APB1LLPENR) |= (RCC_APB1LLPENR_USART2LPEN) -#define __HAL_RCC_C1_USART3_CLK_SLEEP_ENABLE() (RCC_C1->APB1LLPENR) |= (RCC_APB1LLPENR_USART3LPEN) -#define __HAL_RCC_C1_UART4_CLK_SLEEP_ENABLE() (RCC_C1->APB1LLPENR) |= (RCC_APB1LLPENR_UART4LPEN) -#define __HAL_RCC_C1_UART5_CLK_SLEEP_ENABLE() (RCC_C1->APB1LLPENR) |= (RCC_APB1LLPENR_UART5LPEN) -#define __HAL_RCC_C1_I2C1_CLK_SLEEP_ENABLE() (RCC_C1->APB1LLPENR) |= (RCC_APB1LLPENR_I2C1LPEN) -#define __HAL_RCC_C1_I2C2_CLK_SLEEP_ENABLE() (RCC_C1->APB1LLPENR) |= (RCC_APB1LLPENR_I2C2LPEN) -#define __HAL_RCC_C1_I2C3_CLK_SLEEP_ENABLE() (RCC_C1->APB1LLPENR) |= (RCC_APB1LLPENR_I2C3LPEN) -#define __HAL_RCC_C1_CEC_CLK_SLEEP_ENABLE() (RCC_C1->APB1LLPENR) |= (RCC_APB1LLPENR_CECLPEN) -#define __HAL_RCC_C1_DAC12_CLK_SLEEP_ENABLE() (RCC_C1->APB1LLPENR) |= (RCC_APB1LLPENR_DAC12LPEN) -#define __HAL_RCC_C1_UART7_CLK_SLEEP_ENABLE() (RCC_C1->APB1LLPENR) |= (RCC_APB1LLPENR_UART7LPEN) -#define __HAL_RCC_C1_UART8_CLK_SLEEP_ENABLE() (RCC_C1->APB1LLPENR) |= (RCC_APB1LLPENR_UART8LPEN) -#define __HAL_RCC_C1_CRS_CLK_SLEEP_ENABLE() (RCC_C1->APB1HLPENR) |= (RCC_APB1HLPENR_CRSLPEN) -#define __HAL_RCC_C1_SWPMI_CLK_SLEEP_ENABLE() (RCC_C1->APB1HLPENR) |= (RCC_APB1HLPENR_SWPMILPEN) -#define __HAL_RCC_C1_OPAMP_CLK_SLEEP_ENABLE() (RCC_C1->APB1HLPENR) |= (RCC_APB1HLPENR_OPAMPLPEN) -#define __HAL_RCC_C1_MDIOS_CLK_SLEEP_ENABLE() (RCC_C1->APB1HLPENR) |= (RCC_APB1HLPENR_MDIOSLPEN) -#define __HAL_RCC_C1_FDCAN_CLK_SLEEP_ENABLE() (RCC_C1->APB1HLPENR) |= (RCC_APB1HLPENR_FDCANLPEN) - - -#define __HAL_RCC_C1_TIM2_CLK_SLEEP_DISABLE() (RCC_C1->APB1LLPENR) &= ~ (RCC_APB1LLPENR_TIM2LPEN) -#define __HAL_RCC_C1_TIM3_CLK_SLEEP_DISABLE() (RCC_C1->APB1LLPENR) &= ~ (RCC_APB1LLPENR_TIM3LPEN) -#define __HAL_RCC_C1_TIM4_CLK_SLEEP_DISABLE() (RCC_C1->APB1LLPENR) &= ~ (RCC_APB1LLPENR_TIM4LPEN) -#define __HAL_RCC_C1_TIM5_CLK_SLEEP_DISABLE() (RCC_C1->APB1LLPENR) &= ~ (RCC_APB1LLPENR_TIM5LPEN) -#define __HAL_RCC_C1_TIM6_CLK_SLEEP_DISABLE() (RCC_C1->APB1LLPENR) &= ~ (RCC_APB1LLPENR_TIM6LPEN) -#define __HAL_RCC_C1_TIM7_CLK_SLEEP_DISABLE() (RCC_C1->APB1LLPENR) &= ~ (RCC_APB1LLPENR_TIM7LPEN) -#define __HAL_RCC_C1_TIM12_CLK_SLEEP_DISABLE() (RCC_C1->APB1LLPENR) &= ~ (RCC_APB1LLPENR_TIM12LPEN) -#define __HAL_RCC_C1_TIM13_CLK_SLEEP_DISABLE() (RCC_C1->APB1LLPENR) &= ~ (RCC_APB1LLPENR_TIM13LPEN) -#define __HAL_RCC_C1_TIM14_CLK_SLEEP_DISABLE() (RCC_C1->APB1LLPENR) &= ~ (RCC_APB1LLPENR_TIM14LPEN) -#define __HAL_RCC_C1_LPTIM1_CLK_SLEEP_DISABLE() (RCC_C1->APB1LLPENR) &= ~ (RCC_APB1LLPENR_LPTIM1LPEN) -#define __HAL_RCC_C1_WWDG2_CLK_SLEEP_DISABLE() (RCC_C1->APB1LLPENR) &= ~ (RCC_APB1LLPENR_WWDG2LPEN) -#define __HAL_RCC_C1_SPI2_CLK_SLEEP_DISABLE() (RCC_C1->APB1LLPENR) &= ~ (RCC_APB1LLPENR_SPI2LPEN) -#define __HAL_RCC_C1_SPI3_CLK_SLEEP_DISABLE() (RCC_C1->APB1LLPENR) &= ~ (RCC_APB1LLPENR_SPI3LPEN) -#define __HAL_RCC_C1_SPDIFRX_CLK_SLEEP_DISABLE() (RCC_C1->APB1LLPENR) &= ~ (RCC_APB1LLPENR_SPDIFRXLPEN) -#define __HAL_RCC_C1_USART2_CLK_SLEEP_DISABLE() (RCC_C1->APB1LLPENR) &= ~ (RCC_APB1LLPENR_USART2LPEN) -#define __HAL_RCC_C1_USART3_CLK_SLEEP_DISABLE() (RCC_C1->APB1LLPENR) &= ~ (RCC_APB1LLPENR_USART3LPEN) -#define __HAL_RCC_C1_UART4_CLK_SLEEP_DISABLE() (RCC_C1->APB1LLPENR) &= ~ (RCC_APB1LLPENR_UART4LPEN) -#define __HAL_RCC_C1_UART5_CLK_SLEEP_DISABLE() (RCC_C1->APB1LLPENR) &= ~ (RCC_APB1LLPENR_UART5LPEN) -#define __HAL_RCC_C1_I2C1_CLK_SLEEP_DISABLE() (RCC_C1->APB1LLPENR) &= ~ (RCC_APB1LLPENR_I2C1LPEN) -#define __HAL_RCC_C1_I2C2_CLK_SLEEP_DISABLE() (RCC_C1->APB1LLPENR) &= ~ (RCC_APB1LLPENR_I2C2LPEN) -#define __HAL_RCC_C1_I2C3_CLK_SLEEP_DISABLE() (RCC_C1->APB1LLPENR) &= ~ (RCC_APB1LLPENR_I2C3LPEN) -#define __HAL_RCC_C1_CEC_CLK_SLEEP_DISABLE() (RCC_C1->APB1LLPENR) &= ~ (RCC_APB1LLPENR_CECLPEN) -#define __HAL_RCC_C1_DAC12_CLK_SLEEP_DISABLE() (RCC_C1->APB1LLPENR) &= ~ (RCC_APB1LLPENR_DAC12LPEN) -#define __HAL_RCC_C1_UART7_CLK_SLEEP_DISABLE() (RCC_C1->APB1LLPENR) &= ~ (RCC_APB1LLPENR_UART7LPEN) -#define __HAL_RCC_C1_UART8_CLK_SLEEP_DISABLE() (RCC_C1->APB1LLPENR) &= ~ (RCC_APB1LLPENR_UART8LPEN) -#define __HAL_RCC_C1_CRS_CLK_SLEEP_DISABLE() (RCC_C1->APB1HLPENR) &= ~ (RCC_APB1HLPENR_CRSLPEN) -#define __HAL_RCC_C1_SWPMI_CLK_SLEEP_DISABLE() (RCC_C1->APB1HLPENR) &= ~ (RCC_APB1HLPENR_SWPMILPEN) -#define __HAL_RCC_C1_OPAMP_CLK_SLEEP_DISABLE() (RCC_C1->APB1HLPENR) &= ~ (RCC_APB1HLPENR_OPAMPLPEN) -#define __HAL_RCC_C1_MDIOS_CLK_SLEEP_DISABLE() (RCC_C1->APB1HLPENR) &= ~ (RCC_APB1HLPENR_MDIOSLPEN) -#define __HAL_RCC_C1_FDCAN_CLK_SLEEP_DISABLE() (RCC_C1->APB1HLPENR) &= ~ (RCC_APB1HLPENR_FDCANLPEN) - -/** @brief ENABLE or disable the APB2 peripheral clock during Low Power (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is ENABLEd again. - * @note By default, all peripheral clocks are ENABLEd during SLEEP mode. - */ - -#define __HAL_RCC_C1_TIM1_CLK_SLEEP_ENABLE() (RCC_C1->APB2LPENR) |= (RCC_APB2LPENR_TIM1LPEN) -#define __HAL_RCC_C1_TIM8_CLK_SLEEP_ENABLE() (RCC_C1->APB2LPENR) |= (RCC_APB2LPENR_TIM8LPEN) -#define __HAL_RCC_C1_USART1_CLK_SLEEP_ENABLE() (RCC_C1->APB2LPENR) |= (RCC_APB2LPENR_USART1LPEN) -#define __HAL_RCC_C1_USART6_CLK_SLEEP_ENABLE() (RCC_C1->APB2LPENR) |= (RCC_APB2LPENR_USART6LPEN) -#define __HAL_RCC_C1_SPI1_CLK_SLEEP_ENABLE() (RCC_C1->APB2LPENR) |= (RCC_APB2LPENR_SPI1LPEN) -#define __HAL_RCC_C1_SPI4_CLK_SLEEP_ENABLE() (RCC_C1->APB2LPENR) |= (RCC_APB2LPENR_SPI4LPEN) -#define __HAL_RCC_C1_TIM15_CLK_SLEEP_ENABLE() (RCC_C1->APB2LPENR) |= (RCC_APB2LPENR_TIM15LPEN) -#define __HAL_RCC_C1_TIM16_CLK_SLEEP_ENABLE() (RCC_C1->APB2LPENR) |= (RCC_APB2LPENR_TIM16LPEN) -#define __HAL_RCC_C1_TIM17_CLK_SLEEP_ENABLE() (RCC_C1->APB2LPENR) |= (RCC_APB2LPENR_TIM17LPEN) -#define __HAL_RCC_C1_SPI5_CLK_SLEEP_ENABLE() (RCC_C1->APB2LPENR) |= (RCC_APB2LPENR_SPI5LPEN) -#define __HAL_RCC_C1_SAI1_CLK_SLEEP_ENABLE() (RCC_C1->APB2LPENR) |= (RCC_APB2LPENR_SAI1LPEN) -#define __HAL_RCC_C1_SAI2_CLK_SLEEP_ENABLE() (RCC_C1->APB2LPENR) |= (RCC_APB2LPENR_SAI2LPEN) -#define __HAL_RCC_C1_SAI3_CLK_SLEEP_ENABLE() (RCC_C1->APB2LPENR) |= (RCC_APB2LPENR_SAI3LPEN) -#define __HAL_RCC_C1_DFSDM1_CLK_SLEEP_ENABLE() (RCC_C1->APB2LPENR) |= (RCC_APB2LPENR_DFSDM1LPEN) -#define __HAL_RCC_C1_HRTIM1_CLK_SLEEP_ENABLE() (RCC_C1->APB2LPENR) |= (RCC_APB2LPENR_HRTIMLPEN) - -#define __HAL_RCC_C1_TIM1_CLK_SLEEP_DISABLE() (RCC_C1->APB2LPENR) &= ~ (RCC_APB2LPENR_TIM1LPEN) -#define __HAL_RCC_C1_TIM8_CLK_SLEEP_DISABLE() (RCC_C1->APB2LPENR) &= ~ (RCC_APB2LPENR_TIM8LPEN) -#define __HAL_RCC_C1_USART1_CLK_SLEEP_DISABLE() (RCC_C1->APB2LPENR) &= ~ (RCC_APB2LPENR_USART1LPEN) -#define __HAL_RCC_C1_USART6_CLK_SLEEP_DISABLE() (RCC_C1->APB2LPENR) &= ~ (RCC_APB2LPENR_USART6LPEN) -#define __HAL_RCC_C1_SPI1_CLK_SLEEP_DISABLE() (RCC_C1->APB2LPENR) &= ~ (RCC_APB2LPENR_SPI1LPEN) -#define __HAL_RCC_C1_SPI4_CLK_SLEEP_DISABLE() (RCC_C1->APB2LPENR) &= ~ (RCC_APB2LPENR_SPI4LPEN) -#define __HAL_RCC_C1_TIM15_CLK_SLEEP_DISABLE() (RCC_C1->APB2LPENR) &= ~ (RCC_APB2LPENR_TIM15LPEN) -#define __HAL_RCC_C1_TIM16_CLK_SLEEP_DISABLE() (RCC_C1->APB2LPENR) &= ~ (RCC_APB2LPENR_TIM16LPEN) -#define __HAL_RCC_C1_TIM17_CLK_SLEEP_DISABLE() (RCC_C1->APB2LPENR) &= ~ (RCC_APB2LPENR_TIM17LPEN) -#define __HAL_RCC_C1_SPI5_CLK_SLEEP_DISABLE() (RCC_C1->APB2LPENR) &= ~ (RCC_APB2LPENR_SPI5LPEN) -#define __HAL_RCC_C1_SAI1_CLK_SLEEP_DISABLE() (RCC_C1->APB2LPENR) &= ~ (RCC_APB2LPENR_SAI1LPEN) -#define __HAL_RCC_C1_SAI2_CLK_SLEEP_DISABLE() (RCC_C1->APB2LPENR) &= ~ (RCC_APB2LPENR_SAI2LPEN) -#define __HAL_RCC_C1_SAI3_CLK_SLEEP_DISABLE() (RCC_C1->APB2LPENR) &= ~ (RCC_APB2LPENR_SAI3LPEN) -#define __HAL_RCC_C1_DFSDM1_CLK_SLEEP_DISABLE() (RCC_C1->APB2LPENR) &= ~ (RCC_APB2LPENR_DFSDM1LPEN) -#define __HAL_RCC_C1_HRTIM1_CLK_SLEEP_DISABLE() (RCC_C1->APB2LPENR) &= ~ (RCC_APB2LPENR_HRTIMLPEN) - -/** @brief ENABLE or disable the APB4 peripheral clock during Low Power (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is ENABLEd again. - * @note By default, all peripheral clocks are ENABLEd during SLEEP mode. - */ - -#define __HAL_RCC_C1_SYSCFG_CLK_SLEEP_ENABLE() (RCC_C1->APB4LPENR) |= (RCC_APB4LPENR_SYSCFGLPEN) -#define __HAL_RCC_C1_LPUART1_CLK_SLEEP_ENABLE() (RCC_C1->APB4LPENR) |= (RCC_APB4LPENR_LPUART1LPEN) -#define __HAL_RCC_C1_SPI6_CLK_SLEEP_ENABLE() (RCC_C1->APB4LPENR) |= (RCC_APB4LPENR_SPI6LPEN) -#define __HAL_RCC_C1_I2C4_CLK_SLEEP_ENABLE() (RCC_C1->APB4LPENR) |= (RCC_APB4LPENR_I2C4LPEN) -#define __HAL_RCC_C1_LPTIM2_CLK_SLEEP_ENABLE() (RCC_C1->APB4LPENR) |= (RCC_APB4LPENR_LPTIM2LPEN) -#define __HAL_RCC_C1_LPTIM3_CLK_SLEEP_ENABLE() (RCC_C1->APB4LPENR) |= (RCC_APB4LPENR_LPTIM3LPEN) -#define __HAL_RCC_C1_LPTIM4_CLK_SLEEP_ENABLE() (RCC_C1->APB4LPENR) |= (RCC_APB4LPENR_LPTIM4LPEN) -#define __HAL_RCC_C1_LPTIM5_CLK_SLEEP_ENABLE() (RCC_C1->APB4LPENR) |= (RCC_APB4LPENR_LPTIM5LPEN) -#define __HAL_RCC_C1_COMP12_CLK_SLEEP_ENABLE() (RCC_C1->APB4LPENR) |= (RCC_APB4LPENR_COMP12LPEN) -#define __HAL_RCC_C1_VREF_CLK_SLEEP_ENABLE() (RCC_C1->APB4LPENR) |= (RCC_APB4LPENR_VREFLPEN) -#define __HAL_RCC_C1_SAI4_CLK_SLEEP_ENABLE() (RCC_C1->APB4LPENR) |= (RCC_APB4LPENR_SAI4LPEN) -#define __HAL_RCC_C1_RTC_CLK_SLEEP_ENABLE() (RCC_C1->APB4LPENR) |= (RCC_APB4LPENR_RTCAPBLPEN) - - -#define __HAL_RCC_C1_SYSCFG_CLK_SLEEP_DISABLE() (RCC_C1->APB4LPENR) &= ~ (RCC_APB4LPENR_SYSCFGLPEN) -#define __HAL_RCC_C1_LPUART1_CLK_SLEEP_DISABLE() (RCC_C1->APB4LPENR) &= ~ (RCC_APB4LPENR_LPUART1LPEN) -#define __HAL_RCC_C1_SPI6_CLK_SLEEP_DISABLE() (RCC_C1->APB4LPENR) &= ~ (RCC_APB4LPENR_SPI6LPEN) -#define __HAL_RCC_C1_I2C4_CLK_SLEEP_DISABLE() (RCC_C1->APB4LPENR) &= ~ (RCC_APB4LPENR_I2C4LPEN) -#define __HAL_RCC_C1_LPTIM2_CLK_SLEEP_DISABLE() (RCC_C1->APB4LPENR) &= ~ (RCC_APB4LPENR_LPTIM2LPEN) -#define __HAL_RCC_C1_LPTIM3_CLK_SLEEP_DISABLE() (RCC_C1->APB4LPENR) &= ~ (RCC_APB4LPENR_LPTIM3LPEN) -#define __HAL_RCC_C1_LPTIM4_CLK_SLEEP_DISABLE() (RCC_C1->APB4LPENR) &= ~ (RCC_APB4LPENR_LPTIM4LPEN) -#define __HAL_RCC_C1_LPTIM5_CLK_SLEEP_DISABLE() (RCC_C1->APB4LPENR) &= ~ (RCC_APB4LPENR_LPTIM5LPEN) -#define __HAL_RCC_C1_COMP12_CLK_SLEEP_DISABLE() (RCC_C1->APB4LPENR) &= ~ (RCC_APB4LPENR_COMP12LPEN) -#define __HAL_RCC_C1_VREF_CLK_SLEEP_DISABLE() (RCC_C1->APB4LPENR) &= ~ (RCC_APB4LPENR_VREFLPEN) -#define __HAL_RCC_C1_SAI4_CLK_SLEEP_DISABLE() (RCC_C1->APB4LPENR) &= ~ (RCC_APB4LPENR_SAI4LPEN) -#define __HAL_RCC_C1_RTC_CLK_SLEEP_DISABLE() (RCC_C1->APB4LPENR) &= ~ (RCC_APB4LPENR_RTCAPBLPEN) - -/** @brief Enable or disable the RCC_C2 AHB3 peripheral clock during Low Power (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. - * @note By default, all peripheral clocks are enabled during SLEEP mode. - */ - - -#define __HAL_RCC_C2_MDMA_CLK_SLEEP_ENABLE() (RCC_C2->AHB3LPENR |= (RCC_AHB3LPENR_MDMALPEN)) -#define __HAL_RCC_C2_DMA2D_CLK_SLEEP_ENABLE() (RCC_C2->AHB3LPENR |= (RCC_AHB3LPENR_DMA2DLPEN)) -#define __HAL_RCC_C2_JPGDEC_CLK_SLEEP_ENABLE() (RCC_C2->AHB3LPENR |= (RCC_AHB3LPENR_JPGDECLPEN)) -#define __HAL_RCC_C2_FLASH_CLK_SLEEP_ENABLE() (RCC_C2->AHB3LPENR |= (RCC_AHB3LPENR_FLASHLPEN)) -#define __HAL_RCC_C2_FMC_CLK_SLEEP_ENABLE() (RCC_C2->AHB3LPENR |= (RCC_AHB3LPENR_FMCLPEN)) -#define __HAL_RCC_C2_QSPI_CLK_SLEEP_ENABLE() (RCC_C2->AHB3LPENR |= (RCC_AHB3LPENR_QSPILPEN)) -#define __HAL_RCC_C2_SDMMC1_CLK_SLEEP_ENABLE() (RCC_C2->AHB3LPENR |= (RCC_AHB3LPENR_SDMMC1LPEN)) -#define __HAL_RCC_C2_DTCM1_CLK_SLEEP_ENABLE() (RCC_C2->AHB3LPENR |= (RCC_AHB3LPENR_DTCM1LPEN)) -#define __HAL_RCC_C2_DTCM2_CLK_SLEEP_ENABLE() (RCC_C2->AHB3LPENR |= (RCC_AHB3LPENR_DTCM2LPEN)) -#define __HAL_RCC_C2_ITCM_CLK_SLEEP_ENABLE() (RCC_C2->AHB3LPENR |= (RCC_AHB3LPENR_ITCMLPEN)) -#define __HAL_RCC_C2_D1SRAM1_CLK_SLEEP_ENABLE() (RCC_C2->AHB3LPENR |= (RCC_AHB3LPENR_AXISRAMLPEN)) - - -#define __HAL_RCC_C2_MDMA_CLK_SLEEP_DISABLE() (RCC_C2->AHB3LPENR &= ~ (RCC_AHB3LPENR_MDMALPEN)) -#define __HAL_RCC_C2_DMA2D_CLK_SLEEP_DISABLE() (RCC_C2->AHB3LPENR &= ~ (RCC_AHB3LPENR_DMA2DLPEN)) -#define __HAL_RCC_C2_JPGDEC_CLK_SLEEP_DISABLE() (RCC_C2->AHB3LPENR &= ~ (RCC_AHB3LPENR_JPGDECLPEN)) -#define __HAL_RCC_C2_FLASH_CLK_SLEEP_DISABLE() (RCC_C2->AHB3LPENR &= ~ (RCC_AHB3LPENR_FLASHLPEN)) -#define __HAL_RCC_C2_FMC_CLK_SLEEP_DISABLE() (RCC_C2->AHB3LPENR &= ~ (RCC_AHB3LPENR_FMCLPEN)) -#define __HAL_RCC_C2_QSPI_CLK_SLEEP_DISABLE() (RCC_C2->AHB3LPENR &= ~ (RCC_AHB3LPENR_QSPILPEN)) -#define __HAL_RCC_C2_SDMMC1_CLK_SLEEP_DISABLE() (RCC_C2->AHB3LPENR &= ~ (RCC_AHB3LPENR_SDMMC1LPEN)) -#define __HAL_RCC_C2_DTCM1_CLK_SLEEP_DISABLE() (RCC_C2->AHB3LPENR &= ~ (RCC_AHB3LPENR_DTCM1LPEN)) -#define __HAL_RCC_C2_DTCM2_CLK_SLEEP_DISABLE() (RCC_C2->AHB3LPENR &= ~ (RCC_AHB3LPENR_DTCM2LPEN)) -#define __HAL_RCC_C2_ITCM_CLK_SLEEP_DISABLE() (RCC_C2->AHB3LPENR &= ~ (RCC_AHB3LPENR_ITCMLPEN)) -#define __HAL_RCC_C2_D1SRAM1_CLK_SLEEP_DISABLE() (RCC_C2->AHB3LPENR &= ~ (RCC_AHB3LPENR_AXISRAMLPEN)) - - - -/** @brief ENABLE or disable the AHB1 peripheral clock during Low Power (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is ENABLEd again. - * @note By default, all peripheral clocks are ENABLEd during SLEEP mode. - */ - -#define __HAL_RCC_C2_DMA1_CLK_SLEEP_ENABLE() (RCC_C2->AHB1LPENR |= (RCC_AHB1LPENR_DMA1LPEN)) -#define __HAL_RCC_C2_DMA2_CLK_SLEEP_ENABLE() (RCC_C2->AHB1LPENR |= (RCC_AHB1LPENR_DMA2LPEN)) -#define __HAL_RCC_C2_ADC12_CLK_SLEEP_ENABLE() (RCC_C2->AHB1LPENR |= (RCC_AHB1LPENR_ADC12LPEN)) -#define __HAL_RCC_C2_ETH1MAC_CLK_SLEEP_ENABLE() (RCC_C2->AHB1LPENR |= (RCC_AHB1LPENR_ETH1MACLPEN)) -#define __HAL_RCC_C2_ETH1TX_CLK_SLEEP_ENABLE() (RCC_C2->AHB1LPENR |= (RCC_AHB1LPENR_ETH1TXLPEN)) -#define __HAL_RCC_C2_ETH1RX_CLK_SLEEP_ENABLE() (RCC_C2->AHB1LPENR |= (RCC_AHB1LPENR_ETH1RXLPEN)) -#define __HAL_RCC_C2_USB1_OTG_HS_CLK_SLEEP_ENABLE() (RCC_C2->AHB1LPENR |= (RCC_AHB1LPENR_USB1OTGHSLPEN)) -#define __HAL_RCC_C2_USB1_OTG_HS_ULPI_CLK_SLEEP_ENABLE() (RCC_C2->AHB1LPENR |= (RCC_AHB1LPENR_USB1OTGHSULPILPEN)) -#define __HAL_RCC_C2_USB2_OTG_FS_CLK_SLEEP_ENABLE() (RCC_C2->AHB1LPENR |= (RCC_AHB1LPENR_USB2OTGHSLPEN)) -#define __HAL_RCC_C2_USB2_OTG_FS_ULPI_CLK_SLEEP_ENABLE() (RCC_C2->AHB1LPENR |= (RCC_AHB1LPENR_USB2OTGHSULPILPEN)) - -#define __HAL_RCC_C2_DMA1_CLK_SLEEP_DISABLE() (RCC_C2->AHB1LPENR &= ~ (RCC_AHB1LPENR_DMA1LPEN)) -#define __HAL_RCC_C2_DMA2_CLK_SLEEP_DISABLE() (RCC_C2->AHB1LPENR &= ~ (RCC_AHB1LPENR_DMA2LPEN)) -#define __HAL_RCC_C2_ADC12_CLK_SLEEP_DISABLE() (RCC_C2->AHB1LPENR &= ~ (RCC_AHB1LPENR_ADC12LPEN)) -#define __HAL_RCC_C2_ETH1MAC_CLK_SLEEP_DISABLE() (RCC_C2->AHB1LPENR &= ~ (RCC_AHB1LPENR_ETH1MACLPEN)) -#define __HAL_RCC_C2_ETH1TX_CLK_SLEEP_DISABLE() (RCC_C2->AHB1LPENR &= ~ (RCC_AHB1LPENR_ETH1TXLPEN)) -#define __HAL_RCC_C2_ETH1RX_CLK_SLEEP_DISABLE() (RCC_C2->AHB1LPENR &= ~ (RCC_AHB1LPENR_ETH1RXLPEN)) -#define __HAL_RCC_C2_USB1_OTG_HS_CLK_SLEEP_DISABLE() (RCC_C2->AHB1LPENR &= ~ (RCC_AHB1LPENR_USB1OTGHSLPEN)) -#define __HAL_RCC_C2_USB1_OTG_HS_ULPI_CLK_SLEEP_DISABLE() (RCC_C2->AHB1LPENR &= ~ (RCC_AHB1LPENR_USB1OTGHSULPILPEN)) -#define __HAL_RCC_C2_USB2_OTG_FS_CLK_SLEEP_DISABLE() (RCC_C2->AHB1LPENR &= ~ (RCC_AHB1LPENR_USB2OTGHSLPEN)) -#define __HAL_RCC_C2_USB2_OTG_FS_ULPI_CLK_SLEEP_DISABLE() (RCC_C2->AHB1LPENR &= ~ (RCC_AHB1LPENR_USB2OTGHSULPILPEN)) - -/** @brief ENABLE or disable the AHB2 peripheral clock during Low Power (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is ENABLEd again. - * @note By default, all peripheral clocks are ENABLEd during SLEEP mode. - */ - -#define __HAL_RCC_C2_DCMI_CLK_SLEEP_ENABLE() (RCC_C2->AHB2LPENR |= (RCC_AHB2LPENR_DCMILPEN)) -#if defined(CRYP) -#define __HAL_RCC_C2_CRYP_CLK_SLEEP_ENABLE() (RCC_C2->AHB2LPENR |= (RCC_AHB2LPENR_CRYPLPEN)) -#endif /* CRYP */ -#if defined(HASH) -#define __HAL_RCC_C2_HASH_CLK_SLEEP_ENABLE() (RCC_C2->AHB2LPENR |= (RCC_AHB2LPENR_HASHLPEN)) -#endif /* HASH */ -#define __HAL_RCC_C2_RNG_CLK_SLEEP_ENABLE() (RCC_C2->AHB2LPENR |= (RCC_AHB2LPENR_RNGLPEN)) -#define __HAL_RCC_C2_SDMMC2_CLK_SLEEP_ENABLE() (RCC_C2->AHB2LPENR |= (RCC_AHB2LPENR_SDMMC2LPEN)) -#define __HAL_RCC_C2_D2SRAM1_CLK_SLEEP_ENABLE() (RCC_C2->AHB2LPENR |= (RCC_AHB2LPENR_D2SRAM1LPEN)) -#define __HAL_RCC_C2_D2SRAM2_CLK_SLEEP_ENABLE() (RCC_C2->AHB2LPENR |= (RCC_AHB2LPENR_D2SRAM2LPEN)) -#define __HAL_RCC_C2_D2SRAM3_CLK_SLEEP_ENABLE() (RCC_C2->AHB2LPENR |= (RCC_AHB2LPENR_D2SRAM3LPEN)) - -#define __HAL_RCC_C2_DCMI_CLK_SLEEP_DISABLE() (RCC_C2->AHB2LPENR &= ~ (RCC_AHB2LPENR_DCMILPEN)) -#if defined(CRYP) -#define __HAL_RCC_C2_CRYP_CLK_SLEEP_DISABLE() (RCC_C2->AHB2LPENR &= ~ (RCC_AHB2LPENR_CRYPLPEN)) -#endif /* CRYP */ -#if defined(HASH) -#define __HAL_RCC_C2_HASH_CLK_SLEEP_DISABLE() (RCC_C2->AHB2LPENR &= ~ (RCC_AHB2LPENR_HASHLPEN)) -#endif /* HASH */ -#define __HAL_RCC_C2_RNG_CLK_SLEEP_DISABLE() (RCC_C2->AHB2LPENR &= ~ (RCC_AHB2LPENR_RNGLPEN)) -#define __HAL_RCC_C2_SDMMC2_CLK_SLEEP_DISABLE() (RCC_C2->AHB2LPENR &= ~ (RCC_AHB2LPENR_SDMMC2LPEN)) -#define __HAL_RCC_C2_D2SRAM1_CLK_SLEEP_DISABLE() (RCC_C2->AHB2LPENR &= ~ (RCC_AHB2LPENR_D2SRAM1LPEN)) -#define __HAL_RCC_C2_D2SRAM2_CLK_SLEEP_DISABLE() (RCC_C2->AHB2LPENR &= ~ (RCC_AHB2LPENR_D2SRAM2LPEN)) -#define __HAL_RCC_C2_D2SRAM3_CLK_SLEEP_DISABLE() (RCC_C2->AHB2LPENR &= ~ (RCC_AHB2LPENR_D2SRAM3LPEN)) - -/** @brief ENABLE or disable the AHB4 peripheral clock during Low Power (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is ENABLEd again. - * @note By default, all peripheral clocks are ENABLEd during SLEEP mode. - */ - -#define __HAL_RCC_C2_GPIOA_CLK_SLEEP_ENABLE() (RCC_C2->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOALPEN) -#define __HAL_RCC_C2_GPIOB_CLK_SLEEP_ENABLE() (RCC_C2->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOBLPEN) -#define __HAL_RCC_C2_GPIOC_CLK_SLEEP_ENABLE() (RCC_C2->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOCLPEN) -#define __HAL_RCC_C2_GPIOD_CLK_SLEEP_ENABLE() (RCC_C2->AHB4LPENR) |= (RCC_AHB4LPENR_GPIODLPEN) -#define __HAL_RCC_C2_GPIOE_CLK_SLEEP_ENABLE() (RCC_C2->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOELPEN) -#define __HAL_RCC_C2_GPIOF_CLK_SLEEP_ENABLE() (RCC_C2->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOFLPEN) -#define __HAL_RCC_C2_GPIOG_CLK_SLEEP_ENABLE() (RCC_C2->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOGLPEN) -#define __HAL_RCC_C2_GPIOH_CLK_SLEEP_ENABLE() (RCC_C2->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOHLPEN) -#define __HAL_RCC_C2_GPIOI_CLK_SLEEP_ENABLE() (RCC_C2->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOILPEN) -#define __HAL_RCC_C2_GPIOJ_CLK_SLEEP_ENABLE() (RCC_C2->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOJLPEN) -#define __HAL_RCC_C2_GPIOK_CLK_SLEEP_ENABLE() (RCC_C2->AHB4LPENR) |= (RCC_AHB4LPENR_GPIOKLPEN) -#define __HAL_RCC_C2_CRC_CLK_SLEEP_ENABLE() (RCC_C2->AHB4LPENR) |= (RCC_AHB4LPENR_CRCLPEN) -#define __HAL_RCC_C2_BDMA_CLK_SLEEP_ENABLE() (RCC_C2->AHB4LPENR) |= (RCC_AHB4LPENR_BDMALPEN) -#define __HAL_RCC_C2_ADC3_CLK_SLEEP_ENABLE() (RCC_C2->AHB4LPENR) |= (RCC_AHB4LPENR_ADC3LPEN) -#define __HAL_RCC_C2_BKPRAM_CLK_SLEEP_ENABLE() (RCC_C2->AHB4LPENR) |= (RCC_AHB4LPENR_BKPRAMLPEN) -#define __HAL_RCC_C2_D3SRAM1_CLK_SLEEP_ENABLE() (RCC_C2->AHB4LPENR |= (RCC_AHB4LPENR_D3SRAM1LPEN)) - -#define __HAL_RCC_C2_GPIOA_CLK_SLEEP_DISABLE() (RCC_C2->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOALPEN) -#define __HAL_RCC_C2_GPIOB_CLK_SLEEP_DISABLE() (RCC_C2->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOBLPEN) -#define __HAL_RCC_C2_GPIOC_CLK_SLEEP_DISABLE() (RCC_C2->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOCLPEN) -#define __HAL_RCC_C2_GPIOD_CLK_SLEEP_DISABLE() (RCC_C2->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIODLPEN) -#define __HAL_RCC_C2_GPIOE_CLK_SLEEP_DISABLE() (RCC_C2->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOELPEN) -#define __HAL_RCC_C2_GPIOF_CLK_SLEEP_DISABLE() (RCC_C2->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOFLPEN) -#define __HAL_RCC_C2_GPIOG_CLK_SLEEP_DISABLE() (RCC_C2->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOGLPEN) -#define __HAL_RCC_C2_GPIOH_CLK_SLEEP_DISABLE() (RCC_C2->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOHLPEN) -#define __HAL_RCC_C2_GPIOI_CLK_SLEEP_DISABLE() (RCC_C2->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOILPEN) -#define __HAL_RCC_C2_GPIOJ_CLK_SLEEP_DISABLE() (RCC_C2->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOJLPEN) -#define __HAL_RCC_C2_GPIOK_CLK_SLEEP_DISABLE() (RCC_C2->AHB4LPENR) &= ~ (RCC_AHB4LPENR_GPIOKLPEN) -#define __HAL_RCC_C2_CRC_CLK_SLEEP_DISABLE() (RCC_C2->AHB4LPENR) &= ~ (RCC_AHB4LPENR_CRCLPEN) -#define __HAL_RCC_C2_BDMA_CLK_SLEEP_DISABLE() (RCC_C2->AHB4LPENR) &= ~ (RCC_AHB4LPENR_BDMALPEN) -#define __HAL_RCC_C2_ADC3_CLK_SLEEP_DISABLE() (RCC_C2->AHB4LPENR) &= ~ (RCC_AHB4LPENR_ADC3LPEN) -#define __HAL_RCC_C2_BKPRAM_CLK_SLEEP_DISABLE() (RCC_C2->AHB4LPENR) &= ~ (RCC_AHB4LPENR_BKPRAMLPEN) -#define __HAL_RCC_C2_D3SRAM1_CLK_SLEEP_DISABLE() (RCC_C2->AHB4LPENR &= ~ (RCC_AHB4LPENR_D3SRAM1LPEN)) - -/** @brief ENABLE or disable the APB3 peripheral clock during Low Power (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is ENABLEd again. - * @note By default, all peripheral clocks are ENABLEd during SLEEP mode. - */ - -#define __HAL_RCC_C2_LTDC_CLK_SLEEP_ENABLE() (RCC_C2->APB3LPENR) |= (RCC_APB3LPENR_LTDCLPEN) -#define __HAL_RCC_C2_DSI_CLK_SLEEP_ENABLE() (RCC_C2->APB3LPENR) |= (RCC_APB3LPENR_DSILPEN) -#define __HAL_RCC_C2_WWDG1_CLK_SLEEP_ENABLE() (RCC_C2->APB3LPENR) |= (RCC_APB3LPENR_WWDG1LPEN) - -#define __HAL_RCC_C2_LTDC_CLK_SLEEP_DISABLE() (RCC_C2->APB3LPENR) &= ~ (RCC_APB3LPENR_LTDCLPEN) -#define __HAL_RCC_C2_DSI_CLK_SLEEP_DISABLE() (RCC_C2->APB3LPENR) &= ~ (RCC_APB3LPENR_DSILPEN) -#define __HAL_RCC_C2_WWDG1_CLK_SLEEP_DISABLE() (RCC_C2->APB3LPENR) &= ~ (RCC_APB3LPENR_WWDG1LPEN) - -/** @brief ENABLE or disable the APB1 peripheral clock during Low Power (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is ENABLEd again. - * @note By default, all peripheral clocks are ENABLEd during SLEEP mode. - */ - -#define __HAL_RCC_C2_TIM2_CLK_SLEEP_ENABLE() (RCC_C2->APB1LLPENR) |= (RCC_APB1LLPENR_TIM2LPEN) -#define __HAL_RCC_C2_TIM3_CLK_SLEEP_ENABLE() (RCC_C2->APB1LLPENR) |= (RCC_APB1LLPENR_TIM3LPEN) -#define __HAL_RCC_C2_TIM4_CLK_SLEEP_ENABLE() (RCC_C2->APB1LLPENR) |= (RCC_APB1LLPENR_TIM4LPEN) -#define __HAL_RCC_C2_TIM5_CLK_SLEEP_ENABLE() (RCC_C2->APB1LLPENR) |= (RCC_APB1LLPENR_TIM5LPEN) -#define __HAL_RCC_C2_TIM6_CLK_SLEEP_ENABLE() (RCC_C2->APB1LLPENR) |= (RCC_APB1LLPENR_TIM6LPEN) -#define __HAL_RCC_C2_TIM7_CLK_SLEEP_ENABLE() (RCC_C2->APB1LLPENR) |= (RCC_APB1LLPENR_TIM7LPEN) -#define __HAL_RCC_C2_TIM12_CLK_SLEEP_ENABLE() (RCC_C2->APB1LLPENR) |= (RCC_APB1LLPENR_TIM12LPEN) -#define __HAL_RCC_C2_TIM13_CLK_SLEEP_ENABLE() (RCC_C2->APB1LLPENR) |= (RCC_APB1LLPENR_TIM13LPEN) -#define __HAL_RCC_C2_TIM14_CLK_SLEEP_ENABLE() (RCC_C2->APB1LLPENR) |= (RCC_APB1LLPENR_TIM14LPEN) -#define __HAL_RCC_C2_LPTIM1_CLK_SLEEP_ENABLE() (RCC_C2->APB1LLPENR) |= (RCC_APB1LLPENR_LPTIM1LPEN) -#define __HAL_RCC_C2_WWDG2_CLK_SLEEP_ENABLE() (RCC_C2->APB1LLPENR) |= (RCC_APB1LLPENR_WWDG2LPEN) -#define __HAL_RCC_C2_SPI2_CLK_SLEEP_ENABLE() (RCC_C2->APB1LLPENR) |= (RCC_APB1LLPENR_SPI2LPEN) -#define __HAL_RCC_C2_SPI3_CLK_SLEEP_ENABLE() (RCC_C2->APB1LLPENR) |= (RCC_APB1LLPENR_SPI3LPEN) -#define __HAL_RCC_C2_SPDIFRX_CLK_SLEEP_ENABLE() (RCC_C2->APB1LLPENR) |= (RCC_APB1LLPENR_SPDIFRXLPEN) -#define __HAL_RCC_C2_USART2_CLK_SLEEP_ENABLE() (RCC_C2->APB1LLPENR) |= (RCC_APB1LLPENR_USART2LPEN) -#define __HAL_RCC_C2_USART3_CLK_SLEEP_ENABLE() (RCC_C2->APB1LLPENR) |= (RCC_APB1LLPENR_USART3LPEN) -#define __HAL_RCC_C2_UART4_CLK_SLEEP_ENABLE() (RCC_C2->APB1LLPENR) |= (RCC_APB1LLPENR_UART4LPEN) -#define __HAL_RCC_C2_UART5_CLK_SLEEP_ENABLE() (RCC_C2->APB1LLPENR) |= (RCC_APB1LLPENR_UART5LPEN) -#define __HAL_RCC_C2_I2C1_CLK_SLEEP_ENABLE() (RCC_C2->APB1LLPENR) |= (RCC_APB1LLPENR_I2C1LPEN) -#define __HAL_RCC_C2_I2C2_CLK_SLEEP_ENABLE() (RCC_C2->APB1LLPENR) |= (RCC_APB1LLPENR_I2C2LPEN) -#define __HAL_RCC_C2_I2C3_CLK_SLEEP_ENABLE() (RCC_C2->APB1LLPENR) |= (RCC_APB1LLPENR_I2C3LPEN) -#define __HAL_RCC_C2_CEC_CLK_SLEEP_ENABLE() (RCC_C2->APB1LLPENR) |= (RCC_APB1LLPENR_CECLPEN) -#define __HAL_RCC_C2_DAC12_CLK_SLEEP_ENABLE() (RCC_C2->APB1LLPENR) |= (RCC_APB1LLPENR_DAC12LPEN) -#define __HAL_RCC_C2_UART7_CLK_SLEEP_ENABLE() (RCC_C2->APB1LLPENR) |= (RCC_APB1LLPENR_UART7LPEN) -#define __HAL_RCC_C2_UART8_CLK_SLEEP_ENABLE() (RCC_C2->APB1LLPENR) |= (RCC_APB1LLPENR_UART8LPEN) -#define __HAL_RCC_C2_CRS_CLK_SLEEP_ENABLE() (RCC_C2->APB1HLPENR) |= (RCC_APB1HLPENR_CRSLPEN) -#define __HAL_RCC_C2_SWPMI_CLK_SLEEP_ENABLE() (RCC_C2->APB1HLPENR) |= (RCC_APB1HLPENR_SWPMILPEN) -#define __HAL_RCC_C2_OPAMP_CLK_SLEEP_ENABLE() (RCC_C2->APB1HLPENR) |= (RCC_APB1HLPENR_OPAMPLPEN) -#define __HAL_RCC_C2_MDIOS_CLK_SLEEP_ENABLE() (RCC_C2->APB1HLPENR) |= (RCC_APB1HLPENR_MDIOSLPEN) -#define __HAL_RCC_C2_FDCAN_CLK_SLEEP_ENABLE() (RCC_C2->APB1HLPENR) |= (RCC_APB1HLPENR_FDCANLPEN) - - -#define __HAL_RCC_C2_TIM2_CLK_SLEEP_DISABLE() (RCC_C2->APB1LLPENR) &= ~ (RCC_APB1LLPENR_TIM2LPEN) -#define __HAL_RCC_C2_TIM3_CLK_SLEEP_DISABLE() (RCC_C2->APB1LLPENR) &= ~ (RCC_APB1LLPENR_TIM3LPEN) -#define __HAL_RCC_C2_TIM4_CLK_SLEEP_DISABLE() (RCC_C2->APB1LLPENR) &= ~ (RCC_APB1LLPENR_TIM4LPEN) -#define __HAL_RCC_C2_TIM5_CLK_SLEEP_DISABLE() (RCC_C2->APB1LLPENR) &= ~ (RCC_APB1LLPENR_TIM5LPEN) -#define __HAL_RCC_C2_TIM6_CLK_SLEEP_DISABLE() (RCC_C2->APB1LLPENR) &= ~ (RCC_APB1LLPENR_TIM6LPEN) -#define __HAL_RCC_C2_TIM7_CLK_SLEEP_DISABLE() (RCC_C2->APB1LLPENR) &= ~ (RCC_APB1LLPENR_TIM7LPEN) -#define __HAL_RCC_C2_TIM12_CLK_SLEEP_DISABLE() (RCC_C2->APB1LLPENR) &= ~ (RCC_APB1LLPENR_TIM12LPEN) -#define __HAL_RCC_C2_TIM13_CLK_SLEEP_DISABLE() (RCC_C2->APB1LLPENR) &= ~ (RCC_APB1LLPENR_TIM13LPEN) -#define __HAL_RCC_C2_TIM14_CLK_SLEEP_DISABLE() (RCC_C2->APB1LLPENR) &= ~ (RCC_APB1LLPENR_TIM14LPEN) -#define __HAL_RCC_C2_LPTIM1_CLK_SLEEP_DISABLE() (RCC_C2->APB1LLPENR) &= ~ (RCC_APB1LLPENR_LPTIM1LPEN) -#define __HAL_RCC_C2_WWDG2_CLK_SLEEP_DISABLE() (RCC_C2->APB1LLPENR) &= ~ (RCC_APB1LLPENR_WWDG2LPEN) -#define __HAL_RCC_C2_SPI2_CLK_SLEEP_DISABLE() (RCC_C2->APB1LLPENR) &= ~ (RCC_APB1LLPENR_SPI2LPEN) -#define __HAL_RCC_C2_SPI3_CLK_SLEEP_DISABLE() (RCC_C2->APB1LLPENR) &= ~ (RCC_APB1LLPENR_SPI3LPEN) -#define __HAL_RCC_C2_SPDIFRX_CLK_SLEEP_DISABLE() (RCC_C2->APB1LLPENR) &= ~ (RCC_APB1LLPENR_SPDIFRXLPEN) -#define __HAL_RCC_C2_USART2_CLK_SLEEP_DISABLE() (RCC_C2->APB1LLPENR) &= ~ (RCC_APB1LLPENR_USART2LPEN) -#define __HAL_RCC_C2_USART3_CLK_SLEEP_DISABLE() (RCC_C2->APB1LLPENR) &= ~ (RCC_APB1LLPENR_USART3LPEN) -#define __HAL_RCC_C2_UART4_CLK_SLEEP_DISABLE() (RCC_C2->APB1LLPENR) &= ~ (RCC_APB1LLPENR_UART4LPEN) -#define __HAL_RCC_C2_UART5_CLK_SLEEP_DISABLE() (RCC_C2->APB1LLPENR) &= ~ (RCC_APB1LLPENR_UART5LPEN) -#define __HAL_RCC_C2_I2C1_CLK_SLEEP_DISABLE() (RCC_C2->APB1LLPENR) &= ~ (RCC_APB1LLPENR_I2C1LPEN) -#define __HAL_RCC_C2_I2C2_CLK_SLEEP_DISABLE() (RCC_C2->APB1LLPENR) &= ~ (RCC_APB1LLPENR_I2C2LPEN) -#define __HAL_RCC_C2_I2C3_CLK_SLEEP_DISABLE() (RCC_C2->APB1LLPENR) &= ~ (RCC_APB1LLPENR_I2C3LPEN) -#define __HAL_RCC_C2_CEC_CLK_SLEEP_DISABLE() (RCC_C2->APB1LLPENR) &= ~ (RCC_APB1LLPENR_CECLPEN) -#define __HAL_RCC_C2_DAC12_CLK_SLEEP_DISABLE() (RCC_C2->APB1LLPENR) &= ~ (RCC_APB1LLPENR_DAC12LPEN) -#define __HAL_RCC_C2_UART7_CLK_SLEEP_DISABLE() (RCC_C2->APB1LLPENR) &= ~ (RCC_APB1LLPENR_UART7LPEN) -#define __HAL_RCC_C2_UART8_CLK_SLEEP_DISABLE() (RCC_C2->APB1LLPENR) &= ~ (RCC_APB1LLPENR_UART8LPEN) -#define __HAL_RCC_C2_CRS_CLK_SLEEP_DISABLE() (RCC_C2->APB1HLPENR) &= ~ (RCC_APB1HLPENR_CRSLPEN) -#define __HAL_RCC_C2_SWPMI_CLK_SLEEP_DISABLE() (RCC_C2->APB1HLPENR) &= ~ (RCC_APB1HLPENR_SWPMILPEN) -#define __HAL_RCC_C2_OPAMP_CLK_SLEEP_DISABLE() (RCC_C2->APB1HLPENR) &= ~ (RCC_APB1HLPENR_OPAMPLPEN) -#define __HAL_RCC_C2_MDIOS_CLK_SLEEP_DISABLE() (RCC_C2->APB1HLPENR) &= ~ (RCC_APB1HLPENR_MDIOSLPEN) -#define __HAL_RCC_C2_FDCAN_CLK_SLEEP_DISABLE() (RCC_C2->APB1HLPENR) &= ~ (RCC_APB1HLPENR_FDCANLPEN) - -/** @brief ENABLE or disable the APB2 peripheral clock during Low Power (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is ENABLEd again. - * @note By default, all peripheral clocks are ENABLEd during SLEEP mode. - */ - -#define __HAL_RCC_C2_TIM1_CLK_SLEEP_ENABLE() (RCC_C2->APB2LPENR) |= (RCC_APB2LPENR_TIM1LPEN) -#define __HAL_RCC_C2_TIM8_CLK_SLEEP_ENABLE() (RCC_C2->APB2LPENR) |= (RCC_APB2LPENR_TIM8LPEN) -#define __HAL_RCC_C2_USART1_CLK_SLEEP_ENABLE() (RCC_C2->APB2LPENR) |= (RCC_APB2LPENR_USART1LPEN) -#define __HAL_RCC_C2_USART6_CLK_SLEEP_ENABLE() (RCC_C2->APB2LPENR) |= (RCC_APB2LPENR_USART6LPEN) -#define __HAL_RCC_C2_SPI1_CLK_SLEEP_ENABLE() (RCC_C2->APB2LPENR) |= (RCC_APB2LPENR_SPI1LPEN) -#define __HAL_RCC_C2_SPI4_CLK_SLEEP_ENABLE() (RCC_C2->APB2LPENR) |= (RCC_APB2LPENR_SPI4LPEN) -#define __HAL_RCC_C2_TIM15_CLK_SLEEP_ENABLE() (RCC_C2->APB2LPENR) |= (RCC_APB2LPENR_TIM15LPEN) -#define __HAL_RCC_C2_TIM16_CLK_SLEEP_ENABLE() (RCC_C2->APB2LPENR) |= (RCC_APB2LPENR_TIM16LPEN) -#define __HAL_RCC_C2_TIM17_CLK_SLEEP_ENABLE() (RCC_C2->APB2LPENR) |= (RCC_APB2LPENR_TIM17LPEN) -#define __HAL_RCC_C2_SPI5_CLK_SLEEP_ENABLE() (RCC_C2->APB2LPENR) |= (RCC_APB2LPENR_SPI5LPEN) -#define __HAL_RCC_C2_SAI1_CLK_SLEEP_ENABLE() (RCC_C2->APB2LPENR) |= (RCC_APB2LPENR_SAI1LPEN) -#define __HAL_RCC_C2_SAI2_CLK_SLEEP_ENABLE() (RCC_C2->APB2LPENR) |= (RCC_APB2LPENR_SAI2LPEN) -#define __HAL_RCC_C2_SAI3_CLK_SLEEP_ENABLE() (RCC_C2->APB2LPENR) |= (RCC_APB2LPENR_SAI3LPEN) -#define __HAL_RCC_C2_DFSDM1_CLK_SLEEP_ENABLE() (RCC_C2->APB2LPENR) |= (RCC_APB2LPENR_DFSDM1LPEN) -#define __HAL_RCC_C2_HRTIM1_CLK_SLEEP_ENABLE() (RCC_C2->APB2LPENR) |= (RCC_APB2LPENR_HRTIMLPEN) - -#define __HAL_RCC_C2_TIM1_CLK_SLEEP_DISABLE() (RCC_C2->APB2LPENR) &= ~ (RCC_APB2LPENR_TIM1LPEN) -#define __HAL_RCC_C2_TIM8_CLK_SLEEP_DISABLE() (RCC_C2->APB2LPENR) &= ~ (RCC_APB2LPENR_TIM8LPEN) -#define __HAL_RCC_C2_USART1_CLK_SLEEP_DISABLE() (RCC_C2->APB2LPENR) &= ~ (RCC_APB2LPENR_USART1LPEN) -#define __HAL_RCC_C2_USART6_CLK_SLEEP_DISABLE() (RCC_C2->APB2LPENR) &= ~ (RCC_APB2LPENR_USART6LPEN) -#define __HAL_RCC_C2_SPI1_CLK_SLEEP_DISABLE() (RCC_C2->APB2LPENR) &= ~ (RCC_APB2LPENR_SPI1LPEN) -#define __HAL_RCC_C2_SPI4_CLK_SLEEP_DISABLE() (RCC_C2->APB2LPENR) &= ~ (RCC_APB2LPENR_SPI4LPEN) -#define __HAL_RCC_C2_TIM15_CLK_SLEEP_DISABLE() (RCC_C2->APB2LPENR) &= ~ (RCC_APB2LPENR_TIM15LPEN) -#define __HAL_RCC_C2_TIM16_CLK_SLEEP_DISABLE() (RCC_C2->APB2LPENR) &= ~ (RCC_APB2LPENR_TIM16LPEN) -#define __HAL_RCC_C2_TIM17_CLK_SLEEP_DISABLE() (RCC_C2->APB2LPENR) &= ~ (RCC_APB2LPENR_TIM17LPEN) -#define __HAL_RCC_C2_SPI5_CLK_SLEEP_DISABLE() (RCC_C2->APB2LPENR) &= ~ (RCC_APB2LPENR_SPI5LPEN) -#define __HAL_RCC_C2_SAI1_CLK_SLEEP_DISABLE() (RCC_C2->APB2LPENR) &= ~ (RCC_APB2LPENR_SAI1LPEN) -#define __HAL_RCC_C2_SAI2_CLK_SLEEP_DISABLE() (RCC_C2->APB2LPENR) &= ~ (RCC_APB2LPENR_SAI2LPEN) -#define __HAL_RCC_C2_SAI3_CLK_SLEEP_DISABLE() (RCC_C2->APB2LPENR) &= ~ (RCC_APB2LPENR_SAI3LPEN) -#define __HAL_RCC_C2_DFSDM1_CLK_SLEEP_DISABLE() (RCC_C2->APB2LPENR) &= ~ (RCC_APB2LPENR_DFSDM1LPEN) -#define __HAL_RCC_C2_HRTIM1_CLK_SLEEP_DISABLE() (RCC_C2->APB2LPENR) &= ~ (RCC_APB2LPENR_HRTIMLPEN) - -/** @brief ENABLE or disable the APB4 peripheral clock during Low Power (Sleep) mode. - * @note Peripheral clock gating in SLEEP mode can be used to further reduce - * power consumption. - * @note After wakeup from SLEEP mode, the peripheral clock is ENABLEd again. - * @note By default, all peripheral clocks are ENABLEd during SLEEP mode. - */ - -#define __HAL_RCC_C2_SYSCFG_CLK_SLEEP_ENABLE() (RCC_C2->APB4LPENR) |= (RCC_APB4LPENR_SYSCFGLPEN) -#define __HAL_RCC_C2_LPUART1_CLK_SLEEP_ENABLE() (RCC_C2->APB4LPENR) |= (RCC_APB4LPENR_LPUART1LPEN) -#define __HAL_RCC_C2_SPI6_CLK_SLEEP_ENABLE() (RCC_C2->APB4LPENR) |= (RCC_APB4LPENR_SPI6LPEN) -#define __HAL_RCC_C2_I2C4_CLK_SLEEP_ENABLE() (RCC_C2->APB4LPENR) |= (RCC_APB4LPENR_I2C4LPEN) -#define __HAL_RCC_C2_LPTIM2_CLK_SLEEP_ENABLE() (RCC_C2->APB4LPENR) |= (RCC_APB4LPENR_LPTIM2LPEN) -#define __HAL_RCC_C2_LPTIM3_CLK_SLEEP_ENABLE() (RCC_C2->APB4LPENR) |= (RCC_APB4LPENR_LPTIM3LPEN) -#define __HAL_RCC_C2_LPTIM4_CLK_SLEEP_ENABLE() (RCC_C2->APB4LPENR) |= (RCC_APB4LPENR_LPTIM4LPEN) -#define __HAL_RCC_C2_LPTIM5_CLK_SLEEP_ENABLE() (RCC_C2->APB4LPENR) |= (RCC_APB4LPENR_LPTIM5LPEN) -#define __HAL_RCC_C2_COMP12_CLK_SLEEP_ENABLE() (RCC_C2->APB4LPENR) |= (RCC_APB4LPENR_COMP12LPEN) -#define __HAL_RCC_C2_VREF_CLK_SLEEP_ENABLE() (RCC_C2->APB4LPENR) |= (RCC_APB4LPENR_VREFLPEN) -#define __HAL_RCC_C2_SAI4_CLK_SLEEP_ENABLE() (RCC_C2->APB4LPENR) |= (RCC_APB4LPENR_SAI4LPEN) -#define __HAL_RCC_C2_RTC_CLK_SLEEP_ENABLE() (RCC_C2->APB4LPENR) |= (RCC_APB4LPENR_RTCAPBLPEN) - -#define __HAL_RCC_C2_SYSCFG_CLK_SLEEP_DISABLE() (RCC_C2->APB4LPENR) &= ~ (RCC_APB4LPENR_SYSCFGLPEN) -#define __HAL_RCC_C2_LPUART1_CLK_SLEEP_DISABLE() (RCC_C2->APB4LPENR) &= ~ (RCC_APB4LPENR_LPUART1LPEN) -#define __HAL_RCC_C2_SPI6_CLK_SLEEP_DISABLE() (RCC_C2->APB4LPENR) &= ~ (RCC_APB4LPENR_SPI6LPEN) -#define __HAL_RCC_C2_I2C4_CLK_SLEEP_DISABLE() (RCC_C2->APB4LPENR) &= ~ (RCC_APB4LPENR_I2C4LPEN) -#define __HAL_RCC_C2_LPTIM2_CLK_SLEEP_DISABLE() (RCC_C2->APB4LPENR) &= ~ (RCC_APB4LPENR_LPTIM2LPEN) -#define __HAL_RCC_C2_LPTIM3_CLK_SLEEP_DISABLE() (RCC_C2->APB4LPENR) &= ~ (RCC_APB4LPENR_LPTIM3LPEN) -#define __HAL_RCC_C2_LPTIM4_CLK_SLEEP_DISABLE() (RCC_C2->APB4LPENR) &= ~ (RCC_APB4LPENR_LPTIM4LPEN) -#define __HAL_RCC_C2_LPTIM5_CLK_SLEEP_DISABLE() (RCC_C2->APB4LPENR) &= ~ (RCC_APB4LPENR_LPTIM5LPEN) -#define __HAL_RCC_C2_COMP12_CLK_SLEEP_DISABLE() (RCC_C2->APB4LPENR) &= ~ (RCC_APB4LPENR_COMP12LPEN) -#define __HAL_RCC_C2_VREF_CLK_SLEEP_DISABLE() (RCC_C2->APB4LPENR) &= ~ (RCC_APB4LPENR_VREFLPEN) -#define __HAL_RCC_C2_SAI4_CLK_SLEEP_DISABLE() (RCC_C2->APB4LPENR) &= ~ (RCC_APB4LPENR_SAI4LPEN) -#define __HAL_RCC_C2_RTC_CLK_SLEEP_DISABLE() (RCC_C2->APB4LPENR) &= ~ (RCC_APB4LPENR_RTCAPBLPEN) - -#endif /*DUAL_CORE*/ - -#if defined(DUAL_CORE) -/** @brief Enable or disable peripheral bus clock when D3 domain is in DRUN - * @note After reset (default config), peripheral clock is disabled when both CPUs are in CSTOP - */ -#else -/** @brief Enable or disable peripheral bus clock when D3 domain is in DRUN - * @note After reset (default config), peripheral clock is disabled when CPU is in CSTOP - */ -#endif /*DUAL_CORE*/ - -#if defined(RCC_D3AMR_BDMAAMEN) -#define __HAL_RCC_BDMA_CLKAM_ENABLE() (RCC->D3AMR) |= (RCC_D3AMR_BDMAAMEN) -#endif -#if defined(RCC_D3AMR_LPUART1AMEN) -#define __HAL_RCC_LPUART1_CLKAM_ENABLE() (RCC->D3AMR) |= (RCC_D3AMR_LPUART1AMEN) -#endif -#if defined(RCC_D3AMR_SPI6AMEN) -#define __HAL_RCC_SPI6_CLKAM_ENABLE() (RCC->D3AMR) |= (RCC_D3AMR_SPI6AMEN) -#endif -#if defined(RCC_D3AMR_I2C4AMEN) -#define __HAL_RCC_I2C4_CLKAM_ENABLE() (RCC->D3AMR) |= (RCC_D3AMR_I2C4AMEN) -#endif -#if defined(RCC_D3AMR_LPTIM2AMEN) -#define __HAL_RCC_LPTIM2_CLKAM_ENABLE() (RCC->D3AMR) |= (RCC_D3AMR_LPTIM2AMEN) -#endif -#if defined(RCC_D3AMR_LPTIM3AMEN) -#define __HAL_RCC_LPTIM3_CLKAM_ENABLE() (RCC->D3AMR) |= (RCC_D3AMR_LPTIM3AMEN) -#endif -#if defined(LPTIM4) -#define __HAL_RCC_LPTIM4_CLKAM_ENABLE() (RCC->D3AMR) |= (RCC_D3AMR_LPTIM4AMEN) -#endif -#if defined(LPTIM5) -#define __HAL_RCC_LPTIM5_CLKAM_ENABLE() (RCC->D3AMR) |= (RCC_D3AMR_LPTIM5AMEN) -#endif -#if defined(RCC_D3AMR_COMP12AMEN) -#define __HAL_RCC_COMP12_CLKAM_ENABLE() (RCC->D3AMR) |= (RCC_D3AMR_COMP12AMEN) -#endif -#if defined(RCC_D3AMR_VREFAMEN) -#define __HAL_RCC_VREF_CLKAM_ENABLE() (RCC->D3AMR) |= (RCC_D3AMR_VREFAMEN) -#endif -#if defined(RCC_D3AMR_RTCAMEN) -#define __HAL_RCC_RTC_CLKAM_ENABLE() (RCC->D3AMR) |= (RCC_D3AMR_RTCAMEN) -#endif -#if defined(RCC_D3AMR_CRCAMEN) -#define __HAL_RCC_CRC_CLKAM_ENABLE() (RCC->D3AMR) |= (RCC_D3AMR_CRCAMEN) -#endif -#if defined(SAI4) -#define __HAL_RCC_SAI4_CLKAM_ENABLE() (RCC->D3AMR) |= (RCC_D3AMR_SAI4AMEN) -#endif -#if defined(ADC3) -#define __HAL_RCC_ADC3_CLKAM_ENABLE() (RCC->D3AMR) |= (RCC_D3AMR_ADC3AMEN) -#endif -#if defined(RCC_D3AMR_DTSAMEN) -#define __HAL_RCC_DTS_CLKAM_ENABLE() (RCC->D3AMR) |= (RCC_D3AMR_DTSAMEN) -#endif -#if defined(RCC_D3AMR_BKPRAMAMEN) -#define __HAL_RCC_BKPRAM_CLKAM_ENABLE() (RCC->D3AMR) |= (RCC_D3AMR_BKPRAMAMEN) -#endif -#if defined(RCC_D3AMR_SRAM4AMEN) -#define __HAL_RCC_D3SRAM1_CLKAM_ENABLE() (RCC->D3AMR) |= (RCC_D3AMR_SRAM4AMEN) -#endif - -#if defined(BDMA2) -#define __HAL_RCC_BDMA2_CLKAM_ENABLE() (RCC->SRDAMR) |= (RCC_SRDAMR_BDMA2AMEN) -#endif -#if defined(RCC_SRDAMR_GPIOAMEN) -#define __HAL_RCC_GPIO_CLKAM_ENABLE() (RCC->SRDAMR) |= (RCC_SRDAMR_GPIOAMEN) -#endif -#if defined(RCC_SRDAMR_LPUART1AMEN) -#define __HAL_RCC_LPUART1_CLKAM_ENABLE() (RCC->SRDAMR) |= (RCC_SRDAMR_LPUART1AMEN) -#endif -#if defined(RCC_SRDAMR_SPI6AMEN) -#define __HAL_RCC_SPI6_CLKAM_ENABLE() (RCC->SRDAMR) |= (RCC_SRDAMR_SPI6AMEN) -#endif -#if defined(RCC_SRDAMR_I2C4AMEN) -#define __HAL_RCC_I2C4_CLKAM_ENABLE() (RCC->SRDAMR) |= (RCC_SRDAMR_I2C4AMEN) -#endif -#if defined(RCC_SRDAMR_LPTIM2AMEN) -#define __HAL_RCC_LPTIM2_CLKAM_ENABLE() (RCC->SRDAMR) |= (RCC_SRDAMR_LPTIM2AMEN) -#endif -#if defined(RCC_SRDAMR_LPTIM3AMEN) -#define __HAL_RCC_LPTIM3_CLKAM_ENABLE() (RCC->SRDAMR) |= (RCC_SRDAMR_LPTIM3AMEN) -#endif -#if defined(DAC2) -#define __HAL_RCC_DAC2_CLKAM_ENABLE() (RCC->SRDAMR) |= (RCC_SRDAMR_DAC2AMEN) -#endif -#if defined(RCC_SRDAMR_COMP12AMEN) -#define __HAL_RCC_COMP12_CLKAM_ENABLE() (RCC->SRDAMR) |= (RCC_SRDAMR_COMP12AMEN) -#endif -#if defined(RCC_SRDAMR_VREFAMEN) -#define __HAL_RCC_VREF_CLKAM_ENABLE() (RCC->SRDAMR) |= (RCC_SRDAMR_VREFAMEN) -#endif -#if defined(RCC_SRDAMR_RTCAMEN) -#define __HAL_RCC_RTC_CLKAM_ENABLE() (RCC->SRDAMR) |= (RCC_SRDAMR_RTCAMEN) -#endif -#if defined(RCC_SRDAMR_DTSAMEN) -#define __HAL_RCC_DTS_CLKAM_ENABLE() (RCC->SRDAMR) |= (RCC_SRDAMR_DTSAMEN) -#endif -#if defined(DFSDM2_BASE) -#define __HAL_RCC_DFSDM2_CLKAM_ENABLE() (RCC->SRDAMR) |= (RCC_SRDAMR_DFSDM2AMEN) -#endif -#if defined(RCC_SRDAMR_BKPRAMAMEN) -#define __HAL_RCC_BKPRAM_CLKAM_ENABLE() (RCC->SRDAMR) |= (RCC_SRDAMR_BKPRAMAMEN) -#endif -#if defined(RCC_SRDAMR_SRDSRAMAMEN) -#define __HAL_RCC_SRDSRAM_CLKAM_ENABLE() (RCC->SRDAMR) |= (RCC_SRDAMR_SRDSRAMAMEN) -#endif - -#if defined(RCC_D3AMR_BDMAAMEN) -#define __HAL_RCC_BDMA_CLKAM_DISABLE() (RCC->D3AMR) &= ~ (RCC_D3AMR_BDMAAMEN) -#endif -#if defined(RCC_D3AMR_LPUART1AMEN) -#define __HAL_RCC_LPUART1_CLKAM_DISABLE() (RCC->D3AMR) &= ~ (RCC_D3AMR_LPUART1AMEN) -#endif -#if defined(RCC_D3AMR_SPI6AMEN) -#define __HAL_RCC_SPI6_CLKAM_DISABLE() (RCC->D3AMR) &= ~ (RCC_D3AMR_SPI6AMEN) -#endif -#if defined(RCC_D3AMR_I2C4AMEN) -#define __HAL_RCC_I2C4_CLKAM_DISABLE() (RCC->D3AMR) &= ~ (RCC_D3AMR_I2C4AMEN) -#endif -#if defined(RCC_D3AMR_LPTIM2AMEN) -#define __HAL_RCC_LPTIM2_CLKAM_DISABLE() (RCC->D3AMR) &= ~ (RCC_D3AMR_LPTIM2AMEN) -#endif -#if defined(RCC_D3AMR_LPTIM3AMEN) -#define __HAL_RCC_LPTIM3_CLKAM_DISABLE() (RCC->D3AMR) &= ~ (RCC_D3AMR_LPTIM3AMEN) -#endif -#if defined(LPTIM4) -#define __HAL_RCC_LPTIM4_CLKAM_DISABLE() (RCC->D3AMR) &= ~ (RCC_D3AMR_LPTIM4AMEN) -#endif -#if defined(LPTIM5) -#define __HAL_RCC_LPTIM5_CLKAM_DISABLE() (RCC->D3AMR) &= ~ (RCC_D3AMR_LPTIM5AMEN) -#endif -#if defined(RCC_D3AMR_COMP12AMEN) -#define __HAL_RCC_COMP12_CLKAM_DISABLE() (RCC->D3AMR) &= ~ (RCC_D3AMR_COMP12AMEN) -#endif -#if defined(RCC_D3AMR_VREFAMEN) -#define __HAL_RCC_VREF_CLKAM_DISABLE() (RCC->D3AMR) &= ~ (RCC_D3AMR_VREFAMEN) -#endif -#if defined(RCC_D3AMR_RTCAMEN) -#define __HAL_RCC_RTC_CLKAM_DISABLE() (RCC->D3AMR) &= ~ (RCC_D3AMR_RTCAMEN) -#endif -#if defined(RCC_D3AMR_CRCAMEN) -#define __HAL_RCC_CRC_CLKAM_DISABLE() (RCC->D3AMR) &= ~ (RCC_D3AMR_CRCAMEN) -#endif -#if defined(SAI4) -#define __HAL_RCC_SAI4_CLKAM_DISABLE() (RCC->D3AMR) &= ~ (RCC_D3AMR_SAI4AMEN) -#endif -#if defined(ADC3) -#define __HAL_RCC_ADC3_CLKAM_DISABLE() (RCC->D3AMR) &= ~ (RCC_D3AMR_ADC3AMEN) -#endif -#if defined(RCC_D3AMR_DTSAMEN) -#define __HAL_RCC_DTS_CLKAM_DISABLE() (RCC->D3AMR) &= ~ (RCC_D3AMR_DTSAMEN) -#endif -#if defined(RCC_D3AMR_BKPRAMAMEN) -#define __HAL_RCC_BKPRAM_CLKAM_DISABLE() (RCC->D3AMR) &= ~ (RCC_D3AMR_BKPRAMAMEN) -#endif -#if defined(RCC_D3AMR_SRAM4AMEN) -#define __HAL_RCC_D3SRAM1_CLKAM_DISABLE() (RCC->D3AMR)&= ~ (RCC_D3AMR_SRAM4AMEN) -#endif - -#if defined(BDMA2) -#define __HAL_RCC_BDMA2_CLKAM_DISABLE() (RCC->SRDAMR) &= ~ (RCC_SRDAMR_BDMA2AMEN) -#endif -#if defined(RCC_SRDAMR_GPIOAMEN) -#define __HAL_RCC_GPIO_CLKAM_DISABLE() (RCC->SRDAMR) &= ~ (RCC_SRDAMR_GPIOAMEN) -#endif -#if defined(RCC_SRDAMR_LPUART1AMEN) -#define __HAL_RCC_LPUART1_CLKAM_DISABLE() (RCC->SRDAMR) &= ~ (RCC_SRDAMR_LPUART1AMEN) -#endif -#if defined(RCC_SRDAMR_SPI6AMEN) -#define __HAL_RCC_SPI6_CLKAM_DISABLE() (RCC->SRDAMR) &= ~ (RCC_SRDAMR_SPI6AMEN) -#endif -#if defined(RCC_SRDAMR_I2C4AMEN) -#define __HAL_RCC_I2C4_CLKAM_DISABLE() (RCC->SRDAMR) &= ~ (RCC_SRDAMR_I2C4AMEN) -#endif -#if defined(RCC_SRDAMR_LPTIM2AMEN) -#define __HAL_RCC_LPTIM2_CLKAM_DISABLE() (RCC->SRDAMR) &= ~ (RCC_SRDAMR_LPTIM2AMEN) -#endif -#if defined(RCC_SRDAMR_LPTIM3AMEN) -#define __HAL_RCC_LPTIM3_CLKAM_DISABLE() (RCC->SRDAMR) &= ~ (RCC_SRDAMR_LPTIM3AMEN) -#endif -#if defined(RCC_SRDAMR_DAC2AMEN) -#define __HAL_RCC_DAC2_CLKAM_DISABLE() (RCC->SRDAMR) &= ~ (RCC_SRDAMR_DAC2AMEN) -#endif -#if defined(RCC_SRDAMR_COMP12AMEN) -#define __HAL_RCC_COMP12_CLKAM_DISABLE() (RCC->SRDAMR) &= ~ (RCC_SRDAMR_COMP12AMEN) -#endif -#if defined(RCC_SRDAMR_VREFAMEN) -#define __HAL_RCC_VREF_CLKAM_DISABLE() (RCC->SRDAMR) &= ~ (RCC_SRDAMR_VREFAMEN) -#endif -#if defined(RCC_SRDAMR_RTCAMEN) -#define __HAL_RCC_RTC_CLKAM_DISABLE() (RCC->SRDAMR) &= ~(RCC_SRDAMR_RTCAMEN) -#endif -#if defined(RCC_SRDAMR_DTSAMEN) -#define __HAL_RCC_DTS_CLKAM_DISABLE() (RCC->SRDAMR) &= ~(RCC_SRDAMR_DTSAMEN) -#endif -#if defined(DFSDM2_BASE) -#define __HAL_RCC_DFSDM2_CLKAM_DISABLE() (RCC->SRDAMR) &= ~(RCC_SRDAMR_DFSDM2AMEN) -#endif -#if defined(RCC_SRDAMR_BKPRAMAMEN) -#define __HAL_RCC_BKPRAM_CLKAM_DISABLE() (RCC->SRDAMR) &= ~ (RCC_SRDAMR_BKPRAMAMEN) -#endif -#if defined(RCC_SRDAMR_SRDSRAMAMEN) -#define __HAL_RCC_SRDSRAM_CLKAM_DISABLE() (RCC->SRDAMR) &= ~ (RCC_SRDAMR_SRDSRAMAMEN) -#endif - - -#if defined(RCC_CKGAENR_AXICKG) -/** @brief Macro to enable or disable the RCC_CKGAENR bits (AXI clocks gating enable register). - */ - -#define __HAL_RCC_AXI_CLKGA_ENABLE() (RCC->CKGAENR) |= (RCC_CKGAENR_AXICKG) -#define __HAL_RCC_AHB_CLKGA_ENABLE() (RCC->CKGAENR) |= (RCC_CKGAENR_AHBCKG) -#define __HAL_RCC_CPU_CLKGA_ENABLE() (RCC->CKGAENR) |= (RCC_CKGAENR_CPUCKG) -#define __HAL_RCC_SDMMC_CLKGA_ENABLE() (RCC->CKGAENR) |= (RCC_CKGAENR_SDMMCCKG) -#define __HAL_RCC_MDMA_CLKGA_ENABLE() (RCC->CKGAENR) |= (RCC_CKGAENR_MDMACKG) -#define __HAL_RCC_DMA2D_CLKGA_ENABLE() (RCC->CKGAENR) |= (RCC_CKGAENR_DMA2DCKG) -#define __HAL_RCC_LTDC_CLKGA_ENABLE() (RCC->CKGAENR) |= (RCC_CKGAENR_LTDCCKG) -#define __HAL_RCC_GFXMMUM_CLKGA_ENABLE() (RCC->CKGAENR) |= (RCC_CKGAENR_GFXMMUMCKG) -#define __HAL_RCC_AHB12_CLKGA_ENABLE() (RCC->CKGAENR) |= (RCC_CKGAENR_AHB12CKG) -#define __HAL_RCC_AHB34_CLKGA_ENABLE() (RCC->CKGAENR) |= (RCC_CKGAENR_AHB34CKG) -#define __HAL_RCC_FLIFT_CLKGA_ENABLE() (RCC->CKGAENR) |= (RCC_CKGAENR_FLIFTCKG) -#define __HAL_RCC_OCTOSPI2_CLKGA_ENABLE() (RCC->CKGAENR) |= (RCC_CKGAENR_OCTOSPI2CKG) -#define __HAL_RCC_FMC_CLKGA_ENABLE() (RCC->CKGAENR) |= (RCC_CKGAENR_FMCCKG) -#define __HAL_RCC_OCTOSPI1_CLKGA_ENABLE() (RCC->CKGAENR) |= (RCC_CKGAENR_OCTOSPI1CKG) -#define __HAL_RCC_AXIRAM1_CLKGA_ENABLE() (RCC->CKGAENR) |= (RCC_CKGAENR_AXIRAM1CKG) -#define __HAL_RCC_AXIRAM2_CLKGA_ENABLE() (RCC->CKGAENR) |= (RCC_CKGAENR_AXIRAM2CKG) -#define __HAL_RCC_AXIRAM3_CLKGA_ENABLE() (RCC->CKGAENR) |= (RCC_CKGAENR_AXIRAM3CKG) -#define __HAL_RCC_GFXMMUS_CLKGA_ENABLE() (RCC->CKGAENR) |= (RCC_CKGAENR_GFXMMUSCKG) -#define __HAL_RCC_ECCRAM_CLKGA_ENABLE() (RCC->CKGAENR) |= (RCC_CKGAENR_ECCRAMCKG) -#define __HAL_RCC_EXTI_CLKGA_ENABLE() (RCC->CKGAENR) |= (RCC_CKGAENR_EXTICKG) -#define __HAL_RCC_JTAG_CLKGA_ENABLE() (RCC->CKGAENR) |= (RCC_CKGAENR_JTAGCKG) - - -#define __HAL_RCC_AXI_CLKGA_DISABLE() (RCC->CKGAENR) &= ~ (RCC_CKGAENR_AXICKG) -#define __HAL_RCC_AHB_CLKGA_DISABLE() (RCC->CKGAENR) &= ~ (RCC_CKGAENR_AHBCKG) -#define __HAL_RCC_CPU_CLKGA_DISABLE() (RCC->CKGAENR) &= ~ (RCC_CKGAENR_CPUCKG) -#define __HAL_RCC_SDMMC_CLKGA_DISABLE() (RCC->CKGAENR) &= ~ (RCC_CKGAENR_SDMMCCKG) -#define __HAL_RCC_MDMA_CLKGA_DISABLE() (RCC->CKGAENR) &= ~ (RCC_CKGAENR_MDMACKG) -#define __HAL_RCC_DMA2D_CLKGA_DISABLE() (RCC->CKGAENR) &= ~ (RCC_CKGAENR_DMA2DCKG) -#define __HAL_RCC_LTDC_CLKGA_DISABLE() (RCC->CKGAENR) &= ~ (RCC_CKGAENR_LTDCCKG) -#define __HAL_RCC_GFXMMUM_CLKGA_DISABLE() (RCC->CKGAENR) &= ~ (RCC_CKGAENR_GFXMMUMCKG) -#define __HAL_RCC_AHB12_CLKGA_DISABLE() (RCC->CKGAENR) &= ~ (RCC_CKGAENR_AHB12CKG) -#define __HAL_RCC_AHB34_CLKGA_DISABLE() (RCC->CKGAENR) &= ~ (RCC_CKGAENR_AHB34CKG) -#define __HAL_RCC_FLIFT_CLKGA_DISABLE() (RCC->CKGAENR) &= ~ (RCC_CKGAENR_FLIFTCKG) -#define __HAL_RCC_OCTOSPI2_CLKGA_DISABLE() (RCC->CKGAENR) &= ~ (RCC_CKGAENR_OCTOSPI2CKG) -#define __HAL_RCC_FMC_CLKGA_DISABLE() (RCC->CKGAENR) &= ~ (RCC_CKGAENR_FMCCKG) -#define __HAL_RCC_OCTOSPI1_CLKGA_DISABLE() (RCC->CKGAENR) &= ~ (RCC_CKGAENR_OCTOSPI1CKG) -#define __HAL_RCC_AXIRAM1_CLKGA_DISABLE() (RCC->CKGAENR) &= ~ (RCC_CKGAENR_AXIRAM1CKG) -#define __HAL_RCC_AXIRAM2_CLKGA_DISABLE() (RCC->CKGAENR) &= ~ (RCC_CKGAENR_AXIRAM2CKG) -#define __HAL_RCC_AXIRAM3_CLKGA_DISABLE() (RCC->CKGAENR) &= ~ (RCC_CKGAENR_AXIRAM3CKG) -#define __HAL_RCC_GFXMMUS_CLKGA_DISABLE() (RCC->CKGAENR) &= ~ (RCC_CKGAENR_GFXMMUSCKG) -#define __HAL_RCC_ECCRAM_CLKGA_DISABLE() (RCC->CKGAENR) &= ~ (RCC_CKGAENR_ECCRAMCKG) -#define __HAL_RCC_EXTI_CLKGA_DISABLE() (RCC->CKGAENR) &= ~ (RCC_CKGAENR_EXTICKG) -#define __HAL_RCC_JTAG_CLKGA_DISABLE() (RCC->CKGAENR) &= ~ (RCC_CKGAENR_JTAGCKG) - -#endif /* RCC_CKGAENR_AXICKG */ - - - - -/** @brief Macro to enable or disable the Internal High Speed oscillator (HSI). - * @note After enabling the HSI, the application software should wait on - * HSIRDY flag to be set indicating that HSI clock is stable and can - * be used to clock the PLL and/or system clock. - * @note HSI can not be stopped if it is used directly or through the PLL - * as system clock. In this case, you have to select another source - * of the system clock then stop the HSI. - * @note The HSI is stopped by hardware when entering STOP and STANDBY modes. - * @param __STATE__ specifies the new state of the HSI. - * This parameter can be one of the following values: - * @arg RCC_HSI_OFF turn OFF the HSI oscillator - * @arg RCC_HSI_ON turn ON the HSI oscillator - * @arg RCC_HSI_DIV1 turn ON the HSI oscillator and divide it by 1 (default after reset) - * @arg RCC_HSI_DIV2 turn ON the HSI oscillator and divide it by 2 - * @arg RCC_HSI_DIV4 turn ON the HSI oscillator and divide it by 4 - * @arg RCC_HSI_DIV8 turn ON the HSI oscillator and divide it by 8 - * @note When the HSI is stopped, HSIRDY flag goes low after 6 HSI oscillator - * clock cycles. - */ -#define __HAL_RCC_HSI_CONFIG(__STATE__) \ - MODIFY_REG(RCC->CR, RCC_CR_HSION | RCC_CR_HSIDIV , (uint32_t)(__STATE__)) - - -/** @brief Macro to get the HSI divider. - * @retval The HSI divider. The returned value can be one - * of the following: - * - RCC_CR_HSIDIV_1 HSI oscillator divided by 1 (default after reset) - * - RCC_CR_HSIDIV_2 HSI oscillator divided by 2 - * - RCC_CR_HSIDIV_4 HSI oscillator divided by 4 - * - RCC_CR_HSIDIV_8 HSI oscillator divided by 8 - */ -#define __HAL_RCC_GET_HSI_DIVIDER() ((uint32_t)(READ_BIT(RCC->CR, RCC_CR_HSIDIV))) - -/** @brief Macros to enable or disable the Internal High Speed oscillator (HSI). - * @note The HSI is stopped by hardware when entering STOP and STANDBY modes. - * It is used (enabled by hardware) as system clock source after start-up - * from Reset, wakeup from STOP and STANDBY mode, or in case of failure - * of the HSE used directly or indirectly as system clock (if the Clock - * Security System CSS is enabled). - * @note HSI can not be stopped if it is used as system clock source. In this case, - * you have to select another source of the system clock then stop the HSI. - * @note After enabling the HSI, the application software should wait on HSIRDY - * flag to be set indicating that HSI clock is stable and can be used as - * system clock source. - * This parameter can be: ENABLE or DISABLE. - * @note When the HSI is stopped, HSIRDY flag goes low after 6 HSI oscillator - * clock cycles. - */ -#define __HAL_RCC_HSI_ENABLE() SET_BIT(RCC->CR, RCC_CR_HSION) -#define __HAL_RCC_HSI_DISABLE() CLEAR_BIT(RCC->CR, RCC_CR_HSION) - - -/** @brief Macro to adjust the Internal High Speed oscillator (HSI) calibration value. - * @note The calibration is used to compensate for the variations in voltage - * and temperature that influence the frequency of the internal HSI RC. - * @param __HSICalibrationValue__: specifies the calibration trimming value. - * This parameter must be a number between 0 and 0x7F (3F for Rev Y device). - */ -#if defined(RCC_VER_X) -#define __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(__HSICalibrationValue__) \ - do { \ - if(HAL_GetREVID() <= REV_ID_Y) \ - { \ - if((__HSICalibrationValue__) == RCC_HSICALIBRATION_DEFAULT) \ - { \ - MODIFY_REG(RCC->HSICFGR, HAL_RCC_REV_Y_HSITRIM_Msk, ((uint32_t)0x20) << HAL_RCC_REV_Y_HSITRIM_Pos); \ - } \ - else \ - { \ - MODIFY_REG(RCC->HSICFGR, HAL_RCC_REV_Y_HSITRIM_Msk, (uint32_t)(__HSICalibrationValue__) << HAL_RCC_REV_Y_HSITRIM_Pos); \ - } \ - } \ - else \ - { \ - MODIFY_REG(RCC->HSICFGR, RCC_HSICFGR_HSITRIM, (uint32_t)(__HSICalibrationValue__) << RCC_HSICFGR_HSITRIM_Pos); \ - } \ - } while(0) - -#else -#define __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(__HSICalibrationValue__) \ - MODIFY_REG(RCC->HSICFGR, RCC_HSICFGR_HSITRIM, (uint32_t)(__HSICalibrationValue__) << RCC_HSICFGR_HSITRIM_Pos); -#endif /*RCC_VER_X*/ -/** - * @brief Macros to enable or disable the force of the Internal High Speed oscillator (HSI) - * in STOP mode to be quickly available as kernel clock for some peripherals. - * @note Keeping the HSI ON in STOP mode allows to avoid slowing down the communication - * speed because of the HSI start-up time. - * @note The enable of this function has not effect on the HSION bit. - * This parameter can be: ENABLE or DISABLE. - * @retval None - */ -#define __HAL_RCC_HSISTOP_ENABLE() SET_BIT(RCC->CR, RCC_CR_HSIKERON) -#define __HAL_RCC_HSISTOP_DISABLE() CLEAR_BIT(RCC->CR, RCC_CR_HSIKERON) - - -/** - * @brief Macro to enable or disable the Internal High Speed oscillator for USB (HSI48). - * @note After enabling the HSI48, the application software should wait on - * HSI48RDY flag to be set indicating that HSI48 clock is stable and can - * be used to clock the USB. - * @note The HSI48 is stopped by hardware when entering STOP and STANDBY modes. - */ -#define __HAL_RCC_HSI48_ENABLE() SET_BIT(RCC->CR, RCC_CR_HSI48ON); - -#define __HAL_RCC_HSI48_DISABLE() CLEAR_BIT(RCC->CR, RCC_CR_HSI48ON); - -/** - * @brief Macros to enable or disable the Internal oscillator (CSI). - * @note The CSI is stopped by hardware when entering STOP and STANDBY modes. - * It is used (enabled by hardware) as system clock source after - * start-up from Reset, wakeup from STOP and STANDBY mode, or in case - * of failure of the HSE used directly or indirectly as system clock - * (if the Clock Security System CSS is enabled). - * @note CSI can not be stopped if it is used as system clock source. - * In this case, you have to select another source of the system - * clock then stop the CSI. - * @note After enabling the CSI, the application software should wait on - * CSIRDY flag to be set indicating that CSI clock is stable and can - * be used as system clock source. - * @note When the CSI is stopped, CSIRDY flag goes low after 6 CSI oscillator - * clock cycles. - */ -#define __HAL_RCC_CSI_ENABLE() SET_BIT(RCC->CR, RCC_CR_CSION) -#define __HAL_RCC_CSI_DISABLE() CLEAR_BIT(RCC->CR, RCC_CR_CSION) - -/** @brief Macro Adjusts the Internal oscillator (CSI) calibration value. - * @note The calibration is used to compensate for the variations in voltage - * and temperature that influence the frequency of the internal CSI RC. - * @param __CSICalibrationValue__: specifies the calibration trimming value. - * This parameter must be a number between 0 and 0x1F. - */ -#if defined(RCC_VER_X) -#define __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(__CSICalibrationValue__) \ - do { \ - if(HAL_GetREVID() <= REV_ID_Y) \ - { \ - if((__CSICalibrationValue__) == RCC_CSICALIBRATION_DEFAULT) \ - { \ - MODIFY_REG(RCC->HSICFGR, HAL_RCC_REV_Y_CSITRIM_Msk, ((uint32_t)0x10) << HAL_RCC_REV_Y_CSITRIM_Pos); \ - } \ - else \ - { \ - MODIFY_REG(RCC->HSICFGR, HAL_RCC_REV_Y_CSITRIM_Msk, (uint32_t)(__CSICalibrationValue__) << HAL_RCC_REV_Y_CSITRIM_Pos); \ - } \ - } \ - else \ - { \ - MODIFY_REG(RCC->CSICFGR, RCC_CSICFGR_CSITRIM, (uint32_t)(__CSICalibrationValue__) << RCC_CSICFGR_CSITRIM_Pos); \ - } \ - } while(0) - -#else -#define __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(__CSICalibrationValue__) \ - do { \ - MODIFY_REG(RCC->CSICFGR, RCC_CSICFGR_CSITRIM, (uint32_t)(__CSICalibrationValue__) << RCC_CSICFGR_CSITRIM_Pos); \ - } while(0) - -#endif /*RCC_VER_X*/ -/** - * @brief Macros to enable or disable the force of the Low-power Internal oscillator (CSI) - * in STOP mode to be quickly available as kernel clock for USARTs and I2Cs. - * @note Keeping the CSI ON in STOP mode allows to avoid slowing down the communication - * speed because of the CSI start-up time. - * @note The enable of this function has not effect on the CSION bit. - * This parameter can be: ENABLE or DISABLE. - * @retval None - */ -#define __HAL_RCC_CSISTOP_ENABLE() SET_BIT(RCC->CR, RCC_CR_CSIKERON) -#define __HAL_RCC_CSISTOP_DISABLE() CLEAR_BIT(RCC->CR, RCC_CR_CSIKERON) - - -/** @brief Macros to enable or disable the Internal Low Speed oscillator (LSI). - * @note After enabling the LSI, the application software should wait on - * LSIRDY flag to be set indicating that LSI clock is stable and can - * be used to clock the IWDG and/or the RTC. - * @note LSI can not be disabled if the IWDG is running. - * @note When the LSI is stopped, LSIRDY flag goes low after 6 LSI oscillator - * clock cycles. - */ -#define __HAL_RCC_LSI_ENABLE() SET_BIT(RCC->CSR, RCC_CSR_LSION) -#define __HAL_RCC_LSI_DISABLE() CLEAR_BIT(RCC->CSR, RCC_CSR_LSION) - -/** - * @brief Macro to configure the External High Speed oscillator (__HSE__). - * @note After enabling the HSE (RCC_HSE_ON, RCC_HSE_BYPASS or RCC_HSE_BYPASS_DIGITAL), - * the application software should wait on HSERDY flag to be set indicating - * that HSE clock is stable and can be used to clock the PLL and/or system clock. - * @note HSE state can not be changed if it is used directly or through the - * PLL as system clock. In this case, you have to select another source - * of the system clock then change the HSE state (ex. disable it). - * @note The HSE is stopped by hardware when entering STOP and STANDBY modes. - * @note This function reset the CSSON bit, so if the clock security system(CSS) - * was previously enabled you have to enable it again after calling this - * function. - * @param __STATE__: specifies the new state of the HSE. - * This parameter can be one of the following values: - * @arg RCC_HSE_OFF: turn OFF the HSE oscillator, HSERDY flag goes low after - * 6 HSE oscillator clock cycles. - * @arg RCC_HSE_ON: turn ON the HSE oscillator. - * @arg RCC_HSE_BYPASS: HSE oscillator bypassed with external clock. - * @arg RCC_HSE_BYPASS_DIGITAL: HSE oscillator bypassed with digital external clock. (*) - * - * (*): Only available on stm32h7a3xx, stm32h7b3xx and stm32h7b0xx family lines. - */ -#if defined(RCC_CR_HSEEXT) -#define __HAL_RCC_HSE_CONFIG(__STATE__) \ - do { \ - if ((__STATE__) == RCC_HSE_ON) \ - { \ - SET_BIT(RCC->CR, RCC_CR_HSEON); \ - } \ - else if ((__STATE__) == RCC_HSE_OFF) \ - { \ - CLEAR_BIT(RCC->CR, RCC_CR_HSEON); \ - CLEAR_BIT(RCC->CR, RCC_CR_HSEEXT); \ - CLEAR_BIT(RCC->CR, RCC_CR_HSEBYP); \ - } \ - else if ((__STATE__) == RCC_HSE_BYPASS) \ - { \ - SET_BIT(RCC->CR, RCC_CR_HSEBYP); \ - CLEAR_BIT(RCC->CR, RCC_CR_HSEEXT); \ - SET_BIT(RCC->CR, RCC_CR_HSEON); \ - } \ - else if((__STATE__) == RCC_HSE_BYPASS_DIGITAL) \ - { \ - SET_BIT(RCC->CR, RCC_CR_HSEBYP); \ - SET_BIT(RCC->CR, RCC_CR_HSEEXT); \ - SET_BIT(RCC->CR, RCC_CR_HSEON); \ - } \ - else \ - { \ - CLEAR_BIT(RCC->CR, RCC_CR_HSEON); \ - CLEAR_BIT(RCC->CR, RCC_CR_HSEBYP); \ - CLEAR_BIT(RCC->CR, RCC_CR_HSEEXT); \ - } \ - } while(0) -#else -#define __HAL_RCC_HSE_CONFIG(__STATE__) \ - do { \ - if ((__STATE__) == RCC_HSE_ON) \ - { \ - SET_BIT(RCC->CR, RCC_CR_HSEON); \ - } \ - else if ((__STATE__) == RCC_HSE_OFF) \ - { \ - CLEAR_BIT(RCC->CR, RCC_CR_HSEON); \ - CLEAR_BIT(RCC->CR, RCC_CR_HSEBYP); \ - } \ - else if ((__STATE__) == RCC_HSE_BYPASS) \ - { \ - SET_BIT(RCC->CR, RCC_CR_HSEBYP); \ - SET_BIT(RCC->CR, RCC_CR_HSEON); \ - } \ - else \ - { \ - CLEAR_BIT(RCC->CR, RCC_CR_HSEON); \ - CLEAR_BIT(RCC->CR, RCC_CR_HSEBYP); \ - } \ - } while(0) -#endif /* RCC_CR_HSEEXT */ - -/** @defgroup RCC_LSE_Configuration LSE Configuration - * @{ - */ - -/** - * @brief Macro to configure the External Low Speed oscillator (LSE). - * @note Transition LSE Bypass to LSE On and LSE On to LSE Bypass are not supported by this macro. - * User should request a transition to LSE Off first and then LSE On or LSE Bypass. - * @note The external input clock can have a frequency up to 1 MHz and be low swing (analog) or digital(*). - A duty cycle close to 50% is recommended. - * @note As the LSE is in the Backup domain and write access is denied to - * this domain after reset, you have to enable write access using - * HAL_PWR_EnableBkUpAccess() function before to configure the LSE - * (to be done once after reset). - * @note After enabling the LSE (RCC_LSE_ON, RCC_LSE_BYPASS or RCC_LSE_BYPASS_DIGITAL*), the application - * software should wait on LSERDY flag to be set indicating that LSE clock - * is stable and can be used to clock the RTC. - * @note If the RTC is used, the LSE bypass must not be configured in digital mode but in low swing analog mode (*) - * @param __STATE__: specifies the new state of the LSE. - * This parameter can be one of the following values: - * @arg RCC_LSE_OFF: turn OFF the LSE oscillator, LSERDY flag goes low after - * 6 LSE oscillator clock cycles. - * @arg RCC_LSE_ON: turn ON the LSE oscillator. - * @arg RCC_LSE_BYPASS: LSE oscillator bypassed with external clock. - * @arg RCC_LSE_BYPASS_DIGITAL: LSE oscillator bypassed with external digital clock. (*) - * - * (*) Available on some STM32H7 lines only. - */ -#if defined(RCC_BDCR_LSEEXT) -#define __HAL_RCC_LSE_CONFIG(__STATE__) \ - do { \ - if((__STATE__) == RCC_LSE_ON) \ - { \ - SET_BIT(RCC->BDCR, RCC_BDCR_LSEON); \ - } \ - else if((__STATE__) == RCC_LSE_OFF) \ - { \ - CLEAR_BIT(RCC->BDCR, RCC_BDCR_LSEON); \ - CLEAR_BIT(RCC->BDCR, RCC_BDCR_LSEEXT); \ - CLEAR_BIT(RCC->BDCR, RCC_BDCR_LSEBYP); \ - } \ - else if((__STATE__) == RCC_LSE_BYPASS) \ - { \ - SET_BIT(RCC->BDCR, RCC_BDCR_LSEBYP); \ - CLEAR_BIT(RCC->BDCR, RCC_BDCR_LSEEXT); \ - SET_BIT(RCC->BDCR, RCC_BDCR_LSEON); \ - } \ - else if((__STATE__) == RCC_LSE_BYPASS_DIGITAL) \ - { \ - SET_BIT(RCC->BDCR, RCC_BDCR_LSEBYP); \ - SET_BIT(RCC->BDCR, RCC_BDCR_LSEEXT); \ - SET_BIT(RCC->BDCR, RCC_BDCR_LSEON); \ - } \ - else \ - { \ - CLEAR_BIT(RCC->BDCR, RCC_BDCR_LSEON); \ - CLEAR_BIT(RCC->BDCR, RCC_BDCR_LSEBYP); \ - CLEAR_BIT(RCC->BDCR, RCC_BDCR_LSEEXT); \ - } \ - } while(0) -#else - -#define __HAL_RCC_LSE_CONFIG(__STATE__) \ - do { \ - if((__STATE__) == RCC_LSE_ON) \ - { \ - SET_BIT(RCC->BDCR, RCC_BDCR_LSEON); \ - } \ - else if((__STATE__) == RCC_LSE_OFF) \ - { \ - CLEAR_BIT(RCC->BDCR, RCC_BDCR_LSEON); \ - CLEAR_BIT(RCC->BDCR, RCC_BDCR_LSEBYP); \ - } \ - else if((__STATE__) == RCC_LSE_BYPASS) \ - { \ - SET_BIT(RCC->BDCR, RCC_BDCR_LSEBYP); \ - SET_BIT(RCC->BDCR, RCC_BDCR_LSEON); \ - } \ - else \ - { \ - CLEAR_BIT(RCC->BDCR, RCC_BDCR_LSEON); \ - CLEAR_BIT(RCC->BDCR, RCC_BDCR_LSEBYP); \ - } \ - } while(0) - -#endif /* RCC_BDCR_LSEEXT */ -/** - * @} - */ - -/** @brief Macros to enable or disable the the RTC clock. - * @note These macros must be used only after the RTC clock source was selected. - */ -#define __HAL_RCC_RTC_ENABLE() SET_BIT(RCC->BDCR, RCC_BDCR_RTCEN) -#define __HAL_RCC_RTC_DISABLE() CLEAR_BIT(RCC->BDCR, RCC_BDCR_RTCEN) - -/** @brief Macros to configure the RTC clock (RTCCLK). - * @note As the RTC clock configuration bits are in the Backup domain and write - * access is denied to this domain after reset, you have to enable write - * access using the Power Backup Access macro before to configure - * the RTC clock source (to be done once after reset). - * @note Once the RTC clock is configured it can't be changed unless the - * Backup domain is reset using __HAL_RCC_BackupReset_RELEASE() macro, or by - * a Power On Reset (POR). - * @param __RTCCLKSource__: specifies the RTC clock source. - * This parameter can be one of the following values: - * @arg RCC_RTCCLKSOURCE_LSE: LSE selected as RTC clock. - * @arg RCC_RTCCLKSOURCE_LSI: LSI selected as RTC clock. - * @arg RCC_RTCCLKSOURCE_HSE_DIVx: HSE clock divided by x selected - * as RTC clock, where x:[2,31] - * @note If the LSE or LSI is used as RTC clock source, the RTC continues to - * work in STOP and STANDBY modes, and can be used as wakeup source. - * However, when the HSE clock is used as RTC clock source, the RTC - * cannot be used in STOP and STANDBY modes. - * @note The maximum input clock frequency for RTC is 1MHz (when using HSE as - * RTC clock source). - */ -#define __HAL_RCC_RTC_CLKPRESCALER(__RTCCLKSource__) (((__RTCCLKSource__) & RCC_BDCR_RTCSEL) == RCC_BDCR_RTCSEL) ? \ - MODIFY_REG(RCC->CFGR, RCC_CFGR_RTCPRE, (((__RTCCLKSource__) & 0xFFFFCFFU) >> 4)) : CLEAR_BIT(RCC->CFGR, RCC_CFGR_RTCPRE) - -#define __HAL_RCC_RTC_CONFIG(__RTCCLKSource__) do { __HAL_RCC_RTC_CLKPRESCALER(__RTCCLKSource__); \ - RCC->BDCR |= ((__RTCCLKSource__) & 0x00000FFFU); \ - } while (0) - -#define __HAL_RCC_GET_RTC_SOURCE() ((uint32_t)(READ_BIT(RCC->BDCR, RCC_BDCR_RTCSEL))) - - -/** @brief Macros to force or release the Backup domain reset. - * @note This function resets the RTC peripheral (including the backup registers) - * and the RTC clock source selection in RCC_BDCR register. - * @note The BKPSRAM is not affected by this reset. - */ -#define __HAL_RCC_BACKUPRESET_FORCE() SET_BIT(RCC->BDCR, RCC_BDCR_BDRST) -#define __HAL_RCC_BACKUPRESET_RELEASE() CLEAR_BIT(RCC->BDCR, RCC_BDCR_BDRST) - -/** @brief Macros to enable or disable the main PLL. - * @note After enabling the main PLL, the application software should wait on - * PLLRDY flag to be set indicating that PLL clock is stable and can - * be used as system clock source. - * @note The main PLL can not be disabled if it is used as system clock source - * @note The main PLL is disabled by hardware when entering STOP and STANDBY modes. - */ -#define __HAL_RCC_PLL_ENABLE() SET_BIT(RCC->CR, RCC_CR_PLL1ON) -#define __HAL_RCC_PLL_DISABLE() CLEAR_BIT(RCC->CR, RCC_CR_PLL1ON) - -/** - * @brief Enables or disables each clock output (PLL_P_CLK, PLL_Q_CLK, PLL_R_CLK) - * @note Enabling/disabling those Clocks can be done only when the PLL is disabled. - * This is mainly used to save Power. - * (The ck_pll_p of the System PLL cannot be stopped if used as System Clock). - * @param __RCC_PLL1ClockOut__: specifies the PLL clock to be outputted - * This parameter can be one of the following values: - * @arg RCC_PLL1_DIVP: This clock is used to generate system clock up to 550MHZ(*), 480MHZ(**) or 280MHZ(***) - * @arg RCC_PLL1_DIVQ: This clock is used to generate peripherals clock up to 550MHZ(*), 480MHZ(**) or 280MHZ(***) - * @arg RCC_PLL1_DIVR: This clock is used to generate peripherals clock up to 550MHZ(*), 480MHZ(**) or 280MHZ(***) - * - * (*) : For stm32h72xxx and stm32h73xxx family lines and requires to enable the CPU_FREQ_BOOST flash option byte, 520MHZ otherwise. - * (**) : For stm32h74xx and stm32h75xx family lines and requires the board to be connected on LDO regulator not SMPS, 400MHZ otherwise. - * (***): For stm32h7a3xx, stm32h7b3xx and stm32h7b0xx family lines. - * - * @retval None - */ -#define __HAL_RCC_PLLCLKOUT_ENABLE(__RCC_PLL1ClockOut__) SET_BIT(RCC->PLLCFGR, (__RCC_PLL1ClockOut__)) - -#define __HAL_RCC_PLLCLKOUT_DISABLE(__RCC_PLL1ClockOut__) CLEAR_BIT(RCC->PLLCFGR, (__RCC_PLL1ClockOut__)) - - -/** - * @brief Enables or disables Fractional Part Of The Multiplication Factor of PLL1 VCO - * @note Enabling/disabling Fractional Part can be any time without the need to stop the PLL1 - * @retval None - */ -#define __HAL_RCC_PLLFRACN_ENABLE() SET_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLL1FRACEN) - -#define __HAL_RCC_PLLFRACN_DISABLE() CLEAR_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLL1FRACEN) - - -/** - * @brief Macro to configures the main PLL clock source, multiplication and division factors. - * @note This function must be used only when the main PLL is disabled. - * - * @param __RCC_PLLSOURCE__: specifies the PLL entry clock source. - * This parameter can be one of the following values: - * @arg RCC_PLLSOURCE_CSI: CSI oscillator clock selected as PLL clock entry - * @arg RCC_PLLSOURCE_HSI: HSI oscillator clock selected as PLL clock entry - * @arg RCC_PLLSOURCE_HSE: HSE oscillator clock selected as PLL clock entry - * @note This clock source (__RCC_PLLSource__) is common for the main PLL1 (main PLL) and PLL2 & PLL3 . - * - * @param __PLLM1__: specifies the division factor for PLL VCO input clock - * This parameter must be a number between 1 and 63. - * @note You have to set the PLLM parameter correctly to ensure that the VCO input - * frequency ranges from 1 to 16 MHz. - * - * @param __PLLN1__: specifies the multiplication factor for PLL VCO output clock - * This parameter must be a number between 4 and 512 or between 8 and 420(*). - * @note You have to set the PLLN parameter correctly to ensure that the VCO - * output frequency is between 150 and 420 MHz (when in medium VCO range) or - * between 192 and 836 MHZ or between 128 and 560 MHZ(*) (when in wide VCO range) - * - * @param __PLLP1__: specifies the division factor for system clock. - * This parameter must be a number between 2 or 1(**) and 128 (where odd numbers are not allowed) - * - * @param __PLLQ1__: specifies the division factor for peripheral kernel clocks - * This parameter must be a number between 1 and 128 - * - * @param __PLLR1__: specifies the division factor for peripheral kernel clocks - * This parameter must be a number between 1 and 128 - * - * @note To insure an optimal behavior of the PLL when one of the post-divider (DIVP, DIVQ or DIVR) - * is not used, application shall clear the enable bit (DIVyEN) and assign lowest possible - * value to __PLL1P__, __PLL1Q__ or __PLL1R__ parameters. - * @retval None - * - * (*) : For stm32h7a3xx and stm32h7b3xx family lines. - * (**): For stm32h72xxx and stm32h73xxx family lines. - */ - - -#define __HAL_RCC_PLL_CONFIG(__RCC_PLLSOURCE__, __PLLM1__, __PLLN1__, __PLLP1__, __PLLQ1__,__PLLR1__ ) \ - do{ MODIFY_REG(RCC->PLLCKSELR, (RCC_PLLCKSELR_PLLSRC | RCC_PLLCKSELR_DIVM1) , ((__RCC_PLLSOURCE__) | ( (__PLLM1__) <<4U))); \ - WRITE_REG (RCC->PLL1DIVR , ( (((__PLLN1__) - 1U )& RCC_PLL1DIVR_N1) | ((((__PLLP1__) -1U ) << 9U) & RCC_PLL1DIVR_P1) | \ - ((((__PLLQ1__) -1U) << 16U)& RCC_PLL1DIVR_Q1) | ((((__PLLR1__) - 1U) << 24U)& RCC_PLL1DIVR_R1))); \ - } while(0) - - -/** @brief Macro to configure the PLLs clock source. - * @note This function must be used only when all PLLs are disabled. - * @param __PLLSOURCE__: specifies the PLLs entry clock source. - * This parameter can be one of the following values: - * @arg RCC_PLLSOURCE_CSI: CSI oscillator clock selected as PLL clock entry - * @arg RCC_PLLSOURCE_HSI: HSI oscillator clock selected as PLL clock entry - * @arg RCC_PLLSOURCE_HSE: HSE oscillator clock selected as PLL clock entry - * - */ -#define __HAL_RCC_PLL_PLLSOURCE_CONFIG(__PLLSOURCE__) MODIFY_REG(RCC->PLLCKSELR, RCC_PLLCKSELR_PLLSRC, (__PLLSOURCE__)) - - -/** - * @brief Macro to configures the main PLL clock Fractional Part Of The Multiplication Factor - * - * @note These bits can be written at any time, allowing dynamic fine-tuning of the PLL1 VCO - * - * @param __RCC_PLL1FRACN__: specifies Fractional Part Of The Multiplication Factor for PLL1 VCO - * It should be a value between 0 and 8191 - * @note Warning: The software has to set correctly these bits to insure that the VCO - * output frequency is between its valid frequency range, which is: - * 192 to 836 MHz or 128 to 560 MHz(*) if PLL1VCOSEL = 0 - * 150 to 420 MHz if PLL1VCOSEL = 1. - * - * (*) : For stm32h7a3xx and stm32h7b3xx family lines. - * - * @retval None - */ -#define __HAL_RCC_PLLFRACN_CONFIG(__RCC_PLL1FRACN__) MODIFY_REG(RCC->PLL1FRACR, RCC_PLL1FRACR_FRACN1, (uint32_t)(__RCC_PLL1FRACN__) << RCC_PLL1FRACR_FRACN1_Pos) - - -/** @brief Macro to select the PLL1 reference frequency range. - * @param __RCC_PLL1VCIRange__: specifies the PLL1 input frequency range - * This parameter can be one of the following values: - * @arg RCC_PLL1VCIRANGE_0: Range frequency is between 1 and 2 MHz - * @arg RCC_PLL1VCIRANGE_1: Range frequency is between 2 and 4 MHz - * @arg RCC_PLL1VCIRANGE_2: Range frequency is between 4 and 8 MHz - * @arg RCC_PLL1VCIRANGE_3: Range frequency is between 8 and 16 MHz - * @retval None - */ -#define __HAL_RCC_PLL_VCIRANGE(__RCC_PLL1VCIRange__) \ - MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLL1RGE, (__RCC_PLL1VCIRange__)) - - -/** @brief Macro to select the PLL1 reference frequency range. - * @param __RCC_PLL1VCORange__: specifies the PLL1 input frequency range - * This parameter can be one of the following values: - * @arg RCC_PLL1VCOWIDE: Range frequency is between 192 and 836 MHz or between 128 to 560 MHz(*) - * @arg RCC_PLL1VCOMEDIUM: Range frequency is between 150 and 420 MHz - * - * (*) : For stm32h7a3xx and stm32h7b3xx family lines. - * - * @retval None - */ -#define __HAL_RCC_PLL_VCORANGE(__RCC_PLL1VCORange__) \ - MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLL1VCOSEL, (__RCC_PLL1VCORange__)) - - - -/** @brief Macro to get the clock source used as system clock. - * @retval The clock source used as system clock. The returned value can be one - * of the following: - * - RCC_CFGR_SWS_CSI: CSI used as system clock. - * - RCC_CFGR_SWS_HSI: HSI used as system clock. - * - RCC_CFGR_SWS_HSE: HSE used as system clock. - * - RCC_CFGR_SWS_PLL: PLL used as system clock. - */ -#define __HAL_RCC_GET_SYSCLK_SOURCE() ((uint32_t)(RCC->CFGR & RCC_CFGR_SWS)) - - -/** - * @brief Macro to configure the system clock source. - * @param __RCC_SYSCLKSOURCE__: specifies the system clock source. - * This parameter can be one of the following values: - * - RCC_SYSCLKSOURCE_HSI: HSI oscillator is used as system clock source. - * - RCC_SYSCLKSOURCE_CSI: CSI oscillator is used as system clock source. - * - RCC_SYSCLKSOURCE_HSE: HSE oscillator is used as system clock source. - * - RCC_SYSCLKSOURCE_PLLCLK: PLL output is used as system clock source. - */ -#define __HAL_RCC_SYSCLK_CONFIG(__RCC_SYSCLKSOURCE__) MODIFY_REG(RCC->CFGR, RCC_CFGR_SW, (__RCC_SYSCLKSOURCE__)) - -/** @brief Macro to get the oscillator used as PLL clock source. - * @retval The oscillator used as PLL clock source. The returned value can be one - * of the following: - * - RCC_PLLSOURCE_NONE: No oscillator is used as PLL clock source. - * - RCC_PLLSOURCE_CSI: CSI oscillator is used as PLL clock source. - * - RCC_PLLSOURCE_HSI: HSI oscillator is used as PLL clock source. - * - RCC_PLLSOURCE_HSE: HSE oscillator is used as PLL clock source. - */ -#define __HAL_RCC_GET_PLL_OSCSOURCE() ((uint32_t)(RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC)) - -/** @defgroup RCCEx_MCOx_Clock_Config RCC Extended MCOx Clock Config - * @{ - */ - -/** @brief Macro to configure the MCO1 clock. - * @param __MCOCLKSOURCE__ specifies the MCO clock source. - * This parameter can be one of the following values: - * @arg RCC_MCO1SOURCE_HSI: HSI clock selected as MCO1 source - * @arg RCC_MCO1SOURCE_LSE: LSE clock selected as MCO1 source - * @arg RCC_MCO1SOURCE_HSE: HSE clock selected as MCO1 source - * @arg RCC_MCO1SOURCE_PLL1QCLK: PLL1Q clock selected as MCO1 source - * @arg RCC_MCO1SOURCE_HSI48: HSI48 (48MHZ) selected as MCO1 source - * @param __MCODIV__ specifies the MCO clock prescaler. - * This parameter can be one of the following values: - * @arg RCC_MCODIV_1 up to RCC_MCODIV_15 : divider applied to MCO1 clock - */ -#define __HAL_RCC_MCO1_CONFIG(__MCOCLKSOURCE__, __MCODIV__) \ - MODIFY_REG(RCC->CFGR, (RCC_CFGR_MCO1 | RCC_CFGR_MCO1PRE), ((__MCOCLKSOURCE__) | (__MCODIV__))) - -/** @brief Macro to configure the MCO2 clock. - * @param __MCOCLKSOURCE__ specifies the MCO clock source. - * This parameter can be one of the following values: - * @arg RCC_MCO2SOURCE_SYSCLK: System clock (SYSCLK) selected as MCO2 source - * @arg RCC_MCO2SOURCE_PLL2PCLK: PLL2P clock selected as MCO2 source - * @arg RCC_MCO2SOURCE_HSE: HSE clock selected as MCO2 source - * @arg RCC_MCO2SOURCE_PLLCLK: PLL1P clock selected as MCO2 source - * @arg RCC_MCO2SOURCE_CSICLK: CSI clock selected as MCO2 source - * @arg RCC_MCO2SOURCE_LSICLK: LSI clock selected as MCO2 source - * @param __MCODIV__ specifies the MCO clock prescaler. - * This parameter can be one of the following values: - * @arg RCC_MCODIV_1 up to RCC_MCODIV_15 : divider applied to MCO2 clock - */ -#define __HAL_RCC_MCO2_CONFIG(__MCOCLKSOURCE__, __MCODIV__) \ - MODIFY_REG(RCC->CFGR, (RCC_CFGR_MCO2 | RCC_CFGR_MCO2PRE), ((__MCOCLKSOURCE__) | ((__MCODIV__) << 7))); - -/** - * @} - */ - -/** - * @brief Macro to configure the External Low Speed oscillator (LSE) drive capability. - * @note As the LSE is in the Backup domain and write access is denied to - * this domain after reset, you have to enable write access using - * HAL_PWR_EnableBkUpAccess() function before to configure the LSE - * (to be done once after reset). - * @note On STM32H7 Rev.B and above devices this can't be updated while LSE is ON. - * @param __LSEDRIVE__: specifies the new state of the LSE drive capability. - * This parameter can be one of the following values: - * @arg RCC_LSEDRIVE_LOW: LSE oscillator low drive capability. - * @arg RCC_LSEDRIVE_MEDIUMLOW: LSE oscillator medium low drive capability. - * @arg RCC_LSEDRIVE_MEDIUMHIGH: LSE oscillator medium high drive capability. - * @arg RCC_LSEDRIVE_HIGH: LSE oscillator high drive capability. - * @retval None - */ -#if defined(RCC_VER_X) -#define __HAL_RCC_LSEDRIVE_CONFIG(__LSEDRIVE__) \ - do{ \ - if((HAL_GetREVID() <= REV_ID_Y) && (((__LSEDRIVE__) == RCC_LSEDRIVE_MEDIUMLOW) || ((__LSEDRIVE__) == RCC_LSEDRIVE_MEDIUMHIGH))) \ - { \ - MODIFY_REG(RCC->BDCR, RCC_BDCR_LSEDRV, (~(uint32_t)(__LSEDRIVE__)) & RCC_BDCR_LSEDRV_Msk); \ - } \ - else \ - { \ - MODIFY_REG(RCC->BDCR, RCC_BDCR_LSEDRV, (uint32_t)(__LSEDRIVE__)); \ - } \ - } while(0) -#else -#define __HAL_RCC_LSEDRIVE_CONFIG(__LSEDRIVE__) \ - MODIFY_REG(RCC->BDCR, RCC_BDCR_LSEDRV, (uint32_t)(__LSEDRIVE__)); -#endif /*RCC_VER_X*/ -/** - * @brief Macro to configure the wake up from stop clock. - * @param __RCC_STOPWUCLK__: specifies the clock source used after wake up from stop - * This parameter can be one of the following values: - * @arg RCC_STOP_WAKEUPCLOCK_CSI: CSI selected as system clock source - * @arg RCC_STOP_WAKEUPCLOCK_HSI: HSI selected as system clock source - * @retval None - */ -#define __HAL_RCC_WAKEUPSTOP_CLK_CONFIG(__RCC_STOPWUCLK__) \ - MODIFY_REG(RCC->CFGR, RCC_CFGR_STOPWUCK, (__RCC_STOPWUCLK__)) - -/** - * @brief Macro to configure the Kernel wake up from stop clock. - * @param __RCC_STOPKERWUCLK__: specifies the Kernel clock source used after wake up from stop - * This parameter can be one of the following values: - * @arg RCC_STOP_KERWAKEUPCLOCK_CSI: CSI selected as Kernel clock source - * @arg RCC_STOP_KERWAKEUPCLOCK_HSI: HSI selected as Kernel clock source - * @retval None - */ -#define __HAL_RCC_KERWAKEUPSTOP_CLK_CONFIG(__RCC_STOPKERWUCLK__) \ - MODIFY_REG(RCC->CFGR, RCC_CFGR_STOPKERWUCK, (__RCC_STOPKERWUCLK__)) - -/** @defgroup RCC_Flags_Interrupts_Management Flags Interrupts Management - * @brief macros to manage the specified RCC Flags and interrupts. - * @{ - */ -/** @brief Enable RCC interrupt. - * @param __INTERRUPT__: specifies the RCC interrupt sources to be enabled. - * This parameter can be any combination of the following values: - * @arg RCC_IT_LSIRDY: LSI ready interrupt - * @arg RCC_IT_LSERDY: LSE ready interrupt - * @arg RCC_IT_CSIRDY: HSI ready interrupt - * @arg RCC_IT_HSIRDY: HSI ready interrupt - * @arg RCC_IT_HSERDY: HSE ready interrupt - * @arg RCC_IT_HSI48RDY: HSI48 ready interrupt - * @arg RCC_IT_PLLRDY: main PLL ready interrupt - * @arg RCC_IT_PLL2RDY: PLL2 ready interrupt - * @arg RCC_IT_PLL3RDY: PLL3 ready interrupt - * @arg RCC_IT_LSECSS: Clock security system interrupt - */ -#define __HAL_RCC_ENABLE_IT(__INTERRUPT__) SET_BIT(RCC->CIER, (__INTERRUPT__)) - -/** @brief Disable RCC interrupt - * @param __INTERRUPT__: specifies the RCC interrupt sources to be disabled. - * This parameter can be any combination of the following values: - * @arg RCC_IT_LSIRDY: LSI ready interrupt - * @arg RCC_IT_LSERDY: LSE ready interrupt - * @arg RCC_IT_CSIRDY: HSI ready interrupt - * @arg RCC_IT_HSIRDY: HSI ready interrupt - * @arg RCC_IT_HSERDY: HSE ready interrupt - * @arg RCC_IT_HSI48RDY: HSI48 ready interrupt - * @arg RCC_IT_PLLRDY: main PLL ready interrupt - * @arg RCC_IT_PLL2RDY: PLL2 ready interrupt - * @arg RCC_IT_PLL3RDY: PLL3 ready interrupt - * @arg RCC_IT_LSECSS: Clock security system interrupt - */ -#define __HAL_RCC_DISABLE_IT(__INTERRUPT__) CLEAR_BIT(RCC->CIER, (__INTERRUPT__)) - -/** @brief Clear the RCC's interrupt pending bits - * @param __INTERRUPT__: specifies the interrupt pending bit to clear. - * This parameter can be any combination of the following values: - * @arg RCC_IT_LSIRDY: LSI ready interrupt - * @arg RCC_IT_LSERDY: LSE ready interrupt - * @arg RCC_IT_CSIRDY: CSI ready interrupt - * @arg RCC_IT_HSIRDY: HSI ready interrupt - * @arg RCC_IT_HSERDY: HSE ready interrupt - * @arg RCC_IT_HSI48RDY: HSI48 ready interrupt - * @arg RCC_IT_PLLRDY: main PLL ready interrupt - * @arg RCC_IT_PLL2RDY: PLL2 ready interrupt - * @arg RCC_IT_PLL3RDY: PLL3 ready interrupt - * @arg RCC_IT_HSECSS: HSE Clock Security interrupt - * @arg RCC_IT_LSECSS: Clock security system interrupt - */ -#define __HAL_RCC_CLEAR_IT(__INTERRUPT__) (RCC->CICR = (__INTERRUPT__)) - -/** @brief Check the RCC's interrupt has occurred or not. - * @param __INTERRUPT__: specifies the RCC interrupt source to check. - * This parameter can be any combination of the following values: - * @arg RCC_IT_LSIRDY: LSI ready interrupt - * @arg RCC_IT_LSERDY: LSE ready interrupt - * @arg RCC_IT_CSIRDY: CSI ready interrupt - * @arg RCC_IT_HSIRDY: HSI ready interrupt - * @arg RCC_IT_HSERDY: HSE ready interrupt - * @arg RCC_IT_HSI48RDY: HSI48 ready interrupt - * @arg RCC_IT_PLLRDY: main PLL ready interrupt - * @arg RCC_IT_PLL2RDY: PLL2 ready interrupt - * @arg RCC_IT_PLL3RDY: PLL3 ready interrupt - * @arg RCC_IT_HSECSS: HSE Clock Security interrupt - * @arg RCC_IT_LSECSS: Clock security system interrupt - * @retval The new state of __INTERRUPT__ (TRUE or FALSE). - */ -#define __HAL_RCC_GET_IT(__INTERRUPT__) ((RCC->CIFR & (__INTERRUPT__)) == (__INTERRUPT__)) - -/** @brief Set RMVF bit to clear the reset flags. - */ -#define __HAL_RCC_CLEAR_RESET_FLAGS() (RCC->RSR |= RCC_RSR_RMVF) - -#if defined(DUAL_CORE) -#define __HAL_RCC_C1_CLEAR_RESET_FLAGS() (RCC_C1->RSR |= RCC_RSR_RMVF) - -#define __HAL_RCC_C2_CLEAR_RESET_FLAGS() (RCC_C2->RSR |= RCC_RSR_RMVF) -#endif /*DUAL_CORE*/ - -#if defined(DUAL_CORE) -/** @brief Check RCC flag is set or not. - * @param __FLAG__: specifies the flag to check. - * This parameter can be one of the following values: - * @arg RCC_FLAG_HSIRDY: HSI oscillator clock ready - * @arg RCC_FLAG_HSIDIV: HSI divider flag - * @arg RCC_FLAG_CSIRDY: CSI oscillator clock ready - * @arg RCC_FLAG_HSI48RDY: HSI48 oscillator clock ready - * @arg RCC_FLAG_HSERDY: HSE oscillator clock ready - * @arg RCC_FLAG_D1CKRDY: Domain1 clock ready - * @arg RCC_FLAG_D2CKRDY: Domain2 clock ready - * @arg RCC_FLAG_PLLRDY: PLL1 clock ready - * @arg RCC_FLAG_PLL2RDY: PLL2 clock ready - * @arg RCC_FLAG_PLL3RDY: PLL3 clock ready - * @arg RCC_FLAG_LSERDY: LSE oscillator clock ready - * @arg RCC_FLAG_LSIRDY: LSI oscillator clock ready - * @arg RCC_FLAG_C1RST: CPU reset flag - * @arg RCC_FLAG_C2RST: CPU2 reset flag - * @arg RCC_FLAG_D1RST: D1 domain power switch reset flag - * @arg RCC_FLAG_D2RST: D2 domain power switch reset flag - * @arg RCC_FLAG_BORRST: BOR reset flag - * @arg RCC_FLAG_PINRST: Pin reset - * @arg RCC_FLAG_PORRST: POR/PDR reset - * @arg RCC_FLAG_SFTR1ST: System reset from CPU reset flag - * @arg RCC_FLAG_SFTR2ST: System reset from CPU2 reset flag - * @arg RCC_FLAG_BORRST: D2 domain power switch reset flag - * @arg RCC_FLAG_IWDG1RST: CPU Independent Watchdog reset - * @arg RCC_FLAG_IWDG2RST: CPU2 Independent Watchdog reset - * @arg RCC_FLAG_WWDG2RST: Window Watchdog2 reset - * @arg RCC_FLAG_WWDG1RST: Window Watchdog1 reset - * @arg RCC_FLAG_LPWR1RST: Reset due to illegal D1 DSTANDBY or CPU CSTOP flag - * @arg RCC_FLAG_LPWR2RST: Reset due to illegal D2 DSTANDBY or CPU2 CSTOP flag - * @retval The new state of __FLAG__ (TRUE or FALSE). - */ -#define RCC_FLAG_MASK ((uint8_t)0x1F) -#define __HAL_RCC_GET_FLAG(__FLAG__) (((((((__FLAG__) >> 5U) == 1U)? RCC->CR :((((__FLAG__) >> 5U) == 2U) ? RCC->BDCR : \ -((((__FLAG__) >> 5U) == 3U)? RCC->CSR : ((((__FLAG__) >> 5U) == 4U)? RCC->RSR :RCC->CIFR)))) & (1U << ((__FLAG__) & RCC_FLAG_MASK)))!= 0U)? 1U : 0U) - -#define __HAL_RCC_C1_GET_FLAG(__FLAG__) (((((((__FLAG__) >> 5U) == 1U)? RCC->CR :((((__FLAG__) >> 5U) == 2U) ? RCC->BDCR : \ -((((__FLAG__) >> 5U) == 3U)? RCC->CSR : ((((__FLAG__) >> 5U) == 4U)? RCC_C1->RSR :RCC->CIFR)))) & (1U << ((__FLAG__) & RCC_FLAG_MASK)))!= 0U)? 1U : 0U) - -#define __HAL_RCC_C2_GET_FLAG(__FLAG__) (((((((__FLAG__) >> 5U) == 1U)? RCC->CR :((((__FLAG__) >> 5U) == 2U) ? RCC->BDCR : \ -((((__FLAG__) >> 5U) == 3U)? RCC->CSR : ((((__FLAG__) >> 5U) == 4U)? RCC_C2->RSR :RCC->CIFR)))) & (1U << ((__FLAG__) & RCC_FLAG_MASK)))!= 0U)? 1U : 0U) - -#else - -/** @brief Check RCC flag is set or not. - * @param __FLAG__: specifies the flag to check. - * This parameter can be one of the following values: - * @arg RCC_FLAG_HSIRDY: HSI oscillator clock ready - * @arg RCC_FLAG_HSIDIV: HSI divider flag - * @arg RCC_FLAG_CSIRDY: CSI oscillator clock ready - * @arg RCC_FLAG_HSI48RDY: HSI48 oscillator clock ready - * @arg RCC_FLAG_HSERDY: HSE oscillator clock ready - * @arg RCC_FLAG_D1CKRDY: Domain1 clock ready (*) - * @arg RCC_FLAG_D2CKRDY: Domain2 clock ready (*) - * @arg RCC_FLAG_CPUCKRDY: CPU Domain clock ready (CPU, APB3, bus matrix1 and related memories) (*) - * @arg RCC_FLAG_CDCKRDY: CPU Domain clock ready (*) - * @arg RCC_FLAG_PLLRDY: PLL1 clock ready - * @arg RCC_FLAG_PLL2RDY: PLL2 clock ready - * @arg RCC_FLAG_PLL3RDY: PLL3 clock ready - * @arg RCC_FLAG_LSERDY: LSE oscillator clock ready - * @arg RCC_FLAG_LSIRDY: LSI oscillator clock ready - * @arg RCC_FLAG_CPURST: CPU reset flag - * @arg RCC_FLAG_D1RST: D1 domain power switch reset flag (*) - * @arg RCC_FLAG_D2RST: D2 domain power switch reset flag (*) - * @arg RCC_FLAG_CDRST: CD domain power switch reset flag (*) - * @arg RCC_FLAG_BORRST: BOR reset flag - * @arg RCC_FLAG_PINRST: Pin reset - * @arg RCC_FLAG_PORRST: POR/PDR reset - * @arg RCC_FLAG_SFTRST: System reset from CPU reset flag - * @arg RCC_FLAG_BORRST: D2 domain power switch reset flag - * @arg RCC_FLAG_IWDG1RST: CPU Independent Watchdog reset - * @arg RCC_FLAG_WWDG1RST: Window Watchdog1 reset - * @arg RCC_FLAG_LPWR1RST: Reset due to illegal D1 DSTANDBY or CPU CSTOP flag - * @arg RCC_FLAG_LPWR2RST: Reset due to illegal D2 DSTANDBY flag - * @retval The new state of __FLAG__ (TRUE or FALSE). - * - * (*) Available on some STM32H7 lines only. - */ -#define RCC_FLAG_MASK ((uint8_t)0x1F) -#define __HAL_RCC_GET_FLAG(__FLAG__) (((((((__FLAG__) >> 5U) == 1U)? RCC->CR :((((__FLAG__) >> 5U) == 2U) ? RCC->BDCR : \ -((((__FLAG__) >> 5U) == 3U)? RCC->CSR : ((((__FLAG__) >> 5U) == 4U)? RCC->RSR :RCC->CIFR)))) & (1UL << ((__FLAG__) & RCC_FLAG_MASK)))!= 0U)? 1U : 0U) -#endif /*DUAL_CORE*/ - -/** - * @} - */ - -#define RCC_GET_PLL_OSCSOURCE() ((RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC) >> RCC_PLLCKSELR_PLLSRC_Pos) - -/** - * @} - */ - -/* Include RCC HAL Extension module */ -#include "stm32h7xx_hal_rcc_ex.h" - -/* Exported functions --------------------------------------------------------*/ -/** @addtogroup RCC_Exported_Functions - * @{ - */ - -/** @addtogroup RCC_Exported_Functions_Group1 - * @{ - */ -/* Initialization and de-initialization functions ******************************/ -HAL_StatusTypeDef HAL_RCC_DeInit(void); -HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct); -HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency); - -/** - * @} - */ - -/** @addtogroup RCC_Exported_Functions_Group2 - * @{ - */ -/* Peripheral Control functions ************************************************/ -void HAL_RCC_MCOConfig(uint32_t RCC_MCOx, uint32_t RCC_MCOSource, uint32_t RCC_MCODiv); -void HAL_RCC_EnableCSS(void); -void HAL_RCC_DisableCSS(void); -uint32_t HAL_RCC_GetSysClockFreq(void); -uint32_t HAL_RCC_GetHCLKFreq(void); -uint32_t HAL_RCC_GetPCLK1Freq(void); -uint32_t HAL_RCC_GetPCLK2Freq(void); -void HAL_RCC_GetOscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct); -void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency); -/* CSS NMI IRQ handler */ -void HAL_RCC_NMI_IRQHandler(void); -/* User Callbacks in non blocking mode (IT mode) */ -void HAL_RCC_CSSCallback(void); - -/** - * @} - */ - -/** - * @} - */ - -/* Private types -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private constants ---------------------------------------------------------*/ -/** @defgroup RCC_Private_Constants RCC Private Constants - * @{ - */ - -#define HSE_TIMEOUT_VALUE HSE_STARTUP_TIMEOUT -#define HSI_TIMEOUT_VALUE (2U) /* 2 ms */ -#define HSI48_TIMEOUT_VALUE (2U) /* 2 ms */ -#define CSI_TIMEOUT_VALUE (2U) /* 2 ms */ -#define LSI_TIMEOUT_VALUE (2U) /* 2 ms */ -#define PLL_TIMEOUT_VALUE (2U) /* 2 ms */ -#define PLL_FRAC_TIMEOUT_VALUE (1U) /* PLL Fractional part waiting time before new latch enable : 1 ms */ -#define CLOCKSWITCH_TIMEOUT_VALUE (5000U) /* 5 s */ -#define RCC_DBP_TIMEOUT_VALUE (100U) -#define RCC_LSE_TIMEOUT_VALUE LSE_STARTUP_TIMEOUT - -/** - * @} - */ - -/* Private macros ------------------------------------------------------------*/ -/** @addtogroup RCC_Private_Macros RCC Private Macros - * @{ - */ - -/** @defgroup RCC_IS_RCC_Definitions RCC Private macros to check input parameters - * @{ - */ - -#define IS_RCC_OSCILLATORTYPE(OSCILLATOR) (((OSCILLATOR) == RCC_OSCILLATORTYPE_NONE) || \ - (((OSCILLATOR) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) || \ - (((OSCILLATOR) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) || \ - (((OSCILLATOR) & RCC_OSCILLATORTYPE_CSI) == RCC_OSCILLATORTYPE_CSI) || \ - (((OSCILLATOR) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI) || \ - (((OSCILLATOR) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE) || \ - (((OSCILLATOR) & RCC_OSCILLATORTYPE_HSI48) == RCC_OSCILLATORTYPE_HSI48)) - -#if defined(RCC_CR_HSEEXT) -#define IS_RCC_HSE(HSE) (((HSE) == RCC_HSE_OFF) || ((HSE) == RCC_HSE_ON) || \ - ((HSE) == RCC_HSE_BYPASS) || ((HSE) == RCC_HSE_BYPASS_DIGITAL)) -#else -#define IS_RCC_HSE(HSE) (((HSE) == RCC_HSE_OFF) || ((HSE) == RCC_HSE_ON) || \ - ((HSE) == RCC_HSE_BYPASS)) -#endif /* RCC_CR_HSEEXT */ - -#if defined(RCC_BDCR_LSEEXT) -#define IS_RCC_LSE(LSE) (((LSE) == RCC_LSE_OFF) || ((LSE) == RCC_LSE_ON) || \ - ((LSE) == RCC_LSE_BYPASS) || ((LSE) == RCC_LSE_BYPASS_DIGITAL)) -#else -#define IS_RCC_LSE(LSE) (((LSE) == RCC_LSE_OFF) || ((LSE) == RCC_LSE_ON) || \ - ((LSE) == RCC_LSE_BYPASS)) -#endif /* RCC_BDCR_LSEEXT */ - -#define IS_RCC_HSI(HSI) (((HSI) == RCC_HSI_OFF) || ((HSI) == RCC_HSI_ON) || \ - ((HSI) == RCC_HSI_DIV1) || ((HSI) == RCC_HSI_DIV2) || \ - ((HSI) == RCC_HSI_DIV4) || ((HSI) == RCC_HSI_DIV8)) - -#define IS_RCC_HSI48(HSI48) (((HSI48) == RCC_HSI48_OFF) || ((HSI48) == RCC_HSI48_ON)) - -#define IS_RCC_LSI(LSI) (((LSI) == RCC_LSI_OFF) || ((LSI) == RCC_LSI_ON)) - -#define IS_RCC_CSI(CSI) (((CSI) == RCC_CSI_OFF) || ((CSI) == RCC_CSI_ON)) - -#define IS_RCC_PLL(PLL) (((PLL) == RCC_PLL_NONE) ||((PLL) == RCC_PLL_OFF) || \ - ((PLL) == RCC_PLL_ON)) - -#define IS_RCC_PLLSOURCE(SOURCE) (((SOURCE) == RCC_PLLSOURCE_CSI) || \ - ((SOURCE) == RCC_PLLSOURCE_HSI) || \ - ((SOURCE) == RCC_PLLSOURCE_NONE) || \ - ((SOURCE) == RCC_PLLSOURCE_HSE)) - -#define IS_RCC_PLLRGE_VALUE(VALUE) (((VALUE) == RCC_PLL1VCIRANGE_0) || \ - ((VALUE) == RCC_PLL1VCIRANGE_1) || \ - ((VALUE) == RCC_PLL1VCIRANGE_2) || \ - ((VALUE) == RCC_PLL1VCIRANGE_3)) - -#define IS_RCC_PLLVCO_VALUE(VALUE) (((VALUE) == RCC_PLL1VCOWIDE) || ((VALUE) == RCC_PLL1VCOMEDIUM)) - -#define IS_RCC_PLLFRACN_VALUE(VALUE) ((VALUE) <= 8191U) - -#define IS_RCC_PLLM_VALUE(VALUE) ((1U <= (VALUE)) && ((VALUE) <= 63U)) -#if !defined(RCC_VER_2_0) -#define IS_RCC_PLLN_VALUE(VALUE) ((4U <= (VALUE)) && ((VALUE) <= 512U)) -#else -#define IS_RCC_PLLN_VALUE(VALUE) ((8U <= (VALUE)) && ((VALUE) <= 420U)) -#endif /* !RCC_VER_2_0 */ -#define IS_RCC_PLLP_VALUE(VALUE) ((1U <= (VALUE)) && ((VALUE) <= 128U)) -#define IS_RCC_PLLQ_VALUE(VALUE) ((1U <= (VALUE)) && ((VALUE) <= 128U)) -#define IS_RCC_PLLR_VALUE(VALUE) ((1U <= (VALUE)) && ((VALUE) <= 128U)) - -#define IS_RCC_PLLCLOCKOUT_VALUE(VALUE) (((VALUE) == RCC_PLL1_DIVP) || \ - ((VALUE) == RCC_PLL1_DIVQ) || \ - ((VALUE) == RCC_PLL1_DIVR)) - -#define IS_RCC_CLOCKTYPE(CLK) ((1U <= (CLK)) && ((CLK) <= 0x3FU)) - -#define IS_RCC_SYSCLKSOURCE(SOURCE) (((SOURCE) == RCC_SYSCLKSOURCE_CSI) || \ - ((SOURCE) == RCC_SYSCLKSOURCE_HSI) || \ - ((SOURCE) == RCC_SYSCLKSOURCE_HSE) || \ - ((SOURCE) == RCC_SYSCLKSOURCE_PLLCLK)) - -#define IS_RCC_SYSCLK(SYSCLK) (((SYSCLK) == RCC_SYSCLK_DIV1) || ((SYSCLK) == RCC_SYSCLK_DIV2) || \ - ((SYSCLK) == RCC_SYSCLK_DIV4) || ((SYSCLK) == RCC_SYSCLK_DIV8) || \ - ((SYSCLK) == RCC_SYSCLK_DIV16) || ((SYSCLK) == RCC_SYSCLK_DIV64) || \ - ((SYSCLK) == RCC_SYSCLK_DIV128) || ((SYSCLK) == RCC_SYSCLK_DIV256) || \ - ((SYSCLK) == RCC_SYSCLK_DIV512)) - - -#define IS_RCC_HCLK(HCLK) (((HCLK) == RCC_HCLK_DIV1) || ((HCLK) == RCC_HCLK_DIV2) || \ - ((HCLK) == RCC_HCLK_DIV4) || ((HCLK) == RCC_HCLK_DIV8) || \ - ((HCLK) == RCC_HCLK_DIV16) || ((HCLK) == RCC_HCLK_DIV64) || \ - ((HCLK) == RCC_HCLK_DIV128) || ((HCLK) == RCC_HCLK_DIV256) || \ - ((HCLK) == RCC_HCLK_DIV512)) - -#define IS_RCC_CDPCLK1(CDPCLK1) (((CDPCLK1) == RCC_APB3_DIV1) || ((CDPCLK1) == RCC_APB3_DIV2) || \ - ((CDPCLK1) == RCC_APB3_DIV4) || ((CDPCLK1) == RCC_APB3_DIV8) || \ - ((CDPCLK1) == RCC_APB3_DIV16)) - -#define IS_RCC_D1PCLK1 IS_RCC_CDPCLK1 /* for legacy compatibility between H7 lines */ - -#define IS_RCC_PCLK1(PCLK1) (((PCLK1) == RCC_APB1_DIV1) || ((PCLK1) == RCC_APB1_DIV2) || \ - ((PCLK1) == RCC_APB1_DIV4) || ((PCLK1) == RCC_APB1_DIV8) || \ - ((PCLK1) == RCC_APB1_DIV16)) - -#define IS_RCC_PCLK2(PCLK2) (((PCLK2) == RCC_APB2_DIV1) || ((PCLK2) == RCC_APB2_DIV2) || \ - ((PCLK2) == RCC_APB2_DIV4) || ((PCLK2) == RCC_APB2_DIV8) || \ - ((PCLK2) == RCC_APB2_DIV16)) - -#define IS_RCC_SRDPCLK1(SRDPCLK1) (((SRDPCLK1) == RCC_APB4_DIV1) || ((SRDPCLK1) == RCC_APB4_DIV2) || \ - ((SRDPCLK1) == RCC_APB4_DIV4) || ((SRDPCLK1) == RCC_APB4_DIV8) || \ - ((SRDPCLK1) == RCC_APB4_DIV16)) - -#define IS_RCC_D3PCLK1 IS_RCC_SRDPCLK1 /* for legacy compatibility between H7 lines*/ - -#define IS_RCC_RTCCLKSOURCE(SOURCE) (((SOURCE) == RCC_RTCCLKSOURCE_LSE) || ((SOURCE) == RCC_RTCCLKSOURCE_LSI) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV2) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV3) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV4) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV5) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV6) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV7) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV8) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV9) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV10) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV11) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV12) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV13) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV14) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV15) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV16) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV17) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV18) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV19) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV20) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV21) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV22) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV23) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV24) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV25) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV26) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV27) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV28) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV29) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV30) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV31) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV32) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV33) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV34) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV35) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV36) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV37) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV38) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV39) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV40) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV41) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV42) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV43) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV44) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV45) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV46) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV47) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV48) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV49) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV50) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV51) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV52) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV53) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV54) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV55) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV56) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV57) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV58) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV59) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV60) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV61) || \ - ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV62) || ((SOURCE) == RCC_RTCCLKSOURCE_HSE_DIV63)) - -#define IS_RCC_MCO(MCOx) (((MCOx) == RCC_MCO1) || ((MCOx) == RCC_MCO2)) - -#define IS_RCC_MCO1SOURCE(SOURCE) (((SOURCE) == RCC_MCO1SOURCE_HSI) || ((SOURCE) == RCC_MCO1SOURCE_LSE) || \ - ((SOURCE) == RCC_MCO1SOURCE_HSE) || ((SOURCE) == RCC_MCO1SOURCE_PLL1QCLK) || \ - ((SOURCE) == RCC_MCO1SOURCE_HSI48)) - -#define IS_RCC_MCO2SOURCE(SOURCE) (((SOURCE) == RCC_MCO2SOURCE_SYSCLK) || ((SOURCE) == RCC_MCO2SOURCE_PLL2PCLK) || \ - ((SOURCE) == RCC_MCO2SOURCE_HSE) || ((SOURCE) == RCC_MCO2SOURCE_PLLCLK) || \ - ((SOURCE) == RCC_MCO2SOURCE_CSICLK) || ((SOURCE) == RCC_MCO2SOURCE_LSICLK)) - -#define IS_RCC_MCODIV(DIV) (((DIV) == RCC_MCODIV_1) || ((DIV) == RCC_MCODIV_2) || \ - ((DIV) == RCC_MCODIV_3) || ((DIV) == RCC_MCODIV_4) || \ - ((DIV) == RCC_MCODIV_5) || ((DIV) == RCC_MCODIV_6) || \ - ((DIV) == RCC_MCODIV_7) || ((DIV) == RCC_MCODIV_8) || \ - ((DIV) == RCC_MCODIV_9) || ((DIV) == RCC_MCODIV_10) || \ - ((DIV) == RCC_MCODIV_11) || ((DIV) == RCC_MCODIV_12) || \ - ((DIV) == RCC_MCODIV_13) || ((DIV) == RCC_MCODIV_14) || \ - ((DIV) == RCC_MCODIV_15)) - -#if defined(DUAL_CORE) -#define IS_RCC_FLAG(FLAG) (((FLAG) == RCC_FLAG_HSIRDY) || ((FLAG) == RCC_FLAG_CSIRDY) || \ - ((FLAG) == RCC_FLAG_HSI48RDY) || ((FLAG) == RCC_FLAG_HSERDY) || \ - ((FLAG) == RCC_FLAG_D1CKRDY) || ((FLAG) == RCC_FLAG_D2CKRDY) || \ - ((FLAG) == RCC_FLAG_PLLRDY) || ((FLAG) == RCC_FLAG_PLL2RDY) || \ - ((FLAG) == RCC_FLAG_PLL3RDY) || ((FLAG) == RCC_FLAG_LSERDY) || \ - ((FLAG) == RCC_FLAG_LSIRDY) || \ - ((FLAG) == RCC_FLAG_C1RST) || ((FLAG) == RCC_FLAG_C2RST) || \ - ((FLAG) == RCC_FLAG_SFTR2ST) || ((FLAG) == RCC_FLAG_WWDG2RST)|| \ - ((FLAG) == RCC_FLAG_IWDG2RST) || ((FLAG) == RCC_FLAG_D1RST) || \ - ((FLAG) == RCC_FLAG_D2RST) || ((FLAG) == RCC_FLAG_BORRST) || \ - ((FLAG) == RCC_FLAG_PINRST) || ((FLAG) == RCC_FLAG_PORRST) || \ - ((FLAG) == RCC_FLAG_SFTR1ST) || ((FLAG) == RCC_FLAG_IWDG1RST)|| \ - ((FLAG) == RCC_FLAG_WWDG1RST) || ((FLAG) == RCC_FLAG_LPWR1RST)|| \ - ((FLAG) == RCC_FLAG_LPWR2RST) || ((FLAG) == RCC_FLAG_HSIDIV)) - -#else - -#if defined(RCC_CR_D2CKRDY) -#define IS_RCC_FLAG(FLAG) (((FLAG) == RCC_FLAG_HSIRDY) || ((FLAG) == RCC_FLAG_CSIRDY) || \ - ((FLAG) == RCC_FLAG_HSI48RDY) || ((FLAG) == RCC_FLAG_HSERDY) || \ - ((FLAG) == RCC_FLAG_D1CKRDY) || ((FLAG) == RCC_FLAG_D2CKRDY) || \ - ((FLAG) == RCC_FLAG_PLLRDY) || ((FLAG) == RCC_FLAG_PLL2RDY) || \ - ((FLAG) == RCC_FLAG_PLL3RDY) || ((FLAG) == RCC_FLAG_LSERDY) || \ - ((FLAG) == RCC_FLAG_LSIRDY) || \ - ((FLAG) == RCC_FLAG_CPURST) || ((FLAG) == RCC_FLAG_D1RST) || \ - ((FLAG) == RCC_FLAG_D2RST) || ((FLAG) == RCC_FLAG_BORRST) || \ - ((FLAG) == RCC_FLAG_PINRST) || ((FLAG) == RCC_FLAG_PORRST) || \ - ((FLAG) == RCC_FLAG_SFTRST) || ((FLAG) == RCC_FLAG_IWDG1RST)|| \ - ((FLAG) == RCC_FLAG_WWDG1RST) || ((FLAG) == RCC_FLAG_LPWR1RST)|| \ - ((FLAG) == RCC_FLAG_LPWR2RST) || ((FLAG) == RCC_FLAG_HSIDIV )) -#else -#define IS_RCC_FLAG(FLAG) (((FLAG) == RCC_FLAG_HSIRDY) || ((FLAG) == RCC_FLAG_CSIRDY) || \ - ((FLAG) == RCC_FLAG_HSI48RDY) || ((FLAG) == RCC_FLAG_HSERDY) || \ - ((FLAG) == RCC_FLAG_CPUCKRDY) || ((FLAG) == RCC_FLAG_CDCKRDY) || \ - ((FLAG) == RCC_FLAG_PLLRDY) || ((FLAG) == RCC_FLAG_PLL2RDY) || \ - ((FLAG) == RCC_FLAG_PLL3RDY) || ((FLAG) == RCC_FLAG_LSERDY) || \ - ((FLAG) == RCC_FLAG_LSIRDY) || \ - ((FLAG) == RCC_FLAG_CDRST) || ((FLAG) == RCC_FLAG_BORRST) || \ - ((FLAG) == RCC_FLAG_PINRST) || ((FLAG) == RCC_FLAG_PORRST) || \ - ((FLAG) == RCC_FLAG_SFTRST) || ((FLAG) == RCC_FLAG_IWDG1RST)|| \ - ((FLAG) == RCC_FLAG_WWDG1RST) || ((FLAG) == RCC_FLAG_LPWR1RST)|| \ - ((FLAG) == RCC_FLAG_LPWR2RST) || ((FLAG) == RCC_FLAG_HSIDIV )) -#endif /* RCC_CR_D2CKRDY */ - -#endif /*DUAL_CORE*/ - -#define IS_RCC_HSICALIBRATION_VALUE(VALUE) ((VALUE) <= 0x7FU) -#define IS_RCC_CSICALIBRATION_VALUE(VALUE) ((VALUE) <= 0x3FU) - -#define IS_RCC_STOP_WAKEUPCLOCK(SOURCE) (((SOURCE) == RCC_STOP_WAKEUPCLOCK_CSI) || \ - ((SOURCE) == RCC_STOP_WAKEUPCLOCK_HSI)) - -#define IS_RCC_STOP_KERWAKEUPCLOCK(SOURCE) (((SOURCE) == RCC_STOP_KERWAKEUPCLOCK_CSI) || \ - ((SOURCE) == RCC_STOP_KERWAKEUPCLOCK_HSI)) -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_HAL_RCC_H */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h deleted file mode 100644 index 2fb1fd2..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h +++ /dev/null @@ -1,4482 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_rcc_ex.h - * @author MCD Application Team - * @brief Header file of RCC HAL Extension module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file in - * the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_HAL_RCC_EX_H -#define STM32H7xx_HAL_RCC_EX_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal_def.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @addtogroup RCCEx - * @{ - */ - -/* Exported types ------------------------------------------------------------*/ -/** @defgroup RCCEx_Exported_Types RCCEx Exported Types - * @{ - */ - -/** - * @brief PLL2 Clock structure definition - */ -typedef struct -{ - - uint32_t PLL2M; /*!< PLL2M: Division factor for PLL2 VCO input clock. - This parameter must be a number between Min_Data = 1 and Max_Data = 63 */ - - uint32_t PLL2N; /*!< PLL2N: Multiplication factor for PLL2 VCO output clock. - This parameter must be a number between Min_Data = 4 and Max_Data = 512 - or between Min_Data = 8 and Max_Data = 420(*) - (*) : For stm32h7a3xx and stm32h7b3xx family lines. */ - - uint32_t PLL2P; /*!< PLL2P: Division factor for system clock. - This parameter must be a number between Min_Data = 2 and Max_Data = 128 - odd division factors are not allowed */ - - uint32_t PLL2Q; /*!< PLL2Q: Division factor for peripheral clocks. - This parameter must be a number between Min_Data = 1 and Max_Data = 128 */ - - uint32_t PLL2R; /*!< PLL2R: Division factor for peripheral clocks. - This parameter must be a number between Min_Data = 1 and Max_Data = 128 */ - uint32_t PLL2RGE; /*!CR, RCC_CR_PLL2ON) -#define __HAL_RCC_PLL2_DISABLE() CLEAR_BIT(RCC->CR, RCC_CR_PLL2ON) - -/** - * @brief Enables or disables each clock output (PLL2_P_CLK, PLL2_Q_CLK, PLL2_R_CLK) - * @note Enabling/disabling those Clocks can be done only when the PLL2 is disabled, - * This is mainly used to save Power. - * @param __RCC_PLL2ClockOut__ Specifies the PLL2 clock to be outputted - * This parameter can be one of the following values: - * @arg RCC_PLL2_DIVP: This clock is used to generate peripherals clock up to 550MHZ(*), 480MHZ(**) or 280MHZ(***) - * @arg RCC_PLL2_DIVQ: This clock is used to generate peripherals clock up to 550MHZ(*), 480MHZ(**) or 280MHZ(***) - * @arg RCC_PLL2_DIVR: This clock is used to generate peripherals clock up to 550MHZ(*), 480MHZ(**) or 280MHZ(***) - * - * (*) : For stm32h72xxx and stm32h73xxx family lines and requires to enable the CPU_FREQ_BOOST flash option byte, 520MHZ otherwise. - * (**) : For stm32h74xx and stm32h75xx family lines and requires the board to be connected on LDO regulator not SMPS, 400MHZ otherwise. - * (***): For stm32h7a3xx, stm32h7b3xx and stm32h7b0xx family lines. - * - * @retval None - */ -#define __HAL_RCC_PLL2CLKOUT_ENABLE(__RCC_PLL2ClockOut__) SET_BIT(RCC->PLLCFGR, (__RCC_PLL2ClockOut__)) - -#define __HAL_RCC_PLL2CLKOUT_DISABLE(__RCC_PLL2ClockOut__) CLEAR_BIT(RCC->PLLCFGR, (__RCC_PLL2ClockOut__)) - -/** - * @brief Enables or disables Fractional Part Of The Multiplication Factor of PLL2 VCO - * @note Enabling/disabling Fractional Part can be any time without the need to stop the PLL2 - * @retval None - */ -#define __HAL_RCC_PLL2FRACN_ENABLE() SET_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLL2FRACEN) - -#define __HAL_RCC_PLL2FRACN_DISABLE() CLEAR_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLL2FRACEN) - -/** - * @brief Macro to configures the PLL2 multiplication and division factors. - * @note This function must be used only when PLL2 is disabled. - * - * @param __PLL2M__ specifies the division factor for PLL2 VCO input clock - * This parameter must be a number between 1 and 63. - * @note You have to set the PLLM parameter correctly to ensure that the VCO input - * frequency ranges from 1 to 16 MHz. - * - * @param __PLL2N__ specifies the multiplication factor for PLL2 VCO output clock - * This parameter must be a number between 4 and 512 or between 8 and 420(*). - * @note You have to set the PLL2N parameter correctly to ensure that the VCO - * output frequency is between 150 and 420 MHz (when in medium VCO range) or - * between 192 and 836 MHZ or between 128 and 560 MHZ(*) (when in wide VCO range) - * - * @param __PLL2P__ specifies the division factor for peripheral kernel clocks - * This parameter must be a number between 1 and 128. - * - * @param __PLL2Q__ specifies the division factor for peripheral kernel clocks - * This parameter must be a number between 1 and 128. - * - * @param __PLL2R__ specifies the division factor for peripheral kernel clocks - * This parameter must be a number between 1 and 128. - * - * @note To insure an optimal behavior of the PLL when one of the post-divider (DIVP, DIVQ or DIVR) - * is not used, application shall clear the enable bit (DIVyEN) and assign lowest possible - * value to __PLL2P__, __PLL2Q__ or __PLL2R__ parameters. - * @retval None - * - * (*) : For stm32h7a3xx and stm32h7b3xx family lines. - */ - -#define __HAL_RCC_PLL2_CONFIG(__PLL2M__, __PLL2N__, __PLL2P__, __PLL2Q__,__PLL2R__ ) \ - do{ \ - MODIFY_REG(RCC->PLLCKSELR, ( RCC_PLLCKSELR_DIVM2) , ( (__PLL2M__) <<12U)); \ - WRITE_REG (RCC->PLL2DIVR , ( (((__PLL2N__) - 1U ) & RCC_PLL2DIVR_N2) | ((((__PLL2P__) -1U ) << 9U) & RCC_PLL2DIVR_P2) | \ - ((((__PLL2Q__) -1U) << 16U) & RCC_PLL2DIVR_Q2) | ((((__PLL2R__)- 1U) << 24U) & RCC_PLL2DIVR_R2))); \ - } while(0) - -/** - * @brief Macro to configures PLL2 clock Fractional Part Of The Multiplication Factor - * - * @note These bits can be written at any time, allowing dynamic fine-tuning of the PLL2 VCO - * - * @param __RCC_PLL2FRACN__ Specifies Fractional Part Of The Multiplication factor for PLL2 VCO - * It should be a value between 0 and 8191 - * @note Warning: the software has to set correctly these bits to insure that the VCO - * output frequency is between its valid frequency range, which is: - * 192 to 836 MHz or 128 to 560 MHz(*) if PLL2VCOSEL = 0 - * 150 to 420 MHz if PLL2VCOSEL = 1. - * - * (*) : For stm32h7a3xx and stm32h7b3xx family lines. - * - * @retval None - */ -#define __HAL_RCC_PLL2FRACN_CONFIG(__RCC_PLL2FRACN__) \ - MODIFY_REG(RCC->PLL2FRACR, RCC_PLL2FRACR_FRACN2,((uint32_t)(__RCC_PLL2FRACN__) << RCC_PLL2FRACR_FRACN2_Pos)) - -/** @brief Macro to select the PLL2 reference frequency range. - * @param __RCC_PLL2VCIRange__ specifies the PLL2 input frequency range - * This parameter can be one of the following values: - * @arg RCC_PLL2VCIRANGE_0: Range frequency is between 1 and 2 MHz - * @arg RCC_PLL2VCIRANGE_1: Range frequency is between 2 and 4 MHz - * @arg RCC_PLL2VCIRANGE_2: Range frequency is between 4 and 8 MHz - * @arg RCC_PLL2VCIRANGE_3: Range frequency is between 8 and 16 MHz - * @retval None - */ -#define __HAL_RCC_PLL2_VCIRANGE(__RCC_PLL2VCIRange__) \ - MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLL2RGE, (__RCC_PLL2VCIRange__)) - - -/** @brief Macro to select the PLL2 reference frequency range. - * @param __RCC_PLL2VCORange__ Specifies the PLL2 input frequency range - * This parameter can be one of the following values: - * @arg RCC_PLL2VCOWIDE: Range frequency is between 192 and 836 MHz or between 128 to 560 MHz(*) - * @arg RCC_PLL2VCOMEDIUM: Range frequency is between 150 and 420 MHz - * - * (*) : For stm32h7a3xx and stm32h7b3xx family lines. - * - * @retval None - */ -#define __HAL_RCC_PLL2_VCORANGE(__RCC_PLL2VCORange__) \ - MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLL2VCOSEL, (__RCC_PLL2VCORange__)) - -/** @brief Macros to enable or disable the main PLL3. - * @note After enabling PLL3, the application software should wait on - * PLL3RDY flag to be set indicating that PLL3 clock is stable and can - * be used as kernel clock source. - * @note PLL3 is disabled by hardware when entering STOP and STANDBY modes. - */ -#define __HAL_RCC_PLL3_ENABLE() SET_BIT(RCC->CR, RCC_CR_PLL3ON) -#define __HAL_RCC_PLL3_DISABLE() CLEAR_BIT(RCC->CR, RCC_CR_PLL3ON) - -/** - * @brief Enables or disables Fractional Part Of The Multiplication Factor of PLL3 VCO - * @note Enabling/disabling Fractional Part can be any time without the need to stop the PLL3 - * @retval None - */ -#define __HAL_RCC_PLL3FRACN_ENABLE() SET_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLL3FRACEN) - -#define __HAL_RCC_PLL3FRACN_DISABLE() CLEAR_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLL3FRACEN) - -/** - * @brief Enables or disables each clock output (PLL3_P_CLK, PLL3_Q_CLK, PLL3_R_CLK) - * @note Enabling/disabling those Clocks can be done only when the PLL3 is disabled, - * This is mainly used to save Power. - * @param __RCC_PLL3ClockOut__ specifies the PLL3 clock to be outputted - * This parameter can be one of the following values: - * @arg RCC_PLL3_DIVP: This clock is used to generate peripherals clock up to 550MHZ(*), 480MHZ(**) or 280MHZ(***) - * @arg RCC_PLL3_DIVQ: This clock is used to generate peripherals clock up to 550MHZ(*), 480MHZ(**) or 280MHZ(***) - * @arg RCC_PLL3_DIVR: This clock is used to generate peripherals clock up to 550MHZ(*), 480MHZ(**) or 280MHZ(***) - * - * (*) : For stm32h72xxx and stm32h73xxx family lines and requires to enable the CPU_FREQ_BOOST flash option byte, 520MHZ otherwise. - * (**) : For stm32h74xx and stm32h75xx family lines and requires the board to be connected on LDO regulator not SMPS, 400MHZ otherwise. - * (***): For stm32h7a3xx, stm32h7b3xx and stm32h7b0xx family lines. - * - * @retval None - */ -#define __HAL_RCC_PLL3CLKOUT_ENABLE(__RCC_PLL3ClockOut__) SET_BIT(RCC->PLLCFGR, (__RCC_PLL3ClockOut__)) - -#define __HAL_RCC_PLL3CLKOUT_DISABLE(__RCC_PLL3ClockOut__) CLEAR_BIT(RCC->PLLCFGR, (__RCC_PLL3ClockOut__)) - -/** - * @brief Macro to configures the PLL3 multiplication and division factors. - * @note This function must be used only when PLL3 is disabled. - * - * @param __PLL3M__ specifies the division factor for PLL3 VCO input clock - * This parameter must be a number between 1 and 63. - * @note You have to set the PLLM parameter correctly to ensure that the VCO input - * frequency ranges from 1 to 16 MHz. - * - * @param __PLL3N__ specifies the multiplication factor for PLL3 VCO output clock - * This parameter must be a number between 4 and 512. - * @note You have to set the PLL3N parameter correctly to ensure that the VCO - * output frequency is between 150 and 420 MHz (when in medium VCO range) or - * between 192 and 836 MHZ or between 128 and 560 MHZ(*) (when in wide VCO range) - * - * @param __PLL3P__ specifies the division factor for peripheral kernel clocks - * This parameter must be a number between 2 and 128 (where odd numbers not allowed) - * - * @param __PLL3Q__ specifies the division factor for peripheral kernel clocks - * This parameter must be a number between 1 and 128 - * - * @param __PLL3R__ specifies the division factor for peripheral kernel clocks - * This parameter must be a number between 1 and 128 - * - * @note To insure an optimal behavior of the PLL when one of the post-divider (DIVP, DIVQ or DIVR) - * is not used, application shall clear the enable bit (DIVyEN) and assign lowest possible - * value to __PLL3P__, __PLL3Q__ or __PLL3R__ parameters. - * @retval None - * - * (*) : For stm32h7a3xx and stm32h7b3xx family lines. - */ - -#define __HAL_RCC_PLL3_CONFIG(__PLL3M__, __PLL3N__, __PLL3P__, __PLL3Q__,__PLL3R__ ) \ - do{ MODIFY_REG(RCC->PLLCKSELR, ( RCC_PLLCKSELR_DIVM3) , ( (__PLL3M__) <<20U)); \ - WRITE_REG (RCC->PLL3DIVR , ( (((__PLL3N__) - 1U ) & RCC_PLL3DIVR_N3) | ((((__PLL3P__) -1U ) << 9U) & RCC_PLL3DIVR_P3) | \ - ((((__PLL3Q__) -1U) << 16U) & RCC_PLL3DIVR_Q3) | ((((__PLL3R__) - 1U) << 24U) & RCC_PLL3DIVR_R3))); \ - } while(0) - - - -/** - * @brief Macro to configures PLL3 clock Fractional Part of The Multiplication Factor - * - * @note These bits can be written at any time, allowing dynamic fine-tuning of the PLL3 VCO - * - * @param __RCC_PLL3FRACN__ specifies Fractional Part Of The Multiplication Factor for PLL3 VCO - * It should be a value between 0 and 8191 - * @note Warning: the software has to set correctly these bits to insure that the VCO - * output frequency is between its valid frequency range, which is: - * 192 to 836 MHz or 128 to 560 MHz(*) if PLL3VCOSEL = 0 - * 150 to 420 MHz if PLL3VCOSEL = 1. - * - * (*) : For stm32h7a3xx and stm32h7b3xx family lines. - * - * @retval None - */ -#define __HAL_RCC_PLL3FRACN_CONFIG(__RCC_PLL3FRACN__) MODIFY_REG(RCC->PLL3FRACR, RCC_PLL3FRACR_FRACN3, (uint32_t)(__RCC_PLL3FRACN__) << RCC_PLL3FRACR_FRACN3_Pos) - -/** @brief Macro to select the PLL3 reference frequency range. - * @param __RCC_PLL3VCIRange__ specifies the PLL1 input frequency range - * This parameter can be one of the following values: - * @arg RCC_PLL3VCIRANGE_0: Range frequency is between 1 and 2 MHz - * @arg RCC_PLL3VCIRANGE_1: Range frequency is between 2 and 4 MHz - * @arg RCC_PLL3VCIRANGE_2: Range frequency is between 4 and 8 MHz - * @arg RCC_PLL3VCIRANGE_3: Range frequency is between 8 and 16 MHz - * @retval None - */ -#define __HAL_RCC_PLL3_VCIRANGE(__RCC_PLL3VCIRange__) \ - MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLL3RGE, (__RCC_PLL3VCIRange__)) - - -/** @brief Macro to select the PLL3 reference frequency range. - * @param __RCC_PLL3VCORange__ specifies the PLL1 input frequency range - * This parameter can be one of the following values: - * @arg RCC_PLL3VCOWIDE: Range frequency is between 192 and 836 MHz or between 128 to 560 MHz(*) - * @arg RCC_PLL3VCOMEDIUM: Range frequency is between 150 and 420 MHz - * - * (*) : For stm32h7a3xx and stm32h7b3xx family lines. - * - * @retval None - */ -#define __HAL_RCC_PLL3_VCORANGE(__RCC_PLL3VCORange__) \ - MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLL3VCOSEL, (__RCC_PLL3VCORange__)) -/** - * @brief Macro to Configure the SAI1 clock source. - * @param __RCC_SAI1CLKSource__ defines the SAI1 clock source. This clock is derived - * from system PLL, PLL2, PLL3, OSC or external clock (through a dedicated PIN) - * This parameter can be one of the following values: - * @arg RCC_SAI1CLKSOURCE_PLL: SAI1 clock = PLL - * @arg RCC_SAI1CLKSOURCE_PLL2: SAI1 clock = PLL2 - * @arg RCC_SAI1CLKSOURCE_PLL3: SAI1 clock = PLL3 - * @arg RCC_SAI1CLKSOURCE_OSC: SAI1 clock = OSC - * @arg RCC_SAI1CLKSOURCE_PIN: SAI1 clock = External Clock - * @retval None - */ -#if defined(RCC_D2CCIP1R_SAI1SEL) -#define __HAL_RCC_SAI1_CONFIG(__RCC_SAI1CLKSource__ )\ - MODIFY_REG(RCC->D2CCIP1R, RCC_D2CCIP1R_SAI1SEL, (__RCC_SAI1CLKSource__)) -#else -#define __HAL_RCC_SAI1_CONFIG(__RCC_SAI1CLKSource__ )\ - MODIFY_REG(RCC->CDCCIP1R, RCC_CDCCIP1R_SAI1SEL, (__RCC_SAI1CLKSource__)) -#endif /* RCC_D2CCIP1R_SAI1SEL */ - -/** @brief Macro to get the SAI1 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_SAI1CLKSOURCE_PLL: SAI1 clock = PLL - * @arg RCC_SAI1CLKSOURCE_PLL2: SAI1 clock = PLL2 - * @arg RCC_SAI1CLKSOURCE_PLL3: SAI1 clock = PLL3 - * @arg RCC_SAI1CLKSOURCE_CLKP: SAI1 clock = CLKP - * @arg RCC_SAI1CLKSOURCE_PIN: SAI1 clock = External Clock - */ -#if defined(RCC_D2CCIP1R_SAI1SEL) -#define __HAL_RCC_GET_SAI1_SOURCE() ((uint32_t)(READ_BIT(RCC->D2CCIP1R, RCC_D2CCIP1R_SAI1SEL))) -#else -#define __HAL_RCC_GET_SAI1_SOURCE() ((uint32_t)(READ_BIT(RCC->CDCCIP1R, RCC_CDCCIP1R_SAI1SEL))) -#endif /* RCC_D2CCIP1R_SAI1SEL */ - -/** - * @brief Macro to Configure the SPDIFRX clock source. - * @param __RCC_SPDIFCLKSource__ defines the SPDIFRX clock source. This clock is derived - * from system PLL, PLL2, PLL3, or internal OSC clock - * This parameter can be one of the following values: - * @arg RCC_SPDIFRXCLKSOURCE_PLL: SPDIFRX clock = PLL - * @arg RCC_SPDIFRXCLKSOURCE_PLL2: SPDIFRX clock = PLL2 - * @arg RCC_SPDIFRXCLKSOURCE_PLL3: SPDIFRX clock = PLL3 - * @arg RCC_SPDIFRXCLKSOURCE_HSI: SPDIFRX clock = HSI - * @retval None - */ -#if defined(RCC_D2CCIP1R_SPDIFSEL) -#define __HAL_RCC_SPDIFRX_CONFIG(__RCC_SPDIFCLKSource__ )\ - MODIFY_REG(RCC->D2CCIP1R, RCC_D2CCIP1R_SPDIFSEL, (__RCC_SPDIFCLKSource__)) -#else -#define __HAL_RCC_SPDIFRX_CONFIG(__RCC_SPDIFCLKSource__ )\ - MODIFY_REG(RCC->CDCCIP1R, RCC_CDCCIP1R_SPDIFSEL, (__RCC_SPDIFCLKSource__)) -#endif /* RCC_D2CCIP1R_SPDIFSEL */ - -/** - * @brief Macro to get the SPDIFRX clock source. - * @retval None - */ -#if defined(RCC_D2CCIP1R_SPDIFSEL) -#define __HAL_RCC_GET_SPDIFRX_SOURCE() ((uint32_t)(READ_BIT(RCC->D2CCIP1R, RCC_D2CCIP1R_SPDIFSEL))) -#else -#define __HAL_RCC_GET_SPDIFRX_SOURCE() ((uint32_t)(READ_BIT(RCC->CDCCIP1R, RCC_CDCCIP1R_SPDIFSEL))) -#endif /* RCC_D2CCIP1R_SPDIFSEL */ - -#if defined(SAI3) -/** - * @brief Macro to Configure the SAI2/3 clock source. - * @param __RCC_SAI23CLKSource__ defines the SAI2/3 clock source. This clock is derived - * from system PLL, PLL2, PLL3, OSC or external clock (through a dedicated PIN) - * This parameter can be one of the following values: - * @arg RCC_SAI23CLKSOURCE_PLL: SAI2/3 clock = PLL - * @arg RCC_SAI23CLKSOURCE_PLL2: SAI2/3 clock = PLL2 - * @arg RCC_SAI23CLKSOURCE_PLL3: SAI2/3 clock = PLL3 - * @arg RCC_SAI23CLKSOURCE_CLKP: SAI2/3 clock = CLKP - * @arg RCC_SAI23CLKSOURCE_PIN: SAI2/3 clock = External Clock - * @retval None - */ -#define __HAL_RCC_SAI23_CONFIG(__RCC_SAI23CLKSource__ )\ - MODIFY_REG(RCC->D2CCIP1R, RCC_D2CCIP1R_SAI23SEL, (__RCC_SAI23CLKSource__)) - -/** @brief Macro to get the SAI2/3 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_SAI23CLKSOURCE_PLL: SAI2/3 clock = PLL - * @arg RCC_SAI23CLKSOURCE_PLL2: SAI2/3 clock = PLL2 - * @arg RCC_SAI23CLKSOURCE_PLL3: SAI2/3 clock = PLL3 - * @arg RCC_SAI23CLKSOURCE_CLKP: SAI2/3 clock = CLKP - * @arg RCC_SAI23CLKSOURCE_PIN: SAI2/3 clock = External Clock - */ -#define __HAL_RCC_GET_SAI23_SOURCE() ((uint32_t)(READ_BIT(RCC->D2CCIP1R, RCC_D2CCIP1R_SAI23SEL))) - -/** - * @brief Macro to Configure the SAI2 clock source. - * @param __RCC_SAI2CLKSource__ defines the SAI2 clock source. This clock is derived - * from system PLL, PLL2, PLL3, OSC or external clock (through a dedicated PIN) - * This parameter can be one of the following values: - * @arg RCC_SAI2CLKSOURCE_PLL: SAI2 clock = PLL - * @arg RCC_SAI2CLKSOURCE_PLL2: SAI2 clock = PLL2 - * @arg RCC_SAI2CLKSOURCE_PLL3: SAI2 clock = PLL3 - * @arg RCC_SAI2CLKSOURCE_CLKP: SAI2 clock = CLKP - * @arg RCC_SAI2CLKSOURCE_PIN: SAI2 clock = External Clock - * @retval None - */ -#define __HAL_RCC_SAI2_CONFIG __HAL_RCC_SAI23_CONFIG - -/** @brief Macro to get the SAI2 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_SAI2CLKSOURCE_PLL: SAI2 clock = PLL - * @arg RCC_SAI2CLKSOURCE_PLL2: SAI2 clock = PLL2 - * @arg RCC_SAI2CLKSOURCE_PLL3: SAI2 clock = PLL3 - * @arg RCC_SAI2CLKSOURCE_CLKP: SAI2 clock = CLKP - * @arg RCC_SAI2CLKSOURCE_PIN: SAI2 clock = External Clock - */ -#define __HAL_RCC_GET_SAI2_SOURCE __HAL_RCC_GET_SAI23_SOURCE - -/** - * @brief Macro to Configure the SAI3 clock source. - * @param __RCC_SAI3CLKSource__ defines the SAI3 clock source. This clock is derived - * from system PLL, PLL2, PLL3, OSC or external clock (through a dedicated PIN) - * This parameter can be one of the following values: - * @arg RCC_SAI3CLKSOURCE_PLL: SAI3 clock = PLL - * @arg RCC_SAI3CLKSOURCE_PLL2: SAI3 clock = PLL2 - * @arg RCC_SAI3CLKSOURCE_PLL3: SAI3 clock = PLL3 - * @arg RCC_SAI3CLKSOURCE_CLKP: SAI3 clock = CLKP - * @arg RCC_SAI3CLKSOURCE_PIN: SAI3 clock = External Clock - * @retval None - */ -#define __HAL_RCC_SAI3_CONFIG __HAL_RCC_SAI23_CONFIG - -/** @brief Macro to get the SAI3 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_SAI3CLKSOURCE_PLL: SAI3 clock = PLL - * @arg RCC_SAI3CLKSOURCE_PLL2: SAI3 clock = PLL2 - * @arg RCC_SAI3CLKSOURCE_PLL3: SAI3 clock = PLL3 - * @arg RCC_SAI3CLKSOURCE_CLKP: SAI3 clock = CLKP - * @arg RCC_SAI3CLKSOURCE_PIN: SAI3 clock = External Clock - */ -#define __HAL_RCC_GET_SAI3_SOURCE __HAL_RCC_GET_SAI23_SOURCE -#endif /* SAI3 */ - -#if defined(RCC_CDCCIP1R_SAI2ASEL) -/** - * @brief Macro to Configure the SAI2A clock source. - * @param __RCC_SAI2ACLKSource__ defines the SAI2A clock source. This clock is derived - * from system PLL, PLL2, PLL3, OSC or external clock (through a dedicated PIN) - * This parameter can be one of the following values: - * @arg RCC_SAI2ACLKSOURCE_PLL: SAI2A clock = PLL - * @arg RCC_SAI2ACLKSOURCE_PLL2: SAI2A clock = PLL2 - * @arg RCC_SAI2ACLKSOURCE_PLL3: SAI2A clock = PLL3 - * @arg RCC_SAI2ACLKSOURCE_CLKP: SAI2A clock = CLKP - * @arg RCC_SAI2ACLKSOURCE_PIN: SAI2A clock = External Clock - * @arg RCC_SAI2ACLKSOURCE_SPDIF: SAI2A clock = SPDIF Clock - * @retval None - */ -#define __HAL_RCC_SAI2A_CONFIG(__RCC_SAI2ACLKSource__ )\ - MODIFY_REG(RCC->CDCCIP1R, RCC_CDCCIP1R_SAI2ASEL, (__RCC_SAI2ACLKSource__)) - -/** @brief Macro to get the SAI2A clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_SAI2CLKSOURCE_PLL: SAI2A clock = PLL - * @arg RCC_SAI2CLKSOURCE_PLL2: SAI2A clock = PLL2 - * @arg RCC_SAI2CLKSOURCE_PLL3: SAI2A clock = PLL3 - * @arg RCC_SAI2CLKSOURCE_CLKP: SAI2A clock = CLKP - * @arg RCC_SAI2CLKSOURCE_PIN: SAI2A clock = External Clock - * @arg RCC_SAI2ACLKSOURCE_SPDIF: SAI2A clock = SPDIF Clock - */ -#define __HAL_RCC_GET_SAI2A_SOURCE() ((uint32_t)(READ_BIT(RCC->CDCCIP1R, RCC_CDCCIP1R_SAI2ASEL))) -#endif /* defined(RCC_CDCCIP1R_SAI2ASEL) */ - -#if defined(RCC_CDCCIP1R_SAI2BSEL) -/** - * @brief Macro to Configure the SAI2B clock source. - * @param __RCC_SAI2BCLKSource__ defines the SAI2B clock source. This clock is derived - * from system PLL, PLL2, PLL3, OSC or external clock (through a dedicated PIN) - * This parameter can be one of the following values: - * @arg RCC_SAI2BCLKSOURCE_PLL: SAI2B clock = PLL - * @arg RCC_SAI2BCLKSOURCE_PLL2: SAI2B clock = PLL2 - * @arg RCC_SAI2BCLKSOURCE_PLL3: SAI2B clock = PLL3 - * @arg RCC_SAI2BCLKSOURCE_CLKP: SAI2B clock = CLKP - * @arg RCC_SAI2BCLKSOURCE_PIN: SAI2B clock = External Clock - * @arg RCC_SAI2BCLKSOURCE_SPDIF: SAI2B clock = SPDIF Clock - * @retval None - */ -#define __HAL_RCC_SAI2B_CONFIG(__RCC_SAI2BCLKSource__ )\ - MODIFY_REG(RCC->CDCCIP1R, RCC_CDCCIP1R_SAI2BSEL, (__RCC_SAI2BCLKSource__)) - -/** @brief Macro to get the SAI2B clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_SAI2BCLKSOURCE_PLL: SAI2B clock = PLL - * @arg RCC_SAI2BCLKSOURCE_PLL2: SAI2B clock = PLL2 - * @arg RCC_SAI2BCLKSOURCE_PLL3: SAI2B clock = PLL3 - * @arg RCC_SAI2BCLKSOURCE_CLKP: SAI2B clock = CLKP - * @arg RCC_SAI2BCLKSOURCE_PIN: SAI2B clock = External Clock - * @arg RCC_SAI2BCLKSOURCE_SPDIF: SAI2B clock = SPDIF Clock - */ -#define __HAL_RCC_GET_SAI2B_SOURCE() ((uint32_t)(READ_BIT(RCC->CDCCIP1R, RCC_CDCCIP1R_SAI2BSEL))) -#endif /* defined(RCC_CDCCIP1R_SAI2BSEL) */ - - -#if defined(SAI4_Block_A) -/** - * @brief Macro to Configure the SAI4A clock source. - * @param __RCC_SAI4ACLKSource__ defines the SAI4A clock source. This clock is derived - * from system PLL, PLL2, PLL3, OSC or external clock (through a dedicated PIN) - * This parameter can be one of the following values: - * @arg RCC_SAI4ACLKSOURCE_PLL: SAI4A clock = PLL - * @arg RCC_SAI4ACLKSOURCE_PLL2: SAI4A clock = PLL2 - * @arg RCC_SAI4ACLKSOURCE_PLL3: SAI4A clock = PLL3 - * @arg RCC_SAI4ACLKSOURCE_CLKP: SAI4A clock = CLKP - * @arg RCC_SAI4ACLKSOURCE_PIN: SAI4A clock = External Clock - * @retval None - */ -#define __HAL_RCC_SAI4A_CONFIG(__RCC_SAI4ACLKSource__ )\ - MODIFY_REG(RCC->D3CCIPR, RCC_D3CCIPR_SAI4ASEL, (__RCC_SAI4ACLKSource__)) - -/** @brief Macro to get the SAI4A clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_SAI4ACLKSOURCE_PLL: SAI4B clock = PLL - * @arg RCC_SAI4ACLKSOURCE_PLL2: SAI4B clock = PLL2 - * @arg RCC_SAI4ACLKSOURCE_PLL3: SAI4B clock = PLL3 - * @arg RCC_SAI4ACLKSOURCE_CLKP: SAI4B clock = CLKP - * @arg RCC_SAI4ACLKSOURCE_PIN: SAI4B clock = External Clock - */ -#define __HAL_RCC_GET_SAI4A_SOURCE() ((uint32_t)(READ_BIT(RCC->D3CCIPR, RCC_D3CCIPR_SAI4ASEL))) -#endif /* SAI4_Block_A */ - -#if defined(SAI4_Block_B) -/** - * @brief Macro to Configure the SAI4B clock source. - * @param __RCC_SAI4BCLKSource__ defines the SAI4B clock source. This clock is derived - * from system PLL, PLL2, PLL3, OSC or external clock (through a dedicated PIN) - * This parameter can be one of the following values: - * @arg RCC_SAI4BCLKSOURCE_PLL: SAI4B clock = PLL - * @arg RCC_SAI4BCLKSOURCE_PLL2: SAI4B clock = PLL2 - * @arg RCC_SAI4BCLKSOURCE_PLL3: SAI4B clock = PLL3 - * @arg RCC_SAI4BCLKSOURCE_CLKP: SAI4B clock = CLKP - * @arg RCC_SAI4BCLKSOURCE_PIN: SAI4B clock = External Clock - * @retval None - */ -#define __HAL_RCC_SAI4B_CONFIG(__RCC_SAI4BCLKSource__ )\ - MODIFY_REG(RCC->D3CCIPR, RCC_D3CCIPR_SAI4BSEL, (__RCC_SAI4BCLKSource__)) - -/** @brief Macro to get the SAI4B clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_SAI4BCLKSOURCE_PLL: SAI4B clock = PLL - * @arg RCC_SAI4BCLKSOURCE_PLL2: SAI4B clock = PLL2 - * @arg RCC_SAI4BCLKSOURCE_PLL3: SAI4B clock = PLL3 - * @arg RCC_SAI4BCLKSOURCE_CLKP: SAI4B clock = CLKP - * @arg RCC_SAI4BCLKSOURCE_PIN: SAI4B clock = External Clock - */ -#define __HAL_RCC_GET_SAI4B_SOURCE() ((uint32_t)(READ_BIT(RCC->D3CCIPR, RCC_D3CCIPR_SAI4BSEL))) -#endif /* SAI4_Block_B */ - -/** @brief macro to configure the I2C1/2/3/5* clock (I2C123CLK). - * - * @param __I2C1235CLKSource__ specifies the I2C1/2/3/5* clock source. - * This parameter can be one of the following values: - * @arg RCC_I2C123CLKSOURCE_D2PCLK1: D2PCLK1 selected as I2C1/2/3/5* clock - * @arg RCC_I2C123CLKSOURCE_PLL3: PLL3 selected as I2C1/2/3/5* clock - * @arg RCC_I2C123CLKSOURCE_HSI: HSI selected as I2C1/2/3/5* clock - * @arg RCC_I2C123CLKSOURCE_CSI: CSI selected as I2C1/2/3/5* clock - * - * (**): Available on stm32h72xxx and stm32h73xxx family lines. - */ -#if defined(RCC_D2CCIP2R_I2C123SEL) -#define __HAL_RCC_I2C123_CONFIG(__I2C1235CLKSource__) \ - MODIFY_REG(RCC->D2CCIP2R, RCC_D2CCIP2R_I2C123SEL, (uint32_t)(__I2C1235CLKSource__)) -#elif defined(RCC_CDCCIP2R_I2C123SEL) -#define __HAL_RCC_I2C123_CONFIG(__I2C1235CLKSource__) \ - MODIFY_REG(RCC->CDCCIP2R, RCC_CDCCIP2R_I2C123SEL, (uint32_t)(__I2C1235CLKSource__)) -#else /* RCC_D2CCIP2R_I2C1235SEL */ -#define __HAL_RCC_I2C1235_CONFIG(__I2C1235CLKSource__) \ - MODIFY_REG(RCC->D2CCIP2R, RCC_D2CCIP2R_I2C1235SEL, (uint32_t)(__I2C1235CLKSource__)) -/* alias */ -#define __HAL_RCC_I2C123_CONFIG __HAL_RCC_I2C1235_CONFIG -#endif /* RCC_D2CCIP2R_I2C123SEL */ - -/** @brief macro to get the I2C1/2/3/5* clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_I2C123CLKSOURCE_D2PCLK1: D2PCLK1 selected as I2C1/2/3/5* clock - * @arg RCC_I2C123CLKSOURCE_PLL3: PLL3 selected as I2C1/2/3/5* clock - * @arg RCC_I2C123CLKSOURCE_HSI: HSI selected as I2C1/2/3/5* clock - * @arg RCC_I2C123CLKSOURCE_CSI: CSI selected as I2C1/2/3/5* clock - * - * (**): Available on stm32h72xxx and stm32h73xxx family lines. - */ -#if defined(RCC_D2CCIP2R_I2C123SEL) -#define __HAL_RCC_GET_I2C123_SOURCE() ((uint32_t)(READ_BIT(RCC->D2CCIP2R, RCC_D2CCIP2R_I2C123SEL))) -#elif defined(RCC_CDCCIP2R_I2C123SEL) -#define __HAL_RCC_GET_I2C123_SOURCE() ((uint32_t)(READ_BIT(RCC->CDCCIP2R, RCC_CDCCIP2R_I2C123SEL))) -#else /* RCC_D2CCIP2R_I2C1235SEL */ -#define __HAL_RCC_GET_I2C1235_SOURCE() ((uint32_t)(READ_BIT(RCC->D2CCIP2R, RCC_D2CCIP2R_I2C1235SEL))) -/* alias */ -#define __HAL_RCC_GET_I2C123_SOURCE __HAL_RCC_GET_I2C1235_SOURCE -#endif /* RCC_D2CCIP2R_I2C123SEL */ - -/** @brief macro to configure the I2C1 clock (I2C1CLK). - * - * @param __I2C1CLKSource__ specifies the I2C1 clock source. - * This parameter can be one of the following values: - * @arg RCC_I2C1CLKSOURCE_D2PCLK1: D2PCLK1 selected as I2C1 clock - * @arg RCC_I2C1CLKSOURCE_PLL3: PLL3 selected as I2C1 clock - * @arg RCC_I2C1CLKSOURCE_HSI: HSI selected as I2C1 clock - * @arg RCC_I2C1CLKSOURCE_CSI: CSI selected as I2C1 clock - */ -#if defined(I2C5) -#define __HAL_RCC_I2C1_CONFIG __HAL_RCC_I2C1235_CONFIG -#else -#define __HAL_RCC_I2C1_CONFIG __HAL_RCC_I2C123_CONFIG -#endif /*I2C5*/ - -/** @brief macro to get the I2C1 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_I2C1CLKSOURCE_D2PCLK1: D2PCLK1 selected as I2C1 clock - * @arg RCC_I2C1CLKSOURCE_PLL3: PLL3 selected as I2C1 clock - * @arg RCC_I2C1CLKSOURCE_HSI: HSI selected as I2C1 clock - * @arg RCC_I2C1CLKSOURCE_CSI: CSI selected as I2C1 clock - */ -#if defined(I2C5) -#define __HAL_RCC_GET_I2C1_SOURCE __HAL_RCC_GET_I2C1235_SOURCE -#else -#define __HAL_RCC_GET_I2C1_SOURCE __HAL_RCC_GET_I2C123_SOURCE -#endif /*I2C5*/ - -/** @brief macro to configure the I2C2 clock (I2C2CLK). - * - * @param __I2C2CLKSource__ specifies the I2C2 clock source. - * This parameter can be one of the following values: - * @arg RCC_I2C2CLKSOURCE_D2PCLK1: D2PCLK1 selected as I2C2 clock - * @arg RCC_I2C2CLKSOURCE_PLL3: PLL3 selected as I2C2 clock - * @arg RCC_I2C2CLKSOURCE_HSI: HSI selected as I2C2 clock - * @arg RCC_I2C2CLKSOURCE_CSI: CSI selected as I2C2 clock - */ -#if defined(I2C5) -#define __HAL_RCC_I2C2_CONFIG __HAL_RCC_I2C1235_CONFIG -#else -#define __HAL_RCC_I2C2_CONFIG __HAL_RCC_I2C123_CONFIG -#endif /*I2C5*/ - -/** @brief macro to get the I2C2 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_I2C2CLKSOURCE_D2PCLK1: D2PCLK1 selected as I2C2 clock - * @arg RCC_I2C2CLKSOURCE_PLL3: PLL3 selected as I2C2 clock - * @arg RCC_I2C2CLKSOURCE_HSI: HSI selected as I2C2 clock - * @arg RCC_I2C2CLKSOURCE_CSI: CSI selected as I2C2 clock - */ -#if defined(I2C5) -#define __HAL_RCC_GET_I2C2_SOURCE __HAL_RCC_GET_I2C1235_SOURCE -#else -#define __HAL_RCC_GET_I2C2_SOURCE __HAL_RCC_GET_I2C123_SOURCE -#endif /*I2C5*/ - -/** @brief macro to configure the I2C3 clock (I2C3CLK). - * - * @param __I2C3CLKSource__ specifies the I2C3 clock source. - * This parameter can be one of the following values: - * @arg RCC_I2C3CLKSOURCE_D2PCLK1: D2PCLK1 selected as I2C3 clock - * @arg RCC_I2C3CLKSOURCE_PLL3: PLL3 selected as I2C3 clock - * @arg RCC_I2C3CLKSOURCE_HSI: HSI selected as I2C3 clock - * @arg RCC_I2C3CLKSOURCE_CSI: CSI selected as I2C3 clock - */ -#if defined(I2C5) -#define __HAL_RCC_I2C3_CONFIG __HAL_RCC_I2C1235_CONFIG -#else -#define __HAL_RCC_I2C3_CONFIG __HAL_RCC_I2C123_CONFIG -#endif /*I2C5*/ - -/** @brief macro to get the I2C3 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_I2C3CLKSOURCE_D2PCLK1: D2PCLK1 selected as I2C3 clock - * @arg RCC_I2C3CLKSOURCE_PLL3: PLL3 selected as I2C3 clock - * @arg RCC_I2C3CLKSOURCE_HSI: HSI selected as I2C3 clock - * @arg RCC_I2C3CLKSOURCE_CSI: CSI selected as I2C3 clock - */ -#if defined(I2C5) -#define __HAL_RCC_GET_I2C3_SOURCE __HAL_RCC_GET_I2C1235_SOURCE -#else -#define __HAL_RCC_GET_I2C3_SOURCE __HAL_RCC_GET_I2C123_SOURCE -#endif /*I2C5*/ - -/** @brief macro to configure the I2C4 clock (I2C4CLK). - * - * @param __I2C4CLKSource__ specifies the I2C4 clock source. - * This parameter can be one of the following values: - * @arg RCC_I2C4CLKSOURCE_D3PCLK1: D3PCLK1 selected as I2C4 clock - * @arg RCC_I2C4CLKSOURCE_PLL3: PLL3 selected as I2C4 clock - * @arg RCC_I2C4CLKSOURCE_HSI: HSI selected as I2C4 clock - * @arg RCC_I2C4CLKSOURCE_CSI: CSI selected as I2C4 clock - */ -#if defined(RCC_D3CCIPR_I2C4SEL) -#define __HAL_RCC_I2C4_CONFIG(__I2C4CLKSource__) \ - MODIFY_REG(RCC->D3CCIPR, RCC_D3CCIPR_I2C4SEL, (uint32_t)(__I2C4CLKSource__)) -#else -#define __HAL_RCC_I2C4_CONFIG(__I2C4CLKSource__) \ - MODIFY_REG(RCC->SRDCCIPR, RCC_SRDCCIPR_I2C4SEL, (uint32_t)(__I2C4CLKSource__)) -#endif /* RCC_D3CCIPR_I2C4SEL */ - -/** @brief macro to get the I2C4 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_I2C4CLKSOURCE_D3PCLK1: D3PCLK1 selected as I2C4 clock - * @arg RCC_I2C4CLKSOURCE_PLL3: PLL3 selected as I2C4 clock - * @arg RCC_I2C4CLKSOURCE_HSI: HSI selected as I2C4 clock - * @arg RCC_I2C4CLKSOURCE_CSI: CSI selected as I2C4 clock - */ -#if defined(RCC_D3CCIPR_I2C4SEL) -#define __HAL_RCC_GET_I2C4_SOURCE() ((uint32_t)(READ_BIT(RCC->D3CCIPR, RCC_D3CCIPR_I2C4SEL))) -#else -#define __HAL_RCC_GET_I2C4_SOURCE() ((uint32_t)(READ_BIT(RCC->SRDCCIPR, RCC_SRDCCIPR_I2C4SEL))) -#endif /* RCC_D3CCIPR_I2C4SEL */ - -#if defined(I2C5) -/** @brief macro to configure the I2C5 clock (I2C5CLK). - * - * @param __I2C5CLKSource__ specifies the I2C5 clock source. - * This parameter can be one of the following values: - * @arg RCC_I2C5CLKSOURCE_D2PCLK1: D2PCLK1 selected as I2C5 clock - * @arg RCC_I2C5CLKSOURCE_PLL3: PLL3 selected as I2C5 clock - * @arg RCC_I2C5CLKSOURCE_HSI: HSI selected as I2C5 clock - * @arg RCC_I2C5CLKSOURCE_CSI: CSI selected as I2C5 clock - */ -#define __HAL_RCC_I2C5_CONFIG __HAL_RCC_I2C1235_CONFIG -#endif /* I2C5 */ - -#if defined(I2C5) -/** @brief macro to get the I2C5 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_I2C5CLKSOURCE_D2PCLK1: D2PCLK5 selected as I2C5 clock - * @arg RCC_I2C5CLKSOURCE_PLL3: PLL3 selected as I2C5 clock - * @arg RCC_I2C5CLKSOURCE_HSI: HSI selected as I2C5 clock - * @arg RCC_I2C5CLKSOURCE_CSI: CSI selected as I2C5 clock - */ -#define __HAL_RCC_GET_I2C5_SOURCE __HAL_RCC_GET_I2C1235_SOURCE -#endif /* I2C5 */ - -/** @brief macro to configure the USART1/6/9* /10* clock (USART16CLK). - * - * @param __USART16910CLKSource__ specifies the USART1/6/9* /10* clock source. - * This parameter can be one of the following values: - * @arg RCC_USART16CLKSOURCE_D2PCLK2: APB2 Clock selected as USART1/6/9* /10* clock - * @arg RCC_USART16CLKSOURCE_PLL2: PLL2_Q Clock selected as USART1/6/9* /10* clock - * @arg RCC_USART16CLKSOURCE_PLL3: PLL3_Q Clock selected as USART1/6/9* /10* clock - * @arg RCC_USART16CLKSOURCE_HSI: HSI selected as USART1/6/9* /10* clock - * @arg RCC_USART16CLKSOURCE_CSI: CSI Clock selected as USART1/6/9* /10* clock - * @arg RCC_USART16CLKSOURCE_LSE: LSE selected as USART1/6/9* /10* clock - * - * (*) : Available on some STM32H7 lines only. - */ -#if defined(RCC_D2CCIP2R_USART16SEL) -#define __HAL_RCC_USART16_CONFIG(__USART16910CLKSource__) \ - MODIFY_REG(RCC->D2CCIP2R, RCC_D2CCIP2R_USART16SEL, (uint32_t)(__USART16910CLKSource__)) -#elif defined(RCC_CDCCIP2R_USART16910SEL) -#define __HAL_RCC_USART16910_CONFIG(__USART16910CLKSource__) \ - MODIFY_REG(RCC->CDCCIP2R, RCC_CDCCIP2R_USART16910SEL, (uint32_t)(__USART16910CLKSource__)) -/* alias */ -#define __HAL_RCC_USART16_CONFIG __HAL_RCC_USART16910_CONFIG -#else /* RCC_D2CCIP2R_USART16910SEL */ -#define __HAL_RCC_USART16910_CONFIG(__USART16910CLKSource__) \ - MODIFY_REG(RCC->D2CCIP2R, RCC_D2CCIP2R_USART16910SEL, (uint32_t)(__USART16910CLKSource__)) -/* alias */ -#define __HAL_RCC_USART16_CONFIG __HAL_RCC_USART16910_CONFIG -#endif /* RCC_D2CCIP2R_USART16SEL */ - -/** @brief macro to get the USART1/6/9* /10* clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_USART16CLKSOURCE_D2PCLK2: APB2 Clock selected as USART1/6/9* /10* clock - * @arg RCC_USART16CLKSOURCE_PLL2: PLL2_Q Clock selected as USART1/6/9* /10* clock - * @arg RCC_USART16CLKSOURCE_PLL3: PLL3_Q Clock selected as USART1/6/9* /10* clock - * @arg RCC_USART16CLKSOURCE_HSI: HSI selected as USART1/6/9* /10* clock - * @arg RCC_USART16CLKSOURCE_CSI: CSI Clock selected as USART1/6/9* /10* clock - * @arg RCC_USART16CLKSOURCE_LSE: LSE selected as USART1/6/9* /10* clock - * - * (*) : Available on some STM32H7 lines only. - */ -#if defined(RCC_D2CCIP2R_USART16SEL) -#define __HAL_RCC_GET_USART16_SOURCE() ((uint32_t)(READ_BIT(RCC->D2CCIP2R, RCC_D2CCIP2R_USART16SEL))) -#elif defined(RCC_CDCCIP2R_USART16910SEL) -#define __HAL_RCC_GET_USART16910_SOURCE() ((uint32_t)(READ_BIT(RCC->CDCCIP2R, RCC_CDCCIP2R_USART16910SEL))) -/* alias*/ -#define __HAL_RCC_GET_USART16_SOURCE __HAL_RCC_GET_USART16910_SOURCE -#else /* RCC_D2CCIP2R_USART16910SEL */ -#define __HAL_RCC_GET_USART16910_SOURCE() ((uint32_t)(READ_BIT(RCC->D2CCIP2R, RCC_D2CCIP2R_USART16910SEL))) -/* alias */ -#define __HAL_RCC_GET_USART16_SOURCE __HAL_RCC_GET_USART16910_SOURCE -#endif /* RCC_D2CCIP2R_USART16SEL */ - -/** @brief macro to configure the USART234578 clock (USART234578CLK). - * - * @param __USART234578CLKSource__ specifies the USART2/3/4/5/7/8 clock source. - * This parameter can be one of the following values: - * @arg RCC_USART234578CLKSOURCE_D2PCLK1: APB1 Clock selected as USART2/3/4/5/7/8 clock - * @arg RCC_USART234578CLKSOURCE_PLL2: PLL2_Q Clock selected as USART2/3/4/5/7/8 clock - * @arg RCC_USART234578CLKSOURCE_PLL3: PLL3_Q Clock selected as USART2/3/4/5/7/8 clock - * @arg RCC_USART234578CLKSOURCE_HSI: HSI selected as USART2/3/4/5/7/8 clock - * @arg RCC_USART234578CLKSOURCE_CSI: CSI Clock selected as USART2/3/4/5/7/8 clock - * @arg RCC_USART234578CLKSOURCE_LSE: LSE selected as USART2/3/4/5/7/8 clock - */ -#if defined(RCC_D2CCIP2R_USART28SEL) -#define __HAL_RCC_USART234578_CONFIG(__USART234578CLKSource__) \ - MODIFY_REG(RCC->D2CCIP2R, RCC_D2CCIP2R_USART28SEL, (uint32_t)(__USART234578CLKSource__)) -#else -#define __HAL_RCC_USART234578_CONFIG(__USART234578CLKSource__) \ - MODIFY_REG(RCC->CDCCIP2R, RCC_CDCCIP2R_USART234578SEL, (uint32_t)(__USART234578CLKSource__)) -#endif /* RCC_D2CCIP2R_USART28SEL */ - -/** @brief macro to get the USART2/3/4/5/7/8 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_USART234578CLKSOURCE_D2PCLK1: APB1 Clock selected as USART2/3/4/5/7/8 clock - * @arg RCC_USART234578CLKSOURCE_PLL2: PLL2_Q Clock selected as USART2/3/4/5/7/8 clock - * @arg RCC_USART234578CLKSOURCE_PLL3: PLL3_Q Clock selected as USART2/3/4/5/7/8 clock - * @arg RCC_USART234578CLKSOURCE_HSI: HSI selected as USART2/3/4/5/7/8 clock - * @arg RCC_USART234578CLKSOURCE_CSI: CSI Clock selected as USART2/3/4/5/7/8 clock - * @arg RCC_USART234578CLKSOURCE_LSE: LSE selected as USART2/3/4/5/7/8 clock - */ -#if defined(RCC_D2CCIP2R_USART28SEL) -#define __HAL_RCC_GET_USART234578_SOURCE() ((uint32_t)(READ_BIT(RCC->D2CCIP2R, RCC_D2CCIP2R_USART28SEL))) -#else -#define __HAL_RCC_GET_USART234578_SOURCE() ((uint32_t)(READ_BIT(RCC->CDCCIP2R, RCC_CDCCIP2R_USART234578SEL))) -#endif /* RCC_D2CCIP2R_USART28SEL */ - -/** @brief macro to configure the USART1 clock (USART1CLK). - * - * @param __USART1CLKSource__ specifies the USART1 clock source. - * This parameter can be one of the following values: - * @arg RCC_USART1CLKSOURCE_D2PCLK2: APB2 Clock selected as USART1 clock - * @arg RCC_USART1CLKSOURCE_PLL2: PLL2_Q Clock selected as USART1 clock - * @arg RCC_USART1CLKSOURCE_PLL3: PLL3_Q Clock selected as USART1 clock - * @arg RCC_USART1CLKSOURCE_HSI: HSI selected as USART1 clock - * @arg RCC_USART1CLKSOURCE_CSI: CSI Clock selected as USART1 clock - * @arg RCC_USART1CLKSOURCE_LSE: LSE selected as USART1 clock - */ -#define __HAL_RCC_USART1_CONFIG __HAL_RCC_USART16_CONFIG - -/** @brief macro to get the USART1 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_USART1CLKSOURCE_D2PCLK2: APB2 Clock selected as USART1 clock - * @arg RCC_USART1CLKSOURCE_PLL2: PLL2_Q Clock selected as USART1 clock - * @arg RCC_USART1CLKSOURCE_PLL3: PLL3_Q Clock selected as USART1 clock - * @arg RCC_USART1CLKSOURCE_HSI: HSI selected as USART1 clock - * @arg RCC_USART1CLKSOURCE_CSI: CSI Clock selected as USART1 clock - * @arg RCC_USART1CLKSOURCE_LSE: LSE selected as USART1 clock - */ -#define __HAL_RCC_GET_USART1_SOURCE __HAL_RCC_GET_USART16_SOURCE - -/** @brief macro to configure the USART2 clock (USART2CLK). - * - * @param __USART2CLKSource__ specifies the USART2 clock source. - * This parameter can be one of the following values: - * @arg RCC_USART2CLKSOURCE_D2PCLK1: APB1 Clock selected as USART2 clock - * @arg RCC_USART2CLKSOURCE_PLL2: PLL2_Q Clock selected as USART2 clock - * @arg RCC_USART2CLKSOURCE_PLL3: PLL3_Q Clock selected as USART2 clock - * @arg RCC_USART2CLKSOURCE_HSI: HSI selected as USART2 clock - * @arg RCC_USART2CLKSOURCE_CSI: CSI Clock selected as USART2 clock - * @arg RCC_USART2CLKSOURCE_LSE: LSE selected as USART2 clock - */ -#define __HAL_RCC_USART2_CONFIG __HAL_RCC_USART234578_CONFIG - -/** @brief macro to get the USART2 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_USART2CLKSOURCE_D2PCLK1: APB1 Clock selected as USART2 clock - * @arg RCC_USART2CLKSOURCE_PLL2: PLL2_Q Clock selected as USART2 clock - * @arg RCC_USART2CLKSOURCE_PLL3: PLL3_Q Clock selected as USART2 clock - * @arg RCC_USART2CLKSOURCE_HSI: HSI selected as USART2 clock - * @arg RCC_USART2CLKSOURCE_CSI: CSI Clock selected as USART2 clock - * @arg RCC_USART2CLKSOURCE_LSE: LSE selected as USART2 clock - */ -#define __HAL_RCC_GET_USART2_SOURCE __HAL_RCC_GET_USART234578_SOURCE - -/** @brief macro to configure the USART3 clock (USART3CLK). - * - * @param __USART3CLKSource__ specifies the USART3 clock source. - * This parameter can be one of the following values: - * @arg RCC_USART3CLKSOURCE_D2PCLK1: APB1 Clock selected as USART3 clock - * @arg RCC_USART3CLKSOURCE_PLL2: PLL2_Q Clock selected as USART3 clock - * @arg RCC_USART3CLKSOURCE_PLL3: PLL3_Q Clock selected as USART3 clock - * @arg RCC_USART3CLKSOURCE_HSI: HSI selected as USART3 clock - * @arg RCC_USART3CLKSOURCE_CSI: CSI Clock selected as USART3 clock - * @arg RCC_USART3CLKSOURCE_LSE: LSE selected as USART3 clock - */ -#define __HAL_RCC_USART3_CONFIG __HAL_RCC_USART234578_CONFIG - -/** @brief macro to get the USART3 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_USART2CLKSOURCE_D2PCLK1: APB1 Clock selected as USART3 clock - * @arg RCC_USART3CLKSOURCE_PLL2: PLL2_Q Clock selected as USART3 clock - * @arg RCC_USART3CLKSOURCE_PLL3: PLL3_Q Clock selected as USART3 clock - * @arg RCC_USART3CLKSOURCE_HSI: HSI selected as USART3 clock - * @arg RCC_USART3CLKSOURCE_CSI: CSI Clock selected as USART3 clock - * @arg RCC_USART3CLKSOURCE_LSE: LSE selected as USART3 clock - */ -#define __HAL_RCC_GET_USART3_SOURCE __HAL_RCC_GET_USART234578_SOURCE - -/** @brief macro to configure the UART4 clock (UART4CLK). - * - * @param __UART4CLKSource__ specifies the UART4 clock source. - * This parameter can be one of the following values: - * @arg RCC_UART4CLKSOURCE_D2PCLK1: APB1 Clock selected as UART4 clock - * @arg RCC_UART4CLKSOURCE_PLL2: PLL2_Q Clock selected as UART4 clock - * @arg RCC_UART4CLKSOURCE_PLL3: PLL3_Q Clock selected as UART4 clock - * @arg RCC_UART4CLKSOURCE_HSI: HSI selected as UART4 clock - * @arg RCC_UART4CLKSOURCE_CSI: CSI Clock selected as UART4 clock - * @arg RCC_UART4CLKSOURCE_LSE: LSE selected as UART4 clock - */ -#define __HAL_RCC_UART4_CONFIG __HAL_RCC_USART234578_CONFIG - -/** @brief macro to get the UART4 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_UART4CLKSOURCE_D2PCLK1: APB1 Clock selected as UART4 clock - * @arg RCC_UART4CLKSOURCE_PLL2: PLL2_Q Clock selected as UART4 clock - * @arg RCC_UART4CLKSOURCE_PLL3: PLL3_Q Clock selected as UART4 clock - * @arg RCC_UART4CLKSOURCE_HSI: HSI selected as UART4 clock - * @arg RCC_UART4CLKSOURCE_CSI: CSI Clock selected as UART4 clock - * @arg RCC_UART4CLKSOURCE_LSE: LSE selected as UART4 clock - */ -#define __HAL_RCC_GET_UART4_SOURCE __HAL_RCC_GET_USART234578_SOURCE - -/** @brief macro to configure the UART5 clock (UART5CLK). - * - * @param __UART5CLKSource__ specifies the UART5 clock source. - * This parameter can be one of the following values: - * @arg RCC_UART5CLKSOURCE_D2PCLK1: APB1 Clock selected as UART5 clock - * @arg RCC_UART5CLKSOURCE_PLL2: PLL2_Q Clock selected as UART5 clock - * @arg RCC_UART5CLKSOURCE_PLL3: PLL3_Q Clock selected as UART5 clock - * @arg RCC_UART5CLKSOURCE_HSI: HSI selected as UART5 clock - * @arg RCC_UART5CLKSOURCE_CSI: CSI Clock selected as UART5 clock - * @arg RCC_UART5CLKSOURCE_LSE: LSE selected as UART5 clock - */ -#define __HAL_RCC_UART5_CONFIG __HAL_RCC_USART234578_CONFIG - -/** @brief macro to get the UART5 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_UART5CLKSOURCE_D2PCLK1: APB1 Clock selected as UART5 clock - * @arg RCC_UART5CLKSOURCE_PLL2: PLL2_Q Clock selected as UART5 clock - * @arg RCC_UART5CLKSOURCE_PLL3: PLL3_Q Clock selected as UART5 clock - * @arg RCC_UART5CLKSOURCE_HSI: HSI selected as UART5 clock - * @arg RCC_UART5CLKSOURCE_CSI: CSI Clock selected as UART5 clock - * @arg RCC_UART5CLKSOURCE_LSE: LSE selected as UART5 clock - */ -#define __HAL_RCC_GET_UART5_SOURCE __HAL_RCC_GET_USART234578_SOURCE - -/** @brief macro to configure the USART6 clock (USART6CLK). - * - * @param __USART6CLKSource__ specifies the USART6 clock source. - * This parameter can be one of the following values: - * @arg RCC_USART6CLKSOURCE_D2PCLK2: APB2 Clock selected as USART6 clock - * @arg RCC_USART6CLKSOURCE_PLL2: PLL2_Q Clock selected as USART6 clock - * @arg RCC_USART6CLKSOURCE_PLL3: PLL3_Q Clock selected as USART6 clock - * @arg RCC_USART6CLKSOURCE_HSI: HSI selected as USART6 clock - * @arg RCC_USART6CLKSOURCE_CSI: CSI Clock selected as USART6 clock - * @arg RCC_USART6CLKSOURCE_LSE: LSE selected as USART6 clock - */ -#define __HAL_RCC_USART6_CONFIG __HAL_RCC_USART16_CONFIG - -/** @brief macro to get the USART6 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_USART6CLKSOURCE_D2PCLK2: APB2 Clock selected as USART6 clock - * @arg RCC_USART6CLKSOURCE_PLL2: PLL2_Q Clock selected as USART6 clock - * @arg RCC_USART6CLKSOURCE_PLL3: PLL3_Q Clock selected as USART6 clock - * @arg RCC_USART6CLKSOURCE_HSI: HSI selected as USART6 clock - * @arg RCC_USART6CLKSOURCE_CSI: CSI Clock selected as USART6 clock - * @arg RCC_USART6CLKSOURCE_LSE: LSE selected as USART6 clock - */ -#define __HAL_RCC_GET_USART6_SOURCE __HAL_RCC_GET_USART16_SOURCE - -/** @brief macro to configure the UART5 clock (UART7CLK). - * - * @param __UART7CLKSource__ specifies the UART7 clock source. - * This parameter can be one of the following values: - * @arg RCC_UART7CLKSOURCE_D2PCLK1: APB1 Clock selected as UART7 clock - * @arg RCC_UART7CLKSOURCE_PLL2: PLL2_Q Clock selected as UART7 clock - * @arg RCC_UART7CLKSOURCE_PLL3: PLL3_Q Clock selected as UART7 clock - * @arg RCC_UART7CLKSOURCE_HSI: HSI selected as UART7 clock - * @arg RCC_UART7CLKSOURCE_CSI: CSI Clock selected as UART7 clock - * @arg RCC_UART7CLKSOURCE_LSE: LSE selected as UART7 clock - */ -#define __HAL_RCC_UART7_CONFIG __HAL_RCC_USART234578_CONFIG - -/** @brief macro to get the UART7 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_UART7CLKSOURCE_D2PCLK1: APB1 Clock selected as UART7 clock - * @arg RCC_UART7CLKSOURCE_PLL2: PLL2_Q Clock selected as UART7 clock - * @arg RCC_UART7CLKSOURCE_PLL3: PLL3_Q Clock selected as UART7 clock - * @arg RCC_UART7CLKSOURCE_HSI: HSI selected as UART7 clock - * @arg RCC_UART7CLKSOURCE_CSI: CSI Clock selected as UART7 clock - * @arg RCC_UART7CLKSOURCE_LSE: LSE selected as UART7 clock - */ -#define __HAL_RCC_GET_UART7_SOURCE __HAL_RCC_GET_USART234578_SOURCE - -/** @brief macro to configure the UART8 clock (UART8CLK). - * - * @param __UART8CLKSource__ specifies the UART8 clock source. - * This parameter can be one of the following values: - * @arg RCC_UART8CLKSOURCE_D2PCLK1: APB1 Clock selected as UART8 clock - * @arg RCC_UART8CLKSOURCE_PLL2: PLL2_Q Clock selected as UART8 clock - * @arg RCC_UART8CLKSOURCE_PLL3: PLL3_Q Clock selected as UART8 clock - * @arg RCC_UART8CLKSOURCE_HSI: HSI selected as UART8 clock - * @arg RCC_UART8CLKSOURCE_CSI: CSI Clock selected as UART8 clock - * @arg RCC_UART8CLKSOURCE_LSE: LSE selected as UART8 clock - */ -#define __HAL_RCC_UART8_CONFIG __HAL_RCC_USART234578_CONFIG - -/** @brief macro to get the UART8 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_UART8CLKSOURCE_D2PCLK1: APB1 Clock selected as UART8 clock - * @arg RCC_UART8CLKSOURCE_PLL2: PLL2_Q Clock selected as UART8 clock - * @arg RCC_UART8CLKSOURCE_PLL3: PLL3_Q Clock selected as UART8 clock - * @arg RCC_UART8CLKSOURCE_HSI: HSI selected as UART8 clock - * @arg RCC_UART8CLKSOURCE_CSI: CSI Clock selected as UART8 clock - * @arg RCC_UART8CLKSOURCE_LSE: LSE selected as UART8 clock - */ -#define __HAL_RCC_GET_UART8_SOURCE __HAL_RCC_GET_USART234578_SOURCE - -#if defined(UART9) -/** @brief macro to configure the UART9 clock (UART9CLK). - * - * @param __UART8CLKSource__ specifies the UART8 clock source. - * This parameter can be one of the following values: - * @arg RCC_UART9CLKSOURCE_D2PCLK1: APB1 Clock selected as UART9 clock - * @arg RCC_UART9CLKSOURCE_PLL2: PLL2_Q Clock selected as UART9 clock - * @arg RCC_UART9CLKSOURCE_PLL3: PLL3_Q Clock selected as UART9 clock - * @arg RCC_UART9CLKSOURCE_HSI: HSI selected as UART9 clock - * @arg RCC_UART9CLKSOURCE_CSI: CSI Clock selected as UART9 clock - * @arg RCC_UART9CLKSOURCE_LSE: LSE selected as UART9 clock - */ -#define __HAL_RCC_UART9_CONFIG __HAL_RCC_USART16_CONFIG - -/** @brief macro to get the UART9 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_UART9CLKSOURCE_D2PCLK1: APB1 Clock selected as UART99 clock - * @arg RCC_UART9CLKSOURCE_PLL2: PLL2_Q Clock selected as UART99 clock - * @arg RCC_UART9CLKSOURCE_PLL3: PLL3_Q Clock selected as UART99 clock - * @arg RCC_UART9CLKSOURCE_HSI: HSI selected as UART9 clock - * @arg RCC_UART9CLKSOURCE_CSI: CSI Clock selected as UART9 clock - * @arg RCC_UART9CLKSOURCE_LSE: LSE selected as UART9 clock - */ -#define __HAL_RCC_GET_UART9_SOURCE __HAL_RCC_GET_USART16_SOURCE -#endif /* UART9 */ - -#if defined(USART10) -/** @brief macro to configure the USART10 clock (USART10CLK). - * - * @param __UART8CLKSource__ specifies the UART8 clock source. - * This parameter can be one of the following values: - * @arg RCC_USART10CLKSOURCE_D2PCLK1: APB1 Clock selected as USART10 clock - * @arg RCC_USART10CLKSOURCE_PLL2: PLL2_Q Clock selected as USART10 clock - * @arg RCC_USART10CLKSOURCE_PLL3: PLL3_Q Clock selected as USART10 clock - * @arg RCC_USART10CLKSOURCE_HSI: HSI selected as USART10 clock - * @arg RCC_USART10CLKSOURCE_CSI: CSI Clock selected as USART10 clock - * @arg RCC_USART10CLKSOURCE_LSE: LSE selected as USART10 clock - */ -#define __HAL_RCC_USART10_CONFIG __HAL_RCC_USART16_CONFIG - -/** @brief macro to get the USART10 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_USART10CLKSOURCE_D2PCLK1: APB1 Clock selected as USART10 clock - * @arg RCC_USART10CLKSOURCE_PLL2: PLL2_Q Clock selected as USART10 clock - * @arg RCC_USART10CLKSOURCE_PLL3: PLL3_Q Clock selected as USART10 clock - * @arg RCC_USART10CLKSOURCE_HSI: HSI selected as USART10 clock - * @arg RCC_USART10CLKSOURCE_CSI: CSI Clock selected as USART10 clock - * @arg RCC_USART10CLKSOURCE_LSE: LSE selected as USART10 clock - */ -#define __HAL_RCC_GET_USART10_SOURCE __HAL_RCC_GET_USART16_SOURCE -#endif /* USART10 */ - -/** @brief macro to configure the LPUART1 clock (LPUART1CLK). - * - * @param __LPUART1CLKSource__ specifies the LPUART1 clock source. - * This parameter can be one of the following values: - * @arg RCC_LPUART1CLKSOURCE_D3PCLK1: APB4 Clock selected as LPUART1 clock - * @arg RCC_LPUART1CLKSOURCE_PLL2: PLL2_Q Clock selected as LPUART1 clock - * @arg RCC_LPUART1CLKSOURCE_PLL3: PLL3_Q Clock selected as LPUART1 clock - * @arg RCC_LPUART1CLKSOURCE_HSI: HSI selected as LPUART1 clock - * @arg RCC_LPUART1CLKSOURCE_CSI: CSI Clock selected as LPUART1 clock - * @arg RCC_LPUART1CLKSOURCE_LSE: LSE selected as LPUART1 clock - */ -#if defined (RCC_D3CCIPR_LPUART1SEL) -#define __HAL_RCC_LPUART1_CONFIG(__LPUART1CLKSource__) \ - MODIFY_REG(RCC->D3CCIPR, RCC_D3CCIPR_LPUART1SEL, (uint32_t)(__LPUART1CLKSource__)) -#else -#define __HAL_RCC_LPUART1_CONFIG(__LPUART1CLKSource__) \ - MODIFY_REG(RCC->SRDCCIPR, RCC_SRDCCIPR_LPUART1SEL, (uint32_t)(__LPUART1CLKSource__)) -#endif /* RCC_D3CCIPR_LPUART1SEL */ - -/** @brief macro to get the LPUART1 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_LPUART1CLKSOURCE_D3PCLK1: APB4 Clock selected as LPUART1 clock - * @arg RCC_LPUART1CLKSOURCE_PLL2: PLL2_Q Clock selected as LPUART1 clock - * @arg RCC_LPUART1CLKSOURCE_PLL3: PLL3_Q Clock selected as LPUART1 clock - * @arg RCC_LPUART1CLKSOURCE_HSI: HSI selected as LPUART1 clock - * @arg RCC_LPUART1CLKSOURCE_CSI: CSI Clock selected as LPUART1 clock - * @arg RCC_LPUART1CLKSOURCE_LSE: LSE selected as LPUART1 clock - */ -#if defined (RCC_D3CCIPR_LPUART1SEL) -#define __HAL_RCC_GET_LPUART1_SOURCE() ((uint32_t)(READ_BIT(RCC->D3CCIPR, RCC_D3CCIPR_LPUART1SEL))) -#else -#define __HAL_RCC_GET_LPUART1_SOURCE() ((uint32_t)(READ_BIT(RCC->SRDCCIPR, RCC_SRDCCIPR_LPUART1SEL))) -#endif /* RCC_D3CCIPR_LPUART1SEL */ - -/** @brief macro to configure the LPTIM1 clock source. - * - * @param __LPTIM1CLKSource__ specifies the LPTIM1 clock source. - * This parameter can be one of the following values: - * @arg RCC_LPTIM1CLKSOURCE_D2PCLK1: APB1 Clock selected as LPTIM1 clock - * @arg RCC_LPTIM1CLKSOURCE_PLL2: PLL2_P Clock selected as LPTIM1 clock - * @arg RCC_LPTIM1CLKSOURCE_PLL3: PLL3_R Clock selected as LPTIM1 clock - * @arg RCC_LPTIM1CLKSOURCE_LSE: LSE selected as LPTIM1 clock - * @arg RCC_LPTIM1CLKSOURCE_LSI: LSI Clock selected as LPTIM1 clock - * @arg RCC_LPTIM1CLKSOURCE_CLKP: CLKP selected as LPTIM1 clock - */ -#if defined(RCC_D2CCIP2R_LPTIM1SEL) -#define __HAL_RCC_LPTIM1_CONFIG(__LPTIM1CLKSource__) \ - MODIFY_REG(RCC->D2CCIP2R, RCC_D2CCIP2R_LPTIM1SEL, (uint32_t)(__LPTIM1CLKSource__)) -#else -#define __HAL_RCC_LPTIM1_CONFIG(__LPTIM1CLKSource__) \ - MODIFY_REG(RCC->CDCCIP2R, RCC_CDCCIP2R_LPTIM1SEL, (uint32_t)(__LPTIM1CLKSource__)) -#endif /* RCC_D2CCIP2R_LPTIM1SEL */ - -/** @brief macro to get the LPTIM1 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_LPTIM1CLKSOURCE_D2PCLK1: APB1 Clock selected as LPTIM1 clock - * @arg RCC_LPTIM1CLKSOURCE_PLL2: PLL2_P Clock selected as LPTIM1 clock - * @arg RCC_LPTIM1CLKSOURCE_PLL3: PLL3_R Clock selected as LPTIM1 clock - * @arg RCC_LPTIM1CLKSOURCE_LSE: LSE selected as LPTIM1 clock - * @arg RCC_LPTIM1CLKSOURCE_LSI: LSI Clock selected as LPTIM1 clock - * @arg RCC_LPTIM1CLKSOURCE_CLKP: CLKP selected as LPTIM1 clock - */ -#if defined(RCC_D2CCIP2R_LPTIM1SEL) -#define __HAL_RCC_GET_LPTIM1_SOURCE() ((uint32_t)(READ_BIT(RCC->D2CCIP2R, RCC_D2CCIP2R_LPTIM1SEL))) -#else -#define __HAL_RCC_GET_LPTIM1_SOURCE() ((uint32_t)(READ_BIT(RCC->CDCCIP2R, RCC_CDCCIP2R_LPTIM1SEL))) -#endif /* RCC_D2CCIP2R_LPTIM1SEL */ - -/** @brief macro to configure the LPTIM2 clock source. - * - * @param __LPTIM2CLKSource__ specifies the LPTIM2 clock source. - * This parameter can be one of the following values: - * @arg RCC_LPTIM2CLKSOURCE_D3PCLK1: APB4 Clock selected as LPTIM2 clock - * @arg RCC_LPTIM2CLKSOURCE_PLL2: PLL2_P Clock selected as LPTIM2 clock - * @arg RCC_LPTIM2CLKSOURCE_PLL3: PLL3_R Clock selected as LPTIM2 clock - * @arg RCC_LPTIM2CLKSOURCE_LSE: LSE selected as LPTIM2 clock - * @arg RCC_LPTIM2CLKSOURCE_LSI: LSI Clock selected as LPTIM2 clock - * @arg RCC_LPTIM2CLKSOURCE_CLKP: CLKP selected as LPTIM2 clock - */ -#if defined(RCC_D3CCIPR_LPTIM2SEL) -#define __HAL_RCC_LPTIM2_CONFIG(__LPTIM2CLKSource__) \ - MODIFY_REG(RCC->D3CCIPR, RCC_D3CCIPR_LPTIM2SEL, (uint32_t)(__LPTIM2CLKSource__)) -#else -#define __HAL_RCC_LPTIM2_CONFIG(__LPTIM2CLKSource__) \ - MODIFY_REG(RCC->SRDCCIPR, RCC_SRDCCIPR_LPTIM2SEL, (uint32_t)(__LPTIM2CLKSource__)) -#endif /* RCC_D3CCIPR_LPTIM2SEL */ - -/** @brief macro to get the LPTIM2 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_LPTIM2CLKSOURCE_D3PCLK1: APB4 Clock selected as LPTIM2 clock - * @arg RCC_LPTIM2CLKSOURCE_PLL2: PLL2_P Clock selected as LPTIM2 clock - * @arg RCC_LPTIM2CLKSOURCE_PLL3: PLL3_R Clock selected as LPTIM2 clock - * @arg RCC_LPTIM2CLKSOURCE_LSE: LSE selected as LPTIM2 clock - * @arg RCC_LPTIM2CLKSOURCE_LSI: LSI Clock selected as LPTIM2 clock - * @arg RCC_LPTIM2CLKSOURCE_CLKP: CLKP selected as LPTIM2 clock - */ -#if defined(RCC_D3CCIPR_LPTIM2SEL) -#define __HAL_RCC_GET_LPTIM2_SOURCE() ((uint32_t)(READ_BIT(RCC->D3CCIPR, RCC_D3CCIPR_LPTIM2SEL))) -#else -#define __HAL_RCC_GET_LPTIM2_SOURCE() ((uint32_t)(READ_BIT(RCC->SRDCCIPR, RCC_SRDCCIPR_LPTIM2SEL))) -#endif /* RCC_D3CCIPR_LPTIM2SEL */ - -/** @brief macro to configure the LPTIM3/4/5 clock source. - * - * @param __LPTIM345CLKSource__ specifies the LPTIM3/4/5 clock source. - * @arg RCC_LPTIM345CLKSOURCE_D3PCLK1: APB4 Clock selected as LPTIM3/4/5 clock - * @arg RCC_LPTIM345CLKSOURCE_PLL2: PLL2_P Clock selected as LPTIM3/4/5 clock - * @arg RCC_LPTIM345CLKSOURCE_PLL3: PLL3_R Clock selected as LPTIM3/4/5 clock - * @arg RCC_LPTIM345CLKSOURCE_LSE: LSE selected as LPTIM3/4/5 clock - * @arg RCC_LPTIM345CLKSOURCE_LSI: LSI Clock selected as LPTIM3/4/5 clock - * @arg RCC_LPTIM345CLKSOURCE_CLKP: CLKP selected as LPTIM3/4/5 clock - */ -#if defined(RCC_D3CCIPR_LPTIM345SEL) -#define __HAL_RCC_LPTIM345_CONFIG(__LPTIM345CLKSource__) \ - MODIFY_REG(RCC->D3CCIPR, RCC_D3CCIPR_LPTIM345SEL, (uint32_t)(__LPTIM345CLKSource__)) -#else -#define __HAL_RCC_LPTIM345_CONFIG(__LPTIM345CLKSource__) \ - MODIFY_REG(RCC->SRDCCIPR, RCC_SRDCCIPR_LPTIM3SEL, (uint32_t)(__LPTIM345CLKSource__)) -#endif /* RCC_D3CCIPR_LPTIM345SEL */ - -/** @brief macro to get the LPTIM3/4/5 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_LPTIM345CLKSOURCE_D3PCLK1: APB4 Clock selected as LPTIM3/4/5 clock - * @arg RCC_LPTIM345CLKSOURCE_PLL2: PLL2_P Clock selected as LPTIM3/4/5 clock - * @arg RCC_LPTIM345CLKSOURCE_PLL3: PLL3_R Clock selected as LPTIM3/4/5 clock - * @arg RCC_LPTIM345CLKSOURCE_LSE: LSE selected as LPTIM3/4/5 clock - * @arg RCC_LPTIM345CLKSOURCE_LSI: LSI Clock selected as LPTIM3/4/5 clock - * @arg RCC_LPTIM345CLKSOURCE_CLKP: CLKP selected as LPTIM3/4/5 clock - */ -#if defined(RCC_D3CCIPR_LPTIM345SEL) -#define __HAL_RCC_GET_LPTIM345_SOURCE() ((uint32_t)(READ_BIT(RCC->D3CCIPR, RCC_D3CCIPR_LPTIM345SEL))) -#else -#define __HAL_RCC_GET_LPTIM345_SOURCE() ((uint32_t)(READ_BIT(RCC->SRDCCIPR, RCC_SRDCCIPR_LPTIM3SEL))) -#endif /* RCC_D3CCIPR_LPTIM345SEL */ - -/** @brief macro to configure the LPTIM3 clock source. - * - * @param __LPTIM3CLKSource__ specifies the LPTIM3 clock source. - * @arg RCC_LPTIM3CLKSOURCE_D3PCLK1: APB4 Clock selected as LPTIM3 clock - * @arg RCC_LPTIM3CLKSOURCE_PLL2: PLL2_P Clock selected as LPTIM3 clock - * @arg RCC_LPTIM3CLKSOURCE_PLL3: PLL3_R Clock selected as LPTIM3 clock - * @arg RCC_LPTIM3CLKSOURCE_LSE: LSE selected as LPTIM3 clock - * @arg RCC_LPTIM3CLKSOURCE_LSI: LSI Clock selected as LPTIM3 clock - * @arg RCC_LPTIM3CLKSOURCE_CLKP: CLKP selected as LPTIM3 clock - */ -#define __HAL_RCC_LPTIM3_CONFIG __HAL_RCC_LPTIM345_CONFIG - -/** @brief macro to get the LPTIM3 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_LPTIM3CLKSOURCE_D3PCLK1: APB4 Clock selected as LPTIM3 clock - * @arg RCC_LPTIM3CLKSOURCE_PLL2: PLL2_P Clock selected as LPTIM3 clock - * @arg RCC_LPTIM3CLKSOURCE_PLL3: PLL3_R Clock selected as LPTIM3 clock - * @arg RCC_LPTIM3CLKSOURCE_LSE: LSE selected as LPTIM3 clock - * @arg RCC_LPTIM3CLKSOURCE_LSI: LSI Clock selected as LPTIM3 clock - * @arg RCC_LPTIM3CLKSOURCE_CLKP: CLKP selected as LPTIM3 clock - */ -#define __HAL_RCC_GET_LPTIM3_SOURCE __HAL_RCC_GET_LPTIM345_SOURCE - -#if defined(LPTIM4) -/** @brief macro to configure the LPTIM4 clock source. - * - * @param __LPTIM4CLKSource__ specifies the LPTIM4 clock source. - * @arg RCC_LPTIM4CLKSOURCE_D3PCLK1: APB4 Clock selected as LPTIM4 clock - * @arg RCC_LPTIM4CLKSOURCE_PLL2: PLL2_P Clock selected as LPTIM4 clock - * @arg RCC_LPTIM4CLKSOURCE_PLL3: PLL3_R Clock selected as LPTIM4 clock - * @arg RCC_LPTIM4CLKSOURCE_LSE: LSE selected as LPTIM4 clock - * @arg RCC_LPTIM4CLKSOURCE_LSI: LSI Clock selected as LPTIM4 clock - * @arg RCC_LPTIM4CLKSOURCE_CLKP: CLKP selected as LPTIM4 clock - */ -#define __HAL_RCC_LPTIM4_CONFIG __HAL_RCC_LPTIM345_CONFIG - - -/** @brief macro to get the LPTIM4 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_LPTIM4CLKSOURCE_D3PCLK1: APB4 Clock selected as LPTIM4 clock - * @arg RCC_LPTIM4CLKSOURCE_PLL2: PLL2_P Clock selected as LPTIM4 clock - * @arg RCC_LPTIM4CLKSOURCE_PLL3: PLL3_R Clock selected as LPTIM4 clock - * @arg RCC_LPTIM4CLKSOURCE_LSE: LSE selected as LPTIM4 clock - * @arg RCC_LPTIM4CLKSOURCE_LSI: LSI Clock selected as LPTIM4 clock - * @arg RCC_LPTIM4CLKSOURCE_CLKP: CLKP selected as LPTIM4 clock - */ -#define __HAL_RCC_GET_LPTIM4_SOURCE __HAL_RCC_GET_LPTIM345_SOURCE -#endif /* LPTIM4 */ - -#if defined(LPTIM5) -/** @brief macro to configure the LPTIM5 clock source. - * - * @param __LPTIM5CLKSource__ specifies the LPTIM5 clock source. - * @arg RCC_LPTIM5CLKSOURCE_D3PCLK1: APB4 Clock selected as LPTIM5 clock - * @arg RCC_LPTIM5CLKSOURCE_PLL2: PLL2_P Clock selected as LPTIM5 clock - * @arg RCC_LPTIM5CLKSOURCE_PLL3: PLL3_R Clock selected as LPTIM5 clock - * @arg RCC_LPTIM5CLKSOURCE_LSE: LSE selected as LPTIM5 clock - * @arg RCC_LPTIM5CLKSOURCE_LSI: LSI Clock selected as LPTIM5 clock - * @arg RCC_LPTIM5CLKSOURCE_CLKP: CLKP selected as LPTIM5 clock - */ -#define __HAL_RCC_LPTIM5_CONFIG __HAL_RCC_LPTIM345_CONFIG - - -/** @brief macro to get the LPTIM5 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_LPTIM5CLKSOURCE_D3PCLK1: APB4 Clock selected as LPTIM5 clock - * @arg RCC_LPTIM5CLKSOURCE_PLL2: PLL2_P Clock selected as LPTIM5 clock - * @arg RCC_LPTIM5CLKSOURCE_PLL3: PLL3_R Clock selected as LPTIM5 clock - * @arg RCC_LPTIM5CLKSOURCE_LSE: LSE selected as LPTIM5 clock - * @arg RCC_LPTIM5CLKSOURCE_LSI: LSI Clock selected as LPTIM5 clock - * @arg RCC_LPTIM5CLKSOURCE_CLKP: CLKP selected as LPTIM5 clock - */ -#define __HAL_RCC_GET_LPTIM5_SOURCE __HAL_RCC_GET_LPTIM345_SOURCE -#endif /* LPTIM5 */ - -#if defined(QUADSPI) -/** @brief macro to configure the QSPI clock source. - * - * @param __QSPICLKSource__ specifies the QSPI clock source. - * @arg RCC_RCC_QSPICLKSOURCE_D1HCLK: Domain1 HCLK Clock selected as QSPI clock - * @arg RCC_RCC_QSPICLKSOURCE_PLL : PLL1_Q Clock selected as QSPI clock - * @arg RCC_RCC_QSPICLKSOURCE_PLL2 : PLL2_R Clock selected as QSPI clock - * @arg RCC_RCC_QSPICLKSOURCE_CLKP CLKP selected as QSPI clock - */ -#define __HAL_RCC_QSPI_CONFIG(__QSPICLKSource__) \ - MODIFY_REG(RCC->D1CCIPR, RCC_D1CCIPR_QSPISEL, (uint32_t)(__QSPICLKSource__)) - - -/** @brief macro to get the QSPI clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_RCC_QSPICLKSOURCE_D1HCLK: Domain1 HCLK Clock selected as QSPI clock - * @arg RCC_RCC_QSPICLKSOURCE_PLL : PLL1_Q Clock selected as QSPI clock - * @arg RCC_RCC_QSPICLKSOURCE_PLL2 : PLL2_R Clock selected as QSPI clock - * @arg RCC_RCC_QSPICLKSOURCE_CLKP CLKP selected as QSPI clock - */ -#define __HAL_RCC_GET_QSPI_SOURCE() ((uint32_t)(READ_BIT(RCC->D1CCIPR, RCC_D1CCIPR_QSPISEL))) -#endif /* QUADSPI */ - -#if defined(OCTOSPI1) || defined(OCTOSPI2) -/** @brief macro to configure the OSPI clock source. - * - * @param __OSPICLKSource__ specifies the OSPI clock source. - * @arg RCC_RCC_OSPICLKSOURCE_CDHCLK: Domain1 HCLK Clock selected as OSPI clock - * @arg RCC_RCC_OSPICLKSOURCE_PLL : PLL1_Q Clock selected as OSPI clock - * @arg RCC_RCC_OSPICLKSOURCE_PLL2 : PLL2_R Clock selected as OSPI clock - * @arg RCC_RCC_OSPICLKSOURCE_CLKP CLKP selected as OSPI clock - */ -#if defined(RCC_CDCCIPR_OCTOSPISEL) -#define __HAL_RCC_OSPI_CONFIG(__OSPICLKSource__) \ - MODIFY_REG(RCC->CDCCIPR, RCC_CDCCIPR_OCTOSPISEL, (uint32_t)(__OSPICLKSource__)) -#else -#define __HAL_RCC_OSPI_CONFIG(__OSPICLKSource__) \ - MODIFY_REG(RCC->D1CCIPR, RCC_D1CCIPR_OCTOSPISEL, (uint32_t)(__OSPICLKSource__)) -#endif /* RCC_CDCCIPR_OCTOSPISEL */ - -/** @brief macro to get the OSPI clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_RCC_OSPICLKSOURCE_D1HCLK: Domain1 HCLK Clock selected as OSPI clock - * @arg RCC_RCC_OSPICLKSOURCE_PLL : PLL1_Q Clock selected as OSPI clock - * @arg RCC_RCC_OSPICLKSOURCE_PLL2 : PLL2_R Clock selected as OSPI clock - * @arg RCC_RCC_OSPICLKSOURCE_CLKP CLKP selected as OSPI clock - */ -#if defined(RCC_CDCCIPR_OCTOSPISEL) -#define __HAL_RCC_GET_OSPI_SOURCE() ((uint32_t)(READ_BIT(RCC->CDCCIPR, RCC_CDCCIPR_OCTOSPISEL))) -#else -#define __HAL_RCC_GET_OSPI_SOURCE() ((uint32_t)(READ_BIT(RCC->D1CCIPR, RCC_D1CCIPR_OCTOSPISEL))) -#endif /* RCC_CDCCIPR_OCTOSPISEL */ -#endif /* defined(OCTOSPI1) || defined(OCTOSPI2) */ - - -#if defined(DSI) -/** @brief macro to configure the DSI clock source. - * - * @param __DSICLKSource__ specifies the DSI clock source. - * @arg RCC_RCC_DSICLKSOURCE_PHY:DSI clock from PHY is selected as DSI byte lane clock - * @arg RCC_RCC_DSICLKSOURCE_PLL2 : PLL2_Q Clock clock is selected as DSI byte lane clock - */ -#define __HAL_RCC_DSI_CONFIG(__DSICLKSource__) \ - MODIFY_REG(RCC->D1CCIPR, RCC_D1CCIPR_DSISEL, (uint32_t)(__DSICLKSource__)) - - -/** @brief macro to get the DSI clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_RCC_DSICLKSOURCE_PHY: DSI clock from PHY is selected as DSI byte lane clock - * @arg RCC_RCC_DSICLKSOURCE_PLL2: PLL2_Q Clock clock is selected as DSI byte lane clock - */ -#define __HAL_RCC_GET_DSI_SOURCE() ((uint32_t)(READ_BIT(RCC->D1CCIPR, RCC_D1CCIPR_DSISEL))) -#endif /*DSI*/ - -/** @brief macro to configure the FMC clock source. - * - * @param __FMCCLKSource__ specifies the FMC clock source. - * @arg RCC_RCC_FMCCLKSOURCE_D1HCLK: Domain1 HCLK Clock selected as FMC clock - * @arg RCC_RCC_FMCCLKSOURCE_PLL : PLL1_Q Clock selected as FMC clock - * @arg RCC_RCC_FMCCLKSOURCE_PLL2 : PLL2_R Clock selected as FMC clock - * @arg RCC_RCC_FMCCLKSOURCE_CLKP CLKP selected as FMC clock - */ -#if defined(RCC_D1CCIPR_FMCSEL) -#define __HAL_RCC_FMC_CONFIG(__FMCCLKSource__) \ - MODIFY_REG(RCC->D1CCIPR, RCC_D1CCIPR_FMCSEL, (uint32_t)(__FMCCLKSource__)) -#else -#define __HAL_RCC_FMC_CONFIG(__FMCCLKSource__) \ - MODIFY_REG(RCC->CDCCIPR, RCC_CDCCIPR_FMCSEL, (uint32_t)(__FMCCLKSource__)) -#endif /* RCC_D1CCIPR_FMCSEL */ - -/** @brief macro to get the FMC clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_RCC_FMCCLKSOURCE_D1HCLK: Domain1 HCLK Clock selected as FMC clock - * @arg RCC_RCC_FMCCLKSOURCE_PLL : PLL1_Q Clock selected as FMC clock - * @arg RCC_RCC_FMCCLKSOURCE_PLL2 : PLL2_R Clock selected as FMC clock - * @arg RCC_RCC_FMCCLKSOURCE_CLKP CLKP selected as FMC clock - */ -#if defined(RCC_D1CCIPR_FMCSEL) -#define __HAL_RCC_GET_FMC_SOURCE() ((uint32_t)(READ_BIT(RCC->D1CCIPR, RCC_D1CCIPR_FMCSEL))) -#else -#define __HAL_RCC_GET_FMC_SOURCE() ((uint32_t)(READ_BIT(RCC->CDCCIPR, RCC_CDCCIPR_FMCSEL))) -#endif /* RCC_D1CCIPR_FMCSEL */ - -/** @brief Macro to configure the USB clock (USBCLK). - * @param __USBCLKSource__ specifies the USB clock source. - * This parameter can be one of the following values: - * @arg RCC_USBCLKSOURCE_PLL: PLL1Q selected as USB clock - * @arg RCC_USBCLKSOURCE_PLL3: PLL3Q Clock selected as USB clock - * @arg RCC_USBCLKSOURCE_HSI48: RC48 MHZ Clock selected as USB clock - */ -#if defined(RCC_D2CCIP2R_USBSEL) -#define __HAL_RCC_USB_CONFIG(__USBCLKSource__) \ - MODIFY_REG(RCC->D2CCIP2R, RCC_D2CCIP2R_USBSEL, (uint32_t)(__USBCLKSource__)) -#else -#define __HAL_RCC_USB_CONFIG(__USBCLKSource__) \ - MODIFY_REG(RCC->CDCCIP2R, RCC_CDCCIP2R_USBSEL, (uint32_t)(__USBCLKSource__)) -#endif /* RCC_D2CCIP2R_USBSEL */ - -/** @brief Macro to get the USB clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_USBCLKSOURCE_PLL: PLL1Q selected as USB clock - * @arg RCC_USBCLKSOURCE_PLL3: PLL3Q Clock selected as USB clock - * @arg RCC_USBCLKSOURCE_HSI48: RC48 MHZ Clock selected as USB clock - */ -#if defined(RCC_D2CCIP2R_USBSEL) -#define __HAL_RCC_GET_USB_SOURCE() ((uint32_t)(READ_BIT(RCC->D2CCIP2R, RCC_D2CCIP2R_USBSEL))) -#else -#define __HAL_RCC_GET_USB_SOURCE() ((uint32_t)(READ_BIT(RCC->CDCCIP2R, RCC_CDCCIP2R_USBSEL))) -#endif /* RCC_D2CCIP2R_USBSEL */ - -/** @brief Macro to configure the ADC clock - * @param __ADCCLKSource__ specifies the ADC digital interface clock source. - * This parameter can be one of the following values: - * @arg RCC_ADCCLKSOURCE_PLL2: PLL2_P Clock selected as ADC clock - * @arg RCC_ADCCLKSOURCE_PLL3: PLL3_R Clock selected as ADC clock - * @arg RCC_ADCCLKSOURCE_CLKP: CLKP Clock selected as ADC clock - */ -#if defined(RCC_D3CCIPR_ADCSEL) -#define __HAL_RCC_ADC_CONFIG(__ADCCLKSource__) \ - MODIFY_REG(RCC->D3CCIPR, RCC_D3CCIPR_ADCSEL, (uint32_t)(__ADCCLKSource__)) -#else -#define __HAL_RCC_ADC_CONFIG(__ADCCLKSource__) \ - MODIFY_REG(RCC->SRDCCIPR, RCC_SRDCCIPR_ADCSEL, (uint32_t)(__ADCCLKSource__)) -#endif /* RCC_D3CCIPR_ADCSEL */ - -/** @brief Macro to get the ADC clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_ADCCLKSOURCE_PLL2: PLL2_P Clock selected as ADC clock - * @arg RCC_ADCCLKSOURCE_PLL3: PLL3_R Clock selected as ADC clock - * @arg RCC_ADCCLKSOURCE_CLKP: CLKP Clock selected as ADC clock - */ -#if defined(RCC_D3CCIPR_ADCSEL) -#define __HAL_RCC_GET_ADC_SOURCE() ((uint32_t)(READ_BIT(RCC->D3CCIPR, RCC_D3CCIPR_ADCSEL))) -#else -#define __HAL_RCC_GET_ADC_SOURCE() ((uint32_t)(READ_BIT(RCC->SRDCCIPR, RCC_SRDCCIPR_ADCSEL))) -#endif /* RCC_D3CCIPR_ADCSEL */ - -/** @brief Macro to configure the SWPMI1 clock - * @param __SWPMI1CLKSource__ specifies the SWPMI1 clock source. - * This parameter can be one of the following values: - * @arg RCC_SWPMI1CLKSOURCE_D2PCLK1: D2PCLK1 Clock selected as SWPMI1 clock - * @arg RCC_SWPMI1CLKSOURCE_HSI: HSI Clock selected as SWPMI1 clock - */ -#if defined(RCC_D2CCIP1R_SWPSEL) -#define __HAL_RCC_SWPMI1_CONFIG(__SWPMI1CLKSource__) \ - MODIFY_REG(RCC->D2CCIP1R, RCC_D2CCIP1R_SWPSEL, (uint32_t)(__SWPMI1CLKSource__)) -#else -#define __HAL_RCC_SWPMI1_CONFIG(__SWPMI1CLKSource__) \ - MODIFY_REG(RCC->CDCCIP1R, RCC_CDCCIP1R_SWPSEL, (uint32_t)(__SWPMI1CLKSource__)) -#endif /* RCC_D2CCIP1R_SWPSEL */ - -/** @brief Macro to get the SWPMI1 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_SWPMI1CLKSOURCE_D2PCLK1: D2PCLK1 Clock selected as SWPMI1 clock - * @arg RCC_SWPMI1CLKSOURCE_HSI: HSI Clock selected as SWPMI1 clock - */ -#if defined(RCC_D2CCIP1R_SWPSEL) -#define __HAL_RCC_GET_SWPMI1_SOURCE() ((uint32_t)(READ_BIT(RCC->D2CCIP1R, RCC_D2CCIP1R_SWPSEL))) -#else -#define __HAL_RCC_GET_SWPMI1_SOURCE() ((uint32_t)(READ_BIT(RCC->CDCCIP1R, RCC_CDCCIP1R_SWPSEL))) -#endif /* RCC_D2CCIP1R_SWPSEL */ - -/** @brief Macro to configure the DFSDM1 clock - * @param __DFSDM1CLKSource__ specifies the DFSDM1 clock source. - * This parameter can be one of the following values: - * @arg RCC_DFSDM1CLKSOURCE_D2PCLK: D2PCLK Clock selected as DFSDM1 clock - * @arg RCC_DFSDM1CLKSOURCE_SYS: System Clock selected as DFSDM1 clock - */ -#if defined(RCC_D2CCIP1R_DFSDM1SEL) -#define __HAL_RCC_DFSDM1_CONFIG(__DFSDM1CLKSource__) \ - MODIFY_REG(RCC->D2CCIP1R, RCC_D2CCIP1R_DFSDM1SEL, (uint32_t)(__DFSDM1CLKSource__)) -#else -#define __HAL_RCC_DFSDM1_CONFIG(__DFSDM1CLKSource__) \ - MODIFY_REG(RCC->CDCCIP1R, RCC_CDCCIP1R_DFSDM1SEL, (uint32_t)(__DFSDM1CLKSource__)) -#endif /* RCC_D2CCIP1R_DFSDM1SEL */ - -/** @brief Macro to get the DFSDM1 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_DFSDM1CLKSOURCE_D2PCLK: D2PCLK Clock selected as DFSDM1 clock - * @arg RCC_DFSDM1CLKSOURCE_SYS: System Clock selected as DFSDM1 clock - */ -#if defined (RCC_D2CCIP1R_DFSDM1SEL) -#define __HAL_RCC_GET_DFSDM1_SOURCE() ((uint32_t)(READ_BIT(RCC->D2CCIP1R, RCC_D2CCIP1R_DFSDM1SEL))) -#else -#define __HAL_RCC_GET_DFSDM1_SOURCE() ((uint32_t)(READ_BIT(RCC->CDCCIP1R, RCC_CDCCIP1R_DFSDM1SEL))) -#endif /* RCC_D2CCIP1R_DFSDM1SEL */ - -#if defined(DFSDM2_BASE) -/** @brief Macro to configure the DFSDM2 clock - * @param __DFSDM2CLKSource__ specifies the DFSDM2 clock source. - * This parameter can be one of the following values: - * @arg RCC_DFSDM2CLKSOURCE_SRDPCLK1: SRDPCLK1 (APB4) selected as DFSDM2 clock - * @arg RCC_DFSDM2CLKSOURCE_SYS: System Clock selected as DFSDM2 clock - */ -#define __HAL_RCC_DFSDM2_CONFIG(__DFSDM2CLKSource__) \ - MODIFY_REG(RCC->SRDCCIPR, RCC_SRDCCIPR_DFSDM2SEL, (uint32_t)(__DFSDM2CLKSource__)) - -/** @brief Macro to get the DFSDM2 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_DFSDM2CLKSOURCE_SRDPCLK1: SRDPCLK1 (APB4) Clock selected as DFSDM2 clock - * @arg RCC_DFSDM2CLKSOURCE_SYS: System Clock selected as DFSDM2 clock - */ -#define __HAL_RCC_GET_DFSDM2_SOURCE() ((uint32_t)(READ_BIT(RCC->SRDCCIPR, RCC_SRDCCIPR_DFSDM2SEL))) -#endif /* DFSDM2 */ - -/** @brief macro to configure the CEC clock (CECCLK). - * - * @param __CECCLKSource__ specifies the CEC clock source. - * This parameter can be one of the following values: - * @arg RCC_CECCLKSOURCE_LSE: LSE selected as CEC clock - * @arg RCC_CECCLKSOURCE_LSI: LSI selected as CEC clock - * @arg RCC_CECCLKSOURCE_CSI: CSI Clock selected as CEC clock - */ -#if defined(RCC_D2CCIP2R_CECSEL) -#define __HAL_RCC_CEC_CONFIG(__CECCLKSource__) \ - MODIFY_REG(RCC->D2CCIP2R, RCC_D2CCIP2R_CECSEL, (uint32_t)(__CECCLKSource__)) -#else -#define __HAL_RCC_CEC_CONFIG(__CECCLKSource__) \ - MODIFY_REG(RCC->CDCCIP2R, RCC_CDCCIP2R_CECSEL, (uint32_t)(__CECCLKSource__)) -#endif /* RCC_D2CCIP2R_CECSEL */ - -/** @brief macro to get the CEC clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_CECCLKSOURCE_LSE: LSE selected as CEC clock - * @arg RCC_CECCLKSOURCE_LSI: LSI selected as CEC clock - * @arg RCC_CECCLKSOURCE_CSI: CSI Clock selected as CEC clock - */ -#if defined(RCC_D2CCIP2R_CECSEL) -#define __HAL_RCC_GET_CEC_SOURCE() ((uint32_t)(READ_BIT(RCC->D2CCIP2R, RCC_D2CCIP2R_CECSEL))) -#else -#define __HAL_RCC_GET_CEC_SOURCE() ((uint32_t)(READ_BIT(RCC->CDCCIP2R, RCC_CDCCIP2R_CECSEL))) -#endif /* RCC_D2CCIP2R_CECSEL */ - -/** @brief Macro to configure the CLKP : Oscillator clock for peripheral - * @param __CLKPSource__ specifies Oscillator clock for peripheral - * This parameter can be one of the following values: - * @arg RCC_CLKPSOURCE_HSI: HSI selected Oscillator clock for peripheral - * @arg RCC_CLKPSOURCE_CSI: CSI selected Oscillator clock for peripheral - * @arg RCC_CLKPSOURCE_HSE: HSE selected Oscillator clock for peripheral - */ -#if defined(RCC_D1CCIPR_CKPERSEL) -#define __HAL_RCC_CLKP_CONFIG(__CLKPSource__) \ - MODIFY_REG(RCC->D1CCIPR, RCC_D1CCIPR_CKPERSEL, (uint32_t)(__CLKPSource__)) -#else -#define __HAL_RCC_CLKP_CONFIG(__CLKPSource__) \ - MODIFY_REG(RCC->CDCCIPR, RCC_CDCCIPR_CKPERSEL, (uint32_t)(__CLKPSource__)) -#endif /* RCC_D1CCIPR_CKPERSEL */ - -/** @brief Macro to get the Oscillator clock for peripheral source. - * @retval The clock source can be one of the following values: - * @arg RCC_CLKPSOURCE_HSI: HSI selected Oscillator clock for peripheral - * @arg RCC_CLKPSOURCE_CSI: CSI selected Oscillator clock for peripheral - * @arg RCC_CLKPSOURCE_HSE: HSE selected Oscillator clock for peripheral - */ -#if defined(RCC_D1CCIPR_CKPERSEL) -#define __HAL_RCC_GET_CLKP_SOURCE() ((uint32_t)(READ_BIT(RCC->D1CCIPR, RCC_D1CCIPR_CKPERSEL))) -#else -#define __HAL_RCC_GET_CLKP_SOURCE() ((uint32_t)(READ_BIT(RCC->CDCCIPR, RCC_CDCCIPR_CKPERSEL))) -#endif /* RCC_D1CCIPR_CKPERSEL */ - -#if defined(FDCAN1) || defined(FDCAN2) -/** @brief Macro to configure the FDCAN clock - * @param __FDCANCLKSource__ specifies clock source for FDCAN - * This parameter can be one of the following values: - * @arg RCC_FDCANCLKSOURCE_HSE: HSE selected as FDCAN clock - * @arg RCC_FDCANCLKSOURCE_PLL: PLL selected as FDCAN clock - * @arg RCC_FDCANCLKSOURCE_PLL2: PLL2 selected as FDCAN clock - */ -#if defined(RCC_D2CCIP1R_FDCANSEL) -#define __HAL_RCC_FDCAN_CONFIG(__FDCANCLKSource__) \ - MODIFY_REG(RCC->D2CCIP1R, RCC_D2CCIP1R_FDCANSEL, (uint32_t)(__FDCANCLKSource__)) -#else -#define __HAL_RCC_FDCAN_CONFIG(__FDCANCLKSource__) \ - MODIFY_REG(RCC->CDCCIP1R, RCC_CDCCIP1R_FDCANSEL, (uint32_t)(__FDCANCLKSource__)) -#endif /* RCC_D2CCIP1R_FDCANSEL */ - -/** @brief Macro to get the FDCAN clock - * @retval The clock source can be one of the following values: - * @arg RCC_FDCANCLKSOURCE_HSE: HSE selected as FDCAN clock - * @arg RCC_FDCANCLKSOURCE_PLL: PLL selected as FDCAN clock - * @arg RCC_FDCANCLKSOURCE_PLL2: PLL2 selected as FDCAN clock - */ -#if defined(RCC_D2CCIP1R_FDCANSEL) -#define __HAL_RCC_GET_FDCAN_SOURCE() ((uint32_t)(READ_BIT(RCC->D2CCIP1R, RCC_D2CCIP1R_FDCANSEL))) -#else -#define __HAL_RCC_GET_FDCAN_SOURCE() ((uint32_t)(READ_BIT(RCC->CDCCIP1R, RCC_CDCCIP1R_FDCANSEL))) -#endif /* RCC_D2CCIP1R_FDCANSEL */ - -#endif /*FDCAN1 || FDCAN2*/ - -/** - * @brief Macro to Configure the SPI1/2/3 clock source. - * @param __RCC_SPI123CLKSource__ defines the SPI1/2/3 clock source. This clock is derived - * from system PLL, PLL2, PLL3, OSC or external clock (through a dedicated PIN) - * This parameter can be one of the following values: - * @arg RCC_SPI123CLKSOURCE_PLL: SPI1/2/3 clock = PLL - * @arg RCC_SPI123CLKSOURCE_PLL2: SPI1/2/3 clock = PLL2 - * @arg RCC_SPI123CLKSOURCE_PLL3: SPI1/2/3 clock = PLL3 - * @arg RCC_SPI123CLKSOURCE_CLKP: SPI1/2/3 clock = CLKP - * @arg RCC_SPI123CLKSOURCE_PIN: SPI1/2/3 clock = External Clock - * @retval None - */ -#if defined(RCC_D2CCIP1R_SPI123SEL) -#define __HAL_RCC_SPI123_CONFIG(__RCC_SPI123CLKSource__ )\ - MODIFY_REG(RCC->D2CCIP1R, RCC_D2CCIP1R_SPI123SEL, (__RCC_SPI123CLKSource__)) -#else -#define __HAL_RCC_SPI123_CONFIG(__RCC_SPI123CLKSource__ )\ - MODIFY_REG(RCC->CDCCIP1R, RCC_CDCCIP1R_SPI123SEL, (__RCC_SPI123CLKSource__)) -#endif /* RCC_D2CCIP1R_SPI123SEL */ - -/** @brief Macro to get the SPI1/2/3 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_SPI123CLKSOURCE_PLL: SPI1/2/3 clock = PLL - * @arg RCC_SPI123CLKSOURCE_PLL2: SPI1/2/3 clock = PLL2 - * @arg RCC_SPI123CLKSOURCE_PLL3: SPI1/2/3 clock = PLL3 - * @arg RCC_SPI123CLKSOURCE_CLKP: SPI1/2/3 clock = CLKP - * @arg RCC_SPI123CLKSOURCE_PIN: SPI1/2/3 clock = External Clock - */ -#if defined(RCC_D2CCIP1R_SPI123SEL) -#define __HAL_RCC_GET_SPI123_SOURCE() ((uint32_t)(READ_BIT(RCC->D2CCIP1R, RCC_D2CCIP1R_SPI123SEL))) -#else -#define __HAL_RCC_GET_SPI123_SOURCE() ((uint32_t)(READ_BIT(RCC->CDCCIP1R, RCC_CDCCIP1R_SPI123SEL))) -#endif /* RCC_D2CCIP1R_SPI123SEL */ - -/** - * @brief Macro to Configure the SPI1 clock source. - * @param __RCC_SPI1CLKSource__ defines the SPI1 clock source. This clock is derived - * from system PLL, PLL2, PLL3, OSC or external clock (through a dedicated PIN) - * This parameter can be one of the following values: - * @arg RCC_SPI1CLKSOURCE_PLL: SPI1 clock = PLL - * @arg RCC_SPI1CLKSOURCE_PLL2: SPI1 clock = PLL2 - * @arg RCC_SPI1CLKSOURCE_PLL3: SPI1 clock = PLL3 - * @arg RCC_SPI1CLKSOURCE_CLKP: SPI1 clock = CLKP - * @arg RCC_SPI1CLKSOURCE_PIN: SPI1 clock = External Clock - * @retval None - */ -#define __HAL_RCC_SPI1_CONFIG __HAL_RCC_SPI123_CONFIG - -/** @brief Macro to get the SPI1 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_SPI1CLKSOURCE_PLL: SPI1 clock = PLL - * @arg RCC_SPI1CLKSOURCE_PLL2: SPI1 clock = PLL2 - * @arg RCC_SPI1CLKSOURCE_PLL3: SPI1 clock = PLL3 - * @arg RCC_SPI1CLKSOURCE_CLKP: SPI1 clock = CLKP - * @arg RCC_SPI1CLKSOURCE_PIN: SPI1 clock = External Clock - */ -#define __HAL_RCC_GET_SPI1_SOURCE __HAL_RCC_GET_SPI123_SOURCE - -/** - * @brief Macro to Configure the SPI2 clock source. - * @param __RCC_SPI2CLKSource__ defines the SPI2 clock source. This clock is derived - * from system PLL, PLL2, PLL3, OSC or external clock (through a dedicated PIN) - * This parameter can be one of the following values: - * @arg RCC_SPI2CLKSOURCE_PLL: SPI2 clock = PLL - * @arg RCC_SPI2CLKSOURCE_PLL2: SPI2 clock = PLL2 - * @arg RCC_SPI2CLKSOURCE_PLL3: SPI2 clock = PLL3 - * @arg RCC_SPI2CLKSOURCE_CLKP: SPI2 clock = CLKP - * @arg RCC_SPI2CLKSOURCE_PIN: SPI2 clock = External Clock - * @retval None - */ -#define __HAL_RCC_SPI2_CONFIG __HAL_RCC_SPI123_CONFIG - -/** @brief Macro to get the SPI2 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_SPI2CLKSOURCE_PLL: SPI2 clock = PLL - * @arg RCC_SPI2CLKSOURCE_PLL2: SPI2 clock = PLL2 - * @arg RCC_SPI2CLKSOURCE_PLL3: SPI2 clock = PLL3 - * @arg RCC_SPI2CLKSOURCE_CLKP: SPI2 clock = CLKP - * @arg RCC_SPI2CLKSOURCE_PIN: SPI2 clock = External Clock - */ -#define __HAL_RCC_GET_SPI2_SOURCE __HAL_RCC_GET_SPI123_SOURCE - -/** - * @brief Macro to Configure the SPI3 clock source. - * @param __RCC_SPI3CLKSource__ defines the SPI3 clock source. This clock is derived - * from system PLL, PLL2, PLL3, OSC or external clock (through a dedicated PIN) - * This parameter can be one of the following values: - * @arg RCC_SPI3CLKSOURCE_PLL: SPI3 clock = PLL - * @arg RCC_SPI3CLKSOURCE_PLL2: SPI3 clock = PLL2 - * @arg RCC_SPI3CLKSOURCE_PLL3: SPI3 clock = PLL3 - * @arg RCC_SPI3CLKSOURCE_CLKP: SPI3 clock = CLKP - * @arg RCC_SPI3CLKSOURCE_PIN: SPI3 clock = External Clock - * @retval None - */ -#define __HAL_RCC_SPI3_CONFIG __HAL_RCC_SPI123_CONFIG - -/** @brief Macro to get the SPI3 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_SPI3CLKSOURCE_PLL: SPI3 clock = PLL - * @arg RCC_SPI3CLKSOURCE_PLL2: SPI3 clock = PLL2 - * @arg RCC_SPI3CLKSOURCE_PLL3: SPI3 clock = PLL3 - * @arg RCC_SPI3CLKSOURCE_CLKP: SPI3 clock = CLKP - * @arg RCC_SPI3CLKSOURCE_PIN: SPI3 clock = External Clock - */ -#define __HAL_RCC_GET_SPI3_SOURCE __HAL_RCC_GET_SPI123_SOURCE - -/** - * @brief Macro to Configure the SPI4/5 clock source. - * @param __RCC_SPI45CLKSource__ defines the SPI4/5 clock source. This clock is derived - * from system PCLK, PLL2, PLL3, OSC - * This parameter can be one of the following values: - * @arg RCC_SPI45CLKSOURCE_D2PCLK2:SPI4/5 clock = D2PCLK2 - * @arg RCC_SPI45CLKSOURCE_PLL2: SPI4/5 clock = PLL2 - * @arg RCC_SPI45CLKSOURCE_PLL3: SPI4/5 clock = PLL3 - * @arg RCC_SPI45CLKSOURCE_HSI: SPI4/5 clock = HSI - * @arg RCC_SPI45CLKSOURCE_CSI: SPI4/5 clock = CSI - * @arg RCC_SPI45CLKSOURCE_HSE: SPI4/5 clock = HSE - * @retval None - */ -#if defined(RCC_D2CCIP1R_SPI45SEL) -#define __HAL_RCC_SPI45_CONFIG(__RCC_SPI45CLKSource__ )\ - MODIFY_REG(RCC->D2CCIP1R, RCC_D2CCIP1R_SPI45SEL, (__RCC_SPI45CLKSource__)) -#else -#define __HAL_RCC_SPI45_CONFIG(__RCC_SPI45CLKSource__ )\ - MODIFY_REG(RCC->CDCCIP1R, RCC_CDCCIP1R_SPI45SEL, (__RCC_SPI45CLKSource__)) -#endif /* RCC_D2CCIP1R_SPI45SEL */ - -/** @brief Macro to get the SPI4/5 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_SPI45CLKSOURCE_D2PCLK2:SPI4/5 clock = D2PCLK2 - * @arg RCC_SPI45CLKSOURCE_PLL2: SPI4/5 clock = PLL2 - * @arg RCC_SPI45CLKSOURCE_PLL3: SPI4/5 clock = PLL3 - * @arg RCC_SPI45CLKSOURCE_HSI: SPI4/5 clock = HSI - * @arg RCC_SPI45CLKSOURCE_CSI: SPI4/5 clock = CSI - * @arg RCC_SPI45CLKSOURCE_HSE: SPI4/5 clock = HSE -*/ -#if defined(RCC_D2CCIP1R_SPI45SEL) -#define __HAL_RCC_GET_SPI45_SOURCE() ((uint32_t)(READ_BIT(RCC->D2CCIP1R, RCC_D2CCIP1R_SPI45SEL))) -#else -#define __HAL_RCC_GET_SPI45_SOURCE() ((uint32_t)(READ_BIT(RCC->CDCCIP1R, RCC_CDCCIP1R_SPI45SEL))) -#endif /* RCC_D2CCIP1R_SPI45SEL */ - -/** - * @brief Macro to Configure the SPI4 clock source. - * @param __RCC_SPI4CLKSource__ defines the SPI4 clock source. This clock is derived - * from system PCLK, PLL2, PLL3, OSC - * This parameter can be one of the following values: - * @arg RCC_SPI4CLKSOURCE_D2PCLK2:SPI4 clock = D2PCLK2 - * @arg RCC_SPI4CLKSOURCE_PLL2: SPI4 clock = PLL2 - * @arg RCC_SPI4CLKSOURCE_PLL3: SPI4 clock = PLL3 - * @arg RCC_SPI4CLKSOURCE_HSI: SPI4 clock = HSI - * @arg RCC_SPI4CLKSOURCE_CSI: SPI4 clock = CSI - * @arg RCC_SPI4CLKSOURCE_HSE: SPI4 clock = HSE - * @retval None - */ -#define __HAL_RCC_SPI4_CONFIG __HAL_RCC_SPI45_CONFIG - -/** @brief Macro to get the SPI4 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_SPI4CLKSOURCE_D2PCLK2:SPI4 clock = D2PCLK2 - * @arg RCC_SPI4CLKSOURCE_PLL2: SPI4 clock = PLL2 - * @arg RCC_SPI4CLKSOURCE_PLL3: SPI4 clock = PLL3 - * @arg RCC_SPI4CLKSOURCE_HSI: SPI4 clock = HSI - * @arg RCC_SPI4CLKSOURCE_CSI: SPI4 clock = CSI - * @arg RCC_SPI4CLKSOURCE_HSE: SPI4 clock = HSE -*/ -#define __HAL_RCC_GET_SPI4_SOURCE __HAL_RCC_GET_SPI45_SOURCE - -/** - * @brief Macro to Configure the SPI5 clock source. - * @param __RCC_SPI5CLKSource__ defines the SPI5 clock source. This clock is derived - * from system PCLK, PLL2, PLL3, OSC - * This parameter can be one of the following values: - * @arg RCC_SPI5CLKSOURCE_D2PCLK2:SPI5 clock = D2PCLK2 - * @arg RCC_SPI5CLKSOURCE_PLL2: SPI5 clock = PLL2 - * @arg RCC_SPI5CLKSOURCE_PLL3: SPI5 clock = PLL3 - * @arg RCC_SPI5CLKSOURCE_HSI: SPI5 clock = HSI - * @arg RCC_SPI5CLKSOURCE_CSI: SPI5 clock = CSI - * @arg RCC_SPI5CLKSOURCE_HSE: SPI5 clock = HSE - * @retval None - */ -#define __HAL_RCC_SPI5_CONFIG __HAL_RCC_SPI45_CONFIG - -/** @brief Macro to get the SPI5 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_SPI5CLKSOURCE_D2PCLK2:SPI5 clock = D2PCLK2 - * @arg RCC_SPI5CLKSOURCE_PLL2: SPI5 clock = PLL2 - * @arg RCC_SPI5CLKSOURCE_PLL3: SPI5 clock = PLL3 - * @arg RCC_SPI5CLKSOURCE_HSI: SPI5 clock = HSI - * @arg RCC_SPI5CLKSOURCE_CSI: SPI5 clock = CSI - * @arg RCC_SPI5CLKSOURCE_HSE: SPI5 clock = HSE -*/ -#define __HAL_RCC_GET_SPI5_SOURCE __HAL_RCC_GET_SPI45_SOURCE - -/** - * @brief Macro to Configure the SPI6 clock source. - * @param __RCC_SPI6CLKSource__ defines the SPI6 clock source. This clock is derived - * from system PCLK, PLL2, PLL3, OSC - * This parameter can be one of the following values: - * @arg RCC_SPI6CLKSOURCE_D3PCLK1:SPI6 clock = D2PCLK1 - * @arg RCC_SPI6CLKSOURCE_PLL2: SPI6 clock = PLL2 - * @arg RCC_SPI6CLKSOURCE_PLL3: SPI6 clock = PLL3 - * @arg RCC_SPI6CLKSOURCE_HSI: SPI6 clock = HSI - * @arg RCC_SPI6CLKSOURCE_CSI: SPI6 clock = CSI - * @arg RCC_SPI6CLKSOURCE_HSE: SPI6 clock = HSE - * @arg RCC_SPI6CLKSOURCE_PIN: SPI6 clock = I2S_CKIN (*) - * - * @retval None - * - * (*) : Available on stm32h7a3xx and stm32h7b3xx family lines. - * - */ -#if defined(RCC_D3CCIPR_SPI6SEL) -#define __HAL_RCC_SPI6_CONFIG(__RCC_SPI6CLKSource__ )\ - MODIFY_REG(RCC->D3CCIPR, RCC_D3CCIPR_SPI6SEL, (__RCC_SPI6CLKSource__)) -#else -#define __HAL_RCC_SPI6_CONFIG(__RCC_SPI6CLKSource__ )\ - MODIFY_REG(RCC->SRDCCIPR, RCC_SRDCCIPR_SPI6SEL, (__RCC_SPI6CLKSource__)) -#endif /* RCC_D3CCIPR_SPI6SEL */ - -/** @brief Macro to get the SPI6 clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_SPI6CLKSOURCE_D3PCLK1:SPI6 clock = D2PCLK1 - * @arg RCC_SPI6CLKSOURCE_PLL2: SPI6 clock = PLL2 - * @arg RCC_SPI6CLKSOURCE_PLL3: SPI6 clock = PLL3 - * @arg RCC_SPI6CLKSOURCE_HSI: SPI6 clock = HSI - * @arg RCC_SPI6CLKSOURCE_CSI: SPI6 clock = CSI - * @arg RCC_SPI6CLKSOURCE_HSE: SPI6 clock = HSE - * @arg RCC_SPI6CLKSOURCE_PIN: SPI6 clock = I2S_CKIN -*/ -#if defined(RCC_D3CCIPR_SPI6SEL) -#define __HAL_RCC_GET_SPI6_SOURCE() ((uint32_t)(READ_BIT(RCC->D3CCIPR, RCC_D3CCIPR_SPI6SEL))) -#else -#define __HAL_RCC_GET_SPI6_SOURCE() ((uint32_t)(READ_BIT(RCC->SRDCCIPR, RCC_SRDCCIPR_SPI6SEL))) -#endif /* RCC_D3CCIPR_SPI6SEL */ - -/** @brief Macro to configure the SDMMC clock - * @param __SDMMCCLKSource__ specifies clock source for SDMMC - * This parameter can be one of the following values: - * @arg RCC_SDMMCCLKSOURCE_PLL: PLLQ selected as SDMMC clock - * @arg RCC_SDMMCCLKSOURCE_PLL2: PLL2R selected as SDMMC clock - */ -#if defined(RCC_D1CCIPR_SDMMCSEL) -#define __HAL_RCC_SDMMC_CONFIG(__SDMMCCLKSource__) \ - MODIFY_REG(RCC->D1CCIPR, RCC_D1CCIPR_SDMMCSEL, (uint32_t)(__SDMMCCLKSource__)) -#else -#define __HAL_RCC_SDMMC_CONFIG(__SDMMCCLKSource__) \ - MODIFY_REG(RCC->CDCCIPR, RCC_CDCCIPR_SDMMCSEL, (uint32_t)(__SDMMCCLKSource__)) -#endif /* RCC_D1CCIPR_SDMMCSEL */ - -/** @brief Macro to get the SDMMC clock - */ -#if defined(RCC_D1CCIPR_SDMMCSEL) -#define __HAL_RCC_GET_SDMMC_SOURCE() ((uint32_t)(READ_BIT(RCC->D1CCIPR, RCC_D1CCIPR_SDMMCSEL))) -#else -#define __HAL_RCC_GET_SDMMC_SOURCE() ((uint32_t)(READ_BIT(RCC->CDCCIPR, RCC_CDCCIPR_SDMMCSEL))) -#endif /* RCC_D1CCIPR_SDMMCSEL */ - -/** @brief macro to configure the RNG clock (RNGCLK). - * - * @param __RNGCLKSource__ specifies the RNG clock source. - * This parameter can be one of the following values: - * @arg RCC_RNGCLKSOURCE_HSI48: HSI48 selected as RNG clock - * @arg RCC_RNGCLKSOURCE_PLL: PLL1Q selected as RNG clock - * @arg RCC_RNGCLKSOURCE_LSE: LSE selected as RNG clock - * @arg RCC_RNGCLKSOURCE_LSI: LSI selected as RNG clock - */ -#if defined(RCC_D2CCIP2R_RNGSEL) -#define __HAL_RCC_RNG_CONFIG(__RNGCLKSource__) \ - MODIFY_REG(RCC->D2CCIP2R, RCC_D2CCIP2R_RNGSEL, (uint32_t)(__RNGCLKSource__)) -#else -#define __HAL_RCC_RNG_CONFIG(__RNGCLKSource__) \ - MODIFY_REG(RCC->CDCCIP2R, RCC_CDCCIP2R_RNGSEL, (uint32_t)(__RNGCLKSource__)) -#endif /* RCC_D2CCIP2R_RNGSEL */ - -/** @brief macro to get the RNG clock source. - * @retval The clock source can be one of the following values: - * @arg RCC_RNGCLKSOURCE_HSI48: HSI48 selected as RNG clock - * @arg RCC_RNGCLKSOURCE_PLL: PLL1Q selected as RNG clock - * @arg RCC_RNGCLKSOURCE_LSE: LSE selected as RNG clock - * @arg RCC_RNGCLKSOURCE_LSI: LSI selected as RNG clock - */ -#if defined(RCC_D2CCIP2R_RNGSEL) -#define __HAL_RCC_GET_RNG_SOURCE() ((uint32_t)(READ_BIT(RCC->D2CCIP2R, RCC_D2CCIP2R_RNGSEL))) -#else -#define __HAL_RCC_GET_RNG_SOURCE() ((uint32_t)(READ_BIT(RCC->CDCCIP2R, RCC_CDCCIP2R_RNGSEL))) -#endif /* RCC_D2CCIP2R_RNGSEL */ - -#if defined(HRTIM1) -/** @brief Macro to configure the HRTIM1 prescaler clock source. - * @param __HRTIM1CLKSource__ specifies the HRTIM1 prescaler clock source. - * This parameter can be one of the following values: - * @arg @ref RCC_HRTIM1CLK_TIMCLK Timers clock selected as HRTIM1 prescaler clock - * @arg @ref RCC_HRTIM1CLK_CPUCLK CPU Clock selected as HRTIM1 clock - */ -#define __HAL_RCC_HRTIM1_CONFIG(__HRTIM1CLKSource__) \ - MODIFY_REG(RCC->CFGR, RCC_CFGR_HRTIMSEL, (uint32_t)(__HRTIM1CLKSource__)) - -/** @brief Macro to get the HRTIM1 clock source. - * @retval The clock source can be one of the following values: - * @arg @ref RCC_HRTIM1CLK_TIMCLK Timers clock selected as HRTIM1 prescaler clock - * @arg @ref RCC_HRTIM1CLK_CPUCLK CPU Clock selected as HRTIM1 clock - */ -#define __HAL_RCC_GET_HRTIM1_SOURCE() ((uint32_t)(READ_BIT(RCC->CFGR, RCC_CFGR_HRTIMSEL))) -#endif /* HRTIM1 */ - -/** @brief Macro to configure the Timers clocks prescalers - * @param __PRESC__ specifies the Timers clocks prescalers selection - * This parameter can be one of the following values: - * @arg RCC_TIMPRES_DESACTIVATED: The Timers kernels clocks prescaler is - * equal to rcc_hclk1 if D2PPREx is corresponding to division by 1 or 2, - * else it is equal to 2 x Frcc_pclkx_d2 (default after reset) - * @arg RCC_TIMPRES_ACTIVATED: The Timers kernels clocks prescaler is - * equal to rcc_hclk1 if D2PPREx is corresponding to division by 1, 2 or 4, - * else it is equal to 4 x Frcc_pclkx_d2 - */ -#define __HAL_RCC_TIMCLKPRESCALER(__PRESC__) do {RCC->CFGR &= ~(RCC_CFGR_TIMPRE);\ - RCC->CFGR |= (__PRESC__); \ - }while(0) - -/** - * @brief Enable the RCC LSE CSS Extended Interrupt Line. - * @retval None - */ -#define __HAL_RCC_LSECSS_EXTI_ENABLE_IT() SET_BIT(EXTI->IMR1, RCC_EXTI_LINE_LSECSS) - -/** - * @brief Disable the RCC LSE CSS Extended Interrupt Line. - * @retval None - */ -#define __HAL_RCC_LSECSS_EXTI_DISABLE_IT() CLEAR_BIT(EXTI->IMR1, RCC_EXTI_LINE_LSECSS) - -/** - * @brief Enable the RCC LSE CSS Event Line. - * @retval None. - */ -#define __HAL_RCC_LSECSS_EXTI_ENABLE_EVENT() SET_BIT(EXTI->EMR1, RCC_EXTI_LINE_LSECSS) - -/** - * @brief Disable the RCC LSE CSS Event Line. - * @retval None. - */ -#define __HAL_RCC_LSECSS_EXTI_DISABLE_EVENT() CLEAR_BIT(EXTI->EMR1, RCC_EXTI_LINE_LSECSS) - -#if defined(DUAL_CORE) -/** - * @brief Enable the RCC LSE CSS Extended Interrupt Line for CM4. - * @retval None - */ -#define __HAL_RCC_C2_LSECSS_EXTI_ENABLE_IT() SET_BIT(EXTI->C2IMR1, RCC_EXTI_LINE_LSECSS) - -/** - * @brief Disable the RCC LSE CSS Extended Interrupt Line for CM4. - * @retval None - */ -#define __HAL_RCC_C2_LSECSS_EXTI_DISABLE_IT() CLEAR_BIT(EXTI->C2IMR1, RCC_EXTI_LINE_LSECSS) - -/** - * @brief Enable the RCC LSE CSS Event Line for CM4. - * @retval None. - */ -#define __HAL_RCC_C2_LSECSS_EXTI_ENABLE_EVENT() SET_BIT(EXTI->C2EMR1, RCC_EXTI_LINE_LSECSS) - -/** - * @brief Disable the RCC LSE CSS Event Line for CM4. - * @retval None. - */ -#define __HAL_RCC_C2_LSECSS_EXTI_DISABLE_EVENT() CLEAR_BIT(EXTI->C2EMR1, RCC_EXTI_LINE_LSECSS) -#endif /* DUAL_CORE */ - -/** - * @brief Enable the RCC LSE CSS Extended Interrupt Falling Trigger. - * @retval None. - */ -#define __HAL_RCC_LSECSS_EXTI_ENABLE_FALLING_EDGE() SET_BIT(EXTI->FTSR1, RCC_EXTI_LINE_LSECSS) - - -/** - * @brief Disable the RCC LSE CSS Extended Interrupt Falling Trigger. - * @retval None. - */ -#define __HAL_RCC_LSECSS_EXTI_DISABLE_FALLING_EDGE() CLEAR_BIT(EXTI->FTSR1, RCC_EXTI_LINE_LSECSS) - - -/** - * @brief Enable the RCC LSE CSS Extended Interrupt Rising Trigger. - * @retval None. - */ -#define __HAL_RCC_LSECSS_EXTI_ENABLE_RISING_EDGE() SET_BIT(EXTI->RTSR1, RCC_EXTI_LINE_LSECSS) - -/** - * @brief Disable the RCC LSE CSS Extended Interrupt Rising Trigger. - * @retval None. - */ -#define __HAL_RCC_LSECSS_EXTI_DISABLE_RISING_EDGE() CLEAR_BIT(EXTI->RTSR1, RCC_EXTI_LINE_LSECSS) - -/** - * @brief Enable the RCC LSE CSS Extended Interrupt Rising & Falling Trigger. - * @retval None. - */ -#define __HAL_RCC_LSECSS_EXTI_ENABLE_RISING_FALLING_EDGE() \ - do { \ - __HAL_RCC_LSECSS_EXTI_ENABLE_RISING_EDGE(); \ - __HAL_RCC_LSECSS_EXTI_ENABLE_FALLING_EDGE(); \ - } while(0) - -/** - * @brief Disable the RCC LSE CSS Extended Interrupt Rising & Falling Trigger. - * @retval None. - */ -#define __HAL_RCC_LSECSS_EXTI_DISABLE_RISING_FALLING_EDGE() \ - do { \ - __HAL_RCC_LSECSS_EXTI_DISABLE_RISING_EDGE(); \ - __HAL_RCC_LSECSS_EXTI_DISABLE_FALLING_EDGE(); \ - } while(0) - -/** - * @brief Check whether the specified RCC LSE CSS EXTI interrupt flag is set or not. - * @retval EXTI RCC LSE CSS Line Status. - */ -#define __HAL_RCC_LSECSS_EXTI_GET_FLAG() (READ_BIT(EXTI->PR1, RCC_EXTI_LINE_LSECSS) == RCC_EXTI_LINE_LSECSS) - -/** - * @brief Clear the RCC LSE CSS EXTI flag. - * @retval None. - */ -#define __HAL_RCC_LSECSS_EXTI_CLEAR_FLAG() WRITE_REG(EXTI->PR1, RCC_EXTI_LINE_LSECSS) - -#if defined(DUAL_CORE) -/** - * @brief Check whether the specified RCC LSE CSS EXTI interrupt flag is set or not for CM4. - * @retval EXTI RCC LSE CSS Line Status. - */ -#define __HAL_RCC_C2_LSECSS_EXTI_GET_FLAG() (READ_BIT(EXTI->C2PR1, RCC_EXTI_LINE_LSECSS) == RCC_EXTI_LINE_LSECSS) - -/** - * @brief Clear the RCC LSE CSS EXTI flag or not for CM4. - * @retval None. - */ -#define __HAL_RCC_C2_LSECSS_EXTI_CLEAR_FLAG() WRITE_REG(EXTI->C2PR1, RCC_EXTI_LINE_LSECSS) -#endif /* DUAL_CORE */ -/** - * @brief Generate a Software interrupt on the RCC LSE CSS EXTI line. - * @retval None. - */ -#define __HAL_RCC_LSECSS_EXTI_GENERATE_SWIT() SET_BIT(EXTI->SWIER1, RCC_EXTI_LINE_LSECSS) - -/** - * @brief Enable the specified CRS interrupts. - * @param __INTERRUPT__ specifies the CRS interrupt sources to be enabled. - * This parameter can be any combination of the following values: - * @arg @ref RCC_CRS_IT_SYNCOK SYNC event OK interrupt - * @arg @ref RCC_CRS_IT_SYNCWARN SYNC warning interrupt - * @arg @ref RCC_CRS_IT_ERR Synchronization or trimming error interrupt - * @arg @ref RCC_CRS_IT_ESYNC Expected SYNC interrupt - * @retval None - */ -#define __HAL_RCC_CRS_ENABLE_IT(__INTERRUPT__) SET_BIT(CRS->CR, (__INTERRUPT__)) - -/** - * @brief Disable the specified CRS interrupts. - * @param __INTERRUPT__ specifies the CRS interrupt sources to be disabled. - * This parameter can be any combination of the following values: - * @arg @ref RCC_CRS_IT_SYNCOK SYNC event OK interrupt - * @arg @ref RCC_CRS_IT_SYNCWARN SYNC warning interrupt - * @arg @ref RCC_CRS_IT_ERR Synchronization or trimming error interrupt - * @arg @ref RCC_CRS_IT_ESYNC Expected SYNC interrupt - * @retval None - */ -#define __HAL_RCC_CRS_DISABLE_IT(__INTERRUPT__) CLEAR_BIT(CRS->CR, (__INTERRUPT__)) - -/** @brief Check whether the CRS interrupt has occurred or not. - * @param __INTERRUPT__ specifies the CRS interrupt source to check. - * This parameter can be one of the following values: - * @arg @ref RCC_CRS_IT_SYNCOK SYNC event OK interrupt - * @arg @ref RCC_CRS_IT_SYNCWARN SYNC warning interrupt - * @arg @ref RCC_CRS_IT_ERR Synchronization or trimming error interrupt - * @arg @ref RCC_CRS_IT_ESYNC Expected SYNC interrupt - * @retval The new state of __INTERRUPT__ (SET or RESET). - */ -#define __HAL_RCC_CRS_GET_IT_SOURCE(__INTERRUPT__) ((READ_BIT(CRS->CR, (__INTERRUPT__)) != 0U) ? SET : RESET) - -/** @brief Clear the CRS interrupt pending bits - * @param __INTERRUPT__ specifies the interrupt pending bit to clear. - * This parameter can be any combination of the following values: - * @arg @ref RCC_CRS_IT_SYNCOK SYNC event OK interrupt - * @arg @ref RCC_CRS_IT_SYNCWARN SYNC warning interrupt - * @arg @ref RCC_CRS_IT_ERR Synchronization or trimming error interrupt - * @arg @ref RCC_CRS_IT_ESYNC Expected SYNC interrupt - * @arg @ref RCC_CRS_IT_TRIMOVF Trimming overflow or underflow interrupt - * @arg @ref RCC_CRS_IT_SYNCERR SYNC error interrupt - * @arg @ref RCC_CRS_IT_SYNCMISS SYNC missed interrupt - */ -/* CRS IT Error Mask */ -#define RCC_CRS_IT_ERROR_MASK ((uint32_t)(RCC_CRS_IT_TRIMOVF | RCC_CRS_IT_SYNCERR | RCC_CRS_IT_SYNCMISS)) - -#define __HAL_RCC_CRS_CLEAR_IT(__INTERRUPT__) do { \ - if(((__INTERRUPT__) & RCC_CRS_IT_ERROR_MASK) != 0U) \ - { \ - WRITE_REG(CRS->ICR, CRS_ICR_ERRC | ((__INTERRUPT__) & ~RCC_CRS_IT_ERROR_MASK)); \ - } \ - else \ - { \ - WRITE_REG(CRS->ICR, (__INTERRUPT__)); \ - } \ - } while(0) - -/** - * @brief Check whether the specified CRS flag is set or not. - * @param __FLAG__ specifies the flag to check. - * This parameter can be one of the following values: - * @arg @ref RCC_CRS_FLAG_SYNCOK SYNC event OK - * @arg @ref RCC_CRS_FLAG_SYNCWARN SYNC warning - * @arg @ref RCC_CRS_FLAG_ERR Error - * @arg @ref RCC_CRS_FLAG_ESYNC Expected SYNC - * @arg @ref RCC_CRS_FLAG_TRIMOVF Trimming overflow or underflow - * @arg @ref RCC_CRS_FLAG_SYNCERR SYNC error - * @arg @ref RCC_CRS_FLAG_SYNCMISS SYNC missed - * @retval The new state of _FLAG_ (TRUE or FALSE). - */ -#define __HAL_RCC_CRS_GET_FLAG(__FLAG__) (READ_BIT(CRS->ISR, (__FLAG__)) == (__FLAG__)) - -/** - * @brief Clear the CRS specified FLAG. - * @param __FLAG__ specifies the flag to clear. - * This parameter can be one of the following values: - * @arg @ref RCC_CRS_FLAG_SYNCOK SYNC event OK - * @arg @ref RCC_CRS_FLAG_SYNCWARN SYNC warning - * @arg @ref RCC_CRS_FLAG_ERR Error - * @arg @ref RCC_CRS_FLAG_ESYNC Expected SYNC - * @arg @ref RCC_CRS_FLAG_TRIMOVF Trimming overflow or underflow - * @arg @ref RCC_CRS_FLAG_SYNCERR SYNC error - * @arg @ref RCC_CRS_FLAG_SYNCMISS SYNC missed - * @note RCC_CRS_FLAG_ERR clears RCC_CRS_FLAG_TRIMOVF, RCC_CRS_FLAG_SYNCERR, RCC_CRS_FLAG_SYNCMISS and consequently RCC_CRS_FLAG_ERR - * @retval None - */ - -/* CRS Flag Error Mask */ -#define RCC_CRS_FLAG_ERROR_MASK ((uint32_t)(RCC_CRS_FLAG_TRIMOVF | RCC_CRS_FLAG_SYNCERR | RCC_CRS_FLAG_SYNCMISS)) - -#define __HAL_RCC_CRS_CLEAR_FLAG(__FLAG__) do { \ - if(((__FLAG__) & RCC_CRS_FLAG_ERROR_MASK) != 0U) \ - { \ - WRITE_REG(CRS->ICR, CRS_ICR_ERRC | ((__FLAG__) & ~RCC_CRS_FLAG_ERROR_MASK)); \ - } \ - else \ - { \ - WRITE_REG(CRS->ICR, (__FLAG__)); \ - } \ - } while(0) - -/** @defgroup RCCEx_CRS_Extended_Features RCCEx CRS Extended Features - * @{ - */ -/** - * @brief Enable the oscillator clock for frequency error counter. - * @note when the CEN bit is set the CRS_CFGR register becomes write-protected. - * @retval None - */ -#define __HAL_RCC_CRS_FREQ_ERROR_COUNTER_ENABLE() SET_BIT(CRS->CR, CRS_CR_CEN) - -/** - * @brief Disable the oscillator clock for frequency error counter. - * @retval None - */ -#define __HAL_RCC_CRS_FREQ_ERROR_COUNTER_DISABLE() CLEAR_BIT(CRS->CR, CRS_CR_CEN) - -/** - * @brief Enable the automatic hardware adjustment of TRIM bits. - * @note When the AUTOTRIMEN bit is set the CRS_CFGR register becomes write-protected. - * @retval None - */ -#define __HAL_RCC_CRS_AUTOMATIC_CALIB_ENABLE() SET_BIT(CRS->CR, CRS_CR_AUTOTRIMEN) - -/** - * @brief Enable or disable the automatic hardware adjustment of TRIM bits. - * @retval None - */ -#define __HAL_RCC_CRS_AUTOMATIC_CALIB_DISABLE() CLEAR_BIT(CRS->CR, CRS_CR_AUTOTRIMEN) - -/** - * @brief Macro to calculate reload value to be set in CRS register according to target and sync frequencies - * @note The RELOAD value should be selected according to the ratio between the target frequency and the frequency - * of the synchronization source after pre-scaling. It is then decreased by one in order to - * reach the expected synchronization on the zero value. The formula is the following: - * RELOAD = (fTARGET / fSYNC) -1 - * @param __FTARGET__ Target frequency (value in Hz) - * @param __FSYNC__ Synchronization signal frequency (value in Hz) - * @retval None - */ -#define __HAL_RCC_CRS_RELOADVALUE_CALCULATE(__FTARGET__, __FSYNC__) (((__FTARGET__) / (__FSYNC__)) - 1U) - - -/** - * @} - */ - - -/** - * @} - */ - - -/* Exported functions --------------------------------------------------------*/ -/** @addtogroup RCCEx_Exported_Functions - * @{ - */ - -/** @addtogroup RCCEx_Exported_Functions_Group1 - * @{ - */ -HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit); -void HAL_RCCEx_GetPeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit); -uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint64_t PeriphClk); -uint32_t HAL_RCCEx_GetD1PCLK1Freq(void); -uint32_t HAL_RCCEx_GetD3PCLK1Freq(void); -uint32_t HAL_RCCEx_GetD1SysClockFreq(void); -void HAL_RCCEx_GetPLL1ClockFreq(PLL1_ClocksTypeDef *PLL1_Clocks); -void HAL_RCCEx_GetPLL2ClockFreq(PLL2_ClocksTypeDef *PLL2_Clocks); -void HAL_RCCEx_GetPLL3ClockFreq(PLL3_ClocksTypeDef *PLL3_Clocks); -/** - * @} - */ - -/** @addtogroup RCCEx_Exported_Functions_Group2 - * @{ - */ -void HAL_RCCEx_WakeUpStopCLKConfig(uint32_t WakeUpClk); -void HAL_RCCEx_KerWakeUpStopCLKConfig(uint32_t WakeUpClk); -void HAL_RCCEx_EnableLSECSS(void); -void HAL_RCCEx_DisableLSECSS(void); -void HAL_RCCEx_EnableLSECSS_IT(void); -void HAL_RCCEx_LSECSS_IRQHandler(void); -void HAL_RCCEx_LSECSS_Callback(void); -#if defined(DUAL_CORE) -void HAL_RCCEx_EnableBootCore(uint32_t RCC_BootCx); -#endif /*DUAL_CORE*/ -#if defined(RCC_GCR_WW1RSC) -void HAL_RCCEx_WWDGxSysResetConfig(uint32_t RCC_WWDGx); -#endif /*RCC_GCR_WW1RSC*/ -/** - * @} - */ - - -/** @addtogroup RCCEx_Exported_Functions_Group3 - * @{ - */ - -void HAL_RCCEx_CRSConfig(RCC_CRSInitTypeDef *pInit); -void HAL_RCCEx_CRSSoftwareSynchronizationGenerate(void); -void HAL_RCCEx_CRSGetSynchronizationInfo(RCC_CRSSynchroInfoTypeDef *pSynchroInfo); -uint32_t HAL_RCCEx_CRSWaitSynchronization(uint32_t Timeout); -void HAL_RCCEx_CRS_IRQHandler(void); -void HAL_RCCEx_CRS_SyncOkCallback(void); -void HAL_RCCEx_CRS_SyncWarnCallback(void); -void HAL_RCCEx_CRS_ExpectedSyncCallback(void); -void HAL_RCCEx_CRS_ErrorCallback(uint32_t Error); - -/** - * @} - */ - -/** - * @} - */ - -/* Private macros ------------------------------------------------------------*/ -/** @addtogroup RCCEx_Private_Macros RCCEx Private Macros - * @{ - */ -/** @defgroup RCCEx_IS_RCC_Definitions RCC Private macros to check input parameters - * @{ - */ - -#define IS_RCC_PLL2CLOCKOUT_VALUE(VALUE) (((VALUE) == RCC_PLL2_DIVP) || \ - ((VALUE) == RCC_PLL2_DIVQ) || \ - ((VALUE) == RCC_PLL2_DIVR)) - -#define IS_RCC_PLL3CLOCKOUT_VALUE(VALUE) (((VALUE) == RCC_PLL3_DIVP) || \ - ((VALUE) == RCC_PLL3_DIVQ) || \ - ((VALUE) == RCC_PLL3_DIVR)) - -#if defined(RCC_D2CCIP2R_USART16SEL) -#define IS_RCC_USART16CLKSOURCE(SOURCE) (((SOURCE) == RCC_USART16CLKSOURCE_D2PCLK2)|| \ - ((SOURCE) == RCC_USART16CLKSOURCE_PLL2) || \ - ((SOURCE) == RCC_USART16CLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_USART16CLKSOURCE_CSI) || \ - ((SOURCE) == RCC_USART16CLKSOURCE_LSE) || \ - ((SOURCE) == RCC_USART16CLKSOURCE_HSI)) -#else -#define IS_RCC_USART16CLKSOURCE(SOURCE) (((SOURCE) == RCC_USART16CLKSOURCE_D2PCLK2)|| \ - ((SOURCE) == RCC_USART16CLKSOURCE_CDPCLK2)|| \ - ((SOURCE) == RCC_USART16CLKSOURCE_PLL2) || \ - ((SOURCE) == RCC_USART16CLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_USART16CLKSOURCE_CSI) || \ - ((SOURCE) == RCC_USART16CLKSOURCE_LSE) || \ - ((SOURCE) == RCC_USART16CLKSOURCE_HSI)) -/* alias*/ -#define IS_RCC_USART16910CLKSOURCE IS_RCC_USART16CLKSOURCE -#endif /* RCC_D2CCIP2R_USART16SEL */ - -#if defined(RCC_D2CCIP2R_USART28SEL) -#define IS_RCC_USART234578CLKSOURCE(SOURCE) (((SOURCE) == RCC_USART234578CLKSOURCE_D2PCLK1)|| \ - ((SOURCE) == RCC_USART234578CLKSOURCE_PLL2) || \ - ((SOURCE) == RCC_USART234578CLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_USART234578CLKSOURCE_CSI) || \ - ((SOURCE) == RCC_USART234578CLKSOURCE_LSE) || \ - ((SOURCE) == RCC_USART234578CLKSOURCE_HSI)) -#else -#define IS_RCC_USART234578CLKSOURCE(SOURCE) (((SOURCE) == RCC_USART234578CLKSOURCE_D2PCLK1)|| \ - ((SOURCE) == RCC_USART234578CLKSOURCE_CDPCLK1)|| \ - ((SOURCE) == RCC_USART234578CLKSOURCE_PLL2) || \ - ((SOURCE) == RCC_USART234578CLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_USART234578CLKSOURCE_CSI) || \ - ((SOURCE) == RCC_USART234578CLKSOURCE_LSE) || \ - ((SOURCE) == RCC_USART234578CLKSOURCE_HSI)) -#endif /* RCC_D2CCIP2R_USART28SEL */ - -#define IS_RCC_USART1CLKSOURCE(SOURCE) (((SOURCE) == RCC_USART1CLKSOURCE_D2PCLK2)|| \ - ((SOURCE) == RCC_USART1CLKSOURCE_PLL2) || \ - ((SOURCE) == RCC_USART1CLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_USART1CLKSOURCE_CSI) || \ - ((SOURCE) == RCC_USART1CLKSOURCE_LSE) || \ - ((SOURCE) == RCC_USART1CLKSOURCE_HSI)) - -#define IS_RCC_USART2CLKSOURCE(SOURCE) (((SOURCE) == RCC_USART2CLKSOURCE_D2PCLK1)|| \ - ((SOURCE) == RCC_USART2CLKSOURCE_PLL2) || \ - ((SOURCE) == RCC_USART2CLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_USART2CLKSOURCE_CSI) || \ - ((SOURCE) == RCC_USART2CLKSOURCE_LSE) || \ - ((SOURCE) == RCC_USART2CLKSOURCE_HSI)) - -#define IS_RCC_USART3CLKSOURCE(SOURCE) (((SOURCE) == RCC_USART3CLKSOURCE_D2PCLK1)|| \ - ((SOURCE) == RCC_USART3CLKSOURCE_PLL2) || \ - ((SOURCE) == RCC_USART3CLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_USART3CLKSOURCE_CSI) || \ - ((SOURCE) == RCC_USART3CLKSOURCE_LSE) || \ - ((SOURCE) == RCC_USART3CLKSOURCE_HSI)) - -#define IS_RCC_UART4CLKSOURCE(SOURCE) (((SOURCE) == RCC_UART4CLKSOURCE_D2PCLK1) || \ - ((SOURCE) == RCC_UART4CLKSOURCE_PLL2) || \ - ((SOURCE) == RCC_UART4CLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_UART4CLKSOURCE_CSI) || \ - ((SOURCE) == RCC_UART4CLKSOURCE_LSE) || \ - ((SOURCE) == RCC_UART4CLKSOURCE_HSI)) - -#define IS_RCC_UART5CLKSOURCE(SOURCE) (((SOURCE) == RCC_UART5CLKSOURCE_D2PCLK1) || \ - ((SOURCE) == RCC_UART5CLKSOURCE_PLL2) || \ - ((SOURCE) == RCC_UART5CLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_UART5CLKSOURCE_CSI) || \ - ((SOURCE) == RCC_UART5CLKSOURCE_LSE) || \ - ((SOURCE) == RCC_UART5CLKSOURCE_HSI)) - -#define IS_RCC_USART6CLKSOURCE(SOURCE) (((SOURCE) == RCC_USART6CLKSOURCE_D2PCLK2)|| \ - ((SOURCE) == RCC_USART6CLKSOURCE_PLL2) || \ - ((SOURCE) == RCC_USART6CLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_USART6CLKSOURCE_CSI) || \ - ((SOURCE) == RCC_USART6CLKSOURCE_LSE) || \ - ((SOURCE) == RCC_USART6CLKSOURCE_HSI)) - -#define IS_RCC_UART7CLKSOURCE(SOURCE) (((SOURCE) == RCC_UART7CLKSOURCE_D2PCLK1) || \ - ((SOURCE) == RCC_UART7CLKSOURCE_PLL2) || \ - ((SOURCE) == RCC_UART7CLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_UART7CLKSOURCE_CSI) || \ - ((SOURCE) == RCC_UART7CLKSOURCE_LSE) || \ - ((SOURCE) == RCC_UART7CLKSOURCE_HSI)) - -#define IS_RCC_UART8CLKSOURCE(SOURCE) (((SOURCE) == RCC_UART8CLKSOURCE_D2PCLK1) || \ - ((SOURCE) == RCC_UART8CLKSOURCE_PLL2) || \ - ((SOURCE) == RCC_UART8CLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_UART8CLKSOURCE_CSI) || \ - ((SOURCE) == RCC_UART8CLKSOURCE_LSE) || \ - ((SOURCE) == RCC_UART8CLKSOURCE_HSI)) - -#if defined(UART9) -#define IS_RCC_UART9CLKSOURCE(SOURCE) (((SOURCE) == RCC_UART9CLKSOURCE_D2PCLK2)|| \ - ((SOURCE) == RCC_UART9CLKSOURCE_PLL2) || \ - ((SOURCE) == RCC_UART9CLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_UART9CLKSOURCE_CSI) || \ - ((SOURCE) == RCC_UART9CLKSOURCE_LSE) || \ - ((SOURCE) == RCC_UART9CLKSOURCE_HSI)) -#endif - -#if defined(USART10) -#define IS_RCC_USART10CLKSOURCE(SOURCE) (((SOURCE) == RCC_USART10CLKSOURCE_D2PCLK2)|| \ - ((SOURCE) == RCC_USART10CLKSOURCE_PLL2) || \ - ((SOURCE) == RCC_USART10CLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_USART10CLKSOURCE_CSI) || \ - ((SOURCE) == RCC_USART10CLKSOURCE_LSE) || \ - ((SOURCE) == RCC_USART10CLKSOURCE_HSI)) -#endif - -#define IS_RCC_LPUART1CLKSOURCE(SOURCE) (((SOURCE) == RCC_LPUART1CLKSOURCE_D3PCLK1) || \ - ((SOURCE) == RCC_LPUART1CLKSOURCE_PLL2) || \ - ((SOURCE) == RCC_LPUART1CLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_LPUART1CLKSOURCE_CSI) || \ - ((SOURCE) == RCC_LPUART1CLKSOURCE_LSE) || \ - ((SOURCE) == RCC_LPUART1CLKSOURCE_HSI)) - -#if defined(I2C5) -#define IS_RCC_I2C1235CLKSOURCE(SOURCE) (((SOURCE) == RCC_I2C1235CLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_I2C1235CLKSOURCE_HSI) || \ - ((SOURCE) == RCC_I2C1235CLKSOURCE_D2PCLK1) || \ - ((SOURCE) == RCC_I2C1235CLKSOURCE_CSI)) - -#define IS_RCC_I2C123CLKSOURCE IS_RCC_I2C1235CLKSOURCE /* For API Backward compatibility */ -#else -#define IS_RCC_I2C123CLKSOURCE(SOURCE) (((SOURCE) == RCC_I2C123CLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_I2C123CLKSOURCE_HSI) || \ - ((SOURCE) == RCC_I2C123CLKSOURCE_D2PCLK1)|| \ - ((SOURCE) == RCC_I2C123CLKSOURCE_CSI)) -#endif /*I2C5*/ - -#define IS_RCC_I2C1CLKSOURCE(SOURCE) (((SOURCE) == RCC_I2C1CLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_I2C1CLKSOURCE_HSI) || \ - ((SOURCE) == RCC_I2C1CLKSOURCE_D2PCLK1)|| \ - ((SOURCE) == RCC_I2C1CLKSOURCE_CSI)) - -#define IS_RCC_I2C2CLKSOURCE(SOURCE) (((SOURCE) == RCC_I2C2CLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_I2C2CLKSOURCE_HSI) || \ - ((SOURCE) == RCC_I2C2CLKSOURCE_D2PCLK1)|| \ - ((SOURCE) == RCC_I2C2CLKSOURCE_CSI)) - -#define IS_RCC_I2C3CLKSOURCE(SOURCE) (((SOURCE) == RCC_I2C3CLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_I2C3CLKSOURCE_HSI) || \ - ((SOURCE) == RCC_I2C3CLKSOURCE_D2PCLK1)|| \ - ((SOURCE) == RCC_I2C3CLKSOURCE_CSI)) - -#define IS_RCC_I2C4CLKSOURCE(SOURCE) (((SOURCE) == RCC_I2C4CLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_I2C4CLKSOURCE_HSI) || \ - ((SOURCE) == RCC_I2C4CLKSOURCE_D3PCLK1)|| \ - ((SOURCE) == RCC_I2C4CLKSOURCE_CSI)) - -#if defined(I2C5) -#define IS_RCC_I2C5CLKSOURCE(SOURCE) (((SOURCE) == RCC_I2C5CLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_I2C5CLKSOURCE_HSI) || \ - ((SOURCE) == RCC_I2C5CLKSOURCE_D2PCLK1)|| \ - ((SOURCE) == RCC_I2C5CLKSOURCE_CSI)) -#endif /*I2C5*/ - -#define IS_RCC_RNGCLKSOURCE(SOURCE) (((SOURCE) == RCC_RNGCLKSOURCE_HSI48)|| \ - ((SOURCE) == RCC_RNGCLKSOURCE_PLL) || \ - ((SOURCE) == RCC_RNGCLKSOURCE_LSE) || \ - ((SOURCE) == RCC_RNGCLKSOURCE_LSI)) - -#if defined(HRTIM1) -#define IS_RCC_HRTIM1CLKSOURCE(SOURCE) (((SOURCE) == RCC_HRTIM1CLK_TIMCLK) || \ - ((SOURCE) == RCC_HRTIM1CLK_CPUCLK)) -#endif - -#define IS_RCC_USBCLKSOURCE(SOURCE) (((SOURCE) == RCC_USBCLKSOURCE_PLL) || \ - ((SOURCE) == RCC_USBCLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_USBCLKSOURCE_HSI48)) - -#define IS_RCC_SAI1CLK(__SOURCE__) \ - (((__SOURCE__) == RCC_SAI1CLKSOURCE_PLL) || \ - ((__SOURCE__) == RCC_SAI1CLKSOURCE_PLL2) || \ - ((__SOURCE__) == RCC_SAI1CLKSOURCE_PLL3) || \ - ((__SOURCE__) == RCC_SAI1CLKSOURCE_CLKP) || \ - ((__SOURCE__) == RCC_SAI1CLKSOURCE_PIN)) - -#if defined(SAI3) -#define IS_RCC_SAI23CLK(__SOURCE__) \ - (((__SOURCE__) == RCC_SAI23CLKSOURCE_PLL) || \ - ((__SOURCE__) == RCC_SAI23CLKSOURCE_PLL2) || \ - ((__SOURCE__) == RCC_SAI23CLKSOURCE_PLL3) || \ - ((__SOURCE__) == RCC_SAI23CLKSOURCE_CLKP) || \ - ((__SOURCE__) == RCC_SAI23CLKSOURCE_PIN)) - -#define IS_RCC_SAI2CLK(__SOURCE__) \ - (((__SOURCE__) == RCC_SAI2CLKSOURCE_PLL) || \ - ((__SOURCE__) == RCC_SAI2CLKSOURCE_PLL2) || \ - ((__SOURCE__) == RCC_SAI2CLKSOURCE_PLL3) || \ - ((__SOURCE__) == RCC_SAI2CLKSOURCE_CLKP) || \ - ((__SOURCE__) == RCC_SAI2CLKSOURCE_PIN)) - - -#define IS_RCC_SAI3CLK(__SOURCE__) \ - (((__SOURCE__) == RCC_SAI3CLKSOURCE_PLL) || \ - ((__SOURCE__) == RCC_SAI3CLKSOURCE_PLL2) || \ - ((__SOURCE__) == RCC_SAI3CLKSOURCE_PLL3) || \ - ((__SOURCE__) == RCC_SAI3CLKSOURCE_CLKP) || \ - ((__SOURCE__) == RCC_SAI3CLKSOURCE_PIN)) -#endif - -#if defined(RCC_CDCCIP1R_SAI2ASEL) -#define IS_RCC_SAI2ACLK(__SOURCE__) \ - (((__SOURCE__) == RCC_SAI2ACLKSOURCE_PLL) || \ - ((__SOURCE__) == RCC_SAI2ACLKSOURCE_PLL2) || \ - ((__SOURCE__) == RCC_SAI2ACLKSOURCE_PLL3) || \ - ((__SOURCE__) == RCC_SAI2ACLKSOURCE_CLKP) || \ - ((__SOURCE__) == RCC_SAI2ACLKSOURCE_PIN) || \ - ((__SOURCE__) == RCC_SAI2ACLKSOURCE_SPDIF)) -#endif - -#if defined(RCC_CDCCIP1R_SAI2BSEL) -#define IS_RCC_SAI2BCLK(__SOURCE__) \ - (((__SOURCE__) == RCC_SAI2BCLKSOURCE_PLL) || \ - ((__SOURCE__) == RCC_SAI2BCLKSOURCE_PLL2) || \ - ((__SOURCE__) == RCC_SAI2BCLKSOURCE_PLL3) || \ - ((__SOURCE__) == RCC_SAI2BCLKSOURCE_CLKP) || \ - ((__SOURCE__) == RCC_SAI2BCLKSOURCE_PIN) || \ - ((__SOURCE__) == RCC_SAI2BCLKSOURCE_SPDIF)) -#endif - -#define IS_RCC_SPI123CLK(__SOURCE__) \ - (((__SOURCE__) == RCC_SPI123CLKSOURCE_PLL) || \ - ((__SOURCE__) == RCC_SPI123CLKSOURCE_PLL2) || \ - ((__SOURCE__) == RCC_SPI123CLKSOURCE_PLL3) || \ - ((__SOURCE__) == RCC_SPI123CLKSOURCE_CLKP) || \ - ((__SOURCE__) == RCC_SPI123CLKSOURCE_PIN)) - -#define IS_RCC_SPI1CLK(__SOURCE__) \ - (((__SOURCE__) == RCC_SPI1CLKSOURCE_PLL) || \ - ((__SOURCE__) == RCC_SPI1CLKSOURCE_PLL2) || \ - ((__SOURCE__) == RCC_SPI1CLKSOURCE_PLL3) || \ - ((__SOURCE__) == RCC_SPI1CLKSOURCE_CLKP) || \ - ((__SOURCE__) == RCC_SPI1CLKSOURCE_PIN)) - -#define IS_RCC_SPI2CLK(__SOURCE__) \ - (((__SOURCE__) == RCC_SPI2CLKSOURCE_PLL) || \ - ((__SOURCE__) == RCC_SPI2CLKSOURCE_PLL2) || \ - ((__SOURCE__) == RCC_SPI2CLKSOURCE_PLL3) || \ - ((__SOURCE__) == RCC_SPI2CLKSOURCE_CLKP) || \ - ((__SOURCE__) == RCC_SPI2CLKSOURCE_PIN)) - -#define IS_RCC_SPI3CLK(__SOURCE__) \ - (((__SOURCE__) == RCC_SPI3CLKSOURCE_PLL) || \ - ((__SOURCE__) == RCC_SPI3CLKSOURCE_PLL2) || \ - ((__SOURCE__) == RCC_SPI3CLKSOURCE_PLL3) || \ - ((__SOURCE__) == RCC_SPI3CLKSOURCE_CLKP) || \ - ((__SOURCE__) == RCC_SPI3CLKSOURCE_PIN)) - -#define IS_RCC_SPI45CLK(__SOURCE__) \ - (((__SOURCE__) == RCC_SPI45CLKSOURCE_D2PCLK2) || \ - ((__SOURCE__) == RCC_SPI45CLKSOURCE_PLL2) || \ - ((__SOURCE__) == RCC_SPI45CLKSOURCE_PLL3) || \ - ((__SOURCE__) == RCC_SPI45CLKSOURCE_HSI) || \ - ((__SOURCE__) == RCC_SPI45CLKSOURCE_CSI) || \ - ((__SOURCE__) == RCC_SPI45CLKSOURCE_HSE)) - -#define IS_RCC_SPI4CLK(__SOURCE__) \ - (((__SOURCE__) == RCC_SPI4CLKSOURCE_D2PCLK2) || \ - ((__SOURCE__) == RCC_SPI4CLKSOURCE_PLL2) || \ - ((__SOURCE__) == RCC_SPI4CLKSOURCE_PLL3) || \ - ((__SOURCE__) == RCC_SPI4CLKSOURCE_HSI) || \ - ((__SOURCE__) == RCC_SPI4CLKSOURCE_CSI) || \ - ((__SOURCE__) == RCC_SPI4CLKSOURCE_HSE)) - -#define IS_RCC_SPI5CLK(__SOURCE__) \ - (((__SOURCE__) == RCC_SPI5CLKSOURCE_D2PCLK2)|| \ - ((__SOURCE__) == RCC_SPI5CLKSOURCE_PLL2) || \ - ((__SOURCE__) == RCC_SPI5CLKSOURCE_PLL3) || \ - ((__SOURCE__) == RCC_SPI5CLKSOURCE_HSI) || \ - ((__SOURCE__) == RCC_SPI5CLKSOURCE_CSI) || \ - ((__SOURCE__) == RCC_SPI5CLKSOURCE_HSE)) - -#if defined(RCC_D3CCIPR_SPI6SEL) -#define IS_RCC_SPI6CLK(__SOURCE__) \ - (((__SOURCE__) == RCC_SPI6CLKSOURCE_D3PCLK1) || \ - ((__SOURCE__) == RCC_SPI6CLKSOURCE_PLL2) || \ - ((__SOURCE__) == RCC_SPI6CLKSOURCE_PLL3) || \ - ((__SOURCE__) == RCC_SPI6CLKSOURCE_HSI) || \ - ((__SOURCE__) == RCC_SPI6CLKSOURCE_CSI) || \ - ((__SOURCE__) == RCC_SPI6CLKSOURCE_HSE)) -#else -#define IS_RCC_SPI6CLK(__SOURCE__) \ - (((__SOURCE__) == RCC_SPI6CLKSOURCE_D3PCLK1) || \ - ((__SOURCE__) == RCC_SPI6CLKSOURCE_PLL2) || \ - ((__SOURCE__) == RCC_SPI6CLKSOURCE_PLL3) || \ - ((__SOURCE__) == RCC_SPI6CLKSOURCE_HSI) || \ - ((__SOURCE__) == RCC_SPI6CLKSOURCE_CSI) || \ - ((__SOURCE__) == RCC_SPI6CLKSOURCE_HSE) || \ - ((__SOURCE__) == RCC_SPI6CLKSOURCE_PIN)) -#endif /* RCC_D3CCIPR_SPI6SEL */ - -#if defined(SAI4) -#define IS_RCC_SAI4ACLK(__SOURCE__) \ - (((__SOURCE__) == RCC_SAI4ACLKSOURCE_PLL) || \ - ((__SOURCE__) == RCC_SAI4ACLKSOURCE_PLL2) || \ - ((__SOURCE__) == RCC_SAI4ACLKSOURCE_PLL3) || \ - ((__SOURCE__) == RCC_SAI4ACLKSOURCE_CLKP) || \ - ((__SOURCE__) == RCC_SAI4ACLKSOURCE_PIN)) - -#define IS_RCC_SAI4BCLK(__SOURCE__) \ - (((__SOURCE__) == RCC_SAI4BCLKSOURCE_PLL) || \ - ((__SOURCE__) == RCC_SAI4BCLKSOURCE_PLL2) || \ - ((__SOURCE__) == RCC_SAI4BCLKSOURCE_PLL3) || \ - ((__SOURCE__) == RCC_SAI4BCLKSOURCE_CLKP) || \ - ((__SOURCE__) == RCC_SAI4BCLKSOURCE_PIN)) -#endif /*SAI4*/ - -#define IS_RCC_PLL3M_VALUE(VALUE) ((1U <= (VALUE)) && ((VALUE) <= 63U)) -#define IS_RCC_PLL3N_VALUE(VALUE) ((4U <= (VALUE)) && ((VALUE) <= 512U)) -#define IS_RCC_PLL3P_VALUE(VALUE) ((1U <= (VALUE)) && ((VALUE) <= 128U)) -#define IS_RCC_PLL3Q_VALUE(VALUE) ((1U <= (VALUE)) && ((VALUE) <= 128U)) -#define IS_RCC_PLL3R_VALUE(VALUE) ((1U <= (VALUE)) && ((VALUE) <= 128U)) - -#define IS_RCC_PLL2M_VALUE(VALUE) ((1U <= (VALUE)) && ((VALUE) <= 63U)) -#define IS_RCC_PLL2N_VALUE(VALUE) ((4U <= (VALUE)) && ((VALUE) <= 512U)) -#define IS_RCC_PLL2P_VALUE(VALUE) ((1U <= (VALUE)) && ((VALUE) <= 128U)) -#define IS_RCC_PLL2Q_VALUE(VALUE) ((1U <= (VALUE)) && ((VALUE) <= 128U)) -#define IS_RCC_PLL2R_VALUE(VALUE) ((1U <= (VALUE)) && ((VALUE) <= 128U)) - -#define IS_RCC_PLL2RGE_VALUE(VALUE) (((VALUE) == RCC_PLL2VCIRANGE_0) || \ - ((VALUE) == RCC_PLL2VCIRANGE_1) || \ - ((VALUE) == RCC_PLL2VCIRANGE_2) || \ - ((VALUE) == RCC_PLL2VCIRANGE_3)) - -#define IS_RCC_PLL3RGE_VALUE(VALUE) (((VALUE) == RCC_PLL3VCIRANGE_0) || \ - ((VALUE) == RCC_PLL3VCIRANGE_1) || \ - ((VALUE) == RCC_PLL3VCIRANGE_2) || \ - ((VALUE) == RCC_PLL3VCIRANGE_3)) - -#define IS_RCC_PLL2VCO_VALUE(VALUE) (((VALUE) == RCC_PLL2VCOWIDE) || \ - ((VALUE) == RCC_PLL2VCOMEDIUM)) - -#define IS_RCC_PLL3VCO_VALUE(VALUE) (((VALUE) == RCC_PLL3VCOWIDE) || \ - ((VALUE) == RCC_PLL3VCOMEDIUM)) - -#define IS_RCC_LPTIM1CLK(SOURCE) (((SOURCE) == RCC_LPTIM1CLKSOURCE_D2PCLK1)|| \ - ((SOURCE) == RCC_LPTIM1CLKSOURCE_PLL2) || \ - ((SOURCE) == RCC_LPTIM1CLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_LPTIM1CLKSOURCE_LSE) || \ - ((SOURCE) == RCC_LPTIM1CLKSOURCE_LSI) || \ - ((SOURCE) == RCC_LPTIM1CLKSOURCE_CLKP)) - -#define IS_RCC_LPTIM2CLK(SOURCE) (((SOURCE) == RCC_LPTIM2CLKSOURCE_D3PCLK1)|| \ - ((SOURCE) == RCC_LPTIM2CLKSOURCE_PLL2) || \ - ((SOURCE) == RCC_LPTIM2CLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_LPTIM2CLKSOURCE_LSE) || \ - ((SOURCE) == RCC_LPTIM2CLKSOURCE_LSI) || \ - ((SOURCE) == RCC_LPTIM2CLKSOURCE_CLKP)) - -#define IS_RCC_LPTIM345CLK(SOURCE) (((SOURCE) == RCC_LPTIM345CLKSOURCE_D3PCLK1)|| \ - ((SOURCE) == RCC_LPTIM345CLKSOURCE_PLL2) || \ - ((SOURCE) == RCC_LPTIM345CLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_LPTIM345CLKSOURCE_LSE) || \ - ((SOURCE) == RCC_LPTIM345CLKSOURCE_LSI) || \ - ((SOURCE) == RCC_LPTIM345CLKSOURCE_CLKP)) - -#define IS_RCC_LPTIM3CLK(SOURCE) (((SOURCE) == RCC_LPTIM3CLKSOURCE_D3PCLK1) || \ - ((SOURCE) == RCC_LPTIM3CLKSOURCE_PLL2) || \ - ((SOURCE) == RCC_LPTIM3CLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_LPTIM3CLKSOURCE_LSE) || \ - ((SOURCE) == RCC_LPTIM3CLKSOURCE_LSI) || \ - ((SOURCE) == RCC_LPTIM3CLKSOURCE_CLKP)) - -#if defined(LPTIM4) -#define IS_RCC_LPTIM4CLK(SOURCE) (((SOURCE) == RCC_LPTIM4CLKSOURCE_D3PCLK1)|| \ - ((SOURCE) == RCC_LPTIM4CLKSOURCE_PLL2) || \ - ((SOURCE) == RCC_LPTIM4CLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_LPTIM4CLKSOURCE_LSE) || \ - ((SOURCE) == RCC_LPTIM4CLKSOURCE_LSI) || \ - ((SOURCE) == RCC_LPTIM4CLKSOURCE_CLKP)) -#endif /* LPTIM4*/ - -#if defined(LPTIM5) -#define IS_RCC_LPTIM5CLK(SOURCE) (((SOURCE) == RCC_LPTIM5CLKSOURCE_D3PCLK1)|| \ - ((SOURCE) == RCC_LPTIM5CLKSOURCE_PLL2) || \ - ((SOURCE) == RCC_LPTIM5CLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_LPTIM5CLKSOURCE_LSE) || \ - ((SOURCE) == RCC_LPTIM5CLKSOURCE_LSI) || \ - ((SOURCE) == RCC_LPTIM5CLKSOURCE_CLKP)) -#endif /*LPTIM5*/ - -#if defined(QUADSPI) -#define IS_RCC_QSPICLK(__SOURCE__) \ - (((__SOURCE__) == RCC_QSPICLKSOURCE_D1HCLK) || \ - ((__SOURCE__) == RCC_QSPICLKSOURCE_PLL) || \ - ((__SOURCE__) == RCC_QSPICLKSOURCE_PLL2) || \ - ((__SOURCE__) == RCC_QSPICLKSOURCE_CLKP)) -#endif /*QUADSPI*/ - -#if defined(OCTOSPI1) || defined(OCTOSPI1) -#define IS_RCC_OSPICLK(__SOURCE__) \ - (((__SOURCE__) == RCC_OSPICLKSOURCE_D1HCLK) || \ - ((__SOURCE__) == RCC_OSPICLKSOURCE_PLL) || \ - ((__SOURCE__) == RCC_OSPICLKSOURCE_PLL2) || \ - ((__SOURCE__) == RCC_OSPICLKSOURCE_CLKP)) -#endif /*OCTOSPI1 || OCTOSPI1*/ - -#if defined(DSI) -#define IS_RCC_DSICLK(__SOURCE__) \ - (((__SOURCE__) == RCC_DSICLKSOURCE_PHY) || \ - ((__SOURCE__) == RCC_DSICLKSOURCE_PLL2)) -#endif /*DSI*/ - -#define IS_RCC_FMCCLK(__SOURCE__) \ - (((__SOURCE__) == RCC_FMCCLKSOURCE_D1HCLK) || \ - ((__SOURCE__) == RCC_FMCCLKSOURCE_PLL) || \ - ((__SOURCE__) == RCC_FMCCLKSOURCE_PLL2) || \ - ((__SOURCE__) == RCC_FMCCLKSOURCE_CLKP)) - -#if defined(FDCAN1) || defined(FDCAN2) -#define IS_RCC_FDCANCLK(__SOURCE__) \ - (((__SOURCE__) == RCC_FDCANCLKSOURCE_HSE) || \ - ((__SOURCE__) == RCC_FDCANCLKSOURCE_PLL) || \ - ((__SOURCE__) == RCC_FDCANCLKSOURCE_PLL2)) -#endif /*FDCAN1 || FDCAN2*/ - -#define IS_RCC_SDMMC(__SOURCE__) \ - (((__SOURCE__) == RCC_SDMMCCLKSOURCE_PLL) || \ - ((__SOURCE__) == RCC_SDMMCCLKSOURCE_PLL2)) - -#define IS_RCC_ADCCLKSOURCE(SOURCE) (((SOURCE) == RCC_ADCCLKSOURCE_PLL2) || \ - ((SOURCE) == RCC_ADCCLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_ADCCLKSOURCE_CLKP)) - -#define IS_RCC_SWPMI1CLKSOURCE(SOURCE) (((SOURCE) == RCC_SWPMI1CLKSOURCE_D2PCLK1) || \ - ((SOURCE) == RCC_SWPMI1CLKSOURCE_HSI)) - -#define IS_RCC_DFSDM1CLKSOURCE(SOURCE) (((SOURCE) == RCC_DFSDM1CLKSOURCE_D2PCLK1) || \ - ((SOURCE) == RCC_DFSDM1CLKSOURCE_SYS)) - -#if defined(DFSDM2_BASE) -#define IS_RCC_DFSDM2CLKSOURCE(SOURCE) (((SOURCE) == RCC_DFSDM2CLKSOURCE_SRDPCLK1) || \ - ((SOURCE) == RCC_DFSDM2CLKSOURCE_SYS)) -#endif /*DFSDM2*/ - -#define IS_RCC_SPDIFRXCLKSOURCE(SOURCE)(((SOURCE) == RCC_SPDIFRXCLKSOURCE_PLL) || \ - ((SOURCE) == RCC_SPDIFRXCLKSOURCE_PLL2) || \ - ((SOURCE) == RCC_SPDIFRXCLKSOURCE_PLL3) || \ - ((SOURCE) == RCC_SPDIFRXCLKSOURCE_HSI)) - -#define IS_RCC_CECCLKSOURCE(SOURCE) (((SOURCE) == RCC_CECCLKSOURCE_LSE) || \ - ((SOURCE) == RCC_CECCLKSOURCE_LSI) || \ - ((SOURCE) == RCC_CECCLKSOURCE_CSI)) - -#define IS_RCC_CLKPSOURCE(SOURCE) (((SOURCE) == RCC_CLKPSOURCE_HSI) || \ - ((SOURCE) == RCC_CLKPSOURCE_CSI) || \ - ((SOURCE) == RCC_CLKPSOURCE_HSE)) -#define IS_RCC_TIMPRES(VALUE) \ - (((VALUE) == RCC_TIMPRES_DESACTIVATED) || \ - ((VALUE) == RCC_TIMPRES_ACTIVATED)) - -#if defined(DUAL_CORE) -#define IS_RCC_BOOT_CORE(CORE) (((CORE) == RCC_BOOT_C1) || \ - ((CORE) == RCC_BOOT_C2)) -#endif /*DUAL_CORE*/ - -#if defined(DUAL_CORE) -#define IS_RCC_SCOPE_WWDG(WWDG) (((WWDG) == RCC_WWDG1) || \ - ((WWDG) == RCC_WWDG2)) -#else -#define IS_RCC_SCOPE_WWDG(WWDG) ((WWDG) == RCC_WWDG1) - -#endif /*DUAL_CORE*/ - -#define IS_RCC_CRS_SYNC_SOURCE(__SOURCE__) (((__SOURCE__) == RCC_CRS_SYNC_SOURCE_USB2) || \ - ((__SOURCE__) == RCC_CRS_SYNC_SOURCE_LSE) || \ - ((__SOURCE__) == RCC_CRS_SYNC_SOURCE_USB1) || \ - ((__SOURCE__) == RCC_CRS_SYNC_SOURCE_PIN)) - -#define IS_RCC_CRS_SYNC_DIV(__DIV__) (((__DIV__) == RCC_CRS_SYNC_DIV1) || ((__DIV__) == RCC_CRS_SYNC_DIV2) || \ - ((__DIV__) == RCC_CRS_SYNC_DIV4) || ((__DIV__) == RCC_CRS_SYNC_DIV8) || \ - ((__DIV__) == RCC_CRS_SYNC_DIV16) || ((__DIV__) == RCC_CRS_SYNC_DIV32) || \ - ((__DIV__) == RCC_CRS_SYNC_DIV64) || ((__DIV__) == RCC_CRS_SYNC_DIV128)) - -#define IS_RCC_CRS_SYNC_POLARITY(__POLARITY__) (((__POLARITY__) == RCC_CRS_SYNC_POLARITY_RISING) || \ - ((__POLARITY__) == RCC_CRS_SYNC_POLARITY_FALLING)) - -#define IS_RCC_CRS_RELOADVALUE(__VALUE__) (((__VALUE__) <= 0xFFFFU)) - -#define IS_RCC_CRS_ERRORLIMIT(__VALUE__) (((__VALUE__) <= 0xFFU)) - -#define IS_RCC_CRS_HSI48CALIBRATION(__VALUE__) (((__VALUE__) <= 0x3FU)) - -#define IS_RCC_CRS_FREQERRORDIR(__DIR__) (((__DIR__) == RCC_CRS_FREQERRORDIR_UP) || \ - ((__DIR__) == RCC_CRS_FREQERRORDIR_DOWN)) -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_HAL_RCC_EX_H */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h deleted file mode 100644 index 83fa74f..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd.h +++ /dev/null @@ -1,800 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_sd.h - * @author MCD Application Team - * @brief Header file of SD HAL module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_HAL_SD_H -#define STM32H7xx_HAL_SD_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_ll_sdmmc.h" -#if defined (DLYB_SDMMC1) || defined (DLYB_SDMMC2) || defined (DLYB_SDMMC3) -#include "stm32h7xx_ll_delayblock.h" -#endif /* (DLYB_SDMMC1) || (DLYB_SDMMC2) */ - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @defgroup SD SD - * @brief SD HAL module driver - * @{ - */ - -/* Exported types ------------------------------------------------------------*/ -/** @defgroup SD_Exported_Types SD Exported Types - * @{ - */ - -/** @defgroup SD_Exported_Types_Group1 SD State enumeration structure - * @{ - */ -typedef enum -{ - HAL_SD_STATE_RESET = ((uint32_t)0x00000000U), /*!< SD not yet initialized or disabled */ - HAL_SD_STATE_READY = ((uint32_t)0x00000001U), /*!< SD initialized and ready for use */ - HAL_SD_STATE_TIMEOUT = ((uint32_t)0x00000002U), /*!< SD Timeout state */ - HAL_SD_STATE_BUSY = ((uint32_t)0x00000003U), /*!< SD process ongoing */ - HAL_SD_STATE_PROGRAMMING = ((uint32_t)0x00000004U), /*!< SD Programming State */ - HAL_SD_STATE_RECEIVING = ((uint32_t)0x00000005U), /*!< SD Receiving State */ - HAL_SD_STATE_TRANSFER = ((uint32_t)0x00000006U), /*!< SD Transfer State */ - HAL_SD_STATE_ERROR = ((uint32_t)0x0000000FU) /*!< SD is in error state */ -} HAL_SD_StateTypeDef; -/** - * @} - */ - -/** @defgroup SD_Exported_Types_Group2 SD Card State enumeration structure - * @{ - */ -typedef uint32_t HAL_SD_CardStateTypeDef; - -#define HAL_SD_CARD_READY 0x00000001U /*!< Card state is ready */ -#define HAL_SD_CARD_IDENTIFICATION 0x00000002U /*!< Card is in identification state */ -#define HAL_SD_CARD_STANDBY 0x00000003U /*!< Card is in standby state */ -#define HAL_SD_CARD_TRANSFER 0x00000004U /*!< Card is in transfer state */ -#define HAL_SD_CARD_SENDING 0x00000005U /*!< Card is sending an operation */ -#define HAL_SD_CARD_RECEIVING 0x00000006U /*!< Card is receiving operation information */ -#define HAL_SD_CARD_PROGRAMMING 0x00000007U /*!< Card is in programming state */ -#define HAL_SD_CARD_DISCONNECTED 0x00000008U /*!< Card is disconnected */ -#define HAL_SD_CARD_ERROR 0x000000FFU /*!< Card response Error */ -/** - * @} - */ - -/** @defgroup SD_Exported_Types_Group3 SD Handle Structure definition - * @{ - */ -#define SD_InitTypeDef SDMMC_InitTypeDef -#define SD_TypeDef SDMMC_TypeDef - -/** - * @brief SD Card Information Structure definition - */ -typedef struct -{ - uint32_t CardType; /*!< Specifies the card Type */ - - uint32_t CardVersion; /*!< Specifies the card version */ - - uint32_t Class; /*!< Specifies the class of the card class */ - - uint32_t RelCardAdd; /*!< Specifies the Relative Card Address */ - - uint32_t BlockNbr; /*!< Specifies the Card Capacity in blocks */ - - uint32_t BlockSize; /*!< Specifies one block size in bytes */ - - uint32_t LogBlockNbr; /*!< Specifies the Card logical Capacity in blocks */ - - uint32_t LogBlockSize; /*!< Specifies logical block size in bytes */ - - uint32_t CardSpeed; /*!< Specifies the card Speed */ - -} HAL_SD_CardInfoTypeDef; - -/** - * @brief SD handle Structure definition - */ -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) -typedef struct __SD_HandleTypeDef -#else -typedef struct -#endif /* USE_HAL_SD_REGISTER_CALLBACKS */ -{ - SD_TypeDef *Instance; /*!< SD registers base address */ - - SD_InitTypeDef Init; /*!< SD required parameters */ - - HAL_LockTypeDef Lock; /*!< SD locking object */ - - const uint8_t *pTxBuffPtr; /*!< Pointer to SD Tx transfer Buffer */ - - uint32_t TxXferSize; /*!< SD Tx Transfer size */ - - uint8_t *pRxBuffPtr; /*!< Pointer to SD Rx transfer Buffer */ - - uint32_t RxXferSize; /*!< SD Rx Transfer size */ - - __IO uint32_t Context; /*!< SD transfer context */ - - __IO HAL_SD_StateTypeDef State; /*!< SD card State */ - - __IO uint32_t ErrorCode; /*!< SD Card Error codes */ - - HAL_SD_CardInfoTypeDef SdCard; /*!< SD Card information */ - - uint32_t CSD[4]; /*!< SD card specific data table */ - - uint32_t CID[4]; /*!< SD card identification number table */ - -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) - void (* TxCpltCallback)(struct __SD_HandleTypeDef *hsd); - void (* RxCpltCallback)(struct __SD_HandleTypeDef *hsd); - void (* ErrorCallback)(struct __SD_HandleTypeDef *hsd); - void (* AbortCpltCallback)(struct __SD_HandleTypeDef *hsd); - void (* Read_DMADblBuf0CpltCallback)(struct __SD_HandleTypeDef *hsd); - void (* Read_DMADblBuf1CpltCallback)(struct __SD_HandleTypeDef *hsd); - void (* Write_DMADblBuf0CpltCallback)(struct __SD_HandleTypeDef *hsd); - void (* Write_DMADblBuf1CpltCallback)(struct __SD_HandleTypeDef *hsd); -#if (USE_SD_TRANSCEIVER != 0U) - void (* DriveTransceiver_1_8V_Callback)(FlagStatus status); -#endif /* USE_SD_TRANSCEIVER */ - - void (* MspInitCallback)(struct __SD_HandleTypeDef *hsd); - void (* MspDeInitCallback)(struct __SD_HandleTypeDef *hsd); -#endif /* USE_HAL_SD_REGISTER_CALLBACKS */ -} SD_HandleTypeDef; - -/** - * @} - */ - -/** @defgroup SD_Exported_Types_Group4 Card Specific Data: CSD Register - * @{ - */ -typedef struct -{ - __IO uint8_t CSDStruct; /*!< CSD structure */ - __IO uint8_t SysSpecVersion; /*!< System specification version */ - __IO uint8_t Reserved1; /*!< Reserved */ - __IO uint8_t TAAC; /*!< Data read access time 1 */ - __IO uint8_t NSAC; /*!< Data read access time 2 in CLK cycles */ - __IO uint8_t MaxBusClkFrec; /*!< Max. bus clock frequency */ - __IO uint16_t CardComdClasses; /*!< Card command classes */ - __IO uint8_t RdBlockLen; /*!< Max. read data block length */ - __IO uint8_t PartBlockRead; /*!< Partial blocks for read allowed */ - __IO uint8_t WrBlockMisalign; /*!< Write block misalignment */ - __IO uint8_t RdBlockMisalign; /*!< Read block misalignment */ - __IO uint8_t DSRImpl; /*!< DSR implemented */ - __IO uint8_t Reserved2; /*!< Reserved */ - __IO uint32_t DeviceSize; /*!< Device Size */ - __IO uint8_t MaxRdCurrentVDDMin; /*!< Max. read current @ VDD min */ - __IO uint8_t MaxRdCurrentVDDMax; /*!< Max. read current @ VDD max */ - __IO uint8_t MaxWrCurrentVDDMin; /*!< Max. write current @ VDD min */ - __IO uint8_t MaxWrCurrentVDDMax; /*!< Max. write current @ VDD max */ - __IO uint8_t DeviceSizeMul; /*!< Device size multiplier */ - __IO uint8_t EraseGrSize; /*!< Erase group size */ - __IO uint8_t EraseGrMul; /*!< Erase group size multiplier */ - __IO uint8_t WrProtectGrSize; /*!< Write protect group size */ - __IO uint8_t WrProtectGrEnable; /*!< Write protect group enable */ - __IO uint8_t ManDeflECC; /*!< Manufacturer default ECC */ - __IO uint8_t WrSpeedFact; /*!< Write speed factor */ - __IO uint8_t MaxWrBlockLen; /*!< Max. write data block length */ - __IO uint8_t WriteBlockPaPartial; /*!< Partial blocks for write allowed */ - __IO uint8_t Reserved3; /*!< Reserved */ - __IO uint8_t ContentProtectAppli; /*!< Content protection application */ - __IO uint8_t FileFormatGroup; /*!< File format group */ - __IO uint8_t CopyFlag; /*!< Copy flag (OTP) */ - __IO uint8_t PermWrProtect; /*!< Permanent write protection */ - __IO uint8_t TempWrProtect; /*!< Temporary write protection */ - __IO uint8_t FileFormat; /*!< File format */ - __IO uint8_t ECC; /*!< ECC code */ - __IO uint8_t CSD_CRC; /*!< CSD CRC */ - __IO uint8_t Reserved4; /*!< Always 1 */ -} HAL_SD_CardCSDTypeDef; -/** - * @} - */ - -/** @defgroup SD_Exported_Types_Group5 Card Identification Data: CID Register - * @{ - */ -typedef struct -{ - __IO uint8_t ManufacturerID; /*!< Manufacturer ID */ - __IO uint16_t OEM_AppliID; /*!< OEM/Application ID */ - __IO uint32_t ProdName1; /*!< Product Name part1 */ - __IO uint8_t ProdName2; /*!< Product Name part2 */ - __IO uint8_t ProdRev; /*!< Product Revision */ - __IO uint32_t ProdSN; /*!< Product Serial Number */ - __IO uint8_t Reserved1; /*!< Reserved1 */ - __IO uint16_t ManufactDate; /*!< Manufacturing Date */ - __IO uint8_t CID_CRC; /*!< CID CRC */ - __IO uint8_t Reserved2; /*!< Always 1 */ - -} HAL_SD_CardCIDTypeDef; -/** - * @} - */ - -/** @defgroup SD_Exported_Types_Group6 SD Card Status returned by ACMD13 - * @{ - */ -typedef struct -{ - __IO uint8_t DataBusWidth; /*!< Shows the currently defined data bus width */ - __IO uint8_t SecuredMode; /*!< Card is in secured mode of operation */ - __IO uint16_t CardType; /*!< Carries information about card type */ - __IO uint32_t ProtectedAreaSize; /*!< Carries information about the capacity of protected area */ - __IO uint8_t SpeedClass; /*!< Carries information about the speed class of the card */ - __IO uint8_t PerformanceMove; /*!< Carries information about the card's performance move */ - __IO uint8_t AllocationUnitSize; /*!< Carries information about the card's allocation unit size */ - __IO uint16_t EraseSize; /*!< Determines the number of AUs to be erased in one operation */ - __IO uint8_t EraseTimeout; /*!< Determines the timeout for any number of AU erase */ - __IO uint8_t EraseOffset; /*!< Carries information about the erase offset */ - __IO uint8_t UhsSpeedGrade; /*!< Carries information about the speed grade of UHS card */ - __IO uint8_t UhsAllocationUnitSize; /*!< Carries information about the UHS card's allocation unit size */ - __IO uint8_t VideoSpeedClass; /*!< Carries information about the Video Speed Class of UHS card */ -} HAL_SD_CardStatusTypeDef; -/** - * @} - */ - -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) -/** @defgroup SD_Exported_Types_Group7 SD Callback ID enumeration definition - * @{ - */ -typedef enum -{ - HAL_SD_TX_CPLT_CB_ID = 0x00U, /*!< SD Tx Complete Callback ID */ - HAL_SD_RX_CPLT_CB_ID = 0x01U, /*!< SD Rx Complete Callback ID */ - HAL_SD_ERROR_CB_ID = 0x02U, /*!< SD Error Callback ID */ - HAL_SD_ABORT_CB_ID = 0x03U, /*!< SD Abort Callback ID */ - HAL_SD_READ_DMA_DBL_BUF0_CPLT_CB_ID = 0x04U, /*!< SD Rx DMA Double Buffer 0 Complete Callback ID */ - HAL_SD_READ_DMA_DBL_BUF1_CPLT_CB_ID = 0x05U, /*!< SD Rx DMA Double Buffer 1 Complete Callback ID */ - HAL_SD_WRITE_DMA_DBL_BUF0_CPLT_CB_ID = 0x06U, /*!< SD Tx DMA Double Buffer 0 Complete Callback ID */ - HAL_SD_WRITE_DMA_DBL_BUF1_CPLT_CB_ID = 0x07U, /*!< SD Tx DMA Double Buffer 1 Complete Callback ID */ - - HAL_SD_MSP_INIT_CB_ID = 0x10U, /*!< SD MspInit Callback ID */ - HAL_SD_MSP_DEINIT_CB_ID = 0x11U /*!< SD MspDeInit Callback ID */ -} HAL_SD_CallbackIDTypeDef; -/** - * @} - */ - -/** @defgroup SD_Exported_Types_Group8 SD Callback pointer definition - * @{ - */ -typedef void (*pSD_CallbackTypeDef)(SD_HandleTypeDef *hsd); -#if (USE_SD_TRANSCEIVER != 0U) -typedef void (*pSD_TransceiverCallbackTypeDef)(FlagStatus status); -#endif /* USE_SD_TRANSCEIVER */ -/** - * @} - */ -#endif /* USE_HAL_SD_REGISTER_CALLBACKS */ -/** - * @} - */ - -/* Exported constants --------------------------------------------------------*/ -/** @defgroup SD_Exported_Constants SD Exported Constants - * @{ - */ - -#define BLOCKSIZE ((uint32_t)512U) /*!< Block size is 512 bytes */ - -/** @defgroup SD_Exported_Constansts_Group1 SD Error status enumeration Structure definition - * @{ - */ -#define HAL_SD_ERROR_NONE SDMMC_ERROR_NONE /*!< No error */ -#define HAL_SD_ERROR_CMD_CRC_FAIL SDMMC_ERROR_CMD_CRC_FAIL /*!< Command response received (but CRC check failed) */ -#define HAL_SD_ERROR_DATA_CRC_FAIL SDMMC_ERROR_DATA_CRC_FAIL /*!< Data block sent/received (CRC check failed) */ -#define HAL_SD_ERROR_CMD_RSP_TIMEOUT SDMMC_ERROR_CMD_RSP_TIMEOUT /*!< Command response timeout */ -#define HAL_SD_ERROR_DATA_TIMEOUT SDMMC_ERROR_DATA_TIMEOUT /*!< Data timeout */ -#define HAL_SD_ERROR_TX_UNDERRUN SDMMC_ERROR_TX_UNDERRUN /*!< Transmit FIFO underrun */ -#define HAL_SD_ERROR_RX_OVERRUN SDMMC_ERROR_RX_OVERRUN /*!< Receive FIFO overrun */ -#define HAL_SD_ERROR_ADDR_MISALIGNED SDMMC_ERROR_ADDR_MISALIGNED /*!< Misaligned address */ -#define HAL_SD_ERROR_BLOCK_LEN_ERR SDMMC_ERROR_BLOCK_LEN_ERR /*!< Transferred block length is not allowed for the card or the */ - /*!< number of transferred bytes does not match the block length */ -#define HAL_SD_ERROR_ERASE_SEQ_ERR SDMMC_ERROR_ERASE_SEQ_ERR /*!< An error in the sequence of erase command occurs */ -#define HAL_SD_ERROR_BAD_ERASE_PARAM SDMMC_ERROR_BAD_ERASE_PARAM /*!< An invalid selection for erase groups */ -#define HAL_SD_ERROR_WRITE_PROT_VIOLATION SDMMC_ERROR_WRITE_PROT_VIOLATION /*!< Attempt to program a write protect block */ -#define HAL_SD_ERROR_LOCK_UNLOCK_FAILED SDMMC_ERROR_LOCK_UNLOCK_FAILED /*!< Sequence or password error has been detected in unlock */ - /*!< command or if there was an attempt to access a locked card */ -#define HAL_SD_ERROR_COM_CRC_FAILED SDMMC_ERROR_COM_CRC_FAILED /*!< CRC check of the previous command failed */ -#define HAL_SD_ERROR_ILLEGAL_CMD SDMMC_ERROR_ILLEGAL_CMD /*!< Command is not legal for the card state */ -#define HAL_SD_ERROR_CARD_ECC_FAILED SDMMC_ERROR_CARD_ECC_FAILED /*!< Card internal ECC was applied but failed to correct the data */ -#define HAL_SD_ERROR_CC_ERR SDMMC_ERROR_CC_ERR /*!< Internal card controller error */ -#define HAL_SD_ERROR_GENERAL_UNKNOWN_ERR SDMMC_ERROR_GENERAL_UNKNOWN_ERR /*!< General or unknown error */ -#define HAL_SD_ERROR_STREAM_READ_UNDERRUN SDMMC_ERROR_STREAM_READ_UNDERRUN /*!< The card could not sustain data reading in stream rmode */ -#define HAL_SD_ERROR_STREAM_WRITE_OVERRUN SDMMC_ERROR_STREAM_WRITE_OVERRUN /*!< The card could not sustain data programming in stream mode */ -#define HAL_SD_ERROR_CID_CSD_OVERWRITE SDMMC_ERROR_CID_CSD_OVERWRITE /*!< CID/CSD overwrite error */ -#define HAL_SD_ERROR_WP_ERASE_SKIP SDMMC_ERROR_WP_ERASE_SKIP /*!< Only partial address space was erased */ -#define HAL_SD_ERROR_CARD_ECC_DISABLED SDMMC_ERROR_CARD_ECC_DISABLED /*!< Command has been executed without using internal ECC */ -#define HAL_SD_ERROR_ERASE_RESET SDMMC_ERROR_ERASE_RESET /*!< Erase sequence was cleared before executing because an out */ - /*!< of erase sequence command was received */ -#define HAL_SD_ERROR_AKE_SEQ_ERR SDMMC_ERROR_AKE_SEQ_ERR /*!< Error in sequence of authentication */ -#define HAL_SD_ERROR_INVALID_VOLTRANGE SDMMC_ERROR_INVALID_VOLTRANGE /*!< Error in case of invalid voltage range */ -#define HAL_SD_ERROR_ADDR_OUT_OF_RANGE SDMMC_ERROR_ADDR_OUT_OF_RANGE /*!< Error when addressed block is out of range */ -#define HAL_SD_ERROR_REQUEST_NOT_APPLICABLE SDMMC_ERROR_REQUEST_NOT_APPLICABLE /*!< Error when command request is not applicable */ -#define HAL_SD_ERROR_PARAM SDMMC_ERROR_INVALID_PARAMETER /*!< the used parameter is not valid */ -#define HAL_SD_ERROR_UNSUPPORTED_FEATURE SDMMC_ERROR_UNSUPPORTED_FEATURE /*!< Error when feature is not insupported */ -#define HAL_SD_ERROR_BUSY SDMMC_ERROR_BUSY /*!< Error when transfer process is busy */ -#define HAL_SD_ERROR_DMA SDMMC_ERROR_DMA /*!< Error while DMA transfer */ -#define HAL_SD_ERROR_TIMEOUT SDMMC_ERROR_TIMEOUT /*!< Timeout error */ - -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) -#define HAL_SD_ERROR_INVALID_CALLBACK SDMMC_ERROR_INVALID_PARAMETER /*!< Invalid callback error */ -#endif /* USE_HAL_SD_REGISTER_CALLBACKS */ -/** - * @} - */ - -/** @defgroup SD_Exported_Constansts_Group2 SD context enumeration - * @{ - */ -#define SD_CONTEXT_NONE ((uint32_t)0x00000000U) /*!< None */ -#define SD_CONTEXT_READ_SINGLE_BLOCK ((uint32_t)0x00000001U) /*!< Read single block operation */ -#define SD_CONTEXT_READ_MULTIPLE_BLOCK ((uint32_t)0x00000002U) /*!< Read multiple blocks operation */ -#define SD_CONTEXT_WRITE_SINGLE_BLOCK ((uint32_t)0x00000010U) /*!< Write single block operation */ -#define SD_CONTEXT_WRITE_MULTIPLE_BLOCK ((uint32_t)0x00000020U) /*!< Write multiple blocks operation */ -#define SD_CONTEXT_IT ((uint32_t)0x00000008U) /*!< Process in Interrupt mode */ -#define SD_CONTEXT_DMA ((uint32_t)0x00000080U) /*!< Process in DMA mode */ - -/** - * @} - */ - -/** @defgroup SD_Exported_Constansts_Group3 SD Supported Memory Cards - * @{ - */ -#define CARD_NORMAL_SPEED ((uint32_t)0x00000000U) /*!< Normal Speed Card <12.5Mo/s , Spec Version 1.01 */ -#define CARD_HIGH_SPEED ((uint32_t)0x00000100U) /*!< High Speed Card <25Mo/s , Spec version 2.00 */ -#define CARD_ULTRA_HIGH_SPEED ((uint32_t)0x00000200U) /*!< UHS-I SD Card <50Mo/s for SDR50, DDR5 Cards - and <104Mo/s for SDR104, Spec version 3.01 */ - -#define CARD_SDSC ((uint32_t)0x00000000U) /*!< SD Standard Capacity <2Go */ -#define CARD_SDHC_SDXC ((uint32_t)0x00000001U) /*!< SD High Capacity <32Go, SD Extended Capacity <2To */ -#define CARD_SECURED ((uint32_t)0x00000003U) - -/** - * @} - */ - -/** @defgroup SD_Exported_Constansts_Group4 SD Supported Version - * @{ - */ -#define CARD_V1_X ((uint32_t)0x00000000U) -#define CARD_V2_X ((uint32_t)0x00000001U) -/** - * @} - */ - -/** - * @} - */ - -/* Exported macro ------------------------------------------------------------*/ -/** @defgroup SD_Exported_macros SD Exported Macros - * @brief macros to handle interrupts and specific clock configurations - * @{ - */ -/** @brief Reset SD handle state. - * @param __HANDLE__ SD Handle. - * @retval None - */ -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) -#define __HAL_SD_RESET_HANDLE_STATE(__HANDLE__) do { \ - (__HANDLE__)->State = HAL_SD_STATE_RESET; \ - (__HANDLE__)->MspInitCallback = NULL; \ - (__HANDLE__)->MspDeInitCallback = NULL; \ - } while(0) -#else -#define __HAL_SD_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_SD_STATE_RESET) -#endif /* USE_HAL_SD_REGISTER_CALLBACKS */ - -/** - * @brief Enable the SD device interrupt. - * @param __HANDLE__ SD Handle. - * @param __INTERRUPT__ specifies the SDMMC interrupt sources to be enabled. - * This parameter can be one or a combination of the following values: - * @arg SDMMC_IT_CCRCFAIL: Command response received (CRC check failed) interrupt - * @arg SDMMC_IT_DCRCFAIL: Data block sent/received (CRC check failed) interrupt - * @arg SDMMC_IT_CTIMEOUT: Command response timeout interrupt - * @arg SDMMC_IT_DTIMEOUT: Data timeout interrupt - * @arg SDMMC_IT_TXUNDERR: Transmit FIFO underrun error interrupt - * @arg SDMMC_IT_RXOVERR: Received FIFO overrun error interrupt - * @arg SDMMC_IT_CMDREND: Command response received (CRC check passed) interrupt - * @arg SDMMC_IT_CMDSENT: Command sent (no response required) interrupt - * @arg SDMMC_IT_DATAEND: Data end (data counter, DATACOUNT, is zero) interrupt - * @arg SDMMC_IT_DHOLD: Data transfer Hold interrupt - * @arg SDMMC_IT_DBCKEND: Data block sent/received (CRC check passed) interrupt - * @arg SDMMC_IT_DABORT: Data transfer aborted by CMD12 interrupt - * @arg SDMMC_IT_TXFIFOHE: Transmit FIFO Half Empty interrupt - * @arg SDMMC_IT_RXFIFOHF: Receive FIFO Half Full interrupt - * @arg SDMMC_IT_RXFIFOF: Receive FIFO full interrupt - * @arg SDMMC_IT_TXFIFOE: Transmit FIFO empty interrupt - * @arg SDMMC_IT_BUSYD0END: End of SDMMC_D0 Busy following a CMD response detected interrupt - * @arg SDMMC_IT_SDIOIT: SDIO interrupt received interrupt - * @arg SDMMC_IT_ACKFAIL: Boot Acknowledgment received interrupt - * @arg SDMMC_IT_ACKTIMEOUT: Boot Acknowledgment timeout interrupt - * @arg SDMMC_IT_VSWEND: Voltage switch critical timing section completion interrupt - * @arg SDMMC_IT_CKSTOP: SDMMC_CK stopped in Voltage switch procedure interrupt - * @arg SDMMC_IT_IDMABTC: IDMA buffer transfer complete interrupt - * @retval None - */ -#define __HAL_SD_ENABLE_IT(__HANDLE__, __INTERRUPT__) __SDMMC_ENABLE_IT((__HANDLE__)->Instance, (__INTERRUPT__)) - -/** - * @brief Disable the SD device interrupt. - * @param __HANDLE__ SD Handle. - * @param __INTERRUPT__ specifies the SDMMC interrupt sources to be disabled. - * This parameter can be one or a combination of the following values: - * @arg SDMMC_IT_CCRCFAIL: Command response received (CRC check failed) interrupt - * @arg SDMMC_IT_DCRCFAIL: Data block sent/received (CRC check failed) interrupt - * @arg SDMMC_IT_CTIMEOUT: Command response timeout interrupt - * @arg SDMMC_IT_DTIMEOUT: Data timeout interrupt - * @arg SDMMC_IT_TXUNDERR: Transmit FIFO underrun error interrupt - * @arg SDMMC_IT_RXOVERR: Received FIFO overrun error interrupt - * @arg SDMMC_IT_CMDREND: Command response received (CRC check passed) interrupt - * @arg SDMMC_IT_CMDSENT: Command sent (no response required) interrupt - * @arg SDMMC_IT_DATAEND: Data end (data counter, DATACOUNT, is zero) interrupt - * @arg SDMMC_IT_DHOLD: Data transfer Hold interrupt - * @arg SDMMC_IT_DBCKEND: Data block sent/received (CRC check passed) interrupt - * @arg SDMMC_IT_DABORT: Data transfer aborted by CMD12 interrupt - * @arg SDMMC_IT_TXFIFOHE: Transmit FIFO Half Empty interrupt - * @arg SDMMC_IT_RXFIFOHF: Receive FIFO Half Full interrupt - * @arg SDMMC_IT_RXFIFOF: Receive FIFO full interrupt - * @arg SDMMC_IT_TXFIFOE: Transmit FIFO empty interrupt - * @arg SDMMC_IT_BUSYD0END: End of SDMMC_D0 Busy following a CMD response detected interrupt - * @arg SDMMC_IT_SDIOIT: SDIO interrupt received interrupt - * @arg SDMMC_IT_ACKFAIL: Boot Acknowledgment received interrupt - * @arg SDMMC_IT_ACKTIMEOUT: Boot Acknowledgment timeout interrupt - * @arg SDMMC_IT_VSWEND: Voltage switch critical timing section completion interrupt - * @arg SDMMC_IT_CKSTOP: SDMMC_CK stopped in Voltage switch procedure interrupt - * @arg SDMMC_IT_IDMABTC: IDMA buffer transfer complete interrupt - * @retval None - */ -#define __HAL_SD_DISABLE_IT(__HANDLE__, __INTERRUPT__) __SDMMC_DISABLE_IT((__HANDLE__)->Instance, (__INTERRUPT__)) - -/** - * @brief Check whether the specified SD flag is set or not. - * @param __HANDLE__ SD Handle. - * @param __FLAG__ specifies the flag to check. - * This parameter can be one of the following values: - * @arg SDMMC_FLAG_CCRCFAIL: Command response received (CRC check failed) - * @arg SDMMC_FLAG_DCRCFAIL: Data block sent/received (CRC check failed) - * @arg SDMMC_FLAG_CTIMEOUT: Command response timeout - * @arg SDMMC_FLAG_DTIMEOUT: Data timeout - * @arg SDMMC_FLAG_TXUNDERR: Transmit FIFO underrun error - * @arg SDMMC_FLAG_RXOVERR: Received FIFO overrun error - * @arg SDMMC_FLAG_CMDREND: Command response received (CRC check passed) - * @arg SDMMC_FLAG_CMDSENT: Command sent (no response required) - * @arg SDMMC_FLAG_DATAEND: Data end (data counter, DATACOUNT, is zero) - * @arg SDMMC_FLAG_DHOLD: Data transfer Hold - * @arg SDMMC_FLAG_DBCKEND: Data block sent/received (CRC check passed) - * @arg SDMMC_FLAG_DABORT: Data transfer aborted by CMD12 - * @arg SDMMC_FLAG_DPSMACT: Data path state machine active - * @arg SDMMC_FLAG_CPSMACT: Command path state machine active - * @arg SDMMC_FLAG_TXFIFOHE: Transmit FIFO Half Empty - * @arg SDMMC_FLAG_RXFIFOHF: Receive FIFO Half Full - * @arg SDMMC_FLAG_TXFIFOF: Transmit FIFO full - * @arg SDMMC_FLAG_RXFIFOF: Receive FIFO full - * @arg SDMMC_FLAG_TXFIFOE: Transmit FIFO empty - * @arg SDMMC_FLAG_RXFIFOE: Receive FIFO empty - * @arg SDMMC_FLAG_BUSYD0: Inverted value of SDMMC_D0 line (Busy) - * @arg SDMMC_FLAG_BUSYD0END: End of SDMMC_D0 Busy following a CMD response detected - * @arg SDMMC_FLAG_SDIOIT: SDIO interrupt received - * @arg SDMMC_FLAG_ACKFAIL: Boot Acknowledgment received - * @arg SDMMC_FLAG_ACKTIMEOUT: Boot Acknowledgment timeout - * @arg SDMMC_FLAG_VSWEND: Voltage switch critical timing section completion - * @arg SDMMC_FLAG_CKSTOP: SDMMC_CK stopped in Voltage switch procedure - * @arg SDMMC_FLAG_IDMATE: IDMA transfer error - * @arg SDMMC_FLAG_IDMABTC: IDMA buffer transfer complete - * @retval The new state of SD FLAG (SET or RESET). - */ -#define __HAL_SD_GET_FLAG(__HANDLE__, __FLAG__) __SDMMC_GET_FLAG((__HANDLE__)->Instance, (__FLAG__)) - -/** - * @brief Clear the SD's pending flags. - * @param __HANDLE__ SD Handle. - * @param __FLAG__ specifies the flag to clear. - * This parameter can be one or a combination of the following values: - * @arg SDMMC_FLAG_CCRCFAIL: Command response received (CRC check failed) - * @arg SDMMC_FLAG_DCRCFAIL: Data block sent/received (CRC check failed) - * @arg SDMMC_FLAG_CTIMEOUT: Command response timeout - * @arg SDMMC_FLAG_DTIMEOUT: Data timeout - * @arg SDMMC_FLAG_TXUNDERR: Transmit FIFO underrun error - * @arg SDMMC_FLAG_RXOVERR: Received FIFO overrun error - * @arg SDMMC_FLAG_CMDREND: Command response received (CRC check passed) - * @arg SDMMC_FLAG_CMDSENT: Command sent (no response required) - * @arg SDMMC_FLAG_DATAEND: Data end (data counter, DATACOUNT, is zero) - * @arg SDMMC_FLAG_DHOLD: Data transfer Hold - * @arg SDMMC_FLAG_DBCKEND: Data block sent/received (CRC check passed) - * @arg SDMMC_FLAG_DABORT: Data transfer aborted by CMD12 - * @arg SDMMC_FLAG_BUSYD0END: End of SDMMC_D0 Busy following a CMD response detected - * @arg SDMMC_FLAG_SDIOIT: SDIO interrupt received - * @arg SDMMC_FLAG_ACKFAIL: Boot Acknowledgment received - * @arg SDMMC_FLAG_ACKTIMEOUT: Boot Acknowledgment timeout - * @arg SDMMC_FLAG_VSWEND: Voltage switch critical timing section completion - * @arg SDMMC_FLAG_CKSTOP: SDMMC_CK stopped in Voltage switch procedure - * @arg SDMMC_FLAG_IDMATE: IDMA transfer error - * @arg SDMMC_FLAG_IDMABTC: IDMA buffer transfer complete - * @retval None - */ -#define __HAL_SD_CLEAR_FLAG(__HANDLE__, __FLAG__) __SDMMC_CLEAR_FLAG((__HANDLE__)->Instance, (__FLAG__)) - -/** - * @brief Check whether the specified SD interrupt has occurred or not. - * @param __HANDLE__ SD Handle. - * @param __INTERRUPT__ specifies the SDMMC interrupt source to check. - * This parameter can be one of the following values: - * @arg SDMMC_IT_CCRCFAIL: Command response received (CRC check failed) interrupt - * @arg SDMMC_IT_DCRCFAIL: Data block sent/received (CRC check failed) interrupt - * @arg SDMMC_IT_CTIMEOUT: Command response timeout interrupt - * @arg SDMMC_IT_DTIMEOUT: Data timeout interrupt - * @arg SDMMC_IT_TXUNDERR: Transmit FIFO underrun error interrupt - * @arg SDMMC_IT_RXOVERR: Received FIFO overrun error interrupt - * @arg SDMMC_IT_CMDREND: Command response received (CRC check passed) interrupt - * @arg SDMMC_IT_CMDSENT: Command sent (no response required) interrupt - * @arg SDMMC_IT_DATAEND: Data end (data counter, DATACOUNT, is zero) interrupt - * @arg SDMMC_IT_DHOLD: Data transfer Hold interrupt - * @arg SDMMC_IT_DBCKEND: Data block sent/received (CRC check passed) interrupt - * @arg SDMMC_IT_DABORT: Data transfer aborted by CMD12 interrupt - * @arg SDMMC_IT_TXFIFOHE: Transmit FIFO Half Empty interrupt - * @arg SDMMC_IT_RXFIFOHF: Receive FIFO Half Full interrupt - * @arg SDMMC_IT_RXFIFOF: Receive FIFO full interrupt - * @arg SDMMC_IT_TXFIFOE: Transmit FIFO empty interrupt - * @arg SDMMC_IT_BUSYD0END: End of SDMMC_D0 Busy following a CMD response detected interrupt - * @arg SDMMC_IT_SDIOIT: SDIO interrupt received interrupt - * @arg SDMMC_IT_ACKFAIL: Boot Acknowledgment received interrupt - * @arg SDMMC_IT_ACKTIMEOUT: Boot Acknowledgment timeout interrupt - * @arg SDMMC_IT_VSWEND: Voltage switch critical timing section completion interrupt - * @arg SDMMC_IT_CKSTOP: SDMMC_CK stopped in Voltage switch procedure interrupt - * @arg SDMMC_IT_IDMABTC: IDMA buffer transfer complete interrupt - * @retval The new state of SD IT (SET or RESET). - */ -#define __HAL_SD_GET_IT(__HANDLE__, __INTERRUPT__) __SDMMC_GET_IT((__HANDLE__)->Instance, (__INTERRUPT__)) - -/** - * @brief Clear the SD's interrupt pending bits. - * @param __HANDLE__ SD Handle. - * @param __INTERRUPT__ specifies the interrupt pending bit to clear. - * This parameter can be one or a combination of the following values: - * @arg SDMMC_IT_CCRCFAIL: Command response received (CRC check failed) interrupt - * @arg SDMMC_IT_DCRCFAIL: Data block sent/received (CRC check failed) interrupt - * @arg SDMMC_IT_CTIMEOUT: Command response timeout interrupt - * @arg SDMMC_IT_DTIMEOUT: Data timeout interrupt - * @arg SDMMC_IT_TXUNDERR: Transmit FIFO underrun error interrupt - * @arg SDMMC_IT_RXOVERR: Received FIFO overrun error interrupt - * @arg SDMMC_IT_CMDREND: Command response received (CRC check passed) interrupt - * @arg SDMMC_IT_CMDSENT: Command sent (no response required) interrupt - * @arg SDMMC_IT_DATAEND: Data end (data counter, DATACOUNT, is zero) interrupt - * @arg SDMMC_IT_DHOLD: Data transfer Hold interrupt - * @arg SDMMC_IT_DBCKEND: Data block sent/received (CRC check passed) interrupt - * @arg SDMMC_IT_DABORT: Data transfer aborted by CMD12 interrupt - * @arg SDMMC_IT_BUSYD0END: End of SDMMC_D0 Busy following a CMD response detected interrupt - * @arg SDMMC_IT_SDIOIT: SDIO interrupt received interrupt - * @arg SDMMC_IT_ACKFAIL: Boot Acknowledgment received interrupt - * @arg SDMMC_IT_ACKTIMEOUT: Boot Acknowledgment timeout interrupt - * @arg SDMMC_IT_VSWEND: Voltage switch critical timing section completion interrupt - * @arg SDMMC_IT_CKSTOP: SDMMC_CK stopped in Voltage switch procedure interrupt - * @arg SDMMC_IT_IDMABTC: IDMA buffer transfer complete interrupt - * @retval None - */ -#define __HAL_SD_CLEAR_IT(__HANDLE__, __INTERRUPT__) __SDMMC_CLEAR_IT((__HANDLE__)->Instance, (__INTERRUPT__)) - -/** - * @} - */ - -/* Include SD HAL Extension module */ -#include "stm32h7xx_hal_sd_ex.h" - -/* Exported functions --------------------------------------------------------*/ -/** @defgroup SD_Exported_Functions SD Exported Functions - * @{ - */ - -/** @defgroup SD_Exported_Functions_Group1 Initialization and de-initialization functions - * @{ - */ -HAL_StatusTypeDef HAL_SD_Init(SD_HandleTypeDef *hsd); -HAL_StatusTypeDef HAL_SD_InitCard(SD_HandleTypeDef *hsd); -HAL_StatusTypeDef HAL_SD_DeInit(SD_HandleTypeDef *hsd); -void HAL_SD_MspInit(SD_HandleTypeDef *hsd); -void HAL_SD_MspDeInit(SD_HandleTypeDef *hsd); -/** - * @} - */ - -/** @defgroup SD_Exported_Functions_Group2 Input and Output operation functions - * @{ - */ -/* Blocking mode: Polling */ -HAL_StatusTypeDef HAL_SD_ReadBlocks(SD_HandleTypeDef *hsd, uint8_t *pData, uint32_t BlockAdd, uint32_t NumberOfBlocks, - uint32_t Timeout); -HAL_StatusTypeDef HAL_SD_WriteBlocks(SD_HandleTypeDef *hsd, const uint8_t *pData, uint32_t BlockAdd, - uint32_t NumberOfBlocks, uint32_t Timeout); -HAL_StatusTypeDef HAL_SD_Erase(SD_HandleTypeDef *hsd, uint32_t BlockStartAdd, uint32_t BlockEndAdd); -/* Non-Blocking mode: IT */ -HAL_StatusTypeDef HAL_SD_ReadBlocks_IT(SD_HandleTypeDef *hsd, uint8_t *pData, uint32_t BlockAdd, - uint32_t NumberOfBlocks); -HAL_StatusTypeDef HAL_SD_WriteBlocks_IT(SD_HandleTypeDef *hsd, const uint8_t *pData, uint32_t BlockAdd, - uint32_t NumberOfBlocks); -/* Non-Blocking mode: DMA */ -HAL_StatusTypeDef HAL_SD_ReadBlocks_DMA(SD_HandleTypeDef *hsd, uint8_t *pData, uint32_t BlockAdd, - uint32_t NumberOfBlocks); -HAL_StatusTypeDef HAL_SD_WriteBlocks_DMA(SD_HandleTypeDef *hsd, const uint8_t *pData, uint32_t BlockAdd, - uint32_t NumberOfBlocks); - -void HAL_SD_IRQHandler(SD_HandleTypeDef *hsd); - -/* Callback in non blocking modes (DMA) */ -void HAL_SD_TxCpltCallback(SD_HandleTypeDef *hsd); -void HAL_SD_RxCpltCallback(SD_HandleTypeDef *hsd); -void HAL_SD_ErrorCallback(SD_HandleTypeDef *hsd); -void HAL_SD_AbortCallback(SD_HandleTypeDef *hsd); - -#if (USE_SD_TRANSCEIVER != 0U) -/* Callback to switch in 1.8V mode */ -void HAL_SD_DriveTransceiver_1_8V_Callback(FlagStatus status); -#endif /* USE_SD_TRANSCEIVER */ - -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) -/* SD callback registering/unregistering */ -HAL_StatusTypeDef HAL_SD_RegisterCallback(SD_HandleTypeDef *hsd, HAL_SD_CallbackIDTypeDef CallbackID, - pSD_CallbackTypeDef pCallback); -HAL_StatusTypeDef HAL_SD_UnRegisterCallback(SD_HandleTypeDef *hsd, HAL_SD_CallbackIDTypeDef CallbackID); - -#if (USE_SD_TRANSCEIVER != 0U) -HAL_StatusTypeDef HAL_SD_RegisterTransceiverCallback(SD_HandleTypeDef *hsd, pSD_TransceiverCallbackTypeDef pCallback); -HAL_StatusTypeDef HAL_SD_UnRegisterTransceiverCallback(SD_HandleTypeDef *hsd); -#endif /* USE_SD_TRANSCEIVER */ -#endif /* USE_HAL_SD_REGISTER_CALLBACKS */ - -/** - * @} - */ - -/** @defgroup SD_Exported_Functions_Group3 Peripheral Control functions - * @{ - */ -HAL_StatusTypeDef HAL_SD_ConfigWideBusOperation(SD_HandleTypeDef *hsd, uint32_t WideMode); -HAL_StatusTypeDef HAL_SD_ConfigSpeedBusOperation(SD_HandleTypeDef *hsd, uint32_t SpeedMode); -/** - * @} - */ - -/** @defgroup SD_Exported_Functions_Group4 SD card related functions - * @{ - */ -HAL_SD_CardStateTypeDef HAL_SD_GetCardState(SD_HandleTypeDef *hsd); -HAL_StatusTypeDef HAL_SD_GetCardCID(SD_HandleTypeDef *hsd, HAL_SD_CardCIDTypeDef *pCID); -HAL_StatusTypeDef HAL_SD_GetCardCSD(SD_HandleTypeDef *hsd, HAL_SD_CardCSDTypeDef *pCSD); -HAL_StatusTypeDef HAL_SD_GetCardStatus(SD_HandleTypeDef *hsd, HAL_SD_CardStatusTypeDef *pStatus); -HAL_StatusTypeDef HAL_SD_GetCardInfo(SD_HandleTypeDef *hsd, HAL_SD_CardInfoTypeDef *pCardInfo); -/** - * @} - */ - -/** @defgroup SD_Exported_Functions_Group5 Peripheral State and Errors functions - * @{ - */ -HAL_SD_StateTypeDef HAL_SD_GetState(SD_HandleTypeDef *hsd); -uint32_t HAL_SD_GetError(SD_HandleTypeDef *hsd); -/** - * @} - */ - -/** @defgroup SD_Exported_Functions_Group6 Perioheral Abort management - * @{ - */ -HAL_StatusTypeDef HAL_SD_Abort(SD_HandleTypeDef *hsd); -HAL_StatusTypeDef HAL_SD_Abort_IT(SD_HandleTypeDef *hsd); -/** - * @} - */ - -/* Private types -------------------------------------------------------------*/ -/** @defgroup SD_Private_Types SD Private Types - * @{ - */ - -/** - * @} - */ - -/* Private defines -----------------------------------------------------------*/ -/** @defgroup SD_Private_Defines SD Private Defines - * @{ - */ - -/** - * @} - */ - -/* Private variables ---------------------------------------------------------*/ -/** @defgroup SD_Private_Variables SD Private Variables - * @{ - */ - -/** - * @} - */ - -/* Private constants ---------------------------------------------------------*/ -/** @defgroup SD_Private_Constants SD Private Constants - * @{ - */ - -/** - * @} - */ - -/* Private macros ------------------------------------------------------------*/ -/** @defgroup SD_Private_Macros SD Private Macros - * @{ - */ - -/** - * @} - */ - -/* Private functions prototypes ----------------------------------------------*/ -/** @defgroup SD_Private_Functions_Prototypes SD Private Functions Prototypes - * @{ - */ - -/** - * @} - */ - -/* Private functions ---------------------------------------------------------*/ -/** @defgroup SD_Private_Functions SD Private Functions - * @{ - */ - -/** - * @} - */ - - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - - -#endif /* STM32H7xx_HAL_SD_H */ diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h deleted file mode 100644 index 450e7df..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_sd_ex.h +++ /dev/null @@ -1,110 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_sd_ex.h - * @author MCD Application Team - * @brief Header file of SD HAL extended module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_HAL_SD_EX_H -#define STM32H7xx_HAL_SD_EX_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal_def.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @addtogroup SDEx - * @brief SD HAL extended module driver - * @{ - */ - -/* Exported types ------------------------------------------------------------*/ -/** @defgroup SDEx_Exported_Types SDEx Exported Types - * @{ - */ - -/** @defgroup SDEx_Exported_Types_Group1 SD Card Internal DMA Buffer structure - * @{ - */ -typedef enum -{ - SD_DMA_BUFFER0 = 0x00U, /*!< selects SD internal DMA Buffer 0 */ - SD_DMA_BUFFER1 = 0x01U, /*!< selects SD internal DMA Buffer 1 */ - -} HAL_SDEx_DMABuffer_MemoryTypeDef; - -/** - * @} - */ -/** - * @} - */ - -/* Exported functions --------------------------------------------------------*/ -/** @defgroup SDEx_Exported_Functions SDEx Exported Functions - * @{ - */ - -/** @defgroup SDEx_Exported_Functions_Group1 MultiBuffer functions - * @{ - */ - -HAL_StatusTypeDef HAL_SDEx_ConfigDMAMultiBuffer(SD_HandleTypeDef *hsd, uint32_t *pDataBuffer0, uint32_t *pDataBuffer1, - uint32_t BufferSize); -HAL_StatusTypeDef HAL_SDEx_ReadBlocksDMAMultiBuffer(SD_HandleTypeDef *hsd, uint32_t BlockAdd, uint32_t NumberOfBlocks); -HAL_StatusTypeDef HAL_SDEx_WriteBlocksDMAMultiBuffer(SD_HandleTypeDef *hsd, uint32_t BlockAdd, uint32_t NumberOfBlocks); -HAL_StatusTypeDef HAL_SDEx_ChangeDMABuffer(SD_HandleTypeDef *hsd, HAL_SDEx_DMABuffer_MemoryTypeDef Buffer, - uint32_t *pDataBuffer); - -void HAL_SDEx_Read_DMADoubleBuf0CpltCallback(SD_HandleTypeDef *hsd); -void HAL_SDEx_Read_DMADoubleBuf1CpltCallback(SD_HandleTypeDef *hsd); -void HAL_SDEx_Write_DMADoubleBuf0CpltCallback(SD_HandleTypeDef *hsd); -void HAL_SDEx_Write_DMADoubleBuf1CpltCallback(SD_HandleTypeDef *hsd); - -/** - * @} - */ - -/** - * @} - */ - -/* Private types -------------------------------------------------------------*/ -/* Private defines -----------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private constants ---------------------------------------------------------*/ -/* Private macros ------------------------------------------------------------*/ -/* Private functions prototypes ----------------------------------------------*/ -/* Private functions ---------------------------------------------------------*/ - -/** - * @} - */ - -/** - * @} - */ -#ifdef __cplusplus -} -#endif - - -#endif /* stm32h7xx_HAL_SD_EX_H */ diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h deleted file mode 100644 index 6daa529..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h +++ /dev/null @@ -1,2462 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_tim.h - * @author MCD Application Team - * @brief Header file of TIM HAL module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_HAL_TIM_H -#define STM32H7xx_HAL_TIM_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal_def.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @addtogroup TIM - * @{ - */ - -/* Exported types ------------------------------------------------------------*/ -/** @defgroup TIM_Exported_Types TIM Exported Types - * @{ - */ - -/** - * @brief TIM Time base Configuration Structure definition - */ -typedef struct -{ - uint32_t Prescaler; /*!< Specifies the prescaler value used to divide the TIM clock. - This parameter can be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF */ - - uint32_t CounterMode; /*!< Specifies the counter mode. - This parameter can be a value of @ref TIM_Counter_Mode */ - - uint32_t Period; /*!< Specifies the period value to be loaded into the active - Auto-Reload Register at the next update event. - This parameter can be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF. */ - - uint32_t ClockDivision; /*!< Specifies the clock division. - This parameter can be a value of @ref TIM_ClockDivision */ - - uint32_t RepetitionCounter; /*!< Specifies the repetition counter value. Each time the RCR downcounter - reaches zero, an update event is generated and counting restarts - from the RCR value (N). - This means in PWM mode that (N+1) corresponds to: - - the number of PWM periods in edge-aligned mode - - the number of half PWM period in center-aligned mode - GP timers: this parameter must be a number between Min_Data = 0x00 and - Max_Data = 0xFF. - Advanced timers: this parameter must be a number between Min_Data = 0x0000 and - Max_Data = 0xFFFF. */ - - uint32_t AutoReloadPreload; /*!< Specifies the auto-reload preload. - This parameter can be a value of @ref TIM_AutoReloadPreload */ -} TIM_Base_InitTypeDef; - -/** - * @brief TIM Output Compare Configuration Structure definition - */ -typedef struct -{ - uint32_t OCMode; /*!< Specifies the TIM mode. - This parameter can be a value of @ref TIM_Output_Compare_and_PWM_modes */ - - uint32_t Pulse; /*!< Specifies the pulse value to be loaded into the Capture Compare Register. - This parameter can be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF */ - - uint32_t OCPolarity; /*!< Specifies the output polarity. - This parameter can be a value of @ref TIM_Output_Compare_Polarity */ - - uint32_t OCNPolarity; /*!< Specifies the complementary output polarity. - This parameter can be a value of @ref TIM_Output_Compare_N_Polarity - @note This parameter is valid only for timer instances supporting break feature. */ - - uint32_t OCFastMode; /*!< Specifies the Fast mode state. - This parameter can be a value of @ref TIM_Output_Fast_State - @note This parameter is valid only in PWM1 and PWM2 mode. */ - - - uint32_t OCIdleState; /*!< Specifies the TIM Output Compare pin state during Idle state. - This parameter can be a value of @ref TIM_Output_Compare_Idle_State - @note This parameter is valid only for timer instances supporting break feature. */ - - uint32_t OCNIdleState; /*!< Specifies the TIM Output Compare pin state during Idle state. - This parameter can be a value of @ref TIM_Output_Compare_N_Idle_State - @note This parameter is valid only for timer instances supporting break feature. */ -} TIM_OC_InitTypeDef; - -/** - * @brief TIM One Pulse Mode Configuration Structure definition - */ -typedef struct -{ - uint32_t OCMode; /*!< Specifies the TIM mode. - This parameter can be a value of @ref TIM_Output_Compare_and_PWM_modes */ - - uint32_t Pulse; /*!< Specifies the pulse value to be loaded into the Capture Compare Register. - This parameter can be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF */ - - uint32_t OCPolarity; /*!< Specifies the output polarity. - This parameter can be a value of @ref TIM_Output_Compare_Polarity */ - - uint32_t OCNPolarity; /*!< Specifies the complementary output polarity. - This parameter can be a value of @ref TIM_Output_Compare_N_Polarity - @note This parameter is valid only for timer instances supporting break feature. */ - - uint32_t OCIdleState; /*!< Specifies the TIM Output Compare pin state during Idle state. - This parameter can be a value of @ref TIM_Output_Compare_Idle_State - @note This parameter is valid only for timer instances supporting break feature. */ - - uint32_t OCNIdleState; /*!< Specifies the TIM Output Compare pin state during Idle state. - This parameter can be a value of @ref TIM_Output_Compare_N_Idle_State - @note This parameter is valid only for timer instances supporting break feature. */ - - uint32_t ICPolarity; /*!< Specifies the active edge of the input signal. - This parameter can be a value of @ref TIM_Input_Capture_Polarity */ - - uint32_t ICSelection; /*!< Specifies the input. - This parameter can be a value of @ref TIM_Input_Capture_Selection */ - - uint32_t ICFilter; /*!< Specifies the input capture filter. - This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF */ -} TIM_OnePulse_InitTypeDef; - -/** - * @brief TIM Input Capture Configuration Structure definition - */ -typedef struct -{ - uint32_t ICPolarity; /*!< Specifies the active edge of the input signal. - This parameter can be a value of @ref TIM_Input_Capture_Polarity */ - - uint32_t ICSelection; /*!< Specifies the input. - This parameter can be a value of @ref TIM_Input_Capture_Selection */ - - uint32_t ICPrescaler; /*!< Specifies the Input Capture Prescaler. - This parameter can be a value of @ref TIM_Input_Capture_Prescaler */ - - uint32_t ICFilter; /*!< Specifies the input capture filter. - This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF */ -} TIM_IC_InitTypeDef; - -/** - * @brief TIM Encoder Configuration Structure definition - */ -typedef struct -{ - uint32_t EncoderMode; /*!< Specifies the active edge of the input signal. - This parameter can be a value of @ref TIM_Encoder_Mode */ - - uint32_t IC1Polarity; /*!< Specifies the active edge of the input signal. - This parameter can be a value of @ref TIM_Encoder_Input_Polarity */ - - uint32_t IC1Selection; /*!< Specifies the input. - This parameter can be a value of @ref TIM_Input_Capture_Selection */ - - uint32_t IC1Prescaler; /*!< Specifies the Input Capture Prescaler. - This parameter can be a value of @ref TIM_Input_Capture_Prescaler */ - - uint32_t IC1Filter; /*!< Specifies the input capture filter. - This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF */ - - uint32_t IC2Polarity; /*!< Specifies the active edge of the input signal. - This parameter can be a value of @ref TIM_Encoder_Input_Polarity */ - - uint32_t IC2Selection; /*!< Specifies the input. - This parameter can be a value of @ref TIM_Input_Capture_Selection */ - - uint32_t IC2Prescaler; /*!< Specifies the Input Capture Prescaler. - This parameter can be a value of @ref TIM_Input_Capture_Prescaler */ - - uint32_t IC2Filter; /*!< Specifies the input capture filter. - This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF */ -} TIM_Encoder_InitTypeDef; - -/** - * @brief Clock Configuration Handle Structure definition - */ -typedef struct -{ - uint32_t ClockSource; /*!< TIM clock sources - This parameter can be a value of @ref TIM_Clock_Source */ - uint32_t ClockPolarity; /*!< TIM clock polarity - This parameter can be a value of @ref TIM_Clock_Polarity */ - uint32_t ClockPrescaler; /*!< TIM clock prescaler - This parameter can be a value of @ref TIM_Clock_Prescaler */ - uint32_t ClockFilter; /*!< TIM clock filter - This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF */ -} TIM_ClockConfigTypeDef; - -/** - * @brief TIM Clear Input Configuration Handle Structure definition - */ -typedef struct -{ - uint32_t ClearInputState; /*!< TIM clear Input state - This parameter can be ENABLE or DISABLE */ - uint32_t ClearInputSource; /*!< TIM clear Input sources - This parameter can be a value of @ref TIM_ClearInput_Source */ - uint32_t ClearInputPolarity; /*!< TIM Clear Input polarity - This parameter can be a value of @ref TIM_ClearInput_Polarity */ - uint32_t ClearInputPrescaler; /*!< TIM Clear Input prescaler - This parameter must be 0: When OCRef clear feature is used with ETR source, - ETR prescaler must be off */ - uint32_t ClearInputFilter; /*!< TIM Clear Input filter - This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF */ -} TIM_ClearInputConfigTypeDef; - -/** - * @brief TIM Master configuration Structure definition - * @note Advanced timers provide TRGO2 internal line which is redirected - * to the ADC - */ -typedef struct -{ - uint32_t MasterOutputTrigger; /*!< Trigger output (TRGO) selection - This parameter can be a value of @ref TIM_Master_Mode_Selection */ - uint32_t MasterOutputTrigger2; /*!< Trigger output2 (TRGO2) selection - This parameter can be a value of @ref TIM_Master_Mode_Selection_2 */ - uint32_t MasterSlaveMode; /*!< Master/slave mode selection - This parameter can be a value of @ref TIM_Master_Slave_Mode - @note When the Master/slave mode is enabled, the effect of - an event on the trigger input (TRGI) is delayed to allow a - perfect synchronization between the current timer and its - slaves (through TRGO). It is not mandatory in case of timer - synchronization mode. */ -} TIM_MasterConfigTypeDef; - -/** - * @brief TIM Slave configuration Structure definition - */ -typedef struct -{ - uint32_t SlaveMode; /*!< Slave mode selection - This parameter can be a value of @ref TIM_Slave_Mode */ - uint32_t InputTrigger; /*!< Input Trigger source - This parameter can be a value of @ref TIM_Trigger_Selection */ - uint32_t TriggerPolarity; /*!< Input Trigger polarity - This parameter can be a value of @ref TIM_Trigger_Polarity */ - uint32_t TriggerPrescaler; /*!< Input trigger prescaler - This parameter can be a value of @ref TIM_Trigger_Prescaler */ - uint32_t TriggerFilter; /*!< Input trigger filter - This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF */ - -} TIM_SlaveConfigTypeDef; - -/** - * @brief TIM Break input(s) and Dead time configuration Structure definition - * @note 2 break inputs can be configured (BKIN and BKIN2) with configurable - * filter and polarity. - */ -typedef struct -{ - uint32_t OffStateRunMode; /*!< TIM off state in run mode, This parameter can be a value of @ref TIM_OSSR_Off_State_Selection_for_Run_mode_state */ - - uint32_t OffStateIDLEMode; /*!< TIM off state in IDLE mode, This parameter can be a value of @ref TIM_OSSI_Off_State_Selection_for_Idle_mode_state */ - - uint32_t LockLevel; /*!< TIM Lock level, This parameter can be a value of @ref TIM_Lock_level */ - - uint32_t DeadTime; /*!< TIM dead Time, This parameter can be a number between Min_Data = 0x00 and Max_Data = 0xFF */ - - uint32_t BreakState; /*!< TIM Break State, This parameter can be a value of @ref TIM_Break_Input_enable_disable */ - - uint32_t BreakPolarity; /*!< TIM Break input polarity, This parameter can be a value of @ref TIM_Break_Polarity */ - - uint32_t BreakFilter; /*!< Specifies the break input filter.This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF */ - -#if defined(TIM_BDTR_BKBID) - uint32_t BreakAFMode; /*!< Specifies the alternate function mode of the break input.This parameter can be a value of @ref TIM_Break_Input_AF_Mode */ - -#endif /* TIM_BDTR_BKBID */ - uint32_t Break2State; /*!< TIM Break2 State, This parameter can be a value of @ref TIM_Break2_Input_enable_disable */ - - uint32_t Break2Polarity; /*!< TIM Break2 input polarity, This parameter can be a value of @ref TIM_Break2_Polarity */ - - uint32_t Break2Filter; /*!< TIM break2 input filter.This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF */ - -#if defined(TIM_BDTR_BKBID) - uint32_t Break2AFMode; /*!< Specifies the alternate function mode of the break2 input.This parameter can be a value of @ref TIM_Break2_Input_AF_Mode */ - -#endif /* TIM_BDTR_BKBID */ - uint32_t AutomaticOutput; /*!< TIM Automatic Output Enable state, This parameter can be a value of @ref TIM_AOE_Bit_Set_Reset */ - -} TIM_BreakDeadTimeConfigTypeDef; - -/** - * @brief HAL State structures definition - */ -typedef enum -{ - HAL_TIM_STATE_RESET = 0x00U, /*!< Peripheral not yet initialized or disabled */ - HAL_TIM_STATE_READY = 0x01U, /*!< Peripheral Initialized and ready for use */ - HAL_TIM_STATE_BUSY = 0x02U, /*!< An internal process is ongoing */ - HAL_TIM_STATE_TIMEOUT = 0x03U, /*!< Timeout state */ - HAL_TIM_STATE_ERROR = 0x04U /*!< Reception process is ongoing */ -} HAL_TIM_StateTypeDef; - -/** - * @brief TIM Channel States definition - */ -typedef enum -{ - HAL_TIM_CHANNEL_STATE_RESET = 0x00U, /*!< TIM Channel initial state */ - HAL_TIM_CHANNEL_STATE_READY = 0x01U, /*!< TIM Channel ready for use */ - HAL_TIM_CHANNEL_STATE_BUSY = 0x02U, /*!< An internal process is ongoing on the TIM channel */ -} HAL_TIM_ChannelStateTypeDef; - -/** - * @brief DMA Burst States definition - */ -typedef enum -{ - HAL_DMA_BURST_STATE_RESET = 0x00U, /*!< DMA Burst initial state */ - HAL_DMA_BURST_STATE_READY = 0x01U, /*!< DMA Burst ready for use */ - HAL_DMA_BURST_STATE_BUSY = 0x02U, /*!< Ongoing DMA Burst */ -} HAL_TIM_DMABurstStateTypeDef; - -/** - * @brief HAL Active channel structures definition - */ -typedef enum -{ - HAL_TIM_ACTIVE_CHANNEL_1 = 0x01U, /*!< The active channel is 1 */ - HAL_TIM_ACTIVE_CHANNEL_2 = 0x02U, /*!< The active channel is 2 */ - HAL_TIM_ACTIVE_CHANNEL_3 = 0x04U, /*!< The active channel is 3 */ - HAL_TIM_ACTIVE_CHANNEL_4 = 0x08U, /*!< The active channel is 4 */ - HAL_TIM_ACTIVE_CHANNEL_5 = 0x10U, /*!< The active channel is 5 */ - HAL_TIM_ACTIVE_CHANNEL_6 = 0x20U, /*!< The active channel is 6 */ - HAL_TIM_ACTIVE_CHANNEL_CLEARED = 0x00U /*!< All active channels cleared */ -} HAL_TIM_ActiveChannel; - -/** - * @brief TIM Time Base Handle Structure definition - */ -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) -typedef struct __TIM_HandleTypeDef -#else -typedef struct -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ -{ - TIM_TypeDef *Instance; /*!< Register base address */ - TIM_Base_InitTypeDef Init; /*!< TIM Time Base required parameters */ - HAL_TIM_ActiveChannel Channel; /*!< Active channel */ - DMA_HandleTypeDef *hdma[7]; /*!< DMA Handlers array - This array is accessed by a @ref DMA_Handle_index */ - HAL_LockTypeDef Lock; /*!< Locking object */ - __IO HAL_TIM_StateTypeDef State; /*!< TIM operation state */ - __IO HAL_TIM_ChannelStateTypeDef ChannelState[6]; /*!< TIM channel operation state */ - __IO HAL_TIM_ChannelStateTypeDef ChannelNState[4]; /*!< TIM complementary channel operation state */ - __IO HAL_TIM_DMABurstStateTypeDef DMABurstState; /*!< DMA burst operation state */ - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - void (* Base_MspInitCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Base Msp Init Callback */ - void (* Base_MspDeInitCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Base Msp DeInit Callback */ - void (* IC_MspInitCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM IC Msp Init Callback */ - void (* IC_MspDeInitCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM IC Msp DeInit Callback */ - void (* OC_MspInitCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM OC Msp Init Callback */ - void (* OC_MspDeInitCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM OC Msp DeInit Callback */ - void (* PWM_MspInitCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM PWM Msp Init Callback */ - void (* PWM_MspDeInitCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM PWM Msp DeInit Callback */ - void (* OnePulse_MspInitCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM One Pulse Msp Init Callback */ - void (* OnePulse_MspDeInitCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM One Pulse Msp DeInit Callback */ - void (* Encoder_MspInitCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Encoder Msp Init Callback */ - void (* Encoder_MspDeInitCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Encoder Msp DeInit Callback */ - void (* HallSensor_MspInitCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Hall Sensor Msp Init Callback */ - void (* HallSensor_MspDeInitCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Hall Sensor Msp DeInit Callback */ - void (* PeriodElapsedCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Period Elapsed Callback */ - void (* PeriodElapsedHalfCpltCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Period Elapsed half complete Callback */ - void (* TriggerCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Trigger Callback */ - void (* TriggerHalfCpltCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Trigger half complete Callback */ - void (* IC_CaptureCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Input Capture Callback */ - void (* IC_CaptureHalfCpltCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Input Capture half complete Callback */ - void (* OC_DelayElapsedCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Output Compare Delay Elapsed Callback */ - void (* PWM_PulseFinishedCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM PWM Pulse Finished Callback */ - void (* PWM_PulseFinishedHalfCpltCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM PWM Pulse Finished half complete Callback */ - void (* ErrorCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Error Callback */ - void (* CommutationCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Commutation Callback */ - void (* CommutationHalfCpltCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Commutation half complete Callback */ - void (* BreakCallback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Break Callback */ - void (* Break2Callback)(struct __TIM_HandleTypeDef *htim); /*!< TIM Break2 Callback */ -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ -} TIM_HandleTypeDef; - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) -/** - * @brief HAL TIM Callback ID enumeration definition - */ -typedef enum -{ - HAL_TIM_BASE_MSPINIT_CB_ID = 0x00U /*!< TIM Base MspInit Callback ID */ - , HAL_TIM_BASE_MSPDEINIT_CB_ID = 0x01U /*!< TIM Base MspDeInit Callback ID */ - , HAL_TIM_IC_MSPINIT_CB_ID = 0x02U /*!< TIM IC MspInit Callback ID */ - , HAL_TIM_IC_MSPDEINIT_CB_ID = 0x03U /*!< TIM IC MspDeInit Callback ID */ - , HAL_TIM_OC_MSPINIT_CB_ID = 0x04U /*!< TIM OC MspInit Callback ID */ - , HAL_TIM_OC_MSPDEINIT_CB_ID = 0x05U /*!< TIM OC MspDeInit Callback ID */ - , HAL_TIM_PWM_MSPINIT_CB_ID = 0x06U /*!< TIM PWM MspInit Callback ID */ - , HAL_TIM_PWM_MSPDEINIT_CB_ID = 0x07U /*!< TIM PWM MspDeInit Callback ID */ - , HAL_TIM_ONE_PULSE_MSPINIT_CB_ID = 0x08U /*!< TIM One Pulse MspInit Callback ID */ - , HAL_TIM_ONE_PULSE_MSPDEINIT_CB_ID = 0x09U /*!< TIM One Pulse MspDeInit Callback ID */ - , HAL_TIM_ENCODER_MSPINIT_CB_ID = 0x0AU /*!< TIM Encoder MspInit Callback ID */ - , HAL_TIM_ENCODER_MSPDEINIT_CB_ID = 0x0BU /*!< TIM Encoder MspDeInit Callback ID */ - , HAL_TIM_HALL_SENSOR_MSPINIT_CB_ID = 0x0CU /*!< TIM Hall Sensor MspDeInit Callback ID */ - , HAL_TIM_HALL_SENSOR_MSPDEINIT_CB_ID = 0x0DU /*!< TIM Hall Sensor MspDeInit Callback ID */ - , HAL_TIM_PERIOD_ELAPSED_CB_ID = 0x0EU /*!< TIM Period Elapsed Callback ID */ - , HAL_TIM_PERIOD_ELAPSED_HALF_CB_ID = 0x0FU /*!< TIM Period Elapsed half complete Callback ID */ - , HAL_TIM_TRIGGER_CB_ID = 0x10U /*!< TIM Trigger Callback ID */ - , HAL_TIM_TRIGGER_HALF_CB_ID = 0x11U /*!< TIM Trigger half complete Callback ID */ - - , HAL_TIM_IC_CAPTURE_CB_ID = 0x12U /*!< TIM Input Capture Callback ID */ - , HAL_TIM_IC_CAPTURE_HALF_CB_ID = 0x13U /*!< TIM Input Capture half complete Callback ID */ - , HAL_TIM_OC_DELAY_ELAPSED_CB_ID = 0x14U /*!< TIM Output Compare Delay Elapsed Callback ID */ - , HAL_TIM_PWM_PULSE_FINISHED_CB_ID = 0x15U /*!< TIM PWM Pulse Finished Callback ID */ - , HAL_TIM_PWM_PULSE_FINISHED_HALF_CB_ID = 0x16U /*!< TIM PWM Pulse Finished half complete Callback ID */ - , HAL_TIM_ERROR_CB_ID = 0x17U /*!< TIM Error Callback ID */ - , HAL_TIM_COMMUTATION_CB_ID = 0x18U /*!< TIM Commutation Callback ID */ - , HAL_TIM_COMMUTATION_HALF_CB_ID = 0x19U /*!< TIM Commutation half complete Callback ID */ - , HAL_TIM_BREAK_CB_ID = 0x1AU /*!< TIM Break Callback ID */ - , HAL_TIM_BREAK2_CB_ID = 0x1BU /*!< TIM Break2 Callback ID */ -} HAL_TIM_CallbackIDTypeDef; - -/** - * @brief HAL TIM Callback pointer definition - */ -typedef void (*pTIM_CallbackTypeDef)(TIM_HandleTypeDef *htim); /*!< pointer to the TIM callback function */ - -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - -/** - * @} - */ -/* End of exported types -----------------------------------------------------*/ - -/* Exported constants --------------------------------------------------------*/ -/** @defgroup TIM_Exported_Constants TIM Exported Constants - * @{ - */ - -/** @defgroup TIM_ClearInput_Source TIM Clear Input Source - * @{ - */ -#define TIM_CLEARINPUTSOURCE_NONE 0x00000000U /*!< OCREF_CLR is disabled */ -#define TIM_CLEARINPUTSOURCE_ETR 0x00000001U /*!< OCREF_CLR is connected to ETRF input */ -/** - * @} - */ - -/** @defgroup TIM_DMA_Base_address TIM DMA Base Address - * @{ - */ -#define TIM_DMABASE_CR1 0x00000000U -#define TIM_DMABASE_CR2 0x00000001U -#define TIM_DMABASE_SMCR 0x00000002U -#define TIM_DMABASE_DIER 0x00000003U -#define TIM_DMABASE_SR 0x00000004U -#define TIM_DMABASE_EGR 0x00000005U -#define TIM_DMABASE_CCMR1 0x00000006U -#define TIM_DMABASE_CCMR2 0x00000007U -#define TIM_DMABASE_CCER 0x00000008U -#define TIM_DMABASE_CNT 0x00000009U -#define TIM_DMABASE_PSC 0x0000000AU -#define TIM_DMABASE_ARR 0x0000000BU -#define TIM_DMABASE_RCR 0x0000000CU -#define TIM_DMABASE_CCR1 0x0000000DU -#define TIM_DMABASE_CCR2 0x0000000EU -#define TIM_DMABASE_CCR3 0x0000000FU -#define TIM_DMABASE_CCR4 0x00000010U -#define TIM_DMABASE_BDTR 0x00000011U -#define TIM_DMABASE_DCR 0x00000012U -#define TIM_DMABASE_DMAR 0x00000013U -#define TIM_DMABASE_CCMR3 0x00000015U -#define TIM_DMABASE_CCR5 0x00000016U -#define TIM_DMABASE_CCR6 0x00000017U -#if defined(TIM_BREAK_INPUT_SUPPORT) -#define TIM_DMABASE_AF1 0x00000018U -#define TIM_DMABASE_AF2 0x00000019U -#endif /* TIM_BREAK_INPUT_SUPPORT */ -#define TIM_DMABASE_TISEL 0x0000001AU -/** - * @} - */ - -/** @defgroup TIM_Event_Source TIM Event Source - * @{ - */ -#define TIM_EVENTSOURCE_UPDATE TIM_EGR_UG /*!< Reinitialize the counter and generates an update of the registers */ -#define TIM_EVENTSOURCE_CC1 TIM_EGR_CC1G /*!< A capture/compare event is generated on channel 1 */ -#define TIM_EVENTSOURCE_CC2 TIM_EGR_CC2G /*!< A capture/compare event is generated on channel 2 */ -#define TIM_EVENTSOURCE_CC3 TIM_EGR_CC3G /*!< A capture/compare event is generated on channel 3 */ -#define TIM_EVENTSOURCE_CC4 TIM_EGR_CC4G /*!< A capture/compare event is generated on channel 4 */ -#define TIM_EVENTSOURCE_COM TIM_EGR_COMG /*!< A commutation event is generated */ -#define TIM_EVENTSOURCE_TRIGGER TIM_EGR_TG /*!< A trigger event is generated */ -#define TIM_EVENTSOURCE_BREAK TIM_EGR_BG /*!< A break event is generated */ -#define TIM_EVENTSOURCE_BREAK2 TIM_EGR_B2G /*!< A break 2 event is generated */ -/** - * @} - */ - -/** @defgroup TIM_Input_Channel_Polarity TIM Input Channel polarity - * @{ - */ -#define TIM_INPUTCHANNELPOLARITY_RISING 0x00000000U /*!< Polarity for TIx source */ -#define TIM_INPUTCHANNELPOLARITY_FALLING TIM_CCER_CC1P /*!< Polarity for TIx source */ -#define TIM_INPUTCHANNELPOLARITY_BOTHEDGE (TIM_CCER_CC1P | TIM_CCER_CC1NP) /*!< Polarity for TIx source */ -/** - * @} - */ - -/** @defgroup TIM_ETR_Polarity TIM ETR Polarity - * @{ - */ -#define TIM_ETRPOLARITY_INVERTED TIM_SMCR_ETP /*!< Polarity for ETR source */ -#define TIM_ETRPOLARITY_NONINVERTED 0x00000000U /*!< Polarity for ETR source */ -/** - * @} - */ - -/** @defgroup TIM_ETR_Prescaler TIM ETR Prescaler - * @{ - */ -#define TIM_ETRPRESCALER_DIV1 0x00000000U /*!< No prescaler is used */ -#define TIM_ETRPRESCALER_DIV2 TIM_SMCR_ETPS_0 /*!< ETR input source is divided by 2 */ -#define TIM_ETRPRESCALER_DIV4 TIM_SMCR_ETPS_1 /*!< ETR input source is divided by 4 */ -#define TIM_ETRPRESCALER_DIV8 TIM_SMCR_ETPS /*!< ETR input source is divided by 8 */ -/** - * @} - */ - -/** @defgroup TIM_Counter_Mode TIM Counter Mode - * @{ - */ -#define TIM_COUNTERMODE_UP 0x00000000U /*!< Counter used as up-counter */ -#define TIM_COUNTERMODE_DOWN TIM_CR1_DIR /*!< Counter used as down-counter */ -#define TIM_COUNTERMODE_CENTERALIGNED1 TIM_CR1_CMS_0 /*!< Center-aligned mode 1 */ -#define TIM_COUNTERMODE_CENTERALIGNED2 TIM_CR1_CMS_1 /*!< Center-aligned mode 2 */ -#define TIM_COUNTERMODE_CENTERALIGNED3 TIM_CR1_CMS /*!< Center-aligned mode 3 */ -/** - * @} - */ - -/** @defgroup TIM_Update_Interrupt_Flag_Remap TIM Update Interrupt Flag Remap - * @{ - */ -#define TIM_UIFREMAP_DISABLE 0x00000000U /*!< Update interrupt flag remap disabled */ -#define TIM_UIFREMAP_ENABLE TIM_CR1_UIFREMAP /*!< Update interrupt flag remap enabled */ -/** - * @} - */ - -/** @defgroup TIM_ClockDivision TIM Clock Division - * @{ - */ -#define TIM_CLOCKDIVISION_DIV1 0x00000000U /*!< Clock division: tDTS=tCK_INT */ -#define TIM_CLOCKDIVISION_DIV2 TIM_CR1_CKD_0 /*!< Clock division: tDTS=2*tCK_INT */ -#define TIM_CLOCKDIVISION_DIV4 TIM_CR1_CKD_1 /*!< Clock division: tDTS=4*tCK_INT */ -/** - * @} - */ - -/** @defgroup TIM_Output_Compare_State TIM Output Compare State - * @{ - */ -#define TIM_OUTPUTSTATE_DISABLE 0x00000000U /*!< Capture/Compare 1 output disabled */ -#define TIM_OUTPUTSTATE_ENABLE TIM_CCER_CC1E /*!< Capture/Compare 1 output enabled */ -/** - * @} - */ - -/** @defgroup TIM_AutoReloadPreload TIM Auto-Reload Preload - * @{ - */ -#define TIM_AUTORELOAD_PRELOAD_DISABLE 0x00000000U /*!< TIMx_ARR register is not buffered */ -#define TIM_AUTORELOAD_PRELOAD_ENABLE TIM_CR1_ARPE /*!< TIMx_ARR register is buffered */ - -/** - * @} - */ - -/** @defgroup TIM_Output_Fast_State TIM Output Fast State - * @{ - */ -#define TIM_OCFAST_DISABLE 0x00000000U /*!< Output Compare fast disable */ -#define TIM_OCFAST_ENABLE TIM_CCMR1_OC1FE /*!< Output Compare fast enable */ -/** - * @} - */ - -/** @defgroup TIM_Output_Compare_N_State TIM Complementary Output Compare State - * @{ - */ -#define TIM_OUTPUTNSTATE_DISABLE 0x00000000U /*!< OCxN is disabled */ -#define TIM_OUTPUTNSTATE_ENABLE TIM_CCER_CC1NE /*!< OCxN is enabled */ -/** - * @} - */ - -/** @defgroup TIM_Output_Compare_Polarity TIM Output Compare Polarity - * @{ - */ -#define TIM_OCPOLARITY_HIGH 0x00000000U /*!< Capture/Compare output polarity */ -#define TIM_OCPOLARITY_LOW TIM_CCER_CC1P /*!< Capture/Compare output polarity */ -/** - * @} - */ - -/** @defgroup TIM_Output_Compare_N_Polarity TIM Complementary Output Compare Polarity - * @{ - */ -#define TIM_OCNPOLARITY_HIGH 0x00000000U /*!< Capture/Compare complementary output polarity */ -#define TIM_OCNPOLARITY_LOW TIM_CCER_CC1NP /*!< Capture/Compare complementary output polarity */ -/** - * @} - */ - -/** @defgroup TIM_Output_Compare_Idle_State TIM Output Compare Idle State - * @{ - */ -#define TIM_OCIDLESTATE_SET TIM_CR2_OIS1 /*!< Output Idle state: OCx=1 when MOE=0 */ -#define TIM_OCIDLESTATE_RESET 0x00000000U /*!< Output Idle state: OCx=0 when MOE=0 */ -/** - * @} - */ - -/** @defgroup TIM_Output_Compare_N_Idle_State TIM Complementary Output Compare Idle State - * @{ - */ -#define TIM_OCNIDLESTATE_SET TIM_CR2_OIS1N /*!< Complementary output Idle state: OCxN=1 when MOE=0 */ -#define TIM_OCNIDLESTATE_RESET 0x00000000U /*!< Complementary output Idle state: OCxN=0 when MOE=0 */ -/** - * @} - */ - -/** @defgroup TIM_Input_Capture_Polarity TIM Input Capture Polarity - * @{ - */ -#define TIM_ICPOLARITY_RISING TIM_INPUTCHANNELPOLARITY_RISING /*!< Capture triggered by rising edge on timer input */ -#define TIM_ICPOLARITY_FALLING TIM_INPUTCHANNELPOLARITY_FALLING /*!< Capture triggered by falling edge on timer input */ -#define TIM_ICPOLARITY_BOTHEDGE TIM_INPUTCHANNELPOLARITY_BOTHEDGE /*!< Capture triggered by both rising and falling edges on timer input*/ -/** - * @} - */ - -/** @defgroup TIM_Encoder_Input_Polarity TIM Encoder Input Polarity - * @{ - */ -#define TIM_ENCODERINPUTPOLARITY_RISING TIM_INPUTCHANNELPOLARITY_RISING /*!< Encoder input with rising edge polarity */ -#define TIM_ENCODERINPUTPOLARITY_FALLING TIM_INPUTCHANNELPOLARITY_FALLING /*!< Encoder input with falling edge polarity */ -/** - * @} - */ - -/** @defgroup TIM_Input_Capture_Selection TIM Input Capture Selection - * @{ - */ -#define TIM_ICSELECTION_DIRECTTI TIM_CCMR1_CC1S_0 /*!< TIM Input 1, 2, 3 or 4 is selected to be connected to IC1, IC2, IC3 or IC4, respectively */ -#define TIM_ICSELECTION_INDIRECTTI TIM_CCMR1_CC1S_1 /*!< TIM Input 1, 2, 3 or 4 is selected to be connected to IC2, IC1, IC4 or IC3, respectively */ -#define TIM_ICSELECTION_TRC TIM_CCMR1_CC1S /*!< TIM Input 1, 2, 3 or 4 is selected to be connected to TRC */ -/** - * @} - */ - -/** @defgroup TIM_Input_Capture_Prescaler TIM Input Capture Prescaler - * @{ - */ -#define TIM_ICPSC_DIV1 0x00000000U /*!< Capture performed each time an edge is detected on the capture input */ -#define TIM_ICPSC_DIV2 TIM_CCMR1_IC1PSC_0 /*!< Capture performed once every 2 events */ -#define TIM_ICPSC_DIV4 TIM_CCMR1_IC1PSC_1 /*!< Capture performed once every 4 events */ -#define TIM_ICPSC_DIV8 TIM_CCMR1_IC1PSC /*!< Capture performed once every 8 events */ -/** - * @} - */ - -/** @defgroup TIM_One_Pulse_Mode TIM One Pulse Mode - * @{ - */ -#define TIM_OPMODE_SINGLE TIM_CR1_OPM /*!< Counter stops counting at the next update event */ -#define TIM_OPMODE_REPETITIVE 0x00000000U /*!< Counter is not stopped at update event */ -/** - * @} - */ - -/** @defgroup TIM_Encoder_Mode TIM Encoder Mode - * @{ - */ -#define TIM_ENCODERMODE_TI1 TIM_SMCR_SMS_0 /*!< Quadrature encoder mode 1, x2 mode, counts up/down on TI1FP1 edge depending on TI2FP2 level */ -#define TIM_ENCODERMODE_TI2 TIM_SMCR_SMS_1 /*!< Quadrature encoder mode 2, x2 mode, counts up/down on TI2FP2 edge depending on TI1FP1 level. */ -#define TIM_ENCODERMODE_TI12 (TIM_SMCR_SMS_1 | TIM_SMCR_SMS_0) /*!< Quadrature encoder mode 3, x4 mode, counts up/down on both TI1FP1 and TI2FP2 edges depending on the level of the other input. */ -/** - * @} - */ - -/** @defgroup TIM_Interrupt_definition TIM interrupt Definition - * @{ - */ -#define TIM_IT_UPDATE TIM_DIER_UIE /*!< Update interrupt */ -#define TIM_IT_CC1 TIM_DIER_CC1IE /*!< Capture/Compare 1 interrupt */ -#define TIM_IT_CC2 TIM_DIER_CC2IE /*!< Capture/Compare 2 interrupt */ -#define TIM_IT_CC3 TIM_DIER_CC3IE /*!< Capture/Compare 3 interrupt */ -#define TIM_IT_CC4 TIM_DIER_CC4IE /*!< Capture/Compare 4 interrupt */ -#define TIM_IT_COM TIM_DIER_COMIE /*!< Commutation interrupt */ -#define TIM_IT_TRIGGER TIM_DIER_TIE /*!< Trigger interrupt */ -#define TIM_IT_BREAK TIM_DIER_BIE /*!< Break interrupt */ -/** - * @} - */ - -/** @defgroup TIM_Commutation_Source TIM Commutation Source - * @{ - */ -#define TIM_COMMUTATION_TRGI TIM_CR2_CCUS /*!< When Capture/compare control bits are preloaded, they are updated by setting the COMG bit or when an rising edge occurs on trigger input */ -#define TIM_COMMUTATION_SOFTWARE 0x00000000U /*!< When Capture/compare control bits are preloaded, they are updated by setting the COMG bit */ -/** - * @} - */ - -/** @defgroup TIM_DMA_sources TIM DMA Sources - * @{ - */ -#define TIM_DMA_UPDATE TIM_DIER_UDE /*!< DMA request is triggered by the update event */ -#define TIM_DMA_CC1 TIM_DIER_CC1DE /*!< DMA request is triggered by the capture/compare macth 1 event */ -#define TIM_DMA_CC2 TIM_DIER_CC2DE /*!< DMA request is triggered by the capture/compare macth 2 event event */ -#define TIM_DMA_CC3 TIM_DIER_CC3DE /*!< DMA request is triggered by the capture/compare macth 3 event event */ -#define TIM_DMA_CC4 TIM_DIER_CC4DE /*!< DMA request is triggered by the capture/compare macth 4 event event */ -#define TIM_DMA_COM TIM_DIER_COMDE /*!< DMA request is triggered by the commutation event */ -#define TIM_DMA_TRIGGER TIM_DIER_TDE /*!< DMA request is triggered by the trigger event */ -/** - * @} - */ - -/** @defgroup TIM_CC_DMA_Request CCx DMA request selection - * @{ - */ -#define TIM_CCDMAREQUEST_CC 0x00000000U /*!< CCx DMA request sent when capture or compare match event occurs */ -#define TIM_CCDMAREQUEST_UPDATE TIM_CR2_CCDS /*!< CCx DMA requests sent when update event occurs */ -/** - * @} - */ - -/** @defgroup TIM_Flag_definition TIM Flag Definition - * @{ - */ -#define TIM_FLAG_UPDATE TIM_SR_UIF /*!< Update interrupt flag */ -#define TIM_FLAG_CC1 TIM_SR_CC1IF /*!< Capture/Compare 1 interrupt flag */ -#define TIM_FLAG_CC2 TIM_SR_CC2IF /*!< Capture/Compare 2 interrupt flag */ -#define TIM_FLAG_CC3 TIM_SR_CC3IF /*!< Capture/Compare 3 interrupt flag */ -#define TIM_FLAG_CC4 TIM_SR_CC4IF /*!< Capture/Compare 4 interrupt flag */ -#define TIM_FLAG_CC5 TIM_SR_CC5IF /*!< Capture/Compare 5 interrupt flag */ -#define TIM_FLAG_CC6 TIM_SR_CC6IF /*!< Capture/Compare 6 interrupt flag */ -#define TIM_FLAG_COM TIM_SR_COMIF /*!< Commutation interrupt flag */ -#define TIM_FLAG_TRIGGER TIM_SR_TIF /*!< Trigger interrupt flag */ -#define TIM_FLAG_BREAK TIM_SR_BIF /*!< Break interrupt flag */ -#define TIM_FLAG_BREAK2 TIM_SR_B2IF /*!< Break 2 interrupt flag */ -#define TIM_FLAG_SYSTEM_BREAK TIM_SR_SBIF /*!< System Break interrupt flag */ -#define TIM_FLAG_CC1OF TIM_SR_CC1OF /*!< Capture 1 overcapture flag */ -#define TIM_FLAG_CC2OF TIM_SR_CC2OF /*!< Capture 2 overcapture flag */ -#define TIM_FLAG_CC3OF TIM_SR_CC3OF /*!< Capture 3 overcapture flag */ -#define TIM_FLAG_CC4OF TIM_SR_CC4OF /*!< Capture 4 overcapture flag */ -/** - * @} - */ - -/** @defgroup TIM_Channel TIM Channel - * @{ - */ -#define TIM_CHANNEL_1 0x00000000U /*!< Capture/compare channel 1 identifier */ -#define TIM_CHANNEL_2 0x00000004U /*!< Capture/compare channel 2 identifier */ -#define TIM_CHANNEL_3 0x00000008U /*!< Capture/compare channel 3 identifier */ -#define TIM_CHANNEL_4 0x0000000CU /*!< Capture/compare channel 4 identifier */ -#define TIM_CHANNEL_5 0x00000010U /*!< Compare channel 5 identifier */ -#define TIM_CHANNEL_6 0x00000014U /*!< Compare channel 6 identifier */ -#define TIM_CHANNEL_ALL 0x0000003CU /*!< Global Capture/compare channel identifier */ -/** - * @} - */ - -/** @defgroup TIM_Clock_Source TIM Clock Source - * @{ - */ -#define TIM_CLOCKSOURCE_INTERNAL TIM_SMCR_ETPS_0 /*!< Internal clock source */ -#define TIM_CLOCKSOURCE_ETRMODE1 TIM_TS_ETRF /*!< External clock source mode 1 (ETRF) */ -#define TIM_CLOCKSOURCE_ETRMODE2 TIM_SMCR_ETPS_1 /*!< External clock source mode 2 */ -#define TIM_CLOCKSOURCE_TI1ED TIM_TS_TI1F_ED /*!< External clock source mode 1 (TTI1FP1 + edge detect.) */ -#define TIM_CLOCKSOURCE_TI1 TIM_TS_TI1FP1 /*!< External clock source mode 1 (TTI1FP1) */ -#define TIM_CLOCKSOURCE_TI2 TIM_TS_TI2FP2 /*!< External clock source mode 1 (TTI2FP2) */ -#define TIM_CLOCKSOURCE_ITR0 TIM_TS_ITR0 /*!< External clock source mode 1 (ITR0) */ -#define TIM_CLOCKSOURCE_ITR1 TIM_TS_ITR1 /*!< External clock source mode 1 (ITR1) */ -#define TIM_CLOCKSOURCE_ITR2 TIM_TS_ITR2 /*!< External clock source mode 1 (ITR2) */ -#define TIM_CLOCKSOURCE_ITR3 TIM_TS_ITR3 /*!< External clock source mode 1 (ITR3) */ -#define TIM_CLOCKSOURCE_ITR4 TIM_TS_ITR4 /*!< External clock source mode 1 (ITR4) */ -#define TIM_CLOCKSOURCE_ITR5 TIM_TS_ITR5 /*!< External clock source mode 1 (ITR5) */ -#define TIM_CLOCKSOURCE_ITR6 TIM_TS_ITR6 /*!< External clock source mode 1 (ITR6) */ -#define TIM_CLOCKSOURCE_ITR7 TIM_TS_ITR7 /*!< External clock source mode 1 (ITR7) */ -#define TIM_CLOCKSOURCE_ITR8 TIM_TS_ITR8 /*!< External clock source mode 1 (ITR8) */ -/** - * @} - */ - -/** @defgroup TIM_Clock_Polarity TIM Clock Polarity - * @{ - */ -#define TIM_CLOCKPOLARITY_INVERTED TIM_ETRPOLARITY_INVERTED /*!< Polarity for ETRx clock sources */ -#define TIM_CLOCKPOLARITY_NONINVERTED TIM_ETRPOLARITY_NONINVERTED /*!< Polarity for ETRx clock sources */ -#define TIM_CLOCKPOLARITY_RISING TIM_INPUTCHANNELPOLARITY_RISING /*!< Polarity for TIx clock sources */ -#define TIM_CLOCKPOLARITY_FALLING TIM_INPUTCHANNELPOLARITY_FALLING /*!< Polarity for TIx clock sources */ -#define TIM_CLOCKPOLARITY_BOTHEDGE TIM_INPUTCHANNELPOLARITY_BOTHEDGE /*!< Polarity for TIx clock sources */ -/** - * @} - */ - -/** @defgroup TIM_Clock_Prescaler TIM Clock Prescaler - * @{ - */ -#define TIM_CLOCKPRESCALER_DIV1 TIM_ETRPRESCALER_DIV1 /*!< No prescaler is used */ -#define TIM_CLOCKPRESCALER_DIV2 TIM_ETRPRESCALER_DIV2 /*!< Prescaler for External ETR Clock: Capture performed once every 2 events. */ -#define TIM_CLOCKPRESCALER_DIV4 TIM_ETRPRESCALER_DIV4 /*!< Prescaler for External ETR Clock: Capture performed once every 4 events. */ -#define TIM_CLOCKPRESCALER_DIV8 TIM_ETRPRESCALER_DIV8 /*!< Prescaler for External ETR Clock: Capture performed once every 8 events. */ -/** - * @} - */ - -/** @defgroup TIM_ClearInput_Polarity TIM Clear Input Polarity - * @{ - */ -#define TIM_CLEARINPUTPOLARITY_INVERTED TIM_ETRPOLARITY_INVERTED /*!< Polarity for ETRx pin */ -#define TIM_CLEARINPUTPOLARITY_NONINVERTED TIM_ETRPOLARITY_NONINVERTED /*!< Polarity for ETRx pin */ -/** - * @} - */ - -/** @defgroup TIM_ClearInput_Prescaler TIM Clear Input Prescaler - * @{ - */ -#define TIM_CLEARINPUTPRESCALER_DIV1 TIM_ETRPRESCALER_DIV1 /*!< No prescaler is used */ -#define TIM_CLEARINPUTPRESCALER_DIV2 TIM_ETRPRESCALER_DIV2 /*!< Prescaler for External ETR pin: Capture performed once every 2 events. */ -#define TIM_CLEARINPUTPRESCALER_DIV4 TIM_ETRPRESCALER_DIV4 /*!< Prescaler for External ETR pin: Capture performed once every 4 events. */ -#define TIM_CLEARINPUTPRESCALER_DIV8 TIM_ETRPRESCALER_DIV8 /*!< Prescaler for External ETR pin: Capture performed once every 8 events. */ -/** - * @} - */ - -/** @defgroup TIM_OSSR_Off_State_Selection_for_Run_mode_state TIM OSSR OffState Selection for Run mode state - * @{ - */ -#define TIM_OSSR_ENABLE TIM_BDTR_OSSR /*!< When inactive, OC/OCN outputs are enabled (still controlled by the timer) */ -#define TIM_OSSR_DISABLE 0x00000000U /*!< When inactive, OC/OCN outputs are disabled (not controlled any longer by the timer) */ -/** - * @} - */ - -/** @defgroup TIM_OSSI_Off_State_Selection_for_Idle_mode_state TIM OSSI OffState Selection for Idle mode state - * @{ - */ -#define TIM_OSSI_ENABLE TIM_BDTR_OSSI /*!< When inactive, OC/OCN outputs are enabled (still controlled by the timer) */ -#define TIM_OSSI_DISABLE 0x00000000U /*!< When inactive, OC/OCN outputs are disabled (not controlled any longer by the timer) */ -/** - * @} - */ -/** @defgroup TIM_Lock_level TIM Lock level - * @{ - */ -#define TIM_LOCKLEVEL_OFF 0x00000000U /*!< LOCK OFF */ -#define TIM_LOCKLEVEL_1 TIM_BDTR_LOCK_0 /*!< LOCK Level 1 */ -#define TIM_LOCKLEVEL_2 TIM_BDTR_LOCK_1 /*!< LOCK Level 2 */ -#define TIM_LOCKLEVEL_3 TIM_BDTR_LOCK /*!< LOCK Level 3 */ -/** - * @} - */ - -/** @defgroup TIM_Break_Input_enable_disable TIM Break Input Enable - * @{ - */ -#define TIM_BREAK_ENABLE TIM_BDTR_BKE /*!< Break input BRK is enabled */ -#define TIM_BREAK_DISABLE 0x00000000U /*!< Break input BRK is disabled */ -/** - * @} - */ - -/** @defgroup TIM_Break_Polarity TIM Break Input Polarity - * @{ - */ -#define TIM_BREAKPOLARITY_LOW 0x00000000U /*!< Break input BRK is active low */ -#define TIM_BREAKPOLARITY_HIGH TIM_BDTR_BKP /*!< Break input BRK is active high */ -/** - * @} - */ -#if defined(TIM_BDTR_BKBID) - -/** @defgroup TIM_Break_Input_AF_Mode TIM Break Input Alternate Function Mode - * @{ - */ -#define TIM_BREAK_AFMODE_INPUT 0x00000000U /*!< Break input BRK in input mode */ -#define TIM_BREAK_AFMODE_BIDIRECTIONAL TIM_BDTR_BKBID /*!< Break input BRK in bidirectional mode */ -/** - * @} - */ -#endif /*TIM_BDTR_BKBID */ - -/** @defgroup TIM_Break2_Input_enable_disable TIM Break input 2 Enable - * @{ - */ -#define TIM_BREAK2_DISABLE 0x00000000U /*!< Break input BRK2 is disabled */ -#define TIM_BREAK2_ENABLE TIM_BDTR_BK2E /*!< Break input BRK2 is enabled */ -/** - * @} - */ - -/** @defgroup TIM_Break2_Polarity TIM Break Input 2 Polarity - * @{ - */ -#define TIM_BREAK2POLARITY_LOW 0x00000000U /*!< Break input BRK2 is active low */ -#define TIM_BREAK2POLARITY_HIGH TIM_BDTR_BK2P /*!< Break input BRK2 is active high */ -/** - * @} - */ -#if defined(TIM_BDTR_BKBID) - -/** @defgroup TIM_Break2_Input_AF_Mode TIM Break2 Input Alternate Function Mode - * @{ - */ -#define TIM_BREAK2_AFMODE_INPUT 0x00000000U /*!< Break2 input BRK2 in input mode */ -#define TIM_BREAK2_AFMODE_BIDIRECTIONAL TIM_BDTR_BK2BID /*!< Break2 input BRK2 in bidirectional mode */ -/** - * @} - */ -#endif /* TIM_BDTR_BKBID */ - -/** @defgroup TIM_AOE_Bit_Set_Reset TIM Automatic Output Enable - * @{ - */ -#define TIM_AUTOMATICOUTPUT_DISABLE 0x00000000U /*!< MOE can be set only by software */ -#define TIM_AUTOMATICOUTPUT_ENABLE TIM_BDTR_AOE /*!< MOE can be set by software or automatically at the next update event (if none of the break inputs BRK and BRK2 is active) */ -/** - * @} - */ - -/** @defgroup TIM_Group_Channel5 TIM Group Channel 5 and Channel 1, 2 or 3 - * @{ - */ -#define TIM_GROUPCH5_NONE 0x00000000U /*!< No effect of OC5REF on OC1REFC, OC2REFC and OC3REFC */ -#define TIM_GROUPCH5_OC1REFC TIM_CCR5_GC5C1 /*!< OC1REFC is the logical AND of OC1REFC and OC5REF */ -#define TIM_GROUPCH5_OC2REFC TIM_CCR5_GC5C2 /*!< OC2REFC is the logical AND of OC2REFC and OC5REF */ -#define TIM_GROUPCH5_OC3REFC TIM_CCR5_GC5C3 /*!< OC3REFC is the logical AND of OC3REFC and OC5REF */ -/** - * @} - */ - -/** @defgroup TIM_Master_Mode_Selection TIM Master Mode Selection - * @{ - */ -#define TIM_TRGO_RESET 0x00000000U /*!< TIMx_EGR.UG bit is used as trigger output (TRGO) */ -#define TIM_TRGO_ENABLE TIM_CR2_MMS_0 /*!< TIMx_CR1.CEN bit is used as trigger output (TRGO) */ -#define TIM_TRGO_UPDATE TIM_CR2_MMS_1 /*!< Update event is used as trigger output (TRGO) */ -#define TIM_TRGO_OC1 (TIM_CR2_MMS_1 | TIM_CR2_MMS_0) /*!< Capture or a compare match 1 is used as trigger output (TRGO) */ -#define TIM_TRGO_OC1REF TIM_CR2_MMS_2 /*!< OC1REF signal is used as trigger output (TRGO) */ -#define TIM_TRGO_OC2REF (TIM_CR2_MMS_2 | TIM_CR2_MMS_0) /*!< OC2REF signal is used as trigger output(TRGO) */ -#define TIM_TRGO_OC3REF (TIM_CR2_MMS_2 | TIM_CR2_MMS_1) /*!< OC3REF signal is used as trigger output(TRGO) */ -#define TIM_TRGO_OC4REF (TIM_CR2_MMS_2 | TIM_CR2_MMS_1 | TIM_CR2_MMS_0) /*!< OC4REF signal is used as trigger output(TRGO) */ -/** - * @} - */ - -/** @defgroup TIM_Master_Mode_Selection_2 TIM Master Mode Selection 2 (TRGO2) - * @{ - */ -#define TIM_TRGO2_RESET 0x00000000U /*!< TIMx_EGR.UG bit is used as trigger output (TRGO2) */ -#define TIM_TRGO2_ENABLE TIM_CR2_MMS2_0 /*!< TIMx_CR1.CEN bit is used as trigger output (TRGO2) */ -#define TIM_TRGO2_UPDATE TIM_CR2_MMS2_1 /*!< Update event is used as trigger output (TRGO2) */ -#define TIM_TRGO2_OC1 (TIM_CR2_MMS2_1 | TIM_CR2_MMS2_0) /*!< Capture or a compare match 1 is used as trigger output (TRGO2) */ -#define TIM_TRGO2_OC1REF TIM_CR2_MMS2_2 /*!< OC1REF signal is used as trigger output (TRGO2) */ -#define TIM_TRGO2_OC2REF (TIM_CR2_MMS2_2 | TIM_CR2_MMS2_0) /*!< OC2REF signal is used as trigger output (TRGO2) */ -#define TIM_TRGO2_OC3REF (TIM_CR2_MMS2_2 | TIM_CR2_MMS2_1) /*!< OC3REF signal is used as trigger output (TRGO2) */ -#define TIM_TRGO2_OC4REF (TIM_CR2_MMS2_2 | TIM_CR2_MMS2_1 | TIM_CR2_MMS2_0) /*!< OC4REF signal is used as trigger output (TRGO2) */ -#define TIM_TRGO2_OC5REF TIM_CR2_MMS2_3 /*!< OC5REF signal is used as trigger output (TRGO2) */ -#define TIM_TRGO2_OC6REF (TIM_CR2_MMS2_3 | TIM_CR2_MMS2_0) /*!< OC6REF signal is used as trigger output (TRGO2) */ -#define TIM_TRGO2_OC4REF_RISINGFALLING (TIM_CR2_MMS2_3 | TIM_CR2_MMS2_1) /*!< OC4REF rising or falling edges generate pulses on TRGO2 */ -#define TIM_TRGO2_OC6REF_RISINGFALLING (TIM_CR2_MMS2_3 | TIM_CR2_MMS2_1 | TIM_CR2_MMS2_0) /*!< OC6REF rising or falling edges generate pulses on TRGO2 */ -#define TIM_TRGO2_OC4REF_RISING_OC6REF_RISING (TIM_CR2_MMS2_3 | TIM_CR2_MMS2_2) /*!< OC4REF or OC6REF rising edges generate pulses on TRGO2 */ -#define TIM_TRGO2_OC4REF_RISING_OC6REF_FALLING (TIM_CR2_MMS2_3 | TIM_CR2_MMS2_2 | TIM_CR2_MMS2_0) /*!< OC4REF rising or OC6REF falling edges generate pulses on TRGO2 */ -#define TIM_TRGO2_OC5REF_RISING_OC6REF_RISING (TIM_CR2_MMS2_3 | TIM_CR2_MMS2_2 |TIM_CR2_MMS2_1) /*!< OC5REF or OC6REF rising edges generate pulses on TRGO2 */ -#define TIM_TRGO2_OC5REF_RISING_OC6REF_FALLING (TIM_CR2_MMS2_3 | TIM_CR2_MMS2_2 | TIM_CR2_MMS2_1 | TIM_CR2_MMS2_0) /*!< OC5REF or OC6REF rising edges generate pulses on TRGO2 */ -/** - * @} - */ - -/** @defgroup TIM_Master_Slave_Mode TIM Master/Slave Mode - * @{ - */ -#define TIM_MASTERSLAVEMODE_ENABLE TIM_SMCR_MSM /*!< No action */ -#define TIM_MASTERSLAVEMODE_DISABLE 0x00000000U /*!< Master/slave mode is selected */ -/** - * @} - */ - -/** @defgroup TIM_Slave_Mode TIM Slave mode - * @{ - */ -#define TIM_SLAVEMODE_DISABLE 0x00000000U /*!< Slave mode disabled */ -#define TIM_SLAVEMODE_RESET TIM_SMCR_SMS_2 /*!< Reset Mode */ -#define TIM_SLAVEMODE_GATED (TIM_SMCR_SMS_2 | TIM_SMCR_SMS_0) /*!< Gated Mode */ -#define TIM_SLAVEMODE_TRIGGER (TIM_SMCR_SMS_2 | TIM_SMCR_SMS_1) /*!< Trigger Mode */ -#define TIM_SLAVEMODE_EXTERNAL1 (TIM_SMCR_SMS_2 | TIM_SMCR_SMS_1 | TIM_SMCR_SMS_0) /*!< External Clock Mode 1 */ -#define TIM_SLAVEMODE_COMBINED_RESETTRIGGER TIM_SMCR_SMS_3 /*!< Combined reset + trigger mode */ -/** - * @} - */ - -/** @defgroup TIM_Output_Compare_and_PWM_modes TIM Output Compare and PWM Modes - * @{ - */ -#define TIM_OCMODE_TIMING 0x00000000U /*!< Frozen */ -#define TIM_OCMODE_ACTIVE TIM_CCMR1_OC1M_0 /*!< Set channel to active level on match */ -#define TIM_OCMODE_INACTIVE TIM_CCMR1_OC1M_1 /*!< Set channel to inactive level on match */ -#define TIM_OCMODE_TOGGLE (TIM_CCMR1_OC1M_1 | TIM_CCMR1_OC1M_0) /*!< Toggle */ -#define TIM_OCMODE_PWM1 (TIM_CCMR1_OC1M_2 | TIM_CCMR1_OC1M_1) /*!< PWM mode 1 */ -#define TIM_OCMODE_PWM2 (TIM_CCMR1_OC1M_2 | TIM_CCMR1_OC1M_1 | TIM_CCMR1_OC1M_0) /*!< PWM mode 2 */ -#define TIM_OCMODE_FORCED_ACTIVE (TIM_CCMR1_OC1M_2 | TIM_CCMR1_OC1M_0) /*!< Force active level */ -#define TIM_OCMODE_FORCED_INACTIVE TIM_CCMR1_OC1M_2 /*!< Force inactive level */ -#define TIM_OCMODE_RETRIGERRABLE_OPM1 TIM_CCMR1_OC1M_3 /*!< Retrigerrable OPM mode 1 */ -#define TIM_OCMODE_RETRIGERRABLE_OPM2 (TIM_CCMR1_OC1M_3 | TIM_CCMR1_OC1M_0) /*!< Retrigerrable OPM mode 2 */ -#define TIM_OCMODE_COMBINED_PWM1 (TIM_CCMR1_OC1M_3 | TIM_CCMR1_OC1M_2) /*!< Combined PWM mode 1 */ -#define TIM_OCMODE_COMBINED_PWM2 (TIM_CCMR1_OC1M_3 | TIM_CCMR1_OC1M_0 | TIM_CCMR1_OC1M_2) /*!< Combined PWM mode 2 */ -#define TIM_OCMODE_ASSYMETRIC_PWM1 (TIM_CCMR1_OC1M_3 | TIM_CCMR1_OC1M_1 | TIM_CCMR1_OC1M_2) /*!< Asymmetric PWM mode 1 */ -#define TIM_OCMODE_ASSYMETRIC_PWM2 TIM_CCMR1_OC1M /*!< Asymmetric PWM mode 2 */ -/** - * @} - */ - -/** @defgroup TIM_Trigger_Selection TIM Trigger Selection - * @{ - */ -#define TIM_TS_ITR0 0x00000000U /*!< Internal Trigger 0 (ITR0) */ -#define TIM_TS_ITR1 TIM_SMCR_TS_0 /*!< Internal Trigger 1 (ITR1) */ -#define TIM_TS_ITR2 TIM_SMCR_TS_1 /*!< Internal Trigger 2 (ITR2) */ -#define TIM_TS_ITR3 (TIM_SMCR_TS_0 | TIM_SMCR_TS_1) /*!< Internal Trigger 3 (ITR3) */ -#define TIM_TS_ITR4 (TIM_SMCR_TS_3) /*!< Internal Trigger 4 (ITR4) */ -#define TIM_TS_ITR5 (TIM_SMCR_TS_0 | TIM_SMCR_TS_3) /*!< Internal Trigger 5 (ITR5) */ -#define TIM_TS_ITR6 (TIM_SMCR_TS_1 | TIM_SMCR_TS_3) /*!< Internal Trigger 6 (ITR6) */ -#define TIM_TS_ITR7 (TIM_SMCR_TS_0 | TIM_SMCR_TS_1 | TIM_SMCR_TS_3) /*!< Internal Trigger 7 (ITR7) */ -#define TIM_TS_ITR8 (TIM_SMCR_TS_2 | TIM_SMCR_TS_3) /*!< Internal Trigger 8 (ITR8) */ -#define TIM_TS_ITR9 (TIM_SMCR_TS_0 | TIM_SMCR_TS_2 | TIM_SMCR_TS_3) /*!< Internal Trigger 9 (ITR9) */ -#define TIM_TS_ITR10 (TIM_SMCR_TS_1 | TIM_SMCR_TS_2 | TIM_SMCR_TS_3) /*!< Internal Trigger 10 (ITR10) */ -#define TIM_TS_ITR11 (TIM_SMCR_TS_0 | TIM_SMCR_TS_1 | TIM_SMCR_TS_2 | TIM_SMCR_TS_3) /*!< Internal Trigger 11 (ITR11) */ -#define TIM_TS_ITR12 (TIM_SMCR_TS_4) /*!< Internal Trigger 12 (ITR12) */ -#define TIM_TS_ITR13 (TIM_SMCR_TS_0 | TIM_SMCR_TS_4) /*!< Internal Trigger 13 (ITR13) */ -#define TIM_TS_TI1F_ED TIM_SMCR_TS_2 /*!< TI1 Edge Detector (TI1F_ED) */ -#define TIM_TS_TI1FP1 (TIM_SMCR_TS_0 | TIM_SMCR_TS_2) /*!< Filtered Timer Input 1 (TI1FP1) */ -#define TIM_TS_TI2FP2 (TIM_SMCR_TS_1 | TIM_SMCR_TS_2) /*!< Filtered Timer Input 2 (TI2FP2) */ -#define TIM_TS_ETRF (TIM_SMCR_TS_0 | TIM_SMCR_TS_1 | TIM_SMCR_TS_2) /*!< Filtered External Trigger input (ETRF) */ -#define TIM_TS_NONE 0x0000FFFFU /*!< No trigger selected */ -/** - * @} - */ - -/** @defgroup TIM_Trigger_Polarity TIM Trigger Polarity - * @{ - */ -#define TIM_TRIGGERPOLARITY_INVERTED TIM_ETRPOLARITY_INVERTED /*!< Polarity for ETRx trigger sources */ -#define TIM_TRIGGERPOLARITY_NONINVERTED TIM_ETRPOLARITY_NONINVERTED /*!< Polarity for ETRx trigger sources */ -#define TIM_TRIGGERPOLARITY_RISING TIM_INPUTCHANNELPOLARITY_RISING /*!< Polarity for TIxFPx or TI1_ED trigger sources */ -#define TIM_TRIGGERPOLARITY_FALLING TIM_INPUTCHANNELPOLARITY_FALLING /*!< Polarity for TIxFPx or TI1_ED trigger sources */ -#define TIM_TRIGGERPOLARITY_BOTHEDGE TIM_INPUTCHANNELPOLARITY_BOTHEDGE /*!< Polarity for TIxFPx or TI1_ED trigger sources */ -/** - * @} - */ - -/** @defgroup TIM_Trigger_Prescaler TIM Trigger Prescaler - * @{ - */ -#define TIM_TRIGGERPRESCALER_DIV1 TIM_ETRPRESCALER_DIV1 /*!< No prescaler is used */ -#define TIM_TRIGGERPRESCALER_DIV2 TIM_ETRPRESCALER_DIV2 /*!< Prescaler for External ETR Trigger: Capture performed once every 2 events. */ -#define TIM_TRIGGERPRESCALER_DIV4 TIM_ETRPRESCALER_DIV4 /*!< Prescaler for External ETR Trigger: Capture performed once every 4 events. */ -#define TIM_TRIGGERPRESCALER_DIV8 TIM_ETRPRESCALER_DIV8 /*!< Prescaler for External ETR Trigger: Capture performed once every 8 events. */ -/** - * @} - */ - -/** @defgroup TIM_TI1_Selection TIM TI1 Input Selection - * @{ - */ -#define TIM_TI1SELECTION_CH1 0x00000000U /*!< The TIMx_CH1 pin is connected to TI1 input */ -#define TIM_TI1SELECTION_XORCOMBINATION TIM_CR2_TI1S /*!< The TIMx_CH1, CH2 and CH3 pins are connected to the TI1 input (XOR combination) */ -/** - * @} - */ - -/** @defgroup TIM_DMA_Burst_Length TIM DMA Burst Length - * @{ - */ -#define TIM_DMABURSTLENGTH_1TRANSFER 0x00000000U /*!< The transfer is done to 1 register starting from TIMx_CR1 + TIMx_DCR.DBA */ -#define TIM_DMABURSTLENGTH_2TRANSFERS 0x00000100U /*!< The transfer is done to 2 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ -#define TIM_DMABURSTLENGTH_3TRANSFERS 0x00000200U /*!< The transfer is done to 3 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ -#define TIM_DMABURSTLENGTH_4TRANSFERS 0x00000300U /*!< The transfer is done to 4 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ -#define TIM_DMABURSTLENGTH_5TRANSFERS 0x00000400U /*!< The transfer is done to 5 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ -#define TIM_DMABURSTLENGTH_6TRANSFERS 0x00000500U /*!< The transfer is done to 6 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ -#define TIM_DMABURSTLENGTH_7TRANSFERS 0x00000600U /*!< The transfer is done to 7 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ -#define TIM_DMABURSTLENGTH_8TRANSFERS 0x00000700U /*!< The transfer is done to 8 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ -#define TIM_DMABURSTLENGTH_9TRANSFERS 0x00000800U /*!< The transfer is done to 9 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ -#define TIM_DMABURSTLENGTH_10TRANSFERS 0x00000900U /*!< The transfer is done to 10 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ -#define TIM_DMABURSTLENGTH_11TRANSFERS 0x00000A00U /*!< The transfer is done to 11 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ -#define TIM_DMABURSTLENGTH_12TRANSFERS 0x00000B00U /*!< The transfer is done to 12 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ -#define TIM_DMABURSTLENGTH_13TRANSFERS 0x00000C00U /*!< The transfer is done to 13 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ -#define TIM_DMABURSTLENGTH_14TRANSFERS 0x00000D00U /*!< The transfer is done to 14 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ -#define TIM_DMABURSTLENGTH_15TRANSFERS 0x00000E00U /*!< The transfer is done to 15 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ -#define TIM_DMABURSTLENGTH_16TRANSFERS 0x00000F00U /*!< The transfer is done to 16 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ -#define TIM_DMABURSTLENGTH_17TRANSFERS 0x00001000U /*!< The transfer is done to 17 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ -#define TIM_DMABURSTLENGTH_18TRANSFERS 0x00001100U /*!< The transfer is done to 18 registers starting from TIMx_CR1 + TIMx_DCR.DBA */ -/** - * @} - */ - -/** @defgroup DMA_Handle_index TIM DMA Handle Index - * @{ - */ -#define TIM_DMA_ID_UPDATE ((uint16_t) 0x0000) /*!< Index of the DMA handle used for Update DMA requests */ -#define TIM_DMA_ID_CC1 ((uint16_t) 0x0001) /*!< Index of the DMA handle used for Capture/Compare 1 DMA requests */ -#define TIM_DMA_ID_CC2 ((uint16_t) 0x0002) /*!< Index of the DMA handle used for Capture/Compare 2 DMA requests */ -#define TIM_DMA_ID_CC3 ((uint16_t) 0x0003) /*!< Index of the DMA handle used for Capture/Compare 3 DMA requests */ -#define TIM_DMA_ID_CC4 ((uint16_t) 0x0004) /*!< Index of the DMA handle used for Capture/Compare 4 DMA requests */ -#define TIM_DMA_ID_COMMUTATION ((uint16_t) 0x0005) /*!< Index of the DMA handle used for Commutation DMA requests */ -#define TIM_DMA_ID_TRIGGER ((uint16_t) 0x0006) /*!< Index of the DMA handle used for Trigger DMA requests */ -/** - * @} - */ - -/** @defgroup Channel_CC_State TIM Capture/Compare Channel State - * @{ - */ -#define TIM_CCx_ENABLE 0x00000001U /*!< Input or output channel is enabled */ -#define TIM_CCx_DISABLE 0x00000000U /*!< Input or output channel is disabled */ -#define TIM_CCxN_ENABLE 0x00000004U /*!< Complementary output channel is enabled */ -#define TIM_CCxN_DISABLE 0x00000000U /*!< Complementary output channel is enabled */ -/** - * @} - */ - -/** @defgroup TIM_Break_System TIM Break System - * @{ - */ -#define TIM_BREAK_SYSTEM_ECC SYSCFG_CFGR2_ECCL /*!< Enables and locks the ECC error signal with Break Input of TIM1/8/15/16/17 */ -#define TIM_BREAK_SYSTEM_PVD SYSCFG_CFGR2_PVDL /*!< Enables and locks the PVD connection with TIM1/8/15/16/17 Break Input and also the PVDE and PLS bits of the Power Control Interface */ -#define TIM_BREAK_SYSTEM_SRAM_PARITY_ERROR SYSCFG_CFGR2_SPL /*!< Enables and locks the SRAM_PARITY error signal with Break Input of TIM1/8/15/16/17 */ -#define TIM_BREAK_SYSTEM_LOCKUP SYSCFG_CFGR2_CLL /*!< Enables and locks the LOCKUP output of CortexM4 with Break Input of TIM1/8/15/16/17 */ -/** - * @} - */ - -/** - * @} - */ -/* End of exported constants -------------------------------------------------*/ - -/* Exported macros -----------------------------------------------------------*/ -/** @defgroup TIM_Exported_Macros TIM Exported Macros - * @{ - */ - -/** @brief Reset TIM handle state. - * @param __HANDLE__ TIM handle. - * @retval None - */ -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) -#define __HAL_TIM_RESET_HANDLE_STATE(__HANDLE__) do { \ - (__HANDLE__)->State = HAL_TIM_STATE_RESET; \ - (__HANDLE__)->ChannelState[0] = HAL_TIM_CHANNEL_STATE_RESET; \ - (__HANDLE__)->ChannelState[1] = HAL_TIM_CHANNEL_STATE_RESET; \ - (__HANDLE__)->ChannelState[2] = HAL_TIM_CHANNEL_STATE_RESET; \ - (__HANDLE__)->ChannelState[3] = HAL_TIM_CHANNEL_STATE_RESET; \ - (__HANDLE__)->ChannelState[4] = HAL_TIM_CHANNEL_STATE_RESET; \ - (__HANDLE__)->ChannelState[5] = HAL_TIM_CHANNEL_STATE_RESET; \ - (__HANDLE__)->ChannelNState[0] = HAL_TIM_CHANNEL_STATE_RESET; \ - (__HANDLE__)->ChannelNState[1] = HAL_TIM_CHANNEL_STATE_RESET; \ - (__HANDLE__)->ChannelNState[2] = HAL_TIM_CHANNEL_STATE_RESET; \ - (__HANDLE__)->ChannelNState[3] = HAL_TIM_CHANNEL_STATE_RESET; \ - (__HANDLE__)->DMABurstState = HAL_DMA_BURST_STATE_RESET; \ - (__HANDLE__)->Base_MspInitCallback = NULL; \ - (__HANDLE__)->Base_MspDeInitCallback = NULL; \ - (__HANDLE__)->IC_MspInitCallback = NULL; \ - (__HANDLE__)->IC_MspDeInitCallback = NULL; \ - (__HANDLE__)->OC_MspInitCallback = NULL; \ - (__HANDLE__)->OC_MspDeInitCallback = NULL; \ - (__HANDLE__)->PWM_MspInitCallback = NULL; \ - (__HANDLE__)->PWM_MspDeInitCallback = NULL; \ - (__HANDLE__)->OnePulse_MspInitCallback = NULL; \ - (__HANDLE__)->OnePulse_MspDeInitCallback = NULL; \ - (__HANDLE__)->Encoder_MspInitCallback = NULL; \ - (__HANDLE__)->Encoder_MspDeInitCallback = NULL; \ - (__HANDLE__)->HallSensor_MspInitCallback = NULL; \ - (__HANDLE__)->HallSensor_MspDeInitCallback = NULL; \ - } while(0) -#else -#define __HAL_TIM_RESET_HANDLE_STATE(__HANDLE__) do { \ - (__HANDLE__)->State = HAL_TIM_STATE_RESET; \ - (__HANDLE__)->ChannelState[0] = HAL_TIM_CHANNEL_STATE_RESET; \ - (__HANDLE__)->ChannelState[1] = HAL_TIM_CHANNEL_STATE_RESET; \ - (__HANDLE__)->ChannelState[2] = HAL_TIM_CHANNEL_STATE_RESET; \ - (__HANDLE__)->ChannelState[3] = HAL_TIM_CHANNEL_STATE_RESET; \ - (__HANDLE__)->ChannelState[4] = HAL_TIM_CHANNEL_STATE_RESET; \ - (__HANDLE__)->ChannelState[5] = HAL_TIM_CHANNEL_STATE_RESET; \ - (__HANDLE__)->ChannelNState[0] = HAL_TIM_CHANNEL_STATE_RESET; \ - (__HANDLE__)->ChannelNState[1] = HAL_TIM_CHANNEL_STATE_RESET; \ - (__HANDLE__)->ChannelNState[2] = HAL_TIM_CHANNEL_STATE_RESET; \ - (__HANDLE__)->ChannelNState[3] = HAL_TIM_CHANNEL_STATE_RESET; \ - (__HANDLE__)->DMABurstState = HAL_DMA_BURST_STATE_RESET; \ - } while(0) -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - -/** - * @brief Enable the TIM peripheral. - * @param __HANDLE__ TIM handle - * @retval None - */ -#define __HAL_TIM_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR1|=(TIM_CR1_CEN)) - -/** - * @brief Enable the TIM main Output. - * @param __HANDLE__ TIM handle - * @retval None - */ -#define __HAL_TIM_MOE_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->BDTR|=(TIM_BDTR_MOE)) - -/** - * @brief Disable the TIM peripheral. - * @param __HANDLE__ TIM handle - * @retval None - */ -#define __HAL_TIM_DISABLE(__HANDLE__) \ - do { \ - if (((__HANDLE__)->Instance->CCER & TIM_CCER_CCxE_MASK) == 0UL) \ - { \ - if(((__HANDLE__)->Instance->CCER & TIM_CCER_CCxNE_MASK) == 0UL) \ - { \ - (__HANDLE__)->Instance->CR1 &= ~(TIM_CR1_CEN); \ - } \ - } \ - } while(0) - -/** - * @brief Disable the TIM main Output. - * @param __HANDLE__ TIM handle - * @retval None - * @note The Main Output Enable of a timer instance is disabled only if all the CCx and CCxN channels have been - * disabled - */ -#define __HAL_TIM_MOE_DISABLE(__HANDLE__) \ - do { \ - if (((__HANDLE__)->Instance->CCER & TIM_CCER_CCxE_MASK) == 0UL) \ - { \ - if(((__HANDLE__)->Instance->CCER & TIM_CCER_CCxNE_MASK) == 0UL) \ - { \ - (__HANDLE__)->Instance->BDTR &= ~(TIM_BDTR_MOE); \ - } \ - } \ - } while(0) - -/** - * @brief Disable the TIM main Output. - * @param __HANDLE__ TIM handle - * @retval None - * @note The Main Output Enable of a timer instance is disabled unconditionally - */ -#define __HAL_TIM_MOE_DISABLE_UNCONDITIONALLY(__HANDLE__) (__HANDLE__)->Instance->BDTR &= ~(TIM_BDTR_MOE) - -/** @brief Enable the specified TIM interrupt. - * @param __HANDLE__ specifies the TIM Handle. - * @param __INTERRUPT__ specifies the TIM interrupt source to enable. - * This parameter can be one of the following values: - * @arg TIM_IT_UPDATE: Update interrupt - * @arg TIM_IT_CC1: Capture/Compare 1 interrupt - * @arg TIM_IT_CC2: Capture/Compare 2 interrupt - * @arg TIM_IT_CC3: Capture/Compare 3 interrupt - * @arg TIM_IT_CC4: Capture/Compare 4 interrupt - * @arg TIM_IT_COM: Commutation interrupt - * @arg TIM_IT_TRIGGER: Trigger interrupt - * @arg TIM_IT_BREAK: Break interrupt - * @retval None - */ -#define __HAL_TIM_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->DIER |= (__INTERRUPT__)) - -/** @brief Disable the specified TIM interrupt. - * @param __HANDLE__ specifies the TIM Handle. - * @param __INTERRUPT__ specifies the TIM interrupt source to disable. - * This parameter can be one of the following values: - * @arg TIM_IT_UPDATE: Update interrupt - * @arg TIM_IT_CC1: Capture/Compare 1 interrupt - * @arg TIM_IT_CC2: Capture/Compare 2 interrupt - * @arg TIM_IT_CC3: Capture/Compare 3 interrupt - * @arg TIM_IT_CC4: Capture/Compare 4 interrupt - * @arg TIM_IT_COM: Commutation interrupt - * @arg TIM_IT_TRIGGER: Trigger interrupt - * @arg TIM_IT_BREAK: Break interrupt - * @retval None - */ -#define __HAL_TIM_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->DIER &= ~(__INTERRUPT__)) - -/** @brief Enable the specified DMA request. - * @param __HANDLE__ specifies the TIM Handle. - * @param __DMA__ specifies the TIM DMA request to enable. - * This parameter can be one of the following values: - * @arg TIM_DMA_UPDATE: Update DMA request - * @arg TIM_DMA_CC1: Capture/Compare 1 DMA request - * @arg TIM_DMA_CC2: Capture/Compare 2 DMA request - * @arg TIM_DMA_CC3: Capture/Compare 3 DMA request - * @arg TIM_DMA_CC4: Capture/Compare 4 DMA request - * @arg TIM_DMA_COM: Commutation DMA request - * @arg TIM_DMA_TRIGGER: Trigger DMA request - * @retval None - */ -#define __HAL_TIM_ENABLE_DMA(__HANDLE__, __DMA__) ((__HANDLE__)->Instance->DIER |= (__DMA__)) - -/** @brief Disable the specified DMA request. - * @param __HANDLE__ specifies the TIM Handle. - * @param __DMA__ specifies the TIM DMA request to disable. - * This parameter can be one of the following values: - * @arg TIM_DMA_UPDATE: Update DMA request - * @arg TIM_DMA_CC1: Capture/Compare 1 DMA request - * @arg TIM_DMA_CC2: Capture/Compare 2 DMA request - * @arg TIM_DMA_CC3: Capture/Compare 3 DMA request - * @arg TIM_DMA_CC4: Capture/Compare 4 DMA request - * @arg TIM_DMA_COM: Commutation DMA request - * @arg TIM_DMA_TRIGGER: Trigger DMA request - * @retval None - */ -#define __HAL_TIM_DISABLE_DMA(__HANDLE__, __DMA__) ((__HANDLE__)->Instance->DIER &= ~(__DMA__)) - -/** @brief Check whether the specified TIM interrupt flag is set or not. - * @param __HANDLE__ specifies the TIM Handle. - * @param __FLAG__ specifies the TIM interrupt flag to check. - * This parameter can be one of the following values: - * @arg TIM_FLAG_UPDATE: Update interrupt flag - * @arg TIM_FLAG_CC1: Capture/Compare 1 interrupt flag - * @arg TIM_FLAG_CC2: Capture/Compare 2 interrupt flag - * @arg TIM_FLAG_CC3: Capture/Compare 3 interrupt flag - * @arg TIM_FLAG_CC4: Capture/Compare 4 interrupt flag - * @arg TIM_FLAG_CC5: Compare 5 interrupt flag - * @arg TIM_FLAG_CC6: Compare 6 interrupt flag - * @arg TIM_FLAG_COM: Commutation interrupt flag - * @arg TIM_FLAG_TRIGGER: Trigger interrupt flag - * @arg TIM_FLAG_BREAK: Break interrupt flag - * @arg TIM_FLAG_BREAK2: Break 2 interrupt flag - * @arg TIM_FLAG_SYSTEM_BREAK: System Break interrupt flag - * @arg TIM_FLAG_CC1OF: Capture/Compare 1 overcapture flag - * @arg TIM_FLAG_CC2OF: Capture/Compare 2 overcapture flag - * @arg TIM_FLAG_CC3OF: Capture/Compare 3 overcapture flag - * @arg TIM_FLAG_CC4OF: Capture/Compare 4 overcapture flag - * @retval The new state of __FLAG__ (TRUE or FALSE). - */ -#define __HAL_TIM_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR &(__FLAG__)) == (__FLAG__)) - -/** @brief Clear the specified TIM interrupt flag. - * @param __HANDLE__ specifies the TIM Handle. - * @param __FLAG__ specifies the TIM interrupt flag to clear. - * This parameter can be one of the following values: - * @arg TIM_FLAG_UPDATE: Update interrupt flag - * @arg TIM_FLAG_CC1: Capture/Compare 1 interrupt flag - * @arg TIM_FLAG_CC2: Capture/Compare 2 interrupt flag - * @arg TIM_FLAG_CC3: Capture/Compare 3 interrupt flag - * @arg TIM_FLAG_CC4: Capture/Compare 4 interrupt flag - * @arg TIM_FLAG_CC5: Compare 5 interrupt flag - * @arg TIM_FLAG_CC6: Compare 6 interrupt flag - * @arg TIM_FLAG_COM: Commutation interrupt flag - * @arg TIM_FLAG_TRIGGER: Trigger interrupt flag - * @arg TIM_FLAG_BREAK: Break interrupt flag - * @arg TIM_FLAG_BREAK2: Break 2 interrupt flag - * @arg TIM_FLAG_SYSTEM_BREAK: System Break interrupt flag - * @arg TIM_FLAG_CC1OF: Capture/Compare 1 overcapture flag - * @arg TIM_FLAG_CC2OF: Capture/Compare 2 overcapture flag - * @arg TIM_FLAG_CC3OF: Capture/Compare 3 overcapture flag - * @arg TIM_FLAG_CC4OF: Capture/Compare 4 overcapture flag - * @retval The new state of __FLAG__ (TRUE or FALSE). - */ -#define __HAL_TIM_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->SR = ~(__FLAG__)) - -/** - * @brief Check whether the specified TIM interrupt source is enabled or not. - * @param __HANDLE__ TIM handle - * @param __INTERRUPT__ specifies the TIM interrupt source to check. - * This parameter can be one of the following values: - * @arg TIM_IT_UPDATE: Update interrupt - * @arg TIM_IT_CC1: Capture/Compare 1 interrupt - * @arg TIM_IT_CC2: Capture/Compare 2 interrupt - * @arg TIM_IT_CC3: Capture/Compare 3 interrupt - * @arg TIM_IT_CC4: Capture/Compare 4 interrupt - * @arg TIM_IT_COM: Commutation interrupt - * @arg TIM_IT_TRIGGER: Trigger interrupt - * @arg TIM_IT_BREAK: Break interrupt - * @retval The state of TIM_IT (SET or RESET). - */ -#define __HAL_TIM_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((((__HANDLE__)->Instance->DIER & (__INTERRUPT__)) \ - == (__INTERRUPT__)) ? SET : RESET) - -/** @brief Clear the TIM interrupt pending bits. - * @param __HANDLE__ TIM handle - * @param __INTERRUPT__ specifies the interrupt pending bit to clear. - * This parameter can be one of the following values: - * @arg TIM_IT_UPDATE: Update interrupt - * @arg TIM_IT_CC1: Capture/Compare 1 interrupt - * @arg TIM_IT_CC2: Capture/Compare 2 interrupt - * @arg TIM_IT_CC3: Capture/Compare 3 interrupt - * @arg TIM_IT_CC4: Capture/Compare 4 interrupt - * @arg TIM_IT_COM: Commutation interrupt - * @arg TIM_IT_TRIGGER: Trigger interrupt - * @arg TIM_IT_BREAK: Break interrupt - * @retval None - */ -#define __HAL_TIM_CLEAR_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->SR = ~(__INTERRUPT__)) - -/** - * @brief Force a continuous copy of the update interrupt flag (UIF) into the timer counter register (bit 31). - * @note This allows both the counter value and a potential roll-over condition signalled by the UIFCPY flag to be read - * in an atomic way. - * @param __HANDLE__ TIM handle. - * @retval None -mode. - */ -#define __HAL_TIM_UIFREMAP_ENABLE(__HANDLE__) (((__HANDLE__)->Instance->CR1 |= TIM_CR1_UIFREMAP)) - -/** - * @brief Disable update interrupt flag (UIF) remapping. - * @param __HANDLE__ TIM handle. - * @retval None -mode. - */ -#define __HAL_TIM_UIFREMAP_DISABLE(__HANDLE__) (((__HANDLE__)->Instance->CR1 &= ~TIM_CR1_UIFREMAP)) - -/** - * @brief Get update interrupt flag (UIF) copy status. - * @param __COUNTER__ Counter value. - * @retval The state of UIFCPY (TRUE or FALSE). -mode. - */ -#define __HAL_TIM_GET_UIFCPY(__COUNTER__) (((__COUNTER__) & (TIM_CNT_UIFCPY)) == (TIM_CNT_UIFCPY)) - -/** - * @brief Indicates whether or not the TIM Counter is used as downcounter. - * @param __HANDLE__ TIM handle. - * @retval False (Counter used as upcounter) or True (Counter used as downcounter) - * @note This macro is particularly useful to get the counting mode when the timer operates in Center-aligned mode - * or Encoder mode. - */ -#define __HAL_TIM_IS_TIM_COUNTING_DOWN(__HANDLE__) (((__HANDLE__)->Instance->CR1 &(TIM_CR1_DIR)) == (TIM_CR1_DIR)) - -/** - * @brief Set the TIM Prescaler on runtime. - * @param __HANDLE__ TIM handle. - * @param __PRESC__ specifies the Prescaler new value. - * @retval None - */ -#define __HAL_TIM_SET_PRESCALER(__HANDLE__, __PRESC__) ((__HANDLE__)->Instance->PSC = (__PRESC__)) - -/** - * @brief Set the TIM Counter Register value on runtime. - * Note Please check if the bit 31 of CNT register is used as UIF copy or not, this may affect the counter range in - * case of 32 bits counter TIM instance. - * Bit 31 of CNT can be enabled/disabled using __HAL_TIM_UIFREMAP_ENABLE()/__HAL_TIM_UIFREMAP_DISABLE() macros. - * @param __HANDLE__ TIM handle. - * @param __COUNTER__ specifies the Counter register new value. - * @retval None - */ -#define __HAL_TIM_SET_COUNTER(__HANDLE__, __COUNTER__) ((__HANDLE__)->Instance->CNT = (__COUNTER__)) - -/** - * @brief Get the TIM Counter Register value on runtime. - * @param __HANDLE__ TIM handle. - * @retval 16-bit or 32-bit value of the timer counter register (TIMx_CNT) - */ -#define __HAL_TIM_GET_COUNTER(__HANDLE__) ((__HANDLE__)->Instance->CNT) - -/** - * @brief Set the TIM Autoreload Register value on runtime without calling another time any Init function. - * @param __HANDLE__ TIM handle. - * @param __AUTORELOAD__ specifies the Counter register new value. - * @retval None - */ -#define __HAL_TIM_SET_AUTORELOAD(__HANDLE__, __AUTORELOAD__) \ - do{ \ - (__HANDLE__)->Instance->ARR = (__AUTORELOAD__); \ - (__HANDLE__)->Init.Period = (__AUTORELOAD__); \ - } while(0) - -/** - * @brief Get the TIM Autoreload Register value on runtime. - * @param __HANDLE__ TIM handle. - * @retval 16-bit or 32-bit value of the timer auto-reload register(TIMx_ARR) - */ -#define __HAL_TIM_GET_AUTORELOAD(__HANDLE__) ((__HANDLE__)->Instance->ARR) - -/** - * @brief Set the TIM Clock Division value on runtime without calling another time any Init function. - * @param __HANDLE__ TIM handle. - * @param __CKD__ specifies the clock division value. - * This parameter can be one of the following value: - * @arg TIM_CLOCKDIVISION_DIV1: tDTS=tCK_INT - * @arg TIM_CLOCKDIVISION_DIV2: tDTS=2*tCK_INT - * @arg TIM_CLOCKDIVISION_DIV4: tDTS=4*tCK_INT - * @retval None - */ -#define __HAL_TIM_SET_CLOCKDIVISION(__HANDLE__, __CKD__) \ - do{ \ - (__HANDLE__)->Instance->CR1 &= (~TIM_CR1_CKD); \ - (__HANDLE__)->Instance->CR1 |= (__CKD__); \ - (__HANDLE__)->Init.ClockDivision = (__CKD__); \ - } while(0) - -/** - * @brief Get the TIM Clock Division value on runtime. - * @param __HANDLE__ TIM handle. - * @retval The clock division can be one of the following values: - * @arg TIM_CLOCKDIVISION_DIV1: tDTS=tCK_INT - * @arg TIM_CLOCKDIVISION_DIV2: tDTS=2*tCK_INT - * @arg TIM_CLOCKDIVISION_DIV4: tDTS=4*tCK_INT - */ -#define __HAL_TIM_GET_CLOCKDIVISION(__HANDLE__) ((__HANDLE__)->Instance->CR1 & TIM_CR1_CKD) - -/** - * @brief Set the TIM Input Capture prescaler on runtime without calling another time HAL_TIM_IC_ConfigChannel() - * function. - * @param __HANDLE__ TIM handle. - * @param __CHANNEL__ TIM Channels to be configured. - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @param __ICPSC__ specifies the Input Capture4 prescaler new value. - * This parameter can be one of the following values: - * @arg TIM_ICPSC_DIV1: no prescaler - * @arg TIM_ICPSC_DIV2: capture is done once every 2 events - * @arg TIM_ICPSC_DIV4: capture is done once every 4 events - * @arg TIM_ICPSC_DIV8: capture is done once every 8 events - * @retval None - */ -#define __HAL_TIM_SET_ICPRESCALER(__HANDLE__, __CHANNEL__, __ICPSC__) \ - do{ \ - TIM_RESET_ICPRESCALERVALUE((__HANDLE__), (__CHANNEL__)); \ - TIM_SET_ICPRESCALERVALUE((__HANDLE__), (__CHANNEL__), (__ICPSC__)); \ - } while(0) - -/** - * @brief Get the TIM Input Capture prescaler on runtime. - * @param __HANDLE__ TIM handle. - * @param __CHANNEL__ TIM Channels to be configured. - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: get input capture 1 prescaler value - * @arg TIM_CHANNEL_2: get input capture 2 prescaler value - * @arg TIM_CHANNEL_3: get input capture 3 prescaler value - * @arg TIM_CHANNEL_4: get input capture 4 prescaler value - * @retval The input capture prescaler can be one of the following values: - * @arg TIM_ICPSC_DIV1: no prescaler - * @arg TIM_ICPSC_DIV2: capture is done once every 2 events - * @arg TIM_ICPSC_DIV4: capture is done once every 4 events - * @arg TIM_ICPSC_DIV8: capture is done once every 8 events - */ -#define __HAL_TIM_GET_ICPRESCALER(__HANDLE__, __CHANNEL__) \ - (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCMR1 & TIM_CCMR1_IC1PSC) :\ - ((__CHANNEL__) == TIM_CHANNEL_2) ? (((__HANDLE__)->Instance->CCMR1 & TIM_CCMR1_IC2PSC) >> 8U) :\ - ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->Instance->CCMR2 & TIM_CCMR2_IC3PSC) :\ - (((__HANDLE__)->Instance->CCMR2 & TIM_CCMR2_IC4PSC)) >> 8U) - -/** - * @brief Set the TIM Capture Compare Register value on runtime without calling another time ConfigChannel function. - * @param __HANDLE__ TIM handle. - * @param __CHANNEL__ TIM Channels to be configured. - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @arg TIM_CHANNEL_5: TIM Channel 5 selected - * @arg TIM_CHANNEL_6: TIM Channel 6 selected - * @param __COMPARE__ specifies the Capture Compare register new value. - * @retval None - */ -#define __HAL_TIM_SET_COMPARE(__HANDLE__, __CHANNEL__, __COMPARE__) \ - (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCR1 = (__COMPARE__)) :\ - ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->Instance->CCR2 = (__COMPARE__)) :\ - ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->Instance->CCR3 = (__COMPARE__)) :\ - ((__CHANNEL__) == TIM_CHANNEL_4) ? ((__HANDLE__)->Instance->CCR4 = (__COMPARE__)) :\ - ((__CHANNEL__) == TIM_CHANNEL_5) ? ((__HANDLE__)->Instance->CCR5 = (__COMPARE__)) :\ - ((__HANDLE__)->Instance->CCR6 = (__COMPARE__))) - -/** - * @brief Get the TIM Capture Compare Register value on runtime. - * @param __HANDLE__ TIM handle. - * @param __CHANNEL__ TIM Channel associated with the capture compare register - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: get capture/compare 1 register value - * @arg TIM_CHANNEL_2: get capture/compare 2 register value - * @arg TIM_CHANNEL_3: get capture/compare 3 register value - * @arg TIM_CHANNEL_4: get capture/compare 4 register value - * @arg TIM_CHANNEL_5: get capture/compare 5 register value - * @arg TIM_CHANNEL_6: get capture/compare 6 register value - * @retval 16-bit or 32-bit value of the capture/compare register (TIMx_CCRy) - */ -#define __HAL_TIM_GET_COMPARE(__HANDLE__, __CHANNEL__) \ - (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCR1) :\ - ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->Instance->CCR2) :\ - ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->Instance->CCR3) :\ - ((__CHANNEL__) == TIM_CHANNEL_4) ? ((__HANDLE__)->Instance->CCR4) :\ - ((__CHANNEL__) == TIM_CHANNEL_5) ? ((__HANDLE__)->Instance->CCR5) :\ - ((__HANDLE__)->Instance->CCR6)) - -/** - * @brief Set the TIM Output compare preload. - * @param __HANDLE__ TIM handle. - * @param __CHANNEL__ TIM Channels to be configured. - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @arg TIM_CHANNEL_5: TIM Channel 5 selected - * @arg TIM_CHANNEL_6: TIM Channel 6 selected - * @retval None - */ -#define __HAL_TIM_ENABLE_OCxPRELOAD(__HANDLE__, __CHANNEL__) \ - (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCMR1 |= TIM_CCMR1_OC1PE) :\ - ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->Instance->CCMR1 |= TIM_CCMR1_OC2PE) :\ - ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->Instance->CCMR2 |= TIM_CCMR2_OC3PE) :\ - ((__CHANNEL__) == TIM_CHANNEL_4) ? ((__HANDLE__)->Instance->CCMR2 |= TIM_CCMR2_OC4PE) :\ - ((__CHANNEL__) == TIM_CHANNEL_5) ? ((__HANDLE__)->Instance->CCMR3 |= TIM_CCMR3_OC5PE) :\ - ((__HANDLE__)->Instance->CCMR3 |= TIM_CCMR3_OC6PE)) - -/** - * @brief Reset the TIM Output compare preload. - * @param __HANDLE__ TIM handle. - * @param __CHANNEL__ TIM Channels to be configured. - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @arg TIM_CHANNEL_5: TIM Channel 5 selected - * @arg TIM_CHANNEL_6: TIM Channel 6 selected - * @retval None - */ -#define __HAL_TIM_DISABLE_OCxPRELOAD(__HANDLE__, __CHANNEL__) \ - (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCMR1 &= ~TIM_CCMR1_OC1PE) :\ - ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->Instance->CCMR1 &= ~TIM_CCMR1_OC2PE) :\ - ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->Instance->CCMR2 &= ~TIM_CCMR2_OC3PE) :\ - ((__CHANNEL__) == TIM_CHANNEL_4) ? ((__HANDLE__)->Instance->CCMR2 &= ~TIM_CCMR2_OC4PE) :\ - ((__CHANNEL__) == TIM_CHANNEL_5) ? ((__HANDLE__)->Instance->CCMR3 &= ~TIM_CCMR3_OC5PE) :\ - ((__HANDLE__)->Instance->CCMR3 &= ~TIM_CCMR3_OC6PE)) - -/** - * @brief Enable fast mode for a given channel. - * @param __HANDLE__ TIM handle. - * @param __CHANNEL__ TIM Channels to be configured. - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @arg TIM_CHANNEL_5: TIM Channel 5 selected - * @arg TIM_CHANNEL_6: TIM Channel 6 selected - * @note When fast mode is enabled an active edge on the trigger input acts - * like a compare match on CCx output. Delay to sample the trigger - * input and to activate CCx output is reduced to 3 clock cycles. - * @note Fast mode acts only if the channel is configured in PWM1 or PWM2 mode. - * @retval None - */ -#define __HAL_TIM_ENABLE_OCxFAST(__HANDLE__, __CHANNEL__) \ - (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCMR1 |= TIM_CCMR1_OC1FE) :\ - ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->Instance->CCMR1 |= TIM_CCMR1_OC2FE) :\ - ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->Instance->CCMR2 |= TIM_CCMR2_OC3FE) :\ - ((__CHANNEL__) == TIM_CHANNEL_4) ? ((__HANDLE__)->Instance->CCMR2 |= TIM_CCMR2_OC4FE) :\ - ((__CHANNEL__) == TIM_CHANNEL_5) ? ((__HANDLE__)->Instance->CCMR3 |= TIM_CCMR3_OC5FE) :\ - ((__HANDLE__)->Instance->CCMR3 |= TIM_CCMR3_OC6FE)) - -/** - * @brief Disable fast mode for a given channel. - * @param __HANDLE__ TIM handle. - * @param __CHANNEL__ TIM Channels to be configured. - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @arg TIM_CHANNEL_5: TIM Channel 5 selected - * @arg TIM_CHANNEL_6: TIM Channel 6 selected - * @note When fast mode is disabled CCx output behaves normally depending - * on counter and CCRx values even when the trigger is ON. The minimum - * delay to activate CCx output when an active edge occurs on the - * trigger input is 5 clock cycles. - * @retval None - */ -#define __HAL_TIM_DISABLE_OCxFAST(__HANDLE__, __CHANNEL__) \ - (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCMR1 &= ~TIM_CCMR1_OC1FE) :\ - ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->Instance->CCMR1 &= ~TIM_CCMR1_OC2FE) :\ - ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->Instance->CCMR2 &= ~TIM_CCMR2_OC3FE) :\ - ((__CHANNEL__) == TIM_CHANNEL_4) ? ((__HANDLE__)->Instance->CCMR2 &= ~TIM_CCMR2_OC4FE) :\ - ((__CHANNEL__) == TIM_CHANNEL_5) ? ((__HANDLE__)->Instance->CCMR3 &= ~TIM_CCMR3_OC5FE) :\ - ((__HANDLE__)->Instance->CCMR3 &= ~TIM_CCMR3_OC6FE)) - -/** - * @brief Set the Update Request Source (URS) bit of the TIMx_CR1 register. - * @param __HANDLE__ TIM handle. - * @note When the URS bit of the TIMx_CR1 register is set, only counter - * overflow/underflow generates an update interrupt or DMA request (if - * enabled) - * @retval None - */ -#define __HAL_TIM_URS_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR1|= TIM_CR1_URS) - -/** - * @brief Reset the Update Request Source (URS) bit of the TIMx_CR1 register. - * @param __HANDLE__ TIM handle. - * @note When the URS bit of the TIMx_CR1 register is reset, any of the - * following events generate an update interrupt or DMA request (if - * enabled): - * _ Counter overflow underflow - * _ Setting the UG bit - * _ Update generation through the slave mode controller - * @retval None - */ -#define __HAL_TIM_URS_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR1&=~TIM_CR1_URS) - -/** - * @brief Set the TIM Capture x input polarity on runtime. - * @param __HANDLE__ TIM handle. - * @param __CHANNEL__ TIM Channels to be configured. - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @param __POLARITY__ Polarity for TIx source - * @arg TIM_INPUTCHANNELPOLARITY_RISING: Rising Edge - * @arg TIM_INPUTCHANNELPOLARITY_FALLING: Falling Edge - * @arg TIM_INPUTCHANNELPOLARITY_BOTHEDGE: Rising and Falling Edge - * @retval None - */ -#define __HAL_TIM_SET_CAPTUREPOLARITY(__HANDLE__, __CHANNEL__, __POLARITY__) \ - do{ \ - TIM_RESET_CAPTUREPOLARITY((__HANDLE__), (__CHANNEL__)); \ - TIM_SET_CAPTUREPOLARITY((__HANDLE__), (__CHANNEL__), (__POLARITY__)); \ - }while(0) - -/** @brief Select the Capture/compare DMA request source. - * @param __HANDLE__ specifies the TIM Handle. - * @param __CCDMA__ specifies Capture/compare DMA request source - * This parameter can be one of the following values: - * @arg TIM_CCDMAREQUEST_CC: CCx DMA request generated on Capture/Compare event - * @arg TIM_CCDMAREQUEST_UPDATE: CCx DMA request generated on Update event - * @retval None - */ -#define __HAL_TIM_SELECT_CCDMAREQUEST(__HANDLE__, __CCDMA__) \ - MODIFY_REG((__HANDLE__)->Instance->CR2, TIM_CR2_CCDS, (__CCDMA__)) - -/** - * @} - */ -/* End of exported macros ----------------------------------------------------*/ - -/* Private constants ---------------------------------------------------------*/ -/** @defgroup TIM_Private_Constants TIM Private Constants - * @{ - */ -/* The counter of a timer instance is disabled only if all the CCx and CCxN - channels have been disabled */ -#define TIM_CCER_CCxE_MASK ((uint32_t)(TIM_CCER_CC1E | TIM_CCER_CC2E | TIM_CCER_CC3E | TIM_CCER_CC4E)) -#define TIM_CCER_CCxNE_MASK ((uint32_t)(TIM_CCER_CC1NE | TIM_CCER_CC2NE | TIM_CCER_CC3NE)) -/** - * @} - */ -/* End of private constants --------------------------------------------------*/ - -/* Private macros ------------------------------------------------------------*/ -/** @defgroup TIM_Private_Macros TIM Private Macros - * @{ - */ -#define IS_TIM_CLEARINPUT_SOURCE(__MODE__) (((__MODE__) == TIM_CLEARINPUTSOURCE_NONE) || \ - ((__MODE__) == TIM_CLEARINPUTSOURCE_ETR)) - -#define IS_TIM_DMA_BASE(__BASE__) (((__BASE__) == TIM_DMABASE_CR1) || \ - ((__BASE__) == TIM_DMABASE_CR2) || \ - ((__BASE__) == TIM_DMABASE_SMCR) || \ - ((__BASE__) == TIM_DMABASE_DIER) || \ - ((__BASE__) == TIM_DMABASE_SR) || \ - ((__BASE__) == TIM_DMABASE_EGR) || \ - ((__BASE__) == TIM_DMABASE_CCMR1) || \ - ((__BASE__) == TIM_DMABASE_CCMR2) || \ - ((__BASE__) == TIM_DMABASE_CCER) || \ - ((__BASE__) == TIM_DMABASE_CNT) || \ - ((__BASE__) == TIM_DMABASE_PSC) || \ - ((__BASE__) == TIM_DMABASE_ARR) || \ - ((__BASE__) == TIM_DMABASE_RCR) || \ - ((__BASE__) == TIM_DMABASE_CCR1) || \ - ((__BASE__) == TIM_DMABASE_CCR2) || \ - ((__BASE__) == TIM_DMABASE_CCR3) || \ - ((__BASE__) == TIM_DMABASE_CCR4) || \ - ((__BASE__) == TIM_DMABASE_BDTR) || \ - ((__BASE__) == TIM_DMABASE_CCMR3) || \ - ((__BASE__) == TIM_DMABASE_CCR5) || \ - ((__BASE__) == TIM_DMABASE_CCR6) || \ - ((__BASE__) == TIM_DMABASE_AF1) || \ - ((__BASE__) == TIM_DMABASE_AF2) || \ - ((__BASE__) == TIM_DMABASE_TISEL)) - - -#define IS_TIM_EVENT_SOURCE(__SOURCE__) ((((__SOURCE__) & 0xFFFFFE00U) == 0x00000000U) && ((__SOURCE__) != 0x00000000U)) - -#define IS_TIM_COUNTER_MODE(__MODE__) (((__MODE__) == TIM_COUNTERMODE_UP) || \ - ((__MODE__) == TIM_COUNTERMODE_DOWN) || \ - ((__MODE__) == TIM_COUNTERMODE_CENTERALIGNED1) || \ - ((__MODE__) == TIM_COUNTERMODE_CENTERALIGNED2) || \ - ((__MODE__) == TIM_COUNTERMODE_CENTERALIGNED3)) - -#define IS_TIM_UIFREMAP_MODE(__MODE__) (((__MODE__) == TIM_UIFREMAP_DISABLE) || \ - ((__MODE__) == TIM_UIFREMAP_ENABLE)) - -#define IS_TIM_CLOCKDIVISION_DIV(__DIV__) (((__DIV__) == TIM_CLOCKDIVISION_DIV1) || \ - ((__DIV__) == TIM_CLOCKDIVISION_DIV2) || \ - ((__DIV__) == TIM_CLOCKDIVISION_DIV4)) - -#define IS_TIM_AUTORELOAD_PRELOAD(PRELOAD) (((PRELOAD) == TIM_AUTORELOAD_PRELOAD_DISABLE) || \ - ((PRELOAD) == TIM_AUTORELOAD_PRELOAD_ENABLE)) - -#define IS_TIM_FAST_STATE(__STATE__) (((__STATE__) == TIM_OCFAST_DISABLE) || \ - ((__STATE__) == TIM_OCFAST_ENABLE)) - -#define IS_TIM_OC_POLARITY(__POLARITY__) (((__POLARITY__) == TIM_OCPOLARITY_HIGH) || \ - ((__POLARITY__) == TIM_OCPOLARITY_LOW)) - -#define IS_TIM_OCN_POLARITY(__POLARITY__) (((__POLARITY__) == TIM_OCNPOLARITY_HIGH) || \ - ((__POLARITY__) == TIM_OCNPOLARITY_LOW)) - -#define IS_TIM_OCIDLE_STATE(__STATE__) (((__STATE__) == TIM_OCIDLESTATE_SET) || \ - ((__STATE__) == TIM_OCIDLESTATE_RESET)) - -#define IS_TIM_OCNIDLE_STATE(__STATE__) (((__STATE__) == TIM_OCNIDLESTATE_SET) || \ - ((__STATE__) == TIM_OCNIDLESTATE_RESET)) - -#define IS_TIM_ENCODERINPUT_POLARITY(__POLARITY__) (((__POLARITY__) == TIM_ENCODERINPUTPOLARITY_RISING) || \ - ((__POLARITY__) == TIM_ENCODERINPUTPOLARITY_FALLING)) - -#define IS_TIM_IC_POLARITY(__POLARITY__) (((__POLARITY__) == TIM_ICPOLARITY_RISING) || \ - ((__POLARITY__) == TIM_ICPOLARITY_FALLING) || \ - ((__POLARITY__) == TIM_ICPOLARITY_BOTHEDGE)) - -#define IS_TIM_IC_SELECTION(__SELECTION__) (((__SELECTION__) == TIM_ICSELECTION_DIRECTTI) || \ - ((__SELECTION__) == TIM_ICSELECTION_INDIRECTTI) || \ - ((__SELECTION__) == TIM_ICSELECTION_TRC)) - -#define IS_TIM_IC_PRESCALER(__PRESCALER__) (((__PRESCALER__) == TIM_ICPSC_DIV1) || \ - ((__PRESCALER__) == TIM_ICPSC_DIV2) || \ - ((__PRESCALER__) == TIM_ICPSC_DIV4) || \ - ((__PRESCALER__) == TIM_ICPSC_DIV8)) - -#define IS_TIM_OPM_MODE(__MODE__) (((__MODE__) == TIM_OPMODE_SINGLE) || \ - ((__MODE__) == TIM_OPMODE_REPETITIVE)) - -#define IS_TIM_ENCODER_MODE(__MODE__) (((__MODE__) == TIM_ENCODERMODE_TI1) || \ - ((__MODE__) == TIM_ENCODERMODE_TI2) || \ - ((__MODE__) == TIM_ENCODERMODE_TI12)) - -#define IS_TIM_DMA_SOURCE(__SOURCE__) ((((__SOURCE__) & 0xFFFF80FFU) == 0x00000000U) && ((__SOURCE__) != 0x00000000U)) - -#define IS_TIM_CHANNELS(__CHANNEL__) (((__CHANNEL__) == TIM_CHANNEL_1) || \ - ((__CHANNEL__) == TIM_CHANNEL_2) || \ - ((__CHANNEL__) == TIM_CHANNEL_3) || \ - ((__CHANNEL__) == TIM_CHANNEL_4) || \ - ((__CHANNEL__) == TIM_CHANNEL_5) || \ - ((__CHANNEL__) == TIM_CHANNEL_6) || \ - ((__CHANNEL__) == TIM_CHANNEL_ALL)) - -#define IS_TIM_OPM_CHANNELS(__CHANNEL__) (((__CHANNEL__) == TIM_CHANNEL_1) || \ - ((__CHANNEL__) == TIM_CHANNEL_2)) - -#define IS_TIM_PERIOD(__HANDLE__, __PERIOD__) \ - ((IS_TIM_32B_COUNTER_INSTANCE(((__HANDLE__)->Instance)) == 0U) ? (((__PERIOD__) > 0U) && ((__PERIOD__) <= 0x0000FFFFU)) : ((__PERIOD__) > 0U)) - -#define IS_TIM_COMPLEMENTARY_CHANNELS(__CHANNEL__) (((__CHANNEL__) == TIM_CHANNEL_1) || \ - ((__CHANNEL__) == TIM_CHANNEL_2) || \ - ((__CHANNEL__) == TIM_CHANNEL_3)) - -#define IS_TIM_CLOCKSOURCE(__CLOCK__) (((__CLOCK__) == TIM_CLOCKSOURCE_INTERNAL) || \ - ((__CLOCK__) == TIM_CLOCKSOURCE_ETRMODE1) || \ - ((__CLOCK__) == TIM_CLOCKSOURCE_ETRMODE2) || \ - ((__CLOCK__) == TIM_CLOCKSOURCE_TI1ED) || \ - ((__CLOCK__) == TIM_CLOCKSOURCE_TI1) || \ - ((__CLOCK__) == TIM_CLOCKSOURCE_TI2) || \ - ((__CLOCK__) == TIM_CLOCKSOURCE_ITR0) || \ - ((__CLOCK__) == TIM_CLOCKSOURCE_ITR1) || \ - ((__CLOCK__) == TIM_CLOCKSOURCE_ITR2) || \ - ((__CLOCK__) == TIM_CLOCKSOURCE_ITR3)) - -#define IS_TIM_CLOCKPOLARITY(__POLARITY__) (((__POLARITY__) == TIM_CLOCKPOLARITY_INVERTED) || \ - ((__POLARITY__) == TIM_CLOCKPOLARITY_NONINVERTED) || \ - ((__POLARITY__) == TIM_CLOCKPOLARITY_RISING) || \ - ((__POLARITY__) == TIM_CLOCKPOLARITY_FALLING) || \ - ((__POLARITY__) == TIM_CLOCKPOLARITY_BOTHEDGE)) - -#define IS_TIM_CLOCKPRESCALER(__PRESCALER__) (((__PRESCALER__) == TIM_CLOCKPRESCALER_DIV1) || \ - ((__PRESCALER__) == TIM_CLOCKPRESCALER_DIV2) || \ - ((__PRESCALER__) == TIM_CLOCKPRESCALER_DIV4) || \ - ((__PRESCALER__) == TIM_CLOCKPRESCALER_DIV8)) - -#define IS_TIM_CLOCKFILTER(__ICFILTER__) ((__ICFILTER__) <= 0xFU) - -#define IS_TIM_CLEARINPUT_POLARITY(__POLARITY__) (((__POLARITY__) == TIM_CLEARINPUTPOLARITY_INVERTED) || \ - ((__POLARITY__) == TIM_CLEARINPUTPOLARITY_NONINVERTED)) - -#define IS_TIM_CLEARINPUT_PRESCALER(__PRESCALER__) (((__PRESCALER__) == TIM_CLEARINPUTPRESCALER_DIV1) || \ - ((__PRESCALER__) == TIM_CLEARINPUTPRESCALER_DIV2) || \ - ((__PRESCALER__) == TIM_CLEARINPUTPRESCALER_DIV4) || \ - ((__PRESCALER__) == TIM_CLEARINPUTPRESCALER_DIV8)) - -#define IS_TIM_CLEARINPUT_FILTER(__ICFILTER__) ((__ICFILTER__) <= 0xFU) - -#define IS_TIM_OSSR_STATE(__STATE__) (((__STATE__) == TIM_OSSR_ENABLE) || \ - ((__STATE__) == TIM_OSSR_DISABLE)) - -#define IS_TIM_OSSI_STATE(__STATE__) (((__STATE__) == TIM_OSSI_ENABLE) || \ - ((__STATE__) == TIM_OSSI_DISABLE)) - -#define IS_TIM_LOCK_LEVEL(__LEVEL__) (((__LEVEL__) == TIM_LOCKLEVEL_OFF) || \ - ((__LEVEL__) == TIM_LOCKLEVEL_1) || \ - ((__LEVEL__) == TIM_LOCKLEVEL_2) || \ - ((__LEVEL__) == TIM_LOCKLEVEL_3)) - -#define IS_TIM_BREAK_FILTER(__BRKFILTER__) ((__BRKFILTER__) <= 0xFUL) - - -#define IS_TIM_BREAK_STATE(__STATE__) (((__STATE__) == TIM_BREAK_ENABLE) || \ - ((__STATE__) == TIM_BREAK_DISABLE)) - -#define IS_TIM_BREAK_POLARITY(__POLARITY__) (((__POLARITY__) == TIM_BREAKPOLARITY_LOW) || \ - ((__POLARITY__) == TIM_BREAKPOLARITY_HIGH)) -#if defined(TIM_BDTR_BKBID) - -#define IS_TIM_BREAK_AFMODE(__AFMODE__) (((__AFMODE__) == TIM_BREAK_AFMODE_INPUT) || \ - ((__AFMODE__) == TIM_BREAK_AFMODE_BIDIRECTIONAL)) - -#endif /* TIM_BDTR_BKBID */ - -#define IS_TIM_BREAK2_STATE(__STATE__) (((__STATE__) == TIM_BREAK2_ENABLE) || \ - ((__STATE__) == TIM_BREAK2_DISABLE)) - -#define IS_TIM_BREAK2_POLARITY(__POLARITY__) (((__POLARITY__) == TIM_BREAK2POLARITY_LOW) || \ - ((__POLARITY__) == TIM_BREAK2POLARITY_HIGH)) -#if defined(TIM_BDTR_BKBID) - -#define IS_TIM_BREAK2_AFMODE(__AFMODE__) (((__AFMODE__) == TIM_BREAK2_AFMODE_INPUT) || \ - ((__AFMODE__) == TIM_BREAK2_AFMODE_BIDIRECTIONAL)) - -#endif /* TIM_BDTR_BKBID */ - -#define IS_TIM_AUTOMATIC_OUTPUT_STATE(__STATE__) (((__STATE__) == TIM_AUTOMATICOUTPUT_ENABLE) || \ - ((__STATE__) == TIM_AUTOMATICOUTPUT_DISABLE)) - -#define IS_TIM_GROUPCH5(__OCREF__) ((((__OCREF__) & 0x1FFFFFFFU) == 0x00000000U)) - -#define IS_TIM_TRGO_SOURCE(__SOURCE__) (((__SOURCE__) == TIM_TRGO_RESET) || \ - ((__SOURCE__) == TIM_TRGO_ENABLE) || \ - ((__SOURCE__) == TIM_TRGO_UPDATE) || \ - ((__SOURCE__) == TIM_TRGO_OC1) || \ - ((__SOURCE__) == TIM_TRGO_OC1REF) || \ - ((__SOURCE__) == TIM_TRGO_OC2REF) || \ - ((__SOURCE__) == TIM_TRGO_OC3REF) || \ - ((__SOURCE__) == TIM_TRGO_OC4REF)) - -#define IS_TIM_TRGO2_SOURCE(__SOURCE__) (((__SOURCE__) == TIM_TRGO2_RESET) || \ - ((__SOURCE__) == TIM_TRGO2_ENABLE) || \ - ((__SOURCE__) == TIM_TRGO2_UPDATE) || \ - ((__SOURCE__) == TIM_TRGO2_OC1) || \ - ((__SOURCE__) == TIM_TRGO2_OC1REF) || \ - ((__SOURCE__) == TIM_TRGO2_OC2REF) || \ - ((__SOURCE__) == TIM_TRGO2_OC3REF) || \ - ((__SOURCE__) == TIM_TRGO2_OC3REF) || \ - ((__SOURCE__) == TIM_TRGO2_OC4REF) || \ - ((__SOURCE__) == TIM_TRGO2_OC5REF) || \ - ((__SOURCE__) == TIM_TRGO2_OC6REF) || \ - ((__SOURCE__) == TIM_TRGO2_OC4REF_RISINGFALLING) || \ - ((__SOURCE__) == TIM_TRGO2_OC6REF_RISINGFALLING) || \ - ((__SOURCE__) == TIM_TRGO2_OC4REF_RISING_OC6REF_RISING) || \ - ((__SOURCE__) == TIM_TRGO2_OC4REF_RISING_OC6REF_FALLING) || \ - ((__SOURCE__) == TIM_TRGO2_OC5REF_RISING_OC6REF_RISING) || \ - ((__SOURCE__) == TIM_TRGO2_OC5REF_RISING_OC6REF_FALLING)) - -#define IS_TIM_MSM_STATE(__STATE__) (((__STATE__) == TIM_MASTERSLAVEMODE_ENABLE) || \ - ((__STATE__) == TIM_MASTERSLAVEMODE_DISABLE)) - -#define IS_TIM_SLAVE_MODE(__MODE__) (((__MODE__) == TIM_SLAVEMODE_DISABLE) || \ - ((__MODE__) == TIM_SLAVEMODE_RESET) || \ - ((__MODE__) == TIM_SLAVEMODE_GATED) || \ - ((__MODE__) == TIM_SLAVEMODE_TRIGGER) || \ - ((__MODE__) == TIM_SLAVEMODE_EXTERNAL1) || \ - ((__MODE__) == TIM_SLAVEMODE_COMBINED_RESETTRIGGER)) - -#define IS_TIM_PWM_MODE(__MODE__) (((__MODE__) == TIM_OCMODE_PWM1) || \ - ((__MODE__) == TIM_OCMODE_PWM2) || \ - ((__MODE__) == TIM_OCMODE_COMBINED_PWM1) || \ - ((__MODE__) == TIM_OCMODE_COMBINED_PWM2) || \ - ((__MODE__) == TIM_OCMODE_ASSYMETRIC_PWM1) || \ - ((__MODE__) == TIM_OCMODE_ASSYMETRIC_PWM2)) - -#define IS_TIM_OC_MODE(__MODE__) (((__MODE__) == TIM_OCMODE_TIMING) || \ - ((__MODE__) == TIM_OCMODE_ACTIVE) || \ - ((__MODE__) == TIM_OCMODE_INACTIVE) || \ - ((__MODE__) == TIM_OCMODE_TOGGLE) || \ - ((__MODE__) == TIM_OCMODE_FORCED_ACTIVE) || \ - ((__MODE__) == TIM_OCMODE_FORCED_INACTIVE) || \ - ((__MODE__) == TIM_OCMODE_RETRIGERRABLE_OPM1) || \ - ((__MODE__) == TIM_OCMODE_RETRIGERRABLE_OPM2)) - -#define IS_TIM_TRIGGER_SELECTION(__SELECTION__) (((__SELECTION__) == TIM_TS_ITR0) || \ - ((__SELECTION__) == TIM_TS_ITR1) || \ - ((__SELECTION__) == TIM_TS_ITR2) || \ - ((__SELECTION__) == TIM_TS_ITR3) || \ - ((__SELECTION__) == TIM_TS_ITR4) || \ - ((__SELECTION__) == TIM_TS_ITR5) || \ - ((__SELECTION__) == TIM_TS_ITR6) || \ - ((__SELECTION__) == TIM_TS_ITR7) || \ - ((__SELECTION__) == TIM_TS_ITR8) || \ - ((__SELECTION__) == TIM_TS_ITR12) || \ - ((__SELECTION__) == TIM_TS_ITR13) || \ - ((__SELECTION__) == TIM_TS_TI1F_ED) || \ - ((__SELECTION__) == TIM_TS_TI1FP1) || \ - ((__SELECTION__) == TIM_TS_TI2FP2) || \ - ((__SELECTION__) == TIM_TS_ETRF)) - -#define IS_TIM_INTERNAL_TRIGGEREVENT_SELECTION(__SELECTION__) (((__SELECTION__) == TIM_TS_ITR0) || \ - ((__SELECTION__) == TIM_TS_ITR1) || \ - ((__SELECTION__) == TIM_TS_ITR2) || \ - ((__SELECTION__) == TIM_TS_ITR3) || \ - ((__SELECTION__) == TIM_TS_ITR4) || \ - ((__SELECTION__) == TIM_TS_ITR5) || \ - ((__SELECTION__) == TIM_TS_ITR6) || \ - ((__SELECTION__) == TIM_TS_ITR7) || \ - ((__SELECTION__) == TIM_TS_ITR8) || \ - ((__SELECTION__) == TIM_TS_ITR12) || \ - ((__SELECTION__) == TIM_TS_ITR13) || \ - ((__SELECTION__) == TIM_TS_NONE)) - -#define IS_TIM_TRIGGERPOLARITY(__POLARITY__) (((__POLARITY__) == TIM_TRIGGERPOLARITY_INVERTED ) || \ - ((__POLARITY__) == TIM_TRIGGERPOLARITY_NONINVERTED) || \ - ((__POLARITY__) == TIM_TRIGGERPOLARITY_RISING ) || \ - ((__POLARITY__) == TIM_TRIGGERPOLARITY_FALLING ) || \ - ((__POLARITY__) == TIM_TRIGGERPOLARITY_BOTHEDGE )) - -#define IS_TIM_TRIGGERPRESCALER(__PRESCALER__) (((__PRESCALER__) == TIM_TRIGGERPRESCALER_DIV1) || \ - ((__PRESCALER__) == TIM_TRIGGERPRESCALER_DIV2) || \ - ((__PRESCALER__) == TIM_TRIGGERPRESCALER_DIV4) || \ - ((__PRESCALER__) == TIM_TRIGGERPRESCALER_DIV8)) - -#define IS_TIM_TRIGGERFILTER(__ICFILTER__) ((__ICFILTER__) <= 0xFU) - -#define IS_TIM_TI1SELECTION(__TI1SELECTION__) (((__TI1SELECTION__) == TIM_TI1SELECTION_CH1) || \ - ((__TI1SELECTION__) == TIM_TI1SELECTION_XORCOMBINATION)) - -#define IS_TIM_DMA_LENGTH(__LENGTH__) (((__LENGTH__) == TIM_DMABURSTLENGTH_1TRANSFER) || \ - ((__LENGTH__) == TIM_DMABURSTLENGTH_2TRANSFERS) || \ - ((__LENGTH__) == TIM_DMABURSTLENGTH_3TRANSFERS) || \ - ((__LENGTH__) == TIM_DMABURSTLENGTH_4TRANSFERS) || \ - ((__LENGTH__) == TIM_DMABURSTLENGTH_5TRANSFERS) || \ - ((__LENGTH__) == TIM_DMABURSTLENGTH_6TRANSFERS) || \ - ((__LENGTH__) == TIM_DMABURSTLENGTH_7TRANSFERS) || \ - ((__LENGTH__) == TIM_DMABURSTLENGTH_8TRANSFERS) || \ - ((__LENGTH__) == TIM_DMABURSTLENGTH_9TRANSFERS) || \ - ((__LENGTH__) == TIM_DMABURSTLENGTH_10TRANSFERS) || \ - ((__LENGTH__) == TIM_DMABURSTLENGTH_11TRANSFERS) || \ - ((__LENGTH__) == TIM_DMABURSTLENGTH_12TRANSFERS) || \ - ((__LENGTH__) == TIM_DMABURSTLENGTH_13TRANSFERS) || \ - ((__LENGTH__) == TIM_DMABURSTLENGTH_14TRANSFERS) || \ - ((__LENGTH__) == TIM_DMABURSTLENGTH_15TRANSFERS) || \ - ((__LENGTH__) == TIM_DMABURSTLENGTH_16TRANSFERS) || \ - ((__LENGTH__) == TIM_DMABURSTLENGTH_17TRANSFERS) || \ - ((__LENGTH__) == TIM_DMABURSTLENGTH_18TRANSFERS)) - -#define IS_TIM_DMA_DATA_LENGTH(LENGTH) (((LENGTH) >= 0x1U) && ((LENGTH) < 0x10000U)) - -#define IS_TIM_IC_FILTER(__ICFILTER__) ((__ICFILTER__) <= 0xFU) - -#define IS_TIM_DEADTIME(__DEADTIME__) ((__DEADTIME__) <= 0xFFU) - -#define IS_TIM_BREAK_SYSTEM(__CONFIG__) (((__CONFIG__) == TIM_BREAK_SYSTEM_ECC) || \ - ((__CONFIG__) == TIM_BREAK_SYSTEM_PVD) || \ - ((__CONFIG__) == TIM_BREAK_SYSTEM_SRAM_PARITY_ERROR) || \ - ((__CONFIG__) == TIM_BREAK_SYSTEM_LOCKUP)) - -#define IS_TIM_SLAVEMODE_TRIGGER_ENABLED(__TRIGGER__) (((__TRIGGER__) == TIM_SLAVEMODE_TRIGGER) || \ - ((__TRIGGER__) == TIM_SLAVEMODE_COMBINED_RESETTRIGGER)) - -#define TIM_SET_ICPRESCALERVALUE(__HANDLE__, __CHANNEL__, __ICPSC__) \ - (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCMR1 |= (__ICPSC__)) :\ - ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->Instance->CCMR1 |= ((__ICPSC__) << 8U)) :\ - ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->Instance->CCMR2 |= (__ICPSC__)) :\ - ((__HANDLE__)->Instance->CCMR2 |= ((__ICPSC__) << 8U))) - -#define TIM_RESET_ICPRESCALERVALUE(__HANDLE__, __CHANNEL__) \ - (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCMR1 &= ~TIM_CCMR1_IC1PSC) :\ - ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->Instance->CCMR1 &= ~TIM_CCMR1_IC2PSC) :\ - ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->Instance->CCMR2 &= ~TIM_CCMR2_IC3PSC) :\ - ((__HANDLE__)->Instance->CCMR2 &= ~TIM_CCMR2_IC4PSC)) - -#define TIM_SET_CAPTUREPOLARITY(__HANDLE__, __CHANNEL__, __POLARITY__) \ - (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCER |= (__POLARITY__)) :\ - ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->Instance->CCER |= ((__POLARITY__) << 4U)) :\ - ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->Instance->CCER |= ((__POLARITY__) << 8U)) :\ - ((__HANDLE__)->Instance->CCER |= (((__POLARITY__) << 12U)))) - -#define TIM_RESET_CAPTUREPOLARITY(__HANDLE__, __CHANNEL__) \ - (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCER &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP)) :\ - ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->Instance->CCER &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP)) :\ - ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->Instance->CCER &= ~(TIM_CCER_CC3P | TIM_CCER_CC3NP)) :\ - ((__HANDLE__)->Instance->CCER &= ~(TIM_CCER_CC4P | TIM_CCER_CC4NP))) - -#define TIM_CHANNEL_STATE_GET(__HANDLE__, __CHANNEL__)\ - (((__CHANNEL__) == TIM_CHANNEL_1) ? (__HANDLE__)->ChannelState[0] :\ - ((__CHANNEL__) == TIM_CHANNEL_2) ? (__HANDLE__)->ChannelState[1] :\ - ((__CHANNEL__) == TIM_CHANNEL_3) ? (__HANDLE__)->ChannelState[2] :\ - ((__CHANNEL__) == TIM_CHANNEL_4) ? (__HANDLE__)->ChannelState[3] :\ - ((__CHANNEL__) == TIM_CHANNEL_5) ? (__HANDLE__)->ChannelState[4] :\ - (__HANDLE__)->ChannelState[5]) - -#define TIM_CHANNEL_STATE_SET(__HANDLE__, __CHANNEL__, __CHANNEL_STATE__) \ - (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->ChannelState[0] = (__CHANNEL_STATE__)) :\ - ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->ChannelState[1] = (__CHANNEL_STATE__)) :\ - ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->ChannelState[2] = (__CHANNEL_STATE__)) :\ - ((__CHANNEL__) == TIM_CHANNEL_4) ? ((__HANDLE__)->ChannelState[3] = (__CHANNEL_STATE__)) :\ - ((__CHANNEL__) == TIM_CHANNEL_5) ? ((__HANDLE__)->ChannelState[4] = (__CHANNEL_STATE__)) :\ - ((__HANDLE__)->ChannelState[5] = (__CHANNEL_STATE__))) - -#define TIM_CHANNEL_STATE_SET_ALL(__HANDLE__, __CHANNEL_STATE__) do { \ - (__HANDLE__)->ChannelState[0] = \ - (__CHANNEL_STATE__); \ - (__HANDLE__)->ChannelState[1] = \ - (__CHANNEL_STATE__); \ - (__HANDLE__)->ChannelState[2] = \ - (__CHANNEL_STATE__); \ - (__HANDLE__)->ChannelState[3] = \ - (__CHANNEL_STATE__); \ - (__HANDLE__)->ChannelState[4] = \ - (__CHANNEL_STATE__); \ - (__HANDLE__)->ChannelState[5] = \ - (__CHANNEL_STATE__); \ - } while(0) - -#define TIM_CHANNEL_N_STATE_GET(__HANDLE__, __CHANNEL__)\ - (((__CHANNEL__) == TIM_CHANNEL_1) ? (__HANDLE__)->ChannelNState[0] :\ - ((__CHANNEL__) == TIM_CHANNEL_2) ? (__HANDLE__)->ChannelNState[1] :\ - ((__CHANNEL__) == TIM_CHANNEL_3) ? (__HANDLE__)->ChannelNState[2] :\ - (__HANDLE__)->ChannelNState[3]) - -#define TIM_CHANNEL_N_STATE_SET(__HANDLE__, __CHANNEL__, __CHANNEL_STATE__) \ - (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->ChannelNState[0] = (__CHANNEL_STATE__)) :\ - ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->ChannelNState[1] = (__CHANNEL_STATE__)) :\ - ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->ChannelNState[2] = (__CHANNEL_STATE__)) :\ - ((__HANDLE__)->ChannelNState[3] = (__CHANNEL_STATE__))) - -#define TIM_CHANNEL_N_STATE_SET_ALL(__HANDLE__, __CHANNEL_STATE__) do { \ - (__HANDLE__)->ChannelNState[0] = \ - (__CHANNEL_STATE__); \ - (__HANDLE__)->ChannelNState[1] = \ - (__CHANNEL_STATE__); \ - (__HANDLE__)->ChannelNState[2] = \ - (__CHANNEL_STATE__); \ - (__HANDLE__)->ChannelNState[3] = \ - (__CHANNEL_STATE__); \ - } while(0) - -/** - * @} - */ -/* End of private macros -----------------------------------------------------*/ - -/* Include TIM HAL Extended module */ -#include "stm32h7xx_hal_tim_ex.h" - -/* Exported functions --------------------------------------------------------*/ -/** @addtogroup TIM_Exported_Functions TIM Exported Functions - * @{ - */ - -/** @addtogroup TIM_Exported_Functions_Group1 TIM Time Base functions - * @brief Time Base functions - * @{ - */ -/* Time Base functions ********************************************************/ -HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim); -HAL_StatusTypeDef HAL_TIM_Base_DeInit(TIM_HandleTypeDef *htim); -void HAL_TIM_Base_MspInit(TIM_HandleTypeDef *htim); -void HAL_TIM_Base_MspDeInit(TIM_HandleTypeDef *htim); -/* Blocking mode: Polling */ -HAL_StatusTypeDef HAL_TIM_Base_Start(TIM_HandleTypeDef *htim); -HAL_StatusTypeDef HAL_TIM_Base_Stop(TIM_HandleTypeDef *htim); -/* Non-Blocking mode: Interrupt */ -HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim); -HAL_StatusTypeDef HAL_TIM_Base_Stop_IT(TIM_HandleTypeDef *htim); -/* Non-Blocking mode: DMA */ -HAL_StatusTypeDef HAL_TIM_Base_Start_DMA(TIM_HandleTypeDef *htim, const uint32_t *pData, uint16_t Length); -HAL_StatusTypeDef HAL_TIM_Base_Stop_DMA(TIM_HandleTypeDef *htim); -/** - * @} - */ - -/** @addtogroup TIM_Exported_Functions_Group2 TIM Output Compare functions - * @brief TIM Output Compare functions - * @{ - */ -/* Timer Output Compare functions *********************************************/ -HAL_StatusTypeDef HAL_TIM_OC_Init(TIM_HandleTypeDef *htim); -HAL_StatusTypeDef HAL_TIM_OC_DeInit(TIM_HandleTypeDef *htim); -void HAL_TIM_OC_MspInit(TIM_HandleTypeDef *htim); -void HAL_TIM_OC_MspDeInit(TIM_HandleTypeDef *htim); -/* Blocking mode: Polling */ -HAL_StatusTypeDef HAL_TIM_OC_Start(TIM_HandleTypeDef *htim, uint32_t Channel); -HAL_StatusTypeDef HAL_TIM_OC_Stop(TIM_HandleTypeDef *htim, uint32_t Channel); -/* Non-Blocking mode: Interrupt */ -HAL_StatusTypeDef HAL_TIM_OC_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel); -HAL_StatusTypeDef HAL_TIM_OC_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel); -/* Non-Blocking mode: DMA */ -HAL_StatusTypeDef HAL_TIM_OC_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, const uint32_t *pData, - uint16_t Length); -HAL_StatusTypeDef HAL_TIM_OC_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel); -/** - * @} - */ - -/** @addtogroup TIM_Exported_Functions_Group3 TIM PWM functions - * @brief TIM PWM functions - * @{ - */ -/* Timer PWM functions ********************************************************/ -HAL_StatusTypeDef HAL_TIM_PWM_Init(TIM_HandleTypeDef *htim); -HAL_StatusTypeDef HAL_TIM_PWM_DeInit(TIM_HandleTypeDef *htim); -void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef *htim); -void HAL_TIM_PWM_MspDeInit(TIM_HandleTypeDef *htim); -/* Blocking mode: Polling */ -HAL_StatusTypeDef HAL_TIM_PWM_Start(TIM_HandleTypeDef *htim, uint32_t Channel); -HAL_StatusTypeDef HAL_TIM_PWM_Stop(TIM_HandleTypeDef *htim, uint32_t Channel); -/* Non-Blocking mode: Interrupt */ -HAL_StatusTypeDef HAL_TIM_PWM_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel); -HAL_StatusTypeDef HAL_TIM_PWM_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel); -/* Non-Blocking mode: DMA */ -HAL_StatusTypeDef HAL_TIM_PWM_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, const uint32_t *pData, - uint16_t Length); -HAL_StatusTypeDef HAL_TIM_PWM_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel); -/** - * @} - */ - -/** @addtogroup TIM_Exported_Functions_Group4 TIM Input Capture functions - * @brief TIM Input Capture functions - * @{ - */ -/* Timer Input Capture functions **********************************************/ -HAL_StatusTypeDef HAL_TIM_IC_Init(TIM_HandleTypeDef *htim); -HAL_StatusTypeDef HAL_TIM_IC_DeInit(TIM_HandleTypeDef *htim); -void HAL_TIM_IC_MspInit(TIM_HandleTypeDef *htim); -void HAL_TIM_IC_MspDeInit(TIM_HandleTypeDef *htim); -/* Blocking mode: Polling */ -HAL_StatusTypeDef HAL_TIM_IC_Start(TIM_HandleTypeDef *htim, uint32_t Channel); -HAL_StatusTypeDef HAL_TIM_IC_Stop(TIM_HandleTypeDef *htim, uint32_t Channel); -/* Non-Blocking mode: Interrupt */ -HAL_StatusTypeDef HAL_TIM_IC_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel); -HAL_StatusTypeDef HAL_TIM_IC_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel); -/* Non-Blocking mode: DMA */ -HAL_StatusTypeDef HAL_TIM_IC_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData, uint16_t Length); -HAL_StatusTypeDef HAL_TIM_IC_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel); -/** - * @} - */ - -/** @addtogroup TIM_Exported_Functions_Group5 TIM One Pulse functions - * @brief TIM One Pulse functions - * @{ - */ -/* Timer One Pulse functions **************************************************/ -HAL_StatusTypeDef HAL_TIM_OnePulse_Init(TIM_HandleTypeDef *htim, uint32_t OnePulseMode); -HAL_StatusTypeDef HAL_TIM_OnePulse_DeInit(TIM_HandleTypeDef *htim); -void HAL_TIM_OnePulse_MspInit(TIM_HandleTypeDef *htim); -void HAL_TIM_OnePulse_MspDeInit(TIM_HandleTypeDef *htim); -/* Blocking mode: Polling */ -HAL_StatusTypeDef HAL_TIM_OnePulse_Start(TIM_HandleTypeDef *htim, uint32_t OutputChannel); -HAL_StatusTypeDef HAL_TIM_OnePulse_Stop(TIM_HandleTypeDef *htim, uint32_t OutputChannel); -/* Non-Blocking mode: Interrupt */ -HAL_StatusTypeDef HAL_TIM_OnePulse_Start_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel); -HAL_StatusTypeDef HAL_TIM_OnePulse_Stop_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel); -/** - * @} - */ - -/** @addtogroup TIM_Exported_Functions_Group6 TIM Encoder functions - * @brief TIM Encoder functions - * @{ - */ -/* Timer Encoder functions ****************************************************/ -HAL_StatusTypeDef HAL_TIM_Encoder_Init(TIM_HandleTypeDef *htim, TIM_Encoder_InitTypeDef *sConfig); -HAL_StatusTypeDef HAL_TIM_Encoder_DeInit(TIM_HandleTypeDef *htim); -void HAL_TIM_Encoder_MspInit(TIM_HandleTypeDef *htim); -void HAL_TIM_Encoder_MspDeInit(TIM_HandleTypeDef *htim); -/* Blocking mode: Polling */ -HAL_StatusTypeDef HAL_TIM_Encoder_Start(TIM_HandleTypeDef *htim, uint32_t Channel); -HAL_StatusTypeDef HAL_TIM_Encoder_Stop(TIM_HandleTypeDef *htim, uint32_t Channel); -/* Non-Blocking mode: Interrupt */ -HAL_StatusTypeDef HAL_TIM_Encoder_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel); -HAL_StatusTypeDef HAL_TIM_Encoder_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel); -/* Non-Blocking mode: DMA */ -HAL_StatusTypeDef HAL_TIM_Encoder_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData1, - uint32_t *pData2, uint16_t Length); -HAL_StatusTypeDef HAL_TIM_Encoder_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel); -/** - * @} - */ - -/** @addtogroup TIM_Exported_Functions_Group7 TIM IRQ handler management - * @brief IRQ handler management - * @{ - */ -/* Interrupt Handler functions ***********************************************/ -void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim); -/** - * @} - */ - -/** @defgroup TIM_Exported_Functions_Group8 TIM Peripheral Control functions - * @brief Peripheral Control functions - * @{ - */ -/* Control functions *********************************************************/ -HAL_StatusTypeDef HAL_TIM_OC_ConfigChannel(TIM_HandleTypeDef *htim, const TIM_OC_InitTypeDef *sConfig, - uint32_t Channel); -HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel(TIM_HandleTypeDef *htim, const TIM_OC_InitTypeDef *sConfig, - uint32_t Channel); -HAL_StatusTypeDef HAL_TIM_IC_ConfigChannel(TIM_HandleTypeDef *htim, const TIM_IC_InitTypeDef *sConfig, - uint32_t Channel); -HAL_StatusTypeDef HAL_TIM_OnePulse_ConfigChannel(TIM_HandleTypeDef *htim, TIM_OnePulse_InitTypeDef *sConfig, - uint32_t OutputChannel, uint32_t InputChannel); -HAL_StatusTypeDef HAL_TIM_ConfigOCrefClear(TIM_HandleTypeDef *htim, - const TIM_ClearInputConfigTypeDef *sClearInputConfig, - uint32_t Channel); -HAL_StatusTypeDef HAL_TIM_ConfigClockSource(TIM_HandleTypeDef *htim, const TIM_ClockConfigTypeDef *sClockSourceConfig); -HAL_StatusTypeDef HAL_TIM_ConfigTI1Input(TIM_HandleTypeDef *htim, uint32_t TI1_Selection); -HAL_StatusTypeDef HAL_TIM_SlaveConfigSynchro(TIM_HandleTypeDef *htim, const TIM_SlaveConfigTypeDef *sSlaveConfig); -HAL_StatusTypeDef HAL_TIM_SlaveConfigSynchro_IT(TIM_HandleTypeDef *htim, const TIM_SlaveConfigTypeDef *sSlaveConfig); -HAL_StatusTypeDef HAL_TIM_DMABurst_WriteStart(TIM_HandleTypeDef *htim, uint32_t BurstBaseAddress, - uint32_t BurstRequestSrc, const uint32_t *BurstBuffer, uint32_t BurstLength); -HAL_StatusTypeDef HAL_TIM_DMABurst_MultiWriteStart(TIM_HandleTypeDef *htim, uint32_t BurstBaseAddress, - uint32_t BurstRequestSrc, const uint32_t *BurstBuffer, - uint32_t BurstLength, uint32_t DataLength); -HAL_StatusTypeDef HAL_TIM_DMABurst_WriteStop(TIM_HandleTypeDef *htim, uint32_t BurstRequestSrc); -HAL_StatusTypeDef HAL_TIM_DMABurst_ReadStart(TIM_HandleTypeDef *htim, uint32_t BurstBaseAddress, - uint32_t BurstRequestSrc, uint32_t *BurstBuffer, uint32_t BurstLength); -HAL_StatusTypeDef HAL_TIM_DMABurst_MultiReadStart(TIM_HandleTypeDef *htim, uint32_t BurstBaseAddress, - uint32_t BurstRequestSrc, uint32_t *BurstBuffer, - uint32_t BurstLength, uint32_t DataLength); -HAL_StatusTypeDef HAL_TIM_DMABurst_ReadStop(TIM_HandleTypeDef *htim, uint32_t BurstRequestSrc); -HAL_StatusTypeDef HAL_TIM_GenerateEvent(TIM_HandleTypeDef *htim, uint32_t EventSource); -uint32_t HAL_TIM_ReadCapturedValue(const TIM_HandleTypeDef *htim, uint32_t Channel); -/** - * @} - */ - -/** @defgroup TIM_Exported_Functions_Group9 TIM Callbacks functions - * @brief TIM Callbacks functions - * @{ - */ -/* Callback in non blocking modes (Interrupt and DMA) *************************/ -void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim); -void HAL_TIM_PeriodElapsedHalfCpltCallback(TIM_HandleTypeDef *htim); -void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim); -void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim); -void HAL_TIM_IC_CaptureHalfCpltCallback(TIM_HandleTypeDef *htim); -void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim); -void HAL_TIM_PWM_PulseFinishedHalfCpltCallback(TIM_HandleTypeDef *htim); -void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim); -void HAL_TIM_TriggerHalfCpltCallback(TIM_HandleTypeDef *htim); -void HAL_TIM_ErrorCallback(TIM_HandleTypeDef *htim); - -/* Callbacks Register/UnRegister functions ***********************************/ -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) -HAL_StatusTypeDef HAL_TIM_RegisterCallback(TIM_HandleTypeDef *htim, HAL_TIM_CallbackIDTypeDef CallbackID, - pTIM_CallbackTypeDef pCallback); -HAL_StatusTypeDef HAL_TIM_UnRegisterCallback(TIM_HandleTypeDef *htim, HAL_TIM_CallbackIDTypeDef CallbackID); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - -/** - * @} - */ - -/** @defgroup TIM_Exported_Functions_Group10 TIM Peripheral State functions - * @brief Peripheral State functions - * @{ - */ -/* Peripheral State functions ************************************************/ -HAL_TIM_StateTypeDef HAL_TIM_Base_GetState(const TIM_HandleTypeDef *htim); -HAL_TIM_StateTypeDef HAL_TIM_OC_GetState(const TIM_HandleTypeDef *htim); -HAL_TIM_StateTypeDef HAL_TIM_PWM_GetState(const TIM_HandleTypeDef *htim); -HAL_TIM_StateTypeDef HAL_TIM_IC_GetState(const TIM_HandleTypeDef *htim); -HAL_TIM_StateTypeDef HAL_TIM_OnePulse_GetState(const TIM_HandleTypeDef *htim); -HAL_TIM_StateTypeDef HAL_TIM_Encoder_GetState(const TIM_HandleTypeDef *htim); - -/* Peripheral Channel state functions ************************************************/ -HAL_TIM_ActiveChannel HAL_TIM_GetActiveChannel(const TIM_HandleTypeDef *htim); -HAL_TIM_ChannelStateTypeDef HAL_TIM_GetChannelState(const TIM_HandleTypeDef *htim, uint32_t Channel); -HAL_TIM_DMABurstStateTypeDef HAL_TIM_DMABurstState(const TIM_HandleTypeDef *htim); -/** - * @} - */ - -/** - * @} - */ -/* End of exported functions -------------------------------------------------*/ - -/* Private functions----------------------------------------------------------*/ -/** @defgroup TIM_Private_Functions TIM Private Functions - * @{ - */ -void TIM_Base_SetConfig(TIM_TypeDef *TIMx, const TIM_Base_InitTypeDef *Structure); -void TIM_TI1_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, uint32_t TIM_ICFilter); -void TIM_OC2_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config); -void TIM_ETR_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ExtTRGPrescaler, - uint32_t TIM_ExtTRGPolarity, uint32_t ExtTRGFilter); - -void TIM_DMADelayPulseHalfCplt(DMA_HandleTypeDef *hdma); -void TIM_DMAError(DMA_HandleTypeDef *hdma); -void TIM_DMACaptureCplt(DMA_HandleTypeDef *hdma); -void TIM_DMACaptureHalfCplt(DMA_HandleTypeDef *hdma); -void TIM_CCxChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelState); - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) -void TIM_ResetCallback(TIM_HandleTypeDef *htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - -/** - * @} - */ -/* End of private functions --------------------------------------------------*/ - -/** - * @} - */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_HAL_TIM_H */ diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h deleted file mode 100644 index ebad016..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h +++ /dev/null @@ -1,533 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_tim_ex.h - * @author MCD Application Team - * @brief Header file of TIM HAL Extended module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_HAL_TIM_EX_H -#define STM32H7xx_HAL_TIM_EX_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal_def.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @addtogroup TIMEx - * @{ - */ - -/* Exported types ------------------------------------------------------------*/ -/** @defgroup TIMEx_Exported_Types TIM Extended Exported Types - * @{ - */ - -/** - * @brief TIM Hall sensor Configuration Structure definition - */ - -typedef struct -{ - uint32_t IC1Polarity; /*!< Specifies the active edge of the input signal. - This parameter can be a value of @ref TIM_Input_Capture_Polarity */ - - uint32_t IC1Prescaler; /*!< Specifies the Input Capture Prescaler. - This parameter can be a value of @ref TIM_Input_Capture_Prescaler */ - - uint32_t IC1Filter; /*!< Specifies the input capture filter. - This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF */ - - uint32_t Commutation_Delay; /*!< Specifies the pulse value to be loaded into the Capture Compare Register. - This parameter can be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF */ -} TIM_HallSensor_InitTypeDef; -#if defined(TIM_BREAK_INPUT_SUPPORT) - -/** - * @brief TIM Break/Break2 input configuration - */ -typedef struct -{ - uint32_t Source; /*!< Specifies the source of the timer break input. - This parameter can be a value of @ref TIMEx_Break_Input_Source */ - uint32_t Enable; /*!< Specifies whether or not the break input source is enabled. - This parameter can be a value of @ref TIMEx_Break_Input_Source_Enable */ - uint32_t Polarity; /*!< Specifies the break input source polarity. - This parameter can be a value of @ref TIMEx_Break_Input_Source_Polarity - Not relevant when analog watchdog output of the DFSDM1 used as break input source */ -} TIMEx_BreakInputConfigTypeDef; - -#endif /* TIM_BREAK_INPUT_SUPPORT */ -/** - * @} - */ -/* End of exported types -----------------------------------------------------*/ - -/* Exported constants --------------------------------------------------------*/ -/** @defgroup TIMEx_Exported_Constants TIM Extended Exported Constants - * @{ - */ - -/** @defgroup TIMEx_Remap TIM Extended Remapping - * @{ - */ -#define TIM_TIM1_ETR_GPIO 0x00000000U /*!< TIM1_ETR is connected to GPIO */ -#define TIM_TIM1_ETR_COMP1 TIM1_AF1_ETRSEL_0 /*!< TIM1_ETR is connected to COMP1 OUT */ -#define TIM_TIM1_ETR_COMP2 TIM1_AF1_ETRSEL_1 /*!< TIM1_ETR is connected to COMP2 OUT */ -#define TIM_TIM1_ETR_ADC1_AWD1 (TIM1_AF1_ETRSEL_1 | TIM1_AF1_ETRSEL_0) /*!< TIM1_ETR is connected to ADC1 AWD1 */ -#define TIM_TIM1_ETR_ADC1_AWD2 (TIM1_AF1_ETRSEL_2) /*!< TIM1_ETR is connected to ADC1 AWD2 */ -#define TIM_TIM1_ETR_ADC1_AWD3 (TIM1_AF1_ETRSEL_2 | TIM1_AF1_ETRSEL_0) /*!< TIM1_ETR is connected to ADC1 AWD3 */ -#define TIM_TIM1_ETR_ADC3_AWD1 (TIM1_AF1_ETRSEL_2 | TIM1_AF1_ETRSEL_1) /*!< TIM1_ETR is connected to ADC3 AWD1 */ -#define TIM_TIM1_ETR_ADC3_AWD2 (TIM1_AF1_ETRSEL_2 | TIM1_AF1_ETRSEL_1 | TIM1_AF1_ETRSEL_0) /*!< TIM1_ETR is connected to ADC3 AWD2 */ -#define TIM_TIM1_ETR_ADC3_AWD3 TIM1_AF1_ETRSEL_3 /*!< TIM1_ETR is connected to ADC3 AWD3 */ - -#define TIM_TIM8_ETR_GPIO 0x00000000U /*!< TIM8_ETR is connected to GPIO */ -#define TIM_TIM8_ETR_COMP1 TIM8_AF1_ETRSEL_0 /*!< TIM8_ETR is connected to COMP1 OUT */ -#define TIM_TIM8_ETR_COMP2 TIM8_AF1_ETRSEL_1 /*!< TIM8_ETR is connected to COMP2 OUT */ -#define TIM_TIM8_ETR_ADC2_AWD1 (TIM8_AF1_ETRSEL_1 | TIM8_AF1_ETRSEL_0) /*!< TIM8_ETR is connected to ADC2 AWD1 */ -#define TIM_TIM8_ETR_ADC2_AWD2 (TIM8_AF1_ETRSEL_2) /*!< TIM8_ETR is connected to ADC2 AWD2 */ -#define TIM_TIM8_ETR_ADC2_AWD3 (TIM8_AF1_ETRSEL_2 | TIM8_AF1_ETRSEL_0) /*!< TIM8_ETR is connected to ADC2 AWD3 */ -#define TIM_TIM8_ETR_ADC3_AWD1 (TIM8_AF1_ETRSEL_2 | TIM8_AF1_ETRSEL_1) /*!< TIM8_ETR is connected to ADC3 AWD1 */ -#define TIM_TIM8_ETR_ADC3_AWD2 (TIM8_AF1_ETRSEL_2 | TIM8_AF1_ETRSEL_1 | TIM8_AF1_ETRSEL_0) /*!< TIM8_ETR is connected to ADC3 AWD2 */ -#define TIM_TIM8_ETR_ADC3_AWD3 TIM8_AF1_ETRSEL_3 /*!< TIM8_ETR is connected to ADC3 AWD3 */ - -#define TIM_TIM2_ETR_GPIO 0x00000000U /*!< TIM2_ETR is connected to GPIO */ -#define TIM_TIM2_ETR_COMP1 (TIM2_AF1_ETRSEL_0) /*!< TIM2_ETR is connected to COMP1 OUT */ -#define TIM_TIM2_ETR_COMP2 (TIM2_AF1_ETRSEL_1) /*!< TIM2_ETR is connected to COMP2 OUT */ -#define TIM_TIM2_ETR_RCC_LSE (TIM2_AF1_ETRSEL_1 | TIM8_AF1_ETRSEL_0) /*!< TIM2_ETR is connected to RCC LSE */ -#define TIM_TIM2_ETR_SAI1_FSA TIM2_AF1_ETRSEL_2 /*!< TIM2_ETR is connected to SAI1 FS_A */ -#define TIM_TIM2_ETR_SAI1_FSB (TIM2_AF1_ETRSEL_2 | TIM8_AF1_ETRSEL_0) /*!< TIM2_ETR is connected to SAI1 FS_B */ - -#define TIM_TIM3_ETR_GPIO 0x00000000U /*!< TIM3_ETR is connected to GPIO */ -#define TIM_TIM3_ETR_COMP1 TIM3_AF1_ETRSEL_0 /*!< TIM3_ETR is connected to COMP1 OUT */ - -#define TIM_TIM5_ETR_GPIO 0x00000000U /*!< TIM5_ETR is connected to GPIO */ -#define TIM_TIM5_ETR_SAI2_FSA TIM5_AF1_ETRSEL_0 /*!< TIM5_ETR is connected to SAI2 FS_A */ -#define TIM_TIM5_ETR_SAI2_FSB TIM5_AF1_ETRSEL_1 /*!< TIM5_ETR is connected to SAI2 FS_B */ -#define TIM_TIM5_ETR_SAI4_FSA TIM5_AF1_ETRSEL_0 /*!< TIM5_ETR is connected to SAI4 FS_A */ -#define TIM_TIM5_ETR_SAI4_FSB TIM5_AF1_ETRSEL_1 /*!< TIM5_ETR is connected to SAI4 FS_B */ - -#define TIM_TIM23_ETR_GPIO 0x00000000U /*!< TIM23_ETR is connected to GPIO */ -#define TIM_TIM23_ETR_COMP1 (TIM2_AF1_ETRSEL_0) /*!< TIM23_ETR is connected to COMP1 OUT */ -#define TIM_TIM23_ETR_COMP2 (TIM2_AF1_ETRSEL_1) /*!< TIM23_ETR is connected to COMP2 OUT */ - -#define TIM_TIM24_ETR_GPIO 0x00000000U /*!< TIM24_ETR is connected to GPIO */ -#define TIM_TIM24_ETR_SAI4_FSA TIM5_AF1_ETRSEL_0 /*!< TIM24_ETR is connected to SAI4 FS_A */ -#define TIM_TIM24_ETR_SAI4_FSB TIM5_AF1_ETRSEL_1 /*!< TIM24_ETR is connected to SAI4 FS_B */ -#define TIM_TIM24_ETR_SAI1_FSA (TIM2_AF1_ETRSEL_1 | TIM8_AF1_ETRSEL_0) /*!< TIM24_ETR is connected to SAI1 FS_A */ -#define TIM_TIM24_ETR_SAI1_FSB TIM2_AF1_ETRSEL_2 /*!< TIM24_ETR is connected to SAI1 FS_B */ -/** - * @} - */ -#if defined(TIM_BREAK_INPUT_SUPPORT) - -/** @defgroup TIMEx_Break_Input TIM Extended Break input - * @{ - */ -#define TIM_BREAKINPUT_BRK 0x00000001U /*!< Timer break input */ -#define TIM_BREAKINPUT_BRK2 0x00000002U /*!< Timer break2 input */ -/** - * @} - */ - -/** @defgroup TIMEx_Break_Input_Source TIM Extended Break input source - * @{ - */ -#define TIM_BREAKINPUTSOURCE_BKIN 0x00000001U /*!< An external source (GPIO) is connected to the BKIN pin */ -#define TIM_BREAKINPUTSOURCE_COMP1 0x00000002U /*!< The COMP1 output is connected to the break input */ -#define TIM_BREAKINPUTSOURCE_COMP2 0x00000004U /*!< The COMP2 output is connected to the break input */ -#define TIM_BREAKINPUTSOURCE_DFSDM1 0x00000008U /*!< The analog watchdog output of the DFSDM1 peripheral is connected to the break input */ -/** - * @} - */ - -/** @defgroup TIMEx_Break_Input_Source_Enable TIM Extended Break input source enabling - * @{ - */ -#define TIM_BREAKINPUTSOURCE_DISABLE 0x00000000U /*!< Break input source is disabled */ -#define TIM_BREAKINPUTSOURCE_ENABLE 0x00000001U /*!< Break input source is enabled */ -/** - * @} - */ - -/** @defgroup TIMEx_Break_Input_Source_Polarity TIM Extended Break input polarity - * @{ - */ -#define TIM_BREAKINPUTSOURCE_POLARITY_LOW 0x00000001U /*!< Break input source is active low */ -#define TIM_BREAKINPUTSOURCE_POLARITY_HIGH 0x00000000U /*!< Break input source is active_high */ -/** - * @} - */ -#endif /* TIM_BREAK_INPUT_SUPPORT */ - -/** @defgroup TIMEx_Timer_Input_Selection TIM Extended Timer input selection - * @{ - */ -#define TIM_TIM1_TI1_GPIO 0x00000000U /*!< TIM1_TI1 is connected to GPIO */ -#define TIM_TIM1_TI1_COMP1 TIM_TISEL_TI1SEL_0 /*!< TIM1_TI1 is connected to COMP1 OUT */ - -#define TIM_TIM8_TI1_GPIO 0x00000000U /*!< TIM8_TI1 is connected to GPIO */ -#define TIM_TIM8_TI1_COMP2 TIM_TISEL_TI1SEL_0 /*!< TIM8_TI1 is connected to COMP2 OUT */ - -#define TIM_TIM2_TI4_GPIO 0x00000000U /*!< TIM2_TI4 is connected to GPIO */ -#define TIM_TIM2_TI4_COMP1 TIM_TISEL_TI4SEL_0 /*!< TIM2_TI4 is connected to COMP1 OUT */ -#define TIM_TIM2_TI4_COMP2 TIM_TISEL_TI4SEL_1 /*!< TIM2_TI4 is connected to COMP2 OUT */ -#define TIM_TIM2_TI4_COMP1_COMP2 (TIM_TISEL_TI4SEL_0 | TIM_TISEL_TI4SEL_1) /*!< TIM2_TI4 is connected to COMP2 OUT OR COMP2 OUT */ - -#define TIM_TIM3_TI1_GPIO 0x00000000U /*!< TIM3_TI1 is connected to GPIO */ -#define TIM_TIM3_TI1_COMP1 TIM_TISEL_TI1SEL_0 /*!< TIM3_TI1 is connected to COMP1 OUT */ -#define TIM_TIM3_TI1_COMP2 TIM_TISEL_TI1SEL_1 /*!< TIM3_TI1 is connected to COMP2 OUT */ -#define TIM_TIM3_TI1_COMP1_COMP2 (TIM_TISEL_TI1SEL_0 | TIM_TISEL_TI1SEL_1) /*!< TIM3_TI1 is connected to COMP1 OUT or COMP2 OUT */ - -#define TIM_TIM5_TI1_GPIO 0x00000000U /*!< TIM5_TI1 is connected to GPIO */ -#define TIM_TIM5_TI1_CAN_TMP TIM_TISEL_TI1SEL_0 /*!< TIM5_TI1 is connected to CAN TMP */ -#define TIM_TIM5_TI1_CAN_RTP TIM_TISEL_TI1SEL_1 /*!< TIM5_TI1 is connected to CAN RTP */ - -#define TIM_TIM12_TI1_GPIO 0x00000000U /*!< TIM12 TI1 is connected to GPIO */ -#define TIM_TIM12_TI1_SPDIF_FS TIM_TISEL_TI1SEL_0 /*!< TIM12 TI1 is connected to SPDIF FS */ - -#define TIM_TIM15_TI1_GPIO 0x00000000U /*!< TIM15_TI1 is connected to GPIO */ -#define TIM_TIM15_TI1_TIM2_CH1 TIM_TISEL_TI1SEL_0 /*!< TIM15_TI1 is connected to TIM2 CH1 */ -#define TIM_TIM15_TI1_TIM3_CH1 TIM_TISEL_TI1SEL_1 /*!< TIM15_TI1 is connected to TIM3 CH1 */ -#define TIM_TIM15_TI1_TIM4_CH1 (TIM_TISEL_TI1SEL_0 | TIM_TISEL_TI1SEL_1) /*!< TIM15_TI1 is connected to TIM4 CH1 */ -#define TIM_TIM15_TI1_RCC_LSE (TIM_TISEL_TI1SEL_2) /*!< TIM15_TI1 is connected to RCC LSE */ -#define TIM_TIM15_TI1_RCC_CSI (TIM_TISEL_TI1SEL_2 | TIM_TISEL_TI1SEL_0) /*!< TIM15_TI1 is connected to RCC CSI */ -#define TIM_TIM15_TI1_RCC_MCO2 (TIM_TISEL_TI1SEL_2 | TIM_TISEL_TI1SEL_1) /*!< TIM15_TI1 is connected to RCC MCO2 */ - -#define TIM_TIM15_TI2_GPIO 0x00000000U /*!< TIM15_TI2 is connected to GPIO */ -#define TIM_TIM15_TI2_TIM2_CH2 (TIM_TISEL_TI2SEL_0) /*!< TIM15_TI2 is connected to TIM2 CH2 */ -#define TIM_TIM15_TI2_TIM3_CH2 (TIM_TISEL_TI2SEL_1) /*!< TIM15_TI2 is connected to TIM3 CH2 */ -#define TIM_TIM15_TI2_TIM4_CH2 (TIM_TISEL_TI2SEL_0 | TIM_TISEL_TI2SEL_1) /*!< TIM15_TI2 is connected to TIM4 CH2 */ - -#define TIM_TIM16_TI1_GPIO 0x00000000U /*!< TIM16 TI1 is connected to GPIO */ -#define TIM_TIM16_TI1_RCC_LSI TIM_TISEL_TI1SEL_0 /*!< TIM16 TI1 is connected to RCC LSI */ -#define TIM_TIM16_TI1_RCC_LSE TIM_TISEL_TI1SEL_1 /*!< TIM16 TI1 is connected to RCC LSE */ -#define TIM_TIM16_TI1_WKUP_IT (TIM_TISEL_TI1SEL_0 | TIM_TISEL_TI1SEL_1) /*!< TIM16 TI1 is connected to WKUP_IT */ - -#define TIM_TIM17_TI1_GPIO 0x00000000U /*!< TIM17 TI1 is connected to GPIO */ -#define TIM_TIM17_TI1_SPDIF_FS TIM_TISEL_TI1SEL_0 /*!< TIM17 TI1 is connected to SPDIF FS */ -#define TIM_TIM17_TI1_RCC_HSE1MHZ TIM_TISEL_TI1SEL_1 /*!< TIM17 TI1 is connected to RCC HSE 1Mhz */ -#define TIM_TIM17_TI1_RCC_MCO1 (TIM_TISEL_TI1SEL_0 | TIM_TISEL_TI1SEL_1) /*!< TIM17 TI1 is connected to RCC MCO1 */ - -#define TIM_TIM23_TI4_GPIO 0x00000000U /*!< TIM23_TI4 is connected to GPIO */ -#define TIM_TIM23_TI4_COMP1 TIM_TISEL_TI4SEL_0 /*!< TIM23_TI4 is connected to COMP1 OUT */ -#define TIM_TIM23_TI4_COMP2 TIM_TISEL_TI4SEL_1 /*!< TIM23_TI4 is connected to COMP2 OUT */ -#define TIM_TIM23_TI4_COMP1_COMP2 (TIM_TISEL_TI4SEL_0 | TIM_TISEL_TI4SEL_1) /*!< TIM23_TI4 is connected to COMP1 OUT or COMP2 OUT */ - -#define TIM_TIM24_TI1_GPIO 0x00000000U /*!< TIM24_TI1 is connected to GPIO */ -#define TIM_TIM24_TI1_CAN_TMP TIM_TISEL_TI1SEL_0 /*!< TIM24_TI1 is connected to CAN TMP */ -#define TIM_TIM24_TI1_CAN_RTP TIM_TISEL_TI1SEL_1 /*!< TIM24_TI1 is connected to CAN RTP */ -#define TIM_TIM24_TI1_CAN_SOC (TIM_TISEL_TI4SEL_0 | TIM_TISEL_TI4SEL_1) /*!< TIM24_TI1 is connected to CAN SOC */ -/** - * @} - */ - -/** - * @} - */ -/* End of exported constants -------------------------------------------------*/ - -/* Exported macro ------------------------------------------------------------*/ -/** @defgroup TIMEx_Exported_Macros TIM Extended Exported Macros - * @{ - */ - -/** - * @} - */ -/* End of exported macro -----------------------------------------------------*/ - -/* Private macro -------------------------------------------------------------*/ -/** @defgroup TIMEx_Private_Macros TIM Extended Private Macros - * @{ - */ -#define IS_TIM_BREAKINPUT(__BREAKINPUT__) (((__BREAKINPUT__) == TIM_BREAKINPUT_BRK) || \ - ((__BREAKINPUT__) == TIM_BREAKINPUT_BRK2)) - -#define IS_TIM_BREAKINPUTSOURCE(__SOURCE__) (((__SOURCE__) == TIM_BREAKINPUTSOURCE_BKIN) || \ - ((__SOURCE__) == TIM_BREAKINPUTSOURCE_COMP1) || \ - ((__SOURCE__) == TIM_BREAKINPUTSOURCE_COMP2) || \ - ((__SOURCE__) == TIM_BREAKINPUTSOURCE_DFSDM1)) - -#define IS_TIM_BREAKINPUTSOURCE_STATE(__STATE__) (((__STATE__) == TIM_BREAKINPUTSOURCE_DISABLE) || \ - ((__STATE__) == TIM_BREAKINPUTSOURCE_ENABLE)) - -#define IS_TIM_BREAKINPUTSOURCE_POLARITY(__POLARITY__) (((__POLARITY__) == TIM_BREAKINPUTSOURCE_POLARITY_LOW) || \ - ((__POLARITY__) == TIM_BREAKINPUTSOURCE_POLARITY_HIGH)) - -#define IS_TIM_TISEL(__TISEL__) (((__TISEL__) == TIM_TIM1_TI1_GPIO) ||\ - ((__TISEL__) == TIM_TIM1_TI1_COMP1) ||\ - ((__TISEL__) == TIM_TIM8_TI1_GPIO) ||\ - ((__TISEL__) == TIM_TIM8_TI1_COMP2) ||\ - ((__TISEL__) == TIM_TIM2_TI4_GPIO) ||\ - ((__TISEL__) == TIM_TIM2_TI4_COMP1) ||\ - ((__TISEL__) == TIM_TIM2_TI4_COMP2) ||\ - ((__TISEL__) == TIM_TIM2_TI4_COMP1_COMP2) ||\ - ((__TISEL__) == TIM_TIM3_TI1_GPIO) ||\ - ((__TISEL__) == TIM_TIM3_TI1_COMP1) ||\ - ((__TISEL__) == TIM_TIM3_TI1_COMP2) ||\ - ((__TISEL__) == TIM_TIM3_TI1_COMP1_COMP2) ||\ - ((__TISEL__) == TIM_TIM5_TI1_GPIO) ||\ - ((__TISEL__) == TIM_TIM5_TI1_CAN_TMP) ||\ - ((__TISEL__) == TIM_TIM5_TI1_CAN_RTP) ||\ - ((__TISEL__) == TIM_TIM12_TI1_SPDIF_FS) ||\ - ((__TISEL__) == TIM_TIM12_TI1_GPIO) ||\ - ((__TISEL__) == TIM_TIM15_TI1_GPIO) ||\ - ((__TISEL__) == TIM_TIM15_TI1_TIM2_CH1) ||\ - ((__TISEL__) == TIM_TIM15_TI1_TIM3_CH1) ||\ - ((__TISEL__) == TIM_TIM15_TI1_TIM4_CH1) ||\ - ((__TISEL__) == TIM_TIM15_TI1_RCC_LSE) ||\ - ((__TISEL__) == TIM_TIM15_TI1_RCC_CSI) ||\ - ((__TISEL__) == TIM_TIM15_TI1_RCC_MCO2) ||\ - ((__TISEL__) == TIM_TIM15_TI2_GPIO) ||\ - ((__TISEL__) == TIM_TIM15_TI2_TIM2_CH2) ||\ - ((__TISEL__) == TIM_TIM15_TI2_TIM3_CH2) ||\ - ((__TISEL__) == TIM_TIM15_TI2_TIM4_CH2) ||\ - ((__TISEL__) == TIM_TIM16_TI1_GPIO) ||\ - ((__TISEL__) == TIM_TIM16_TI1_RCC_LSI) ||\ - ((__TISEL__) == TIM_TIM16_TI1_RCC_LSE) ||\ - ((__TISEL__) == TIM_TIM16_TI1_WKUP_IT) ||\ - ((__TISEL__) == TIM_TIM17_TI1_GPIO) ||\ - ((__TISEL__) == TIM_TIM17_TI1_SPDIF_FS) ||\ - ((__TISEL__) == TIM_TIM17_TI1_RCC_HSE1MHZ) ||\ - ((__TISEL__) == TIM_TIM17_TI1_RCC_MCO1) ||\ - ((__TISEL__) == TIM_TIM23_TI4_GPIO) ||\ - ((__TISEL__) == TIM_TIM23_TI4_COMP1) ||\ - ((__TISEL__) == TIM_TIM23_TI4_COMP2) ||\ - ((__TISEL__) == TIM_TIM23_TI4_COMP1_COMP2) ||\ - ((__TISEL__) == TIM_TIM24_TI1_GPIO) ||\ - ((__TISEL__) == TIM_TIM24_TI1_CAN_TMP) ||\ - ((__TISEL__) == TIM_TIM24_TI1_CAN_RTP) ||\ - ((__TISEL__) == TIM_TIM24_TI1_CAN_SOC)) - -#define IS_TIM_REMAP(__RREMAP__) (((__RREMAP__) == TIM_TIM1_ETR_GPIO) ||\ - ((__RREMAP__) == TIM_TIM1_ETR_ADC1_AWD1) ||\ - ((__RREMAP__) == TIM_TIM1_ETR_ADC1_AWD2) ||\ - ((__RREMAP__) == TIM_TIM1_ETR_ADC1_AWD3) ||\ - ((__RREMAP__) == TIM_TIM1_ETR_ADC3_AWD1) ||\ - ((__RREMAP__) == TIM_TIM1_ETR_ADC3_AWD2) ||\ - ((__RREMAP__) == TIM_TIM1_ETR_ADC3_AWD3) ||\ - ((__RREMAP__) == TIM_TIM1_ETR_COMP1) ||\ - ((__RREMAP__) == TIM_TIM1_ETR_COMP2) ||\ - ((__RREMAP__) == TIM_TIM8_ETR_GPIO) ||\ - ((__RREMAP__) == TIM_TIM8_ETR_ADC2_AWD1) ||\ - ((__RREMAP__) == TIM_TIM8_ETR_ADC2_AWD2) ||\ - ((__RREMAP__) == TIM_TIM8_ETR_ADC2_AWD3) ||\ - ((__RREMAP__) == TIM_TIM8_ETR_ADC3_AWD1) ||\ - ((__RREMAP__) == TIM_TIM8_ETR_ADC3_AWD2) ||\ - ((__RREMAP__) == TIM_TIM8_ETR_ADC3_AWD3) ||\ - ((__RREMAP__) == TIM_TIM8_ETR_COMP1) ||\ - ((__RREMAP__) == TIM_TIM8_ETR_COMP2) ||\ - ((__RREMAP__) == TIM_TIM2_ETR_GPIO) ||\ - ((__RREMAP__) == TIM_TIM2_ETR_COMP1) ||\ - ((__RREMAP__) == TIM_TIM2_ETR_COMP2) ||\ - ((__RREMAP__) == TIM_TIM2_ETR_RCC_LSE) ||\ - ((__RREMAP__) == TIM_TIM2_ETR_SAI1_FSA) ||\ - ((__RREMAP__) == TIM_TIM2_ETR_SAI1_FSB) ||\ - ((__RREMAP__) == TIM_TIM3_ETR_GPIO) ||\ - ((__RREMAP__) == TIM_TIM3_ETR_COMP1) ||\ - ((__RREMAP__) == TIM_TIM5_ETR_GPIO) ||\ - ((__RREMAP__) == TIM_TIM5_ETR_SAI2_FSA) ||\ - ((__RREMAP__) == TIM_TIM5_ETR_SAI2_FSB) ||\ - ((__RREMAP__) == TIM_TIM23_ETR_GPIO) ||\ - ((__RREMAP__) == TIM_TIM23_ETR_COMP1) ||\ - ((__RREMAP__) == TIM_TIM23_ETR_COMP2) ||\ - ((__RREMAP__) == TIM_TIM24_ETR_GPIO) ||\ - ((__RREMAP__) == TIM_TIM24_ETR_SAI4_FSA) ||\ - ((__RREMAP__) == TIM_TIM24_ETR_SAI4_FSB) ||\ - ((__RREMAP__) == TIM_TIM24_ETR_SAI1_FSA) ||\ - ((__RREMAP__) == TIM_TIM24_ETR_SAI1_FSB)) - -/** - * @} - */ -/* End of private macro ------------------------------------------------------*/ - -/* Exported functions --------------------------------------------------------*/ -/** @addtogroup TIMEx_Exported_Functions TIM Extended Exported Functions - * @{ - */ - -/** @addtogroup TIMEx_Exported_Functions_Group1 Extended Timer Hall Sensor functions - * @brief Timer Hall Sensor functions - * @{ - */ -/* Timer Hall Sensor functions **********************************************/ -HAL_StatusTypeDef HAL_TIMEx_HallSensor_Init(TIM_HandleTypeDef *htim, const TIM_HallSensor_InitTypeDef *sConfig); -HAL_StatusTypeDef HAL_TIMEx_HallSensor_DeInit(TIM_HandleTypeDef *htim); - -void HAL_TIMEx_HallSensor_MspInit(TIM_HandleTypeDef *htim); -void HAL_TIMEx_HallSensor_MspDeInit(TIM_HandleTypeDef *htim); - -/* Blocking mode: Polling */ -HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start(TIM_HandleTypeDef *htim); -HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop(TIM_HandleTypeDef *htim); -/* Non-Blocking mode: Interrupt */ -HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start_IT(TIM_HandleTypeDef *htim); -HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop_IT(TIM_HandleTypeDef *htim); -/* Non-Blocking mode: DMA */ -HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start_DMA(TIM_HandleTypeDef *htim, uint32_t *pData, uint16_t Length); -HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop_DMA(TIM_HandleTypeDef *htim); -/** - * @} - */ - -/** @addtogroup TIMEx_Exported_Functions_Group2 Extended Timer Complementary Output Compare functions - * @brief Timer Complementary Output Compare functions - * @{ - */ -/* Timer Complementary Output Compare functions *****************************/ -/* Blocking mode: Polling */ -HAL_StatusTypeDef HAL_TIMEx_OCN_Start(TIM_HandleTypeDef *htim, uint32_t Channel); -HAL_StatusTypeDef HAL_TIMEx_OCN_Stop(TIM_HandleTypeDef *htim, uint32_t Channel); - -/* Non-Blocking mode: Interrupt */ -HAL_StatusTypeDef HAL_TIMEx_OCN_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel); -HAL_StatusTypeDef HAL_TIMEx_OCN_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel); - -/* Non-Blocking mode: DMA */ -HAL_StatusTypeDef HAL_TIMEx_OCN_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, const uint32_t *pData, - uint16_t Length); -HAL_StatusTypeDef HAL_TIMEx_OCN_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel); -/** - * @} - */ - -/** @addtogroup TIMEx_Exported_Functions_Group3 Extended Timer Complementary PWM functions - * @brief Timer Complementary PWM functions - * @{ - */ -/* Timer Complementary PWM functions ****************************************/ -/* Blocking mode: Polling */ -HAL_StatusTypeDef HAL_TIMEx_PWMN_Start(TIM_HandleTypeDef *htim, uint32_t Channel); -HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop(TIM_HandleTypeDef *htim, uint32_t Channel); - -/* Non-Blocking mode: Interrupt */ -HAL_StatusTypeDef HAL_TIMEx_PWMN_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel); -HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel); -/* Non-Blocking mode: DMA */ -HAL_StatusTypeDef HAL_TIMEx_PWMN_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, const uint32_t *pData, - uint16_t Length); -HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel); -/** - * @} - */ - -/** @addtogroup TIMEx_Exported_Functions_Group4 Extended Timer Complementary One Pulse functions - * @brief Timer Complementary One Pulse functions - * @{ - */ -/* Timer Complementary One Pulse functions **********************************/ -/* Blocking mode: Polling */ -HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Start(TIM_HandleTypeDef *htim, uint32_t OutputChannel); -HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Stop(TIM_HandleTypeDef *htim, uint32_t OutputChannel); - -/* Non-Blocking mode: Interrupt */ -HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Start_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel); -HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Stop_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel); -/** - * @} - */ - -/** @addtogroup TIMEx_Exported_Functions_Group5 Extended Peripheral Control functions - * @brief Peripheral Control functions - * @{ - */ -/* Extended Control functions ************************************************/ -HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent(TIM_HandleTypeDef *htim, uint32_t InputTrigger, - uint32_t CommutationSource); -HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent_IT(TIM_HandleTypeDef *htim, uint32_t InputTrigger, - uint32_t CommutationSource); -HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent_DMA(TIM_HandleTypeDef *htim, uint32_t InputTrigger, - uint32_t CommutationSource); -HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim, - const TIM_MasterConfigTypeDef *sMasterConfig); -HAL_StatusTypeDef HAL_TIMEx_ConfigBreakDeadTime(TIM_HandleTypeDef *htim, - const TIM_BreakDeadTimeConfigTypeDef *sBreakDeadTimeConfig); -#if defined(TIM_BREAK_INPUT_SUPPORT) -HAL_StatusTypeDef HAL_TIMEx_ConfigBreakInput(TIM_HandleTypeDef *htim, uint32_t BreakInput, - const TIMEx_BreakInputConfigTypeDef *sBreakInputConfig); -#endif /* TIM_BREAK_INPUT_SUPPORT */ -HAL_StatusTypeDef HAL_TIMEx_GroupChannel5(TIM_HandleTypeDef *htim, uint32_t Channels); -HAL_StatusTypeDef HAL_TIMEx_RemapConfig(TIM_HandleTypeDef *htim, uint32_t Remap); -HAL_StatusTypeDef HAL_TIMEx_TISelection(TIM_HandleTypeDef *htim, uint32_t TISelection, uint32_t Channel); -#if defined(TIM_BDTR_BKBID) - -HAL_StatusTypeDef HAL_TIMEx_DisarmBreakInput(TIM_HandleTypeDef *htim, uint32_t BreakInput); -HAL_StatusTypeDef HAL_TIMEx_ReArmBreakInput(TIM_HandleTypeDef *htim, uint32_t BreakInput); -#endif /* TIM_BDTR_BKBID */ -/** - * @} - */ - -/** @addtogroup TIMEx_Exported_Functions_Group6 Extended Callbacks functions - * @brief Extended Callbacks functions - * @{ - */ -/* Extended Callback **********************************************************/ -void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim); -void HAL_TIMEx_CommutHalfCpltCallback(TIM_HandleTypeDef *htim); -void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim); -void HAL_TIMEx_Break2Callback(TIM_HandleTypeDef *htim); -/** - * @} - */ - -/** @addtogroup TIMEx_Exported_Functions_Group7 Extended Peripheral State functions - * @brief Extended Peripheral State functions - * @{ - */ -/* Extended Peripheral State functions ***************************************/ -HAL_TIM_StateTypeDef HAL_TIMEx_HallSensor_GetState(const TIM_HandleTypeDef *htim); -HAL_TIM_ChannelStateTypeDef HAL_TIMEx_GetChannelNState(const TIM_HandleTypeDef *htim, uint32_t ChannelN); -/** - * @} - */ - -/** - * @} - */ -/* End of exported functions -------------------------------------------------*/ - -/* Private functions----------------------------------------------------------*/ -/** @addtogroup TIMEx_Private_Functions TIM Extended Private Functions - * @{ - */ -void TIMEx_DMACommutationCplt(DMA_HandleTypeDef *hdma); -void TIMEx_DMACommutationHalfCplt(DMA_HandleTypeDef *hdma); -/** - * @} - */ -/* End of private functions --------------------------------------------------*/ - -/** - * @} - */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - - -#endif /* STM32H7xx_HAL_TIM_EX_H */ diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h deleted file mode 100644 index c6fced0..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h +++ /dev/null @@ -1,1749 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_uart.h - * @author MCD Application Team - * @brief Header file of UART HAL module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_HAL_UART_H -#define STM32H7xx_HAL_UART_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal_def.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @addtogroup UART - * @{ - */ - -/* Exported types ------------------------------------------------------------*/ -/** @defgroup UART_Exported_Types UART Exported Types - * @{ - */ - -/** - * @brief UART Init Structure definition - */ -typedef struct -{ - uint32_t BaudRate; /*!< This member configures the UART communication baud rate. - The baud rate register is computed using the following formula: - LPUART: - ======= - Baud Rate Register = ((256 * lpuart_ker_ckpres) / ((huart->Init.BaudRate))) - where lpuart_ker_ck_pres is the UART input clock divided by a prescaler - UART: - ===== - - If oversampling is 16 or in LIN mode, - Baud Rate Register = ((uart_ker_ckpres) / ((huart->Init.BaudRate))) - - If oversampling is 8, - Baud Rate Register[15:4] = ((2 * uart_ker_ckpres) / - ((huart->Init.BaudRate)))[15:4] - Baud Rate Register[3] = 0 - Baud Rate Register[2:0] = (((2 * uart_ker_ckpres) / - ((huart->Init.BaudRate)))[3:0]) >> 1 - where uart_ker_ck_pres is the UART input clock divided by a prescaler */ - - uint32_t WordLength; /*!< Specifies the number of data bits transmitted or received in a frame. - This parameter can be a value of @ref UARTEx_Word_Length. */ - - uint32_t StopBits; /*!< Specifies the number of stop bits transmitted. - This parameter can be a value of @ref UART_Stop_Bits. */ - - uint32_t Parity; /*!< Specifies the parity mode. - This parameter can be a value of @ref UART_Parity - @note When parity is enabled, the computed parity is inserted - at the MSB position of the transmitted data (9th bit when - the word length is set to 9 data bits; 8th bit when the - word length is set to 8 data bits). */ - - uint32_t Mode; /*!< Specifies whether the Receive or Transmit mode is enabled or disabled. - This parameter can be a value of @ref UART_Mode. */ - - uint32_t HwFlowCtl; /*!< Specifies whether the hardware flow control mode is enabled - or disabled. - This parameter can be a value of @ref UART_Hardware_Flow_Control. */ - - uint32_t OverSampling; /*!< Specifies whether the Over sampling 8 is enabled or disabled, - to achieve higher speed (up to f_PCLK/8). - This parameter can be a value of @ref UART_Over_Sampling. */ - - uint32_t OneBitSampling; /*!< Specifies whether a single sample or three samples' majority vote is selected. - Selecting the single sample method increases the receiver tolerance to clock - deviations. This parameter can be a value of @ref UART_OneBit_Sampling. */ - - uint32_t ClockPrescaler; /*!< Specifies the prescaler value used to divide the UART clock source. - This parameter can be a value of @ref UART_ClockPrescaler. */ - -} UART_InitTypeDef; - -/** - * @brief UART Advanced Features initialization structure definition - */ -typedef struct -{ - uint32_t AdvFeatureInit; /*!< Specifies which advanced UART features is initialized. Several - Advanced Features may be initialized at the same time . - This parameter can be a value of - @ref UART_Advanced_Features_Initialization_Type. */ - - uint32_t TxPinLevelInvert; /*!< Specifies whether the TX pin active level is inverted. - This parameter can be a value of @ref UART_Tx_Inv. */ - - uint32_t RxPinLevelInvert; /*!< Specifies whether the RX pin active level is inverted. - This parameter can be a value of @ref UART_Rx_Inv. */ - - uint32_t DataInvert; /*!< Specifies whether data are inverted (positive/direct logic - vs negative/inverted logic). - This parameter can be a value of @ref UART_Data_Inv. */ - - uint32_t Swap; /*!< Specifies whether TX and RX pins are swapped. - This parameter can be a value of @ref UART_Rx_Tx_Swap. */ - - uint32_t OverrunDisable; /*!< Specifies whether the reception overrun detection is disabled. - This parameter can be a value of @ref UART_Overrun_Disable. */ - - uint32_t DMADisableonRxError; /*!< Specifies whether the DMA is disabled in case of reception error. - This parameter can be a value of @ref UART_DMA_Disable_on_Rx_Error. */ - - uint32_t AutoBaudRateEnable; /*!< Specifies whether auto Baud rate detection is enabled. - This parameter can be a value of @ref UART_AutoBaudRate_Enable. */ - - uint32_t AutoBaudRateMode; /*!< If auto Baud rate detection is enabled, specifies how the rate - detection is carried out. - This parameter can be a value of @ref UART_AutoBaud_Rate_Mode. */ - - uint32_t MSBFirst; /*!< Specifies whether MSB is sent first on UART line. - This parameter can be a value of @ref UART_MSB_First. */ -} UART_AdvFeatureInitTypeDef; - -/** - * @brief HAL UART State definition - * @note HAL UART State value is a combination of 2 different substates: - * gState and RxState (see @ref UART_State_Definition). - * - gState contains UART state information related to global Handle management - * and also information related to Tx operations. - * gState value coding follow below described bitmap : - * b7-b6 Error information - * 00 : No Error - * 01 : (Not Used) - * 10 : Timeout - * 11 : Error - * b5 Peripheral initialization status - * 0 : Reset (Peripheral not initialized) - * 1 : Init done (Peripheral initialized. HAL UART Init function already called) - * b4-b3 (not used) - * xx : Should be set to 00 - * b2 Intrinsic process state - * 0 : Ready - * 1 : Busy (Peripheral busy with some configuration or internal operations) - * b1 (not used) - * x : Should be set to 0 - * b0 Tx state - * 0 : Ready (no Tx operation ongoing) - * 1 : Busy (Tx operation ongoing) - * - RxState contains information related to Rx operations. - * RxState value coding follow below described bitmap : - * b7-b6 (not used) - * xx : Should be set to 00 - * b5 Peripheral initialization status - * 0 : Reset (Peripheral not initialized) - * 1 : Init done (Peripheral initialized) - * b4-b2 (not used) - * xxx : Should be set to 000 - * b1 Rx state - * 0 : Ready (no Rx operation ongoing) - * 1 : Busy (Rx operation ongoing) - * b0 (not used) - * x : Should be set to 0. - */ -typedef uint32_t HAL_UART_StateTypeDef; - -/** - * @brief UART clock sources definition - */ -typedef enum -{ - UART_CLOCKSOURCE_D2PCLK1 = 0x00U, /*!< Domain2 PCLK1 clock source */ - UART_CLOCKSOURCE_D2PCLK2 = 0x01U, /*!< Domain2 PCLK2 clock source */ - UART_CLOCKSOURCE_D3PCLK1 = 0x02U, /*!< Domain3 PCLK1 clock source */ - UART_CLOCKSOURCE_PLL2 = 0x04U, /*!< PLL2Q clock source */ - UART_CLOCKSOURCE_PLL3 = 0x08U, /*!< PLL3Q clock source */ - UART_CLOCKSOURCE_HSI = 0x10U, /*!< HSI clock source */ - UART_CLOCKSOURCE_CSI = 0x20U, /*!< CSI clock source */ - UART_CLOCKSOURCE_LSE = 0x40U, /*!< LSE clock source */ - UART_CLOCKSOURCE_UNDEFINED = 0x80U /*!< Undefined clock source */ -} UART_ClockSourceTypeDef; - -/** - * @brief HAL UART Reception type definition - * @note HAL UART Reception type value aims to identify which type of Reception is ongoing. - * This parameter can be a value of @ref UART_Reception_Type_Values : - * HAL_UART_RECEPTION_STANDARD = 0x00U, - * HAL_UART_RECEPTION_TOIDLE = 0x01U, - * HAL_UART_RECEPTION_TORTO = 0x02U, - * HAL_UART_RECEPTION_TOCHARMATCH = 0x03U, - */ -typedef uint32_t HAL_UART_RxTypeTypeDef; - -/** - * @brief HAL UART Rx Event type definition - * @note HAL UART Rx Event type value aims to identify which type of Event has occurred - * leading to call of the RxEvent callback. - * This parameter can be a value of @ref UART_RxEvent_Type_Values : - * HAL_UART_RXEVENT_TC = 0x00U, - * HAL_UART_RXEVENT_HT = 0x01U, - * HAL_UART_RXEVENT_IDLE = 0x02U, - */ -typedef uint32_t HAL_UART_RxEventTypeTypeDef; - -/** - * @brief UART handle Structure definition - */ -typedef struct __UART_HandleTypeDef -{ - USART_TypeDef *Instance; /*!< UART registers base address */ - - UART_InitTypeDef Init; /*!< UART communication parameters */ - - UART_AdvFeatureInitTypeDef AdvancedInit; /*!< UART Advanced Features initialization parameters */ - - const uint8_t *pTxBuffPtr; /*!< Pointer to UART Tx transfer Buffer */ - - uint16_t TxXferSize; /*!< UART Tx Transfer size */ - - __IO uint16_t TxXferCount; /*!< UART Tx Transfer Counter */ - - uint8_t *pRxBuffPtr; /*!< Pointer to UART Rx transfer Buffer */ - - uint16_t RxXferSize; /*!< UART Rx Transfer size */ - - __IO uint16_t RxXferCount; /*!< UART Rx Transfer Counter */ - - uint16_t Mask; /*!< UART Rx RDR register mask */ - - uint32_t FifoMode; /*!< Specifies if the FIFO mode is being used. - This parameter can be a value of @ref UARTEx_FIFO_mode. */ - - uint16_t NbRxDataToProcess; /*!< Number of data to process during RX ISR execution */ - - uint16_t NbTxDataToProcess; /*!< Number of data to process during TX ISR execution */ - - __IO HAL_UART_RxTypeTypeDef ReceptionType; /*!< Type of ongoing reception */ - - __IO HAL_UART_RxEventTypeTypeDef RxEventType; /*!< Type of Rx Event */ - - void (*RxISR)(struct __UART_HandleTypeDef *huart); /*!< Function pointer on Rx IRQ handler */ - - void (*TxISR)(struct __UART_HandleTypeDef *huart); /*!< Function pointer on Tx IRQ handler */ - - DMA_HandleTypeDef *hdmatx; /*!< UART Tx DMA Handle parameters */ - - DMA_HandleTypeDef *hdmarx; /*!< UART Rx DMA Handle parameters */ - - HAL_LockTypeDef Lock; /*!< Locking object */ - - __IO HAL_UART_StateTypeDef gState; /*!< UART state information related to global Handle management - and also related to Tx operations. This parameter - can be a value of @ref HAL_UART_StateTypeDef */ - - __IO HAL_UART_StateTypeDef RxState; /*!< UART state information related to Rx operations. This - parameter can be a value of @ref HAL_UART_StateTypeDef */ - - __IO uint32_t ErrorCode; /*!< UART Error code */ - -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - void (* TxHalfCpltCallback)(struct __UART_HandleTypeDef *huart); /*!< UART Tx Half Complete Callback */ - void (* TxCpltCallback)(struct __UART_HandleTypeDef *huart); /*!< UART Tx Complete Callback */ - void (* RxHalfCpltCallback)(struct __UART_HandleTypeDef *huart); /*!< UART Rx Half Complete Callback */ - void (* RxCpltCallback)(struct __UART_HandleTypeDef *huart); /*!< UART Rx Complete Callback */ - void (* ErrorCallback)(struct __UART_HandleTypeDef *huart); /*!< UART Error Callback */ - void (* AbortCpltCallback)(struct __UART_HandleTypeDef *huart); /*!< UART Abort Complete Callback */ - void (* AbortTransmitCpltCallback)(struct __UART_HandleTypeDef *huart); /*!< UART Abort Transmit Complete Callback */ - void (* AbortReceiveCpltCallback)(struct __UART_HandleTypeDef *huart); /*!< UART Abort Receive Complete Callback */ - void (* WakeupCallback)(struct __UART_HandleTypeDef *huart); /*!< UART Wakeup Callback */ - void (* RxFifoFullCallback)(struct __UART_HandleTypeDef *huart); /*!< UART Rx Fifo Full Callback */ - void (* TxFifoEmptyCallback)(struct __UART_HandleTypeDef *huart); /*!< UART Tx Fifo Empty Callback */ - void (* RxEventCallback)(struct __UART_HandleTypeDef *huart, uint16_t Pos); /*!< UART Reception Event Callback */ - - void (* MspInitCallback)(struct __UART_HandleTypeDef *huart); /*!< UART Msp Init callback */ - void (* MspDeInitCallback)(struct __UART_HandleTypeDef *huart); /*!< UART Msp DeInit callback */ -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - -} UART_HandleTypeDef; - -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) -/** - * @brief HAL UART Callback ID enumeration definition - */ -typedef enum -{ - HAL_UART_TX_HALFCOMPLETE_CB_ID = 0x00U, /*!< UART Tx Half Complete Callback ID */ - HAL_UART_TX_COMPLETE_CB_ID = 0x01U, /*!< UART Tx Complete Callback ID */ - HAL_UART_RX_HALFCOMPLETE_CB_ID = 0x02U, /*!< UART Rx Half Complete Callback ID */ - HAL_UART_RX_COMPLETE_CB_ID = 0x03U, /*!< UART Rx Complete Callback ID */ - HAL_UART_ERROR_CB_ID = 0x04U, /*!< UART Error Callback ID */ - HAL_UART_ABORT_COMPLETE_CB_ID = 0x05U, /*!< UART Abort Complete Callback ID */ - HAL_UART_ABORT_TRANSMIT_COMPLETE_CB_ID = 0x06U, /*!< UART Abort Transmit Complete Callback ID */ - HAL_UART_ABORT_RECEIVE_COMPLETE_CB_ID = 0x07U, /*!< UART Abort Receive Complete Callback ID */ - HAL_UART_WAKEUP_CB_ID = 0x08U, /*!< UART Wakeup Callback ID */ - HAL_UART_RX_FIFO_FULL_CB_ID = 0x09U, /*!< UART Rx Fifo Full Callback ID */ - HAL_UART_TX_FIFO_EMPTY_CB_ID = 0x0AU, /*!< UART Tx Fifo Empty Callback ID */ - - HAL_UART_MSPINIT_CB_ID = 0x0BU, /*!< UART MspInit callback ID */ - HAL_UART_MSPDEINIT_CB_ID = 0x0CU /*!< UART MspDeInit callback ID */ - -} HAL_UART_CallbackIDTypeDef; - -/** - * @brief HAL UART Callback pointer definition - */ -typedef void (*pUART_CallbackTypeDef)(UART_HandleTypeDef *huart); /*!< pointer to an UART callback function */ -typedef void (*pUART_RxEventCallbackTypeDef) -(struct __UART_HandleTypeDef *huart, uint16_t Pos); /*!< pointer to a UART Rx Event specific callback function */ - -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - -/** - * @} - */ - -/* Exported constants --------------------------------------------------------*/ -/** @defgroup UART_Exported_Constants UART Exported Constants - * @{ - */ - -/** @defgroup UART_State_Definition UART State Code Definition - * @{ - */ -#define HAL_UART_STATE_RESET 0x00000000U /*!< Peripheral is not initialized - Value is allowed for gState and RxState */ -#define HAL_UART_STATE_READY 0x00000020U /*!< Peripheral Initialized and ready for use - Value is allowed for gState and RxState */ -#define HAL_UART_STATE_BUSY 0x00000024U /*!< an internal process is ongoing - Value is allowed for gState only */ -#define HAL_UART_STATE_BUSY_TX 0x00000021U /*!< Data Transmission process is ongoing - Value is allowed for gState only */ -#define HAL_UART_STATE_BUSY_RX 0x00000022U /*!< Data Reception process is ongoing - Value is allowed for RxState only */ -#define HAL_UART_STATE_BUSY_TX_RX 0x00000023U /*!< Data Transmission and Reception process is ongoing - Not to be used for neither gState nor RxState.Value is result - of combination (Or) between gState and RxState values */ -#define HAL_UART_STATE_TIMEOUT 0x000000A0U /*!< Timeout state - Value is allowed for gState only */ -#define HAL_UART_STATE_ERROR 0x000000E0U /*!< Error - Value is allowed for gState only */ -/** - * @} - */ - -/** @defgroup UART_Error_Definition UART Error Definition - * @{ - */ -#define HAL_UART_ERROR_NONE (0x00000000U) /*!< No error */ -#define HAL_UART_ERROR_PE (0x00000001U) /*!< Parity error */ -#define HAL_UART_ERROR_NE (0x00000002U) /*!< Noise error */ -#define HAL_UART_ERROR_FE (0x00000004U) /*!< Frame error */ -#define HAL_UART_ERROR_ORE (0x00000008U) /*!< Overrun error */ -#define HAL_UART_ERROR_DMA (0x00000010U) /*!< DMA transfer error */ -#define HAL_UART_ERROR_RTO (0x00000020U) /*!< Receiver Timeout error */ - -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) -#define HAL_UART_ERROR_INVALID_CALLBACK (0x00000040U) /*!< Invalid Callback error */ -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ -/** - * @} - */ - -/** @defgroup UART_Stop_Bits UART Number of Stop Bits - * @{ - */ -#define UART_STOPBITS_0_5 USART_CR2_STOP_0 /*!< UART frame with 0.5 stop bit */ -#define UART_STOPBITS_1 0x00000000U /*!< UART frame with 1 stop bit */ -#define UART_STOPBITS_1_5 (USART_CR2_STOP_0 | USART_CR2_STOP_1) /*!< UART frame with 1.5 stop bits */ -#define UART_STOPBITS_2 USART_CR2_STOP_1 /*!< UART frame with 2 stop bits */ -/** - * @} - */ - -/** @defgroup UART_Parity UART Parity - * @{ - */ -#define UART_PARITY_NONE 0x00000000U /*!< No parity */ -#define UART_PARITY_EVEN USART_CR1_PCE /*!< Even parity */ -#define UART_PARITY_ODD (USART_CR1_PCE | USART_CR1_PS) /*!< Odd parity */ -/** - * @} - */ - -/** @defgroup UART_Hardware_Flow_Control UART Hardware Flow Control - * @{ - */ -#define UART_HWCONTROL_NONE 0x00000000U /*!< No hardware control */ -#define UART_HWCONTROL_RTS USART_CR3_RTSE /*!< Request To Send */ -#define UART_HWCONTROL_CTS USART_CR3_CTSE /*!< Clear To Send */ -#define UART_HWCONTROL_RTS_CTS (USART_CR3_RTSE | USART_CR3_CTSE) /*!< Request and Clear To Send */ -/** - * @} - */ - -/** @defgroup UART_Mode UART Transfer Mode - * @{ - */ -#define UART_MODE_RX USART_CR1_RE /*!< RX mode */ -#define UART_MODE_TX USART_CR1_TE /*!< TX mode */ -#define UART_MODE_TX_RX (USART_CR1_TE |USART_CR1_RE) /*!< RX and TX mode */ -/** - * @} - */ - -/** @defgroup UART_State UART State - * @{ - */ -#define UART_STATE_DISABLE 0x00000000U /*!< UART disabled */ -#define UART_STATE_ENABLE USART_CR1_UE /*!< UART enabled */ -/** - * @} - */ - -/** @defgroup UART_Over_Sampling UART Over Sampling - * @{ - */ -#define UART_OVERSAMPLING_16 0x00000000U /*!< Oversampling by 16 */ -#define UART_OVERSAMPLING_8 USART_CR1_OVER8 /*!< Oversampling by 8 */ -/** - * @} - */ - -/** @defgroup UART_OneBit_Sampling UART One Bit Sampling Method - * @{ - */ -#define UART_ONE_BIT_SAMPLE_DISABLE 0x00000000U /*!< One-bit sampling disable */ -#define UART_ONE_BIT_SAMPLE_ENABLE USART_CR3_ONEBIT /*!< One-bit sampling enable */ -/** - * @} - */ - -/** @defgroup UART_ClockPrescaler UART Clock Prescaler - * @{ - */ -#define UART_PRESCALER_DIV1 0x00000000U /*!< fclk_pres = fclk */ -#define UART_PRESCALER_DIV2 0x00000001U /*!< fclk_pres = fclk/2 */ -#define UART_PRESCALER_DIV4 0x00000002U /*!< fclk_pres = fclk/4 */ -#define UART_PRESCALER_DIV6 0x00000003U /*!< fclk_pres = fclk/6 */ -#define UART_PRESCALER_DIV8 0x00000004U /*!< fclk_pres = fclk/8 */ -#define UART_PRESCALER_DIV10 0x00000005U /*!< fclk_pres = fclk/10 */ -#define UART_PRESCALER_DIV12 0x00000006U /*!< fclk_pres = fclk/12 */ -#define UART_PRESCALER_DIV16 0x00000007U /*!< fclk_pres = fclk/16 */ -#define UART_PRESCALER_DIV32 0x00000008U /*!< fclk_pres = fclk/32 */ -#define UART_PRESCALER_DIV64 0x00000009U /*!< fclk_pres = fclk/64 */ -#define UART_PRESCALER_DIV128 0x0000000AU /*!< fclk_pres = fclk/128 */ -#define UART_PRESCALER_DIV256 0x0000000BU /*!< fclk_pres = fclk/256 */ -/** - * @} - */ - -/** @defgroup UART_AutoBaud_Rate_Mode UART Advanced Feature AutoBaud Rate Mode - * @{ - */ -#define UART_ADVFEATURE_AUTOBAUDRATE_ONSTARTBIT 0x00000000U /*!< Auto Baud rate detection - on start bit */ -#define UART_ADVFEATURE_AUTOBAUDRATE_ONFALLINGEDGE USART_CR2_ABRMODE_0 /*!< Auto Baud rate detection - on falling edge */ -#define UART_ADVFEATURE_AUTOBAUDRATE_ON0X7FFRAME USART_CR2_ABRMODE_1 /*!< Auto Baud rate detection - on 0x7F frame detection */ -#define UART_ADVFEATURE_AUTOBAUDRATE_ON0X55FRAME USART_CR2_ABRMODE /*!< Auto Baud rate detection - on 0x55 frame detection */ -/** - * @} - */ - -/** @defgroup UART_Receiver_Timeout UART Receiver Timeout - * @{ - */ -#define UART_RECEIVER_TIMEOUT_DISABLE 0x00000000U /*!< UART Receiver Timeout disable */ -#define UART_RECEIVER_TIMEOUT_ENABLE USART_CR2_RTOEN /*!< UART Receiver Timeout enable */ -/** - * @} - */ - -/** @defgroup UART_LIN UART Local Interconnection Network mode - * @{ - */ -#define UART_LIN_DISABLE 0x00000000U /*!< Local Interconnect Network disable */ -#define UART_LIN_ENABLE USART_CR2_LINEN /*!< Local Interconnect Network enable */ -/** - * @} - */ - -/** @defgroup UART_LIN_Break_Detection UART LIN Break Detection - * @{ - */ -#define UART_LINBREAKDETECTLENGTH_10B 0x00000000U /*!< LIN 10-bit break detection length */ -#define UART_LINBREAKDETECTLENGTH_11B USART_CR2_LBDL /*!< LIN 11-bit break detection length */ -/** - * @} - */ - -/** @defgroup UART_DMA_Tx UART DMA Tx - * @{ - */ -#define UART_DMA_TX_DISABLE 0x00000000U /*!< UART DMA TX disabled */ -#define UART_DMA_TX_ENABLE USART_CR3_DMAT /*!< UART DMA TX enabled */ -/** - * @} - */ - -/** @defgroup UART_DMA_Rx UART DMA Rx - * @{ - */ -#define UART_DMA_RX_DISABLE 0x00000000U /*!< UART DMA RX disabled */ -#define UART_DMA_RX_ENABLE USART_CR3_DMAR /*!< UART DMA RX enabled */ -/** - * @} - */ - -/** @defgroup UART_Half_Duplex_Selection UART Half Duplex Selection - * @{ - */ -#define UART_HALF_DUPLEX_DISABLE 0x00000000U /*!< UART half-duplex disabled */ -#define UART_HALF_DUPLEX_ENABLE USART_CR3_HDSEL /*!< UART half-duplex enabled */ -/** - * @} - */ - -/** @defgroup UART_WakeUp_Methods UART WakeUp Methods - * @{ - */ -#define UART_WAKEUPMETHOD_IDLELINE 0x00000000U /*!< UART wake-up on idle line */ -#define UART_WAKEUPMETHOD_ADDRESSMARK USART_CR1_WAKE /*!< UART wake-up on address mark */ -/** - * @} - */ - -/** @defgroup UART_Request_Parameters UART Request Parameters - * @{ - */ -#define UART_AUTOBAUD_REQUEST USART_RQR_ABRRQ /*!< Auto-Baud Rate Request */ -#define UART_SENDBREAK_REQUEST USART_RQR_SBKRQ /*!< Send Break Request */ -#define UART_MUTE_MODE_REQUEST USART_RQR_MMRQ /*!< Mute Mode Request */ -#define UART_RXDATA_FLUSH_REQUEST USART_RQR_RXFRQ /*!< Receive Data flush Request */ -#define UART_TXDATA_FLUSH_REQUEST USART_RQR_TXFRQ /*!< Transmit data flush Request */ -/** - * @} - */ - -/** @defgroup UART_Advanced_Features_Initialization_Type UART Advanced Feature Initialization Type - * @{ - */ -#define UART_ADVFEATURE_NO_INIT 0x00000000U /*!< No advanced feature initialization */ -#define UART_ADVFEATURE_TXINVERT_INIT 0x00000001U /*!< TX pin active level inversion */ -#define UART_ADVFEATURE_RXINVERT_INIT 0x00000002U /*!< RX pin active level inversion */ -#define UART_ADVFEATURE_DATAINVERT_INIT 0x00000004U /*!< Binary data inversion */ -#define UART_ADVFEATURE_SWAP_INIT 0x00000008U /*!< TX/RX pins swap */ -#define UART_ADVFEATURE_RXOVERRUNDISABLE_INIT 0x00000010U /*!< RX overrun disable */ -#define UART_ADVFEATURE_DMADISABLEONERROR_INIT 0x00000020U /*!< DMA disable on Reception Error */ -#define UART_ADVFEATURE_AUTOBAUDRATE_INIT 0x00000040U /*!< Auto Baud rate detection initialization */ -#define UART_ADVFEATURE_MSBFIRST_INIT 0x00000080U /*!< Most significant bit sent/received first */ -/** - * @} - */ - -/** @defgroup UART_Tx_Inv UART Advanced Feature TX Pin Active Level Inversion - * @{ - */ -#define UART_ADVFEATURE_TXINV_DISABLE 0x00000000U /*!< TX pin active level inversion disable */ -#define UART_ADVFEATURE_TXINV_ENABLE USART_CR2_TXINV /*!< TX pin active level inversion enable */ -/** - * @} - */ - -/** @defgroup UART_Rx_Inv UART Advanced Feature RX Pin Active Level Inversion - * @{ - */ -#define UART_ADVFEATURE_RXINV_DISABLE 0x00000000U /*!< RX pin active level inversion disable */ -#define UART_ADVFEATURE_RXINV_ENABLE USART_CR2_RXINV /*!< RX pin active level inversion enable */ -/** - * @} - */ - -/** @defgroup UART_Data_Inv UART Advanced Feature Binary Data Inversion - * @{ - */ -#define UART_ADVFEATURE_DATAINV_DISABLE 0x00000000U /*!< Binary data inversion disable */ -#define UART_ADVFEATURE_DATAINV_ENABLE USART_CR2_DATAINV /*!< Binary data inversion enable */ -/** - * @} - */ - -/** @defgroup UART_Rx_Tx_Swap UART Advanced Feature RX TX Pins Swap - * @{ - */ -#define UART_ADVFEATURE_SWAP_DISABLE 0x00000000U /*!< TX/RX pins swap disable */ -#define UART_ADVFEATURE_SWAP_ENABLE USART_CR2_SWAP /*!< TX/RX pins swap enable */ -/** - * @} - */ - -/** @defgroup UART_Overrun_Disable UART Advanced Feature Overrun Disable - * @{ - */ -#define UART_ADVFEATURE_OVERRUN_ENABLE 0x00000000U /*!< RX overrun enable */ -#define UART_ADVFEATURE_OVERRUN_DISABLE USART_CR3_OVRDIS /*!< RX overrun disable */ -/** - * @} - */ - -/** @defgroup UART_AutoBaudRate_Enable UART Advanced Feature Auto BaudRate Enable - * @{ - */ -#define UART_ADVFEATURE_AUTOBAUDRATE_DISABLE 0x00000000U /*!< RX Auto Baud rate detection enable */ -#define UART_ADVFEATURE_AUTOBAUDRATE_ENABLE USART_CR2_ABREN /*!< RX Auto Baud rate detection disable */ -/** - * @} - */ - -/** @defgroup UART_DMA_Disable_on_Rx_Error UART Advanced Feature DMA Disable On Rx Error - * @{ - */ -#define UART_ADVFEATURE_DMA_ENABLEONRXERROR 0x00000000U /*!< DMA enable on Reception Error */ -#define UART_ADVFEATURE_DMA_DISABLEONRXERROR USART_CR3_DDRE /*!< DMA disable on Reception Error */ -/** - * @} - */ - -/** @defgroup UART_MSB_First UART Advanced Feature MSB First - * @{ - */ -#define UART_ADVFEATURE_MSBFIRST_DISABLE 0x00000000U /*!< Most significant bit sent/received - first disable */ -#define UART_ADVFEATURE_MSBFIRST_ENABLE USART_CR2_MSBFIRST /*!< Most significant bit sent/received - first enable */ -/** - * @} - */ - -/** @defgroup UART_Stop_Mode_Enable UART Advanced Feature Stop Mode Enable - * @{ - */ -#define UART_ADVFEATURE_STOPMODE_DISABLE 0x00000000U /*!< UART stop mode disable */ -#define UART_ADVFEATURE_STOPMODE_ENABLE USART_CR1_UESM /*!< UART stop mode enable */ -/** - * @} - */ - -/** @defgroup UART_Mute_Mode UART Advanced Feature Mute Mode Enable - * @{ - */ -#define UART_ADVFEATURE_MUTEMODE_DISABLE 0x00000000U /*!< UART mute mode disable */ -#define UART_ADVFEATURE_MUTEMODE_ENABLE USART_CR1_MME /*!< UART mute mode enable */ -/** - * @} - */ - -/** @defgroup UART_CR2_ADDRESS_LSB_POS UART Address-matching LSB Position In CR2 Register - * @{ - */ -#define UART_CR2_ADDRESS_LSB_POS 24U /*!< UART address-matching LSB position in CR2 register */ -/** - * @} - */ - -/** @defgroup UART_WakeUp_from_Stop_Selection UART WakeUp From Stop Selection - * @{ - */ -#define UART_WAKEUP_ON_ADDRESS 0x00000000U /*!< UART wake-up on address */ -#define UART_WAKEUP_ON_STARTBIT USART_CR3_WUS_1 /*!< UART wake-up on start bit */ -#define UART_WAKEUP_ON_READDATA_NONEMPTY USART_CR3_WUS /*!< UART wake-up on receive data register - not empty or RXFIFO is not empty */ -/** - * @} - */ - -/** @defgroup UART_DriverEnable_Polarity UART DriverEnable Polarity - * @{ - */ -#define UART_DE_POLARITY_HIGH 0x00000000U /*!< Driver enable signal is active high */ -#define UART_DE_POLARITY_LOW USART_CR3_DEP /*!< Driver enable signal is active low */ -/** - * @} - */ - -/** @defgroup UART_CR1_DEAT_ADDRESS_LSB_POS UART Driver Enable Assertion Time LSB Position In CR1 Register - * @{ - */ -#define UART_CR1_DEAT_ADDRESS_LSB_POS 21U /*!< UART Driver Enable assertion time LSB - position in CR1 register */ -/** - * @} - */ - -/** @defgroup UART_CR1_DEDT_ADDRESS_LSB_POS UART Driver Enable DeAssertion Time LSB Position In CR1 Register - * @{ - */ -#define UART_CR1_DEDT_ADDRESS_LSB_POS 16U /*!< UART Driver Enable de-assertion time LSB - position in CR1 register */ -/** - * @} - */ - -/** @defgroup UART_Interruption_Mask UART Interruptions Flag Mask - * @{ - */ -#define UART_IT_MASK 0x001FU /*!< UART interruptions flags mask */ -/** - * @} - */ - -/** @defgroup UART_TimeOut_Value UART polling-based communications time-out value - * @{ - */ -#define HAL_UART_TIMEOUT_VALUE 0x1FFFFFFU /*!< UART polling-based communications time-out value */ -/** - * @} - */ - -/** @defgroup UART_Flags UART Status Flags - * Elements values convention: 0xXXXX - * - 0xXXXX : Flag mask in the ISR register - * @{ - */ -#define UART_FLAG_TXFT USART_ISR_TXFT /*!< UART TXFIFO threshold flag */ -#define UART_FLAG_RXFT USART_ISR_RXFT /*!< UART RXFIFO threshold flag */ -#define UART_FLAG_RXFF USART_ISR_RXFF /*!< UART RXFIFO Full flag */ -#define UART_FLAG_TXFE USART_ISR_TXFE /*!< UART TXFIFO Empty flag */ -#define UART_FLAG_REACK USART_ISR_REACK /*!< UART receive enable acknowledge flag */ -#define UART_FLAG_TEACK USART_ISR_TEACK /*!< UART transmit enable acknowledge flag */ -#define UART_FLAG_WUF USART_ISR_WUF /*!< UART wake-up from stop mode flag */ -#define UART_FLAG_RWU USART_ISR_RWU /*!< UART receiver wake-up from mute mode flag */ -#define UART_FLAG_SBKF USART_ISR_SBKF /*!< UART send break flag */ -#define UART_FLAG_CMF USART_ISR_CMF /*!< UART character match flag */ -#define UART_FLAG_BUSY USART_ISR_BUSY /*!< UART busy flag */ -#define UART_FLAG_ABRF USART_ISR_ABRF /*!< UART auto Baud rate flag */ -#define UART_FLAG_ABRE USART_ISR_ABRE /*!< UART auto Baud rate error */ -#define UART_FLAG_RTOF USART_ISR_RTOF /*!< UART receiver timeout flag */ -#define UART_FLAG_CTS USART_ISR_CTS /*!< UART clear to send flag */ -#define UART_FLAG_CTSIF USART_ISR_CTSIF /*!< UART clear to send interrupt flag */ -#define UART_FLAG_LBDF USART_ISR_LBDF /*!< UART LIN break detection flag */ -#define UART_FLAG_TXE USART_ISR_TXE_TXFNF /*!< UART transmit data register empty */ -#define UART_FLAG_TXFNF USART_ISR_TXE_TXFNF /*!< UART TXFIFO not full */ -#define UART_FLAG_TC USART_ISR_TC /*!< UART transmission complete */ -#define UART_FLAG_RXNE USART_ISR_RXNE_RXFNE /*!< UART read data register not empty */ -#define UART_FLAG_RXFNE USART_ISR_RXNE_RXFNE /*!< UART RXFIFO not empty */ -#define UART_FLAG_IDLE USART_ISR_IDLE /*!< UART idle flag */ -#define UART_FLAG_ORE USART_ISR_ORE /*!< UART overrun error */ -#define UART_FLAG_NE USART_ISR_NE /*!< UART noise error */ -#define UART_FLAG_FE USART_ISR_FE /*!< UART frame error */ -#define UART_FLAG_PE USART_ISR_PE /*!< UART parity error */ -/** - * @} - */ - -/** @defgroup UART_Interrupt_definition UART Interrupts Definition - * Elements values convention: 000ZZZZZ0XXYYYYYb - * - YYYYY : Interrupt source position in the XX register (5bits) - * - XX : Interrupt source register (2bits) - * - 01: CR1 register - * - 10: CR2 register - * - 11: CR3 register - * - ZZZZZ : Flag position in the ISR register(5bits) - * Elements values convention: 000000000XXYYYYYb - * - YYYYY : Interrupt source position in the XX register (5bits) - * - XX : Interrupt source register (2bits) - * - 01: CR1 register - * - 10: CR2 register - * - 11: CR3 register - * Elements values convention: 0000ZZZZ00000000b - * - ZZZZ : Flag position in the ISR register(4bits) - * @{ - */ -#define UART_IT_PE 0x0028U /*!< UART parity error interruption */ -#define UART_IT_TXE 0x0727U /*!< UART transmit data register empty interruption */ -#define UART_IT_TXFNF 0x0727U /*!< UART TX FIFO not full interruption */ -#define UART_IT_TC 0x0626U /*!< UART transmission complete interruption */ -#define UART_IT_RXNE 0x0525U /*!< UART read data register not empty interruption */ -#define UART_IT_RXFNE 0x0525U /*!< UART RXFIFO not empty interruption */ -#define UART_IT_IDLE 0x0424U /*!< UART idle interruption */ -#define UART_IT_LBD 0x0846U /*!< UART LIN break detection interruption */ -#define UART_IT_CTS 0x096AU /*!< UART CTS interruption */ -#define UART_IT_CM 0x112EU /*!< UART character match interruption */ -#define UART_IT_WUF 0x1476U /*!< UART wake-up from stop mode interruption */ -#define UART_IT_RXFF 0x183FU /*!< UART RXFIFO full interruption */ -#define UART_IT_TXFE 0x173EU /*!< UART TXFIFO empty interruption */ -#define UART_IT_RXFT 0x1A7CU /*!< UART RXFIFO threshold reached interruption */ -#define UART_IT_TXFT 0x1B77U /*!< UART TXFIFO threshold reached interruption */ -#define UART_IT_RTO 0x0B3AU /*!< UART receiver timeout interruption */ - -#define UART_IT_ERR 0x0060U /*!< UART error interruption */ - -#define UART_IT_ORE 0x0300U /*!< UART overrun error interruption */ -#define UART_IT_NE 0x0200U /*!< UART noise error interruption */ -#define UART_IT_FE 0x0100U /*!< UART frame error interruption */ -/** - * @} - */ - -/** @defgroup UART_IT_CLEAR_Flags UART Interruption Clear Flags - * @{ - */ -#define UART_CLEAR_PEF USART_ICR_PECF /*!< Parity Error Clear Flag */ -#define UART_CLEAR_FEF USART_ICR_FECF /*!< Framing Error Clear Flag */ -#define UART_CLEAR_NEF USART_ICR_NECF /*!< Noise Error detected Clear Flag */ -#define UART_CLEAR_OREF USART_ICR_ORECF /*!< Overrun Error Clear Flag */ -#define UART_CLEAR_IDLEF USART_ICR_IDLECF /*!< IDLE line detected Clear Flag */ -#define UART_CLEAR_TXFECF USART_ICR_TXFECF /*!< TXFIFO empty clear flag */ -#define UART_CLEAR_TCF USART_ICR_TCCF /*!< Transmission Complete Clear Flag */ -#define UART_CLEAR_LBDF USART_ICR_LBDCF /*!< LIN Break Detection Clear Flag */ -#define UART_CLEAR_CTSF USART_ICR_CTSCF /*!< CTS Interrupt Clear Flag */ -#define UART_CLEAR_CMF USART_ICR_CMCF /*!< Character Match Clear Flag */ -#define UART_CLEAR_WUF USART_ICR_WUCF /*!< Wake Up from stop mode Clear Flag */ -#define UART_CLEAR_RTOF USART_ICR_RTOCF /*!< UART receiver timeout clear flag */ -/** - * @} - */ - -/** @defgroup UART_Reception_Type_Values UART Reception type values - * @{ - */ -#define HAL_UART_RECEPTION_STANDARD (0x00000000U) /*!< Standard reception */ -#define HAL_UART_RECEPTION_TOIDLE (0x00000001U) /*!< Reception till completion or IDLE event */ -#define HAL_UART_RECEPTION_TORTO (0x00000002U) /*!< Reception till completion or RTO event */ -#define HAL_UART_RECEPTION_TOCHARMATCH (0x00000003U) /*!< Reception till completion or CM event */ -/** - * @} - */ - -/** @defgroup UART_RxEvent_Type_Values UART RxEvent type values - * @{ - */ -#define HAL_UART_RXEVENT_TC (0x00000000U) /*!< RxEvent linked to Transfer Complete event */ -#define HAL_UART_RXEVENT_HT (0x00000001U) /*!< RxEvent linked to Half Transfer event */ -#define HAL_UART_RXEVENT_IDLE (0x00000002U) /*!< RxEvent linked to IDLE event */ -/** - * @} - */ - -/** - * @} - */ - -/* Exported macros -----------------------------------------------------------*/ -/** @defgroup UART_Exported_Macros UART Exported Macros - * @{ - */ - -/** @brief Reset UART handle states. - * @param __HANDLE__ UART handle. - * @retval None - */ -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) -#define __HAL_UART_RESET_HANDLE_STATE(__HANDLE__) do{ \ - (__HANDLE__)->gState = HAL_UART_STATE_RESET; \ - (__HANDLE__)->RxState = HAL_UART_STATE_RESET; \ - (__HANDLE__)->MspInitCallback = NULL; \ - (__HANDLE__)->MspDeInitCallback = NULL; \ - } while(0U) -#else -#define __HAL_UART_RESET_HANDLE_STATE(__HANDLE__) do{ \ - (__HANDLE__)->gState = HAL_UART_STATE_RESET; \ - (__HANDLE__)->RxState = HAL_UART_STATE_RESET; \ - } while(0U) -#endif /*USE_HAL_UART_REGISTER_CALLBACKS */ - -/** @brief Flush the UART Data registers. - * @param __HANDLE__ specifies the UART Handle. - * @retval None - */ -#define __HAL_UART_FLUSH_DRREGISTER(__HANDLE__) \ - do{ \ - SET_BIT((__HANDLE__)->Instance->RQR, UART_RXDATA_FLUSH_REQUEST); \ - SET_BIT((__HANDLE__)->Instance->RQR, UART_TXDATA_FLUSH_REQUEST); \ - } while(0U) - -/** @brief Clear the specified UART pending flag. - * @param __HANDLE__ specifies the UART Handle. - * @param __FLAG__ specifies the flag to check. - * This parameter can be any combination of the following values: - * @arg @ref UART_CLEAR_PEF Parity Error Clear Flag - * @arg @ref UART_CLEAR_FEF Framing Error Clear Flag - * @arg @ref UART_CLEAR_NEF Noise detected Clear Flag - * @arg @ref UART_CLEAR_OREF Overrun Error Clear Flag - * @arg @ref UART_CLEAR_IDLEF IDLE line detected Clear Flag - * @arg @ref UART_CLEAR_TXFECF TXFIFO empty clear Flag - * @arg @ref UART_CLEAR_TCF Transmission Complete Clear Flag - * @arg @ref UART_CLEAR_RTOF Receiver Timeout clear flag - * @arg @ref UART_CLEAR_LBDF LIN Break Detection Clear Flag - * @arg @ref UART_CLEAR_CTSF CTS Interrupt Clear Flag - * @arg @ref UART_CLEAR_CMF Character Match Clear Flag - * @arg @ref UART_CLEAR_WUF Wake Up from stop mode Clear Flag - * @retval None - */ -#define __HAL_UART_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->ICR = (__FLAG__)) - -/** @brief Clear the UART PE pending flag. - * @param __HANDLE__ specifies the UART Handle. - * @retval None - */ -#define __HAL_UART_CLEAR_PEFLAG(__HANDLE__) __HAL_UART_CLEAR_FLAG((__HANDLE__), UART_CLEAR_PEF) - -/** @brief Clear the UART FE pending flag. - * @param __HANDLE__ specifies the UART Handle. - * @retval None - */ -#define __HAL_UART_CLEAR_FEFLAG(__HANDLE__) __HAL_UART_CLEAR_FLAG((__HANDLE__), UART_CLEAR_FEF) - -/** @brief Clear the UART NE pending flag. - * @param __HANDLE__ specifies the UART Handle. - * @retval None - */ -#define __HAL_UART_CLEAR_NEFLAG(__HANDLE__) __HAL_UART_CLEAR_FLAG((__HANDLE__), UART_CLEAR_NEF) - -/** @brief Clear the UART ORE pending flag. - * @param __HANDLE__ specifies the UART Handle. - * @retval None - */ -#define __HAL_UART_CLEAR_OREFLAG(__HANDLE__) __HAL_UART_CLEAR_FLAG((__HANDLE__), UART_CLEAR_OREF) - -/** @brief Clear the UART IDLE pending flag. - * @param __HANDLE__ specifies the UART Handle. - * @retval None - */ -#define __HAL_UART_CLEAR_IDLEFLAG(__HANDLE__) __HAL_UART_CLEAR_FLAG((__HANDLE__), UART_CLEAR_IDLEF) - -/** @brief Clear the UART TX FIFO empty clear flag. - * @param __HANDLE__ specifies the UART Handle. - * @retval None - */ -#define __HAL_UART_CLEAR_TXFECF(__HANDLE__) __HAL_UART_CLEAR_FLAG((__HANDLE__), UART_CLEAR_TXFECF) - -/** @brief Check whether the specified UART flag is set or not. - * @param __HANDLE__ specifies the UART Handle. - * @param __FLAG__ specifies the flag to check. - * This parameter can be one of the following values: - * @arg @ref UART_FLAG_TXFT TXFIFO threshold flag - * @arg @ref UART_FLAG_RXFT RXFIFO threshold flag - * @arg @ref UART_FLAG_RXFF RXFIFO Full flag - * @arg @ref UART_FLAG_TXFE TXFIFO Empty flag - * @arg @ref UART_FLAG_REACK Receive enable acknowledge flag - * @arg @ref UART_FLAG_TEACK Transmit enable acknowledge flag - * @arg @ref UART_FLAG_WUF Wake up from stop mode flag - * @arg @ref UART_FLAG_RWU Receiver wake up flag (if the UART in mute mode) - * @arg @ref UART_FLAG_SBKF Send Break flag - * @arg @ref UART_FLAG_CMF Character match flag - * @arg @ref UART_FLAG_BUSY Busy flag - * @arg @ref UART_FLAG_ABRF Auto Baud rate detection flag - * @arg @ref UART_FLAG_ABRE Auto Baud rate detection error flag - * @arg @ref UART_FLAG_CTS CTS Change flag - * @arg @ref UART_FLAG_LBDF LIN Break detection flag - * @arg @ref UART_FLAG_TXE Transmit data register empty flag - * @arg @ref UART_FLAG_TXFNF UART TXFIFO not full flag - * @arg @ref UART_FLAG_TC Transmission Complete flag - * @arg @ref UART_FLAG_RXNE Receive data register not empty flag - * @arg @ref UART_FLAG_RXFNE UART RXFIFO not empty flag - * @arg @ref UART_FLAG_RTOF Receiver Timeout flag - * @arg @ref UART_FLAG_IDLE Idle Line detection flag - * @arg @ref UART_FLAG_ORE Overrun Error flag - * @arg @ref UART_FLAG_NE Noise Error flag - * @arg @ref UART_FLAG_FE Framing Error flag - * @arg @ref UART_FLAG_PE Parity Error flag - * @retval The new state of __FLAG__ (TRUE or FALSE). - */ -#define __HAL_UART_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->ISR & (__FLAG__)) == (__FLAG__)) - -/** @brief Enable the specified UART interrupt. - * @param __HANDLE__ specifies the UART Handle. - * @param __INTERRUPT__ specifies the UART interrupt source to enable. - * This parameter can be one of the following values: - * @arg @ref UART_IT_RXFF RXFIFO Full interrupt - * @arg @ref UART_IT_TXFE TXFIFO Empty interrupt - * @arg @ref UART_IT_RXFT RXFIFO threshold interrupt - * @arg @ref UART_IT_TXFT TXFIFO threshold interrupt - * @arg @ref UART_IT_WUF Wakeup from stop mode interrupt - * @arg @ref UART_IT_CM Character match interrupt - * @arg @ref UART_IT_CTS CTS change interrupt - * @arg @ref UART_IT_LBD LIN Break detection interrupt - * @arg @ref UART_IT_TXE Transmit Data Register empty interrupt - * @arg @ref UART_IT_TXFNF TX FIFO not full interrupt - * @arg @ref UART_IT_TC Transmission complete interrupt - * @arg @ref UART_IT_RXNE Receive Data register not empty interrupt - * @arg @ref UART_IT_RXFNE RXFIFO not empty interrupt - * @arg @ref UART_IT_RTO Receive Timeout interrupt - * @arg @ref UART_IT_IDLE Idle line detection interrupt - * @arg @ref UART_IT_PE Parity Error interrupt - * @arg @ref UART_IT_ERR Error interrupt (frame error, noise error, overrun error) - * @retval None - */ -#define __HAL_UART_ENABLE_IT(__HANDLE__, __INTERRUPT__) (\ - ((((uint8_t)(__INTERRUPT__)) >> 5U) == 1U)?\ - ((__HANDLE__)->Instance->CR1 |= (1U <<\ - ((__INTERRUPT__) & UART_IT_MASK))): \ - ((((uint8_t)(__INTERRUPT__)) >> 5U) == 2U)?\ - ((__HANDLE__)->Instance->CR2 |= (1U <<\ - ((__INTERRUPT__) & UART_IT_MASK))): \ - ((__HANDLE__)->Instance->CR3 |= (1U <<\ - ((__INTERRUPT__) & UART_IT_MASK)))) - -/** @brief Disable the specified UART interrupt. - * @param __HANDLE__ specifies the UART Handle. - * @param __INTERRUPT__ specifies the UART interrupt source to disable. - * This parameter can be one of the following values: - * @arg @ref UART_IT_RXFF RXFIFO Full interrupt - * @arg @ref UART_IT_TXFE TXFIFO Empty interrupt - * @arg @ref UART_IT_RXFT RXFIFO threshold interrupt - * @arg @ref UART_IT_TXFT TXFIFO threshold interrupt - * @arg @ref UART_IT_WUF Wakeup from stop mode interrupt - * @arg @ref UART_IT_CM Character match interrupt - * @arg @ref UART_IT_CTS CTS change interrupt - * @arg @ref UART_IT_LBD LIN Break detection interrupt - * @arg @ref UART_IT_TXE Transmit Data Register empty interrupt - * @arg @ref UART_IT_TXFNF TX FIFO not full interrupt - * @arg @ref UART_IT_TC Transmission complete interrupt - * @arg @ref UART_IT_RXNE Receive Data register not empty interrupt - * @arg @ref UART_IT_RXFNE RXFIFO not empty interrupt - * @arg @ref UART_IT_RTO Receive Timeout interrupt - * @arg @ref UART_IT_IDLE Idle line detection interrupt - * @arg @ref UART_IT_PE Parity Error interrupt - * @arg @ref UART_IT_ERR Error interrupt (Frame error, noise error, overrun error) - * @retval None - */ -#define __HAL_UART_DISABLE_IT(__HANDLE__, __INTERRUPT__) (\ - ((((uint8_t)(__INTERRUPT__)) >> 5U) == 1U)?\ - ((__HANDLE__)->Instance->CR1 &= ~ (1U <<\ - ((__INTERRUPT__) & UART_IT_MASK))): \ - ((((uint8_t)(__INTERRUPT__)) >> 5U) == 2U)?\ - ((__HANDLE__)->Instance->CR2 &= ~ (1U <<\ - ((__INTERRUPT__) & UART_IT_MASK))): \ - ((__HANDLE__)->Instance->CR3 &= ~ (1U <<\ - ((__INTERRUPT__) & UART_IT_MASK)))) - -/** @brief Check whether the specified UART interrupt has occurred or not. - * @param __HANDLE__ specifies the UART Handle. - * @param __INTERRUPT__ specifies the UART interrupt to check. - * This parameter can be one of the following values: - * @arg @ref UART_IT_RXFF RXFIFO Full interrupt - * @arg @ref UART_IT_TXFE TXFIFO Empty interrupt - * @arg @ref UART_IT_RXFT RXFIFO threshold interrupt - * @arg @ref UART_IT_TXFT TXFIFO threshold interrupt - * @arg @ref UART_IT_WUF Wakeup from stop mode interrupt - * @arg @ref UART_IT_CM Character match interrupt - * @arg @ref UART_IT_CTS CTS change interrupt - * @arg @ref UART_IT_LBD LIN Break detection interrupt - * @arg @ref UART_IT_TXE Transmit Data Register empty interrupt - * @arg @ref UART_IT_TXFNF TX FIFO not full interrupt - * @arg @ref UART_IT_TC Transmission complete interrupt - * @arg @ref UART_IT_RXNE Receive Data register not empty interrupt - * @arg @ref UART_IT_RXFNE RXFIFO not empty interrupt - * @arg @ref UART_IT_RTO Receive Timeout interrupt - * @arg @ref UART_IT_IDLE Idle line detection interrupt - * @arg @ref UART_IT_PE Parity Error interrupt - * @arg @ref UART_IT_ERR Error interrupt (Frame error, noise error, overrun error) - * @retval The new state of __INTERRUPT__ (SET or RESET). - */ -#define __HAL_UART_GET_IT(__HANDLE__, __INTERRUPT__) ((((__HANDLE__)->Instance->ISR\ - & (1U << ((__INTERRUPT__)>> 8U))) != RESET) ? SET : RESET) - -/** @brief Check whether the specified UART interrupt source is enabled or not. - * @param __HANDLE__ specifies the UART Handle. - * @param __INTERRUPT__ specifies the UART interrupt source to check. - * This parameter can be one of the following values: - * @arg @ref UART_IT_RXFF RXFIFO Full interrupt - * @arg @ref UART_IT_TXFE TXFIFO Empty interrupt - * @arg @ref UART_IT_RXFT RXFIFO threshold interrupt - * @arg @ref UART_IT_TXFT TXFIFO threshold interrupt - * @arg @ref UART_IT_WUF Wakeup from stop mode interrupt - * @arg @ref UART_IT_CM Character match interrupt - * @arg @ref UART_IT_CTS CTS change interrupt - * @arg @ref UART_IT_LBD LIN Break detection interrupt - * @arg @ref UART_IT_TXE Transmit Data Register empty interrupt - * @arg @ref UART_IT_TXFNF TX FIFO not full interrupt - * @arg @ref UART_IT_TC Transmission complete interrupt - * @arg @ref UART_IT_RXNE Receive Data register not empty interrupt - * @arg @ref UART_IT_RXFNE RXFIFO not empty interrupt - * @arg @ref UART_IT_RTO Receive Timeout interrupt - * @arg @ref UART_IT_IDLE Idle line detection interrupt - * @arg @ref UART_IT_PE Parity Error interrupt - * @arg @ref UART_IT_ERR Error interrupt (Frame error, noise error, overrun error) - * @retval The new state of __INTERRUPT__ (SET or RESET). - */ -#define __HAL_UART_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((((((((uint8_t)(__INTERRUPT__)) >> 5U) == 1U) ?\ - (__HANDLE__)->Instance->CR1 : \ - (((((uint8_t)(__INTERRUPT__)) >> 5U) == 2U) ?\ - (__HANDLE__)->Instance->CR2 : \ - (__HANDLE__)->Instance->CR3)) & (1U <<\ - (((uint16_t)(__INTERRUPT__)) &\ - UART_IT_MASK))) != RESET) ? SET : RESET) - -/** @brief Clear the specified UART ISR flag, in setting the proper ICR register flag. - * @param __HANDLE__ specifies the UART Handle. - * @param __IT_CLEAR__ specifies the interrupt clear register flag that needs to be set - * to clear the corresponding interrupt - * This parameter can be one of the following values: - * @arg @ref UART_CLEAR_PEF Parity Error Clear Flag - * @arg @ref UART_CLEAR_FEF Framing Error Clear Flag - * @arg @ref UART_CLEAR_NEF Noise detected Clear Flag - * @arg @ref UART_CLEAR_OREF Overrun Error Clear Flag - * @arg @ref UART_CLEAR_IDLEF IDLE line detected Clear Flag - * @arg @ref UART_CLEAR_RTOF Receiver timeout clear flag - * @arg @ref UART_CLEAR_TXFECF TXFIFO empty Clear Flag - * @arg @ref UART_CLEAR_TCF Transmission Complete Clear Flag - * @arg @ref UART_CLEAR_LBDF LIN Break Detection Clear Flag - * @arg @ref UART_CLEAR_CTSF CTS Interrupt Clear Flag - * @arg @ref UART_CLEAR_CMF Character Match Clear Flag - * @arg @ref UART_CLEAR_WUF Wake Up from stop mode Clear Flag - * @retval None - */ -#define __HAL_UART_CLEAR_IT(__HANDLE__, __IT_CLEAR__) ((__HANDLE__)->Instance->ICR = (uint32_t)(__IT_CLEAR__)) - -/** @brief Set a specific UART request flag. - * @param __HANDLE__ specifies the UART Handle. - * @param __REQ__ specifies the request flag to set - * This parameter can be one of the following values: - * @arg @ref UART_AUTOBAUD_REQUEST Auto-Baud Rate Request - * @arg @ref UART_SENDBREAK_REQUEST Send Break Request - * @arg @ref UART_MUTE_MODE_REQUEST Mute Mode Request - * @arg @ref UART_RXDATA_FLUSH_REQUEST Receive Data flush Request - * @arg @ref UART_TXDATA_FLUSH_REQUEST Transmit data flush Request - * @retval None - */ -#define __HAL_UART_SEND_REQ(__HANDLE__, __REQ__) ((__HANDLE__)->Instance->RQR |= (uint16_t)(__REQ__)) - -/** @brief Enable the UART one bit sample method. - * @param __HANDLE__ specifies the UART Handle. - * @retval None - */ -#define __HAL_UART_ONE_BIT_SAMPLE_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR3|= USART_CR3_ONEBIT) - -/** @brief Disable the UART one bit sample method. - * @param __HANDLE__ specifies the UART Handle. - * @retval None - */ -#define __HAL_UART_ONE_BIT_SAMPLE_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR3 &= ~USART_CR3_ONEBIT) - -/** @brief Enable UART. - * @param __HANDLE__ specifies the UART Handle. - * @retval None - */ -#define __HAL_UART_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR1 |= USART_CR1_UE) - -/** @brief Disable UART. - * @param __HANDLE__ specifies the UART Handle. - * @retval None - */ -#define __HAL_UART_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR1 &= ~USART_CR1_UE) - -/** @brief Enable CTS flow control. - * @note This macro allows to enable CTS hardware flow control for a given UART instance, - * without need to call HAL_UART_Init() function. - * As involving direct access to UART registers, usage of this macro should be fully endorsed by user. - * @note As macro is expected to be used for modifying CTS Hw flow control feature activation, without need - * for USART instance Deinit/Init, following conditions for macro call should be fulfilled : - * - UART instance should have already been initialised (through call of HAL_UART_Init() ) - * - macro could only be called when corresponding UART instance is disabled - * (i.e. __HAL_UART_DISABLE(__HANDLE__)) and should be followed by an Enable - * macro (i.e. __HAL_UART_ENABLE(__HANDLE__)). - * @param __HANDLE__ specifies the UART Handle. - * @retval None - */ -#define __HAL_UART_HWCONTROL_CTS_ENABLE(__HANDLE__) \ - do{ \ - ATOMIC_SET_BIT((__HANDLE__)->Instance->CR3, USART_CR3_CTSE); \ - (__HANDLE__)->Init.HwFlowCtl |= USART_CR3_CTSE; \ - } while(0U) - -/** @brief Disable CTS flow control. - * @note This macro allows to disable CTS hardware flow control for a given UART instance, - * without need to call HAL_UART_Init() function. - * As involving direct access to UART registers, usage of this macro should be fully endorsed by user. - * @note As macro is expected to be used for modifying CTS Hw flow control feature activation, without need - * for USART instance Deinit/Init, following conditions for macro call should be fulfilled : - * - UART instance should have already been initialised (through call of HAL_UART_Init() ) - * - macro could only be called when corresponding UART instance is disabled - * (i.e. __HAL_UART_DISABLE(__HANDLE__)) and should be followed by an Enable - * macro (i.e. __HAL_UART_ENABLE(__HANDLE__)). - * @param __HANDLE__ specifies the UART Handle. - * @retval None - */ -#define __HAL_UART_HWCONTROL_CTS_DISABLE(__HANDLE__) \ - do{ \ - ATOMIC_CLEAR_BIT((__HANDLE__)->Instance->CR3, USART_CR3_CTSE); \ - (__HANDLE__)->Init.HwFlowCtl &= ~(USART_CR3_CTSE); \ - } while(0U) - -/** @brief Enable RTS flow control. - * @note This macro allows to enable RTS hardware flow control for a given UART instance, - * without need to call HAL_UART_Init() function. - * As involving direct access to UART registers, usage of this macro should be fully endorsed by user. - * @note As macro is expected to be used for modifying RTS Hw flow control feature activation, without need - * for USART instance Deinit/Init, following conditions for macro call should be fulfilled : - * - UART instance should have already been initialised (through call of HAL_UART_Init() ) - * - macro could only be called when corresponding UART instance is disabled - * (i.e. __HAL_UART_DISABLE(__HANDLE__)) and should be followed by an Enable - * macro (i.e. __HAL_UART_ENABLE(__HANDLE__)). - * @param __HANDLE__ specifies the UART Handle. - * @retval None - */ -#define __HAL_UART_HWCONTROL_RTS_ENABLE(__HANDLE__) \ - do{ \ - ATOMIC_SET_BIT((__HANDLE__)->Instance->CR3, USART_CR3_RTSE); \ - (__HANDLE__)->Init.HwFlowCtl |= USART_CR3_RTSE; \ - } while(0U) - -/** @brief Disable RTS flow control. - * @note This macro allows to disable RTS hardware flow control for a given UART instance, - * without need to call HAL_UART_Init() function. - * As involving direct access to UART registers, usage of this macro should be fully endorsed by user. - * @note As macro is expected to be used for modifying RTS Hw flow control feature activation, without need - * for USART instance Deinit/Init, following conditions for macro call should be fulfilled : - * - UART instance should have already been initialised (through call of HAL_UART_Init() ) - * - macro could only be called when corresponding UART instance is disabled - * (i.e. __HAL_UART_DISABLE(__HANDLE__)) and should be followed by an Enable - * macro (i.e. __HAL_UART_ENABLE(__HANDLE__)). - * @param __HANDLE__ specifies the UART Handle. - * @retval None - */ -#define __HAL_UART_HWCONTROL_RTS_DISABLE(__HANDLE__) \ - do{ \ - ATOMIC_CLEAR_BIT((__HANDLE__)->Instance->CR3, USART_CR3_RTSE);\ - (__HANDLE__)->Init.HwFlowCtl &= ~(USART_CR3_RTSE); \ - } while(0U) -/** - * @} - */ - -/* Private macros --------------------------------------------------------*/ -/** @defgroup UART_Private_Macros UART Private Macros - * @{ - */ -/** @brief Get UART clok division factor from clock prescaler value. - * @param __CLOCKPRESCALER__ UART prescaler value. - * @retval UART clock division factor - */ -#define UART_GET_DIV_FACTOR(__CLOCKPRESCALER__) \ - (((__CLOCKPRESCALER__) == UART_PRESCALER_DIV1) ? 1U : \ - ((__CLOCKPRESCALER__) == UART_PRESCALER_DIV2) ? 2U : \ - ((__CLOCKPRESCALER__) == UART_PRESCALER_DIV4) ? 4U : \ - ((__CLOCKPRESCALER__) == UART_PRESCALER_DIV6) ? 6U : \ - ((__CLOCKPRESCALER__) == UART_PRESCALER_DIV8) ? 8U : \ - ((__CLOCKPRESCALER__) == UART_PRESCALER_DIV10) ? 10U : \ - ((__CLOCKPRESCALER__) == UART_PRESCALER_DIV12) ? 12U : \ - ((__CLOCKPRESCALER__) == UART_PRESCALER_DIV16) ? 16U : \ - ((__CLOCKPRESCALER__) == UART_PRESCALER_DIV32) ? 32U : \ - ((__CLOCKPRESCALER__) == UART_PRESCALER_DIV64) ? 64U : \ - ((__CLOCKPRESCALER__) == UART_PRESCALER_DIV128) ? 128U : \ - ((__CLOCKPRESCALER__) == UART_PRESCALER_DIV256) ? 256U : 1U) - -/** @brief BRR division operation to set BRR register with LPUART. - * @param __PCLK__ LPUART clock. - * @param __BAUD__ Baud rate set by the user. - * @param __CLOCKPRESCALER__ UART prescaler value. - * @retval Division result - */ -#define UART_DIV_LPUART(__PCLK__, __BAUD__, __CLOCKPRESCALER__) \ - ((uint32_t)((((((uint64_t)(__PCLK__))/(UARTPrescTable[(__CLOCKPRESCALER__)]))*256U)+ \ - (uint32_t)((__BAUD__)/2U)) / (__BAUD__)) \ - ) - -/** @brief BRR division operation to set BRR register in 8-bit oversampling mode. - * @param __PCLK__ UART clock. - * @param __BAUD__ Baud rate set by the user. - * @param __CLOCKPRESCALER__ UART prescaler value. - * @retval Division result - */ -#define UART_DIV_SAMPLING8(__PCLK__, __BAUD__, __CLOCKPRESCALER__) \ - (((((__PCLK__)/UARTPrescTable[(__CLOCKPRESCALER__)])*2U) + ((__BAUD__)/2U)) / (__BAUD__)) - -/** @brief BRR division operation to set BRR register in 16-bit oversampling mode. - * @param __PCLK__ UART clock. - * @param __BAUD__ Baud rate set by the user. - * @param __CLOCKPRESCALER__ UART prescaler value. - * @retval Division result - */ -#define UART_DIV_SAMPLING16(__PCLK__, __BAUD__, __CLOCKPRESCALER__) \ - ((((__PCLK__)/UARTPrescTable[(__CLOCKPRESCALER__)]) + ((__BAUD__)/2U)) / (__BAUD__)) - -/** @brief Check whether or not UART instance is Low Power UART. - * @param __HANDLE__ specifies the UART Handle. - * @retval SET (instance is LPUART) or RESET (instance isn't LPUART) - */ -#define UART_INSTANCE_LOWPOWER(__HANDLE__) (IS_LPUART_INSTANCE((__HANDLE__)->Instance)) - -/** @brief Check UART Baud rate. - * @param __BAUDRATE__ Baudrate specified by the user. - * The maximum Baud Rate is derived from the maximum clock on H7 (i.e. 100 MHz) - * divided by the smallest oversampling used on the USART (i.e. 8) - * @retval SET (__BAUDRATE__ is valid) or RESET (__BAUDRATE__ is invalid) - */ -#define IS_UART_BAUDRATE(__BAUDRATE__) ((__BAUDRATE__) < 12500001U) - -/** @brief Check UART assertion time. - * @param __TIME__ 5-bit value assertion time. - * @retval Test result (TRUE or FALSE). - */ -#define IS_UART_ASSERTIONTIME(__TIME__) ((__TIME__) <= 0x1FU) - -/** @brief Check UART deassertion time. - * @param __TIME__ 5-bit value deassertion time. - * @retval Test result (TRUE or FALSE). - */ -#define IS_UART_DEASSERTIONTIME(__TIME__) ((__TIME__) <= 0x1FU) - -/** - * @brief Ensure that UART frame number of stop bits is valid. - * @param __STOPBITS__ UART frame number of stop bits. - * @retval SET (__STOPBITS__ is valid) or RESET (__STOPBITS__ is invalid) - */ -#define IS_UART_STOPBITS(__STOPBITS__) (((__STOPBITS__) == UART_STOPBITS_0_5) || \ - ((__STOPBITS__) == UART_STOPBITS_1) || \ - ((__STOPBITS__) == UART_STOPBITS_1_5) || \ - ((__STOPBITS__) == UART_STOPBITS_2)) - -/** - * @brief Ensure that LPUART frame number of stop bits is valid. - * @param __STOPBITS__ LPUART frame number of stop bits. - * @retval SET (__STOPBITS__ is valid) or RESET (__STOPBITS__ is invalid) - */ -#define IS_LPUART_STOPBITS(__STOPBITS__) (((__STOPBITS__) == UART_STOPBITS_1) || \ - ((__STOPBITS__) == UART_STOPBITS_2)) - -/** - * @brief Ensure that UART frame parity is valid. - * @param __PARITY__ UART frame parity. - * @retval SET (__PARITY__ is valid) or RESET (__PARITY__ is invalid) - */ -#define IS_UART_PARITY(__PARITY__) (((__PARITY__) == UART_PARITY_NONE) || \ - ((__PARITY__) == UART_PARITY_EVEN) || \ - ((__PARITY__) == UART_PARITY_ODD)) - -/** - * @brief Ensure that UART hardware flow control is valid. - * @param __CONTROL__ UART hardware flow control. - * @retval SET (__CONTROL__ is valid) or RESET (__CONTROL__ is invalid) - */ -#define IS_UART_HARDWARE_FLOW_CONTROL(__CONTROL__)\ - (((__CONTROL__) == UART_HWCONTROL_NONE) || \ - ((__CONTROL__) == UART_HWCONTROL_RTS) || \ - ((__CONTROL__) == UART_HWCONTROL_CTS) || \ - ((__CONTROL__) == UART_HWCONTROL_RTS_CTS)) - -/** - * @brief Ensure that UART communication mode is valid. - * @param __MODE__ UART communication mode. - * @retval SET (__MODE__ is valid) or RESET (__MODE__ is invalid) - */ -#define IS_UART_MODE(__MODE__) ((((__MODE__) & (~((uint32_t)(UART_MODE_TX_RX)))) == 0x00U) && ((__MODE__) != 0x00U)) - -/** - * @brief Ensure that UART state is valid. - * @param __STATE__ UART state. - * @retval SET (__STATE__ is valid) or RESET (__STATE__ is invalid) - */ -#define IS_UART_STATE(__STATE__) (((__STATE__) == UART_STATE_DISABLE) || \ - ((__STATE__) == UART_STATE_ENABLE)) - -/** - * @brief Ensure that UART oversampling is valid. - * @param __SAMPLING__ UART oversampling. - * @retval SET (__SAMPLING__ is valid) or RESET (__SAMPLING__ is invalid) - */ -#define IS_UART_OVERSAMPLING(__SAMPLING__) (((__SAMPLING__) == UART_OVERSAMPLING_16) || \ - ((__SAMPLING__) == UART_OVERSAMPLING_8)) - -/** - * @brief Ensure that UART frame sampling is valid. - * @param __ONEBIT__ UART frame sampling. - * @retval SET (__ONEBIT__ is valid) or RESET (__ONEBIT__ is invalid) - */ -#define IS_UART_ONE_BIT_SAMPLE(__ONEBIT__) (((__ONEBIT__) == UART_ONE_BIT_SAMPLE_DISABLE) || \ - ((__ONEBIT__) == UART_ONE_BIT_SAMPLE_ENABLE)) - -/** - * @brief Ensure that UART auto Baud rate detection mode is valid. - * @param __MODE__ UART auto Baud rate detection mode. - * @retval SET (__MODE__ is valid) or RESET (__MODE__ is invalid) - */ -#define IS_UART_ADVFEATURE_AUTOBAUDRATEMODE(__MODE__) (((__MODE__) == UART_ADVFEATURE_AUTOBAUDRATE_ONSTARTBIT) || \ - ((__MODE__) == UART_ADVFEATURE_AUTOBAUDRATE_ONFALLINGEDGE) || \ - ((__MODE__) == UART_ADVFEATURE_AUTOBAUDRATE_ON0X7FFRAME) || \ - ((__MODE__) == UART_ADVFEATURE_AUTOBAUDRATE_ON0X55FRAME)) - -/** - * @brief Ensure that UART receiver timeout setting is valid. - * @param __TIMEOUT__ UART receiver timeout setting. - * @retval SET (__TIMEOUT__ is valid) or RESET (__TIMEOUT__ is invalid) - */ -#define IS_UART_RECEIVER_TIMEOUT(__TIMEOUT__) (((__TIMEOUT__) == UART_RECEIVER_TIMEOUT_DISABLE) || \ - ((__TIMEOUT__) == UART_RECEIVER_TIMEOUT_ENABLE)) - -/** @brief Check the receiver timeout value. - * @note The maximum UART receiver timeout value is 0xFFFFFF. - * @param __TIMEOUTVALUE__ receiver timeout value. - * @retval Test result (TRUE or FALSE) - */ -#define IS_UART_RECEIVER_TIMEOUT_VALUE(__TIMEOUTVALUE__) ((__TIMEOUTVALUE__) <= 0xFFFFFFU) - -/** - * @brief Ensure that UART LIN state is valid. - * @param __LIN__ UART LIN state. - * @retval SET (__LIN__ is valid) or RESET (__LIN__ is invalid) - */ -#define IS_UART_LIN(__LIN__) (((__LIN__) == UART_LIN_DISABLE) || \ - ((__LIN__) == UART_LIN_ENABLE)) - -/** - * @brief Ensure that UART LIN break detection length is valid. - * @param __LENGTH__ UART LIN break detection length. - * @retval SET (__LENGTH__ is valid) or RESET (__LENGTH__ is invalid) - */ -#define IS_UART_LIN_BREAK_DETECT_LENGTH(__LENGTH__) (((__LENGTH__) == UART_LINBREAKDETECTLENGTH_10B) || \ - ((__LENGTH__) == UART_LINBREAKDETECTLENGTH_11B)) - -/** - * @brief Ensure that UART DMA TX state is valid. - * @param __DMATX__ UART DMA TX state. - * @retval SET (__DMATX__ is valid) or RESET (__DMATX__ is invalid) - */ -#define IS_UART_DMA_TX(__DMATX__) (((__DMATX__) == UART_DMA_TX_DISABLE) || \ - ((__DMATX__) == UART_DMA_TX_ENABLE)) - -/** - * @brief Ensure that UART DMA RX state is valid. - * @param __DMARX__ UART DMA RX state. - * @retval SET (__DMARX__ is valid) or RESET (__DMARX__ is invalid) - */ -#define IS_UART_DMA_RX(__DMARX__) (((__DMARX__) == UART_DMA_RX_DISABLE) || \ - ((__DMARX__) == UART_DMA_RX_ENABLE)) - -/** - * @brief Ensure that UART half-duplex state is valid. - * @param __HDSEL__ UART half-duplex state. - * @retval SET (__HDSEL__ is valid) or RESET (__HDSEL__ is invalid) - */ -#define IS_UART_HALF_DUPLEX(__HDSEL__) (((__HDSEL__) == UART_HALF_DUPLEX_DISABLE) || \ - ((__HDSEL__) == UART_HALF_DUPLEX_ENABLE)) - -/** - * @brief Ensure that UART wake-up method is valid. - * @param __WAKEUP__ UART wake-up method . - * @retval SET (__WAKEUP__ is valid) or RESET (__WAKEUP__ is invalid) - */ -#define IS_UART_WAKEUPMETHOD(__WAKEUP__) (((__WAKEUP__) == UART_WAKEUPMETHOD_IDLELINE) || \ - ((__WAKEUP__) == UART_WAKEUPMETHOD_ADDRESSMARK)) - -/** - * @brief Ensure that UART request parameter is valid. - * @param __PARAM__ UART request parameter. - * @retval SET (__PARAM__ is valid) or RESET (__PARAM__ is invalid) - */ -#define IS_UART_REQUEST_PARAMETER(__PARAM__) (((__PARAM__) == UART_AUTOBAUD_REQUEST) || \ - ((__PARAM__) == UART_SENDBREAK_REQUEST) || \ - ((__PARAM__) == UART_MUTE_MODE_REQUEST) || \ - ((__PARAM__) == UART_RXDATA_FLUSH_REQUEST) || \ - ((__PARAM__) == UART_TXDATA_FLUSH_REQUEST)) - -/** - * @brief Ensure that UART advanced features initialization is valid. - * @param __INIT__ UART advanced features initialization. - * @retval SET (__INIT__ is valid) or RESET (__INIT__ is invalid) - */ -#define IS_UART_ADVFEATURE_INIT(__INIT__) ((__INIT__) <= (UART_ADVFEATURE_NO_INIT | \ - UART_ADVFEATURE_TXINVERT_INIT | \ - UART_ADVFEATURE_RXINVERT_INIT | \ - UART_ADVFEATURE_DATAINVERT_INIT | \ - UART_ADVFEATURE_SWAP_INIT | \ - UART_ADVFEATURE_RXOVERRUNDISABLE_INIT | \ - UART_ADVFEATURE_DMADISABLEONERROR_INIT | \ - UART_ADVFEATURE_AUTOBAUDRATE_INIT | \ - UART_ADVFEATURE_MSBFIRST_INIT)) - -/** - * @brief Ensure that UART frame TX inversion setting is valid. - * @param __TXINV__ UART frame TX inversion setting. - * @retval SET (__TXINV__ is valid) or RESET (__TXINV__ is invalid) - */ -#define IS_UART_ADVFEATURE_TXINV(__TXINV__) (((__TXINV__) == UART_ADVFEATURE_TXINV_DISABLE) || \ - ((__TXINV__) == UART_ADVFEATURE_TXINV_ENABLE)) - -/** - * @brief Ensure that UART frame RX inversion setting is valid. - * @param __RXINV__ UART frame RX inversion setting. - * @retval SET (__RXINV__ is valid) or RESET (__RXINV__ is invalid) - */ -#define IS_UART_ADVFEATURE_RXINV(__RXINV__) (((__RXINV__) == UART_ADVFEATURE_RXINV_DISABLE) || \ - ((__RXINV__) == UART_ADVFEATURE_RXINV_ENABLE)) - -/** - * @brief Ensure that UART frame data inversion setting is valid. - * @param __DATAINV__ UART frame data inversion setting. - * @retval SET (__DATAINV__ is valid) or RESET (__DATAINV__ is invalid) - */ -#define IS_UART_ADVFEATURE_DATAINV(__DATAINV__) (((__DATAINV__) == UART_ADVFEATURE_DATAINV_DISABLE) || \ - ((__DATAINV__) == UART_ADVFEATURE_DATAINV_ENABLE)) - -/** - * @brief Ensure that UART frame RX/TX pins swap setting is valid. - * @param __SWAP__ UART frame RX/TX pins swap setting. - * @retval SET (__SWAP__ is valid) or RESET (__SWAP__ is invalid) - */ -#define IS_UART_ADVFEATURE_SWAP(__SWAP__) (((__SWAP__) == UART_ADVFEATURE_SWAP_DISABLE) || \ - ((__SWAP__) == UART_ADVFEATURE_SWAP_ENABLE)) - -/** - * @brief Ensure that UART frame overrun setting is valid. - * @param __OVERRUN__ UART frame overrun setting. - * @retval SET (__OVERRUN__ is valid) or RESET (__OVERRUN__ is invalid) - */ -#define IS_UART_OVERRUN(__OVERRUN__) (((__OVERRUN__) == UART_ADVFEATURE_OVERRUN_ENABLE) || \ - ((__OVERRUN__) == UART_ADVFEATURE_OVERRUN_DISABLE)) - -/** - * @brief Ensure that UART auto Baud rate state is valid. - * @param __AUTOBAUDRATE__ UART auto Baud rate state. - * @retval SET (__AUTOBAUDRATE__ is valid) or RESET (__AUTOBAUDRATE__ is invalid) - */ -#define IS_UART_ADVFEATURE_AUTOBAUDRATE(__AUTOBAUDRATE__) (((__AUTOBAUDRATE__) == \ - UART_ADVFEATURE_AUTOBAUDRATE_DISABLE) || \ - ((__AUTOBAUDRATE__) == UART_ADVFEATURE_AUTOBAUDRATE_ENABLE)) - -/** - * @brief Ensure that UART DMA enabling or disabling on error setting is valid. - * @param __DMA__ UART DMA enabling or disabling on error setting. - * @retval SET (__DMA__ is valid) or RESET (__DMA__ is invalid) - */ -#define IS_UART_ADVFEATURE_DMAONRXERROR(__DMA__) (((__DMA__) == UART_ADVFEATURE_DMA_ENABLEONRXERROR) || \ - ((__DMA__) == UART_ADVFEATURE_DMA_DISABLEONRXERROR)) - -/** - * @brief Ensure that UART frame MSB first setting is valid. - * @param __MSBFIRST__ UART frame MSB first setting. - * @retval SET (__MSBFIRST__ is valid) or RESET (__MSBFIRST__ is invalid) - */ -#define IS_UART_ADVFEATURE_MSBFIRST(__MSBFIRST__) (((__MSBFIRST__) == UART_ADVFEATURE_MSBFIRST_DISABLE) || \ - ((__MSBFIRST__) == UART_ADVFEATURE_MSBFIRST_ENABLE)) - -/** - * @brief Ensure that UART stop mode state is valid. - * @param __STOPMODE__ UART stop mode state. - * @retval SET (__STOPMODE__ is valid) or RESET (__STOPMODE__ is invalid) - */ -#define IS_UART_ADVFEATURE_STOPMODE(__STOPMODE__) (((__STOPMODE__) == UART_ADVFEATURE_STOPMODE_DISABLE) || \ - ((__STOPMODE__) == UART_ADVFEATURE_STOPMODE_ENABLE)) - -/** - * @brief Ensure that UART mute mode state is valid. - * @param __MUTE__ UART mute mode state. - * @retval SET (__MUTE__ is valid) or RESET (__MUTE__ is invalid) - */ -#define IS_UART_MUTE_MODE(__MUTE__) (((__MUTE__) == UART_ADVFEATURE_MUTEMODE_DISABLE) || \ - ((__MUTE__) == UART_ADVFEATURE_MUTEMODE_ENABLE)) - -/** - * @brief Ensure that UART wake-up selection is valid. - * @param __WAKE__ UART wake-up selection. - * @retval SET (__WAKE__ is valid) or RESET (__WAKE__ is invalid) - */ -#define IS_UART_WAKEUP_SELECTION(__WAKE__) (((__WAKE__) == UART_WAKEUP_ON_ADDRESS) || \ - ((__WAKE__) == UART_WAKEUP_ON_STARTBIT) || \ - ((__WAKE__) == UART_WAKEUP_ON_READDATA_NONEMPTY)) - -/** - * @brief Ensure that UART driver enable polarity is valid. - * @param __POLARITY__ UART driver enable polarity. - * @retval SET (__POLARITY__ is valid) or RESET (__POLARITY__ is invalid) - */ -#define IS_UART_DE_POLARITY(__POLARITY__) (((__POLARITY__) == UART_DE_POLARITY_HIGH) || \ - ((__POLARITY__) == UART_DE_POLARITY_LOW)) - -/** - * @brief Ensure that UART Prescaler is valid. - * @param __CLOCKPRESCALER__ UART Prescaler value. - * @retval SET (__CLOCKPRESCALER__ is valid) or RESET (__CLOCKPRESCALER__ is invalid) - */ -#define IS_UART_PRESCALER(__CLOCKPRESCALER__) (((__CLOCKPRESCALER__) == UART_PRESCALER_DIV1) || \ - ((__CLOCKPRESCALER__) == UART_PRESCALER_DIV2) || \ - ((__CLOCKPRESCALER__) == UART_PRESCALER_DIV4) || \ - ((__CLOCKPRESCALER__) == UART_PRESCALER_DIV6) || \ - ((__CLOCKPRESCALER__) == UART_PRESCALER_DIV8) || \ - ((__CLOCKPRESCALER__) == UART_PRESCALER_DIV10) || \ - ((__CLOCKPRESCALER__) == UART_PRESCALER_DIV12) || \ - ((__CLOCKPRESCALER__) == UART_PRESCALER_DIV16) || \ - ((__CLOCKPRESCALER__) == UART_PRESCALER_DIV32) || \ - ((__CLOCKPRESCALER__) == UART_PRESCALER_DIV64) || \ - ((__CLOCKPRESCALER__) == UART_PRESCALER_DIV128) || \ - ((__CLOCKPRESCALER__) == UART_PRESCALER_DIV256)) - -/** - * @} - */ - -/* Include UART HAL Extended module */ -#include "stm32h7xx_hal_uart_ex.h" - -/* Exported functions --------------------------------------------------------*/ -/** @addtogroup UART_Exported_Functions UART Exported Functions - * @{ - */ - -/** @addtogroup UART_Exported_Functions_Group1 Initialization and de-initialization functions - * @{ - */ - -/* Initialization and de-initialization functions ****************************/ -HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart); -HAL_StatusTypeDef HAL_HalfDuplex_Init(UART_HandleTypeDef *huart); -HAL_StatusTypeDef HAL_LIN_Init(UART_HandleTypeDef *huart, uint32_t BreakDetectLength); -HAL_StatusTypeDef HAL_MultiProcessor_Init(UART_HandleTypeDef *huart, uint8_t Address, uint32_t WakeUpMethod); -HAL_StatusTypeDef HAL_UART_DeInit(UART_HandleTypeDef *huart); -void HAL_UART_MspInit(UART_HandleTypeDef *huart); -void HAL_UART_MspDeInit(UART_HandleTypeDef *huart); - -/* Callbacks Register/UnRegister functions ***********************************/ -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) -HAL_StatusTypeDef HAL_UART_RegisterCallback(UART_HandleTypeDef *huart, HAL_UART_CallbackIDTypeDef CallbackID, - pUART_CallbackTypeDef pCallback); -HAL_StatusTypeDef HAL_UART_UnRegisterCallback(UART_HandleTypeDef *huart, HAL_UART_CallbackIDTypeDef CallbackID); - -HAL_StatusTypeDef HAL_UART_RegisterRxEventCallback(UART_HandleTypeDef *huart, pUART_RxEventCallbackTypeDef pCallback); -HAL_StatusTypeDef HAL_UART_UnRegisterRxEventCallback(UART_HandleTypeDef *huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - -/** - * @} - */ - -/** @addtogroup UART_Exported_Functions_Group2 IO operation functions - * @{ - */ - -/* IO operation functions *****************************************************/ -HAL_StatusTypeDef HAL_UART_Transmit(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size, uint32_t Timeout); -HAL_StatusTypeDef HAL_UART_Receive(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size, uint32_t Timeout); -HAL_StatusTypeDef HAL_UART_Transmit_IT(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size); -HAL_StatusTypeDef HAL_UART_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size); -HAL_StatusTypeDef HAL_UART_Transmit_DMA(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size); -HAL_StatusTypeDef HAL_UART_Receive_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size); -HAL_StatusTypeDef HAL_UART_DMAPause(UART_HandleTypeDef *huart); -HAL_StatusTypeDef HAL_UART_DMAResume(UART_HandleTypeDef *huart); -HAL_StatusTypeDef HAL_UART_DMAStop(UART_HandleTypeDef *huart); -/* Transfer Abort functions */ -HAL_StatusTypeDef HAL_UART_Abort(UART_HandleTypeDef *huart); -HAL_StatusTypeDef HAL_UART_AbortTransmit(UART_HandleTypeDef *huart); -HAL_StatusTypeDef HAL_UART_AbortReceive(UART_HandleTypeDef *huart); -HAL_StatusTypeDef HAL_UART_Abort_IT(UART_HandleTypeDef *huart); -HAL_StatusTypeDef HAL_UART_AbortTransmit_IT(UART_HandleTypeDef *huart); -HAL_StatusTypeDef HAL_UART_AbortReceive_IT(UART_HandleTypeDef *huart); - -void HAL_UART_IRQHandler(UART_HandleTypeDef *huart); -void HAL_UART_TxHalfCpltCallback(UART_HandleTypeDef *huart); -void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart); -void HAL_UART_RxHalfCpltCallback(UART_HandleTypeDef *huart); -void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart); -void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart); -void HAL_UART_AbortCpltCallback(UART_HandleTypeDef *huart); -void HAL_UART_AbortTransmitCpltCallback(UART_HandleTypeDef *huart); -void HAL_UART_AbortReceiveCpltCallback(UART_HandleTypeDef *huart); - -void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t Size); - -/** - * @} - */ - -/** @addtogroup UART_Exported_Functions_Group3 Peripheral Control functions - * @{ - */ - -/* Peripheral Control functions ************************************************/ -void HAL_UART_ReceiverTimeout_Config(UART_HandleTypeDef *huart, uint32_t TimeoutValue); -HAL_StatusTypeDef HAL_UART_EnableReceiverTimeout(UART_HandleTypeDef *huart); -HAL_StatusTypeDef HAL_UART_DisableReceiverTimeout(UART_HandleTypeDef *huart); - -HAL_StatusTypeDef HAL_LIN_SendBreak(UART_HandleTypeDef *huart); -HAL_StatusTypeDef HAL_MultiProcessor_EnableMuteMode(UART_HandleTypeDef *huart); -HAL_StatusTypeDef HAL_MultiProcessor_DisableMuteMode(UART_HandleTypeDef *huart); -void HAL_MultiProcessor_EnterMuteMode(UART_HandleTypeDef *huart); -HAL_StatusTypeDef HAL_HalfDuplex_EnableTransmitter(UART_HandleTypeDef *huart); -HAL_StatusTypeDef HAL_HalfDuplex_EnableReceiver(UART_HandleTypeDef *huart); - -/** - * @} - */ - -/** @addtogroup UART_Exported_Functions_Group4 Peripheral State and Error functions - * @{ - */ - -/* Peripheral State and Errors functions **************************************************/ -HAL_UART_StateTypeDef HAL_UART_GetState(const UART_HandleTypeDef *huart); -uint32_t HAL_UART_GetError(const UART_HandleTypeDef *huart); - -/** - * @} - */ - -/** - * @} - */ - -/* Private functions -----------------------------------------------------------*/ -/** @addtogroup UART_Private_Functions UART Private Functions - * @{ - */ -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) -void UART_InitCallbacksToDefault(UART_HandleTypeDef *huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ -HAL_StatusTypeDef UART_SetConfig(UART_HandleTypeDef *huart); -HAL_StatusTypeDef UART_CheckIdleState(UART_HandleTypeDef *huart); -HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout(UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status, - uint32_t Tickstart, uint32_t Timeout); -void UART_AdvFeatureConfig(UART_HandleTypeDef *huart); -HAL_StatusTypeDef UART_Start_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size); -HAL_StatusTypeDef UART_Start_Receive_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size); - -/** - * @} - */ - -/* Private variables -----------------------------------------------------------*/ -/** @defgroup UART_Private_variables UART Private variables - * @{ - */ -/* Prescaler Table used in BRR computation macros. - Declared as extern here to allow use of private UART macros, outside of HAL UART functions */ -extern const uint16_t UARTPrescTable[12]; -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_HAL_UART_H */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h deleted file mode 100644 index a9415bc..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h +++ /dev/null @@ -1,870 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_uart_ex.h - * @author MCD Application Team - * @brief Header file of UART HAL Extended module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_HAL_UART_EX_H -#define STM32H7xx_HAL_UART_EX_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal_def.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @addtogroup UARTEx - * @{ - */ - -/* Exported types ------------------------------------------------------------*/ -/** @defgroup UARTEx_Exported_Types UARTEx Exported Types - * @{ - */ - -/** - * @brief UART wake up from stop mode parameters - */ -typedef struct -{ - uint32_t WakeUpEvent; /*!< Specifies which event will activate the Wakeup from Stop mode flag (WUF). - This parameter can be a value of @ref UART_WakeUp_from_Stop_Selection. - If set to UART_WAKEUP_ON_ADDRESS, the two other fields below must - be filled up. */ - - uint16_t AddressLength; /*!< Specifies whether the address is 4 or 7-bit long. - This parameter can be a value of @ref UARTEx_WakeUp_Address_Length. */ - - uint8_t Address; /*!< UART/USART node address (7-bit long max). */ -} UART_WakeUpTypeDef; - -/** - * @} - */ - -/* Exported constants --------------------------------------------------------*/ -/** @defgroup UARTEx_Exported_Constants UARTEx Exported Constants - * @{ - */ - -/** @defgroup UARTEx_Word_Length UARTEx Word Length - * @{ - */ -#define UART_WORDLENGTH_7B USART_CR1_M1 /*!< 7-bit long UART frame */ -#define UART_WORDLENGTH_8B 0x00000000U /*!< 8-bit long UART frame */ -#define UART_WORDLENGTH_9B USART_CR1_M0 /*!< 9-bit long UART frame */ -/** - * @} - */ - -/** @defgroup UARTEx_WakeUp_Address_Length UARTEx WakeUp Address Length - * @{ - */ -#define UART_ADDRESS_DETECT_4B 0x00000000U /*!< 4-bit long wake-up address */ -#define UART_ADDRESS_DETECT_7B USART_CR2_ADDM7 /*!< 7-bit long wake-up address */ -/** - * @} - */ - -/** @defgroup UARTEx_FIFO_mode UARTEx FIFO mode - * @brief UART FIFO mode - * @{ - */ -#define UART_FIFOMODE_DISABLE 0x00000000U /*!< FIFO mode disable */ -#define UART_FIFOMODE_ENABLE USART_CR1_FIFOEN /*!< FIFO mode enable */ -/** - * @} - */ - -/** @defgroup UARTEx_TXFIFO_threshold_level UARTEx TXFIFO threshold level - * @brief UART TXFIFO threshold level - * @{ - */ -#define UART_TXFIFO_THRESHOLD_1_8 0x00000000U /*!< TX FIFO reaches 1/8 of its depth */ -#define UART_TXFIFO_THRESHOLD_1_4 USART_CR3_TXFTCFG_0 /*!< TX FIFO reaches 1/4 of its depth */ -#define UART_TXFIFO_THRESHOLD_1_2 USART_CR3_TXFTCFG_1 /*!< TX FIFO reaches 1/2 of its depth */ -#define UART_TXFIFO_THRESHOLD_3_4 (USART_CR3_TXFTCFG_0|USART_CR3_TXFTCFG_1) /*!< TX FIFO reaches 3/4 of its depth */ -#define UART_TXFIFO_THRESHOLD_7_8 USART_CR3_TXFTCFG_2 /*!< TX FIFO reaches 7/8 of its depth */ -#define UART_TXFIFO_THRESHOLD_8_8 (USART_CR3_TXFTCFG_2|USART_CR3_TXFTCFG_0) /*!< TX FIFO becomes empty */ -/** - * @} - */ - -/** @defgroup UARTEx_RXFIFO_threshold_level UARTEx RXFIFO threshold level - * @brief UART RXFIFO threshold level - * @{ - */ -#define UART_RXFIFO_THRESHOLD_1_8 0x00000000U /*!< RX FIFO reaches 1/8 of its depth */ -#define UART_RXFIFO_THRESHOLD_1_4 USART_CR3_RXFTCFG_0 /*!< RX FIFO reaches 1/4 of its depth */ -#define UART_RXFIFO_THRESHOLD_1_2 USART_CR3_RXFTCFG_1 /*!< RX FIFO reaches 1/2 of its depth */ -#define UART_RXFIFO_THRESHOLD_3_4 (USART_CR3_RXFTCFG_0|USART_CR3_RXFTCFG_1) /*!< RX FIFO reaches 3/4 of its depth */ -#define UART_RXFIFO_THRESHOLD_7_8 USART_CR3_RXFTCFG_2 /*!< RX FIFO reaches 7/8 of its depth */ -#define UART_RXFIFO_THRESHOLD_8_8 (USART_CR3_RXFTCFG_2|USART_CR3_RXFTCFG_0) /*!< RX FIFO becomes full */ -/** - * @} - */ - -/** - * @} - */ - -/* Exported macros -----------------------------------------------------------*/ -/* Exported functions --------------------------------------------------------*/ -/** @addtogroup UARTEx_Exported_Functions - * @{ - */ - -/** @addtogroup UARTEx_Exported_Functions_Group1 - * @{ - */ - -/* Initialization and de-initialization functions ****************************/ -HAL_StatusTypeDef HAL_RS485Ex_Init(UART_HandleTypeDef *huart, uint32_t Polarity, uint32_t AssertionTime, - uint32_t DeassertionTime); - -/** - * @} - */ - -/** @addtogroup UARTEx_Exported_Functions_Group2 - * @{ - */ - -void HAL_UARTEx_WakeupCallback(UART_HandleTypeDef *huart); - -void HAL_UARTEx_RxFifoFullCallback(UART_HandleTypeDef *huart); -void HAL_UARTEx_TxFifoEmptyCallback(UART_HandleTypeDef *huart); - -/** - * @} - */ - -/** @addtogroup UARTEx_Exported_Functions_Group3 - * @{ - */ - -/* Peripheral Control functions **********************************************/ -HAL_StatusTypeDef HAL_UARTEx_StopModeWakeUpSourceConfig(UART_HandleTypeDef *huart, UART_WakeUpTypeDef WakeUpSelection); -HAL_StatusTypeDef HAL_UARTEx_EnableStopMode(UART_HandleTypeDef *huart); -HAL_StatusTypeDef HAL_UARTEx_DisableStopMode(UART_HandleTypeDef *huart); - -HAL_StatusTypeDef HAL_MultiProcessorEx_AddressLength_Set(UART_HandleTypeDef *huart, uint32_t AddressLength); - -HAL_StatusTypeDef HAL_UARTEx_EnableFifoMode(UART_HandleTypeDef *huart); -HAL_StatusTypeDef HAL_UARTEx_DisableFifoMode(UART_HandleTypeDef *huart); -HAL_StatusTypeDef HAL_UARTEx_SetTxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold); -HAL_StatusTypeDef HAL_UARTEx_SetRxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold); - -HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size, uint16_t *RxLen, - uint32_t Timeout); -HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size); -HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size); - -HAL_UART_RxEventTypeTypeDef HAL_UARTEx_GetRxEventType(UART_HandleTypeDef *huart); - - -/** - * @} - */ - -/** - * @} - */ - -/* Private macros ------------------------------------------------------------*/ -/** @defgroup UARTEx_Private_Macros UARTEx Private Macros - * @{ - */ - -/** @brief Report the UART clock source. - * @param __HANDLE__ specifies the UART Handle. - * @param __CLOCKSOURCE__ output variable. - * @retval UART clocking source, written in __CLOCKSOURCE__. - */ -#if defined(UART9) && defined(USART10) -#define UART_GETCLOCKSOURCE(__HANDLE__,__CLOCKSOURCE__) \ - do { \ - if((__HANDLE__)->Instance == USART1) \ - { \ - switch(__HAL_RCC_GET_USART1_SOURCE()) \ - { \ - case RCC_USART1CLKSOURCE_D2PCLK2: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_D2PCLK2; \ - break; \ - case RCC_USART1CLKSOURCE_PLL2: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL2; \ - break; \ - case RCC_USART1CLKSOURCE_PLL3: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL3; \ - break; \ - case RCC_USART1CLKSOURCE_HSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_HSI; \ - break; \ - case RCC_USART1CLKSOURCE_CSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_CSI; \ - break; \ - case RCC_USART1CLKSOURCE_LSE: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_LSE; \ - break; \ - default: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_UNDEFINED; \ - break; \ - } \ - } \ - else if((__HANDLE__)->Instance == USART2) \ - { \ - switch(__HAL_RCC_GET_USART2_SOURCE()) \ - { \ - case RCC_USART2CLKSOURCE_D2PCLK1: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_D2PCLK1; \ - break; \ - case RCC_USART2CLKSOURCE_PLL2: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL2; \ - break; \ - case RCC_USART2CLKSOURCE_PLL3: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL3; \ - break; \ - case RCC_USART2CLKSOURCE_HSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_HSI; \ - break; \ - case RCC_USART2CLKSOURCE_CSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_CSI; \ - break; \ - case RCC_USART2CLKSOURCE_LSE: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_LSE; \ - break; \ - default: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_UNDEFINED; \ - break; \ - } \ - } \ - else if((__HANDLE__)->Instance == USART3) \ - { \ - switch(__HAL_RCC_GET_USART3_SOURCE()) \ - { \ - case RCC_USART3CLKSOURCE_D2PCLK1: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_D2PCLK1; \ - break; \ - case RCC_USART3CLKSOURCE_PLL2: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL2; \ - break; \ - case RCC_USART3CLKSOURCE_PLL3: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL3; \ - break; \ - case RCC_USART3CLKSOURCE_HSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_HSI; \ - break; \ - case RCC_USART3CLKSOURCE_CSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_CSI; \ - break; \ - case RCC_USART3CLKSOURCE_LSE: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_LSE; \ - break; \ - default: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_UNDEFINED; \ - break; \ - } \ - } \ - else if((__HANDLE__)->Instance == UART4) \ - { \ - switch(__HAL_RCC_GET_UART4_SOURCE()) \ - { \ - case RCC_UART4CLKSOURCE_D2PCLK1: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_D2PCLK1; \ - break; \ - case RCC_UART4CLKSOURCE_PLL2: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL2; \ - break; \ - case RCC_UART4CLKSOURCE_PLL3: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL3; \ - break; \ - case RCC_UART4CLKSOURCE_HSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_HSI; \ - break; \ - case RCC_UART4CLKSOURCE_CSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_CSI; \ - break; \ - case RCC_UART4CLKSOURCE_LSE: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_LSE; \ - break; \ - default: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_UNDEFINED; \ - break; \ - } \ - } \ - else if ((__HANDLE__)->Instance == UART5) \ - { \ - switch(__HAL_RCC_GET_UART5_SOURCE()) \ - { \ - case RCC_UART5CLKSOURCE_D2PCLK1: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_D2PCLK1; \ - break; \ - case RCC_UART5CLKSOURCE_PLL2: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL2; \ - break; \ - case RCC_UART5CLKSOURCE_PLL3: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL3; \ - break; \ - case RCC_UART5CLKSOURCE_HSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_HSI; \ - break; \ - case RCC_UART5CLKSOURCE_CSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_CSI; \ - break; \ - case RCC_UART5CLKSOURCE_LSE: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_LSE; \ - break; \ - default: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_UNDEFINED; \ - break; \ - } \ - } \ - else if((__HANDLE__)->Instance == USART6) \ - { \ - switch(__HAL_RCC_GET_USART6_SOURCE()) \ - { \ - case RCC_USART6CLKSOURCE_D2PCLK2: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_D2PCLK2; \ - break; \ - case RCC_USART6CLKSOURCE_PLL2: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL2; \ - break; \ - case RCC_USART6CLKSOURCE_PLL3: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL3; \ - break; \ - case RCC_USART6CLKSOURCE_HSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_HSI; \ - break; \ - case RCC_USART6CLKSOURCE_CSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_CSI; \ - break; \ - case RCC_USART6CLKSOURCE_LSE: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_LSE; \ - break; \ - default: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_UNDEFINED; \ - break; \ - } \ - } \ - else if((__HANDLE__)->Instance == UART7) \ - { \ - switch(__HAL_RCC_GET_UART7_SOURCE()) \ - { \ - case RCC_UART7CLKSOURCE_D2PCLK1: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_D2PCLK1; \ - break; \ - case RCC_UART7CLKSOURCE_PLL2: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL2; \ - break; \ - case RCC_UART7CLKSOURCE_PLL3: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL3; \ - break; \ - case RCC_UART7CLKSOURCE_HSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_HSI; \ - break; \ - case RCC_UART7CLKSOURCE_CSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_CSI; \ - break; \ - case RCC_UART7CLKSOURCE_LSE: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_LSE; \ - break; \ - default: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_UNDEFINED; \ - break; \ - } \ - } \ - else if((__HANDLE__)->Instance == UART8) \ - { \ - switch(__HAL_RCC_GET_UART8_SOURCE()) \ - { \ - case RCC_UART8CLKSOURCE_D2PCLK1: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_D2PCLK1; \ - break; \ - case RCC_UART8CLKSOURCE_PLL2: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL2; \ - break; \ - case RCC_UART8CLKSOURCE_PLL3: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL3; \ - break; \ - case RCC_UART8CLKSOURCE_HSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_HSI; \ - break; \ - case RCC_UART8CLKSOURCE_CSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_CSI; \ - break; \ - case RCC_UART8CLKSOURCE_LSE: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_LSE; \ - break; \ - default: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_UNDEFINED; \ - break; \ - } \ - } \ - else if((__HANDLE__)->Instance == UART9) \ - { \ - switch(__HAL_RCC_GET_UART9_SOURCE()) \ - { \ - case RCC_UART9CLKSOURCE_D2PCLK2: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_D2PCLK2; \ - break; \ - case RCC_UART9CLKSOURCE_PLL2: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL2; \ - break; \ - case RCC_UART9CLKSOURCE_PLL3: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL3; \ - break; \ - case RCC_UART9CLKSOURCE_HSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_HSI; \ - break; \ - case RCC_UART9CLKSOURCE_CSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_CSI; \ - break; \ - case RCC_UART9CLKSOURCE_LSE: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_LSE; \ - break; \ - default: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_UNDEFINED; \ - break; \ - } \ - } \ - else if((__HANDLE__)->Instance == USART10) \ - { \ - switch(__HAL_RCC_GET_USART10_SOURCE()) \ - { \ - case RCC_USART10CLKSOURCE_D2PCLK2: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_D2PCLK2; \ - break; \ - case RCC_USART10CLKSOURCE_PLL2: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL2; \ - break; \ - case RCC_USART10CLKSOURCE_PLL3: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL3; \ - break; \ - case RCC_USART10CLKSOURCE_HSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_HSI; \ - break; \ - case RCC_USART10CLKSOURCE_CSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_CSI; \ - break; \ - case RCC_USART10CLKSOURCE_LSE: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_LSE; \ - break; \ - default: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_UNDEFINED; \ - break; \ - } \ - } \ - else if((__HANDLE__)->Instance == LPUART1) \ - { \ - switch(__HAL_RCC_GET_LPUART1_SOURCE()) \ - { \ - case RCC_LPUART1CLKSOURCE_D3PCLK1: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_D3PCLK1; \ - break; \ - case RCC_LPUART1CLKSOURCE_PLL2: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL2; \ - break; \ - case RCC_LPUART1CLKSOURCE_PLL3: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL3; \ - break; \ - case RCC_LPUART1CLKSOURCE_HSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_HSI; \ - break; \ - case RCC_LPUART1CLKSOURCE_CSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_CSI; \ - break; \ - case RCC_LPUART1CLKSOURCE_LSE: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_LSE; \ - break; \ - default: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_UNDEFINED; \ - break; \ - } \ - } \ - else \ - { \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_UNDEFINED; \ - } \ - } while(0U) -#else -#define UART_GETCLOCKSOURCE(__HANDLE__,__CLOCKSOURCE__) \ - do { \ - if((__HANDLE__)->Instance == USART1) \ - { \ - switch(__HAL_RCC_GET_USART1_SOURCE()) \ - { \ - case RCC_USART1CLKSOURCE_D2PCLK2: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_D2PCLK2; \ - break; \ - case RCC_USART1CLKSOURCE_PLL2: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL2; \ - break; \ - case RCC_USART1CLKSOURCE_PLL3: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL3; \ - break; \ - case RCC_USART1CLKSOURCE_HSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_HSI; \ - break; \ - case RCC_USART1CLKSOURCE_CSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_CSI; \ - break; \ - case RCC_USART1CLKSOURCE_LSE: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_LSE; \ - break; \ - default: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_UNDEFINED; \ - break; \ - } \ - } \ - else if((__HANDLE__)->Instance == USART2) \ - { \ - switch(__HAL_RCC_GET_USART2_SOURCE()) \ - { \ - case RCC_USART2CLKSOURCE_D2PCLK1: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_D2PCLK1; \ - break; \ - case RCC_USART2CLKSOURCE_PLL2: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL2; \ - break; \ - case RCC_USART2CLKSOURCE_PLL3: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL3; \ - break; \ - case RCC_USART2CLKSOURCE_HSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_HSI; \ - break; \ - case RCC_USART2CLKSOURCE_CSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_CSI; \ - break; \ - case RCC_USART2CLKSOURCE_LSE: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_LSE; \ - break; \ - default: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_UNDEFINED; \ - break; \ - } \ - } \ - else if((__HANDLE__)->Instance == USART3) \ - { \ - switch(__HAL_RCC_GET_USART3_SOURCE()) \ - { \ - case RCC_USART3CLKSOURCE_D2PCLK1: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_D2PCLK1; \ - break; \ - case RCC_USART3CLKSOURCE_PLL2: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL2; \ - break; \ - case RCC_USART3CLKSOURCE_PLL3: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL3; \ - break; \ - case RCC_USART3CLKSOURCE_HSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_HSI; \ - break; \ - case RCC_USART3CLKSOURCE_CSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_CSI; \ - break; \ - case RCC_USART3CLKSOURCE_LSE: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_LSE; \ - break; \ - default: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_UNDEFINED; \ - break; \ - } \ - } \ - else if((__HANDLE__)->Instance == UART4) \ - { \ - switch(__HAL_RCC_GET_UART4_SOURCE()) \ - { \ - case RCC_UART4CLKSOURCE_D2PCLK1: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_D2PCLK1; \ - break; \ - case RCC_UART4CLKSOURCE_PLL2: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL2; \ - break; \ - case RCC_UART4CLKSOURCE_PLL3: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL3; \ - break; \ - case RCC_UART4CLKSOURCE_HSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_HSI; \ - break; \ - case RCC_UART4CLKSOURCE_CSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_CSI; \ - break; \ - case RCC_UART4CLKSOURCE_LSE: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_LSE; \ - break; \ - default: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_UNDEFINED; \ - break; \ - } \ - } \ - else if ((__HANDLE__)->Instance == UART5) \ - { \ - switch(__HAL_RCC_GET_UART5_SOURCE()) \ - { \ - case RCC_UART5CLKSOURCE_D2PCLK1: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_D2PCLK1; \ - break; \ - case RCC_UART5CLKSOURCE_PLL2: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL2; \ - break; \ - case RCC_UART5CLKSOURCE_PLL3: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL3; \ - break; \ - case RCC_UART5CLKSOURCE_HSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_HSI; \ - break; \ - case RCC_UART5CLKSOURCE_CSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_CSI; \ - break; \ - case RCC_UART5CLKSOURCE_LSE: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_LSE; \ - break; \ - default: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_UNDEFINED; \ - break; \ - } \ - } \ - else if((__HANDLE__)->Instance == USART6) \ - { \ - switch(__HAL_RCC_GET_USART6_SOURCE()) \ - { \ - case RCC_USART6CLKSOURCE_D2PCLK2: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_D2PCLK2; \ - break; \ - case RCC_USART6CLKSOURCE_PLL2: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL2; \ - break; \ - case RCC_USART6CLKSOURCE_PLL3: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL3; \ - break; \ - case RCC_USART6CLKSOURCE_HSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_HSI; \ - break; \ - case RCC_USART6CLKSOURCE_CSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_CSI; \ - break; \ - case RCC_USART6CLKSOURCE_LSE: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_LSE; \ - break; \ - default: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_UNDEFINED; \ - break; \ - } \ - } \ - else if((__HANDLE__)->Instance == UART7) \ - { \ - switch(__HAL_RCC_GET_UART7_SOURCE()) \ - { \ - case RCC_UART7CLKSOURCE_D2PCLK1: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_D2PCLK1; \ - break; \ - case RCC_UART7CLKSOURCE_PLL2: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL2; \ - break; \ - case RCC_UART7CLKSOURCE_PLL3: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL3; \ - break; \ - case RCC_UART7CLKSOURCE_HSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_HSI; \ - break; \ - case RCC_UART7CLKSOURCE_CSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_CSI; \ - break; \ - case RCC_UART7CLKSOURCE_LSE: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_LSE; \ - break; \ - default: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_UNDEFINED; \ - break; \ - } \ - } \ - else if((__HANDLE__)->Instance == UART8) \ - { \ - switch(__HAL_RCC_GET_UART8_SOURCE()) \ - { \ - case RCC_UART8CLKSOURCE_D2PCLK1: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_D2PCLK1; \ - break; \ - case RCC_UART8CLKSOURCE_PLL2: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL2; \ - break; \ - case RCC_UART8CLKSOURCE_PLL3: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL3; \ - break; \ - case RCC_UART8CLKSOURCE_HSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_HSI; \ - break; \ - case RCC_UART8CLKSOURCE_CSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_CSI; \ - break; \ - case RCC_UART8CLKSOURCE_LSE: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_LSE; \ - break; \ - default: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_UNDEFINED; \ - break; \ - } \ - } \ - else if((__HANDLE__)->Instance == LPUART1) \ - { \ - switch(__HAL_RCC_GET_LPUART1_SOURCE()) \ - { \ - case RCC_LPUART1CLKSOURCE_D3PCLK1: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_D3PCLK1; \ - break; \ - case RCC_LPUART1CLKSOURCE_PLL2: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL2; \ - break; \ - case RCC_LPUART1CLKSOURCE_PLL3: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_PLL3; \ - break; \ - case RCC_LPUART1CLKSOURCE_HSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_HSI; \ - break; \ - case RCC_LPUART1CLKSOURCE_CSI: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_CSI; \ - break; \ - case RCC_LPUART1CLKSOURCE_LSE: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_LSE; \ - break; \ - default: \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_UNDEFINED; \ - break; \ - } \ - } \ - else \ - { \ - (__CLOCKSOURCE__) = UART_CLOCKSOURCE_UNDEFINED; \ - } \ - } while(0U) -#endif /* UART9 && USART10 */ - -/** @brief Report the UART mask to apply to retrieve the received data - * according to the word length and to the parity bits activation. - * @note If PCE = 1, the parity bit is not included in the data extracted - * by the reception API(). - * This masking operation is not carried out in the case of - * DMA transfers. - * @param __HANDLE__ specifies the UART Handle. - * @retval None, the mask to apply to UART RDR register is stored in (__HANDLE__)->Mask field. - */ -#define UART_MASK_COMPUTATION(__HANDLE__) \ - do { \ - if ((__HANDLE__)->Init.WordLength == UART_WORDLENGTH_9B) \ - { \ - if ((__HANDLE__)->Init.Parity == UART_PARITY_NONE) \ - { \ - (__HANDLE__)->Mask = 0x01FFU ; \ - } \ - else \ - { \ - (__HANDLE__)->Mask = 0x00FFU ; \ - } \ - } \ - else if ((__HANDLE__)->Init.WordLength == UART_WORDLENGTH_8B) \ - { \ - if ((__HANDLE__)->Init.Parity == UART_PARITY_NONE) \ - { \ - (__HANDLE__)->Mask = 0x00FFU ; \ - } \ - else \ - { \ - (__HANDLE__)->Mask = 0x007FU ; \ - } \ - } \ - else if ((__HANDLE__)->Init.WordLength == UART_WORDLENGTH_7B) \ - { \ - if ((__HANDLE__)->Init.Parity == UART_PARITY_NONE) \ - { \ - (__HANDLE__)->Mask = 0x007FU ; \ - } \ - else \ - { \ - (__HANDLE__)->Mask = 0x003FU ; \ - } \ - } \ - else \ - { \ - (__HANDLE__)->Mask = 0x0000U; \ - } \ - } while(0U) - -/** - * @brief Ensure that UART frame length is valid. - * @param __LENGTH__ UART frame length. - * @retval SET (__LENGTH__ is valid) or RESET (__LENGTH__ is invalid) - */ -#define IS_UART_WORD_LENGTH(__LENGTH__) (((__LENGTH__) == UART_WORDLENGTH_7B) || \ - ((__LENGTH__) == UART_WORDLENGTH_8B) || \ - ((__LENGTH__) == UART_WORDLENGTH_9B)) - -/** - * @brief Ensure that UART wake-up address length is valid. - * @param __ADDRESS__ UART wake-up address length. - * @retval SET (__ADDRESS__ is valid) or RESET (__ADDRESS__ is invalid) - */ -#define IS_UART_ADDRESSLENGTH_DETECT(__ADDRESS__) (((__ADDRESS__) == UART_ADDRESS_DETECT_4B) || \ - ((__ADDRESS__) == UART_ADDRESS_DETECT_7B)) - -/** - * @brief Ensure that UART TXFIFO threshold level is valid. - * @param __THRESHOLD__ UART TXFIFO threshold level. - * @retval SET (__THRESHOLD__ is valid) or RESET (__THRESHOLD__ is invalid) - */ -#define IS_UART_TXFIFO_THRESHOLD(__THRESHOLD__) (((__THRESHOLD__) == UART_TXFIFO_THRESHOLD_1_8) || \ - ((__THRESHOLD__) == UART_TXFIFO_THRESHOLD_1_4) || \ - ((__THRESHOLD__) == UART_TXFIFO_THRESHOLD_1_2) || \ - ((__THRESHOLD__) == UART_TXFIFO_THRESHOLD_3_4) || \ - ((__THRESHOLD__) == UART_TXFIFO_THRESHOLD_7_8) || \ - ((__THRESHOLD__) == UART_TXFIFO_THRESHOLD_8_8)) - -/** - * @brief Ensure that UART RXFIFO threshold level is valid. - * @param __THRESHOLD__ UART RXFIFO threshold level. - * @retval SET (__THRESHOLD__ is valid) or RESET (__THRESHOLD__ is invalid) - */ -#define IS_UART_RXFIFO_THRESHOLD(__THRESHOLD__) (((__THRESHOLD__) == UART_RXFIFO_THRESHOLD_1_8) || \ - ((__THRESHOLD__) == UART_RXFIFO_THRESHOLD_1_4) || \ - ((__THRESHOLD__) == UART_RXFIFO_THRESHOLD_1_2) || \ - ((__THRESHOLD__) == UART_RXFIFO_THRESHOLD_3_4) || \ - ((__THRESHOLD__) == UART_RXFIFO_THRESHOLD_7_8) || \ - ((__THRESHOLD__) == UART_RXFIFO_THRESHOLD_8_8)) - -/** - * @} - */ - -/* Private functions ---------------------------------------------------------*/ - -/** - * @} - */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_HAL_UART_EX_H */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_bus.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_bus.h deleted file mode 100644 index 4f15c6e..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_bus.h +++ /dev/null @@ -1,6914 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_ll_bus.h - * @author MCD Application Team - * @brief Header file of BUS LL module. - - @verbatim - ##### RCC Limitations ##### - ============================================================================== - [..] - A delay between an RCC peripheral clock enable and the effective peripheral - enabling should be taken into account in order to manage the peripheral read/write - from/to registers. - (+) This delay depends on the peripheral mapping. - (++) AHB & APB peripherals, 1 dummy read is necessary - - [..] - Workarounds: - (#) For AHB & APB peripherals, a dummy read to the peripheral register has been - inserted in each LL_{BUS}_GRP{x}_EnableClock() function. - - @endverbatim - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file in - * the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_LL_BUS_H -#define STM32H7xx_LL_BUS_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx.h" - -/** @addtogroup STM32H7xx_LL_Driver - * @{ - */ - -#if defined(RCC) - -/** @defgroup BUS_LL BUS - * @{ - */ - -/* Private variables ---------------------------------------------------------*/ - -/* Private constants ---------------------------------------------------------*/ - -/* Private macros ------------------------------------------------------------*/ - -/* Exported types ------------------------------------------------------------*/ - -/* Exported constants --------------------------------------------------------*/ -/** @defgroup BUS_LL_Exported_Constants BUS Exported Constants - * @{ - */ - -/** @defgroup BUS_LL_EC_AHB3_GRP1_PERIPH AHB3 GRP1 PERIPH - * @{ - */ -#define LL_AHB3_GRP1_PERIPH_MDMA RCC_AHB3ENR_MDMAEN -#define LL_AHB3_GRP1_PERIPH_DMA2D RCC_AHB3ENR_DMA2DEN - -#if defined(JPEG) -#define LL_AHB3_GRP1_PERIPH_JPGDEC RCC_AHB3ENR_JPGDECEN -#endif /* JPEG */ - -#define LL_AHB3_GRP1_PERIPH_FMC RCC_AHB3ENR_FMCEN -#if defined(QUADSPI) -#define LL_AHB3_GRP1_PERIPH_QSPI RCC_AHB3ENR_QSPIEN -#endif /* QUADSPI */ -#if defined(OCTOSPI1) || defined(OCTOSPI2) -#define LL_AHB3_GRP1_PERIPH_OSPI1 RCC_AHB3ENR_OSPI1EN -#define LL_AHB3_GRP1_PERIPH_OSPI2 RCC_AHB3ENR_OSPI2EN -#endif /*(OCTOSPI1) || (OCTOSPI2)*/ -#if defined(OCTOSPIM) -#define LL_AHB3_GRP1_PERIPH_OCTOSPIM RCC_AHB3ENR_IOMNGREN -#endif /* OCTOSPIM */ -#if defined(OTFDEC1) || defined(OTFDEC2) -#define LL_AHB3_GRP1_PERIPH_OTFDEC1 RCC_AHB3ENR_OTFDEC1EN -#define LL_AHB3_GRP1_PERIPH_OTFDEC2 RCC_AHB3ENR_OTFDEC2EN -#endif /* (OTFDEC1) || (OTFDEC2) */ -#if defined(GFXMMU) -#define LL_AHB3_GRP1_PERIPH_GFXMMU RCC_AHB3ENR_GFXMMUEN -#endif /* GFXMMU */ -#define LL_AHB3_GRP1_PERIPH_SDMMC1 RCC_AHB3ENR_SDMMC1EN -#define LL_AHB3_GRP1_PERIPH_FLASH RCC_AHB3LPENR_FLASHLPEN -#define LL_AHB3_GRP1_PERIPH_DTCM1 RCC_AHB3LPENR_DTCM1LPEN -#define LL_AHB3_GRP1_PERIPH_DTCM2 RCC_AHB3LPENR_DTCM2LPEN -#define LL_AHB3_GRP1_PERIPH_ITCM RCC_AHB3LPENR_ITCMLPEN -#if defined(RCC_AHB3LPENR_AXISRAMLPEN) -#define LL_AHB3_GRP1_PERIPH_AXISRAM RCC_AHB3LPENR_AXISRAMLPEN -#else -#define LL_AHB3_GRP1_PERIPH_AXISRAM1 RCC_AHB3LPENR_AXISRAM1LPEN -#define LL_AHB3_GRP1_PERIPH_AXISRAM LL_AHB3_GRP1_PERIPH_AXISRAM1 /* for backward compatibility*/ -#endif /* RCC_AHB3LPENR_AXISRAMLPEN */ -#if defined(CD_AXISRAM2_BASE) -#define LL_AHB3_GRP1_PERIPH_AXISRAM2 RCC_AHB3LPENR_AXISRAM2LPEN -#endif /* CD_AXISRAM2_BASE */ -#if defined(CD_AXISRAM3_BASE) -#define LL_AHB3_GRP1_PERIPH_AXISRAM3 RCC_AHB3LPENR_AXISRAM3LPEN -#endif /* CD_AXISRAM3_BASE */ -/** - * @} - */ - - -/** @defgroup BUS_LL_EC_AHB1_GRP1_PERIPH AHB1 GRP1 PERIPH - * @{ - */ -#define LL_AHB1_GRP1_PERIPH_DMA1 RCC_AHB1ENR_DMA1EN -#define LL_AHB1_GRP1_PERIPH_DMA2 RCC_AHB1ENR_DMA2EN -#define LL_AHB1_GRP1_PERIPH_ADC12 RCC_AHB1ENR_ADC12EN -#if defined(DUAL_CORE) -#define LL_AHB1_GRP1_PERIPH_ART RCC_AHB1ENR_ARTEN -#endif /* DUAL_CORE */ -#if defined(RCC_AHB1ENR_CRCEN) -#define LL_AHB1_GRP1_PERIPH_CRC RCC_AHB1ENR_CRCEN -#endif /* RCC_AHB1ENR_CRCEN */ -#if defined(ETH) -#define LL_AHB1_GRP1_PERIPH_ETH1MAC RCC_AHB1ENR_ETH1MACEN -#define LL_AHB1_GRP1_PERIPH_ETH1TX RCC_AHB1ENR_ETH1TXEN -#define LL_AHB1_GRP1_PERIPH_ETH1RX RCC_AHB1ENR_ETH1RXEN -#endif /* ETH */ -#define LL_AHB1_GRP1_PERIPH_USB1OTGHS RCC_AHB1ENR_USB1OTGHSEN -#define LL_AHB1_GRP1_PERIPH_USB1OTGHSULPI RCC_AHB1ENR_USB1OTGHSULPIEN -#if defined(USB2_OTG_FS) -#define LL_AHB1_GRP1_PERIPH_USB2OTGHS RCC_AHB1ENR_USB2OTGHSEN -#define LL_AHB1_GRP1_PERIPH_USB2OTGHSULPI RCC_AHB1ENR_USB2OTGHSULPIEN -#endif /* USB2_OTG_FS */ -/** - * @} - */ - - -/** @defgroup BUS_LL_EC_AHB2_GRP1_PERIPH AHB2 GRP1 PERIPH - * @{ - */ -#define LL_AHB2_GRP1_PERIPH_DCMI RCC_AHB2ENR_DCMIEN -#if defined(HSEM) && defined(RCC_AHB2ENR_HSEMEN) -#define LL_AHB2_GRP1_PERIPH_HSEM RCC_AHB2ENR_HSEMEN -#endif /* HSEM && RCC_AHB2ENR_HSEMEN */ -#if defined(CRYP) -#define LL_AHB2_GRP1_PERIPH_CRYP RCC_AHB2ENR_CRYPEN -#endif /* CRYP */ -#if defined(HASH) -#define LL_AHB2_GRP1_PERIPH_HASH RCC_AHB2ENR_HASHEN -#endif /* HASH */ -#define LL_AHB2_GRP1_PERIPH_RNG RCC_AHB2ENR_RNGEN -#define LL_AHB2_GRP1_PERIPH_SDMMC2 RCC_AHB2ENR_SDMMC2EN -#if defined(FMAC) -#define LL_AHB2_GRP1_PERIPH_FMAC RCC_AHB2ENR_FMACEN -#endif /* FMAC */ -#if defined(CORDIC) -#define LL_AHB2_GRP1_PERIPH_CORDIC RCC_AHB2ENR_CORDICEN -#endif /* CORDIC */ -#if defined(BDMA1) -#define LL_AHB2_GRP1_PERIPH_BDMA1 RCC_AHB2ENR_BDMA1EN -#endif /* BDMA1 */ -#if defined(RCC_AHB2ENR_D2SRAM1EN) -#define LL_AHB2_GRP1_PERIPH_D2SRAM1 RCC_AHB2ENR_D2SRAM1EN -#else -#define LL_AHB2_GRP1_PERIPH_AHBSRAM1 RCC_AHB2ENR_AHBSRAM1EN -#define LL_AHB2_GRP1_PERIPH_D2SRAM1 LL_AHB2_GRP1_PERIPH_AHBSRAM1 /* for backward compatibility*/ -#endif /* RCC_AHB2ENR_D2SRAM1EN */ -#if defined(RCC_AHB2ENR_D2SRAM2EN) -#define LL_AHB2_GRP1_PERIPH_D2SRAM2 RCC_AHB2ENR_D2SRAM2EN -#else -#define LL_AHB2_GRP1_PERIPH_AHBSRAM2 RCC_AHB2ENR_AHBSRAM2EN -#define LL_AHB2_GRP1_PERIPH_D2SRAM2 LL_AHB2_GRP1_PERIPH_AHBSRAM2 /* for backward compatibility*/ -#endif /* RCC_AHB2ENR_D2SRAM2EN */ -#if defined(RCC_AHB2ENR_D2SRAM3EN) -#define LL_AHB2_GRP1_PERIPH_D2SRAM3 RCC_AHB2ENR_D2SRAM3EN -#endif /* RCC_AHB2ENR_D2SRAM3EN */ -/** - * @} - */ - - -/** @defgroup BUS_LL_EC_AHB4_GRP1_PERIPH AHB4 GRP1 PERIPH - * @{ - */ -#define LL_AHB4_GRP1_PERIPH_GPIOA RCC_AHB4ENR_GPIOAEN -#define LL_AHB4_GRP1_PERIPH_GPIOB RCC_AHB4ENR_GPIOBEN -#define LL_AHB4_GRP1_PERIPH_GPIOC RCC_AHB4ENR_GPIOCEN -#define LL_AHB4_GRP1_PERIPH_GPIOD RCC_AHB4ENR_GPIODEN -#define LL_AHB4_GRP1_PERIPH_GPIOE RCC_AHB4ENR_GPIOEEN -#define LL_AHB4_GRP1_PERIPH_GPIOF RCC_AHB4ENR_GPIOFEN -#define LL_AHB4_GRP1_PERIPH_GPIOG RCC_AHB4ENR_GPIOGEN -#define LL_AHB4_GRP1_PERIPH_GPIOH RCC_AHB4ENR_GPIOHEN -#if defined(GPIOI) -#define LL_AHB4_GRP1_PERIPH_GPIOI RCC_AHB4ENR_GPIOIEN -#endif /* GPIOI */ -#define LL_AHB4_GRP1_PERIPH_GPIOJ RCC_AHB4ENR_GPIOJEN -#define LL_AHB4_GRP1_PERIPH_GPIOK RCC_AHB4ENR_GPIOKEN -#if defined(RCC_AHB4ENR_CRCEN) -#define LL_AHB4_GRP1_PERIPH_CRC RCC_AHB4ENR_CRCEN -#endif /* RCC_AHB4ENR_CRCEN */ -#if defined(BDMA2) -#define LL_AHB4_GRP1_PERIPH_BDMA2 RCC_AHB4ENR_BDMA2EN -#define LL_AHB4_GRP1_PERIPH_BDMA LL_AHB4_GRP1_PERIPH_BDMA2 /* for backward compatibility*/ -#else -#define LL_AHB4_GRP1_PERIPH_BDMA RCC_AHB4ENR_BDMAEN -#endif /* BDMA2 */ -#if defined(ADC3) -#define LL_AHB4_GRP1_PERIPH_ADC3 RCC_AHB4ENR_ADC3EN -#endif /* ADC3 */ -#if defined(HSEM) && defined(RCC_AHB4ENR_HSEMEN) -#define LL_AHB4_GRP1_PERIPH_HSEM RCC_AHB4ENR_HSEMEN -#endif /* HSEM && RCC_AHB4ENR_HSEMEN*/ -#define LL_AHB4_GRP1_PERIPH_BKPRAM RCC_AHB4ENR_BKPRAMEN -#if defined(RCC_AHB4LPENR_SRAM4LPEN) -#define LL_AHB4_GRP1_PERIPH_SRAM4 RCC_AHB4LPENR_SRAM4LPEN -#define LL_AHB4_GRP1_PERIPH_D3SRAM1 LL_AHB4_GRP1_PERIPH_SRAM4 -#else -#define LL_AHB4_GRP1_PERIPH_SRDSRAM RCC_AHB4ENR_SRDSRAMEN -#define LL_AHB4_GRP1_PERIPH_SRAM4 LL_AHB4_GRP1_PERIPH_SRDSRAM /* for backward compatibility*/ -#define LL_AHB4_GRP1_PERIPH_D3SRAM1 LL_AHB4_GRP1_PERIPH_SRDSRAM /* for backward compatibility*/ -#endif /* RCC_AHB4ENR_D3SRAM1EN */ -/** - * @} - */ - - -/** @defgroup BUS_LL_EC_APB3_GRP1_PERIPH APB3 GRP1 PERIPH - * @{ - */ -#if defined(LTDC) -#define LL_APB3_GRP1_PERIPH_LTDC RCC_APB3ENR_LTDCEN -#endif /* LTDC */ -#if defined(DSI) -#define LL_APB3_GRP1_PERIPH_DSI RCC_APB3ENR_DSIEN -#endif /* DSI */ -#define LL_APB3_GRP1_PERIPH_WWDG1 RCC_APB3ENR_WWDG1EN -#if defined(RCC_APB3ENR_WWDGEN) -#define LL_APB3_GRP1_PERIPH_WWDG LL_APB3_GRP1_PERIPH_WWDG1 /* for backward compatibility*/ -#endif /* RCC_APB3ENR_WWDGEN */ -/** - * @} - */ - - -/** @defgroup BUS_LL_EC_APB1_GRP1_PERIPH APB1 GRP1 PERIPH - * @{ - */ -#define LL_APB1_GRP1_PERIPH_TIM2 RCC_APB1LENR_TIM2EN -#define LL_APB1_GRP1_PERIPH_TIM3 RCC_APB1LENR_TIM3EN -#define LL_APB1_GRP1_PERIPH_TIM4 RCC_APB1LENR_TIM4EN -#define LL_APB1_GRP1_PERIPH_TIM5 RCC_APB1LENR_TIM5EN -#define LL_APB1_GRP1_PERIPH_TIM6 RCC_APB1LENR_TIM6EN -#define LL_APB1_GRP1_PERIPH_TIM7 RCC_APB1LENR_TIM7EN -#define LL_APB1_GRP1_PERIPH_TIM12 RCC_APB1LENR_TIM12EN -#define LL_APB1_GRP1_PERIPH_TIM13 RCC_APB1LENR_TIM13EN -#define LL_APB1_GRP1_PERIPH_TIM14 RCC_APB1LENR_TIM14EN -#define LL_APB1_GRP1_PERIPH_LPTIM1 RCC_APB1LENR_LPTIM1EN -#if defined(DUAL_CORE) -#define LL_APB1_GRP1_PERIPH_WWDG2 RCC_APB1LENR_WWDG2EN -#endif /*DUAL_CORE*/ -#define LL_APB1_GRP1_PERIPH_SPI2 RCC_APB1LENR_SPI2EN -#define LL_APB1_GRP1_PERIPH_SPI3 RCC_APB1LENR_SPI3EN -#define LL_APB1_GRP1_PERIPH_SPDIFRX RCC_APB1LENR_SPDIFRXEN -#define LL_APB1_GRP1_PERIPH_USART2 RCC_APB1LENR_USART2EN -#define LL_APB1_GRP1_PERIPH_USART3 RCC_APB1LENR_USART3EN -#define LL_APB1_GRP1_PERIPH_UART4 RCC_APB1LENR_UART4EN -#define LL_APB1_GRP1_PERIPH_UART5 RCC_APB1LENR_UART5EN -#define LL_APB1_GRP1_PERIPH_I2C1 RCC_APB1LENR_I2C1EN -#define LL_APB1_GRP1_PERIPH_I2C2 RCC_APB1LENR_I2C2EN -#define LL_APB1_GRP1_PERIPH_I2C3 RCC_APB1LENR_I2C3EN -#if defined(I2C5) -#define LL_APB1_GRP1_PERIPH_I2C5 RCC_APB1LENR_I2C5EN -#endif /* I2C5 */ -#if defined(RCC_APB1LENR_CECEN) -#define LL_APB1_GRP1_PERIPH_CEC RCC_APB1LENR_CECEN -#else -#define LL_APB1_GRP1_PERIPH_HDMICEC RCC_APB1LENR_HDMICECEN -#define LL_APB1_GRP1_PERIPH_CEC LL_APB1_GRP1_PERIPH_HDMICEC /* for backward compatibility*/ -#endif /* RCC_APB1LENR_CECEN */ -#define LL_APB1_GRP1_PERIPH_DAC12 RCC_APB1LENR_DAC12EN -#define LL_APB1_GRP1_PERIPH_UART7 RCC_APB1LENR_UART7EN -#define LL_APB1_GRP1_PERIPH_UART8 RCC_APB1LENR_UART8EN -/** - * @} - */ - - -/** @defgroup BUS_LL_EC_APB1_GRP2_PERIPH APB1 GRP2 PERIPH - * @{ - */ -#define LL_APB1_GRP2_PERIPH_CRS RCC_APB1HENR_CRSEN -#define LL_APB1_GRP2_PERIPH_SWPMI1 RCC_APB1HENR_SWPMIEN -#define LL_APB1_GRP2_PERIPH_OPAMP RCC_APB1HENR_OPAMPEN -#define LL_APB1_GRP2_PERIPH_MDIOS RCC_APB1HENR_MDIOSEN -#define LL_APB1_GRP2_PERIPH_FDCAN RCC_APB1HENR_FDCANEN -#if defined(TIM23) -#define LL_APB1_GRP2_PERIPH_TIM23 RCC_APB1HENR_TIM23EN -#endif /* TIM23 */ -#if defined(TIM24) -#define LL_APB1_GRP2_PERIPH_TIM24 RCC_APB1HENR_TIM24EN -#endif /* TIM24 */ -/** - * @} - */ - - -/** @defgroup BUS_LL_EC_APB2_GRP1_PERIPH APB2 GRP1 PERIPH - * @{ - */ -#define LL_APB2_GRP1_PERIPH_TIM1 RCC_APB2ENR_TIM1EN -#define LL_APB2_GRP1_PERIPH_TIM8 RCC_APB2ENR_TIM8EN -#define LL_APB2_GRP1_PERIPH_USART1 RCC_APB2ENR_USART1EN -#define LL_APB2_GRP1_PERIPH_USART6 RCC_APB2ENR_USART6EN -#if defined(UART9) -#define LL_APB2_GRP1_PERIPH_UART9 RCC_APB2ENR_UART9EN -#endif /* UART9 */ -#if defined(USART10) -#define LL_APB2_GRP1_PERIPH_USART10 RCC_APB2ENR_USART10EN -#endif /* USART10 */ -#define LL_APB2_GRP1_PERIPH_SPI1 RCC_APB2ENR_SPI1EN -#define LL_APB2_GRP1_PERIPH_SPI4 RCC_APB2ENR_SPI4EN -#define LL_APB2_GRP1_PERIPH_TIM15 RCC_APB2ENR_TIM15EN -#define LL_APB2_GRP1_PERIPH_TIM16 RCC_APB2ENR_TIM16EN -#define LL_APB2_GRP1_PERIPH_TIM17 RCC_APB2ENR_TIM17EN -#define LL_APB2_GRP1_PERIPH_SPI5 RCC_APB2ENR_SPI5EN -#define LL_APB2_GRP1_PERIPH_SAI1 RCC_APB2ENR_SAI1EN -#if defined(SAI2) -#define LL_APB2_GRP1_PERIPH_SAI2 RCC_APB2ENR_SAI2EN -#endif /* SAI2 */ -#if defined(SAI3) -#define LL_APB2_GRP1_PERIPH_SAI3 RCC_APB2ENR_SAI3EN -#endif /* SAI3 */ -#define LL_APB2_GRP1_PERIPH_DFSDM1 RCC_APB2ENR_DFSDM1EN -#if defined(HRTIM1) -#define LL_APB2_GRP1_PERIPH_HRTIM RCC_APB2ENR_HRTIMEN -#endif /* HRTIM1 */ -/** - * @} - */ - - -/** @defgroup BUS_LL_EC_APB4_GRP1_PERIPH APB4 GRP1 PERIPH - * @{ - */ -#define LL_APB4_GRP1_PERIPH_SYSCFG RCC_APB4ENR_SYSCFGEN -#define LL_APB4_GRP1_PERIPH_LPUART1 RCC_APB4ENR_LPUART1EN -#define LL_APB4_GRP1_PERIPH_SPI6 RCC_APB4ENR_SPI6EN -#define LL_APB4_GRP1_PERIPH_I2C4 RCC_APB4ENR_I2C4EN -#define LL_APB4_GRP1_PERIPH_LPTIM2 RCC_APB4ENR_LPTIM2EN -#define LL_APB4_GRP1_PERIPH_LPTIM3 RCC_APB4ENR_LPTIM3EN -#if defined(LPTIM4) -#define LL_APB4_GRP1_PERIPH_LPTIM4 RCC_APB4ENR_LPTIM4EN -#endif /* LPTIM4 */ -#if defined(LPTIM5) -#define LL_APB4_GRP1_PERIPH_LPTIM5 RCC_APB4ENR_LPTIM5EN -#endif /* LPTIM5 */ -#if defined(DAC2) -#define LL_APB4_GRP1_PERIPH_DAC2 RCC_APB4ENR_DAC2EN -#endif /* DAC2 */ -#define LL_APB4_GRP1_PERIPH_COMP12 RCC_APB4ENR_COMP12EN -#define LL_APB4_GRP1_PERIPH_VREF RCC_APB4ENR_VREFEN -#define LL_APB4_GRP1_PERIPH_RTCAPB RCC_APB4ENR_RTCAPBEN -#if defined(SAI4) -#define LL_APB4_GRP1_PERIPH_SAI4 RCC_APB4ENR_SAI4EN -#endif /* SAI4 */ -#if defined(DTS) -#define LL_APB4_GRP1_PERIPH_DTS RCC_APB4ENR_DTSEN -#endif /*DTS*/ -#if defined(DFSDM2_BASE) -#define LL_APB4_GRP1_PERIPH_DFSDM2 RCC_APB4ENR_DFSDM2EN -#endif /* DFSDM2_BASE */ -/** - * @} - */ - -/** @defgroup BUS_LL_EC_CLKAM_PERIPH CLKAM PERIPH - * @{ - */ -#if defined(RCC_D3AMR_BDMAAMEN) -#define LL_CLKAM_PERIPH_BDMA RCC_D3AMR_BDMAAMEN -#else -#define LL_CLKAM_PERIPH_BDMA2 RCC_SRDAMR_BDMA2AMEN -#define LL_CLKAM_PERIPH_BDMA LL_CLKAM_PERIPH_BDMA2 /* for backward compatibility*/ -#endif /* RCC_D3AMR_BDMAAMEN */ -#if defined(RCC_SRDAMR_GPIOAMEN) -#define LL_CLKAM_PERIPH_GPIO RCC_SRDAMR_GPIOAMEN -#endif /* RCC_SRDAMR_GPIOAMEN */ -#if defined(RCC_D3AMR_LPUART1AMEN) -#define LL_CLKAM_PERIPH_LPUART1 RCC_D3AMR_LPUART1AMEN -#else -#define LL_CLKAM_PERIPH_LPUART1 RCC_SRDAMR_LPUART1AMEN -#endif /* RCC_D3AMR_LPUART1AMEN */ -#if defined(RCC_D3AMR_SPI6AMEN) -#define LL_CLKAM_PERIPH_SPI6 RCC_D3AMR_SPI6AMEN -#else -#define LL_CLKAM_PERIPH_SPI6 RCC_SRDAMR_SPI6AMEN -#endif /* RCC_D3AMR_SPI6AMEN */ -#if defined(RCC_D3AMR_I2C4AMEN) -#define LL_CLKAM_PERIPH_I2C4 RCC_D3AMR_I2C4AMEN -#else -#define LL_CLKAM_PERIPH_I2C4 RCC_SRDAMR_I2C4AMEN -#endif /* RCC_D3AMR_I2C4AMEN */ -#if defined(RCC_D3AMR_LPTIM2AMEN) -#define LL_CLKAM_PERIPH_LPTIM2 RCC_D3AMR_LPTIM2AMEN -#else -#define LL_CLKAM_PERIPH_LPTIM2 RCC_SRDAMR_LPTIM2AMEN -#endif /* RCC_D3AMR_LPTIM2AMEN */ -#if defined(RCC_D3AMR_LPTIM3AMEN) -#define LL_CLKAM_PERIPH_LPTIM3 RCC_D3AMR_LPTIM3AMEN -#else -#define LL_CLKAM_PERIPH_LPTIM3 RCC_SRDAMR_LPTIM3AMEN -#endif /* RCC_D3AMR_LPTIM3AMEN */ -#if defined(RCC_D3AMR_LPTIM4AMEN) -#define LL_CLKAM_PERIPH_LPTIM4 RCC_D3AMR_LPTIM4AMEN -#endif /* RCC_D3AMR_LPTIM4AMEN */ -#if defined(RCC_D3AMR_LPTIM5AMEN) -#define LL_CLKAM_PERIPH_LPTIM5 RCC_D3AMR_LPTIM5AMEN -#endif /* RCC_D3AMR_LPTIM5AMEN */ -#if defined(DAC2) -#define LL_CLKAM_PERIPH_DAC2 RCC_SRDAMR_DAC2AMEN -#endif /* DAC2 */ -#if defined(RCC_D3AMR_COMP12AMEN) -#define LL_CLKAM_PERIPH_COMP12 RCC_D3AMR_COMP12AMEN -#else -#define LL_CLKAM_PERIPH_COMP12 RCC_SRDAMR_COMP12AMEN -#endif /* RCC_D3AMR_COMP12AMEN */ -#if defined(RCC_D3AMR_VREFAMEN) -#define LL_CLKAM_PERIPH_VREF RCC_D3AMR_VREFAMEN -#else -#define LL_CLKAM_PERIPH_VREF RCC_SRDAMR_VREFAMEN -#endif /* RCC_D3AMR_VREFAMEN */ -#if defined(RCC_D3AMR_RTCAMEN) -#define LL_CLKAM_PERIPH_RTC RCC_D3AMR_RTCAMEN -#else -#define LL_CLKAM_PERIPH_RTC RCC_SRDAMR_RTCAMEN -#endif /* RCC_D3AMR_RTCAMEN */ -#if defined(RCC_D3AMR_CRCAMEN) -#define LL_CLKAM_PERIPH_CRC RCC_D3AMR_CRCAMEN -#endif /* RCC_D3AMR_CRCAMEN */ -#if defined(SAI4) -#define LL_CLKAM_PERIPH_SAI4 RCC_D3AMR_SAI4AMEN -#endif /* SAI4 */ -#if defined(ADC3) -#define LL_CLKAM_PERIPH_ADC3 RCC_D3AMR_ADC3AMEN -#endif /* ADC3 */ -#if defined(RCC_SRDAMR_DTSAMEN) -#define LL_CLKAM_PERIPH_DTS RCC_SRDAMR_DTSAMEN -#endif /* RCC_SRDAMR_DTSAMEN */ -#if defined(RCC_D3AMR_DTSAMEN) -#define LL_CLKAM_PERIPH_DTS RCC_D3AMR_DTSAMEN -#endif /* RCC_D3AMR_DTSAMEN */ -#if defined(DFSDM2_BASE) -#define LL_CLKAM_PERIPH_DFSDM2 RCC_SRDAMR_DFSDM2AMEN -#endif /* DFSDM2_BASE */ -#if defined(RCC_D3AMR_BKPRAMAMEN) -#define LL_CLKAM_PERIPH_BKPRAM RCC_D3AMR_BKPRAMAMEN -#else -#define LL_CLKAM_PERIPH_BKPRAM RCC_SRDAMR_BKPRAMAMEN -#endif /* RCC_D3AMR_BKPRAMAMEN */ -#if defined(RCC_D3AMR_SRAM4AMEN) -#define LL_CLKAM_PERIPH_SRAM4 RCC_D3AMR_SRAM4AMEN -#else -#define LL_CLKAM_PERIPH_SRDSRAM RCC_SRDAMR_SRDSRAMAMEN -#define LL_CLKAM_PERIPH_SRAM4 LL_CLKAM_PERIPH_SRDSRAM -#endif /* RCC_D3AMR_SRAM4AMEN */ -/** - * @} - */ - -#if defined(RCC_CKGAENR_AXICKG) -/** @defgroup BUS_LL_EC_CKGA_PERIPH CKGA (AXI Clocks Gating) PERIPH - * @{ - */ -#define LL_CKGA_PERIPH_AXI RCC_CKGAENR_AXICKG -#define LL_CKGA_PERIPH_AHB RCC_CKGAENR_AHBCKG -#define LL_CKGA_PERIPH_CPU RCC_CKGAENR_CPUCKG -#define LL_CKGA_PERIPH_SDMMC RCC_CKGAENR_SDMMCCKG -#define LL_CKGA_PERIPH_MDMA RCC_CKGAENR_MDMACKG -#define LL_CKGA_PERIPH_DMA2D RCC_CKGAENR_DMA2DCKG -#define LL_CKGA_PERIPH_LTDC RCC_CKGAENR_LTDCCKG -#define LL_CKGA_PERIPH_GFXMMUM RCC_CKGAENR_GFXMMUMCKG -#define LL_CKGA_PERIPH_AHB12 RCC_CKGAENR_AHB12CKG -#define LL_CKGA_PERIPH_AHB34 RCC_CKGAENR_AHB34CKG -#define LL_CKGA_PERIPH_FLIFT RCC_CKGAENR_FLIFTCKG -#define LL_CKGA_PERIPH_OCTOSPI2 RCC_CKGAENR_OCTOSPI2CKG -#define LL_CKGA_PERIPH_FMC RCC_CKGAENR_FMCCKG -#define LL_CKGA_PERIPH_OCTOSPI1 RCC_CKGAENR_OCTOSPI1CKG -#define LL_CKGA_PERIPH_AXIRAM1 RCC_CKGAENR_AXIRAM1CKG -#define LL_CKGA_PERIPH_AXIRAM2 RCC_CKGAENR_AXIRAM2CKG -#define LL_CKGA_PERIPH_AXIRAM3 RCC_CKGAENR_AXIRAM3CKG -#define LL_CKGA_PERIPH_GFXMMUS RCC_CKGAENR_GFXMMUSCKG -#define LL_CKGA_PERIPH_ECCRAM RCC_CKGAENR_ECCRAMCKG -#define LL_CKGA_PERIPH_EXTI RCC_CKGAENR_EXTICKG -#define LL_CKGA_PERIPH_JTAG RCC_CKGAENR_JTAGCKG -/** - * @} - */ -#endif /* RCC_CKGAENR_AXICKG */ - -/** - * @} - */ - -/* Exported macro ------------------------------------------------------------*/ - -/* Exported functions --------------------------------------------------------*/ - -/** @defgroup BUS_LL_Exported_Functions BUS Exported Functions - * @{ - */ - -/** @defgroup BUS_LL_EF_AHB3 AHB3 - * @{ - */ - -/** - * @brief Enable AHB3 peripherals clock. - * @rmtoll AHB3ENR MDMAEN LL_AHB3_GRP1_EnableClock\n - * AHB3ENR DMA2DEN LL_AHB3_GRP1_EnableClock\n - * AHB3ENR JPGDECEN LL_AHB3_GRP1_EnableClock\n - * AHB3ENR FMCEN LL_AHB3_GRP1_EnableClock\n - * AHB3ENR QSPIEN LL_AHB3_GRP1_EnableClock\n (*) - * AHB3ENR OSPI1EN LL_AHB3_GRP1_EnableClock\n (*) - * AHB3ENR OSPI2EN LL_AHB3_GRP1_EnableClock\n (*) - * AHB3ENR IOMNGREN LL_AHB3_GRP1_EnableClock\n (*) - * AHB3ENR OTFDEC1EN LL_AHB3_GRP1_EnableClock\n (*) - * AHB3ENR OTFDEC2EN LL_AHB3_GRP1_EnableClock\n (*) - * AHB3ENR GFXMMUEN LL_AHB3_GRP1_EnableClock\n (*) - * AHB3ENR SDMMC1EN LL_AHB3_GRP1_EnableClock\n - * AHB3ENR FLASHEN LL_AHB3_GRP1_EnableClock\n (*) - * AHB3ENR DTCM1EN LL_AHB3_GRP1_EnableClock\n (*) - * AHB3ENR DTCM2EN LL_AHB3_GRP1_EnableClock\n (*) - * AHB3ENR ITCMEN LL_AHB3_GRP1_EnableClock\n (*) - * AHB3ENR AXISRAMEN LL_AHB3_GRP1_EnableClock (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB3_GRP1_PERIPH_MDMA - * @arg @ref LL_AHB3_GRP1_PERIPH_DMA2D - * @arg @ref LL_AHB3_GRP1_PERIPH_JPGDEC (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_FMC - * @arg @ref LL_AHB3_GRP1_PERIPH_QSPI (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OSPI1 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OSPI2 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OCTOSPIM (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OTFDEC1 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OTFDEC2 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_GFXMMU (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_SDMMC1 - * @arg @ref LL_AHB3_GRP1_PERIPH_FLASH (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_DTCM1 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_DTCM2 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_ITCM (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_AXISRAM - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_AHB3_GRP1_EnableClock(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC->AHB3ENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC->AHB3ENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Check if AHB3 peripheral clock is enabled or not - * @rmtoll AHB3ENR MDMAEN LL_AHB3_GRP1_IsEnabledClock\n - * AHB3ENR DMA2DEN LL_AHB3_GRP1_IsEnabledClock\n - * AHB3ENR JPGDECEN LL_AHB3_GRP1_IsEnabledClock\n - * AHB3ENR FMCEN LL_AHB3_GRP1_IsEnabledClock\n - * AHB3ENR QSPIEN LL_AHB3_GRP1_IsEnabledClock\n (*) - * AHB3ENR OSPI1EN LL_AHB3_GRP1_IsEnabledClock\n (*) - * AHB3ENR OSPI2EN LL_AHB3_GRP1_IsEnabledClock\n (*) - * AHB3ENR IOMNGREN LL_AHB3_GRP1_IsEnabledClock\n (*) - * AHB3ENR OTFDEC1EN LL_AHB3_GRP1_IsEnabledClock\n (*) - * AHB3ENR OTFDEC2EN LL_AHB3_GRP1_IsEnabledClock\n (*) - * AHB3ENR GFXMMUEN LL_AHB3_GRP1_IsEnabledClock\n (*) - * AHB3ENR SDMMC1EN LL_AHB3_GRP1_IsEnabledClock\n - * AHB3ENR FLASHEN LL_AHB3_GRP1_IsEnabledClock\n (*) - * AHB3ENR DTCM1EN LL_AHB3_GRP1_IsEnabledClock\n (*) - * AHB3ENR DTCM2EN LL_AHB3_GRP1_IsEnabledClock\n (*) - * AHB3ENR ITCMEN LL_AHB3_GRP1_IsEnabledClock\n (*) - * AHB3ENR AXISRAMEN LL_AHB3_GRP1_IsEnabledClock (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB3_GRP1_PERIPH_MDMA - * @arg @ref LL_AHB3_GRP1_PERIPH_DMA2D - * @arg @ref LL_AHB3_GRP1_PERIPH_JPGDEC (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_FMC - * @arg @ref LL_AHB3_GRP1_PERIPH_QSPI (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OSPI1 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OSPI2 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OCTOSPIM (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OTFDEC1 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OTFDEC2 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_GFXMMU (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_SDMMC1 - * @arg @ref LL_AHB3_GRP1_PERIPH_FLASH (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_DTCM1 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_DTCM2 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_ITCM (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_AXISRAM - * - * (*) value not defined in all devices. - * @retval uint32_t -*/ -__STATIC_INLINE uint32_t LL_AHB3_GRP1_IsEnabledClock(uint32_t Periphs) -{ - return ((READ_BIT(RCC->AHB3ENR, Periphs) == Periphs) ? 1U : 0U); -} - -/** - * @brief Disable AHB3 peripherals clock. - * @rmtoll AHB3ENR MDMAEN LL_AHB3_GRP1_DisableClock\n - * AHB3ENR DMA2DEN LL_AHB3_GRP1_DisableClock\n - * AHB3ENR JPGDECEN LL_AHB3_GRP1_DisableClock\n - * AHB3ENR FMCEN LL_AHB3_GRP1_DisableClock\n - * AHB3ENR QSPIEN LL_AHB3_GRP1_DisableClock\n (*) - * AHB3ENR OSPI1EN LL_AHB3_GRP1_DisableClock\n (*) - * AHB3ENR OSPI2EN LL_AHB3_GRP1_DisableClock\n (*) - * AHB3ENR IOMNGREN LL_AHB3_GRP1_DisableClock\n (*) - * AHB3ENR OTFDEC1EN LL_AHB3_GRP1_DisableClock\n (*) - * AHB3ENR OTFDEC2EN LL_AHB3_GRP1_DisableClock\n (*) - * AHB3ENR GFXMMUEN LL_AHB3_GRP1_DisableClock\n (*) - * AHB3ENR SDMMC1EN LL_AHB3_GRP1_DisableClock\n (*) - * AHB3ENR FLASHEN LL_AHB3_GRP1_DisableClock\n (*) - * AHB3ENR DTCM1EN LL_AHB3_GRP1_DisableClock\n (*) - * AHB3ENR DTCM2EN LL_AHB3_GRP1_DisableClock\n (*) - * AHB3ENR ITCMEN LL_AHB3_GRP1_DisableClock\n (*) - * AHB3ENR AXISRAMEN LL_AHB3_GRP1_DisableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB3_GRP1_PERIPH_MDMA - * @arg @ref LL_AHB3_GRP1_PERIPH_DMA2D - * @arg @ref LL_AHB3_GRP1_PERIPH_JPGDEC (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_FMC - * @arg @ref LL_AHB3_GRP1_PERIPH_QSPI (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OSPI1 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OSPI2 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OCTOSPIM (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OTFDEC1 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OTFDEC2 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_GFXMMU (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_SDMMC1 - * @arg @ref LL_AHB3_GRP1_PERIPH_FLASH (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_DTCM1 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_DTCM2 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_ITCM (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_AXISRAM - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_AHB3_GRP1_DisableClock(uint32_t Periphs) -{ - CLEAR_BIT(RCC->AHB3ENR, Periphs); -} - -/** - * @brief Force AHB3 peripherals reset. - * @rmtoll AHB3RSTR MDMARST LL_AHB3_GRP1_ForceReset\n - * AHB3RSTR DMA2DRST LL_AHB3_GRP1_ForceReset\n - * AHB3RSTR JPGDECRST LL_AHB3_GRP1_ForceReset\n - * AHB3RSTR FMCRST LL_AHB3_GRP1_ForceReset\n - * AHB3RSTR QSPIRST LL_AHB3_GRP1_ForceReset\n (*) - * AHB3RSTR OSPI1RST LL_AHB3_GRP1_ForceReset\n (*) - * AHB3RSTR OSPI2RST LL_AHB3_GRP1_ForceReset\n (*) - * AHB3RSTR IOMNGRRST LL_AHB3_GRP1_ForceReset\n (*) - * AHB3RSTR OTFDEC1RST LL_AHB3_GRP1_ForceReset\n (*) - * AHB3RSTR OTFDEC2RST LL_AHB3_GRP1_ForceReset\n (*) - * AHB3RSTR GFXMMURST LL_AHB3_GRP1_ForceReset\n (*) - * AHB3RSTR SDMMC1RST LL_AHB3_GRP1_ForceReset - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB3_GRP1_PERIPH_MDMA - * @arg @ref LL_AHB3_GRP1_PERIPH_DMA2D - * @arg @ref LL_AHB3_GRP1_PERIPH_JPGDEC (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_FMC - * @arg @ref LL_AHB3_GRP1_PERIPH_QSPI (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OSPI1 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OSPI2 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OCTOSPIM (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OTFDEC1 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OTFDEC2 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_GFXMMU (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_SDMMC1 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_AHB3_GRP1_ForceReset(uint32_t Periphs) -{ - SET_BIT(RCC->AHB3RSTR, Periphs); -} - -/** - * @brief Release AHB3 peripherals reset. - * @rmtoll AHB3RSTR MDMARST LL_AHB3_GRP1_ReleaseReset\n - * AHB3RSTR DMA2DRST LL_AHB3_GRP1_ReleaseReset\n - * AHB3RSTR JPGDECRST LL_AHB3_GRP1_ReleaseReset\n - * AHB3RSTR FMCRST LL_AHB3_GRP1_ReleaseReset\n - * AHB3RSTR QSPIRST LL_AHB3_GRP1_ReleaseReset\n - * AHB3RSTR OSPI1RST LL_AHB3_GRP1_ReleaseReset\n (*) - * AHB3RSTR OSPI2RST LL_AHB3_GRP1_ReleaseReset\n (*) - * AHB3RSTR IOMNGRRST LL_AHB3_GRP1_ReleaseReset\n (*) - * AHB3RSTR OTFDEC1RST LL_AHB3_GRP1_ReleaseReset\n (*) - * AHB3RSTR OTFDEC2RST LL_AHB3_GRP1_ReleaseReset\n (*) - * AHB3RSTR GFXMMURST LL_AHB3_GRP1_ReleaseReset\n (*) - * AHB3RSTR SDMMC1RST LL_AHB3_GRP1_ReleaseReset - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB3_GRP1_PERIPH_MDMA - * @arg @ref LL_AHB3_GRP1_PERIPH_DMA2D - * @arg @ref LL_AHB3_GRP1_PERIPH_JPGDEC (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_FMC - * @arg @ref LL_AHB3_GRP1_PERIPH_QSPI (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OSPI1 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OSPI2 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OCTOSPIM (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OTFDEC1 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OTFDEC2 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_GFXMMU (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_SDMMC1 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_AHB3_GRP1_ReleaseReset(uint32_t Periphs) -{ - CLEAR_BIT(RCC->AHB3RSTR, Periphs); -} - -/** - * @brief Enable AHB3 peripherals clock during Low Power (Sleep) mode. - * @rmtoll AHB3LPENR MDMALPEN LL_AHB3_GRP1_EnableClockSleep\n - * AHB3LPENR DMA2DLPEN LL_AHB3_GRP1_EnableClockSleep\n - * AHB3LPENR JPGDECLPEN LL_AHB3_GRP1_EnableClockSleep\n - * AHB3LPENR FMCLPEN LL_AHB3_GRP1_EnableClockSleep\n - * AHB3LPENR QSPILPEN LL_AHB3_GRP1_EnableClockSleep\n (*) - * AHB3LPENR OSPI1LPEN LL_AHB3_GRP1_EnableClockSleep\n (*) - * AHB3LPENR OSPI2LPEN LL_AHB3_GRP1_EnableClockSleep\n (*) - * AHB3LPENR IOMNGRLPEN LL_AHB3_GRP1_EnableClockSleep\n (*) - * AHB3LPENR OTFDEC1LPEN LL_AHB3_GRP1_EnableClockSleep\n (*) - * AHB3LPENR OTFDEC1LPEN LL_AHB3_GRP1_EnableClockSleep\n (*) - * AHB3LPENR GFXMMULPEN LL_AHB3_GRP1_EnableClockSleep\n (*) - * AHB3LPENR SDMMC1LPEN LL_AHB3_GRP1_EnableClockSleep\n - * AHB3LPENR FLASHLPEN LL_AHB3_GRP1_EnableClockSleep\n - * AHB3LPENR DTCM1LPEN LL_AHB3_GRP1_EnableClockSleep\n - * AHB3LPENR DTCM2LPEN LL_AHB3_GRP1_EnableClockSleep\n - * AHB3LPENR ITCMLPEN LL_AHB3_GRP1_EnableClockSleep\n - * AHB3LPENR AXISRAMLPEN LL_AHB3_GRP1_EnableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB3_GRP1_PERIPH_DMA2D - * @arg @ref LL_AHB3_GRP1_PERIPH_JPGDEC (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_FMC - * @arg @ref LL_AHB3_GRP1_PERIPH_QSPI (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OSPI1 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OSPI2 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OCTOSPIM (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OTFDEC1 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OTFDEC2 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_GFXMMU (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_SDMMC1 - * @arg @ref LL_AHB3_GRP1_PERIPH_FLASH - * @arg @ref LL_AHB3_GRP1_PERIPH_DTCM1 - * @arg @ref LL_AHB3_GRP1_PERIPH_DTCM2 - * @arg @ref LL_AHB3_GRP1_PERIPH_ITCM - * @arg @ref LL_AHB3_GRP1_PERIPH_AXISRAM - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_AHB3_GRP1_EnableClockSleep(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC->AHB3LPENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC->AHB3LPENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Disable AHB3 peripherals clock during Low Power (Sleep) mode. - * @rmtoll AHB3LPENR MDMALPEN LL_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR DMA2DLPEN LL_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR JPGDECLPEN LL_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR FMCLPEN LL_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR QSPILPEN LL_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR OSPI1LPEN LL_AHB3_GRP1_DisableClockSleep\n (*) - * AHB3LPENR OSPI2LPEN LL_AHB3_GRP1_DisableClockSleep\n (*) - * AHB3LPENR IOMNGRLPEN LL_AHB3_GRP1_DisableClockSleep\n (*) - * AHB3LPENR OTFDEC1LPEN LL_AHB3_GRP1_DisableClockSleep\n (*) - * AHB3LPENR OTFDEC1LPEN LL_AHB3_GRP1_DisableClockSleep\n (*) - * AHB3LPENR GFXMMULPEN LL_AHB3_GRP1_DisableClockSleep\n (*) - * AHB3LPENR SDMMC1LPEN LL_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR FLASHLPEN LL_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR DTCM1LPEN LL_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR DTCM2LPEN LL_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR ITCMLPEN LL_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR AXISRAMLPEN LL_AHB3_GRP1_DisableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB3_GRP1_PERIPH_DMA2D - * @arg @ref LL_AHB3_GRP1_PERIPH_JPGDEC (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_FMC - * @arg @ref LL_AHB3_GRP1_PERIPH_QSPI (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OSPI1 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OSPI2 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OCTOSPIM (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OTFDEC1 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OTFDEC2 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_GFXMMU (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_SDMMC1 - * @arg @ref LL_AHB3_GRP1_PERIPH_FLASH - * @arg @ref LL_AHB3_GRP1_PERIPH_DTCM1 - * @arg @ref LL_AHB3_GRP1_PERIPH_DTCM2 - * @arg @ref LL_AHB3_GRP1_PERIPH_ITCM - * @arg @ref LL_AHB3_GRP1_PERIPH_AXISRAM - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_AHB3_GRP1_DisableClockSleep(uint32_t Periphs) -{ - CLEAR_BIT(RCC->AHB3LPENR, Periphs); -} - -/** - * @} - */ - -/** @defgroup BUS_LL_EF_AHB1 AHB1 - * @{ - */ - -/** - * @brief Enable AHB1 peripherals clock. - * @rmtoll AHB1ENR DMA1EN LL_AHB1_GRP1_EnableClock\n - * AHB1ENR DMA2EN LL_AHB1_GRP1_EnableClock\n - * AHB1ENR ADC12EN LL_AHB1_GRP1_EnableClock\n - * AHB1ENR ARTEN LL_AHB1_GRP1_EnableClock\n - * AHB1ENR CRCEN LL_AHB1_GRP1_EnableClock\n (*) - * AHB1ENR ETH1MACEN LL_AHB1_GRP1_EnableClock\n (*) - * AHB1ENR ETH1TXEN LL_AHB1_GRP1_EnableClock\n (*) - * AHB1ENR ETH1RXEN LL_AHB1_GRP1_EnableClock\n (*) - * AHB1ENR USB1OTGHSEN LL_AHB1_GRP1_EnableClock\n - * AHB1ENR USB1OTGHSULPIEN LL_AHB1_GRP1_EnableClock\n - * AHB1ENR USB2OTGHSEN LL_AHB1_GRP1_EnableClock\n (*) - * AHB1ENR USB2OTGHSULPIEN LL_AHB1_GRP1_EnableClock (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA1 - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA2 - * @arg @ref LL_AHB1_GRP1_PERIPH_ADC12 - * @arg @ref LL_AHB1_GRP1_PERIPH_ART (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1MAC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1TX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1RX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHS - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHSULPI - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHS (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHSULPI (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_AHB1_GRP1_EnableClock(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC->AHB1ENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC->AHB1ENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Check if AHB1 peripheral clock is enabled or not - * @rmtoll AHB1ENR DMA1EN LL_AHB1_GRP1_IsEnabledClock\n - * AHB1ENR DMA2EN LL_AHB1_GRP1_IsEnabledClock\n - * AHB1ENR ADC12EN LL_AHB1_GRP1_IsEnabledClock\n - * AHB1ENR ARTEN LL_AHB1_GRP1_IsEnabledClock\n (*) - * AHB1ENR CRCEN LL_AHB1_GRP1_IsEnabledClock\n (*) - * AHB1ENR ETH1MACEN LL_AHB1_GRP1_IsEnabledClock\n (*) - * AHB1ENR ETH1TXEN LL_AHB1_GRP1_IsEnabledClock\n (*) - * AHB1ENR ETH1RXEN LL_AHB1_GRP1_IsEnabledClock\n (*) - * AHB1ENR USB1OTGHSEN LL_AHB1_GRP1_IsEnabledClock\n - * AHB1ENR USB1OTGHSULPIEN LL_AHB1_GRP1_IsEnabledClock\n - * AHB1ENR USB2OTGHSEN LL_AHB1_GRP1_IsEnabledClock\n (*) - * AHB1ENR USB2OTGHSULPIEN LL_AHB1_GRP1_IsEnabledClock (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA1 - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA2 - * @arg @ref LL_AHB1_GRP1_PERIPH_ADC12 - * @arg @ref LL_AHB1_GRP1_PERIPH_ART (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1MAC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1TX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1RX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHS - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHSULPI - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHS (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHSULPI (*) - * - * (*) value not defined in all devices. - * @retval uint32_t -*/ -__STATIC_INLINE uint32_t LL_AHB1_GRP1_IsEnabledClock(uint32_t Periphs) -{ - return ((READ_BIT(RCC->AHB1ENR, Periphs) == Periphs) ? 1U : 0U); -} - -/** - * @brief Disable AHB1 peripherals clock. - * @rmtoll AHB1ENR DMA1EN LL_AHB1_GRP1_DisableClock\n - * AHB1ENR DMA2EN LL_AHB1_GRP1_DisableClock\n - * AHB1ENR ADC12EN LL_AHB1_GRP1_DisableClock\n - * AHB1ENR ARTEN LL_AHB1_GRP1_DisableClock\n (*) - * AHB1ENR CRCEN LL_AHB1_GRP1_DisableClock\n (*) - * AHB1ENR ETH1MACEN LL_AHB1_GRP1_DisableClock\n (*) - * AHB1ENR ETH1TXEN LL_AHB1_GRP1_DisableClock\n (*) - * AHB1ENR ETH1RXEN LL_AHB1_GRP1_DisableClock\n (*) - * AHB1ENR USB1OTGHSEN LL_AHB1_GRP1_DisableClock\n - * AHB1ENR USB1OTGHSULPIEN LL_AHB1_GRP1_DisableClock\n - * AHB1ENR USB2OTGHSEN LL_AHB1_GRP1_DisableClock\n (*) - * AHB1ENR USB2OTGHSULPIEN LL_AHB1_GRP1_DisableClock (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA1 - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA2 - * @arg @ref LL_AHB1_GRP1_PERIPH_ADC12 - * @arg @ref LL_AHB1_GRP1_PERIPH_ART (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1MAC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1TX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1RX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHS - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHSULPI - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHS (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHSULPI (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_AHB1_GRP1_DisableClock(uint32_t Periphs) -{ - CLEAR_BIT(RCC->AHB1ENR, Periphs); -} - -/** - * @brief Force AHB1 peripherals reset. - * @rmtoll AHB1RSTR DMA1RST LL_AHB1_GRP1_ForceReset\n - * AHB1RSTR DMA2RST LL_AHB1_GRP1_ForceReset\n - * AHB1RSTR ADC12RST LL_AHB1_GRP1_ForceReset\n - * AHB1RSTR ARTRST LL_AHB1_GRP1_ForceReset\n (*) - * AHB1RSTR CRCRST LL_AHB1_GRP1_ForceReset\n (*) - * AHB1RSTR ETH1MACRST LL_AHB1_GRP1_ForceReset\n (*) - * AHB1RSTR USB1OTGHSRST LL_AHB1_GRP1_ForceReset\n - * AHB1RSTR USB2OTGHSRST LL_AHB1_GRP1_ForceReset (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA1 - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA2 - * @arg @ref LL_AHB1_GRP1_PERIPH_ADC12 - * @arg @ref LL_AHB1_GRP1_PERIPH_ART (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1MAC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHS - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHS (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_AHB1_GRP1_ForceReset(uint32_t Periphs) -{ - SET_BIT(RCC->AHB1RSTR, Periphs); -} - -/** - * @brief Release AHB1 peripherals reset. - * @rmtoll AHB1RSTR DMA1RST LL_AHB1_GRP1_ReleaseReset\n - * AHB1RSTR DMA2RST LL_AHB1_GRP1_ReleaseReset\n - * AHB1RSTR ADC12RST LL_AHB1_GRP1_ReleaseReset\n - * AHB1RSTR ARTRST LL_AHB1_GRP1_ReleaseReset\n (*) - * AHB1RSTR CRCRST LL_AHB1_GRP1_ReleaseReset\n (*) - * AHB1RSTR ETH1MACRST LL_AHB1_GRP1_ReleaseReset\n (*) - * AHB1RSTR USB1OTGHSRST LL_AHB1_GRP1_ReleaseReset\n - * AHB1RSTR USB2OTGHSRST LL_AHB1_GRP1_ReleaseReset (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA1 - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA2 - * @arg @ref LL_AHB1_GRP1_PERIPH_ADC12 - * @arg @ref LL_AHB1_GRP1_PERIPH_ART (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1MAC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHS - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHS (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_AHB1_GRP1_ReleaseReset(uint32_t Periphs) -{ - CLEAR_BIT(RCC->AHB1RSTR, Periphs); -} - -/** - * @brief Enable AHB1 peripherals clock during Low Power (Sleep) mode. - * @rmtoll AHB1LPENR DMA1LPEN LL_AHB1_GRP1_EnableClockSleep\n - * AHB1LPENR DMA2LPEN LL_AHB1_GRP1_EnableClockSleep\n - * AHB1LPENR ADC12LPEN LL_AHB1_GRP1_EnableClockSleep\n - * AHB1LPENR ARTLPEN LL_AHB1_GRP1_EnableClockSleep\n (*) - * AHB1LPENR CRCLPEN LL_AHB1_GRP1_EnableClockSleep\n (*) - * AHB1LPENR ETH1MACLPEN LL_AHB1_GRP1_EnableClockSleep\n (*) - * AHB1LPENR ETH1TXLPEN LL_AHB1_GRP1_EnableClockSleep\n (*) - * AHB1LPENR ETH1RXLPEN LL_AHB1_GRP1_EnableClockSleep\n - * AHB1LPENR USB1OTGHSLPEN LL_AHB1_GRP1_EnableClockSleep\n - * AHB1LPENR USB1OTGHSULPILPEN LL_AHB1_GRP1_EnableClockSleep\n - * AHB1LPENR USB2OTGHSLPEN LL_AHB1_GRP1_EnableClockSleep\n (*) - * AHB1LPENR USB2OTGHSULPILPEN LL_AHB1_GRP1_EnableClockSleep (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA1 - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA2 - * @arg @ref LL_AHB1_GRP1_PERIPH_ADC12 - * @arg @ref LL_AHB1_GRP1_PERIPH_ART (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1MAC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1TX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1RX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHS - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHSULPI - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHS (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHSULPI (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_AHB1_GRP1_EnableClockSleep(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC->AHB1LPENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC->AHB1LPENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Disable AHB1 peripherals clock during Low Power (Sleep) mode. - * @rmtoll AHB1LPENR DMA1LPEN LL_AHB1_GRP1_DisableClockSleep\n - * AHB1LPENR DMA2LPEN LL_AHB1_GRP1_DisableClockSleep\n - * AHB1LPENR ADC12LPEN LL_AHB1_GRP1_DisableClockSleep\n - * AHB1LPENR ARTLPEN LL_AHB1_GRP1_DisableClockSleep\n (*) - * AHB1LPENR CRCLPEN LL_AHB1_GRP1_DisableClockSleep\n (*) - * AHB1LPENR ETH1MACLPEN LL_AHB1_GRP1_DisableClockSleep\n (*) - * AHB1LPENR ETH1TXLPEN LL_AHB1_GRP1_DisableClockSleep\n (*) - * AHB1LPENR ETH1RXLPEN LL_AHB1_GRP1_DisableClockSleep\n (*) - * AHB1LPENR USB1OTGHSLPEN LL_AHB1_GRP1_DisableClockSleep\n - * AHB1LPENR USB1OTGHSULPILPEN LL_AHB1_GRP1_DisableClockSleep\n - * AHB1LPENR USB2OTGHSLPEN LL_AHB1_GRP1_DisableClockSleep\n (*) - * AHB1LPENR USB2OTGHSULPILPEN LL_AHB1_GRP1_DisableClockSleep (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA1 - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA2 - * @arg @ref LL_AHB1_GRP1_PERIPH_ADC12 - * @arg @ref LL_AHB1_GRP1_PERIPH_ART (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1MAC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1TX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1RX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHS - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHSULPI - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHS (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHSULPI (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_AHB1_GRP1_DisableClockSleep(uint32_t Periphs) -{ - CLEAR_BIT(RCC->AHB1LPENR, Periphs); -} - -/** - * @} - */ - -/** @defgroup BUS_LL_EF_AHB2 AHB2 - * @{ - */ - -/** - * @brief Enable AHB2 peripherals clock. - * @rmtoll AHB2ENR DCMIEN LL_AHB2_GRP1_EnableClock\n - * AHB2ENR HSEMEN LL_AHB2_GRP1_EnableClock\n (*) - * AHB2ENR CRYPEN LL_AHB2_GRP1_EnableClock\n (*) - * AHB2ENR HASHEN LL_AHB2_GRP1_EnableClock\n (*) - * AHB2ENR RNGEN LL_AHB2_GRP1_EnableClock\n - * AHB2ENR SDMMC2EN LL_AHB2_GRP1_EnableClock\n - * AHB2ENR BDMA1EN LL_AHB2_GRP1_EnableClock\n (*) - * AHB2ENR FMACEN LL_AHB2_GRP1_EnableClock\n - * AHB2ENR CORDICEN LL_AHB2_GRP1_EnableClock\n - * AHB2ENR D2SRAM1EN LL_AHB2_GRP1_EnableClock\n - * AHB2ENR D2SRAM2EN LL_AHB2_GRP1_EnableClock\n - * AHB2ENR D2SRAM3EN LL_AHB2_GRP1_EnableClock (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB2_GRP1_PERIPH_DCMI - * @arg @ref LL_AHB2_GRP1_PERIPH_HSEM (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_CRYP (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_HASH (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_RNG - * @arg @ref LL_AHB2_GRP1_PERIPH_SDMMC2 - * @arg @ref LL_AHB2_GRP1_PERIPH_BDMA1 (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_FMAC (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_CORDIC (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM1 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM2 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM3 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_AHB2_GRP1_EnableClock(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC->AHB2ENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC->AHB2ENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Check if AHB2 peripheral clock is enabled or not - * @rmtoll AHB2ENR DCMIEN LL_AHB2_GRP1_IsEnabledClock\n - * AHB2ENR HSEMEN LL_AHB2_GRP1_IsEnabledClock\n (*) - * AHB2ENR CRYPEN LL_AHB2_GRP1_IsEnabledClock\n (*) - * AHB2ENR HASHEN LL_AHB2_GRP1_IsEnabledClock\n (*) - * AHB2ENR RNGEN LL_AHB2_GRP1_IsEnabledClock\n - * AHB2ENR SDMMC2EN LL_AHB2_GRP1_IsEnabledClock\n - * AHB2ENR BDMA1EN LL_AHB2_GRP1_IsEnabledClock\n (*) - * AHB2ENR FMACEN LL_AHB2_GRP1_IsEnabledClock\n - * AHB2ENR CORDICEN LL_AHB2_GRP1_IsEnabledClock\n - * AHB2ENR D2SRAM1EN LL_AHB2_GRP1_IsEnabledClock\n - * AHB2ENR D2SRAM2EN LL_AHB2_GRP1_IsEnabledClock\n - * AHB2ENR D2SRAM3EN LL_AHB2_GRP1_IsEnabledClock (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB2_GRP1_PERIPH_DCMI - * @arg @ref LL_AHB2_GRP1_PERIPH_HSEM (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_CRYP (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_HASH (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_RNG - * @arg @ref LL_AHB2_GRP1_PERIPH_SDMMC2 - * @arg @ref LL_AHB2_GRP1_PERIPH_BDMA1 (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_FMAC (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_CORDIC (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM1 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM2 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM3 (*) - * - * (*) value not defined in all devices. - * @retval uint32_t -*/ -__STATIC_INLINE uint32_t LL_AHB2_GRP1_IsEnabledClock(uint32_t Periphs) -{ - return ((READ_BIT(RCC->AHB2ENR, Periphs) == Periphs) ? 1U : 0U); -} - -/** - * @brief Disable AHB2 peripherals clock. - * @rmtoll AHB2ENR DCMIEN LL_AHB2_GRP1_DisableClock\n - * AHB2ENR HSEMEN LL_AHB2_GRP1_DisableClock\n (*) - * AHB2ENR CRYPEN LL_AHB2_GRP1_DisableClock\n (*) - * AHB2ENR HASHEN LL_AHB2_GRP1_DisableClock\n (*) - * AHB2ENR RNGEN LL_AHB2_GRP1_DisableClock\n - * AHB2ENR SDMMC2EN LL_AHB2_GRP1_DisableClock\n - * AHB2ENR BDMA1EN LL_AHB2_GRP1_DisableClock\n (*) - * AHB2ENR FMACEN LL_AHB2_GRP1_DisableClock\n - * AHB2ENR CORDICEN LL_AHB2_GRP1_DisableClock\n - * AHB2ENR D2SRAM1EN LL_AHB2_GRP1_DisableClock\n - * AHB2ENR D2SRAM2EN LL_AHB2_GRP1_DisableClock\n - * AHB2ENR D2SRAM3EN LL_AHB2_GRP1_DisableClock (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB2_GRP1_PERIPH_DCMI - * @arg @ref LL_AHB2_GRP1_PERIPH_HSEM (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_CRYP (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_HASH (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_RNG - * @arg @ref LL_AHB2_GRP1_PERIPH_SDMMC2 - * @arg @ref LL_AHB2_GRP1_PERIPH_BDMA1 (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_FMAC (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_CORDIC (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM1 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM2 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM3 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_AHB2_GRP1_DisableClock(uint32_t Periphs) -{ - CLEAR_BIT(RCC->AHB2ENR, Periphs); -} - -/** - * @brief Force AHB2 peripherals reset. - * @rmtoll AHB2RSTR DCMIRST LL_AHB2_GRP1_ForceReset\n - * AHB2RSTR HSEMRST LL_AHB2_GRP1_ForceReset\n (*) - * AHB2RSTR CRYPRST LL_AHB2_GRP1_ForceReset\n (*) - * AHB2RSTR HASHRST LL_AHB2_GRP1_ForceReset\n (*) - * AHB2RSTR RNGRST LL_AHB2_GRP1_ForceReset\n - * AHB2RSTR SDMMC2RST LL_AHB2_GRP1_ForceReset\n - * AHB2RSTR BDMA1RST LL_AHB2_GRP1_ForceReset\n (*) - * AHB2RSTR FMACRST LL_AHB2_GRP1_ForceReset\n - * AHB2RSTR CORDICRST LL_AHB2_GRP1_ForceReset - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB2_GRP1_PERIPH_DCMI - * @arg @ref LL_AHB2_GRP1_PERIPH_HSEM (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_CRYP (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_HASH (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_RNG - * @arg @ref LL_AHB2_GRP1_PERIPH_SDMMC2 - * @arg @ref LL_AHB2_GRP1_PERIPH_BDMA1 (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_FMAC (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_CORDIC (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_AHB2_GRP1_ForceReset(uint32_t Periphs) -{ - SET_BIT(RCC->AHB2RSTR, Periphs); -} - -/** - * @brief Release AHB2 peripherals reset. - * @rmtoll AHB2RSTR DCMIRST LL_AHB2_GRP1_ReleaseReset\n - * AHB2RSTR HSEMRST LL_AHB2_GRP1_ReleaseReset\n (*) - * AHB2RSTR CRYPRST LL_AHB2_GRP1_ReleaseReset\n (*) - * AHB2RSTR HASHRST LL_AHB2_GRP1_ReleaseReset\n (*) - * AHB2RSTR RNGRST LL_AHB2_GRP1_ReleaseReset\n - * AHB2RSTR SDMMC2RST LL_AHB2_GRP1_ReleaseReset\n - * AHB2RSTR BDMA1RST LL_AHB2_GRP1_ReleaseReset\n (*) - * AHB2RSTR FMACRST LL_AHB2_GRP1_ReleaseReset\n - * AHB2RSTR CORDICRST LL_AHB2_GRP1_ReleaseReset - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB2_GRP1_PERIPH_DCMI - * @arg @ref LL_AHB2_GRP1_PERIPH_HSEM (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_CRYP (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_HASH (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_RNG - * @arg @ref LL_AHB2_GRP1_PERIPH_SDMMC2 - * @arg @ref LL_AHB2_GRP1_PERIPH_BDMA1 (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_FMAC (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_CORDIC (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_AHB2_GRP1_ReleaseReset(uint32_t Periphs) -{ - CLEAR_BIT(RCC->AHB2RSTR, Periphs); -} - -/** - * @brief Enable AHB2 peripherals clock during Low Power (Sleep) mode. - * @rmtoll AHB2LPENR DCMILPEN LL_AHB2_GRP1_EnableClockSleep\n - * AHB2LPENR CRYPLPEN LL_AHB2_GRP1_EnableClockSleep\n (*) - * AHB2LPENR HASHLPEN LL_AHB2_GRP1_EnableClockSleep\n (*) - * AHB2LPENR RNGLPEN LL_AHB2_GRP1_EnableClockSleep\n - * AHB2LPENR SDMMC2LPEN LL_AHB2_GRP1_EnableClockSleep\n - * AHB2LPENR BDMA1LPEN LL_AHB2_GRP1_EnableClockSleep\n (*) - * AHB2LPENR FMACLPEN LL_AHB2_GRP1_EnableClockSleep\n - * AHB2LPENR CORDICLPEN LL_AHB2_GRP1_EnableClockSleep\n - * AHB2LPENR D2SRAM1LPEN LL_AHB2_GRP1_EnableClockSleep\n - * AHB2LPENR D2SRAM2LPEN LL_AHB2_GRP1_EnableClockSleep\n - * AHB2LPENR D2SRAM3LPEN LL_AHB2_GRP1_EnableClockSleep (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB2_GRP1_PERIPH_DCMI - * @arg @ref LL_AHB2_GRP1_PERIPH_CRYP (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_HASH (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_RNG - * @arg @ref LL_AHB2_GRP1_PERIPH_SDMMC2 - * @arg @ref LL_AHB2_GRP1_PERIPH_BDMA1 (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_FMAC (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_CORDIC (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM1 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM2 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM3 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_AHB2_GRP1_EnableClockSleep(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC->AHB2LPENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC->AHB2LPENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Disable AHB2 peripherals clock during Low Power (Sleep) mode. - * @rmtoll AHB2LPENR DCMILPEN LL_AHB2_GRP1_DisableClockSleep\n - * AHB2LPENR CRYPLPEN LL_AHB2_GRP1_DisableClockSleep\n (*) - * AHB2LPENR HASHLPEN LL_AHB2_GRP1_DisableClockSleep\n (*) - * AHB2LPENR RNGLPEN LL_AHB2_GRP1_DisableClockSleep\n - * AHB2LPENR SDMMC2LPEN LL_AHB2_GRP1_DisableClockSleep\n - * AHB2LPENR BDMA1LPEN LL_AHB2_GRP1_DisableClockSleep\n (*) - * AHB2LPENR D2SRAM1LPEN LL_AHB2_GRP1_DisableClockSleep\n - * AHB2LPENR D2SRAM2LPEN LL_AHB2_GRP1_DisableClockSleep\n - * AHB2LPENR D2SRAM3LPEN LL_AHB2_GRP1_DisableClockSleep (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB2_GRP1_PERIPH_DCMI - * @arg @ref LL_AHB2_GRP1_PERIPH_CRYP (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_HASH (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_RNG - * @arg @ref LL_AHB2_GRP1_PERIPH_SDMMC2 - * @arg @ref LL_AHB2_GRP1_PERIPH_BDMA1 (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_FMAC (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_CORDIC (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM1 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM2 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM3 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_AHB2_GRP1_DisableClockSleep(uint32_t Periphs) -{ - CLEAR_BIT(RCC->AHB2LPENR, Periphs); -} - -/** - * @} - */ - -/** @defgroup BUS_LL_EF_AHB4 AHB4 - * @{ - */ - -/** - * @brief Enable AHB4 peripherals clock. - * @rmtoll AHB4ENR GPIOAEN LL_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIOBEN LL_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIOCEN LL_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIODEN LL_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIOEEN LL_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIOFEN LL_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIOGEN LL_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIOHEN LL_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIOIEN LL_AHB4_GRP1_EnableClock\n (*) - * AHB4ENR GPIOJEN LL_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIOKEN LL_AHB4_GRP1_EnableClock\n - * AHB4ENR CRCEN LL_AHB4_GRP1_EnableClock\n (*) - * AHB4ENR BDMAEN LL_AHB4_GRP1_EnableClock\n - * AHB4ENR ADC3EN LL_AHB4_GRP1_EnableClock\n (*) - * AHB4ENR HSEMEN LL_AHB4_GRP1_EnableClock\n (*) - * AHB4ENR BKPRAMEN LL_AHB4_GRP1_EnableClock\n - * AHB4ENR SRAM4EN LL_AHB4_GRP1_EnableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOA - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOB - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOC - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOD - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOE - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOF - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOG - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOH - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOI (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOJ - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOK - * @arg @ref LL_AHB4_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BDMA - * @arg @ref LL_AHB4_GRP1_PERIPH_ADC3 (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_HSEM (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BKPRAM - * @arg @ref LL_AHB4_GRP1_PERIPH_SRAM4 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_AHB4_GRP1_EnableClock(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC->AHB4ENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC->AHB4ENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Check if AHB4 peripheral clock is enabled or not - * @rmtoll AHB4ENR GPIOAEN LL_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIOBEN LL_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIOCEN LL_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIODEN LL_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIOEEN LL_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIOFEN LL_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIOGEN LL_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIOHEN LL_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIOIEN LL_AHB4_GRP1_IsEnabledClock\n (*) - * AHB4ENR GPIOJEN LL_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIOKEN LL_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR CRCEN LL_AHB4_GRP1_IsEnabledClock\n (*) - * AHB4ENR BDMAEN LL_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR ADC3EN LL_AHB4_GRP1_IsEnabledClock\n (*) - * AHB4ENR HSEMEN LL_AHB4_GRP1_IsEnabledClock\n (*) - * AHB4ENR BKPRAMEN LL_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR SRAM4EN LL_AHB4_GRP1_IsEnabledClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOA - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOB - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOC - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOD - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOE - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOF - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOG - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOH - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOI (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOJ - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOK - * @arg @ref LL_AHB4_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BDMA - * @arg @ref LL_AHB4_GRP1_PERIPH_ADC3 (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_HSEM (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BKPRAM - * @arg @ref LL_AHB4_GRP1_PERIPH_SRAM4 - * - * (*) value not defined in all devices. - * @retval uint32_t -*/ -__STATIC_INLINE uint32_t LL_AHB4_GRP1_IsEnabledClock(uint32_t Periphs) -{ - return ((READ_BIT(RCC->AHB4ENR, Periphs) == Periphs) ? 1U : 0U); -} - -/** - * @brief Disable AHB4 peripherals clock. - * @rmtoll AHB4ENR GPIOAEN LL_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIOBEN LL_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIOCEN LL_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIODEN LL_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIOEEN LL_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIOFEN LL_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIOGEN LL_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIOHEN LL_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIOIEN LL_AHB4_GRP1_DisableClock\n (*) - * AHB4ENR GPIOJEN LL_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIOKEN LL_AHB4_GRP1_DisableClock\n - * AHB4ENR CRCEN LL_AHB4_GRP1_DisableClock\n (*) - * AHB4ENR BDMAEN LL_AHB4_GRP1_DisableClock\n - * AHB4ENR ADC3EN LL_AHB4_GRP1_DisableClock\n (*) - * AHB4ENR HSEMEN LL_AHB4_GRP1_DisableClock\n (*) - * AHB4ENR BKPRAMEN LL_AHB4_GRP1_DisableClock\n - * AHB4ENR SRAM4EN LL_AHB4_GRP1_DisableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOA - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOB - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOC - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOD - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOE - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOF - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOG - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOH - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOI (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOJ - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOK - * @arg @ref LL_AHB4_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BDMA - * @arg @ref LL_AHB4_GRP1_PERIPH_ADC3 (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_HSEM (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BKPRAM - * @arg @ref LL_AHB4_GRP1_PERIPH_SRAM4 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_AHB4_GRP1_DisableClock(uint32_t Periphs) -{ - CLEAR_BIT(RCC->AHB4ENR, Periphs); -} - -/** - * @brief Force AHB4 peripherals reset. - * @rmtoll AHB4RSTR GPIOARST LL_AHB4_GRP1_ForceReset\n - * AHB4RSTR GPIOBRST LL_AHB4_GRP1_ForceReset\n - * AHB4RSTR GPIOCRST LL_AHB4_GRP1_ForceReset\n - * AHB4RSTR GPIODRST LL_AHB4_GRP1_ForceReset\n - * AHB4RSTR GPIOERST LL_AHB4_GRP1_ForceReset\n - * AHB4RSTR GPIOFRST LL_AHB4_GRP1_ForceReset\n - * AHB4RSTR GPIOGRST LL_AHB4_GRP1_ForceReset\n - * AHB4RSTR GPIOHRST LL_AHB4_GRP1_ForceReset\n - * AHB4RSTR GPIOIRST LL_AHB4_GRP1_ForceReset\n (*) - * AHB4RSTR GPIOJRST LL_AHB4_GRP1_ForceReset\n - * AHB4RSTR GPIOKRST LL_AHB4_GRP1_ForceReset\n - * AHB4RSTR CRCRST LL_AHB4_GRP1_ForceReset\n (*) - * AHB4RSTR BDMARST LL_AHB4_GRP1_ForceReset\n - * AHB4RSTR ADC3RST LL_AHB4_GRP1_ForceReset\n (*) - * AHB4RSTR HSEMRST LL_AHB4_GRP1_ForceReset (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOA - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOB - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOC - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOD - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOE - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOF - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOG - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOH - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOI (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOJ - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOK - * @arg @ref LL_AHB4_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BDMA - * @arg @ref LL_AHB4_GRP1_PERIPH_ADC3 (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_HSEM (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_AHB4_GRP1_ForceReset(uint32_t Periphs) -{ - SET_BIT(RCC->AHB4RSTR, Periphs); -} - -/** - * @brief Release AHB4 peripherals reset. - * @rmtoll AHB4RSTR GPIOARST LL_AHB4_GRP1_ReleaseReset\n - * AHB4RSTR GPIOBRST LL_AHB4_GRP1_ReleaseReset\n - * AHB4RSTR GPIOCRST LL_AHB4_GRP1_ReleaseReset\n - * AHB4RSTR GPIODRST LL_AHB4_GRP1_ReleaseReset\n - * AHB4RSTR GPIOERST LL_AHB4_GRP1_ReleaseReset\n - * AHB4RSTR GPIOFRST LL_AHB4_GRP1_ReleaseReset\n - * AHB4RSTR GPIOGRST LL_AHB4_GRP1_ReleaseReset\n - * AHB4RSTR GPIOHRST LL_AHB4_GRP1_ReleaseReset\n - * AHB4RSTR GPIOIRST LL_AHB4_GRP1_ReleaseReset\n (*) - * AHB4RSTR GPIOJRST LL_AHB4_GRP1_ReleaseReset\n - * AHB4RSTR GPIOKRST LL_AHB4_GRP1_ReleaseReset\n - * AHB4RSTR CRCRST LL_AHB4_GRP1_ReleaseReset\n (*) - * AHB4RSTR BDMARST LL_AHB4_GRP1_ReleaseReset\n - * AHB4RSTR ADC3RST LL_AHB4_GRP1_ReleaseReset\n (*) - * AHB4RSTR HSEMRST LL_AHB4_GRP1_ReleaseReset (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOA - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOB - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOC - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOD - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOE - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOF - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOG - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOH - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOI (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOJ - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOK - * @arg @ref LL_AHB4_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BDMA - * @arg @ref LL_AHB4_GRP1_PERIPH_ADC3 (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_HSEM (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_AHB4_GRP1_ReleaseReset(uint32_t Periphs) -{ - CLEAR_BIT(RCC->AHB4RSTR, Periphs); -} - -/** - * @brief Enable AHB4 peripherals clock during Low Power (Sleep) mode. - * @rmtoll AHB4LPENR GPIOALPEN LL_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIOBLPEN LL_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIOCLPEN LL_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIODLPEN LL_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIOELPEN LL_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIOFLPEN LL_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIOGLPEN LL_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIOHLPEN LL_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIOILPEN LL_AHB4_GRP1_EnableClockSleep\n (*) - * AHB4LPENR GPIOJLPEN LL_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIOKLPEN LL_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR CRCLPEN LL_AHB4_GRP1_EnableClockSleep\n (*) - * AHB4LPENR BDMALPEN LL_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR ADC3LPEN LL_AHB4_GRP1_EnableClockSleep\n (*) - * AHB4LPENR BKPRAMLPEN LL_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR SRAM4LPEN LL_AHB4_GRP1_EnableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOA - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOB - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOC - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOD - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOE - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOF - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOG - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOH - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOI (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOJ - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOK - * @arg @ref LL_AHB4_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BDMA - * @arg @ref LL_AHB4_GRP1_PERIPH_ADC3 (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BKPRAM - * @arg @ref LL_AHB4_GRP1_PERIPH_SRAM4 - * @retval None -*/ -__STATIC_INLINE void LL_AHB4_GRP1_EnableClockSleep(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC->AHB4LPENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC->AHB4LPENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Disable AHB4 peripherals clock during Low Power (Sleep) mode. - * @rmtoll AHB4LPENR GPIOALPEN LL_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIOBLPEN LL_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIOCLPEN LL_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIODLPEN LL_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIOELPEN LL_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIOFLPEN LL_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIOGLPEN LL_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIOHLPEN LL_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIOILPEN LL_AHB4_GRP1_DisableClockSleep\n (*) - * AHB4LPENR GPIOJLPEN LL_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIOKLPEN LL_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR CRCLPEN LL_AHB4_GRP1_DisableClockSleep\n (*) - * AHB4LPENR BDMALPEN LL_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR ADC3LPEN LL_AHB4_GRP1_DisableClockSleep\n (*) - * AHB4LPENR BKPRAMLPEN LL_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR SRAM4LPEN LL_AHB4_GRP1_DisableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOA - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOB - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOC - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOD - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOE - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOF - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOG - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOH - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOI (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOJ - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOK - * @arg @ref LL_AHB4_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BDMA - * @arg @ref LL_AHB4_GRP1_PERIPH_ADC3 (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BKPRAM - * @arg @ref LL_AHB4_GRP1_PERIPH_SRAM4 - * @retval None -*/ -__STATIC_INLINE void LL_AHB4_GRP1_DisableClockSleep(uint32_t Periphs) -{ - CLEAR_BIT(RCC->AHB4LPENR, Periphs); -} - -/** - * @} - */ - -/** @defgroup BUS_LL_EF_APB3 APB3 - * @{ - */ - -/** - * @brief Enable APB3 peripherals clock. - * @rmtoll APB3ENR LTDCEN LL_APB3_GRP1_EnableClock\n (*) - * APB3ENR DSIEN LL_APB3_GRP1_EnableClock\n (*) - * APB3ENR WWDG1EN LL_APB3_GRP1_EnableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB3_GRP1_PERIPH_LTDC (*) - * @arg @ref LL_APB3_GRP1_PERIPH_DSI (*) - * @arg @ref LL_APB3_GRP1_PERIPH_WWDG1 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB3_GRP1_EnableClock(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC->APB3ENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC->APB3ENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Check if APB3 peripheral clock is enabled or not - * @rmtoll APB3ENR LTDCEN LL_APB3_GRP1_IsEnabledClock\n (*) - * APB3ENR DSIEN LL_APB3_GRP1_IsEnabledClock\n (*) - * APB3ENR WWDG1EN LL_APB3_GRP1_IsEnabledClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB3_GRP1_PERIPH_LTDC (*) - * @arg @ref LL_APB3_GRP1_PERIPH_DSI (*) - * @arg @ref LL_APB3_GRP1_PERIPH_WWDG1 - * - * (*) value not defined in all devices. - * @retval uint32_t -*/ -__STATIC_INLINE uint32_t LL_APB3_GRP1_IsEnabledClock(uint32_t Periphs) -{ - return ((READ_BIT(RCC->APB3ENR, Periphs) == Periphs) ? 1U : 0U); -} - -/** - * @brief Disable APB3 peripherals clock. - * @rmtoll APB3ENR LTDCEN LL_APB3_GRP1_DisableClock\n - * APB3ENR DSIEN LL_APB3_GRP1_DisableClock\n - * APB3ENR WWDG1EN LL_APB3_GRP1_DisableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB3_GRP1_PERIPH_LTDC (*) - * @arg @ref LL_APB3_GRP1_PERIPH_DSI (*) - * @arg @ref LL_APB3_GRP1_PERIPH_WWDG1 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB3_GRP1_DisableClock(uint32_t Periphs) -{ - CLEAR_BIT(RCC->APB3ENR, Periphs); -} - -/** - * @brief Force APB3 peripherals reset. - * @rmtoll APB3RSTR LTDCRST LL_APB3_GRP1_ForceReset\n (*) - * APB3RSTR DSIRST LL_APB3_GRP1_ForceReset (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB3_GRP1_PERIPH_LTDC (*) - * @arg @ref LL_APB3_GRP1_PERIPH_DSI (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB3_GRP1_ForceReset(uint32_t Periphs) -{ - SET_BIT(RCC->APB3RSTR, Periphs); -} - -/** - * @brief Release APB3 peripherals reset. - * @rmtoll APB3RSTR LTDCRST LL_APB3_GRP1_ReleaseReset\n - * APB3RSTR DSIRST LL_APB3_GRP1_ReleaseReset - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB3_GRP1_PERIPH_LTDC (*) - * @arg @ref LL_APB3_GRP1_PERIPH_DSI (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB3_GRP1_ReleaseReset(uint32_t Periphs) -{ - CLEAR_BIT(RCC->APB3RSTR, Periphs); -} - -/** - * @brief Enable APB3 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB3LPENR LTDCLPEN LL_APB3_GRP1_EnableClockSleep\n (*) - * APB3LPENR DSILPEN LL_APB3_GRP1_EnableClockSleep\n (*) - * APB3LPENR WWDG1LPEN LL_APB3_GRP1_EnableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB3_GRP1_PERIPH_LTDC (*) - * @arg @ref LL_APB3_GRP1_PERIPH_DSI (*) - * @arg @ref LL_APB3_GRP1_PERIPH_WWDG1 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB3_GRP1_EnableClockSleep(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC->APB3LPENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC->APB3LPENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Disable APB3 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB3LPENR LTDCLPEN LL_APB3_GRP1_DisableClockSleep\n (*) - * APB3LPENR DSILPEN LL_APB3_GRP1_DisableClockSleep\n (*) - * APB3LPENR WWDG1LPEN LL_APB3_GRP1_DisableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB3_GRP1_PERIPH_LTDC (*) - * @arg @ref LL_APB3_GRP1_PERIPH_DSI (*) - * @arg @ref LL_APB3_GRP1_PERIPH_WWDG1 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB3_GRP1_DisableClockSleep(uint32_t Periphs) -{ - CLEAR_BIT(RCC->APB3LPENR, Periphs); -} - -/** - * @} - */ - -/** @defgroup BUS_LL_EF_APB1 APB1 - * @{ - */ - -/** - * @brief Enable APB1 peripherals clock. - * @rmtoll APB1LENR TIM2EN LL_APB1_GRP1_EnableClock\n - * APB1LENR TIM3EN LL_APB1_GRP1_EnableClock\n - * APB1LENR TIM4EN LL_APB1_GRP1_EnableClock\n - * APB1LENR TIM5EN LL_APB1_GRP1_EnableClock\n - * APB1LENR TIM6EN LL_APB1_GRP1_EnableClock\n - * APB1LENR TIM7EN LL_APB1_GRP1_EnableClock\n - * APB1LENR TIM12EN LL_APB1_GRP1_EnableClock\n - * APB1LENR TIM13EN LL_APB1_GRP1_EnableClock\n - * APB1LENR TIM14EN LL_APB1_GRP1_EnableClock\n - * APB1LENR LPTIM1EN LL_APB1_GRP1_EnableClock\n - * APB1LENR WWDG2EN LL_APB1_GRP1_EnableClock\n (*) - * APB1LENR SPI2EN LL_APB1_GRP1_EnableClock\n - * APB1LENR SPI3EN LL_APB1_GRP1_EnableClock\n - * APB1LENR SPDIFRXEN LL_APB1_GRP1_EnableClock\n - * APB1LENR USART2EN LL_APB1_GRP1_EnableClock\n - * APB1LENR USART3EN LL_APB1_GRP1_EnableClock\n - * APB1LENR UART4EN LL_APB1_GRP1_EnableClock\n - * APB1LENR UART5EN LL_APB1_GRP1_EnableClock\n - * APB1LENR I2C1EN LL_APB1_GRP1_EnableClock\n - * APB1LENR I2C2EN LL_APB1_GRP1_EnableClock\n - * APB1LENR I2C3EN LL_APB1_GRP1_EnableClock\n - * APB1LENR I2C5EN LL_APB1_GRP1_EnableClock\n (*) - * APB1LENR CECEN LL_APB1_GRP1_EnableClock\n - * APB1LENR DAC12EN LL_APB1_GRP1_EnableClock\n - * APB1LENR UART7EN LL_APB1_GRP1_EnableClock\n - * APB1LENR UART8EN LL_APB1_GRP1_EnableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP1_PERIPH_TIM2 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM3 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM4 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM5 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM6 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM7 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM12 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM13 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM14 - * @arg @ref LL_APB1_GRP1_PERIPH_LPTIM1 - * @arg @ref LL_APB1_GRP1_PERIPH_WWDG2 (*) - * @arg @ref LL_APB1_GRP1_PERIPH_SPI2 - * @arg @ref LL_APB1_GRP1_PERIPH_SPI3 - * @arg @ref LL_APB1_GRP1_PERIPH_SPDIFRX - * @arg @ref LL_APB1_GRP1_PERIPH_USART2 - * @arg @ref LL_APB1_GRP1_PERIPH_USART3 - * @arg @ref LL_APB1_GRP1_PERIPH_UART4 - * @arg @ref LL_APB1_GRP1_PERIPH_UART5 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C1 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C2 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C3 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C5 (*) - * @arg @ref LL_APB1_GRP1_PERIPH_CEC - * @arg @ref LL_APB1_GRP1_PERIPH_DAC12 - * @arg @ref LL_APB1_GRP1_PERIPH_UART7 - * @arg @ref LL_APB1_GRP1_PERIPH_UART8 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB1_GRP1_EnableClock(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC->APB1LENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC->APB1LENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Check if APB1 peripheral clock is enabled or not - * @rmtoll APB1LENR TIM2EN LL_APB1_GRP1_IsEnabledClock\n - * APB1LENR TIM3EN LL_APB1_GRP1_IsEnabledClock\n - * APB1LENR TIM4EN LL_APB1_GRP1_IsEnabledClock\n - * APB1LENR TIM5EN LL_APB1_GRP1_IsEnabledClock\n - * APB1LENR TIM6EN LL_APB1_GRP1_IsEnabledClock\n - * APB1LENR TIM7EN LL_APB1_GRP1_IsEnabledClock\n - * APB1LENR TIM12EN LL_APB1_GRP1_IsEnabledClock\n - * APB1LENR TIM13EN LL_APB1_GRP1_IsEnabledClock\n - * APB1LENR TIM14EN LL_APB1_GRP1_IsEnabledClock\n - * APB1LENR LPTIM1EN LL_APB1_GRP1_IsEnabledClock\n - * APB1LENR WWDG2EN LL_APB1_GRP1_IsEnabledClock\n (*) - * APB1LENR SPI2EN LL_APB1_GRP1_IsEnabledClock\n - * APB1LENR SPI3EN LL_APB1_GRP1_IsEnabledClock\n - * APB1LENR SPDIFRXEN LL_APB1_GRP1_IsEnabledClock\n - * APB1LENR USART2EN LL_APB1_GRP1_IsEnabledClock\n - * APB1LENR USART3EN LL_APB1_GRP1_IsEnabledClock\n - * APB1LENR UART4EN LL_APB1_GRP1_IsEnabledClock\n - * APB1LENR UART5EN LL_APB1_GRP1_IsEnabledClock\n - * APB1LENR I2C1EN LL_APB1_GRP1_IsEnabledClock\n - * APB1LENR I2C2EN LL_APB1_GRP1_IsEnabledClock\n - * APB1LENR I2C3EN LL_APB1_GRP1_IsEnabledClock\n - * APB1LENR I2C5EN LL_APB1_GRP1_IsEnabledClock\n (*) - * APB1LENR CECEN LL_APB1_GRP1_IsEnabledClock\n - * APB1LENR DAC12EN LL_APB1_GRP1_IsEnabledClock\n - * APB1LENR UART7EN LL_APB1_GRP1_IsEnabledClock\n - * APB1LENR UART8EN LL_APB1_GRP1_IsEnabledClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP1_PERIPH_TIM2 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM3 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM4 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM5 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM6 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM7 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM12 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM13 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM14 - * @arg @ref LL_APB1_GRP1_PERIPH_LPTIM1 - * @arg @ref LL_APB1_GRP1_PERIPH_WWDG2 (*) - * @arg @ref LL_APB1_GRP1_PERIPH_SPI2 - * @arg @ref LL_APB1_GRP1_PERIPH_SPI3 - * @arg @ref LL_APB1_GRP1_PERIPH_SPDIFRX - * @arg @ref LL_APB1_GRP1_PERIPH_USART2 - * @arg @ref LL_APB1_GRP1_PERIPH_USART3 - * @arg @ref LL_APB1_GRP1_PERIPH_UART4 - * @arg @ref LL_APB1_GRP1_PERIPH_UART5 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C1 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C2 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C3 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C5 (*) - * @arg @ref LL_APB1_GRP1_PERIPH_CEC - * @arg @ref LL_APB1_GRP1_PERIPH_DAC12 - * @arg @ref LL_APB1_GRP1_PERIPH_UART7 - * @arg @ref LL_APB1_GRP1_PERIPH_UART8 - * - * (*) value not defined in all devices. - * @retval uint32_t -*/ -__STATIC_INLINE uint32_t LL_APB1_GRP1_IsEnabledClock(uint32_t Periphs) -{ - return ((READ_BIT(RCC->APB1LENR, Periphs) == Periphs) ? 1U : 0U); -} - -/** - * @brief Disable APB1 peripherals clock. - * @rmtoll APB1LENR TIM2EN LL_APB1_GRP1_DisableClock\n - * APB1LENR TIM3EN LL_APB1_GRP1_DisableClock\n - * APB1LENR TIM4EN LL_APB1_GRP1_DisableClock\n - * APB1LENR TIM5EN LL_APB1_GRP1_DisableClock\n - * APB1LENR TIM6EN LL_APB1_GRP1_DisableClock\n - * APB1LENR TIM7EN LL_APB1_GRP1_DisableClock\n - * APB1LENR TIM12EN LL_APB1_GRP1_DisableClock\n - * APB1LENR TIM13EN LL_APB1_GRP1_DisableClock\n - * APB1LENR TIM14EN LL_APB1_GRP1_DisableClock\n - * APB1LENR LPTIM1EN LL_APB1_GRP1_DisableClock\n - * APB1LENR WWDG2EN LL_APB1_GRP1_DisableClock\n (*) - * APB1LENR SPI2EN LL_APB1_GRP1_DisableClock\n - * APB1LENR SPI3EN LL_APB1_GRP1_DisableClock\n - * APB1LENR SPDIFRXEN LL_APB1_GRP1_DisableClock\n - * APB1LENR USART2EN LL_APB1_GRP1_DisableClock\n - * APB1LENR USART3EN LL_APB1_GRP1_DisableClock\n - * APB1LENR UART4EN LL_APB1_GRP1_DisableClock\n - * APB1LENR UART5EN LL_APB1_GRP1_DisableClock\n - * APB1LENR I2C1EN LL_APB1_GRP1_DisableClock\n - * APB1LENR I2C2EN LL_APB1_GRP1_DisableClock\n - * APB1LENR I2C3EN LL_APB1_GRP1_DisableClock\n - * APB1LENR I2C5EN LL_APB1_GRP1_DisableClock\n (*) - * APB1LENR CECEN LL_APB1_GRP1_DisableClock\n - * APB1LENR DAC12EN LL_APB1_GRP1_DisableClock\n - * APB1LENR UART7EN LL_APB1_GRP1_DisableClock\n - * APB1LENR UART8EN LL_APB1_GRP1_DisableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP1_PERIPH_TIM2 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM3 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM4 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM5 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM6 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM7 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM12 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM13 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM14 - * @arg @ref LL_APB1_GRP1_PERIPH_LPTIM1 - * @arg @ref LL_APB1_GRP1_PERIPH_WWDG2 (*) - * @arg @ref LL_APB1_GRP1_PERIPH_SPI2 - * @arg @ref LL_APB1_GRP1_PERIPH_SPI3 - * @arg @ref LL_APB1_GRP1_PERIPH_SPDIFRX - * @arg @ref LL_APB1_GRP1_PERIPH_USART2 - * @arg @ref LL_APB1_GRP1_PERIPH_USART3 - * @arg @ref LL_APB1_GRP1_PERIPH_UART4 - * @arg @ref LL_APB1_GRP1_PERIPH_UART5 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C1 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C2 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C3 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C5 (*) - * @arg @ref LL_APB1_GRP1_PERIPH_CEC - * @arg @ref LL_APB1_GRP1_PERIPH_DAC12 - * @arg @ref LL_APB1_GRP1_PERIPH_UART7 - * @arg @ref LL_APB1_GRP1_PERIPH_UART8 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB1_GRP1_DisableClock(uint32_t Periphs) -{ - CLEAR_BIT(RCC->APB1LENR, Periphs); -} - -/** - * @brief Force APB1 peripherals reset. - * @rmtoll APB1LRSTR TIM2RST LL_APB1_GRP1_ForceReset\n - * APB1LRSTR TIM3RST LL_APB1_GRP1_ForceReset\n - * APB1LRSTR TIM4RST LL_APB1_GRP1_ForceReset\n - * APB1LRSTR TIM5RST LL_APB1_GRP1_ForceReset\n - * APB1LRSTR TIM6RST LL_APB1_GRP1_ForceReset\n - * APB1LRSTR TIM7RST LL_APB1_GRP1_ForceReset\n - * APB1LRSTR TIM12RST LL_APB1_GRP1_ForceReset\n - * APB1LRSTR TIM13RST LL_APB1_GRP1_ForceReset\n - * APB1LRSTR TIM14RST LL_APB1_GRP1_ForceReset\n - * APB1LRSTR LPTIM1RST LL_APB1_GRP1_ForceReset\n - * APB1LRSTR SPI2RST LL_APB1_GRP1_ForceReset\n - * APB1LRSTR SPI3RST LL_APB1_GRP1_ForceReset\n - * APB1LRSTR SPDIFRXRST LL_APB1_GRP1_ForceReset\n - * APB1LRSTR USART2RST LL_APB1_GRP1_ForceReset\n - * APB1LRSTR USART3RST LL_APB1_GRP1_ForceReset\n - * APB1LRSTR UART4RST LL_APB1_GRP1_ForceReset\n - * APB1LRSTR UART5RST LL_APB1_GRP1_ForceReset\n - * APB1LRSTR I2C1RST LL_APB1_GRP1_ForceReset\n - * APB1LRSTR I2C2RST LL_APB1_GRP1_ForceReset\n - * APB1LRSTR I2C3RST LL_APB1_GRP1_ForceReset\n - * APB1LRSTR I2C5RST LL_APB1_GRP5_ForceReset\n (*) - * APB1LRSTR CECRST LL_APB1_GRP1_ForceReset\n - * APB1LRSTR DAC12RST LL_APB1_GRP1_ForceReset\n - * APB1LRSTR UART7RST LL_APB1_GRP1_ForceReset\n - * APB1LRSTR UART8RST LL_APB1_GRP1_ForceReset - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP1_PERIPH_TIM2 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM3 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM4 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM5 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM6 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM7 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM12 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM13 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM14 - * @arg @ref LL_APB1_GRP1_PERIPH_LPTIM1 - * @arg @ref LL_APB1_GRP1_PERIPH_SPI2 - * @arg @ref LL_APB1_GRP1_PERIPH_SPI3 - * @arg @ref LL_APB1_GRP1_PERIPH_SPDIFRX - * @arg @ref LL_APB1_GRP1_PERIPH_USART2 - * @arg @ref LL_APB1_GRP1_PERIPH_USART3 - * @arg @ref LL_APB1_GRP1_PERIPH_UART4 - * @arg @ref LL_APB1_GRP1_PERIPH_UART5 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C1 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C2 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C3 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C5 (*) - * @arg @ref LL_APB1_GRP1_PERIPH_CEC - * @arg @ref LL_APB1_GRP1_PERIPH_DAC12 - * @arg @ref LL_APB1_GRP1_PERIPH_UART7 - * @arg @ref LL_APB1_GRP1_PERIPH_UART8 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB1_GRP1_ForceReset(uint32_t Periphs) -{ - SET_BIT(RCC->APB1LRSTR, Periphs); -} - -/** - * @brief Release APB1 peripherals reset. - * @rmtoll APB1LRSTR TIM2RST LL_APB1_GRP1_ReleaseReset\n - * APB1LRSTR TIM3RST LL_APB1_GRP1_ReleaseReset\n - * APB1LRSTR TIM4RST LL_APB1_GRP1_ReleaseReset\n - * APB1LRSTR TIM5RST LL_APB1_GRP1_ReleaseReset\n - * APB1LRSTR TIM6RST LL_APB1_GRP1_ReleaseReset\n - * APB1LRSTR TIM7RST LL_APB1_GRP1_ReleaseReset\n - * APB1LRSTR TIM12RST LL_APB1_GRP1_ReleaseReset\n - * APB1LRSTR TIM13RST LL_APB1_GRP1_ReleaseReset\n - * APB1LRSTR TIM14RST LL_APB1_GRP1_ReleaseReset\n - * APB1LRSTR LPTIM1RST LL_APB1_GRP1_ReleaseReset\n - * APB1LRSTR SPI2RST LL_APB1_GRP1_ReleaseReset\n - * APB1LRSTR SPI3RST LL_APB1_GRP1_ReleaseReset\n - * APB1LRSTR SPDIFRXRST LL_APB1_GRP1_ReleaseReset\n - * APB1LRSTR USART2RST LL_APB1_GRP1_ReleaseReset\n - * APB1LRSTR USART3RST LL_APB1_GRP1_ReleaseReset\n - * APB1LRSTR UART4RST LL_APB1_GRP1_ReleaseReset\n - * APB1LRSTR UART5RST LL_APB1_GRP1_ReleaseReset\n - * APB1LRSTR I2C1RST LL_APB1_GRP1_ReleaseReset\n - * APB1LRSTR I2C2RST LL_APB1_GRP1_ReleaseReset\n - * APB1LRSTR I2C3RST LL_APB1_GRP1_ReleaseReset\n - * APB1LRSTR I2C5RST LL_APB1_GRP1_ReleaseReset\n (*) - * APB1LRSTR CECRST LL_APB1_GRP1_ReleaseReset\n - * APB1LRSTR DAC12RST LL_APB1_GRP1_ReleaseReset\n - * APB1LRSTR UART7RST LL_APB1_GRP1_ReleaseReset\n - * APB1LRSTR UART8RST LL_APB1_GRP1_ReleaseReset - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP1_PERIPH_TIM2 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM3 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM4 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM5 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM6 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM7 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM12 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM13 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM14 - * @arg @ref LL_APB1_GRP1_PERIPH_LPTIM1 - * @arg @ref LL_APB1_GRP1_PERIPH_SPI2 - * @arg @ref LL_APB1_GRP1_PERIPH_SPI3 - * @arg @ref LL_APB1_GRP1_PERIPH_SPDIFRX - * @arg @ref LL_APB1_GRP1_PERIPH_USART2 - * @arg @ref LL_APB1_GRP1_PERIPH_USART3 - * @arg @ref LL_APB1_GRP1_PERIPH_UART4 - * @arg @ref LL_APB1_GRP1_PERIPH_UART5 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C1 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C2 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C3 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C5 (*) - * @arg @ref LL_APB1_GRP1_PERIPH_CEC - * @arg @ref LL_APB1_GRP1_PERIPH_DAC12 - * @arg @ref LL_APB1_GRP1_PERIPH_UART7 - * @arg @ref LL_APB1_GRP1_PERIPH_UART8 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB1_GRP1_ReleaseReset(uint32_t Periphs) -{ - CLEAR_BIT(RCC->APB1LRSTR, Periphs); -} - -/** - * @brief Enable APB1 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB1LLPENR TIM2LPEN LL_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR TIM3LPEN LL_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR TIM4LPEN LL_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR TIM5LPEN LL_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR TIM6LPEN LL_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR TIM7LPEN LL_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR TIM12LPEN LL_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR TIM13LPEN LL_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR TIM14LPEN LL_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR LPTIM1LPEN LL_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR WWDG2LPEN LL_APB1_GRP1_EnableClockSleep\n (*) - * APB1LLPENR SPI2LPEN LL_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR SPI3LPEN LL_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR SPDIFRXLPEN LL_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR USART2LPEN LL_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR USART3LPEN LL_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR UART4LPEN LL_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR UART5LPEN LL_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR I2C1LPEN LL_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR I2C2LPEN LL_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR I2C3LPEN LL_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR I2C5LPEN LL_APB1_GRP1_EnableClockSleep\n (*) - * APB1LLPENR CECLPEN LL_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR DAC12LPEN LL_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR UART7LPEN LL_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR UART8LPEN LL_APB1_GRP1_EnableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP1_PERIPH_TIM2 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM3 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM4 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM5 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM6 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM7 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM12 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM13 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM14 - * @arg @ref LL_APB1_GRP1_PERIPH_LPTIM1 - * @arg @ref LL_APB1_GRP1_PERIPH_WWDG2 (*) - * @arg @ref LL_APB1_GRP1_PERIPH_SPI2 - * @arg @ref LL_APB1_GRP1_PERIPH_SPI3 - * @arg @ref LL_APB1_GRP1_PERIPH_SPDIFRX - * @arg @ref LL_APB1_GRP1_PERIPH_USART2 - * @arg @ref LL_APB1_GRP1_PERIPH_USART3 - * @arg @ref LL_APB1_GRP1_PERIPH_UART4 - * @arg @ref LL_APB1_GRP1_PERIPH_UART5 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C1 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C2 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C3 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C5 (*) - * @arg @ref LL_APB1_GRP1_PERIPH_CEC - * @arg @ref LL_APB1_GRP1_PERIPH_DAC12 - * @arg @ref LL_APB1_GRP1_PERIPH_UART7 - * @arg @ref LL_APB1_GRP1_PERIPH_UART8 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB1_GRP1_EnableClockSleep(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC->APB1LLPENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC->APB1LLPENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Disable APB1 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB1LLPENR TIM2LPEN LL_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR TIM3LPEN LL_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR TIM4LPEN LL_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR TIM5LPEN LL_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR TIM6LPEN LL_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR TIM7LPEN LL_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR TIM12LPEN LL_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR TIM13LPEN LL_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR TIM14LPEN LL_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR LPTIM1LPEN LL_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR WWDG2LPEN LL_APB1_GRP1_DisableClockSleep\n (*) - * APB1LLPENR SPI2LPEN LL_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR SPI3LPEN LL_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR SPDIFRXLPEN LL_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR USART2LPEN LL_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR USART3LPEN LL_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR UART4LPEN LL_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR UART5LPEN LL_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR I2C1LPEN LL_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR I2C2LPEN LL_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR I2C3LPEN LL_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR I2C5LPEN LL_APB1_GRP1_DisableClockSleep\n (*) - * APB1LLPENR CECLPEN LL_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR DAC12LPEN LL_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR UART7LPEN LL_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR UART8LPEN LL_APB1_GRP1_DisableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP1_PERIPH_TIM2 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM3 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM4 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM5 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM6 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM7 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM12 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM13 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM14 - * @arg @ref LL_APB1_GRP1_PERIPH_LPTIM1 - * @arg @ref LL_APB1_GRP1_PERIPH_WWDG2 (*) - * @arg @ref LL_APB1_GRP1_PERIPH_SPI2 - * @arg @ref LL_APB1_GRP1_PERIPH_SPI3 - * @arg @ref LL_APB1_GRP1_PERIPH_SPDIFRX - * @arg @ref LL_APB1_GRP1_PERIPH_USART2 - * @arg @ref LL_APB1_GRP1_PERIPH_USART3 - * @arg @ref LL_APB1_GRP1_PERIPH_UART4 - * @arg @ref LL_APB1_GRP1_PERIPH_UART5 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C1 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C2 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C3 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C5 (*) - * @arg @ref LL_APB1_GRP1_PERIPH_CEC - * @arg @ref LL_APB1_GRP1_PERIPH_DAC12 - * @arg @ref LL_APB1_GRP1_PERIPH_UART7 - * @arg @ref LL_APB1_GRP1_PERIPH_UART8 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB1_GRP1_DisableClockSleep(uint32_t Periphs) -{ - CLEAR_BIT(RCC->APB1LLPENR, Periphs); -} - -/** - * @brief Enable APB1 peripherals clock. - * @rmtoll APB1HENR CRSEN LL_APB1_GRP2_EnableClock\n - * APB1HENR SWPMIEN LL_APB1_GRP2_EnableClock\n - * APB1HENR OPAMPEN LL_APB1_GRP2_EnableClock\n - * APB1HENR MDIOSEN LL_APB1_GRP2_EnableClock\n - * APB1HENR FDCANEN LL_APB1_GRP2_EnableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP2_PERIPH_CRS - * @arg @ref LL_APB1_GRP2_PERIPH_SWPMI1 - * @arg @ref LL_APB1_GRP2_PERIPH_OPAMP - * @arg @ref LL_APB1_GRP2_PERIPH_MDIOS - * @arg @ref LL_APB1_GRP2_PERIPH_FDCAN - * @arg @ref LL_APB1_GRP2_PERIPH_TIM23 (*) - * @arg @ref LL_APB1_GRP2_PERIPH_TIM24 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB1_GRP2_EnableClock(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC->APB1HENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC->APB1HENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Check if APB1 peripheral clock is enabled or not - * @rmtoll APB1HENR CRSEN LL_APB1_GRP2_IsEnabledClock\n - * APB1HENR SWPMIEN LL_APB1_GRP2_IsEnabledClock\n - * APB1HENR OPAMPEN LL_APB1_GRP2_IsEnabledClock\n - * APB1HENR MDIOSEN LL_APB1_GRP2_IsEnabledClock\n - * APB1HENR FDCANEN LL_APB1_GRP2_IsEnabledClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP2_PERIPH_CRS - * @arg @ref LL_APB1_GRP2_PERIPH_SWPMI1 - * @arg @ref LL_APB1_GRP2_PERIPH_OPAMP - * @arg @ref LL_APB1_GRP2_PERIPH_MDIOS - * @arg @ref LL_APB1_GRP2_PERIPH_FDCAN - * @arg @ref LL_APB1_GRP2_PERIPH_TIM23 (*) - * @arg @ref LL_APB1_GRP2_PERIPH_TIM24 (*) - * - * (*) value not defined in all devices. - * @retval uint32_t -*/ -__STATIC_INLINE uint32_t LL_APB1_GRP2_IsEnabledClock(uint32_t Periphs) -{ - return ((READ_BIT(RCC->APB1HENR, Periphs) == Periphs) ? 1U : 0U); -} - -/** - * @brief Disable APB1 peripherals clock. - * @rmtoll APB1HENR CRSEN LL_APB1_GRP2_DisableClock\n - * APB1HENR SWPMIEN LL_APB1_GRP2_DisableClock\n - * APB1HENR OPAMPEN LL_APB1_GRP2_DisableClock\n - * APB1HENR MDIOSEN LL_APB1_GRP2_DisableClock\n - * APB1HENR FDCANEN LL_APB1_GRP2_DisableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP2_PERIPH_CRS - * @arg @ref LL_APB1_GRP2_PERIPH_SWPMI1 - * @arg @ref LL_APB1_GRP2_PERIPH_OPAMP - * @arg @ref LL_APB1_GRP2_PERIPH_MDIOS - * @arg @ref LL_APB1_GRP2_PERIPH_FDCAN - * @arg @ref LL_APB1_GRP2_PERIPH_TIM23 (*) - * @arg @ref LL_APB1_GRP2_PERIPH_TIM24 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB1_GRP2_DisableClock(uint32_t Periphs) -{ - CLEAR_BIT(RCC->APB1HENR, Periphs); -} - -/** - * @brief Force APB1 peripherals reset. - * @rmtoll APB1HRSTR CRSRST LL_APB1_GRP2_ForceReset\n - * APB1HRSTR SWPMIRST LL_APB1_GRP2_ForceReset\n - * APB1HRSTR OPAMPRST LL_APB1_GRP2_ForceReset\n - * APB1HRSTR MDIOSRST LL_APB1_GRP2_ForceReset\n - * APB1HRSTR FDCANRST LL_APB1_GRP2_ForceReset - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP2_PERIPH_CRS - * @arg @ref LL_APB1_GRP2_PERIPH_SWPMI1 - * @arg @ref LL_APB1_GRP2_PERIPH_OPAMP - * @arg @ref LL_APB1_GRP2_PERIPH_MDIOS - * @arg @ref LL_APB1_GRP2_PERIPH_FDCAN - * @arg @ref LL_APB1_GRP2_PERIPH_TIM23 (*) - * @arg @ref LL_APB1_GRP2_PERIPH_TIM24 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB1_GRP2_ForceReset(uint32_t Periphs) -{ - SET_BIT(RCC->APB1HRSTR, Periphs); -} - -/** - * @brief Release APB1 peripherals reset. - * @rmtoll APB1HRSTR CRSRST LL_APB1_GRP2_ReleaseReset\n - * APB1HRSTR SWPMIRST LL_APB1_GRP2_ReleaseReset\n - * APB1HRSTR OPAMPRST LL_APB1_GRP2_ReleaseReset\n - * APB1HRSTR MDIOSRST LL_APB1_GRP2_ReleaseReset\n - * APB1HRSTR FDCANRST LL_APB1_GRP2_ReleaseReset - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP2_PERIPH_CRS - * @arg @ref LL_APB1_GRP2_PERIPH_SWPMI1 - * @arg @ref LL_APB1_GRP2_PERIPH_OPAMP - * @arg @ref LL_APB1_GRP2_PERIPH_MDIOS - * @arg @ref LL_APB1_GRP2_PERIPH_FDCAN - * @arg @ref LL_APB1_GRP2_PERIPH_TIM23 (*) - * @arg @ref LL_APB1_GRP2_PERIPH_TIM24 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB1_GRP2_ReleaseReset(uint32_t Periphs) -{ - CLEAR_BIT(RCC->APB1HRSTR, Periphs); -} - -/** - * @brief Enable APB1 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB1HLPENR CRSLPEN LL_APB1_GRP2_EnableClockSleep\n - * APB1HLPENR SWPMILPEN LL_APB1_GRP2_EnableClockSleep\n - * APB1HLPENR OPAMPLPEN LL_APB1_GRP2_EnableClockSleep\n - * APB1HLPENR MDIOSLPEN LL_APB1_GRP2_EnableClockSleep\n - * APB1HLPENR FDCANLPEN LL_APB1_GRP2_EnableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP2_PERIPH_CRS - * @arg @ref LL_APB1_GRP2_PERIPH_SWPMI1 - * @arg @ref LL_APB1_GRP2_PERIPH_OPAMP - * @arg @ref LL_APB1_GRP2_PERIPH_MDIOS - * @arg @ref LL_APB1_GRP2_PERIPH_FDCAN - * @arg @ref LL_APB1_GRP2_PERIPH_TIM23 (*) - * @arg @ref LL_APB1_GRP2_PERIPH_TIM24 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB1_GRP2_EnableClockSleep(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC->APB1HLPENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC->APB1HLPENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Disable APB1 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB1HLPENR CRSLPEN LL_APB1_GRP2_DisableClockSleep\n - * APB1HLPENR SWPMILPEN LL_APB1_GRP2_DisableClockSleep\n - * APB1HLPENR OPAMPLPEN LL_APB1_GRP2_DisableClockSleep\n - * APB1HLPENR MDIOSLPEN LL_APB1_GRP2_DisableClockSleep\n - * APB1HLPENR FDCANLPEN LL_APB1_GRP2_DisableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP2_PERIPH_CRS - * @arg @ref LL_APB1_GRP2_PERIPH_SWPMI1 - * @arg @ref LL_APB1_GRP2_PERIPH_OPAMP - * @arg @ref LL_APB1_GRP2_PERIPH_MDIOS - * @arg @ref LL_APB1_GRP2_PERIPH_FDCAN - * @arg @ref LL_APB1_GRP2_PERIPH_TIM23 (*) - * @arg @ref LL_APB1_GRP2_PERIPH_TIM24 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB1_GRP2_DisableClockSleep(uint32_t Periphs) -{ - CLEAR_BIT(RCC->APB1HLPENR, Periphs); -} - -/** - * @} - */ - -/** @defgroup BUS_LL_EF_APB2 APB2 - * @{ - */ - -/** - * @brief Enable APB2 peripherals clock. - * @rmtoll APB2ENR TIM1EN LL_APB2_GRP1_EnableClock\n - * APB2ENR TIM8EN LL_APB2_GRP1_EnableClock\n - * APB2ENR USART1EN LL_APB2_GRP1_EnableClock\n - * APB2ENR USART6EN LL_APB2_GRP1_EnableClock\n - * APB2ENR UART9EN LL_APB2_GRP1_EnableClock\n (*) - * APB2ENR USART10EN LL_APB2_GRP1_EnableClock\n (*) - * APB2ENR SPI1EN LL_APB2_GRP1_EnableClock\n - * APB2ENR SPI4EN LL_APB2_GRP1_EnableClock\n - * APB2ENR TIM15EN LL_APB2_GRP1_EnableClock\n - * APB2ENR TIM16EN LL_APB2_GRP1_EnableClock\n - * APB2ENR TIM17EN LL_APB2_GRP1_EnableClock\n - * APB2ENR SPI5EN LL_APB2_GRP1_EnableClock\n - * APB2ENR SAI1EN LL_APB2_GRP1_EnableClock\n - * APB2ENR SAI2EN LL_APB2_GRP1_EnableClock\n - * APB2ENR SAI3EN LL_APB2_GRP1_EnableClock\n (*) - * APB2ENR DFSDM1EN LL_APB2_GRP1_EnableClock\n - * APB2ENR HRTIMEN LL_APB2_GRP1_EnableClock (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB2_GRP1_PERIPH_TIM1 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM8 - * @arg @ref LL_APB2_GRP1_PERIPH_USART1 - * @arg @ref LL_APB2_GRP1_PERIPH_USART6 - * @arg @ref LL_APB2_GRP1_PERIPH_UART9 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_USART10 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SPI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI4 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM15 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM16 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM17 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI5 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI2 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SAI3 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_DFSDM1 - * @arg @ref LL_APB2_GRP1_PERIPH_HRTIM (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB2_GRP1_EnableClock(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC->APB2ENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC->APB2ENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Check if APB2 peripheral clock is enabled or not - * @rmtoll APB2ENR TIM1EN LL_APB2_GRP1_IsEnabledClock\n - * APB2ENR TIM8EN LL_APB2_GRP1_IsEnabledClock\n - * APB2ENR USART1EN LL_APB2_GRP1_IsEnabledClock\n - * APB2ENR USART6EN LL_APB2_GRP1_IsEnabledClock\n - * APB2ENR UART9EN LL_APB2_GRP1_IsEnabledClock\n (*) - * APB2ENR USART10EN LL_APB2_GRP1_IsEnabledClock\n (*) - * APB2ENR SPI1EN LL_APB2_GRP1_IsEnabledClock\n - * APB2ENR SPI4EN LL_APB2_GRP1_IsEnabledClock\n - * APB2ENR TIM15EN LL_APB2_GRP1_IsEnabledClock\n - * APB2ENR TIM16EN LL_APB2_GRP1_IsEnabledClock\n - * APB2ENR TIM17EN LL_APB2_GRP1_IsEnabledClock\n - * APB2ENR SPI5EN LL_APB2_GRP1_IsEnabledClock\n - * APB2ENR SAI1EN LL_APB2_GRP1_IsEnabledClock\n - * APB2ENR SAI2EN LL_APB2_GRP1_IsEnabledClock\n - * APB2ENR SAI3EN LL_APB2_GRP1_IsEnabledClock\n - * APB2ENR DFSDM1EN LL_APB2_GRP1_IsEnabledClock\n - * APB2ENR HRTIMEN LL_APB2_GRP1_IsEnabledClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB2_GRP1_PERIPH_TIM1 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM8 - * @arg @ref LL_APB2_GRP1_PERIPH_USART1 - * @arg @ref LL_APB2_GRP1_PERIPH_USART6 - * @arg @ref LL_APB2_GRP1_PERIPH_UART9 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_USART10 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SPI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI4 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM15 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM16 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM17 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI5 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI2 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SAI3 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_DFSDM1 - * @arg @ref LL_APB2_GRP1_PERIPH_HRTIM (*) - * - * (*) value not defined in all devices. - * @retval uint32_t -*/ -__STATIC_INLINE uint32_t LL_APB2_GRP1_IsEnabledClock(uint32_t Periphs) -{ - return ((READ_BIT(RCC->APB2ENR, Periphs) == Periphs) ? 1U : 0U); -} - -/** - * @brief Disable APB2 peripherals clock. - * @rmtoll APB2ENR TIM1EN LL_APB2_GRP1_DisableClock\n - * APB2ENR TIM8EN LL_APB2_GRP1_DisableClock\n - * APB2ENR USART1EN LL_APB2_GRP1_DisableClock\n - * APB2ENR USART6EN LL_APB2_GRP1_DisableClock\n - * APB2ENR UART9EN LL_APB2_GRP1_DisableClock\n (*) - * APB2ENR USART10EN LL_APB2_GRP1_DisableClock\n (*) - * APB2ENR SPI1EN LL_APB2_GRP1_DisableClock\n - * APB2ENR SPI4EN LL_APB2_GRP1_DisableClock\n - * APB2ENR TIM15EN LL_APB2_GRP1_DisableClock\n - * APB2ENR TIM16EN LL_APB2_GRP1_DisableClock\n - * APB2ENR TIM17EN LL_APB2_GRP1_DisableClock\n - * APB2ENR SPI5EN LL_APB2_GRP1_DisableClock\n - * APB2ENR SAI1EN LL_APB2_GRP1_DisableClock\n - * APB2ENR SAI2EN LL_APB2_GRP1_DisableClock\n - * APB2ENR SAI3EN LL_APB2_GRP1_DisableClock\n (*) - * APB2ENR DFSDM1EN LL_APB2_GRP1_DisableClock\n - * APB2ENR HRTIMEN LL_APB2_GRP1_DisableClock (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB2_GRP1_PERIPH_TIM1 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM8 - * @arg @ref LL_APB2_GRP1_PERIPH_USART1 - * @arg @ref LL_APB2_GRP1_PERIPH_USART6 - * @arg @ref LL_APB2_GRP1_PERIPH_UART9 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_USART10 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SPI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI4 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM15 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM16 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM17 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI5 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI2 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SAI3 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_DFSDM1 - * @arg @ref LL_APB2_GRP1_PERIPH_HRTIM (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB2_GRP1_DisableClock(uint32_t Periphs) -{ - CLEAR_BIT(RCC->APB2ENR, Periphs); -} - -/** - * @brief Force APB2 peripherals reset. - * @rmtoll APB2RSTR TIM1RST LL_APB2_GRP1_ForceReset\n - * APB2RSTR TIM8RST LL_APB2_GRP1_ForceReset\n - * APB2RSTR USART1RST LL_APB2_GRP1_ForceReset\n - * APB2RSTR USART6RST LL_APB2_GRP1_ForceReset\n - * APB2ENR UART9RST LL_APB2_GRP1_ForceReset\n (*) - * APB2ENR USART10RST LL_APB2_GRP1_ForceReset\n (*) - * APB2RSTR SPI1RST LL_APB2_GRP1_ForceReset\n - * APB2RSTR SPI4RST LL_APB2_GRP1_ForceReset\n - * APB2RSTR TIM15RST LL_APB2_GRP1_ForceReset\n - * APB2RSTR TIM16RST LL_APB2_GRP1_ForceReset\n - * APB2RSTR TIM17RST LL_APB2_GRP1_ForceReset\n - * APB2RSTR SPI5RST LL_APB2_GRP1_ForceReset\n - * APB2RSTR SAI1RST LL_APB2_GRP1_ForceReset\n - * APB2RSTR SAI2RST LL_APB2_GRP1_ForceReset\n - * APB2RSTR SAI3RST LL_APB2_GRP1_ForceReset\n (*) - * APB2RSTR DFSDM1RST LL_APB2_GRP1_ForceReset\n - * APB2RSTR HRTIMRST LL_APB2_GRP1_ForceReset (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB2_GRP1_PERIPH_TIM1 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM8 - * @arg @ref LL_APB2_GRP1_PERIPH_USART1 - * @arg @ref LL_APB2_GRP1_PERIPH_USART6 - * @arg @ref LL_APB2_GRP1_PERIPH_UART9 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_USART10 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SPI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI4 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM15 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM16 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM17 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI5 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI2 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SAI3 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_DFSDM1 - * @arg @ref LL_APB2_GRP1_PERIPH_HRTIM (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB2_GRP1_ForceReset(uint32_t Periphs) -{ - SET_BIT(RCC->APB2RSTR, Periphs); -} - -/** - * @brief Release APB2 peripherals reset. - * @rmtoll APB2RSTR TIM1RST LL_APB2_GRP1_ReleaseReset\n - * APB2RSTR TIM8RST LL_APB2_GRP1_ReleaseReset\n - * APB2RSTR USART1RST LL_APB2_GRP1_ReleaseReset\n - * APB2RSTR USART6RST LL_APB2_GRP1_ReleaseReset\n - * APB2ENR UART9RST LL_APB2_GRP1_ReleaseReset\n (*) - * APB2ENR USART10RST LL_APB2_GRP1_ReleaseReset\n (*) - * APB2RSTR SPI1RST LL_APB2_GRP1_ReleaseReset\n - * APB2RSTR SPI4RST LL_APB2_GRP1_ReleaseReset\n - * APB2RSTR TIM15RST LL_APB2_GRP1_ReleaseReset\n - * APB2RSTR TIM16RST LL_APB2_GRP1_ReleaseReset\n - * APB2RSTR TIM17RST LL_APB2_GRP1_ReleaseReset\n - * APB2RSTR SPI5RST LL_APB2_GRP1_ReleaseReset\n - * APB2RSTR SAI1RST LL_APB2_GRP1_ReleaseReset\n - * APB2RSTR SAI2RST LL_APB2_GRP1_ReleaseReset\n - * APB2RSTR SAI3RST LL_APB2_GRP1_ReleaseReset\n (*) - * APB2RSTR DFSDM1RST LL_APB2_GRP1_ReleaseReset\n - * APB2RSTR HRTIMRST LL_APB2_GRP1_ReleaseReset (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB2_GRP1_PERIPH_TIM1 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM8 - * @arg @ref LL_APB2_GRP1_PERIPH_USART1 - * @arg @ref LL_APB2_GRP1_PERIPH_USART6 - * @arg @ref LL_APB2_GRP1_PERIPH_UART9 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_USART10 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SPI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI4 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM15 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM16 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM17 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI5 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI2 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SAI3 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_DFSDM1 - * @arg @ref LL_APB2_GRP1_PERIPH_HRTIM (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB2_GRP1_ReleaseReset(uint32_t Periphs) -{ - CLEAR_BIT(RCC->APB2RSTR, Periphs); -} - -/** - * @brief Enable APB2 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB2LPENR TIM1LPEN LL_APB2_GRP1_EnableClockSleep\n - * APB2LPENR TIM8LPEN LL_APB2_GRP1_EnableClockSleep\n - * APB2LPENR USART1LPEN LL_APB2_GRP1_EnableClockSleep\n - * APB2LPENR USART6LPEN LL_APB2_GRP1_EnableClockSleep\n - * APB2ENR UART9LPEN LL_APB2_GRP1_EnableClockSleep\n (*) - * APB2ENR USART10LPEN LL_APB2_GRP1_EnableClockSleep\n (*) - * APB2LPENR SPI1LPEN LL_APB2_GRP1_EnableClockSleep\n - * APB2LPENR SPI4LPEN LL_APB2_GRP1_EnableClockSleep\n - * APB2LPENR TIM15LPEN LL_APB2_GRP1_EnableClockSleep\n - * APB2LPENR TIM16LPEN LL_APB2_GRP1_EnableClockSleep\n - * APB2LPENR TIM17LPEN LL_APB2_GRP1_EnableClockSleep\n - * APB2LPENR SPI5LPEN LL_APB2_GRP1_EnableClockSleep\n - * APB2LPENR SAI1LPEN LL_APB2_GRP1_EnableClockSleep\n - * APB2LPENR SAI2LPEN LL_APB2_GRP1_EnableClockSleep\n - * APB2LPENR SAI3LPEN LL_APB2_GRP1_EnableClockSleep\n (*) - * APB2LPENR DFSDM1LPEN LL_APB2_GRP1_EnableClockSleep\n - * APB2LPENR HRTIMLPEN LL_APB2_GRP1_EnableClockSleep (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB2_GRP1_PERIPH_TIM1 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM8 - * @arg @ref LL_APB2_GRP1_PERIPH_USART1 - * @arg @ref LL_APB2_GRP1_PERIPH_USART6 - * @arg @ref LL_APB2_GRP1_PERIPH_UART9 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_USART10 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SPI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI4 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM15 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM16 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM17 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI5 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI2 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SAI3 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_DFSDM1 - * @arg @ref LL_APB2_GRP1_PERIPH_HRTIM (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB2_GRP1_EnableClockSleep(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC->APB2LPENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC->APB2LPENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Disable APB2 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB2LPENR TIM1LPEN LL_APB2_GRP1_DisableClockSleep\n - * APB2LPENR TIM8LPEN LL_APB2_GRP1_DisableClockSleep\n - * APB2LPENR USART1LPEN LL_APB2_GRP1_DisableClockSleep\n - * APB2LPENR USART6LPEN LL_APB2_GRP1_DisableClockSleep\n - * APB2ENR UART9LPEN LL_APB2_GRP1_DisableClockSleep\n (*) - * APB2ENR USART10LPEN LL_APB2_GRP1_DisableClockSleep\n (*) - * APB2LPENR SPI1LPEN LL_APB2_GRP1_DisableClockSleep\n - * APB2LPENR SPI4LPEN LL_APB2_GRP1_DisableClockSleep\n - * APB2LPENR TIM15LPEN LL_APB2_GRP1_DisableClockSleep\n - * APB2LPENR TIM16LPEN LL_APB2_GRP1_DisableClockSleep\n - * APB2LPENR TIM17LPEN LL_APB2_GRP1_DisableClockSleep\n - * APB2LPENR SPI5LPEN LL_APB2_GRP1_DisableClockSleep\n - * APB2LPENR SAI1LPEN LL_APB2_GRP1_DisableClockSleep\n - * APB2LPENR SAI2LPEN LL_APB2_GRP1_DisableClockSleep\n - * APB2LPENR SAI3LPEN LL_APB2_GRP1_DisableClockSleep\n (*) - * APB2LPENR DFSDM1LPEN LL_APB2_GRP1_DisableClockSleep\n - * APB2LPENR HRTIMLPEN LL_APB2_GRP1_DisableClockSleep (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB2_GRP1_PERIPH_TIM1 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM8 - * @arg @ref LL_APB2_GRP1_PERIPH_USART1 - * @arg @ref LL_APB2_GRP1_PERIPH_USART6 - * @arg @ref LL_APB2_GRP1_PERIPH_UART9 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_USART10 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SPI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI4 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM15 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM16 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM17 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI5 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI2 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SAI3 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_DFSDM1 - * @arg @ref LL_APB2_GRP1_PERIPH_HRTIM (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB2_GRP1_DisableClockSleep(uint32_t Periphs) -{ - CLEAR_BIT(RCC->APB2LPENR, Periphs); -} - -/** - * @} - */ - -/** @defgroup BUS_LL_EF_APB4 APB4 - * @{ - */ - -/** - * @brief Enable APB4 peripherals clock. - * @rmtoll APB4ENR SYSCFGEN LL_APB4_GRP1_EnableClock\n - * APB4ENR LPUART1EN LL_APB4_GRP1_EnableClock\n - * APB4ENR SPI6EN LL_APB4_GRP1_EnableClock\n - * APB4ENR I2C4EN LL_APB4_GRP1_EnableClock\n - * APB4ENR LPTIM2EN LL_APB4_GRP1_EnableClock\n - * APB4ENR LPTIM3EN LL_APB4_GRP1_EnableClock\n - * APB4ENR LPTIM4EN LL_APB4_GRP1_EnableClock\n (*) - * APB4ENR LPTIM5EN LL_APB4_GRP1_EnableClock\n (*) - * APB4ENR DAC2EN LL_APB4_GRP1_EnableClock\n (*) - * APB4ENR COMP12EN LL_APB4_GRP1_EnableClock\n - * APB4ENR VREFEN LL_APB4_GRP1_EnableClock\n - * APB4ENR RTCAPBEN LL_APB4_GRP1_EnableClock\n - * APB4ENR SAI4EN LL_APB4_GRP1_EnableClock\n (*) - * APB4ENR DTSEN LL_APB4_GRP1_EnableClock\n (*) - * APB4ENR DFSDM2EN LL_APB4_GRP1_EnableClock (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB4_GRP1_PERIPH_SYSCFG - * @arg @ref LL_APB4_GRP1_PERIPH_LPUART1 - * @arg @ref LL_APB4_GRP1_PERIPH_SPI6 - * @arg @ref LL_APB4_GRP1_PERIPH_I2C4 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM2 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM3 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM5 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DAC2 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_COMP12 - * @arg @ref LL_APB4_GRP1_PERIPH_VREF - * @arg @ref LL_APB4_GRP1_PERIPH_RTCAPB - * @arg @ref LL_APB4_GRP1_PERIPH_SAI4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DTS (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DFSDM2 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB4_GRP1_EnableClock(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC->APB4ENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC->APB4ENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Check if APB4 peripheral clock is enabled or not - * @rmtoll APB4ENR SYSCFGEN LL_APB4_GRP1_IsEnabledClock\n - * APB4ENR LPUART1EN LL_APB4_GRP1_IsEnabledClock\n - * APB4ENR SPI6EN LL_APB4_GRP1_IsEnabledClock\n - * APB4ENR I2C4EN LL_APB4_GRP1_IsEnabledClock\n - * APB4ENR LPTIM2EN LL_APB4_GRP1_IsEnabledClock\n - * APB4ENR LPTIM3EN LL_APB4_GRP1_IsEnabledClock\n - * APB4ENR LPTIM4EN LL_APB4_GRP1_IsEnabledClock\n (*) - * APB4ENR LPTIM5EN LL_APB4_GRP1_IsEnabledClock\n (*) - * APB4ENR DAC2EN LL_APB4_GRP1_IsEnabledClock\n (*) - * APB4ENR COMP12EN LL_APB4_GRP1_IsEnabledClock\n - * APB4ENR VREFEN LL_APB4_GRP1_IsEnabledClock\n - * APB4ENR RTCAPBEN LL_APB4_GRP1_IsEnabledClock\n - * APB4ENR SAI4EN LL_APB4_GRP1_IsEnabledClock\n (*) - * APB4ENR DTSEN LL_APB4_GRP1_IsEnabledClock\n (*) - * APB4ENR DFSDM2EN LL_APB4_GRP1_IsEnabledClock (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB4_GRP1_PERIPH_SYSCFG - * @arg @ref LL_APB4_GRP1_PERIPH_LPUART1 - * @arg @ref LL_APB4_GRP1_PERIPH_SPI6 - * @arg @ref LL_APB4_GRP1_PERIPH_I2C4 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM2 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM3 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM5 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DAC2 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_COMP12 - * @arg @ref LL_APB4_GRP1_PERIPH_VREF - * @arg @ref LL_APB4_GRP1_PERIPH_RTCAPB - * @arg @ref LL_APB4_GRP1_PERIPH_SAI4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DTS (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DFSDM2 (*) - * - * (*) value not defined in all devices. - * @retval uint32_t -*/ -__STATIC_INLINE uint32_t LL_APB4_GRP1_IsEnabledClock(uint32_t Periphs) -{ - return ((READ_BIT(RCC->APB4ENR, Periphs) == Periphs) ? 1U : 0U); -} - -/** - * @brief Disable APB4 peripherals clock. - * @rmtoll APB4ENR SYSCFGEN LL_APB4_GRP1_DisableClock\n - * APB4ENR LPUART1EN LL_APB4_GRP1_DisableClock\n - * APB4ENR SPI6EN LL_APB4_GRP1_DisableClock\n - * APB4ENR I2C4EN LL_APB4_GRP1_DisableClock\n - * APB4ENR LPTIM2EN LL_APB4_GRP1_DisableClock\n - * APB4ENR LPTIM3EN LL_APB4_GRP1_DisableClock\n - * APB4ENR LPTIM4EN LL_APB4_GRP1_DisableClock\n (*) - * APB4ENR LPTIM5EN LL_APB4_GRP1_DisableClock\n (*) - * APB4ENR DAC2EN LL_APB4_GRP1_DisableClock\n (*) - * APB4ENR COMP12EN LL_APB4_GRP1_DisableClock\n - * APB4ENR VREFEN LL_APB4_GRP1_DisableClock\n - * APB4ENR RTCAPBEN LL_APB4_GRP1_DisableClock\n - * APB4ENR SAI4EN LL_APB4_GRP1_DisableClock\n (*) - * APB4ENR DTSEN LL_APB4_GRP1_DisableClock\n (*) - * APB4ENR DFSDM2EN LL_APB4_GRP1_DisableClock (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB4_GRP1_PERIPH_SYSCFG - * @arg @ref LL_APB4_GRP1_PERIPH_LPUART1 - * @arg @ref LL_APB4_GRP1_PERIPH_SPI6 - * @arg @ref LL_APB4_GRP1_PERIPH_I2C4 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM2 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM3 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM5 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DAC2 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_COMP12 - * @arg @ref LL_APB4_GRP1_PERIPH_VREF - * @arg @ref LL_APB4_GRP1_PERIPH_RTCAPB - * @arg @ref LL_APB4_GRP1_PERIPH_SAI4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DTS (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DFSDM2 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB4_GRP1_DisableClock(uint32_t Periphs) -{ - CLEAR_BIT(RCC->APB4ENR, Periphs); -} - -/** - * @brief Force APB4 peripherals reset. - * @rmtoll APB4RSTR SYSCFGRST LL_APB4_GRP1_ForceReset\n - * APB4RSTR LPUART1RST LL_APB4_GRP1_ForceReset\n - * APB4RSTR SPI6RST LL_APB4_GRP1_ForceReset\n - * APB4RSTR I2C4RST LL_APB4_GRP1_ForceReset\n - * APB4RSTR LPTIM2RST LL_APB4_GRP1_ForceReset\n - * APB4RSTR LPTIM3RST LL_APB4_GRP1_ForceReset\n - * APB4RSTR LPTIM4RST LL_APB4_GRP1_ForceReset\n (*) - * APB4RSTR LPTIM5RST LL_APB4_GRP1_ForceReset\n (*) - * APB4RSTR DAC2EN LL_APB4_GRP1_ForceReset\n (*) - * APB4RSTR COMP12RST LL_APB4_GRP1_ForceReset\n - * APB4RSTR VREFRST LL_APB4_GRP1_ForceReset\n - * APB4RSTR SAI4RST LL_APB4_GRP1_ForceReset\n (*) - * APB4RSTR DTSRST LL_APB4_GRP1_ForceReset\n (*) - * APB4RSTR DFSDM2RST LL_APB4_GRP1_ForceReset (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB4_GRP1_PERIPH_SYSCFG - * @arg @ref LL_APB4_GRP1_PERIPH_LPUART1 - * @arg @ref LL_APB4_GRP1_PERIPH_SPI6 - * @arg @ref LL_APB4_GRP1_PERIPH_I2C4 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM2 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM3 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM5 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DAC2 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_COMP12 - * @arg @ref LL_APB4_GRP1_PERIPH_VREF - * @arg @ref LL_APB4_GRP1_PERIPH_SAI4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DTS (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DFSDM2 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB4_GRP1_ForceReset(uint32_t Periphs) -{ - SET_BIT(RCC->APB4RSTR, Periphs); -} - -/** - * @brief Release APB4 peripherals reset. - * @rmtoll APB4RSTR SYSCFGRST LL_APB4_GRP1_ReleaseReset\n - * APB4RSTR LPUART1RST LL_APB4_GRP1_ReleaseReset\n - * APB4RSTR SPI6RST LL_APB4_GRP1_ReleaseReset\n - * APB4RSTR I2C4RST LL_APB4_GRP1_ReleaseReset\n - * APB4RSTR LPTIM2RST LL_APB4_GRP1_ReleaseReset\n - * APB4RSTR LPTIM3RST LL_APB4_GRP1_ReleaseReset\n - * APB4RSTR LPTIM4RST LL_APB4_GRP1_ReleaseReset\n (*) - * APB4RSTR LPTIM5RST LL_APB4_GRP1_ReleaseReset\n (*) - * APB4RSTR DAC2RST LL_APB4_GRP1_ReleaseReset\n (*) - * APB4RSTR COMP12RST LL_APB4_GRP1_ReleaseReset\n - * APB4RSTR VREFRST LL_APB4_GRP1_ReleaseReset\n - * APB4RSTR SAI4RST LL_APB4_GRP1_ReleaseReset\n - * APB4RSTR DTSRST LL_APB4_GRP1_ReleaseReset\n (*) - * APB4RSTR DFSDM2RST LL_APB4_GRP1_ReleaseReset (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB4_GRP1_PERIPH_SYSCFG - * @arg @ref LL_APB4_GRP1_PERIPH_LPUART1 - * @arg @ref LL_APB4_GRP1_PERIPH_SPI6 - * @arg @ref LL_APB4_GRP1_PERIPH_I2C4 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM2 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM3 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM5 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DAC2 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_COMP12 - * @arg @ref LL_APB4_GRP1_PERIPH_VREF - * @arg @ref LL_APB4_GRP1_PERIPH_SAI4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DTS (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DFSDM2 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB4_GRP1_ReleaseReset(uint32_t Periphs) -{ - CLEAR_BIT(RCC->APB4RSTR, Periphs); -} - -/** - * @brief Enable APB4 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB4LPENR SYSCFGLPEN LL_APB4_GRP1_EnableClockSleep\n - * APB4LPENR LPUART1LPEN LL_APB4_GRP1_EnableClockSleep\n - * APB4LPENR SPI6LPEN LL_APB4_GRP1_EnableClockSleep\n - * APB4LPENR I2C4LPEN LL_APB4_GRP1_EnableClockSleep\n - * APB4LPENR LPTIM2LPEN LL_APB4_GRP1_EnableClockSleep\n - * APB4LPENR LPTIM3LPEN LL_APB4_GRP1_EnableClockSleep\n - * APB4LPENR LPTIM4LPEN LL_APB4_GRP1_EnableClockSleep\n (*) - * APB4LPENR LPTIM5LPEN LL_APB4_GRP1_EnableClockSleep\n (*) - * APB4LPENR DAC2LPEN LL_APB4_GRP1_EnableClockSleep\n (*) - * APB4LPENR COMP12LPEN LL_APB4_GRP1_EnableClockSleep\n - * APB4LPENR VREFLPEN LL_APB4_GRP1_EnableClockSleep\n - * APB4LPENR RTCAPBLPEN LL_APB4_GRP1_EnableClockSleep\n - * APB4LPENR SAI4LPEN LL_APB4_GRP1_EnableClockSleep\n (*) - * APB4LPENR DTSLPEN LL_APB4_GRP1_EnableClockSleep\n (*) - * APB4LPENR DFSDM2LPEN LL_APB4_GRP1_EnableClockSleep (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB4_GRP1_PERIPH_SYSCFG - * @arg @ref LL_APB4_GRP1_PERIPH_LPUART1 - * @arg @ref LL_APB4_GRP1_PERIPH_SPI6 - * @arg @ref LL_APB4_GRP1_PERIPH_I2C4 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM2 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM3 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM5 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DAC2 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_COMP12 - * @arg @ref LL_APB4_GRP1_PERIPH_VREF - * @arg @ref LL_APB4_GRP1_PERIPH_RTCAPB - * @arg @ref LL_APB4_GRP1_PERIPH_SAI4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DTS (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DFSDM2 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB4_GRP1_EnableClockSleep(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC->APB4LPENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC->APB4LPENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Disable APB4 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB4LPENR SYSCFGLPEN LL_APB4_GRP1_DisableClockSleep\n - * APB4LPENR LPUART1LPEN LL_APB4_GRP1_DisableClockSleep\n - * APB4LPENR SPI6LPEN LL_APB4_GRP1_DisableClockSleep\n - * APB4LPENR I2C4LPEN LL_APB4_GRP1_DisableClockSleep\n - * APB4LPENR LPTIM2LPEN LL_APB4_GRP1_DisableClockSleep\n - * APB4LPENR LPTIM3LPEN LL_APB4_GRP1_DisableClockSleep\n - * APB4LPENR LPTIM4LPEN LL_APB4_GRP1_DisableClockSleep\n (*) - * APB4LPENR LPTIM5LPEN LL_APB4_GRP1_DisableClockSleep\n (*) - * APB4LPENR DAC2LPEN LL_APB4_GRP1_DisableClockSleep\n (*) - * APB4LPENR COMP12LPEN LL_APB4_GRP1_DisableClockSleep\n - * APB4LPENR VREFLPEN LL_APB4_GRP1_DisableClockSleep\n - * APB4LPENR RTCAPBLPEN LL_APB4_GRP1_DisableClockSleep\n - * APB4LPENR SAI4LPEN LL_APB4_GRP1_DisableClockSleep\n (*) - * APB4LPENR DTSLPEN LL_APB4_GRP1_DisableClockSleep\n (*) - * APB4LPENR DFSDM2LPEN LL_APB4_GRP1_DisableClockSleep (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB4_GRP1_PERIPH_SYSCFG - * @arg @ref LL_APB4_GRP1_PERIPH_LPUART1 - * @arg @ref LL_APB4_GRP1_PERIPH_SPI6 - * @arg @ref LL_APB4_GRP1_PERIPH_I2C4 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM2 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM3 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM5 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DAC2 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_COMP12 - * @arg @ref LL_APB4_GRP1_PERIPH_VREF - * @arg @ref LL_APB4_GRP1_PERIPH_RTCAPB - * @arg @ref LL_APB4_GRP1_PERIPH_SAI4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DTS (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DFSDM2 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_APB4_GRP1_DisableClockSleep(uint32_t Periphs) -{ - CLEAR_BIT(RCC->APB4LPENR, Periphs); -} - -/** - * @} - */ - -/** @defgroup BUS_LL_EF_CLKAM CLKAM - * @{ - */ - -/** - * @brief Enable peripherals clock for CLKAM Mode. - * @rmtoll D3AMR / SRDAMR BDMA LL_CLKAM_Enable\n - * D3AMR / SRDAMR LPUART1 LL_CLKAM_Enable\n - * D3AMR / SRDAMR SPI6 LL_CLKAM_Enable\n - * D3AMR / SRDAMR I2C4 LL_CLKAM_Enable\n - * D3AMR / SRDAMR LPTIM2 LL_CLKAM_Enable\n - * D3AMR / SRDAMR LPTIM3 LL_CLKAM_Enable\n - * D3AMR / SRDAMR LPTIM4 LL_CLKAM_Enable\n (*) - * D3AMR / SRDAMR LPTIM5 LL_CLKAM_Enable\n (*) - * D3AMR / SRDAMR DAC2 LL_CLKAM_Enable\n (*) - * D3AMR / SRDAMR COMP12 LL_CLKAM_Enable\n - * D3AMR / SRDAMR VREF LL_CLKAM_Enable\n - * D3AMR / SRDAMR RTC LL_CLKAM_Enable\n - * D3AMR / SRDAMR CRC LL_CLKAM_Enable\n - * D3AMR / SRDAMR SAI4 LL_CLKAM_Enable\n (*) - * D3AMR / SRDAMR ADC3 LL_CLKAM_Enable\n (*) - * D3AMR / SRDAMR DTS LL_CLKAM_Enable\n (*) - * D3AMR / SRDAMR DFSDM2 LL_CLKAM_Enable\n (*) - * D3AMR / SRDAMR BKPRAM LL_CLKAM_Enable\n - * D3AMR / SRDAMR SRAM4 LL_CLKAM_Enable - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_CLKAM_PERIPH_BDMA - * @arg @ref LL_CLKAM_PERIPH_GPIO (*) - * @arg @ref LL_CLKAM_PERIPH_LPUART1 - * @arg @ref LL_CLKAM_PERIPH_SPI6 - * @arg @ref LL_CLKAM_PERIPH_I2C4 - * @arg @ref LL_CLKAM_PERIPH_LPTIM2 - * @arg @ref LL_CLKAM_PERIPH_LPTIM3 - * @arg @ref LL_CLKAM_PERIPH_LPTIM4 (*) - * @arg @ref LL_CLKAM_PERIPH_LPTIM5 (*) - * @arg @ref LL_CLKAM_PERIPH_DAC2 (*) - * @arg @ref LL_CLKAM_PERIPH_COMP12 - * @arg @ref LL_CLKAM_PERIPH_VREF - * @arg @ref LL_CLKAM_PERIPH_RTC - * @arg @ref LL_CLKAM_PERIPH_CRC (*) - * @arg @ref LL_CLKAM_PERIPH_SAI4 (*) - * @arg @ref LL_CLKAM_PERIPH_ADC3 (*) - * @arg @ref LL_CLKAM_PERIPH_DTS (*) - * @arg @ref LL_CLKAM_PERIPH_DFSDM2 (*) - * @arg @ref LL_CLKAM_PERIPH_BKPRAM - * @arg @ref LL_CLKAM_PERIPH_SRAM4 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_CLKAM_Enable(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - -#if defined(RCC_D3AMR_BDMAAMEN) - SET_BIT(RCC->D3AMR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC->D3AMR, Periphs); -#else - SET_BIT(RCC->SRDAMR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC->SRDAMR, Periphs); -#endif /* RCC_D3AMR_BDMAAMEN */ - (void)tmpreg; -} - -/** - * @brief Disable peripherals clock for CLKAM Mode. - * @rmtoll D3AMR / SRDAMR BDMA LL_CLKAM_Disable\n - * D3AMR / SRDAMR LPUART1 LL_CLKAM_Disable\n - * D3AMR / SRDAMR SPI6 LL_CLKAM_Disable\n - * D3AMR / SRDAMR I2C4 LL_CLKAM_Disable\n - * D3AMR / SRDAMR LPTIM2 LL_CLKAM_Disable\n - * D3AMR / SRDAMR LPTIM3 LL_CLKAM_Disable\n - * D3AMR / SRDAMR LPTIM4 LL_CLKAM_Disable\n (*) - * D3AMR / SRDAMR LPTIM5 LL_CLKAM_Disable\n (*) - * D3AMR / SRDAMR DAC2 LL_CLKAM_Disable\n (*) - * D3AMR / SRDAMR COMP12 LL_CLKAM_Disable\n - * D3AMR / SRDAMR VREF LL_CLKAM_Disable\n - * D3AMR / SRDAMR RTC LL_CLKAM_Disable\n - * D3AMR / SRDAMR CRC LL_CLKAM_Disable\n - * D3AMR / SRDAMR SAI4 LL_CLKAM_Disable\n (*) - * D3AMR / SRDAMR ADC3 LL_CLKAM_Disable\n (*) - * D3AMR / SRDAMR DTS LL_CLKAM_Disable\n (*) - * D3AMR / SRDAMR DFSDM2 LL_CLKAM_Disable\n (*) - * D3AMR / SRDAMR BKPRAM LL_CLKAM_Disable\n - * D3AMR / SRDAMR SRAM4 LL_CLKAM_Disable - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_CLKAM_PERIPH_BDMA - * @arg @ref LL_CLKAM_PERIPH_GPIO (*) - * @arg @ref LL_CLKAM_PERIPH_LPUART1 - * @arg @ref LL_CLKAM_PERIPH_SPI6 - * @arg @ref LL_CLKAM_PERIPH_I2C4 - * @arg @ref LL_CLKAM_PERIPH_LPTIM2 - * @arg @ref LL_CLKAM_PERIPH_LPTIM3 - * @arg @ref LL_CLKAM_PERIPH_LPTIM4 (*) - * @arg @ref LL_CLKAM_PERIPH_LPTIM5 (*) - * @arg @ref LL_CLKAM_PERIPH_DAC2 (*) - * @arg @ref LL_CLKAM_PERIPH_COMP12 - * @arg @ref LL_CLKAM_PERIPH_VREF - * @arg @ref LL_CLKAM_PERIPH_RTC - * @arg @ref LL_CLKAM_PERIPH_CRC (*) - * @arg @ref LL_CLKAM_PERIPH_SAI4 (*) - * @arg @ref LL_CLKAM_PERIPH_ADC3 (*) - * @arg @ref LL_CLKAM_PERIPH_DTS (*) - * @arg @ref LL_CLKAM_PERIPH_DFSDM2 (*) - * @arg @ref LL_CLKAM_PERIPH_BKPRAM - * @arg @ref LL_CLKAM_PERIPH_SRAM4 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_CLKAM_Disable(uint32_t Periphs) -{ -#if defined(RCC_D3AMR_BDMAAMEN) - CLEAR_BIT(RCC->D3AMR, Periphs); -#else - CLEAR_BIT(RCC->SRDAMR, Periphs); -#endif /* RCC_D3AMR_BDMAAMEN */ -} - -/** - * @} - */ - -/** @defgroup BUS_LL_EF_CKGA CKGA - * @{ - */ - -#if defined(RCC_CKGAENR_AXICKG) - - -/** - * @brief Enable clock gating for AXI bus peripherals. - * @rmtoll CKGAENR AXICKG LL_CKGA_Enable\n - * CKGAENR AHBCKG LL_CKGA_Enable\n - * CKGAENR CPUCKG LL_CKGA_Enable\n - * CKGAENR SDMMCCKG LL_CKGA_Enable\n - * CKGAENR MDMACKG LL_CKGA_Enable\n - * CKGAENR DMA2DCKG LL_CKGA_Enable\n - * CKGAENR LTDCCKG LL_CKGA_Enable\n - * CKGAENR GFXMMUMCKG LL_CKGA_Enable\n - * CKGAENR AHB12CKG LL_CKGA_Enable\n - * CKGAENR AHB34CKG LL_CKGA_Enable\n - * CKGAENR FLIFTCKG LL_CKGA_Enable\n - * CKGAENR OCTOSPI2CKG LL_CKGA_Enable\n - * CKGAENR FMCCKG LL_CKGA_Enable\n - * CKGAENR OCTOSPI1CKG LL_CKGA_Enable\n - * CKGAENR AXIRAM1CKG LL_CKGA_Enable\n - * CKGAENR AXIRAM2CKG LL_CKGA_Enable\n - * CKGAENR AXIRAM3CKG LL_CKGA_Enable\n - * CKGAENR GFXMMUSCKG LL_CKGA_Enable\n - * CKGAENR ECCRAMCKG LL_CKGA_Enable\n - * CKGAENR EXTICKG LL_CKGA_Enable\n - * CKGAENR JTAGCKG LL_CKGA_Enable - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_CKGA_PERIPH_AXI - * @arg @ref LL_CKGA_PERIPH_AHB - * @arg @ref LL_CKGA_PERIPH_CPU - * @arg @ref LL_CKGA_PERIPH_SDMMC - * @arg @ref LL_CKGA_PERIPH_MDMA - * @arg @ref LL_CKGA_PERIPH_DMA2D - * @arg @ref LL_CKGA_PERIPH_LTDC - * @arg @ref LL_CKGA_PERIPH_GFXMMUM - * @arg @ref LL_CKGA_PERIPH_AHB12 - * @arg @ref LL_CKGA_PERIPH_AHB34 - * @arg @ref LL_CKGA_PERIPH_FLIFT - * @arg @ref LL_CKGA_PERIPH_OCTOSPI2 - * @arg @ref LL_CKGA_PERIPH_FMC - * @arg @ref LL_CKGA_PERIPH_OCTOSPI1 - * @arg @ref LL_CKGA_PERIPH_AXIRAM1 - * @arg @ref LL_CKGA_PERIPH_AXIRAM2 - * @arg @ref LL_CKGA_PERIPH_AXIRAM3 - * @arg @ref LL_CKGA_PERIPH_GFXMMUS - * @arg @ref LL_CKGA_PERIPH_ECCRAM - * @arg @ref LL_CKGA_PERIPH_EXTI - * @arg @ref LL_CKGA_PERIPH_JTAG - * @retval None -*/ -__STATIC_INLINE void LL_CKGA_Enable(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC->CKGAENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC->CKGAENR, Periphs); - (void)tmpreg; -} - -#endif /* RCC_CKGAENR_AXICKG */ - -#if defined(RCC_CKGAENR_AXICKG) - -/** - * @brief Disable clock gating for AXI bus peripherals. - * @rmtoll CKGAENR AXICKG LL_CKGA_Enable\n - * CKGAENR AHBCKG LL_CKGA_Enable\n - * CKGAENR CPUCKG LL_CKGA_Enable\n - * CKGAENR SDMMCCKG LL_CKGA_Enable\n - * CKGAENR MDMACKG LL_CKGA_Enable\n - * CKGAENR DMA2DCKG LL_CKGA_Enable\n - * CKGAENR LTDCCKG LL_CKGA_Enable\n - * CKGAENR GFXMMUMCKG LL_CKGA_Enable\n - * CKGAENR AHB12CKG LL_CKGA_Enable\n - * CKGAENR AHB34CKG LL_CKGA_Enable\n - * CKGAENR FLIFTCKG LL_CKGA_Enable\n - * CKGAENR OCTOSPI2CKG LL_CKGA_Enable\n - * CKGAENR FMCCKG LL_CKGA_Enable\n - * CKGAENR OCTOSPI1CKG LL_CKGA_Enable\n - * CKGAENR AXIRAM1CKG LL_CKGA_Enable\n - * CKGAENR AXIRAM2CKG LL_CKGA_Enable\n - * CKGAENR AXIRAM3CKG LL_CKGA_Enable\n - * CKGAENR GFXMMUSCKG LL_CKGA_Enable\n - * CKGAENR ECCRAMCKG LL_CKGA_Enable\n - * CKGAENR EXTICKG LL_CKGA_Enable\n - * CKGAENR JTAGCKG LL_CKGA_Enable - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_CKGA_PERIPH_AXI - * @arg @ref LL_CKGA_PERIPH_AHB - * @arg @ref LL_CKGA_PERIPH_CPU - * @arg @ref LL_CKGA_PERIPH_SDMMC - * @arg @ref LL_CKGA_PERIPH_MDMA - * @arg @ref LL_CKGA_PERIPH_DMA2D - * @arg @ref LL_CKGA_PERIPH_LTDC - * @arg @ref LL_CKGA_PERIPH_GFXMMUM - * @arg @ref LL_CKGA_PERIPH_AHB12 - * @arg @ref LL_CKGA_PERIPH_AHB34 - * @arg @ref LL_CKGA_PERIPH_FLIFT - * @arg @ref LL_CKGA_PERIPH_OCTOSPI2 - * @arg @ref LL_CKGA_PERIPH_FMC - * @arg @ref LL_CKGA_PERIPH_OCTOSPI1 - * @arg @ref LL_CKGA_PERIPH_AXIRAM1 - * @arg @ref LL_CKGA_PERIPH_AXIRAM2 - * @arg @ref LL_CKGA_PERIPH_AXIRAM3 - * @arg @ref LL_CKGA_PERIPH_GFXMMUS - * @arg @ref LL_CKGA_PERIPH_ECCRAM - * @arg @ref LL_CKGA_PERIPH_EXTI - * @arg @ref LL_CKGA_PERIPH_JTAG - * @retval None -*/ -__STATIC_INLINE void LL_CKGA_Disable(uint32_t Periphs) -{ - CLEAR_BIT(RCC->CKGAENR, Periphs); -} - -#endif /* RCC_CKGAENR_AXICKG */ - -/** - * @} - */ - -#if defined(DUAL_CORE) -/** @addtogroup BUS_LL_EF_AHB3 AHB3 - * @{ - */ - -/** - * @brief Enable C1 AHB3 peripherals clock. - * @rmtoll AHB3ENR MDMAEN LL_C1_AHB3_GRP1_EnableClock\n - * AHB3ENR DMA2DEN LL_C1_AHB3_GRP1_EnableClock\n - * AHB3ENR JPGDECEN LL_C1_AHB3_GRP1_EnableClock\n - * AHB3ENR FMCEN LL_C1_AHB3_GRP1_EnableClock\n - * AHB3ENR QSPIEN LL_C1_AHB3_GRP1_EnableClock\n (*) - * AHB3ENR OSPI1EN LL_C1_AHB3_GRP1_EnableClock\n (*) - * AHB3ENR OSPI2EN LL_C1_AHB3_GRP1_EnableClock\n (*) - * AHB3ENR IOMNGREN LL_C1_AHB3_GRP1_EnableClock\n (*) - * AHB3ENR OTFDEC1EN LL_C1_AHB3_GRP1_EnableClock\n (*) - * AHB3ENR OTFDEC2EN LL_C1_AHB3_GRP1_EnableClock\n (*) - * AHB3ENR GFXMMUEN LL_C1_AHB3_GRP1_EnableClock\n (*) - * AHB3ENR SDMMC1EN LL_C1_AHB3_GRP1_EnableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB3_GRP1_PERIPH_MDMA - * @arg @ref LL_AHB3_GRP1_PERIPH_DMA2D - * @arg @ref LL_AHB3_GRP1_PERIPH_JPGDEC - * @arg @ref LL_AHB3_GRP1_PERIPH_FMC - * @arg @ref LL_AHB3_GRP1_PERIPH_QSPI (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OSPI1 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OSPI2 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OCTOSPIM (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OTFDEC1 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OTFDEC2 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_GFXMMU (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_SDMMC1 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_AHB3_GRP1_EnableClock(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C1->AHB3ENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C1->AHB3ENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Check if C1 AHB3 peripheral clock is enabled or not - * @rmtoll AHB3ENR MDMAEN LL_C1_AHB3_GRP1_IsEnabledClock\n - * AHB3ENR DMA2DEN LL_C1_AHB3_GRP1_IsEnabledClock\n - * AHB3ENR JPGDECEN LL_C1_AHB3_GRP1_IsEnabledClock\n - * AHB3ENR FMCEN LL_C1_AHB3_GRP1_IsEnabledClock\n - * AHB3ENR QSPIEN LL_C1_AHB3_GRP1_IsEnabledClock\n (*) - * AHB3ENR OSPI1EN LL_C1_AHB3_GRP1_IsEnabledClock\n (*) - * AHB3ENR OSPI2EN LL_C1_AHB3_GRP1_IsEnabledClock\n (*) - * AHB3ENR IOMNGREN LL_C1_AHB3_GRP1_IsEnabledClock\n (*) - * AHB3ENR OTFDEC1EN LL_C1_AHB3_GRP1_IsEnabledClock\n (*) - * AHB3ENR OTFDEC2EN LL_C1_AHB3_GRP1_IsEnabledClock\n (*) - * AHB3ENR GFXMMUEN LL_C1_AHB3_GRP1_IsEnabledClock\n (*) - * AHB3ENR SDMMC1EN LL_C1_AHB3_GRP1_IsEnabledClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB3_GRP1_PERIPH_MDMA - * @arg @ref LL_AHB3_GRP1_PERIPH_DMA2D - * @arg @ref LL_AHB3_GRP1_PERIPH_JPGDEC - * @arg @ref LL_AHB3_GRP1_PERIPH_FMC - * @arg @ref LL_AHB3_GRP1_PERIPH_QSPI (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OSPI1 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OSPI2 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OCTOSPIM (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OTFDEC1 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OTFDEC2 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_GFXMMU (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_SDMMC1 - * - * (*) value not defined in all devices. - * @retval uint32_t -*/ -__STATIC_INLINE uint32_t LL_C1_AHB3_GRP1_IsEnabledClock(uint32_t Periphs) -{ - return ((READ_BIT(RCC_C1->AHB3ENR, Periphs) == Periphs) ? 1U : 0U); -} - -/** - * @brief Disable C1 AHB3 peripherals clock. - * @rmtoll AHB3ENR MDMAEN LL_C1_AHB3_GRP1_DisableClock\n - * AHB3ENR DMA2DEN LL_C1_AHB3_GRP1_DisableClock\n - * AHB3ENR JPGDECEN LL_C1_AHB3_GRP1_DisableClock\n - * AHB3ENR FMCEN LL_C1_AHB3_GRP1_DisableClock\n - * AHB3ENR QSPIEN LL_C1_AHB3_GRP1_DisableClock\n (*) - * AHB3ENR OSPI1EN LL_C1_AHB3_GRP1_DisableClock\n (*) - * AHB3ENR OSPI2EN LL_C1_AHB3_GRP1_DisableClock\n (*) - * AHB3ENR IOMNGREN LL_C1_AHB3_GRP1_DisableClock\n (*) - * AHB3ENR OTFDEC1EN LL_C1_AHB3_GRP1_DisableClock\n (*) - * AHB3ENR OTFDEC2EN LL_C1_AHB3_GRP1_DisableClock\n (*) - * AHB3ENR GFXMMUEN LL_C1_AHB3_GRP1_DisableClock\n (*) - * AHB3ENR SDMMC1EN LL_C1_AHB3_GRP1_DisableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB3_GRP1_PERIPH_MDMA - * @arg @ref LL_AHB3_GRP1_PERIPH_DMA2D - * @arg @ref LL_AHB3_GRP1_PERIPH_JPGDEC (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_FMC - * @arg @ref LL_AHB3_GRP1_PERIPH_QSPI (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OSPI1 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OSPI2 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OCTOSPIM (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OTFDEC1 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OTFDEC2 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_GFXMMU (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_SDMMC1 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_AHB3_GRP1_DisableClock(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C1->AHB3ENR, Periphs); -} - -/** - * @brief Enable C1 AHB3 peripherals clock during Low Power (Sleep) mode. - * @rmtoll AHB3LPENR MDMALPEN LL_C1_AHB3_GRP1_EnableClockSleep\n - * AHB3LPENR DMA2DLPEN LL_C1_AHB3_GRP1_EnableClockSleep\n - * AHB3LPENR JPGDECLPEN LL_C1_AHB3_GRP1_EnableClockSleep\n - * AHB3LPENR FMCLPEN LL_C1_AHB3_GRP1_EnableClockSleep\n - * AHB3LPENR QSPILPEN LL_C1_AHB3_GRP1_EnableClockSleep\n (*) - * AHB3LPENR OSPI1LPEN LL_C1_AHB3_GRP1_EnableClockSleep\n (*) - * AHB3LPENR OSPI2LPEN LL_C1_AHB3_GRP1_EnableClockSleep\n (*) - * AHB3LPENR IOMNGRLPEN LL_C1_AHB3_GRP1_EnableClockSleep\n (*) - * AHB3LPENR OTFDEC1LPEN LL_C1_AHB3_GRP1_EnableClockSleep\n (*) - * AHB3LPENR OTFDEC1LPEN LL_C1_AHB3_GRP1_EnableClockSleep\n (*) - * AHB3LPENR GFXMMULPEN LL_C1_AHB3_GRP1_EnableClockSleep\n (*) - * AHB3LPENR SDMMC1LPEN LL_C1_AHB3_GRP1_EnableClockSleep\n - * AHB3LPENR FLASHLPEN LL_C1_AHB3_GRP1_EnableClockSleep\n - * AHB3LPENR DTCM1LPEN LL_C1_AHB3_GRP1_EnableClockSleep\n - * AHB3LPENR DTCM2LPEN LL_C1_AHB3_GRP1_EnableClockSleep\n - * AHB3LPENR ITCMLPEN LL_C1_AHB3_GRP1_EnableClockSleep\n - * AHB3LPENR AXISRAMLPEN LL_C1_AHB3_GRP1_EnableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB3_GRP1_PERIPH_DMA2D - * @arg @ref LL_AHB3_GRP1_PERIPH_JPGDEC (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_FMC - * @arg @ref LL_AHB3_GRP1_PERIPH_QSPI (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OSPI1 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OSPI2 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OCTOSPIM (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OTFDEC1 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OTFDEC2 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_GFXMMU (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_SDMMC1 - * @arg @ref LL_AHB3_GRP1_PERIPH_FLASH - * @arg @ref LL_AHB3_GRP1_PERIPH_DTCM1 - * @arg @ref LL_AHB3_GRP1_PERIPH_DTCM2 - * @arg @ref LL_AHB3_GRP1_PERIPH_ITCM - * @arg @ref LL_AHB3_GRP1_PERIPH_AXISRAM - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_AHB3_GRP1_EnableClockSleep(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C1->AHB3LPENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C1->AHB3LPENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Disable C1 AHB3 peripherals clock during Low Power (Sleep) mode. - * @rmtoll AHB3LPENR MDMALPEN LL_C1_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR DMA2DLPEN LL_C1_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR JPGDECLPEN LL_C1_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR FMCLPEN LL_C1_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR QSPILPEN LL_C1_AHB3_GRP1_DisableClockSleep\n (*) - * AHB3LPENR OSPI1LPEN LL_C1_AHB3_GRP1_DisableClockSleep\n (*) - * AHB3LPENR OSPI2LPEN LL_C1_AHB3_GRP1_DisableClockSleep\n (*) - * AHB3LPENR IOMNGRLPEN LL_C1_AHB3_GRP1_DisableClockSleep\n (*) - * AHB3LPENR OTFDEC1LPEN LL_C1_AHB3_GRP1_DisableClockSleep\n (*) - * AHB3LPENR OTFDEC1LPEN LL_C1_AHB3_GRP1_DisableClockSleep\n (*) - * AHB3LPENR GFXMMULPEN LL_C1_AHB3_GRP1_DisableClockSleep\n (*) - * AHB3LPENR SDMMC1LPEN LL_C1_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR FLASHLPEN LL_C1_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR DTCM1LPEN LL_C1_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR DTCM2LPEN LL_C1_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR ITCMLPEN LL_C1_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR AXISRAMLPEN LL_C1_AHB3_GRP1_DisableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB3_GRP1_PERIPH_DMA2D - * @arg @ref LL_AHB3_GRP1_PERIPH_JPGDEC (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_FMC - * @arg @ref LL_AHB3_GRP1_PERIPH_QSPI (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OSPI1 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OSPI2 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OCTOSPIM (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OTFDEC1 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_OTFDEC2 (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_GFXMMU (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_SDMMC1 - * @arg @ref LL_AHB3_GRP1_PERIPH_FLASH - * @arg @ref LL_AHB3_GRP1_PERIPH_DTCM1 - * @arg @ref LL_AHB3_GRP1_PERIPH_DTCM2 - * @arg @ref LL_AHB3_GRP1_PERIPH_ITCM - * @arg @ref LL_AHB3_GRP1_PERIPH_AXISRAM - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_AHB3_GRP1_DisableClockSleep(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C1->AHB3LPENR, Periphs); -} - -/** - * @} - */ - -/** @addtogroup BUS_LL_EF_AHB1 AHB1 - * @{ - */ - -/** - * @brief Enable C1 AHB1 peripherals clock. - * @rmtoll AHB1ENR DMA1EN LL_C1_AHB1_GRP1_EnableClock\n - * AHB1ENR DMA2EN LL_C1_AHB1_GRP1_EnableClock\n - * AHB1ENR ADC12EN LL_C1_AHB1_GRP1_EnableClock\n - * AHB1ENR CRCEN LL_C1_AHB1_GRP1_EnableClock\n (*) - * AHB1ENR ARTEN LL_C1_AHB1_GRP1_EnableClock\n (*) - * AHB1ENR ETH1MACEN LL_C1_AHB1_GRP1_EnableClock\n (*) - * AHB1ENR ETH1TXEN LL_C1_AHB1_GRP1_EnableClock\n (*) - * AHB1ENR ETH1RXEN LL_C1_AHB1_GRP1_EnableClock\n (*) - * AHB1ENR USB1OTGHSEN LL_C1_AHB1_GRP1_EnableClock\n - * AHB1ENR USB1OTGHSULPIEN LL_C1_AHB1_GRP1_EnableClock\n - * AHB1ENR USB2OTGHSEN LL_C1_AHB1_GRP1_EnableClock\n (*) - * AHB1ENR USB2OTGHSULPIEN LL_C1_AHB1_GRP1_EnableClock (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA1 - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA2 - * @arg @ref LL_AHB1_GRP1_PERIPH_ADC12 - * @arg @ref LL_AHB1_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ART (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1MAC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1TX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1RX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHS - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHSULPI - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHS (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHSULPI (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_AHB1_GRP1_EnableClock(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C1->AHB1ENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C1->AHB1ENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Check if C1 AHB1 peripheral clock is enabled or not - * @rmtoll AHB1ENR DMA1EN LL_C1_AHB1_GRP1_IsEnabledClock\n - * AHB1ENR DMA2EN LL_C1_AHB1_GRP1_IsEnabledClock\n - * AHB1ENR ADC12EN LL_C1_AHB1_GRP1_IsEnabledClock\n - * AHB1ENR CRCEN LL_C1_AHB1_GRP1_IsEnabledClock\n (*) - * AHB1ENR ARTEN LL_C1_AHB1_GRP1_IsEnabledClock\n (*) - * AHB1ENR ETH1MACEN LL_C1_AHB1_GRP1_IsEnabledClock\n (*) - * AHB1ENR ETH1TXEN LL_C1_AHB1_GRP1_IsEnabledClock\n (*) - * AHB1ENR ETH1RXEN LL_C1_AHB1_GRP1_IsEnabledClock\n (*) - * AHB1ENR USB1OTGHSEN LL_C1_AHB1_GRP1_IsEnabledClock\n - * AHB1ENR USB1OTGHSULPIEN LL_C1_AHB1_GRP1_IsEnabledClock\n - * AHB1ENR USB2OTGHSEN LL_C1_AHB1_GRP1_IsEnabledClock\n (*) - * AHB1ENR USB2OTGHSULPIEN LL_C1_AHB1_GRP1_IsEnabledClock (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA1 - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA2 - * @arg @ref LL_AHB1_GRP1_PERIPH_ADC12 - * @arg @ref LL_AHB1_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ART (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1MAC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1TX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1RX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHS - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHSULPI - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHS (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHSULPI (*) - * - * (*) value not defined in all devices. - * @retval uint32_t -*/ -__STATIC_INLINE uint32_t LL_C1_AHB1_GRP1_IsEnabledClock(uint32_t Periphs) -{ - return ((READ_BIT(RCC_C1->AHB1ENR, Periphs) == Periphs) ? 1U : 0U); -} - -/** - * @brief Disable C1 AHB1 peripherals clock. - * @rmtoll AHB1ENR DMA1EN LL_C1_AHB1_GRP1_DisableClock\n - * AHB1ENR DMA2EN LL_C1_AHB1_GRP1_DisableClock\n - * AHB1ENR ADC12EN LL_C1_AHB1_GRP1_DisableClock\n - * AHB1ENR CRCEN LL_C1_AHB1_GRP1_DisableClock\n (*) - * AHB1ENR ARTEN LL_C1_AHB1_GRP1_DisableClock\n (*) - * AHB1ENR ETH1MACEN LL_C1_AHB1_GRP1_DisableClock\n (*) - * AHB1ENR ETH1TXEN LL_C1_AHB1_GRP1_DisableClock\n (*) - * AHB1ENR ETH1RXEN LL_C1_AHB1_GRP1_DisableClock\n (*) - * AHB1ENR USB1OTGHSEN LL_C1_AHB1_GRP1_DisableClock\n - * AHB1ENR USB1OTGHSULPIEN LL_C1_AHB1_GRP1_DisableClock\n - * AHB1ENR USB2OTGHSEN LL_C1_AHB1_GRP1_DisableClock\n (*) - * AHB1ENR USB2OTGHSULPIEN LL_C1_AHB1_GRP1_DisableClock (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA1 - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA2 - * @arg @ref LL_AHB1_GRP1_PERIPH_ADC12 - * @arg @ref LL_AHB1_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ART (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1MAC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1TX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1RX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHS - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHSULPI - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHS (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHSULPI (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_AHB1_GRP1_DisableClock(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C1->AHB1ENR, Periphs); -} - -/** - * @brief Enable C1 AHB1 peripherals clock during Low Power (Sleep) mode. - * @rmtoll AHB1LPENR DMA1LPEN LL_C1_AHB1_GRP1_EnableClockSleep\n - * AHB1LPENR DMA2LPEN LL_C1_AHB1_GRP1_EnableClockSleep\n - * AHB1LPENR ADC12LPEN LL_C1_AHB1_GRP1_EnableClockSleep\n - * AHB1LPENR CRCLPEN LL_C1_AHB1_GRP1_EnableClockSleep\n (*) - * AHB1LPENR ARTLPEN LL_C1_AHB1_GRP1_EnableClockSleep\n (*) - * AHB1LPENR ETH1MACLPEN LL_C1_AHB1_GRP1_EnableClockSleep\n (*) - * AHB1LPENR ETH1TXLPEN LL_C1_AHB1_GRP1_EnableClockSleep\n (*) - * AHB1LPENR ETH1RXLPEN LL_C1_AHB1_GRP1_EnableClockSleep\n (*) - * AHB1LPENR USB1OTGHSLPEN LL_C1_AHB1_GRP1_EnableClockSleep\n - * AHB1LPENR USB1OTGHSULPILPEN LL_C1_AHB1_GRP1_EnableClockSleep\n - * AHB1LPENR USB2OTGHSLPEN LL_C1_AHB1_GRP1_EnableClockSleep\n (*) - * AHB1LPENR USB2OTGHSULPILPEN LL_C1_AHB1_GRP1_EnableClockSleep (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA1 - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA2 - * @arg @ref LL_AHB1_GRP1_PERIPH_ADC12 - * @arg @ref LL_AHB1_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ART (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1MAC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1TX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1RX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHS - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHSULPI - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHS (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHSULPI (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_AHB1_GRP1_EnableClockSleep(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C1->AHB1LPENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C1->AHB1LPENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Disable C1 AHB1 peripherals clock during Low Power (Sleep) mode. - * @rmtoll AHB1LPENR DMA1LPEN LL_C1_AHB1_GRP1_DisableClockSleep\n - * AHB1LPENR DMA2LPEN LL_C1_AHB1_GRP1_DisableClockSleep\n - * AHB1LPENR ADC12LPEN LL_C1_AHB1_GRP1_DisableClockSleep\n - * AHB1LPENR CRCLPEN LL_C1_AHB1_GRP1_DisableClockSleep\n (*) - * AHB1LPENR ARTLPEN LL_C1_AHB1_GRP1_DisableClockSleep\n (*) - * AHB1LPENR ETH1MACLPEN LL_C1_AHB1_GRP1_DisableClockSleep\n (*) - * AHB1LPENR ETH1TXLPEN LL_C1_AHB1_GRP1_DisableClockSleep\n (*) - * AHB1LPENR ETH1RXLPEN LL_C1_AHB1_GRP1_DisableClockSleep\n (*) - * AHB1LPENR USB1OTGHSLPEN LL_C1_AHB1_GRP1_DisableClockSleep\n - * AHB1LPENR USB1OTGHSULPILPEN LL_C1_AHB1_GRP1_DisableClockSleep\n - * AHB1LPENR USB2OTGHSLPEN LL_C1_AHB1_GRP1_DisableClockSleep\n (*) - * AHB1LPENR USB2OTGHSULPILPEN LL_C1_AHB1_GRP1_DisableClockSleep (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA1 - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA2 - * @arg @ref LL_AHB1_GRP1_PERIPH_ADC12 - * @arg @ref LL_AHB1_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ART (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1MAC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1TX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1RX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHS - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHSULPI - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHS (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHSULPI (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_AHB1_GRP1_DisableClockSleep(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C1->AHB1LPENR, Periphs); -} - -/** - * @} - */ - -/** @addtogroup BUS_LL_EF_AHB2 AHB2 - * @{ - */ - -/** - * @brief Enable C1 AHB2 peripherals clock. - * @rmtoll AHB2ENR DCMIEN LL_C1_AHB2_GRP1_EnableClock\n - * AHB2ENR HSEMEN LL_C1_AHB2_GRP1_EnableClock\n (*) - * AHB2ENR CRYPEN LL_C1_AHB2_GRP1_EnableClock\n (*) - * AHB2ENR HASHEN LL_C1_AHB2_GRP1_EnableClock\n (*) - * AHB2ENR RNGEN LL_C1_AHB2_GRP1_EnableClock\n - * AHB2ENR SDMMC2EN LL_C1_AHB2_GRP1_EnableClock\n - * AHB2ENR BDMA1EN LL_C1_AHB2_GRP1_EnableClock\n (*) - * AHB2ENR D2SRAM1EN LL_C1_AHB2_GRP1_EnableClock\n - * AHB2ENR D2SRAM2EN LL_C1_AHB2_GRP1_EnableClock\n - * AHB2ENR D2SRAM3EN LL_C1_AHB2_GRP1_EnableClock (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB2_GRP1_PERIPH_DCMI - * @arg @ref LL_AHB2_GRP1_PERIPH_HSEM (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_CRYP (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_HASH (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_RNG - * @arg @ref LL_AHB2_GRP1_PERIPH_BDMA1 (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_SDMMC2 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM1 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM2 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM3 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_AHB2_GRP1_EnableClock(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C1->AHB2ENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C1->AHB2ENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Check if C1 AHB2 peripheral clock is enabled or not - * @rmtoll AHB2ENR DCMIEN LL_C1_AHB2_GRP1_IsEnabledClock\n - * AHB2ENR HSEMEN LL_C1_AHB2_GRP1_IsEnabledClock\n (*) - * AHB2ENR CRYPEN LL_C1_AHB2_GRP1_IsEnabledClock\n (*) - * AHB2ENR HASHEN LL_C1_AHB2_GRP1_IsEnabledClock\n (*) - * AHB2ENR RNGEN LL_C1_AHB2_GRP1_IsEnabledClock\n - * AHB2ENR SDMMC2EN LL_C1_AHB2_GRP1_IsEnabledClock\n - * AHB2ENR BDMA1EN LL_C1_AHB2_GRP1_IsEnabledClock\n (*) - * AHB2ENR D2SRAM1EN LL_C1_AHB2_GRP1_IsEnabledClock\n - * AHB2ENR D2SRAM2EN LL_C1_AHB2_GRP1_IsEnabledClock\n - * AHB2ENR D2SRAM3EN LL_C1_AHB2_GRP1_IsEnabledClock (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB2_GRP1_PERIPH_DCMI - * @arg @ref LL_AHB2_GRP1_PERIPH_HSEM (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_CRYP (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_HASH (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_RNG - * @arg @ref LL_AHB2_GRP1_PERIPH_BDMA1 (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_SDMMC2 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM1 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM2 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM3 (*) - * - * (*) value not defined in all devices. - * @retval uint32_t -*/ -__STATIC_INLINE uint32_t LL_C1_AHB2_GRP1_IsEnabledClock(uint32_t Periphs) -{ - return ((READ_BIT(RCC_C1->AHB2ENR, Periphs) == Periphs) ? 1U : 0U); -} - -/** - * @brief Disable C1 AHB2 peripherals clock. - * @rmtoll AHB2ENR DCMIEN LL_C1_AHB2_GRP1_DisableClock\n - * AHB2ENR HSEMEN LL_C1_AHB2_GRP1_DisableClock\n (*) - * AHB2ENR CRYPEN LL_C1_AHB2_GRP1_DisableClock\n (*) - * AHB2ENR HASHEN LL_C1_AHB2_GRP1_DisableClock\n (*) - * AHB2ENR RNGEN LL_C1_AHB2_GRP1_DisableClock\n - * AHB2ENR SDMMC2EN LL_C1_AHB2_GRP1_DisableClock\n - * AHB2ENR BDMA1EN LL_C1_AHB2_GRP1_DisableClock\n (*) - * AHB2ENR D2SRAM1EN LL_C1_AHB2_GRP1_DisableClock\n - * AHB2ENR D2SRAM2EN LL_C1_AHB2_GRP1_DisableClock\n - * AHB2ENR D2SRAM3EN LL_C1_AHB2_GRP1_DisableClock (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB2_GRP1_PERIPH_DCMI - * @arg @ref LL_AHB2_GRP1_PERIPH_HSEM (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_CRYP (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_HASH (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_RNG - * @arg @ref LL_AHB2_GRP1_PERIPH_BDMA1 (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_SDMMC2 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM1 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM2 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM3 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_AHB2_GRP1_DisableClock(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C1->AHB2ENR, Periphs); -} - -/** - * @brief Enable C1 AHB2 peripherals clock during Low Power (Sleep) mode. - * @rmtoll AHB2LPENR DCMILPEN LL_C1_AHB2_GRP1_EnableClockSleep\n - * AHB2LPENR CRYPLPEN LL_C1_AHB2_GRP1_EnableClockSleep\n (*) - * AHB2LPENR HASHLPEN LL_C1_AHB2_GRP1_EnableClockSleep\n (*) - * AHB2LPENR RNGLPEN LL_C1_AHB2_GRP1_EnableClockSleep\n - * AHB2LPENR SDMMC2LPEN LL_C1_AHB2_GRP1_EnableClockSleep\n - * AHB2LPENR D2SRAM1LPEN LL_C1_AHB2_GRP1_EnableClockSleep\n - * AHB2LPENR BDAM1LPEN LL_C1_AHB2_GRP1_EnableClockSleep\n (*) - * AHB2LPENR D2SRAM2LPEN LL_C1_AHB2_GRP1_EnableClockSleep\n - * AHB2LPENR D2SRAM3LPEN LL_C1_AHB2_GRP1_EnableClockSleep (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB2_GRP1_PERIPH_DCMI - * @arg @ref LL_AHB2_GRP1_PERIPH_CRYP (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_HASH (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_RNG - * @arg @ref LL_AHB2_GRP1_PERIPH_SDMMC2 - * @arg @ref LL_AHB2_GRP1_PERIPH_BDMA1 (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM1 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM2 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM3 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_AHB2_GRP1_EnableClockSleep(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C1->AHB2LPENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C1->AHB2LPENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Disable C1 AHB2 peripherals clock during Low Power (Sleep) mode. - * @rmtoll AHB2LPENR DCMILPEN LL_C1_AHB2_GRP1_DisableClockSleep\n - * AHB2LPENR CRYPLPEN LL_C1_AHB2_GRP1_DisableClockSleep\n (*) - * AHB2LPENR HASHLPEN LL_C1_AHB2_GRP1_DisableClockSleep\n (*) - * AHB2LPENR RNGLPEN LL_C1_AHB2_GRP1_DisableClockSleep\n - * AHB2LPENR SDMMC2LPEN LL_C1_AHB2_GRP1_DisableClockSleep\n - * AHB2LPENR BDAM1LPEN LL_C1_AHB2_GRP1_DisableClockSleep\n (*) - * AHB2LPENR D2SRAM1LPEN LL_C1_AHB2_GRP1_DisableClockSleep\n - * AHB2LPENR D2SRAM2LPEN LL_C1_AHB2_GRP1_DisableClockSleep\n - * AHB2LPENR D2SRAM3LPEN LL_C1_AHB2_GRP1_DisableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB2_GRP1_PERIPH_DCMI - * @arg @ref LL_AHB2_GRP1_PERIPH_CRYP (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_HASH (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_RNG - * @arg @ref LL_AHB2_GRP1_PERIPH_SDMMC2 - * @arg @ref LL_AHB2_GRP1_PERIPH_BDMA1 (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM1 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM2 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM3 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_AHB2_GRP1_DisableClockSleep(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C1->AHB2LPENR, Periphs); -} - -/** - * @} - */ - -/** @addtogroup BUS_LL_EF_AHB4 AHB4 - * @{ - */ - -/** - * @brief Enable C1 AHB4 peripherals clock. - * @rmtoll AHB4ENR GPIOAEN LL_C1_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIOBEN LL_C1_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIOCEN LL_C1_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIODEN LL_C1_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIOEEN LL_C1_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIOFEN LL_C1_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIOGEN LL_C1_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIOHEN LL_C1_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIOIEN LL_C1_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIOJEN LL_C1_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIOKEN LL_C1_AHB4_GRP1_EnableClock\n - * AHB4ENR CRCEN LL_C1_AHB4_GRP1_EnableClock\n (*) - * AHB4ENR BDMAEN LL_C1_AHB4_GRP1_EnableClock\n - * AHB4ENR ADC3EN LL_C1_AHB4_GRP1_EnableClock\n (*) - * AHB4ENR HSEMEN LL_C1_AHB4_GRP1_EnableClock\n (*) - * AHB4ENR BKPRAMEN LL_C1_AHB4_GRP1_EnableClock\n - * AHB4ENR SRAM4EN LL_C1_AHB4_GRP1_EnableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOA - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOB - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOC - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOD - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOE - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOF - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOG - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOH - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOI (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOJ - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOK - * @arg @ref LL_AHB4_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BDMA - * @arg @ref LL_AHB4_GRP1_PERIPH_ADC3 (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_HSEM (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BKPRAM - * @arg @ref LL_AHB4_GRP1_PERIPH_SRAM4 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_AHB4_GRP1_EnableClock(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C1->AHB4ENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C1->AHB4ENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Check if C1 AHB4 peripheral clock is enabled or not - * @rmtoll AHB4ENR GPIOAEN LL_C1_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIOBEN LL_C1_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIOCEN LL_C1_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIODEN LL_C1_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIOEEN LL_C1_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIOFEN LL_C1_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIOGEN LL_C1_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIOHEN LL_C1_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIOIEN LL_C1_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIOJEN LL_C1_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIOKEN LL_C1_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR CRCEN LL_C1_AHB4_GRP1_IsEnabledClock\n (*) - * AHB4ENR BDMAEN LL_C1_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR ADC3EN LL_C1_AHB4_GRP1_IsEnabledClock\n (*) - * AHB4ENR HSEMEN LL_C1_AHB4_GRP1_IsEnabledClock\n (*) - * AHB4ENR BKPRAMEN LL_C1_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR SRAM4EN LL_C1_AHB4_GRP1_IsEnabledClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOA - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOB - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOC - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOD - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOE - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOF - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOG - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOH - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOI (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOJ - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOK - * @arg @ref LL_AHB4_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BDMA - * @arg @ref LL_AHB4_GRP1_PERIPH_ADC3 (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_HSEM (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BKPRAM - * @arg @ref LL_AHB4_GRP1_PERIPH_SRAM4 - * - * (*) value not defined in all devices. - * @retval uint32_t -*/ -__STATIC_INLINE uint32_t LL_C1_AHB4_GRP1_IsEnabledClock(uint32_t Periphs) -{ - return ((READ_BIT(RCC_C1->AHB4ENR, Periphs) == Periphs) ? 1U : 0U); -} - -/** - * @brief Disable C1 AHB4 peripherals clock. - * @rmtoll AHB4ENR GPIOAEN LL_C1_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIOBEN LL_C1_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIOCEN LL_C1_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIODEN LL_C1_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIOEEN LL_C1_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIOFEN LL_C1_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIOGEN LL_C1_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIOHEN LL_C1_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIOIEN LL_C1_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIOJEN LL_C1_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIOKEN LL_C1_AHB4_GRP1_DisableClock\n - * AHB4ENR CRCEN LL_C1_AHB4_GRP1_DisableClock\n (*) - * AHB4ENR BDMAEN LL_C1_AHB4_GRP1_DisableClock\n - * AHB4ENR ADC3EN LL_C1_AHB4_GRP1_DisableClock\n (*) - * AHB4ENR HSEMEN LL_C1_AHB4_GRP1_DisableClock\n (*) - * AHB4ENR BKPRAMEN LL_C1_AHB4_GRP1_DisableClock\n - * AHB4ENR SRAM4EN LL_C1_AHB4_GRP1_DisableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOA - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOB - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOC - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOD - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOE - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOF - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOG - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOH - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOI (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOJ - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOK - * @arg @ref LL_AHB4_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BDMA - * @arg @ref LL_AHB4_GRP1_PERIPH_ADC3 (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_HSEM (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BKPRAM - * @arg @ref LL_AHB4_GRP1_PERIPH_SRAM4 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_AHB4_GRP1_DisableClock(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C1->AHB4ENR, Periphs); -} - -/** - * @brief Enable C1 AHB4 peripherals clock during Low Power (Sleep) mode. - * @rmtoll AHB4LPENR GPIOALPEN LL_C1_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIOBLPEN LL_C1_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIOCLPEN LL_C1_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIODLPEN LL_C1_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIOELPEN LL_C1_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIOFLPEN LL_C1_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIOGLPEN LL_C1_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIOHLPEN LL_C1_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIOILPEN LL_C1_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIOJLPEN LL_C1_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIOKLPEN LL_C1_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR CRCLPEN LL_C1_AHB4_GRP1_EnableClockSleep\n (*) - * AHB4LPENR BDMALPEN LL_C1_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR ADC3LPEN LL_C1_AHB4_GRP1_EnableClockSleep\n (*) - * AHB4LPENR BKPRAMLPEN LL_C1_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR SRAM4LPEN LL_C1_AHB4_GRP1_EnableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOA - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOB - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOC - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOD - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOE - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOF - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOG - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOH - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOI (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOJ - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOK - * @arg @ref LL_AHB4_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BDMA - * @arg @ref LL_AHB4_GRP1_PERIPH_ADC3 (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BKPRAM - * @arg @ref LL_AHB4_GRP1_PERIPH_SRAM4 - * @retval None -*/ -__STATIC_INLINE void LL_C1_AHB4_GRP1_EnableClockSleep(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C1->AHB4LPENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C1->AHB4LPENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Disable C1 AHB4 peripherals clock during Low Power (Sleep) mode. - * @rmtoll AHB4LPENR GPIOALPEN LL_C1_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIOBLPEN LL_C1_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIOCLPEN LL_C1_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIODLPEN LL_C1_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIOELPEN LL_C1_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIOFLPEN LL_C1_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIOGLPEN LL_C1_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIOHLPEN LL_C1_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIOILPEN LL_C1_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIOJLPEN LL_C1_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIOKLPEN LL_C1_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR CRCLPEN LL_C1_AHB4_GRP1_DisableClockSleep\n (*) - * AHB4LPENR BDMALPEN LL_C1_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR ADC3LPEN LL_C1_AHB4_GRP1_DisableClockSleep\n (*) - * AHB4LPENR BKPRAMLPEN LL_C1_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR SRAM4LPEN LL_C1_AHB4_GRP1_DisableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOA - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOB - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOC - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOD - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOE - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOF - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOG - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOH - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOI (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOJ - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOK - * @arg @ref LL_AHB4_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BDMA - * @arg @ref LL_AHB4_GRP1_PERIPH_ADC3 (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BKPRAM - * @arg @ref LL_AHB4_GRP1_PERIPH_SRAM4 - * @retval None -*/ -__STATIC_INLINE void LL_C1_AHB4_GRP1_DisableClockSleep(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C1->AHB4LPENR, Periphs); -} - -/** - * @} - */ - -/** @addtogroup BUS_LL_EF_APB3 APB3 - * @{ - */ - -/** - * @brief Enable C1 APB3 peripherals clock. - * @rmtoll APB3ENR LTDCEN LL_C1_APB3_GRP1_EnableClock\n (*) - * APB3ENR DSIEN LL_C1_APB3_GRP1_EnableClock\n (*) - * APB3ENR WWDG1EN LL_C1_APB3_GRP1_EnableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB3_GRP1_PERIPH_LTDC (*) - * @arg @ref LL_APB3_GRP1_PERIPH_DSI (*) - * @arg @ref LL_APB3_GRP1_PERIPH_WWDG1 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_APB3_GRP1_EnableClock(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C1->APB3ENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C1->APB3ENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Check if C1 APB3 peripheral clock is enabled or not - * @rmtoll APB3ENR LTDCEN LL_C1_APB3_GRP1_IsEnabledClock\n (*) - * APB3ENR DSIEN LL_C1_APB3_GRP1_IsEnabledClock\n (*) - * APB3ENR WWDG1EN LL_C1_APB3_GRP1_IsEnabledClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB3_GRP1_PERIPH_LTDC (*) - * @arg @ref LL_APB3_GRP1_PERIPH_DSI (*) - * @arg @ref LL_APB3_GRP1_PERIPH_WWDG1 - * - * (*) value not defined in all devices. - * @retval uint32_t -*/ -__STATIC_INLINE uint32_t LL_C1_APB3_GRP1_IsEnabledClock(uint32_t Periphs) -{ - return ((READ_BIT(RCC_C1->APB3ENR, Periphs) == Periphs) ? 1U : 0U); -} - -/** - * @brief Disable C1 APB3 peripherals clock. - * @rmtoll APB3ENR LTDCEN LL_C1_APB3_GRP1_DisableClock\n (*) - * APB3ENR DSIEN LL_C1_APB3_GRP1_DisableClock\n (*) - * APB3ENR WWDG1EN LL_C1_APB3_GRP1_DisableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB3_GRP1_PERIPH_LTDC (*) - - * @arg @ref LL_APB3_GRP1_PERIPH_DSI (*) - * @arg @ref LL_APB3_GRP1_PERIPH_WWDG1 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_APB3_GRP1_DisableClock(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C1->APB3ENR, Periphs); -} - -/** - * @brief Enable C1 APB3 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB3LPENR LTDCLPEN LL_C1_APB3_GRP1_EnableClockSleep\n (*) - * APB3LPENR DSILPEN LL_C1_APB3_GRP1_EnableClockSleep\n (*) - * APB3LPENR WWDG1LPEN LL_C1_APB3_GRP1_EnableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB3_GRP1_PERIPH_LTDC (*) - * @arg @ref LL_APB3_GRP1_PERIPH_DSI (*) - * @arg @ref LL_APB3_GRP1_PERIPH_WWDG1 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_APB3_GRP1_EnableClockSleep(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C1->APB3LPENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C1->APB3LPENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Disable C1 APB3 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB3LPENR LTDCLPEN LL_C1_APB3_GRP1_DisableClockSleep\n (*) - * APB3LPENR DSILPEN LL_C1_APB3_GRP1_DisableClockSleep\n (*) - * APB3LPENR WWDG1LPEN LL_C1_APB3_GRP1_DisableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB3_GRP1_PERIPH_LTDC (*) - * @arg @ref LL_APB3_GRP1_PERIPH_DSI (*) - * @arg @ref LL_APB3_GRP1_PERIPH_WWDG1 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_APB3_GRP1_DisableClockSleep(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C1->APB3LPENR, Periphs); -} - -/** - * @} - */ - -/** @addtogroup BUS_LL_EF_APB1 APB1 - * @{ - */ - -/** - * @brief Enable C1 APB1 peripherals clock. - * @rmtoll APB1LENR TIM2EN LL_C1_APB1_GRP1_EnableClock\n - * APB1LENR TIM3EN LL_C1_APB1_GRP1_EnableClock\n - * APB1LENR TIM4EN LL_C1_APB1_GRP1_EnableClock\n - * APB1LENR TIM5EN LL_C1_APB1_GRP1_EnableClock\n - * APB1LENR TIM6EN LL_C1_APB1_GRP1_EnableClock\n - * APB1LENR TIM7EN LL_C1_APB1_GRP1_EnableClock\n - * APB1LENR TIM12EN LL_C1_APB1_GRP1_EnableClock\n - * APB1LENR TIM13EN LL_C1_APB1_GRP1_EnableClock\n - * APB1LENR TIM14EN LL_C1_APB1_GRP1_EnableClock\n - * APB1LENR LPTIM1EN LL_C1_APB1_GRP1_EnableClock\n - * APB1LENR WWDG2EN LL_C1_APB1_GRP1_EnableClock\n (*) - * APB1LENR SPI2EN LL_C1_APB1_GRP1_EnableClock\n - * APB1LENR SPI3EN LL_C1_APB1_GRP1_EnableClock\n - * APB1LENR SPDIFRXEN LL_C1_APB1_GRP1_EnableClock\n - * APB1LENR USART2EN LL_C1_APB1_GRP1_EnableClock\n - * APB1LENR USART3EN LL_C1_APB1_GRP1_EnableClock\n - * APB1LENR UART4EN LL_C1_APB1_GRP1_EnableClock\n - * APB1LENR UART5EN LL_C1_APB1_GRP1_EnableClock\n - * APB1LENR I2C1EN LL_C1_APB1_GRP1_EnableClock\n - * APB1LENR I2C2EN LL_C1_APB1_GRP1_EnableClock\n - * APB1LENR I2C3EN LL_C1_APB1_GRP1_EnableClock\n - * APB1LENR CECEN LL_C1_APB1_GRP1_EnableClock\n - * APB1LENR DAC12EN LL_C1_APB1_GRP1_EnableClock\n - * APB1LENR UART7EN LL_C1_APB1_GRP1_EnableClock\n - * APB1LENR UART8EN LL_C1_APB1_GRP1_EnableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP1_PERIPH_TIM2 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM3 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM4 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM5 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM6 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM7 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM12 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM13 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM14 - * @arg @ref LL_APB1_GRP1_PERIPH_LPTIM1 - * @arg @ref LL_APB1_GRP1_PERIPH_WWDG2 (*) - * @arg @ref LL_APB1_GRP1_PERIPH_SPI2 - * @arg @ref LL_APB1_GRP1_PERIPH_SPI3 - * @arg @ref LL_APB1_GRP1_PERIPH_SPDIFRX - * @arg @ref LL_APB1_GRP1_PERIPH_USART2 - * @arg @ref LL_APB1_GRP1_PERIPH_USART3 - * @arg @ref LL_APB1_GRP1_PERIPH_UART4 - * @arg @ref LL_APB1_GRP1_PERIPH_UART5 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C1 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C2 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C3 - * @arg @ref LL_APB1_GRP1_PERIPH_CEC - * @arg @ref LL_APB1_GRP1_PERIPH_DAC12 - * @arg @ref LL_APB1_GRP1_PERIPH_UART7 - * @arg @ref LL_APB1_GRP1_PERIPH_UART8 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_APB1_GRP1_EnableClock(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C1->APB1LENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C1->APB1LENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Check if C1 APB1 peripheral clock is enabled or not - * @rmtoll APB1LENR TIM2EN LL_C1_APB1_GRP1_IsEnabledClock\n - * APB1LENR TIM3EN LL_C1_APB1_GRP1_IsEnabledClock\n - * APB1LENR TIM4EN LL_C1_APB1_GRP1_IsEnabledClock\n - * APB1LENR TIM5EN LL_C1_APB1_GRP1_IsEnabledClock\n - * APB1LENR TIM6EN LL_C1_APB1_GRP1_IsEnabledClock\n - * APB1LENR TIM7EN LL_C1_APB1_GRP1_IsEnabledClock\n - * APB1LENR TIM12EN LL_C1_APB1_GRP1_IsEnabledClock\n - * APB1LENR TIM13EN LL_C1_APB1_GRP1_IsEnabledClock\n - * APB1LENR TIM14EN LL_C1_APB1_GRP1_IsEnabledClock\n - * APB1LENR LPTIM1EN LL_C1_APB1_GRP1_IsEnabledClock\n - * APB1LENR WWDG2EN LL_C1_APB1_GRP1_IsEnabledClock\n (*) - * APB1LENR SPI2EN LL_C1_APB1_GRP1_IsEnabledClock\n - * APB1LENR SPI3EN LL_C1_APB1_GRP1_IsEnabledClock\n - * APB1LENR SPDIFRXEN LL_C1_APB1_GRP1_IsEnabledClock\n - * APB1LENR USART2EN LL_C1_APB1_GRP1_IsEnabledClock\n - * APB1LENR USART3EN LL_C1_APB1_GRP1_IsEnabledClock\n - * APB1LENR UART4EN LL_C1_APB1_GRP1_IsEnabledClock\n - * APB1LENR UART5EN LL_C1_APB1_GRP1_IsEnabledClock\n - * APB1LENR I2C1EN LL_C1_APB1_GRP1_IsEnabledClock\n - * APB1LENR I2C2EN LL_C1_APB1_GRP1_IsEnabledClock\n - * APB1LENR I2C3EN LL_C1_APB1_GRP1_IsEnabledClock\n - * APB1LENR CECEN LL_C1_APB1_GRP1_IsEnabledClock\n - * APB1LENR DAC12EN LL_C1_APB1_GRP1_IsEnabledClock\n - * APB1LENR UART7EN LL_C1_APB1_GRP1_IsEnabledClock\n - * APB1LENR UART8EN LL_C1_APB1_GRP1_IsEnabledClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP1_PERIPH_TIM2 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM3 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM4 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM5 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM6 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM7 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM12 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM13 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM14 - * @arg @ref LL_APB1_GRP1_PERIPH_LPTIM1 - * @arg @ref LL_APB1_GRP1_PERIPH_WWDG2 (*) - * @arg @ref LL_APB1_GRP1_PERIPH_SPI2 - * @arg @ref LL_APB1_GRP1_PERIPH_SPI3 - * @arg @ref LL_APB1_GRP1_PERIPH_SPDIFRX - * @arg @ref LL_APB1_GRP1_PERIPH_USART2 - * @arg @ref LL_APB1_GRP1_PERIPH_USART3 - * @arg @ref LL_APB1_GRP1_PERIPH_UART4 - * @arg @ref LL_APB1_GRP1_PERIPH_UART5 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C1 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C2 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C3 - * @arg @ref LL_APB1_GRP1_PERIPH_CEC - * @arg @ref LL_APB1_GRP1_PERIPH_DAC12 - * @arg @ref LL_APB1_GRP1_PERIPH_UART7 - * @arg @ref LL_APB1_GRP1_PERIPH_UART8 - * - * (*) value not defined in all devices. - * @retval uint32_t -*/ -__STATIC_INLINE uint32_t LL_C1_APB1_GRP1_IsEnabledClock(uint32_t Periphs) -{ - return ((READ_BIT(RCC_C1->APB1LENR, Periphs) == Periphs) ? 1U : 0U); -} - -/** - * @brief Disable C1 APB1 peripherals clock. - * @rmtoll APB1LENR TIM2EN LL_C1_APB1_GRP1_DisableClock\n - * APB1LENR TIM3EN LL_C1_APB1_GRP1_DisableClock\n - * APB1LENR TIM4EN LL_C1_APB1_GRP1_DisableClock\n - * APB1LENR TIM5EN LL_C1_APB1_GRP1_DisableClock\n - * APB1LENR TIM6EN LL_C1_APB1_GRP1_DisableClock\n - * APB1LENR TIM7EN LL_C1_APB1_GRP1_DisableClock\n - * APB1LENR TIM12EN LL_C1_APB1_GRP1_DisableClock\n - * APB1LENR TIM13EN LL_C1_APB1_GRP1_DisableClock\n - * APB1LENR TIM14EN LL_C1_APB1_GRP1_DisableClock\n - * APB1LENR LPTIM1EN LL_C1_APB1_GRP1_DisableClock\n - * APB1LENR WWDG2EN LL_C1_APB1_GRP1_DisableClock\n (*) - * APB1LENR SPI2EN LL_C1_APB1_GRP1_DisableClock\n - * APB1LENR SPI3EN LL_C1_APB1_GRP1_DisableClock\n - * APB1LENR SPDIFRXEN LL_C1_APB1_GRP1_DisableClock\n - * APB1LENR USART2EN LL_C1_APB1_GRP1_DisableClock\n - * APB1LENR USART3EN LL_C1_APB1_GRP1_DisableClock\n - * APB1LENR UART4EN LL_C1_APB1_GRP1_DisableClock\n - * APB1LENR UART5EN LL_C1_APB1_GRP1_DisableClock\n - * APB1LENR I2C1EN LL_C1_APB1_GRP1_DisableClock\n - * APB1LENR I2C2EN LL_C1_APB1_GRP1_DisableClock\n - * APB1LENR I2C3EN LL_C1_APB1_GRP1_DisableClock\n - * APB1LENR CECEN LL_C1_APB1_GRP1_DisableClock\n - * APB1LENR DAC12EN LL_C1_APB1_GRP1_DisableClock\n - * APB1LENR UART7EN LL_C1_APB1_GRP1_DisableClock\n - * APB1LENR UART8EN LL_C1_APB1_GRP1_DisableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP1_PERIPH_TIM2 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM3 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM4 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM5 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM6 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM7 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM12 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM13 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM14 - * @arg @ref LL_APB1_GRP1_PERIPH_LPTIM1 - * @arg @ref LL_APB1_GRP1_PERIPH_WWDG2 (*) - * @arg @ref LL_APB1_GRP1_PERIPH_SPI2 - * @arg @ref LL_APB1_GRP1_PERIPH_SPI3 - * @arg @ref LL_APB1_GRP1_PERIPH_SPDIFRX - * @arg @ref LL_APB1_GRP1_PERIPH_USART2 - * @arg @ref LL_APB1_GRP1_PERIPH_USART3 - * @arg @ref LL_APB1_GRP1_PERIPH_UART4 - * @arg @ref LL_APB1_GRP1_PERIPH_UART5 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C1 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C2 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C3 - * @arg @ref LL_APB1_GRP1_PERIPH_CEC - * @arg @ref LL_APB1_GRP1_PERIPH_DAC12 - * @arg @ref LL_APB1_GRP1_PERIPH_UART7 - * @arg @ref LL_APB1_GRP1_PERIPH_UART8 - * - * (*) value not defined in all devices. - * @retval uint32_t -*/ -__STATIC_INLINE void LL_C1_APB1_GRP1_DisableClock(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C1->APB1LENR, Periphs); -} - -/** - * @brief Enable C1 APB1 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB1LLPENR TIM2LPEN LL_C1_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR TIM3LPEN LL_C1_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR TIM4LPEN LL_C1_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR TIM5LPEN LL_C1_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR TIM6LPEN LL_C1_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR TIM7LPEN LL_C1_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR TIM12LPEN LL_C1_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR TIM13LPEN LL_C1_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR TIM14LPEN LL_C1_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR LPTIM1LPEN LL_C1_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR WWDG2LPEN LL_C1_APB1_GRP1_EnableClockSleep\n (*) - * APB1LLPENR SPI2LPEN LL_C1_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR SPI3LPEN LL_C1_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR SPDIFRXLPEN LL_C1_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR USART2LPEN LL_C1_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR USART3LPEN LL_C1_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR UART4LPEN LL_C1_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR UART5LPEN LL_C1_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR I2C1LPEN LL_C1_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR I2C2LPEN LL_C1_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR I2C3LPEN LL_C1_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR CECLPEN LL_C1_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR DAC12LPEN LL_C1_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR UART7LPEN LL_C1_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR UART8LPEN LL_C1_APB1_GRP1_EnableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP1_PERIPH_TIM2 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM3 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM4 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM5 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM6 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM7 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM12 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM13 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM14 - * @arg @ref LL_APB1_GRP1_PERIPH_LPTIM1 - * @arg @ref LL_APB1_GRP1_PERIPH_WWDG2 (*) - * @arg @ref LL_APB1_GRP1_PERIPH_SPI2 - * @arg @ref LL_APB1_GRP1_PERIPH_SPI3 - * @arg @ref LL_APB1_GRP1_PERIPH_SPDIFRX - * @arg @ref LL_APB1_GRP1_PERIPH_USART2 - * @arg @ref LL_APB1_GRP1_PERIPH_USART3 - * @arg @ref LL_APB1_GRP1_PERIPH_UART4 - * @arg @ref LL_APB1_GRP1_PERIPH_UART5 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C1 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C2 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C3 - * @arg @ref LL_APB1_GRP1_PERIPH_CEC - * @arg @ref LL_APB1_GRP1_PERIPH_DAC12 - * @arg @ref LL_APB1_GRP1_PERIPH_UART7 - * @arg @ref LL_APB1_GRP1_PERIPH_UART8 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_APB1_GRP1_EnableClockSleep(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C1->APB1LLPENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C1->APB1LLPENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Disable C1 APB1 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB1LLPENR TIM2LPEN LL_C1_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR TIM3LPEN LL_C1_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR TIM4LPEN LL_C1_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR TIM5LPEN LL_C1_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR TIM6LPEN LL_C1_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR TIM7LPEN LL_C1_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR TIM12LPEN LL_C1_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR TIM13LPEN LL_C1_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR TIM14LPEN LL_C1_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR LPTIM1LPEN LL_C1_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR WWDG2LPEN LL_C1_APB1_GRP1_DisableClockSleep\n (*) - * APB1LLPENR SPI2LPEN LL_C1_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR SPI3LPEN LL_C1_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR SPDIFRXLPEN LL_C1_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR USART2LPEN LL_C1_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR USART3LPEN LL_C1_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR UART4LPEN LL_C1_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR UART5LPEN LL_C1_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR I2C1LPEN LL_C1_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR I2C2LPEN LL_C1_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR I2C3LPEN LL_C1_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR CECLPEN LL_C1_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR DAC12LPEN LL_C1_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR UART7LPEN LL_C1_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR UART8LPEN LL_C1_APB1_GRP1_DisableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP1_PERIPH_TIM2 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM3 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM4 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM5 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM6 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM7 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM12 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM13 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM14 - * @arg @ref LL_APB1_GRP1_PERIPH_LPTIM1 - * @arg @ref LL_APB1_GRP1_PERIPH_WWDG2 (*) - * @arg @ref LL_APB1_GRP1_PERIPH_SPI2 - * @arg @ref LL_APB1_GRP1_PERIPH_SPI3 - * @arg @ref LL_APB1_GRP1_PERIPH_SPDIFRX - * @arg @ref LL_APB1_GRP1_PERIPH_USART2 - * @arg @ref LL_APB1_GRP1_PERIPH_USART3 - * @arg @ref LL_APB1_GRP1_PERIPH_UART4 - * @arg @ref LL_APB1_GRP1_PERIPH_UART5 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C1 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C2 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C3 - * @arg @ref LL_APB1_GRP1_PERIPH_CEC - * @arg @ref LL_APB1_GRP1_PERIPH_DAC12 - * @arg @ref LL_APB1_GRP1_PERIPH_UART7 - * @arg @ref LL_APB1_GRP1_PERIPH_UART8 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_APB1_GRP1_DisableClockSleep(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C1->APB1LLPENR, Periphs); -} - -/** - * @brief Enable C1 APB1 peripherals clock. - * @rmtoll APB1HENR CRSEN LL_C1_APB1_GRP2_EnableClock\n - * APB1HENR SWPMIEN LL_C1_APB1_GRP2_EnableClock\n - * APB1HENR OPAMPEN LL_C1_APB1_GRP2_EnableClock\n - * APB1HENR MDIOSEN LL_C1_APB1_GRP2_EnableClock\n - * APB1HENR FDCANEN LL_C1_APB1_GRP2_EnableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP2_PERIPH_CRS - * @arg @ref LL_APB1_GRP2_PERIPH_SWPMI1 - * @arg @ref LL_APB1_GRP2_PERIPH_OPAMP - * @arg @ref LL_APB1_GRP2_PERIPH_MDIOS - * @arg @ref LL_APB1_GRP2_PERIPH_FDCAN - * @arg @ref LL_APB1_GRP2_PERIPH_TIM23 (*) - * @arg @ref LL_APB1_GRP2_PERIPH_TIM24 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_APB1_GRP2_EnableClock(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C1->APB1HENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C1->APB1HENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Check if C1 APB1 peripheral clock is enabled or not - * @rmtoll APB1HENR CRSEN LL_C1_APB1_GRP2_IsEnabledClock\n - * APB1HENR SWPMIEN LL_C1_APB1_GRP2_IsEnabledClock\n - * APB1HENR OPAMPEN LL_C1_APB1_GRP2_IsEnabledClock\n - * APB1HENR MDIOSEN LL_C1_APB1_GRP2_IsEnabledClock\n - * APB1HENR FDCANEN LL_C1_APB1_GRP2_IsEnabledClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP2_PERIPH_CRS - * @arg @ref LL_APB1_GRP2_PERIPH_SWPMI1 - * @arg @ref LL_APB1_GRP2_PERIPH_OPAMP - * @arg @ref LL_APB1_GRP2_PERIPH_MDIOS - * @arg @ref LL_APB1_GRP2_PERIPH_FDCAN - * @arg @ref LL_APB1_GRP2_PERIPH_TIM23 (*) - * @arg @ref LL_APB1_GRP2_PERIPH_TIM24 (*) - * - * (*) value not defined in all devices. - * @retval uint32_t -*/ -__STATIC_INLINE uint32_t LL_C1_APB1_GRP2_IsEnabledClock(uint32_t Periphs) -{ - return ((READ_BIT(RCC_C1->APB1HENR, Periphs) == Periphs) ? 1U : 0U); -} - -/** - * @brief Disable C1 APB1 peripherals clock. - * @rmtoll APB1HENR CRSEN LL_C1_APB1_GRP2_DisableClock\n - * APB1HENR SWPMIEN LL_C1_APB1_GRP2_DisableClock\n - * APB1HENR OPAMPEN LL_C1_APB1_GRP2_DisableClock\n - * APB1HENR MDIOSEN LL_C1_APB1_GRP2_DisableClock\n - * APB1HENR FDCANEN LL_C1_APB1_GRP2_DisableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP2_PERIPH_CRS - * @arg @ref LL_APB1_GRP2_PERIPH_SWPMI1 - * @arg @ref LL_APB1_GRP2_PERIPH_OPAMP - * @arg @ref LL_APB1_GRP2_PERIPH_MDIOS - * @arg @ref LL_APB1_GRP2_PERIPH_FDCAN - * @arg @ref LL_APB1_GRP2_PERIPH_TIM23 (*) - * @arg @ref LL_APB1_GRP2_PERIPH_TIM24 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_APB1_GRP2_DisableClock(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C1->APB1HENR, Periphs); -} - -/** - * @brief Enable C1 APB1 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB1HLPENR CRSLPEN LL_C1_APB1_GRP2_EnableClockSleep\n - * APB1HLPENR SWPMILPEN LL_C1_APB1_GRP2_EnableClockSleep\n - * APB1HLPENR OPAMPLPEN LL_C1_APB1_GRP2_EnableClockSleep\n - * APB1HLPENR MDIOSLPEN LL_C1_APB1_GRP2_EnableClockSleep\n - * APB1HLPENR FDCANLPEN LL_C1_APB1_GRP2_EnableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP2_PERIPH_CRS - * @arg @ref LL_APB1_GRP2_PERIPH_SWPMI1 - * @arg @ref LL_APB1_GRP2_PERIPH_OPAMP - * @arg @ref LL_APB1_GRP2_PERIPH_MDIOS - * @arg @ref LL_APB1_GRP2_PERIPH_FDCAN - * @arg @ref LL_APB1_GRP2_PERIPH_TIM23 (*) - * @arg @ref LL_APB1_GRP2_PERIPH_TIM24 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_APB1_GRP2_EnableClockSleep(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C1->APB1HLPENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C1->APB1HLPENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Disable C1 APB1 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB1HLPENR CRSLPEN LL_C1_APB1_GRP2_DisableClockSleep\n - * APB1HLPENR SWPMILPEN LL_C1_APB1_GRP2_DisableClockSleep\n - * APB1HLPENR OPAMPLPEN LL_C1_APB1_GRP2_DisableClockSleep\n - * APB1HLPENR MDIOSLPEN LL_C1_APB1_GRP2_DisableClockSleep\n - * APB1HLPENR FDCANLPEN LL_C1_APB1_GRP2_DisableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP2_PERIPH_CRS - * @arg @ref LL_APB1_GRP2_PERIPH_SWPMI1 - * @arg @ref LL_APB1_GRP2_PERIPH_OPAMP - * @arg @ref LL_APB1_GRP2_PERIPH_MDIOS - * @arg @ref LL_APB1_GRP2_PERIPH_FDCAN - * @arg @ref LL_APB1_GRP2_PERIPH_TIM23 (*) - * @arg @ref LL_APB1_GRP2_PERIPH_TIM24 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_APB1_GRP2_DisableClockSleep(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C1->APB1HLPENR, Periphs); -} - -/** - * @} - */ - -/** @addtogroup BUS_LL_EF_APB2 APB2 - * @{ - */ - -/** - * @brief Enable C1 APB2 peripherals clock. - * @rmtoll APB2ENR TIM1EN LL_C1_APB2_GRP1_EnableClock\n - * APB2ENR TIM8EN LL_C1_APB2_GRP1_EnableClock\n - * APB2ENR USART1EN LL_C1_APB2_GRP1_EnableClock\n - * APB2ENR USART6EN LL_C1_APB2_GRP1_EnableClock\n - * APB2ENR UART9EN LL_C1_APB2_GRP1_EnableClock\n (*) - * APB2ENR USART10EN LL_C1_APB2_GRP1_EnableClock\n (*) - * APB2ENR SPI1EN LL_C1_APB2_GRP1_EnableClock\n - * APB2ENR SPI4EN LL_C1_APB2_GRP1_EnableClock\n - * APB2ENR TIM15EN LL_C1_APB2_GRP1_EnableClock\n - * APB2ENR TIM16EN LL_C1_APB2_GRP1_EnableClock\n - * APB2ENR TIM17EN LL_C1_APB2_GRP1_EnableClock\n - * APB2ENR SPI5EN LL_C1_APB2_GRP1_EnableClock\n - * APB2ENR SAI1EN LL_C1_APB2_GRP1_EnableClock\n - * APB2ENR SAI2EN LL_C1_APB2_GRP1_EnableClock\n - * APB2ENR SAI3EN LL_C1_APB2_GRP1_EnableClock\n (*) - * APB2ENR DFSDM1EN LL_C1_APB2_GRP1_EnableClock\n - * APB2ENR HRTIMEN LL_C1_APB2_GRP1_EnableClock (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB2_GRP1_PERIPH_TIM1 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM8 - * @arg @ref LL_APB2_GRP1_PERIPH_USART1 - * @arg @ref LL_APB2_GRP1_PERIPH_USART6 - * @arg @ref LL_APB2_GRP1_PERIPH_UART9 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_USART10 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SPI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI4 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM15 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM16 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM17 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI5 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI2 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SAI3 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_DFSDM1 - * @arg @ref LL_APB2_GRP1_PERIPH_HRTIM (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_APB2_GRP1_EnableClock(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C1->APB2ENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C1->APB2ENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Check if C1 APB2 peripheral clock is enabled or not - * @rmtoll APB2ENR TIM1EN LL_C1_APB2_GRP1_IsEnabledClock\n - * APB2ENR TIM8EN LL_C1_APB2_GRP1_IsEnabledClock\n - * APB2ENR USART1EN LL_C1_APB2_GRP1_IsEnabledClock\n - * APB2ENR USART6EN LL_C1_APB2_GRP1_IsEnabledClock\n - * APB2ENR UART9EN LL_C1_APB2_GRP1_IsEnabledClock\n (*) - * APB2ENR USART10EN LL_C1_APB2_GRP1_IsEnabledClock\n (*) - * APB2ENR SPI1EN LL_C1_APB2_GRP1_IsEnabledClock\n - * APB2ENR SPI4EN LL_C1_APB2_GRP1_IsEnabledClock\n - * APB2ENR TIM15EN LL_C1_APB2_GRP1_IsEnabledClock\n - * APB2ENR TIM16EN LL_C1_APB2_GRP1_IsEnabledClock\n - * APB2ENR TIM17EN LL_C1_APB2_GRP1_IsEnabledClock\n - * APB2ENR SPI5EN LL_C1_APB2_GRP1_IsEnabledClock\n - * APB2ENR SAI1EN LL_C1_APB2_GRP1_IsEnabledClock\n - * APB2ENR SAI2EN LL_C1_APB2_GRP1_IsEnabledClock\n - * APB2ENR SAI3EN LL_C1_APB2_GRP1_IsEnabledClock\n (*) - * APB2ENR DFSDM1EN LL_C1_APB2_GRP1_IsEnabledClock\n - * APB2ENR HRTIMEN LL_C1_APB2_GRP1_IsEnabledClock (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB2_GRP1_PERIPH_TIM1 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM8 - * @arg @ref LL_APB2_GRP1_PERIPH_USART1 - * @arg @ref LL_APB2_GRP1_PERIPH_USART6 - * @arg @ref LL_APB2_GRP1_PERIPH_UART9 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_USART10 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SPI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI4 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM15 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM16 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM17 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI5 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI2 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SAI3 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_DFSDM1 - * @arg @ref LL_APB2_GRP1_PERIPH_HRTIM (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE uint32_t LL_C1_APB2_GRP1_IsEnabledClock(uint32_t Periphs) -{ - return ((READ_BIT(RCC_C1->APB2ENR, Periphs) == Periphs) ? 1U : 0U); -} - -/** - * @brief Disable C1 APB2 peripherals clock. - * @rmtoll APB2ENR TIM1EN LL_C1_APB2_GRP1_DisableClock\n - * APB2ENR TIM8EN LL_C1_APB2_GRP1_DisableClock\n - * APB2ENR USART1EN LL_C1_APB2_GRP1_DisableClock\n - * APB2ENR USART6EN LL_C1_APB2_GRP1_DisableClock\n - * APB2ENR UART9EN LL_C1_APB2_GRP1_DisableClock\n (*) - * APB2ENR USART10EN LL_C1_APB2_GRP1_DisableClock\n (*) - * APB2ENR SPI1EN LL_C1_APB2_GRP1_DisableClock\n - * APB2ENR SPI4EN LL_C1_APB2_GRP1_DisableClock\n - * APB2ENR TIM15EN LL_C1_APB2_GRP1_DisableClock\n - * APB2ENR TIM16EN LL_C1_APB2_GRP1_DisableClock\n - * APB2ENR TIM17EN LL_C1_APB2_GRP1_DisableClock\n - * APB2ENR SPI5EN LL_C1_APB2_GRP1_DisableClock\n - * APB2ENR SAI1EN LL_C1_APB2_GRP1_DisableClock\n - * APB2ENR SAI2EN LL_C1_APB2_GRP1_DisableClock\n - * APB2ENR SAI3EN LL_C1_APB2_GRP1_DisableClock\n (*) - * APB2ENR DFSDM1EN LL_C1_APB2_GRP1_DisableClock\n - * APB2ENR HRTIMEN LL_C1_APB2_GRP1_DisableClock (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB2_GRP1_PERIPH_TIM1 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM8 - * @arg @ref LL_APB2_GRP1_PERIPH_USART1 - * @arg @ref LL_APB2_GRP1_PERIPH_USART6 - * @arg @ref LL_APB2_GRP1_PERIPH_UART9 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_USART10 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SPI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI4 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM15 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM16 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM17 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI5 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI2 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SAI3 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_DFSDM1 - * @arg @ref LL_APB2_GRP1_PERIPH_HRTIM (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_APB2_GRP1_DisableClock(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C1->APB2ENR, Periphs); -} - -/** - * @brief Enable C1 APB2 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB2LPENR TIM1LPEN LL_C1_APB2_GRP1_EnableClockSleep\n - * APB2LPENR TIM8LPEN LL_C1_APB2_GRP1_EnableClockSleep\n - * APB2LPENR USART1LPEN LL_C1_APB2_GRP1_EnableClockSleep\n - * APB2LPENR USART6LPEN LL_C1_APB2_GRP1_EnableClockSleep\n - * APB2ENR UART9EN LL_C1_APB2_GRP1_EnableClockSleep\n (*) - * APB2ENR USART10EN LL_C1_APB2_GRP1_EnableClockSleep\n (*) - * APB2LPENR SPI1LPEN LL_C1_APB2_GRP1_EnableClockSleep\n - * APB2LPENR SPI4LPEN LL_C1_APB2_GRP1_EnableClockSleep\n - * APB2LPENR TIM15LPEN LL_C1_APB2_GRP1_EnableClockSleep\n - * APB2LPENR TIM16LPEN LL_C1_APB2_GRP1_EnableClockSleep\n - * APB2LPENR TIM17LPEN LL_C1_APB2_GRP1_EnableClockSleep\n - * APB2LPENR SPI5LPEN LL_C1_APB2_GRP1_EnableClockSleep\n - * APB2LPENR SAI1LPEN LL_C1_APB2_GRP1_EnableClockSleep\n - * APB2LPENR SAI2LPEN LL_C1_APB2_GRP1_EnableClockSleep\n - * APB2LPENR SAI3LPEN LL_C1_APB2_GRP1_EnableClockSleep\n (*) - * APB2LPENR DFSDM1LPEN LL_C1_APB2_GRP1_EnableClockSleep\n - * APB2LPENR HRTIMLPEN LL_C1_APB2_GRP1_EnableClockSleep (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB2_GRP1_PERIPH_TIM1 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM8 - * @arg @ref LL_APB2_GRP1_PERIPH_USART1 - * @arg @ref LL_APB2_GRP1_PERIPH_USART6 - * @arg @ref LL_APB2_GRP1_PERIPH_UART9 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_USART10 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SPI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI4 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM15 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM16 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM17 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI5 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI2 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SAI3 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_DFSDM1 - * @arg @ref LL_APB2_GRP1_PERIPH_HRTIM (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_APB2_GRP1_EnableClockSleep(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C1->APB2LPENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C1->APB2LPENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Disable C1 APB2 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB2LPENR TIM1LPEN LL_C1_APB2_GRP1_DisableClockSleep\n - * APB2LPENR TIM8LPEN LL_C1_APB2_GRP1_DisableClockSleep\n - * APB2LPENR USART1LPEN LL_C1_APB2_GRP1_DisableClockSleep\n - * APB2LPENR UART9LPEN LL_C1_APB2_GRP1_DisableClockSleep\n (*) - * APB2LPENR USART10LPEN LL_C1_APB2_GRP1_DisableClockSleep\n (*) - * APB2LPENR USART6LPEN LL_C1_APB2_GRP1_DisableClockSleep\n - * APB2LPENR SPI1LPEN LL_C1_APB2_GRP1_DisableClockSleep\n - * APB2LPENR SPI4LPEN LL_C1_APB2_GRP1_DisableClockSleep\n - * APB2LPENR TIM15LPEN LL_C1_APB2_GRP1_DisableClockSleep\n - * APB2LPENR TIM16LPEN LL_C1_APB2_GRP1_DisableClockSleep\n - * APB2LPENR TIM17LPEN LL_C1_APB2_GRP1_DisableClockSleep\n - * APB2LPENR SPI5LPEN LL_C1_APB2_GRP1_DisableClockSleep\n - * APB2LPENR SAI1LPEN LL_C1_APB2_GRP1_DisableClockSleep\n - * APB2LPENR SAI2LPEN LL_C1_APB2_GRP1_DisableClockSleep\n - * APB2LPENR SAI3LPEN LL_C1_APB2_GRP1_DisableClockSleep\n (*) - * APB2LPENR DFSDM1LPEN LL_C1_APB2_GRP1_DisableClockSleep\n - * APB2LPENR HRTIMLPEN LL_C1_APB2_GRP1_DisableClockSleep (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB2_GRP1_PERIPH_TIM1 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM8 - * @arg @ref LL_APB2_GRP1_PERIPH_USART1 - * @arg @ref LL_APB2_GRP1_PERIPH_USART6 - * @arg @ref LL_APB2_GRP1_PERIPH_UART9 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_USART10 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SPI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI4 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM15 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM16 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM17 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI5 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI2 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SAI3 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_DFSDM1 - * @arg @ref LL_APB2_GRP1_PERIPH_HRTIM (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_APB2_GRP1_DisableClockSleep(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C1->APB2LPENR, Periphs); -} - -/** - * @} - */ - -/** @addtogroup BUS_LL_EF_APB4 APB4 - * @{ - */ - -/** - * @brief Enable C1 APB4 peripherals clock. - * @rmtoll APB4ENR SYSCFGEN LL_C1_APB4_GRP1_EnableClock\n - * APB4ENR LPUART1EN LL_C1_APB4_GRP1_EnableClock\n - * APB4ENR SPI6EN LL_C1_APB4_GRP1_EnableClock\n - * APB4ENR I2C4EN LL_C1_APB4_GRP1_EnableClock\n - * APB4ENR LPTIM2EN LL_C1_APB4_GRP1_EnableClock\n - * APB4ENR LPTIM3EN LL_C1_APB4_GRP1_EnableClock\n - * APB4ENR LPTIM4EN LL_C1_APB4_GRP1_EnableClock\n (*) - * APB4ENR LPTIM5EN LL_C1_APB4_GRP1_EnableClock\n (*) - * APB4ENR DAC2EN LL_C1_APB4_GRP1_EnableClock\n (*) - * APB4ENR COMP12EN LL_C1_APB4_GRP1_EnableClock\n - * APB4ENR VREFEN LL_C1_APB4_GRP1_EnableClock\n - * APB4ENR RTCAPBEN LL_C1_APB4_GRP1_EnableClock\n - * APB4ENR SAI4EN LL_C1_APB4_GRP1_EnableClock\n (*) - * APB4ENR DTSEN LL_C1_APB4_GRP1_EnableClock\n (*) - * APB4ENR DFSDM2EN LL_C1_APB4_GRP1_EnableClock (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB4_GRP1_PERIPH_SYSCFG - * @arg @ref LL_APB4_GRP1_PERIPH_LPUART1 - * @arg @ref LL_APB4_GRP1_PERIPH_SPI6 - * @arg @ref LL_APB4_GRP1_PERIPH_I2C4 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM2 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM3 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM5 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_COMP12 - * @arg @ref LL_APB4_GRP1_PERIPH_VREF - * @arg @ref LL_APB4_GRP1_PERIPH_RTCAPB - * @arg @ref LL_APB4_GRP1_PERIPH_SAI4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DTS (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DFSDM2 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_APB4_GRP1_EnableClock(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C1->APB4ENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C1->APB4ENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Check if C1 APB4 peripheral clock is enabled or not - * @rmtoll APB4ENR SYSCFGEN LL_C1_APB4_GRP1_IsEnabledClock\n - * APB4ENR LPUART1EN LL_C1_APB4_GRP1_IsEnabledClock\n - * APB4ENR SPI6EN LL_C1_APB4_GRP1_IsEnabledClock\n - * APB4ENR I2C4EN LL_C1_APB4_GRP1_IsEnabledClock\n - * APB4ENR LPTIM2EN LL_C1_APB4_GRP1_IsEnabledClock\n - * APB4ENR LPTIM3EN LL_C1_APB4_GRP1_IsEnabledClock\n - * APB4ENR LPTIM4EN LL_C1_APB4_GRP1_IsEnabledClock\n (*) - * APB4ENR LPTIM5EN LL_C1_APB4_GRP1_IsEnabledClock\n (*) - * APB4ENR COMP12EN LL_C1_APB4_GRP1_IsEnabledClock\n - * APB4ENR VREFEN LL_C1_APB4_GRP1_IsEnabledClock\n - * APB4ENR RTCAPBEN LL_C1_APB4_GRP1_IsEnabledClock\n - * APB4ENR SAI4EN LL_C1_APB4_GRP1_IsEnabledClock\n (*) - * APB4ENR DTSEN LL_C1_APB4_GRP1_IsEnabledClock\n (*) - * APB4ENR DFSDM2EN LL_C1_APB4_GRP1_IsEnabledClock (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB4_GRP1_PERIPH_SYSCFG - * @arg @ref LL_APB4_GRP1_PERIPH_LPUART1 - * @arg @ref LL_APB4_GRP1_PERIPH_SPI6 - * @arg @ref LL_APB4_GRP1_PERIPH_I2C4 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM2 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM3 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM5 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_COMP12 - * @arg @ref LL_APB4_GRP1_PERIPH_VREF - * @arg @ref LL_APB4_GRP1_PERIPH_SAI4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DTS (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DFSDM2 (*) - * - * (*) value not defined in all devices. - * @retval uint32_t -*/ -__STATIC_INLINE uint32_t LL_C1_APB4_GRP1_IsEnabledClock(uint32_t Periphs) -{ - return ((READ_BIT(RCC_C1->APB4ENR, Periphs) == Periphs) ? 1U : 0U); -} - -/** - * @brief Disable C1 APB4 peripherals clock. - * @rmtoll APB4ENR SYSCFGEN LL_C1_APB4_GRP1_DisableClock\n - * APB4ENR LPUART1EN LL_C1_APB4_GRP1_DisableClock\n - * APB4ENR SPI6EN LL_C1_APB4_GRP1_DisableClock\n - * APB4ENR I2C4EN LL_C1_APB4_GRP1_DisableClock\n - * APB4ENR LPTIM2EN LL_C1_APB4_GRP1_DisableClock\n - * APB4ENR LPTIM3EN LL_C1_APB4_GRP1_DisableClock\n - * APB4ENR LPTIM4EN LL_C1_APB4_GRP1_DisableClock\n (*) - * APB4ENR LPTIM5EN LL_C1_APB4_GRP1_DisableClock\n (*) - * APB4ENR COMP12EN LL_C1_APB4_GRP1_DisableClock\n - * APB4ENR VREFEN LL_C1_APB4_GRP1_DisableClock\n - * APB4ENR RTCAPBEN LL_C1_APB4_GRP1_DisableClock\n - * APB4ENR SAI4EN LL_C1_APB4_GRP1_DisableClock\n (*) - * APB4ENR DTSEN LL_C1_APB4_GRP1_DisableClock\n (*) - * APB4ENR DFSDM2EN LL_C1_APB4_GRP1_DisableClock (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB4_GRP1_PERIPH_SYSCFG - * @arg @ref LL_APB4_GRP1_PERIPH_LPUART1 - * @arg @ref LL_APB4_GRP1_PERIPH_SPI6 - * @arg @ref LL_APB4_GRP1_PERIPH_I2C4 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM2 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM3 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM5 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_COMP12 - * @arg @ref LL_APB4_GRP1_PERIPH_VREF - * @arg @ref LL_APB4_GRP1_PERIPH_RTCAPB - * @arg @ref LL_APB4_GRP1_PERIPH_SAI4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DTS (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DFSDM2 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_APB4_GRP1_DisableClock(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C1->APB4ENR, Periphs); -} - -/** - * @brief Enable C1 APB4 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB4LPENR SYSCFGLPEN LL_C1_APB4_GRP1_EnableClockSleep\n - * APB4LPENR LPUART1LPEN LL_C1_APB4_GRP1_EnableClockSleep\n - * APB4LPENR SPI6LPEN LL_C1_APB4_GRP1_EnableClockSleep\n - * APB4LPENR I2C4LPEN LL_C1_APB4_GRP1_EnableClockSleep\n - * APB4LPENR LPTIM2LPEN LL_C1_APB4_GRP1_EnableClockSleep\n - * APB4LPENR LPTIM3LPEN LL_C1_APB4_GRP1_EnableClockSleep\n (*) - * APB4LPENR LPTIM4LPEN LL_C1_APB4_GRP1_EnableClockSleep\n (*) - * APB4LPENR LPTIM5LPEN LL_C1_APB4_GRP1_EnableClockSleep\n - * APB4LPENR COMP12LPEN LL_C1_APB4_GRP1_EnableClockSleep\n - * APB4LPENR VREFLPEN LL_C1_APB4_GRP1_EnableClockSleep\n - * APB4LPENR RTCAPBLPEN LL_C1_APB4_GRP1_EnableClockSleep\n - * APB4LPENR SAI4LPEN LL_C1_APB4_GRP1_EnableClockSleep\n (*) - * APB4ENR DTSLPEN LL_C1_APB4_GRP1_EnableClockSleep\n (*) - * APB4ENR DFSDM2LPEN LL_C1_APB4_GRP1_EnableClockSleep (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB4_GRP1_PERIPH_SYSCFG - * @arg @ref LL_APB4_GRP1_PERIPH_LPUART1 - * @arg @ref LL_APB4_GRP1_PERIPH_SPI6 - * @arg @ref LL_APB4_GRP1_PERIPH_I2C4 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM2 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM3 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM5 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_COMP12 - * @arg @ref LL_APB4_GRP1_PERIPH_VREF - * @arg @ref LL_APB4_GRP1_PERIPH_RTCAPB - * @arg @ref LL_APB4_GRP1_PERIPH_SAI4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DTS (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DFSDM2 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_APB4_GRP1_EnableClockSleep(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C1->APB4LPENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C1->APB4LPENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Disable C1 APB4 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB4LPENR SYSCFGLPEN LL_C1_APB4_GRP1_DisableClockSleep\n - * APB4LPENR LPUART1LPEN LL_C1_APB4_GRP1_DisableClockSleep\n - * APB4LPENR SPI6LPEN LL_C1_APB4_GRP1_DisableClockSleep\n - * APB4LPENR I2C4LPEN LL_C1_APB4_GRP1_DisableClockSleep\n - * APB4LPENR LPTIM2LPEN LL_C1_APB4_GRP1_DisableClockSleep\n - * APB4LPENR LPTIM3LPEN LL_C1_APB4_GRP1_DisableClockSleep\n - * APB4LPENR LPTIM4LPEN LL_C1_APB4_GRP1_DisableClockSleep\n - * APB4LPENR LPTIM5LPEN LL_C1_APB4_GRP1_DisableClockSleep\n - * APB4LPENR COMP12LPEN LL_C1_APB4_GRP1_DisableClockSleep\n - * APB4LPENR VREFLPEN LL_C1_APB4_GRP1_DisableClockSleep\n - * APB4LPENR RTCAPBLPEN LL_C1_APB4_GRP1_DisableClockSleep\n - * APB4LPENR SAI4LPEN LL_C1_APB4_GRP1_DisableClockSleep\n (*) - * APB4ENR DTSLPEN LL_C1_APB4_GRP1_DisableClockSleep\n (*) - * APB4ENR DFSDM2LPEN LL_C1_APB4_GRP1_DisableClockSleep (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB4_GRP1_PERIPH_SYSCFG - * @arg @ref LL_APB4_GRP1_PERIPH_LPUART1 - * @arg @ref LL_APB4_GRP1_PERIPH_SPI6 - * @arg @ref LL_APB4_GRP1_PERIPH_I2C4 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM2 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM3 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM5 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_COMP12 - * @arg @ref LL_APB4_GRP1_PERIPH_VREF - * @arg @ref LL_APB4_GRP1_PERIPH_RTCAPB - * @arg @ref LL_APB4_GRP1_PERIPH_SAI4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DTS (*) - * @arg @ref LL_APB4_GRP1_PERIPH_DFSDM2 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C1_APB4_GRP1_DisableClockSleep(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C1->APB4LPENR, Periphs); -} - -/** - * @} - */ - -/** @addtogroup BUS_LL_EF_AHB3 AHB3 - * @{ - */ - -/** - * @brief Enable C2 AHB3 peripherals clock. - * @rmtoll AHB3ENR MDMAEN LL_C2_AHB3_GRP1_EnableClock\n - * AHB3ENR DMA2DEN LL_C2_AHB3_GRP1_EnableClock\n - * AHB3ENR JPGDECEN LL_C2_AHB3_GRP1_EnableClock\n - * AHB3ENR FMCEN LL_C2_AHB3_GRP1_EnableClock\n - * AHB3ENR QSPIEN LL_C2_AHB3_GRP1_EnableClock\n - * AHB3ENR SDMMC1EN LL_C2_AHB3_GRP1_EnableClock\n - * AHB3ENR FLASHEN LL_C2_AHB3_GRP1_EnableClock\n - * AHB3ENR DTCM1EN LL_C2_AHB3_GRP1_EnableClock\n - * AHB3ENR DTCM2EN LL_C2_AHB3_GRP1_EnableClock\n - * AHB3ENR ITCMEN LL_C2_AHB3_GRP1_EnableClock\n - * AHB3ENR AXISRAMEN LL_C2_AHB3_GRP1_EnableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB3_GRP1_PERIPH_MDMA - * @arg @ref LL_AHB3_GRP1_PERIPH_DMA2D - * @arg @ref LL_AHB3_GRP1_PERIPH_JPGDEC (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_FMC - * @arg @ref LL_AHB3_GRP1_PERIPH_QSPI (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_SDMMC1 - * @arg @ref LL_AHB3_GRP1_PERIPH_FLASH - * @arg @ref LL_AHB3_GRP1_PERIPH_DTCM1 - * @arg @ref LL_AHB3_GRP1_PERIPH_DTCM2 - * @arg @ref LL_AHB3_GRP1_PERIPH_ITCM - * @arg @ref LL_AHB3_GRP1_PERIPH_AXISRAM - * @retval None -*/ -__STATIC_INLINE void LL_C2_AHB3_GRP1_EnableClock(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C2->AHB3ENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C2->AHB3ENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Check if C2 AHB3 peripheral clock is enabled or not - * @rmtoll AHB3ENR MDMAEN LL_C2_AHB3_GRP1_IsEnabledClock\n - * AHB3ENR DMA2DEN LL_C2_AHB3_GRP1_IsEnabledClock\n - * AHB3ENR JPGDECEN LL_C2_AHB3_GRP1_IsEnabledClock\n - * AHB3ENR FMCEN LL_C2_AHB3_GRP1_IsEnabledClock\n - * AHB3ENR QSPIEN LL_C2_AHB3_GRP1_IsEnabledClock\n - * AHB3ENR SDMMC1EN LL_C2_AHB3_GRP1_IsEnabledClock\n - * AHB3ENR FLASHEN LL_C2_AHB3_GRP1_IsEnabledClock\n - * AHB3ENR DTCM1EN LL_C2_AHB3_GRP1_IsEnabledClock\n - * AHB3ENR DTCM2EN LL_C2_AHB3_GRP1_IsEnabledClock\n - * AHB3ENR ITCMEN LL_C2_AHB3_GRP1_IsEnabledClock\n - * AHB3ENR AXISRAMEN LL_C2_AHB3_GRP1_IsEnabledClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB3_GRP1_PERIPH_MDMA - * @arg @ref LL_AHB3_GRP1_PERIPH_DMA2D - * @arg @ref LL_AHB3_GRP1_PERIPH_JPGDEC (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_FMC - * @arg @ref LL_AHB3_GRP1_PERIPH_QSPI (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_SDMMC1 - * @arg @ref LL_AHB3_GRP1_PERIPH_FLASH - * @arg @ref LL_AHB3_GRP1_PERIPH_DTCM1 - * @arg @ref LL_AHB3_GRP1_PERIPH_DTCM2 - * @arg @ref LL_AHB3_GRP1_PERIPH_ITCM - * @arg @ref LL_AHB3_GRP1_PERIPH_AXISRAM - * @retval uint32_t -*/ -__STATIC_INLINE uint32_t LL_C2_AHB3_GRP1_IsEnabledClock(uint32_t Periphs) -{ - return ((READ_BIT(RCC_C2->AHB3ENR, Periphs) == Periphs) ? 1U : 0U); -} - -/** - * @brief Disable C2 AHB3 peripherals clock. - * @rmtoll AHB3ENR MDMAEN LL_C2_AHB3_GRP1_DisableClock\n - * AHB3ENR DMA2DEN LL_C2_AHB3_GRP1_DisableClock\n - * AHB3ENR JPGDECEN LL_C2_AHB3_GRP1_DisableClock\n - * AHB3ENR FMCEN LL_C2_AHB3_GRP1_DisableClock\n - * AHB3ENR QSPIEN LL_C2_AHB3_GRP1_DisableClock\n - * AHB3ENR SDMMC1EN LL_C2_AHB3_GRP1_DisableClock\n - * AHB3ENR FLASHEN LL_C2_AHB3_GRP1_DisableClock\n - * AHB3ENR DTCM1EN LL_C2_AHB3_GRP1_DisableClock\n - * AHB3ENR DTCM2EN LL_C2_AHB3_GRP1_DisableClock\n - * AHB3ENR ITCMEN LL_C2_AHB3_GRP1_DisableClock\n - * AHB3ENR AXISRAMEN LL_C2_AHB3_GRP1_DisableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB3_GRP1_PERIPH_MDMA - * @arg @ref LL_AHB3_GRP1_PERIPH_DMA2D - * @arg @ref LL_AHB3_GRP1_PERIPH_JPGDEC (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_FMC - * @arg @ref LL_AHB3_GRP1_PERIPH_QSPI (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_SDMMC1 - * @arg @ref LL_AHB3_GRP1_PERIPH_FLASH - * @arg @ref LL_AHB3_GRP1_PERIPH_DTCM1 - * @arg @ref LL_AHB3_GRP1_PERIPH_DTCM2 - * @arg @ref LL_AHB3_GRP1_PERIPH_ITCM - * @arg @ref LL_AHB3_GRP1_PERIPH_AXISRAM - * @retval None -*/ -__STATIC_INLINE void LL_C2_AHB3_GRP1_DisableClock(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C2->AHB3ENR, Periphs); -} - -/** - * @brief Enable C2 AHB3 peripherals clock during Low Power (Sleep) mode. - * @rmtoll AHB3LPENR MDMALPEN LL_C2_AHB3_GRP1_EnableClockSleep\n - * AHB3LPENR DMA2DLPEN LL_C2_AHB3_GRP1_EnableClockSleep\n - * AHB3LPENR JPGDECLPEN LL_C2_AHB3_GRP1_EnableClockSleep\n - * AHB3LPENR FMCLPEN LL_C2_AHB3_GRP1_EnableClockSleep\n - * AHB3LPENR QSPILPEN LL_C2_AHB3_GRP1_EnableClockSleep\n - * AHB3LPENR SDMMC1LPEN LL_C2_AHB3_GRP1_EnableClockSleep\n - * AHB3LPENR FLASHLPEN LL_C2_AHB3_GRP1_EnableClockSleep\n - * AHB3LPENR DTCM1LPEN LL_C2_AHB3_GRP1_EnableClockSleep\n - * AHB3LPENR DTCM2LPEN LL_C2_AHB3_GRP1_EnableClockSleep\n - * AHB3LPENR ITCMLPEN LL_C2_AHB3_GRP1_EnableClockSleep\n - * AHB3LPENR AXISRAMLPEN LL_C2_AHB3_GRP1_EnableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB3_GRP1_PERIPH_DMA2D - * @arg @ref LL_AHB3_GRP1_PERIPH_JPGDEC (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_FMC - * @arg @ref LL_AHB3_GRP1_PERIPH_QSPI (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_SDMMC1 - * @arg @ref LL_AHB3_GRP1_PERIPH_FLASH - * @arg @ref LL_AHB3_GRP1_PERIPH_DTCM1 - * @arg @ref LL_AHB3_GRP1_PERIPH_DTCM2 - * @arg @ref LL_AHB3_GRP1_PERIPH_ITCM - * @arg @ref LL_AHB3_GRP1_PERIPH_AXISRAM - * @retval None -*/ -__STATIC_INLINE void LL_C2_AHB3_GRP1_EnableClockSleep(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C2->AHB3LPENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C2->AHB3LPENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Disable C2 AHB3 peripherals clock during Low Power (Sleep) mode. - * @rmtoll AHB3LPENR MDMALPEN LL_C2_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR DMA2DLPEN LL_C2_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR JPGDECLPEN LL_C2_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR FMCLPEN LL_C2_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR QSPILPEN LL_C2_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR SDMMC1LPEN LL_C2_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR FLASHLPEN LL_C2_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR DTCM1LPEN LL_C2_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR DTCM2LPEN LL_C2_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR ITCMLPEN LL_C2_AHB3_GRP1_DisableClockSleep\n - * AHB3LPENR AXISRAMLPEN LL_C2_AHB3_GRP1_DisableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB3_GRP1_PERIPH_DMA2D - * @arg @ref LL_AHB3_GRP1_PERIPH_JPGDEC (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_FMC - * @arg @ref LL_AHB3_GRP1_PERIPH_QSPI (*) - * @arg @ref LL_AHB3_GRP1_PERIPH_SDMMC1 - * @arg @ref LL_AHB3_GRP1_PERIPH_FLASH - * @arg @ref LL_AHB3_GRP1_PERIPH_DTCM1 - * @arg @ref LL_AHB3_GRP1_PERIPH_DTCM2 - * @arg @ref LL_AHB3_GRP1_PERIPH_ITCM - * @arg @ref LL_AHB3_GRP1_PERIPH_AXISRAM - * @retval None -*/ -__STATIC_INLINE void LL_C2_AHB3_GRP1_DisableClockSleep(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C2->AHB3LPENR, Periphs); -} - -/** - * @} - */ - -/** @addtogroup BUS_LL_EF_AHB1 AHB1 - * @{ - */ - -/** - * @brief Enable C2 AHB1 peripherals clock. - * @rmtoll AHB1ENR DMA1EN LL_C2_AHB1_GRP1_EnableClock\n - * AHB1ENR DMA2EN LL_C2_AHB1_GRP1_EnableClock\n - * AHB1ENR ADC12EN LL_C2_AHB1_GRP1_EnableClock\n - * AHB1ENR ARTEN LL_C2_AHB1_GRP1_EnableClock\n - * AHB1ENR ETH1MACEN LL_C2_AHB1_GRP1_EnableClock\n - * AHB1ENR ETH1TXEN LL_C2_AHB1_GRP1_EnableClock\n - * AHB1ENR ETH1RXEN LL_C2_AHB1_GRP1_EnableClock\n - * AHB1ENR USB1OTGHSEN LL_C2_AHB1_GRP1_EnableClock\n - * AHB1ENR USB1OTGHSULPIEN LL_C2_AHB1_GRP1_EnableClock\n - * AHB1ENR USB2OTGHSEN LL_C2_AHB1_GRP1_EnableClock\n - * AHB1ENR USB2OTGHSULPIEN LL_C2_AHB1_GRP1_EnableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA1 - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA2 - * @arg @ref LL_AHB1_GRP1_PERIPH_ADC12 - * @arg @ref LL_AHB1_GRP1_PERIPH_ART (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1MAC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1TX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1RX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHS - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHSULPI - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHS (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHSULPI (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C2_AHB1_GRP1_EnableClock(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C2->AHB1ENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C2->AHB1ENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Check if C2 AHB1 peripheral clock is enabled or not - * @rmtoll AHB1ENR DMA1EN LL_C2_AHB1_GRP1_IsEnabledClock\n - * AHB1ENR DMA2EN LL_C2_AHB1_GRP1_IsEnabledClock\n - * AHB1ENR ADC12EN LL_C2_AHB1_GRP1_IsEnabledClock\n - * AHB1ENR ARTEN LL_C2_AHB1_GRP1_IsEnabledClock\n - * AHB1ENR ETH1MACEN LL_C2_AHB1_GRP1_IsEnabledClock\n - * AHB1ENR ETH1TXEN LL_C2_AHB1_GRP1_IsEnabledClock\n - * AHB1ENR ETH1RXEN LL_C2_AHB1_GRP1_IsEnabledClock\n - * AHB1ENR USB1OTGHSEN LL_C2_AHB1_GRP1_IsEnabledClock\n - * AHB1ENR USB1OTGHSULPIEN LL_C2_AHB1_GRP1_IsEnabledClock\n - * AHB1ENR USB2OTGHSEN LL_C2_AHB1_GRP1_IsEnabledClock\n - * AHB1ENR USB2OTGHSULPIEN LL_C2_AHB1_GRP1_IsEnabledClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA1 - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA2 - * @arg @ref LL_AHB1_GRP1_PERIPH_ADC12 - * @arg @ref LL_AHB1_GRP1_PERIPH_ART (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1MAC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1TX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1RX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHS - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHSULPI - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHS (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHSULPI (*) - * - * (*) value not defined in all devices. - * @retval uint32_t -*/ -__STATIC_INLINE uint32_t LL_C2_AHB1_GRP1_IsEnabledClock(uint32_t Periphs) -{ - return ((READ_BIT(RCC_C2->AHB1ENR, Periphs) == Periphs) ? 1U : 0U); -} - -/** - * @brief Disable C2 AHB1 peripherals clock. - * @rmtoll AHB1ENR DMA1EN LL_C2_AHB1_GRP1_DisableClock\n - * AHB1ENR DMA2EN LL_C2_AHB1_GRP1_DisableClock\n - * AHB1ENR ADC12EN LL_C2_AHB1_GRP1_DisableClock\n - * AHB1ENR ARTEN LL_C2_AHB1_GRP1_DisableClock\n - * AHB1ENR ETH1MACEN LL_C2_AHB1_GRP1_DisableClock\n - * AHB1ENR ETH1TXEN LL_C2_AHB1_GRP1_DisableClock\n - * AHB1ENR ETH1RXEN LL_C2_AHB1_GRP1_DisableClock\n - * AHB1ENR USB1OTGHSEN LL_C2_AHB1_GRP1_DisableClock\n - * AHB1ENR USB1OTGHSULPIEN LL_C2_AHB1_GRP1_DisableClock\n - * AHB1ENR USB2OTGHSEN LL_C2_AHB1_GRP1_DisableClock\n - * AHB1ENR USB2OTGHSULPIEN LL_C2_AHB1_GRP1_DisableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA1 - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA2 - * @arg @ref LL_AHB1_GRP1_PERIPH_ADC12 - * @arg @ref LL_AHB1_GRP1_PERIPH_ART (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1MAC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1TX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1RX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHS - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHSULPI - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHS (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHSULPI (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C2_AHB1_GRP1_DisableClock(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C2->AHB1ENR, Periphs); -} - -/** - * @brief Enable C2 AHB1 peripherals clock during Low Power (Sleep) mode. - * @rmtoll AHB1LPENR DMA1LPEN LL_C2_AHB1_GRP1_EnableClockSleep\n - * AHB1LPENR DMA2LPEN LL_C2_AHB1_GRP1_EnableClockSleep\n - * AHB1LPENR ADC12LPEN LL_C2_AHB1_GRP1_EnableClockSleep\n - * AHB1LPENR ARTLPEN LL_C2_AHB1_GRP1_EnableClockSleep\n - * AHB1LPENR ETH1MACLPEN LL_C2_AHB1_GRP1_EnableClockSleep\n - * AHB1LPENR ETH1TXLPEN LL_C2_AHB1_GRP1_EnableClockSleep\n - * AHB1LPENR ETH1RXLPEN LL_C2_AHB1_GRP1_EnableClockSleep\n - * AHB1LPENR USB1OTGHSLPEN LL_C2_AHB1_GRP1_EnableClockSleep\n - * AHB1LPENR USB1OTGHSULPILPEN LL_C2_AHB1_GRP1_EnableClockSleep\n - * AHB1LPENR USB2OTGHSLPEN LL_C2_AHB1_GRP1_EnableClockSleep\n - * AHB1LPENR USB2OTGHSULPILPEN LL_C2_AHB1_GRP1_EnableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA1 - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA2 - * @arg @ref LL_AHB1_GRP1_PERIPH_ADC12 - * @arg @ref LL_AHB1_GRP1_PERIPH_ART (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1MAC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1TX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1RX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHS - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHSULPI - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHS (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHSULPI (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C2_AHB1_GRP1_EnableClockSleep(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C2->AHB1LPENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C2->AHB1LPENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Disable C2 AHB1 peripherals clock during Low Power (Sleep) mode. - * @rmtoll AHB1LPENR DMA1LPEN LL_C2_AHB1_GRP1_DisableClockSleep\n - * AHB1LPENR DMA2LPEN LL_C2_AHB1_GRP1_DisableClockSleep\n - * AHB1LPENR ADC12LPEN LL_C2_AHB1_GRP1_DisableClockSleep\n - * AHB1LPENR ARTLPEN LL_C2_AHB1_GRP1_DisableClockSleep\n - * AHB1LPENR ETH1MACLPEN LL_C2_AHB1_GRP1_DisableClockSleep\n - * AHB1LPENR ETH1TXLPEN LL_C2_AHB1_GRP1_DisableClockSleep\n - * AHB1LPENR ETH1RXLPEN LL_C2_AHB1_GRP1_DisableClockSleep\n - * AHB1LPENR USB1OTGHSLPEN LL_C2_AHB1_GRP1_DisableClockSleep\n - * AHB1LPENR USB1OTGHSULPILPEN LL_C2_AHB1_GRP1_DisableClockSleep\n - * AHB1LPENR USB2OTGHSLPEN LL_C2_AHB1_GRP1_DisableClockSleep\n - * AHB1LPENR USB2OTGHSULPILPEN LL_C2_AHB1_GRP1_DisableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA1 - * @arg @ref LL_AHB1_GRP1_PERIPH_DMA2 - * @arg @ref LL_AHB1_GRP1_PERIPH_ADC12 - * @arg @ref LL_AHB1_GRP1_PERIPH_ART (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1MAC (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1TX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_ETH1RX (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHS - * @arg @ref LL_AHB1_GRP1_PERIPH_USB1OTGHSULPI - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHS (*) - * @arg @ref LL_AHB1_GRP1_PERIPH_USB2OTGHSULPI (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C2_AHB1_GRP1_DisableClockSleep(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C2->AHB1LPENR, Periphs); -} - -/** - * @} - */ - -/** @addtogroup BUS_LL_EF_AHB2 AHB2 - * @{ - */ - -/** - * @brief Enable C2 AHB2 peripherals clock. - * @rmtoll AHB2ENR DCMIEN LL_C2_AHB2_GRP1_EnableClock\n - * AHB2ENR CRYPEN LL_C2_AHB2_GRP1_EnableClock\n - * AHB2ENR HASHEN LL_C2_AHB2_GRP1_EnableClock\n - * AHB2ENR RNGEN LL_C2_AHB2_GRP1_EnableClock\n - * AHB2ENR SDMMC2EN LL_C2_AHB2_GRP1_EnableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB2_GRP1_PERIPH_DCMI - * @arg @ref LL_AHB2_GRP1_PERIPH_CRYP (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_HASH (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_RNG - * @arg @ref LL_AHB2_GRP1_PERIPH_SDMMC2 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C2_AHB2_GRP1_EnableClock(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C2->AHB2ENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C2->AHB2ENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Check if C2 AHB2 peripheral clock is enabled or not - * @rmtoll AHB2ENR DCMIEN LL_C2_AHB2_GRP1_IsEnabledClock\n - * AHB2ENR CRYPEN LL_C2_AHB2_GRP1_IsEnabledClock\n - * AHB2ENR HASHEN LL_C2_AHB2_GRP1_IsEnabledClock\n - * AHB2ENR RNGEN LL_C2_AHB2_GRP1_IsEnabledClock\n - * AHB2ENR SDMMC2EN LL_C2_AHB2_GRP1_IsEnabledClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB2_GRP1_PERIPH_DCMI - * @arg @ref LL_AHB2_GRP1_PERIPH_CRYP (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_HASH (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_RNG - * @arg @ref LL_AHB2_GRP1_PERIPH_SDMMC2 - * - * (*) value not defined in all devices. - * @retval uint32_t -*/ -__STATIC_INLINE uint32_t LL_C2_AHB2_GRP1_IsEnabledClock(uint32_t Periphs) -{ - return ((READ_BIT(RCC_C2->AHB2ENR, Periphs) == Periphs) ? 1U : 0U); -} - -/** - * @brief Disable C2 AHB2 peripherals clock. - * @rmtoll AHB2ENR DCMIEN LL_C2_AHB2_GRP1_DisableClock\n - * AHB2ENR CRYPEN LL_C2_AHB2_GRP1_DisableClock\n - * AHB2ENR HASHEN LL_C2_AHB2_GRP1_DisableClock\n - * AHB2ENR RNGEN LL_C2_AHB2_GRP1_DisableClock\n - * AHB2ENR SDMMC2EN LL_C2_AHB2_GRP1_DisableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB2_GRP1_PERIPH_DCMI - * @arg @ref LL_AHB2_GRP1_PERIPH_CRYP (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_HASH (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_RNG - * @arg @ref LL_AHB2_GRP1_PERIPH_SDMMC2 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C2_AHB2_GRP1_DisableClock(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C2->AHB2ENR, Periphs); -} - -/** - * @brief Enable C2 AHB2 peripherals clock during Low Power (Sleep) mode. - * @rmtoll AHB2LPENR DCMILPEN LL_C2_AHB2_GRP1_EnableClockSleep\n - * AHB2LPENR CRYPLPEN LL_C2_AHB2_GRP1_EnableClockSleep\n - * AHB2LPENR HASHLPEN LL_C2_AHB2_GRP1_EnableClockSleep\n - * AHB2LPENR RNGLPEN LL_C2_AHB2_GRP1_EnableClockSleep\n - * AHB2LPENR SDMMC2LPEN LL_C2_AHB2_GRP1_EnableClockSleep\n - * AHB2LPENR D2SRAM1LPEN LL_C2_AHB2_GRP1_EnableClockSleep\n - * AHB2LPENR D2SRAM2LPEN LL_C2_AHB2_GRP1_EnableClockSleep\n - * AHB2LPENR D2SRAM3LPEN LL_C2_AHB2_GRP1_EnableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB2_GRP1_PERIPH_DCMI - * @arg @ref LL_AHB2_GRP1_PERIPH_CRYP (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_HASH (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_RNG - * @arg @ref LL_AHB2_GRP1_PERIPH_SDMMC2 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM1 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM2 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM3 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C2_AHB2_GRP1_EnableClockSleep(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C2->AHB2LPENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C2->AHB2LPENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Disable C2 AHB2 peripherals clock during Low Power (Sleep) mode. - * @rmtoll AHB2LPENR DCMILPEN LL_C2_AHB2_GRP1_DisableClockSleep\n - * AHB2LPENR CRYPLPEN LL_C2_AHB2_GRP1_DisableClockSleep\n - * AHB2LPENR HASHLPEN LL_C2_AHB2_GRP1_DisableClockSleep\n - * AHB2LPENR RNGLPEN LL_C2_AHB2_GRP1_DisableClockSleep\n - * AHB2LPENR SDMMC2LPEN LL_C2_AHB2_GRP1_DisableClockSleep\n - * AHB2LPENR D2SRAM1LPEN LL_C2_AHB2_GRP1_DisableClockSleep\n - * AHB2LPENR D2SRAM2LPEN LL_C2_AHB2_GRP1_DisableClockSleep\n - * AHB2LPENR D2SRAM3LPEN LL_C2_AHB2_GRP1_DisableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB2_GRP1_PERIPH_DCMI - * @arg @ref LL_AHB2_GRP1_PERIPH_CRYP (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_HASH (*) - * @arg @ref LL_AHB2_GRP1_PERIPH_RNG - * @arg @ref LL_AHB2_GRP1_PERIPH_SDMMC2 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM1 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM2 - * @arg @ref LL_AHB2_GRP1_PERIPH_D2SRAM3 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C2_AHB2_GRP1_DisableClockSleep(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C2->AHB2LPENR, Periphs); -} - -/** - * @} - */ - -/** @addtogroup BUS_LL_EF_AHB4 AHB4 - * @{ - */ - -/** - * @brief Enable C2 AHB4 peripherals clock. - * @rmtoll AHB4ENR GPIOAEN LL_C2_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIOBEN LL_C2_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIOCEN LL_C2_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIODEN LL_C2_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIOEEN LL_C2_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIOFEN LL_C2_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIOGEN LL_C2_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIOHEN LL_C2_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIOIEN LL_C2_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIOJEN LL_C2_AHB4_GRP1_EnableClock\n - * AHB4ENR GPIOKEN LL_C2_AHB4_GRP1_EnableClock\n - * AHB4ENR CRCEN LL_C2_AHB4_GRP1_EnableClock\n - * AHB4ENR BDMAEN LL_C2_AHB4_GRP1_EnableClock\n - * AHB4ENR ADC3EN LL_C2_AHB4_GRP1_EnableClock\n - * AHB4ENR HSEMEN LL_C2_AHB4_GRP1_EnableClock\n - * AHB4ENR BKPRAMEN LL_C2_AHB4_GRP1_EnableClock\n - * AHB4ENR SRAM4EN LL_C2_AHB4_GRP1_EnableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOA - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOB - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOC - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOD - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOE - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOF - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOG - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOH - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOI (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOJ - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOK - * @arg @ref LL_AHB4_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BDMA - * @arg @ref LL_AHB4_GRP1_PERIPH_ADC3 (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_HSEM (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BKPRAM - * @arg @ref LL_AHB4_GRP1_PERIPH_SRAM4 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C2_AHB4_GRP1_EnableClock(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C2->AHB4ENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C2->AHB4ENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Check if C2 AHB4 peripheral clock is enabled or not - * @rmtoll AHB4ENR GPIOAEN LL_C2_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIOBEN LL_C2_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIOCEN LL_C2_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIODEN LL_C2_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIOEEN LL_C2_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIOFEN LL_C2_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIOGEN LL_C2_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIOHEN LL_C2_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIOIEN LL_C2_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIOJEN LL_C2_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR GPIOKEN LL_C2_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR CRCEN LL_C2_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR BDMAEN LL_C2_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR ADC3EN LL_C2_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR HSEMEN LL_C2_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR BKPRAMEN LL_C2_AHB4_GRP1_IsEnabledClock\n - * AHB4ENR SRAM4EN LL_C2_AHB4_GRP1_IsEnabledClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOA - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOB - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOC - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOD - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOE - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOF - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOG - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOH - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOI (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOJ - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOK - * @arg @ref LL_AHB4_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BDMA - * @arg @ref LL_AHB4_GRP1_PERIPH_ADC3 (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_HSEM (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BKPRAM - * @arg @ref LL_AHB4_GRP1_PERIPH_SRAM4 - * - * (*) value not defined in all devices. - * @retval uint32_t -*/ -__STATIC_INLINE uint32_t LL_C2_AHB4_GRP1_IsEnabledClock(uint32_t Periphs) -{ - return ((READ_BIT(RCC_C2->AHB4ENR, Periphs) == Periphs) ? 1U : 0U); -} - -/** - * @brief Disable C2 AHB4 peripherals clock. - * @rmtoll AHB4ENR GPIOAEN LL_C2_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIOBEN LL_C2_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIOCEN LL_C2_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIODEN LL_C2_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIOEEN LL_C2_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIOFEN LL_C2_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIOGEN LL_C2_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIOHEN LL_C2_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIOIEN LL_C2_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIOJEN LL_C2_AHB4_GRP1_DisableClock\n - * AHB4ENR GPIOKEN LL_C2_AHB4_GRP1_DisableClock\n - * AHB4ENR CRCEN LL_C2_AHB4_GRP1_DisableClock\n - * AHB4ENR BDMAEN LL_C2_AHB4_GRP1_DisableClock\n - * AHB4ENR ADC3EN LL_C2_AHB4_GRP1_DisableClock\n - * AHB4ENR HSEMEN LL_C2_AHB4_GRP1_DisableClock\n - * AHB4ENR BKPRAMEN LL_C2_AHB4_GRP1_DisableClock\n - * AHB4ENR SRAM4EN LL_C2_AHB4_GRP1_DisableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOA - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOB - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOC - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOD - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOE - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOF - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOG - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOH - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOI (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOJ - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOK - * @arg @ref LL_AHB4_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BDMA - * @arg @ref LL_AHB4_GRP1_PERIPH_ADC3 (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_HSEM (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BKPRAM - * @arg @ref LL_AHB4_GRP1_PERIPH_SRAM4 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C2_AHB4_GRP1_DisableClock(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C2->AHB4ENR, Periphs); -} - -/** - * @brief Enable C2 AHB4 peripherals clock during Low Power (Sleep) mode. - * @rmtoll AHB4LPENR GPIOALPEN LL_C2_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIOBLPEN LL_C2_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIOCLPEN LL_C2_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIODLPEN LL_C2_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIOELPEN LL_C2_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIOFLPEN LL_C2_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIOGLPEN LL_C2_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIOHLPEN LL_C2_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIOILPEN LL_C2_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIOJLPEN LL_C2_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR GPIOKLPEN LL_C2_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR CRCLPEN LL_C2_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR BDMALPEN LL_C2_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR ADC3LPEN LL_C2_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR BKPRAMLPEN LL_C2_AHB4_GRP1_EnableClockSleep\n - * AHB4LPENR SRAM4LPEN LL_C2_AHB4_GRP1_EnableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOA - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOB - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOC - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOD - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOE - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOF - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOG - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOH - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOI (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOJ - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOK - * @arg @ref LL_AHB4_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BDMA - * @arg @ref LL_AHB4_GRP1_PERIPH_ADC3 (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BKPRAM - * @arg @ref LL_AHB4_GRP1_PERIPH_SRAM4 - * @retval None -*/ -__STATIC_INLINE void LL_C2_AHB4_GRP1_EnableClockSleep(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C2->AHB4LPENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C2->AHB4LPENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Disable C2 AHB4 peripherals clock during Low Power (Sleep) mode. - * @rmtoll AHB4LPENR GPIOALPEN LL_C2_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIOBLPEN LL_C2_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIOCLPEN LL_C2_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIODLPEN LL_C2_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIOELPEN LL_C2_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIOFLPEN LL_C2_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIOGLPEN LL_C2_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIOHLPEN LL_C2_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIOILPEN LL_C2_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIOJLPEN LL_C2_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR GPIOKLPEN LL_C2_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR CRCLPEN LL_C2_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR BDMALPEN LL_C2_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR ADC3LPEN LL_C2_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR BKPRAMLPEN LL_C2_AHB4_GRP1_DisableClockSleep\n - * AHB4LPENR SRAM4LPEN LL_C2_AHB4_GRP1_DisableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOA - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOB - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOC - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOD - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOE - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOF - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOG - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOH - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOI (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOJ - * @arg @ref LL_AHB4_GRP1_PERIPH_GPIOK - * @arg @ref LL_AHB4_GRP1_PERIPH_CRC (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BDMA - * @arg @ref LL_AHB4_GRP1_PERIPH_ADC3 (*) - * @arg @ref LL_AHB4_GRP1_PERIPH_BKPRAM - * @arg @ref LL_AHB4_GRP1_PERIPH_SRAM4 - * @retval None -*/ -__STATIC_INLINE void LL_C2_AHB4_GRP1_DisableClockSleep(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C2->AHB4LPENR, Periphs); -} - -/** - * @} - */ - -/** @addtogroup BUS_LL_EF_APB3 APB3 - * @{ - */ - -/** - * @brief Enable C2 APB3 peripherals clock. - * @rmtoll APB3ENR LTDCEN LL_C2_APB3_GRP1_EnableClock\n - * APB3ENR DSIEN LL_C2_APB3_GRP1_EnableClock\n - * APB3ENR WWDG1EN LL_C2_APB3_GRP1_EnableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB3_GRP1_PERIPH_LTDC (*) - * @arg @ref LL_APB3_GRP1_PERIPH_DSI (*) - * @arg @ref LL_APB3_GRP1_PERIPH_WWDG1 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C2_APB3_GRP1_EnableClock(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C2->APB3ENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C2->APB3ENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Check if C2 APB3 peripheral clock is enabled or not - * @rmtoll APB3ENR LTDCEN LL_C2_APB3_GRP1_IsEnabledClock\n - * APB3ENR DSIEN LL_C2_APB3_GRP1_IsEnabledClock\n - * APB3ENR WWDG1EN LL_C2_APB3_GRP1_IsEnabledClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB3_GRP1_PERIPH_LTDC (*) - * @arg @ref LL_APB3_GRP1_PERIPH_DSI (*) - * @arg @ref LL_APB3_GRP1_PERIPH_WWDG1 - * - * (*) value not defined in all devices. - * @retval uint32_t -*/ -__STATIC_INLINE uint32_t LL_C2_APB3_GRP1_IsEnabledClock(uint32_t Periphs) -{ - return ((READ_BIT(RCC_C2->APB3ENR, Periphs) == Periphs) ? 1U : 0U); -} - -/** - * @brief Disable C2 APB3 peripherals clock. - * @rmtoll APB3ENR LTDCEN LL_C2_APB3_GRP1_DisableClock\n - * APB3ENR DSIEN LL_C2_APB3_GRP1_DisableClock\n - * APB3ENR WWDG1EN LL_C2_APB3_GRP1_DisableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB3_GRP1_PERIPH_LTDC (*) - * @arg @ref LL_APB3_GRP1_PERIPH_DSI (*) - * @arg @ref LL_APB3_GRP1_PERIPH_WWDG1 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C2_APB3_GRP1_DisableClock(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C2->APB3ENR, Periphs); -} - -/** - * @brief Enable C2 APB3 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB3LPENR LTDCLPEN LL_C2_APB3_GRP1_EnableClockSleep\n - * APB3LPENR DSILPEN LL_C2_APB3_GRP1_EnableClockSleep\n - * APB3LPENR WWDG1LPEN LL_C2_APB3_GRP1_EnableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB3_GRP1_PERIPH_LTDC (*) - * @arg @ref LL_APB3_GRP1_PERIPH_DSI (*) - * @arg @ref LL_APB3_GRP1_PERIPH_WWDG1 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C2_APB3_GRP1_EnableClockSleep(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C2->APB3LPENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C2->APB3LPENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Disable C2 APB3 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB3LPENR LTDCLPEN LL_C2_APB3_GRP1_DisableClockSleep\n - * APB3LPENR DSILPEN LL_C2_APB3_GRP1_DisableClockSleep\n - * APB3LPENR WWDG1LPEN LL_C2_APB3_GRP1_DisableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB3_GRP1_PERIPH_LTDC (*) - * @arg @ref LL_APB3_GRP1_PERIPH_DSI (*) - * @arg @ref LL_APB3_GRP1_PERIPH_WWDG1 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C2_APB3_GRP1_DisableClockSleep(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C2->APB3LPENR, Periphs); -} - -/** - * @} - */ - -/** @addtogroup BUS_LL_EF_APB1 APB1 - * @{ - */ - -/** - * @brief Enable C2 APB1 peripherals clock. - * @rmtoll APB1LENR TIM2EN LL_C2_APB1_GRP1_EnableClock\n - * APB1LENR TIM3EN LL_C2_APB1_GRP1_EnableClock\n - * APB1LENR TIM4EN LL_C2_APB1_GRP1_EnableClock\n - * APB1LENR TIM5EN LL_C2_APB1_GRP1_EnableClock\n - * APB1LENR TIM6EN LL_C2_APB1_GRP1_EnableClock\n - * APB1LENR TIM7EN LL_C2_APB1_GRP1_EnableClock\n - * APB1LENR TIM12EN LL_C2_APB1_GRP1_EnableClock\n - * APB1LENR TIM13EN LL_C2_APB1_GRP1_EnableClock\n - * APB1LENR TIM14EN LL_C2_APB1_GRP1_EnableClock\n - * APB1LENR LPTIM1EN LL_C2_APB1_GRP1_EnableClock\n - * APB1LENR WWDG2EN LL_C2_APB1_GRP1_EnableClock\n - * APB1LENR SPI2EN LL_C2_APB1_GRP1_EnableClock\n - * APB1LENR SPI3EN LL_C2_APB1_GRP1_EnableClock\n - * APB1LENR SPDIFRXEN LL_C2_APB1_GRP1_EnableClock\n - * APB1LENR USART2EN LL_C2_APB1_GRP1_EnableClock\n - * APB1LENR USART3EN LL_C2_APB1_GRP1_EnableClock\n - * APB1LENR UART4EN LL_C2_APB1_GRP1_EnableClock\n - * APB1LENR UART5EN LL_C2_APB1_GRP1_EnableClock\n - * APB1LENR I2C1EN LL_C2_APB1_GRP1_EnableClock\n - * APB1LENR I2C2EN LL_C2_APB1_GRP1_EnableClock\n - * APB1LENR I2C3EN LL_C2_APB1_GRP1_EnableClock\n - * APB1LENR CECEN LL_C2_APB1_GRP1_EnableClock\n - * APB1LENR DAC12EN LL_C2_APB1_GRP1_EnableClock\n - * APB1LENR UART7EN LL_C2_APB1_GRP1_EnableClock\n - * APB1LENR UART8EN LL_C2_APB1_GRP1_EnableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP1_PERIPH_TIM2 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM3 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM4 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM5 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM6 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM7 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM12 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM13 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM14 - * @arg @ref LL_APB1_GRP1_PERIPH_LPTIM1 - * @arg @ref LL_APB1_GRP1_PERIPH_WWDG2 (*) - * @arg @ref LL_APB1_GRP1_PERIPH_SPI2 - * @arg @ref LL_APB1_GRP1_PERIPH_SPI3 - * @arg @ref LL_APB1_GRP1_PERIPH_SPDIFRX - * @arg @ref LL_APB1_GRP1_PERIPH_USART2 - * @arg @ref LL_APB1_GRP1_PERIPH_USART3 - * @arg @ref LL_APB1_GRP1_PERIPH_UART4 - * @arg @ref LL_APB1_GRP1_PERIPH_UART5 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C1 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C2 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C3 - * @arg @ref LL_APB1_GRP1_PERIPH_CEC - * @arg @ref LL_APB1_GRP1_PERIPH_DAC12 - * @arg @ref LL_APB1_GRP1_PERIPH_UART7 - * @arg @ref LL_APB1_GRP1_PERIPH_UART8 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C2_APB1_GRP1_EnableClock(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C2->APB1LENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C2->APB1LENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Check if C2 APB1 peripheral clock is enabled or not - * @rmtoll APB1LENR TIM2EN LL_C2_APB1_GRP1_IsEnabledClock\n - * APB1LENR TIM3EN LL_C2_APB1_GRP1_IsEnabledClock\n - * APB1LENR TIM4EN LL_C2_APB1_GRP1_IsEnabledClock\n - * APB1LENR TIM5EN LL_C2_APB1_GRP1_IsEnabledClock\n - * APB1LENR TIM6EN LL_C2_APB1_GRP1_IsEnabledClock\n - * APB1LENR TIM7EN LL_C2_APB1_GRP1_IsEnabledClock\n - * APB1LENR TIM12EN LL_C2_APB1_GRP1_IsEnabledClock\n - * APB1LENR TIM13EN LL_C2_APB1_GRP1_IsEnabledClock\n - * APB1LENR TIM14EN LL_C2_APB1_GRP1_IsEnabledClock\n - * APB1LENR LPTIM1EN LL_C2_APB1_GRP1_IsEnabledClock\n - * APB1LENR WWDG2EN LL_C2_APB1_GRP1_IsEnabledClock\n - * APB1LENR SPI2EN LL_C2_APB1_GRP1_IsEnabledClock\n - * APB1LENR SPI3EN LL_C2_APB1_GRP1_IsEnabledClock\n - * APB1LENR SPDIFRXEN LL_C2_APB1_GRP1_IsEnabledClock\n - * APB1LENR USART2EN LL_C2_APB1_GRP1_IsEnabledClock\n - * APB1LENR USART3EN LL_C2_APB1_GRP1_IsEnabledClock\n - * APB1LENR UART4EN LL_C2_APB1_GRP1_IsEnabledClock\n - * APB1LENR UART5EN LL_C2_APB1_GRP1_IsEnabledClock\n - * APB1LENR I2C1EN LL_C2_APB1_GRP1_IsEnabledClock\n - * APB1LENR I2C2EN LL_C2_APB1_GRP1_IsEnabledClock\n - * APB1LENR I2C3EN LL_C2_APB1_GRP1_IsEnabledClock\n - * APB1LENR CECEN LL_C2_APB1_GRP1_IsEnabledClock\n - * APB1LENR DAC12EN LL_C2_APB1_GRP1_IsEnabledClock\n - * APB1LENR UART7EN LL_C2_APB1_GRP1_IsEnabledClock\n - * APB1LENR UART8EN LL_C2_APB1_GRP1_IsEnabledClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP1_PERIPH_TIM2 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM3 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM4 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM5 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM6 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM7 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM12 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM13 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM14 - * @arg @ref LL_APB1_GRP1_PERIPH_LPTIM1 - * @arg @ref LL_APB1_GRP1_PERIPH_WWDG2 (*) - * @arg @ref LL_APB1_GRP1_PERIPH_SPI2 - * @arg @ref LL_APB1_GRP1_PERIPH_SPI3 - * @arg @ref LL_APB1_GRP1_PERIPH_SPDIFRX - * @arg @ref LL_APB1_GRP1_PERIPH_USART2 - * @arg @ref LL_APB1_GRP1_PERIPH_USART3 - * @arg @ref LL_APB1_GRP1_PERIPH_UART4 - * @arg @ref LL_APB1_GRP1_PERIPH_UART5 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C1 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C2 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C3 - * @arg @ref LL_APB1_GRP1_PERIPH_CEC - * @arg @ref LL_APB1_GRP1_PERIPH_DAC12 - * @arg @ref LL_APB1_GRP1_PERIPH_UART7 - * @arg @ref LL_APB1_GRP1_PERIPH_UART8 - * - * (*) value not defined in all devices. - * @retval uint32_t -*/ -__STATIC_INLINE uint32_t LL_C2_APB1_GRP1_IsEnabledClock(uint32_t Periphs) -{ - return ((READ_BIT(RCC_C2->APB1LENR, Periphs) == Periphs) ? 1U : 0U); -} - -/** - * @brief Disable C2 APB1 peripherals clock. - * @rmtoll APB1LENR TIM2EN LL_C2_APB1_GRP1_DisableClock\n - * APB1LENR TIM3EN LL_C2_APB1_GRP1_DisableClock\n - * APB1LENR TIM4EN LL_C2_APB1_GRP1_DisableClock\n - * APB1LENR TIM5EN LL_C2_APB1_GRP1_DisableClock\n - * APB1LENR TIM6EN LL_C2_APB1_GRP1_DisableClock\n - * APB1LENR TIM7EN LL_C2_APB1_GRP1_DisableClock\n - * APB1LENR TIM12EN LL_C2_APB1_GRP1_DisableClock\n - * APB1LENR TIM13EN LL_C2_APB1_GRP1_DisableClock\n - * APB1LENR TIM14EN LL_C2_APB1_GRP1_DisableClock\n - * APB1LENR LPTIM1EN LL_C2_APB1_GRP1_DisableClock\n - * APB1LENR WWDG2EN LL_C2_APB1_GRP1_DisableClock\n - * APB1LENR SPI2EN LL_C2_APB1_GRP1_DisableClock\n - * APB1LENR SPI3EN LL_C2_APB1_GRP1_DisableClock\n - * APB1LENR SPDIFRXEN LL_C2_APB1_GRP1_DisableClock\n - * APB1LENR USART2EN LL_C2_APB1_GRP1_DisableClock\n - * APB1LENR USART3EN LL_C2_APB1_GRP1_DisableClock\n - * APB1LENR UART4EN LL_C2_APB1_GRP1_DisableClock\n - * APB1LENR UART5EN LL_C2_APB1_GRP1_DisableClock\n - * APB1LENR I2C1EN LL_C2_APB1_GRP1_DisableClock\n - * APB1LENR I2C2EN LL_C2_APB1_GRP1_DisableClock\n - * APB1LENR I2C3EN LL_C2_APB1_GRP1_DisableClock\n - * APB1LENR CECEN LL_C2_APB1_GRP1_DisableClock\n - * APB1LENR DAC12EN LL_C2_APB1_GRP1_DisableClock\n - * APB1LENR UART7EN LL_C2_APB1_GRP1_DisableClock\n - * APB1LENR UART8EN LL_C2_APB1_GRP1_DisableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP1_PERIPH_TIM2 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM3 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM4 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM5 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM6 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM7 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM12 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM13 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM14 - * @arg @ref LL_APB1_GRP1_PERIPH_LPTIM1 - * @arg @ref LL_APB1_GRP1_PERIPH_WWDG2 (*) - * @arg @ref LL_APB1_GRP1_PERIPH_SPI2 - * @arg @ref LL_APB1_GRP1_PERIPH_SPI3 - * @arg @ref LL_APB1_GRP1_PERIPH_SPDIFRX - * @arg @ref LL_APB1_GRP1_PERIPH_USART2 - * @arg @ref LL_APB1_GRP1_PERIPH_USART3 - * @arg @ref LL_APB1_GRP1_PERIPH_UART4 - * @arg @ref LL_APB1_GRP1_PERIPH_UART5 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C1 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C2 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C3 - * @arg @ref LL_APB1_GRP1_PERIPH_CEC - * @arg @ref LL_APB1_GRP1_PERIPH_DAC12 - * @arg @ref LL_APB1_GRP1_PERIPH_UART7 - * @arg @ref LL_APB1_GRP1_PERIPH_UART8 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C2_APB1_GRP1_DisableClock(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C2->APB1LENR, Periphs); -} - -/** - * @brief Enable C2 APB1 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB1LLPENR TIM2LPEN LL_C2_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR TIM3LPEN LL_C2_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR TIM4LPEN LL_C2_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR TIM5LPEN LL_C2_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR TIM6LPEN LL_C2_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR TIM7LPEN LL_C2_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR TIM12LPEN LL_C2_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR TIM13LPEN LL_C2_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR TIM14LPEN LL_C2_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR LPTIM1LPEN LL_C2_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR WWDG2LPEN LL_C2_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR SPI2LPEN LL_C2_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR SPI3LPEN LL_C2_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR SPDIFRXLPEN LL_C2_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR USART2LPEN LL_C2_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR USART3LPEN LL_C2_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR UART4LPEN LL_C2_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR UART5LPEN LL_C2_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR I2C1LPEN LL_C2_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR I2C2LPEN LL_C2_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR I2C3LPEN LL_C2_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR CECLPEN LL_C2_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR DAC12LPEN LL_C2_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR UART7LPEN LL_C2_APB1_GRP1_EnableClockSleep\n - * APB1LLPENR UART8LPEN LL_C2_APB1_GRP1_EnableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP1_PERIPH_TIM2 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM3 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM4 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM5 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM6 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM7 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM12 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM13 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM14 - * @arg @ref LL_APB1_GRP1_PERIPH_LPTIM1 - * @arg @ref LL_APB1_GRP1_PERIPH_WWDG2 (*) - * @arg @ref LL_APB1_GRP1_PERIPH_SPI2 - * @arg @ref LL_APB1_GRP1_PERIPH_SPI3 - * @arg @ref LL_APB1_GRP1_PERIPH_SPDIFRX - * @arg @ref LL_APB1_GRP1_PERIPH_USART2 - * @arg @ref LL_APB1_GRP1_PERIPH_USART3 - * @arg @ref LL_APB1_GRP1_PERIPH_UART4 - * @arg @ref LL_APB1_GRP1_PERIPH_UART5 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C1 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C2 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C3 - * @arg @ref LL_APB1_GRP1_PERIPH_CEC - * @arg @ref LL_APB1_GRP1_PERIPH_DAC12 - * @arg @ref LL_APB1_GRP1_PERIPH_UART7 - * @arg @ref LL_APB1_GRP1_PERIPH_UART8 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C2_APB1_GRP1_EnableClockSleep(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C2->APB1LLPENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C2->APB1LLPENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Disable C2 APB1 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB1LLPENR TIM2LPEN LL_C2_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR TIM3LPEN LL_C2_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR TIM4LPEN LL_C2_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR TIM5LPEN LL_C2_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR TIM6LPEN LL_C2_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR TIM7LPEN LL_C2_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR TIM12LPEN LL_C2_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR TIM13LPEN LL_C2_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR TIM14LPEN LL_C2_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR LPTIM1LPEN LL_C2_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR WWDG2LPEN LL_C2_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR SPI2LPEN LL_C2_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR SPI3LPEN LL_C2_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR SPDIFRXLPEN LL_C2_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR USART2LPEN LL_C2_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR USART3LPEN LL_C2_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR UART4LPEN LL_C2_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR UART5LPEN LL_C2_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR I2C1LPEN LL_C2_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR I2C2LPEN LL_C2_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR I2C3LPEN LL_C2_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR CECLPEN LL_C2_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR DAC12LPEN LL_C2_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR UART7LPEN LL_C2_APB1_GRP1_DisableClockSleep\n - * APB1LLPENR UART8LPEN LL_C2_APB1_GRP1_DisableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP1_PERIPH_TIM2 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM3 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM4 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM5 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM6 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM7 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM12 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM13 - * @arg @ref LL_APB1_GRP1_PERIPH_TIM14 - * @arg @ref LL_APB1_GRP1_PERIPH_LPTIM1 - * @arg @ref LL_APB1_GRP1_PERIPH_WWDG2 (*) - * @arg @ref LL_APB1_GRP1_PERIPH_SPI2 - * @arg @ref LL_APB1_GRP1_PERIPH_SPI3 - * @arg @ref LL_APB1_GRP1_PERIPH_SPDIFRX - * @arg @ref LL_APB1_GRP1_PERIPH_USART2 - * @arg @ref LL_APB1_GRP1_PERIPH_USART3 - * @arg @ref LL_APB1_GRP1_PERIPH_UART4 - * @arg @ref LL_APB1_GRP1_PERIPH_UART5 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C1 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C2 - * @arg @ref LL_APB1_GRP1_PERIPH_I2C3 - * @arg @ref LL_APB1_GRP1_PERIPH_CEC - * @arg @ref LL_APB1_GRP1_PERIPH_DAC12 - * @arg @ref LL_APB1_GRP1_PERIPH_UART7 - * @arg @ref LL_APB1_GRP1_PERIPH_UART8 - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C2_APB1_GRP1_DisableClockSleep(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C2->APB1LLPENR, Periphs); -} - -/** - * @brief Enable C2 APB1 peripherals clock. - * @rmtoll APB1HENR CRSEN LL_C2_APB1_GRP2_EnableClock\n - * APB1HENR SWPMIEN LL_C2_APB1_GRP2_EnableClock\n - * APB1HENR OPAMPEN LL_C2_APB1_GRP2_EnableClock\n - * APB1HENR MDIOSEN LL_C2_APB1_GRP2_EnableClock\n - * APB1HENR FDCANEN LL_C2_APB1_GRP2_EnableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP2_PERIPH_CRS - * @arg @ref LL_APB1_GRP2_PERIPH_SWPMI1 - * @arg @ref LL_APB1_GRP2_PERIPH_OPAMP - * @arg @ref LL_APB1_GRP2_PERIPH_MDIOS - * @arg @ref LL_APB1_GRP2_PERIPH_FDCAN - * @arg @ref LL_APB1_GRP2_PERIPH_TIM23 (*) - * @arg @ref LL_APB1_GRP2_PERIPH_TIM24 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C2_APB1_GRP2_EnableClock(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C2->APB1HENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C2->APB1HENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Check if C2 APB1 peripheral clock is enabled or not - * @rmtoll APB1HENR CRSEN LL_C2_APB1_GRP2_IsEnabledClock\n - * APB1HENR SWPMIEN LL_C2_APB1_GRP2_IsEnabledClock\n - * APB1HENR OPAMPEN LL_C2_APB1_GRP2_IsEnabledClock\n - * APB1HENR MDIOSEN LL_C2_APB1_GRP2_IsEnabledClock\n - * APB1HENR FDCANEN LL_C2_APB1_GRP2_IsEnabledClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP2_PERIPH_CRS - * @arg @ref LL_APB1_GRP2_PERIPH_SWPMI1 - * @arg @ref LL_APB1_GRP2_PERIPH_OPAMP - * @arg @ref LL_APB1_GRP2_PERIPH_MDIOS - * @arg @ref LL_APB1_GRP2_PERIPH_FDCAN - * @arg @ref LL_APB1_GRP2_PERIPH_TIM23 (*) - * @arg @ref LL_APB1_GRP2_PERIPH_TIM24 (*) - * - * (*) value not defined in all devices. - * @retval uint32_t -*/ -__STATIC_INLINE uint32_t LL_C2_APB1_GRP2_IsEnabledClock(uint32_t Periphs) -{ - return ((READ_BIT(RCC_C2->APB1HENR, Periphs) == Periphs) ? 1U : 0U); -} - -/** - * @brief Disable C2 APB1 peripherals clock. - * @rmtoll APB1HENR CRSEN LL_C2_APB1_GRP2_DisableClock\n - * APB1HENR SWPMIEN LL_C2_APB1_GRP2_DisableClock\n - * APB1HENR OPAMPEN LL_C2_APB1_GRP2_DisableClock\n - * APB1HENR MDIOSEN LL_C2_APB1_GRP2_DisableClock\n - * APB1HENR FDCANEN LL_C2_APB1_GRP2_DisableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP2_PERIPH_CRS - * @arg @ref LL_APB1_GRP2_PERIPH_SWPMI1 - * @arg @ref LL_APB1_GRP2_PERIPH_OPAMP - * @arg @ref LL_APB1_GRP2_PERIPH_MDIOS - * @arg @ref LL_APB1_GRP2_PERIPH_FDCAN - * @arg @ref LL_APB1_GRP2_PERIPH_TIM23 (*) - * @arg @ref LL_APB1_GRP2_PERIPH_TIM24 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C2_APB1_GRP2_DisableClock(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C2->APB1HENR, Periphs); -} - -/** - * @brief Enable C2 APB1 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB1HLPENR CRSLPEN LL_C2_APB1_GRP2_EnableClockSleep\n - * APB1HLPENR SWPMILPEN LL_C2_APB1_GRP2_EnableClockSleep\n - * APB1HLPENR OPAMPLPEN LL_C2_APB1_GRP2_EnableClockSleep\n - * APB1HLPENR MDIOSLPEN LL_C2_APB1_GRP2_EnableClockSleep\n - * APB1HLPENR FDCANLPEN LL_C2_APB1_GRP2_EnableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP2_PERIPH_CRS - * @arg @ref LL_APB1_GRP2_PERIPH_SWPMI1 - * @arg @ref LL_APB1_GRP2_PERIPH_OPAMP - * @arg @ref LL_APB1_GRP2_PERIPH_MDIOS - * @arg @ref LL_APB1_GRP2_PERIPH_FDCAN - * @arg @ref LL_APB1_GRP2_PERIPH_TIM23 (*) - * @arg @ref LL_APB1_GRP2_PERIPH_TIM24 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C2_APB1_GRP2_EnableClockSleep(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C2->APB1HLPENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C2->APB1HLPENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Disable C2 APB1 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB1HLPENR CRSLPEN LL_C2_APB1_GRP2_DisableClockSleep\n - * APB1HLPENR SWPMILPEN LL_C2_APB1_GRP2_DisableClockSleep\n - * APB1HLPENR OPAMPLPEN LL_C2_APB1_GRP2_DisableClockSleep\n - * APB1HLPENR MDIOSLPEN LL_C2_APB1_GRP2_DisableClockSleep\n - * APB1HLPENR FDCANLPEN LL_C2_APB1_GRP2_DisableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB1_GRP2_PERIPH_CRS - * @arg @ref LL_APB1_GRP2_PERIPH_SWPMI1 - * @arg @ref LL_APB1_GRP2_PERIPH_OPAMP - * @arg @ref LL_APB1_GRP2_PERIPH_MDIOS - * @arg @ref LL_APB1_GRP2_PERIPH_FDCAN - * @arg @ref LL_APB1_GRP2_PERIPH_TIM23 (*) - * @arg @ref LL_APB1_GRP2_PERIPH_TIM24 (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C2_APB1_GRP2_DisableClockSleep(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C2->APB1HLPENR, Periphs); -} - -/** - * @} - */ - -/** @addtogroup BUS_LL_EF_APB2 APB2 - * @{ - */ - -/** - * @brief Enable C2 APB2 peripherals clock. - * @rmtoll APB2ENR TIM1EN LL_C2_APB2_GRP1_EnableClock\n - * APB2ENR TIM8EN LL_C2_APB2_GRP1_EnableClock\n - * APB2ENR USART1EN LL_C2_APB2_GRP1_EnableClock\n - * APB2ENR USART6EN LL_C2_APB2_GRP1_EnableClock\n - * APB2ENR SPI1EN LL_C2_APB2_GRP1_EnableClock\n - * APB2ENR SPI4EN LL_C2_APB2_GRP1_EnableClock\n - * APB2ENR TIM15EN LL_C2_APB2_GRP1_EnableClock\n - * APB2ENR TIM16EN LL_C2_APB2_GRP1_EnableClock\n - * APB2ENR TIM17EN LL_C2_APB2_GRP1_EnableClock\n - * APB2ENR SPI5EN LL_C2_APB2_GRP1_EnableClock\n - * APB2ENR SAI1EN LL_C2_APB2_GRP1_EnableClock\n - * APB2ENR SAI2EN LL_C2_APB2_GRP1_EnableClock\n - * APB2ENR SAI3EN LL_C2_APB2_GRP1_EnableClock\n - * APB2ENR DFSDM1EN LL_C2_APB2_GRP1_EnableClock\n - * APB2ENR HRTIMEN LL_C2_APB2_GRP1_EnableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB2_GRP1_PERIPH_TIM1 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM8 - * @arg @ref LL_APB2_GRP1_PERIPH_USART1 - * @arg @ref LL_APB2_GRP1_PERIPH_USART6 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI4 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM15 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM16 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM17 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI5 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI2 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SAI3 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_DFSDM1 - * @arg @ref LL_APB2_GRP1_PERIPH_HRTIM (*) - * - * (*) value not defined in all devices. - - * @retval None -*/ -__STATIC_INLINE void LL_C2_APB2_GRP1_EnableClock(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C2->APB2ENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C2->APB2ENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Check if C2 APB2 peripheral clock is enabled or not - * @rmtoll APB2ENR TIM1EN LL_C2_APB2_GRP1_IsEnabledClock\n - * APB2ENR TIM8EN LL_C2_APB2_GRP1_IsEnabledClock\n - * APB2ENR USART1EN LL_C2_APB2_GRP1_IsEnabledClock\n - * APB2ENR USART6EN LL_C2_APB2_GRP1_IsEnabledClock\n - * APB2ENR SPI1EN LL_C2_APB2_GRP1_IsEnabledClock\n - * APB2ENR SPI4EN LL_C2_APB2_GRP1_IsEnabledClock\n - * APB2ENR TIM15EN LL_C2_APB2_GRP1_IsEnabledClock\n - * APB2ENR TIM16EN LL_C2_APB2_GRP1_IsEnabledClock\n - * APB2ENR TIM17EN LL_C2_APB2_GRP1_IsEnabledClock\n - * APB2ENR SPI5EN LL_C2_APB2_GRP1_IsEnabledClock\n - * APB2ENR SAI1EN LL_C2_APB2_GRP1_IsEnabledClock\n - * APB2ENR SAI2EN LL_C2_APB2_GRP1_IsEnabledClock\n - * APB2ENR SAI3EN LL_C2_APB2_GRP1_IsEnabledClock\n - * APB2ENR DFSDM1EN LL_C2_APB2_GRP1_IsEnabledClock\n - * APB2ENR HRTIMEN LL_C2_APB2_GRP1_IsEnabledClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB2_GRP1_PERIPH_TIM1 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM8 - * @arg @ref LL_APB2_GRP1_PERIPH_USART1 - * @arg @ref LL_APB2_GRP1_PERIPH_USART6 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI4 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM15 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM16 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM17 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI5 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI2 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SAI3 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_DFSDM1 - * @arg @ref LL_APB2_GRP1_PERIPH_HRTIM (*) - * - * (*) value not defined in all devices. - * @retval uint32_t -*/ -__STATIC_INLINE uint32_t LL_C2_APB2_GRP1_IsEnabledClock(uint32_t Periphs) -{ - return ((READ_BIT(RCC_C2->APB2ENR, Periphs) == Periphs) ? 1U : 0U); -} - -/** - * @brief Disable C2 APB2 peripherals clock. - * @rmtoll APB2ENR TIM1EN LL_C2_APB2_GRP1_DisableClock\n - * APB2ENR TIM8EN LL_C2_APB2_GRP1_DisableClock\n - * APB2ENR USART1EN LL_C2_APB2_GRP1_DisableClock\n - * APB2ENR USART6EN LL_C2_APB2_GRP1_DisableClock\n - * APB2ENR SPI1EN LL_C2_APB2_GRP1_DisableClock\n - * APB2ENR SPI4EN LL_C2_APB2_GRP1_DisableClock\n - * APB2ENR TIM15EN LL_C2_APB2_GRP1_DisableClock\n - * APB2ENR TIM16EN LL_C2_APB2_GRP1_DisableClock\n - * APB2ENR TIM17EN LL_C2_APB2_GRP1_DisableClock\n - * APB2ENR SPI5EN LL_C2_APB2_GRP1_DisableClock\n - * APB2ENR SAI1EN LL_C2_APB2_GRP1_DisableClock\n - * APB2ENR SAI2EN LL_C2_APB2_GRP1_DisableClock\n - * APB2ENR SAI3EN LL_C2_APB2_GRP1_DisableClock\n - * APB2ENR DFSDM1EN LL_C2_APB2_GRP1_DisableClock\n - * APB2ENR HRTIMEN LL_C2_APB2_GRP1_DisableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB2_GRP1_PERIPH_TIM1 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM8 - * @arg @ref LL_APB2_GRP1_PERIPH_USART1 - * @arg @ref LL_APB2_GRP1_PERIPH_USART6 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI4 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM15 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM16 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM17 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI5 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI2 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SAI3 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_DFSDM1 - * @arg @ref LL_APB2_GRP1_PERIPH_HRTIM (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C2_APB2_GRP1_DisableClock(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C2->APB2ENR, Periphs); -} - -/** - * @brief Enable C2 APB2 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB2LPENR TIM1LPEN LL_C2_APB2_GRP1_EnableClockSleep\n - * APB2LPENR TIM8LPEN LL_C2_APB2_GRP1_EnableClockSleep\n - * APB2LPENR USART1LPEN LL_C2_APB2_GRP1_EnableClockSleep\n - * APB2LPENR USART6LPEN LL_C2_APB2_GRP1_EnableClockSleep\n - * APB2LPENR SPI1LPEN LL_C2_APB2_GRP1_EnableClockSleep\n - * APB2LPENR SPI4LPEN LL_C2_APB2_GRP1_EnableClockSleep\n - * APB2LPENR TIM15LPEN LL_C2_APB2_GRP1_EnableClockSleep\n - * APB2LPENR TIM16LPEN LL_C2_APB2_GRP1_EnableClockSleep\n - * APB2LPENR TIM17LPEN LL_C2_APB2_GRP1_EnableClockSleep\n - * APB2LPENR SPI5LPEN LL_C2_APB2_GRP1_EnableClockSleep\n - * APB2LPENR SAI1LPEN LL_C2_APB2_GRP1_EnableClockSleep\n - * APB2LPENR SAI2LPEN LL_C2_APB2_GRP1_EnableClockSleep\n - * APB2LPENR SAI3LPEN LL_C2_APB2_GRP1_EnableClockSleep\n - * APB2LPENR DFSDM1LPEN LL_C2_APB2_GRP1_EnableClockSleep\n - * APB2LPENR HRTIMLPEN LL_C2_APB2_GRP1_EnableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB2_GRP1_PERIPH_TIM1 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM8 - * @arg @ref LL_APB2_GRP1_PERIPH_USART1 - * @arg @ref LL_APB2_GRP1_PERIPH_USART6 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI4 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM15 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM16 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM17 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI5 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI2 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SAI3 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_DFSDM1 - * @arg @ref LL_APB2_GRP1_PERIPH_HRTIM (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C2_APB2_GRP1_EnableClockSleep(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C2->APB2LPENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C2->APB2LPENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Disable C2 APB2 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB2LPENR TIM1LPEN LL_C2_APB2_GRP1_DisableClockSleep\n - * APB2LPENR TIM8LPEN LL_C2_APB2_GRP1_DisableClockSleep\n - * APB2LPENR USART1LPEN LL_C2_APB2_GRP1_DisableClockSleep\n - * APB2LPENR USART6LPEN LL_C2_APB2_GRP1_DisableClockSleep\n - * APB2LPENR SPI1LPEN LL_C2_APB2_GRP1_DisableClockSleep\n - * APB2LPENR SPI4LPEN LL_C2_APB2_GRP1_DisableClockSleep\n - * APB2LPENR TIM15LPEN LL_C2_APB2_GRP1_DisableClockSleep\n - * APB2LPENR TIM16LPEN LL_C2_APB2_GRP1_DisableClockSleep\n - * APB2LPENR TIM17LPEN LL_C2_APB2_GRP1_DisableClockSleep\n - * APB2LPENR SPI5LPEN LL_C2_APB2_GRP1_DisableClockSleep\n - * APB2LPENR SAI1LPEN LL_C2_APB2_GRP1_DisableClockSleep\n - * APB2LPENR SAI2LPEN LL_C2_APB2_GRP1_DisableClockSleep\n - * APB2LPENR SAI3LPEN LL_C2_APB2_GRP1_DisableClockSleep\n - * APB2LPENR DFSDM1LPEN LL_C2_APB2_GRP1_DisableClockSleep\n - * APB2LPENR HRTIMLPEN LL_C2_APB2_GRP1_DisableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB2_GRP1_PERIPH_TIM1 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM8 - * @arg @ref LL_APB2_GRP1_PERIPH_USART1 - * @arg @ref LL_APB2_GRP1_PERIPH_USART6 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI4 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM15 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM16 - * @arg @ref LL_APB2_GRP1_PERIPH_TIM17 - * @arg @ref LL_APB2_GRP1_PERIPH_SPI5 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI1 - * @arg @ref LL_APB2_GRP1_PERIPH_SAI2 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_SAI3 (*) - * @arg @ref LL_APB2_GRP1_PERIPH_DFSDM1 - * @arg @ref LL_APB2_GRP1_PERIPH_HRTIM (*) - * - * (*) value not defined in all devices. - * @retval None -*/ -__STATIC_INLINE void LL_C2_APB2_GRP1_DisableClockSleep(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C2->APB2LPENR, Periphs); -} - -/** - * @} - */ - -/** @addtogroup BUS_LL_EF_APB4 APB4 - * @{ - */ - -/** - * @brief Enable C2 APB4 peripherals clock. - * @rmtoll APB4ENR SYSCFGEN LL_C2_APB4_GRP1_EnableClock\n - * APB4ENR LPUART1EN LL_C2_APB4_GRP1_EnableClock\n - * APB4ENR SPI6EN LL_C2_APB4_GRP1_EnableClock\n - * APB4ENR I2C4EN LL_C2_APB4_GRP1_EnableClock\n - * APB4ENR LPTIM2EN LL_C2_APB4_GRP1_EnableClock\n - * APB4ENR LPTIM3EN LL_C2_APB4_GRP1_EnableClock\n - * APB4ENR LPTIM4EN LL_C2_APB4_GRP1_EnableClock\n - * APB4ENR LPTIM5EN LL_C2_APB4_GRP1_EnableClock\n - * APB4ENR COMP12EN LL_C2_APB4_GRP1_EnableClock\n - * APB4ENR VREFEN LL_C2_APB4_GRP1_EnableClock\n - * APB4ENR RTCAPBEN LL_C2_APB4_GRP1_EnableClock\n - * APB4ENR SAI4EN LL_C2_APB4_GRP1_EnableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB4_GRP1_PERIPH_SYSCFG - * @arg @ref LL_APB4_GRP1_PERIPH_LPUART1 - * @arg @ref LL_APB4_GRP1_PERIPH_SPI6 - * @arg @ref LL_APB4_GRP1_PERIPH_I2C4 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM2 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM3 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM5 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_COMP12 - * @arg @ref LL_APB4_GRP1_PERIPH_VREF - * @arg @ref LL_APB4_GRP1_PERIPH_RTCAPB - * @arg @ref LL_APB4_GRP1_PERIPH_SAI4 (*) - * - * (*) value not defined in all devices - * @retval None -*/ -__STATIC_INLINE void LL_C2_APB4_GRP1_EnableClock(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C2->APB4ENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C2->APB4ENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Check if C2 APB4 peripheral clock is enabled or not - * @rmtoll APB4ENR SYSCFGEN LL_C2_APB4_GRP1_IsEnabledClock\n - * APB4ENR LPUART1EN LL_C2_APB4_GRP1_IsEnabledClock\n - * APB4ENR SPI6EN LL_C2_APB4_GRP1_IsEnabledClock\n - * APB4ENR I2C4EN LL_C2_APB4_GRP1_IsEnabledClock\n - * APB4ENR LPTIM2EN LL_C2_APB4_GRP1_IsEnabledClock\n - * APB4ENR LPTIM3EN LL_C2_APB4_GRP1_IsEnabledClock\n - * APB4ENR LPTIM4EN LL_C2_APB4_GRP1_IsEnabledClock\n - * APB4ENR LPTIM5EN LL_C2_APB4_GRP1_IsEnabledClock\n - * APB4ENR COMP12EN LL_C2_APB4_GRP1_IsEnabledClock\n - * APB4ENR VREFEN LL_C2_APB4_GRP1_IsEnabledClock\n - * APB4ENR RTCAPBEN LL_C2_APB4_GRP1_IsEnabledClock\n - * APB4ENR SAI4EN LL_C2_APB4_GRP1_IsEnabledClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB4_GRP1_PERIPH_SYSCFG - * @arg @ref LL_APB4_GRP1_PERIPH_LPUART1 - * @arg @ref LL_APB4_GRP1_PERIPH_SPI6 - * @arg @ref LL_APB4_GRP1_PERIPH_I2C4 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM2 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM3 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM5 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_COMP12 - * @arg @ref LL_APB4_GRP1_PERIPH_VREF - * @arg @ref LL_APB4_GRP1_PERIPH_RTCAPB - * @arg @ref LL_APB4_GRP1_PERIPH_SAI4 (*) - * - * (*) value not defined in all devices - * @retval uint32_t -*/ -__STATIC_INLINE uint32_t LL_C2_APB4_GRP1_IsEnabledClock(uint32_t Periphs) -{ - return ((READ_BIT(RCC_C2->APB4ENR, Periphs) == Periphs) ? 1U : 0U); -} - -/** - * @brief Disable C2 APB4 peripherals clock. - * @rmtoll APB4ENR SYSCFGEN LL_C2_APB4_GRP1_DisableClock\n - * APB4ENR LPUART1EN LL_C2_APB4_GRP1_DisableClock\n - * APB4ENR SPI6EN LL_C2_APB4_GRP1_DisableClock\n - * APB4ENR I2C4EN LL_C2_APB4_GRP1_DisableClock\n - * APB4ENR LPTIM2EN LL_C2_APB4_GRP1_DisableClock\n - * APB4ENR LPTIM3EN LL_C2_APB4_GRP1_DisableClock\n - * APB4ENR LPTIM4EN LL_C2_APB4_GRP1_DisableClock\n - * APB4ENR LPTIM5EN LL_C2_APB4_GRP1_DisableClock\n - * APB4ENR COMP12EN LL_C2_APB4_GRP1_DisableClock\n - * APB4ENR VREFEN LL_C2_APB4_GRP1_DisableClock\n - * APB4ENR RTCAPBEN LL_C2_APB4_GRP1_DisableClock\n - * APB4ENR SAI4EN LL_C2_APB4_GRP1_DisableClock - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB4_GRP1_PERIPH_SYSCFG - * @arg @ref LL_APB4_GRP1_PERIPH_LPUART1 - * @arg @ref LL_APB4_GRP1_PERIPH_SPI6 - * @arg @ref LL_APB4_GRP1_PERIPH_I2C4 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM2 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM3 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM5 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_COMP12 - * @arg @ref LL_APB4_GRP1_PERIPH_VREF - * @arg @ref LL_APB4_GRP1_PERIPH_RTCAPB - * @arg @ref LL_APB4_GRP1_PERIPH_SAI4 (*) - * - * (*) value not defined in all devices - * @retval None -*/ -__STATIC_INLINE void LL_C2_APB4_GRP1_DisableClock(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C2->APB4ENR, Periphs); -} - -/** - * @brief Enable C2 APB4 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB4LPENR SYSCFGLPEN LL_C2_APB4_GRP1_EnableClockSleep\n - * APB4LPENR LPUART1LPEN LL_C2_APB4_GRP1_EnableClockSleep\n - * APB4LPENR SPI6LPEN LL_C2_APB4_GRP1_EnableClockSleep\n - * APB4LPENR I2C4LPEN LL_C2_APB4_GRP1_EnableClockSleep\n - * APB4LPENR LPTIM2LPEN LL_C2_APB4_GRP1_EnableClockSleep\n - * APB4LPENR LPTIM3LPEN LL_C2_APB4_GRP1_EnableClockSleep\n - * APB4LPENR LPTIM4LPEN LL_C2_APB4_GRP1_EnableClockSleep\n - * APB4LPENR LPTIM5LPEN LL_C2_APB4_GRP1_EnableClockSleep\n - * APB4LPENR COMP12LPEN LL_C2_APB4_GRP1_EnableClockSleep\n - * APB4LPENR VREFLPEN LL_C2_APB4_GRP1_EnableClockSleep\n - * APB4LPENR RTCAPBLPEN LL_C2_APB4_GRP1_EnableClockSleep\n - * APB4LPENR SAI4LPEN LL_C2_APB4_GRP1_EnableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB4_GRP1_PERIPH_SYSCFG - * @arg @ref LL_APB4_GRP1_PERIPH_LPUART1 - * @arg @ref LL_APB4_GRP1_PERIPH_SPI6 - * @arg @ref LL_APB4_GRP1_PERIPH_I2C4 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM2 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM3 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM5 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_COMP12 - * @arg @ref LL_APB4_GRP1_PERIPH_VREF - * @arg @ref LL_APB4_GRP1_PERIPH_RTCAPB - * @arg @ref LL_APB4_GRP1_PERIPH_SAI4 (*) - * - * (*) value not defined in all devices - * @retval None -*/ -__STATIC_INLINE void LL_C2_APB4_GRP1_EnableClockSleep(uint32_t Periphs) -{ - __IO uint32_t tmpreg; - SET_BIT(RCC_C2->APB4LPENR, Periphs); - /* Delay after an RCC peripheral clock enabling */ - tmpreg = READ_BIT(RCC_C2->APB4LPENR, Periphs); - (void)tmpreg; -} - -/** - * @brief Disable C2 APB4 peripherals clock during Low Power (Sleep) mode. - * @rmtoll APB4LPENR SYSCFGLPEN LL_C2_APB4_GRP1_DisableClockSleep\n - * APB4LPENR LPUART1LPEN LL_C2_APB4_GRP1_DisableClockSleep\n - * APB4LPENR SPI6LPEN LL_C2_APB4_GRP1_DisableClockSleep\n - * APB4LPENR I2C4LPEN LL_C2_APB4_GRP1_DisableClockSleep\n - * APB4LPENR LPTIM2LPEN LL_C2_APB4_GRP1_DisableClockSleep\n - * APB4LPENR LPTIM3LPEN LL_C2_APB4_GRP1_DisableClockSleep\n - * APB4LPENR LPTIM4LPEN LL_C2_APB4_GRP1_DisableClockSleep\n - * APB4LPENR LPTIM5LPEN LL_C2_APB4_GRP1_DisableClockSleep\n - * APB4LPENR COMP12LPEN LL_C2_APB4_GRP1_DisableClockSleep\n - * APB4LPENR VREFLPEN LL_C2_APB4_GRP1_DisableClockSleep\n - * APB4LPENR RTCAPBLPEN LL_C2_APB4_GRP1_DisableClockSleep\n - * APB4LPENR SAI4LPEN LL_C2_APB4_GRP1_DisableClockSleep - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_APB4_GRP1_PERIPH_SYSCFG - * @arg @ref LL_APB4_GRP1_PERIPH_LPUART1 - * @arg @ref LL_APB4_GRP1_PERIPH_SPI6 - * @arg @ref LL_APB4_GRP1_PERIPH_I2C4 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM2 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM3 - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM4 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_LPTIM5 (*) - * @arg @ref LL_APB4_GRP1_PERIPH_COMP12 - * @arg @ref LL_APB4_GRP1_PERIPH_VREF - * @arg @ref LL_APB4_GRP1_PERIPH_RTCAPB - * @arg @ref LL_APB4_GRP1_PERIPH_SAI4 (*) - * - * (*) value not defined in all devices - * @retval None -*/ -__STATIC_INLINE void LL_C2_APB4_GRP1_DisableClockSleep(uint32_t Periphs) -{ - CLEAR_BIT(RCC_C2->APB4LPENR, Periphs); -} - -/** - * @} - */ - -#endif /*DUAL_CORE*/ - -/** - * @} - */ - -/** - * @} - */ - -#endif /* defined(RCC) */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_LL_BUS_H */ - - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_cortex.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_cortex.h deleted file mode 100644 index 2b63e8f..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_cortex.h +++ /dev/null @@ -1,669 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_ll_cortex.h - * @author MCD Application Team - * @brief Header file of CORTEX LL module. - @verbatim - ============================================================================== - ##### How to use this driver ##### - ============================================================================== - [..] - The LL CORTEX driver contains a set of generic APIs that can be - used by user: - (+) SYSTICK configuration used by LL_mDelay and LL_Init1msTick - functions - (+) Low power mode configuration (SCB register of Cortex-MCU) - (+) MPU API to configure and enable regions - (+) API to access to MCU info (CPUID register) - (+) API to enable fault handler (SHCSR accesses) - - @endverbatim - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file in - * the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_LL_CORTEX_H -#define STM32H7xx_LL_CORTEX_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx.h" - -/** @addtogroup STM32H7xx_LL_Driver - * @{ - */ - -/** @defgroup CORTEX_LL CORTEX - * @{ - */ - -/* Private types -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ - -/* Private constants ---------------------------------------------------------*/ - -/* Private macros ------------------------------------------------------------*/ - -/* Exported types ------------------------------------------------------------*/ -/* Exported constants --------------------------------------------------------*/ -/** @defgroup CORTEX_LL_Exported_Constants CORTEX Exported Constants - * @{ - */ - -/** @defgroup CORTEX_LL_EC_CLKSOURCE_HCLK SYSTICK Clock Source - * @{ - */ -#define LL_SYSTICK_CLKSOURCE_HCLK_DIV8 0x00000000UL /*!< AHB clock divided by 8 selected as SysTick clock source.*/ -#define LL_SYSTICK_CLKSOURCE_HCLK SysTick_CTRL_CLKSOURCE_Msk /*!< AHB clock selected as SysTick clock source. */ -/** - * @} - */ - -/** @defgroup CORTEX_LL_EC_FAULT Handler Fault type - * @{ - */ -#define LL_HANDLER_FAULT_USG SCB_SHCSR_USGFAULTENA_Msk /*!< Usage fault */ -#define LL_HANDLER_FAULT_BUS SCB_SHCSR_BUSFAULTENA_Msk /*!< Bus fault */ -#define LL_HANDLER_FAULT_MEM SCB_SHCSR_MEMFAULTENA_Msk /*!< Memory management fault */ -/** - * @} - */ - -#if __MPU_PRESENT - -/** @defgroup CORTEX_LL_EC_CTRL_HFNMI_PRIVDEF MPU Control - * @{ - */ -#define LL_MPU_CTRL_HFNMI_PRIVDEF_NONE 0x00000000UL /*!< Disable NMI and privileged SW access */ -#define LL_MPU_CTRL_HARDFAULT_NMI MPU_CTRL_HFNMIENA_Msk /*!< Enables the operation of MPU during hard fault, NMI, and FAULTMASK handlers */ -#define LL_MPU_CTRL_PRIVILEGED_DEFAULT MPU_CTRL_PRIVDEFENA_Msk /*!< Enable privileged software access to default memory map */ -#define LL_MPU_CTRL_HFNMI_PRIVDEF (MPU_CTRL_HFNMIENA_Msk | MPU_CTRL_PRIVDEFENA_Msk) /*!< Enable NMI and privileged SW access */ -/** - * @} - */ - -/** @defgroup CORTEX_LL_EC_REGION MPU Region Number - * @{ - */ -#define LL_MPU_REGION_NUMBER0 0x00UL /*!< REGION Number 0 */ -#define LL_MPU_REGION_NUMBER1 0x01UL /*!< REGION Number 1 */ -#define LL_MPU_REGION_NUMBER2 0x02UL /*!< REGION Number 2 */ -#define LL_MPU_REGION_NUMBER3 0x03UL /*!< REGION Number 3 */ -#define LL_MPU_REGION_NUMBER4 0x04UL /*!< REGION Number 4 */ -#define LL_MPU_REGION_NUMBER5 0x05UL /*!< REGION Number 5 */ -#define LL_MPU_REGION_NUMBER6 0x06UL /*!< REGION Number 6 */ -#define LL_MPU_REGION_NUMBER7 0x07UL /*!< REGION Number 7 */ -#if !defined(CORE_CM4) -#define LL_MPU_REGION_NUMBER8 0x08UL /*!< REGION Number 8 */ -#define LL_MPU_REGION_NUMBER9 0x09UL /*!< REGION Number 9 */ -#define LL_MPU_REGION_NUMBER10 0x0AUL /*!< REGION Number 10 */ -#define LL_MPU_REGION_NUMBER11 0x0BUL /*!< REGION Number 11 */ -#define LL_MPU_REGION_NUMBER12 0x0CUL /*!< REGION Number 12 */ -#define LL_MPU_REGION_NUMBER13 0x0DUL /*!< REGION Number 13 */ -#define LL_MPU_REGION_NUMBER14 0x0EUL /*!< REGION Number 14 */ -#define LL_MPU_REGION_NUMBER15 0x0FUL /*!< REGION Number 15 */ -#endif /* !defined(CORE_CM4) */ -/** - * @} - */ - -/** @defgroup CORTEX_LL_EC_REGION_SIZE MPU Region Size - * @{ - */ -#define LL_MPU_REGION_SIZE_32B (0x04UL << MPU_RASR_SIZE_Pos) /*!< 32B Size of the MPU protection region */ -#define LL_MPU_REGION_SIZE_64B (0x05UL << MPU_RASR_SIZE_Pos) /*!< 64B Size of the MPU protection region */ -#define LL_MPU_REGION_SIZE_128B (0x06UL << MPU_RASR_SIZE_Pos) /*!< 128B Size of the MPU protection region */ -#define LL_MPU_REGION_SIZE_256B (0x07UL << MPU_RASR_SIZE_Pos) /*!< 256B Size of the MPU protection region */ -#define LL_MPU_REGION_SIZE_512B (0x08UL << MPU_RASR_SIZE_Pos) /*!< 512B Size of the MPU protection region */ -#define LL_MPU_REGION_SIZE_1KB (0x09UL << MPU_RASR_SIZE_Pos) /*!< 1KB Size of the MPU protection region */ -#define LL_MPU_REGION_SIZE_2KB (0x0AUL << MPU_RASR_SIZE_Pos) /*!< 2KB Size of the MPU protection region */ -#define LL_MPU_REGION_SIZE_4KB (0x0BUL << MPU_RASR_SIZE_Pos) /*!< 4KB Size of the MPU protection region */ -#define LL_MPU_REGION_SIZE_8KB (0x0CUL << MPU_RASR_SIZE_Pos) /*!< 8KB Size of the MPU protection region */ -#define LL_MPU_REGION_SIZE_16KB (0x0DUL << MPU_RASR_SIZE_Pos) /*!< 16KB Size of the MPU protection region */ -#define LL_MPU_REGION_SIZE_32KB (0x0EUL << MPU_RASR_SIZE_Pos) /*!< 32KB Size of the MPU protection region */ -#define LL_MPU_REGION_SIZE_64KB (0x0FUL << MPU_RASR_SIZE_Pos) /*!< 64KB Size of the MPU protection region */ -#define LL_MPU_REGION_SIZE_128KB (0x10UL << MPU_RASR_SIZE_Pos) /*!< 128KB Size of the MPU protection region */ -#define LL_MPU_REGION_SIZE_256KB (0x11UL << MPU_RASR_SIZE_Pos) /*!< 256KB Size of the MPU protection region */ -#define LL_MPU_REGION_SIZE_512KB (0x12UL << MPU_RASR_SIZE_Pos) /*!< 512KB Size of the MPU protection region */ -#define LL_MPU_REGION_SIZE_1MB (0x13UL << MPU_RASR_SIZE_Pos) /*!< 1MB Size of the MPU protection region */ -#define LL_MPU_REGION_SIZE_2MB (0x14UL << MPU_RASR_SIZE_Pos) /*!< 2MB Size of the MPU protection region */ -#define LL_MPU_REGION_SIZE_4MB (0x15UL << MPU_RASR_SIZE_Pos) /*!< 4MB Size of the MPU protection region */ -#define LL_MPU_REGION_SIZE_8MB (0x16UL << MPU_RASR_SIZE_Pos) /*!< 8MB Size of the MPU protection region */ -#define LL_MPU_REGION_SIZE_16MB (0x17UL << MPU_RASR_SIZE_Pos) /*!< 16MB Size of the MPU protection region */ -#define LL_MPU_REGION_SIZE_32MB (0x18UL << MPU_RASR_SIZE_Pos) /*!< 32MB Size of the MPU protection region */ -#define LL_MPU_REGION_SIZE_64MB (0x19UL << MPU_RASR_SIZE_Pos) /*!< 64MB Size of the MPU protection region */ -#define LL_MPU_REGION_SIZE_128MB (0x1AUL << MPU_RASR_SIZE_Pos) /*!< 128MB Size of the MPU protection region */ -#define LL_MPU_REGION_SIZE_256MB (0x1BUL << MPU_RASR_SIZE_Pos) /*!< 256MB Size of the MPU protection region */ -#define LL_MPU_REGION_SIZE_512MB (0x1CUL << MPU_RASR_SIZE_Pos) /*!< 512MB Size of the MPU protection region */ -#define LL_MPU_REGION_SIZE_1GB (0x1DUL << MPU_RASR_SIZE_Pos) /*!< 1GB Size of the MPU protection region */ -#define LL_MPU_REGION_SIZE_2GB (0x1EUL << MPU_RASR_SIZE_Pos) /*!< 2GB Size of the MPU protection region */ -#define LL_MPU_REGION_SIZE_4GB (0x1FUL << MPU_RASR_SIZE_Pos) /*!< 4GB Size of the MPU protection region */ -/** - * @} - */ - -/** @defgroup CORTEX_LL_EC_REGION_PRIVILEDGES MPU Region Privileges - * @{ - */ -#define LL_MPU_REGION_NO_ACCESS (0x00UL << MPU_RASR_AP_Pos) /*!< No access*/ -#define LL_MPU_REGION_PRIV_RW (0x01UL << MPU_RASR_AP_Pos) /*!< RW privileged (privileged access only)*/ -#define LL_MPU_REGION_PRIV_RW_URO (0x02UL << MPU_RASR_AP_Pos) /*!< RW privileged - RO user (Write in a user program generates a fault) */ -#define LL_MPU_REGION_FULL_ACCESS (0x03UL << MPU_RASR_AP_Pos) /*!< RW privileged & user (Full access) */ -#define LL_MPU_REGION_PRIV_RO (0x05UL << MPU_RASR_AP_Pos) /*!< RO privileged (privileged read only)*/ -#define LL_MPU_REGION_PRIV_RO_URO (0x06UL << MPU_RASR_AP_Pos) /*!< RO privileged & user (read only) */ -/** - * @} - */ - -/** @defgroup CORTEX_LL_EC_TEX MPU TEX Level - * @{ - */ -#define LL_MPU_TEX_LEVEL0 (0x00UL << MPU_RASR_TEX_Pos) /*!< b000 for TEX bits */ -#define LL_MPU_TEX_LEVEL1 (0x01UL << MPU_RASR_TEX_Pos) /*!< b001 for TEX bits */ -#define LL_MPU_TEX_LEVEL2 (0x02UL << MPU_RASR_TEX_Pos) /*!< b010 for TEX bits */ - -/* Legacy Define */ -#define LL_MPU_TEX_LEVEL4 (0x04UL << MPU_RASR_TEX_Pos) /*!< b100 for TEX bits */ -/** - * @} - */ - -/** @defgroup CORTEX_LL_EC_INSTRUCTION_ACCESS MPU Instruction Access - * @{ - */ -#define LL_MPU_INSTRUCTION_ACCESS_ENABLE 0x00UL /*!< Instruction fetches enabled */ -#define LL_MPU_INSTRUCTION_ACCESS_DISABLE MPU_RASR_XN_Msk /*!< Instruction fetches disabled*/ -/** - * @} - */ - -/** @defgroup CORTEX_LL_EC_SHAREABLE_ACCESS MPU Shareable Access - * @{ - */ -#define LL_MPU_ACCESS_SHAREABLE MPU_RASR_S_Msk /*!< Shareable memory attribute */ -#define LL_MPU_ACCESS_NOT_SHAREABLE 0x00UL /*!< Not Shareable memory attribute */ -/** - * @} - */ - -/** @defgroup CORTEX_LL_EC_CACHEABLE_ACCESS MPU Cacheable Access - * @{ - */ -#define LL_MPU_ACCESS_CACHEABLE MPU_RASR_C_Msk /*!< Cacheable memory attribute */ -#define LL_MPU_ACCESS_NOT_CACHEABLE 0x00UL /*!< Not Cacheable memory attribute */ -/** - * @} - */ - -/** @defgroup CORTEX_LL_EC_BUFFERABLE_ACCESS MPU Bufferable Access - * @{ - */ -#define LL_MPU_ACCESS_BUFFERABLE MPU_RASR_B_Msk /*!< Bufferable memory attribute */ -#define LL_MPU_ACCESS_NOT_BUFFERABLE 0x00UL /*!< Not Bufferable memory attribute */ -/** - * @} - */ -#endif /* __MPU_PRESENT */ -/** - * @} - */ - -/* Exported macro ------------------------------------------------------------*/ - -/* Exported functions --------------------------------------------------------*/ -/** @defgroup CORTEX_LL_Exported_Functions CORTEX Exported Functions - * @{ - */ - -/** @defgroup CORTEX_LL_EF_SYSTICK SYSTICK - * @{ - */ - -/** - * @brief This function checks if the Systick counter flag is active or not. - * @note It can be used in timeout function on application side. - * @rmtoll STK_CTRL COUNTFLAG LL_SYSTICK_IsActiveCounterFlag - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSTICK_IsActiveCounterFlag(void) -{ - return (((SysTick->CTRL & SysTick_CTRL_COUNTFLAG_Msk) == (SysTick_CTRL_COUNTFLAG_Msk)) ? 1UL : 0UL); -} - -/** - * @brief Configures the SysTick clock source - * @rmtoll STK_CTRL CLKSOURCE LL_SYSTICK_SetClkSource - * @param Source This parameter can be one of the following values: - * @arg @ref LL_SYSTICK_CLKSOURCE_HCLK_DIV8 - * @arg @ref LL_SYSTICK_CLKSOURCE_HCLK - * @retval None - */ -__STATIC_INLINE void LL_SYSTICK_SetClkSource(uint32_t Source) -{ - MODIFY_REG(SysTick->CTRL, LL_SYSTICK_CLKSOURCE_HCLK, Source); -} - -/** - * @brief Get the SysTick clock source - * @rmtoll STK_CTRL CLKSOURCE LL_SYSTICK_GetClkSource - * @retval Returned value can be one of the following values: - * @arg @ref LL_SYSTICK_CLKSOURCE_HCLK_DIV8 - * @arg @ref LL_SYSTICK_CLKSOURCE_HCLK - */ -__STATIC_INLINE uint32_t LL_SYSTICK_GetClkSource(void) -{ - return (uint32_t)(READ_BIT(SysTick->CTRL, LL_SYSTICK_CLKSOURCE_HCLK)); -} - -/** - * @brief Enable SysTick exception request - * @rmtoll STK_CTRL TICKINT LL_SYSTICK_EnableIT - * @retval None - */ -__STATIC_INLINE void LL_SYSTICK_EnableIT(void) -{ - SET_BIT(SysTick->CTRL, SysTick_CTRL_TICKINT_Msk); -} - -/** - * @brief Disable SysTick exception request - * @rmtoll STK_CTRL TICKINT LL_SYSTICK_DisableIT - * @retval None - */ -__STATIC_INLINE void LL_SYSTICK_DisableIT(void) -{ - CLEAR_BIT(SysTick->CTRL, SysTick_CTRL_TICKINT_Msk); -} - -/** - * @brief Checks if the SYSTICK interrupt is enabled or disabled. - * @rmtoll STK_CTRL TICKINT LL_SYSTICK_IsEnabledIT - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSTICK_IsEnabledIT(void) -{ - return ((READ_BIT(SysTick->CTRL, SysTick_CTRL_TICKINT_Msk) == (SysTick_CTRL_TICKINT_Msk)) ? 1UL : 0UL); -} - -/** - * @} - */ - -/** @defgroup CORTEX_LL_EF_LOW_POWER_MODE LOW POWER MODE - * @{ - */ - -/** - * @brief Processor uses sleep as its low power mode - * @rmtoll SCB_SCR SLEEPDEEP LL_LPM_EnableSleep - * @retval None - */ -__STATIC_INLINE void LL_LPM_EnableSleep(void) -{ - /* Clear SLEEPDEEP bit of Cortex System Control Register */ - CLEAR_BIT(SCB->SCR, SCB_SCR_SLEEPDEEP_Msk); -} - -/** - * @brief Processor uses deep sleep as its low power mode - * @rmtoll SCB_SCR SLEEPDEEP LL_LPM_EnableDeepSleep - * @retval None - */ -__STATIC_INLINE void LL_LPM_EnableDeepSleep(void) -{ - /* Set SLEEPDEEP bit of Cortex System Control Register */ - SET_BIT(SCB->SCR, SCB_SCR_SLEEPDEEP_Msk); -} - -/** - * @brief Configures sleep-on-exit when returning from Handler mode to Thread mode. - * @note Setting this bit to 1 enables an interrupt-driven application to avoid returning to an - * empty main application. - * @rmtoll SCB_SCR SLEEPONEXIT LL_LPM_EnableSleepOnExit - * @retval None - */ -__STATIC_INLINE void LL_LPM_EnableSleepOnExit(void) -{ - /* Set SLEEPONEXIT bit of Cortex System Control Register */ - SET_BIT(SCB->SCR, SCB_SCR_SLEEPONEXIT_Msk); -} - -/** - * @brief Do not sleep when returning to Thread mode. - * @rmtoll SCB_SCR SLEEPONEXIT LL_LPM_DisableSleepOnExit - * @retval None - */ -__STATIC_INLINE void LL_LPM_DisableSleepOnExit(void) -{ - /* Clear SLEEPONEXIT bit of Cortex System Control Register */ - CLEAR_BIT(SCB->SCR, SCB_SCR_SLEEPONEXIT_Msk); -} - -/** - * @brief Enabled events and all interrupts, including disabled interrupts, can wakeup the - * processor. - * @rmtoll SCB_SCR SEVEONPEND LL_LPM_EnableEventOnPend - * @retval None - */ -__STATIC_INLINE void LL_LPM_EnableEventOnPend(void) -{ - /* Set SEVEONPEND bit of Cortex System Control Register */ - SET_BIT(SCB->SCR, SCB_SCR_SEVONPEND_Msk); -} - -/** - * @brief Only enabled interrupts or events can wakeup the processor, disabled interrupts are - * excluded - * @rmtoll SCB_SCR SEVEONPEND LL_LPM_DisableEventOnPend - * @retval None - */ -__STATIC_INLINE void LL_LPM_DisableEventOnPend(void) -{ - /* Clear SEVEONPEND bit of Cortex System Control Register */ - CLEAR_BIT(SCB->SCR, SCB_SCR_SEVONPEND_Msk); -} - -/** - * @} - */ - -/** @defgroup CORTEX_LL_EF_HANDLER HANDLER - * @{ - */ - -/** - * @brief Enable a fault in System handler control register (SHCSR) - * @rmtoll SCB_SHCSR MEMFAULTENA LL_HANDLER_EnableFault - * @param Fault This parameter can be a combination of the following values: - * @arg @ref LL_HANDLER_FAULT_USG - * @arg @ref LL_HANDLER_FAULT_BUS - * @arg @ref LL_HANDLER_FAULT_MEM - * @retval None - */ -__STATIC_INLINE void LL_HANDLER_EnableFault(uint32_t Fault) -{ - /* Enable the system handler fault */ - SET_BIT(SCB->SHCSR, Fault); -} - -/** - * @brief Disable a fault in System handler control register (SHCSR) - * @rmtoll SCB_SHCSR MEMFAULTENA LL_HANDLER_DisableFault - * @param Fault This parameter can be a combination of the following values: - * @arg @ref LL_HANDLER_FAULT_USG - * @arg @ref LL_HANDLER_FAULT_BUS - * @arg @ref LL_HANDLER_FAULT_MEM - * @retval None - */ -__STATIC_INLINE void LL_HANDLER_DisableFault(uint32_t Fault) -{ - /* Disable the system handler fault */ - CLEAR_BIT(SCB->SHCSR, Fault); -} - -/** - * @} - */ - -/** @defgroup CORTEX_LL_EF_MCU_INFO MCU INFO - * @{ - */ - -/** - * @brief Get Implementer code - * @rmtoll SCB_CPUID IMPLEMENTER LL_CPUID_GetImplementer - * @retval Value should be equal to 0x41 for ARM - */ -__STATIC_INLINE uint32_t LL_CPUID_GetImplementer(void) -{ - return (uint32_t)(READ_BIT(SCB->CPUID, SCB_CPUID_IMPLEMENTER_Msk) >> SCB_CPUID_IMPLEMENTER_Pos); -} - -/** - * @brief Get Variant number (The r value in the rnpn product revision identifier) - * @rmtoll SCB_CPUID VARIANT LL_CPUID_GetVariant - * @retval Value between 0 and 255 (0x0: revision 0) - */ -__STATIC_INLINE uint32_t LL_CPUID_GetVariant(void) -{ - return (uint32_t)(READ_BIT(SCB->CPUID, SCB_CPUID_VARIANT_Msk) >> SCB_CPUID_VARIANT_Pos); -} - -/** - * @brief Get Constant number - * @rmtoll SCB_CPUID ARCHITECTURE LL_CPUID_GetConstant - * @retval Value should be equal to 0xF for Cortex-M7 and Cortex-M4 devices - */ -__STATIC_INLINE uint32_t LL_CPUID_GetConstant(void) -{ - return (uint32_t)(READ_BIT(SCB->CPUID, SCB_CPUID_ARCHITECTURE_Msk) >> SCB_CPUID_ARCHITECTURE_Pos); -} - -/** - * @brief Get Part number - * @rmtoll SCB_CPUID PARTNO LL_CPUID_GetParNo - * @retval Value should be equal to 0xC27 for Cortex-M7 and equal to 0xC24 for Cortex-M4 - */ -__STATIC_INLINE uint32_t LL_CPUID_GetParNo(void) -{ - return (uint32_t)(READ_BIT(SCB->CPUID, SCB_CPUID_PARTNO_Msk) >> SCB_CPUID_PARTNO_Pos); -} - -/** - * @brief Get Revision number (The p value in the rnpn product revision identifier, indicates patch release) - * @rmtoll SCB_CPUID REVISION LL_CPUID_GetRevision - * @retval Value between 0 and 255 (0x1: patch 1) - */ -__STATIC_INLINE uint32_t LL_CPUID_GetRevision(void) -{ - return (uint32_t)(READ_BIT(SCB->CPUID, SCB_CPUID_REVISION_Msk) >> SCB_CPUID_REVISION_Pos); -} - -/** - * @} - */ - -#if __MPU_PRESENT -/** @defgroup CORTEX_LL_EF_MPU MPU - * @{ - */ - -/** - * @brief Enable MPU with input options - * @rmtoll MPU_CTRL ENABLE LL_MPU_Enable - * @param Options This parameter can be one of the following values: - * @arg @ref LL_MPU_CTRL_HFNMI_PRIVDEF_NONE - * @arg @ref LL_MPU_CTRL_HARDFAULT_NMI - * @arg @ref LL_MPU_CTRL_PRIVILEGED_DEFAULT - * @arg @ref LL_MPU_CTRL_HFNMI_PRIVDEF - * @retval None - */ -__STATIC_INLINE void LL_MPU_Enable(uint32_t Options) -{ - /* Enable the MPU*/ - WRITE_REG(MPU->CTRL, (MPU_CTRL_ENABLE_Msk | Options)); - /* Ensure MPU settings take effects */ - __DSB(); - /* Sequence instruction fetches using update settings */ - __ISB(); -} - -/** - * @brief Disable MPU - * @rmtoll MPU_CTRL ENABLE LL_MPU_Disable - * @retval None - */ -__STATIC_INLINE void LL_MPU_Disable(void) -{ - /* Make sure outstanding transfers are done */ - __DMB(); - /* Disable MPU*/ - WRITE_REG(MPU->CTRL, 0U); -} - -/** - * @brief Check if MPU is enabled or not - * @rmtoll MPU_CTRL ENABLE LL_MPU_IsEnabled - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_MPU_IsEnabled(void) -{ - return ((READ_BIT(MPU->CTRL, MPU_CTRL_ENABLE_Msk) == (MPU_CTRL_ENABLE_Msk)) ? 1UL : 0UL); -} - -/** - * @brief Enable a MPU region - * @rmtoll MPU_RASR ENABLE LL_MPU_EnableRegion - * @param Region This parameter can be one of the following values: - * @arg @ref LL_MPU_REGION_NUMBER0 - * @arg @ref LL_MPU_REGION_NUMBER1 - * @arg @ref LL_MPU_REGION_NUMBER2 - * @arg @ref LL_MPU_REGION_NUMBER3 - * @arg @ref LL_MPU_REGION_NUMBER4 - * @arg @ref LL_MPU_REGION_NUMBER5 - * @arg @ref LL_MPU_REGION_NUMBER6 - * @arg @ref LL_MPU_REGION_NUMBER7 - * @arg @ref LL_MPU_REGION_NUMBER8 - * @arg @ref LL_MPU_REGION_NUMBER9 - * @arg @ref LL_MPU_REGION_NUMBER10 - * @arg @ref LL_MPU_REGION_NUMBER11 - * @arg @ref LL_MPU_REGION_NUMBER12 - * @arg @ref LL_MPU_REGION_NUMBER13 - * @arg @ref LL_MPU_REGION_NUMBER14 - * @arg @ref LL_MPU_REGION_NUMBER15 - * @note For cortex-M4 only 8 regions are available i.e only values from LL_MPU_REGION_NUMBER0 to LL_MPU_REGION_NUMBER7 are possible. - * @retval None - */ -__STATIC_INLINE void LL_MPU_EnableRegion(uint32_t Region) -{ - /* Set Region number */ - WRITE_REG(MPU->RNR, Region); - /* Enable the MPU region */ - SET_BIT(MPU->RASR, MPU_RASR_ENABLE_Msk); -} - -/** - * @brief Configure and enable a region - * @rmtoll MPU_RNR REGION LL_MPU_ConfigRegion\n - * MPU_RBAR REGION LL_MPU_ConfigRegion\n - * MPU_RBAR ADDR LL_MPU_ConfigRegion\n - * MPU_RASR XN LL_MPU_ConfigRegion\n - * MPU_RASR AP LL_MPU_ConfigRegion\n - * MPU_RASR S LL_MPU_ConfigRegion\n - * MPU_RASR C LL_MPU_ConfigRegion\n - * MPU_RASR B LL_MPU_ConfigRegion\n - * MPU_RASR SIZE LL_MPU_ConfigRegion - * @param Region This parameter can be one of the following values: - * @arg @ref LL_MPU_REGION_NUMBER0 - * @arg @ref LL_MPU_REGION_NUMBER1 - * @arg @ref LL_MPU_REGION_NUMBER2 - * @arg @ref LL_MPU_REGION_NUMBER3 - * @arg @ref LL_MPU_REGION_NUMBER4 - * @arg @ref LL_MPU_REGION_NUMBER5 - * @arg @ref LL_MPU_REGION_NUMBER6 - * @arg @ref LL_MPU_REGION_NUMBER7 - * @arg @ref LL_MPU_REGION_NUMBER8 - * @arg @ref LL_MPU_REGION_NUMBER9 - * @arg @ref LL_MPU_REGION_NUMBER10 - * @arg @ref LL_MPU_REGION_NUMBER11 - * @arg @ref LL_MPU_REGION_NUMBER12 - * @arg @ref LL_MPU_REGION_NUMBER13 - * @arg @ref LL_MPU_REGION_NUMBER14 - * @arg @ref LL_MPU_REGION_NUMBER15 - * @param Address Value of region base address - * @param SubRegionDisable Sub-region disable value between Min_Data = 0x00 and Max_Data = 0xFF - * @param Attributes This parameter can be a combination of the following values: - * @arg @ref LL_MPU_REGION_SIZE_32B or @ref LL_MPU_REGION_SIZE_64B or @ref LL_MPU_REGION_SIZE_128B or @ref LL_MPU_REGION_SIZE_256B or @ref LL_MPU_REGION_SIZE_512B - * or @ref LL_MPU_REGION_SIZE_1KB or @ref LL_MPU_REGION_SIZE_2KB or @ref LL_MPU_REGION_SIZE_4KB or @ref LL_MPU_REGION_SIZE_8KB or @ref LL_MPU_REGION_SIZE_16KB - * or @ref LL_MPU_REGION_SIZE_32KB or @ref LL_MPU_REGION_SIZE_64KB or @ref LL_MPU_REGION_SIZE_128KB or @ref LL_MPU_REGION_SIZE_256KB or @ref LL_MPU_REGION_SIZE_512KB - * or @ref LL_MPU_REGION_SIZE_1MB or @ref LL_MPU_REGION_SIZE_2MB or @ref LL_MPU_REGION_SIZE_4MB or @ref LL_MPU_REGION_SIZE_8MB or @ref LL_MPU_REGION_SIZE_16MB - * or @ref LL_MPU_REGION_SIZE_32MB or @ref LL_MPU_REGION_SIZE_64MB or @ref LL_MPU_REGION_SIZE_128MB or @ref LL_MPU_REGION_SIZE_256MB or @ref LL_MPU_REGION_SIZE_512MB - * or @ref LL_MPU_REGION_SIZE_1GB or @ref LL_MPU_REGION_SIZE_2GB or @ref LL_MPU_REGION_SIZE_4GB - * @arg @ref LL_MPU_REGION_NO_ACCESS or @ref LL_MPU_REGION_PRIV_RW or @ref LL_MPU_REGION_PRIV_RW_URO or @ref LL_MPU_REGION_FULL_ACCESS - * or @ref LL_MPU_REGION_PRIV_RO or @ref LL_MPU_REGION_PRIV_RO_URO - * @arg @ref LL_MPU_TEX_LEVEL0 or @ref LL_MPU_TEX_LEVEL1 or @ref LL_MPU_TEX_LEVEL2 - * @arg @ref LL_MPU_INSTRUCTION_ACCESS_ENABLE or @ref LL_MPU_INSTRUCTION_ACCESS_DISABLE - * @arg @ref LL_MPU_ACCESS_SHAREABLE or @ref LL_MPU_ACCESS_NOT_SHAREABLE - * @arg @ref LL_MPU_ACCESS_CACHEABLE or @ref LL_MPU_ACCESS_NOT_CACHEABLE - * @arg @ref LL_MPU_ACCESS_BUFFERABLE or @ref LL_MPU_ACCESS_NOT_BUFFERABLE - * @note For cortex-M4 only 8 regions are available i.e only values from LL_MPU_REGION_NUMBER0 to LL_MPU_REGION_NUMBER7 are possible. - * @retval None - */ -__STATIC_INLINE void LL_MPU_ConfigRegion(uint32_t Region, uint32_t SubRegionDisable, uint32_t Address, uint32_t Attributes) -{ - /* Set Region number */ - WRITE_REG(MPU->RNR, Region); - /* Set base address */ - WRITE_REG(MPU->RBAR, (Address & 0xFFFFFFE0U)); - /* Configure MPU */ - WRITE_REG(MPU->RASR, (MPU_RASR_ENABLE_Msk | Attributes | (SubRegionDisable << MPU_RASR_SRD_Pos))); -} - -/** - * @brief Disable a region - * @rmtoll MPU_RNR REGION LL_MPU_DisableRegion\n - * MPU_RASR ENABLE LL_MPU_DisableRegion - * @param Region This parameter can be one of the following values: - * @arg @ref LL_MPU_REGION_NUMBER0 - * @arg @ref LL_MPU_REGION_NUMBER1 - * @arg @ref LL_MPU_REGION_NUMBER2 - * @arg @ref LL_MPU_REGION_NUMBER3 - * @arg @ref LL_MPU_REGION_NUMBER4 - * @arg @ref LL_MPU_REGION_NUMBER5 - * @arg @ref LL_MPU_REGION_NUMBER6 - * @arg @ref LL_MPU_REGION_NUMBER7 - * @arg @ref LL_MPU_REGION_NUMBER8 - * @arg @ref LL_MPU_REGION_NUMBER9 - * @arg @ref LL_MPU_REGION_NUMBER10 - * @arg @ref LL_MPU_REGION_NUMBER11 - * @arg @ref LL_MPU_REGION_NUMBER12 - * @arg @ref LL_MPU_REGION_NUMBER13 - * @arg @ref LL_MPU_REGION_NUMBER14 - * @arg @ref LL_MPU_REGION_NUMBER15 - * @note For cortex-M4 only 8 regions are available i.e only values from LL_MPU_REGION_NUMBER0 to LL_MPU_REGION_NUMBER7 are possible. - * @retval None - */ -__STATIC_INLINE void LL_MPU_DisableRegion(uint32_t Region) -{ - /* Set Region number */ - WRITE_REG(MPU->RNR, Region); - /* Disable the MPU region */ - CLEAR_BIT(MPU->RASR, MPU_RASR_ENABLE_Msk); -} - -/** - * @} - */ - -#endif /* __MPU_PRESENT */ -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_LL_CORTEX_H */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_crs.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_crs.h deleted file mode 100644 index 86ce847..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_crs.h +++ /dev/null @@ -1,780 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_ll_crs.h - * @author MCD Application Team - * @brief Header file of CRS LL module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_LL_CRS_H -#define STM32H7xx_LL_CRS_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx.h" - -/** @addtogroup STM32H7xx_LL_Driver - * @{ - */ - -#if defined(CRS) - -/** @defgroup CRS_LL CRS - * @{ - */ - -/* Private types -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private constants ---------------------------------------------------------*/ -/* Private macros ------------------------------------------------------------*/ - -/* Exported types ------------------------------------------------------------*/ -/* Exported constants --------------------------------------------------------*/ -/** @defgroup CRS_LL_Exported_Constants CRS Exported Constants - * @{ - */ - -/** @defgroup CRS_LL_EC_GET_FLAG Get Flags Defines - * @brief Flags defines which can be used with LL_CRS_ReadReg function - * @{ - */ -#define LL_CRS_ISR_SYNCOKF CRS_ISR_SYNCOKF -#define LL_CRS_ISR_SYNCWARNF CRS_ISR_SYNCWARNF -#define LL_CRS_ISR_ERRF CRS_ISR_ERRF -#define LL_CRS_ISR_ESYNCF CRS_ISR_ESYNCF -#define LL_CRS_ISR_SYNCERR CRS_ISR_SYNCERR -#define LL_CRS_ISR_SYNCMISS CRS_ISR_SYNCMISS -#define LL_CRS_ISR_TRIMOVF CRS_ISR_TRIMOVF -/** - * @} - */ - -/** @defgroup CRS_LL_EC_IT IT Defines - * @brief IT defines which can be used with LL_CRS_ReadReg and LL_CRS_WriteReg functions - * @{ - */ -#define LL_CRS_CR_SYNCOKIE CRS_CR_SYNCOKIE -#define LL_CRS_CR_SYNCWARNIE CRS_CR_SYNCWARNIE -#define LL_CRS_CR_ERRIE CRS_CR_ERRIE -#define LL_CRS_CR_ESYNCIE CRS_CR_ESYNCIE -/** - * @} - */ - -/** @defgroup CRS_LL_EC_SYNC_DIV Synchronization Signal Divider - * @{ - */ -#define LL_CRS_SYNC_DIV_1 0x00000000U /*!< Synchro Signal not divided (default) */ -#define LL_CRS_SYNC_DIV_2 CRS_CFGR_SYNCDIV_0 /*!< Synchro Signal divided by 2 */ -#define LL_CRS_SYNC_DIV_4 CRS_CFGR_SYNCDIV_1 /*!< Synchro Signal divided by 4 */ -#define LL_CRS_SYNC_DIV_8 (CRS_CFGR_SYNCDIV_1 | CRS_CFGR_SYNCDIV_0) /*!< Synchro Signal divided by 8 */ -#define LL_CRS_SYNC_DIV_16 CRS_CFGR_SYNCDIV_2 /*!< Synchro Signal divided by 16 */ -#define LL_CRS_SYNC_DIV_32 (CRS_CFGR_SYNCDIV_2 | CRS_CFGR_SYNCDIV_0) /*!< Synchro Signal divided by 32 */ -#define LL_CRS_SYNC_DIV_64 (CRS_CFGR_SYNCDIV_2 | CRS_CFGR_SYNCDIV_1) /*!< Synchro Signal divided by 64 */ -#define LL_CRS_SYNC_DIV_128 CRS_CFGR_SYNCDIV /*!< Synchro Signal divided by 128 */ -/** - * @} - */ - -/** @defgroup CRS_LL_EC_SYNC_SOURCE Synchronization Signal Source - * @{ - */ -#define LL_CRS_SYNC_SOURCE_GPIO 0x00000000U /*!< Synchro Signal source GPIO */ -#define LL_CRS_SYNC_SOURCE_LSE CRS_CFGR_SYNCSRC_0 /*!< Synchro Signal source LSE */ -#define LL_CRS_SYNC_SOURCE_USB CRS_CFGR_SYNCSRC_1 /*!< Synchro Signal source USB SOF (default)*/ -/** - * @} - */ - -/** @defgroup CRS_LL_EC_SYNC_POLARITY Synchronization Signal Polarity - * @{ - */ -#define LL_CRS_SYNC_POLARITY_RISING 0x00000000U /*!< Synchro Active on rising edge (default) */ -#define LL_CRS_SYNC_POLARITY_FALLING CRS_CFGR_SYNCPOL /*!< Synchro Active on falling edge */ -/** - * @} - */ - -/** @defgroup CRS_LL_EC_FREQERRORDIR Frequency Error Direction - * @{ - */ -#define LL_CRS_FREQ_ERROR_DIR_UP 0x00000000U /*!< Upcounting direction, the actual frequency is above the target */ -#define LL_CRS_FREQ_ERROR_DIR_DOWN CRS_ISR_FEDIR /*!< Downcounting direction, the actual frequency is below the target */ -/** - * @} - */ - -/** @defgroup CRS_LL_EC_DEFAULTVALUES Default Values - * @{ - */ -/** - * @brief Reset value of the RELOAD field - * @note The reset value of the RELOAD field corresponds to a target frequency of 48 MHz - * and a synchronization signal frequency of 1 kHz (SOF signal from USB) - */ -#define LL_CRS_RELOADVALUE_DEFAULT 0x0000BB7FU - -/** - * @brief Reset value of Frequency error limit. - */ -#define LL_CRS_ERRORLIMIT_DEFAULT 0x00000022U - -/** - * @brief Reset value of the HSI48 Calibration field - * @note The default value is 64, which corresponds to the middle of the trimming interval. - * The trimming step is specified in the product datasheet. - * A higher TRIM value corresponds to a higher output frequency. - */ -#define LL_CRS_HSI48CALIBRATION_DEFAULT 0x00000020U -/** - * @} - */ - -/** - * @} - */ - -/* Exported macro ------------------------------------------------------------*/ -/** @defgroup CRS_LL_Exported_Macros CRS Exported Macros - * @{ - */ - -/** @defgroup CRS_LL_EM_WRITE_READ Common Write and read registers Macros - * @{ - */ - -/** - * @brief Write a value in CRS register - * @param __INSTANCE__ CRS Instance - * @param __REG__ Register to be written - * @param __VALUE__ Value to be written in the register - * @retval None - */ -#define LL_CRS_WriteReg(__INSTANCE__, __REG__, __VALUE__) WRITE_REG(__INSTANCE__->__REG__, (__VALUE__)) - -/** - * @brief Read a value in CRS register - * @param __INSTANCE__ CRS Instance - * @param __REG__ Register to be read - * @retval Register value - */ -#define LL_CRS_ReadReg(__INSTANCE__, __REG__) READ_REG(__INSTANCE__->__REG__) -/** - * @} - */ - -/** @defgroup CRS_LL_EM_Exported_Macros_Calculate_Reload Exported_Macros_Calculate_Reload - * @{ - */ - -/** - * @brief Macro to calculate reload value to be set in CRS register according to target and sync frequencies - * @note The RELOAD value should be selected according to the ratio between - * the target frequency and the frequency of the synchronization source after - * prescaling. It is then decreased by one in order to reach the expected - * synchronization on the zero value. The formula is the following: - * RELOAD = (fTARGET / fSYNC) -1 - * @param __FTARGET__ Target frequency (value in Hz) - * @param __FSYNC__ Synchronization signal frequency (value in Hz) - * @retval Reload value (in Hz) - */ -#define __LL_CRS_CALC_CALCULATE_RELOADVALUE(__FTARGET__, __FSYNC__) (((__FTARGET__) / (__FSYNC__)) - 1U) - -/** - * @} - */ - -/** - * @} - */ - -/* Exported functions --------------------------------------------------------*/ -/** @defgroup CRS_LL_Exported_Functions CRS Exported Functions - * @{ - */ - -/** @defgroup CRS_LL_EF_Configuration Configuration - * @{ - */ - -/** - * @brief Enable Frequency error counter - * @note When this bit is set, the CRS_CFGR register is write-protected and cannot be modified - * @rmtoll CR CEN LL_CRS_EnableFreqErrorCounter - * @retval None - */ -__STATIC_INLINE void LL_CRS_EnableFreqErrorCounter(void) -{ - SET_BIT(CRS->CR, CRS_CR_CEN); -} - -/** - * @brief Disable Frequency error counter - * @rmtoll CR CEN LL_CRS_DisableFreqErrorCounter - * @retval None - */ -__STATIC_INLINE void LL_CRS_DisableFreqErrorCounter(void) -{ - CLEAR_BIT(CRS->CR, CRS_CR_CEN); -} - -/** - * @brief Check if Frequency error counter is enabled or not - * @rmtoll CR CEN LL_CRS_IsEnabledFreqErrorCounter - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_CRS_IsEnabledFreqErrorCounter(void) -{ - return ((READ_BIT(CRS->CR, CRS_CR_CEN) == (CRS_CR_CEN)) ? 1UL : 0UL); -} - -/** - * @brief Enable Automatic trimming counter - * @rmtoll CR AUTOTRIMEN LL_CRS_EnableAutoTrimming - * @retval None - */ -__STATIC_INLINE void LL_CRS_EnableAutoTrimming(void) -{ - SET_BIT(CRS->CR, CRS_CR_AUTOTRIMEN); -} - -/** - * @brief Disable Automatic trimming counter - * @rmtoll CR AUTOTRIMEN LL_CRS_DisableAutoTrimming - * @retval None - */ -__STATIC_INLINE void LL_CRS_DisableAutoTrimming(void) -{ - CLEAR_BIT(CRS->CR, CRS_CR_AUTOTRIMEN); -} - -/** - * @brief Check if Automatic trimming is enabled or not - * @rmtoll CR AUTOTRIMEN LL_CRS_IsEnabledAutoTrimming - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_CRS_IsEnabledAutoTrimming(void) -{ - return ((READ_BIT(CRS->CR, CRS_CR_AUTOTRIMEN) == (CRS_CR_AUTOTRIMEN)) ? 1UL : 0UL); -} - -/** - * @brief Set HSI48 oscillator smooth trimming - * @note When the AUTOTRIMEN bit is set, this field is controlled by hardware and is read-only - * @rmtoll CR TRIM LL_CRS_SetHSI48SmoothTrimming - * @param Value a number between Min_Data = 0 and Max_Data = 127 - * @note Default value can be set thanks to @ref LL_CRS_HSI48CALIBRATION_DEFAULT - * @retval None - */ -__STATIC_INLINE void LL_CRS_SetHSI48SmoothTrimming(uint32_t Value) -{ - MODIFY_REG(CRS->CR, CRS_CR_TRIM, Value << CRS_CR_TRIM_Pos); -} - -/** - * @brief Get HSI48 oscillator smooth trimming - * @rmtoll CR TRIM LL_CRS_GetHSI48SmoothTrimming - * @retval a number between Min_Data = 0 and Max_Data = 127 - */ -__STATIC_INLINE uint32_t LL_CRS_GetHSI48SmoothTrimming(void) -{ - return (uint32_t)(READ_BIT(CRS->CR, CRS_CR_TRIM) >> CRS_CR_TRIM_Pos); -} - -/** - * @brief Set counter reload value - * @rmtoll CFGR RELOAD LL_CRS_SetReloadCounter - * @param Value a number between Min_Data = 0 and Max_Data = 0xFFFF - * @note Default value can be set thanks to @ref LL_CRS_RELOADVALUE_DEFAULT - * Otherwise it can be calculated in using macro @ref __LL_CRS_CALC_CALCULATE_RELOADVALUE (_FTARGET_, _FSYNC_) - * @retval None - */ -__STATIC_INLINE void LL_CRS_SetReloadCounter(uint32_t Value) -{ - MODIFY_REG(CRS->CFGR, CRS_CFGR_RELOAD, Value); -} - -/** - * @brief Get counter reload value - * @rmtoll CFGR RELOAD LL_CRS_GetReloadCounter - * @retval a number between Min_Data = 0 and Max_Data = 0xFFFF - */ -__STATIC_INLINE uint32_t LL_CRS_GetReloadCounter(void) -{ - return (uint32_t)(READ_BIT(CRS->CFGR, CRS_CFGR_RELOAD)); -} - -/** - * @brief Set frequency error limit - * @rmtoll CFGR FELIM LL_CRS_SetFreqErrorLimit - * @param Value a number between Min_Data = 0 and Max_Data = 255 - * @note Default value can be set thanks to @ref LL_CRS_ERRORLIMIT_DEFAULT - * @retval None - */ -__STATIC_INLINE void LL_CRS_SetFreqErrorLimit(uint32_t Value) -{ - MODIFY_REG(CRS->CFGR, CRS_CFGR_FELIM, Value << CRS_CFGR_FELIM_Pos); -} - -/** - * @brief Get frequency error limit - * @rmtoll CFGR FELIM LL_CRS_GetFreqErrorLimit - * @retval A number between Min_Data = 0 and Max_Data = 255 - */ -__STATIC_INLINE uint32_t LL_CRS_GetFreqErrorLimit(void) -{ - return (uint32_t)(READ_BIT(CRS->CFGR, CRS_CFGR_FELIM) >> CRS_CFGR_FELIM_Pos); -} - -/** - * @brief Set division factor for SYNC signal - * @rmtoll CFGR SYNCDIV LL_CRS_SetSyncDivider - * @param Divider This parameter can be one of the following values: - * @arg @ref LL_CRS_SYNC_DIV_1 - * @arg @ref LL_CRS_SYNC_DIV_2 - * @arg @ref LL_CRS_SYNC_DIV_4 - * @arg @ref LL_CRS_SYNC_DIV_8 - * @arg @ref LL_CRS_SYNC_DIV_16 - * @arg @ref LL_CRS_SYNC_DIV_32 - * @arg @ref LL_CRS_SYNC_DIV_64 - * @arg @ref LL_CRS_SYNC_DIV_128 - * @retval None - */ -__STATIC_INLINE void LL_CRS_SetSyncDivider(uint32_t Divider) -{ - MODIFY_REG(CRS->CFGR, CRS_CFGR_SYNCDIV, Divider); -} - -/** - * @brief Get division factor for SYNC signal - * @rmtoll CFGR SYNCDIV LL_CRS_GetSyncDivider - * @retval Returned value can be one of the following values: - * @arg @ref LL_CRS_SYNC_DIV_1 - * @arg @ref LL_CRS_SYNC_DIV_2 - * @arg @ref LL_CRS_SYNC_DIV_4 - * @arg @ref LL_CRS_SYNC_DIV_8 - * @arg @ref LL_CRS_SYNC_DIV_16 - * @arg @ref LL_CRS_SYNC_DIV_32 - * @arg @ref LL_CRS_SYNC_DIV_64 - * @arg @ref LL_CRS_SYNC_DIV_128 - */ -__STATIC_INLINE uint32_t LL_CRS_GetSyncDivider(void) -{ - return (uint32_t)(READ_BIT(CRS->CFGR, CRS_CFGR_SYNCDIV)); -} - -/** - * @brief Set SYNC signal source - * @rmtoll CFGR SYNCSRC LL_CRS_SetSyncSignalSource - * @param Source This parameter can be one of the following values: - * @arg @ref LL_CRS_SYNC_SOURCE_GPIO - * @arg @ref LL_CRS_SYNC_SOURCE_LSE - * @arg @ref LL_CRS_SYNC_SOURCE_USB - * @retval None - */ -__STATIC_INLINE void LL_CRS_SetSyncSignalSource(uint32_t Source) -{ - MODIFY_REG(CRS->CFGR, CRS_CFGR_SYNCSRC, Source); -} - -/** - * @brief Get SYNC signal source - * @rmtoll CFGR SYNCSRC LL_CRS_GetSyncSignalSource - * @retval Returned value can be one of the following values: - * @arg @ref LL_CRS_SYNC_SOURCE_GPIO - * @arg @ref LL_CRS_SYNC_SOURCE_LSE - * @arg @ref LL_CRS_SYNC_SOURCE_USB - */ -__STATIC_INLINE uint32_t LL_CRS_GetSyncSignalSource(void) -{ - return (uint32_t)(READ_BIT(CRS->CFGR, CRS_CFGR_SYNCSRC)); -} - -/** - * @brief Set input polarity for the SYNC signal source - * @rmtoll CFGR SYNCPOL LL_CRS_SetSyncPolarity - * @param Polarity This parameter can be one of the following values: - * @arg @ref LL_CRS_SYNC_POLARITY_RISING - * @arg @ref LL_CRS_SYNC_POLARITY_FALLING - * @retval None - */ -__STATIC_INLINE void LL_CRS_SetSyncPolarity(uint32_t Polarity) -{ - MODIFY_REG(CRS->CFGR, CRS_CFGR_SYNCPOL, Polarity); -} - -/** - * @brief Get input polarity for the SYNC signal source - * @rmtoll CFGR SYNCPOL LL_CRS_GetSyncPolarity - * @retval Returned value can be one of the following values: - * @arg @ref LL_CRS_SYNC_POLARITY_RISING - * @arg @ref LL_CRS_SYNC_POLARITY_FALLING - */ -__STATIC_INLINE uint32_t LL_CRS_GetSyncPolarity(void) -{ - return (uint32_t)(READ_BIT(CRS->CFGR, CRS_CFGR_SYNCPOL)); -} - -/** - * @brief Configure CRS for the synchronization - * @rmtoll CR TRIM LL_CRS_ConfigSynchronization\n - * CFGR RELOAD LL_CRS_ConfigSynchronization\n - * CFGR FELIM LL_CRS_ConfigSynchronization\n - * CFGR SYNCDIV LL_CRS_ConfigSynchronization\n - * CFGR SYNCSRC LL_CRS_ConfigSynchronization\n - * CFGR SYNCPOL LL_CRS_ConfigSynchronization - * @param HSI48CalibrationValue a number between Min_Data = 0 and Max_Data = 63 - * @param ErrorLimitValue a number between Min_Data = 0 and Max_Data = 0xFFFF - * @param ReloadValue a number between Min_Data = 0 and Max_Data = 255 - * @param Settings This parameter can be a combination of the following values: - * @arg @ref LL_CRS_SYNC_DIV_1 or @ref LL_CRS_SYNC_DIV_2 or @ref LL_CRS_SYNC_DIV_4 or @ref LL_CRS_SYNC_DIV_8 - * or @ref LL_CRS_SYNC_DIV_16 or @ref LL_CRS_SYNC_DIV_32 or @ref LL_CRS_SYNC_DIV_64 or @ref LL_CRS_SYNC_DIV_128 - * @arg @ref LL_CRS_SYNC_SOURCE_GPIO or @ref LL_CRS_SYNC_SOURCE_LSE or @ref LL_CRS_SYNC_SOURCE_USB - * @arg @ref LL_CRS_SYNC_POLARITY_RISING or @ref LL_CRS_SYNC_POLARITY_FALLING - * @retval None - */ -__STATIC_INLINE void LL_CRS_ConfigSynchronization(uint32_t HSI48CalibrationValue, uint32_t ErrorLimitValue, uint32_t ReloadValue, uint32_t Settings) -{ - MODIFY_REG(CRS->CR, CRS_CR_TRIM, HSI48CalibrationValue); - MODIFY_REG(CRS->CFGR, - CRS_CFGR_RELOAD | CRS_CFGR_FELIM | CRS_CFGR_SYNCDIV | CRS_CFGR_SYNCSRC | CRS_CFGR_SYNCPOL, - ReloadValue | (ErrorLimitValue << CRS_CFGR_FELIM_Pos) | Settings); -} - -/** - * @} - */ - -/** @defgroup CRS_LL_EF_CRS_Management CRS_Management - * @{ - */ - -/** - * @brief Generate software SYNC event - * @rmtoll CR SWSYNC LL_CRS_GenerateEvent_SWSYNC - * @retval None - */ -__STATIC_INLINE void LL_CRS_GenerateEvent_SWSYNC(void) -{ - SET_BIT(CRS->CR, CRS_CR_SWSYNC); -} - -/** - * @brief Get the frequency error direction latched in the time of the last - * SYNC event - * @rmtoll ISR FEDIR LL_CRS_GetFreqErrorDirection - * @retval Returned value can be one of the following values: - * @arg @ref LL_CRS_FREQ_ERROR_DIR_UP - * @arg @ref LL_CRS_FREQ_ERROR_DIR_DOWN - */ -__STATIC_INLINE uint32_t LL_CRS_GetFreqErrorDirection(void) -{ - return (uint32_t)(READ_BIT(CRS->ISR, CRS_ISR_FEDIR)); -} - -/** - * @brief Get the frequency error counter value latched in the time of the last SYNC event - * @rmtoll ISR FECAP LL_CRS_GetFreqErrorCapture - * @retval A number between Min_Data = 0x0000 and Max_Data = 0xFFFF - */ -__STATIC_INLINE uint32_t LL_CRS_GetFreqErrorCapture(void) -{ - return (uint32_t)(READ_BIT(CRS->ISR, CRS_ISR_FECAP) >> CRS_ISR_FECAP_Pos); -} - -/** - * @} - */ - -/** @defgroup CRS_LL_EF_FLAG_Management FLAG_Management - * @{ - */ - -/** - * @brief Check if SYNC event OK signal occurred or not - * @rmtoll ISR SYNCOKF LL_CRS_IsActiveFlag_SYNCOK - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_CRS_IsActiveFlag_SYNCOK(void) -{ - return ((READ_BIT(CRS->ISR, CRS_ISR_SYNCOKF) == (CRS_ISR_SYNCOKF)) ? 1UL : 0UL); -} - -/** - * @brief Check if SYNC warning signal occurred or not - * @rmtoll ISR SYNCWARNF LL_CRS_IsActiveFlag_SYNCWARN - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_CRS_IsActiveFlag_SYNCWARN(void) -{ - return ((READ_BIT(CRS->ISR, CRS_ISR_SYNCWARNF) == (CRS_ISR_SYNCWARNF)) ? 1UL : 0UL); -} - -/** - * @brief Check if Synchronization or trimming error signal occurred or not - * @rmtoll ISR ERRF LL_CRS_IsActiveFlag_ERR - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_CRS_IsActiveFlag_ERR(void) -{ - return ((READ_BIT(CRS->ISR, CRS_ISR_ERRF) == (CRS_ISR_ERRF)) ? 1UL : 0UL); -} - -/** - * @brief Check if Expected SYNC signal occurred or not - * @rmtoll ISR ESYNCF LL_CRS_IsActiveFlag_ESYNC - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_CRS_IsActiveFlag_ESYNC(void) -{ - return ((READ_BIT(CRS->ISR, CRS_ISR_ESYNCF) == (CRS_ISR_ESYNCF)) ? 1UL : 0UL); -} - -/** - * @brief Check if SYNC error signal occurred or not - * @rmtoll ISR SYNCERR LL_CRS_IsActiveFlag_SYNCERR - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_CRS_IsActiveFlag_SYNCERR(void) -{ - return ((READ_BIT(CRS->ISR, CRS_ISR_SYNCERR) == (CRS_ISR_SYNCERR)) ? 1UL : 0UL); -} - -/** - * @brief Check if SYNC missed error signal occurred or not - * @rmtoll ISR SYNCMISS LL_CRS_IsActiveFlag_SYNCMISS - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_CRS_IsActiveFlag_SYNCMISS(void) -{ - return ((READ_BIT(CRS->ISR, CRS_ISR_SYNCMISS) == (CRS_ISR_SYNCMISS)) ? 1UL : 0UL); -} - -/** - * @brief Check if Trimming overflow or underflow occurred or not - * @rmtoll ISR TRIMOVF LL_CRS_IsActiveFlag_TRIMOVF - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_CRS_IsActiveFlag_TRIMOVF(void) -{ - return ((READ_BIT(CRS->ISR, CRS_ISR_TRIMOVF) == (CRS_ISR_TRIMOVF)) ? 1UL : 0UL); -} - -/** - * @brief Clear the SYNC event OK flag - * @rmtoll ICR SYNCOKC LL_CRS_ClearFlag_SYNCOK - * @retval None - */ -__STATIC_INLINE void LL_CRS_ClearFlag_SYNCOK(void) -{ - WRITE_REG(CRS->ICR, CRS_ICR_SYNCOKC); -} - -/** - * @brief Clear the SYNC warning flag - * @rmtoll ICR SYNCWARNC LL_CRS_ClearFlag_SYNCWARN - * @retval None - */ -__STATIC_INLINE void LL_CRS_ClearFlag_SYNCWARN(void) -{ - WRITE_REG(CRS->ICR, CRS_ICR_SYNCWARNC); -} - -/** - * @brief Clear TRIMOVF, SYNCMISS and SYNCERR bits and consequently also - * the ERR flag - * @rmtoll ICR ERRC LL_CRS_ClearFlag_ERR - * @retval None - */ -__STATIC_INLINE void LL_CRS_ClearFlag_ERR(void) -{ - WRITE_REG(CRS->ICR, CRS_ICR_ERRC); -} - -/** - * @brief Clear Expected SYNC flag - * @rmtoll ICR ESYNCC LL_CRS_ClearFlag_ESYNC - * @retval None - */ -__STATIC_INLINE void LL_CRS_ClearFlag_ESYNC(void) -{ - WRITE_REG(CRS->ICR, CRS_ICR_ESYNCC); -} - -/** - * @} - */ - -/** @defgroup CRS_LL_EF_IT_Management IT_Management - * @{ - */ - -/** - * @brief Enable SYNC event OK interrupt - * @rmtoll CR SYNCOKIE LL_CRS_EnableIT_SYNCOK - * @retval None - */ -__STATIC_INLINE void LL_CRS_EnableIT_SYNCOK(void) -{ - SET_BIT(CRS->CR, CRS_CR_SYNCOKIE); -} - -/** - * @brief Disable SYNC event OK interrupt - * @rmtoll CR SYNCOKIE LL_CRS_DisableIT_SYNCOK - * @retval None - */ -__STATIC_INLINE void LL_CRS_DisableIT_SYNCOK(void) -{ - CLEAR_BIT(CRS->CR, CRS_CR_SYNCOKIE); -} - -/** - * @brief Check if SYNC event OK interrupt is enabled or not - * @rmtoll CR SYNCOKIE LL_CRS_IsEnabledIT_SYNCOK - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_CRS_IsEnabledIT_SYNCOK(void) -{ - return ((READ_BIT(CRS->CR, CRS_CR_SYNCOKIE) == (CRS_CR_SYNCOKIE)) ? 1UL : 0UL); -} - -/** - * @brief Enable SYNC warning interrupt - * @rmtoll CR SYNCWARNIE LL_CRS_EnableIT_SYNCWARN - * @retval None - */ -__STATIC_INLINE void LL_CRS_EnableIT_SYNCWARN(void) -{ - SET_BIT(CRS->CR, CRS_CR_SYNCWARNIE); -} - -/** - * @brief Disable SYNC warning interrupt - * @rmtoll CR SYNCWARNIE LL_CRS_DisableIT_SYNCWARN - * @retval None - */ -__STATIC_INLINE void LL_CRS_DisableIT_SYNCWARN(void) -{ - CLEAR_BIT(CRS->CR, CRS_CR_SYNCWARNIE); -} - -/** - * @brief Check if SYNC warning interrupt is enabled or not - * @rmtoll CR SYNCWARNIE LL_CRS_IsEnabledIT_SYNCWARN - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_CRS_IsEnabledIT_SYNCWARN(void) -{ - return ((READ_BIT(CRS->CR, CRS_CR_SYNCWARNIE) == (CRS_CR_SYNCWARNIE)) ? 1UL : 0UL); -} - -/** - * @brief Enable Synchronization or trimming error interrupt - * @rmtoll CR ERRIE LL_CRS_EnableIT_ERR - * @retval None - */ -__STATIC_INLINE void LL_CRS_EnableIT_ERR(void) -{ - SET_BIT(CRS->CR, CRS_CR_ERRIE); -} - -/** - * @brief Disable Synchronization or trimming error interrupt - * @rmtoll CR ERRIE LL_CRS_DisableIT_ERR - * @retval None - */ -__STATIC_INLINE void LL_CRS_DisableIT_ERR(void) -{ - CLEAR_BIT(CRS->CR, CRS_CR_ERRIE); -} - -/** - * @brief Check if Synchronization or trimming error interrupt is enabled or not - * @rmtoll CR ERRIE LL_CRS_IsEnabledIT_ERR - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_CRS_IsEnabledIT_ERR(void) -{ - return ((READ_BIT(CRS->CR, CRS_CR_ERRIE) == (CRS_CR_ERRIE)) ? 1UL : 0UL); -} - -/** - * @brief Enable Expected SYNC interrupt - * @rmtoll CR ESYNCIE LL_CRS_EnableIT_ESYNC - * @retval None - */ -__STATIC_INLINE void LL_CRS_EnableIT_ESYNC(void) -{ - SET_BIT(CRS->CR, CRS_CR_ESYNCIE); -} - -/** - * @brief Disable Expected SYNC interrupt - * @rmtoll CR ESYNCIE LL_CRS_DisableIT_ESYNC - * @retval None - */ -__STATIC_INLINE void LL_CRS_DisableIT_ESYNC(void) -{ - CLEAR_BIT(CRS->CR, CRS_CR_ESYNCIE); -} - -/** - * @brief Check if Expected SYNC interrupt is enabled or not - * @rmtoll CR ESYNCIE LL_CRS_IsEnabledIT_ESYNC - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_CRS_IsEnabledIT_ESYNC(void) -{ - return ((READ_BIT(CRS->CR, CRS_CR_ESYNCIE) == (CRS_CR_ESYNCIE)) ? 1UL : 0UL); -} - -/** - * @} - */ - -#if defined(USE_FULL_LL_DRIVER) -/** @defgroup CRS_LL_EF_Init Initialization and de-initialization functions - * @{ - */ - -ErrorStatus LL_CRS_DeInit(void); - -/** - * @} - */ -#endif /* USE_FULL_LL_DRIVER */ - -/** - * @} - */ - -/** - * @} - */ - -#endif /* defined(CRS) */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_LL_CRS_H */ diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h deleted file mode 100644 index 4733bc7..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_delayblock.h +++ /dev/null @@ -1,93 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_ll_delayblock.h - * @author MCD Application Team - * @brief Header file of Delay Block module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_LL_DLYB_H -#define STM32H7xx_LL_DLYB_H - -#ifdef __cplusplus - extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal_def.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @addtogroup DELAYBLOCK_LL - * @{ - */ - -/* Exported types ------------------------------------------------------------*/ -/** @defgroup DELAYBLOCK_LL_Exported_Types DELAYBLOCK_LL Exported Types - * @{ - */ - - -/** - * @} - */ - -/* Exported constants --------------------------------------------------------*/ -/** @defgroup DLYB_Exported_Constants Delay Block Exported Constants - * @{ - */ - - -#define DLYB_MAX_UNIT ((uint32_t)0x00000080U) /*!< Max UNIT value (128) */ -#define DLYB_MAX_SELECT ((uint32_t)0x0000000CU) /*!< Max SELECT value (12) */ - -/** - * @} - */ - -/** @addtogroup DelayBlock_LL_Exported_Functions - * @{ - */ - -/* Peripheral Control functions ************************************************/ -/** @addtogroup HAL_DELAY_LL_Group1 - * @{ - */ -HAL_StatusTypeDef DelayBlock_Enable(DLYB_TypeDef *DLYBx); -HAL_StatusTypeDef DelayBlock_Disable(DLYB_TypeDef *DLYBx); -HAL_StatusTypeDef DelayBlock_Configure(DLYB_TypeDef *DLYBx, uint32_t PhaseSel, uint32_t Units); - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - - /** - * @} - */ -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_LL_DLYB_H */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_dma.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_dma.h deleted file mode 100644 index 100a2c5..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_dma.h +++ /dev/null @@ -1,3287 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_ll_dma.h - * @author MCD Application Team - * @brief Header file of DMA LL module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_LL_DMA_H -#define STM32H7xx_LL_DMA_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx.h" -#include "stm32h7xx_ll_dmamux.h" - -/** @addtogroup STM32H7xx_LL_Driver - * @{ - */ - -#if defined (DMA1) || defined (DMA2) - -/** @defgroup DMA_LL DMA - * @{ - */ - -/* Private types -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/** @defgroup DMA_LL_Private_Variables DMA Private Variables - * @{ - */ -/* Array used to get the DMA stream register offset versus stream index LL_DMA_STREAM_x */ -static const uint8_t LL_DMA_STR_OFFSET_TAB[] = -{ - (uint8_t)(DMA1_Stream0_BASE - DMA1_BASE), - (uint8_t)(DMA1_Stream1_BASE - DMA1_BASE), - (uint8_t)(DMA1_Stream2_BASE - DMA1_BASE), - (uint8_t)(DMA1_Stream3_BASE - DMA1_BASE), - (uint8_t)(DMA1_Stream4_BASE - DMA1_BASE), - (uint8_t)(DMA1_Stream5_BASE - DMA1_BASE), - (uint8_t)(DMA1_Stream6_BASE - DMA1_BASE), - (uint8_t)(DMA1_Stream7_BASE - DMA1_BASE) -}; - - -/** - * @} - */ - -/* Private macros ------------------------------------------------------------*/ -/** @defgroup DMA_LL_Private_Macros DMA LL Private Macros - * @{ - */ -/** - * @brief Helper macro to convert DMA Instance DMAx into DMAMUX channel - * @note DMAMUX channel 0 to 7 are mapped to DMA1 stream 0 to 7. - * DMAMUX channel 8 to 15 are mapped to DMA2 stream 0 to 7. - * @param __DMA_INSTANCE__ DMAx - * @retval Channel_Offset (LL_DMAMUX_CHANNEL_8 or 0). - */ -#define LL_DMA_INSTANCE_TO_DMAMUX_CHANNEL(__DMA_INSTANCE__) \ -(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) ? 0UL : 8UL) -/** - * @} - */ - -/* Exported types ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) -/** @defgroup DMA_LL_ES_INIT DMA Exported Init structure - * @{ - */ -typedef struct -{ - uint32_t PeriphOrM2MSrcAddress; /*!< Specifies the peripheral base address for DMA transfer - or as Source base address in case of memory to memory transfer direction. - - This parameter must be a value between Min_Data = 0 and Max_Data = 0xFFFFFFFF. */ - - uint32_t MemoryOrM2MDstAddress; /*!< Specifies the memory base address for DMA transfer - or as Destination base address in case of memory to memory transfer direction. - - This parameter must be a value between Min_Data = 0 and Max_Data = 0xFFFFFFFF. */ - - uint32_t Direction; /*!< Specifies if the data will be transferred from memory to peripheral, - from memory to memory or from peripheral to memory. - This parameter can be a value of @ref DMA_LL_EC_DIRECTION - - This feature can be modified afterwards using unitary function @ref LL_DMA_SetDataTransferDirection(). */ - - uint32_t Mode; /*!< Specifies the normal or circular operation mode. - This parameter can be a value of @ref DMA_LL_EC_MODE - @note The circular buffer mode cannot be used if the memory to memory - data transfer direction is configured on the selected Stream - - This feature can be modified afterwards using unitary function @ref LL_DMA_SetMode(). */ - - uint32_t PeriphOrM2MSrcIncMode; /*!< Specifies whether the Peripheral address or Source address in case of memory to memory transfer direction - is incremented or not. - This parameter can be a value of @ref DMA_LL_EC_PERIPH - - This feature can be modified afterwards using unitary function @ref LL_DMA_SetPeriphIncMode(). */ - - uint32_t MemoryOrM2MDstIncMode; /*!< Specifies whether the Memory address or Destination address in case of memory to memory transfer direction - is incremented or not. - This parameter can be a value of @ref DMA_LL_EC_MEMORY - - This feature can be modified afterwards using unitary function @ref LL_DMA_SetMemoryIncMode(). */ - - uint32_t PeriphOrM2MSrcDataSize; /*!< Specifies the Peripheral data size alignment or Source data size alignment (byte, half word, word) - in case of memory to memory transfer direction. - This parameter can be a value of @ref DMA_LL_EC_PDATAALIGN - - This feature can be modified afterwards using unitary function @ref LL_DMA_SetPeriphSize(). */ - - uint32_t MemoryOrM2MDstDataSize; /*!< Specifies the Memory data size alignment or Destination data size alignment (byte, half word, word) - in case of memory to memory transfer direction. - This parameter can be a value of @ref DMA_LL_EC_MDATAALIGN - - This feature can be modified afterwards using unitary function @ref LL_DMA_SetMemorySize(). */ - - uint32_t NbData; /*!< Specifies the number of data to transfer, in data unit. - The data unit is equal to the source buffer configuration set in PeripheralSize - or MemorySize parameters depending in the transfer direction. - This parameter must be a value between Min_Data = 0 and Max_Data = 0x0000FFFF - - This feature can be modified afterwards using unitary function @ref LL_DMA_SetDataLength(). */ - - uint32_t PeriphRequest; /*!< Specifies the peripheral request. - This parameter can be a value of @ref DMAMUX1_Request_selection - - This feature can be modified afterwards using unitary function @ref LL_DMA_SetPeriphRequest(). */ - - uint32_t Priority; /*!< Specifies the channel priority level. - This parameter can be a value of @ref DMA_LL_EC_PRIORITY - - This feature can be modified afterwards using unitary function @ref LL_DMA_SetStreamPriorityLevel(). */ - - uint32_t FIFOMode; /*!< Specifies if the FIFO mode or Direct mode will be used for the specified stream. - This parameter can be a value of @ref DMA_LL_FIFOMODE - @note The Direct mode (FIFO mode disabled) cannot be used if the - memory-to-memory data transfer is configured on the selected stream - - This feature can be modified afterwards using unitary functions @ref LL_DMA_EnableFifoMode() or @ref LL_DMA_EnableFifoMode() . */ - - uint32_t FIFOThreshold; /*!< Specifies the FIFO threshold level. - This parameter can be a value of @ref DMA_LL_EC_FIFOTHRESHOLD - - This feature can be modified afterwards using unitary function @ref LL_DMA_SetFIFOThreshold(). */ - - uint32_t MemBurst; /*!< Specifies the Burst transfer configuration for the memory transfers. - It specifies the amount of data to be transferred in a single non interruptible - transaction. - This parameter can be a value of @ref DMA_LL_EC_MBURST - @note The burst mode is possible only if the address Increment mode is enabled. - - This feature can be modified afterwards using unitary function @ref LL_DMA_SetMemoryBurstxfer(). */ - - uint32_t PeriphBurst; /*!< Specifies the Burst transfer configuration for the peripheral transfers. - It specifies the amount of data to be transferred in a single non interruptible - transaction. - This parameter can be a value of @ref DMA_LL_EC_PBURST - @note The burst mode is possible only if the address Increment mode is enabled. - - This feature can be modified afterwards using unitary function @ref LL_DMA_SetPeriphBurstxfer(). */ - -} LL_DMA_InitTypeDef; -/** - * @} - */ -#endif /*USE_FULL_LL_DRIVER*/ -/* Exported constants --------------------------------------------------------*/ -/** @defgroup DMA_LL_Exported_Constants DMA Exported Constants - * @{ - */ - -/** @defgroup DMA_LL_EC_STREAM STREAM - * @{ - */ -#define LL_DMA_STREAM_0 0x00000000U -#define LL_DMA_STREAM_1 0x00000001U -#define LL_DMA_STREAM_2 0x00000002U -#define LL_DMA_STREAM_3 0x00000003U -#define LL_DMA_STREAM_4 0x00000004U -#define LL_DMA_STREAM_5 0x00000005U -#define LL_DMA_STREAM_6 0x00000006U -#define LL_DMA_STREAM_7 0x00000007U -#define LL_DMA_STREAM_ALL 0xFFFF0000U -/** - * @} - */ - - -/** @defgroup DMA_LL_EC_DIRECTION DIRECTION - * @{ - */ -#define LL_DMA_DIRECTION_PERIPH_TO_MEMORY 0x00000000U /*!< Peripheral to memory direction */ -#define LL_DMA_DIRECTION_MEMORY_TO_PERIPH DMA_SxCR_DIR_0 /*!< Memory to peripheral direction */ -#define LL_DMA_DIRECTION_MEMORY_TO_MEMORY DMA_SxCR_DIR_1 /*!< Memory to memory direction */ -/** - * @} - */ - -/** @defgroup DMA_LL_EC_MODE MODE - * @{ - */ -#define LL_DMA_MODE_NORMAL 0x00000000U /*!< Normal Mode */ -#define LL_DMA_MODE_CIRCULAR DMA_SxCR_CIRC /*!< Circular Mode */ -#define LL_DMA_MODE_PFCTRL DMA_SxCR_PFCTRL /*!< Peripheral flow control mode */ -/** - * @} - */ - -/** @defgroup DMA_LL_EC_DOUBLEBUFFER_MODE DOUBLE BUFFER MODE - * @{ - */ -#define LL_DMA_DOUBLEBUFFER_MODE_DISABLE 0x00000000U /*!< Disable double buffering mode */ -#define LL_DMA_DOUBLEBUFFER_MODE_ENABLE DMA_SxCR_DBM /*!< Enable double buffering mode */ -/** - * @} - */ - -/** @defgroup DMA_LL_EC_PERIPH PERIPH - * @{ - */ -#define LL_DMA_PERIPH_NOINCREMENT 0x00000000U /*!< Peripheral increment mode Disable */ -#define LL_DMA_PERIPH_INCREMENT DMA_SxCR_PINC /*!< Peripheral increment mode Enable */ -/** - * @} - */ - -/** @defgroup DMA_LL_EC_MEMORY MEMORY - * @{ - */ -#define LL_DMA_MEMORY_NOINCREMENT 0x00000000U /*!< Memory increment mode Disable */ -#define LL_DMA_MEMORY_INCREMENT DMA_SxCR_MINC /*!< Memory increment mode Enable */ -/** - * @} - */ - -/** @defgroup DMA_LL_EC_PDATAALIGN PDATAALIGN - * @{ - */ -#define LL_DMA_PDATAALIGN_BYTE 0x00000000U /*!< Peripheral data alignment : Byte */ -#define LL_DMA_PDATAALIGN_HALFWORD DMA_SxCR_PSIZE_0 /*!< Peripheral data alignment : HalfWord */ -#define LL_DMA_PDATAALIGN_WORD DMA_SxCR_PSIZE_1 /*!< Peripheral data alignment : Word */ -/** - * @} - */ - -/** @defgroup DMA_LL_EC_MDATAALIGN MDATAALIGN - * @{ - */ -#define LL_DMA_MDATAALIGN_BYTE 0x00000000U /*!< Memory data alignment : Byte */ -#define LL_DMA_MDATAALIGN_HALFWORD DMA_SxCR_MSIZE_0 /*!< Memory data alignment : HalfWord */ -#define LL_DMA_MDATAALIGN_WORD DMA_SxCR_MSIZE_1 /*!< Memory data alignment : Word */ -/** - * @} - */ - -/** @defgroup DMA_LL_EC_OFFSETSIZE OFFSETSIZE - * @{ - */ -#define LL_DMA_OFFSETSIZE_PSIZE 0x00000000U /*!< Peripheral increment offset size is linked to the PSIZE */ -#define LL_DMA_OFFSETSIZE_FIXEDTO4 DMA_SxCR_PINCOS /*!< Peripheral increment offset size is fixed to 4 (32-bit alignment) */ -/** - * @} - */ - -/** @defgroup DMA_LL_EC_PRIORITY PRIORITY - * @{ - */ -#define LL_DMA_PRIORITY_LOW 0x00000000U /*!< Priority level : Low */ -#define LL_DMA_PRIORITY_MEDIUM DMA_SxCR_PL_0 /*!< Priority level : Medium */ -#define LL_DMA_PRIORITY_HIGH DMA_SxCR_PL_1 /*!< Priority level : High */ -#define LL_DMA_PRIORITY_VERYHIGH DMA_SxCR_PL /*!< Priority level : Very_High */ -/** - * @} - */ - - -/** @defgroup DMA_LL_EC_MBURST MBURST - * @{ - */ -#define LL_DMA_MBURST_SINGLE 0x00000000U /*!< Memory burst single transfer configuration */ -#define LL_DMA_MBURST_INC4 DMA_SxCR_MBURST_0 /*!< Memory burst of 4 beats transfer configuration */ -#define LL_DMA_MBURST_INC8 DMA_SxCR_MBURST_1 /*!< Memory burst of 8 beats transfer configuration */ -#define LL_DMA_MBURST_INC16 (DMA_SxCR_MBURST_0 | DMA_SxCR_MBURST_1) /*!< Memory burst of 16 beats transfer configuration */ -/** - * @} - */ - -/** @defgroup DMA_LL_EC_PBURST PBURST - * @{ - */ -#define LL_DMA_PBURST_SINGLE 0x00000000U /*!< Peripheral burst single transfer configuration */ -#define LL_DMA_PBURST_INC4 DMA_SxCR_PBURST_0 /*!< Peripheral burst of 4 beats transfer configuration */ -#define LL_DMA_PBURST_INC8 DMA_SxCR_PBURST_1 /*!< Peripheral burst of 8 beats transfer configuration */ -#define LL_DMA_PBURST_INC16 (DMA_SxCR_PBURST_0 | DMA_SxCR_PBURST_1) /*!< Peripheral burst of 16 beats transfer configuration */ -/** - * @} - */ - -/** @defgroup DMA_LL_FIFOMODE DMA_LL_FIFOMODE - * @{ - */ -#define LL_DMA_FIFOMODE_DISABLE 0x00000000U /*!< FIFO mode disable (direct mode is enabled) */ -#define LL_DMA_FIFOMODE_ENABLE DMA_SxFCR_DMDIS /*!< FIFO mode enable */ -/** - * @} - */ - -/** @defgroup DMA_LL_EC_FIFOSTATUS_0 FIFOSTATUS 0 - * @{ - */ -#define LL_DMA_FIFOSTATUS_0_25 0x00000000U /*!< 0 < fifo_level < 1/4 */ -#define LL_DMA_FIFOSTATUS_25_50 DMA_SxFCR_FS_0 /*!< 1/4 < fifo_level < 1/2 */ -#define LL_DMA_FIFOSTATUS_50_75 DMA_SxFCR_FS_1 /*!< 1/2 < fifo_level < 3/4 */ -#define LL_DMA_FIFOSTATUS_75_100 (DMA_SxFCR_FS_1 | DMA_SxFCR_FS_0) /*!< 3/4 < fifo_level < full */ -#define LL_DMA_FIFOSTATUS_EMPTY DMA_SxFCR_FS_2 /*!< FIFO is empty */ -#define LL_DMA_FIFOSTATUS_FULL (DMA_SxFCR_FS_2 | DMA_SxFCR_FS_0) /*!< FIFO is full */ -/** - * @} - */ - -/** @defgroup DMA_LL_EC_FIFOTHRESHOLD FIFOTHRESHOLD - * @{ - */ -#define LL_DMA_FIFOTHRESHOLD_1_4 0x00000000U /*!< FIFO threshold 1 quart full configuration */ -#define LL_DMA_FIFOTHRESHOLD_1_2 DMA_SxFCR_FTH_0 /*!< FIFO threshold half full configuration */ -#define LL_DMA_FIFOTHRESHOLD_3_4 DMA_SxFCR_FTH_1 /*!< FIFO threshold 3 quarts full configuration */ -#define LL_DMA_FIFOTHRESHOLD_FULL DMA_SxFCR_FTH /*!< FIFO threshold full configuration */ -/** - * @} - */ - -/** @defgroup DMA_LL_EC_CURRENTTARGETMEM CURRENTTARGETMEM - * @{ - */ -#define LL_DMA_CURRENTTARGETMEM0 0x00000000U /*!< Set CurrentTarget Memory to Memory 0 */ -#define LL_DMA_CURRENTTARGETMEM1 DMA_SxCR_CT /*!< Set CurrentTarget Memory to Memory 1 */ -/** - * @} - */ - -/** - * @} - */ - -/* Exported macro ------------------------------------------------------------*/ -/** @defgroup DMA_LL_Exported_Macros DMA Exported Macros - * @{ - */ - -/** @defgroup DMA_LL_EM_WRITE_READ Common Write and read registers macros - * @{ - */ -/** - * @brief Write a value in DMA register - * @param __INSTANCE__ DMA Instance - * @param __REG__ Register to be written - * @param __VALUE__ Value to be written in the register - * @retval None - */ -#define LL_DMA_WriteReg(__INSTANCE__, __REG__, __VALUE__) WRITE_REG((__INSTANCE__)->__REG__, (__VALUE__)) - -/** - * @brief Read a value in DMA register - * @param __INSTANCE__ DMA Instance - * @param __REG__ Register to be read - * @retval Register value - */ -#define LL_DMA_ReadReg(__INSTANCE__, __REG__) READ_REG(__INSTANCE__->__REG__) -/** - * @} - */ - -/** @defgroup DMA_LL_EM_CONVERT_DMAxCHANNELy Convert DMAxStreamy - * @{ - */ -/** - * @brief Convert DMAx_Streamy into DMAx - * @param __STREAM_INSTANCE__ DMAx_Streamy - * @retval DMAx - */ -#define __LL_DMA_GET_INSTANCE(__STREAM_INSTANCE__) \ -(((uint32_t)(__STREAM_INSTANCE__) > ((uint32_t)DMA1_Stream7)) ? DMA2 : DMA1) - -/** - * @brief Convert DMAx_Streamy into LL_DMA_STREAM_y - * @param __STREAM_INSTANCE__ DMAx_Streamy - * @retval LL_DMA_STREAM_y - */ -#define __LL_DMA_GET_STREAM(__STREAM_INSTANCE__) \ -(((uint32_t)(__STREAM_INSTANCE__) == ((uint32_t)DMA1_Stream0)) ? LL_DMA_STREAM_0 : \ - ((uint32_t)(__STREAM_INSTANCE__) == ((uint32_t)DMA2_Stream0)) ? LL_DMA_STREAM_0 : \ - ((uint32_t)(__STREAM_INSTANCE__) == ((uint32_t)DMA1_Stream1)) ? LL_DMA_STREAM_1 : \ - ((uint32_t)(__STREAM_INSTANCE__) == ((uint32_t)DMA2_Stream1)) ? LL_DMA_STREAM_1 : \ - ((uint32_t)(__STREAM_INSTANCE__) == ((uint32_t)DMA1_Stream2)) ? LL_DMA_STREAM_2 : \ - ((uint32_t)(__STREAM_INSTANCE__) == ((uint32_t)DMA2_Stream2)) ? LL_DMA_STREAM_2 : \ - ((uint32_t)(__STREAM_INSTANCE__) == ((uint32_t)DMA1_Stream3)) ? LL_DMA_STREAM_3 : \ - ((uint32_t)(__STREAM_INSTANCE__) == ((uint32_t)DMA2_Stream3)) ? LL_DMA_STREAM_3 : \ - ((uint32_t)(__STREAM_INSTANCE__) == ((uint32_t)DMA1_Stream4)) ? LL_DMA_STREAM_4 : \ - ((uint32_t)(__STREAM_INSTANCE__) == ((uint32_t)DMA2_Stream4)) ? LL_DMA_STREAM_4 : \ - ((uint32_t)(__STREAM_INSTANCE__) == ((uint32_t)DMA1_Stream5)) ? LL_DMA_STREAM_5 : \ - ((uint32_t)(__STREAM_INSTANCE__) == ((uint32_t)DMA2_Stream5)) ? LL_DMA_STREAM_5 : \ - ((uint32_t)(__STREAM_INSTANCE__) == ((uint32_t)DMA1_Stream6)) ? LL_DMA_STREAM_6 : \ - ((uint32_t)(__STREAM_INSTANCE__) == ((uint32_t)DMA2_Stream6)) ? LL_DMA_STREAM_6 : \ - LL_DMA_STREAM_7) - -/** - * @brief Convert DMA Instance DMAx and LL_DMA_STREAM_y into DMAx_Streamy - * @param __DMA_INSTANCE__ DMAx - * @param __STREAM__ LL_DMA_STREAM_y - * @retval DMAx_Streamy - */ -#define __LL_DMA_GET_STREAM_INSTANCE(__DMA_INSTANCE__, __STREAM__) \ -((((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__STREAM__) == ((uint32_t)LL_DMA_STREAM_0))) ? DMA1_Stream0 : \ - (((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA2)) && ((uint32_t)(__STREAM__) == ((uint32_t)LL_DMA_STREAM_0))) ? DMA2_Stream0 : \ - (((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__STREAM__) == ((uint32_t)LL_DMA_STREAM_1))) ? DMA1_Stream1 : \ - (((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA2)) && ((uint32_t)(__STREAM__) == ((uint32_t)LL_DMA_STREAM_1))) ? DMA2_Stream1 : \ - (((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__STREAM__) == ((uint32_t)LL_DMA_STREAM_2))) ? DMA1_Stream2 : \ - (((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA2)) && ((uint32_t)(__STREAM__) == ((uint32_t)LL_DMA_STREAM_2))) ? DMA2_Stream2 : \ - (((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__STREAM__) == ((uint32_t)LL_DMA_STREAM_3))) ? DMA1_Stream3 : \ - (((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA2)) && ((uint32_t)(__STREAM__) == ((uint32_t)LL_DMA_STREAM_3))) ? DMA2_Stream3 : \ - (((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__STREAM__) == ((uint32_t)LL_DMA_STREAM_4))) ? DMA1_Stream4 : \ - (((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA2)) && ((uint32_t)(__STREAM__) == ((uint32_t)LL_DMA_STREAM_4))) ? DMA2_Stream4 : \ - (((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__STREAM__) == ((uint32_t)LL_DMA_STREAM_5))) ? DMA1_Stream5 : \ - (((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA2)) && ((uint32_t)(__STREAM__) == ((uint32_t)LL_DMA_STREAM_5))) ? DMA2_Stream5 : \ - (((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__STREAM__) == ((uint32_t)LL_DMA_STREAM_6))) ? DMA1_Stream6 : \ - (((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA2)) && ((uint32_t)(__STREAM__) == ((uint32_t)LL_DMA_STREAM_6))) ? DMA2_Stream6 : \ - (((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__STREAM__) == ((uint32_t)LL_DMA_STREAM_7))) ? DMA1_Stream7 : \ - DMA2_Stream7) - -/** - * @} - */ - -/** - * @} - */ - - -/* Exported functions --------------------------------------------------------*/ -/** @defgroup DMA_LL_Exported_Functions DMA Exported Functions - * @{ - */ - -/** @defgroup DMA_LL_EF_Configuration Configuration - * @{ - */ -/** - * @brief Enable DMA stream. - * @rmtoll CR EN LL_DMA_EnableStream - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval None - */ -__STATIC_INLINE void LL_DMA_EnableStream(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - SET_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_EN); -} - -/** - * @brief Disable DMA stream. - * @rmtoll CR EN LL_DMA_DisableStream - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval None - */ -__STATIC_INLINE void LL_DMA_DisableStream(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - CLEAR_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_EN); -} - -/** - * @brief Check if DMA stream is enabled or disabled. - * @rmtoll CR EN LL_DMA_IsEnabledStream - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsEnabledStream(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - return ((READ_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_EN) == (DMA_SxCR_EN)) ? 1UL : 0UL); -} - -/** - * @brief Configure all parameters linked to DMA transfer. - * @rmtoll CR DIR LL_DMA_ConfigTransfer\n - * CR CIRC LL_DMA_ConfigTransfer\n - * CR PINC LL_DMA_ConfigTransfer\n - * CR MINC LL_DMA_ConfigTransfer\n - * CR PSIZE LL_DMA_ConfigTransfer\n - * CR MSIZE LL_DMA_ConfigTransfer\n - * CR PL LL_DMA_ConfigTransfer\n - * CR PFCTRL LL_DMA_ConfigTransfer - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @param Configuration This parameter must be a combination of all the following values: - * @arg @ref LL_DMA_DIRECTION_PERIPH_TO_MEMORY or @ref LL_DMA_DIRECTION_MEMORY_TO_PERIPH or @ref LL_DMA_DIRECTION_MEMORY_TO_MEMORY - * @arg @ref LL_DMA_MODE_NORMAL or @ref LL_DMA_MODE_CIRCULAR or @ref LL_DMA_MODE_PFCTRL - * @arg @ref LL_DMA_PERIPH_INCREMENT or @ref LL_DMA_PERIPH_NOINCREMENT - * @arg @ref LL_DMA_MEMORY_INCREMENT or @ref LL_DMA_MEMORY_NOINCREMENT - * @arg @ref LL_DMA_PDATAALIGN_BYTE or @ref LL_DMA_PDATAALIGN_HALFWORD or @ref LL_DMA_PDATAALIGN_WORD - * @arg @ref LL_DMA_MDATAALIGN_BYTE or @ref LL_DMA_MDATAALIGN_HALFWORD or @ref LL_DMA_MDATAALIGN_WORD - * @arg @ref LL_DMA_PRIORITY_LOW or @ref LL_DMA_PRIORITY_MEDIUM or @ref LL_DMA_PRIORITY_HIGH or @ref LL_DMA_PRIORITY_VERYHIGH - *@retval None - */ -__STATIC_INLINE void LL_DMA_ConfigTransfer(DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Configuration) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - MODIFY_REG(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, - DMA_SxCR_DIR | DMA_SxCR_CIRC | DMA_SxCR_PINC | DMA_SxCR_MINC | DMA_SxCR_PSIZE | DMA_SxCR_MSIZE | DMA_SxCR_PL | DMA_SxCR_PFCTRL, - Configuration); -} - -/** - * @brief Set Data transfer direction (read from peripheral or from memory). - * @rmtoll CR DIR LL_DMA_SetDataTransferDirection - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @param Direction This parameter can be one of the following values: - * @arg @ref LL_DMA_DIRECTION_PERIPH_TO_MEMORY - * @arg @ref LL_DMA_DIRECTION_MEMORY_TO_PERIPH - * @arg @ref LL_DMA_DIRECTION_MEMORY_TO_MEMORY - * @retval None - */ -__STATIC_INLINE void LL_DMA_SetDataTransferDirection(DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Direction) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - MODIFY_REG(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_DIR, Direction); -} - -/** - * @brief Get Data transfer direction (read from peripheral or from memory). - * @rmtoll CR DIR LL_DMA_GetDataTransferDirection - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval Returned value can be one of the following values: - * @arg @ref LL_DMA_DIRECTION_PERIPH_TO_MEMORY - * @arg @ref LL_DMA_DIRECTION_MEMORY_TO_PERIPH - * @arg @ref LL_DMA_DIRECTION_MEMORY_TO_MEMORY - */ -__STATIC_INLINE uint32_t LL_DMA_GetDataTransferDirection(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - return (READ_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_DIR)); -} - -/** - * @brief Set DMA mode normal, circular or peripheral flow control. - * @rmtoll CR CIRC LL_DMA_SetMode\n - * CR PFCTRL LL_DMA_SetMode - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @param Mode This parameter can be one of the following values: - * @arg @ref LL_DMA_MODE_NORMAL - * @arg @ref LL_DMA_MODE_CIRCULAR - * @arg @ref LL_DMA_MODE_PFCTRL - * @retval None - */ -__STATIC_INLINE void LL_DMA_SetMode(DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Mode) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - MODIFY_REG(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_CIRC | DMA_SxCR_PFCTRL, Mode); -} - -/** - * @brief Get DMA mode normal, circular or peripheral flow control. - * @rmtoll CR CIRC LL_DMA_GetMode\n - * CR PFCTRL LL_DMA_GetMode - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval Returned value can be one of the following values: - * @arg @ref LL_DMA_MODE_NORMAL - * @arg @ref LL_DMA_MODE_CIRCULAR - * @arg @ref LL_DMA_MODE_PFCTRL - */ -__STATIC_INLINE uint32_t LL_DMA_GetMode(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - return (READ_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_CIRC | DMA_SxCR_PFCTRL)); -} - -/** - * @brief Set Peripheral increment mode. - * @rmtoll CR PINC LL_DMA_SetPeriphIncMode - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @param IncrementMode This parameter can be one of the following values: - * @arg @ref LL_DMA_PERIPH_NOINCREMENT - * @arg @ref LL_DMA_PERIPH_INCREMENT - * @retval None - */ -__STATIC_INLINE void LL_DMA_SetPeriphIncMode(DMA_TypeDef *DMAx, uint32_t Stream, uint32_t IncrementMode) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - MODIFY_REG(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_PINC, IncrementMode); -} - -/** - * @brief Get Peripheral increment mode. - * @rmtoll CR PINC LL_DMA_GetPeriphIncMode - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval Returned value can be one of the following values: - * @arg @ref LL_DMA_PERIPH_NOINCREMENT - * @arg @ref LL_DMA_PERIPH_INCREMENT - */ -__STATIC_INLINE uint32_t LL_DMA_GetPeriphIncMode(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - return (READ_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_PINC)); -} - -/** - * @brief Set Memory increment mode. - * @rmtoll CR MINC LL_DMA_SetMemoryIncMode - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @param IncrementMode This parameter can be one of the following values: - * @arg @ref LL_DMA_MEMORY_NOINCREMENT - * @arg @ref LL_DMA_MEMORY_INCREMENT - * @retval None - */ -__STATIC_INLINE void LL_DMA_SetMemoryIncMode(DMA_TypeDef *DMAx, uint32_t Stream, uint32_t IncrementMode) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - MODIFY_REG(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_MINC, IncrementMode); -} - -/** - * @brief Get Memory increment mode. - * @rmtoll CR MINC LL_DMA_GetMemoryIncMode - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval Returned value can be one of the following values: - * @arg @ref LL_DMA_MEMORY_NOINCREMENT - * @arg @ref LL_DMA_MEMORY_INCREMENT - */ -__STATIC_INLINE uint32_t LL_DMA_GetMemoryIncMode(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - return (READ_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_MINC)); -} - -/** - * @brief Set Peripheral size. - * @rmtoll CR PSIZE LL_DMA_SetPeriphSize - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @param Size This parameter can be one of the following values: - * @arg @ref LL_DMA_PDATAALIGN_BYTE - * @arg @ref LL_DMA_PDATAALIGN_HALFWORD - * @arg @ref LL_DMA_PDATAALIGN_WORD - * @retval None - */ -__STATIC_INLINE void LL_DMA_SetPeriphSize(DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Size) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - MODIFY_REG(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_PSIZE, Size); -} - -/** - * @brief Get Peripheral size. - * @rmtoll CR PSIZE LL_DMA_GetPeriphSize - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval Returned value can be one of the following values: - * @arg @ref LL_DMA_PDATAALIGN_BYTE - * @arg @ref LL_DMA_PDATAALIGN_HALFWORD - * @arg @ref LL_DMA_PDATAALIGN_WORD - */ -__STATIC_INLINE uint32_t LL_DMA_GetPeriphSize(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - return (READ_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_PSIZE)); -} - -/** - * @brief Set Memory size. - * @rmtoll CR MSIZE LL_DMA_SetMemorySize - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @param Size This parameter can be one of the following values: - * @arg @ref LL_DMA_MDATAALIGN_BYTE - * @arg @ref LL_DMA_MDATAALIGN_HALFWORD - * @arg @ref LL_DMA_MDATAALIGN_WORD - * @retval None - */ -__STATIC_INLINE void LL_DMA_SetMemorySize(DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Size) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - MODIFY_REG(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_MSIZE, Size); -} - -/** - * @brief Get Memory size. - * @rmtoll CR MSIZE LL_DMA_GetMemorySize - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval Returned value can be one of the following values: - * @arg @ref LL_DMA_MDATAALIGN_BYTE - * @arg @ref LL_DMA_MDATAALIGN_HALFWORD - * @arg @ref LL_DMA_MDATAALIGN_WORD - */ -__STATIC_INLINE uint32_t LL_DMA_GetMemorySize(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - return (READ_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_MSIZE)); -} - -/** - * @brief Set Peripheral increment offset size. - * @rmtoll CR PINCOS LL_DMA_SetIncOffsetSize - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @param OffsetSize This parameter can be one of the following values: - * @arg @ref LL_DMA_OFFSETSIZE_PSIZE - * @arg @ref LL_DMA_OFFSETSIZE_FIXEDTO4 - * @retval None - */ -__STATIC_INLINE void LL_DMA_SetIncOffsetSize(DMA_TypeDef *DMAx, uint32_t Stream, uint32_t OffsetSize) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - MODIFY_REG(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_PINCOS, OffsetSize); -} - -/** - * @brief Get Peripheral increment offset size. - * @rmtoll CR PINCOS LL_DMA_GetIncOffsetSize - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval Returned value can be one of the following values: - * @arg @ref LL_DMA_OFFSETSIZE_PSIZE - * @arg @ref LL_DMA_OFFSETSIZE_FIXEDTO4 - */ -__STATIC_INLINE uint32_t LL_DMA_GetIncOffsetSize(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - return (READ_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_PINCOS)); -} - -/** - * @brief Set Stream priority level. - * @rmtoll CR PL LL_DMA_SetStreamPriorityLevel - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @param Priority This parameter can be one of the following values: - * @arg @ref LL_DMA_PRIORITY_LOW - * @arg @ref LL_DMA_PRIORITY_MEDIUM - * @arg @ref LL_DMA_PRIORITY_HIGH - * @arg @ref LL_DMA_PRIORITY_VERYHIGH - * @retval None - */ -__STATIC_INLINE void LL_DMA_SetStreamPriorityLevel(DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Priority) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - MODIFY_REG(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_PL, Priority); -} - -/** - * @brief Get Stream priority level. - * @rmtoll CR PL LL_DMA_GetStreamPriorityLevel - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval Returned value can be one of the following values: - * @arg @ref LL_DMA_PRIORITY_LOW - * @arg @ref LL_DMA_PRIORITY_MEDIUM - * @arg @ref LL_DMA_PRIORITY_HIGH - * @arg @ref LL_DMA_PRIORITY_VERYHIGH - */ -__STATIC_INLINE uint32_t LL_DMA_GetStreamPriorityLevel(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - return (READ_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_PL)); -} - -/** - * @brief Enable DMA stream bufferable transfer. - * @rmtoll CR TRBUFF LL_DMA_EnableBufferableTransfer - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval None - */ -__STATIC_INLINE void LL_DMA_EnableBufferableTransfer(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - SET_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_TRBUFF); -} - -/** - * @brief Disable DMA stream bufferable transfer. - * @rmtoll CR TRBUFF LL_DMA_DisableBufferableTransfer - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval None - */ -__STATIC_INLINE void LL_DMA_DisableBufferableTransfer(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - CLEAR_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_TRBUFF); -} - -/** - * @brief Set Number of data to transfer. - * @rmtoll NDTR NDT LL_DMA_SetDataLength - * @note This action has no effect if - * stream is enabled. - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @param NbData Between 0 to 0xFFFFFFFF - * @retval None - */ -__STATIC_INLINE void LL_DMA_SetDataLength(DMA_TypeDef *DMAx, uint32_t Stream, uint32_t NbData) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - MODIFY_REG(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->NDTR, DMA_SxNDT, NbData); -} - -/** - * @brief Get Number of data to transfer. - * @rmtoll NDTR NDT LL_DMA_GetDataLength - * @note Once the stream is enabled, the return value indicate the - * remaining bytes to be transmitted. - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval Between 0 to 0xFFFFFFFF - */ -__STATIC_INLINE uint32_t LL_DMA_GetDataLength(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - return (READ_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->NDTR, DMA_SxNDT)); -} -/** - * @brief Set DMA request for DMA Streams on DMAMUX Channel x. - * @note DMAMUX channel 0 to 7 are mapped to DMA1 stream 0 to 7. - * DMAMUX channel 8 to 15 are mapped to DMA2 stream 0 to 7. - * @rmtoll CxCR DMAREQ_ID LL_DMA_SetPeriphRequest - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @param Request This parameter can be one of the following values: - * @arg @ref LL_DMAMUX1_REQ_MEM2MEM - * @arg @ref LL_DMAMUX1_REQ_GENERATOR0 - * @arg @ref LL_DMAMUX1_REQ_GENERATOR1 - * @arg @ref LL_DMAMUX1_REQ_GENERATOR2 - * @arg @ref LL_DMAMUX1_REQ_GENERATOR3 - * @arg @ref LL_DMAMUX1_REQ_GENERATOR4 - * @arg @ref LL_DMAMUX1_REQ_GENERATOR5 - * @arg @ref LL_DMAMUX1_REQ_GENERATOR6 - * @arg @ref LL_DMAMUX1_REQ_GENERATOR7 - * @arg @ref LL_DMAMUX1_REQ_ADC1 - * @arg @ref LL_DMAMUX1_REQ_ADC2 - * @arg @ref LL_DMAMUX1_REQ_TIM1_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM1_CH2 - * @arg @ref LL_DMAMUX1_REQ_TIM1_CH3 - * @arg @ref LL_DMAMUX1_REQ_TIM1_CH4 - * @arg @ref LL_DMAMUX1_REQ_TIM1_UP - * @arg @ref LL_DMAMUX1_REQ_TIM1_TRIG - * @arg @ref LL_DMAMUX1_REQ_TIM1_COM - * @arg @ref LL_DMAMUX1_REQ_TIM2_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM2_CH2 - * @arg @ref LL_DMAMUX1_REQ_TIM2_CH3 - * @arg @ref LL_DMAMUX1_REQ_TIM2_CH4 - * @arg @ref LL_DMAMUX1_REQ_TIM2_UP - * @arg @ref LL_DMAMUX1_REQ_TIM3_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM3_CH2 - * @arg @ref LL_DMAMUX1_REQ_TIM3_CH3 - * @arg @ref LL_DMAMUX1_REQ_TIM3_CH4 - * @arg @ref LL_DMAMUX1_REQ_TIM3_UP - * @arg @ref LL_DMAMUX1_REQ_TIM3_TRIG - * @arg @ref LL_DMAMUX1_REQ_TIM4_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM4_CH2 - * @arg @ref LL_DMAMUX1_REQ_TIM4_CH3 - * @arg @ref LL_DMAMUX1_REQ_TIM4_UP - * @arg @ref LL_DMAMUX1_REQ_I2C1_RX - * @arg @ref LL_DMAMUX1_REQ_I2C1_TX - * @arg @ref LL_DMAMUX1_REQ_I2C2_RX - * @arg @ref LL_DMAMUX1_REQ_I2C2_TX - * @arg @ref LL_DMAMUX1_REQ_SPI1_RX - * @arg @ref LL_DMAMUX1_REQ_SPI1_TX - * @arg @ref LL_DMAMUX1_REQ_SPI2_RX - * @arg @ref LL_DMAMUX1_REQ_SPI2_TX - * @arg @ref LL_DMAMUX1_REQ_USART1_RX - * @arg @ref LL_DMAMUX1_REQ_USART1_TX - * @arg @ref LL_DMAMUX1_REQ_USART2_RX - * @arg @ref LL_DMAMUX1_REQ_USART2_TX - * @arg @ref LL_DMAMUX1_REQ_USART3_RX - * @arg @ref LL_DMAMUX1_REQ_USART3_TX - * @arg @ref LL_DMAMUX1_REQ_TIM8_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM8_CH2 - * @arg @ref LL_DMAMUX1_REQ_TIM8_CH3 - * @arg @ref LL_DMAMUX1_REQ_TIM8_CH4 - * @arg @ref LL_DMAMUX1_REQ_TIM8_UP - * @arg @ref LL_DMAMUX1_REQ_TIM8_TRIG - * @arg @ref LL_DMAMUX1_REQ_TIM8_COM - * @arg @ref LL_DMAMUX1_REQ_TIM5_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM5_CH2 - * @arg @ref LL_DMAMUX1_REQ_TIM5_CH3 - * @arg @ref LL_DMAMUX1_REQ_TIM5_CH4 - * @arg @ref LL_DMAMUX1_REQ_TIM5_UP - * @arg @ref LL_DMAMUX1_REQ_TIM5_TRIG - * @arg @ref LL_DMAMUX1_REQ_SPI3_RX - * @arg @ref LL_DMAMUX1_REQ_SPI3_TX - * @arg @ref LL_DMAMUX1_REQ_UART4_RX - * @arg @ref LL_DMAMUX1_REQ_UART4_TX - * @arg @ref LL_DMAMUX1_REQ_UART5_RX - * @arg @ref LL_DMAMUX1_REQ_UART5_TX - * @arg @ref LL_DMAMUX1_REQ_DAC1_CH1 - * @arg @ref LL_DMAMUX1_REQ_DAC1_CH2 - * @arg @ref LL_DMAMUX1_REQ_TIM6_UP - * @arg @ref LL_DMAMUX1_REQ_TIM7_UP - * @arg @ref LL_DMAMUX1_REQ_USART6_RX - * @arg @ref LL_DMAMUX1_REQ_USART6_TX - * @arg @ref LL_DMAMUX1_REQ_I2C3_RX - * @arg @ref LL_DMAMUX1_REQ_I2C3_TX - * @arg @ref LL_DMAMUX1_REQ_DCMI_PSSI (*) - * @arg @ref LL_DMAMUX1_REQ_CRYP_IN - * @arg @ref LL_DMAMUX1_REQ_CRYP_OUT - * @arg @ref LL_DMAMUX1_REQ_HASH_IN - * @arg @ref LL_DMAMUX1_REQ_UART7_RX - * @arg @ref LL_DMAMUX1_REQ_UART7_TX - * @arg @ref LL_DMAMUX1_REQ_UART8_RX - * @arg @ref LL_DMAMUX1_REQ_UART8_TX - * @arg @ref LL_DMAMUX1_REQ_SPI4_RX - * @arg @ref LL_DMAMUX1_REQ_SPI4_TX - * @arg @ref LL_DMAMUX1_REQ_SPI5_RX - * @arg @ref LL_DMAMUX1_REQ_SPI5_TX - * @arg @ref LL_DMAMUX1_REQ_SAI1_A - * @arg @ref LL_DMAMUX1_REQ_SAI1_B - * @arg @ref LL_DMAMUX1_REQ_SAI2_A (*) - * @arg @ref LL_DMAMUX1_REQ_SAI2_B (*) - * @arg @ref LL_DMAMUX1_REQ_SWPMI_RX - * @arg @ref LL_DMAMUX1_REQ_SWPMI_TX - * @arg @ref LL_DMAMUX1_REQ_SPDIF_RX_DT - * @arg @ref LL_DMAMUX1_REQ_SPDIF_RX_CS - * @arg @ref LL_DMAMUX1_REQ_HRTIM_MASTER (*) - * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_A (*) - * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_B (*) - * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_C (*) - * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_D (*) - * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_E (*) - * @arg @ref LL_DMAMUX1_REQ_DFSDM1_FLT0 - * @arg @ref LL_DMAMUX1_REQ_DFSDM1_FLT1 - * @arg @ref LL_DMAMUX1_REQ_DFSDM1_FLT2 - * @arg @ref LL_DMAMUX1_REQ_DFSDM1_FLT3 - * @arg @ref LL_DMAMUX1_REQ_TIM15_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM15_UP - * @arg @ref LL_DMAMUX1_REQ_TIM15_TRIG - * @arg @ref LL_DMAMUX1_REQ_TIM15_COM - * @arg @ref LL_DMAMUX1_REQ_TIM16_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM16_UP - * @arg @ref LL_DMAMUX1_REQ_TIM17_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM17_UP - * @arg @ref LL_DMAMUX1_REQ_SAI3_A (*) - * @arg @ref LL_DMAMUX1_REQ_SAI3_B (*) - * @arg @ref LL_DMAMUX1_REQ_ADC3 (*) - * @arg @ref LL_DMAMUX1_REQ_UART9_RX (*) - * @arg @ref LL_DMAMUX1_REQ_UART9_TX (*) - * @arg @ref LL_DMAMUX1_REQ_USART10_RX (*) - * @arg @ref LL_DMAMUX1_REQ_USART10_TX (*) - * @arg @ref LL_DMAMUX1_REQ_FMAC_READ (*) - * @arg @ref LL_DMAMUX1_REQ_FMAC_WRITE (*) - * @arg @ref LL_DMAMUX1_REQ_CORDIC_READ (*) - * @arg @ref LL_DMAMUX1_REQ_CORDIC_WRITE(*) - * @arg @ref LL_DMAMUX1_REQ_I2C5_RX (*) - * @arg @ref LL_DMAMUX1_REQ_I2C5_TX (*) - * @arg @ref LL_DMAMUX1_REQ_TIM23_CH1 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM23_CH2 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM23_CH3 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM23_CH4 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM23_UP (*) - * @arg @ref LL_DMAMUX1_REQ_TIM23_TRIG (*) - * @arg @ref LL_DMAMUX1_REQ_TIM24_CH1 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM24_CH2 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM24_CH3 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM24_CH4 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM24_UP (*) - * @arg @ref LL_DMAMUX1_REQ_TIM24_TRIG (*) - * - * @note (*) Availability depends on devices. - * @retval None - */ -__STATIC_INLINE void LL_DMA_SetPeriphRequest(DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Request) -{ - MODIFY_REG(((DMAMUX_Channel_TypeDef *)(uint32_t)((uint32_t)DMAMUX1_Channel0 + (DMAMUX_CCR_SIZE * (Stream)) + (uint32_t)(DMAMUX_CCR_SIZE * LL_DMA_INSTANCE_TO_DMAMUX_CHANNEL(DMAx))))->CCR, DMAMUX_CxCR_DMAREQ_ID, Request); -} - -/** - * @brief Get DMA request for DMA Channels on DMAMUX Channel x. - * @note DMAMUX channel 0 to 7 are mapped to DMA1 stream 0 to 7. - * DMAMUX channel 8 to 15 are mapped to DMA2 stream 0 to 7. - * @rmtoll CxCR DMAREQ_ID LL_DMA_GetPeriphRequest - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval Returned value can be one of the following values: - * @arg @ref LL_DMAMUX1_REQ_MEM2MEM - * @arg @ref LL_DMAMUX1_REQ_GENERATOR0 - * @arg @ref LL_DMAMUX1_REQ_GENERATOR1 - * @arg @ref LL_DMAMUX1_REQ_GENERATOR2 - * @arg @ref LL_DMAMUX1_REQ_GENERATOR3 - * @arg @ref LL_DMAMUX1_REQ_GENERATOR4 - * @arg @ref LL_DMAMUX1_REQ_GENERATOR5 - * @arg @ref LL_DMAMUX1_REQ_GENERATOR6 - * @arg @ref LL_DMAMUX1_REQ_GENERATOR7 - * @arg @ref LL_DMAMUX1_REQ_ADC1 - * @arg @ref LL_DMAMUX1_REQ_ADC2 - * @arg @ref LL_DMAMUX1_REQ_TIM1_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM1_CH2 - * @arg @ref LL_DMAMUX1_REQ_TIM1_CH3 - * @arg @ref LL_DMAMUX1_REQ_TIM1_CH4 - * @arg @ref LL_DMAMUX1_REQ_TIM1_UP - * @arg @ref LL_DMAMUX1_REQ_TIM1_TRIG - * @arg @ref LL_DMAMUX1_REQ_TIM1_COM - * @arg @ref LL_DMAMUX1_REQ_TIM2_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM2_CH2 - * @arg @ref LL_DMAMUX1_REQ_TIM2_CH3 - * @arg @ref LL_DMAMUX1_REQ_TIM2_CH4 - * @arg @ref LL_DMAMUX1_REQ_TIM2_UP - * @arg @ref LL_DMAMUX1_REQ_TIM3_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM3_CH2 - * @arg @ref LL_DMAMUX1_REQ_TIM3_CH3 - * @arg @ref LL_DMAMUX1_REQ_TIM3_CH4 - * @arg @ref LL_DMAMUX1_REQ_TIM3_UP - * @arg @ref LL_DMAMUX1_REQ_TIM3_TRIG - * @arg @ref LL_DMAMUX1_REQ_TIM4_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM4_CH2 - * @arg @ref LL_DMAMUX1_REQ_TIM4_CH3 - * @arg @ref LL_DMAMUX1_REQ_TIM4_UP - * @arg @ref LL_DMAMUX1_REQ_I2C1_RX - * @arg @ref LL_DMAMUX1_REQ_I2C1_TX - * @arg @ref LL_DMAMUX1_REQ_I2C2_RX - * @arg @ref LL_DMAMUX1_REQ_I2C2_TX - * @arg @ref LL_DMAMUX1_REQ_SPI1_RX - * @arg @ref LL_DMAMUX1_REQ_SPI1_TX - * @arg @ref LL_DMAMUX1_REQ_SPI2_RX - * @arg @ref LL_DMAMUX1_REQ_SPI2_TX - * @arg @ref LL_DMAMUX1_REQ_USART1_RX - * @arg @ref LL_DMAMUX1_REQ_USART1_TX - * @arg @ref LL_DMAMUX1_REQ_USART2_RX - * @arg @ref LL_DMAMUX1_REQ_USART2_TX - * @arg @ref LL_DMAMUX1_REQ_USART3_RX - * @arg @ref LL_DMAMUX1_REQ_USART3_TX - * @arg @ref LL_DMAMUX1_REQ_TIM8_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM8_CH2 - * @arg @ref LL_DMAMUX1_REQ_TIM8_CH3 - * @arg @ref LL_DMAMUX1_REQ_TIM8_CH4 - * @arg @ref LL_DMAMUX1_REQ_TIM8_UP - * @arg @ref LL_DMAMUX1_REQ_TIM8_TRIG - * @arg @ref LL_DMAMUX1_REQ_TIM8_COM - * @arg @ref LL_DMAMUX1_REQ_TIM5_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM5_CH2 - * @arg @ref LL_DMAMUX1_REQ_TIM5_CH3 - * @arg @ref LL_DMAMUX1_REQ_TIM5_CH4 - * @arg @ref LL_DMAMUX1_REQ_TIM5_UP - * @arg @ref LL_DMAMUX1_REQ_TIM5_TRIG - * @arg @ref LL_DMAMUX1_REQ_SPI3_RX - * @arg @ref LL_DMAMUX1_REQ_SPI3_TX - * @arg @ref LL_DMAMUX1_REQ_UART4_RX - * @arg @ref LL_DMAMUX1_REQ_UART4_TX - * @arg @ref LL_DMAMUX1_REQ_UART5_RX - * @arg @ref LL_DMAMUX1_REQ_UART5_TX - * @arg @ref LL_DMAMUX1_REQ_DAC1_CH1 - * @arg @ref LL_DMAMUX1_REQ_DAC1_CH2 - * @arg @ref LL_DMAMUX1_REQ_TIM6_UP - * @arg @ref LL_DMAMUX1_REQ_TIM7_UP - * @arg @ref LL_DMAMUX1_REQ_USART6_RX - * @arg @ref LL_DMAMUX1_REQ_USART6_TX - * @arg @ref LL_DMAMUX1_REQ_I2C3_RX - * @arg @ref LL_DMAMUX1_REQ_I2C3_TX - * @arg @ref LL_DMAMUX1_REQ_DCMI_PSSI (*) - * @arg @ref LL_DMAMUX1_REQ_CRYP_IN - * @arg @ref LL_DMAMUX1_REQ_CRYP_OUT - * @arg @ref LL_DMAMUX1_REQ_HASH_IN - * @arg @ref LL_DMAMUX1_REQ_UART7_RX - * @arg @ref LL_DMAMUX1_REQ_UART7_TX - * @arg @ref LL_DMAMUX1_REQ_UART8_RX - * @arg @ref LL_DMAMUX1_REQ_UART8_TX - * @arg @ref LL_DMAMUX1_REQ_SPI4_RX - * @arg @ref LL_DMAMUX1_REQ_SPI4_TX - * @arg @ref LL_DMAMUX1_REQ_SPI5_RX - * @arg @ref LL_DMAMUX1_REQ_SPI5_TX - * @arg @ref LL_DMAMUX1_REQ_SAI1_A - * @arg @ref LL_DMAMUX1_REQ_SAI1_B - * @arg @ref LL_DMAMUX1_REQ_SAI2_A (*) - * @arg @ref LL_DMAMUX1_REQ_SAI2_B (*) - * @arg @ref LL_DMAMUX1_REQ_SWPMI_RX - * @arg @ref LL_DMAMUX1_REQ_SWPMI_TX - * @arg @ref LL_DMAMUX1_REQ_SPDIF_RX_DT - * @arg @ref LL_DMAMUX1_REQ_SPDIF_RX_CS - * @arg @ref LL_DMAMUX1_REQ_HRTIM_MASTER (*) - * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_A (*) - * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_B (*) - * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_C (*) - * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_D (*) - * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_E (*) - * @arg @ref LL_DMAMUX1_REQ_DFSDM1_FLT0 - * @arg @ref LL_DMAMUX1_REQ_DFSDM1_FLT1 - * @arg @ref LL_DMAMUX1_REQ_DFSDM1_FLT2 - * @arg @ref LL_DMAMUX1_REQ_DFSDM1_FLT3 - * @arg @ref LL_DMAMUX1_REQ_TIM15_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM15_UP - * @arg @ref LL_DMAMUX1_REQ_TIM15_TRIG - * @arg @ref LL_DMAMUX1_REQ_TIM15_COM - * @arg @ref LL_DMAMUX1_REQ_TIM16_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM16_UP - * @arg @ref LL_DMAMUX1_REQ_TIM17_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM17_UP - * @arg @ref LL_DMAMUX1_REQ_SAI3_A (*) - * @arg @ref LL_DMAMUX1_REQ_SAI3_B (*) - * @arg @ref LL_DMAMUX1_REQ_ADC3 (*) - * @arg @ref LL_DMAMUX1_REQ_UART9_RX (*) - * @arg @ref LL_DMAMUX1_REQ_UART9_TX (*) - * @arg @ref LL_DMAMUX1_REQ_USART10_RX (*) - * @arg @ref LL_DMAMUX1_REQ_USART10_TX (*) - * @arg @ref LL_DMAMUX1_REQ_FMAC_READ (*) - * @arg @ref LL_DMAMUX1_REQ_FMAC_WRITE (*) - * @arg @ref LL_DMAMUX1_REQ_CORDIC_READ (*) - * @arg @ref LL_DMAMUX1_REQ_CORDIC_WRITE(*) - * @arg @ref LL_DMAMUX1_REQ_I2C5_RX (*) - * @arg @ref LL_DMAMUX1_REQ_I2C5_TX (*) - * @arg @ref LL_DMAMUX1_REQ_TIM23_CH1 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM23_CH2 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM23_CH3 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM23_CH4 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM23_UP (*) - * @arg @ref LL_DMAMUX1_REQ_TIM23_TRIG (*) - * @arg @ref LL_DMAMUX1_REQ_TIM24_CH1 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM24_CH2 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM24_CH3 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM24_CH4 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM24_UP (*) - * @arg @ref LL_DMAMUX1_REQ_TIM24_TRIG (*) - * - * @note (*) Availability depends on devices. - */ -__STATIC_INLINE uint32_t LL_DMA_GetPeriphRequest(DMA_TypeDef *DMAx, uint32_t Stream) -{ - return (READ_BIT(((DMAMUX_Channel_TypeDef *)((uint32_t)((uint32_t)DMAMUX1_Channel0 + (DMAMUX_CCR_SIZE * (Stream)) + (uint32_t)(DMAMUX_CCR_SIZE * LL_DMA_INSTANCE_TO_DMAMUX_CHANNEL(DMAx)))))->CCR, DMAMUX_CxCR_DMAREQ_ID)); -} - -/** - * @brief Set Memory burst transfer configuration. - * @rmtoll CR MBURST LL_DMA_SetMemoryBurstxfer - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @param Mburst This parameter can be one of the following values: - * @arg @ref LL_DMA_MBURST_SINGLE - * @arg @ref LL_DMA_MBURST_INC4 - * @arg @ref LL_DMA_MBURST_INC8 - * @arg @ref LL_DMA_MBURST_INC16 - * @retval None - */ -__STATIC_INLINE void LL_DMA_SetMemoryBurstxfer(DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Mburst) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - MODIFY_REG(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_MBURST, Mburst); -} - -/** - * @brief Get Memory burst transfer configuration. - * @rmtoll CR MBURST LL_DMA_GetMemoryBurstxfer - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval Returned value can be one of the following values: - * @arg @ref LL_DMA_MBURST_SINGLE - * @arg @ref LL_DMA_MBURST_INC4 - * @arg @ref LL_DMA_MBURST_INC8 - * @arg @ref LL_DMA_MBURST_INC16 - */ -__STATIC_INLINE uint32_t LL_DMA_GetMemoryBurstxfer(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - return (READ_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_MBURST)); -} - -/** - * @brief Set Peripheral burst transfer configuration. - * @rmtoll CR PBURST LL_DMA_SetPeriphBurstxfer - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @param Pburst This parameter can be one of the following values: - * @arg @ref LL_DMA_PBURST_SINGLE - * @arg @ref LL_DMA_PBURST_INC4 - * @arg @ref LL_DMA_PBURST_INC8 - * @arg @ref LL_DMA_PBURST_INC16 - * @retval None - */ -__STATIC_INLINE void LL_DMA_SetPeriphBurstxfer(DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Pburst) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - MODIFY_REG(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_PBURST, Pburst); -} - -/** - * @brief Get Peripheral burst transfer configuration. - * @rmtoll CR PBURST LL_DMA_GetPeriphBurstxfer - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval Returned value can be one of the following values: - * @arg @ref LL_DMA_PBURST_SINGLE - * @arg @ref LL_DMA_PBURST_INC4 - * @arg @ref LL_DMA_PBURST_INC8 - * @arg @ref LL_DMA_PBURST_INC16 - */ -__STATIC_INLINE uint32_t LL_DMA_GetPeriphBurstxfer(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - return (READ_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_PBURST)); -} - -/** - * @brief Set Current target (only in double buffer mode) to Memory 1 or Memory 0. - * @rmtoll CR CT LL_DMA_SetCurrentTargetMem - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @param CurrentMemory This parameter can be one of the following values: - * @arg @ref LL_DMA_CURRENTTARGETMEM0 - * @arg @ref LL_DMA_CURRENTTARGETMEM1 - * @retval None - */ -__STATIC_INLINE void LL_DMA_SetCurrentTargetMem(DMA_TypeDef *DMAx, uint32_t Stream, uint32_t CurrentMemory) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - MODIFY_REG(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_CT, CurrentMemory); -} - -/** - * @brief Set Current target (only in double buffer mode) to Memory 1 or Memory 0. - * @rmtoll CR CT LL_DMA_GetCurrentTargetMem - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval Returned value can be one of the following values: - * @arg @ref LL_DMA_CURRENTTARGETMEM0 - * @arg @ref LL_DMA_CURRENTTARGETMEM1 - */ -__STATIC_INLINE uint32_t LL_DMA_GetCurrentTargetMem(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - return (READ_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_CT)); -} - -/** - * @brief Enable the double buffer mode. - * @rmtoll CR DBM LL_DMA_EnableDoubleBufferMode - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval None - */ -__STATIC_INLINE void LL_DMA_EnableDoubleBufferMode(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - SET_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_DBM); -} - -/** - * @brief Disable the double buffer mode. - * @rmtoll CR DBM LL_DMA_DisableDoubleBufferMode - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval None - */ -__STATIC_INLINE void LL_DMA_DisableDoubleBufferMode(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - CLEAR_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_DBM); -} - -/** - * @brief Get FIFO status. - * @rmtoll FCR FS LL_DMA_GetFIFOStatus - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval Returned value can be one of the following values: - * @arg @ref LL_DMA_FIFOSTATUS_0_25 - * @arg @ref LL_DMA_FIFOSTATUS_25_50 - * @arg @ref LL_DMA_FIFOSTATUS_50_75 - * @arg @ref LL_DMA_FIFOSTATUS_75_100 - * @arg @ref LL_DMA_FIFOSTATUS_EMPTY - * @arg @ref LL_DMA_FIFOSTATUS_FULL - */ -__STATIC_INLINE uint32_t LL_DMA_GetFIFOStatus(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - return (READ_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->FCR, DMA_SxFCR_FS)); -} - -/** - * @brief Disable Fifo mode. - * @rmtoll FCR DMDIS LL_DMA_DisableFifoMode - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval None - */ -__STATIC_INLINE void LL_DMA_DisableFifoMode(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - CLEAR_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->FCR, DMA_SxFCR_DMDIS); -} - -/** - * @brief Enable Fifo mode. - * @rmtoll FCR DMDIS LL_DMA_EnableFifoMode - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval None - */ -__STATIC_INLINE void LL_DMA_EnableFifoMode(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - SET_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->FCR, DMA_SxFCR_DMDIS); -} - -/** - * @brief Select FIFO threshold. - * @rmtoll FCR FTH LL_DMA_SetFIFOThreshold - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @param Threshold This parameter can be one of the following values: - * @arg @ref LL_DMA_FIFOTHRESHOLD_1_4 - * @arg @ref LL_DMA_FIFOTHRESHOLD_1_2 - * @arg @ref LL_DMA_FIFOTHRESHOLD_3_4 - * @arg @ref LL_DMA_FIFOTHRESHOLD_FULL - * @retval None - */ -__STATIC_INLINE void LL_DMA_SetFIFOThreshold(DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Threshold) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - MODIFY_REG(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->FCR, DMA_SxFCR_FTH, Threshold); -} - -/** - * @brief Get FIFO threshold. - * @rmtoll FCR FTH LL_DMA_GetFIFOThreshold - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval Returned value can be one of the following values: - * @arg @ref LL_DMA_FIFOTHRESHOLD_1_4 - * @arg @ref LL_DMA_FIFOTHRESHOLD_1_2 - * @arg @ref LL_DMA_FIFOTHRESHOLD_3_4 - * @arg @ref LL_DMA_FIFOTHRESHOLD_FULL - */ -__STATIC_INLINE uint32_t LL_DMA_GetFIFOThreshold(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - return (READ_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->FCR, DMA_SxFCR_FTH)); -} - -/** - * @brief Configure the FIFO . - * @rmtoll FCR FTH LL_DMA_ConfigFifo\n - * FCR DMDIS LL_DMA_ConfigFifo - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @param FifoMode This parameter can be one of the following values: - * @arg @ref LL_DMA_FIFOMODE_ENABLE - * @arg @ref LL_DMA_FIFOMODE_DISABLE - * @param FifoThreshold This parameter can be one of the following values: - * @arg @ref LL_DMA_FIFOTHRESHOLD_1_4 - * @arg @ref LL_DMA_FIFOTHRESHOLD_1_2 - * @arg @ref LL_DMA_FIFOTHRESHOLD_3_4 - * @arg @ref LL_DMA_FIFOTHRESHOLD_FULL - * @retval None - */ -__STATIC_INLINE void LL_DMA_ConfigFifo(DMA_TypeDef *DMAx, uint32_t Stream, uint32_t FifoMode, uint32_t FifoThreshold) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - MODIFY_REG(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->FCR, DMA_SxFCR_FTH | DMA_SxFCR_DMDIS, FifoMode | FifoThreshold); -} - -/** - * @brief Configure the Source and Destination addresses. - * @note This API must not be called when the DMA stream is enabled. - * @rmtoll M0AR M0A LL_DMA_ConfigAddresses\n - * PAR PA LL_DMA_ConfigAddresses - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @param SrcAddress Between 0 to 0xFFFFFFFF - * @param DstAddress Between 0 to 0xFFFFFFFF - * @param Direction This parameter can be one of the following values: - * @arg @ref LL_DMA_DIRECTION_PERIPH_TO_MEMORY - * @arg @ref LL_DMA_DIRECTION_MEMORY_TO_PERIPH - * @arg @ref LL_DMA_DIRECTION_MEMORY_TO_MEMORY - * @retval None - */ -__STATIC_INLINE void LL_DMA_ConfigAddresses(DMA_TypeDef *DMAx, uint32_t Stream, uint32_t SrcAddress, uint32_t DstAddress, uint32_t Direction) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - /* Direction Memory to Periph */ - if (Direction == LL_DMA_DIRECTION_MEMORY_TO_PERIPH) - { - WRITE_REG(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->M0AR, SrcAddress); - WRITE_REG(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->PAR, DstAddress); - } - /* Direction Periph to Memory and Memory to Memory */ - else - { - WRITE_REG(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->PAR, SrcAddress); - WRITE_REG(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->M0AR, DstAddress); - } -} - -/** - * @brief Set the Memory address. - * @rmtoll M0AR M0A LL_DMA_SetMemoryAddress - * @note Interface used for direction LL_DMA_DIRECTION_PERIPH_TO_MEMORY or LL_DMA_DIRECTION_MEMORY_TO_PERIPH only. - * @note This API must not be called when the DMA stream is enabled. - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @param MemoryAddress Between 0 to 0xFFFFFFFF - * @retval None - */ -__STATIC_INLINE void LL_DMA_SetMemoryAddress(DMA_TypeDef *DMAx, uint32_t Stream, uint32_t MemoryAddress) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - WRITE_REG(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->M0AR, MemoryAddress); -} - -/** - * @brief Set the Peripheral address. - * @rmtoll PAR PA LL_DMA_SetPeriphAddress - * @note Interface used for direction LL_DMA_DIRECTION_PERIPH_TO_MEMORY or LL_DMA_DIRECTION_MEMORY_TO_PERIPH only. - * @note This API must not be called when the DMA stream is enabled. - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @param PeriphAddress Between 0 to 0xFFFFFFFF - * @retval None - */ -__STATIC_INLINE void LL_DMA_SetPeriphAddress(DMA_TypeDef *DMAx, uint32_t Stream, uint32_t PeriphAddress) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - WRITE_REG(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->PAR, PeriphAddress); -} - -/** - * @brief Get the Memory address. - * @rmtoll M0AR M0A LL_DMA_GetMemoryAddress - * @note Interface used for direction LL_DMA_DIRECTION_PERIPH_TO_MEMORY or LL_DMA_DIRECTION_MEMORY_TO_PERIPH only. - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval Between 0 to 0xFFFFFFFF - */ -__STATIC_INLINE uint32_t LL_DMA_GetMemoryAddress(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - return (READ_REG(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->M0AR)); -} - -/** - * @brief Get the Peripheral address. - * @rmtoll PAR PA LL_DMA_GetPeriphAddress - * @note Interface used for direction LL_DMA_DIRECTION_PERIPH_TO_MEMORY or LL_DMA_DIRECTION_MEMORY_TO_PERIPH only. - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval Between 0 to 0xFFFFFFFF - */ -__STATIC_INLINE uint32_t LL_DMA_GetPeriphAddress(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - return (READ_REG(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->PAR)); -} - -/** - * @brief Set the Memory to Memory Source address. - * @rmtoll PAR PA LL_DMA_SetM2MSrcAddress - * @note Interface used for direction LL_DMA_DIRECTION_MEMORY_TO_MEMORY only. - * @note This API must not be called when the DMA stream is enabled. - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @param MemoryAddress Between 0 to 0xFFFFFFFF - * @retval None - */ -__STATIC_INLINE void LL_DMA_SetM2MSrcAddress(DMA_TypeDef *DMAx, uint32_t Stream, uint32_t MemoryAddress) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - WRITE_REG(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->PAR, MemoryAddress); -} - -/** - * @brief Set the Memory to Memory Destination address. - * @rmtoll M0AR M0A LL_DMA_SetM2MDstAddress - * @note Interface used for direction LL_DMA_DIRECTION_MEMORY_TO_MEMORY only. - * @note This API must not be called when the DMA stream is enabled. - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @param MemoryAddress Between 0 to 0xFFFFFFFF - * @retval None - */ -__STATIC_INLINE void LL_DMA_SetM2MDstAddress(DMA_TypeDef *DMAx, uint32_t Stream, uint32_t MemoryAddress) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - WRITE_REG(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->M0AR, MemoryAddress); -} - -/** - * @brief Get the Memory to Memory Source address. - * @rmtoll PAR PA LL_DMA_GetM2MSrcAddress - * @note Interface used for direction LL_DMA_DIRECTION_MEMORY_TO_MEMORY only. - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval Between 0 to 0xFFFFFFFF - */ -__STATIC_INLINE uint32_t LL_DMA_GetM2MSrcAddress(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - return (READ_REG(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->PAR)); -} - -/** - * @brief Get the Memory to Memory Destination address. - * @rmtoll M0AR M0A LL_DMA_GetM2MDstAddress - * @note Interface used for direction LL_DMA_DIRECTION_MEMORY_TO_MEMORY only. - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval Between 0 to 0xFFFFFFFF - */ -__STATIC_INLINE uint32_t LL_DMA_GetM2MDstAddress(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - return (READ_REG(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->M0AR)); -} - -/** - * @brief Set Memory 1 address (used in case of Double buffer mode). - * @rmtoll M1AR M1A LL_DMA_SetMemory1Address - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @param Address Between 0 to 0xFFFFFFFF - * @retval None - */ -__STATIC_INLINE void LL_DMA_SetMemory1Address(DMA_TypeDef *DMAx, uint32_t Stream, uint32_t Address) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - MODIFY_REG(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->M1AR, DMA_SxM1AR_M1A, Address); -} - -/** - * @brief Get Memory 1 address (used in case of Double buffer mode). - * @rmtoll M1AR M1A LL_DMA_GetMemory1Address - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval Between 0 to 0xFFFFFFFF - */ -__STATIC_INLINE uint32_t LL_DMA_GetMemory1Address(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - return (((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->M1AR); -} - -/** - * @} - */ - -/** @defgroup DMA_LL_EF_FLAG_Management FLAG_Management - * @{ - */ - -/** - * @brief Get Stream 0 half transfer flag. - * @rmtoll LISR HTIF0 LL_DMA_IsActiveFlag_HT0 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_HT0(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->LISR, DMA_LISR_HTIF0) == (DMA_LISR_HTIF0)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 1 half transfer flag. - * @rmtoll LISR HTIF1 LL_DMA_IsActiveFlag_HT1 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_HT1(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->LISR, DMA_LISR_HTIF1) == (DMA_LISR_HTIF1)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 2 half transfer flag. - * @rmtoll LISR HTIF2 LL_DMA_IsActiveFlag_HT2 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_HT2(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->LISR, DMA_LISR_HTIF2) == (DMA_LISR_HTIF2)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 3 half transfer flag. - * @rmtoll LISR HTIF3 LL_DMA_IsActiveFlag_HT3 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_HT3(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->LISR, DMA_LISR_HTIF3) == (DMA_LISR_HTIF3)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 4 half transfer flag. - * @rmtoll HISR HTIF4 LL_DMA_IsActiveFlag_HT4 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_HT4(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->HISR, DMA_HISR_HTIF4) == (DMA_HISR_HTIF4)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 5 half transfer flag. - * @rmtoll HISR HTIF0 LL_DMA_IsActiveFlag_HT5 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_HT5(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->HISR, DMA_HISR_HTIF5) == (DMA_HISR_HTIF5)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 6 half transfer flag. - * @rmtoll HISR HTIF6 LL_DMA_IsActiveFlag_HT6 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_HT6(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->HISR, DMA_HISR_HTIF6) == (DMA_HISR_HTIF6)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 7 half transfer flag. - * @rmtoll HISR HTIF7 LL_DMA_IsActiveFlag_HT7 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_HT7(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->HISR, DMA_HISR_HTIF7) == (DMA_HISR_HTIF7)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 0 transfer complete flag. - * @rmtoll LISR TCIF0 LL_DMA_IsActiveFlag_TC0 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_TC0(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->LISR, DMA_LISR_TCIF0) == (DMA_LISR_TCIF0)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 1 transfer complete flag. - * @rmtoll LISR TCIF1 LL_DMA_IsActiveFlag_TC1 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_TC1(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->LISR, DMA_LISR_TCIF1) == (DMA_LISR_TCIF1)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 2 transfer complete flag. - * @rmtoll LISR TCIF2 LL_DMA_IsActiveFlag_TC2 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_TC2(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->LISR, DMA_LISR_TCIF2) == (DMA_LISR_TCIF2)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 3 transfer complete flag. - * @rmtoll LISR TCIF3 LL_DMA_IsActiveFlag_TC3 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_TC3(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->LISR, DMA_LISR_TCIF3) == (DMA_LISR_TCIF3)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 4 transfer complete flag. - * @rmtoll HISR TCIF4 LL_DMA_IsActiveFlag_TC4 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_TC4(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->HISR, DMA_HISR_TCIF4) == (DMA_HISR_TCIF4)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 5 transfer complete flag. - * @rmtoll HISR TCIF0 LL_DMA_IsActiveFlag_TC5 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_TC5(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->HISR, DMA_HISR_TCIF5) == (DMA_HISR_TCIF5)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 6 transfer complete flag. - * @rmtoll HISR TCIF6 LL_DMA_IsActiveFlag_TC6 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_TC6(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->HISR, DMA_HISR_TCIF6) == (DMA_HISR_TCIF6)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 7 transfer complete flag. - * @rmtoll HISR TCIF7 LL_DMA_IsActiveFlag_TC7 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_TC7(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->HISR, DMA_HISR_TCIF7) == (DMA_HISR_TCIF7)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 0 transfer error flag. - * @rmtoll LISR TEIF0 LL_DMA_IsActiveFlag_TE0 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_TE0(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->LISR, DMA_LISR_TEIF0) == (DMA_LISR_TEIF0)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 1 transfer error flag. - * @rmtoll LISR TEIF1 LL_DMA_IsActiveFlag_TE1 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_TE1(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->LISR, DMA_LISR_TEIF1) == (DMA_LISR_TEIF1)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 2 transfer error flag. - * @rmtoll LISR TEIF2 LL_DMA_IsActiveFlag_TE2 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_TE2(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->LISR, DMA_LISR_TEIF2) == (DMA_LISR_TEIF2)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 3 transfer error flag. - * @rmtoll LISR TEIF3 LL_DMA_IsActiveFlag_TE3 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_TE3(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->LISR, DMA_LISR_TEIF3) == (DMA_LISR_TEIF3)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 4 transfer error flag. - * @rmtoll HISR TEIF4 LL_DMA_IsActiveFlag_TE4 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_TE4(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->HISR, DMA_HISR_TEIF4) == (DMA_HISR_TEIF4)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 5 transfer error flag. - * @rmtoll HISR TEIF0 LL_DMA_IsActiveFlag_TE5 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_TE5(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->HISR, DMA_HISR_TEIF5) == (DMA_HISR_TEIF5)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 6 transfer error flag. - * @rmtoll HISR TEIF6 LL_DMA_IsActiveFlag_TE6 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_TE6(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->HISR, DMA_HISR_TEIF6) == (DMA_HISR_TEIF6)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 7 transfer error flag. - * @rmtoll HISR TEIF7 LL_DMA_IsActiveFlag_TE7 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_TE7(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->HISR, DMA_HISR_TEIF7) == (DMA_HISR_TEIF7)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 0 direct mode error flag. - * @rmtoll LISR DMEIF0 LL_DMA_IsActiveFlag_DME0 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_DME0(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->LISR, DMA_LISR_DMEIF0) == (DMA_LISR_DMEIF0)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 1 direct mode error flag. - * @rmtoll LISR DMEIF1 LL_DMA_IsActiveFlag_DME1 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_DME1(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->LISR, DMA_LISR_DMEIF1) == (DMA_LISR_DMEIF1)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 2 direct mode error flag. - * @rmtoll LISR DMEIF2 LL_DMA_IsActiveFlag_DME2 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_DME2(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->LISR, DMA_LISR_DMEIF2) == (DMA_LISR_DMEIF2)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 3 direct mode error flag. - * @rmtoll LISR DMEIF3 LL_DMA_IsActiveFlag_DME3 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_DME3(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->LISR, DMA_LISR_DMEIF3) == (DMA_LISR_DMEIF3)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 4 direct mode error flag. - * @rmtoll HISR DMEIF4 LL_DMA_IsActiveFlag_DME4 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_DME4(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->HISR, DMA_HISR_DMEIF4) == (DMA_HISR_DMEIF4)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 5 direct mode error flag. - * @rmtoll HISR DMEIF0 LL_DMA_IsActiveFlag_DME5 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_DME5(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->HISR, DMA_HISR_DMEIF5) == (DMA_HISR_DMEIF5)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 6 direct mode error flag. - * @rmtoll HISR DMEIF6 LL_DMA_IsActiveFlag_DME6 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_DME6(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->HISR, DMA_HISR_DMEIF6) == (DMA_HISR_DMEIF6)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 7 direct mode error flag. - * @rmtoll HISR DMEIF7 LL_DMA_IsActiveFlag_DME7 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_DME7(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->HISR, DMA_HISR_DMEIF7) == (DMA_HISR_DMEIF7)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 0 FIFO error flag. - * @rmtoll LISR FEIF0 LL_DMA_IsActiveFlag_FE0 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_FE0(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->LISR, DMA_LISR_FEIF0) == (DMA_LISR_FEIF0)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 1 FIFO error flag. - * @rmtoll LISR FEIF1 LL_DMA_IsActiveFlag_FE1 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_FE1(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->LISR, DMA_LISR_FEIF1) == (DMA_LISR_FEIF1)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 2 FIFO error flag. - * @rmtoll LISR FEIF2 LL_DMA_IsActiveFlag_FE2 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_FE2(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->LISR, DMA_LISR_FEIF2) == (DMA_LISR_FEIF2)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 3 FIFO error flag. - * @rmtoll LISR FEIF3 LL_DMA_IsActiveFlag_FE3 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_FE3(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->LISR, DMA_LISR_FEIF3) == (DMA_LISR_FEIF3)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 4 FIFO error flag. - * @rmtoll HISR FEIF4 LL_DMA_IsActiveFlag_FE4 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_FE4(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->HISR, DMA_HISR_FEIF4) == (DMA_HISR_FEIF4)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 5 FIFO error flag. - * @rmtoll HISR FEIF0 LL_DMA_IsActiveFlag_FE5 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_FE5(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->HISR, DMA_HISR_FEIF5) == (DMA_HISR_FEIF5)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 6 FIFO error flag. - * @rmtoll HISR FEIF6 LL_DMA_IsActiveFlag_FE6 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_FE6(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->HISR, DMA_HISR_FEIF6) == (DMA_HISR_FEIF6)) ? 1UL : 0UL); -} - -/** - * @brief Get Stream 7 FIFO error flag. - * @rmtoll HISR FEIF7 LL_DMA_IsActiveFlag_FE7 - * @param DMAx DMAx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsActiveFlag_FE7(DMA_TypeDef *DMAx) -{ - return ((READ_BIT(DMAx->HISR, DMA_HISR_FEIF7) == (DMA_HISR_FEIF7)) ? 1UL : 0UL); -} - -/** - * @brief Clear Stream 0 half transfer flag. - * @rmtoll LIFCR CHTIF0 LL_DMA_ClearFlag_HT0 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_HT0(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->LIFCR, DMA_LIFCR_CHTIF0); -} - -/** - * @brief Clear Stream 1 half transfer flag. - * @rmtoll LIFCR CHTIF1 LL_DMA_ClearFlag_HT1 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_HT1(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->LIFCR, DMA_LIFCR_CHTIF1); -} - -/** - * @brief Clear Stream 2 half transfer flag. - * @rmtoll LIFCR CHTIF2 LL_DMA_ClearFlag_HT2 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_HT2(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->LIFCR, DMA_LIFCR_CHTIF2); -} - -/** - * @brief Clear Stream 3 half transfer flag. - * @rmtoll LIFCR CHTIF3 LL_DMA_ClearFlag_HT3 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_HT3(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->LIFCR, DMA_LIFCR_CHTIF3); -} - -/** - * @brief Clear Stream 4 half transfer flag. - * @rmtoll HIFCR CHTIF4 LL_DMA_ClearFlag_HT4 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_HT4(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->HIFCR, DMA_HIFCR_CHTIF4); -} - -/** - * @brief Clear Stream 5 half transfer flag. - * @rmtoll HIFCR CHTIF5 LL_DMA_ClearFlag_HT5 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_HT5(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->HIFCR, DMA_HIFCR_CHTIF5); -} - -/** - * @brief Clear Stream 6 half transfer flag. - * @rmtoll HIFCR CHTIF6 LL_DMA_ClearFlag_HT6 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_HT6(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->HIFCR, DMA_HIFCR_CHTIF6); -} - -/** - * @brief Clear Stream 7 half transfer flag. - * @rmtoll HIFCR CHTIF7 LL_DMA_ClearFlag_HT7 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_HT7(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->HIFCR, DMA_HIFCR_CHTIF7); -} - -/** - * @brief Clear Stream 0 transfer complete flag. - * @rmtoll LIFCR CTCIF0 LL_DMA_ClearFlag_TC0 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_TC0(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->LIFCR, DMA_LIFCR_CTCIF0); -} - -/** - * @brief Clear Stream 1 transfer complete flag. - * @rmtoll LIFCR CTCIF1 LL_DMA_ClearFlag_TC1 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_TC1(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->LIFCR, DMA_LIFCR_CTCIF1); -} - -/** - * @brief Clear Stream 2 transfer complete flag. - * @rmtoll LIFCR CTCIF2 LL_DMA_ClearFlag_TC2 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_TC2(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->LIFCR, DMA_LIFCR_CTCIF2); -} - -/** - * @brief Clear Stream 3 transfer complete flag. - * @rmtoll LIFCR CTCIF3 LL_DMA_ClearFlag_TC3 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_TC3(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->LIFCR, DMA_LIFCR_CTCIF3); -} - -/** - * @brief Clear Stream 4 transfer complete flag. - * @rmtoll HIFCR CTCIF4 LL_DMA_ClearFlag_TC4 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_TC4(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->HIFCR, DMA_HIFCR_CTCIF4); -} - -/** - * @brief Clear Stream 5 transfer complete flag. - * @rmtoll HIFCR CTCIF5 LL_DMA_ClearFlag_TC5 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_TC5(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->HIFCR, DMA_HIFCR_CTCIF5); -} - -/** - * @brief Clear Stream 6 transfer complete flag. - * @rmtoll HIFCR CTCIF6 LL_DMA_ClearFlag_TC6 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_TC6(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->HIFCR, DMA_HIFCR_CTCIF6); -} - -/** - * @brief Clear Stream 7 transfer complete flag. - * @rmtoll HIFCR CTCIF7 LL_DMA_ClearFlag_TC7 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_TC7(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->HIFCR, DMA_HIFCR_CTCIF7); -} - -/** - * @brief Clear Stream 0 transfer error flag. - * @rmtoll LIFCR CTEIF0 LL_DMA_ClearFlag_TE0 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_TE0(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->LIFCR, DMA_LIFCR_CTEIF0); -} - -/** - * @brief Clear Stream 1 transfer error flag. - * @rmtoll LIFCR CTEIF1 LL_DMA_ClearFlag_TE1 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_TE1(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->LIFCR, DMA_LIFCR_CTEIF1); -} - -/** - * @brief Clear Stream 2 transfer error flag. - * @rmtoll LIFCR CTEIF2 LL_DMA_ClearFlag_TE2 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_TE2(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->LIFCR, DMA_LIFCR_CTEIF2); -} - -/** - * @brief Clear Stream 3 transfer error flag. - * @rmtoll LIFCR CTEIF3 LL_DMA_ClearFlag_TE3 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_TE3(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->LIFCR, DMA_LIFCR_CTEIF3); -} - -/** - * @brief Clear Stream 4 transfer error flag. - * @rmtoll HIFCR CTEIF4 LL_DMA_ClearFlag_TE4 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_TE4(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->HIFCR, DMA_HIFCR_CTEIF4); -} - -/** - * @brief Clear Stream 5 transfer error flag. - * @rmtoll HIFCR CTEIF5 LL_DMA_ClearFlag_TE5 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_TE5(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->HIFCR, DMA_HIFCR_CTEIF5); -} - -/** - * @brief Clear Stream 6 transfer error flag. - * @rmtoll HIFCR CTEIF6 LL_DMA_ClearFlag_TE6 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_TE6(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->HIFCR, DMA_HIFCR_CTEIF6); -} - -/** - * @brief Clear Stream 7 transfer error flag. - * @rmtoll HIFCR CTEIF7 LL_DMA_ClearFlag_TE7 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_TE7(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->HIFCR, DMA_HIFCR_CTEIF7); -} - -/** - * @brief Clear Stream 0 direct mode error flag. - * @rmtoll LIFCR CDMEIF0 LL_DMA_ClearFlag_DME0 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_DME0(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->LIFCR, DMA_LIFCR_CDMEIF0); -} - -/** - * @brief Clear Stream 1 direct mode error flag. - * @rmtoll LIFCR CDMEIF1 LL_DMA_ClearFlag_DME1 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_DME1(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->LIFCR, DMA_LIFCR_CDMEIF1); -} - -/** - * @brief Clear Stream 2 direct mode error flag. - * @rmtoll LIFCR CDMEIF2 LL_DMA_ClearFlag_DME2 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_DME2(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->LIFCR, DMA_LIFCR_CDMEIF2); -} - -/** - * @brief Clear Stream 3 direct mode error flag. - * @rmtoll LIFCR CDMEIF3 LL_DMA_ClearFlag_DME3 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_DME3(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->LIFCR, DMA_LIFCR_CDMEIF3); -} - -/** - * @brief Clear Stream 4 direct mode error flag. - * @rmtoll HIFCR CDMEIF4 LL_DMA_ClearFlag_DME4 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_DME4(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->HIFCR, DMA_HIFCR_CDMEIF4); -} - -/** - * @brief Clear Stream 5 direct mode error flag. - * @rmtoll HIFCR CDMEIF5 LL_DMA_ClearFlag_DME5 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_DME5(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->HIFCR, DMA_HIFCR_CDMEIF5); -} - -/** - * @brief Clear Stream 6 direct mode error flag. - * @rmtoll HIFCR CDMEIF6 LL_DMA_ClearFlag_DME6 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_DME6(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->HIFCR, DMA_HIFCR_CDMEIF6); -} - -/** - * @brief Clear Stream 7 direct mode error flag. - * @rmtoll HIFCR CDMEIF7 LL_DMA_ClearFlag_DME7 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_DME7(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->HIFCR, DMA_HIFCR_CDMEIF7); -} - -/** - * @brief Clear Stream 0 FIFO error flag. - * @rmtoll LIFCR CFEIF0 LL_DMA_ClearFlag_FE0 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_FE0(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->LIFCR, DMA_LIFCR_CFEIF0); -} - -/** - * @brief Clear Stream 1 FIFO error flag. - * @rmtoll LIFCR CFEIF1 LL_DMA_ClearFlag_FE1 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_FE1(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->LIFCR, DMA_LIFCR_CFEIF1); -} - -/** - * @brief Clear Stream 2 FIFO error flag. - * @rmtoll LIFCR CFEIF2 LL_DMA_ClearFlag_FE2 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_FE2(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->LIFCR, DMA_LIFCR_CFEIF2); -} - -/** - * @brief Clear Stream 3 FIFO error flag. - * @rmtoll LIFCR CFEIF3 LL_DMA_ClearFlag_FE3 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_FE3(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->LIFCR, DMA_LIFCR_CFEIF3); -} - -/** - * @brief Clear Stream 4 FIFO error flag. - * @rmtoll HIFCR CFEIF4 LL_DMA_ClearFlag_FE4 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_FE4(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->HIFCR, DMA_HIFCR_CFEIF4); -} - -/** - * @brief Clear Stream 5 FIFO error flag. - * @rmtoll HIFCR CFEIF5 LL_DMA_ClearFlag_FE5 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_FE5(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->HIFCR, DMA_HIFCR_CFEIF5); -} - -/** - * @brief Clear Stream 6 FIFO error flag. - * @rmtoll HIFCR CFEIF6 LL_DMA_ClearFlag_FE6 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_FE6(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->HIFCR, DMA_HIFCR_CFEIF6); -} - -/** - * @brief Clear Stream 7 FIFO error flag. - * @rmtoll HIFCR CFEIF7 LL_DMA_ClearFlag_FE7 - * @param DMAx DMAx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMA_ClearFlag_FE7(DMA_TypeDef *DMAx) -{ - WRITE_REG(DMAx->HIFCR, DMA_HIFCR_CFEIF7); -} - -/** - * @} - */ - -/** @defgroup DMA_LL_EF_IT_Management IT_Management - * @{ - */ - -/** - * @brief Enable Half transfer interrupt. - * @rmtoll CR HTIE LL_DMA_EnableIT_HT - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval None - */ -__STATIC_INLINE void LL_DMA_EnableIT_HT(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - SET_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_HTIE); -} - -/** - * @brief Enable Transfer error interrupt. - * @rmtoll CR TEIE LL_DMA_EnableIT_TE - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval None - */ -__STATIC_INLINE void LL_DMA_EnableIT_TE(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - SET_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_TEIE); -} - -/** - * @brief Enable Transfer complete interrupt. - * @rmtoll CR TCIE LL_DMA_EnableIT_TC - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval None - */ -__STATIC_INLINE void LL_DMA_EnableIT_TC(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - SET_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_TCIE); -} - -/** - * @brief Enable Direct mode error interrupt. - * @rmtoll CR DMEIE LL_DMA_EnableIT_DME - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval None - */ -__STATIC_INLINE void LL_DMA_EnableIT_DME(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - SET_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_DMEIE); -} - -/** - * @brief Enable FIFO error interrupt. - * @rmtoll FCR FEIE LL_DMA_EnableIT_FE - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval None - */ -__STATIC_INLINE void LL_DMA_EnableIT_FE(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - SET_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->FCR, DMA_SxFCR_FEIE); -} - -/** - * @brief Disable Half transfer interrupt. - * @rmtoll CR HTIE LL_DMA_DisableIT_HT - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval None - */ -__STATIC_INLINE void LL_DMA_DisableIT_HT(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - CLEAR_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_HTIE); -} - -/** - * @brief Disable Transfer error interrupt. - * @rmtoll CR TEIE LL_DMA_DisableIT_TE - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval None - */ -__STATIC_INLINE void LL_DMA_DisableIT_TE(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - CLEAR_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_TEIE); -} - -/** - * @brief Disable Transfer complete interrupt. - * @rmtoll CR TCIE LL_DMA_DisableIT_TC - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval None - */ -__STATIC_INLINE void LL_DMA_DisableIT_TC(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - CLEAR_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_TCIE); -} - -/** - * @brief Disable Direct mode error interrupt. - * @rmtoll CR DMEIE LL_DMA_DisableIT_DME - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval None - */ -__STATIC_INLINE void LL_DMA_DisableIT_DME(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - CLEAR_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_DMEIE); -} - -/** - * @brief Disable FIFO error interrupt. - * @rmtoll FCR FEIE LL_DMA_DisableIT_FE - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval None - */ -__STATIC_INLINE void LL_DMA_DisableIT_FE(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - CLEAR_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->FCR, DMA_SxFCR_FEIE); -} - -/** - * @brief Check if Half transfer interrupt is enabled. - * @rmtoll CR HTIE LL_DMA_IsEnabledIT_HT - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsEnabledIT_HT(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - return ((READ_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_HTIE) == DMA_SxCR_HTIE) ? 1UL : 0UL); -} - -/** - * @brief Check if Transfer error nterrup is enabled. - * @rmtoll CR TEIE LL_DMA_IsEnabledIT_TE - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsEnabledIT_TE(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - return ((READ_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_TEIE) == DMA_SxCR_TEIE) ? 1UL : 0UL); -} - -/** - * @brief Check if Transfer complete interrupt is enabled. - * @rmtoll CR TCIE LL_DMA_IsEnabledIT_TC - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsEnabledIT_TC(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - return ((READ_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_TCIE) == DMA_SxCR_TCIE) ? 1UL : 0UL); -} - -/** - * @brief Check if Direct mode error interrupt is enabled. - * @rmtoll CR DMEIE LL_DMA_IsEnabledIT_DME - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsEnabledIT_DME(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - return ((READ_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->CR, DMA_SxCR_DMEIE) == DMA_SxCR_DMEIE) ? 1UL : 0UL); -} - -/** - * @brief Check if FIFO error interrupt is enabled. - * @rmtoll FCR FEIE LL_DMA_IsEnabledIT_FE - * @param DMAx DMAx Instance - * @param Stream This parameter can be one of the following values: - * @arg @ref LL_DMA_STREAM_0 - * @arg @ref LL_DMA_STREAM_1 - * @arg @ref LL_DMA_STREAM_2 - * @arg @ref LL_DMA_STREAM_3 - * @arg @ref LL_DMA_STREAM_4 - * @arg @ref LL_DMA_STREAM_5 - * @arg @ref LL_DMA_STREAM_6 - * @arg @ref LL_DMA_STREAM_7 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMA_IsEnabledIT_FE(DMA_TypeDef *DMAx, uint32_t Stream) -{ - uint32_t dma_base_addr = (uint32_t)DMAx; - - return ((READ_BIT(((DMA_Stream_TypeDef *)(dma_base_addr + LL_DMA_STR_OFFSET_TAB[Stream]))->FCR, DMA_SxFCR_FEIE) == DMA_SxFCR_FEIE) ? 1UL : 0UL); -} - -/** - * @} - */ - -#if defined(USE_FULL_LL_DRIVER) -/** @defgroup DMA_LL_EF_Init Initialization and de-initialization functions - * @{ - */ - -uint32_t LL_DMA_Init(DMA_TypeDef *DMAx, uint32_t Stream, LL_DMA_InitTypeDef *DMA_InitStruct); -uint32_t LL_DMA_DeInit(DMA_TypeDef *DMAx, uint32_t Stream); -void LL_DMA_StructInit(LL_DMA_InitTypeDef *DMA_InitStruct); - -/** - * @} - */ -#endif /* USE_FULL_LL_DRIVER */ - -/** - * @} - */ - -/** - * @} - */ - -#endif /* DMA1 || DMA2 */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* __STM32H7xx_LL_DMA_H */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_dmamux.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_dmamux.h deleted file mode 100644 index bf4cffa..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_dmamux.h +++ /dev/null @@ -1,2436 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_ll_dmamux.h - * @author MCD Application Team - * @brief Header file of DMAMUX LL module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_LL_DMAMUX_H -#define STM32H7xx_LL_DMAMUX_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx.h" - -/** @addtogroup STM32H7xx_LL_Driver - * @{ - */ - -#if defined (DMAMUX1) || defined (DMAMUX2) - -/** @defgroup DMAMUX_LL DMAMUX - * @{ - */ - -/* Private types -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private constants ---------------------------------------------------------*/ -/** @defgroup DMAMUX_LL_Private_Constants DMAMUX Private Constants - * @{ - */ -/* Define used to get DMAMUX CCR register size */ -#define DMAMUX_CCR_SIZE 0x00000004U - -/* Define used to get DMAMUX RGCR register size */ -#define DMAMUX_RGCR_SIZE 0x00000004U - -/* Define used to get DMAMUX RequestGenerator offset */ -#define DMAMUX_REQ_GEN_OFFSET (DMAMUX1_RequestGenerator0_BASE - DMAMUX1_BASE) -/* Define used to get DMAMUX Channel Status offset */ -#define DMAMUX_CH_STATUS_OFFSET (DMAMUX1_ChannelStatus_BASE - DMAMUX1_BASE) -/* Define used to get DMAMUX RequestGenerator status offset */ -#define DMAMUX_REQ_GEN_STATUS_OFFSET (DMAMUX1_RequestGenStatus_BASE - DMAMUX1_BASE) - -/** - * @} - */ - -/* Private macros ------------------------------------------------------------*/ -/* Exported types ------------------------------------------------------------*/ -/* Exported constants --------------------------------------------------------*/ -/** @defgroup DMAMUX_LL_Exported_Constants DMAMUX Exported Constants - * @{ - */ -/** @defgroup DMAMUX_LL_EC_CLEAR_FLAG Clear Flags Defines - * @brief Flags defines which can be used with LL_DMAMUX_WriteReg function - * @{ - */ -#define LL_DMAMUX_CFR_CSOF0 DMAMUX_CFR_CSOF0 /*!< Synchronization Event Overrun Flag Channel 0 */ -#define LL_DMAMUX_CFR_CSOF1 DMAMUX_CFR_CSOF1 /*!< Synchronization Event Overrun Flag Channel 1 */ -#define LL_DMAMUX_CFR_CSOF2 DMAMUX_CFR_CSOF2 /*!< Synchronization Event Overrun Flag Channel 2 */ -#define LL_DMAMUX_CFR_CSOF3 DMAMUX_CFR_CSOF3 /*!< Synchronization Event Overrun Flag Channel 3 */ -#define LL_DMAMUX_CFR_CSOF4 DMAMUX_CFR_CSOF4 /*!< Synchronization Event Overrun Flag Channel 4 */ -#define LL_DMAMUX_CFR_CSOF5 DMAMUX_CFR_CSOF5 /*!< Synchronization Event Overrun Flag Channel 5 */ -#define LL_DMAMUX_CFR_CSOF6 DMAMUX_CFR_CSOF6 /*!< Synchronization Event Overrun Flag Channel 6 */ -#define LL_DMAMUX_CFR_CSOF7 DMAMUX_CFR_CSOF7 /*!< Synchronization Event Overrun Flag Channel 7 */ -#define LL_DMAMUX_CFR_CSOF8 DMAMUX_CFR_CSOF8 /*!< Synchronization Event Overrun Flag Channel 8 */ -#define LL_DMAMUX_CFR_CSOF9 DMAMUX_CFR_CSOF9 /*!< Synchronization Event Overrun Flag Channel 9 */ -#define LL_DMAMUX_CFR_CSOF10 DMAMUX_CFR_CSOF10 /*!< Synchronization Event Overrun Flag Channel 10 */ -#define LL_DMAMUX_CFR_CSOF11 DMAMUX_CFR_CSOF11 /*!< Synchronization Event Overrun Flag Channel 11 */ -#define LL_DMAMUX_CFR_CSOF12 DMAMUX_CFR_CSOF12 /*!< Synchronization Event Overrun Flag Channel 12 */ -#define LL_DMAMUX_CFR_CSOF13 DMAMUX_CFR_CSOF13 /*!< Synchronization Event Overrun Flag Channel 13 */ -#define LL_DMAMUX_CFR_CSOF14 DMAMUX_CFR_CSOF14 /*!< Synchronization Event Overrun Flag Channel 14 */ -#define LL_DMAMUX_CFR_CSOF15 DMAMUX_CFR_CSOF15 /*!< Synchronization Event Overrun Flag Channel 15 */ -#define LL_DMAMUX_RGCFR_RGCOF0 DMAMUX_RGCFR_COF0 /*!< Request Generator 0 Trigger Event Overrun Flag */ -#define LL_DMAMUX_RGCFR_RGCOF1 DMAMUX_RGCFR_COF1 /*!< Request Generator 1 Trigger Event Overrun Flag */ -#define LL_DMAMUX_RGCFR_RGCOF2 DMAMUX_RGCFR_COF2 /*!< Request Generator 2 Trigger Event Overrun Flag */ -#define LL_DMAMUX_RGCFR_RGCOF3 DMAMUX_RGCFR_COF3 /*!< Request Generator 3 Trigger Event Overrun Flag */ -#define LL_DMAMUX_RGCFR_RGCOF4 DMAMUX_RGCFR_COF4 /*!< Request Generator 4 Trigger Event Overrun Flag */ -#define LL_DMAMUX_RGCFR_RGCOF5 DMAMUX_RGCFR_COF5 /*!< Request Generator 5 Trigger Event Overrun Flag */ -#define LL_DMAMUX_RGCFR_RGCOF6 DMAMUX_RGCFR_COF6 /*!< Request Generator 6 Trigger Event Overrun Flag */ -#define LL_DMAMUX_RGCFR_RGCOF7 DMAMUX_RGCFR_COF7 /*!< Request Generator 7 Trigger Event Overrun Flag */ -/** - * @} - */ - -/** @defgroup DMAMUX_LL_EC_GET_FLAG Get Flags Defines - * @brief Flags defines which can be used with LL_DMAMUX_ReadReg function - * @{ - */ -#define LL_DMAMUX_CSR_SOF0 DMAMUX_CSR_SOF0 /*!< Synchronization Event Overrun Flag Channel 0 */ -#define LL_DMAMUX_CSR_SOF1 DMAMUX_CSR_SOF1 /*!< Synchronization Event Overrun Flag Channel 1 */ -#define LL_DMAMUX_CSR_SOF2 DMAMUX_CSR_SOF2 /*!< Synchronization Event Overrun Flag Channel 2 */ -#define LL_DMAMUX_CSR_SOF3 DMAMUX_CSR_SOF3 /*!< Synchronization Event Overrun Flag Channel 3 */ -#define LL_DMAMUX_CSR_SOF4 DMAMUX_CSR_SOF4 /*!< Synchronization Event Overrun Flag Channel 4 */ -#define LL_DMAMUX_CSR_SOF5 DMAMUX_CSR_SOF5 /*!< Synchronization Event Overrun Flag Channel 5 */ -#define LL_DMAMUX_CSR_SOF6 DMAMUX_CSR_SOF6 /*!< Synchronization Event Overrun Flag Channel 6 */ -#define LL_DMAMUX_CSR_SOF7 DMAMUX_CSR_SOF7 /*!< Synchronization Event Overrun Flag Channel 7 */ -#define LL_DMAMUX_CSR_SOF8 DMAMUX_CSR_SOF8 /*!< Synchronization Event Overrun Flag Channel 8 */ -#define LL_DMAMUX_CSR_SOF9 DMAMUX_CSR_SOF9 /*!< Synchronization Event Overrun Flag Channel 9 */ -#define LL_DMAMUX_CSR_SOF10 DMAMUX_CSR_SOF10 /*!< Synchronization Event Overrun Flag Channel 10 */ -#define LL_DMAMUX_CSR_SOF11 DMAMUX_CSR_SOF11 /*!< Synchronization Event Overrun Flag Channel 11 */ -#define LL_DMAMUX_CSR_SOF12 DMAMUX_CSR_SOF12 /*!< Synchronization Event Overrun Flag Channel 12 */ -#define LL_DMAMUX_CSR_SOF13 DMAMUX_CSR_SOF13 /*!< Synchronization Event Overrun Flag Channel 13 */ -#define LL_DMAMUX_CSR_SOF14 DMAMUX_CSR_SOF14 /*!< Synchronization Event Overrun Flag Channel 14 */ -#define LL_DMAMUX_CSR_SOF15 DMAMUX_CSR_SOF15 /*!< Synchronization Event Overrun Flag Channel 15 */ -#define LL_DMAMUX_RGSR_RGOF0 DMAMUX_RGSR_OF0 /*!< Request Generator 0 Trigger Event Overrun Flag */ -#define LL_DMAMUX_RGSR_RGOF1 DMAMUX_RGSR_OF1 /*!< Request Generator 1 Trigger Event Overrun Flag */ -#define LL_DMAMUX_RGSR_RGOF2 DMAMUX_RGSR_OF2 /*!< Request Generator 2 Trigger Event Overrun Flag */ -#define LL_DMAMUX_RGSR_RGOF3 DMAMUX_RGSR_OF3 /*!< Request Generator 3 Trigger Event Overrun Flag */ -#define LL_DMAMUX_RGSR_RGOF4 DMAMUX_RGSR_OF4 /*!< Request Generator 4 Trigger Event Overrun Flag */ -#define LL_DMAMUX_RGSR_RGOF5 DMAMUX_RGSR_OF5 /*!< Request Generator 5 Trigger Event Overrun Flag */ -#define LL_DMAMUX_RGSR_RGOF6 DMAMUX_RGSR_OF6 /*!< Request Generator 6 Trigger Event Overrun Flag */ -#define LL_DMAMUX_RGSR_RGOF7 DMAMUX_RGSR_OF7 /*!< Request Generator 7 Trigger Event Overrun Flag */ -/** - * @} - */ - -/** @defgroup DMAMUX_LL_EC_IT IT Defines - * @brief IT defines which can be used with LL_DMA_ReadReg and LL_DMAMUX_WriteReg functions - * @{ - */ -#define LL_DMAMUX_CCR_SOIE DMAMUX_CxCR_SOIE /*!< Synchronization Event Overrun Interrupt */ -#define LL_DMAMUX_RGCR_RGOIE DMAMUX_RGxCR_OIE /*!< Request Generation Trigger Event Overrun Interrupt */ -/** - * @} - */ - -/** @defgroup DMAMUX1_Request_selection DMAMUX1 Request selection - * @brief DMAMUX1 Request selection - * @{ - */ -/* DMAMUX1 requests */ -#define LL_DMAMUX1_REQ_MEM2MEM 0U /*!< memory to memory transfer */ -#define LL_DMAMUX1_REQ_GENERATOR0 1U /*!< DMAMUX1 request generator 0 */ -#define LL_DMAMUX1_REQ_GENERATOR1 2U /*!< DMAMUX1 request generator 1 */ -#define LL_DMAMUX1_REQ_GENERATOR2 3U /*!< DMAMUX1 request generator 2 */ -#define LL_DMAMUX1_REQ_GENERATOR3 4U /*!< DMAMUX1 request generator 3 */ -#define LL_DMAMUX1_REQ_GENERATOR4 5U /*!< DMAMUX1 request generator 4 */ -#define LL_DMAMUX1_REQ_GENERATOR5 6U /*!< DMAMUX1 request generator 5 */ -#define LL_DMAMUX1_REQ_GENERATOR6 7U /*!< DMAMUX1 request generator 6 */ -#define LL_DMAMUX1_REQ_GENERATOR7 8U /*!< DMAMUX1 request generator 7 */ -#define LL_DMAMUX1_REQ_ADC1 9U /*!< DMAMUX1 ADC1 request */ -#define LL_DMAMUX1_REQ_ADC2 10U /*!< DMAMUX1 ADC2 request */ -#define LL_DMAMUX1_REQ_TIM1_CH1 11U /*!< DMAMUX1 TIM1 CH1 request */ -#define LL_DMAMUX1_REQ_TIM1_CH2 12U /*!< DMAMUX1 TIM1 CH2 request */ -#define LL_DMAMUX1_REQ_TIM1_CH3 13U /*!< DMAMUX1 TIM1 CH3 request */ -#define LL_DMAMUX1_REQ_TIM1_CH4 14U /*!< DMAMUX1 TIM1 CH4 request */ -#define LL_DMAMUX1_REQ_TIM1_UP 15U /*!< DMAMUX1 TIM1 UP request */ -#define LL_DMAMUX1_REQ_TIM1_TRIG 16U /*!< DMAMUX1 TIM1 TRIG request */ -#define LL_DMAMUX1_REQ_TIM1_COM 17U /*!< DMAMUX1 TIM1 COM request */ -#define LL_DMAMUX1_REQ_TIM2_CH1 18U /*!< DMAMUX1 TIM2 CH1 request */ -#define LL_DMAMUX1_REQ_TIM2_CH2 19U /*!< DMAMUX1 TIM2 CH2 request */ -#define LL_DMAMUX1_REQ_TIM2_CH3 20U /*!< DMAMUX1 TIM2 CH3 request */ -#define LL_DMAMUX1_REQ_TIM2_CH4 21U /*!< DMAMUX1 TIM2 CH4 request */ -#define LL_DMAMUX1_REQ_TIM2_UP 22U /*!< DMAMUX1 TIM2 UP request */ -#define LL_DMAMUX1_REQ_TIM3_CH1 23U /*!< DMAMUX1 TIM3 CH1 request */ -#define LL_DMAMUX1_REQ_TIM3_CH2 24U /*!< DMAMUX1 TIM3 CH2 request */ -#define LL_DMAMUX1_REQ_TIM3_CH3 25U /*!< DMAMUX1 TIM3 CH3 request */ -#define LL_DMAMUX1_REQ_TIM3_CH4 26U /*!< DMAMUX1 TIM3 CH4 request */ -#define LL_DMAMUX1_REQ_TIM3_UP 27U /*!< DMAMUX1 TIM3 UP request */ -#define LL_DMAMUX1_REQ_TIM3_TRIG 28U /*!< DMAMUX1 TIM3 TRIG request */ -#define LL_DMAMUX1_REQ_TIM4_CH1 29U /*!< DMAMUX1 TIM4 CH1 request */ -#define LL_DMAMUX1_REQ_TIM4_CH2 30U /*!< DMAMUX1 TIM4 CH2 request */ -#define LL_DMAMUX1_REQ_TIM4_CH3 31U /*!< DMAMUX1 TIM4 CH3 request */ -#define LL_DMAMUX1_REQ_TIM4_UP 32U /*!< DMAMUX1 TIM4 UP request */ -#define LL_DMAMUX1_REQ_I2C1_RX 33U /*!< DMAMUX1 I2C1 RX request */ -#define LL_DMAMUX1_REQ_I2C1_TX 34U /*!< DMAMUX1 I2C1 TX request */ -#define LL_DMAMUX1_REQ_I2C2_RX 35U /*!< DMAMUX1 I2C2 RX request */ -#define LL_DMAMUX1_REQ_I2C2_TX 36U /*!< DMAMUX1 I2C2 TX request */ -#define LL_DMAMUX1_REQ_SPI1_RX 37U /*!< DMAMUX1 SPI1 RX request */ -#define LL_DMAMUX1_REQ_SPI1_TX 38U /*!< DMAMUX1 SPI1 TX request */ -#define LL_DMAMUX1_REQ_SPI2_RX 39U /*!< DMAMUX1 SPI2 RX request */ -#define LL_DMAMUX1_REQ_SPI2_TX 40U /*!< DMAMUX1 SPI2 TX request */ -#define LL_DMAMUX1_REQ_USART1_RX 41U /*!< DMAMUX1 USART1 RX request */ -#define LL_DMAMUX1_REQ_USART1_TX 42U /*!< DMAMUX1 USART1 TX request */ -#define LL_DMAMUX1_REQ_USART2_RX 43U /*!< DMAMUX1 USART2 RX request */ -#define LL_DMAMUX1_REQ_USART2_TX 44U /*!< DMAMUX1 USART2 TX request */ -#define LL_DMAMUX1_REQ_USART3_RX 45U /*!< DMAMUX1 USART3 RX request */ -#define LL_DMAMUX1_REQ_USART3_TX 46U /*!< DMAMUX1 USART3 TX request */ -#define LL_DMAMUX1_REQ_TIM8_CH1 47U /*!< DMAMUX1 TIM8 CH1 request */ -#define LL_DMAMUX1_REQ_TIM8_CH2 48U /*!< DMAMUX1 TIM8 CH2 request */ -#define LL_DMAMUX1_REQ_TIM8_CH3 49U /*!< DMAMUX1 TIM8 CH3 request */ -#define LL_DMAMUX1_REQ_TIM8_CH4 50U /*!< DMAMUX1 TIM8 CH4 request */ -#define LL_DMAMUX1_REQ_TIM8_UP 51U /*!< DMAMUX1 TIM8 UP request */ -#define LL_DMAMUX1_REQ_TIM8_TRIG 52U /*!< DMAMUX1 TIM8 TRIG request */ -#define LL_DMAMUX1_REQ_TIM8_COM 53U /*!< DMAMUX1 TIM8 COM request */ -#define LL_DMAMUX1_REQ_TIM5_CH1 55U /*!< DMAMUX1 TIM5 CH1 request */ -#define LL_DMAMUX1_REQ_TIM5_CH2 56U /*!< DMAMUX1 TIM5 CH2 request */ -#define LL_DMAMUX1_REQ_TIM5_CH3 57U /*!< DMAMUX1 TIM5 CH3 request */ -#define LL_DMAMUX1_REQ_TIM5_CH4 58U /*!< DMAMUX1 TIM5 CH4 request */ -#define LL_DMAMUX1_REQ_TIM5_UP 59U /*!< DMAMUX1 TIM5 UP request */ -#define LL_DMAMUX1_REQ_TIM5_TRIG 60U /*!< DMAMUX1 TIM5 TRIG request */ -#define LL_DMAMUX1_REQ_SPI3_RX 61U /*!< DMAMUX1 SPI3 RX request */ -#define LL_DMAMUX1_REQ_SPI3_TX 62U /*!< DMAMUX1 SPI3 TX request */ -#define LL_DMAMUX1_REQ_UART4_RX 63U /*!< DMAMUX1 UART4 RX request */ -#define LL_DMAMUX1_REQ_UART4_TX 64U /*!< DMAMUX1 UART4 TX request */ -#define LL_DMAMUX1_REQ_UART5_RX 65U /*!< DMAMUX1 UART5 RX request */ -#define LL_DMAMUX1_REQ_UART5_TX 66U /*!< DMAMUX1 UART5 TX request */ -#define LL_DMAMUX1_REQ_DAC1_CH1 67U /*!< DMAMUX1 DAC1 Channel 1 request */ -#define LL_DMAMUX1_REQ_DAC1_CH2 68U /*!< DMAMUX1 DAC1 Channel 2 request */ -#define LL_DMAMUX1_REQ_TIM6_UP 69U /*!< DMAMUX1 TIM6 UP request */ -#define LL_DMAMUX1_REQ_TIM7_UP 70U /*!< DMAMUX1 TIM7 UP request */ -#define LL_DMAMUX1_REQ_USART6_RX 71U /*!< DMAMUX1 USART6 RX request */ -#define LL_DMAMUX1_REQ_USART6_TX 72U /*!< DMAMUX1 USART6 TX request */ -#define LL_DMAMUX1_REQ_I2C3_RX 73U /*!< DMAMUX1 I2C3 RX request */ -#define LL_DMAMUX1_REQ_I2C3_TX 74U /*!< DMAMUX1 I2C3 TX request */ -#if defined (PSSI) -#define LL_DMAMUX1_REQ_DCMI_PSSI 75U /*!< DMAMUX1 DCMI/PSSI request */ -#define LL_DMAMUX1_REQ_DCMI LL_DMAMUX1_REQ_DCMI_PSSI /* Legacy define */ -#else -#define LL_DMAMUX1_REQ_DCMI 75U /*!< DMAMUX1 DCMI request */ -#endif /* PSSI */ -#define LL_DMAMUX1_REQ_CRYP_IN 76U /*!< DMAMUX1 CRYP IN request */ -#define LL_DMAMUX1_REQ_CRYP_OUT 77U /*!< DMAMUX1 CRYP OUT request */ -#define LL_DMAMUX1_REQ_HASH_IN 78U /*!< DMAMUX1 HASH IN request */ -#define LL_DMAMUX1_REQ_UART7_RX 79U /*!< DMAMUX1 UART7 RX request */ -#define LL_DMAMUX1_REQ_UART7_TX 80U /*!< DMAMUX1 UART7 TX request */ -#define LL_DMAMUX1_REQ_UART8_RX 81U /*!< DMAMUX1 UART8 RX request */ -#define LL_DMAMUX1_REQ_UART8_TX 82U /*!< DMAMUX1 UART8 TX request */ -#define LL_DMAMUX1_REQ_SPI4_RX 83U /*!< DMAMUX1 SPI4 RX request */ -#define LL_DMAMUX1_REQ_SPI4_TX 84U /*!< DMAMUX1 SPI4 TX request */ -#define LL_DMAMUX1_REQ_SPI5_RX 85U /*!< DMAMUX1 SPI5 RX request */ -#define LL_DMAMUX1_REQ_SPI5_TX 86U /*!< DMAMUX1 SPI5 TX request */ -#define LL_DMAMUX1_REQ_SAI1_A 87U /*!< DMAMUX1 SAI1 A request */ -#define LL_DMAMUX1_REQ_SAI1_B 88U /*!< DMAMUX1 SAI1 B request */ -#if defined(SAI2) -#define LL_DMAMUX1_REQ_SAI2_A 89U /*!< DMAMUX1 SAI2 A request */ -#define LL_DMAMUX1_REQ_SAI2_B 90U /*!< DMAMUX1 SAI2 B request */ -#endif /* SAI2 */ -#define LL_DMAMUX1_REQ_SWPMI_RX 91U /*!< DMAMUX1 SWPMI RX request */ -#define LL_DMAMUX1_REQ_SWPMI_TX 92U /*!< DMAMUX1 SWPMI TX request */ -#define LL_DMAMUX1_REQ_SPDIF_RX_DT 93U /*!< DMAMUX1 SPDIF RXDT request */ -#define LL_DMAMUX1_REQ_SPDIF_RX_CS 94U /*!< DMAMUX1 SPDIF RXCS request */ -#if defined (HRTIM1) -#define LL_DMAMUX1_REQ_HRTIM_MASTER 95U /*!< DMAMUX1 HRTIM1 Master request 1 */ -#define LL_DMAMUX1_REQ_HRTIM_TIMER_A 96U /*!< DMAMUX1 HRTIM1 Timer A request 2 */ -#define LL_DMAMUX1_REQ_HRTIM_TIMER_B 97U /*!< DMAMUX1 HRTIM1 Timer B request 3 */ -#define LL_DMAMUX1_REQ_HRTIM_TIMER_C 98U /*!< DMAMUX1 HRTIM1 Timer C request 4 */ -#define LL_DMAMUX1_REQ_HRTIM_TIMER_D 99U /*!< DMAMUX1 HRTIM1 Timer D request 5 */ -#define LL_DMAMUX1_REQ_HRTIM_TIMER_E 100U /*!< DMAMUX1 HRTIM1 Timer E request 6 */ -#endif /* HRTIM1 */ -#define LL_DMAMUX1_REQ_DFSDM1_FLT0 101U /*!< DMAMUX1 DFSDM1 Filter0 request */ -#define LL_DMAMUX1_REQ_DFSDM1_FLT1 102U /*!< DMAMUX1 DFSDM1 Filter1 request */ -#define LL_DMAMUX1_REQ_DFSDM1_FLT2 103U /*!< DMAMUX1 DFSDM1 Filter2 request */ -#define LL_DMAMUX1_REQ_DFSDM1_FLT3 104U /*!< DMAMUX1 DFSDM1 Filter3 request */ -#define LL_DMAMUX1_REQ_TIM15_CH1 105U /*!< DMAMUX1 TIM15 CH1 request */ -#define LL_DMAMUX1_REQ_TIM15_UP 106U /*!< DMAMUX1 TIM15 UP request */ -#define LL_DMAMUX1_REQ_TIM15_TRIG 107U /*!< DMAMUX1 TIM15 TRIG request */ -#define LL_DMAMUX1_REQ_TIM15_COM 108U /*!< DMAMUX1 TIM15 COM request */ -#define LL_DMAMUX1_REQ_TIM16_CH1 109U /*!< DMAMUX1 TIM16 CH1 request */ -#define LL_DMAMUX1_REQ_TIM16_UP 110U /*!< DMAMUX1 TIM16 UP request */ -#define LL_DMAMUX1_REQ_TIM17_CH1 111U /*!< DMAMUX1 TIM17 CH1 request */ -#define LL_DMAMUX1_REQ_TIM17_UP 112U /*!< DMAMUX1 TIM17 UP request */ -#if defined (SAI3) -#define LL_DMAMUX1_REQ_SAI3_A 113U /*!< DMAMUX1 SAI3 A request */ -#define LL_DMAMUX1_REQ_SAI3_B 114U /*!< DMAMUX1 SAI3 B request */ -#endif /* SAI3 */ -#if defined (ADC3) -#define LL_DMAMUX1_REQ_ADC3 115U /*!< DMAMUX1 ADC3 request */ -#endif /* ADC3 */ -#if defined (UART9) -#define LL_DMAMUX1_REQ_UART9_RX 116U /*!< DMAMUX1 UART9 RX request */ -#define LL_DMAMUX1_REQ_UART9_TX 117U /*!< DMAMUX1 UART9 TX request */ -#endif /* UART9 */ -#if defined (USART10) -#define LL_DMAMUX1_REQ_USART10_RX 118U /*!< DMAMUX1 USART10 RX request */ -#define LL_DMAMUX1_REQ_USART10_TX 119U /*!< DMAMUX1 USART10 TX request */ -#endif /* USART10 */ -#if defined(FMAC) -#define LL_DMAMUX1_REQ_FMAC_READ 120U /*!< DMAMUX1 FMAC Read request */ -#define LL_DMAMUX1_REQ_FMAC_WRITE 121U /*!< DMAMUX1 FMAC Write request */ -#endif /* FMAC */ -#if defined(CORDIC) -#define LL_DMAMUX1_REQ_CORDIC_READ 122U /*!< DMAMUX1 CORDIC Read request */ -#define LL_DMAMUX1_REQ_CORDIC_WRITE 123U /*!< DMAMUX1 CORDIC Write request */ -#endif /* CORDIC */ -#if defined(I2C5) -#define LL_DMAMUX1_REQ_I2C5_RX 124U /*!< DMAMUX1 I2C5 RX request */ -#define LL_DMAMUX1_REQ_I2C5_TX 125U /*!< DMAMUX1 I2C5 TX request */ -#endif /* I2C5 */ -#if defined(TIM23) -#define LL_DMAMUX1_REQ_TIM23_CH1 126U /*!< DMAMUX1 TIM23 CH1 request */ -#define LL_DMAMUX1_REQ_TIM23_CH2 127U /*!< DMAMUX1 TIM23 CH2 request */ -#define LL_DMAMUX1_REQ_TIM23_CH3 128U /*!< DMAMUX1 TIM23 CH3 request */ -#define LL_DMAMUX1_REQ_TIM23_CH4 129U /*!< DMAMUX1 TIM23 CH4 request */ -#define LL_DMAMUX1_REQ_TIM23_UP 130U /*!< DMAMUX1 TIM23 UP request */ -#define LL_DMAMUX1_REQ_TIM23_TRIG 131U /*!< DMAMUX1 TIM23 TRIG request */ -#endif /* TIM23 */ -#if defined(TIM24) -#define LL_DMAMUX1_REQ_TIM24_CH1 132U /*!< DMAMUX1 TIM24 CH1 request */ -#define LL_DMAMUX1_REQ_TIM24_CH2 133U /*!< DMAMUX1 TIM24 CH2 request */ -#define LL_DMAMUX1_REQ_TIM24_CH3 134U /*!< DMAMUX1 TIM24 CH3 request */ -#define LL_DMAMUX1_REQ_TIM24_CH4 135U /*!< DMAMUX1 TIM24 CH4 request */ -#define LL_DMAMUX1_REQ_TIM24_UP 136U /*!< DMAMUX1 TIM24 UP request */ -#define LL_DMAMUX1_REQ_TIM24_TRIG 137U /*!< DMAMUX1 TIM24 TRIG request */ -#endif /* TIM24 */ -/** - * @} - */ - -/** @defgroup DMAMUX2_Request_selection DMAMUX2 Request selection - * @brief DMAMUX2 Request selection - * @{ - */ -/* DMAMUX2 requests */ -#define LL_DMAMUX2_REQ_MEM2MEM 0U /*!< memory to memory transfer */ -#define LL_DMAMUX2_REQ_GENERATOR0 1U /*!< DMAMUX2 request generator 0 */ -#define LL_DMAMUX2_REQ_GENERATOR1 2U /*!< DMAMUX2 request generator 1 */ -#define LL_DMAMUX2_REQ_GENERATOR2 3U /*!< DMAMUX2 request generator 2 */ -#define LL_DMAMUX2_REQ_GENERATOR3 4U /*!< DMAMUX2 request generator 3 */ -#define LL_DMAMUX2_REQ_GENERATOR4 5U /*!< DMAMUX2 request generator 4 */ -#define LL_DMAMUX2_REQ_GENERATOR5 6U /*!< DMAMUX2 request generator 5 */ -#define LL_DMAMUX2_REQ_GENERATOR6 7U /*!< DMAMUX2 request generator 6 */ -#define LL_DMAMUX2_REQ_GENERATOR7 8U /*!< DMAMUX2 request generator 7 */ -#define LL_DMAMUX2_REQ_LPUART1_RX 9U /*!< DMAMUX2 LP_UART1_RX request */ -#define LL_DMAMUX2_REQ_LPUART1_TX 10U /*!< DMAMUX2 LP_UART1_TX request */ -#define LL_DMAMUX2_REQ_SPI6_RX 11U /*!< DMAMUX2 SPI6 RX request */ -#define LL_DMAMUX2_REQ_SPI6_TX 12U /*!< DMAMUX2 SPI6 TX request */ -#define LL_DMAMUX2_REQ_I2C4_RX 13U /*!< DMAMUX2 I2C4 RX request */ -#define LL_DMAMUX2_REQ_I2C4_TX 14U /*!< DMAMUX2 I2C4 TX request */ -#if defined (SAI4) -#define LL_DMAMUX2_REQ_SAI4_A 15U /*!< DMAMUX2 SAI4 A request */ -#define LL_DMAMUX2_REQ_SAI4_B 16U /*!< DMAMUX2 SAI4 B request */ -#endif /* SAI4 */ -#if defined (ADC3) -#define LL_DMAMUX2_REQ_ADC3 17U /*!< DMAMUX2 ADC3 request */ -#endif /* ADC3 */ -#if defined (DAC2) -#define LL_DMAMUX2_REQ_DAC2_CH1 17U /*!< DMAMUX2 DAC2 CH1 request */ -#endif /* DAC2 */ -#if defined (DFSDM2_Channel0) -#define LL_DMAMUX2_REQ_DFSDM2_FLT0 18U /*!< DMAMUX2 DFSDM2 Filter0 request */ -#endif /* DFSDM2_Channel0 */ -/** - * @} - */ - - -/** @defgroup DMAMUX_LL_EC_CHANNEL DMAMUX Channel - * @{ - */ -#define LL_DMAMUX_CHANNEL_0 0x00000000U /*!< DMAMUX1 Channel 0 connected to DMA1 Channel 0 , DMAMUX2 Channel 0 connected to BDMA Channel 0 */ -#define LL_DMAMUX_CHANNEL_1 0x00000001U /*!< DMAMUX1 Channel 1 connected to DMA1 Channel 1 , DMAMUX2 Channel 1 connected to BDMA Channel 1 */ -#define LL_DMAMUX_CHANNEL_2 0x00000002U /*!< DMAMUX1 Channel 2 connected to DMA1 Channel 2 , DMAMUX2 Channel 2 connected to BDMA Channel 2 */ -#define LL_DMAMUX_CHANNEL_3 0x00000003U /*!< DMAMUX1 Channel 3 connected to DMA1 Channel 3 , DMAMUX2 Channel 3 connected to BDMA Channel 3 */ -#define LL_DMAMUX_CHANNEL_4 0x00000004U /*!< DMAMUX1 Channel 4 connected to DMA1 Channel 4 , DMAMUX2 Channel 4 connected to BDMA Channel 4 */ -#define LL_DMAMUX_CHANNEL_5 0x00000005U /*!< DMAMUX1 Channel 5 connected to DMA1 Channel 5 , DMAMUX2 Channel 5 connected to BDMA Channel 5 */ -#define LL_DMAMUX_CHANNEL_6 0x00000006U /*!< DMAMUX1 Channel 6 connected to DMA1 Channel 6 , DMAMUX2 Channel 6 connected to BDMA Channel 6 */ -#define LL_DMAMUX_CHANNEL_7 0x00000007U /*!< DMAMUX1 Channel 7 connected to DMA1 Channel 7 , DMAMUX2 Channel 7 connected to BDMA Channel 7 */ -#define LL_DMAMUX_CHANNEL_8 0x00000008U /*!< DMAMUX1 Channel 8 connected to DMA2 Channel 0 */ -#define LL_DMAMUX_CHANNEL_9 0x00000009U /*!< DMAMUX1 Channel 9 connected to DMA2 Channel 1 */ -#define LL_DMAMUX_CHANNEL_10 0x0000000AU /*!< DMAMUX1 Channel 10 connected to DMA2 Channel 2 */ -#define LL_DMAMUX_CHANNEL_11 0x0000000BU /*!< DMAMUX1 Channel 11 connected to DMA2 Channel 3 */ -#define LL_DMAMUX_CHANNEL_12 0x0000000CU /*!< DMAMUX1 Channel 12 connected to DMA2 Channel 4 */ -#define LL_DMAMUX_CHANNEL_13 0x0000000DU /*!< DMAMUX1 Channel 13 connected to DMA2 Channel 5 */ -#define LL_DMAMUX_CHANNEL_14 0x0000000EU /*!< DMAMUX1 Channel 14 connected to DMA2 Channel 6 */ -#define LL_DMAMUX_CHANNEL_15 0x0000000FU /*!< DMAMUX1 Channel 15 connected to DMA2 Channel 7 */ -/** - * @} - */ - -/** @defgroup DMAMUX_LL_EC_SYNC_NO Synchronization Signal Polarity - * @{ - */ -#define LL_DMAMUX_SYNC_NO_EVENT 0x00000000U /*!< All requests are blocked */ -#define LL_DMAMUX_SYNC_POL_RISING DMAMUX_CxCR_SPOL_0 /*!< Synchronization on event on rising edge */ -#define LL_DMAMUX_SYNC_POL_FALLING DMAMUX_CxCR_SPOL_1 /*!< Synchronization on event on falling edge */ -#define LL_DMAMUX_SYNC_POL_RISING_FALLING (DMAMUX_CxCR_SPOL_0 | DMAMUX_CxCR_SPOL_1) /*!< Synchronization on event on rising and falling edge */ -/** - * @} - */ - -/** @defgroup DMAMUX_LL_EC_SYNC_EVT Synchronization Signal Event - * @{ - */ -#define LL_DMAMUX1_SYNC_DMAMUX1_CH0_EVT 0x00000000U /*!< DMAMUX1 synchronization Signal is DMAMUX1 Channel0 Event */ -#define LL_DMAMUX1_SYNC_DMAMUX1_CH1_EVT 0x01000000U /*!< DMAMUX1 synchronization Signal is DMAMUX1 Channel1 Event */ -#define LL_DMAMUX1_SYNC_DMAMUX1_CH2_EVT 0x02000000U /*!< DMAMUX1 synchronization Signal is DMAMUX1 Channel2 Event */ -#define LL_DMAMUX1_SYNC_LPTIM1_OUT 0x03000000U /*!< DMAMUX1 synchronization Signal is LPTIM1 OUT */ -#define LL_DMAMUX1_SYNC_LPTIM2_OUT 0x04000000U /*!< DMAMUX1 synchronization Signal is LPTIM2 OUT */ -#define LL_DMAMUX1_SYNC_LPTIM3_OUT 0x05000000U /*!< DMAMUX1 synchronization Signal is LPTIM3 OUT */ -#define LL_DMAMUX1_SYNC_EXTI0 0x06000000U /*!< DMAMUX1 synchronization Signal is EXTI0 IT */ -#define LL_DMAMUX1_SYNC_TIM12_TRGO 0x07000000U /*!< DMAMUX1 synchronization Signal is TIM12 TRGO */ - -#define LL_DMAMUX2_SYNC_DMAMUX2_CH0_EVT 0x00000000U /*!< DMAMUX2 synchronization Signal is DMAMUX2 Channel0 Event */ -#define LL_DMAMUX2_SYNC_DMAMUX2_CH1_EVT 0x01000000U /*!< DMAMUX2 synchronization Signal is DMAMUX2 Channel1 Event */ -#define LL_DMAMUX2_SYNC_DMAMUX2_CH2_EVT 0x02000000U /*!< DMAMUX2 synchronization Signal is DMAMUX2 Channel2 Event */ -#define LL_DMAMUX2_SYNC_DMAMUX2_CH3_EVT 0x03000000U /*!< DMAMUX2 synchronization Signal is DMAMUX2 Channel3 Event */ -#define LL_DMAMUX2_SYNC_DMAMUX2_CH4_EVT 0x04000000U /*!< DMAMUX2 synchronization Signal is DMAMUX2 Channel4 Event */ -#define LL_DMAMUX2_SYNC_DMAMUX2_CH5_EVT 0x05000000U /*!< DMAMUX2 synchronization Signal is DMAMUX2 Channel5 Event */ -#define LL_DMAMUX2_SYNC_LPUART1_RX_WKUP 0x06000000U /*!< DMAMUX2 synchronization Signal is LPUART1 RX Wakeup */ -#define LL_DMAMUX2_SYNC_LPUART1_TX_WKUP 0x07000000U /*!< DMAMUX2 synchronization Signal is LPUART1 TX Wakeup */ -#define LL_DMAMUX2_SYNC_LPTIM2_OUT 0x08000000U /*!< DMAMUX2 synchronization Signal is LPTIM2 output */ -#define LL_DMAMUX2_SYNC_LPTIM3_OUT 0x09000000U /*!< DMAMUX2 synchronization Signal is LPTIM3 output */ -#define LL_DMAMUX2_SYNC_I2C4_WKUP 0x0A000000U /*!< DMAMUX2 synchronization Signal is I2C4 Wakeup */ -#define LL_DMAMUX2_SYNC_SPI6_WKUP 0x0B000000U /*!< DMAMUX2 synchronization Signal is SPI6 Wakeup */ -#define LL_DMAMUX2_SYNC_COMP1_OUT 0x0C000000U /*!< DMAMUX2 synchronization Signal is Comparator 1 output */ -#define LL_DMAMUX2_SYNC_RTC_WKUP 0x0D000000U /*!< DMAMUX2 synchronization Signal is RTC Wakeup */ -#define LL_DMAMUX2_SYNC_EXTI0 0x0E000000U /*!< DMAMUX2 synchronization Signal is EXTI0 IT */ -#define LL_DMAMUX2_SYNC_EXTI2 0x0F000000U /*!< DMAMUX2 synchronization Signal is EXTI2 IT */ - -/** - * @} - */ - -/** @defgroup DMAMUX_LL_EC_REQUEST_GENERATOR Request Generator Channel - * @{ - */ -#define LL_DMAMUX_REQ_GEN_0 0x00000000U -#define LL_DMAMUX_REQ_GEN_1 0x00000001U -#define LL_DMAMUX_REQ_GEN_2 0x00000002U -#define LL_DMAMUX_REQ_GEN_3 0x00000003U -#define LL_DMAMUX_REQ_GEN_4 0x00000004U -#define LL_DMAMUX_REQ_GEN_5 0x00000005U -#define LL_DMAMUX_REQ_GEN_6 0x00000006U -#define LL_DMAMUX_REQ_GEN_7 0x00000007U -/** - * @} - */ - -/** @defgroup DMAMUX_LL_EC_REQUEST_GEN_POLARITY External Request Signal Generation Polarity - * @{ - */ -#define LL_DMAMUX_REQ_GEN_NO_EVENT 0x00000000U /*!< No external DMA request generation */ -#define LL_DMAMUX_REQ_GEN_POL_RISING DMAMUX_RGxCR_GPOL_0 /*!< External DMA request generation on event on rising edge */ -#define LL_DMAMUX_REQ_GEN_POL_FALLING DMAMUX_RGxCR_GPOL_1 /*!< External DMA request generation on event on falling edge */ -#define LL_DMAMUX_REQ_GEN_POL_RISING_FALLING (DMAMUX_RGxCR_GPOL_0 | DMAMUX_RGxCR_GPOL_1) /*!< External DMA request generation on rising and falling edge */ -/** - * @} - */ - -/** @defgroup DMAMUX_LL_EC_REQUEST_GEN External Request Signal Generation - * @{ - */ -#define LL_DMAMUX1_REQ_GEN_DMAMUX1_CH0_EVT 0U /*!< DMAMUX1 Request generator Signal is DMAMUX1 Channel0 Event */ -#define LL_DMAMUX1_REQ_GEN_DMAMUX1_CH1_EVT 1U /*!< DMAMUX1 Request generator Signal is DMAMUX1 Channel1 Event */ -#define LL_DMAMUX1_REQ_GEN_DMAMUX1_CH2_EVT 2U /*!< DMAMUX1 Request generator Signal is DMAMUX1 Channel2 Event */ -#define LL_DMAMUX1_REQ_GEN_LPTIM1_OUT 3U /*!< DMAMUX1 Request generator Signal is LPTIM1 OUT */ -#define LL_DMAMUX1_REQ_GEN_LPTIM2_OUT 4U /*!< DMAMUX1 Request generator Signal is LPTIM2 OUT */ -#define LL_DMAMUX1_REQ_GEN_LPTIM3_OUT 5U /*!< DMAMUX1 Request generator Signal is LPTIM3 OUT */ -#define LL_DMAMUX1_REQ_GEN_EXTI0 6U /*!< DMAMUX1 Request generator Signal is EXTI0 IT */ -#define LL_DMAMUX1_REQ_GEN_TIM12_TRGO 7U /*!< DMAMUX1 Request generator Signal is TIM12 TRGO */ - -#define LL_DMAMUX2_REQ_GEN_DMAMUX2_CH0_EVT 0U /*!< DMAMUX2 Request generator Signal is DMAMUX2 Channel0 Event */ -#define LL_DMAMUX2_REQ_GEN_DMAMUX2_CH1_EVT 1U /*!< DMAMUX2 Request generator Signal is DMAMUX2 Channel1 Event */ -#define LL_DMAMUX2_REQ_GEN_DMAMUX2_CH2_EVT 2U /*!< DMAMUX2 Request generator Signal is DMAMUX2 Channel2 Event */ -#define LL_DMAMUX2_REQ_GEN_DMAMUX2_CH3_EVT 3U /*!< DMAMUX2 Request generator Signal is DMAMUX2 Channel3 Event */ -#define LL_DMAMUX2_REQ_GEN_DMAMUX2_CH4_EVT 4U /*!< DMAMUX2 Request generator Signal is DMAMUX2 Channel4 Event */ -#define LL_DMAMUX2_REQ_GEN_DMAMUX2_CH5_EVT 5U /*!< DMAMUX2 Request generator Signal is DMAMUX2 Channel5 Event */ -#define LL_DMAMUX2_REQ_GEN_DMAMUX2_CH6_EVT 6U /*!< DMAMUX2 Request generator Signal is DMAMUX2 Channel6 Event */ -#define LL_DMAMUX2_REQ_GEN_LPUART1_RX_WKUP 7U /*!< DMAMUX2 Request generator Signal is LPUART1 RX Wakeup */ -#define LL_DMAMUX2_REQ_GEN_LPUART1_TX_WKUP 8U /*!< DMAMUX2 Request generator Signal is LPUART1 TX Wakeup */ -#define LL_DMAMUX2_REQ_GEN_LPTIM2_WKUP 9U /*!< DMAMUX2 Request generator Signal is LPTIM2 Wakeup */ -#define LL_DMAMUX2_REQ_GEN_LPTIM2_OUT 10U /*!< DMAMUX2 Request generator Signal is LPTIM2 OUT */ -#define LL_DMAMUX2_REQ_GEN_LPTIM3_WKUP 11U /*!< DMAMUX2 Request generator Signal is LPTIM3 Wakeup */ -#define LL_DMAMUX2_REQ_GEN_LPTIM3_OUT 12U /*!< DMAMUX2 Request generator Signal is LPTIM3 OUT */ -#if defined (LPTIM4) -#define LL_DMAMUX2_REQ_GEN_LPTIM4_WKUP 13U /*!< DMAMUX2 Request generator Signal is LPTIM4 Wakeup */ -#endif /* LPTIM4 */ -#if defined (LPTIM5) -#define LL_DMAMUX2_REQ_GEN_LPTIM5_WKUP 14U /*!< DMAMUX2 Request generator Signal is LPTIM5 Wakeup */ -#endif /* LPTIM5 */ -#define LL_DMAMUX2_REQ_GEN_I2C4_WKUP 15U /*!< DMAMUX2 Request generator Signal is I2C4 Wakeup */ -#define LL_DMAMUX2_REQ_GEN_SPI6_WKUP 16U /*!< DMAMUX2 Request generator Signal is SPI6 Wakeup */ -#define LL_DMAMUX2_REQ_GEN_COMP1_OUT 17U /*!< DMAMUX2 Request generator Signal is Comparator 1 output */ -#define LL_DMAMUX2_REQ_GEN_COMP2_OUT 18U /*!< DMAMUX2 Request generator Signal is Comparator 2 output */ -#define LL_DMAMUX2_REQ_GEN_RTC_WKUP 19U /*!< DMAMUX2 Request generator Signal is RTC Wakeup */ -#define LL_DMAMUX2_REQ_GEN_EXTI0 20U /*!< DMAMUX2 Request generator Signal is EXTI0 */ -#define LL_DMAMUX2_REQ_GEN_EXTI2 21U /*!< DMAMUX2 Request generator Signal is EXTI2 */ -#define LL_DMAMUX2_REQ_GEN_I2C4_IT_EVT 22U /*!< DMAMUX2 Request generator Signal is I2C4 IT Event */ -#define LL_DMAMUX2_REQ_GEN_SPI6_IT 23U /*!< DMAMUX2 Request generator Signal is SPI6 IT */ -#define LL_DMAMUX2_REQ_GEN_LPUART1_TX_IT 24U /*!< DMAMUX2 Request generator Signal is LPUART1 Tx IT */ -#define LL_DMAMUX2_REQ_GEN_LPUART1_RX_IT 25U /*!< DMAMUX2 Request generator Signal is LPUART1 Rx IT */ -#if defined (ADC3) -#define LL_DMAMUX2_REQ_GEN_ADC3_IT 26U /*!< DMAMUX2 Request generator Signal is ADC3 IT */ -#define LL_DMAMUX2_REQ_GEN_ADC3_AWD1_OUT 27U /*!< DMAMUX2 Request generator Signal is ADC3 Analog Watchdog 1 output */ -#endif /* ADC3 */ -#define LL_DMAMUX2_REQ_GEN_BDMA_CH0_IT 28U /*!< DMAMUX2 Request generator Signal is BDMA Channel 0 IT */ -#define LL_DMAMUX2_REQ_GEN_BDMA_CH1_IT 29U /*!< DMAMUX2 Request generator Signal is BDMA Channel 1 IT */ -/** - * @} - */ - -/** - * @} - */ - -/* Exported macro ------------------------------------------------------------*/ -/** @defgroup DMAMUX_LL_Exported_Macros DMAMUX Exported Macros - * @{ - */ - -/** @defgroup DMAMUX_LL_EM_WRITE_READ Common Write and read registers macros - * @{ - */ -/** - * @brief Write a value in DMAMUX register - * @param __INSTANCE__ DMAMUX Instance - * @param __REG__ Register to be written - * @param __VALUE__ Value to be written in the register - * @retval None - */ -#define LL_DMAMUX_WriteReg(__INSTANCE__, __REG__, __VALUE__) WRITE_REG(__INSTANCE__->__REG__, (__VALUE__)) - -/** - * @brief Read a value in DMAMUX register - * @param __INSTANCE__ DMAMUX Instance - * @param __REG__ Register to be read - * @retval Register value - */ -#define LL_DMAMUX_ReadReg(__INSTANCE__, __REG__) READ_REG(__INSTANCE__->__REG__) -/** - * @} - */ - -/** - * @} - */ - -/* Exported functions --------------------------------------------------------*/ -/** @defgroup DMAMUX_LL_Exported_Functions DMAMUX Exported Functions - * @{ - */ - -/** @defgroup DMAMUX_LL_EF_Configuration Configuration - * @{ - */ -/** - * @brief Set DMAMUX request ID for DMAMUX Channel x. - * @note DMAMUX1 channel 0 to 7 are mapped to DMA1 channel 0 to 7. - * DMAMUX1 channel 8 to 15 are mapped to DMA2 channel 0 to 7. - * DMAMUX2 channel 0 to 7 are mapped to BDMA channel 0 to 7. - * @rmtoll CxCR DMAREQ_ID LL_DMAMUX_SetRequestID - * @param DMAMUXx DMAMUXx Instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_CHANNEL_0 - * @arg @ref LL_DMAMUX_CHANNEL_1 - * @arg @ref LL_DMAMUX_CHANNEL_2 - * @arg @ref LL_DMAMUX_CHANNEL_3 - * @arg @ref LL_DMAMUX_CHANNEL_4 - * @arg @ref LL_DMAMUX_CHANNEL_5 - * @arg @ref LL_DMAMUX_CHANNEL_6 - * @arg @ref LL_DMAMUX_CHANNEL_7 - * @arg @ref LL_DMAMUX_CHANNEL_8 - * @arg @ref LL_DMAMUX_CHANNEL_9 - * @arg @ref LL_DMAMUX_CHANNEL_10 - * @arg @ref LL_DMAMUX_CHANNEL_11 - * @arg @ref LL_DMAMUX_CHANNEL_12 - * @arg @ref LL_DMAMUX_CHANNEL_13 - * @arg @ref LL_DMAMUX_CHANNEL_14 - * @arg @ref LL_DMAMUX_CHANNEL_15 - * @param Request This parameter can be one of the following values: - * @arg @ref LL_DMAMUX1_REQ_MEM2MEM - * @arg @ref LL_DMAMUX1_REQ_GENERATOR0 - * @arg @ref LL_DMAMUX1_REQ_GENERATOR1 - * @arg @ref LL_DMAMUX1_REQ_GENERATOR2 - * @arg @ref LL_DMAMUX1_REQ_GENERATOR3 - * @arg @ref LL_DMAMUX1_REQ_GENERATOR4 - * @arg @ref LL_DMAMUX1_REQ_GENERATOR5 - * @arg @ref LL_DMAMUX1_REQ_GENERATOR6 - * @arg @ref LL_DMAMUX1_REQ_GENERATOR7 - * @arg @ref LL_DMAMUX1_REQ_ADC1 - * @arg @ref LL_DMAMUX1_REQ_ADC2 - * @arg @ref LL_DMAMUX1_REQ_TIM1_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM1_CH2 - * @arg @ref LL_DMAMUX1_REQ_TIM1_CH3 - * @arg @ref LL_DMAMUX1_REQ_TIM1_CH4 - * @arg @ref LL_DMAMUX1_REQ_TIM1_UP - * @arg @ref LL_DMAMUX1_REQ_TIM1_TRIG - * @arg @ref LL_DMAMUX1_REQ_TIM1_COM - * @arg @ref LL_DMAMUX1_REQ_TIM2_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM2_CH2 - * @arg @ref LL_DMAMUX1_REQ_TIM2_CH3 - * @arg @ref LL_DMAMUX1_REQ_TIM2_CH4 - * @arg @ref LL_DMAMUX1_REQ_TIM2_UP - * @arg @ref LL_DMAMUX1_REQ_TIM3_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM3_CH2 - * @arg @ref LL_DMAMUX1_REQ_TIM3_CH3 - * @arg @ref LL_DMAMUX1_REQ_TIM3_CH4 - * @arg @ref LL_DMAMUX1_REQ_TIM3_UP - * @arg @ref LL_DMAMUX1_REQ_TIM3_TRIG - * @arg @ref LL_DMAMUX1_REQ_TIM4_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM4_CH2 - * @arg @ref LL_DMAMUX1_REQ_TIM4_CH3 - * @arg @ref LL_DMAMUX1_REQ_TIM4_UP - * @arg @ref LL_DMAMUX1_REQ_I2C1_RX - * @arg @ref LL_DMAMUX1_REQ_I2C1_TX - * @arg @ref LL_DMAMUX1_REQ_I2C2_RX - * @arg @ref LL_DMAMUX1_REQ_I2C2_TX - * @arg @ref LL_DMAMUX1_REQ_SPI1_RX - * @arg @ref LL_DMAMUX1_REQ_SPI1_TX - * @arg @ref LL_DMAMUX1_REQ_SPI2_RX - * @arg @ref LL_DMAMUX1_REQ_SPI2_TX - * @arg @ref LL_DMAMUX1_REQ_USART1_RX - * @arg @ref LL_DMAMUX1_REQ_USART1_TX - * @arg @ref LL_DMAMUX1_REQ_USART2_RX - * @arg @ref LL_DMAMUX1_REQ_USART2_TX - * @arg @ref LL_DMAMUX1_REQ_USART3_RX - * @arg @ref LL_DMAMUX1_REQ_USART3_TX - * @arg @ref LL_DMAMUX1_REQ_TIM8_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM8_CH2 - * @arg @ref LL_DMAMUX1_REQ_TIM8_CH3 - * @arg @ref LL_DMAMUX1_REQ_TIM8_CH4 - * @arg @ref LL_DMAMUX1_REQ_TIM8_UP - * @arg @ref LL_DMAMUX1_REQ_TIM8_TRIG - * @arg @ref LL_DMAMUX1_REQ_TIM8_COM - * @arg @ref LL_DMAMUX1_REQ_TIM5_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM5_CH2 - * @arg @ref LL_DMAMUX1_REQ_TIM5_CH3 - * @arg @ref LL_DMAMUX1_REQ_TIM5_CH4 - * @arg @ref LL_DMAMUX1_REQ_TIM5_UP - * @arg @ref LL_DMAMUX1_REQ_TIM5_TRIG - * @arg @ref LL_DMAMUX1_REQ_SPI3_RX - * @arg @ref LL_DMAMUX1_REQ_SPI3_TX - * @arg @ref LL_DMAMUX1_REQ_UART4_RX - * @arg @ref LL_DMAMUX1_REQ_UART4_TX - * @arg @ref LL_DMAMUX1_REQ_UART5_RX - * @arg @ref LL_DMAMUX1_REQ_UART5_TX - * @arg @ref LL_DMAMUX1_REQ_DAC1_CH1 - * @arg @ref LL_DMAMUX1_REQ_DAC1_CH2 - * @arg @ref LL_DMAMUX1_REQ_TIM6_UP - * @arg @ref LL_DMAMUX1_REQ_TIM7_UP - * @arg @ref LL_DMAMUX1_REQ_USART6_RX - * @arg @ref LL_DMAMUX1_REQ_USART6_TX - * @arg @ref LL_DMAMUX1_REQ_I2C3_RX - * @arg @ref LL_DMAMUX1_REQ_I2C3_TX - * @arg @ref LL_DMAMUX1_REQ_DCMI_PSSI (*) - * @arg @ref LL_DMAMUX1_REQ_CRYP_IN - * @arg @ref LL_DMAMUX1_REQ_CRYP_OUT - * @arg @ref LL_DMAMUX1_REQ_HASH_IN - * @arg @ref LL_DMAMUX1_REQ_UART7_RX - * @arg @ref LL_DMAMUX1_REQ_UART7_TX - * @arg @ref LL_DMAMUX1_REQ_UART8_RX - * @arg @ref LL_DMAMUX1_REQ_UART8_TX - * @arg @ref LL_DMAMUX1_REQ_SPI4_RX - * @arg @ref LL_DMAMUX1_REQ_SPI4_TX - * @arg @ref LL_DMAMUX1_REQ_SPI5_RX - * @arg @ref LL_DMAMUX1_REQ_SPI5_TX - * @arg @ref LL_DMAMUX1_REQ_SAI1_A - * @arg @ref LL_DMAMUX1_REQ_SAI1_B - * @arg @ref LL_DMAMUX1_REQ_SAI2_A (*) - * @arg @ref LL_DMAMUX1_REQ_SAI2_B (*) - * @arg @ref LL_DMAMUX1_REQ_SWPMI_RX - * @arg @ref LL_DMAMUX1_REQ_SWPMI_TX - * @arg @ref LL_DMAMUX1_REQ_SPDIF_RX_DT - * @arg @ref LL_DMAMUX1_REQ_SPDIF_RX_CS - * @arg @ref LL_DMAMUX1_REQ_HRTIM_MASTER (*) - * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_A (*) - * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_B (*) - * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_C (*) - * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_D (*) - * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_E (*) - * @arg @ref LL_DMAMUX1_REQ_DFSDM1_FLT0 - * @arg @ref LL_DMAMUX1_REQ_DFSDM1_FLT1 - * @arg @ref LL_DMAMUX1_REQ_DFSDM1_FLT2 - * @arg @ref LL_DMAMUX1_REQ_DFSDM1_FLT3 - * @arg @ref LL_DMAMUX1_REQ_TIM15_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM15_UP - * @arg @ref LL_DMAMUX1_REQ_TIM15_TRIG - * @arg @ref LL_DMAMUX1_REQ_TIM15_COM - * @arg @ref LL_DMAMUX1_REQ_TIM16_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM16_UP - * @arg @ref LL_DMAMUX1_REQ_TIM17_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM17_UP - * @arg @ref LL_DMAMUX1_REQ_SAI3_A (*) - * @arg @ref LL_DMAMUX1_REQ_SAI3_B (*) - * @arg @ref LL_DMAMUX1_REQ_ADC3 (*) - * @arg @ref LL_DMAMUX1_REQ_UART9_RX (*) - * @arg @ref LL_DMAMUX1_REQ_UART9_TX (*) - * @arg @ref LL_DMAMUX1_REQ_USART10_RX (*) - * @arg @ref LL_DMAMUX1_REQ_USART10_TX (*) - * @arg @ref LL_DMAMUX1_REQ_FMAC_READ (*) - * @arg @ref LL_DMAMUX1_REQ_FMAC_WRITE (*) - * @arg @ref LL_DMAMUX1_REQ_CORDIC_READ (*) - * @arg @ref LL_DMAMUX1_REQ_CORDIC_WRITE(*) - * @arg @ref LL_DMAMUX1_REQ_I2C5_RX (*) - * @arg @ref LL_DMAMUX1_REQ_I2C5_TX (*) - * @arg @ref LL_DMAMUX1_REQ_TIM23_CH1 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM23_CH2 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM23_CH3 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM23_CH4 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM23_UP (*) - * @arg @ref LL_DMAMUX1_REQ_TIM23_TRIG (*) - * @arg @ref LL_DMAMUX1_REQ_TIM24_CH1 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM24_CH2 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM24_CH3 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM24_CH4 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM24_UP (*) - * @arg @ref LL_DMAMUX1_REQ_TIM24_TRIG (*) - * @arg @ref LL_DMAMUX2_REQ_MEM2MEM - * @arg @ref LL_DMAMUX2_REQ_GENERATOR0 - * @arg @ref LL_DMAMUX2_REQ_GENERATOR1 - * @arg @ref LL_DMAMUX2_REQ_GENERATOR2 - * @arg @ref LL_DMAMUX2_REQ_GENERATOR3 - * @arg @ref LL_DMAMUX2_REQ_GENERATOR4 - * @arg @ref LL_DMAMUX2_REQ_GENERATOR5 - * @arg @ref LL_DMAMUX2_REQ_GENERATOR6 - * @arg @ref LL_DMAMUX2_REQ_GENERATOR7 - * @arg @ref LL_DMAMUX2_REQ_LPUART1_RX - * @arg @ref LL_DMAMUX2_REQ_LPUART1_TX - * @arg @ref LL_DMAMUX2_REQ_SPI6_RX - * @arg @ref LL_DMAMUX2_REQ_SPI6_TX - * @arg @ref LL_DMAMUX2_REQ_I2C4_RX - * @arg @ref LL_DMAMUX2_REQ_I2C4_TX - * @arg @ref LL_DMAMUX2_REQ_SAI4_A (*) - * @arg @ref LL_DMAMUX2_REQ_SAI4_B (*) - * @arg @ref LL_DMAMUX2_REQ_ADC3 (*) - * @arg @ref LL_DMAMUX2_REQ_DAC2_CH1 (*) - * @arg @ref LL_DMAMUX2_REQ_DFSDM2_FLT0 (*) - * - * @note (*) Availability depends on devices. - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_SetRequestID(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel, uint32_t Request) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - MODIFY_REG(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_DMAREQ_ID, Request); -} - -/** - * @brief Get DMAMUX request ID for DMAMUX Channel x. - * @note DMAMUX1 channel 0 to 7 are mapped to DMA1 channel 0 to 7. - * DMAMUX1 channel 8 to 15 are mapped to DMA2 channel 0 to 7. - * DMAMUX2 channel 0 to 7 are mapped to BDMA channel 0 to 7. - * @rmtoll CxCR DMAREQ_ID LL_DMAMUX_GetRequestID - * @param DMAMUXx DMAMUXx Instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_CHANNEL_0 - * @arg @ref LL_DMAMUX_CHANNEL_1 - * @arg @ref LL_DMAMUX_CHANNEL_2 - * @arg @ref LL_DMAMUX_CHANNEL_3 - * @arg @ref LL_DMAMUX_CHANNEL_4 - * @arg @ref LL_DMAMUX_CHANNEL_5 - * @arg @ref LL_DMAMUX_CHANNEL_6 - * @arg @ref LL_DMAMUX_CHANNEL_7 - * @arg @ref LL_DMAMUX_CHANNEL_8 - * @arg @ref LL_DMAMUX_CHANNEL_9 - * @arg @ref LL_DMAMUX_CHANNEL_10 - * @arg @ref LL_DMAMUX_CHANNEL_11 - * @arg @ref LL_DMAMUX_CHANNEL_12 - * @arg @ref LL_DMAMUX_CHANNEL_13 - * @arg @ref LL_DMAMUX_CHANNEL_14 - * @arg @ref LL_DMAMUX_CHANNEL_15 - * @retval Returned value can be one of the following values: - * @arg @ref LL_DMAMUX1_REQ_MEM2MEM - * @arg @ref LL_DMAMUX1_REQ_GENERATOR0 - * @arg @ref LL_DMAMUX1_REQ_GENERATOR1 - * @arg @ref LL_DMAMUX1_REQ_GENERATOR2 - * @arg @ref LL_DMAMUX1_REQ_GENERATOR3 - * @arg @ref LL_DMAMUX1_REQ_GENERATOR4 - * @arg @ref LL_DMAMUX1_REQ_GENERATOR5 - * @arg @ref LL_DMAMUX1_REQ_GENERATOR6 - * @arg @ref LL_DMAMUX1_REQ_GENERATOR7 - * @arg @ref LL_DMAMUX1_REQ_ADC1 - * @arg @ref LL_DMAMUX1_REQ_ADC2 - * @arg @ref LL_DMAMUX1_REQ_TIM1_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM1_CH2 - * @arg @ref LL_DMAMUX1_REQ_TIM1_CH3 - * @arg @ref LL_DMAMUX1_REQ_TIM1_CH4 - * @arg @ref LL_DMAMUX1_REQ_TIM1_UP - * @arg @ref LL_DMAMUX1_REQ_TIM1_TRIG - * @arg @ref LL_DMAMUX1_REQ_TIM1_COM - * @arg @ref LL_DMAMUX1_REQ_TIM2_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM2_CH2 - * @arg @ref LL_DMAMUX1_REQ_TIM2_CH3 - * @arg @ref LL_DMAMUX1_REQ_TIM2_CH4 - * @arg @ref LL_DMAMUX1_REQ_TIM2_UP - * @arg @ref LL_DMAMUX1_REQ_TIM3_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM3_CH2 - * @arg @ref LL_DMAMUX1_REQ_TIM3_CH3 - * @arg @ref LL_DMAMUX1_REQ_TIM3_CH4 - * @arg @ref LL_DMAMUX1_REQ_TIM3_UP - * @arg @ref LL_DMAMUX1_REQ_TIM3_TRIG - * @arg @ref LL_DMAMUX1_REQ_TIM4_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM4_CH2 - * @arg @ref LL_DMAMUX1_REQ_TIM4_CH3 - * @arg @ref LL_DMAMUX1_REQ_TIM4_UP - * @arg @ref LL_DMAMUX1_REQ_I2C1_RX - * @arg @ref LL_DMAMUX1_REQ_I2C1_TX - * @arg @ref LL_DMAMUX1_REQ_I2C2_RX - * @arg @ref LL_DMAMUX1_REQ_I2C2_TX - * @arg @ref LL_DMAMUX1_REQ_SPI1_RX - * @arg @ref LL_DMAMUX1_REQ_SPI1_TX - * @arg @ref LL_DMAMUX1_REQ_SPI2_RX - * @arg @ref LL_DMAMUX1_REQ_SPI2_TX - * @arg @ref LL_DMAMUX1_REQ_USART1_RX - * @arg @ref LL_DMAMUX1_REQ_USART1_TX - * @arg @ref LL_DMAMUX1_REQ_USART2_RX - * @arg @ref LL_DMAMUX1_REQ_USART2_TX - * @arg @ref LL_DMAMUX1_REQ_USART3_RX - * @arg @ref LL_DMAMUX1_REQ_USART3_TX - * @arg @ref LL_DMAMUX1_REQ_TIM8_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM8_CH2 - * @arg @ref LL_DMAMUX1_REQ_TIM8_CH3 - * @arg @ref LL_DMAMUX1_REQ_TIM8_CH4 - * @arg @ref LL_DMAMUX1_REQ_TIM8_UP - * @arg @ref LL_DMAMUX1_REQ_TIM8_TRIG - * @arg @ref LL_DMAMUX1_REQ_TIM8_COM - * @arg @ref LL_DMAMUX1_REQ_TIM5_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM5_CH2 - * @arg @ref LL_DMAMUX1_REQ_TIM5_CH3 - * @arg @ref LL_DMAMUX1_REQ_TIM5_CH4 - * @arg @ref LL_DMAMUX1_REQ_TIM5_UP - * @arg @ref LL_DMAMUX1_REQ_TIM5_TRIG - * @arg @ref LL_DMAMUX1_REQ_SPI3_RX - * @arg @ref LL_DMAMUX1_REQ_SPI3_TX - * @arg @ref LL_DMAMUX1_REQ_UART4_RX - * @arg @ref LL_DMAMUX1_REQ_UART4_TX - * @arg @ref LL_DMAMUX1_REQ_UART5_RX - * @arg @ref LL_DMAMUX1_REQ_UART5_TX - * @arg @ref LL_DMAMUX1_REQ_DAC1_CH1 - * @arg @ref LL_DMAMUX1_REQ_DAC1_CH2 - * @arg @ref LL_DMAMUX1_REQ_TIM6_UP - * @arg @ref LL_DMAMUX1_REQ_TIM7_UP - * @arg @ref LL_DMAMUX1_REQ_USART6_RX - * @arg @ref LL_DMAMUX1_REQ_USART6_TX - * @arg @ref LL_DMAMUX1_REQ_I2C3_RX - * @arg @ref LL_DMAMUX1_REQ_I2C3_TX - * @arg @ref LL_DMAMUX1_REQ_DCMI_PSSI (*) - * @arg @ref LL_DMAMUX1_REQ_CRYP_IN - * @arg @ref LL_DMAMUX1_REQ_CRYP_OUT - * @arg @ref LL_DMAMUX1_REQ_HASH_IN - * @arg @ref LL_DMAMUX1_REQ_UART7_RX - * @arg @ref LL_DMAMUX1_REQ_UART7_TX - * @arg @ref LL_DMAMUX1_REQ_UART8_RX - * @arg @ref LL_DMAMUX1_REQ_UART8_TX - * @arg @ref LL_DMAMUX1_REQ_SPI4_RX - * @arg @ref LL_DMAMUX1_REQ_SPI4_TX - * @arg @ref LL_DMAMUX1_REQ_SPI5_RX - * @arg @ref LL_DMAMUX1_REQ_SPI5_TX - * @arg @ref LL_DMAMUX1_REQ_SAI1_A - * @arg @ref LL_DMAMUX1_REQ_SAI1_B - * @arg @ref LL_DMAMUX1_REQ_SAI2_A (*) - * @arg @ref LL_DMAMUX1_REQ_SAI2_B (*) - * @arg @ref LL_DMAMUX1_REQ_SWPMI_RX - * @arg @ref LL_DMAMUX1_REQ_SWPMI_TX - * @arg @ref LL_DMAMUX1_REQ_SPDIF_RX_DT - * @arg @ref LL_DMAMUX1_REQ_SPDIF_RX_CS - * @arg @ref LL_DMAMUX1_REQ_HRTIM_MASTER (*) - * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_A (*) - * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_B (*) - * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_C (*) - * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_D (*) - * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_E (*) - * @arg @ref LL_DMAMUX1_REQ_DFSDM1_FLT0 - * @arg @ref LL_DMAMUX1_REQ_DFSDM1_FLT1 - * @arg @ref LL_DMAMUX1_REQ_DFSDM1_FLT2 - * @arg @ref LL_DMAMUX1_REQ_DFSDM1_FLT3 - * @arg @ref LL_DMAMUX1_REQ_TIM15_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM15_UP - * @arg @ref LL_DMAMUX1_REQ_TIM15_TRIG - * @arg @ref LL_DMAMUX1_REQ_TIM15_COM - * @arg @ref LL_DMAMUX1_REQ_TIM16_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM16_UP - * @arg @ref LL_DMAMUX1_REQ_TIM17_CH1 - * @arg @ref LL_DMAMUX1_REQ_TIM17_UP - * @arg @ref LL_DMAMUX1_REQ_SAI3_A (*) - * @arg @ref LL_DMAMUX1_REQ_SAI3_B (*) - * @arg @ref LL_DMAMUX1_REQ_ADC3 (*) - * @arg @ref LL_DMAMUX1_REQ_UART9_RX (*) - * @arg @ref LL_DMAMUX1_REQ_UART9_TX (*) - * @arg @ref LL_DMAMUX1_REQ_USART10_RX (*) - * @arg @ref LL_DMAMUX1_REQ_USART10_TX (*) - * @arg @ref LL_DMAMUX1_REQ_FMAC_READ (*) - * @arg @ref LL_DMAMUX1_REQ_FMAC_WRITE (*) - * @arg @ref LL_DMAMUX1_REQ_CORDIC_READ (*) - * @arg @ref LL_DMAMUX1_REQ_CORDIC_WRITE(*) - * @arg @ref LL_DMAMUX1_REQ_I2C5_RX (*) - * @arg @ref LL_DMAMUX1_REQ_I2C5_TX (*) - * @arg @ref LL_DMAMUX1_REQ_TIM23_CH1 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM23_CH2 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM23_CH3 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM23_CH4 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM23_UP (*) - * @arg @ref LL_DMAMUX1_REQ_TIM23_TRIG (*) - * @arg @ref LL_DMAMUX1_REQ_TIM24_CH1 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM24_CH2 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM24_CH3 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM24_CH4 (*) - * @arg @ref LL_DMAMUX1_REQ_TIM24_UP (*) - * @arg @ref LL_DMAMUX1_REQ_TIM24_TRIG (*) - * @arg @ref LL_DMAMUX2_REQ_MEM2MEM - * @arg @ref LL_DMAMUX2_REQ_GENERATOR0 - * @arg @ref LL_DMAMUX2_REQ_GENERATOR1 - * @arg @ref LL_DMAMUX2_REQ_GENERATOR2 - * @arg @ref LL_DMAMUX2_REQ_GENERATOR3 - * @arg @ref LL_DMAMUX2_REQ_GENERATOR4 - * @arg @ref LL_DMAMUX2_REQ_GENERATOR5 - * @arg @ref LL_DMAMUX2_REQ_GENERATOR6 - * @arg @ref LL_DMAMUX2_REQ_GENERATOR7 - * @arg @ref LL_DMAMUX2_REQ_LPUART1_RX - * @arg @ref LL_DMAMUX2_REQ_LPUART1_TX - * @arg @ref LL_DMAMUX2_REQ_SPI6_RX - * @arg @ref LL_DMAMUX2_REQ_SPI6_TX - * @arg @ref LL_DMAMUX2_REQ_I2C4_RX - * @arg @ref LL_DMAMUX2_REQ_I2C4_TX - * @arg @ref LL_DMAMUX2_REQ_SAI4_A (*) - * @arg @ref LL_DMAMUX2_REQ_SAI4_B (*) - * @arg @ref LL_DMAMUX2_REQ_ADC3 (*) - * @arg @ref LL_DMAMUX2_REQ_DAC2_CH1 (*) - * @arg @ref LL_DMAMUX2_REQ_DFSDM2_FLT0 (*) - * - * @note (*) Availability depends on devices. - * @retval None - */ -__STATIC_INLINE uint32_t LL_DMAMUX_GetRequestID(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return (uint32_t)(READ_BIT(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_DMAREQ_ID)); -} - -/** - * @brief Set the number of DMA request that will be autorized after a synchronization event and/or the number of DMA request needed to generate an event. - * @rmtoll CxCR NBREQ LL_DMAMUX_SetSyncRequestNb - * @param DMAMUXx DMAMUXx Instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_CHANNEL_0 - * @arg @ref LL_DMAMUX_CHANNEL_1 - * @arg @ref LL_DMAMUX_CHANNEL_2 - * @arg @ref LL_DMAMUX_CHANNEL_3 - * @arg @ref LL_DMAMUX_CHANNEL_4 - * @arg @ref LL_DMAMUX_CHANNEL_5 - * @arg @ref LL_DMAMUX_CHANNEL_6 - * @arg @ref LL_DMAMUX_CHANNEL_7 - * @arg @ref LL_DMAMUX_CHANNEL_8 - * @arg @ref LL_DMAMUX_CHANNEL_9 - * @arg @ref LL_DMAMUX_CHANNEL_10 - * @arg @ref LL_DMAMUX_CHANNEL_11 - * @arg @ref LL_DMAMUX_CHANNEL_12 - * @arg @ref LL_DMAMUX_CHANNEL_13 - * @arg @ref LL_DMAMUX_CHANNEL_14 - * @arg @ref LL_DMAMUX_CHANNEL_15 - * @param RequestNb This parameter must be a value between Min_Data = 1 and Max_Data = 32. - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_SetSyncRequestNb(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel, uint32_t RequestNb) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - MODIFY_REG(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_NBREQ, (RequestNb - 1U) << DMAMUX_CxCR_NBREQ_Pos); -} - -/** - * @brief Get the number of DMA request that will be autorized after a synchronization event and/or the number of DMA request needed to generate an event. - * @rmtoll CxCR NBREQ LL_DMAMUX_GetSyncRequestNb - * @param DMAMUXx DMAMUXx Instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_CHANNEL_0 - * @arg @ref LL_DMAMUX_CHANNEL_1 - * @arg @ref LL_DMAMUX_CHANNEL_2 - * @arg @ref LL_DMAMUX_CHANNEL_3 - * @arg @ref LL_DMAMUX_CHANNEL_4 - * @arg @ref LL_DMAMUX_CHANNEL_5 - * @arg @ref LL_DMAMUX_CHANNEL_6 - * @arg @ref LL_DMAMUX_CHANNEL_7 - * @arg @ref LL_DMAMUX_CHANNEL_8 - * @arg @ref LL_DMAMUX_CHANNEL_9 - * @arg @ref LL_DMAMUX_CHANNEL_10 - * @arg @ref LL_DMAMUX_CHANNEL_11 - * @arg @ref LL_DMAMUX_CHANNEL_12 - * @arg @ref LL_DMAMUX_CHANNEL_13 - * @arg @ref LL_DMAMUX_CHANNEL_14 - * @arg @ref LL_DMAMUX_CHANNEL_15 - * @retval Between Min_Data = 1 and Max_Data = 32 - */ -__STATIC_INLINE uint32_t LL_DMAMUX_GetSyncRequestNb(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return (uint32_t)((READ_BIT(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_NBREQ) >> DMAMUX_CxCR_NBREQ_Pos) + 1U); -} - -/** - * @brief Set the polarity of the signal on which the DMA request is synchronized. - * @rmtoll CxCR SPOL LL_DMAMUX_SetSyncPolarity - * @param DMAMUXx DMAMUXx Instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_CHANNEL_0 - * @arg @ref LL_DMAMUX_CHANNEL_1 - * @arg @ref LL_DMAMUX_CHANNEL_2 - * @arg @ref LL_DMAMUX_CHANNEL_3 - * @arg @ref LL_DMAMUX_CHANNEL_4 - * @arg @ref LL_DMAMUX_CHANNEL_5 - * @arg @ref LL_DMAMUX_CHANNEL_6 - * @arg @ref LL_DMAMUX_CHANNEL_7 - * @arg @ref LL_DMAMUX_CHANNEL_8 - * @arg @ref LL_DMAMUX_CHANNEL_9 - * @arg @ref LL_DMAMUX_CHANNEL_10 - * @arg @ref LL_DMAMUX_CHANNEL_11 - * @arg @ref LL_DMAMUX_CHANNEL_12 - * @arg @ref LL_DMAMUX_CHANNEL_13 - * @arg @ref LL_DMAMUX_CHANNEL_14 - * @arg @ref LL_DMAMUX_CHANNEL_15 - * @param Polarity This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_SYNC_NO_EVENT - * @arg @ref LL_DMAMUX_SYNC_POL_RISING - * @arg @ref LL_DMAMUX_SYNC_POL_FALLING - * @arg @ref LL_DMAMUX_SYNC_POL_RISING_FALLING - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_SetSyncPolarity(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel, uint32_t Polarity) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - MODIFY_REG(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_SPOL, Polarity); -} - -/** - * @brief Get the polarity of the signal on which the DMA request is synchronized. - * @rmtoll CxCR SPOL LL_DMAMUX_GetSyncPolarity - * @param DMAMUXx DMAMUXx Instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_CHANNEL_0 - * @arg @ref LL_DMAMUX_CHANNEL_1 - * @arg @ref LL_DMAMUX_CHANNEL_2 - * @arg @ref LL_DMAMUX_CHANNEL_3 - * @arg @ref LL_DMAMUX_CHANNEL_4 - * @arg @ref LL_DMAMUX_CHANNEL_5 - * @arg @ref LL_DMAMUX_CHANNEL_6 - * @arg @ref LL_DMAMUX_CHANNEL_7 - * @arg @ref LL_DMAMUX_CHANNEL_8 - * @arg @ref LL_DMAMUX_CHANNEL_9 - * @arg @ref LL_DMAMUX_CHANNEL_10 - * @arg @ref LL_DMAMUX_CHANNEL_11 - * @arg @ref LL_DMAMUX_CHANNEL_12 - * @arg @ref LL_DMAMUX_CHANNEL_13 - * @arg @ref LL_DMAMUX_CHANNEL_14 - * @arg @ref LL_DMAMUX_CHANNEL_15 - * @retval Returned value can be one of the following values: - * @arg @ref LL_DMAMUX_SYNC_NO_EVENT - * @arg @ref LL_DMAMUX_SYNC_POL_RISING - * @arg @ref LL_DMAMUX_SYNC_POL_FALLING - * @arg @ref LL_DMAMUX_SYNC_POL_RISING_FALLING - */ -__STATIC_INLINE uint32_t LL_DMAMUX_GetSyncPolarity(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return (uint32_t)(READ_BIT(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_SPOL)); -} - -/** - * @brief Enable the Event Generation on DMAMUX channel x. - * @rmtoll CxCR EGE LL_DMAMUX_EnableEventGeneration - * @param DMAMUXx DMAMUXx Instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_CHANNEL_0 - * @arg @ref LL_DMAMUX_CHANNEL_1 - * @arg @ref LL_DMAMUX_CHANNEL_2 - * @arg @ref LL_DMAMUX_CHANNEL_3 - * @arg @ref LL_DMAMUX_CHANNEL_4 - * @arg @ref LL_DMAMUX_CHANNEL_5 - * @arg @ref LL_DMAMUX_CHANNEL_6 - * @arg @ref LL_DMAMUX_CHANNEL_7 - * @arg @ref LL_DMAMUX_CHANNEL_8 - * @arg @ref LL_DMAMUX_CHANNEL_9 - * @arg @ref LL_DMAMUX_CHANNEL_10 - * @arg @ref LL_DMAMUX_CHANNEL_11 - * @arg @ref LL_DMAMUX_CHANNEL_12 - * @arg @ref LL_DMAMUX_CHANNEL_13 - * @arg @ref LL_DMAMUX_CHANNEL_14 - * @arg @ref LL_DMAMUX_CHANNEL_15 - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_EnableEventGeneration(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_EGE); -} - -/** - * @brief Disable the Event Generation on DMAMUX channel x. - * @rmtoll CxCR EGE LL_DMAMUX_DisableEventGeneration - * @param DMAMUXx DMAMUXx Instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_CHANNEL_0 - * @arg @ref LL_DMAMUX_CHANNEL_1 - * @arg @ref LL_DMAMUX_CHANNEL_2 - * @arg @ref LL_DMAMUX_CHANNEL_3 - * @arg @ref LL_DMAMUX_CHANNEL_4 - * @arg @ref LL_DMAMUX_CHANNEL_5 - * @arg @ref LL_DMAMUX_CHANNEL_6 - * @arg @ref LL_DMAMUX_CHANNEL_7 - * @arg @ref LL_DMAMUX_CHANNEL_8 - * @arg @ref LL_DMAMUX_CHANNEL_9 - * @arg @ref LL_DMAMUX_CHANNEL_10 - * @arg @ref LL_DMAMUX_CHANNEL_11 - * @arg @ref LL_DMAMUX_CHANNEL_12 - * @arg @ref LL_DMAMUX_CHANNEL_13 - * @arg @ref LL_DMAMUX_CHANNEL_14 - * @arg @ref LL_DMAMUX_CHANNEL_15 - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_DisableEventGeneration(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - CLEAR_BIT(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_EGE); -} - -/** - * @brief Check if the Event Generation on DMAMUX channel x is enabled or disabled. - * @rmtoll CxCR EGE LL_DMAMUX_IsEnabledEventGeneration - * @param DMAMUXx DMAMUXx Instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_CHANNEL_0 - * @arg @ref LL_DMAMUX_CHANNEL_1 - * @arg @ref LL_DMAMUX_CHANNEL_2 - * @arg @ref LL_DMAMUX_CHANNEL_3 - * @arg @ref LL_DMAMUX_CHANNEL_4 - * @arg @ref LL_DMAMUX_CHANNEL_5 - * @arg @ref LL_DMAMUX_CHANNEL_6 - * @arg @ref LL_DMAMUX_CHANNEL_7 - * @arg @ref LL_DMAMUX_CHANNEL_8 - * @arg @ref LL_DMAMUX_CHANNEL_9 - * @arg @ref LL_DMAMUX_CHANNEL_10 - * @arg @ref LL_DMAMUX_CHANNEL_11 - * @arg @ref LL_DMAMUX_CHANNEL_12 - * @arg @ref LL_DMAMUX_CHANNEL_13 - * @arg @ref LL_DMAMUX_CHANNEL_14 - * @arg @ref LL_DMAMUX_CHANNEL_15 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsEnabledEventGeneration(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return ((READ_BIT(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_EGE) == (DMAMUX_CxCR_EGE)) ? 1UL : 0UL); -} - -/** - * @brief Enable the synchronization mode. - * @rmtoll CxCR SE LL_DMAMUX_EnableSync - * @param DMAMUXx DMAMUXx Instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_CHANNEL_0 - * @arg @ref LL_DMAMUX_CHANNEL_1 - * @arg @ref LL_DMAMUX_CHANNEL_2 - * @arg @ref LL_DMAMUX_CHANNEL_3 - * @arg @ref LL_DMAMUX_CHANNEL_4 - * @arg @ref LL_DMAMUX_CHANNEL_5 - * @arg @ref LL_DMAMUX_CHANNEL_6 - * @arg @ref LL_DMAMUX_CHANNEL_7 - * @arg @ref LL_DMAMUX_CHANNEL_8 - * @arg @ref LL_DMAMUX_CHANNEL_9 - * @arg @ref LL_DMAMUX_CHANNEL_10 - * @arg @ref LL_DMAMUX_CHANNEL_11 - * @arg @ref LL_DMAMUX_CHANNEL_12 - * @arg @ref LL_DMAMUX_CHANNEL_13 - * @arg @ref LL_DMAMUX_CHANNEL_14 - * @arg @ref LL_DMAMUX_CHANNEL_15 - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_EnableSync(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_SE); -} - -/** - * @brief Disable the synchronization mode. - * @rmtoll CxCR SE LL_DMAMUX_DisableSync - * @param DMAMUXx DMAMUXx Instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_CHANNEL_0 - * @arg @ref LL_DMAMUX_CHANNEL_1 - * @arg @ref LL_DMAMUX_CHANNEL_2 - * @arg @ref LL_DMAMUX_CHANNEL_3 - * @arg @ref LL_DMAMUX_CHANNEL_4 - * @arg @ref LL_DMAMUX_CHANNEL_5 - * @arg @ref LL_DMAMUX_CHANNEL_6 - * @arg @ref LL_DMAMUX_CHANNEL_7 - * @arg @ref LL_DMAMUX_CHANNEL_8 - * @arg @ref LL_DMAMUX_CHANNEL_9 - * @arg @ref LL_DMAMUX_CHANNEL_10 - * @arg @ref LL_DMAMUX_CHANNEL_11 - * @arg @ref LL_DMAMUX_CHANNEL_12 - * @arg @ref LL_DMAMUX_CHANNEL_13 - * @arg @ref LL_DMAMUX_CHANNEL_14 - * @arg @ref LL_DMAMUX_CHANNEL_15 - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_DisableSync(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - CLEAR_BIT(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_SE); -} - -/** - * @brief Check if the synchronization mode is enabled or disabled. - * @rmtoll CxCR SE LL_DMAMUX_IsEnabledSync - * @param DMAMUXx DMAMUXx Instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_CHANNEL_0 - * @arg @ref LL_DMAMUX_CHANNEL_1 - * @arg @ref LL_DMAMUX_CHANNEL_2 - * @arg @ref LL_DMAMUX_CHANNEL_3 - * @arg @ref LL_DMAMUX_CHANNEL_4 - * @arg @ref LL_DMAMUX_CHANNEL_5 - * @arg @ref LL_DMAMUX_CHANNEL_6 - * @arg @ref LL_DMAMUX_CHANNEL_7 - * @arg @ref LL_DMAMUX_CHANNEL_8 - * @arg @ref LL_DMAMUX_CHANNEL_9 - * @arg @ref LL_DMAMUX_CHANNEL_10 - * @arg @ref LL_DMAMUX_CHANNEL_11 - * @arg @ref LL_DMAMUX_CHANNEL_12 - * @arg @ref LL_DMAMUX_CHANNEL_13 - * @arg @ref LL_DMAMUX_CHANNEL_14 - * @arg @ref LL_DMAMUX_CHANNEL_15 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsEnabledSync(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return ((READ_BIT(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_SE) == (DMAMUX_CxCR_SE)) ? 1UL : 0UL); -} - -/** - * @brief Set DMAMUX synchronization ID on DMAMUX Channel x. - * @rmtoll CxCR SYNC_ID LL_DMAMUX_SetSyncID - * @param DMAMUXx DMAMUXx Instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_CHANNEL_0 - * @arg @ref LL_DMAMUX_CHANNEL_1 - * @arg @ref LL_DMAMUX_CHANNEL_2 - * @arg @ref LL_DMAMUX_CHANNEL_3 - * @arg @ref LL_DMAMUX_CHANNEL_4 - * @arg @ref LL_DMAMUX_CHANNEL_5 - * @arg @ref LL_DMAMUX_CHANNEL_6 - * @arg @ref LL_DMAMUX_CHANNEL_7 - * @arg @ref LL_DMAMUX_CHANNEL_8 - * @arg @ref LL_DMAMUX_CHANNEL_9 - * @arg @ref LL_DMAMUX_CHANNEL_10 - * @arg @ref LL_DMAMUX_CHANNEL_11 - * @arg @ref LL_DMAMUX_CHANNEL_12 - * @arg @ref LL_DMAMUX_CHANNEL_13 - * @arg @ref LL_DMAMUX_CHANNEL_14 - * @arg @ref LL_DMAMUX_CHANNEL_15 - * @param SyncID This parameter can be one of the following values: - * @arg @ref LL_DMAMUX1_SYNC_DMAMUX1_CH0_EVT - * @arg @ref LL_DMAMUX1_SYNC_DMAMUX1_CH1_EVT - * @arg @ref LL_DMAMUX1_SYNC_DMAMUX1_CH2_EVT - * @arg @ref LL_DMAMUX1_SYNC_LPTIM1_OUT - * @arg @ref LL_DMAMUX1_SYNC_LPTIM2_OUT - * @arg @ref LL_DMAMUX1_SYNC_LPTIM3_OUT - * @arg @ref LL_DMAMUX1_SYNC_EXTI0 - * @arg @ref LL_DMAMUX1_SYNC_TIM12_TRGO - * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH0_EVT - * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH1_EVT - * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH2_EVT - * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH3_EVT - * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH4_EVT - * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH5_EVT - * @arg @ref LL_DMAMUX2_SYNC_LPUART1_RX_WKUP - * @arg @ref LL_DMAMUX2_SYNC_LPUART1_TX_WKUP - * @arg @ref LL_DMAMUX2_SYNC_LPTIM2_OUT - * @arg @ref LL_DMAMUX2_SYNC_LPTIM3_OUT - * @arg @ref LL_DMAMUX2_SYNC_I2C4_WKUP - * @arg @ref LL_DMAMUX2_SYNC_SPI6_WKUP - * @arg @ref LL_DMAMUX2_SYNC_COMP1_OUT - * @arg @ref LL_DMAMUX2_SYNC_RTC_WKUP - * @arg @ref LL_DMAMUX2_SYNC_EXTI0 - * @arg @ref LL_DMAMUX2_SYNC_EXTI2 - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_SetSyncID(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel, uint32_t SyncID) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - MODIFY_REG(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_SYNC_ID, SyncID); -} - -/** - * @brief Get DMAMUX synchronization ID on DMAMUX Channel x. - * @rmtoll CxCR SYNC_ID LL_DMAMUX_GetSyncID - * @param DMAMUXx DMAMUXx Instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_CHANNEL_0 - * @arg @ref LL_DMAMUX_CHANNEL_1 - * @arg @ref LL_DMAMUX_CHANNEL_2 - * @arg @ref LL_DMAMUX_CHANNEL_3 - * @arg @ref LL_DMAMUX_CHANNEL_4 - * @arg @ref LL_DMAMUX_CHANNEL_5 - * @arg @ref LL_DMAMUX_CHANNEL_6 - * @arg @ref LL_DMAMUX_CHANNEL_7 - * @arg @ref LL_DMAMUX_CHANNEL_8 - * @arg @ref LL_DMAMUX_CHANNEL_9 - * @arg @ref LL_DMAMUX_CHANNEL_10 - * @arg @ref LL_DMAMUX_CHANNEL_11 - * @arg @ref LL_DMAMUX_CHANNEL_12 - * @arg @ref LL_DMAMUX_CHANNEL_13 - * @arg @ref LL_DMAMUX_CHANNEL_14 - * @arg @ref LL_DMAMUX_CHANNEL_15 - * @retval Returned value can be one of the following values: - * @arg @ref LL_DMAMUX1_SYNC_DMAMUX1_CH0_EVT - * @arg @ref LL_DMAMUX1_SYNC_DMAMUX1_CH1_EVT - * @arg @ref LL_DMAMUX1_SYNC_DMAMUX1_CH2_EVT - * @arg @ref LL_DMAMUX1_SYNC_LPTIM1_OUT - * @arg @ref LL_DMAMUX1_SYNC_LPTIM2_OUT - * @arg @ref LL_DMAMUX1_SYNC_LPTIM3_OUT - * @arg @ref LL_DMAMUX1_SYNC_EXTI0 - * @arg @ref LL_DMAMUX1_SYNC_TIM12_TRGO - * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH0_EVT - * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH1_EVT - * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH2_EVT - * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH3_EVT - * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH4_EVT - * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH5_EVT - * @arg @ref LL_DMAMUX2_SYNC_LPUART1_RX_WKUP - * @arg @ref LL_DMAMUX2_SYNC_LPUART1_TX_WKUP - * @arg @ref LL_DMAMUX2_SYNC_LPTIM2_OUT - * @arg @ref LL_DMAMUX2_SYNC_LPTIM3_OUT - * @arg @ref LL_DMAMUX2_SYNC_I2C4_WKUP - * @arg @ref LL_DMAMUX2_SYNC_SPI6_WKUP - * @arg @ref LL_DMAMUX2_SYNC_COMP1_OUT - * @arg @ref LL_DMAMUX2_SYNC_RTC_WKUP - * @arg @ref LL_DMAMUX2_SYNC_EXTI0 - * @arg @ref LL_DMAMUX2_SYNC_EXTI2 - */ -__STATIC_INLINE uint32_t LL_DMAMUX_GetSyncID(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return (uint32_t)(READ_BIT(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_SYNC_ID)); -} - -/** - * @brief Enable the Request Generator. - * @rmtoll RGxCR GE LL_DMAMUX_EnableRequestGen - * @param DMAMUXx DMAMUXx Instance - * @param RequestGenChannel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_REQ_GEN_0 - * @arg @ref LL_DMAMUX_REQ_GEN_1 - * @arg @ref LL_DMAMUX_REQ_GEN_2 - * @arg @ref LL_DMAMUX_REQ_GEN_3 - * @arg @ref LL_DMAMUX_REQ_GEN_4 - * @arg @ref LL_DMAMUX_REQ_GEN_5 - * @arg @ref LL_DMAMUX_REQ_GEN_6 - * @arg @ref LL_DMAMUX_REQ_GEN_7 - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_EnableRequestGen(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t RequestGenChannel) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_RequestGen_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_OFFSET + (DMAMUX_RGCR_SIZE * (RequestGenChannel))))->RGCR, DMAMUX_RGxCR_GE); -} - -/** - * @brief Disable the Request Generator. - * @rmtoll RGxCR GE LL_DMAMUX_DisableRequestGen - * @param DMAMUXx DMAMUXx Instance - * @param RequestGenChannel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_REQ_GEN_0 - * @arg @ref LL_DMAMUX_REQ_GEN_1 - * @arg @ref LL_DMAMUX_REQ_GEN_2 - * @arg @ref LL_DMAMUX_REQ_GEN_3 - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_DisableRequestGen(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t RequestGenChannel) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - CLEAR_BIT(((DMAMUX_RequestGen_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_OFFSET + (DMAMUX_RGCR_SIZE * (RequestGenChannel))))->RGCR, DMAMUX_RGxCR_GE); -} - -/** - * @brief Check if the Request Generator is enabled or disabled. - * @rmtoll RGxCR GE LL_DMAMUX_IsEnabledRequestGen - * @param DMAMUXx DMAMUXx Instance - * @param RequestGenChannel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_REQ_GEN_0 - * @arg @ref LL_DMAMUX_REQ_GEN_1 - * @arg @ref LL_DMAMUX_REQ_GEN_2 - * @arg @ref LL_DMAMUX_REQ_GEN_3 - * @arg @ref LL_DMAMUX_REQ_GEN_4 - * @arg @ref LL_DMAMUX_REQ_GEN_5 - * @arg @ref LL_DMAMUX_REQ_GEN_6 - * @arg @ref LL_DMAMUX_REQ_GEN_7 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsEnabledRequestGen(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t RequestGenChannel) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return ((READ_BIT(((DMAMUX_RequestGen_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_OFFSET + (DMAMUX_RGCR_SIZE * RequestGenChannel)))->RGCR, DMAMUX_RGxCR_GE) == (DMAMUX_RGxCR_GE)) ? 1UL : 0UL); -} - -/** - * @brief Set the polarity of the signal on which the DMA request is generated. - * @rmtoll RGxCR GPOL LL_DMAMUX_SetRequestGenPolarity - * @param DMAMUXx DMAMUXx Instance - * @param RequestGenChannel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_REQ_GEN_0 - * @arg @ref LL_DMAMUX_REQ_GEN_1 - * @arg @ref LL_DMAMUX_REQ_GEN_2 - * @arg @ref LL_DMAMUX_REQ_GEN_3 - * @arg @ref LL_DMAMUX_REQ_GEN_4 - * @arg @ref LL_DMAMUX_REQ_GEN_5 - * @arg @ref LL_DMAMUX_REQ_GEN_6 - * @arg @ref LL_DMAMUX_REQ_GEN_7 - * @param Polarity This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_REQ_GEN_NO_EVENT - * @arg @ref LL_DMAMUX_REQ_GEN_POL_RISING - * @arg @ref LL_DMAMUX_REQ_GEN_POL_FALLING - * @arg @ref LL_DMAMUX_REQ_GEN_POL_RISING_FALLING - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_SetRequestGenPolarity(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t RequestGenChannel, uint32_t Polarity) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - MODIFY_REG(((DMAMUX_RequestGen_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_OFFSET + (DMAMUX_RGCR_SIZE * RequestGenChannel)))->RGCR, DMAMUX_RGxCR_GPOL, Polarity); -} - -/** - * @brief Get the polarity of the signal on which the DMA request is generated. - * @rmtoll RGxCR GPOL LL_DMAMUX_GetRequestGenPolarity - * @param DMAMUXx DMAMUXx Instance - * @param RequestGenChannel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_REQ_GEN_0 - * @arg @ref LL_DMAMUX_REQ_GEN_1 - * @arg @ref LL_DMAMUX_REQ_GEN_2 - * @arg @ref LL_DMAMUX_REQ_GEN_3 - * @arg @ref LL_DMAMUX_REQ_GEN_4 - * @arg @ref LL_DMAMUX_REQ_GEN_5 - * @arg @ref LL_DMAMUX_REQ_GEN_6 - * @arg @ref LL_DMAMUX_REQ_GEN_7 - * @retval Returned value can be one of the following values: - * @arg @ref LL_DMAMUX_REQ_GEN_NO_EVENT - * @arg @ref LL_DMAMUX_REQ_GEN_POL_RISING - * @arg @ref LL_DMAMUX_REQ_GEN_POL_FALLING - * @arg @ref LL_DMAMUX_REQ_GEN_POL_RISING_FALLING - */ -__STATIC_INLINE uint32_t LL_DMAMUX_GetRequestGenPolarity(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t RequestGenChannel) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return (uint32_t)(READ_BIT(((DMAMUX_RequestGen_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_OFFSET + (DMAMUX_RGCR_SIZE * RequestGenChannel)))->RGCR, DMAMUX_RGxCR_GPOL)); -} - -/** - * @brief Set the number of DMA request that will be autorized after a generation event. - * @note This field can only be written when Generator is disabled. - * @rmtoll RGxCR GNBREQ LL_DMAMUX_SetGenRequestNb - * @param DMAMUXx DMAMUXx Instance - * @param RequestGenChannel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_REQ_GEN_0 - * @arg @ref LL_DMAMUX_REQ_GEN_1 - * @arg @ref LL_DMAMUX_REQ_GEN_2 - * @arg @ref LL_DMAMUX_REQ_GEN_3 - * @arg @ref LL_DMAMUX_REQ_GEN_4 - * @arg @ref LL_DMAMUX_REQ_GEN_5 - * @arg @ref LL_DMAMUX_REQ_GEN_6 - * @arg @ref LL_DMAMUX_REQ_GEN_7 - * @param RequestNb This parameter must be a value between Min_Data = 1 and Max_Data = 32. - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_SetGenRequestNb(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t RequestGenChannel, uint32_t RequestNb) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - MODIFY_REG(((DMAMUX_RequestGen_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_OFFSET + (DMAMUX_RGCR_SIZE * RequestGenChannel)))->RGCR, DMAMUX_RGxCR_GNBREQ, (RequestNb - 1U) << DMAMUX_RGxCR_GNBREQ_Pos); -} - -/** - * @brief Get the number of DMA request that will be autorized after a generation event. - * @rmtoll RGxCR GNBREQ LL_DMAMUX_GetGenRequestNb - * @param DMAMUXx DMAMUXx Instance - * @param RequestGenChannel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_REQ_GEN_0 - * @arg @ref LL_DMAMUX_REQ_GEN_1 - * @arg @ref LL_DMAMUX_REQ_GEN_2 - * @arg @ref LL_DMAMUX_REQ_GEN_3 - * @arg @ref LL_DMAMUX_REQ_GEN_4 - * @arg @ref LL_DMAMUX_REQ_GEN_5 - * @arg @ref LL_DMAMUX_REQ_GEN_6 - * @arg @ref LL_DMAMUX_REQ_GEN_7 - * @retval Between Min_Data = 1 and Max_Data = 32 - */ -__STATIC_INLINE uint32_t LL_DMAMUX_GetGenRequestNb(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t RequestGenChannel) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return (uint32_t)((READ_BIT(((DMAMUX_RequestGen_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_OFFSET + (DMAMUX_RGCR_SIZE * RequestGenChannel)))->RGCR, DMAMUX_RGxCR_GNBREQ) >> DMAMUX_RGxCR_GNBREQ_Pos) + 1U); -} - -/** - * @brief Set DMAMUX external Request Signal ID on DMAMUX Request Generation Trigger Event Channel x. - * @rmtoll RGxCR SIG_ID LL_DMAMUX_SetRequestSignalID - * @param DMAMUXx DMAMUXx Instance - * @param RequestGenChannel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_REQ_GEN_0 - * @arg @ref LL_DMAMUX_REQ_GEN_1 - * @arg @ref LL_DMAMUX_REQ_GEN_2 - * @arg @ref LL_DMAMUX_REQ_GEN_3 - * @arg @ref LL_DMAMUX_REQ_GEN_4 - * @arg @ref LL_DMAMUX_REQ_GEN_5 - * @arg @ref LL_DMAMUX_REQ_GEN_6 - * @arg @ref LL_DMAMUX_REQ_GEN_7 - * @param RequestSignalID This parameter can be one of the following values: - * @arg @ref LL_DMAMUX1_REQ_GEN_DMAMUX1_CH0_EVT - * @arg @ref LL_DMAMUX1_REQ_GEN_DMAMUX1_CH1_EVT - * @arg @ref LL_DMAMUX1_REQ_GEN_DMAMUX1_CH2_EVT - * @arg @ref LL_DMAMUX1_REQ_GEN_LPTIM1_OUT - * @arg @ref LL_DMAMUX1_REQ_GEN_LPTIM2_OUT - * @arg @ref LL_DMAMUX1_REQ_GEN_LPTIM3_OUT - * @arg @ref LL_DMAMUX1_REQ_GEN_EXTI0 - * @arg @ref LL_DMAMUX1_REQ_GEN_TIM12_TRGO - * @arg @ref LL_DMAMUX2_REQ_GEN_DMAMUX2_CH0_EVT - * @arg @ref LL_DMAMUX2_REQ_GEN_DMAMUX2_CH1_EVT - * @arg @ref LL_DMAMUX2_REQ_GEN_DMAMUX2_CH2_EVT - * @arg @ref LL_DMAMUX2_REQ_GEN_DMAMUX2_CH3_EVT - * @arg @ref LL_DMAMUX2_REQ_GEN_DMAMUX2_CH4_EVT - * @arg @ref LL_DMAMUX2_REQ_GEN_DMAMUX2_CH5_EVT - * @arg @ref LL_DMAMUX2_REQ_GEN_DMAMUX2_CH6_EVT - * @arg @ref LL_DMAMUX2_REQ_GEN_LPUART1_RX_WKUP - * @arg @ref LL_DMAMUX2_REQ_GEN_LPUART1_TX_WKUP - * @arg @ref LL_DMAMUX2_REQ_GEN_LPTIM2_WKUP - * @arg @ref LL_DMAMUX2_REQ_GEN_LPTIM2_OUT - * @arg @ref LL_DMAMUX2_REQ_GEN_LPTIM3_WKUP - * @arg @ref LL_DMAMUX2_REQ_GEN_LPTIM3_OUT - * @arg @ref LL_DMAMUX2_REQ_GEN_LPTIM4_WKUP (*) - * @arg @ref LL_DMAMUX2_REQ_GEN_LPTIM5_WKUP (*) - * @arg @ref LL_DMAMUX2_REQ_GEN_I2C4_WKUP - * @arg @ref LL_DMAMUX2_REQ_GEN_SPI6_WKUP - * @arg @ref LL_DMAMUX2_REQ_GEN_COMP1_OUT - * @arg @ref LL_DMAMUX2_REQ_GEN_COMP2_OUT - * @arg @ref LL_DMAMUX2_REQ_GEN_RTC_WKUP - * @arg @ref LL_DMAMUX2_REQ_GEN_EXTI0 - * @arg @ref LL_DMAMUX2_REQ_GEN_EXTI2 - * @arg @ref LL_DMAMUX2_REQ_GEN_I2C4_IT_EVT - * @arg @ref LL_DMAMUX2_REQ_GEN_SPI6_IT - * @arg @ref LL_DMAMUX2_REQ_GEN_LPUART1_TX_IT - * @arg @ref LL_DMAMUX2_REQ_GEN_LPUART1_RX_IT - * @arg @ref LL_DMAMUX2_REQ_GEN_ADC3_IT (*) - * @arg @ref LL_DMAMUX2_REQ_GEN_ADC3_AWD1_OUT (*) - * @arg @ref LL_DMAMUX2_REQ_GEN_BDMA_CH0_IT - * @arg @ref LL_DMAMUX2_REQ_GEN_BDMA_CH1_IT - * @note (*) Availability depends on devices. - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_SetRequestSignalID(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t RequestGenChannel, uint32_t RequestSignalID) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - MODIFY_REG(((DMAMUX_RequestGen_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_OFFSET + (DMAMUX_RGCR_SIZE * RequestGenChannel)))->RGCR, DMAMUX_RGxCR_SIG_ID, RequestSignalID); -} - -/** - * @brief Get DMAMUX external Request Signal ID set on DMAMUX Channel x. - * @rmtoll RGxCR SIG_ID LL_DMAMUX_GetRequestSignalID - * @param DMAMUXx DMAMUXx Instance - * @param RequestGenChannel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_REQ_GEN_0 - * @arg @ref LL_DMAMUX_REQ_GEN_1 - * @arg @ref LL_DMAMUX_REQ_GEN_2 - * @arg @ref LL_DMAMUX_REQ_GEN_3 - * @arg @ref LL_DMAMUX_REQ_GEN_4 - * @arg @ref LL_DMAMUX_REQ_GEN_5 - * @arg @ref LL_DMAMUX_REQ_GEN_6 - * @arg @ref LL_DMAMUX_REQ_GEN_7 - * @retval Returned value can be one of the following values: - * @arg @ref LL_DMAMUX1_SYNC_DMAMUX1_CH0_EVT - * @arg @ref LL_DMAMUX1_SYNC_DMAMUX1_CH1_EVT - * @arg @ref LL_DMAMUX1_SYNC_DMAMUX1_CH2_EVT - * @arg @ref LL_DMAMUX1_SYNC_LPTIM1_OUT - * @arg @ref LL_DMAMUX1_SYNC_LPTIM2_OUT - * @arg @ref LL_DMAMUX1_SYNC_LPTIM3_OUT - * @arg @ref LL_DMAMUX1_SYNC_EXTI0 - * @arg @ref LL_DMAMUX1_SYNC_TIM12_TRGO - * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH0_EVT - * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH1_EVT - * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH2_EVT - * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH3_EVT - * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH4_EVT - * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH5_EVT - * @arg @ref LL_DMAMUX2_SYNC_LPUART1_RX_WKUP - * @arg @ref LL_DMAMUX2_SYNC_LPUART1_TX_WKUP - * @arg @ref LL_DMAMUX2_SYNC_LPTIM2_OUT - * @arg @ref LL_DMAMUX2_SYNC_LPTIM3_OUT - * @arg @ref LL_DMAMUX2_SYNC_I2C4_WKUP - * @arg @ref LL_DMAMUX2_SYNC_SPI6_WKUP - * @arg @ref LL_DMAMUX2_SYNC_COMP1_OUT - * @arg @ref LL_DMAMUX2_SYNC_RTC_WKUP - * @arg @ref LL_DMAMUX2_SYNC_EXTI0 - * @arg @ref LL_DMAMUX2_SYNC_EXTI2 - */ -__STATIC_INLINE uint32_t LL_DMAMUX_GetRequestSignalID(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t RequestGenChannel) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return (uint32_t)(READ_BIT(((DMAMUX_RequestGen_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_OFFSET + (DMAMUX_RGCR_SIZE * RequestGenChannel)))->RGCR, DMAMUX_RGxCR_SIG_ID)); -} - -/** - * @} - */ - -/** @defgroup DMAMUX_LL_EF_FLAG_Management FLAG_Management - * @{ - */ - -/** - * @brief Get Synchronization Event Overrun Flag Channel 0. - * @rmtoll CSR SOF0 LL_DMAMUX_IsActiveFlag_SO0 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO0(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF0) == (DMAMUX_CSR_SOF0)) ? 1UL : 0UL); -} - -/** - * @brief Get Synchronization Event Overrun Flag Channel 1. - * @rmtoll CSR SOF1 LL_DMAMUX_IsActiveFlag_SO1 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO1(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF1) == (DMAMUX_CSR_SOF1)) ? 1UL : 0UL); -} - -/** - * @brief Get Synchronization Event Overrun Flag Channel 2. - * @rmtoll CSR SOF2 LL_DMAMUX_IsActiveFlag_SO2 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO2(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF2) == (DMAMUX_CSR_SOF2)) ? 1UL : 0UL); -} - -/** - * @brief Get Synchronization Event Overrun Flag Channel 3. - * @rmtoll CSR SOF3 LL_DMAMUX_IsActiveFlag_SO3 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO3(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF3) == (DMAMUX_CSR_SOF3)) ? 1UL : 0UL); -} - -/** - * @brief Get Synchronization Event Overrun Flag Channel 4. - * @rmtoll CSR SOF4 LL_DMAMUX_IsActiveFlag_SO4 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO4(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF4) == (DMAMUX_CSR_SOF4)) ? 1UL : 0UL); -} - -/** - * @brief Get Synchronization Event Overrun Flag Channel 5. - * @rmtoll CSR SOF5 LL_DMAMUX_IsActiveFlag_SO5 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO5(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF5) == (DMAMUX_CSR_SOF5)) ? 1UL : 0UL); -} - -/** - * @brief Get Synchronization Event Overrun Flag Channel 6. - * @rmtoll CSR SOF6 LL_DMAMUX_IsActiveFlag_SO6 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO6(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF6) == (DMAMUX_CSR_SOF6)) ? 1UL : 0UL); -} - -/** - * @brief Get Synchronization Event Overrun Flag Channel 7. - * @rmtoll CSR SOF7 LL_DMAMUX_IsActiveFlag_SO7 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO7(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF7) == (DMAMUX_CSR_SOF7)) ? 1UL : 0UL); -} - -/** - * @brief Get Synchronization Event Overrun Flag Channel 8. - * @rmtoll CSR SOF8 LL_DMAMUX_IsActiveFlag_SO8 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO8(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF8) == (DMAMUX_CSR_SOF8)) ? 1UL : 0UL); -} - -/** - * @brief Get Synchronization Event Overrun Flag Channel 9. - * @rmtoll CSR SOF9 LL_DMAMUX_IsActiveFlag_SO9 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO9(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF9) == (DMAMUX_CSR_SOF9)) ? 1UL : 0UL); -} - -/** - * @brief Get Synchronization Event Overrun Flag Channel 10. - * @rmtoll CSR SOF10 LL_DMAMUX_IsActiveFlag_SO10 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO10(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF10) == (DMAMUX_CSR_SOF10)) ? 1UL : 0UL); -} - -/** - * @brief Get Synchronization Event Overrun Flag Channel 11. - * @rmtoll CSR SOF11 LL_DMAMUX_IsActiveFlag_SO11 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO11(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF11) == (DMAMUX_CSR_SOF11)) ? 1UL : 0UL); -} - -/** - * @brief Get Synchronization Event Overrun Flag Channel 12. - * @rmtoll CSR SOF12 LL_DMAMUX_IsActiveFlag_SO12 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO12(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF12) == (DMAMUX_CSR_SOF12)) ? 1UL : 0UL); -} - -/** - * @brief Get Synchronization Event Overrun Flag Channel 13. - * @rmtoll CSR SOF13 LL_DMAMUX_IsActiveFlag_SO13 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO13(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF13) == (DMAMUX_CSR_SOF13)) ? 1UL : 0UL); -} - -/** - * @brief Get Synchronization Event Overrun Flag Channel 14. - * @rmtoll CSR SOF14 LL_DMAMUX_IsActiveFlag_SO14 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO14(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF14) == (DMAMUX_CSR_SOF14)) ? 1UL : 0UL); -} - -/** - * @brief Get Synchronization Event Overrun Flag Channel 15. - * @rmtoll CSR SOF15 LL_DMAMUX_IsActiveFlag_SO15 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO15(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF15) == (DMAMUX_CSR_SOF15)) ? 1UL : 0UL); -} - -/** - * @brief Get Request Generator 0 Trigger Event Overrun Flag. - * @rmtoll RGSR OF0 LL_DMAMUX_IsActiveFlag_RGO0 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_RGO0(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return ((READ_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGSR, DMAMUX_RGSR_OF0) == (DMAMUX_RGSR_OF0)) ? 1UL : 0UL); -} - -/** - * @brief Get Request Generator 1 Trigger Event Overrun Flag. - * @rmtoll RGSR OF1 LL_DMAMUX_IsActiveFlag_RGO1 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_RGO1(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return ((READ_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGSR, DMAMUX_RGSR_OF1) == (DMAMUX_RGSR_OF1)) ? 1UL : 0UL); -} - -/** - * @brief Get Request Generator 2 Trigger Event Overrun Flag. - * @rmtoll RGSR OF2 LL_DMAMUX_IsActiveFlag_RGO2 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_RGO2(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return ((READ_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGSR, DMAMUX_RGSR_OF2) == (DMAMUX_RGSR_OF2)) ? 1UL : 0UL); -} - -/** - * @brief Get Request Generator 3 Trigger Event Overrun Flag. - * @rmtoll RGSR OF3 LL_DMAMUX_IsActiveFlag_RGO3 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_RGO3(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return ((READ_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGSR, DMAMUX_RGSR_OF3) == (DMAMUX_RGSR_OF3)) ? 1UL : 0UL); -} - -/** - * @brief Get Request Generator 4 Trigger Event Overrun Flag. - * @rmtoll RGSR OF4 LL_DMAMUX_IsActiveFlag_RGO4 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_RGO4(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return ((READ_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGSR, DMAMUX_RGSR_OF4) == (DMAMUX_RGSR_OF4)) ? 1UL : 0UL); -} - -/** - * @brief Get Request Generator 5 Trigger Event Overrun Flag. - * @rmtoll RGSR OF5 LL_DMAMUX_IsActiveFlag_RGO5 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_RGO5(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return ((READ_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGSR, DMAMUX_RGSR_OF5) == (DMAMUX_RGSR_OF5)) ? 1UL : 0UL); -} - -/** - * @brief Get Request Generator 6 Trigger Event Overrun Flag. - * @rmtoll RGSR OF6 LL_DMAMUX_IsActiveFlag_RGO6 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_RGO6(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return ((READ_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGSR, DMAMUX_RGSR_OF6) == (DMAMUX_RGSR_OF6)) ? 1UL : 0UL); -} - -/** - * @brief Get Request Generator 7 Trigger Event Overrun Flag. - * @rmtoll RGSR OF7 LL_DMAMUX_IsActiveFlag_RGO7 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_RGO7(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return ((READ_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGSR, DMAMUX_RGSR_OF7) == (DMAMUX_RGSR_OF7)) ? 1UL : 0UL); -} - -/** - * @brief Clear Synchronization Event Overrun Flag Channel 0. - * @rmtoll CFR CSOF0 LL_DMAMUX_ClearFlag_SO0 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_ClearFlag_SO0(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF0); -} - -/** - * @brief Clear Synchronization Event Overrun Flag Channel 1. - * @rmtoll CFR CSOF1 LL_DMAMUX_ClearFlag_SO1 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_ClearFlag_SO1(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF1); -} - -/** - * @brief Clear Synchronization Event Overrun Flag Channel 2. - * @rmtoll CFR CSOF2 LL_DMAMUX_ClearFlag_SO2 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_ClearFlag_SO2(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF2); -} - -/** - * @brief Clear Synchronization Event Overrun Flag Channel 3. - * @rmtoll CFR CSOF3 LL_DMAMUX_ClearFlag_SO3 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_ClearFlag_SO3(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF3); -} - -/** - * @brief Clear Synchronization Event Overrun Flag Channel 4. - * @rmtoll CFR CSOF4 LL_DMAMUX_ClearFlag_SO4 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_ClearFlag_SO4(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF4); -} - -/** - * @brief Clear Synchronization Event Overrun Flag Channel 5. - * @rmtoll CFR CSOF5 LL_DMAMUX_ClearFlag_SO5 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_ClearFlag_SO5(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF5); -} - -/** - * @brief Clear Synchronization Event Overrun Flag Channel 6. - * @rmtoll CFR CSOF6 LL_DMAMUX_ClearFlag_SO6 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_ClearFlag_SO6(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF6); -} - -/** - * @brief Clear Synchronization Event Overrun Flag Channel 7. - * @rmtoll CFR CSOF7 LL_DMAMUX_ClearFlag_SO7 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_ClearFlag_SO7(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF7); -} - -/** - * @brief Clear Synchronization Event Overrun Flag Channel 8. - * @rmtoll CFR CSOF8 LL_DMAMUX_ClearFlag_SO8 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_ClearFlag_SO8(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF8); -} - -/** - * @brief Clear Synchronization Event Overrun Flag Channel 9. - * @rmtoll CFR CSOF9 LL_DMAMUX_ClearFlag_SO9 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_ClearFlag_SO9(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF9); -} - -/** - * @brief Clear Synchronization Event Overrun Flag Channel 10. - * @rmtoll CFR CSOF10 LL_DMAMUX_ClearFlag_SO10 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_ClearFlag_SO10(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF10); -} - -/** - * @brief Clear Synchronization Event Overrun Flag Channel 11. - * @rmtoll CFR CSOF11 LL_DMAMUX_ClearFlag_SO11 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_ClearFlag_SO11(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF11); -} - -/** - * @brief Clear Synchronization Event Overrun Flag Channel 12. - * @rmtoll CFR CSOF12 LL_DMAMUX_ClearFlag_SO12 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_ClearFlag_SO12(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF12); -} - -/** - * @brief Clear Synchronization Event Overrun Flag Channel 13. - * @rmtoll CFR CSOF13 LL_DMAMUX_ClearFlag_SO13 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_ClearFlag_SO13(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF13); -} - -/** - * @brief Clear Synchronization Event Overrun Flag Channel 14. - * @rmtoll CFR CSOF14 LL_DMAMUX_ClearFlag_SO14 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_ClearFlag_SO14(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF14); -} - -/** - * @brief Clear Synchronization Event Overrun Flag Channel 15. - * @rmtoll CFR CSOF15 LL_DMAMUX_ClearFlag_SO15 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_ClearFlag_SO15(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF15); -} - -/** - * @brief Clear Request Generator 0 Trigger Event Overrun Flag. - * @rmtoll RGCFR COF0 LL_DMAMUX_ClearFlag_RGO0 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_ClearFlag_RGO0(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGCFR, DMAMUX_RGCFR_COF0); -} - -/** - * @brief Clear Request Generator 1 Trigger Event Overrun Flag. - * @rmtoll RGCFR COF1 LL_DMAMUX_ClearFlag_RGO1 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_ClearFlag_RGO1(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGCFR, DMAMUX_RGCFR_COF1); -} - -/** - * @brief Clear Request Generator 2 Trigger Event Overrun Flag. - * @rmtoll RGCFR COF2 LL_DMAMUX_ClearFlag_RGO2 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_ClearFlag_RGO2(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGCFR, DMAMUX_RGCFR_COF2); -} - -/** - * @brief Clear Request Generator 3 Trigger Event Overrun Flag. - * @rmtoll RGCFR COF3 LL_DMAMUX_ClearFlag_RGO3 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_ClearFlag_RGO3(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGCFR, DMAMUX_RGCFR_COF3); -} - -/** - * @brief Clear Request Generator 4 Trigger Event Overrun Flag. - * @rmtoll RGCFR COF4 LL_DMAMUX_ClearFlag_RGO4 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_ClearFlag_RGO4(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGCFR, DMAMUX_RGCFR_COF4); -} - -/** - * @brief Clear Request Generator 5 Trigger Event Overrun Flag. - * @rmtoll RGCFR COF5 LL_DMAMUX_ClearFlag_RGO5 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_ClearFlag_RGO5(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGCFR, DMAMUX_RGCFR_COF5); -} - -/** - * @brief Clear Request Generator 6 Trigger Event Overrun Flag. - * @rmtoll RGCFR COF6 LL_DMAMUX_ClearFlag_RGO6 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_ClearFlag_RGO6(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGCFR, DMAMUX_RGCFR_COF6); -} - -/** - * @brief Clear Request Generator 7 Trigger Event Overrun Flag. - * @rmtoll RGCFR COF7 LL_DMAMUX_ClearFlag_RGO7 - * @param DMAMUXx DMAMUXx DMAMUXx Instance - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_ClearFlag_RGO7(DMAMUX_Channel_TypeDef *DMAMUXx) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGCFR, DMAMUX_RGCFR_COF7); -} - -/** - * @} - */ - -/** @defgroup DMAMUX_LL_EF_IT_Management IT_Management - * @{ - */ - -/** - * @brief Enable the Synchronization Event Overrun Interrupt on DMAMUX channel x. - * @rmtoll CxCR SOIE LL_DMAMUX_EnableIT_SO - * @param DMAMUXx DMAMUXx Instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_CHANNEL_0 - * @arg @ref LL_DMAMUX_CHANNEL_1 - * @arg @ref LL_DMAMUX_CHANNEL_2 - * @arg @ref LL_DMAMUX_CHANNEL_3 - * @arg @ref LL_DMAMUX_CHANNEL_4 - * @arg @ref LL_DMAMUX_CHANNEL_5 - * @arg @ref LL_DMAMUX_CHANNEL_6 - * @arg @ref LL_DMAMUX_CHANNEL_7 - * @arg @ref LL_DMAMUX_CHANNEL_8 - * @arg @ref LL_DMAMUX_CHANNEL_9 - * @arg @ref LL_DMAMUX_CHANNEL_10 - * @arg @ref LL_DMAMUX_CHANNEL_11 - * @arg @ref LL_DMAMUX_CHANNEL_12 - * @arg @ref LL_DMAMUX_CHANNEL_13 - * @arg @ref LL_DMAMUX_CHANNEL_14 - * @arg @ref LL_DMAMUX_CHANNEL_15 - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_EnableIT_SO(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_Channel_TypeDef *)((uint32_t)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel)))))->CCR, DMAMUX_CxCR_SOIE); -} - -/** - * @brief Disable the Synchronization Event Overrun Interrupt on DMAMUX channel x. - * @rmtoll CxCR SOIE LL_DMAMUX_DisableIT_SO - * @param DMAMUXx DMAMUXx Instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_CHANNEL_0 - * @arg @ref LL_DMAMUX_CHANNEL_1 - * @arg @ref LL_DMAMUX_CHANNEL_2 - * @arg @ref LL_DMAMUX_CHANNEL_3 - * @arg @ref LL_DMAMUX_CHANNEL_4 - * @arg @ref LL_DMAMUX_CHANNEL_5 - * @arg @ref LL_DMAMUX_CHANNEL_6 - * @arg @ref LL_DMAMUX_CHANNEL_7 - * @arg @ref LL_DMAMUX_CHANNEL_8 - * @arg @ref LL_DMAMUX_CHANNEL_9 - * @arg @ref LL_DMAMUX_CHANNEL_10 - * @arg @ref LL_DMAMUX_CHANNEL_11 - * @arg @ref LL_DMAMUX_CHANNEL_12 - * @arg @ref LL_DMAMUX_CHANNEL_13 - * @arg @ref LL_DMAMUX_CHANNEL_14 - * @arg @ref LL_DMAMUX_CHANNEL_15 - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_DisableIT_SO(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - CLEAR_BIT(((DMAMUX_Channel_TypeDef *)((uint32_t)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel)))))->CCR, DMAMUX_CxCR_SOIE); -} - -/** - * @brief Check if the Synchronization Event Overrun Interrupt on DMAMUX channel x is enabled or disabled. - * @rmtoll CxCR SOIE LL_DMAMUX_IsEnabledIT_SO - * @param DMAMUXx DMAMUXx Instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_CHANNEL_0 - * @arg @ref LL_DMAMUX_CHANNEL_1 - * @arg @ref LL_DMAMUX_CHANNEL_2 - * @arg @ref LL_DMAMUX_CHANNEL_3 - * @arg @ref LL_DMAMUX_CHANNEL_4 - * @arg @ref LL_DMAMUX_CHANNEL_5 - * @arg @ref LL_DMAMUX_CHANNEL_6 - * @arg @ref LL_DMAMUX_CHANNEL_7 - * @arg @ref LL_DMAMUX_CHANNEL_8 - * @arg @ref LL_DMAMUX_CHANNEL_9 - * @arg @ref LL_DMAMUX_CHANNEL_10 - * @arg @ref LL_DMAMUX_CHANNEL_11 - * @arg @ref LL_DMAMUX_CHANNEL_12 - * @arg @ref LL_DMAMUX_CHANNEL_13 - * @arg @ref LL_DMAMUX_CHANNEL_14 - * @arg @ref LL_DMAMUX_CHANNEL_15 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsEnabledIT_SO(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return (READ_BIT(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_SOIE)); -} - -/** - * @brief Enable the Request Generation Trigger Event Overrun Interrupt on DMAMUX channel x. - * @rmtoll RGxCR OIE LL_DMAMUX_EnableIT_RGO - * @param DMAMUXx DMAMUXx Instance - * @param RequestGenChannel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_REQ_GEN_0 - * @arg @ref LL_DMAMUX_REQ_GEN_1 - * @arg @ref LL_DMAMUX_REQ_GEN_2 - * @arg @ref LL_DMAMUX_REQ_GEN_3 - * @arg @ref LL_DMAMUX_REQ_GEN_4 - * @arg @ref LL_DMAMUX_REQ_GEN_5 - * @arg @ref LL_DMAMUX_REQ_GEN_6 - * @arg @ref LL_DMAMUX_REQ_GEN_7 - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_EnableIT_RGO(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t RequestGenChannel) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - SET_BIT(((DMAMUX_RequestGen_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_OFFSET + (DMAMUX_RGCR_SIZE * RequestGenChannel)))->RGCR, DMAMUX_RGxCR_OIE); -} - -/** - * @brief Disable the Request Generation Trigger Event Overrun Interrupt on DMAMUX channel x. - * @rmtoll RGxCR OIE LL_DMAMUX_DisableIT_RGO - * @param DMAMUXx DMAMUXx Instance - * @param RequestGenChannel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_REQ_GEN_0 - * @arg @ref LL_DMAMUX_REQ_GEN_1 - * @arg @ref LL_DMAMUX_REQ_GEN_2 - * @arg @ref LL_DMAMUX_REQ_GEN_3 - * @arg @ref LL_DMAMUX_REQ_GEN_4 - * @arg @ref LL_DMAMUX_REQ_GEN_5 - * @arg @ref LL_DMAMUX_REQ_GEN_6 - * @arg @ref LL_DMAMUX_REQ_GEN_7 - * @retval None - */ -__STATIC_INLINE void LL_DMAMUX_DisableIT_RGO(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t RequestGenChannel) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - CLEAR_BIT(((DMAMUX_RequestGen_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_OFFSET + (DMAMUX_RGCR_SIZE * RequestGenChannel)))->RGCR, DMAMUX_RGxCR_OIE); -} - -/** - * @brief Check if the Request Generation Trigger Event Overrun Interrupt on DMAMUX channel x is enabled or disabled. - * @rmtoll RGxCR OIE LL_DMAMUX_IsEnabledIT_RGO - * @param DMAMUXx DMAMUXx Instance - * @param RequestGenChannel This parameter can be one of the following values: - * @arg @ref LL_DMAMUX_REQ_GEN_0 - * @arg @ref LL_DMAMUX_REQ_GEN_1 - * @arg @ref LL_DMAMUX_REQ_GEN_2 - * @arg @ref LL_DMAMUX_REQ_GEN_3 - * @arg @ref LL_DMAMUX_REQ_GEN_4 - * @arg @ref LL_DMAMUX_REQ_GEN_5 - * @arg @ref LL_DMAMUX_REQ_GEN_6 - * @arg @ref LL_DMAMUX_REQ_GEN_7 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_DMAMUX_IsEnabledIT_RGO(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t RequestGenChannel) -{ - uint32_t dmamux_base_addr = (uint32_t)DMAMUXx; - - return ((READ_BIT(((DMAMUX_RequestGen_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_OFFSET + (DMAMUX_RGCR_SIZE * RequestGenChannel)))->RGCR, DMAMUX_RGxCR_OIE) == (DMAMUX_RGxCR_OIE)) ? 1UL : 0UL); -} - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -#endif /* DMAMUX1 || DMAMUX2 */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* __STM32H7xx_LL_DMAMUX_H */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_exti.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_exti.h deleted file mode 100644 index 885f22d..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_exti.h +++ /dev/null @@ -1,3285 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_ll_exti.h - * @author MCD Application Team - * @brief Header file of EXTI LL module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef __STM32H7xx_LL_EXTI_H -#define __STM32H7xx_LL_EXTI_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx.h" - -/** @addtogroup STM32H7xx_LL_Driver - * @{ - */ - -#if defined (EXTI) - -/** @defgroup EXTI_LL EXTI - * @{ - */ - -/* Private types -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private constants ---------------------------------------------------------*/ -/* Private Macros ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) -/** @defgroup EXTI_LL_Private_Macros EXTI Private Macros - * @{ - */ -/** - * @} - */ -#endif /*USE_FULL_LL_DRIVER*/ -/* Exported types ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) -/** @defgroup EXTI_LL_ES_INIT EXTI Exported Init structure - * @{ - */ -typedef struct -{ - - uint32_t Line_0_31; /*!< Specifies the EXTI lines to be enabled or disabled for Lines in range 0 to 31 - This parameter can be any combination of @ref EXTI_LL_EC_LINE */ - - uint32_t Line_32_63; /*!< Specifies the EXTI lines to be enabled or disabled for Lines in range 32 to 63 - This parameter can be any combination of @ref EXTI_LL_EC_LINE */ - - uint32_t Line_64_95; /*!< Specifies the EXTI lines to be enabled or disabled for Lines in range 64 to 95 - This parameter can be any combination of @ref EXTI_LL_EC_LINE */ - - FunctionalState LineCommand; /*!< Specifies the new state of the selected EXTI lines. - This parameter can be set either to ENABLE or DISABLE */ - - uint8_t Mode; /*!< Specifies the mode for the EXTI lines. - This parameter can be a value of @ref EXTI_LL_EC_MODE. */ - - uint8_t Trigger; /*!< Specifies the trigger signal active edge for the EXTI lines. - This parameter can be a value of @ref EXTI_LL_EC_TRIGGER. */ -} LL_EXTI_InitTypeDef; - -/** - * @} - */ -#endif /*USE_FULL_LL_DRIVER*/ - -/* Exported constants --------------------------------------------------------*/ -/** @defgroup EXTI_LL_Exported_Constants EXTI Exported Constants - * @{ - */ - -/** @defgroup EXTI_LL_EC_LINE LINE - * @{ - */ -#define LL_EXTI_LINE_0 EXTI_IMR1_IM0 /*!< Extended line 0 */ -#define LL_EXTI_LINE_1 EXTI_IMR1_IM1 /*!< Extended line 1 */ -#define LL_EXTI_LINE_2 EXTI_IMR1_IM2 /*!< Extended line 2 */ -#define LL_EXTI_LINE_3 EXTI_IMR1_IM3 /*!< Extended line 3 */ -#define LL_EXTI_LINE_4 EXTI_IMR1_IM4 /*!< Extended line 4 */ -#define LL_EXTI_LINE_5 EXTI_IMR1_IM5 /*!< Extended line 5 */ -#define LL_EXTI_LINE_6 EXTI_IMR1_IM6 /*!< Extended line 6 */ -#define LL_EXTI_LINE_7 EXTI_IMR1_IM7 /*!< Extended line 7 */ -#define LL_EXTI_LINE_8 EXTI_IMR1_IM8 /*!< Extended line 8 */ -#define LL_EXTI_LINE_9 EXTI_IMR1_IM9 /*!< Extended line 9 */ -#define LL_EXTI_LINE_10 EXTI_IMR1_IM10 /*!< Extended line 10 */ -#define LL_EXTI_LINE_11 EXTI_IMR1_IM11 /*!< Extended line 11 */ -#define LL_EXTI_LINE_12 EXTI_IMR1_IM12 /*!< Extended line 12 */ -#define LL_EXTI_LINE_13 EXTI_IMR1_IM13 /*!< Extended line 13 */ -#define LL_EXTI_LINE_14 EXTI_IMR1_IM14 /*!< Extended line 14 */ -#define LL_EXTI_LINE_15 EXTI_IMR1_IM15 /*!< Extended line 15 */ -#define LL_EXTI_LINE_16 EXTI_IMR1_IM16 /*!< Extended line 16 */ -#define LL_EXTI_LINE_17 EXTI_IMR1_IM17 /*!< Extended line 17 */ -#define LL_EXTI_LINE_18 EXTI_IMR1_IM18 /*!< Extended line 18 */ -#define LL_EXTI_LINE_19 EXTI_IMR1_IM19 /*!< Extended line 19 */ -#define LL_EXTI_LINE_20 EXTI_IMR1_IM20 /*!< Extended line 20 */ -#define LL_EXTI_LINE_21 EXTI_IMR1_IM21 /*!< Extended line 21 */ -#define LL_EXTI_LINE_22 EXTI_IMR1_IM22 /*!< Extended line 22 */ -#define LL_EXTI_LINE_23 EXTI_IMR1_IM23 /*!< Extended line 23 */ -#define LL_EXTI_LINE_24 EXTI_IMR1_IM24 /*!< Extended line 24 */ -#define LL_EXTI_LINE_25 EXTI_IMR1_IM25 /*!< Extended line 25 */ -#define LL_EXTI_LINE_26 EXTI_IMR1_IM26 /*!< Extended line 26 */ -#define LL_EXTI_LINE_27 EXTI_IMR1_IM27 /*!< Extended line 27 */ -#define LL_EXTI_LINE_28 EXTI_IMR1_IM28 /*!< Extended line 28 */ -#define LL_EXTI_LINE_29 EXTI_IMR1_IM29 /*!< Extended line 29 */ -#define LL_EXTI_LINE_30 EXTI_IMR1_IM30 /*!< Extended line 30 */ -#define LL_EXTI_LINE_31 EXTI_IMR1_IM31 /*!< Extended line 31 */ -#define LL_EXTI_LINE_ALL_0_31 EXTI_IMR1_IM /*!< All Extended line not reserved*/ - -#define LL_EXTI_LINE_32 EXTI_IMR2_IM32 /*!< Extended line 32 */ -#define LL_EXTI_LINE_33 EXTI_IMR2_IM33 /*!< Extended line 33 */ -#define LL_EXTI_LINE_34 EXTI_IMR2_IM34 /*!< Extended line 34 */ -#define LL_EXTI_LINE_35 EXTI_IMR2_IM35 /*!< Extended line 35 */ -#define LL_EXTI_LINE_36 EXTI_IMR2_IM36 /*!< Extended line 36 */ -#define LL_EXTI_LINE_37 EXTI_IMR2_IM37 /*!< Extended line 37 */ -#define LL_EXTI_LINE_38 EXTI_IMR2_IM38 /*!< Extended line 38 */ -#define LL_EXTI_LINE_39 EXTI_IMR2_IM39 /*!< Extended line 39 */ -#define LL_EXTI_LINE_40 EXTI_IMR2_IM40 /*!< Extended line 40 */ -#define LL_EXTI_LINE_41 EXTI_IMR2_IM41 /*!< Extended line 41 */ -#define LL_EXTI_LINE_42 EXTI_IMR2_IM42 /*!< Extended line 42 */ -#define LL_EXTI_LINE_43 EXTI_IMR2_IM43 /*!< Extended line 43 */ -#if defined(USB2_OTG_FS) -#define LL_EXTI_LINE_44 EXTI_IMR2_IM44 /*!< Extended line 44 */ -#endif /* USB2_OTG_FS */ -#if defined(DSI) -#define LL_EXTI_LINE_46 EXTI_IMR2_IM46 /*!< Extended line 46 */ -#endif /* DSI */ -#define LL_EXTI_LINE_47 EXTI_IMR2_IM47 /*!< Extended line 47 */ -#define LL_EXTI_LINE_48 EXTI_IMR2_IM48 /*!< Extended line 48 */ -#define LL_EXTI_LINE_49 EXTI_IMR2_IM49 /*!< Extended line 49 */ -#define LL_EXTI_LINE_50 EXTI_IMR2_IM50 /*!< Extended line 50 */ -#define LL_EXTI_LINE_51 EXTI_IMR2_IM51 /*!< Extended line 51 */ -#define LL_EXTI_LINE_52 EXTI_IMR2_IM52 /*!< Extended line 52 */ -#define LL_EXTI_LINE_53 EXTI_IMR2_IM53 /*!< Extended line 53 */ -#define LL_EXTI_LINE_54 EXTI_IMR2_IM54 /*!< Extended line 54 */ -#define LL_EXTI_LINE_55 EXTI_IMR2_IM55 /*!< Extended line 55 */ -#define LL_EXTI_LINE_56 EXTI_IMR2_IM56 /*!< Extended line 56 */ -#if defined(EXTI_IMR2_IM57) -#define LL_EXTI_LINE_57 EXTI_IMR2_IM57 /*!< Extended line 57 */ -#endif /*EXTI_IMR2_IM57*/ -#define LL_EXTI_LINE_58 EXTI_IMR2_IM58 /*!< Extended line 58 */ -#if defined(EXTI_IMR2_IM59) -#define LL_EXTI_LINE_59 EXTI_IMR2_IM59 /*!< Extended line 59 */ -#endif /*EXTI_IMR2_IM59*/ -#define LL_EXTI_LINE_60 EXTI_IMR2_IM60 /*!< Extended line 60 */ -#define LL_EXTI_LINE_61 EXTI_IMR2_IM61 /*!< Extended line 61 */ -#define LL_EXTI_LINE_62 EXTI_IMR2_IM62 /*!< Extended line 62 */ -#define LL_EXTI_LINE_63 EXTI_IMR2_IM63 /*!< Extended line 63 */ -#define LL_EXTI_LINE_ALL_32_63 EXTI_IMR2_IM /*!< All Extended line not reserved*/ - -#define LL_EXTI_LINE_64 EXTI_IMR3_IM64 /*!< Extended line 64 */ -#define LL_EXTI_LINE_65 EXTI_IMR3_IM65 /*!< Extended line 65 */ -#define LL_EXTI_LINE_66 EXTI_IMR3_IM66 /*!< Extended line 66 */ -#define LL_EXTI_LINE_67 EXTI_IMR3_IM67 /*!< Extended line 67 */ -#define LL_EXTI_LINE_68 EXTI_IMR3_IM68 /*!< Extended line 68 */ -#define LL_EXTI_LINE_69 EXTI_IMR3_IM69 /*!< Extended line 69 */ -#define LL_EXTI_LINE_70 EXTI_IMR3_IM70 /*!< Extended line 70 */ -#define LL_EXTI_LINE_71 EXTI_IMR3_IM71 /*!< Extended line 71 */ -#define LL_EXTI_LINE_72 EXTI_IMR3_IM72 /*!< Extended line 72 */ -#define LL_EXTI_LINE_73 EXTI_IMR3_IM73 /*!< Extended line 73 */ -#define LL_EXTI_LINE_74 EXTI_IMR3_IM74 /*!< Extended line 74 */ -#if defined(ADC3) -#define LL_EXTI_LINE_75 EXTI_IMR3_IM75 /*!< Extended line 75 */ -#endif /* ADC3 */ -#if defined(SAI4) -#define LL_EXTI_LINE_76 EXTI_IMR3_IM76 /*!< Extended line 76 */ -#endif /* SAI4 */ -#if defined(DUAL_CORE) -#define LL_EXTI_LINE_77 EXTI_IMR3_IM77 /*!< Extended line 77 */ -#define LL_EXTI_LINE_78 EXTI_IMR3_IM78 /*!< Extended line 78 */ -#define LL_EXTI_LINE_79 EXTI_IMR3_IM79 /*!< Extended line 79 */ -#define LL_EXTI_LINE_80 EXTI_IMR3_IM80 /*!< Extended line 80 */ -#define LL_EXTI_LINE_82 EXTI_IMR3_IM82 /*!< Extended line 82 */ -#define LL_EXTI_LINE_84 EXTI_IMR3_IM84 /*!< Extended line 84 */ -#endif /* DUAL_CORE */ -#define LL_EXTI_LINE_85 EXTI_IMR3_IM85 /*!< Extended line 85 */ -#if defined(ETH) -#define LL_EXTI_LINE_86 EXTI_IMR3_IM86 /*!< Extended line 86 */ -#endif /* ETH */ -#define LL_EXTI_LINE_87 EXTI_IMR3_IM87 /*!< Extended line 87 */ -#if defined(DTS) -#define LL_EXTI_LINE_88 EXTI_IMR3_IM88 /*!< Extended line 88 */ -#endif /* DTS */ -#if defined(EXTI_IMR3_IM89) -#define LL_EXTI_LINE_89 EXTI_IMR3_IM89 /*!< Extended line 89 */ -#endif /* EXTI_IMR3_IM89 */ -#if defined(EXTI_IMR3_IM90) -#define LL_EXTI_LINE_90 EXTI_IMR3_IM90 /*!< Extended line 90 */ -#endif /* EXTI_IMR3_IM90 */ -#if defined(I2C5) -#define LL_EXTI_LINE_91 EXTI_IMR3_IM91 /*!< Extended line 91 */ -#endif /* I2C5 */ -#define LL_EXTI_LINE_ALL_64_95 EXTI_IMR3_IM /*!< All Extended line not reserved*/ - - -#define LL_EXTI_LINE_ALL (0xFFFFFFFFU) /*!< All Extended line */ - -#if defined(USE_FULL_LL_DRIVER) -#define LL_EXTI_LINE_NONE (0x00000000U) /*!< None Extended line */ -#endif /*USE_FULL_LL_DRIVER*/ - -/** - * @} - */ -#if defined(USE_FULL_LL_DRIVER) - -/** @defgroup EXTI_LL_EC_MODE Mode - * @{ - */ -#define LL_EXTI_MODE_IT ((uint8_t)0x01U) /*!< Cortex-M7 Interrupt Mode */ -#define LL_EXTI_MODE_EVENT ((uint8_t)0x02U) /*!< Cortex-M7 Event Mode */ -#define LL_EXTI_MODE_IT_EVENT ((uint8_t)0x03U) /*!< Cortex-M7 Interrupt & Event Mode */ - -#if defined(DUAL_CORE) -#define LL_EXTI_MODE_C1_IT LL_EXTI_MODE_IT /*!< Cortex-M7 Interrupt Mode */ -#define LL_EXTI_MODE_C1_EVENT LL_EXTI_MODE_EVENT /*!< Cortex-M7 Event Mode */ -#define LL_EXTI_MODE_C1_IT_EVENT LL_EXTI_MODE_IT_EVENT /*!< Cortex-M7 Interrupt & Event Mode */ - -#define LL_EXTI_MODE_C2_IT ((uint8_t)0x10U) /*!< Cortex-M4 Interrupt Mode */ -#define LL_EXTI_MODE_C2_EVENT ((uint8_t)0x20U) /*!< Cortex-M4 Event Mode */ -#define LL_EXTI_MODE_C2_IT_EVENT ((uint8_t)0x30U) /*!< Cortex-M4 Interrupt & Event Mode */ -#endif /* DUAL_CORE */ - -/** - * @} - */ - -/** @defgroup EXTI_LL_EC_TRIGGER Edge Trigger - * @{ - */ -#define LL_EXTI_TRIGGER_NONE ((uint8_t)0x00U) /*!< No Trigger Mode */ -#define LL_EXTI_TRIGGER_RISING ((uint8_t)0x01U) /*!< Trigger Rising Mode */ -#define LL_EXTI_TRIGGER_FALLING ((uint8_t)0x02U) /*!< Trigger Falling Mode */ -#define LL_EXTI_TRIGGER_RISING_FALLING ((uint8_t)0x03U) /*!< Trigger Rising & Falling Mode */ - -/** - * @} - */ - -/** @defgroup EXTI_LL_D3_PEND_CLR D3 Pend Clear Source - * @{ - */ -#define LL_EXTI_D3_PEND_CLR_DMACH6 ((uint8_t)0x00U) /*!< DMA ch6 event selected as D3 domain pendclear source */ -#define LL_EXTI_D3_PEND_CLR_DMACH7 ((uint8_t)0x01U) /*!< DMA ch7 event selected as D3 domain pendclear source */ -#if defined (LPTIM4) -#define LL_EXTI_D3_PEND_CLR_LPTIM4 ((uint8_t)0x02U) /*!< LPTIM4 out selected as D3 domain pendclear source */ -#else -#define LL_EXTI_D3_PEND_CLR_LPTIM2 ((uint8_t)0x02U) /*!< LPTIM2 out selected as D3 domain pendclear source */ -#endif /*LPTIM4*/ -#if defined (LPTIM5) -#define LL_EXTI_D3_PEND_CLR_LPTIM5 ((uint8_t)0x03U) /*!< LPTIM5 out selected as D3 domain pendclear source */ -#else -#define LL_EXTI_D3_PEND_CLR_LPTIM3 ((uint8_t)0x02U) /*!< LPTIM3 out selected as D3 domain pendclear source */ -#endif /*LPTIM5*/ -/** - * @} - */ - - -#endif /*USE_FULL_LL_DRIVER*/ - - -/** - * @} - */ - -/* Exported macro ------------------------------------------------------------*/ -/** @defgroup EXTI_LL_Exported_Macros EXTI Exported Macros - * @{ - */ - -/** @defgroup EXTI_LL_EM_WRITE_READ Common Write and read registers Macros - * @{ - */ - -/** - * @brief Write a value in EXTI register - * @param __REG__ Register to be written - * @param __VALUE__ Value to be written in the register - * @retval None - */ -#define LL_EXTI_WriteReg(__REG__, __VALUE__) WRITE_REG(EXTI->__REG__, (__VALUE__)) - -/** - * @brief Read a value in EXTI register - * @param __REG__ Register to be read - * @retval Register value - */ -#define LL_EXTI_ReadReg(__REG__) READ_REG(EXTI->__REG__) - -/** - * @} - */ - - -/** - * @} - */ - - - -/* Exported functions --------------------------------------------------------*/ -/** @defgroup EXTI_LL_Exported_Functions EXTI Exported Functions - * @{ - */ -/** @defgroup EXTI_LL_EF_IT_Management IT_Management - * @{ - */ - -/** - * @brief Enable ExtiLine Interrupt request for Lines in range 0 to 31 - * @rmtoll IMR1 IMx LL_EXTI_EnableIT_0_31 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @arg @ref LL_EXTI_LINE_16 - * @arg @ref LL_EXTI_LINE_17 - * @arg @ref LL_EXTI_LINE_18 - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @arg @ref LL_EXTI_LINE_22 - * @arg @ref LL_EXTI_LINE_23 - * @arg @ref LL_EXTI_LINE_24 - * @arg @ref LL_EXTI_LINE_25 - * @arg @ref LL_EXTI_LINE_26 - * @arg @ref LL_EXTI_LINE_27 - * @arg @ref LL_EXTI_LINE_28 - * @arg @ref LL_EXTI_LINE_29 - * @arg @ref LL_EXTI_LINE_30 - * @arg @ref LL_EXTI_LINE_31 - * @arg @ref LL_EXTI_LINE_ALL_0_31 - * @retval None - */ -__STATIC_INLINE void LL_EXTI_EnableIT_0_31(uint32_t ExtiLine) -{ - SET_BIT(EXTI->IMR1, ExtiLine); -} - -/** - * @brief Enable ExtiLine Interrupt request for Lines in range 32 to 63 - * @rmtoll IMR2 IMx LL_EXTI_EnableIT_32_63 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_32 - * @arg @ref LL_EXTI_LINE_33 - * @arg @ref LL_EXTI_LINE_34 - * @arg @ref LL_EXTI_LINE_35 - * @arg @ref LL_EXTI_LINE_36 - * @arg @ref LL_EXTI_LINE_37 - * @arg @ref LL_EXTI_LINE_38 - * @arg @ref LL_EXTI_LINE_39 - * @arg @ref LL_EXTI_LINE_40 - * @arg @ref LL_EXTI_LINE_41 - * @arg @ref LL_EXTI_LINE_42 - * @arg @ref LL_EXTI_LINE_43 - * @arg @ref LL_EXTI_LINE_44 (*) - * @arg @ref LL_EXTI_LINE_46 (*) - * @arg @ref LL_EXTI_LINE_47 - * @arg @ref LL_EXTI_LINE_48 - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_50 - * @arg @ref LL_EXTI_LINE_51 - * @arg @ref LL_EXTI_LINE_52 - * @arg @ref LL_EXTI_LINE_53 - * @arg @ref LL_EXTI_LINE_54 - * @arg @ref LL_EXTI_LINE_55 - * @arg @ref LL_EXTI_LINE_56 - * @arg @ref LL_EXTI_LINE_57 (*) - * @arg @ref LL_EXTI_LINE_58 - * @arg @ref LL_EXTI_LINE_59 (*) - * @arg @ref LL_EXTI_LINE_60 - * @arg @ref LL_EXTI_LINE_61 - * @arg @ref LL_EXTI_LINE_62 - * @arg @ref LL_EXTI_LINE_63 - * @arg @ref LL_EXTI_LINE_ALL_32_63 - * - * (*) value not defined in all devices. - * @retval None - */ -__STATIC_INLINE void LL_EXTI_EnableIT_32_63(uint32_t ExtiLine) -{ - SET_BIT(EXTI->IMR2, ExtiLine); -} - - -/** - * @brief Enable ExtiLine Interrupt request for Lines in range 64 to 95 - * @rmtoll IMR3 IMx LL_EXTI_EnableIT_64_95 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_64 - * @arg @ref LL_EXTI_LINE_65 - * @arg @ref LL_EXTI_LINE_66 - * @arg @ref LL_EXTI_LINE_67 - * @arg @ref LL_EXTI_LINE_68 - * @arg @ref LL_EXTI_LINE_69 - * @arg @ref LL_EXTI_LINE_70 - * @arg @ref LL_EXTI_LINE_71 - * @arg @ref LL_EXTI_LINE_72 - * @arg @ref LL_EXTI_LINE_73 - * @arg @ref LL_EXTI_LINE_74 - * @arg @ref LL_EXTI_LINE_75 (*) - * @arg @ref LL_EXTI_LINE_76 (*) - * @arg @ref LL_EXTI_LINE_77 (**) - * @arg @ref LL_EXTI_LINE_78 (**) - * @arg @ref LL_EXTI_LINE_79 (**) - * @arg @ref LL_EXTI_LINE_80 (**) - * @arg @ref LL_EXTI_LINE_82 (**) - * @arg @ref LL_EXTI_LINE_84 (**) - * @arg @ref LL_EXTI_LINE_85 - * @arg @ref LL_EXTI_LINE_86 (*) - * @arg @ref LL_EXTI_LINE_87 - * @arg @ref LL_EXTI_LINE_88 (*) - * @arg @ref LL_EXTI_LINE_89 (*) - * @arg @ref LL_EXTI_LINE_90 (*) - * @arg @ref LL_EXTI_LINE_91 (*) - * @arg @ref LL_EXTI_LINE_ALL_64_95 - * - * (*) value not defined in all devices. - * (**) value only defined in dual core devices. - * @retval None - */ -__STATIC_INLINE void LL_EXTI_EnableIT_64_95(uint32_t ExtiLine) -{ - SET_BIT(EXTI->IMR3, ExtiLine); -} - - -/** - * @brief Disable ExtiLine Interrupt request for Lines in range 0 to 31 - * @rmtoll IMR1 IMx LL_EXTI_DisableIT_0_31 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @arg @ref LL_EXTI_LINE_16 - * @arg @ref LL_EXTI_LINE_17 - * @arg @ref LL_EXTI_LINE_18 - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @arg @ref LL_EXTI_LINE_22 - * @arg @ref LL_EXTI_LINE_23 - * @arg @ref LL_EXTI_LINE_24 - * @arg @ref LL_EXTI_LINE_25 - * @arg @ref LL_EXTI_LINE_26 - * @arg @ref LL_EXTI_LINE_27 - * @arg @ref LL_EXTI_LINE_28 - * @arg @ref LL_EXTI_LINE_29 - * @arg @ref LL_EXTI_LINE_30 - * @arg @ref LL_EXTI_LINE_31 - * @arg @ref LL_EXTI_LINE_ALL_0_31 - * @retval None - */ -__STATIC_INLINE void LL_EXTI_DisableIT_0_31(uint32_t ExtiLine) -{ - CLEAR_BIT(EXTI->IMR1, ExtiLine); -} - - -/** - * @brief Disable ExtiLine Interrupt request for Lines in range 32 to 63 - * @rmtoll IMR2 IMx LL_EXTI_DisableIT_32_63 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_32 - * @arg @ref LL_EXTI_LINE_33 - * @arg @ref LL_EXTI_LINE_34 - * @arg @ref LL_EXTI_LINE_35 - * @arg @ref LL_EXTI_LINE_36 - * @arg @ref LL_EXTI_LINE_37 - * @arg @ref LL_EXTI_LINE_38 - * @arg @ref LL_EXTI_LINE_39 - * @arg @ref LL_EXTI_LINE_40 - * @arg @ref LL_EXTI_LINE_41 - * @arg @ref LL_EXTI_LINE_42 - * @arg @ref LL_EXTI_LINE_43 - * @arg @ref LL_EXTI_LINE_44 (*) - * @arg @ref LL_EXTI_LINE_46 (*) - * @arg @ref LL_EXTI_LINE_47 - * @arg @ref LL_EXTI_LINE_48 - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_50 - * @arg @ref LL_EXTI_LINE_51 - * @arg @ref LL_EXTI_LINE_52 - * @arg @ref LL_EXTI_LINE_53 - * @arg @ref LL_EXTI_LINE_54 - * @arg @ref LL_EXTI_LINE_55 - * @arg @ref LL_EXTI_LINE_56 - * @arg @ref LL_EXTI_LINE_57 (*) - * @arg @ref LL_EXTI_LINE_58 - * @arg @ref LL_EXTI_LINE_59 (*) - * @arg @ref LL_EXTI_LINE_60 - * @arg @ref LL_EXTI_LINE_61 - * @arg @ref LL_EXTI_LINE_62 - * @arg @ref LL_EXTI_LINE_63 - * @arg @ref LL_EXTI_LINE_ALL_32_63 - * - * (*) value not defined in all devices. - * @retval None - */ -__STATIC_INLINE void LL_EXTI_DisableIT_32_63(uint32_t ExtiLine) -{ - CLEAR_BIT(EXTI->IMR2, ExtiLine); -} - -/** - * @brief Disable ExtiLine Interrupt request for Lines in range 64 to 95 - * @rmtoll IMR3 IMx LL_EXTI_DisableIT_64_95 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_64 - * @arg @ref LL_EXTI_LINE_65 - * @arg @ref LL_EXTI_LINE_66 - * @arg @ref LL_EXTI_LINE_67 - * @arg @ref LL_EXTI_LINE_68 - * @arg @ref LL_EXTI_LINE_69 - * @arg @ref LL_EXTI_LINE_70 - * @arg @ref LL_EXTI_LINE_71 - * @arg @ref LL_EXTI_LINE_72 - * @arg @ref LL_EXTI_LINE_73 - * @arg @ref LL_EXTI_LINE_74 - * @arg @ref LL_EXTI_LINE_75 (*) - * @arg @ref LL_EXTI_LINE_76 (*) - * @arg @ref LL_EXTI_LINE_77 (**) - * @arg @ref LL_EXTI_LINE_78 (**) - * @arg @ref LL_EXTI_LINE_79 (**) - * @arg @ref LL_EXTI_LINE_80 (**) - * @arg @ref LL_EXTI_LINE_82 (**) - * @arg @ref LL_EXTI_LINE_84 (**) - * @arg @ref LL_EXTI_LINE_85 - * @arg @ref LL_EXTI_LINE_86 (*) - * @arg @ref LL_EXTI_LINE_87 - * @arg @ref LL_EXTI_LINE_88 (*) - * @arg @ref LL_EXTI_LINE_89 (*) - * @arg @ref LL_EXTI_LINE_90 (*) - * @arg @ref LL_EXTI_LINE_91 (*) - * @arg @ref LL_EXTI_LINE_ALL_64_95 - * - * (*) value not defined in all devices. - * (**) value only defined in dual core devices. - * @retval None - */ -__STATIC_INLINE void LL_EXTI_DisableIT_64_95(uint32_t ExtiLine) -{ - CLEAR_BIT(EXTI->IMR3, ExtiLine); -} - - -/** - * @brief Indicate if ExtiLine Interrupt request is enabled for Lines in range 0 to 31 - * @rmtoll IMR1 IMx LL_EXTI_IsEnabledIT_0_31 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @arg @ref LL_EXTI_LINE_16 - * @arg @ref LL_EXTI_LINE_17 - * @arg @ref LL_EXTI_LINE_18 - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @arg @ref LL_EXTI_LINE_22 - * @arg @ref LL_EXTI_LINE_23 - * @arg @ref LL_EXTI_LINE_24 - * @arg @ref LL_EXTI_LINE_25 - * @arg @ref LL_EXTI_LINE_26 - * @arg @ref LL_EXTI_LINE_27 - * @arg @ref LL_EXTI_LINE_28 - * @arg @ref LL_EXTI_LINE_29 - * @arg @ref LL_EXTI_LINE_30 - * @arg @ref LL_EXTI_LINE_31 - * @arg @ref LL_EXTI_LINE_ALL_0_31 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_EXTI_IsEnabledIT_0_31(uint32_t ExtiLine) -{ - return ((READ_BIT(EXTI->IMR1, ExtiLine) == (ExtiLine)) ? 1U : 0U); -} - - -/** - * @brief Indicate if ExtiLine Interrupt request is enabled for Lines in range 32 to 63 - * @rmtoll IMR2 IMx LL_EXTI_IsEnabledIT_32_63 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_32 - * @arg @ref LL_EXTI_LINE_33 - * @arg @ref LL_EXTI_LINE_34 - * @arg @ref LL_EXTI_LINE_35 - * @arg @ref LL_EXTI_LINE_36 - * @arg @ref LL_EXTI_LINE_37 - * @arg @ref LL_EXTI_LINE_38 - * @arg @ref LL_EXTI_LINE_39 - * @arg @ref LL_EXTI_LINE_40 - * @arg @ref LL_EXTI_LINE_41 - * @arg @ref LL_EXTI_LINE_42 - * @arg @ref LL_EXTI_LINE_43 - * @arg @ref LL_EXTI_LINE_44 (*) - * @arg @ref LL_EXTI_LINE_46 (*) - * @arg @ref LL_EXTI_LINE_47 - * @arg @ref LL_EXTI_LINE_48 - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_50 - * @arg @ref LL_EXTI_LINE_51 - * @arg @ref LL_EXTI_LINE_52 - * @arg @ref LL_EXTI_LINE_53 - * @arg @ref LL_EXTI_LINE_54 - * @arg @ref LL_EXTI_LINE_55 - * @arg @ref LL_EXTI_LINE_56 - * @arg @ref LL_EXTI_LINE_57 (*) - * @arg @ref LL_EXTI_LINE_58 - * @arg @ref LL_EXTI_LINE_59 (*) - * @arg @ref LL_EXTI_LINE_60 - * @arg @ref LL_EXTI_LINE_61 - * @arg @ref LL_EXTI_LINE_62 - * @arg @ref LL_EXTI_LINE_63 - * @arg @ref LL_EXTI_LINE_ALL_32_63 - * - * (*) value not defined in all devices. - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_EXTI_IsEnabledIT_32_63(uint32_t ExtiLine) -{ - return ((READ_BIT(EXTI->IMR2, ExtiLine) == (ExtiLine)) ? 1U : 0U); -} - - -/** - * @brief Indicate if ExtiLine Interrupt request is enabled for Lines in range 64 to 95 - * @rmtoll IMR3 IMx LL_EXTI_IsEnabledIT_64_95 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_64 - * @arg @ref LL_EXTI_LINE_65 - * @arg @ref LL_EXTI_LINE_66 - * @arg @ref LL_EXTI_LINE_67 - * @arg @ref LL_EXTI_LINE_68 - * @arg @ref LL_EXTI_LINE_69 - * @arg @ref LL_EXTI_LINE_70 - * @arg @ref LL_EXTI_LINE_71 - * @arg @ref LL_EXTI_LINE_72 - * @arg @ref LL_EXTI_LINE_73 - * @arg @ref LL_EXTI_LINE_74 - * @arg @ref LL_EXTI_LINE_75 (*) - * @arg @ref LL_EXTI_LINE_76 (*) - * @arg @ref LL_EXTI_LINE_77 (**) - * @arg @ref LL_EXTI_LINE_78 (**) - * @arg @ref LL_EXTI_LINE_79 (**) - * @arg @ref LL_EXTI_LINE_80 (**) - * @arg @ref LL_EXTI_LINE_82 (**) - * @arg @ref LL_EXTI_LINE_84 (**) - * @arg @ref LL_EXTI_LINE_85 - * @arg @ref LL_EXTI_LINE_86 (*) - * @arg @ref LL_EXTI_LINE_87 - * @arg @ref LL_EXTI_LINE_88 (*) - * @arg @ref LL_EXTI_LINE_89 (*) - * @arg @ref LL_EXTI_LINE_90 (*) - * @arg @ref LL_EXTI_LINE_91 (*) - * @arg @ref LL_EXTI_LINE_ALL_64_95 - * - * (*) value not defined in all devices. - * (**) value only defined in dual core devices. - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_EXTI_IsEnabledIT_64_95(uint32_t ExtiLine) -{ - return ((READ_BIT(EXTI->IMR3, ExtiLine) == (ExtiLine)) ? 1U : 0U); -} - -#if defined(DUAL_CORE) -/** - * @brief Enable ExtiLine Interrupt request for Lines in range 0 to 31 for cpu2 - * @rmtoll C2IMR1 IMx LL_C2_EXTI_EnableIT_0_31 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @arg @ref LL_EXTI_LINE_16 - * @arg @ref LL_EXTI_LINE_17 - * @arg @ref LL_EXTI_LINE_18 - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @arg @ref LL_EXTI_LINE_22 - * @arg @ref LL_EXTI_LINE_23 - * @arg @ref LL_EXTI_LINE_24 - * @arg @ref LL_EXTI_LINE_25 - * @arg @ref LL_EXTI_LINE_26 - * @arg @ref LL_EXTI_LINE_27 - * @arg @ref LL_EXTI_LINE_28 - * @arg @ref LL_EXTI_LINE_29 - * @arg @ref LL_EXTI_LINE_30 - * @arg @ref LL_EXTI_LINE_31 - * @arg @ref LL_EXTI_LINE_ALL_0_31 - * @retval None - */ -__STATIC_INLINE void LL_C2_EXTI_EnableIT_0_31(uint32_t ExtiLine) -{ - SET_BIT(EXTI->C2IMR1, ExtiLine); -} - - -/** - * @brief Enable ExtiLine Interrupt request for Lines in range 32 to 63 for cpu2 - * @rmtoll C2IMR2 IMx LL_C2_EXTI_EnableIT_32_63 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_32 - * @arg @ref LL_EXTI_LINE_33 - * @arg @ref LL_EXTI_LINE_34 - * @arg @ref LL_EXTI_LINE_35 - * @arg @ref LL_EXTI_LINE_36 - * @arg @ref LL_EXTI_LINE_37 - * @arg @ref LL_EXTI_LINE_38 - * @arg @ref LL_EXTI_LINE_39 - * @arg @ref LL_EXTI_LINE_40 - * @arg @ref LL_EXTI_LINE_41 - * @arg @ref LL_EXTI_LINE_42 - * @arg @ref LL_EXTI_LINE_43 - * @arg @ref LL_EXTI_LINE_44 - * @arg @ref LL_EXTI_LINE_46 - * @arg @ref LL_EXTI_LINE_47 - * @arg @ref LL_EXTI_LINE_48 - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_50 - * @arg @ref LL_EXTI_LINE_51 - * @arg @ref LL_EXTI_LINE_52 - * @arg @ref LL_EXTI_LINE_53 - * @arg @ref LL_EXTI_LINE_54 - * @arg @ref LL_EXTI_LINE_55 - * @arg @ref LL_EXTI_LINE_56 - * @arg @ref LL_EXTI_LINE_57 - * @arg @ref LL_EXTI_LINE_58 - * @arg @ref LL_EXTI_LINE_59 - * @arg @ref LL_EXTI_LINE_60 - * @arg @ref LL_EXTI_LINE_61 - * @arg @ref LL_EXTI_LINE_62 - * @arg @ref LL_EXTI_LINE_63 - * @arg @ref LL_EXTI_LINE_ALL_32_63 - * @retval None - */ -__STATIC_INLINE void LL_C2_EXTI_EnableIT_32_63(uint32_t ExtiLine) -{ - SET_BIT(EXTI->C2IMR2, ExtiLine); -} - - -/** - * @brief Enable ExtiLine Interrupt request for Lines in range 64 to 95 - * @rmtoll C2IMR3 IMx LL_C2_EXTI_EnableIT_64_95 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_64 - * @arg @ref LL_EXTI_LINE_65 - * @arg @ref LL_EXTI_LINE_66 - * @arg @ref LL_EXTI_LINE_67 - * @arg @ref LL_EXTI_LINE_68 - * @arg @ref LL_EXTI_LINE_69 - * @arg @ref LL_EXTI_LINE_70 - * @arg @ref LL_EXTI_LINE_71 - * @arg @ref LL_EXTI_LINE_72 - * @arg @ref LL_EXTI_LINE_73 - * @arg @ref LL_EXTI_LINE_74 - * @arg @ref LL_EXTI_LINE_75 - * @arg @ref LL_EXTI_LINE_76 - * @arg @ref LL_EXTI_LINE_77 - * @arg @ref LL_EXTI_LINE_78 - * @arg @ref LL_EXTI_LINE_79 - * @arg @ref LL_EXTI_LINE_80 - * @arg @ref LL_EXTI_LINE_82 - * @arg @ref LL_EXTI_LINE_84 - * @arg @ref LL_EXTI_LINE_85 - * @arg @ref LL_EXTI_LINE_86 - * @arg @ref LL_EXTI_LINE_87 - * @arg @ref LL_EXTI_LINE_ALL_64_95 - * @retval None - */ -__STATIC_INLINE void LL_C2_EXTI_EnableIT_64_95(uint32_t ExtiLine) -{ - SET_BIT(EXTI->C2IMR3, ExtiLine); -} - - -/** - * @brief Disable ExtiLine Interrupt request for Lines in range 0 to 31 for cpu2 - * @rmtoll C2IMR1 IMx LL_C2_EXTI_DisableIT_0_31 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @arg @ref LL_EXTI_LINE_16 - * @arg @ref LL_EXTI_LINE_17 - * @arg @ref LL_EXTI_LINE_18 - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @arg @ref LL_EXTI_LINE_22 - * @arg @ref LL_EXTI_LINE_23 - * @arg @ref LL_EXTI_LINE_24 - * @arg @ref LL_EXTI_LINE_25 - * @arg @ref LL_EXTI_LINE_26 - * @arg @ref LL_EXTI_LINE_27 - * @arg @ref LL_EXTI_LINE_28 - * @arg @ref LL_EXTI_LINE_29 - * @arg @ref LL_EXTI_LINE_30 - * @arg @ref LL_EXTI_LINE_31 - * @arg @ref LL_EXTI_LINE_ALL_0_31 - * @retval None - */ -__STATIC_INLINE void LL_C2_EXTI_DisableIT_0_31(uint32_t ExtiLine) -{ - CLEAR_BIT(EXTI->C2IMR1, ExtiLine); -} - - - -/** - * @brief Disable ExtiLine Interrupt request for Lines in range 32 to 63 for cpu2 - * @rmtoll C2IMR2 IMx LL_C2_EXTI_DisableIT_32_63 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_32 - * @arg @ref LL_EXTI_LINE_33 - * @arg @ref LL_EXTI_LINE_34 - * @arg @ref LL_EXTI_LINE_35 - * @arg @ref LL_EXTI_LINE_36 - * @arg @ref LL_EXTI_LINE_37 - * @arg @ref LL_EXTI_LINE_38 - * @arg @ref LL_EXTI_LINE_39 - * @arg @ref LL_EXTI_LINE_40 - * @arg @ref LL_EXTI_LINE_41 - * @arg @ref LL_EXTI_LINE_42 - * @arg @ref LL_EXTI_LINE_43 - * @arg @ref LL_EXTI_LINE_44 - * @arg @ref LL_EXTI_LINE_46 - * @arg @ref LL_EXTI_LINE_47 - * @arg @ref LL_EXTI_LINE_48 - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_50 - * @arg @ref LL_EXTI_LINE_51 - * @arg @ref LL_EXTI_LINE_52 - * @arg @ref LL_EXTI_LINE_53 - * @arg @ref LL_EXTI_LINE_54 - * @arg @ref LL_EXTI_LINE_55 - * @arg @ref LL_EXTI_LINE_56 - * @arg @ref LL_EXTI_LINE_57 - * @arg @ref LL_EXTI_LINE_58 - * @arg @ref LL_EXTI_LINE_59 - * @arg @ref LL_EXTI_LINE_60 - * @arg @ref LL_EXTI_LINE_61 - * @arg @ref LL_EXTI_LINE_62 - * @arg @ref LL_EXTI_LINE_63 - * @arg @ref LL_EXTI_LINE_ALL_32_63 - * @retval None - */ -__STATIC_INLINE void LL_C2_EXTI_DisableIT_32_63(uint32_t ExtiLine) -{ - CLEAR_BIT(EXTI->C2IMR2, ExtiLine); -} - - -/** - * @brief Disable ExtiLine Interrupt request for Lines in range 64 to 95 for cpu2 - * @rmtoll C2IMR3 IMx LL_C2_EXTI_DisableIT_64_95 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_64 - * @arg @ref LL_EXTI_LINE_65 - * @arg @ref LL_EXTI_LINE_66 - * @arg @ref LL_EXTI_LINE_67 - * @arg @ref LL_EXTI_LINE_68 - * @arg @ref LL_EXTI_LINE_69 - * @arg @ref LL_EXTI_LINE_70 - * @arg @ref LL_EXTI_LINE_71 - * @arg @ref LL_EXTI_LINE_72 - * @arg @ref LL_EXTI_LINE_73 - * @arg @ref LL_EXTI_LINE_74 - * @arg @ref LL_EXTI_LINE_75 - * @arg @ref LL_EXTI_LINE_76 - * @arg @ref LL_EXTI_LINE_77 - * @arg @ref LL_EXTI_LINE_78 - * @arg @ref LL_EXTI_LINE_79 - * @arg @ref LL_EXTI_LINE_80 - * @arg @ref LL_EXTI_LINE_82 - * @arg @ref LL_EXTI_LINE_84 - * @arg @ref LL_EXTI_LINE_85 - * @arg @ref LL_EXTI_LINE_86 - * @arg @ref LL_EXTI_LINE_87 - * @arg @ref LL_EXTI_LINE_ALL_64_95 - * @retval None - */ -__STATIC_INLINE void LL_C2_EXTI_DisableIT_64_95(uint32_t ExtiLine) -{ - CLEAR_BIT(EXTI->C2IMR3, ExtiLine); -} - - -/** - * @brief Indicate if ExtiLine Interrupt request is enabled for Lines in range 0 to 31 for cpu2 - * @rmtoll C2IMR1 IMx LL_C2_EXTI_IsEnabledIT_0_31 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @arg @ref LL_EXTI_LINE_16 - * @arg @ref LL_EXTI_LINE_17 - * @arg @ref LL_EXTI_LINE_18 - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @arg @ref LL_EXTI_LINE_22 - * @arg @ref LL_EXTI_LINE_23 - * @arg @ref LL_EXTI_LINE_24 - * @arg @ref LL_EXTI_LINE_25 - * @arg @ref LL_EXTI_LINE_26 - * @arg @ref LL_EXTI_LINE_27 - * @arg @ref LL_EXTI_LINE_28 - * @arg @ref LL_EXTI_LINE_29 - * @arg @ref LL_EXTI_LINE_30 - * @arg @ref LL_EXTI_LINE_31 - * @arg @ref LL_EXTI_LINE_ALL_0_31 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C2_EXTI_IsEnabledIT_0_31(uint32_t ExtiLine) -{ - return ((READ_BIT(EXTI->C2IMR1, ExtiLine) == (ExtiLine)) ? 1U : 0U); -} - - -/** - * @brief Indicate if ExtiLine Interrupt request is enabled for Lines in range 32 to 63 for cpu2 - * @rmtoll C2IMR2 IMx LL_C2_EXTI_IsEnabledIT_32_63 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_32 - * @arg @ref LL_EXTI_LINE_33 - * @arg @ref LL_EXTI_LINE_34 - * @arg @ref LL_EXTI_LINE_35 - * @arg @ref LL_EXTI_LINE_36 - * @arg @ref LL_EXTI_LINE_37 - * @arg @ref LL_EXTI_LINE_38 - * @arg @ref LL_EXTI_LINE_39 - * @arg @ref LL_EXTI_LINE_40 - * @arg @ref LL_EXTI_LINE_41 - * @arg @ref LL_EXTI_LINE_42 - * @arg @ref LL_EXTI_LINE_43 - * @arg @ref LL_EXTI_LINE_44 - * @arg @ref LL_EXTI_LINE_46 - * @arg @ref LL_EXTI_LINE_47 - * @arg @ref LL_EXTI_LINE_48 - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_50 - * @arg @ref LL_EXTI_LINE_51 - * @arg @ref LL_EXTI_LINE_52 - * @arg @ref LL_EXTI_LINE_53 - * @arg @ref LL_EXTI_LINE_54 - * @arg @ref LL_EXTI_LINE_55 - * @arg @ref LL_EXTI_LINE_56 - * @arg @ref LL_EXTI_LINE_57 - * @arg @ref LL_EXTI_LINE_58 - * @arg @ref LL_EXTI_LINE_59 - * @arg @ref LL_EXTI_LINE_60 - * @arg @ref LL_EXTI_LINE_61 - * @arg @ref LL_EXTI_LINE_62 - * @arg @ref LL_EXTI_LINE_63 - * @arg @ref LL_EXTI_LINE_ALL_32_63 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C2_EXTI_IsEnabledIT_32_63(uint32_t ExtiLine) -{ - return ((READ_BIT(EXTI->C2IMR2, ExtiLine) == (ExtiLine))? 1U : 0U); -} - - -/** - * @brief Indicate if ExtiLine Interrupt request is enabled for Lines in range 64 to 95 - * @rmtoll C2IMR3 IMx LL_C2_EXTI_IsEnabledIT_64_95 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_64 - * @arg @ref LL_EXTI_LINE_65 - * @arg @ref LL_EXTI_LINE_66 - * @arg @ref LL_EXTI_LINE_67 - * @arg @ref LL_EXTI_LINE_68 - * @arg @ref LL_EXTI_LINE_69 - * @arg @ref LL_EXTI_LINE_70 - * @arg @ref LL_EXTI_LINE_71 - * @arg @ref LL_EXTI_LINE_72 - * @arg @ref LL_EXTI_LINE_73 - * @arg @ref LL_EXTI_LINE_74 - * @arg @ref LL_EXTI_LINE_75 - * @arg @ref LL_EXTI_LINE_76 - * @arg @ref LL_EXTI_LINE_77 - * @arg @ref LL_EXTI_LINE_78 - * @arg @ref LL_EXTI_LINE_79 - * @arg @ref LL_EXTI_LINE_80 - * @arg @ref LL_EXTI_LINE_82 - * @arg @ref LL_EXTI_LINE_84 - * @arg @ref LL_EXTI_LINE_85 - * @arg @ref LL_EXTI_LINE_86 - * @arg @ref LL_EXTI_LINE_87 - * @arg @ref LL_EXTI_LINE_ALL_64_95 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C2_EXTI_IsEnabledIT_64_95(uint32_t ExtiLine) -{ - return ((READ_BIT(EXTI->C2IMR3, ExtiLine) == (ExtiLine)) ? 1U : 0U); -} - -#endif /* DUAL_CORE */ - - -/** - * @} - */ - -/** @defgroup EXTI_LL_EF_Event_Management Event_Management - * @{ - */ - -/** - * @brief Enable ExtiLine Event request for Lines in range 0 to 31 - * @rmtoll EMR1 EMx LL_EXTI_EnableEvent_0_31 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @arg @ref LL_EXTI_LINE_16 - * @arg @ref LL_EXTI_LINE_17 - * @arg @ref LL_EXTI_LINE_18 - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @arg @ref LL_EXTI_LINE_22 - * @arg @ref LL_EXTI_LINE_23 - * @arg @ref LL_EXTI_LINE_24 - * @arg @ref LL_EXTI_LINE_25 - * @arg @ref LL_EXTI_LINE_26 - * @arg @ref LL_EXTI_LINE_27 - * @arg @ref LL_EXTI_LINE_28 - * @arg @ref LL_EXTI_LINE_29 - * @arg @ref LL_EXTI_LINE_30 - * @arg @ref LL_EXTI_LINE_31 - * @arg @ref LL_EXTI_LINE_ALL_0_31 - * @retval None - */ -__STATIC_INLINE void LL_EXTI_EnableEvent_0_31(uint32_t ExtiLine) -{ - SET_BIT(EXTI->EMR1, ExtiLine); -} - -/** - * @brief Enable ExtiLine Event request for Lines in range 32 to 63 - * @rmtoll EMR2 EMx LL_EXTI_EnableEvent_32_63 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_32 - * @arg @ref LL_EXTI_LINE_33 - * @arg @ref LL_EXTI_LINE_34 - * @arg @ref LL_EXTI_LINE_35 - * @arg @ref LL_EXTI_LINE_36 - * @arg @ref LL_EXTI_LINE_37 - * @arg @ref LL_EXTI_LINE_38 - * @arg @ref LL_EXTI_LINE_39 - * @arg @ref LL_EXTI_LINE_40 - * @arg @ref LL_EXTI_LINE_41 - * @arg @ref LL_EXTI_LINE_42 - * @arg @ref LL_EXTI_LINE_43 - * @arg @ref LL_EXTI_LINE_44 (*) - * @arg @ref LL_EXTI_LINE_46 (*) - * @arg @ref LL_EXTI_LINE_47 - * @arg @ref LL_EXTI_LINE_48 - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_50 - * @arg @ref LL_EXTI_LINE_51 - * @arg @ref LL_EXTI_LINE_52 - * @arg @ref LL_EXTI_LINE_53 - * @arg @ref LL_EXTI_LINE_54 - * @arg @ref LL_EXTI_LINE_55 - * @arg @ref LL_EXTI_LINE_56 - * @arg @ref LL_EXTI_LINE_57 (*) - * @arg @ref LL_EXTI_LINE_58 - * @arg @ref LL_EXTI_LINE_59 (*) - * @arg @ref LL_EXTI_LINE_60 - * @arg @ref LL_EXTI_LINE_61 - * @arg @ref LL_EXTI_LINE_62 - * @arg @ref LL_EXTI_LINE_63 - * @arg @ref LL_EXTI_LINE_ALL_32_63 - * - * (*) value not defined in all devices. - * @retval None - */ -__STATIC_INLINE void LL_EXTI_EnableEvent_32_63(uint32_t ExtiLine) -{ - SET_BIT(EXTI->EMR2, ExtiLine); -} - -/** - * @brief Enable ExtiLine Event request for Lines in range 64 to 95 - * @rmtoll EMR3 EMx LL_EXTI_EnableEvent_64_95 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_64 - * @arg @ref LL_EXTI_LINE_65 - * @arg @ref LL_EXTI_LINE_66 - * @arg @ref LL_EXTI_LINE_67 - * @arg @ref LL_EXTI_LINE_68 - * @arg @ref LL_EXTI_LINE_69 - * @arg @ref LL_EXTI_LINE_70 - * @arg @ref LL_EXTI_LINE_71 - * @arg @ref LL_EXTI_LINE_72 - * @arg @ref LL_EXTI_LINE_73 - * @arg @ref LL_EXTI_LINE_74 - * @arg @ref LL_EXTI_LINE_75 (*) - * @arg @ref LL_EXTI_LINE_76 (*) - * @arg @ref LL_EXTI_LINE_77 (**) - * @arg @ref LL_EXTI_LINE_78 (**) - * @arg @ref LL_EXTI_LINE_79 (**) - * @arg @ref LL_EXTI_LINE_80 (**) - * @arg @ref LL_EXTI_LINE_82 (**) - * @arg @ref LL_EXTI_LINE_84 (**) - * @arg @ref LL_EXTI_LINE_85 - * @arg @ref LL_EXTI_LINE_86 (*) - * @arg @ref LL_EXTI_LINE_87 - * @arg @ref LL_EXTI_LINE_88 (*) - * @arg @ref LL_EXTI_LINE_89 (*) - * @arg @ref LL_EXTI_LINE_90 (*) - * @arg @ref LL_EXTI_LINE_91 (*) - * @arg @ref LL_EXTI_LINE_ALL_64_95 - * - * (*) value not defined in all devices. - * (**) value only defined in dual core devices. - * @retval None - */ -__STATIC_INLINE void LL_EXTI_EnableEvent_64_95(uint32_t ExtiLine) -{ - SET_BIT(EXTI->EMR3, ExtiLine); -} - -/** - * @brief Disable ExtiLine Event request for Lines in range 0 to 31 - * @rmtoll EMR1 EMx LL_EXTI_DisableEvent_0_31 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @arg @ref LL_EXTI_LINE_16 - * @arg @ref LL_EXTI_LINE_17 - * @arg @ref LL_EXTI_LINE_18 - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @arg @ref LL_EXTI_LINE_22 - * @arg @ref LL_EXTI_LINE_23 - * @arg @ref LL_EXTI_LINE_24 - * @arg @ref LL_EXTI_LINE_25 - * @arg @ref LL_EXTI_LINE_26 - * @arg @ref LL_EXTI_LINE_27 - * @arg @ref LL_EXTI_LINE_28 - * @arg @ref LL_EXTI_LINE_29 - * @arg @ref LL_EXTI_LINE_30 - * @arg @ref LL_EXTI_LINE_31 - * @arg @ref LL_EXTI_LINE_ALL_0_31 - * @retval None - */ -__STATIC_INLINE void LL_EXTI_DisableEvent_0_31(uint32_t ExtiLine) -{ - CLEAR_BIT(EXTI->EMR1, ExtiLine); -} - -/** - * @brief Disable ExtiLine Event request for Lines in range 32 to 63 - * @rmtoll EMR2 EMx LL_EXTI_DisableEvent_32_63 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_32 - * @arg @ref LL_EXTI_LINE_33 - * @arg @ref LL_EXTI_LINE_34 - * @arg @ref LL_EXTI_LINE_35 - * @arg @ref LL_EXTI_LINE_36 - * @arg @ref LL_EXTI_LINE_37 - * @arg @ref LL_EXTI_LINE_38 - * @arg @ref LL_EXTI_LINE_39 - * @arg @ref LL_EXTI_LINE_40 - * @arg @ref LL_EXTI_LINE_41 - * @arg @ref LL_EXTI_LINE_42 - * @arg @ref LL_EXTI_LINE_43 - * @arg @ref LL_EXTI_LINE_44 (*) - * @arg @ref LL_EXTI_LINE_46 (*) - * @arg @ref LL_EXTI_LINE_47 - * @arg @ref LL_EXTI_LINE_48 - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_50 - * @arg @ref LL_EXTI_LINE_51 - * @arg @ref LL_EXTI_LINE_52 - * @arg @ref LL_EXTI_LINE_53 - * @arg @ref LL_EXTI_LINE_54 - * @arg @ref LL_EXTI_LINE_55 - * @arg @ref LL_EXTI_LINE_56 - * @arg @ref LL_EXTI_LINE_57 (*) - * @arg @ref LL_EXTI_LINE_58 - * @arg @ref LL_EXTI_LINE_59 (*) - * @arg @ref LL_EXTI_LINE_60 - * @arg @ref LL_EXTI_LINE_61 - * @arg @ref LL_EXTI_LINE_62 - * @arg @ref LL_EXTI_LINE_63 - * @arg @ref LL_EXTI_LINE_ALL_32_63 - * - * (*) value not defined in all devices. - * @retval None - */ -__STATIC_INLINE void LL_EXTI_DisableEvent_32_63(uint32_t ExtiLine) -{ - CLEAR_BIT(EXTI->EMR2, ExtiLine); -} - -/** - * @brief Disable ExtiLine Event request for Lines in range 64 to 95 - * @rmtoll EMR3 EMx LL_EXTI_DisableEvent_64_95 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_64 - * @arg @ref LL_EXTI_LINE_65 - * @arg @ref LL_EXTI_LINE_66 - * @arg @ref LL_EXTI_LINE_67 - * @arg @ref LL_EXTI_LINE_68 - * @arg @ref LL_EXTI_LINE_69 - * @arg @ref LL_EXTI_LINE_70 - * @arg @ref LL_EXTI_LINE_71 - * @arg @ref LL_EXTI_LINE_72 - * @arg @ref LL_EXTI_LINE_73 - * @arg @ref LL_EXTI_LINE_74 - * @arg @ref LL_EXTI_LINE_75 (*) - * @arg @ref LL_EXTI_LINE_76 (*) - * @arg @ref LL_EXTI_LINE_77 (**) - * @arg @ref LL_EXTI_LINE_78 (**) - * @arg @ref LL_EXTI_LINE_79 (**) - * @arg @ref LL_EXTI_LINE_80 (**) - * @arg @ref LL_EXTI_LINE_82 (**) - * @arg @ref LL_EXTI_LINE_84 (**) - * @arg @ref LL_EXTI_LINE_85 - * @arg @ref LL_EXTI_LINE_86 (*) - * @arg @ref LL_EXTI_LINE_87 - * @arg @ref LL_EXTI_LINE_88 (*) - * @arg @ref LL_EXTI_LINE_89 (*) - * @arg @ref LL_EXTI_LINE_90 (*) - * @arg @ref LL_EXTI_LINE_91 (*) - * @arg @ref LL_EXTI_LINE_ALL_64_95 - * - * (*) value not defined in all devices. - * (**) value only defined in dual core devices. - * @retval None - */ -__STATIC_INLINE void LL_EXTI_DisableEvent_64_95(uint32_t ExtiLine) -{ - CLEAR_BIT(EXTI->EMR3, ExtiLine); -} - -/** - * @brief Indicate if ExtiLine Event request is enabled for Lines in range 0 to 31 - * @rmtoll EMR1 EMx LL_EXTI_IsEnabledEvent_0_31 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @arg @ref LL_EXTI_LINE_16 - * @arg @ref LL_EXTI_LINE_17 - * @arg @ref LL_EXTI_LINE_18 - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @arg @ref LL_EXTI_LINE_22 - * @arg @ref LL_EXTI_LINE_23 - * @arg @ref LL_EXTI_LINE_24 - * @arg @ref LL_EXTI_LINE_25 - * @arg @ref LL_EXTI_LINE_26 - * @arg @ref LL_EXTI_LINE_27 - * @arg @ref LL_EXTI_LINE_28 - * @arg @ref LL_EXTI_LINE_29 - * @arg @ref LL_EXTI_LINE_30 - * @arg @ref LL_EXTI_LINE_31 - * @arg @ref LL_EXTI_LINE_ALL_0_31 - * @note Please check each device line mapping for EXTI Line availability - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_EXTI_IsEnabledEvent_0_31(uint32_t ExtiLine) -{ - return ((READ_BIT(EXTI->EMR1, ExtiLine) == (ExtiLine)) ? 1U : 0U); -} - -/** - * @brief Indicate if ExtiLine Event request is enabled for Lines in range 32 to 63 - * @rmtoll EMR2 EMx LL_EXTI_IsEnabledEvent_32_63 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_32 - * @arg @ref LL_EXTI_LINE_33 - * @arg @ref LL_EXTI_LINE_34 - * @arg @ref LL_EXTI_LINE_35 - * @arg @ref LL_EXTI_LINE_36 - * @arg @ref LL_EXTI_LINE_37 - * @arg @ref LL_EXTI_LINE_38 - * @arg @ref LL_EXTI_LINE_39 - * @arg @ref LL_EXTI_LINE_40 - * @arg @ref LL_EXTI_LINE_41 - * @arg @ref LL_EXTI_LINE_42 - * @arg @ref LL_EXTI_LINE_43 - * @arg @ref LL_EXTI_LINE_44 (*) - * @arg @ref LL_EXTI_LINE_46 (*) - * @arg @ref LL_EXTI_LINE_47 - * @arg @ref LL_EXTI_LINE_48 - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_50 - * @arg @ref LL_EXTI_LINE_51 - * @arg @ref LL_EXTI_LINE_52 - * @arg @ref LL_EXTI_LINE_53 - * @arg @ref LL_EXTI_LINE_54 - * @arg @ref LL_EXTI_LINE_55 - * @arg @ref LL_EXTI_LINE_56 - * @arg @ref LL_EXTI_LINE_57 (*) - * @arg @ref LL_EXTI_LINE_58 - * @arg @ref LL_EXTI_LINE_59 (*) - * @arg @ref LL_EXTI_LINE_60 - * @arg @ref LL_EXTI_LINE_61 - * @arg @ref LL_EXTI_LINE_62 - * @arg @ref LL_EXTI_LINE_63 - * @arg @ref LL_EXTI_LINE_ALL_32_63 - * - * (*) value not defined in all devices. - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_EXTI_IsEnabledEvent_32_63(uint32_t ExtiLine) -{ - return ((READ_BIT(EXTI->EMR2, ExtiLine) == (ExtiLine)) ? 1U : 0U); -} - -/** - * @brief Indicate if ExtiLine Event request is enabled for Lines in range 64 to 95 - * @rmtoll EMR3 EMx LL_EXTI_IsEnabledEvent_64_95 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_64 - * @arg @ref LL_EXTI_LINE_65 - * @arg @ref LL_EXTI_LINE_66 - * @arg @ref LL_EXTI_LINE_67 - * @arg @ref LL_EXTI_LINE_68 - * @arg @ref LL_EXTI_LINE_69 - * @arg @ref LL_EXTI_LINE_70 - * @arg @ref LL_EXTI_LINE_71 - * @arg @ref LL_EXTI_LINE_72 - * @arg @ref LL_EXTI_LINE_73 - * @arg @ref LL_EXTI_LINE_74 - * @arg @ref LL_EXTI_LINE_75 (*) - * @arg @ref LL_EXTI_LINE_76 (*) - * @arg @ref LL_EXTI_LINE_77 (**) - * @arg @ref LL_EXTI_LINE_78 (**) - * @arg @ref LL_EXTI_LINE_79 (**) - * @arg @ref LL_EXTI_LINE_80 (**) - * @arg @ref LL_EXTI_LINE_82 (**) - * @arg @ref LL_EXTI_LINE_84 (**) - * @arg @ref LL_EXTI_LINE_85 - * @arg @ref LL_EXTI_LINE_86 (*) - * @arg @ref LL_EXTI_LINE_87 - * @arg @ref LL_EXTI_LINE_88 (*) - * @arg @ref LL_EXTI_LINE_89 (*) - * @arg @ref LL_EXTI_LINE_90 (*) - * @arg @ref LL_EXTI_LINE_91 (*) - * @arg @ref LL_EXTI_LINE_ALL_64_95 - * - * (*) value not defined in all devices. - * (**) value only defined in dual core devices. - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_EXTI_IsEnabledEvent_64_95(uint32_t ExtiLine) -{ - return ((READ_BIT(EXTI->EMR3, ExtiLine) == (ExtiLine)) ? 1U : 0U); -} - -#if defined(DUAL_CORE) - -/** - * @brief Enable ExtiLine Event request for Lines in range 0 to 31 for cpu2 - * @rmtoll C2EMR1 EMx LL_C2_EXTI_EnableEvent_0_31 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @arg @ref LL_EXTI_LINE_16 - * @arg @ref LL_EXTI_LINE_17 - * @arg @ref LL_EXTI_LINE_18 - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @arg @ref LL_EXTI_LINE_22 - * @arg @ref LL_EXTI_LINE_23 - * @arg @ref LL_EXTI_LINE_24 - * @arg @ref LL_EXTI_LINE_25 - * @arg @ref LL_EXTI_LINE_26 - * @arg @ref LL_EXTI_LINE_27 - * @arg @ref LL_EXTI_LINE_28 - * @arg @ref LL_EXTI_LINE_29 - * @arg @ref LL_EXTI_LINE_30 - * @arg @ref LL_EXTI_LINE_31 - * @arg @ref LL_EXTI_LINE_ALL_0_31 - * @retval None - */ -__STATIC_INLINE void LL_C2_EXTI_EnableEvent_0_31(uint32_t ExtiLine) -{ - SET_BIT(EXTI->C2EMR1, ExtiLine); -} - - -/** - * @brief Enable ExtiLine Event request for Lines in range 32 to 63 for cpu2 - * @rmtoll C2EMR2 EMx LL_C2_EXTI_EnableEvent_32_63 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_32 - * @arg @ref LL_EXTI_LINE_33 - * @arg @ref LL_EXTI_LINE_34 - * @arg @ref LL_EXTI_LINE_35 - * @arg @ref LL_EXTI_LINE_36 - * @arg @ref LL_EXTI_LINE_37 - * @arg @ref LL_EXTI_LINE_38 - * @arg @ref LL_EXTI_LINE_39 - * @arg @ref LL_EXTI_LINE_40 - * @arg @ref LL_EXTI_LINE_41 - * @arg @ref LL_EXTI_LINE_42 - * @arg @ref LL_EXTI_LINE_43 - * @arg @ref LL_EXTI_LINE_44 - * @arg @ref LL_EXTI_LINE_46 - * @arg @ref LL_EXTI_LINE_47 - * @arg @ref LL_EXTI_LINE_48 - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_50 - * @arg @ref LL_EXTI_LINE_51 - * @arg @ref LL_EXTI_LINE_52 - * @arg @ref LL_EXTI_LINE_53 - * @arg @ref LL_EXTI_LINE_54 - * @arg @ref LL_EXTI_LINE_55 - * @arg @ref LL_EXTI_LINE_56 - * @arg @ref LL_EXTI_LINE_57 - * @arg @ref LL_EXTI_LINE_58 - * @arg @ref LL_EXTI_LINE_59 - * @arg @ref LL_EXTI_LINE_60 - * @arg @ref LL_EXTI_LINE_61 - * @arg @ref LL_EXTI_LINE_62 - * @arg @ref LL_EXTI_LINE_63 - * @arg @ref LL_EXTI_LINE_ALL_32_63 - * @retval None - */ -__STATIC_INLINE void LL_C2_EXTI_EnableEvent_32_63(uint32_t ExtiLine) -{ - SET_BIT(EXTI->C2EMR2, ExtiLine); -} - -/** - * @brief Enable ExtiLine Event request for Lines in range 64 to 95 for cpu2 - * @rmtoll C2EMR3 EMx LL_C2_EXTI_EnableEvent_64_95 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_64 - * @arg @ref LL_EXTI_LINE_65 - * @arg @ref LL_EXTI_LINE_66 - * @arg @ref LL_EXTI_LINE_67 - * @arg @ref LL_EXTI_LINE_68 - * @arg @ref LL_EXTI_LINE_69 - * @arg @ref LL_EXTI_LINE_70 - * @arg @ref LL_EXTI_LINE_71 - * @arg @ref LL_EXTI_LINE_72 - * @arg @ref LL_EXTI_LINE_73 - * @arg @ref LL_EXTI_LINE_74 - * @arg @ref LL_EXTI_LINE_75 - * @arg @ref LL_EXTI_LINE_76 - * @arg @ref LL_EXTI_LINE_77 - * @arg @ref LL_EXTI_LINE_78 - * @arg @ref LL_EXTI_LINE_79 - * @arg @ref LL_EXTI_LINE_80 - * @arg @ref LL_EXTI_LINE_82 - * @arg @ref LL_EXTI_LINE_84 - * @arg @ref LL_EXTI_LINE_85 - * @arg @ref LL_EXTI_LINE_86 - * @arg @ref LL_EXTI_LINE_87 - * @arg @ref LL_EXTI_LINE_ALL_64_95 - * @retval None - */ -__STATIC_INLINE void LL_C2_EXTI_EnableEvent_64_95(uint32_t ExtiLine) -{ - SET_BIT(EXTI->C2EMR3, ExtiLine); -} - - -/** - * @brief Disable ExtiLine Event request for Lines in range 0 to 31 for cpu2 - * @rmtoll C2EMR1 EMx LL_C2_EXTI_DisableEvent_0_31 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @arg @ref LL_EXTI_LINE_16 - * @arg @ref LL_EXTI_LINE_17 - * @arg @ref LL_EXTI_LINE_18 - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @arg @ref LL_EXTI_LINE_22 - * @arg @ref LL_EXTI_LINE_23 - * @arg @ref LL_EXTI_LINE_24 - * @arg @ref LL_EXTI_LINE_25 - * @arg @ref LL_EXTI_LINE_26 - * @arg @ref LL_EXTI_LINE_27 - * @arg @ref LL_EXTI_LINE_28 - * @arg @ref LL_EXTI_LINE_29 - * @arg @ref LL_EXTI_LINE_30 - * @arg @ref LL_EXTI_LINE_31 - * @arg @ref LL_EXTI_LINE_ALL_0_31 - * @retval None - */ -__STATIC_INLINE void LL_C2_EXTI_DisableEvent_0_31(uint32_t ExtiLine) -{ - CLEAR_BIT(EXTI->C2EMR1, ExtiLine); -} - - -/** - * @brief Disable ExtiLine Event request for Lines in range 32 to 63 for cpu2 - * @rmtoll C2EMR2 EMx LL_C2_EXTI_DisableEvent_32_63 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_32 - * @arg @ref LL_EXTI_LINE_33 - * @arg @ref LL_EXTI_LINE_34 - * @arg @ref LL_EXTI_LINE_35 - * @arg @ref LL_EXTI_LINE_36 - * @arg @ref LL_EXTI_LINE_37 - * @arg @ref LL_EXTI_LINE_38 - * @arg @ref LL_EXTI_LINE_39 - * @arg @ref LL_EXTI_LINE_40 - * @arg @ref LL_EXTI_LINE_41 - * @arg @ref LL_EXTI_LINE_42 - * @arg @ref LL_EXTI_LINE_43 - * @arg @ref LL_EXTI_LINE_44 - * @arg @ref LL_EXTI_LINE_46 - * @arg @ref LL_EXTI_LINE_47 - * @arg @ref LL_EXTI_LINE_48 - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_50 - * @arg @ref LL_EXTI_LINE_51 - * @arg @ref LL_EXTI_LINE_52 - * @arg @ref LL_EXTI_LINE_53 - * @arg @ref LL_EXTI_LINE_54 - * @arg @ref LL_EXTI_LINE_55 - * @arg @ref LL_EXTI_LINE_56 - * @arg @ref LL_EXTI_LINE_57 - * @arg @ref LL_EXTI_LINE_58 - * @arg @ref LL_EXTI_LINE_59 - * @arg @ref LL_EXTI_LINE_60 - * @arg @ref LL_EXTI_LINE_61 - * @arg @ref LL_EXTI_LINE_62 - * @arg @ref LL_EXTI_LINE_63 - * @arg @ref LL_EXTI_LINE_ALL_32_63 - * @retval None - */ -__STATIC_INLINE void LL_C2_EXTI_DisableEvent_32_63(uint32_t ExtiLine) -{ - CLEAR_BIT(EXTI->C2EMR2, ExtiLine); -} - - -/** - * @brief Disable ExtiLine Event request for Lines in range 64 to 95 for cpu2 - * @rmtoll C2EMR3 EMx LL_C2_EXTI_DisableEvent_64_95 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_64 - * @arg @ref LL_EXTI_LINE_65 - * @arg @ref LL_EXTI_LINE_66 - * @arg @ref LL_EXTI_LINE_67 - * @arg @ref LL_EXTI_LINE_68 - * @arg @ref LL_EXTI_LINE_69 - * @arg @ref LL_EXTI_LINE_70 - * @arg @ref LL_EXTI_LINE_71 - * @arg @ref LL_EXTI_LINE_72 - * @arg @ref LL_EXTI_LINE_73 - * @arg @ref LL_EXTI_LINE_74 - * @arg @ref LL_EXTI_LINE_75 - * @arg @ref LL_EXTI_LINE_76 - * @arg @ref LL_EXTI_LINE_77 - * @arg @ref LL_EXTI_LINE_78 - * @arg @ref LL_EXTI_LINE_79 - * @arg @ref LL_EXTI_LINE_80 - * @arg @ref LL_EXTI_LINE_82 - * @arg @ref LL_EXTI_LINE_84 - * @arg @ref LL_EXTI_LINE_85 - * @arg @ref LL_EXTI_LINE_86 - * @arg @ref LL_EXTI_LINE_87 - * @arg @ref LL_EXTI_LINE_ALL_64_95 - * @retval None - */ -__STATIC_INLINE void LL_C2_EXTI_DisableEvent_64_95(uint32_t ExtiLine) -{ - CLEAR_BIT(EXTI->C2EMR3, ExtiLine); -} - - -/** - * @brief Indicate if ExtiLine Event request is enabled for Lines in range 0 to 31 for cpu2 - * @rmtoll C2EMR1 EMx LL_C2_EXTI_IsEnabledEvent_0_31 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @arg @ref LL_EXTI_LINE_16 - * @arg @ref LL_EXTI_LINE_17 - * @arg @ref LL_EXTI_LINE_18 - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @arg @ref LL_EXTI_LINE_22 - * @arg @ref LL_EXTI_LINE_23 - * @arg @ref LL_EXTI_LINE_24 - * @arg @ref LL_EXTI_LINE_25 - * @arg @ref LL_EXTI_LINE_26 - * @arg @ref LL_EXTI_LINE_27 - * @arg @ref LL_EXTI_LINE_28 - * @arg @ref LL_EXTI_LINE_29 - * @arg @ref LL_EXTI_LINE_30 - * @arg @ref LL_EXTI_LINE_31 - * @arg @ref LL_EXTI_LINE_ALL_0_31 - * @note Please check each device line mapping for EXTI Line availability - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C2_EXTI_IsEnabledEvent_0_31(uint32_t ExtiLine) -{ - return ((READ_BIT(EXTI->C2EMR1, ExtiLine) == (ExtiLine)) ? 1U : 0U); -} - - -/** - * @brief Indicate if ExtiLine Event request is enabled for Lines in range 32 to 63 for cpu2 - * @rmtoll C2EMR2 EMx LL_C2_EXTI_IsEnabledEvent_32_63 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_32 - * @arg @ref LL_EXTI_LINE_33 - * @arg @ref LL_EXTI_LINE_34 - * @arg @ref LL_EXTI_LINE_35 - * @arg @ref LL_EXTI_LINE_36 - * @arg @ref LL_EXTI_LINE_37 - * @arg @ref LL_EXTI_LINE_38 - * @arg @ref LL_EXTI_LINE_39 - * @arg @ref LL_EXTI_LINE_40 - * @arg @ref LL_EXTI_LINE_41 - * @arg @ref LL_EXTI_LINE_42 - * @arg @ref LL_EXTI_LINE_43 - * @arg @ref LL_EXTI_LINE_44 - * @arg @ref LL_EXTI_LINE_46 - * @arg @ref LL_EXTI_LINE_47 - * @arg @ref LL_EXTI_LINE_48 - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_50 - * @arg @ref LL_EXTI_LINE_51 - * @arg @ref LL_EXTI_LINE_52 - * @arg @ref LL_EXTI_LINE_53 - * @arg @ref LL_EXTI_LINE_54 - * @arg @ref LL_EXTI_LINE_55 - * @arg @ref LL_EXTI_LINE_56 - * @arg @ref LL_EXTI_LINE_57 - * @arg @ref LL_EXTI_LINE_58 - * @arg @ref LL_EXTI_LINE_59 - * @arg @ref LL_EXTI_LINE_60 - * @arg @ref LL_EXTI_LINE_61 - * @arg @ref LL_EXTI_LINE_62 - * @arg @ref LL_EXTI_LINE_63 - * @arg @ref LL_EXTI_LINE_ALL_32_63 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C2_EXTI_IsEnabledEvent_32_63(uint32_t ExtiLine) -{ - return ((READ_BIT(EXTI->C2EMR2, ExtiLine) == (ExtiLine)) ? 1U : 0U); -} - - -/** - * @brief Indicate if ExtiLine Event request is enabled for Lines in range 64 to 95 for cpu2 - * @rmtoll C2EMR3 EMx LL_C2_EXTI_IsEnabledEvent_64_95 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_64 - * @arg @ref LL_EXTI_LINE_65 - * @arg @ref LL_EXTI_LINE_66 - * @arg @ref LL_EXTI_LINE_67 - * @arg @ref LL_EXTI_LINE_68 - * @arg @ref LL_EXTI_LINE_69 - * @arg @ref LL_EXTI_LINE_70 - * @arg @ref LL_EXTI_LINE_71 - * @arg @ref LL_EXTI_LINE_72 - * @arg @ref LL_EXTI_LINE_73 - * @arg @ref LL_EXTI_LINE_74 - * @arg @ref LL_EXTI_LINE_75 - * @arg @ref LL_EXTI_LINE_76 - * @arg @ref LL_EXTI_LINE_77 - * @arg @ref LL_EXTI_LINE_78 - * @arg @ref LL_EXTI_LINE_79 - * @arg @ref LL_EXTI_LINE_80 - * @arg @ref LL_EXTI_LINE_82 - * @arg @ref LL_EXTI_LINE_84 - * @arg @ref LL_EXTI_LINE_85 - * @arg @ref LL_EXTI_LINE_86 - * @arg @ref LL_EXTI_LINE_87 - * @arg @ref LL_EXTI_LINE_ALL_64_95 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C2_EXTI_IsEnabledEvent_64_95(uint32_t ExtiLine) -{ - return ((READ_BIT(EXTI->C2EMR3, ExtiLine) == (ExtiLine)) ? 1U : 0U); -} - - -#endif /* DUAL_CORE */ - -/** - * @} - */ - -/** @defgroup EXTI_LL_EF_Rising_Trigger_Management Rising_Trigger_Management - * @{ - */ - -/** - * @brief Enable ExtiLine Rising Edge Trigger for Lines in range 0 to 31 - * @note The configurable wakeup lines are edge-triggered. No glitch must be - * generated on these lines. If a rising edge on a configurable interrupt - * line occurs during a write operation in the EXTI_RTSR register, the - * pending bit is not set. - * Rising and falling edge triggers can be set for - * the same interrupt line. In this case, both generate a trigger - * condition. - * @rmtoll RTSR1 RTx LL_EXTI_EnableRisingTrig_0_31 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @arg @ref LL_EXTI_LINE_16 - * @arg @ref LL_EXTI_LINE_17 - * @arg @ref LL_EXTI_LINE_18 - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @retval None - */ -__STATIC_INLINE void LL_EXTI_EnableRisingTrig_0_31(uint32_t ExtiLine) -{ - SET_BIT(EXTI->RTSR1, ExtiLine); - -} - -/** - * @brief Enable ExtiLine Rising Edge Trigger for Lines in range 32 to 63 - * @note The configurable wakeup lines are edge-triggered. No glitch must be - * generated on these lines. If a rising edge on a configurable interrupt - * line occurs during a write operation in the EXTI_RTSR register, the - * pending bit is not set.Rising and falling edge triggers can be set for - * the same interrupt line. In this case, both generate a trigger - * condition. - * @rmtoll RTSR2 RTx LL_EXTI_EnableRisingTrig_32_63 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_51 - * @retval None - */ -__STATIC_INLINE void LL_EXTI_EnableRisingTrig_32_63(uint32_t ExtiLine) -{ - SET_BIT(EXTI->RTSR2, ExtiLine); -} - -/** - * @brief Enable ExtiLine Rising Edge Trigger for Lines in range 64 to 95 - * @note The configurable wakeup lines are edge-triggered. No glitch must be - * generated on these lines. If a rising edge on a configurable interrupt - * line occurs during a write operation in the EXTI_RTSR register, the - * pending bit is not set.Rising and falling edge triggers can be set for - * the same interrupt line. In this case, both generate a trigger - * condition. - * @rmtoll RTSR3 RTx LL_EXTI_EnableRisingTrig_64_95 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_82 (*) - * @arg @ref LL_EXTI_LINE_84 (*) - * @arg @ref LL_EXTI_LINE_85 - * @arg @ref LL_EXTI_LINE_86 (**) - * - * (*) value only defined in dual core devices. - * (**) value not defined in all devices. - * @retval None - */ -__STATIC_INLINE void LL_EXTI_EnableRisingTrig_64_95(uint32_t ExtiLine) -{ - SET_BIT(EXTI->RTSR3, ExtiLine); -} - -/** - * @brief Disable ExtiLine Rising Edge Trigger for Lines in range 0 to 31 - * @note The configurable wakeup lines are edge-triggered. No glitch must be - * generated on these lines. If a rising edge on a configurable interrupt - * line occurs during a write operation in the EXTI_RTSR register, the - * pending bit is not set. - * Rising and falling edge triggers can be set for - * the same interrupt line. In this case, both generate a trigger - * condition. - * @rmtoll RTSR1 RTx LL_EXTI_DisableRisingTrig_0_31 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @arg @ref LL_EXTI_LINE_16 - * @arg @ref LL_EXTI_LINE_17 - * @arg @ref LL_EXTI_LINE_18 - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @retval None - */ -__STATIC_INLINE void LL_EXTI_DisableRisingTrig_0_31(uint32_t ExtiLine) -{ - CLEAR_BIT(EXTI->RTSR1, ExtiLine); - -} - -/** - * @brief Disable ExtiLine Rising Edge Trigger for Lines in range 32 to 63 - * @note The configurable wakeup lines are edge-triggered. No glitch must be - * generated on these lines. If a rising edge on a configurable interrupt - * line occurs during a write operation in the EXTI_RTSR register, the - * pending bit is not set. - * Rising and falling edge triggers can be set for - * the same interrupt line. In this case, both generate a trigger - * condition. - * @rmtoll RTSR2 RTx LL_EXTI_DisableRisingTrig_32_63 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_51 - * @retval None - */ -__STATIC_INLINE void LL_EXTI_DisableRisingTrig_32_63(uint32_t ExtiLine) -{ - CLEAR_BIT(EXTI->RTSR2, ExtiLine); -} - -/** - * @brief Disable ExtiLine Rising Edge Trigger for Lines in range 64 to 95 - * @note The configurable wakeup lines are edge-triggered. No glitch must be - * generated on these lines. If a rising edge on a configurable interrupt - * line occurs during a write operation in the EXTI_RTSR register, the - * pending bit is not set. - * Rising and falling edge triggers can be set for - * the same interrupt line. In this case, both generate a trigger - * condition. - * @rmtoll RTSR3 RTx LL_EXTI_DisableRisingTrig_64_95 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_82 (*) - * @arg @ref LL_EXTI_LINE_84 (*) - * @arg @ref LL_EXTI_LINE_85 - * @arg @ref LL_EXTI_LINE_86 (**) - * - * (*) value only defined in dual core devices. - * (**) value not defined in all devices. - * @retval None - */ -__STATIC_INLINE void LL_EXTI_DisableRisingTrig_64_95(uint32_t ExtiLine) -{ - CLEAR_BIT(EXTI->RTSR3, ExtiLine); -} - -/** - * @brief Check if rising edge trigger is enabled for Lines in range 0 to 31 - * @rmtoll RTSR1 RTx LL_EXTI_IsEnabledRisingTrig_0_31 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @arg @ref LL_EXTI_LINE_16 - * @arg @ref LL_EXTI_LINE_17 - * @arg @ref LL_EXTI_LINE_18 - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_EXTI_IsEnabledRisingTrig_0_31(uint32_t ExtiLine) -{ - return ((READ_BIT(EXTI->RTSR1, ExtiLine) == (ExtiLine)) ? 1U : 0U); -} - - -/** - * @brief Check if rising edge trigger is enabled for Lines in range 32 to 63 - * @rmtoll RTSR2 RTx LL_EXTI_IsEnabledRisingTrig_32_63 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_51 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_EXTI_IsEnabledRisingTrig_32_63(uint32_t ExtiLine) -{ - return ((READ_BIT(EXTI->RTSR2, ExtiLine) == (ExtiLine)) ? 1U : 0U); -} - -/** - * @brief Check if rising edge trigger is enabled for Lines in range 64 to 95 - * @rmtoll RTSR3 RTx LL_EXTI_IsEnabledRisingTrig_64_95 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_82 (*) - * @arg @ref LL_EXTI_LINE_84 (*) - * @arg @ref LL_EXTI_LINE_85 - * @arg @ref LL_EXTI_LINE_86 (**) - * - * (*) value only defined in dual core devices. - * (**) value not defined in all devices. - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_EXTI_IsEnabledRisingTrig_64_95(uint32_t ExtiLine) -{ - return ((READ_BIT(EXTI->RTSR3, ExtiLine) == (ExtiLine)) ? 1U : 0U); -} - -/** - * @} - */ - -/** @defgroup EXTI_LL_EF_Falling_Trigger_Management Falling_Trigger_Management - * @{ - */ - -/** - * @brief Enable ExtiLine Falling Edge Trigger for Lines in range 0 to 31 - * @note The configurable wakeup lines are edge-triggered. No glitch must be - * generated on these lines. If a falling edge on a configurable interrupt - * line occurs during a write operation in the EXTI_FTSR register, the - * pending bit is not set. - * Rising and falling edge triggers can be set for - * the same interrupt line. In this case, both generate a trigger - * condition. - * @rmtoll FTSR1 FTx LL_EXTI_EnableFallingTrig_0_31 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @arg @ref LL_EXTI_LINE_16 - * @arg @ref LL_EXTI_LINE_18 - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @note Please check each device line mapping for EXTI Line availability - * @retval None - */ -__STATIC_INLINE void LL_EXTI_EnableFallingTrig_0_31(uint32_t ExtiLine) -{ - SET_BIT(EXTI->FTSR1, ExtiLine); -} - -/** - * @brief Enable ExtiLine Falling Edge Trigger for Lines in range 32 to 63 - * @note The configurable wakeup lines are edge-triggered. No glitch must be - * generated on these lines. If a Falling edge on a configurable interrupt - * line occurs during a write operation in the EXTI_FTSR register, the - * pending bit is not set. - * Rising and falling edge triggers can be set for - * the same interrupt line. In this case, both generate a trigger - * condition. - * @rmtoll FTSR2 FTx LL_EXTI_EnableFallingTrig_32_63 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_51 - * @retval None - */ -__STATIC_INLINE void LL_EXTI_EnableFallingTrig_32_63(uint32_t ExtiLine) -{ - SET_BIT(EXTI->FTSR2, ExtiLine); -} - -/** - * @brief Enable ExtiLine Falling Edge Trigger for Lines in range 64 to 95 - * @note The configurable wakeup lines are edge-triggered. No glitch must be - * generated on these lines. If a Falling edge on a configurable interrupt - * line occurs during a write operation in the EXTI_FTSR register, the - * pending bit is not set. - * Rising and falling edge triggers can be set for - * the same interrupt line. In this case, both generate a trigger - * condition. - * @rmtoll FTSR3 FTx LL_EXTI_EnableFallingTrig_64_95 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_82 (*) - * @arg @ref LL_EXTI_LINE_84 (*) - * @arg @ref LL_EXTI_LINE_85 - * @arg @ref LL_EXTI_LINE_86 (**) - * - * (*) value only defined in dual core devices. - * (**) value not defined in all devices. - * @retval None - */ -__STATIC_INLINE void LL_EXTI_EnableFallingTrig_64_95(uint32_t ExtiLine) -{ - SET_BIT(EXTI->FTSR3, ExtiLine); -} - - -/** - * @brief Disable ExtiLine Falling Edge Trigger for Lines in range 0 to 31 - * @note The configurable wakeup lines are edge-triggered. No glitch must be - * generated on these lines. If a Falling edge on a configurable interrupt - * line occurs during a write operation in the EXTI_FTSR register, the - * pending bit is not set. - * Rising and falling edge triggers can be set for the same interrupt line. - * In this case, both generate a trigger condition. - * @rmtoll FTSR1 FTx LL_EXTI_DisableFallingTrig_0_31 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @arg @ref LL_EXTI_LINE_16 - * @arg @ref LL_EXTI_LINE_18 - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @note Please check each device line mapping for EXTI Line availability - * @retval None - */ -__STATIC_INLINE void LL_EXTI_DisableFallingTrig_0_31(uint32_t ExtiLine) -{ - CLEAR_BIT(EXTI->FTSR1, ExtiLine); -} - -/** - * @brief Disable ExtiLine Falling Edge Trigger for Lines in range 32 to 63 - * @note The configurable wakeup lines are edge-triggered. No glitch must be - * generated on these lines. If a Falling edge on a configurable interrupt - * line occurs during a write operation in the EXTI_FTSR register, the - * pending bit is not set. - * Rising and falling edge triggers can be set for the same interrupt line. - * In this case, both generate a trigger condition. - * @rmtoll FTSR2 FTx LL_EXTI_DisableFallingTrig_32_63 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_51 - * @retval None - */ -__STATIC_INLINE void LL_EXTI_DisableFallingTrig_32_63(uint32_t ExtiLine) -{ - CLEAR_BIT(EXTI->FTSR2, ExtiLine); -} - -/** - * @brief Disable ExtiLine Falling Edge Trigger for Lines in range 64 to 95 - * @note The configurable wakeup lines are edge-triggered. No glitch must be - * generated on these lines. If a Falling edge on a configurable interrupt - * line occurs during a write operation in the EXTI_FTSR register, the - * pending bit is not set. - * Rising and falling edge triggers can be set for the same interrupt line. - * In this case, both generate a trigger condition. - * @rmtoll FTSR3 FTx LL_EXTI_DisableFallingTrig_64_95 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_82 (*) - * @arg @ref LL_EXTI_LINE_84 (*) - * @arg @ref LL_EXTI_LINE_85 - * @arg @ref LL_EXTI_LINE_86 (**) - * - * (*) value only defined in dual core devices. - * (**) value not defined in all devices. - * @retval None - */ -__STATIC_INLINE void LL_EXTI_DisableFallingTrig_64_95(uint32_t ExtiLine) -{ - CLEAR_BIT(EXTI->FTSR3, ExtiLine); -} - - -/** - * @brief Check if falling edge trigger is enabled for Lines in range 0 to 31 - * @rmtoll FTSR1 FTx LL_EXTI_IsEnabledFallingTrig_0_31 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @arg @ref LL_EXTI_LINE_16 - * @arg @ref LL_EXTI_LINE_18 - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @note Please check each device line mapping for EXTI Line availability - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_EXTI_IsEnabledFallingTrig_0_31(uint32_t ExtiLine) -{ - return ((READ_BIT(EXTI->FTSR1, ExtiLine) == (ExtiLine)) ? 1U : 0U); -} - -/** - * @brief Check if falling edge trigger is enabled for Lines in range 32 to 63 - * @rmtoll FTSR2 FTx LL_EXTI_IsEnabledFallingTrig_32_63 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_51 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_EXTI_IsEnabledFallingTrig_32_63(uint32_t ExtiLine) -{ - return ((READ_BIT(EXTI->FTSR2, ExtiLine) == (ExtiLine)) ? 1U : 0U); -} - -/** - * @brief Check if falling edge trigger is enabled for Lines in range 64 to 95 - * @rmtoll FTSR3 FTx LL_EXTI_IsEnabledFallingTrig_64_95 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_82 (*) - * @arg @ref LL_EXTI_LINE_84 (*) - * @arg @ref LL_EXTI_LINE_85 - * @arg @ref LL_EXTI_LINE_86 (**) - * - * (*) value only defined in dual core devices. - * (**) value not defined in all devices. - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_EXTI_IsEnabledFallingTrig_64_95(uint32_t ExtiLine) -{ - return ((READ_BIT(EXTI->FTSR3, ExtiLine) == (ExtiLine)) ? 1U : 0U); -} - - -/** - * @} - */ - -/** @defgroup EXTI_LL_EF_Software_Interrupt_Management Software_Interrupt_Management - * @{ - */ - -/** - * @brief Generate a software Interrupt Event for Lines in range 0 to 31 - * @note If the interrupt is enabled on this line in the EXTI_C1IMR1, writing a 1 to - * this bit when it is at '0' sets the corresponding pending bit in EXTI_PR1 - * resulting in an interrupt request generation. - * This bit is cleared by clearing the corresponding bit in the EXTI_PR1 - * register (by writing a 1 into the bit) - * @rmtoll SWIER1 SWIx LL_EXTI_GenerateSWI_0_31 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @arg @ref LL_EXTI_LINE_16 - * @arg @ref LL_EXTI_LINE_18 - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @note Please check each device line mapping for EXTI Line availability - * @retval None - */ -__STATIC_INLINE void LL_EXTI_GenerateSWI_0_31(uint32_t ExtiLine) -{ - SET_BIT(EXTI->SWIER1, ExtiLine); -} - -/** - * @brief Generate a software Interrupt Event for Lines in range 32 to 63 - * @note If the interrupt is enabled on this line in the EXTI_IMR2, writing a 1 to - * this bit when it is at '0' sets the corresponding pending bit in EXTI_PR2 - * resulting in an interrupt request generation. - * This bit is cleared by clearing the corresponding bit in the EXTI_PR2 - * register (by writing a 1 into the bit) - * @rmtoll SWIER2 SWIx LL_EXTI_GenerateSWI_32_63 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_51 - * @retval None - */ -__STATIC_INLINE void LL_EXTI_GenerateSWI_32_63(uint32_t ExtiLine) -{ - SET_BIT(EXTI->SWIER2, ExtiLine); -} - -/** - * @brief Generate a software Interrupt Event for Lines in range 64 to 95 - * @note If the interrupt is enabled on this line in the EXTI_IMR2, writing a 1 to - * this bit when it is at '0' sets the corresponding pending bit in EXTI_PR2 - * resulting in an interrupt request generation. - * This bit is cleared by clearing the corresponding bit in the EXTI_PR3 - * register (by writing a 1 into the bit) - * @rmtoll SWIER3 SWIx LL_EXTI_GenerateSWI_64_95 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_82 (*) - * @arg @ref LL_EXTI_LINE_84 (*) - * @arg @ref LL_EXTI_LINE_85 - * @arg @ref LL_EXTI_LINE_86 (**) - * - * (*) value only defined in dual core devices. - * (**) value not defined in all devices. - * @retval None - */ -__STATIC_INLINE void LL_EXTI_GenerateSWI_64_95(uint32_t ExtiLine) -{ - SET_BIT(EXTI->SWIER3, ExtiLine); -} - - -/** - * @} - */ - -/** @defgroup EXTI_LL_EF_Flag_Management Flag_Management - * @{ - */ - -/** - * @brief Check if the ExtLine Flag is set or not for Lines in range 0 to 31 - * @note This bit is set when the selected edge event arrives on the interrupt - * line. This bit is cleared by writing a 1 to the bit. - * @rmtoll PR1 PIFx LL_EXTI_IsActiveFlag_0_31 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @arg @ref LL_EXTI_LINE_16 - * @arg @ref LL_EXTI_LINE_17 - * @arg @ref LL_EXTI_LINE_18 - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @arg @ref LL_EXTI_LINE_ALL_0_31 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_EXTI_IsActiveFlag_0_31(uint32_t ExtiLine) -{ - return ((READ_BIT(EXTI->PR1, ExtiLine) == (ExtiLine)) ? 1U : 0U); -} - -/** - * @brief Check if the ExtLine Flag is set or not for Lines in range 32 to 63 - * @note This bit is set when the selected edge event arrives on the interrupt - * line. This bit is cleared by writing a 1 to the bit. - * @rmtoll PR2 PIFx LL_EXTI_IsActiveFlag_32_63 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_51 - * @arg @ref LL_EXTI_LINE_ALL_32_63 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_EXTI_IsActiveFlag_32_63(uint32_t ExtiLine) -{ - return ((READ_BIT(EXTI->PR2, ExtiLine) == (ExtiLine)) ? 1U : 0U); -} - -/** - * @brief Check if the ExtLine Flag is set or not for Lines in range 64 to 95 - * @note This bit is set when the selected edge event arrives on the interrupt - * line. This bit is cleared by writing a 1 to the bit. - * @rmtoll PR3 PIFx LL_EXTI_IsActiveFlag_64_95 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_82 (*) - * @arg @ref LL_EXTI_LINE_84 (*) - * @arg @ref LL_EXTI_LINE_85 - * @arg @ref LL_EXTI_LINE_86 (**) - * - * (*) value only defined in dual core devices. - * (**) value not defined in all devices. - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_EXTI_IsActiveFlag_64_95(uint32_t ExtiLine) -{ - return ((READ_BIT(EXTI->PR3, ExtiLine) == (ExtiLine)) ? 1U : 0U); -} - - -/** - * @brief Read ExtLine Combination Flag for Lines in range 0 to 31 - * @note This bit is set when the selected edge event arrives on the interrupt - * line. This bit is cleared by writing a 1 to the bit. - * @rmtoll PR1 PIFx LL_EXTI_ReadFlag_0_31 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @arg @ref LL_EXTI_LINE_16 - * @arg @ref LL_EXTI_LINE_17 - * @arg @ref LL_EXTI_LINE_18 - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @retval @note This bit is set when the selected edge event arrives on the interrupt - */ -__STATIC_INLINE uint32_t LL_EXTI_ReadFlag_0_31(uint32_t ExtiLine) -{ - return (uint32_t)(READ_BIT(EXTI->PR1, ExtiLine)); -} - - -/** - * @brief Read ExtLine Combination Flag for Lines in range 32 to 63 - * @note This bit is set when the selected edge event arrives on the interrupt - * line. This bit is cleared by writing a 1 to the bit. - * @rmtoll PR2 PIFx LL_EXTI_ReadFlag_32_63 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_51 - * @retval @note This bit is set when the selected edge event arrives on the interrupt - */ -__STATIC_INLINE uint32_t LL_EXTI_ReadFlag_32_63(uint32_t ExtiLine) -{ - return (uint32_t)(READ_BIT(EXTI->PR2, ExtiLine)); -} - - -/** - * @brief Read ExtLine Combination Flag for Lines in range 64 to 95 - * @note This bit is set when the selected edge event arrives on the interrupt - * line. This bit is cleared by writing a 1 to the bit. - * @rmtoll PR3 PIFx LL_EXTI_ReadFlag_64_95 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_82 (*) - * @arg @ref LL_EXTI_LINE_84 (*) - * @arg @ref LL_EXTI_LINE_85 - * @arg @ref LL_EXTI_LINE_86 (**) - * - * (*) value only defined in dual core devices. - * (**) value not defined in all devices. - * @retval @note This bit is set when the selected edge event arrives on the interrupt - */ -__STATIC_INLINE uint32_t LL_EXTI_ReadFlag_64_95(uint32_t ExtiLine) -{ - return (uint32_t)(READ_BIT(EXTI->PR3, ExtiLine)); -} - -/** - * @brief Clear ExtLine Flags for Lines in range 0 to 31 - * @note This bit is set when the selected edge event arrives on the interrupt - * line. This bit is cleared by writing a 1 to the bit. - * @rmtoll PR1 PIFx LL_EXTI_ClearFlag_0_31 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @arg @ref LL_EXTI_LINE_16 - * @arg @ref LL_EXTI_LINE_17 - * @arg @ref LL_EXTI_LINE_18 - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @retval None - */ -__STATIC_INLINE void LL_EXTI_ClearFlag_0_31(uint32_t ExtiLine) -{ - WRITE_REG(EXTI->PR1, ExtiLine); -} - -/** - * @brief Clear ExtLine Flags for Lines in range 32 to 63 - * @note This bit is set when the selected edge event arrives on the interrupt - * line. This bit is cleared by writing a 1 to the bit. - * @rmtoll PR2 PIFx LL_EXTI_ClearFlag_32_63 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_51 - * @retval None - */ -__STATIC_INLINE void LL_EXTI_ClearFlag_32_63(uint32_t ExtiLine) -{ - WRITE_REG(EXTI->PR2, ExtiLine); -} - -/** - * @brief Clear ExtLine Flags for Lines in range 64 to 95 - * @note This bit is set when the selected edge event arrives on the interrupt - * line. This bit is cleared by writing a 1 to the bit. - * @rmtoll PR3 PIFx LL_EXTI_ClearFlag_64_95 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_82 (*) - * @arg @ref LL_EXTI_LINE_84 (*) - * @arg @ref LL_EXTI_LINE_85 - * @arg @ref LL_EXTI_LINE_86 (**) - * - * (*) value only defined in dual core devices. - * (**) value not defined in all devices. - * @retval None - */ -__STATIC_INLINE void LL_EXTI_ClearFlag_64_95(uint32_t ExtiLine) -{ - WRITE_REG(EXTI->PR3, ExtiLine); -} - -#if defined(DUAL_CORE) - -/** - * @brief Check if the ExtLine Flag is set or not for Lines in range 0 to 31 for cpu2 - * @note This bit is set when the selected edge event arrives on the interrupt - * line. This bit is cleared by writing a 1 to the bit. - * @rmtoll C2PR1 PIFx LL_C2_EXTI_IsActiveFlag_0_31 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @arg @ref LL_EXTI_LINE_16 - * @arg @ref LL_EXTI_LINE_17 - * @arg @ref LL_EXTI_LINE_18 - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @arg @ref LL_EXTI_LINE_ALL_0_31 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C2_EXTI_IsActiveFlag_0_31(uint32_t ExtiLine) -{ - return ((READ_BIT(EXTI->C2PR1, ExtiLine) == (ExtiLine)) ? 1U : 0U); -} - -/** - * @brief Check if the ExtLine Flag is set or not for Lines in range 32 to 63 for cpu2 - * @note This bit is set when the selected edge event arrives on the interrupt - * line. This bit is cleared by writing a 1 to the bit. - * @rmtoll C2PR2 PIFx LL_C2_EXTI_IsActiveFlag_32_63 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_51 - * @arg @ref LL_EXTI_LINE_ALL_32_63 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C2_EXTI_IsActiveFlag_32_63(uint32_t ExtiLine) -{ - return ((READ_BIT(EXTI->C2PR2, ExtiLine) == (ExtiLine)) ? 1U : 0U); -} - -/** - * @brief Check if the ExtLine Flag is set or not for Lines in range 64 to 95 for cpu2 - * @note This bit is set when the selected edge event arrives on the interrupt - * line. This bit is cleared by writing a 1 to the bit. - * @rmtoll C2PR3 PIFx LL_C2_EXTI_IsActiveFlag_64_95 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_82 - * @arg @ref LL_EXTI_LINE_84 - * @arg @ref LL_EXTI_LINE_85 - * @arg @ref LL_EXTI_LINE_86 - * @arg @ref LL_EXTI_LINE_ALL_64_95 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C2_EXTI_IsActiveFlag_64_95(uint32_t ExtiLine) -{ - return ((READ_BIT(EXTI->C2PR3, ExtiLine) == (ExtiLine)) ? 1U : 0U); -} - -/** - * @brief Read ExtLine Combination Flag for Lines in range 0 to 31 for cpu2 - * @note This bit is set when the selected edge event arrives on the interrupt - * line. This bit is cleared by writing a 1 to the bit. - * @rmtoll C2PR1 PIFx LL_C2_EXTI_ReadFlag_0_31 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @arg @ref LL_EXTI_LINE_16 - * @arg @ref LL_EXTI_LINE_17 - * @arg @ref LL_EXTI_LINE_18 - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @retval @note This bit is set when the selected edge event arrives on the interrupt - */ -__STATIC_INLINE uint32_t LL_C2_EXTI_ReadFlag_0_31(uint32_t ExtiLine) -{ - return (uint32_t)(READ_BIT(EXTI->C2PR1, ExtiLine)); -} - -/** - * @brief Read ExtLine Combination Flag for Lines in range 32 to 63 for cpu2 - * @note This bit is set when the selected edge event arrives on the interrupt - * line. This bit is cleared by writing a 1 to the bit. - * @rmtoll C2PR2 PIFx LL_C2_EXTI_ReadFlag_32_63 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_51 - * @retval @note This bit is set when the selected edge event arrives on the interrupt - */ -__STATIC_INLINE uint32_t LL_C2_EXTI_ReadFlag_32_63(uint32_t ExtiLine) -{ - return (uint32_t)(READ_BIT(EXTI->C2PR2, ExtiLine)); -} - - -/** - * @brief Read ExtLine Combination Flag for Lines in range 64 to 95 for cpu2 - * @note This bit is set when the selected edge event arrives on the interrupt - * line. This bit is cleared by writing a 1 to the bit. - * @rmtoll C2PR3 PIFx LL_C2_EXTI_ReadFlag_64_95 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_82 - * @arg @ref LL_EXTI_LINE_84 - * @arg @ref LL_EXTI_LINE_85 - * @arg @ref LL_EXTI_LINE_86 - * @retval @note This bit is set when the selected edge event arrives on the interrupt - */ -__STATIC_INLINE uint32_t LL_C2_EXTI_ReadFlag_64_95(uint32_t ExtiLine) -{ - return (uint32_t)(READ_BIT(EXTI->C2PR3, ExtiLine)); -} -/** - * @brief Clear ExtLine Flags for Lines in range 0 to 31 for cpu2 - * @note This bit is set when the selected edge event arrives on the interrupt - * line. This bit is cleared by writing a 1 to the bit. - * @rmtoll C2PR1 PIFx LL_C2_EXTI_ClearFlag_0_31 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @arg @ref LL_EXTI_LINE_16 - * @arg @ref LL_EXTI_LINE_17 - * @arg @ref LL_EXTI_LINE_18 - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @retval None - */ -__STATIC_INLINE void LL_C2_EXTI_ClearFlag_0_31(uint32_t ExtiLine) -{ - WRITE_REG(EXTI->C2PR1, ExtiLine); -} - -/** - * @brief Clear ExtLine Flags for Lines in range 32 to 63 for cpu2 - * @note This bit is set when the selected edge event arrives on the interrupt - * line. This bit is cleared by writing a 1 to the bit. - * @rmtoll C2PR2 PIFx LL_C2_EXTI_ClearFlag_32_63 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_51 - * @retval None - */ -__STATIC_INLINE void LL_C2_EXTI_ClearFlag_32_63(uint32_t ExtiLine) -{ - WRITE_REG(EXTI->C2PR2, ExtiLine); -} - -/** - * @brief Clear ExtLine Flags for Lines in range 64 to 95 for cpu2 - * @note This bit is set when the selected edge event arrives on the interrupt - * line. This bit is cleared by writing a 1 to the bit. - * @rmtoll C2PR3 PIFx LL_C2_EXTI_ClearFlag_64_95 - * @param ExtiLine This parameter can be a combination of the following values: - * @arg @ref LL_EXTI_LINE_82 - * @arg @ref LL_EXTI_LINE_84 - * @arg @ref LL_EXTI_LINE_85 - * @arg @ref LL_EXTI_LINE_86 - * @retval None - */ -__STATIC_INLINE void LL_C2_EXTI_ClearFlag_64_95(uint32_t ExtiLine) -{ - WRITE_REG(EXTI->C2PR3, ExtiLine); -} - -#endif /* DUAL_CORE */ - -/** - * @brief Enable ExtiLine D3 Pending Mask for Lines in range 0 to 31 - * @rmtoll D3PMR1 MRx LL_D3_EXTI_EnablePendMask_0_31 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @arg @ref LL_EXTI_LINE_25 - * @retval None - */ -__STATIC_INLINE void LL_D3_EXTI_EnablePendMask_0_31(uint32_t ExtiLine) -{ - SET_BIT(EXTI->D3PMR1, ExtiLine); -} - -/** - * @brief Enable ExtiLine D3 Pending Mask for Lines in range 32 to 63 - * @rmtoll D3PMR2 MRx LL_D3_EXTI_EnablePendMask_32_63 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_34 - * @arg @ref LL_EXTI_LINE_35 - * @arg @ref LL_EXTI_LINE_41 - * @arg @ref LL_EXTI_LINE_48 - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_50 - * @arg @ref LL_EXTI_LINE_51 - * @arg @ref LL_EXTI_LINE_52 - * @arg @ref LL_EXTI_LINE_53 - * @retval None - */ -__STATIC_INLINE void LL_D3_EXTI_EnablePendMask_32_63(uint32_t ExtiLine) -{ - SET_BIT(EXTI->D3PMR2, ExtiLine); -} - -/** - * @brief Disable ExtiLine D3 Pending Mask for Lines in range 0 to 31 - * @rmtoll D3PMR1 MRx LL_D3_EXTI_DisablePendMask_0_31 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @arg @ref LL_EXTI_LINE_25 - * @retval None - */ -__STATIC_INLINE void LL_D3_EXTI_DisablePendMask_0_31(uint32_t ExtiLine) -{ - CLEAR_BIT(EXTI->D3PMR1, ExtiLine); -} - -/** - * @brief Disable ExtiLine D3 Pending Mask for Lines in range 32 to 63 - * @rmtoll D3PMR2 MRx LL_D3_EXTI_DisablePendMask_32_63 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_34 - * @arg @ref LL_EXTI_LINE_35 - * @arg @ref LL_EXTI_LINE_41 - * @arg @ref LL_EXTI_LINE_48 - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_50 - * @arg @ref LL_EXTI_LINE_51 - * @arg @ref LL_EXTI_LINE_52 - * @arg @ref LL_EXTI_LINE_53 - * @retval None - */ -__STATIC_INLINE void LL_D3_EXTI_DisablePendMask_32_63(uint32_t ExtiLine) -{ - CLEAR_BIT(EXTI->D3PMR2, ExtiLine); -} - -/** - * @brief Indicate if ExtiLine D3 Pending Mask is enabled for Lines in range 0 to 31 - * @rmtoll D3PMR1 MRx LL_D3_EXTI_IsEnabledPendMask_0_31 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @arg @ref LL_EXTI_LINE_25 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_D3_EXTI_IsEnabledPendMask_0_31(uint32_t ExtiLine) -{ - return ((READ_BIT(EXTI->D3PMR1, ExtiLine) == (ExtiLine)) ? 1U : 0U); -} - -/** - * @brief Indicate if ExtiLine D3 Pending Mask is enabled for Lines in range 32 to 63 - * @rmtoll D3PMR2 MRx LL_D3_EXTI_IsEnabledPendMask_32_63 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_34 - * @arg @ref LL_EXTI_LINE_35 - * @arg @ref LL_EXTI_LINE_41 - * @arg @ref LL_EXTI_LINE_48 - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_50 - * @arg @ref LL_EXTI_LINE_51 - * @arg @ref LL_EXTI_LINE_52 - * @arg @ref LL_EXTI_LINE_53 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_D3_EXTI_IsEnabledPendMask_32_63(uint32_t ExtiLine) -{ - return ((READ_BIT(EXTI->D3PMR2, ExtiLine) == (ExtiLine)) ? 1U : 0U); -} - -/** - * @brief Set ExtLine D3 Domain Pend Clear Source selection for Lines in range 0 to 15 - * @rmtoll D3PCR1L PCSx LL_D3_EXTI_SetPendClearSel_0_15 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @param ClrSrc This parameter can be one of the following values: - * @arg @ref LL_EXTI_D3_PEND_CLR_DMACH6 - * @arg @ref LL_EXTI_D3_PEND_CLR_DMACH7 - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM4 (*) - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM5 (*) - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM2 (*) - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM3 (*) - * - * (*) value not defined in all devices. - * @retval None - */ -__STATIC_INLINE void LL_D3_EXTI_SetPendClearSel_0_15(uint32_t ExtiLine, uint32_t ClrSrc) -{ - MODIFY_REG(EXTI->D3PCR1L, ((ExtiLine * ExtiLine) * 3UL), ((ExtiLine * ExtiLine) * ClrSrc)); -} - -/** - * @brief Set ExtLine D3 Domain Pend Clear Source selection for Lines in range 16 to 31 - * @rmtoll D3PCR1H PCSx LL_D3_EXTI_SetPendClearSel_16_31 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @arg @ref LL_EXTI_LINE_25 - * @param ClrSrc This parameter can be one of the following values: - * @arg @ref LL_EXTI_D3_PEND_CLR_DMACH6 - * @arg @ref LL_EXTI_D3_PEND_CLR_DMACH7 - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM4 (*) - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM5 (*) - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM2 (*) - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM3 (*) - * - * (*) value not defined in all devices. - * @retval None - */ -__STATIC_INLINE void LL_D3_EXTI_SetPendClearSel_16_31(uint32_t ExtiLine, uint32_t ClrSrc) -{ - MODIFY_REG(EXTI->D3PCR1H, (((ExtiLine >> EXTI_IMR1_IM16_Pos) * (ExtiLine >> EXTI_IMR1_IM16_Pos)) * 3UL), (((ExtiLine >> EXTI_IMR1_IM16_Pos) * (ExtiLine >> EXTI_IMR1_IM16_Pos)) * ClrSrc)); -} - - -/** - * @brief Set ExtLine D3 Domain Pend Clear Source selection for Lines in range 32 to 47 - * @rmtoll D3PCR2L PCSx LL_D3_EXTI_SetPendClearSel_32_47 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_34 - * @arg @ref LL_EXTI_LINE_35 - * @arg @ref LL_EXTI_LINE_41 - * @param ClrSrc This parameter can be one of the following values: - * @arg @ref LL_EXTI_D3_PEND_CLR_DMACH6 - * @arg @ref LL_EXTI_D3_PEND_CLR_DMACH7 - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM4 (*) - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM5 (*) - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM2 (*) - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM3 (*) - * - * (*) value not defined in all devices. - * @retval None - */ -__STATIC_INLINE void LL_D3_EXTI_SetPendClearSel_32_47(uint32_t ExtiLine, uint32_t ClrSrc) -{ - MODIFY_REG(EXTI->D3PCR2L, ((ExtiLine * ExtiLine) * 3UL), ((ExtiLine * ExtiLine) * ClrSrc)); -} - -/** - * @brief Set ExtLine D3 Domain Pend Clear Source selection for Lines in range 48 to 63 - * @rmtoll D3PCR2H PCSx LL_D3_EXTI_SetPendClearSel_48_63 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_48 - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_50 - * @arg @ref LL_EXTI_LINE_51 - * @arg @ref LL_EXTI_LINE_52 - * @arg @ref LL_EXTI_LINE_53 - * @param ClrSrc This parameter can be one of the following values: - * @arg @ref LL_EXTI_D3_PEND_CLR_DMACH6 - * @arg @ref LL_EXTI_D3_PEND_CLR_DMACH7 - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM4 (*) - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM5 (*) - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM2 (*) - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM3 (*) - * - * (*) value not defined in all devices. - * @retval None - */ -__STATIC_INLINE void LL_D3_EXTI_SetPendClearSel_48_63(uint32_t ExtiLine, uint32_t ClrSrc) -{ - MODIFY_REG(EXTI->D3PCR2H, (((ExtiLine >> EXTI_IMR2_IM48_Pos) * (ExtiLine >> EXTI_IMR2_IM48_Pos)) * 3UL), (((ExtiLine >> EXTI_IMR2_IM48_Pos) * (ExtiLine >> EXTI_IMR2_IM48_Pos)) * ClrSrc)); -} - -/** - * @brief Get ExtLine D3 Domain Pend Clear Source selection for Lines in range 0 to 15 - * @rmtoll D3PCR1L PCSx LL_D3_EXTI_GetPendClearSel_0_15 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_0 - * @arg @ref LL_EXTI_LINE_1 - * @arg @ref LL_EXTI_LINE_2 - * @arg @ref LL_EXTI_LINE_3 - * @arg @ref LL_EXTI_LINE_4 - * @arg @ref LL_EXTI_LINE_5 - * @arg @ref LL_EXTI_LINE_6 - * @arg @ref LL_EXTI_LINE_7 - * @arg @ref LL_EXTI_LINE_8 - * @arg @ref LL_EXTI_LINE_9 - * @arg @ref LL_EXTI_LINE_10 - * @arg @ref LL_EXTI_LINE_11 - * @arg @ref LL_EXTI_LINE_12 - * @arg @ref LL_EXTI_LINE_13 - * @arg @ref LL_EXTI_LINE_14 - * @arg @ref LL_EXTI_LINE_15 - * @retval Returned value can be one of the following values: - * @arg @ref LL_EXTI_D3_PEND_CLR_DMACH6 - * @arg @ref LL_EXTI_D3_PEND_CLR_DMACH7 - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM4 (*) - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM5 (*) - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM2 (*) - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM3 (*) - * - * (*) value not defined in all devices. - */ -__STATIC_INLINE uint32_t LL_D3_EXTI_GetPendClearSel_0_15(uint32_t ExtiLine) -{ - return (uint32_t)(READ_BIT(EXTI->D3PCR1L, ((ExtiLine * ExtiLine) * 3UL)) / (ExtiLine * ExtiLine)); -} - -/** - * @brief Get ExtLine D3 Domain Pend Clear Source selection for Lines in range 16 to 31 - * @rmtoll D3PCR1H PCSx LL_D3_EXTI_GetPendClearSel_16_31 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_19 - * @arg @ref LL_EXTI_LINE_20 - * @arg @ref LL_EXTI_LINE_21 - * @arg @ref LL_EXTI_LINE_25 - * @retval Returned value can be one of the following values: - * @arg @ref LL_EXTI_D3_PEND_CLR_DMACH6 - * @arg @ref LL_EXTI_D3_PEND_CLR_DMACH7 - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM4 (*) - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM5 (*) - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM2 (*) - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM3 (*) - * - * (*) value not defined in all devices. - */ -__STATIC_INLINE uint32_t LL_D3_EXTI_GetPendClearSel_16_31(uint32_t ExtiLine) -{ - return (uint32_t)(READ_BIT(EXTI->D3PCR1H, (((ExtiLine >> EXTI_IMR1_IM16_Pos) * (ExtiLine >> EXTI_IMR1_IM16_Pos)) * 3UL)) / ((ExtiLine >> EXTI_IMR1_IM16_Pos) * (ExtiLine >> EXTI_IMR1_IM16_Pos))); -} - -/** - * @brief Get ExtLine D3 Domain Pend Clear Source selection for Lines in range 32 to 47 - * @rmtoll D3PCR2L PCSx LL_D3_EXTI_GetPendClearSel_32_47 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_34 - * @arg @ref LL_EXTI_LINE_35 - * @arg @ref LL_EXTI_LINE_41 - * @retval Returned value can be one of the following values: - * @arg @ref LL_EXTI_D3_PEND_CLR_DMACH6 - * @arg @ref LL_EXTI_D3_PEND_CLR_DMACH7 - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM4 (*) - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM5 (*) - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM2 (*) - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM3 (*) - * - * (*) value not defined in all devices. - */ -__STATIC_INLINE uint32_t LL_D3_EXTI_GetPendClearSel_32_47(uint32_t ExtiLine) -{ - return (uint32_t)(READ_BIT(EXTI->D3PCR2L, ((ExtiLine * ExtiLine) * 3UL)) / (ExtiLine * ExtiLine)); -} - -/** - * @brief Get ExtLine D3 Domain Pend Clear Source selection for Lines in range 48 to 63 - * @rmtoll D3PCR2H PCSx LL_D3_EXTI_GetPendClearSel_48_63 - * @param ExtiLine This parameter can be one of the following values: - * @arg @ref LL_EXTI_LINE_48 - * @arg @ref LL_EXTI_LINE_49 - * @arg @ref LL_EXTI_LINE_50 - * @arg @ref LL_EXTI_LINE_51 - * @arg @ref LL_EXTI_LINE_52 - * @arg @ref LL_EXTI_LINE_53 - * @retval Returned value can be one of the following values: - * @arg @ref LL_EXTI_D3_PEND_CLR_DMACH6 - * @arg @ref LL_EXTI_D3_PEND_CLR_DMACH7 - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM4 (*) - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM5 (*) - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM2 (*) - * @arg @ref LL_EXTI_D3_PEND_CLR_LPTIM3 (*) - * - * (*) value not defined in all devices. - */ -__STATIC_INLINE uint32_t LL_D3_EXTI_GetPendClearSel_48_63(uint32_t ExtiLine) -{ - return (uint32_t)(READ_BIT(EXTI->D3PCR2H, (((ExtiLine >> EXTI_IMR2_IM48_Pos) * (ExtiLine >> EXTI_IMR2_IM48_Pos)) * 3UL)) / ((ExtiLine >> EXTI_IMR2_IM48_Pos) * (ExtiLine >> EXTI_IMR2_IM48_Pos))); -} - - - -/** - * @} - */ - -#if defined(USE_FULL_LL_DRIVER) -/** @defgroup EXTI_LL_EF_Init Initialization and de-initialization functions - * @{, - */ - -ErrorStatus LL_EXTI_Init(LL_EXTI_InitTypeDef *EXTI_InitStruct); -ErrorStatus LL_EXTI_DeInit(void); -void LL_EXTI_StructInit(LL_EXTI_InitTypeDef *EXTI_InitStruct); - - -/** - * @} - */ -#endif /* USE_FULL_LL_DRIVER */ - -/** - * @} - */ - -/** - * @} - */ - -#endif /* EXTI */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* __STM32H7xx_LL_EXTI_H */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_gpio.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_gpio.h deleted file mode 100644 index b51f9d3..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_gpio.h +++ /dev/null @@ -1,984 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_ll_gpio.h - * @author MCD Application Team - * @brief Header file of GPIO LL module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_LL_GPIO_H -#define STM32H7xx_LL_GPIO_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx.h" - -/** @addtogroup STM32H7xx_LL_Driver - * @{ - */ - -#if defined (GPIOA) || defined (GPIOB) || defined (GPIOC) || defined (GPIOD) || defined (GPIOE) || defined (GPIOF) || defined (GPIOG) || defined (GPIOH) || defined (GPIOI) || defined (GPIOJ) || defined (GPIOK) - -/** @defgroup GPIO_LL GPIO - * @{ - */ - -/* Private types -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private constants ---------------------------------------------------------*/ -/* Private macros ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) -/** @defgroup GPIO_LL_Private_Macros GPIO Private Macros - * @{ - */ - -/** - * @} - */ -#endif /*USE_FULL_LL_DRIVER*/ - -/* Exported types ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) -/** @defgroup GPIO_LL_ES_INIT GPIO Exported Init structures - * @{ - */ - -/** - * @brief LL GPIO Init Structure definition - */ -typedef struct -{ - uint32_t Pin; /*!< Specifies the GPIO pins to be configured. - This parameter can be any value of @ref GPIO_LL_EC_PIN */ - - uint32_t Mode; /*!< Specifies the operating mode for the selected pins. - This parameter can be a value of @ref GPIO_LL_EC_MODE. - - GPIO HW configuration can be modified afterwards using unitary function @ref LL_GPIO_SetPinMode().*/ - - uint32_t Speed; /*!< Specifies the speed for the selected pins. - This parameter can be a value of @ref GPIO_LL_EC_SPEED. - - GPIO HW configuration can be modified afterwards using unitary function @ref LL_GPIO_SetPinSpeed().*/ - - uint32_t OutputType; /*!< Specifies the operating output type for the selected pins. - This parameter can be a value of @ref GPIO_LL_EC_OUTPUT. - - GPIO HW configuration can be modified afterwards using unitary function @ref LL_GPIO_SetPinOutputType().*/ - - uint32_t Pull; /*!< Specifies the operating Pull-up/Pull down for the selected pins. - This parameter can be a value of @ref GPIO_LL_EC_PULL. - - GPIO HW configuration can be modified afterwards using unitary function @ref LL_GPIO_SetPinPull().*/ - - uint32_t Alternate; /*!< Specifies the Peripheral to be connected to the selected pins. - This parameter can be a value of @ref GPIO_LL_EC_AF. - - GPIO HW configuration can be modified afterwards using unitary function @ref LL_GPIO_SetAFPin_0_7() and LL_GPIO_SetAFPin_8_15().*/ -} LL_GPIO_InitTypeDef; - -/** - * @} - */ -#endif /* USE_FULL_LL_DRIVER */ - -/* Exported constants --------------------------------------------------------*/ -/** @defgroup GPIO_LL_Exported_Constants GPIO Exported Constants - * @{ - */ - -/** @defgroup GPIO_LL_EC_PIN PIN - * @{ - */ -#define LL_GPIO_PIN_0 GPIO_BSRR_BS0 /*!< Select pin 0 */ -#define LL_GPIO_PIN_1 GPIO_BSRR_BS1 /*!< Select pin 1 */ -#define LL_GPIO_PIN_2 GPIO_BSRR_BS2 /*!< Select pin 2 */ -#define LL_GPIO_PIN_3 GPIO_BSRR_BS3 /*!< Select pin 3 */ -#define LL_GPIO_PIN_4 GPIO_BSRR_BS4 /*!< Select pin 4 */ -#define LL_GPIO_PIN_5 GPIO_BSRR_BS5 /*!< Select pin 5 */ -#define LL_GPIO_PIN_6 GPIO_BSRR_BS6 /*!< Select pin 6 */ -#define LL_GPIO_PIN_7 GPIO_BSRR_BS7 /*!< Select pin 7 */ -#define LL_GPIO_PIN_8 GPIO_BSRR_BS8 /*!< Select pin 8 */ -#define LL_GPIO_PIN_9 GPIO_BSRR_BS9 /*!< Select pin 9 */ -#define LL_GPIO_PIN_10 GPIO_BSRR_BS10 /*!< Select pin 10 */ -#define LL_GPIO_PIN_11 GPIO_BSRR_BS11 /*!< Select pin 11 */ -#define LL_GPIO_PIN_12 GPIO_BSRR_BS12 /*!< Select pin 12 */ -#define LL_GPIO_PIN_13 GPIO_BSRR_BS13 /*!< Select pin 13 */ -#define LL_GPIO_PIN_14 GPIO_BSRR_BS14 /*!< Select pin 14 */ -#define LL_GPIO_PIN_15 GPIO_BSRR_BS15 /*!< Select pin 15 */ -#define LL_GPIO_PIN_ALL (GPIO_BSRR_BS0 | GPIO_BSRR_BS1 | GPIO_BSRR_BS2 | \ - GPIO_BSRR_BS3 | GPIO_BSRR_BS4 | GPIO_BSRR_BS5 | \ - GPIO_BSRR_BS6 | GPIO_BSRR_BS7 | GPIO_BSRR_BS8 | \ - GPIO_BSRR_BS9 | GPIO_BSRR_BS10 | GPIO_BSRR_BS11 | \ - GPIO_BSRR_BS12 | GPIO_BSRR_BS13 | GPIO_BSRR_BS14 | \ - GPIO_BSRR_BS15) /*!< Select all pins */ -/** - * @} - */ - -/** @defgroup GPIO_LL_EC_MODE Mode - * @{ - */ -#define LL_GPIO_MODE_INPUT (0x00000000U) /*!< Select input mode */ -#define LL_GPIO_MODE_OUTPUT GPIO_MODER_MODE0_0 /*!< Select output mode */ -#define LL_GPIO_MODE_ALTERNATE GPIO_MODER_MODE0_1 /*!< Select alternate function mode */ -#define LL_GPIO_MODE_ANALOG GPIO_MODER_MODE0 /*!< Select analog mode */ -/** - * @} - */ - -/** @defgroup GPIO_LL_EC_OUTPUT Output Type - * @{ - */ -#define LL_GPIO_OUTPUT_PUSHPULL (0x00000000U) /*!< Select push-pull as output type */ -#define LL_GPIO_OUTPUT_OPENDRAIN GPIO_OTYPER_OT0 /*!< Select open-drain as output type */ -/** - * @} - */ - -/** @defgroup GPIO_LL_EC_SPEED Output Speed - * @{ - */ -#define LL_GPIO_SPEED_FREQ_LOW (0x00000000U) /*!< Select I/O low output speed */ -#define LL_GPIO_SPEED_FREQ_MEDIUM GPIO_OSPEEDR_OSPEED0_0 /*!< Select I/O medium output speed */ -#define LL_GPIO_SPEED_FREQ_HIGH GPIO_OSPEEDR_OSPEED0_1 /*!< Select I/O fast output speed */ -#define LL_GPIO_SPEED_FREQ_VERY_HIGH GPIO_OSPEEDR_OSPEED0 /*!< Select I/O high output speed */ -/** - * @} - */ -#define LL_GPIO_SPEED_LOW LL_GPIO_SPEED_FREQ_LOW -#define LL_GPIO_SPEED_MEDIUM LL_GPIO_SPEED_FREQ_MEDIUM -#define LL_GPIO_SPEED_FAST LL_GPIO_SPEED_FREQ_HIGH -#define LL_GPIO_SPEED_HIGH LL_GPIO_SPEED_FREQ_VERY_HIGH - - -/** @defgroup GPIO_LL_EC_PULL Pull Up Pull Down - * @{ - */ -#define LL_GPIO_PULL_NO (0x00000000U) /*!< Select I/O no pull */ -#define LL_GPIO_PULL_UP GPIO_PUPDR_PUPD0_0 /*!< Select I/O pull up */ -#define LL_GPIO_PULL_DOWN GPIO_PUPDR_PUPD0_1 /*!< Select I/O pull down */ -/** - * @} - */ - -/** @defgroup GPIO_LL_EC_AF Alternate Function - * @{ - */ -#define LL_GPIO_AF_0 (0x0000000U) /*!< Select alternate function 0 */ -#define LL_GPIO_AF_1 (0x0000001U) /*!< Select alternate function 1 */ -#define LL_GPIO_AF_2 (0x0000002U) /*!< Select alternate function 2 */ -#define LL_GPIO_AF_3 (0x0000003U) /*!< Select alternate function 3 */ -#define LL_GPIO_AF_4 (0x0000004U) /*!< Select alternate function 4 */ -#define LL_GPIO_AF_5 (0x0000005U) /*!< Select alternate function 5 */ -#define LL_GPIO_AF_6 (0x0000006U) /*!< Select alternate function 6 */ -#define LL_GPIO_AF_7 (0x0000007U) /*!< Select alternate function 7 */ -#define LL_GPIO_AF_8 (0x0000008U) /*!< Select alternate function 8 */ -#define LL_GPIO_AF_9 (0x0000009U) /*!< Select alternate function 9 */ -#define LL_GPIO_AF_10 (0x000000AU) /*!< Select alternate function 10 */ -#define LL_GPIO_AF_11 (0x000000BU) /*!< Select alternate function 11 */ -#define LL_GPIO_AF_12 (0x000000CU) /*!< Select alternate function 12 */ -#define LL_GPIO_AF_13 (0x000000DU) /*!< Select alternate function 13 */ -#define LL_GPIO_AF_14 (0x000000EU) /*!< Select alternate function 14 */ -#define LL_GPIO_AF_15 (0x000000FU) /*!< Select alternate function 15 */ -/** - * @} - */ - -/** - * @} - */ - -/* Exported macro ------------------------------------------------------------*/ -/** @defgroup GPIO_LL_Exported_Macros GPIO Exported Macros - * @{ - */ - -/** @defgroup GPIO_LL_EM_WRITE_READ Common Write and read registers Macros - * @{ - */ - -/** - * @brief Write a value in GPIO register - * @param __INSTANCE__ GPIO Instance - * @param __REG__ Register to be written - * @param __VALUE__ Value to be written in the register - * @retval None - */ -#define LL_GPIO_WriteReg(__INSTANCE__, __REG__, __VALUE__) WRITE_REG(__INSTANCE__->__REG__, (__VALUE__)) - -/** - * @brief Read a value in GPIO register - * @param __INSTANCE__ GPIO Instance - * @param __REG__ Register to be read - * @retval Register value - */ -#define LL_GPIO_ReadReg(__INSTANCE__, __REG__) READ_REG(__INSTANCE__->__REG__) -/** - * @} - */ - -/** - * @} - */ - -/* Exported functions --------------------------------------------------------*/ -/** @defgroup GPIO_LL_Exported_Functions GPIO Exported Functions - * @{ - */ - -/** @defgroup GPIO_LL_EF_Port_Configuration Port Configuration - * @{ - */ - -/** - * @brief Configure gpio mode for a dedicated pin on dedicated port. - * @note I/O mode can be Input mode, General purpose output, Alternate function mode or Analog. - * @note Warning: only one pin can be passed as parameter. - * @rmtoll MODER MODEy LL_GPIO_SetPinMode - * @param GPIOx GPIO Port - * @param Pin This parameter can be one of the following values: - * @arg @ref LL_GPIO_PIN_0 - * @arg @ref LL_GPIO_PIN_1 - * @arg @ref LL_GPIO_PIN_2 - * @arg @ref LL_GPIO_PIN_3 - * @arg @ref LL_GPIO_PIN_4 - * @arg @ref LL_GPIO_PIN_5 - * @arg @ref LL_GPIO_PIN_6 - * @arg @ref LL_GPIO_PIN_7 - * @arg @ref LL_GPIO_PIN_8 - * @arg @ref LL_GPIO_PIN_9 - * @arg @ref LL_GPIO_PIN_10 - * @arg @ref LL_GPIO_PIN_11 - * @arg @ref LL_GPIO_PIN_12 - * @arg @ref LL_GPIO_PIN_13 - * @arg @ref LL_GPIO_PIN_14 - * @arg @ref LL_GPIO_PIN_15 - * @param Mode This parameter can be one of the following values: - * @arg @ref LL_GPIO_MODE_INPUT - * @arg @ref LL_GPIO_MODE_OUTPUT - * @arg @ref LL_GPIO_MODE_ALTERNATE - * @arg @ref LL_GPIO_MODE_ANALOG - * @retval None - */ -__STATIC_INLINE void LL_GPIO_SetPinMode(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Mode) -{ - MODIFY_REG(GPIOx->MODER, ((Pin * Pin) * GPIO_MODER_MODE0), ((Pin * Pin) * Mode)); -} - -/** - * @brief Return gpio mode for a dedicated pin on dedicated port. - * @note I/O mode can be Input mode, General purpose output, Alternate function mode or Analog. - * @note Warning: only one pin can be passed as parameter. - * @rmtoll MODER MODEy LL_GPIO_GetPinMode - * @param GPIOx GPIO Port - * @param Pin This parameter can be one of the following values: - * @arg @ref LL_GPIO_PIN_0 - * @arg @ref LL_GPIO_PIN_1 - * @arg @ref LL_GPIO_PIN_2 - * @arg @ref LL_GPIO_PIN_3 - * @arg @ref LL_GPIO_PIN_4 - * @arg @ref LL_GPIO_PIN_5 - * @arg @ref LL_GPIO_PIN_6 - * @arg @ref LL_GPIO_PIN_7 - * @arg @ref LL_GPIO_PIN_8 - * @arg @ref LL_GPIO_PIN_9 - * @arg @ref LL_GPIO_PIN_10 - * @arg @ref LL_GPIO_PIN_11 - * @arg @ref LL_GPIO_PIN_12 - * @arg @ref LL_GPIO_PIN_13 - * @arg @ref LL_GPIO_PIN_14 - * @arg @ref LL_GPIO_PIN_15 - * @retval Returned value can be one of the following values: - * @arg @ref LL_GPIO_MODE_INPUT - * @arg @ref LL_GPIO_MODE_OUTPUT - * @arg @ref LL_GPIO_MODE_ALTERNATE - * @arg @ref LL_GPIO_MODE_ANALOG - */ -__STATIC_INLINE uint32_t LL_GPIO_GetPinMode(GPIO_TypeDef *GPIOx, uint32_t Pin) -{ - return (uint32_t)(READ_BIT(GPIOx->MODER, ((Pin * Pin) * GPIO_MODER_MODE0)) / (Pin * Pin)); -} - -/** - * @brief Configure gpio output type for several pins on dedicated port. - * @note Output type as to be set when gpio pin is in output or - * alternate modes. Possible type are Push-pull or Open-drain. - * @rmtoll OTYPER OTy LL_GPIO_SetPinOutputType - * @param GPIOx GPIO Port - * @param PinMask This parameter can be a combination of the following values: - * @arg @ref LL_GPIO_PIN_0 - * @arg @ref LL_GPIO_PIN_1 - * @arg @ref LL_GPIO_PIN_2 - * @arg @ref LL_GPIO_PIN_3 - * @arg @ref LL_GPIO_PIN_4 - * @arg @ref LL_GPIO_PIN_5 - * @arg @ref LL_GPIO_PIN_6 - * @arg @ref LL_GPIO_PIN_7 - * @arg @ref LL_GPIO_PIN_8 - * @arg @ref LL_GPIO_PIN_9 - * @arg @ref LL_GPIO_PIN_10 - * @arg @ref LL_GPIO_PIN_11 - * @arg @ref LL_GPIO_PIN_12 - * @arg @ref LL_GPIO_PIN_13 - * @arg @ref LL_GPIO_PIN_14 - * @arg @ref LL_GPIO_PIN_15 - * @arg @ref LL_GPIO_PIN_ALL - * @param OutputType This parameter can be one of the following values: - * @arg @ref LL_GPIO_OUTPUT_PUSHPULL - * @arg @ref LL_GPIO_OUTPUT_OPENDRAIN - * @retval None - */ -__STATIC_INLINE void LL_GPIO_SetPinOutputType(GPIO_TypeDef *GPIOx, uint32_t PinMask, uint32_t OutputType) -{ - MODIFY_REG(GPIOx->OTYPER, PinMask, (PinMask * OutputType)); -} - -/** - * @brief Return gpio output type for several pins on dedicated port. - * @note Output type as to be set when gpio pin is in output or - * alternate modes. Possible type are Push-pull or Open-drain. - * @note Warning: only one pin can be passed as parameter. - * @rmtoll OTYPER OTy LL_GPIO_GetPinOutputType - * @param GPIOx GPIO Port - * @param Pin This parameter can be one of the following values: - * @arg @ref LL_GPIO_PIN_0 - * @arg @ref LL_GPIO_PIN_1 - * @arg @ref LL_GPIO_PIN_2 - * @arg @ref LL_GPIO_PIN_3 - * @arg @ref LL_GPIO_PIN_4 - * @arg @ref LL_GPIO_PIN_5 - * @arg @ref LL_GPIO_PIN_6 - * @arg @ref LL_GPIO_PIN_7 - * @arg @ref LL_GPIO_PIN_8 - * @arg @ref LL_GPIO_PIN_9 - * @arg @ref LL_GPIO_PIN_10 - * @arg @ref LL_GPIO_PIN_11 - * @arg @ref LL_GPIO_PIN_12 - * @arg @ref LL_GPIO_PIN_13 - * @arg @ref LL_GPIO_PIN_14 - * @arg @ref LL_GPIO_PIN_15 - * @arg @ref LL_GPIO_PIN_ALL - * @retval Returned value can be one of the following values: - * @arg @ref LL_GPIO_OUTPUT_PUSHPULL - * @arg @ref LL_GPIO_OUTPUT_OPENDRAIN - */ -__STATIC_INLINE uint32_t LL_GPIO_GetPinOutputType(GPIO_TypeDef *GPIOx, uint32_t Pin) -{ - return (uint32_t)(READ_BIT(GPIOx->OTYPER, Pin) / Pin); -} - -/** - * @brief Configure gpio speed for a dedicated pin on dedicated port. - * @note I/O speed can be Low, Medium, Fast or High speed. - * @note Warning: only one pin can be passed as parameter. - * @note Refer to datasheet for frequency specifications and the power - * supply and load conditions for each speed. - * @rmtoll OSPEEDR OSPEEDy LL_GPIO_SetPinSpeed - * @param GPIOx GPIO Port - * @param Pin This parameter can be one of the following values: - * @arg @ref LL_GPIO_PIN_0 - * @arg @ref LL_GPIO_PIN_1 - * @arg @ref LL_GPIO_PIN_2 - * @arg @ref LL_GPIO_PIN_3 - * @arg @ref LL_GPIO_PIN_4 - * @arg @ref LL_GPIO_PIN_5 - * @arg @ref LL_GPIO_PIN_6 - * @arg @ref LL_GPIO_PIN_7 - * @arg @ref LL_GPIO_PIN_8 - * @arg @ref LL_GPIO_PIN_9 - * @arg @ref LL_GPIO_PIN_10 - * @arg @ref LL_GPIO_PIN_11 - * @arg @ref LL_GPIO_PIN_12 - * @arg @ref LL_GPIO_PIN_13 - * @arg @ref LL_GPIO_PIN_14 - * @arg @ref LL_GPIO_PIN_15 - * @param Speed This parameter can be one of the following values: - * @arg @ref LL_GPIO_SPEED_FREQ_LOW - * @arg @ref LL_GPIO_SPEED_FREQ_MEDIUM - * @arg @ref LL_GPIO_SPEED_FREQ_HIGH - * @arg @ref LL_GPIO_SPEED_FREQ_VERY_HIGH - * @retval None - */ -__STATIC_INLINE void LL_GPIO_SetPinSpeed(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Speed) -{ - MODIFY_REG(GPIOx->OSPEEDR, ((Pin * Pin) * GPIO_OSPEEDR_OSPEED0), ((Pin * Pin) * Speed)); -} - -/** - * @brief Return gpio speed for a dedicated pin on dedicated port. - * @note I/O speed can be Low, Medium, Fast or High speed. - * @note Warning: only one pin can be passed as parameter. - * @note Refer to datasheet for frequency specifications and the power - * supply and load conditions for each speed. - * @rmtoll OSPEEDR OSPEEDy LL_GPIO_GetPinSpeed - * @param GPIOx GPIO Port - * @param Pin This parameter can be one of the following values: - * @arg @ref LL_GPIO_PIN_0 - * @arg @ref LL_GPIO_PIN_1 - * @arg @ref LL_GPIO_PIN_2 - * @arg @ref LL_GPIO_PIN_3 - * @arg @ref LL_GPIO_PIN_4 - * @arg @ref LL_GPIO_PIN_5 - * @arg @ref LL_GPIO_PIN_6 - * @arg @ref LL_GPIO_PIN_7 - * @arg @ref LL_GPIO_PIN_8 - * @arg @ref LL_GPIO_PIN_9 - * @arg @ref LL_GPIO_PIN_10 - * @arg @ref LL_GPIO_PIN_11 - * @arg @ref LL_GPIO_PIN_12 - * @arg @ref LL_GPIO_PIN_13 - * @arg @ref LL_GPIO_PIN_14 - * @arg @ref LL_GPIO_PIN_15 - * @retval Returned value can be one of the following values: - * @arg @ref LL_GPIO_SPEED_FREQ_LOW - * @arg @ref LL_GPIO_SPEED_FREQ_MEDIUM - * @arg @ref LL_GPIO_SPEED_FREQ_HIGH - * @arg @ref LL_GPIO_SPEED_FREQ_VERY_HIGH - */ -__STATIC_INLINE uint32_t LL_GPIO_GetPinSpeed(GPIO_TypeDef *GPIOx, uint32_t Pin) -{ - return (uint32_t)(READ_BIT(GPIOx->OSPEEDR, ((Pin * Pin) * GPIO_OSPEEDR_OSPEED0)) / (Pin * Pin)); -} - -/** - * @brief Configure gpio pull-up or pull-down for a dedicated pin on a dedicated port. - * @note Warning: only one pin can be passed as parameter. - * @rmtoll PUPDR PUPDy LL_GPIO_SetPinPull - * @param GPIOx GPIO Port - * @param Pin This parameter can be one of the following values: - * @arg @ref LL_GPIO_PIN_0 - * @arg @ref LL_GPIO_PIN_1 - * @arg @ref LL_GPIO_PIN_2 - * @arg @ref LL_GPIO_PIN_3 - * @arg @ref LL_GPIO_PIN_4 - * @arg @ref LL_GPIO_PIN_5 - * @arg @ref LL_GPIO_PIN_6 - * @arg @ref LL_GPIO_PIN_7 - * @arg @ref LL_GPIO_PIN_8 - * @arg @ref LL_GPIO_PIN_9 - * @arg @ref LL_GPIO_PIN_10 - * @arg @ref LL_GPIO_PIN_11 - * @arg @ref LL_GPIO_PIN_12 - * @arg @ref LL_GPIO_PIN_13 - * @arg @ref LL_GPIO_PIN_14 - * @arg @ref LL_GPIO_PIN_15 - * @param Pull This parameter can be one of the following values: - * @arg @ref LL_GPIO_PULL_NO - * @arg @ref LL_GPIO_PULL_UP - * @arg @ref LL_GPIO_PULL_DOWN - * @retval None - */ -__STATIC_INLINE void LL_GPIO_SetPinPull(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Pull) -{ - MODIFY_REG(GPIOx->PUPDR, ((Pin * Pin) * GPIO_PUPDR_PUPD0), ((Pin * Pin) * Pull)); -} - -/** - * @brief Return gpio pull-up or pull-down for a dedicated pin on a dedicated port - * @note Warning: only one pin can be passed as parameter. - * @rmtoll PUPDR PUPDy LL_GPIO_GetPinPull - * @param GPIOx GPIO Port - * @param Pin This parameter can be one of the following values: - * @arg @ref LL_GPIO_PIN_0 - * @arg @ref LL_GPIO_PIN_1 - * @arg @ref LL_GPIO_PIN_2 - * @arg @ref LL_GPIO_PIN_3 - * @arg @ref LL_GPIO_PIN_4 - * @arg @ref LL_GPIO_PIN_5 - * @arg @ref LL_GPIO_PIN_6 - * @arg @ref LL_GPIO_PIN_7 - * @arg @ref LL_GPIO_PIN_8 - * @arg @ref LL_GPIO_PIN_9 - * @arg @ref LL_GPIO_PIN_10 - * @arg @ref LL_GPIO_PIN_11 - * @arg @ref LL_GPIO_PIN_12 - * @arg @ref LL_GPIO_PIN_13 - * @arg @ref LL_GPIO_PIN_14 - * @arg @ref LL_GPIO_PIN_15 - * @retval Returned value can be one of the following values: - * @arg @ref LL_GPIO_PULL_NO - * @arg @ref LL_GPIO_PULL_UP - * @arg @ref LL_GPIO_PULL_DOWN - */ -__STATIC_INLINE uint32_t LL_GPIO_GetPinPull(GPIO_TypeDef *GPIOx, uint32_t Pin) -{ - return (uint32_t)(READ_BIT(GPIOx->PUPDR, ((Pin * Pin) * GPIO_PUPDR_PUPD0)) / (Pin * Pin)); -} - -/** - * @brief Configure gpio alternate function of a dedicated pin from 0 to 7 for a dedicated port. - * @note Possible values are from AF0 to AF15 depending on target. - * @note Warning: only one pin can be passed as parameter. - * @rmtoll AFRL AFSELy LL_GPIO_SetAFPin_0_7 - * @param GPIOx GPIO Port - * @param Pin This parameter can be one of the following values: - * @arg @ref LL_GPIO_PIN_0 - * @arg @ref LL_GPIO_PIN_1 - * @arg @ref LL_GPIO_PIN_2 - * @arg @ref LL_GPIO_PIN_3 - * @arg @ref LL_GPIO_PIN_4 - * @arg @ref LL_GPIO_PIN_5 - * @arg @ref LL_GPIO_PIN_6 - * @arg @ref LL_GPIO_PIN_7 - * @param Alternate This parameter can be one of the following values: - * @arg @ref LL_GPIO_AF_0 - * @arg @ref LL_GPIO_AF_1 - * @arg @ref LL_GPIO_AF_2 - * @arg @ref LL_GPIO_AF_3 - * @arg @ref LL_GPIO_AF_4 - * @arg @ref LL_GPIO_AF_5 - * @arg @ref LL_GPIO_AF_6 - * @arg @ref LL_GPIO_AF_7 - * @arg @ref LL_GPIO_AF_8 - * @arg @ref LL_GPIO_AF_9 - * @arg @ref LL_GPIO_AF_10 - * @arg @ref LL_GPIO_AF_11 - * @arg @ref LL_GPIO_AF_12 - * @arg @ref LL_GPIO_AF_13 - * @arg @ref LL_GPIO_AF_14 - * @arg @ref LL_GPIO_AF_15 - * @retval None - */ -__STATIC_INLINE void LL_GPIO_SetAFPin_0_7(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Alternate) -{ - MODIFY_REG(GPIOx->AFR[0], ((((Pin * Pin) * Pin) * Pin) * GPIO_AFRL_AFSEL0), - ((((Pin * Pin) * Pin) * Pin) * Alternate)); -} - -/** - * @brief Return gpio alternate function of a dedicated pin from 0 to 7 for a dedicated port. - * @rmtoll AFRL AFSELy LL_GPIO_GetAFPin_0_7 - * @param GPIOx GPIO Port - * @param Pin This parameter can be one of the following values: - * @arg @ref LL_GPIO_PIN_0 - * @arg @ref LL_GPIO_PIN_1 - * @arg @ref LL_GPIO_PIN_2 - * @arg @ref LL_GPIO_PIN_3 - * @arg @ref LL_GPIO_PIN_4 - * @arg @ref LL_GPIO_PIN_5 - * @arg @ref LL_GPIO_PIN_6 - * @arg @ref LL_GPIO_PIN_7 - * @retval Returned value can be one of the following values: - * @arg @ref LL_GPIO_AF_0 - * @arg @ref LL_GPIO_AF_1 - * @arg @ref LL_GPIO_AF_2 - * @arg @ref LL_GPIO_AF_3 - * @arg @ref LL_GPIO_AF_4 - * @arg @ref LL_GPIO_AF_5 - * @arg @ref LL_GPIO_AF_6 - * @arg @ref LL_GPIO_AF_7 - * @arg @ref LL_GPIO_AF_8 - * @arg @ref LL_GPIO_AF_9 - * @arg @ref LL_GPIO_AF_10 - * @arg @ref LL_GPIO_AF_11 - * @arg @ref LL_GPIO_AF_12 - * @arg @ref LL_GPIO_AF_13 - * @arg @ref LL_GPIO_AF_14 - * @arg @ref LL_GPIO_AF_15 - */ -__STATIC_INLINE uint32_t LL_GPIO_GetAFPin_0_7(GPIO_TypeDef *GPIOx, uint32_t Pin) -{ - return (uint32_t)(READ_BIT(GPIOx->AFR[0], - ((((Pin * Pin) * Pin) * Pin) * GPIO_AFRL_AFSEL0)) / (((Pin * Pin) * Pin) * Pin)); -} - -/** - * @brief Configure gpio alternate function of a dedicated pin from 8 to 15 for a dedicated port. - * @note Possible values are from AF0 to AF15 depending on target. - * @note Warning: only one pin can be passed as parameter. - * @rmtoll AFRH AFSELy LL_GPIO_SetAFPin_8_15 - * @param GPIOx GPIO Port - * @param Pin This parameter can be one of the following values: - * @arg @ref LL_GPIO_PIN_8 - * @arg @ref LL_GPIO_PIN_9 - * @arg @ref LL_GPIO_PIN_10 - * @arg @ref LL_GPIO_PIN_11 - * @arg @ref LL_GPIO_PIN_12 - * @arg @ref LL_GPIO_PIN_13 - * @arg @ref LL_GPIO_PIN_14 - * @arg @ref LL_GPIO_PIN_15 - * @param Alternate This parameter can be one of the following values: - * @arg @ref LL_GPIO_AF_0 - * @arg @ref LL_GPIO_AF_1 - * @arg @ref LL_GPIO_AF_2 - * @arg @ref LL_GPIO_AF_3 - * @arg @ref LL_GPIO_AF_4 - * @arg @ref LL_GPIO_AF_5 - * @arg @ref LL_GPIO_AF_6 - * @arg @ref LL_GPIO_AF_7 - * @arg @ref LL_GPIO_AF_8 - * @arg @ref LL_GPIO_AF_9 - * @arg @ref LL_GPIO_AF_10 - * @arg @ref LL_GPIO_AF_11 - * @arg @ref LL_GPIO_AF_12 - * @arg @ref LL_GPIO_AF_13 - * @arg @ref LL_GPIO_AF_14 - * @arg @ref LL_GPIO_AF_15 - * @retval None - */ -__STATIC_INLINE void LL_GPIO_SetAFPin_8_15(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Alternate) -{ - MODIFY_REG(GPIOx->AFR[1], (((((Pin >> 8U) * (Pin >> 8U)) * (Pin >> 8U)) * (Pin >> 8U)) * GPIO_AFRH_AFSEL8), - (((((Pin >> 8U) * (Pin >> 8U)) * (Pin >> 8U)) * (Pin >> 8U)) * Alternate)); -} - -/** - * @brief Return gpio alternate function of a dedicated pin from 8 to 15 for a dedicated port. - * @note Possible values are from AF0 to AF15 depending on target. - * @rmtoll AFRH AFSELy LL_GPIO_GetAFPin_8_15 - * @param GPIOx GPIO Port - * @param Pin This parameter can be one of the following values: - * @arg @ref LL_GPIO_PIN_8 - * @arg @ref LL_GPIO_PIN_9 - * @arg @ref LL_GPIO_PIN_10 - * @arg @ref LL_GPIO_PIN_11 - * @arg @ref LL_GPIO_PIN_12 - * @arg @ref LL_GPIO_PIN_13 - * @arg @ref LL_GPIO_PIN_14 - * @arg @ref LL_GPIO_PIN_15 - * @retval Returned value can be one of the following values: - * @arg @ref LL_GPIO_AF_0 - * @arg @ref LL_GPIO_AF_1 - * @arg @ref LL_GPIO_AF_2 - * @arg @ref LL_GPIO_AF_3 - * @arg @ref LL_GPIO_AF_4 - * @arg @ref LL_GPIO_AF_5 - * @arg @ref LL_GPIO_AF_6 - * @arg @ref LL_GPIO_AF_7 - * @arg @ref LL_GPIO_AF_8 - * @arg @ref LL_GPIO_AF_9 - * @arg @ref LL_GPIO_AF_10 - * @arg @ref LL_GPIO_AF_11 - * @arg @ref LL_GPIO_AF_12 - * @arg @ref LL_GPIO_AF_13 - * @arg @ref LL_GPIO_AF_14 - * @arg @ref LL_GPIO_AF_15 - */ -__STATIC_INLINE uint32_t LL_GPIO_GetAFPin_8_15(GPIO_TypeDef *GPIOx, uint32_t Pin) -{ - return (uint32_t)(READ_BIT(GPIOx->AFR[1], - (((((Pin >> 8U) * (Pin >> 8U)) * (Pin >> 8U)) * (Pin >> 8U)) * GPIO_AFRH_AFSEL8)) / ((((Pin >> 8U) * - (Pin >> 8U)) * (Pin >> 8U)) * (Pin >> 8U))); -} - - -/** - * @brief Lock configuration of several pins for a dedicated port. - * @note When the lock sequence has been applied on a port bit, the - * value of this port bit can no longer be modified until the - * next reset. - * @note Each lock bit freezes a specific configuration register - * (control and alternate function registers). - * @rmtoll LCKR LCKK LL_GPIO_LockPin - * @param GPIOx GPIO Port - * @param PinMask This parameter can be a combination of the following values: - * @arg @ref LL_GPIO_PIN_0 - * @arg @ref LL_GPIO_PIN_1 - * @arg @ref LL_GPIO_PIN_2 - * @arg @ref LL_GPIO_PIN_3 - * @arg @ref LL_GPIO_PIN_4 - * @arg @ref LL_GPIO_PIN_5 - * @arg @ref LL_GPIO_PIN_6 - * @arg @ref LL_GPIO_PIN_7 - * @arg @ref LL_GPIO_PIN_8 - * @arg @ref LL_GPIO_PIN_9 - * @arg @ref LL_GPIO_PIN_10 - * @arg @ref LL_GPIO_PIN_11 - * @arg @ref LL_GPIO_PIN_12 - * @arg @ref LL_GPIO_PIN_13 - * @arg @ref LL_GPIO_PIN_14 - * @arg @ref LL_GPIO_PIN_15 - * @arg @ref LL_GPIO_PIN_ALL - * @retval None - */ -__STATIC_INLINE void LL_GPIO_LockPin(GPIO_TypeDef *GPIOx, uint32_t PinMask) -{ - __IO uint32_t temp; - WRITE_REG(GPIOx->LCKR, GPIO_LCKR_LCKK | PinMask); - WRITE_REG(GPIOx->LCKR, PinMask); - WRITE_REG(GPIOx->LCKR, GPIO_LCKR_LCKK | PinMask); - /* Read LCKK register. This read is mandatory to complete key lock sequence */ - temp = READ_REG(GPIOx->LCKR); - (void) temp; -} - -/** - * @brief Return 1 if all pins passed as parameter, of a dedicated port, are locked. else Return 0. - * @rmtoll LCKR LCKy LL_GPIO_IsPinLocked - * @param GPIOx GPIO Port - * @param PinMask This parameter can be a combination of the following values: - * @arg @ref LL_GPIO_PIN_0 - * @arg @ref LL_GPIO_PIN_1 - * @arg @ref LL_GPIO_PIN_2 - * @arg @ref LL_GPIO_PIN_3 - * @arg @ref LL_GPIO_PIN_4 - * @arg @ref LL_GPIO_PIN_5 - * @arg @ref LL_GPIO_PIN_6 - * @arg @ref LL_GPIO_PIN_7 - * @arg @ref LL_GPIO_PIN_8 - * @arg @ref LL_GPIO_PIN_9 - * @arg @ref LL_GPIO_PIN_10 - * @arg @ref LL_GPIO_PIN_11 - * @arg @ref LL_GPIO_PIN_12 - * @arg @ref LL_GPIO_PIN_13 - * @arg @ref LL_GPIO_PIN_14 - * @arg @ref LL_GPIO_PIN_15 - * @arg @ref LL_GPIO_PIN_ALL - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_GPIO_IsPinLocked(GPIO_TypeDef *GPIOx, uint32_t PinMask) -{ - return ((READ_BIT(GPIOx->LCKR, PinMask) == (PinMask)) ? 1UL : 0UL); -} - -/** - * @brief Return 1 if one of the pin of a dedicated port is locked. else return 0. - * @rmtoll LCKR LCKK LL_GPIO_IsAnyPinLocked - * @param GPIOx GPIO Port - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_GPIO_IsAnyPinLocked(GPIO_TypeDef *GPIOx) -{ - return ((READ_BIT(GPIOx->LCKR, GPIO_LCKR_LCKK) == (GPIO_LCKR_LCKK)) ? 1UL : 0UL); -} - -/** - * @} - */ - -/** @defgroup GPIO_LL_EF_Data_Access Data Access - * @{ - */ - -/** - * @brief Return full input data register value for a dedicated port. - * @rmtoll IDR IDy LL_GPIO_ReadInputPort - * @param GPIOx GPIO Port - * @retval Input data register value of port - */ -__STATIC_INLINE uint32_t LL_GPIO_ReadInputPort(GPIO_TypeDef *GPIOx) -{ - return (uint32_t)(READ_REG(GPIOx->IDR)); -} - -/** - * @brief Return if input data level for several pins of dedicated port is high or low. - * @rmtoll IDR IDy LL_GPIO_IsInputPinSet - * @param GPIOx GPIO Port - * @param PinMask This parameter can be a combination of the following values: - * @arg @ref LL_GPIO_PIN_0 - * @arg @ref LL_GPIO_PIN_1 - * @arg @ref LL_GPIO_PIN_2 - * @arg @ref LL_GPIO_PIN_3 - * @arg @ref LL_GPIO_PIN_4 - * @arg @ref LL_GPIO_PIN_5 - * @arg @ref LL_GPIO_PIN_6 - * @arg @ref LL_GPIO_PIN_7 - * @arg @ref LL_GPIO_PIN_8 - * @arg @ref LL_GPIO_PIN_9 - * @arg @ref LL_GPIO_PIN_10 - * @arg @ref LL_GPIO_PIN_11 - * @arg @ref LL_GPIO_PIN_12 - * @arg @ref LL_GPIO_PIN_13 - * @arg @ref LL_GPIO_PIN_14 - * @arg @ref LL_GPIO_PIN_15 - * @arg @ref LL_GPIO_PIN_ALL - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_GPIO_IsInputPinSet(GPIO_TypeDef *GPIOx, uint32_t PinMask) -{ - return ((READ_BIT(GPIOx->IDR, PinMask) == (PinMask)) ? 1UL : 0UL); -} - -/** - * @brief Write output data register for the port. - * @rmtoll ODR ODy LL_GPIO_WriteOutputPort - * @param GPIOx GPIO Port - * @param PortValue Level value for each pin of the port - * @retval None - */ -__STATIC_INLINE void LL_GPIO_WriteOutputPort(GPIO_TypeDef *GPIOx, uint32_t PortValue) -{ - WRITE_REG(GPIOx->ODR, PortValue); -} - -/** - * @brief Return full output data register value for a dedicated port. - * @rmtoll ODR ODy LL_GPIO_ReadOutputPort - * @param GPIOx GPIO Port - * @retval Output data register value of port - */ -__STATIC_INLINE uint32_t LL_GPIO_ReadOutputPort(GPIO_TypeDef *GPIOx) -{ - return (uint32_t)(READ_REG(GPIOx->ODR)); -} - -/** - * @brief Return if input data level for several pins of dedicated port is high or low. - * @rmtoll ODR ODy LL_GPIO_IsOutputPinSet - * @param GPIOx GPIO Port - * @param PinMask This parameter can be a combination of the following values: - * @arg @ref LL_GPIO_PIN_0 - * @arg @ref LL_GPIO_PIN_1 - * @arg @ref LL_GPIO_PIN_2 - * @arg @ref LL_GPIO_PIN_3 - * @arg @ref LL_GPIO_PIN_4 - * @arg @ref LL_GPIO_PIN_5 - * @arg @ref LL_GPIO_PIN_6 - * @arg @ref LL_GPIO_PIN_7 - * @arg @ref LL_GPIO_PIN_8 - * @arg @ref LL_GPIO_PIN_9 - * @arg @ref LL_GPIO_PIN_10 - * @arg @ref LL_GPIO_PIN_11 - * @arg @ref LL_GPIO_PIN_12 - * @arg @ref LL_GPIO_PIN_13 - * @arg @ref LL_GPIO_PIN_14 - * @arg @ref LL_GPIO_PIN_15 - * @arg @ref LL_GPIO_PIN_ALL - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_GPIO_IsOutputPinSet(GPIO_TypeDef *GPIOx, uint32_t PinMask) -{ - return ((READ_BIT(GPIOx->ODR, PinMask) == (PinMask)) ? 1UL : 0UL); -} - -/** - * @brief Set several pins to high level on dedicated gpio port. - * @rmtoll BSRR BSy LL_GPIO_SetOutputPin - * @param GPIOx GPIO Port - * @param PinMask This parameter can be a combination of the following values: - * @arg @ref LL_GPIO_PIN_0 - * @arg @ref LL_GPIO_PIN_1 - * @arg @ref LL_GPIO_PIN_2 - * @arg @ref LL_GPIO_PIN_3 - * @arg @ref LL_GPIO_PIN_4 - * @arg @ref LL_GPIO_PIN_5 - * @arg @ref LL_GPIO_PIN_6 - * @arg @ref LL_GPIO_PIN_7 - * @arg @ref LL_GPIO_PIN_8 - * @arg @ref LL_GPIO_PIN_9 - * @arg @ref LL_GPIO_PIN_10 - * @arg @ref LL_GPIO_PIN_11 - * @arg @ref LL_GPIO_PIN_12 - * @arg @ref LL_GPIO_PIN_13 - * @arg @ref LL_GPIO_PIN_14 - * @arg @ref LL_GPIO_PIN_15 - * @arg @ref LL_GPIO_PIN_ALL - * @retval None - */ -__STATIC_INLINE void LL_GPIO_SetOutputPin(GPIO_TypeDef *GPIOx, uint32_t PinMask) -{ - WRITE_REG(GPIOx->BSRR, PinMask); -} - -/** - * @brief Set several pins to low level on dedicated gpio port. - * @rmtoll BSRR BRy LL_GPIO_ResetOutputPin - * @param GPIOx GPIO Port - * @param PinMask This parameter can be a combination of the following values: - * @arg @ref LL_GPIO_PIN_0 - * @arg @ref LL_GPIO_PIN_1 - * @arg @ref LL_GPIO_PIN_2 - * @arg @ref LL_GPIO_PIN_3 - * @arg @ref LL_GPIO_PIN_4 - * @arg @ref LL_GPIO_PIN_5 - * @arg @ref LL_GPIO_PIN_6 - * @arg @ref LL_GPIO_PIN_7 - * @arg @ref LL_GPIO_PIN_8 - * @arg @ref LL_GPIO_PIN_9 - * @arg @ref LL_GPIO_PIN_10 - * @arg @ref LL_GPIO_PIN_11 - * @arg @ref LL_GPIO_PIN_12 - * @arg @ref LL_GPIO_PIN_13 - * @arg @ref LL_GPIO_PIN_14 - * @arg @ref LL_GPIO_PIN_15 - * @arg @ref LL_GPIO_PIN_ALL - * @retval None - */ -__STATIC_INLINE void LL_GPIO_ResetOutputPin(GPIO_TypeDef *GPIOx, uint32_t PinMask) -{ - WRITE_REG(GPIOx->BSRR, PinMask << 16U); -} - -/** - * @brief Toggle data value for several pin of dedicated port. - * @rmtoll ODR ODy LL_GPIO_TogglePin - * @param GPIOx GPIO Port - * @param PinMask This parameter can be a combination of the following values: - * @arg @ref LL_GPIO_PIN_0 - * @arg @ref LL_GPIO_PIN_1 - * @arg @ref LL_GPIO_PIN_2 - * @arg @ref LL_GPIO_PIN_3 - * @arg @ref LL_GPIO_PIN_4 - * @arg @ref LL_GPIO_PIN_5 - * @arg @ref LL_GPIO_PIN_6 - * @arg @ref LL_GPIO_PIN_7 - * @arg @ref LL_GPIO_PIN_8 - * @arg @ref LL_GPIO_PIN_9 - * @arg @ref LL_GPIO_PIN_10 - * @arg @ref LL_GPIO_PIN_11 - * @arg @ref LL_GPIO_PIN_12 - * @arg @ref LL_GPIO_PIN_13 - * @arg @ref LL_GPIO_PIN_14 - * @arg @ref LL_GPIO_PIN_15 - * @arg @ref LL_GPIO_PIN_ALL - * @retval None - */ -__STATIC_INLINE void LL_GPIO_TogglePin(GPIO_TypeDef *GPIOx, uint32_t PinMask) -{ - uint32_t odr = READ_REG(GPIOx->ODR); - WRITE_REG(GPIOx->BSRR, ((odr & PinMask) << 16u) | (~odr & PinMask)); -} - -/** - * @} - */ - -#if defined(USE_FULL_LL_DRIVER) -/** @defgroup GPIO_LL_EF_Init Initialization and de-initialization functions - * @{ - */ - -ErrorStatus LL_GPIO_DeInit(GPIO_TypeDef *GPIOx); -ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct); -void LL_GPIO_StructInit(LL_GPIO_InitTypeDef *GPIO_InitStruct); - -/** - * @} - */ -#endif /* USE_FULL_LL_DRIVER */ - -/** - * @} - */ - -/** - * @} - */ - -#endif /*defined (GPIOA) || defined (GPIOB) || defined (GPIOC) || defined (GPIOD) || defined (GPIOE) || defined (GPIOF) || defined (GPIOG) || defined (GPIOH) || defined (GPIOI) || defined (GPIOJ) || defined (GPIOK) */ -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_LL_GPIO_H */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_hsem.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_hsem.h deleted file mode 100644 index cff88b5..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_hsem.h +++ /dev/null @@ -1,902 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_ll_hsem.h - * @author MCD Application Team - * @brief Header file of HSEM LL module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_LL_HSEM_H -#define STM32H7xx_LL_HSEM_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx.h" - -/** @addtogroup STM32H7xx_LL_Driver - * @{ - */ - -#if defined(HSEM) - -/** @defgroup HSEM_LL HSEM - * @{ - */ - -/* Private types -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private constants ---------------------------------------------------------*/ -/* Private macros ------------------------------------------------------------*/ - -/* Exported types ------------------------------------------------------------*/ -/* Exported constants --------------------------------------------------------*/ - -/** @defgroup HSEM_LL_Exported_Constants HSEM Exported Constants - * @{ - */ - -/** @defgroup HSEM_LL_EC_COREID COREID Defines - * @{ - */ -#define LL_HSEM_COREID_NONE 0U -#define LL_HSEM_COREID_CPU1 HSEM_CR_COREID_CPU1 -#if defined(DUAL_CORE) -#define LL_HSEM_COREID_CPU2 HSEM_CR_COREID_CPU2 -#endif /* DUAL_CORE */ -#define LL_HSEM_COREID HSEM_CR_COREID_CURRENT -/** - * @} - */ - - -/** @defgroup HSEM_LL_EC_GET_FLAG Get Flags Defines - * @brief Flags defines which can be used with LL_HSEM_ReadReg function - * @{ - */ - -#define LL_HSEM_SEMAPHORE_0 HSEM_C1IER_ISE0 -#define LL_HSEM_SEMAPHORE_1 HSEM_C1IER_ISE1 -#define LL_HSEM_SEMAPHORE_2 HSEM_C1IER_ISE2 -#define LL_HSEM_SEMAPHORE_3 HSEM_C1IER_ISE3 -#define LL_HSEM_SEMAPHORE_4 HSEM_C1IER_ISE4 -#define LL_HSEM_SEMAPHORE_5 HSEM_C1IER_ISE5 -#define LL_HSEM_SEMAPHORE_6 HSEM_C1IER_ISE6 -#define LL_HSEM_SEMAPHORE_7 HSEM_C1IER_ISE7 -#define LL_HSEM_SEMAPHORE_8 HSEM_C1IER_ISE8 -#define LL_HSEM_SEMAPHORE_9 HSEM_C1IER_ISE9 -#define LL_HSEM_SEMAPHORE_10 HSEM_C1IER_ISE10 -#define LL_HSEM_SEMAPHORE_11 HSEM_C1IER_ISE11 -#define LL_HSEM_SEMAPHORE_12 HSEM_C1IER_ISE12 -#define LL_HSEM_SEMAPHORE_13 HSEM_C1IER_ISE13 -#define LL_HSEM_SEMAPHORE_14 HSEM_C1IER_ISE14 -#define LL_HSEM_SEMAPHORE_15 HSEM_C1IER_ISE15 -#if (HSEM_SEMID_MAX == 15) -#define LL_HSEM_SEMAPHORE_ALL 0x0000FFFFU -#else /* HSEM_SEMID_MAX == 31 */ -#define LL_HSEM_SEMAPHORE_16 HSEM_C1IER_ISE16 -#define LL_HSEM_SEMAPHORE_17 HSEM_C1IER_ISE17 -#define LL_HSEM_SEMAPHORE_18 HSEM_C1IER_ISE18 -#define LL_HSEM_SEMAPHORE_19 HSEM_C1IER_ISE19 -#define LL_HSEM_SEMAPHORE_20 HSEM_C1IER_ISE20 -#define LL_HSEM_SEMAPHORE_21 HSEM_C1IER_ISE21 -#define LL_HSEM_SEMAPHORE_22 HSEM_C1IER_ISE22 -#define LL_HSEM_SEMAPHORE_23 HSEM_C1IER_ISE23 -#define LL_HSEM_SEMAPHORE_24 HSEM_C1IER_ISE24 -#define LL_HSEM_SEMAPHORE_25 HSEM_C1IER_ISE25 -#define LL_HSEM_SEMAPHORE_26 HSEM_C1IER_ISE26 -#define LL_HSEM_SEMAPHORE_27 HSEM_C1IER_ISE27 -#define LL_HSEM_SEMAPHORE_28 HSEM_C1IER_ISE28 -#define LL_HSEM_SEMAPHORE_29 HSEM_C1IER_ISE29 -#define LL_HSEM_SEMAPHORE_30 HSEM_C1IER_ISE30 -#define LL_HSEM_SEMAPHORE_31 HSEM_C1IER_ISE31 -#define LL_HSEM_SEMAPHORE_ALL 0xFFFFFFFFU -#endif /* HSEM_SEMID_MAX == 15 */ -/** - * @} - */ - -/** - * @} - */ - -/* Exported macro ------------------------------------------------------------*/ -/** @defgroup HSEM_LL_Exported_Macros HSEM Exported Macros - * @{ - */ - -/** @defgroup HSEM_LL_EM_WRITE_READ Common Write and read registers Macros - * @{ - */ - -/** - * @brief Write a value in HSEM register - * @param __INSTANCE__ HSEM Instance - * @param __REG__ Register to be written - * @param __VALUE__ Value to be written in the register - * @retval None - */ -#define LL_HSEM_WriteReg(__INSTANCE__, __REG__, __VALUE__) WRITE_REG(__INSTANCE__->__REG__, (__VALUE__)) - -/** - * @brief Read a value in HSEM register - * @param __INSTANCE__ HSEM Instance - * @param __REG__ Register to be read - * @retval Register value - */ -#define LL_HSEM_ReadReg(__INSTANCE__, __REG__) READ_REG(__INSTANCE__->__REG__) -/** - * @} - */ - -/** - * @} - */ - -/* Exported functions --------------------------------------------------------*/ -/** @defgroup HSEM_LL_Exported_Functions HSEM Exported Functions - * @{ - */ - -/** @defgroup HSEM_LL_EF_Data_Management Data_Management - * @{ - */ - - -/** - * @brief Return 1 if the semaphore is locked, else return 0. - * @rmtoll R LOCK LL_HSEM_IsSemaphoreLocked - * @param HSEMx HSEM Instance. - * @param Semaphore Semaphore number. Value between Min_Data=0 and Max_Data=31 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_HSEM_IsSemaphoreLocked(HSEM_TypeDef *HSEMx, uint32_t Semaphore) -{ - return ((READ_BIT(HSEMx->R[Semaphore], HSEM_R_LOCK) == (HSEM_R_LOCK_Msk)) ? 1UL : 0UL); -} - -/** - * @brief Get core id. - * @rmtoll R COREID LL_HSEM_GetCoreId - * @param HSEMx HSEM Instance. - * @param Semaphore Semaphore number. Value between Min_Data=0 and Max_Data=31 - * @retval Returned value can be one of the following values: - * @arg @ref LL_HSEM_COREID_NONE - * @arg @ref LL_HSEM_COREID_CPU1 - * @arg @ref LL_HSEM_COREID_CPU2 - */ -__STATIC_INLINE uint32_t LL_HSEM_GetCoreId(HSEM_TypeDef *HSEMx, uint32_t Semaphore) -{ - return (uint32_t)(READ_BIT(HSEMx->R[Semaphore], HSEM_R_COREID_Msk)); -} - -/** - * @brief Get process id. - * @rmtoll R PROCID LL_HSEM_GetProcessId - * @param HSEMx HSEM Instance. - * @param Semaphore Semaphore number. Value between Min_Data=0 and Max_Data=31 - * @retval Process number. Value between Min_Data=0 and Max_Data=255 - */ -__STATIC_INLINE uint32_t LL_HSEM_GetProcessId(HSEM_TypeDef *HSEMx, uint32_t Semaphore) -{ - return (uint32_t)(READ_BIT(HSEMx->R[Semaphore], HSEM_R_PROCID_Msk)); -} - -/** - * @brief Get the lock by writing in R register. - * @note The R register has to be read to determined if the lock is taken. - * @rmtoll R LOCK LL_HSEM_SetLock - * @rmtoll R COREID LL_HSEM_SetLock - * @rmtoll R PROCID LL_HSEM_SetLock - * @param HSEMx HSEM Instance. - * @param Semaphore Semaphore number. Value between Min_Data=0 and Max_Data=31 - * @param process Process id. Value between Min_Data=0 and Max_Data=255 - * @retval None - */ -__STATIC_INLINE void LL_HSEM_SetLock(HSEM_TypeDef *HSEMx, uint32_t Semaphore, uint32_t process) -{ - WRITE_REG(HSEMx->R[Semaphore], (HSEM_R_LOCK | LL_HSEM_COREID | process)); -} - -/** - * @brief Get the lock with 2-step lock. - * @rmtoll R LOCK LL_HSEM_2StepLock - * @rmtoll R COREID LL_HSEM_2StepLock - * @rmtoll R PROCID LL_HSEM_2StepLock - * @param HSEMx HSEM Instance. - * @param Semaphore Semaphore number. Value between Min_Data=0 and Max_Data=31 - * @param process Process id. Value between Min_Data=0 and Max_Data=255 - * @retval 1 lock fail, 0 lock successful or already locked by same process and core - */ -__STATIC_INLINE uint32_t LL_HSEM_2StepLock(HSEM_TypeDef *HSEMx, uint32_t Semaphore, uint32_t process) -{ - WRITE_REG(HSEMx->R[Semaphore], (HSEM_R_LOCK | LL_HSEM_COREID | process)); - return ((HSEMx->R[Semaphore] != (HSEM_R_LOCK | LL_HSEM_COREID | process)) ? 1UL : 0UL); -} - -/** - * @brief Get the lock with 1-step lock. - * @rmtoll RLR LOCK LL_HSEM_1StepLock - * @rmtoll RLR COREID LL_HSEM_1StepLock - * @rmtoll RLR PROCID LL_HSEM_1StepLock - * @param HSEMx HSEM Instance. - * @param Semaphore Semaphore number. Value between Min_Data=0 and Max_Data=31 - * @retval 1 lock fail, 0 lock successful or already locked by same core - */ -__STATIC_INLINE uint32_t LL_HSEM_1StepLock(HSEM_TypeDef *HSEMx, uint32_t Semaphore) -{ - return ((HSEMx->RLR[Semaphore] != (HSEM_RLR_LOCK | LL_HSEM_COREID)) ? 1UL : 0UL); -} - -/** - * @brief Release the lock of the semaphore. - * @note In case of LL_HSEM_1StepLock usage to lock a semaphore, the process is 0. - * @rmtoll R LOCK LL_HSEM_ReleaseLock - * @param HSEMx HSEM Instance. - * @param Semaphore Semaphore number. Value between Min_Data=0 and Max_Data=31 - * @param process Process number. Value between Min_Data=0 and Max_Data=255 - * @retval None - */ -__STATIC_INLINE void LL_HSEM_ReleaseLock(HSEM_TypeDef *HSEMx, uint32_t Semaphore, uint32_t process) -{ - WRITE_REG(HSEMx->R[Semaphore], (LL_HSEM_COREID | process)); -} - -/** - * @brief Get the lock status of the semaphore. - * @rmtoll R LOCK LL_HSEM_GetStatus - * @param HSEMx HSEM Instance. - * @param Semaphore Semaphore number. Value between Min_Data=0 and Max_Data=31 - * @retval 0 semaphore is free, 1 semaphore is locked */ -__STATIC_INLINE uint32_t LL_HSEM_GetStatus(HSEM_TypeDef *HSEMx, uint32_t Semaphore) -{ - return ((HSEMx->R[Semaphore] != 0U) ? 1UL : 0UL); -} - -/** - * @brief Set the key. - * @rmtoll KEYR KEY LL_HSEM_SetKey - * @param HSEMx HSEM Instance. - * @param key Key value. - * @retval None - */ -__STATIC_INLINE void LL_HSEM_SetKey(HSEM_TypeDef *HSEMx, uint32_t key) -{ - WRITE_REG(HSEMx->KEYR, key << HSEM_KEYR_KEY_Pos); -} - -/** - * @brief Get the key. - * @rmtoll KEYR KEY LL_HSEM_GetKey - * @param HSEMx HSEM Instance. - * @retval key to unlock all semaphore from the same core - */ -__STATIC_INLINE uint32_t LL_HSEM_GetKey(HSEM_TypeDef *HSEMx) -{ - return (uint32_t)(READ_BIT(HSEMx->KEYR, HSEM_KEYR_KEY) >> HSEM_KEYR_KEY_Pos); -} - -/** - * @brief Release all semaphore with the same core id. - * @rmtoll CR KEY LL_HSEM_ResetAllLock - * @rmtoll CR SEC LL_HSEM_ResetAllLock - * @rmtoll CR PRIV LL_HSEM_ResetAllLock - * @param HSEMx HSEM Instance. - * @param key Key value. - * @param core This parameter can be one of the following values: - * @arg @ref LL_HSEM_COREID_CPU1 - * @arg @ref LL_HSEM_COREID_CPU2 - * @retval None - */ -__STATIC_INLINE void LL_HSEM_ResetAllLock(HSEM_TypeDef *HSEMx, uint32_t key, uint32_t core) -{ - WRITE_REG(HSEMx->CR, (key << HSEM_CR_KEY_Pos) | core); -} - -/** - * @} - */ - -/** @defgroup HSEM_LL_EF_IT_Management IT_Management - * @{ - */ - -/** - * @brief Enable interrupt. - * @rmtoll C1IER ISEM LL_HSEM_EnableIT_C1IER - * @param HSEMx HSEM Instance. - * @param SemaphoreMask This parameter can be a combination of the following values: - * @arg @ref LL_HSEM_SEMAPHORE_0 - * @arg @ref LL_HSEM_SEMAPHORE_1 - * @arg @ref LL_HSEM_SEMAPHORE_2 - * @arg @ref LL_HSEM_SEMAPHORE_3 - * @arg @ref LL_HSEM_SEMAPHORE_4 - * @arg @ref LL_HSEM_SEMAPHORE_5 - * @arg @ref LL_HSEM_SEMAPHORE_6 - * @arg @ref LL_HSEM_SEMAPHORE_7 - * @arg @ref LL_HSEM_SEMAPHORE_8 - * @arg @ref LL_HSEM_SEMAPHORE_9 - * @arg @ref LL_HSEM_SEMAPHORE_10 - * @arg @ref LL_HSEM_SEMAPHORE_11 - * @arg @ref LL_HSEM_SEMAPHORE_12 - * @arg @ref LL_HSEM_SEMAPHORE_13 - * @arg @ref LL_HSEM_SEMAPHORE_14 - * @arg @ref LL_HSEM_SEMAPHORE_15 - * @arg @ref LL_HSEM_SEMAPHORE_16 - * @arg @ref LL_HSEM_SEMAPHORE_17 - * @arg @ref LL_HSEM_SEMAPHORE_18 - * @arg @ref LL_HSEM_SEMAPHORE_19 - * @arg @ref LL_HSEM_SEMAPHORE_20 - * @arg @ref LL_HSEM_SEMAPHORE_21 - * @arg @ref LL_HSEM_SEMAPHORE_22 - * @arg @ref LL_HSEM_SEMAPHORE_23 - * @arg @ref LL_HSEM_SEMAPHORE_24 - * @arg @ref LL_HSEM_SEMAPHORE_25 - * @arg @ref LL_HSEM_SEMAPHORE_26 - * @arg @ref LL_HSEM_SEMAPHORE_27 - * @arg @ref LL_HSEM_SEMAPHORE_28 - * @arg @ref LL_HSEM_SEMAPHORE_29 - * @arg @ref LL_HSEM_SEMAPHORE_30 - * @arg @ref LL_HSEM_SEMAPHORE_31 - * @arg @ref LL_HSEM_SEMAPHORE_ALL - * @note Availability of flags LL_HSEM_SEMAPHORE_16 to LL_HSEM_SEMAPHORE_31 - * depends on devices. - * @retval None - */ -__STATIC_INLINE void LL_HSEM_EnableIT_C1IER(HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) -{ - SET_BIT(HSEMx->C1IER, SemaphoreMask); -} - -/** - * @brief Disable interrupt. - * @rmtoll C1IER ISEM LL_HSEM_DisableIT_C1IER - * @param HSEMx HSEM Instance. - * @param SemaphoreMask This parameter can be a combination of the following values: - * @arg @ref LL_HSEM_SEMAPHORE_0 - * @arg @ref LL_HSEM_SEMAPHORE_1 - * @arg @ref LL_HSEM_SEMAPHORE_2 - * @arg @ref LL_HSEM_SEMAPHORE_3 - * @arg @ref LL_HSEM_SEMAPHORE_4 - * @arg @ref LL_HSEM_SEMAPHORE_5 - * @arg @ref LL_HSEM_SEMAPHORE_6 - * @arg @ref LL_HSEM_SEMAPHORE_7 - * @arg @ref LL_HSEM_SEMAPHORE_8 - * @arg @ref LL_HSEM_SEMAPHORE_9 - * @arg @ref LL_HSEM_SEMAPHORE_10 - * @arg @ref LL_HSEM_SEMAPHORE_11 - * @arg @ref LL_HSEM_SEMAPHORE_12 - * @arg @ref LL_HSEM_SEMAPHORE_13 - * @arg @ref LL_HSEM_SEMAPHORE_14 - * @arg @ref LL_HSEM_SEMAPHORE_15 - * @arg @ref LL_HSEM_SEMAPHORE_16 - * @arg @ref LL_HSEM_SEMAPHORE_17 - * @arg @ref LL_HSEM_SEMAPHORE_18 - * @arg @ref LL_HSEM_SEMAPHORE_19 - * @arg @ref LL_HSEM_SEMAPHORE_20 - * @arg @ref LL_HSEM_SEMAPHORE_21 - * @arg @ref LL_HSEM_SEMAPHORE_22 - * @arg @ref LL_HSEM_SEMAPHORE_23 - * @arg @ref LL_HSEM_SEMAPHORE_24 - * @arg @ref LL_HSEM_SEMAPHORE_25 - * @arg @ref LL_HSEM_SEMAPHORE_26 - * @arg @ref LL_HSEM_SEMAPHORE_27 - * @arg @ref LL_HSEM_SEMAPHORE_28 - * @arg @ref LL_HSEM_SEMAPHORE_29 - * @arg @ref LL_HSEM_SEMAPHORE_30 - * @arg @ref LL_HSEM_SEMAPHORE_31 - * @arg @ref LL_HSEM_SEMAPHORE_ALL - * @note Availability of flags LL_HSEM_SEMAPHORE_16 to LL_HSEM_SEMAPHORE_31 - * depends on devices. - * @retval None - */ -__STATIC_INLINE void LL_HSEM_DisableIT_C1IER(HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) -{ - CLEAR_BIT(HSEMx->C1IER, SemaphoreMask); -} - -/** - * @brief Check if interrupt is enabled. - * @rmtoll C1IER ISEM LL_HSEM_IsEnabledIT_C1IER - * @param HSEMx HSEM Instance. - * @param SemaphoreMask This parameter can be a combination of the following values: - * @arg @ref LL_HSEM_SEMAPHORE_0 - * @arg @ref LL_HSEM_SEMAPHORE_1 - * @arg @ref LL_HSEM_SEMAPHORE_2 - * @arg @ref LL_HSEM_SEMAPHORE_3 - * @arg @ref LL_HSEM_SEMAPHORE_4 - * @arg @ref LL_HSEM_SEMAPHORE_5 - * @arg @ref LL_HSEM_SEMAPHORE_6 - * @arg @ref LL_HSEM_SEMAPHORE_7 - * @arg @ref LL_HSEM_SEMAPHORE_8 - * @arg @ref LL_HSEM_SEMAPHORE_9 - * @arg @ref LL_HSEM_SEMAPHORE_10 - * @arg @ref LL_HSEM_SEMAPHORE_11 - * @arg @ref LL_HSEM_SEMAPHORE_12 - * @arg @ref LL_HSEM_SEMAPHORE_13 - * @arg @ref LL_HSEM_SEMAPHORE_14 - * @arg @ref LL_HSEM_SEMAPHORE_15 - * @arg @ref LL_HSEM_SEMAPHORE_16 - * @arg @ref LL_HSEM_SEMAPHORE_17 - * @arg @ref LL_HSEM_SEMAPHORE_18 - * @arg @ref LL_HSEM_SEMAPHORE_19 - * @arg @ref LL_HSEM_SEMAPHORE_20 - * @arg @ref LL_HSEM_SEMAPHORE_21 - * @arg @ref LL_HSEM_SEMAPHORE_22 - * @arg @ref LL_HSEM_SEMAPHORE_23 - * @arg @ref LL_HSEM_SEMAPHORE_24 - * @arg @ref LL_HSEM_SEMAPHORE_25 - * @arg @ref LL_HSEM_SEMAPHORE_26 - * @arg @ref LL_HSEM_SEMAPHORE_27 - * @arg @ref LL_HSEM_SEMAPHORE_28 - * @arg @ref LL_HSEM_SEMAPHORE_29 - * @arg @ref LL_HSEM_SEMAPHORE_30 - * @arg @ref LL_HSEM_SEMAPHORE_31 - * @arg @ref LL_HSEM_SEMAPHORE_ALL - * @note Availability of flags LL_HSEM_SEMAPHORE_16 to LL_HSEM_SEMAPHORE_31 - * depends on devices. - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_HSEM_IsEnabledIT_C1IER(HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) -{ - return ((READ_BIT(HSEMx->C1IER, SemaphoreMask) == (SemaphoreMask)) ? 1UL : 0UL); -} - -#if defined(DUAL_CORE) -/** - * @brief Enable interrupt. - * @rmtoll C2IER ISEM LL_HSEM_EnableIT_C2IER - * @param HSEMx HSEM Instance. - * @param SemaphoreMask This parameter can be a combination of the following values: - * @arg @ref LL_HSEM_SEMAPHORE_0 - * @arg @ref LL_HSEM_SEMAPHORE_1 - * @arg @ref LL_HSEM_SEMAPHORE_2 - * @arg @ref LL_HSEM_SEMAPHORE_3 - * @arg @ref LL_HSEM_SEMAPHORE_4 - * @arg @ref LL_HSEM_SEMAPHORE_5 - * @arg @ref LL_HSEM_SEMAPHORE_6 - * @arg @ref LL_HSEM_SEMAPHORE_7 - * @arg @ref LL_HSEM_SEMAPHORE_8 - * @arg @ref LL_HSEM_SEMAPHORE_9 - * @arg @ref LL_HSEM_SEMAPHORE_10 - * @arg @ref LL_HSEM_SEMAPHORE_11 - * @arg @ref LL_HSEM_SEMAPHORE_12 - * @arg @ref LL_HSEM_SEMAPHORE_13 - * @arg @ref LL_HSEM_SEMAPHORE_14 - * @arg @ref LL_HSEM_SEMAPHORE_15 - * @arg @ref LL_HSEM_SEMAPHORE_16 - * @arg @ref LL_HSEM_SEMAPHORE_17 - * @arg @ref LL_HSEM_SEMAPHORE_18 - * @arg @ref LL_HSEM_SEMAPHORE_19 - * @arg @ref LL_HSEM_SEMAPHORE_20 - * @arg @ref LL_HSEM_SEMAPHORE_21 - * @arg @ref LL_HSEM_SEMAPHORE_22 - * @arg @ref LL_HSEM_SEMAPHORE_23 - * @arg @ref LL_HSEM_SEMAPHORE_24 - * @arg @ref LL_HSEM_SEMAPHORE_25 - * @arg @ref LL_HSEM_SEMAPHORE_26 - * @arg @ref LL_HSEM_SEMAPHORE_27 - * @arg @ref LL_HSEM_SEMAPHORE_28 - * @arg @ref LL_HSEM_SEMAPHORE_29 - * @arg @ref LL_HSEM_SEMAPHORE_30 - * @arg @ref LL_HSEM_SEMAPHORE_31 - * @arg @ref LL_HSEM_SEMAPHORE_ALL - * @retval None - */ -__STATIC_INLINE void LL_HSEM_EnableIT_C2IER(HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) -{ - SET_BIT(HSEMx->C2IER, SemaphoreMask); -} - -/** - * @brief Disable interrupt. - * @rmtoll C2IER ISEM LL_HSEM_DisableIT_C2IER - * @param HSEMx HSEM Instance. - * @param SemaphoreMask This parameter can be a combination of the following values: - * @arg @ref LL_HSEM_SEMAPHORE_0 - * @arg @ref LL_HSEM_SEMAPHORE_1 - * @arg @ref LL_HSEM_SEMAPHORE_2 - * @arg @ref LL_HSEM_SEMAPHORE_3 - * @arg @ref LL_HSEM_SEMAPHORE_4 - * @arg @ref LL_HSEM_SEMAPHORE_5 - * @arg @ref LL_HSEM_SEMAPHORE_6 - * @arg @ref LL_HSEM_SEMAPHORE_7 - * @arg @ref LL_HSEM_SEMAPHORE_8 - * @arg @ref LL_HSEM_SEMAPHORE_9 - * @arg @ref LL_HSEM_SEMAPHORE_10 - * @arg @ref LL_HSEM_SEMAPHORE_11 - * @arg @ref LL_HSEM_SEMAPHORE_12 - * @arg @ref LL_HSEM_SEMAPHORE_13 - * @arg @ref LL_HSEM_SEMAPHORE_14 - * @arg @ref LL_HSEM_SEMAPHORE_15 - * @arg @ref LL_HSEM_SEMAPHORE_16 - * @arg @ref LL_HSEM_SEMAPHORE_17 - * @arg @ref LL_HSEM_SEMAPHORE_18 - * @arg @ref LL_HSEM_SEMAPHORE_19 - * @arg @ref LL_HSEM_SEMAPHORE_20 - * @arg @ref LL_HSEM_SEMAPHORE_21 - * @arg @ref LL_HSEM_SEMAPHORE_22 - * @arg @ref LL_HSEM_SEMAPHORE_23 - * @arg @ref LL_HSEM_SEMAPHORE_24 - * @arg @ref LL_HSEM_SEMAPHORE_25 - * @arg @ref LL_HSEM_SEMAPHORE_26 - * @arg @ref LL_HSEM_SEMAPHORE_27 - * @arg @ref LL_HSEM_SEMAPHORE_28 - * @arg @ref LL_HSEM_SEMAPHORE_29 - * @arg @ref LL_HSEM_SEMAPHORE_30 - * @arg @ref LL_HSEM_SEMAPHORE_31 - * @arg @ref LL_HSEM_SEMAPHORE_ALL - * @retval None - */ -__STATIC_INLINE void LL_HSEM_DisableIT_C2IER(HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) -{ - CLEAR_BIT(HSEMx->C2IER, SemaphoreMask); -} - -/** - * @brief Check if interrupt is enabled. - * @rmtoll C2IER ISEM LL_HSEM_IsEnabledIT_C2IER - * @param HSEMx HSEM Instance. - * @param SemaphoreMask This parameter can be a combination of the following values: - * @arg @ref LL_HSEM_SEMAPHORE_0 - * @arg @ref LL_HSEM_SEMAPHORE_1 - * @arg @ref LL_HSEM_SEMAPHORE_2 - * @arg @ref LL_HSEM_SEMAPHORE_3 - * @arg @ref LL_HSEM_SEMAPHORE_4 - * @arg @ref LL_HSEM_SEMAPHORE_5 - * @arg @ref LL_HSEM_SEMAPHORE_6 - * @arg @ref LL_HSEM_SEMAPHORE_7 - * @arg @ref LL_HSEM_SEMAPHORE_8 - * @arg @ref LL_HSEM_SEMAPHORE_9 - * @arg @ref LL_HSEM_SEMAPHORE_10 - * @arg @ref LL_HSEM_SEMAPHORE_11 - * @arg @ref LL_HSEM_SEMAPHORE_12 - * @arg @ref LL_HSEM_SEMAPHORE_13 - * @arg @ref LL_HSEM_SEMAPHORE_14 - * @arg @ref LL_HSEM_SEMAPHORE_15 - * @arg @ref LL_HSEM_SEMAPHORE_16 - * @arg @ref LL_HSEM_SEMAPHORE_17 - * @arg @ref LL_HSEM_SEMAPHORE_18 - * @arg @ref LL_HSEM_SEMAPHORE_19 - * @arg @ref LL_HSEM_SEMAPHORE_20 - * @arg @ref LL_HSEM_SEMAPHORE_21 - * @arg @ref LL_HSEM_SEMAPHORE_22 - * @arg @ref LL_HSEM_SEMAPHORE_23 - * @arg @ref LL_HSEM_SEMAPHORE_24 - * @arg @ref LL_HSEM_SEMAPHORE_25 - * @arg @ref LL_HSEM_SEMAPHORE_26 - * @arg @ref LL_HSEM_SEMAPHORE_27 - * @arg @ref LL_HSEM_SEMAPHORE_28 - * @arg @ref LL_HSEM_SEMAPHORE_29 - * @arg @ref LL_HSEM_SEMAPHORE_30 - * @arg @ref LL_HSEM_SEMAPHORE_31 - * @arg @ref LL_HSEM_SEMAPHORE_ALL - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_HSEM_IsEnabledIT_C2IER(HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) -{ - return ((READ_BIT(HSEMx->C2IER, SemaphoreMask) == (SemaphoreMask)) ? 1UL : 0UL); -} -#endif /* DUAL_CORE */ - -/** - * @} - */ - -/** @defgroup HSEM_LL_EF_FLAG_Management FLAG_Management - * @{ - */ - -/** - * @brief Clear interrupt status. - * @rmtoll C1ICR ISEM LL_HSEM_ClearFlag_C1ICR - * @param HSEMx HSEM Instance. - * @param SemaphoreMask This parameter can be a combination of the following values: - * @arg @ref LL_HSEM_SEMAPHORE_0 - * @arg @ref LL_HSEM_SEMAPHORE_1 - * @arg @ref LL_HSEM_SEMAPHORE_2 - * @arg @ref LL_HSEM_SEMAPHORE_3 - * @arg @ref LL_HSEM_SEMAPHORE_4 - * @arg @ref LL_HSEM_SEMAPHORE_5 - * @arg @ref LL_HSEM_SEMAPHORE_6 - * @arg @ref LL_HSEM_SEMAPHORE_7 - * @arg @ref LL_HSEM_SEMAPHORE_8 - * @arg @ref LL_HSEM_SEMAPHORE_9 - * @arg @ref LL_HSEM_SEMAPHORE_10 - * @arg @ref LL_HSEM_SEMAPHORE_11 - * @arg @ref LL_HSEM_SEMAPHORE_12 - * @arg @ref LL_HSEM_SEMAPHORE_13 - * @arg @ref LL_HSEM_SEMAPHORE_14 - * @arg @ref LL_HSEM_SEMAPHORE_15 - * @arg @ref LL_HSEM_SEMAPHORE_16 - * @arg @ref LL_HSEM_SEMAPHORE_17 - * @arg @ref LL_HSEM_SEMAPHORE_18 - * @arg @ref LL_HSEM_SEMAPHORE_19 - * @arg @ref LL_HSEM_SEMAPHORE_20 - * @arg @ref LL_HSEM_SEMAPHORE_21 - * @arg @ref LL_HSEM_SEMAPHORE_22 - * @arg @ref LL_HSEM_SEMAPHORE_23 - * @arg @ref LL_HSEM_SEMAPHORE_24 - * @arg @ref LL_HSEM_SEMAPHORE_25 - * @arg @ref LL_HSEM_SEMAPHORE_26 - * @arg @ref LL_HSEM_SEMAPHORE_27 - * @arg @ref LL_HSEM_SEMAPHORE_28 - * @arg @ref LL_HSEM_SEMAPHORE_29 - * @arg @ref LL_HSEM_SEMAPHORE_30 - * @arg @ref LL_HSEM_SEMAPHORE_31 - * @arg @ref LL_HSEM_SEMAPHORE_ALL - * @note Availability of flags LL_HSEM_SEMAPHORE_16 to LL_HSEM_SEMAPHORE_31 - * depends on devices. - * @retval None - */ -__STATIC_INLINE void LL_HSEM_ClearFlag_C1ICR(HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) -{ - WRITE_REG(HSEMx->C1ICR, SemaphoreMask); -} - -/** - * @brief Get interrupt status from ISR register. - * @rmtoll C1ISR ISEM LL_HSEM_IsActiveFlag_C1ISR - * @param HSEMx HSEM Instance. - * @param SemaphoreMask This parameter can be a combination of the following values: - * @arg @ref LL_HSEM_SEMAPHORE_0 - * @arg @ref LL_HSEM_SEMAPHORE_1 - * @arg @ref LL_HSEM_SEMAPHORE_2 - * @arg @ref LL_HSEM_SEMAPHORE_3 - * @arg @ref LL_HSEM_SEMAPHORE_4 - * @arg @ref LL_HSEM_SEMAPHORE_5 - * @arg @ref LL_HSEM_SEMAPHORE_6 - * @arg @ref LL_HSEM_SEMAPHORE_7 - * @arg @ref LL_HSEM_SEMAPHORE_8 - * @arg @ref LL_HSEM_SEMAPHORE_9 - * @arg @ref LL_HSEM_SEMAPHORE_10 - * @arg @ref LL_HSEM_SEMAPHORE_11 - * @arg @ref LL_HSEM_SEMAPHORE_12 - * @arg @ref LL_HSEM_SEMAPHORE_13 - * @arg @ref LL_HSEM_SEMAPHORE_14 - * @arg @ref LL_HSEM_SEMAPHORE_15 - * @arg @ref LL_HSEM_SEMAPHORE_16 - * @arg @ref LL_HSEM_SEMAPHORE_17 - * @arg @ref LL_HSEM_SEMAPHORE_18 - * @arg @ref LL_HSEM_SEMAPHORE_19 - * @arg @ref LL_HSEM_SEMAPHORE_20 - * @arg @ref LL_HSEM_SEMAPHORE_21 - * @arg @ref LL_HSEM_SEMAPHORE_22 - * @arg @ref LL_HSEM_SEMAPHORE_23 - * @arg @ref LL_HSEM_SEMAPHORE_24 - * @arg @ref LL_HSEM_SEMAPHORE_25 - * @arg @ref LL_HSEM_SEMAPHORE_26 - * @arg @ref LL_HSEM_SEMAPHORE_27 - * @arg @ref LL_HSEM_SEMAPHORE_28 - * @arg @ref LL_HSEM_SEMAPHORE_29 - * @arg @ref LL_HSEM_SEMAPHORE_30 - * @arg @ref LL_HSEM_SEMAPHORE_31 - * @arg @ref LL_HSEM_SEMAPHORE_ALL - * @note Availability of flags LL_HSEM_SEMAPHORE_16 to LL_HSEM_SEMAPHORE_31 - * depends on devices. - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_HSEM_IsActiveFlag_C1ISR(HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) -{ - return ((READ_BIT(HSEMx->C1ISR, SemaphoreMask) == (SemaphoreMask)) ? 1UL : 0UL); -} - -/** - * @brief Get interrupt status from MISR register. - * @rmtoll C1MISR ISEM LL_HSEM_IsActiveFlag_C1MISR - * @param HSEMx HSEM Instance. - * @param SemaphoreMask This parameter can be a combination of the following values: - * @arg @ref LL_HSEM_SEMAPHORE_0 - * @arg @ref LL_HSEM_SEMAPHORE_1 - * @arg @ref LL_HSEM_SEMAPHORE_2 - * @arg @ref LL_HSEM_SEMAPHORE_3 - * @arg @ref LL_HSEM_SEMAPHORE_4 - * @arg @ref LL_HSEM_SEMAPHORE_5 - * @arg @ref LL_HSEM_SEMAPHORE_6 - * @arg @ref LL_HSEM_SEMAPHORE_7 - * @arg @ref LL_HSEM_SEMAPHORE_8 - * @arg @ref LL_HSEM_SEMAPHORE_9 - * @arg @ref LL_HSEM_SEMAPHORE_10 - * @arg @ref LL_HSEM_SEMAPHORE_11 - * @arg @ref LL_HSEM_SEMAPHORE_12 - * @arg @ref LL_HSEM_SEMAPHORE_13 - * @arg @ref LL_HSEM_SEMAPHORE_14 - * @arg @ref LL_HSEM_SEMAPHORE_15 - * @arg @ref LL_HSEM_SEMAPHORE_16 - * @arg @ref LL_HSEM_SEMAPHORE_17 - * @arg @ref LL_HSEM_SEMAPHORE_18 - * @arg @ref LL_HSEM_SEMAPHORE_19 - * @arg @ref LL_HSEM_SEMAPHORE_20 - * @arg @ref LL_HSEM_SEMAPHORE_21 - * @arg @ref LL_HSEM_SEMAPHORE_22 - * @arg @ref LL_HSEM_SEMAPHORE_23 - * @arg @ref LL_HSEM_SEMAPHORE_24 - * @arg @ref LL_HSEM_SEMAPHORE_25 - * @arg @ref LL_HSEM_SEMAPHORE_26 - * @arg @ref LL_HSEM_SEMAPHORE_27 - * @arg @ref LL_HSEM_SEMAPHORE_28 - * @arg @ref LL_HSEM_SEMAPHORE_29 - * @arg @ref LL_HSEM_SEMAPHORE_30 - * @arg @ref LL_HSEM_SEMAPHORE_31 - * @arg @ref LL_HSEM_SEMAPHORE_ALL - * @note Availability of flags LL_HSEM_SEMAPHORE_16 to LL_HSEM_SEMAPHORE_31 - * depends on devices. - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_HSEM_IsActiveFlag_C1MISR(HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) -{ - return ((READ_BIT(HSEMx->C1MISR, SemaphoreMask) == (SemaphoreMask)) ? 1UL : 0UL); -} - -#if defined(DUAL_CORE) -/** - * @brief Clear interrupt status. - * @rmtoll C2ICR ISEM LL_HSEM_ClearFlag_C2ICR - * @param HSEMx HSEM Instance. - * @param SemaphoreMask This parameter can be a combination of the following values: - * @arg @ref LL_HSEM_SEMAPHORE_0 - * @arg @ref LL_HSEM_SEMAPHORE_1 - * @arg @ref LL_HSEM_SEMAPHORE_2 - * @arg @ref LL_HSEM_SEMAPHORE_3 - * @arg @ref LL_HSEM_SEMAPHORE_4 - * @arg @ref LL_HSEM_SEMAPHORE_5 - * @arg @ref LL_HSEM_SEMAPHORE_6 - * @arg @ref LL_HSEM_SEMAPHORE_7 - * @arg @ref LL_HSEM_SEMAPHORE_8 - * @arg @ref LL_HSEM_SEMAPHORE_9 - * @arg @ref LL_HSEM_SEMAPHORE_10 - * @arg @ref LL_HSEM_SEMAPHORE_11 - * @arg @ref LL_HSEM_SEMAPHORE_12 - * @arg @ref LL_HSEM_SEMAPHORE_13 - * @arg @ref LL_HSEM_SEMAPHORE_14 - * @arg @ref LL_HSEM_SEMAPHORE_15 - * @arg @ref LL_HSEM_SEMAPHORE_16 - * @arg @ref LL_HSEM_SEMAPHORE_17 - * @arg @ref LL_HSEM_SEMAPHORE_18 - * @arg @ref LL_HSEM_SEMAPHORE_19 - * @arg @ref LL_HSEM_SEMAPHORE_20 - * @arg @ref LL_HSEM_SEMAPHORE_21 - * @arg @ref LL_HSEM_SEMAPHORE_22 - * @arg @ref LL_HSEM_SEMAPHORE_23 - * @arg @ref LL_HSEM_SEMAPHORE_24 - * @arg @ref LL_HSEM_SEMAPHORE_25 - * @arg @ref LL_HSEM_SEMAPHORE_26 - * @arg @ref LL_HSEM_SEMAPHORE_27 - * @arg @ref LL_HSEM_SEMAPHORE_28 - * @arg @ref LL_HSEM_SEMAPHORE_29 - * @arg @ref LL_HSEM_SEMAPHORE_30 - * @arg @ref LL_HSEM_SEMAPHORE_31 - * @arg @ref LL_HSEM_SEMAPHORE_ALL - * @retval None - */ -__STATIC_INLINE void LL_HSEM_ClearFlag_C2ICR(HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) -{ - WRITE_REG(HSEMx->C2ICR, SemaphoreMask); -} - -/** - * @brief Get interrupt status from ISR register. - * @rmtoll C2ISR ISEM LL_HSEM_IsActiveFlag_C2ISR - * @param HSEMx HSEM Instance. - * @param SemaphoreMask This parameter can be a combination of the following values: - * @arg @ref LL_HSEM_SEMAPHORE_0 - * @arg @ref LL_HSEM_SEMAPHORE_1 - * @arg @ref LL_HSEM_SEMAPHORE_2 - * @arg @ref LL_HSEM_SEMAPHORE_3 - * @arg @ref LL_HSEM_SEMAPHORE_4 - * @arg @ref LL_HSEM_SEMAPHORE_5 - * @arg @ref LL_HSEM_SEMAPHORE_6 - * @arg @ref LL_HSEM_SEMAPHORE_7 - * @arg @ref LL_HSEM_SEMAPHORE_8 - * @arg @ref LL_HSEM_SEMAPHORE_9 - * @arg @ref LL_HSEM_SEMAPHORE_10 - * @arg @ref LL_HSEM_SEMAPHORE_11 - * @arg @ref LL_HSEM_SEMAPHORE_12 - * @arg @ref LL_HSEM_SEMAPHORE_13 - * @arg @ref LL_HSEM_SEMAPHORE_14 - * @arg @ref LL_HSEM_SEMAPHORE_15 - * @arg @ref LL_HSEM_SEMAPHORE_16 - * @arg @ref LL_HSEM_SEMAPHORE_17 - * @arg @ref LL_HSEM_SEMAPHORE_18 - * @arg @ref LL_HSEM_SEMAPHORE_19 - * @arg @ref LL_HSEM_SEMAPHORE_20 - * @arg @ref LL_HSEM_SEMAPHORE_21 - * @arg @ref LL_HSEM_SEMAPHORE_22 - * @arg @ref LL_HSEM_SEMAPHORE_23 - * @arg @ref LL_HSEM_SEMAPHORE_24 - * @arg @ref LL_HSEM_SEMAPHORE_25 - * @arg @ref LL_HSEM_SEMAPHORE_26 - * @arg @ref LL_HSEM_SEMAPHORE_27 - * @arg @ref LL_HSEM_SEMAPHORE_28 - * @arg @ref LL_HSEM_SEMAPHORE_29 - * @arg @ref LL_HSEM_SEMAPHORE_30 - * @arg @ref LL_HSEM_SEMAPHORE_31 - * @arg @ref LL_HSEM_SEMAPHORE_ALL - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_HSEM_IsActiveFlag_C2ISR(HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) -{ - return ((READ_BIT(HSEMx->C2ISR, SemaphoreMask) == (SemaphoreMask)) ? 1UL : 0UL); -} - -/** - * @brief Get interrupt status from MISR register. - * @rmtoll C2MISR ISEM LL_HSEM_IsActiveFlag_C2MISR - * @param HSEMx HSEM Instance. - * @param SemaphoreMask This parameter can be a combination of the following values: - * @arg @ref LL_HSEM_SEMAPHORE_0 - * @arg @ref LL_HSEM_SEMAPHORE_1 - * @arg @ref LL_HSEM_SEMAPHORE_2 - * @arg @ref LL_HSEM_SEMAPHORE_3 - * @arg @ref LL_HSEM_SEMAPHORE_4 - * @arg @ref LL_HSEM_SEMAPHORE_5 - * @arg @ref LL_HSEM_SEMAPHORE_6 - * @arg @ref LL_HSEM_SEMAPHORE_7 - * @arg @ref LL_HSEM_SEMAPHORE_8 - * @arg @ref LL_HSEM_SEMAPHORE_9 - * @arg @ref LL_HSEM_SEMAPHORE_10 - * @arg @ref LL_HSEM_SEMAPHORE_11 - * @arg @ref LL_HSEM_SEMAPHORE_12 - * @arg @ref LL_HSEM_SEMAPHORE_13 - * @arg @ref LL_HSEM_SEMAPHORE_14 - * @arg @ref LL_HSEM_SEMAPHORE_15 - * @arg @ref LL_HSEM_SEMAPHORE_16 - * @arg @ref LL_HSEM_SEMAPHORE_17 - * @arg @ref LL_HSEM_SEMAPHORE_18 - * @arg @ref LL_HSEM_SEMAPHORE_19 - * @arg @ref LL_HSEM_SEMAPHORE_20 - * @arg @ref LL_HSEM_SEMAPHORE_21 - * @arg @ref LL_HSEM_SEMAPHORE_22 - * @arg @ref LL_HSEM_SEMAPHORE_23 - * @arg @ref LL_HSEM_SEMAPHORE_24 - * @arg @ref LL_HSEM_SEMAPHORE_25 - * @arg @ref LL_HSEM_SEMAPHORE_26 - * @arg @ref LL_HSEM_SEMAPHORE_27 - * @arg @ref LL_HSEM_SEMAPHORE_28 - * @arg @ref LL_HSEM_SEMAPHORE_29 - * @arg @ref LL_HSEM_SEMAPHORE_30 - * @arg @ref LL_HSEM_SEMAPHORE_31 - * @arg @ref LL_HSEM_SEMAPHORE_ALL - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_HSEM_IsActiveFlag_C2MISR(HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) -{ - return ((READ_BIT(HSEMx->C2MISR, SemaphoreMask) == (SemaphoreMask)) ? 1UL : 0UL); -} -#endif /* DUAL_CORE */ -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -#endif /* defined(HSEM) */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* __STM32H7xx_LL_HSEM_H */ diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_lpuart.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_lpuart.h deleted file mode 100644 index fe66bec..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_lpuart.h +++ /dev/null @@ -1,2643 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_ll_lpuart.h - * @author MCD Application Team - * @brief Header file of LPUART LL module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_LL_LPUART_H -#define STM32H7xx_LL_LPUART_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx.h" - -/** @addtogroup STM32H7xx_LL_Driver - * @{ - */ - -#if defined (LPUART1) - -/** @defgroup LPUART_LL LPUART - * @{ - */ - -/* Private types -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/** @defgroup LPUART_LL_Private_Variables LPUART Private Variables - * @{ - */ -/* Array used to get the LPUART prescaler division decimal values versus @ref LPUART_LL_EC_PRESCALER values */ -static const uint16_t LPUART_PRESCALER_TAB[] = -{ - (uint16_t)1, - (uint16_t)2, - (uint16_t)4, - (uint16_t)6, - (uint16_t)8, - (uint16_t)10, - (uint16_t)12, - (uint16_t)16, - (uint16_t)32, - (uint16_t)64, - (uint16_t)128, - (uint16_t)256 -}; -/** - * @} - */ - -/* Private constants ---------------------------------------------------------*/ -/** @defgroup LPUART_LL_Private_Constants LPUART Private Constants - * @{ - */ -/* Defines used in Baud Rate related macros and corresponding register setting computation */ -#define LPUART_LPUARTDIV_FREQ_MUL 256U -#define LPUART_BRR_MASK 0x000FFFFFU -#define LPUART_BRR_MIN_VALUE 0x00000300U -/** - * @} - */ - - -/* Private macros ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) -/** @defgroup LPUART_LL_Private_Macros LPUART Private Macros - * @{ - */ -/** - * @} - */ -#endif /*USE_FULL_LL_DRIVER*/ - -/* Exported types ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) -/** @defgroup LPUART_LL_ES_INIT LPUART Exported Init structures - * @{ - */ - -/** - * @brief LL LPUART Init Structure definition - */ -typedef struct -{ - uint32_t PrescalerValue; /*!< Specifies the Prescaler to compute the communication baud rate. - This parameter can be a value of @ref LPUART_LL_EC_PRESCALER. - - This feature can be modified afterwards using unitary - function @ref LL_LPUART_SetPrescaler().*/ - - uint32_t BaudRate; /*!< This field defines expected LPUART communication baud rate. - - This feature can be modified afterwards using unitary - function @ref LL_LPUART_SetBaudRate().*/ - - uint32_t DataWidth; /*!< Specifies the number of data bits transmitted or received in a frame. - This parameter can be a value of @ref LPUART_LL_EC_DATAWIDTH. - - This feature can be modified afterwards using unitary - function @ref LL_LPUART_SetDataWidth().*/ - - uint32_t StopBits; /*!< Specifies the number of stop bits transmitted. - This parameter can be a value of @ref LPUART_LL_EC_STOPBITS. - - This feature can be modified afterwards using unitary - function @ref LL_LPUART_SetStopBitsLength().*/ - - uint32_t Parity; /*!< Specifies the parity mode. - This parameter can be a value of @ref LPUART_LL_EC_PARITY. - - This feature can be modified afterwards using unitary - function @ref LL_LPUART_SetParity().*/ - - uint32_t TransferDirection; /*!< Specifies whether the Receive and/or Transmit mode is enabled or disabled. - This parameter can be a value of @ref LPUART_LL_EC_DIRECTION. - - This feature can be modified afterwards using unitary - function @ref LL_LPUART_SetTransferDirection().*/ - - uint32_t HardwareFlowControl; /*!< Specifies whether the hardware flow control mode is enabled or disabled. - This parameter can be a value of @ref LPUART_LL_EC_HWCONTROL. - - This feature can be modified afterwards using unitary - function @ref LL_LPUART_SetHWFlowCtrl().*/ - -} LL_LPUART_InitTypeDef; - -/** - * @} - */ -#endif /* USE_FULL_LL_DRIVER */ - -/* Exported constants --------------------------------------------------------*/ -/** @defgroup LPUART_LL_Exported_Constants LPUART Exported Constants - * @{ - */ - -/** @defgroup LPUART_LL_EC_CLEAR_FLAG Clear Flags Defines - * @brief Flags defines which can be used with LL_LPUART_WriteReg function - * @{ - */ -#define LL_LPUART_ICR_PECF USART_ICR_PECF /*!< Parity error clear flag */ -#define LL_LPUART_ICR_FECF USART_ICR_FECF /*!< Framing error clear flag */ -#define LL_LPUART_ICR_NCF USART_ICR_NECF /*!< Noise error detected clear flag */ -#define LL_LPUART_ICR_ORECF USART_ICR_ORECF /*!< Overrun error clear flag */ -#define LL_LPUART_ICR_IDLECF USART_ICR_IDLECF /*!< Idle line detected clear flag */ -#define LL_LPUART_ICR_TCCF USART_ICR_TCCF /*!< Transmission complete clear flag */ -#define LL_LPUART_ICR_CTSCF USART_ICR_CTSCF /*!< CTS clear flag */ -#define LL_LPUART_ICR_CMCF USART_ICR_CMCF /*!< Character match clear flag */ -#define LL_LPUART_ICR_WUCF USART_ICR_WUCF /*!< Wakeup from Stop mode clear flag */ -/** - * @} - */ - -/** @defgroup LPUART_LL_EC_GET_FLAG Get Flags Defines - * @brief Flags defines which can be used with LL_LPUART_ReadReg function - * @{ - */ -#define LL_LPUART_ISR_PE USART_ISR_PE /*!< Parity error flag */ -#define LL_LPUART_ISR_FE USART_ISR_FE /*!< Framing error flag */ -#define LL_LPUART_ISR_NE USART_ISR_NE /*!< Noise detected flag */ -#define LL_LPUART_ISR_ORE USART_ISR_ORE /*!< Overrun error flag */ -#define LL_LPUART_ISR_IDLE USART_ISR_IDLE /*!< Idle line detected flag */ -#define LL_LPUART_ISR_RXNE_RXFNE USART_ISR_RXNE_RXFNE /*!< Read data register or RX FIFO not empty flag */ -#define LL_LPUART_ISR_TC USART_ISR_TC /*!< Transmission complete flag */ -#define LL_LPUART_ISR_TXE_TXFNF USART_ISR_TXE_TXFNF /*!< Transmit data register empty or TX FIFO Not Full flag*/ -#define LL_LPUART_ISR_CTSIF USART_ISR_CTSIF /*!< CTS interrupt flag */ -#define LL_LPUART_ISR_CTS USART_ISR_CTS /*!< CTS flag */ -#define LL_LPUART_ISR_BUSY USART_ISR_BUSY /*!< Busy flag */ -#define LL_LPUART_ISR_CMF USART_ISR_CMF /*!< Character match flag */ -#define LL_LPUART_ISR_SBKF USART_ISR_SBKF /*!< Send break flag */ -#define LL_LPUART_ISR_RWU USART_ISR_RWU /*!< Receiver wakeup from Mute mode flag */ -#define LL_LPUART_ISR_WUF USART_ISR_WUF /*!< Wakeup from Stop mode flag */ -#define LL_LPUART_ISR_TEACK USART_ISR_TEACK /*!< Transmit enable acknowledge flag */ -#define LL_LPUART_ISR_REACK USART_ISR_REACK /*!< Receive enable acknowledge flag */ -#define LL_LPUART_ISR_TXFE USART_ISR_TXFE /*!< TX FIFO empty flag */ -#define LL_LPUART_ISR_RXFF USART_ISR_RXFF /*!< RX FIFO full flag */ -#define LL_LPUART_ISR_RXFT USART_ISR_RXFT /*!< RX FIFO threshold flag */ -#define LL_LPUART_ISR_TXFT USART_ISR_TXFT /*!< TX FIFO threshold flag */ -/** - * @} - */ - -/** @defgroup LPUART_LL_EC_IT IT Defines - * @brief IT defines which can be used with LL_LPUART_ReadReg and LL_LPUART_WriteReg functions - * @{ - */ -#define LL_LPUART_CR1_IDLEIE USART_CR1_IDLEIE /*!< IDLE interrupt enable */ -#define LL_LPUART_CR1_RXNEIE_RXFNEIE USART_CR1_RXNEIE_RXFNEIE /*!< Read data register and RXFIFO not empty - interrupt enable */ -#define LL_LPUART_CR1_TCIE USART_CR1_TCIE /*!< Transmission complete interrupt enable */ -#define LL_LPUART_CR1_TXEIE_TXFNFIE USART_CR1_TXEIE_TXFNFIE /*!< Transmit data register empty and TX FIFO - not full interrupt enable */ -#define LL_LPUART_CR1_PEIE USART_CR1_PEIE /*!< Parity error */ -#define LL_LPUART_CR1_CMIE USART_CR1_CMIE /*!< Character match interrupt enable */ -#define LL_LPUART_CR1_TXFEIE USART_CR1_TXFEIE /*!< TX FIFO empty interrupt enable */ -#define LL_LPUART_CR1_RXFFIE USART_CR1_RXFFIE /*!< RX FIFO full interrupt enable */ -#define LL_LPUART_CR3_EIE USART_CR3_EIE /*!< Error interrupt enable */ -#define LL_LPUART_CR3_CTSIE USART_CR3_CTSIE /*!< CTS interrupt enable */ -#define LL_LPUART_CR3_WUFIE USART_CR3_WUFIE /*!< Wakeup from Stop mode interrupt enable */ -#define LL_LPUART_CR3_TXFTIE USART_CR3_TXFTIE /*!< TX FIFO threshold interrupt enable */ -#define LL_LPUART_CR3_RXFTIE USART_CR3_RXFTIE /*!< RX FIFO threshold interrupt enable */ -/** - * @} - */ - -/** @defgroup LPUART_LL_EC_FIFOTHRESHOLD FIFO Threshold - * @{ - */ -#define LL_LPUART_FIFOTHRESHOLD_1_8 0x00000000U /*!< FIFO reaches 1/8 of its depth */ -#define LL_LPUART_FIFOTHRESHOLD_1_4 0x00000001U /*!< FIFO reaches 1/4 of its depth */ -#define LL_LPUART_FIFOTHRESHOLD_1_2 0x00000002U /*!< FIFO reaches 1/2 of its depth */ -#define LL_LPUART_FIFOTHRESHOLD_3_4 0x00000003U /*!< FIFO reaches 3/4 of its depth */ -#define LL_LPUART_FIFOTHRESHOLD_7_8 0x00000004U /*!< FIFO reaches 7/8 of its depth */ -#define LL_LPUART_FIFOTHRESHOLD_8_8 0x00000005U /*!< FIFO becomes empty for TX and full for RX */ -/** - * @} - */ - -/** @defgroup LPUART_LL_EC_DIRECTION Direction - * @{ - */ -#define LL_LPUART_DIRECTION_NONE 0x00000000U /*!< Transmitter and Receiver are disabled */ -#define LL_LPUART_DIRECTION_RX USART_CR1_RE /*!< Transmitter is disabled and Receiver is enabled */ -#define LL_LPUART_DIRECTION_TX USART_CR1_TE /*!< Transmitter is enabled and Receiver is disabled */ -#define LL_LPUART_DIRECTION_TX_RX (USART_CR1_TE |USART_CR1_RE) /*!< Transmitter and Receiver are enabled */ -/** - * @} - */ - -/** @defgroup LPUART_LL_EC_PARITY Parity Control - * @{ - */ -#define LL_LPUART_PARITY_NONE 0x00000000U /*!< Parity control disabled */ -#define LL_LPUART_PARITY_EVEN USART_CR1_PCE /*!< Parity control enabled and Even Parity is selected */ -#define LL_LPUART_PARITY_ODD (USART_CR1_PCE | USART_CR1_PS) /*!< Parity control enabled and Odd Parity is selected */ -/** - * @} - */ - -/** @defgroup LPUART_LL_EC_WAKEUP Wakeup - * @{ - */ -#define LL_LPUART_WAKEUP_IDLELINE 0x00000000U /*!< LPUART wake up from Mute mode on Idle Line */ -#define LL_LPUART_WAKEUP_ADDRESSMARK USART_CR1_WAKE /*!< LPUART wake up from Mute mode on Address Mark */ -/** - * @} - */ - -/** @defgroup LPUART_LL_EC_DATAWIDTH Datawidth - * @{ - */ -#define LL_LPUART_DATAWIDTH_7B USART_CR1_M1 /*!< 7 bits word length : Start bit, 7 data bits, n stop bits */ -#define LL_LPUART_DATAWIDTH_8B 0x00000000U /*!< 8 bits word length : Start bit, 8 data bits, n stop bits */ -#define LL_LPUART_DATAWIDTH_9B USART_CR1_M0 /*!< 9 bits word length : Start bit, 9 data bits, n stop bits */ -/** - * @} - */ - -/** @defgroup LPUART_LL_EC_PRESCALER Clock Source Prescaler - * @{ - */ -#define LL_LPUART_PRESCALER_DIV1 0x00000000U /*!< Input clock not divided */ -#define LL_LPUART_PRESCALER_DIV2 (USART_PRESC_PRESCALER_0) /*!< Input clock divided by 2 */ -#define LL_LPUART_PRESCALER_DIV4 (USART_PRESC_PRESCALER_1) /*!< Input clock divided by 4 */ -#define LL_LPUART_PRESCALER_DIV6 (USART_PRESC_PRESCALER_1 |\ - USART_PRESC_PRESCALER_0) /*!< Input clock divided by 6 */ -#define LL_LPUART_PRESCALER_DIV8 (USART_PRESC_PRESCALER_2) /*!< Input clock divided by 8 */ -#define LL_LPUART_PRESCALER_DIV10 (USART_PRESC_PRESCALER_2 |\ - USART_PRESC_PRESCALER_0) /*!< Input clock divided by 10 */ -#define LL_LPUART_PRESCALER_DIV12 (USART_PRESC_PRESCALER_2 |\ - USART_PRESC_PRESCALER_1) /*!< Input clock divided by 12 */ -#define LL_LPUART_PRESCALER_DIV16 (USART_PRESC_PRESCALER_2 |\ - USART_PRESC_PRESCALER_1 |\ - USART_PRESC_PRESCALER_0) /*!< Input clock divided by 16 */ -#define LL_LPUART_PRESCALER_DIV32 (USART_PRESC_PRESCALER_3) /*!< Input clock divided by 32 */ -#define LL_LPUART_PRESCALER_DIV64 (USART_PRESC_PRESCALER_3 |\ - USART_PRESC_PRESCALER_0) /*!< Input clock divided by 64 */ -#define LL_LPUART_PRESCALER_DIV128 (USART_PRESC_PRESCALER_3 |\ - USART_PRESC_PRESCALER_1) /*!< Input clock divided by 128 */ -#define LL_LPUART_PRESCALER_DIV256 (USART_PRESC_PRESCALER_3 |\ - USART_PRESC_PRESCALER_1 |\ - USART_PRESC_PRESCALER_0) /*!< Input clock divided by 256 */ -/** - * @} - */ - -/** @defgroup LPUART_LL_EC_STOPBITS Stop Bits - * @{ - */ -#define LL_LPUART_STOPBITS_1 0x00000000U /*!< 1 stop bit */ -#define LL_LPUART_STOPBITS_2 USART_CR2_STOP_1 /*!< 2 stop bits */ -/** - * @} - */ - -/** @defgroup LPUART_LL_EC_TXRX TX RX Pins Swap - * @{ - */ -#define LL_LPUART_TXRX_STANDARD 0x00000000U /*!< TX/RX pins are used as defined in standard pinout */ -#define LL_LPUART_TXRX_SWAPPED (USART_CR2_SWAP) /*!< TX and RX pins functions are swapped. */ -/** - * @} - */ - -/** @defgroup LPUART_LL_EC_RXPIN_LEVEL RX Pin Active Level Inversion - * @{ - */ -#define LL_LPUART_RXPIN_LEVEL_STANDARD 0x00000000U /*!< RX pin signal works using the standard logic levels */ -#define LL_LPUART_RXPIN_LEVEL_INVERTED (USART_CR2_RXINV) /*!< RX pin signal values are inverted. */ -/** - * @} - */ - -/** @defgroup LPUART_LL_EC_TXPIN_LEVEL TX Pin Active Level Inversion - * @{ - */ -#define LL_LPUART_TXPIN_LEVEL_STANDARD 0x00000000U /*!< TX pin signal works using the standard logic levels */ -#define LL_LPUART_TXPIN_LEVEL_INVERTED (USART_CR2_TXINV) /*!< TX pin signal values are inverted. */ -/** - * @} - */ - -/** @defgroup LPUART_LL_EC_BINARY_LOGIC Binary Data Inversion - * @{ - */ -#define LL_LPUART_BINARY_LOGIC_POSITIVE 0x00000000U /*!< Logical data from the data register are send/received - in positive/direct logic. (1=H, 0=L) */ -#define LL_LPUART_BINARY_LOGIC_NEGATIVE USART_CR2_DATAINV /*!< Logical data from the data register are send/received - in negative/inverse logic. (1=L, 0=H). - The parity bit is also inverted. */ -/** - * @} - */ - -/** @defgroup LPUART_LL_EC_BITORDER Bit Order - * @{ - */ -#define LL_LPUART_BITORDER_LSBFIRST 0x00000000U /*!< data is transmitted/received with data bit 0 first, - following the start bit */ -#define LL_LPUART_BITORDER_MSBFIRST USART_CR2_MSBFIRST /*!< data is transmitted/received with the MSB first, - following the start bit */ -/** - * @} - */ - -/** @defgroup LPUART_LL_EC_ADDRESS_DETECT Address Length Detection - * @{ - */ -#define LL_LPUART_ADDRESS_DETECT_4B 0x00000000U /*!< 4-bit address detection method selected */ -#define LL_LPUART_ADDRESS_DETECT_7B USART_CR2_ADDM7 /*!< 7-bit address detection (in 8-bit data mode) method selected */ -/** - * @} - */ - -/** @defgroup LPUART_LL_EC_HWCONTROL Hardware Control - * @{ - */ -#define LL_LPUART_HWCONTROL_NONE 0x00000000U /*!< CTS and RTS hardware flow control disabled */ -#define LL_LPUART_HWCONTROL_RTS USART_CR3_RTSE /*!< RTS output enabled, data is only requested - when there is space in the receive buffer */ -#define LL_LPUART_HWCONTROL_CTS USART_CR3_CTSE /*!< CTS mode enabled, data is only transmitted - when the nCTS input is asserted (tied to 0)*/ -#define LL_LPUART_HWCONTROL_RTS_CTS (USART_CR3_RTSE | USART_CR3_CTSE) /*!< CTS and RTS hardware flow control enabled */ -/** - * @} - */ - -/** @defgroup LPUART_LL_EC_WAKEUP_ON Wakeup Activation - * @{ - */ -#define LL_LPUART_WAKEUP_ON_ADDRESS 0x00000000U /*!< Wake up active on address match */ -#define LL_LPUART_WAKEUP_ON_STARTBIT USART_CR3_WUS_1 /*!< Wake up active on Start bit detection */ -#define LL_LPUART_WAKEUP_ON_RXNE (USART_CR3_WUS_0 | USART_CR3_WUS_1) /*!< Wake up active on RXNE */ -/** - * @} - */ - -/** @defgroup LPUART_LL_EC_DE_POLARITY Driver Enable Polarity - * @{ - */ -#define LL_LPUART_DE_POLARITY_HIGH 0x00000000U /*!< DE signal is active high */ -#define LL_LPUART_DE_POLARITY_LOW USART_CR3_DEP /*!< DE signal is active low */ -/** - * @} - */ - -/** @defgroup LPUART_LL_EC_DMA_REG_DATA DMA Register Data - * @{ - */ -#define LL_LPUART_DMA_REG_DATA_TRANSMIT 0x00000000U /*!< Get address of data register used for transmission */ -#define LL_LPUART_DMA_REG_DATA_RECEIVE 0x00000001U /*!< Get address of data register used for reception */ -/** - * @} - */ - -/** - * @} - */ - -/* Exported macro ------------------------------------------------------------*/ -/** @defgroup LPUART_LL_Exported_Macros LPUART Exported Macros - * @{ - */ - -/** @defgroup LPUART_LL_EM_WRITE_READ Common Write and read registers Macros - * @{ - */ - -/** - * @brief Write a value in LPUART register - * @param __INSTANCE__ LPUART Instance - * @param __REG__ Register to be written - * @param __VALUE__ Value to be written in the register - * @retval None - */ -#define LL_LPUART_WriteReg(__INSTANCE__, __REG__, __VALUE__) WRITE_REG(__INSTANCE__->__REG__, (__VALUE__)) - -/** - * @brief Read a value in LPUART register - * @param __INSTANCE__ LPUART Instance - * @param __REG__ Register to be read - * @retval Register value - */ -#define LL_LPUART_ReadReg(__INSTANCE__, __REG__) READ_REG(__INSTANCE__->__REG__) -/** - * @} - */ - -/** @defgroup LPUART_LL_EM_Exported_Macros_Helper Helper Macros - * @{ - */ - -/** - * @brief Compute LPUARTDIV value according to Peripheral Clock and - * expected Baud Rate (20-bit value of LPUARTDIV is returned) - * @param __PERIPHCLK__ Peripheral Clock frequency used for LPUART Instance - * @param __PRESCALER__ This parameter can be one of the following values: - * @arg @ref LL_LPUART_PRESCALER_DIV1 - * @arg @ref LL_LPUART_PRESCALER_DIV2 - * @arg @ref LL_LPUART_PRESCALER_DIV4 - * @arg @ref LL_LPUART_PRESCALER_DIV6 - * @arg @ref LL_LPUART_PRESCALER_DIV8 - * @arg @ref LL_LPUART_PRESCALER_DIV10 - * @arg @ref LL_LPUART_PRESCALER_DIV12 - * @arg @ref LL_LPUART_PRESCALER_DIV16 - * @arg @ref LL_LPUART_PRESCALER_DIV32 - * @arg @ref LL_LPUART_PRESCALER_DIV64 - * @arg @ref LL_LPUART_PRESCALER_DIV128 - * @arg @ref LL_LPUART_PRESCALER_DIV256 - * @param __BAUDRATE__ Baud Rate value to achieve - * @retval LPUARTDIV value to be used for BRR register filling - */ -#define __LL_LPUART_DIV(__PERIPHCLK__, __PRESCALER__, __BAUDRATE__) (uint32_t)\ - ((((((uint64_t)(__PERIPHCLK__)/(uint64_t)(LPUART_PRESCALER_TAB[(uint16_t)(__PRESCALER__)]))\ - * LPUART_LPUARTDIV_FREQ_MUL) + (uint32_t)((__BAUDRATE__)/2U))/(__BAUDRATE__)) & LPUART_BRR_MASK) - -/** - * @} - */ - -/** - * @} - */ - -/* Exported functions --------------------------------------------------------*/ -/** @defgroup LPUART_LL_Exported_Functions LPUART Exported Functions - * @{ - */ - -/** @defgroup LPUART_LL_EF_Configuration Configuration functions - * @{ - */ - -/** - * @brief LPUART Enable - * @rmtoll CR1 UE LL_LPUART_Enable - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_Enable(USART_TypeDef *LPUARTx) -{ - SET_BIT(LPUARTx->CR1, USART_CR1_UE); -} - -/** - * @brief LPUART Disable - * @note When LPUART is disabled, LPUART prescalers and outputs are stopped immediately, - * and current operations are discarded. The configuration of the LPUART is kept, but all the status - * flags, in the LPUARTx_ISR are set to their default values. - * @note In order to go into low-power mode without generating errors on the line, - * the TE bit must be reset before and the software must wait - * for the TC bit in the LPUART_ISR to be set before resetting the UE bit. - * The DMA requests are also reset when UE = 0 so the DMA channel must - * be disabled before resetting the UE bit. - * @rmtoll CR1 UE LL_LPUART_Disable - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_Disable(USART_TypeDef *LPUARTx) -{ - CLEAR_BIT(LPUARTx->CR1, USART_CR1_UE); -} - -/** - * @brief Indicate if LPUART is enabled - * @rmtoll CR1 UE LL_LPUART_IsEnabled - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsEnabled(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->CR1, USART_CR1_UE) == (USART_CR1_UE)) ? 1UL : 0UL); -} - -/** - * @brief FIFO Mode Enable - * @rmtoll CR1 FIFOEN LL_LPUART_EnableFIFO - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_EnableFIFO(USART_TypeDef *LPUARTx) -{ - SET_BIT(LPUARTx->CR1, USART_CR1_FIFOEN); -} - -/** - * @brief FIFO Mode Disable - * @rmtoll CR1 FIFOEN LL_LPUART_DisableFIFO - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_DisableFIFO(USART_TypeDef *LPUARTx) -{ - CLEAR_BIT(LPUARTx->CR1, USART_CR1_FIFOEN); -} - -/** - * @brief Indicate if FIFO Mode is enabled - * @rmtoll CR1 FIFOEN LL_LPUART_IsEnabledFIFO - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsEnabledFIFO(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->CR1, USART_CR1_FIFOEN) == (USART_CR1_FIFOEN)) ? 1UL : 0UL); -} - -/** - * @brief Configure TX FIFO Threshold - * @rmtoll CR3 TXFTCFG LL_LPUART_SetTXFIFOThreshold - * @param LPUARTx LPUART Instance - * @param Threshold This parameter can be one of the following values: - * @arg @ref LL_LPUART_FIFOTHRESHOLD_1_8 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_1_4 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_1_2 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_3_4 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_7_8 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_8_8 - * @retval None - */ -__STATIC_INLINE void LL_LPUART_SetTXFIFOThreshold(USART_TypeDef *LPUARTx, uint32_t Threshold) -{ - ATOMIC_MODIFY_REG(LPUARTx->CR3, USART_CR3_TXFTCFG, Threshold << USART_CR3_TXFTCFG_Pos); -} - -/** - * @brief Return TX FIFO Threshold Configuration - * @rmtoll CR3 TXFTCFG LL_LPUART_GetTXFIFOThreshold - * @param LPUARTx LPUART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_LPUART_FIFOTHRESHOLD_1_8 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_1_4 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_1_2 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_3_4 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_7_8 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_8_8 - */ -__STATIC_INLINE uint32_t LL_LPUART_GetTXFIFOThreshold(const USART_TypeDef *LPUARTx) -{ - return (uint32_t)(READ_BIT(LPUARTx->CR3, USART_CR3_TXFTCFG) >> USART_CR3_TXFTCFG_Pos); -} - -/** - * @brief Configure RX FIFO Threshold - * @rmtoll CR3 RXFTCFG LL_LPUART_SetRXFIFOThreshold - * @param LPUARTx LPUART Instance - * @param Threshold This parameter can be one of the following values: - * @arg @ref LL_LPUART_FIFOTHRESHOLD_1_8 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_1_4 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_1_2 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_3_4 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_7_8 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_8_8 - * @retval None - */ -__STATIC_INLINE void LL_LPUART_SetRXFIFOThreshold(USART_TypeDef *LPUARTx, uint32_t Threshold) -{ - ATOMIC_MODIFY_REG(LPUARTx->CR3, USART_CR3_RXFTCFG, Threshold << USART_CR3_RXFTCFG_Pos); -} - -/** - * @brief Return RX FIFO Threshold Configuration - * @rmtoll CR3 RXFTCFG LL_LPUART_GetRXFIFOThreshold - * @param LPUARTx LPUART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_LPUART_FIFOTHRESHOLD_1_8 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_1_4 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_1_2 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_3_4 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_7_8 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_8_8 - */ -__STATIC_INLINE uint32_t LL_LPUART_GetRXFIFOThreshold(const USART_TypeDef *LPUARTx) -{ - return (uint32_t)(READ_BIT(LPUARTx->CR3, USART_CR3_RXFTCFG) >> USART_CR3_RXFTCFG_Pos); -} - -/** - * @brief Configure TX and RX FIFOs Threshold - * @rmtoll CR3 TXFTCFG LL_LPUART_ConfigFIFOsThreshold\n - * CR3 RXFTCFG LL_LPUART_ConfigFIFOsThreshold - * @param LPUARTx LPUART Instance - * @param TXThreshold This parameter can be one of the following values: - * @arg @ref LL_LPUART_FIFOTHRESHOLD_1_8 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_1_4 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_1_2 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_3_4 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_7_8 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_8_8 - * @param RXThreshold This parameter can be one of the following values: - * @arg @ref LL_LPUART_FIFOTHRESHOLD_1_8 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_1_4 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_1_2 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_3_4 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_7_8 - * @arg @ref LL_LPUART_FIFOTHRESHOLD_8_8 - * @retval None - */ -__STATIC_INLINE void LL_LPUART_ConfigFIFOsThreshold(USART_TypeDef *LPUARTx, uint32_t TXThreshold, uint32_t RXThreshold) -{ - ATOMIC_MODIFY_REG(LPUARTx->CR3, USART_CR3_TXFTCFG | USART_CR3_RXFTCFG, (TXThreshold << USART_CR3_TXFTCFG_Pos) | \ - (RXThreshold << USART_CR3_RXFTCFG_Pos)); -} - -/** - * @brief LPUART enabled in STOP Mode - * @note When this function is enabled, LPUART is able to wake up the MCU from Stop mode, provided that - * LPUART clock selection is HSI or LSE in RCC. - * @rmtoll CR1 UESM LL_LPUART_EnableInStopMode - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_EnableInStopMode(USART_TypeDef *LPUARTx) -{ - ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_UESM); -} - -/** - * @brief LPUART disabled in STOP Mode - * @note When this function is disabled, LPUART is not able to wake up the MCU from Stop mode - * @rmtoll CR1 UESM LL_LPUART_DisableInStopMode - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_DisableInStopMode(USART_TypeDef *LPUARTx) -{ - ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_UESM); -} - -/** - * @brief Indicate if LPUART is enabled in STOP Mode - * (able to wake up MCU from Stop mode or not) - * @rmtoll CR1 UESM LL_LPUART_IsEnabledInStopMode - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsEnabledInStopMode(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->CR1, USART_CR1_UESM) == (USART_CR1_UESM)) ? 1UL : 0UL); -} - -/** - * @brief Receiver Enable (Receiver is enabled and begins searching for a start bit) - * @rmtoll CR1 RE LL_LPUART_EnableDirectionRx - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_EnableDirectionRx(USART_TypeDef *LPUARTx) -{ - ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_RE); -} - -/** - * @brief Receiver Disable - * @rmtoll CR1 RE LL_LPUART_DisableDirectionRx - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_DisableDirectionRx(USART_TypeDef *LPUARTx) -{ - ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_RE); -} - -/** - * @brief Transmitter Enable - * @rmtoll CR1 TE LL_LPUART_EnableDirectionTx - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_EnableDirectionTx(USART_TypeDef *LPUARTx) -{ - ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_TE); -} - -/** - * @brief Transmitter Disable - * @rmtoll CR1 TE LL_LPUART_DisableDirectionTx - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_DisableDirectionTx(USART_TypeDef *LPUARTx) -{ - ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_TE); -} - -/** - * @brief Configure simultaneously enabled/disabled states - * of Transmitter and Receiver - * @rmtoll CR1 RE LL_LPUART_SetTransferDirection\n - * CR1 TE LL_LPUART_SetTransferDirection - * @param LPUARTx LPUART Instance - * @param TransferDirection This parameter can be one of the following values: - * @arg @ref LL_LPUART_DIRECTION_NONE - * @arg @ref LL_LPUART_DIRECTION_RX - * @arg @ref LL_LPUART_DIRECTION_TX - * @arg @ref LL_LPUART_DIRECTION_TX_RX - * @retval None - */ -__STATIC_INLINE void LL_LPUART_SetTransferDirection(USART_TypeDef *LPUARTx, uint32_t TransferDirection) -{ - ATOMIC_MODIFY_REG(LPUARTx->CR1, USART_CR1_RE | USART_CR1_TE, TransferDirection); -} - -/** - * @brief Return enabled/disabled states of Transmitter and Receiver - * @rmtoll CR1 RE LL_LPUART_GetTransferDirection\n - * CR1 TE LL_LPUART_GetTransferDirection - * @param LPUARTx LPUART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_LPUART_DIRECTION_NONE - * @arg @ref LL_LPUART_DIRECTION_RX - * @arg @ref LL_LPUART_DIRECTION_TX - * @arg @ref LL_LPUART_DIRECTION_TX_RX - */ -__STATIC_INLINE uint32_t LL_LPUART_GetTransferDirection(const USART_TypeDef *LPUARTx) -{ - return (uint32_t)(READ_BIT(LPUARTx->CR1, USART_CR1_RE | USART_CR1_TE)); -} - -/** - * @brief Configure Parity (enabled/disabled and parity mode if enabled) - * @note This function selects if hardware parity control (generation and detection) is enabled or disabled. - * When the parity control is enabled (Odd or Even), computed parity bit is inserted at the MSB position - * (depending on data width) and parity is checked on the received data. - * @rmtoll CR1 PS LL_LPUART_SetParity\n - * CR1 PCE LL_LPUART_SetParity - * @param LPUARTx LPUART Instance - * @param Parity This parameter can be one of the following values: - * @arg @ref LL_LPUART_PARITY_NONE - * @arg @ref LL_LPUART_PARITY_EVEN - * @arg @ref LL_LPUART_PARITY_ODD - * @retval None - */ -__STATIC_INLINE void LL_LPUART_SetParity(USART_TypeDef *LPUARTx, uint32_t Parity) -{ - MODIFY_REG(LPUARTx->CR1, USART_CR1_PS | USART_CR1_PCE, Parity); -} - -/** - * @brief Return Parity configuration (enabled/disabled and parity mode if enabled) - * @rmtoll CR1 PS LL_LPUART_GetParity\n - * CR1 PCE LL_LPUART_GetParity - * @param LPUARTx LPUART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_LPUART_PARITY_NONE - * @arg @ref LL_LPUART_PARITY_EVEN - * @arg @ref LL_LPUART_PARITY_ODD - */ -__STATIC_INLINE uint32_t LL_LPUART_GetParity(const USART_TypeDef *LPUARTx) -{ - return (uint32_t)(READ_BIT(LPUARTx->CR1, USART_CR1_PS | USART_CR1_PCE)); -} - -/** - * @brief Set Receiver Wake Up method from Mute mode. - * @rmtoll CR1 WAKE LL_LPUART_SetWakeUpMethod - * @param LPUARTx LPUART Instance - * @param Method This parameter can be one of the following values: - * @arg @ref LL_LPUART_WAKEUP_IDLELINE - * @arg @ref LL_LPUART_WAKEUP_ADDRESSMARK - * @retval None - */ -__STATIC_INLINE void LL_LPUART_SetWakeUpMethod(USART_TypeDef *LPUARTx, uint32_t Method) -{ - MODIFY_REG(LPUARTx->CR1, USART_CR1_WAKE, Method); -} - -/** - * @brief Return Receiver Wake Up method from Mute mode - * @rmtoll CR1 WAKE LL_LPUART_GetWakeUpMethod - * @param LPUARTx LPUART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_LPUART_WAKEUP_IDLELINE - * @arg @ref LL_LPUART_WAKEUP_ADDRESSMARK - */ -__STATIC_INLINE uint32_t LL_LPUART_GetWakeUpMethod(const USART_TypeDef *LPUARTx) -{ - return (uint32_t)(READ_BIT(LPUARTx->CR1, USART_CR1_WAKE)); -} - -/** - * @brief Set Word length (nb of data bits, excluding start and stop bits) - * @rmtoll CR1 M LL_LPUART_SetDataWidth - * @param LPUARTx LPUART Instance - * @param DataWidth This parameter can be one of the following values: - * @arg @ref LL_LPUART_DATAWIDTH_7B - * @arg @ref LL_LPUART_DATAWIDTH_8B - * @arg @ref LL_LPUART_DATAWIDTH_9B - * @retval None - */ -__STATIC_INLINE void LL_LPUART_SetDataWidth(USART_TypeDef *LPUARTx, uint32_t DataWidth) -{ - MODIFY_REG(LPUARTx->CR1, USART_CR1_M, DataWidth); -} - -/** - * @brief Return Word length (i.e. nb of data bits, excluding start and stop bits) - * @rmtoll CR1 M LL_LPUART_GetDataWidth - * @param LPUARTx LPUART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_LPUART_DATAWIDTH_7B - * @arg @ref LL_LPUART_DATAWIDTH_8B - * @arg @ref LL_LPUART_DATAWIDTH_9B - */ -__STATIC_INLINE uint32_t LL_LPUART_GetDataWidth(const USART_TypeDef *LPUARTx) -{ - return (uint32_t)(READ_BIT(LPUARTx->CR1, USART_CR1_M)); -} - -/** - * @brief Allow switch between Mute Mode and Active mode - * @rmtoll CR1 MME LL_LPUART_EnableMuteMode - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_EnableMuteMode(USART_TypeDef *LPUARTx) -{ - ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_MME); -} - -/** - * @brief Prevent Mute Mode use. Set Receiver in active mode permanently. - * @rmtoll CR1 MME LL_LPUART_DisableMuteMode - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_DisableMuteMode(USART_TypeDef *LPUARTx) -{ - ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_MME); -} - -/** - * @brief Indicate if switch between Mute Mode and Active mode is allowed - * @rmtoll CR1 MME LL_LPUART_IsEnabledMuteMode - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsEnabledMuteMode(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->CR1, USART_CR1_MME) == (USART_CR1_MME)) ? 1UL : 0UL); -} - -/** - * @brief Configure Clock source prescaler for baudrate generator and oversampling - * @rmtoll PRESC PRESCALER LL_LPUART_SetPrescaler - * @param LPUARTx LPUART Instance - * @param PrescalerValue This parameter can be one of the following values: - * @arg @ref LL_LPUART_PRESCALER_DIV1 - * @arg @ref LL_LPUART_PRESCALER_DIV2 - * @arg @ref LL_LPUART_PRESCALER_DIV4 - * @arg @ref LL_LPUART_PRESCALER_DIV6 - * @arg @ref LL_LPUART_PRESCALER_DIV8 - * @arg @ref LL_LPUART_PRESCALER_DIV10 - * @arg @ref LL_LPUART_PRESCALER_DIV12 - * @arg @ref LL_LPUART_PRESCALER_DIV16 - * @arg @ref LL_LPUART_PRESCALER_DIV32 - * @arg @ref LL_LPUART_PRESCALER_DIV64 - * @arg @ref LL_LPUART_PRESCALER_DIV128 - * @arg @ref LL_LPUART_PRESCALER_DIV256 - * @retval None - */ -__STATIC_INLINE void LL_LPUART_SetPrescaler(USART_TypeDef *LPUARTx, uint32_t PrescalerValue) -{ - MODIFY_REG(LPUARTx->PRESC, USART_PRESC_PRESCALER, (uint16_t)PrescalerValue); -} - -/** - * @brief Retrieve the Clock source prescaler for baudrate generator and oversampling - * @rmtoll PRESC PRESCALER LL_LPUART_GetPrescaler - * @param LPUARTx LPUART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_LPUART_PRESCALER_DIV1 - * @arg @ref LL_LPUART_PRESCALER_DIV2 - * @arg @ref LL_LPUART_PRESCALER_DIV4 - * @arg @ref LL_LPUART_PRESCALER_DIV6 - * @arg @ref LL_LPUART_PRESCALER_DIV8 - * @arg @ref LL_LPUART_PRESCALER_DIV10 - * @arg @ref LL_LPUART_PRESCALER_DIV12 - * @arg @ref LL_LPUART_PRESCALER_DIV16 - * @arg @ref LL_LPUART_PRESCALER_DIV32 - * @arg @ref LL_LPUART_PRESCALER_DIV64 - * @arg @ref LL_LPUART_PRESCALER_DIV128 - * @arg @ref LL_LPUART_PRESCALER_DIV256 - */ -__STATIC_INLINE uint32_t LL_LPUART_GetPrescaler(const USART_TypeDef *LPUARTx) -{ - return (uint32_t)(READ_BIT(LPUARTx->PRESC, USART_PRESC_PRESCALER)); -} - -/** - * @brief Set the length of the stop bits - * @rmtoll CR2 STOP LL_LPUART_SetStopBitsLength - * @param LPUARTx LPUART Instance - * @param StopBits This parameter can be one of the following values: - * @arg @ref LL_LPUART_STOPBITS_1 - * @arg @ref LL_LPUART_STOPBITS_2 - * @retval None - */ -__STATIC_INLINE void LL_LPUART_SetStopBitsLength(USART_TypeDef *LPUARTx, uint32_t StopBits) -{ - MODIFY_REG(LPUARTx->CR2, USART_CR2_STOP, StopBits); -} - -/** - * @brief Retrieve the length of the stop bits - * @rmtoll CR2 STOP LL_LPUART_GetStopBitsLength - * @param LPUARTx LPUART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_LPUART_STOPBITS_1 - * @arg @ref LL_LPUART_STOPBITS_2 - */ -__STATIC_INLINE uint32_t LL_LPUART_GetStopBitsLength(const USART_TypeDef *LPUARTx) -{ - return (uint32_t)(READ_BIT(LPUARTx->CR2, USART_CR2_STOP)); -} - -/** - * @brief Configure Character frame format (Datawidth, Parity control, Stop Bits) - * @note Call of this function is equivalent to following function call sequence : - * - Data Width configuration using @ref LL_LPUART_SetDataWidth() function - * - Parity Control and mode configuration using @ref LL_LPUART_SetParity() function - * - Stop bits configuration using @ref LL_LPUART_SetStopBitsLength() function - * @rmtoll CR1 PS LL_LPUART_ConfigCharacter\n - * CR1 PCE LL_LPUART_ConfigCharacter\n - * CR1 M LL_LPUART_ConfigCharacter\n - * CR2 STOP LL_LPUART_ConfigCharacter - * @param LPUARTx LPUART Instance - * @param DataWidth This parameter can be one of the following values: - * @arg @ref LL_LPUART_DATAWIDTH_7B - * @arg @ref LL_LPUART_DATAWIDTH_8B - * @arg @ref LL_LPUART_DATAWIDTH_9B - * @param Parity This parameter can be one of the following values: - * @arg @ref LL_LPUART_PARITY_NONE - * @arg @ref LL_LPUART_PARITY_EVEN - * @arg @ref LL_LPUART_PARITY_ODD - * @param StopBits This parameter can be one of the following values: - * @arg @ref LL_LPUART_STOPBITS_1 - * @arg @ref LL_LPUART_STOPBITS_2 - * @retval None - */ -__STATIC_INLINE void LL_LPUART_ConfigCharacter(USART_TypeDef *LPUARTx, uint32_t DataWidth, uint32_t Parity, - uint32_t StopBits) -{ - MODIFY_REG(LPUARTx->CR1, USART_CR1_PS | USART_CR1_PCE | USART_CR1_M, Parity | DataWidth); - MODIFY_REG(LPUARTx->CR2, USART_CR2_STOP, StopBits); -} - -/** - * @brief Configure TX/RX pins swapping setting. - * @rmtoll CR2 SWAP LL_LPUART_SetTXRXSwap - * @param LPUARTx LPUART Instance - * @param SwapConfig This parameter can be one of the following values: - * @arg @ref LL_LPUART_TXRX_STANDARD - * @arg @ref LL_LPUART_TXRX_SWAPPED - * @retval None - */ -__STATIC_INLINE void LL_LPUART_SetTXRXSwap(USART_TypeDef *LPUARTx, uint32_t SwapConfig) -{ - MODIFY_REG(LPUARTx->CR2, USART_CR2_SWAP, SwapConfig); -} - -/** - * @brief Retrieve TX/RX pins swapping configuration. - * @rmtoll CR2 SWAP LL_LPUART_GetTXRXSwap - * @param LPUARTx LPUART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_LPUART_TXRX_STANDARD - * @arg @ref LL_LPUART_TXRX_SWAPPED - */ -__STATIC_INLINE uint32_t LL_LPUART_GetTXRXSwap(const USART_TypeDef *LPUARTx) -{ - return (uint32_t)(READ_BIT(LPUARTx->CR2, USART_CR2_SWAP)); -} - -/** - * @brief Configure RX pin active level logic - * @rmtoll CR2 RXINV LL_LPUART_SetRXPinLevel - * @param LPUARTx LPUART Instance - * @param PinInvMethod This parameter can be one of the following values: - * @arg @ref LL_LPUART_RXPIN_LEVEL_STANDARD - * @arg @ref LL_LPUART_RXPIN_LEVEL_INVERTED - * @retval None - */ -__STATIC_INLINE void LL_LPUART_SetRXPinLevel(USART_TypeDef *LPUARTx, uint32_t PinInvMethod) -{ - MODIFY_REG(LPUARTx->CR2, USART_CR2_RXINV, PinInvMethod); -} - -/** - * @brief Retrieve RX pin active level logic configuration - * @rmtoll CR2 RXINV LL_LPUART_GetRXPinLevel - * @param LPUARTx LPUART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_LPUART_RXPIN_LEVEL_STANDARD - * @arg @ref LL_LPUART_RXPIN_LEVEL_INVERTED - */ -__STATIC_INLINE uint32_t LL_LPUART_GetRXPinLevel(const USART_TypeDef *LPUARTx) -{ - return (uint32_t)(READ_BIT(LPUARTx->CR2, USART_CR2_RXINV)); -} - -/** - * @brief Configure TX pin active level logic - * @rmtoll CR2 TXINV LL_LPUART_SetTXPinLevel - * @param LPUARTx LPUART Instance - * @param PinInvMethod This parameter can be one of the following values: - * @arg @ref LL_LPUART_TXPIN_LEVEL_STANDARD - * @arg @ref LL_LPUART_TXPIN_LEVEL_INVERTED - * @retval None - */ -__STATIC_INLINE void LL_LPUART_SetTXPinLevel(USART_TypeDef *LPUARTx, uint32_t PinInvMethod) -{ - MODIFY_REG(LPUARTx->CR2, USART_CR2_TXINV, PinInvMethod); -} - -/** - * @brief Retrieve TX pin active level logic configuration - * @rmtoll CR2 TXINV LL_LPUART_GetTXPinLevel - * @param LPUARTx LPUART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_LPUART_TXPIN_LEVEL_STANDARD - * @arg @ref LL_LPUART_TXPIN_LEVEL_INVERTED - */ -__STATIC_INLINE uint32_t LL_LPUART_GetTXPinLevel(const USART_TypeDef *LPUARTx) -{ - return (uint32_t)(READ_BIT(LPUARTx->CR2, USART_CR2_TXINV)); -} - -/** - * @brief Configure Binary data logic. - * - * @note Allow to define how Logical data from the data register are send/received : - * either in positive/direct logic (1=H, 0=L) or in negative/inverse logic (1=L, 0=H) - * @rmtoll CR2 DATAINV LL_LPUART_SetBinaryDataLogic - * @param LPUARTx LPUART Instance - * @param DataLogic This parameter can be one of the following values: - * @arg @ref LL_LPUART_BINARY_LOGIC_POSITIVE - * @arg @ref LL_LPUART_BINARY_LOGIC_NEGATIVE - * @retval None - */ -__STATIC_INLINE void LL_LPUART_SetBinaryDataLogic(USART_TypeDef *LPUARTx, uint32_t DataLogic) -{ - MODIFY_REG(LPUARTx->CR2, USART_CR2_DATAINV, DataLogic); -} - -/** - * @brief Retrieve Binary data configuration - * @rmtoll CR2 DATAINV LL_LPUART_GetBinaryDataLogic - * @param LPUARTx LPUART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_LPUART_BINARY_LOGIC_POSITIVE - * @arg @ref LL_LPUART_BINARY_LOGIC_NEGATIVE - */ -__STATIC_INLINE uint32_t LL_LPUART_GetBinaryDataLogic(const USART_TypeDef *LPUARTx) -{ - return (uint32_t)(READ_BIT(LPUARTx->CR2, USART_CR2_DATAINV)); -} - -/** - * @brief Configure transfer bit order (either Less or Most Significant Bit First) - * @note MSB First means data is transmitted/received with the MSB first, following the start bit. - * LSB First means data is transmitted/received with data bit 0 first, following the start bit. - * @rmtoll CR2 MSBFIRST LL_LPUART_SetTransferBitOrder - * @param LPUARTx LPUART Instance - * @param BitOrder This parameter can be one of the following values: - * @arg @ref LL_LPUART_BITORDER_LSBFIRST - * @arg @ref LL_LPUART_BITORDER_MSBFIRST - * @retval None - */ -__STATIC_INLINE void LL_LPUART_SetTransferBitOrder(USART_TypeDef *LPUARTx, uint32_t BitOrder) -{ - MODIFY_REG(LPUARTx->CR2, USART_CR2_MSBFIRST, BitOrder); -} - -/** - * @brief Return transfer bit order (either Less or Most Significant Bit First) - * @note MSB First means data is transmitted/received with the MSB first, following the start bit. - * LSB First means data is transmitted/received with data bit 0 first, following the start bit. - * @rmtoll CR2 MSBFIRST LL_LPUART_GetTransferBitOrder - * @param LPUARTx LPUART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_LPUART_BITORDER_LSBFIRST - * @arg @ref LL_LPUART_BITORDER_MSBFIRST - */ -__STATIC_INLINE uint32_t LL_LPUART_GetTransferBitOrder(const USART_TypeDef *LPUARTx) -{ - return (uint32_t)(READ_BIT(LPUARTx->CR2, USART_CR2_MSBFIRST)); -} - -/** - * @brief Set Address of the LPUART node. - * @note This is used in multiprocessor communication during Mute mode or Stop mode, - * for wake up with address mark detection. - * @note 4bits address node is used when 4-bit Address Detection is selected in ADDM7. - * (b7-b4 should be set to 0) - * 8bits address node is used when 7-bit Address Detection is selected in ADDM7. - * (This is used in multiprocessor communication during Mute mode or Stop mode, - * for wake up with 7-bit address mark detection. - * The MSB of the character sent by the transmitter should be equal to 1. - * It may also be used for character detection during normal reception, - * Mute mode inactive (for example, end of block detection in ModBus protocol). - * In this case, the whole received character (8-bit) is compared to the ADD[7:0] - * value and CMF flag is set on match) - * @rmtoll CR2 ADD LL_LPUART_ConfigNodeAddress\n - * CR2 ADDM7 LL_LPUART_ConfigNodeAddress - * @param LPUARTx LPUART Instance - * @param AddressLen This parameter can be one of the following values: - * @arg @ref LL_LPUART_ADDRESS_DETECT_4B - * @arg @ref LL_LPUART_ADDRESS_DETECT_7B - * @param NodeAddress 4 or 7 bit Address of the LPUART node. - * @retval None - */ -__STATIC_INLINE void LL_LPUART_ConfigNodeAddress(USART_TypeDef *LPUARTx, uint32_t AddressLen, uint32_t NodeAddress) -{ - MODIFY_REG(LPUARTx->CR2, USART_CR2_ADD | USART_CR2_ADDM7, - (uint32_t)(AddressLen | (NodeAddress << USART_CR2_ADD_Pos))); -} - -/** - * @brief Return 8 bit Address of the LPUART node as set in ADD field of CR2. - * @note If 4-bit Address Detection is selected in ADDM7, - * only 4bits (b3-b0) of returned value are relevant (b31-b4 are not relevant) - * If 7-bit Address Detection is selected in ADDM7, - * only 8bits (b7-b0) of returned value are relevant (b31-b8 are not relevant) - * @rmtoll CR2 ADD LL_LPUART_GetNodeAddress - * @param LPUARTx LPUART Instance - * @retval Address of the LPUART node (Value between Min_Data=0 and Max_Data=255) - */ -__STATIC_INLINE uint32_t LL_LPUART_GetNodeAddress(const USART_TypeDef *LPUARTx) -{ - return (uint32_t)(READ_BIT(LPUARTx->CR2, USART_CR2_ADD) >> USART_CR2_ADD_Pos); -} - -/** - * @brief Return Length of Node Address used in Address Detection mode (7-bit or 4-bit) - * @rmtoll CR2 ADDM7 LL_LPUART_GetNodeAddressLen - * @param LPUARTx LPUART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_LPUART_ADDRESS_DETECT_4B - * @arg @ref LL_LPUART_ADDRESS_DETECT_7B - */ -__STATIC_INLINE uint32_t LL_LPUART_GetNodeAddressLen(const USART_TypeDef *LPUARTx) -{ - return (uint32_t)(READ_BIT(LPUARTx->CR2, USART_CR2_ADDM7)); -} - -/** - * @brief Enable RTS HW Flow Control - * @rmtoll CR3 RTSE LL_LPUART_EnableRTSHWFlowCtrl - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_EnableRTSHWFlowCtrl(USART_TypeDef *LPUARTx) -{ - SET_BIT(LPUARTx->CR3, USART_CR3_RTSE); -} - -/** - * @brief Disable RTS HW Flow Control - * @rmtoll CR3 RTSE LL_LPUART_DisableRTSHWFlowCtrl - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_DisableRTSHWFlowCtrl(USART_TypeDef *LPUARTx) -{ - CLEAR_BIT(LPUARTx->CR3, USART_CR3_RTSE); -} - -/** - * @brief Enable CTS HW Flow Control - * @rmtoll CR3 CTSE LL_LPUART_EnableCTSHWFlowCtrl - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_EnableCTSHWFlowCtrl(USART_TypeDef *LPUARTx) -{ - SET_BIT(LPUARTx->CR3, USART_CR3_CTSE); -} - -/** - * @brief Disable CTS HW Flow Control - * @rmtoll CR3 CTSE LL_LPUART_DisableCTSHWFlowCtrl - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_DisableCTSHWFlowCtrl(USART_TypeDef *LPUARTx) -{ - CLEAR_BIT(LPUARTx->CR3, USART_CR3_CTSE); -} - -/** - * @brief Configure HW Flow Control mode (both CTS and RTS) - * @rmtoll CR3 RTSE LL_LPUART_SetHWFlowCtrl\n - * CR3 CTSE LL_LPUART_SetHWFlowCtrl - * @param LPUARTx LPUART Instance - * @param HardwareFlowControl This parameter can be one of the following values: - * @arg @ref LL_LPUART_HWCONTROL_NONE - * @arg @ref LL_LPUART_HWCONTROL_RTS - * @arg @ref LL_LPUART_HWCONTROL_CTS - * @arg @ref LL_LPUART_HWCONTROL_RTS_CTS - * @retval None - */ -__STATIC_INLINE void LL_LPUART_SetHWFlowCtrl(USART_TypeDef *LPUARTx, uint32_t HardwareFlowControl) -{ - MODIFY_REG(LPUARTx->CR3, USART_CR3_RTSE | USART_CR3_CTSE, HardwareFlowControl); -} - -/** - * @brief Return HW Flow Control configuration (both CTS and RTS) - * @rmtoll CR3 RTSE LL_LPUART_GetHWFlowCtrl\n - * CR3 CTSE LL_LPUART_GetHWFlowCtrl - * @param LPUARTx LPUART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_LPUART_HWCONTROL_NONE - * @arg @ref LL_LPUART_HWCONTROL_RTS - * @arg @ref LL_LPUART_HWCONTROL_CTS - * @arg @ref LL_LPUART_HWCONTROL_RTS_CTS - */ -__STATIC_INLINE uint32_t LL_LPUART_GetHWFlowCtrl(const USART_TypeDef *LPUARTx) -{ - return (uint32_t)(READ_BIT(LPUARTx->CR3, USART_CR3_RTSE | USART_CR3_CTSE)); -} - -/** - * @brief Enable Overrun detection - * @rmtoll CR3 OVRDIS LL_LPUART_EnableOverrunDetect - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_EnableOverrunDetect(USART_TypeDef *LPUARTx) -{ - CLEAR_BIT(LPUARTx->CR3, USART_CR3_OVRDIS); -} - -/** - * @brief Disable Overrun detection - * @rmtoll CR3 OVRDIS LL_LPUART_DisableOverrunDetect - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_DisableOverrunDetect(USART_TypeDef *LPUARTx) -{ - SET_BIT(LPUARTx->CR3, USART_CR3_OVRDIS); -} - -/** - * @brief Indicate if Overrun detection is enabled - * @rmtoll CR3 OVRDIS LL_LPUART_IsEnabledOverrunDetect - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsEnabledOverrunDetect(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->CR3, USART_CR3_OVRDIS) != USART_CR3_OVRDIS) ? 1UL : 0UL); -} - -/** - * @brief Select event type for Wake UP Interrupt Flag (WUS[1:0] bits) - * @rmtoll CR3 WUS LL_LPUART_SetWKUPType - * @param LPUARTx LPUART Instance - * @param Type This parameter can be one of the following values: - * @arg @ref LL_LPUART_WAKEUP_ON_ADDRESS - * @arg @ref LL_LPUART_WAKEUP_ON_STARTBIT - * @arg @ref LL_LPUART_WAKEUP_ON_RXNE - * @retval None - */ -__STATIC_INLINE void LL_LPUART_SetWKUPType(USART_TypeDef *LPUARTx, uint32_t Type) -{ - MODIFY_REG(LPUARTx->CR3, USART_CR3_WUS, Type); -} - -/** - * @brief Return event type for Wake UP Interrupt Flag (WUS[1:0] bits) - * @rmtoll CR3 WUS LL_LPUART_GetWKUPType - * @param LPUARTx LPUART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_LPUART_WAKEUP_ON_ADDRESS - * @arg @ref LL_LPUART_WAKEUP_ON_STARTBIT - * @arg @ref LL_LPUART_WAKEUP_ON_RXNE - */ -__STATIC_INLINE uint32_t LL_LPUART_GetWKUPType(const USART_TypeDef *LPUARTx) -{ - return (uint32_t)(READ_BIT(LPUARTx->CR3, USART_CR3_WUS)); -} - -/** - * @brief Configure LPUART BRR register for achieving expected Baud Rate value. - * - * @note Compute and set LPUARTDIV value in BRR Register (full BRR content) - * according to used Peripheral Clock and expected Baud Rate values - * @note Peripheral clock and Baud Rate values provided as function parameters should be valid - * (Baud rate value != 0). - * @note Provided that LPUARTx_BRR must be > = 0x300 and LPUART_BRR is 20-bit, - * a care should be taken when generating high baud rates using high PeriphClk - * values. PeriphClk must be in the range [3 x BaudRate, 4096 x BaudRate]. - * @rmtoll BRR BRR LL_LPUART_SetBaudRate - * @param LPUARTx LPUART Instance - * @param PeriphClk Peripheral Clock - * @param PrescalerValue This parameter can be one of the following values: - * @arg @ref LL_LPUART_PRESCALER_DIV1 - * @arg @ref LL_LPUART_PRESCALER_DIV2 - * @arg @ref LL_LPUART_PRESCALER_DIV4 - * @arg @ref LL_LPUART_PRESCALER_DIV6 - * @arg @ref LL_LPUART_PRESCALER_DIV8 - * @arg @ref LL_LPUART_PRESCALER_DIV10 - * @arg @ref LL_LPUART_PRESCALER_DIV12 - * @arg @ref LL_LPUART_PRESCALER_DIV16 - * @arg @ref LL_LPUART_PRESCALER_DIV32 - * @arg @ref LL_LPUART_PRESCALER_DIV64 - * @arg @ref LL_LPUART_PRESCALER_DIV128 - * @arg @ref LL_LPUART_PRESCALER_DIV256 - * @param BaudRate Baud Rate - * @retval None - */ -__STATIC_INLINE void LL_LPUART_SetBaudRate(USART_TypeDef *LPUARTx, uint32_t PeriphClk, uint32_t PrescalerValue, - uint32_t BaudRate) -{ - if (BaudRate != 0U) - { - LPUARTx->BRR = __LL_LPUART_DIV(PeriphClk, PrescalerValue, BaudRate); - } -} - -/** - * @brief Return current Baud Rate value, according to LPUARTDIV present in BRR register - * (full BRR content), and to used Peripheral Clock values - * @note In case of non-initialized or invalid value stored in BRR register, value 0 will be returned. - * @rmtoll BRR BRR LL_LPUART_GetBaudRate - * @param LPUARTx LPUART Instance - * @param PeriphClk Peripheral Clock - * @param PrescalerValue This parameter can be one of the following values: - * @arg @ref LL_LPUART_PRESCALER_DIV1 - * @arg @ref LL_LPUART_PRESCALER_DIV2 - * @arg @ref LL_LPUART_PRESCALER_DIV4 - * @arg @ref LL_LPUART_PRESCALER_DIV6 - * @arg @ref LL_LPUART_PRESCALER_DIV8 - * @arg @ref LL_LPUART_PRESCALER_DIV10 - * @arg @ref LL_LPUART_PRESCALER_DIV12 - * @arg @ref LL_LPUART_PRESCALER_DIV16 - * @arg @ref LL_LPUART_PRESCALER_DIV32 - * @arg @ref LL_LPUART_PRESCALER_DIV64 - * @arg @ref LL_LPUART_PRESCALER_DIV128 - * @arg @ref LL_LPUART_PRESCALER_DIV256 - * @retval Baud Rate - */ -__STATIC_INLINE uint32_t LL_LPUART_GetBaudRate(const USART_TypeDef *LPUARTx, uint32_t PeriphClk, - uint32_t PrescalerValue) -{ - uint32_t lpuartdiv; - uint32_t brrresult; - uint32_t periphclkpresc = (uint32_t)(PeriphClk / (LPUART_PRESCALER_TAB[(uint16_t)PrescalerValue])); - - lpuartdiv = LPUARTx->BRR & LPUART_BRR_MASK; - - if (lpuartdiv >= LPUART_BRR_MIN_VALUE) - { - brrresult = (uint32_t)(((uint64_t)(periphclkpresc) * LPUART_LPUARTDIV_FREQ_MUL) / lpuartdiv); - } - else - { - brrresult = 0x0UL; - } - - return (brrresult); -} - -/** - * @} - */ - -/** @defgroup LPUART_LL_EF_Configuration_HalfDuplex Configuration functions related to Half Duplex feature - * @{ - */ - -/** - * @brief Enable Single Wire Half-Duplex mode - * @rmtoll CR3 HDSEL LL_LPUART_EnableHalfDuplex - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_EnableHalfDuplex(USART_TypeDef *LPUARTx) -{ - SET_BIT(LPUARTx->CR3, USART_CR3_HDSEL); -} - -/** - * @brief Disable Single Wire Half-Duplex mode - * @rmtoll CR3 HDSEL LL_LPUART_DisableHalfDuplex - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_DisableHalfDuplex(USART_TypeDef *LPUARTx) -{ - CLEAR_BIT(LPUARTx->CR3, USART_CR3_HDSEL); -} - -/** - * @brief Indicate if Single Wire Half-Duplex mode is enabled - * @rmtoll CR3 HDSEL LL_LPUART_IsEnabledHalfDuplex - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsEnabledHalfDuplex(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->CR3, USART_CR3_HDSEL) == (USART_CR3_HDSEL)) ? 1UL : 0UL); -} - -/** - * @} - */ - -/** @defgroup LPUART_LL_EF_Configuration_DE Configuration functions related to Driver Enable feature - * @{ - */ - -/** - * @brief Set DEDT (Driver Enable De-Assertion Time), Time value expressed on 5 bits ([4:0] bits). - * @rmtoll CR1 DEDT LL_LPUART_SetDEDeassertionTime - * @param LPUARTx LPUART Instance - * @param Time Value between Min_Data=0 and Max_Data=31 - * @retval None - */ -__STATIC_INLINE void LL_LPUART_SetDEDeassertionTime(USART_TypeDef *LPUARTx, uint32_t Time) -{ - MODIFY_REG(LPUARTx->CR1, USART_CR1_DEDT, Time << USART_CR1_DEDT_Pos); -} - -/** - * @brief Return DEDT (Driver Enable De-Assertion Time) - * @rmtoll CR1 DEDT LL_LPUART_GetDEDeassertionTime - * @param LPUARTx LPUART Instance - * @retval Time value expressed on 5 bits ([4:0] bits) : c - */ -__STATIC_INLINE uint32_t LL_LPUART_GetDEDeassertionTime(const USART_TypeDef *LPUARTx) -{ - return (uint32_t)(READ_BIT(LPUARTx->CR1, USART_CR1_DEDT) >> USART_CR1_DEDT_Pos); -} - -/** - * @brief Set DEAT (Driver Enable Assertion Time), Time value expressed on 5 bits ([4:0] bits). - * @rmtoll CR1 DEAT LL_LPUART_SetDEAssertionTime - * @param LPUARTx LPUART Instance - * @param Time Value between Min_Data=0 and Max_Data=31 - * @retval None - */ -__STATIC_INLINE void LL_LPUART_SetDEAssertionTime(USART_TypeDef *LPUARTx, uint32_t Time) -{ - MODIFY_REG(LPUARTx->CR1, USART_CR1_DEAT, Time << USART_CR1_DEAT_Pos); -} - -/** - * @brief Return DEAT (Driver Enable Assertion Time) - * @rmtoll CR1 DEAT LL_LPUART_GetDEAssertionTime - * @param LPUARTx LPUART Instance - * @retval Time value expressed on 5 bits ([4:0] bits) : Time Value between Min_Data=0 and Max_Data=31 - */ -__STATIC_INLINE uint32_t LL_LPUART_GetDEAssertionTime(const USART_TypeDef *LPUARTx) -{ - return (uint32_t)(READ_BIT(LPUARTx->CR1, USART_CR1_DEAT) >> USART_CR1_DEAT_Pos); -} - -/** - * @brief Enable Driver Enable (DE) Mode - * @rmtoll CR3 DEM LL_LPUART_EnableDEMode - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_EnableDEMode(USART_TypeDef *LPUARTx) -{ - SET_BIT(LPUARTx->CR3, USART_CR3_DEM); -} - -/** - * @brief Disable Driver Enable (DE) Mode - * @rmtoll CR3 DEM LL_LPUART_DisableDEMode - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_DisableDEMode(USART_TypeDef *LPUARTx) -{ - CLEAR_BIT(LPUARTx->CR3, USART_CR3_DEM); -} - -/** - * @brief Indicate if Driver Enable (DE) Mode is enabled - * @rmtoll CR3 DEM LL_LPUART_IsEnabledDEMode - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsEnabledDEMode(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->CR3, USART_CR3_DEM) == (USART_CR3_DEM)) ? 1UL : 0UL); -} - -/** - * @brief Select Driver Enable Polarity - * @rmtoll CR3 DEP LL_LPUART_SetDESignalPolarity - * @param LPUARTx LPUART Instance - * @param Polarity This parameter can be one of the following values: - * @arg @ref LL_LPUART_DE_POLARITY_HIGH - * @arg @ref LL_LPUART_DE_POLARITY_LOW - * @retval None - */ -__STATIC_INLINE void LL_LPUART_SetDESignalPolarity(USART_TypeDef *LPUARTx, uint32_t Polarity) -{ - MODIFY_REG(LPUARTx->CR3, USART_CR3_DEP, Polarity); -} - -/** - * @brief Return Driver Enable Polarity - * @rmtoll CR3 DEP LL_LPUART_GetDESignalPolarity - * @param LPUARTx LPUART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_LPUART_DE_POLARITY_HIGH - * @arg @ref LL_LPUART_DE_POLARITY_LOW - */ -__STATIC_INLINE uint32_t LL_LPUART_GetDESignalPolarity(const USART_TypeDef *LPUARTx) -{ - return (uint32_t)(READ_BIT(LPUARTx->CR3, USART_CR3_DEP)); -} - -/** - * @} - */ - -/** @defgroup LPUART_LL_EF_FLAG_Management FLAG_Management - * @{ - */ - -/** - * @brief Check if the LPUART Parity Error Flag is set or not - * @rmtoll ISR PE LL_LPUART_IsActiveFlag_PE - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_PE(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->ISR, USART_ISR_PE) == (USART_ISR_PE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the LPUART Framing Error Flag is set or not - * @rmtoll ISR FE LL_LPUART_IsActiveFlag_FE - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_FE(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->ISR, USART_ISR_FE) == (USART_ISR_FE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the LPUART Noise error detected Flag is set or not - * @rmtoll ISR NE LL_LPUART_IsActiveFlag_NE - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_NE(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->ISR, USART_ISR_NE) == (USART_ISR_NE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the LPUART OverRun Error Flag is set or not - * @rmtoll ISR ORE LL_LPUART_IsActiveFlag_ORE - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_ORE(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->ISR, USART_ISR_ORE) == (USART_ISR_ORE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the LPUART IDLE line detected Flag is set or not - * @rmtoll ISR IDLE LL_LPUART_IsActiveFlag_IDLE - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_IDLE(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->ISR, USART_ISR_IDLE) == (USART_ISR_IDLE)) ? 1UL : 0UL); -} - -#define LL_LPUART_IsActiveFlag_RXNE LL_LPUART_IsActiveFlag_RXNE_RXFNE /* Redefinition for legacy purpose */ - -/** - * @brief Check if the LPUART Read Data Register or LPUART RX FIFO Not Empty Flag is set or not - * @rmtoll ISR RXNE_RXFNE LL_LPUART_IsActiveFlag_RXNE_RXFNE - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_RXNE_RXFNE(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->ISR, USART_ISR_RXNE_RXFNE) == (USART_ISR_RXNE_RXFNE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the LPUART Transmission Complete Flag is set or not - * @rmtoll ISR TC LL_LPUART_IsActiveFlag_TC - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_TC(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->ISR, USART_ISR_TC) == (USART_ISR_TC)) ? 1UL : 0UL); -} - -#define LL_LPUART_IsActiveFlag_TXE LL_LPUART_IsActiveFlag_TXE_TXFNF /* Redefinition for legacy purpose */ - -/** - * @brief Check if the LPUART Transmit Data Register Empty or LPUART TX FIFO Not Full Flag is set or not - * @rmtoll ISR TXE_TXFNF LL_LPUART_IsActiveFlag_TXE_TXFNF - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_TXE_TXFNF(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->ISR, USART_ISR_TXE_TXFNF) == (USART_ISR_TXE_TXFNF)) ? 1UL : 0UL); -} - -/** - * @brief Check if the LPUART CTS interrupt Flag is set or not - * @rmtoll ISR CTSIF LL_LPUART_IsActiveFlag_nCTS - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_nCTS(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->ISR, USART_ISR_CTSIF) == (USART_ISR_CTSIF)) ? 1UL : 0UL); -} - -/** - * @brief Check if the LPUART CTS Flag is set or not - * @rmtoll ISR CTS LL_LPUART_IsActiveFlag_CTS - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_CTS(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->ISR, USART_ISR_CTS) == (USART_ISR_CTS)) ? 1UL : 0UL); -} - -/** - * @brief Check if the LPUART Busy Flag is set or not - * @rmtoll ISR BUSY LL_LPUART_IsActiveFlag_BUSY - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_BUSY(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->ISR, USART_ISR_BUSY) == (USART_ISR_BUSY)) ? 1UL : 0UL); -} - -/** - * @brief Check if the LPUART Character Match Flag is set or not - * @rmtoll ISR CMF LL_LPUART_IsActiveFlag_CM - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_CM(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->ISR, USART_ISR_CMF) == (USART_ISR_CMF)) ? 1UL : 0UL); -} - -/** - * @brief Check if the LPUART Send Break Flag is set or not - * @rmtoll ISR SBKF LL_LPUART_IsActiveFlag_SBK - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_SBK(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->ISR, USART_ISR_SBKF) == (USART_ISR_SBKF)) ? 1UL : 0UL); -} - -/** - * @brief Check if the LPUART Receive Wake Up from mute mode Flag is set or not - * @rmtoll ISR RWU LL_LPUART_IsActiveFlag_RWU - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_RWU(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->ISR, USART_ISR_RWU) == (USART_ISR_RWU)) ? 1UL : 0UL); -} - -/** - * @brief Check if the LPUART Wake Up from stop mode Flag is set or not - * @rmtoll ISR WUF LL_LPUART_IsActiveFlag_WKUP - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_WKUP(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->ISR, USART_ISR_WUF) == (USART_ISR_WUF)) ? 1UL : 0UL); -} - -/** - * @brief Check if the LPUART Transmit Enable Acknowledge Flag is set or not - * @rmtoll ISR TEACK LL_LPUART_IsActiveFlag_TEACK - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_TEACK(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->ISR, USART_ISR_TEACK) == (USART_ISR_TEACK)) ? 1UL : 0UL); -} - -/** - * @brief Check if the LPUART Receive Enable Acknowledge Flag is set or not - * @rmtoll ISR REACK LL_LPUART_IsActiveFlag_REACK - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_REACK(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->ISR, USART_ISR_REACK) == (USART_ISR_REACK)) ? 1UL : 0UL); -} - -/** - * @brief Check if the LPUART TX FIFO Empty Flag is set or not - * @rmtoll ISR TXFE LL_LPUART_IsActiveFlag_TXFE - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_TXFE(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->ISR, USART_ISR_TXFE) == (USART_ISR_TXFE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the LPUART RX FIFO Full Flag is set or not - * @rmtoll ISR RXFF LL_LPUART_IsActiveFlag_RXFF - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_RXFF(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->ISR, USART_ISR_RXFF) == (USART_ISR_RXFF)) ? 1UL : 0UL); -} - -/** - * @brief Check if the LPUART TX FIFO Threshold Flag is set or not - * @rmtoll ISR TXFT LL_LPUART_IsActiveFlag_TXFT - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_TXFT(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->ISR, USART_ISR_TXFT) == (USART_ISR_TXFT)) ? 1UL : 0UL); -} - -/** - * @brief Check if the LPUART RX FIFO Threshold Flag is set or not - * @rmtoll ISR RXFT LL_LPUART_IsActiveFlag_RXFT - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_RXFT(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->ISR, USART_ISR_RXFT) == (USART_ISR_RXFT)) ? 1UL : 0UL); -} - -/** - * @brief Clear Parity Error Flag - * @rmtoll ICR PECF LL_LPUART_ClearFlag_PE - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_ClearFlag_PE(USART_TypeDef *LPUARTx) -{ - WRITE_REG(LPUARTx->ICR, USART_ICR_PECF); -} - -/** - * @brief Clear Framing Error Flag - * @rmtoll ICR FECF LL_LPUART_ClearFlag_FE - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_ClearFlag_FE(USART_TypeDef *LPUARTx) -{ - WRITE_REG(LPUARTx->ICR, USART_ICR_FECF); -} - -/** - * @brief Clear Noise detected Flag - * @rmtoll ICR NECF LL_LPUART_ClearFlag_NE - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_ClearFlag_NE(USART_TypeDef *LPUARTx) -{ - WRITE_REG(LPUARTx->ICR, USART_ICR_NECF); -} - -/** - * @brief Clear OverRun Error Flag - * @rmtoll ICR ORECF LL_LPUART_ClearFlag_ORE - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_ClearFlag_ORE(USART_TypeDef *LPUARTx) -{ - WRITE_REG(LPUARTx->ICR, USART_ICR_ORECF); -} - -/** - * @brief Clear IDLE line detected Flag - * @rmtoll ICR IDLECF LL_LPUART_ClearFlag_IDLE - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_ClearFlag_IDLE(USART_TypeDef *LPUARTx) -{ - WRITE_REG(LPUARTx->ICR, USART_ICR_IDLECF); -} - -/** - * @brief Clear Transmission Complete Flag - * @rmtoll ICR TCCF LL_LPUART_ClearFlag_TC - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_ClearFlag_TC(USART_TypeDef *LPUARTx) -{ - WRITE_REG(LPUARTx->ICR, USART_ICR_TCCF); -} - -/** - * @brief Clear CTS Interrupt Flag - * @rmtoll ICR CTSCF LL_LPUART_ClearFlag_nCTS - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_ClearFlag_nCTS(USART_TypeDef *LPUARTx) -{ - WRITE_REG(LPUARTx->ICR, USART_ICR_CTSCF); -} - -/** - * @brief Clear Character Match Flag - * @rmtoll ICR CMCF LL_LPUART_ClearFlag_CM - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_ClearFlag_CM(USART_TypeDef *LPUARTx) -{ - WRITE_REG(LPUARTx->ICR, USART_ICR_CMCF); -} - -/** - * @brief Clear Wake Up from stop mode Flag - * @rmtoll ICR WUCF LL_LPUART_ClearFlag_WKUP - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_ClearFlag_WKUP(USART_TypeDef *LPUARTx) -{ - WRITE_REG(LPUARTx->ICR, USART_ICR_WUCF); -} - -/** - * @} - */ - -/** @defgroup LPUART_LL_EF_IT_Management IT_Management - * @{ - */ - -/** - * @brief Enable IDLE Interrupt - * @rmtoll CR1 IDLEIE LL_LPUART_EnableIT_IDLE - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_EnableIT_IDLE(USART_TypeDef *LPUARTx) -{ - ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_IDLEIE); -} - -#define LL_LPUART_EnableIT_RXNE LL_LPUART_EnableIT_RXNE_RXFNE /* Redefinition for legacy purpose */ - -/** - * @brief Enable RX Not Empty and RX FIFO Not Empty Interrupt - * @rmtoll CR1 RXNEIE_RXFNEIE LL_LPUART_EnableIT_RXNE_RXFNE - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_EnableIT_RXNE_RXFNE(USART_TypeDef *LPUARTx) -{ - ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_RXNEIE_RXFNEIE); -} - -/** - * @brief Enable Transmission Complete Interrupt - * @rmtoll CR1 TCIE LL_LPUART_EnableIT_TC - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_EnableIT_TC(USART_TypeDef *LPUARTx) -{ - ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_TCIE); -} - -#define LL_LPUART_EnableIT_TXE LL_LPUART_EnableIT_TXE_TXFNF /* Redefinition for legacy purpose */ - -/** - * @brief Enable TX Empty and TX FIFO Not Full Interrupt - * @rmtoll CR1 TXEIE_TXFNFIE LL_LPUART_EnableIT_TXE_TXFNF - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_EnableIT_TXE_TXFNF(USART_TypeDef *LPUARTx) -{ - ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_TXEIE_TXFNFIE); -} - -/** - * @brief Enable Parity Error Interrupt - * @rmtoll CR1 PEIE LL_LPUART_EnableIT_PE - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_EnableIT_PE(USART_TypeDef *LPUARTx) -{ - ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_PEIE); -} - -/** - * @brief Enable Character Match Interrupt - * @rmtoll CR1 CMIE LL_LPUART_EnableIT_CM - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_EnableIT_CM(USART_TypeDef *LPUARTx) -{ - ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_CMIE); -} - -/** - * @brief Enable TX FIFO Empty Interrupt - * @rmtoll CR1 TXFEIE LL_LPUART_EnableIT_TXFE - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_EnableIT_TXFE(USART_TypeDef *LPUARTx) -{ - ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_TXFEIE); -} - -/** - * @brief Enable RX FIFO Full Interrupt - * @rmtoll CR1 RXFFIE LL_LPUART_EnableIT_RXFF - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_EnableIT_RXFF(USART_TypeDef *LPUARTx) -{ - ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_RXFFIE); -} - -/** - * @brief Enable Error Interrupt - * @note When set, Error Interrupt Enable Bit is enabling interrupt generation in case of a framing - * error, overrun error or noise flag (FE=1 or ORE=1 or NF=1 in the LPUARTx_ISR register). - * - 0: Interrupt is inhibited - * - 1: An interrupt is generated when FE=1 or ORE=1 or NF=1 in the LPUARTx_ISR register. - * @rmtoll CR3 EIE LL_LPUART_EnableIT_ERROR - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_EnableIT_ERROR(USART_TypeDef *LPUARTx) -{ - ATOMIC_SET_BIT(LPUARTx->CR3, USART_CR3_EIE); -} - -/** - * @brief Enable CTS Interrupt - * @rmtoll CR3 CTSIE LL_LPUART_EnableIT_CTS - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_EnableIT_CTS(USART_TypeDef *LPUARTx) -{ - ATOMIC_SET_BIT(LPUARTx->CR3, USART_CR3_CTSIE); -} - -/** - * @brief Enable Wake Up from Stop Mode Interrupt - * @rmtoll CR3 WUFIE LL_LPUART_EnableIT_WKUP - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_EnableIT_WKUP(USART_TypeDef *LPUARTx) -{ - ATOMIC_SET_BIT(LPUARTx->CR3, USART_CR3_WUFIE); -} - -/** - * @brief Enable TX FIFO Threshold Interrupt - * @rmtoll CR3 TXFTIE LL_LPUART_EnableIT_TXFT - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_EnableIT_TXFT(USART_TypeDef *LPUARTx) -{ - ATOMIC_SET_BIT(LPUARTx->CR3, USART_CR3_TXFTIE); -} - -/** - * @brief Enable RX FIFO Threshold Interrupt - * @rmtoll CR3 RXFTIE LL_LPUART_EnableIT_RXFT - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_EnableIT_RXFT(USART_TypeDef *LPUARTx) -{ - ATOMIC_SET_BIT(LPUARTx->CR3, USART_CR3_RXFTIE); -} - -/** - * @brief Disable IDLE Interrupt - * @rmtoll CR1 IDLEIE LL_LPUART_DisableIT_IDLE - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_DisableIT_IDLE(USART_TypeDef *LPUARTx) -{ - ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_IDLEIE); -} - -#define LL_LPUART_DisableIT_RXNE LL_LPUART_DisableIT_RXNE_RXFNE /* Redefinition for legacy purpose */ - -/** - * @brief Disable RX Not Empty and RX FIFO Not Empty Interrupt - * @rmtoll CR1 RXNEIE_RXFNEIE LL_LPUART_DisableIT_RXNE_RXFNE - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_DisableIT_RXNE_RXFNE(USART_TypeDef *LPUARTx) -{ - ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_RXNEIE_RXFNEIE); -} - -/** - * @brief Disable Transmission Complete Interrupt - * @rmtoll CR1 TCIE LL_LPUART_DisableIT_TC - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_DisableIT_TC(USART_TypeDef *LPUARTx) -{ - ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_TCIE); -} - -#define LL_LPUART_DisableIT_TXE LL_LPUART_DisableIT_TXE_TXFNF /* Redefinition for legacy purpose */ - -/** - * @brief Disable TX Empty and TX FIFO Not Full Interrupt - * @rmtoll CR1 TXEIE_TXFNFIE LL_LPUART_DisableIT_TXE_TXFNF - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_DisableIT_TXE_TXFNF(USART_TypeDef *LPUARTx) -{ - ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_TXEIE_TXFNFIE); -} - -/** - * @brief Disable Parity Error Interrupt - * @rmtoll CR1 PEIE LL_LPUART_DisableIT_PE - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_DisableIT_PE(USART_TypeDef *LPUARTx) -{ - ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_PEIE); -} - -/** - * @brief Disable Character Match Interrupt - * @rmtoll CR1 CMIE LL_LPUART_DisableIT_CM - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_DisableIT_CM(USART_TypeDef *LPUARTx) -{ - ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_CMIE); -} - -/** - * @brief Disable TX FIFO Empty Interrupt - * @rmtoll CR1 TXFEIE LL_LPUART_DisableIT_TXFE - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_DisableIT_TXFE(USART_TypeDef *LPUARTx) -{ - ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_TXFEIE); -} - -/** - * @brief Disable RX FIFO Full Interrupt - * @rmtoll CR1 RXFFIE LL_LPUART_DisableIT_RXFF - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_DisableIT_RXFF(USART_TypeDef *LPUARTx) -{ - ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_RXFFIE); -} - -/** - * @brief Disable Error Interrupt - * @note When set, Error Interrupt Enable Bit is enabling interrupt generation in case of a framing - * error, overrun error or noise flag (FE=1 or ORE=1 or NF=1 in the LPUARTx_ISR register). - * - 0: Interrupt is inhibited - * - 1: An interrupt is generated when FE=1 or ORE=1 or NF=1 in the LPUARTx_ISR register. - * @rmtoll CR3 EIE LL_LPUART_DisableIT_ERROR - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_DisableIT_ERROR(USART_TypeDef *LPUARTx) -{ - ATOMIC_CLEAR_BIT(LPUARTx->CR3, USART_CR3_EIE); -} - -/** - * @brief Disable CTS Interrupt - * @rmtoll CR3 CTSIE LL_LPUART_DisableIT_CTS - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_DisableIT_CTS(USART_TypeDef *LPUARTx) -{ - ATOMIC_CLEAR_BIT(LPUARTx->CR3, USART_CR3_CTSIE); -} - -/** - * @brief Disable Wake Up from Stop Mode Interrupt - * @rmtoll CR3 WUFIE LL_LPUART_DisableIT_WKUP - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_DisableIT_WKUP(USART_TypeDef *LPUARTx) -{ - ATOMIC_CLEAR_BIT(LPUARTx->CR3, USART_CR3_WUFIE); -} - -/** - * @brief Disable TX FIFO Threshold Interrupt - * @rmtoll CR3 TXFTIE LL_LPUART_DisableIT_TXFT - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_DisableIT_TXFT(USART_TypeDef *LPUARTx) -{ - ATOMIC_CLEAR_BIT(LPUARTx->CR3, USART_CR3_TXFTIE); -} - -/** - * @brief Disable RX FIFO Threshold Interrupt - * @rmtoll CR3 RXFTIE LL_LPUART_DisableIT_RXFT - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_DisableIT_RXFT(USART_TypeDef *LPUARTx) -{ - ATOMIC_CLEAR_BIT(LPUARTx->CR3, USART_CR3_RXFTIE); -} - -/** - * @brief Check if the LPUART IDLE Interrupt source is enabled or disabled. - * @rmtoll CR1 IDLEIE LL_LPUART_IsEnabledIT_IDLE - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_IDLE(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->CR1, USART_CR1_IDLEIE) == (USART_CR1_IDLEIE)) ? 1UL : 0UL); -} - -#define LL_LPUART_IsEnabledIT_RXNE LL_LPUART_IsEnabledIT_RXNE_RXFNE /* Redefinition for legacy purpose */ - -/** - * @brief Check if the LPUART RX Not Empty and LPUART RX FIFO Not Empty Interrupt is enabled or disabled. - * @rmtoll CR1 RXNEIE_RXFNEIE LL_LPUART_IsEnabledIT_RXNE_RXFNE - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_RXNE_RXFNE(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->CR1, USART_CR1_RXNEIE_RXFNEIE) == (USART_CR1_RXNEIE_RXFNEIE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the LPUART Transmission Complete Interrupt is enabled or disabled. - * @rmtoll CR1 TCIE LL_LPUART_IsEnabledIT_TC - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_TC(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->CR1, USART_CR1_TCIE) == (USART_CR1_TCIE)) ? 1UL : 0UL); -} - -#define LL_LPUART_IsEnabledIT_TXE LL_LPUART_IsEnabledIT_TXE_TXFNF /* Redefinition for legacy purpose */ - -/** - * @brief Check if the LPUART TX Empty and LPUART TX FIFO Not Full Interrupt is enabled or disabled - * @rmtoll CR1 TXEIE_TXFNFIE LL_LPUART_IsEnabledIT_TXE_TXFNF - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_TXE_TXFNF(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->CR1, USART_CR1_TXEIE_TXFNFIE) == (USART_CR1_TXEIE_TXFNFIE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the LPUART Parity Error Interrupt is enabled or disabled. - * @rmtoll CR1 PEIE LL_LPUART_IsEnabledIT_PE - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_PE(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->CR1, USART_CR1_PEIE) == (USART_CR1_PEIE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the LPUART Character Match Interrupt is enabled or disabled. - * @rmtoll CR1 CMIE LL_LPUART_IsEnabledIT_CM - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_CM(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->CR1, USART_CR1_CMIE) == (USART_CR1_CMIE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the LPUART TX FIFO Empty Interrupt is enabled or disabled - * @rmtoll CR1 TXFEIE LL_LPUART_IsEnabledIT_TXFE - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_TXFE(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->CR1, USART_CR1_TXFEIE) == (USART_CR1_TXFEIE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the LPUART RX FIFO Full Interrupt is enabled or disabled - * @rmtoll CR1 RXFFIE LL_LPUART_IsEnabledIT_RXFF - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_RXFF(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->CR1, USART_CR1_RXFFIE) == (USART_CR1_RXFFIE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the LPUART Error Interrupt is enabled or disabled. - * @rmtoll CR3 EIE LL_LPUART_IsEnabledIT_ERROR - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_ERROR(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->CR3, USART_CR3_EIE) == (USART_CR3_EIE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the LPUART CTS Interrupt is enabled or disabled. - * @rmtoll CR3 CTSIE LL_LPUART_IsEnabledIT_CTS - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_CTS(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->CR3, USART_CR3_CTSIE) == (USART_CR3_CTSIE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the LPUART Wake Up from Stop Mode Interrupt is enabled or disabled. - * @rmtoll CR3 WUFIE LL_LPUART_IsEnabledIT_WKUP - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_WKUP(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->CR3, USART_CR3_WUFIE) == (USART_CR3_WUFIE)) ? 1UL : 0UL); -} - -/** - * @brief Check if LPUART TX FIFO Threshold Interrupt is enabled or disabled - * @rmtoll CR3 TXFTIE LL_LPUART_IsEnabledIT_TXFT - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_TXFT(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->CR3, USART_CR3_TXFTIE) == (USART_CR3_TXFTIE)) ? 1UL : 0UL); -} - -/** - * @brief Check if LPUART RX FIFO Threshold Interrupt is enabled or disabled - * @rmtoll CR3 RXFTIE LL_LPUART_IsEnabledIT_RXFT - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_RXFT(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->CR3, USART_CR3_RXFTIE) == (USART_CR3_RXFTIE)) ? 1UL : 0UL); -} - -/** - * @} - */ - -/** @defgroup LPUART_LL_EF_DMA_Management DMA_Management - * @{ - */ - -/** - * @brief Enable DMA Mode for reception - * @rmtoll CR3 DMAR LL_LPUART_EnableDMAReq_RX - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_EnableDMAReq_RX(USART_TypeDef *LPUARTx) -{ - ATOMIC_SET_BIT(LPUARTx->CR3, USART_CR3_DMAR); -} - -/** - * @brief Disable DMA Mode for reception - * @rmtoll CR3 DMAR LL_LPUART_DisableDMAReq_RX - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_DisableDMAReq_RX(USART_TypeDef *LPUARTx) -{ - ATOMIC_CLEAR_BIT(LPUARTx->CR3, USART_CR3_DMAR); -} - -/** - * @brief Check if DMA Mode is enabled for reception - * @rmtoll CR3 DMAR LL_LPUART_IsEnabledDMAReq_RX - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsEnabledDMAReq_RX(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->CR3, USART_CR3_DMAR) == (USART_CR3_DMAR)) ? 1UL : 0UL); -} - -/** - * @brief Enable DMA Mode for transmission - * @rmtoll CR3 DMAT LL_LPUART_EnableDMAReq_TX - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_EnableDMAReq_TX(USART_TypeDef *LPUARTx) -{ - ATOMIC_SET_BIT(LPUARTx->CR3, USART_CR3_DMAT); -} - -/** - * @brief Disable DMA Mode for transmission - * @rmtoll CR3 DMAT LL_LPUART_DisableDMAReq_TX - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_DisableDMAReq_TX(USART_TypeDef *LPUARTx) -{ - ATOMIC_CLEAR_BIT(LPUARTx->CR3, USART_CR3_DMAT); -} - -/** - * @brief Check if DMA Mode is enabled for transmission - * @rmtoll CR3 DMAT LL_LPUART_IsEnabledDMAReq_TX - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsEnabledDMAReq_TX(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->CR3, USART_CR3_DMAT) == (USART_CR3_DMAT)) ? 1UL : 0UL); -} - -/** - * @brief Enable DMA Disabling on Reception Error - * @rmtoll CR3 DDRE LL_LPUART_EnableDMADeactOnRxErr - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_EnableDMADeactOnRxErr(USART_TypeDef *LPUARTx) -{ - SET_BIT(LPUARTx->CR3, USART_CR3_DDRE); -} - -/** - * @brief Disable DMA Disabling on Reception Error - * @rmtoll CR3 DDRE LL_LPUART_DisableDMADeactOnRxErr - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_DisableDMADeactOnRxErr(USART_TypeDef *LPUARTx) -{ - CLEAR_BIT(LPUARTx->CR3, USART_CR3_DDRE); -} - -/** - * @brief Indicate if DMA Disabling on Reception Error is disabled - * @rmtoll CR3 DDRE LL_LPUART_IsEnabledDMADeactOnRxErr - * @param LPUARTx LPUART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_LPUART_IsEnabledDMADeactOnRxErr(const USART_TypeDef *LPUARTx) -{ - return ((READ_BIT(LPUARTx->CR3, USART_CR3_DDRE) == (USART_CR3_DDRE)) ? 1UL : 0UL); -} - -/** - * @brief Get the LPUART data register address used for DMA transfer - * @rmtoll RDR RDR LL_LPUART_DMA_GetRegAddr\n - * @rmtoll TDR TDR LL_LPUART_DMA_GetRegAddr - * @param LPUARTx LPUART Instance - * @param Direction This parameter can be one of the following values: - * @arg @ref LL_LPUART_DMA_REG_DATA_TRANSMIT - * @arg @ref LL_LPUART_DMA_REG_DATA_RECEIVE - * @retval Address of data register - */ -__STATIC_INLINE uint32_t LL_LPUART_DMA_GetRegAddr(const USART_TypeDef *LPUARTx, uint32_t Direction) -{ - uint32_t data_reg_addr; - - if (Direction == LL_LPUART_DMA_REG_DATA_TRANSMIT) - { - /* return address of TDR register */ - data_reg_addr = (uint32_t) &(LPUARTx->TDR); - } - else - { - /* return address of RDR register */ - data_reg_addr = (uint32_t) &(LPUARTx->RDR); - } - - return data_reg_addr; -} - -/** - * @} - */ - -/** @defgroup LPUART_LL_EF_Data_Management Data_Management - * @{ - */ - -/** - * @brief Read Receiver Data register (Receive Data value, 8 bits) - * @rmtoll RDR RDR LL_LPUART_ReceiveData8 - * @param LPUARTx LPUART Instance - * @retval Time Value between Min_Data=0x00 and Max_Data=0xFF - */ -__STATIC_INLINE uint8_t LL_LPUART_ReceiveData8(const USART_TypeDef *LPUARTx) -{ - return (uint8_t)(READ_BIT(LPUARTx->RDR, USART_RDR_RDR) & 0xFFU); -} - -/** - * @brief Read Receiver Data register (Receive Data value, 9 bits) - * @rmtoll RDR RDR LL_LPUART_ReceiveData9 - * @param LPUARTx LPUART Instance - * @retval Time Value between Min_Data=0x00 and Max_Data=0x1FF - */ -__STATIC_INLINE uint16_t LL_LPUART_ReceiveData9(const USART_TypeDef *LPUARTx) -{ - return (uint16_t)(READ_BIT(LPUARTx->RDR, USART_RDR_RDR)); -} - -/** - * @brief Write in Transmitter Data Register (Transmit Data value, 8 bits) - * @rmtoll TDR TDR LL_LPUART_TransmitData8 - * @param LPUARTx LPUART Instance - * @param Value between Min_Data=0x00 and Max_Data=0xFF - * @retval None - */ -__STATIC_INLINE void LL_LPUART_TransmitData8(USART_TypeDef *LPUARTx, uint8_t Value) -{ - LPUARTx->TDR = Value; -} - -/** - * @brief Write in Transmitter Data Register (Transmit Data value, 9 bits) - * @rmtoll TDR TDR LL_LPUART_TransmitData9 - * @param LPUARTx LPUART Instance - * @param Value between Min_Data=0x00 and Max_Data=0x1FF - * @retval None - */ -__STATIC_INLINE void LL_LPUART_TransmitData9(USART_TypeDef *LPUARTx, uint16_t Value) -{ - LPUARTx->TDR = Value & 0x1FFUL; -} - -/** - * @} - */ - -/** @defgroup LPUART_LL_EF_Execution Execution - * @{ - */ - -/** - * @brief Request Break sending - * @rmtoll RQR SBKRQ LL_LPUART_RequestBreakSending - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_RequestBreakSending(USART_TypeDef *LPUARTx) -{ - SET_BIT(LPUARTx->RQR, (uint16_t)USART_RQR_SBKRQ); -} - -/** - * @brief Put LPUART in mute mode and set the RWU flag - * @rmtoll RQR MMRQ LL_LPUART_RequestEnterMuteMode - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_RequestEnterMuteMode(USART_TypeDef *LPUARTx) -{ - SET_BIT(LPUARTx->RQR, (uint16_t)USART_RQR_MMRQ); -} - -/** - * @brief Request a Receive Data and FIFO flush - * @note Allows to discard the received data without reading them, and avoid an overrun - * condition. - * @rmtoll RQR RXFRQ LL_LPUART_RequestRxDataFlush - * @param LPUARTx LPUART Instance - * @retval None - */ -__STATIC_INLINE void LL_LPUART_RequestRxDataFlush(USART_TypeDef *LPUARTx) -{ - SET_BIT(LPUARTx->RQR, (uint16_t)USART_RQR_RXFRQ); -} - -/** - * @} - */ - -#if defined(USE_FULL_LL_DRIVER) -/** @defgroup LPUART_LL_EF_Init Initialization and de-initialization functions - * @{ - */ -ErrorStatus LL_LPUART_DeInit(const USART_TypeDef *LPUARTx); -ErrorStatus LL_LPUART_Init(USART_TypeDef *LPUARTx, const LL_LPUART_InitTypeDef *LPUART_InitStruct); -void LL_LPUART_StructInit(LL_LPUART_InitTypeDef *LPUART_InitStruct); -/** - * @} - */ -#endif /* USE_FULL_LL_DRIVER */ - -/** - * @} - */ - -/** - * @} - */ - -#endif /* LPUART1 */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_LL_LPUART_H */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_pwr.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_pwr.h deleted file mode 100644 index be137a4..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_pwr.h +++ /dev/null @@ -1,2301 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_ll_pwr.h - * @author MCD Application Team - * @brief Header file of PWR LL module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_LL_PWR_H -#define STM32H7xx_LL_PWR_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx.h" - -/** @addtogroup STM32H7xx_LL_Driver - * @{ - */ - -#if defined (PWR) - -/** @defgroup PWR_LL PWR - * @{ - */ - -/* Private types -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private constants ---------------------------------------------------------*/ -/** @defgroup PWR_LL_Private_Constants PWR Private Constants - * @{ - */ - -/** @defgroup PWR_LL_WAKEUP_PIN_OFFSET Wake-Up Pins register offsets Defines - * @brief Flags defines which can be used with LL_PWR_WriteReg function - * @{ - */ -/* Wake-Up Pins PWR register offsets */ -#define LL_PWR_WAKEUP_PINS_PULL_SHIFT_OFFSET 2UL -#define LL_PWR_WAKEUP_PINS_MAX_SHIFT_MASK 0x1FU -/** - * @} - */ -/** - * @} - */ -/* Private macros ------------------------------------------------------------*/ -/* Exported types ------------------------------------------------------------*/ -/* Exported constants --------------------------------------------------------*/ -/** @defgroup PWR_LL_Exported_Constants PWR Exported Constants - * @{ - */ - -/** @defgroup PWR_LL_EC_CLEAR_FLAG Clear Flags Defines - * @brief Flags defines which can be used with LL_PWR_WriteReg function - * @{ - */ -#define LL_PWR_FLAG_CPU_CSSF PWR_CPUCR_CSSF /*!< Clear flags for CPU */ -#if defined (DUAL_CORE) -#define LL_PWR_FLAG_CPU2_CSSF PWR_CPU2CR_CSSF /*!< Clear flags for CPU2 */ -#endif /* DUAL_CORE */ -#define LL_PWR_FLAG_WKUPCR_WKUPC6 PWR_WKUPCR_WKUPC6 /*!< Clear PC1 WKUP flag */ -#if defined (PWR_WKUPCR_WKUPC5) -#define LL_PWR_FLAG_WKUPCR_WKUPC5 PWR_WKUPCR_WKUPC5 /*!< Clear PI11 WKUP flag */ -#endif /* defined (PWR_WKUPCR_WKUPC5) */ -#define LL_PWR_FLAG_WKUPCR_WKUPC4 PWR_WKUPCR_WKUPC4 /*!< Clear PC13 WKUP flag */ -#if defined (PWR_WKUPCR_WKUPC3) -#define LL_PWR_FLAG_WKUPCR_WKUPC3 PWR_WKUPCR_WKUPC3 /*!< Clear PI8 WKUP flag */ -#endif /* defined (PWR_WKUPCR_WKUPC3) */ -#define LL_PWR_FLAG_WKUPCR_WKUPC2 PWR_WKUPCR_WKUPC2 /*!< Clear PA2 WKUP flag */ -#define LL_PWR_FLAG_WKUPCR_WKUPC1 PWR_WKUPCR_WKUPC1 /*!< Clear PA0 WKUP flag */ -/** - * @} - */ - -/** @defgroup PWR_LL_EC_GET_FLAG Get Flags Defines - * @brief Flags defines which can be used with LL_PWR_ReadReg function - * @{ - */ -#define LL_PWR_FLAG_AVDO PWR_CSR1_AVDO /*!< Analog voltage detector output on VDDA flag */ -#define LL_PWR_FLAG_PVDO PWR_CSR1_PVDO /*!< Programmable voltage detect output flag */ -#define LL_PWR_FLAG_ACTVOS PWR_CSR1_ACTVOS /*!< Current VOS applied for VCORE voltage scaling flag */ -#define LL_PWR_FLAG_ACTVOSRDY PWR_CSR1_ACTVOSRDY /*!< Ready bit for current actual used VOS for VCORE voltage scaling flag */ -#if defined (PWR_CSR1_MMCVDO) -#define LL_PWR_FLAG_MMCVDO PWR_CSR1_MMCVDO /*!< Voltage detector output on VDDMMC flag */ -#endif /* PWR_CSR1_MMCVDO */ - -#define LL_PWR_FLAG_TEMPH PWR_CR2_TEMPH /*!< Temperature high threshold flag */ -#define LL_PWR_FLAG_TEMPL PWR_CR2_TEMPL /*!< Temperature low threshold flag */ -#define LL_PWR_FLAG_VBATH PWR_CR2_VBATH /*!< VBAT high threshold flag */ -#define LL_PWR_FLAG_VBATL PWR_CR2_VBATL /*!< VBAT low threshold flag */ -#define LL_PWR_FLAG_BRRDY PWR_CR2_BRRDY /*!< Backup Regulator ready flag */ - -#define LL_PWR_FLAG_USBRDY PWR_CR3_USB33RDY /*!< USB supply ready flag */ -#define LL_PWR_FLAG_SMPSEXTRDY PWR_CR3_SMPSEXTRDY /*!< SMPS External supply ready flag */ - -#if defined (PWR_CPUCR_SBF_D2) -#define LL_PWR_FLAG_CPU_SBF_D2 PWR_CPUCR_SBF_D2 /*!< D2 domain DSTANDBY Flag */ -#endif /* PWR_CPUCR_SBF_D2 */ -#if defined (PWR_CPUCR_SBF_D1) -#define LL_PWR_FLAG_CPU_SBF_D1 PWR_CPUCR_SBF_D1 /*!< D1 domain DSTANDBY Flag */ -#endif /* PWR_CPUCR_SBF_D1 */ -#define LL_PWR_FLAG_CPU_SBF PWR_CPUCR_SBF /*!< System STANDBY Flag */ -#define LL_PWR_FLAG_CPU_STOPF PWR_CPUCR_STOPF /*!< STOP Flag */ -#if defined (DUAL_CORE) -#define LL_PWR_FLAG_CPU_HOLD2F PWR_CPUCR_HOLD2F /*!< CPU2 in hold wakeup flag */ -#endif /* DUAL_CORE */ - -#if defined (DUAL_CORE) -#define LL_PWR_FLAG_CPU2_SBF_D2 PWR_CPU2CR_SBF_D2 /*!< D2 domain DSTANDBY Flag */ -#define LL_PWR_FLAG_CPU2_SBF_D1 PWR_CPU2CR_SBF_D1 /*!< D1 domain DSTANDBY Flag */ -#define LL_PWR_FLAG_CPU2_SBF PWR_CPU2CR_SBF /*!< System STANDBY Flag */ -#define LL_PWR_FLAG_CPU2_STOPF PWR_CPU2CR_STOPF /*!< STOP Flag */ -#define LL_PWR_FLAG_CPU2_HOLD1F PWR_CPU2CR_HOLD1F /*!< CPU1 in hold wakeup flag */ -#endif /* DUAL_CORE */ - -#if defined (PWR_CPUCR_PDDS_D2) -#define LL_PWR_D3CR_VOSRDY PWR_D3CR_VOSRDY /*!< Voltage scaling ready flag */ -#else -#define LL_PWR_SRDCR_VOSRDY PWR_SRDCR_VOSRDY /*!< Voltage scaling ready flag */ -#endif /* PWR_CPUCR_PDDS_D2 */ - -#define LL_PWR_WKUPFR_WKUPF6 PWR_WKUPFR_WKUPF6 /*!< Wakeup flag on PC1 */ -#if defined (PWR_WKUPFR_WKUPF5) -#define LL_PWR_WKUPFR_WKUPF5 PWR_WKUPFR_WKUPF5 /*!< Wakeup flag on PI11 */ -#endif /* defined (PWR_WKUPFR_WKUPF5) */ -#define LL_PWR_WKUPFR_WKUPF4 PWR_WKUPFR_WKUPF4 /*!< Wakeup flag on PC13 */ -#if defined (PWR_WKUPFR_WKUPF3) -#define LL_PWR_WKUPFR_WKUPF3 PWR_WKUPFR_WKUPF3 /*!< Wakeup flag on PI8 */ -#endif /* defined (PWR_WKUPFR_WKUPF3) */ -#define LL_PWR_WKUPFR_WKUPF2 PWR_WKUPFR_WKUPF2 /*!< Wakeup flag on PA2 */ -#define LL_PWR_WKUPFR_WKUPF1 PWR_WKUPFR_WKUPF1 /*!< Wakeup flag on PA0 */ -/** - * @} - */ - -/** @defgroup PWR_LL_EC_MODE_PWR Power mode - * @{ - */ -#if defined (PWR_CPUCR_PDDS_D2) -#define LL_PWR_CPU_MODE_D1STOP 0x00000000U /*!< Enter D1 domain to Stop mode when the CPU enters deepsleep */ -#define LL_PWR_CPU_MODE_D1STANDBY PWR_CPUCR_PDDS_D1 /*!< Enter D1 domain to Standby mode when the CPU enters deepsleep */ -#else -#define LL_PWR_CPU_MODE_CDSTOP 0x00000000U /*!< Enter CD domain to Stop mode when the CPU enters deepsleep */ -#define LL_PWR_CPU_MODE_CDSTOP2 PWR_CPUCR_RETDS_CD /*!< Enter CD domain to Stop2 mode when the CPU enters deepsleep */ -#endif /* PWR_CPUCR_PDDS_D2 */ - -#if defined (PWR_CPUCR_PDDS_D2) -#define LL_PWR_CPU_MODE_D2STOP 0x00000000U /*!< Enter D2 domain to Stop mode when the CPU enters deepsleep */ -#define LL_PWR_CPU_MODE_D2STANDBY PWR_CPUCR_PDDS_D2 /*!< Enter D2 domain to Standby mode when the CPU enters deepsleep */ -#endif /* PWR_CPUCR_PDDS_D2 */ - -#if defined (PWR_CPUCR_PDDS_D2) -#define LL_PWR_CPU_MODE_D3RUN PWR_CPUCR_RUN_D3 /*!< Keep system D3 domain in Run mode when the CPU enter deepsleep */ -#define LL_PWR_CPU_MODE_D3STOP 0x00000000U /*!< Enter D3 domain to Stop mode when the CPU enters deepsleep */ -#define LL_PWR_CPU_MODE_D3STANDBY PWR_CPUCR_PDDS_D3 /*!< Enter D3 domain to Standby mode when the CPU enters deepsleep */ -#else -#define LL_PWR_CPU_MODE_SRDRUN PWR_CPUCR_RUN_SRD /*!< Keep system SRD domain in Run mode when the CPU enter deepsleep */ -#define LL_PWR_CPU_MODE_SRDSTOP 0x00000000U /*!< Enter SRD domain to Stop mode when the CPU enters deepsleep */ -#define LL_PWR_CPU_MODE_SRDSTANDBY PWR_CPUCR_PDDS_SRD /*!< Enter SRD domain to Standby mode when the CPU enters deepsleep */ -#endif /* PWR_CPUCR_PDDS_D2 */ - -#if defined (DUAL_CORE) -#define LL_PWR_CPU2_MODE_D1STOP 0x00000000U /*!< Enter D1 domain to Stop mode when the CPU2 enters deepsleep */ -#define LL_PWR_CPU2_MODE_D1STANDBY PWR_CPU2CR_PDDS_D1 /*!< Enter D1 domain to Standby mode when the CPU2 enters deepsleep */ -#define LL_PWR_CPU2_MODE_D2STOP 0x00000000U /*!< Enter D2 domain to Stop mode when the CPU2 enters deepsleep */ -#define LL_PWR_CPU2_MODE_D2STANDBY PWR_CPU2CR_PDDS_D2 /*!< Enter D2 domain to Standby mode when the CPU2 enters deepsleep */ -#define LL_PWR_CPU2_MODE_D3RUN PWR_CPU2CR_RUN_D3 /*!< Keep system D3 domain in RUN mode when the CPU2 enter deepsleep */ -#define LL_PWR_CPU2_MODE_D3STOP 0x00000000U /*!< Enter D3 domain to Stop mode when the CPU2 enters deepsleep */ -#define LL_PWR_CPU2_MODE_D3STANDBY PWR_CPU2CR_PDDS_D3 /*!< Enter D3 domain to Standby mode when the CPU2 enter deepsleep */ -#endif /* DUAL_CORE */ -/** - * @} - */ - -/** @defgroup PWR_LL_EC_REGU_VOLTAGE Run mode Regulator Voltage Scaling - * @{ - */ -#if defined (PWR_CPUCR_PDDS_D2) -#define LL_PWR_REGU_VOLTAGE_SCALE3 PWR_D3CR_VOS_0 /*!< Select voltage scale 3 */ -#define LL_PWR_REGU_VOLTAGE_SCALE2 PWR_D3CR_VOS_1 /*!< Select voltage scale 2 */ -#define LL_PWR_REGU_VOLTAGE_SCALE1 (PWR_D3CR_VOS_0 | PWR_D3CR_VOS_1) /*!< Select voltage scale 1 */ -#if defined (SYSCFG_PWRCR_ODEN) /* STM32H74xxx and STM32H75xxx lines */ -#define LL_PWR_REGU_VOLTAGE_SCALE0 (PWR_D3CR_VOS_0 | PWR_D3CR_VOS_1) /*!< Select voltage scale 0 */ -#else -#define LL_PWR_REGU_VOLTAGE_SCALE0 0x00000000U /*!< Select voltage scale 0 */ -#endif /* defined (SYSCFG_PWRCR_ODEN) */ -#else -#define LL_PWR_REGU_VOLTAGE_SCALE3 0x00000000U /*!< Select voltage scale 3 */ -#define LL_PWR_REGU_VOLTAGE_SCALE2 PWR_D3CR_VOS_0 /*!< Select voltage scale 2 */ -#define LL_PWR_REGU_VOLTAGE_SCALE1 PWR_D3CR_VOS_1 /*!< Select voltage scale 1 */ -#define LL_PWR_REGU_VOLTAGE_SCALE0 (PWR_D3CR_VOS_0 | PWR_D3CR_VOS_1) /*!< Select voltage scale 0 */ -#endif /* PWR_CPUCR_PDDS_D2 */ -/** - * @} - */ - -/** @defgroup PWR_LL_EC_STOP_MODE_REGU_VOLTAGE Stop mode Regulator Voltage Scaling - * @{ - */ -#define LL_PWR_REGU_VOLTAGE_SVOS_SCALE5 PWR_CR1_SVOS_0 /*!< Select voltage scale 5 when system enters STOP mode */ -#define LL_PWR_REGU_VOLTAGE_SVOS_SCALE4 PWR_CR1_SVOS_1 /*!< Select voltage scale 4 when system enters STOP mode */ -#define LL_PWR_REGU_VOLTAGE_SVOS_SCALE3 (PWR_CR1_SVOS_0 | PWR_CR1_SVOS_1) /*!< Select voltage scale 3 when system enters STOP mode */ -/** - * @} - */ - -/** @defgroup PWR_LL_EC_REGU_MODE_DS_MODE Regulator Mode In Deep Sleep Mode - * @{ - */ -#define LL_PWR_REGU_DSMODE_MAIN 0x00000000U /*!< Voltage Regulator in main mode during deepsleep mode */ -#define LL_PWR_REGU_DSMODE_LOW_POWER PWR_CR1_LPDS /*!< Voltage Regulator in low-power mode during deepsleep mode */ -/** - * @} - */ - -/** @defgroup PWR_LL_EC_PVDLEVEL Power Digital Voltage Level Detector - * @{ - */ -#define LL_PWR_PVDLEVEL_0 PWR_CR1_PLS_LEV0 /*!< Voltage threshold detected by PVD 1.95 V */ -#define LL_PWR_PVDLEVEL_1 PWR_CR1_PLS_LEV1 /*!< Voltage threshold detected by PVD 2.1 V */ -#define LL_PWR_PVDLEVEL_2 PWR_CR1_PLS_LEV2 /*!< Voltage threshold detected by PVD 2.25 V */ -#define LL_PWR_PVDLEVEL_3 PWR_CR1_PLS_LEV3 /*!< Voltage threshold detected by PVD 2.4 V */ -#define LL_PWR_PVDLEVEL_4 PWR_CR1_PLS_LEV4 /*!< Voltage threshold detected by PVD 2.55 V */ -#define LL_PWR_PVDLEVEL_5 PWR_CR1_PLS_LEV5 /*!< Voltage threshold detected by PVD 2.7 V */ -#define LL_PWR_PVDLEVEL_6 PWR_CR1_PLS_LEV6 /*!< Voltage threshold detected by PVD 2.85 V */ -#define LL_PWR_PVDLEVEL_7 PWR_CR1_PLS_LEV7 /*!< External voltage level on PVD_IN pin, compared to internal VREFINT level. */ -/** - * @} - */ - -/** @defgroup PWR_LL_EC_AVDLEVEL Power Analog Voltage Level Detector - * @{ - */ -#define LL_PWR_AVDLEVEL_0 PWR_CR1_ALS_LEV0 /*!< Analog Voltage threshold detected by AVD 1.7 V */ -#define LL_PWR_AVDLEVEL_1 PWR_CR1_ALS_LEV1 /*!< Analog Voltage threshold detected by AVD 2.1 V */ -#define LL_PWR_AVDLEVEL_2 PWR_CR1_ALS_LEV2 /*!< Analog Voltage threshold detected by AVD 2.5 V */ -#define LL_PWR_AVDLEVEL_3 PWR_CR1_ALS_LEV3 /*!< Analog Voltage threshold detected by AVD 2.8 V */ - -/** - * @} - */ - -/** @defgroup PWR_LL_EC_BATT_CHARG_RESISTOR Battery Charge Resistor - * @{ - */ -#define LL_PWR_BATT_CHARG_RESISTOR_5K 0x00000000U /*!< Charge the Battery through a 5 kO resistor */ -#define LL_PWR_BATT_CHARGRESISTOR_1_5K PWR_CR3_VBRS /*!< Charge the Battery through a 1.5 kO resistor */ -/** - * @} - */ - -/** @defgroup PWR_LL_EC_WAKEUP_PIN Wakeup Pins - * @{ - */ -#define LL_PWR_WAKEUP_PIN1 PWR_WKUPEPR_WKUPEN1 /*!< Wake-Up pin 1 : PA0 */ -#define LL_PWR_WAKEUP_PIN2 PWR_WKUPEPR_WKUPEN2 /*!< Wake-Up pin 2 : PA2 */ -#if defined (PWR_WKUPEPR_WKUPEN3) -#define LL_PWR_WAKEUP_PIN3 PWR_WKUPEPR_WKUPEN3 /*!< Wake-Up pin 3 : PI8 */ -#endif /* defined (PWR_WKUPEPR_WKUPEN3) */ -#define LL_PWR_WAKEUP_PIN4 PWR_WKUPEPR_WKUPEN4 /*!< Wake-Up pin 4 : PC13 */ -#if defined (PWR_WKUPEPR_WKUPEN5) -#define LL_PWR_WAKEUP_PIN5 PWR_WKUPEPR_WKUPEN5 /*!< Wake-Up pin 5 : PI11 */ -#endif /* defined (PWR_WKUPEPR_WKUPEN5) */ -#define LL_PWR_WAKEUP_PIN6 PWR_WKUPEPR_WKUPEN6 /*!< Wake-Up pin 6 : PC1 */ -/** - * @} - */ - -/** @defgroup PWR_LL_EC_WAKEUP_PIN_PULL Wakeup Pins pull configuration - * @{ - */ -#define LL_PWR_WAKEUP_PIN_NOPULL 0x00000000UL /*!< Configure Wake-Up pin in no pull */ -#define LL_PWR_WAKEUP_PIN_PULLUP 0x00000001UL /*!< Configure Wake-Up pin in pull Up */ -#define LL_PWR_WAKEUP_PIN_PULLDOWN 0x00000002UL /*!< Configure Wake-Up pin in pull Down */ -/** - * @} - */ - -/** @defgroup PWR_LL_EC_SUPPLY_PWR Power supply source configuration - * @{ - */ -#define LL_PWR_LDO_SUPPLY PWR_CR3_LDOEN /*!< Core domains are supplied from the LDO */ -#if defined (SMPS) -#define LL_PWR_DIRECT_SMPS_SUPPLY PWR_CR3_SMPSEN /*!< Core domains are supplied from the SMPS */ -#define LL_PWR_SMPS_1V8_SUPPLIES_LDO (PWR_CR3_SMPSLEVEL_0 | PWR_CR3_SMPSEN | PWR_CR3_LDOEN) /*!< The SMPS 1.8V output supplies the LDO which supplies the Core domains */ -#define LL_PWR_SMPS_2V5_SUPPLIES_LDO (PWR_CR3_SMPSLEVEL_1 | PWR_CR3_SMPSEN | PWR_CR3_LDOEN) /*!< The SMPS 2.5V output supplies the LDO which supplies the Core domains */ -#define LL_PWR_SMPS_1V8_SUPPLIES_EXT_AND_LDO (PWR_CR3_SMPSLEVEL_0 | PWR_CR3_SMPSEXTHP | PWR_CR3_SMPSEN | PWR_CR3_LDOEN) /*!< The SMPS 1.8V output supplies an external circuits and the LDO. The Core domains are supplied from the LDO */ -#define LL_PWR_SMPS_2V5_SUPPLIES_EXT_AND_LDO (PWR_CR3_SMPSLEVEL_1 | PWR_CR3_SMPSEXTHP | PWR_CR3_SMPSEN | PWR_CR3_LDOEN) /*!< The SMPS 2.5V output supplies an external circuits and the LDO. The Core domains are supplied from the LDO */ -#define LL_PWR_SMPS_1V8_SUPPLIES_EXT (PWR_CR3_SMPSLEVEL_0 | PWR_CR3_SMPSEXTHP | PWR_CR3_SMPSEN | PWR_CR3_BYPASS) /*!< The SMPS 1.8V output supplies an external source which supplies the Core domains */ -#define LL_PWR_SMPS_2V5_SUPPLIES_EXT (PWR_CR3_SMPSLEVEL_1 | PWR_CR3_SMPSEXTHP | PWR_CR3_SMPSEN | PWR_CR3_BYPASS) /*!< The SMPS 2.5V output supplies an external source which supplies the Core domains */ -#endif /* SMPS */ -#define LL_PWR_EXTERNAL_SOURCE_SUPPLY PWR_CR3_BYPASS /*!< The SMPS and the LDO are Bypassed. The Core domains are supplied from an external source */ -/** - * @} - */ - -/** - * @} - */ -/* Exported macro ------------------------------------------------------------*/ -/** @defgroup PWR_LL_Exported_Macros PWR Exported Macros - * @{ - */ - -/** @defgroup PWR_LL_EM_WRITE_READ Common write and read registers Macros - * @{ - */ - -/** - * @brief Write a value in PWR register - * @param __REG__ Register to be written - * @param __VALUE__ Value to be written in the register - * @retval None - */ -#define LL_PWR_WriteReg(__REG__, __VALUE__) WRITE_REG(PWR->__REG__, (__VALUE__)) - -/** - * @brief Read a value in PWR register - * @param __REG__ Register to be read - * @retval Register value - */ -#define LL_PWR_ReadReg(__REG__) READ_REG(PWR->__REG__) -/** - * @} - */ - -/** - * @} - */ -/* Exported functions --------------------------------------------------------*/ -/** @defgroup PWR_LL_Exported_Functions PWR Exported Functions - * @{ - */ - -/** @defgroup PWR_LL_EF_Configuration Configuration - * @{ - */ - - /** - * @brief Set the voltage Regulator mode during deep sleep mode - * @rmtoll CR1 LPDS LL_PWR_SetRegulModeDS - * @param RegulMode This parameter can be one of the following values: - * @arg @ref LL_PWR_REGU_DSMODE_MAIN - * @arg @ref LL_PWR_REGU_DSMODE_LOW_POWER - * @retval None - */ -__STATIC_INLINE void LL_PWR_SetRegulModeDS(uint32_t RegulMode) -{ - MODIFY_REG(PWR->CR1, PWR_CR1_LPDS, RegulMode); -} - -/** - * @brief Get the voltage Regulator mode during deep sleep mode - * @rmtoll CR1 LPDS LL_PWR_GetRegulModeDS - * @retval Returned value can be one of the following values: - * @arg @ref LL_PWR_REGU_DSMODE_MAIN - * @arg @ref LL_PWR_REGU_DSMODE_LOW_POWER - */ -__STATIC_INLINE uint32_t LL_PWR_GetRegulModeDS(void) -{ - return (uint32_t)(READ_BIT(PWR->CR1, PWR_CR1_LPDS)); -} - -/** - * @brief Enable Power Voltage Detector - * @rmtoll CR1 PVDEN LL_PWR_EnablePVD - * @retval None - */ -__STATIC_INLINE void LL_PWR_EnablePVD(void) -{ - SET_BIT(PWR->CR1, PWR_CR1_PVDEN); -} - -/** - * @brief Disable Power Voltage Detector - * @rmtoll CR1 PVDEN LL_PWR_DisablePVD - * @retval None - */ -__STATIC_INLINE void LL_PWR_DisablePVD(void) -{ - CLEAR_BIT(PWR->CR1, PWR_CR1_PVDEN); -} - -/** - * @brief Check if Power Voltage Detector is enabled - * @rmtoll CR1 PVDEN LL_PWR_IsEnabledPVD - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsEnabledPVD(void) -{ - return ((READ_BIT(PWR->CR1, PWR_CR1_PVDEN) == (PWR_CR1_PVDEN)) ? 1UL : 0UL); -} - -/** - * @brief Configure the voltage threshold detected by the Power Voltage Detector - * @rmtoll CR1 PLS LL_PWR_SetPVDLevel - * @param PVDLevel This parameter can be one of the following values: - * @arg @ref LL_PWR_PVDLEVEL_0 - * @arg @ref LL_PWR_PVDLEVEL_1 - * @arg @ref LL_PWR_PVDLEVEL_2 - * @arg @ref LL_PWR_PVDLEVEL_3 - * @arg @ref LL_PWR_PVDLEVEL_4 - * @arg @ref LL_PWR_PVDLEVEL_5 - * @arg @ref LL_PWR_PVDLEVEL_6 - * @arg @ref LL_PWR_PVDLEVEL_7 - * @retval None - */ -__STATIC_INLINE void LL_PWR_SetPVDLevel(uint32_t PVDLevel) -{ - MODIFY_REG(PWR->CR1, PWR_CR1_PLS, PVDLevel); -} - -/** - * @brief Get the voltage threshold detection - * @rmtoll CR1 PLS LL_PWR_GetPVDLevel - * @retval Returned value can be one of the following values: - * @arg @ref LL_PWR_PVDLEVEL_0 - * @arg @ref LL_PWR_PVDLEVEL_1 - * @arg @ref LL_PWR_PVDLEVEL_2 - * @arg @ref LL_PWR_PVDLEVEL_3 - * @arg @ref LL_PWR_PVDLEVEL_4 - * @arg @ref LL_PWR_PVDLEVEL_5 - * @arg @ref LL_PWR_PVDLEVEL_6 - * @arg @ref LL_PWR_PVDLEVEL_7 - */ -__STATIC_INLINE uint32_t LL_PWR_GetPVDLevel(void) -{ - return (uint32_t)(READ_BIT(PWR->CR1, PWR_CR1_PLS)); -} - -/** - * @brief Enable access to the backup domain - * @rmtoll CR1 DBP LL_PWR_EnableBkUpAccess - * @retval None - */ -__STATIC_INLINE void LL_PWR_EnableBkUpAccess(void) -{ - SET_BIT(PWR->CR1, PWR_CR1_DBP); -} - -/** - * @brief Disable access to the backup domain - * @rmtoll CR1 DBP LL_PWR_DisableBkUpAccess - * @retval None - */ -__STATIC_INLINE void LL_PWR_DisableBkUpAccess(void) -{ - CLEAR_BIT(PWR->CR1, PWR_CR1_DBP); -} - -/** - * @brief Check if the backup domain is enabled - * @rmtoll CR1 DBP LL_PWR_IsEnabledBkUpAccess - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsEnabledBkUpAccess(void) -{ - return ((READ_BIT(PWR->CR1, PWR_CR1_DBP) == (PWR_CR1_DBP)) ? 1UL : 0UL); -} - -/** - * @brief Enable the Flash Power Down in Stop Mode - * @rmtoll CR1 FLPS LL_PWR_EnableFlashPowerDown - * @retval None - */ -__STATIC_INLINE void LL_PWR_EnableFlashPowerDown(void) -{ - SET_BIT(PWR->CR1, PWR_CR1_FLPS); -} - -/** - * @brief Disable the Flash Power Down in Stop Mode - * @rmtoll CR1 FLPS LL_PWR_DisableFlashPowerDown - * @retval None - */ -__STATIC_INLINE void LL_PWR_DisableFlashPowerDown(void) -{ - CLEAR_BIT(PWR->CR1, PWR_CR1_FLPS); -} - -/** - * @brief Check if the Flash Power Down in Stop Mode is enabled - * @rmtoll CR1 FLPS LL_PWR_IsEnabledFlashPowerDown - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsEnabledFlashPowerDown(void) -{ - return ((READ_BIT(PWR->CR1, PWR_CR1_FLPS) == (PWR_CR1_FLPS)) ? 1UL : 0UL); -} - -#if defined (PWR_CR1_BOOSTE) -/** - * @brief Enable the Analog Voltage Booster (VDDA) - * @rmtoll CR1 BOOSTE LL_PWR_EnableAnalogBooster - * @retval None - */ -__STATIC_INLINE void LL_PWR_EnableAnalogBooster(void) -{ - SET_BIT(PWR->CR1, PWR_CR1_BOOSTE); -} - -/** - * @brief Disable the Analog Voltage Booster (VDDA) - * @rmtoll CR1 BOOSTE LL_PWR_DisableAnalogBooster - * @retval None - */ -__STATIC_INLINE void LL_PWR_DisableAnalogBooster(void) -{ - CLEAR_BIT(PWR->CR1, PWR_CR1_BOOSTE); -} - -/** - * @brief Check if the Analog Voltage Booster (VDDA) is enabled - * @rmtoll CR1 BOOSTE LL_PWR_IsEnabledAnalogBooster - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsEnabledAnalogBooster(void) -{ - return ((READ_BIT(PWR->CR1, PWR_CR1_BOOSTE) == (PWR_CR1_BOOSTE)) ? 1UL : 0UL); -} -#endif /* PWR_CR1_BOOSTE */ - -#if defined (PWR_CR1_AVD_READY) -/** - * @brief Enable the Analog Voltage Ready to isolate the BOOST IP until VDDA will be ready - * @rmtoll CR1 AVD_READY LL_PWR_EnableAnalogVoltageReady - * @retval None - */ -__STATIC_INLINE void LL_PWR_EnableAnalogVoltageReady(void) -{ - SET_BIT(PWR->CR1, PWR_CR1_AVD_READY); -} - -/** - * @brief Disable the Analog Voltage Ready (VDDA) - * @rmtoll CR1 AVD_READY LL_PWR_DisableAnalogVoltageReady - * @retval None - */ -__STATIC_INLINE void LL_PWR_DisableAnalogVoltageReady(void) -{ - CLEAR_BIT(PWR->CR1, PWR_CR1_AVD_READY); -} - -/** - * @brief Check if the Analog Voltage Booster (VDDA) is enabled - * @rmtoll CR1 AVD_READY LL_PWR_IsEnabledAnalogVoltageReady - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsEnabledAnalogVoltageReady(void) -{ - return ((READ_BIT(PWR->CR1, PWR_CR1_AVD_READY) == (PWR_CR1_AVD_READY)) ? 1UL : 0UL); -} -#endif /* PWR_CR1_AVD_READY */ - -/** - * @brief Set the internal Regulator output voltage in STOP mode - * @rmtoll CR1 SVOS LL_PWR_SetStopModeRegulVoltageScaling - * @param VoltageScaling This parameter can be one of the following values: - * @arg @ref LL_PWR_REGU_VOLTAGE_SVOS_SCALE3 - * @arg @ref LL_PWR_REGU_VOLTAGE_SVOS_SCALE4 - * @arg @ref LL_PWR_REGU_VOLTAGE_SVOS_SCALE5 - * @retval None - */ -__STATIC_INLINE void LL_PWR_SetStopModeRegulVoltageScaling(uint32_t VoltageScaling) -{ - MODIFY_REG(PWR->CR1, PWR_CR1_SVOS, VoltageScaling); -} - -/** - * @brief Get the internal Regulator output voltage in STOP mode - * @rmtoll CR1 SVOS LL_PWR_GetStopModeRegulVoltageScaling - * @retval Returned value can be one of the following values: - * @arg @ref LL_PWR_REGU_VOLTAGE_SVOS_SCALE3 - * @arg @ref LL_PWR_REGU_VOLTAGE_SVOS_SCALE4 - * @arg @ref LL_PWR_REGU_VOLTAGE_SVOS_SCALE5 - */ -__STATIC_INLINE uint32_t LL_PWR_GetStopModeRegulVoltageScaling(void) -{ - return (uint32_t)(READ_BIT(PWR->CR1, PWR_CR1_SVOS)); -} - -/** - * @brief Enable Analog Power Voltage Detector - * @rmtoll CR1 AVDEN LL_PWR_EnableAVD - * @retval None - */ -__STATIC_INLINE void LL_PWR_EnableAVD(void) -{ - SET_BIT(PWR->CR1, PWR_CR1_AVDEN); -} - -/** - * @brief Disable Analog Power Voltage Detector - * @rmtoll CR1 AVDEN LL_PWR_DisableAVD - * @retval None - */ -__STATIC_INLINE void LL_PWR_DisableAVD(void) -{ - CLEAR_BIT(PWR->CR1, PWR_CR1_AVDEN); -} - -/** - * @brief Check if Analog Power Voltage Detector is enabled - * @rmtoll CR1 AVDEN LL_PWR_IsEnabledAVD - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsEnabledAVD(void) -{ - return ((READ_BIT(PWR->CR1, PWR_CR1_AVDEN) == (PWR_CR1_AVDEN)) ? 1UL : 0UL); -} - -/** - * @brief Configure the voltage threshold to be detected by the Analog Power Voltage Detector - * @rmtoll CR1 ALS LL_PWR_SetAVDLevel - * @param AVDLevel This parameter can be one of the following values: - * @arg @ref LL_PWR_AVDLEVEL_0 - * @arg @ref LL_PWR_AVDLEVEL_1 - * @arg @ref LL_PWR_AVDLEVEL_2 - * @arg @ref LL_PWR_AVDLEVEL_3 - * @retval None - */ -__STATIC_INLINE void LL_PWR_SetAVDLevel(uint32_t AVDLevel) -{ - MODIFY_REG(PWR->CR1, PWR_CR1_ALS, AVDLevel); -} - -/** - * @brief Get the Analog Voltage threshold to be detected by the Analog Power Voltage Detector - * @rmtoll CR1 ALS LL_PWR_GetAVDLevel - * @retval Returned value can be one of the following values: - * @arg @ref LL_PWR_AVDLEVEL_0 - * @arg @ref LL_PWR_AVDLEVEL_1 - * @arg @ref LL_PWR_AVDLEVEL_2 - * @arg @ref LL_PWR_AVDLEVEL_3 - */ -__STATIC_INLINE uint32_t LL_PWR_GetAVDLevel(void) -{ - return (uint32_t)(READ_BIT(PWR->CR1, PWR_CR1_ALS)); -} - -#if defined (PWR_CR1_AXIRAM1SO) -/** - * @brief Enable the AXI RAM1 shut-off in DStop/DStop2 mode - * @rmtoll CR1 AXIRAM1SO LL_PWR_EnableAXIRAM1ShutOff - * @retval None - */ -__STATIC_INLINE void LL_PWR_EnableAXIRAM1ShutOff(void) -{ - SET_BIT(PWR->CR1, PWR_CR1_AXIRAM1SO); -} - -/** - * @brief Disable the AXI RAM1 shut-off in DStop/DStop2 mode - * @rmtoll CR1 AXIRAM1SO LL_PWR_DisableAXIRAM1ShutOff - * @retval None - */ -__STATIC_INLINE void LL_PWR_DisableAXIRAM1ShutOff(void) -{ - CLEAR_BIT(PWR->CR1, PWR_CR1_AXIRAM1SO); -} - -/** - * @brief Check if the AXI RAM1 shut-off in DStop/DStop2 mode is enabled - * @rmtoll CR1 AXIRAM1SO LL_PWR_IsEnabledAXIRAM1ShutOff - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsEnabledAXIRAM1ShutOff(void) -{ - return ((READ_BIT(PWR->CR1, PWR_CR1_AXIRAM1SO) == (PWR_CR1_AXIRAM1SO)) ? 1UL : 0UL); -} -#endif /* PWR_CR1_AXIRAM1SO */ - -#if defined (PWR_CR1_AXIRAM2SO) -/** - * @brief Enable the AXI RAM2 shut-off in DStop/DStop2 mode - * @rmtoll CR1 AXIRAM2SO LL_PWR_EnableAXIRAM2ShutOff - * @retval None - */ -__STATIC_INLINE void LL_PWR_EnableAXIRAM2ShutOff(void) -{ - SET_BIT(PWR->CR1, PWR_CR1_AXIRAM2SO); -} - -/** - * @brief Disable the AXI RAM2 shut-off in DStop/DStop2 mode - * @rmtoll CR1 AXIRAM2SO LL_PWR_DisableAXIRAM2ShutOff - * @retval None - */ -__STATIC_INLINE void LL_PWR_DisableAXIRAM2ShutOff(void) -{ - CLEAR_BIT(PWR->CR1, PWR_CR1_AXIRAM2SO); -} - -/** - * @brief Check if the AXI RAM2 shut-off in DStop/DStop2 mode is enabled - * @rmtoll CR1 AXIRAM2SO LL_PWR_IsEnabledAXIRAM2ShutOff - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsEnabledAXIRAM2ShutOff(void) -{ - return ((READ_BIT(PWR->CR1, PWR_CR1_AXIRAM2SO) == (PWR_CR1_AXIRAM2SO)) ? 1UL : 0UL); -} -#endif /* PWR_CR1_AXIRAM2SO */ - -#if defined (PWR_CR1_AXIRAM3SO) -/** - * @brief Enable the AXI RAM3 shut-off in DStop/DStop2 mode - * @rmtoll CR1 AXIRAM3SO LL_PWR_EnableAXIRAM3ShutOff - * @retval None - */ -__STATIC_INLINE void LL_PWR_EnableAXIRAM3ShutOff(void) -{ - SET_BIT(PWR->CR1, PWR_CR1_AXIRAM3SO); -} - -/** - * @brief Disable the AXI RAM3 shut-off in DStop/DStop2 mode - * @rmtoll CR1 AXIRAM3SO LL_PWR_DisableAXIRAM3ShutOff - * @retval None - */ -__STATIC_INLINE void LL_PWR_DisableAXIRAM3ShutOff(void) -{ - CLEAR_BIT(PWR->CR1, PWR_CR1_AXIRAM3SO); -} - -/** - * @brief Check if the AXI RAM3 shut-off in DStop/DStop2 mode is enabled - * @rmtoll CR1 AXIRAM3SO LL_PWR_IsEnabledAXIRAM3ShutOff - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsEnabledAXIRAM3ShutOff(void) -{ - return ((READ_BIT(PWR->CR1, PWR_CR1_AXIRAM3SO) == (PWR_CR1_AXIRAM3SO)) ? 1UL : 0UL); -} -#endif /* PWR_CR1_AXIRAM3SO */ - -#if defined (PWR_CR1_AHBRAM1SO) -/** - * @brief Enable the AHB RAM1 shut-off in DStop/DStop2 mode - * @rmtoll CR1 AHBRAM1SO LL_PWR_EnableAHBRAM1ShutOff - * @retval None - */ -__STATIC_INLINE void LL_PWR_EnableAHBRAM1ShutOff(void) -{ - SET_BIT(PWR->CR1, PWR_CR1_AHBRAM1SO); -} - -/** - * @brief Disable the AHB RAM1 shut-off in DStop/DStop2 mode - * @rmtoll CR1 AHBRAM1SO LL_PWR_DisableAHBRAM1ShutOff - * @retval None - */ -__STATIC_INLINE void LL_PWR_DisableAHBRAM1ShutOff(void) -{ - CLEAR_BIT(PWR->CR1, PWR_CR1_AHBRAM1SO); -} - -/** - * @brief Check if the AHB RAM1 shut-off in DStop/DStop2 mode is enabled - * @rmtoll CR1 AHBRAM1SO LL_PWR_IsEnabledAHBRAM1ShutOff - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsEnabledAHBRAM1ShutOff(void) -{ - return ((READ_BIT(PWR->CR1, PWR_CR1_AHBRAM1SO) == (PWR_CR1_AHBRAM1SO)) ? 1UL : 0UL); -} -#endif /* PWR_CR1_AHBRAM1SO */ - -#if defined (PWR_CR1_AHBRAM2SO) -/** - * @brief Enable the AHB RAM2 shut-off in DStop/DStop2 mode - * @rmtoll CR1 AHBRAM2SO LL_PWR_EnableAHBRAM2ShutOff - * @retval None - */ -__STATIC_INLINE void LL_PWR_EnableAHBRAM2ShutOff(void) -{ - SET_BIT(PWR->CR1, PWR_CR1_AHBRAM2SO); -} - -/** - * @brief Disable the AHB RAM2 shut-off in DStop/DStop2 mode - * @rmtoll CR1 AHBRAM2SO LL_PWR_DisableAHBRAM2ShutOff - * @retval None - */ -__STATIC_INLINE void LL_PWR_DisableAHBRAM2ShutOff(void) -{ - CLEAR_BIT(PWR->CR1, PWR_CR1_AHBRAM2SO); -} - -/** - * @brief Check if the AHB RAM2 shut-off in DStop/DStop2 mode is enabled - * @rmtoll CR1 AHBRAM2SO LL_PWR_IsEnabledAHBRAM2ShutOff - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsEnabledAHBRAM2ShutOff(void) -{ - return ((READ_BIT(PWR->CR1, PWR_CR1_AHBRAM2SO) == (PWR_CR1_AHBRAM2SO)) ? 1UL : 0UL); -} -#endif /* PWR_CR1_AHBRAM2SO */ - -#if defined (PWR_CR1_ITCMSO) -/** - * @brief Enable the ITCM shut-off in DStop/DStop2 mode - * @rmtoll CR1 ITCMSO LL_PWR_EnableITCMSOShutOff - * @retval None - */ -__STATIC_INLINE void LL_PWR_EnableITCMSOShutOff(void) -{ - SET_BIT(PWR->CR1, PWR_CR1_ITCMSO); -} - -/** - * @brief Disable the ITCM shut-off in DStop/DStop2 mode - * @rmtoll CR1 ITCMSO LL_PWR_DisableITCMSOShutOff - * @retval None - */ -__STATIC_INLINE void LL_PWR_DisableITCMSOShutOff(void) -{ - CLEAR_BIT(PWR->CR1, PWR_CR1_ITCMSO); -} - -/** - * @brief Check if the ITCM shut-off in DStop/DStop2 mode is enabled - * @rmtoll CR1 ITCMSO LL_PWR_IsEnabledITCMShutOff - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsEnabledITCMShutOff(void) -{ - return ((READ_BIT(PWR->CR1, PWR_CR1_ITCMSO) == (PWR_CR1_ITCMSO)) ? 1UL : 0UL); -} -#endif /* PWR_CR1_ITCMSO */ - -#if defined (PWR_CR1_HSITFSO) -/** - * @brief Enable the USB and FDCAN shut-off in DStop/DStop2 mode - * @rmtoll CR1 HSITFSO LL_PWR_EnableHSITFShutOff - * @retval None - */ -__STATIC_INLINE void LL_PWR_EnableHSITFShutOff(void) -{ - SET_BIT(PWR->CR1, PWR_CR1_HSITFSO); -} - -/** - * @brief Disable the USB and FDCAN shut-off in DStop/DStop2 mode - * @rmtoll CR1 HSITFSO LL_PWR_DisableHSITFShutOff - * @retval None - */ -__STATIC_INLINE void LL_PWR_DisableHSITFShutOff(void) -{ - CLEAR_BIT(PWR->CR1, PWR_CR1_HSITFSO); -} - -/** - * @brief Check if the USB and FDCAN shut-off in DStop/DStop2 mode is enabled - * @rmtoll CR1 HSITFSO LL_PWR_IsEnabledHSITFShutOff - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsEnabledHSITFShutOff(void) -{ - return ((READ_BIT(PWR->CR1, PWR_CR1_HSITFSO) == (PWR_CR1_HSITFSO)) ? 1UL : 0UL); -} -#endif /* PWR_CR1_HSITFSO */ - -#if defined (PWR_CR1_SRDRAMSO) -/** - * @brief Enable the SRD AHB RAM shut-off in DStop/DStop2 mode - * @rmtoll CR1 SRDRAMSO LL_PWR_EnableSRDRAMShutOff - * @retval None - */ -__STATIC_INLINE void LL_PWR_EnableSRDRAMShutOff(void) -{ - SET_BIT(PWR->CR1, PWR_CR1_SRDRAMSO); -} - -/** - * @brief Disable the SRD AHB RAM shut-off in DStop/DStop2 mode - * @rmtoll CR1 SRDRAMSO LL_PWR_DisableSRDRAMShutOff - * @retval None - */ -__STATIC_INLINE void LL_PWR_DisableSRDRAMShutOff(void) -{ - CLEAR_BIT(PWR->CR1, PWR_CR1_SRDRAMSO); -} - -/** - * @brief Check if the SRD AHB RAM shut-off in DStop/DStop2 mode is enabled - * @rmtoll CR1 SRDRAMSO LL_PWR_IsEnabledSRDRAMShutOff - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsEnabledSRDRAMShutOff(void) -{ - return ((READ_BIT(PWR->CR1, PWR_CR1_SRDRAMSO) == (PWR_CR1_SRDRAMSO)) ? 1UL : 0UL); -} -#endif /* PWR_CR1_SRDRAMSO */ - -/** - * @brief Enable Backup Regulator - * @rmtoll CR2 BREN LL_PWR_EnableBkUpRegulator - * @note When set, the Backup Regulator (used to maintain backup SRAM content in Standby and - * VBAT modes) is enabled. If BRE is reset, the backup Regulator is switched off. The backup - * SRAM can still be used but its content will be lost in the Standby and VBAT modes. Once set, - * the application must wait that the Backup Regulator Ready flag (BRR) is set to indicate that - * the data written into the RAM will be maintained in the Standby and VBAT modes. - * @retval None - */ -__STATIC_INLINE void LL_PWR_EnableBkUpRegulator(void) -{ - SET_BIT(PWR->CR2, PWR_CR2_BREN); -} - -/** - * @brief Disable Backup Regulator - * @rmtoll CR2 BREN LL_PWR_DisableBkUpRegulator - * @retval None - */ -__STATIC_INLINE void LL_PWR_DisableBkUpRegulator(void) -{ - CLEAR_BIT(PWR->CR2, PWR_CR2_BREN); -} - -/** - * @brief Check if the backup Regulator is enabled - * @rmtoll CR2 BREN LL_PWR_IsEnabledBkUpRegulator - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsEnabledBkUpRegulator(void) -{ - return ((READ_BIT(PWR->CR2, PWR_CR2_BREN) == (PWR_CR2_BREN)) ? 1UL : 0UL); -} - -/** - * @brief Enable VBAT and Temperature monitoring - * @rmtoll CR2 MONEN LL_PWR_EnableMonitoring - * @retval None - */ -__STATIC_INLINE void LL_PWR_EnableMonitoring(void) -{ - SET_BIT(PWR->CR2, PWR_CR2_MONEN); -} - -/** - * @brief Disable VBAT and Temperature monitoring - * @rmtoll CR2 MONEN LL_PWR_DisableMonitoring - * @retval None - */ -__STATIC_INLINE void LL_PWR_DisableMonitoring(void) -{ - CLEAR_BIT(PWR->CR2, PWR_CR2_MONEN); -} - -/** - * @brief Check if the VBAT and Temperature monitoring is enabled - * @rmtoll CR2 MONEN LL_PWR_IsEnabledMonitoring - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsEnabledMonitoring(void) -{ - return ((READ_BIT(PWR->CR2, PWR_CR2_MONEN) == (PWR_CR2_MONEN)) ? 1UL : 0UL); -} - -#if defined (SMPS) -/** - * @brief Configure the PWR supply - * @rmtoll CR3 BYPASS LL_PWR_ConfigSupply - * @rmtoll CR3 LDOEN LL_PWR_ConfigSupply - * @rmtoll CR3 SMPSEN LL_PWR_ConfigSupply - * @rmtoll CR3 SMPSEXTHP LL_PWR_ConfigSupply - * @rmtoll CR3 SMPSLEVEL LL_PWR_ConfigSupply - * @param SupplySource This parameter can be one of the following values: - * @arg @ref LL_PWR_LDO_SUPPLY - * @arg @ref LL_PWR_DIRECT_SMPS_SUPPLY - * @arg @ref LL_PWR_SMPS_1V8_SUPPLIES_LDO - * @arg @ref LL_PWR_SMPS_2V5_SUPPLIES_LDO - * @arg @ref LL_PWR_SMPS_1V8_SUPPLIES_EXT_AND_LDO - * @arg @ref LL_PWR_SMPS_2V5_SUPPLIES_EXT_AND_LDO - * @arg @ref LL_PWR_SMPS_1V8_SUPPLIES_EXT - * @arg @ref LL_PWR_SMPS_2V5_SUPPLIES_EXT - * @arg @ref LL_PWR_EXTERNAL_SOURCE_SUPPLY - * @retval None - */ -__STATIC_INLINE void LL_PWR_ConfigSupply(uint32_t SupplySource) -{ - /* Set the power supply configuration */ - MODIFY_REG(PWR->CR3, (PWR_CR3_SMPSLEVEL | PWR_CR3_SMPSEXTHP | PWR_CR3_SMPSEN | PWR_CR3_LDOEN | PWR_CR3_BYPASS), SupplySource); -} -#else -/** - * @brief Configure the PWR supply - * @rmtoll CR3 BYPASS LL_PWR_ConfigSupply - * @rmtoll CR3 LDOEN LL_PWR_ConfigSupply - * @rmtoll CR3 SCUEN LL_PWR_ConfigSupply - * @param SupplySource This parameter can be one of the following values: - * @arg @ref LL_PWR_LDO_SUPPLY - * @arg @ref LL_PWR_EXTERNAL_SOURCE_SUPPLY - * @retval None - */ -__STATIC_INLINE void LL_PWR_ConfigSupply(uint32_t SupplySource) -{ - /* Set the power supply configuration */ - MODIFY_REG(PWR->CR3, (PWR_CR3_SCUEN | PWR_CR3_LDOEN | PWR_CR3_BYPASS), SupplySource); -} -#endif /* defined (SMPS) */ - -#if defined (SMPS) -/** - * @brief Get the PWR supply - * @rmtoll CR3 BYPASS LL_PWR_GetSupply - * @rmtoll CR3 LDOEN LL_PWR_GetSupply - * @rmtoll CR3 SMPSEN LL_PWR_GetSupply - * @rmtoll CR3 SMPSEXTHP LL_PWR_GetSupply - * @rmtoll CR3 SMPSLEVEL LL_PWR_GetSupply - * @retval Returned value can be one of the following values: - * @arg @ref LL_PWR_LDO_SUPPLY - * @arg @ref LL_PWR_DIRECT_SMPS_SUPPLY - * @arg @ref LL_PWR_SMPS_1V8_SUPPLIES_LDO - * @arg @ref LL_PWR_SMPS_2V5_SUPPLIES_LDO - * @arg @ref LL_PWR_SMPS_1V8_SUPPLIES_EXT_AND_LDO - * @arg @ref LL_PWR_SMPS_2V5_SUPPLIES_EXT_AND_LDO - * @arg @ref LL_PWR_SMPS_1V8_SUPPLIES_EXT - * @arg @ref LL_PWR_SMPS_2V5_SUPPLIES_EXT - * @arg @ref LL_PWR_EXTERNAL_SOURCE_SUPPLY - */ -__STATIC_INLINE uint32_t LL_PWR_GetSupply(void) -{ - /* Get the power supply configuration */ - return(uint32_t)(READ_BIT(PWR->CR3, (PWR_CR3_SMPSLEVEL | PWR_CR3_SMPSEXTHP | PWR_CR3_SMPSEN | PWR_CR3_LDOEN | PWR_CR3_BYPASS))); -} -#else -/** - * @brief Get the PWR supply - * @rmtoll CR3 BYPASS LL_PWR_GetSupply - * @rmtoll CR3 LDOEN LL_PWR_GetSupply - * @rmtoll CR3 SCUEN LL_PWR_GetSupply - * @retval Returned value can be one of the following values: - * @arg @ref LL_PWR_LDO_SUPPLY - * @arg @ref LL_PWR_EXTERNAL_SOURCE_SUPPLY - */ -__STATIC_INLINE uint32_t LL_PWR_GetSupply(void) -{ - /* Get the power supply configuration */ - return(uint32_t)(READ_BIT(PWR->CR3, (PWR_CR3_SCUEN | PWR_CR3_LDOEN | PWR_CR3_BYPASS))); -} -#endif /* defined (SMPS) */ - -/** - * @brief Enable battery charging - * @rmtoll CR3 VBE LL_PWR_EnableBatteryCharging - * @retval None - */ -__STATIC_INLINE void LL_PWR_EnableBatteryCharging(void) -{ - SET_BIT(PWR->CR3, PWR_CR3_VBE); -} - -/** - * @brief Disable battery charging - * @rmtoll CR3 VBE LL_PWR_DisableBatteryCharging - * @retval None - */ -__STATIC_INLINE void LL_PWR_DisableBatteryCharging(void) -{ - CLEAR_BIT(PWR->CR3, PWR_CR3_VBE); -} - -/** - * @brief Check if battery charging is enabled - * @rmtoll CR3 VBE LL_PWR_IsEnabledBatteryCharging - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsEnabledBatteryCharging(void) -{ - return ((READ_BIT(PWR->CR3, PWR_CR3_VBE) == (PWR_CR3_VBE)) ? 1UL : 0UL); -} - -/** - * @brief Set the Battery charge resistor impedance - * @rmtoll CR3 VBRS LL_PWR_SetBattChargResistor - * @param Resistor This parameter can be one of the following values: - * @arg @ref LL_PWR_BATT_CHARG_RESISTOR_5K - * @arg @ref LL_PWR_BATT_CHARGRESISTOR_1_5K - * @retval None - */ -__STATIC_INLINE void LL_PWR_SetBattChargResistor(uint32_t Resistor) -{ - MODIFY_REG(PWR->CR3, PWR_CR3_VBRS, Resistor); -} - -/** - * @brief Get the Battery charge resistor impedance - * @rmtoll CR3 VBRS LL_PWR_GetBattChargResistor - * @retval Returned value can be one of the following values: - * @arg @ref LL_PWR_BATT_CHARG_RESISTOR_5K - * @arg @ref LL_PWR_BATT_CHARGRESISTOR_1_5K - */ -__STATIC_INLINE uint32_t LL_PWR_GetBattChargResistor(void) -{ - return (uint32_t)(READ_BIT(PWR->CR3, PWR_CR3_VBRS)); -} - -/** - * @brief Enable the USB regulator - * @rmtoll CR3 USBREGEN LL_PWR_EnableUSBReg - * @retval None - */ -__STATIC_INLINE void LL_PWR_EnableUSBReg(void) -{ - SET_BIT(PWR->CR3, PWR_CR3_USBREGEN); -} - -/** - * @brief Disable the USB regulator - * @rmtoll CR3 USBREGEN LL_PWR_DisableUSBReg - * @retval None - */ -__STATIC_INLINE void LL_PWR_DisableUSBReg(void) -{ - CLEAR_BIT(PWR->CR3, PWR_CR3_USBREGEN); -} - -/** - * @brief Check if the USB regulator is enabled - * @rmtoll CR3 USBREGEN LL_PWR_IsEnabledUSBReg - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsEnabledUSBReg(void) -{ - return ((READ_BIT(PWR->CR3, PWR_CR3_USBREGEN) == (PWR_CR3_USBREGEN)) ? 1UL : 0UL); -} - -/** - * @brief Enable the USB voltage detector - * @rmtoll CR3 USB33DEN LL_PWR_EnableUSBVoltageDetector - * @retval None - */ -__STATIC_INLINE void LL_PWR_EnableUSBVoltageDetector(void) -{ - SET_BIT(PWR->CR3, PWR_CR3_USB33DEN); -} - -/** - * @brief Disable the USB voltage detector - * @rmtoll CR3 USB33DEN LL_PWR_DisableUSBVoltageDetector - * @retval None - */ -__STATIC_INLINE void LL_PWR_DisableUSBVoltageDetector(void) -{ - CLEAR_BIT(PWR->CR3, PWR_CR3_USB33DEN); -} - -/** - * @brief Check if the USB voltage detector is enabled - * @rmtoll CR3 USB33DEN LL_PWR_IsEnabledUSBVoltageDetector - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsEnabledUSBVoltageDetector(void) -{ - return ((READ_BIT(PWR->CR3, PWR_CR3_USB33DEN) == (PWR_CR3_USB33DEN)) ? 1UL : 0UL); -} - -#if defined (PWR_CPUCR_PDDS_D2) -/** - * @brief Set the D1 domain Power Down mode when the CPU enters deepsleep - * @rmtoll CPUCR PDDS_D1 LL_PWR_CPU_SetD1PowerMode - * @param PDMode This parameter can be one of the following values: - * @arg @ref LL_PWR_CPU_MODE_D1STOP - * @arg @ref LL_PWR_CPU_MODE_D1STANDBY - * @retval None - */ -__STATIC_INLINE void LL_PWR_CPU_SetD1PowerMode(uint32_t PDMode) -{ - MODIFY_REG(PWR->CPUCR, PWR_CPUCR_PDDS_D1, PDMode); -} -#else -/** - * @brief Set the CPU domain Power Down mode when the CPU enters deepsleep - * @rmtoll CPUCR RETDS_CD LL_PWR_CPU_SetCDPowerMode - * @param PDMode This parameter can be one of the following values: - * @arg @ref LL_PWR_CPU_MODE_CDSTOP - * @arg @ref LL_PWR_CPU_MODE_CDSTOP2 - * @retval None - */ -__STATIC_INLINE void LL_PWR_CPU_SetCDPowerMode(uint32_t PDMode) -{ - MODIFY_REG(PWR->CPUCR, PWR_CPUCR_RETDS_CD, PDMode); -} -#endif /* PWR_CPUCR_PDDS_D2 */ - -#if defined (DUAL_CORE) -/** - * @brief Set the D1 domain Power Down mode when the CPU2 enters deepsleep - * @rmtoll CPU2CR PDDS_D1 LL_PWR_CPU2_SetD1PowerMode - * @param PDMode This parameter can be one of the following values: - * @arg @ref LL_PWR_CPU2_MODE_D1STOP - * @arg @ref LL_PWR_CPU2_MODE_D1STANDBY - * @retval None - */ -__STATIC_INLINE void LL_PWR_CPU2_SetD1PowerMode(uint32_t PDMode) -{ - MODIFY_REG(PWR->CPU2CR, PWR_CPU2CR_PDDS_D1, PDMode); -} -#endif /* DUAL_CORE */ - -#if defined (PWR_CPUCR_PDDS_D2) -/** - * @brief Get the D1 Domain Power Down mode when the CPU enters deepsleep - * @rmtoll CPUCR PDDS_D1 LL_PWR_CPU_GetD1PowerMode - * @retval Returned value can be one of the following values: - * @arg @ref LL_PWR_CPU_MODE_D1STOP - * @arg @ref LL_PWR_CPU_MODE_D1STANDBY - */ -__STATIC_INLINE uint32_t LL_PWR_CPU_GetD1PowerMode(void) -{ - return (uint32_t)(READ_BIT(PWR->CPUCR, PWR_CPUCR_PDDS_D1)); -} -#else -/** - * @brief Get the CD Domain Power Down mode when the CPU enters deepsleep - * @rmtoll CPUCR RETDS_CD LL_PWR_CPU_GetCDPowerMode - * @retval Returned value can be one of the following values: - * @arg @ref LL_PWR_CPU_MODE_CDSTOP - * @arg @ref LL_PWR_CPU_MODE_CDSTOP2 - */ -__STATIC_INLINE uint32_t LL_PWR_CPU_GetCDPowerMode(void) -{ - return (uint32_t)(READ_BIT(PWR->CPUCR, PWR_CPUCR_RETDS_CD)); -} -#endif /* PWR_CPUCR_PDDS_D2 */ - -#if defined (DUAL_CORE) -/** - * @brief Get the D1 Domain Power Down mode when the CPU2 enters deepsleep - * @rmtoll CPU2CR PDDS_D1 LL_PWR_CPU2_GetD1PowerMode - * @retval Returned value can be one of the following values: - * @arg @ref LL_PWR_CPU2_MODE_D1STOP - * @arg @ref LL_PWR_CPU2_MODE_D1STANDBY - */ -__STATIC_INLINE uint32_t LL_PWR_CPU2_GetD1PowerMode(void) -{ - return (uint32_t)(READ_BIT(PWR->CPU2CR, PWR_CPU2CR_PDDS_D1)); -} -#endif /* DUAL_CORE */ - -#if defined (PWR_CPUCR_PDDS_D2) -/** - * @brief Set the D2 domain Power Down mode when the CPU enters deepsleep - * @rmtoll CPUCR PDDS_D2 LL_PWR_CPU_SetD2PowerMode - * @param PDMode This parameter can be one of the following values: - * @arg @ref LL_PWR_CPU_MODE_D2STOP - * @arg @ref LL_PWR_CPU_MODE_D2STANDBY - * @retval None - */ -__STATIC_INLINE void LL_PWR_CPU_SetD2PowerMode(uint32_t PDMode) -{ - MODIFY_REG(PWR->CPUCR, PWR_CPUCR_PDDS_D2, PDMode); -} -#endif /* PWR_CPUCR_PDDS_D2 */ - -#if defined (DUAL_CORE) -/** - * @brief Set the D2 domain Power Down mode when the CPU2 enters deepsleep - * @rmtoll CPU2CR PDDS_D2 LL_PWR_CPU2_SetD2PowerMode - * @param PDMode This parameter can be one of the following values: - * @arg @ref LL_PWR_CPU2_MODE_D2STOP - * @arg @ref LL_PWR_CPU2_MODE_D2STANDBY - * @retval None - */ -__STATIC_INLINE void LL_PWR_CPU2_SetD2PowerMode(uint32_t PDMode) -{ - MODIFY_REG(PWR->CPU2CR, PWR_CPU2CR_PDDS_D2, PDMode); -} -#endif /* DUAL_CORE */ - -#if defined (PWR_CPUCR_PDDS_D2) -/** - * @brief Get the D2 Domain Power Down mode when the CPU enters deepsleep - * @rmtoll CPUCR PDDS_D2 LL_PWR_CPU_GetD2PowerMode - * @retval Returned value can be one of the following values: - * @arg @ref LL_PWR_CPU_MODE_D2STOP - * @arg @ref LL_PWR_CPU_MODE_D2STANDBY - */ -__STATIC_INLINE uint32_t LL_PWR_CPU_GetD2PowerMode(void) -{ - return (uint32_t)(READ_BIT(PWR->CPUCR, PWR_CPUCR_PDDS_D2)); -} -#endif /* PWR_CPUCR_PDDS_D2 */ - -#if defined (DUAL_CORE) -/** - * @brief Get the D2 Domain Power Down mode when the CPU2 enters deepsleep - * @rmtoll CPU2CR PDDS_D2 LL_PWR_CPU2_GetD2PowerMode - * @retval Returned value can be one of the following values: - * @arg @ref LL_PWR_CPU2_MODE_D2STOP - * @arg @ref LL_PWR_CPU2_MODE_D2STANDBY - */ -__STATIC_INLINE uint32_t LL_PWR_CPU2_GetD2PowerMode(void) -{ - return (uint32_t)(READ_BIT(PWR->CPU2CR, PWR_CPU2CR_PDDS_D2)); -} -#endif /* DUAL_CORE */ - -#if defined (PWR_CPUCR_PDDS_D2) -/** - * @brief Set the D3 domain Power Down mode when the CPU enters deepsleep - * @rmtoll CPUCR PDDS_D3 LL_PWR_CPU_SetD3PowerMode - * @param PDMode This parameter can be one of the following values: - * @arg @ref LL_PWR_CPU_MODE_D3STOP - * @arg @ref LL_PWR_CPU_MODE_D3STANDBY - * @retval None - */ -__STATIC_INLINE void LL_PWR_CPU_SetD3PowerMode(uint32_t PDMode) -{ - MODIFY_REG(PWR->CPUCR, PWR_CPUCR_PDDS_D3 , PDMode); -} -#else -/** - * @brief Set the SRD domain Power Down mode when the CPU enters deepsleep - * @rmtoll CPUCR PDDS_SRD LL_PWR_CPU_SetSRDPowerMode - * @param PDMode This parameter can be one of the following values: - * @arg @ref LL_PWR_CPU_MODE_SRDSTOP - * @arg @ref LL_PWR_CPU_MODE_SRDSTANDBY - * @retval None - */ -__STATIC_INLINE void LL_PWR_CPU_SetSRDPowerMode(uint32_t PDMode) -{ - MODIFY_REG(PWR->CPUCR, PWR_CPUCR_PDDS_SRD , PDMode); -} -#endif /* PWR_CPUCR_PDDS_D2 */ - -#if defined (DUAL_CORE) -/** - * @brief Set the D3 domain Power Down mode when the CPU2 enters deepsleep - * @rmtoll CPU2CR PDDS_D3 LL_PWR_CPU2_SetD3PowerMode - * @param PDMode This parameter can be one of the following values: - * @arg @ref LL_PWR_CPU2_MODE_D3STOP - * @arg @ref LL_PWR_CPU2_MODE_D3STANDBY - * @retval None - */ -__STATIC_INLINE void LL_PWR_CPU2_SetD3PowerMode(uint32_t PDMode) -{ - MODIFY_REG(PWR->CPU2CR, PWR_CPU2CR_PDDS_D3, PDMode); -} -#endif /* DUAL_CORE */ - -#if defined (PWR_CPUCR_PDDS_D2) -/** - * @brief Get the D3 Domain Power Down mode when the CPU enters deepsleep - * @rmtoll CPUCR PDDS_D3 LL_PWR_CPU_GetD3PowerMode - * @retval Returned value can be one of the following values: - * @arg @ref LL_PWR_CPU_MODE_D3STOP - * @arg @ref LL_PWR_CPU_MODE_D3STANDBY - */ -__STATIC_INLINE uint32_t LL_PWR_CPU_GetD3PowerMode(void) -{ - return (uint32_t)(READ_BIT(PWR->CPUCR, PWR_CPUCR_PDDS_D3)); -} -#else -/** - * @brief Get the SRD Domain Power Down mode when the CPU enters deepsleep - * @rmtoll CPUCR PDDS_SRD LL_PWR_CPU_GetSRDPowerMode - * @retval Returned value can be one of the following values: - * @arg @ref LL_PWR_CPU_MODE_SRDSTOP - * @arg @ref LL_PWR_CPU_MODE_SRDSTANDBY - */ -__STATIC_INLINE uint32_t LL_PWR_CPU_GetSRDPowerMode(void) -{ - return (uint32_t)(READ_BIT(PWR->CPUCR, PWR_CPUCR_PDDS_SRD)); -} -#endif /* PWR_CPUCR_PDDS_D2 */ - -#if defined (DUAL_CORE) -/** - * @brief Get the D3 Domain Power Down mode when the CPU2 enters deepsleep - * @rmtoll CPU2CR PDDS_D3 LL_PWR_CPU2_GetD3PowerMode - * @retval Returned value can be one of the following values: - * @arg @ref LL_PWR_CPU2_MODE_D3STOP - * @arg @ref LL_PWR_CPU2_MODE_D3STANDBY - */ -__STATIC_INLINE uint32_t LL_PWR_CPU2_GetD3PowerMode(void) -{ - return (uint32_t)(READ_BIT(PWR->CPU2CR, PWR_CPU2CR_PDDS_D3)); -} -#endif /* DUAL_CORE */ - -#if defined (DUAL_CORE) -/** - * @brief Hold the CPU1 and allocated peripherals when exiting from STOP mode - * @rmtoll CPU2CR HOLD1 LL_PWR_HoldCPU1 - * @retval None - */ -__STATIC_INLINE void LL_PWR_HoldCPU1(void) -{ - SET_BIT(PWR->CPU2CR, PWR_CPU2CR_HOLD1); -} - -/** - * @brief Release the CPU1 and allocated peripherals - * @rmtoll CPU2CR HOLD1 LL_PWR_ReleaseCPU1 - * @retval None - */ -__STATIC_INLINE void LL_PWR_ReleaseCPU1(void) -{ - CLEAR_BIT(PWR->CPU2CR, PWR_CPU2CR_HOLD1); -} - -/** - * @brief Ckeck if the CPU1 and allocated peripherals are held - * @rmtoll CPU2CR HOLD1 LL_PWR_IsCPU1Held - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsCPU1Held(void) -{ - return ((READ_BIT(PWR->CPU2CR, PWR_CPU2CR_HOLD1) == (PWR_CPU2CR_HOLD1)) ? 1UL : 0UL); -} - -/** - * @brief Hold the CPU2 and allocated peripherals when exiting from STOP mode - * @rmtoll CPUCR HOLD2 LL_PWR_HoldCPU2 - * @retval None - */ -__STATIC_INLINE void LL_PWR_HoldCPU2(void) -{ - SET_BIT(PWR->CPUCR, PWR_CPUCR_HOLD2); -} - -/** - * @brief Release the CPU2 and allocated peripherals - * @rmtoll CPUCR HOLD2 LL_PWR_ReleaseCPU2 - * @retval None - */ -__STATIC_INLINE void LL_PWR_ReleaseCPU2(void) -{ - CLEAR_BIT(PWR->CPUCR, PWR_CPUCR_HOLD2); -} - -/** - * @brief Ckeck if the CPU2 and allocated peripherals are held - * @rmtoll CPUCR HOLD2 LL_PWR_IsCPU2Held - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsCPU2Held(void) -{ - return ((READ_BIT(PWR->CPUCR, PWR_CPUCR_HOLD2) == (PWR_CPUCR_HOLD2)) ? 1UL : 0UL); -} -#endif /* DUAL_CORE */ - -#if defined (PWR_CPUCR_PDDS_D2) -/** - * @brief D3 domain remains in Run mode regardless of CPU subsystem modes - * @rmtoll CPUCR RUN_D3 LL_PWR_CPU_EnableD3RunInLowPowerMode - * @retval None - */ -__STATIC_INLINE void LL_PWR_CPU_EnableD3RunInLowPowerMode(void) -{ - SET_BIT(PWR->CPUCR, PWR_CPUCR_RUN_D3); -} -#else -/** - * @brief SRD domain remains in Run mode regardless of CPU subsystem modes - * @rmtoll CPUCR RUN_SRD LL_PWR_CPU_EnableSRDRunInLowPowerMode - * @retval None - */ -__STATIC_INLINE void LL_PWR_CPU_EnableSRDRunInLowPowerMode(void) -{ - SET_BIT(PWR->CPUCR, PWR_CPUCR_RUN_SRD); -} -#endif /* PWR_CPUCR_PDDS_D2 */ - -#if defined (DUAL_CORE) -/** - * @brief D3 domain remains in Run mode regardless of CPU2 subsystem modes - * @rmtoll CPU2CR RUN_D3 LL_PWR_CPU2_EnableD3RunInLowPowerMode - * @retval None - */ -__STATIC_INLINE void LL_PWR_CPU2_EnableD3RunInLowPowerMode(void) -{ - SET_BIT(PWR->CPU2CR, PWR_CPU2CR_RUN_D3); -} -#endif /* DUAL_CORE */ - -#if defined (PWR_CPUCR_PDDS_D2) -/** - * @brief D3 domain follows CPU subsystem modes - * @rmtoll CPUCR RUN_D3 LL_PWR_CPU_DisableD3RunInLowPowerMode - * @retval None - */ -__STATIC_INLINE void LL_PWR_CPU_DisableD3RunInLowPowerMode(void) -{ - CLEAR_BIT(PWR->CPUCR, PWR_CPUCR_RUN_D3); -} -#else -/** - * @brief SRD domain follows CPU subsystem modes - * @rmtoll CPUCR RUN_SRD LL_PWR_CPU_DisableSRDRunInLowPowerMode - * @retval None - */ -__STATIC_INLINE void LL_PWR_CPU_DisableSRDRunInLowPowerMode(void) -{ - CLEAR_BIT(PWR->CPUCR, PWR_CPUCR_RUN_SRD); -} -#endif /* PWR_CPUCR_PDDS_D2 */ - -#if defined (DUAL_CORE) -/** - * @brief D3 domain follows CPU2 subsystem modes - * @rmtoll CPU2CR RUN_D3 LL_PWR_CPU2_DisableD3RunInLowPowerMode - * @retval None - */ -__STATIC_INLINE void LL_PWR_CPU2_DisableD3RunInLowPowerMode(void) -{ - CLEAR_BIT(PWR->CPU2CR, PWR_CPU2CR_RUN_D3); -} -#endif /* DUAL_CORE */ - -#if defined (PWR_CPUCR_PDDS_D2) -/** - * @brief Check if D3 is kept in Run mode when CPU enters low power mode - * @rmtoll CPUCR RUN_D3 LL_PWR_CPU_IsEnabledD3RunInLowPowerMode - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_CPU_IsEnabledD3RunInLowPowerMode(void) -{ - return ((READ_BIT(PWR->CPUCR, PWR_CPUCR_RUN_D3) == (PWR_CPUCR_RUN_D3)) ? 1UL : 0UL); -} -#else -/** - * @brief Check if SRD is kept in Run mode when CPU enters low power mode - * @rmtoll CPUCR RUN_SRD LL_PWR_CPU_IsEnabledSRDRunInLowPowerMode - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_CPU_IsEnabledSRDRunInLowPowerMode(void) -{ - return ((READ_BIT(PWR->CPUCR, PWR_CPUCR_RUN_SRD) == (PWR_CPUCR_RUN_SRD)) ? 1UL : 0UL); -} -#endif /* PWR_CPUCR_PDDS_D2 */ - -#if defined (DUAL_CORE) -/** - * @brief Check if D3 is kept in Run mode when CPU2 enters low power mode - * @rmtoll CPU2CR RUN_D3 LL_PWR_CPU2_IsEnabledD3RunInLowPowerMode - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_CPU2_IsEnabledD3RunInLowPowerMode(void) -{ - return ((READ_BIT(PWR->CPU2CR, PWR_CPU2CR_RUN_D3) == (PWR_CPU2CR_RUN_D3)) ? 1UL : 0UL); -} -#endif /* DUAL_CORE */ - -/** - * @brief Set the main internal Regulator output voltage - * @rmtoll D3CR VOS LL_PWR_SetRegulVoltageScaling - * @param VoltageScaling This parameter can be one of the following values: - * @arg @ref LL_PWR_REGU_VOLTAGE_SCALE0 - * @arg @ref LL_PWR_REGU_VOLTAGE_SCALE1 - * @arg @ref LL_PWR_REGU_VOLTAGE_SCALE2 - * @arg @ref LL_PWR_REGU_VOLTAGE_SCALE3 - * @note For all H7 lines except STM32H7Axxx and STM32H7Bxxx lines, VOS0 - * is applied when PWR_D3CR_VOS[1:0] = 0b11 and SYSCFG_PWRCR_ODEN = 0b1. - * @retval None - */ -__STATIC_INLINE void LL_PWR_SetRegulVoltageScaling(uint32_t VoltageScaling) -{ -#if defined (PWR_CPUCR_PDDS_D2) - MODIFY_REG(PWR->D3CR, PWR_D3CR_VOS, VoltageScaling); -#else - MODIFY_REG(PWR->SRDCR, PWR_SRDCR_VOS, VoltageScaling); -#endif /* PWR_CPUCR_PDDS_D2 */ -} - -/** - * @brief Get the main internal Regulator output voltage - * @rmtoll D3CR VOS LL_PWR_GetRegulVoltageScaling - * @note For all H7 lines except STM32H7Axxx and STM32H7Bxxx lines, checking - * VOS0 need the check of PWR_D3CR_VOS[1:0] field and SYSCFG_PWRCR_ODEN bit. - * @retval Returned value can be one of the following values: - * @arg @ref LL_PWR_REGU_VOLTAGE_SCALE0 - * @arg @ref LL_PWR_REGU_VOLTAGE_SCALE1 - * @arg @ref LL_PWR_REGU_VOLTAGE_SCALE2 - * @arg @ref LL_PWR_REGU_VOLTAGE_SCALE3 - */ -__STATIC_INLINE uint32_t LL_PWR_GetRegulVoltageScaling(void) -{ -#if defined (PWR_CPUCR_PDDS_D2) - return (uint32_t)(READ_BIT(PWR->D3CR, PWR_D3CR_VOS)); -#else - return (uint32_t)(READ_BIT(PWR->SRDCR, PWR_SRDCR_VOS)); -#endif /* PWR_CPUCR_PDDS_D2 */ -} - -/** - * @brief Enable the WakeUp PINx functionality - * @rmtoll WKUPEPR WKUPEN1 LL_PWR_EnableWakeUpPin\n - * WKUPEPR WKUPEN2 LL_PWR_EnableWakeUpPin\n - * WKUPEPR WKUPEN3 LL_PWR_EnableWakeUpPin\n - * WKUPEPR WKUPEN4 LL_PWR_EnableWakeUpPin\n - * WKUPEPR WKUPEN5 LL_PWR_EnableWakeUpPin\n - * WKUPEPR WKUPEN6 LL_PWR_EnableWakeUpPin - * @param WakeUpPin This parameter can be one of the following values: - * @arg @ref LL_PWR_WAKEUP_PIN1 - * @arg @ref LL_PWR_WAKEUP_PIN2 - * @arg @ref LL_PWR_WAKEUP_PIN3 (*) - * @arg @ref LL_PWR_WAKEUP_PIN4 - * @arg @ref LL_PWR_WAKEUP_PIN5 (*) - * @arg @ref LL_PWR_WAKEUP_PIN6 - * - * (*) value not defined in all devices. - * - * @retval None - */ -__STATIC_INLINE void LL_PWR_EnableWakeUpPin(uint32_t WakeUpPin) -{ - SET_BIT(PWR->WKUPEPR, WakeUpPin); -} - -/** - * @brief Disable the WakeUp PINx functionality - * @rmtoll WKUPEPR WKUPEN1 LL_PWR_DisableWakeUpPin\n - * WKUPEPR WKUPEN2 LL_PWR_DisableWakeUpPin\n - * WKUPEPR WKUPEN3 LL_PWR_DisableWakeUpPin\n - * WKUPEPR WKUPEN4 LL_PWR_DisableWakeUpPin\n - * WKUPEPR WKUPEN5 LL_PWR_DisableWakeUpPin\n - * WKUPEPR WKUPEN6 LL_PWR_DisableWakeUpPin - * @param WakeUpPin This parameter can be one of the following values: - * @arg @ref LL_PWR_WAKEUP_PIN1 - * @arg @ref LL_PWR_WAKEUP_PIN2 - * @arg @ref LL_PWR_WAKEUP_PIN3 (*) - * @arg @ref LL_PWR_WAKEUP_PIN4 - * @arg @ref LL_PWR_WAKEUP_PIN5 (*) - * @arg @ref LL_PWR_WAKEUP_PIN6 - * - * (*) value not defined in all devices. - * - * @retval None - */ -__STATIC_INLINE void LL_PWR_DisableWakeUpPin(uint32_t WakeUpPin) -{ - CLEAR_BIT(PWR->WKUPEPR, WakeUpPin); -} - -/** - * @brief Check if the WakeUp PINx functionality is enabled - * @rmtoll WKUPEPR WKUPEN1 LL_PWR_IsEnabledWakeUpPin\n - * WKUPEPR WKUPEN2 LL_PWR_IsEnabledWakeUpPin\n - * WKUPEPR WKUPEN3 LL_PWR_IsEnabledWakeUpPin\n - * WKUPEPR WKUPEN4 LL_PWR_IsEnabledWakeUpPin\n - * WKUPEPR WKUPEN5 LL_PWR_IsEnabledWakeUpPin\n - * WKUPEPR WKUPEN6 LL_PWR_IsEnabledWakeUpPin - * @param WakeUpPin This parameter can be one of the following values: - * @arg @ref LL_PWR_WAKEUP_PIN1 - * @arg @ref LL_PWR_WAKEUP_PIN2 - * @arg @ref LL_PWR_WAKEUP_PIN3 (*) - * @arg @ref LL_PWR_WAKEUP_PIN4 - * @arg @ref LL_PWR_WAKEUP_PIN5 (*) - * @arg @ref LL_PWR_WAKEUP_PIN6 - * - * (*) value not defined in all devices. - * - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsEnabledWakeUpPin(uint32_t WakeUpPin) -{ - return ((READ_BIT(PWR->WKUPEPR, WakeUpPin) == (WakeUpPin)) ? 1UL : 0UL); -} - -/** - * @brief Set the Wake-Up pin polarity low for the event detection - * @rmtoll WKUPEPR WKUPP1 LL_PWR_SetWakeUpPinPolarityLow\n - * WKUPEPR WKUPP2 LL_PWR_SetWakeUpPinPolarityLow\n - * WKUPEPR WKUPP3 LL_PWR_SetWakeUpPinPolarityLow\n - * WKUPEPR WKUPP4 LL_PWR_SetWakeUpPinPolarityLow\n - * WKUPEPR WKUPP5 LL_PWR_SetWakeUpPinPolarityLow\n - * WKUPEPR WKUPP6 LL_PWR_SetWakeUpPinPolarityLow - * @param WakeUpPin This parameter can be one of the following values: - * @arg @ref LL_PWR_WAKEUP_PIN1 - * @arg @ref LL_PWR_WAKEUP_PIN2 - * @arg @ref LL_PWR_WAKEUP_PIN3 (*) - * @arg @ref LL_PWR_WAKEUP_PIN4 - * @arg @ref LL_PWR_WAKEUP_PIN5 (*) - * @arg @ref LL_PWR_WAKEUP_PIN6 - * - * (*) value not defined in all devices. - * - * @retval None - */ -__STATIC_INLINE void LL_PWR_SetWakeUpPinPolarityLow(uint32_t WakeUpPin) -{ - SET_BIT(PWR->WKUPEPR, (WakeUpPin << PWR_WKUPEPR_WKUPP1_Pos)); -} - -/** - * @brief Set the Wake-Up pin polarity high for the event detection - * @rmtoll WKUPEPR WKUPP1 LL_PWR_SetWakeUpPinPolarityHigh\n - * WKUPEPR WKUPP2 LL_PWR_SetWakeUpPinPolarityHigh\n - * WKUPEPR WKUPP3 LL_PWR_SetWakeUpPinPolarityHigh\n - * WKUPEPR WKUPP4 LL_PWR_SetWakeUpPinPolarityHigh\n - * WKUPEPR WKUPP5 LL_PWR_SetWakeUpPinPolarityHigh\n - * WKUPEPR WKUPP6 LL_PWR_SetWakeUpPinPolarityHigh - * @param WakeUpPin This parameter can be one of the following values: - * @arg @ref LL_PWR_WAKEUP_PIN1 - * @arg @ref LL_PWR_WAKEUP_PIN2 - * @arg @ref LL_PWR_WAKEUP_PIN3 (*) - * @arg @ref LL_PWR_WAKEUP_PIN4 - * @arg @ref LL_PWR_WAKEUP_PIN5 (*) - * @arg @ref LL_PWR_WAKEUP_PIN6 - * - * (*) value not defined in all devices. - * - * @retval None - */ -__STATIC_INLINE void LL_PWR_SetWakeUpPinPolarityHigh(uint32_t WakeUpPin) -{ - CLEAR_BIT(PWR->WKUPEPR, (WakeUpPin << PWR_WKUPEPR_WKUPP1_Pos)); -} - -/** - * @brief Get the Wake-Up pin polarity for the event detection - * @rmtoll WKUPEPR WKUPP1 LL_PWR_IsWakeUpPinPolarityLow\n - * WKUPEPR WKUPP2 LL_PWR_IsWakeUpPinPolarityLow\n - * WKUPEPR WKUPP3 LL_PWR_IsWakeUpPinPolarityLow\n - * WKUPEPR WKUPP4 LL_PWR_IsWakeUpPinPolarityLow\n - * WKUPEPR WKUPP5 LL_PWR_IsWakeUpPinPolarityLow\n - * WKUPEPR WKUPP6 LL_PWR_IsWakeUpPinPolarityLow - * @param WakeUpPin This parameter can be one of the following values: - * @arg @ref LL_PWR_WAKEUP_PIN1 - * @arg @ref LL_PWR_WAKEUP_PIN2 - * @arg @ref LL_PWR_WAKEUP_PIN3 (*) - * @arg @ref LL_PWR_WAKEUP_PIN4 - * @arg @ref LL_PWR_WAKEUP_PIN5 (*) - * @arg @ref LL_PWR_WAKEUP_PIN6 - * - * (*) value not defined in all devices. - * - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsWakeUpPinPolarityLow(uint32_t WakeUpPin) -{ - return ((READ_BIT(PWR->WKUPEPR, (WakeUpPin << PWR_WKUPEPR_WKUPP1_Pos)) == (WakeUpPin << PWR_WKUPEPR_WKUPP1_Pos)) ? 1UL : 0UL); -} - -/** - * @brief Set the Wake-Up pin Pull None - * @rmtoll WKUPEPR WKUPPUPD1 LL_PWR_SetWakeUpPinPullNone\n - * WKUPEPR WKUPPUPD2 LL_PWR_SetWakeUpPinPullNone\n - * WKUPEPR WKUPPUPD3 LL_PWR_SetWakeUpPinPullNone\n - * WKUPEPR WKUPPUPD4 LL_PWR_SetWakeUpPinPullNone\n - * WKUPEPR WKUPPUPD5 LL_PWR_SetWakeUpPinPullNone\n - * WKUPEPR WKUPPUPD6 LL_PWR_SetWakeUpPinPullNone - * @param WakeUpPin This parameter can be one of the following values: - * @arg @ref LL_PWR_WAKEUP_PIN1 - * @arg @ref LL_PWR_WAKEUP_PIN2 - * @arg @ref LL_PWR_WAKEUP_PIN3 (*) - * @arg @ref LL_PWR_WAKEUP_PIN4 - * @arg @ref LL_PWR_WAKEUP_PIN5 (*) - * @arg @ref LL_PWR_WAKEUP_PIN6 - * - * (*) value not defined in all devices. - * - * @retval None - */ -__STATIC_INLINE void LL_PWR_SetWakeUpPinPullNone(uint32_t WakeUpPin) -{ - MODIFY_REG(PWR->WKUPEPR, \ - (PWR_WKUPEPR_WKUPPUPD1 << ((LL_PWR_WAKEUP_PINS_PULL_SHIFT_OFFSET * POSITION_VAL(WakeUpPin)) & LL_PWR_WAKEUP_PINS_MAX_SHIFT_MASK)), \ - (LL_PWR_WAKEUP_PIN_NOPULL << ((PWR_WKUPEPR_WKUPPUPD1_Pos + (LL_PWR_WAKEUP_PINS_PULL_SHIFT_OFFSET * POSITION_VAL(WakeUpPin))) & LL_PWR_WAKEUP_PINS_MAX_SHIFT_MASK))); -} - -/** - * @brief Set the Wake-Up pin Pull Up - * @rmtoll WKUPEPR WKUPPUPD1 LL_PWR_SetWakeUpPinPullUp\n - * WKUPEPR WKUPPUPD2 LL_PWR_SetWakeUpPinPullUp\n - * WKUPEPR WKUPPUPD3 LL_PWR_SetWakeUpPinPullUp\n - * WKUPEPR WKUPPUPD4 LL_PWR_SetWakeUpPinPullUp\n - * WKUPEPR WKUPPUPD5 LL_PWR_SetWakeUpPinPullUp\n - * WKUPEPR WKUPPUPD6 LL_PWR_SetWakeUpPinPullUp - * @param WakeUpPin This parameter can be one of the following values: - * @arg @ref LL_PWR_WAKEUP_PIN1 - * @arg @ref LL_PWR_WAKEUP_PIN2 - * @arg @ref LL_PWR_WAKEUP_PIN3 (*) - * @arg @ref LL_PWR_WAKEUP_PIN4 - * @arg @ref LL_PWR_WAKEUP_PIN5 (*) - * @arg @ref LL_PWR_WAKEUP_PIN6 - * - * (*) value not defined in all devices. - * - * @retval None - */ -__STATIC_INLINE void LL_PWR_SetWakeUpPinPullUp(uint32_t WakeUpPin) -{ - MODIFY_REG(PWR->WKUPEPR, \ - (PWR_WKUPEPR_WKUPPUPD1 << ((LL_PWR_WAKEUP_PINS_PULL_SHIFT_OFFSET * POSITION_VAL(WakeUpPin)) & LL_PWR_WAKEUP_PINS_MAX_SHIFT_MASK)), \ - (LL_PWR_WAKEUP_PIN_PULLUP << ((PWR_WKUPEPR_WKUPPUPD1_Pos + (LL_PWR_WAKEUP_PINS_PULL_SHIFT_OFFSET * POSITION_VAL(WakeUpPin))) & LL_PWR_WAKEUP_PINS_MAX_SHIFT_MASK))); -} - -/** - * @brief Set the Wake-Up pin Pull Down - * @rmtoll WKUPEPR WKUPPUPD1 LL_PWR_SetWakeUpPinPullDown\n - * WKUPEPR WKUPPUPD2 LL_PWR_SetWakeUpPinPullDown\n - * WKUPEPR WKUPPUPD3 LL_PWR_SetWakeUpPinPullDown\n - * WKUPEPR WKUPPUPD4 LL_PWR_SetWakeUpPinPullDown\n - * WKUPEPR WKUPPUPD5 LL_PWR_SetWakeUpPinPullDown\n - * WKUPEPR WKUPPUPD6 LL_PWR_SetWakeUpPinPullDown - * @param WakeUpPin This parameter can be one of the following values: - * @arg @ref LL_PWR_WAKEUP_PIN1 - * @arg @ref LL_PWR_WAKEUP_PIN2 - * @arg @ref LL_PWR_WAKEUP_PIN3 (*) - * @arg @ref LL_PWR_WAKEUP_PIN4 - * @arg @ref LL_PWR_WAKEUP_PIN5 (*) - * @arg @ref LL_PWR_WAKEUP_PIN6 - * - * (*) value not defined in all devices. - * - * @retval None - */ -__STATIC_INLINE void LL_PWR_SetWakeUpPinPullDown(uint32_t WakeUpPin) -{ - MODIFY_REG(PWR->WKUPEPR, \ - (PWR_WKUPEPR_WKUPPUPD1 << ((LL_PWR_WAKEUP_PINS_PULL_SHIFT_OFFSET * POSITION_VAL(WakeUpPin)) & LL_PWR_WAKEUP_PINS_MAX_SHIFT_MASK)), \ - (LL_PWR_WAKEUP_PIN_PULLDOWN << ((PWR_WKUPEPR_WKUPPUPD1_Pos + (LL_PWR_WAKEUP_PINS_PULL_SHIFT_OFFSET * POSITION_VAL(WakeUpPin))) & LL_PWR_WAKEUP_PINS_MAX_SHIFT_MASK))); -} - -/** - * @brief Get the Wake-Up pin pull - * @rmtoll WKUPEPR WKUPPUPD1 LL_PWR_GetWakeUpPinPull\n - * WKUPEPR WKUPPUPD2 LL_PWR_GetWakeUpPinPull\n - * WKUPEPR WKUPPUPD3 LL_PWR_GetWakeUpPinPull\n - * WKUPEPR WKUPPUPD4 LL_PWR_GetWakeUpPinPull\n - * WKUPEPR WKUPPUPD5 LL_PWR_GetWakeUpPinPull\n - * WKUPEPR WKUPPUPD6 LL_PWR_GetWakeUpPinPull - * @param WakeUpPin This parameter can be one of the following values: - * @arg @ref LL_PWR_WAKEUP_PIN1 - * @arg @ref LL_PWR_WAKEUP_PIN2 - * @arg @ref LL_PWR_WAKEUP_PIN3 (*) - * @arg @ref LL_PWR_WAKEUP_PIN4 - * @arg @ref LL_PWR_WAKEUP_PIN5 (*) - * @arg @ref LL_PWR_WAKEUP_PIN6 - * - * (*) value not defined in all devices. - * - * @retval Returned value can be one of the following values: - * @arg @ref LL_PWR_WAKEUP_PIN_NOPULL - * @arg @ref LL_PWR_WAKEUP_PIN_PULLUP - * @arg @ref LL_PWR_WAKEUP_PIN_PULLDOWN - */ -__STATIC_INLINE uint32_t LL_PWR_GetWakeUpPinPull(uint32_t WakeUpPin) -{ - uint32_t regValue = READ_BIT(PWR->WKUPEPR, (PWR_WKUPEPR_WKUPPUPD1 << ((LL_PWR_WAKEUP_PINS_PULL_SHIFT_OFFSET * POSITION_VAL(WakeUpPin)) & LL_PWR_WAKEUP_PINS_MAX_SHIFT_MASK))); - - return (uint32_t)(regValue >> ((PWR_WKUPEPR_WKUPPUPD1_Pos + (LL_PWR_WAKEUP_PINS_PULL_SHIFT_OFFSET * POSITION_VAL(WakeUpPin))) & LL_PWR_WAKEUP_PINS_MAX_SHIFT_MASK)); -} - -/** - * @} - */ - -/** @defgroup PWR_LL_EF_FLAG_Management FLAG_Management - * @{ - */ - -/** - * @brief Indicate whether VDD voltage is below the selected PVD threshold - * @rmtoll CSR1 PVDO LL_PWR_IsActiveFlag_PVDO - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_PVDO(void) -{ - return ((READ_BIT(PWR->CSR1, PWR_CSR1_PVDO) == (PWR_CSR1_PVDO)) ? 1UL : 0UL); -} - -/** - * @brief Indicate whether the voltage level is ready for current actual used VOS - * @rmtoll CSR1 ACTVOSRDY LL_PWR_IsActiveFlag_ACTVOS - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_ACTVOS(void) -{ - return ((READ_BIT(PWR->CSR1, PWR_CSR1_ACTVOSRDY) == (PWR_CSR1_ACTVOSRDY)) ? 1UL : 0UL); -} - -/** - * @brief Indicate whether VDDA voltage is below the selected AVD threshold - * @rmtoll CSR1 AVDO LL_PWR_IsActiveFlag_AVDO - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_AVDO(void) -{ - return ((READ_BIT(PWR->CSR1, PWR_CSR1_AVDO) == (PWR_CSR1_AVDO)) ? 1UL : 0UL); -} - -#if defined (PWR_CSR1_MMCVDO) -/** - * @brief Indicate whether VDDMMC voltage is below 1V2 - * @rmtoll CSR1 MMCVDO LL_PWR_IsActiveFlag_MMCVDO - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_MMCVDO(void) -{ - return ((READ_BIT(PWR->CSR1, PWR_CSR1_MMCVDO) == (PWR_CSR1_MMCVDO)) ? 1UL : 0UL); -} -#endif /* PWR_CSR1_MMCVDO */ - -/** - * @brief Get Backup Regulator ready Flag - * @rmtoll CR2 BRRDY LL_PWR_IsActiveFlag_BRR - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_BRR(void) -{ - return ((READ_BIT(PWR->CR2, PWR_CR2_BRRDY) == (PWR_CR2_BRRDY)) ? 1UL : 0UL); -} - -/** - * @brief Indicate whether the VBAT level is above or below low threshold - * @rmtoll CR2 VBATL LL_PWR_IsActiveFlag_VBATL - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_VBATL(void) -{ - return ((READ_BIT(PWR->CR2, PWR_CR2_VBATL) == (PWR_CR2_VBATL)) ? 1UL : 0UL); -} - -/** - * @brief Indicate whether the VBAT level is above or below high threshold - * @rmtoll CR2 VBATH LL_PWR_IsActiveFlag_VBATH - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_VBATH(void) -{ - return ((READ_BIT(PWR->CR2, PWR_CR2_VBATH) == (PWR_CR2_VBATH)) ? 1UL : 0UL); -} - -/** - * @brief Indicate whether the CPU temperature level is above or below low threshold - * @rmtoll CR2 TEMPL LL_PWR_IsActiveFlag_TEMPL - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_TEMPL(void) -{ - return ((READ_BIT(PWR->CR2, PWR_CR2_TEMPL) == (PWR_CR2_TEMPL)) ? 1UL : 0UL); -} - -/** - * @brief Indicate whether the CPU temperature level is above or below high threshold - * @rmtoll CR2 TEMPH LL_PWR_IsActiveFlag_TEMPH - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_TEMPH(void) -{ - return ((READ_BIT(PWR->CR2, PWR_CR2_TEMPH) == (PWR_CR2_TEMPH)) ? 1UL : 0UL); -} - -#if defined (SMPS) -/** - * @brief Indicate whether the SMPS external supply is ready or not - * @rmtoll CR3 SMPSEXTRDY LL_PWR_IsActiveFlag_SMPSEXT - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_SMPSEXT(void) -{ - return ((READ_BIT(PWR->CR3, PWR_CR3_SMPSEXTRDY) == (PWR_CR3_SMPSEXTRDY)) ? 1UL : 0UL); -} -#endif /* SMPS */ - -/** - * @brief Indicate whether the USB supply is ready or not - * @rmtoll CR3 USBRDY LL_PWR_IsActiveFlag_USB - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_USB(void) -{ - return ((READ_BIT(PWR->CR3, PWR_CR3_USB33RDY) == (PWR_CR3_USB33RDY)) ? 1UL : 0UL); -} - -#if defined (DUAL_CORE) -/** - * @brief Get HOLD2 Flag - * @rmtoll CPUCR HOLD2F LL_PWR_IsActiveFlag_HOLD2 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_HOLD2(void) -{ - return ((READ_BIT(PWR->CPUCR, PWR_CPUCR_HOLD2F) == (PWR_CPUCR_HOLD2F)) ? 1UL : 0UL); -} - -/** - * @brief Get HOLD1 Flag - * @rmtoll CPU2CR HOLD1F LL_PWR_IsActiveFlag_HOLD1 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_HOLD1(void) -{ - return ((READ_BIT(PWR->CPU2CR, PWR_CPU2CR_HOLD1F) == (PWR_CPU2CR_HOLD1F)) ? 1UL : 0UL); -} -#endif /* DUAL_CORE */ - -/** - * @brief Get CPU System Stop Flag - * @rmtoll CPUCR STOPF LL_PWR_CPU_IsActiveFlag_STOP - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_CPU_IsActiveFlag_STOP(void) -{ - return ((READ_BIT(PWR->CPUCR, PWR_CPUCR_STOPF) == (PWR_CPUCR_STOPF)) ? 1UL : 0UL); -} - -#if defined (DUAL_CORE) -/** - * @brief Get CPU2 System Stop Flag - * @rmtoll CPU2CR STOPF LL_PWR_CPU2_IsActiveFlag_STOP - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_CPU2_IsActiveFlag_STOP(void) -{ - return ((READ_BIT(PWR->CPU2CR, PWR_CPU2CR_STOPF) == (PWR_CPU2CR_STOPF)) ? 1UL : 0UL); -} -#endif /* DUAL_CORE */ - -/** - * @brief Get CPU System Standby Flag - * @rmtoll CPUCR SBF LL_PWR_CPU_IsActiveFlag_SB - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_CPU_IsActiveFlag_SB(void) -{ - return ((READ_BIT(PWR->CPUCR, PWR_CPUCR_SBF) == (PWR_CPUCR_SBF)) ? 1UL : 0UL); -} - -#if defined (DUAL_CORE) -/** - * @brief Get CPU2 System Standby Flag - * @rmtoll CPU2CR SBF LL_PWR_CPU2_IsActiveFlag_SB - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_CPU2_IsActiveFlag_SB(void) -{ - return ((READ_BIT(PWR->CPU2CR, PWR_CPU2CR_SBF) == (PWR_CPU2CR_SBF)) ? 1UL : 0UL); -} -#endif /* DUAL_CORE */ - -#if defined (PWR_CPUCR_SBF_D1) -/** - * @brief Get CPU D1 Domain Standby Flag - * @rmtoll CPUCR SBF_D1 LL_PWR_CPU_IsActiveFlag_SB_D1 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_CPU_IsActiveFlag_SB_D1(void) -{ - return ((READ_BIT(PWR->CPUCR, PWR_CPUCR_SBF_D1) == (PWR_CPUCR_SBF_D1)) ? 1UL : 0UL); -} -#endif /* PWR_CPUCR_SBF_D1 */ - -#if defined (DUAL_CORE) -/** - * @brief Get CPU2 D1 Domain Standby Flag - * @rmtoll CPU2CR SBF_D1 LL_PWR_CPU2_IsActiveFlag_SB_D1 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_CPU2_IsActiveFlag_SB_D1(void) -{ - return ((READ_BIT(PWR->CPU2CR, PWR_CPU2CR_SBF_D1) == (PWR_CPU2CR_SBF_D1)) ? 1UL : 0UL); -} -#endif /* DUAL_CORE */ - -#if defined (PWR_CPUCR_SBF_D2) -/** - * @brief Get CPU D2 Domain Standby Flag - * @rmtoll CPUCR SBF_D2 LL_PWR_CPU_IsActiveFlag_SB_D2 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_CPU_IsActiveFlag_SB_D2(void) -{ - return ((READ_BIT(PWR->CPUCR, PWR_CPUCR_SBF_D2) == (PWR_CPUCR_SBF_D2)) ? 1UL : 0UL); -} -#endif /* PWR_CPUCR_SBF_D2 */ - -#if defined (DUAL_CORE) -/** - * @brief Get CPU2 D2 Domain Standby Flag - * @rmtoll CPU2CR SBF_D2 LL_PWR_CPU2_IsActiveFlag_SB_D2 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_CPU2_IsActiveFlag_SB_D2(void) -{ - return ((READ_BIT(PWR->CPU2CR, PWR_CPU2CR_SBF_D2) == (PWR_CPU2CR_SBF_D2)) ? 1UL : 0UL); -} -#endif /* DUAL_CORE */ - - -/** - * @brief Indicate whether the Regulator is ready in the selected voltage range - * or if its output voltage is still changing to the required voltage level - * @rmtoll D3CR VOSRDY LL_PWR_IsActiveFlag_VOS - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_VOS(void) -{ -#if defined (PWR_CPUCR_PDDS_D2) - return ((READ_BIT(PWR->D3CR, PWR_D3CR_VOSRDY) == (PWR_D3CR_VOSRDY)) ? 1UL : 0UL); -#else - return ((READ_BIT(PWR->SRDCR, PWR_SRDCR_VOSRDY) == (PWR_SRDCR_VOSRDY)) ? 1UL : 0UL); -#endif /* PWR_CPUCR_PDDS_D2 */ -} - -/** - * @brief Get Wake-up Flag 6 - * @rmtoll WKUPFR WKUPF6 LL_PWR_IsActiveFlag_WU6 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU6(void) -{ - return ((READ_BIT(PWR->WKUPFR, PWR_WKUPFR_WKUPF6) == (PWR_WKUPFR_WKUPF6)) ? 1UL : 0UL); -} - -#if defined (PWR_WKUPFR_WKUPF5) -/** - * @brief Get Wake-up Flag 5 - * @rmtoll WKUPFR WKUPF5 LL_PWR_IsActiveFlag_WU5 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU5(void) -{ - return ((READ_BIT(PWR->WKUPFR, PWR_WKUPFR_WKUPF5) == (PWR_WKUPFR_WKUPF5)) ? 1UL : 0UL); -} -#endif /* defined (PWR_WKUPFR_WKUPF5) */ - -/** - * @brief Get Wake-up Flag 4 - * @rmtoll WKUPFR WKUPF4 LL_PWR_IsActiveFlag_WU4 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU4(void) -{ - return ((READ_BIT(PWR->WKUPFR, PWR_WKUPFR_WKUPF4) == (PWR_WKUPFR_WKUPF4)) ? 1UL : 0UL); -} - -#if defined (PWR_WKUPFR_WKUPF3) -/** - * @brief Get Wake-up Flag 3 - * @rmtoll WKUPFR WKUPF3 LL_PWR_IsActiveFlag_WU3 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU3(void) -{ - return ((READ_BIT(PWR->WKUPFR, PWR_WKUPFR_WKUPF3) == (PWR_WKUPFR_WKUPF3)) ? 1UL : 0UL); -} -#endif /* defined (PWR_WKUPFR_WKUPF3) */ - -/** - * @brief Get Wake-up Flag 2 - * @rmtoll WKUPFR WKUPF2 LL_PWR_IsActiveFlag_WU2 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU2(void) -{ - return ((READ_BIT(PWR->WKUPFR, PWR_WKUPFR_WKUPF2) == (PWR_WKUPFR_WKUPF2)) ? 1UL : 0UL); -} - -/** - * @brief Get Wake-up Flag 1 - * @rmtoll WKUPFR WKUPF1 LL_PWR_IsActiveFlag_WU1 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU1(void) -{ - return ((READ_BIT(PWR->WKUPFR, PWR_WKUPFR_WKUPF1) == (PWR_WKUPFR_WKUPF1)) ? 1UL : 0UL); -} - -/** - * @brief Clear CPU STANDBY, STOP and HOLD flags - * @rmtoll CPUCR CSSF LL_PWR_ClearFlag_CPU - * @retval None - */ -__STATIC_INLINE void LL_PWR_ClearFlag_CPU(void) -{ - SET_BIT(PWR->CPUCR, PWR_CPUCR_CSSF); -} - -#if defined (DUAL_CORE) -/** - * @brief Clear CPU2 STANDBY, STOP and HOLD flags - * @rmtoll CPU2CR CSSF LL_PWR_ClearFlag_CPU2 - * @retval None - */ -__STATIC_INLINE void LL_PWR_ClearFlag_CPU2(void) -{ - SET_BIT(PWR->CPU2CR, PWR_CPU2CR_CSSF); -} -#endif /* DUAL_CORE */ - -/** - * @brief Clear Wake-up Flag 6 - * @rmtoll WKUPCR WKUPC6 LL_PWR_ClearFlag_WU6 - * @retval None - */ -__STATIC_INLINE void LL_PWR_ClearFlag_WU6(void) -{ - WRITE_REG(PWR->WKUPCR, PWR_WKUPCR_WKUPC6); -} - -#if defined (PWR_WKUPCR_WKUPC5) -/** - * @brief Clear Wake-up Flag 5 - * @rmtoll WKUPCR WKUPC5 LL_PWR_ClearFlag_WU5 - * @retval None - */ -__STATIC_INLINE void LL_PWR_ClearFlag_WU5(void) -{ - WRITE_REG(PWR->WKUPCR, PWR_WKUPCR_WKUPC5); -} -#endif /* defined (PWR_WKUPCR_WKUPC5) */ - -/** - * @brief Clear Wake-up Flag 4 - * @rmtoll WKUPCR WKUPC4 LL_PWR_ClearFlag_WU4 - * @retval None - */ -__STATIC_INLINE void LL_PWR_ClearFlag_WU4(void) -{ - WRITE_REG(PWR->WKUPCR, PWR_WKUPCR_WKUPC4); -} - -#if defined (PWR_WKUPCR_WKUPC3) -/** - * @brief Clear Wake-up Flag 3 - * @rmtoll WKUPCR WKUPC3 LL_PWR_ClearFlag_WU3 - * @retval None - */ -__STATIC_INLINE void LL_PWR_ClearFlag_WU3(void) -{ - WRITE_REG(PWR->WKUPCR, PWR_WKUPCR_WKUPC3); -} -#endif /* defined (PWR_WKUPCR_WKUPC3) */ - -/** - * @brief Clear Wake-up Flag 2 - * @rmtoll WKUPCR WKUPC2 LL_PWR_ClearFlag_WU2 - * @retval None - */ -__STATIC_INLINE void LL_PWR_ClearFlag_WU2(void) -{ - WRITE_REG(PWR->WKUPCR, PWR_WKUPCR_WKUPC2); -} - -/** - * @brief Clear Wake-up Flag 1 - * @rmtoll WKUPCR WKUPC1 LL_PWR_ClearFlag_WU1 - * @retval None - */ -__STATIC_INLINE void LL_PWR_ClearFlag_WU1(void) -{ - WRITE_REG(PWR->WKUPCR, PWR_WKUPCR_WKUPC1); -} - -#if defined (USE_FULL_LL_DRIVER) -/** @defgroup PWR_LL_EF_Init De-initialization function - * @{ - */ -ErrorStatus LL_PWR_DeInit(void); -/** - * @} - */ -#endif /* defined (USE_FULL_LL_DRIVER) */ - - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -#endif /* defined (PWR) */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_LL_PWR_H */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_rcc.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_rcc.h deleted file mode 100644 index bd700dc..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_rcc.h +++ /dev/null @@ -1,6404 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_ll_rcc.h - * @author MCD Application Team - * @brief Header file of RCC LL module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file in - * the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_LL_RCC_H -#define STM32H7xx_LL_RCC_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx.h" -#include - -/** @addtogroup STM32H7xx_LL_Driver - * @{ - */ - -#if defined(RCC) - -/** @defgroup RCC_LL RCC - * @{ - */ - -/* Private types -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/** @defgroup RCC_LL_Private_Variables RCC Private Variables - * @{ - */ -extern const uint8_t LL_RCC_PrescTable[16]; - -/** - * @} - */ -/* Private constants ---------------------------------------------------------*/ -/* Private macros ------------------------------------------------------------*/ -/** @defgroup RCC_LL_Private_Macros RCC Private Macros - * @{ - */ -#if !defined(UNUSED) -#define UNUSED(x) ((void)(x)) -#endif - -/* 32 24 16 8 0 - -------------------------------------------------------- - | Mask | ClkSource | Bit | Register | - | | Config | Position | Offset | - --------------------------------------------------------*/ - -#if defined(RCC_VER_2_0) -/* Clock source register offset Vs CDCCIPR register */ -#define CDCCIP 0x0UL -#define CDCCIP1 0x4UL -#define CDCCIP2 0x8UL -#define SRDCCIP 0xCUL -#else -/* Clock source register offset Vs D1CCIPR register */ -#define D1CCIP 0x0UL -#define D2CCIP1 0x4UL -#define D2CCIP2 0x8UL -#define D3CCIP 0xCUL -#endif /* RCC_VER_2_0 */ - -#define LL_RCC_REG_SHIFT 0U -#define LL_RCC_POS_SHIFT 8U -#define LL_RCC_CONFIG_SHIFT 16U -#define LL_RCC_MASK_SHIFT 24U - -#define LL_CLKSOURCE_SHIFT(__CLKSOURCE__) (((__CLKSOURCE__) >> LL_RCC_POS_SHIFT ) & 0x1FUL) - -#define LL_CLKSOURCE_MASK(__CLKSOURCE__) ((((__CLKSOURCE__) >> LL_RCC_MASK_SHIFT ) & 0xFFUL) << LL_CLKSOURCE_SHIFT(__CLKSOURCE__)) - -#define LL_CLKSOURCE_CONFIG(__CLKSOURCE__) ((((__CLKSOURCE__) >> LL_RCC_CONFIG_SHIFT) & 0xFFUL) << LL_CLKSOURCE_SHIFT(__CLKSOURCE__)) - -#define LL_CLKSOURCE_REG(__CLKSOURCE__) (((__CLKSOURCE__) >> LL_RCC_REG_SHIFT ) & 0xFFUL) - -#define LL_CLKSOURCE(__REG__, __MSK__, __POS__, __CLK__) ((uint32_t)((((__MSK__) >> (__POS__)) << LL_RCC_MASK_SHIFT) | \ - (( __POS__ ) << LL_RCC_POS_SHIFT) | \ - (( __REG__ ) << LL_RCC_REG_SHIFT) | \ - (((__CLK__) >> (__POS__)) << LL_RCC_CONFIG_SHIFT))) -/** - * @} - */ -/* Exported types ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) -/** @defgroup RCC_LL_Exported_Types RCC Exported Types - * @{ - */ - -/** @defgroup LL_ES_CLOCK_FREQ Clocks Frequency Structure - * @{ - */ - -/** - * @brief RCC Clocks Frequency Structure - */ -typedef struct -{ - uint32_t SYSCLK_Frequency; - uint32_t CPUCLK_Frequency; - uint32_t HCLK_Frequency; - uint32_t PCLK1_Frequency; - uint32_t PCLK2_Frequency; - uint32_t PCLK3_Frequency; - uint32_t PCLK4_Frequency; -} LL_RCC_ClocksTypeDef; - -/** - * @} - */ - -/** - * @brief PLL Clocks Frequency Structure - */ -typedef struct -{ - uint32_t PLL_P_Frequency; - uint32_t PLL_Q_Frequency; - uint32_t PLL_R_Frequency; -} LL_PLL_ClocksTypeDef; - -/** - * @} - */ - -#endif /* USE_FULL_LL_DRIVER */ - -/* Exported constants --------------------------------------------------------*/ -/** @defgroup RCC_LL_Exported_Constants RCC Exported Constants - * @{ - */ - -/** @defgroup RCC_LL_EC_OSC_VALUES Oscillator Values adaptation - * @brief Defines used to adapt values of different oscillators - * @note These values could be modified in the user environment according to - * HW set-up. - * @{ - */ -#if !defined (HSE_VALUE) -#if defined(RCC_VER_X) || defined(RCC_VER_3_0) -#define HSE_VALUE 25000000U /*!< Value of the HSE oscillator in Hz */ -#else -#define HSE_VALUE 24000000U /*!< Value of the HSE oscillator in Hz */ -#endif /* RCC_VER_X || RCC_VER_3_0 */ -#endif /* HSE_VALUE */ - -#if !defined (HSI_VALUE) -#define HSI_VALUE 64000000U /*!< Value of the HSI oscillator in Hz */ -#endif /* HSI_VALUE */ - -#if !defined (CSI_VALUE) -#define CSI_VALUE 4000000U /*!< Value of the CSI oscillator in Hz */ -#endif /* CSI_VALUE */ - -#if !defined (LSE_VALUE) -#define LSE_VALUE 32768U /*!< Value of the LSE oscillator in Hz */ -#endif /* LSE_VALUE */ - -#if !defined (LSI_VALUE) -#define LSI_VALUE 32000U /*!< Value of the LSI oscillator in Hz */ -#endif /* LSI_VALUE */ - -#if !defined (EXTERNAL_CLOCK_VALUE) -#define EXTERNAL_CLOCK_VALUE 12288000U /*!< Value of the I2S_CKIN external oscillator in Hz */ -#endif /* EXTERNAL_CLOCK_VALUE */ - -#if !defined (HSI48_VALUE) -#define HSI48_VALUE 48000000U /*!< Value of the HSI48 oscillator in Hz */ -#endif /* HSI48_VALUE */ - -/** - * @} - */ - -/** @defgroup RCC_LL_EC_HSIDIV HSI oscillator divider - * @{ - */ -#define LL_RCC_HSI_DIV1 RCC_CR_HSIDIV_1 -#define LL_RCC_HSI_DIV2 RCC_CR_HSIDIV_2 -#define LL_RCC_HSI_DIV4 RCC_CR_HSIDIV_4 -#define LL_RCC_HSI_DIV8 RCC_CR_HSIDIV_8 -/** - * @} - */ - -/** @defgroup RCC_LL_EC_LSEDRIVE LSE oscillator drive capability - * @{ - */ -#define LL_RCC_LSEDRIVE_LOW (uint32_t)(0x00000000U) -#define LL_RCC_LSEDRIVE_MEDIUMLOW (uint32_t)(RCC_BDCR_LSEDRV_0) -#define LL_RCC_LSEDRIVE_MEDIUMHIGH (uint32_t)(RCC_BDCR_LSEDRV_1) -#define LL_RCC_LSEDRIVE_HIGH (uint32_t)(RCC_BDCR_LSEDRV) -/** - * @} - */ - -/** @defgroup RCC_LL_EC_SYS_CLKSOURCE System clock switch - * @{ - */ -#define LL_RCC_SYS_CLKSOURCE_HSI RCC_CFGR_SW_HSI -#define LL_RCC_SYS_CLKSOURCE_CSI RCC_CFGR_SW_CSI -#define LL_RCC_SYS_CLKSOURCE_HSE RCC_CFGR_SW_HSE -#define LL_RCC_SYS_CLKSOURCE_PLL1 RCC_CFGR_SW_PLL1 -/** - * @} - */ - -/** @defgroup RCC_LL_EC_SYS_CLKSOURCE_STATUS System clock switch status - * @{ - */ -#define LL_RCC_SYS_CLKSOURCE_STATUS_HSI RCC_CFGR_SWS_HSI /*!< HSI used as system clock */ -#define LL_RCC_SYS_CLKSOURCE_STATUS_CSI RCC_CFGR_SWS_CSI /*!< CSI used as system clock */ -#define LL_RCC_SYS_CLKSOURCE_STATUS_HSE RCC_CFGR_SWS_HSE /*!< HSE used as system clock */ -#define LL_RCC_SYS_CLKSOURCE_STATUS_PLL1 RCC_CFGR_SWS_PLL1 /*!< PLL1 used as system clock */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_SYSWAKEUP_CLKSOURCE System wakeup clock source - * @{ - */ -#define LL_RCC_SYSWAKEUP_CLKSOURCE_HSI (uint32_t)(0x00000000U) -#define LL_RCC_SYSWAKEUP_CLKSOURCE_CSI (uint32_t)(RCC_CFGR_STOPWUCK) -/** - * @} - */ - -/** @defgroup RCC_LL_EC_KERWAKEUP_CLKSOURCE Kernel wakeup clock source - * @{ - */ -#define LL_RCC_KERWAKEUP_CLKSOURCE_HSI (uint32_t)(0x00000000U) -#define LL_RCC_KERWAKEUP_CLKSOURCE_CSI (uint32_t)(RCC_CFGR_STOPKERWUCK) -/** - * @} - */ - -/** @defgroup RCC_LL_EC_SYSCLK_DIV System prescaler - * @{ - */ -#if defined(RCC_D1CFGR_D1CPRE_DIV1) -#define LL_RCC_SYSCLK_DIV_1 RCC_D1CFGR_D1CPRE_DIV1 -#define LL_RCC_SYSCLK_DIV_2 RCC_D1CFGR_D1CPRE_DIV2 -#define LL_RCC_SYSCLK_DIV_4 RCC_D1CFGR_D1CPRE_DIV4 -#define LL_RCC_SYSCLK_DIV_8 RCC_D1CFGR_D1CPRE_DIV8 -#define LL_RCC_SYSCLK_DIV_16 RCC_D1CFGR_D1CPRE_DIV16 -#define LL_RCC_SYSCLK_DIV_64 RCC_D1CFGR_D1CPRE_DIV64 -#define LL_RCC_SYSCLK_DIV_128 RCC_D1CFGR_D1CPRE_DIV128 -#define LL_RCC_SYSCLK_DIV_256 RCC_D1CFGR_D1CPRE_DIV256 -#define LL_RCC_SYSCLK_DIV_512 RCC_D1CFGR_D1CPRE_DIV512 -#else -#define LL_RCC_SYSCLK_DIV_1 RCC_CDCFGR1_CDCPRE_DIV1 -#define LL_RCC_SYSCLK_DIV_2 RCC_CDCFGR1_CDCPRE_DIV2 -#define LL_RCC_SYSCLK_DIV_4 RCC_CDCFGR1_CDCPRE_DIV4 -#define LL_RCC_SYSCLK_DIV_8 RCC_CDCFGR1_CDCPRE_DIV8 -#define LL_RCC_SYSCLK_DIV_16 RCC_CDCFGR1_CDCPRE_DIV16 -#define LL_RCC_SYSCLK_DIV_64 RCC_CDCFGR1_CDCPRE_DIV64 -#define LL_RCC_SYSCLK_DIV_128 RCC_CDCFGR1_CDCPRE_DIV128 -#define LL_RCC_SYSCLK_DIV_256 RCC_CDCFGR1_CDCPRE_DIV256 -#define LL_RCC_SYSCLK_DIV_512 RCC_CDCFGR1_CDCPRE_DIV512 -#endif /* RCC_D1CFGR_D1CPRE_DIV1 */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_AHB_DIV AHB prescaler - * @{ - */ -#if defined(RCC_D1CFGR_HPRE_DIV1) -#define LL_RCC_AHB_DIV_1 RCC_D1CFGR_HPRE_DIV1 -#define LL_RCC_AHB_DIV_2 RCC_D1CFGR_HPRE_DIV2 -#define LL_RCC_AHB_DIV_4 RCC_D1CFGR_HPRE_DIV4 -#define LL_RCC_AHB_DIV_8 RCC_D1CFGR_HPRE_DIV8 -#define LL_RCC_AHB_DIV_16 RCC_D1CFGR_HPRE_DIV16 -#define LL_RCC_AHB_DIV_64 RCC_D1CFGR_HPRE_DIV64 -#define LL_RCC_AHB_DIV_128 RCC_D1CFGR_HPRE_DIV128 -#define LL_RCC_AHB_DIV_256 RCC_D1CFGR_HPRE_DIV256 -#define LL_RCC_AHB_DIV_512 RCC_D1CFGR_HPRE_DIV512 -#else -#define LL_RCC_AHB_DIV_1 RCC_CDCFGR1_HPRE_DIV1 -#define LL_RCC_AHB_DIV_2 RCC_CDCFGR1_HPRE_DIV2 -#define LL_RCC_AHB_DIV_4 RCC_CDCFGR1_HPRE_DIV4 -#define LL_RCC_AHB_DIV_8 RCC_CDCFGR1_HPRE_DIV8 -#define LL_RCC_AHB_DIV_16 RCC_CDCFGR1_HPRE_DIV16 -#define LL_RCC_AHB_DIV_64 RCC_CDCFGR1_HPRE_DIV64 -#define LL_RCC_AHB_DIV_128 RCC_CDCFGR1_HPRE_DIV128 -#define LL_RCC_AHB_DIV_256 RCC_CDCFGR1_HPRE_DIV256 -#define LL_RCC_AHB_DIV_512 RCC_CDCFGR1_HPRE_DIV512 -#endif /* RCC_D1CFGR_HPRE_DIV1 */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_APB1_DIV APB low-speed prescaler (APB1) - * @{ - */ -#if defined(RCC_D2CFGR_D2PPRE1_DIV1) -#define LL_RCC_APB1_DIV_1 RCC_D2CFGR_D2PPRE1_DIV1 -#define LL_RCC_APB1_DIV_2 RCC_D2CFGR_D2PPRE1_DIV2 -#define LL_RCC_APB1_DIV_4 RCC_D2CFGR_D2PPRE1_DIV4 -#define LL_RCC_APB1_DIV_8 RCC_D2CFGR_D2PPRE1_DIV8 -#define LL_RCC_APB1_DIV_16 RCC_D2CFGR_D2PPRE1_DIV16 -#else -#define LL_RCC_APB1_DIV_1 RCC_CDCFGR2_CDPPRE1_DIV1 -#define LL_RCC_APB1_DIV_2 RCC_CDCFGR2_CDPPRE1_DIV2 -#define LL_RCC_APB1_DIV_4 RCC_CDCFGR2_CDPPRE1_DIV4 -#define LL_RCC_APB1_DIV_8 RCC_CDCFGR2_CDPPRE1_DIV8 -#define LL_RCC_APB1_DIV_16 RCC_CDCFGR2_CDPPRE1_DIV16 -#endif /* RCC_D2CFGR_D2PPRE1_DIV1 */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_APB2_DIV APB low-speed prescaler (APB2) - * @{ - */ -#if defined(RCC_D2CFGR_D2PPRE2_DIV1) -#define LL_RCC_APB2_DIV_1 RCC_D2CFGR_D2PPRE2_DIV1 -#define LL_RCC_APB2_DIV_2 RCC_D2CFGR_D2PPRE2_DIV2 -#define LL_RCC_APB2_DIV_4 RCC_D2CFGR_D2PPRE2_DIV4 -#define LL_RCC_APB2_DIV_8 RCC_D2CFGR_D2PPRE2_DIV8 -#define LL_RCC_APB2_DIV_16 RCC_D2CFGR_D2PPRE2_DIV16 -#else -#define LL_RCC_APB2_DIV_1 RCC_CDCFGR2_CDPPRE2_DIV1 -#define LL_RCC_APB2_DIV_2 RCC_CDCFGR2_CDPPRE2_DIV2 -#define LL_RCC_APB2_DIV_4 RCC_CDCFGR2_CDPPRE2_DIV4 -#define LL_RCC_APB2_DIV_8 RCC_CDCFGR2_CDPPRE2_DIV8 -#define LL_RCC_APB2_DIV_16 RCC_CDCFGR2_CDPPRE2_DIV16 -#endif /* RCC_D2CFGR_D2PPRE2_DIV1 */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_APB3_DIV APB low-speed prescaler (APB3) - * @{ - */ -#if defined(RCC_D1CFGR_D1PPRE_DIV1) -#define LL_RCC_APB3_DIV_1 RCC_D1CFGR_D1PPRE_DIV1 -#define LL_RCC_APB3_DIV_2 RCC_D1CFGR_D1PPRE_DIV2 -#define LL_RCC_APB3_DIV_4 RCC_D1CFGR_D1PPRE_DIV4 -#define LL_RCC_APB3_DIV_8 RCC_D1CFGR_D1PPRE_DIV8 -#define LL_RCC_APB3_DIV_16 RCC_D1CFGR_D1PPRE_DIV16 -#else -#define LL_RCC_APB3_DIV_1 RCC_CDCFGR1_CDPPRE_DIV1 -#define LL_RCC_APB3_DIV_2 RCC_CDCFGR1_CDPPRE_DIV2 -#define LL_RCC_APB3_DIV_4 RCC_CDCFGR1_CDPPRE_DIV4 -#define LL_RCC_APB3_DIV_8 RCC_CDCFGR1_CDPPRE_DIV8 -#define LL_RCC_APB3_DIV_16 RCC_CDCFGR1_CDPPRE_DIV16 -#endif /* RCC_D1CFGR_D1PPRE_DIV1 */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_APB4_DIV APB low-speed prescaler (APB4) - * @{ - */ -#if defined(RCC_D3CFGR_D3PPRE_DIV1) -#define LL_RCC_APB4_DIV_1 RCC_D3CFGR_D3PPRE_DIV1 -#define LL_RCC_APB4_DIV_2 RCC_D3CFGR_D3PPRE_DIV2 -#define LL_RCC_APB4_DIV_4 RCC_D3CFGR_D3PPRE_DIV4 -#define LL_RCC_APB4_DIV_8 RCC_D3CFGR_D3PPRE_DIV8 -#define LL_RCC_APB4_DIV_16 RCC_D3CFGR_D3PPRE_DIV16 -#else -#define LL_RCC_APB4_DIV_1 RCC_SRDCFGR_SRDPPRE_DIV1 -#define LL_RCC_APB4_DIV_2 RCC_SRDCFGR_SRDPPRE_DIV2 -#define LL_RCC_APB4_DIV_4 RCC_SRDCFGR_SRDPPRE_DIV4 -#define LL_RCC_APB4_DIV_8 RCC_SRDCFGR_SRDPPRE_DIV8 -#define LL_RCC_APB4_DIV_16 RCC_SRDCFGR_SRDPPRE_DIV16 -#endif /* RCC_D3CFGR_D3PPRE_DIV1 */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_MCOxSOURCE MCO source selection - * @{ - */ -#define LL_RCC_MCO1SOURCE_HSI (uint32_t)((RCC_CFGR_MCO1>>16U) | 0x00000000U) -#define LL_RCC_MCO1SOURCE_LSE (uint32_t)((RCC_CFGR_MCO1>>16U) | RCC_CFGR_MCO1_0) -#define LL_RCC_MCO1SOURCE_HSE (uint32_t)((RCC_CFGR_MCO1>>16U) | RCC_CFGR_MCO1_1) -#define LL_RCC_MCO1SOURCE_PLL1QCLK (uint32_t)((RCC_CFGR_MCO1>>16U) | RCC_CFGR_MCO1_1|RCC_CFGR_MCO1_0) -#define LL_RCC_MCO1SOURCE_HSI48 (uint32_t)((RCC_CFGR_MCO1>>16U) | RCC_CFGR_MCO1_2) -#define LL_RCC_MCO2SOURCE_SYSCLK (uint32_t)((RCC_CFGR_MCO2>>16U) | 0x00000000U) -#define LL_RCC_MCO2SOURCE_PLL2PCLK (uint32_t)((RCC_CFGR_MCO2>>16U) | RCC_CFGR_MCO2_0) -#define LL_RCC_MCO2SOURCE_HSE (uint32_t)((RCC_CFGR_MCO2>>16U) | RCC_CFGR_MCO2_1) -#define LL_RCC_MCO2SOURCE_PLL1PCLK (uint32_t)((RCC_CFGR_MCO2>>16U) | RCC_CFGR_MCO2_1|RCC_CFGR_MCO2_0) -#define LL_RCC_MCO2SOURCE_CSI (uint32_t)((RCC_CFGR_MCO2>>16U) | RCC_CFGR_MCO2_2) -#define LL_RCC_MCO2SOURCE_LSI (uint32_t)((RCC_CFGR_MCO2>>16U) | RCC_CFGR_MCO2_2|RCC_CFGR_MCO2_0) -/** - * @} - */ - -/** @defgroup RCC_LL_EC_MCOx_DIV MCO prescaler - * @{ - */ -#define LL_RCC_MCO1_DIV_1 (uint32_t)((RCC_CFGR_MCO1PRE>>16U) | RCC_CFGR_MCO1PRE_0) -#define LL_RCC_MCO1_DIV_2 (uint32_t)((RCC_CFGR_MCO1PRE>>16U) | RCC_CFGR_MCO1PRE_1) -#define LL_RCC_MCO1_DIV_3 (uint32_t)((RCC_CFGR_MCO1PRE>>16U) | RCC_CFGR_MCO1PRE_0 | RCC_CFGR_MCO1PRE_1) -#define LL_RCC_MCO1_DIV_4 (uint32_t)((RCC_CFGR_MCO1PRE>>16U) | RCC_CFGR_MCO1PRE_2) -#define LL_RCC_MCO1_DIV_5 (uint32_t)((RCC_CFGR_MCO1PRE>>16U) | RCC_CFGR_MCO1PRE_0 | RCC_CFGR_MCO1PRE_2) -#define LL_RCC_MCO1_DIV_6 (uint32_t)((RCC_CFGR_MCO1PRE>>16U) | RCC_CFGR_MCO1PRE_1 | RCC_CFGR_MCO1PRE_2) -#define LL_RCC_MCO1_DIV_7 (uint32_t)((RCC_CFGR_MCO1PRE>>16U) | RCC_CFGR_MCO1PRE_0 | RCC_CFGR_MCO1PRE_1 | RCC_CFGR_MCO1PRE_2) -#define LL_RCC_MCO1_DIV_8 (uint32_t)((RCC_CFGR_MCO1PRE>>16U) | RCC_CFGR_MCO1PRE_3) -#define LL_RCC_MCO1_DIV_9 (uint32_t)((RCC_CFGR_MCO1PRE>>16U) | RCC_CFGR_MCO1PRE_0 | RCC_CFGR_MCO1PRE_3) -#define LL_RCC_MCO1_DIV_10 (uint32_t)((RCC_CFGR_MCO1PRE>>16U) | RCC_CFGR_MCO1PRE_1 | RCC_CFGR_MCO1PRE_3) -#define LL_RCC_MCO1_DIV_11 (uint32_t)((RCC_CFGR_MCO1PRE>>16U) | RCC_CFGR_MCO1PRE_0 | RCC_CFGR_MCO1PRE_1 | RCC_CFGR_MCO1PRE_3) -#define LL_RCC_MCO1_DIV_12 (uint32_t)((RCC_CFGR_MCO1PRE>>16U) | RCC_CFGR_MCO1PRE_2 | RCC_CFGR_MCO1PRE_3) -#define LL_RCC_MCO1_DIV_13 (uint32_t)((RCC_CFGR_MCO1PRE>>16U) | RCC_CFGR_MCO1PRE_0 | RCC_CFGR_MCO1PRE_2 | RCC_CFGR_MCO1PRE_3) -#define LL_RCC_MCO1_DIV_14 (uint32_t)((RCC_CFGR_MCO1PRE>>16U) | RCC_CFGR_MCO1PRE_1 | RCC_CFGR_MCO1PRE_2 | RCC_CFGR_MCO1PRE_3) -#define LL_RCC_MCO1_DIV_15 (uint32_t)((RCC_CFGR_MCO1PRE>>16U) | RCC_CFGR_MCO1PRE) -#define LL_RCC_MCO2_DIV_1 (uint32_t)((RCC_CFGR_MCO2PRE>>16U) | RCC_CFGR_MCO2PRE_0) -#define LL_RCC_MCO2_DIV_2 (uint32_t)((RCC_CFGR_MCO2PRE>>16U) | RCC_CFGR_MCO2PRE_1) -#define LL_RCC_MCO2_DIV_3 (uint32_t)((RCC_CFGR_MCO2PRE>>16U) | RCC_CFGR_MCO2PRE_0 | RCC_CFGR_MCO2PRE_1) -#define LL_RCC_MCO2_DIV_4 (uint32_t)((RCC_CFGR_MCO2PRE>>16U) | RCC_CFGR_MCO2PRE_2) -#define LL_RCC_MCO2_DIV_5 (uint32_t)((RCC_CFGR_MCO2PRE>>16U) | RCC_CFGR_MCO2PRE_0 | RCC_CFGR_MCO2PRE_2) -#define LL_RCC_MCO2_DIV_6 (uint32_t)((RCC_CFGR_MCO2PRE>>16U) | RCC_CFGR_MCO2PRE_1 | RCC_CFGR_MCO2PRE_2) -#define LL_RCC_MCO2_DIV_7 (uint32_t)((RCC_CFGR_MCO2PRE>>16U) | RCC_CFGR_MCO2PRE_0 | RCC_CFGR_MCO2PRE_1 | RCC_CFGR_MCO2PRE_2) -#define LL_RCC_MCO2_DIV_8 (uint32_t)((RCC_CFGR_MCO2PRE>>16U) | RCC_CFGR_MCO2PRE_3) -#define LL_RCC_MCO2_DIV_9 (uint32_t)((RCC_CFGR_MCO2PRE>>16U) | RCC_CFGR_MCO2PRE_0 | RCC_CFGR_MCO2PRE_3) -#define LL_RCC_MCO2_DIV_10 (uint32_t)((RCC_CFGR_MCO2PRE>>16U) | RCC_CFGR_MCO2PRE_1 | RCC_CFGR_MCO2PRE_3) -#define LL_RCC_MCO2_DIV_11 (uint32_t)((RCC_CFGR_MCO2PRE>>16U) | RCC_CFGR_MCO2PRE_0 | RCC_CFGR_MCO2PRE_1 | RCC_CFGR_MCO2PRE_3) -#define LL_RCC_MCO2_DIV_12 (uint32_t)((RCC_CFGR_MCO2PRE>>16U) | RCC_CFGR_MCO2PRE_2 | RCC_CFGR_MCO2PRE_3) -#define LL_RCC_MCO2_DIV_13 (uint32_t)((RCC_CFGR_MCO2PRE>>16U) | RCC_CFGR_MCO2PRE_0 | RCC_CFGR_MCO2PRE_2 | RCC_CFGR_MCO2PRE_3) -#define LL_RCC_MCO2_DIV_14 (uint32_t)((RCC_CFGR_MCO2PRE>>16U) | RCC_CFGR_MCO2PRE_1 | RCC_CFGR_MCO2PRE_2 | RCC_CFGR_MCO2PRE_3) -#define LL_RCC_MCO2_DIV_15 (uint32_t)((RCC_CFGR_MCO2PRE>>16U) | RCC_CFGR_MCO2PRE) - -/** - * @} - */ - -/** @defgroup RCC_LL_EC_RTC_HSEDIV HSE prescaler for RTC clock - * @{ - */ -#define LL_RCC_RTC_NOCLOCK (uint32_t)(0x00000000U) -#define LL_RCC_RTC_HSE_DIV_2 (uint32_t)(RCC_CFGR_RTCPRE_1) -#define LL_RCC_RTC_HSE_DIV_3 (uint32_t)(RCC_CFGR_RTCPRE_1|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_4 (uint32_t)(RCC_CFGR_RTCPRE_2) -#define LL_RCC_RTC_HSE_DIV_5 (uint32_t)(RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_6 (uint32_t)(RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_1) -#define LL_RCC_RTC_HSE_DIV_7 (uint32_t)(RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_1|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_8 (uint32_t)(RCC_CFGR_RTCPRE_3) -#define LL_RCC_RTC_HSE_DIV_9 (uint32_t)(RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_10 (uint32_t)(RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_1) -#define LL_RCC_RTC_HSE_DIV_11 (uint32_t)(RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_1|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_12 (uint32_t)(RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_2) -#define LL_RCC_RTC_HSE_DIV_13 (uint32_t)(RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_14 (uint32_t)(RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_1) -#define LL_RCC_RTC_HSE_DIV_15 (uint32_t)(RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_1|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_16 (uint32_t)(RCC_CFGR_RTCPRE_4) -#define LL_RCC_RTC_HSE_DIV_17 (uint32_t)(RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_18 (uint32_t)(RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_1) -#define LL_RCC_RTC_HSE_DIV_19 (uint32_t)(RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_1|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_20 (uint32_t)(RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_2) -#define LL_RCC_RTC_HSE_DIV_21 (uint32_t)(RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_22 (uint32_t)(RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_1) -#define LL_RCC_RTC_HSE_DIV_23 (uint32_t)(RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_1|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_24 (uint32_t)(RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_3) -#define LL_RCC_RTC_HSE_DIV_25 (uint32_t)(RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_26 (uint32_t)(RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_1) -#define LL_RCC_RTC_HSE_DIV_27 (uint32_t)(RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_1|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_28 (uint32_t)(RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_2) -#define LL_RCC_RTC_HSE_DIV_29 (uint32_t)(RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_30 (uint32_t)(RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_1) -#define LL_RCC_RTC_HSE_DIV_31 (uint32_t)(RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_1|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_32 (uint32_t)(RCC_CFGR_RTCPRE_5) -#define LL_RCC_RTC_HSE_DIV_33 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_34 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_1) -#define LL_RCC_RTC_HSE_DIV_35 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_1|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_36 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_2) -#define LL_RCC_RTC_HSE_DIV_37 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_38 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_1) -#define LL_RCC_RTC_HSE_DIV_39 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_1|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_40 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_3) -#define LL_RCC_RTC_HSE_DIV_41 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_42 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_1) -#define LL_RCC_RTC_HSE_DIV_43 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_1|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_44 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_2) -#define LL_RCC_RTC_HSE_DIV_45 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_46 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_1) -#define LL_RCC_RTC_HSE_DIV_47 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_1|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_48 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_4) -#define LL_RCC_RTC_HSE_DIV_49 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_50 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_1) -#define LL_RCC_RTC_HSE_DIV_51 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_1|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_52 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_2) -#define LL_RCC_RTC_HSE_DIV_53 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_54 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_1) -#define LL_RCC_RTC_HSE_DIV_55 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_1|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_56 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_3) -#define LL_RCC_RTC_HSE_DIV_57 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_58 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_1) -#define LL_RCC_RTC_HSE_DIV_59 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_1|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_60 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_2) -#define LL_RCC_RTC_HSE_DIV_61 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_0) -#define LL_RCC_RTC_HSE_DIV_62 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_1) -#define LL_RCC_RTC_HSE_DIV_63 (uint32_t)(RCC_CFGR_RTCPRE_5|RCC_CFGR_RTCPRE_4|RCC_CFGR_RTCPRE_3|RCC_CFGR_RTCPRE_2|RCC_CFGR_RTCPRE_1|RCC_CFGR_RTCPRE_0) -/** - * @} - */ - -/** @defgroup RCC_LL_EC_USARTx_CLKSOURCE Peripheral USART clock source selection - * @{ - */ -#if defined(RCC_D2CCIP2R_USART16SEL) -#define LL_RCC_USART16_CLKSOURCE_PCLK2 LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_USART16SEL, RCC_D2CCIP2R_USART16SEL_Pos, 0x00000000U) -#define LL_RCC_USART16_CLKSOURCE_PLL2Q LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_USART16SEL, RCC_D2CCIP2R_USART16SEL_Pos, RCC_D2CCIP2R_USART16SEL_0) -#define LL_RCC_USART16_CLKSOURCE_PLL3Q LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_USART16SEL, RCC_D2CCIP2R_USART16SEL_Pos, RCC_D2CCIP2R_USART16SEL_1) -#define LL_RCC_USART16_CLKSOURCE_HSI LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_USART16SEL, RCC_D2CCIP2R_USART16SEL_Pos, RCC_D2CCIP2R_USART16SEL_0 | RCC_D2CCIP2R_USART16SEL_1) -#define LL_RCC_USART16_CLKSOURCE_CSI LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_USART16SEL, RCC_D2CCIP2R_USART16SEL_Pos, RCC_D2CCIP2R_USART16SEL_2) -#define LL_RCC_USART16_CLKSOURCE_LSE LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_USART16SEL, RCC_D2CCIP2R_USART16SEL_Pos, RCC_D2CCIP2R_USART16SEL_0 | RCC_D2CCIP2R_USART16SEL_2) -/* Aliases */ -#define LL_RCC_USART16910_CLKSOURCE_PCLK2 LL_RCC_USART16_CLKSOURCE_PCLK2 -#define LL_RCC_USART16910_CLKSOURCE_PLL2Q LL_RCC_USART16_CLKSOURCE_PLL2Q -#define LL_RCC_USART16910_CLKSOURCE_PLL3Q LL_RCC_USART16_CLKSOURCE_PLL3Q -#define LL_RCC_USART16910_CLKSOURCE_HSI LL_RCC_USART16_CLKSOURCE_HSI -#define LL_RCC_USART16910_CLKSOURCE_CSI LL_RCC_USART16_CLKSOURCE_CSI -#define LL_RCC_USART16910_CLKSOURCE_LSE LL_RCC_USART16_CLKSOURCE_LSE - -#elif defined(RCC_D2CCIP2R_USART16910SEL) -#define LL_RCC_USART16910_CLKSOURCE_PCLK2 LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_USART16910SEL, RCC_D2CCIP2R_USART16910SEL_Pos, 0x00000000U) -#define LL_RCC_USART16910_CLKSOURCE_PLL2Q LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_USART16910SEL, RCC_D2CCIP2R_USART16910SEL_Pos, RCC_D2CCIP2R_USART16910SEL_0) -#define LL_RCC_USART16910_CLKSOURCE_PLL3Q LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_USART16910SEL, RCC_D2CCIP2R_USART16910SEL_Pos, RCC_D2CCIP2R_USART16910SEL_1) -#define LL_RCC_USART16910_CLKSOURCE_HSI LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_USART16910SEL, RCC_D2CCIP2R_USART16910SEL_Pos, RCC_D2CCIP2R_USART16910SEL_0 | RCC_D2CCIP2R_USART16910SEL_1) -#define LL_RCC_USART16910_CLKSOURCE_CSI LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_USART16910SEL, RCC_D2CCIP2R_USART16910SEL_Pos, RCC_D2CCIP2R_USART16910SEL_2) -#define LL_RCC_USART16910_CLKSOURCE_LSE LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_USART16910SEL, RCC_D2CCIP2R_USART16910SEL_Pos, RCC_D2CCIP2R_USART16910SEL_0 | RCC_D2CCIP2R_USART16910SEL_2) -/* Aliases */ -#define LL_RCC_USART16_CLKSOURCE_PCLK2 LL_RCC_USART16910_CLKSOURCE_PCLK2 -#define LL_RCC_USART16_CLKSOURCE_PLL2Q LL_RCC_USART16910_CLKSOURCE_PLL2Q -#define LL_RCC_USART16_CLKSOURCE_PLL3Q LL_RCC_USART16910_CLKSOURCE_PLL3Q -#define LL_RCC_USART16_CLKSOURCE_HSI LL_RCC_USART16910_CLKSOURCE_HSI -#define LL_RCC_USART16_CLKSOURCE_CSI LL_RCC_USART16910_CLKSOURCE_CSI -#define LL_RCC_USART16_CLKSOURCE_LSE LL_RCC_USART16910_CLKSOURCE_LSE - -#else -#define LL_RCC_USART16910_CLKSOURCE_PCLK2 LL_CLKSOURCE(CDCCIP2, RCC_CDCCIP2R_USART16910SEL, RCC_CDCCIP2R_USART16910SEL_Pos, 0x00000000U) -#define LL_RCC_USART16910_CLKSOURCE_PLL2Q LL_CLKSOURCE(CDCCIP2, RCC_CDCCIP2R_USART16910SEL, RCC_CDCCIP2R_USART16910SEL_Pos, RCC_CDCCIP2R_USART16910SEL_0) -#define LL_RCC_USART16910_CLKSOURCE_PLL3Q LL_CLKSOURCE(CDCCIP2, RCC_CDCCIP2R_USART16910SEL, RCC_CDCCIP2R_USART16910SEL_Pos, RCC_CDCCIP2R_USART16910SEL_1) -#define LL_RCC_USART16910_CLKSOURCE_HSI LL_CLKSOURCE(CDCCIP2, RCC_CDCCIP2R_USART16910SEL, RCC_CDCCIP2R_USART16910SEL_Pos, RCC_CDCCIP2R_USART16910SEL_0 | RCC_CDCCIP2R_USART16910SEL_1) -#define LL_RCC_USART16910_CLKSOURCE_CSI LL_CLKSOURCE(CDCCIP2, RCC_CDCCIP2R_USART16910SEL, RCC_CDCCIP2R_USART16910SEL_Pos, RCC_CDCCIP2R_USART16910SEL_2) -#define LL_RCC_USART16910_CLKSOURCE_LSE LL_CLKSOURCE(CDCCIP2, RCC_CDCCIP2R_USART16910SEL, RCC_CDCCIP2R_USART16910SEL_Pos, RCC_CDCCIP2R_USART16910SEL_0 | RCC_CDCCIP2R_USART16910SEL_2) -/* Aliases */ -#define LL_RCC_USART16_CLKSOURCE_PCLK2 LL_RCC_USART16910_CLKSOURCE_PCLK2 -#define LL_RCC_USART16_CLKSOURCE_PLL2Q LL_RCC_USART16910_CLKSOURCE_PLL2Q -#define LL_RCC_USART16_CLKSOURCE_PLL3Q LL_RCC_USART16910_CLKSOURCE_PLL3Q -#define LL_RCC_USART16_CLKSOURCE_HSI LL_RCC_USART16910_CLKSOURCE_HSI -#define LL_RCC_USART16_CLKSOURCE_CSI LL_RCC_USART16910_CLKSOURCE_CSI -#define LL_RCC_USART16_CLKSOURCE_LSE LL_RCC_USART16910_CLKSOURCE_LSE -#endif /* RCC_D2CCIP2R_USART16SEL */ -#if defined(RCC_D2CCIP2R_USART28SEL) -#define LL_RCC_USART234578_CLKSOURCE_PCLK1 LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_USART28SEL, RCC_D2CCIP2R_USART28SEL_Pos, 0x00000000U) -#define LL_RCC_USART234578_CLKSOURCE_PLL2Q LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_USART28SEL, RCC_D2CCIP2R_USART28SEL_Pos, RCC_D2CCIP2R_USART28SEL_0) -#define LL_RCC_USART234578_CLKSOURCE_PLL3Q LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_USART28SEL, RCC_D2CCIP2R_USART28SEL_Pos, RCC_D2CCIP2R_USART28SEL_1) -#define LL_RCC_USART234578_CLKSOURCE_HSI LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_USART28SEL, RCC_D2CCIP2R_USART28SEL_Pos, RCC_D2CCIP2R_USART28SEL_0 | RCC_D2CCIP2R_USART28SEL_1) -#define LL_RCC_USART234578_CLKSOURCE_CSI LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_USART28SEL, RCC_D2CCIP2R_USART28SEL_Pos, RCC_D2CCIP2R_USART28SEL_2) -#define LL_RCC_USART234578_CLKSOURCE_LSE LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_USART28SEL, RCC_D2CCIP2R_USART28SEL_Pos, RCC_D2CCIP2R_USART28SEL_0 | RCC_D2CCIP2R_USART28SEL_2) -#else -#define LL_RCC_USART234578_CLKSOURCE_PCLK1 LL_CLKSOURCE(CDCCIP2, RCC_CDCCIP2R_USART234578SEL, RCC_CDCCIP2R_USART234578SEL_Pos, 0x00000000U) -#define LL_RCC_USART234578_CLKSOURCE_PLL2Q LL_CLKSOURCE(CDCCIP2, RCC_CDCCIP2R_USART234578SEL, RCC_CDCCIP2R_USART234578SEL_Pos, RCC_CDCCIP2R_USART234578SEL_0) -#define LL_RCC_USART234578_CLKSOURCE_PLL3Q LL_CLKSOURCE(CDCCIP2, RCC_CDCCIP2R_USART234578SEL, RCC_CDCCIP2R_USART234578SEL_Pos, RCC_CDCCIP2R_USART234578SEL_1) -#define LL_RCC_USART234578_CLKSOURCE_HSI LL_CLKSOURCE(CDCCIP2, RCC_CDCCIP2R_USART234578SEL, RCC_CDCCIP2R_USART234578SEL_Pos, RCC_CDCCIP2R_USART234578SEL_0 | RCC_CDCCIP2R_USART234578SEL_1) -#define LL_RCC_USART234578_CLKSOURCE_CSI LL_CLKSOURCE(CDCCIP2, RCC_CDCCIP2R_USART234578SEL, RCC_CDCCIP2R_USART234578SEL_Pos, RCC_CDCCIP2R_USART234578SEL_2) -#define LL_RCC_USART234578_CLKSOURCE_LSE LL_CLKSOURCE(CDCCIP2, RCC_CDCCIP2R_USART234578SEL, RCC_CDCCIP2R_USART234578SEL_Pos, RCC_CDCCIP2R_USART234578SEL_0 | RCC_CDCCIP2R_USART234578SEL_2) -#endif /* RCC_D2CCIP2R_USART28SEL */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_LPUARTx_CLKSOURCE Peripheral LPUART clock source selection - * @{ - */ -#if defined(RCC_D3CCIPR_LPUART1SEL) -#define LL_RCC_LPUART1_CLKSOURCE_PCLK4 (0x00000000U) -#define LL_RCC_LPUART1_CLKSOURCE_PLL2Q (RCC_D3CCIPR_LPUART1SEL_0) -#define LL_RCC_LPUART1_CLKSOURCE_PLL3Q (RCC_D3CCIPR_LPUART1SEL_1) -#define LL_RCC_LPUART1_CLKSOURCE_HSI (RCC_D3CCIPR_LPUART1SEL_0 | RCC_D3CCIPR_LPUART1SEL_1) -#define LL_RCC_LPUART1_CLKSOURCE_CSI (RCC_D3CCIPR_LPUART1SEL_2) -#define LL_RCC_LPUART1_CLKSOURCE_LSE (RCC_D3CCIPR_LPUART1SEL_0 | RCC_D3CCIPR_LPUART1SEL_2) -#else -#define LL_RCC_LPUART1_CLKSOURCE_PCLK4 (0x00000000U) -#define LL_RCC_LPUART1_CLKSOURCE_PLL2Q (RCC_SRDCCIPR_LPUART1SEL_0) -#define LL_RCC_LPUART1_CLKSOURCE_PLL3Q (RCC_SRDCCIPR_LPUART1SEL_1) -#define LL_RCC_LPUART1_CLKSOURCE_HSI (RCC_SRDCCIPR_LPUART1SEL_0 | RCC_SRDCCIPR_LPUART1SEL_1) -#define LL_RCC_LPUART1_CLKSOURCE_CSI (RCC_SRDCCIPR_LPUART1SEL_2) -#define LL_RCC_LPUART1_CLKSOURCE_LSE (RCC_SRDCCIPR_LPUART1SEL_0 | RCC_SRDCCIPR_LPUART1SEL_2) -#endif /* RCC_D3CCIPR_LPUART1SEL */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_I2Cx_CLKSOURCE Peripheral I2C clock source selection - * @{ - */ -#if defined (RCC_D2CCIP2R_I2C123SEL) -#define LL_RCC_I2C123_CLKSOURCE_PCLK1 LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_I2C123SEL, RCC_D2CCIP2R_I2C123SEL_Pos, 0x00000000U) -#define LL_RCC_I2C123_CLKSOURCE_PLL3R LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_I2C123SEL, RCC_D2CCIP2R_I2C123SEL_Pos, RCC_D2CCIP2R_I2C123SEL_0) -#define LL_RCC_I2C123_CLKSOURCE_HSI LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_I2C123SEL, RCC_D2CCIP2R_I2C123SEL_Pos, RCC_D2CCIP2R_I2C123SEL_1) -#define LL_RCC_I2C123_CLKSOURCE_CSI LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_I2C123SEL, RCC_D2CCIP2R_I2C123SEL_Pos, RCC_D2CCIP2R_I2C123SEL_0 | RCC_D2CCIP2R_I2C123SEL_1) -/* Aliases */ -#define LL_RCC_I2C1235_CLKSOURCE_PCLK1 LL_RCC_I2C123_CLKSOURCE_PCLK1 -#define LL_RCC_I2C1235_CLKSOURCE_PLL3R LL_RCC_I2C123_CLKSOURCE_PLL3R -#define LL_RCC_I2C1235_CLKSOURCE_HSI LL_RCC_I2C123_CLKSOURCE_HSI -#define LL_RCC_I2C1235_CLKSOURCE_CSI LL_RCC_I2C123_CLKSOURCE_CSI - -#elif defined (RCC_D2CCIP2R_I2C1235SEL) -#define LL_RCC_I2C1235_CLKSOURCE_PCLK1 LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_I2C1235SEL, RCC_D2CCIP2R_I2C1235SEL_Pos, 0x00000000U) -#define LL_RCC_I2C1235_CLKSOURCE_PLL3R LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_I2C1235SEL, RCC_D2CCIP2R_I2C1235SEL_Pos, RCC_D2CCIP2R_I2C1235SEL_0) -#define LL_RCC_I2C1235_CLKSOURCE_HSI LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_I2C1235SEL, RCC_D2CCIP2R_I2C1235SEL_Pos, RCC_D2CCIP2R_I2C1235SEL_1) -#define LL_RCC_I2C1235_CLKSOURCE_CSI LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_I2C1235SEL, RCC_D2CCIP2R_I2C1235SEL_Pos, RCC_D2CCIP2R_I2C1235SEL_0 | RCC_D2CCIP2R_I2C1235SEL_1) -/* Aliases */ -#define LL_RCC_I2C123_CLKSOURCE_PCLK1 LL_RCC_I2C1235_CLKSOURCE_PCLK1 -#define LL_RCC_I2C123_CLKSOURCE_PLL3R LL_RCC_I2C1235_CLKSOURCE_PLL3R -#define LL_RCC_I2C123_CLKSOURCE_HSI LL_RCC_I2C1235_CLKSOURCE_HSI -#define LL_RCC_I2C123_CLKSOURCE_CSI LL_RCC_I2C1235_CLKSOURCE_CSI - -#else -#define LL_RCC_I2C123_CLKSOURCE_PCLK1 LL_CLKSOURCE(CDCCIP2, RCC_CDCCIP2R_I2C123SEL, RCC_CDCCIP2R_I2C123SEL_Pos, 0x00000000U) -#define LL_RCC_I2C123_CLKSOURCE_PLL3R LL_CLKSOURCE(CDCCIP2, RCC_CDCCIP2R_I2C123SEL, RCC_CDCCIP2R_I2C123SEL_Pos, RCC_CDCCIP2R_I2C123SEL_0) -#define LL_RCC_I2C123_CLKSOURCE_HSI LL_CLKSOURCE(CDCCIP2, RCC_CDCCIP2R_I2C123SEL, RCC_CDCCIP2R_I2C123SEL_Pos, RCC_CDCCIP2R_I2C123SEL_1) -#define LL_RCC_I2C123_CLKSOURCE_CSI LL_CLKSOURCE(CDCCIP2, RCC_CDCCIP2R_I2C123SEL, RCC_CDCCIP2R_I2C123SEL_Pos, RCC_CDCCIP2R_I2C123SEL_0 | RCC_CDCCIP2R_I2C123SEL_1) -#endif /* RCC_D2CCIP2R_I2C123SEL */ -#if defined (RCC_D3CCIPR_I2C4SEL) -#define LL_RCC_I2C4_CLKSOURCE_PCLK4 LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_I2C4SEL, RCC_D3CCIPR_I2C4SEL_Pos, 0x00000000U) -#define LL_RCC_I2C4_CLKSOURCE_PLL3R LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_I2C4SEL, RCC_D3CCIPR_I2C4SEL_Pos, RCC_D3CCIPR_I2C4SEL_0) -#define LL_RCC_I2C4_CLKSOURCE_HSI LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_I2C4SEL, RCC_D3CCIPR_I2C4SEL_Pos, RCC_D3CCIPR_I2C4SEL_1) -#define LL_RCC_I2C4_CLKSOURCE_CSI LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_I2C4SEL, RCC_D3CCIPR_I2C4SEL_Pos, RCC_D3CCIPR_I2C4SEL_0 | RCC_D3CCIPR_I2C4SEL_1) -#else -#define LL_RCC_I2C4_CLKSOURCE_PCLK4 LL_CLKSOURCE(SRDCCIP, RCC_SRDCCIPR_I2C4SEL, RCC_SRDCCIPR_I2C4SEL_Pos, 0x00000000U) -#define LL_RCC_I2C4_CLKSOURCE_PLL3R LL_CLKSOURCE(SRDCCIP, RCC_SRDCCIPR_I2C4SEL, RCC_SRDCCIPR_I2C4SEL_Pos, RCC_SRDCCIPR_I2C4SEL_0) -#define LL_RCC_I2C4_CLKSOURCE_HSI LL_CLKSOURCE(SRDCCIP, RCC_SRDCCIPR_I2C4SEL, RCC_SRDCCIPR_I2C4SEL_Pos, RCC_SRDCCIPR_I2C4SEL_1) -#define LL_RCC_I2C4_CLKSOURCE_CSI LL_CLKSOURCE(SRDCCIP, RCC_SRDCCIPR_I2C4SEL, RCC_SRDCCIPR_I2C4SEL_Pos, RCC_SRDCCIPR_I2C4SEL_0 | RCC_SRDCCIPR_I2C4SEL_1) -#endif /* RCC_D3CCIPR_I2C4SEL */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_LPTIMx_CLKSOURCE Peripheral LPTIM clock source selection - * @{ - */ -#if defined(RCC_D2CCIP2R_LPTIM1SEL) -#define LL_RCC_LPTIM1_CLKSOURCE_PCLK1 LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_LPTIM1SEL, RCC_D2CCIP2R_LPTIM1SEL_Pos, 0x00000000U) -#define LL_RCC_LPTIM1_CLKSOURCE_PLL2P LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_LPTIM1SEL, RCC_D2CCIP2R_LPTIM1SEL_Pos, RCC_D2CCIP2R_LPTIM1SEL_0) -#define LL_RCC_LPTIM1_CLKSOURCE_PLL3R LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_LPTIM1SEL, RCC_D2CCIP2R_LPTIM1SEL_Pos, RCC_D2CCIP2R_LPTIM1SEL_1) -#define LL_RCC_LPTIM1_CLKSOURCE_LSE LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_LPTIM1SEL, RCC_D2CCIP2R_LPTIM1SEL_Pos, RCC_D2CCIP2R_LPTIM1SEL_0 | RCC_D2CCIP2R_LPTIM1SEL_1) -#define LL_RCC_LPTIM1_CLKSOURCE_LSI LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_LPTIM1SEL, RCC_D2CCIP2R_LPTIM1SEL_Pos, RCC_D2CCIP2R_LPTIM1SEL_2) -#define LL_RCC_LPTIM1_CLKSOURCE_CLKP LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_LPTIM1SEL, RCC_D2CCIP2R_LPTIM1SEL_Pos, RCC_D2CCIP2R_LPTIM1SEL_0 | RCC_D2CCIP2R_LPTIM1SEL_2) -#else -#define LL_RCC_LPTIM1_CLKSOURCE_PCLK1 LL_CLKSOURCE(CDCCIP2, RCC_CDCCIP2R_LPTIM1SEL, RCC_CDCCIP2R_LPTIM1SEL_Pos, 0x00000000U) -#define LL_RCC_LPTIM1_CLKSOURCE_PLL2P LL_CLKSOURCE(CDCCIP2, RCC_CDCCIP2R_LPTIM1SEL, RCC_CDCCIP2R_LPTIM1SEL_Pos, RCC_CDCCIP2R_LPTIM1SEL_0) -#define LL_RCC_LPTIM1_CLKSOURCE_PLL3R LL_CLKSOURCE(CDCCIP2, RCC_CDCCIP2R_LPTIM1SEL, RCC_CDCCIP2R_LPTIM1SEL_Pos, RCC_CDCCIP2R_LPTIM1SEL_1) -#define LL_RCC_LPTIM1_CLKSOURCE_LSE LL_CLKSOURCE(CDCCIP2, RCC_CDCCIP2R_LPTIM1SEL, RCC_CDCCIP2R_LPTIM1SEL_Pos, RCC_CDCCIP2R_LPTIM1SEL_0 | RCC_CDCCIP2R_LPTIM1SEL_1) -#define LL_RCC_LPTIM1_CLKSOURCE_LSI LL_CLKSOURCE(CDCCIP2, RCC_CDCCIP2R_LPTIM1SEL, RCC_CDCCIP2R_LPTIM1SEL_Pos, RCC_CDCCIP2R_LPTIM1SEL_2) -#define LL_RCC_LPTIM1_CLKSOURCE_CLKP LL_CLKSOURCE(CDCCIP2, RCC_CDCCIP2R_LPTIM1SEL, RCC_CDCCIP2R_LPTIM1SEL_Pos, RCC_CDCCIP2R_LPTIM1SEL_0 | RCC_CDCCIP2R_LPTIM1SEL_2) -#endif /* RCC_D2CCIP2R_LPTIM1SEL */ -#if defined(RCC_D3CCIPR_LPTIM2SEL) -#define LL_RCC_LPTIM2_CLKSOURCE_PCLK4 LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_LPTIM2SEL, RCC_D3CCIPR_LPTIM2SEL_Pos, 0x00000000U) -#define LL_RCC_LPTIM2_CLKSOURCE_PLL2P LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_LPTIM2SEL, RCC_D3CCIPR_LPTIM2SEL_Pos, RCC_D3CCIPR_LPTIM2SEL_0) -#define LL_RCC_LPTIM2_CLKSOURCE_PLL3R LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_LPTIM2SEL, RCC_D3CCIPR_LPTIM2SEL_Pos, RCC_D3CCIPR_LPTIM2SEL_1) -#define LL_RCC_LPTIM2_CLKSOURCE_LSE LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_LPTIM2SEL, RCC_D3CCIPR_LPTIM2SEL_Pos, RCC_D3CCIPR_LPTIM2SEL_0 | RCC_D3CCIPR_LPTIM2SEL_1) -#define LL_RCC_LPTIM2_CLKSOURCE_LSI LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_LPTIM2SEL, RCC_D3CCIPR_LPTIM2SEL_Pos, RCC_D3CCIPR_LPTIM2SEL_2) -#define LL_RCC_LPTIM2_CLKSOURCE_CLKP LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_LPTIM2SEL, RCC_D3CCIPR_LPTIM2SEL_Pos, RCC_D3CCIPR_LPTIM2SEL_0 | RCC_D3CCIPR_LPTIM2SEL_2) -#else -#define LL_RCC_LPTIM2_CLKSOURCE_PCLK4 LL_CLKSOURCE(SRDCCIP, RCC_SRDCCIPR_LPTIM2SEL, RCC_SRDCCIPR_LPTIM2SEL_Pos, 0x00000000U) -#define LL_RCC_LPTIM2_CLKSOURCE_PLL2P LL_CLKSOURCE(SRDCCIP, RCC_SRDCCIPR_LPTIM2SEL, RCC_SRDCCIPR_LPTIM2SEL_Pos, RCC_SRDCCIPR_LPTIM2SEL_0) -#define LL_RCC_LPTIM2_CLKSOURCE_PLL3R LL_CLKSOURCE(SRDCCIP, RCC_SRDCCIPR_LPTIM2SEL, RCC_SRDCCIPR_LPTIM2SEL_Pos, RCC_SRDCCIPR_LPTIM2SEL_1) -#define LL_RCC_LPTIM2_CLKSOURCE_LSE LL_CLKSOURCE(SRDCCIP, RCC_SRDCCIPR_LPTIM2SEL, RCC_SRDCCIPR_LPTIM2SEL_Pos, RCC_SRDCCIPR_LPTIM2SEL_0 | RCC_SRDCCIPR_LPTIM2SEL_1) -#define LL_RCC_LPTIM2_CLKSOURCE_LSI LL_CLKSOURCE(SRDCCIP, RCC_SRDCCIPR_LPTIM2SEL, RCC_SRDCCIPR_LPTIM2SEL_Pos, RCC_SRDCCIPR_LPTIM2SEL_2) -#define LL_RCC_LPTIM2_CLKSOURCE_CLKP LL_CLKSOURCE(SRDCCIP, RCC_SRDCCIPR_LPTIM2SEL, RCC_SRDCCIPR_LPTIM2SEL_Pos, RCC_SRDCCIPR_LPTIM2SEL_0 | RCC_SRDCCIPR_LPTIM2SEL_2) -#endif /* RCC_D3CCIPR_LPTIM2SEL */ -#if defined(RCC_D3CCIPR_LPTIM345SEL) -#define LL_RCC_LPTIM345_CLKSOURCE_PCLK4 LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_LPTIM345SEL, RCC_D3CCIPR_LPTIM345SEL_Pos, 0x00000000U) -#define LL_RCC_LPTIM345_CLKSOURCE_PLL2P LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_LPTIM345SEL, RCC_D3CCIPR_LPTIM345SEL_Pos, RCC_D3CCIPR_LPTIM345SEL_0) -#define LL_RCC_LPTIM345_CLKSOURCE_PLL3R LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_LPTIM345SEL, RCC_D3CCIPR_LPTIM345SEL_Pos, RCC_D3CCIPR_LPTIM345SEL_1) -#define LL_RCC_LPTIM345_CLKSOURCE_LSE LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_LPTIM345SEL, RCC_D3CCIPR_LPTIM345SEL_Pos, RCC_D3CCIPR_LPTIM345SEL_0 | RCC_D3CCIPR_LPTIM345SEL_1) -#define LL_RCC_LPTIM345_CLKSOURCE_LSI LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_LPTIM345SEL, RCC_D3CCIPR_LPTIM345SEL_Pos, RCC_D3CCIPR_LPTIM345SEL_2) -#define LL_RCC_LPTIM345_CLKSOURCE_CLKP LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_LPTIM345SEL, RCC_D3CCIPR_LPTIM345SEL_Pos, RCC_D3CCIPR_LPTIM345SEL_0 | RCC_D3CCIPR_LPTIM345SEL_2) -#else -#define LL_RCC_LPTIM345_CLKSOURCE_PCLK4 LL_CLKSOURCE(SRDCCIP, RCC_SRDCCIPR_LPTIM3SEL, RCC_SRDCCIPR_LPTIM3SEL_Pos, 0x00000000U) -#define LL_RCC_LPTIM345_CLKSOURCE_PLL2P LL_CLKSOURCE(SRDCCIP, RCC_SRDCCIPR_LPTIM3SEL, RCC_SRDCCIPR_LPTIM3SEL_Pos, RCC_SRDCCIPR_LPTIM3SEL_0) -#define LL_RCC_LPTIM345_CLKSOURCE_PLL3R LL_CLKSOURCE(SRDCCIP, RCC_SRDCCIPR_LPTIM3SEL, RCC_SRDCCIPR_LPTIM3SEL_Pos, RCC_SRDCCIPR_LPTIM3SEL_1) -#define LL_RCC_LPTIM345_CLKSOURCE_LSE LL_CLKSOURCE(SRDCCIP, RCC_SRDCCIPR_LPTIM3SEL, RCC_SRDCCIPR_LPTIM3SEL_Pos, RCC_SRDCCIPR_LPTIM3SEL_0 | RCC_SRDCCIPR_LPTIM3SEL_1) -#define LL_RCC_LPTIM345_CLKSOURCE_LSI LL_CLKSOURCE(SRDCCIP, RCC_SRDCCIPR_LPTIM3SEL, RCC_SRDCCIPR_LPTIM3SEL_Pos, RCC_SRDCCIPR_LPTIM3SEL_2) -#define LL_RCC_LPTIM345_CLKSOURCE_CLKP LL_CLKSOURCE(SRDCCIP, RCC_SRDCCIPR_LPTIM3SEL, RCC_SRDCCIPR_LPTIM3SEL_Pos, RCC_SRDCCIPR_LPTIM3SEL_0 | RCC_SRDCCIPR_LPTIM3SEL_2) -/* aliases*/ -#define LL_RCC_LPTIM3_CLKSOURCE_PCLK4 LL_RCC_LPTIM345_CLKSOURCE_PCLK4 -#define LL_RCC_LPTIM3_CLKSOURCE_PLL2P LL_RCC_LPTIM345_CLKSOURCE_PLL2P -#define LL_RCC_LPTIM3_CLKSOURCE_PLL3R LL_RCC_LPTIM345_CLKSOURCE_PLL3R -#define LL_RCC_LPTIM3_CLKSOURCE_LSE LL_RCC_LPTIM345_CLKSOURCE_LSE -#define LL_RCC_LPTIM3_CLKSOURCE_LSI LL_RCC_LPTIM345_CLKSOURCE_LSI -#define LL_RCC_LPTIM3_CLKSOURCE_CLKP LL_RCC_LPTIM345_CLKSOURCE_CLKP -#endif /* RCC_D3CCIPR_LPTIM345SEL */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_SAIx_CLKSOURCE Peripheral SAI clock source selection - * @{ - */ -#if defined(RCC_D2CCIP1R_SAI1SEL) -#define LL_RCC_SAI1_CLKSOURCE_PLL1Q LL_CLKSOURCE(D2CCIP1, RCC_D2CCIP1R_SAI1SEL, RCC_D2CCIP1R_SAI1SEL_Pos, 0x00000000U) -#define LL_RCC_SAI1_CLKSOURCE_PLL2P LL_CLKSOURCE(D2CCIP1, RCC_D2CCIP1R_SAI1SEL, RCC_D2CCIP1R_SAI1SEL_Pos, RCC_D2CCIP1R_SAI1SEL_0) -#define LL_RCC_SAI1_CLKSOURCE_PLL3P LL_CLKSOURCE(D2CCIP1, RCC_D2CCIP1R_SAI1SEL, RCC_D2CCIP1R_SAI1SEL_Pos, RCC_D2CCIP1R_SAI1SEL_1) -#define LL_RCC_SAI1_CLKSOURCE_I2S_CKIN LL_CLKSOURCE(D2CCIP1, RCC_D2CCIP1R_SAI1SEL, RCC_D2CCIP1R_SAI1SEL_Pos, RCC_D2CCIP1R_SAI1SEL_0 | RCC_D2CCIP1R_SAI1SEL_1) -#define LL_RCC_SAI1_CLKSOURCE_CLKP LL_CLKSOURCE(D2CCIP1, RCC_D2CCIP1R_SAI1SEL, RCC_D2CCIP1R_SAI1SEL_Pos, RCC_D2CCIP1R_SAI1SEL_2) -#else -#define LL_RCC_SAI1_CLKSOURCE_PLL1Q LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SAI1SEL, RCC_CDCCIP1R_SAI1SEL_Pos, 0x00000000U) -#define LL_RCC_SAI1_CLKSOURCE_PLL2P LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SAI1SEL, RCC_CDCCIP1R_SAI1SEL_Pos, RCC_CDCCIP1R_SAI1SEL_0) -#define LL_RCC_SAI1_CLKSOURCE_PLL3P LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SAI1SEL, RCC_CDCCIP1R_SAI1SEL_Pos, RCC_CDCCIP1R_SAI1SEL_1) -#define LL_RCC_SAI1_CLKSOURCE_I2S_CKIN LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SAI1SEL, RCC_CDCCIP1R_SAI1SEL_Pos, RCC_CDCCIP1R_SAI1SEL_0 | RCC_CDCCIP1R_SAI1SEL_1) -#define LL_RCC_SAI1_CLKSOURCE_CLKP LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SAI1SEL, RCC_CDCCIP1R_SAI1SEL_Pos, RCC_CDCCIP1R_SAI1SEL_2) -#endif -#if defined(SAI3) -#define LL_RCC_SAI23_CLKSOURCE_PLL1Q LL_CLKSOURCE(D2CCIP1, RCC_D2CCIP1R_SAI23SEL, RCC_D2CCIP1R_SAI23SEL_Pos, 0x00000000U) -#define LL_RCC_SAI23_CLKSOURCE_PLL2P LL_CLKSOURCE(D2CCIP1, RCC_D2CCIP1R_SAI23SEL, RCC_D2CCIP1R_SAI23SEL_Pos, RCC_D2CCIP1R_SAI23SEL_0) -#define LL_RCC_SAI23_CLKSOURCE_PLL3P LL_CLKSOURCE(D2CCIP1, RCC_D2CCIP1R_SAI23SEL, RCC_D2CCIP1R_SAI23SEL_Pos, RCC_D2CCIP1R_SAI23SEL_1) -#define LL_RCC_SAI23_CLKSOURCE_I2S_CKIN LL_CLKSOURCE(D2CCIP1, RCC_D2CCIP1R_SAI23SEL, RCC_D2CCIP1R_SAI23SEL_Pos, RCC_D2CCIP1R_SAI23SEL_0 | RCC_D2CCIP1R_SAI23SEL_1) -#define LL_RCC_SAI23_CLKSOURCE_CLKP LL_CLKSOURCE(D2CCIP1, RCC_D2CCIP1R_SAI23SEL, RCC_D2CCIP1R_SAI23SEL_Pos, RCC_D2CCIP1R_SAI23SEL_2) -#endif /* SAI3 */ -#if defined(RCC_CDCCIP1R_SAI2ASEL) -#define LL_RCC_SAI2A_CLKSOURCE_PLL1Q LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SAI2ASEL, RCC_CDCCIP1R_SAI2ASEL_Pos, 0x00000000U) -#define LL_RCC_SAI2A_CLKSOURCE_PLL2P LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SAI2ASEL, RCC_CDCCIP1R_SAI2ASEL_Pos, RCC_CDCCIP1R_SAI2ASEL_0) -#define LL_RCC_SAI2A_CLKSOURCE_PLL3P LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SAI2ASEL, RCC_CDCCIP1R_SAI2ASEL_Pos, RCC_CDCCIP1R_SAI2ASEL_1) -#define LL_RCC_SAI2A_CLKSOURCE_I2S_CKIN LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SAI2ASEL, RCC_CDCCIP1R_SAI2ASEL_Pos, RCC_CDCCIP1R_SAI2ASEL_0 | RCC_CDCCIP1R_SAI2ASEL_1) -#define LL_RCC_SAI2A_CLKSOURCE_CLKP LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SAI2ASEL, RCC_CDCCIP1R_SAI2ASEL_Pos, RCC_CDCCIP1R_SAI2ASEL_2) -#define LL_RCC_SAI2A_CLKSOURCE_SPDIF LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SAI2ASEL, RCC_CDCCIP1R_SAI2ASEL_Pos, RCC_CDCCIP1R_SAI2ASEL_0 | RCC_CDCCIP1R_SAI2ASEL_2) -#endif /* RCC_CDCCIP1R_SAI2ASEL */ -#if defined(RCC_CDCCIP1R_SAI2BSEL) -#define LL_RCC_SAI2B_CLKSOURCE_PLL1Q LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SAI2BSEL, RCC_CDCCIP1R_SAI2BSEL_Pos, 0x00000000U) -#define LL_RCC_SAI2B_CLKSOURCE_PLL2P LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SAI2BSEL, RCC_CDCCIP1R_SAI2BSEL_Pos, RCC_CDCCIP1R_SAI2BSEL_0) -#define LL_RCC_SAI2B_CLKSOURCE_PLL3P LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SAI2BSEL, RCC_CDCCIP1R_SAI2BSEL_Pos, RCC_CDCCIP1R_SAI2BSEL_1) -#define LL_RCC_SAI2B_CLKSOURCE_I2S_CKIN LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SAI2BSEL, RCC_CDCCIP1R_SAI2BSEL_Pos, RCC_CDCCIP1R_SAI2BSEL_0 | RCC_CDCCIP1R_SAI2BSEL_1) -#define LL_RCC_SAI2B_CLKSOURCE_CLKP LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SAI2BSEL, RCC_CDCCIP1R_SAI2BSEL_Pos, RCC_CDCCIP1R_SAI2BSEL_2) -#define LL_RCC_SAI2B_CLKSOURCE_SPDIF LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SAI2BSEL, RCC_CDCCIP1R_SAI2BSEL_Pos, RCC_CDCCIP1R_SAI2BSEL_0 | RCC_CDCCIP1R_SAI2BSEL_2) -#endif /* RCC_CDCCIP1R_SAI2BSEL */ -#if defined(SAI4_Block_A) -#define LL_RCC_SAI4A_CLKSOURCE_PLL1Q LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_SAI4ASEL, RCC_D3CCIPR_SAI4ASEL_Pos, 0x00000000U) -#define LL_RCC_SAI4A_CLKSOURCE_PLL2P LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_SAI4ASEL, RCC_D3CCIPR_SAI4ASEL_Pos, RCC_D3CCIPR_SAI4ASEL_0) -#define LL_RCC_SAI4A_CLKSOURCE_PLL3P LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_SAI4ASEL, RCC_D3CCIPR_SAI4ASEL_Pos, RCC_D3CCIPR_SAI4ASEL_1) -#define LL_RCC_SAI4A_CLKSOURCE_I2S_CKIN LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_SAI4ASEL, RCC_D3CCIPR_SAI4ASEL_Pos, RCC_D3CCIPR_SAI4ASEL_0 | RCC_D3CCIPR_SAI4ASEL_1) -#define LL_RCC_SAI4A_CLKSOURCE_CLKP LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_SAI4ASEL, RCC_D3CCIPR_SAI4ASEL_Pos, RCC_D3CCIPR_SAI4ASEL_2) -#if defined(RCC_VER_3_0) -#define LL_RCC_SAI4A_CLKSOURCE_SPDIF LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_SAI4ASEL, RCC_D3CCIPR_SAI4ASEL_Pos, RCC_D3CCIPR_SAI4ASEL_2 | RCC_D3CCIPR_SAI4ASEL_0) -#endif /* RCC_VER_3_0 */ -#endif /* SAI4_Block_A */ -#if defined(SAI4_Block_B) -#define LL_RCC_SAI4B_CLKSOURCE_PLL1Q LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_SAI4BSEL, RCC_D3CCIPR_SAI4BSEL_Pos, 0x00000000U) -#define LL_RCC_SAI4B_CLKSOURCE_PLL2P LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_SAI4BSEL, RCC_D3CCIPR_SAI4BSEL_Pos, RCC_D3CCIPR_SAI4BSEL_0) -#define LL_RCC_SAI4B_CLKSOURCE_PLL3P LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_SAI4BSEL, RCC_D3CCIPR_SAI4BSEL_Pos, RCC_D3CCIPR_SAI4BSEL_1) -#define LL_RCC_SAI4B_CLKSOURCE_I2S_CKIN LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_SAI4BSEL, RCC_D3CCIPR_SAI4BSEL_Pos, RCC_D3CCIPR_SAI4BSEL_0 | RCC_D3CCIPR_SAI4BSEL_1) -#define LL_RCC_SAI4B_CLKSOURCE_CLKP LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_SAI4BSEL, RCC_D3CCIPR_SAI4BSEL_Pos, RCC_D3CCIPR_SAI4BSEL_2) -#if defined(RCC_VER_3_0) -#define LL_RCC_SAI4B_CLKSOURCE_SPDIF LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_SAI4BSEL, RCC_D3CCIPR_SAI4BSEL_Pos, RCC_D3CCIPR_SAI4BSEL_2 | RCC_D3CCIPR_SAI4BSEL_0) -#endif /* RCC_VER_3_0 */ -#endif /* SAI4_Block_B */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_SDMMC_CLKSOURCE Peripheral SDMMC clock source selection - * @{ - */ -#if defined(RCC_D1CCIPR_SDMMCSEL) -#define LL_RCC_SDMMC_CLKSOURCE_PLL1Q (0x00000000U) -#define LL_RCC_SDMMC_CLKSOURCE_PLL2R (RCC_D1CCIPR_SDMMCSEL) -#else -#define LL_RCC_SDMMC_CLKSOURCE_PLL1Q (0x00000000U) -#define LL_RCC_SDMMC_CLKSOURCE_PLL2R (RCC_CDCCIPR_SDMMCSEL) -#endif /* RCC_D1CCIPR_SDMMCSEL */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_RNG_CLKSOURCE Peripheral RNG clock source selection - * @{ - */ -#if defined(RCC_D2CCIP2R_RNGSEL) -#define LL_RCC_RNG_CLKSOURCE_HSI48 (0x00000000U) -#define LL_RCC_RNG_CLKSOURCE_PLL1Q (RCC_D2CCIP2R_RNGSEL_0) -#define LL_RCC_RNG_CLKSOURCE_LSE (RCC_D2CCIP2R_RNGSEL_1) -#define LL_RCC_RNG_CLKSOURCE_LSI (RCC_D2CCIP2R_RNGSEL_1 | RCC_D2CCIP2R_RNGSEL_0) -#else -#define LL_RCC_RNG_CLKSOURCE_HSI48 (0x00000000U) -#define LL_RCC_RNG_CLKSOURCE_PLL1Q (RCC_CDCCIP2R_RNGSEL_0) -#define LL_RCC_RNG_CLKSOURCE_LSE (RCC_CDCCIP2R_RNGSEL_1) -#define LL_RCC_RNG_CLKSOURCE_LSI (RCC_CDCCIP2R_RNGSEL_1 | RCC_CDCCIP2R_RNGSEL_0) -#endif /* RCC_D2CCIP2R_RNGSEL */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_USB_CLKSOURCE Peripheral USB clock source selection - * @{ - */ -#if defined(RCC_D2CCIP2R_USBSEL) -#define LL_RCC_USB_CLKSOURCE_DISABLE (0x00000000U) -#define LL_RCC_USB_CLKSOURCE_PLL1Q (RCC_D2CCIP2R_USBSEL_0) -#define LL_RCC_USB_CLKSOURCE_PLL3Q (RCC_D2CCIP2R_USBSEL_1) -#define LL_RCC_USB_CLKSOURCE_HSI48 (RCC_D2CCIP2R_USBSEL_1 | RCC_D2CCIP2R_USBSEL_0) -#else -#define LL_RCC_USB_CLKSOURCE_DISABLE (0x00000000U) -#define LL_RCC_USB_CLKSOURCE_PLL1Q (RCC_CDCCIP2R_USBSEL_0) -#define LL_RCC_USB_CLKSOURCE_PLL3Q (RCC_CDCCIP2R_USBSEL_1) -#define LL_RCC_USB_CLKSOURCE_HSI48 (RCC_CDCCIP2R_USBSEL_1 | RCC_CDCCIP2R_USBSEL_0) -#endif /* RCC_D2CCIP2R_USBSEL */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_CEC_CLKSOURCE Peripheral CEC clock source selection - * @{ - */ -#if defined(RCC_D2CCIP2R_CECSEL) -#define LL_RCC_CEC_CLKSOURCE_LSE (0x00000000U) -#define LL_RCC_CEC_CLKSOURCE_LSI (RCC_D2CCIP2R_CECSEL_0) -#define LL_RCC_CEC_CLKSOURCE_CSI_DIV122 (RCC_D2CCIP2R_CECSEL_1) -#else -#define LL_RCC_CEC_CLKSOURCE_LSE (0x00000000U) -#define LL_RCC_CEC_CLKSOURCE_LSI (RCC_CDCCIP2R_CECSEL_0) -#define LL_RCC_CEC_CLKSOURCE_CSI_DIV122 (RCC_CDCCIP2R_CECSEL_1) -#endif -/** - * @} - */ - -#if defined(DSI) -/** @defgroup RCC_LL_EC_DSI_CLKSOURCE Peripheral DSI clock source selection - * @{ - */ -#define LL_RCC_DSI_CLKSOURCE_PHY (0x00000000U) -#define LL_RCC_DSI_CLKSOURCE_PLL2Q (RCC_D1CCIPR_DSISEL) -/** - * @} - */ -#endif /* DSI */ - -/** @defgroup RCC_LL_EC_DFSDM_CLKSOURCE Peripheral DFSDM clock source selection - * @{ - */ -#if defined(RCC_D2CCIP1R_DFSDM1SEL) -#define LL_RCC_DFSDM1_CLKSOURCE_PCLK2 (0x00000000U) -#define LL_RCC_DFSDM1_CLKSOURCE_SYSCLK (RCC_D2CCIP1R_DFSDM1SEL) -#else -#define LL_RCC_DFSDM1_CLKSOURCE_PCLK2 (0x00000000U) -#define LL_RCC_DFSDM1_CLKSOURCE_SYSCLK (RCC_CDCCIP1R_DFSDM1SEL) -#endif /* RCC_D2CCIP1R_DFSDM1SEL */ -/** - * @} - */ - -#if defined(DFSDM2_BASE) -/** @defgroup RCC_LL_EC_DFSDM2_CLKSOURCE Peripheral DFSDM2 clock source selection - * @{ - */ -#define LL_RCC_DFSDM2_CLKSOURCE_PCLK4 (0x00000000U) -#define LL_RCC_DFSDM2_CLKSOURCE_SYSCLK (RCC_SRDCCIPR_DFSDM2SEL) -/** - * @} - */ -#endif /* DFSDM2_BASE */ - -/** @defgroup RCC_LL_EC_FMC_CLKSOURCE Peripheral FMC clock source selection - * @{ - */ -#if defined(RCC_D1CCIPR_FMCSEL) -#define LL_RCC_FMC_CLKSOURCE_HCLK (0x00000000U) -#define LL_RCC_FMC_CLKSOURCE_PLL1Q (RCC_D1CCIPR_FMCSEL_0) -#define LL_RCC_FMC_CLKSOURCE_PLL2R (RCC_D1CCIPR_FMCSEL_1) -#define LL_RCC_FMC_CLKSOURCE_CLKP (RCC_D1CCIPR_FMCSEL_0 | RCC_D1CCIPR_FMCSEL_1) -#else -#define LL_RCC_FMC_CLKSOURCE_HCLK (0x00000000U) -#define LL_RCC_FMC_CLKSOURCE_PLL1Q (RCC_CDCCIPR_FMCSEL_0) -#define LL_RCC_FMC_CLKSOURCE_PLL2R (RCC_CDCCIPR_FMCSEL_1) -#define LL_RCC_FMC_CLKSOURCE_CLKP (RCC_CDCCIPR_FMCSEL_0 | RCC_CDCCIPR_FMCSEL_1) -#endif /* RCC_D1CCIPR_FMCSEL */ -/** - * @} - */ - -#if defined(QUADSPI) -/** @defgroup RCC_LL_EC_QSPI_CLKSOURCE Peripheral QSPI clock source selection - * @{ - */ -#define LL_RCC_QSPI_CLKSOURCE_HCLK (0x00000000U) -#define LL_RCC_QSPI_CLKSOURCE_PLL1Q (RCC_D1CCIPR_QSPISEL_0) -#define LL_RCC_QSPI_CLKSOURCE_PLL2R (RCC_D1CCIPR_QSPISEL_1) -#define LL_RCC_QSPI_CLKSOURCE_CLKP (RCC_D1CCIPR_QSPISEL_0 | RCC_D1CCIPR_QSPISEL_1) -/** - * @} - */ -#endif /* QUADSPI */ - - -#if defined(OCTOSPI1) || defined(OCTOSPI2) -/** @defgroup RCC_LL_EC_OSPI_CLKSOURCE Peripheral OSPI clock source selection - * @{ - */ -#if defined(RCC_D1CCIPR_OCTOSPISEL) -#define LL_RCC_OSPI_CLKSOURCE_HCLK (0x00000000U) -#define LL_RCC_OSPI_CLKSOURCE_PLL1Q (RCC_D1CCIPR_OCTOSPISEL_0) -#define LL_RCC_OSPI_CLKSOURCE_PLL2R (RCC_D1CCIPR_OCTOSPISEL_1) -#define LL_RCC_OSPI_CLKSOURCE_CLKP (RCC_D1CCIPR_OCTOSPISEL_0 | RCC_D1CCIPR_OCTOSPISEL_1) -#else -#define LL_RCC_OSPI_CLKSOURCE_HCLK (0x00000000U) -#define LL_RCC_OSPI_CLKSOURCE_PLL1Q (RCC_CDCCIPR_OCTOSPISEL_0) -#define LL_RCC_OSPI_CLKSOURCE_PLL2R (RCC_CDCCIPR_OCTOSPISEL_1) -#define LL_RCC_OSPI_CLKSOURCE_CLKP (RCC_CDCCIPR_OCTOSPISEL_0 | RCC_CDCCIPR_OCTOSPISEL_1) -#endif /* RCC_D1CCIPR_OCTOSPISEL */ -/** - * @} - */ -#endif /* defined(OCTOSPI1) || defined(OCTOSPI2) */ - - -/** @defgroup RCC_LL_EC_CLKP_CLKSOURCE Peripheral CLKP clock source selection - * @{ - */ -#if defined(RCC_D1CCIPR_CKPERSEL) -#define LL_RCC_CLKP_CLKSOURCE_HSI (0x00000000U) -#define LL_RCC_CLKP_CLKSOURCE_CSI (RCC_D1CCIPR_CKPERSEL_0) -#define LL_RCC_CLKP_CLKSOURCE_HSE (RCC_D1CCIPR_CKPERSEL_1) -#else -#define LL_RCC_CLKP_CLKSOURCE_HSI (0x00000000U) -#define LL_RCC_CLKP_CLKSOURCE_CSI (RCC_CDCCIPR_CKPERSEL_0) -#define LL_RCC_CLKP_CLKSOURCE_HSE (RCC_CDCCIPR_CKPERSEL_1) -#endif /* RCC_D1CCIPR_CKPERSEL */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_SPIx_CLKSOURCE Peripheral SPI clock source selection - * @{ - */ -#if defined(RCC_D2CCIP1R_SPI123SEL) -#define LL_RCC_SPI123_CLKSOURCE_PLL1Q LL_CLKSOURCE(D2CCIP1, RCC_D2CCIP1R_SPI123SEL, RCC_D2CCIP1R_SPI123SEL_Pos, 0x00000000U) -#define LL_RCC_SPI123_CLKSOURCE_PLL2P LL_CLKSOURCE(D2CCIP1, RCC_D2CCIP1R_SPI123SEL, RCC_D2CCIP1R_SPI123SEL_Pos, RCC_D2CCIP1R_SPI123SEL_0) -#define LL_RCC_SPI123_CLKSOURCE_PLL3P LL_CLKSOURCE(D2CCIP1, RCC_D2CCIP1R_SPI123SEL, RCC_D2CCIP1R_SPI123SEL_Pos, RCC_D2CCIP1R_SPI123SEL_1) -#define LL_RCC_SPI123_CLKSOURCE_I2S_CKIN LL_CLKSOURCE(D2CCIP1, RCC_D2CCIP1R_SPI123SEL, RCC_D2CCIP1R_SPI123SEL_Pos, RCC_D2CCIP1R_SPI123SEL_0 | RCC_D2CCIP1R_SPI123SEL_1) -#define LL_RCC_SPI123_CLKSOURCE_CLKP LL_CLKSOURCE(D2CCIP1, RCC_D2CCIP1R_SPI123SEL, RCC_D2CCIP1R_SPI123SEL_Pos, RCC_D2CCIP1R_SPI123SEL_2) -#else -#define LL_RCC_SPI123_CLKSOURCE_PLL1Q LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SPI123SEL, RCC_CDCCIP1R_SPI123SEL_Pos, 0x00000000U) -#define LL_RCC_SPI123_CLKSOURCE_PLL2P LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SPI123SEL, RCC_CDCCIP1R_SPI123SEL_Pos, RCC_CDCCIP1R_SPI123SEL_0) -#define LL_RCC_SPI123_CLKSOURCE_PLL3P LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SPI123SEL, RCC_CDCCIP1R_SPI123SEL_Pos, RCC_CDCCIP1R_SPI123SEL_1) -#define LL_RCC_SPI123_CLKSOURCE_I2S_CKIN LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SPI123SEL, RCC_CDCCIP1R_SPI123SEL_Pos, RCC_CDCCIP1R_SPI123SEL_0 | RCC_CDCCIP1R_SPI123SEL_1) -#define LL_RCC_SPI123_CLKSOURCE_CLKP LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SPI123SEL, RCC_CDCCIP1R_SPI123SEL_Pos, RCC_CDCCIP1R_SPI123SEL_2) -#endif /* RCC_D2CCIP1R_SPI123SEL */ -#if defined(RCC_D2CCIP1R_SPI45SEL) -#define LL_RCC_SPI45_CLKSOURCE_PCLK2 LL_CLKSOURCE(D2CCIP1, RCC_D2CCIP1R_SPI45SEL, RCC_D2CCIP1R_SPI45SEL_Pos, 0x00000000U) -#define LL_RCC_SPI45_CLKSOURCE_PLL2Q LL_CLKSOURCE(D2CCIP1, RCC_D2CCIP1R_SPI45SEL, RCC_D2CCIP1R_SPI45SEL_Pos, RCC_D2CCIP1R_SPI45SEL_0) -#define LL_RCC_SPI45_CLKSOURCE_PLL3Q LL_CLKSOURCE(D2CCIP1, RCC_D2CCIP1R_SPI45SEL, RCC_D2CCIP1R_SPI45SEL_Pos, RCC_D2CCIP1R_SPI45SEL_1) -#define LL_RCC_SPI45_CLKSOURCE_HSI LL_CLKSOURCE(D2CCIP1, RCC_D2CCIP1R_SPI45SEL, RCC_D2CCIP1R_SPI45SEL_Pos, RCC_D2CCIP1R_SPI45SEL_0 | RCC_D2CCIP1R_SPI45SEL_1) -#define LL_RCC_SPI45_CLKSOURCE_CSI LL_CLKSOURCE(D2CCIP1, RCC_D2CCIP1R_SPI45SEL, RCC_D2CCIP1R_SPI45SEL_Pos, RCC_D2CCIP1R_SPI45SEL_2) -#define LL_RCC_SPI45_CLKSOURCE_HSE LL_CLKSOURCE(D2CCIP1, RCC_D2CCIP1R_SPI45SEL, RCC_D2CCIP1R_SPI45SEL_Pos, RCC_D2CCIP1R_SPI45SEL_0 | RCC_D2CCIP1R_SPI45SEL_2) -#else -#define LL_RCC_SPI45_CLKSOURCE_PCLK2 LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SPI45SEL, RCC_CDCCIP1R_SPI45SEL_Pos, 0x00000000U) -#define LL_RCC_SPI45_CLKSOURCE_PLL2Q LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SPI45SEL, RCC_CDCCIP1R_SPI45SEL_Pos, RCC_CDCCIP1R_SPI45SEL_0) -#define LL_RCC_SPI45_CLKSOURCE_PLL3Q LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SPI45SEL, RCC_CDCCIP1R_SPI45SEL_Pos, RCC_CDCCIP1R_SPI45SEL_1) -#define LL_RCC_SPI45_CLKSOURCE_HSI LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SPI45SEL, RCC_CDCCIP1R_SPI45SEL_Pos, RCC_CDCCIP1R_SPI45SEL_0 | RCC_CDCCIP1R_SPI45SEL_1) -#define LL_RCC_SPI45_CLKSOURCE_CSI LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SPI45SEL, RCC_CDCCIP1R_SPI45SEL_Pos, RCC_CDCCIP1R_SPI45SEL_2) -#define LL_RCC_SPI45_CLKSOURCE_HSE LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SPI45SEL, RCC_CDCCIP1R_SPI45SEL_Pos, RCC_CDCCIP1R_SPI45SEL_0 | RCC_CDCCIP1R_SPI45SEL_2) -#endif /* (RCC_D2CCIP1R_SPI45SEL */ -#if defined(RCC_D3CCIPR_SPI6SEL) -#define LL_RCC_SPI6_CLKSOURCE_PCLK4 LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_SPI6SEL, RCC_D3CCIPR_SPI6SEL_Pos, 0x00000000U) -#define LL_RCC_SPI6_CLKSOURCE_PLL2Q LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_SPI6SEL, RCC_D3CCIPR_SPI6SEL_Pos, RCC_D3CCIPR_SPI6SEL_0) -#define LL_RCC_SPI6_CLKSOURCE_PLL3Q LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_SPI6SEL, RCC_D3CCIPR_SPI6SEL_Pos, RCC_D3CCIPR_SPI6SEL_1) -#define LL_RCC_SPI6_CLKSOURCE_HSI LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_SPI6SEL, RCC_D3CCIPR_SPI6SEL_Pos, RCC_D3CCIPR_SPI6SEL_0 | RCC_D3CCIPR_SPI6SEL_1) -#define LL_RCC_SPI6_CLKSOURCE_CSI LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_SPI6SEL, RCC_D3CCIPR_SPI6SEL_Pos, RCC_D3CCIPR_SPI6SEL_2) -#define LL_RCC_SPI6_CLKSOURCE_HSE LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_SPI6SEL, RCC_D3CCIPR_SPI6SEL_Pos, RCC_D3CCIPR_SPI6SEL_0 | RCC_D3CCIPR_SPI6SEL_2) -#else -#define LL_RCC_SPI6_CLKSOURCE_PCLK4 LL_CLKSOURCE(SRDCCIP, RCC_SRDCCIPR_SPI6SEL, RCC_SRDCCIPR_SPI6SEL_Pos, 0x00000000U) -#define LL_RCC_SPI6_CLKSOURCE_PLL2Q LL_CLKSOURCE(SRDCCIP, RCC_SRDCCIPR_SPI6SEL, RCC_SRDCCIPR_SPI6SEL_Pos, RCC_SRDCCIPR_SPI6SEL_0) -#define LL_RCC_SPI6_CLKSOURCE_PLL3Q LL_CLKSOURCE(SRDCCIP, RCC_SRDCCIPR_SPI6SEL, RCC_SRDCCIPR_SPI6SEL_Pos, RCC_SRDCCIPR_SPI6SEL_1) -#define LL_RCC_SPI6_CLKSOURCE_HSI LL_CLKSOURCE(SRDCCIP, RCC_SRDCCIPR_SPI6SEL, RCC_SRDCCIPR_SPI6SEL_Pos, RCC_SRDCCIPR_SPI6SEL_0 | RCC_SRDCCIPR_SPI6SEL_1) -#define LL_RCC_SPI6_CLKSOURCE_CSI LL_CLKSOURCE(SRDCCIP, RCC_SRDCCIPR_SPI6SEL, RCC_SRDCCIPR_SPI6SEL_Pos, RCC_SRDCCIPR_SPI6SEL_2) -#define LL_RCC_SPI6_CLKSOURCE_HSE LL_CLKSOURCE(SRDCCIP, RCC_SRDCCIPR_SPI6SEL, RCC_SRDCCIPR_SPI6SEL_Pos, RCC_SRDCCIPR_SPI6SEL_0 | RCC_SRDCCIPR_SPI6SEL_2) -#define LL_RCC_SPI6_CLKSOURCE_I2S_CKIN LL_CLKSOURCE(SRDCCIP, RCC_SRDCCIPR_SPI6SEL, RCC_SRDCCIPR_SPI6SEL_Pos, RCC_SRDCCIPR_SPI6SEL_1 | RCC_SRDCCIPR_SPI6SEL_2) -#endif /* RCC_D3CCIPR_SPI6SEL */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_SPDIF_CLKSOURCE Peripheral SPDIF clock source selection - * @{ - */ -#if defined(RCC_D2CCIP1R_SPDIFSEL) -#define LL_RCC_SPDIF_CLKSOURCE_PLL1Q (0x00000000U) -#define LL_RCC_SPDIF_CLKSOURCE_PLL2R (RCC_D2CCIP1R_SPDIFSEL_0) -#define LL_RCC_SPDIF_CLKSOURCE_PLL3R (RCC_D2CCIP1R_SPDIFSEL_1) -#define LL_RCC_SPDIF_CLKSOURCE_HSI (RCC_D2CCIP1R_SPDIFSEL_0 | RCC_D2CCIP1R_SPDIFSEL_1) -#else -#define LL_RCC_SPDIF_CLKSOURCE_PLL1Q (0x00000000U) -#define LL_RCC_SPDIF_CLKSOURCE_PLL2R (RCC_CDCCIP1R_SPDIFSEL_0) -#define LL_RCC_SPDIF_CLKSOURCE_PLL3R (RCC_CDCCIP1R_SPDIFSEL_1) -#define LL_RCC_SPDIF_CLKSOURCE_HSI (RCC_CDCCIP1R_SPDIFSEL_0 | RCC_CDCCIP1R_SPDIFSEL_1) -#endif /* RCC_D2CCIP1R_SPDIFSEL */ -/** - * @} - */ - -#if defined(FDCAN1) || defined(FDCAN2) -/** @defgroup RCC_LL_EC_FDCAN_CLKSOURCE Peripheral FDCAN clock source selection - * @{ - */ -#if defined(RCC_D2CCIP1R_FDCANSEL) -#define LL_RCC_FDCAN_CLKSOURCE_HSE (0x00000000U) -#define LL_RCC_FDCAN_CLKSOURCE_PLL1Q (RCC_D2CCIP1R_FDCANSEL_0) -#define LL_RCC_FDCAN_CLKSOURCE_PLL2Q (RCC_D2CCIP1R_FDCANSEL_1) -#else -#define LL_RCC_FDCAN_CLKSOURCE_HSE (0x00000000U) -#define LL_RCC_FDCAN_CLKSOURCE_PLL1Q (RCC_CDCCIP1R_FDCANSEL_0) -#define LL_RCC_FDCAN_CLKSOURCE_PLL2Q (RCC_CDCCIP1R_FDCANSEL_1) -#endif /* RCC_D2CCIP1R_FDCANSEL */ -/** - * @} - */ -#endif /*FDCAN1 || FDCAN2*/ - -/** @defgroup RCC_LL_EC_SWP_CLKSOURCE Peripheral SWP clock source selection - * @{ - */ -#if defined(RCC_D2CCIP1R_SWPSEL) -#define LL_RCC_SWP_CLKSOURCE_PCLK1 (0x00000000U) -#define LL_RCC_SWP_CLKSOURCE_HSI (RCC_D2CCIP1R_SWPSEL) -#else -#define LL_RCC_SWP_CLKSOURCE_PCLK1 (0x00000000U) -#define LL_RCC_SWP_CLKSOURCE_HSI (RCC_CDCCIP1R_SWPSEL) -#endif /* RCC_D2CCIP1R_SWPSEL */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_ADC_CLKSOURCE Peripheral ADC clock source selection - * @{ - */ -#if defined(RCC_D3CCIPR_ADCSEL) -#define LL_RCC_ADC_CLKSOURCE_PLL2P (0x00000000U) -#define LL_RCC_ADC_CLKSOURCE_PLL3R (RCC_D3CCIPR_ADCSEL_0) -#define LL_RCC_ADC_CLKSOURCE_CLKP (RCC_D3CCIPR_ADCSEL_1) -#else -#define LL_RCC_ADC_CLKSOURCE_PLL2P (0x00000000U) -#define LL_RCC_ADC_CLKSOURCE_PLL3R (RCC_SRDCCIPR_ADCSEL_0) -#define LL_RCC_ADC_CLKSOURCE_CLKP (RCC_SRDCCIPR_ADCSEL_1) -#endif /* RCC_D3CCIPR_ADCSEL */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_USARTx Peripheral USART get clock source - * @{ - */ -#if defined (RCC_D2CCIP2R_USART16SEL) -#define LL_RCC_USART16_CLKSOURCE LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_USART16SEL, RCC_D2CCIP2R_USART16SEL_Pos, 0x00000000U) -#elif defined (RCC_D2CCIP2R_USART16910SEL) -#define LL_RCC_USART16_CLKSOURCE LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_USART16910SEL, RCC_D2CCIP2R_USART16910SEL_Pos, 0x00000000U) -/* alias*/ -#define LL_RCC_USART16910_CLKSOURCE LL_RCC_USART16_CLKSOURCE -#else -#define LL_RCC_USART16_CLKSOURCE LL_CLKSOURCE(CDCCIP2, RCC_CDCCIP2R_USART16910SEL, RCC_CDCCIP2R_USART16910SEL_Pos, 0x00000000U) -/* alias*/ -#define LL_RCC_USART16910_CLKSOURCE LL_RCC_USART16_CLKSOURCE -#endif /* RCC_D2CCIP2R_USART16SEL */ -#if defined (RCC_D2CCIP2R_USART28SEL) -#define LL_RCC_USART234578_CLKSOURCE LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_USART28SEL, RCC_D2CCIP2R_USART28SEL_Pos, 0x00000000U) -#else -#define LL_RCC_USART234578_CLKSOURCE LL_CLKSOURCE(CDCCIP2, RCC_CDCCIP2R_USART234578SEL, RCC_CDCCIP2R_USART234578SEL_Pos, 0x00000000U) -#endif /* RCC_D2CCIP2R_USART28SEL */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_LPUARTx Peripheral LPUART get clock source - * @{ - */ -#if defined(RCC_D3CCIPR_LPUART1SEL) -#define LL_RCC_LPUART1_CLKSOURCE RCC_D3CCIPR_LPUART1SEL -#else -#define LL_RCC_LPUART1_CLKSOURCE RCC_SRDCCIPR_LPUART1SEL -#endif /* RCC_D3CCIPR_LPUART1SEL */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_I2Cx Peripheral I2C get clock source - * @{ - */ -#if defined(RCC_D2CCIP2R_I2C123SEL) -#define LL_RCC_I2C123_CLKSOURCE LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_I2C123SEL, RCC_D2CCIP2R_I2C123SEL_Pos, 0x00000000U) -/* alias */ -#define LL_RCC_I2C1235_CLKSOURCE LL_RCC_I2C123_CLKSOURCE -#elif defined(RCC_D2CCIP2R_I2C1235SEL) -#define LL_RCC_I2C1235_CLKSOURCE LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_I2C1235SEL, RCC_D2CCIP2R_I2C1235SEL_Pos, 0x00000000U) -/* alias */ -#define LL_RCC_I2C123_CLKSOURCE LL_RCC_I2C1235_CLKSOURCE -#else -#define LL_RCC_I2C123_CLKSOURCE LL_CLKSOURCE(CDCCIP2, RCC_CDCCIP2R_I2C123SEL, RCC_CDCCIP2R_I2C123SEL_Pos, 0x00000000U) -/* alias */ -#define LL_RCC_I2C1235_CLKSOURCE LL_RCC_I2C123_CLKSOURCE -#endif /* RCC_D2CCIP2R_I2C123SEL */ -#if defined(RCC_D3CCIPR_I2C4SEL) -#define LL_RCC_I2C4_CLKSOURCE LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_I2C4SEL, RCC_D3CCIPR_I2C4SEL_Pos, 0x00000000U) -#else -#define LL_RCC_I2C4_CLKSOURCE LL_CLKSOURCE(SRDCCIP, RCC_SRDCCIPR_I2C4SEL, RCC_SRDCCIPR_I2C4SEL_Pos, 0x00000000U) -#endif /* RCC_D3CCIPR_I2C4SEL */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_LPTIMx Peripheral LPTIM get clock source - * @{ - */ -#if defined(RCC_D2CCIP2R_LPTIM1SEL) -#define LL_RCC_LPTIM1_CLKSOURCE LL_CLKSOURCE(D2CCIP2, RCC_D2CCIP2R_LPTIM1SEL, RCC_D2CCIP2R_LPTIM1SEL_Pos, 0x00000000U) -#else -#define LL_RCC_LPTIM1_CLKSOURCE LL_CLKSOURCE(CDCCIP2, RCC_CDCCIP2R_LPTIM1SEL, RCC_CDCCIP2R_LPTIM1SEL_Pos, 0x00000000U) -#endif /* RCC_D2CCIP2R_LPTIM1SEL) */ -#if defined(RCC_D3CCIPR_LPTIM2SEL) -#define LL_RCC_LPTIM2_CLKSOURCE LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_LPTIM2SEL, RCC_D3CCIPR_LPTIM2SEL_Pos, 0x00000000U) -#else -#define LL_RCC_LPTIM2_CLKSOURCE LL_CLKSOURCE(SRDCCIP, RCC_SRDCCIPR_LPTIM2SEL, RCC_SRDCCIPR_LPTIM2SEL_Pos, 0x00000000U) -#endif /* RCC_D3CCIPR_LPTIM2SEL */ -#if defined(RCC_D3CCIPR_LPTIM345SEL) -#define LL_RCC_LPTIM345_CLKSOURCE LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_LPTIM345SEL, RCC_D3CCIPR_LPTIM345SEL_Pos, 0x00000000U) -#else -#define LL_RCC_LPTIM345_CLKSOURCE LL_CLKSOURCE(SRDCCIP, RCC_SRDCCIPR_LPTIM3SEL, RCC_SRDCCIPR_LPTIM3SEL_Pos, 0x00000000U) -#define LL_RCC_LPTIM3_CLKSOURCE LL_RCC_LPTIM345_CLKSOURCE /* alias */ -#endif /* RCC_D3CCIPR_LPTIM345SEL */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_SAIx Peripheral SAI get clock source - * @{ - */ -#if defined(RCC_D2CCIP1R_SAI1SEL) -#define LL_RCC_SAI1_CLKSOURCE LL_CLKSOURCE(D2CCIP1, RCC_D2CCIP1R_SAI1SEL, RCC_D2CCIP1R_SAI1SEL_Pos, 0x00000000U) -#else -#define LL_RCC_SAI1_CLKSOURCE LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SAI1SEL, RCC_CDCCIP1R_SAI1SEL_Pos, 0x00000000U) -#endif /* RCC_D2CCIP1R_SAI1SEL */ -#if defined(RCC_D2CCIP1R_SAI23SEL) -#define LL_RCC_SAI23_CLKSOURCE LL_CLKSOURCE(D2CCIP1, RCC_D2CCIP1R_SAI23SEL, RCC_D2CCIP1R_SAI23SEL_Pos, 0x00000000U) -#endif /* RCC_D2CCIP1R_SAI23SEL */ -#if defined(RCC_CDCCIP1R_SAI2ASEL) -#define LL_RCC_SAI2A_CLKSOURCE LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SAI2ASEL, RCC_CDCCIP1R_SAI2ASEL_Pos, 0x00000000U) -#endif /* RCC_CDCCIP1R_SAI2ASEL */ -#if defined(RCC_CDCCIP1R_SAI2BSEL) -#define LL_RCC_SAI2B_CLKSOURCE LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SAI2BSEL, RCC_CDCCIP1R_SAI2BSEL_Pos, 0x00000000U) -#endif /* RCC_CDCCIP1R_SAI2BSEL */ -#if defined(RCC_D3CCIPR_SAI4ASEL) -#define LL_RCC_SAI4A_CLKSOURCE LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_SAI4ASEL, RCC_D3CCIPR_SAI4ASEL_Pos, 0x00000000U) -#endif /* RCC_D3CCIPR_SAI4ASEL */ -#if defined(RCC_D3CCIPR_SAI4BSEL) -#define LL_RCC_SAI4B_CLKSOURCE LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_SAI4BSEL, RCC_D3CCIPR_SAI4BSEL_Pos, 0x00000000U) -#endif /* RCC_D3CCIPR_SAI4BSEL */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_SDMMC Peripheral SDMMC get clock source - * @{ - */ -#if defined(RCC_D1CCIPR_SDMMCSEL) -#define LL_RCC_SDMMC_CLKSOURCE RCC_D1CCIPR_SDMMCSEL -#else -#define LL_RCC_SDMMC_CLKSOURCE RCC_CDCCIPR_SDMMCSEL -#endif /* RCC_D1CCIPR_SDMMCSEL */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_RNG Peripheral RNG get clock source - * @{ - */ -#if (RCC_D2CCIP2R_RNGSEL) -#define LL_RCC_RNG_CLKSOURCE RCC_D2CCIP2R_RNGSEL -#else -#define LL_RCC_RNG_CLKSOURCE RCC_CDCCIP2R_RNGSEL -#endif /* RCC_D2CCIP2R_RNGSEL */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_USB Peripheral USB get clock source - * @{ - */ -#if (RCC_D2CCIP2R_USBSEL) -#define LL_RCC_USB_CLKSOURCE RCC_D2CCIP2R_USBSEL -#else -#define LL_RCC_USB_CLKSOURCE RCC_CDCCIP2R_USBSEL -#endif /* RCC_D2CCIP2R_USBSEL */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_CEC Peripheral CEC get clock source - * @{ - */ -#if (RCC_D2CCIP2R_CECSEL) -#define LL_RCC_CEC_CLKSOURCE RCC_D2CCIP2R_CECSEL -#else -#define LL_RCC_CEC_CLKSOURCE RCC_CDCCIP2R_CECSEL -#endif /* RCC_D2CCIP2R_CECSEL */ -/** - * @} - */ - -#if defined(DSI) -/** @defgroup RCC_LL_EC_DSI Peripheral DSI get clock source - * @{ - */ -#define LL_RCC_DSI_CLKSOURCE RCC_D1CCIPR_DSISEL -/** - * @} - */ -#endif /* DSI */ - -/** @defgroup RCC_LL_EC_DFSDM Peripheral DFSDM get clock source - * @{ - */ -#if defined(RCC_D2CCIP1R_DFSDM1SEL) -#define LL_RCC_DFSDM1_CLKSOURCE RCC_D2CCIP1R_DFSDM1SEL -#else -#define LL_RCC_DFSDM1_CLKSOURCE RCC_CDCCIP1R_DFSDM1SEL -#endif /* RCC_D2CCIP1R_DFSDM1SEL */ -/** - * @} - */ - -#if defined(DFSDM2_BASE) -/** @defgroup RCC_LL_EC_DFSDM2 Peripheral DFSDM2 get clock source - * @{ - */ -#define LL_RCC_DFSDM2_CLKSOURCE RCC_SRDCCIPR_DFSDM2SEL -/** - * @} - */ -#endif /* DFSDM2_BASE */ - - - -/** @defgroup RCC_LL_EC_FMC Peripheral FMC get clock source - * @{ - */ -#if defined(RCC_D1CCIPR_FMCSEL) -#define LL_RCC_FMC_CLKSOURCE RCC_D1CCIPR_FMCSEL -#else -#define LL_RCC_FMC_CLKSOURCE RCC_CDCCIPR_FMCSEL -#endif -/** - * @} - */ - -#if defined(QUADSPI) -/** @defgroup RCC_LL_EC_QSPI Peripheral QSPI get clock source - * @{ - */ -#define LL_RCC_QSPI_CLKSOURCE RCC_D1CCIPR_QSPISEL -/** - * @} - */ -#endif /* QUADSPI */ - -#if defined(OCTOSPI1) || defined(OCTOSPI2) -/** @defgroup RCC_LL_EC_OSPI Peripheral OSPI get clock source - * @{ - */ -#if defined(RCC_CDCCIPR_OCTOSPISEL) -#define LL_RCC_OSPI_CLKSOURCE RCC_CDCCIPR_OCTOSPISEL -#else -#define LL_RCC_OSPI_CLKSOURCE RCC_D1CCIPR_OCTOSPISEL -#endif /* RCC_CDCCIPR_OCTOSPISEL */ -/** - * @} - */ -#endif /* OCTOSPI1 || OCTOSPI2 */ - -/** @defgroup RCC_LL_EC_CLKP Peripheral CLKP get clock source - * @{ - */ -#if defined(RCC_D1CCIPR_CKPERSEL) -#define LL_RCC_CLKP_CLKSOURCE RCC_D1CCIPR_CKPERSEL -#else -#define LL_RCC_CLKP_CLKSOURCE RCC_CDCCIPR_CKPERSEL -#endif /* RCC_D1CCIPR_CKPERSEL */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_SPIx Peripheral SPI get clock source - * @{ - */ -#if defined(RCC_D2CCIP1R_SPI123SEL) -#define LL_RCC_SPI123_CLKSOURCE LL_CLKSOURCE(D2CCIP1, RCC_D2CCIP1R_SPI123SEL, RCC_D2CCIP1R_SPI123SEL_Pos, 0x00000000U) -#else -#define LL_RCC_SPI123_CLKSOURCE LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SPI123SEL, RCC_CDCCIP1R_SPI123SEL_Pos, 0x00000000U) -#endif /* RCC_D2CCIP1R_SPI123SEL */ -#if defined(RCC_D2CCIP1R_SPI45SEL) -#define LL_RCC_SPI45_CLKSOURCE LL_CLKSOURCE(D2CCIP1, RCC_D2CCIP1R_SPI45SEL, RCC_D2CCIP1R_SPI45SEL_Pos, 0x00000000U) -#else -#define LL_RCC_SPI45_CLKSOURCE LL_CLKSOURCE(CDCCIP1, RCC_CDCCIP1R_SPI45SEL, RCC_CDCCIP1R_SPI45SEL_Pos, 0x00000000U) -#endif /* RCC_D2CCIP1R_SPI45SEL */ -#if defined(RCC_D3CCIPR_SPI6SEL) -#define LL_RCC_SPI6_CLKSOURCE LL_CLKSOURCE(D3CCIP, RCC_D3CCIPR_SPI6SEL, RCC_D3CCIPR_SPI6SEL_Pos, 0x00000000U) -#else -#define LL_RCC_SPI6_CLKSOURCE LL_CLKSOURCE(SRDCCIP, RCC_SRDCCIPR_SPI6SEL, RCC_SRDCCIPR_SPI6SEL_Pos, 0x00000000U) -#endif /* RCC_D3CCIPR_SPI6SEL */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_SPDIF Peripheral SPDIF get clock source - * @{ - */ -#if defined(RCC_D2CCIP1R_SPDIFSEL) -#define LL_RCC_SPDIF_CLKSOURCE RCC_D2CCIP1R_SPDIFSEL -#else -#define LL_RCC_SPDIF_CLKSOURCE RCC_CDCCIP1R_SPDIFSEL -#endif /* RCC_D2CCIP1R_SPDIFSEL */ -/** - * @} - */ - -#if defined(FDCAN1) || defined(FDCAN2) -/** @defgroup RCC_LL_EC_FDCAN Peripheral FDCAN get clock source - * @{ - */ -#if defined(RCC_D2CCIP1R_FDCANSEL) -#define LL_RCC_FDCAN_CLKSOURCE RCC_D2CCIP1R_FDCANSEL -#else -#define LL_RCC_FDCAN_CLKSOURCE RCC_CDCCIP1R_FDCANSEL -#endif -/** - * @} - */ -#endif /*FDCAN1 || FDCAN2*/ - -/** @defgroup RCC_LL_EC_SWP Peripheral SWP get clock source - * @{ - */ -#if defined(RCC_D2CCIP1R_SWPSEL) -#define LL_RCC_SWP_CLKSOURCE RCC_D2CCIP1R_SWPSEL -#else -#define LL_RCC_SWP_CLKSOURCE RCC_CDCCIP1R_SWPSEL -#endif /* RCC_D2CCIP1R_SWPSEL */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_ADC Peripheral ADC get clock source - * @{ - */ -#if defined(RCC_D3CCIPR_ADCSEL) -#define LL_RCC_ADC_CLKSOURCE RCC_D3CCIPR_ADCSEL -#else -#define LL_RCC_ADC_CLKSOURCE RCC_SRDCCIPR_ADCSEL -#endif /* RCC_D3CCIPR_ADCSEL */ -/** - * @} - */ - -/** @defgroup RCC_LL_EC_RTC_CLKSOURCE RTC clock source selection - * @{ - */ -#define LL_RCC_RTC_CLKSOURCE_NONE (uint32_t)(0x00000000U) -#define LL_RCC_RTC_CLKSOURCE_LSE (uint32_t)(RCC_BDCR_RTCSEL_0) -#define LL_RCC_RTC_CLKSOURCE_LSI (uint32_t)(RCC_BDCR_RTCSEL_1) -#define LL_RCC_RTC_CLKSOURCE_HSE (uint32_t)(RCC_BDCR_RTCSEL_0 | RCC_BDCR_RTCSEL_1) -/** - * @} - */ - -/** @defgroup RCC_LL_EC_TIM_CLKPRESCALER Timers clocks prescalers selection - * @{ - */ -#define LL_RCC_TIM_PRESCALER_TWICE (uint32_t)(0x00000000U) -#define LL_RCC_TIM_PRESCALER_FOUR_TIMES (uint32_t)(RCC_CFGR_TIMPRE) -/** - * @} - */ - -#if defined(HRTIM1) -/** @defgroup RCC_LL_EC_HRTIM_CLKSOURCE High Resolution Timers clock selection - * @{ - */ -#define LL_RCC_HRTIM_CLKSOURCE_TIM (uint32_t)(0x00000000U) /* HRTIM Clock source is same as other timers */ -#define LL_RCC_HRTIM_CLKSOURCE_CPU (uint32_t)(RCC_CFGR_HRTIMSEL) /* HRTIM Clock source is the CPU clock */ -/** - * @} - */ -#endif /* HRTIM1 */ - -/** @defgroup RCC_LL_EC_PLLSOURCE All PLLs entry clock source - * @{ - */ -#define LL_RCC_PLLSOURCE_HSI RCC_PLLCKSELR_PLLSRC_HSI -#define LL_RCC_PLLSOURCE_CSI RCC_PLLCKSELR_PLLSRC_CSI -#define LL_RCC_PLLSOURCE_HSE RCC_PLLCKSELR_PLLSRC_HSE -#define LL_RCC_PLLSOURCE_NONE RCC_PLLCKSELR_PLLSRC_NONE -/** - * @} - */ - -/** @defgroup RCC_LL_EC_PLLINPUTRANGE All PLLs input range - * @{ - */ -#define LL_RCC_PLLINPUTRANGE_1_2 (uint32_t)(0x00000000U) -#define LL_RCC_PLLINPUTRANGE_2_4 (uint32_t)(0x00000001) -#define LL_RCC_PLLINPUTRANGE_4_8 (uint32_t)(0x00000002) -#define LL_RCC_PLLINPUTRANGE_8_16 (uint32_t)(0x00000003) -/** - * @} - */ - -/** @defgroup RCC_LL_EC_PLLVCORANGE All PLLs VCO range - * @{ - */ -#define LL_RCC_PLLVCORANGE_WIDE (uint32_t)(0x00000000U) /* VCO output range: 192 to 836 MHz OR 128 to 544 MHz (*) */ -#define LL_RCC_PLLVCORANGE_MEDIUM (uint32_t)(0x00000001) /* VCO output range: 150 to 420 MHz */ -/** - * (*) : For stm32h7a3xx and stm32h7b3xx family lines. - * @} - */ - -/** - * @} - */ - -/* Exported macro ------------------------------------------------------------*/ -/** @defgroup RCC_LL_Exported_Macros RCC Exported Macros - * @{ - */ - -/** @defgroup RCC_LL_EM_WRITE_READ Common Write and read registers Macros - * @{ - */ - -/** - * @brief Write a value in RCC register - * @param __REG__ Register to be written - * @param __VALUE__ Value to be written in the register - * @retval None - */ -#define LL_RCC_WriteReg(__REG__, __VALUE__) WRITE_REG(RCC->__REG__, (__VALUE__)) - -/** - * @brief Read a value in RCC register - * @param __REG__ Register to be read - * @retval Register value - */ -#define LL_RCC_ReadReg(__REG__) READ_REG(RCC->__REG__) -/** - * @} - */ - -/** @defgroup RCC_LL_EM_CALC_FREQ Calculate frequencies - * @{ - */ - -/** - * @brief Helper macro to calculate the SYSCLK frequency - * @param __SYSINPUTCLKFREQ__ Frequency of the input of sys_ck (based on HSE/CSI/HSI/PLL1P) - * @param __SYSPRESCALER__ This parameter can be one of the following values: - * @arg @ref LL_RCC_SYSCLK_DIV_1 - * @arg @ref LL_RCC_SYSCLK_DIV_2 - * @arg @ref LL_RCC_SYSCLK_DIV_4 - * @arg @ref LL_RCC_SYSCLK_DIV_8 - * @arg @ref LL_RCC_SYSCLK_DIV_16 - * @arg @ref LL_RCC_SYSCLK_DIV_64 - * @arg @ref LL_RCC_SYSCLK_DIV_128 - * @arg @ref LL_RCC_SYSCLK_DIV_256 - * @arg @ref LL_RCC_SYSCLK_DIV_512 - * @retval SYSCLK clock frequency (in Hz) - */ -#if defined(RCC_D1CFGR_D1CPRE) -#define LL_RCC_CALC_SYSCLK_FREQ(__SYSINPUTCLKFREQ__, __SYSPRESCALER__) ((__SYSINPUTCLKFREQ__) >> ((LL_RCC_PrescTable[((__SYSPRESCALER__) & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU)) -#else -#define LL_RCC_CALC_SYSCLK_FREQ(__SYSINPUTCLKFREQ__, __SYSPRESCALER__) ((__SYSINPUTCLKFREQ__) >> ((LL_RCC_PrescTable[((__SYSPRESCALER__) & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU)) -#endif /* RCC_D1CFGR_D1CPRE */ - -/** - * @brief Helper macro to calculate the HCLK frequency - * @param __SYSCLKFREQ__ SYSCLK frequency. - * @param __HPRESCALER__ This parameter can be one of the following values: - * @arg @ref LL_RCC_AHB_DIV_1 - * @arg @ref LL_RCC_AHB_DIV_2 - * @arg @ref LL_RCC_AHB_DIV_4 - * @arg @ref LL_RCC_AHB_DIV_8 - * @arg @ref LL_RCC_AHB_DIV_16 - * @arg @ref LL_RCC_AHB_DIV_64 - * @arg @ref LL_RCC_AHB_DIV_128 - * @arg @ref LL_RCC_AHB_DIV_256 - * @arg @ref LL_RCC_AHB_DIV_512 - * @retval HCLK clock frequency (in Hz) - */ -#if defined(RCC_D1CFGR_HPRE) -#define LL_RCC_CALC_HCLK_FREQ(__SYSCLKFREQ__, __HPRESCALER__) ((__SYSCLKFREQ__) >> ((LL_RCC_PrescTable[((__HPRESCALER__) & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU)) -#else -#define LL_RCC_CALC_HCLK_FREQ(__SYSCLKFREQ__, __HPRESCALER__) ((__SYSCLKFREQ__) >> ((LL_RCC_PrescTable[((__HPRESCALER__) & RCC_CDCFGR1_HPRE) >> RCC_CDCFGR1_HPRE_Pos]) & 0x1FU)) -#endif /* RCC_D1CFGR_HPRE */ - -/** - * @brief Helper macro to calculate the PCLK1 frequency (ABP1) - * @param __HCLKFREQ__ HCLK frequency - * @param __APB1PRESCALER__ This parameter can be one of the following values: - * @arg @ref LL_RCC_APB1_DIV_1 - * @arg @ref LL_RCC_APB1_DIV_2 - * @arg @ref LL_RCC_APB1_DIV_4 - * @arg @ref LL_RCC_APB1_DIV_8 - * @arg @ref LL_RCC_APB1_DIV_16 - * @retval PCLK1 clock frequency (in Hz) - */ -#if defined(RCC_D2CFGR_D2PPRE1) -#define LL_RCC_CALC_PCLK1_FREQ(__HCLKFREQ__, __APB1PRESCALER__) ((__HCLKFREQ__) >> ((LL_RCC_PrescTable[((__APB1PRESCALER__) & RCC_D2CFGR_D2PPRE1) >> RCC_D2CFGR_D2PPRE1_Pos]) & 0x1FU)) -#else -#define LL_RCC_CALC_PCLK1_FREQ(__HCLKFREQ__, __APB1PRESCALER__) ((__HCLKFREQ__) >> ((LL_RCC_PrescTable[((__APB1PRESCALER__) & RCC_CDCFGR2_CDPPRE1) >> RCC_CDCFGR2_CDPPRE1_Pos]) & 0x1FU)) -#endif /* RCC_D2CFGR_D2PPRE1 */ - -/** - * @brief Helper macro to calculate the PCLK2 frequency (ABP2) - * @param __HCLKFREQ__ HCLK frequency - * @param __APB2PRESCALER__ This parameter can be one of the following values: - * @arg @ref LL_RCC_APB2_DIV_1 - * @arg @ref LL_RCC_APB2_DIV_2 - * @arg @ref LL_RCC_APB2_DIV_4 - * @arg @ref LL_RCC_APB2_DIV_8 - * @arg @ref LL_RCC_APB2_DIV_16 - * @retval PCLK2 clock frequency (in Hz) - */ -#if defined(RCC_D2CFGR_D2PPRE2) -#define LL_RCC_CALC_PCLK2_FREQ(__HCLKFREQ__, __APB2PRESCALER__) ((__HCLKFREQ__) >> ((LL_RCC_PrescTable[((__APB2PRESCALER__) & RCC_D2CFGR_D2PPRE2) >> RCC_D2CFGR_D2PPRE2_Pos]) & 0x1FU)) -#else -#define LL_RCC_CALC_PCLK2_FREQ(__HCLKFREQ__, __APB2PRESCALER__) ((__HCLKFREQ__) >> ((LL_RCC_PrescTable[((__APB2PRESCALER__) & RCC_CDCFGR2_CDPPRE2) >> RCC_CDCFGR2_CDPPRE2_Pos]) & 0x1FU)) -#endif /* RCC_D2CFGR_D2PPRE2 */ - -/** - * @brief Helper macro to calculate the PCLK3 frequency (APB3) - * @param __HCLKFREQ__ HCLK frequency - * @param __APB3PRESCALER__ This parameter can be one of the following values: - * @arg @ref LL_RCC_APB3_DIV_1 - * @arg @ref LL_RCC_APB3_DIV_2 - * @arg @ref LL_RCC_APB3_DIV_4 - * @arg @ref LL_RCC_APB3_DIV_8 - * @arg @ref LL_RCC_APB3_DIV_16 - * @retval PCLK1 clock frequency (in Hz) - */ -#if defined(RCC_D1CFGR_D1PPRE) -#define LL_RCC_CALC_PCLK3_FREQ(__HCLKFREQ__, __APB3PRESCALER__) ((__HCLKFREQ__) >> ((LL_RCC_PrescTable[((__APB3PRESCALER__) & RCC_D1CFGR_D1PPRE) >> RCC_D1CFGR_D1PPRE_Pos]) & 0x1FU)) -#else -#define LL_RCC_CALC_PCLK3_FREQ(__HCLKFREQ__, __APB3PRESCALER__) ((__HCLKFREQ__) >> ((LL_RCC_PrescTable[((__APB3PRESCALER__) & RCC_CDCFGR1_CDPPRE) >> RCC_CDCFGR1_CDPPRE_Pos]) & 0x1FU)) -#endif /* RCC_D1CFGR_D1PPRE */ - -/** - * @brief Helper macro to calculate the PCLK4 frequency (ABP4) - * @param __HCLKFREQ__ HCLK frequency - * @param __APB4PRESCALER__ This parameter can be one of the following values: - * @arg @ref LL_RCC_APB4_DIV_1 - * @arg @ref LL_RCC_APB4_DIV_2 - * @arg @ref LL_RCC_APB4_DIV_4 - * @arg @ref LL_RCC_APB4_DIV_8 - * @arg @ref LL_RCC_APB4_DIV_16 - * @retval PCLK1 clock frequency (in Hz) - */ -#if defined(RCC_D3CFGR_D3PPRE) -#define LL_RCC_CALC_PCLK4_FREQ(__HCLKFREQ__, __APB4PRESCALER__) ((__HCLKFREQ__) >> ((LL_RCC_PrescTable[((__APB4PRESCALER__) & RCC_D3CFGR_D3PPRE) >> RCC_D3CFGR_D3PPRE_Pos]) & 0x1FU)) -#else -#define LL_RCC_CALC_PCLK4_FREQ(__HCLKFREQ__, __APB4PRESCALER__) ((__HCLKFREQ__) >> ((LL_RCC_PrescTable[((__APB4PRESCALER__) & RCC_SRDCFGR_SRDPPRE) >> RCC_SRDCFGR_SRDPPRE_Pos]) & 0x1FU)) -#endif /* RCC_D3CFGR_D3PPRE */ - -/** - * @} - */ - -#if defined(USE_FULL_LL_DRIVER) -/** @defgroup RCC_LL_EC_PERIPH_FREQUENCY Peripheral clock frequency - * @{ - */ -#define LL_RCC_PERIPH_FREQUENCY_NO 0x00000000U /*!< No clock enabled for the peripheral */ -#define LL_RCC_PERIPH_FREQUENCY_NA 0xFFFFFFFFU /*!< Frequency cannot be provided as external clock */ -/** - * @} - */ -#endif /* USE_FULL_LL_DRIVER */ - -/** - * @} - */ - -/* Exported functions --------------------------------------------------------*/ -/** @defgroup RCC_LL_Exported_Functions RCC Exported Functions - * @{ - */ - -/** @defgroup RCC_LL_EF_HSE HSE - * @{ - */ - -/** - * @brief Enable the Clock Security System. - * @note Once HSE Clock Security System is enabled it cannot be changed anymore unless - * a reset occurs or system enter in standby mode. - * @rmtoll CR CSSHSEON LL_RCC_HSE_EnableCSS - * @retval None - */ -__STATIC_INLINE void LL_RCC_HSE_EnableCSS(void) -{ - SET_BIT(RCC->CR, RCC_CR_CSSHSEON); -} - -/** - * @brief Enable HSE external oscillator (HSE Bypass) - * @rmtoll CR HSEBYP LL_RCC_HSE_EnableBypass - * @retval None - */ -__STATIC_INLINE void LL_RCC_HSE_EnableBypass(void) -{ - SET_BIT(RCC->CR, RCC_CR_HSEBYP); -} - -/** - * @brief Disable HSE external oscillator (HSE Bypass) - * @rmtoll CR HSEBYP LL_RCC_HSE_DisableBypass - * @retval None - */ -__STATIC_INLINE void LL_RCC_HSE_DisableBypass(void) -{ - CLEAR_BIT(RCC->CR, RCC_CR_HSEBYP); -} - -#if defined(RCC_CR_HSEEXT) -/** - * @brief Select the Analog HSE external clock type in Bypass mode - * @rmtoll CR HSEEXT LL_RCC_HSE_SelectAnalogClock - * @retval None - */ -__STATIC_INLINE void LL_RCC_HSE_SelectAnalogClock(void) -{ - CLEAR_BIT(RCC->CR, RCC_CR_HSEEXT); -} - -/** - * @brief Select the Digital HSE external clock type in Bypass mode - * @rmtoll CR HSEEXT LL_RCC_HSE_SelectDigitalClock - * @retval None - */ -__STATIC_INLINE void LL_RCC_HSE_SelectDigitalClock(void) -{ - SET_BIT(RCC->CR, RCC_CR_HSEEXT); -} -#endif /* RCC_CR_HSEEXT */ - -/** - * @brief Enable HSE crystal oscillator (HSE ON) - * @rmtoll CR HSEON LL_RCC_HSE_Enable - * @retval None - */ -__STATIC_INLINE void LL_RCC_HSE_Enable(void) -{ - SET_BIT(RCC->CR, RCC_CR_HSEON); -} - -/** - * @brief Disable HSE crystal oscillator (HSE ON) - * @rmtoll CR HSEON LL_RCC_HSE_Disable - * @retval None - */ -__STATIC_INLINE void LL_RCC_HSE_Disable(void) -{ - CLEAR_BIT(RCC->CR, RCC_CR_HSEON); -} - -/** - * @brief Check if HSE oscillator Ready - * @rmtoll CR HSERDY LL_RCC_HSE_IsReady - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_HSE_IsReady(void) -{ - return ((READ_BIT(RCC->CR, RCC_CR_HSERDY) == (RCC_CR_HSERDY)) ? 1UL : 0UL); -} - -/** - * @} - */ - -/** @defgroup RCC_LL_EF_HSI HSI - * @{ - */ - -/** - * @brief Enable HSI oscillator - * @rmtoll CR HSION LL_RCC_HSI_Enable - * @retval None - */ -__STATIC_INLINE void LL_RCC_HSI_Enable(void) -{ - SET_BIT(RCC->CR, RCC_CR_HSION); -} - -/** - * @brief Disable HSI oscillator - * @rmtoll CR HSION LL_RCC_HSI_Disable - * @retval None - */ -__STATIC_INLINE void LL_RCC_HSI_Disable(void) -{ - CLEAR_BIT(RCC->CR, RCC_CR_HSION); -} - -/** - * @brief Check if HSI clock is ready - * @rmtoll CR HSIRDY LL_RCC_HSI_IsReady - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_HSI_IsReady(void) -{ - return ((READ_BIT(RCC->CR, RCC_CR_HSIRDY) == (RCC_CR_HSIRDY)) ? 1UL : 0UL); -} - -/** - * @brief Check if HSI new divider applied and ready - * @rmtoll CR HSIDIVF LL_RCC_HSI_IsDividerReady - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_HSI_IsDividerReady(void) -{ - return ((READ_BIT(RCC->CR, RCC_CR_HSIDIVF) == (RCC_CR_HSIDIVF)) ? 1UL : 0UL); -} - -/** - * @brief Set HSI divider - * @rmtoll CR HSIDIV LL_RCC_HSI_SetDivider - * @param Divider This parameter can be one of the following values: - * @arg @ref LL_RCC_HSI_DIV1 - * @arg @ref LL_RCC_HSI_DIV2 - * @arg @ref LL_RCC_HSI_DIV4 - * @arg @ref LL_RCC_HSI_DIV8 - * @retval None. - */ -__STATIC_INLINE void LL_RCC_HSI_SetDivider(uint32_t Divider) -{ - MODIFY_REG(RCC->CR, RCC_CR_HSIDIV, Divider); -} - -/** - * @brief Get HSI divider - * @rmtoll CR HSIDIV LL_RCC_HSI_GetDivider - * @retval can be one of the following values: - * @arg @ref LL_RCC_HSI_DIV1 - * @arg @ref LL_RCC_HSI_DIV2 - * @arg @ref LL_RCC_HSI_DIV4 - * @arg @ref LL_RCC_HSI_DIV8 - */ -__STATIC_INLINE uint32_t LL_RCC_HSI_GetDivider(void) -{ - return (READ_BIT(RCC->CR, RCC_CR_HSIDIV)); -} - -/** - * @brief Enable HSI oscillator in Stop mode - * @rmtoll CR HSIKERON LL_RCC_HSI_EnableStopMode - * @retval None - */ -__STATIC_INLINE void LL_RCC_HSI_EnableStopMode(void) -{ - SET_BIT(RCC->CR, RCC_CR_HSIKERON); -} - -/** - * @brief Disable HSI oscillator in Stop mode - * @rmtoll CR HSION LL_RCC_HSI_DisableStopMode - * @retval None - */ -__STATIC_INLINE void LL_RCC_HSI_DisableStopMode(void) -{ - CLEAR_BIT(RCC->CR, RCC_CR_HSIKERON); -} - -/** - * @brief Get HSI Calibration value - * @note When HSITRIM is written, HSICAL is updated with the sum of - * HSITRIM and the factory trim value - * @rmtoll HSICFGR HSICAL LL_RCC_HSI_GetCalibration - * @retval A value between 0 and 4095 (0xFFF) - */ -__STATIC_INLINE uint32_t LL_RCC_HSI_GetCalibration(void) -{ - return (uint32_t)(READ_BIT(RCC->HSICFGR, RCC_HSICFGR_HSICAL) >> RCC_HSICFGR_HSICAL_Pos); -} - -/** - * @brief Set HSI Calibration trimming - * @note user-programmable trimming value that is added to the HSICAL - * @note Default value is 64 (32 for Cut1.x), which, when added to the HSICAL value, - * should trim the HSI to 64 MHz +/- 1 % - * @rmtoll HSICFGR HSITRIM LL_RCC_HSI_SetCalibTrimming - * @param Value can be a value between 0 and 127 (63 for Cut1.x) - * @retval None - */ -__STATIC_INLINE void LL_RCC_HSI_SetCalibTrimming(uint32_t Value) -{ -#if defined(RCC_VER_X) - if ((DBGMCU->IDCODE & 0xF0000000U) == 0x10000000U) - { - /* STM32H7 Rev.Y */ - MODIFY_REG(RCC->HSICFGR, 0x3F000U, Value << 12U); - } - else - { - /* STM32H7 Rev.V */ - MODIFY_REG(RCC->HSICFGR, RCC_HSICFGR_HSITRIM, Value << RCC_HSICFGR_HSITRIM_Pos); - } -#else - MODIFY_REG(RCC->HSICFGR, RCC_HSICFGR_HSITRIM, Value << RCC_HSICFGR_HSITRIM_Pos); -#endif /* RCC_VER_X */ -} - -/** - * @brief Get HSI Calibration trimming - * @rmtoll HSICFGR HSITRIM LL_RCC_HSI_GetCalibTrimming - * @retval A value between 0 and 127 (63 for Cut1.x) - */ -__STATIC_INLINE uint32_t LL_RCC_HSI_GetCalibTrimming(void) -{ -#if defined(RCC_VER_X) - if ((DBGMCU->IDCODE & 0xF0000000U) == 0x10000000U) - { - /* STM32H7 Rev.Y */ - return (uint32_t)(READ_BIT(RCC->HSICFGR, 0x3F000U) >> 12U); - } - else - { - /* STM32H7 Rev.V */ - return (uint32_t)(READ_BIT(RCC->HSICFGR, RCC_HSICFGR_HSITRIM) >> RCC_HSICFGR_HSITRIM_Pos); - } -#else - return (uint32_t)(READ_BIT(RCC->HSICFGR, RCC_HSICFGR_HSITRIM) >> RCC_HSICFGR_HSITRIM_Pos); -#endif /* RCC_VER_X */ -} - -/** - * @} - */ - -/** @defgroup RCC_LL_EF_CSI CSI - * @{ - */ - -/** - * @brief Enable CSI oscillator - * @rmtoll CR CSION LL_RCC_CSI_Enable - * @retval None - */ -__STATIC_INLINE void LL_RCC_CSI_Enable(void) -{ - SET_BIT(RCC->CR, RCC_CR_CSION); -} - -/** - * @brief Disable CSI oscillator - * @rmtoll CR CSION LL_RCC_CSI_Disable - * @retval None - */ -__STATIC_INLINE void LL_RCC_CSI_Disable(void) -{ - CLEAR_BIT(RCC->CR, RCC_CR_CSION); -} - -/** - * @brief Check if CSI clock is ready - * @rmtoll CR CSIRDY LL_RCC_CSI_IsReady - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_CSI_IsReady(void) -{ - return ((READ_BIT(RCC->CR, RCC_CR_CSIRDY) == (RCC_CR_CSIRDY)) ? 1UL : 0UL); -} - -/** - * @brief Enable CSI oscillator in Stop mode - * @rmtoll CR CSIKERON LL_RCC_CSI_EnableStopMode - * @retval None - */ -__STATIC_INLINE void LL_RCC_CSI_EnableStopMode(void) -{ - SET_BIT(RCC->CR, RCC_CR_CSIKERON); -} - -/** - * @brief Disable CSI oscillator in Stop mode - * @rmtoll CR CSIKERON LL_RCC_CSI_DisableStopMode - * @retval None - */ -__STATIC_INLINE void LL_RCC_CSI_DisableStopMode(void) -{ - CLEAR_BIT(RCC->CR, RCC_CR_CSIKERON); -} - -/** - * @brief Get CSI Calibration value - * @note When CSITRIM is written, CSICAL is updated with the sum of - * CSITRIM and the factory trim value - * @rmtoll CSICFGR CSICAL LL_RCC_CSI_GetCalibration - * @retval A value between 0 and 255 (0xFF) - */ -__STATIC_INLINE uint32_t LL_RCC_CSI_GetCalibration(void) -{ -#if defined(RCC_VER_X) - if ((DBGMCU->IDCODE & 0xF0000000U) == 0x10000000U) - { - /* STM32H7 Rev.Y */ - return (uint32_t)(READ_BIT(RCC->HSICFGR, 0x3FC0000U) >> 18U); - } - else - { - /* STM32H7 Rev.V */ - return (uint32_t)(READ_BIT(RCC->CSICFGR, RCC_CSICFGR_CSICAL) >> RCC_CSICFGR_CSICAL_Pos); - } -#else - return (uint32_t)(READ_BIT(RCC->CSICFGR, RCC_CSICFGR_CSICAL) >> RCC_CSICFGR_CSICAL_Pos); -#endif /* RCC_VER_X */ -} - -/** - * @brief Set CSI Calibration trimming - * @note user-programmable trimming value that is added to the CSICAL - * @note Default value is 16, which, when added to the CSICAL value, - * should trim the CSI to 4 MHz +/- 1 % - * @rmtoll CSICFGR CSITRIM LL_RCC_CSI_SetCalibTrimming - * @param Value can be a value between 0 and 31 - * @retval None - */ -__STATIC_INLINE void LL_RCC_CSI_SetCalibTrimming(uint32_t Value) -{ -#if defined(RCC_VER_X) - if ((DBGMCU->IDCODE & 0xF0000000U) == 0x10000000U) - { - /* STM32H7 Rev.Y */ - MODIFY_REG(RCC->HSICFGR, 0x7C000000U, Value << 26U); - } - else - { - /* STM32H7 Rev.V */ - MODIFY_REG(RCC->CSICFGR, RCC_CSICFGR_CSITRIM, Value << RCC_CSICFGR_CSITRIM_Pos); - } -#else - MODIFY_REG(RCC->CSICFGR, RCC_CSICFGR_CSITRIM, Value << RCC_CSICFGR_CSITRIM_Pos); -#endif /* RCC_VER_X */ -} - -/** - * @brief Get CSI Calibration trimming - * @rmtoll CSICFGR CSITRIM LL_RCC_CSI_GetCalibTrimming - * @retval A value between 0 and 31 - */ -__STATIC_INLINE uint32_t LL_RCC_CSI_GetCalibTrimming(void) -{ -#if defined(RCC_VER_X) - if ((DBGMCU->IDCODE & 0xF0000000U) == 0x10000000U) - { - /* STM32H7 Rev.Y */ - return (uint32_t)(READ_BIT(RCC->HSICFGR, 0x7C000000U) >> 26U); - } - else - { - /* STM32H7 Rev.V */ - return (uint32_t)(READ_BIT(RCC->CSICFGR, RCC_CSICFGR_CSITRIM) >> RCC_CSICFGR_CSITRIM_Pos); - } -#else - return (uint32_t)(READ_BIT(RCC->CSICFGR, RCC_CSICFGR_CSITRIM) >> RCC_CSICFGR_CSITRIM_Pos); -#endif /* RCC_VER_X */ -} - -/** - * @} - */ - -/** @defgroup RCC_LL_EF_HSI48 HSI48 - * @{ - */ - -/** - * @brief Enable HSI48 oscillator - * @rmtoll CR HSI48ON LL_RCC_HSI48_Enable - * @retval None - */ -__STATIC_INLINE void LL_RCC_HSI48_Enable(void) -{ - SET_BIT(RCC->CR, RCC_CR_HSI48ON); -} - -/** - * @brief Disable HSI48 oscillator - * @rmtoll CR HSI48ON LL_RCC_HSI48_Disable - * @retval None - */ -__STATIC_INLINE void LL_RCC_HSI48_Disable(void) -{ - CLEAR_BIT(RCC->CR, RCC_CR_HSI48ON); -} - -/** - * @brief Check if HSI48 clock is ready - * @rmtoll CR HSI48RDY LL_RCC_HSI48_IsReady - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_HSI48_IsReady(void) -{ - return ((READ_BIT(RCC->CR, RCC_CR_HSI48RDY) == (RCC_CR_HSI48RDY)) ? 1UL : 0UL); -} - -/** - * @brief Get HSI48 Calibration value - * @note When HSI48TRIM is written, HSI48CAL is updated with the sum of - * HSI48TRIM and the factory trim value - * @rmtoll CRRCR HSI48CAL LL_RCC_HSI48_GetCalibration - * @retval A value between 0 and 1023 (0x3FF) - */ -__STATIC_INLINE uint32_t LL_RCC_HSI48_GetCalibration(void) -{ - return (uint32_t)(READ_BIT(RCC->CRRCR, RCC_CRRCR_HSI48CAL) >> RCC_CRRCR_HSI48CAL_Pos); -} -/** - * @} - */ - -#if defined(RCC_CR_D1CKRDY) - -/** @defgroup RCC_LL_EF_D1CLK D1CKREADY - * @{ - */ - -/** - * @brief Check if D1 clock is ready - * @rmtoll CR D1CKRDY LL_RCC_D1CK_IsReady - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_D1CK_IsReady(void) -{ - return ((READ_BIT(RCC->CR, RCC_CR_D1CKRDY) == (RCC_CR_D1CKRDY)) ? 1UL : 0UL); -} - -/** - * @} - */ -#else - -/** @defgroup RCC_LL_EF_CPUCLK CPUCKREADY - * @{ - */ - -/** - * @brief Check if CPU clock is ready - * @rmtoll CR CPUCKRDY LL_RCC_CPUCK_IsReady - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_CPUCK_IsReady(void) -{ - return ((READ_BIT(RCC->CR, RCC_CR_CPUCKRDY) == (RCC_CR_CPUCKRDY)) ? 1UL : 0UL); -} -/* alias */ -#define LL_RCC_D1CK_IsReady LL_RCC_CPUCK_IsReady -/** - * @} - */ -#endif /* RCC_CR_D1CKRDY */ - -#if defined(RCC_CR_D2CKRDY) - -/** @defgroup RCC_LL_EF_D2CLK D2CKREADY - * @{ - */ - -/** - * @brief Check if D2 clock is ready - * @rmtoll CR D2CKRDY LL_RCC_D2CK_IsReady - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_D2CK_IsReady(void) -{ - return ((READ_BIT(RCC->CR, RCC_CR_D2CKRDY) == (RCC_CR_D2CKRDY)) ? 1UL : 0UL); -} -/** - * @} - */ -#else - -/** @defgroup RCC_LL_EF_CDCLK CDCKREADY - * @{ - */ - -/** - * @brief Check if CD clock is ready - * @rmtoll CR CDCKRDY LL_RCC_CDCK_IsReady - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_CDCK_IsReady(void) -{ - return ((READ_BIT(RCC->CR, RCC_CR_CDCKRDY) == (RCC_CR_CDCKRDY)) ? 1UL : 0UL); -} -#define LL_RCC_D2CK_IsReady LL_RCC_CDCK_IsReady -/** - * @} - */ -#endif /* RCC_CR_D2CKRDY */ - -/** @defgroup RCC_LL_EF_SYSTEM_WIDE_RESET RESET - * @{ - */ -#if defined(RCC_GCR_WW1RSC) - -/** - * @brief Enable system wide reset for Window Watch Dog 1 - * @rmtoll GCR WW1RSC LL_RCC_WWDG1_EnableSystemReset - * @retval None. - */ -__STATIC_INLINE void LL_RCC_WWDG1_EnableSystemReset(void) -{ - SET_BIT(RCC->GCR, RCC_GCR_WW1RSC); -} - -/** - * @brief Check if Window Watch Dog 1 reset is system wide - * @rmtoll GCR WW1RSC LL_RCC_WWDG1_IsSystemReset - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_WWDG1_IsSystemReset(void) -{ - return ((READ_BIT(RCC->GCR, RCC_GCR_WW1RSC) == RCC_GCR_WW1RSC) ? 1UL : 0UL); -} -#endif /* RCC_GCR_WW1RSC */ - -#if defined(DUAL_CORE) -/** - * @brief Enable system wide reset for Window Watch Dog 2 - * @rmtoll GCR WW1RSC LL_RCC_WWDG2_EnableSystemReset - * @retval None. - */ -__STATIC_INLINE void LL_RCC_WWDG2_EnableSystemReset(void) -{ - SET_BIT(RCC->GCR, RCC_GCR_WW2RSC); -} - -/** - * @brief Check if Window Watch Dog 2 reset is system wide - * @rmtoll GCR WW2RSC LL_RCC_WWDG2_IsSystemReset - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_WWDG2_IsSystemReset(void) -{ - return ((READ_BIT(RCC->GCR, RCC_GCR_WW2RSC) == RCC_GCR_WW2RSC) ? 1UL : 0UL); -} -#endif /*DUAL_CORE*/ -/** - * @} - */ - -#if defined(DUAL_CORE) -/** @defgroup RCC_LL_EF_BOOT_CPU CPU - * @{ - */ - -/** - * @brief Force CM4 boot (if hold by option byte BCM4 = 0) - * @rmtoll GCR BOOT_C2 LL_RCC_ForceCM4Boot - * @retval None. - */ -__STATIC_INLINE void LL_RCC_ForceCM4Boot(void) -{ - SET_BIT(RCC->GCR, RCC_GCR_BOOT_C2); -} - -/** - * @brief Check if CM4 boot is forced - * @rmtoll GCR BOOT_C2 LL_RCC_IsCM4BootForced - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsCM4BootForced(void) -{ - return ((READ_BIT(RCC->GCR, RCC_GCR_BOOT_C2) == RCC_GCR_BOOT_C2) ? 1UL : 0UL); -} - -/** - * @brief Force CM7 boot (if hold by option byte BCM7 = 0) - * @rmtoll GCR BOOT_C1 LL_RCC_ForceCM7Boot - * @retval None. - */ -__STATIC_INLINE void LL_RCC_ForceCM7Boot(void) -{ - SET_BIT(RCC->GCR, RCC_GCR_BOOT_C1); -} - -/** - * @brief Check if CM7 boot is forced - * @rmtoll GCR BOOT_C1 LL_RCC_IsCM7BootForced - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsCM7BootForced(void) -{ - return ((READ_BIT(RCC->GCR, RCC_GCR_BOOT_C1) == RCC_GCR_BOOT_C1) ? 1UL : 0UL); -} - -/** - * @} - */ -#endif /*DUAL_CORE*/ - -/** @defgroup RCC_LL_EF_LSE LSE - * @{ - */ - -/** - * @brief Enable the Clock Security System on LSE. - * @note Once LSE Clock Security System is enabled it cannot be changed anymore unless - * a clock failure is detected. - * @rmtoll BDCR LSECSSON LL_RCC_LSE_EnableCSS - * @retval None - */ -__STATIC_INLINE void LL_RCC_LSE_EnableCSS(void) -{ - SET_BIT(RCC->BDCR, RCC_BDCR_LSECSSON); -} - -/** - * @brief Check if LSE failure is detected by Clock Security System - * @rmtoll BDCR LSECSSD LL_RCC_LSE_IsFailureDetected - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_LSE_IsFailureDetected(void) -{ - return ((READ_BIT(RCC->BDCR, RCC_BDCR_LSECSSD) == (RCC_BDCR_LSECSSD)) ? 1UL : 0UL); -} - -/** - * @brief Enable Low Speed External (LSE) crystal. - * @rmtoll BDCR LSEON LL_RCC_LSE_Enable - * @retval None - */ -__STATIC_INLINE void LL_RCC_LSE_Enable(void) -{ - SET_BIT(RCC->BDCR, RCC_BDCR_LSEON); -} - -/** - * @brief Disable Low Speed External (LSE) crystal. - * @rmtoll BDCR LSEON LL_RCC_LSE_Disable - * @retval None - */ -__STATIC_INLINE void LL_RCC_LSE_Disable(void) -{ - CLEAR_BIT(RCC->BDCR, RCC_BDCR_LSEON); -} - -/** - * @brief Enable external clock source (LSE bypass). - * @rmtoll BDCR LSEBYP LL_RCC_LSE_EnableBypass - * @retval None - */ -__STATIC_INLINE void LL_RCC_LSE_EnableBypass(void) -{ - SET_BIT(RCC->BDCR, RCC_BDCR_LSEBYP); -} - -/** - * @brief Disable external clock source (LSE bypass). - * @rmtoll BDCR LSEBYP LL_RCC_LSE_DisableBypass - * @retval None - */ -__STATIC_INLINE void LL_RCC_LSE_DisableBypass(void) -{ - CLEAR_BIT(RCC->BDCR, RCC_BDCR_LSEBYP); -} - -#if defined(RCC_BDCR_LSEEXT) -/** - * @brief Enable Low-speed external DIGITAL clock type in Bypass mode (not to be used if RTC is active). - * @note The external clock must be enabled with the LSEON bit, to be used by the device. - * The LSEEXT bit can be written only if the LSE oscillator is disabled. - * @rmtoll BDCR LSEEXT LL_RCC_LSE_SelectDigitalClock - * @retval None - */ -__STATIC_INLINE void LL_RCC_LSE_SelectDigitalClock(void) -{ - SET_BIT(RCC->BDCR, RCC_BDCR_LSEEXT); -} - -/** - * @brief Enable Low-speed external ANALOG clock type in Bypass mode (default after Backup domain reset). - * @note The external clock must be enabled with the LSEON bit, to be used by the device. - * The LSEEXT bit can be written only if the LSE oscillator is disabled. - * @rmtoll BDCR LSEEXT LL_RCC_LSE_SelectAnalogClock - * @retval None - */ -__STATIC_INLINE void LL_RCC_LSE_SelectAnalogClock(void) -{ - CLEAR_BIT(RCC->BDCR, RCC_BDCR_LSEEXT); -} -#endif /* RCC_BDCR_LSEEXT */ - -/** - * @brief Set LSE oscillator drive capability - * @note The oscillator is in Xtal mode when it is not in bypass mode. - * @rmtoll BDCR LSEDRV LL_RCC_LSE_SetDriveCapability - * @param LSEDrive This parameter can be one of the following values: - * @arg @ref LL_RCC_LSEDRIVE_LOW - * @arg @ref LL_RCC_LSEDRIVE_MEDIUMLOW - * @arg @ref LL_RCC_LSEDRIVE_MEDIUMHIGH - * @arg @ref LL_RCC_LSEDRIVE_HIGH - * @retval None - */ -__STATIC_INLINE void LL_RCC_LSE_SetDriveCapability(uint32_t LSEDrive) -{ - MODIFY_REG(RCC->BDCR, RCC_BDCR_LSEDRV, LSEDrive); -} - -/** - * @brief Get LSE oscillator drive capability - * @rmtoll BDCR LSEDRV LL_RCC_LSE_GetDriveCapability - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_LSEDRIVE_LOW - * @arg @ref LL_RCC_LSEDRIVE_MEDIUMLOW - * @arg @ref LL_RCC_LSEDRIVE_MEDIUMHIGH - * @arg @ref LL_RCC_LSEDRIVE_HIGH - */ -__STATIC_INLINE uint32_t LL_RCC_LSE_GetDriveCapability(void) -{ - return (uint32_t)(READ_BIT(RCC->BDCR, RCC_BDCR_LSEDRV)); -} - -/** - * @brief Check if LSE oscillator Ready - * @rmtoll BDCR LSERDY LL_RCC_LSE_IsReady - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_LSE_IsReady(void) -{ - return ((READ_BIT(RCC->BDCR, RCC_BDCR_LSERDY) == (RCC_BDCR_LSERDY)) ? 1UL : 0UL); -} - -/** - * @} - */ - -/** @defgroup RCC_LL_EF_LSI LSI - * @{ - */ - -/** - * @brief Enable LSI Oscillator - * @rmtoll CSR LSION LL_RCC_LSI_Enable - * @retval None - */ -__STATIC_INLINE void LL_RCC_LSI_Enable(void) -{ - SET_BIT(RCC->CSR, RCC_CSR_LSION); -} - -/** - * @brief Disable LSI Oscillator - * @rmtoll CSR LSION LL_RCC_LSI_Disable - * @retval None - */ -__STATIC_INLINE void LL_RCC_LSI_Disable(void) -{ - CLEAR_BIT(RCC->CSR, RCC_CSR_LSION); -} - -/** - * @brief Check if LSI is Ready - * @rmtoll CSR LSIRDY LL_RCC_LSI_IsReady - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_LSI_IsReady(void) -{ - return ((READ_BIT(RCC->CSR, RCC_CSR_LSIRDY) == (RCC_CSR_LSIRDY)) ? 1UL : 0UL); -} - -/** - * @} - */ - -/** @defgroup RCC_LL_EF_System System - * @{ - */ - -/** - * @brief Configure the system clock source - * @rmtoll CFGR SW LL_RCC_SetSysClkSource - * @param Source This parameter can be one of the following values: - * @arg @ref LL_RCC_SYS_CLKSOURCE_HSI - * @arg @ref LL_RCC_SYS_CLKSOURCE_CSI - * @arg @ref LL_RCC_SYS_CLKSOURCE_HSE - * @arg @ref LL_RCC_SYS_CLKSOURCE_PLL1 - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetSysClkSource(uint32_t Source) -{ - MODIFY_REG(RCC->CFGR, RCC_CFGR_SW, Source); -} - -/** - * @brief Get the system clock source - * @rmtoll CFGR SWS LL_RCC_GetSysClkSource - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_SYS_CLKSOURCE_STATUS_HSI - * @arg @ref LL_RCC_SYS_CLKSOURCE_STATUS_CSI - * @arg @ref LL_RCC_SYS_CLKSOURCE_STATUS_HSE - * @arg @ref LL_RCC_SYS_CLKSOURCE_STATUS_PLL1 - */ -__STATIC_INLINE uint32_t LL_RCC_GetSysClkSource(void) -{ - return (uint32_t)(READ_BIT(RCC->CFGR, RCC_CFGR_SWS)); -} - -/** - * @brief Configure the system wakeup clock source - * @rmtoll CFGR STOPWUCK LL_RCC_SetSysWakeUpClkSource - * @param Source This parameter can be one of the following values: - * @arg @ref LL_RCC_SYSWAKEUP_CLKSOURCE_HSI - * @arg @ref LL_RCC_SYSWAKEUP_CLKSOURCE_CSI - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetSysWakeUpClkSource(uint32_t Source) -{ - MODIFY_REG(RCC->CFGR, RCC_CFGR_STOPWUCK, Source); -} - -/** - * @brief Get the system wakeup clock source - * @rmtoll CFGR STOPWUCK LL_RCC_GetSysWakeUpClkSource - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_SYSWAKEUP_CLKSOURCE_HSI - * @arg @ref LL_RCC_SYSWAKEUP_CLKSOURCE_CSI - */ -__STATIC_INLINE uint32_t LL_RCC_GetSysWakeUpClkSource(void) -{ - return (uint32_t)(READ_BIT(RCC->CFGR, RCC_CFGR_STOPWUCK)); -} - -/** - * @brief Configure the kernel wakeup clock source - * @rmtoll CFGR STOPKERWUCK LL_RCC_SetKerWakeUpClkSource - * @param Source This parameter can be one of the following values: - * @arg @ref LL_RCC_KERWAKEUP_CLKSOURCE_HSI - * @arg @ref LL_RCC_KERWAKEUP_CLKSOURCE_CSI - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetKerWakeUpClkSource(uint32_t Source) -{ - MODIFY_REG(RCC->CFGR, RCC_CFGR_STOPKERWUCK, Source); -} - -/** - * @brief Get the kernel wakeup clock source - * @rmtoll CFGR STOPKERWUCK LL_RCC_GetKerWakeUpClkSource - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_KERWAKEUP_CLKSOURCE_HSI - * @arg @ref LL_RCC_KERWAKEUP_CLKSOURCE_CSI - */ -__STATIC_INLINE uint32_t LL_RCC_GetKerWakeUpClkSource(void) -{ - return (uint32_t)(READ_BIT(RCC->CFGR, RCC_CFGR_STOPKERWUCK)); -} - -/** - * @brief Set System prescaler - * @rmtoll D1CFGR/CDCFGR1 D1CPRE/CDCPRE LL_RCC_SetSysPrescaler - * @param Prescaler This parameter can be one of the following values: - * @arg @ref LL_RCC_SYSCLK_DIV_1 - * @arg @ref LL_RCC_SYSCLK_DIV_2 - * @arg @ref LL_RCC_SYSCLK_DIV_4 - * @arg @ref LL_RCC_SYSCLK_DIV_8 - * @arg @ref LL_RCC_SYSCLK_DIV_16 - * @arg @ref LL_RCC_SYSCLK_DIV_64 - * @arg @ref LL_RCC_SYSCLK_DIV_128 - * @arg @ref LL_RCC_SYSCLK_DIV_256 - * @arg @ref LL_RCC_SYSCLK_DIV_512 - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetSysPrescaler(uint32_t Prescaler) -{ -#if defined(RCC_D1CFGR_D1CPRE) - MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1CPRE, Prescaler); -#else - MODIFY_REG(RCC->CDCFGR1, RCC_CDCFGR1_CDCPRE, Prescaler); -#endif /* RCC_D1CFGR_D1CPRE */ -} - -/** - * @brief Set AHB prescaler - * @rmtoll D1CFGR/CDCFGR1 HPRE LL_RCC_SetAHBPrescaler - * @param Prescaler This parameter can be one of the following values: - * @arg @ref LL_RCC_AHB_DIV_1 - * @arg @ref LL_RCC_AHB_DIV_2 - * @arg @ref LL_RCC_AHB_DIV_4 - * @arg @ref LL_RCC_AHB_DIV_8 - * @arg @ref LL_RCC_AHB_DIV_16 - * @arg @ref LL_RCC_AHB_DIV_64 - * @arg @ref LL_RCC_AHB_DIV_128 - * @arg @ref LL_RCC_AHB_DIV_256 - * @arg @ref LL_RCC_AHB_DIV_512 - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetAHBPrescaler(uint32_t Prescaler) -{ -#if defined(RCC_D1CFGR_HPRE) - MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, Prescaler); -#else - MODIFY_REG(RCC->CDCFGR1, RCC_CDCFGR1_HPRE, Prescaler); -#endif /* RCC_D1CFGR_HPRE */ -} - -/** - * @brief Set APB1 prescaler - * @rmtoll D2CFGR/CDCFGR2 D2PPRE1/CDPPRE1 LL_RCC_SetAPB1Prescaler - * @param Prescaler This parameter can be one of the following values: - * @arg @ref LL_RCC_APB1_DIV_1 - * @arg @ref LL_RCC_APB1_DIV_2 - * @arg @ref LL_RCC_APB1_DIV_4 - * @arg @ref LL_RCC_APB1_DIV_8 - * @arg @ref LL_RCC_APB1_DIV_16 - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetAPB1Prescaler(uint32_t Prescaler) -{ -#if defined(RCC_D2CFGR_D2PPRE1) - MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, Prescaler); -#else - MODIFY_REG(RCC->CDCFGR2, RCC_CDCFGR2_CDPPRE1, Prescaler); -#endif /* RCC_D2CFGR_D2PPRE1 */ -} - -/** - * @brief Set APB2 prescaler - * @rmtoll D2CFGR/CDCFGR2 D2PPRE2/CDPPRE2 LL_RCC_SetAPB2Prescaler - * @param Prescaler This parameter can be one of the following values: - * @arg @ref LL_RCC_APB2_DIV_1 - * @arg @ref LL_RCC_APB2_DIV_2 - * @arg @ref LL_RCC_APB2_DIV_4 - * @arg @ref LL_RCC_APB2_DIV_8 - * @arg @ref LL_RCC_APB2_DIV_16 - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetAPB2Prescaler(uint32_t Prescaler) -{ -#if defined(RCC_D2CFGR_D2PPRE2) - MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, Prescaler); -#else - MODIFY_REG(RCC->CDCFGR2, RCC_CDCFGR2_CDPPRE2, Prescaler); -#endif /* RCC_D2CFGR_D2PPRE2 */ -} - -/** - * @brief Set APB3 prescaler - * @rmtoll D1CFGR/CDCFGR1 D1PPRE/CDPPRE LL_RCC_SetAPB3Prescaler - * @param Prescaler This parameter can be one of the following values: - * @arg @ref LL_RCC_APB3_DIV_1 - * @arg @ref LL_RCC_APB3_DIV_2 - * @arg @ref LL_RCC_APB3_DIV_4 - * @arg @ref LL_RCC_APB3_DIV_8 - * @arg @ref LL_RCC_APB3_DIV_16 - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetAPB3Prescaler(uint32_t Prescaler) -{ -#if defined(RCC_D1CFGR_D1PPRE) - MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, Prescaler); -#else - MODIFY_REG(RCC->CDCFGR1, RCC_CDCFGR1_CDPPRE, Prescaler); -#endif /* RCC_D1CFGR_D1PPRE */ -} - -/** - * @brief Set APB4 prescaler - * @rmtoll D3CFGR/SRDCFGR D3PPRE/SRDPPRE LL_RCC_SetAPB4Prescaler - * @param Prescaler This parameter can be one of the following values: - * @arg @ref LL_RCC_APB4_DIV_1 - * @arg @ref LL_RCC_APB4_DIV_2 - * @arg @ref LL_RCC_APB4_DIV_4 - * @arg @ref LL_RCC_APB4_DIV_8 - * @arg @ref LL_RCC_APB4_DIV_16 - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetAPB4Prescaler(uint32_t Prescaler) -{ -#if defined(RCC_D3CFGR_D3PPRE) - MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, Prescaler); -#else - MODIFY_REG(RCC->SRDCFGR, RCC_SRDCFGR_SRDPPRE, Prescaler); -#endif /* RCC_D3CFGR_D3PPRE */ -} - -/** - * @brief Get System prescaler - * @rmtoll D1CFGR/CDCFGR1 D1CPRE/CDCPRE LL_RCC_GetSysPrescaler - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_SYSCLK_DIV_1 - * @arg @ref LL_RCC_SYSCLK_DIV_2 - * @arg @ref LL_RCC_SYSCLK_DIV_4 - * @arg @ref LL_RCC_SYSCLK_DIV_8 - * @arg @ref LL_RCC_SYSCLK_DIV_16 - * @arg @ref LL_RCC_SYSCLK_DIV_64 - * @arg @ref LL_RCC_SYSCLK_DIV_128 - * @arg @ref LL_RCC_SYSCLK_DIV_256 - * @arg @ref LL_RCC_SYSCLK_DIV_512 - */ -__STATIC_INLINE uint32_t LL_RCC_GetSysPrescaler(void) -{ -#if defined(RCC_D1CFGR_D1CPRE) - return (uint32_t)(READ_BIT(RCC->D1CFGR, RCC_D1CFGR_D1CPRE)); -#else - return (uint32_t)(READ_BIT(RCC->CDCFGR1, RCC_CDCFGR1_CDCPRE)); -#endif /* RCC_D1CFGR_D1CPRE */ -} - -/** - * @brief Get AHB prescaler - * @rmtoll D1CFGR/ CDCFGR1 HPRE LL_RCC_GetAHBPrescaler - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_AHB_DIV_1 - * @arg @ref LL_RCC_AHB_DIV_2 - * @arg @ref LL_RCC_AHB_DIV_4 - * @arg @ref LL_RCC_AHB_DIV_8 - * @arg @ref LL_RCC_AHB_DIV_16 - * @arg @ref LL_RCC_AHB_DIV_64 - * @arg @ref LL_RCC_AHB_DIV_128 - * @arg @ref LL_RCC_AHB_DIV_256 - * @arg @ref LL_RCC_AHB_DIV_512 - */ -__STATIC_INLINE uint32_t LL_RCC_GetAHBPrescaler(void) -{ -#if defined(RCC_D1CFGR_HPRE) - return (uint32_t)(READ_BIT(RCC->D1CFGR, RCC_D1CFGR_HPRE)); -#else - return (uint32_t)(READ_BIT(RCC->CDCFGR1, RCC_CDCFGR1_HPRE)); -#endif /* RCC_D1CFGR_HPRE */ -} - -/** - * @brief Get APB1 prescaler - * @rmtoll D2CFGR/CDCFGR2 D2PPRE1/CDPPRE1 LL_RCC_GetAPB1Prescaler - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_APB1_DIV_1 - * @arg @ref LL_RCC_APB1_DIV_2 - * @arg @ref LL_RCC_APB1_DIV_4 - * @arg @ref LL_RCC_APB1_DIV_8 - * @arg @ref LL_RCC_APB1_DIV_16 - */ -__STATIC_INLINE uint32_t LL_RCC_GetAPB1Prescaler(void) -{ -#if defined(RCC_D2CFGR_D2PPRE1) - return (uint32_t)(READ_BIT(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1)); -#else - return (uint32_t)(READ_BIT(RCC->CDCFGR2, RCC_CDCFGR2_CDPPRE1)); -#endif /* RCC_D2CFGR_D2PPRE1 */ -} - -/** - * @brief Get APB2 prescaler - * @rmtoll D2CFGR/CDCFGR2 D2PPRE2/CDPPRE2 LL_RCC_GetAPB2Prescaler - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_APB2_DIV_1 - * @arg @ref LL_RCC_APB2_DIV_2 - * @arg @ref LL_RCC_APB2_DIV_4 - * @arg @ref LL_RCC_APB2_DIV_8 - * @arg @ref LL_RCC_APB2_DIV_16 - */ -__STATIC_INLINE uint32_t LL_RCC_GetAPB2Prescaler(void) -{ -#if defined(RCC_D2CFGR_D2PPRE2) - return (uint32_t)(READ_BIT(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2)); -#else - return (uint32_t)(READ_BIT(RCC->CDCFGR2, RCC_CDCFGR2_CDPPRE2)); -#endif /* RCC_D2CFGR_D2PPRE2 */ -} - -/** - * @brief Get APB3 prescaler - * @rmtoll D1CFGR/CDCFGR1 D1PPRE/CDPPRE LL_RCC_GetAPB3Prescaler - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_APB3_DIV_1 - * @arg @ref LL_RCC_APB3_DIV_2 - * @arg @ref LL_RCC_APB3_DIV_4 - * @arg @ref LL_RCC_APB3_DIV_8 - * @arg @ref LL_RCC_APB3_DIV_16 - */ -__STATIC_INLINE uint32_t LL_RCC_GetAPB3Prescaler(void) -{ -#if defined(RCC_D1CFGR_D1PPRE) - return (uint32_t)(READ_BIT(RCC->D1CFGR, RCC_D1CFGR_D1PPRE)); -#else - return (uint32_t)(READ_BIT(RCC->CDCFGR1, RCC_CDCFGR1_CDPPRE)); -#endif /* RCC_D1CFGR_D1PPRE */ -} - -/** - * @brief Get APB4 prescaler - * @rmtoll D3CFGR/SRDCFGR D3PPRE/SRDPPRE LL_RCC_GetAPB4Prescaler - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_APB4_DIV_1 - * @arg @ref LL_RCC_APB4_DIV_2 - * @arg @ref LL_RCC_APB4_DIV_4 - * @arg @ref LL_RCC_APB4_DIV_8 - * @arg @ref LL_RCC_APB4_DIV_16 - */ -__STATIC_INLINE uint32_t LL_RCC_GetAPB4Prescaler(void) -{ -#if defined(RCC_D3CFGR_D3PPRE) - return (uint32_t)(READ_BIT(RCC->D3CFGR, RCC_D3CFGR_D3PPRE)); -#else - return (uint32_t)(READ_BIT(RCC->SRDCFGR, RCC_SRDCFGR_SRDPPRE)); -#endif /* RCC_D3CFGR_D3PPRE */ -} - -/** - * @} - */ - -/** @defgroup RCC_LL_EF_MCO MCO - * @{ - */ - -/** - * @brief Configure MCOx - * @rmtoll CFGR MCO1 LL_RCC_ConfigMCO\n - * CFGR MCO1PRE LL_RCC_ConfigMCO\n - * CFGR MCO2 LL_RCC_ConfigMCO\n - * CFGR MCO2PRE LL_RCC_ConfigMCO - * @param MCOxSource This parameter can be one of the following values: - * @arg @ref LL_RCC_MCO1SOURCE_HSI - * @arg @ref LL_RCC_MCO1SOURCE_LSE - * @arg @ref LL_RCC_MCO1SOURCE_HSE - * @arg @ref LL_RCC_MCO1SOURCE_PLL1QCLK - * @arg @ref LL_RCC_MCO1SOURCE_HSI48 - * @arg @ref LL_RCC_MCO2SOURCE_SYSCLK - * @arg @ref LL_RCC_MCO2SOURCE_PLL2PCLK - * @arg @ref LL_RCC_MCO2SOURCE_HSE - * @arg @ref LL_RCC_MCO2SOURCE_PLL1PCLK - * @arg @ref LL_RCC_MCO2SOURCE_CSI - * @arg @ref LL_RCC_MCO2SOURCE_LSI - * @param MCOxPrescaler This parameter can be one of the following values: - * @arg @ref LL_RCC_MCO1_DIV_1 - * @arg @ref LL_RCC_MCO1_DIV_2 - * @arg @ref LL_RCC_MCO1_DIV_3 - * @arg @ref LL_RCC_MCO1_DIV_4 - * @arg @ref LL_RCC_MCO1_DIV_5 - * @arg @ref LL_RCC_MCO1_DIV_6 - * @arg @ref LL_RCC_MCO1_DIV_7 - * @arg @ref LL_RCC_MCO1_DIV_8 - * @arg @ref LL_RCC_MCO1_DIV_9 - * @arg @ref LL_RCC_MCO1_DIV_10 - * @arg @ref LL_RCC_MCO1_DIV_11 - * @arg @ref LL_RCC_MCO1_DIV_12 - * @arg @ref LL_RCC_MCO1_DIV_13 - * @arg @ref LL_RCC_MCO1_DIV_14 - * @arg @ref LL_RCC_MCO1_DIV_15 - * @arg @ref LL_RCC_MCO2_DIV_1 - * @arg @ref LL_RCC_MCO2_DIV_2 - * @arg @ref LL_RCC_MCO2_DIV_3 - * @arg @ref LL_RCC_MCO2_DIV_4 - * @arg @ref LL_RCC_MCO2_DIV_5 - * @arg @ref LL_RCC_MCO2_DIV_6 - * @arg @ref LL_RCC_MCO2_DIV_7 - * @arg @ref LL_RCC_MCO2_DIV_8 - * @arg @ref LL_RCC_MCO2_DIV_9 - * @arg @ref LL_RCC_MCO2_DIV_10 - * @arg @ref LL_RCC_MCO2_DIV_11 - * @arg @ref LL_RCC_MCO2_DIV_12 - * @arg @ref LL_RCC_MCO2_DIV_13 - * @arg @ref LL_RCC_MCO2_DIV_14 - * @arg @ref LL_RCC_MCO2_DIV_15 - * @retval None - */ -__STATIC_INLINE void LL_RCC_ConfigMCO(uint32_t MCOxSource, uint32_t MCOxPrescaler) -{ - MODIFY_REG(RCC->CFGR, (MCOxSource << 16U) | (MCOxPrescaler << 16U), (MCOxSource & 0xFFFF0000U) | (MCOxPrescaler & 0xFFFF0000U)); -} - -/** - * @} - */ - -/** @defgroup RCC_LL_EF_Peripheral_Clock_Source Peripheral Clock Source - * @{ - */ - -/** - * @brief Configure periph clock source - * @rmtoll D2CCIP1R/CDCCIP1R * LL_RCC_SetClockSource\n - * D2CCIP2R/CDCCIP2R * LL_RCC_SetClockSource\n - * D3CCIPR/SRDCCIPR * LL_RCC_SetClockSource - * @param ClkSource This parameter can be one of the following values: - * @arg @ref LL_RCC_USART16_CLKSOURCE_PCLK2 - * @arg @ref LL_RCC_USART16_CLKSOURCE_PLL2Q - * @arg @ref LL_RCC_USART16_CLKSOURCE_PLL3Q - * @arg @ref LL_RCC_USART16_CLKSOURCE_HSI - * @arg @ref LL_RCC_USART16_CLKSOURCE_CSI - * @arg @ref LL_RCC_USART16_CLKSOURCE_LSE - * @arg @ref LL_RCC_USART234578_CLKSOURCE_PCLK1 - * @arg @ref LL_RCC_USART234578_CLKSOURCE_PLL2Q - * @arg @ref LL_RCC_USART234578_CLKSOURCE_PLL3Q - * @arg @ref LL_RCC_USART234578_CLKSOURCE_HSI - * @arg @ref LL_RCC_USART234578_CLKSOURCE_CSI - * @arg @ref LL_RCC_USART234578_CLKSOURCE_LSE - * @arg @ref LL_RCC_I2C123_CLKSOURCE_PCLK1 - * @arg @ref LL_RCC_I2C123_CLKSOURCE_PLL3R - * @arg @ref LL_RCC_I2C123_CLKSOURCE_HSI - * @arg @ref LL_RCC_I2C123_CLKSOURCE_CSI - * @arg @ref LL_RCC_I2C4_CLKSOURCE_PCLK4 - * @arg @ref LL_RCC_I2C4_CLKSOURCE_PLL3R - * @arg @ref LL_RCC_I2C4_CLKSOURCE_HSI - * @arg @ref LL_RCC_I2C4_CLKSOURCE_CSI - * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_PCLK1 - * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_PLL2P - * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_PLL3R - * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_LSE - * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_LSI - * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_CLKP - * @arg @ref LL_RCC_LPTIM2_CLKSOURCE_PCLK4 - * @arg @ref LL_RCC_LPTIM2_CLKSOURCE_PLL2P - * @arg @ref LL_RCC_LPTIM2_CLKSOURCE_PLL3R - * @arg @ref LL_RCC_LPTIM2_CLKSOURCE_LSE - * @arg @ref LL_RCC_LPTIM2_CLKSOURCE_LSI - * @arg @ref LL_RCC_LPTIM2_CLKSOURCE_CLKP - * @arg @ref LL_RCC_LPTIM345_CLKSOURCE_PCLK4 - * @arg @ref LL_RCC_LPTIM345_CLKSOURCE_PLL2P - * @arg @ref LL_RCC_LPTIM345_CLKSOURCE_PLL3R - * @arg @ref LL_RCC_LPTIM345_CLKSOURCE_LSE - * @arg @ref LL_RCC_LPTIM345_CLKSOURCE_LSI - * @arg @ref LL_RCC_LPTIM345_CLKSOURCE_CLKP - * @arg @ref LL_RCC_SAI1_CLKSOURCE_PLL1Q - * @arg @ref LL_RCC_SAI1_CLKSOURCE_PLL2P - * @arg @ref LL_RCC_SAI1_CLKSOURCE_PLL3P - * @arg @ref LL_RCC_SAI1_CLKSOURCE_I2S_CKIN - * @arg @ref LL_RCC_SAI1_CLKSOURCE_CLKP - * @arg @ref LL_RCC_SAI23_CLKSOURCE_PLL1Q (*) - * @arg @ref LL_RCC_SAI23_CLKSOURCE_PLL2P (*) - * @arg @ref LL_RCC_SAI23_CLKSOURCE_PLL3P (*) - * @arg @ref LL_RCC_SAI23_CLKSOURCE_I2S_CKIN (*) - * @arg @ref LL_RCC_SAI23_CLKSOURCE_CLKP (*) - * @arg @ref LL_RCC_SAI4A_CLKSOURCE_PLL1Q (*) - * @arg @ref LL_RCC_SAI4A_CLKSOURCE_PLL2P (*) - * @arg @ref LL_RCC_SAI4A_CLKSOURCE_PLL3P (*) - * @arg @ref LL_RCC_SAI4A_CLKSOURCE_I2S_CKIN (*) - * @arg @ref LL_RCC_SAI4A_CLKSOURCE_SPDIF (*) - * @arg @ref LL_RCC_SAI2A_CLKSOURCE_PLL1Q (*) - * @arg @ref LL_RCC_SAI2A_CLKSOURCE_PLL2P (*) - * @arg @ref LL_RCC_SAI2A_CLKSOURCE_PLL3P (*) - * @arg @ref LL_RCC_SAI2A_CLKSOURCE_I2S_CKIN (*) - * @arg @ref LL_RCC_SAI2A_CLKSOURCE_CLKP (*) - * @arg @ref LL_RCC_SAI2A_CLKSOURCE_SPDIF (*) - * @arg @ref LL_RCC_SAI4B_CLKSOURCE_PLL1Q (*) - * @arg @ref LL_RCC_SAI4B_CLKSOURCE_PLL2P (*) - * @arg @ref LL_RCC_SAI4B_CLKSOURCE_PLL3P (*) - * @arg @ref LL_RCC_SAI4B_CLKSOURCE_I2S_CKIN (*) - * @arg @ref LL_RCC_SAI4B_CLKSOURCE_CLKP (*) - * @arg @ref LL_RCC_SAI4B_CLKSOURCE_SPDIF (*) - * @arg @ref LL_RCC_SAI2B_CLKSOURCE_PLL1Q (*) - * @arg @ref LL_RCC_SAI2B_CLKSOURCE_PLL2P (*) - * @arg @ref LL_RCC_SAI2B_CLKSOURCE_PLL3P (*) - * @arg @ref LL_RCC_SAI2B_CLKSOURCE_I2S_CKIN (*) - * @arg @ref LL_RCC_SAI2B_CLKSOURCE_CLKP (*) - * @arg @ref LL_RCC_SAI2B_CLKSOURCE_SPDIF (*) - * @arg @ref LL_RCC_SPI123_CLKSOURCE_PLL1Q - * @arg @ref LL_RCC_SPI123_CLKSOURCE_PLL2P - * @arg @ref LL_RCC_SPI123_CLKSOURCE_PLL3P - * @arg @ref LL_RCC_SPI123_CLKSOURCE_I2S_CKIN - * @arg @ref LL_RCC_SPI123_CLKSOURCE_CLKP - * @arg @ref LL_RCC_SPI45_CLKSOURCE_PCLK2 - * @arg @ref LL_RCC_SPI45_CLKSOURCE_PLL2Q - * @arg @ref LL_RCC_SPI45_CLKSOURCE_PLL3Q - * @arg @ref LL_RCC_SPI45_CLKSOURCE_HSI - * @arg @ref LL_RCC_SPI45_CLKSOURCE_CSI - * @arg @ref LL_RCC_SPI45_CLKSOURCE_HSE - * @arg @ref LL_RCC_SPI6_CLKSOURCE_PCLK4 - * @arg @ref LL_RCC_SPI6_CLKSOURCE_PLL2Q - * @arg @ref LL_RCC_SPI6_CLKSOURCE_PLL3Q - * @arg @ref LL_RCC_SPI6_CLKSOURCE_HSI - * @arg @ref LL_RCC_SPI6_CLKSOURCE_CSI - * @arg @ref LL_RCC_SPI6_CLKSOURCE_HSE - * @arg @ref LL_RCC_SPI6_CLKSOURCE_I2S_CKIN (*) - * - * (*) value not defined in all devices. - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetClockSource(uint32_t ClkSource) -{ -#if defined(RCC_D1CCIPR_FMCSEL) - uint32_t *pReg = (uint32_t *)((uint32_t)&RCC->D1CCIPR + LL_CLKSOURCE_REG(ClkSource)); -#else - uint32_t *pReg = (uint32_t *)((uint32_t)&RCC->CDCCIPR + LL_CLKSOURCE_REG(ClkSource)); -#endif /* */ - MODIFY_REG(*pReg, LL_CLKSOURCE_MASK(ClkSource), LL_CLKSOURCE_CONFIG(ClkSource)); -} - -/** - * @brief Configure USARTx clock source - * @rmtoll D2CCIP2R / D2CCIP2R USART16SEL LL_RCC_SetUSARTClockSource\n - * D2CCIP2R / D2CCIP2R USART28SEL LL_RCC_SetUSARTClockSource - * @param ClkSource This parameter can be one of the following values: - * @arg @ref LL_RCC_USART16_CLKSOURCE_PCLK2 - * @arg @ref LL_RCC_USART16_CLKSOURCE_PLL2Q - * @arg @ref LL_RCC_USART16_CLKSOURCE_PLL3Q - * @arg @ref LL_RCC_USART16_CLKSOURCE_HSI - * @arg @ref LL_RCC_USART16_CLKSOURCE_CSI - * @arg @ref LL_RCC_USART16_CLKSOURCE_LSE - * @arg @ref LL_RCC_USART234578_CLKSOURCE_PCLK1 - * @arg @ref LL_RCC_USART234578_CLKSOURCE_PLL2Q - * @arg @ref LL_RCC_USART234578_CLKSOURCE_PLL3Q - * @arg @ref LL_RCC_USART234578_CLKSOURCE_HSI - * @arg @ref LL_RCC_USART234578_CLKSOURCE_CSI - * @arg @ref LL_RCC_USART234578_CLKSOURCE_LSE - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetUSARTClockSource(uint32_t ClkSource) -{ - LL_RCC_SetClockSource(ClkSource); -} - -/** - * @brief Configure LPUARTx clock source - * @rmtoll D3CCIPR / SRDCCIPR LPUART1SEL LL_RCC_SetLPUARTClockSource - * @param ClkSource This parameter can be one of the following values: - * @arg @ref LL_RCC_LPUART1_CLKSOURCE_PCLK4 - * @arg @ref LL_RCC_LPUART1_CLKSOURCE_PLL2Q - * @arg @ref LL_RCC_LPUART1_CLKSOURCE_PLL3Q - * @arg @ref LL_RCC_LPUART1_CLKSOURCE_HSI - * @arg @ref LL_RCC_LPUART1_CLKSOURCE_CSI - * @arg @ref LL_RCC_LPUART1_CLKSOURCE_LSE - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetLPUARTClockSource(uint32_t ClkSource) -{ -#if defined(RCC_D3CCIPR_LPUART1SEL) - MODIFY_REG(RCC->D3CCIPR, RCC_D3CCIPR_LPUART1SEL, ClkSource); -#else - MODIFY_REG(RCC->SRDCCIPR, RCC_SRDCCIPR_LPUART1SEL, ClkSource); -#endif /* RCC_D3CCIPR_LPUART1SEL */ -} - -/** - * @brief Configure I2Cx clock source - * @rmtoll D2CCIP2R / CDCCIP2R I2C123SEL LL_RCC_SetI2CClockSource\n - * D3CCIPR / SRDCCIPR I2C4SEL LL_RCC_SetI2CClockSource - * @param ClkSource This parameter can be one of the following values: - * @arg @ref LL_RCC_I2C123_CLKSOURCE_PCLK1 - * @arg @ref LL_RCC_I2C123_CLKSOURCE_PLL3R - * @arg @ref LL_RCC_I2C123_CLKSOURCE_HSI - * @arg @ref LL_RCC_I2C123_CLKSOURCE_CSI - * @arg @ref LL_RCC_I2C4_CLKSOURCE_PCLK4 - * @arg @ref LL_RCC_I2C4_CLKSOURCE_PLL3R - * @arg @ref LL_RCC_I2C4_CLKSOURCE_HSI - * @arg @ref LL_RCC_I2C4_CLKSOURCE_CSI - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetI2CClockSource(uint32_t ClkSource) -{ - LL_RCC_SetClockSource(ClkSource); -} - -/** - * @brief Configure LPTIMx clock source - * @rmtoll D2CCIP2R / CDCCIP2R LPTIM1SEL LL_RCC_SetLPTIMClockSource - * D3CCIPR / SRDCCIPR LPTIM2SEL LL_RCC_SetLPTIMClockSource\n - * D3CCIPR / SRDCCIPR LPTIM345SEL LL_RCC_SetLPTIMClockSource - * @param ClkSource This parameter can be one of the following values: - * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_PCLK1 - * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_PLL2P - * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_PLL3R - * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_LSE - * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_LSI - * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_CLKP - * @arg @ref LL_RCC_LPTIM2_CLKSOURCE_PCLK4 - * @arg @ref LL_RCC_LPTIM2_CLKSOURCE_PLL2P - * @arg @ref LL_RCC_LPTIM2_CLKSOURCE_PLL3R - * @arg @ref LL_RCC_LPTIM2_CLKSOURCE_LSE - * @arg @ref LL_RCC_LPTIM2_CLKSOURCE_LSI - * @arg @ref LL_RCC_LPTIM2_CLKSOURCE_CLKP - * @arg @ref LL_RCC_LPTIM345_CLKSOURCE_PCLK4 - * @arg @ref LL_RCC_LPTIM345_CLKSOURCE_PLL2P - * @arg @ref LL_RCC_LPTIM345_CLKSOURCE_PLL3R - * @arg @ref LL_RCC_LPTIM345_CLKSOURCE_LSE - * @arg @ref LL_RCC_LPTIM345_CLKSOURCE_LSI - * @arg @ref LL_RCC_LPTIM345_CLKSOURCE_CLKP - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetLPTIMClockSource(uint32_t ClkSource) -{ - LL_RCC_SetClockSource(ClkSource); -} - -/** - * @brief Configure SAIx clock source - * @rmtoll D2CCIP1R / CDCCIP1R SAI1SEL LL_RCC_SetSAIClockSource\n - * D2CCIP1R / CDCCIP1R SAI23SEL LL_RCC_SetSAIClockSource - * D3CCIPR / SRDCCIPR SAI4ASEL LL_RCC_SetSAI4xClockSource\n - * D3CCIPR / SRDCCIPR SAI4BSEL LL_RCC_SetSAI4xClockSource - * @param ClkSource This parameter can be one of the following values: - * @arg @ref LL_RCC_SAI1_CLKSOURCE_PLL1Q - * @arg @ref LL_RCC_SAI1_CLKSOURCE_PLL2P - * @arg @ref LL_RCC_SAI1_CLKSOURCE_PLL3P - * @arg @ref LL_RCC_SAI1_CLKSOURCE_I2S_CKIN - * @arg @ref LL_RCC_SAI1_CLKSOURCE_CLKP - * @arg @ref LL_RCC_SAI23_CLKSOURCE_PLL1Q (*) - * @arg @ref LL_RCC_SAI23_CLKSOURCE_PLL2P (*) - * @arg @ref LL_RCC_SAI23_CLKSOURCE_PLL3P (*) - * @arg @ref LL_RCC_SAI23_CLKSOURCE_I2S_CKIN (*) - * @arg @ref LL_RCC_SAI23_CLKSOURCE_CLKP (*) - * @arg @ref LL_RCC_SAI4A_CLKSOURCE_PLL1Q (*) - * @arg @ref LL_RCC_SAI4A_CLKSOURCE_PLL2P (*) - * @arg @ref LL_RCC_SAI4A_CLKSOURCE_PLL3P (*) - * @arg @ref LL_RCC_SAI4A_CLKSOURCE_I2S_CKIN (*) - * @arg @ref LL_RCC_SAI4A_CLKSOURCE_SPDIF (*) - * @arg @ref LL_RCC_SAI2A_CLKSOURCE_PLL1Q (*) - * @arg @ref LL_RCC_SAI2A_CLKSOURCE_PLL2P (*) - * @arg @ref LL_RCC_SAI2A_CLKSOURCE_PLL3P (*) - * @arg @ref LL_RCC_SAI2A_CLKSOURCE_I2S_CKIN (*) - * @arg @ref LL_RCC_SAI2A_CLKSOURCE_CLKP (*) - * @arg @ref LL_RCC_SAI2A_CLKSOURCE_SPDIF (*) - * @arg @ref LL_RCC_SAI4B_CLKSOURCE_PLL1Q (*) - * @arg @ref LL_RCC_SAI4B_CLKSOURCE_PLL2P (*) - * @arg @ref LL_RCC_SAI4B_CLKSOURCE_PLL3P (*) - * @arg @ref LL_RCC_SAI4B_CLKSOURCE_I2S_CKIN (*) - * @arg @ref LL_RCC_SAI4B_CLKSOURCE_CLKP (*) - * @arg @ref LL_RCC_SAI4B_CLKSOURCE_SPDIF (*) - * @arg @ref LL_RCC_SAI2B_CLKSOURCE_PLL1Q (*) - * @arg @ref LL_RCC_SAI2B_CLKSOURCE_PLL2P (*) - * @arg @ref LL_RCC_SAI2B_CLKSOURCE_PLL3P (*) - * @arg @ref LL_RCC_SAI2B_CLKSOURCE_I2S_CKIN (*) - * @arg @ref LL_RCC_SAI2B_CLKSOURCE_CLKP (*) - * @arg @ref LL_RCC_SAI2B_CLKSOURCE_SPDIF (*) - * - * (*) value not defined in all devices. - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetSAIClockSource(uint32_t ClkSource) -{ - LL_RCC_SetClockSource(ClkSource); -} - -/** - * @brief Configure SDMMCx clock source - * @rmtoll D1CCIPR / CDCCIPR SDMMCSEL LL_RCC_SetSDMMCClockSource - * @param ClkSource This parameter can be one of the following values: - * @arg @ref LL_RCC_SDMMC_CLKSOURCE_PLL1Q - * @arg @ref LL_RCC_SDMMC_CLKSOURCE_PLL2R - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetSDMMCClockSource(uint32_t ClkSource) -{ -#if defined(RCC_D1CCIPR_SDMMCSEL) - MODIFY_REG(RCC->D1CCIPR, RCC_D1CCIPR_SDMMCSEL, ClkSource); -#else - MODIFY_REG(RCC->CDCCIPR, RCC_CDCCIPR_SDMMCSEL, ClkSource); -#endif /* RCC_D1CCIPR_SDMMCSEL */ -} - -/** - * @brief Configure RNGx clock source - * @rmtoll D2CCIP2R / CDCCIP2R RNGSEL LL_RCC_SetRNGClockSource - * @param ClkSource This parameter can be one of the following values: - * @arg @ref LL_RCC_RNG_CLKSOURCE_HSI48 - * @arg @ref LL_RCC_RNG_CLKSOURCE_PLL1Q - * @arg @ref LL_RCC_RNG_CLKSOURCE_LSE - * @arg @ref LL_RCC_RNG_CLKSOURCE_LSI - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetRNGClockSource(uint32_t ClkSource) -{ -#if defined(RCC_D2CCIP2R_RNGSEL) - MODIFY_REG(RCC->D2CCIP2R, RCC_D2CCIP2R_RNGSEL, ClkSource); -#else - MODIFY_REG(RCC->CDCCIP2R, RCC_CDCCIP2R_RNGSEL, ClkSource); -#endif /* RCC_D2CCIP2R_RNGSEL */ -} - -/** - * @brief Configure USBx clock source - * @rmtoll D2CCIP2R / CDCCIP2R USBSEL LL_RCC_SetUSBClockSource - * @param ClkSource This parameter can be one of the following values: - * @arg @ref LL_RCC_USB_CLKSOURCE_DISABLE - * @arg @ref LL_RCC_USB_CLKSOURCE_PLL1Q - * @arg @ref LL_RCC_USB_CLKSOURCE_PLL3Q - * @arg @ref LL_RCC_USB_CLKSOURCE_HSI48 - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetUSBClockSource(uint32_t ClkSource) -{ -#if defined(RCC_D2CCIP2R_USBSEL) - MODIFY_REG(RCC->D2CCIP2R, RCC_D2CCIP2R_USBSEL, ClkSource); -#else - MODIFY_REG(RCC->CDCCIP2R, RCC_CDCCIP2R_USBSEL, ClkSource); -#endif /* RCC_D2CCIP2R_USBSEL */ -} - -/** - * @brief Configure CECx clock source - * @rmtoll D2CCIP2R / CDCCIP2R CECSEL LL_RCC_SetCECClockSource - * @param ClkSource This parameter can be one of the following values: - * @arg @ref LL_RCC_CEC_CLKSOURCE_LSE - * @arg @ref LL_RCC_CEC_CLKSOURCE_LSI - * @arg @ref LL_RCC_CEC_CLKSOURCE_CSI_DIV122 - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetCECClockSource(uint32_t ClkSource) -{ -#if defined(RCC_D2CCIP2R_CECSEL) - MODIFY_REG(RCC->D2CCIP2R, RCC_D2CCIP2R_CECSEL, ClkSource); -#else - MODIFY_REG(RCC->CDCCIP2R, RCC_CDCCIP2R_CECSEL, ClkSource); -#endif /* RCC_D2CCIP2R_CECSEL */ -} - -#if defined(DSI) -/** - * @brief Configure DSIx clock source - * @rmtoll D1CCIPR DSISEL LL_RCC_SetDSIClockSource - * @param ClkSource This parameter can be one of the following values: - * @arg @ref LL_RCC_DSI_CLKSOURCE_PHY - * @arg @ref LL_RCC_DSI_CLKSOURCE_PLL2Q - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetDSIClockSource(uint32_t ClkSource) -{ - MODIFY_REG(RCC->D1CCIPR, RCC_D1CCIPR_DSISEL, ClkSource); -} -#endif /* DSI */ - -/** - * @brief Configure DFSDMx Kernel clock source - * @rmtoll D2CCIP1R / CDCCIP1R DFSDM1SEL LL_RCC_SetDFSDMClockSource - * @param ClkSource This parameter can be one of the following values: - * @arg @ref LL_RCC_DFSDM1_CLKSOURCE_PCLK2 - * @arg @ref LL_RCC_DFSDM1_CLKSOURCE_SYSCLK - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetDFSDMClockSource(uint32_t ClkSource) -{ -#if defined(RCC_D2CCIP1R_DFSDM1SEL) - MODIFY_REG(RCC->D2CCIP1R, RCC_D2CCIP1R_DFSDM1SEL, ClkSource); -#else - MODIFY_REG(RCC->CDCCIP1R, RCC_CDCCIP1R_DFSDM1SEL, ClkSource); -#endif /* RCC_D2CCIP1R_DFSDM1SEL */ -} - -#if defined(DFSDM2_BASE) -/** - * @brief Configure DFSDMx Kernel clock source - * @rmtoll SRDCCIPR DFSDM2SEL LL_RCC_SetDFSDM2ClockSource - * @param ClkSource This parameter can be one of the following values: - * @arg @ref LL_RCC_DFSDM2_CLKSOURCE_PCLK4 - * @arg @ref LL_RCC_DFSDM2_CLKSOURCE_SYSCLK - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetDFSDM2ClockSource(uint32_t ClkSource) -{ - MODIFY_REG(RCC->SRDCCIPR, RCC_SRDCCIPR_DFSDM2SEL, ClkSource); -} -#endif /* DFSDM2_BASE */ - -/** - * @brief Configure FMCx Kernel clock source - * @rmtoll D1CCIPR / CDCCIPR FMCSEL LL_RCC_SetFMCClockSource - * @param ClkSource This parameter can be one of the following values: - * @arg @ref LL_RCC_FMC_CLKSOURCE_HCLK - * @arg @ref LL_RCC_FMC_CLKSOURCE_PLL1Q - * @arg @ref LL_RCC_FMC_CLKSOURCE_PLL2R - * @arg @ref LL_RCC_FMC_CLKSOURCE_CLKP - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetFMCClockSource(uint32_t ClkSource) -{ -#if defined(RCC_D1CCIPR_FMCSEL) - MODIFY_REG(RCC->D1CCIPR, RCC_D1CCIPR_FMCSEL, ClkSource); -#else - MODIFY_REG(RCC->CDCCIPR, RCC_CDCCIPR_FMCSEL, ClkSource); -#endif /* RCC_D1CCIPR_FMCSEL */ -} - -#if defined(QUADSPI) -/** - * @brief Configure QSPIx Kernel clock source - * @rmtoll D1CCIPR QSPISEL LL_RCC_SetQSPIClockSource - * @param ClkSource This parameter can be one of the following values: - * @arg @ref LL_RCC_QSPI_CLKSOURCE_HCLK - * @arg @ref LL_RCC_QSPI_CLKSOURCE_PLL1Q - * @arg @ref LL_RCC_QSPI_CLKSOURCE_PLL2R - * @arg @ref LL_RCC_QSPI_CLKSOURCE_CLKP - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetQSPIClockSource(uint32_t ClkSource) -{ - MODIFY_REG(RCC->D1CCIPR, RCC_D1CCIPR_QSPISEL, ClkSource); -} -#endif /* QUADSPI */ - -#if defined(OCTOSPI1) || defined(OCTOSPI2) -/** - * @brief Configure OSPIx Kernel clock source - * @rmtoll D1CCIPR OPISEL LL_RCC_SetOSPIClockSource - * @param ClkSource This parameter can be one of the following values: - * @arg @ref LL_RCC_OSPI_CLKSOURCE_HCLK - * @arg @ref LL_RCC_OSPI_CLKSOURCE_PLL1Q - * @arg @ref LL_RCC_OSPI_CLKSOURCE_PLL2R - * @arg @ref LL_RCC_OSPI_CLKSOURCE_CLKP - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetOSPIClockSource(uint32_t ClkSource) -{ -#if defined(RCC_D1CCIPR_OCTOSPISEL) - MODIFY_REG(RCC->D1CCIPR, RCC_D1CCIPR_OCTOSPISEL, ClkSource); -#else - MODIFY_REG(RCC->CDCCIPR, RCC_CDCCIPR_OCTOSPISEL, ClkSource); -#endif /* RCC_D1CCIPR_OCTOSPISEL */ -} -#endif /* OCTOSPI1 || OCTOSPI2 */ - -/** - * @brief Configure CLKP Kernel clock source - * @rmtoll D1CCIPR / CDCCIPR CKPERSEL LL_RCC_SetCLKPClockSource - * @param ClkSource This parameter can be one of the following values: - * @arg @ref LL_RCC_CLKP_CLKSOURCE_HSI - * @arg @ref LL_RCC_CLKP_CLKSOURCE_CSI - * @arg @ref LL_RCC_CLKP_CLKSOURCE_HSE - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetCLKPClockSource(uint32_t ClkSource) -{ -#if defined(RCC_D1CCIPR_CKPERSEL) - MODIFY_REG(RCC->D1CCIPR, RCC_D1CCIPR_CKPERSEL, ClkSource); -#else - MODIFY_REG(RCC->CDCCIPR, RCC_CDCCIPR_CKPERSEL, ClkSource); -#endif /* RCC_D1CCIPR_CKPERSEL */ -} - -/** - * @brief Configure SPIx Kernel clock source - * @rmtoll D2CCIP1R / CDCCIP1R SPI123SEL LL_RCC_SetSPIClockSource\n - * D2CCIP1R / CDCCIP1R SPI45SEL LL_RCC_SetSPIClockSource\n - * D3CCIPR / SRDCCIPR SPI6SEL LL_RCC_SetSPIClockSource - * @param ClkSource This parameter can be one of the following values: - * @arg @ref LL_RCC_SPI123_CLKSOURCE_PLL1Q - * @arg @ref LL_RCC_SPI123_CLKSOURCE_PLL2P - * @arg @ref LL_RCC_SPI123_CLKSOURCE_PLL3P - * @arg @ref LL_RCC_SPI123_CLKSOURCE_I2S_CKIN - * @arg @ref LL_RCC_SPI123_CLKSOURCE_CLKP - * @arg @ref LL_RCC_SPI45_CLKSOURCE_PCLK2 - * @arg @ref LL_RCC_SPI45_CLKSOURCE_PLL2Q - * @arg @ref LL_RCC_SPI45_CLKSOURCE_PLL3Q - * @arg @ref LL_RCC_SPI45_CLKSOURCE_HSI - * @arg @ref LL_RCC_SPI45_CLKSOURCE_CSI - * @arg @ref LL_RCC_SPI45_CLKSOURCE_HSE - * @arg @ref LL_RCC_SPI6_CLKSOURCE_PCLK4 - * @arg @ref LL_RCC_SPI6_CLKSOURCE_PLL2Q - * @arg @ref LL_RCC_SPI6_CLKSOURCE_PLL3Q - * @arg @ref LL_RCC_SPI6_CLKSOURCE_HSI - * @arg @ref LL_RCC_SPI6_CLKSOURCE_CSI - * @arg @ref LL_RCC_SPI6_CLKSOURCE_HSE - * @arg @ref LL_RCC_SPI6_CLKSOURCE_I2S_CKIN (*) - * - * (*) value not defined in all devices. - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetSPIClockSource(uint32_t ClkSource) -{ - LL_RCC_SetClockSource(ClkSource); -} - -/** - * @brief Configure SPDIFx Kernel clock source - * @rmtoll D2CCIP1R / CDCCIP1R SPDIFSEL LL_RCC_SetSPDIFClockSource - * @param ClkSource This parameter can be one of the following values: - * @arg @ref LL_RCC_SPDIF_CLKSOURCE_PLL1Q - * @arg @ref LL_RCC_SPDIF_CLKSOURCE_PLL2R - * @arg @ref LL_RCC_SPDIF_CLKSOURCE_PLL3R - * @arg @ref LL_RCC_SPDIF_CLKSOURCE_HSI - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetSPDIFClockSource(uint32_t ClkSource) -{ -#if defined(RCC_D2CCIP1R_SPDIFSEL) - MODIFY_REG(RCC->D2CCIP1R, RCC_D2CCIP1R_SPDIFSEL, ClkSource); -#else - MODIFY_REG(RCC->CDCCIP1R, RCC_CDCCIP1R_SPDIFSEL, ClkSource); -#endif /* RCC_D2CCIP1R_SPDIFSEL */ -} - -/** - * @brief Configure FDCANx Kernel clock source - * @rmtoll D2CCIP1R / CDCCIP1R FDCANSEL LL_RCC_SetFDCANClockSource - * @param ClkSource This parameter can be one of the following values: - * @arg @ref LL_RCC_FDCAN_CLKSOURCE_HSE - * @arg @ref LL_RCC_FDCAN_CLKSOURCE_PLL1Q - * @arg @ref LL_RCC_FDCAN_CLKSOURCE_PLL2Q - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetFDCANClockSource(uint32_t ClkSource) -{ -#if defined(RCC_D2CCIP1R_FDCANSEL) - MODIFY_REG(RCC->D2CCIP1R, RCC_D2CCIP1R_FDCANSEL, ClkSource); -#else - MODIFY_REG(RCC->CDCCIP1R, RCC_CDCCIP1R_FDCANSEL, ClkSource); -#endif /* RCC_D2CCIP1R_FDCANSEL */ -} - -/** - * @brief Configure SWPx Kernel clock source - * @rmtoll D2CCIP1R / CDCCIP1R SWPSEL LL_RCC_SetSWPClockSource - * @param ClkSource This parameter can be one of the following values: - * @arg @ref LL_RCC_SWP_CLKSOURCE_PCLK1 - * @arg @ref LL_RCC_SWP_CLKSOURCE_HSI - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetSWPClockSource(uint32_t ClkSource) -{ -#if defined(RCC_D2CCIP1R_SWPSEL) - MODIFY_REG(RCC->D2CCIP1R, RCC_D2CCIP1R_SWPSEL, ClkSource); -#else - MODIFY_REG(RCC->CDCCIP1R, RCC_CDCCIP1R_SWPSEL, ClkSource); -#endif /* RCC_D2CCIP1R_SWPSEL */ -} - -/** - * @brief Configure ADCx Kernel clock source - * @rmtoll D3CCIPR / SRDCCIPR ADCSEL LL_RCC_SetADCClockSource - * @param ClkSource This parameter can be one of the following values: - * @arg @ref LL_RCC_ADC_CLKSOURCE_PLL2P - * @arg @ref LL_RCC_ADC_CLKSOURCE_PLL3R - * @arg @ref LL_RCC_ADC_CLKSOURCE_CLKP - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetADCClockSource(uint32_t ClkSource) -{ -#if defined(RCC_D3CCIPR_ADCSEL) - MODIFY_REG(RCC->D3CCIPR, RCC_D3CCIPR_ADCSEL, ClkSource); -#else - MODIFY_REG(RCC->SRDCCIPR, RCC_SRDCCIPR_ADCSEL, ClkSource); -#endif /* RCC_D3CCIPR_ADCSEL */ -} - -/** - * @brief Get periph clock source - * @rmtoll D1CCIPR / CDCCIPR * LL_RCC_GetClockSource\n - * D2CCIP1R / CDCCIP1R * LL_RCC_GetClockSource\n - * D2CCIP2R / CDCCIP2R * LL_RCC_GetClockSource\n - * D3CCIPR / SRDCCIPR * LL_RCC_GetClockSource - * @param Periph This parameter can be one of the following values: - * @arg @ref LL_RCC_USART16_CLKSOURCE - * @arg @ref LL_RCC_USART234578_CLKSOURCE - * @arg @ref LL_RCC_I2C123_CLKSOURCE - * @arg @ref LL_RCC_I2C4_CLKSOURCE - * @arg @ref LL_RCC_LPTIM1_CLKSOURCE - * @arg @ref LL_RCC_LPTIM2_CLKSOURCE - * @arg @ref LL_RCC_LPTIM345_CLKSOURCE - * @arg @ref LL_RCC_SAI1_CLKSOURCE - * @arg @ref LL_RCC_SAI23_CLKSOURCE - * @arg @ref LL_RCC_SAI4A_CLKSOURCE (*) - * @arg @ref LL_RCC_SAI4B_CLKSOURCE (*) - * @arg @ref LL_RCC_SAI2A_CLKSOURCE (*) - * @arg @ref LL_RCC_SAI2B_CLKSOURCE (*) - * @arg @ref LL_RCC_SPI123_CLKSOURCE (*) - * @arg @ref LL_RCC_SPI45_CLKSOURCE (*) - * @arg @ref LL_RCC_SPI6_CLKSOURCE (*) - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_USART16_CLKSOURCE_PCLK2 - * @arg @ref LL_RCC_USART16_CLKSOURCE_PLL2Q - * @arg @ref LL_RCC_USART16_CLKSOURCE_PLL3Q - * @arg @ref LL_RCC_USART16_CLKSOURCE_HSI - * @arg @ref LL_RCC_USART16_CLKSOURCE_CSI - * @arg @ref LL_RCC_USART16_CLKSOURCE_LSE - * @arg @ref LL_RCC_USART234578_CLKSOURCE_PCLK1 - * @arg @ref LL_RCC_USART234578_CLKSOURCE_PLL2Q - * @arg @ref LL_RCC_USART234578_CLKSOURCE_PLL3Q - * @arg @ref LL_RCC_USART234578_CLKSOURCE_HSI - * @arg @ref LL_RCC_USART234578_CLKSOURCE_CSI - * @arg @ref LL_RCC_USART234578_CLKSOURCE_LSE - * @arg @ref LL_RCC_I2C123_CLKSOURCE_PCLK1 - * @arg @ref LL_RCC_I2C123_CLKSOURCE_PLL3R - * @arg @ref LL_RCC_I2C123_CLKSOURCE_HSI - * @arg @ref LL_RCC_I2C123_CLKSOURCE_CSI - * @arg @ref LL_RCC_I2C4_CLKSOURCE_PCLK4 - * @arg @ref LL_RCC_I2C4_CLKSOURCE_PLL3R - * @arg @ref LL_RCC_I2C4_CLKSOURCE_HSI - * @arg @ref LL_RCC_I2C4_CLKSOURCE_CSI - * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_PCLK1 - * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_PLL2P - * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_PLL3R - * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_LSE - * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_LSI - * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_CLKP - * @arg @ref LL_RCC_LPTIM2_CLKSOURCE_PCLK4 - * @arg @ref LL_RCC_LPTIM2_CLKSOURCE_PLL2P - * @arg @ref LL_RCC_LPTIM2_CLKSOURCE_PLL3R - * @arg @ref LL_RCC_LPTIM2_CLKSOURCE_LSE - * @arg @ref LL_RCC_LPTIM2_CLKSOURCE_LSI - * @arg @ref LL_RCC_LPTIM2_CLKSOURCE_CLKP - * @arg @ref LL_RCC_LPTIM345_CLKSOURCE_PCLK4 - * @arg @ref LL_RCC_LPTIM345_CLKSOURCE_PLL2P - * @arg @ref LL_RCC_LPTIM345_CLKSOURCE_PLL3R - * @arg @ref LL_RCC_LPTIM345_CLKSOURCE_LSE - * @arg @ref LL_RCC_LPTIM345_CLKSOURCE_LSI - * @arg @ref LL_RCC_LPTIM345_CLKSOURCE_CLKP - * @arg @ref LL_RCC_SAI1_CLKSOURCE_PLL1Q - * @arg @ref LL_RCC_SAI1_CLKSOURCE_PLL2P - * @arg @ref LL_RCC_SAI1_CLKSOURCE_PLL3P - * @arg @ref LL_RCC_SAI1_CLKSOURCE_I2S_CKIN - * @arg @ref LL_RCC_SAI1_CLKSOURCE_CLKP - * @arg @ref LL_RCC_SAI23_CLKSOURCE_PLL1Q (*) - * @arg @ref LL_RCC_SAI23_CLKSOURCE_PLL2P (*) - * @arg @ref LL_RCC_SAI23_CLKSOURCE_PLL3P (*) - * @arg @ref LL_RCC_SAI23_CLKSOURCE_I2S_CKIN (*) - * @arg @ref LL_RCC_SAI23_CLKSOURCE_CLKP (*) - * @arg @ref LL_RCC_SAI4A_CLKSOURCE_PLL1Q (*) - * @arg @ref LL_RCC_SAI4A_CLKSOURCE_PLL2P (*) - * @arg @ref LL_RCC_SAI4A_CLKSOURCE_PLL3P (*) - * @arg @ref LL_RCC_SAI4A_CLKSOURCE_I2S_CKIN (*) - * @arg @ref LL_RCC_SAI4A_CLKSOURCE_CLKP (*) - * @arg @ref LL_RCC_SAI4B_CLKSOURCE_PLL1Q (*) - * @arg @ref LL_RCC_SAI4B_CLKSOURCE_PLL2P (*) - * @arg @ref LL_RCC_SAI4B_CLKSOURCE_PLL3P (*) - * @arg @ref LL_RCC_SAI4B_CLKSOURCE_I2S_CKIN (*) - * @arg @ref LL_RCC_SAI4B_CLKSOURCE_CLKP (*) - * @arg @ref LL_RCC_SAI2A_CLKSOURCE_PLL1Q (*) - * @arg @ref LL_RCC_SAI2A_CLKSOURCE_PLL2P (*) - * @arg @ref LL_RCC_SAI2A_CLKSOURCE_PLL3P (*) - * @arg @ref LL_RCC_SAI2A_CLKSOURCE_I2S_CKIN (*) - * @arg @ref LL_RCC_SAI2A_CLKSOURCE_CLKP (*) - * @arg @ref LL_RCC_SAI2B_CLKSOURCE_SPDIF (*) - * @arg @ref LL_RCC_SAI2B_CLKSOURCE_PLL1Q (*) - * @arg @ref LL_RCC_SAI2B_CLKSOURCE_PLL2P (*) - * @arg @ref LL_RCC_SAI2B_CLKSOURCE_PLL3P (*) - * @arg @ref LL_RCC_SAI2B_CLKSOURCE_I2S_CKIN (*) - * @arg @ref LL_RCC_SAI2B_CLKSOURCE_CLKP (*) - * @arg @ref LL_RCC_SAI2B_CLKSOURCE_SPDIF (*) - * @arg @ref LL_RCC_SPI123_CLKSOURCE_PLL1Q - * @arg @ref LL_RCC_SPI123_CLKSOURCE_PLL2P - * @arg @ref LL_RCC_SPI123_CLKSOURCE_PLL3P - * @arg @ref LL_RCC_SPI123_CLKSOURCE_I2S_CKIN - * @arg @ref LL_RCC_SPI123_CLKSOURCE_CLKP - * @arg @ref LL_RCC_SPI45_CLKSOURCE_PCLK2 - * @arg @ref LL_RCC_SPI45_CLKSOURCE_PLL2Q - * @arg @ref LL_RCC_SPI45_CLKSOURCE_PLL3Q - * @arg @ref LL_RCC_SPI45_CLKSOURCE_HSI - * @arg @ref LL_RCC_SPI45_CLKSOURCE_CSI - * @arg @ref LL_RCC_SPI45_CLKSOURCE_HSE - * @arg @ref LL_RCC_SPI6_CLKSOURCE_PCLK4 - * @arg @ref LL_RCC_SPI6_CLKSOURCE_PLL2Q - * @arg @ref LL_RCC_SPI6_CLKSOURCE_PLL3Q - * @arg @ref LL_RCC_SPI6_CLKSOURCE_HSI - * @arg @ref LL_RCC_SPI6_CLKSOURCE_CSI - * @arg @ref LL_RCC_SPI6_CLKSOURCE_HSE - * @arg @ref LL_RCC_SPI6_CLKSOURCE_I2S_CKIN (*) - * - * (*) value not defined in all devices. - * @retval None - */ -__STATIC_INLINE uint32_t LL_RCC_GetClockSource(uint32_t Periph) -{ -#if defined(RCC_D1CCIPR_FMCSEL) - const uint32_t *pReg = (uint32_t *)((uint32_t)((uint32_t)(&RCC->D1CCIPR) + LL_CLKSOURCE_REG(Periph))); -#else - const uint32_t *pReg = (uint32_t *)((uint32_t)((uint32_t)(&RCC->CDCCIPR) + LL_CLKSOURCE_REG(Periph))); -#endif /* RCC_D1CCIPR_FMCSEL */ - return (uint32_t)(Periph | (((READ_BIT(*pReg, LL_CLKSOURCE_MASK(Periph))) >> LL_CLKSOURCE_SHIFT(Periph)) << LL_RCC_CONFIG_SHIFT)); -} - -/** - * @brief Get USARTx clock source - * @rmtoll D2CCIP2R / CDCCIP2R USART16SEL LL_RCC_GetUSARTClockSource\n - * D2CCIP2R / CDCCIP2R USART28SEL LL_RCC_GetUSARTClockSource - * @param Periph This parameter can be one of the following values: - * @arg @ref LL_RCC_USART16_CLKSOURCE - * @arg @ref LL_RCC_USART234578_CLKSOURCE - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_USART16_CLKSOURCE_PCLK2 - * @arg @ref LL_RCC_USART16_CLKSOURCE_PLL2Q - * @arg @ref LL_RCC_USART16_CLKSOURCE_PLL3Q - * @arg @ref LL_RCC_USART16_CLKSOURCE_HSI - * @arg @ref LL_RCC_USART16_CLKSOURCE_CSI - * @arg @ref LL_RCC_USART16_CLKSOURCE_LSE - * @arg @ref LL_RCC_USART234578_CLKSOURCE_PCLK1 - * @arg @ref LL_RCC_USART234578_CLKSOURCE_PLL2Q - * @arg @ref LL_RCC_USART234578_CLKSOURCE_PLL3Q - * @arg @ref LL_RCC_USART234578_CLKSOURCE_HSI - * @arg @ref LL_RCC_USART234578_CLKSOURCE_CSI - * @arg @ref LL_RCC_USART234578_CLKSOURCE_LSE - */ -__STATIC_INLINE uint32_t LL_RCC_GetUSARTClockSource(uint32_t Periph) -{ - return LL_RCC_GetClockSource(Periph); -} - -/** - * @brief Get LPUART clock source - * @rmtoll D3CCIPR / SRDCCIPR LPUART1SEL LL_RCC_GetLPUARTClockSource - * @param Periph This parameter can be one of the following values: - * @arg @ref LL_RCC_LPUART1_CLKSOURCE - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_LPUART1_CLKSOURCE_PCLK4 - * @arg @ref LL_RCC_LPUART1_CLKSOURCE_PLL2Q - * @arg @ref LL_RCC_LPUART1_CLKSOURCE_PLL3Q - * @arg @ref LL_RCC_LPUART1_CLKSOURCE_HSI - * @arg @ref LL_RCC_LPUART1_CLKSOURCE_CSI - * @arg @ref LL_RCC_LPUART1_CLKSOURCE_LSE - */ -__STATIC_INLINE uint32_t LL_RCC_GetLPUARTClockSource(uint32_t Periph) -{ - UNUSED(Periph); -#if defined(RCC_D3CCIPR_LPUART1SEL) - return (uint32_t)(READ_BIT(RCC->D3CCIPR, RCC_D3CCIPR_LPUART1SEL)); -#else - return (uint32_t)(READ_BIT(RCC->SRDCCIPR, RCC_SRDCCIPR_LPUART1SEL)); -#endif /* RCC_D3CCIPR_LPUART1SEL */ -} - -/** - * @brief Get I2Cx clock source - * @rmtoll D2CCIP2R / CDCCIP2R I2C123SEL LL_RCC_GetI2CClockSource\n - * D3CCIPR / SRDCCIPR I2C4SEL LL_RCC_GetI2CClockSource - * @param Periph This parameter can be one of the following values: - * @arg @ref LL_RCC_I2C123_CLKSOURCE - * @arg @ref LL_RCC_I2C4_CLKSOURCE - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_I2C123_CLKSOURCE_PCLK1 - * @arg @ref LL_RCC_I2C123_CLKSOURCE_PLL3R - * @arg @ref LL_RCC_I2C123_CLKSOURCE_HSI - * @arg @ref LL_RCC_I2C123_CLKSOURCE_CSI - * @arg @ref LL_RCC_I2C4_CLKSOURCE_PCLK4 - * @arg @ref LL_RCC_I2C4_CLKSOURCE_PLL3R - * @arg @ref LL_RCC_I2C4_CLKSOURCE_HSI - * @arg @ref LL_RCC_I2C4_CLKSOURCE_CSI - */ -__STATIC_INLINE uint32_t LL_RCC_GetI2CClockSource(uint32_t Periph) -{ - return LL_RCC_GetClockSource(Periph); -} - -/** - * @brief Get LPTIM clock source - * @rmtoll D2CCIP2R / CDCCIP2R LPTIM1SEL LL_RCC_GetLPTIMClockSource\n - * D3CCIPR / SRDCCIPR LPTIM2SEL LL_RCC_GetLPTIMClockSource\n - * D3CCIPR / SRDCCIPR LPTIM345SEL LL_RCC_GetLPTIMClockSource - * @param Periph This parameter can be one of the following values: - * @arg @ref LL_RCC_LPTIM1_CLKSOURCE - * @arg @ref LL_RCC_LPTIM2_CLKSOURCE - * @arg @ref LL_RCC_LPTIM345_CLKSOURCE - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_PCLK1 - * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_PLL2P - * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_PLL3R - * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_LSE - * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_LSI - * @arg @ref LL_RCC_LPTIM1_CLKSOURCE_CLKP - * @arg @ref LL_RCC_LPTIM2_CLKSOURCE_PCLK4 - * @arg @ref LL_RCC_LPTIM2_CLKSOURCE_PLL2P - * @arg @ref LL_RCC_LPTIM2_CLKSOURCE_PLL3R - * @arg @ref LL_RCC_LPTIM2_CLKSOURCE_LSE - * @arg @ref LL_RCC_LPTIM2_CLKSOURCE_LSI - * @arg @ref LL_RCC_LPTIM2_CLKSOURCE_CLKP - * @arg @ref LL_RCC_LPTIM345_CLKSOURCE_PCLK4 - * @arg @ref LL_RCC_LPTIM345_CLKSOURCE_PLL2P - * @arg @ref LL_RCC_LPTIM345_CLKSOURCE_PLL3R - * @arg @ref LL_RCC_LPTIM345_CLKSOURCE_LSE - * @arg @ref LL_RCC_LPTIM345_CLKSOURCE_LSI - * @arg @ref LL_RCC_LPTIM345_CLKSOURCE_CLKP - * @retval None - */ -__STATIC_INLINE uint32_t LL_RCC_GetLPTIMClockSource(uint32_t Periph) -{ - return LL_RCC_GetClockSource(Periph); -} - -/** - * @brief Get SAIx clock source - * @rmtoll D2CCIP1R / CDCCIP1R SAI1SEL LL_RCC_GetSAIClockSource\n - * D2CCIP1R / CDCCIP1R SAI23SEL LL_RCC_GetSAIClockSource - * D3CCIPR / SRDCCIPR SAI4ASEL LL_RCC_GetSAIClockSource\n - * D3CCIPR / SRDCCIPR SAI4BSEL LL_RCC_GetSAIClockSource - * @param Periph This parameter can be one of the following values: - * @arg @ref LL_RCC_SAI1_CLKSOURCE (*) - * @arg @ref LL_RCC_SAI2A_CLKSOURCE (*) - * @arg @ref LL_RCC_SAI2B_CLKSOURCE (*) - * @arg @ref LL_RCC_SAI23_CLKSOURCE (*) - * @arg @ref LL_RCC_SAI4A_CLKSOURCE (*) - * @arg @ref LL_RCC_SAI4B_CLKSOURCE (*) - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_SAI1_CLKSOURCE_PLL1Q - * @arg @ref LL_RCC_SAI1_CLKSOURCE_PLL2P - * @arg @ref LL_RCC_SAI1_CLKSOURCE_PLL3P - * @arg @ref LL_RCC_SAI1_CLKSOURCE_I2S_CKIN - * @arg @ref LL_RCC_SAI1_CLKSOURCE_CLKP - * @arg @ref LL_RCC_SAI23_CLKSOURCE_PLL1Q (*) - * @arg @ref LL_RCC_SAI23_CLKSOURCE_PLL2P (*) - * @arg @ref LL_RCC_SAI23_CLKSOURCE_PLL3P (*) - * @arg @ref LL_RCC_SAI23_CLKSOURCE_I2S_CKIN (*) - * @arg @ref LL_RCC_SAI23_CLKSOURCE_CLKP (*) - * @arg @ref LL_RCC_SAI2A_CLKSOURCE_PLL1Q (*) - * @arg @ref LL_RCC_SAI2A_CLKSOURCE_PLL2P (*) - * @arg @ref LL_RCC_SAI2A_CLKSOURCE_PLL3P (*) - * @arg @ref LL_RCC_SAI2A_CLKSOURCE_I2S_CKIN (*) - * @arg @ref LL_RCC_SAI2A_CLKSOURCE_CLKP (*) - * @arg @ref LL_RCC_SAI2A_CLKSOURCE_SPDIF (*) - * @arg @ref LL_RCC_SAI2B_CLKSOURCE_PLL1Q (*) - * @arg @ref LL_RCC_SAI2B_CLKSOURCE_PLL2P (*) - * @arg @ref LL_RCC_SAI2B_CLKSOURCE_PLL3P (*) - * @arg @ref LL_RCC_SAI2B_CLKSOURCE_I2S_CKIN (*) - * @arg @ref LL_RCC_SAI2B_CLKSOURCE_CLKP (*) - * @arg @ref LL_RCC_SAI2B_CLKSOURCE_SPDIF (*) - * @arg @ref LL_RCC_SAI4A_CLKSOURCE_PLL1Q (*) - * @arg @ref LL_RCC_SAI4A_CLKSOURCE_PLL2P (*) - * @arg @ref LL_RCC_SAI4A_CLKSOURCE_PLL3P (*) - * @arg @ref LL_RCC_SAI4A_CLKSOURCE_I2S_CKIN (*) - * @arg @ref LL_RCC_SAI4A_CLKSOURCE_CLKP (*) - * @arg @ref LL_RCC_SAI4B_CLKSOURCE_PLL1Q (*) - * @arg @ref LL_RCC_SAI4B_CLKSOURCE_PLL2P (*) - * @arg @ref LL_RCC_SAI4B_CLKSOURCE_PLL3P (*) - * @arg @ref LL_RCC_SAI4B_CLKSOURCE_I2S_CKIN (*) - * @arg @ref LL_RCC_SAI4B_CLKSOURCE_CLKP (*) - * - * (*) value not defined in all devices. - */ -__STATIC_INLINE uint32_t LL_RCC_GetSAIClockSource(uint32_t Periph) -{ - return LL_RCC_GetClockSource(Periph); -} - -/** - * @brief Get SDMMC clock source - * @rmtoll D1CCIPR / CDCCIPR SDMMCSEL LL_RCC_GetSDMMCClockSource - * @param Periph This parameter can be one of the following values: - * @arg @ref LL_RCC_SDMMC_CLKSOURCE - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_SDMMC_CLKSOURCE_PLL1Q - * @arg @ref LL_RCC_SDMMC_CLKSOURCE_PLL2R - */ -__STATIC_INLINE uint32_t LL_RCC_GetSDMMCClockSource(uint32_t Periph) -{ - UNUSED(Periph); -#if defined(RCC_D1CCIPR_SDMMCSEL) - return (uint32_t)(READ_BIT(RCC->D1CCIPR, RCC_D1CCIPR_SDMMCSEL)); -#else - return (uint32_t)(READ_BIT(RCC->CDCCIPR, RCC_CDCCIPR_SDMMCSEL)); -#endif /* RCC_D1CCIPR_SDMMCSEL */ -} - -/** - * @brief Get RNG clock source - * @rmtoll D2CCIP2R RNGSEL LL_RCC_GetRNGClockSource - * @param Periph This parameter can be one of the following values: - * @arg @ref LL_RCC_RNG_CLKSOURCE - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_RNG_CLKSOURCE_HSI48 - * @arg @ref LL_RCC_RNG_CLKSOURCE_PLL1Q - * @arg @ref LL_RCC_RNG_CLKSOURCE_LSE - * @arg @ref LL_RCC_RNG_CLKSOURCE_LSI - */ -__STATIC_INLINE uint32_t LL_RCC_GetRNGClockSource(uint32_t Periph) -{ - UNUSED(Periph); -#if defined(RCC_D2CCIP2R_RNGSEL) - return (uint32_t)(READ_BIT(RCC->D2CCIP2R, RCC_D2CCIP2R_RNGSEL)); -#else - return (uint32_t)(READ_BIT(RCC->CDCCIP2R, RCC_CDCCIP2R_RNGSEL)); -#endif /* RCC_D2CCIP2R_RNGSEL */ -} - -/** - * @brief Get USB clock source - * @rmtoll D2CCIP2R / CDCCIP2R USBSEL LL_RCC_GetUSBClockSource - * @param Periph This parameter can be one of the following values: - * @arg @ref LL_RCC_USB_CLKSOURCE - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_USB_CLKSOURCE_DISABLE - * @arg @ref LL_RCC_USB_CLKSOURCE_PLL1Q - * @arg @ref LL_RCC_USB_CLKSOURCE_PLL3Q - * @arg @ref LL_RCC_USB_CLKSOURCE_HSI48 - */ -__STATIC_INLINE uint32_t LL_RCC_GetUSBClockSource(uint32_t Periph) -{ - UNUSED(Periph); -#if defined(RCC_D2CCIP2R_USBSEL) - return (uint32_t)(READ_BIT(RCC->D2CCIP2R, RCC_D2CCIP2R_USBSEL)); -#else - return (uint32_t)(READ_BIT(RCC->CDCCIP2R, RCC_CDCCIP2R_USBSEL)); -#endif /* RCC_D2CCIP2R_USBSEL */ -} - -/** - * @brief Get CEC clock source - * @rmtoll D2CCIP2R / CDCCIP2R CECSEL LL_RCC_GetCECClockSource - * @param Periph This parameter can be one of the following values: - * @arg @ref LL_RCC_CEC_CLKSOURCE - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_CEC_CLKSOURCE_LSE - * @arg @ref LL_RCC_CEC_CLKSOURCE_LSI - * @arg @ref LL_RCC_CEC_CLKSOURCE_CSI_DIV122 - */ -__STATIC_INLINE uint32_t LL_RCC_GetCECClockSource(uint32_t Periph) -{ - UNUSED(Periph); -#if defined(RCC_D2CCIP2R_CECSEL) - return (uint32_t)(READ_BIT(RCC->D2CCIP2R, RCC_D2CCIP2R_CECSEL)); -#else - return (uint32_t)(READ_BIT(RCC->CDCCIP2R, RCC_CDCCIP2R_CECSEL)); -#endif /* RCC_D2CCIP2R_CECSEL */ -} - -#if defined(DSI) -/** - * @brief Get DSI clock source - * @rmtoll D1CCIPR DSISEL LL_RCC_GetDSIClockSource - * @param Periph This parameter can be one of the following values: - * @arg @ref LL_RCC_DSI_CLKSOURCE - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_DSI_CLKSOURCE_PHY - * @arg @ref LL_RCC_DSI_CLKSOURCE_PLL2Q - */ -__STATIC_INLINE uint32_t LL_RCC_GetDSIClockSource(uint32_t Periph) -{ - UNUSED(Periph); - return (uint32_t)(READ_BIT(RCC->D1CCIPR, RCC_D1CCIPR_DSISEL)); -} -#endif /* DSI */ - -/** - * @brief Get DFSDM Kernel clock source - * @rmtoll D2CCIP1R / CDCCIP1R DFSDM1SEL LL_RCC_GetDFSDMClockSource - * @param Periph This parameter can be one of the following values: - * @arg @ref LL_RCC_DFSDM1_CLKSOURCE - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_DFSDM1_CLKSOURCE_PCLK2 - * @arg @ref LL_RCC_DFSDM1_CLKSOURCE_SYSCLK - */ -__STATIC_INLINE uint32_t LL_RCC_GetDFSDMClockSource(uint32_t Periph) -{ - UNUSED(Periph); -#if defined(RCC_D2CCIP1R_DFSDM1SEL) - return (uint32_t)(READ_BIT(RCC->D2CCIP1R, RCC_D2CCIP1R_DFSDM1SEL)); -#else - return (uint32_t)(READ_BIT(RCC->CDCCIP1R, RCC_CDCCIP1R_DFSDM1SEL)); -#endif /* RCC_D2CCIP1R_DFSDM1SEL */ -} - -#if defined(DFSDM2_BASE) -/** - * @brief Get DFSDM2 Kernel clock source - * @rmtoll SRDCCIPR DFSDM2SEL LL_RCC_GetDFSDM2ClockSource - * @param Periph This parameter can be one of the following values: - * @arg @ref LL_RCC_DFSDM2_CLKSOURCE - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_DFSDM2_CLKSOURCE_PCLK4 - * @arg @ref LL_RCC_DFSDM2_CLKSOURCE_SYSCLK - */ -__STATIC_INLINE uint32_t LL_RCC_GetDFSDM2ClockSource(uint32_t Periph) -{ - UNUSED(Periph); - return (uint32_t)(READ_BIT(RCC->SRDCCIPR, RCC_SRDCCIPR_DFSDM2SEL)); -} -#endif /* DFSDM2_BASE */ - -/** - * @brief Get FMC Kernel clock source - * @rmtoll D1CCIPR / D1CCIPR FMCSEL LL_RCC_GetFMCClockSource - * @param Periph This parameter can be one of the following values: - * @arg @ref LL_RCC_FMC_CLKSOURCE - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_FMC_CLKSOURCE_HCLK - * @arg @ref LL_RCC_FMC_CLKSOURCE_PLL1Q - * @arg @ref LL_RCC_FMC_CLKSOURCE_PLL2R - * @arg @ref LL_RCC_FMC_CLKSOURCE_CLKP - */ -__STATIC_INLINE uint32_t LL_RCC_GetFMCClockSource(uint32_t Periph) -{ - UNUSED(Periph); -#if defined(RCC_D1CCIPR_FMCSEL) - return (uint32_t)(READ_BIT(RCC->D1CCIPR, RCC_D1CCIPR_FMCSEL)); -#else - return (uint32_t)(READ_BIT(RCC->CDCCIPR, RCC_CDCCIPR_FMCSEL)); -#endif /* RCC_D1CCIPR_FMCSEL */ -} - -#if defined(QUADSPI) -/** - * @brief Get QSPI Kernel clock source - * @rmtoll D1CCIPR / CDCCIPR QSPISEL LL_RCC_GetQSPIClockSource - * @param Periph This parameter can be one of the following values: - * @arg @ref LL_RCC_QSPI_CLKSOURCE - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_QSPI_CLKSOURCE_HCLK - * @arg @ref LL_RCC_QSPI_CLKSOURCE_PLL1Q - * @arg @ref LL_RCC_QSPI_CLKSOURCE_PLL2R - * @arg @ref LL_RCC_QSPI_CLKSOURCE_CLKP - */ -__STATIC_INLINE uint32_t LL_RCC_GetQSPIClockSource(uint32_t Periph) -{ - UNUSED(Periph); - return (uint32_t)(READ_BIT(RCC->D1CCIPR, RCC_D1CCIPR_QSPISEL)); -} -#endif /* QUADSPI */ - -#if defined(OCTOSPI1) || defined(OCTOSPI2) -/** - * @brief Get OSPI Kernel clock source - * @rmtoll CDCCIPR OSPISEL LL_RCC_GetOSPIClockSource - * @param Periph This parameter can be one of the following values: - * @arg @ref LL_RCC_OSPI_CLKSOURCE - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_OSPI_CLKSOURCE_HCLK - * @arg @ref LL_RCC_OSPI_CLKSOURCE_PLL1Q - * @arg @ref LL_RCC_OSPI_CLKSOURCE_PLL2R - * @arg @ref LL_RCC_OSPI_CLKSOURCE_CLKP - */ -__STATIC_INLINE uint32_t LL_RCC_GetOSPIClockSource(uint32_t Periph) -{ - UNUSED(Periph); -#if defined(RCC_D1CCIPR_OCTOSPISEL) - return (uint32_t)(READ_BIT(RCC->D1CCIPR, RCC_D1CCIPR_OCTOSPISEL)); -#else - return (uint32_t)(READ_BIT(RCC->CDCCIPR, RCC_CDCCIPR_OCTOSPISEL)); -#endif /* RCC_D1CCIPR_OCTOSPISEL */ -} -#endif /* defined(OCTOSPI1) || defined(OCTOSPI2) */ - -/** - * @brief Get CLKP Kernel clock source - * @rmtoll D1CCIPR / CDCCIPR CKPERSEL LL_RCC_GetCLKPClockSource - * @param Periph This parameter can be one of the following values: - * @arg @ref LL_RCC_CLKP_CLKSOURCE - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_CLKP_CLKSOURCE_HSI - * @arg @ref LL_RCC_CLKP_CLKSOURCE_CSI - * @arg @ref LL_RCC_CLKP_CLKSOURCE_HSE - */ -__STATIC_INLINE uint32_t LL_RCC_GetCLKPClockSource(uint32_t Periph) -{ - UNUSED(Periph); -#if defined(RCC_D1CCIPR_CKPERSEL) - return (uint32_t)(READ_BIT(RCC->D1CCIPR, RCC_D1CCIPR_CKPERSEL)); -#else - return (uint32_t)(READ_BIT(RCC->CDCCIPR, RCC_CDCCIPR_CKPERSEL)); -#endif /* RCC_D1CCIPR_CKPERSEL */ -} - -/** - * @brief Get SPIx Kernel clock source - * @rmtoll D2CCIP1R / CDCCIP1R SPI123SEL LL_RCC_GetSPIClockSource\n - * D2CCIP1R / CDCCIP1R SPI45SEL LL_RCC_GetSPIClockSource\n - * D3CCIPR / SRDCCIPR SPI6SEL LL_RCC_GetSPIClockSource - * @param Periph This parameter can be one of the following values: - * @arg @ref LL_RCC_SPI123_CLKSOURCE - * @arg @ref LL_RCC_SPI45_CLKSOURCE - * @arg @ref LL_RCC_SPI6_CLKSOURCE - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_SPI123_CLKSOURCE_PLL1Q - * @arg @ref LL_RCC_SPI123_CLKSOURCE_PLL2P - * @arg @ref LL_RCC_SPI123_CLKSOURCE_PLL3P - * @arg @ref LL_RCC_SPI123_CLKSOURCE_I2S_CKIN - * @arg @ref LL_RCC_SPI123_CLKSOURCE_CLKP - * @arg @ref LL_RCC_SPI45_CLKSOURCE_PCLK2 - * @arg @ref LL_RCC_SPI45_CLKSOURCE_PLL2Q - * @arg @ref LL_RCC_SPI45_CLKSOURCE_PLL3Q - * @arg @ref LL_RCC_SPI45_CLKSOURCE_HSI - * @arg @ref LL_RCC_SPI45_CLKSOURCE_CSI - * @arg @ref LL_RCC_SPI45_CLKSOURCE_HSE - * @arg @ref LL_RCC_SPI6_CLKSOURCE_PCLK4 - * @arg @ref LL_RCC_SPI6_CLKSOURCE_PLL2Q - * @arg @ref LL_RCC_SPI6_CLKSOURCE_PLL3Q - * @arg @ref LL_RCC_SPI6_CLKSOURCE_HSI - * @arg @ref LL_RCC_SPI6_CLKSOURCE_CSI - * @arg @ref LL_RCC_SPI6_CLKSOURCE_HSE - * @arg @ref LL_RCC_SPI6_CLKSOURCE_I2S_CKIN (*) - * - * (*) value not defined in all stm32h7xx lines. - */ -__STATIC_INLINE uint32_t LL_RCC_GetSPIClockSource(uint32_t Periph) -{ - return LL_RCC_GetClockSource(Periph); -} - -/** - * @brief Get SPDIF Kernel clock source - * @rmtoll D2CCIP1R / CDCCIP1R SPDIFSEL LL_RCC_GetSPDIFClockSource - * @param Periph This parameter can be one of the following values: - * @arg @ref LL_RCC_SPDIF_CLKSOURCE - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_SPDIF_CLKSOURCE_PLL1Q - * @arg @ref LL_RCC_SPDIF_CLKSOURCE_PLL2R - * @arg @ref LL_RCC_SPDIF_CLKSOURCE_PLL3R - * @arg @ref LL_RCC_SPDIF_CLKSOURCE_HSI - */ -__STATIC_INLINE uint32_t LL_RCC_GetSPDIFClockSource(uint32_t Periph) -{ - UNUSED(Periph); -#if defined(RCC_D2CCIP1R_SPDIFSEL) - return (uint32_t)(READ_BIT(RCC->D2CCIP1R, RCC_D2CCIP1R_SPDIFSEL)); -#else - return (uint32_t)(READ_BIT(RCC->CDCCIP1R, RCC_CDCCIP1R_SPDIFSEL)); -#endif /* RCC_D2CCIP1R_SPDIFSEL */ -} - -/** - * @brief Get FDCAN Kernel clock source - * @rmtoll D2CCIP1R / CDCCIP1R FDCANSEL LL_RCC_GetFDCANClockSource - * @param Periph This parameter can be one of the following values: - * @arg @ref LL_RCC_FDCAN_CLKSOURCE - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_FDCAN_CLKSOURCE_HSE - * @arg @ref LL_RCC_FDCAN_CLKSOURCE_PLL1Q - * @arg @ref LL_RCC_FDCAN_CLKSOURCE_PLL2Q - */ -__STATIC_INLINE uint32_t LL_RCC_GetFDCANClockSource(uint32_t Periph) -{ - UNUSED(Periph); -#if defined(RCC_D2CCIP1R_FDCANSEL) - return (uint32_t)(READ_BIT(RCC->D2CCIP1R, RCC_D2CCIP1R_FDCANSEL)); -#else - return (uint32_t)(READ_BIT(RCC->CDCCIP1R, RCC_CDCCIP1R_FDCANSEL)); -#endif /* RCC_D2CCIP1R_FDCANSEL */ -} - -/** - * @brief Get SWP Kernel clock source - * @rmtoll D2CCIP1R / CDCCIP1R SWPSEL LL_RCC_GetSWPClockSource - * @param Periph This parameter can be one of the following values: - * @arg @ref LL_RCC_SWP_CLKSOURCE - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_SWP_CLKSOURCE_PCLK1 - * @arg @ref LL_RCC_SWP_CLKSOURCE_HSI - */ -__STATIC_INLINE uint32_t LL_RCC_GetSWPClockSource(uint32_t Periph) -{ - UNUSED(Periph); -#if defined(RCC_D2CCIP1R_SWPSEL) - return (uint32_t)(READ_BIT(RCC->D2CCIP1R, RCC_D2CCIP1R_SWPSEL)); -#else - return (uint32_t)(READ_BIT(RCC->CDCCIP1R, RCC_CDCCIP1R_SWPSEL)); -#endif /* RCC_D2CCIP1R_SWPSEL */ -} - -/** - * @brief Get ADC Kernel clock source - * @rmtoll D3CCIPR / SRDCCIPR ADCSEL LL_RCC_GetADCClockSource - * @param Periph This parameter can be one of the following values: - * @arg @ref LL_RCC_ADC_CLKSOURCE - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_ADC_CLKSOURCE_PLL2P - * @arg @ref LL_RCC_ADC_CLKSOURCE_PLL3R - * @arg @ref LL_RCC_ADC_CLKSOURCE_CLKP - */ -__STATIC_INLINE uint32_t LL_RCC_GetADCClockSource(uint32_t Periph) -{ - UNUSED(Periph); -#if defined (RCC_D3CCIPR_ADCSEL) - return (uint32_t)(READ_BIT(RCC->D3CCIPR, RCC_D3CCIPR_ADCSEL)); -#else - return (uint32_t)(READ_BIT(RCC->SRDCCIPR, RCC_SRDCCIPR_ADCSEL)); -#endif /* RCC_D3CCIPR_ADCSEL */ -} - -/** - * @} - */ - -/** @defgroup RCC_LL_EF_RTC RTC - * @{ - */ - -/** - * @brief Set RTC Clock Source - * @note Once the RTC clock source has been selected, it cannot be changed anymore unless - * the Backup domain is reset, or unless a failure is detected on LSE (LSECSSD is - * set). The BDRST bit can be used to reset them. - * @rmtoll BDCR RTCSEL LL_RCC_SetRTCClockSource - * @param Source This parameter can be one of the following values: - * @arg @ref LL_RCC_RTC_CLKSOURCE_NONE - * @arg @ref LL_RCC_RTC_CLKSOURCE_LSE - * @arg @ref LL_RCC_RTC_CLKSOURCE_LSI - * @arg @ref LL_RCC_RTC_CLKSOURCE_HSE - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetRTCClockSource(uint32_t Source) -{ - MODIFY_REG(RCC->BDCR, RCC_BDCR_RTCSEL, Source); -} - -/** - * @brief Get RTC Clock Source - * @rmtoll BDCR RTCSEL LL_RCC_GetRTCClockSource - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_RTC_CLKSOURCE_NONE - * @arg @ref LL_RCC_RTC_CLKSOURCE_LSE - * @arg @ref LL_RCC_RTC_CLKSOURCE_LSI - * @arg @ref LL_RCC_RTC_CLKSOURCE_HSE - */ -__STATIC_INLINE uint32_t LL_RCC_GetRTCClockSource(void) -{ - return (uint32_t)(READ_BIT(RCC->BDCR, RCC_BDCR_RTCSEL)); -} - -/** - * @brief Enable RTC - * @rmtoll BDCR RTCEN LL_RCC_EnableRTC - * @retval None - */ -__STATIC_INLINE void LL_RCC_EnableRTC(void) -{ - SET_BIT(RCC->BDCR, RCC_BDCR_RTCEN); -} - -/** - * @brief Disable RTC - * @rmtoll BDCR RTCEN LL_RCC_DisableRTC - * @retval None - */ -__STATIC_INLINE void LL_RCC_DisableRTC(void) -{ - CLEAR_BIT(RCC->BDCR, RCC_BDCR_RTCEN); -} - -/** - * @brief Check if RTC has been enabled or not - * @rmtoll BDCR RTCEN LL_RCC_IsEnabledRTC - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsEnabledRTC(void) -{ - return ((READ_BIT(RCC->BDCR, RCC_BDCR_RTCEN) == (RCC_BDCR_RTCEN)) ? 1UL : 0UL); -} - -/** - * @brief Force the Backup domain reset - * @rmtoll BDCR BDRST / VSWRST LL_RCC_ForceBackupDomainReset - * @retval None - */ -__STATIC_INLINE void LL_RCC_ForceBackupDomainReset(void) -{ - SET_BIT(RCC->BDCR, RCC_BDCR_BDRST); -} - -/** - * @brief Release the Backup domain reset - * @rmtoll BDCR BDRST / VSWRST LL_RCC_ReleaseBackupDomainReset - * @retval None - */ -__STATIC_INLINE void LL_RCC_ReleaseBackupDomainReset(void) -{ -#if defined(RCC_BDCR_BDRST) - CLEAR_BIT(RCC->BDCR, RCC_BDCR_BDRST); -#else - CLEAR_BIT(RCC->BDCR, RCC_BDCR_VSWRST); -#endif /* RCC_BDCR_BDRST */ -} - -/** - * @brief Set HSE Prescalers for RTC Clock - * @rmtoll CFGR RTCPRE LL_RCC_SetRTC_HSEPrescaler - * @param Prescaler This parameter can be one of the following values: - * @arg @ref LL_RCC_RTC_NOCLOCK - * @arg @ref LL_RCC_RTC_HSE_DIV_2 - * @arg @ref LL_RCC_RTC_HSE_DIV_3 - * @arg @ref LL_RCC_RTC_HSE_DIV_4 - * @arg @ref LL_RCC_RTC_HSE_DIV_5 - * @arg @ref LL_RCC_RTC_HSE_DIV_6 - * @arg @ref LL_RCC_RTC_HSE_DIV_7 - * @arg @ref LL_RCC_RTC_HSE_DIV_8 - * @arg @ref LL_RCC_RTC_HSE_DIV_9 - * @arg @ref LL_RCC_RTC_HSE_DIV_10 - * @arg @ref LL_RCC_RTC_HSE_DIV_11 - * @arg @ref LL_RCC_RTC_HSE_DIV_12 - * @arg @ref LL_RCC_RTC_HSE_DIV_13 - * @arg @ref LL_RCC_RTC_HSE_DIV_14 - * @arg @ref LL_RCC_RTC_HSE_DIV_15 - * @arg @ref LL_RCC_RTC_HSE_DIV_16 - * @arg @ref LL_RCC_RTC_HSE_DIV_17 - * @arg @ref LL_RCC_RTC_HSE_DIV_18 - * @arg @ref LL_RCC_RTC_HSE_DIV_19 - * @arg @ref LL_RCC_RTC_HSE_DIV_20 - * @arg @ref LL_RCC_RTC_HSE_DIV_21 - * @arg @ref LL_RCC_RTC_HSE_DIV_22 - * @arg @ref LL_RCC_RTC_HSE_DIV_23 - * @arg @ref LL_RCC_RTC_HSE_DIV_24 - * @arg @ref LL_RCC_RTC_HSE_DIV_25 - * @arg @ref LL_RCC_RTC_HSE_DIV_26 - * @arg @ref LL_RCC_RTC_HSE_DIV_27 - * @arg @ref LL_RCC_RTC_HSE_DIV_28 - * @arg @ref LL_RCC_RTC_HSE_DIV_29 - * @arg @ref LL_RCC_RTC_HSE_DIV_30 - * @arg @ref LL_RCC_RTC_HSE_DIV_31 - * @arg @ref LL_RCC_RTC_HSE_DIV_32 - * @arg @ref LL_RCC_RTC_HSE_DIV_33 - * @arg @ref LL_RCC_RTC_HSE_DIV_34 - * @arg @ref LL_RCC_RTC_HSE_DIV_35 - * @arg @ref LL_RCC_RTC_HSE_DIV_36 - * @arg @ref LL_RCC_RTC_HSE_DIV_37 - * @arg @ref LL_RCC_RTC_HSE_DIV_38 - * @arg @ref LL_RCC_RTC_HSE_DIV_39 - * @arg @ref LL_RCC_RTC_HSE_DIV_40 - * @arg @ref LL_RCC_RTC_HSE_DIV_41 - * @arg @ref LL_RCC_RTC_HSE_DIV_42 - * @arg @ref LL_RCC_RTC_HSE_DIV_43 - * @arg @ref LL_RCC_RTC_HSE_DIV_44 - * @arg @ref LL_RCC_RTC_HSE_DIV_45 - * @arg @ref LL_RCC_RTC_HSE_DIV_46 - * @arg @ref LL_RCC_RTC_HSE_DIV_47 - * @arg @ref LL_RCC_RTC_HSE_DIV_48 - * @arg @ref LL_RCC_RTC_HSE_DIV_49 - * @arg @ref LL_RCC_RTC_HSE_DIV_50 - * @arg @ref LL_RCC_RTC_HSE_DIV_51 - * @arg @ref LL_RCC_RTC_HSE_DIV_52 - * @arg @ref LL_RCC_RTC_HSE_DIV_53 - * @arg @ref LL_RCC_RTC_HSE_DIV_54 - * @arg @ref LL_RCC_RTC_HSE_DIV_55 - * @arg @ref LL_RCC_RTC_HSE_DIV_56 - * @arg @ref LL_RCC_RTC_HSE_DIV_57 - * @arg @ref LL_RCC_RTC_HSE_DIV_58 - * @arg @ref LL_RCC_RTC_HSE_DIV_59 - * @arg @ref LL_RCC_RTC_HSE_DIV_60 - * @arg @ref LL_RCC_RTC_HSE_DIV_61 - * @arg @ref LL_RCC_RTC_HSE_DIV_62 - * @arg @ref LL_RCC_RTC_HSE_DIV_63 - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetRTC_HSEPrescaler(uint32_t Prescaler) -{ - MODIFY_REG(RCC->CFGR, RCC_CFGR_RTCPRE, Prescaler); -} - -/** - * @brief Get HSE Prescalers for RTC Clock - * @rmtoll CFGR RTCPRE LL_RCC_GetRTC_HSEPrescaler - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_RTC_NOCLOCK - * @arg @ref LL_RCC_RTC_HSE_DIV_2 - * @arg @ref LL_RCC_RTC_HSE_DIV_3 - * @arg @ref LL_RCC_RTC_HSE_DIV_4 - * @arg @ref LL_RCC_RTC_HSE_DIV_5 - * @arg @ref LL_RCC_RTC_HSE_DIV_6 - * @arg @ref LL_RCC_RTC_HSE_DIV_7 - * @arg @ref LL_RCC_RTC_HSE_DIV_8 - * @arg @ref LL_RCC_RTC_HSE_DIV_9 - * @arg @ref LL_RCC_RTC_HSE_DIV_10 - * @arg @ref LL_RCC_RTC_HSE_DIV_11 - * @arg @ref LL_RCC_RTC_HSE_DIV_12 - * @arg @ref LL_RCC_RTC_HSE_DIV_13 - * @arg @ref LL_RCC_RTC_HSE_DIV_14 - * @arg @ref LL_RCC_RTC_HSE_DIV_15 - * @arg @ref LL_RCC_RTC_HSE_DIV_16 - * @arg @ref LL_RCC_RTC_HSE_DIV_17 - * @arg @ref LL_RCC_RTC_HSE_DIV_18 - * @arg @ref LL_RCC_RTC_HSE_DIV_19 - * @arg @ref LL_RCC_RTC_HSE_DIV_20 - * @arg @ref LL_RCC_RTC_HSE_DIV_21 - * @arg @ref LL_RCC_RTC_HSE_DIV_22 - * @arg @ref LL_RCC_RTC_HSE_DIV_23 - * @arg @ref LL_RCC_RTC_HSE_DIV_24 - * @arg @ref LL_RCC_RTC_HSE_DIV_25 - * @arg @ref LL_RCC_RTC_HSE_DIV_26 - * @arg @ref LL_RCC_RTC_HSE_DIV_27 - * @arg @ref LL_RCC_RTC_HSE_DIV_28 - * @arg @ref LL_RCC_RTC_HSE_DIV_29 - * @arg @ref LL_RCC_RTC_HSE_DIV_30 - * @arg @ref LL_RCC_RTC_HSE_DIV_31 - * @arg @ref LL_RCC_RTC_HSE_DIV_32 - * @arg @ref LL_RCC_RTC_HSE_DIV_33 - * @arg @ref LL_RCC_RTC_HSE_DIV_34 - * @arg @ref LL_RCC_RTC_HSE_DIV_35 - * @arg @ref LL_RCC_RTC_HSE_DIV_36 - * @arg @ref LL_RCC_RTC_HSE_DIV_37 - * @arg @ref LL_RCC_RTC_HSE_DIV_38 - * @arg @ref LL_RCC_RTC_HSE_DIV_39 - * @arg @ref LL_RCC_RTC_HSE_DIV_40 - * @arg @ref LL_RCC_RTC_HSE_DIV_41 - * @arg @ref LL_RCC_RTC_HSE_DIV_42 - * @arg @ref LL_RCC_RTC_HSE_DIV_43 - * @arg @ref LL_RCC_RTC_HSE_DIV_44 - * @arg @ref LL_RCC_RTC_HSE_DIV_45 - * @arg @ref LL_RCC_RTC_HSE_DIV_46 - * @arg @ref LL_RCC_RTC_HSE_DIV_47 - * @arg @ref LL_RCC_RTC_HSE_DIV_48 - * @arg @ref LL_RCC_RTC_HSE_DIV_49 - * @arg @ref LL_RCC_RTC_HSE_DIV_50 - * @arg @ref LL_RCC_RTC_HSE_DIV_51 - * @arg @ref LL_RCC_RTC_HSE_DIV_52 - * @arg @ref LL_RCC_RTC_HSE_DIV_53 - * @arg @ref LL_RCC_RTC_HSE_DIV_54 - * @arg @ref LL_RCC_RTC_HSE_DIV_55 - * @arg @ref LL_RCC_RTC_HSE_DIV_56 - * @arg @ref LL_RCC_RTC_HSE_DIV_57 - * @arg @ref LL_RCC_RTC_HSE_DIV_58 - * @arg @ref LL_RCC_RTC_HSE_DIV_59 - * @arg @ref LL_RCC_RTC_HSE_DIV_60 - * @arg @ref LL_RCC_RTC_HSE_DIV_61 - * @arg @ref LL_RCC_RTC_HSE_DIV_62 - * @arg @ref LL_RCC_RTC_HSE_DIV_63 - */ -__STATIC_INLINE uint32_t LL_RCC_GetRTC_HSEPrescaler(void) -{ - return (uint32_t)(READ_BIT(RCC->CFGR, RCC_CFGR_RTCPRE)); -} - -/** - * @} - */ - -/** @defgroup RCC_LL_EF_TIM_CLOCK_PRESCALER TIM - * @{ - */ - -/** - * @brief Set Timers Clock Prescalers - * @rmtoll CFGR TIMPRE LL_RCC_SetTIMPrescaler - * @param Prescaler This parameter can be one of the following values: - * @arg @ref LL_RCC_TIM_PRESCALER_TWICE - * @arg @ref LL_RCC_TIM_PRESCALER_FOUR_TIMES - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetTIMPrescaler(uint32_t Prescaler) -{ - MODIFY_REG(RCC->CFGR, RCC_CFGR_TIMPRE, Prescaler); -} - -/** - * @brief Get Timers Clock Prescalers - * @rmtoll CFGR TIMPRE LL_RCC_GetTIMPrescaler - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_TIM_PRESCALER_TWICE - * @arg @ref LL_RCC_TIM_PRESCALER_FOUR_TIMES - */ -__STATIC_INLINE uint32_t LL_RCC_GetTIMPrescaler(void) -{ - return (uint32_t)(READ_BIT(RCC->CFGR, RCC_CFGR_TIMPRE)); -} - -/** - * @} - */ - -#if defined(HRTIM1) -/** @defgroup RCC_LL_EF_HRTIM_SET_CLOCK_SOURCE HRTIM - * @{ - */ - -/** - * @brief Set High Resolution Timers Clock Source - * @rmtoll CFGR HRTIMSEL LL_RCC_SetHRTIMClockSource - * @param Prescaler This parameter can be one of the following values: - * @arg @ref LL_RCC_HRTIM_CLKSOURCE_TIM - * @arg @ref LL_RCC_HRTIM_CLKSOURCE_CPU - * @retval None - */ -__STATIC_INLINE void LL_RCC_SetHRTIMClockSource(uint32_t Prescaler) -{ - MODIFY_REG(RCC->CFGR, RCC_CFGR_HRTIMSEL, Prescaler); -} -#endif /* HRTIM1 */ - -#if defined(HRTIM1) -/** - * @brief Get High Resolution Timers Clock Source - * @rmtoll CFGR HRTIMSEL LL_RCC_GetHRTIMClockSource - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_HRTIM_CLKSOURCE_TIM - * @arg @ref LL_RCC_HRTIM_CLKSOURCE_CPU - */ -__STATIC_INLINE uint32_t LL_RCC_GetHRTIMClockSource(void) -{ - return (uint32_t)(READ_BIT(RCC->CFGR, RCC_CFGR_HRTIMSEL)); -} -/** - * @} - */ -#endif /* HRTIM1 */ - -/** @defgroup RCC_LL_EF_PLL PLL - * @{ - */ - -/** - * @brief Set the oscillator used as PLL clock source. - * @note PLLSRC can be written only when All PLLs are disabled. - * @rmtoll PLLCKSELR PLLSRC LL_RCC_PLL_SetSource - * @param PLLSource parameter can be one of the following values: - * @arg @ref LL_RCC_PLLSOURCE_HSI - * @arg @ref LL_RCC_PLLSOURCE_CSI - * @arg @ref LL_RCC_PLLSOURCE_HSE - * @arg @ref LL_RCC_PLLSOURCE_NONE - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL_SetSource(uint32_t PLLSource) -{ - MODIFY_REG(RCC->PLLCKSELR, RCC_PLLCKSELR_PLLSRC, PLLSource); -} - -/** - * @brief Get the oscillator used as PLL clock source. - * @rmtoll PLLCKSELR PLLSRC LL_RCC_PLL_GetSource - * @retval Returned value can be one of the following values: - * @arg @ref LL_RCC_PLLSOURCE_HSI - * @arg @ref LL_RCC_PLLSOURCE_CSI - * @arg @ref LL_RCC_PLLSOURCE_HSE - * @arg @ref LL_RCC_PLLSOURCE_NONE - */ -__STATIC_INLINE uint32_t LL_RCC_PLL_GetSource(void) -{ - return (uint32_t)(READ_BIT(RCC->PLLCKSELR, RCC_PLLCKSELR_PLLSRC)); -} - -/** - * @brief Enable PLL1 - * @rmtoll CR PLL1ON LL_RCC_PLL1_Enable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL1_Enable(void) -{ - SET_BIT(RCC->CR, RCC_CR_PLL1ON); -} - -/** - * @brief Disable PLL1 - * @note Cannot be disabled if the PLL1 clock is used as the system clock - * @rmtoll CR PLL1ON LL_RCC_PLL1_Disable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL1_Disable(void) -{ - CLEAR_BIT(RCC->CR, RCC_CR_PLL1ON); -} - -/** - * @brief Check if PLL1 Ready - * @rmtoll CR PLL1RDY LL_RCC_PLL1_IsReady - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_PLL1_IsReady(void) -{ - return ((READ_BIT(RCC->CR, RCC_CR_PLL1RDY) == (RCC_CR_PLL1RDY)) ? 1UL : 0UL); -} - -/** - * @brief Enable PLL1P - * @note This API shall be called only when PLL1 is disabled. - * @rmtoll PLLCFGR DIVP1EN LL_RCC_PLL1P_Enable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL1P_Enable(void) -{ - SET_BIT(RCC->PLLCFGR, RCC_PLLCFGR_DIVP1EN); -} - -/** - * @brief Enable PLL1Q - * @note This API shall be called only when PLL1 is disabled. - * @rmtoll PLLCFGR DIVQ1EN LL_RCC_PLL1Q_Enable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL1Q_Enable(void) -{ - SET_BIT(RCC->PLLCFGR, RCC_PLLCFGR_DIVQ1EN); -} - -/** - * @brief Enable PLL1R - * @note This API shall be called only when PLL1 is disabled. - * @rmtoll PLLCFGR DIVR1EN LL_RCC_PLL1R_Enable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL1R_Enable(void) -{ - SET_BIT(RCC->PLLCFGR, RCC_PLLCFGR_DIVR1EN); -} - -/** - * @brief Enable PLL1 FRACN - * @rmtoll PLLCFGR PLL1FRACEN LL_RCC_PLL1FRACN_Enable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL1FRACN_Enable(void) -{ - SET_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLL1FRACEN); -} - -/** - * @brief Check if PLL1 P is enabled - * @rmtoll PLLCFGR DIVP1EN LL_RCC_PLL1P_IsEnabled - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_PLL1P_IsEnabled(void) -{ - return ((READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_DIVP1EN) == RCC_PLLCFGR_DIVP1EN) ? 1UL : 0UL); -} - -/** - * @brief Check if PLL1 Q is enabled - * @rmtoll PLLCFGR DIVQ1EN LL_RCC_PLL1Q_IsEnabled - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_PLL1Q_IsEnabled(void) -{ - return ((READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_DIVQ1EN) == RCC_PLLCFGR_DIVQ1EN) ? 1UL : 0UL); -} - -/** - * @brief Check if PLL1 R is enabled - * @rmtoll PLLCFGR DIVR1EN LL_RCC_PLL1R_IsEnabled - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_PLL1R_IsEnabled(void) -{ - return ((READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_DIVR1EN) == RCC_PLLCFGR_DIVR1EN) ? 1UL : 0UL); -} - -/** - * @brief Check if PLL1 FRACN is enabled - * @rmtoll PLLCFGR PLL1FRACEN LL_RCC_PLL1FRACN_IsEnabled - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_PLL1FRACN_IsEnabled(void) -{ - return ((READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLL1FRACEN) == RCC_PLLCFGR_PLL1FRACEN) ? 1UL : 0UL); -} - -/** - * @brief Disable PLL1P - * @note This API shall be called only when PLL1 is disabled. - * @rmtoll PLLCFGR DIVP1EN LL_RCC_PLL1P_Disable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL1P_Disable(void) -{ - CLEAR_BIT(RCC->PLLCFGR, RCC_PLLCFGR_DIVP1EN); -} - -/** - * @brief Disable PLL1Q - * @note This API shall be called only when PLL1 is disabled. - * @rmtoll PLLCFGR DIVQ1EN LL_RCC_PLL1Q_Disable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL1Q_Disable(void) -{ - CLEAR_BIT(RCC->PLLCFGR, RCC_PLLCFGR_DIVQ1EN); -} - -/** - * @brief Disable PLL1R - * @note This API shall be called only when PLL1 is disabled. - * @rmtoll PLLCFGR DIVR1EN LL_RCC_PLL1R_Disable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL1R_Disable(void) -{ - CLEAR_BIT(RCC->PLLCFGR, RCC_PLLCFGR_DIVR1EN); -} - -/** - * @brief Disable PLL1 FRACN - * @rmtoll PLLCFGR PLL1FRACEN LL_RCC_PLL1FRACN_Enable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL1FRACN_Disable(void) -{ - CLEAR_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLL1FRACEN); -} - -/** - * @brief Set PLL1 VCO OutputRange - * @note This API shall be called only when PLL1 is disabled. - * @rmtoll PLLCFGR PLL1VCOSEL LL_RCC_PLL1_SetVCOOuputRange - * @param VCORange This parameter can be one of the following values: - * @arg @ref LL_RCC_PLLVCORANGE_WIDE - * @arg @ref LL_RCC_PLLVCORANGE_MEDIUM - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL1_SetVCOOutputRange(uint32_t VCORange) -{ - MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLL1VCOSEL, VCORange << RCC_PLLCFGR_PLL1VCOSEL_Pos); -} - -/** - * @brief Set PLL1 VCO Input Range - * @note This API shall be called only when PLL1 is disabled. - * @rmtoll PLLCFGR PLL1RGE LL_RCC_PLL1_SetVCOInputRange - * @param InputRange This parameter can be one of the following values: - * @arg @ref LL_RCC_PLLINPUTRANGE_1_2 - * @arg @ref LL_RCC_PLLINPUTRANGE_2_4 - * @arg @ref LL_RCC_PLLINPUTRANGE_4_8 - * @arg @ref LL_RCC_PLLINPUTRANGE_8_16 - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL1_SetVCOInputRange(uint32_t InputRange) -{ - MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLL1RGE, InputRange << RCC_PLLCFGR_PLL1RGE_Pos); -} - -/** - * @brief Get PLL1 N Coefficient - * @rmtoll PLL1DIVR N1 LL_RCC_PLL1_GetN - * @retval A value between 4 and 512 - */ -__STATIC_INLINE uint32_t LL_RCC_PLL1_GetN(void) -{ - return (uint32_t)((READ_BIT(RCC->PLL1DIVR, RCC_PLL1DIVR_N1) >> RCC_PLL1DIVR_N1_Pos) + 1UL); -} - -/** - * @brief Get PLL1 M Coefficient - * @rmtoll PLLCKSELR DIVM1 LL_RCC_PLL1_GetM - * @retval A value between 0 and 63 - */ -__STATIC_INLINE uint32_t LL_RCC_PLL1_GetM(void) -{ - return (uint32_t)(READ_BIT(RCC->PLLCKSELR, RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos); -} - -/** - * @brief Get PLL1 P Coefficient - * @rmtoll PLL1DIVR P1 LL_RCC_PLL1_GetP - * @retval A value between 2 and 128 - */ -__STATIC_INLINE uint32_t LL_RCC_PLL1_GetP(void) -{ - return (uint32_t)((READ_BIT(RCC->PLL1DIVR, RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) + 1UL); -} - -/** - * @brief Get PLL1 Q Coefficient - * @rmtoll PLL1DIVR Q1 LL_RCC_PLL1_GetQ - * @retval A value between 1 and 128 - */ -__STATIC_INLINE uint32_t LL_RCC_PLL1_GetQ(void) -{ - return (uint32_t)((READ_BIT(RCC->PLL1DIVR, RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) + 1UL); -} - -/** - * @brief Get PLL1 R Coefficient - * @rmtoll PLL1DIVR R1 LL_RCC_PLL1_GetR - * @retval A value between 1 and 128 - */ -__STATIC_INLINE uint32_t LL_RCC_PLL1_GetR(void) -{ - return (uint32_t)((READ_BIT(RCC->PLL1DIVR, RCC_PLL1DIVR_R1) >> RCC_PLL1DIVR_R1_Pos) + 1UL); -} - -/** - * @brief Get PLL1 FRACN Coefficient - * @rmtoll PLL1FRACR FRACN1 LL_RCC_PLL1_GetFRACN - * @retval A value between 0 and 8191 (0x1FFF) - */ -__STATIC_INLINE uint32_t LL_RCC_PLL1_GetFRACN(void) -{ - return (uint32_t)(READ_BIT(RCC->PLL1FRACR, RCC_PLL1FRACR_FRACN1) >> RCC_PLL1FRACR_FRACN1_Pos); -} - -/** - * @brief Set PLL1 N Coefficient - * @note This API shall be called only when PLL1 is disabled. - * @rmtoll PLL1DIVR N1 LL_RCC_PLL1_SetN - * @param N parameter can be a value between 4 and 512 - */ -__STATIC_INLINE void LL_RCC_PLL1_SetN(uint32_t N) -{ - MODIFY_REG(RCC->PLL1DIVR, RCC_PLL1DIVR_N1, (N - 1UL) << RCC_PLL1DIVR_N1_Pos); -} - -/** - * @brief Set PLL1 M Coefficient - * @note This API shall be called only when PLL1 is disabled. - * @rmtoll PLLCKSELR DIVM1 LL_RCC_PLL1_SetM - * @param M parameter can be a value between 0 and 63 - */ -__STATIC_INLINE void LL_RCC_PLL1_SetM(uint32_t M) -{ - MODIFY_REG(RCC->PLLCKSELR, RCC_PLLCKSELR_DIVM1, M << RCC_PLLCKSELR_DIVM1_Pos); -} - -/** - * @brief Set PLL1 P Coefficient - * @note This API shall be called only when PLL1 is disabled. - * @rmtoll PLL1DIVR P1 LL_RCC_PLL1_SetP - * @param P parameter can be a value between 2 (or 1*) and 128 (ODD division factor not supported) - * - * (*) : For stm32h72xxx and stm32h73xxx family lines. - */ -__STATIC_INLINE void LL_RCC_PLL1_SetP(uint32_t P) -{ - MODIFY_REG(RCC->PLL1DIVR, RCC_PLL1DIVR_P1, (P - 1UL) << RCC_PLL1DIVR_P1_Pos); -} - -/** - * @brief Set PLL1 Q Coefficient - * @note This API shall be called only when PLL1 is disabled. - * @rmtoll PLL1DIVR Q1 LL_RCC_PLL1_SetQ - * @param Q parameter can be a value between 1 and 128 - */ -__STATIC_INLINE void LL_RCC_PLL1_SetQ(uint32_t Q) -{ - MODIFY_REG(RCC->PLL1DIVR, RCC_PLL1DIVR_Q1, (Q - 1UL) << RCC_PLL1DIVR_Q1_Pos); -} - -/** - * @brief Set PLL1 R Coefficient - * @note This API shall be called only when PLL1 is disabled. - * @rmtoll PLL1DIVR R1 LL_RCC_PLL1_SetR - * @param R parameter can be a value between 1 and 128 - */ -__STATIC_INLINE void LL_RCC_PLL1_SetR(uint32_t R) -{ - MODIFY_REG(RCC->PLL1DIVR, RCC_PLL1DIVR_R1, (R - 1UL) << RCC_PLL1DIVR_R1_Pos); -} - -/** - * @brief Set PLL1 FRACN Coefficient - * @rmtoll PLL1FRACR FRACN1 LL_RCC_PLL1_SetFRACN - * @param FRACN parameter can be a value between 0 and 8191 (0x1FFF) - */ -__STATIC_INLINE void LL_RCC_PLL1_SetFRACN(uint32_t FRACN) -{ - MODIFY_REG(RCC->PLL1FRACR, RCC_PLL1FRACR_FRACN1, FRACN << RCC_PLL1FRACR_FRACN1_Pos); -} - -/** - * @brief Enable PLL2 - * @rmtoll CR PLL2ON LL_RCC_PLL2_Enable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL2_Enable(void) -{ - SET_BIT(RCC->CR, RCC_CR_PLL2ON); -} - -/** - * @brief Disable PLL2 - * @note Cannot be disabled if the PLL2 clock is used as the system clock - * @rmtoll CR PLL2ON LL_RCC_PLL2_Disable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL2_Disable(void) -{ - CLEAR_BIT(RCC->CR, RCC_CR_PLL2ON); -} - -/** - * @brief Check if PLL2 Ready - * @rmtoll CR PLL2RDY LL_RCC_PLL2_IsReady - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_PLL2_IsReady(void) -{ - return ((READ_BIT(RCC->CR, RCC_CR_PLL2RDY) == (RCC_CR_PLL2RDY)) ? 1UL : 0UL); -} - -/** - * @brief Enable PLL2P - * @note This API shall be called only when PLL2 is disabled. - * @rmtoll PLLCFGR DIVP2EN LL_RCC_PLL2P_Enable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL2P_Enable(void) -{ - SET_BIT(RCC->PLLCFGR, RCC_PLLCFGR_DIVP2EN); -} - -/** - * @brief Enable PLL2Q - * @note This API shall be called only when PLL2 is disabled. - * @rmtoll PLLCFGR DIVQ2EN LL_RCC_PLL2Q_Enable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL2Q_Enable(void) -{ - SET_BIT(RCC->PLLCFGR, RCC_PLLCFGR_DIVQ2EN); -} - -/** - * @brief Enable PLL2R - * @note This API shall be called only when PLL2 is disabled. - * @rmtoll PLLCFGR DIVR2EN LL_RCC_PLL2R_Enable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL2R_Enable(void) -{ - SET_BIT(RCC->PLLCFGR, RCC_PLLCFGR_DIVR2EN); -} - -/** - * @brief Enable PLL2 FRACN - * @rmtoll PLLCFGR PLL2FRACEN LL_RCC_PLL2FRACN_Enable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL2FRACN_Enable(void) -{ - SET_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLL2FRACEN); -} - -/** - * @brief Check if PLL2 P is enabled - * @rmtoll PLLCFGR DIVP2EN LL_RCC_PLL2P_IsEnabled - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_PLL2P_IsEnabled(void) -{ - return ((READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_DIVP2EN) == RCC_PLLCFGR_DIVP2EN) ? 1UL : 0UL); -} - -/** - * @brief Check if PLL2 Q is enabled - * @rmtoll PLLCFGR DIVQ2EN LL_RCC_PLL2Q_IsEnabled - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_PLL2Q_IsEnabled(void) -{ - return ((READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_DIVQ2EN) == RCC_PLLCFGR_DIVQ2EN) ? 1UL : 0UL); -} - -/** - * @brief Check if PLL2 R is enabled - * @rmtoll PLLCFGR DIVR2EN LL_RCC_PLL2R_IsEnabled - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_PLL2R_IsEnabled(void) -{ - return ((READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_DIVR2EN) == RCC_PLLCFGR_DIVR2EN) ? 1UL : 0UL); -} - -/** - * @brief Check if PLL2 FRACN is enabled - * @rmtoll PLLCFGR PLL2FRACEN LL_RCC_PLL2FRACN_IsEnabled - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_PLL2FRACN_IsEnabled(void) -{ - return ((READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLL2FRACEN) == RCC_PLLCFGR_PLL2FRACEN) ? 1UL : 0UL); -} - -/** - * @brief Disable PLL2P - * @note This API shall be called only when PLL2 is disabled. - * @rmtoll PLLCFGR DIVP2EN LL_RCC_PLL2P_Disable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL2P_Disable(void) -{ - CLEAR_BIT(RCC->PLLCFGR, RCC_PLLCFGR_DIVP2EN); -} - -/** - * @brief Disable PLL2Q - * @note This API shall be called only when PLL2 is disabled. - * @rmtoll PLLCFGR DIVQ2EN LL_RCC_PLL2Q_Disable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL2Q_Disable(void) -{ - CLEAR_BIT(RCC->PLLCFGR, RCC_PLLCFGR_DIVQ2EN); -} - -/** - * @brief Disable PLL2R - * @note This API shall be called only when PLL2 is disabled. - * @rmtoll PLLCFGR DIVR2EN LL_RCC_PLL2R_Disable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL2R_Disable(void) -{ - CLEAR_BIT(RCC->PLLCFGR, RCC_PLLCFGR_DIVR2EN); -} - -/** - * @brief Disable PLL2 FRACN - * @rmtoll PLLCFGR PLL2FRACEN LL_RCC_PLL2FRACN_Enable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL2FRACN_Disable(void) -{ - CLEAR_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLL2FRACEN); -} - -/** - * @brief Set PLL2 VCO OutputRange - * @note This API shall be called only when PLL2 is disabled. - * @rmtoll PLLCFGR PLL2VCOSEL LL_RCC_PLL2_SetVCOOuputRange - * @param VCORange This parameter can be one of the following values: - * @arg @ref LL_RCC_PLLVCORANGE_WIDE - * @arg @ref LL_RCC_PLLVCORANGE_MEDIUM - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL2_SetVCOOutputRange(uint32_t VCORange) -{ - MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLL2VCOSEL, VCORange << RCC_PLLCFGR_PLL2VCOSEL_Pos); -} - -/** - * @brief Set PLL2 VCO Input Range - * @note This API shall be called only when PLL2 is disabled. - * @rmtoll PLLCFGR PLL2RGE LL_RCC_PLL2_SetVCOInputRange - * @param InputRange This parameter can be one of the following values: - * @arg @ref LL_RCC_PLLINPUTRANGE_1_2 - * @arg @ref LL_RCC_PLLINPUTRANGE_2_4 - * @arg @ref LL_RCC_PLLINPUTRANGE_4_8 - * @arg @ref LL_RCC_PLLINPUTRANGE_8_16 - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL2_SetVCOInputRange(uint32_t InputRange) -{ - MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLL2RGE, InputRange << RCC_PLLCFGR_PLL2RGE_Pos); -} - -/** - * @brief Get PLL2 N Coefficient - * @rmtoll PLL2DIVR N2 LL_RCC_PLL2_GetN - * @retval A value between 4 and 512 - */ -__STATIC_INLINE uint32_t LL_RCC_PLL2_GetN(void) -{ - return (uint32_t)((READ_BIT(RCC->PLL2DIVR, RCC_PLL2DIVR_N2) >> RCC_PLL2DIVR_N2_Pos) + 1UL); -} - -/** - * @brief Get PLL2 M Coefficient - * @rmtoll PLLCKSELR DIVM2 LL_RCC_PLL2_GetM - * @retval A value between 0 and 63 - */ -__STATIC_INLINE uint32_t LL_RCC_PLL2_GetM(void) -{ - return (uint32_t)(READ_BIT(RCC->PLLCKSELR, RCC_PLLCKSELR_DIVM2) >> RCC_PLLCKSELR_DIVM2_Pos); -} - -/** - * @brief Get PLL2 P Coefficient - * @rmtoll PLL2DIVR P2 LL_RCC_PLL2_GetP - * @retval A value between 1 and 128 - */ -__STATIC_INLINE uint32_t LL_RCC_PLL2_GetP(void) -{ - return (uint32_t)((READ_BIT(RCC->PLL2DIVR, RCC_PLL2DIVR_P2) >> RCC_PLL2DIVR_P2_Pos) + 1UL); -} - -/** - * @brief Get PLL2 Q Coefficient - * @rmtoll PLL2DIVR Q2 LL_RCC_PLL2_GetQ - * @retval A value between 1 and 128 - */ -__STATIC_INLINE uint32_t LL_RCC_PLL2_GetQ(void) -{ - return (uint32_t)((READ_BIT(RCC->PLL2DIVR, RCC_PLL2DIVR_Q2) >> RCC_PLL2DIVR_Q2_Pos) + 1UL); -} - -/** - * @brief Get PLL2 R Coefficient - * @rmtoll PLL2DIVR R2 LL_RCC_PLL2_GetR - * @retval A value between 1 and 128 - */ -__STATIC_INLINE uint32_t LL_RCC_PLL2_GetR(void) -{ - return (uint32_t)((READ_BIT(RCC->PLL2DIVR, RCC_PLL2DIVR_R2) >> RCC_PLL2DIVR_R2_Pos) + 1UL); -} - -/** - * @brief Get PLL2 FRACN Coefficient - * @rmtoll PLL2FRACR FRACN2 LL_RCC_PLL2_GetFRACN - * @retval A value between 0 and 8191 (0x1FFF) - */ -__STATIC_INLINE uint32_t LL_RCC_PLL2_GetFRACN(void) -{ - return (uint32_t)(READ_BIT(RCC->PLL2FRACR, RCC_PLL2FRACR_FRACN2) >> RCC_PLL2FRACR_FRACN2_Pos); -} - -/** - * @brief Set PLL2 N Coefficient - * @note This API shall be called only when PLL2 is disabled. - * @rmtoll PLL2DIVR N2 LL_RCC_PLL2_SetN - * @param N parameter can be a value between 4 and 512 - */ -__STATIC_INLINE void LL_RCC_PLL2_SetN(uint32_t N) -{ - MODIFY_REG(RCC->PLL2DIVR, RCC_PLL2DIVR_N2, (N - 1UL) << RCC_PLL2DIVR_N2_Pos); -} - -/** - * @brief Set PLL2 M Coefficient - * @note This API shall be called only when PLL2 is disabled. - * @rmtoll PLLCKSELR DIVM2 LL_RCC_PLL2_SetM - * @param M parameter can be a value between 0 and 63 - */ -__STATIC_INLINE void LL_RCC_PLL2_SetM(uint32_t M) -{ - MODIFY_REG(RCC->PLLCKSELR, RCC_PLLCKSELR_DIVM2, M << RCC_PLLCKSELR_DIVM2_Pos); -} - -/** - * @brief Set PLL2 P Coefficient - * @note This API shall be called only when PLL2 is disabled. - * @rmtoll PLL2DIVR P2 LL_RCC_PLL2_SetP - * @param P parameter can be a value between 1 and 128 - */ -__STATIC_INLINE void LL_RCC_PLL2_SetP(uint32_t P) -{ - MODIFY_REG(RCC->PLL2DIVR, RCC_PLL2DIVR_P2, (P - 1UL) << RCC_PLL2DIVR_P2_Pos); -} - -/** - * @brief Set PLL2 Q Coefficient - * @note This API shall be called only when PLL2 is disabled. - * @rmtoll PLL2DIVR Q2 LL_RCC_PLL2_SetQ - * @param Q parameter can be a value between 1 and 128 - */ -__STATIC_INLINE void LL_RCC_PLL2_SetQ(uint32_t Q) -{ - MODIFY_REG(RCC->PLL2DIVR, RCC_PLL2DIVR_Q2, (Q - 1UL) << RCC_PLL2DIVR_Q2_Pos); -} - -/** - * @brief Set PLL2 R Coefficient - * @note This API shall be called only when PLL2 is disabled. - * @rmtoll PLL2DIVR R2 LL_RCC_PLL2_SetR - * @param R parameter can be a value between 1 and 128 - */ -__STATIC_INLINE void LL_RCC_PLL2_SetR(uint32_t R) -{ - MODIFY_REG(RCC->PLL2DIVR, RCC_PLL2DIVR_R2, (R - 1UL) << RCC_PLL2DIVR_R2_Pos); -} - -/** - * @brief Set PLL2 FRACN Coefficient - * @rmtoll PLL2FRACR FRACN2 LL_RCC_PLL2_SetFRACN - * @param FRACN parameter can be a value between 0 and 8191 (0x1FFF) - */ -__STATIC_INLINE void LL_RCC_PLL2_SetFRACN(uint32_t FRACN) -{ - MODIFY_REG(RCC->PLL2FRACR, RCC_PLL2FRACR_FRACN2, FRACN << RCC_PLL2FRACR_FRACN2_Pos); -} - -/** - * @brief Enable PLL3 - * @rmtoll CR PLL3ON LL_RCC_PLL3_Enable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL3_Enable(void) -{ - SET_BIT(RCC->CR, RCC_CR_PLL3ON); -} - -/** - * @brief Disable PLL3 - * @note Cannot be disabled if the PLL3 clock is used as the system clock - * @rmtoll CR PLL3ON LL_RCC_PLL3_Disable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL3_Disable(void) -{ - CLEAR_BIT(RCC->CR, RCC_CR_PLL3ON); -} - -/** - * @brief Check if PLL3 Ready - * @rmtoll CR PLL3RDY LL_RCC_PLL3_IsReady - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_PLL3_IsReady(void) -{ - return ((READ_BIT(RCC->CR, RCC_CR_PLL3RDY) == (RCC_CR_PLL3RDY)) ? 1UL : 0UL); -} - -/** - * @brief Enable PLL3P - * @note This API shall be called only when PLL3 is disabled. - * @rmtoll PLLCFGR DIVP3EN LL_RCC_PLL3P_Enable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL3P_Enable(void) -{ - SET_BIT(RCC->PLLCFGR, RCC_PLLCFGR_DIVP3EN); -} - -/** - * @brief Enable PLL3Q - * @note This API shall be called only when PLL3 is disabled. - * @rmtoll PLLCFGR DIVQ3EN LL_RCC_PLL3Q_Enable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL3Q_Enable(void) -{ - SET_BIT(RCC->PLLCFGR, RCC_PLLCFGR_DIVQ3EN); -} - -/** - * @brief Enable PLL3R - * @note This API shall be called only when PLL3 is disabled. - * @rmtoll PLLCFGR DIVR3EN LL_RCC_PLL3R_Enable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL3R_Enable(void) -{ - SET_BIT(RCC->PLLCFGR, RCC_PLLCFGR_DIVR3EN); -} - -/** - * @brief Enable PLL3 FRACN - * @rmtoll PLLCFGR PLL3FRACEN LL_RCC_PLL3FRACN_Enable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL3FRACN_Enable(void) -{ - SET_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLL3FRACEN); -} - -/** - * @brief Check if PLL3 P is enabled - * @rmtoll PLLCFGR DIVP3EN LL_RCC_PLL3P_IsEnabled - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_PLL3P_IsEnabled(void) -{ - return ((READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_DIVP3EN) == RCC_PLLCFGR_DIVP3EN) ? 1UL : 0UL); -} - -/** - * @brief Check if PLL3 Q is enabled - * @rmtoll PLLCFGR DIVQ3EN LL_RCC_PLL3Q_IsEnabled - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_PLL3Q_IsEnabled(void) -{ - return ((READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_DIVQ3EN) == RCC_PLLCFGR_DIVQ3EN) ? 1UL : 0UL); -} - -/** - * @brief Check if PLL3 R is enabled - * @rmtoll PLLCFGR DIVR3EN LL_RCC_PLL3R_IsEnabled - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_PLL3R_IsEnabled(void) -{ - return ((READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_DIVR3EN) == RCC_PLLCFGR_DIVR3EN) ? 1UL : 0UL); -} - -/** - * @brief Check if PLL3 FRACN is enabled - * @rmtoll PLLCFGR PLL3FRACEN LL_RCC_PLL3FRACN_IsEnabled - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_PLL3FRACN_IsEnabled(void) -{ - return ((READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLL3FRACEN) == RCC_PLLCFGR_PLL3FRACEN) ? 1UL : 0UL); -} - -/** - * @brief Disable PLL3P - * @note This API shall be called only when PLL3 is disabled. - * @rmtoll PLLCFGR DIVP2EN LL_RCC_PLL3P_Disable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL3P_Disable(void) -{ - CLEAR_BIT(RCC->PLLCFGR, RCC_PLLCFGR_DIVP3EN); -} - -/** - * @brief Disable PLL3Q - * @note This API shall be called only when PLL3 is disabled. - * @rmtoll PLLCFGR DIVQ3EN LL_RCC_PLL3Q_Disable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL3Q_Disable(void) -{ - CLEAR_BIT(RCC->PLLCFGR, RCC_PLLCFGR_DIVQ3EN); -} - -/** - * @brief Disable PLL3R - * @note This API shall be called only when PLL3 is disabled. - * @rmtoll PLLCFGR DIVR3EN LL_RCC_PLL3R_Disable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL3R_Disable(void) -{ - CLEAR_BIT(RCC->PLLCFGR, RCC_PLLCFGR_DIVR3EN); -} - -/** - * @brief Disable PLL3 FRACN - * @rmtoll PLLCFGR PLL3FRACEN LL_RCC_PLL3FRACN_Enable - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL3FRACN_Disable(void) -{ - CLEAR_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLL3FRACEN); -} - -/** - * @brief Set PLL3 VCO OutputRange - * @note This API shall be called only when PLL3 is disabled. - * @rmtoll PLLCFGR PLL3VCOSEL LL_RCC_PLL3_SetVCOOuputRange - * @param VCORange This parameter can be one of the following values: - * @arg @ref LL_RCC_PLLVCORANGE_WIDE - * @arg @ref LL_RCC_PLLVCORANGE_MEDIUM - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL3_SetVCOOutputRange(uint32_t VCORange) -{ - MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLL3VCOSEL, VCORange << RCC_PLLCFGR_PLL3VCOSEL_Pos); -} - -/** - * @brief Set PLL3 VCO Input Range - * @note This API shall be called only when PLL3 is disabled. - * @rmtoll PLLCFGR PLL3RGE LL_RCC_PLL3_SetVCOInputRange - * @param InputRange This parameter can be one of the following values: - * @arg @ref LL_RCC_PLLINPUTRANGE_1_2 - * @arg @ref LL_RCC_PLLINPUTRANGE_2_4 - * @arg @ref LL_RCC_PLLINPUTRANGE_4_8 - * @arg @ref LL_RCC_PLLINPUTRANGE_8_16 - * @retval None - */ -__STATIC_INLINE void LL_RCC_PLL3_SetVCOInputRange(uint32_t InputRange) -{ - MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLL3RGE, InputRange << RCC_PLLCFGR_PLL3RGE_Pos); -} - -/** - * @brief Get PLL3 N Coefficient - * @rmtoll PLL3DIVR N3 LL_RCC_PLL3_GetN - * @retval A value between 4 and 512 - */ -__STATIC_INLINE uint32_t LL_RCC_PLL3_GetN(void) -{ - return (uint32_t)((READ_BIT(RCC->PLL3DIVR, RCC_PLL3DIVR_N3) >> RCC_PLL3DIVR_N3_Pos) + 1UL); -} - -/** - * @brief Get PLL3 M Coefficient - * @rmtoll PLLCKSELR DIVM3 LL_RCC_PLL3_GetM - * @retval A value between 0 and 63 - */ -__STATIC_INLINE uint32_t LL_RCC_PLL3_GetM(void) -{ - return (uint32_t)(READ_BIT(RCC->PLLCKSELR, RCC_PLLCKSELR_DIVM3) >> RCC_PLLCKSELR_DIVM3_Pos); -} - -/** - * @brief Get PLL3 P Coefficient - * @rmtoll PLL3DIVR P3 LL_RCC_PLL3_GetP - * @retval A value between 1 and 128 - */ -__STATIC_INLINE uint32_t LL_RCC_PLL3_GetP(void) -{ - return (uint32_t)((READ_BIT(RCC->PLL3DIVR, RCC_PLL3DIVR_P3) >> RCC_PLL3DIVR_P3_Pos) + 1UL); -} - -/** - * @brief Get PLL3 Q Coefficient - * @rmtoll PLL3DIVR Q3 LL_RCC_PLL3_GetQ - * @retval A value between 1 and 128 - */ -__STATIC_INLINE uint32_t LL_RCC_PLL3_GetQ(void) -{ - return (uint32_t)((READ_BIT(RCC->PLL3DIVR, RCC_PLL3DIVR_Q3) >> RCC_PLL3DIVR_Q3_Pos) + 1UL); -} - -/** - * @brief Get PLL3 R Coefficient - * @rmtoll PLL3DIVR R3 LL_RCC_PLL3_GetR - * @retval A value between 1 and 128 - */ -__STATIC_INLINE uint32_t LL_RCC_PLL3_GetR(void) -{ - return (uint32_t)((READ_BIT(RCC->PLL3DIVR, RCC_PLL3DIVR_R3) >> RCC_PLL3DIVR_R3_Pos) + 1UL); -} - -/** - * @brief Get PLL3 FRACN Coefficient - * @rmtoll PLL3FRACR FRACN3 LL_RCC_PLL3_GetFRACN - * @retval A value between 0 and 8191 (0x1FFF) - */ -__STATIC_INLINE uint32_t LL_RCC_PLL3_GetFRACN(void) -{ - return (uint32_t)(READ_BIT(RCC->PLL3FRACR, RCC_PLL3FRACR_FRACN3) >> RCC_PLL3FRACR_FRACN3_Pos); -} - -/** - * @brief Set PLL3 N Coefficient - * @note This API shall be called only when PLL3 is disabled. - * @rmtoll PLL3DIVR N3 LL_RCC_PLL3_SetN - * @param N parameter can be a value between 4 and 512 - */ -__STATIC_INLINE void LL_RCC_PLL3_SetN(uint32_t N) -{ - MODIFY_REG(RCC->PLL3DIVR, RCC_PLL3DIVR_N3, (N - 1UL) << RCC_PLL3DIVR_N3_Pos); -} - -/** - * @brief Set PLL3 M Coefficient - * @note This API shall be called only when PLL3 is disabled. - * @rmtoll PLLCKSELR DIVM3 LL_RCC_PLL3_SetM - * @param M parameter can be a value between 0 and 63 - */ -__STATIC_INLINE void LL_RCC_PLL3_SetM(uint32_t M) -{ - MODIFY_REG(RCC->PLLCKSELR, RCC_PLLCKSELR_DIVM3, M << RCC_PLLCKSELR_DIVM3_Pos); -} - -/** - * @brief Set PLL3 P Coefficient - * @note This API shall be called only when PLL3 is disabled. - * @rmtoll PLL3DIVR P3 LL_RCC_PLL3_SetP - * @param P parameter can be a value between 1 and 128 - */ -__STATIC_INLINE void LL_RCC_PLL3_SetP(uint32_t P) -{ - MODIFY_REG(RCC->PLL3DIVR, RCC_PLL3DIVR_P3, (P - 1UL) << RCC_PLL3DIVR_P3_Pos); -} - -/** - * @brief Set PLL3 Q Coefficient - * @note This API shall be called only when PLL3 is disabled. - * @rmtoll PLL3DIVR Q3 LL_RCC_PLL3_SetQ - * @param Q parameter can be a value between 1 and 128 - */ -__STATIC_INLINE void LL_RCC_PLL3_SetQ(uint32_t Q) -{ - MODIFY_REG(RCC->PLL3DIVR, RCC_PLL3DIVR_Q3, (Q - 1UL) << RCC_PLL3DIVR_Q3_Pos); -} - -/** - * @brief Set PLL3 R Coefficient - * @note This API shall be called only when PLL3 is disabled. - * @rmtoll PLL3DIVR R3 LL_RCC_PLL3_SetR - * @param R parameter can be a value between 1 and 128 - */ -__STATIC_INLINE void LL_RCC_PLL3_SetR(uint32_t R) -{ - MODIFY_REG(RCC->PLL3DIVR, RCC_PLL3DIVR_R3, (R - 1UL) << RCC_PLL3DIVR_R3_Pos); -} - -/** - * @brief Set PLL3 FRACN Coefficient - * @rmtoll PLL3FRACR FRACN3 LL_RCC_PLL3_SetFRACN - * @param FRACN parameter can be a value between 0 and 8191 (0x1FFF) - */ -__STATIC_INLINE void LL_RCC_PLL3_SetFRACN(uint32_t FRACN) -{ - MODIFY_REG(RCC->PLL3FRACR, RCC_PLL3FRACR_FRACN3, FRACN << RCC_PLL3FRACR_FRACN3_Pos); -} - - -/** - * @} - */ - - -/** @defgroup RCC_LL_EF_FLAG_Management FLAG Management - * @{ - */ - -/** - * @brief Clear LSI ready interrupt flag - * @rmtoll CICR LSIRDYC LL_RCC_ClearFlag_LSIRDY - * @retval None - */ -__STATIC_INLINE void LL_RCC_ClearFlag_LSIRDY(void) -{ - SET_BIT(RCC->CICR, RCC_CICR_LSIRDYC); -} - -/** - * @brief Clear LSE ready interrupt flag - * @rmtoll CICR LSERDYC LL_RCC_ClearFlag_LSERDY - * @retval None - */ -__STATIC_INLINE void LL_RCC_ClearFlag_LSERDY(void) -{ - SET_BIT(RCC->CICR, RCC_CICR_LSERDYC); -} - -/** - * @brief Clear HSI ready interrupt flag - * @rmtoll CICR HSIRDYC LL_RCC_ClearFlag_HSIRDY - * @retval None - */ -__STATIC_INLINE void LL_RCC_ClearFlag_HSIRDY(void) -{ - SET_BIT(RCC->CICR, RCC_CICR_HSIRDYC); -} - -/** - * @brief Clear HSE ready interrupt flag - * @rmtoll CICR HSERDYC LL_RCC_ClearFlag_HSERDY - * @retval None - */ -__STATIC_INLINE void LL_RCC_ClearFlag_HSERDY(void) -{ - SET_BIT(RCC->CICR, RCC_CICR_HSERDYC); -} - -/** - * @brief Clear CSI ready interrupt flag - * @rmtoll CICR CSIRDYC LL_RCC_ClearFlag_CSIRDY - * @retval None - */ -__STATIC_INLINE void LL_RCC_ClearFlag_CSIRDY(void) -{ - SET_BIT(RCC->CICR, RCC_CICR_CSIRDYC); -} - -/** - * @brief Clear HSI48 ready interrupt flag - * @rmtoll CICR HSI48RDYC LL_RCC_ClearFlag_HSI48RDY - * @retval None - */ -__STATIC_INLINE void LL_RCC_ClearFlag_HSI48RDY(void) -{ - SET_BIT(RCC->CICR, RCC_CICR_HSI48RDYC); -} - -/** - * @brief Clear PLL1 ready interrupt flag - * @rmtoll CICR PLL1RDYC LL_RCC_ClearFlag_PLL1RDY - * @retval None - */ -__STATIC_INLINE void LL_RCC_ClearFlag_PLL1RDY(void) -{ - SET_BIT(RCC->CICR, RCC_CICR_PLLRDYC); -} - -/** - * @brief Clear PLL2 ready interrupt flag - * @rmtoll CICR PLL2RDYC LL_RCC_ClearFlag_PLL2RDY - * @retval None - */ -__STATIC_INLINE void LL_RCC_ClearFlag_PLL2RDY(void) -{ - SET_BIT(RCC->CICR, RCC_CICR_PLL2RDYC); -} - -/** - * @brief Clear PLL3 ready interrupt flag - * @rmtoll CICR PLL3RDYC LL_RCC_ClearFlag_PLL3RDY - * @retval None - */ -__STATIC_INLINE void LL_RCC_ClearFlag_PLL3RDY(void) -{ - SET_BIT(RCC->CICR, RCC_CICR_PLL3RDYC); -} - -/** - * @brief Clear LSE Clock security system interrupt flag - * @rmtoll CICR LSECSSC LL_RCC_ClearFlag_LSECSS - * @retval None - */ -__STATIC_INLINE void LL_RCC_ClearFlag_LSECSS(void) -{ - SET_BIT(RCC->CICR, RCC_CICR_LSECSSC); -} - -/** - * @brief Clear HSE Clock security system interrupt flag - * @rmtoll CICR HSECSSC LL_RCC_ClearFlag_HSECSS - * @retval None - */ -__STATIC_INLINE void LL_RCC_ClearFlag_HSECSS(void) -{ - SET_BIT(RCC->CICR, RCC_CICR_HSECSSC); -} - -/** - * @brief Check if LSI ready interrupt occurred or not - * @rmtoll CIFR LSIRDYF LL_RCC_IsActiveFlag_LSIRDY - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_LSIRDY(void) -{ - return ((READ_BIT(RCC->CIFR, RCC_CIFR_LSIRDYF) == (RCC_CIFR_LSIRDYF)) ? 1UL : 0UL); -} - -/** - * @brief Check if LSE ready interrupt occurred or not - * @rmtoll CIFR LSERDYF LL_RCC_IsActiveFlag_LSERDY - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_LSERDY(void) -{ - return ((READ_BIT(RCC->CIFR, RCC_CIFR_LSERDYF) == (RCC_CIFR_LSERDYF)) ? 1UL : 0UL); -} - -/** - * @brief Check if HSI ready interrupt occurred or not - * @rmtoll CIFR HSIRDYF LL_RCC_IsActiveFlag_HSIRDY - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_HSIRDY(void) -{ - return ((READ_BIT(RCC->CIFR, RCC_CIFR_HSIRDYF) == (RCC_CIFR_HSIRDYF)) ? 1UL : 0UL); -} - -/** - * @brief Check if HSE ready interrupt occurred or not - * @rmtoll CIFR HSERDYF LL_RCC_IsActiveFlag_HSERDY - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_HSERDY(void) -{ - return ((READ_BIT(RCC->CIFR, RCC_CIFR_HSERDYF) == (RCC_CIFR_HSERDYF)) ? 1UL : 0UL); -} - -/** - * @brief Check if CSI ready interrupt occurred or not - * @rmtoll CIFR CSIRDYF LL_RCC_IsActiveFlag_CSIRDY - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_CSIRDY(void) -{ - return ((READ_BIT(RCC->CIFR, RCC_CIFR_CSIRDYF) == (RCC_CIFR_CSIRDYF)) ? 1UL : 0UL); -} - -/** - * @brief Check if HSI48 ready interrupt occurred or not - * @rmtoll CIFR HSI48RDYF LL_RCC_IsActiveFlag_HSI48RDY - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_HSI48RDY(void) -{ - return ((READ_BIT(RCC->CIFR, RCC_CIFR_HSI48RDYF) == (RCC_CIFR_HSI48RDYF)) ? 1UL : 0UL); -} - -/** - * @brief Check if PLL1 ready interrupt occurred or not - * @rmtoll CIFR PLLRDYF LL_RCC_IsActiveFlag_PLL1RDY - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_PLL1RDY(void) -{ - return ((READ_BIT(RCC->CIFR, RCC_CIFR_PLLRDYF) == (RCC_CIFR_PLLRDYF)) ? 1UL : 0UL); -} - -/** - * @brief Check if PLL2 ready interrupt occurred or not - * @rmtoll CIFR PLL2RDYF LL_RCC_IsActiveFlag_PLL2RDY - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_PLL2RDY(void) -{ - return ((READ_BIT(RCC->CIFR, RCC_CIFR_PLL2RDYF) == (RCC_CIFR_PLL2RDYF)) ? 1UL : 0UL); -} - -/** - * @brief Check if PLL3 ready interrupt occurred or not - * @rmtoll CIFR PLL3RDYF LL_RCC_IsActiveFlag_PLL3RDY - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_PLL3RDY(void) -{ - return ((READ_BIT(RCC->CIFR, RCC_CIFR_PLL3RDYF) == (RCC_CIFR_PLL3RDYF)) ? 1UL : 0UL); -} - -/** - * @brief Check if LSE Clock security system interrupt occurred or not - * @rmtoll CIFR LSECSSF LL_RCC_IsActiveFlag_LSECSS - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_LSECSS(void) -{ - return ((READ_BIT(RCC->CIFR, RCC_CIFR_LSECSSF) == (RCC_CIFR_LSECSSF)) ? 1UL : 0UL); -} - -/** - * @brief Check if HSE Clock security system interrupt occurred or not - * @rmtoll CIFR HSECSSF LL_RCC_IsActiveFlag_HSECSS - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_HSECSS(void) -{ - return ((READ_BIT(RCC->CIFR, RCC_CIFR_HSECSSF) == (RCC_CIFR_HSECSSF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC flag Low Power D1 reset is set or not. - * @rmtoll RSR LPWRRSTF LL_RCC_IsActiveFlag_LPWRRST (*)\n - * RSR LPWR1RSTF LL_RCC_IsActiveFlag_LPWRRST (**) - * - * (*) Only available for single core devices - * (**) Only available for Dual core devices - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_LPWRRST(void) -{ -#if defined(DUAL_CORE) - return ((READ_BIT(RCC->RSR, RCC_RSR_LPWR1RSTF) == (RCC_RSR_LPWR1RSTF)) ? 1UL : 0UL); -#else - return ((READ_BIT(RCC->RSR, RCC_RSR_LPWRRSTF) == (RCC_RSR_LPWRRSTF)) ? 1UL : 0UL); -#endif /*DUAL_CORE*/ -} - -#if defined(DUAL_CORE) -/** - * @brief Check if RCC flag Low Power D2 reset is set or not. - * @rmtoll RSR LPWR2RSTF LL_RCC_IsActiveFlag_LPWR2RST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_LPWR2RST(void) -{ - return ((READ_BIT(RCC->RSR, RCC_RSR_LPWR2RSTF) == (RCC_RSR_LPWR2RSTF)) ? 1UL : 0UL); -} -#endif /*DUAL_CORE*/ - -/** - * @brief Check if RCC flag Window Watchdog 1 reset is set or not. - * @rmtoll RSR WWDG1RSTF LL_RCC_IsActiveFlag_WWDG1RST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_WWDG1RST(void) -{ - return ((READ_BIT(RCC->RSR, RCC_RSR_WWDG1RSTF) == (RCC_RSR_WWDG1RSTF)) ? 1UL : 0UL); -} - -#if defined(DUAL_CORE) -/** - * @brief Check if RCC flag Window Watchdog 2 reset is set or not. - * @rmtoll RSR WWDG2RSTF LL_RCC_IsActiveFlag_WWDG2RST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_WWDG2RST(void) -{ - return ((READ_BIT(RCC->RSR, RCC_RSR_WWDG2RSTF) == (RCC_RSR_WWDG2RSTF)) ? 1UL : 0UL); -} -#endif /*DUAL_CORE*/ - -/** - * @brief Check if RCC flag Independent Watchdog 1 reset is set or not. - * @rmtoll RSR IWDG1RSTF LL_RCC_IsActiveFlag_IWDG1RST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_IWDG1RST(void) -{ - return ((READ_BIT(RCC->RSR, RCC_RSR_IWDG1RSTF) == (RCC_RSR_IWDG1RSTF)) ? 1UL : 0UL); -} - -#if defined(DUAL_CORE) -/** - * @brief Check if RCC flag Independent Watchdog 2 reset is set or not. - * @rmtoll RSR IWDG2RSTF LL_RCC_IsActiveFlag_IWDG2RST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_IWDG2RST(void) -{ - return ((READ_BIT(RCC->RSR, RCC_RSR_IWDG2RSTF) == (RCC_RSR_IWDG2RSTF)) ? 1UL : 0UL); -} -#endif /*DUAL_CORE*/ - -/** - * @brief Check if RCC flag Software reset is set or not. - * @rmtoll RSR SFTRSTF LL_RCC_IsActiveFlag_SFTRST (*)\n - * RSR SFT1RSTF LL_RCC_IsActiveFlag_SFTRST (**) - * - * (*) Only available for single core devices - * (**) Only available for Dual core devices - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_SFTRST(void) -{ -#if defined(DUAL_CORE) - return ((READ_BIT(RCC->RSR, RCC_RSR_SFT1RSTF) == (RCC_RSR_SFT1RSTF)) ? 1UL : 0UL); -#else - return ((READ_BIT(RCC->RSR, RCC_RSR_SFTRSTF) == (RCC_RSR_SFTRSTF)) ? 1UL : 0UL); -#endif /*DUAL_CORE*/ -} - -#if defined(DUAL_CORE) -/** - * @brief Check if RCC flag Software reset is set or not. - * @rmtoll RSR SFT2RSTF LL_RCC_IsActiveFlag_SFT2RST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_SFT2RST(void) -{ - return ((READ_BIT(RCC->RSR, RCC_RSR_SFT2RSTF) == (RCC_RSR_SFT2RSTF)) ? 1UL : 0UL); -} -#endif /*DUAL_CORE*/ - -/** - * @brief Check if RCC flag POR/PDR reset is set or not. - * @rmtoll RSR PORRSTF LL_RCC_IsActiveFlag_PORRST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_PORRST(void) -{ - return ((READ_BIT(RCC->RSR, RCC_RSR_PORRSTF) == (RCC_RSR_PORRSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC flag Pin reset is set or not. - * @rmtoll RSR PINRSTF LL_RCC_IsActiveFlag_PINRST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_PINRST(void) -{ - return ((READ_BIT(RCC->RSR, RCC_RSR_PINRSTF) == (RCC_RSR_PINRSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC flag BOR reset is set or not. - * @rmtoll RSR BORRSTF LL_RCC_IsActiveFlag_BORRST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_BORRST(void) -{ - return ((READ_BIT(RCC->RSR, RCC_RSR_BORRSTF) == (RCC_RSR_BORRSTF)) ? 1UL : 0UL); -} - -#if defined(RCC_RSR_D1RSTF) -/** - * @brief Check if RCC flag D1 reset is set or not. - * @rmtoll RSR D1RSTF LL_RCC_IsActiveFlag_D1RST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_D1RST(void) -{ - return ((READ_BIT(RCC->RSR, RCC_RSR_D1RSTF) == (RCC_RSR_D1RSTF)) ? 1UL : 0UL); -} -#endif /* RCC_RSR_D1RSTF */ - -#if defined(RCC_RSR_CDRSTF) -/** - * @brief Check if RCC flag CD reset is set or not. - * @rmtoll RSR CDRSTF LL_RCC_IsActiveFlag_CDRST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_CDRST(void) -{ - return ((READ_BIT(RCC->RSR, RCC_RSR_CDRSTF) == (RCC_RSR_CDRSTF)) ? 1UL : 0UL); -} -#endif /* RCC_RSR_CDRSTF */ - -#if defined(RCC_RSR_D2RSTF) -/** - * @brief Check if RCC flag D2 reset is set or not. - * @rmtoll RSR D2RSTF LL_RCC_IsActiveFlag_D2RST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_D2RST(void) -{ - return ((READ_BIT(RCC->RSR, RCC_RSR_D2RSTF) == (RCC_RSR_D2RSTF)) ? 1UL : 0UL); -} -#endif /* RCC_RSR_D2RSTF */ - -#if defined(RCC_RSR_C1RSTF) || defined(RCC_RSR_CPURSTF) -/** - * @brief Check if RCC flag CPU reset is set or not. - * @rmtoll RSR CPURSTF LL_RCC_IsActiveFlag_CPURST (*)\n - * RSR C1RSTF LL_RCC_IsActiveFlag_CPURST (**) - * - * (*) Only available for single core devices - * (**) Only available for Dual core devices - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_CPURST(void) -{ -#if defined(DUAL_CORE) - return ((READ_BIT(RCC->RSR, RCC_RSR_C1RSTF) == (RCC_RSR_C1RSTF)) ? 1UL : 0UL); -#else - return ((READ_BIT(RCC->RSR, RCC_RSR_CPURSTF) == (RCC_RSR_CPURSTF)) ? 1UL : 0UL); -#endif/*DUAL_CORE*/ -} -#endif /* defined(RCC_RSR_C1RSTF) || defined(RCC_RSR_CPURSTF) */ - -#if defined(DUAL_CORE) -/** - * @brief Check if RCC flag CPU2 reset is set or not. - * @rmtoll RSR C2RSTF LL_RCC_IsActiveFlag_CPU2RST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsActiveFlag_CPU2RST(void) -{ - return ((READ_BIT(RCC->RSR, RCC_RSR_C2RSTF) == (RCC_RSR_C2RSTF)) ? 1UL : 0UL); -} -#endif /*DUAL_CORE*/ - -/** - * @brief Set RMVF bit to clear all reset flags. - * @rmtoll RSR RMVF LL_RCC_ClearResetFlags - * @retval None - */ -__STATIC_INLINE void LL_RCC_ClearResetFlags(void) -{ - SET_BIT(RCC->RSR, RCC_RSR_RMVF); -} - -#if defined(DUAL_CORE) -/** - * @brief Check if RCC_C1 flag Low Power D1 reset is set or not. - * @rmtoll RSR LPWR1RSTF LL_C1_RCC_IsActiveFlag_LPWRRST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C1_RCC_IsActiveFlag_LPWRRST(void) -{ - return ((READ_BIT(RCC_C1->RSR, RCC_RSR_LPWR1RSTF) == (RCC_RSR_LPWR1RSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC_C1 flag Low Power D2 reset is set or not. - * @rmtoll RSR LPWR2RSTF LL_C1_RCC_IsActiveFlag_LPWR2RST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C1_RCC_IsActiveFlag_LPWR2RST(void) -{ - return ((READ_BIT(RCC_C1->RSR, RCC_RSR_LPWR2RSTF) == (RCC_RSR_LPWR2RSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC_C1 flag Window Watchdog 1 reset is set or not. - * @rmtoll RSR WWDG1RSTF LL_C1_RCC_IsActiveFlag_WWDG1RST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C1_RCC_IsActiveFlag_WWDG1RST(void) -{ - return ((READ_BIT(RCC_C1->RSR, RCC_RSR_WWDG1RSTF) == (RCC_RSR_WWDG1RSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC_C1 flag Window Watchdog 2 reset is set or not. - * @rmtoll RSR WWDG2RSTF LL_C1_RCC_IsActiveFlag_WWDG2RST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C1_RCC_IsActiveFlag_WWDG2RST(void) -{ - return ((READ_BIT(RCC_C1->RSR, RCC_RSR_WWDG2RSTF) == (RCC_RSR_WWDG2RSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC_C1 flag Independent Watchdog 1 reset is set or not. - * @rmtoll RSR IWDG1RSTF LL_C1_RCC_IsActiveFlag_IWDG1RST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C1_RCC_IsActiveFlag_IWDG1RST(void) -{ - return ((READ_BIT(RCC_C1->RSR, RCC_RSR_IWDG1RSTF) == (RCC_RSR_IWDG1RSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC_C1 flag Independent Watchdog 2 reset is set or not. - * @rmtoll RSR IWDG2RSTF LL_C1_RCC_IsActiveFlag_IWDG2RST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C1_RCC_IsActiveFlag_IWDG2RST(void) -{ - return ((READ_BIT(RCC_C1->RSR, RCC_RSR_IWDG2RSTF) == (RCC_RSR_IWDG2RSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC_C1 flag Software reset is set or not. - * @rmtoll RSR SFT1RSTF LL_C1_RCC_IsActiveFlag_SFTRST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C1_RCC_IsActiveFlag_SFTRST(void) -{ - return ((READ_BIT(RCC_C1->RSR, RCC_RSR_SFT1RSTF) == (RCC_RSR_SFT1RSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC_C1 flag Software reset is set or not. - * @rmtoll RSR SFT2RSTF LL_C1_RCC_IsActiveFlag_SFT2RST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C1_RCC_IsActiveFlag_SFT2RST(void) -{ - return ((READ_BIT(RCC_C1->RSR, RCC_RSR_SFT2RSTF) == (RCC_RSR_SFT2RSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC_C1 flag POR/PDR reset is set or not. - * @rmtoll RSR PORRSTF LL_C1_RCC_IsActiveFlag_PORRST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C1_RCC_IsActiveFlag_PORRST(void) -{ - return ((READ_BIT(RCC_C1->RSR, RCC_RSR_PORRSTF) == (RCC_RSR_PORRSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC_C1 flag Pin reset is set or not. - * @rmtoll RSR PINRSTF LL_C1_RCC_IsActiveFlag_PINRST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C1_RCC_IsActiveFlag_PINRST(void) -{ - return ((READ_BIT(RCC_C1->RSR, RCC_RSR_PINRSTF) == (RCC_RSR_PINRSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC_C1 flag BOR reset is set or not. - * @rmtoll RSR BORRSTF LL_C1_RCC_IsActiveFlag_BORRST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C1_RCC_IsActiveFlag_BORRST(void) -{ - return ((READ_BIT(RCC_C1->RSR, RCC_RSR_BORRSTF) == (RCC_RSR_BORRSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC_C1 flag D1 reset is set or not. - * @rmtoll RSR D1RSTF LL_C1_RCC_IsActiveFlag_D1RST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C1_RCC_IsActiveFlag_D1RST(void) -{ - return ((READ_BIT(RCC_C1->RSR, RCC_RSR_D1RSTF) == (RCC_RSR_D1RSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC_C1 flag D2 reset is set or not. - * @rmtoll RSR D2RSTF LL_C1_RCC_IsActiveFlag_D2RST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C1_RCC_IsActiveFlag_D2RST(void) -{ - return ((READ_BIT(RCC_C1->RSR, RCC_RSR_D2RSTF) == (RCC_RSR_D2RSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC_C1 flag CPU reset is set or not. - * @rmtoll RSR C1RSTF LL_C1_RCC_IsActiveFlag_CPURST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C1_RCC_IsActiveFlag_CPURST(void) -{ - return ((READ_BIT(RCC_C1->RSR, RCC_RSR_C1RSTF) == (RCC_RSR_C1RSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC_C1 flag CPU2 reset is set or not. - * @rmtoll RSR C2RSTF LL_C1_RCC_IsActiveFlag_CPU2RST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C1_RCC_IsActiveFlag_CPU2RST(void) -{ - return ((READ_BIT(RCC_C1->RSR, RCC_RSR_C2RSTF) == (RCC_RSR_C2RSTF)) ? 1UL : 0UL); -} - -/** - * @brief Set RMVF bit to clear the reset flags. - * @rmtoll RSR RMVF LL_C1_RCC_ClearResetFlags - * @retval None - */ -__STATIC_INLINE void LL_C1_RCC_ClearResetFlags(void) -{ - SET_BIT(RCC_C1->RSR, RCC_RSR_RMVF); -} - -/** - * @brief Check if RCC_C2 flag Low Power D1 reset is set or not. - * @rmtoll RSR LPWR1RSTF LL_C2_RCC_IsActiveFlag_LPWRRST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C2_RCC_IsActiveFlag_LPWRRST(void) -{ - return ((READ_BIT(RCC_C2->RSR, RCC_RSR_LPWR1RSTF) == (RCC_RSR_LPWR1RSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC_C2 flag Low Power D2 reset is set or not. - * @rmtoll RSR LPWR2RSTF LL_C2_RCC_IsActiveFlag_LPWR2RST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C2_RCC_IsActiveFlag_LPWR2RST(void) -{ - return ((READ_BIT(RCC_C2->RSR, RCC_RSR_LPWR2RSTF) == (RCC_RSR_LPWR2RSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC_C2 flag Window Watchdog 1 reset is set or not. - * @rmtoll RSR WWDG1RSTF LL_C2_RCC_IsActiveFlag_WWDG1RST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C2_RCC_IsActiveFlag_WWDG1RST(void) -{ - return ((READ_BIT(RCC_C2->RSR, RCC_RSR_WWDG1RSTF) == (RCC_RSR_WWDG1RSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC_C2 flag Window Watchdog 2 reset is set or not. - * @rmtoll RSR WWDG2RSTF LL_C2_RCC_IsActiveFlag_WWDG2RST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C2_RCC_IsActiveFlag_WWDG2RST(void) -{ - return ((READ_BIT(RCC_C2->RSR, RCC_RSR_WWDG2RSTF) == (RCC_RSR_WWDG2RSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC_C2 flag Independent Watchdog 1 reset is set or not. - * @rmtoll RSR IWDG1RSTF LL_C2_RCC_IsActiveFlag_IWDG1RST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C2_RCC_IsActiveFlag_IWDG1RST(void) -{ - return ((READ_BIT(RCC_C2->RSR, RCC_RSR_IWDG1RSTF) == (RCC_RSR_IWDG1RSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC_C2 flag Independent Watchdog 2 reset is set or not. - * @rmtoll RSR IWDG2RSTF LL_C2_RCC_IsActiveFlag_IWDG2RST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C2_RCC_IsActiveFlag_IWDG2RST(void) -{ - return ((READ_BIT(RCC_C2->RSR, RCC_RSR_IWDG2RSTF) == (RCC_RSR_IWDG2RSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC_C2 flag Software reset is set or not. - * @rmtoll RSR SFT1RSTF LL_C2_RCC_IsActiveFlag_SFTRST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C2_RCC_IsActiveFlag_SFTRST(void) -{ - return ((READ_BIT(RCC_C2->RSR, RCC_RSR_SFT1RSTF) == (RCC_RSR_SFT1RSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC_C2 flag Software reset is set or not. - * @rmtoll RSR SFT2RSTF LL_C2_RCC_IsActiveFlag_SFT2RST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C2_RCC_IsActiveFlag_SFT2RST(void) -{ - return ((READ_BIT(RCC_C2->RSR, RCC_RSR_SFT2RSTF) == (RCC_RSR_SFT2RSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC_C2 flag POR/PDR reset is set or not. - * @rmtoll RSR PORRSTF LL_C2_RCC_IsActiveFlag_PORRST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C2_RCC_IsActiveFlag_PORRST(void) -{ - return ((READ_BIT(RCC_C2->RSR, RCC_RSR_PORRSTF) == (RCC_RSR_PORRSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC_C2 flag Pin reset is set or not. - * @rmtoll RSR PINRSTF LL_C2_RCC_IsActiveFlag_PINRST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C2_RCC_IsActiveFlag_PINRST(void) -{ - return ((READ_BIT(RCC_C2->RSR, RCC_RSR_PINRSTF) == (RCC_RSR_PINRSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC_C2 flag BOR reset is set or not. - * @rmtoll RSR BORRSTF LL_C2_RCC_IsActiveFlag_BORRST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C2_RCC_IsActiveFlag_BORRST(void) -{ - return ((READ_BIT(RCC_C2->RSR, RCC_RSR_BORRSTF) == (RCC_RSR_BORRSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC_C2 flag D1 reset is set or not. - * @rmtoll RSR D1RSTF LL_C2_RCC_IsActiveFlag_D1RST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C2_RCC_IsActiveFlag_D1RST(void) -{ - return ((READ_BIT(RCC_C2->RSR, RCC_RSR_D1RSTF) == (RCC_RSR_D1RSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC_C2 flag D2 reset is set or not. - * @rmtoll RSR D2RSTF LL_C2_RCC_IsActiveFlag_D2RST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C2_RCC_IsActiveFlag_D2RST(void) -{ - return ((READ_BIT(RCC_C2->RSR, RCC_RSR_D2RSTF) == (RCC_RSR_D2RSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC_C2 flag CPU reset is set or not. - * @rmtoll RSR C1RSTF LL_C2_RCC_IsActiveFlag_CPURST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C2_RCC_IsActiveFlag_CPURST(void) -{ - return ((READ_BIT(RCC_C2->RSR, RCC_RSR_C1RSTF) == (RCC_RSR_C1RSTF)) ? 1UL : 0UL); -} - -/** - * @brief Check if RCC_C2 flag CPU2 reset is set or not. - * @rmtoll RSR C2RSTF LL_C2_RCC_IsActiveFlag_CPU2RST - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_C2_RCC_IsActiveFlag_CPU2RST(void) -{ - return ((READ_BIT(RCC_C2->RSR, RCC_RSR_C2RSTF) == (RCC_RSR_C2RSTF)) ? 1UL : 0UL); -} - -/** - * @brief Set RMVF bit to clear the reset flags. - * @rmtoll RSR RMVF LL_C2_RCC_ClearResetFlags - * @retval None - */ -__STATIC_INLINE void LL_C2_RCC_ClearResetFlags(void) -{ - SET_BIT(RCC_C2->RSR, RCC_RSR_RMVF); -} -#endif /*DUAL_CORE*/ - -/** - * @} - */ - -/** @defgroup RCC_LL_EF_IT_Management IT Management - * @{ - */ - -/** - * @brief Enable LSI ready interrupt - * @rmtoll CIER LSIRDYIE LL_RCC_EnableIT_LSIRDY - * @retval None - */ -__STATIC_INLINE void LL_RCC_EnableIT_LSIRDY(void) -{ - SET_BIT(RCC->CIER, RCC_CIER_LSIRDYIE); -} - -/** - * @brief Enable LSE ready interrupt - * @rmtoll CIER LSERDYIE LL_RCC_EnableIT_LSERDY - * @retval None - */ -__STATIC_INLINE void LL_RCC_EnableIT_LSERDY(void) -{ - SET_BIT(RCC->CIER, RCC_CIER_LSERDYIE); -} - -/** - * @brief Enable HSI ready interrupt - * @rmtoll CIER HSIRDYIE LL_RCC_EnableIT_HSIRDY - * @retval None - */ -__STATIC_INLINE void LL_RCC_EnableIT_HSIRDY(void) -{ - SET_BIT(RCC->CIER, RCC_CIER_HSIRDYIE); -} - -/** - * @brief Enable HSE ready interrupt - * @rmtoll CIER HSERDYIE LL_RCC_EnableIT_HSERDY - * @retval None - */ -__STATIC_INLINE void LL_RCC_EnableIT_HSERDY(void) -{ - SET_BIT(RCC->CIER, RCC_CIER_HSERDYIE); -} - -/** - * @brief Enable CSI ready interrupt - * @rmtoll CIER CSIRDYIE LL_RCC_EnableIT_CSIRDY - * @retval None - */ -__STATIC_INLINE void LL_RCC_EnableIT_CSIRDY(void) -{ - SET_BIT(RCC->CIER, RCC_CIER_CSIRDYIE); -} - -/** - * @brief Enable HSI48 ready interrupt - * @rmtoll CIER HSI48RDYIE LL_RCC_EnableIT_HSI48RDY - * @retval None - */ -__STATIC_INLINE void LL_RCC_EnableIT_HSI48RDY(void) -{ - SET_BIT(RCC->CIER, RCC_CIER_HSI48RDYIE); -} - -/** - * @brief Enable PLL1 ready interrupt - * @rmtoll CIER PLL1RDYIE LL_RCC_EnableIT_PLL1RDY - * @retval None - */ -__STATIC_INLINE void LL_RCC_EnableIT_PLL1RDY(void) -{ - SET_BIT(RCC->CIER, RCC_CIER_PLL1RDYIE); -} - -/** - * @brief Enable PLL2 ready interrupt - * @rmtoll CIER PLL2RDYIE LL_RCC_EnableIT_PLL2RDY - * @retval None - */ -__STATIC_INLINE void LL_RCC_EnableIT_PLL2RDY(void) -{ - SET_BIT(RCC->CIER, RCC_CIER_PLL2RDYIE); -} - -/** - * @brief Enable PLL3 ready interrupt - * @rmtoll CIER PLL3RDYIE LL_RCC_EnableIT_PLL3RDY - * @retval None - */ -__STATIC_INLINE void LL_RCC_EnableIT_PLL3RDY(void) -{ - SET_BIT(RCC->CIER, RCC_CIER_PLL3RDYIE); -} - -/** - * @brief Enable LSECSS interrupt - * @rmtoll CIER LSECSSIE LL_RCC_EnableIT_LSECSS - * @retval None - */ -__STATIC_INLINE void LL_RCC_EnableIT_LSECSS(void) -{ - SET_BIT(RCC->CIER, RCC_CIER_LSECSSIE); -} - -/** - * @brief Disable LSI ready interrupt - * @rmtoll CIER LSIRDYIE LL_RCC_DisableIT_LSIRDY - * @retval None - */ -__STATIC_INLINE void LL_RCC_DisableIT_LSIRDY(void) -{ - CLEAR_BIT(RCC->CIER, RCC_CIER_LSIRDYIE); -} - -/** - * @brief Disable LSE ready interrupt - * @rmtoll CIER LSERDYIE LL_RCC_DisableIT_LSERDY - * @retval None - */ -__STATIC_INLINE void LL_RCC_DisableIT_LSERDY(void) -{ - CLEAR_BIT(RCC->CIER, RCC_CIER_LSERDYIE); -} - -/** - * @brief Disable HSI ready interrupt - * @rmtoll CIER HSIRDYIE LL_RCC_DisableIT_HSIRDY - * @retval None - */ -__STATIC_INLINE void LL_RCC_DisableIT_HSIRDY(void) -{ - CLEAR_BIT(RCC->CIER, RCC_CIER_HSIRDYIE); -} - -/** - * @brief Disable HSE ready interrupt - * @rmtoll CIER HSERDYIE LL_RCC_DisableIT_HSERDY - * @retval None - */ -__STATIC_INLINE void LL_RCC_DisableIT_HSERDY(void) -{ - CLEAR_BIT(RCC->CIER, RCC_CIER_HSERDYIE); -} - -/** - * @brief Disable CSI ready interrupt - * @rmtoll CIER CSIRDYIE LL_RCC_DisableIT_CSIRDY - * @retval None - */ -__STATIC_INLINE void LL_RCC_DisableIT_CSIRDY(void) -{ - CLEAR_BIT(RCC->CIER, RCC_CIER_CSIRDYIE); -} - -/** - * @brief Disable HSI48 ready interrupt - * @rmtoll CIER HSI48RDYIE LL_RCC_DisableIT_HSI48RDY - * @retval None - */ -__STATIC_INLINE void LL_RCC_DisableIT_HSI48RDY(void) -{ - CLEAR_BIT(RCC->CIER, RCC_CIER_HSI48RDYIE); -} - -/** - * @brief Disable PLL1 ready interrupt - * @rmtoll CIER PLL1RDYIE LL_RCC_DisableIT_PLL1RDY - * @retval None - */ -__STATIC_INLINE void LL_RCC_DisableIT_PLL1RDY(void) -{ - CLEAR_BIT(RCC->CIER, RCC_CIER_PLL1RDYIE); -} - -/** - * @brief Disable PLL2 ready interrupt - * @rmtoll CIER PLL2RDYIE LL_RCC_DisableIT_PLL2RDY - * @retval None - */ -__STATIC_INLINE void LL_RCC_DisableIT_PLL2RDY(void) -{ - CLEAR_BIT(RCC->CIER, RCC_CIER_PLL2RDYIE); -} - -/** - * @brief Disable PLL3 ready interrupt - * @rmtoll CIER PLL3RDYIE LL_RCC_DisableIT_PLL3RDY - * @retval None - */ -__STATIC_INLINE void LL_RCC_DisableIT_PLL3RDY(void) -{ - CLEAR_BIT(RCC->CIER, RCC_CIER_PLL3RDYIE); -} - -/** - * @brief Disable LSECSS interrupt - * @rmtoll CIER LSECSSIE LL_RCC_DisableIT_LSECSS - * @retval None - */ -__STATIC_INLINE void LL_RCC_DisableIT_LSECSS(void) -{ - CLEAR_BIT(RCC->CIER, RCC_CIER_LSECSSIE); -} - -/** - * @brief Checks if LSI ready interrupt source is enabled or disabled. - * @rmtoll CIER LSIRDYIE LL_RCC_IsEnableIT_LSIRDY - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsEnableIT_LSIRDY(void) -{ - return ((READ_BIT(RCC->CIER, RCC_CIER_LSIRDYIE) == RCC_CIER_LSIRDYIE) ? 1UL : 0UL); -} - -/** - * @brief Checks if LSE ready interrupt source is enabled or disabled. - * @rmtoll CIER LSERDYIE LL_RCC_IsEnableIT_LSERDY - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsEnableIT_LSERDY(void) -{ - return ((READ_BIT(RCC->CIER, RCC_CIER_LSERDYIE) == RCC_CIER_LSERDYIE) ? 1UL : 0UL); -} - -/** - * @brief Checks if HSI ready interrupt source is enabled or disabled. - * @rmtoll CIER HSIRDYIE LL_RCC_IsEnableIT_HSIRDY - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsEnableIT_HSIRDY(void) -{ - return ((READ_BIT(RCC->CIER, RCC_CIER_HSIRDYIE) == RCC_CIER_HSIRDYIE) ? 1UL : 0UL); -} - -/** - * @brief Checks if HSE ready interrupt source is enabled or disabled. - * @rmtoll CIER HSERDYIE LL_RCC_IsEnableIT_HSERDY - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsEnableIT_HSERDY(void) -{ - return ((READ_BIT(RCC->CIER, RCC_CIER_HSERDYIE) == RCC_CIER_HSERDYIE) ? 1UL : 0UL); -} - -/** - * @brief Checks if CSI ready interrupt source is enabled or disabled. - * @rmtoll CIER CSIRDYIE LL_RCC_IsEnableIT_CSIRDY - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsEnableIT_CSIRDY(void) -{ - return ((READ_BIT(RCC->CIER, RCC_CIER_CSIRDYIE) == RCC_CIER_CSIRDYIE) ? 1UL : 0UL); -} - -/** - * @brief Checks if HSI48 ready interrupt source is enabled or disabled. - * @rmtoll CIER HSI48RDYIE LL_RCC_IsEnableIT_HSI48RDY - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsEnableIT_HSI48RDY(void) -{ - return ((READ_BIT(RCC->CIER, RCC_CIER_HSI48RDYIE) == RCC_CIER_HSI48RDYIE) ? 1UL : 0UL); -} - -/** - * @brief Checks if PLL1 ready interrupt source is enabled or disabled. - * @rmtoll CIER PLL1RDYIE LL_RCC_IsEnableIT_PLL1RDY - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsEnableIT_PLL1RDY(void) -{ - return ((READ_BIT(RCC->CIER, RCC_CIER_PLL1RDYIE) == RCC_CIER_PLL1RDYIE) ? 1UL : 0UL); -} - -/** - * @brief Checks if PLL2 ready interrupt source is enabled or disabled. - * @rmtoll CIER PLL2RDYIE LL_RCC_IsEnableIT_PLL2RDY - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsEnableIT_PLL2RDY(void) -{ - return ((READ_BIT(RCC->CIER, RCC_CIER_PLL2RDYIE) == RCC_CIER_PLL2RDYIE) ? 1UL : 0UL); -} - -/** - * @brief Checks if PLL3 ready interrupt source is enabled or disabled. - * @rmtoll CIER PLL3RDYIE LL_RCC_IsEnableIT_PLL3RDY - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsEnableIT_PLL3RDY(void) -{ - return ((READ_BIT(RCC->CIER, RCC_CIER_PLL3RDYIE) == RCC_CIER_PLL3RDYIE) ? 1UL : 0UL); -} - -/** - * @brief Checks if LSECSS interrupt source is enabled or disabled. - * @rmtoll CIER LSECSSIE LL_RCC_IsEnableIT_LSECSS - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_RCC_IsEnableIT_LSECSS(void) -{ - return ((READ_BIT(RCC->CIER, RCC_CIER_LSECSSIE) == RCC_CIER_LSECSSIE) ? 1UL : 0UL); -} -/** - * @} - */ - -#if defined(USE_FULL_LL_DRIVER) -/** @defgroup RCC_LL_EF_Init De-initialization function - * @{ - */ -void LL_RCC_DeInit(void); -/** - * @} - */ - -/** @defgroup RCC_LL_EF_Get_Freq Get system and peripherals clocks frequency functions - * @{ - */ -uint32_t LL_RCC_CalcPLLClockFreq(uint32_t PLLInputFreq, uint32_t M, uint32_t N, uint32_t FRACN, uint32_t PQR); - -void LL_RCC_GetPLL1ClockFreq(LL_PLL_ClocksTypeDef *PLL_Clocks); -void LL_RCC_GetPLL2ClockFreq(LL_PLL_ClocksTypeDef *PLL_Clocks); -void LL_RCC_GetPLL3ClockFreq(LL_PLL_ClocksTypeDef *PLL_Clocks); -void LL_RCC_GetSystemClocksFreq(LL_RCC_ClocksTypeDef *RCC_Clocks); - -uint32_t LL_RCC_GetUSARTClockFreq(uint32_t USARTxSource); -uint32_t LL_RCC_GetLPUARTClockFreq(uint32_t LPUARTxSource); -uint32_t LL_RCC_GetI2CClockFreq(uint32_t I2CxSource); -uint32_t LL_RCC_GetLPTIMClockFreq(uint32_t LPTIMxSource); -uint32_t LL_RCC_GetSAIClockFreq(uint32_t SAIxSource); -uint32_t LL_RCC_GetADCClockFreq(uint32_t ADCxSource); -uint32_t LL_RCC_GetSDMMCClockFreq(uint32_t SDMMCxSource); -uint32_t LL_RCC_GetRNGClockFreq(uint32_t RNGxSource); -uint32_t LL_RCC_GetCECClockFreq(uint32_t CECxSource); -uint32_t LL_RCC_GetUSBClockFreq(uint32_t USBxSource); -uint32_t LL_RCC_GetDFSDMClockFreq(uint32_t DFSDMxSource); -#if defined(DFSDM2_BASE) -uint32_t LL_RCC_GetDFSDM2ClockFreq(uint32_t DFSDMxSource); -#endif /* DFSDM2_BASE */ -#if defined(DSI) -uint32_t LL_RCC_GetDSIClockFreq(uint32_t DSIxSource); -#endif /* DSI */ -uint32_t LL_RCC_GetSPDIFClockFreq(uint32_t SPDIFxSource); -uint32_t LL_RCC_GetSPIClockFreq(uint32_t SPIxSource); -uint32_t LL_RCC_GetSWPClockFreq(uint32_t SWPxSource); -uint32_t LL_RCC_GetFDCANClockFreq(uint32_t FDCANxSource); -uint32_t LL_RCC_GetFMCClockFreq(uint32_t FMCxSource); -#if defined(QUADSPI) -uint32_t LL_RCC_GetQSPIClockFreq(uint32_t QSPIxSource); -#endif /* QUADSPI */ -#if defined(OCTOSPI1) || defined(OCTOSPI2) -uint32_t LL_RCC_GetOSPIClockFreq(uint32_t OSPIxSource); -#endif /* defined(OCTOSPI1) || defined(OCTOSPI2) */ -uint32_t LL_RCC_GetCLKPClockFreq(uint32_t CLKPxSource); - - -/** - * @} - */ -#endif /* USE_FULL_LL_DRIVER */ - -/** - * @} - */ - - -/** - * @} - */ -#endif /* defined(RCC) */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_LL_RCC_H */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h deleted file mode 100644 index 6e12084..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_sdmmc.h +++ /dev/null @@ -1,1117 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_ll_sdmmc.h - * @author MCD Application Team - * @brief Header file of SDMMC HAL module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_LL_SDMMC_H -#define STM32H7xx_LL_SDMMC_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal_def.h" - -/** @addtogroup STM32H7xx_Driver - * @{ - */ - -/** @addtogroup SDMMC_LL - * @{ - */ - -/* Exported types ------------------------------------------------------------*/ -/** @defgroup SDMMC_LL_Exported_Types SDMMC_LL Exported Types - * @{ - */ - -/** - * @brief SDMMC Configuration Structure definition - */ -typedef struct -{ - uint32_t ClockEdge; /*!< Specifies the SDMMC_CCK clock transition on which Data and Command change. - This parameter can be a value of @ref SDMMC_LL_Clock_Edge */ - - uint32_t ClockPowerSave; /*!< Specifies whether SDMMC Clock output is enabled or - disabled when the bus is idle. - This parameter can be a value of @ref SDMMC_LL_Clock_Power_Save */ - - uint32_t BusWide; /*!< Specifies the SDMMC bus width. - This parameter can be a value of @ref SDMMC_LL_Bus_Wide */ - - uint32_t HardwareFlowControl; /*!< Specifies whether the SDMMC hardware flow control is enabled or disabled. - This parameter can be a value of @ref SDMMC_LL_Hardware_Flow_Control */ - - uint32_t ClockDiv; /*!< Specifies the clock frequency of the SDMMC controller. - This parameter can be a value between Min_Data = 0 and Max_Data = 1023 */ - -#if (USE_SD_TRANSCEIVER != 0U) - uint32_t TranceiverPresent; /*!< Specifies if there is a 1V8 Transceiver/Switcher. - This parameter can be a value of @ref SDMMC_LL_TRANSCEIVER_PRESENT */ -#endif /* USE_SD_TRANSCEIVER */ -} SDMMC_InitTypeDef; - - -/** - * @brief SDMMC Command Control structure - */ -typedef struct -{ - uint32_t Argument; /*!< Specifies the SDMMC command argument which is sent - to a card as part of a command message. If a command - contains an argument, it must be loaded into this register - before writing the command to the command register. */ - - uint32_t CmdIndex; /*!< Specifies the SDMMC command index. It must be Min_Data = 0 and - Max_Data = 64 */ - - uint32_t Response; /*!< Specifies the SDMMC response type. - This parameter can be a value of @ref SDMMC_LL_Response_Type */ - - uint32_t WaitForInterrupt; /*!< Specifies whether SDMMC wait for interrupt request is - enabled or disabled. - This parameter can be a value of @ref SDMMC_LL_Wait_Interrupt_State */ - - uint32_t CPSM; /*!< Specifies whether SDMMC Command path state machine (CPSM) - is enabled or disabled. - This parameter can be a value of @ref SDMMC_LL_CPSM_State */ -} SDMMC_CmdInitTypeDef; - - -/** - * @brief SDMMC Data Control structure - */ -typedef struct -{ - uint32_t DataTimeOut; /*!< Specifies the data timeout period in card bus clock periods. */ - - uint32_t DataLength; /*!< Specifies the number of data bytes to be transferred. */ - - uint32_t DataBlockSize; /*!< Specifies the data block size for block transfer. - This parameter can be a value of @ref SDMMC_LL_Data_Block_Size */ - - uint32_t TransferDir; /*!< Specifies the data transfer direction, whether the transfer - is a read or write. - This parameter can be a value of @ref SDMMC_LL_Transfer_Direction */ - - uint32_t TransferMode; /*!< Specifies whether data transfer is in stream or block mode. - This parameter can be a value of @ref SDMMC_LL_Transfer_Type */ - - uint32_t DPSM; /*!< Specifies whether SDMMC Data path state machine (DPSM) - is enabled or disabled. - This parameter can be a value of @ref SDMMC_LL_DPSM_State */ -} SDMMC_DataInitTypeDef; - -/** - * @} - */ - -/* Exported constants --------------------------------------------------------*/ -/** @defgroup SDMMC_LL_Exported_Constants SDMMC_LL Exported Constants - * @{ - */ -#define SDMMC_ERROR_NONE ((uint32_t)0x00000000U) /*!< No error */ -#define SDMMC_ERROR_CMD_CRC_FAIL ((uint32_t)0x00000001U) /*!< Command response received (but CRC check failed) */ -#define SDMMC_ERROR_DATA_CRC_FAIL ((uint32_t)0x00000002U) /*!< Data block sent/received (CRC check failed) */ -#define SDMMC_ERROR_CMD_RSP_TIMEOUT ((uint32_t)0x00000004U) /*!< Command response timeout */ -#define SDMMC_ERROR_DATA_TIMEOUT ((uint32_t)0x00000008U) /*!< Data timeout */ -#define SDMMC_ERROR_TX_UNDERRUN ((uint32_t)0x00000010U) /*!< Transmit FIFO underrun */ -#define SDMMC_ERROR_RX_OVERRUN ((uint32_t)0x00000020U) /*!< Receive FIFO overrun */ -#define SDMMC_ERROR_ADDR_MISALIGNED ((uint32_t)0x00000040U) /*!< Misaligned address */ -#define SDMMC_ERROR_BLOCK_LEN_ERR ((uint32_t)0x00000080U) /*!< Transferred block length is not allowed for the card or the number of transferred bytes does not match the block length */ -#define SDMMC_ERROR_ERASE_SEQ_ERR ((uint32_t)0x00000100U) /*!< An error in the sequence of erase command occurs */ -#define SDMMC_ERROR_BAD_ERASE_PARAM ((uint32_t)0x00000200U) /*!< An invalid selection for erase groups */ -#define SDMMC_ERROR_WRITE_PROT_VIOLATION ((uint32_t)0x00000400U) /*!< Attempt to program a write protect block */ -#define SDMMC_ERROR_LOCK_UNLOCK_FAILED ((uint32_t)0x00000800U) /*!< Sequence or password error has been detected in unlock command or if there was an attempt to access a locked card */ -#define SDMMC_ERROR_COM_CRC_FAILED ((uint32_t)0x00001000U) /*!< CRC check of the previous command failed */ -#define SDMMC_ERROR_ILLEGAL_CMD ((uint32_t)0x00002000U) /*!< Command is not legal for the card state */ -#define SDMMC_ERROR_CARD_ECC_FAILED ((uint32_t)0x00004000U) /*!< Card internal ECC was applied but failed to correct the data */ -#define SDMMC_ERROR_CC_ERR ((uint32_t)0x00008000U) /*!< Internal card controller error */ -#define SDMMC_ERROR_GENERAL_UNKNOWN_ERR ((uint32_t)0x00010000U) /*!< General or unknown error */ -#define SDMMC_ERROR_STREAM_READ_UNDERRUN ((uint32_t)0x00020000U) /*!< The card could not sustain data reading in stream rmode */ -#define SDMMC_ERROR_STREAM_WRITE_OVERRUN ((uint32_t)0x00040000U) /*!< The card could not sustain data programming in stream mode */ -#define SDMMC_ERROR_CID_CSD_OVERWRITE ((uint32_t)0x00080000U) /*!< CID/CSD overwrite error */ -#define SDMMC_ERROR_WP_ERASE_SKIP ((uint32_t)0x00100000U) /*!< Only partial address space was erased */ -#define SDMMC_ERROR_CARD_ECC_DISABLED ((uint32_t)0x00200000U) /*!< Command has been executed without using internal ECC */ -#define SDMMC_ERROR_ERASE_RESET ((uint32_t)0x00400000U) /*!< Erase sequence was cleared before executing because an out of erase sequence command was received */ -#define SDMMC_ERROR_AKE_SEQ_ERR ((uint32_t)0x00800000U) /*!< Error in sequence of authentication */ -#define SDMMC_ERROR_INVALID_VOLTRANGE ((uint32_t)0x01000000U) /*!< Error in case of invalid voltage range */ -#define SDMMC_ERROR_ADDR_OUT_OF_RANGE ((uint32_t)0x02000000U) /*!< Error when addressed block is out of range */ -#define SDMMC_ERROR_REQUEST_NOT_APPLICABLE ((uint32_t)0x04000000U) /*!< Error when command request is not applicable */ -#define SDMMC_ERROR_INVALID_PARAMETER ((uint32_t)0x08000000U) /*!< the used parameter is not valid */ -#define SDMMC_ERROR_UNSUPPORTED_FEATURE ((uint32_t)0x10000000U) /*!< Error when feature is not insupported */ -#define SDMMC_ERROR_BUSY ((uint32_t)0x20000000U) /*!< Error when transfer process is busy */ -#define SDMMC_ERROR_DMA ((uint32_t)0x40000000U) /*!< Error while DMA transfer */ -#define SDMMC_ERROR_TIMEOUT ((uint32_t)0x80000000U) /*!< Timeout error */ - -/** - * @brief SDMMC Commands Index - */ -#define SDMMC_CMD_GO_IDLE_STATE ((uint8_t)0U) /*!< Resets the SD memory card. */ -#define SDMMC_CMD_SEND_OP_COND ((uint8_t)1U) /*!< Sends host capacity support information and activates the card's initialization process. */ -#define SDMMC_CMD_ALL_SEND_CID ((uint8_t)2U) /*!< Asks any card connected to the host to send the CID numbers on the CMD line. */ -#define SDMMC_CMD_SET_REL_ADDR ((uint8_t)3U) /*!< Asks the card to publish a new relative address (RCA). */ -#define SDMMC_CMD_SET_DSR ((uint8_t)4U) /*!< Programs the DSR of all cards. */ -#define SDMMC_CMD_SDMMC_SEN_OP_COND ((uint8_t)5U) /*!< Sends host capacity support information (HCS) and asks the accessed card to send its operating condition register (OCR) content in the response on the CMD line.*/ -#define SDMMC_CMD_HS_SWITCH ((uint8_t)6U) /*!< Checks switchable function (mode 0) and switch card function (mode 1). */ -#define SDMMC_CMD_SEL_DESEL_CARD ((uint8_t)7U) /*!< Selects the card by its own relative address and gets deselected by any other address */ -#define SDMMC_CMD_HS_SEND_EXT_CSD ((uint8_t)8U) /*!< Sends SD Memory Card interface condition, which includes host supply voltage information and asks the card whether card supports voltage. */ -#define SDMMC_CMD_SEND_CSD ((uint8_t)9U) /*!< Addressed card sends its card specific data (CSD) on the CMD line. */ -#define SDMMC_CMD_SEND_CID ((uint8_t)10U) /*!< Addressed card sends its card identification (CID) on the CMD line. */ -#define SDMMC_CMD_VOLTAGE_SWITCH ((uint8_t)11U) /*!< SD card Voltage switch to 1.8V mode. */ -#define SDMMC_CMD_STOP_TRANSMISSION ((uint8_t)12U) /*!< Forces the card to stop transmission. */ -#define SDMMC_CMD_SEND_STATUS ((uint8_t)13U) /*!< Addressed card sends its status register. */ -#define SDMMC_CMD_HS_BUSTEST_READ ((uint8_t)14U) /*!< Reserved */ -#define SDMMC_CMD_GO_INACTIVE_STATE ((uint8_t)15U) /*!< Sends an addressed card into the inactive state. */ -#define SDMMC_CMD_SET_BLOCKLEN ((uint8_t)16U) /*!< Sets the block length (in bytes for SDSC) for all following block commands (read, write, lock). Default block length is fixed to 512 Bytes. Not effective */ -/*!< for SDHS and SDXC. */ -#define SDMMC_CMD_READ_SINGLE_BLOCK ((uint8_t)17U) /*!< Reads single block of size selected by SET_BLOCKLEN in case of SDSC, and a block of fixed 512 bytes in case of SDHC and SDXC. */ -#define SDMMC_CMD_READ_MULT_BLOCK ((uint8_t)18U) /*!< Continuously transfers data blocks from card to host until interrupted by STOP_TRANSMISSION command. */ -#define SDMMC_CMD_HS_BUSTEST_WRITE ((uint8_t)19U) /*!< 64 bytes tuning pattern is sent for SDR50 and SDR104. */ -#define SDMMC_CMD_WRITE_DAT_UNTIL_STOP ((uint8_t)20U) /*!< Speed class control command. */ -#define SDMMC_CMD_SET_BLOCK_COUNT ((uint8_t)23U) /*!< Specify block count for CMD18 and CMD25. */ -#define SDMMC_CMD_WRITE_SINGLE_BLOCK ((uint8_t)24U) /*!< Writes single block of size selected by SET_BLOCKLEN in case of SDSC, and a block of fixed 512 bytes in case of SDHC and SDXC. */ -#define SDMMC_CMD_WRITE_MULT_BLOCK ((uint8_t)25U) /*!< Continuously writes blocks of data until a STOP_TRANSMISSION follows. */ -#define SDMMC_CMD_PROG_CID ((uint8_t)26U) /*!< Reserved for manufacturers. */ -#define SDMMC_CMD_PROG_CSD ((uint8_t)27U) /*!< Programming of the programmable bits of the CSD. */ -#define SDMMC_CMD_SET_WRITE_PROT ((uint8_t)28U) /*!< Sets the write protection bit of the addressed group. */ -#define SDMMC_CMD_CLR_WRITE_PROT ((uint8_t)29U) /*!< Clears the write protection bit of the addressed group. */ -#define SDMMC_CMD_SEND_WRITE_PROT ((uint8_t)30U) /*!< Asks the card to send the status of the write protection bits. */ -#define SDMMC_CMD_SD_ERASE_GRP_START ((uint8_t)32U) /*!< Sets the address of the first write block to be erased. (For SD card only). */ -#define SDMMC_CMD_SD_ERASE_GRP_END ((uint8_t)33U) /*!< Sets the address of the last write block of the continuous range to be erased. */ -#define SDMMC_CMD_ERASE_GRP_START ((uint8_t)35U) /*!< Sets the address of the first write block to be erased. Reserved for each command system set by switch function command (CMD6). */ -#define SDMMC_CMD_ERASE_GRP_END ((uint8_t)36U) /*!< Sets the address of the last write block of the continuous range to be erased. Reserved for each command system set by switch function command (CMD6). */ -#define SDMMC_CMD_ERASE ((uint8_t)38U) /*!< Reserved for SD security applications. */ -#define SDMMC_CMD_FAST_IO ((uint8_t)39U) /*!< SD card doesn't support it (Reserved). */ -#define SDMMC_CMD_GO_IRQ_STATE ((uint8_t)40U) /*!< SD card doesn't support it (Reserved). */ -#define SDMMC_CMD_LOCK_UNLOCK ((uint8_t)42U) /*!< Sets/resets the password or lock/unlock the card. The size of the data block is set by the SET_BLOCK_LEN command. */ -#define SDMMC_CMD_APP_CMD ((uint8_t)55U) /*!< Indicates to the card that the next command is an application specific command rather than a standard command. */ -#define SDMMC_CMD_GEN_CMD ((uint8_t)56U) /*!< Used either to transfer a data block to the card or to get a data block from the card for general purpose/application specific commands. */ -#define SDMMC_CMD_NO_CMD ((uint8_t)64U) /*!< No command */ - -/** - * @brief Following commands are SD Card Specific commands. - * SDMMC_APP_CMD should be sent before sending these commands. - */ -#define SDMMC_CMD_APP_SD_SET_BUSWIDTH ((uint8_t)6U) /*!< (ACMD6) Defines the data bus width to be used for data transfer. The allowed data bus widths are given in SCR register. */ -#define SDMMC_CMD_SD_APP_STATUS ((uint8_t)13U) /*!< (ACMD13) Sends the SD status. */ -#define SDMMC_CMD_SD_APP_SEND_NUM_WRITE_BLOCKS ((uint8_t)22U) /*!< (ACMD22) Sends the number of the written (without errors) write blocks. Responds with 32bit+CRC data block. */ -#define SDMMC_CMD_SD_APP_OP_COND ((uint8_t)41U) /*!< (ACMD41) Sends host capacity support information (HCS) and asks the accessed card to send its operating condition register (OCR) content in the response on the CMD line. */ -#define SDMMC_CMD_SD_APP_SET_CLR_CARD_DETECT ((uint8_t)42U) /*!< (ACMD42) Connect/Disconnect the 50 KOhm pull-up resistor on CD/DAT3 (pin 1) of the card */ -#define SDMMC_CMD_SD_APP_SEND_SCR ((uint8_t)51U) /*!< Reads the SD Configuration Register (SCR). */ -#define SDMMC_CMD_SDMMC_RW_DIRECT ((uint8_t)52U) /*!< For SD I/O card only, reserved for security specification. */ -#define SDMMC_CMD_SDMMC_RW_EXTENDED ((uint8_t)53U) /*!< For SD I/O card only, reserved for security specification. */ - -/** - * @brief Following commands are MMC Specific commands. - */ -#define SDMMC_CMD_MMC_SLEEP_AWAKE ((uint8_t)5U) /*!< Toggle the device between Sleep state and Standby state. */ - -/** - * @brief Following commands are SD Card Specific security commands. - * SDMMC_CMD_APP_CMD should be sent before sending these commands. - */ -#define SDMMC_CMD_SD_APP_GET_MKB ((uint8_t)43U) -#define SDMMC_CMD_SD_APP_GET_MID ((uint8_t)44U) -#define SDMMC_CMD_SD_APP_SET_CER_RN1 ((uint8_t)45U) -#define SDMMC_CMD_SD_APP_GET_CER_RN2 ((uint8_t)46U) -#define SDMMC_CMD_SD_APP_SET_CER_RES2 ((uint8_t)47U) -#define SDMMC_CMD_SD_APP_GET_CER_RES1 ((uint8_t)48U) -#define SDMMC_CMD_SD_APP_SECURE_READ_MULTIPLE_BLOCK ((uint8_t)18U) -#define SDMMC_CMD_SD_APP_SECURE_WRITE_MULTIPLE_BLOCK ((uint8_t)25U) -#define SDMMC_CMD_SD_APP_SECURE_ERASE ((uint8_t)38U) -#define SDMMC_CMD_SD_APP_CHANGE_SECURE_AREA ((uint8_t)49U) -#define SDMMC_CMD_SD_APP_SECURE_WRITE_MKB ((uint8_t)48U) - -/** - * @brief Masks for errors Card Status R1 (OCR Register) - */ -#define SDMMC_OCR_ADDR_OUT_OF_RANGE ((uint32_t)0x80000000U) -#define SDMMC_OCR_ADDR_MISALIGNED ((uint32_t)0x40000000U) -#define SDMMC_OCR_BLOCK_LEN_ERR ((uint32_t)0x20000000U) -#define SDMMC_OCR_ERASE_SEQ_ERR ((uint32_t)0x10000000U) -#define SDMMC_OCR_BAD_ERASE_PARAM ((uint32_t)0x08000000U) -#define SDMMC_OCR_WRITE_PROT_VIOLATION ((uint32_t)0x04000000U) -#define SDMMC_OCR_LOCK_UNLOCK_FAILED ((uint32_t)0x01000000U) -#define SDMMC_OCR_COM_CRC_FAILED ((uint32_t)0x00800000U) -#define SDMMC_OCR_ILLEGAL_CMD ((uint32_t)0x00400000U) -#define SDMMC_OCR_CARD_ECC_FAILED ((uint32_t)0x00200000U) -#define SDMMC_OCR_CC_ERROR ((uint32_t)0x00100000U) -#define SDMMC_OCR_GENERAL_UNKNOWN_ERROR ((uint32_t)0x00080000U) -#define SDMMC_OCR_STREAM_READ_UNDERRUN ((uint32_t)0x00040000U) -#define SDMMC_OCR_STREAM_WRITE_OVERRUN ((uint32_t)0x00020000U) -#define SDMMC_OCR_CID_CSD_OVERWRITE ((uint32_t)0x00010000U) -#define SDMMC_OCR_WP_ERASE_SKIP ((uint32_t)0x00008000U) -#define SDMMC_OCR_CARD_ECC_DISABLED ((uint32_t)0x00004000U) -#define SDMMC_OCR_ERASE_RESET ((uint32_t)0x00002000U) -#define SDMMC_OCR_AKE_SEQ_ERROR ((uint32_t)0x00000008U) -#define SDMMC_OCR_ERRORBITS ((uint32_t)0xFDFFE008U) - -/** - * @brief Masks for R6 Response - */ -#define SDMMC_R6_GENERAL_UNKNOWN_ERROR ((uint32_t)0x00002000U) -#define SDMMC_R6_ILLEGAL_CMD ((uint32_t)0x00004000U) -#define SDMMC_R6_COM_CRC_FAILED ((uint32_t)0x00008000U) - -#define SDMMC_VOLTAGE_WINDOW_SD ((uint32_t)0x80100000U) -#define SDMMC_HIGH_CAPACITY ((uint32_t)0x40000000U) -#define SDMMC_STD_CAPACITY ((uint32_t)0x00000000U) -#define SDMMC_CHECK_PATTERN ((uint32_t)0x000001AAU) -#define SD_SWITCH_1_8V_CAPACITY ((uint32_t)0x01000000U) -#define SDMMC_DDR50_SWITCH_PATTERN ((uint32_t)0x80FFFF04U) -#define SDMMC_SDR104_SWITCH_PATTERN ((uint32_t)0x80FF1F03U) -#define SDMMC_SDR50_SWITCH_PATTERN ((uint32_t)0x80FF1F02U) -#define SDMMC_SDR25_SWITCH_PATTERN ((uint32_t)0x80FFFF01U) -#define SDMMC_SDR12_SWITCH_PATTERN ((uint32_t)0x80FFFF00U) - -#define SDMMC_MAX_VOLT_TRIAL ((uint32_t)0x0000FFFFU) - -#define SDMMC_MAX_TRIAL ((uint32_t)0x0000FFFFU) - -#define SDMMC_ALLZERO ((uint32_t)0x00000000U) - -#define SDMMC_WIDE_BUS_SUPPORT ((uint32_t)0x00040000U) -#define SDMMC_SINGLE_BUS_SUPPORT ((uint32_t)0x00010000U) -#define SDMMC_CARD_LOCKED ((uint32_t)0x02000000U) - -#ifndef SDMMC_DATATIMEOUT -#define SDMMC_DATATIMEOUT ((uint32_t)0xFFFFFFFFU) -#endif /* SDMMC_DATATIMEOUT */ -#define SDMMC_0TO7BITS ((uint32_t)0x000000FFU) -#define SDMMC_8TO15BITS ((uint32_t)0x0000FF00U) -#define SDMMC_16TO23BITS ((uint32_t)0x00FF0000U) -#define SDMMC_24TO31BITS ((uint32_t)0xFF000000U) -#define SDMMC_MAX_DATA_LENGTH ((uint32_t)0x01FFFFFFU) - -#define SDMMC_HALFFIFO ((uint32_t)0x00000008U) -#define SDMMC_HALFFIFOBYTES ((uint32_t)0x00000020U) - -/** - * @brief Command Class supported - */ -#define SDMMC_CCCC_ERASE ((uint32_t)0x00000020U) - -#define SDMMC_CMDTIMEOUT ((uint32_t)5000U) /* Command send and response timeout */ -#define SDMMC_MAXERASETIMEOUT ((uint32_t)63000U) /* Max erase Timeout 63 s */ -#define SDMMC_STOPTRANSFERTIMEOUT ((uint32_t)100000000U) /* Timeout for STOP TRANSMISSION command */ - -/** @defgroup SDMMC_LL_Clock_Edge Clock Edge - * @{ - */ -#define SDMMC_CLOCK_EDGE_RISING ((uint32_t)0x00000000U) -#define SDMMC_CLOCK_EDGE_FALLING SDMMC_CLKCR_NEGEDGE - -#define IS_SDMMC_CLOCK_EDGE(EDGE) (((EDGE) == SDMMC_CLOCK_EDGE_RISING) || \ - ((EDGE) == SDMMC_CLOCK_EDGE_FALLING)) -/** - * @} - */ - -/** @defgroup SDMMC_LL_Clock_Power_Save Clock Power Saving - * @{ - */ -#define SDMMC_CLOCK_POWER_SAVE_DISABLE ((uint32_t)0x00000000U) -#define SDMMC_CLOCK_POWER_SAVE_ENABLE SDMMC_CLKCR_PWRSAV - -#define IS_SDMMC_CLOCK_POWER_SAVE(SAVE) (((SAVE) == SDMMC_CLOCK_POWER_SAVE_DISABLE) || \ - ((SAVE) == SDMMC_CLOCK_POWER_SAVE_ENABLE)) -/** - * @} - */ - -/** @defgroup SDMMC_LL_Bus_Wide Bus Width - * @{ - */ -#define SDMMC_BUS_WIDE_1B ((uint32_t)0x00000000U) -#define SDMMC_BUS_WIDE_4B SDMMC_CLKCR_WIDBUS_0 -#define SDMMC_BUS_WIDE_8B SDMMC_CLKCR_WIDBUS_1 - -#define IS_SDMMC_BUS_WIDE(WIDE) (((WIDE) == SDMMC_BUS_WIDE_1B) || \ - ((WIDE) == SDMMC_BUS_WIDE_4B) || \ - ((WIDE) == SDMMC_BUS_WIDE_8B)) -/** - * @} - */ - -/** @defgroup SDMMC_LL_Speed_Mode - * @{ - */ -#define SDMMC_SPEED_MODE_AUTO ((uint32_t)0x00000000U) -#define SDMMC_SPEED_MODE_DEFAULT ((uint32_t)0x00000001U) -#define SDMMC_SPEED_MODE_HIGH ((uint32_t)0x00000002U) -#define SDMMC_SPEED_MODE_ULTRA ((uint32_t)0x00000003U) -#define SDMMC_SPEED_MODE_ULTRA_SDR104 SDMMC_SPEED_MODE_ULTRA -#define SDMMC_SPEED_MODE_DDR ((uint32_t)0x00000004U) -#define SDMMC_SPEED_MODE_ULTRA_SDR50 ((uint32_t)0x00000005U) - -#define IS_SDMMC_SPEED_MODE(MODE) (((MODE) == SDMMC_SPEED_MODE_AUTO) || \ - ((MODE) == SDMMC_SPEED_MODE_DEFAULT) || \ - ((MODE) == SDMMC_SPEED_MODE_HIGH) || \ - ((MODE) == SDMMC_SPEED_MODE_ULTRA) || \ - ((MODE) == SDMMC_SPEED_MODE_ULTRA_SDR50) || \ - ((MODE) == SDMMC_SPEED_MODE_DDR)) - -/** - * @} - */ - -/** @defgroup SDMMC_LL_Hardware_Flow_Control Hardware Flow Control - * @{ - */ -#define SDMMC_HARDWARE_FLOW_CONTROL_DISABLE ((uint32_t)0x00000000U) -#define SDMMC_HARDWARE_FLOW_CONTROL_ENABLE SDMMC_CLKCR_HWFC_EN - -#define IS_SDMMC_HARDWARE_FLOW_CONTROL(CONTROL) (((CONTROL) == SDMMC_HARDWARE_FLOW_CONTROL_DISABLE) || \ - ((CONTROL) == SDMMC_HARDWARE_FLOW_CONTROL_ENABLE)) -/** - * @} - */ - -/** @defgroup SDMMC_LL_Clock_Division Clock Division - * @{ - */ -/* SDMMC_CK frequency = SDMMCCLK / [2 * CLKDIV] */ -#define IS_SDMMC_CLKDIV(DIV) ((DIV) < 0x400U) -/** - * @} - */ - -/** @defgroup SDMMC_LL_TRANSCEIVER_PRESENT Transceiver Present - * @{ - */ -#define SDMMC_TRANSCEIVER_UNKNOWN ((uint32_t)0x00000000U) -#define SDMMC_TRANSCEIVER_NOT_PRESENT ((uint32_t)0x00000001U) -#define SDMMC_TRANSCEIVER_PRESENT ((uint32_t)0x00000002U) - -/** - * @} - */ - -/** @defgroup SDMMC_LL_Command_Index Command Index - * @{ - */ -#define IS_SDMMC_CMD_INDEX(INDEX) ((INDEX) < 0x40U) -/** - * @} - */ - -/** @defgroup SDMMC_LL_Response_Type Response Type - * @{ - */ -#define SDMMC_RESPONSE_NO ((uint32_t)0x00000000U) -#define SDMMC_RESPONSE_SHORT SDMMC_CMD_WAITRESP_0 -#define SDMMC_RESPONSE_LONG SDMMC_CMD_WAITRESP - -#define IS_SDMMC_RESPONSE(RESPONSE) (((RESPONSE) == SDMMC_RESPONSE_NO) || \ - ((RESPONSE) == SDMMC_RESPONSE_SHORT) || \ - ((RESPONSE) == SDMMC_RESPONSE_LONG)) -/** - * @} - */ - -/** @defgroup SDMMC_LL_Wait_Interrupt_State Wait Interrupt - * @{ - */ -#define SDMMC_WAIT_NO ((uint32_t)0x00000000U) -#define SDMMC_WAIT_IT SDMMC_CMD_WAITINT -#define SDMMC_WAIT_PEND SDMMC_CMD_WAITPEND - -#define IS_SDMMC_WAIT(WAIT) (((WAIT) == SDMMC_WAIT_NO) || \ - ((WAIT) == SDMMC_WAIT_IT) || \ - ((WAIT) == SDMMC_WAIT_PEND)) -/** - * @} - */ - -/** @defgroup SDMMC_LL_CPSM_State CPSM State - * @{ - */ -#define SDMMC_CPSM_DISABLE ((uint32_t)0x00000000U) -#define SDMMC_CPSM_ENABLE SDMMC_CMD_CPSMEN - -#define IS_SDMMC_CPSM(CPSM) (((CPSM) == SDMMC_CPSM_DISABLE) || \ - ((CPSM) == SDMMC_CPSM_ENABLE)) -/** - * @} - */ - -/** @defgroup SDMMC_LL_Response_Registers Response Register - * @{ - */ -#define SDMMC_RESP1 ((uint32_t)0x00000000U) -#define SDMMC_RESP2 ((uint32_t)0x00000004U) -#define SDMMC_RESP3 ((uint32_t)0x00000008U) -#define SDMMC_RESP4 ((uint32_t)0x0000000CU) - -#define IS_SDMMC_RESP(RESP) (((RESP) == SDMMC_RESP1) || \ - ((RESP) == SDMMC_RESP2) || \ - ((RESP) == SDMMC_RESP3) || \ - ((RESP) == SDMMC_RESP4)) - -/** @defgroup SDMMC_Internal_DMA_Mode SDMMC Internal DMA Mode - * @{ - */ -#define SDMMC_DISABLE_IDMA ((uint32_t)0x00000000) -#define SDMMC_ENABLE_IDMA_SINGLE_BUFF (SDMMC_IDMA_IDMAEN) -#define SDMMC_ENABLE_IDMA_DOUBLE_BUFF0 (SDMMC_IDMA_IDMAEN | SDMMC_IDMA_IDMABMODE) -#define SDMMC_ENABLE_IDMA_DOUBLE_BUFF1 (SDMMC_IDMA_IDMAEN | SDMMC_IDMA_IDMABMODE | SDMMC_IDMA_IDMABACT) - -/** - * @} - */ - -/** @defgroup SDMMC_LL_Data_Length Data Length - * @{ - */ -#define IS_SDMMC_DATA_LENGTH(LENGTH) ((LENGTH) <= 0x01FFFFFFU) -/** - * @} - */ - -/** @defgroup SDMMC_LL_Data_Block_Size Data Block Size - * @{ - */ -#define SDMMC_DATABLOCK_SIZE_1B ((uint32_t)0x00000000U) -#define SDMMC_DATABLOCK_SIZE_2B SDMMC_DCTRL_DBLOCKSIZE_0 -#define SDMMC_DATABLOCK_SIZE_4B SDMMC_DCTRL_DBLOCKSIZE_1 -#define SDMMC_DATABLOCK_SIZE_8B (SDMMC_DCTRL_DBLOCKSIZE_0|SDMMC_DCTRL_DBLOCKSIZE_1) -#define SDMMC_DATABLOCK_SIZE_16B SDMMC_DCTRL_DBLOCKSIZE_2 -#define SDMMC_DATABLOCK_SIZE_32B (SDMMC_DCTRL_DBLOCKSIZE_0|SDMMC_DCTRL_DBLOCKSIZE_2) -#define SDMMC_DATABLOCK_SIZE_64B (SDMMC_DCTRL_DBLOCKSIZE_1|SDMMC_DCTRL_DBLOCKSIZE_2) -#define SDMMC_DATABLOCK_SIZE_128B (SDMMC_DCTRL_DBLOCKSIZE_0| \ - SDMMC_DCTRL_DBLOCKSIZE_1|SDMMC_DCTRL_DBLOCKSIZE_2) -#define SDMMC_DATABLOCK_SIZE_256B SDMMC_DCTRL_DBLOCKSIZE_3 -#define SDMMC_DATABLOCK_SIZE_512B (SDMMC_DCTRL_DBLOCKSIZE_0|SDMMC_DCTRL_DBLOCKSIZE_3) -#define SDMMC_DATABLOCK_SIZE_1024B (SDMMC_DCTRL_DBLOCKSIZE_1|SDMMC_DCTRL_DBLOCKSIZE_3) -#define SDMMC_DATABLOCK_SIZE_2048B (SDMMC_DCTRL_DBLOCKSIZE_0| \ - SDMMC_DCTRL_DBLOCKSIZE_1|SDMMC_DCTRL_DBLOCKSIZE_3) -#define SDMMC_DATABLOCK_SIZE_4096B (SDMMC_DCTRL_DBLOCKSIZE_2|SDMMC_DCTRL_DBLOCKSIZE_3) -#define SDMMC_DATABLOCK_SIZE_8192B (SDMMC_DCTRL_DBLOCKSIZE_0| \ - SDMMC_DCTRL_DBLOCKSIZE_2|SDMMC_DCTRL_DBLOCKSIZE_3) -#define SDMMC_DATABLOCK_SIZE_16384B (SDMMC_DCTRL_DBLOCKSIZE_1| \ - SDMMC_DCTRL_DBLOCKSIZE_2|SDMMC_DCTRL_DBLOCKSIZE_3) - -#define IS_SDMMC_BLOCK_SIZE(SIZE) (((SIZE) == SDMMC_DATABLOCK_SIZE_1B) || \ - ((SIZE) == SDMMC_DATABLOCK_SIZE_2B) || \ - ((SIZE) == SDMMC_DATABLOCK_SIZE_4B) || \ - ((SIZE) == SDMMC_DATABLOCK_SIZE_8B) || \ - ((SIZE) == SDMMC_DATABLOCK_SIZE_16B) || \ - ((SIZE) == SDMMC_DATABLOCK_SIZE_32B) || \ - ((SIZE) == SDMMC_DATABLOCK_SIZE_64B) || \ - ((SIZE) == SDMMC_DATABLOCK_SIZE_128B) || \ - ((SIZE) == SDMMC_DATABLOCK_SIZE_256B) || \ - ((SIZE) == SDMMC_DATABLOCK_SIZE_512B) || \ - ((SIZE) == SDMMC_DATABLOCK_SIZE_1024B) || \ - ((SIZE) == SDMMC_DATABLOCK_SIZE_2048B) || \ - ((SIZE) == SDMMC_DATABLOCK_SIZE_4096B) || \ - ((SIZE) == SDMMC_DATABLOCK_SIZE_8192B) || \ - ((SIZE) == SDMMC_DATABLOCK_SIZE_16384B)) -/** - * @} - */ - -/** @defgroup SDMMC_LL_Transfer_Direction Transfer Direction - * @{ - */ -#define SDMMC_TRANSFER_DIR_TO_CARD ((uint32_t)0x00000000U) -#define SDMMC_TRANSFER_DIR_TO_SDMMC SDMMC_DCTRL_DTDIR - -#define IS_SDMMC_TRANSFER_DIR(DIR) (((DIR) == SDMMC_TRANSFER_DIR_TO_CARD) || \ - ((DIR) == SDMMC_TRANSFER_DIR_TO_SDMMC)) -/** - * @} - */ - -/** @defgroup SDMMC_LL_Transfer_Type Transfer Type - * @{ - */ -#define SDMMC_TRANSFER_MODE_BLOCK ((uint32_t)0x00000000U) -#define SDMMC_TRANSFER_MODE_STREAM SDMMC_DCTRL_DTMODE_1 - -#define IS_SDMMC_TRANSFER_MODE(MODE) (((MODE) == SDMMC_TRANSFER_MODE_BLOCK) || \ - ((MODE) == SDMMC_TRANSFER_MODE_STREAM)) -/** - * @} - */ - -/** @defgroup SDMMC_LL_DPSM_State DPSM State - * @{ - */ -#define SDMMC_DPSM_DISABLE ((uint32_t)0x00000000U) -#define SDMMC_DPSM_ENABLE SDMMC_DCTRL_DTEN - -#define IS_SDMMC_DPSM(DPSM) (((DPSM) == SDMMC_DPSM_DISABLE) ||\ - ((DPSM) == SDMMC_DPSM_ENABLE)) -/** - * @} - */ - -/** @defgroup SDMMC_LL_Read_Wait_Mode Read Wait Mode - * @{ - */ -#define SDMMC_READ_WAIT_MODE_DATA2 ((uint32_t)0x00000000U) -#define SDMMC_READ_WAIT_MODE_CLK (SDMMC_DCTRL_RWMOD) - -#define IS_SDMMC_READWAIT_MODE(MODE) (((MODE) == SDMMC_READ_WAIT_MODE_CLK) || \ - ((MODE) == SDMMC_READ_WAIT_MODE_DATA2)) -/** - * @} - */ - -/** @defgroup SDMMC_LL_Interrupt_sources Interrupt Sources - * @{ - */ -#define SDMMC_IT_CCRCFAIL SDMMC_MASK_CCRCFAILIE -#define SDMMC_IT_DCRCFAIL SDMMC_MASK_DCRCFAILIE -#define SDMMC_IT_CTIMEOUT SDMMC_MASK_CTIMEOUTIE -#define SDMMC_IT_DTIMEOUT SDMMC_MASK_DTIMEOUTIE -#define SDMMC_IT_TXUNDERR SDMMC_MASK_TXUNDERRIE -#define SDMMC_IT_RXOVERR SDMMC_MASK_RXOVERRIE -#define SDMMC_IT_CMDREND SDMMC_MASK_CMDRENDIE -#define SDMMC_IT_CMDSENT SDMMC_MASK_CMDSENTIE -#define SDMMC_IT_DATAEND SDMMC_MASK_DATAENDIE -#define SDMMC_IT_DHOLD SDMMC_MASK_DHOLDIE -#define SDMMC_IT_DBCKEND SDMMC_MASK_DBCKENDIE -#define SDMMC_IT_DABORT SDMMC_MASK_DABORTIE -#define SDMMC_IT_TXFIFOHE SDMMC_MASK_TXFIFOHEIE -#define SDMMC_IT_RXFIFOHF SDMMC_MASK_RXFIFOHFIE -#define SDMMC_IT_RXFIFOF SDMMC_MASK_RXFIFOFIE -#define SDMMC_IT_TXFIFOE SDMMC_MASK_TXFIFOEIE -#define SDMMC_IT_BUSYD0END SDMMC_MASK_BUSYD0ENDIE -#define SDMMC_IT_SDIOIT SDMMC_MASK_SDIOITIE -#define SDMMC_IT_ACKFAIL SDMMC_MASK_ACKFAILIE -#define SDMMC_IT_ACKTIMEOUT SDMMC_MASK_ACKTIMEOUTIE -#define SDMMC_IT_VSWEND SDMMC_MASK_VSWENDIE -#define SDMMC_IT_CKSTOP SDMMC_MASK_CKSTOPIE -#define SDMMC_IT_IDMABTC SDMMC_MASK_IDMABTCIE -/** - * @} - */ - -/** @defgroup SDMMC_LL_Flags Flags - * @{ - */ -#define SDMMC_FLAG_CCRCFAIL SDMMC_STA_CCRCFAIL -#define SDMMC_FLAG_DCRCFAIL SDMMC_STA_DCRCFAIL -#define SDMMC_FLAG_CTIMEOUT SDMMC_STA_CTIMEOUT -#define SDMMC_FLAG_DTIMEOUT SDMMC_STA_DTIMEOUT -#define SDMMC_FLAG_TXUNDERR SDMMC_STA_TXUNDERR -#define SDMMC_FLAG_RXOVERR SDMMC_STA_RXOVERR -#define SDMMC_FLAG_CMDREND SDMMC_STA_CMDREND -#define SDMMC_FLAG_CMDSENT SDMMC_STA_CMDSENT -#define SDMMC_FLAG_DATAEND SDMMC_STA_DATAEND -#define SDMMC_FLAG_DHOLD SDMMC_STA_DHOLD -#define SDMMC_FLAG_DBCKEND SDMMC_STA_DBCKEND -#define SDMMC_FLAG_DABORT SDMMC_STA_DABORT -#define SDMMC_FLAG_DPSMACT SDMMC_STA_DPSMACT -#define SDMMC_FLAG_CMDACT SDMMC_STA_CPSMACT -#define SDMMC_FLAG_TXFIFOHE SDMMC_STA_TXFIFOHE -#define SDMMC_FLAG_RXFIFOHF SDMMC_STA_RXFIFOHF -#define SDMMC_FLAG_TXFIFOF SDMMC_STA_TXFIFOF -#define SDMMC_FLAG_RXFIFOF SDMMC_STA_RXFIFOF -#define SDMMC_FLAG_TXFIFOE SDMMC_STA_TXFIFOE -#define SDMMC_FLAG_RXFIFOE SDMMC_STA_RXFIFOE -#define SDMMC_FLAG_BUSYD0 SDMMC_STA_BUSYD0 -#define SDMMC_FLAG_BUSYD0END SDMMC_STA_BUSYD0END -#define SDMMC_FLAG_SDIOIT SDMMC_STA_SDIOIT -#define SDMMC_FLAG_ACKFAIL SDMMC_STA_ACKFAIL -#define SDMMC_FLAG_ACKTIMEOUT SDMMC_STA_ACKTIMEOUT -#define SDMMC_FLAG_VSWEND SDMMC_STA_VSWEND -#define SDMMC_FLAG_CKSTOP SDMMC_STA_CKSTOP -#define SDMMC_FLAG_IDMATE SDMMC_STA_IDMATE -#define SDMMC_FLAG_IDMABTC SDMMC_STA_IDMABTC - -#define SDMMC_STATIC_FLAGS ((uint32_t)(SDMMC_FLAG_CCRCFAIL | SDMMC_FLAG_DCRCFAIL | SDMMC_FLAG_CTIMEOUT |\ - SDMMC_FLAG_DTIMEOUT | SDMMC_FLAG_TXUNDERR | SDMMC_FLAG_RXOVERR |\ - SDMMC_FLAG_CMDREND | SDMMC_FLAG_CMDSENT | SDMMC_FLAG_DATAEND |\ - SDMMC_FLAG_DHOLD | SDMMC_FLAG_DBCKEND | SDMMC_FLAG_DABORT |\ - SDMMC_FLAG_BUSYD0END | SDMMC_FLAG_SDIOIT | SDMMC_FLAG_ACKFAIL |\ - SDMMC_FLAG_ACKTIMEOUT | SDMMC_FLAG_VSWEND | SDMMC_FLAG_CKSTOP |\ - SDMMC_FLAG_IDMATE | SDMMC_FLAG_IDMABTC)) - -#define SDMMC_STATIC_CMD_FLAGS ((uint32_t)(SDMMC_FLAG_CCRCFAIL | SDMMC_FLAG_CTIMEOUT | SDMMC_FLAG_CMDREND |\ - SDMMC_FLAG_CMDSENT | SDMMC_FLAG_BUSYD0END)) - -#define SDMMC_STATIC_DATA_FLAGS ((uint32_t)(SDMMC_FLAG_DCRCFAIL | SDMMC_FLAG_DTIMEOUT | SDMMC_FLAG_TXUNDERR |\ - SDMMC_FLAG_RXOVERR | SDMMC_FLAG_DATAEND | SDMMC_FLAG_DHOLD |\ - SDMMC_FLAG_DBCKEND | SDMMC_FLAG_DABORT | SDMMC_FLAG_IDMATE |\ - SDMMC_FLAG_IDMABTC)) -/** - * @} - */ - -/** - * @} - */ - -/* Exported macro ------------------------------------------------------------*/ -/** @defgroup SDMMC_LL_Exported_macros SDMMC_LL Exported Macros - * @{ - */ - -/** @defgroup SDMMC_LL_Register Bits And Addresses Definitions - * @brief SDMMC_LL registers bit address in the alias region - * @{ - */ -/* ---------------------- SDMMC registers bit mask --------------------------- */ -/* --- CLKCR Register ---*/ -/* CLKCR register clear mask */ -#define CLKCR_CLEAR_MASK ((uint32_t)(SDMMC_CLKCR_CLKDIV | SDMMC_CLKCR_PWRSAV |\ - SDMMC_CLKCR_WIDBUS |\ - SDMMC_CLKCR_NEGEDGE | SDMMC_CLKCR_HWFC_EN |\ - SDMMC_CLKCR_DDR | SDMMC_CLKCR_BUSSPEED |\ - SDMMC_CLKCR_SELCLKRX)) - -/* --- DCTRL Register ---*/ -/* SDMMC DCTRL Clear Mask */ -#define DCTRL_CLEAR_MASK ((uint32_t)(SDMMC_DCTRL_DTEN | SDMMC_DCTRL_DTDIR |\ - SDMMC_DCTRL_DTMODE | SDMMC_DCTRL_DBLOCKSIZE)) - -/* --- CMD Register ---*/ -/* CMD Register clear mask */ -#define CMD_CLEAR_MASK ((uint32_t)(SDMMC_CMD_CMDINDEX | SDMMC_CMD_WAITRESP |\ - SDMMC_CMD_WAITINT | SDMMC_CMD_WAITPEND |\ - SDMMC_CMD_CPSMEN | SDMMC_CMD_CMDSUSPEND)) - -/* SDMMC Initialization Frequency (400KHz max) for Peripheral CLK 200MHz*/ -#define SDMMC_INIT_CLK_DIV ((uint8_t)0xFA) - -/* SDMMC Default Speed Frequency (25Mhz max) for Peripheral CLK 200MHz*/ -#define SDMMC_NSPEED_CLK_DIV ((uint8_t)0x4) - -/* SDMMC High Speed Frequency (50Mhz max) for Peripheral CLK 200MHz*/ -#define SDMMC_HSPEED_CLK_DIV ((uint8_t)0x2) -/** - * @} - */ - -/** @defgroup SDMMC_LL_Interrupt_Clock Interrupt And Clock Configuration - * @brief macros to handle interrupts and specific clock configurations - * @{ - */ - -/** - * @brief Enable the SDMMC device interrupt. - * @param __INSTANCE__ Pointer to SDMMC register base - * @param __INTERRUPT__ specifies the SDMMC interrupt sources to be enabled. - * This parameter can be one or a combination of the following values: - * @arg SDMMC_IT_CCRCFAIL: Command response received (CRC check failed) interrupt - * @arg SDMMC_IT_DCRCFAIL: Data block sent/received (CRC check failed) interrupt - * @arg SDMMC_IT_CTIMEOUT: Command response timeout interrupt - * @arg SDMMC_IT_DTIMEOUT: Data timeout interrupt - * @arg SDMMC_IT_TXUNDERR: Transmit FIFO underrun error interrupt - * @arg SDMMC_IT_RXOVERR: Received FIFO overrun error interrupt - * @arg SDMMC_IT_CMDREND: Command response received (CRC check passed) interrupt - * @arg SDMMC_IT_CMDSENT: Command sent (no response required) interrupt - * @arg SDMMC_IT_DATAEND: Data end (data counter, DATACOUNT, is zero) interrupt - * @arg SDMMC_IT_DHOLD: Data transfer Hold interrupt - * @arg SDMMC_IT_DBCKEND: Data block sent/received (CRC check passed) interrupt - * @arg SDMMC_IT_DABORT: Data transfer aborted by CMD12 interrupt - * @arg SDMMC_IT_TXFIFOHE: Transmit FIFO Half Empty interrupt - * @arg SDMMC_IT_RXFIFOHF: Receive FIFO Half Full interrupt - * @arg SDMMC_IT_RXFIFOF: Receive FIFO full interrupt - * @arg SDMMC_IT_TXFIFOE: Transmit FIFO empty interrupt - * @arg SDMMC_IT_BUSYD0END: End of SDMMC_D0 Busy following a CMD response detected interrupt - * @arg SDMMC_IT_SDIOIT: SDIO interrupt received interrupt - * @arg SDMMC_IT_ACKFAIL: Boot Acknowledgment received interrupt - * @arg SDMMC_IT_ACKTIMEOUT: Boot Acknowledgment timeout interrupt - * @arg SDMMC_IT_VSWEND: Voltage switch critical timing section completion interrupt - * @arg SDMMC_IT_CKSTOP: SDMMC_CK stopped in Voltage switch procedure interrupt - * @arg SDMMC_IT_IDMABTC: IDMA buffer transfer complete interrupt - * @retval None - */ -#define __SDMMC_ENABLE_IT(__INSTANCE__, __INTERRUPT__) ((__INSTANCE__)->MASK |= (__INTERRUPT__)) - -/** - * @brief Disable the SDMMC device interrupt. - * @param __INSTANCE__ Pointer to SDMMC register base - * @param __INTERRUPT__ specifies the SDMMC interrupt sources to be disabled. - * This parameter can be one or a combination of the following values: - * @arg SDMMC_IT_CCRCFAIL: Command response received (CRC check failed) interrupt - * @arg SDMMC_IT_DCRCFAIL: Data block sent/received (CRC check failed) interrupt - * @arg SDMMC_IT_CTIMEOUT: Command response timeout interrupt - * @arg SDMMC_IT_DTIMEOUT: Data timeout interrupt - * @arg SDMMC_IT_TXUNDERR: Transmit FIFO underrun error interrupt - * @arg SDMMC_IT_RXOVERR: Received FIFO overrun error interrupt - * @arg SDMMC_IT_CMDREND: Command response received (CRC check passed) interrupt - * @arg SDMMC_IT_CMDSENT: Command sent (no response required) interrupt - * @arg SDMMC_IT_DATAEND: Data end (data counter, DATACOUNT, is zero) interrupt - * @arg SDMMC_IT_DHOLD: Data transfer Hold interrupt - * @arg SDMMC_IT_DBCKEND: Data block sent/received (CRC check passed) interrupt - * @arg SDMMC_IT_DABORT: Data transfer aborted by CMD12 interrupt - * @arg SDMMC_IT_TXFIFOHE: Transmit FIFO Half Empty interrupt - * @arg SDMMC_IT_RXFIFOHF: Receive FIFO Half Full interrupt - * @arg SDMMC_IT_RXFIFOF: Receive FIFO full interrupt - * @arg SDMMC_IT_TXFIFOE: Transmit FIFO empty interrupt - * @arg SDMMC_IT_BUSYD0END: End of SDMMC_D0 Busy following a CMD response detected interrupt - * @arg SDMMC_IT_SDIOIT: SDIO interrupt received interrupt - * @arg SDMMC_IT_ACKFAIL: Boot Acknowledgment received interrupt - * @arg SDMMC_IT_ACKTIMEOUT: Boot Acknowledgment timeout interrupt - * @arg SDMMC_IT_VSWEND: Voltage switch critical timing section completion interrupt - * @arg SDMMC_IT_CKSTOP: SDMMC_CK stopped in Voltage switch procedure interrupt - * @arg SDMMC_IT_IDMABTC: IDMA buffer transfer complete interrupt - * @retval None - */ -#define __SDMMC_DISABLE_IT(__INSTANCE__, __INTERRUPT__) ((__INSTANCE__)->MASK &= ~(__INTERRUPT__)) - -/** - * @brief Checks whether the specified SDMMC flag is set or not. - * @param __INSTANCE__ Pointer to SDMMC register base - * @param __FLAG__ specifies the flag to check. - * This parameter can be one of the following values: - * @arg SDMMC_FLAG_CCRCFAIL: Command response received (CRC check failed) - * @arg SDMMC_FLAG_DCRCFAIL: Data block sent/received (CRC check failed) - * @arg SDMMC_FLAG_CTIMEOUT: Command response timeout - * @arg SDMMC_FLAG_DTIMEOUT: Data timeout - * @arg SDMMC_FLAG_TXUNDERR: Transmit FIFO underrun error - * @arg SDMMC_FLAG_RXOVERR: Received FIFO overrun error - * @arg SDMMC_FLAG_CMDREND: Command response received (CRC check passed) - * @arg SDMMC_FLAG_CMDSENT: Command sent (no response required) - * @arg SDMMC_FLAG_DATAEND: Data end (data counter, DATACOUNT, is zero) - * @arg SDMMC_FLAG_DHOLD: Data transfer Hold - * @arg SDMMC_FLAG_DBCKEND: Data block sent/received (CRC check passed) - * @arg SDMMC_FLAG_DABORT: Data transfer aborted by CMD12 - * @arg SDMMC_FLAG_DPSMACT: Data path state machine active - * @arg SDMMC_FLAG_CPSMACT: Command path state machine active - * @arg SDMMC_FLAG_TXFIFOHE: Transmit FIFO Half Empty - * @arg SDMMC_FLAG_RXFIFOHF: Receive FIFO Half Full - * @arg SDMMC_FLAG_TXFIFOF: Transmit FIFO full - * @arg SDMMC_FLAG_RXFIFOF: Receive FIFO full - * @arg SDMMC_FLAG_TXFIFOE: Transmit FIFO empty - * @arg SDMMC_FLAG_RXFIFOE: Receive FIFO empty - * @arg SDMMC_FLAG_BUSYD0: Inverted value of SDMMC_D0 line (Busy) - * @arg SDMMC_FLAG_BUSYD0END: End of SDMMC_D0 Busy following a CMD response detected - * @arg SDMMC_FLAG_SDIOIT: SDIO interrupt received - * @arg SDMMC_FLAG_ACKFAIL: Boot Acknowledgment received - * @arg SDMMC_FLAG_ACKTIMEOUT: Boot Acknowledgment timeout - * @arg SDMMC_FLAG_VSWEND: Voltage switch critical timing section completion - * @arg SDMMC_FLAG_CKSTOP: SDMMC_CK stopped in Voltage switch procedure - * @arg SDMMC_FLAG_IDMATE: IDMA transfer error - * @arg SDMMC_FLAG_IDMABTC: IDMA buffer transfer complete - * @retval The new state of SDMMC_FLAG (SET or RESET). - */ -#define __SDMMC_GET_FLAG(__INSTANCE__, __FLAG__) (((__INSTANCE__)->STA &(__FLAG__)) != 0U) - - -/** - * @brief Clears the SDMMC pending flags. - * @param __INSTANCE__ Pointer to SDMMC register base - * @param __FLAG__ specifies the flag to clear. - * This parameter can be one or a combination of the following values: - * @arg SDMMC_FLAG_CCRCFAIL: Command response received (CRC check failed) - * @arg SDMMC_FLAG_DCRCFAIL: Data block sent/received (CRC check failed) - * @arg SDMMC_FLAG_CTIMEOUT: Command response timeout - * @arg SDMMC_FLAG_DTIMEOUT: Data timeout - * @arg SDMMC_FLAG_TXUNDERR: Transmit FIFO underrun error - * @arg SDMMC_FLAG_RXOVERR: Received FIFO overrun error - * @arg SDMMC_FLAG_CMDREND: Command response received (CRC check passed) - * @arg SDMMC_FLAG_CMDSENT: Command sent (no response required) - * @arg SDMMC_FLAG_DATAEND: Data end (data counter, DATACOUNT, is zero) - * @arg SDMMC_FLAG_DHOLD: Data transfer Hold - * @arg SDMMC_FLAG_DBCKEND: Data block sent/received (CRC check passed) - * @arg SDMMC_FLAG_DABORT: Data transfer aborted by CMD12 - * @arg SDMMC_FLAG_BUSYD0END: End of SDMMC_D0 Busy following a CMD response detected - * @arg SDMMC_FLAG_SDIOIT: SDIO interrupt received - * @arg SDMMC_FLAG_ACKFAIL: Boot Acknowledgment received - * @arg SDMMC_FLAG_ACKTIMEOUT: Boot Acknowledgment timeout - * @arg SDMMC_FLAG_VSWEND: Voltage switch critical timing section completion - * @arg SDMMC_FLAG_CKSTOP: SDMMC_CK stopped in Voltage switch procedure - * @arg SDMMC_FLAG_IDMATE: IDMA transfer error - * @arg SDMMC_FLAG_IDMABTC: IDMA buffer transfer complete - * @retval None - */ -#define __SDMMC_CLEAR_FLAG(__INSTANCE__, __FLAG__) ((__INSTANCE__)->ICR = (__FLAG__)) - -/** - * @brief Checks whether the specified SDMMC interrupt has occurred or not. - * @param __INSTANCE__ Pointer to SDMMC register base - * @param __INTERRUPT__ specifies the SDMMC interrupt source to check. - * This parameter can be one of the following values: - * @arg SDMMC_IT_CCRCFAIL: Command response received (CRC check failed) interrupt - * @arg SDMMC_IT_DCRCFAIL: Data block sent/received (CRC check failed) interrupt - * @arg SDMMC_IT_CTIMEOUT: Command response timeout interrupt - * @arg SDMMC_IT_DTIMEOUT: Data timeout interrupt - * @arg SDMMC_IT_TXUNDERR: Transmit FIFO underrun error interrupt - * @arg SDMMC_IT_RXOVERR: Received FIFO overrun error interrupt - * @arg SDMMC_IT_CMDREND: Command response received (CRC check passed) interrupt - * @arg SDMMC_IT_CMDSENT: Command sent (no response required) interrupt - * @arg SDMMC_IT_DATAEND: Data end (data counter, DATACOUNT, is zero) interrupt - * @arg SDMMC_IT_DHOLD: Data transfer Hold interrupt - * @arg SDMMC_IT_DBCKEND: Data block sent/received (CRC check passed) interrupt - * @arg SDMMC_IT_DABORT: Data transfer aborted by CMD12 interrupt - * @arg SDMMC_IT_TXFIFOHE: Transmit FIFO Half Empty interrupt - * @arg SDMMC_IT_RXFIFOHF: Receive FIFO Half Full interrupt - * @arg SDMMC_IT_RXFIFOF: Receive FIFO full interrupt - * @arg SDMMC_IT_TXFIFOE: Transmit FIFO empty interrupt - * @arg SDMMC_IT_BUSYD0END: End of SDMMC_D0 Busy following a CMD response detected interrupt - * @arg SDMMC_IT_SDIOIT: SDIO interrupt received interrupt - * @arg SDMMC_IT_ACKFAIL: Boot Acknowledgment received interrupt - * @arg SDMMC_IT_ACKTIMEOUT: Boot Acknowledgment timeout interrupt - * @arg SDMMC_IT_VSWEND: Voltage switch critical timing section completion interrupt - * @arg SDMMC_IT_CKSTOP: SDMMC_CK stopped in Voltage switch procedure interrupt - * @arg SDMMC_IT_IDMABTC: IDMA buffer transfer complete interrupt - * @retval The new state of SDMMC_IT (SET or RESET). - */ -#define __SDMMC_GET_IT(__INSTANCE__, __INTERRUPT__) (((__INSTANCE__)->STA &(__INTERRUPT__)) == (__INTERRUPT__)) - -/** - * @brief Clears the SDMMC's interrupt pending bits. - * @param __INSTANCE__ Pointer to SDMMC register base - * @param __INTERRUPT__ specifies the interrupt pending bit to clear. - * This parameter can be one or a combination of the following values: - * @arg SDMMC_IT_CCRCFAIL: Command response received (CRC check failed) interrupt - * @arg SDMMC_IT_DCRCFAIL: Data block sent/received (CRC check failed) interrupt - * @arg SDMMC_IT_CTIMEOUT: Command response timeout interrupt - * @arg SDMMC_IT_DTIMEOUT: Data timeout interrupt - * @arg SDMMC_IT_TXUNDERR: Transmit FIFO underrun error interrupt - * @arg SDMMC_IT_RXOVERR: Received FIFO overrun error interrupt - * @arg SDMMC_IT_CMDREND: Command response received (CRC check passed) interrupt - * @arg SDMMC_IT_CMDSENT: Command sent (no response required) interrupt - * @arg SDMMC_IT_DATAEND: Data end (data counter, DATACOUNT, is zero) interrupt - * @arg SDMMC_IT_DHOLD: Data transfer Hold interrupt - * @arg SDMMC_IT_DBCKEND: Data block sent/received (CRC check passed) interrupt - * @arg SDMMC_IT_DABORT: Data transfer aborted by CMD12 interrupt - * @arg SDMMC_IT_BUSYD0END: End of SDMMC_D0 Busy following a CMD response detected interrupt - * @arg SDMMC_IT_SDIOIT: SDIO interrupt received interrupt - * @arg SDMMC_IT_ACKFAIL: Boot Acknowledgment received interrupt - * @arg SDMMC_IT_ACKTIMEOUT: Boot Acknowledgment timeout interrupt - * @arg SDMMC_IT_VSWEND: Voltage switch critical timing section completion interrupt - * @arg SDMMC_IT_CKSTOP: SDMMC_CK stopped in Voltage switch procedure interrupt - * @arg SDMMC_IT_IDMABTC: IDMA buffer transfer complete interrupt - * @retval None - */ -#define __SDMMC_CLEAR_IT(__INSTANCE__, __INTERRUPT__) ((__INSTANCE__)->ICR = (__INTERRUPT__)) - -/** - * @brief Enable Start the SD I/O Read Wait operation. - * @param __INSTANCE__ Pointer to SDMMC register base - * @retval None - */ -#define __SDMMC_START_READWAIT_ENABLE(__INSTANCE__) ((__INSTANCE__)->DCTRL |= SDMMC_DCTRL_RWSTART) - -/** - * @brief Disable Start the SD I/O Read Wait operations. - * @param __INSTANCE__ Pointer to SDMMC register base - * @retval None - */ -#define __SDMMC_START_READWAIT_DISABLE(__INSTANCE__) ((__INSTANCE__)->DCTRL &= ~SDMMC_DCTRL_RWSTART) - -/** - * @brief Enable Start the SD I/O Read Wait operation. - * @param __INSTANCE__ Pointer to SDMMC register base - * @retval None - */ -#define __SDMMC_STOP_READWAIT_ENABLE(__INSTANCE__) ((__INSTANCE__)->DCTRL |= SDMMC_DCTRL_RWSTOP) - -/** - * @brief Disable Stop the SD I/O Read Wait operations. - * @param __INSTANCE__ Pointer to SDMMC register base - * @retval None - */ -#define __SDMMC_STOP_READWAIT_DISABLE(__INSTANCE__) ((__INSTANCE__)->DCTRL &= ~SDMMC_DCTRL_RWSTOP) - -/** - * @brief Enable the SD I/O Mode Operation. - * @param __INSTANCE__ Pointer to SDMMC register base - * @retval None - */ -#define __SDMMC_OPERATION_ENABLE(__INSTANCE__) ((__INSTANCE__)->DCTRL |= SDMMC_DCTRL_SDIOEN) - -/** - * @brief Disable the SD I/O Mode Operation. - * @param __INSTANCE__ Pointer to SDMMC register base - * @retval None - */ -#define __SDMMC_OPERATION_DISABLE(__INSTANCE__) ((__INSTANCE__)->DCTRL &= ~SDMMC_DCTRL_SDIOEN) - -/** - * @brief Enable the SD I/O Suspend command sending. - * @param __INSTANCE__ Pointer to SDMMC register base - * @retval None - */ -#define __SDMMC_SUSPEND_CMD_ENABLE(__INSTANCE__) ((__INSTANCE__)->CMD |= SDMMC_CMD_CMDSUSPEND) - -/** - * @brief Disable the SD I/O Suspend command sending. - * @param __INSTANCE__ Pointer to SDMMC register base - * @retval None - */ -#define __SDMMC_SUSPEND_CMD_DISABLE(__INSTANCE__) ((__INSTANCE__)->CMD &= ~SDMMC_CMD_CMDSUSPEND) - -/** - * @brief Enable the CMDTRANS mode. - * @param __INSTANCE__ Pointer to SDMMC register base - * @retval None - */ -#define __SDMMC_CMDTRANS_ENABLE(__INSTANCE__) ((__INSTANCE__)->CMD |= SDMMC_CMD_CMDTRANS) - -/** - * @brief Disable the CMDTRANS mode. - * @param __INSTANCE__ Pointer to SDMMC register base - * @retval None - */ -#define __SDMMC_CMDTRANS_DISABLE(__INSTANCE__) ((__INSTANCE__)->CMD &= ~SDMMC_CMD_CMDTRANS) - -/** - * @brief Enable the CMDSTOP mode. - * @param __INSTANCE__ Pointer to SDMMC register base - * @retval None - */ -#define __SDMMC_CMDSTOP_ENABLE(__INSTANCE__) ((__INSTANCE__)->CMD |= SDMMC_CMD_CMDSTOP) - -/** - * @brief Disable the CMDSTOP mode. - * @param __INSTANCE__ Pointer to SDMMC register base - * @retval None - */ -#define __SDMMC_CMDSTOP_DISABLE(__INSTANCE__) ((__INSTANCE__)->CMD &= ~SDMMC_CMD_CMDSTOP) - -/** - * @} - */ - -/** - * @} - */ - -/* Exported functions --------------------------------------------------------*/ -/** @addtogroup SDMMC_LL_Exported_Functions - * @{ - */ - -/* Initialization/de-initialization functions **********************************/ -/** @addtogroup HAL_SDMMC_LL_Group1 - * @{ - */ -HAL_StatusTypeDef SDMMC_Init(SDMMC_TypeDef *SDMMCx, SDMMC_InitTypeDef Init); -/** - * @} - */ - -/* I/O operation functions *****************************************************/ -/** @addtogroup HAL_SDMMC_LL_Group2 - * @{ - */ -uint32_t SDMMC_ReadFIFO(SDMMC_TypeDef *SDMMCx); -HAL_StatusTypeDef SDMMC_WriteFIFO(SDMMC_TypeDef *SDMMCx, uint32_t *pWriteData); -/** - * @} - */ - -/* Peripheral Control functions ************************************************/ -/** @addtogroup HAL_SDMMC_LL_Group3 - * @{ - */ -HAL_StatusTypeDef SDMMC_PowerState_ON(SDMMC_TypeDef *SDMMCx); -HAL_StatusTypeDef SDMMC_PowerState_Cycle(SDMMC_TypeDef *SDMMCx); -HAL_StatusTypeDef SDMMC_PowerState_OFF(SDMMC_TypeDef *SDMMCx); -uint32_t SDMMC_GetPowerState(SDMMC_TypeDef *SDMMCx); - -/* Command path state machine (CPSM) management functions */ -HAL_StatusTypeDef SDMMC_SendCommand(SDMMC_TypeDef *SDMMCx, SDMMC_CmdInitTypeDef *Command); -uint8_t SDMMC_GetCommandResponse(SDMMC_TypeDef *SDMMCx); -uint32_t SDMMC_GetResponse(SDMMC_TypeDef *SDMMCx, uint32_t Response); - -/* Data path state machine (DPSM) management functions */ -HAL_StatusTypeDef SDMMC_ConfigData(SDMMC_TypeDef *SDMMCx, SDMMC_DataInitTypeDef *Data); -uint32_t SDMMC_GetDataCounter(SDMMC_TypeDef *SDMMCx); -uint32_t SDMMC_GetFIFOCount(SDMMC_TypeDef *SDMMCx); - -/* SDMMC Cards mode management functions */ -HAL_StatusTypeDef SDMMC_SetSDMMCReadWaitMode(SDMMC_TypeDef *SDMMCx, uint32_t SDMMC_ReadWaitMode); -/** - * @} - */ - -/* SDMMC Commands management functions ******************************************/ -/** @addtogroup HAL_SDMMC_LL_Group4 - * @{ - */ -uint32_t SDMMC_CmdBlockLength(SDMMC_TypeDef *SDMMCx, uint32_t BlockSize); -uint32_t SDMMC_CmdReadSingleBlock(SDMMC_TypeDef *SDMMCx, uint32_t ReadAdd); -uint32_t SDMMC_CmdReadMultiBlock(SDMMC_TypeDef *SDMMCx, uint32_t ReadAdd); -uint32_t SDMMC_CmdWriteSingleBlock(SDMMC_TypeDef *SDMMCx, uint32_t WriteAdd); -uint32_t SDMMC_CmdWriteMultiBlock(SDMMC_TypeDef *SDMMCx, uint32_t WriteAdd); -uint32_t SDMMC_CmdEraseStartAdd(SDMMC_TypeDef *SDMMCx, uint32_t StartAdd); -uint32_t SDMMC_CmdSDEraseStartAdd(SDMMC_TypeDef *SDMMCx, uint32_t StartAdd); -uint32_t SDMMC_CmdEraseEndAdd(SDMMC_TypeDef *SDMMCx, uint32_t EndAdd); -uint32_t SDMMC_CmdSDEraseEndAdd(SDMMC_TypeDef *SDMMCx, uint32_t EndAdd); -uint32_t SDMMC_CmdErase(SDMMC_TypeDef *SDMMCx, uint32_t EraseType); -uint32_t SDMMC_CmdStopTransfer(SDMMC_TypeDef *SDMMCx); -uint32_t SDMMC_CmdSelDesel(SDMMC_TypeDef *SDMMCx, uint32_t Addr); -uint32_t SDMMC_CmdGoIdleState(SDMMC_TypeDef *SDMMCx); -uint32_t SDMMC_CmdOperCond(SDMMC_TypeDef *SDMMCx); -uint32_t SDMMC_CmdAppCommand(SDMMC_TypeDef *SDMMCx, uint32_t Argument); -uint32_t SDMMC_CmdAppOperCommand(SDMMC_TypeDef *SDMMCx, uint32_t Argument); -uint32_t SDMMC_CmdBusWidth(SDMMC_TypeDef *SDMMCx, uint32_t BusWidth); -uint32_t SDMMC_CmdSendSCR(SDMMC_TypeDef *SDMMCx); -uint32_t SDMMC_CmdSendCID(SDMMC_TypeDef *SDMMCx); -uint32_t SDMMC_CmdSendCSD(SDMMC_TypeDef *SDMMCx, uint32_t Argument); -uint32_t SDMMC_CmdSetRelAdd(SDMMC_TypeDef *SDMMCx, uint16_t *pRCA); -uint32_t SDMMC_CmdSetRelAddMmc(SDMMC_TypeDef *SDMMCx, uint16_t RCA); -uint32_t SDMMC_CmdSleepMmc(SDMMC_TypeDef *SDMMCx, uint32_t Argument); -uint32_t SDMMC_CmdSendStatus(SDMMC_TypeDef *SDMMCx, uint32_t Argument); -uint32_t SDMMC_CmdStatusRegister(SDMMC_TypeDef *SDMMCx); -uint32_t SDMMC_CmdVoltageSwitch(SDMMC_TypeDef *SDMMCx); -uint32_t SDMMC_CmdOpCondition(SDMMC_TypeDef *SDMMCx, uint32_t Argument); -uint32_t SDMMC_CmdSwitch(SDMMC_TypeDef *SDMMCx, uint32_t Argument); -uint32_t SDMMC_CmdSendEXTCSD(SDMMC_TypeDef *SDMMCx, uint32_t Argument); -/** - * @} - */ - -/* SDMMC Responses management functions *****************************************/ -/** @addtogroup HAL_SDMMC_LL_Group5 - * @{ - */ -uint32_t SDMMC_GetCmdResp1(SDMMC_TypeDef *SDMMCx, uint8_t SD_CMD, uint32_t Timeout); -uint32_t SDMMC_GetCmdResp2(SDMMC_TypeDef *SDMMCx); -uint32_t SDMMC_GetCmdResp3(SDMMC_TypeDef *SDMMCx); -uint32_t SDMMC_GetCmdResp6(SDMMC_TypeDef *SDMMCx, uint8_t SD_CMD, uint16_t *pRCA); -uint32_t SDMMC_GetCmdResp7(SDMMC_TypeDef *SDMMCx); -/** - * @} - */ - - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_LL_SDMMC_H */ diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_system.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_system.h deleted file mode 100644 index aa5149a..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_system.h +++ /dev/null @@ -1,2442 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_ll_system.h - * @author MCD Application Team - * @brief Header file of SYSTEM LL module. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - @verbatim - ============================================================================== - ##### How to use this driver ##### - ============================================================================== - [..] - The LL SYSTEM driver contains a set of generic APIs that can be - used by user: - (+) Some of the FLASH features need to be handled in the SYSTEM file. - (+) Access to DBGCMU registers - (+) Access to SYSCFG registers - - @endverbatim - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef __STM32H7xx_LL_SYSTEM_H -#define __STM32H7xx_LL_SYSTEM_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx.h" - -/** @addtogroup STM32H7xx_LL_Driver - * @{ - */ - -#if defined (FLASH) || defined (SYSCFG) || defined (DBGMCU) - -/** @defgroup SYSTEM_LL SYSTEM - * @{ - */ - -/* Private types -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ - -/* Private constants ---------------------------------------------------------*/ -/** @defgroup SYSTEM_LL_Private_Constants SYSTEM Private Constants - * @{ - */ -/** @defgroup SYSTEM_LL_EC_FLASH_BANK1_SECTORS SYSCFG Flash Bank1 sectors bits status - * @{ - */ -#define LL_SYSCFG_FLASH_B1_SECTOR0_STATUS_BIT 0x10000U -#define LL_SYSCFG_FLASH_B1_SECTOR1_STATUS_BIT 0x20000U -#define LL_SYSCFG_FLASH_B1_SECTOR2_STATUS_BIT 0x40000U -#define LL_SYSCFG_FLASH_B1_SECTOR3_STATUS_BIT 0x80000U -#define LL_SYSCFG_FLASH_B1_SECTOR4_STATUS_BIT 0x100000U -#define LL_SYSCFG_FLASH_B1_SECTOR5_STATUS_BIT 0x200000U -#define LL_SYSCFG_FLASH_B1_SECTOR6_STATUS_BIT 0x400000U -#define LL_SYSCFG_FLASH_B1_SECTOR7_STATUS_BIT 0x800000U -/** - * @} - */ - -/** @defgroup SYSTEM_LL_EC_FLASH_BANK2_SECTORS SYSCFG Flash Bank2 sectors bits status - * @{ - */ -#define LL_SYSCFG_FLASH_B2_SECTOR0_STATUS_BIT 0x10000U -#define LL_SYSCFG_FLASH_B2_SECTOR1_STATUS_BIT 0x20000U -#define LL_SYSCFG_FLASH_B2_SECTOR2_STATUS_BIT 0x40000U -#define LL_SYSCFG_FLASH_B2_SECTOR3_STATUS_BIT 0x80000U -#define LL_SYSCFG_FLASH_B2_SECTOR4_STATUS_BIT 0x100000U -#define LL_SYSCFG_FLASH_B2_SECTOR5_STATUS_BIT 0x200000U -#define LL_SYSCFG_FLASH_B2_SECTOR6_STATUS_BIT 0x400000U -#define LL_SYSCFG_FLASH_B2_SECTOR7_STATUS_BIT 0x800000U -/** - * @} - */ -/** - * @} - */ - -/* Private macros ------------------------------------------------------------*/ - -/* Exported types ------------------------------------------------------------*/ -/* Exported constants --------------------------------------------------------*/ -/** @defgroup SYSTEM_LL_Exported_Constants SYSTEM Exported Constants - * @{ - */ - -/** @defgroup SYSTEM_LL_EC_I2C_FASTMODEPLUS SYSCFG I2C FASTMODEPLUS - * @{ - */ -#define LL_SYSCFG_I2C_FASTMODEPLUS_I2C1 SYSCFG_PMCR_I2C1_FMP /*!< Enable Fast Mode Plus for I2C1 */ -#define LL_SYSCFG_I2C_FASTMODEPLUS_I2C2 SYSCFG_PMCR_I2C2_FMP /*!< Enable Fast Mode Plus for I2C2 */ -#define LL_SYSCFG_I2C_FASTMODEPLUS_I2C3 SYSCFG_PMCR_I2C3_FMP /*!< Enable Fast Mode Plus for I2C3 */ -#define LL_SYSCFG_I2C_FASTMODEPLUS_I2C4 SYSCFG_PMCR_I2C4_FMP /*!< Enable Fast Mode Plus for I2C4 */ -#if defined(I2C5) -#define LL_SYSCFG_I2C_FASTMODEPLUS_I2C5 SYSCFG_PMCR_I2C5_FMP /*!< Enable Fast Mode Plus for I2C5 */ -#endif /*I2C5*/ -#define LL_SYSCFG_I2C_FASTMODEPLUS_PB6 SYSCFG_PMCR_I2C_PB6_FMP /*!< Enable Fast Mode Plus on PB6 */ -#define LL_SYSCFG_I2C_FASTMODEPLUS_PB7 SYSCFG_PMCR_I2C_PB7_FMP /*!< Enable Fast Mode Plus on PB7 */ -#define LL_SYSCFG_I2C_FASTMODEPLUS_PB8 SYSCFG_PMCR_I2C_PB8_FMP /*!< Enable Fast Mode Plus on PB8 */ -#define LL_SYSCFG_I2C_FASTMODEPLUS_PB9 SYSCFG_PMCR_I2C_PB9_FMP /*!< Enable Fast Mode Plus on PB9 */ -/** - * @} - */ - -/** @defgroup SYSTEM_LL_EC_ANALOG_SWITCH Analog Switch control -* @{ -*/ -#if defined(SYSCFG_PMCR_BOOSTEN) -#define LL_SYSCFG_ANALOG_SWITCH_BOOSTEN SYSCFG_PMCR_BOOSTEN /*!< I/O analog switch voltage booster enable */ -#endif /*SYSCFG_PMCR_BOOSTEN*/ -#define LL_SYSCFG_ANALOG_SWITCH_PA0 SYSCFG_PMCR_PA0SO /*!< PA0 Switch Open */ -#define LL_SYSCFG_ANALOG_SWITCH_PA1 SYSCFG_PMCR_PA1SO /*!< PA1 Switch Open */ -#define LL_SYSCFG_ANALOG_SWITCH_PC2 SYSCFG_PMCR_PC2SO /*!< PC2 Switch Open */ -#define LL_SYSCFG_ANALOG_SWITCH_PC3 SYSCFG_PMCR_PC3SO /*!< PC3 Switch Open */ -/** - * @} - */ - -#if defined(SYSCFG_PMCR_EPIS_SEL) -/** @defgroup SYSTEM_LL_EC_EPIS Ethernet PHY Interface Selection -* @{ -*/ -#define LL_SYSCFG_ETH_MII 0x00000000U /*!< ETH Media MII interface */ -#define LL_SYSCFG_ETH_RMII SYSCFG_PMCR_EPIS_SEL_2 /*!< ETH Media RMII interface */ -/** - * @} - */ -#endif /* SYSCFG_PMCR_EPIS_SEL */ - -/** @defgroup SYSTEM_LL_EC_EXTI_PORT SYSCFG EXTI PORT - * @{ - */ -#define LL_SYSCFG_EXTI_PORTA 0U /*!< EXTI PORT A */ -#define LL_SYSCFG_EXTI_PORTB 1U /*!< EXTI PORT B */ -#define LL_SYSCFG_EXTI_PORTC 2U /*!< EXTI PORT C */ -#define LL_SYSCFG_EXTI_PORTD 3U /*!< EXTI PORT D */ -#define LL_SYSCFG_EXTI_PORTE 4U /*!< EXTI PORT E */ -#define LL_SYSCFG_EXTI_PORTF 5U /*!< EXTI PORT F */ -#define LL_SYSCFG_EXTI_PORTG 6U /*!< EXTI PORT G */ -#define LL_SYSCFG_EXTI_PORTH 7U /*!< EXTI PORT H */ -#if defined(GPIOI) -#define LL_SYSCFG_EXTI_PORTI 8U /*!< EXTI PORT I */ -#endif /*GPIOI*/ -#define LL_SYSCFG_EXTI_PORTJ 9U /*!< EXTI PORT J */ -#define LL_SYSCFG_EXTI_PORTK 10U /*!< EXTI PORT k */ -/** - * @} - */ - -/** @defgroup SYSTEM_LL_EC_EXTI_LINE SYSCFG EXTI LINE - * @{ - */ -#define LL_SYSCFG_EXTI_LINE0 ((0x000FUL << 16U) | 0U) /*!< EXTI_POSITION_0 | EXTICR[0] */ -#define LL_SYSCFG_EXTI_LINE1 ((0x00F0UL << 16U) | 0U) /*!< EXTI_POSITION_4 | EXTICR[0] */ -#define LL_SYSCFG_EXTI_LINE2 ((0x0F00UL << 16U) | 0U) /*!< EXTI_POSITION_8 | EXTICR[0] */ -#define LL_SYSCFG_EXTI_LINE3 ((0xF000UL << 16U) | 0U) /*!< EXTI_POSITION_12 | EXTICR[0] */ -#define LL_SYSCFG_EXTI_LINE4 ((0x000FUL << 16U) | 1U) /*!< EXTI_POSITION_0 | EXTICR[1] */ -#define LL_SYSCFG_EXTI_LINE5 ((0x00F0UL << 16U) | 1U) /*!< EXTI_POSITION_4 | EXTICR[1] */ -#define LL_SYSCFG_EXTI_LINE6 ((0x0F00UL << 16U) | 1U) /*!< EXTI_POSITION_8 | EXTICR[1] */ -#define LL_SYSCFG_EXTI_LINE7 ((0xF000UL << 16U) | 1U) /*!< EXTI_POSITION_12 | EXTICR[1] */ -#define LL_SYSCFG_EXTI_LINE8 ((0x000FUL << 16U) | 2U) /*!< EXTI_POSITION_0 | EXTICR[2] */ -#define LL_SYSCFG_EXTI_LINE9 ((0x00F0UL << 16U) | 2U) /*!< EXTI_POSITION_4 | EXTICR[2] */ -#define LL_SYSCFG_EXTI_LINE10 ((0x0F00UL << 16U) | 2U) /*!< EXTI_POSITION_8 | EXTICR[2] */ -#define LL_SYSCFG_EXTI_LINE11 ((0xF000UL << 16U) | 2U) /*!< EXTI_POSITION_12 | EXTICR[2] */ -#define LL_SYSCFG_EXTI_LINE12 ((0x000FUL << 16U) | 3U) /*!< EXTI_POSITION_0 | EXTICR[3] */ -#define LL_SYSCFG_EXTI_LINE13 ((0x00F0UL << 16U) | 3U) /*!< EXTI_POSITION_4 | EXTICR[3] */ -#define LL_SYSCFG_EXTI_LINE14 ((0x0F00UL << 16U) | 3U) /*!< EXTI_POSITION_8 | EXTICR[3] */ -#define LL_SYSCFG_EXTI_LINE15 ((0xF000UL << 16U) | 3U) /*!< EXTI_POSITION_12 | EXTICR[3] */ -/** - * @} - */ - -/** @defgroup SYSTEM_LL_EC_TIMBREAK SYSCFG TIMER BREAK - * @{ - */ -#define LL_SYSCFG_TIMBREAK_AXISRAM_DBL_ECC SYSCFG_CFGR_AXISRAML /*!< Enables and locks the AXIRAM double ECC error signal - with Break Input of TIM1/8/15/16/17 and HRTIM */ - -#define LL_SYSCFG_TIMBREAK_ITCM_DBL_ECC SYSCFG_CFGR_ITCML /*!< Enables and locks the ITCM double ECC error signal - with Break Input of TIM1/8/15/16/17 and HRTIM */ - -#define LL_SYSCFG_TIMBREAK_DTCM_DBL_ECC SYSCFG_CFGR_DTCML /*!< Enables and locks the DTCM double ECC error signal - with Break Input of TIM1/8/15/16/17 and HRTIM */ - -#define LL_SYSCFG_TIMBREAK_SRAM1_DBL_ECC SYSCFG_CFGR_SRAM1L /*!< Enables and locks the SRAM1 double ECC error signal - with Break Input of TIM1/8/15/16/17 and HRTIM */ - -#define LL_SYSCFG_TIMBREAK_SRAM2_DBL_ECC SYSCFG_CFGR_SRAM2L /*!< Enables and locks the SRAM2 double ECC error signal - with Break Input of TIM1/8/15/16/17 and HRTIM */ - -#if defined(SYSCFG_CFGR_SRAM3L) -#define LL_SYSCFG_TIMBREAK_SRAM3_DBL_ECC SYSCFG_CFGR_SRAM3L /*!< Enables and locks the SRAM3 double ECC error signal - with Break Input of TIM1/8/15/16/17 and HRTIM */ -#endif /*SYSCFG_CFGR_SRAM3L*/ - -#define LL_SYSCFG_TIMBREAK_SRAM4_DBL_ECC SYSCFG_CFGR_SRAM4L /*!< Enables and locks the SRAM4 double ECC error signal - with Break Input of TIM1/8/15/16/17 and HRTIM */ - -#define LL_SYSCFG_TIMBREAK_BKRAM_DBL_ECC SYSCFG_CFGR_BKRAML /*!< Enables and locks the BKRAM double ECC error signal - with Break Input of TIM1/8/15/16/17 and HRTIM */ - -#define LL_SYSCFG_TIMBREAK_CM7_LOCKUP SYSCFG_CFGR_CM7L /*!< Enables and locks the Cortex-M7 LOCKUP signal - with Break Input of TIM1/8/15/16/17 and HRTIM */ - -#define LL_SYSCFG_TIMBREAK_FLASH_DBL_ECC SYSCFG_CFGR_FLASHL /*!< Enables and locks the FLASH double ECC error signal - with Break Input of TIM1/8/15/16/17 and HRTIM */ - -#define LL_SYSCFG_TIMBREAK_PVD SYSCFG_CFGR_PVDL /*!< Enables and locks the PVD connection - with TIM1/8/15/16/17 and HRTIM Break Input - and also the PVDE and PLS bits of the Power Control Interface */ -#if defined(DUAL_CORE) -#define LL_SYSCFG_TIMBREAK_CM4_LOCKUP SYSCFG_CFGR_CM4L /*!< Enables and locks the Cortex-M4 LOCKUP signal - with Break Input of TIM1/8/15/16/17 and HRTIM */ -#endif /* DUAL_CORE */ -/** - * @} - */ - -/** @defgroup SYSTEM_LL_EC_CS SYSCFG I/O compensation cell Code selection - * @{ - */ -#define LL_SYSCFG_CELL_CODE 0U -#define LL_SYSCFG_REGISTER_CODE SYSCFG_CCCSR_CS -/** - * @} - */ - -/** @defgroup SYSTEM_LL_IWDG1_CONTROL_MODES SYSCFG IWDG1 control modes - * @{ - */ -#define LL_SYSCFG_IWDG1_SW_CONTROL_MODE 0U -#define LL_SYSCFG_IWDG1_HW_CONTROL_MODE SYSCFG_UR11_IWDG1M -/** - * @} - */ - -#if defined (DUAL_CORE) -/** @defgroup SYSTEM_LL_IWDG2_CONTROL_MODES SYSCFG IWDG2 control modes - * @{ - */ -#define LL_SYSCFG_IWDG2_SW_CONTROL_MODE 0U -#define LL_SYSCFG_IWDG2_HW_CONTROL_MODE SYSCFG_UR12_IWDG2M -/** - * @} - */ -#endif /* DUAL_CORE */ - -/** @defgroup SYSTEM_LL_DTCM_RAM_SIZE SYSCFG DTCM RAM size configuration - * @{ - */ -#define LL_SYSCFG_DTCM_RAM_SIZE_2KB 0U -#define LL_SYSCFG_DTCM_RAM_SIZE_4KB 1U -#define LL_SYSCFG_DTCM_RAM_SIZE_8KB 2U -#define LL_SYSCFG_DTCM_RAM_SIZE_16KB 3U -/** - * @} - */ -#ifdef SYSCFG_UR17_TCM_AXI_CFG -/** @defgroup SYSTEM_LL_PACKAGE SYSCFG device package - * @{ - */ -#define LL_SYSCFG_ITCM_AXI_64KB_320KB 0U -#define LL_SYSCFG_ITCM_AXI_128KB_256KB 1U -#define LL_SYSCFG_ITCM_AXI_192KB_192KB 2U -#define LL_SYSCFG_ITCM_AXI_256KB_128KB 3U -/** - * @} - */ -#endif /* #ifdef SYSCFG_UR17_TCM_AXI_CFG */ -#if defined(SYSCFG_PKGR_PKG) -/** @defgroup SYSTEM_LL_PACKAGE SYSCFG device package - * @{ - */ -#if (STM32H7_DEV_ID == 0x450UL) -#define LL_SYSCFG_LQFP100_PACKAGE 0U -#define LL_SYSCFG_TQFP144_PACKAGE 2U -#define LL_SYSCFG_TQFP176_UFBGA176_PACKAGE 5U -#define LL_SYSCFG_LQFP208_TFBGA240_PACKAGE 8U -#elif (STM32H7_DEV_ID == 0x483UL) -#define LL_SYSCFG_VFQFPN68_INDUS_PACKAGE 0U -#define LL_SYSCFG_TFBGA100_LQFP100_PACKAGE 1U -#define LL_SYSCFG_LQFP100_INDUS_PACKAGE 2U -#define LL_SYSCFG_TFBGA100_INDUS_PACKAGE 3U -#define LL_SYSCFG_WLCSP115_INDUS_PACKAGE 4U -#define LL_SYSCFG_LQFP144_PACKAGE 5U -#define LL_SYSCFG_UFBGA144_PACKAGE 6U -#define LL_SYSCFG_LQFP144_INDUS_PACKAGE 7U -#define LL_SYSCFG_UFBGA169_INDUS_PACKAGE 8U -#define LL_SYSCFG_UFBGA176PLUS25_INDUS_PACKAGE 9U -#define LL_SYSCFG_LQFP176_INDUS_PACKAGE 10U -#endif /* STM32H7_DEV_ID == 0x450UL */ -/** - * @} - */ -#endif /* SYSCFG_PKGR_PKG */ - -/** @defgroup SYSTEM_LL_SYSCFG_BOR SYSCFG Brownout Reset Threshold Level - * @{ - */ -#define LL_SYSCFG_BOR_OFF_RESET_LEVEL 0x00000000U -#define LL_SYSCFG_BOR_LOW_RESET_LEVEL SYSCFG_UR2_BORH_0 -#define LL_SYSCFG_BOR_MEDIUM_RESET_LEVEL SYSCFG_UR2_BORH_1 -#define LL_SYSCFG_BOR_HIGH_RESET_LEVEL SYSCFG_UR2_BORH - -/** - * @} - */ - -/** @defgroup SYSTEM_LL_EC_TRACE DBGMCU TRACE Pin Assignment - * @{ - */ -#define LL_DBGMCU_TRACE_NONE 0x00000000U /*!< TRACE pins not assigned (default state) */ -#define LL_DBGMCU_TRACE_ASYNCH DBGMCU_CR_TRACE_IOEN /*!< TRACE pin assignment for Asynchronous Mode */ -#define LL_DBGMCU_TRACE_SYNCH_SIZE1 (DBGMCU_CR_TRACE_IOEN | DBGMCU_CR_TRACE_MODE_0) /*!< TRACE pin assignment for Synchronous Mode with a TRACEDATA size of 1 */ -#define LL_DBGMCU_TRACE_SYNCH_SIZE2 (DBGMCU_CR_TRACE_IOEN | DBGMCU_CR_TRACE_MODE_1) /*!< TRACE pin assignment for Synchronous Mode with a TRACEDATA size of 2 */ -#define LL_DBGMCU_TRACE_SYNCH_SIZE4 (DBGMCU_CR_TRACE_IOEN | DBGMCU_CR_TRACE_MODE) /*!< TRACE pin assignment for Synchronous Mode with a TRACEDATA size of 4 */ -/** - * @} - */ - -/** @defgroup SYSTEM_LL_EC_APB1_GRP1_STOP_IP DBGMCU APB1 GRP1 STOP IP - * @{ - */ -#define LL_DBGMCU_APB1_GRP1_TIM2_STOP DBGMCU_APB1LFZ1_DBG_TIM2 /*!< TIM2 counter stopped when core is halted */ -#define LL_DBGMCU_APB1_GRP1_TIM3_STOP DBGMCU_APB1LFZ1_DBG_TIM3 /*!< TIM3 counter stopped when core is halted */ -#define LL_DBGMCU_APB1_GRP1_TIM4_STOP DBGMCU_APB1LFZ1_DBG_TIM4 /*!< TIM4 counter stopped when core is halted */ -#define LL_DBGMCU_APB1_GRP1_TIM5_STOP DBGMCU_APB1LFZ1_DBG_TIM5 /*!< TIM5 counter stopped when core is halted */ -#define LL_DBGMCU_APB1_GRP1_TIM6_STOP DBGMCU_APB1LFZ1_DBG_TIM6 /*!< TIM6 counter stopped when core is halted */ -#define LL_DBGMCU_APB1_GRP1_TIM7_STOP DBGMCU_APB1LFZ1_DBG_TIM7 /*!< TIM7 counter stopped when core is halted */ -#define LL_DBGMCU_APB1_GRP1_TIM12_STOP DBGMCU_APB1LFZ1_DBG_TIM12 /*!< TIM12 counter stopped when core is halted */ -#define LL_DBGMCU_APB1_GRP1_TIM13_STOP DBGMCU_APB1LFZ1_DBG_TIM13 /*!< TIM13 counter stopped when core is halted */ -#define LL_DBGMCU_APB1_GRP1_TIM14_STOP DBGMCU_APB1LFZ1_DBG_TIM14 /*!< TIM14 counter stopped when core is halted */ -#define LL_DBGMCU_APB1_GRP1_LPTIM1_STOP DBGMCU_APB1LFZ1_DBG_LPTIM1 /*!< LPTIM1 counter stopped when core is halted */ -#define LL_DBGMCU_APB1_GRP1_I2C1_STOP DBGMCU_APB1LFZ1_DBG_I2C1 /*!< I2C1 SMBUS timeout mode stopped when Core is halted */ -#define LL_DBGMCU_APB1_GRP1_I2C2_STOP DBGMCU_APB1LFZ1_DBG_I2C2 /*!< I2C2 SMBUS timeout mode stopped when Core is halted */ -#define LL_DBGMCU_APB1_GRP1_I2C3_STOP DBGMCU_APB1LFZ1_DBG_I2C3 /*!< I2C3 SMBUS timeout mode stopped when Core is halted */ -#if defined(I2C5) -#define LL_DBGMCU_APB1_GRP1_I2C5_STOP DBGMCU_APB1LFZ1_DBG_I2C5 /*!< I2C5 SMBUS timeout mode stopped when Core is halted */ -#endif /*I2C5*/ -/** - * @} - */ - - -/** @defgroup SYSTEM_LL_EC_APB1_GRP2_STOP_IP DBGMCU APB1 GRP2 STOP IP - * @{ - */ -#if defined(DBGMCU_APB1HFZ1_DBG_FDCAN) -#define LL_DBGMCU_APB1_GRP2_FDCAN_STOP DBGMCU_APB1HFZ1_DBG_FDCAN /*!< FDCAN is frozen while the core is in debug mode */ -#endif /*DBGMCU_APB1HFZ1_DBG_FDCAN*/ -#if defined(TIM23) -#define LL_DBGMCU_APB1_GRP2_TIM23_STOP DBGMCU_APB1HFZ1_DBG_TIM23 /*!< TIM23 is frozen while the core is in debug mode */ -#endif /*TIM23*/ -#if defined(TIM24) -#define LL_DBGMCU_APB1_GRP2_TIM24_STOP DBGMCU_APB1HFZ1_DBG_TIM24 /*!< TIM24 is frozen while the core is in debug mode */ -#endif /*TIM24*/ -/** - * @} - */ - -/** @defgroup SYSTEM_LL_EC_APB2_GRP1_STOP_IP DBGMCU APB2 GRP1 STOP IP - * @{ - */ -#define LL_DBGMCU_APB2_GRP1_TIM1_STOP DBGMCU_APB2FZ1_DBG_TIM1 /*!< TIM1 counter stopped when core is halted */ -#define LL_DBGMCU_APB2_GRP1_TIM8_STOP DBGMCU_APB2FZ1_DBG_TIM8 /*!< TIM8 counter stopped when core is halted */ -#define LL_DBGMCU_APB2_GRP1_TIM15_STOP DBGMCU_APB2FZ1_DBG_TIM15 /*!< TIM15 counter stopped when core is halted */ -#define LL_DBGMCU_APB2_GRP1_TIM16_STOP DBGMCU_APB2FZ1_DBG_TIM16 /*!< TIM16 counter stopped when core is halted */ -#define LL_DBGMCU_APB2_GRP1_TIM17_STOP DBGMCU_APB2FZ1_DBG_TIM17 /*!< TIM17 counter stopped when core is halted */ -#if defined(HRTIM1) -#define LL_DBGMCU_APB2_GRP1_HRTIM_STOP DBGMCU_APB2FZ1_DBG_HRTIM /*!< HRTIM counter stopped when core is halted */ -#endif /*HRTIM1*/ -/** - * @} - */ - -/** @defgroup SYSTEM_LL_EC_APB3_GRP1_STOP_IP DBGMCU APB3 GRP1 STOP IP - * @{ - */ -#define LL_DBGMCU_APB3_GRP1_WWDG1_STOP DBGMCU_APB3FZ1_DBG_WWDG1 /*!< WWDG1 is frozen while the core is in debug mode */ -/** - * @} - */ - -/** @defgroup SYSTEM_LL_EC_APB4_GRP1_STOP_IP DBGMCU APB4 GRP1 STOP IP - * @{ - */ -#define LL_DBGMCU_APB4_GRP1_I2C4_STOP DBGMCU_APB4FZ1_DBG_I2C4 /*!< I2C4 is frozen while the core is in debug mode */ -#define LL_DBGMCU_APB4_GRP1_LPTIM2_STOP DBGMCU_APB4FZ1_DBG_LPTIM2 /*!< LPTIM2 is frozen while the core is in debug mode */ -#define LL_DBGMCU_APB4_GRP1_LPTIM3_STOP DBGMCU_APB4FZ1_DBG_LPTIM3 /*!< LPTIM3 is frozen while the core is in debug mode */ -#define LL_DBGMCU_APB4_GRP1_LPTIM4_STOP DBGMCU_APB4FZ1_DBG_LPTIM4 /*!< LPTIM4 is frozen while the core is in debug mode */ -#define LL_DBGMCU_APB4_GRP1_LPTIM5_STOP DBGMCU_APB4FZ1_DBG_LPTIM5 /*!< LPTIM5 is frozen while the core is in debug mode */ -#define LL_DBGMCU_APB4_GRP1_RTC_STOP DBGMCU_APB4FZ1_DBG_RTC /*!< RTC is frozen while the core is in debug mode */ -#define LL_DBGMCU_APB4_GRP1_IWDG1_STOP DBGMCU_APB4FZ1_DBG_IWDG1 /*!< IWDG1 is frozen while the core is in debug mode */ -/** - * @} - */ - -/** @defgroup SYSTEM_LL_EC_LATENCY FLASH LATENCY - * @{ - */ -#define LL_FLASH_LATENCY_0 FLASH_ACR_LATENCY_0WS /*!< FLASH Zero wait state */ -#define LL_FLASH_LATENCY_1 FLASH_ACR_LATENCY_1WS /*!< FLASH One wait state */ -#define LL_FLASH_LATENCY_2 FLASH_ACR_LATENCY_2WS /*!< FLASH Two wait states */ -#define LL_FLASH_LATENCY_3 FLASH_ACR_LATENCY_3WS /*!< FLASH Three wait states */ -#define LL_FLASH_LATENCY_4 FLASH_ACR_LATENCY_4WS /*!< FLASH Four wait states */ -#define LL_FLASH_LATENCY_5 FLASH_ACR_LATENCY_5WS /*!< FLASH five wait state */ -#define LL_FLASH_LATENCY_6 FLASH_ACR_LATENCY_6WS /*!< FLASH six wait state */ -#define LL_FLASH_LATENCY_7 FLASH_ACR_LATENCY_7WS /*!< FLASH seven wait states */ -/** - * @} - */ - -/** - * @} - */ - -/* Exported macro ------------------------------------------------------------*/ - -/* Exported functions --------------------------------------------------------*/ -/** @defgroup SYSTEM_LL_Exported_Functions SYSTEM Exported Functions - * @{ - */ - -/** @defgroup SYSTEM_LL_EF_SYSCFG SYSCFG - * @{ - */ - -#if defined(SYSCFG_PMCR_EPIS_SEL) -/** - * @brief Select Ethernet PHY interface - * @rmtoll PMCR EPIS_SEL LL_SYSCFG_SetPHYInterface - * @param Interface This parameter can be one of the following values: - * @arg @ref LL_SYSCFG_ETH_MII - * @arg @ref LL_SYSCFG_ETH_RMII - * @retval None - */ -__STATIC_INLINE void LL_SYSCFG_SetPHYInterface(uint32_t Interface) -{ - MODIFY_REG(SYSCFG->PMCR, SYSCFG_PMCR_EPIS_SEL, Interface); -} - -/** - * @brief Get Ethernet PHY interface - * @rmtoll PMCR EPIS_SEL LL_SYSCFG_GetPHYInterface - * @retval Returned value can be one of the following values: - * @arg @ref LL_SYSCFG_ETH_MII - * @arg @ref LL_SYSCFG_ETH_RMII - */ -__STATIC_INLINE uint32_t LL_SYSCFG_GetPHYInterface(void) -{ - return (uint32_t)(READ_BIT(SYSCFG->PMCR, SYSCFG_PMCR_EPIS_SEL)); -} - -#endif /* SYSCFG_PMCR_EPIS_SEL */ -/** - * @brief Open an Analog Switch - * @rmtoll PMCR PA0SO LL_SYSCFG_OpenAnalogSwitch - * @rmtoll PMCR PA1SO LL_SYSCFG_OpenAnalogSwitch - * @rmtoll PMCR PC2SO LL_SYSCFG_OpenAnalogSwitch - * @rmtoll PMCR PC3SO LL_SYSCFG_OpenAnalogSwitch - * @param AnalogSwitch This parameter can be one of the following values: - * @arg LL_SYSCFG_ANALOG_SWITCH_PA0 : PA0 analog switch - * @arg LL_SYSCFG_ANALOG_SWITCH_PA1: PA1 analog switch - * @arg LL_SYSCFG_ANALOG_SWITCH_PC2 : PC2 analog switch - * @arg LL_SYSCFG_ANALOG_SWITCH_PC3: PC3 analog switch - * @retval None - */ -__STATIC_INLINE void LL_SYSCFG_OpenAnalogSwitch(uint32_t AnalogSwitch) -{ - SET_BIT(SYSCFG->PMCR, AnalogSwitch); -} - -/** - * @brief Close an Analog Switch - * @rmtoll PMCR PA0SO LL_SYSCFG_CloseAnalogSwitch - * @rmtoll PMCR PA1SO LL_SYSCFG_CloseAnalogSwitch - * @rmtoll PMCR PC2SO LL_SYSCFG_CloseAnalogSwitch - * @rmtoll PMCR PC3SO LL_SYSCFG_CloseAnalogSwitch - * @param AnalogSwitch This parameter can be one of the following values: - * @arg LL_SYSCFG_ANALOG_SWITCH_PA0 : PA0 analog switch - * @arg LL_SYSCFG_ANALOG_SWITCH_PA1: PA1 analog switch - * @arg LL_SYSCFG_ANALOG_SWITCH_PC2 : PC2 analog switch - * @arg LL_SYSCFG_ANALOG_SWITCH_PC3: PC3 analog switch - * @retval None - */ -__STATIC_INLINE void LL_SYSCFG_CloseAnalogSwitch(uint32_t AnalogSwitch) -{ - CLEAR_BIT(SYSCFG->PMCR, AnalogSwitch); -} -#ifdef SYSCFG_PMCR_BOOSTEN -/** - * @brief Enable the Analog booster to reduce the total harmonic distortion - * of the analog switch when the supply voltage is lower than 2.7 V - * @rmtoll PMCR BOOSTEN LL_SYSCFG_EnableAnalogBooster - * @note Activating the booster allows to guaranty the analog switch AC performance - * when the supply voltage is below 2.7 V: in this case, the analog switch - * performance is the same on the full voltage range - * @retval None - */ -__STATIC_INLINE void LL_SYSCFG_EnableAnalogBooster(void) -{ - SET_BIT(SYSCFG->PMCR, SYSCFG_PMCR_BOOSTEN) ; -} - -/** - * @brief Disable the Analog booster - * @rmtoll PMCR BOOSTEN LL_SYSCFG_DisableAnalogBooster - * @note Activating the booster allows to guaranty the analog switch AC performance - * when the supply voltage is below 2.7 V: in this case, the analog switch - * performance is the same on the full voltage range - * @retval None - */ -__STATIC_INLINE void LL_SYSCFG_DisableAnalogBooster(void) -{ - CLEAR_BIT(SYSCFG->PMCR, SYSCFG_PMCR_BOOSTEN) ; -} -#endif /*SYSCFG_PMCR_BOOSTEN*/ -/** - * @brief Enable the I2C fast mode plus driving capability. - * @rmtoll SYSCFG_PMCR I2C_PBx_FMP LL_SYSCFG_EnableFastModePlus\n - * SYSCFG_PMCR I2Cx_FMP LL_SYSCFG_EnableFastModePlus - * @param ConfigFastModePlus This parameter can be a combination of the following values: - * @arg @ref LL_SYSCFG_I2C_FASTMODEPLUS_PB6 - * @arg @ref LL_SYSCFG_I2C_FASTMODEPLUS_PB7 - * @arg @ref LL_SYSCFG_I2C_FASTMODEPLUS_PB8 (*) - * @arg @ref LL_SYSCFG_I2C_FASTMODEPLUS_PB9 (*) - * @arg @ref LL_SYSCFG_I2C_FASTMODEPLUS_I2C1 - * @arg @ref LL_SYSCFG_I2C_FASTMODEPLUS_I2C2 (*) - * @arg @ref LL_SYSCFG_I2C_FASTMODEPLUS_I2C3 - * @arg @ref LL_SYSCFG_I2C_FASTMODEPLUS_I2C4 (*) - * @arg @ref LL_SYSCFG_I2C_FASTMODEPLUS_I2C5 (*) - * - * (*) value not defined in all devices - * @retval None - */ -__STATIC_INLINE void LL_SYSCFG_EnableFastModePlus(uint32_t ConfigFastModePlus) -{ - SET_BIT(SYSCFG->PMCR, ConfigFastModePlus); -} - -/** - * @brief Disable the I2C fast mode plus driving capability. - * @rmtoll SYSCFG_PMCR I2C_PBx_FMP LL_SYSCFG_DisableFastModePlus\n - * SYSCFG_PMCR I2Cx_FMP LL_SYSCFG_DisableFastModePlus - * @param ConfigFastModePlus This parameter can be a combination of the following values: - * @arg @ref LL_SYSCFG_I2C_FASTMODEPLUS_PB6 - * @arg @ref LL_SYSCFG_I2C_FASTMODEPLUS_PB7 - * @arg @ref LL_SYSCFG_I2C_FASTMODEPLUS_PB8 (*) - * @arg @ref LL_SYSCFG_I2C_FASTMODEPLUS_PB9 (*) - * @arg @ref LL_SYSCFG_I2C_FASTMODEPLUS_I2C1 - * @arg @ref LL_SYSCFG_I2C_FASTMODEPLUS_I2C2 (*) - * @arg @ref LL_SYSCFG_I2C_FASTMODEPLUS_I2C3 - * @arg @ref LL_SYSCFG_I2C_FASTMODEPLUS_I2C4 - * @arg @ref LL_SYSCFG_I2C_FASTMODEPLUS_I2C5 (*) - * - * (*) value not defined in all devices - * @retval None - */ -__STATIC_INLINE void LL_SYSCFG_DisableFastModePlus(uint32_t ConfigFastModePlus) -{ - CLEAR_BIT(SYSCFG->PMCR, ConfigFastModePlus); -} - -/** - * @brief Configure source input for the EXTI external interrupt. - * @rmtoll SYSCFG_EXTICR1 EXTIx LL_SYSCFG_SetEXTISource\n - * SYSCFG_EXTICR2 EXTIx LL_SYSCFG_SetEXTISource\n - * SYSCFG_EXTICR3 EXTIx LL_SYSCFG_SetEXTISource\n - * SYSCFG_EXTICR4 EXTIx LL_SYSCFG_SetEXTISource - * @param Port This parameter can be one of the following values: - * @arg @ref LL_SYSCFG_EXTI_PORTA - * @arg @ref LL_SYSCFG_EXTI_PORTB - * @arg @ref LL_SYSCFG_EXTI_PORTC - * @arg @ref LL_SYSCFG_EXTI_PORTD - * @arg @ref LL_SYSCFG_EXTI_PORTE - * @arg @ref LL_SYSCFG_EXTI_PORTF - * @arg @ref LL_SYSCFG_EXTI_PORTG - * @arg @ref LL_SYSCFG_EXTI_PORTH - * @arg @ref LL_SYSCFG_EXTI_PORTI (*) - * @arg @ref LL_SYSCFG_EXTI_PORTJ - * @arg @ref LL_SYSCFG_EXTI_PORTK - * - * (*) value not defined in all devices - * @param Line This parameter can be one of the following values: - * @arg @ref LL_SYSCFG_EXTI_LINE0 - * @arg @ref LL_SYSCFG_EXTI_LINE1 - * @arg @ref LL_SYSCFG_EXTI_LINE2 - * @arg @ref LL_SYSCFG_EXTI_LINE3 - * @arg @ref LL_SYSCFG_EXTI_LINE4 - * @arg @ref LL_SYSCFG_EXTI_LINE5 - * @arg @ref LL_SYSCFG_EXTI_LINE6 - * @arg @ref LL_SYSCFG_EXTI_LINE7 - * @arg @ref LL_SYSCFG_EXTI_LINE8 - * @arg @ref LL_SYSCFG_EXTI_LINE9 - * @arg @ref LL_SYSCFG_EXTI_LINE10 - * @arg @ref LL_SYSCFG_EXTI_LINE11 - * @arg @ref LL_SYSCFG_EXTI_LINE12 - * @arg @ref LL_SYSCFG_EXTI_LINE13 - * @arg @ref LL_SYSCFG_EXTI_LINE14 - * @arg @ref LL_SYSCFG_EXTI_LINE15 - * @retval None - */ -__STATIC_INLINE void LL_SYSCFG_SetEXTISource(uint32_t Port, uint32_t Line) -{ - MODIFY_REG(SYSCFG->EXTICR[Line & 0x3U], (Line >> 16U), Port << ((POSITION_VAL(Line >> 16U)) & 31U)); -} - -/** - * @brief Get the configured defined for specific EXTI Line - * @rmtoll SYSCFG_EXTICR1 EXTIx LL_SYSCFG_GetEXTISource\n - * SYSCFG_EXTICR2 EXTIx LL_SYSCFG_GetEXTISource\n - * SYSCFG_EXTICR3 EXTIx LL_SYSCFG_GetEXTISource\n - * SYSCFG_EXTICR4 EXTIx LL_SYSCFG_GetEXTISource - * @param Line This parameter can be one of the following values: - * @arg @ref LL_SYSCFG_EXTI_LINE0 - * @arg @ref LL_SYSCFG_EXTI_LINE1 - * @arg @ref LL_SYSCFG_EXTI_LINE2 - * @arg @ref LL_SYSCFG_EXTI_LINE3 - * @arg @ref LL_SYSCFG_EXTI_LINE4 - * @arg @ref LL_SYSCFG_EXTI_LINE5 - * @arg @ref LL_SYSCFG_EXTI_LINE6 - * @arg @ref LL_SYSCFG_EXTI_LINE7 - * @arg @ref LL_SYSCFG_EXTI_LINE8 - * @arg @ref LL_SYSCFG_EXTI_LINE9 - * @arg @ref LL_SYSCFG_EXTI_LINE10 - * @arg @ref LL_SYSCFG_EXTI_LINE11 - * @arg @ref LL_SYSCFG_EXTI_LINE12 - * @arg @ref LL_SYSCFG_EXTI_LINE13 - * @arg @ref LL_SYSCFG_EXTI_LINE14 - * @arg @ref LL_SYSCFG_EXTI_LINE15 - * @retval Returned value can be one of the following values: - * @arg @ref LL_SYSCFG_EXTI_PORTA - * @arg @ref LL_SYSCFG_EXTI_PORTB - * @arg @ref LL_SYSCFG_EXTI_PORTC - * @arg @ref LL_SYSCFG_EXTI_PORTD - * @arg @ref LL_SYSCFG_EXTI_PORTE - * @arg @ref LL_SYSCFG_EXTI_PORTF - * @arg @ref LL_SYSCFG_EXTI_PORTG - * @arg @ref LL_SYSCFG_EXTI_PORTH - * @arg @ref LL_SYSCFG_EXTI_PORTI (*) - * @arg @ref LL_SYSCFG_EXTI_PORTJ - * @arg @ref LL_SYSCFG_EXTI_PORTK - * (*) value not defined in all devices - */ -__STATIC_INLINE uint32_t LL_SYSCFG_GetEXTISource(uint32_t Line) -{ - return (uint32_t)(READ_BIT(SYSCFG->EXTICR[Line & 0x3U], (Line >> 16U)) >> (POSITION_VAL(Line >> 16U) & 31U)); -} - -/** - * @brief Set connections to TIM1/8/15/16/17 and HRTIM Break inputs - * @note this feature is available on STM32H7 rev.B and above - * @rmtoll SYSCFG_CFGR AXISRAML LL_SYSCFG_SetTIMBreakInputs\n - * SYSCFG_CFGR ITCML LL_SYSCFG_SetTIMBreakInputs\n - * SYSCFG_CFGR DTCML LL_SYSCFG_SetTIMBreakInputs\n - * SYSCFG_CFGR SRAM1L LL_SYSCFG_SetTIMBreakInputs\n - * SYSCFG_CFGR SRAM2L LL_SYSCFG_SetTIMBreakInputs\n - * SYSCFG_CFGR SRAM3L LL_SYSCFG_SetTIMBreakInputs\n - * SYSCFG_CFGR SRAM4L LL_SYSCFG_SetTIMBreakInputs\n - * SYSCFG_CFGR BKRAML LL_SYSCFG_SetTIMBreakInputs\n - * SYSCFG_CFGR CM7L LL_SYSCFG_SetTIMBreakInputs\n - * SYSCFG_CFGR FLASHL LL_SYSCFG_SetTIMBreakInputs\n - * SYSCFG_CFGR PVDL LL_SYSCFG_SetTIMBreakInputs\n - * SYSCFG_CFGR_CM4L LL_SYSCFG_SetTIMBreakInputs - * @param Break This parameter can be a combination of the following values: - * @arg @ref LL_SYSCFG_TIMBREAK_AXISRAM_DBL_ECC - * @arg @ref LL_SYSCFG_TIMBREAK_ITCM_DBL_ECC - * @arg @ref LL_SYSCFG_TIMBREAK_DTCM_DBL_ECC - * @arg @ref LL_SYSCFG_TIMBREAK_SRAM1_DBL_ECC - * @arg @ref LL_SYSCFG_TIMBREAK_SRAM2_DBL_ECC - * @arg @ref LL_SYSCFG_TIMBREAK_SRAM3_DBL_ECC (*) - * @arg @ref LL_SYSCFG_TIMBREAK_SRAM4_DBL_ECC - * @arg @ref LL_SYSCFG_TIMBREAK_BKRAM_DBL_ECC - * @arg @ref LL_SYSCFG_TIMBREAK_CM7_LOCKUP - * @arg @ref LL_SYSCFG_TIMBREAK_FLASH_DBL_ECC - * @arg @ref LL_SYSCFG_TIMBREAK_PVD - * @arg @ref LL_SYSCFG_TIMBREAK_CM4_LOCKUP (available for dual core lines only) - * @retval None - * (*) value not defined in all devices - */ -__STATIC_INLINE void LL_SYSCFG_SetTIMBreakInputs(uint32_t Break) -{ -#if defined(DUAL_CORE) - MODIFY_REG(SYSCFG->CFGR, SYSCFG_CFGR_AXISRAML | SYSCFG_CFGR_ITCML | SYSCFG_CFGR_DTCML | SYSCFG_CFGR_SRAM1L | SYSCFG_CFGR_SRAM2L | \ - SYSCFG_CFGR_SRAM3L | SYSCFG_CFGR_SRAM4L | SYSCFG_CFGR_BKRAML | SYSCFG_CFGR_CM7L | SYSCFG_CFGR_FLASHL | \ - SYSCFG_CFGR_PVDL | SYSCFG_CFGR_CM4L, Break); -#elif defined(SYSCFG_CFGR_AXISRAML) && defined(SYSCFG_CFGR_SRAM3L) - MODIFY_REG(SYSCFG->CFGR, SYSCFG_CFGR_AXISRAML | SYSCFG_CFGR_ITCML | SYSCFG_CFGR_DTCML | SYSCFG_CFGR_SRAM1L | SYSCFG_CFGR_SRAM2L | \ - SYSCFG_CFGR_SRAM3L | SYSCFG_CFGR_SRAM4L | SYSCFG_CFGR_BKRAML | SYSCFG_CFGR_CM7L | SYSCFG_CFGR_FLASHL | \ - SYSCFG_CFGR_PVDL, Break); -#elif defined(SYSCFG_CFGR_AXISRAML) - MODIFY_REG(SYSCFG->CFGR, SYSCFG_CFGR_AXISRAML | SYSCFG_CFGR_ITCML | SYSCFG_CFGR_DTCML | SYSCFG_CFGR_SRAM1L | SYSCFG_CFGR_SRAM2L | \ - SYSCFG_CFGR_SRAM4L | SYSCFG_CFGR_BKRAML | SYSCFG_CFGR_CM7L | SYSCFG_CFGR_FLASHL | SYSCFG_CFGR_PVDL,\ - Break); -#else - MODIFY_REG(SYSCFG->CFGR, SYSCFG_CFGR_ITCML | SYSCFG_CFGR_DTCML |\ - SYSCFG_CFGR_CM7L | SYSCFG_CFGR_FLASHL | \ - SYSCFG_CFGR_PVDL, Break); -#endif /* DUAL_CORE */ -} - -/** - * @brief Get connections to TIM1/8/15/16/17 and HRTIM Break inputs - * @note this feature is available on STM32H7 rev.B and above - * @rmtoll SYSCFG_CFGR AXISRAML LL_SYSCFG_GetTIMBreakInputs\n - * SYSCFG_CFGR ITCML LL_SYSCFG_GetTIMBreakInputs\n - * SYSCFG_CFGR DTCML LL_SYSCFG_GetTIMBreakInputs\n - * SYSCFG_CFGR SRAM1L LL_SYSCFG_GetTIMBreakInputs\n - * SYSCFG_CFGR SRAM2L LL_SYSCFG_GetTIMBreakInputs\n - * SYSCFG_CFGR SRAM3L LL_SYSCFG_GetTIMBreakInputs\n - * SYSCFG_CFGR SRAM4L LL_SYSCFG_GetTIMBreakInputs\n - * SYSCFG_CFGR BKRAML LL_SYSCFG_GetTIMBreakInputs\n - * SYSCFG_CFGR CM7L LL_SYSCFG_GetTIMBreakInputs\n - * SYSCFG_CFGR FLASHL LL_SYSCFG_GetTIMBreakInputs\n - * SYSCFG_CFGR PVDL LL_SYSCFG_GetTIMBreakInputs\n - * SYSCFG_CFGR_CM4L LL_SYSCFG_GetTIMBreakInputs - * @retval Returned value can be can be a combination of the following values: - * @arg @ref LL_SYSCFG_TIMBREAK_AXISRAM_DBL_ECC - * @arg @ref LL_SYSCFG_TIMBREAK_ITCM_DBL_ECC - * @arg @ref LL_SYSCFG_TIMBREAK_DTCM_DBL_ECC - * @arg @ref LL_SYSCFG_TIMBREAK_SRAM1_DBL_ECC - * @arg @ref LL_SYSCFG_TIMBREAK_SRAM2_DBL_ECC - * @arg @ref LL_SYSCFG_TIMBREAK_SRAM3_DBL_ECC (*) - * @arg @ref LL_SYSCFG_TIMBREAK_SRAM4_DBL_ECC - * @arg @ref LL_SYSCFG_TIMBREAK_BKRAM_DBL_ECC - * @arg @ref LL_SYSCFG_TIMBREAK_CM7_LOCKUP - * @arg @ref LL_SYSCFG_TIMBREAK_FLASH_DBL_ECC - * @arg @ref LL_SYSCFG_TIMBREAK_PVD - * @arg @ref LL_SYSCFG_TIMBREAK_CM4_LOCKUP (available for dual core lines only) - * (*) value not defined in all devices - */ -__STATIC_INLINE uint32_t LL_SYSCFG_GetTIMBreakInputs(void) -{ -#if defined(DUAL_CORE) - return (uint32_t)(READ_BIT(SYSCFG->CFGR, SYSCFG_CFGR_AXISRAML | SYSCFG_CFGR_ITCML | SYSCFG_CFGR_DTCML | \ - SYSCFG_CFGR_SRAM1L | SYSCFG_CFGR_SRAM2L | SYSCFG_CFGR_SRAM3L | \ - SYSCFG_CFGR_SRAM4L | SYSCFG_CFGR_BKRAML | SYSCFG_CFGR_CM7L | \ - SYSCFG_CFGR_FLASHL | SYSCFG_CFGR_PVDL | SYSCFG_CFGR_CM4L)); -#elif defined (SYSCFG_CFGR_AXISRAML) && defined(SYSCFG_CFGR_SRAM3L) - return (uint32_t)(READ_BIT(SYSCFG->CFGR, SYSCFG_CFGR_AXISRAML | SYSCFG_CFGR_ITCML | SYSCFG_CFGR_DTCML | \ - SYSCFG_CFGR_SRAM1L | SYSCFG_CFGR_SRAM2L | SYSCFG_CFGR_SRAM3L | \ - SYSCFG_CFGR_SRAM4L | SYSCFG_CFGR_BKRAML | SYSCFG_CFGR_CM7L | \ - SYSCFG_CFGR_FLASHL | SYSCFG_CFGR_PVDL )); -#elif defined (SYSCFG_CFGR_AXISRAML) - return (uint32_t)(READ_BIT(SYSCFG->CFGR, SYSCFG_CFGR_AXISRAML | SYSCFG_CFGR_ITCML | SYSCFG_CFGR_DTCML | \ - SYSCFG_CFGR_SRAM1L | SYSCFG_CFGR_SRAM2L | \ - SYSCFG_CFGR_SRAM4L | SYSCFG_CFGR_BKRAML | SYSCFG_CFGR_CM7L | \ - SYSCFG_CFGR_FLASHL | SYSCFG_CFGR_PVDL )); -#else - return (uint32_t)(READ_BIT(SYSCFG->CFGR, SYSCFG_CFGR_ITCML | SYSCFG_CFGR_DTCML | SYSCFG_CFGR_CM7L | \ - SYSCFG_CFGR_FLASHL | SYSCFG_CFGR_PVDL )); -#endif /* DUAL_CORE */ -} - -/** - * @brief Enable the Compensation Cell - * @rmtoll CCCSR EN LL_SYSCFG_EnableCompensationCell - * @note The I/O compensation cell can be used only when the device supply - * voltage ranges from 1.62 to 2.0 V and from 2.7 to 3.6 V. - * @retval None - */ -__STATIC_INLINE void LL_SYSCFG_EnableCompensationCell(void) -{ - SET_BIT(SYSCFG->CCCSR, SYSCFG_CCCSR_EN); -} - -/** - * @brief Disable the Compensation Cell - * @rmtoll CCCSR EN LL_SYSCFG_DisableCompensationCell - * @note The I/O compensation cell can be used only when the device supply - * voltage ranges from 1.62 to 2.0 V and from 2.7 to 3.6 V. - * @retval None - */ -__STATIC_INLINE void LL_SYSCFG_DisableCompensationCell(void) -{ - CLEAR_BIT(SYSCFG->CCCSR, SYSCFG_CCCSR_EN); -} - -/** - * @brief Check if the Compensation Cell is enabled - * @rmtoll CCCSR EN LL_SYSCFG_IsEnabledCompensationCell - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsEnabledCompensationCell(void) -{ - return ((READ_BIT(SYSCFG->CCCSR, SYSCFG_CCCSR_EN) == SYSCFG_CCCSR_EN) ? 1UL : 0UL); -} - -/** - * @brief Get Compensation Cell ready Flag - * @rmtoll CCCSR READY LL_SYSCFG_IsActiveFlag_CMPCR - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsActiveFlag_CMPCR(void) -{ - return ((READ_BIT(SYSCFG->CCCSR, SYSCFG_CCCSR_READY) == (SYSCFG_CCCSR_READY)) ? 1UL : 0UL); -} - -/** - * @brief Enable the I/O speed optimization when the product voltage is low. - * @rmtoll CCCSR HSLV LL_SYSCFG_EnableIOSpeedOptimize - * @note This bit is active only if IO_HSLV user option bit is set. It must be used only if the - * product supply voltage is below 2.7 V. Setting this bit when VDD is higher than 2.7 V - * might be destructive. - * @retval None - */ -__STATIC_INLINE void LL_SYSCFG_EnableIOSpeedOptimization(void) -{ -#if defined(SYSCFG_CCCSR_HSLV) - SET_BIT(SYSCFG->CCCSR, SYSCFG_CCCSR_HSLV); -#else - SET_BIT(SYSCFG->CCCSR, SYSCFG_CCCSR_HSLV0); -#endif /* SYSCFG_CCCSR_HSLV */ -} - -#if defined(SYSCFG_CCCSR_HSLV1) -/** - * @brief Enable the I/O speed optimization when the product voltage is low. - * @rmtoll CCCSR HSLV1 LL_SYSCFG_EnableIOSpeedOptimize - * @note This bit is active only if IO_HSLV user option bit is set. It must be used only if the - * product supply voltage is below 2.7 V. Setting this bit when VDD is higher than 2.7 V - * might be destructive. - * @retval None - */ -__STATIC_INLINE void LL_SYSCFG_EnableIOSpeedOptimization1(void) -{ - SET_BIT(SYSCFG->CCCSR, SYSCFG_CCCSR_HSLV1); -} - -/** - * @brief Enable the I/O speed optimization when the product voltage is low. - * @rmtoll CCCSR HSLV2 LL_SYSCFG_EnableIOSpeedOptimize - * @note This bit is active only if IO_HSLV user option bit is set. It must be used only if the - * product supply voltage is below 2.7 V. Setting this bit when VDD is higher than 2.7 V - * might be destructive. - * @retval None - */ -__STATIC_INLINE void LL_SYSCFG_EnableIOSpeedOptimization2(void) -{ - SET_BIT(SYSCFG->CCCSR, SYSCFG_CCCSR_HSLV2); -} - -/** - * @brief Enable the I/O speed optimization when the product voltage is low. - * @rmtoll CCCSR HSLV3 LL_SYSCFG_EnableIOSpeedOptimize - * @note This bit is active only if IO_HSLV user option bit is set. It must be used only if the - * product supply voltage is below 2.7 V. Setting this bit when VDD is higher than 2.7 V - * might be destructive. - * @retval None - */ -__STATIC_INLINE void LL_SYSCFG_EnableIOSpeedOptimization3(void) -{ - SET_BIT(SYSCFG->CCCSR, SYSCFG_CCCSR_HSLV3); -} -#endif /*SYSCFG_CCCSR_HSLV1*/ - - -/** - * @brief To Disable optimize the I/O speed when the product voltage is low. - * @rmtoll CCCSR HSLV LL_SYSCFG_DisableIOSpeedOptimize - * @note This bit is active only if IO_HSLV user option bit is set. It must be used only if the - * product supply voltage is below 2.7 V. Setting this bit when VDD is higher than 2.7 V - * might be destructive. - * @retval None - */ -__STATIC_INLINE void LL_SYSCFG_DisableIOSpeedOptimization(void) -{ -#if defined(SYSCFG_CCCSR_HSLV) - CLEAR_BIT(SYSCFG->CCCSR, SYSCFG_CCCSR_HSLV); -#else - CLEAR_BIT(SYSCFG->CCCSR, SYSCFG_CCCSR_HSLV0); -#endif /* SYSCFG_CCCSR_HSLV */ -} - -#if defined(SYSCFG_CCCSR_HSLV1) -/** - * @brief To Disable optimize the I/O speed when the product voltage is low. - * @rmtoll CCCSR HSLV1 LL_SYSCFG_DisableIOSpeedOptimize - * @note This bit is active only if IO_HSLV user option bit is set. It must be used only if the - * product supply voltage is below 2.7 V. Setting this bit when VDD is higher than 2.7 V - * might be destructive. - * @retval None - */ -__STATIC_INLINE void LL_SYSCFG_DisableIOSpeedOptimization1(void) -{ - CLEAR_BIT(SYSCFG->CCCSR, SYSCFG_CCCSR_HSLV1); -} - -/** - * @brief To Disable optimize the I/O speed when the product voltage is low. - * @rmtoll CCCSR HSLV2 LL_SYSCFG_DisableIOSpeedOptimize - * @note This bit is active only if IO_HSLV user option bit is set. It must be used only if the - * product supply voltage is below 2.7 V. Setting this bit when VDD is higher than 2.7 V - * might be destructive. - * @retval None - */ -__STATIC_INLINE void LL_SYSCFG_DisableIOSpeedOptimization2(void) -{ - CLEAR_BIT(SYSCFG->CCCSR, SYSCFG_CCCSR_HSLV2); -} - -/** - * @brief To Disable optimize the I/O speed when the product voltage is low. - * @rmtoll CCCSR HSLV3 LL_SYSCFG_DisableIOSpeedOptimize - * @note This bit is active only if IO_HSLV user option bit is set. It must be used only if the - * product supply voltage is below 2.7 V. Setting this bit when VDD is higher than 2.7 V - * might be destructive. - * @retval None - */ -__STATIC_INLINE void LL_SYSCFG_DisableIOSpeedOptimization3(void) -{ - CLEAR_BIT(SYSCFG->CCCSR, SYSCFG_CCCSR_HSLV3); -} -#endif /*SYSCFG_CCCSR_HSLV1*/ - -/** - * @brief Check if the I/O speed optimization is enabled - * @rmtoll CCCSR HSLV LL_SYSCFG_IsEnabledIOSpeedOptimization - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsEnabledIOSpeedOptimization(void) -{ -#if defined(SYSCFG_CCCSR_HSLV) - return ((READ_BIT(SYSCFG->CCCSR, SYSCFG_CCCSR_HSLV) == SYSCFG_CCCSR_HSLV) ? 1UL : 0UL); -#else - return ((READ_BIT(SYSCFG->CCCSR, SYSCFG_CCCSR_HSLV0) == SYSCFG_CCCSR_HSLV0) ? 1UL : 0UL); -#endif /*SYSCFG_CCCSR_HSLV*/ -} - -#if defined(SYSCFG_CCCSR_HSLV1) -/** - * @brief Check if the I/O speed optimization is enabled - * @rmtoll CCCSR HSLV1 LL_SYSCFG_IsEnabledIOSpeedOptimization - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsEnabledIOSpeedOptimization1(void) -{ - return ((READ_BIT(SYSCFG->CCCSR, SYSCFG_CCCSR_HSLV1) == SYSCFG_CCCSR_HSLV1) ? 1UL : 0UL); -} - -/** - * @brief Check if the I/O speed optimization is enabled - * @rmtoll CCCSR HSLV2 LL_SYSCFG_IsEnabledIOSpeedOptimization - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsEnabledIOSpeedOptimization2(void) -{ - return ((READ_BIT(SYSCFG->CCCSR, SYSCFG_CCCSR_HSLV2) == SYSCFG_CCCSR_HSLV2) ? 1UL : 0UL); -} - -/** - * @brief Check if the I/O speed optimization is enabled - * @rmtoll CCCSR HSLV3 LL_SYSCFG_IsEnabledIOSpeedOptimization - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsEnabledIOSpeedOptimization3(void) -{ - return ((READ_BIT(SYSCFG->CCCSR, SYSCFG_CCCSR_HSLV3) == SYSCFG_CCCSR_HSLV3) ? 1UL : 0UL); -} -#endif /*SYSCFG_CCCSR_HSLV1*/ - -/** - * @brief Set the code selection for the I/O Compensation cell - * @rmtoll CCCSR CS LL_SYSCFG_SetCellCompensationCode - * @param CompCode: Selects the code to be applied for the I/O compensation cell - * This parameter can be one of the following values: - * @arg LL_SYSCFG_CELL_CODE : Select Code from the cell (available in the SYSCFG_CCVR) - * @arg LL_SYSCFG_REGISTER_CODE: Select Code from the SYSCFG compensation cell code register (SYSCFG_CCCR) - * @retval None - */ -__STATIC_INLINE void LL_SYSCFG_SetCellCompensationCode(uint32_t CompCode) -{ - SET_BIT(SYSCFG->CCCSR, CompCode); -} - -/** - * @brief Get the code selected for the I/O Compensation cell - * @rmtoll CCCSR CS LL_SYSCFG_GetCellCompensationCode - * @retval Returned value can be one of the following values: - * @arg LL_SYSCFG_CELL_CODE : Selected Code is from the cell (available in the SYSCFG_CCVR) - * @arg LL_SYSCFG_REGISTER_CODE: Selected Code is from the SYSCFG compensation cell code register (SYSCFG_CCCR) - */ -__STATIC_INLINE uint32_t LL_SYSCFG_GetCellCompensationCode(void) -{ - return (uint32_t)(READ_BIT(SYSCFG->CCCSR, SYSCFG_CCCSR_CS)); -} - -#ifdef SYSCFG_CCCSR_CS_MMC - -/** - * @brief Get the code selected for the I/O Compensation cell on the VDDMMC power rail - * @rmtoll CCCSR CS LL_SYSCFG_GetCellCompensationCode - * @retval Returned value can be one of the following values: - * @arg LL_SYSCFG_CELL_CODE : Selected Code is from the cell (available in the SYSCFG_CCVR) - * @arg LL_SYSCFG_REGISTER_CODE: Selected Code is from the SYSCFG compensation cell code register (SYSCFG_CCCR) - */ -__STATIC_INLINE uint32_t LL_SYSCFG_MMCGetCellCompensationCode(void) -{ - return (uint32_t)(READ_BIT(SYSCFG->CCCSR, SYSCFG_CCCSR_CS_MMC)); -} -#endif /*SYSCFG_CCCSR_CS_MMC*/ - -/** - * @brief Get I/O compensation cell value for PMOS transistors - * @rmtoll CCVR PCV LL_SYSCFG_GetPMOSCompensationValue - * @retval Returned value is the I/O compensation cell value for PMOS transistors - */ -__STATIC_INLINE uint32_t LL_SYSCFG_GetPMOSCompensationValue(void) -{ - return (uint32_t)(READ_BIT(SYSCFG->CCVR, SYSCFG_CCVR_PCV)); -} - -/** - * @brief Get I/O compensation cell value for NMOS transistors - * @rmtoll CCVR NCV LL_SYSCFG_GetNMOSCompensationValue - * @retval Returned value is the I/O compensation cell value for NMOS transistors - */ -__STATIC_INLINE uint32_t LL_SYSCFG_GetNMOSCompensationValue(void) -{ - return (uint32_t)(READ_BIT(SYSCFG->CCVR, SYSCFG_CCVR_NCV)); -} - -/** - * @brief Set I/O compensation cell code for PMOS transistors - * @rmtoll CCCR PCC LL_SYSCFG_SetPMOSCompensationCode - * @param PMOSCode PMOS compensation code - * This code is applied to the I/O compensation cell when the CS bit of the - * SYSCFG_CMPCR is set - * @retval None - */ -__STATIC_INLINE void LL_SYSCFG_SetPMOSCompensationCode(uint32_t PMOSCode) -{ - MODIFY_REG(SYSCFG->CCCR, SYSCFG_CCCR_PCC, PMOSCode); -} - -/** - * @brief Get I/O compensation cell code for PMOS transistors - * @rmtoll CCCR PCC LL_SYSCFG_GetPMOSCompensationCode - * @retval Returned value is the I/O compensation cell code for PMOS transistors - */ -__STATIC_INLINE uint32_t LL_SYSCFG_GetPMOSCompensationCode(void) -{ - return (uint32_t)(READ_BIT(SYSCFG->CCCR, SYSCFG_CCCR_PCC)); -} - -#ifdef SYSCFG_CCCR_PCC_MMC - -/** - * @brief Set I/O compensation cell code for PMOS transistors corresponding to the VDDMMC power rail - * @rmtoll CCCR PCC LL_SYSCFG_SetPMOSCompensationCode - * @param PMOSCode PMOS compensation code - * This code is applied to the I/O compensation cell when the CS bit of the - * SYSCFG_CMPCR is set - * @retval None - */ -__STATIC_INLINE void LL_SYSCFG_MMCSetPMOSCompensationCode(uint32_t PMOSCode) -{ - MODIFY_REG(SYSCFG->CCCR, SYSCFG_CCCR_PCC_MMC, PMOSCode); -} - -/** - * @brief Get I/O compensation cell code for PMOS transistors corresponding to the VDDMMC power rail - * @rmtoll CCCR PCC LL_SYSCFG_GetPMOSCompensationCode - * @retval Returned value is the I/O compensation cell code for PMOS transistors - */ -__STATIC_INLINE uint32_t LL_SYSCFG_MMCGetPMOSCompensationCode(void) -{ - return (uint32_t)(READ_BIT(SYSCFG->CCCR, SYSCFG_CCCR_PCC_MMC)); -} -#endif /* SYSCFG_CCCR_PCC_MMC */ - -/** - * @brief Set I/O compensation cell code for NMOS transistors - * @rmtoll CCCR NCC LL_SYSCFG_SetNMOSCompensationCode - * @param NMOSCode NMOS compensation code - * This code is applied to the I/O compensation cell when the CS bit of the - * SYSCFG_CMPCR is set - * @retval None - */ -__STATIC_INLINE void LL_SYSCFG_SetNMOSCompensationCode(uint32_t NMOSCode) -{ - MODIFY_REG(SYSCFG->CCCR, SYSCFG_CCCR_NCC, NMOSCode); -} - -/** - * @brief Get I/O compensation cell code for NMOS transistors - * @rmtoll CCCR NCC LL_SYSCFG_GetNMOSCompensationCode - * @retval Returned value is the I/O compensation cell code for NMOS transistors - */ -__STATIC_INLINE uint32_t LL_SYSCFG_GetNMOSCompensationCode(void) -{ - return (uint32_t)(READ_BIT(SYSCFG->CCCR, SYSCFG_CCCR_NCC)); -} - -#ifdef SYSCFG_CCCR_NCC_MMC - -/** - * @brief Set I/O compensation cell code for NMOS transistors on the VDDMMC power rail. - * @rmtoll CCCR NCC LL_SYSCFG_SetNMOSCompensationCode - * @param NMOSCode: NMOS compensation code - * This code is applied to the I/O compensation cell when the CS bit of the - * SYSCFG_CMPCR is set - * @retval None - */ -__STATIC_INLINE void LL_SYSCFG_VDMMCSetNMOSCompensationCode(uint32_t NMOSCode) -{ - MODIFY_REG(SYSCFG->CCCR, SYSCFG_CCCR_NCC_MMC, NMOSCode); -} - -/** - * @brief Get I/O compensation cell code for NMOS transistors on the VDDMMC power rail. - * @rmtoll CCCR NCC LL_SYSCFG_GetNMOSCompensationCode - * @retval Returned value is the I/O compensation cell code for NMOS transistors - */ -__STATIC_INLINE uint32_t LL_SYSCFG_VDMMCGetNMOSCompensationCode(void) -{ - return (uint32_t)(READ_BIT(SYSCFG->CCCR, SYSCFG_CCCR_NCC_MMC)); -} -#endif /*SYSCFG_CCCR_NCC_MMC*/ - -#ifdef SYSCFG_PKGR_PKG -/** - * @brief Get the device package - * @rmtoll PKGR PKG LL_SYSCFG_GetPackage - * @retval Returned value can be one of the following values: - * @arg @ref LL_SYSCFG_LQFP100_PACKAGE (*) - * @arg @ref LL_SYSCFG_TQFP144_PACKAGE (*) - * @arg @ref LL_SYSCFG_TQFP176_UFBGA176_PACKAGE (*) - * @arg @ref LL_SYSCFG_LQFP208_TFBGA240_PACKAGE (*) - * @arg @ref LL_SYSCFG_VFQFPN68_INDUS_PACKAGE (*) - * @arg @ref LL_SYSCFG_TFBGA100_LQFP100_PACKAGE (*) - * @arg @ref LL_SYSCFG_LQFP100_INDUS_PACKAGE (**) - * @arg @ref LL_SYSCFG_TFBGA100_INDUS_PACKAGE (**) - * @arg @ref LL_SYSCFG_WLCSP115_INDUS_PACKAGE (**) - * @arg @ref LL_SYSCFG_LQFP144_PACKAGE (**) - * @arg @ref LL_SYSCFG_UFBGA144_PACKAGE (**) - * @arg @ref LL_SYSCFG_LQFP144_INDUS_PACKAGE (**) - * @arg @ref LL_SYSCFG_UFBGA169_INDUS_PACKAGE (**) - * @arg @ref LL_SYSCFG_UFBGA176PLUS25_INDUS_PACKAGE (**) - * @arg @ref LL_SYSCFG_LQFP176_INDUS_PACKAGE (**) - * - * (*) : For stm32h74xxx and stm32h75xxx family lines. - * (**): For stm32h72xxx and stm32h73xxx family lines. - */ -__STATIC_INLINE uint32_t LL_SYSCFG_GetPackage(void) -{ - return (uint32_t)(READ_BIT(SYSCFG->PKGR, SYSCFG_PKGR_PKG)); -} -#endif /*SYSCFG_PKGR_PKG*/ - -#ifdef SYSCFG_UR0_RDP -/** - * @brief Get the Flash memory protection level - * @rmtoll UR0 RDP LL_SYSCFG_GetFLashProtectionLevel - * @retval Returned value can be one of the following values: - * 0xAA : RDP level 0 - * 0xCC : RDP level 2 - * Any other value : RDP level 1 - */ -__STATIC_INLINE uint32_t LL_SYSCFG_GetFLashProtectionLevel(void) -{ - return (uint32_t)(READ_BIT(SYSCFG->UR0, SYSCFG_UR0_RDP)); -} -#ifdef SYSCFG_UR0_BKS -/** - * @brief Indicate if the Flash memory bank addresses are inverted or not - * @rmtoll UR0 BKS LL_SYSCFG_IsFLashBankAddressesSwaped - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsFLashBankAddressesSwaped(void) -{ - return ((READ_BIT(SYSCFG->UR0, SYSCFG_UR0_BKS) == 0U) ? 1UL : 0UL); -} -#endif /*SYSCFG_UR0_BKS*/ - -/** - * @brief Get the BOR Threshold Reset Level - * @rmtoll UR2 BORH LL_SYSCFG_GetBrownoutResetLevel - * @retval Returned value can be one of the following values: - * @arg @ref LL_SYSCFG_BOR_HIGH_RESET_LEVEL - * @arg @ref LL_SYSCFG_BOR_MEDIUM_RESET_LEVEL - * @arg @ref LL_SYSCFG_BOR_LOW_RESET_LEVEL - * @arg @ref LL_SYSCFG_BOR_OFF_RESET_LEVEL - */ -__STATIC_INLINE uint32_t LL_SYSCFG_GetBrownoutResetLevel(void) -{ - return (uint32_t)(READ_BIT(SYSCFG->UR2, SYSCFG_UR2_BORH)); -} -/** - * @brief BootCM7 address 0 configuration - * @rmtoll UR2 BOOT_ADD0 LL_SYSCFG_SetCM7BootAddress0 - * @param BootAddress :Specifies the CM7 Boot Address to be loaded in Address0 - * @retval None - */ -__STATIC_INLINE void LL_SYSCFG_SetCM7BootAddress0(uint16_t BootAddress) -{ - /* Configure CM7 BOOT ADD0 */ -#if defined(DUAL_CORE) - MODIFY_REG(SYSCFG->UR2, SYSCFG_UR2_BCM7_ADD0, ((uint32_t)BootAddress << SYSCFG_UR2_BCM7_ADD0_Pos)); -#else - MODIFY_REG(SYSCFG->UR2, SYSCFG_UR2_BOOT_ADD0, ((uint32_t)BootAddress << SYSCFG_UR2_BOOT_ADD0_Pos)); -#endif /*DUAL_CORE*/ - -} - -/** - * @brief Get BootCM7 address 0 - * @rmtoll UR2 BOOT_ADD0 LL_SYSCFG_GetCM7BootAddress0 - * @retval Returned the CM7 Boot Address0 - */ -__STATIC_INLINE uint16_t LL_SYSCFG_GetCM7BootAddress0(void) -{ - /* Get CM7 BOOT ADD0 */ -#if defined(DUAL_CORE) - return (uint16_t)((uint32_t)READ_BIT(SYSCFG->UR2, SYSCFG_UR2_BCM7_ADD0) >> SYSCFG_UR2_BCM7_ADD0_Pos); -#else - return (uint16_t)((uint32_t)READ_BIT(SYSCFG->UR2, SYSCFG_UR2_BOOT_ADD0) >> SYSCFG_UR2_BOOT_ADD0_Pos); -#endif /*DUAL_CORE*/ -} - -/** - * @brief BootCM7 address 1 configuration - * @rmtoll UR3 BOOT_ADD1 LL_SYSCFG_SetCM7BootAddress1 - * @param BootAddress :Specifies the CM7 Boot Address to be loaded in Address1 - * @retval None - */ -__STATIC_INLINE void LL_SYSCFG_SetCM7BootAddress1(uint16_t BootAddress) -{ - /* Configure CM7 BOOT ADD1 */ -#if defined(DUAL_CORE) - MODIFY_REG(SYSCFG->UR3, SYSCFG_UR3_BCM7_ADD1, BootAddress); -#else - MODIFY_REG(SYSCFG->UR3, SYSCFG_UR3_BOOT_ADD1, BootAddress); -#endif /*DUAL_CORE*/ -} - -/** - * @brief Get BootCM7 address 1 - * @rmtoll UR3 BOOT_ADD1 LL_SYSCFG_GetCM7BootAddress1 - * @retval Returned the CM7 Boot Address0 - */ -__STATIC_INLINE uint16_t LL_SYSCFG_GetCM7BootAddress1(void) -{ - /* Get CM7 BOOT ADD0 */ -#if defined(DUAL_CORE) - return (uint16_t)(READ_BIT(SYSCFG->UR3, SYSCFG_UR3_BCM7_ADD1)); -#else - return (uint16_t)(READ_BIT(SYSCFG->UR3, SYSCFG_UR3_BOOT_ADD1)); -#endif /* DUAL_CORE */ -} - -#if defined(DUAL_CORE) -/** - * @brief BootCM4 address 0 configuration - * @rmtoll UR3 BCM4_ADD0 LL_SYSCFG_SetCM4BootAddress0 - * @param BootAddress :Specifies the CM4 Boot Address to be loaded in Address0 - * @retval None - */ -__STATIC_INLINE void LL_SYSCFG_SetCM4BootAddress0(uint16_t BootAddress) -{ - /* Configure CM4 BOOT ADD0 */ - MODIFY_REG(SYSCFG->UR3, SYSCFG_UR3_BCM4_ADD0, ((uint32_t)BootAddress << SYSCFG_UR3_BCM4_ADD0_Pos)); -} - -/** - * @brief Get BootCM4 address 0 - * @rmtoll UR3 BCM4_ADD0 LL_SYSCFG_GetCM4BootAddress0 - * @retval Returned the CM4 Boot Address0 - */ -__STATIC_INLINE uint16_t LL_SYSCFG_GetCM4BootAddress0(void) -{ - /* Get CM4 BOOT ADD0 */ - return (uint16_t)((uint32_t)READ_BIT(SYSCFG->UR3, SYSCFG_UR3_BCM4_ADD0) >> SYSCFG_UR3_BCM4_ADD0_Pos); -} - -/** - * @brief BootCM4 address 1 configuration - * @rmtoll UR4 BCM4_ADD1 LL_SYSCFG_SetCM4BootAddress1 - * @param BootAddress :Specifies the CM4 Boot Address to be loaded in Address1 - * @retval None - */ -__STATIC_INLINE void LL_SYSCFG_SetCM4BootAddress1(uint16_t BootAddress) -{ - /* Configure CM4 BOOT ADD1 */ - MODIFY_REG(SYSCFG->UR4, SYSCFG_UR4_BCM4_ADD1, BootAddress); -} - -/** - * @brief Get BootCM4 address 1 - * @rmtoll UR4 BCM4_ADD1 LL_SYSCFG_GetCM4BootAddress1 - * @retval Returned the CM4 Boot Address0 - */ -__STATIC_INLINE uint16_t LL_SYSCFG_GetCM4BootAddress1(void) -{ - /* Get CM4 BOOT ADD0 */ - return (uint16_t)(READ_BIT(SYSCFG->UR4, SYSCFG_UR4_BCM4_ADD1)); -} -#endif /*DUAL_CORE*/ - -/** - * @brief Indicates if the flash protected area (Bank 1) is erased by a mass erase - * @rmtoll UR4 MEPAD_BANK1 LL_SYSCFG_IsFlashB1ProtectedAreaErasable - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB1ProtectedAreaErasable(void) -{ - return ((READ_BIT(SYSCFG->UR4, SYSCFG_UR4_MEPAD_BANK1) == SYSCFG_UR4_MEPAD_BANK1) ? 1UL : 0UL); -} - -/** - * @brief Indicates if the flash secured area (Bank 1) is erased by a mass erase - * @rmtoll UR5 MESAD_BANK1 LL_SYSCFG_IsFlashB1SecuredAreaErasable - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB1SecuredAreaErasable(void) -{ - return ((READ_BIT(SYSCFG->UR5, SYSCFG_UR5_MESAD_BANK1) == SYSCFG_UR5_MESAD_BANK1) ? 1UL : 0UL); -} - -/** - * @brief Indicates if the sector 0 of the Flash memory bank 1 is write protected - * @rmtoll UR5 WRPN_BANK1 LL_SYSCFG_IsFlashB1Sector0WriteProtected - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB1Sector0WriteProtected(void) -{ - return ((READ_BIT(SYSCFG->UR5, SYSCFG_UR5_WRPN_BANK1) == (SYSCFG_UR5_WRPN_BANK1 & LL_SYSCFG_FLASH_B1_SECTOR0_STATUS_BIT)) ? 1UL : 0UL); -} - -/** - * @brief Indicates if the sector 1 of the Flash memory bank 1 is write protected - * @rmtoll UR5 WRPN_BANK1 LL_SYSCFG_IsFlashB1Sector1WriteProtected - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB1Sector1WriteProtected(void) -{ - return ((READ_BIT(SYSCFG->UR5, SYSCFG_UR5_WRPN_BANK1) == (SYSCFG_UR5_WRPN_BANK1 & LL_SYSCFG_FLASH_B1_SECTOR1_STATUS_BIT)) ? 1UL : 0UL); -} - -/** - * @brief Indicates if the sector 2 of the Flash memory bank 1 is write protected - * @rmtoll UR5 WRPN_BANK1 LL_SYSCFG_IsFlashB1Sector2WriteProtected - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB1Sector2WriteProtected(void) -{ - return ((READ_BIT(SYSCFG->UR5, SYSCFG_UR5_WRPN_BANK1) == (SYSCFG_UR5_WRPN_BANK1 & LL_SYSCFG_FLASH_B1_SECTOR2_STATUS_BIT)) ? 1UL : 0UL); -} - -/** - * @brief Indicates if the sector 3 of the Flash memory bank 1 is write protected - * @rmtoll UR5 WRPN_BANK1 LL_SYSCFG_IsFlashB1Sector3WriteProtected - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB1Sector3WriteProtected(void) -{ - return ((READ_BIT(SYSCFG->UR5, SYSCFG_UR5_WRPN_BANK1) == (SYSCFG_UR5_WRPN_BANK1 & LL_SYSCFG_FLASH_B1_SECTOR3_STATUS_BIT)) ? 1UL : 0UL); -} - -/** - * @brief Indicates if the sector 4 of the Flash memory bank 1 is write protected - * @rmtoll UR5 WRPN_BANK1 LL_SYSCFG_IsFlashB1Sector4WriteProtected - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB1Sector4WriteProtected(void) -{ - return ((READ_BIT(SYSCFG->UR5, SYSCFG_UR5_WRPN_BANK1) == (SYSCFG_UR5_WRPN_BANK1 & LL_SYSCFG_FLASH_B1_SECTOR4_STATUS_BIT)) ? 1UL : 0UL); -} - -/** - * @brief Indicates if the sector 5 of the Flash memory bank 1 is write protected - * @rmtoll UR5 WRPN_BANK1 LL_SYSCFG_IsFlashB1Sector5WriteProtected - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB1Sector5WriteProtected(void) -{ - return ((READ_BIT(SYSCFG->UR5, SYSCFG_UR5_WRPN_BANK1) == (SYSCFG_UR5_WRPN_BANK1 & LL_SYSCFG_FLASH_B1_SECTOR5_STATUS_BIT)) ? 1UL : 0UL); -} - -/** - * @brief Indicates if the sector 6 of the Flash memory bank 1 is write protected - * @rmtoll UR5 WRPN_BANK1 LL_SYSCFG_IsFlashB1Sector6WriteProtected - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB1Sector6WriteProtected(void) -{ - return ((READ_BIT(SYSCFG->UR5, SYSCFG_UR5_WRPN_BANK1) == (SYSCFG_UR5_WRPN_BANK1 & LL_SYSCFG_FLASH_B1_SECTOR6_STATUS_BIT)) ? 1UL : 0UL); -} - -/** - * @brief Indicates if the sector 7 of the Flash memory bank 1 is write protected - * @rmtoll UR5 WRPN_BANK1 LL_SYSCFG_IsFlashB1Sector7WriteProtected - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB1Sector7WriteProtected(void) -{ - return ((READ_BIT(SYSCFG->UR5, SYSCFG_UR5_WRPN_BANK1) == (SYSCFG_UR5_WRPN_BANK1 & LL_SYSCFG_FLASH_B1_SECTOR7_STATUS_BIT)) ? 1UL : 0UL); -} - -/** - * @brief Get the protected area start address for Flash bank 1 - * @rmtoll UR6 PABEG_BANK1 LL_SYSCFG_GetFlashB1ProtectedAreaStartAddress - * @retval Returned the protected area start address for Flash bank 1 - */ -__STATIC_INLINE uint32_t LL_SYSCFG_GetFlashB1ProtectedAreaStartAddress(void) -{ - return (uint32_t)(READ_BIT(SYSCFG->UR6, SYSCFG_UR6_PABEG_BANK1)); -} - -/** - * @brief Get the protected area end address for Flash bank 1 - * @rmtoll UR6 PAEND_BANK1 LL_SYSCFG_GetFlashB1ProtectedAreaEndAddress - * @retval Returned the protected area end address for Flash bank 1 - */ -__STATIC_INLINE uint32_t LL_SYSCFG_GetFlashB1ProtectedAreaEndAddress(void) -{ - return (uint32_t)(READ_BIT(SYSCFG->UR6, SYSCFG_UR6_PAEND_BANK1)); -} - -/** - * @brief Get the secured area start address for Flash bank 1 - * @rmtoll UR7 SABEG_BANK1 LL_SYSCFG_GetFlashB1SecuredAreaStartAddress - * @retval Returned the secured area start address for Flash bank 1 - */ -__STATIC_INLINE uint32_t LL_SYSCFG_GetFlashB1SecuredAreaStartAddress(void) -{ - return (uint32_t)(READ_BIT(SYSCFG->UR7, SYSCFG_UR7_SABEG_BANK1)); -} - -/** - * @brief Get the secured area end address for Flash bank 1 - * @rmtoll UR7 SAEND_BANK1 LL_SYSCFG_GetFlashB1SecuredAreaEndAddress - * @retval Returned the secured area end address for Flash bank 1 - */ -__STATIC_INLINE uint32_t LL_SYSCFG_GetFlashB1SecuredAreaEndAddress(void) -{ - return (uint32_t)(READ_BIT(SYSCFG->UR7, SYSCFG_UR7_SAEND_BANK1)); -} - -#ifdef SYSCFG_UR8_MEPAD_BANK2 -/** - * @brief Indicates if the flash protected area (Bank 2) is erased by a mass erase - * @rmtoll UR8 MEPAD_BANK2 LL_SYSCFG_IsFlashB2ProtectedAreaErasable - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB2ProtectedAreaErasable(void) -{ - return ((READ_BIT(SYSCFG->UR8, SYSCFG_UR8_MEPAD_BANK2) == SYSCFG_UR8_MEPAD_BANK2) ? 1UL : 0UL); -} - -/** - * @brief Indicates if the flash secured area (Bank 2) is erased by a mass erase - * @rmtoll UR8 MESAD_BANK2 LL_SYSCFG_IsFlashB2SecuredAreaErasable - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB2SecuredAreaErasable(void) -{ - return ((READ_BIT(SYSCFG->UR8, SYSCFG_UR8_MESAD_BANK2) == SYSCFG_UR8_MESAD_BANK2) ? 1UL : 0UL); -} -#endif /*SYSCFG_UR8_MEPAD_BANK2*/ - -#ifdef SYSCFG_UR9_WRPN_BANK2 -/** - * @brief Indicates if the sector 0 of the Flash memory bank 2 is write protected - * @rmtoll UR9 WRPN_BANK2 LL_SYSCFG_IsFlashB2Sector0WriteProtected - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB2Sector0WriteProtected(void) -{ - return ((READ_BIT(SYSCFG->UR9, SYSCFG_UR9_WRPN_BANK2) == (SYSCFG_UR9_WRPN_BANK2 & LL_SYSCFG_FLASH_B2_SECTOR0_STATUS_BIT)) ? 1UL : 0UL); -} - -/** - * @brief Indicates if the sector 1 of the Flash memory bank 2 is write protected - * @rmtoll UR9 WRPN_BANK2 LL_SYSCFG_IsFlashB2Sector1WriteProtected - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB2Sector1WriteProtected(void) -{ - return ((READ_BIT(SYSCFG->UR9, SYSCFG_UR9_WRPN_BANK2) == (SYSCFG_UR9_WRPN_BANK2 & LL_SYSCFG_FLASH_B2_SECTOR1_STATUS_BIT)) ? 1UL : 0UL); -} - -/** - * @brief Indicates if the sector 2 of the Flash memory bank 2 is write protected - * @rmtoll UR9 WRPN_BANK2 LL_SYSCFG_IsFlashB2Sector2WriteProtected - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB2Sector2WriteProtected(void) -{ - return ((READ_BIT(SYSCFG->UR9, SYSCFG_UR9_WRPN_BANK2) == (SYSCFG_UR9_WRPN_BANK2 & LL_SYSCFG_FLASH_B2_SECTOR2_STATUS_BIT)) ? 1UL : 0UL); -} - -/** - * @brief Indicates if the sector 3 of the Flash memory bank 2 is write protected - * @rmtoll UR9 WRPN_BANK2 LL_SYSCFG_IsFlashB2Sector3WriteProtected - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB2Sector3WriteProtected(void) -{ - return ((READ_BIT(SYSCFG->UR9, SYSCFG_UR9_WRPN_BANK2) == (SYSCFG_UR9_WRPN_BANK2 & LL_SYSCFG_FLASH_B2_SECTOR3_STATUS_BIT)) ? 1UL : 0UL); -} - -/** - * @brief Indicates if the sector 4 of the Flash memory bank 2 is write protected - * @rmtoll UR9 WRPN_BANK2 LL_SYSCFG_IsFlashB2Sector4WriteProtected - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB2Sector4WriteProtected(void) -{ - return ((READ_BIT(SYSCFG->UR9, SYSCFG_UR9_WRPN_BANK2) == (SYSCFG_UR9_WRPN_BANK2 & LL_SYSCFG_FLASH_B2_SECTOR4_STATUS_BIT)) ? 1UL : 0UL); -} - -/** - * @brief Indicates if the sector 5 of the Flash memory bank 2 is write protected - * @rmtoll UR9 WRPN_BANK2 LL_SYSCFG_IsFlashB2Sector5WriteProtected - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB2Sector5WriteProtected(void) -{ - return ((READ_BIT(SYSCFG->UR9, SYSCFG_UR9_WRPN_BANK2) == (SYSCFG_UR9_WRPN_BANK2 & LL_SYSCFG_FLASH_B2_SECTOR5_STATUS_BIT)) ? 1UL : 0UL); -} - -/** - * @brief Indicates if the sector 6 of the Flash memory bank 2 is write protected - * @rmtoll UR9 WRPN_BANK2 LL_SYSCFG_IsFlashB2Sector6WriteProtected - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB2Sector6WriteProtected(void) -{ - return ((READ_BIT(SYSCFG->UR9, SYSCFG_UR9_WRPN_BANK2) == (SYSCFG_UR9_WRPN_BANK2 & LL_SYSCFG_FLASH_B2_SECTOR6_STATUS_BIT)) ? 1UL : 0UL); -} - -/** - * @brief Indicates if the sector 7 of the Flash memory bank 2 is write protected - * @rmtoll UR9 WRPN_BANK2 LL_SYSCFG_IsFlashB2Sector7WriteProtected - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB2Sector7WriteProtected(void) -{ - return ((READ_BIT(SYSCFG->UR9, SYSCFG_UR9_WRPN_BANK2) == (SYSCFG_UR9_WRPN_BANK2 & LL_SYSCFG_FLASH_B2_SECTOR7_STATUS_BIT)) ? 1UL : 0UL); -} - -/** - * @brief Get the protected area start address for Flash bank 2 - * @rmtoll UR9 PABEG_BANK2 LL_SYSCFG_GetFlashB2ProtectedAreaStartAddress - * @retval Returned the protected area start address for Flash bank 2 - */ -__STATIC_INLINE uint32_t LL_SYSCFG_GetFlashB2ProtectedAreaStartAddress(void) -{ - return (uint32_t)(READ_BIT(SYSCFG->UR9, SYSCFG_UR9_PABEG_BANK2)); -} -#endif /*SYSCFG_UR9_WRPN_BANK2*/ - -#ifdef SYSCFG_UR10_PAEND_BANK2 -/** - * @brief Get the protected area end address for Flash bank 2 - * @rmtoll UR10 PAEND_BANK2 LL_SYSCFG_GetFlashB2ProtectedAreaEndAddress - * @retval Returned the protected area end address for Flash bank 2 - */ -__STATIC_INLINE uint32_t LL_SYSCFG_GetFlashB2ProtectedAreaEndAddress(void) -{ - return (uint32_t)(READ_BIT(SYSCFG->UR10, SYSCFG_UR10_PAEND_BANK2)); -} - -/** - * @brief Get the secured area start address for Flash bank 2 - * @rmtoll UR10 SABEG_BANK2 LL_SYSCFG_GetFlashB2SecuredAreaStartAddress - * @retval Returned the secured area start address for Flash bank 2 - */ -__STATIC_INLINE uint32_t LL_SYSCFG_GetFlashB2SecuredAreaStartAddress(void) -{ - return (uint32_t)(READ_BIT(SYSCFG->UR10, SYSCFG_UR10_SABEG_BANK2)); -} -#endif /*SYSCFG_UR10_PAEND_BANK2*/ - -#ifdef SYSCFG_UR11_SAEND_BANK2 -/** - * @brief Get the secured area end address for Flash bank 2 - * @rmtoll UR11 SAEND_BANK2 LL_SYSCFG_GetFlashB2SecuredAreaEndAddress - * @retval Returned the secured area end address for Flash bank 2 - */ -__STATIC_INLINE uint32_t LL_SYSCFG_GetFlashB2SecuredAreaEndAddress(void) -{ - return (uint32_t)(READ_BIT(SYSCFG->UR11, SYSCFG_UR11_SAEND_BANK2)); -} -#endif /*SYSCFG_UR11_SAEND_BANK2*/ - -/** - * @brief Get the Independent Watchdog 1 control mode (Software or Hardware) - * @rmtoll UR11 IWDG1M LL_SYSCFG_GetIWDG1ControlMode - * @retval Returned value can be one of the following values: - * @arg @ref LL_SYSCFG_IWDG1_SW_CONTROL_MODE - * @arg @ref LL_SYSCFG_IWDG1_HW_CONTROL_MODE - */ -__STATIC_INLINE uint32_t LL_SYSCFG_GetIWDG1ControlMode(void) -{ - return (uint32_t)(READ_BIT(SYSCFG->UR11, SYSCFG_UR11_IWDG1M)); -} - -#if defined (DUAL_CORE) -/** - * @brief Get the Independent Watchdog 2 control mode (Software or Hardware) - * @rmtoll UR12 IWDG2M LL_SYSCFG_GetIWDG2ControlMode - * @retval Returned value can be one of the following values: - * @arg @ref LL_SYSCFG_IWDG2_SW_CONTROL_MODE - * @arg @ref LL_SYSCFG_IWDG2_HW_CONTROL_MODE - */ -__STATIC_INLINE uint32_t LL_SYSCFG_GetIWDG2ControlMode(void) -{ - return (uint32_t)(READ_BIT(SYSCFG->UR12, SYSCFG_UR12_IWDG2M)); -} -#endif /* DUAL_CORE */ - -/** - * @brief Indicates the Secure mode status - * @rmtoll UR12 SECURE LL_SYSCFG_IsSecureModeEnabled - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsSecureModeEnabled(void) -{ - return ((READ_BIT(SYSCFG->UR12, SYSCFG_UR12_SECURE) == SYSCFG_UR12_SECURE) ? 1UL : 0UL); -} - -/** - * @brief Indicates if a reset is generated when D1 domain enters DStandby mode - * @rmtoll UR13 D1SBRST LL_SYSCFG_IsD1StandbyGenerateReset - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsD1StandbyGenerateReset(void) -{ - return ((READ_BIT(SYSCFG->UR13, SYSCFG_UR13_D1SBRST) == 0U) ? 1UL : 0UL); -} - -/** - * @brief Get the secured DTCM RAM size - * @rmtoll UR13 SDRS LL_SYSCFG_GetSecuredDTCMSize - * @retval Returned value can be one of the following values: - * @arg @ref LL_SYSCFG_DTCM_RAM_SIZE_2KB - * @arg @ref LL_SYSCFG_DTCM_RAM_SIZE_4KB - * @arg @ref LL_SYSCFG_DTCM_RAM_SIZE_8KB - * @arg @ref LL_SYSCFG_DTCM_RAM_SIZE_16KB - */ -__STATIC_INLINE uint32_t LL_SYSCFG_GetSecuredDTCMSize(void) -{ - return (uint32_t)(READ_BIT(SYSCFG->UR13, SYSCFG_UR13_SDRS)); -} - -/** - * @brief Indicates if a reset is generated when D1 domain enters DStop mode - * @rmtoll UR14 D1STPRST LL_SYSCFG_IsD1StopGenerateReset - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsD1StopGenerateReset(void) -{ - return ((READ_BIT(SYSCFG->UR14, SYSCFG_UR14_D1STPRST) == 0U) ? 1UL : 0UL); -} - -#if defined (DUAL_CORE) -/** - * @brief Indicates if a reset is generated when D2 domain enters DStandby mode - * @rmtoll UR14 D2SBRST LL_SYSCFG_IsD2StandbyGenerateReset - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsD2StandbyGenerateReset(void) -{ - return ((READ_BIT(SYSCFG->UR14, SYSCFG_UR14_D2SBRST) == 0U) ? 1UL : 0UL); -} - -/** - * @brief Indicates if a reset is generated when D2 domain enters DStop mode - * @rmtoll UR15 D2STPRST LL_SYSCFG_IsD2StopGenerateReset - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsD2StopGenerateReset(void) -{ - return ((READ_BIT(SYSCFG->UR15, SYSCFG_UR15_D2STPRST) == 0U) ? 1UL : 0UL); -} -#endif /* DUAL_CORE */ - -/** - * @brief Indicates if the independent watchdog is frozen in Standby mode - * @rmtoll UR15 FZIWDGSTB LL_SYSCFG_IsIWDGFrozenInStandbyMode - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsIWDGFrozenInStandbyMode(void) -{ - return ((READ_BIT(SYSCFG->UR15, SYSCFG_UR15_FZIWDGSTB) == 0U) ? 1UL : 0UL); -} - -/** - * @brief Indicates if the independent watchdog is frozen in Stop mode - * @rmtoll UR16 FZIWDGSTP LL_SYSCFG_IsIWDGFrozenInStopMode - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsIWDGFrozenInStopMode(void) -{ - return ((READ_BIT(SYSCFG->UR16, SYSCFG_UR16_FZIWDGSTP) == 0U) ? 1UL : 0UL); -} - -/** - * @brief Indicates if the device private key is programmed - * @rmtoll UR16 PKP LL_SYSCFG_IsPrivateKeyProgrammed - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsPrivateKeyProgrammed(void) -{ - return ((READ_BIT(SYSCFG->UR16, SYSCFG_UR16_PKP) == SYSCFG_UR16_PKP) ? 1UL : 0UL); -} - -/** - * @brief Indicates if the Product is working on the full voltage range or not - * @rmtoll UR17 IOHSLV LL_SYSCFG_IsActiveFlag_IOHSLV - * @note When the IOHSLV option bit is set the Product is working below 2.7 V. - * When the IOHSLV option bit is reset the Product is working on the - * full voltage range. - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsActiveFlag_IOHSLV(void) -{ - return ((READ_BIT(SYSCFG->UR17, SYSCFG_UR17_IOHSLV) == SYSCFG_UR17_IOHSLV) ? 1UL : 0UL); -} - -#ifdef SYSCFG_UR17_TCM_AXI_CFG -/** - * @brief Get the size of ITCM-RAM and AXI-SRAM - * @rmtoll UR17 TCM_AXI_CFG LL_SYSCFG_Get_ITCM_AXI_RAM_Size - * @retval Returned value can be one of the following values: - * @arg @ref LL_SYSCFG_ITCM_AXI_64KB_320KB - * @arg @ref LL_SYSCFG_ITCM_AXI_128KB_256KB - * @arg @ref LL_SYSCFG_ITCM_AXI_192KB_192KB - * @arg @ref LL_SYSCFG_ITCM_AXI_256KB_128KB - */ -__STATIC_INLINE uint32_t LL_SYSCFG_Get_ITCM_AXI_RAM_Size(void) -{ - return (uint32_t)(READ_BIT(SYSCFG->UR17, SYSCFG_UR17_TCM_AXI_CFG)); -} -#endif /*SYSCFG_UR17_TCM_AXI_CFG*/ - -#ifdef SYSCFG_UR18_CPU_FREQ_BOOST -/** - * @brief Indicates if the CPU maximum frequency boost is enabled - * @rmtoll UR18 CPU_FREQ_BOOST LL_SYSCFG_IsCpuFreqBoostEnabled - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_SYSCFG_IsCpuFreqBoostEnabled(void) -{ - return ((READ_BIT(SYSCFG->UR18, SYSCFG_UR18_CPU_FREQ_BOOST) == SYSCFG_UR18_CPU_FREQ_BOOST) ? 1UL : 0UL); -} -#endif /*SYSCFG_UR18_CPU_FREQ_BOOST*/ - -#endif /*SYSCFG_UR0_RDP*/ - -/** - * @} - */ - -/** @defgroup SYSTEM_LL_EF_DBGMCU DBGMCU - * @{ - */ - -/** - * @brief Return the device identifier - * @rmtoll DBGMCU_IDCODE DEV_ID LL_DBGMCU_GetDeviceID - * @retval Values between Min_Data=0x00 and Max_Data=0xFFF - */ -__STATIC_INLINE uint32_t LL_DBGMCU_GetDeviceID(void) -{ - return (uint32_t)(READ_BIT(DBGMCU->IDCODE, DBGMCU_IDCODE_DEV_ID)); -} - -/** - * @brief Return the device revision identifier - * @note This field indicates the revision of the device. - For example, it is read as RevA -> 0x1000, Cat 2 revZ -> 0x1001 - * @rmtoll DBGMCU_IDCODE REV_ID LL_DBGMCU_GetRevisionID - * @retval Values between Min_Data=0x00 and Max_Data=0xFFFF - */ -__STATIC_INLINE uint32_t LL_DBGMCU_GetRevisionID(void) -{ - return (uint32_t)(READ_BIT(DBGMCU->IDCODE, DBGMCU_IDCODE_REV_ID) >> DBGMCU_IDCODE_REV_ID_Pos); -} - -/** - * @brief Enable D1 Domain/CDomain debug during SLEEP mode - * @rmtoll DBGMCU_CR DBGSLEEP_D1/DBGSLEEP_CD LL_DBGMCU_EnableD1DebugInSleepMode - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_EnableD1DebugInSleepMode(void) -{ - SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_SLEEPD1); -} - -/** - * @brief Disable D1 Domain/CDomain debug during SLEEP mode - * @rmtoll DBGMCU_CR DBGSLEEP_D1/DBGSLEEP_CD LL_DBGMCU_DisableD1DebugInSleepMode - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_DisableD1DebugInSleepMode(void) -{ - CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_SLEEPD1); -} - -/** - * @brief Enable D1 Domain/CDomain debug during STOP mode - * @rmtoll DBGMCU_CR DBGSTOP_D1/DBGSLEEP_CD LL_DBGMCU_EnableD1DebugInStopMode - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_EnableD1DebugInStopMode(void) -{ - SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STOPD1); -} - -/** - * @brief Disable D1 Domain/CDomain debug during STOP mode - * @rmtoll DBGMCU_CR DBGSTOP_D1/DBGSLEEP_CD LL_DBGMCU_DisableD1DebugInStopMode - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_DisableD1DebugInStopMode(void) -{ - CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STOPD1); -} - -/** - * @brief Enable D1 Domain/CDomain debug during STANDBY mode - * @rmtoll DBGMCU_CR DBGSTBY_D1/DBGSLEEP_CD LL_DBGMCU_EnableD1DebugInStandbyMode - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_EnableD1DebugInStandbyMode(void) -{ - SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STANDBYD1); -} - -/** - * @brief Disable D1 Domain/CDomain debug during STANDBY mode - * @rmtoll DBGMCU_CR DBGSTBY_D1/DBGSLEEP_CD LL_DBGMCU_DisableD1DebugInStandbyMode - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_DisableD1DebugInStandbyMode(void) -{ - CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STANDBYD1); -} - -#if defined (DUAL_CORE) -/** - * @brief Enable D2 Domain debug during SLEEP mode - * @rmtoll DBGMCU_CR DBGSLEEP_D2 LL_DBGMCU_EnableD2DebugInSleepMode - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_EnableD2DebugInSleepMode(void) -{ - SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_SLEEPD2); -} - -/** - * @brief Disable D2 Domain debug during SLEEP mode - * @rmtoll DBGMCU_CR DBGSLEEP_D2 LL_DBGMCU_DisableD2DebugInSleepMode - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_DisableD2DebugInSleepMode(void) -{ - CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_SLEEPD2); -} - -/** - * @brief Enable D2 Domain debug during STOP mode - * @rmtoll DBGMCU_CR DBGSTOP_D2 LL_DBGMCU_EnableD2DebugInStopMode - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_EnableD2DebugInStopMode(void) -{ - SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STOPD2); -} - -/** - * @brief Disable D2 Domain debug during STOP mode - * @rmtoll DBGMCU_CR DBGSTOP_D2 LL_DBGMCU_DisableD2DebugInStopMode - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_DisableD2DebugInStopMode(void) -{ - CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STOPD2); -} - -/** - * @brief Enable D2 Domain debug during STANDBY mode - * @rmtoll DBGMCU_CR DBGSTBY_D2 LL_DBGMCU_EnableD2DebugInStandbyMode - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_EnableD2DebugInStandbyMode(void) -{ - SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STANDBYD2); -} - -/** - * @brief Disable D2 Domain debug during STANDBY mode - * @rmtoll DBGMCU_CR DBGSTBY_D2 LL_DBGMCU_DisableD2DebugInStandbyMode - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_DisableD2DebugInStandbyMode(void) -{ - CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STANDBYD2); -} -#endif /* DUAL_CORE */ - - -#if defined(DBGMCU_CR_DBG_STOPD3) -/** - * @brief Enable D3 Domain/SRDomain debug during STOP mode - * @rmtoll DBGMCU_CR DBGSTOP_D3/DBGSTOP_SRD LL_DBGMCU_EnableD3DebugInStopMode - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_EnableD3DebugInStopMode(void) -{ - SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STOPD3); -} - -/** - * @brief Disable D3 Domain/SRDomain debug during STOP mode - * @rmtoll DBGMCU_CR DBGSTOP_D3/DBGSTOP_SRD LL_DBGMCU_DisableD3DebugInStopMode - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_DisableD3DebugInStopMode(void) -{ - CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STOPD3); -} -#endif /*DBGMCU_CR_DBG_STOPD3*/ - -#if defined(DBGMCU_CR_DBG_STANDBYD3) -/** - * @brief Enable D3 Domain/SRDomain debug during STANDBY mode - * @rmtoll DBGMCU_CR DBGSTBY_D3/DBGSTBY_SRD LL_DBGMCU_EnableD3DebugInStandbyMode - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_EnableD3DebugInStandbyMode(void) -{ - SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STANDBYD3); -} - -/** - * @brief Disable D3 Domain/SRDomain debug during STANDBY mode - * @rmtoll DBGMCU_CR DBGSTBY_D3/DBGSTBY_SRD LL_DBGMCU_DisableD3DebugInStandbyMode - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_DisableD3DebugInStandbyMode(void) -{ - CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STANDBYD3); -} -#endif /*DBGMCU_CR_DBG_STANDBYD3*/ - -/** - * @brief Enable the trace port clock - * @rmtoll DBGMCU_CR TRACECKEN LL_DBGMCU_EnableTracePortClock - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_EnableTracePortClock(void) -{ - SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_TRACECKEN); -} - -/** - * @brief Disable the trace port clock - * @rmtoll DBGMCU_CR TRACECKEN LL_DBGMCU_DisableTracePortClock - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_DisableTracePortClock(void) -{ - CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_TRACECKEN); -} - -/** - * @brief Enable the Domain1/CDomain debug clock enable - * @rmtoll DBGMCU_CR CKD1EN/CKCDEN LL_DBGMCU_EnableD1DebugClock - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_EnableD1DebugClock(void) -{ - SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_CKD1EN); -} - -/** - * @brief Disable the Domain1/CDomain debug clock enable - * @rmtoll DBGMCU_CR CKD1EN/CKCDEN LL_DBGMCU_DisableD1DebugClock - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_DisableD1DebugClock(void) -{ - CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_CKD1EN); -} - -/** - * @brief Enable the Domain3/SRDomain debug clock enable - * @rmtoll DBGMCU_CR CKD3EN/CKSRDEN LL_DBGMCU_EnableD3DebugClock - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_EnableD3DebugClock(void) -{ - SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_CKD3EN); -} - -/** - * @brief Disable the Domain3/SRDomain debug clock enable - * @rmtoll DBGMCU_CR CKD3EN/CKSRDEN LL_DBGMCU_DisableD3DebugClock - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_DisableD3DebugClock(void) -{ - CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_CKD3EN); -} - -#define LL_DBGMCU_TRGIO_INPUT_DIRECTION 0U -#define LL_DBGMCU_TRGIO_OUTPUT_DIRECTION DBGMCU_CR_DBG_TRGOEN -/** - * @brief Set the direction of the bi-directional trigger pin TRGIO - * @rmtoll DBGMCU_CR TRGOEN LL_DBGMCU_SetExternalTriggerPinDirection\n - * @param PinDirection This parameter can be one of the following values: - * @arg @ref LL_DBGMCU_TRGIO_INPUT_DIRECTION - * @arg @ref LL_DBGMCU_TRGIO_OUTPUT_DIRECTION - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_SetExternalTriggerPinDirection(uint32_t PinDirection) -{ - MODIFY_REG(DBGMCU->CR, DBGMCU_CR_DBG_TRGOEN, PinDirection); -} - -/** - * @brief Get the direction of the bi-directional trigger pin TRGIO - * @rmtoll DBGMCU_CR TRGOEN LL_DBGMCU_GetExternalTriggerPinDirection\n - * @retval Returned value can be one of the following values: - * @arg @ref LL_DBGMCU_TRGIO_INPUT_DIRECTION - * @arg @ref LL_DBGMCU_TRGIO_OUTPUT_DIRECTION - */ -__STATIC_INLINE uint32_t LL_DBGMCU_GetExternalTriggerPinDirection(void) -{ - return (uint32_t)(READ_BIT(DBGMCU->CR, DBGMCU_CR_DBG_TRGOEN)); -} - -/** - * @brief Freeze APB1 group1 peripherals - * @rmtoll DBGMCU_APB1LFZ1 TIM2 LL_DBGMCU_APB1_GRP1_FreezePeriph\n - * DBGMCU_APB1LFZ1 TIM3 LL_DBGMCU_APB1_GRP1_FreezePeriph\n - * DBGMCU_APB1LFZ1 TIM4 LL_DBGMCU_APB1_GRP1_FreezePeriph\n - * DBGMCU_APB1LFZ1 TIM5 LL_DBGMCU_APB1_GRP1_FreezePeriph\n - * DBGMCU_APB1LFZ1 TIM6 LL_DBGMCU_APB1_GRP1_FreezePeriph\n - * DBGMCU_APB1LFZ1 TIM7 LL_DBGMCU_APB1_GRP1_FreezePeriph\n - * DBGMCU_APB1LFZ1 TIM12 LL_DBGMCU_APB1_GRP1_FreezePeriph\n - * DBGMCU_APB1LFZ1 TIM13 LL_DBGMCU_APB1_GRP1_FreezePeriph\n - * DBGMCU_APB1LFZ1 TIM14 LL_DBGMCU_APB1_GRP1_FreezePeriph\n - * DBGMCU_APB1LFZ1 LPTIM1 LL_DBGMCU_APB1_GRP1_FreezePeriph\n - * DBGMCU_APB1LFZ1 I2C1 LL_DBGMCU_APB1_GRP1_FreezePeriph\n - * DBGMCU_APB1LFZ1 I2C2 LL_DBGMCU_APB1_GRP1_FreezePeriph\n - * DBGMCU_APB1LFZ1 I2C3 LL_DBGMCU_APB1_GRP1_FreezePeriph\n - * DBGMCU_APB1LFZ1 I2C5 LL_DBGMCU_APB1_GRP1_FreezePeriph\n (*) - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_DBGMCU_APB1_GRP1_TIM2_STOP - * @arg @ref LL_DBGMCU_APB1_GRP1_TIM3_STOP - * @arg @ref LL_DBGMCU_APB1_GRP1_TIM4_STOP - * @arg @ref LL_DBGMCU_APB1_GRP1_TIM5_STOP - * @arg @ref LL_DBGMCU_APB1_GRP1_TIM6_STOP - * @arg @ref LL_DBGMCU_APB1_GRP1_TIM7_STOP - * @arg @ref LL_DBGMCU_APB1_GRP1_TIM12_STOP - * @arg @ref LL_DBGMCU_APB1_GRP1_TIM13_STOP - * @arg @ref LL_DBGMCU_APB1_GRP1_TIM14_STOP - * @arg @ref LL_DBGMCU_APB1_GRP1_LPTIM1_STOP - * @arg @ref LL_DBGMCU_APB1_GRP1_I2C1_STOP - * @arg @ref LL_DBGMCU_APB1_GRP1_I2C2_STOP - * @arg @ref LL_DBGMCU_APB1_GRP1_I2C3_STOP - * @arg @ref LL_DBGMCU_APB1_GRP1_I2C5_STOP (*) - * - * (*) value not defined in all devices - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_APB1_GRP1_FreezePeriph(uint32_t Periphs) -{ - SET_BIT(DBGMCU->APB1LFZ1, Periphs); -} - -/** - * @brief Unfreeze APB1 peripherals (group1 peripherals) - * @rmtoll DBGMCU_APB1LFZ1 TIM2 LL_DBGMCU_APB1_GRP1_FreezePeriph\n - * DBGMCU_APB1LFZ1 TIM3 LL_DBGMCU_APB1_GRP1_FreezePeriph\n - * DBGMCU_APB1LFZ1 TIM4 LL_DBGMCU_APB1_GRP1_FreezePeriph\n - * DBGMCU_APB1LFZ1 TIM5 LL_DBGMCU_APB1_GRP1_FreezePeriph\n - * DBGMCU_APB1LFZ1 TIM6 LL_DBGMCU_APB1_GRP1_FreezePeriph\n - * DBGMCU_APB1LFZ1 TIM7 LL_DBGMCU_APB1_GRP1_FreezePeriph\n - * DBGMCU_APB1LFZ1 TIM12 LL_DBGMCU_APB1_GRP1_FreezePeriph\n - * DBGMCU_APB1LFZ1 TIM13 LL_DBGMCU_APB1_GRP1_FreezePeriph\n - * DBGMCU_APB1LFZ1 TIM14 LL_DBGMCU_APB1_GRP1_FreezePeriph\n - * DBGMCU_APB1LFZ1 LPTIM1 LL_DBGMCU_APB1_GRP1_FreezePeriph\n - * DBGMCU_APB1LFZ1 I2C1 LL_DBGMCU_APB1_GRP1_FreezePeriph\n - * DBGMCU_APB1LFZ1 I2C2 LL_DBGMCU_APB1_GRP1_FreezePeriph\n - * DBGMCU_APB1LFZ1 I2C3 LL_DBGMCU_APB1_GRP1_FreezePeriph\n - * DBGMCU_APB1LFZ1 I2C5 LL_DBGMCU_APB1_GRP1_FreezePeriph\n - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_DBGMCU_APB1_GRP1_TIM2_STOP - * @arg @ref LL_DBGMCU_APB1_GRP1_TIM3_STOP - * @arg @ref LL_DBGMCU_APB1_GRP1_TIM4_STOP - * @arg @ref LL_DBGMCU_APB1_GRP1_TIM5_STOP - * @arg @ref LL_DBGMCU_APB1_GRP1_TIM6_STOP - * @arg @ref LL_DBGMCU_APB1_GRP1_TIM7_STOP - * @arg @ref LL_DBGMCU_APB1_GRP1_TIM12_STOP - * @arg @ref LL_DBGMCU_APB1_GRP1_TIM13_STOP - * @arg @ref LL_DBGMCU_APB1_GRP1_TIM14_STOP - * @arg @ref LL_DBGMCU_APB1_GRP1_LPTIM1_STOP - * @arg @ref LL_DBGMCU_APB1_GRP1_I2C1_STOP - * @arg @ref LL_DBGMCU_APB1_GRP1_I2C2_STOP - * @arg @ref LL_DBGMCU_APB1_GRP1_I2C3_STOP - * @arg @ref LL_DBGMCU_APB1_GRP1_I2C5_STOP (*) - * - * (*) value not defined in all devices - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_APB1_GRP1_UnFreezePeriph(uint32_t Periphs) -{ - CLEAR_BIT(DBGMCU->APB1LFZ1, Periphs); -} - -#ifdef DBGMCU_APB1HFZ1_DBG_FDCAN -/** - * @brief Freeze APB1 group2 peripherals - * @rmtoll DBGMCU_APB1HFZ1 FDCAN LL_DBGMCU_APB1_GRP2_FreezePeriph\n - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_DBGMCU_APB1_GRP2_FDCAN_STOP - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_APB1_GRP2_FreezePeriph(uint32_t Periphs) -{ - SET_BIT(DBGMCU->APB1HFZ1, Periphs); -} - -/** - * @brief Unfreeze APB1 group2 peripherals - * @rmtoll DBGMCU_APB1HFZ1 FDCAN LL_DBGMCU_APB1_GRP2_UnFreezePeriph\n - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_DBGMCU_APB1_GRP2_FDCAN_STOP - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_APB1_GRP2_UnFreezePeriph(uint32_t Periphs) -{ - CLEAR_BIT(DBGMCU->APB1HFZ1, Periphs); -} -#endif /*DBGMCU_APB1HFZ1_DBG_FDCAN*/ - -#if defined(TIM23) || defined(TIM24) -/** - * @brief Freeze APB1 group2 peripherals - * @rmtoll DBGMCU_APB1HFZ1 TIM23 LL_DBGMCU_APB1_GRP2_FreezePeriph\n - * DBGMCU_APB1HFZ1 TIM24 LL_DBGMCU_APB1_GRP2_FreezePeriph\n - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_DBGMCU_APB1_GRP2_TIM23_STOP - * @arg @ref LL_DBGMCU_APB1_GRP2_TIM24_STOP - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_APB1_GRP2_FreezePeriph(uint32_t Periphs) -{ - SET_BIT(DBGMCU->APB1HFZ1, Periphs); -} - -/** - * @brief Unfreeze APB1 group2 peripherals - * @rmtoll DBGMCU_APB1HFZ1 TIM23 LL_DBGMCU_APB1_GRP2_UnFreezePeriph\n - DBGMCU_APB1HFZ1 TIM24 LL_DBGMCU_APB1_GRP2_UnFreezePeriph\n - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_DBGMCU_APB1_GRP2_TIM23_STOP - * @arg @ref LL_DBGMCU_APB1_GRP2_TIM24_STOP - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_APB1_GRP2_UnFreezePeriph(uint32_t Periphs) -{ - CLEAR_BIT(DBGMCU->APB1HFZ1, Periphs); -} -#endif /* TIM23 || TIM24 */ - -/** - * @brief Freeze APB2 peripherals - * @rmtoll DBGMCU_APB2FZ1 TIM1 LL_DBGMCU_APB2_GRP1_FreezePeriph\n - * DBGMCU_APB2FZ1 TIM8 LL_DBGMCU_APB2_GRP1_FreezePeriph\n - * DBGMCU_APB2FZ1 TIM15 LL_DBGMCU_APB2_GRP1_FreezePeriph\n - * DBGMCU_APB2FZ1 TIM16 LL_DBGMCU_APB2_GRP1_FreezePeriph\n - * DBGMCU_APB2FZ1 TIM17 LL_DBGMCU_APB2_GRP1_FreezePeriph - * DBGMCU_APB2FZ1 HRTIM LL_DBGMCU_APB2_GRP1_FreezePeriph - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_DBGMCU_APB2_GRP1_TIM1_STOP - * @arg @ref LL_DBGMCU_APB2_GRP1_TIM8_STOP - * @arg @ref LL_DBGMCU_APB2_GRP1_TIM15_STOP - * @arg @ref LL_DBGMCU_APB2_GRP1_TIM16_STOP - * @arg @ref LL_DBGMCU_APB2_GRP1_TIM17_STOP - * @arg @ref LL_DBGMCU_APB2_GRP1_HRTIM_STOP (*) - * - * (*) value not defined in all devices - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_APB2_GRP1_FreezePeriph(uint32_t Periphs) -{ - SET_BIT(DBGMCU->APB2FZ1, Periphs); -} - -/** - * @brief Unfreeze APB2 peripherals - * @rmtoll DBGMCU_APB2FZ1 TIM1 LL_DBGMCU_APB2_GRP1_FreezePeriph\n - * DBGMCU_APB2FZ1 TIM8 LL_DBGMCU_APB2_GRP1_FreezePeriph\n - * DBGMCU_APB2FZ1 TIM15 LL_DBGMCU_APB2_GRP1_FreezePeriph\n - * DBGMCU_APB2FZ1 TIM16 LL_DBGMCU_APB2_GRP1_FreezePeriph\n - * DBGMCU_APB2FZ1 TIM17 LL_DBGMCU_APB2_GRP1_FreezePeriph - * DBGMCU_APB2FZ1 HRTIM LL_DBGMCU_APB2_GRP1_FreezePeriph - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_DBGMCU_APB2_GRP1_TIM1_STOP - * @arg @ref LL_DBGMCU_APB2_GRP1_TIM8_STOP - * @arg @ref LL_DBGMCU_APB2_GRP1_TIM15_STOP - * @arg @ref LL_DBGMCU_APB2_GRP1_TIM16_STOP - * @arg @ref LL_DBGMCU_APB2_GRP1_TIM17_STOP - * @arg @ref LL_DBGMCU_APB2_GRP1_HRTIM_STOP (*) - * - * (*) value not defined in all devices - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_APB2_GRP1_UnFreezePeriph(uint32_t Periphs) -{ - CLEAR_BIT(DBGMCU->APB2FZ1, Periphs); -} - -/** - * @brief Freeze APB3 peripherals - * @rmtoll DBGMCU_APB3FZ1 WWDG1 LL_DBGMCU_APB3_GRP1_FreezePeriph\n - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_DBGMCU_APB3_GRP1_WWDG1_STOP - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_APB3_GRP1_FreezePeriph(uint32_t Periphs) -{ - SET_BIT(DBGMCU->APB3FZ1, Periphs); -} - -/** - * @brief Unfreeze APB3 peripherals - * @rmtoll DBGMCU_APB3FZ1 WWDG1 LL_DBGMCU_APB3_GRP1_UnFreezePeriph\n - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_DBGMCU_APB3_GRP1_WWDG1_STOP - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_APB3_GRP1_UnFreezePeriph(uint32_t Periphs) -{ - CLEAR_BIT(DBGMCU->APB3FZ1, Periphs); -} - -/** - * @brief Freeze APB4 peripherals - * @rmtoll DBGMCU_APB4FZ1 I2C4 LL_DBGMCU_APB4_GRP1_FreezePeriph\n - * @rmtoll DBGMCU_APB4FZ1 LPTIM2 LL_DBGMCU_APB4_GRP1_FreezePeriph\n - * @rmtoll DBGMCU_APB4FZ1 LPTIM3 LL_DBGMCU_APB4_GRP1_FreezePeriph\n - * @rmtoll DBGMCU_APB4FZ1 LPTIM4 LL_DBGMCU_APB4_GRP1_FreezePeriph\n - * @rmtoll DBGMCU_APB4FZ1 LPTIM5 LL_DBGMCU_APB4_GRP1_FreezePeriph\n - * @rmtoll DBGMCU_APB4FZ1 RTC LL_DBGMCU_APB4_GRP1_FreezePeriph\n - * @rmtoll DBGMCU_APB4FZ1 WDGLSD1 LL_DBGMCU_APB4_GRP1_FreezePeriph\n - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_DBGMCU_APB4_GRP1_I2C4_STOP - * @arg @ref LL_DBGMCU_APB4_GRP1_LPTIM2_STOP - * @arg @ref LL_DBGMCU_APB4_GRP1_LPTIM3_STOP - * @arg @ref LL_DBGMCU_APB4_GRP1_LPTIM4_STOP (*) - * @arg @ref LL_DBGMCU_APB4_GRP1_LPTIM5_STOP (*) - * @arg @ref LL_DBGMCU_APB4_GRP1_RTC_STOP - * @arg @ref LL_DBGMCU_APB4_GRP1_IWDG1_STOP - * - * (*) value not defined in all devices - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_APB4_GRP1_FreezePeriph(uint32_t Periphs) -{ - SET_BIT(DBGMCU->APB4FZ1, Periphs); -} - -/** - * @brief Unfreeze APB4 peripherals - * @rmtoll DBGMCU_APB4FZ1 I2C4 LL_DBGMCU_APB4_GRP1_FreezePeriph\n - * @rmtoll DBGMCU_APB4FZ1 LPTIM2 LL_DBGMCU_APB4_GRP1_FreezePeriph\n - * @rmtoll DBGMCU_APB4FZ1 LPTIM3 LL_DBGMCU_APB4_GRP1_FreezePeriph\n - * @rmtoll DBGMCU_APB4FZ1 LPTIM4 LL_DBGMCU_APB4_GRP1_FreezePeriph\n - * @rmtoll DBGMCU_APB4FZ1 LPTIM5 LL_DBGMCU_APB4_GRP1_FreezePeriph\n - * @rmtoll DBGMCU_APB4FZ1 RTC LL_DBGMCU_APB4_GRP1_FreezePeriph\n - * @rmtoll DBGMCU_APB4FZ1 WDGLSD1 LL_DBGMCU_APB4_GRP1_FreezePeriph\n - * @param Periphs This parameter can be a combination of the following values: - * @arg @ref LL_DBGMCU_APB4_GRP1_I2C4_STOP - * @arg @ref LL_DBGMCU_APB4_GRP1_LPTIM2_STOP - * @arg @ref LL_DBGMCU_APB4_GRP1_LPTIM3_STOP - * @arg @ref LL_DBGMCU_APB4_GRP1_LPTIM4_STOP (*) - * @arg @ref LL_DBGMCU_APB4_GRP1_LPTIM5_STOP (*) - * @arg @ref LL_DBGMCU_APB4_GRP1_RTC_STOP - * @arg @ref LL_DBGMCU_APB4_GRP1_IWDG1_STOP - * - * (*) value not defined in all devices - * @retval None - */ -__STATIC_INLINE void LL_DBGMCU_APB4_GRP1_UnFreezePeriph(uint32_t Periphs) -{ - CLEAR_BIT(DBGMCU->APB4FZ1, Periphs); -} -/** - * @} - */ - -/** @defgroup SYSTEM_LL_EF_FLASH FLASH - * @{ - */ - -/** - * @brief Set FLASH Latency - * @rmtoll FLASH_ACR LATENCY LL_FLASH_SetLatency - * @param Latency This parameter can be one of the following values: - * @arg @ref LL_FLASH_LATENCY_0 - * @arg @ref LL_FLASH_LATENCY_1 - * @arg @ref LL_FLASH_LATENCY_2 - * @arg @ref LL_FLASH_LATENCY_3 - * @arg @ref LL_FLASH_LATENCY_4 - * @arg @ref LL_FLASH_LATENCY_5 - * @arg @ref LL_FLASH_LATENCY_6 - * @arg @ref LL_FLASH_LATENCY_7 - * @retval None - */ -__STATIC_INLINE void LL_FLASH_SetLatency(uint32_t Latency) -{ - MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, Latency); -} - -/** - * @brief Get FLASH Latency - * @rmtoll FLASH_ACR LATENCY LL_FLASH_GetLatency - * @retval Returned value can be one of the following values: - * @arg @ref LL_FLASH_LATENCY_0 - * @arg @ref LL_FLASH_LATENCY_1 - * @arg @ref LL_FLASH_LATENCY_2 - * @arg @ref LL_FLASH_LATENCY_3 - * @arg @ref LL_FLASH_LATENCY_4 - * @arg @ref LL_FLASH_LATENCY_5 - * @arg @ref LL_FLASH_LATENCY_6 - * @arg @ref LL_FLASH_LATENCY_7 - */ -__STATIC_INLINE uint32_t LL_FLASH_GetLatency(void) -{ - return (uint32_t)(READ_BIT(FLASH->ACR, FLASH_ACR_LATENCY)); -} - -/** - * @} - */ - -#if defined(DUAL_CORE) -/** @defgroup SYSTEM_LL_EF_ART ART - * @{ - */ - -/** - * @brief Enable the Cortex-M4 ART cache. - * @rmtoll ART_CTR EN LL_ART_Enable - * @retval None - */ -__STATIC_INLINE void LL_ART_Enable(void) -{ - SET_BIT(ART->CTR, ART_CTR_EN); -} - -/** - * @brief Disable the Cortex-M4 ART cache. - * @rmtoll ART_CTR EN LL_ART_Disable - * @retval None - */ -__STATIC_INLINE void LL_ART_Disable(void) -{ - CLEAR_BIT(ART->CTR, ART_CTR_EN); -} - -/** - * @brief Check if the Cortex-M4 ART cache is enabled - * @rmtoll ART_CTR EN LL_ART_IsEnabled - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_ART_IsEnabled(void) -{ - return ((READ_BIT(ART->CTR, ART_CTR_EN) == ART_CTR_EN) ? 1UL : 0UL); -} - -/** - * @brief Set the Cortex-M4 ART cache Base Address. - * @rmtoll ART_CTR PCACHEADDR LL_ART_SetBaseAddress - * @param BaseAddress Specifies the Base address of 1 Mbyte address page (cacheable page) - from which the ART accelerator loads code to the cache. - * @retval None - */ -__STATIC_INLINE void LL_ART_SetBaseAddress(uint32_t BaseAddress) -{ - MODIFY_REG(ART->CTR, ART_CTR_PCACHEADDR, (((BaseAddress) >> 12U) & 0x000FFF00UL)); -} - -/** - * @brief Get the Cortex-M4 ART cache Base Address. - * @rmtoll ART_CTR PCACHEADDR LL_ART_GetBaseAddress - * @retval the Base address of 1 Mbyte address page (cacheable page) - from which the ART accelerator loads code to the cache - */ -__STATIC_INLINE uint32_t LL_ART_GetBaseAddress(void) -{ - return (uint32_t)(READ_BIT(ART->CTR, ART_CTR_PCACHEADDR) << 12U); -} -#endif /* DUAL_CORE */ - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -#endif /* defined (FLASH) || defined (SYSCFG) || defined (DBGMCU) */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* __STM32H7xx_LL_SYSTEM_H */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_tim.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_tim.h deleted file mode 100644 index f68a4e0..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_tim.h +++ /dev/null @@ -1,5209 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_ll_tim.h - * @author MCD Application Team - * @brief Header file of TIM LL module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef __STM32H7xx_LL_TIM_H -#define __STM32H7xx_LL_TIM_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx.h" - -/** @addtogroup STM32H7xx_LL_Driver - * @{ - */ - -#if defined (TIM1) || defined (TIM2) || defined (TIM3) || defined (TIM4) || defined (TIM5) || defined (TIM6) || defined (TIM7) || defined (TIM8) || defined (TIM12) || defined (TIM13) || defined (TIM14) || defined (TIM15) || defined (TIM16) || defined (TIM17) || defined (TIM23) || defined (TIM24) - -/** @defgroup TIM_LL TIM - * @{ - */ - -/* Private types -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/** @defgroup TIM_LL_Private_Variables TIM Private Variables - * @{ - */ -static const uint8_t OFFSET_TAB_CCMRx[] = -{ - 0x00U, /* 0: TIMx_CH1 */ - 0x00U, /* 1: TIMx_CH1N */ - 0x00U, /* 2: TIMx_CH2 */ - 0x00U, /* 3: TIMx_CH2N */ - 0x04U, /* 4: TIMx_CH3 */ - 0x04U, /* 5: TIMx_CH3N */ - 0x04U, /* 6: TIMx_CH4 */ - 0x3CU, /* 7: TIMx_CH5 */ - 0x3CU /* 8: TIMx_CH6 */ -}; - -static const uint8_t SHIFT_TAB_OCxx[] = -{ - 0U, /* 0: OC1M, OC1FE, OC1PE */ - 0U, /* 1: - NA */ - 8U, /* 2: OC2M, OC2FE, OC2PE */ - 0U, /* 3: - NA */ - 0U, /* 4: OC3M, OC3FE, OC3PE */ - 0U, /* 5: - NA */ - 8U, /* 6: OC4M, OC4FE, OC4PE */ - 0U, /* 7: OC5M, OC5FE, OC5PE */ - 8U /* 8: OC6M, OC6FE, OC6PE */ -}; - -static const uint8_t SHIFT_TAB_ICxx[] = -{ - 0U, /* 0: CC1S, IC1PSC, IC1F */ - 0U, /* 1: - NA */ - 8U, /* 2: CC2S, IC2PSC, IC2F */ - 0U, /* 3: - NA */ - 0U, /* 4: CC3S, IC3PSC, IC3F */ - 0U, /* 5: - NA */ - 8U, /* 6: CC4S, IC4PSC, IC4F */ - 0U, /* 7: - NA */ - 0U /* 8: - NA */ -}; - -static const uint8_t SHIFT_TAB_CCxP[] = -{ - 0U, /* 0: CC1P */ - 2U, /* 1: CC1NP */ - 4U, /* 2: CC2P */ - 6U, /* 3: CC2NP */ - 8U, /* 4: CC3P */ - 10U, /* 5: CC3NP */ - 12U, /* 6: CC4P */ - 16U, /* 7: CC5P */ - 20U /* 8: CC6P */ -}; - -static const uint8_t SHIFT_TAB_OISx[] = -{ - 0U, /* 0: OIS1 */ - 1U, /* 1: OIS1N */ - 2U, /* 2: OIS2 */ - 3U, /* 3: OIS2N */ - 4U, /* 4: OIS3 */ - 5U, /* 5: OIS3N */ - 6U, /* 6: OIS4 */ - 8U, /* 7: OIS5 */ - 10U /* 8: OIS6 */ -}; -/** - * @} - */ - -/* Private constants ---------------------------------------------------------*/ -/** @defgroup TIM_LL_Private_Constants TIM Private Constants - * @{ - */ - -#if defined(TIM_BREAK_INPUT_SUPPORT) -/* Defines used for the bit position in the register and perform offsets */ -#define TIM_POSITION_BRK_SOURCE (POSITION_VAL(Source) & 0x1FUL) - -/* Generic bit definitions for TIMx_AF1 register */ -#define TIMx_AF1_BKINP TIM1_AF1_BKINP /*!< BRK BKIN input polarity */ -#define TIMx_AF1_ETRSEL TIM1_AF1_ETRSEL /*!< TIMx ETR source selection */ -#endif /* TIM_BREAK_INPUT_SUPPORT */ - - -/* Mask used to set the TDG[x:0] of the DTG bits of the TIMx_BDTR register */ -#define DT_DELAY_1 ((uint8_t)0x7F) -#define DT_DELAY_2 ((uint8_t)0x3F) -#define DT_DELAY_3 ((uint8_t)0x1F) -#define DT_DELAY_4 ((uint8_t)0x1F) - -/* Mask used to set the DTG[7:5] bits of the DTG bits of the TIMx_BDTR register */ -#define DT_RANGE_1 ((uint8_t)0x00) -#define DT_RANGE_2 ((uint8_t)0x80) -#define DT_RANGE_3 ((uint8_t)0xC0) -#define DT_RANGE_4 ((uint8_t)0xE0) - - -/** - * @} - */ - -/* Private macros ------------------------------------------------------------*/ -/** @defgroup TIM_LL_Private_Macros TIM Private Macros - * @{ - */ -/** @brief Convert channel id into channel index. - * @param __CHANNEL__ This parameter can be one of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH1N - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH2N - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH3N - * @arg @ref LL_TIM_CHANNEL_CH4 - * @arg @ref LL_TIM_CHANNEL_CH5 - * @arg @ref LL_TIM_CHANNEL_CH6 - * @retval none - */ -#define TIM_GET_CHANNEL_INDEX( __CHANNEL__) \ - (((__CHANNEL__) == LL_TIM_CHANNEL_CH1) ? 0U :\ - ((__CHANNEL__) == LL_TIM_CHANNEL_CH1N) ? 1U :\ - ((__CHANNEL__) == LL_TIM_CHANNEL_CH2) ? 2U :\ - ((__CHANNEL__) == LL_TIM_CHANNEL_CH2N) ? 3U :\ - ((__CHANNEL__) == LL_TIM_CHANNEL_CH3) ? 4U :\ - ((__CHANNEL__) == LL_TIM_CHANNEL_CH3N) ? 5U :\ - ((__CHANNEL__) == LL_TIM_CHANNEL_CH4) ? 6U :\ - ((__CHANNEL__) == LL_TIM_CHANNEL_CH5) ? 7U : 8U) - -/** @brief Calculate the deadtime sampling period(in ps). - * @param __TIMCLK__ timer input clock frequency (in Hz). - * @param __CKD__ This parameter can be one of the following values: - * @arg @ref LL_TIM_CLOCKDIVISION_DIV1 - * @arg @ref LL_TIM_CLOCKDIVISION_DIV2 - * @arg @ref LL_TIM_CLOCKDIVISION_DIV4 - * @retval none - */ -#define TIM_CALC_DTS(__TIMCLK__, __CKD__) \ - (((__CKD__) == LL_TIM_CLOCKDIVISION_DIV1) ? ((uint64_t)1000000000000U/(__TIMCLK__)) : \ - ((__CKD__) == LL_TIM_CLOCKDIVISION_DIV2) ? ((uint64_t)1000000000000U/((__TIMCLK__) >> 1U)) : \ - ((uint64_t)1000000000000U/((__TIMCLK__) >> 2U))) -/** - * @} - */ - - -/* Exported types ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) -/** @defgroup TIM_LL_ES_INIT TIM Exported Init structure - * @{ - */ - -/** - * @brief TIM Time Base configuration structure definition. - */ -typedef struct -{ - uint16_t Prescaler; /*!< Specifies the prescaler value used to divide the TIM clock. - This parameter can be a number between Min_Data=0x0000 and Max_Data=0xFFFF. - - This feature can be modified afterwards using unitary function - @ref LL_TIM_SetPrescaler().*/ - - uint32_t CounterMode; /*!< Specifies the counter mode. - This parameter can be a value of @ref TIM_LL_EC_COUNTERMODE. - - This feature can be modified afterwards using unitary function - @ref LL_TIM_SetCounterMode().*/ - - uint32_t Autoreload; /*!< Specifies the auto reload value to be loaded into the active - Auto-Reload Register at the next update event. - This parameter must be a number between Min_Data=0x0000 and Max_Data=0xFFFF. - Some timer instances may support 32 bits counters. In that case this parameter must - be a number between 0x0000 and 0xFFFFFFFF. - - This feature can be modified afterwards using unitary function - @ref LL_TIM_SetAutoReload().*/ - - uint32_t ClockDivision; /*!< Specifies the clock division. - This parameter can be a value of @ref TIM_LL_EC_CLOCKDIVISION. - - This feature can be modified afterwards using unitary function - @ref LL_TIM_SetClockDivision().*/ - - uint32_t RepetitionCounter; /*!< Specifies the repetition counter value. Each time the RCR downcounter - reaches zero, an update event is generated and counting restarts - from the RCR value (N). - This means in PWM mode that (N+1) corresponds to: - - the number of PWM periods in edge-aligned mode - - the number of half PWM period in center-aligned mode - GP timers: this parameter must be a number between Min_Data = 0x00 and - Max_Data = 0xFF. - Advanced timers: this parameter must be a number between Min_Data = 0x0000 and - Max_Data = 0xFFFF. - - This feature can be modified afterwards using unitary function - @ref LL_TIM_SetRepetitionCounter().*/ -} LL_TIM_InitTypeDef; - -/** - * @brief TIM Output Compare configuration structure definition. - */ -typedef struct -{ - uint32_t OCMode; /*!< Specifies the output mode. - This parameter can be a value of @ref TIM_LL_EC_OCMODE. - - This feature can be modified afterwards using unitary function - @ref LL_TIM_OC_SetMode().*/ - - uint32_t OCState; /*!< Specifies the TIM Output Compare state. - This parameter can be a value of @ref TIM_LL_EC_OCSTATE. - - This feature can be modified afterwards using unitary functions - @ref LL_TIM_CC_EnableChannel() or @ref LL_TIM_CC_DisableChannel().*/ - - uint32_t OCNState; /*!< Specifies the TIM complementary Output Compare state. - This parameter can be a value of @ref TIM_LL_EC_OCSTATE. - - This feature can be modified afterwards using unitary functions - @ref LL_TIM_CC_EnableChannel() or @ref LL_TIM_CC_DisableChannel().*/ - - uint32_t CompareValue; /*!< Specifies the Compare value to be loaded into the Capture Compare Register. - This parameter can be a number between Min_Data=0x0000 and Max_Data=0xFFFF. - - This feature can be modified afterwards using unitary function - LL_TIM_OC_SetCompareCHx (x=1..6).*/ - - uint32_t OCPolarity; /*!< Specifies the output polarity. - This parameter can be a value of @ref TIM_LL_EC_OCPOLARITY. - - This feature can be modified afterwards using unitary function - @ref LL_TIM_OC_SetPolarity().*/ - - uint32_t OCNPolarity; /*!< Specifies the complementary output polarity. - This parameter can be a value of @ref TIM_LL_EC_OCPOLARITY. - - This feature can be modified afterwards using unitary function - @ref LL_TIM_OC_SetPolarity().*/ - - - uint32_t OCIdleState; /*!< Specifies the TIM Output Compare pin state during Idle state. - This parameter can be a value of @ref TIM_LL_EC_OCIDLESTATE. - - This feature can be modified afterwards using unitary function - @ref LL_TIM_OC_SetIdleState().*/ - - uint32_t OCNIdleState; /*!< Specifies the TIM Output Compare pin state during Idle state. - This parameter can be a value of @ref TIM_LL_EC_OCIDLESTATE. - - This feature can be modified afterwards using unitary function - @ref LL_TIM_OC_SetIdleState().*/ -} LL_TIM_OC_InitTypeDef; - -/** - * @brief TIM Input Capture configuration structure definition. - */ - -typedef struct -{ - - uint32_t ICPolarity; /*!< Specifies the active edge of the input signal. - This parameter can be a value of @ref TIM_LL_EC_IC_POLARITY. - - This feature can be modified afterwards using unitary function - @ref LL_TIM_IC_SetPolarity().*/ - - uint32_t ICActiveInput; /*!< Specifies the input. - This parameter can be a value of @ref TIM_LL_EC_ACTIVEINPUT. - - This feature can be modified afterwards using unitary function - @ref LL_TIM_IC_SetActiveInput().*/ - - uint32_t ICPrescaler; /*!< Specifies the Input Capture Prescaler. - This parameter can be a value of @ref TIM_LL_EC_ICPSC. - - This feature can be modified afterwards using unitary function - @ref LL_TIM_IC_SetPrescaler().*/ - - uint32_t ICFilter; /*!< Specifies the input capture filter. - This parameter can be a value of @ref TIM_LL_EC_IC_FILTER. - - This feature can be modified afterwards using unitary function - @ref LL_TIM_IC_SetFilter().*/ -} LL_TIM_IC_InitTypeDef; - - -/** - * @brief TIM Encoder interface configuration structure definition. - */ -typedef struct -{ - uint32_t EncoderMode; /*!< Specifies the encoder resolution (x2 or x4). - This parameter can be a value of @ref TIM_LL_EC_ENCODERMODE. - - This feature can be modified afterwards using unitary function - @ref LL_TIM_SetEncoderMode().*/ - - uint32_t IC1Polarity; /*!< Specifies the active edge of TI1 input. - This parameter can be a value of @ref TIM_LL_EC_IC_POLARITY. - - This feature can be modified afterwards using unitary function - @ref LL_TIM_IC_SetPolarity().*/ - - uint32_t IC1ActiveInput; /*!< Specifies the TI1 input source - This parameter can be a value of @ref TIM_LL_EC_ACTIVEINPUT. - - This feature can be modified afterwards using unitary function - @ref LL_TIM_IC_SetActiveInput().*/ - - uint32_t IC1Prescaler; /*!< Specifies the TI1 input prescaler value. - This parameter can be a value of @ref TIM_LL_EC_ICPSC. - - This feature can be modified afterwards using unitary function - @ref LL_TIM_IC_SetPrescaler().*/ - - uint32_t IC1Filter; /*!< Specifies the TI1 input filter. - This parameter can be a value of @ref TIM_LL_EC_IC_FILTER. - - This feature can be modified afterwards using unitary function - @ref LL_TIM_IC_SetFilter().*/ - - uint32_t IC2Polarity; /*!< Specifies the active edge of TI2 input. - This parameter can be a value of @ref TIM_LL_EC_IC_POLARITY. - - This feature can be modified afterwards using unitary function - @ref LL_TIM_IC_SetPolarity().*/ - - uint32_t IC2ActiveInput; /*!< Specifies the TI2 input source - This parameter can be a value of @ref TIM_LL_EC_ACTIVEINPUT. - - This feature can be modified afterwards using unitary function - @ref LL_TIM_IC_SetActiveInput().*/ - - uint32_t IC2Prescaler; /*!< Specifies the TI2 input prescaler value. - This parameter can be a value of @ref TIM_LL_EC_ICPSC. - - This feature can be modified afterwards using unitary function - @ref LL_TIM_IC_SetPrescaler().*/ - - uint32_t IC2Filter; /*!< Specifies the TI2 input filter. - This parameter can be a value of @ref TIM_LL_EC_IC_FILTER. - - This feature can be modified afterwards using unitary function - @ref LL_TIM_IC_SetFilter().*/ - -} LL_TIM_ENCODER_InitTypeDef; - -/** - * @brief TIM Hall sensor interface configuration structure definition. - */ -typedef struct -{ - - uint32_t IC1Polarity; /*!< Specifies the active edge of TI1 input. - This parameter can be a value of @ref TIM_LL_EC_IC_POLARITY. - - This feature can be modified afterwards using unitary function - @ref LL_TIM_IC_SetPolarity().*/ - - uint32_t IC1Prescaler; /*!< Specifies the TI1 input prescaler value. - Prescaler must be set to get a maximum counter period longer than the - time interval between 2 consecutive changes on the Hall inputs. - This parameter can be a value of @ref TIM_LL_EC_ICPSC. - - This feature can be modified afterwards using unitary function - @ref LL_TIM_IC_SetPrescaler().*/ - - uint32_t IC1Filter; /*!< Specifies the TI1 input filter. - This parameter can be a value of - @ref TIM_LL_EC_IC_FILTER. - - This feature can be modified afterwards using unitary function - @ref LL_TIM_IC_SetFilter().*/ - - uint32_t CommutationDelay; /*!< Specifies the compare value to be loaded into the Capture Compare Register. - A positive pulse (TRGO event) is generated with a programmable delay every time - a change occurs on the Hall inputs. - This parameter can be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF. - - This feature can be modified afterwards using unitary function - @ref LL_TIM_OC_SetCompareCH2().*/ -} LL_TIM_HALLSENSOR_InitTypeDef; - -/** - * @brief BDTR (Break and Dead Time) structure definition - */ -typedef struct -{ - uint32_t OSSRState; /*!< Specifies the Off-State selection used in Run mode. - This parameter can be a value of @ref TIM_LL_EC_OSSR - - This feature can be modified afterwards using unitary function - @ref LL_TIM_SetOffStates() - - @note This bit-field cannot be modified as long as LOCK level 2 has been - programmed. */ - - uint32_t OSSIState; /*!< Specifies the Off-State used in Idle state. - This parameter can be a value of @ref TIM_LL_EC_OSSI - - This feature can be modified afterwards using unitary function - @ref LL_TIM_SetOffStates() - - @note This bit-field cannot be modified as long as LOCK level 2 has been - programmed. */ - - uint32_t LockLevel; /*!< Specifies the LOCK level parameters. - This parameter can be a value of @ref TIM_LL_EC_LOCKLEVEL - - @note The LOCK bits can be written only once after the reset. Once the TIMx_BDTR - register has been written, their content is frozen until the next reset.*/ - - uint8_t DeadTime; /*!< Specifies the delay time between the switching-off and the - switching-on of the outputs. - This parameter can be a number between Min_Data = 0x00 and Max_Data = 0xFF. - - This feature can be modified afterwards using unitary function - @ref LL_TIM_OC_SetDeadTime() - - @note This bit-field can not be modified as long as LOCK level 1, 2 or 3 has been - programmed. */ - - uint16_t BreakState; /*!< Specifies whether the TIM Break input is enabled or not. - This parameter can be a value of @ref TIM_LL_EC_BREAK_ENABLE - - This feature can be modified afterwards using unitary functions - @ref LL_TIM_EnableBRK() or @ref LL_TIM_DisableBRK() - - @note This bit-field can not be modified as long as LOCK level 1 has been - programmed. */ - - uint32_t BreakPolarity; /*!< Specifies the TIM Break Input pin polarity. - This parameter can be a value of @ref TIM_LL_EC_BREAK_POLARITY - - This feature can be modified afterwards using unitary function - @ref LL_TIM_ConfigBRK() - - @note This bit-field can not be modified as long as LOCK level 1 has been - programmed. */ - - uint32_t BreakFilter; /*!< Specifies the TIM Break Filter. - This parameter can be a value of @ref TIM_LL_EC_BREAK_FILTER - - This feature can be modified afterwards using unitary function - @ref LL_TIM_ConfigBRK() - - @note This bit-field can not be modified as long as LOCK level 1 has been - programmed. */ - -#if defined(TIM_BDTR_BKBID) - uint32_t BreakAFMode; /*!< Specifies the alternate function mode of the break input. - This parameter can be a value of @ref TIM_LL_EC_BREAK_AFMODE - - This feature can be modified afterwards using unitary functions - @ref LL_TIM_ConfigBRK() - - @note Bidirectional break input is only supported by advanced timers instances. - - @note This bit-field can not be modified as long as LOCK level 1 has been - programmed. */ - -#endif /*TIM_BDTR_BKBID */ - uint32_t Break2State; /*!< Specifies whether the TIM Break2 input is enabled or not. - This parameter can be a value of @ref TIM_LL_EC_BREAK2_ENABLE - - This feature can be modified afterwards using unitary functions - @ref LL_TIM_EnableBRK2() or @ref LL_TIM_DisableBRK2() - - @note This bit-field can not be modified as long as LOCK level 1 has been - programmed. */ - - uint32_t Break2Polarity; /*!< Specifies the TIM Break2 Input pin polarity. - This parameter can be a value of @ref TIM_LL_EC_BREAK2_POLARITY - - This feature can be modified afterwards using unitary function - @ref LL_TIM_ConfigBRK2() - - @note This bit-field can not be modified as long as LOCK level 1 has been - programmed. */ - - uint32_t Break2Filter; /*!< Specifies the TIM Break2 Filter. - This parameter can be a value of @ref TIM_LL_EC_BREAK2_FILTER - - This feature can be modified afterwards using unitary function - @ref LL_TIM_ConfigBRK2() - - @note This bit-field can not be modified as long as LOCK level 1 has been - programmed. */ - -#if defined(TIM_BDTR_BKBID) - uint32_t Break2AFMode; /*!< Specifies the alternate function mode of the break2 input. - This parameter can be a value of @ref TIM_LL_EC_BREAK2_AFMODE - - This feature can be modified afterwards using unitary functions - @ref LL_TIM_ConfigBRK2() - - @note Bidirectional break input is only supported by advanced timers instances. - - @note This bit-field can not be modified as long as LOCK level 1 has been - programmed. */ - -#endif /*TIM_BDTR_BKBID */ - uint32_t AutomaticOutput; /*!< Specifies whether the TIM Automatic Output feature is enabled or not. - This parameter can be a value of @ref TIM_LL_EC_AUTOMATICOUTPUT_ENABLE - - This feature can be modified afterwards using unitary functions - @ref LL_TIM_EnableAutomaticOutput() or @ref LL_TIM_DisableAutomaticOutput() - - @note This bit-field can not be modified as long as LOCK level 1 has been - programmed. */ -} LL_TIM_BDTR_InitTypeDef; - -/** - * @} - */ -#endif /* USE_FULL_LL_DRIVER */ - -/* Exported constants --------------------------------------------------------*/ -/** @defgroup TIM_LL_Exported_Constants TIM Exported Constants - * @{ - */ - -/** @defgroup TIM_LL_EC_GET_FLAG Get Flags Defines - * @brief Flags defines which can be used with LL_TIM_ReadReg function. - * @{ - */ -#define LL_TIM_SR_UIF TIM_SR_UIF /*!< Update interrupt flag */ -#define LL_TIM_SR_CC1IF TIM_SR_CC1IF /*!< Capture/compare 1 interrupt flag */ -#define LL_TIM_SR_CC2IF TIM_SR_CC2IF /*!< Capture/compare 2 interrupt flag */ -#define LL_TIM_SR_CC3IF TIM_SR_CC3IF /*!< Capture/compare 3 interrupt flag */ -#define LL_TIM_SR_CC4IF TIM_SR_CC4IF /*!< Capture/compare 4 interrupt flag */ -#define LL_TIM_SR_CC5IF TIM_SR_CC5IF /*!< Capture/compare 5 interrupt flag */ -#define LL_TIM_SR_CC6IF TIM_SR_CC6IF /*!< Capture/compare 6 interrupt flag */ -#define LL_TIM_SR_COMIF TIM_SR_COMIF /*!< COM interrupt flag */ -#define LL_TIM_SR_TIF TIM_SR_TIF /*!< Trigger interrupt flag */ -#define LL_TIM_SR_BIF TIM_SR_BIF /*!< Break interrupt flag */ -#define LL_TIM_SR_B2IF TIM_SR_B2IF /*!< Second break interrupt flag */ -#define LL_TIM_SR_CC1OF TIM_SR_CC1OF /*!< Capture/Compare 1 overcapture flag */ -#define LL_TIM_SR_CC2OF TIM_SR_CC2OF /*!< Capture/Compare 2 overcapture flag */ -#define LL_TIM_SR_CC3OF TIM_SR_CC3OF /*!< Capture/Compare 3 overcapture flag */ -#define LL_TIM_SR_CC4OF TIM_SR_CC4OF /*!< Capture/Compare 4 overcapture flag */ -#define LL_TIM_SR_SBIF TIM_SR_SBIF /*!< System Break interrupt flag */ -/** - * @} - */ - -#if defined(USE_FULL_LL_DRIVER) -/** @defgroup TIM_LL_EC_BREAK_ENABLE Break Enable - * @{ - */ -#define LL_TIM_BREAK_DISABLE 0x00000000U /*!< Break function disabled */ -#define LL_TIM_BREAK_ENABLE TIM_BDTR_BKE /*!< Break function enabled */ -/** - * @} - */ - -/** @defgroup TIM_LL_EC_BREAK2_ENABLE Break2 Enable - * @{ - */ -#define LL_TIM_BREAK2_DISABLE 0x00000000U /*!< Break2 function disabled */ -#define LL_TIM_BREAK2_ENABLE TIM_BDTR_BK2E /*!< Break2 function enabled */ -/** - * @} - */ - -/** @defgroup TIM_LL_EC_AUTOMATICOUTPUT_ENABLE Automatic output enable - * @{ - */ -#define LL_TIM_AUTOMATICOUTPUT_DISABLE 0x00000000U /*!< MOE can be set only by software */ -#define LL_TIM_AUTOMATICOUTPUT_ENABLE TIM_BDTR_AOE /*!< MOE can be set by software or automatically at the next update event */ -/** - * @} - */ -#endif /* USE_FULL_LL_DRIVER */ - -/** @defgroup TIM_LL_EC_IT IT Defines - * @brief IT defines which can be used with LL_TIM_ReadReg and LL_TIM_WriteReg functions. - * @{ - */ -#define LL_TIM_DIER_UIE TIM_DIER_UIE /*!< Update interrupt enable */ -#define LL_TIM_DIER_CC1IE TIM_DIER_CC1IE /*!< Capture/compare 1 interrupt enable */ -#define LL_TIM_DIER_CC2IE TIM_DIER_CC2IE /*!< Capture/compare 2 interrupt enable */ -#define LL_TIM_DIER_CC3IE TIM_DIER_CC3IE /*!< Capture/compare 3 interrupt enable */ -#define LL_TIM_DIER_CC4IE TIM_DIER_CC4IE /*!< Capture/compare 4 interrupt enable */ -#define LL_TIM_DIER_COMIE TIM_DIER_COMIE /*!< COM interrupt enable */ -#define LL_TIM_DIER_TIE TIM_DIER_TIE /*!< Trigger interrupt enable */ -#define LL_TIM_DIER_BIE TIM_DIER_BIE /*!< Break interrupt enable */ -/** - * @} - */ - -/** @defgroup TIM_LL_EC_UPDATESOURCE Update Source - * @{ - */ -#define LL_TIM_UPDATESOURCE_REGULAR 0x00000000U /*!< Counter overflow/underflow, Setting the UG bit or Update generation through the slave mode controller generates an update request */ -#define LL_TIM_UPDATESOURCE_COUNTER TIM_CR1_URS /*!< Only counter overflow/underflow generates an update request */ -/** - * @} - */ - -/** @defgroup TIM_LL_EC_ONEPULSEMODE One Pulse Mode - * @{ - */ -#define LL_TIM_ONEPULSEMODE_SINGLE TIM_CR1_OPM /*!< Counter stops counting at the next update event */ -#define LL_TIM_ONEPULSEMODE_REPETITIVE 0x00000000U /*!< Counter is not stopped at update event */ -/** - * @} - */ - -/** @defgroup TIM_LL_EC_COUNTERMODE Counter Mode - * @{ - */ -#define LL_TIM_COUNTERMODE_UP 0x00000000U /*!TIMx_CCRy else active.*/ -#define LL_TIM_OCMODE_PWM2 (TIM_CCMR1_OC1M_2 | TIM_CCMR1_OC1M_1 | TIM_CCMR1_OC1M_0) /*!TIMx_CCRy else inactive*/ -#define LL_TIM_OCMODE_RETRIG_OPM1 TIM_CCMR1_OC1M_3 /*!__REG__, (__VALUE__)) - -/** - * @brief Read a value in TIM register. - * @param __INSTANCE__ TIM Instance - * @param __REG__ Register to be read - * @retval Register value - */ -#define LL_TIM_ReadReg(__INSTANCE__, __REG__) READ_REG((__INSTANCE__)->__REG__) -/** - * @} - */ - -/** - * @brief HELPER macro retrieving the UIFCPY flag from the counter value. - * @note ex: @ref __LL_TIM_GETFLAG_UIFCPY (@ref LL_TIM_GetCounter ()); - * @note Relevant only if UIF flag remapping has been enabled (UIF status bit is copied - * to TIMx_CNT register bit 31) - * @param __CNT__ Counter value - * @retval UIF status bit - */ -#define __LL_TIM_GETFLAG_UIFCPY(__CNT__) \ - (READ_BIT((__CNT__), TIM_CNT_UIFCPY) >> TIM_CNT_UIFCPY_Pos) - -/** - * @brief HELPER macro calculating DTG[0:7] in the TIMx_BDTR register to achieve the requested dead time duration. - * @note ex: @ref __LL_TIM_CALC_DEADTIME (80000000, @ref LL_TIM_GetClockDivision (), 120); - * @param __TIMCLK__ timer input clock frequency (in Hz) - * @param __CKD__ This parameter can be one of the following values: - * @arg @ref LL_TIM_CLOCKDIVISION_DIV1 - * @arg @ref LL_TIM_CLOCKDIVISION_DIV2 - * @arg @ref LL_TIM_CLOCKDIVISION_DIV4 - * @param __DT__ deadtime duration (in ns) - * @retval DTG[0:7] - */ -#define __LL_TIM_CALC_DEADTIME(__TIMCLK__, __CKD__, __DT__) \ - ( (((uint64_t)((__DT__)*1000U)) < ((DT_DELAY_1+1U) * TIM_CALC_DTS((__TIMCLK__), (__CKD__)))) ? \ - (uint8_t)(((uint64_t)((__DT__)*1000U) / TIM_CALC_DTS((__TIMCLK__), (__CKD__))) & DT_DELAY_1) : \ - (((uint64_t)((__DT__)*1000U)) < ((64U + (DT_DELAY_2+1U)) * 2U * TIM_CALC_DTS((__TIMCLK__), (__CKD__)))) ? \ - (uint8_t)(DT_RANGE_2 | ((uint8_t)((uint8_t)((((uint64_t)((__DT__)*1000U))/ TIM_CALC_DTS((__TIMCLK__), \ - (__CKD__))) >> 1U) - (uint8_t) 64) & DT_DELAY_2)) :\ - (((uint64_t)((__DT__)*1000U)) < ((32U + (DT_DELAY_3+1U)) * 8U * TIM_CALC_DTS((__TIMCLK__), (__CKD__)))) ? \ - (uint8_t)(DT_RANGE_3 | ((uint8_t)((uint8_t)(((((uint64_t)(__DT__)*1000U))/ TIM_CALC_DTS((__TIMCLK__), \ - (__CKD__))) >> 3U) - (uint8_t) 32) & DT_DELAY_3)) :\ - (((uint64_t)((__DT__)*1000U)) < ((32U + (DT_DELAY_4+1U)) * 16U * TIM_CALC_DTS((__TIMCLK__), (__CKD__)))) ? \ - (uint8_t)(DT_RANGE_4 | ((uint8_t)((uint8_t)(((((uint64_t)(__DT__)*1000U))/ TIM_CALC_DTS((__TIMCLK__), \ - (__CKD__))) >> 4U) - (uint8_t) 32) & DT_DELAY_4)) :\ - 0U) - -/** - * @brief HELPER macro calculating the prescaler value to achieve the required counter clock frequency. - * @note ex: @ref __LL_TIM_CALC_PSC (80000000, 1000000); - * @param __TIMCLK__ timer input clock frequency (in Hz) - * @param __CNTCLK__ counter clock frequency (in Hz) - * @retval Prescaler value (between Min_Data=0 and Max_Data=65535) - */ -#define __LL_TIM_CALC_PSC(__TIMCLK__, __CNTCLK__) \ - (((__TIMCLK__) >= (__CNTCLK__)) ? (uint32_t)((((__TIMCLK__) + (__CNTCLK__)/2U)/(__CNTCLK__)) - 1U) : 0U) - -/** - * @brief HELPER macro calculating the auto-reload value to achieve the required output signal frequency. - * @note ex: @ref __LL_TIM_CALC_ARR (1000000, @ref LL_TIM_GetPrescaler (), 10000); - * @param __TIMCLK__ timer input clock frequency (in Hz) - * @param __PSC__ prescaler - * @param __FREQ__ output signal frequency (in Hz) - * @retval Auto-reload value (between Min_Data=0 and Max_Data=65535) - */ -#define __LL_TIM_CALC_ARR(__TIMCLK__, __PSC__, __FREQ__) \ - ((((__TIMCLK__)/((__PSC__) + 1U)) >= (__FREQ__)) ? (((__TIMCLK__)/((__FREQ__) * ((__PSC__) + 1U))) - 1U) : 0U) - -/** - * @brief HELPER macro calculating the compare value required to achieve the required timer output compare - * active/inactive delay. - * @note ex: @ref __LL_TIM_CALC_DELAY (1000000, @ref LL_TIM_GetPrescaler (), 10); - * @param __TIMCLK__ timer input clock frequency (in Hz) - * @param __PSC__ prescaler - * @param __DELAY__ timer output compare active/inactive delay (in us) - * @retval Compare value (between Min_Data=0 and Max_Data=65535) - */ -#define __LL_TIM_CALC_DELAY(__TIMCLK__, __PSC__, __DELAY__) \ - ((uint32_t)(((uint64_t)(__TIMCLK__) * (uint64_t)(__DELAY__)) \ - / ((uint64_t)1000000U * (uint64_t)((__PSC__) + 1U)))) - -/** - * @brief HELPER macro calculating the auto-reload value to achieve the required pulse duration - * (when the timer operates in one pulse mode). - * @note ex: @ref __LL_TIM_CALC_PULSE (1000000, @ref LL_TIM_GetPrescaler (), 10, 20); - * @param __TIMCLK__ timer input clock frequency (in Hz) - * @param __PSC__ prescaler - * @param __DELAY__ timer output compare active/inactive delay (in us) - * @param __PULSE__ pulse duration (in us) - * @retval Auto-reload value (between Min_Data=0 and Max_Data=65535) - */ -#define __LL_TIM_CALC_PULSE(__TIMCLK__, __PSC__, __DELAY__, __PULSE__) \ - ((uint32_t)(__LL_TIM_CALC_DELAY((__TIMCLK__), (__PSC__), (__PULSE__)) \ - + __LL_TIM_CALC_DELAY((__TIMCLK__), (__PSC__), (__DELAY__)))) - -/** - * @brief HELPER macro retrieving the ratio of the input capture prescaler - * @note ex: @ref __LL_TIM_GET_ICPSC_RATIO (@ref LL_TIM_IC_GetPrescaler ()); - * @param __ICPSC__ This parameter can be one of the following values: - * @arg @ref LL_TIM_ICPSC_DIV1 - * @arg @ref LL_TIM_ICPSC_DIV2 - * @arg @ref LL_TIM_ICPSC_DIV4 - * @arg @ref LL_TIM_ICPSC_DIV8 - * @retval Input capture prescaler ratio (1, 2, 4 or 8) - */ -#define __LL_TIM_GET_ICPSC_RATIO(__ICPSC__) \ - ((uint32_t)(0x01U << (((__ICPSC__) >> 16U) >> TIM_CCMR1_IC1PSC_Pos))) - - -/** - * @} - */ - - -/** - * @} - */ - -/* Exported functions --------------------------------------------------------*/ -/** @defgroup TIM_LL_Exported_Functions TIM Exported Functions - * @{ - */ - -/** @defgroup TIM_LL_EF_Time_Base Time Base configuration - * @{ - */ -/** - * @brief Enable timer counter. - * @rmtoll CR1 CEN LL_TIM_EnableCounter - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_EnableCounter(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->CR1, TIM_CR1_CEN); -} - -/** - * @brief Disable timer counter. - * @rmtoll CR1 CEN LL_TIM_DisableCounter - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_DisableCounter(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->CR1, TIM_CR1_CEN); -} - -/** - * @brief Indicates whether the timer counter is enabled. - * @rmtoll CR1 CEN LL_TIM_IsEnabledCounter - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsEnabledCounter(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->CR1, TIM_CR1_CEN) == (TIM_CR1_CEN)) ? 1UL : 0UL); -} - -/** - * @brief Enable update event generation. - * @rmtoll CR1 UDIS LL_TIM_EnableUpdateEvent - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_EnableUpdateEvent(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->CR1, TIM_CR1_UDIS); -} - -/** - * @brief Disable update event generation. - * @rmtoll CR1 UDIS LL_TIM_DisableUpdateEvent - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_DisableUpdateEvent(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->CR1, TIM_CR1_UDIS); -} - -/** - * @brief Indicates whether update event generation is enabled. - * @rmtoll CR1 UDIS LL_TIM_IsEnabledUpdateEvent - * @param TIMx Timer instance - * @retval Inverted state of bit (0 or 1). - */ -__STATIC_INLINE uint32_t LL_TIM_IsEnabledUpdateEvent(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->CR1, TIM_CR1_UDIS) == (uint32_t)RESET) ? 1UL : 0UL); -} - -/** - * @brief Set update event source - * @note Update event source set to LL_TIM_UPDATESOURCE_REGULAR: any of the following events - * generate an update interrupt or DMA request if enabled: - * - Counter overflow/underflow - * - Setting the UG bit - * - Update generation through the slave mode controller - * @note Update event source set to LL_TIM_UPDATESOURCE_COUNTER: only counter - * overflow/underflow generates an update interrupt or DMA request if enabled. - * @rmtoll CR1 URS LL_TIM_SetUpdateSource - * @param TIMx Timer instance - * @param UpdateSource This parameter can be one of the following values: - * @arg @ref LL_TIM_UPDATESOURCE_REGULAR - * @arg @ref LL_TIM_UPDATESOURCE_COUNTER - * @retval None - */ -__STATIC_INLINE void LL_TIM_SetUpdateSource(TIM_TypeDef *TIMx, uint32_t UpdateSource) -{ - MODIFY_REG(TIMx->CR1, TIM_CR1_URS, UpdateSource); -} - -/** - * @brief Get actual event update source - * @rmtoll CR1 URS LL_TIM_GetUpdateSource - * @param TIMx Timer instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_TIM_UPDATESOURCE_REGULAR - * @arg @ref LL_TIM_UPDATESOURCE_COUNTER - */ -__STATIC_INLINE uint32_t LL_TIM_GetUpdateSource(const TIM_TypeDef *TIMx) -{ - return (uint32_t)(READ_BIT(TIMx->CR1, TIM_CR1_URS)); -} - -/** - * @brief Set one pulse mode (one shot v.s. repetitive). - * @rmtoll CR1 OPM LL_TIM_SetOnePulseMode - * @param TIMx Timer instance - * @param OnePulseMode This parameter can be one of the following values: - * @arg @ref LL_TIM_ONEPULSEMODE_SINGLE - * @arg @ref LL_TIM_ONEPULSEMODE_REPETITIVE - * @retval None - */ -__STATIC_INLINE void LL_TIM_SetOnePulseMode(TIM_TypeDef *TIMx, uint32_t OnePulseMode) -{ - MODIFY_REG(TIMx->CR1, TIM_CR1_OPM, OnePulseMode); -} - -/** - * @brief Get actual one pulse mode. - * @rmtoll CR1 OPM LL_TIM_GetOnePulseMode - * @param TIMx Timer instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_TIM_ONEPULSEMODE_SINGLE - * @arg @ref LL_TIM_ONEPULSEMODE_REPETITIVE - */ -__STATIC_INLINE uint32_t LL_TIM_GetOnePulseMode(const TIM_TypeDef *TIMx) -{ - return (uint32_t)(READ_BIT(TIMx->CR1, TIM_CR1_OPM)); -} - -/** - * @brief Set the timer counter counting mode. - * @note Macro IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx) can be used to - * check whether or not the counter mode selection feature is supported - * by a timer instance. - * @note Switching from Center Aligned counter mode to Edge counter mode (or reverse) - * requires a timer reset to avoid unexpected direction - * due to DIR bit readonly in center aligned mode. - * @rmtoll CR1 DIR LL_TIM_SetCounterMode\n - * CR1 CMS LL_TIM_SetCounterMode - * @param TIMx Timer instance - * @param CounterMode This parameter can be one of the following values: - * @arg @ref LL_TIM_COUNTERMODE_UP - * @arg @ref LL_TIM_COUNTERMODE_DOWN - * @arg @ref LL_TIM_COUNTERMODE_CENTER_UP - * @arg @ref LL_TIM_COUNTERMODE_CENTER_DOWN - * @arg @ref LL_TIM_COUNTERMODE_CENTER_UP_DOWN - * @retval None - */ -__STATIC_INLINE void LL_TIM_SetCounterMode(TIM_TypeDef *TIMx, uint32_t CounterMode) -{ - MODIFY_REG(TIMx->CR1, (TIM_CR1_DIR | TIM_CR1_CMS), CounterMode); -} - -/** - * @brief Get actual counter mode. - * @note Macro IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx) can be used to - * check whether or not the counter mode selection feature is supported - * by a timer instance. - * @rmtoll CR1 DIR LL_TIM_GetCounterMode\n - * CR1 CMS LL_TIM_GetCounterMode - * @param TIMx Timer instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_TIM_COUNTERMODE_UP - * @arg @ref LL_TIM_COUNTERMODE_DOWN - * @arg @ref LL_TIM_COUNTERMODE_CENTER_UP - * @arg @ref LL_TIM_COUNTERMODE_CENTER_DOWN - * @arg @ref LL_TIM_COUNTERMODE_CENTER_UP_DOWN - */ -__STATIC_INLINE uint32_t LL_TIM_GetCounterMode(const TIM_TypeDef *TIMx) -{ - uint32_t counter_mode; - - counter_mode = (uint32_t)(READ_BIT(TIMx->CR1, TIM_CR1_CMS)); - - if (counter_mode == 0U) - { - counter_mode = (uint32_t)(READ_BIT(TIMx->CR1, TIM_CR1_DIR)); - } - - return counter_mode; -} - -/** - * @brief Enable auto-reload (ARR) preload. - * @rmtoll CR1 ARPE LL_TIM_EnableARRPreload - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_EnableARRPreload(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->CR1, TIM_CR1_ARPE); -} - -/** - * @brief Disable auto-reload (ARR) preload. - * @rmtoll CR1 ARPE LL_TIM_DisableARRPreload - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_DisableARRPreload(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->CR1, TIM_CR1_ARPE); -} - -/** - * @brief Indicates whether auto-reload (ARR) preload is enabled. - * @rmtoll CR1 ARPE LL_TIM_IsEnabledARRPreload - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsEnabledARRPreload(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->CR1, TIM_CR1_ARPE) == (TIM_CR1_ARPE)) ? 1UL : 0UL); -} - -/** - * @brief Set the division ratio between the timer clock and the sampling clock used by the dead-time generators - * (when supported) and the digital filters. - * @note Macro IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx) can be used to check - * whether or not the clock division feature is supported by the timer - * instance. - * @rmtoll CR1 CKD LL_TIM_SetClockDivision - * @param TIMx Timer instance - * @param ClockDivision This parameter can be one of the following values: - * @arg @ref LL_TIM_CLOCKDIVISION_DIV1 - * @arg @ref LL_TIM_CLOCKDIVISION_DIV2 - * @arg @ref LL_TIM_CLOCKDIVISION_DIV4 - * @retval None - */ -__STATIC_INLINE void LL_TIM_SetClockDivision(TIM_TypeDef *TIMx, uint32_t ClockDivision) -{ - MODIFY_REG(TIMx->CR1, TIM_CR1_CKD, ClockDivision); -} - -/** - * @brief Get the actual division ratio between the timer clock and the sampling clock used by the dead-time - * generators (when supported) and the digital filters. - * @note Macro IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx) can be used to check - * whether or not the clock division feature is supported by the timer - * instance. - * @rmtoll CR1 CKD LL_TIM_GetClockDivision - * @param TIMx Timer instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_TIM_CLOCKDIVISION_DIV1 - * @arg @ref LL_TIM_CLOCKDIVISION_DIV2 - * @arg @ref LL_TIM_CLOCKDIVISION_DIV4 - */ -__STATIC_INLINE uint32_t LL_TIM_GetClockDivision(const TIM_TypeDef *TIMx) -{ - return (uint32_t)(READ_BIT(TIMx->CR1, TIM_CR1_CKD)); -} - -/** - * @brief Set the counter value. - * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check - * whether or not a timer instance supports a 32 bits counter. - * @rmtoll CNT CNT LL_TIM_SetCounter - * @param TIMx Timer instance - * @param Counter Counter value (between Min_Data=0 and Max_Data=0xFFFF or 0xFFFFFFFF) - * @retval None - */ -__STATIC_INLINE void LL_TIM_SetCounter(TIM_TypeDef *TIMx, uint32_t Counter) -{ - WRITE_REG(TIMx->CNT, Counter); -} - -/** - * @brief Get the counter value. - * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check - * whether or not a timer instance supports a 32 bits counter. - * @rmtoll CNT CNT LL_TIM_GetCounter - * @param TIMx Timer instance - * @retval Counter value (between Min_Data=0 and Max_Data=0xFFFF or 0xFFFFFFFF) - */ -__STATIC_INLINE uint32_t LL_TIM_GetCounter(const TIM_TypeDef *TIMx) -{ - return (uint32_t)(READ_REG(TIMx->CNT)); -} - -/** - * @brief Get the current direction of the counter - * @rmtoll CR1 DIR LL_TIM_GetDirection - * @param TIMx Timer instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_TIM_COUNTERDIRECTION_UP - * @arg @ref LL_TIM_COUNTERDIRECTION_DOWN - */ -__STATIC_INLINE uint32_t LL_TIM_GetDirection(const TIM_TypeDef *TIMx) -{ - return (uint32_t)(READ_BIT(TIMx->CR1, TIM_CR1_DIR)); -} - -/** - * @brief Set the prescaler value. - * @note The counter clock frequency CK_CNT is equal to fCK_PSC / (PSC[15:0] + 1). - * @note The prescaler can be changed on the fly as this control register is buffered. The new - * prescaler ratio is taken into account at the next update event. - * @note Helper macro @ref __LL_TIM_CALC_PSC can be used to calculate the Prescaler parameter - * @rmtoll PSC PSC LL_TIM_SetPrescaler - * @param TIMx Timer instance - * @param Prescaler between Min_Data=0 and Max_Data=65535 - * @retval None - */ -__STATIC_INLINE void LL_TIM_SetPrescaler(TIM_TypeDef *TIMx, uint32_t Prescaler) -{ - WRITE_REG(TIMx->PSC, Prescaler); -} - -/** - * @brief Get the prescaler value. - * @rmtoll PSC PSC LL_TIM_GetPrescaler - * @param TIMx Timer instance - * @retval Prescaler value between Min_Data=0 and Max_Data=65535 - */ -__STATIC_INLINE uint32_t LL_TIM_GetPrescaler(const TIM_TypeDef *TIMx) -{ - return (uint32_t)(READ_REG(TIMx->PSC)); -} - -/** - * @brief Set the auto-reload value. - * @note The counter is blocked while the auto-reload value is null. - * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check - * whether or not a timer instance supports a 32 bits counter. - * @note Helper macro @ref __LL_TIM_CALC_ARR can be used to calculate the AutoReload parameter - * @rmtoll ARR ARR LL_TIM_SetAutoReload - * @param TIMx Timer instance - * @param AutoReload between Min_Data=0 and Max_Data=65535 - * @retval None - */ -__STATIC_INLINE void LL_TIM_SetAutoReload(TIM_TypeDef *TIMx, uint32_t AutoReload) -{ - WRITE_REG(TIMx->ARR, AutoReload); -} - -/** - * @brief Get the auto-reload value. - * @rmtoll ARR ARR LL_TIM_GetAutoReload - * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check - * whether or not a timer instance supports a 32 bits counter. - * @param TIMx Timer instance - * @retval Auto-reload value - */ -__STATIC_INLINE uint32_t LL_TIM_GetAutoReload(const TIM_TypeDef *TIMx) -{ - return (uint32_t)(READ_REG(TIMx->ARR)); -} - -/** - * @brief Set the repetition counter value. - * @note For advanced timer instances RepetitionCounter can be up to 65535. - * @note Macro IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx) can be used to check - * whether or not a timer instance supports a repetition counter. - * @rmtoll RCR REP LL_TIM_SetRepetitionCounter - * @param TIMx Timer instance - * @param RepetitionCounter between Min_Data=0 and Max_Data=255 or 65535 for advanced timer. - * @retval None - */ -__STATIC_INLINE void LL_TIM_SetRepetitionCounter(TIM_TypeDef *TIMx, uint32_t RepetitionCounter) -{ - WRITE_REG(TIMx->RCR, RepetitionCounter); -} - -/** - * @brief Get the repetition counter value. - * @note Macro IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx) can be used to check - * whether or not a timer instance supports a repetition counter. - * @rmtoll RCR REP LL_TIM_GetRepetitionCounter - * @param TIMx Timer instance - * @retval Repetition counter value - */ -__STATIC_INLINE uint32_t LL_TIM_GetRepetitionCounter(const TIM_TypeDef *TIMx) -{ - return (uint32_t)(READ_REG(TIMx->RCR)); -} - -/** - * @brief Force a continuous copy of the update interrupt flag (UIF) into the timer counter register (bit 31). - * @note This allows both the counter value and a potential roll-over condition signalled by the UIFCPY flag to be read - * in an atomic way. - * @rmtoll CR1 UIFREMAP LL_TIM_EnableUIFRemap - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_EnableUIFRemap(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->CR1, TIM_CR1_UIFREMAP); -} - -/** - * @brief Disable update interrupt flag (UIF) remapping. - * @rmtoll CR1 UIFREMAP LL_TIM_DisableUIFRemap - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_DisableUIFRemap(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->CR1, TIM_CR1_UIFREMAP); -} - -/** - * @brief Indicate whether update interrupt flag (UIF) copy is set. - * @param Counter Counter value - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsActiveUIFCPY(const uint32_t Counter) -{ - return (((Counter & TIM_CNT_UIFCPY) == (TIM_CNT_UIFCPY)) ? 1UL : 0UL); -} - -/** - * @} - */ - -/** @defgroup TIM_LL_EF_Capture_Compare Capture Compare configuration - * @{ - */ -/** - * @brief Enable the capture/compare control bits (CCxE, CCxNE and OCxM) preload. - * @note CCxE, CCxNE and OCxM bits are preloaded, after having been written, - * they are updated only when a commutation event (COM) occurs. - * @note Only on channels that have a complementary output. - * @note Macro IS_TIM_COMMUTATION_EVENT_INSTANCE(TIMx) can be used to check - * whether or not a timer instance is able to generate a commutation event. - * @rmtoll CR2 CCPC LL_TIM_CC_EnablePreload - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_CC_EnablePreload(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->CR2, TIM_CR2_CCPC); -} - -/** - * @brief Disable the capture/compare control bits (CCxE, CCxNE and OCxM) preload. - * @note Macro IS_TIM_COMMUTATION_EVENT_INSTANCE(TIMx) can be used to check - * whether or not a timer instance is able to generate a commutation event. - * @rmtoll CR2 CCPC LL_TIM_CC_DisablePreload - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_CC_DisablePreload(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->CR2, TIM_CR2_CCPC); -} - -/** - * @brief Set the updated source of the capture/compare control bits (CCxE, CCxNE and OCxM). - * @note Macro IS_TIM_COMMUTATION_EVENT_INSTANCE(TIMx) can be used to check - * whether or not a timer instance is able to generate a commutation event. - * @rmtoll CR2 CCUS LL_TIM_CC_SetUpdate - * @param TIMx Timer instance - * @param CCUpdateSource This parameter can be one of the following values: - * @arg @ref LL_TIM_CCUPDATESOURCE_COMG_ONLY - * @arg @ref LL_TIM_CCUPDATESOURCE_COMG_AND_TRGI - * @retval None - */ -__STATIC_INLINE void LL_TIM_CC_SetUpdate(TIM_TypeDef *TIMx, uint32_t CCUpdateSource) -{ - MODIFY_REG(TIMx->CR2, TIM_CR2_CCUS, CCUpdateSource); -} - -/** - * @brief Set the trigger of the capture/compare DMA request. - * @rmtoll CR2 CCDS LL_TIM_CC_SetDMAReqTrigger - * @param TIMx Timer instance - * @param DMAReqTrigger This parameter can be one of the following values: - * @arg @ref LL_TIM_CCDMAREQUEST_CC - * @arg @ref LL_TIM_CCDMAREQUEST_UPDATE - * @retval None - */ -__STATIC_INLINE void LL_TIM_CC_SetDMAReqTrigger(TIM_TypeDef *TIMx, uint32_t DMAReqTrigger) -{ - MODIFY_REG(TIMx->CR2, TIM_CR2_CCDS, DMAReqTrigger); -} - -/** - * @brief Get actual trigger of the capture/compare DMA request. - * @rmtoll CR2 CCDS LL_TIM_CC_GetDMAReqTrigger - * @param TIMx Timer instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_TIM_CCDMAREQUEST_CC - * @arg @ref LL_TIM_CCDMAREQUEST_UPDATE - */ -__STATIC_INLINE uint32_t LL_TIM_CC_GetDMAReqTrigger(const TIM_TypeDef *TIMx) -{ - return (uint32_t)(READ_BIT(TIMx->CR2, TIM_CR2_CCDS)); -} - -/** - * @brief Set the lock level to freeze the - * configuration of several capture/compare parameters. - * @note Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not - * the lock mechanism is supported by a timer instance. - * @rmtoll BDTR LOCK LL_TIM_CC_SetLockLevel - * @param TIMx Timer instance - * @param LockLevel This parameter can be one of the following values: - * @arg @ref LL_TIM_LOCKLEVEL_OFF - * @arg @ref LL_TIM_LOCKLEVEL_1 - * @arg @ref LL_TIM_LOCKLEVEL_2 - * @arg @ref LL_TIM_LOCKLEVEL_3 - * @retval None - */ -__STATIC_INLINE void LL_TIM_CC_SetLockLevel(TIM_TypeDef *TIMx, uint32_t LockLevel) -{ - MODIFY_REG(TIMx->BDTR, TIM_BDTR_LOCK, LockLevel); -} - -/** - * @brief Enable capture/compare channels. - * @rmtoll CCER CC1E LL_TIM_CC_EnableChannel\n - * CCER CC1NE LL_TIM_CC_EnableChannel\n - * CCER CC2E LL_TIM_CC_EnableChannel\n - * CCER CC2NE LL_TIM_CC_EnableChannel\n - * CCER CC3E LL_TIM_CC_EnableChannel\n - * CCER CC3NE LL_TIM_CC_EnableChannel\n - * CCER CC4E LL_TIM_CC_EnableChannel\n - * CCER CC5E LL_TIM_CC_EnableChannel\n - * CCER CC6E LL_TIM_CC_EnableChannel - * @param TIMx Timer instance - * @param Channels This parameter can be a combination of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH1N - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH2N - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH3N - * @arg @ref LL_TIM_CHANNEL_CH4 - * @arg @ref LL_TIM_CHANNEL_CH5 - * @arg @ref LL_TIM_CHANNEL_CH6 - * @retval None - */ -__STATIC_INLINE void LL_TIM_CC_EnableChannel(TIM_TypeDef *TIMx, uint32_t Channels) -{ - SET_BIT(TIMx->CCER, Channels); -} - -/** - * @brief Disable capture/compare channels. - * @rmtoll CCER CC1E LL_TIM_CC_DisableChannel\n - * CCER CC1NE LL_TIM_CC_DisableChannel\n - * CCER CC2E LL_TIM_CC_DisableChannel\n - * CCER CC2NE LL_TIM_CC_DisableChannel\n - * CCER CC3E LL_TIM_CC_DisableChannel\n - * CCER CC3NE LL_TIM_CC_DisableChannel\n - * CCER CC4E LL_TIM_CC_DisableChannel\n - * CCER CC5E LL_TIM_CC_DisableChannel\n - * CCER CC6E LL_TIM_CC_DisableChannel - * @param TIMx Timer instance - * @param Channels This parameter can be a combination of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH1N - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH2N - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH3N - * @arg @ref LL_TIM_CHANNEL_CH4 - * @arg @ref LL_TIM_CHANNEL_CH5 - * @arg @ref LL_TIM_CHANNEL_CH6 - * @retval None - */ -__STATIC_INLINE void LL_TIM_CC_DisableChannel(TIM_TypeDef *TIMx, uint32_t Channels) -{ - CLEAR_BIT(TIMx->CCER, Channels); -} - -/** - * @brief Indicate whether channel(s) is(are) enabled. - * @rmtoll CCER CC1E LL_TIM_CC_IsEnabledChannel\n - * CCER CC1NE LL_TIM_CC_IsEnabledChannel\n - * CCER CC2E LL_TIM_CC_IsEnabledChannel\n - * CCER CC2NE LL_TIM_CC_IsEnabledChannel\n - * CCER CC3E LL_TIM_CC_IsEnabledChannel\n - * CCER CC3NE LL_TIM_CC_IsEnabledChannel\n - * CCER CC4E LL_TIM_CC_IsEnabledChannel\n - * CCER CC5E LL_TIM_CC_IsEnabledChannel\n - * CCER CC6E LL_TIM_CC_IsEnabledChannel - * @param TIMx Timer instance - * @param Channels This parameter can be a combination of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH1N - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH2N - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH3N - * @arg @ref LL_TIM_CHANNEL_CH4 - * @arg @ref LL_TIM_CHANNEL_CH5 - * @arg @ref LL_TIM_CHANNEL_CH6 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_CC_IsEnabledChannel(TIM_TypeDef *TIMx, uint32_t Channels) -{ - return ((READ_BIT(TIMx->CCER, Channels) == (Channels)) ? 1UL : 0UL); -} - -/** - * @} - */ - -/** @defgroup TIM_LL_EF_Output_Channel Output channel configuration - * @{ - */ -/** - * @brief Configure an output channel. - * @rmtoll CCMR1 CC1S LL_TIM_OC_ConfigOutput\n - * CCMR1 CC2S LL_TIM_OC_ConfigOutput\n - * CCMR2 CC3S LL_TIM_OC_ConfigOutput\n - * CCMR2 CC4S LL_TIM_OC_ConfigOutput\n - * CCMR3 CC5S LL_TIM_OC_ConfigOutput\n - * CCMR3 CC6S LL_TIM_OC_ConfigOutput\n - * CCER CC1P LL_TIM_OC_ConfigOutput\n - * CCER CC2P LL_TIM_OC_ConfigOutput\n - * CCER CC3P LL_TIM_OC_ConfigOutput\n - * CCER CC4P LL_TIM_OC_ConfigOutput\n - * CCER CC5P LL_TIM_OC_ConfigOutput\n - * CCER CC6P LL_TIM_OC_ConfigOutput\n - * CR2 OIS1 LL_TIM_OC_ConfigOutput\n - * CR2 OIS2 LL_TIM_OC_ConfigOutput\n - * CR2 OIS3 LL_TIM_OC_ConfigOutput\n - * CR2 OIS4 LL_TIM_OC_ConfigOutput\n - * CR2 OIS5 LL_TIM_OC_ConfigOutput\n - * CR2 OIS6 LL_TIM_OC_ConfigOutput - * @param TIMx Timer instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH4 - * @arg @ref LL_TIM_CHANNEL_CH5 - * @arg @ref LL_TIM_CHANNEL_CH6 - * @param Configuration This parameter must be a combination of all the following values: - * @arg @ref LL_TIM_OCPOLARITY_HIGH or @ref LL_TIM_OCPOLARITY_LOW - * @arg @ref LL_TIM_OCIDLESTATE_LOW or @ref LL_TIM_OCIDLESTATE_HIGH - * @retval None - */ -__STATIC_INLINE void LL_TIM_OC_ConfigOutput(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t Configuration) -{ - uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel); - __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->CCMR1) + OFFSET_TAB_CCMRx[iChannel])); - CLEAR_BIT(*pReg, (TIM_CCMR1_CC1S << SHIFT_TAB_OCxx[iChannel])); - MODIFY_REG(TIMx->CCER, (TIM_CCER_CC1P << SHIFT_TAB_CCxP[iChannel]), - (Configuration & TIM_CCER_CC1P) << SHIFT_TAB_CCxP[iChannel]); - MODIFY_REG(TIMx->CR2, (TIM_CR2_OIS1 << SHIFT_TAB_OISx[iChannel]), - (Configuration & TIM_CR2_OIS1) << SHIFT_TAB_OISx[iChannel]); -} - -/** - * @brief Define the behavior of the output reference signal OCxREF from which - * OCx and OCxN (when relevant) are derived. - * @rmtoll CCMR1 OC1M LL_TIM_OC_SetMode\n - * CCMR1 OC2M LL_TIM_OC_SetMode\n - * CCMR2 OC3M LL_TIM_OC_SetMode\n - * CCMR2 OC4M LL_TIM_OC_SetMode\n - * CCMR3 OC5M LL_TIM_OC_SetMode\n - * CCMR3 OC6M LL_TIM_OC_SetMode - * @param TIMx Timer instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH4 - * @arg @ref LL_TIM_CHANNEL_CH5 - * @arg @ref LL_TIM_CHANNEL_CH6 - * @param Mode This parameter can be one of the following values: - * @arg @ref LL_TIM_OCMODE_FROZEN - * @arg @ref LL_TIM_OCMODE_ACTIVE - * @arg @ref LL_TIM_OCMODE_INACTIVE - * @arg @ref LL_TIM_OCMODE_TOGGLE - * @arg @ref LL_TIM_OCMODE_FORCED_INACTIVE - * @arg @ref LL_TIM_OCMODE_FORCED_ACTIVE - * @arg @ref LL_TIM_OCMODE_PWM1 - * @arg @ref LL_TIM_OCMODE_PWM2 - * @arg @ref LL_TIM_OCMODE_RETRIG_OPM1 - * @arg @ref LL_TIM_OCMODE_RETRIG_OPM2 - * @arg @ref LL_TIM_OCMODE_COMBINED_PWM1 - * @arg @ref LL_TIM_OCMODE_COMBINED_PWM2 - * @arg @ref LL_TIM_OCMODE_ASSYMETRIC_PWM1 - * @arg @ref LL_TIM_OCMODE_ASSYMETRIC_PWM2 - * @retval None - */ -__STATIC_INLINE void LL_TIM_OC_SetMode(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t Mode) -{ - uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel); - __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->CCMR1) + OFFSET_TAB_CCMRx[iChannel])); - MODIFY_REG(*pReg, ((TIM_CCMR1_OC1M | TIM_CCMR1_CC1S) << SHIFT_TAB_OCxx[iChannel]), Mode << SHIFT_TAB_OCxx[iChannel]); -} - -/** - * @brief Get the output compare mode of an output channel. - * @rmtoll CCMR1 OC1M LL_TIM_OC_GetMode\n - * CCMR1 OC2M LL_TIM_OC_GetMode\n - * CCMR2 OC3M LL_TIM_OC_GetMode\n - * CCMR2 OC4M LL_TIM_OC_GetMode\n - * CCMR3 OC5M LL_TIM_OC_GetMode\n - * CCMR3 OC6M LL_TIM_OC_GetMode - * @param TIMx Timer instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH4 - * @arg @ref LL_TIM_CHANNEL_CH5 - * @arg @ref LL_TIM_CHANNEL_CH6 - * @retval Returned value can be one of the following values: - * @arg @ref LL_TIM_OCMODE_FROZEN - * @arg @ref LL_TIM_OCMODE_ACTIVE - * @arg @ref LL_TIM_OCMODE_INACTIVE - * @arg @ref LL_TIM_OCMODE_TOGGLE - * @arg @ref LL_TIM_OCMODE_FORCED_INACTIVE - * @arg @ref LL_TIM_OCMODE_FORCED_ACTIVE - * @arg @ref LL_TIM_OCMODE_PWM1 - * @arg @ref LL_TIM_OCMODE_PWM2 - * @arg @ref LL_TIM_OCMODE_RETRIG_OPM1 - * @arg @ref LL_TIM_OCMODE_RETRIG_OPM2 - * @arg @ref LL_TIM_OCMODE_COMBINED_PWM1 - * @arg @ref LL_TIM_OCMODE_COMBINED_PWM2 - * @arg @ref LL_TIM_OCMODE_ASSYMETRIC_PWM1 - * @arg @ref LL_TIM_OCMODE_ASSYMETRIC_PWM2 - */ -__STATIC_INLINE uint32_t LL_TIM_OC_GetMode(const TIM_TypeDef *TIMx, uint32_t Channel) -{ - uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel); - const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->CCMR1) + OFFSET_TAB_CCMRx[iChannel])); - return (READ_BIT(*pReg, ((TIM_CCMR1_OC1M | TIM_CCMR1_CC1S) << SHIFT_TAB_OCxx[iChannel])) >> SHIFT_TAB_OCxx[iChannel]); -} - -/** - * @brief Set the polarity of an output channel. - * @rmtoll CCER CC1P LL_TIM_OC_SetPolarity\n - * CCER CC1NP LL_TIM_OC_SetPolarity\n - * CCER CC2P LL_TIM_OC_SetPolarity\n - * CCER CC2NP LL_TIM_OC_SetPolarity\n - * CCER CC3P LL_TIM_OC_SetPolarity\n - * CCER CC3NP LL_TIM_OC_SetPolarity\n - * CCER CC4P LL_TIM_OC_SetPolarity\n - * CCER CC5P LL_TIM_OC_SetPolarity\n - * CCER CC6P LL_TIM_OC_SetPolarity - * @param TIMx Timer instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH1N - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH2N - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH3N - * @arg @ref LL_TIM_CHANNEL_CH4 - * @arg @ref LL_TIM_CHANNEL_CH5 - * @arg @ref LL_TIM_CHANNEL_CH6 - * @param Polarity This parameter can be one of the following values: - * @arg @ref LL_TIM_OCPOLARITY_HIGH - * @arg @ref LL_TIM_OCPOLARITY_LOW - * @retval None - */ -__STATIC_INLINE void LL_TIM_OC_SetPolarity(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t Polarity) -{ - uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel); - MODIFY_REG(TIMx->CCER, (TIM_CCER_CC1P << SHIFT_TAB_CCxP[iChannel]), Polarity << SHIFT_TAB_CCxP[iChannel]); -} - -/** - * @brief Get the polarity of an output channel. - * @rmtoll CCER CC1P LL_TIM_OC_GetPolarity\n - * CCER CC1NP LL_TIM_OC_GetPolarity\n - * CCER CC2P LL_TIM_OC_GetPolarity\n - * CCER CC2NP LL_TIM_OC_GetPolarity\n - * CCER CC3P LL_TIM_OC_GetPolarity\n - * CCER CC3NP LL_TIM_OC_GetPolarity\n - * CCER CC4P LL_TIM_OC_GetPolarity\n - * CCER CC5P LL_TIM_OC_GetPolarity\n - * CCER CC6P LL_TIM_OC_GetPolarity - * @param TIMx Timer instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH1N - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH2N - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH3N - * @arg @ref LL_TIM_CHANNEL_CH4 - * @arg @ref LL_TIM_CHANNEL_CH5 - * @arg @ref LL_TIM_CHANNEL_CH6 - * @retval Returned value can be one of the following values: - * @arg @ref LL_TIM_OCPOLARITY_HIGH - * @arg @ref LL_TIM_OCPOLARITY_LOW - */ -__STATIC_INLINE uint32_t LL_TIM_OC_GetPolarity(const TIM_TypeDef *TIMx, uint32_t Channel) -{ - uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel); - return (READ_BIT(TIMx->CCER, (TIM_CCER_CC1P << SHIFT_TAB_CCxP[iChannel])) >> SHIFT_TAB_CCxP[iChannel]); -} - -/** - * @brief Set the IDLE state of an output channel - * @note This function is significant only for the timer instances - * supporting the break feature. Macro IS_TIM_BREAK_INSTANCE(TIMx) - * can be used to check whether or not a timer instance provides - * a break input. - * @rmtoll CR2 OIS1 LL_TIM_OC_SetIdleState\n - * CR2 OIS2N LL_TIM_OC_SetIdleState\n - * CR2 OIS2 LL_TIM_OC_SetIdleState\n - * CR2 OIS2N LL_TIM_OC_SetIdleState\n - * CR2 OIS3 LL_TIM_OC_SetIdleState\n - * CR2 OIS3N LL_TIM_OC_SetIdleState\n - * CR2 OIS4 LL_TIM_OC_SetIdleState\n - * CR2 OIS5 LL_TIM_OC_SetIdleState\n - * CR2 OIS6 LL_TIM_OC_SetIdleState - * @param TIMx Timer instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH1N - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH2N - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH3N - * @arg @ref LL_TIM_CHANNEL_CH4 - * @arg @ref LL_TIM_CHANNEL_CH5 - * @arg @ref LL_TIM_CHANNEL_CH6 - * @param IdleState This parameter can be one of the following values: - * @arg @ref LL_TIM_OCIDLESTATE_LOW - * @arg @ref LL_TIM_OCIDLESTATE_HIGH - * @retval None - */ -__STATIC_INLINE void LL_TIM_OC_SetIdleState(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t IdleState) -{ - uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel); - MODIFY_REG(TIMx->CR2, (TIM_CR2_OIS1 << SHIFT_TAB_OISx[iChannel]), IdleState << SHIFT_TAB_OISx[iChannel]); -} - -/** - * @brief Get the IDLE state of an output channel - * @rmtoll CR2 OIS1 LL_TIM_OC_GetIdleState\n - * CR2 OIS2N LL_TIM_OC_GetIdleState\n - * CR2 OIS2 LL_TIM_OC_GetIdleState\n - * CR2 OIS2N LL_TIM_OC_GetIdleState\n - * CR2 OIS3 LL_TIM_OC_GetIdleState\n - * CR2 OIS3N LL_TIM_OC_GetIdleState\n - * CR2 OIS4 LL_TIM_OC_GetIdleState\n - * CR2 OIS5 LL_TIM_OC_GetIdleState\n - * CR2 OIS6 LL_TIM_OC_GetIdleState - * @param TIMx Timer instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH1N - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH2N - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH3N - * @arg @ref LL_TIM_CHANNEL_CH4 - * @arg @ref LL_TIM_CHANNEL_CH5 - * @arg @ref LL_TIM_CHANNEL_CH6 - * @retval Returned value can be one of the following values: - * @arg @ref LL_TIM_OCIDLESTATE_LOW - * @arg @ref LL_TIM_OCIDLESTATE_HIGH - */ -__STATIC_INLINE uint32_t LL_TIM_OC_GetIdleState(const TIM_TypeDef *TIMx, uint32_t Channel) -{ - uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel); - return (READ_BIT(TIMx->CR2, (TIM_CR2_OIS1 << SHIFT_TAB_OISx[iChannel])) >> SHIFT_TAB_OISx[iChannel]); -} - -/** - * @brief Enable fast mode for the output channel. - * @note Acts only if the channel is configured in PWM1 or PWM2 mode. - * @rmtoll CCMR1 OC1FE LL_TIM_OC_EnableFast\n - * CCMR1 OC2FE LL_TIM_OC_EnableFast\n - * CCMR2 OC3FE LL_TIM_OC_EnableFast\n - * CCMR2 OC4FE LL_TIM_OC_EnableFast\n - * CCMR3 OC5FE LL_TIM_OC_EnableFast\n - * CCMR3 OC6FE LL_TIM_OC_EnableFast - * @param TIMx Timer instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH4 - * @arg @ref LL_TIM_CHANNEL_CH5 - * @arg @ref LL_TIM_CHANNEL_CH6 - * @retval None - */ -__STATIC_INLINE void LL_TIM_OC_EnableFast(TIM_TypeDef *TIMx, uint32_t Channel) -{ - uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel); - __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->CCMR1) + OFFSET_TAB_CCMRx[iChannel])); - SET_BIT(*pReg, (TIM_CCMR1_OC1FE << SHIFT_TAB_OCxx[iChannel])); - -} - -/** - * @brief Disable fast mode for the output channel. - * @rmtoll CCMR1 OC1FE LL_TIM_OC_DisableFast\n - * CCMR1 OC2FE LL_TIM_OC_DisableFast\n - * CCMR2 OC3FE LL_TIM_OC_DisableFast\n - * CCMR2 OC4FE LL_TIM_OC_DisableFast\n - * CCMR3 OC5FE LL_TIM_OC_DisableFast\n - * CCMR3 OC6FE LL_TIM_OC_DisableFast - * @param TIMx Timer instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH4 - * @arg @ref LL_TIM_CHANNEL_CH5 - * @arg @ref LL_TIM_CHANNEL_CH6 - * @retval None - */ -__STATIC_INLINE void LL_TIM_OC_DisableFast(TIM_TypeDef *TIMx, uint32_t Channel) -{ - uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel); - __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->CCMR1) + OFFSET_TAB_CCMRx[iChannel])); - CLEAR_BIT(*pReg, (TIM_CCMR1_OC1FE << SHIFT_TAB_OCxx[iChannel])); - -} - -/** - * @brief Indicates whether fast mode is enabled for the output channel. - * @rmtoll CCMR1 OC1FE LL_TIM_OC_IsEnabledFast\n - * CCMR1 OC2FE LL_TIM_OC_IsEnabledFast\n - * CCMR2 OC3FE LL_TIM_OC_IsEnabledFast\n - * CCMR2 OC4FE LL_TIM_OC_IsEnabledFast\n - * CCMR3 OC5FE LL_TIM_OC_IsEnabledFast\n - * CCMR3 OC6FE LL_TIM_OC_IsEnabledFast - * @param TIMx Timer instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH4 - * @arg @ref LL_TIM_CHANNEL_CH5 - * @arg @ref LL_TIM_CHANNEL_CH6 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_OC_IsEnabledFast(TIM_TypeDef *TIMx, uint32_t Channel) -{ - uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel); - const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->CCMR1) + OFFSET_TAB_CCMRx[iChannel])); - uint32_t bitfield = TIM_CCMR1_OC1FE << SHIFT_TAB_OCxx[iChannel]; - return ((READ_BIT(*pReg, bitfield) == bitfield) ? 1UL : 0UL); -} - -/** - * @brief Enable compare register (TIMx_CCRx) preload for the output channel. - * @rmtoll CCMR1 OC1PE LL_TIM_OC_EnablePreload\n - * CCMR1 OC2PE LL_TIM_OC_EnablePreload\n - * CCMR2 OC3PE LL_TIM_OC_EnablePreload\n - * CCMR2 OC4PE LL_TIM_OC_EnablePreload\n - * CCMR3 OC5PE LL_TIM_OC_EnablePreload\n - * CCMR3 OC6PE LL_TIM_OC_EnablePreload - * @param TIMx Timer instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH4 - * @arg @ref LL_TIM_CHANNEL_CH5 - * @arg @ref LL_TIM_CHANNEL_CH6 - * @retval None - */ -__STATIC_INLINE void LL_TIM_OC_EnablePreload(TIM_TypeDef *TIMx, uint32_t Channel) -{ - uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel); - __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->CCMR1) + OFFSET_TAB_CCMRx[iChannel])); - SET_BIT(*pReg, (TIM_CCMR1_OC1PE << SHIFT_TAB_OCxx[iChannel])); -} - -/** - * @brief Disable compare register (TIMx_CCRx) preload for the output channel. - * @rmtoll CCMR1 OC1PE LL_TIM_OC_DisablePreload\n - * CCMR1 OC2PE LL_TIM_OC_DisablePreload\n - * CCMR2 OC3PE LL_TIM_OC_DisablePreload\n - * CCMR2 OC4PE LL_TIM_OC_DisablePreload\n - * CCMR3 OC5PE LL_TIM_OC_DisablePreload\n - * CCMR3 OC6PE LL_TIM_OC_DisablePreload - * @param TIMx Timer instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH4 - * @arg @ref LL_TIM_CHANNEL_CH5 - * @arg @ref LL_TIM_CHANNEL_CH6 - * @retval None - */ -__STATIC_INLINE void LL_TIM_OC_DisablePreload(TIM_TypeDef *TIMx, uint32_t Channel) -{ - uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel); - __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->CCMR1) + OFFSET_TAB_CCMRx[iChannel])); - CLEAR_BIT(*pReg, (TIM_CCMR1_OC1PE << SHIFT_TAB_OCxx[iChannel])); -} - -/** - * @brief Indicates whether compare register (TIMx_CCRx) preload is enabled for the output channel. - * @rmtoll CCMR1 OC1PE LL_TIM_OC_IsEnabledPreload\n - * CCMR1 OC2PE LL_TIM_OC_IsEnabledPreload\n - * CCMR2 OC3PE LL_TIM_OC_IsEnabledPreload\n - * CCMR2 OC4PE LL_TIM_OC_IsEnabledPreload\n - * CCMR3 OC5PE LL_TIM_OC_IsEnabledPreload\n - * CCMR3 OC6PE LL_TIM_OC_IsEnabledPreload - * @param TIMx Timer instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH4 - * @arg @ref LL_TIM_CHANNEL_CH5 - * @arg @ref LL_TIM_CHANNEL_CH6 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_OC_IsEnabledPreload(TIM_TypeDef *TIMx, uint32_t Channel) -{ - uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel); - const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->CCMR1) + OFFSET_TAB_CCMRx[iChannel])); - uint32_t bitfield = TIM_CCMR1_OC1PE << SHIFT_TAB_OCxx[iChannel]; - return ((READ_BIT(*pReg, bitfield) == bitfield) ? 1UL : 0UL); -} - -/** - * @brief Enable clearing the output channel on an external event. - * @note This function can only be used in Output compare and PWM modes. It does not work in Forced mode. - * @note Macro IS_TIM_OCXREF_CLEAR_INSTANCE(TIMx) can be used to check whether - * or not a timer instance can clear the OCxREF signal on an external event. - * @rmtoll CCMR1 OC1CE LL_TIM_OC_EnableClear\n - * CCMR1 OC2CE LL_TIM_OC_EnableClear\n - * CCMR2 OC3CE LL_TIM_OC_EnableClear\n - * CCMR2 OC4CE LL_TIM_OC_EnableClear\n - * CCMR3 OC5CE LL_TIM_OC_EnableClear\n - * CCMR3 OC6CE LL_TIM_OC_EnableClear - * @param TIMx Timer instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH4 - * @arg @ref LL_TIM_CHANNEL_CH5 - * @arg @ref LL_TIM_CHANNEL_CH6 - * @retval None - */ -__STATIC_INLINE void LL_TIM_OC_EnableClear(TIM_TypeDef *TIMx, uint32_t Channel) -{ - uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel); - __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->CCMR1) + OFFSET_TAB_CCMRx[iChannel])); - SET_BIT(*pReg, (TIM_CCMR1_OC1CE << SHIFT_TAB_OCxx[iChannel])); -} - -/** - * @brief Disable clearing the output channel on an external event. - * @note Macro IS_TIM_OCXREF_CLEAR_INSTANCE(TIMx) can be used to check whether - * or not a timer instance can clear the OCxREF signal on an external event. - * @rmtoll CCMR1 OC1CE LL_TIM_OC_DisableClear\n - * CCMR1 OC2CE LL_TIM_OC_DisableClear\n - * CCMR2 OC3CE LL_TIM_OC_DisableClear\n - * CCMR2 OC4CE LL_TIM_OC_DisableClear\n - * CCMR3 OC5CE LL_TIM_OC_DisableClear\n - * CCMR3 OC6CE LL_TIM_OC_DisableClear - * @param TIMx Timer instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH4 - * @arg @ref LL_TIM_CHANNEL_CH5 - * @arg @ref LL_TIM_CHANNEL_CH6 - * @retval None - */ -__STATIC_INLINE void LL_TIM_OC_DisableClear(TIM_TypeDef *TIMx, uint32_t Channel) -{ - uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel); - __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->CCMR1) + OFFSET_TAB_CCMRx[iChannel])); - CLEAR_BIT(*pReg, (TIM_CCMR1_OC1CE << SHIFT_TAB_OCxx[iChannel])); -} - -/** - * @brief Indicates clearing the output channel on an external event is enabled for the output channel. - * @note This function enables clearing the output channel on an external event. - * @note This function can only be used in Output compare and PWM modes. It does not work in Forced mode. - * @note Macro IS_TIM_OCXREF_CLEAR_INSTANCE(TIMx) can be used to check whether - * or not a timer instance can clear the OCxREF signal on an external event. - * @rmtoll CCMR1 OC1CE LL_TIM_OC_IsEnabledClear\n - * CCMR1 OC2CE LL_TIM_OC_IsEnabledClear\n - * CCMR2 OC3CE LL_TIM_OC_IsEnabledClear\n - * CCMR2 OC4CE LL_TIM_OC_IsEnabledClear\n - * CCMR3 OC5CE LL_TIM_OC_IsEnabledClear\n - * CCMR3 OC6CE LL_TIM_OC_IsEnabledClear - * @param TIMx Timer instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH4 - * @arg @ref LL_TIM_CHANNEL_CH5 - * @arg @ref LL_TIM_CHANNEL_CH6 - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_OC_IsEnabledClear(TIM_TypeDef *TIMx, uint32_t Channel) -{ - uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel); - const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->CCMR1) + OFFSET_TAB_CCMRx[iChannel])); - uint32_t bitfield = TIM_CCMR1_OC1CE << SHIFT_TAB_OCxx[iChannel]; - return ((READ_BIT(*pReg, bitfield) == bitfield) ? 1UL : 0UL); -} - -/** - * @brief Set the dead-time delay (delay inserted between the rising edge of the OCxREF signal and the rising edge of - * the Ocx and OCxN signals). - * @note Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not - * dead-time insertion feature is supported by a timer instance. - * @note Helper macro @ref __LL_TIM_CALC_DEADTIME can be used to calculate the DeadTime parameter - * @rmtoll BDTR DTG LL_TIM_OC_SetDeadTime - * @param TIMx Timer instance - * @param DeadTime between Min_Data=0 and Max_Data=255 - * @retval None - */ -__STATIC_INLINE void LL_TIM_OC_SetDeadTime(TIM_TypeDef *TIMx, uint32_t DeadTime) -{ - MODIFY_REG(TIMx->BDTR, TIM_BDTR_DTG, DeadTime); -} - -/** - * @brief Set compare value for output channel 1 (TIMx_CCR1). - * @note In 32-bit timer implementations compare value can be between 0x00000000 and 0xFFFFFFFF. - * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check - * whether or not a timer instance supports a 32 bits counter. - * @note Macro IS_TIM_CC1_INSTANCE(TIMx) can be used to check whether or not - * output channel 1 is supported by a timer instance. - * @rmtoll CCR1 CCR1 LL_TIM_OC_SetCompareCH1 - * @param TIMx Timer instance - * @param CompareValue between Min_Data=0 and Max_Data=65535 - * @retval None - */ -__STATIC_INLINE void LL_TIM_OC_SetCompareCH1(TIM_TypeDef *TIMx, uint32_t CompareValue) -{ - WRITE_REG(TIMx->CCR1, CompareValue); -} - -/** - * @brief Set compare value for output channel 2 (TIMx_CCR2). - * @note In 32-bit timer implementations compare value can be between 0x00000000 and 0xFFFFFFFF. - * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check - * whether or not a timer instance supports a 32 bits counter. - * @note Macro IS_TIM_CC2_INSTANCE(TIMx) can be used to check whether or not - * output channel 2 is supported by a timer instance. - * @rmtoll CCR2 CCR2 LL_TIM_OC_SetCompareCH2 - * @param TIMx Timer instance - * @param CompareValue between Min_Data=0 and Max_Data=65535 - * @retval None - */ -__STATIC_INLINE void LL_TIM_OC_SetCompareCH2(TIM_TypeDef *TIMx, uint32_t CompareValue) -{ - WRITE_REG(TIMx->CCR2, CompareValue); -} - -/** - * @brief Set compare value for output channel 3 (TIMx_CCR3). - * @note In 32-bit timer implementations compare value can be between 0x00000000 and 0xFFFFFFFF. - * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check - * whether or not a timer instance supports a 32 bits counter. - * @note Macro IS_TIM_CC3_INSTANCE(TIMx) can be used to check whether or not - * output channel is supported by a timer instance. - * @rmtoll CCR3 CCR3 LL_TIM_OC_SetCompareCH3 - * @param TIMx Timer instance - * @param CompareValue between Min_Data=0 and Max_Data=65535 - * @retval None - */ -__STATIC_INLINE void LL_TIM_OC_SetCompareCH3(TIM_TypeDef *TIMx, uint32_t CompareValue) -{ - WRITE_REG(TIMx->CCR3, CompareValue); -} - -/** - * @brief Set compare value for output channel 4 (TIMx_CCR4). - * @note In 32-bit timer implementations compare value can be between 0x00000000 and 0xFFFFFFFF. - * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check - * whether or not a timer instance supports a 32 bits counter. - * @note Macro IS_TIM_CC4_INSTANCE(TIMx) can be used to check whether or not - * output channel 4 is supported by a timer instance. - * @rmtoll CCR4 CCR4 LL_TIM_OC_SetCompareCH4 - * @param TIMx Timer instance - * @param CompareValue between Min_Data=0 and Max_Data=65535 - * @retval None - */ -__STATIC_INLINE void LL_TIM_OC_SetCompareCH4(TIM_TypeDef *TIMx, uint32_t CompareValue) -{ - WRITE_REG(TIMx->CCR4, CompareValue); -} - -/** - * @brief Set compare value for output channel 5 (TIMx_CCR5). - * @note Macro IS_TIM_CC5_INSTANCE(TIMx) can be used to check whether or not - * output channel 5 is supported by a timer instance. - * @rmtoll CCR5 CCR5 LL_TIM_OC_SetCompareCH5 - * @param TIMx Timer instance - * @param CompareValue between Min_Data=0 and Max_Data=65535 - * @retval None - */ -__STATIC_INLINE void LL_TIM_OC_SetCompareCH5(TIM_TypeDef *TIMx, uint32_t CompareValue) -{ - MODIFY_REG(TIMx->CCR5, TIM_CCR5_CCR5, CompareValue); -} - -/** - * @brief Set compare value for output channel 6 (TIMx_CCR6). - * @note Macro IS_TIM_CC6_INSTANCE(TIMx) can be used to check whether or not - * output channel 6 is supported by a timer instance. - * @rmtoll CCR6 CCR6 LL_TIM_OC_SetCompareCH6 - * @param TIMx Timer instance - * @param CompareValue between Min_Data=0 and Max_Data=65535 - * @retval None - */ -__STATIC_INLINE void LL_TIM_OC_SetCompareCH6(TIM_TypeDef *TIMx, uint32_t CompareValue) -{ - WRITE_REG(TIMx->CCR6, CompareValue); -} - -/** - * @brief Get compare value (TIMx_CCR1) set for output channel 1. - * @note In 32-bit timer implementations returned compare value can be between 0x00000000 and 0xFFFFFFFF. - * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check - * whether or not a timer instance supports a 32 bits counter. - * @note Macro IS_TIM_CC1_INSTANCE(TIMx) can be used to check whether or not - * output channel 1 is supported by a timer instance. - * @rmtoll CCR1 CCR1 LL_TIM_OC_GetCompareCH1 - * @param TIMx Timer instance - * @retval CompareValue (between Min_Data=0 and Max_Data=65535) - */ -__STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH1(const TIM_TypeDef *TIMx) -{ - return (uint32_t)(READ_REG(TIMx->CCR1)); -} - -/** - * @brief Get compare value (TIMx_CCR2) set for output channel 2. - * @note In 32-bit timer implementations returned compare value can be between 0x00000000 and 0xFFFFFFFF. - * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check - * whether or not a timer instance supports a 32 bits counter. - * @note Macro IS_TIM_CC2_INSTANCE(TIMx) can be used to check whether or not - * output channel 2 is supported by a timer instance. - * @rmtoll CCR2 CCR2 LL_TIM_OC_GetCompareCH2 - * @param TIMx Timer instance - * @retval CompareValue (between Min_Data=0 and Max_Data=65535) - */ -__STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH2(const TIM_TypeDef *TIMx) -{ - return (uint32_t)(READ_REG(TIMx->CCR2)); -} - -/** - * @brief Get compare value (TIMx_CCR3) set for output channel 3. - * @note In 32-bit timer implementations returned compare value can be between 0x00000000 and 0xFFFFFFFF. - * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check - * whether or not a timer instance supports a 32 bits counter. - * @note Macro IS_TIM_CC3_INSTANCE(TIMx) can be used to check whether or not - * output channel 3 is supported by a timer instance. - * @rmtoll CCR3 CCR3 LL_TIM_OC_GetCompareCH3 - * @param TIMx Timer instance - * @retval CompareValue (between Min_Data=0 and Max_Data=65535) - */ -__STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH3(const TIM_TypeDef *TIMx) -{ - return (uint32_t)(READ_REG(TIMx->CCR3)); -} - -/** - * @brief Get compare value (TIMx_CCR4) set for output channel 4. - * @note In 32-bit timer implementations returned compare value can be between 0x00000000 and 0xFFFFFFFF. - * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check - * whether or not a timer instance supports a 32 bits counter. - * @note Macro IS_TIM_CC4_INSTANCE(TIMx) can be used to check whether or not - * output channel 4 is supported by a timer instance. - * @rmtoll CCR4 CCR4 LL_TIM_OC_GetCompareCH4 - * @param TIMx Timer instance - * @retval CompareValue (between Min_Data=0 and Max_Data=65535) - */ -__STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH4(const TIM_TypeDef *TIMx) -{ - return (uint32_t)(READ_REG(TIMx->CCR4)); -} - -/** - * @brief Get compare value (TIMx_CCR5) set for output channel 5. - * @note Macro IS_TIM_CC5_INSTANCE(TIMx) can be used to check whether or not - * output channel 5 is supported by a timer instance. - * @rmtoll CCR5 CCR5 LL_TIM_OC_GetCompareCH5 - * @param TIMx Timer instance - * @retval CompareValue (between Min_Data=0 and Max_Data=65535) - */ -__STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH5(const TIM_TypeDef *TIMx) -{ - return (uint32_t)(READ_BIT(TIMx->CCR5, TIM_CCR5_CCR5)); -} - -/** - * @brief Get compare value (TIMx_CCR6) set for output channel 6. - * @note Macro IS_TIM_CC6_INSTANCE(TIMx) can be used to check whether or not - * output channel 6 is supported by a timer instance. - * @rmtoll CCR6 CCR6 LL_TIM_OC_GetCompareCH6 - * @param TIMx Timer instance - * @retval CompareValue (between Min_Data=0 and Max_Data=65535) - */ -__STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH6(const TIM_TypeDef *TIMx) -{ - return (uint32_t)(READ_REG(TIMx->CCR6)); -} - -/** - * @brief Select on which reference signal the OC5REF is combined to. - * @note Macro IS_TIM_COMBINED3PHASEPWM_INSTANCE(TIMx) can be used to check - * whether or not a timer instance supports the combined 3-phase PWM mode. - * @rmtoll CCR5 GC5C3 LL_TIM_SetCH5CombinedChannels\n - * CCR5 GC5C2 LL_TIM_SetCH5CombinedChannels\n - * CCR5 GC5C1 LL_TIM_SetCH5CombinedChannels - * @param TIMx Timer instance - * @param GroupCH5 This parameter can be a combination of the following values: - * @arg @ref LL_TIM_GROUPCH5_NONE - * @arg @ref LL_TIM_GROUPCH5_OC1REFC - * @arg @ref LL_TIM_GROUPCH5_OC2REFC - * @arg @ref LL_TIM_GROUPCH5_OC3REFC - * @retval None - */ -__STATIC_INLINE void LL_TIM_SetCH5CombinedChannels(TIM_TypeDef *TIMx, uint32_t GroupCH5) -{ - MODIFY_REG(TIMx->CCR5, (TIM_CCR5_GC5C3 | TIM_CCR5_GC5C2 | TIM_CCR5_GC5C1), GroupCH5); -} - -/** - * @} - */ - -/** @defgroup TIM_LL_EF_Input_Channel Input channel configuration - * @{ - */ -/** - * @brief Configure input channel. - * @rmtoll CCMR1 CC1S LL_TIM_IC_Config\n - * CCMR1 IC1PSC LL_TIM_IC_Config\n - * CCMR1 IC1F LL_TIM_IC_Config\n - * CCMR1 CC2S LL_TIM_IC_Config\n - * CCMR1 IC2PSC LL_TIM_IC_Config\n - * CCMR1 IC2F LL_TIM_IC_Config\n - * CCMR2 CC3S LL_TIM_IC_Config\n - * CCMR2 IC3PSC LL_TIM_IC_Config\n - * CCMR2 IC3F LL_TIM_IC_Config\n - * CCMR2 CC4S LL_TIM_IC_Config\n - * CCMR2 IC4PSC LL_TIM_IC_Config\n - * CCMR2 IC4F LL_TIM_IC_Config\n - * CCER CC1P LL_TIM_IC_Config\n - * CCER CC1NP LL_TIM_IC_Config\n - * CCER CC2P LL_TIM_IC_Config\n - * CCER CC2NP LL_TIM_IC_Config\n - * CCER CC3P LL_TIM_IC_Config\n - * CCER CC3NP LL_TIM_IC_Config\n - * CCER CC4P LL_TIM_IC_Config\n - * CCER CC4NP LL_TIM_IC_Config - * @param TIMx Timer instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH4 - * @param Configuration This parameter must be a combination of all the following values: - * @arg @ref LL_TIM_ACTIVEINPUT_DIRECTTI or @ref LL_TIM_ACTIVEINPUT_INDIRECTTI or @ref LL_TIM_ACTIVEINPUT_TRC - * @arg @ref LL_TIM_ICPSC_DIV1 or ... or @ref LL_TIM_ICPSC_DIV8 - * @arg @ref LL_TIM_IC_FILTER_FDIV1 or ... or @ref LL_TIM_IC_FILTER_FDIV32_N8 - * @arg @ref LL_TIM_IC_POLARITY_RISING or @ref LL_TIM_IC_POLARITY_FALLING or @ref LL_TIM_IC_POLARITY_BOTHEDGE - * @retval None - */ -__STATIC_INLINE void LL_TIM_IC_Config(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t Configuration) -{ - uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel); - __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->CCMR1) + OFFSET_TAB_CCMRx[iChannel])); - MODIFY_REG(*pReg, ((TIM_CCMR1_IC1F | TIM_CCMR1_IC1PSC | TIM_CCMR1_CC1S) << SHIFT_TAB_ICxx[iChannel]), - ((Configuration >> 16U) & (TIM_CCMR1_IC1F | TIM_CCMR1_IC1PSC | TIM_CCMR1_CC1S)) \ - << SHIFT_TAB_ICxx[iChannel]); - MODIFY_REG(TIMx->CCER, ((TIM_CCER_CC1NP | TIM_CCER_CC1P) << SHIFT_TAB_CCxP[iChannel]), - (Configuration & (TIM_CCER_CC1NP | TIM_CCER_CC1P)) << SHIFT_TAB_CCxP[iChannel]); -} - -/** - * @brief Set the active input. - * @rmtoll CCMR1 CC1S LL_TIM_IC_SetActiveInput\n - * CCMR1 CC2S LL_TIM_IC_SetActiveInput\n - * CCMR2 CC3S LL_TIM_IC_SetActiveInput\n - * CCMR2 CC4S LL_TIM_IC_SetActiveInput - * @param TIMx Timer instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH4 - * @param ICActiveInput This parameter can be one of the following values: - * @arg @ref LL_TIM_ACTIVEINPUT_DIRECTTI - * @arg @ref LL_TIM_ACTIVEINPUT_INDIRECTTI - * @arg @ref LL_TIM_ACTIVEINPUT_TRC - * @retval None - */ -__STATIC_INLINE void LL_TIM_IC_SetActiveInput(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ICActiveInput) -{ - uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel); - __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->CCMR1) + OFFSET_TAB_CCMRx[iChannel])); - MODIFY_REG(*pReg, ((TIM_CCMR1_CC1S) << SHIFT_TAB_ICxx[iChannel]), (ICActiveInput >> 16U) << SHIFT_TAB_ICxx[iChannel]); -} - -/** - * @brief Get the current active input. - * @rmtoll CCMR1 CC1S LL_TIM_IC_GetActiveInput\n - * CCMR1 CC2S LL_TIM_IC_GetActiveInput\n - * CCMR2 CC3S LL_TIM_IC_GetActiveInput\n - * CCMR2 CC4S LL_TIM_IC_GetActiveInput - * @param TIMx Timer instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH4 - * @retval Returned value can be one of the following values: - * @arg @ref LL_TIM_ACTIVEINPUT_DIRECTTI - * @arg @ref LL_TIM_ACTIVEINPUT_INDIRECTTI - * @arg @ref LL_TIM_ACTIVEINPUT_TRC - */ -__STATIC_INLINE uint32_t LL_TIM_IC_GetActiveInput(const TIM_TypeDef *TIMx, uint32_t Channel) -{ - uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel); - const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->CCMR1) + OFFSET_TAB_CCMRx[iChannel])); - return ((READ_BIT(*pReg, ((TIM_CCMR1_CC1S) << SHIFT_TAB_ICxx[iChannel])) >> SHIFT_TAB_ICxx[iChannel]) << 16U); -} - -/** - * @brief Set the prescaler of input channel. - * @rmtoll CCMR1 IC1PSC LL_TIM_IC_SetPrescaler\n - * CCMR1 IC2PSC LL_TIM_IC_SetPrescaler\n - * CCMR2 IC3PSC LL_TIM_IC_SetPrescaler\n - * CCMR2 IC4PSC LL_TIM_IC_SetPrescaler - * @param TIMx Timer instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH4 - * @param ICPrescaler This parameter can be one of the following values: - * @arg @ref LL_TIM_ICPSC_DIV1 - * @arg @ref LL_TIM_ICPSC_DIV2 - * @arg @ref LL_TIM_ICPSC_DIV4 - * @arg @ref LL_TIM_ICPSC_DIV8 - * @retval None - */ -__STATIC_INLINE void LL_TIM_IC_SetPrescaler(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ICPrescaler) -{ - uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel); - __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->CCMR1) + OFFSET_TAB_CCMRx[iChannel])); - MODIFY_REG(*pReg, ((TIM_CCMR1_IC1PSC) << SHIFT_TAB_ICxx[iChannel]), (ICPrescaler >> 16U) << SHIFT_TAB_ICxx[iChannel]); -} - -/** - * @brief Get the current prescaler value acting on an input channel. - * @rmtoll CCMR1 IC1PSC LL_TIM_IC_GetPrescaler\n - * CCMR1 IC2PSC LL_TIM_IC_GetPrescaler\n - * CCMR2 IC3PSC LL_TIM_IC_GetPrescaler\n - * CCMR2 IC4PSC LL_TIM_IC_GetPrescaler - * @param TIMx Timer instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH4 - * @retval Returned value can be one of the following values: - * @arg @ref LL_TIM_ICPSC_DIV1 - * @arg @ref LL_TIM_ICPSC_DIV2 - * @arg @ref LL_TIM_ICPSC_DIV4 - * @arg @ref LL_TIM_ICPSC_DIV8 - */ -__STATIC_INLINE uint32_t LL_TIM_IC_GetPrescaler(const TIM_TypeDef *TIMx, uint32_t Channel) -{ - uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel); - const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->CCMR1) + OFFSET_TAB_CCMRx[iChannel])); - return ((READ_BIT(*pReg, ((TIM_CCMR1_IC1PSC) << SHIFT_TAB_ICxx[iChannel])) >> SHIFT_TAB_ICxx[iChannel]) << 16U); -} - -/** - * @brief Set the input filter duration. - * @rmtoll CCMR1 IC1F LL_TIM_IC_SetFilter\n - * CCMR1 IC2F LL_TIM_IC_SetFilter\n - * CCMR2 IC3F LL_TIM_IC_SetFilter\n - * CCMR2 IC4F LL_TIM_IC_SetFilter - * @param TIMx Timer instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH4 - * @param ICFilter This parameter can be one of the following values: - * @arg @ref LL_TIM_IC_FILTER_FDIV1 - * @arg @ref LL_TIM_IC_FILTER_FDIV1_N2 - * @arg @ref LL_TIM_IC_FILTER_FDIV1_N4 - * @arg @ref LL_TIM_IC_FILTER_FDIV1_N8 - * @arg @ref LL_TIM_IC_FILTER_FDIV2_N6 - * @arg @ref LL_TIM_IC_FILTER_FDIV2_N8 - * @arg @ref LL_TIM_IC_FILTER_FDIV4_N6 - * @arg @ref LL_TIM_IC_FILTER_FDIV4_N8 - * @arg @ref LL_TIM_IC_FILTER_FDIV8_N6 - * @arg @ref LL_TIM_IC_FILTER_FDIV8_N8 - * @arg @ref LL_TIM_IC_FILTER_FDIV16_N5 - * @arg @ref LL_TIM_IC_FILTER_FDIV16_N6 - * @arg @ref LL_TIM_IC_FILTER_FDIV16_N8 - * @arg @ref LL_TIM_IC_FILTER_FDIV32_N5 - * @arg @ref LL_TIM_IC_FILTER_FDIV32_N6 - * @arg @ref LL_TIM_IC_FILTER_FDIV32_N8 - * @retval None - */ -__STATIC_INLINE void LL_TIM_IC_SetFilter(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ICFilter) -{ - uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel); - __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->CCMR1) + OFFSET_TAB_CCMRx[iChannel])); - MODIFY_REG(*pReg, ((TIM_CCMR1_IC1F) << SHIFT_TAB_ICxx[iChannel]), (ICFilter >> 16U) << SHIFT_TAB_ICxx[iChannel]); -} - -/** - * @brief Get the input filter duration. - * @rmtoll CCMR1 IC1F LL_TIM_IC_GetFilter\n - * CCMR1 IC2F LL_TIM_IC_GetFilter\n - * CCMR2 IC3F LL_TIM_IC_GetFilter\n - * CCMR2 IC4F LL_TIM_IC_GetFilter - * @param TIMx Timer instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH4 - * @retval Returned value can be one of the following values: - * @arg @ref LL_TIM_IC_FILTER_FDIV1 - * @arg @ref LL_TIM_IC_FILTER_FDIV1_N2 - * @arg @ref LL_TIM_IC_FILTER_FDIV1_N4 - * @arg @ref LL_TIM_IC_FILTER_FDIV1_N8 - * @arg @ref LL_TIM_IC_FILTER_FDIV2_N6 - * @arg @ref LL_TIM_IC_FILTER_FDIV2_N8 - * @arg @ref LL_TIM_IC_FILTER_FDIV4_N6 - * @arg @ref LL_TIM_IC_FILTER_FDIV4_N8 - * @arg @ref LL_TIM_IC_FILTER_FDIV8_N6 - * @arg @ref LL_TIM_IC_FILTER_FDIV8_N8 - * @arg @ref LL_TIM_IC_FILTER_FDIV16_N5 - * @arg @ref LL_TIM_IC_FILTER_FDIV16_N6 - * @arg @ref LL_TIM_IC_FILTER_FDIV16_N8 - * @arg @ref LL_TIM_IC_FILTER_FDIV32_N5 - * @arg @ref LL_TIM_IC_FILTER_FDIV32_N6 - * @arg @ref LL_TIM_IC_FILTER_FDIV32_N8 - */ -__STATIC_INLINE uint32_t LL_TIM_IC_GetFilter(const TIM_TypeDef *TIMx, uint32_t Channel) -{ - uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel); - const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->CCMR1) + OFFSET_TAB_CCMRx[iChannel])); - return ((READ_BIT(*pReg, ((TIM_CCMR1_IC1F) << SHIFT_TAB_ICxx[iChannel])) >> SHIFT_TAB_ICxx[iChannel]) << 16U); -} - -/** - * @brief Set the input channel polarity. - * @rmtoll CCER CC1P LL_TIM_IC_SetPolarity\n - * CCER CC1NP LL_TIM_IC_SetPolarity\n - * CCER CC2P LL_TIM_IC_SetPolarity\n - * CCER CC2NP LL_TIM_IC_SetPolarity\n - * CCER CC3P LL_TIM_IC_SetPolarity\n - * CCER CC3NP LL_TIM_IC_SetPolarity\n - * CCER CC4P LL_TIM_IC_SetPolarity\n - * CCER CC4NP LL_TIM_IC_SetPolarity - * @param TIMx Timer instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH4 - * @param ICPolarity This parameter can be one of the following values: - * @arg @ref LL_TIM_IC_POLARITY_RISING - * @arg @ref LL_TIM_IC_POLARITY_FALLING - * @arg @ref LL_TIM_IC_POLARITY_BOTHEDGE - * @retval None - */ -__STATIC_INLINE void LL_TIM_IC_SetPolarity(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ICPolarity) -{ - uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel); - MODIFY_REG(TIMx->CCER, ((TIM_CCER_CC1NP | TIM_CCER_CC1P) << SHIFT_TAB_CCxP[iChannel]), - ICPolarity << SHIFT_TAB_CCxP[iChannel]); -} - -/** - * @brief Get the current input channel polarity. - * @rmtoll CCER CC1P LL_TIM_IC_GetPolarity\n - * CCER CC1NP LL_TIM_IC_GetPolarity\n - * CCER CC2P LL_TIM_IC_GetPolarity\n - * CCER CC2NP LL_TIM_IC_GetPolarity\n - * CCER CC3P LL_TIM_IC_GetPolarity\n - * CCER CC3NP LL_TIM_IC_GetPolarity\n - * CCER CC4P LL_TIM_IC_GetPolarity\n - * CCER CC4NP LL_TIM_IC_GetPolarity - * @param TIMx Timer instance - * @param Channel This parameter can be one of the following values: - * @arg @ref LL_TIM_CHANNEL_CH1 - * @arg @ref LL_TIM_CHANNEL_CH2 - * @arg @ref LL_TIM_CHANNEL_CH3 - * @arg @ref LL_TIM_CHANNEL_CH4 - * @retval Returned value can be one of the following values: - * @arg @ref LL_TIM_IC_POLARITY_RISING - * @arg @ref LL_TIM_IC_POLARITY_FALLING - * @arg @ref LL_TIM_IC_POLARITY_BOTHEDGE - */ -__STATIC_INLINE uint32_t LL_TIM_IC_GetPolarity(const TIM_TypeDef *TIMx, uint32_t Channel) -{ - uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel); - return (READ_BIT(TIMx->CCER, ((TIM_CCER_CC1NP | TIM_CCER_CC1P) << SHIFT_TAB_CCxP[iChannel])) >> - SHIFT_TAB_CCxP[iChannel]); -} - -/** - * @brief Connect the TIMx_CH1, CH2 and CH3 pins to the TI1 input (XOR combination). - * @note Macro IS_TIM_XOR_INSTANCE(TIMx) can be used to check whether or not - * a timer instance provides an XOR input. - * @rmtoll CR2 TI1S LL_TIM_IC_EnableXORCombination - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_IC_EnableXORCombination(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->CR2, TIM_CR2_TI1S); -} - -/** - * @brief Disconnect the TIMx_CH1, CH2 and CH3 pins from the TI1 input. - * @note Macro IS_TIM_XOR_INSTANCE(TIMx) can be used to check whether or not - * a timer instance provides an XOR input. - * @rmtoll CR2 TI1S LL_TIM_IC_DisableXORCombination - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_IC_DisableXORCombination(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->CR2, TIM_CR2_TI1S); -} - -/** - * @brief Indicates whether the TIMx_CH1, CH2 and CH3 pins are connectected to the TI1 input. - * @note Macro IS_TIM_XOR_INSTANCE(TIMx) can be used to check whether or not - * a timer instance provides an XOR input. - * @rmtoll CR2 TI1S LL_TIM_IC_IsEnabledXORCombination - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IC_IsEnabledXORCombination(TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->CR2, TIM_CR2_TI1S) == (TIM_CR2_TI1S)) ? 1UL : 0UL); -} - -/** - * @brief Get captured value for input channel 1. - * @note In 32-bit timer implementations returned captured value can be between 0x00000000 and 0xFFFFFFFF. - * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check - * whether or not a timer instance supports a 32 bits counter. - * @note Macro IS_TIM_CC1_INSTANCE(TIMx) can be used to check whether or not - * input channel 1 is supported by a timer instance. - * @rmtoll CCR1 CCR1 LL_TIM_IC_GetCaptureCH1 - * @param TIMx Timer instance - * @retval CapturedValue (between Min_Data=0 and Max_Data=65535) - */ -__STATIC_INLINE uint32_t LL_TIM_IC_GetCaptureCH1(const TIM_TypeDef *TIMx) -{ - return (uint32_t)(READ_REG(TIMx->CCR1)); -} - -/** - * @brief Get captured value for input channel 2. - * @note In 32-bit timer implementations returned captured value can be between 0x00000000 and 0xFFFFFFFF. - * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check - * whether or not a timer instance supports a 32 bits counter. - * @note Macro IS_TIM_CC2_INSTANCE(TIMx) can be used to check whether or not - * input channel 2 is supported by a timer instance. - * @rmtoll CCR2 CCR2 LL_TIM_IC_GetCaptureCH2 - * @param TIMx Timer instance - * @retval CapturedValue (between Min_Data=0 and Max_Data=65535) - */ -__STATIC_INLINE uint32_t LL_TIM_IC_GetCaptureCH2(const TIM_TypeDef *TIMx) -{ - return (uint32_t)(READ_REG(TIMx->CCR2)); -} - -/** - * @brief Get captured value for input channel 3. - * @note In 32-bit timer implementations returned captured value can be between 0x00000000 and 0xFFFFFFFF. - * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check - * whether or not a timer instance supports a 32 bits counter. - * @note Macro IS_TIM_CC3_INSTANCE(TIMx) can be used to check whether or not - * input channel 3 is supported by a timer instance. - * @rmtoll CCR3 CCR3 LL_TIM_IC_GetCaptureCH3 - * @param TIMx Timer instance - * @retval CapturedValue (between Min_Data=0 and Max_Data=65535) - */ -__STATIC_INLINE uint32_t LL_TIM_IC_GetCaptureCH3(const TIM_TypeDef *TIMx) -{ - return (uint32_t)(READ_REG(TIMx->CCR3)); -} - -/** - * @brief Get captured value for input channel 4. - * @note In 32-bit timer implementations returned captured value can be between 0x00000000 and 0xFFFFFFFF. - * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check - * whether or not a timer instance supports a 32 bits counter. - * @note Macro IS_TIM_CC4_INSTANCE(TIMx) can be used to check whether or not - * input channel 4 is supported by a timer instance. - * @rmtoll CCR4 CCR4 LL_TIM_IC_GetCaptureCH4 - * @param TIMx Timer instance - * @retval CapturedValue (between Min_Data=0 and Max_Data=65535) - */ -__STATIC_INLINE uint32_t LL_TIM_IC_GetCaptureCH4(const TIM_TypeDef *TIMx) -{ - return (uint32_t)(READ_REG(TIMx->CCR4)); -} - -/** - * @} - */ - -/** @defgroup TIM_LL_EF_Clock_Selection Counter clock selection - * @{ - */ -/** - * @brief Enable external clock mode 2. - * @note When external clock mode 2 is enabled the counter is clocked by any active edge on the ETRF signal. - * @note Macro IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(TIMx) can be used to check - * whether or not a timer instance supports external clock mode2. - * @rmtoll SMCR ECE LL_TIM_EnableExternalClock - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_EnableExternalClock(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->SMCR, TIM_SMCR_ECE); -} - -/** - * @brief Disable external clock mode 2. - * @note Macro IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(TIMx) can be used to check - * whether or not a timer instance supports external clock mode2. - * @rmtoll SMCR ECE LL_TIM_DisableExternalClock - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_DisableExternalClock(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->SMCR, TIM_SMCR_ECE); -} - -/** - * @brief Indicate whether external clock mode 2 is enabled. - * @note Macro IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(TIMx) can be used to check - * whether or not a timer instance supports external clock mode2. - * @rmtoll SMCR ECE LL_TIM_IsEnabledExternalClock - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsEnabledExternalClock(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->SMCR, TIM_SMCR_ECE) == (TIM_SMCR_ECE)) ? 1UL : 0UL); -} - -/** - * @brief Set the clock source of the counter clock. - * @note when selected clock source is external clock mode 1, the timer input - * the external clock is applied is selected by calling the @ref LL_TIM_SetTriggerInput() - * function. This timer input must be configured by calling - * the @ref LL_TIM_IC_Config() function. - * @note Macro IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(TIMx) can be used to check - * whether or not a timer instance supports external clock mode1. - * @note Macro IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(TIMx) can be used to check - * whether or not a timer instance supports external clock mode2. - * @rmtoll SMCR SMS LL_TIM_SetClockSource\n - * SMCR ECE LL_TIM_SetClockSource - * @param TIMx Timer instance - * @param ClockSource This parameter can be one of the following values: - * @arg @ref LL_TIM_CLOCKSOURCE_INTERNAL - * @arg @ref LL_TIM_CLOCKSOURCE_EXT_MODE1 - * @arg @ref LL_TIM_CLOCKSOURCE_EXT_MODE2 - * @retval None - */ -__STATIC_INLINE void LL_TIM_SetClockSource(TIM_TypeDef *TIMx, uint32_t ClockSource) -{ - MODIFY_REG(TIMx->SMCR, TIM_SMCR_SMS | TIM_SMCR_ECE, ClockSource); -} - -/** - * @brief Set the encoder interface mode. - * @note Macro IS_TIM_ENCODER_INTERFACE_INSTANCE(TIMx) can be used to check - * whether or not a timer instance supports the encoder mode. - * @rmtoll SMCR SMS LL_TIM_SetEncoderMode - * @param TIMx Timer instance - * @param EncoderMode This parameter can be one of the following values: - * @arg @ref LL_TIM_ENCODERMODE_X2_TI1 - * @arg @ref LL_TIM_ENCODERMODE_X2_TI2 - * @arg @ref LL_TIM_ENCODERMODE_X4_TI12 - * @retval None - */ -__STATIC_INLINE void LL_TIM_SetEncoderMode(TIM_TypeDef *TIMx, uint32_t EncoderMode) -{ - MODIFY_REG(TIMx->SMCR, TIM_SMCR_SMS, EncoderMode); -} - -/** - * @} - */ - -/** @defgroup TIM_LL_EF_Timer_Synchronization Timer synchronisation configuration - * @{ - */ -/** - * @brief Set the trigger output (TRGO) used for timer synchronization . - * @note Macro IS_TIM_MASTER_INSTANCE(TIMx) can be used to check - * whether or not a timer instance can operate as a master timer. - * @rmtoll CR2 MMS LL_TIM_SetTriggerOutput - * @param TIMx Timer instance - * @param TimerSynchronization This parameter can be one of the following values: - * @arg @ref LL_TIM_TRGO_RESET - * @arg @ref LL_TIM_TRGO_ENABLE - * @arg @ref LL_TIM_TRGO_UPDATE - * @arg @ref LL_TIM_TRGO_CC1IF - * @arg @ref LL_TIM_TRGO_OC1REF - * @arg @ref LL_TIM_TRGO_OC2REF - * @arg @ref LL_TIM_TRGO_OC3REF - * @arg @ref LL_TIM_TRGO_OC4REF - * @retval None - */ -__STATIC_INLINE void LL_TIM_SetTriggerOutput(TIM_TypeDef *TIMx, uint32_t TimerSynchronization) -{ - MODIFY_REG(TIMx->CR2, TIM_CR2_MMS, TimerSynchronization); -} - -/** - * @brief Set the trigger output 2 (TRGO2) used for ADC synchronization . - * @note Macro IS_TIM_TRGO2_INSTANCE(TIMx) can be used to check - * whether or not a timer instance can be used for ADC synchronization. - * @rmtoll CR2 MMS2 LL_TIM_SetTriggerOutput2 - * @param TIMx Timer Instance - * @param ADCSynchronization This parameter can be one of the following values: - * @arg @ref LL_TIM_TRGO2_RESET - * @arg @ref LL_TIM_TRGO2_ENABLE - * @arg @ref LL_TIM_TRGO2_UPDATE - * @arg @ref LL_TIM_TRGO2_CC1F - * @arg @ref LL_TIM_TRGO2_OC1 - * @arg @ref LL_TIM_TRGO2_OC2 - * @arg @ref LL_TIM_TRGO2_OC3 - * @arg @ref LL_TIM_TRGO2_OC4 - * @arg @ref LL_TIM_TRGO2_OC5 - * @arg @ref LL_TIM_TRGO2_OC6 - * @arg @ref LL_TIM_TRGO2_OC4_RISINGFALLING - * @arg @ref LL_TIM_TRGO2_OC6_RISINGFALLING - * @arg @ref LL_TIM_TRGO2_OC4_RISING_OC6_RISING - * @arg @ref LL_TIM_TRGO2_OC4_RISING_OC6_FALLING - * @arg @ref LL_TIM_TRGO2_OC5_RISING_OC6_RISING - * @arg @ref LL_TIM_TRGO2_OC5_RISING_OC6_FALLING - * @retval None - */ -__STATIC_INLINE void LL_TIM_SetTriggerOutput2(TIM_TypeDef *TIMx, uint32_t ADCSynchronization) -{ - MODIFY_REG(TIMx->CR2, TIM_CR2_MMS2, ADCSynchronization); -} - -/** - * @brief Set the synchronization mode of a slave timer. - * @note Macro IS_TIM_SLAVE_INSTANCE(TIMx) can be used to check whether or not - * a timer instance can operate as a slave timer. - * @rmtoll SMCR SMS LL_TIM_SetSlaveMode - * @param TIMx Timer instance - * @param SlaveMode This parameter can be one of the following values: - * @arg @ref LL_TIM_SLAVEMODE_DISABLED - * @arg @ref LL_TIM_SLAVEMODE_RESET - * @arg @ref LL_TIM_SLAVEMODE_GATED - * @arg @ref LL_TIM_SLAVEMODE_TRIGGER - * @arg @ref LL_TIM_SLAVEMODE_COMBINED_RESETTRIGGER - * @retval None - */ -__STATIC_INLINE void LL_TIM_SetSlaveMode(TIM_TypeDef *TIMx, uint32_t SlaveMode) -{ - MODIFY_REG(TIMx->SMCR, TIM_SMCR_SMS, SlaveMode); -} - -/** - * @brief Set the selects the trigger input to be used to synchronize the counter. - * @note Macro IS_TIM_SLAVE_INSTANCE(TIMx) can be used to check whether or not - * a timer instance can operate as a slave timer. - * @rmtoll SMCR TS LL_TIM_SetTriggerInput - * @param TIMx Timer instance - * @param TriggerInput This parameter can be one of the following values: - * @arg @ref LL_TIM_TS_ITR0 - * @arg @ref LL_TIM_TS_ITR1 - * @arg @ref LL_TIM_TS_ITR2 - * @arg @ref LL_TIM_TS_ITR3 - * @arg @ref LL_TIM_TS_ITR4 - * @arg @ref LL_TIM_TS_ITR5 - * @arg @ref LL_TIM_TS_ITR6 - * @arg @ref LL_TIM_TS_ITR7 - * @arg @ref LL_TIM_TS_ITR8 (*) - * @arg @ref LL_TIM_TS_ITR9 (*) - * @arg @ref LL_TIM_TS_ITR10 (*) - * @arg @ref LL_TIM_TS_ITR11 (*) - * @arg @ref LL_TIM_TS_ITR12 (*) - * @arg @ref LL_TIM_TS_ITR13 (*) - * @arg @ref LL_TIM_TS_TI1F_ED - * @arg @ref LL_TIM_TS_TI1FP1 - * @arg @ref LL_TIM_TS_TI2FP2 - * @arg @ref LL_TIM_TS_ETRF - * - * (*) Value not defined in all devices. - * @retval None - */ -__STATIC_INLINE void LL_TIM_SetTriggerInput(TIM_TypeDef *TIMx, uint32_t TriggerInput) -{ - MODIFY_REG(TIMx->SMCR, TIM_SMCR_TS, TriggerInput); -} - -/** - * @brief Enable the Master/Slave mode. - * @note Macro IS_TIM_SLAVE_INSTANCE(TIMx) can be used to check whether or not - * a timer instance can operate as a slave timer. - * @rmtoll SMCR MSM LL_TIM_EnableMasterSlaveMode - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_EnableMasterSlaveMode(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->SMCR, TIM_SMCR_MSM); -} - -/** - * @brief Disable the Master/Slave mode. - * @note Macro IS_TIM_SLAVE_INSTANCE(TIMx) can be used to check whether or not - * a timer instance can operate as a slave timer. - * @rmtoll SMCR MSM LL_TIM_DisableMasterSlaveMode - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_DisableMasterSlaveMode(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->SMCR, TIM_SMCR_MSM); -} - -/** - * @brief Indicates whether the Master/Slave mode is enabled. - * @note Macro IS_TIM_SLAVE_INSTANCE(TIMx) can be used to check whether or not - * a timer instance can operate as a slave timer. - * @rmtoll SMCR MSM LL_TIM_IsEnabledMasterSlaveMode - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsEnabledMasterSlaveMode(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->SMCR, TIM_SMCR_MSM) == (TIM_SMCR_MSM)) ? 1UL : 0UL); -} - -/** - * @brief Configure the external trigger (ETR) input. - * @note Macro IS_TIM_ETR_INSTANCE(TIMx) can be used to check whether or not - * a timer instance provides an external trigger input. - * @rmtoll SMCR ETP LL_TIM_ConfigETR\n - * SMCR ETPS LL_TIM_ConfigETR\n - * SMCR ETF LL_TIM_ConfigETR - * @param TIMx Timer instance - * @param ETRPolarity This parameter can be one of the following values: - * @arg @ref LL_TIM_ETR_POLARITY_NONINVERTED - * @arg @ref LL_TIM_ETR_POLARITY_INVERTED - * @param ETRPrescaler This parameter can be one of the following values: - * @arg @ref LL_TIM_ETR_PRESCALER_DIV1 - * @arg @ref LL_TIM_ETR_PRESCALER_DIV2 - * @arg @ref LL_TIM_ETR_PRESCALER_DIV4 - * @arg @ref LL_TIM_ETR_PRESCALER_DIV8 - * @param ETRFilter This parameter can be one of the following values: - * @arg @ref LL_TIM_ETR_FILTER_FDIV1 - * @arg @ref LL_TIM_ETR_FILTER_FDIV1_N2 - * @arg @ref LL_TIM_ETR_FILTER_FDIV1_N4 - * @arg @ref LL_TIM_ETR_FILTER_FDIV1_N8 - * @arg @ref LL_TIM_ETR_FILTER_FDIV2_N6 - * @arg @ref LL_TIM_ETR_FILTER_FDIV2_N8 - * @arg @ref LL_TIM_ETR_FILTER_FDIV4_N6 - * @arg @ref LL_TIM_ETR_FILTER_FDIV4_N8 - * @arg @ref LL_TIM_ETR_FILTER_FDIV8_N6 - * @arg @ref LL_TIM_ETR_FILTER_FDIV8_N8 - * @arg @ref LL_TIM_ETR_FILTER_FDIV16_N5 - * @arg @ref LL_TIM_ETR_FILTER_FDIV16_N6 - * @arg @ref LL_TIM_ETR_FILTER_FDIV16_N8 - * @arg @ref LL_TIM_ETR_FILTER_FDIV32_N5 - * @arg @ref LL_TIM_ETR_FILTER_FDIV32_N6 - * @arg @ref LL_TIM_ETR_FILTER_FDIV32_N8 - * @retval None - */ -__STATIC_INLINE void LL_TIM_ConfigETR(TIM_TypeDef *TIMx, uint32_t ETRPolarity, uint32_t ETRPrescaler, - uint32_t ETRFilter) -{ - MODIFY_REG(TIMx->SMCR, TIM_SMCR_ETP | TIM_SMCR_ETPS | TIM_SMCR_ETF, ETRPolarity | ETRPrescaler | ETRFilter); -} - -/** - * @brief Select the external trigger (ETR) input source. - * @note Macro IS_TIM_ETRSEL_INSTANCE(TIMx) can be used to check whether or - * not a timer instance supports ETR source selection. - * @rmtoll AF1 ETRSEL LL_TIM_SetETRSource - * @param TIMx Timer instance - * @param ETRSource This parameter can be one of the following values: - * For TIM1, the parameter is one of the following values: - * @arg LL_TIM_TIM1_ETRSOURCE_GPIO: TIM1_ETR is connected to GPIO - * @arg LL_TIM_TIM1_ETRSOURCE_COMP1: TIM1_ETR is connected to COMP1 output - * @arg LL_TIM_TIM1_ETRSOURCE_COMP2: TIM1_ETR is connected to COMP2 output - * @arg LL_TIM_TIM1_ETRSOURCE_ADC1_AWD1: TIM1_ETR is connected to ADC1 AWD1 - * @arg LL_TIM_TIM1_ETRSOURCE_ADC1_AWD2: TIM1_ETR is connected to ADC1 AWD2 - * @arg LL_TIM_TIM1_ETRSOURCE_ADC1_AWD3: TIM1_ETR is connected to ADC1 AWD3 - * @arg LL_TIM_TIM1_ETRSOURCE_ADC3_AWD1: TIM1_ETR is connected to ADC3 AWD1 - * @arg LL_TIM_TIM1_ETRSOURCE_ADC3_AWD2: TIM1_ETR is connected to ADC3 AWD2 - * @arg LL_TIM_TIM1_ETRSOURCE_ADC3_AWD3: TIM1_ETR is connected to ADC3 AWD3 - * - * For TIM2, the parameter is one of the following values: - * @arg LL_TIM_TIM2_ETRSOURCE_GPIO: TIM2_ETR is connected to GPIO - * @arg LL_TIM_TIM2_ETRSOURCE_COMP1: TIM2_ETR is connected to COMP1 output - * @arg LL_TIM_TIM2_ETRSOURCE_COMP2: TIM2_ETR is connected to COMP2 output - * @arg LL_TIM_TIM2_ETRSOURCE_LSE: TIM2_ETR is connected to LSE - * @arg LL_TIM_TIM2_ETRSOURCE_SAI1_FSA: TIM2_ETR is connected to SAI1 FS_A - * @arg LL_TIM_TIM2_ETRSOURCE_SAI1_FSB: TIM2_ETR is connected to SAI1 FS_B - * - * For TIM3, the parameter is one of the following values: - * @arg LL_TIM_TIM3_ETRSOURCE_GPIO: TIM3_ETR is connected to GPIO - * @arg LL_TIM_TIM3_ETRSOURCE_COMP1: TIM3_ETR is connected to COMP1 output - * - * For TIM5, the parameter is one of the following values: - * @arg LL_TIM_TIM5_ETRSOURCE_GPIO: TIM5_ETR is connected to GPIO - * @arg LL_TIM_TIM5_ETRSOURCE_SAI2_FSA: TIM5_ETR is connected to SAI2 FS_A (*) - * @arg LL_TIM_TIM5_ETRSOURCE_SAI2_FSB: TIM5_ETR is connected to SAI2 FS_B (*) - * @arg LL_TIM_TIM5_ETRSOURCE_SAI4_FSA: TIM5_ETR is connected to SAI2 FS_A (*) - * @arg LL_TIM_TIM5_ETRSOURCE_SAI4_FSB: TIM5_ETR is connected to SAI2 FS_B (*) - * - * For TIM8, the parameter is one of the following values: - * @arg LL_TIM_TIM8_ETRSOURCE_GPIO: TIM8_ETR is connected to GPIO - * @arg LL_TIM_TIM8_ETRSOURCE_COMP1: TIM8_ETR is connected to COMP1 output - * @arg LL_TIM_TIM8_ETRSOURCE_COMP2: TIM8_ETR is connected to COMP2 output - * @arg LL_TIM_TIM8_ETRSOURCE_ADC2_AWD1: TIM8_ETR is connected to ADC2 AWD1 - * @arg LL_TIM_TIM8_ETRSOURCE_ADC2_AWD2: TIM8_ETR is connected to ADC2 AWD2 - * @arg LL_TIM_TIM8_ETRSOURCE_ADC2_AWD3: TIM8_ETR is connected to ADC2 AWD3 - * @arg LL_TIM_TIM8_ETRSOURCE_ADC3_AWD1: TIM8_ETR is connected to ADC3 AWD1 - * @arg LL_TIM_TIM8_ETRSOURCE_ADC3_AWD2: TIM8_ETR is connected to ADC3 AWD2 - * @arg LL_TIM_TIM8_ETRSOURCE_ADC3_AWD3: TIM8_ETR is connected to ADC3 AWD3 - * - * For TIM23, the parameter is one of the following values: (*) - * @arg LL_TIM_TIM23_ETRSOURCE_GPIO TIM23_ETR is connected to GPIO - * @arg LL_TIM_TIM23_ETRSOURCE_COMP1 TIM23_ETR is connected to COMP1 output - * @arg LL_TIM_TIM23_ETRSOURCE_COMP2 TIM23_ETR is connected to COMP2 output - * - * For TIM24, the parameter is one of the following values: (*) - * @arg LL_TIM_TIM24_ETRSOURCE_GPIO TIM24_ETR is connected to GPIO - * @arg LL_TIM_TIM24_ETRSOURCE_SAI4_FSA TIM24_ETR is connected to SAI4 FS_A - * @arg LL_TIM_TIM24_ETRSOURCE_SAI4_FSB TIM24_ETR is connected to SAI4 FS_B - * @arg LL_TIM_TIM24_ETRSOURCE_SAI1_FSA TIM24_ETR is connected to SAI1 FS_A - * @arg LL_TIM_TIM24_ETRSOURCE_SAI1_FSB TIM24_ETR is connected to SAI1 FS_B - * - * (*) Value not defined in all devices. - * @retval None - */ -__STATIC_INLINE void LL_TIM_SetETRSource(TIM_TypeDef *TIMx, uint32_t ETRSource) -{ - MODIFY_REG(TIMx->AF1, TIMx_AF1_ETRSEL, ETRSource); -} - -/** - * @} - */ - -/** @defgroup TIM_LL_EF_Break_Function Break function configuration - * @{ - */ -/** - * @brief Enable the break function. - * @note Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not - * a timer instance provides a break input. - * @rmtoll BDTR BKE LL_TIM_EnableBRK - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_EnableBRK(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->BDTR, TIM_BDTR_BKE); -} - -/** - * @brief Disable the break function. - * @rmtoll BDTR BKE LL_TIM_DisableBRK - * @param TIMx Timer instance - * @note Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not - * a timer instance provides a break input. - * @retval None - */ -__STATIC_INLINE void LL_TIM_DisableBRK(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->BDTR, TIM_BDTR_BKE); -} - -#if defined(TIM_BDTR_BKBID) -/** - * @brief Configure the break input. - * @note Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not - * a timer instance provides a break input. - * @note Bidirectional mode is only supported by advanced timer instances. - * Macro IS_TIM_ADVANCED_INSTANCE(TIMx) can be used to check whether or not - * a timer instance is an advanced-control timer. - * @note In bidirectional mode (BKBID bit set), the Break input is configured both - * in input mode and in open drain output mode. Any active Break event will - * assert a low logic level on the Break input to indicate an internal break - * event to external devices. - * @note When bidirectional mode isn't supported, BreakAFMode must be set to - * LL_TIM_BREAK_AFMODE_INPUT. - * @rmtoll BDTR BKP LL_TIM_ConfigBRK\n - * BDTR BKF LL_TIM_ConfigBRK\n - * BDTR BKBID LL_TIM_ConfigBRK - * @param TIMx Timer instance - * @param BreakPolarity This parameter can be one of the following values: - * @arg @ref LL_TIM_BREAK_POLARITY_LOW - * @arg @ref LL_TIM_BREAK_POLARITY_HIGH - * @param BreakFilter This parameter can be one of the following values: - * @arg @ref LL_TIM_BREAK_FILTER_FDIV1 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV1_N2 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV1_N4 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV1_N8 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV2_N6 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV2_N8 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV4_N6 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV4_N8 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV8_N6 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV8_N8 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV16_N5 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV16_N6 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV16_N8 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV32_N5 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV32_N6 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV32_N8 - * @param BreakAFMode This parameter can be one of the following values: - * @arg @ref LL_TIM_BREAK_AFMODE_INPUT - * @arg @ref LL_TIM_BREAK_AFMODE_BIDIRECTIONAL - * @retval None - */ -__STATIC_INLINE void LL_TIM_ConfigBRK(TIM_TypeDef *TIMx, uint32_t BreakPolarity, uint32_t BreakFilter, - uint32_t BreakAFMode) -{ - MODIFY_REG(TIMx->BDTR, TIM_BDTR_BKP | TIM_BDTR_BKF | TIM_BDTR_BKBID, BreakPolarity | BreakFilter | BreakAFMode); -} - -#else -/** - * @brief Configure the break input. - * @note Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not - * a timer instance provides a break input. - * @rmtoll BDTR BKP LL_TIM_ConfigBRK\n - * BDTR BKF LL_TIM_ConfigBRK - * @param TIMx Timer instance - * @param BreakPolarity This parameter can be one of the following values: - * @arg @ref LL_TIM_BREAK_POLARITY_LOW - * @arg @ref LL_TIM_BREAK_POLARITY_HIGH - * @param BreakFilter This parameter can be one of the following values: - * @arg @ref LL_TIM_BREAK_FILTER_FDIV1 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV1_N2 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV1_N4 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV1_N8 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV2_N6 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV2_N8 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV4_N6 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV4_N8 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV8_N6 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV8_N8 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV16_N5 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV16_N6 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV16_N8 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV32_N5 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV32_N6 - * @arg @ref LL_TIM_BREAK_FILTER_FDIV32_N8 - * @retval None - */ -__STATIC_INLINE void LL_TIM_ConfigBRK(TIM_TypeDef *TIMx, uint32_t BreakPolarity, - uint32_t BreakFilter) -{ - MODIFY_REG(TIMx->BDTR, TIM_BDTR_BKP | TIM_BDTR_BKF, BreakPolarity | BreakFilter); -} - -#endif /* TIM_BDTR_BKBID */ -#if defined(TIM_BDTR_BKBID) -/** - * @brief Disarm the break input (when it operates in bidirectional mode). - * @note The break input can be disarmed only when it is configured in - * bidirectional mode and when when MOE is reset. - * @note Purpose is to be able to have the input voltage back to high-state, - * whatever the time constant on the output . - * @rmtoll BDTR BKDSRM LL_TIM_DisarmBRK - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_DisarmBRK(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->BDTR, TIM_BDTR_BKDSRM); -} - -/** - * @brief Re-arm the break input (when it operates in bidirectional mode). - * @note The Break input is automatically armed as soon as MOE bit is set. - * @rmtoll BDTR BKDSRM LL_TIM_ReArmBRK - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_ReArmBRK(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->BDTR, TIM_BDTR_BKDSRM); -} - -#endif /*TIM_BDTR_BKBID */ -/** - * @brief Enable the break 2 function. - * @note Macro IS_TIM_BKIN2_INSTANCE(TIMx) can be used to check whether or not - * a timer instance provides a second break input. - * @rmtoll BDTR BK2E LL_TIM_EnableBRK2 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_EnableBRK2(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->BDTR, TIM_BDTR_BK2E); -} - -/** - * @brief Disable the break 2 function. - * @note Macro IS_TIM_BKIN2_INSTANCE(TIMx) can be used to check whether or not - * a timer instance provides a second break input. - * @rmtoll BDTR BK2E LL_TIM_DisableBRK2 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_DisableBRK2(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->BDTR, TIM_BDTR_BK2E); -} - -#if defined(TIM_BDTR_BKBID) -/** - * @brief Configure the break 2 input. - * @note Macro IS_TIM_BKIN2_INSTANCE(TIMx) can be used to check whether or not - * a timer instance provides a second break input. - * @note Bidirectional mode is only supported by advanced timer instances. - * Macro IS_TIM_ADVANCED_INSTANCE(TIMx) can be used to check whether or not - * a timer instance is an advanced-control timer. - * @note In bidirectional mode (BK2BID bit set), the Break 2 input is configured both - * in input mode and in open drain output mode. Any active Break event will - * assert a low logic level on the Break 2 input to indicate an internal break - * event to external devices. - * @note When bidirectional mode isn't supported, Break2AFMode must be set to - * LL_TIM_BREAK2_AFMODE_INPUT. - * @rmtoll BDTR BK2P LL_TIM_ConfigBRK2\n - * BDTR BK2F LL_TIM_ConfigBRK2\n - * BDTR BK2BID LL_TIM_ConfigBRK2 - * @param TIMx Timer instance - * @param Break2Polarity This parameter can be one of the following values: - * @arg @ref LL_TIM_BREAK2_POLARITY_LOW - * @arg @ref LL_TIM_BREAK2_POLARITY_HIGH - * @param Break2Filter This parameter can be one of the following values: - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV1 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV1_N2 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV1_N4 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV1_N8 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV2_N6 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV2_N8 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV4_N6 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV4_N8 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV8_N6 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV8_N8 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV16_N5 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV16_N6 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV16_N8 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV32_N5 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV32_N6 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV32_N8 - * @param Break2AFMode This parameter can be one of the following values: - * @arg @ref LL_TIM_BREAK2_AFMODE_INPUT - * @arg @ref LL_TIM_BREAK2_AFMODE_BIDIRECTIONAL - * @retval None - */ -__STATIC_INLINE void LL_TIM_ConfigBRK2(TIM_TypeDef *TIMx, uint32_t Break2Polarity, uint32_t Break2Filter, - uint32_t Break2AFMode) -{ - MODIFY_REG(TIMx->BDTR, TIM_BDTR_BK2P | TIM_BDTR_BK2F | TIM_BDTR_BK2BID, Break2Polarity | Break2Filter | Break2AFMode); -} - -#else -/** - * @brief Configure the break 2 input. - * @note Macro IS_TIM_BKIN2_INSTANCE(TIMx) can be used to check whether or not - * a timer instance provides a second break input. - * @rmtoll BDTR BK2P LL_TIM_ConfigBRK2\n - * BDTR BK2F LL_TIM_ConfigBRK2 - * @param TIMx Timer instance - * @param Break2Polarity This parameter can be one of the following values: - * @arg @ref LL_TIM_BREAK2_POLARITY_LOW - * @arg @ref LL_TIM_BREAK2_POLARITY_HIGH - * @param Break2Filter This parameter can be one of the following values: - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV1 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV1_N2 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV1_N4 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV1_N8 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV2_N6 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV2_N8 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV4_N6 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV4_N8 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV8_N6 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV8_N8 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV16_N5 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV16_N6 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV16_N8 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV32_N5 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV32_N6 - * @arg @ref LL_TIM_BREAK2_FILTER_FDIV32_N8 - * @retval None - */ -__STATIC_INLINE void LL_TIM_ConfigBRK2(TIM_TypeDef *TIMx, uint32_t Break2Polarity, uint32_t Break2Filter) -{ - MODIFY_REG(TIMx->BDTR, TIM_BDTR_BK2P | TIM_BDTR_BK2F, Break2Polarity | Break2Filter); -} - -#endif /*TIM_BDTR_BKBID */ -#if defined(TIM_BDTR_BKBID) -/** - * @brief Disarm the break 2 input (when it operates in bidirectional mode). - * @note The break 2 input can be disarmed only when it is configured in - * bidirectional mode and when when MOE is reset. - * @note Purpose is to be able to have the input voltage back to high-state, - * whatever the time constant on the output. - * @rmtoll BDTR BK2DSRM LL_TIM_DisarmBRK2 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_DisarmBRK2(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->BDTR, TIM_BDTR_BK2DSRM); -} - -/** - * @brief Re-arm the break 2 input (when it operates in bidirectional mode). - * @note The Break 2 input is automatically armed as soon as MOE bit is set. - * @rmtoll BDTR BK2DSRM LL_TIM_ReArmBRK2 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_ReArmBRK2(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->BDTR, TIM_BDTR_BK2DSRM); -} - -#endif /*TIM_BDTR_BKBID */ -/** - * @brief Select the outputs off state (enabled v.s. disabled) in Idle and Run modes. - * @note Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not - * a timer instance provides a break input. - * @rmtoll BDTR OSSI LL_TIM_SetOffStates\n - * BDTR OSSR LL_TIM_SetOffStates - * @param TIMx Timer instance - * @param OffStateIdle This parameter can be one of the following values: - * @arg @ref LL_TIM_OSSI_DISABLE - * @arg @ref LL_TIM_OSSI_ENABLE - * @param OffStateRun This parameter can be one of the following values: - * @arg @ref LL_TIM_OSSR_DISABLE - * @arg @ref LL_TIM_OSSR_ENABLE - * @retval None - */ -__STATIC_INLINE void LL_TIM_SetOffStates(TIM_TypeDef *TIMx, uint32_t OffStateIdle, uint32_t OffStateRun) -{ - MODIFY_REG(TIMx->BDTR, TIM_BDTR_OSSI | TIM_BDTR_OSSR, OffStateIdle | OffStateRun); -} - -/** - * @brief Enable automatic output (MOE can be set by software or automatically when a break input is active). - * @note Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not - * a timer instance provides a break input. - * @rmtoll BDTR AOE LL_TIM_EnableAutomaticOutput - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_EnableAutomaticOutput(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->BDTR, TIM_BDTR_AOE); -} - -/** - * @brief Disable automatic output (MOE can be set only by software). - * @note Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not - * a timer instance provides a break input. - * @rmtoll BDTR AOE LL_TIM_DisableAutomaticOutput - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_DisableAutomaticOutput(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->BDTR, TIM_BDTR_AOE); -} - -/** - * @brief Indicate whether automatic output is enabled. - * @note Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not - * a timer instance provides a break input. - * @rmtoll BDTR AOE LL_TIM_IsEnabledAutomaticOutput - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsEnabledAutomaticOutput(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->BDTR, TIM_BDTR_AOE) == (TIM_BDTR_AOE)) ? 1UL : 0UL); -} - -/** - * @brief Enable the outputs (set the MOE bit in TIMx_BDTR register). - * @note The MOE bit in TIMx_BDTR register allows to enable /disable the outputs by - * software and is reset in case of break or break2 event - * @note Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not - * a timer instance provides a break input. - * @rmtoll BDTR MOE LL_TIM_EnableAllOutputs - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_EnableAllOutputs(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->BDTR, TIM_BDTR_MOE); -} - -/** - * @brief Disable the outputs (reset the MOE bit in TIMx_BDTR register). - * @note The MOE bit in TIMx_BDTR register allows to enable /disable the outputs by - * software and is reset in case of break or break2 event. - * @note Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not - * a timer instance provides a break input. - * @rmtoll BDTR MOE LL_TIM_DisableAllOutputs - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_DisableAllOutputs(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->BDTR, TIM_BDTR_MOE); -} - -/** - * @brief Indicates whether outputs are enabled. - * @note Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not - * a timer instance provides a break input. - * @rmtoll BDTR MOE LL_TIM_IsEnabledAllOutputs - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsEnabledAllOutputs(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->BDTR, TIM_BDTR_MOE) == (TIM_BDTR_MOE)) ? 1UL : 0UL); -} - -#if defined(TIM_BREAK_INPUT_SUPPORT) -/** - * @brief Enable the signals connected to the designated timer break input. - * @note Macro IS_TIM_BREAKSOURCE_INSTANCE(TIMx) can be used to check whether - * or not a timer instance allows for break input selection. - * @rmtoll AF1 BKINE LL_TIM_EnableBreakInputSource\n - * AF1 BKCMP1E LL_TIM_EnableBreakInputSource\n - * AF1 BKCMP2E LL_TIM_EnableBreakInputSource\n - * AF1 BKDF1BK0E LL_TIM_EnableBreakInputSource\n - * AF2 BK2INE LL_TIM_EnableBreakInputSource\n - * AF2 BK2CMP1E LL_TIM_EnableBreakInputSource\n - * AF2 BK2CMP2E LL_TIM_EnableBreakInputSource\n - * AF2 BK2DF1BK1E LL_TIM_EnableBreakInputSource - * @param TIMx Timer instance - * @param BreakInput This parameter can be one of the following values: - * @arg @ref LL_TIM_BREAK_INPUT_BKIN - * @arg @ref LL_TIM_BREAK_INPUT_BKIN2 - * @param Source This parameter can be one of the following values: - * @arg @ref LL_TIM_BKIN_SOURCE_BKIN - * @arg @ref LL_TIM_BKIN_SOURCE_BKCOMP1 - * @arg @ref LL_TIM_BKIN_SOURCE_BKCOMP2 - * @arg @ref LL_TIM_BKIN_SOURCE_DF1BK - * @retval None - */ -__STATIC_INLINE void LL_TIM_EnableBreakInputSource(TIM_TypeDef *TIMx, uint32_t BreakInput, uint32_t Source) -{ - __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->AF1) + BreakInput)); - SET_BIT(*pReg, Source); -} - -/** - * @brief Disable the signals connected to the designated timer break input. - * @note Macro IS_TIM_BREAKSOURCE_INSTANCE(TIMx) can be used to check whether - * or not a timer instance allows for break input selection. - * @rmtoll AF1 BKINE LL_TIM_DisableBreakInputSource\n - * AF1 BKCMP1E LL_TIM_DisableBreakInputSource\n - * AF1 BKCMP2E LL_TIM_DisableBreakInputSource\n - * AF1 BKDF1BK0E LL_TIM_DisableBreakInputSource\n - * AF2 BK2INE LL_TIM_DisableBreakInputSource\n - * AF2 BK2CMP1E LL_TIM_DisableBreakInputSource\n - * AF2 BK2CMP2E LL_TIM_DisableBreakInputSource\n - * AF2 BK2DF1BK1E LL_TIM_DisableBreakInputSource - * @param TIMx Timer instance - * @param BreakInput This parameter can be one of the following values: - * @arg @ref LL_TIM_BREAK_INPUT_BKIN - * @arg @ref LL_TIM_BREAK_INPUT_BKIN2 - * @param Source This parameter can be one of the following values: - * @arg @ref LL_TIM_BKIN_SOURCE_BKIN - * @arg @ref LL_TIM_BKIN_SOURCE_BKCOMP1 - * @arg @ref LL_TIM_BKIN_SOURCE_BKCOMP2 - * @arg @ref LL_TIM_BKIN_SOURCE_DF1BK - * @retval None - */ -__STATIC_INLINE void LL_TIM_DisableBreakInputSource(TIM_TypeDef *TIMx, uint32_t BreakInput, uint32_t Source) -{ - __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->AF1) + BreakInput)); - CLEAR_BIT(*pReg, Source); -} - -/** - * @brief Set the polarity of the break signal for the timer break input. - * @note Macro IS_TIM_BREAKSOURCE_INSTANCE(TIMx) can be used to check whether - * or not a timer instance allows for break input selection. - * @rmtoll AF1 BKINP LL_TIM_SetBreakInputSourcePolarity\n - * AF1 BKCMP1P LL_TIM_SetBreakInputSourcePolarity\n - * AF1 BKCMP2P LL_TIM_SetBreakInputSourcePolarity\n - * AF2 BK2INP LL_TIM_SetBreakInputSourcePolarity\n - * AF2 BK2CMP1P LL_TIM_SetBreakInputSourcePolarity\n - * AF2 BK2CMP2P LL_TIM_SetBreakInputSourcePolarity - * @param TIMx Timer instance - * @param BreakInput This parameter can be one of the following values: - * @arg @ref LL_TIM_BREAK_INPUT_BKIN - * @arg @ref LL_TIM_BREAK_INPUT_BKIN2 - * @param Source This parameter can be one of the following values: - * @arg @ref LL_TIM_BKIN_SOURCE_BKIN - * @arg @ref LL_TIM_BKIN_SOURCE_BKCOMP1 - * @arg @ref LL_TIM_BKIN_SOURCE_BKCOMP2 - * @param Polarity This parameter can be one of the following values: - * @arg @ref LL_TIM_BKIN_POLARITY_LOW - * @arg @ref LL_TIM_BKIN_POLARITY_HIGH - * @retval None - */ -__STATIC_INLINE void LL_TIM_SetBreakInputSourcePolarity(TIM_TypeDef *TIMx, uint32_t BreakInput, uint32_t Source, - uint32_t Polarity) -{ - __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->AF1) + BreakInput)); - MODIFY_REG(*pReg, (TIMx_AF1_BKINP << TIM_POSITION_BRK_SOURCE), (Polarity << TIM_POSITION_BRK_SOURCE)); -} -#endif /* TIM_BREAK_INPUT_SUPPORT */ -/** - * @} - */ - -/** @defgroup TIM_LL_EF_DMA_Burst_Mode DMA burst mode configuration - * @{ - */ -/** - * @brief Configures the timer DMA burst feature. - * @note Macro IS_TIM_DMABURST_INSTANCE(TIMx) can be used to check whether or - * not a timer instance supports the DMA burst mode. - * @rmtoll DCR DBL LL_TIM_ConfigDMABurst\n - * DCR DBA LL_TIM_ConfigDMABurst - * @param TIMx Timer instance - * @param DMABurstBaseAddress This parameter can be one of the following values: - * @arg @ref LL_TIM_DMABURST_BASEADDR_CR1 - * @arg @ref LL_TIM_DMABURST_BASEADDR_CR2 - * @arg @ref LL_TIM_DMABURST_BASEADDR_SMCR - * @arg @ref LL_TIM_DMABURST_BASEADDR_DIER - * @arg @ref LL_TIM_DMABURST_BASEADDR_SR - * @arg @ref LL_TIM_DMABURST_BASEADDR_EGR - * @arg @ref LL_TIM_DMABURST_BASEADDR_CCMR1 - * @arg @ref LL_TIM_DMABURST_BASEADDR_CCMR2 - * @arg @ref LL_TIM_DMABURST_BASEADDR_CCER - * @arg @ref LL_TIM_DMABURST_BASEADDR_CNT - * @arg @ref LL_TIM_DMABURST_BASEADDR_PSC - * @arg @ref LL_TIM_DMABURST_BASEADDR_ARR - * @arg @ref LL_TIM_DMABURST_BASEADDR_RCR - * @arg @ref LL_TIM_DMABURST_BASEADDR_CCR1 - * @arg @ref LL_TIM_DMABURST_BASEADDR_CCR2 - * @arg @ref LL_TIM_DMABURST_BASEADDR_CCR3 - * @arg @ref LL_TIM_DMABURST_BASEADDR_CCR4 - * @arg @ref LL_TIM_DMABURST_BASEADDR_BDTR - * @arg @ref LL_TIM_DMABURST_BASEADDR_CCMR3 - * @arg @ref LL_TIM_DMABURST_BASEADDR_CCR5 - * @arg @ref LL_TIM_DMABURST_BASEADDR_CCR6 - * @arg @ref LL_TIM_DMABURST_BASEADDR_AF1 - * @arg @ref LL_TIM_DMABURST_BASEADDR_AF2 - * @arg @ref LL_TIM_DMABURST_BASEADDR_TISEL - * - * @param DMABurstLength This parameter can be one of the following values: - * @arg @ref LL_TIM_DMABURST_LENGTH_1TRANSFER - * @arg @ref LL_TIM_DMABURST_LENGTH_2TRANSFERS - * @arg @ref LL_TIM_DMABURST_LENGTH_3TRANSFERS - * @arg @ref LL_TIM_DMABURST_LENGTH_4TRANSFERS - * @arg @ref LL_TIM_DMABURST_LENGTH_5TRANSFERS - * @arg @ref LL_TIM_DMABURST_LENGTH_6TRANSFERS - * @arg @ref LL_TIM_DMABURST_LENGTH_7TRANSFERS - * @arg @ref LL_TIM_DMABURST_LENGTH_8TRANSFERS - * @arg @ref LL_TIM_DMABURST_LENGTH_9TRANSFERS - * @arg @ref LL_TIM_DMABURST_LENGTH_10TRANSFERS - * @arg @ref LL_TIM_DMABURST_LENGTH_11TRANSFERS - * @arg @ref LL_TIM_DMABURST_LENGTH_12TRANSFERS - * @arg @ref LL_TIM_DMABURST_LENGTH_13TRANSFERS - * @arg @ref LL_TIM_DMABURST_LENGTH_14TRANSFERS - * @arg @ref LL_TIM_DMABURST_LENGTH_15TRANSFERS - * @arg @ref LL_TIM_DMABURST_LENGTH_16TRANSFERS - * @arg @ref LL_TIM_DMABURST_LENGTH_17TRANSFERS - * @arg @ref LL_TIM_DMABURST_LENGTH_18TRANSFERS - * @retval None - */ -__STATIC_INLINE void LL_TIM_ConfigDMABurst(TIM_TypeDef *TIMx, uint32_t DMABurstBaseAddress, uint32_t DMABurstLength) -{ - MODIFY_REG(TIMx->DCR, (TIM_DCR_DBL | TIM_DCR_DBA), (DMABurstBaseAddress | DMABurstLength)); -} - -/** - * @} - */ - -/** @defgroup TIM_LL_EF_Timer_Inputs_Remapping Timer input remapping - * @{ - */ -/** - * @brief Remap TIM inputs (input channel, internal/external triggers). - * @note Macro IS_TIM_REMAP_INSTANCE(TIMx) can be used to check whether or not - * a some timer inputs can be remapped. - * TIM1: one of the following values: - * @arg LL_TIM_TIM1_TI1_RMP_GPIO: TIM1 TI1 is connected to GPIO - * @arg LL_TIM_TIM1_TI1_RMP_COMP1: TIM1 TI1 is connected to COMP1 output - * - * TIM2: one of the following values: - * @arg LL_TIM_TIM2_TI4_RMP_GPIO: TIM2 TI4 is connected to GPIO - * @arg LL_TIM_TIM2_TI4_RMP_COMP1: TIM2 TI4 is connected to COMP1 output - * @arg LL_TIM_TIM2_TI4_RMP_COMP2: TIM2 TI4 is connected to COMP2 output - * @arg LL_TIM_TIM2_TI4_RMP_COMP1_COMP2: TIM2 TI4 is connected to logical OR between COMP1 and COMP2 output - * - * TIM3: one of the following values: - * @arg LL_TIM_TIM3_TI1_RMP_GPIO: TIM3 TI1 is connected to GPIO - * @arg LL_TIM_TIM3_TI1_RMP_COMP1: TIM3 TI1 is connected to COMP1 output - * @arg LL_TIM_TIM3_TI1_RMP_COMP2: TIM3 TI1 is connected to COMP2 output - * @arg LL_TIM_TIM3_TI1_RMP_COMP1_COMP2: TIM3 TI1 is connected to logical OR between COMP1 and COMP2 output - * - * TIM5: one of the following values: - * @arg LL_TIM_TIM5_TI1_RMP_GPIO: TIM5 TI1 is connected to GPIO - * @arg LL_TIM_TIM5_TI1_RMP_CAN_TMP: TIM5 TI1 is connected to CAN TMP - * @arg LL_TIM_TIM5_TI1_RMP_CAN_RTP: TIM5 TI1 is connected to CAN RTP - * - * TIM8: one of the following values: - * @arg LL_TIM_TIM8_TI1_RMP_GPIO: TIM8 TI1 is connected to GPIO - * @arg LL_TIM_TIM8_TI1_RMP_COMP2: TIM8 TI1 is connected to COMP2 output - * - * TIM12: one of the following values: (*) - * @arg LL_TIM_TIM12_TI1_RMP_GPIO: TIM12 TI1 is connected to GPIO - * @arg LL_TIM_TIM12_TI1_RMP_SPDIF_FS: TIM12 TI1 is connected to SPDIF FS - * - * TIM15: one of the following values: - * @arg LL_TIM_TIM15_TI1_RMP_GPIO: TIM15 TI1 is connected to GPIO - * @arg LL_TIM_TIM15_TI1_RMP_TIM2: TIM15 TI1 is connected to TIM2 CH1 - * @arg LL_TIM_TIM15_TI1_RMP_TIM3: TIM15 TI1 is connected to TIM3 CH1 - * @arg LL_TIM_TIM15_TI1_RMP_TIM4: TIM15 TI1 is connected to TIM4 CH1 - * @arg LL_TIM_TIM15_TI1_RMP_LSE: TIM15 TI1 is connected to LSE - * @arg LL_TIM_TIM15_TI1_RMP_CSI: TIM15 TI1 is connected to CSI - * @arg LL_TIM_TIM15_TI1_RMP_MCO2: TIM15 TI1 is connected to MCO2 - * @arg LL_TIM_TIM15_TI2_RMP_GPIO: TIM15 TI2 is connected to GPIO - * @arg LL_TIM_TIM15_TI2_RMP_TIM2: TIM15 TI2 is connected to TIM2 CH2 - * @arg LL_TIM_TIM15_TI2_RMP_TIM3: TIM15 TI2 is connected to TIM3 CH2 - * @arg LL_TIM_TIM15_TI2_RMP_TIM4: TIM15 TI2 is connected to TIM4 CH2 - * - * TIM16: one of the following values: - * @arg LL_TIM_TIM16_TI1_RMP_GPIO: TIM16 TI1 is connected to GPIO - * @arg LL_TIM_TIM16_TI1_RMP_LSI: TIM16 TI1 is connected to LSI - * @arg LL_TIM_TIM16_TI1_RMP_LSE: TIM16 TI1 is connected to LSE - * @arg LL_TIM_TIM16_TI1_RMP_RTC: TIM16 TI1 is connected to RTC wakeup interrupt - * - * TIM17: one of the following values: - * @arg LL_TIM_TIM17_TI1_RMP_GPIO: TIM17 TI1 is connected to GPIO - * @arg LL_TIM_TIM17_TI1_RMP_SPDIF_FS: TIM17 TI1 is connected to SPDIF FS (*) - * @arg LL_TIM_TIM17_TI1_RMP_HSE_1MHZ: TIM17 TI1 is connected to HSE 1MHz - * @arg LL_TIM_TIM17_TI1_RMP_MCO1: TIM17 TI1 is connected to MCO1 - * - * TIM23: one of the following values: (*) - * @arg LL_TIM_TIM23_TI4_RMP_GPIO TIM23_TI4 is connected to GPIO - * @arg LL_TIM_TIM23_TI4_RMP_COMP1 TIM23_TI4 is connected to COMP1 output - * @arg LL_TIM_TIM23_TI4_RMP_COMP2 TIM23_TI4 is connected to COMP2 output - * @arg LL_TIM_TIM23_TI4_RMP_COMP1_COMP2 TIM23_TI4 is connected to COMP2 output - * - * TIM24: one of the following values: (*) - * @arg LL_TIM_TIM24_TI1_RMP_GPIO TIM24_TI1 is connected to GPIO - * @arg LL_TIM_TIM24_TI1_RMP_CAN_TMP TIM24_TI1 is connected to CAN_TMP - * @arg LL_TIM_TIM24_TI1_RMP_CAN_RTP TIM24_TI1 is connected to CAN_RTP - * @arg LL_TIM_TIM24_TI1_RMP_CAN_SOC TIM24_TI1 is connected to CAN_SOC - * - * (*) Value not defined in all devices. \n - * @retval None - */ -__STATIC_INLINE void LL_TIM_SetRemap(TIM_TypeDef *TIMx, uint32_t Remap) -{ - MODIFY_REG(TIMx->TISEL, (TIM_TISEL_TI1SEL | TIM_TISEL_TI2SEL | TIM_TISEL_TI3SEL | TIM_TISEL_TI4SEL), Remap); -} - -/** - * @} - */ - -/** @defgroup TIM_LL_EF_FLAG_Management FLAG-Management - * @{ - */ -/** - * @brief Clear the update interrupt flag (UIF). - * @rmtoll SR UIF LL_TIM_ClearFlag_UPDATE - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_ClearFlag_UPDATE(TIM_TypeDef *TIMx) -{ - WRITE_REG(TIMx->SR, ~(TIM_SR_UIF)); -} - -/** - * @brief Indicate whether update interrupt flag (UIF) is set (update interrupt is pending). - * @rmtoll SR UIF LL_TIM_IsActiveFlag_UPDATE - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_UPDATE(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->SR, TIM_SR_UIF) == (TIM_SR_UIF)) ? 1UL : 0UL); -} - -/** - * @brief Clear the Capture/Compare 1 interrupt flag (CC1F). - * @rmtoll SR CC1IF LL_TIM_ClearFlag_CC1 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_ClearFlag_CC1(TIM_TypeDef *TIMx) -{ - WRITE_REG(TIMx->SR, ~(TIM_SR_CC1IF)); -} - -/** - * @brief Indicate whether Capture/Compare 1 interrupt flag (CC1F) is set (Capture/Compare 1 interrupt is pending). - * @rmtoll SR CC1IF LL_TIM_IsActiveFlag_CC1 - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC1(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->SR, TIM_SR_CC1IF) == (TIM_SR_CC1IF)) ? 1UL : 0UL); -} - -/** - * @brief Clear the Capture/Compare 2 interrupt flag (CC2F). - * @rmtoll SR CC2IF LL_TIM_ClearFlag_CC2 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_ClearFlag_CC2(TIM_TypeDef *TIMx) -{ - WRITE_REG(TIMx->SR, ~(TIM_SR_CC2IF)); -} - -/** - * @brief Indicate whether Capture/Compare 2 interrupt flag (CC2F) is set (Capture/Compare 2 interrupt is pending). - * @rmtoll SR CC2IF LL_TIM_IsActiveFlag_CC2 - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC2(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->SR, TIM_SR_CC2IF) == (TIM_SR_CC2IF)) ? 1UL : 0UL); -} - -/** - * @brief Clear the Capture/Compare 3 interrupt flag (CC3F). - * @rmtoll SR CC3IF LL_TIM_ClearFlag_CC3 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_ClearFlag_CC3(TIM_TypeDef *TIMx) -{ - WRITE_REG(TIMx->SR, ~(TIM_SR_CC3IF)); -} - -/** - * @brief Indicate whether Capture/Compare 3 interrupt flag (CC3F) is set (Capture/Compare 3 interrupt is pending). - * @rmtoll SR CC3IF LL_TIM_IsActiveFlag_CC3 - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC3(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->SR, TIM_SR_CC3IF) == (TIM_SR_CC3IF)) ? 1UL : 0UL); -} - -/** - * @brief Clear the Capture/Compare 4 interrupt flag (CC4F). - * @rmtoll SR CC4IF LL_TIM_ClearFlag_CC4 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_ClearFlag_CC4(TIM_TypeDef *TIMx) -{ - WRITE_REG(TIMx->SR, ~(TIM_SR_CC4IF)); -} - -/** - * @brief Indicate whether Capture/Compare 4 interrupt flag (CC4F) is set (Capture/Compare 4 interrupt is pending). - * @rmtoll SR CC4IF LL_TIM_IsActiveFlag_CC4 - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC4(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->SR, TIM_SR_CC4IF) == (TIM_SR_CC4IF)) ? 1UL : 0UL); -} - -/** - * @brief Clear the Capture/Compare 5 interrupt flag (CC5F). - * @rmtoll SR CC5IF LL_TIM_ClearFlag_CC5 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_ClearFlag_CC5(TIM_TypeDef *TIMx) -{ - WRITE_REG(TIMx->SR, ~(TIM_SR_CC5IF)); -} - -/** - * @brief Indicate whether Capture/Compare 5 interrupt flag (CC5F) is set (Capture/Compare 5 interrupt is pending). - * @rmtoll SR CC5IF LL_TIM_IsActiveFlag_CC5 - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC5(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->SR, TIM_SR_CC5IF) == (TIM_SR_CC5IF)) ? 1UL : 0UL); -} - -/** - * @brief Clear the Capture/Compare 6 interrupt flag (CC6F). - * @rmtoll SR CC6IF LL_TIM_ClearFlag_CC6 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_ClearFlag_CC6(TIM_TypeDef *TIMx) -{ - WRITE_REG(TIMx->SR, ~(TIM_SR_CC6IF)); -} - -/** - * @brief Indicate whether Capture/Compare 6 interrupt flag (CC6F) is set (Capture/Compare 6 interrupt is pending). - * @rmtoll SR CC6IF LL_TIM_IsActiveFlag_CC6 - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC6(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->SR, TIM_SR_CC6IF) == (TIM_SR_CC6IF)) ? 1UL : 0UL); -} - -/** - * @brief Clear the commutation interrupt flag (COMIF). - * @rmtoll SR COMIF LL_TIM_ClearFlag_COM - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_ClearFlag_COM(TIM_TypeDef *TIMx) -{ - WRITE_REG(TIMx->SR, ~(TIM_SR_COMIF)); -} - -/** - * @brief Indicate whether commutation interrupt flag (COMIF) is set (commutation interrupt is pending). - * @rmtoll SR COMIF LL_TIM_IsActiveFlag_COM - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_COM(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->SR, TIM_SR_COMIF) == (TIM_SR_COMIF)) ? 1UL : 0UL); -} - -/** - * @brief Clear the trigger interrupt flag (TIF). - * @rmtoll SR TIF LL_TIM_ClearFlag_TRIG - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_ClearFlag_TRIG(TIM_TypeDef *TIMx) -{ - WRITE_REG(TIMx->SR, ~(TIM_SR_TIF)); -} - -/** - * @brief Indicate whether trigger interrupt flag (TIF) is set (trigger interrupt is pending). - * @rmtoll SR TIF LL_TIM_IsActiveFlag_TRIG - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_TRIG(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->SR, TIM_SR_TIF) == (TIM_SR_TIF)) ? 1UL : 0UL); -} - -/** - * @brief Clear the break interrupt flag (BIF). - * @rmtoll SR BIF LL_TIM_ClearFlag_BRK - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_ClearFlag_BRK(TIM_TypeDef *TIMx) -{ - WRITE_REG(TIMx->SR, ~(TIM_SR_BIF)); -} - -/** - * @brief Indicate whether break interrupt flag (BIF) is set (break interrupt is pending). - * @rmtoll SR BIF LL_TIM_IsActiveFlag_BRK - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_BRK(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->SR, TIM_SR_BIF) == (TIM_SR_BIF)) ? 1UL : 0UL); -} - -/** - * @brief Clear the break 2 interrupt flag (B2IF). - * @rmtoll SR B2IF LL_TIM_ClearFlag_BRK2 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_ClearFlag_BRK2(TIM_TypeDef *TIMx) -{ - WRITE_REG(TIMx->SR, ~(TIM_SR_B2IF)); -} - -/** - * @brief Indicate whether break 2 interrupt flag (B2IF) is set (break 2 interrupt is pending). - * @rmtoll SR B2IF LL_TIM_IsActiveFlag_BRK2 - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_BRK2(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->SR, TIM_SR_B2IF) == (TIM_SR_B2IF)) ? 1UL : 0UL); -} - -/** - * @brief Clear the Capture/Compare 1 over-capture interrupt flag (CC1OF). - * @rmtoll SR CC1OF LL_TIM_ClearFlag_CC1OVR - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_ClearFlag_CC1OVR(TIM_TypeDef *TIMx) -{ - WRITE_REG(TIMx->SR, ~(TIM_SR_CC1OF)); -} - -/** - * @brief Indicate whether Capture/Compare 1 over-capture interrupt flag (CC1OF) is set - * (Capture/Compare 1 interrupt is pending). - * @rmtoll SR CC1OF LL_TIM_IsActiveFlag_CC1OVR - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC1OVR(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->SR, TIM_SR_CC1OF) == (TIM_SR_CC1OF)) ? 1UL : 0UL); -} - -/** - * @brief Clear the Capture/Compare 2 over-capture interrupt flag (CC2OF). - * @rmtoll SR CC2OF LL_TIM_ClearFlag_CC2OVR - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_ClearFlag_CC2OVR(TIM_TypeDef *TIMx) -{ - WRITE_REG(TIMx->SR, ~(TIM_SR_CC2OF)); -} - -/** - * @brief Indicate whether Capture/Compare 2 over-capture interrupt flag (CC2OF) is set - * (Capture/Compare 2 over-capture interrupt is pending). - * @rmtoll SR CC2OF LL_TIM_IsActiveFlag_CC2OVR - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC2OVR(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->SR, TIM_SR_CC2OF) == (TIM_SR_CC2OF)) ? 1UL : 0UL); -} - -/** - * @brief Clear the Capture/Compare 3 over-capture interrupt flag (CC3OF). - * @rmtoll SR CC3OF LL_TIM_ClearFlag_CC3OVR - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_ClearFlag_CC3OVR(TIM_TypeDef *TIMx) -{ - WRITE_REG(TIMx->SR, ~(TIM_SR_CC3OF)); -} - -/** - * @brief Indicate whether Capture/Compare 3 over-capture interrupt flag (CC3OF) is set - * (Capture/Compare 3 over-capture interrupt is pending). - * @rmtoll SR CC3OF LL_TIM_IsActiveFlag_CC3OVR - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC3OVR(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->SR, TIM_SR_CC3OF) == (TIM_SR_CC3OF)) ? 1UL : 0UL); -} - -/** - * @brief Clear the Capture/Compare 4 over-capture interrupt flag (CC4OF). - * @rmtoll SR CC4OF LL_TIM_ClearFlag_CC4OVR - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_ClearFlag_CC4OVR(TIM_TypeDef *TIMx) -{ - WRITE_REG(TIMx->SR, ~(TIM_SR_CC4OF)); -} - -/** - * @brief Indicate whether Capture/Compare 4 over-capture interrupt flag (CC4OF) is set - * (Capture/Compare 4 over-capture interrupt is pending). - * @rmtoll SR CC4OF LL_TIM_IsActiveFlag_CC4OVR - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC4OVR(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->SR, TIM_SR_CC4OF) == (TIM_SR_CC4OF)) ? 1UL : 0UL); -} - -/** - * @brief Clear the system break interrupt flag (SBIF). - * @rmtoll SR SBIF LL_TIM_ClearFlag_SYSBRK - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_ClearFlag_SYSBRK(TIM_TypeDef *TIMx) -{ - WRITE_REG(TIMx->SR, ~(TIM_SR_SBIF)); -} - -/** - * @brief Indicate whether system break interrupt flag (SBIF) is set (system break interrupt is pending). - * @rmtoll SR SBIF LL_TIM_IsActiveFlag_SYSBRK - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_SYSBRK(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->SR, TIM_SR_SBIF) == (TIM_SR_SBIF)) ? 1UL : 0UL); -} - -/** - * @} - */ - -/** @defgroup TIM_LL_EF_IT_Management IT-Management - * @{ - */ -/** - * @brief Enable update interrupt (UIE). - * @rmtoll DIER UIE LL_TIM_EnableIT_UPDATE - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_EnableIT_UPDATE(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->DIER, TIM_DIER_UIE); -} - -/** - * @brief Disable update interrupt (UIE). - * @rmtoll DIER UIE LL_TIM_DisableIT_UPDATE - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_DisableIT_UPDATE(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->DIER, TIM_DIER_UIE); -} - -/** - * @brief Indicates whether the update interrupt (UIE) is enabled. - * @rmtoll DIER UIE LL_TIM_IsEnabledIT_UPDATE - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsEnabledIT_UPDATE(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->DIER, TIM_DIER_UIE) == (TIM_DIER_UIE)) ? 1UL : 0UL); -} - -/** - * @brief Enable capture/compare 1 interrupt (CC1IE). - * @rmtoll DIER CC1IE LL_TIM_EnableIT_CC1 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_EnableIT_CC1(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->DIER, TIM_DIER_CC1IE); -} - -/** - * @brief Disable capture/compare 1 interrupt (CC1IE). - * @rmtoll DIER CC1IE LL_TIM_DisableIT_CC1 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_DisableIT_CC1(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->DIER, TIM_DIER_CC1IE); -} - -/** - * @brief Indicates whether the capture/compare 1 interrupt (CC1IE) is enabled. - * @rmtoll DIER CC1IE LL_TIM_IsEnabledIT_CC1 - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsEnabledIT_CC1(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->DIER, TIM_DIER_CC1IE) == (TIM_DIER_CC1IE)) ? 1UL : 0UL); -} - -/** - * @brief Enable capture/compare 2 interrupt (CC2IE). - * @rmtoll DIER CC2IE LL_TIM_EnableIT_CC2 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_EnableIT_CC2(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->DIER, TIM_DIER_CC2IE); -} - -/** - * @brief Disable capture/compare 2 interrupt (CC2IE). - * @rmtoll DIER CC2IE LL_TIM_DisableIT_CC2 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_DisableIT_CC2(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->DIER, TIM_DIER_CC2IE); -} - -/** - * @brief Indicates whether the capture/compare 2 interrupt (CC2IE) is enabled. - * @rmtoll DIER CC2IE LL_TIM_IsEnabledIT_CC2 - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsEnabledIT_CC2(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->DIER, TIM_DIER_CC2IE) == (TIM_DIER_CC2IE)) ? 1UL : 0UL); -} - -/** - * @brief Enable capture/compare 3 interrupt (CC3IE). - * @rmtoll DIER CC3IE LL_TIM_EnableIT_CC3 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_EnableIT_CC3(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->DIER, TIM_DIER_CC3IE); -} - -/** - * @brief Disable capture/compare 3 interrupt (CC3IE). - * @rmtoll DIER CC3IE LL_TIM_DisableIT_CC3 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_DisableIT_CC3(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->DIER, TIM_DIER_CC3IE); -} - -/** - * @brief Indicates whether the capture/compare 3 interrupt (CC3IE) is enabled. - * @rmtoll DIER CC3IE LL_TIM_IsEnabledIT_CC3 - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsEnabledIT_CC3(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->DIER, TIM_DIER_CC3IE) == (TIM_DIER_CC3IE)) ? 1UL : 0UL); -} - -/** - * @brief Enable capture/compare 4 interrupt (CC4IE). - * @rmtoll DIER CC4IE LL_TIM_EnableIT_CC4 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_EnableIT_CC4(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->DIER, TIM_DIER_CC4IE); -} - -/** - * @brief Disable capture/compare 4 interrupt (CC4IE). - * @rmtoll DIER CC4IE LL_TIM_DisableIT_CC4 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_DisableIT_CC4(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->DIER, TIM_DIER_CC4IE); -} - -/** - * @brief Indicates whether the capture/compare 4 interrupt (CC4IE) is enabled. - * @rmtoll DIER CC4IE LL_TIM_IsEnabledIT_CC4 - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsEnabledIT_CC4(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->DIER, TIM_DIER_CC4IE) == (TIM_DIER_CC4IE)) ? 1UL : 0UL); -} - -/** - * @brief Enable commutation interrupt (COMIE). - * @rmtoll DIER COMIE LL_TIM_EnableIT_COM - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_EnableIT_COM(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->DIER, TIM_DIER_COMIE); -} - -/** - * @brief Disable commutation interrupt (COMIE). - * @rmtoll DIER COMIE LL_TIM_DisableIT_COM - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_DisableIT_COM(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->DIER, TIM_DIER_COMIE); -} - -/** - * @brief Indicates whether the commutation interrupt (COMIE) is enabled. - * @rmtoll DIER COMIE LL_TIM_IsEnabledIT_COM - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsEnabledIT_COM(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->DIER, TIM_DIER_COMIE) == (TIM_DIER_COMIE)) ? 1UL : 0UL); -} - -/** - * @brief Enable trigger interrupt (TIE). - * @rmtoll DIER TIE LL_TIM_EnableIT_TRIG - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_EnableIT_TRIG(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->DIER, TIM_DIER_TIE); -} - -/** - * @brief Disable trigger interrupt (TIE). - * @rmtoll DIER TIE LL_TIM_DisableIT_TRIG - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_DisableIT_TRIG(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->DIER, TIM_DIER_TIE); -} - -/** - * @brief Indicates whether the trigger interrupt (TIE) is enabled. - * @rmtoll DIER TIE LL_TIM_IsEnabledIT_TRIG - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsEnabledIT_TRIG(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->DIER, TIM_DIER_TIE) == (TIM_DIER_TIE)) ? 1UL : 0UL); -} - -/** - * @brief Enable break interrupt (BIE). - * @rmtoll DIER BIE LL_TIM_EnableIT_BRK - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_EnableIT_BRK(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->DIER, TIM_DIER_BIE); -} - -/** - * @brief Disable break interrupt (BIE). - * @rmtoll DIER BIE LL_TIM_DisableIT_BRK - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_DisableIT_BRK(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->DIER, TIM_DIER_BIE); -} - -/** - * @brief Indicates whether the break interrupt (BIE) is enabled. - * @rmtoll DIER BIE LL_TIM_IsEnabledIT_BRK - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsEnabledIT_BRK(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->DIER, TIM_DIER_BIE) == (TIM_DIER_BIE)) ? 1UL : 0UL); -} - -/** - * @} - */ - -/** @defgroup TIM_LL_EF_DMA_Management DMA Management - * @{ - */ -/** - * @brief Enable update DMA request (UDE). - * @rmtoll DIER UDE LL_TIM_EnableDMAReq_UPDATE - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_EnableDMAReq_UPDATE(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->DIER, TIM_DIER_UDE); -} - -/** - * @brief Disable update DMA request (UDE). - * @rmtoll DIER UDE LL_TIM_DisableDMAReq_UPDATE - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_DisableDMAReq_UPDATE(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->DIER, TIM_DIER_UDE); -} - -/** - * @brief Indicates whether the update DMA request (UDE) is enabled. - * @rmtoll DIER UDE LL_TIM_IsEnabledDMAReq_UPDATE - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsEnabledDMAReq_UPDATE(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->DIER, TIM_DIER_UDE) == (TIM_DIER_UDE)) ? 1UL : 0UL); -} - -/** - * @brief Enable capture/compare 1 DMA request (CC1DE). - * @rmtoll DIER CC1DE LL_TIM_EnableDMAReq_CC1 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_EnableDMAReq_CC1(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->DIER, TIM_DIER_CC1DE); -} - -/** - * @brief Disable capture/compare 1 DMA request (CC1DE). - * @rmtoll DIER CC1DE LL_TIM_DisableDMAReq_CC1 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_DisableDMAReq_CC1(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->DIER, TIM_DIER_CC1DE); -} - -/** - * @brief Indicates whether the capture/compare 1 DMA request (CC1DE) is enabled. - * @rmtoll DIER CC1DE LL_TIM_IsEnabledDMAReq_CC1 - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsEnabledDMAReq_CC1(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->DIER, TIM_DIER_CC1DE) == (TIM_DIER_CC1DE)) ? 1UL : 0UL); -} - -/** - * @brief Enable capture/compare 2 DMA request (CC2DE). - * @rmtoll DIER CC2DE LL_TIM_EnableDMAReq_CC2 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_EnableDMAReq_CC2(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->DIER, TIM_DIER_CC2DE); -} - -/** - * @brief Disable capture/compare 2 DMA request (CC2DE). - * @rmtoll DIER CC2DE LL_TIM_DisableDMAReq_CC2 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_DisableDMAReq_CC2(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->DIER, TIM_DIER_CC2DE); -} - -/** - * @brief Indicates whether the capture/compare 2 DMA request (CC2DE) is enabled. - * @rmtoll DIER CC2DE LL_TIM_IsEnabledDMAReq_CC2 - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsEnabledDMAReq_CC2(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->DIER, TIM_DIER_CC2DE) == (TIM_DIER_CC2DE)) ? 1UL : 0UL); -} - -/** - * @brief Enable capture/compare 3 DMA request (CC3DE). - * @rmtoll DIER CC3DE LL_TIM_EnableDMAReq_CC3 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_EnableDMAReq_CC3(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->DIER, TIM_DIER_CC3DE); -} - -/** - * @brief Disable capture/compare 3 DMA request (CC3DE). - * @rmtoll DIER CC3DE LL_TIM_DisableDMAReq_CC3 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_DisableDMAReq_CC3(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->DIER, TIM_DIER_CC3DE); -} - -/** - * @brief Indicates whether the capture/compare 3 DMA request (CC3DE) is enabled. - * @rmtoll DIER CC3DE LL_TIM_IsEnabledDMAReq_CC3 - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsEnabledDMAReq_CC3(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->DIER, TIM_DIER_CC3DE) == (TIM_DIER_CC3DE)) ? 1UL : 0UL); -} - -/** - * @brief Enable capture/compare 4 DMA request (CC4DE). - * @rmtoll DIER CC4DE LL_TIM_EnableDMAReq_CC4 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_EnableDMAReq_CC4(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->DIER, TIM_DIER_CC4DE); -} - -/** - * @brief Disable capture/compare 4 DMA request (CC4DE). - * @rmtoll DIER CC4DE LL_TIM_DisableDMAReq_CC4 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_DisableDMAReq_CC4(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->DIER, TIM_DIER_CC4DE); -} - -/** - * @brief Indicates whether the capture/compare 4 DMA request (CC4DE) is enabled. - * @rmtoll DIER CC4DE LL_TIM_IsEnabledDMAReq_CC4 - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsEnabledDMAReq_CC4(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->DIER, TIM_DIER_CC4DE) == (TIM_DIER_CC4DE)) ? 1UL : 0UL); -} - -/** - * @brief Enable commutation DMA request (COMDE). - * @rmtoll DIER COMDE LL_TIM_EnableDMAReq_COM - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_EnableDMAReq_COM(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->DIER, TIM_DIER_COMDE); -} - -/** - * @brief Disable commutation DMA request (COMDE). - * @rmtoll DIER COMDE LL_TIM_DisableDMAReq_COM - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_DisableDMAReq_COM(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->DIER, TIM_DIER_COMDE); -} - -/** - * @brief Indicates whether the commutation DMA request (COMDE) is enabled. - * @rmtoll DIER COMDE LL_TIM_IsEnabledDMAReq_COM - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsEnabledDMAReq_COM(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->DIER, TIM_DIER_COMDE) == (TIM_DIER_COMDE)) ? 1UL : 0UL); -} - -/** - * @brief Enable trigger interrupt (TDE). - * @rmtoll DIER TDE LL_TIM_EnableDMAReq_TRIG - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_EnableDMAReq_TRIG(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->DIER, TIM_DIER_TDE); -} - -/** - * @brief Disable trigger interrupt (TDE). - * @rmtoll DIER TDE LL_TIM_DisableDMAReq_TRIG - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_DisableDMAReq_TRIG(TIM_TypeDef *TIMx) -{ - CLEAR_BIT(TIMx->DIER, TIM_DIER_TDE); -} - -/** - * @brief Indicates whether the trigger interrupt (TDE) is enabled. - * @rmtoll DIER TDE LL_TIM_IsEnabledDMAReq_TRIG - * @param TIMx Timer instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_TIM_IsEnabledDMAReq_TRIG(const TIM_TypeDef *TIMx) -{ - return ((READ_BIT(TIMx->DIER, TIM_DIER_TDE) == (TIM_DIER_TDE)) ? 1UL : 0UL); -} - -/** - * @} - */ - -/** @defgroup TIM_LL_EF_EVENT_Management EVENT-Management - * @{ - */ -/** - * @brief Generate an update event. - * @rmtoll EGR UG LL_TIM_GenerateEvent_UPDATE - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_GenerateEvent_UPDATE(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->EGR, TIM_EGR_UG); -} - -/** - * @brief Generate Capture/Compare 1 event. - * @rmtoll EGR CC1G LL_TIM_GenerateEvent_CC1 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_GenerateEvent_CC1(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->EGR, TIM_EGR_CC1G); -} - -/** - * @brief Generate Capture/Compare 2 event. - * @rmtoll EGR CC2G LL_TIM_GenerateEvent_CC2 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_GenerateEvent_CC2(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->EGR, TIM_EGR_CC2G); -} - -/** - * @brief Generate Capture/Compare 3 event. - * @rmtoll EGR CC3G LL_TIM_GenerateEvent_CC3 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_GenerateEvent_CC3(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->EGR, TIM_EGR_CC3G); -} - -/** - * @brief Generate Capture/Compare 4 event. - * @rmtoll EGR CC4G LL_TIM_GenerateEvent_CC4 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_GenerateEvent_CC4(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->EGR, TIM_EGR_CC4G); -} - -/** - * @brief Generate commutation event. - * @rmtoll EGR COMG LL_TIM_GenerateEvent_COM - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_GenerateEvent_COM(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->EGR, TIM_EGR_COMG); -} - -/** - * @brief Generate trigger event. - * @rmtoll EGR TG LL_TIM_GenerateEvent_TRIG - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_GenerateEvent_TRIG(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->EGR, TIM_EGR_TG); -} - -/** - * @brief Generate break event. - * @rmtoll EGR BG LL_TIM_GenerateEvent_BRK - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_GenerateEvent_BRK(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->EGR, TIM_EGR_BG); -} - -/** - * @brief Generate break 2 event. - * @rmtoll EGR B2G LL_TIM_GenerateEvent_BRK2 - * @param TIMx Timer instance - * @retval None - */ -__STATIC_INLINE void LL_TIM_GenerateEvent_BRK2(TIM_TypeDef *TIMx) -{ - SET_BIT(TIMx->EGR, TIM_EGR_B2G); -} - -/** - * @} - */ - -#if defined(USE_FULL_LL_DRIVER) -/** @defgroup TIM_LL_EF_Init Initialisation and deinitialisation functions - * @{ - */ - -ErrorStatus LL_TIM_DeInit(TIM_TypeDef *TIMx); -void LL_TIM_StructInit(LL_TIM_InitTypeDef *TIM_InitStruct); -ErrorStatus LL_TIM_Init(TIM_TypeDef *TIMx, const LL_TIM_InitTypeDef *TIM_InitStruct); -void LL_TIM_OC_StructInit(LL_TIM_OC_InitTypeDef *TIM_OC_InitStruct); -ErrorStatus LL_TIM_OC_Init(TIM_TypeDef *TIMx, uint32_t Channel, const LL_TIM_OC_InitTypeDef *TIM_OC_InitStruct); -void LL_TIM_IC_StructInit(LL_TIM_IC_InitTypeDef *TIM_ICInitStruct); -ErrorStatus LL_TIM_IC_Init(TIM_TypeDef *TIMx, uint32_t Channel, const LL_TIM_IC_InitTypeDef *TIM_IC_InitStruct); -void LL_TIM_ENCODER_StructInit(LL_TIM_ENCODER_InitTypeDef *TIM_EncoderInitStruct); -ErrorStatus LL_TIM_ENCODER_Init(TIM_TypeDef *TIMx, const LL_TIM_ENCODER_InitTypeDef *TIM_EncoderInitStruct); -void LL_TIM_HALLSENSOR_StructInit(LL_TIM_HALLSENSOR_InitTypeDef *TIM_HallSensorInitStruct); -ErrorStatus LL_TIM_HALLSENSOR_Init(TIM_TypeDef *TIMx, const LL_TIM_HALLSENSOR_InitTypeDef *TIM_HallSensorInitStruct); -void LL_TIM_BDTR_StructInit(LL_TIM_BDTR_InitTypeDef *TIM_BDTRInitStruct); -ErrorStatus LL_TIM_BDTR_Init(TIM_TypeDef *TIMx, const LL_TIM_BDTR_InitTypeDef *TIM_BDTRInitStruct); -/** - * @} - */ -#endif /* USE_FULL_LL_DRIVER */ - -/** - * @} - */ - -/** - * @} - */ - -#endif /* TIM1 || TIM2 || TIM3 || TIM4 || TIM5 || TIM6 || TIM7 || TIM8 || TIM12 || TIM13 ||TIM14 || TIM15 || TIM16 || TIM17 || TIM23 || TIM24 */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* __STM32H7xx_LL_TIM_H */ diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_usart.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_usart.h deleted file mode 100644 index 8494c35..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_usart.h +++ /dev/null @@ -1,4400 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_ll_usart.h - * @author MCD Application Team - * @brief Header file of USART LL module. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_LL_USART_H -#define STM32H7xx_LL_USART_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx.h" - -/** @addtogroup STM32H7xx_LL_Driver - * @{ - */ - -#if defined(USART1) || defined(USART2) || defined(USART3) || defined(USART6) \ - || defined(UART4) || defined(UART5) || defined(UART7) || defined(UART8) || defined(UART9) || defined(USART10) - -/** @defgroup USART_LL USART - * @{ - */ - -/* Private types -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/** @defgroup USART_LL_Private_Variables USART Private Variables - * @{ - */ -/* Array used to get the USART prescaler division decimal values versus @ref USART_LL_EC_PRESCALER values */ -static const uint32_t USART_PRESCALER_TAB[] = -{ - 1UL, - 2UL, - 4UL, - 6UL, - 8UL, - 10UL, - 12UL, - 16UL, - 32UL, - 64UL, - 128UL, - 256UL -}; -/** - * @} - */ - -/* Private constants ---------------------------------------------------------*/ -/** @defgroup USART_LL_Private_Constants USART Private Constants - * @{ - */ -/** - * @} - */ -/* Private macros ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) -/** @defgroup USART_LL_Private_Macros USART Private Macros - * @{ - */ -/** - * @} - */ -#endif /*USE_FULL_LL_DRIVER*/ - -/* Exported types ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) -/** @defgroup USART_LL_ES_INIT USART Exported Init structures - * @{ - */ - -/** - * @brief LL USART Init Structure definition - */ -typedef struct -{ - uint32_t PrescalerValue; /*!< Specifies the Prescaler to compute the communication baud rate. - This parameter can be a value of @ref USART_LL_EC_PRESCALER. - - This feature can be modified afterwards using unitary - function @ref LL_USART_SetPrescaler().*/ - - uint32_t BaudRate; /*!< This field defines expected Usart communication baud rate. - - This feature can be modified afterwards using unitary - function @ref LL_USART_SetBaudRate().*/ - - uint32_t DataWidth; /*!< Specifies the number of data bits transmitted or received in a frame. - This parameter can be a value of @ref USART_LL_EC_DATAWIDTH. - - This feature can be modified afterwards using unitary - function @ref LL_USART_SetDataWidth().*/ - - uint32_t StopBits; /*!< Specifies the number of stop bits transmitted. - This parameter can be a value of @ref USART_LL_EC_STOPBITS. - - This feature can be modified afterwards using unitary - function @ref LL_USART_SetStopBitsLength().*/ - - uint32_t Parity; /*!< Specifies the parity mode. - This parameter can be a value of @ref USART_LL_EC_PARITY. - - This feature can be modified afterwards using unitary - function @ref LL_USART_SetParity().*/ - - uint32_t TransferDirection; /*!< Specifies whether the Receive and/or Transmit mode is enabled or disabled. - This parameter can be a value of @ref USART_LL_EC_DIRECTION. - - This feature can be modified afterwards using unitary - function @ref LL_USART_SetTransferDirection().*/ - - uint32_t HardwareFlowControl; /*!< Specifies whether the hardware flow control mode is enabled or disabled. - This parameter can be a value of @ref USART_LL_EC_HWCONTROL. - - This feature can be modified afterwards using unitary - function @ref LL_USART_SetHWFlowCtrl().*/ - - uint32_t OverSampling; /*!< Specifies whether USART oversampling mode is 16 or 8. - This parameter can be a value of @ref USART_LL_EC_OVERSAMPLING. - - This feature can be modified afterwards using unitary - function @ref LL_USART_SetOverSampling().*/ - -} LL_USART_InitTypeDef; - -/** - * @brief LL USART Clock Init Structure definition - */ -typedef struct -{ - uint32_t ClockOutput; /*!< Specifies whether the USART clock is enabled or disabled. - This parameter can be a value of @ref USART_LL_EC_CLOCK. - - USART HW configuration can be modified afterwards using unitary functions - @ref LL_USART_EnableSCLKOutput() or @ref LL_USART_DisableSCLKOutput(). - For more details, refer to description of this function. */ - - uint32_t ClockPolarity; /*!< Specifies the steady state of the serial clock. - This parameter can be a value of @ref USART_LL_EC_POLARITY. - - USART HW configuration can be modified afterwards using unitary - functions @ref LL_USART_SetClockPolarity(). - For more details, refer to description of this function. */ - - uint32_t ClockPhase; /*!< Specifies the clock transition on which the bit capture is made. - This parameter can be a value of @ref USART_LL_EC_PHASE. - - USART HW configuration can be modified afterwards using unitary - functions @ref LL_USART_SetClockPhase(). - For more details, refer to description of this function. */ - - uint32_t LastBitClockPulse; /*!< Specifies whether the clock pulse corresponding to the last transmitted - data bit (MSB) has to be output on the SCLK pin in synchronous mode. - This parameter can be a value of @ref USART_LL_EC_LASTCLKPULSE. - - USART HW configuration can be modified afterwards using unitary - functions @ref LL_USART_SetLastClkPulseOutput(). - For more details, refer to description of this function. */ - -} LL_USART_ClockInitTypeDef; - -/** - * @} - */ -#endif /* USE_FULL_LL_DRIVER */ - -/* Exported constants --------------------------------------------------------*/ -/** @defgroup USART_LL_Exported_Constants USART Exported Constants - * @{ - */ - -/** @defgroup USART_LL_EC_CLEAR_FLAG Clear Flags Defines - * @brief Flags defines which can be used with LL_USART_WriteReg function - * @{ - */ -#define LL_USART_ICR_PECF USART_ICR_PECF /*!< Parity error clear flag */ -#define LL_USART_ICR_FECF USART_ICR_FECF /*!< Framing error clear flag */ -#define LL_USART_ICR_NECF USART_ICR_NECF /*!< Noise error detected clear flag */ -#define LL_USART_ICR_ORECF USART_ICR_ORECF /*!< Overrun error clear flag */ -#define LL_USART_ICR_IDLECF USART_ICR_IDLECF /*!< Idle line detected clear flag */ -#define LL_USART_ICR_TXFECF USART_ICR_TXFECF /*!< TX FIFO Empty clear flag */ -#define LL_USART_ICR_TCCF USART_ICR_TCCF /*!< Transmission complete clear flag */ -#define LL_USART_ICR_TCBGTCF USART_ICR_TCBGTCF /*!< Transmission completed before guard time clear flag */ -#define LL_USART_ICR_LBDCF USART_ICR_LBDCF /*!< LIN break detection clear flag */ -#define LL_USART_ICR_CTSCF USART_ICR_CTSCF /*!< CTS clear flag */ -#define LL_USART_ICR_RTOCF USART_ICR_RTOCF /*!< Receiver timeout clear flag */ -#define LL_USART_ICR_EOBCF USART_ICR_EOBCF /*!< End of block clear flag */ -#define LL_USART_ICR_UDRCF USART_ICR_UDRCF /*!< SPI Slave Underrun clear flag */ -#define LL_USART_ICR_CMCF USART_ICR_CMCF /*!< Character match clear flag */ -#define LL_USART_ICR_WUCF USART_ICR_WUCF /*!< Wakeup from Stop mode clear flag */ -/** - * @} - */ - -/** @defgroup USART_LL_EC_GET_FLAG Get Flags Defines - * @brief Flags defines which can be used with LL_USART_ReadReg function - * @{ - */ -#define LL_USART_ISR_PE USART_ISR_PE /*!< Parity error flag */ -#define LL_USART_ISR_FE USART_ISR_FE /*!< Framing error flag */ -#define LL_USART_ISR_NE USART_ISR_NE /*!< Noise detected flag */ -#define LL_USART_ISR_ORE USART_ISR_ORE /*!< Overrun error flag */ -#define LL_USART_ISR_IDLE USART_ISR_IDLE /*!< Idle line detected flag */ -#define LL_USART_ISR_RXNE_RXFNE USART_ISR_RXNE_RXFNE /*!< Read data register or RX FIFO not empty flag */ -#define LL_USART_ISR_TC USART_ISR_TC /*!< Transmission complete flag */ -#define LL_USART_ISR_TXE_TXFNF USART_ISR_TXE_TXFNF /*!< Transmit data register empty or TX FIFO Not Full flag*/ -#define LL_USART_ISR_LBDF USART_ISR_LBDF /*!< LIN break detection flag */ -#define LL_USART_ISR_CTSIF USART_ISR_CTSIF /*!< CTS interrupt flag */ -#define LL_USART_ISR_CTS USART_ISR_CTS /*!< CTS flag */ -#define LL_USART_ISR_RTOF USART_ISR_RTOF /*!< Receiver timeout flag */ -#define LL_USART_ISR_EOBF USART_ISR_EOBF /*!< End of block flag */ -#define LL_USART_ISR_UDR USART_ISR_UDR /*!< SPI Slave underrun error flag */ -#define LL_USART_ISR_ABRE USART_ISR_ABRE /*!< Auto baud rate error flag */ -#define LL_USART_ISR_ABRF USART_ISR_ABRF /*!< Auto baud rate flag */ -#define LL_USART_ISR_BUSY USART_ISR_BUSY /*!< Busy flag */ -#define LL_USART_ISR_CMF USART_ISR_CMF /*!< Character match flag */ -#define LL_USART_ISR_SBKF USART_ISR_SBKF /*!< Send break flag */ -#define LL_USART_ISR_RWU USART_ISR_RWU /*!< Receiver wakeup from Mute mode flag */ -#define LL_USART_ISR_WUF USART_ISR_WUF /*!< Wakeup from Stop mode flag */ -#define LL_USART_ISR_TEACK USART_ISR_TEACK /*!< Transmit enable acknowledge flag */ -#define LL_USART_ISR_REACK USART_ISR_REACK /*!< Receive enable acknowledge flag */ -#define LL_USART_ISR_TXFE USART_ISR_TXFE /*!< TX FIFO empty flag */ -#define LL_USART_ISR_RXFF USART_ISR_RXFF /*!< RX FIFO full flag */ -#define LL_USART_ISR_TCBGT USART_ISR_TCBGT /*!< Transmission complete before guard time completion flag */ -#define LL_USART_ISR_RXFT USART_ISR_RXFT /*!< RX FIFO threshold flag */ -#define LL_USART_ISR_TXFT USART_ISR_TXFT /*!< TX FIFO threshold flag */ -/** - * @} - */ - -/** @defgroup USART_LL_EC_IT IT Defines - * @brief IT defines which can be used with LL_USART_ReadReg and LL_USART_WriteReg functions - * @{ - */ -#define LL_USART_CR1_IDLEIE USART_CR1_IDLEIE /*!< IDLE interrupt enable */ -#define LL_USART_CR1_RXNEIE_RXFNEIE USART_CR1_RXNEIE_RXFNEIE /*!< Read data register and RXFIFO not empty interrupt enable */ -#define LL_USART_CR1_TCIE USART_CR1_TCIE /*!< Transmission complete interrupt enable */ -#define LL_USART_CR1_TXEIE_TXFNFIE USART_CR1_TXEIE_TXFNFIE /*!< Transmit data register empty and TX FIFO not full interrupt enable */ -#define LL_USART_CR1_PEIE USART_CR1_PEIE /*!< Parity error */ -#define LL_USART_CR1_CMIE USART_CR1_CMIE /*!< Character match interrupt enable */ -#define LL_USART_CR1_RTOIE USART_CR1_RTOIE /*!< Receiver timeout interrupt enable */ -#define LL_USART_CR1_EOBIE USART_CR1_EOBIE /*!< End of Block interrupt enable */ -#define LL_USART_CR1_TXFEIE USART_CR1_TXFEIE /*!< TX FIFO empty interrupt enable */ -#define LL_USART_CR1_RXFFIE USART_CR1_RXFFIE /*!< RX FIFO full interrupt enable */ -#define LL_USART_CR2_LBDIE USART_CR2_LBDIE /*!< LIN break detection interrupt enable */ -#define LL_USART_CR3_EIE USART_CR3_EIE /*!< Error interrupt enable */ -#define LL_USART_CR3_CTSIE USART_CR3_CTSIE /*!< CTS interrupt enable */ -#define LL_USART_CR3_WUFIE USART_CR3_WUFIE /*!< Wakeup from Stop mode interrupt enable */ -#define LL_USART_CR3_TXFTIE USART_CR3_TXFTIE /*!< TX FIFO threshold interrupt enable */ -#define LL_USART_CR3_TCBGTIE USART_CR3_TCBGTIE /*!< Transmission complete before guard time interrupt enable */ -#define LL_USART_CR3_RXFTIE USART_CR3_RXFTIE /*!< RX FIFO threshold interrupt enable */ -/** - * @} - */ - -/** @defgroup USART_LL_EC_FIFOTHRESHOLD FIFO Threshold - * @{ - */ -#define LL_USART_FIFOTHRESHOLD_1_8 0x00000000U /*!< FIFO reaches 1/8 of its depth */ -#define LL_USART_FIFOTHRESHOLD_1_4 0x00000001U /*!< FIFO reaches 1/4 of its depth */ -#define LL_USART_FIFOTHRESHOLD_1_2 0x00000002U /*!< FIFO reaches 1/2 of its depth */ -#define LL_USART_FIFOTHRESHOLD_3_4 0x00000003U /*!< FIFO reaches 3/4 of its depth */ -#define LL_USART_FIFOTHRESHOLD_7_8 0x00000004U /*!< FIFO reaches 7/8 of its depth */ -#define LL_USART_FIFOTHRESHOLD_8_8 0x00000005U /*!< FIFO becomes empty for TX and full for RX */ -/** - * @} - */ - -/** @defgroup USART_LL_EC_DIRECTION Communication Direction - * @{ - */ -#define LL_USART_DIRECTION_NONE 0x00000000U /*!< Transmitter and Receiver are disabled */ -#define LL_USART_DIRECTION_RX USART_CR1_RE /*!< Transmitter is disabled and Receiver is enabled */ -#define LL_USART_DIRECTION_TX USART_CR1_TE /*!< Transmitter is enabled and Receiver is disabled */ -#define LL_USART_DIRECTION_TX_RX (USART_CR1_TE |USART_CR1_RE) /*!< Transmitter and Receiver are enabled */ -/** - * @} - */ - -/** @defgroup USART_LL_EC_PARITY Parity Control - * @{ - */ -#define LL_USART_PARITY_NONE 0x00000000U /*!< Parity control disabled */ -#define LL_USART_PARITY_EVEN USART_CR1_PCE /*!< Parity control enabled and Even Parity is selected */ -#define LL_USART_PARITY_ODD (USART_CR1_PCE | USART_CR1_PS) /*!< Parity control enabled and Odd Parity is selected */ -/** - * @} - */ - -/** @defgroup USART_LL_EC_WAKEUP Wakeup - * @{ - */ -#define LL_USART_WAKEUP_IDLELINE 0x00000000U /*!< USART wake up from Mute mode on Idle Line */ -#define LL_USART_WAKEUP_ADDRESSMARK USART_CR1_WAKE /*!< USART wake up from Mute mode on Address Mark */ -/** - * @} - */ - -/** @defgroup USART_LL_EC_DATAWIDTH Datawidth - * @{ - */ -#define LL_USART_DATAWIDTH_7B USART_CR1_M1 /*!< 7 bits word length : Start bit, 7 data bits, n stop bits */ -#define LL_USART_DATAWIDTH_8B 0x00000000U /*!< 8 bits word length : Start bit, 8 data bits, n stop bits */ -#define LL_USART_DATAWIDTH_9B USART_CR1_M0 /*!< 9 bits word length : Start bit, 9 data bits, n stop bits */ -/** - * @} - */ - -/** @defgroup USART_LL_EC_OVERSAMPLING Oversampling - * @{ - */ -#define LL_USART_OVERSAMPLING_16 0x00000000U /*!< Oversampling by 16 */ -#define LL_USART_OVERSAMPLING_8 USART_CR1_OVER8 /*!< Oversampling by 8 */ -/** - * @} - */ - -#if defined(USE_FULL_LL_DRIVER) -/** @defgroup USART_LL_EC_CLOCK Clock Signal - * @{ - */ - -#define LL_USART_CLOCK_DISABLE 0x00000000U /*!< Clock signal not provided */ -#define LL_USART_CLOCK_ENABLE USART_CR2_CLKEN /*!< Clock signal provided */ -/** - * @} - */ -#endif /*USE_FULL_LL_DRIVER*/ - -/** @defgroup USART_LL_EC_LASTCLKPULSE Last Clock Pulse - * @{ - */ -#define LL_USART_LASTCLKPULSE_NO_OUTPUT 0x00000000U /*!< The clock pulse of the last data bit is not output to the SCLK pin */ -#define LL_USART_LASTCLKPULSE_OUTPUT USART_CR2_LBCL /*!< The clock pulse of the last data bit is output to the SCLK pin */ -/** - * @} - */ - -/** @defgroup USART_LL_EC_PHASE Clock Phase - * @{ - */ -#define LL_USART_PHASE_1EDGE 0x00000000U /*!< The first clock transition is the first data capture edge */ -#define LL_USART_PHASE_2EDGE USART_CR2_CPHA /*!< The second clock transition is the first data capture edge */ -/** - * @} - */ - -/** @defgroup USART_LL_EC_POLARITY Clock Polarity - * @{ - */ -#define LL_USART_POLARITY_LOW 0x00000000U /*!< Steady low value on SCLK pin outside transmission window*/ -#define LL_USART_POLARITY_HIGH USART_CR2_CPOL /*!< Steady high value on SCLK pin outside transmission window */ -/** - * @} - */ - -/** @defgroup USART_LL_EC_PRESCALER Clock Source Prescaler - * @{ - */ -#define LL_USART_PRESCALER_DIV1 0x00000000U /*!< Input clock not divided */ -#define LL_USART_PRESCALER_DIV2 (USART_PRESC_PRESCALER_0) /*!< Input clock divided by 2 */ -#define LL_USART_PRESCALER_DIV4 (USART_PRESC_PRESCALER_1) /*!< Input clock divided by 4 */ -#define LL_USART_PRESCALER_DIV6 (USART_PRESC_PRESCALER_1 | USART_PRESC_PRESCALER_0) /*!< Input clock divided by 6 */ -#define LL_USART_PRESCALER_DIV8 (USART_PRESC_PRESCALER_2) /*!< Input clock divided by 8 */ -#define LL_USART_PRESCALER_DIV10 (USART_PRESC_PRESCALER_2 | USART_PRESC_PRESCALER_0) /*!< Input clock divided by 10 */ -#define LL_USART_PRESCALER_DIV12 (USART_PRESC_PRESCALER_2 | USART_PRESC_PRESCALER_1) /*!< Input clock divided by 12 */ -#define LL_USART_PRESCALER_DIV16 (USART_PRESC_PRESCALER_2 | USART_PRESC_PRESCALER_1 | USART_PRESC_PRESCALER_0) /*!< Input clock divided by 16 */ -#define LL_USART_PRESCALER_DIV32 (USART_PRESC_PRESCALER_3) /*!< Input clock divided by 32 */ -#define LL_USART_PRESCALER_DIV64 (USART_PRESC_PRESCALER_3 | USART_PRESC_PRESCALER_0) /*!< Input clock divided by 64 */ -#define LL_USART_PRESCALER_DIV128 (USART_PRESC_PRESCALER_3 | USART_PRESC_PRESCALER_1) /*!< Input clock divided by 128 */ -#define LL_USART_PRESCALER_DIV256 (USART_PRESC_PRESCALER_3 | USART_PRESC_PRESCALER_1 | USART_PRESC_PRESCALER_0) /*!< Input clock divided by 256 */ -/** - * @} - */ - -/** @defgroup USART_LL_EC_STOPBITS Stop Bits - * @{ - */ -#define LL_USART_STOPBITS_0_5 USART_CR2_STOP_0 /*!< 0.5 stop bit */ -#define LL_USART_STOPBITS_1 0x00000000U /*!< 1 stop bit */ -#define LL_USART_STOPBITS_1_5 (USART_CR2_STOP_0 | USART_CR2_STOP_1) /*!< 1.5 stop bits */ -#define LL_USART_STOPBITS_2 USART_CR2_STOP_1 /*!< 2 stop bits */ -/** - * @} - */ - -/** @defgroup USART_LL_EC_TXRX TX RX Pins Swap - * @{ - */ -#define LL_USART_TXRX_STANDARD 0x00000000U /*!< TX/RX pins are used as defined in standard pinout */ -#define LL_USART_TXRX_SWAPPED (USART_CR2_SWAP) /*!< TX and RX pins functions are swapped. */ -/** - * @} - */ - -/** @defgroup USART_LL_EC_RXPIN_LEVEL RX Pin Active Level Inversion - * @{ - */ -#define LL_USART_RXPIN_LEVEL_STANDARD 0x00000000U /*!< RX pin signal works using the standard logic levels */ -#define LL_USART_RXPIN_LEVEL_INVERTED (USART_CR2_RXINV) /*!< RX pin signal values are inverted. */ -/** - * @} - */ - -/** @defgroup USART_LL_EC_TXPIN_LEVEL TX Pin Active Level Inversion - * @{ - */ -#define LL_USART_TXPIN_LEVEL_STANDARD 0x00000000U /*!< TX pin signal works using the standard logic levels */ -#define LL_USART_TXPIN_LEVEL_INVERTED (USART_CR2_TXINV) /*!< TX pin signal values are inverted. */ -/** - * @} - */ - -/** @defgroup USART_LL_EC_BINARY_LOGIC Binary Data Inversion - * @{ - */ -#define LL_USART_BINARY_LOGIC_POSITIVE 0x00000000U /*!< Logical data from the data register are send/received in positive/direct logic. (1=H, 0=L) */ -#define LL_USART_BINARY_LOGIC_NEGATIVE USART_CR2_DATAINV /*!< Logical data from the data register are send/received in negative/inverse logic. (1=L, 0=H). The parity bit is also inverted. */ -/** - * @} - */ - -/** @defgroup USART_LL_EC_BITORDER Bit Order - * @{ - */ -#define LL_USART_BITORDER_LSBFIRST 0x00000000U /*!< data is transmitted/received with data bit 0 first, following the start bit */ -#define LL_USART_BITORDER_MSBFIRST USART_CR2_MSBFIRST /*!< data is transmitted/received with the MSB first, following the start bit */ -/** - * @} - */ - -/** @defgroup USART_LL_EC_AUTOBAUD_DETECT_ON Autobaud Detection - * @{ - */ -#define LL_USART_AUTOBAUD_DETECT_ON_STARTBIT 0x00000000U /*!< Measurement of the start bit is used to detect the baud rate */ -#define LL_USART_AUTOBAUD_DETECT_ON_FALLINGEDGE USART_CR2_ABRMODE_0 /*!< Falling edge to falling edge measurement. Received frame must start with a single bit = 1 -> Frame = Start10xxxxxx */ -#define LL_USART_AUTOBAUD_DETECT_ON_7F_FRAME USART_CR2_ABRMODE_1 /*!< 0x7F frame detection */ -#define LL_USART_AUTOBAUD_DETECT_ON_55_FRAME (USART_CR2_ABRMODE_1 | USART_CR2_ABRMODE_0) /*!< 0x55 frame detection */ -/** - * @} - */ - -/** @defgroup USART_LL_EC_ADDRESS_DETECT Address Length Detection - * @{ - */ -#define LL_USART_ADDRESS_DETECT_4B 0x00000000U /*!< 4-bit address detection method selected */ -#define LL_USART_ADDRESS_DETECT_7B USART_CR2_ADDM7 /*!< 7-bit address detection (in 8-bit data mode) method selected */ -/** - * @} - */ - -/** @defgroup USART_LL_EC_HWCONTROL Hardware Control - * @{ - */ -#define LL_USART_HWCONTROL_NONE 0x00000000U /*!< CTS and RTS hardware flow control disabled */ -#define LL_USART_HWCONTROL_RTS USART_CR3_RTSE /*!< RTS output enabled, data is only requested when there is space in the receive buffer */ -#define LL_USART_HWCONTROL_CTS USART_CR3_CTSE /*!< CTS mode enabled, data is only transmitted when the nCTS input is asserted (tied to 0) */ -#define LL_USART_HWCONTROL_RTS_CTS (USART_CR3_RTSE | USART_CR3_CTSE) /*!< CTS and RTS hardware flow control enabled */ -/** - * @} - */ - -/** @defgroup USART_LL_EC_WAKEUP_ON Wakeup Activation - * @{ - */ -#define LL_USART_WAKEUP_ON_ADDRESS 0x00000000U /*!< Wake up active on address match */ -#define LL_USART_WAKEUP_ON_STARTBIT USART_CR3_WUS_1 /*!< Wake up active on Start bit detection */ -#define LL_USART_WAKEUP_ON_RXNE (USART_CR3_WUS_0 | USART_CR3_WUS_1) /*!< Wake up active on RXNE */ -/** - * @} - */ - -/** @defgroup USART_LL_EC_IRDA_POWER IrDA Power - * @{ - */ -#define LL_USART_IRDA_POWER_NORMAL 0x00000000U /*!< IrDA normal power mode */ -#define LL_USART_IRDA_POWER_LOW USART_CR3_IRLP /*!< IrDA low power mode */ -/** - * @} - */ - -/** @defgroup USART_LL_EC_LINBREAK_DETECT LIN Break Detection Length - * @{ - */ -#define LL_USART_LINBREAK_DETECT_10B 0x00000000U /*!< 10-bit break detection method selected */ -#define LL_USART_LINBREAK_DETECT_11B USART_CR2_LBDL /*!< 11-bit break detection method selected */ -/** - * @} - */ - -/** @defgroup USART_LL_EC_DE_POLARITY Driver Enable Polarity - * @{ - */ -#define LL_USART_DE_POLARITY_HIGH 0x00000000U /*!< DE signal is active high */ -#define LL_USART_DE_POLARITY_LOW USART_CR3_DEP /*!< DE signal is active low */ -/** - * @} - */ - -/** @defgroup USART_LL_EC_DMA_REG_DATA DMA Register Data - * @{ - */ -#define LL_USART_DMA_REG_DATA_TRANSMIT 0x00000000U /*!< Get address of data register used for transmission */ -#define LL_USART_DMA_REG_DATA_RECEIVE 0x00000001U /*!< Get address of data register used for reception */ -/** - * @} - */ - -/** - * @} - */ - -/* Exported macro ------------------------------------------------------------*/ -/** @defgroup USART_LL_Exported_Macros USART Exported Macros - * @{ - */ - -/** @defgroup USART_LL_EM_WRITE_READ Common Write and read registers Macros - * @{ - */ - -/** - * @brief Write a value in USART register - * @param __INSTANCE__ USART Instance - * @param __REG__ Register to be written - * @param __VALUE__ Value to be written in the register - * @retval None - */ -#define LL_USART_WriteReg(__INSTANCE__, __REG__, __VALUE__) WRITE_REG(__INSTANCE__->__REG__, (__VALUE__)) - -/** - * @brief Read a value in USART register - * @param __INSTANCE__ USART Instance - * @param __REG__ Register to be read - * @retval Register value - */ -#define LL_USART_ReadReg(__INSTANCE__, __REG__) READ_REG(__INSTANCE__->__REG__) -/** - * @} - */ - -/** @defgroup USART_LL_EM_Exported_Macros_Helper Exported_Macros_Helper - * @{ - */ - -/** - * @brief Compute USARTDIV value according to Peripheral Clock and - * expected Baud Rate in 8 bits sampling mode (32 bits value of USARTDIV is returned) - * @param __PERIPHCLK__ Peripheral Clock frequency used for USART instance - * @param __PRESCALER__ This parameter can be one of the following values: - * @arg @ref LL_USART_PRESCALER_DIV1 - * @arg @ref LL_USART_PRESCALER_DIV2 - * @arg @ref LL_USART_PRESCALER_DIV4 - * @arg @ref LL_USART_PRESCALER_DIV6 - * @arg @ref LL_USART_PRESCALER_DIV8 - * @arg @ref LL_USART_PRESCALER_DIV10 - * @arg @ref LL_USART_PRESCALER_DIV12 - * @arg @ref LL_USART_PRESCALER_DIV16 - * @arg @ref LL_USART_PRESCALER_DIV32 - * @arg @ref LL_USART_PRESCALER_DIV64 - * @arg @ref LL_USART_PRESCALER_DIV128 - * @arg @ref LL_USART_PRESCALER_DIV256 - * @param __BAUDRATE__ Baud rate value to achieve - * @retval USARTDIV value to be used for BRR register filling in OverSampling_8 case - */ -#define __LL_USART_DIV_SAMPLING8(__PERIPHCLK__, __PRESCALER__, __BAUDRATE__) \ - (((((__PERIPHCLK__)/(USART_PRESCALER_TAB[(__PRESCALER__)]))*2U)\ - + ((__BAUDRATE__)/2U))/(__BAUDRATE__)) - -/** - * @brief Compute USARTDIV value according to Peripheral Clock and - * expected Baud Rate in 16 bits sampling mode (32 bits value of USARTDIV is returned) - * @param __PERIPHCLK__ Peripheral Clock frequency used for USART instance - * @param __PRESCALER__ This parameter can be one of the following values: - * @arg @ref LL_USART_PRESCALER_DIV1 - * @arg @ref LL_USART_PRESCALER_DIV2 - * @arg @ref LL_USART_PRESCALER_DIV4 - * @arg @ref LL_USART_PRESCALER_DIV6 - * @arg @ref LL_USART_PRESCALER_DIV8 - * @arg @ref LL_USART_PRESCALER_DIV10 - * @arg @ref LL_USART_PRESCALER_DIV12 - * @arg @ref LL_USART_PRESCALER_DIV16 - * @arg @ref LL_USART_PRESCALER_DIV32 - * @arg @ref LL_USART_PRESCALER_DIV64 - * @arg @ref LL_USART_PRESCALER_DIV128 - * @arg @ref LL_USART_PRESCALER_DIV256 - * @param __BAUDRATE__ Baud rate value to achieve - * @retval USARTDIV value to be used for BRR register filling in OverSampling_16 case - */ -#define __LL_USART_DIV_SAMPLING16(__PERIPHCLK__, __PRESCALER__, __BAUDRATE__) \ - ((((__PERIPHCLK__)/(USART_PRESCALER_TAB[(__PRESCALER__)]))\ - + ((__BAUDRATE__)/2U))/(__BAUDRATE__)) - -/** - * @} - */ - -/** - * @} - */ - -/* Exported functions --------------------------------------------------------*/ - -/** @defgroup USART_LL_Exported_Functions USART Exported Functions - * @{ - */ - -/** @defgroup USART_LL_EF_Configuration Configuration functions - * @{ - */ - -/** - * @brief USART Enable - * @rmtoll CR1 UE LL_USART_Enable - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_Enable(USART_TypeDef *USARTx) -{ - SET_BIT(USARTx->CR1, USART_CR1_UE); -} - -/** - * @brief USART Disable (all USART prescalers and outputs are disabled) - * @note When USART is disabled, USART prescalers and outputs are stopped immediately, - * and current operations are discarded. The configuration of the USART is kept, but all the status - * flags, in the USARTx_ISR are set to their default values. - * @rmtoll CR1 UE LL_USART_Disable - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_Disable(USART_TypeDef *USARTx) -{ - CLEAR_BIT(USARTx->CR1, USART_CR1_UE); -} - -/** - * @brief Indicate if USART is enabled - * @rmtoll CR1 UE LL_USART_IsEnabled - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabled(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR1, USART_CR1_UE) == (USART_CR1_UE)) ? 1UL : 0UL); -} - -/** - * @brief FIFO Mode Enable - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll CR1 FIFOEN LL_USART_EnableFIFO - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableFIFO(USART_TypeDef *USARTx) -{ - SET_BIT(USARTx->CR1, USART_CR1_FIFOEN); -} - -/** - * @brief FIFO Mode Disable - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll CR1 FIFOEN LL_USART_DisableFIFO - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableFIFO(USART_TypeDef *USARTx) -{ - CLEAR_BIT(USARTx->CR1, USART_CR1_FIFOEN); -} - -/** - * @brief Indicate if FIFO Mode is enabled - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll CR1 FIFOEN LL_USART_IsEnabledFIFO - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledFIFO(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR1, USART_CR1_FIFOEN) == (USART_CR1_FIFOEN)) ? 1UL : 0UL); -} - -/** - * @brief Configure TX FIFO Threshold - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll CR3 TXFTCFG LL_USART_SetTXFIFOThreshold - * @param USARTx USART Instance - * @param Threshold This parameter can be one of the following values: - * @arg @ref LL_USART_FIFOTHRESHOLD_1_8 - * @arg @ref LL_USART_FIFOTHRESHOLD_1_4 - * @arg @ref LL_USART_FIFOTHRESHOLD_1_2 - * @arg @ref LL_USART_FIFOTHRESHOLD_3_4 - * @arg @ref LL_USART_FIFOTHRESHOLD_7_8 - * @arg @ref LL_USART_FIFOTHRESHOLD_8_8 - * @retval None - */ -__STATIC_INLINE void LL_USART_SetTXFIFOThreshold(USART_TypeDef *USARTx, uint32_t Threshold) -{ - ATOMIC_MODIFY_REG(USARTx->CR3, USART_CR3_TXFTCFG, Threshold << USART_CR3_TXFTCFG_Pos); -} - -/** - * @brief Return TX FIFO Threshold Configuration - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll CR3 TXFTCFG LL_USART_GetTXFIFOThreshold - * @param USARTx USART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_USART_FIFOTHRESHOLD_1_8 - * @arg @ref LL_USART_FIFOTHRESHOLD_1_4 - * @arg @ref LL_USART_FIFOTHRESHOLD_1_2 - * @arg @ref LL_USART_FIFOTHRESHOLD_3_4 - * @arg @ref LL_USART_FIFOTHRESHOLD_7_8 - * @arg @ref LL_USART_FIFOTHRESHOLD_8_8 - */ -__STATIC_INLINE uint32_t LL_USART_GetTXFIFOThreshold(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->CR3, USART_CR3_TXFTCFG) >> USART_CR3_TXFTCFG_Pos); -} - -/** - * @brief Configure RX FIFO Threshold - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll CR3 RXFTCFG LL_USART_SetRXFIFOThreshold - * @param USARTx USART Instance - * @param Threshold This parameter can be one of the following values: - * @arg @ref LL_USART_FIFOTHRESHOLD_1_8 - * @arg @ref LL_USART_FIFOTHRESHOLD_1_4 - * @arg @ref LL_USART_FIFOTHRESHOLD_1_2 - * @arg @ref LL_USART_FIFOTHRESHOLD_3_4 - * @arg @ref LL_USART_FIFOTHRESHOLD_7_8 - * @arg @ref LL_USART_FIFOTHRESHOLD_8_8 - * @retval None - */ -__STATIC_INLINE void LL_USART_SetRXFIFOThreshold(USART_TypeDef *USARTx, uint32_t Threshold) -{ - ATOMIC_MODIFY_REG(USARTx->CR3, USART_CR3_RXFTCFG, Threshold << USART_CR3_RXFTCFG_Pos); -} - -/** - * @brief Return RX FIFO Threshold Configuration - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll CR3 RXFTCFG LL_USART_GetRXFIFOThreshold - * @param USARTx USART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_USART_FIFOTHRESHOLD_1_8 - * @arg @ref LL_USART_FIFOTHRESHOLD_1_4 - * @arg @ref LL_USART_FIFOTHRESHOLD_1_2 - * @arg @ref LL_USART_FIFOTHRESHOLD_3_4 - * @arg @ref LL_USART_FIFOTHRESHOLD_7_8 - * @arg @ref LL_USART_FIFOTHRESHOLD_8_8 - */ -__STATIC_INLINE uint32_t LL_USART_GetRXFIFOThreshold(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->CR3, USART_CR3_RXFTCFG) >> USART_CR3_RXFTCFG_Pos); -} - -/** - * @brief Configure TX and RX FIFOs Threshold - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll CR3 TXFTCFG LL_USART_ConfigFIFOsThreshold\n - * CR3 RXFTCFG LL_USART_ConfigFIFOsThreshold - * @param USARTx USART Instance - * @param TXThreshold This parameter can be one of the following values: - * @arg @ref LL_USART_FIFOTHRESHOLD_1_8 - * @arg @ref LL_USART_FIFOTHRESHOLD_1_4 - * @arg @ref LL_USART_FIFOTHRESHOLD_1_2 - * @arg @ref LL_USART_FIFOTHRESHOLD_3_4 - * @arg @ref LL_USART_FIFOTHRESHOLD_7_8 - * @arg @ref LL_USART_FIFOTHRESHOLD_8_8 - * @param RXThreshold This parameter can be one of the following values: - * @arg @ref LL_USART_FIFOTHRESHOLD_1_8 - * @arg @ref LL_USART_FIFOTHRESHOLD_1_4 - * @arg @ref LL_USART_FIFOTHRESHOLD_1_2 - * @arg @ref LL_USART_FIFOTHRESHOLD_3_4 - * @arg @ref LL_USART_FIFOTHRESHOLD_7_8 - * @arg @ref LL_USART_FIFOTHRESHOLD_8_8 - * @retval None - */ -__STATIC_INLINE void LL_USART_ConfigFIFOsThreshold(USART_TypeDef *USARTx, uint32_t TXThreshold, uint32_t RXThreshold) -{ - ATOMIC_MODIFY_REG(USARTx->CR3, USART_CR3_TXFTCFG | USART_CR3_RXFTCFG, (TXThreshold << USART_CR3_TXFTCFG_Pos) | - (RXThreshold << USART_CR3_RXFTCFG_Pos)); -} - -/** - * @brief USART enabled in STOP Mode. - * @note When this function is enabled, USART is able to wake up the MCU from Stop mode, provided that - * USART clock selection is HSI or LSE in RCC. - * @note Macro IS_UART_WAKEUP_FROMSTOP_INSTANCE(USARTx) can be used to check whether or not - * Wake-up from Stop mode feature is supported by the USARTx instance. - * @rmtoll CR1 UESM LL_USART_EnableInStopMode - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableInStopMode(USART_TypeDef *USARTx) -{ - ATOMIC_SET_BIT(USARTx->CR1, USART_CR1_UESM); -} - -/** - * @brief USART disabled in STOP Mode. - * @note When this function is disabled, USART is not able to wake up the MCU from Stop mode - * @note Macro IS_UART_WAKEUP_FROMSTOP_INSTANCE(USARTx) can be used to check whether or not - * Wake-up from Stop mode feature is supported by the USARTx instance. - * @rmtoll CR1 UESM LL_USART_DisableInStopMode - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableInStopMode(USART_TypeDef *USARTx) -{ - ATOMIC_CLEAR_BIT(USARTx->CR1, USART_CR1_UESM); -} - -/** - * @brief Indicate if USART is enabled in STOP Mode (able to wake up MCU from Stop mode or not) - * @note Macro IS_UART_WAKEUP_FROMSTOP_INSTANCE(USARTx) can be used to check whether or not - * Wake-up from Stop mode feature is supported by the USARTx instance. - * @rmtoll CR1 UESM LL_USART_IsEnabledInStopMode - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledInStopMode(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR1, USART_CR1_UESM) == (USART_CR1_UESM)) ? 1UL : 0UL); -} - -/** - * @brief Receiver Enable (Receiver is enabled and begins searching for a start bit) - * @rmtoll CR1 RE LL_USART_EnableDirectionRx - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableDirectionRx(USART_TypeDef *USARTx) -{ - ATOMIC_SET_BIT(USARTx->CR1, USART_CR1_RE); -} - -/** - * @brief Receiver Disable - * @rmtoll CR1 RE LL_USART_DisableDirectionRx - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableDirectionRx(USART_TypeDef *USARTx) -{ - ATOMIC_CLEAR_BIT(USARTx->CR1, USART_CR1_RE); -} - -/** - * @brief Transmitter Enable - * @rmtoll CR1 TE LL_USART_EnableDirectionTx - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableDirectionTx(USART_TypeDef *USARTx) -{ - ATOMIC_SET_BIT(USARTx->CR1, USART_CR1_TE); -} - -/** - * @brief Transmitter Disable - * @rmtoll CR1 TE LL_USART_DisableDirectionTx - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableDirectionTx(USART_TypeDef *USARTx) -{ - ATOMIC_CLEAR_BIT(USARTx->CR1, USART_CR1_TE); -} - -/** - * @brief Configure simultaneously enabled/disabled states - * of Transmitter and Receiver - * @rmtoll CR1 RE LL_USART_SetTransferDirection\n - * CR1 TE LL_USART_SetTransferDirection - * @param USARTx USART Instance - * @param TransferDirection This parameter can be one of the following values: - * @arg @ref LL_USART_DIRECTION_NONE - * @arg @ref LL_USART_DIRECTION_RX - * @arg @ref LL_USART_DIRECTION_TX - * @arg @ref LL_USART_DIRECTION_TX_RX - * @retval None - */ -__STATIC_INLINE void LL_USART_SetTransferDirection(USART_TypeDef *USARTx, uint32_t TransferDirection) -{ - ATOMIC_MODIFY_REG(USARTx->CR1, USART_CR1_RE | USART_CR1_TE, TransferDirection); -} - -/** - * @brief Return enabled/disabled states of Transmitter and Receiver - * @rmtoll CR1 RE LL_USART_GetTransferDirection\n - * CR1 TE LL_USART_GetTransferDirection - * @param USARTx USART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_USART_DIRECTION_NONE - * @arg @ref LL_USART_DIRECTION_RX - * @arg @ref LL_USART_DIRECTION_TX - * @arg @ref LL_USART_DIRECTION_TX_RX - */ -__STATIC_INLINE uint32_t LL_USART_GetTransferDirection(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->CR1, USART_CR1_RE | USART_CR1_TE)); -} - -/** - * @brief Configure Parity (enabled/disabled and parity mode if enabled). - * @note This function selects if hardware parity control (generation and detection) is enabled or disabled. - * When the parity control is enabled (Odd or Even), computed parity bit is inserted at the MSB position - * (9th or 8th bit depending on data width) and parity is checked on the received data. - * @rmtoll CR1 PS LL_USART_SetParity\n - * CR1 PCE LL_USART_SetParity - * @param USARTx USART Instance - * @param Parity This parameter can be one of the following values: - * @arg @ref LL_USART_PARITY_NONE - * @arg @ref LL_USART_PARITY_EVEN - * @arg @ref LL_USART_PARITY_ODD - * @retval None - */ -__STATIC_INLINE void LL_USART_SetParity(USART_TypeDef *USARTx, uint32_t Parity) -{ - MODIFY_REG(USARTx->CR1, USART_CR1_PS | USART_CR1_PCE, Parity); -} - -/** - * @brief Return Parity configuration (enabled/disabled and parity mode if enabled) - * @rmtoll CR1 PS LL_USART_GetParity\n - * CR1 PCE LL_USART_GetParity - * @param USARTx USART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_USART_PARITY_NONE - * @arg @ref LL_USART_PARITY_EVEN - * @arg @ref LL_USART_PARITY_ODD - */ -__STATIC_INLINE uint32_t LL_USART_GetParity(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->CR1, USART_CR1_PS | USART_CR1_PCE)); -} - -/** - * @brief Set Receiver Wake Up method from Mute mode. - * @rmtoll CR1 WAKE LL_USART_SetWakeUpMethod - * @param USARTx USART Instance - * @param Method This parameter can be one of the following values: - * @arg @ref LL_USART_WAKEUP_IDLELINE - * @arg @ref LL_USART_WAKEUP_ADDRESSMARK - * @retval None - */ -__STATIC_INLINE void LL_USART_SetWakeUpMethod(USART_TypeDef *USARTx, uint32_t Method) -{ - MODIFY_REG(USARTx->CR1, USART_CR1_WAKE, Method); -} - -/** - * @brief Return Receiver Wake Up method from Mute mode - * @rmtoll CR1 WAKE LL_USART_GetWakeUpMethod - * @param USARTx USART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_USART_WAKEUP_IDLELINE - * @arg @ref LL_USART_WAKEUP_ADDRESSMARK - */ -__STATIC_INLINE uint32_t LL_USART_GetWakeUpMethod(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->CR1, USART_CR1_WAKE)); -} - -/** - * @brief Set Word length (i.e. nb of data bits, excluding start and stop bits) - * @rmtoll CR1 M0 LL_USART_SetDataWidth\n - * CR1 M1 LL_USART_SetDataWidth - * @param USARTx USART Instance - * @param DataWidth This parameter can be one of the following values: - * @arg @ref LL_USART_DATAWIDTH_7B - * @arg @ref LL_USART_DATAWIDTH_8B - * @arg @ref LL_USART_DATAWIDTH_9B - * @retval None - */ -__STATIC_INLINE void LL_USART_SetDataWidth(USART_TypeDef *USARTx, uint32_t DataWidth) -{ - MODIFY_REG(USARTx->CR1, USART_CR1_M, DataWidth); -} - -/** - * @brief Return Word length (i.e. nb of data bits, excluding start and stop bits) - * @rmtoll CR1 M0 LL_USART_GetDataWidth\n - * CR1 M1 LL_USART_GetDataWidth - * @param USARTx USART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_USART_DATAWIDTH_7B - * @arg @ref LL_USART_DATAWIDTH_8B - * @arg @ref LL_USART_DATAWIDTH_9B - */ -__STATIC_INLINE uint32_t LL_USART_GetDataWidth(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->CR1, USART_CR1_M)); -} - -/** - * @brief Allow switch between Mute Mode and Active mode - * @rmtoll CR1 MME LL_USART_EnableMuteMode - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableMuteMode(USART_TypeDef *USARTx) -{ - ATOMIC_SET_BIT(USARTx->CR1, USART_CR1_MME); -} - -/** - * @brief Prevent Mute Mode use. Set Receiver in active mode permanently. - * @rmtoll CR1 MME LL_USART_DisableMuteMode - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableMuteMode(USART_TypeDef *USARTx) -{ - ATOMIC_CLEAR_BIT(USARTx->CR1, USART_CR1_MME); -} - -/** - * @brief Indicate if switch between Mute Mode and Active mode is allowed - * @rmtoll CR1 MME LL_USART_IsEnabledMuteMode - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledMuteMode(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR1, USART_CR1_MME) == (USART_CR1_MME)) ? 1UL : 0UL); -} - -/** - * @brief Set Oversampling to 8-bit or 16-bit mode - * @rmtoll CR1 OVER8 LL_USART_SetOverSampling - * @param USARTx USART Instance - * @param OverSampling This parameter can be one of the following values: - * @arg @ref LL_USART_OVERSAMPLING_16 - * @arg @ref LL_USART_OVERSAMPLING_8 - * @retval None - */ -__STATIC_INLINE void LL_USART_SetOverSampling(USART_TypeDef *USARTx, uint32_t OverSampling) -{ - MODIFY_REG(USARTx->CR1, USART_CR1_OVER8, OverSampling); -} - -/** - * @brief Return Oversampling mode - * @rmtoll CR1 OVER8 LL_USART_GetOverSampling - * @param USARTx USART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_USART_OVERSAMPLING_16 - * @arg @ref LL_USART_OVERSAMPLING_8 - */ -__STATIC_INLINE uint32_t LL_USART_GetOverSampling(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->CR1, USART_CR1_OVER8)); -} - -/** - * @brief Configure if Clock pulse of the last data bit is output to the SCLK pin or not - * @note Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not - * Synchronous mode is supported by the USARTx instance. - * @rmtoll CR2 LBCL LL_USART_SetLastClkPulseOutput - * @param USARTx USART Instance - * @param LastBitClockPulse This parameter can be one of the following values: - * @arg @ref LL_USART_LASTCLKPULSE_NO_OUTPUT - * @arg @ref LL_USART_LASTCLKPULSE_OUTPUT - * @retval None - */ -__STATIC_INLINE void LL_USART_SetLastClkPulseOutput(USART_TypeDef *USARTx, uint32_t LastBitClockPulse) -{ - MODIFY_REG(USARTx->CR2, USART_CR2_LBCL, LastBitClockPulse); -} - -/** - * @brief Retrieve Clock pulse of the last data bit output configuration - * (Last bit Clock pulse output to the SCLK pin or not) - * @note Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not - * Synchronous mode is supported by the USARTx instance. - * @rmtoll CR2 LBCL LL_USART_GetLastClkPulseOutput - * @param USARTx USART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_USART_LASTCLKPULSE_NO_OUTPUT - * @arg @ref LL_USART_LASTCLKPULSE_OUTPUT - */ -__STATIC_INLINE uint32_t LL_USART_GetLastClkPulseOutput(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->CR2, USART_CR2_LBCL)); -} - -/** - * @brief Select the phase of the clock output on the SCLK pin in synchronous mode - * @note Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not - * Synchronous mode is supported by the USARTx instance. - * @rmtoll CR2 CPHA LL_USART_SetClockPhase - * @param USARTx USART Instance - * @param ClockPhase This parameter can be one of the following values: - * @arg @ref LL_USART_PHASE_1EDGE - * @arg @ref LL_USART_PHASE_2EDGE - * @retval None - */ -__STATIC_INLINE void LL_USART_SetClockPhase(USART_TypeDef *USARTx, uint32_t ClockPhase) -{ - MODIFY_REG(USARTx->CR2, USART_CR2_CPHA, ClockPhase); -} - -/** - * @brief Return phase of the clock output on the SCLK pin in synchronous mode - * @note Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not - * Synchronous mode is supported by the USARTx instance. - * @rmtoll CR2 CPHA LL_USART_GetClockPhase - * @param USARTx USART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_USART_PHASE_1EDGE - * @arg @ref LL_USART_PHASE_2EDGE - */ -__STATIC_INLINE uint32_t LL_USART_GetClockPhase(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->CR2, USART_CR2_CPHA)); -} - -/** - * @brief Select the polarity of the clock output on the SCLK pin in synchronous mode - * @note Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not - * Synchronous mode is supported by the USARTx instance. - * @rmtoll CR2 CPOL LL_USART_SetClockPolarity - * @param USARTx USART Instance - * @param ClockPolarity This parameter can be one of the following values: - * @arg @ref LL_USART_POLARITY_LOW - * @arg @ref LL_USART_POLARITY_HIGH - * @retval None - */ -__STATIC_INLINE void LL_USART_SetClockPolarity(USART_TypeDef *USARTx, uint32_t ClockPolarity) -{ - MODIFY_REG(USARTx->CR2, USART_CR2_CPOL, ClockPolarity); -} - -/** - * @brief Return polarity of the clock output on the SCLK pin in synchronous mode - * @note Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not - * Synchronous mode is supported by the USARTx instance. - * @rmtoll CR2 CPOL LL_USART_GetClockPolarity - * @param USARTx USART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_USART_POLARITY_LOW - * @arg @ref LL_USART_POLARITY_HIGH - */ -__STATIC_INLINE uint32_t LL_USART_GetClockPolarity(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->CR2, USART_CR2_CPOL)); -} - -/** - * @brief Configure Clock signal format (Phase Polarity and choice about output of last bit clock pulse) - * @note Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not - * Synchronous mode is supported by the USARTx instance. - * @note Call of this function is equivalent to following function call sequence : - * - Clock Phase configuration using @ref LL_USART_SetClockPhase() function - * - Clock Polarity configuration using @ref LL_USART_SetClockPolarity() function - * - Output of Last bit Clock pulse configuration using @ref LL_USART_SetLastClkPulseOutput() function - * @rmtoll CR2 CPHA LL_USART_ConfigClock\n - * CR2 CPOL LL_USART_ConfigClock\n - * CR2 LBCL LL_USART_ConfigClock - * @param USARTx USART Instance - * @param Phase This parameter can be one of the following values: - * @arg @ref LL_USART_PHASE_1EDGE - * @arg @ref LL_USART_PHASE_2EDGE - * @param Polarity This parameter can be one of the following values: - * @arg @ref LL_USART_POLARITY_LOW - * @arg @ref LL_USART_POLARITY_HIGH - * @param LBCPOutput This parameter can be one of the following values: - * @arg @ref LL_USART_LASTCLKPULSE_NO_OUTPUT - * @arg @ref LL_USART_LASTCLKPULSE_OUTPUT - * @retval None - */ -__STATIC_INLINE void LL_USART_ConfigClock(USART_TypeDef *USARTx, uint32_t Phase, uint32_t Polarity, uint32_t LBCPOutput) -{ - MODIFY_REG(USARTx->CR2, USART_CR2_CPHA | USART_CR2_CPOL | USART_CR2_LBCL, Phase | Polarity | LBCPOutput); -} - -/** - * @brief Configure Clock source prescaler for baudrate generator and oversampling - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll PRESC PRESCALER LL_USART_SetPrescaler - * @param USARTx USART Instance - * @param PrescalerValue This parameter can be one of the following values: - * @arg @ref LL_USART_PRESCALER_DIV1 - * @arg @ref LL_USART_PRESCALER_DIV2 - * @arg @ref LL_USART_PRESCALER_DIV4 - * @arg @ref LL_USART_PRESCALER_DIV6 - * @arg @ref LL_USART_PRESCALER_DIV8 - * @arg @ref LL_USART_PRESCALER_DIV10 - * @arg @ref LL_USART_PRESCALER_DIV12 - * @arg @ref LL_USART_PRESCALER_DIV16 - * @arg @ref LL_USART_PRESCALER_DIV32 - * @arg @ref LL_USART_PRESCALER_DIV64 - * @arg @ref LL_USART_PRESCALER_DIV128 - * @arg @ref LL_USART_PRESCALER_DIV256 - * @retval None - */ -__STATIC_INLINE void LL_USART_SetPrescaler(USART_TypeDef *USARTx, uint32_t PrescalerValue) -{ - MODIFY_REG(USARTx->PRESC, USART_PRESC_PRESCALER, (uint16_t)PrescalerValue); -} - -/** - * @brief Retrieve the Clock source prescaler for baudrate generator and oversampling - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll PRESC PRESCALER LL_USART_GetPrescaler - * @param USARTx USART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_USART_PRESCALER_DIV1 - * @arg @ref LL_USART_PRESCALER_DIV2 - * @arg @ref LL_USART_PRESCALER_DIV4 - * @arg @ref LL_USART_PRESCALER_DIV6 - * @arg @ref LL_USART_PRESCALER_DIV8 - * @arg @ref LL_USART_PRESCALER_DIV10 - * @arg @ref LL_USART_PRESCALER_DIV12 - * @arg @ref LL_USART_PRESCALER_DIV16 - * @arg @ref LL_USART_PRESCALER_DIV32 - * @arg @ref LL_USART_PRESCALER_DIV64 - * @arg @ref LL_USART_PRESCALER_DIV128 - * @arg @ref LL_USART_PRESCALER_DIV256 - */ -__STATIC_INLINE uint32_t LL_USART_GetPrescaler(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->PRESC, USART_PRESC_PRESCALER)); -} - -/** - * @brief Enable Clock output on SCLK pin - * @note Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not - * Synchronous mode is supported by the USARTx instance. - * @rmtoll CR2 CLKEN LL_USART_EnableSCLKOutput - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableSCLKOutput(USART_TypeDef *USARTx) -{ - SET_BIT(USARTx->CR2, USART_CR2_CLKEN); -} - -/** - * @brief Disable Clock output on SCLK pin - * @note Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not - * Synchronous mode is supported by the USARTx instance. - * @rmtoll CR2 CLKEN LL_USART_DisableSCLKOutput - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableSCLKOutput(USART_TypeDef *USARTx) -{ - CLEAR_BIT(USARTx->CR2, USART_CR2_CLKEN); -} - -/** - * @brief Indicate if Clock output on SCLK pin is enabled - * @note Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not - * Synchronous mode is supported by the USARTx instance. - * @rmtoll CR2 CLKEN LL_USART_IsEnabledSCLKOutput - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledSCLKOutput(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR2, USART_CR2_CLKEN) == (USART_CR2_CLKEN)) ? 1UL : 0UL); -} - -/** - * @brief Set the length of the stop bits - * @rmtoll CR2 STOP LL_USART_SetStopBitsLength - * @param USARTx USART Instance - * @param StopBits This parameter can be one of the following values: - * @arg @ref LL_USART_STOPBITS_0_5 - * @arg @ref LL_USART_STOPBITS_1 - * @arg @ref LL_USART_STOPBITS_1_5 - * @arg @ref LL_USART_STOPBITS_2 - * @retval None - */ -__STATIC_INLINE void LL_USART_SetStopBitsLength(USART_TypeDef *USARTx, uint32_t StopBits) -{ - MODIFY_REG(USARTx->CR2, USART_CR2_STOP, StopBits); -} - -/** - * @brief Retrieve the length of the stop bits - * @rmtoll CR2 STOP LL_USART_GetStopBitsLength - * @param USARTx USART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_USART_STOPBITS_0_5 - * @arg @ref LL_USART_STOPBITS_1 - * @arg @ref LL_USART_STOPBITS_1_5 - * @arg @ref LL_USART_STOPBITS_2 - */ -__STATIC_INLINE uint32_t LL_USART_GetStopBitsLength(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->CR2, USART_CR2_STOP)); -} - -/** - * @brief Configure Character frame format (Datawidth, Parity control, Stop Bits) - * @note Call of this function is equivalent to following function call sequence : - * - Data Width configuration using @ref LL_USART_SetDataWidth() function - * - Parity Control and mode configuration using @ref LL_USART_SetParity() function - * - Stop bits configuration using @ref LL_USART_SetStopBitsLength() function - * @rmtoll CR1 PS LL_USART_ConfigCharacter\n - * CR1 PCE LL_USART_ConfigCharacter\n - * CR1 M0 LL_USART_ConfigCharacter\n - * CR1 M1 LL_USART_ConfigCharacter\n - * CR2 STOP LL_USART_ConfigCharacter - * @param USARTx USART Instance - * @param DataWidth This parameter can be one of the following values: - * @arg @ref LL_USART_DATAWIDTH_7B - * @arg @ref LL_USART_DATAWIDTH_8B - * @arg @ref LL_USART_DATAWIDTH_9B - * @param Parity This parameter can be one of the following values: - * @arg @ref LL_USART_PARITY_NONE - * @arg @ref LL_USART_PARITY_EVEN - * @arg @ref LL_USART_PARITY_ODD - * @param StopBits This parameter can be one of the following values: - * @arg @ref LL_USART_STOPBITS_0_5 - * @arg @ref LL_USART_STOPBITS_1 - * @arg @ref LL_USART_STOPBITS_1_5 - * @arg @ref LL_USART_STOPBITS_2 - * @retval None - */ -__STATIC_INLINE void LL_USART_ConfigCharacter(USART_TypeDef *USARTx, uint32_t DataWidth, uint32_t Parity, - uint32_t StopBits) -{ - MODIFY_REG(USARTx->CR1, USART_CR1_PS | USART_CR1_PCE | USART_CR1_M, Parity | DataWidth); - MODIFY_REG(USARTx->CR2, USART_CR2_STOP, StopBits); -} - -/** - * @brief Configure TX/RX pins swapping setting. - * @rmtoll CR2 SWAP LL_USART_SetTXRXSwap - * @param USARTx USART Instance - * @param SwapConfig This parameter can be one of the following values: - * @arg @ref LL_USART_TXRX_STANDARD - * @arg @ref LL_USART_TXRX_SWAPPED - * @retval None - */ -__STATIC_INLINE void LL_USART_SetTXRXSwap(USART_TypeDef *USARTx, uint32_t SwapConfig) -{ - MODIFY_REG(USARTx->CR2, USART_CR2_SWAP, SwapConfig); -} - -/** - * @brief Retrieve TX/RX pins swapping configuration. - * @rmtoll CR2 SWAP LL_USART_GetTXRXSwap - * @param USARTx USART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_USART_TXRX_STANDARD - * @arg @ref LL_USART_TXRX_SWAPPED - */ -__STATIC_INLINE uint32_t LL_USART_GetTXRXSwap(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->CR2, USART_CR2_SWAP)); -} - -/** - * @brief Configure RX pin active level logic - * @rmtoll CR2 RXINV LL_USART_SetRXPinLevel - * @param USARTx USART Instance - * @param PinInvMethod This parameter can be one of the following values: - * @arg @ref LL_USART_RXPIN_LEVEL_STANDARD - * @arg @ref LL_USART_RXPIN_LEVEL_INVERTED - * @retval None - */ -__STATIC_INLINE void LL_USART_SetRXPinLevel(USART_TypeDef *USARTx, uint32_t PinInvMethod) -{ - MODIFY_REG(USARTx->CR2, USART_CR2_RXINV, PinInvMethod); -} - -/** - * @brief Retrieve RX pin active level logic configuration - * @rmtoll CR2 RXINV LL_USART_GetRXPinLevel - * @param USARTx USART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_USART_RXPIN_LEVEL_STANDARD - * @arg @ref LL_USART_RXPIN_LEVEL_INVERTED - */ -__STATIC_INLINE uint32_t LL_USART_GetRXPinLevel(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->CR2, USART_CR2_RXINV)); -} - -/** - * @brief Configure TX pin active level logic - * @rmtoll CR2 TXINV LL_USART_SetTXPinLevel - * @param USARTx USART Instance - * @param PinInvMethod This parameter can be one of the following values: - * @arg @ref LL_USART_TXPIN_LEVEL_STANDARD - * @arg @ref LL_USART_TXPIN_LEVEL_INVERTED - * @retval None - */ -__STATIC_INLINE void LL_USART_SetTXPinLevel(USART_TypeDef *USARTx, uint32_t PinInvMethod) -{ - MODIFY_REG(USARTx->CR2, USART_CR2_TXINV, PinInvMethod); -} - -/** - * @brief Retrieve TX pin active level logic configuration - * @rmtoll CR2 TXINV LL_USART_GetTXPinLevel - * @param USARTx USART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_USART_TXPIN_LEVEL_STANDARD - * @arg @ref LL_USART_TXPIN_LEVEL_INVERTED - */ -__STATIC_INLINE uint32_t LL_USART_GetTXPinLevel(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->CR2, USART_CR2_TXINV)); -} - -/** - * @brief Configure Binary data logic. - * @note Allow to define how Logical data from the data register are send/received : - * either in positive/direct logic (1=H, 0=L) or in negative/inverse logic (1=L, 0=H) - * @rmtoll CR2 DATAINV LL_USART_SetBinaryDataLogic - * @param USARTx USART Instance - * @param DataLogic This parameter can be one of the following values: - * @arg @ref LL_USART_BINARY_LOGIC_POSITIVE - * @arg @ref LL_USART_BINARY_LOGIC_NEGATIVE - * @retval None - */ -__STATIC_INLINE void LL_USART_SetBinaryDataLogic(USART_TypeDef *USARTx, uint32_t DataLogic) -{ - MODIFY_REG(USARTx->CR2, USART_CR2_DATAINV, DataLogic); -} - -/** - * @brief Retrieve Binary data configuration - * @rmtoll CR2 DATAINV LL_USART_GetBinaryDataLogic - * @param USARTx USART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_USART_BINARY_LOGIC_POSITIVE - * @arg @ref LL_USART_BINARY_LOGIC_NEGATIVE - */ -__STATIC_INLINE uint32_t LL_USART_GetBinaryDataLogic(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->CR2, USART_CR2_DATAINV)); -} - -/** - * @brief Configure transfer bit order (either Less or Most Significant Bit First) - * @note MSB First means data is transmitted/received with the MSB first, following the start bit. - * LSB First means data is transmitted/received with data bit 0 first, following the start bit. - * @rmtoll CR2 MSBFIRST LL_USART_SetTransferBitOrder - * @param USARTx USART Instance - * @param BitOrder This parameter can be one of the following values: - * @arg @ref LL_USART_BITORDER_LSBFIRST - * @arg @ref LL_USART_BITORDER_MSBFIRST - * @retval None - */ -__STATIC_INLINE void LL_USART_SetTransferBitOrder(USART_TypeDef *USARTx, uint32_t BitOrder) -{ - MODIFY_REG(USARTx->CR2, USART_CR2_MSBFIRST, BitOrder); -} - -/** - * @brief Return transfer bit order (either Less or Most Significant Bit First) - * @note MSB First means data is transmitted/received with the MSB first, following the start bit. - * LSB First means data is transmitted/received with data bit 0 first, following the start bit. - * @rmtoll CR2 MSBFIRST LL_USART_GetTransferBitOrder - * @param USARTx USART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_USART_BITORDER_LSBFIRST - * @arg @ref LL_USART_BITORDER_MSBFIRST - */ -__STATIC_INLINE uint32_t LL_USART_GetTransferBitOrder(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->CR2, USART_CR2_MSBFIRST)); -} - -/** - * @brief Enable Auto Baud-Rate Detection - * @note Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(USARTx) can be used to check whether or not - * Auto Baud Rate detection feature is supported by the USARTx instance. - * @rmtoll CR2 ABREN LL_USART_EnableAutoBaudRate - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableAutoBaudRate(USART_TypeDef *USARTx) -{ - SET_BIT(USARTx->CR2, USART_CR2_ABREN); -} - -/** - * @brief Disable Auto Baud-Rate Detection - * @note Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(USARTx) can be used to check whether or not - * Auto Baud Rate detection feature is supported by the USARTx instance. - * @rmtoll CR2 ABREN LL_USART_DisableAutoBaudRate - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableAutoBaudRate(USART_TypeDef *USARTx) -{ - CLEAR_BIT(USARTx->CR2, USART_CR2_ABREN); -} - -/** - * @brief Indicate if Auto Baud-Rate Detection mechanism is enabled - * @note Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(USARTx) can be used to check whether or not - * Auto Baud Rate detection feature is supported by the USARTx instance. - * @rmtoll CR2 ABREN LL_USART_IsEnabledAutoBaud - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledAutoBaud(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR2, USART_CR2_ABREN) == (USART_CR2_ABREN)) ? 1UL : 0UL); -} - -/** - * @brief Set Auto Baud-Rate mode bits - * @note Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(USARTx) can be used to check whether or not - * Auto Baud Rate detection feature is supported by the USARTx instance. - * @rmtoll CR2 ABRMODE LL_USART_SetAutoBaudRateMode - * @param USARTx USART Instance - * @param AutoBaudRateMode This parameter can be one of the following values: - * @arg @ref LL_USART_AUTOBAUD_DETECT_ON_STARTBIT - * @arg @ref LL_USART_AUTOBAUD_DETECT_ON_FALLINGEDGE - * @arg @ref LL_USART_AUTOBAUD_DETECT_ON_7F_FRAME - * @arg @ref LL_USART_AUTOBAUD_DETECT_ON_55_FRAME - * @retval None - */ -__STATIC_INLINE void LL_USART_SetAutoBaudRateMode(USART_TypeDef *USARTx, uint32_t AutoBaudRateMode) -{ - MODIFY_REG(USARTx->CR2, USART_CR2_ABRMODE, AutoBaudRateMode); -} - -/** - * @brief Return Auto Baud-Rate mode - * @note Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(USARTx) can be used to check whether or not - * Auto Baud Rate detection feature is supported by the USARTx instance. - * @rmtoll CR2 ABRMODE LL_USART_GetAutoBaudRateMode - * @param USARTx USART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_USART_AUTOBAUD_DETECT_ON_STARTBIT - * @arg @ref LL_USART_AUTOBAUD_DETECT_ON_FALLINGEDGE - * @arg @ref LL_USART_AUTOBAUD_DETECT_ON_7F_FRAME - * @arg @ref LL_USART_AUTOBAUD_DETECT_ON_55_FRAME - */ -__STATIC_INLINE uint32_t LL_USART_GetAutoBaudRateMode(USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->CR2, USART_CR2_ABRMODE)); -} - -/** - * @brief Enable Receiver Timeout - * @rmtoll CR2 RTOEN LL_USART_EnableRxTimeout - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableRxTimeout(USART_TypeDef *USARTx) -{ - SET_BIT(USARTx->CR2, USART_CR2_RTOEN); -} - -/** - * @brief Disable Receiver Timeout - * @rmtoll CR2 RTOEN LL_USART_DisableRxTimeout - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableRxTimeout(USART_TypeDef *USARTx) -{ - CLEAR_BIT(USARTx->CR2, USART_CR2_RTOEN); -} - -/** - * @brief Indicate if Receiver Timeout feature is enabled - * @rmtoll CR2 RTOEN LL_USART_IsEnabledRxTimeout - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledRxTimeout(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR2, USART_CR2_RTOEN) == (USART_CR2_RTOEN)) ? 1UL : 0UL); -} - -/** - * @brief Set Address of the USART node. - * @note This is used in multiprocessor communication during Mute mode or Stop mode, - * for wake up with address mark detection. - * @note 4bits address node is used when 4-bit Address Detection is selected in ADDM7. - * (b7-b4 should be set to 0) - * 8bits address node is used when 7-bit Address Detection is selected in ADDM7. - * (This is used in multiprocessor communication during Mute mode or Stop mode, - * for wake up with 7-bit address mark detection. - * The MSB of the character sent by the transmitter should be equal to 1. - * It may also be used for character detection during normal reception, - * Mute mode inactive (for example, end of block detection in ModBus protocol). - * In this case, the whole received character (8-bit) is compared to the ADD[7:0] - * value and CMF flag is set on match) - * @rmtoll CR2 ADD LL_USART_ConfigNodeAddress\n - * CR2 ADDM7 LL_USART_ConfigNodeAddress - * @param USARTx USART Instance - * @param AddressLen This parameter can be one of the following values: - * @arg @ref LL_USART_ADDRESS_DETECT_4B - * @arg @ref LL_USART_ADDRESS_DETECT_7B - * @param NodeAddress 4 or 7 bit Address of the USART node. - * @retval None - */ -__STATIC_INLINE void LL_USART_ConfigNodeAddress(USART_TypeDef *USARTx, uint32_t AddressLen, uint32_t NodeAddress) -{ - MODIFY_REG(USARTx->CR2, USART_CR2_ADD | USART_CR2_ADDM7, - (uint32_t)(AddressLen | (NodeAddress << USART_CR2_ADD_Pos))); -} - -/** - * @brief Return 8 bit Address of the USART node as set in ADD field of CR2. - * @note If 4-bit Address Detection is selected in ADDM7, - * only 4bits (b3-b0) of returned value are relevant (b31-b4 are not relevant) - * If 7-bit Address Detection is selected in ADDM7, - * only 8bits (b7-b0) of returned value are relevant (b31-b8 are not relevant) - * @rmtoll CR2 ADD LL_USART_GetNodeAddress - * @param USARTx USART Instance - * @retval Address of the USART node (Value between Min_Data=0 and Max_Data=255) - */ -__STATIC_INLINE uint32_t LL_USART_GetNodeAddress(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->CR2, USART_CR2_ADD) >> USART_CR2_ADD_Pos); -} - -/** - * @brief Return Length of Node Address used in Address Detection mode (7-bit or 4-bit) - * @rmtoll CR2 ADDM7 LL_USART_GetNodeAddressLen - * @param USARTx USART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_USART_ADDRESS_DETECT_4B - * @arg @ref LL_USART_ADDRESS_DETECT_7B - */ -__STATIC_INLINE uint32_t LL_USART_GetNodeAddressLen(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->CR2, USART_CR2_ADDM7)); -} - -/** - * @brief Enable RTS HW Flow Control - * @note Macro IS_UART_HWFLOW_INSTANCE(USARTx) can be used to check whether or not - * Hardware Flow control feature is supported by the USARTx instance. - * @rmtoll CR3 RTSE LL_USART_EnableRTSHWFlowCtrl - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableRTSHWFlowCtrl(USART_TypeDef *USARTx) -{ - SET_BIT(USARTx->CR3, USART_CR3_RTSE); -} - -/** - * @brief Disable RTS HW Flow Control - * @note Macro IS_UART_HWFLOW_INSTANCE(USARTx) can be used to check whether or not - * Hardware Flow control feature is supported by the USARTx instance. - * @rmtoll CR3 RTSE LL_USART_DisableRTSHWFlowCtrl - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableRTSHWFlowCtrl(USART_TypeDef *USARTx) -{ - CLEAR_BIT(USARTx->CR3, USART_CR3_RTSE); -} - -/** - * @brief Enable CTS HW Flow Control - * @note Macro IS_UART_HWFLOW_INSTANCE(USARTx) can be used to check whether or not - * Hardware Flow control feature is supported by the USARTx instance. - * @rmtoll CR3 CTSE LL_USART_EnableCTSHWFlowCtrl - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableCTSHWFlowCtrl(USART_TypeDef *USARTx) -{ - SET_BIT(USARTx->CR3, USART_CR3_CTSE); -} - -/** - * @brief Disable CTS HW Flow Control - * @note Macro IS_UART_HWFLOW_INSTANCE(USARTx) can be used to check whether or not - * Hardware Flow control feature is supported by the USARTx instance. - * @rmtoll CR3 CTSE LL_USART_DisableCTSHWFlowCtrl - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableCTSHWFlowCtrl(USART_TypeDef *USARTx) -{ - CLEAR_BIT(USARTx->CR3, USART_CR3_CTSE); -} - -/** - * @brief Configure HW Flow Control mode (both CTS and RTS) - * @note Macro IS_UART_HWFLOW_INSTANCE(USARTx) can be used to check whether or not - * Hardware Flow control feature is supported by the USARTx instance. - * @rmtoll CR3 RTSE LL_USART_SetHWFlowCtrl\n - * CR3 CTSE LL_USART_SetHWFlowCtrl - * @param USARTx USART Instance - * @param HardwareFlowControl This parameter can be one of the following values: - * @arg @ref LL_USART_HWCONTROL_NONE - * @arg @ref LL_USART_HWCONTROL_RTS - * @arg @ref LL_USART_HWCONTROL_CTS - * @arg @ref LL_USART_HWCONTROL_RTS_CTS - * @retval None - */ -__STATIC_INLINE void LL_USART_SetHWFlowCtrl(USART_TypeDef *USARTx, uint32_t HardwareFlowControl) -{ - MODIFY_REG(USARTx->CR3, USART_CR3_RTSE | USART_CR3_CTSE, HardwareFlowControl); -} - -/** - * @brief Return HW Flow Control configuration (both CTS and RTS) - * @note Macro IS_UART_HWFLOW_INSTANCE(USARTx) can be used to check whether or not - * Hardware Flow control feature is supported by the USARTx instance. - * @rmtoll CR3 RTSE LL_USART_GetHWFlowCtrl\n - * CR3 CTSE LL_USART_GetHWFlowCtrl - * @param USARTx USART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_USART_HWCONTROL_NONE - * @arg @ref LL_USART_HWCONTROL_RTS - * @arg @ref LL_USART_HWCONTROL_CTS - * @arg @ref LL_USART_HWCONTROL_RTS_CTS - */ -__STATIC_INLINE uint32_t LL_USART_GetHWFlowCtrl(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->CR3, USART_CR3_RTSE | USART_CR3_CTSE)); -} - -/** - * @brief Enable One bit sampling method - * @rmtoll CR3 ONEBIT LL_USART_EnableOneBitSamp - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableOneBitSamp(USART_TypeDef *USARTx) -{ - SET_BIT(USARTx->CR3, USART_CR3_ONEBIT); -} - -/** - * @brief Disable One bit sampling method - * @rmtoll CR3 ONEBIT LL_USART_DisableOneBitSamp - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableOneBitSamp(USART_TypeDef *USARTx) -{ - CLEAR_BIT(USARTx->CR3, USART_CR3_ONEBIT); -} - -/** - * @brief Indicate if One bit sampling method is enabled - * @rmtoll CR3 ONEBIT LL_USART_IsEnabledOneBitSamp - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledOneBitSamp(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR3, USART_CR3_ONEBIT) == (USART_CR3_ONEBIT)) ? 1UL : 0UL); -} - -/** - * @brief Enable Overrun detection - * @rmtoll CR3 OVRDIS LL_USART_EnableOverrunDetect - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableOverrunDetect(USART_TypeDef *USARTx) -{ - CLEAR_BIT(USARTx->CR3, USART_CR3_OVRDIS); -} - -/** - * @brief Disable Overrun detection - * @rmtoll CR3 OVRDIS LL_USART_DisableOverrunDetect - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableOverrunDetect(USART_TypeDef *USARTx) -{ - SET_BIT(USARTx->CR3, USART_CR3_OVRDIS); -} - -/** - * @brief Indicate if Overrun detection is enabled - * @rmtoll CR3 OVRDIS LL_USART_IsEnabledOverrunDetect - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledOverrunDetect(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR3, USART_CR3_OVRDIS) != USART_CR3_OVRDIS) ? 1UL : 0UL); -} - -/** - * @brief Select event type for Wake UP Interrupt Flag (WUS[1:0] bits) - * @note Macro IS_UART_WAKEUP_FROMSTOP_INSTANCE(USARTx) can be used to check whether or not - * Wake-up from Stop mode feature is supported by the USARTx instance. - * @rmtoll CR3 WUS LL_USART_SetWKUPType - * @param USARTx USART Instance - * @param Type This parameter can be one of the following values: - * @arg @ref LL_USART_WAKEUP_ON_ADDRESS - * @arg @ref LL_USART_WAKEUP_ON_STARTBIT - * @arg @ref LL_USART_WAKEUP_ON_RXNE - * @retval None - */ -__STATIC_INLINE void LL_USART_SetWKUPType(USART_TypeDef *USARTx, uint32_t Type) -{ - MODIFY_REG(USARTx->CR3, USART_CR3_WUS, Type); -} - -/** - * @brief Return event type for Wake UP Interrupt Flag (WUS[1:0] bits) - * @note Macro IS_UART_WAKEUP_FROMSTOP_INSTANCE(USARTx) can be used to check whether or not - * Wake-up from Stop mode feature is supported by the USARTx instance. - * @rmtoll CR3 WUS LL_USART_GetWKUPType - * @param USARTx USART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_USART_WAKEUP_ON_ADDRESS - * @arg @ref LL_USART_WAKEUP_ON_STARTBIT - * @arg @ref LL_USART_WAKEUP_ON_RXNE - */ -__STATIC_INLINE uint32_t LL_USART_GetWKUPType(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->CR3, USART_CR3_WUS)); -} - -/** - * @brief Configure USART BRR register for achieving expected Baud Rate value. - * @note Compute and set USARTDIV value in BRR Register (full BRR content) - * according to used Peripheral Clock, Oversampling mode, and expected Baud Rate values - * @note Peripheral clock and Baud rate values provided as function parameters should be valid - * (Baud rate value != 0) - * @note In case of oversampling by 16 and 8, BRR content must be greater than or equal to 16d. - * @rmtoll BRR BRR LL_USART_SetBaudRate - * @param USARTx USART Instance - * @param PeriphClk Peripheral Clock - * @param PrescalerValue This parameter can be one of the following values: - * @arg @ref LL_USART_PRESCALER_DIV1 - * @arg @ref LL_USART_PRESCALER_DIV2 - * @arg @ref LL_USART_PRESCALER_DIV4 - * @arg @ref LL_USART_PRESCALER_DIV6 - * @arg @ref LL_USART_PRESCALER_DIV8 - * @arg @ref LL_USART_PRESCALER_DIV10 - * @arg @ref LL_USART_PRESCALER_DIV12 - * @arg @ref LL_USART_PRESCALER_DIV16 - * @arg @ref LL_USART_PRESCALER_DIV32 - * @arg @ref LL_USART_PRESCALER_DIV64 - * @arg @ref LL_USART_PRESCALER_DIV128 - * @arg @ref LL_USART_PRESCALER_DIV256 - * @param OverSampling This parameter can be one of the following values: - * @arg @ref LL_USART_OVERSAMPLING_16 - * @arg @ref LL_USART_OVERSAMPLING_8 - * @param BaudRate Baud Rate - * @retval None - */ -__STATIC_INLINE void LL_USART_SetBaudRate(USART_TypeDef *USARTx, uint32_t PeriphClk, uint32_t PrescalerValue, - uint32_t OverSampling, - uint32_t BaudRate) -{ - uint32_t usartdiv; - uint32_t brrtemp; - - if (PrescalerValue > LL_USART_PRESCALER_DIV256) - { - /* Do not overstep the size of USART_PRESCALER_TAB */ - } - else if (BaudRate == 0U) - { - /* Can Not divide per 0 */ - } - else if (OverSampling == LL_USART_OVERSAMPLING_8) - { - usartdiv = (uint16_t)(__LL_USART_DIV_SAMPLING8(PeriphClk, (uint8_t)PrescalerValue, BaudRate)); - brrtemp = usartdiv & 0xFFF0U; - brrtemp |= (uint16_t)((usartdiv & (uint16_t)0x000FU) >> 1U); - USARTx->BRR = brrtemp; - } - else - { - USARTx->BRR = (uint16_t)(__LL_USART_DIV_SAMPLING16(PeriphClk, (uint8_t)PrescalerValue, BaudRate)); - } -} - -/** - * @brief Return current Baud Rate value, according to USARTDIV present in BRR register - * (full BRR content), and to used Peripheral Clock and Oversampling mode values - * @note In case of non-initialized or invalid value stored in BRR register, value 0 will be returned. - * @note In case of oversampling by 16 and 8, BRR content must be greater than or equal to 16d. - * @rmtoll BRR BRR LL_USART_GetBaudRate - * @param USARTx USART Instance - * @param PeriphClk Peripheral Clock - * @param PrescalerValue This parameter can be one of the following values: - * @arg @ref LL_USART_PRESCALER_DIV1 - * @arg @ref LL_USART_PRESCALER_DIV2 - * @arg @ref LL_USART_PRESCALER_DIV4 - * @arg @ref LL_USART_PRESCALER_DIV6 - * @arg @ref LL_USART_PRESCALER_DIV8 - * @arg @ref LL_USART_PRESCALER_DIV10 - * @arg @ref LL_USART_PRESCALER_DIV12 - * @arg @ref LL_USART_PRESCALER_DIV16 - * @arg @ref LL_USART_PRESCALER_DIV32 - * @arg @ref LL_USART_PRESCALER_DIV64 - * @arg @ref LL_USART_PRESCALER_DIV128 - * @arg @ref LL_USART_PRESCALER_DIV256 - * @param OverSampling This parameter can be one of the following values: - * @arg @ref LL_USART_OVERSAMPLING_16 - * @arg @ref LL_USART_OVERSAMPLING_8 - * @retval Baud Rate - */ -__STATIC_INLINE uint32_t LL_USART_GetBaudRate(const USART_TypeDef *USARTx, uint32_t PeriphClk, uint32_t PrescalerValue, - uint32_t OverSampling) -{ - uint32_t usartdiv; - uint32_t brrresult = 0x0U; - uint32_t periphclkpresc = (uint32_t)(PeriphClk / (USART_PRESCALER_TAB[(uint8_t)PrescalerValue])); - - usartdiv = USARTx->BRR; - - if (usartdiv == 0U) - { - /* Do not perform a division by 0 */ - } - else if (OverSampling == LL_USART_OVERSAMPLING_8) - { - usartdiv = (uint16_t)((usartdiv & 0xFFF0U) | ((usartdiv & 0x0007U) << 1U)) ; - if (usartdiv != 0U) - { - brrresult = (periphclkpresc * 2U) / usartdiv; - } - } - else - { - if ((usartdiv & 0xFFFFU) != 0U) - { - brrresult = periphclkpresc / usartdiv; - } - } - return (brrresult); -} - -/** - * @brief Set Receiver Time Out Value (expressed in nb of bits duration) - * @rmtoll RTOR RTO LL_USART_SetRxTimeout - * @param USARTx USART Instance - * @param Timeout Value between Min_Data=0x00 and Max_Data=0x00FFFFFF - * @retval None - */ -__STATIC_INLINE void LL_USART_SetRxTimeout(USART_TypeDef *USARTx, uint32_t Timeout) -{ - MODIFY_REG(USARTx->RTOR, USART_RTOR_RTO, Timeout); -} - -/** - * @brief Get Receiver Time Out Value (expressed in nb of bits duration) - * @rmtoll RTOR RTO LL_USART_GetRxTimeout - * @param USARTx USART Instance - * @retval Value between Min_Data=0x00 and Max_Data=0x00FFFFFF - */ -__STATIC_INLINE uint32_t LL_USART_GetRxTimeout(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->RTOR, USART_RTOR_RTO)); -} - -/** - * @brief Set Block Length value in reception - * @rmtoll RTOR BLEN LL_USART_SetBlockLength - * @param USARTx USART Instance - * @param BlockLength Value between Min_Data=0x00 and Max_Data=0xFF - * @retval None - */ -__STATIC_INLINE void LL_USART_SetBlockLength(USART_TypeDef *USARTx, uint32_t BlockLength) -{ - MODIFY_REG(USARTx->RTOR, USART_RTOR_BLEN, BlockLength << USART_RTOR_BLEN_Pos); -} - -/** - * @brief Get Block Length value in reception - * @rmtoll RTOR BLEN LL_USART_GetBlockLength - * @param USARTx USART Instance - * @retval Value between Min_Data=0x00 and Max_Data=0xFF - */ -__STATIC_INLINE uint32_t LL_USART_GetBlockLength(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->RTOR, USART_RTOR_BLEN) >> USART_RTOR_BLEN_Pos); -} - -/** - * @} - */ - -/** @defgroup USART_LL_EF_Configuration_IRDA Configuration functions related to Irda feature - * @{ - */ - -/** - * @brief Enable IrDA mode - * @note Macro IS_IRDA_INSTANCE(USARTx) can be used to check whether or not - * IrDA feature is supported by the USARTx instance. - * @rmtoll CR3 IREN LL_USART_EnableIrda - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableIrda(USART_TypeDef *USARTx) -{ - SET_BIT(USARTx->CR3, USART_CR3_IREN); -} - -/** - * @brief Disable IrDA mode - * @note Macro IS_IRDA_INSTANCE(USARTx) can be used to check whether or not - * IrDA feature is supported by the USARTx instance. - * @rmtoll CR3 IREN LL_USART_DisableIrda - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableIrda(USART_TypeDef *USARTx) -{ - CLEAR_BIT(USARTx->CR3, USART_CR3_IREN); -} - -/** - * @brief Indicate if IrDA mode is enabled - * @note Macro IS_IRDA_INSTANCE(USARTx) can be used to check whether or not - * IrDA feature is supported by the USARTx instance. - * @rmtoll CR3 IREN LL_USART_IsEnabledIrda - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledIrda(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR3, USART_CR3_IREN) == (USART_CR3_IREN)) ? 1UL : 0UL); -} - -/** - * @brief Configure IrDA Power Mode (Normal or Low Power) - * @note Macro IS_IRDA_INSTANCE(USARTx) can be used to check whether or not - * IrDA feature is supported by the USARTx instance. - * @rmtoll CR3 IRLP LL_USART_SetIrdaPowerMode - * @param USARTx USART Instance - * @param PowerMode This parameter can be one of the following values: - * @arg @ref LL_USART_IRDA_POWER_NORMAL - * @arg @ref LL_USART_IRDA_POWER_LOW - * @retval None - */ -__STATIC_INLINE void LL_USART_SetIrdaPowerMode(USART_TypeDef *USARTx, uint32_t PowerMode) -{ - MODIFY_REG(USARTx->CR3, USART_CR3_IRLP, PowerMode); -} - -/** - * @brief Retrieve IrDA Power Mode configuration (Normal or Low Power) - * @note Macro IS_IRDA_INSTANCE(USARTx) can be used to check whether or not - * IrDA feature is supported by the USARTx instance. - * @rmtoll CR3 IRLP LL_USART_GetIrdaPowerMode - * @param USARTx USART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_USART_IRDA_POWER_NORMAL - * @arg @ref LL_USART_PHASE_2EDGE - */ -__STATIC_INLINE uint32_t LL_USART_GetIrdaPowerMode(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->CR3, USART_CR3_IRLP)); -} - -/** - * @brief Set Irda prescaler value, used for dividing the USART clock source - * to achieve the Irda Low Power frequency (8 bits value) - * @note Macro IS_IRDA_INSTANCE(USARTx) can be used to check whether or not - * IrDA feature is supported by the USARTx instance. - * @rmtoll GTPR PSC LL_USART_SetIrdaPrescaler - * @param USARTx USART Instance - * @param PrescalerValue Value between Min_Data=0x00 and Max_Data=0xFF - * @retval None - */ -__STATIC_INLINE void LL_USART_SetIrdaPrescaler(USART_TypeDef *USARTx, uint32_t PrescalerValue) -{ - MODIFY_REG(USARTx->GTPR, USART_GTPR_PSC, (uint16_t)PrescalerValue); -} - -/** - * @brief Return Irda prescaler value, used for dividing the USART clock source - * to achieve the Irda Low Power frequency (8 bits value) - * @note Macro IS_IRDA_INSTANCE(USARTx) can be used to check whether or not - * IrDA feature is supported by the USARTx instance. - * @rmtoll GTPR PSC LL_USART_GetIrdaPrescaler - * @param USARTx USART Instance - * @retval Irda prescaler value (Value between Min_Data=0x00 and Max_Data=0xFF) - */ -__STATIC_INLINE uint32_t LL_USART_GetIrdaPrescaler(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->GTPR, USART_GTPR_PSC)); -} - -/** - * @} - */ - -/** @defgroup USART_LL_EF_Configuration_Smartcard Configuration functions related to Smartcard feature - * @{ - */ - -/** - * @brief Enable Smartcard NACK transmission - * @note Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not - * Smartcard feature is supported by the USARTx instance. - * @rmtoll CR3 NACK LL_USART_EnableSmartcardNACK - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableSmartcardNACK(USART_TypeDef *USARTx) -{ - SET_BIT(USARTx->CR3, USART_CR3_NACK); -} - -/** - * @brief Disable Smartcard NACK transmission - * @note Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not - * Smartcard feature is supported by the USARTx instance. - * @rmtoll CR3 NACK LL_USART_DisableSmartcardNACK - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableSmartcardNACK(USART_TypeDef *USARTx) -{ - CLEAR_BIT(USARTx->CR3, USART_CR3_NACK); -} - -/** - * @brief Indicate if Smartcard NACK transmission is enabled - * @note Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not - * Smartcard feature is supported by the USARTx instance. - * @rmtoll CR3 NACK LL_USART_IsEnabledSmartcardNACK - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledSmartcardNACK(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR3, USART_CR3_NACK) == (USART_CR3_NACK)) ? 1UL : 0UL); -} - -/** - * @brief Enable Smartcard mode - * @note Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not - * Smartcard feature is supported by the USARTx instance. - * @rmtoll CR3 SCEN LL_USART_EnableSmartcard - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableSmartcard(USART_TypeDef *USARTx) -{ - SET_BIT(USARTx->CR3, USART_CR3_SCEN); -} - -/** - * @brief Disable Smartcard mode - * @note Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not - * Smartcard feature is supported by the USARTx instance. - * @rmtoll CR3 SCEN LL_USART_DisableSmartcard - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableSmartcard(USART_TypeDef *USARTx) -{ - CLEAR_BIT(USARTx->CR3, USART_CR3_SCEN); -} - -/** - * @brief Indicate if Smartcard mode is enabled - * @note Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not - * Smartcard feature is supported by the USARTx instance. - * @rmtoll CR3 SCEN LL_USART_IsEnabledSmartcard - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledSmartcard(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR3, USART_CR3_SCEN) == (USART_CR3_SCEN)) ? 1UL : 0UL); -} - -/** - * @brief Set Smartcard Auto-Retry Count value (SCARCNT[2:0] bits) - * @note Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not - * Smartcard feature is supported by the USARTx instance. - * @note This bit-field specifies the number of retries in transmit and receive, in Smartcard mode. - * In transmission mode, it specifies the number of automatic retransmission retries, before - * generating a transmission error (FE bit set). - * In reception mode, it specifies the number or erroneous reception trials, before generating a - * reception error (RXNE and PE bits set) - * @rmtoll CR3 SCARCNT LL_USART_SetSmartcardAutoRetryCount - * @param USARTx USART Instance - * @param AutoRetryCount Value between Min_Data=0 and Max_Data=7 - * @retval None - */ -__STATIC_INLINE void LL_USART_SetSmartcardAutoRetryCount(USART_TypeDef *USARTx, uint32_t AutoRetryCount) -{ - MODIFY_REG(USARTx->CR3, USART_CR3_SCARCNT, AutoRetryCount << USART_CR3_SCARCNT_Pos); -} - -/** - * @brief Return Smartcard Auto-Retry Count value (SCARCNT[2:0] bits) - * @note Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not - * Smartcard feature is supported by the USARTx instance. - * @rmtoll CR3 SCARCNT LL_USART_GetSmartcardAutoRetryCount - * @param USARTx USART Instance - * @retval Smartcard Auto-Retry Count value (Value between Min_Data=0 and Max_Data=7) - */ -__STATIC_INLINE uint32_t LL_USART_GetSmartcardAutoRetryCount(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->CR3, USART_CR3_SCARCNT) >> USART_CR3_SCARCNT_Pos); -} - -/** - * @brief Set Smartcard prescaler value, used for dividing the USART clock - * source to provide the SMARTCARD Clock (5 bits value) - * @note Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not - * Smartcard feature is supported by the USARTx instance. - * @rmtoll GTPR PSC LL_USART_SetSmartcardPrescaler - * @param USARTx USART Instance - * @param PrescalerValue Value between Min_Data=0 and Max_Data=31 - * @retval None - */ -__STATIC_INLINE void LL_USART_SetSmartcardPrescaler(USART_TypeDef *USARTx, uint32_t PrescalerValue) -{ - MODIFY_REG(USARTx->GTPR, USART_GTPR_PSC, (uint16_t)PrescalerValue); -} - -/** - * @brief Return Smartcard prescaler value, used for dividing the USART clock - * source to provide the SMARTCARD Clock (5 bits value) - * @note Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not - * Smartcard feature is supported by the USARTx instance. - * @rmtoll GTPR PSC LL_USART_GetSmartcardPrescaler - * @param USARTx USART Instance - * @retval Smartcard prescaler value (Value between Min_Data=0 and Max_Data=31) - */ -__STATIC_INLINE uint32_t LL_USART_GetSmartcardPrescaler(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->GTPR, USART_GTPR_PSC)); -} - -/** - * @brief Set Smartcard Guard time value, expressed in nb of baud clocks periods - * (GT[7:0] bits : Guard time value) - * @note Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not - * Smartcard feature is supported by the USARTx instance. - * @rmtoll GTPR GT LL_USART_SetSmartcardGuardTime - * @param USARTx USART Instance - * @param GuardTime Value between Min_Data=0x00 and Max_Data=0xFF - * @retval None - */ -__STATIC_INLINE void LL_USART_SetSmartcardGuardTime(USART_TypeDef *USARTx, uint32_t GuardTime) -{ - MODIFY_REG(USARTx->GTPR, USART_GTPR_GT, (uint16_t)(GuardTime << USART_GTPR_GT_Pos)); -} - -/** - * @brief Return Smartcard Guard time value, expressed in nb of baud clocks periods - * (GT[7:0] bits : Guard time value) - * @note Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not - * Smartcard feature is supported by the USARTx instance. - * @rmtoll GTPR GT LL_USART_GetSmartcardGuardTime - * @param USARTx USART Instance - * @retval Smartcard Guard time value (Value between Min_Data=0x00 and Max_Data=0xFF) - */ -__STATIC_INLINE uint32_t LL_USART_GetSmartcardGuardTime(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->GTPR, USART_GTPR_GT) >> USART_GTPR_GT_Pos); -} - -/** - * @} - */ - -/** @defgroup USART_LL_EF_Configuration_HalfDuplex Configuration functions related to Half Duplex feature - * @{ - */ - -/** - * @brief Enable Single Wire Half-Duplex mode - * @note Macro IS_UART_HALFDUPLEX_INSTANCE(USARTx) can be used to check whether or not - * Half-Duplex mode is supported by the USARTx instance. - * @rmtoll CR3 HDSEL LL_USART_EnableHalfDuplex - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableHalfDuplex(USART_TypeDef *USARTx) -{ - SET_BIT(USARTx->CR3, USART_CR3_HDSEL); -} - -/** - * @brief Disable Single Wire Half-Duplex mode - * @note Macro IS_UART_HALFDUPLEX_INSTANCE(USARTx) can be used to check whether or not - * Half-Duplex mode is supported by the USARTx instance. - * @rmtoll CR3 HDSEL LL_USART_DisableHalfDuplex - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableHalfDuplex(USART_TypeDef *USARTx) -{ - CLEAR_BIT(USARTx->CR3, USART_CR3_HDSEL); -} - -/** - * @brief Indicate if Single Wire Half-Duplex mode is enabled - * @note Macro IS_UART_HALFDUPLEX_INSTANCE(USARTx) can be used to check whether or not - * Half-Duplex mode is supported by the USARTx instance. - * @rmtoll CR3 HDSEL LL_USART_IsEnabledHalfDuplex - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledHalfDuplex(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR3, USART_CR3_HDSEL) == (USART_CR3_HDSEL)) ? 1UL : 0UL); -} - -/** - * @} - */ - -/** @defgroup USART_LL_EF_Configuration_SPI_SLAVE Configuration functions related to SPI Slave feature - * @{ - */ -/** - * @brief Enable SPI Synchronous Slave mode - * @note Macro IS_UART_SPI_SLAVE_INSTANCE(USARTx) can be used to check whether or not - * SPI Slave mode feature is supported by the USARTx instance. - * @rmtoll CR2 SLVEN LL_USART_EnableSPISlave - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableSPISlave(USART_TypeDef *USARTx) -{ - SET_BIT(USARTx->CR2, USART_CR2_SLVEN); -} - -/** - * @brief Disable SPI Synchronous Slave mode - * @note Macro IS_UART_SPI_SLAVE_INSTANCE(USARTx) can be used to check whether or not - * SPI Slave mode feature is supported by the USARTx instance. - * @rmtoll CR2 SLVEN LL_USART_DisableSPISlave - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableSPISlave(USART_TypeDef *USARTx) -{ - CLEAR_BIT(USARTx->CR2, USART_CR2_SLVEN); -} - -/** - * @brief Indicate if SPI Synchronous Slave mode is enabled - * @note Macro IS_UART_SPI_SLAVE_INSTANCE(USARTx) can be used to check whether or not - * SPI Slave mode feature is supported by the USARTx instance. - * @rmtoll CR2 SLVEN LL_USART_IsEnabledSPISlave - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledSPISlave(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR2, USART_CR2_SLVEN) == (USART_CR2_SLVEN)) ? 1UL : 0UL); -} - -/** - * @brief Enable SPI Slave Selection using NSS input pin - * @note Macro IS_UART_SPI_SLAVE_INSTANCE(USARTx) can be used to check whether or not - * SPI Slave mode feature is supported by the USARTx instance. - * @note SPI Slave Selection depends on NSS input pin - * (The slave is selected when NSS is low and deselected when NSS is high). - * @rmtoll CR2 DIS_NSS LL_USART_EnableSPISlaveSelect - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableSPISlaveSelect(USART_TypeDef *USARTx) -{ - CLEAR_BIT(USARTx->CR2, USART_CR2_DIS_NSS); -} - -/** - * @brief Disable SPI Slave Selection using NSS input pin - * @note Macro IS_UART_SPI_SLAVE_INSTANCE(USARTx) can be used to check whether or not - * SPI Slave mode feature is supported by the USARTx instance. - * @note SPI Slave will be always selected and NSS input pin will be ignored. - * @rmtoll CR2 DIS_NSS LL_USART_DisableSPISlaveSelect - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableSPISlaveSelect(USART_TypeDef *USARTx) -{ - SET_BIT(USARTx->CR2, USART_CR2_DIS_NSS); -} - -/** - * @brief Indicate if SPI Slave Selection depends on NSS input pin - * @note Macro IS_UART_SPI_SLAVE_INSTANCE(USARTx) can be used to check whether or not - * SPI Slave mode feature is supported by the USARTx instance. - * @rmtoll CR2 DIS_NSS LL_USART_IsEnabledSPISlaveSelect - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledSPISlaveSelect(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR2, USART_CR2_DIS_NSS) != (USART_CR2_DIS_NSS)) ? 1UL : 0UL); -} - -/** - * @} - */ - -/** @defgroup USART_LL_EF_Configuration_LIN Configuration functions related to LIN feature - * @{ - */ - -/** - * @brief Set LIN Break Detection Length - * @note Macro IS_UART_LIN_INSTANCE(USARTx) can be used to check whether or not - * LIN feature is supported by the USARTx instance. - * @rmtoll CR2 LBDL LL_USART_SetLINBrkDetectionLen - * @param USARTx USART Instance - * @param LINBDLength This parameter can be one of the following values: - * @arg @ref LL_USART_LINBREAK_DETECT_10B - * @arg @ref LL_USART_LINBREAK_DETECT_11B - * @retval None - */ -__STATIC_INLINE void LL_USART_SetLINBrkDetectionLen(USART_TypeDef *USARTx, uint32_t LINBDLength) -{ - MODIFY_REG(USARTx->CR2, USART_CR2_LBDL, LINBDLength); -} - -/** - * @brief Return LIN Break Detection Length - * @note Macro IS_UART_LIN_INSTANCE(USARTx) can be used to check whether or not - * LIN feature is supported by the USARTx instance. - * @rmtoll CR2 LBDL LL_USART_GetLINBrkDetectionLen - * @param USARTx USART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_USART_LINBREAK_DETECT_10B - * @arg @ref LL_USART_LINBREAK_DETECT_11B - */ -__STATIC_INLINE uint32_t LL_USART_GetLINBrkDetectionLen(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->CR2, USART_CR2_LBDL)); -} - -/** - * @brief Enable LIN mode - * @note Macro IS_UART_LIN_INSTANCE(USARTx) can be used to check whether or not - * LIN feature is supported by the USARTx instance. - * @rmtoll CR2 LINEN LL_USART_EnableLIN - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableLIN(USART_TypeDef *USARTx) -{ - SET_BIT(USARTx->CR2, USART_CR2_LINEN); -} - -/** - * @brief Disable LIN mode - * @note Macro IS_UART_LIN_INSTANCE(USARTx) can be used to check whether or not - * LIN feature is supported by the USARTx instance. - * @rmtoll CR2 LINEN LL_USART_DisableLIN - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableLIN(USART_TypeDef *USARTx) -{ - CLEAR_BIT(USARTx->CR2, USART_CR2_LINEN); -} - -/** - * @brief Indicate if LIN mode is enabled - * @note Macro IS_UART_LIN_INSTANCE(USARTx) can be used to check whether or not - * LIN feature is supported by the USARTx instance. - * @rmtoll CR2 LINEN LL_USART_IsEnabledLIN - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledLIN(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR2, USART_CR2_LINEN) == (USART_CR2_LINEN)) ? 1UL : 0UL); -} - -/** - * @} - */ - -/** @defgroup USART_LL_EF_Configuration_DE Configuration functions related to Driver Enable feature - * @{ - */ - -/** - * @brief Set DEDT (Driver Enable De-Assertion Time), Time value expressed on 5 bits ([4:0] bits). - * @note Macro IS_UART_DRIVER_ENABLE_INSTANCE(USARTx) can be used to check whether or not - * Driver Enable feature is supported by the USARTx instance. - * @rmtoll CR1 DEDT LL_USART_SetDEDeassertionTime - * @param USARTx USART Instance - * @param Time Value between Min_Data=0 and Max_Data=31 - * @retval None - */ -__STATIC_INLINE void LL_USART_SetDEDeassertionTime(USART_TypeDef *USARTx, uint32_t Time) -{ - MODIFY_REG(USARTx->CR1, USART_CR1_DEDT, Time << USART_CR1_DEDT_Pos); -} - -/** - * @brief Return DEDT (Driver Enable De-Assertion Time) - * @note Macro IS_UART_DRIVER_ENABLE_INSTANCE(USARTx) can be used to check whether or not - * Driver Enable feature is supported by the USARTx instance. - * @rmtoll CR1 DEDT LL_USART_GetDEDeassertionTime - * @param USARTx USART Instance - * @retval Time value expressed on 5 bits ([4:0] bits) : Value between Min_Data=0 and Max_Data=31 - */ -__STATIC_INLINE uint32_t LL_USART_GetDEDeassertionTime(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->CR1, USART_CR1_DEDT) >> USART_CR1_DEDT_Pos); -} - -/** - * @brief Set DEAT (Driver Enable Assertion Time), Time value expressed on 5 bits ([4:0] bits). - * @note Macro IS_UART_DRIVER_ENABLE_INSTANCE(USARTx) can be used to check whether or not - * Driver Enable feature is supported by the USARTx instance. - * @rmtoll CR1 DEAT LL_USART_SetDEAssertionTime - * @param USARTx USART Instance - * @param Time Value between Min_Data=0 and Max_Data=31 - * @retval None - */ -__STATIC_INLINE void LL_USART_SetDEAssertionTime(USART_TypeDef *USARTx, uint32_t Time) -{ - MODIFY_REG(USARTx->CR1, USART_CR1_DEAT, Time << USART_CR1_DEAT_Pos); -} - -/** - * @brief Return DEAT (Driver Enable Assertion Time) - * @note Macro IS_UART_DRIVER_ENABLE_INSTANCE(USARTx) can be used to check whether or not - * Driver Enable feature is supported by the USARTx instance. - * @rmtoll CR1 DEAT LL_USART_GetDEAssertionTime - * @param USARTx USART Instance - * @retval Time value expressed on 5 bits ([4:0] bits) : Value between Min_Data=0 and Max_Data=31 - */ -__STATIC_INLINE uint32_t LL_USART_GetDEAssertionTime(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->CR1, USART_CR1_DEAT) >> USART_CR1_DEAT_Pos); -} - -/** - * @brief Enable Driver Enable (DE) Mode - * @note Macro IS_UART_DRIVER_ENABLE_INSTANCE(USARTx) can be used to check whether or not - * Driver Enable feature is supported by the USARTx instance. - * @rmtoll CR3 DEM LL_USART_EnableDEMode - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableDEMode(USART_TypeDef *USARTx) -{ - SET_BIT(USARTx->CR3, USART_CR3_DEM); -} - -/** - * @brief Disable Driver Enable (DE) Mode - * @note Macro IS_UART_DRIVER_ENABLE_INSTANCE(USARTx) can be used to check whether or not - * Driver Enable feature is supported by the USARTx instance. - * @rmtoll CR3 DEM LL_USART_DisableDEMode - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableDEMode(USART_TypeDef *USARTx) -{ - CLEAR_BIT(USARTx->CR3, USART_CR3_DEM); -} - -/** - * @brief Indicate if Driver Enable (DE) Mode is enabled - * @note Macro IS_UART_DRIVER_ENABLE_INSTANCE(USARTx) can be used to check whether or not - * Driver Enable feature is supported by the USARTx instance. - * @rmtoll CR3 DEM LL_USART_IsEnabledDEMode - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledDEMode(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR3, USART_CR3_DEM) == (USART_CR3_DEM)) ? 1UL : 0UL); -} - -/** - * @brief Select Driver Enable Polarity - * @note Macro IS_UART_DRIVER_ENABLE_INSTANCE(USARTx) can be used to check whether or not - * Driver Enable feature is supported by the USARTx instance. - * @rmtoll CR3 DEP LL_USART_SetDESignalPolarity - * @param USARTx USART Instance - * @param Polarity This parameter can be one of the following values: - * @arg @ref LL_USART_DE_POLARITY_HIGH - * @arg @ref LL_USART_DE_POLARITY_LOW - * @retval None - */ -__STATIC_INLINE void LL_USART_SetDESignalPolarity(USART_TypeDef *USARTx, uint32_t Polarity) -{ - MODIFY_REG(USARTx->CR3, USART_CR3_DEP, Polarity); -} - -/** - * @brief Return Driver Enable Polarity - * @note Macro IS_UART_DRIVER_ENABLE_INSTANCE(USARTx) can be used to check whether or not - * Driver Enable feature is supported by the USARTx instance. - * @rmtoll CR3 DEP LL_USART_GetDESignalPolarity - * @param USARTx USART Instance - * @retval Returned value can be one of the following values: - * @arg @ref LL_USART_DE_POLARITY_HIGH - * @arg @ref LL_USART_DE_POLARITY_LOW - */ -__STATIC_INLINE uint32_t LL_USART_GetDESignalPolarity(const USART_TypeDef *USARTx) -{ - return (uint32_t)(READ_BIT(USARTx->CR3, USART_CR3_DEP)); -} - -/** - * @} - */ - -/** @defgroup USART_LL_EF_AdvancedConfiguration Advanced Configurations services - * @{ - */ - -/** - * @brief Perform basic configuration of USART for enabling use in Asynchronous Mode (UART) - * @note In UART mode, the following bits must be kept cleared: - * - LINEN bit in the USART_CR2 register, - * - CLKEN bit in the USART_CR2 register, - * - SCEN bit in the USART_CR3 register, - * - IREN bit in the USART_CR3 register, - * - HDSEL bit in the USART_CR3 register. - * @note Call of this function is equivalent to following function call sequence : - * - Clear LINEN in CR2 using @ref LL_USART_DisableLIN() function - * - Clear CLKEN in CR2 using @ref LL_USART_DisableSCLKOutput() function - * - Clear SCEN in CR3 using @ref LL_USART_DisableSmartcard() function - * - Clear IREN in CR3 using @ref LL_USART_DisableIrda() function - * - Clear HDSEL in CR3 using @ref LL_USART_DisableHalfDuplex() function - * @note Other remaining configurations items related to Asynchronous Mode - * (as Baud Rate, Word length, Parity, ...) should be set using - * dedicated functions - * @rmtoll CR2 LINEN LL_USART_ConfigAsyncMode\n - * CR2 CLKEN LL_USART_ConfigAsyncMode\n - * CR3 SCEN LL_USART_ConfigAsyncMode\n - * CR3 IREN LL_USART_ConfigAsyncMode\n - * CR3 HDSEL LL_USART_ConfigAsyncMode - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_ConfigAsyncMode(USART_TypeDef *USARTx) -{ - /* In Asynchronous mode, the following bits must be kept cleared: - - LINEN, CLKEN bits in the USART_CR2 register, - - SCEN, IREN and HDSEL bits in the USART_CR3 register. - */ - CLEAR_BIT(USARTx->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN)); - CLEAR_BIT(USARTx->CR3, (USART_CR3_SCEN | USART_CR3_IREN | USART_CR3_HDSEL)); -} - -/** - * @brief Perform basic configuration of USART for enabling use in Synchronous Mode - * @note In Synchronous mode, the following bits must be kept cleared: - * - LINEN bit in the USART_CR2 register, - * - SCEN bit in the USART_CR3 register, - * - IREN bit in the USART_CR3 register, - * - HDSEL bit in the USART_CR3 register. - * This function also sets the USART in Synchronous mode. - * @note Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not - * Synchronous mode is supported by the USARTx instance. - * @note Call of this function is equivalent to following function call sequence : - * - Clear LINEN in CR2 using @ref LL_USART_DisableLIN() function - * - Clear IREN in CR3 using @ref LL_USART_DisableIrda() function - * - Clear SCEN in CR3 using @ref LL_USART_DisableSmartcard() function - * - Clear HDSEL in CR3 using @ref LL_USART_DisableHalfDuplex() function - * - Set CLKEN in CR2 using @ref LL_USART_EnableSCLKOutput() function - * @note Other remaining configurations items related to Synchronous Mode - * (as Baud Rate, Word length, Parity, Clock Polarity, ...) should be set using - * dedicated functions - * @rmtoll CR2 LINEN LL_USART_ConfigSyncMode\n - * CR2 CLKEN LL_USART_ConfigSyncMode\n - * CR3 SCEN LL_USART_ConfigSyncMode\n - * CR3 IREN LL_USART_ConfigSyncMode\n - * CR3 HDSEL LL_USART_ConfigSyncMode - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_ConfigSyncMode(USART_TypeDef *USARTx) -{ - /* In Synchronous mode, the following bits must be kept cleared: - - LINEN bit in the USART_CR2 register, - - SCEN, IREN and HDSEL bits in the USART_CR3 register. - */ - CLEAR_BIT(USARTx->CR2, (USART_CR2_LINEN)); - CLEAR_BIT(USARTx->CR3, (USART_CR3_SCEN | USART_CR3_IREN | USART_CR3_HDSEL)); - /* set the UART/USART in Synchronous mode */ - SET_BIT(USARTx->CR2, USART_CR2_CLKEN); -} - -/** - * @brief Perform basic configuration of USART for enabling use in LIN Mode - * @note In LIN mode, the following bits must be kept cleared: - * - STOP and CLKEN bits in the USART_CR2 register, - * - SCEN bit in the USART_CR3 register, - * - IREN bit in the USART_CR3 register, - * - HDSEL bit in the USART_CR3 register. - * This function also set the UART/USART in LIN mode. - * @note Macro IS_UART_LIN_INSTANCE(USARTx) can be used to check whether or not - * LIN feature is supported by the USARTx instance. - * @note Call of this function is equivalent to following function call sequence : - * - Clear CLKEN in CR2 using @ref LL_USART_DisableSCLKOutput() function - * - Clear STOP in CR2 using @ref LL_USART_SetStopBitsLength() function - * - Clear SCEN in CR3 using @ref LL_USART_DisableSmartcard() function - * - Clear IREN in CR3 using @ref LL_USART_DisableIrda() function - * - Clear HDSEL in CR3 using @ref LL_USART_DisableHalfDuplex() function - * - Set LINEN in CR2 using @ref LL_USART_EnableLIN() function - * @note Other remaining configurations items related to LIN Mode - * (as Baud Rate, Word length, LIN Break Detection Length, ...) should be set using - * dedicated functions - * @rmtoll CR2 CLKEN LL_USART_ConfigLINMode\n - * CR2 STOP LL_USART_ConfigLINMode\n - * CR2 LINEN LL_USART_ConfigLINMode\n - * CR3 IREN LL_USART_ConfigLINMode\n - * CR3 SCEN LL_USART_ConfigLINMode\n - * CR3 HDSEL LL_USART_ConfigLINMode - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_ConfigLINMode(USART_TypeDef *USARTx) -{ - /* In LIN mode, the following bits must be kept cleared: - - STOP and CLKEN bits in the USART_CR2 register, - - IREN, SCEN and HDSEL bits in the USART_CR3 register. - */ - CLEAR_BIT(USARTx->CR2, (USART_CR2_CLKEN | USART_CR2_STOP)); - CLEAR_BIT(USARTx->CR3, (USART_CR3_IREN | USART_CR3_SCEN | USART_CR3_HDSEL)); - /* Set the UART/USART in LIN mode */ - SET_BIT(USARTx->CR2, USART_CR2_LINEN); -} - -/** - * @brief Perform basic configuration of USART for enabling use in Half Duplex Mode - * @note In Half Duplex mode, the following bits must be kept cleared: - * - LINEN bit in the USART_CR2 register, - * - CLKEN bit in the USART_CR2 register, - * - SCEN bit in the USART_CR3 register, - * - IREN bit in the USART_CR3 register, - * This function also sets the UART/USART in Half Duplex mode. - * @note Macro IS_UART_HALFDUPLEX_INSTANCE(USARTx) can be used to check whether or not - * Half-Duplex mode is supported by the USARTx instance. - * @note Call of this function is equivalent to following function call sequence : - * - Clear LINEN in CR2 using @ref LL_USART_DisableLIN() function - * - Clear CLKEN in CR2 using @ref LL_USART_DisableSCLKOutput() function - * - Clear SCEN in CR3 using @ref LL_USART_DisableSmartcard() function - * - Clear IREN in CR3 using @ref LL_USART_DisableIrda() function - * - Set HDSEL in CR3 using @ref LL_USART_EnableHalfDuplex() function - * @note Other remaining configurations items related to Half Duplex Mode - * (as Baud Rate, Word length, Parity, ...) should be set using - * dedicated functions - * @rmtoll CR2 LINEN LL_USART_ConfigHalfDuplexMode\n - * CR2 CLKEN LL_USART_ConfigHalfDuplexMode\n - * CR3 HDSEL LL_USART_ConfigHalfDuplexMode\n - * CR3 SCEN LL_USART_ConfigHalfDuplexMode\n - * CR3 IREN LL_USART_ConfigHalfDuplexMode - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_ConfigHalfDuplexMode(USART_TypeDef *USARTx) -{ - /* In Half Duplex mode, the following bits must be kept cleared: - - LINEN and CLKEN bits in the USART_CR2 register, - - SCEN and IREN bits in the USART_CR3 register. - */ - CLEAR_BIT(USARTx->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN)); - CLEAR_BIT(USARTx->CR3, (USART_CR3_SCEN | USART_CR3_IREN)); - /* set the UART/USART in Half Duplex mode */ - SET_BIT(USARTx->CR3, USART_CR3_HDSEL); -} - -/** - * @brief Perform basic configuration of USART for enabling use in Smartcard Mode - * @note In Smartcard mode, the following bits must be kept cleared: - * - LINEN bit in the USART_CR2 register, - * - IREN bit in the USART_CR3 register, - * - HDSEL bit in the USART_CR3 register. - * This function also configures Stop bits to 1.5 bits and - * sets the USART in Smartcard mode (SCEN bit). - * Clock Output is also enabled (CLKEN). - * @note Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not - * Smartcard feature is supported by the USARTx instance. - * @note Call of this function is equivalent to following function call sequence : - * - Clear LINEN in CR2 using @ref LL_USART_DisableLIN() function - * - Clear IREN in CR3 using @ref LL_USART_DisableIrda() function - * - Clear HDSEL in CR3 using @ref LL_USART_DisableHalfDuplex() function - * - Configure STOP in CR2 using @ref LL_USART_SetStopBitsLength() function - * - Set CLKEN in CR2 using @ref LL_USART_EnableSCLKOutput() function - * - Set SCEN in CR3 using @ref LL_USART_EnableSmartcard() function - * @note Other remaining configurations items related to Smartcard Mode - * (as Baud Rate, Word length, Parity, ...) should be set using - * dedicated functions - * @rmtoll CR2 LINEN LL_USART_ConfigSmartcardMode\n - * CR2 STOP LL_USART_ConfigSmartcardMode\n - * CR2 CLKEN LL_USART_ConfigSmartcardMode\n - * CR3 HDSEL LL_USART_ConfigSmartcardMode\n - * CR3 SCEN LL_USART_ConfigSmartcardMode - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_ConfigSmartcardMode(USART_TypeDef *USARTx) -{ - /* In Smartcard mode, the following bits must be kept cleared: - - LINEN bit in the USART_CR2 register, - - IREN and HDSEL bits in the USART_CR3 register. - */ - CLEAR_BIT(USARTx->CR2, (USART_CR2_LINEN)); - CLEAR_BIT(USARTx->CR3, (USART_CR3_IREN | USART_CR3_HDSEL)); - /* Configure Stop bits to 1.5 bits */ - /* Synchronous mode is activated by default */ - SET_BIT(USARTx->CR2, (USART_CR2_STOP_0 | USART_CR2_STOP_1 | USART_CR2_CLKEN)); - /* set the UART/USART in Smartcard mode */ - SET_BIT(USARTx->CR3, USART_CR3_SCEN); -} - -/** - * @brief Perform basic configuration of USART for enabling use in Irda Mode - * @note In IRDA mode, the following bits must be kept cleared: - * - LINEN bit in the USART_CR2 register, - * - STOP and CLKEN bits in the USART_CR2 register, - * - SCEN bit in the USART_CR3 register, - * - HDSEL bit in the USART_CR3 register. - * This function also sets the UART/USART in IRDA mode (IREN bit). - * @note Macro IS_IRDA_INSTANCE(USARTx) can be used to check whether or not - * IrDA feature is supported by the USARTx instance. - * @note Call of this function is equivalent to following function call sequence : - * - Clear LINEN in CR2 using @ref LL_USART_DisableLIN() function - * - Clear CLKEN in CR2 using @ref LL_USART_DisableSCLKOutput() function - * - Clear SCEN in CR3 using @ref LL_USART_DisableSmartcard() function - * - Clear HDSEL in CR3 using @ref LL_USART_DisableHalfDuplex() function - * - Configure STOP in CR2 using @ref LL_USART_SetStopBitsLength() function - * - Set IREN in CR3 using @ref LL_USART_EnableIrda() function - * @note Other remaining configurations items related to Irda Mode - * (as Baud Rate, Word length, Power mode, ...) should be set using - * dedicated functions - * @rmtoll CR2 LINEN LL_USART_ConfigIrdaMode\n - * CR2 CLKEN LL_USART_ConfigIrdaMode\n - * CR2 STOP LL_USART_ConfigIrdaMode\n - * CR3 SCEN LL_USART_ConfigIrdaMode\n - * CR3 HDSEL LL_USART_ConfigIrdaMode\n - * CR3 IREN LL_USART_ConfigIrdaMode - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_ConfigIrdaMode(USART_TypeDef *USARTx) -{ - /* In IRDA mode, the following bits must be kept cleared: - - LINEN, STOP and CLKEN bits in the USART_CR2 register, - - SCEN and HDSEL bits in the USART_CR3 register. - */ - CLEAR_BIT(USARTx->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN | USART_CR2_STOP)); - CLEAR_BIT(USARTx->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL)); - /* set the UART/USART in IRDA mode */ - SET_BIT(USARTx->CR3, USART_CR3_IREN); -} - -/** - * @brief Perform basic configuration of USART for enabling use in Multi processor Mode - * (several USARTs connected in a network, one of the USARTs can be the master, - * its TX output connected to the RX inputs of the other slaves USARTs). - * @note In MultiProcessor mode, the following bits must be kept cleared: - * - LINEN bit in the USART_CR2 register, - * - CLKEN bit in the USART_CR2 register, - * - SCEN bit in the USART_CR3 register, - * - IREN bit in the USART_CR3 register, - * - HDSEL bit in the USART_CR3 register. - * @note Call of this function is equivalent to following function call sequence : - * - Clear LINEN in CR2 using @ref LL_USART_DisableLIN() function - * - Clear CLKEN in CR2 using @ref LL_USART_DisableSCLKOutput() function - * - Clear SCEN in CR3 using @ref LL_USART_DisableSmartcard() function - * - Clear IREN in CR3 using @ref LL_USART_DisableIrda() function - * - Clear HDSEL in CR3 using @ref LL_USART_DisableHalfDuplex() function - * @note Other remaining configurations items related to Multi processor Mode - * (as Baud Rate, Wake Up Method, Node address, ...) should be set using - * dedicated functions - * @rmtoll CR2 LINEN LL_USART_ConfigMultiProcessMode\n - * CR2 CLKEN LL_USART_ConfigMultiProcessMode\n - * CR3 SCEN LL_USART_ConfigMultiProcessMode\n - * CR3 HDSEL LL_USART_ConfigMultiProcessMode\n - * CR3 IREN LL_USART_ConfigMultiProcessMode - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_ConfigMultiProcessMode(USART_TypeDef *USARTx) -{ - /* In Multi Processor mode, the following bits must be kept cleared: - - LINEN and CLKEN bits in the USART_CR2 register, - - IREN, SCEN and HDSEL bits in the USART_CR3 register. - */ - CLEAR_BIT(USARTx->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN)); - CLEAR_BIT(USARTx->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN)); -} - -/** - * @} - */ - -/** @defgroup USART_LL_EF_FLAG_Management FLAG_Management - * @{ - */ - -/** - * @brief Check if the USART Parity Error Flag is set or not - * @rmtoll ISR PE LL_USART_IsActiveFlag_PE - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_PE(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->ISR, USART_ISR_PE) == (USART_ISR_PE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART Framing Error Flag is set or not - * @rmtoll ISR FE LL_USART_IsActiveFlag_FE - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_FE(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->ISR, USART_ISR_FE) == (USART_ISR_FE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART Noise error detected Flag is set or not - * @rmtoll ISR NE LL_USART_IsActiveFlag_NE - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_NE(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->ISR, USART_ISR_NE) == (USART_ISR_NE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART OverRun Error Flag is set or not - * @rmtoll ISR ORE LL_USART_IsActiveFlag_ORE - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_ORE(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->ISR, USART_ISR_ORE) == (USART_ISR_ORE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART IDLE line detected Flag is set or not - * @rmtoll ISR IDLE LL_USART_IsActiveFlag_IDLE - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_IDLE(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->ISR, USART_ISR_IDLE) == (USART_ISR_IDLE)) ? 1UL : 0UL); -} - -#define LL_USART_IsActiveFlag_RXNE LL_USART_IsActiveFlag_RXNE_RXFNE /* Redefinition for legacy purpose */ - -/** - * @brief Check if the USART Read Data Register or USART RX FIFO Not Empty Flag is set or not - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll ISR RXNE_RXFNE LL_USART_IsActiveFlag_RXNE_RXFNE - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_RXNE_RXFNE(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->ISR, USART_ISR_RXNE_RXFNE) == (USART_ISR_RXNE_RXFNE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART Transmission Complete Flag is set or not - * @rmtoll ISR TC LL_USART_IsActiveFlag_TC - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_TC(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->ISR, USART_ISR_TC) == (USART_ISR_TC)) ? 1UL : 0UL); -} - -#define LL_USART_IsActiveFlag_TXE LL_USART_IsActiveFlag_TXE_TXFNF /* Redefinition for legacy purpose */ - -/** - * @brief Check if the USART Transmit Data Register Empty or USART TX FIFO Not Full Flag is set or not - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll ISR TXE_TXFNF LL_USART_IsActiveFlag_TXE_TXFNF - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_TXE_TXFNF(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->ISR, USART_ISR_TXE_TXFNF) == (USART_ISR_TXE_TXFNF)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART LIN Break Detection Flag is set or not - * @note Macro IS_UART_LIN_INSTANCE(USARTx) can be used to check whether or not - * LIN feature is supported by the USARTx instance. - * @rmtoll ISR LBDF LL_USART_IsActiveFlag_LBD - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_LBD(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->ISR, USART_ISR_LBDF) == (USART_ISR_LBDF)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART CTS interrupt Flag is set or not - * @note Macro IS_UART_HWFLOW_INSTANCE(USARTx) can be used to check whether or not - * Hardware Flow control feature is supported by the USARTx instance. - * @rmtoll ISR CTSIF LL_USART_IsActiveFlag_nCTS - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_nCTS(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->ISR, USART_ISR_CTSIF) == (USART_ISR_CTSIF)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART CTS Flag is set or not - * @note Macro IS_UART_HWFLOW_INSTANCE(USARTx) can be used to check whether or not - * Hardware Flow control feature is supported by the USARTx instance. - * @rmtoll ISR CTS LL_USART_IsActiveFlag_CTS - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_CTS(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->ISR, USART_ISR_CTS) == (USART_ISR_CTS)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART Receiver Time Out Flag is set or not - * @rmtoll ISR RTOF LL_USART_IsActiveFlag_RTO - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_RTO(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->ISR, USART_ISR_RTOF) == (USART_ISR_RTOF)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART End Of Block Flag is set or not - * @note Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not - * Smartcard feature is supported by the USARTx instance. - * @rmtoll ISR EOBF LL_USART_IsActiveFlag_EOB - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_EOB(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->ISR, USART_ISR_EOBF) == (USART_ISR_EOBF)) ? 1UL : 0UL); -} - -/** - * @brief Check if the SPI Slave Underrun error flag is set or not - * @note Macro IS_UART_SPI_SLAVE_INSTANCE(USARTx) can be used to check whether or not - * SPI Slave mode feature is supported by the USARTx instance. - * @rmtoll ISR UDR LL_USART_IsActiveFlag_UDR - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_UDR(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->ISR, USART_ISR_UDR) == (USART_ISR_UDR)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART Auto-Baud Rate Error Flag is set or not - * @note Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(USARTx) can be used to check whether or not - * Auto Baud Rate detection feature is supported by the USARTx instance. - * @rmtoll ISR ABRE LL_USART_IsActiveFlag_ABRE - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_ABRE(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->ISR, USART_ISR_ABRE) == (USART_ISR_ABRE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART Auto-Baud Rate Flag is set or not - * @note Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(USARTx) can be used to check whether or not - * Auto Baud Rate detection feature is supported by the USARTx instance. - * @rmtoll ISR ABRF LL_USART_IsActiveFlag_ABR - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_ABR(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->ISR, USART_ISR_ABRF) == (USART_ISR_ABRF)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART Busy Flag is set or not - * @rmtoll ISR BUSY LL_USART_IsActiveFlag_BUSY - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_BUSY(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->ISR, USART_ISR_BUSY) == (USART_ISR_BUSY)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART Character Match Flag is set or not - * @rmtoll ISR CMF LL_USART_IsActiveFlag_CM - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_CM(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->ISR, USART_ISR_CMF) == (USART_ISR_CMF)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART Send Break Flag is set or not - * @rmtoll ISR SBKF LL_USART_IsActiveFlag_SBK - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_SBK(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->ISR, USART_ISR_SBKF) == (USART_ISR_SBKF)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART Receive Wake Up from mute mode Flag is set or not - * @rmtoll ISR RWU LL_USART_IsActiveFlag_RWU - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_RWU(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->ISR, USART_ISR_RWU) == (USART_ISR_RWU)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART Wake Up from stop mode Flag is set or not - * @note Macro IS_UART_WAKEUP_FROMSTOP_INSTANCE(USARTx) can be used to check whether or not - * Wake-up from Stop mode feature is supported by the USARTx instance. - * @rmtoll ISR WUF LL_USART_IsActiveFlag_WKUP - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_WKUP(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->ISR, USART_ISR_WUF) == (USART_ISR_WUF)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART Transmit Enable Acknowledge Flag is set or not - * @rmtoll ISR TEACK LL_USART_IsActiveFlag_TEACK - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_TEACK(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->ISR, USART_ISR_TEACK) == (USART_ISR_TEACK)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART Receive Enable Acknowledge Flag is set or not - * @rmtoll ISR REACK LL_USART_IsActiveFlag_REACK - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_REACK(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->ISR, USART_ISR_REACK) == (USART_ISR_REACK)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART TX FIFO Empty Flag is set or not - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll ISR TXFE LL_USART_IsActiveFlag_TXFE - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_TXFE(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->ISR, USART_ISR_TXFE) == (USART_ISR_TXFE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART RX FIFO Full Flag is set or not - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll ISR RXFF LL_USART_IsActiveFlag_RXFF - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_RXFF(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->ISR, USART_ISR_RXFF) == (USART_ISR_RXFF)) ? 1UL : 0UL); -} - -/** - * @brief Check if the Smartcard Transmission Complete Before Guard Time Flag is set or not - * @rmtoll ISR TCBGT LL_USART_IsActiveFlag_TCBGT - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_TCBGT(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->ISR, USART_ISR_TCBGT) == (USART_ISR_TCBGT)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART TX FIFO Threshold Flag is set or not - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll ISR TXFT LL_USART_IsActiveFlag_TXFT - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_TXFT(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->ISR, USART_ISR_TXFT) == (USART_ISR_TXFT)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART RX FIFO Threshold Flag is set or not - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll ISR RXFT LL_USART_IsActiveFlag_RXFT - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsActiveFlag_RXFT(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->ISR, USART_ISR_RXFT) == (USART_ISR_RXFT)) ? 1UL : 0UL); -} - -/** - * @brief Clear Parity Error Flag - * @rmtoll ICR PECF LL_USART_ClearFlag_PE - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_ClearFlag_PE(USART_TypeDef *USARTx) -{ - WRITE_REG(USARTx->ICR, USART_ICR_PECF); -} - -/** - * @brief Clear Framing Error Flag - * @rmtoll ICR FECF LL_USART_ClearFlag_FE - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_ClearFlag_FE(USART_TypeDef *USARTx) -{ - WRITE_REG(USARTx->ICR, USART_ICR_FECF); -} - -/** - * @brief Clear Noise Error detected Flag - * @rmtoll ICR NECF LL_USART_ClearFlag_NE - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_ClearFlag_NE(USART_TypeDef *USARTx) -{ - WRITE_REG(USARTx->ICR, USART_ICR_NECF); -} - -/** - * @brief Clear OverRun Error Flag - * @rmtoll ICR ORECF LL_USART_ClearFlag_ORE - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_ClearFlag_ORE(USART_TypeDef *USARTx) -{ - WRITE_REG(USARTx->ICR, USART_ICR_ORECF); -} - -/** - * @brief Clear IDLE line detected Flag - * @rmtoll ICR IDLECF LL_USART_ClearFlag_IDLE - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_ClearFlag_IDLE(USART_TypeDef *USARTx) -{ - WRITE_REG(USARTx->ICR, USART_ICR_IDLECF); -} - -/** - * @brief Clear TX FIFO Empty Flag - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll ICR TXFECF LL_USART_ClearFlag_TXFE - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_ClearFlag_TXFE(USART_TypeDef *USARTx) -{ - WRITE_REG(USARTx->ICR, USART_ICR_TXFECF); -} - -/** - * @brief Clear Transmission Complete Flag - * @rmtoll ICR TCCF LL_USART_ClearFlag_TC - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_ClearFlag_TC(USART_TypeDef *USARTx) -{ - WRITE_REG(USARTx->ICR, USART_ICR_TCCF); -} - -/** - * @brief Clear Smartcard Transmission Complete Before Guard Time Flag - * @rmtoll ICR TCBGTCF LL_USART_ClearFlag_TCBGT - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_ClearFlag_TCBGT(USART_TypeDef *USARTx) -{ - WRITE_REG(USARTx->ICR, USART_ICR_TCBGTCF); -} - -/** - * @brief Clear LIN Break Detection Flag - * @note Macro IS_UART_LIN_INSTANCE(USARTx) can be used to check whether or not - * LIN feature is supported by the USARTx instance. - * @rmtoll ICR LBDCF LL_USART_ClearFlag_LBD - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_ClearFlag_LBD(USART_TypeDef *USARTx) -{ - WRITE_REG(USARTx->ICR, USART_ICR_LBDCF); -} - -/** - * @brief Clear CTS Interrupt Flag - * @note Macro IS_UART_HWFLOW_INSTANCE(USARTx) can be used to check whether or not - * Hardware Flow control feature is supported by the USARTx instance. - * @rmtoll ICR CTSCF LL_USART_ClearFlag_nCTS - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_ClearFlag_nCTS(USART_TypeDef *USARTx) -{ - WRITE_REG(USARTx->ICR, USART_ICR_CTSCF); -} - -/** - * @brief Clear Receiver Time Out Flag - * @rmtoll ICR RTOCF LL_USART_ClearFlag_RTO - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_ClearFlag_RTO(USART_TypeDef *USARTx) -{ - WRITE_REG(USARTx->ICR, USART_ICR_RTOCF); -} - -/** - * @brief Clear End Of Block Flag - * @note Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not - * Smartcard feature is supported by the USARTx instance. - * @rmtoll ICR EOBCF LL_USART_ClearFlag_EOB - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_ClearFlag_EOB(USART_TypeDef *USARTx) -{ - WRITE_REG(USARTx->ICR, USART_ICR_EOBCF); -} - -/** - * @brief Clear SPI Slave Underrun Flag - * @note Macro IS_UART_SPI_SLAVE_INSTANCE(USARTx) can be used to check whether or not - * SPI Slave mode feature is supported by the USARTx instance. - * @rmtoll ICR UDRCF LL_USART_ClearFlag_UDR - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_ClearFlag_UDR(USART_TypeDef *USARTx) -{ - WRITE_REG(USARTx->ICR, USART_ICR_UDRCF); -} - -/** - * @brief Clear Character Match Flag - * @rmtoll ICR CMCF LL_USART_ClearFlag_CM - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_ClearFlag_CM(USART_TypeDef *USARTx) -{ - WRITE_REG(USARTx->ICR, USART_ICR_CMCF); -} - -/** - * @brief Clear Wake Up from stop mode Flag - * @note Macro IS_UART_WAKEUP_FROMSTOP_INSTANCE(USARTx) can be used to check whether or not - * Wake-up from Stop mode feature is supported by the USARTx instance. - * @rmtoll ICR WUCF LL_USART_ClearFlag_WKUP - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_ClearFlag_WKUP(USART_TypeDef *USARTx) -{ - WRITE_REG(USARTx->ICR, USART_ICR_WUCF); -} - -/** - * @} - */ - -/** @defgroup USART_LL_EF_IT_Management IT_Management - * @{ - */ - -/** - * @brief Enable IDLE Interrupt - * @rmtoll CR1 IDLEIE LL_USART_EnableIT_IDLE - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableIT_IDLE(USART_TypeDef *USARTx) -{ - ATOMIC_SET_BIT(USARTx->CR1, USART_CR1_IDLEIE); -} - -#define LL_USART_EnableIT_RXNE LL_USART_EnableIT_RXNE_RXFNE /* Redefinition for legacy purpose */ - -/** - * @brief Enable RX Not Empty and RX FIFO Not Empty Interrupt - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll CR1 RXNEIE_RXFNEIE LL_USART_EnableIT_RXNE_RXFNE - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableIT_RXNE_RXFNE(USART_TypeDef *USARTx) -{ - ATOMIC_SET_BIT(USARTx->CR1, USART_CR1_RXNEIE_RXFNEIE); -} - -/** - * @brief Enable Transmission Complete Interrupt - * @rmtoll CR1 TCIE LL_USART_EnableIT_TC - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableIT_TC(USART_TypeDef *USARTx) -{ - ATOMIC_SET_BIT(USARTx->CR1, USART_CR1_TCIE); -} - -#define LL_USART_EnableIT_TXE LL_USART_EnableIT_TXE_TXFNF /* Redefinition for legacy purpose */ - -/** - * @brief Enable TX Empty and TX FIFO Not Full Interrupt - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll CR1 TXEIE_TXFNFIE LL_USART_EnableIT_TXE_TXFNF - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableIT_TXE_TXFNF(USART_TypeDef *USARTx) -{ - ATOMIC_SET_BIT(USARTx->CR1, USART_CR1_TXEIE_TXFNFIE); -} - -/** - * @brief Enable Parity Error Interrupt - * @rmtoll CR1 PEIE LL_USART_EnableIT_PE - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableIT_PE(USART_TypeDef *USARTx) -{ - ATOMIC_SET_BIT(USARTx->CR1, USART_CR1_PEIE); -} - -/** - * @brief Enable Character Match Interrupt - * @rmtoll CR1 CMIE LL_USART_EnableIT_CM - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableIT_CM(USART_TypeDef *USARTx) -{ - ATOMIC_SET_BIT(USARTx->CR1, USART_CR1_CMIE); -} - -/** - * @brief Enable Receiver Timeout Interrupt - * @rmtoll CR1 RTOIE LL_USART_EnableIT_RTO - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableIT_RTO(USART_TypeDef *USARTx) -{ - ATOMIC_SET_BIT(USARTx->CR1, USART_CR1_RTOIE); -} - -/** - * @brief Enable End Of Block Interrupt - * @note Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not - * Smartcard feature is supported by the USARTx instance. - * @rmtoll CR1 EOBIE LL_USART_EnableIT_EOB - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableIT_EOB(USART_TypeDef *USARTx) -{ - ATOMIC_SET_BIT(USARTx->CR1, USART_CR1_EOBIE); -} - -/** - * @brief Enable TX FIFO Empty Interrupt - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll CR1 TXFEIE LL_USART_EnableIT_TXFE - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableIT_TXFE(USART_TypeDef *USARTx) -{ - ATOMIC_SET_BIT(USARTx->CR1, USART_CR1_TXFEIE); -} - -/** - * @brief Enable RX FIFO Full Interrupt - * @rmtoll CR1 RXFFIE LL_USART_EnableIT_RXFF - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableIT_RXFF(USART_TypeDef *USARTx) -{ - ATOMIC_SET_BIT(USARTx->CR1, USART_CR1_RXFFIE); -} - -/** - * @brief Enable LIN Break Detection Interrupt - * @note Macro IS_UART_LIN_INSTANCE(USARTx) can be used to check whether or not - * LIN feature is supported by the USARTx instance. - * @rmtoll CR2 LBDIE LL_USART_EnableIT_LBD - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableIT_LBD(USART_TypeDef *USARTx) -{ - SET_BIT(USARTx->CR2, USART_CR2_LBDIE); -} - -/** - * @brief Enable Error Interrupt - * @note When set, Error Interrupt Enable Bit is enabling interrupt generation in case of a framing - * error, overrun error or noise flag (FE=1 or ORE=1 or NF=1 in the USARTx_ISR register). - * 0: Interrupt is inhibited - * 1: An interrupt is generated when FE=1 or ORE=1 or NF=1 in the USARTx_ISR register. - * @rmtoll CR3 EIE LL_USART_EnableIT_ERROR - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableIT_ERROR(USART_TypeDef *USARTx) -{ - ATOMIC_SET_BIT(USARTx->CR3, USART_CR3_EIE); -} - -/** - * @brief Enable CTS Interrupt - * @note Macro IS_UART_HWFLOW_INSTANCE(USARTx) can be used to check whether or not - * Hardware Flow control feature is supported by the USARTx instance. - * @rmtoll CR3 CTSIE LL_USART_EnableIT_CTS - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableIT_CTS(USART_TypeDef *USARTx) -{ - ATOMIC_SET_BIT(USARTx->CR3, USART_CR3_CTSIE); -} - -/** - * @brief Enable Wake Up from Stop Mode Interrupt - * @note Macro IS_UART_WAKEUP_FROMSTOP_INSTANCE(USARTx) can be used to check whether or not - * Wake-up from Stop mode feature is supported by the USARTx instance. - * @rmtoll CR3 WUFIE LL_USART_EnableIT_WKUP - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableIT_WKUP(USART_TypeDef *USARTx) -{ - ATOMIC_SET_BIT(USARTx->CR3, USART_CR3_WUFIE); -} - -/** - * @brief Enable TX FIFO Threshold Interrupt - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll CR3 TXFTIE LL_USART_EnableIT_TXFT - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableIT_TXFT(USART_TypeDef *USARTx) -{ - ATOMIC_SET_BIT(USARTx->CR3, USART_CR3_TXFTIE); -} - -/** - * @brief Enable Smartcard Transmission Complete Before Guard Time Interrupt - * @note Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not - * Smartcard feature is supported by the USARTx instance. - * @rmtoll CR3 TCBGTIE LL_USART_EnableIT_TCBGT - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableIT_TCBGT(USART_TypeDef *USARTx) -{ - ATOMIC_SET_BIT(USARTx->CR3, USART_CR3_TCBGTIE); -} - -/** - * @brief Enable RX FIFO Threshold Interrupt - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll CR3 RXFTIE LL_USART_EnableIT_RXFT - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableIT_RXFT(USART_TypeDef *USARTx) -{ - ATOMIC_SET_BIT(USARTx->CR3, USART_CR3_RXFTIE); -} - -/** - * @brief Disable IDLE Interrupt - * @rmtoll CR1 IDLEIE LL_USART_DisableIT_IDLE - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableIT_IDLE(USART_TypeDef *USARTx) -{ - ATOMIC_CLEAR_BIT(USARTx->CR1, USART_CR1_IDLEIE); -} - -#define LL_USART_DisableIT_RXNE LL_USART_DisableIT_RXNE_RXFNE /* Redefinition for legacy purpose */ - -/** - * @brief Disable RX Not Empty and RX FIFO Not Empty Interrupt - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll CR1 RXNEIE_RXFNEIE LL_USART_DisableIT_RXNE_RXFNE - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableIT_RXNE_RXFNE(USART_TypeDef *USARTx) -{ - ATOMIC_CLEAR_BIT(USARTx->CR1, USART_CR1_RXNEIE_RXFNEIE); -} - -/** - * @brief Disable Transmission Complete Interrupt - * @rmtoll CR1 TCIE LL_USART_DisableIT_TC - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableIT_TC(USART_TypeDef *USARTx) -{ - ATOMIC_CLEAR_BIT(USARTx->CR1, USART_CR1_TCIE); -} - -#define LL_USART_DisableIT_TXE LL_USART_DisableIT_TXE_TXFNF /* Redefinition for legacy purpose */ - -/** - * @brief Disable TX Empty and TX FIFO Not Full Interrupt - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll CR1 TXEIE_TXFNFIE LL_USART_DisableIT_TXE_TXFNF - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableIT_TXE_TXFNF(USART_TypeDef *USARTx) -{ - ATOMIC_CLEAR_BIT(USARTx->CR1, USART_CR1_TXEIE_TXFNFIE); -} - -/** - * @brief Disable Parity Error Interrupt - * @rmtoll CR1 PEIE LL_USART_DisableIT_PE - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableIT_PE(USART_TypeDef *USARTx) -{ - ATOMIC_CLEAR_BIT(USARTx->CR1, USART_CR1_PEIE); -} - -/** - * @brief Disable Character Match Interrupt - * @rmtoll CR1 CMIE LL_USART_DisableIT_CM - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableIT_CM(USART_TypeDef *USARTx) -{ - ATOMIC_CLEAR_BIT(USARTx->CR1, USART_CR1_CMIE); -} - -/** - * @brief Disable Receiver Timeout Interrupt - * @rmtoll CR1 RTOIE LL_USART_DisableIT_RTO - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableIT_RTO(USART_TypeDef *USARTx) -{ - ATOMIC_CLEAR_BIT(USARTx->CR1, USART_CR1_RTOIE); -} - -/** - * @brief Disable End Of Block Interrupt - * @note Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not - * Smartcard feature is supported by the USARTx instance. - * @rmtoll CR1 EOBIE LL_USART_DisableIT_EOB - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableIT_EOB(USART_TypeDef *USARTx) -{ - ATOMIC_CLEAR_BIT(USARTx->CR1, USART_CR1_EOBIE); -} - -/** - * @brief Disable TX FIFO Empty Interrupt - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll CR1 TXFEIE LL_USART_DisableIT_TXFE - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableIT_TXFE(USART_TypeDef *USARTx) -{ - ATOMIC_CLEAR_BIT(USARTx->CR1, USART_CR1_TXFEIE); -} - -/** - * @brief Disable RX FIFO Full Interrupt - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll CR1 RXFFIE LL_USART_DisableIT_RXFF - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableIT_RXFF(USART_TypeDef *USARTx) -{ - ATOMIC_CLEAR_BIT(USARTx->CR1, USART_CR1_RXFFIE); -} - -/** - * @brief Disable LIN Break Detection Interrupt - * @note Macro IS_UART_LIN_INSTANCE(USARTx) can be used to check whether or not - * LIN feature is supported by the USARTx instance. - * @rmtoll CR2 LBDIE LL_USART_DisableIT_LBD - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableIT_LBD(USART_TypeDef *USARTx) -{ - CLEAR_BIT(USARTx->CR2, USART_CR2_LBDIE); -} - -/** - * @brief Disable Error Interrupt - * @note When set, Error Interrupt Enable Bit is enabling interrupt generation in case of a framing - * error, overrun error or noise flag (FE=1 or ORE=1 or NF=1 in the USARTx_ISR register). - * 0: Interrupt is inhibited - * 1: An interrupt is generated when FE=1 or ORE=1 or NF=1 in the USARTx_ISR register. - * @rmtoll CR3 EIE LL_USART_DisableIT_ERROR - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableIT_ERROR(USART_TypeDef *USARTx) -{ - ATOMIC_CLEAR_BIT(USARTx->CR3, USART_CR3_EIE); -} - -/** - * @brief Disable CTS Interrupt - * @note Macro IS_UART_HWFLOW_INSTANCE(USARTx) can be used to check whether or not - * Hardware Flow control feature is supported by the USARTx instance. - * @rmtoll CR3 CTSIE LL_USART_DisableIT_CTS - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableIT_CTS(USART_TypeDef *USARTx) -{ - ATOMIC_CLEAR_BIT(USARTx->CR3, USART_CR3_CTSIE); -} - -/** - * @brief Disable Wake Up from Stop Mode Interrupt - * @note Macro IS_UART_WAKEUP_FROMSTOP_INSTANCE(USARTx) can be used to check whether or not - * Wake-up from Stop mode feature is supported by the USARTx instance. - * @rmtoll CR3 WUFIE LL_USART_DisableIT_WKUP - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableIT_WKUP(USART_TypeDef *USARTx) -{ - ATOMIC_CLEAR_BIT(USARTx->CR3, USART_CR3_WUFIE); -} - -/** - * @brief Disable TX FIFO Threshold Interrupt - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll CR3 TXFTIE LL_USART_DisableIT_TXFT - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableIT_TXFT(USART_TypeDef *USARTx) -{ - ATOMIC_CLEAR_BIT(USARTx->CR3, USART_CR3_TXFTIE); -} - -/** - * @brief Disable Smartcard Transmission Complete Before Guard Time Interrupt - * @note Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not - * Smartcard feature is supported by the USARTx instance. - * @rmtoll CR3 TCBGTIE LL_USART_DisableIT_TCBGT - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableIT_TCBGT(USART_TypeDef *USARTx) -{ - ATOMIC_CLEAR_BIT(USARTx->CR3, USART_CR3_TCBGTIE); -} - -/** - * @brief Disable RX FIFO Threshold Interrupt - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll CR3 RXFTIE LL_USART_DisableIT_RXFT - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableIT_RXFT(USART_TypeDef *USARTx) -{ - ATOMIC_CLEAR_BIT(USARTx->CR3, USART_CR3_RXFTIE); -} - -/** - * @brief Check if the USART IDLE Interrupt source is enabled or disabled. - * @rmtoll CR1 IDLEIE LL_USART_IsEnabledIT_IDLE - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_IDLE(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR1, USART_CR1_IDLEIE) == (USART_CR1_IDLEIE)) ? 1UL : 0UL); -} - -#define LL_USART_IsEnabledIT_RXNE LL_USART_IsEnabledIT_RXNE_RXFNE /* Redefinition for legacy purpose */ - -/** - * @brief Check if the USART RX Not Empty and USART RX FIFO Not Empty Interrupt is enabled or disabled. - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll CR1 RXNEIE_RXFNEIE LL_USART_IsEnabledIT_RXNE_RXFNE - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_RXNE_RXFNE(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR1, USART_CR1_RXNEIE_RXFNEIE) == (USART_CR1_RXNEIE_RXFNEIE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART Transmission Complete Interrupt is enabled or disabled. - * @rmtoll CR1 TCIE LL_USART_IsEnabledIT_TC - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_TC(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR1, USART_CR1_TCIE) == (USART_CR1_TCIE)) ? 1UL : 0UL); -} - -#define LL_USART_IsEnabledIT_TXE LL_USART_IsEnabledIT_TXE_TXFNF /* Redefinition for legacy purpose */ - -/** - * @brief Check if the USART TX Empty and USART TX FIFO Not Full Interrupt is enabled or disabled - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll CR1 TXEIE_TXFNFIE LL_USART_IsEnabledIT_TXE_TXFNF - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_TXE_TXFNF(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR1, USART_CR1_TXEIE_TXFNFIE) == (USART_CR1_TXEIE_TXFNFIE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART Parity Error Interrupt is enabled or disabled. - * @rmtoll CR1 PEIE LL_USART_IsEnabledIT_PE - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_PE(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR1, USART_CR1_PEIE) == (USART_CR1_PEIE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART Character Match Interrupt is enabled or disabled. - * @rmtoll CR1 CMIE LL_USART_IsEnabledIT_CM - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_CM(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR1, USART_CR1_CMIE) == (USART_CR1_CMIE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART Receiver Timeout Interrupt is enabled or disabled. - * @rmtoll CR1 RTOIE LL_USART_IsEnabledIT_RTO - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_RTO(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR1, USART_CR1_RTOIE) == (USART_CR1_RTOIE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART End Of Block Interrupt is enabled or disabled. - * @note Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not - * Smartcard feature is supported by the USARTx instance. - * @rmtoll CR1 EOBIE LL_USART_IsEnabledIT_EOB - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_EOB(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR1, USART_CR1_EOBIE) == (USART_CR1_EOBIE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART TX FIFO Empty Interrupt is enabled or disabled - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll CR1 TXFEIE LL_USART_IsEnabledIT_TXFE - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_TXFE(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR1, USART_CR1_TXFEIE) == (USART_CR1_TXFEIE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART RX FIFO Full Interrupt is enabled or disabled - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll CR1 RXFFIE LL_USART_IsEnabledIT_RXFF - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_RXFF(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR1, USART_CR1_RXFFIE) == (USART_CR1_RXFFIE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART LIN Break Detection Interrupt is enabled or disabled. - * @note Macro IS_UART_LIN_INSTANCE(USARTx) can be used to check whether or not - * LIN feature is supported by the USARTx instance. - * @rmtoll CR2 LBDIE LL_USART_IsEnabledIT_LBD - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_LBD(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR2, USART_CR2_LBDIE) == (USART_CR2_LBDIE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART Error Interrupt is enabled or disabled. - * @rmtoll CR3 EIE LL_USART_IsEnabledIT_ERROR - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_ERROR(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR3, USART_CR3_EIE) == (USART_CR3_EIE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART CTS Interrupt is enabled or disabled. - * @note Macro IS_UART_HWFLOW_INSTANCE(USARTx) can be used to check whether or not - * Hardware Flow control feature is supported by the USARTx instance. - * @rmtoll CR3 CTSIE LL_USART_IsEnabledIT_CTS - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_CTS(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR3, USART_CR3_CTSIE) == (USART_CR3_CTSIE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the USART Wake Up from Stop Mode Interrupt is enabled or disabled. - * @note Macro IS_UART_WAKEUP_FROMSTOP_INSTANCE(USARTx) can be used to check whether or not - * Wake-up from Stop mode feature is supported by the USARTx instance. - * @rmtoll CR3 WUFIE LL_USART_IsEnabledIT_WKUP - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_WKUP(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR3, USART_CR3_WUFIE) == (USART_CR3_WUFIE)) ? 1UL : 0UL); -} - -/** - * @brief Check if USART TX FIFO Threshold Interrupt is enabled or disabled - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll CR3 TXFTIE LL_USART_IsEnabledIT_TXFT - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_TXFT(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR3, USART_CR3_TXFTIE) == (USART_CR3_TXFTIE)) ? 1UL : 0UL); -} - -/** - * @brief Check if the Smartcard Transmission Complete Before Guard Time Interrupt is enabled or disabled. - * @note Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not - * Smartcard feature is supported by the USARTx instance. - * @rmtoll CR3 TCBGTIE LL_USART_IsEnabledIT_TCBGT - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_TCBGT(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR3, USART_CR3_TCBGTIE) == (USART_CR3_TCBGTIE)) ? 1UL : 0UL); -} - -/** - * @brief Check if USART RX FIFO Threshold Interrupt is enabled or disabled - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll CR3 RXFTIE LL_USART_IsEnabledIT_RXFT - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledIT_RXFT(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR3, USART_CR3_RXFTIE) == (USART_CR3_RXFTIE)) ? 1UL : 0UL); -} - -/** - * @} - */ - -/** @defgroup USART_LL_EF_DMA_Management DMA_Management - * @{ - */ - -/** - * @brief Enable DMA Mode for reception - * @rmtoll CR3 DMAR LL_USART_EnableDMAReq_RX - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableDMAReq_RX(USART_TypeDef *USARTx) -{ - ATOMIC_SET_BIT(USARTx->CR3, USART_CR3_DMAR); -} - -/** - * @brief Disable DMA Mode for reception - * @rmtoll CR3 DMAR LL_USART_DisableDMAReq_RX - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableDMAReq_RX(USART_TypeDef *USARTx) -{ - ATOMIC_CLEAR_BIT(USARTx->CR3, USART_CR3_DMAR); -} - -/** - * @brief Check if DMA Mode is enabled for reception - * @rmtoll CR3 DMAR LL_USART_IsEnabledDMAReq_RX - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledDMAReq_RX(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR3, USART_CR3_DMAR) == (USART_CR3_DMAR)) ? 1UL : 0UL); -} - -/** - * @brief Enable DMA Mode for transmission - * @rmtoll CR3 DMAT LL_USART_EnableDMAReq_TX - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableDMAReq_TX(USART_TypeDef *USARTx) -{ - ATOMIC_SET_BIT(USARTx->CR3, USART_CR3_DMAT); -} - -/** - * @brief Disable DMA Mode for transmission - * @rmtoll CR3 DMAT LL_USART_DisableDMAReq_TX - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableDMAReq_TX(USART_TypeDef *USARTx) -{ - ATOMIC_CLEAR_BIT(USARTx->CR3, USART_CR3_DMAT); -} - -/** - * @brief Check if DMA Mode is enabled for transmission - * @rmtoll CR3 DMAT LL_USART_IsEnabledDMAReq_TX - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledDMAReq_TX(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR3, USART_CR3_DMAT) == (USART_CR3_DMAT)) ? 1UL : 0UL); -} - -/** - * @brief Enable DMA Disabling on Reception Error - * @rmtoll CR3 DDRE LL_USART_EnableDMADeactOnRxErr - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_EnableDMADeactOnRxErr(USART_TypeDef *USARTx) -{ - SET_BIT(USARTx->CR3, USART_CR3_DDRE); -} - -/** - * @brief Disable DMA Disabling on Reception Error - * @rmtoll CR3 DDRE LL_USART_DisableDMADeactOnRxErr - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_DisableDMADeactOnRxErr(USART_TypeDef *USARTx) -{ - CLEAR_BIT(USARTx->CR3, USART_CR3_DDRE); -} - -/** - * @brief Indicate if DMA Disabling on Reception Error is disabled - * @rmtoll CR3 DDRE LL_USART_IsEnabledDMADeactOnRxErr - * @param USARTx USART Instance - * @retval State of bit (1 or 0). - */ -__STATIC_INLINE uint32_t LL_USART_IsEnabledDMADeactOnRxErr(const USART_TypeDef *USARTx) -{ - return ((READ_BIT(USARTx->CR3, USART_CR3_DDRE) == (USART_CR3_DDRE)) ? 1UL : 0UL); -} - -/** - * @brief Get the data register address used for DMA transfer - * @rmtoll RDR RDR LL_USART_DMA_GetRegAddr\n - * @rmtoll TDR TDR LL_USART_DMA_GetRegAddr - * @param USARTx USART Instance - * @param Direction This parameter can be one of the following values: - * @arg @ref LL_USART_DMA_REG_DATA_TRANSMIT - * @arg @ref LL_USART_DMA_REG_DATA_RECEIVE - * @retval Address of data register - */ -__STATIC_INLINE uint32_t LL_USART_DMA_GetRegAddr(const USART_TypeDef *USARTx, uint32_t Direction) -{ - uint32_t data_reg_addr; - - if (Direction == LL_USART_DMA_REG_DATA_TRANSMIT) - { - /* return address of TDR register */ - data_reg_addr = (uint32_t) &(USARTx->TDR); - } - else - { - /* return address of RDR register */ - data_reg_addr = (uint32_t) &(USARTx->RDR); - } - - return data_reg_addr; -} - -/** - * @} - */ - -/** @defgroup USART_LL_EF_Data_Management Data_Management - * @{ - */ - -/** - * @brief Read Receiver Data register (Receive Data value, 8 bits) - * @rmtoll RDR RDR LL_USART_ReceiveData8 - * @param USARTx USART Instance - * @retval Value between Min_Data=0x00 and Max_Data=0xFF - */ -__STATIC_INLINE uint8_t LL_USART_ReceiveData8(const USART_TypeDef *USARTx) -{ - return (uint8_t)(READ_BIT(USARTx->RDR, USART_RDR_RDR) & 0xFFU); -} - -/** - * @brief Read Receiver Data register (Receive Data value, 9 bits) - * @rmtoll RDR RDR LL_USART_ReceiveData9 - * @param USARTx USART Instance - * @retval Value between Min_Data=0x00 and Max_Data=0x1FF - */ -__STATIC_INLINE uint16_t LL_USART_ReceiveData9(const USART_TypeDef *USARTx) -{ - return (uint16_t)(READ_BIT(USARTx->RDR, USART_RDR_RDR)); -} - -/** - * @brief Write in Transmitter Data Register (Transmit Data value, 8 bits) - * @rmtoll TDR TDR LL_USART_TransmitData8 - * @param USARTx USART Instance - * @param Value between Min_Data=0x00 and Max_Data=0xFF - * @retval None - */ -__STATIC_INLINE void LL_USART_TransmitData8(USART_TypeDef *USARTx, uint8_t Value) -{ - USARTx->TDR = Value; -} - -/** - * @brief Write in Transmitter Data Register (Transmit Data value, 9 bits) - * @rmtoll TDR TDR LL_USART_TransmitData9 - * @param USARTx USART Instance - * @param Value between Min_Data=0x00 and Max_Data=0x1FF - * @retval None - */ -__STATIC_INLINE void LL_USART_TransmitData9(USART_TypeDef *USARTx, uint16_t Value) -{ - USARTx->TDR = (uint16_t)(Value & 0x1FFUL); -} - -/** - * @} - */ - -/** @defgroup USART_LL_EF_Execution Execution - * @{ - */ - -/** - * @brief Request an Automatic Baud Rate measurement on next received data frame - * @note Macro IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(USARTx) can be used to check whether or not - * Auto Baud Rate detection feature is supported by the USARTx instance. - * @rmtoll RQR ABRRQ LL_USART_RequestAutoBaudRate - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_RequestAutoBaudRate(USART_TypeDef *USARTx) -{ - SET_BIT(USARTx->RQR, (uint16_t)USART_RQR_ABRRQ); -} - -/** - * @brief Request Break sending - * @rmtoll RQR SBKRQ LL_USART_RequestBreakSending - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_RequestBreakSending(USART_TypeDef *USARTx) -{ - SET_BIT(USARTx->RQR, (uint16_t)USART_RQR_SBKRQ); -} - -/** - * @brief Put USART in mute mode and set the RWU flag - * @rmtoll RQR MMRQ LL_USART_RequestEnterMuteMode - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_RequestEnterMuteMode(USART_TypeDef *USARTx) -{ - SET_BIT(USARTx->RQR, (uint16_t)USART_RQR_MMRQ); -} - -/** - * @brief Request a Receive Data and FIFO flush - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @note Allows to discard the received data without reading them, and avoid an overrun - * condition. - * @rmtoll RQR RXFRQ LL_USART_RequestRxDataFlush - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_RequestRxDataFlush(USART_TypeDef *USARTx) -{ - SET_BIT(USARTx->RQR, (uint16_t)USART_RQR_RXFRQ); -} - -/** - * @brief Request a Transmit data and FIFO flush - * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not - * FIFO mode feature is supported by the USARTx instance. - * @rmtoll RQR TXFRQ LL_USART_RequestTxDataFlush - * @param USARTx USART Instance - * @retval None - */ -__STATIC_INLINE void LL_USART_RequestTxDataFlush(USART_TypeDef *USARTx) -{ - SET_BIT(USARTx->RQR, (uint16_t)USART_RQR_TXFRQ); -} - -/** - * @} - */ - -#if defined(USE_FULL_LL_DRIVER) -/** @defgroup USART_LL_EF_Init Initialization and de-initialization functions - * @{ - */ -ErrorStatus LL_USART_DeInit(const USART_TypeDef *USARTx); -ErrorStatus LL_USART_Init(USART_TypeDef *USARTx, const LL_USART_InitTypeDef *USART_InitStruct); -void LL_USART_StructInit(LL_USART_InitTypeDef *USART_InitStruct); -ErrorStatus LL_USART_ClockInit(USART_TypeDef *USARTx, const LL_USART_ClockInitTypeDef *USART_ClockInitStruct); -void LL_USART_ClockStructInit(LL_USART_ClockInitTypeDef *USART_ClockInitStruct); -/** - * @} - */ -#endif /* USE_FULL_LL_DRIVER */ - -/** - * @} - */ - -/** - * @} - */ - -#endif /* USART1 || USART2 || USART3 || USART6 || UART4 || UART5 || UART7 || UART8 || UART9 || USART10 */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_LL_USART_H */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_utils.h b/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_utils.h deleted file mode 100644 index 635ea59..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_utils.h +++ /dev/null @@ -1,401 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_ll_utils.h - * @author MCD Application Team - * @brief Header file of UTILS LL module. - ****************************************************************************** - * @attention - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file in - * the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - @verbatim - ============================================================================== - ##### How to use this driver ##### - ============================================================================== - [..] - The LL UTILS driver contains a set of generic APIs that can be - used by user: - (+) Device electronic signature - (+) Timing functions - (+) PLL configuration functions - - @endverbatim - ****************************************************************************** - */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef STM32H7xx_LL_UTILS_H -#define STM32H7xx_LL_UTILS_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx.h" -#include "stm32h7xx_ll_system.h" -#include "stm32h7xx_ll_bus.h" - -/** @addtogroup STM32H7xx_LL_Driver - * @{ - */ - -/** @defgroup UTILS_LL UTILS - * @{ - */ - -/* Private types -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ - -/* Private constants ---------------------------------------------------------*/ -/** @defgroup UTILS_LL_Private_Constants UTILS Private Constants - * @{ - */ - -/* Max delay can be used in LL_mDelay */ -#define LL_MAX_DELAY 0xFFFFFFFFU - -/** - * @brief Unique device ID register base address - */ -#define UID_BASE_ADDRESS UID_BASE - -/** - * @brief Flash size data register base address - */ -#define FLASHSIZE_BASE_ADDRESS FLASHSIZE_BASE - -/** - * @brief Package data register base address - */ -#define PACKAGE_BASE_ADDRESS PACKAGE_BASE - -/** - * @} - */ - -/* Private macros ------------------------------------------------------------*/ -/** @defgroup UTILS_LL_Private_Macros UTILS Private Macros - * @{ - */ -/** - * @} - */ -/* Exported types ------------------------------------------------------------*/ -/** @defgroup UTILS_LL_ES_INIT UTILS Exported structures - * @{ - */ -/** - * @brief UTILS PLL structure definition - */ -typedef struct -{ - uint32_t PLLM; /*!< Division factor for PLL VCO input clock. - This parameter must be a number between Min_Data = 0 and Max_Data = 63 - - This feature can be modified afterwards using unitary function - @ref LL_RCC_PLL1_SetM(). */ - - uint32_t PLLN; /*!< Multiplication factor for PLL VCO output clock. - This parameter must be a number between Min_Data = 4 and Max_Data = 512 - - This feature can be modified afterwards using unitary function - @ref LL_RCC_PLL1_SetN(). */ - - uint32_t PLLP; /*!< Division for the main system clock. - This parameter must be a number between Min_Data = 2 and Max_Data = 128 - odd division factors are not allowed - - This feature can be modified afterwards using unitary function - @ref LL_RCC_PLL1_SetP(). */ - - uint32_t FRACN; /*!< Fractional part of the multiplication factor for PLL VCO. - This parameter can be a value between 0 and 8191 - - This feature can be modified afterwards using unitary function - @ref LL_RCC_PLL1_SetFRACN(). */ - - uint32_t VCO_Input; /*!< PLL clock Input range. - This parameter can be a value of @ref RCC_LL_EC_PLLINPUTRANGE - - This feature can be modified afterwards using unitary function - @ref LL_RCC_PLL1_SetVCOInputRange(). */ - - uint32_t VCO_Output; /*!< PLL clock Output range. - This parameter can be a value of @ref RCC_LL_EC_PLLVCORANGE - - This feature can be modified afterwards using unitary function - @ref LL_RCC_PLL1_SetVCOOutputRange(). */ - -} LL_UTILS_PLLInitTypeDef; - -/** - * @brief UTILS System, AHB and APB buses clock configuration structure definition - */ -typedef struct -{ - uint32_t SYSCLKDivider; /*!< The System clock (SYSCLK) divider. This clock is derived from the PLL output. - This parameter can be a value of @ref RCC_LL_EC_SYSCLK_DIV - - This feature can be modified afterwards using unitary function - @ref LL_RCC_SetSysPrescaler(). */ - - uint32_t AHBCLKDivider; /*!< The AHB clock (HCLK) divider. This clock is derived from the system clock (SYSCLK). - This parameter can be a value of @ref RCC_LL_EC_AHB_DIV - - This feature can be modified afterwards using unitary function - @ref LL_RCC_SetAHBPrescaler(). */ - - uint32_t APB1CLKDivider; /*!< The APB1 clock (PCLK1) divider. This clock is derived from the AHB clock (HCLK). - This parameter can be a value of @ref RCC_LL_EC_APB1_DIV - - This feature can be modified afterwards using unitary function - @ref LL_RCC_SetAPB1Prescaler(). */ - - uint32_t APB2CLKDivider; /*!< The APB2 clock (PCLK2) divider. This clock is derived from the AHB clock (HCLK). - This parameter can be a value of @ref RCC_LL_EC_APB2_DIV - - This feature can be modified afterwards using unitary function - @ref LL_RCC_SetAPB2Prescaler(). */ - - uint32_t APB3CLKDivider; /*!< The APB2 clock (PCLK3) divider. This clock is derived from the AHB clock (HCLK). - This parameter can be a value of @ref RCC_LL_EC_APB3_DIV - - This feature can be modified afterwards using unitary function - @ref LL_RCC_SetAPB3Prescaler(). */ - - uint32_t APB4CLKDivider; /*!< The APB4 clock (PCLK4) divider. This clock is derived from the AHB clock (HCLK). - This parameter can be a value of @ref RCC_LL_EC_APB4_DIV - - This feature can be modified afterwards using unitary function - @ref LL_RCC_SetAPB4Prescaler(). */ - -} LL_UTILS_ClkInitTypeDef; - -/** - * @} - */ - -/* Exported constants --------------------------------------------------------*/ -/** @defgroup UTILS_LL_Exported_Constants UTILS Exported Constants - * @{ - */ - -/** @defgroup UTILS_EC_HSE_BYPASS HSE Bypass activation - * @{ - */ -#define LL_UTILS_HSEBYPASS_OFF 0x00000000U /*!< HSE Bypass is not enabled */ -#define LL_UTILS_HSEBYPASS_ON 0x00000001U /*!< HSE Bypass is enabled */ -/** - * @} - */ - -/** @defgroup UTILS_EC_PACKAGETYPE PACKAGE TYPE - * @{ - */ -#if (STM32H7_DEV_ID == 0x450UL) -#define LL_UTILS_PACKAGETYPE_LQFP100 LL_SYSCFG_LQFP100_PACKAGE /*!< LQFP100 package type */ -#define LL_UTILS_PACKAGETYPE_TQFP144 LL_SYSCFG_TQFP144_PACKAGE /*!< TQFP144 package type */ -#define LL_UTILS_PACKAGETYPE_TQFP176_UFBGA176 LL_SYSCFG_TQFP176_UFBGA176_PACKAGE /*!< TQFP176 or UFBGA176 package type */ -#define LL_UTILS_PACKAGETYPE_LQFP208_TFBGA240 LL_SYSCFG_LQFP208_TFBGA240_PACKAGE /*!< LQFP208 or TFBGA240 package type */ -#elif (STM32H7_DEV_ID == 0x480UL) -#define LL_UTILS_PACKAGETYPE_LQFP64 0x00000000UL /*!< LQFP64 package type */ -#define LL_UTILS_PACKAGETYPE_TFBGA100_LQFP100 0x00000001UL /*!< TFBGA100 or LQFP100 package type */ -#define LL_UTILS_PACKAGETYPE_LQFP100_SMPS 0x00000002UL /*!< LQFP100 with SMPS package type */ -#define LL_UTILS_PACKAGETYPE_TFBGA100_SMPS 0x00000003UL /*!< TFBGA100 with SMPS package type */ -#define LL_UTILS_PACKAGETYPE_WLCSP132_SMPS 0x00000004UL /*!< WLCSP132 package type */ -#define LL_UTILS_PACKAGETYPE_LQFP144 0x00000005UL /*!< LQFP144 package type */ -#define LL_UTILS_PACKAGETYPE_LQFP144_SMPS 0x00000006UL /*!< LQFP144 with SMPS package type */ -#define LL_UTILS_PACKAGETYPE_UFBGA169 0x00000007UL /*!< UFBGA169 package type */ -#define LL_UTILS_PACKAGETYPE_UFBGA176_LQFP176 0x00000008UL /*!< UFBGA176 or LQFP176 package type */ -#define LL_UTILS_PACKAGETYPE_LQFP176_SMPS 0x00000009UL /*!< LQFP176 with SMPS package type */ -#define LL_UTILS_PACKAGETYPE_UFBGA176_SMPS 0x0000000AUL /*!< UFBGA176 with SMPS package type */ -#define LL_UTILS_PACKAGETYPE_TFBGA216 0x0000000CUL /*!< TFBGA216 package type */ -#define LL_UTILS_PACKAGETYPE_TFBGA225 0x0000000EUL /*!< TFBGA225 package type */ -#elif (STM32H7_DEV_ID == 0x483UL) -#define LL_UTILS_PACKAGETYPE_VFQFPN68_INDUS LL_SYSCFG_VFQFPN68_INDUS_PACKAGE /*!< VFQFPN68 Industrial package type */ -#define LL_UTILS_PACKAGETYPE_TFBGA100_LQFP100 LL_SYSCFG_TFBGA100_LQFP100_PACKAGE /*!< TFBGA100 or LQFP100 Legacy package type */ -#define LL_UTILS_PACKAGETYPE_LQFP100_INDUS LL_SYSCFG_LQFP100_INDUS_PACKAGE /*!< LQFP100 Industrial package type */ -#define LL_UTILS_PACKAGETYPE_TFBGA100_INDUS LL_SYSCFG_TFBGA100_INDUS_PACKAGE /*!< TFBGA100 Industrial package type */ -#define LL_UTILS_PACKAGETYPE_WLCSP115_INDUS LL_SYSCFG_WLCSP115_INDUS_PACKAGE /*!< WLCSP115 Industrial package type */ -#define LL_UTILS_PACKAGETYPE_LQFP144 LL_SYSCFG_LQFP144_PACKAGE /*!< LQFP144 Legacy package type */ -#define LL_UTILS_PACKAGETYPE_UFBGA144 LL_SYSCFG_UFBGA144_PACKAGE /*!< UFBGA144 Legacy package type */ -#define LL_UTILS_PACKAGETYPE_LQFP144_INDUS LL_SYSCFG_LQFP144_INDUS_PACKAGE /*!< LQFP144 Industrial package type */ -#define LL_UTILS_PACKAGETYPE_UFBGA169_INDUS LL_SYSCFG_UFBGA169_INDUS_PACKAGE /*!< UFBGA169 Industrial package type */ -#define LL_UTILS_PACKAGETYPE_UFBGA176PLUS25_INDUS LL_SYSCFG_UFBGA176PLUS25_INDUS_PACKAGE /*!< UFBGA176+25 Industrial package type */ -#define LL_UTILS_PACKAGETYPE_LQFP176_INDUS LL_SYSCFG_LQFP176_INDUS_PACKAGE /*!< LQFP176 Industrial package type */ -#endif /* STM32H7_DEV_ID == 0x450UL */ -/** - * @} - */ - -/** - * @} - */ - -/* Exported macro ------------------------------------------------------------*/ - -/* Exported functions --------------------------------------------------------*/ -/** @defgroup UTILS_LL_Exported_Functions UTILS Exported Functions - * @{ - */ - -/** @defgroup UTILS_EF_DEVICE_ELECTRONIC_SIGNATURE DEVICE ELECTRONIC SIGNATURE - * @{ - */ - -/** - * @brief Get Word0 of the unique device identifier (UID based on 96 bits) - * @retval UID[31:0] - */ -__STATIC_INLINE uint32_t LL_GetUID_Word0(void) -{ - return (uint32_t)(READ_REG(*((uint32_t *)UID_BASE_ADDRESS))); -} - -/** - * @brief Get Word1 of the unique device identifier (UID based on 96 bits) - * @retval UID[63:32] - */ -__STATIC_INLINE uint32_t LL_GetUID_Word1(void) -{ - return (uint32_t)(READ_REG(*((uint32_t *)(UID_BASE_ADDRESS + 4U)))); -} - -/** - * @brief Get Word2 of the unique device identifier (UID based on 96 bits) - * @retval UID[95:64] - */ -__STATIC_INLINE uint32_t LL_GetUID_Word2(void) -{ - return (uint32_t)(READ_REG(*((uint32_t *)(UID_BASE_ADDRESS + 8U)))); -} - -/** - * @brief Get Flash memory size - * @note This bitfield indicates the size of the device Flash memory expressed in - * Kbytes. As an example, 0x040 corresponds to 64 Kbytes. - * @retval FLASH_SIZE[15:0]: Flash memory size - */ -__STATIC_INLINE uint32_t LL_GetFlashSize(void) -{ - return (uint16_t)(READ_REG(*((uint32_t *)FLASHSIZE_BASE_ADDRESS))); -} - -/** - * @brief Get Package type - * @retval Returned value can be one of the following values: - * @arg @ref LL_UTILS_PACKAGETYPE_LQFP100 - * @arg @ref LL_UTILS_PACKAGETYPE_TQFP144 - * @arg @ref LL_UTILS_PACKAGETYPE_TQFP176_UFBGA176 - * @arg @ref LL_UTILS_PACKAGETYPE_LQFP208_TFBGA240 - * @arg @ref LL_UTILS_PACKAGETYPE_LQFP64 (*) - * @arg @ref LL_UTILS_PACKAGETYPE_TFBGA100_LQFP100 (*) - * @arg @ref LL_UTILS_PACKAGETYPE_LQFP100_SMPS (*) - * @arg @ref LL_UTILS_PACKAGETYPE_TFBGA100_SMPS (*) - * @arg @ref LL_UTILS_PACKAGETYPE_WLCSP132_SMPS (*) - * @arg @ref LL_UTILS_PACKAGETYPE_LQFP144 (*) - * @arg @ref LL_UTILS_PACKAGETYPE_LQFP144_SMPS (*) - * @arg @ref LL_UTILS_PACKAGETYPE_UFBGA169 (*) - * @arg @ref LL_UTILS_PACKAGETYPE_UFBGA176_LQFP176 (*) - * @arg @ref LL_UTILS_PACKAGETYPE_LQFP176_SMPS (*) - * @arg @ref LL_UTILS_PACKAGETYPE_UFBGA176_SMPS (*) - * @arg @ref LL_UTILS_PACKAGETYPE_TFBGA216 (*) - * @arg @ref LL_UTILS_PACKAGETYPE_TFBGA225 (*) - * @arg @ref LL_UTILS_PACKAGETYPE_VFQFPN68_INDUS (*) - * @arg @ref LL_UTILS_PACKAGETYPE_LQFP100_INDUS (*) - * @arg @ref LL_UTILS_PACKAGETYPE_TFBGA100_INDUS (*) - * @arg @ref LL_UTILS_PACKAGETYPE_WLCSP115_INDUS (*) - * @arg @ref LL_UTILS_PACKAGETYPE_UFBGA144 (*) - * @arg @ref LL_UTILS_PACKAGETYPE_LQFP144_INDUS (*) - * @arg @ref LL_UTILS_PACKAGETYPE_UFBGA169_INDUS (*) - * @arg @ref LL_UTILS_PACKAGETYPE_UFBGA176+25_INDUS (*) - * @arg @ref LL_UTILS_PACKAGETYPE_LQFP176_INDUS (*) - * - * (*) Packages available on some STM32H7 lines only. - * @note For some SM32H7 lines, enabling the SYSCFG clock is mandatory. - the SYSCFG clock enabling is ensured by LL_APB4_GRP1_EnableClock - */ -__STATIC_INLINE uint32_t LL_GetPackageType(void) -{ -#if defined(SYSCFG_PKGR_PKG) - - return LL_SYSCFG_GetPackage(); -#else - return (uint16_t)(READ_REG(*((uint32_t *)PACKAGE_BASE_ADDRESS))); - -#endif /* SYSCFG_PKGR_PKG */ -} - -/** - * @} - */ - -/** @defgroup UTILS_LL_EF_DELAY DELAY - * @{ - */ - -/** - * @brief This function configures the Cortex-M SysTick source of the time base. - * @param HCLKFrequency HCLK frequency in Hz (can be calculated thanks to RCC helper macro) - * @note When a RTOS is used, it is recommended to avoid changing the SysTick - * configuration by calling this function, for a delay use rather osDelay RTOS service. - * @param Ticks Number of ticks - * @retval None - */ -__STATIC_INLINE void LL_InitTick(uint32_t HCLKFrequency, uint32_t Ticks) -{ - /* Configure the SysTick to have interrupt in 1ms time base */ - SysTick->LOAD = (uint32_t)((HCLKFrequency / Ticks) - 1UL); /* set reload register */ - SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ - SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable the Systick Timer */ -} - -void LL_Init1msTick(uint32_t CPU_Frequency); -void LL_mDelay(uint32_t Delay); - -/** - * @} - */ - -/** @defgroup UTILS_EF_SYSTEM SYSTEM - * @{ - */ - -void LL_SetSystemCoreClock(uint32_t CPU_Frequency); -ErrorStatus LL_PLL_ConfigSystemClock_HSI(LL_UTILS_PLLInitTypeDef *UTILS_PLLInitStruct, - LL_UTILS_ClkInitTypeDef *UTILS_ClkInitStruct); -ErrorStatus LL_PLL_ConfigSystemClock_HSE(uint32_t HSEFrequency, - uint32_t HSEBypass, - LL_UTILS_PLLInitTypeDef *UTILS_PLLInitStruct, - LL_UTILS_ClkInitTypeDef *UTILS_ClkInitStruct); -ErrorStatus LL_SetFlashLatency(uint32_t HCLK_Frequency); - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* STM32H7xx_LL_UTILS_H */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/LICENSE.txt b/Drivers/STM32H7xx_HAL_Driver/LICENSE.txt deleted file mode 100644 index 3edc4d1..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -This software component is provided to you as part of a software package and -applicable license terms are in the Package_license file. If you received this -software component outside of a package or without applicable license terms, -the terms of the BSD-3-Clause license shall apply. -You may obtain a copy of the BSD-3-Clause at: -https://opensource.org/licenses/BSD-3-Clause diff --git a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c b/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c deleted file mode 100644 index cd71d08..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c +++ /dev/null @@ -1,1311 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal.c - * @author MCD Application Team - * @brief HAL module driver. - * This is the common part of the HAL initialization - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - @verbatim - ============================================================================== - ##### How to use this driver ##### - ============================================================================== - [..] - The common HAL driver contains a set of generic and common APIs that can be - used by the PPP peripheral drivers and the user to start using the HAL. - [..] - The HAL contains two APIs' categories: - (+) Common HAL APIs - (+) Services HAL APIs - - @endverbatim - ****************************************************************************** - */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @defgroup HAL HAL - * @brief HAL module driver. - * @{ - */ - -/* Private typedef -----------------------------------------------------------*/ -/* Private define ------------------------------------------------------------*/ -/** - * @brief STM32H7xx HAL Driver version number V1.11.1 - */ -#define __STM32H7xx_HAL_VERSION_MAIN (0x01UL) /*!< [31:24] main version */ -#define __STM32H7xx_HAL_VERSION_SUB1 (0x0BUL) /*!< [23:16] sub1 version */ -#define __STM32H7xx_HAL_VERSION_SUB2 (0x01UL) /*!< [15:8] sub2 version */ -#define __STM32H7xx_HAL_VERSION_RC (0x00UL) /*!< [7:0] release candidate */ -#define __STM32H7xx_HAL_VERSION ((__STM32H7xx_HAL_VERSION_MAIN << 24)\ - |(__STM32H7xx_HAL_VERSION_SUB1 << 16)\ - |(__STM32H7xx_HAL_VERSION_SUB2 << 8 )\ - |(__STM32H7xx_HAL_VERSION_RC)) - -#define IDCODE_DEVID_MASK ((uint32_t)0x00000FFF) -#define VREFBUF_TIMEOUT_VALUE (uint32_t)10 /* 10 ms */ - -/* Private macro -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Exported variables --------------------------------------------------------*/ - -/** @defgroup HAL_Exported_Variables HAL Exported Variables - * @{ - */ -__IO uint32_t uwTick; -uint32_t uwTickPrio = (1UL << __NVIC_PRIO_BITS); /* Invalid PRIO */ -HAL_TickFreqTypeDef uwTickFreq = HAL_TICK_FREQ_DEFAULT; /* 1KHz */ -/** - * @} - */ - -/* Private function prototypes -----------------------------------------------*/ -/* Private functions ---------------------------------------------------------*/ - -/** @addtogroup HAL_Exported_Functions - * @{ - */ - -/** @addtogroup HAL_Group1 - * @brief Initialization and de-initialization functions - * -@verbatim - =============================================================================== - ##### Initialization and de-initialization functions ##### - =============================================================================== - [..] This section provides functions allowing to: - (+) Initializes the Flash interface the NVIC allocation and initial clock - configuration. It initializes the systick also when timeout is needed - and the backup domain when enabled. - (+) De-Initializes common part of the HAL. - (+) Configure The time base source to have 1ms time base with a dedicated - Tick interrupt priority. - (++) SysTick timer is used by default as source of time base, but user - can eventually implement his proper time base source (a general purpose - timer for example or other time source), keeping in mind that Time base - duration should be kept 1ms since PPP_TIMEOUT_VALUEs are defined and - handled in milliseconds basis. - (++) Time base configuration function (HAL_InitTick ()) is called automatically - at the beginning of the program after reset by HAL_Init() or at any time - when clock is configured, by HAL_RCC_ClockConfig(). - (++) Source of time base is configured to generate interrupts at regular - time intervals. Care must be taken if HAL_Delay() is called from a - peripheral ISR process, the Tick interrupt line must have higher priority - (numerically lower) than the peripheral interrupt. Otherwise the caller - ISR process will be blocked. - (++) functions affecting time base configurations are declared as __weak - to make override possible in case of other implementations in user file. -@endverbatim - * @{ - */ - -/** - * @brief This function is used to initialize the HAL Library; it must be the first - * instruction to be executed in the main program (before to call any other - * HAL function), it performs the following: - * Configures the SysTick to generate an interrupt each 1 millisecond, - * which is clocked by the HSI (at this stage, the clock is not yet - * configured and thus the system is running from the internal HSI at 16 MHz). - * Set NVIC Group Priority to 4. - * Calls the HAL_MspInit() callback function defined in user file - * "stm32h7xx_hal_msp.c" to do the global low level hardware initialization - * - * @note SysTick is used as time base for the HAL_Delay() function, the application - * 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) -{ - -uint32_t common_system_clock; - -#if defined(DUAL_CORE) && defined(CORE_CM4) - /* Configure Cortex-M4 Instruction cache through ART accelerator */ - __HAL_RCC_ART_CLK_ENABLE(); /* Enable the Cortex-M4 ART Clock */ - __HAL_ART_CONFIG_BASE_ADDRESS(0x08100000UL); /* Configure the Cortex-M4 ART Base address to the Flash Bank 2 : */ - __HAL_ART_ENABLE(); /* Enable the Cortex-M4 ART */ -#endif /* DUAL_CORE && CORE_CM4 */ - - /* Set Interrupt Group Priority */ - HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4); - - /* Update the SystemCoreClock global variable */ -#if defined(RCC_D1CFGR_D1CPRE) - common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE)>> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU); -#else - common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE)>> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU); -#endif - - /* Update the SystemD2Clock global variable */ -#if defined(RCC_D1CFGR_HPRE) - SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE)>> RCC_D1CFGR_HPRE_Pos]) & 0x1FU)); -#else - SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_HPRE)>> RCC_CDCFGR1_HPRE_Pos]) & 0x1FU)); -#endif - -#if defined(DUAL_CORE) && defined(CORE_CM4) - SystemCoreClock = SystemD2Clock; -#else - SystemCoreClock = common_system_clock; -#endif /* DUAL_CORE && CORE_CM4 */ - - /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */ - if(HAL_InitTick(TICK_INT_PRIORITY) != HAL_OK) - { - return HAL_ERROR; - } - - /* Init the low level hardware */ - HAL_MspInit(); - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief This function de-Initializes common part of the HAL and stops the systick. - * This function is optional. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_DeInit(void) -{ - /* Reset of all peripherals */ - __HAL_RCC_AHB3_FORCE_RESET(); - __HAL_RCC_AHB3_RELEASE_RESET(); - - __HAL_RCC_AHB1_FORCE_RESET(); - __HAL_RCC_AHB1_RELEASE_RESET(); - - __HAL_RCC_AHB2_FORCE_RESET(); - __HAL_RCC_AHB2_RELEASE_RESET(); - - __HAL_RCC_AHB4_FORCE_RESET(); - __HAL_RCC_AHB4_RELEASE_RESET(); - - __HAL_RCC_APB3_FORCE_RESET(); - __HAL_RCC_APB3_RELEASE_RESET(); - - __HAL_RCC_APB1L_FORCE_RESET(); - __HAL_RCC_APB1L_RELEASE_RESET(); - - __HAL_RCC_APB1H_FORCE_RESET(); - __HAL_RCC_APB1H_RELEASE_RESET(); - - __HAL_RCC_APB2_FORCE_RESET(); - __HAL_RCC_APB2_RELEASE_RESET(); - - __HAL_RCC_APB4_FORCE_RESET(); - __HAL_RCC_APB4_RELEASE_RESET(); - - /* De-Init the low level hardware */ - HAL_MspDeInit(); - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Initializes the MSP. - * @retval None - */ -__weak void HAL_MspInit(void) -{ - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_MspInit could be implemented in the user file - */ -} - -/** - * @brief DeInitializes the MSP. - * @retval None - */ -__weak void HAL_MspDeInit(void) -{ - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_MspDeInit could be implemented in the user file - */ -} - -/** - * @brief This function configures the source of the time base. - * The time source is configured to have 1ms time base with a dedicated - * Tick interrupt priority. - * @note This function is called automatically at the beginning of program after - * reset by HAL_Init() or at any time when clock is reconfigured by HAL_RCC_ClockConfig(). - * @note In the default implementation, SysTick timer is the source of time base. - * It is used to generate interrupts at regular time intervals. - * Care must be taken if HAL_Delay() is called from a peripheral ISR process, - * the SysTick interrupt must have higher priority (numerically lower) - * than the peripheral interrupt. Otherwise the caller ISR process will be blocked. - * The function is declared as __weak to be overwritten in case of other - * implementation in user file. - * @param TickPriority: Tick interrupt priority. - * @retval HAL status - */ -__weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) -{ - /* Check uwTickFreq for MisraC 2012 (even if uwTickFreq is a enum type that don't take the value zero)*/ - if((uint32_t)uwTickFreq == 0UL) - { - return HAL_ERROR; - } - - /* Configure the SysTick to have interrupt in 1ms time basis*/ - if (HAL_SYSTICK_Config(SystemCoreClock / (1000UL / (uint32_t)uwTickFreq)) > 0U) - { - return HAL_ERROR; - } - - /* Configure the SysTick IRQ priority */ - if (TickPriority < (1UL << __NVIC_PRIO_BITS)) - { - HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U); - uwTickPrio = TickPriority; - } - else - { - return HAL_ERROR; - } - - /* Return function status */ - return HAL_OK; -} - -/** - * @} - */ - -/** @addtogroup HAL_Group2 - * @brief HAL Control functions - * -@verbatim - =============================================================================== - ##### HAL Control functions ##### - =============================================================================== - [..] This section provides functions allowing to: - (+) Provide a tick value in millisecond - (+) Provide a blocking delay in millisecond - (+) Suspend the time base source interrupt - (+) Resume the time base source interrupt - (+) Get the HAL API driver version - (+) Get the device identifier - (+) Get the device revision identifier - (+) Enable/Disable Debug module during SLEEP mode - (+) Enable/Disable Debug module during STOP mode - (+) Enable/Disable Debug module during STANDBY mode - -@endverbatim - * @{ - */ - -/** - * @brief This function is called to increment a global variable "uwTick" - * used as application time base. - * @note In the default implementation, this variable is incremented each 1ms - * in Systick ISR. - * @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) -{ - uwTick += (uint32_t)uwTickFreq; -} - -/** - * @brief Provides a tick value in millisecond. - * @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) -{ - return uwTick; -} - -/** - * @brief This function returns a tick priority. - * @retval tick priority - */ -uint32_t HAL_GetTickPrio(void) -{ - return uwTickPrio; -} - -/** - * @brief Set new tick Freq. - * @retval Status - */ -HAL_StatusTypeDef HAL_SetTickFreq(HAL_TickFreqTypeDef Freq) -{ - HAL_StatusTypeDef status = HAL_OK; - HAL_TickFreqTypeDef prevTickFreq; - - assert_param(IS_TICKFREQ(Freq)); - - if (uwTickFreq != Freq) - { - - /* Back up uwTickFreq frequency */ - prevTickFreq = uwTickFreq; - - /* Update uwTickFreq global variable used by HAL_InitTick() */ - uwTickFreq = Freq; - - /* Apply the new tick Freq */ - status = HAL_InitTick(uwTickPrio); - if (status != HAL_OK) - { - /* Restore previous tick frequency */ - uwTickFreq = prevTickFreq; - } - } - - return status; -} - -/** - * @brief Return tick frequency. - * @retval tick period in Hz - */ -HAL_TickFreqTypeDef HAL_GetTickFreq(void) -{ - return uwTickFreq; -} - -/** - * @brief This function provides minimum delay (in milliseconds) based - * on variable incremented. - * @note In the default implementation , SysTick timer is the source of time base. - * It is used to generate interrupts at regular time intervals where uwTick - * is incremented. - * @note This function is declared as __weak to be overwritten in case of other - * implementations in user file. - * @param Delay specifies the delay time length, in milliseconds. - * @retval None - */ -__weak void HAL_Delay(uint32_t Delay) -{ - uint32_t tickstart = HAL_GetTick(); - uint32_t wait = Delay; - - /* Add a freq to guarantee minimum wait */ - if (wait < HAL_MAX_DELAY) - { - wait += (uint32_t)(uwTickFreq); - } - - while ((HAL_GetTick() - tickstart) < wait) - { - } -} - -/** - * @brief Suspend Tick increment. - * @note In the default implementation , SysTick timer is the source of time base. It is - * used to generate interrupts at regular time intervals. Once HAL_SuspendTick() - * is called, the SysTick interrupt will be disabled and so Tick increment - * is suspended. - * @note This function is declared as __weak to be overwritten in case of other - * implementations in user file. - * @retval None - */ -__weak void HAL_SuspendTick(void) -{ - /* Disable SysTick Interrupt */ - SysTick->CTRL &= ~SysTick_CTRL_TICKINT_Msk; -} - -/** - * @brief Resume Tick increment. - * @note In the default implementation , SysTick timer is the source of time base. It is - * used to generate interrupts at regular time intervals. Once HAL_ResumeTick() - * is called, the SysTick interrupt will be enabled and so Tick increment - * is resumed. - * @note This function is declared as __weak to be overwritten in case of other - * implementations in user file. - * @retval None - */ -__weak void HAL_ResumeTick(void) -{ - /* Enable SysTick Interrupt */ - SysTick->CTRL |= SysTick_CTRL_TICKINT_Msk; -} - -/** - * @brief Returns the HAL revision - * @retval version : 0xXYZR (8bits for each decimal, R for RC) - */ -uint32_t HAL_GetHalVersion(void) -{ - return __STM32H7xx_HAL_VERSION; -} - -/** - * @brief Returns the device revision identifier. - * @retval Device revision identifier - */ -uint32_t HAL_GetREVID(void) -{ - return((DBGMCU->IDCODE) >> 16); -} - -/** - * @brief Returns the device identifier. - * @retval Device identifier - */ -uint32_t HAL_GetDEVID(void) -{ - return((DBGMCU->IDCODE) & IDCODE_DEVID_MASK); -} - -/** - * @brief Return the first word of the unique device identifier (UID based on 96 bits) - * @retval Device identifier - */ -uint32_t HAL_GetUIDw0(void) -{ - return(READ_REG(*((uint32_t *)UID_BASE))); -} - -/** - * @brief Return the second word of the unique device identifier (UID based on 96 bits) - * @retval Device identifier - */ -uint32_t HAL_GetUIDw1(void) -{ - return(READ_REG(*((uint32_t *)(UID_BASE + 4U)))); -} - -/** - * @brief Return the third word of the unique device identifier (UID based on 96 bits) - * @retval Device identifier - */ -uint32_t HAL_GetUIDw2(void) -{ - return(READ_REG(*((uint32_t *)(UID_BASE + 8U)))); -} - -/** - * @brief Configure the internal voltage reference buffer voltage scale. - * @param VoltageScaling specifies the output voltage to achieve - * This parameter can be one of the following values: - * @arg SYSCFG_VREFBUF_VOLTAGE_SCALE0: VREF_OUT1 around 2.5 V. - * This requires VDDA equal to or higher than 2.8 V. - * @arg SYSCFG_VREFBUF_VOLTAGE_SCALE1: VREF_OUT2 around 2.048 V. - * This requires VDDA equal to or higher than 2.4 V. - * @arg SYSCFG_VREFBUF_VOLTAGE_SCALE2: VREF_OUT3 around 1.8 V. - * This requires VDDA equal to or higher than 2.1 V. - * @arg SYSCFG_VREFBUF_VOLTAGE_SCALE3: VREF_OUT4 around 1.5 V. - * This requires VDDA equal to or higher than 1.8 V. - * @retval None - */ -void HAL_SYSCFG_VREFBUF_VoltageScalingConfig(uint32_t VoltageScaling) -{ - /* Check the parameters */ - assert_param(IS_SYSCFG_VREFBUF_VOLTAGE_SCALE(VoltageScaling)); - - MODIFY_REG(VREFBUF->CSR, VREFBUF_CSR_VRS, VoltageScaling); -} - -/** - * @brief Configure the internal voltage reference buffer high impedance mode. - * @param Mode specifies the high impedance mode - * This parameter can be one of the following values: - * @arg SYSCFG_VREFBUF_HIGH_IMPEDANCE_DISABLE: VREF+ pin is internally connect to VREFINT output. - * @arg SYSCFG_VREFBUF_HIGH_IMPEDANCE_ENABLE: VREF+ pin is high impedance. - * @retval None - */ -void HAL_SYSCFG_VREFBUF_HighImpedanceConfig(uint32_t Mode) -{ - /* Check the parameters */ - assert_param(IS_SYSCFG_VREFBUF_HIGH_IMPEDANCE(Mode)); - - MODIFY_REG(VREFBUF->CSR, VREFBUF_CSR_HIZ, Mode); -} - -/** - * @brief Tune the Internal Voltage Reference buffer (VREFBUF). - * @retval None - */ -void HAL_SYSCFG_VREFBUF_TrimmingConfig(uint32_t TrimmingValue) -{ - /* Check the parameters */ - assert_param(IS_SYSCFG_VREFBUF_TRIMMING(TrimmingValue)); - - MODIFY_REG(VREFBUF->CCR, VREFBUF_CCR_TRIM, TrimmingValue); -} - -/** - * @brief Enable the Internal Voltage Reference buffer (VREFBUF). - * @retval HAL_OK/HAL_TIMEOUT - */ -HAL_StatusTypeDef HAL_SYSCFG_EnableVREFBUF(void) -{ - uint32_t tickstart; - - SET_BIT(VREFBUF->CSR, VREFBUF_CSR_ENVR); - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - - /* Wait for VRR bit */ - while(READ_BIT(VREFBUF->CSR, VREFBUF_CSR_VRR) == 0UL) - { - if((HAL_GetTick() - tickstart) > VREFBUF_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - - return HAL_OK; -} - -/** - * @brief Disable the Internal Voltage Reference buffer (VREFBUF). - * - * @retval None - */ -void HAL_SYSCFG_DisableVREFBUF(void) -{ - CLEAR_BIT(VREFBUF->CSR, VREFBUF_CSR_ENVR); -} - -#if defined(SYSCFG_PMCR_EPIS_SEL) -/** - * @brief Ethernet PHY Interface Selection either MII or RMII - * @param SYSCFG_ETHInterface: Selects the Ethernet PHY interface - * This parameter can be one of the following values: - * @arg SYSCFG_ETH_MII : Select the Media Independent Interface - * @arg SYSCFG_ETH_RMII: Select the Reduced Media Independent Interface - * @retval None - */ -void HAL_SYSCFG_ETHInterfaceSelect(uint32_t SYSCFG_ETHInterface) -{ - /* Check the parameter */ - assert_param(IS_SYSCFG_ETHERNET_CONFIG(SYSCFG_ETHInterface)); - - MODIFY_REG(SYSCFG->PMCR, SYSCFG_PMCR_EPIS_SEL, (uint32_t)(SYSCFG_ETHInterface)); -} -#endif /* SYSCFG_PMCR_EPIS_SEL */ - -/** - * @brief Analog Switch control for dual analog pads. - * @param SYSCFG_AnalogSwitch: Selects the analog pad - * This parameter can be one or a combination of the following values: - * @arg SYSCFG_SWITCH_PA0 : Select PA0 analog switch - * @arg SYSCFG_SWITCH_PA1: Select PA1 analog switch - * @arg SYSCFG_SWITCH_PC2 : Select PC2 analog switch - * @arg SYSCFG_SWITCH_PC3: Select PC3 analog switch - * @param SYSCFG_SwitchState: Open or Close the analog switch between dual pads (PXn and PXn_C) - * This parameter can be one or a combination of the following values: - * @arg SYSCFG_SWITCH_PA0_OPEN - * @arg SYSCFG_SWITCH_PA0_CLOSE - * @arg SYSCFG_SWITCH_PA1_OPEN - * @arg SYSCFG_SWITCH_PA1_CLOSE - * @arg SYSCFG_SWITCH_PC2_OPEN - * @arg SYSCFG_SWITCH_PC2_CLOSE - * @arg SYSCFG_SWITCH_PC3_OPEN - * @arg SYSCFG_SWITCH_PC3_CLOSE - * @retval None - */ - -void HAL_SYSCFG_AnalogSwitchConfig(uint32_t SYSCFG_AnalogSwitch , uint32_t SYSCFG_SwitchState ) -{ - /* Check the parameter */ - assert_param(IS_SYSCFG_ANALOG_SWITCH(SYSCFG_AnalogSwitch)); - assert_param(IS_SYSCFG_SWITCH_STATE(SYSCFG_SwitchState)); - - MODIFY_REG(SYSCFG->PMCR, (uint32_t) SYSCFG_AnalogSwitch, (uint32_t)(SYSCFG_SwitchState)); -} - -#if defined(SYSCFG_PMCR_BOOSTEN) -/** - * @brief Enables the booster to reduce the total harmonic distortion of the analog - * switch when the supply voltage is lower than 2.7 V. - * @note Activating the booster allows to guaranty the analog switch AC performance - * when the supply voltage is below 2.7 V: in this case, the analog switch - * performance is the same on the full voltage range - * @retval None - */ -void HAL_SYSCFG_EnableBOOST(void) -{ - SET_BIT(SYSCFG->PMCR, SYSCFG_PMCR_BOOSTEN) ; -} - -/** - * @brief Disables the booster - * @note Activating the booster allows to guaranty the analog switch AC performance - * when the supply voltage is below 2.7 V: in this case, the analog switch - * performance is the same on the full voltage range - * @retval None - */ -void HAL_SYSCFG_DisableBOOST(void) -{ - CLEAR_BIT(SYSCFG->PMCR, SYSCFG_PMCR_BOOSTEN) ; -} -#endif /* SYSCFG_PMCR_BOOSTEN */ - -#if defined (SYSCFG_UR2_BOOT_ADD0) || defined (SYSCFG_UR2_BCM7_ADD0) -/** - * @brief BootCM7 address 0 configuration - * @param BootRegister :Specifies the Boot Address register (Address0 or Address1) - * This parameter can be one of the following values: - * @arg SYSCFG_BOOT_ADDR0 : Select the boot address0 - * @arg SYSCFG_BOOT_ADDR1: Select the boot address1 - * @param BootAddress :Specifies the CM7 Boot Address to be loaded in Address0 or Address1 - * @retval None - */ -void HAL_SYSCFG_CM7BootAddConfig(uint32_t BootRegister, uint32_t BootAddress) -{ - /* Check the parameters */ - assert_param(IS_SYSCFG_BOOT_REGISTER(BootRegister)); - assert_param(IS_SYSCFG_BOOT_ADDRESS(BootAddress)); - if ( BootRegister == SYSCFG_BOOT_ADDR0 ) - { - /* Configure CM7 BOOT ADD0 */ -#if defined(DUAL_CORE) - MODIFY_REG(SYSCFG->UR2, SYSCFG_UR2_BCM7_ADD0, ((BootAddress >> 16) << SYSCFG_UR2_BCM7_ADD0_Pos)); -#else - MODIFY_REG(SYSCFG->UR2, SYSCFG_UR2_BOOT_ADD0, ((BootAddress >> 16) << SYSCFG_UR2_BOOT_ADD0_Pos)); -#endif /*DUAL_CORE*/ - } - else - { - /* Configure CM7 BOOT ADD1 */ -#if defined(DUAL_CORE) - MODIFY_REG(SYSCFG->UR3, SYSCFG_UR3_BCM7_ADD1, (BootAddress >> 16)); -#else - MODIFY_REG(SYSCFG->UR3, SYSCFG_UR3_BOOT_ADD1, (BootAddress >> 16)); -#endif /*DUAL_CORE*/ - } -} -#endif /* SYSCFG_UR2_BOOT_ADD0 || SYSCFG_UR2_BCM7_ADD0 */ - -#if defined(DUAL_CORE) -/** - * @brief BootCM4 address 0 configuration - * @param BootRegister :Specifies the Boot Address register (Address0 or Address1) - * This parameter can be one of the following values: - * @arg SYSCFG_BOOT_ADDR0 : Select the boot address0 - * @arg SYSCFG_BOOT_ADDR1: Select the boot address1 - * @param BootAddress :Specifies the CM4 Boot Address to be loaded in Address0 or Address1 - * @retval None - */ -void HAL_SYSCFG_CM4BootAddConfig(uint32_t BootRegister, uint32_t BootAddress) -{ - /* Check the parameters */ - assert_param(IS_SYSCFG_BOOT_REGISTER(BootRegister)); - assert_param(IS_SYSCFG_BOOT_ADDRESS(BootAddress)); - - if ( BootRegister == SYSCFG_BOOT_ADDR0 ) - { - /* Configure CM4 BOOT ADD0 */ - MODIFY_REG(SYSCFG->UR3, SYSCFG_UR3_BCM4_ADD0, ((BootAddress >> 16)<< SYSCFG_UR3_BCM4_ADD0_Pos)); - } - - else - { - /* Configure CM4 BOOT ADD1 */ - MODIFY_REG(SYSCFG->UR4, SYSCFG_UR4_BCM4_ADD1, (BootAddress >> 16)); - } -} - -/** - * @brief Enables the Cortex-M7 boot - * @retval None - */ -void HAL_SYSCFG_EnableCM7BOOT(void) -{ - SET_BIT(SYSCFG->UR1, SYSCFG_UR1_BCM7); -} - -/** - * @brief Disables the Cortex-M7 boot - * @note Disabling the boot will gate the CPU clock - * @retval None - */ -void HAL_SYSCFG_DisableCM7BOOT(void) -{ - CLEAR_BIT(SYSCFG->UR1, SYSCFG_UR1_BCM7) ; -} - -/** - * @brief Enables the Cortex-M4 boot - * @retval None - */ -void HAL_SYSCFG_EnableCM4BOOT(void) -{ - SET_BIT(SYSCFG->UR1, SYSCFG_UR1_BCM4); -} - -/** - * @brief Disables the Cortex-M4 boot - * @note Disabling the boot will gate the CPU clock - * @retval None - */ -void HAL_SYSCFG_DisableCM4BOOT(void) -{ - CLEAR_BIT(SYSCFG->UR1, SYSCFG_UR1_BCM4); -} -#endif /*DUAL_CORE*/ -/** - * @brief Enables the I/O Compensation Cell. - * @note The I/O compensation cell can be used only when the device supply - * voltage ranges from 1.62 to 2.0 V and from 2.7 to 3.6 V. - * @retval None - */ -void HAL_EnableCompensationCell(void) -{ - SET_BIT(SYSCFG->CCCSR, SYSCFG_CCCSR_EN) ; -} - -/** - * @brief Power-down the I/O Compensation Cell. - * @note The I/O compensation cell can be used only when the device supply - * voltage ranges from 1.62 to 2.0 V and from 2.7 to 3.6 V. - * @retval None - */ -void HAL_DisableCompensationCell(void) -{ - CLEAR_BIT(SYSCFG->CCCSR, SYSCFG_CCCSR_EN); -} - - -/** - * @brief To Enable optimize the I/O speed when the product voltage is low. - * @note This bit is active only if PRODUCT_BELOW_25V user option bit is set. It must be - * used only if the product supply voltage is below 2.5 V. Setting this bit when VDD is - * higher than 2.5 V might be destructive. - * @retval None - */ -void HAL_SYSCFG_EnableIOSpeedOptimize(void) -{ -#if defined(SYSCFG_CCCSR_HSLV) - SET_BIT(SYSCFG->CCCSR, SYSCFG_CCCSR_HSLV); -#else - SET_BIT(SYSCFG->CCCSR, (SYSCFG_CCCSR_HSLV0| SYSCFG_CCCSR_HSLV1 | SYSCFG_CCCSR_HSLV2 | SYSCFG_CCCSR_HSLV3)); -#endif /* SYSCFG_CCCSR_HSLV */ -} - -/** - * @brief To Disable optimize the I/O speed when the product voltage is low. - * @note This bit is active only if PRODUCT_BELOW_25V user option bit is set. It must be - * used only if the product supply voltage is below 2.5 V. Setting this bit when VDD is - * higher than 2.5 V might be destructive. - * @retval None - */ -void HAL_SYSCFG_DisableIOSpeedOptimize(void) -{ -#if defined(SYSCFG_CCCSR_HSLV) - CLEAR_BIT(SYSCFG->CCCSR, SYSCFG_CCCSR_HSLV); -#else - CLEAR_BIT(SYSCFG->CCCSR, (SYSCFG_CCCSR_HSLV0| SYSCFG_CCCSR_HSLV1 | SYSCFG_CCCSR_HSLV2 | SYSCFG_CCCSR_HSLV3)); -#endif /* SYSCFG_CCCSR_HSLV */ -} - -/** - * @brief Code selection for the I/O Compensation cell - * @param SYSCFG_CompCode: Selects the code to be applied for the I/O compensation cell - * This parameter can be one of the following values: - * @arg SYSCFG_CELL_CODE : Select Code from the cell (available in the SYSCFG_CCVR) - * @arg SYSCFG_REGISTER_CODE: Select Code from the SYSCFG compensation cell code register (SYSCFG_CCCR) - * @retval None - */ -void HAL_SYSCFG_CompensationCodeSelect(uint32_t SYSCFG_CompCode) -{ - /* Check the parameter */ - assert_param(IS_SYSCFG_CODE_SELECT(SYSCFG_CompCode)); - MODIFY_REG(SYSCFG->CCCSR, SYSCFG_CCCSR_CS, (uint32_t)(SYSCFG_CompCode)); -} - -/** - * @brief Code selection for the I/O Compensation cell - * @param SYSCFG_PMOSCode: PMOS compensation code - * This code is applied to the I/O compensation cell when the CS bit of the - * SYSCFG_CMPCR is set - * @param SYSCFG_NMOSCode: NMOS compensation code - * This code is applied to the I/O compensation cell when the CS bit of the - * SYSCFG_CMPCR is set - * @retval None - */ -void HAL_SYSCFG_CompensationCodeConfig(uint32_t SYSCFG_PMOSCode, uint32_t SYSCFG_NMOSCode ) -{ - /* Check the parameter */ - assert_param(IS_SYSCFG_CODE_CONFIG(SYSCFG_PMOSCode)); - assert_param(IS_SYSCFG_CODE_CONFIG(SYSCFG_NMOSCode)); - MODIFY_REG(SYSCFG->CCCR, SYSCFG_CCCR_NCC|SYSCFG_CCCR_PCC, (((uint32_t)(SYSCFG_PMOSCode)<< 4)|(uint32_t)(SYSCFG_NMOSCode)) ); -} - -#if defined(SYSCFG_CCCR_NCC_MMC) -/** - * @brief Code selection for the I/O Compensation cell - * @param SYSCFG_PMOSCode: VDDMMC PMOS compensation code - * This code is applied to the I/O compensation cell when the CS bit of the - * SYSCFG_CMPCR is set - * @param SYSCFG_NMOSCode: VDDMMC NMOS compensation code - * This code is applied to the I/O compensation cell when the CS bit of the - * SYSCFG_CMPCR is set - * @retval None - */ -void HAL_SYSCFG_VDDMMC_CompensationCodeConfig(uint32_t SYSCFG_PMOSCode, uint32_t SYSCFG_NMOSCode ) -{ - /* Check the parameter */ - assert_param(IS_SYSCFG_CODE_CONFIG(SYSCFG_PMOSCode)); - assert_param(IS_SYSCFG_CODE_CONFIG(SYSCFG_NMOSCode)); - MODIFY_REG(SYSCFG->CCCR, (SYSCFG_CCCR_NCC_MMC | SYSCFG_CCCR_PCC_MMC), (((uint32_t)(SYSCFG_PMOSCode)<< 4)|(uint32_t)(SYSCFG_NMOSCode)) ); -} -#endif /* SYSCFG_CCCR_NCC_MMC */ - -#if defined(SYSCFG_ADC2ALT_ADC2_ROUT0) -/** @brief SYSCFG ADC2 internal input alternate connection macros - * @param Adc2AltRout0 This parameter can be a value of : - * @arg @ref SYSCFG_ADC2_ROUT0_DAC1_1 DAC1_out1 connected to ADC2 VINP[16] - * @arg @ref SYSCFG_ADC2_ROUT0_VBAT4 VBAT/4 connected to ADC2 VINP[16] - */ -void HAL_SYSCFG_ADC2ALT_Rout0Config(uint32_t Adc2AltRout0) -{ - /* Check the parameters */ - assert_param(IS_SYSCFG_ADC2ALT_ROUT0(Adc2AltRout0)); - - MODIFY_REG(SYSCFG->ADC2ALT, SYSCFG_ADC2ALT_ADC2_ROUT0, Adc2AltRout0); -} -#endif /*SYSCFG_ADC2ALT_ADC2_ROUT0*/ - -#if defined(SYSCFG_ADC2ALT_ADC2_ROUT1) -/** @brief SYSCFG ADC2 internal input alternate connection macros - * @param Adc2AltRout1 This parameter can be a value of : - * @arg @ref SYSCFG_ADC2_ROUT1_DAC1_2 DAC1_out2 connected to ADC2 VINP[17] - * @arg @ref SYSCFG_ADC2_ROUT1_VREFINT VREFINT connected to ADC2 VINP[17] - */ -void HAL_SYSCFG_ADC2ALT_Rout1Config(uint32_t Adc2AltRout1) -{ - /* Check the parameters */ - assert_param(IS_SYSCFG_ADC2ALT_ROUT1(Adc2AltRout1)); - - MODIFY_REG(SYSCFG->ADC2ALT, SYSCFG_ADC2ALT_ADC2_ROUT1, Adc2AltRout1); -} -#endif /*SYSCFG_ADC2ALT_ADC2_ROUT1*/ - -/** - * @brief Enable the Debug Module during Domain1/CDomain SLEEP mode - * @retval None - */ -void HAL_DBGMCU_EnableDBGSleepMode(void) -{ - SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_SLEEPD1); -} - -/** - * @brief Disable the Debug Module during Domain1/CDomain SLEEP mode - * @retval None - */ -void HAL_DBGMCU_DisableDBGSleepMode(void) -{ - CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_SLEEPD1); -} - - -/** - * @brief Enable the Debug Module during Domain1/CDomain STOP mode - * @retval None - */ -void HAL_DBGMCU_EnableDBGStopMode(void) -{ - SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STOPD1); -} - -/** - * @brief Disable the Debug Module during Domain1/CDomain STOP mode - * @retval None - */ -void HAL_DBGMCU_DisableDBGStopMode(void) -{ - CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STOPD1); -} - -/** - * @brief Enable the Debug Module during Domain1/CDomain STANDBY mode - * @retval None - */ -void HAL_DBGMCU_EnableDBGStandbyMode(void) -{ - SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STANDBYD1); -} - -/** - * @brief Disable the Debug Module during Domain1/CDomain STANDBY mode - * @retval None - */ -void HAL_DBGMCU_DisableDBGStandbyMode(void) -{ - CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STANDBYD1); -} - -#if defined(DUAL_CORE) -/** - * @brief Enable the Debug Module during Domain1 SLEEP mode - * @retval None - */ -void HAL_EnableDomain2DBGSleepMode(void) -{ - SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_SLEEPD2); -} - -/** - * @brief Disable the Debug Module during Domain2 SLEEP mode - * @retval None - */ -void HAL_DisableDomain2DBGSleepMode(void) -{ - CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_SLEEPD2); -} - -/** - * @brief Enable the Debug Module during Domain2 STOP mode - * @retval None - */ -void HAL_EnableDomain2DBGStopMode(void) -{ - SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STOPD2); -} - -/** - * @brief Disable the Debug Module during Domain2 STOP mode - * @retval None - */ -void HAL_DisableDomain2DBGStopMode(void) -{ - CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STOPD2); -} - -/** - * @brief Enable the Debug Module during Domain2 STANDBY mode - * @retval None - */ -void HAL_EnableDomain2DBGStandbyMode(void) -{ - SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STANDBYD2); -} - -/** - * @brief Disable the Debug Module during Domain2 STANDBY mode - * @retval None - */ -void HAL_DisableDomain2DBGStandbyMode(void) -{ - CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STANDBYD2); -} -#endif /*DUAL_CORE*/ - -#if defined(DBGMCU_CR_DBG_STOPD3) -/** - * @brief Enable the Debug Module during Domain3/SRDomain STOP mode - * @retval None - */ -void HAL_EnableDomain3DBGStopMode(void) -{ - SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STOPD3); -} - -/** - * @brief Disable the Debug Module during Domain3/SRDomain STOP mode - * @retval None - */ -void HAL_DisableDomain3DBGStopMode(void) -{ - CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STOPD3); -} -#endif /*DBGMCU_CR_DBG_STOPD3*/ - -#if defined(DBGMCU_CR_DBG_STANDBYD3) -/** - * @brief Enable the Debug Module during Domain3/SRDomain STANDBY mode - * @retval None - */ -void HAL_EnableDomain3DBGStandbyMode(void) -{ - SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STANDBYD3); -} - -/** - * @brief Disable the Debug Module during Domain3/SRDomain STANDBY mode - * @retval None - */ -void HAL_DisableDomain3DBGStandbyMode(void) -{ - CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STANDBYD3); -} -#endif /*DBGMCU_CR_DBG_STANDBYD3*/ - -/** - * @brief Set the FMC Memory Mapping Swapping config. - * @param BankMapConfig: Defines the FMC Bank mapping configuration. This parameter can be - FMC_SWAPBMAP_DISABLE, FMC_SWAPBMAP_SDRAM_SRAM, FMC_SWAPBMAP_SDRAMB2 - * @retval HAL state - */ -void HAL_SetFMCMemorySwappingConfig(uint32_t BankMapConfig) -{ - /* Check the parameter */ - assert_param(IS_FMC_SWAPBMAP_MODE(BankMapConfig)); - MODIFY_REG(FMC_Bank1_R->BTCR[0], FMC_BCR1_BMAP, BankMapConfig); -} - -/** - * @brief Get FMC Bank mapping mode. - * @retval The FMC Bank mapping mode. This parameter can be - FMC_SWAPBMAP_DISABLE, FMC_SWAPBMAP_SDRAM_SRAM, FMC_SWAPBMAP_SDRAMB2 -*/ -uint32_t HAL_GetFMCMemorySwappingConfig(void) -{ - return READ_BIT(FMC_Bank1_R->BTCR[0], FMC_BCR1_BMAP); -} - -/** - * @brief Configure the EXTI input event line edge - * @note No edge configuration for direct lines but for configurable lines:(EXTI_LINE0..EXTI_LINE21), - * EXTI_LINE49,EXTI_LINE51,EXTI_LINE82,EXTI_LINE84,EXTI_LINE85 and EXTI_LINE86. - * @param EXTI_Line: Specifies the EXTI LINE, it can be one of the following values, - * (EXTI_LINE0....EXTI_LINE87)excluding :line45, line81,line83 which are reserved - * @param EXTI_Edge: Specifies EXTI line Edge used. - * This parameter can be one of the following values : - * @arg EXTI_RISING_EDGE : Configurable line, with Rising edge trigger detection - * @arg EXTI_FALLING_EDGE: Configurable line, with Falling edge trigger detection - * @retval None - */ -void HAL_EXTI_EdgeConfig(uint32_t EXTI_Line , uint32_t EXTI_Edge ) -{ - /* Check the parameter */ - assert_param(IS_HAL_EXTI_CONFIG_LINE(EXTI_Line)); - assert_param(IS_EXTI_EDGE_LINE(EXTI_Edge)); - - /* Clear Rising Falling edge configuration */ - CLEAR_BIT(*(__IO uint32_t *) (((uint32_t) &(EXTI->FTSR1)) + ((EXTI_Line >> 5 ) * 0x20UL)), (uint32_t)(1UL << (EXTI_Line & 0x1FUL))); - CLEAR_BIT( *(__IO uint32_t *) (((uint32_t) &(EXTI->RTSR1)) + ((EXTI_Line >> 5 ) * 0x20UL)), (uint32_t)(1UL << (EXTI_Line & 0x1FUL))); - - if( (EXTI_Edge & EXTI_RISING_EDGE) == EXTI_RISING_EDGE) - { - SET_BIT( *(__IO uint32_t *) (((uint32_t) &(EXTI->RTSR1)) + ((EXTI_Line >> 5 ) * 0x20UL)), (uint32_t)(1UL << (EXTI_Line & 0x1FUL))); - } - if( (EXTI_Edge & EXTI_FALLING_EDGE) == EXTI_FALLING_EDGE) - { - SET_BIT(*(__IO uint32_t *) (((uint32_t) &(EXTI->FTSR1)) + ((EXTI_Line >> 5 ) * 0x20UL)), (uint32_t)(1UL << (EXTI_Line & 0x1FUL))); - } -} - -/** - * @brief Generates a Software interrupt on selected EXTI line. - * @param EXTI_Line: Specifies the EXTI LINE, it can be one of the following values, - * (EXTI_LINE0..EXTI_LINE21),EXTI_LINE49,EXTI_LINE51,EXTI_LINE82,EXTI_LINE84,EXTI_LINE85 and EXTI_LINE86. - * @retval None - */ -void HAL_EXTI_GenerateSWInterrupt(uint32_t EXTI_Line) -{ - /* Check the parameters */ - assert_param(IS_HAL_EXTI_CONFIG_LINE(EXTI_Line)); - - SET_BIT(*(__IO uint32_t *) (((uint32_t) &(EXTI->SWIER1)) + ((EXTI_Line >> 5 ) * 0x20UL)), (uint32_t)(1UL << (EXTI_Line & 0x1FUL))); -} - - -/** - * @brief Clears the EXTI's line pending flags for Domain D1 - * @param EXTI_Line: Specifies the EXTI LINE, it can be one of the following values, - * (EXTI_LINE0....EXTI_LINE87)excluding :line45, line81,line83 which are reserved - * @retval None - */ -void HAL_EXTI_D1_ClearFlag(uint32_t EXTI_Line) -{ - /* Check the parameters */ - assert_param(IS_EXTI_D1_LINE(EXTI_Line)); - WRITE_REG(*(__IO uint32_t *) (((uint32_t) &(EXTI_D1->PR1)) + ((EXTI_Line >> 5 ) * 0x10UL)), (uint32_t)(1UL << (EXTI_Line & 0x1FUL))); - -} - -#if defined(DUAL_CORE) -/** - * @brief Clears the EXTI's line pending flags for Domain D2 - * @param EXTI_Line: Specifies the EXTI LINE, it can be one of the following values, - * (EXTI_LINE0....EXTI_LINE87)excluding :line45, line81,line83 which are reserved - * @retval None - */ -void HAL_EXTI_D2_ClearFlag(uint32_t EXTI_Line) -{ - /* Check the parameters */ - assert_param(IS_EXTI_D2_LINE(EXTI_Line)); - WRITE_REG(*(__IO uint32_t *) (((uint32_t) &(EXTI_D2->PR1)) + ((EXTI_Line >> 5 ) * 0x10UL)), (uint32_t)(1UL << (EXTI_Line & 0x1FUL))); -} - -#endif /*DUAL_CORE*/ -/** - * @brief Configure the EXTI input event line for Domain D1 - * @param EXTI_Line: Specifies the EXTI LINE, it can be one of the following values, - * (EXTI_LINE0....EXTI_LINE87)excluding :line45, line81,line83 which are reserved - * @param EXTI_Mode: Specifies which EXTI line is used as interrupt or an event. - * This parameter can be one or a combination of the following values : - * @arg EXTI_MODE_IT : Interrupt Mode selected - * @arg EXTI_MODE_EVT : Event Mode selected - * @param EXTI_LineCmd controls (Enable/Disable) the EXTI line. - - * @retval None - */ -void HAL_EXTI_D1_EventInputConfig(uint32_t EXTI_Line , uint32_t EXTI_Mode, uint32_t EXTI_LineCmd ) -{ - /* Check the parameter */ - assert_param(IS_EXTI_D1_LINE(EXTI_Line)); - assert_param(IS_EXTI_MODE_LINE(EXTI_Mode)); - - if( (EXTI_Mode & EXTI_MODE_IT) == EXTI_MODE_IT) - { - if( EXTI_LineCmd == 0UL) - { - /* Clear EXTI line configuration */ - CLEAR_BIT(*(__IO uint32_t *) (((uint32_t) &(EXTI_D1->IMR1)) + ((EXTI_Line >> 5 ) * 0x10UL)),(uint32_t)(1UL << (EXTI_Line & 0x1FUL)) ); - } - else - { - SET_BIT(*(__IO uint32_t *) (((uint32_t) &(EXTI_D1->IMR1)) + ((EXTI_Line >> 5 ) * 0x10UL)), (uint32_t)(1UL << (EXTI_Line & 0x1FUL))); - } - } - - if( (EXTI_Mode & EXTI_MODE_EVT) == EXTI_MODE_EVT) - { - if( EXTI_LineCmd == 0UL) - { - /* Clear EXTI line configuration */ - CLEAR_BIT( *(__IO uint32_t *) (((uint32_t) &(EXTI_D1->EMR1)) + ((EXTI_Line >> 5 ) * 0x10UL)), (uint32_t)(1UL << (EXTI_Line & 0x1FUL))); - } - else - { - SET_BIT( *(__IO uint32_t *) (((uint32_t) &(EXTI_D1->EMR1)) + ((EXTI_Line >> 5 ) * 0x10UL)), (uint32_t)(1UL << (EXTI_Line & 0x1FUL))); - } - } -} - -#if defined(DUAL_CORE) -/** - * @brief Configure the EXTI input event line for Domain D2 - * @param EXTI_Line: Specifies the EXTI LINE, it can be one of the following values, - * (EXTI_LINE0....EXTI_LINE87)excluding :line45, line81,line83 which are reserved - * @param EXTI_Mode: Specifies which EXTI line is used as interrupt or an event. - * This parameter can be one or a combination of the following values : - * @arg EXTI_MODE_IT : Interrupt Mode selected - * @arg EXTI_MODE_EVT : Event Mode selected - * @param EXTI_LineCmd controls (Enable/Disable) the EXTI line. - - * @retval None - */ -void HAL_EXTI_D2_EventInputConfig(uint32_t EXTI_Line , uint32_t EXTI_Mode, uint32_t EXTI_LineCmd ) -{ - /* Check the parameter */ - assert_param(IS_EXTI_D2_LINE(EXTI_Line)); - assert_param(IS_EXTI_MODE_LINE(EXTI_Mode)); - - if( (EXTI_Mode & EXTI_MODE_IT) == EXTI_MODE_IT) - { - if( EXTI_LineCmd == 0UL) - { - /* Clear EXTI line configuration */ - CLEAR_BIT(*(__IO uint32_t *) (((uint32_t) &(EXTI_D2->IMR1)) + ((EXTI_Line >> 5 ) * 0x10UL)),(uint32_t)(1UL << (EXTI_Line & 0x1FUL)) ); - } - else - { - SET_BIT(*(__IO uint32_t *) (((uint32_t) &(EXTI_D2->IMR1)) + ((EXTI_Line >> 5 ) * 0x10UL)), (uint32_t)(1UL << (EXTI_Line & 0x1FUL))); - } - } - - if( (EXTI_Mode & EXTI_MODE_EVT) == EXTI_MODE_EVT) - { - if( EXTI_LineCmd == 0UL) - { - /* Clear EXTI line configuration */ - CLEAR_BIT( *(__IO uint32_t *) (((uint32_t) &(EXTI_D2->EMR1)) + ((EXTI_Line >> 5 ) * 0x10UL)), (uint32_t)(1UL << (EXTI_Line & 0x1FUL))); - } - else - { - SET_BIT( *(__IO uint32_t *) (((uint32_t) &(EXTI_D2->EMR1)) + ((EXTI_Line >> 5 ) * 0x10UL)), (uint32_t)(1UL << (EXTI_Line & 0x1FUL))); - } - } -} -#endif /*DUAL_CORE*/ - -/** - * @brief Configure the EXTI input event line for Domain D3 - * @param EXTI_Line: Specifies the EXTI LINE, it can be one of the following values, - * (EXTI_LINE0...EXTI_LINE15),(EXTI_LINE19...EXTI_LINE21),EXTI_LINE25, EXTI_LINE34, - * EXTI_LINE35,EXTI_LINE41,(EXTI_LINE48...EXTI_LINE53) - * @param EXTI_LineCmd controls (Enable/Disable) the EXTI line. - * @param EXTI_ClearSrc: Specifies the clear source of D3 pending event. - * This parameter can be one of the following values : - * @arg BDMA_CH6_CLEAR : BDMA ch6 event selected as D3 domain pendclear source - * @arg BDMA_CH7_CLEAR : BDMA ch7 event selected as D3 domain pendclear source - * @arg LPTIM4_OUT_CLEAR : LPTIM4 out selected as D3 domain pendclear source - * @arg LPTIM5_OUT_CLEAR : LPTIM5 out selected as D3 domain pendclear source - * @retval None - */ -void HAL_EXTI_D3_EventInputConfig(uint32_t EXTI_Line, uint32_t EXTI_LineCmd , uint32_t EXTI_ClearSrc ) -{ - __IO uint32_t *pRegv; - - /* Check the parameter */ - assert_param(IS_EXTI_D3_LINE(EXTI_Line)); - assert_param(IS_EXTI_D3_CLEAR(EXTI_ClearSrc)); - - if( EXTI_LineCmd == 0UL) - { - /* Clear EXTI line configuration */ - CLEAR_BIT(*(__IO uint32_t *) (((uint32_t) &(EXTI->D3PMR1)) + ((EXTI_Line >> 5 ) * 0x20UL)),(uint32_t)(1UL << (EXTI_Line & 0x1FUL)) ); - } - else - { - SET_BIT(*(__IO uint32_t *) (((uint32_t) &(EXTI->D3PMR1)) +((EXTI_Line >> 5 ) * 0x20UL)), (uint32_t)(1UL << (EXTI_Line & 0x1FUL))); - } - - if(((EXTI_Line>>4)%2UL) == 0UL) - { - pRegv = (__IO uint32_t *) (((uint32_t) &(EXTI->D3PCR1L)) + ((EXTI_Line >> 5 ) * 0x20UL)); - } - else - { - pRegv = (__IO uint32_t *) (((uint32_t) &(EXTI->D3PCR1H)) + ((EXTI_Line >> 5 ) * 0x20UL)); - } - MODIFY_REG(*pRegv, (uint32_t)(3UL << ((EXTI_Line*2UL) & 0x1FUL)), (uint32_t)(EXTI_ClearSrc << ((EXTI_Line*2UL) & 0x1FUL))); - -} - - - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - - diff --git a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c b/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c deleted file mode 100644 index 05730c1..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c +++ /dev/null @@ -1,531 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_cortex.c - * @author MCD Application Team - * @brief CORTEX HAL module driver. - * This file provides firmware functions to manage the following - * functionalities of the CORTEX: - * + Initialization and de-initialization functions - * + Peripheral Control functions - * - @verbatim - ============================================================================== - ##### How to use this driver ##### - ============================================================================== - - [..] - *** How to configure Interrupts using CORTEX HAL driver *** - =========================================================== - [..] - This section provides functions allowing to configure the NVIC interrupts (IRQ). - The Cortex-M exceptions are managed by CMSIS functions. - - (#) Configure the NVIC Priority Grouping using HAL_NVIC_SetPriorityGrouping() - function according to the following table. - (#) Configure the priority of the selected IRQ Channels using HAL_NVIC_SetPriority(). - (#) Enable the selected IRQ Channels using HAL_NVIC_EnableIRQ(). - (#) please refer to programming manual for details in how to configure priority. - - -@- When the NVIC_PRIORITYGROUP_0 is selected, IRQ preemption is no more possible. - The pending IRQ priority will be managed only by the sub priority. - - -@- IRQ priority order (sorted by highest to lowest priority): - (+@) Lowest preemption priority - (+@) Lowest sub priority - (+@) Lowest hardware priority (IRQ number) - - [..] - *** How to configure Systick using CORTEX HAL driver *** - ======================================================== - [..] - Setup SysTick Timer for time base. - - (+) The HAL_SYSTICK_Config() function calls the SysTick_Config() function which - is a CMSIS function that: - (++) Configures the SysTick Reload register with value passed as function parameter. - (++) Configures the SysTick IRQ priority to the lowest value (0x0F). - (++) Resets the SysTick Counter register. - (++) Configures the SysTick Counter clock source to be Core Clock Source (HCLK). - (++) Enables the SysTick Interrupt. - (++) Starts the SysTick Counter. - - (+) You can change the SysTick Clock source to be HCLK_Div8 by calling the macro - HAL_SYSTICK_CLKSourceConfig(SYSTICK_CLKSOURCE_HCLK_DIV8) just after the - HAL_SYSTICK_Config() function call. The HAL_SYSTICK_CLKSourceConfig() macro is defined - inside the stm32h7xx_hal_cortex.h file. - - (+) You can change the SysTick IRQ priority by calling the - HAL_NVIC_SetPriority(SysTick_IRQn,...) function just after the HAL_SYSTICK_Config() function - call. The HAL_NVIC_SetPriority() call the NVIC_SetPriority() function which is a CMSIS function. - - (+) To adjust the SysTick time base, use the following formula: - - Reload Value = SysTick Counter Clock (Hz) x Desired Time base (s) - (++) Reload Value is the parameter to be passed for HAL_SYSTICK_Config() function - (++) Reload Value should not exceed 0xFFFFFF - - @endverbatim - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file in - * the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @defgroup CORTEX CORTEX - * @brief CORTEX HAL module driver - * @{ - */ - -#ifdef HAL_CORTEX_MODULE_ENABLED - -/* Private types -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private constants ---------------------------------------------------------*/ -/* Private macros ------------------------------------------------------------*/ -/* Private functions ---------------------------------------------------------*/ -/* Exported functions --------------------------------------------------------*/ - -/** @defgroup CORTEX_Exported_Functions CORTEX Exported Functions - * @{ - */ - - -/** @defgroup CORTEX_Exported_Functions_Group1 Initialization and de-initialization functions - * @brief Initialization and Configuration functions - * -@verbatim - ============================================================================== - ##### Initialization and de-initialization functions ##### - ============================================================================== - [..] - This section provides the CORTEX HAL driver functions allowing to configure Interrupts - Systick functionalities - -@endverbatim - * @{ - */ - - -/** - * @brief Sets the priority grouping field (preemption priority and subpriority) - * using the required unlock sequence. - * @param PriorityGroup The priority grouping bits length. - * This parameter can be one of the following values: - * @arg NVIC_PRIORITYGROUP_0: 0 bits for preemption priority - * 4 bits for subpriority - * @arg NVIC_PRIORITYGROUP_1: 1 bits for preemption priority - * 3 bits for subpriority - * @arg NVIC_PRIORITYGROUP_2: 2 bits for preemption priority - * 2 bits for subpriority - * @arg NVIC_PRIORITYGROUP_3: 3 bits for preemption priority - * 1 bits for subpriority - * @arg NVIC_PRIORITYGROUP_4: 4 bits for preemption priority - * 0 bits for subpriority - * @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) -{ - /* 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); -} - -/** - * @brief Sets the priority of an interrupt. - * @param IRQn External interrupt number. - * 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 (stm32h7xxxx.h)) - * @param PreemptPriority The preemption priority for the IRQn channel. - * This parameter can be a value between 0 and 15 - * A lower priority value indicates a higher priority - * @param SubPriority the subpriority level for the IRQ channel. - * 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) -{ - uint32_t prioritygroup; - - /* Check the parameters */ - assert_param(IS_NVIC_SUB_PRIORITY(SubPriority)); - assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority)); - - prioritygroup = NVIC_GetPriorityGrouping(); - - NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority)); -} - -/** - * @brief Enables a device specific interrupt in the NVIC interrupt controller. - * @note To configure interrupts priority correctly, the NVIC_PriorityGroupConfig() - * function should be called before. - * @param IRQn External interrupt number. - * 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 (stm32h7xxxx.h)) - * @retval None - */ -void HAL_NVIC_EnableIRQ(IRQn_Type IRQn) -{ - /* Check the parameters */ - assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); - - /* Enable interrupt */ - NVIC_EnableIRQ(IRQn); -} - -/** - * @brief Disables a device specific interrupt in the NVIC interrupt controller. - * @param IRQn External interrupt number. - * 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 (stm32h7xxxx.h)) - * @retval None - */ -void HAL_NVIC_DisableIRQ(IRQn_Type IRQn) -{ - /* Check the parameters */ - assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); - - /* Disable interrupt */ - NVIC_DisableIRQ(IRQn); -} - -/** - * @brief Initiates a system reset request to reset the MCU. - * @retval None - */ -void HAL_NVIC_SystemReset(void) -{ - /* System Reset */ - NVIC_SystemReset(); -} - -/** - * @brief Initializes the System Timer and its interrupt, and starts the System Tick Timer. - * Counter is in free running mode to generate periodic interrupts. - * @param TicksNumb Specifies the ticks Number of ticks between two interrupts. - * @retval status - 0 Function succeeded. - * - 1 Function failed. - */ -uint32_t HAL_SYSTICK_Config(uint32_t TicksNumb) -{ - return SysTick_Config(TicksNumb); -} -/** - * @} - */ - -/** @defgroup CORTEX_Exported_Functions_Group2 Peripheral Control functions - * @brief Cortex control functions - * -@verbatim - ============================================================================== - ##### Peripheral Control functions ##### - ============================================================================== - [..] - This subsection provides a set of functions allowing to control the CORTEX - (NVIC, SYSTICK, MPU) functionalities. - - -@endverbatim - * @{ - */ -#if (__MPU_PRESENT == 1) -/** - * @brief Disables the MPU - * @retval None - */ -void HAL_MPU_Disable(void) -{ - /* Make sure outstanding transfers are done */ - __DMB(); - - /* Disable fault exceptions */ - SCB->SHCSR &= ~SCB_SHCSR_MEMFAULTENA_Msk; - - /* Disable the MPU and clear the control register*/ - MPU->CTRL = 0; -} - -/** - * @brief Enables the MPU - * @param MPU_Control Specifies the control mode of the MPU during hard fault, - * NMI, FAULTMASK and privileged access to the default memory - * This parameter can be one of the following values: - * @arg MPU_HFNMI_PRIVDEF_NONE - * @arg MPU_HARDFAULT_NMI - * @arg MPU_PRIVILEGED_DEFAULT - * @arg MPU_HFNMI_PRIVDEF - * @retval None - */ -void HAL_MPU_Enable(uint32_t MPU_Control) -{ - /* Enable the MPU */ - MPU->CTRL = MPU_Control | MPU_CTRL_ENABLE_Msk; - - /* Enable fault exceptions */ - SCB->SHCSR |= SCB_SHCSR_MEMFAULTENA_Msk; - - /* Ensure MPU setting take effects */ - __DSB(); - __ISB(); -} -/** - * @brief Initializes and configures the Region and the memory to be protected. - * @param MPU_Init Pointer to a MPU_Region_InitTypeDef structure that contains - * the initialization and configuration information. - * @retval None - */ -void HAL_MPU_ConfigRegion(MPU_Region_InitTypeDef *MPU_Init) -{ - /* Check the parameters */ - assert_param(IS_MPU_REGION_NUMBER(MPU_Init->Number)); - assert_param(IS_MPU_REGION_ENABLE(MPU_Init->Enable)); - - /* Set the Region number */ - MPU->RNR = MPU_Init->Number; - - if ((MPU_Init->Enable) != 0UL) - { - /* Check the parameters */ - assert_param(IS_MPU_INSTRUCTION_ACCESS(MPU_Init->DisableExec)); - assert_param(IS_MPU_REGION_PERMISSION_ATTRIBUTE(MPU_Init->AccessPermission)); - assert_param(IS_MPU_TEX_LEVEL(MPU_Init->TypeExtField)); - assert_param(IS_MPU_ACCESS_SHAREABLE(MPU_Init->IsShareable)); - assert_param(IS_MPU_ACCESS_CACHEABLE(MPU_Init->IsCacheable)); - assert_param(IS_MPU_ACCESS_BUFFERABLE(MPU_Init->IsBufferable)); - assert_param(IS_MPU_SUB_REGION_DISABLE(MPU_Init->SubRegionDisable)); - assert_param(IS_MPU_REGION_SIZE(MPU_Init->Size)); - - MPU->RBAR = MPU_Init->BaseAddress; - MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) | - ((uint32_t)MPU_Init->AccessPermission << MPU_RASR_AP_Pos) | - ((uint32_t)MPU_Init->TypeExtField << MPU_RASR_TEX_Pos) | - ((uint32_t)MPU_Init->IsShareable << MPU_RASR_S_Pos) | - ((uint32_t)MPU_Init->IsCacheable << MPU_RASR_C_Pos) | - ((uint32_t)MPU_Init->IsBufferable << MPU_RASR_B_Pos) | - ((uint32_t)MPU_Init->SubRegionDisable << MPU_RASR_SRD_Pos) | - ((uint32_t)MPU_Init->Size << MPU_RASR_SIZE_Pos) | - ((uint32_t)MPU_Init->Enable << MPU_RASR_ENABLE_Pos); - } - else - { - MPU->RBAR = 0x00; - MPU->RASR = 0x00; - } -} -#endif /* __MPU_PRESENT */ - -/** - * @brief Gets the priority grouping field from the NVIC Interrupt Controller. - * @retval Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field) - */ -uint32_t HAL_NVIC_GetPriorityGrouping(void) -{ - /* Get the PRIGROUP[10:8] field value */ - return NVIC_GetPriorityGrouping(); -} - -/** - * @brief Gets the priority of an interrupt. - * @param IRQn External interrupt number. - * 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 (stm32h7xxxx.h)) - * @param PriorityGroup the priority grouping bits length. - * This parameter can be one of the following values: - * @arg NVIC_PRIORITYGROUP_0: 0 bits for preemption priority - * 4 bits for subpriority - * @arg NVIC_PRIORITYGROUP_1: 1 bits for preemption priority - * 3 bits for subpriority - * @arg NVIC_PRIORITYGROUP_2: 2 bits for preemption priority - * 2 bits for subpriority - * @arg NVIC_PRIORITYGROUP_3: 3 bits for preemption priority - * 1 bits for subpriority - * @arg NVIC_PRIORITYGROUP_4: 4 bits for preemption priority - * 0 bits for subpriority - * @param pPreemptPriority Pointer on the Preemptive priority value (starting from 0). - * @param pSubPriority Pointer on the Subpriority value (starting from 0). - * @retval None - */ -void HAL_NVIC_GetPriority(IRQn_Type IRQn, uint32_t PriorityGroup, uint32_t *pPreemptPriority, uint32_t *pSubPriority) -{ - /* Check the parameters */ - assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup)); - /* Get priority for Cortex-M system or device specific interrupts */ - NVIC_DecodePriority(NVIC_GetPriority(IRQn), PriorityGroup, pPreemptPriority, pSubPriority); -} - -/** - * @brief Sets Pending bit of an external interrupt. - * @param IRQn External interrupt number - * 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 (stm32h7xxxx.h)) - * @retval None - */ -void HAL_NVIC_SetPendingIRQ(IRQn_Type IRQn) -{ - /* Check the parameters */ - assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); - - /* Set interrupt pending */ - NVIC_SetPendingIRQ(IRQn); -} - -/** - * @brief Gets Pending Interrupt (reads the pending register in the NVIC - * and returns the pending bit for the specified interrupt). - * @param IRQn External interrupt number. - * 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 (stm32h7xxxx.h)) - * @retval status - 0 Interrupt status is not pending. - * - 1 Interrupt status is pending. - */ -uint32_t HAL_NVIC_GetPendingIRQ(IRQn_Type IRQn) -{ - /* Check the parameters */ - assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); - - /* Return 1 if pending else 0 */ - return NVIC_GetPendingIRQ(IRQn); -} - -/** - * @brief Clears the pending bit of an external interrupt. - * @param IRQn External interrupt number. - * 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 (stm32h7xxxx.h)) - * @retval None - */ -void HAL_NVIC_ClearPendingIRQ(IRQn_Type IRQn) -{ - /* Check the parameters */ - assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); - - /* Clear pending interrupt */ - NVIC_ClearPendingIRQ(IRQn); -} - -/** - * @brief Gets active interrupt ( reads the active register in NVIC and returns the active bit). - * @param IRQn External interrupt number - * 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 (stm32h7xxxx.h)) - * @retval status - 0 Interrupt status is not pending. - * - 1 Interrupt status is pending. - */ -uint32_t HAL_NVIC_GetActive(IRQn_Type IRQn) -{ - /* Check the parameters */ - assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); - - /* Return 1 if active else 0 */ - return NVIC_GetActive(IRQn); -} - -/** - * @brief Configures the SysTick clock source. - * @param CLKSource specifies the SysTick clock source. - * This parameter can be one of the following values: - * @arg SYSTICK_CLKSOURCE_HCLK_DIV8: AHB clock divided by 8 selected as SysTick clock source. - * @arg SYSTICK_CLKSOURCE_HCLK: AHB clock selected as SysTick clock source. - * @retval None - */ -void HAL_SYSTICK_CLKSourceConfig(uint32_t CLKSource) -{ - /* Check the parameters */ - assert_param(IS_SYSTICK_CLK_SOURCE(CLKSource)); - if (CLKSource == SYSTICK_CLKSOURCE_HCLK) - { - SysTick->CTRL |= SYSTICK_CLKSOURCE_HCLK; - } - else - { - SysTick->CTRL &= ~SYSTICK_CLKSOURCE_HCLK; - } -} - -/** - * @brief This function handles SYSTICK interrupt request. - * @retval None - */ -void HAL_SYSTICK_IRQHandler(void) -{ - HAL_SYSTICK_Callback(); -} - -/** - * @brief SYSTICK callback. - * @retval None - */ -__weak void HAL_SYSTICK_Callback(void) -{ - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_SYSTICK_Callback could be implemented in the user file - */ -} - -#if defined(DUAL_CORE) - -/** - * @brief Returns the current CPU ID. - * @retval CPU identifier - */ -uint32_t HAL_GetCurrentCPUID(void) -{ - if (((SCB->CPUID & 0x000000F0U) >> 4 )== 0x7U) - { - return CM7_CPUID; - } - else - { - return CM4_CPUID; - } -} - -#else - -/** -* @brief Returns the current CPU ID. -* @retval CPU identifier -*/ -uint32_t HAL_GetCurrentCPUID(void) -{ - return CM7_CPUID; -} - -#endif /*DUAL_CORE*/ -/** - * @} - */ - -/** - * @} - */ - -#endif /* HAL_CORTEX_MODULE_ENABLED */ -/** - * @} - */ - -/** - * @} - */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c b/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c deleted file mode 100644 index dada223..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c +++ /dev/null @@ -1,2062 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_dma.c - * @author MCD Application Team - * @brief DMA HAL module driver. - * This file provides firmware functions to manage the following - * functionalities of the Direct Memory Access (DMA) peripheral: - * + Initialization and de-initialization functions - * + IO operation functions - * + Peripheral State and errors functions - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - @verbatim - ============================================================================== - ##### How to use this driver ##### - ============================================================================== - [..] - (#) Enable and configure the peripheral to be connected to the DMA Stream - (except for internal SRAM/FLASH memories: no initialization is - necessary) please refer to Reference manual for connection between peripherals - and DMA requests . - - (#) For a given Stream, program the required configuration through the following parameters: - Transfer Direction, Source and Destination data formats, - Circular, Normal or peripheral flow control mode, Stream Priority level, - Source and Destination Increment mode, FIFO mode and its Threshold (if needed), - Burst mode for Source and/or Destination (if needed) using HAL_DMA_Init() function. - - *** Polling mode IO operation *** - ================================= - [..] - (+) Use HAL_DMA_Start() to start DMA transfer after the configuration of Source - address and destination address and the Length of data to be transferred - (+) Use HAL_DMA_PollForTransfer() to poll for the end of current transfer, in this - case a fixed Timeout can be configured by User depending from his application. - - *** Interrupt mode IO operation *** - =================================== - [..] - (+) Configure the DMA interrupt priority using HAL_NVIC_SetPriority() - (+) Enable the DMA IRQ handler using HAL_NVIC_EnableIRQ() - (+) Use HAL_DMA_Start_IT() to start DMA transfer after the configuration of - Source address and destination address and the Length of data to be transferred. In this - case the DMA interrupt is configured - (+) Use HAL_DMA_IRQHandler() called under DMA_IRQHandler() Interrupt subroutine - (+) At the end of data transfer HAL_DMA_IRQHandler() function is executed and user can - add his own function by customization of function pointer XferCpltCallback and - XferErrorCallback (i.e a member of DMA handle structure). - [..] - (#) Use HAL_DMA_GetState() function to return the DMA state and HAL_DMA_GetError() in case of error - detection. - - (#) Use HAL_DMA_Abort() function to abort the current transfer - - -@- In Memory-to-Memory transfer mode, Circular mode is not allowed. - - -@- The FIFO is used mainly to reduce bus usage and to allow data packing/unpacking: it is - possible to set different Data Sizes for the Peripheral and the Memory (ie. you can set - Half-Word data size for the peripheral to access its data register and set Word data size - for the Memory to gain in access time. Each two half words will be packed and written in - a single access to a Word in the Memory). - - -@- When FIFO is disabled, it is not allowed to configure different Data Sizes for Source - and Destination. In this case the Peripheral Data Size will be applied to both Source - and Destination. - - *** DMA HAL driver macros list *** - ============================================= - [..] - Below the list of most used macros in DMA HAL driver. - - (+) __HAL_DMA_ENABLE: Enable the specified DMA Stream. - (+) __HAL_DMA_DISABLE: Disable the specified DMA Stream. - (+) __HAL_DMA_GET_FS: Return the current DMA Stream FIFO filled level. - (+) __HAL_DMA_ENABLE_IT: Enable the specified DMA Stream interrupts. - (+) __HAL_DMA_DISABLE_IT: Disable the specified DMA Stream interrupts. - (+) __HAL_DMA_GET_IT_SOURCE: Check whether the specified DMA Stream interrupt has occurred or not. - - [..] - (@) You can refer to the DMA HAL driver header file for more useful macros. - - @endverbatim - */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @defgroup DMA DMA - * @brief DMA HAL module driver - * @{ - */ - -#ifdef HAL_DMA_MODULE_ENABLED - -/* Private types -------------------------------------------------------------*/ -/** @addtogroup DMA_Private_Types - * @{ - */ -typedef struct -{ - __IO uint32_t ISR; /*!< DMA interrupt status register */ - __IO uint32_t Reserved0; - __IO uint32_t IFCR; /*!< DMA interrupt flag clear register */ -} DMA_Base_Registers; - -typedef struct -{ - __IO uint32_t ISR; /*!< BDMA interrupt status register */ - __IO uint32_t IFCR; /*!< BDMA interrupt flag clear register */ -} BDMA_Base_Registers; -/** - * @} - */ - -/* Private variables ---------------------------------------------------------*/ -/* Private constants ---------------------------------------------------------*/ -/** @addtogroup DMA_Private_Constants - * @{ - */ -#define HAL_TIMEOUT_DMA_ABORT (5U) /* 5 ms */ - -#define BDMA_PERIPH_TO_MEMORY (0x00000000U) /*!< Peripheral to memory direction */ -#define BDMA_MEMORY_TO_PERIPH ((uint32_t)BDMA_CCR_DIR) /*!< Memory to peripheral direction */ -#define BDMA_MEMORY_TO_MEMORY ((uint32_t)BDMA_CCR_MEM2MEM) /*!< Memory to memory direction */ - -/* DMA to BDMA conversion */ -#define DMA_TO_BDMA_DIRECTION(__DMA_DIRECTION__) (((__DMA_DIRECTION__) == DMA_MEMORY_TO_PERIPH)? BDMA_MEMORY_TO_PERIPH: \ - ((__DMA_DIRECTION__) == DMA_MEMORY_TO_MEMORY)? BDMA_MEMORY_TO_MEMORY: \ - BDMA_PERIPH_TO_MEMORY) - -#define DMA_TO_BDMA_PERIPHERAL_INC(__DMA_PERIPHERAL_INC__) ((__DMA_PERIPHERAL_INC__) >> 3U) -#define DMA_TO_BDMA_MEMORY_INC(__DMA_MEMORY_INC__) ((__DMA_MEMORY_INC__) >> 3U) - -#define DMA_TO_BDMA_PDATA_SIZE(__DMA_PDATA_SIZE__) ((__DMA_PDATA_SIZE__) >> 3U) -#define DMA_TO_BDMA_MDATA_SIZE(__DMA_MDATA_SIZE__) ((__DMA_MDATA_SIZE__) >> 3U) - -#define DMA_TO_BDMA_MODE(__DMA_MODE__) ((__DMA_MODE__) >> 3U) - -#define DMA_TO_BDMA_PRIORITY(__DMA_PRIORITY__) ((__DMA_PRIORITY__) >> 4U) - -#if defined(UART9) -#define IS_DMA_UART_USART_REQUEST(__REQUEST__) ((((__REQUEST__) >= DMA_REQUEST_USART1_RX) && ((__REQUEST__) <= DMA_REQUEST_USART3_TX)) || \ - (((__REQUEST__) >= DMA_REQUEST_UART4_RX) && ((__REQUEST__) <= DMA_REQUEST_UART5_TX )) || \ - (((__REQUEST__) >= DMA_REQUEST_USART6_RX) && ((__REQUEST__) <= DMA_REQUEST_USART6_TX)) || \ - (((__REQUEST__) >= DMA_REQUEST_UART7_RX) && ((__REQUEST__) <= DMA_REQUEST_UART8_TX )) || \ - (((__REQUEST__) >= DMA_REQUEST_UART9_RX) && ((__REQUEST__) <= DMA_REQUEST_USART10_TX ))) -#else -#define IS_DMA_UART_USART_REQUEST(__REQUEST__) ((((__REQUEST__) >= DMA_REQUEST_USART1_RX) && ((__REQUEST__) <= DMA_REQUEST_USART3_TX)) || \ - (((__REQUEST__) >= DMA_REQUEST_UART4_RX) && ((__REQUEST__) <= DMA_REQUEST_UART5_TX )) || \ - (((__REQUEST__) >= DMA_REQUEST_USART6_RX) && ((__REQUEST__) <= DMA_REQUEST_USART6_TX)) || \ - (((__REQUEST__) >= DMA_REQUEST_UART7_RX) && ((__REQUEST__) <= DMA_REQUEST_UART8_TX ))) - -#endif -/** - * @} - */ -/* Private macros ------------------------------------------------------------*/ -/* Private functions ---------------------------------------------------------*/ -/** @addtogroup DMA_Private_Functions - * @{ - */ -static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength); -static uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma); -static HAL_StatusTypeDef DMA_CheckFifoParam(DMA_HandleTypeDef *hdma); -static void DMA_CalcDMAMUXChannelBaseAndMask(DMA_HandleTypeDef *hdma); -static void DMA_CalcDMAMUXRequestGenBaseAndMask(DMA_HandleTypeDef *hdma); - -/** - * @} - */ - -/* Exported functions ---------------------------------------------------------*/ -/** @addtogroup DMA_Exported_Functions - * @{ - */ - -/** @addtogroup DMA_Exported_Functions_Group1 - * -@verbatim - =============================================================================== - ##### Initialization and de-initialization functions ##### - =============================================================================== - [..] - This section provides functions allowing to initialize the DMA Stream source - and destination incrementation and data sizes, transfer direction, - circular/normal mode selection, memory-to-memory mode selection and Stream priority value. - [..] - The HAL_DMA_Init() function follows the DMA configuration procedures as described in - reference manual. - The HAL_DMA_DeInit function allows to deinitialize the DMA stream. - -@endverbatim - * @{ - */ - -/** - * @brief Initialize the DMA according to the specified - * parameters in the DMA_InitTypeDef and create the associated handle. - * @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) -{ - uint32_t registerValue; - uint32_t tickstart = HAL_GetTick(); - DMA_Base_Registers *regs_dma; - BDMA_Base_Registers *regs_bdma; - - /* Check the DMA peripheral handle */ - if(hdma == NULL) - { - return HAL_ERROR; - } - - /* Check the parameters */ - assert_param(IS_DMA_ALL_INSTANCE(hdma->Instance)); - assert_param(IS_DMA_DIRECTION(hdma->Init.Direction)); - assert_param(IS_DMA_PERIPHERAL_INC_STATE(hdma->Init.PeriphInc)); - assert_param(IS_DMA_MEMORY_INC_STATE(hdma->Init.MemInc)); - assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(hdma->Init.PeriphDataAlignment)); - assert_param(IS_DMA_MEMORY_DATA_SIZE(hdma->Init.MemDataAlignment)); - assert_param(IS_DMA_MODE(hdma->Init.Mode)); - assert_param(IS_DMA_PRIORITY(hdma->Init.Priority)); - - if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */ - { - assert_param(IS_DMA_REQUEST(hdma->Init.Request)); - assert_param(IS_DMA_FIFO_MODE_STATE(hdma->Init.FIFOMode)); - /* Check the memory burst, peripheral burst and FIFO threshold parameters only - when FIFO mode is enabled */ - if(hdma->Init.FIFOMode != DMA_FIFOMODE_DISABLE) - { - assert_param(IS_DMA_FIFO_THRESHOLD(hdma->Init.FIFOThreshold)); - assert_param(IS_DMA_MEMORY_BURST(hdma->Init.MemBurst)); - assert_param(IS_DMA_PERIPHERAL_BURST(hdma->Init.PeriphBurst)); - } - - /* Change DMA peripheral state */ - hdma->State = HAL_DMA_STATE_BUSY; - - /* Allocate lock resource */ - __HAL_UNLOCK(hdma); - - /* Disable the peripheral */ - __HAL_DMA_DISABLE(hdma); - - /* Check if the DMA Stream is effectively disabled */ - while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U) - { - /* Check for the Timeout */ - if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT) - { - /* Update error code */ - hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT; - - /* Change the DMA state */ - hdma->State = HAL_DMA_STATE_ERROR; - - return HAL_ERROR; - } - } - - /* Get the CR register value */ - registerValue = ((DMA_Stream_TypeDef *)hdma->Instance)->CR; - - /* Clear CHSEL, MBURST, PBURST, PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, CT and DBM bits */ - registerValue &= ((uint32_t)~(DMA_SxCR_MBURST | DMA_SxCR_PBURST | \ - 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 */ - registerValue |= hdma->Init.Direction | - hdma->Init.PeriphInc | hdma->Init.MemInc | - hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment | - hdma->Init.Mode | hdma->Init.Priority; - - /* the Memory burst and peripheral burst are not used when the FIFO is disabled */ - if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE) - { - /* Get memory burst and peripheral burst */ - registerValue |= hdma->Init.MemBurst | hdma->Init.PeriphBurst; - } - - /* Work around for Errata 2.22: UART/USART- DMA transfer lock: DMA stream could be - lock when transferring data to/from USART/UART */ -#if (STM32H7_DEV_ID == 0x450UL) - if((DBGMCU->IDCODE & 0xFFFF0000U) >= 0x20000000U) - { -#endif /* STM32H7_DEV_ID == 0x450UL */ - if(IS_DMA_UART_USART_REQUEST(hdma->Init.Request) != 0U) - { - registerValue |= DMA_SxCR_TRBUFF; - } -#if (STM32H7_DEV_ID == 0x450UL) - } -#endif /* STM32H7_DEV_ID == 0x450UL */ - - /* Write to DMA Stream CR register */ - ((DMA_Stream_TypeDef *)hdma->Instance)->CR = registerValue; - - /* Get the FCR register value */ - registerValue = ((DMA_Stream_TypeDef *)hdma->Instance)->FCR; - - /* Clear Direct mode and FIFO threshold bits */ - registerValue &= (uint32_t)~(DMA_SxFCR_DMDIS | DMA_SxFCR_FTH); - - /* Prepare the DMA Stream FIFO configuration */ - registerValue |= hdma->Init.FIFOMode; - - /* the FIFO threshold is not used when the FIFO mode is disabled */ - if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE) - { - /* Get the FIFO threshold */ - registerValue |= hdma->Init.FIFOThreshold; - - /* Check compatibility between FIFO threshold level and size of the memory burst */ - /* for INCR4, INCR8, INCR16 */ - if(hdma->Init.MemBurst != DMA_MBURST_SINGLE) - { - if (DMA_CheckFifoParam(hdma) != HAL_OK) - { - /* Update error code */ - hdma->ErrorCode = HAL_DMA_ERROR_PARAM; - - /* Change the DMA state */ - hdma->State = HAL_DMA_STATE_READY; - - return HAL_ERROR; - } - } - } - - /* Write to DMA Stream FCR */ - ((DMA_Stream_TypeDef *)hdma->Instance)->FCR = registerValue; - - /* 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 = (DMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma); - - /* Clear all interrupt flags */ - regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU); - } - else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */ - { - if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U) - { - /* Check the request parameter */ - assert_param(IS_BDMA_REQUEST(hdma->Init.Request)); - } - - /* Change DMA peripheral state */ - hdma->State = HAL_DMA_STATE_BUSY; - - /* Allocate lock resource */ - __HAL_UNLOCK(hdma); - - /* Get the CR register value */ - registerValue = ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR; - - /* Clear PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, MEM2MEM, DBM and CT bits */ - registerValue &= ((uint32_t)~(BDMA_CCR_PL | BDMA_CCR_MSIZE | BDMA_CCR_PSIZE | \ - BDMA_CCR_MINC | BDMA_CCR_PINC | BDMA_CCR_CIRC | \ - BDMA_CCR_DIR | BDMA_CCR_MEM2MEM | BDMA_CCR_DBM | \ - BDMA_CCR_CT)); - - /* Prepare the DMA Channel configuration */ - registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) | - DMA_TO_BDMA_PERIPHERAL_INC(hdma->Init.PeriphInc) | - DMA_TO_BDMA_MEMORY_INC(hdma->Init.MemInc) | - DMA_TO_BDMA_PDATA_SIZE(hdma->Init.PeriphDataAlignment) | - DMA_TO_BDMA_MDATA_SIZE(hdma->Init.MemDataAlignment) | - DMA_TO_BDMA_MODE(hdma->Init.Mode) | - DMA_TO_BDMA_PRIORITY(hdma->Init.Priority); - - /* Write to DMA Channel CR register */ - ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR = registerValue; - - /* calculation of the channel index */ - hdma->StreamIndex = (((uint32_t)((uint32_t*)hdma->Instance) - (uint32_t)BDMA_Channel0) / ((uint32_t)BDMA_Channel1 - (uint32_t)BDMA_Channel0)) << 2U; - - /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate - DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */ - regs_bdma = (BDMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma); - - /* Clear all interrupt flags */ - regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU)); - } - else - { - hdma->ErrorCode = HAL_DMA_ERROR_PARAM; - hdma->State = HAL_DMA_STATE_ERROR; - - return HAL_ERROR; - } - - if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */ - { - /* Initialize parameters for DMAMUX channel : - DMAmuxChannel, DMAmuxChannelStatus and DMAmuxChannelStatusMask - */ - DMA_CalcDMAMUXChannelBaseAndMask(hdma); - - if(hdma->Init.Direction == DMA_MEMORY_TO_MEMORY) - { - /* if memory to memory force the request to 0*/ - hdma->Init.Request = DMA_REQUEST_MEM2MEM; - } - - /* Set peripheral request to DMAMUX channel */ - hdma->DMAmuxChannel->CCR = (hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID); - - /* Clear the DMAMUX synchro overrun flag */ - hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask; - - /* Initialize parameters for DMAMUX request generator : - if the DMA request is DMA_REQUEST_GENERATOR0 to DMA_REQUEST_GENERATOR7 - */ - if((hdma->Init.Request >= DMA_REQUEST_GENERATOR0) && (hdma->Init.Request <= DMA_REQUEST_GENERATOR7)) - { - /* Initialize parameters for DMAMUX request generator : - DMAmuxRequestGen, DMAmuxRequestGenStatus and DMAmuxRequestGenStatusMask */ - DMA_CalcDMAMUXRequestGenBaseAndMask(hdma); - - /* Reset the DMAMUX request generator register */ - hdma->DMAmuxRequestGen->RGCR = 0U; - - /* Clear the DMAMUX request generator overrun flag */ - hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask; - } - else - { - hdma->DMAmuxRequestGen = 0U; - hdma->DMAmuxRequestGenStatus = 0U; - hdma->DMAmuxRequestGenStatusMask = 0U; - } - } - - /* Initialize the error code */ - hdma->ErrorCode = HAL_DMA_ERROR_NONE; - - /* Initialize the DMA state */ - hdma->State = HAL_DMA_STATE_READY; - - return HAL_OK; -} - -/** - * @brief DeInitializes the DMA peripheral - * @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) -{ - DMA_Base_Registers *regs_dma; - BDMA_Base_Registers *regs_bdma; - - /* Check the DMA peripheral handle */ - if(hdma == NULL) - { - return HAL_ERROR; - } - - /* Disable the selected DMA Streamx */ - __HAL_DMA_DISABLE(hdma); - - if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */ - { - /* Reset DMA Streamx control register */ - ((DMA_Stream_TypeDef *)hdma->Instance)->CR = 0U; - - /* Reset DMA Streamx number of data to transfer register */ - ((DMA_Stream_TypeDef *)hdma->Instance)->NDTR = 0U; - - /* Reset DMA Streamx peripheral address register */ - ((DMA_Stream_TypeDef *)hdma->Instance)->PAR = 0U; - - /* Reset DMA Streamx memory 0 address register */ - ((DMA_Stream_TypeDef *)hdma->Instance)->M0AR = 0U; - - /* Reset DMA Streamx memory 1 address register */ - ((DMA_Stream_TypeDef *)hdma->Instance)->M1AR = 0U; - - /* Reset DMA Streamx FIFO control register */ - ((DMA_Stream_TypeDef *)hdma->Instance)->FCR = (uint32_t)0x00000021U; - - /* Get DMA steam Base Address */ - regs_dma = (DMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma); - - /* Clear all interrupt flags at correct offset within the register */ - regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU); - } - else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */ - { - /* Reset DMA Channel control register */ - ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR = 0U; - - /* Reset DMA Channel Number of Data to Transfer register */ - ((BDMA_Channel_TypeDef *)hdma->Instance)->CNDTR = 0U; - - /* Reset DMA Channel peripheral address register */ - ((BDMA_Channel_TypeDef *)hdma->Instance)->CPAR = 0U; - - /* Reset DMA Channel memory 0 address register */ - ((BDMA_Channel_TypeDef *)hdma->Instance)->CM0AR = 0U; - - /* Reset DMA Channel memory 1 address register */ - ((BDMA_Channel_TypeDef *)hdma->Instance)->CM1AR = 0U; - - /* Get DMA steam Base Address */ - regs_bdma = (BDMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma); - - /* Clear all interrupt flags at correct offset within the register */ - regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU)); - } - else - { - /* Return error status */ - return HAL_ERROR; - } - -#if defined (BDMA1) /* No DMAMUX available for BDMA1 available on STM32H7Ax/Bx devices only */ - if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */ -#endif /* BDMA1 */ - { - /* Initialize parameters for DMAMUX channel : - DMAmuxChannel, DMAmuxChannelStatus and DMAmuxChannelStatusMask */ - DMA_CalcDMAMUXChannelBaseAndMask(hdma); - - if(hdma->DMAmuxChannel != 0U) - { - /* Resett he DMAMUX channel that corresponds to the DMA stream */ - hdma->DMAmuxChannel->CCR = 0U; - - /* Clear the DMAMUX synchro overrun flag */ - hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask; - } - - if((hdma->Init.Request >= DMA_REQUEST_GENERATOR0) && (hdma->Init.Request <= DMA_REQUEST_GENERATOR7)) - { - /* Initialize parameters for DMAMUX request generator : - DMAmuxRequestGen, DMAmuxRequestGenStatus and DMAmuxRequestGenStatusMask */ - DMA_CalcDMAMUXRequestGenBaseAndMask(hdma); - - /* Reset the DMAMUX request generator register */ - hdma->DMAmuxRequestGen->RGCR = 0U; - - /* Clear the DMAMUX request generator overrun flag */ - hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask; - } - - hdma->DMAmuxRequestGen = 0U; - hdma->DMAmuxRequestGenStatus = 0U; - hdma->DMAmuxRequestGenStatusMask = 0U; - } - - - /* Clean callbacks */ - hdma->XferCpltCallback = NULL; - hdma->XferHalfCpltCallback = NULL; - hdma->XferM1CpltCallback = NULL; - hdma->XferM1HalfCpltCallback = NULL; - hdma->XferErrorCallback = NULL; - hdma->XferAbortCallback = NULL; - - /* Initialize the error code */ - hdma->ErrorCode = HAL_DMA_ERROR_NONE; - - /* Initialize the DMA state */ - hdma->State = HAL_DMA_STATE_RESET; - - /* Release Lock */ - __HAL_UNLOCK(hdma); - - return HAL_OK; -} - -/** - * @} - */ - -/** @addtogroup DMA_Exported_Functions_Group2 - * -@verbatim - =============================================================================== - ##### IO operation functions ##### - =============================================================================== - [..] This section provides functions allowing to: - (+) Configure the source, destination address and data length and Start DMA transfer - (+) Configure the source, destination address and data length and - Start DMA transfer with interrupt - (+) Register and Unregister DMA callbacks - (+) Abort DMA transfer - (+) Poll for transfer complete - (+) Handle DMA interrupt request - -@endverbatim - * @{ - */ - -/** - * @brief Starts the DMA Transfer. - * @param hdma : pointer to a DMA_HandleTypeDef structure that contains - * the configuration information for the specified DMA Stream. - * @param SrcAddress: The source memory Buffer address - * @param DstAddress: The destination memory Buffer address - * @param DataLength: The length of data to be transferred from source to destination - * @retval HAL status - */ -HAL_StatusTypeDef HAL_DMA_Start(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Check the parameters */ - assert_param(IS_DMA_BUFFER_SIZE(DataLength)); - - /* Check the DMA peripheral handle */ - if(hdma == NULL) - { - return HAL_ERROR; - } - - /* Process locked */ - __HAL_LOCK(hdma); - - if(HAL_DMA_STATE_READY == hdma->State) - { - /* Change DMA peripheral state */ - hdma->State = HAL_DMA_STATE_BUSY; - - /* Initialize the error code */ - hdma->ErrorCode = HAL_DMA_ERROR_NONE; - - /* Disable the peripheral */ - __HAL_DMA_DISABLE(hdma); - - /* Configure the source, destination address and the data length */ - DMA_SetConfig(hdma, SrcAddress, DstAddress, DataLength); - - /* Enable the Peripheral */ - __HAL_DMA_ENABLE(hdma); - } - else - { - /* Set the error code to busy */ - hdma->ErrorCode = HAL_DMA_ERROR_BUSY; - - /* Process unlocked */ - __HAL_UNLOCK(hdma); - - /* Return error status */ - status = HAL_ERROR; - } - return status; -} - -/** - * @brief Start the DMA Transfer with interrupt enabled. - * @param hdma: pointer to a DMA_HandleTypeDef structure that contains - * the configuration information for the specified DMA Stream. - * @param SrcAddress: The source memory Buffer address - * @param DstAddress: The destination memory Buffer address - * @param DataLength: The length of data to be transferred from source to destination - * @retval HAL status - */ -HAL_StatusTypeDef HAL_DMA_Start_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Check the parameters */ - assert_param(IS_DMA_BUFFER_SIZE(DataLength)); - - /* Check the DMA peripheral handle */ - if(hdma == NULL) - { - return HAL_ERROR; - } - - /* Process locked */ - __HAL_LOCK(hdma); - - if(HAL_DMA_STATE_READY == hdma->State) - { - /* Change DMA peripheral state */ - hdma->State = HAL_DMA_STATE_BUSY; - - /* Initialize the error code */ - hdma->ErrorCode = HAL_DMA_ERROR_NONE; - - /* Disable the peripheral */ - __HAL_DMA_DISABLE(hdma); - - /* Configure the source, destination address and the data length */ - DMA_SetConfig(hdma, SrcAddress, DstAddress, DataLength); - - if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */ - { - /* Enable Common interrupts*/ - MODIFY_REG(((DMA_Stream_TypeDef *)hdma->Instance)->CR, (DMA_IT_TC | DMA_IT_TE | DMA_IT_DME | DMA_IT_HT), (DMA_IT_TC | DMA_IT_TE | DMA_IT_DME)); - - if(hdma->XferHalfCpltCallback != NULL) - { - /* Enable Half Transfer IT if corresponding Callback is set */ - ((DMA_Stream_TypeDef *)hdma->Instance)->CR |= DMA_IT_HT; - } - } - else /* BDMA channel */ - { - /* Enable Common interrupts */ - MODIFY_REG(((BDMA_Channel_TypeDef *)hdma->Instance)->CCR, (BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE), (BDMA_CCR_TCIE | BDMA_CCR_TEIE)); - - if(hdma->XferHalfCpltCallback != NULL) - { - /*Enable Half Transfer IT if corresponding Callback is set */ - ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR |= BDMA_CCR_HTIE; - } - } - - if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */ - { - /* Check if DMAMUX Synchronization is enabled */ - if((hdma->DMAmuxChannel->CCR & DMAMUX_CxCR_SE) != 0U) - { - /* Enable DMAMUX sync overrun IT*/ - hdma->DMAmuxChannel->CCR |= DMAMUX_CxCR_SOIE; - } - - if(hdma->DMAmuxRequestGen != 0U) - { - /* if using DMAMUX request generator, enable the DMAMUX request generator overrun IT*/ - /* enable the request gen overrun IT */ - hdma->DMAmuxRequestGen->RGCR |= DMAMUX_RGxCR_OIE; - } - } - - /* Enable the Peripheral */ - __HAL_DMA_ENABLE(hdma); - } - else - { - /* Set the error code to busy */ - hdma->ErrorCode = HAL_DMA_ERROR_BUSY; - - /* Process unlocked */ - __HAL_UNLOCK(hdma); - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief Aborts the DMA Transfer. - * @param hdma : pointer to a DMA_HandleTypeDef structure that contains - * the configuration information for the specified DMA Stream. - * - * @note After disabling a DMA Stream, a check for wait until the DMA Stream is - * effectively disabled is added. If a Stream is disabled - * while a data transfer is ongoing, the current data will be transferred - * and the Stream will be effectively disabled only after the transfer of - * this single data is finished. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma) -{ - /* calculate DMA base and stream number */ - DMA_Base_Registers *regs_dma; - BDMA_Base_Registers *regs_bdma; - const __IO uint32_t *enableRegister; - - uint32_t tickstart = HAL_GetTick(); - - /* Check the DMA peripheral handle */ - if(hdma == NULL) - { - return HAL_ERROR; - } - - /* Check the DMA peripheral state */ - if(hdma->State != HAL_DMA_STATE_BUSY) - { - hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER; - - /* Process Unlocked */ - __HAL_UNLOCK(hdma); - - return HAL_ERROR; - } - else - { - /* Disable all the transfer interrupts */ - if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */ - { - /* Disable DMA All Interrupts */ - ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME | DMA_IT_HT); - ((DMA_Stream_TypeDef *)hdma->Instance)->FCR &= ~(DMA_IT_FE); - - enableRegister = (__IO uint32_t *)(&(((DMA_Stream_TypeDef *)hdma->Instance)->CR)); - } - else /* BDMA channel */ - { - /* Disable DMA All Interrupts */ - ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR &= ~(BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE); - - enableRegister = (__IO uint32_t *)(&(((BDMA_Channel_TypeDef *)hdma->Instance)->CCR)); - } - - if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */ - { - /* disable the DMAMUX sync overrun IT */ - hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE; - } - - /* Disable the stream */ - __HAL_DMA_DISABLE(hdma); - - /* Check if the DMA Stream is effectively disabled */ - while(((*enableRegister) & DMA_SxCR_EN) != 0U) - { - /* Check for the Timeout */ - if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT) - { - /* Update error code */ - hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT; - - /* Change the DMA state */ - hdma->State = HAL_DMA_STATE_ERROR; - - /* Process Unlocked */ - __HAL_UNLOCK(hdma); - - return HAL_ERROR; - } - } - - /* Clear all interrupt flags at correct offset within the register */ - if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */ - { - regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress; - regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU); - } - else /* BDMA channel */ - { - regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress; - regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU)); - } - - if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */ - { - /* Clear the DMAMUX synchro overrun flag */ - hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask; - - if(hdma->DMAmuxRequestGen != 0U) - { - /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT */ - /* disable the request gen overrun IT */ - hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE; - - /* Clear the DMAMUX request generator overrun flag */ - hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask; - } - } - - /* Change the DMA state */ - hdma->State = HAL_DMA_STATE_READY; - - /* Process Unlocked */ - __HAL_UNLOCK(hdma); - } - - return HAL_OK; -} - -/** - * @brief Aborts the DMA Transfer in Interrupt mode. - * @param hdma : pointer to a DMA_HandleTypeDef structure that contains - * the configuration information for the specified DMA Stream. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma) -{ - BDMA_Base_Registers *regs_bdma; - - /* Check the DMA peripheral handle */ - if(hdma == NULL) - { - return HAL_ERROR; - } - - if(hdma->State != HAL_DMA_STATE_BUSY) - { - hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER; - return HAL_ERROR; - } - else - { - if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */ - { - /* Set Abort State */ - hdma->State = HAL_DMA_STATE_ABORT; - - /* Disable the stream */ - __HAL_DMA_DISABLE(hdma); - } - else /* BDMA channel */ - { - /* Disable DMA All Interrupts */ - ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR &= ~(BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE); - - /* Disable the channel */ - __HAL_DMA_DISABLE(hdma); - - if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */ - { - /* disable the DMAMUX sync overrun IT */ - hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE; - - /* Clear all flags */ - regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress; - regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU)); - - /* Clear the DMAMUX synchro overrun flag */ - hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask; - - if(hdma->DMAmuxRequestGen != 0U) - { - /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT*/ - /* disable the request gen overrun IT */ - hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE; - - /* Clear the DMAMUX request generator overrun flag */ - hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask; - } - } - - /* Change the DMA state */ - hdma->State = HAL_DMA_STATE_READY; - - /* Process Unlocked */ - __HAL_UNLOCK(hdma); - - /* Call User Abort callback */ - if(hdma->XferAbortCallback != NULL) - { - hdma->XferAbortCallback(hdma); - } - } - } - - return HAL_OK; -} - -/** - * @brief Polling for transfer complete. - * @param hdma: pointer to a DMA_HandleTypeDef structure that contains - * the configuration information for the specified DMA Stream. - * @param CompleteLevel: Specifies the DMA level complete. - * @note The polling mode is kept in this version for legacy. it is recommended to use the IT model instead. - * This model could be used for debug purpose. - * @note The HAL_DMA_PollForTransfer API cannot be used in circular and double buffering mode (automatic circular mode). - * @param Timeout: Timeout duration. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_DMA_PollForTransfer(DMA_HandleTypeDef *hdma, HAL_DMA_LevelCompleteTypeDef CompleteLevel, uint32_t Timeout) -{ - HAL_StatusTypeDef status = HAL_OK; - uint32_t cpltlevel_mask; - uint32_t tickstart = HAL_GetTick(); - - /* IT status register */ - __IO uint32_t *isr_reg; - /* IT clear flag register */ - __IO uint32_t *ifcr_reg; - - /* Check the DMA peripheral handle */ - if(hdma == NULL) - { - return HAL_ERROR; - } - - if(HAL_DMA_STATE_BUSY != hdma->State) - { - /* No transfer ongoing */ - hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER; - __HAL_UNLOCK(hdma); - - return HAL_ERROR; - } - - if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */ - { - /* Polling mode not supported in circular mode and double buffering mode */ - if ((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) != 0U) - { - hdma->ErrorCode = HAL_DMA_ERROR_NOT_SUPPORTED; - return HAL_ERROR; - } - - /* Get the level transfer complete flag */ - if(CompleteLevel == HAL_DMA_FULL_TRANSFER) - { - /* Transfer Complete flag */ - cpltlevel_mask = DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU); - } - else - { - /* Half Transfer Complete flag */ - cpltlevel_mask = DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU); - } - - isr_reg = &(((DMA_Base_Registers *)hdma->StreamBaseAddress)->ISR); - ifcr_reg = &(((DMA_Base_Registers *)hdma->StreamBaseAddress)->IFCR); - } - else /* BDMA channel */ - { - /* Polling mode not supported in circular mode */ - if ((((BDMA_Channel_TypeDef *)hdma->Instance)->CCR & BDMA_CCR_CIRC) != 0U) - { - hdma->ErrorCode = HAL_DMA_ERROR_NOT_SUPPORTED; - return HAL_ERROR; - } - - /* Get the level transfer complete flag */ - if(CompleteLevel == HAL_DMA_FULL_TRANSFER) - { - /* Transfer Complete flag */ - cpltlevel_mask = BDMA_FLAG_TC0 << (hdma->StreamIndex & 0x1FU); - } - else - { - /* Half Transfer Complete flag */ - cpltlevel_mask = BDMA_FLAG_HT0 << (hdma->StreamIndex & 0x1FU); - } - - isr_reg = &(((BDMA_Base_Registers *)hdma->StreamBaseAddress)->ISR); - ifcr_reg = &(((BDMA_Base_Registers *)hdma->StreamBaseAddress)->IFCR); - } - - while(((*isr_reg) & cpltlevel_mask) == 0U) - { - if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */ - { - if(((*isr_reg) & (DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U) - { - /* Update error code */ - hdma->ErrorCode |= HAL_DMA_ERROR_FE; - - /* Clear the FIFO error flag */ - (*ifcr_reg) = DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU); - } - - if(((*isr_reg) & (DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U) - { - /* Update error code */ - hdma->ErrorCode |= HAL_DMA_ERROR_DME; - - /* Clear the Direct Mode error flag */ - (*ifcr_reg) = DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU); - } - - if(((*isr_reg) & (DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U) - { - /* Update error code */ - hdma->ErrorCode |= HAL_DMA_ERROR_TE; - - /* Clear the transfer error flag */ - (*ifcr_reg) = DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU); - - /* Change the DMA state */ - hdma->State = HAL_DMA_STATE_READY; - - /* Process Unlocked */ - __HAL_UNLOCK(hdma); - - return HAL_ERROR; - } - } - else /* BDMA channel */ - { - if(((*isr_reg) & (BDMA_FLAG_TE0 << (hdma->StreamIndex & 0x1FU))) != 0U) - { - /* When a DMA transfer error occurs */ - /* A hardware clear of its EN bits is performed */ - /* Clear all flags */ - (*isr_reg) = ((BDMA_ISR_GIF0) << (hdma->StreamIndex & 0x1FU)); - - /* Update error code */ - hdma->ErrorCode = HAL_DMA_ERROR_TE; - - /* Change the DMA state */ - hdma->State = HAL_DMA_STATE_READY; - - /* Process Unlocked */ - __HAL_UNLOCK(hdma); - - return HAL_ERROR; - } - } - - /* Check for the Timeout (Not applicable in circular mode)*/ - if(Timeout != HAL_MAX_DELAY) - { - if(((HAL_GetTick() - tickstart ) > Timeout)||(Timeout == 0U)) - { - /* Update error code */ - hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT; - - /* if timeout then abort the current transfer */ - /* No need to check return value: as in this case we will return HAL_ERROR with HAL_DMA_ERROR_TIMEOUT error code */ - (void) HAL_DMA_Abort(hdma); - /* - Note that the Abort function will - - Clear the transfer error flags - - Unlock - - Set the State - */ - - return HAL_ERROR; - } - } - - if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */ - { - /* Check for DMAMUX Request generator (if used) overrun status */ - if(hdma->DMAmuxRequestGen != 0U) - { - /* if using DMAMUX request generator Check for DMAMUX request generator overrun */ - if((hdma->DMAmuxRequestGenStatus->RGSR & hdma->DMAmuxRequestGenStatusMask) != 0U) - { - /* Clear the DMAMUX request generator overrun flag */ - hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask; - - /* Update error code */ - hdma->ErrorCode |= HAL_DMA_ERROR_REQGEN; - } - } - - /* Check for DMAMUX Synchronization overrun */ - if((hdma->DMAmuxChannelStatus->CSR & hdma->DMAmuxChannelStatusMask) != 0U) - { - /* Clear the DMAMUX synchro overrun flag */ - hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask; - - /* Update error code */ - hdma->ErrorCode |= HAL_DMA_ERROR_SYNC; - } - } - } - - - /* Get the level transfer complete flag */ - if(CompleteLevel == HAL_DMA_FULL_TRANSFER) - { - /* Clear the half transfer and transfer complete flags */ - if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */ - { - (*ifcr_reg) = (DMA_FLAG_HTIF0_4 | DMA_FLAG_TCIF0_4) << (hdma->StreamIndex & 0x1FU); - } - else /* BDMA channel */ - { - (*ifcr_reg) = (BDMA_FLAG_TC0 << (hdma->StreamIndex & 0x1FU)); - } - - hdma->State = HAL_DMA_STATE_READY; - - /* Process Unlocked */ - __HAL_UNLOCK(hdma); - } - else /*CompleteLevel = HAL_DMA_HALF_TRANSFER*/ - { - /* Clear the half transfer and transfer complete flags */ - if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */ - { - (*ifcr_reg) = (DMA_FLAG_HTIF0_4) << (hdma->StreamIndex & 0x1FU); - } - else /* BDMA channel */ - { - (*ifcr_reg) = (BDMA_FLAG_HT0 << (hdma->StreamIndex & 0x1FU)); - } - } - - return status; -} - -/** - * @brief Handles DMA interrupt request. - * @param hdma: pointer to a DMA_HandleTypeDef structure that contains - * the configuration information for the specified DMA Stream. - * @retval None - */ -void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma) -{ - uint32_t tmpisr_dma, tmpisr_bdma; - uint32_t ccr_reg; - __IO uint32_t count = 0U; - uint32_t timeout = SystemCoreClock / 9600U; - - /* calculate DMA base and stream number */ - DMA_Base_Registers *regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress; - BDMA_Base_Registers *regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress; - - tmpisr_dma = regs_dma->ISR; - tmpisr_bdma = regs_bdma->ISR; - - if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */ - { - /* Transfer Error Interrupt management ***************************************/ - if ((tmpisr_dma & (DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U) - { - if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TE) != 0U) - { - /* Disable the transfer error interrupt */ - ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TE); - - /* Clear the transfer error flag */ - regs_dma->IFCR = DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU); - - /* Update error code */ - hdma->ErrorCode |= HAL_DMA_ERROR_TE; - } - } - /* FIFO Error Interrupt management ******************************************/ - if ((tmpisr_dma & (DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U) - { - if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_FE) != 0U) - { - /* Clear the FIFO error flag */ - regs_dma->IFCR = DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU); - - /* Update error code */ - hdma->ErrorCode |= HAL_DMA_ERROR_FE; - } - } - /* Direct Mode Error Interrupt management ***********************************/ - if ((tmpisr_dma & (DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U) - { - if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_DME) != 0U) - { - /* Clear the direct mode error flag */ - regs_dma->IFCR = DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU); - - /* Update error code */ - hdma->ErrorCode |= HAL_DMA_ERROR_DME; - } - } - /* Half Transfer Complete Interrupt management ******************************/ - if ((tmpisr_dma & (DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U) - { - if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_HT) != 0U) - { - /* Clear the half transfer complete flag */ - regs_dma->IFCR = DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU); - - /* Multi_Buffering mode enabled */ - if(((((DMA_Stream_TypeDef *)hdma->Instance)->CR) & (uint32_t)(DMA_SxCR_DBM)) != 0U) - { - /* Current memory buffer used is Memory 0 */ - if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CT) == 0U) - { - if(hdma->XferHalfCpltCallback != NULL) - { - /* Half transfer callback */ - hdma->XferHalfCpltCallback(hdma); - } - } - /* Current memory buffer used is Memory 1 */ - else - { - if(hdma->XferM1HalfCpltCallback != NULL) - { - /* Half transfer callback */ - hdma->XferM1HalfCpltCallback(hdma); - } - } - } - else - { - /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */ - if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) == 0U) - { - /* Disable the half transfer interrupt */ - ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_HT); - } - - if(hdma->XferHalfCpltCallback != NULL) - { - /* Half transfer callback */ - hdma->XferHalfCpltCallback(hdma); - } - } - } - } - /* Transfer Complete Interrupt management ***********************************/ - if ((tmpisr_dma & (DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U) - { - if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TC) != 0U) - { - /* Clear the transfer complete flag */ - regs_dma->IFCR = DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU); - - if(HAL_DMA_STATE_ABORT == hdma->State) - { - /* Disable all the transfer interrupts */ - ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME); - ((DMA_Stream_TypeDef *)hdma->Instance)->FCR &= ~(DMA_IT_FE); - - if((hdma->XferHalfCpltCallback != NULL) || (hdma->XferM1HalfCpltCallback != NULL)) - { - ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_HT); - } - - /* Clear all interrupt flags at correct offset within the register */ - regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU); - - /* Change the DMA state */ - hdma->State = HAL_DMA_STATE_READY; - - /* Process Unlocked */ - __HAL_UNLOCK(hdma); - - if(hdma->XferAbortCallback != NULL) - { - hdma->XferAbortCallback(hdma); - } - return; - } - - if(((((DMA_Stream_TypeDef *)hdma->Instance)->CR) & (uint32_t)(DMA_SxCR_DBM)) != 0U) - { - /* Current memory buffer used is Memory 0 */ - if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CT) == 0U) - { - if(hdma->XferM1CpltCallback != NULL) - { - /* Transfer complete Callback for memory1 */ - hdma->XferM1CpltCallback(hdma); - } - } - /* Current memory buffer used is Memory 1 */ - else - { - if(hdma->XferCpltCallback != NULL) - { - /* Transfer complete Callback for memory0 */ - hdma->XferCpltCallback(hdma); - } - } - } - /* Disable the transfer complete interrupt if the DMA mode is not CIRCULAR */ - else - { - if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) == 0U) - { - /* Disable the transfer complete interrupt */ - ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC); - - /* Change the DMA state */ - hdma->State = HAL_DMA_STATE_READY; - - /* Process Unlocked */ - __HAL_UNLOCK(hdma); - } - - if(hdma->XferCpltCallback != NULL) - { - /* Transfer complete callback */ - hdma->XferCpltCallback(hdma); - } - } - } - } - - /* manage error case */ - if(hdma->ErrorCode != HAL_DMA_ERROR_NONE) - { - if((hdma->ErrorCode & HAL_DMA_ERROR_TE) != 0U) - { - hdma->State = HAL_DMA_STATE_ABORT; - - /* Disable the stream */ - __HAL_DMA_DISABLE(hdma); - - do - { - if (++count > timeout) - { - break; - } - } - while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U); - - if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U) - { - /* Change the DMA state to error if DMA disable fails */ - hdma->State = HAL_DMA_STATE_ERROR; - } - else - { - /* Change the DMA state to Ready if DMA disable success */ - hdma->State = HAL_DMA_STATE_READY; - } - - /* Process Unlocked */ - __HAL_UNLOCK(hdma); - } - - if(hdma->XferErrorCallback != NULL) - { - /* Transfer error callback */ - hdma->XferErrorCallback(hdma); - } - } - } - else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */ - { - ccr_reg = (((BDMA_Channel_TypeDef *)hdma->Instance)->CCR); - - /* Half Transfer Complete Interrupt management ******************************/ - if (((tmpisr_bdma & (BDMA_FLAG_HT0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_HTIE) != 0U)) - { - /* Clear the half transfer complete flag */ - regs_bdma->IFCR = (BDMA_ISR_HTIF0 << (hdma->StreamIndex & 0x1FU)); - - /* Disable the transfer complete interrupt if the DMA mode is Double Buffering */ - if((ccr_reg & BDMA_CCR_DBM) != 0U) - { - /* Current memory buffer used is Memory 0 */ - if((ccr_reg & BDMA_CCR_CT) == 0U) - { - if(hdma->XferM1HalfCpltCallback != NULL) - { - /* Half transfer Callback for Memory 1 */ - hdma->XferM1HalfCpltCallback(hdma); - } - } - /* Current memory buffer used is Memory 1 */ - else - { - if(hdma->XferHalfCpltCallback != NULL) - { - /* Half transfer Callback for Memory 0 */ - hdma->XferHalfCpltCallback(hdma); - } - } - } - else - { - if((ccr_reg & BDMA_CCR_CIRC) == 0U) - { - /* Disable the half transfer interrupt */ - __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT); - } - - /* DMA peripheral state is not updated in Half Transfer */ - /* but in Transfer Complete case */ - - if(hdma->XferHalfCpltCallback != NULL) - { - /* Half transfer callback */ - hdma->XferHalfCpltCallback(hdma); - } - } - } - - /* Transfer Complete Interrupt management ***********************************/ - else if (((tmpisr_bdma & (BDMA_FLAG_TC0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_TCIE) != 0U)) - { - /* Clear the transfer complete flag */ - regs_bdma->IFCR = (BDMA_ISR_TCIF0) << (hdma->StreamIndex & 0x1FU); - - /* Disable the transfer complete interrupt if the DMA mode is Double Buffering */ - if((ccr_reg & BDMA_CCR_DBM) != 0U) - { - /* Current memory buffer used is Memory 0 */ - if((ccr_reg & BDMA_CCR_CT) == 0U) - { - if(hdma->XferM1CpltCallback != NULL) - { - /* Transfer complete Callback for Memory 1 */ - hdma->XferM1CpltCallback(hdma); - } - } - /* Current memory buffer used is Memory 1 */ - else - { - if(hdma->XferCpltCallback != NULL) - { - /* Transfer complete Callback for Memory 0 */ - hdma->XferCpltCallback(hdma); - } - } - } - else - { - if((ccr_reg & BDMA_CCR_CIRC) == 0U) - { - /* Disable the transfer complete and error interrupt, if the DMA mode is not CIRCULAR */ - __HAL_DMA_DISABLE_IT(hdma, DMA_IT_TE | DMA_IT_TC); - - /* Change the DMA state */ - hdma->State = HAL_DMA_STATE_READY; - - /* Process Unlocked */ - __HAL_UNLOCK(hdma); - } - - if(hdma->XferCpltCallback != NULL) - { - /* Transfer complete callback */ - hdma->XferCpltCallback(hdma); - } - } - } - /* Transfer Error Interrupt management **************************************/ - else if (((tmpisr_bdma & (BDMA_FLAG_TE0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_TEIE) != 0U)) - { - /* When a DMA transfer error occurs */ - /* A hardware clear of its EN bits is performed */ - /* Disable ALL DMA IT */ - __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE)); - - /* Clear all flags */ - regs_bdma->IFCR = (BDMA_ISR_GIF0) << (hdma->StreamIndex & 0x1FU); - - /* Update error code */ - hdma->ErrorCode = HAL_DMA_ERROR_TE; - - /* Change the DMA state */ - hdma->State = HAL_DMA_STATE_READY; - - /* Process Unlocked */ - __HAL_UNLOCK(hdma); - - if (hdma->XferErrorCallback != NULL) - { - /* Transfer error callback */ - hdma->XferErrorCallback(hdma); - } - } - else - { - /* Nothing To Do */ - } - } - else - { - /* Nothing To Do */ - } -} - -/** - * @brief Register callbacks - * @param hdma: pointer to a DMA_HandleTypeDef structure that contains - * the configuration information for the specified DMA Stream. - * @param CallbackID: User Callback identifier - * a DMA_HandleTypeDef structure as parameter. - * @param pCallback: pointer to private callback function which has pointer to - * a DMA_HandleTypeDef structure as parameter. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_DMA_RegisterCallback(DMA_HandleTypeDef *hdma, HAL_DMA_CallbackIDTypeDef CallbackID, void (* pCallback)(DMA_HandleTypeDef *_hdma)) -{ - - HAL_StatusTypeDef status = HAL_OK; - - /* Check the DMA peripheral handle */ - if(hdma == NULL) - { - return HAL_ERROR; - } - - /* Process locked */ - __HAL_LOCK(hdma); - - if(HAL_DMA_STATE_READY == hdma->State) - { - switch (CallbackID) - { - case HAL_DMA_XFER_CPLT_CB_ID: - hdma->XferCpltCallback = pCallback; - break; - - case HAL_DMA_XFER_HALFCPLT_CB_ID: - hdma->XferHalfCpltCallback = pCallback; - break; - - case HAL_DMA_XFER_M1CPLT_CB_ID: - hdma->XferM1CpltCallback = pCallback; - break; - - case HAL_DMA_XFER_M1HALFCPLT_CB_ID: - hdma->XferM1HalfCpltCallback = pCallback; - break; - - case HAL_DMA_XFER_ERROR_CB_ID: - hdma->XferErrorCallback = pCallback; - break; - - case HAL_DMA_XFER_ABORT_CB_ID: - hdma->XferAbortCallback = pCallback; - break; - - default: - status = HAL_ERROR; - break; - } - } - else - { - /* Return error status */ - status = HAL_ERROR; - } - - /* Release Lock */ - __HAL_UNLOCK(hdma); - - return status; -} - -/** - * @brief UnRegister callbacks - * @param hdma: pointer to a DMA_HandleTypeDef structure that contains - * the configuration information for the specified DMA Stream. - * @param CallbackID: User Callback identifier - * a HAL_DMA_CallbackIDTypeDef ENUM as parameter. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_DMA_UnRegisterCallback(DMA_HandleTypeDef *hdma, HAL_DMA_CallbackIDTypeDef CallbackID) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Check the DMA peripheral handle */ - if(hdma == NULL) - { - return HAL_ERROR; - } - - /* Process locked */ - __HAL_LOCK(hdma); - - if(HAL_DMA_STATE_READY == hdma->State) - { - switch (CallbackID) - { - case HAL_DMA_XFER_CPLT_CB_ID: - hdma->XferCpltCallback = NULL; - break; - - case HAL_DMA_XFER_HALFCPLT_CB_ID: - hdma->XferHalfCpltCallback = NULL; - break; - - case HAL_DMA_XFER_M1CPLT_CB_ID: - hdma->XferM1CpltCallback = NULL; - break; - - case HAL_DMA_XFER_M1HALFCPLT_CB_ID: - hdma->XferM1HalfCpltCallback = NULL; - break; - - case HAL_DMA_XFER_ERROR_CB_ID: - hdma->XferErrorCallback = NULL; - break; - - case HAL_DMA_XFER_ABORT_CB_ID: - hdma->XferAbortCallback = NULL; - break; - - case HAL_DMA_XFER_ALL_CB_ID: - hdma->XferCpltCallback = NULL; - hdma->XferHalfCpltCallback = NULL; - hdma->XferM1CpltCallback = NULL; - hdma->XferM1HalfCpltCallback = NULL; - hdma->XferErrorCallback = NULL; - hdma->XferAbortCallback = NULL; - break; - - default: - status = HAL_ERROR; - break; - } - } - else - { - status = HAL_ERROR; - } - - /* Release Lock */ - __HAL_UNLOCK(hdma); - - return status; -} - -/** - * @} - */ - -/** @addtogroup DMA_Exported_Functions_Group3 - * -@verbatim - =============================================================================== - ##### State and Errors functions ##### - =============================================================================== - [..] - This subsection provides functions allowing to - (+) Check the DMA state - (+) Get error code - -@endverbatim - * @{ - */ - -/** - * @brief Returns the DMA state. - * @param hdma: pointer to a DMA_HandleTypeDef structure that contains - * the configuration information for the specified DMA Stream. - * @retval HAL state - */ -HAL_DMA_StateTypeDef HAL_DMA_GetState(DMA_HandleTypeDef *hdma) -{ - return hdma->State; -} - -/** - * @brief Return the DMA error code - * @param hdma : pointer to a DMA_HandleTypeDef structure that contains - * the configuration information for the specified DMA Stream. - * @retval DMA Error Code - */ -uint32_t HAL_DMA_GetError(DMA_HandleTypeDef *hdma) -{ - return hdma->ErrorCode; -} - -/** - * @} - */ - -/** - * @} - */ - -/** @addtogroup DMA_Private_Functions - * @{ - */ - -/** - * @brief Sets the DMA Transfer parameter. - * @param hdma: pointer to a DMA_HandleTypeDef structure that contains - * the configuration information for the specified DMA Stream. - * @param SrcAddress: The source memory Buffer address - * @param DstAddress: The destination memory Buffer address - * @param DataLength: The length of data to be transferred from source to destination - * @retval None - */ -static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength) -{ - /* calculate DMA base and stream number */ - DMA_Base_Registers *regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress; - BDMA_Base_Registers *regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress; - - if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */ - { - /* Clear the DMAMUX synchro overrun flag */ - hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask; - - if(hdma->DMAmuxRequestGen != 0U) - { - /* Clear the DMAMUX request generator overrun flag */ - hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask; - } - } - - if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */ - { - /* Clear all interrupt flags at correct offset within the register */ - regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU); - - /* Clear DBM bit */ - ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= (uint32_t)(~DMA_SxCR_DBM); - - /* Configure DMA Stream data length */ - ((DMA_Stream_TypeDef *)hdma->Instance)->NDTR = DataLength; - - /* Peripheral to Memory */ - if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH) - { - /* Configure DMA Stream destination address */ - ((DMA_Stream_TypeDef *)hdma->Instance)->PAR = DstAddress; - - /* Configure DMA Stream source address */ - ((DMA_Stream_TypeDef *)hdma->Instance)->M0AR = SrcAddress; - } - /* Memory to Peripheral */ - else - { - /* Configure DMA Stream source address */ - ((DMA_Stream_TypeDef *)hdma->Instance)->PAR = SrcAddress; - - /* Configure DMA Stream destination address */ - ((DMA_Stream_TypeDef *)hdma->Instance)->M0AR = DstAddress; - } - } - else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */ - { - /* Clear all flags */ - regs_bdma->IFCR = (BDMA_ISR_GIF0) << (hdma->StreamIndex & 0x1FU); - - /* Configure DMA Channel data length */ - ((BDMA_Channel_TypeDef *)hdma->Instance)->CNDTR = DataLength; - - /* Peripheral to Memory */ - if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH) - { - /* Configure DMA Channel destination address */ - ((BDMA_Channel_TypeDef *)hdma->Instance)->CPAR = DstAddress; - - /* Configure DMA Channel source address */ - ((BDMA_Channel_TypeDef *)hdma->Instance)->CM0AR = SrcAddress; - } - /* Memory to Peripheral */ - else - { - /* Configure DMA Channel source address */ - ((BDMA_Channel_TypeDef *)hdma->Instance)->CPAR = SrcAddress; - - /* Configure DMA Channel destination address */ - ((BDMA_Channel_TypeDef *)hdma->Instance)->CM0AR = DstAddress; - } - } - else - { - /* Nothing To Do */ - } -} - -/** - * @brief Returns the DMA Stream base address depending on stream number - * @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) -{ - if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */ - { - uint32_t stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 16U) / 24U; - - /* 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 & 0x7U]; - - if (stream_number > 3U) - { - /* return pointer to HISR and HIFCR */ - hdma->StreamBaseAddress = (((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0x3FFU)) + 4U); - } - else - { - /* return pointer to LISR and LIFCR */ - hdma->StreamBaseAddress = ((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0x3FFU)); - } - } - else /* BDMA instance(s) */ - { - /* return pointer to ISR and IFCR */ - hdma->StreamBaseAddress = ((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0xFFU)); - } - - return hdma->StreamBaseAddress; -} - -/** - * @brief Check compatibility between FIFO threshold level and size of the memory burst - * @param hdma: pointer to a DMA_HandleTypeDef structure that contains - * the configuration information for the specified DMA Stream. - * @retval HAL status - */ -static HAL_StatusTypeDef DMA_CheckFifoParam(DMA_HandleTypeDef *hdma) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Memory Data size equal to Byte */ - if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_BYTE) - { - switch (hdma->Init.FIFOThreshold) - { - case DMA_FIFO_THRESHOLD_1QUARTERFULL: - case DMA_FIFO_THRESHOLD_3QUARTERSFULL: - - if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1) - { - status = HAL_ERROR; - } - break; - - case DMA_FIFO_THRESHOLD_HALFFULL: - if (hdma->Init.MemBurst == DMA_MBURST_INC16) - { - status = HAL_ERROR; - } - break; - - case DMA_FIFO_THRESHOLD_FULL: - break; - - default: - break; - } - } - - /* Memory Data size equal to Half-Word */ - else if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_HALFWORD) - { - switch (hdma->Init.FIFOThreshold) - { - case DMA_FIFO_THRESHOLD_1QUARTERFULL: - case DMA_FIFO_THRESHOLD_3QUARTERSFULL: - status = HAL_ERROR; - break; - - case DMA_FIFO_THRESHOLD_HALFFULL: - if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1) - { - status = HAL_ERROR; - } - break; - - case DMA_FIFO_THRESHOLD_FULL: - if (hdma->Init.MemBurst == DMA_MBURST_INC16) - { - status = HAL_ERROR; - } - break; - - default: - break; - } - } - - /* Memory Data size equal to Word */ - else - { - switch (hdma->Init.FIFOThreshold) - { - case DMA_FIFO_THRESHOLD_1QUARTERFULL: - case DMA_FIFO_THRESHOLD_HALFFULL: - case DMA_FIFO_THRESHOLD_3QUARTERSFULL: - status = HAL_ERROR; - break; - - case DMA_FIFO_THRESHOLD_FULL: - if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1) - { - status = HAL_ERROR; - } - break; - - default: - break; - } - } - - return status; -} - -/** - * @brief Updates the DMA handle with the DMAMUX channel and status mask depending on stream number - * @param hdma: pointer to a DMA_HandleTypeDef structure that contains - * the configuration information for the specified DMA Stream. - * @retval HAL status - */ -static void DMA_CalcDMAMUXChannelBaseAndMask(DMA_HandleTypeDef *hdma) -{ - uint32_t stream_number; - uint32_t stream_baseaddress = (uint32_t)((uint32_t*)hdma->Instance); - - if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U) - { - /* BDMA Channels are connected to DMAMUX2 channels */ - stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 8U) / 20U; - hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX2_Channel0) + (stream_number * 4U))); - hdma->DMAmuxChannelStatus = DMAMUX2_ChannelStatus; - hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU); - } - else - { - /* DMA1/DMA2 Streams are connected to DMAMUX1 channels */ - stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 16U) / 24U; - - if((stream_baseaddress <= ((uint32_t)DMA2_Stream7) ) && \ - (stream_baseaddress >= ((uint32_t)DMA2_Stream0))) - { - stream_number += 8U; - } - hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_Channel0) + (stream_number * 4U))); - hdma->DMAmuxChannelStatus = DMAMUX1_ChannelStatus; - hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU); - } -} - -/** - * @brief Updates the DMA handle with the DMAMUX request generator params - * @param hdma: pointer to a DMA_HandleTypeDef structure that contains - * the configuration information for the specified DMA Stream. - * @retval HAL status - */ -static void DMA_CalcDMAMUXRequestGenBaseAndMask(DMA_HandleTypeDef *hdma) -{ - uint32_t request = hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID; - - if((request >= DMA_REQUEST_GENERATOR0) && (request <= DMA_REQUEST_GENERATOR7)) - { - if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U) - { - /* BDMA Channels are connected to DMAMUX2 request generator blocks */ - hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX2_RequestGenerator0) + ((request - 1U) * 4U))); - - hdma->DMAmuxRequestGenStatus = DMAMUX2_RequestGenStatus; - } - else - { - /* DMA1 and DMA2 Streams use DMAMUX1 request generator blocks */ - hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_RequestGenerator0) + ((request - 1U) * 4U))); - - hdma->DMAmuxRequestGenStatus = DMAMUX1_RequestGenStatus; - } - - hdma->DMAmuxRequestGenStatusMask = 1UL << (request - 1U); - } -} - -/** - * @} - */ - -#endif /* HAL_DMA_MODULE_ENABLED */ -/** - * @} - */ - -/** - * @} - */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c b/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c deleted file mode 100644 index a134b4e..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c +++ /dev/null @@ -1,712 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_dma_ex.c - * @author MCD Application Team - * @brief DMA Extension HAL module driver - * This file provides firmware functions to manage the following - * functionalities of the DMA Extension peripheral: - * + Extended features functions - * - @verbatim - ============================================================================== - ##### How to use this driver ##### - ============================================================================== - [..] - The DMA Extension HAL driver can be used as follows: - (+) Start a multi buffer transfer using the HAL_DMA_MultiBufferStart() function - for polling mode or HAL_DMA_MultiBufferStart_IT() for interrupt mode. - - (+) Configure the DMA_MUX Synchronization Block using HAL_DMAEx_ConfigMuxSync function. - (+) Configure the DMA_MUX Request Generator Block using HAL_DMAEx_ConfigMuxRequestGenerator function. - Functions HAL_DMAEx_EnableMuxRequestGenerator and HAL_DMAEx_DisableMuxRequestGenerator can then be used - to respectively enable/disable the request generator. - - (+) To handle the DMAMUX Interrupts, the function HAL_DMAEx_MUX_IRQHandler should be called from - the DMAMUX IRQ handler i.e DMAMUX1_OVR_IRQHandler or DMAMUX2_OVR_IRQHandler . - As only one interrupt line is available for all DMAMUX channels and request generators , HAL_DMA_MUX_IRQHandler should be - called with, as parameter, the appropriate DMA handle as many as used DMAs in the user project - (exception done if a given DMA is not using the DMAMUX SYNC block neither a request generator) - - -@- In Memory-to-Memory transfer mode, Multi (Double) Buffer mode is not allowed. - -@- When Multi (Double) Buffer mode is enabled, the transfer is circular by default. - -@- In Multi (Double) buffer mode, it is possible to update the base address for - the AHB memory port on the fly (DMA_SxM0AR or DMA_SxM1AR) when the stream is enabled. - -@- Multi (Double) buffer mode is possible with DMA and BDMA instances. - - @endverbatim - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @defgroup DMAEx DMAEx - * @brief DMA Extended HAL module driver - * @{ - */ - -#ifdef HAL_DMA_MODULE_ENABLED - -/* Private types -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private Constants ---------------------------------------------------------*/ -/* Private macros ------------------------------------------------------------*/ -/* Private functions ---------------------------------------------------------*/ -/** @addtogroup DMAEx_Private_Functions - * @{ - */ - -static void DMA_MultiBufferSetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength); - -/** - * @} - */ - -/* Exported functions ---------------------------------------------------------*/ - -/** @addtogroup DMAEx_Exported_Functions - * @{ - */ - - -/** @addtogroup DMAEx_Exported_Functions_Group1 - * -@verbatim - =============================================================================== - ##### Extended features functions ##### - =============================================================================== - [..] This section provides functions allowing to: - (+) Configure the source, destination address and data length and - Start MultiBuffer DMA transfer - (+) Configure the source, destination address and data length and - Start MultiBuffer DMA transfer with interrupt - (+) Change on the fly the memory0 or memory1 address. - (+) Configure the DMA_MUX Synchronization Block using HAL_DMAEx_ConfigMuxSync function. - (+) Configure the DMA_MUX Request Generator Block using HAL_DMAEx_ConfigMuxRequestGenerator function. - (+) Functions HAL_DMAEx_EnableMuxRequestGenerator and HAL_DMAEx_DisableMuxRequestGenerator can then be used - to respectively enable/disable the request generator. - (+) Handle DMAMUX interrupts using HAL_DMAEx_MUX_IRQHandler : should be called from - the DMAMUX IRQ handler i.e DMAMUX1_OVR_IRQHandler or DMAMUX2_OVR_IRQHandler - -@endverbatim - * @{ - */ - - -/** - * @brief Starts the multi_buffer DMA Transfer. - * @param hdma : pointer to a DMA_HandleTypeDef structure that contains - * the configuration information for the specified DMA Stream. - * @param SrcAddress: The source memory Buffer address - * @param DstAddress: The destination memory Buffer address - * @param SecondMemAddress: The second memory Buffer address in case of multi buffer Transfer - * @param DataLength: The length of data to be transferred from source to destination - * @retval HAL status - */ -HAL_StatusTypeDef HAL_DMAEx_MultiBufferStart(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t SecondMemAddress, uint32_t DataLength) -{ - HAL_StatusTypeDef status = HAL_OK; - __IO uint32_t *ifcRegister_Base; /* DMA Stream Interrupt Clear register */ - - /* Check the parameters */ - assert_param(IS_DMA_BUFFER_SIZE(DataLength)); - assert_param(IS_DMA_ALL_INSTANCE(hdma->Instance)); - - /* Memory-to-memory transfer not supported in double buffering mode */ - if (hdma->Init.Direction == DMA_MEMORY_TO_MEMORY) - { - hdma->ErrorCode = HAL_DMA_ERROR_NOT_SUPPORTED; - status = HAL_ERROR; - } - else - { - /* Process Locked */ - __HAL_LOCK(hdma); - - if(HAL_DMA_STATE_READY == hdma->State) - { - /* Change DMA peripheral state */ - hdma->State = HAL_DMA_STATE_BUSY; - - /* Initialize the error code */ - hdma->ErrorCode = HAL_DMA_ERROR_NONE; - - if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */ - { - /* Enable the Double buffer mode */ - ((DMA_Stream_TypeDef *)hdma->Instance)->CR |= DMA_SxCR_DBM; - - /* Configure DMA Stream destination address */ - ((DMA_Stream_TypeDef *)hdma->Instance)->M1AR = SecondMemAddress; - - /* Calculate the interrupt clear flag register (IFCR) base address */ - ifcRegister_Base = (uint32_t *)((uint32_t)(hdma->StreamBaseAddress + 8U)); - - /* Clear all flags */ - *ifcRegister_Base = 0x3FUL << (hdma->StreamIndex & 0x1FU); - } - else /* BDMA instance(s) */ - { - /* Enable the Double buffer mode */ - ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR |= (BDMA_CCR_DBM | BDMA_CCR_CIRC); - - /* Configure DMA Stream destination address */ - ((BDMA_Channel_TypeDef *)hdma->Instance)->CM1AR = SecondMemAddress; - - /* Calculate the interrupt clear flag register (IFCR) base address */ - ifcRegister_Base = (uint32_t *)((uint32_t)(hdma->StreamBaseAddress + 4U)); - - /* Clear all flags */ - *ifcRegister_Base = (BDMA_ISR_GIF0) << (hdma->StreamIndex & 0x1FU); - } - - if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */ - { - /* Configure the source, destination address and the data length */ - DMA_MultiBufferSetConfig(hdma, SrcAddress, DstAddress, DataLength); - - /* Clear the DMAMUX synchro overrun flag */ - hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask; - - if(hdma->DMAmuxRequestGen != 0U) - { - /* Clear the DMAMUX request generator overrun flag */ - hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask; - } - } - - /* Enable the peripheral */ - __HAL_DMA_ENABLE(hdma); - } - else - { - /* Set the error code to busy */ - hdma->ErrorCode = HAL_DMA_ERROR_BUSY; - - /* Return error status */ - status = HAL_ERROR; - } - } - return status; -} - -/** - * @brief Starts the multi_buffer DMA Transfer with interrupt enabled. - * @param hdma: pointer to a DMA_HandleTypeDef structure that contains - * the configuration information for the specified DMA Stream. - * @param SrcAddress: The source memory Buffer address - * @param DstAddress: The destination memory Buffer address - * @param SecondMemAddress: The second memory Buffer address in case of multi buffer Transfer - * @param DataLength: The length of data to be transferred from source to destination - * @retval HAL status - */ -HAL_StatusTypeDef HAL_DMAEx_MultiBufferStart_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t SecondMemAddress, uint32_t DataLength) -{ - HAL_StatusTypeDef status = HAL_OK; - __IO uint32_t *ifcRegister_Base; /* DMA Stream Interrupt Clear register */ - - /* Check the parameters */ - assert_param(IS_DMA_BUFFER_SIZE(DataLength)); - assert_param(IS_DMA_ALL_INSTANCE(hdma->Instance)); - - /* Memory-to-memory transfer not supported in double buffering mode */ - if(hdma->Init.Direction == DMA_MEMORY_TO_MEMORY) - { - hdma->ErrorCode = HAL_DMA_ERROR_NOT_SUPPORTED; - return HAL_ERROR; - } - - /* Process locked */ - __HAL_LOCK(hdma); - - if(HAL_DMA_STATE_READY == hdma->State) - { - /* Change DMA peripheral state */ - hdma->State = HAL_DMA_STATE_BUSY; - - /* Initialize the error code */ - hdma->ErrorCode = HAL_DMA_ERROR_NONE; - - if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */ - { - /* Enable the Double buffer mode */ - ((DMA_Stream_TypeDef *)hdma->Instance)->CR |= DMA_SxCR_DBM; - - /* Configure DMA Stream destination address */ - ((DMA_Stream_TypeDef *)hdma->Instance)->M1AR = SecondMemAddress; - - /* Calculate the interrupt clear flag register (IFCR) base address */ - ifcRegister_Base = (uint32_t *)((uint32_t)(hdma->StreamBaseAddress + 8U)); - - /* Clear all flags */ - *ifcRegister_Base = 0x3FUL << (hdma->StreamIndex & 0x1FU); - } - else /* BDMA instance(s) */ - { - /* Enable the Double buffer mode */ - ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR |= (BDMA_CCR_DBM | BDMA_CCR_CIRC); - - /* Configure DMA Stream destination address */ - ((BDMA_Channel_TypeDef *)hdma->Instance)->CM1AR = SecondMemAddress; - - /* Calculate the interrupt clear flag register (IFCR) base address */ - ifcRegister_Base = (uint32_t *)((uint32_t)(hdma->StreamBaseAddress + 4U)); - - /* Clear all flags */ - *ifcRegister_Base = (BDMA_ISR_GIF0) << (hdma->StreamIndex & 0x1FU); - } - - /* Configure the source, destination address and the data length */ - DMA_MultiBufferSetConfig(hdma, SrcAddress, DstAddress, DataLength); - - if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */ - { - /* Clear the DMAMUX synchro overrun flag */ - hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask; - - if(hdma->DMAmuxRequestGen != 0U) - { - /* Clear the DMAMUX request generator overrun flag */ - hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask; - } - } - - if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */ - { - /* Enable Common interrupts*/ - MODIFY_REG(((DMA_Stream_TypeDef *)hdma->Instance)->CR, (DMA_IT_TC | DMA_IT_TE | DMA_IT_DME | DMA_IT_HT), (DMA_IT_TC | DMA_IT_TE | DMA_IT_DME)); - ((DMA_Stream_TypeDef *)hdma->Instance)->FCR |= DMA_IT_FE; - - if((hdma->XferHalfCpltCallback != NULL) || (hdma->XferM1HalfCpltCallback != NULL)) - { - /*Enable Half Transfer IT if corresponding Callback is set*/ - ((DMA_Stream_TypeDef *)hdma->Instance)->CR |= DMA_IT_HT; - } - } - else /* BDMA instance(s) */ - { - /* Enable Common interrupts*/ - MODIFY_REG(((BDMA_Channel_TypeDef *)hdma->Instance)->CCR, (BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE), (BDMA_CCR_TCIE | BDMA_CCR_TEIE)); - - if((hdma->XferHalfCpltCallback != NULL) || (hdma->XferM1HalfCpltCallback != NULL)) - { - /*Enable Half Transfer IT if corresponding Callback is set*/ - ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR |= BDMA_CCR_HTIE; - } - } - - if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */ - { - /* Check if DMAMUX Synchronization is enabled*/ - if((hdma->DMAmuxChannel->CCR & DMAMUX_CxCR_SE) != 0U) - { - /* Enable DMAMUX sync overrun IT*/ - hdma->DMAmuxChannel->CCR |= DMAMUX_CxCR_SOIE; - } - - if(hdma->DMAmuxRequestGen != 0U) - { - /* if using DMAMUX request generator, enable the DMAMUX request generator overrun IT*/ - /* enable the request gen overrun IT*/ - hdma->DMAmuxRequestGen->RGCR |= DMAMUX_RGxCR_OIE; - } - } - - /* Enable the peripheral */ - __HAL_DMA_ENABLE(hdma); - } - else - { - /* Set the error code to busy */ - hdma->ErrorCode = HAL_DMA_ERROR_BUSY; - - /* Return error status */ - status = HAL_ERROR; - } - return status; -} - -/** - * @brief Change the memory0 or memory1 address on the fly. - * @param hdma: pointer to a DMA_HandleTypeDef structure that contains - * the configuration information for the specified DMA Stream. - * @param Address: The new address - * @param memory: the memory to be changed, This parameter can be one of - * the following values: - * MEMORY0 / - * MEMORY1 - * @note The MEMORY0 address can be changed only when the current transfer use - * MEMORY1 and the MEMORY1 address can be changed only when the current - * transfer use MEMORY0. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_DMAEx_ChangeMemory(DMA_HandleTypeDef *hdma, uint32_t Address, HAL_DMA_MemoryTypeDef memory) -{ - if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */ - { - if(memory == MEMORY0) - { - /* change the memory0 address */ - ((DMA_Stream_TypeDef *)hdma->Instance)->M0AR = Address; - } - else - { - /* change the memory1 address */ - ((DMA_Stream_TypeDef *)hdma->Instance)->M1AR = Address; - } - } - else /* BDMA instance(s) */ - { - if(memory == MEMORY0) - { - /* change the memory0 address */ - ((BDMA_Channel_TypeDef *)hdma->Instance)->CM0AR = Address; - } - else - { - /* change the memory1 address */ - ((BDMA_Channel_TypeDef *)hdma->Instance)->CM1AR = Address; - } - } - - return HAL_OK; -} - -/** - * @brief Configure the DMAMUX synchronization parameters for a given DMA stream (instance). - * @param hdma: pointer to a DMA_HandleTypeDef structure that contains - * the configuration information for the specified DMA Stream. - * @param pSyncConfig : pointer to HAL_DMA_MuxSyncConfigTypeDef : contains the DMAMUX synchronization parameters - * @retval HAL status - */ -HAL_StatusTypeDef HAL_DMAEx_ConfigMuxSync(DMA_HandleTypeDef *hdma, HAL_DMA_MuxSyncConfigTypeDef *pSyncConfig) -{ - uint32_t syncSignalID = 0; - uint32_t syncPolarity = 0; - - /* Check the parameters */ - assert_param(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance)); - assert_param(IS_DMAMUX_SYNC_STATE(pSyncConfig->SyncEnable)); - assert_param(IS_DMAMUX_SYNC_EVENT(pSyncConfig->EventEnable)); - assert_param(IS_DMAMUX_SYNC_REQUEST_NUMBER(pSyncConfig->RequestNumber)); - - if(pSyncConfig->SyncEnable == ENABLE) - { - assert_param(IS_DMAMUX_SYNC_POLARITY(pSyncConfig->SyncPolarity)); - - if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */ - { - assert_param(IS_DMA_DMAMUX_SYNC_SIGNAL_ID(pSyncConfig->SyncSignalID)); - } - else - { - assert_param(IS_BDMA_DMAMUX_SYNC_SIGNAL_ID(pSyncConfig->SyncSignalID)); - } - syncSignalID = pSyncConfig->SyncSignalID; - syncPolarity = pSyncConfig->SyncPolarity; - } - - /*Check if the DMA state is ready */ - if(hdma->State == HAL_DMA_STATE_READY) - { - /* Process Locked */ - __HAL_LOCK(hdma); - - /* Disable the synchronization and event generation before applying a new config */ - CLEAR_BIT(hdma->DMAmuxChannel->CCR,(DMAMUX_CxCR_SE | DMAMUX_CxCR_EGE)); - - /* Set the new synchronization parameters (and keep the request ID filled during the Init)*/ - MODIFY_REG( hdma->DMAmuxChannel->CCR, \ - (~DMAMUX_CxCR_DMAREQ_ID) , \ - (syncSignalID << DMAMUX_CxCR_SYNC_ID_Pos) | \ - ((pSyncConfig->RequestNumber - 1U) << DMAMUX_CxCR_NBREQ_Pos) | \ - syncPolarity | ((uint32_t)pSyncConfig->SyncEnable << DMAMUX_CxCR_SE_Pos) | \ - ((uint32_t)pSyncConfig->EventEnable << DMAMUX_CxCR_EGE_Pos)); - - /* Process Locked */ - __HAL_UNLOCK(hdma); - - return HAL_OK; - } - else - { - /* Set the error code to busy */ - hdma->ErrorCode = HAL_DMA_ERROR_BUSY; - - /* Return error status */ - return HAL_ERROR; - } -} - -/** - * @brief Configure the DMAMUX request generator block used by the given DMA stream (instance). - * @param hdma: pointer to a DMA_HandleTypeDef structure that contains - * the configuration information for the specified DMA Stream. - * @param pRequestGeneratorConfig : pointer to HAL_DMA_MuxRequestGeneratorConfigTypeDef : - * contains the request generator parameters. - * - * @retval HAL status - */ -HAL_StatusTypeDef HAL_DMAEx_ConfigMuxRequestGenerator (DMA_HandleTypeDef *hdma, HAL_DMA_MuxRequestGeneratorConfigTypeDef *pRequestGeneratorConfig) -{ - HAL_StatusTypeDef status; - HAL_DMA_StateTypeDef temp_state = hdma->State; - - /* Check the parameters */ - assert_param(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance)); - - if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */ - { - assert_param(IS_DMA_DMAMUX_REQUEST_GEN_SIGNAL_ID(pRequestGeneratorConfig->SignalID)); - } - else - { - assert_param(IS_BDMA_DMAMUX_REQUEST_GEN_SIGNAL_ID(pRequestGeneratorConfig->SignalID)); - } - - - assert_param(IS_DMAMUX_REQUEST_GEN_POLARITY(pRequestGeneratorConfig->Polarity)); - assert_param(IS_DMAMUX_REQUEST_GEN_REQUEST_NUMBER(pRequestGeneratorConfig->RequestNumber)); - - /* check if the DMA state is ready - and DMA is using a DMAMUX request generator block - */ - if(hdma->DMAmuxRequestGen == 0U) - { - /* Set the error code to busy */ - hdma->ErrorCode = HAL_DMA_ERROR_PARAM; - - /* error status */ - status = HAL_ERROR; - } - else if(((hdma->DMAmuxRequestGen->RGCR & DMAMUX_RGxCR_GE) == 0U) && (temp_state == HAL_DMA_STATE_READY)) - { - /* RequestGenerator must be disable prior to the configuration i.e GE bit is 0 */ - - /* Process Locked */ - __HAL_LOCK(hdma); - - /* Set the request generator new parameters */ - hdma->DMAmuxRequestGen->RGCR = pRequestGeneratorConfig->SignalID | \ - ((pRequestGeneratorConfig->RequestNumber - 1U) << DMAMUX_RGxCR_GNBREQ_Pos)| \ - pRequestGeneratorConfig->Polarity; - /* Process Locked */ - __HAL_UNLOCK(hdma); - - return HAL_OK; - } - else - { - /* Set the error code to busy */ - hdma->ErrorCode = HAL_DMA_ERROR_BUSY; - - /* error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief Enable the DMAMUX request generator block used by the given DMA stream (instance). - * @param hdma: pointer to a DMA_HandleTypeDef structure that contains - * the configuration information for the specified DMA Stream. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_DMAEx_EnableMuxRequestGenerator (DMA_HandleTypeDef *hdma) -{ - /* Check the parameters */ - assert_param(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance)); - - /* check if the DMA state is ready - and DMA is using a DMAMUX request generator block */ - if((hdma->State != HAL_DMA_STATE_RESET) && (hdma->DMAmuxRequestGen != 0U)) - { - /* Enable the request generator*/ - hdma->DMAmuxRequestGen->RGCR |= DMAMUX_RGxCR_GE; - - return HAL_OK; - } - else - { - return HAL_ERROR; - } -} - -/** - * @brief Disable the DMAMUX request generator block used by the given DMA stream (instance). - * @param hdma: pointer to a DMA_HandleTypeDef structure that contains - * the configuration information for the specified DMA Stream. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_DMAEx_DisableMuxRequestGenerator (DMA_HandleTypeDef *hdma) -{ - /* Check the parameters */ - assert_param(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance)); - - /* check if the DMA state is ready - and DMA is using a DMAMUX request generator block */ - if((hdma->State != HAL_DMA_STATE_RESET) && (hdma->DMAmuxRequestGen != 0U)) - { - /* Disable the request generator*/ - hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_GE; - - return HAL_OK; - } - else - { - return HAL_ERROR; - } -} - -/** - * @brief Handles DMAMUX interrupt request. - * @param hdma: pointer to a DMA_HandleTypeDef structure that contains - * the configuration information for the specified DMA Stream. - * @retval None - */ -void HAL_DMAEx_MUX_IRQHandler(DMA_HandleTypeDef *hdma) -{ - /* Check for DMAMUX Synchronization overrun */ - if((hdma->DMAmuxChannelStatus->CSR & hdma->DMAmuxChannelStatusMask) != 0U) - { - /* Disable the synchro overrun interrupt */ - hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE; - - /* Clear the DMAMUX synchro overrun flag */ - hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask; - - /* Update error code */ - hdma->ErrorCode |= HAL_DMA_ERROR_SYNC; - - if(hdma->XferErrorCallback != NULL) - { - /* Transfer error callback */ - hdma->XferErrorCallback(hdma); - } - } - - if(hdma->DMAmuxRequestGen != 0) - { - /* if using a DMAMUX request generator block Check for DMAMUX request generator overrun */ - if((hdma->DMAmuxRequestGenStatus->RGSR & hdma->DMAmuxRequestGenStatusMask) != 0U) - { - /* Disable the request gen overrun interrupt */ - hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE; - - /* Clear the DMAMUX request generator overrun flag */ - hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask; - - /* Update error code */ - hdma->ErrorCode |= HAL_DMA_ERROR_REQGEN; - - if(hdma->XferErrorCallback != NULL) - { - /* Transfer error callback */ - hdma->XferErrorCallback(hdma); - } - } - } -} - - -/** - * @} - */ - -/** - * @} - */ - -/** @addtogroup DMAEx_Private_Functions - * @{ - */ - -/** - * @brief Set the DMA Transfer parameter. - * @param hdma: pointer to a DMA_HandleTypeDef structure that contains - * the configuration information for the specified DMA Stream. - * @param SrcAddress: The source memory Buffer address - * @param DstAddress: The destination memory Buffer address - * @param DataLength: The length of data to be transferred from source to destination - * @retval HAL status - */ -static void DMA_MultiBufferSetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength) -{ - if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */ - { - /* Configure DMA Stream data length */ - ((DMA_Stream_TypeDef *)hdma->Instance)->NDTR = DataLength; - - /* Peripheral to Memory */ - if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH) - { - /* Configure DMA Stream destination address */ - ((DMA_Stream_TypeDef *)hdma->Instance)->PAR = DstAddress; - - /* Configure DMA Stream source address */ - ((DMA_Stream_TypeDef *)hdma->Instance)->M0AR = SrcAddress; - } - /* Memory to Peripheral */ - else - { - /* Configure DMA Stream source address */ - ((DMA_Stream_TypeDef *)hdma->Instance)->PAR = SrcAddress; - - /* Configure DMA Stream destination address */ - ((DMA_Stream_TypeDef *)hdma->Instance)->M0AR = DstAddress; - } - } - else /* BDMA instance(s) */ - { - /* Configure DMA Stream data length */ - ((BDMA_Channel_TypeDef *)hdma->Instance)->CNDTR = DataLength; - - /* Peripheral to Memory */ - if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH) - { - /* Configure DMA Stream destination address */ - ((BDMA_Channel_TypeDef *)hdma->Instance)->CPAR = DstAddress; - - /* Configure DMA Stream source address */ - ((BDMA_Channel_TypeDef *)hdma->Instance)->CM0AR = SrcAddress; - } - /* Memory to Peripheral */ - else - { - /* Configure DMA Stream source address */ - ((BDMA_Channel_TypeDef *)hdma->Instance)->CPAR = SrcAddress; - - /* Configure DMA Stream destination address */ - ((BDMA_Channel_TypeDef *)hdma->Instance)->CM0AR = DstAddress; - } - } -} - -/** - * @} - */ - -#endif /* HAL_DMA_MODULE_ENABLED */ -/** - * @} - */ - -/** - * @} - */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c b/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c deleted file mode 100644 index f1c09d9..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c +++ /dev/null @@ -1,3361 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_eth.c - * @author MCD Application Team - * @brief ETH HAL module driver. - * This file provides firmware functions to manage the following - * functionalities of the Ethernet (ETH) peripheral: - * + Initialization and deinitialization functions - * + IO operation functions - * + Peripheral Control functions - * + Peripheral State and Errors functions - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - @verbatim - ============================================================================== - ##### How to use this driver ##### - ============================================================================== - [..] - The ETH HAL driver can be used as follows: - - (#)Declare a ETH_HandleTypeDef handle structure, for example: - ETH_HandleTypeDef heth; - - (#)Fill parameters of Init structure in heth handle - - (#)Call HAL_ETH_Init() API to initialize the Ethernet peripheral (MAC, DMA, ...) - - (#)Initialize the ETH low level resources through the HAL_ETH_MspInit() API: - (##) Enable the Ethernet interface clock using - (+++) __HAL_RCC_ETH1MAC_CLK_ENABLE() - (+++) __HAL_RCC_ETH1TX_CLK_ENABLE() - (+++) __HAL_RCC_ETH1RX_CLK_ENABLE() - - (##) Initialize the related GPIO clocks - (##) Configure Ethernet pinout - (##) Configure Ethernet NVIC interrupt (in Interrupt mode) - - (#) Ethernet data reception is asynchronous, so call the following API - to start the listening mode: - (##) HAL_ETH_Start(): - This API starts the MAC and DMA transmission and reception process, - without enabling end of transfer interrupts, in this mode user - has to poll for data reception by calling HAL_ETH_ReadData() - (##) HAL_ETH_Start_IT(): - This API starts the MAC and DMA transmission and reception process, - end of transfer interrupts are enabled in this mode, - HAL_ETH_RxCpltCallback() will be executed when an Ethernet packet is received - - (#) When data is received user can call the following API to get received data: - (##) HAL_ETH_ReadData(): Read a received packet - - (#) For transmission path, two APIs are available: - (##) HAL_ETH_Transmit(): Transmit an ETH frame in blocking mode - (##) HAL_ETH_Transmit_IT(): Transmit an ETH frame in interrupt mode, - HAL_ETH_TxCpltCallback() will be executed when end of transfer occur - - (#) Communication with an external PHY device: - (##) HAL_ETH_ReadPHYRegister(): Read a register from an external PHY - (##) HAL_ETH_WritePHYRegister(): Write data to an external RHY register - - (#) Configure the Ethernet MAC after ETH peripheral initialization - (##) HAL_ETH_GetMACConfig(): Get MAC actual configuration into ETH_MACConfigTypeDef - (##) HAL_ETH_SetMACConfig(): Set MAC configuration based on ETH_MACConfigTypeDef - - (#) Configure the Ethernet DMA after ETH peripheral initialization - (##) HAL_ETH_GetDMAConfig(): Get DMA actual configuration into ETH_DMAConfigTypeDef - (##) HAL_ETH_SetDMAConfig(): Set DMA configuration based on ETH_DMAConfigTypeDef - - (#) Configure the Ethernet PTP after ETH peripheral initialization - (##) Define HAL_ETH_USE_PTP to use PTP APIs. - (##) HAL_ETH_PTP_GetConfig(): Get PTP actual configuration into ETH_PTP_ConfigTypeDef - (##) HAL_ETH_PTP_SetConfig(): Set PTP configuration based on ETH_PTP_ConfigTypeDef - (##) HAL_ETH_PTP_GetTime(): Get Seconds and Nanoseconds for the Ethernet PTP registers - (##) HAL_ETH_PTP_SetTime(): Set Seconds and Nanoseconds for the Ethernet PTP registers - (##) HAL_ETH_PTP_AddTimeOffset(): Add Seconds and Nanoseconds offset for the Ethernet PTP registers - (##) HAL_ETH_PTP_InsertTxTimestamp(): Insert Timestamp in transmission - (##) HAL_ETH_PTP_GetTxTimestamp(): Get transmission timestamp - (##) HAL_ETH_PTP_GetRxTimestamp(): Get reception timestamp - - -@- The ARP offload feature is not supported in this driver. - - -@- The PTP offload feature is not supported in this driver. - - *** Callback registration *** - ============================================= - - The compilation define USE_HAL_ETH_REGISTER_CALLBACKS when set to 1 - allows the user to configure dynamically the driver callbacks. - Use Function HAL_ETH_RegisterCallback() to register an interrupt callback. - - Function HAL_ETH_RegisterCallback() allows to register following callbacks: - (+) TxCpltCallback : Tx Complete Callback. - (+) RxCpltCallback : Rx Complete Callback. - (+) ErrorCallback : Error Callback. - (+) PMTCallback : Power Management Callback - (+) EEECallback : EEE Callback. - (+) WakeUpCallback : Wake UP Callback - (+) MspInitCallback : MspInit Callback. - (+) MspDeInitCallback: MspDeInit Callback. - - This function takes as parameters the HAL peripheral handle, the Callback ID - and a pointer to the user callback function. - - For specific callbacks RxAllocateCallback use dedicated register callbacks: - respectively HAL_ETH_RegisterRxAllocateCallback(). - - For specific callbacks RxLinkCallback use dedicated register callbacks: - respectively HAL_ETH_RegisterRxLinkCallback(). - - For specific callbacks TxFreeCallback use dedicated register callbacks: - respectively HAL_ETH_RegisterTxFreeCallback(). - - For specific callbacks TxPtpCallback use dedicated register callbacks: - respectively HAL_ETH_RegisterTxPtpCallback(). - - Use function HAL_ETH_UnRegisterCallback() to reset a callback to the default - weak function. - HAL_ETH_UnRegisterCallback takes as parameters the HAL peripheral handle, - and the Callback ID. - This function allows to reset following callbacks: - (+) TxCpltCallback : Tx Complete Callback. - (+) RxCpltCallback : Rx Complete Callback. - (+) ErrorCallback : Error Callback. - (+) PMTCallback : Power Management Callback - (+) EEECallback : EEE Callback. - (+) WakeUpCallback : Wake UP Callback - (+) MspInitCallback : MspInit Callback. - (+) MspDeInitCallback: MspDeInit Callback. - - For specific callbacks RxAllocateCallback use dedicated unregister callbacks: - respectively HAL_ETH_UnRegisterRxAllocateCallback(). - - For specific callbacks RxLinkCallback use dedicated unregister callbacks: - respectively HAL_ETH_UnRegisterRxLinkCallback(). - - For specific callbacks TxFreeCallback use dedicated unregister callbacks: - respectively HAL_ETH_UnRegisterTxFreeCallback(). - - For specific callbacks TxPtpCallback use dedicated unregister callbacks: - respectively HAL_ETH_UnRegisterTxPtpCallback(). - - By default, after the HAL_ETH_Init and when the state is HAL_ETH_STATE_RESET - all callbacks are set to the corresponding weak functions: - examples HAL_ETH_TxCpltCallback(), HAL_ETH_RxCpltCallback(). - Exception done for MspInit and MspDeInit functions that are - reset to the legacy weak function in the HAL_ETH_Init/ HAL_ETH_DeInit only when - these callbacks are null (not registered beforehand). - if not, MspInit or MspDeInit are not null, the HAL_ETH_Init/ HAL_ETH_DeInit - keep and use the user MspInit/MspDeInit callbacks (registered beforehand) - - Callbacks can be registered/unregistered in HAL_ETH_STATE_READY state only. - Exception done MspInit/MspDeInit that can be registered/unregistered - in HAL_ETH_STATE_READY or HAL_ETH_STATE_RESET state, - thus registered (user) MspInit/DeInit callbacks can be used during the Init/DeInit. - In that case first register the MspInit/MspDeInit user callbacks - using HAL_ETH_RegisterCallback() before calling HAL_ETH_DeInit - or HAL_ETH_Init function. - - When The compilation define USE_HAL_ETH_REGISTER_CALLBACKS is set to 0 or - not defined, the callback registration feature is not available and all callbacks - are set to the corresponding weak functions. - - @endverbatim - ****************************************************************************** - */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ -#ifdef HAL_ETH_MODULE_ENABLED - -#if defined(ETH) - -/** @defgroup ETH ETH - * @brief ETH HAL module driver - * @{ - */ - -/* Private typedef -----------------------------------------------------------*/ -/* Private define ------------------------------------------------------------*/ -/** @addtogroup ETH_Private_Constants ETH Private Constants - * @{ - */ -#define ETH_MACCR_MASK 0xFFFB7F7CU -#define ETH_MACECR_MASK 0x3F077FFFU -#define ETH_MACPFR_MASK 0x800007FFU -#define ETH_MACWTR_MASK 0x0000010FU -#define ETH_MACTFCR_MASK 0xFFFF00F2U -#define ETH_MACRFCR_MASK 0x00000003U -#define ETH_MTLTQOMR_MASK 0x00000072U -#define ETH_MTLRQOMR_MASK 0x0000007BU - -#define ETH_DMAMR_MASK 0x00007802U -#define ETH_DMASBMR_MASK 0x0000D001U -#define ETH_DMACCR_MASK 0x00013FFFU -#define ETH_DMACTCR_MASK 0x003F1010U -#define ETH_DMACRCR_MASK 0x803F0000U -#define ETH_MACPCSR_MASK (ETH_MACPCSR_PWRDWN | ETH_MACPCSR_RWKPKTEN | \ - ETH_MACPCSR_MGKPKTEN | ETH_MACPCSR_GLBLUCAST | \ - ETH_MACPCSR_RWKPFE) - -/* Timeout values */ -#define ETH_DMARXNDESCWBF_ERRORS_MASK ((uint32_t)(ETH_DMARXNDESCWBF_DE | ETH_DMARXNDESCWBF_RE | \ - ETH_DMARXNDESCWBF_OE | ETH_DMARXNDESCWBF_RWT |\ - ETH_DMARXNDESCWBF_GP | ETH_DMARXNDESCWBF_CE)) - -#define ETH_MACTSCR_MASK 0x0087FF2FU - -#define ETH_MACSTSUR_VALUE 0xFFFFFFFFU -#define ETH_MACSTNUR_VALUE 0xBB9ACA00U -#define ETH_SEGMENT_SIZE_DEFAULT 0x218U -/** - * @} - */ - -/* Private macros ------------------------------------------------------------*/ -/** @defgroup ETH_Private_Macros ETH Private Macros - * @{ - */ -/* Helper macros for TX descriptor handling */ -#define INCR_TX_DESC_INDEX(inx, offset) do {\ - (inx) += (offset);\ - if ((inx) >= (uint32_t)ETH_TX_DESC_CNT){\ - (inx) = ((inx) - (uint32_t)ETH_TX_DESC_CNT);}\ - } while (0) - -/* Helper macros for RX descriptor handling */ -#define INCR_RX_DESC_INDEX(inx, offset) do {\ - (inx) += (offset);\ - if ((inx) >= (uint32_t)ETH_RX_DESC_CNT){\ - (inx) = ((inx) - (uint32_t)ETH_RX_DESC_CNT);}\ - } while (0) -/** - * @} - */ -/* Private function prototypes -----------------------------------------------*/ -/** @defgroup ETH_Private_Functions ETH Private Functions - * @{ - */ -static void ETH_SetMACConfig(ETH_HandleTypeDef *heth, ETH_MACConfigTypeDef *macconf); -static void ETH_SetDMAConfig(ETH_HandleTypeDef *heth, ETH_DMAConfigTypeDef *dmaconf); -static void ETH_MACDMAConfig(ETH_HandleTypeDef *heth); -static void ETH_DMATxDescListInit(ETH_HandleTypeDef *heth); -static void ETH_DMARxDescListInit(ETH_HandleTypeDef *heth); -static uint32_t ETH_Prepare_Tx_Descriptors(ETH_HandleTypeDef *heth, ETH_TxPacketConfig *pTxConfig, uint32_t ItMode); -static void ETH_UpdateDescriptor(ETH_HandleTypeDef *heth); - -#if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) -static void ETH_InitCallbacksToDefault(ETH_HandleTypeDef *heth); -#endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ -/** - * @} - */ - -/* Exported functions ---------------------------------------------------------*/ -/** @defgroup ETH_Exported_Functions ETH Exported Functions - * @{ - */ - -/** @defgroup ETH_Exported_Functions_Group1 Initialization and deinitialization functions - * @brief Initialization and Configuration functions - * -@verbatim -=============================================================================== - ##### Initialization and Configuration functions ##### - =============================================================================== - [..] This subsection provides a set of functions allowing to initialize and - deinitialize the ETH peripheral: - - (+) User must Implement HAL_ETH_MspInit() function in which he configures - all related peripherals resources (CLOCK, GPIO and NVIC ). - - (+) Call the function HAL_ETH_Init() to configure the selected device with - the selected configuration: - (++) MAC address - (++) Media interface (MII or RMII) - (++) Rx DMA Descriptors Tab - (++) Tx DMA Descriptors Tab - (++) Length of Rx Buffers - - (+) Call the function HAL_ETH_DeInit() to restore the default configuration - of the selected ETH peripheral. - -@endverbatim - * @{ - */ - -/** - * @brief Initialize the Ethernet peripheral registers. - * @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) -{ - uint32_t tickstart; - - if (heth == NULL) - { - return HAL_ERROR; - } - if (heth->gState == HAL_ETH_STATE_RESET) - { - heth->gState = HAL_ETH_STATE_BUSY; - -#if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) - - ETH_InitCallbacksToDefault(heth); - - if (heth->MspInitCallback == NULL) - { - heth->MspInitCallback = HAL_ETH_MspInit; - } - - /* Init the low level hardware */ - heth->MspInitCallback(heth); -#else - /* Init the low level hardware : GPIO, CLOCK, NVIC. */ - HAL_ETH_MspInit(heth); - -#endif /* (USE_HAL_ETH_REGISTER_CALLBACKS) */ - } - - __HAL_RCC_SYSCFG_CLK_ENABLE(); - - if (heth->Init.MediaInterface == HAL_ETH_MII_MODE) - { - HAL_SYSCFG_ETHInterfaceSelect(SYSCFG_ETH_MII); - } - else - { - HAL_SYSCFG_ETHInterfaceSelect(SYSCFG_ETH_RMII); - } - - /* Dummy read to sync with ETH */ - (void)SYSCFG->PMCR; - - /* 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 */ - SET_BIT(heth->Instance->DMAMR, ETH_DMAMR_SWR); - - /* Get tick */ - tickstart = HAL_GetTick(); - - /* Wait for software reset */ - while (READ_BIT(heth->Instance->DMAMR, ETH_DMAMR_SWR) > 0U) - { - if (((HAL_GetTick() - tickstart) > ETH_SWRESET_TIMEOUT)) - { - /* Set Error Code */ - heth->ErrorCode = HAL_ETH_ERROR_TIMEOUT; - /* Set State as Error */ - heth->gState = HAL_ETH_STATE_ERROR; - /* Return Error */ - return HAL_ERROR; - } - } - - /*------------------ MDIO CSR Clock Range Configuration --------------------*/ - HAL_ETH_SetMDIOClockRange(heth); - - /*------------------ MAC LPI 1US Tic Counter Configuration --------------------*/ - WRITE_REG(heth->Instance->MAC1USTCR, (((uint32_t)HAL_RCC_GetHCLKFreq() / ETH_MAC_US_TICK) - 1U)); - - /*------------------ MAC, MTL and DMA default Configuration ----------------*/ - ETH_MACDMAConfig(heth); - - /* SET DSL to 64 bit */ - MODIFY_REG(heth->Instance->DMACCR, ETH_DMACCR_DSL, ETH_DMACCR_DSL_64BIT); - - /* Set Receive Buffers Length (must be a multiple of 4) */ - if ((heth->Init.RxBuffLen % 0x4U) != 0x0U) - { - /* Set Error Code */ - heth->ErrorCode = HAL_ETH_ERROR_PARAM; - /* Set State as Error */ - heth->gState = HAL_ETH_STATE_ERROR; - /* Return Error */ - return HAL_ERROR; - } - else - { - MODIFY_REG(heth->Instance->DMACRCR, ETH_DMACRCR_RBSZ, ((heth->Init.RxBuffLen) << 1)); - } - - /*------------------ DMA Tx Descriptors Configuration ----------------------*/ - ETH_DMATxDescListInit(heth); - - /*------------------ DMA Rx Descriptors Configuration ----------------------*/ - ETH_DMARxDescListInit(heth); - - /*--------------------- ETHERNET MAC Address Configuration ------------------*/ - /* Set MAC addr bits 32 to 47 */ - heth->Instance->MACA0HR = (((uint32_t)(heth->Init.MACAddr[5]) << 8) | (uint32_t)heth->Init.MACAddr[4]); - /* Set MAC addr bits 0 to 31 */ - heth->Instance->MACA0LR = (((uint32_t)(heth->Init.MACAddr[3]) << 24) | ((uint32_t)(heth->Init.MACAddr[2]) << 16) | - ((uint32_t)(heth->Init.MACAddr[1]) << 8) | (uint32_t)heth->Init.MACAddr[0]); - - heth->ErrorCode = HAL_ETH_ERROR_NONE; - heth->gState = HAL_ETH_STATE_READY; - - return HAL_OK; -} - -/** - * @brief DeInitializes the ETH peripheral. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_DeInit(ETH_HandleTypeDef *heth) -{ - /* Set the ETH peripheral state to BUSY */ - heth->gState = HAL_ETH_STATE_BUSY; - -#if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) - - if (heth->MspDeInitCallback == NULL) - { - heth->MspDeInitCallback = HAL_ETH_MspDeInit; - } - /* DeInit the low level hardware */ - heth->MspDeInitCallback(heth); -#else - - /* De-Init the low level hardware : GPIO, CLOCK, NVIC. */ - HAL_ETH_MspDeInit(heth); - -#endif /* (USE_HAL_ETH_REGISTER_CALLBACKS) */ - - /* Set ETH HAL state to Disabled */ - heth->gState = HAL_ETH_STATE_RESET; - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Initializes the ETH MSP. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval None - */ -__weak void HAL_ETH_MspInit(ETH_HandleTypeDef *heth) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(heth); - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_ETH_MspInit could be implemented in the user file - */ -} - -/** - * @brief DeInitializes ETH MSP. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval None - */ -__weak void HAL_ETH_MspDeInit(ETH_HandleTypeDef *heth) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(heth); - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_ETH_MspDeInit could be implemented in the user file - */ -} - -#if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) -/** - * @brief Register a User ETH Callback - * To be used instead of the weak predefined callback - * @param heth eth handle - * @param CallbackID ID of the callback to be registered - * This parameter can be one of the following values: - * @arg @ref HAL_ETH_TX_COMPLETE_CB_ID Tx Complete Callback ID - * @arg @ref HAL_ETH_RX_COMPLETE_CB_ID Rx Complete Callback ID - * @arg @ref HAL_ETH_ERROR_CB_ID Error Callback ID - * @arg @ref HAL_ETH_PMT_CB_ID Power Management Callback ID - * @arg @ref HAL_ETH_EEE_CB_ID EEE Callback ID - * @arg @ref HAL_ETH_WAKEUP_CB_ID Wake UP Callback ID - * @arg @ref HAL_ETH_MSPINIT_CB_ID MspInit callback ID - * @arg @ref HAL_ETH_MSPDEINIT_CB_ID MspDeInit callback ID - * @param pCallback pointer to the Callback function - * @retval status - */ -HAL_StatusTypeDef HAL_ETH_RegisterCallback(ETH_HandleTypeDef *heth, HAL_ETH_CallbackIDTypeDef CallbackID, - pETH_CallbackTypeDef pCallback) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (pCallback == NULL) - { - /* Update the error code */ - heth->ErrorCode |= HAL_ETH_ERROR_INVALID_CALLBACK; - - return HAL_ERROR; - } - - if (heth->gState == HAL_ETH_STATE_READY) - { - switch (CallbackID) - { - case HAL_ETH_TX_COMPLETE_CB_ID : - heth->TxCpltCallback = pCallback; - break; - - case HAL_ETH_RX_COMPLETE_CB_ID : - heth->RxCpltCallback = pCallback; - break; - - case HAL_ETH_ERROR_CB_ID : - heth->ErrorCallback = pCallback; - break; - - case HAL_ETH_PMT_CB_ID : - heth->PMTCallback = pCallback; - break; - - case HAL_ETH_EEE_CB_ID : - heth->EEECallback = pCallback; - break; - - case HAL_ETH_WAKEUP_CB_ID : - heth->WakeUpCallback = pCallback; - break; - - case HAL_ETH_MSPINIT_CB_ID : - heth->MspInitCallback = pCallback; - break; - - case HAL_ETH_MSPDEINIT_CB_ID : - heth->MspDeInitCallback = pCallback; - break; - - default : - /* Update the error code */ - heth->ErrorCode |= HAL_ETH_ERROR_INVALID_CALLBACK; - /* Return error status */ - status = HAL_ERROR; - break; - } - } - else if (heth->gState == HAL_ETH_STATE_RESET) - { - switch (CallbackID) - { - case HAL_ETH_MSPINIT_CB_ID : - heth->MspInitCallback = pCallback; - break; - - case HAL_ETH_MSPDEINIT_CB_ID : - heth->MspDeInitCallback = pCallback; - break; - - default : - /* Update the error code */ - heth->ErrorCode |= HAL_ETH_ERROR_INVALID_CALLBACK; - /* Return error status */ - status = HAL_ERROR; - break; - } - } - else - { - /* Update the error code */ - heth->ErrorCode |= HAL_ETH_ERROR_INVALID_CALLBACK; - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief Unregister an ETH Callback - * ETH callabck is redirected to the weak predefined callback - * @param heth eth handle - * @param CallbackID ID of the callback to be unregistered - * This parameter can be one of the following values: - * @arg @ref HAL_ETH_TX_COMPLETE_CB_ID Tx Complete Callback ID - * @arg @ref HAL_ETH_RX_COMPLETE_CB_ID Rx Complete Callback ID - * @arg @ref HAL_ETH_ERROR_CB_ID Error Callback ID - * @arg @ref HAL_ETH_PMT_CB_ID Power Management Callback ID - * @arg @ref HAL_ETH_EEE_CB_ID EEE Callback ID - * @arg @ref HAL_ETH_WAKEUP_CB_ID Wake UP Callback ID - * @arg @ref HAL_ETH_MSPINIT_CB_ID MspInit callback ID - * @arg @ref HAL_ETH_MSPDEINIT_CB_ID MspDeInit callback ID - * @retval status - */ -HAL_StatusTypeDef HAL_ETH_UnRegisterCallback(ETH_HandleTypeDef *heth, HAL_ETH_CallbackIDTypeDef CallbackID) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (heth->gState == HAL_ETH_STATE_READY) - { - switch (CallbackID) - { - case HAL_ETH_TX_COMPLETE_CB_ID : - heth->TxCpltCallback = HAL_ETH_TxCpltCallback; - break; - - case HAL_ETH_RX_COMPLETE_CB_ID : - heth->RxCpltCallback = HAL_ETH_RxCpltCallback; - break; - - case HAL_ETH_ERROR_CB_ID : - heth->ErrorCallback = HAL_ETH_ErrorCallback; - break; - - case HAL_ETH_PMT_CB_ID : - heth->PMTCallback = HAL_ETH_PMTCallback; - break; - - case HAL_ETH_EEE_CB_ID : - heth->EEECallback = HAL_ETH_EEECallback; - break; - - case HAL_ETH_WAKEUP_CB_ID : - heth->WakeUpCallback = HAL_ETH_WakeUpCallback; - break; - - case HAL_ETH_MSPINIT_CB_ID : - heth->MspInitCallback = HAL_ETH_MspInit; - break; - - case HAL_ETH_MSPDEINIT_CB_ID : - heth->MspDeInitCallback = HAL_ETH_MspDeInit; - break; - - default : - /* Update the error code */ - heth->ErrorCode |= HAL_ETH_ERROR_INVALID_CALLBACK; - /* Return error status */ - status = HAL_ERROR; - break; - } - } - else if (heth->gState == HAL_ETH_STATE_RESET) - { - switch (CallbackID) - { - case HAL_ETH_MSPINIT_CB_ID : - heth->MspInitCallback = HAL_ETH_MspInit; - break; - - case HAL_ETH_MSPDEINIT_CB_ID : - heth->MspDeInitCallback = HAL_ETH_MspDeInit; - break; - - default : - /* Update the error code */ - heth->ErrorCode |= HAL_ETH_ERROR_INVALID_CALLBACK; - /* Return error status */ - status = HAL_ERROR; - break; - } - } - else - { - /* Update the error code */ - heth->ErrorCode |= HAL_ETH_ERROR_INVALID_CALLBACK; - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} -#endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ - -/** - * @} - */ - -/** @defgroup ETH_Exported_Functions_Group2 IO operation functions - * @brief ETH Transmit and Receive functions - * -@verbatim - ============================================================================== - ##### IO operation functions ##### - ============================================================================== - [..] - This subsection provides a set of functions allowing to manage the ETH - data transfer. - -@endverbatim - * @{ - */ - -/** - * @brief Enables Ethernet MAC and DMA reception and transmission - * @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) -{ - if (heth->gState == HAL_ETH_STATE_READY) - { - heth->gState = HAL_ETH_STATE_BUSY; - - /* Set nombre of descriptors to build */ - heth->RxDescList.RxBuildDescCnt = ETH_RX_DESC_CNT; - - /* Build all descriptors */ - ETH_UpdateDescriptor(heth); - - /* Enable the MAC transmission */ - SET_BIT(heth->Instance->MACCR, ETH_MACCR_TE); - - /* Enable the MAC reception */ - SET_BIT(heth->Instance->MACCR, ETH_MACCR_RE); - - /* Set the Flush Transmit FIFO bit */ - SET_BIT(heth->Instance->MTLTQOMR, ETH_MTLTQOMR_FTQ); - - /* Enable the DMA transmission */ - SET_BIT(heth->Instance->DMACTCR, ETH_DMACTCR_ST); - - /* Enable the DMA reception */ - SET_BIT(heth->Instance->DMACRCR, ETH_DMACRCR_SR); - - /* Clear Tx and Rx process stopped flags */ - heth->Instance->DMACSR |= (ETH_DMACSR_TPS | ETH_DMACSR_RPS); - - heth->gState = HAL_ETH_STATE_STARTED; - - return HAL_OK; - } - else - { - return HAL_ERROR; - } -} - -/** - * @brief Enables Ethernet MAC and DMA reception/transmission in Interrupt mode - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_Start_IT(ETH_HandleTypeDef *heth) -{ - if (heth->gState == HAL_ETH_STATE_READY) - { - heth->gState = HAL_ETH_STATE_BUSY; - - /* save IT mode to ETH Handle */ - heth->RxDescList.ItMode = 1U; - /* Disable Rx MMC Interrupts */ - SET_BIT(heth->Instance->MMCRIMR, ETH_MMCRIMR_RXLPITRCIM | ETH_MMCRIMR_RXLPIUSCIM | \ - ETH_MMCRIMR_RXUCGPIM | ETH_MMCRIMR_RXALGNERPIM | ETH_MMCRIMR_RXCRCERPIM); - - /* Disable Tx MMC Interrupts */ - SET_BIT(heth->Instance->MMCTIMR, ETH_MMCTIMR_TXLPITRCIM | ETH_MMCTIMR_TXLPIUSCIM | \ - ETH_MMCTIMR_TXGPKTIM | ETH_MMCTIMR_TXMCOLGPIM | ETH_MMCTIMR_TXSCOLGPIM); - - /* Set nombre of descriptors to build */ - heth->RxDescList.RxBuildDescCnt = ETH_RX_DESC_CNT; - - /* Build all descriptors */ - ETH_UpdateDescriptor(heth); - - /* Enable the MAC transmission */ - SET_BIT(heth->Instance->MACCR, ETH_MACCR_TE); - - /* Enable the MAC reception */ - SET_BIT(heth->Instance->MACCR, ETH_MACCR_RE); - - /* Set the Flush Transmit FIFO bit */ - SET_BIT(heth->Instance->MTLTQOMR, ETH_MTLTQOMR_FTQ); - - /* Enable the DMA transmission */ - SET_BIT(heth->Instance->DMACTCR, ETH_DMACTCR_ST); - - /* Enable the DMA reception */ - SET_BIT(heth->Instance->DMACRCR, ETH_DMACRCR_SR); - - /* Clear Tx and Rx process stopped flags */ - heth->Instance->DMACSR |= (ETH_DMACSR_TPS | ETH_DMACSR_RPS); - - /* Enable ETH DMA interrupts: - - Tx complete interrupt - - Rx complete interrupt - - Fatal bus interrupt - */ - __HAL_ETH_DMA_ENABLE_IT(heth, (ETH_DMACIER_NIE | ETH_DMACIER_RIE | ETH_DMACIER_TIE | - ETH_DMACIER_FBEE | ETH_DMACIER_AIE | ETH_DMACIER_RBUE)); - - heth->gState = HAL_ETH_STATE_STARTED; - return HAL_OK; - } - else - { - return HAL_ERROR; - } -} - -/** - * @brief Stop Ethernet MAC and DMA reception/transmission - * @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) -{ - if (heth->gState == HAL_ETH_STATE_STARTED) - { - /* Set the ETH peripheral state to BUSY */ - heth->gState = HAL_ETH_STATE_BUSY; - /* Disable the DMA transmission */ - CLEAR_BIT(heth->Instance->DMACTCR, ETH_DMACTCR_ST); - - /* Disable the DMA reception */ - CLEAR_BIT(heth->Instance->DMACRCR, ETH_DMACRCR_SR); - - /* Disable the MAC reception */ - CLEAR_BIT(heth->Instance->MACCR, ETH_MACCR_RE); - - /* Set the Flush Transmit FIFO bit */ - SET_BIT(heth->Instance->MTLTQOMR, ETH_MTLTQOMR_FTQ); - - /* Disable the MAC transmission */ - CLEAR_BIT(heth->Instance->MACCR, ETH_MACCR_TE); - - heth->gState = HAL_ETH_STATE_READY; - - /* Return function status */ - return HAL_OK; - } - else - { - return HAL_ERROR; - } -} - -/** - * @brief Stop Ethernet MAC and DMA reception/transmission in Interrupt mode - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_Stop_IT(ETH_HandleTypeDef *heth) -{ - ETH_DMADescTypeDef *dmarxdesc; - uint32_t descindex; - - if (heth->gState == HAL_ETH_STATE_STARTED) - { - /* Set the ETH peripheral state to BUSY */ - heth->gState = HAL_ETH_STATE_BUSY; - - /* Disable interrupts: - - Tx complete interrupt - - Rx complete interrupt - - Fatal bus interrupt - */ - __HAL_ETH_DMA_DISABLE_IT(heth, (ETH_DMACIER_NIE | ETH_DMACIER_RIE | ETH_DMACIER_TIE | - ETH_DMACIER_FBEE | ETH_DMACIER_AIE | ETH_DMACIER_RBUE)); - - /* Disable the DMA transmission */ - CLEAR_BIT(heth->Instance->DMACTCR, ETH_DMACTCR_ST); - - /* Disable the DMA reception */ - CLEAR_BIT(heth->Instance->DMACRCR, ETH_DMACRCR_SR); - - /* Disable the MAC reception */ - CLEAR_BIT(heth->Instance->MACCR, ETH_MACCR_RE); - /* Set the Flush Transmit FIFO bit */ - SET_BIT(heth->Instance->MTLTQOMR, ETH_MTLTQOMR_FTQ); - - /* Disable the MAC transmission */ - CLEAR_BIT(heth->Instance->MACCR, ETH_MACCR_TE); - - /* Clear IOC bit to all Rx descriptors */ - for (descindex = 0; descindex < (uint32_t)ETH_RX_DESC_CNT; descindex++) - { - dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descindex]; - CLEAR_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCRF_IOC); - } - - heth->RxDescList.ItMode = 0U; - - heth->gState = HAL_ETH_STATE_READY; - - /* Return function status */ - return HAL_OK; - } - else - { - return HAL_ERROR; - } -} - -/** - * @brief Sends an Ethernet Packet in polling mode. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param pTxConfig: Hold the configuration of packet to be transmitted - * @param Timeout: timeout value - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_Transmit(ETH_HandleTypeDef *heth, ETH_TxPacketConfig *pTxConfig, uint32_t Timeout) -{ - uint32_t tickstart; - ETH_DMADescTypeDef *dmatxdesc; - - if (pTxConfig == NULL) - { - heth->ErrorCode |= HAL_ETH_ERROR_PARAM; - return HAL_ERROR; - } - - if (heth->gState == HAL_ETH_STATE_STARTED) - { - /* Config DMA Tx descriptor by Tx Packet info */ - if (ETH_Prepare_Tx_Descriptors(heth, pTxConfig, 0) != HAL_ETH_ERROR_NONE) - { - /* Set the ETH error code */ - heth->ErrorCode |= HAL_ETH_ERROR_BUSY; - return HAL_ERROR; - } - - /* Ensure completion of descriptor preparation before transmission start */ - __DSB(); - - dmatxdesc = (ETH_DMADescTypeDef *)(&heth->TxDescList)->TxDesc[heth->TxDescList.CurTxDesc]; - - /* Incr current tx desc index */ - INCR_TX_DESC_INDEX(heth->TxDescList.CurTxDesc, 1U); - - /* Start transmission */ - /* issue a poll command to Tx DMA by writing address of next immediate free descriptor */ - WRITE_REG(heth->Instance->DMACTDTPR, (uint32_t)(heth->TxDescList.TxDesc[heth->TxDescList.CurTxDesc])); - - tickstart = HAL_GetTick(); - - /* Wait for data to be transmitted or timeout occurred */ - while ((dmatxdesc->DESC3 & ETH_DMATXNDESCWBF_OWN) != (uint32_t)RESET) - { - if ((heth->Instance->DMACSR & ETH_DMACSR_FBE) != (uint32_t)RESET) - { - heth->ErrorCode |= HAL_ETH_ERROR_DMA; - heth->DMAErrorCode = heth->Instance->DMACSR; - /* Return function status */ - return HAL_ERROR; - } - - /* Check for the Timeout */ - if (Timeout != HAL_MAX_DELAY) - { - if (((HAL_GetTick() - tickstart) > Timeout) || (Timeout == 0U)) - { - heth->ErrorCode |= HAL_ETH_ERROR_TIMEOUT; - /* Clear TX descriptor so that we can proceed */ - dmatxdesc->DESC3 = (ETH_DMATXNDESCWBF_FD | ETH_DMATXNDESCWBF_LD); - return HAL_ERROR; - } - } - } - - /* Return function status */ - return HAL_OK; - } - else - { - return HAL_ERROR; - } -} - -/** - * @brief Sends an Ethernet Packet in interrupt mode. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param pTxConfig: Hold the configuration of packet to be transmitted - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_Transmit_IT(ETH_HandleTypeDef *heth, ETH_TxPacketConfig *pTxConfig) -{ - if (pTxConfig == NULL) - { - heth->ErrorCode |= HAL_ETH_ERROR_PARAM; - return HAL_ERROR; - } - - if (heth->gState == HAL_ETH_STATE_STARTED) - { - /* Save the packet pointer to release. */ - heth->TxDescList.CurrentPacketAddress = (uint32_t *)pTxConfig->pData; - - /* Config DMA Tx descriptor by Tx Packet info */ - if (ETH_Prepare_Tx_Descriptors(heth, pTxConfig, 1) != HAL_ETH_ERROR_NONE) - { - heth->ErrorCode |= HAL_ETH_ERROR_BUSY; - return HAL_ERROR; - } - - /* Ensure completion of descriptor preparation before transmission start */ - __DSB(); - - /* Incr current tx desc index */ - INCR_TX_DESC_INDEX(heth->TxDescList.CurTxDesc, 1U); - - /* Start transmission */ - /* issue a poll command to Tx DMA by writing address of next immediate free descriptor */ - WRITE_REG(heth->Instance->DMACTDTPR, (uint32_t)(heth->TxDescList.TxDesc[heth->TxDescList.CurTxDesc])); - - return HAL_OK; - - } - else - { - return HAL_ERROR; - } -} - -/** - * @brief Read a received packet. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param pAppBuff: Pointer to an application buffer to receive the packet. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_ReadData(ETH_HandleTypeDef *heth, void **pAppBuff) -{ - uint32_t descidx; - ETH_DMADescTypeDef *dmarxdesc; - uint32_t desccnt = 0U; - uint32_t desccntmax; - uint32_t bufflength; - uint8_t rxdataready = 0U; - - - if (pAppBuff == NULL) - { - heth->ErrorCode |= HAL_ETH_ERROR_PARAM; - return HAL_ERROR; - } - - if (heth->gState != HAL_ETH_STATE_STARTED) - { - return HAL_ERROR; - } - - descidx = heth->RxDescList.RxDescIdx; - dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descidx]; - desccntmax = ETH_RX_DESC_CNT - heth->RxDescList.RxBuildDescCnt; - - /* Check if descriptor is not owned by DMA */ - while ((READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_OWN) == (uint32_t)RESET) && (desccnt < desccntmax) - && (rxdataready == 0U)) - { - if (READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_CTXT) != (uint32_t)RESET) - { - /* Get timestamp high */ - heth->RxDescList.TimeStamp.TimeStampHigh = dmarxdesc->DESC1; - /* Get timestamp low */ - heth->RxDescList.TimeStamp.TimeStampLow = dmarxdesc->DESC0; - } - if ((READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_FD) != (uint32_t)RESET) || (heth->RxDescList.pRxStart != NULL)) - { - /* Check if first descriptor */ - if (READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_FD) != (uint32_t)RESET) - { - heth->RxDescList.RxDescCnt = 0; - heth->RxDescList.RxDataLength = 0; - } - - /* Check if last descriptor */ - bufflength = heth->Init.RxBuffLen; - if (READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_LD) != (uint32_t)RESET) - { - bufflength = READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_PL) - heth->RxDescList.RxDataLength; - - /* Save Last descriptor index */ - heth->RxDescList.pRxLastRxDesc = dmarxdesc->DESC3; - - /* Packet ready */ - rxdataready = 1; - } - - /* Link data */ -#if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) - /*Call registered Link callback*/ - heth->rxLinkCallback(&heth->RxDescList.pRxStart, &heth->RxDescList.pRxEnd, - (uint8_t *)dmarxdesc->BackupAddr0, bufflength); -#else - /* Link callback */ - HAL_ETH_RxLinkCallback(&heth->RxDescList.pRxStart, &heth->RxDescList.pRxEnd, - (uint8_t *)dmarxdesc->BackupAddr0, (uint16_t) bufflength); -#endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ - heth->RxDescList.RxDescCnt++; - heth->RxDescList.RxDataLength += bufflength; - - /* Clear buffer pointer */ - dmarxdesc->BackupAddr0 = 0; - } - - /* Increment current rx descriptor index */ - INCR_RX_DESC_INDEX(descidx, 1U); - /* Get current descriptor address */ - dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descidx]; - desccnt++; - } - - heth->RxDescList.RxBuildDescCnt += desccnt; - if ((heth->RxDescList.RxBuildDescCnt) != 0U) - { - /* Update Descriptors */ - ETH_UpdateDescriptor(heth); - } - - heth->RxDescList.RxDescIdx = descidx; - - if (rxdataready == 1U) - { - /* Return received packet */ - *pAppBuff = heth->RxDescList.pRxStart; - /* Reset first element */ - heth->RxDescList.pRxStart = NULL; - - return HAL_OK; - } - - /* Packet not ready */ - return HAL_ERROR; -} - -/** - * @brief This function gives back Rx Desc of the last received Packet - * to the DMA, so ETH DMA will be able to use these descriptors - * to receive next Packets. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval HAL status - */ -static void ETH_UpdateDescriptor(ETH_HandleTypeDef *heth) -{ - uint32_t descidx; - uint32_t desccount; - ETH_DMADescTypeDef *dmarxdesc; - uint8_t *buff = NULL; - uint8_t allocStatus = 1U; - - descidx = heth->RxDescList.RxBuildDescIdx; - dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descidx]; - desccount = heth->RxDescList.RxBuildDescCnt; - - while ((desccount > 0U) && (allocStatus != 0U)) - { - /* Check if a buffer's attached the descriptor */ - if (READ_REG(dmarxdesc->BackupAddr0) == 0U) - { - /* Get a new buffer. */ -#if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) - /*Call registered Allocate callback*/ - heth->rxAllocateCallback(&buff); -#else - /* Allocate callback */ - HAL_ETH_RxAllocateCallback(&buff); -#endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ - if (buff == NULL) - { - allocStatus = 0U; - } - else - { - WRITE_REG(dmarxdesc->BackupAddr0, (uint32_t)buff); - WRITE_REG(dmarxdesc->DESC0, (uint32_t)buff); - } - } - - if (allocStatus != 0U) - { - /* Ensure rest of descriptor is written to RAM before the OWN bit */ - __DMB(); - - if (heth->RxDescList.ItMode != 0U) - { - WRITE_REG(dmarxdesc->DESC3, ETH_DMARXNDESCRF_OWN | ETH_DMARXNDESCRF_BUF1V | ETH_DMARXNDESCRF_IOC); - } - else - { - WRITE_REG(dmarxdesc->DESC3, ETH_DMARXNDESCRF_OWN | ETH_DMARXNDESCRF_BUF1V); - } - - /* Increment current rx descriptor index */ - INCR_RX_DESC_INDEX(descidx, 1U); - /* Get current descriptor address */ - dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descidx]; - desccount--; - } - } - - if (heth->RxDescList.RxBuildDescCnt != desccount) - { - /* Set the Tail pointer address */ - WRITE_REG(heth->Instance->DMACRDTPR, 0); - - heth->RxDescList.RxBuildDescIdx = descidx; - heth->RxDescList.RxBuildDescCnt = desccount; - } -} - -/** - * @brief Register the Rx alloc callback. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param rxAllocateCallback: pointer to function to alloc buffer - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_RegisterRxAllocateCallback(ETH_HandleTypeDef *heth, - pETH_rxAllocateCallbackTypeDef rxAllocateCallback) -{ - if (rxAllocateCallback == NULL) - { - /* No buffer to save */ - return HAL_ERROR; - } - - /* Set function to allocate buffer */ - heth->rxAllocateCallback = rxAllocateCallback; - - return HAL_OK; -} - -/** - * @brief Unregister the Rx alloc callback. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_UnRegisterRxAllocateCallback(ETH_HandleTypeDef *heth) -{ - /* Set function to allocate buffer */ - heth->rxAllocateCallback = HAL_ETH_RxAllocateCallback; - - return HAL_OK; -} - -/** - * @brief Rx Allocate callback. - * @param buff: pointer to allocated buffer - * @retval None - */ -__weak void HAL_ETH_RxAllocateCallback(uint8_t **buff) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(buff); - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_ETH_RxAllocateCallback could be implemented in the user file - */ -} - -/** - * @brief Rx Link callback. - * @param pStart: pointer to packet start - * @param pStart: pointer to packet end - * @param buff: pointer to received data - * @param Length: received data length - * @retval None - */ -__weak void HAL_ETH_RxLinkCallback(void **pStart, void **pEnd, uint8_t *buff, uint16_t Length) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(pStart); - UNUSED(pEnd); - UNUSED(buff); - UNUSED(Length); - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_ETH_RxLinkCallback could be implemented in the user file - */ -} - -/** - * @brief Set the Rx link data function. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param rxLinkCallback: pointer to function to link data - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_RegisterRxLinkCallback(ETH_HandleTypeDef *heth, pETH_rxLinkCallbackTypeDef rxLinkCallback) -{ - if (rxLinkCallback == NULL) - { - /* No buffer to save */ - return HAL_ERROR; - } - - /* Set function to link data */ - heth->rxLinkCallback = rxLinkCallback; - - return HAL_OK; -} - -/** - * @brief Unregister the Rx link callback. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_UnRegisterRxLinkCallback(ETH_HandleTypeDef *heth) -{ - /* Set function to allocate buffer */ - heth->rxLinkCallback = HAL_ETH_RxLinkCallback; - - return HAL_OK; -} - -/** - * @brief Get the error state of the last received packet. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param pErrorCode: pointer to uint32_t to hold the error code - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_GetRxDataErrorCode(ETH_HandleTypeDef *heth, uint32_t *pErrorCode) -{ - /* Get error bits. */ - *pErrorCode = READ_BIT(heth->RxDescList.pRxLastRxDesc, ETH_DMARXNDESCWBF_ERRORS_MASK); - - return HAL_OK; -} - -/** - * @brief Set the Tx free function. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param txFreeCallback: pointer to function to release the packet - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_RegisterTxFreeCallback(ETH_HandleTypeDef *heth, pETH_txFreeCallbackTypeDef txFreeCallback) -{ - if (txFreeCallback == NULL) - { - /* No buffer to save */ - return HAL_ERROR; - } - - /* Set function to free transmmitted packet */ - heth->txFreeCallback = txFreeCallback; - - return HAL_OK; -} - -/** - * @brief Unregister the Tx free callback. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_UnRegisterTxFreeCallback(ETH_HandleTypeDef *heth) -{ - /* Set function to allocate buffer */ - heth->txFreeCallback = HAL_ETH_TxFreeCallback; - - return HAL_OK; -} - -/** - * @brief Tx Free callback. - * @param buff: pointer to buffer to free - * @retval None - */ -__weak void HAL_ETH_TxFreeCallback(uint32_t *buff) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(buff); - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_ETH_TxFreeCallback could be implemented in the user file - */ -} - -/** - * @brief Release transmitted Tx packets. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_ReleaseTxPacket(ETH_HandleTypeDef *heth) -{ - ETH_TxDescListTypeDef *dmatxdesclist = &heth->TxDescList; - uint32_t numOfBuf = dmatxdesclist->BuffersInUse; - uint32_t idx = dmatxdesclist->releaseIndex; - uint8_t pktTxStatus = 1U; - uint8_t pktInUse; -#ifdef HAL_ETH_USE_PTP - ETH_TimeStampTypeDef *timestamp = &heth->TxTimestamp; -#endif /* HAL_ETH_USE_PTP */ - - /* Loop through buffers in use. */ - while ((numOfBuf != 0U) && (pktTxStatus != 0U)) - { - pktInUse = 1U; - numOfBuf--; - /* If no packet, just examine the next packet. */ - if (dmatxdesclist->PacketAddress[idx] == NULL) - { - /* No packet in use, skip to next. */ - idx = (idx + 1U) & (ETH_TX_DESC_CNT - 1U); - pktInUse = 0U; - } - - if (pktInUse != 0U) - { - /* Determine if the packet has been transmitted. */ - if ((heth->Init.TxDesc[idx].DESC3 & ETH_DMATXNDESCRF_OWN) == 0U) - { -#ifdef HAL_ETH_USE_PTP - /* Disable Ptp transmission */ - CLEAR_BIT(heth->Init.TxDesc[idx].DESC3, (0x40000000U)); - - /* Get timestamp low */ - timestamp->TimeStampLow = heth->Init.TxDesc[idx].DESC0; - /* Get timestamp high */ - timestamp->TimeStampHigh = heth->Init.TxDesc[idx].DESC1; -#endif /* HAL_ETH_USE_PTP */ - -#if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) - /*Call registered callbacks*/ -#ifdef HAL_ETH_USE_PTP - /* Handle Ptp */ - heth->txPtpCallback(dmatxdesclist->PacketAddress[idx], timestamp); -#endif /* HAL_ETH_USE_PTP */ - /* Release the packet. */ - heth->txFreeCallback(dmatxdesclist->PacketAddress[idx]); -#else - /* Call callbacks */ -#ifdef HAL_ETH_USE_PTP - /* Handle Ptp */ - HAL_ETH_TxPtpCallback(dmatxdesclist->PacketAddress[idx], timestamp); -#endif /* HAL_ETH_USE_PTP */ - /* Release the packet. */ - HAL_ETH_TxFreeCallback(dmatxdesclist->PacketAddress[idx]); -#endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ - - /* Clear the entry in the in-use array. */ - dmatxdesclist->PacketAddress[idx] = NULL; - - /* Update the transmit relesae index and number of buffers in use. */ - idx = (idx + 1U) & (ETH_TX_DESC_CNT - 1U); - dmatxdesclist->BuffersInUse = numOfBuf; - dmatxdesclist->releaseIndex = idx; - } - else - { - /* Get out of the loop! */ - pktTxStatus = 0U; - } - } - } - return HAL_OK; -} - -#ifdef HAL_ETH_USE_PTP -/** - * @brief Set the Ethernet PTP configuration. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param ptpconfig: pointer to a ETH_PTP_ConfigTypeDef structure that contains - * the configuration information for PTP - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_PTP_SetConfig(ETH_HandleTypeDef *heth, ETH_PTP_ConfigTypeDef *ptpconfig) -{ - uint32_t tmpTSCR; - ETH_TimeTypeDef time; - - if (ptpconfig == NULL) - { - return HAL_ERROR; - } - - tmpTSCR = ptpconfig->Timestamp | - ((uint32_t)ptpconfig->TimestampUpdate << ETH_MACTSCR_TSUPDT_Pos) | - ((uint32_t)ptpconfig->TimestampAll << ETH_MACTSCR_TSENALL_Pos) | - ((uint32_t)ptpconfig->TimestampRolloverMode << ETH_MACTSCR_TSCTRLSSR_Pos) | - ((uint32_t)ptpconfig->TimestampV2 << ETH_MACTSCR_TSVER2ENA_Pos) | - ((uint32_t)ptpconfig->TimestampEthernet << ETH_MACTSCR_TSIPENA_Pos) | - ((uint32_t)ptpconfig->TimestampIPv6 << ETH_MACTSCR_TSIPV6ENA_Pos) | - ((uint32_t)ptpconfig->TimestampIPv4 << ETH_MACTSCR_TSIPV4ENA_Pos) | - ((uint32_t)ptpconfig->TimestampEvent << ETH_MACTSCR_TSEVNTENA_Pos) | - ((uint32_t)ptpconfig->TimestampMaster << ETH_MACTSCR_TSMSTRENA_Pos) | - ((uint32_t)ptpconfig->TimestampSnapshots << ETH_MACTSCR_SNAPTYPSEL_Pos) | - ((uint32_t)ptpconfig->TimestampFilter << ETH_MACTSCR_TSENMACADDR_Pos) | - ((uint32_t)ptpconfig->TimestampChecksumCorrection << ETH_MACTSCR_CSC_Pos) | - ((uint32_t)ptpconfig->TimestampStatusMode << ETH_MACTSCR_TXTSSTSM_Pos); - - /* Write to MACTSCR */ - MODIFY_REG(heth->Instance->MACTSCR, ETH_MACTSCR_MASK, tmpTSCR); - - /* Enable Timestamp */ - SET_BIT(heth->Instance->MACTSCR, ETH_MACTSCR_TSENA); - WRITE_REG(heth->Instance->MACSSIR, ptpconfig->TimestampSubsecondInc); - WRITE_REG(heth->Instance->MACTSAR, ptpconfig->TimestampAddend); - - /* Enable Timestamp */ - if (ptpconfig->TimestampAddendUpdate == ENABLE) - { - SET_BIT(heth->Instance->MACTSCR, ETH_MACTSCR_TSADDREG); - while ((heth->Instance->MACTSCR & ETH_MACTSCR_TSADDREG) != 0) {} - } - - /* Enable Update mode */ - if (ptpconfig->TimestampUpdateMode == ENABLE) - { - SET_BIT(heth->Instance->MACTSCR, ETH_MACTSCR_TSCFUPDT); - } - - /* Initialize Time */ - time.Seconds = 0; - time.NanoSeconds = 0; - HAL_ETH_PTP_SetTime(heth, &time); - - /* Ptp Init */ - SET_BIT(heth->Instance->MACTSCR, ETH_MACTSCR_TSINIT); - - /* Set PTP Configuration done */ - heth->IsPtpConfigured = HAL_ETH_PTP_CONFIGURATED; - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Get the Ethernet PTP configuration. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param ptpconfig: pointer to a ETH_PTP_ConfigTypeDef structure that contains - * the configuration information for PTP - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_PTP_GetConfig(ETH_HandleTypeDef *heth, ETH_PTP_ConfigTypeDef *ptpconfig) -{ - if (ptpconfig == NULL) - { - return HAL_ERROR; - } - ptpconfig->Timestamp = READ_BIT(heth->Instance->MACTSCR, ETH_MACTSCR_TSENA); - ptpconfig->TimestampUpdate = ((READ_BIT(heth->Instance->MACTSCR, - ETH_MACTSCR_TSCFUPDT) >> ETH_MACTSCR_TSUPDT_Pos) > 0U) ? ENABLE : DISABLE; - ptpconfig->TimestampAll = ((READ_BIT(heth->Instance->MACTSCR, - ETH_MACTSCR_TSENALL) >> ETH_MACTSCR_TSENALL_Pos) > 0U) ? ENABLE : DISABLE; - ptpconfig->TimestampRolloverMode = ((READ_BIT(heth->Instance->MACTSCR, - ETH_MACTSCR_TSCTRLSSR) >> ETH_MACTSCR_TSCTRLSSR_Pos) > 0U) - ? ENABLE : DISABLE; - ptpconfig->TimestampV2 = ((READ_BIT(heth->Instance->MACTSCR, - ETH_MACTSCR_TSVER2ENA) >> ETH_MACTSCR_TSVER2ENA_Pos) > 0U) ? ENABLE : DISABLE; - ptpconfig->TimestampEthernet = ((READ_BIT(heth->Instance->MACTSCR, - ETH_MACTSCR_TSIPENA) >> ETH_MACTSCR_TSIPENA_Pos) > 0U) ? ENABLE : DISABLE; - ptpconfig->TimestampIPv6 = ((READ_BIT(heth->Instance->MACTSCR, - ETH_MACTSCR_TSIPV6ENA) >> ETH_MACTSCR_TSIPV6ENA_Pos) > 0U) ? ENABLE : DISABLE; - ptpconfig->TimestampIPv4 = ((READ_BIT(heth->Instance->MACTSCR, - ETH_MACTSCR_TSIPV4ENA) >> ETH_MACTSCR_TSIPV4ENA_Pos) > 0U) ? ENABLE : DISABLE; - ptpconfig->TimestampEvent = ((READ_BIT(heth->Instance->MACTSCR, - ETH_MACTSCR_TSEVNTENA) >> ETH_MACTSCR_TSEVNTENA_Pos) > 0U) ? ENABLE : DISABLE; - ptpconfig->TimestampMaster = ((READ_BIT(heth->Instance->MACTSCR, - ETH_MACTSCR_TSMSTRENA) >> ETH_MACTSCR_TSMSTRENA_Pos) > 0U) ? ENABLE : DISABLE; - ptpconfig->TimestampSnapshots = ((READ_BIT(heth->Instance->MACTSCR, - ETH_MACTSCR_SNAPTYPSEL) >> ETH_MACTSCR_SNAPTYPSEL_Pos) > 0U) - ? ENABLE : DISABLE; - ptpconfig->TimestampFilter = ((READ_BIT(heth->Instance->MACTSCR, - ETH_MACTSCR_TSENMACADDR) >> ETH_MACTSCR_TSENMACADDR_Pos) > 0U) - ? ENABLE : DISABLE; - ptpconfig->TimestampChecksumCorrection = ((READ_BIT(heth->Instance->MACTSCR, - ETH_MACTSCR_CSC) >> ETH_MACTSCR_CSC_Pos) > 0U) ? ENABLE : DISABLE; - ptpconfig->TimestampStatusMode = ((READ_BIT(heth->Instance->MACTSCR, - ETH_MACTSCR_TXTSSTSM) >> ETH_MACTSCR_TXTSSTSM_Pos) > 0U) - ? ENABLE : DISABLE; - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Set Seconds and Nanoseconds for the Ethernet PTP registers. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param heth: pointer to a ETH_TimeTypeDef structure that contains - * time to set - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_PTP_SetTime(ETH_HandleTypeDef *heth, ETH_TimeTypeDef *time) -{ - if (heth->IsPtpConfigured == HAL_ETH_PTP_CONFIGURATED) - { - /* Set Seconds */ - heth->Instance->MACSTSUR = time->Seconds; - - /* Set NanoSeconds */ - heth->Instance->MACSTNUR = time->NanoSeconds; - - /* Return function status */ - return HAL_OK; - } - else - { - /* Return function status */ - return HAL_ERROR; - } -} - -/** - * @brief Get Seconds and Nanoseconds for the Ethernet PTP registers. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param heth: pointer to a ETH_TimeTypeDef structure that contains - * time to get - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_PTP_GetTime(ETH_HandleTypeDef *heth, ETH_TimeTypeDef *time) -{ - if (heth->IsPtpConfigured == HAL_ETH_PTP_CONFIGURATED) - { - /* Get Seconds */ - time->Seconds = heth->Instance->MACSTSUR; - - /* Get NanoSeconds */ - time->NanoSeconds = heth->Instance->MACSTNUR; - - /* Return function status */ - return HAL_OK; - } - else - { - /* Return function status */ - return HAL_ERROR; - } -} - -/** - * @brief Update time for the Ethernet PTP registers. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param timeupdate: pointer to a ETH_TIMEUPDATETypeDef structure that contains - * the time update information - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_PTP_AddTimeOffset(ETH_HandleTypeDef *heth, ETH_PtpUpdateTypeDef ptpoffsettype, - ETH_TimeTypeDef *timeoffset) -{ - if (heth->IsPtpConfigured == HAL_ETH_PTP_CONFIGURATED) - { - if (ptpoffsettype == HAL_ETH_PTP_NEGATIVE_UPDATE) - { - /* Set Seconds update */ - heth->Instance->MACSTSUR = ETH_MACSTSUR_VALUE - timeoffset->Seconds + 1U; - - if (READ_BIT(heth->Instance->MACTSCR, ETH_MACTSCR_TSCTRLSSR) == ETH_MACTSCR_TSCTRLSSR) - { - /* Set nanoSeconds update */ - heth->Instance->MACSTNUR = ETH_MACSTNUR_VALUE - timeoffset->NanoSeconds; - } - else - { - /* Set nanoSeconds update */ - heth->Instance->MACSTNUR = ETH_MACSTSUR_VALUE - timeoffset->NanoSeconds + 1U; - } - } - else - { - /* Set Seconds update */ - heth->Instance->MACSTSUR = timeoffset->Seconds; - /* Set nanoSeconds update */ - heth->Instance->MACSTNUR = timeoffset->NanoSeconds; - } - - /* Return function status */ - return HAL_OK; - } - else - { - /* Return function status */ - return HAL_ERROR; - } -} - -/** - * @brief Insert Timestamp in transmission. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param txtimestampconf: Enable or Disable timestamp in transmission - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_PTP_InsertTxTimestamp(ETH_HandleTypeDef *heth) -{ - ETH_TxDescListTypeDef *dmatxdesclist = &heth->TxDescList; - uint32_t descidx = dmatxdesclist->CurTxDesc; - ETH_DMADescTypeDef *dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx]; - - if (heth->IsPtpConfigured == HAL_ETH_PTP_CONFIGURATED) - { - /* Enable Time Stamp transmission */ - SET_BIT(dmatxdesc->DESC2, ETH_DMATXNDESCRF_TTSE); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Return function status */ - return HAL_ERROR; - } -} - -/** - * @brief Get transmission timestamp. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param timestamp: pointer to ETH_TIMESTAMPTypeDef structure that contains - * transmission timestamp - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_PTP_GetTxTimestamp(ETH_HandleTypeDef *heth, ETH_TimeStampTypeDef *timestamp) -{ - ETH_TxDescListTypeDef *dmatxdesclist = &heth->TxDescList; - uint32_t idx = dmatxdesclist->releaseIndex; - ETH_DMADescTypeDef *dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[idx]; - - if (heth->IsPtpConfigured == HAL_ETH_PTP_CONFIGURATED) - { - /* Get timestamp low */ - timestamp->TimeStampLow = dmatxdesc->DESC0; - /* Get timestamp high */ - timestamp->TimeStampHigh = dmatxdesc->DESC1; - - /* Return function status */ - return HAL_OK; - } - else - { - /* Return function status */ - return HAL_ERROR; - } -} - -/** - * @brief Get receive timestamp. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param timestamp: pointer to ETH_TIMESTAMPTypeDef structure that contains - * receive timestamp - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_PTP_GetRxTimestamp(ETH_HandleTypeDef *heth, ETH_TimeStampTypeDef *timestamp) -{ - if (heth->IsPtpConfigured == HAL_ETH_PTP_CONFIGURATED) - { - /* Get timestamp low */ - timestamp->TimeStampLow = heth->RxDescList.TimeStamp.TimeStampLow; - /* Get timestamp high */ - timestamp->TimeStampHigh = heth->RxDescList.TimeStamp.TimeStampHigh; - - /* Return function status */ - return HAL_OK; - } - else - { - /* Return function status */ - return HAL_ERROR; - } -} - -/** - * @brief Register the Tx Ptp callback. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param txPtpCallback: Function to handle Ptp transmission - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_RegisterTxPtpCallback(ETH_HandleTypeDef *heth, pETH_txPtpCallbackTypeDef txPtpCallback) -{ - if (txPtpCallback == NULL) - { - /* No buffer to save */ - return HAL_ERROR; - } - /* Set Function to handle Tx Ptp */ - heth->txPtpCallback = txPtpCallback; - - return HAL_OK; -} - -/** - * @brief Unregister the Tx Ptp callback. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_UnRegisterTxPtpCallback(ETH_HandleTypeDef *heth) -{ - /* Set function to allocate buffer */ - heth->txPtpCallback = HAL_ETH_TxPtpCallback; - - return HAL_OK; -} - -/** - * @brief Tx Ptp callback. - * @param buff: pointer to application buffer - * @retval None - */ -__weak void HAL_ETH_TxPtpCallback(uint32_t *buff, ETH_TimeStampTypeDef *timestamp) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(buff); - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_ETH_TxPtpCallback could be implemented in the user file - */ -} -#endif /* HAL_ETH_USE_PTP */ - -/** - * @brief This function handles ETH interrupt request. - * @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) -{ - uint32_t macirqenable; - /* Packet received */ - if (__HAL_ETH_DMA_GET_IT(heth, ETH_DMACSR_RI)) - { - if (__HAL_ETH_DMA_GET_IT_SOURCE(heth, ETH_DMACIER_RIE)) - { - /* Clear the Eth DMA Rx IT pending bits */ - __HAL_ETH_DMA_CLEAR_IT(heth, ETH_DMACSR_RI | ETH_DMACSR_NIS); - -#if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) - /*Call registered Receive complete callback*/ - heth->RxCpltCallback(heth); -#else - /* Receive complete callback */ - HAL_ETH_RxCpltCallback(heth); -#endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ - } - } - - /* Packet transmitted */ - if (__HAL_ETH_DMA_GET_IT(heth, ETH_DMACSR_TI)) - { - if (__HAL_ETH_DMA_GET_IT_SOURCE(heth, ETH_DMACIER_TIE)) - { - /* Clear the Eth DMA Tx IT pending bits */ - __HAL_ETH_DMA_CLEAR_IT(heth, ETH_DMACSR_TI | ETH_DMACSR_NIS); - -#if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) - /*Call registered Transmit complete callback*/ - heth->TxCpltCallback(heth); -#else - /* Transfer complete callback */ - HAL_ETH_TxCpltCallback(heth); -#endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ - } - } - - - /* ETH DMA Error */ - if (__HAL_ETH_DMA_GET_IT(heth, ETH_DMACSR_AIS)) - { - if (__HAL_ETH_DMA_GET_IT_SOURCE(heth, ETH_DMACIER_AIE)) - { - heth->ErrorCode |= HAL_ETH_ERROR_DMA; - - /* if fatal bus error occurred */ - if (__HAL_ETH_DMA_GET_IT(heth, ETH_DMACSR_FBE)) - { - /* Get DMA error code */ - heth->DMAErrorCode = READ_BIT(heth->Instance->DMACSR, (ETH_DMACSR_FBE | ETH_DMACSR_TPS | ETH_DMACSR_RPS)); - - /* Disable all interrupts */ - __HAL_ETH_DMA_DISABLE_IT(heth, ETH_DMACIER_NIE | ETH_DMACIER_AIE); - - /* Set HAL state to ERROR */ - heth->gState = HAL_ETH_STATE_ERROR; - } - else - { - /* Get DMA error status */ - heth->DMAErrorCode = READ_BIT(heth->Instance->DMACSR, (ETH_DMACSR_CDE | ETH_DMACSR_ETI | ETH_DMACSR_RWT | - ETH_DMACSR_RBU | ETH_DMACSR_AIS)); - - /* Clear the interrupt summary flag */ - __HAL_ETH_DMA_CLEAR_IT(heth, (ETH_DMACSR_CDE | ETH_DMACSR_ETI | ETH_DMACSR_RWT | - ETH_DMACSR_RBU | ETH_DMACSR_AIS)); - } -#if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) - /* Call registered Error callback*/ - heth->ErrorCallback(heth); -#else - /* Ethernet DMA Error callback */ - HAL_ETH_ErrorCallback(heth); -#endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ - - } - } - - /* ETH MAC Error IT */ - macirqenable = heth->Instance->MACIER; - if (((macirqenable & ETH_MACIER_RXSTSIE) == ETH_MACIER_RXSTSIE) || \ - ((macirqenable & ETH_MACIER_TXSTSIE) == ETH_MACIER_TXSTSIE)) - { - heth->ErrorCode |= HAL_ETH_ERROR_MAC; - - /* Get MAC Rx Tx status and clear Status register pending bit */ - heth->MACErrorCode = READ_REG(heth->Instance->MACRXTXSR); - - heth->gState = HAL_ETH_STATE_ERROR; - -#if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) - /* Call registered Error callback*/ - heth->ErrorCallback(heth); -#else - /* Ethernet Error callback */ - HAL_ETH_ErrorCallback(heth); -#endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ - - heth->MACErrorCode = (uint32_t)(0x0U); - } - - /* ETH PMT IT */ - if (__HAL_ETH_MAC_GET_IT(heth, ETH_MAC_PMT_IT)) - { - /* Get MAC Wake-up source and clear the status register pending bit */ - heth->MACWakeUpEvent = READ_BIT(heth->Instance->MACPCSR, (ETH_MACPCSR_RWKPRCVD | ETH_MACPCSR_MGKPRCVD)); - -#if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) - /* Call registered PMT callback*/ - heth->PMTCallback(heth); -#else - /* Ethernet PMT callback */ - HAL_ETH_PMTCallback(heth); -#endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ - - heth->MACWakeUpEvent = (uint32_t)(0x0U); - } - - /* ETH EEE IT */ - if (__HAL_ETH_MAC_GET_IT(heth, ETH_MAC_LPI_IT)) - { - /* Get MAC LPI interrupt source and clear the status register pending bit */ - heth->MACLPIEvent = READ_BIT(heth->Instance->MACPCSR, 0x0000000FU); - -#if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) - /* Call registered EEE callback*/ - heth->EEECallback(heth); -#else - /* Ethernet EEE callback */ - HAL_ETH_EEECallback(heth); -#endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ - - heth->MACLPIEvent = (uint32_t)(0x0U); - } - -#if defined(DUAL_CORE) - if (HAL_GetCurrentCPUID() == CM7_CPUID) - { - /* check ETH WAKEUP exti flag */ - if (__HAL_ETH_WAKEUP_EXTI_GET_FLAG(ETH_WAKEUP_EXTI_LINE) != (uint32_t)RESET) - { - /* Clear ETH WAKEUP Exti pending bit */ - __HAL_ETH_WAKEUP_EXTI_CLEAR_FLAG(ETH_WAKEUP_EXTI_LINE); -#if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) - /* Call registered WakeUp callback*/ - heth->WakeUpCallback(heth); -#else - /* ETH WAKEUP callback */ - HAL_ETH_WakeUpCallback(heth); -#endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ - } - } - else - { - /* check ETH WAKEUP exti flag */ - if (__HAL_ETH_WAKEUP_EXTID2_GET_FLAG(ETH_WAKEUP_EXTI_LINE) != (uint32_t)RESET) - { - /* Clear ETH WAKEUP Exti pending bit */ - __HAL_ETH_WAKEUP_EXTID2_CLEAR_FLAG(ETH_WAKEUP_EXTI_LINE); -#if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) - /* Call registered WakeUp callback*/ - heth->WakeUpCallback(heth); -#else - /* ETH WAKEUP callback */ - HAL_ETH_WakeUpCallback(heth); -#endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ - } - } -#else /* USE_HAL_ETH_REGISTER_CALLBACKS */ - /* check ETH WAKEUP exti flag */ - if (__HAL_ETH_WAKEUP_EXTI_GET_FLAG(ETH_WAKEUP_EXTI_LINE) != (uint32_t)RESET) - { - /* Clear ETH WAKEUP Exti pending bit */ - __HAL_ETH_WAKEUP_EXTI_CLEAR_FLAG(ETH_WAKEUP_EXTI_LINE); -#if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) - /* Call registered WakeUp callback*/ - heth->WakeUpCallback(heth); -#else - /* ETH WAKEUP callback */ - HAL_ETH_WakeUpCallback(heth); -#endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ - } -#endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ -} - -/** - * @brief Tx Transfer completed callbacks. - * @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) -{ - /* Prevent unused argument(s) compilation warning */ - 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 - */ -} - -/** - * @brief Rx Transfer completed callbacks. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval None - */ -__weak void HAL_ETH_RxCpltCallback(ETH_HandleTypeDef *heth) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(heth); - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_ETH_RxCpltCallback could be implemented in the user file - */ -} - -/** - * @brief Ethernet transfer error callbacks - * @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) -{ - /* Prevent unused argument(s) compilation warning */ - 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 - */ -} - -/** - * @brief Ethernet Power Management module IT callback - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval None - */ -__weak void HAL_ETH_PMTCallback(ETH_HandleTypeDef *heth) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(heth); - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_ETH_PMTCallback could be implemented in the user file - */ -} - -/** - * @brief Energy Efficient Etherent IT callback - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval None - */ -__weak void HAL_ETH_EEECallback(ETH_HandleTypeDef *heth) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(heth); - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_ETH_EEECallback could be implemented in the user file - */ -} - -/** - * @brief ETH WAKEUP interrupt callback - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval None - */ -__weak void HAL_ETH_WakeUpCallback(ETH_HandleTypeDef *heth) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(heth); - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_ETH_WakeUpCallback could be implemented in the user file - */ -} - -/** - * @brief Read a PHY register - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param PHYAddr: PHY port address, must be a value from 0 to 31 - * @param PHYReg: PHY register address, must be a value from 0 to 31 - * @param pRegValue: parameter to hold read value - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_ReadPHYRegister(ETH_HandleTypeDef *heth, uint32_t PHYAddr, uint32_t PHYReg, - uint32_t *pRegValue) -{ - uint32_t tickstart; - uint32_t tmpreg; - - /* Check for the Busy flag */ - if (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) != (uint32_t)RESET) - { - return HAL_ERROR; - } - - /* Get the MACMDIOAR value */ - WRITE_REG(tmpreg, heth->Instance->MACMDIOAR); - - /* Prepare the MDIO Address Register value - - Set the PHY device address - - Set the PHY register address - - Set the read mode - - Set the MII Busy bit */ - - MODIFY_REG(tmpreg, ETH_MACMDIOAR_PA, (PHYAddr << 21)); - MODIFY_REG(tmpreg, ETH_MACMDIOAR_RDA, (PHYReg << 16)); - MODIFY_REG(tmpreg, ETH_MACMDIOAR_MOC, ETH_MACMDIOAR_MOC_RD); - SET_BIT(tmpreg, ETH_MACMDIOAR_MB); - - /* Write the result value into the MDII Address register */ - WRITE_REG(heth->Instance->MACMDIOAR, tmpreg); - - tickstart = HAL_GetTick(); - - /* Wait for the Busy flag */ - while (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) > 0U) - { - if (((HAL_GetTick() - tickstart) > ETH_MDIO_BUS_TIMEOUT)) - { - return HAL_ERROR; - } - } - - /* Get MACMIIDR value */ - WRITE_REG(*pRegValue, (uint16_t)heth->Instance->MACMDIODR); - - return HAL_OK; -} - - -/** - * @brief Writes to a PHY register. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param PHYAddr: PHY port address, must be a value from 0 to 31 - * @param PHYReg: PHY register address, must be a value from 0 to 31 - * @param RegValue: the value to write - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_WritePHYRegister(ETH_HandleTypeDef *heth, uint32_t PHYAddr, uint32_t PHYReg, - uint32_t RegValue) -{ - uint32_t tickstart; - uint32_t tmpreg; - - /* Check for the Busy flag */ - if (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) != (uint32_t)RESET) - { - return HAL_ERROR; - } - - /* Get the MACMDIOAR value */ - WRITE_REG(tmpreg, heth->Instance->MACMDIOAR); - - /* Prepare the MDIO Address Register value - - Set the PHY device address - - Set the PHY register address - - Set the write mode - - Set the MII Busy bit */ - - MODIFY_REG(tmpreg, ETH_MACMDIOAR_PA, (PHYAddr << 21)); - MODIFY_REG(tmpreg, ETH_MACMDIOAR_RDA, (PHYReg << 16)); - MODIFY_REG(tmpreg, ETH_MACMDIOAR_MOC, ETH_MACMDIOAR_MOC_WR); - SET_BIT(tmpreg, ETH_MACMDIOAR_MB); - - - /* Give the value to the MII data register */ - WRITE_REG(ETH->MACMDIODR, (uint16_t)RegValue); - - /* Write the result value into the MII Address register */ - WRITE_REG(ETH->MACMDIOAR, tmpreg); - - tickstart = HAL_GetTick(); - - /* Wait for the Busy flag */ - while (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) > 0U) - { - if (((HAL_GetTick() - tickstart) > ETH_MDIO_BUS_TIMEOUT)) - { - return HAL_ERROR; - } - } - - return HAL_OK; -} - -/** - * @} - */ - -/** @defgroup ETH_Exported_Functions_Group3 Peripheral Control functions - * @brief ETH control functions - * -@verbatim - ============================================================================== - ##### Peripheral Control functions ##### - ============================================================================== - [..] - This subsection provides a set of functions allowing to control the ETH - peripheral. - -@endverbatim - * @{ - */ -/** - * @brief Get the configuration of the MAC and MTL subsystems. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param macconf: pointer to a ETH_MACConfigTypeDef structure that will hold - * the configuration of the MAC. - * @retval HAL Status - */ -HAL_StatusTypeDef HAL_ETH_GetMACConfig(ETH_HandleTypeDef *heth, ETH_MACConfigTypeDef *macconf) -{ - if (macconf == NULL) - { - return HAL_ERROR; - } - - /* Get MAC parameters */ - macconf->PreambleLength = READ_BIT(heth->Instance->MACCR, ETH_MACCR_PRELEN); - macconf->DeferralCheck = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DC) >> 4) > 0U) ? ENABLE : DISABLE; - macconf->BackOffLimit = READ_BIT(heth->Instance->MACCR, ETH_MACCR_BL); - macconf->RetryTransmission = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DR) >> 8) == 0U) ? ENABLE : DISABLE; - macconf->CarrierSenseDuringTransmit = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DCRS) >> 9) > 0U) - ? ENABLE : DISABLE; - macconf->ReceiveOwn = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DO) >> 10) == 0U) ? ENABLE : DISABLE; - macconf->CarrierSenseBeforeTransmit = ((READ_BIT(heth->Instance->MACCR, - ETH_MACCR_ECRSFD) >> 11) > 0U) ? ENABLE : DISABLE; - macconf->LoopbackMode = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_LM) >> 12) > 0U) ? ENABLE : DISABLE; - macconf->DuplexMode = READ_BIT(heth->Instance->MACCR, ETH_MACCR_DM); - macconf->Speed = READ_BIT(heth->Instance->MACCR, ETH_MACCR_FES); - macconf->JumboPacket = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_JE) >> 16) > 0U) ? ENABLE : DISABLE; - macconf->Jabber = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_JD) >> 17) == 0U) ? ENABLE : DISABLE; - macconf->Watchdog = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_WD) >> 19) == 0U) ? ENABLE : DISABLE; - macconf->AutomaticPadCRCStrip = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_ACS) >> 20) > 0U) ? ENABLE : DISABLE; - macconf->CRCStripTypePacket = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_CST) >> 21) > 0U) ? ENABLE : DISABLE; - macconf->Support2KPacket = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_S2KP) >> 22) > 0U) ? ENABLE : DISABLE; - macconf->GiantPacketSizeLimitControl = ((READ_BIT(heth->Instance->MACCR, - ETH_MACCR_GPSLCE) >> 23) > 0U) ? ENABLE : DISABLE; - macconf->InterPacketGapVal = READ_BIT(heth->Instance->MACCR, ETH_MACCR_IPG); - macconf->ChecksumOffload = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_IPC) >> 27) > 0U) ? ENABLE : DISABLE; - macconf->SourceAddrControl = READ_BIT(heth->Instance->MACCR, ETH_MACCR_SARC); - - macconf->GiantPacketSizeLimit = READ_BIT(heth->Instance->MACECR, ETH_MACECR_GPSL); - macconf->CRCCheckingRxPackets = ((READ_BIT(heth->Instance->MACECR, ETH_MACECR_DCRCC) >> 16) == 0U) ? ENABLE : DISABLE; - macconf->SlowProtocolDetect = ((READ_BIT(heth->Instance->MACECR, ETH_MACECR_SPEN) >> 17) > 0U) ? ENABLE : DISABLE; - macconf->UnicastSlowProtocolPacketDetect = ((READ_BIT(heth->Instance->MACECR, - ETH_MACECR_USP) >> 18) > 0U) ? ENABLE : DISABLE; - macconf->ExtendedInterPacketGap = ((READ_BIT(heth->Instance->MACECR, ETH_MACECR_EIPGEN) >> 24) > 0U) - ? ENABLE : DISABLE; - macconf->ExtendedInterPacketGapVal = READ_BIT(heth->Instance->MACECR, ETH_MACECR_EIPG) >> 25; - - - macconf->ProgrammableWatchdog = ((READ_BIT(heth->Instance->MACWTR, ETH_MACWTR_PWE) >> 8) > 0U) ? ENABLE : DISABLE; - macconf->WatchdogTimeout = READ_BIT(heth->Instance->MACWTR, ETH_MACWTR_WTO); - - macconf->TransmitFlowControl = ((READ_BIT(heth->Instance->MACTFCR, ETH_MACTFCR_TFE) >> 1) > 0U) ? ENABLE : DISABLE; - macconf->ZeroQuantaPause = ((READ_BIT(heth->Instance->MACTFCR, ETH_MACTFCR_DZPQ) >> 7) == 0U) ? ENABLE : DISABLE; - macconf->PauseLowThreshold = READ_BIT(heth->Instance->MACTFCR, ETH_MACTFCR_PLT); - macconf->PauseTime = (READ_BIT(heth->Instance->MACTFCR, ETH_MACTFCR_PT) >> 16); - - - macconf->ReceiveFlowControl = (READ_BIT(heth->Instance->MACRFCR, ETH_MACRFCR_RFE) > 0U) ? ENABLE : DISABLE; - macconf->UnicastPausePacketDetect = ((READ_BIT(heth->Instance->MACRFCR, ETH_MACRFCR_UP) >> 1) > 0U) - ? ENABLE : DISABLE; - - macconf->TransmitQueueMode = READ_BIT(heth->Instance->MTLTQOMR, (ETH_MTLTQOMR_TTC | ETH_MTLTQOMR_TSF)); - - macconf->ReceiveQueueMode = READ_BIT(heth->Instance->MTLRQOMR, (ETH_MTLRQOMR_RTC | ETH_MTLRQOMR_RSF)); - macconf->ForwardRxUndersizedGoodPacket = ((READ_BIT(heth->Instance->MTLRQOMR, - ETH_MTLRQOMR_FUP) >> 3) > 0U) ? ENABLE : DISABLE; - macconf->ForwardRxErrorPacket = ((READ_BIT(heth->Instance->MTLRQOMR, ETH_MTLRQOMR_FEP) >> 4) > 0U) ? ENABLE : DISABLE; - macconf->DropTCPIPChecksumErrorPacket = ((READ_BIT(heth->Instance->MTLRQOMR, - ETH_MTLRQOMR_DISTCPEF) >> 6) == 0U) ? ENABLE : DISABLE; - - return HAL_OK; -} - -/** - * @brief Get the configuration of the DMA. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param dmaconf: pointer to a ETH_DMAConfigTypeDef structure that will hold - * the configuration of the ETH DMA. - * @retval HAL Status - */ -HAL_StatusTypeDef HAL_ETH_GetDMAConfig(ETH_HandleTypeDef *heth, ETH_DMAConfigTypeDef *dmaconf) -{ - if (dmaconf == NULL) - { - return HAL_ERROR; - } - - dmaconf->AddressAlignedBeats = ((READ_BIT(heth->Instance->DMASBMR, ETH_DMASBMR_AAL) >> 12) > 0U) ? ENABLE : DISABLE; - dmaconf->BurstMode = READ_BIT(heth->Instance->DMASBMR, ETH_DMASBMR_FB | ETH_DMASBMR_MB); - dmaconf->RebuildINCRxBurst = ((READ_BIT(heth->Instance->DMASBMR, ETH_DMASBMR_RB) >> 15) > 0U) ? ENABLE : DISABLE; - - dmaconf->DMAArbitration = READ_BIT(heth->Instance->DMAMR, (ETH_DMAMR_TXPR | ETH_DMAMR_PR | ETH_DMAMR_DA)); - - dmaconf->PBLx8Mode = ((READ_BIT(heth->Instance->DMACCR, ETH_DMACCR_8PBL) >> 16) > 0U) ? ENABLE : DISABLE; - dmaconf->MaximumSegmentSize = READ_BIT(heth->Instance->DMACCR, ETH_DMACCR_MSS); - - dmaconf->FlushRxPacket = ((READ_BIT(heth->Instance->DMACRCR, ETH_DMACRCR_RPF) >> 31) > 0U) ? ENABLE : DISABLE; - dmaconf->RxDMABurstLength = READ_BIT(heth->Instance->DMACRCR, ETH_DMACRCR_RPBL); - - dmaconf->SecondPacketOperate = ((READ_BIT(heth->Instance->DMACTCR, ETH_DMACTCR_OSP) >> 4) > 0U) ? ENABLE : DISABLE; - dmaconf->TCPSegmentation = ((READ_BIT(heth->Instance->DMACTCR, ETH_DMACTCR_TSE) >> 12) > 0U) ? ENABLE : DISABLE; - dmaconf->TxDMABurstLength = READ_BIT(heth->Instance->DMACTCR, ETH_DMACTCR_TPBL); - return HAL_OK; -} - -/** - * @brief Set the MAC configuration. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param macconf: pointer to a ETH_MACConfigTypeDef structure that contains - * the configuration of the MAC. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_SetMACConfig(ETH_HandleTypeDef *heth, ETH_MACConfigTypeDef *macconf) -{ - if (macconf == NULL) - { - return HAL_ERROR; - } - - if (heth->gState == HAL_ETH_STATE_READY) - { - ETH_SetMACConfig(heth, macconf); - - return HAL_OK; - } - else - { - return HAL_ERROR; - } -} - -/** - * @brief Set the ETH DMA configuration. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param dmaconf: pointer to a ETH_DMAConfigTypeDef structure that will hold - * the configuration of the ETH DMA. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_SetDMAConfig(ETH_HandleTypeDef *heth, ETH_DMAConfigTypeDef *dmaconf) -{ - if (dmaconf == NULL) - { - return HAL_ERROR; - } - - if (heth->gState == HAL_ETH_STATE_READY) - { - ETH_SetDMAConfig(heth, dmaconf); - - return HAL_OK; - } - else - { - return HAL_ERROR; - } -} - -/** - * @brief Configures the Clock range of ETH MDIO interface. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval None - */ -void HAL_ETH_SetMDIOClockRange(ETH_HandleTypeDef *heth) -{ - uint32_t hclk; - uint32_t tmpreg; - - /* Get the ETHERNET MACMDIOAR value */ - tmpreg = (heth->Instance)->MACMDIOAR; - - /* Clear CSR Clock Range bits */ - tmpreg &= ~ETH_MACMDIOAR_CR; - - /* Get hclk frequency value */ - hclk = HAL_RCC_GetHCLKFreq(); - - /* Set CR bits depending on hclk value */ - if ((hclk >= 20000000U) && (hclk < 35000000U)) - { - /* CSR Clock Range between 20-35 MHz */ - tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV16; - } - else if ((hclk >= 35000000U) && (hclk < 60000000U)) - { - /* CSR Clock Range between 35-60 MHz */ - tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV26; - } - else if ((hclk >= 60000000U) && (hclk < 100000000U)) - { - /* CSR Clock Range between 60-100 MHz */ - tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV42; - } - else if ((hclk >= 100000000U) && (hclk < 150000000U)) - { - /* CSR Clock Range between 100-150 MHz */ - tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV62; - } - else /* (hclk >= 150000000)&&(hclk <= 200000000) */ - { - /* CSR Clock Range between 150-200 MHz */ - tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV102; - } - - /* Configure the CSR Clock Range */ - (heth->Instance)->MACMDIOAR = (uint32_t)tmpreg; -} - -/** - * @brief Set the ETH MAC (L2) Filters configuration. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param pFilterConfig: pointer to a ETH_MACFilterConfigTypeDef structure that contains - * the configuration of the ETH MAC filters. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_SetMACFilterConfig(ETH_HandleTypeDef *heth, ETH_MACFilterConfigTypeDef *pFilterConfig) -{ - uint32_t filterconfig; - - if (pFilterConfig == NULL) - { - return HAL_ERROR; - } - - filterconfig = ((uint32_t)pFilterConfig->PromiscuousMode | - ((uint32_t)pFilterConfig->HashUnicast << 1) | - ((uint32_t)pFilterConfig->HashMulticast << 2) | - ((uint32_t)pFilterConfig->DestAddrInverseFiltering << 3) | - ((uint32_t)pFilterConfig->PassAllMulticast << 4) | - ((uint32_t)((pFilterConfig->BroadcastFilter == DISABLE) ? 1U : 0U) << 5) | - ((uint32_t)pFilterConfig->SrcAddrInverseFiltering << 8) | - ((uint32_t)pFilterConfig->SrcAddrFiltering << 9) | - ((uint32_t)pFilterConfig->HachOrPerfectFilter << 10) | - ((uint32_t)pFilterConfig->ReceiveAllMode << 31) | - pFilterConfig->ControlPacketsFilter); - - MODIFY_REG(heth->Instance->MACPFR, ETH_MACPFR_MASK, filterconfig); - - return HAL_OK; -} - -/** - * @brief Get the ETH MAC (L2) Filters configuration. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param pFilterConfig: pointer to a ETH_MACFilterConfigTypeDef structure that will hold - * the configuration of the ETH MAC filters. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_GetMACFilterConfig(ETH_HandleTypeDef *heth, ETH_MACFilterConfigTypeDef *pFilterConfig) -{ - if (pFilterConfig == NULL) - { - return HAL_ERROR; - } - - pFilterConfig->PromiscuousMode = ((READ_BIT(heth->Instance->MACPFR, ETH_MACPFR_PR)) > 0U) ? ENABLE : DISABLE; - pFilterConfig->HashUnicast = ((READ_BIT(heth->Instance->MACPFR, ETH_MACPFR_HUC) >> 1) > 0U) ? ENABLE : DISABLE; - pFilterConfig->HashMulticast = ((READ_BIT(heth->Instance->MACPFR, ETH_MACPFR_HMC) >> 2) > 0U) ? ENABLE : DISABLE; - pFilterConfig->DestAddrInverseFiltering = ((READ_BIT(heth->Instance->MACPFR, - ETH_MACPFR_DAIF) >> 3) > 0U) ? ENABLE : DISABLE; - pFilterConfig->PassAllMulticast = ((READ_BIT(heth->Instance->MACPFR, ETH_MACPFR_PM) >> 4) > 0U) ? ENABLE : DISABLE; - pFilterConfig->BroadcastFilter = ((READ_BIT(heth->Instance->MACPFR, ETH_MACPFR_DBF) >> 5) == 0U) ? ENABLE : DISABLE; - pFilterConfig->ControlPacketsFilter = READ_BIT(heth->Instance->MACPFR, ETH_MACPFR_PCF); - pFilterConfig->SrcAddrInverseFiltering = ((READ_BIT(heth->Instance->MACPFR, - ETH_MACPFR_SAIF) >> 8) > 0U) ? ENABLE : DISABLE; - pFilterConfig->SrcAddrFiltering = ((READ_BIT(heth->Instance->MACPFR, ETH_MACPFR_SAF) >> 9) > 0U) ? ENABLE : DISABLE; - pFilterConfig->HachOrPerfectFilter = ((READ_BIT(heth->Instance->MACPFR, ETH_MACPFR_HPF) >> 10) > 0U) - ? ENABLE : DISABLE; - pFilterConfig->ReceiveAllMode = ((READ_BIT(heth->Instance->MACPFR, ETH_MACPFR_RA) >> 31) > 0U) ? ENABLE : DISABLE; - - return HAL_OK; -} - -/** - * @brief Set the source MAC Address to be matched. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param AddrNbr: The MAC address to configure - * This parameter must be a value of the following: - * ETH_MAC_ADDRESS1 - * ETH_MAC_ADDRESS2 - * ETH_MAC_ADDRESS3 - * @param pMACAddr: Pointer to MAC address buffer data (6 bytes) - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_SetSourceMACAddrMatch(ETH_HandleTypeDef *heth, uint32_t AddrNbr, uint8_t *pMACAddr) -{ - uint32_t macaddrlr; - uint32_t macaddrhr; - - if (pMACAddr == NULL) - { - return HAL_ERROR; - } - - /* Get mac addr high reg offset */ - macaddrhr = ((uint32_t) &(heth->Instance->MACA0HR) + AddrNbr); - /* Get mac addr low reg offset */ - macaddrlr = ((uint32_t) &(heth->Instance->MACA0LR) + AddrNbr); - - /* Set MAC addr bits 32 to 47 */ - (*(__IO uint32_t *)macaddrhr) = (((uint32_t)(pMACAddr[5]) << 8) | (uint32_t)pMACAddr[4]); - /* Set MAC addr bits 0 to 31 */ - (*(__IO uint32_t *)macaddrlr) = (((uint32_t)(pMACAddr[3]) << 24) | ((uint32_t)(pMACAddr[2]) << 16) | - ((uint32_t)(pMACAddr[1]) << 8) | (uint32_t)pMACAddr[0]); - - /* Enable address and set source address bit */ - (*(__IO uint32_t *)macaddrhr) |= (ETH_MACAHR_SA | ETH_MACAHR_AE); - - return HAL_OK; -} - -/** - * @brief Set the ETH Hash Table Value. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param pHashTable: pointer to a table of two 32 bit values, that contains - * the 64 bits of the hash table. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETH_SetHashTable(ETH_HandleTypeDef *heth, uint32_t *pHashTable) -{ - if (pHashTable == NULL) - { - return HAL_ERROR; - } - - heth->Instance->MACHT0R = pHashTable[0]; - heth->Instance->MACHT1R = pHashTable[1]; - - return HAL_OK; -} - -/** - * @brief Set the VLAN Identifier for Rx packets - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param ComparisonBits: 12 or 16 bit comparison mode - must be a value of @ref ETH_VLAN_Tag_Comparison - * @param VLANIdentifier: VLAN Identifier value - * @retval None - */ -void HAL_ETH_SetRxVLANIdentifier(ETH_HandleTypeDef *heth, uint32_t ComparisonBits, uint32_t VLANIdentifier) -{ - if (ComparisonBits == ETH_VLANTAGCOMPARISON_16BIT) - { - MODIFY_REG(heth->Instance->MACVTR, ETH_MACVTR_VL, VLANIdentifier); - CLEAR_BIT(heth->Instance->MACVTR, ETH_MACVTR_ETV); - } - else - { - MODIFY_REG(heth->Instance->MACVTR, ETH_MACVTR_VL_VID, VLANIdentifier); - SET_BIT(heth->Instance->MACVTR, ETH_MACVTR_ETV); - } -} - -/** - * @brief Enters the Power down mode. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param pPowerDownConfig: a pointer to ETH_PowerDownConfigTypeDef structure - * that contains the Power Down configuration - * @retval None. - */ -void HAL_ETH_EnterPowerDownMode(ETH_HandleTypeDef *heth, ETH_PowerDownConfigTypeDef *pPowerDownConfig) -{ - uint32_t powerdownconfig; - - powerdownconfig = (((uint32_t)pPowerDownConfig->MagicPacket << 1) | - ((uint32_t)pPowerDownConfig->WakeUpPacket << 2) | - ((uint32_t)pPowerDownConfig->GlobalUnicast << 9) | - ((uint32_t)pPowerDownConfig->WakeUpForward << 10) | - ETH_MACPCSR_PWRDWN); - - /* Enable PMT interrupt */ - __HAL_ETH_MAC_ENABLE_IT(heth, ETH_MACIER_PMTIE); - - MODIFY_REG(heth->Instance->MACPCSR, ETH_MACPCSR_MASK, powerdownconfig); -} - -/** - * @brief Exits from the Power down mode. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval None. - */ -void HAL_ETH_ExitPowerDownMode(ETH_HandleTypeDef *heth) -{ - /* clear wake up sources */ - CLEAR_BIT(heth->Instance->MACPCSR, ETH_MACPCSR_RWKPKTEN | ETH_MACPCSR_MGKPKTEN | ETH_MACPCSR_GLBLUCAST | - ETH_MACPCSR_RWKPFE); - - if (READ_BIT(heth->Instance->MACPCSR, ETH_MACPCSR_PWRDWN) != (uint32_t)RESET) - { - /* Exit power down mode */ - CLEAR_BIT(heth->Instance->MACPCSR, ETH_MACPCSR_PWRDWN); - } - - /* Disable PMT interrupt */ - __HAL_ETH_MAC_DISABLE_IT(heth, ETH_MACIER_PMTIE); -} - -/** - * @brief Set the WakeUp filter. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param pFilter: pointer to filter registers values - * @param Count: number of filter registers, must be from 1 to 8. - * @retval None. - */ -HAL_StatusTypeDef HAL_ETH_SetWakeUpFilter(ETH_HandleTypeDef *heth, uint32_t *pFilter, uint32_t Count) -{ - uint32_t regindex; - - if (pFilter == NULL) - { - return HAL_ERROR; - } - - /* Reset Filter Pointer */ - SET_BIT(heth->Instance->MACPCSR, ETH_MACPCSR_RWKFILTRST); - - /* Wake up packet filter config */ - for (regindex = 0; regindex < Count; regindex++) - { - /* Write filter regs */ - WRITE_REG(heth->Instance->MACRWKPFR, pFilter[regindex]); - } - - return HAL_OK; -} - -/** - * @} - */ - -/** @defgroup ETH_Exported_Functions_Group4 Peripheral State and Errors functions - * @brief ETH State and Errors functions - * -@verbatim - ============================================================================== - ##### Peripheral State and Errors functions ##### - ============================================================================== - [..] - This subsection provides a set of functions allowing to return the State of - ETH communication process, return Peripheral Errors occurred during communication - process - - -@endverbatim - * @{ - */ - -/** - * @brief Returns the ETH state. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval HAL state - */ -HAL_ETH_StateTypeDef HAL_ETH_GetState(ETH_HandleTypeDef *heth) -{ - return heth->gState; -} - -/** - * @brief Returns the ETH error code - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval ETH Error Code - */ -uint32_t HAL_ETH_GetError(ETH_HandleTypeDef *heth) -{ - return heth->ErrorCode; -} - -/** - * @brief Returns the ETH DMA error code - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval ETH DMA Error Code - */ -uint32_t HAL_ETH_GetDMAError(ETH_HandleTypeDef *heth) -{ - return heth->DMAErrorCode; -} - -/** - * @brief Returns the ETH MAC error code - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval ETH MAC Error Code - */ -uint32_t HAL_ETH_GetMACError(ETH_HandleTypeDef *heth) -{ - return heth->MACErrorCode; -} - -/** - * @brief Returns the ETH MAC WakeUp event source - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval ETH MAC WakeUp event source - */ -uint32_t HAL_ETH_GetMACWakeUpSource(ETH_HandleTypeDef *heth) -{ - return heth->MACWakeUpEvent; -} - -/** - * @} - */ - -/** - * @} - */ - -/** @addtogroup ETH_Private_Functions ETH Private Functions - * @{ - */ - - -static void ETH_SetMACConfig(ETH_HandleTypeDef *heth, ETH_MACConfigTypeDef *macconf) -{ - uint32_t macregval; - - /*------------------------ MACCR Configuration --------------------*/ - macregval = (macconf->InterPacketGapVal | - macconf->SourceAddrControl | - ((uint32_t)macconf->ChecksumOffload << 27) | - ((uint32_t)macconf->GiantPacketSizeLimitControl << 23) | - ((uint32_t)macconf->Support2KPacket << 22) | - ((uint32_t)macconf->CRCStripTypePacket << 21) | - ((uint32_t)macconf->AutomaticPadCRCStrip << 20) | - ((uint32_t)((macconf->Watchdog == DISABLE) ? 1U : 0U) << 19) | - ((uint32_t)((macconf->Jabber == DISABLE) ? 1U : 0U) << 17) | - ((uint32_t)macconf->JumboPacket << 16) | - macconf->Speed | - macconf->DuplexMode | - ((uint32_t)macconf->LoopbackMode << 12) | - ((uint32_t)macconf->CarrierSenseBeforeTransmit << 11) | - ((uint32_t)((macconf->ReceiveOwn == DISABLE) ? 1U : 0U) << 10) | - ((uint32_t)macconf->CarrierSenseDuringTransmit << 9) | - ((uint32_t)((macconf->RetryTransmission == DISABLE) ? 1U : 0U) << 8) | - macconf->BackOffLimit | - ((uint32_t)macconf->DeferralCheck << 4) | - macconf->PreambleLength); - - /* Write to MACCR */ - MODIFY_REG(heth->Instance->MACCR, ETH_MACCR_MASK, macregval); - - /*------------------------ MACECR Configuration --------------------*/ - macregval = ((macconf->ExtendedInterPacketGapVal << 25) | - ((uint32_t)macconf->ExtendedInterPacketGap << 24) | - ((uint32_t)macconf->UnicastSlowProtocolPacketDetect << 18) | - ((uint32_t)macconf->SlowProtocolDetect << 17) | - ((uint32_t)((macconf->CRCCheckingRxPackets == DISABLE) ? 1U : 0U) << 16) | - macconf->GiantPacketSizeLimit); - - /* Write to MACECR */ - MODIFY_REG(heth->Instance->MACECR, ETH_MACECR_MASK, macregval); - - /*------------------------ MACWTR Configuration --------------------*/ - macregval = (((uint32_t)macconf->ProgrammableWatchdog << 8) | - macconf->WatchdogTimeout); - - /* Write to MACWTR */ - MODIFY_REG(heth->Instance->MACWTR, ETH_MACWTR_MASK, macregval); - - /*------------------------ MACTFCR Configuration --------------------*/ - macregval = (((uint32_t)macconf->TransmitFlowControl << 1) | - macconf->PauseLowThreshold | - ((uint32_t)((macconf->ZeroQuantaPause == DISABLE) ? 1U : 0U) << 7) | - (macconf->PauseTime << 16)); - - /* Write to MACTFCR */ - MODIFY_REG(heth->Instance->MACTFCR, ETH_MACTFCR_MASK, macregval); - - /*------------------------ MACRFCR Configuration --------------------*/ - macregval = ((uint32_t)macconf->ReceiveFlowControl | - ((uint32_t)macconf->UnicastPausePacketDetect << 1)); - - /* Write to MACRFCR */ - MODIFY_REG(heth->Instance->MACRFCR, ETH_MACRFCR_MASK, macregval); - - /*------------------------ MTLTQOMR Configuration --------------------*/ - /* Write to MTLTQOMR */ - MODIFY_REG(heth->Instance->MTLTQOMR, ETH_MTLTQOMR_MASK, macconf->TransmitQueueMode); - - /*------------------------ MTLRQOMR Configuration --------------------*/ - macregval = (macconf->ReceiveQueueMode | - ((uint32_t)((macconf->DropTCPIPChecksumErrorPacket == DISABLE) ? 1U : 0U) << 6) | - ((uint32_t)macconf->ForwardRxErrorPacket << 4) | - ((uint32_t)macconf->ForwardRxUndersizedGoodPacket << 3)); - - /* Write to MTLRQOMR */ - MODIFY_REG(heth->Instance->MTLRQOMR, ETH_MTLRQOMR_MASK, macregval); -} - -static void ETH_SetDMAConfig(ETH_HandleTypeDef *heth, ETH_DMAConfigTypeDef *dmaconf) -{ - uint32_t dmaregval; - - /*------------------------ DMAMR Configuration --------------------*/ - MODIFY_REG(heth->Instance->DMAMR, ETH_DMAMR_MASK, dmaconf->DMAArbitration); - - /*------------------------ DMASBMR Configuration --------------------*/ - dmaregval = (((uint32_t)dmaconf->AddressAlignedBeats << 12) | - dmaconf->BurstMode | - ((uint32_t)dmaconf->RebuildINCRxBurst << 15)); - - MODIFY_REG(heth->Instance->DMASBMR, ETH_DMASBMR_MASK, dmaregval); - - /*------------------------ DMACCR Configuration --------------------*/ - dmaregval = (((uint32_t)dmaconf->PBLx8Mode << 16) | - dmaconf->MaximumSegmentSize); - - MODIFY_REG(heth->Instance->DMACCR, ETH_DMACCR_MASK, dmaregval); - - /*------------------------ DMACTCR Configuration --------------------*/ - dmaregval = (dmaconf->TxDMABurstLength | - ((uint32_t)dmaconf->SecondPacketOperate << 4) | - ((uint32_t)dmaconf->TCPSegmentation << 12)); - - MODIFY_REG(heth->Instance->DMACTCR, ETH_DMACTCR_MASK, dmaregval); - - /*------------------------ DMACRCR Configuration --------------------*/ - dmaregval = (((uint32_t)dmaconf->FlushRxPacket << 31) | - dmaconf->RxDMABurstLength); - - /* Write to DMACRCR */ - MODIFY_REG(heth->Instance->DMACRCR, ETH_DMACRCR_MASK, dmaregval); -} - -/** - * @brief Configures Ethernet MAC and DMA with default parameters. - * called by HAL_ETH_Init() API. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval HAL status - */ -static void ETH_MACDMAConfig(ETH_HandleTypeDef *heth) -{ - ETH_MACConfigTypeDef macDefaultConf; - ETH_DMAConfigTypeDef dmaDefaultConf; - - /*--------------- ETHERNET MAC registers default Configuration --------------*/ - macDefaultConf.AutomaticPadCRCStrip = ENABLE; - macDefaultConf.BackOffLimit = ETH_BACKOFFLIMIT_10; - macDefaultConf.CarrierSenseBeforeTransmit = DISABLE; - macDefaultConf.CarrierSenseDuringTransmit = DISABLE; - macDefaultConf.ChecksumOffload = ENABLE; - macDefaultConf.CRCCheckingRxPackets = ENABLE; - macDefaultConf.CRCStripTypePacket = ENABLE; - macDefaultConf.DeferralCheck = DISABLE; - macDefaultConf.DropTCPIPChecksumErrorPacket = ENABLE; - macDefaultConf.DuplexMode = ETH_FULLDUPLEX_MODE; - macDefaultConf.ExtendedInterPacketGap = DISABLE; - macDefaultConf.ExtendedInterPacketGapVal = 0x0; - macDefaultConf.ForwardRxErrorPacket = DISABLE; - macDefaultConf.ForwardRxUndersizedGoodPacket = DISABLE; - macDefaultConf.GiantPacketSizeLimit = 0x618; - macDefaultConf.GiantPacketSizeLimitControl = DISABLE; - macDefaultConf.InterPacketGapVal = ETH_INTERPACKETGAP_96BIT; - macDefaultConf.Jabber = ENABLE; - macDefaultConf.JumboPacket = DISABLE; - macDefaultConf.LoopbackMode = DISABLE; - macDefaultConf.PauseLowThreshold = ETH_PAUSELOWTHRESHOLD_MINUS_4; - macDefaultConf.PauseTime = 0x0; - macDefaultConf.PreambleLength = ETH_PREAMBLELENGTH_7; - macDefaultConf.ProgrammableWatchdog = DISABLE; - macDefaultConf.ReceiveFlowControl = DISABLE; - macDefaultConf.ReceiveOwn = ENABLE; - macDefaultConf.ReceiveQueueMode = ETH_RECEIVESTOREFORWARD; - macDefaultConf.RetryTransmission = ENABLE; - macDefaultConf.SlowProtocolDetect = DISABLE; - macDefaultConf.SourceAddrControl = ETH_SOURCEADDRESS_REPLACE_ADDR0; - macDefaultConf.Speed = ETH_SPEED_100M; - macDefaultConf.Support2KPacket = DISABLE; - macDefaultConf.TransmitQueueMode = ETH_TRANSMITSTOREFORWARD; - macDefaultConf.TransmitFlowControl = DISABLE; - macDefaultConf.UnicastPausePacketDetect = DISABLE; - macDefaultConf.UnicastSlowProtocolPacketDetect = DISABLE; - macDefaultConf.Watchdog = ENABLE; - macDefaultConf.WatchdogTimeout = ETH_MACWTR_WTO_2KB; - macDefaultConf.ZeroQuantaPause = ENABLE; - - /* MAC default configuration */ - ETH_SetMACConfig(heth, &macDefaultConf); - - /*--------------- ETHERNET DMA registers default Configuration --------------*/ - dmaDefaultConf.AddressAlignedBeats = ENABLE; - dmaDefaultConf.BurstMode = ETH_BURSTLENGTH_FIXED; - dmaDefaultConf.DMAArbitration = ETH_DMAARBITRATION_RX1_TX1; - dmaDefaultConf.FlushRxPacket = DISABLE; - dmaDefaultConf.PBLx8Mode = DISABLE; - dmaDefaultConf.RebuildINCRxBurst = DISABLE; - dmaDefaultConf.RxDMABurstLength = ETH_RXDMABURSTLENGTH_32BEAT; - dmaDefaultConf.SecondPacketOperate = DISABLE; - dmaDefaultConf.TxDMABurstLength = ETH_TXDMABURSTLENGTH_32BEAT; - dmaDefaultConf.TCPSegmentation = DISABLE; - dmaDefaultConf.MaximumSegmentSize = ETH_SEGMENT_SIZE_DEFAULT; - - /* DMA default configuration */ - ETH_SetDMAConfig(heth, &dmaDefaultConf); -} - - -/** - * @brief Initializes the DMA Tx descriptors. - * called by HAL_ETH_Init() API. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval None - */ -static void ETH_DMATxDescListInit(ETH_HandleTypeDef *heth) -{ - ETH_DMADescTypeDef *dmatxdesc; - uint32_t i; - - /* Fill each DMATxDesc descriptor with the right values */ - for (i = 0; i < (uint32_t)ETH_TX_DESC_CNT; i++) - { - dmatxdesc = heth->Init.TxDesc + i; - - WRITE_REG(dmatxdesc->DESC0, 0x0); - WRITE_REG(dmatxdesc->DESC1, 0x0); - WRITE_REG(dmatxdesc->DESC2, 0x0); - WRITE_REG(dmatxdesc->DESC3, 0x0); - - WRITE_REG(heth->TxDescList.TxDesc[i], (uint32_t)dmatxdesc); - - } - - heth->TxDescList.CurTxDesc = 0; - - /* Set Transmit Descriptor Ring Length */ - WRITE_REG(heth->Instance->DMACTDRLR, (ETH_TX_DESC_CNT - 1U)); - - /* Set Transmit Descriptor List Address */ - WRITE_REG(heth->Instance->DMACTDLAR, (uint32_t) heth->Init.TxDesc); - - /* Set Transmit Descriptor Tail pointer */ - WRITE_REG(heth->Instance->DMACTDTPR, (uint32_t) heth->Init.TxDesc); -} - -/** - * @brief Initializes the DMA Rx descriptors in chain mode. - * called by HAL_ETH_Init() API. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval None - */ -static void ETH_DMARxDescListInit(ETH_HandleTypeDef *heth) -{ - ETH_DMADescTypeDef *dmarxdesc; - uint32_t i; - - for (i = 0; i < (uint32_t)ETH_RX_DESC_CNT; i++) - { - dmarxdesc = heth->Init.RxDesc + i; - - WRITE_REG(dmarxdesc->DESC0, 0x0); - WRITE_REG(dmarxdesc->DESC1, 0x0); - WRITE_REG(dmarxdesc->DESC2, 0x0); - WRITE_REG(dmarxdesc->DESC3, 0x0); - WRITE_REG(dmarxdesc->BackupAddr0, 0x0); - WRITE_REG(dmarxdesc->BackupAddr1, 0x0); - - - /* Set Rx descritors addresses */ - WRITE_REG(heth->RxDescList.RxDesc[i], (uint32_t)dmarxdesc); - - } - - WRITE_REG(heth->RxDescList.RxDescIdx, 0); - WRITE_REG(heth->RxDescList.RxDescCnt, 0); - WRITE_REG(heth->RxDescList.RxBuildDescIdx, 0); - WRITE_REG(heth->RxDescList.RxBuildDescCnt, 0); - WRITE_REG(heth->RxDescList.ItMode, 0); - - /* Set Receive Descriptor Ring Length */ - WRITE_REG(heth->Instance->DMACRDRLR, ((uint32_t)(ETH_RX_DESC_CNT - 1U))); - - /* Set Receive Descriptor List Address */ - WRITE_REG(heth->Instance->DMACRDLAR, (uint32_t) heth->Init.RxDesc); - - /* Set Receive Descriptor Tail pointer Address */ - WRITE_REG(heth->Instance->DMACRDTPR, ((uint32_t)(heth->Init.RxDesc + (uint32_t)(ETH_RX_DESC_CNT - 1U)))); -} - -/** - * @brief Prepare Tx DMA descriptor before transmission. - * called by HAL_ETH_Transmit_IT and HAL_ETH_Transmit_IT() API. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param pTxConfig: Tx packet configuration - * @param ItMode: Enable or disable Tx EOT interrept - * @retval Status - */ -static uint32_t ETH_Prepare_Tx_Descriptors(ETH_HandleTypeDef *heth, ETH_TxPacketConfig *pTxConfig, uint32_t ItMode) -{ - ETH_TxDescListTypeDef *dmatxdesclist = &heth->TxDescList; - uint32_t descidx = dmatxdesclist->CurTxDesc; - uint32_t firstdescidx = dmatxdesclist->CurTxDesc; - uint32_t idx; - uint32_t descnbr = 0; - ETH_DMADescTypeDef *dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx]; - - ETH_BufferTypeDef *txbuffer = pTxConfig->TxBuffer; - uint32_t bd_count = 0; - - /* Current Tx Descriptor Owned by DMA: cannot be used by the application */ - if ((READ_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCWBF_OWN) == ETH_DMATXNDESCWBF_OWN) - || (dmatxdesclist->PacketAddress[descidx] != NULL)) - { - return HAL_ETH_ERROR_BUSY; - } - - /***************************************************************************/ - /***************** Context descriptor configuration (Optional) **********/ - /***************************************************************************/ - /* If VLAN tag is enabled for this packet */ - if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_VLANTAG) != (uint32_t)RESET) - { - /* Set vlan tag value */ - MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXCDESC_VT, pTxConfig->VlanTag); - /* Set vlan tag valid bit */ - SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_VLTV); - /* Set the descriptor as the vlan input source */ - SET_BIT(heth->Instance->MACVIR, ETH_MACVIR_VLTI); - - /* if inner VLAN is enabled */ - if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_INNERVLANTAG) != (uint32_t)RESET) - { - /* Set inner vlan tag value */ - MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXCDESC_IVT, (pTxConfig->InnerVlanTag << 16)); - /* Set inner vlan tag valid bit */ - SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_IVLTV); - - /* Set Vlan Tag control */ - MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXCDESC_IVTIR, pTxConfig->InnerVlanCtrl); - - /* Set the descriptor as the inner vlan input source */ - SET_BIT(heth->Instance->MACIVIR, ETH_MACIVIR_VLTI); - /* Enable double VLAN processing */ - SET_BIT(heth->Instance->MACVTR, ETH_MACVTR_EDVLP); - } - } - - /* if tcp segmentation is enabled for this packet */ - if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_TSO) != (uint32_t)RESET) - { - /* Set MSS value */ - MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXCDESC_MSS, pTxConfig->MaxSegmentSize); - /* Set MSS valid bit */ - SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_TCMSSV); - } - - if ((READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_VLANTAG) != (uint32_t)RESET) - || (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_TSO) != (uint32_t)RESET)) - { - /* Set as context descriptor */ - SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_CTXT); - /* Ensure rest of descriptor is written to RAM before the OWN bit */ - __DMB(); - /* Set own bit */ - SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_OWN); - /* Increment current tx descriptor index */ - INCR_TX_DESC_INDEX(descidx, 1U); - /* Get current descriptor address */ - dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx]; - - descnbr += 1U; - - /* Current Tx Descriptor Owned by DMA: cannot be used by the application */ - if (READ_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCWBF_OWN) == ETH_DMATXNDESCWBF_OWN) - { - dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[firstdescidx]; - /* Ensure rest of descriptor is written to RAM before the OWN bit */ - __DMB(); - /* Clear own bit */ - CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_OWN); - - return HAL_ETH_ERROR_BUSY; - } - } - - /***************************************************************************/ - /***************** Normal descriptors configuration *****************/ - /***************************************************************************/ - - descnbr += 1U; - - /* Set header or buffer 1 address */ - WRITE_REG(dmatxdesc->DESC0, (uint32_t)txbuffer->buffer); - /* Set header or buffer 1 Length */ - MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B1L, txbuffer->len); - - if (txbuffer->next != NULL) - { - txbuffer = txbuffer->next; - /* Set buffer 2 address */ - WRITE_REG(dmatxdesc->DESC1, (uint32_t)txbuffer->buffer); - /* Set buffer 2 Length */ - MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B2L, (txbuffer->len << 16)); - } - else - { - WRITE_REG(dmatxdesc->DESC1, 0x0); - /* Set buffer 2 Length */ - MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B2L, 0x0U); - } - - if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_TSO) != (uint32_t)RESET) - { - /* Set TCP Header length */ - MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_THL, (pTxConfig->TCPHeaderLen << 19)); - /* Set TCP payload length */ - MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_TPL, pTxConfig->PayloadLen); - /* Set TCP Segmentation Enabled bit */ - SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_TSE); - } - else - { - MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_FL, pTxConfig->Length); - - if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_CSUM) != (uint32_t)RESET) - { - MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CIC, pTxConfig->ChecksumCtrl); - } - - if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_CRCPAD) != (uint32_t)RESET) - { - MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CPC, pTxConfig->CRCPadCtrl); - } - } - - if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_VLANTAG) != (uint32_t)RESET) - { - /* Set Vlan Tag control */ - MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_VTIR, pTxConfig->VlanCtrl); - } - - /* Mark it as First Descriptor */ - SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_FD); - /* Mark it as NORMAL descriptor */ - CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CTXT); - /* Ensure rest of descriptor is written to RAM before the OWN bit */ - __DMB(); - /* set OWN bit of FIRST descriptor */ - SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_OWN); - - /* If source address insertion/replacement is enabled for this packet */ - if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_SAIC) != (uint32_t)RESET) - { - MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_SAIC, pTxConfig->SrcAddrCtrl); - } - - /* only if the packet is split into more than one descriptors > 1 */ - while (txbuffer->next != NULL) - { - /* Clear the LD bit of previous descriptor */ - CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_LD); - /* Increment current tx descriptor index */ - INCR_TX_DESC_INDEX(descidx, 1U); - /* Get current descriptor address */ - dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx]; - - /* Clear the FD bit of new Descriptor */ - CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_FD); - - /* Current Tx Descriptor Owned by DMA: cannot be used by the application */ - if ((READ_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_OWN) == ETH_DMATXNDESCRF_OWN) - || (dmatxdesclist->PacketAddress[descidx] != NULL)) - { - descidx = firstdescidx; - dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx]; - - /* clear previous desc own bit */ - for (idx = 0; idx < descnbr; idx ++) - { - /* Ensure rest of descriptor is written to RAM before the OWN bit */ - __DMB(); - - CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_OWN); - - /* Increment current tx descriptor index */ - INCR_TX_DESC_INDEX(descidx, 1U); - /* Get current descriptor address */ - dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx]; - } - - return HAL_ETH_ERROR_BUSY; - } - - descnbr += 1U; - - /* Get the next Tx buffer in the list */ - txbuffer = txbuffer->next; - - /* Set header or buffer 1 address */ - WRITE_REG(dmatxdesc->DESC0, (uint32_t)txbuffer->buffer); - /* Set header or buffer 1 Length */ - MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B1L, txbuffer->len); - - if (txbuffer->next != NULL) - { - /* Get the next Tx buffer in the list */ - txbuffer = txbuffer->next; - /* Set buffer 2 address */ - WRITE_REG(dmatxdesc->DESC1, (uint32_t)txbuffer->buffer); - /* Set buffer 2 Length */ - MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B2L, (txbuffer->len << 16)); - } - else - { - WRITE_REG(dmatxdesc->DESC1, 0x0); - /* Set buffer 2 Length */ - MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B2L, 0x0U); - } - - if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_TSO) != (uint32_t)RESET) - { - /* Set TCP payload length */ - MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_TPL, pTxConfig->PayloadLen); - /* Set TCP Segmentation Enabled bit */ - SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_TSE); - } - else - { - /* Set the packet length */ - MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_FL, pTxConfig->Length); - - if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_CSUM) != (uint32_t)RESET) - { - /* Checksum Insertion Control */ - MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CIC, pTxConfig->ChecksumCtrl); - } - } - - bd_count += 1U; - - /* Ensure rest of descriptor is written to RAM before the OWN bit */ - __DMB(); - /* Set Own bit */ - SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_OWN); - /* Mark it as NORMAL descriptor */ - CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CTXT); - } - - if (ItMode != ((uint32_t)RESET)) - { - /* Set Interrupt on completion bit */ - SET_BIT(dmatxdesc->DESC2, ETH_DMATXNDESCRF_IOC); - } - else - { - /* Clear Interrupt on completion bit */ - CLEAR_BIT(dmatxdesc->DESC2, ETH_DMATXNDESCRF_IOC); - } - - /* Mark it as LAST descriptor */ - SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_LD); - /* Save the current packet address to expose it to the application */ - dmatxdesclist->PacketAddress[descidx] = dmatxdesclist->CurrentPacketAddress; - - dmatxdesclist->CurTxDesc = descidx; - - /* disable the interrupt */ - __disable_irq(); - - dmatxdesclist->BuffersInUse += bd_count + 1U; - - /* Enable interrupts back */ - __enable_irq(); - - - /* Return function status */ - return HAL_ETH_ERROR_NONE; -} - -#if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) -static void ETH_InitCallbacksToDefault(ETH_HandleTypeDef *heth) -{ - /* Init the ETH Callback settings */ - heth->TxCpltCallback = HAL_ETH_TxCpltCallback; /* Legacy weak TxCpltCallback */ - heth->RxCpltCallback = HAL_ETH_RxCpltCallback; /* Legacy weak RxCpltCallback */ - heth->ErrorCallback = HAL_ETH_ErrorCallback; /* Legacy weak ErrorCallback */ - heth->PMTCallback = HAL_ETH_PMTCallback; /* Legacy weak PMTCallback */ - heth->EEECallback = HAL_ETH_EEECallback; /* Legacy weak EEECallback */ - heth->WakeUpCallback = HAL_ETH_WakeUpCallback; /* Legacy weak WakeUpCallback */ - heth->rxLinkCallback = HAL_ETH_RxLinkCallback; /* Legacy weak RxLinkCallback */ - heth->txFreeCallback = HAL_ETH_TxFreeCallback; /* Legacy weak TxFreeCallback */ -#ifdef HAL_ETH_USE_PTP - heth->txPtpCallback = HAL_ETH_TxPtpCallback; /* Legacy weak TxPtpCallback */ -#endif /* HAL_ETH_USE_PTP */ - heth->rxAllocateCallback = HAL_ETH_RxAllocateCallback; /* Legacy weak RxAllocateCallback */ -} -#endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ - -/** - * @} - */ - -/** - * @} - */ - -#endif /* ETH */ - -#endif /* HAL_ETH_MODULE_ENABLED */ - -/** - * @} - */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c b/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c deleted file mode 100644 index ad9870c..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c +++ /dev/null @@ -1,578 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_eth_ex.c - * @author MCD Application Team - * @brief ETH HAL Extended module driver. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -#ifdef HAL_ETH_MODULE_ENABLED - -#if defined(ETH) - -/** @defgroup ETHEx ETHEx - * @brief ETH HAL Extended module driver - * @{ - */ - - -/* Private typedef -----------------------------------------------------------*/ -/* Private define ------------------------------------------------------------*/ -/** @defgroup ETHEx_Private_Constants ETHEx Private Constants - * @{ - */ -#define ETH_MACL4CR_MASK (ETH_MACL3L4CR_L4PEN | ETH_MACL3L4CR_L4SPM | \ - ETH_MACL3L4CR_L4SPIM | ETH_MACL3L4CR_L4DPM | \ - ETH_MACL3L4CR_L4DPIM) - -#define ETH_MACL3CR_MASK (ETH_MACL3L4CR_L3PEN | ETH_MACL3L4CR_L3SAM | \ - ETH_MACL3L4CR_L3SAIM | ETH_MACL3L4CR_L3DAM | \ - ETH_MACL3L4CR_L3DAIM | ETH_MACL3L4CR_L3HSBM | \ - ETH_MACL3L4CR_L3HDBM) - -#define ETH_MACRXVLAN_MASK (ETH_MACVTR_EIVLRXS | ETH_MACVTR_EIVLS | \ - ETH_MACVTR_ERIVLT | ETH_MACVTR_EDVLP | \ - ETH_MACVTR_VTHM | ETH_MACVTR_EVLRXS | \ - ETH_MACVTR_EVLS | ETH_MACVTR_DOVLTC | \ - ETH_MACVTR_ERSVLM | ETH_MACVTR_ESVL | \ - ETH_MACVTR_VTIM | ETH_MACVTR_ETV) - -#define ETH_MACTXVLAN_MASK (ETH_MACVIR_VLTI | ETH_MACVIR_CSVL | \ - ETH_MACVIR_VLP | ETH_MACVIR_VLC) -/** - * @} - */ - -/* Private macros ------------------------------------------------------------*/ -/* Private function prototypes -----------------------------------------------*/ -/* Exported functions ---------------------------------------------------------*/ -/** @defgroup ETHEx_Exported_Functions ETH Extended Exported Functions - * @{ - */ - -/** @defgroup ETHEx_Exported_Functions_Group1 Extended features functions - * @brief Extended features functions - * -@verbatim - =============================================================================== - ##### Extended features functions ##### - =============================================================================== - [..] This section provides functions allowing to: - (+) Configure ARP offload module - (+) Configure L3 and L4 filters - (+) Configure Extended VLAN features - (+) Configure Energy Efficient Ethernet module - -@endverbatim - * @{ - */ - -/** - * @brief Enables ARP Offload. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval None - */ -void HAL_ETHEx_EnableARPOffload(ETH_HandleTypeDef *heth) -{ - SET_BIT(heth->Instance->MACCR, ETH_MACCR_ARP); -} - -/** - * @brief Disables ARP Offload. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval None - */ -void HAL_ETHEx_DisableARPOffload(ETH_HandleTypeDef *heth) -{ - CLEAR_BIT(heth->Instance->MACCR, ETH_MACCR_ARP); -} - -/** - * @brief Set the ARP Match IP address - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param IpAddress: IP Address to be matched for incoming ARP requests - * @retval None - */ -void HAL_ETHEx_SetARPAddressMatch(ETH_HandleTypeDef *heth, uint32_t IpAddress) -{ - WRITE_REG(heth->Instance->MACARPAR, IpAddress); -} - -/** - * @brief Configures the L4 Filter, this function allow to: - * set the layer 4 protocol to be matched (TCP or UDP) - * enable/disable L4 source/destination port perfect/inverse match. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param Filter: L4 filter to configured, this parameter must be one of the following - * ETH_L4_FILTER_0 - * ETH_L4_FILTER_1 - * @param pL4FilterConfig: pointer to a ETH_L4FilterConfigTypeDef structure - * that contains L4 filter configuration. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETHEx_SetL4FilterConfig(ETH_HandleTypeDef *heth, uint32_t Filter, - ETH_L4FilterConfigTypeDef *pL4FilterConfig) -{ - __IO uint32_t *configreg = ((__IO uint32_t *)(&(heth->Instance->MACL3L4C0R) + Filter)); - - if (pL4FilterConfig == NULL) - { - return HAL_ERROR; - } - - /* Write configuration to (MACL3L4C0R + filter )register */ - MODIFY_REG(*configreg, ETH_MACL4CR_MASK, (pL4FilterConfig->Protocol | - pL4FilterConfig->SrcPortFilterMatch | - pL4FilterConfig->DestPortFilterMatch)); - - configreg = ((__IO uint32_t *)(&(heth->Instance->MACL4A0R) + Filter)); - - /* Write configuration to (MACL4A0R + filter )register */ - MODIFY_REG(*configreg, (ETH_MACL4AR_L4DP | ETH_MACL4AR_L4SP), (pL4FilterConfig->SourcePort | - (pL4FilterConfig->DestinationPort << 16))); - - /* Enable L4 filter */ - SET_BIT(heth->Instance->MACPFR, ETH_MACPFR_IPFE); - - return HAL_OK; -} - -/** - * @brief Configures the L4 Filter, this function allow to: - * set the layer 4 protocol to be matched (TCP or UDP) - * enable/disable L4 source/destination port perfect/inverse match. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param Filter: L4 filter to configured, this parameter must be one of the following - * ETH_L4_FILTER_0 - * ETH_L4_FILTER_1 - * @param pL4FilterConfig: pointer to a ETH_L4FilterConfigTypeDef structure - * that contains L4 filter configuration. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETHEx_GetL4FilterConfig(ETH_HandleTypeDef *heth, uint32_t Filter, - ETH_L4FilterConfigTypeDef *pL4FilterConfig) -{ - if (pL4FilterConfig == NULL) - { - return HAL_ERROR; - } - - /* Get configuration to (MACL3L4C0R + filter )register */ - pL4FilterConfig->Protocol = READ_BIT(*((__IO uint32_t *)(&(heth->Instance->MACL3L4C0R) + Filter)), - ETH_MACL3L4CR_L4PEN); - pL4FilterConfig->DestPortFilterMatch = READ_BIT(*((__IO uint32_t *)(&(heth->Instance->MACL3L4C0R) + Filter)), - (ETH_MACL3L4CR_L4DPM | ETH_MACL3L4CR_L4DPIM)); - pL4FilterConfig->SrcPortFilterMatch = READ_BIT(*((__IO uint32_t *)(&(heth->Instance->MACL3L4C0R) + Filter)), - (ETH_MACL3L4CR_L4SPM | ETH_MACL3L4CR_L4SPIM)); - - /* Get configuration to (MACL3L4C0R + filter )register */ - pL4FilterConfig->DestinationPort = (READ_BIT(*((__IO uint32_t *)(&(heth->Instance->MACL4A0R) + Filter)), - ETH_MACL4AR_L4DP) >> 16); - pL4FilterConfig->SourcePort = READ_BIT(*((__IO uint32_t *)(&(heth->Instance->MACL4A0R) + Filter)), ETH_MACL4AR_L4SP); - - return HAL_OK; -} - -/** - * @brief Configures the L3 Filter, this function allow to: - * set the layer 3 protocol to be matched (IPv4 or IPv6) - * enable/disable L3 source/destination port perfect/inverse match. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param Filter: L3 filter to configured, this parameter must be one of the following - * ETH_L3_FILTER_0 - * ETH_L3_FILTER_1 - * @param pL3FilterConfig: pointer to a ETH_L3FilterConfigTypeDef structure - * that contains L3 filter configuration. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETHEx_SetL3FilterConfig(ETH_HandleTypeDef *heth, uint32_t Filter, - ETH_L3FilterConfigTypeDef *pL3FilterConfig) -{ - __IO uint32_t *configreg = ((__IO uint32_t *)(&(heth->Instance->MACL3L4C0R) + Filter)); - - if (pL3FilterConfig == NULL) - { - return HAL_ERROR; - } - - /* Write configuration to (MACL3L4C0R + filter )register */ - MODIFY_REG(*configreg, ETH_MACL3CR_MASK, (pL3FilterConfig->Protocol | - pL3FilterConfig->SrcAddrFilterMatch | - pL3FilterConfig->DestAddrFilterMatch | - (pL3FilterConfig->SrcAddrHigherBitsMatch << 6) | - (pL3FilterConfig->DestAddrHigherBitsMatch << 11))); - - /* Check if IPv6 protocol is selected */ - if (pL3FilterConfig->Protocol != ETH_L3_IPV4_MATCH) - { - /* Set the IPv6 address match */ - /* Set Bits[31:0] of 128-bit IP addr */ - *((__IO uint32_t *)(&(heth->Instance->MACL3A0R0R) + Filter)) = pL3FilterConfig->Ip6Addr[0]; - /* Set Bits[63:32] of 128-bit IP addr */ - *((__IO uint32_t *)(&(heth->Instance->MACL3A1R0R) + Filter)) = pL3FilterConfig->Ip6Addr[1]; - /* update Bits[95:64] of 128-bit IP addr */ - *((__IO uint32_t *)(&(heth->Instance->MACL3A2R0R) + Filter)) = pL3FilterConfig->Ip6Addr[2]; - /* update Bits[127:96] of 128-bit IP addr */ - *((__IO uint32_t *)(&(heth->Instance->MACL3A3R0R) + Filter)) = pL3FilterConfig->Ip6Addr[3]; - } - else /* IPv4 protocol is selected */ - { - /* Set the IPv4 source address match */ - *((__IO uint32_t *)(&(heth->Instance->MACL3A0R0R) + Filter)) = pL3FilterConfig->Ip4SrcAddr; - /* Set the IPv4 destination address match */ - *((__IO uint32_t *)(&(heth->Instance->MACL3A1R0R) + Filter)) = pL3FilterConfig->Ip4DestAddr; - } - - return HAL_OK; -} - -/** - * @brief Configures the L3 Filter, this function allow to: - * set the layer 3 protocol to be matched (IPv4 or IPv6) - * enable/disable L3 source/destination port perfect/inverse match. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param Filter: L3 filter to configured, this parameter must be one of the following - * ETH_L3_FILTER_0 - * ETH_L3_FILTER_1 - * @param pL3FilterConfig: pointer to a ETH_L3FilterConfigTypeDef structure - * that will contain the L3 filter configuration. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETHEx_GetL3FilterConfig(ETH_HandleTypeDef *heth, uint32_t Filter, - ETH_L3FilterConfigTypeDef *pL3FilterConfig) -{ - if (pL3FilterConfig == NULL) - { - return HAL_ERROR; - } - - pL3FilterConfig->Protocol = READ_BIT(*((__IO uint32_t *)(&(heth->Instance->MACL3L4C0R) + Filter)), - ETH_MACL3L4CR_L3PEN); - pL3FilterConfig->SrcAddrFilterMatch = READ_BIT(*((__IO uint32_t *)(&(heth->Instance->MACL3L4C0R) + Filter)), - (ETH_MACL3L4CR_L3SAM | ETH_MACL3L4CR_L3SAIM)); - pL3FilterConfig->DestAddrFilterMatch = READ_BIT(*((__IO uint32_t *)(&(heth->Instance->MACL3L4C0R) + Filter)), - (ETH_MACL3L4CR_L3DAM | ETH_MACL3L4CR_L3DAIM)); - pL3FilterConfig->SrcAddrHigherBitsMatch = (READ_BIT(*((__IO uint32_t *)(&(heth->Instance->MACL3L4C0R) + Filter)), - ETH_MACL3L4CR_L3HSBM) >> 6); - pL3FilterConfig->DestAddrHigherBitsMatch = (READ_BIT(*((__IO uint32_t *)(&(heth->Instance->MACL3L4C0R) + Filter)), - ETH_MACL3L4CR_L3HDBM) >> 11); - - if (pL3FilterConfig->Protocol != ETH_L3_IPV4_MATCH) - { - pL3FilterConfig->Ip6Addr[0] = *((__IO uint32_t *)(&(heth->Instance->MACL3A0R0R) + Filter)); - pL3FilterConfig->Ip6Addr[1] = *((__IO uint32_t *)(&(heth->Instance->MACL3A1R0R) + Filter)); - pL3FilterConfig->Ip6Addr[2] = *((__IO uint32_t *)(&(heth->Instance->MACL3A2R0R) + Filter)); - pL3FilterConfig->Ip6Addr[3] = *((__IO uint32_t *)(&(heth->Instance->MACL3A3R0R) + Filter)); - } - else - { - pL3FilterConfig->Ip4SrcAddr = *((__IO uint32_t *)(&(heth->Instance->MACL3A0R0R) + Filter)); - pL3FilterConfig->Ip4DestAddr = *((__IO uint32_t *)(&(heth->Instance->MACL3A1R0R) + Filter)); - } - - return HAL_OK; -} - -/** - * @brief Enables L3 and L4 filtering process. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval None. - */ -void HAL_ETHEx_EnableL3L4Filtering(ETH_HandleTypeDef *heth) -{ - /* Enable L3/L4 filter */ - SET_BIT(heth->Instance->MACPFR, ETH_MACPFR_IPFE); -} - -/** - * @brief Disables L3 and L4 filtering process. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval None. - */ -void HAL_ETHEx_DisableL3L4Filtering(ETH_HandleTypeDef *heth) -{ - /* Disable L3/L4 filter */ - CLEAR_BIT(heth->Instance->MACPFR, ETH_MACPFR_IPFE); -} - -/** - * @brief Get the VLAN Configuration for Receive Packets. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param pVlanConfig: pointer to a ETH_RxVLANConfigTypeDef structure - * that will contain the VLAN filter configuration. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETHEx_GetRxVLANConfig(ETH_HandleTypeDef *heth, ETH_RxVLANConfigTypeDef *pVlanConfig) -{ - if (pVlanConfig == NULL) - { - return HAL_ERROR; - } - - pVlanConfig->InnerVLANTagInStatus = ((READ_BIT(heth->Instance->MACVTR, - ETH_MACVTR_EIVLRXS) >> 31) == 0U) ? DISABLE : ENABLE; - pVlanConfig->StripInnerVLANTag = READ_BIT(heth->Instance->MACVTR, ETH_MACVTR_EIVLS); - pVlanConfig->InnerVLANTag = ((READ_BIT(heth->Instance->MACVTR, ETH_MACVTR_ERIVLT) >> 27) == 0U) ? DISABLE : ENABLE; - pVlanConfig->DoubleVLANProcessing = ((READ_BIT(heth->Instance->MACVTR, - ETH_MACVTR_EDVLP) >> 26) == 0U) ? DISABLE : ENABLE; - pVlanConfig->VLANTagHashTableMatch = ((READ_BIT(heth->Instance->MACVTR, - ETH_MACVTR_VTHM) >> 25) == 0U) ? DISABLE : ENABLE; - pVlanConfig->VLANTagInStatus = ((READ_BIT(heth->Instance->MACVTR, ETH_MACVTR_EVLRXS) >> 24) == 0U) ? DISABLE : ENABLE; - pVlanConfig->StripVLANTag = READ_BIT(heth->Instance->MACVTR, ETH_MACVTR_EVLS); - pVlanConfig->VLANTypeCheck = READ_BIT(heth->Instance->MACVTR, - (ETH_MACVTR_DOVLTC | ETH_MACVTR_ERSVLM | ETH_MACVTR_ESVL)); - pVlanConfig->VLANTagInverceMatch = ((READ_BIT(heth->Instance->MACVTR, ETH_MACVTR_VTIM) >> 17) == 0U) - ? DISABLE : ENABLE; - - return HAL_OK; -} - -/** - * @brief Set the VLAN Configuration for Receive Packets. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param pVlanConfig: pointer to a ETH_RxVLANConfigTypeDef structure - * that contains VLAN filter configuration. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_ETHEx_SetRxVLANConfig(ETH_HandleTypeDef *heth, ETH_RxVLANConfigTypeDef *pVlanConfig) -{ - if (pVlanConfig == NULL) - { - return HAL_ERROR; - } - - /* Write config to MACVTR */ - MODIFY_REG(heth->Instance->MACVTR, ETH_MACRXVLAN_MASK, (((uint32_t)pVlanConfig->InnerVLANTagInStatus << 31) | - pVlanConfig->StripInnerVLANTag | - ((uint32_t)pVlanConfig->InnerVLANTag << 27) | - ((uint32_t)pVlanConfig->DoubleVLANProcessing << 26) | - ((uint32_t)pVlanConfig->VLANTagHashTableMatch << 25) | - ((uint32_t)pVlanConfig->VLANTagInStatus << 24) | - pVlanConfig->StripVLANTag | - pVlanConfig->VLANTypeCheck | - ((uint32_t)pVlanConfig->VLANTagInverceMatch << 17))); - - return HAL_OK; -} - -/** - * @brief Set the VLAN Hash Table - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param VLANHashTable: VLAN hash table 16 bit value - * @retval None - */ -void HAL_ETHEx_SetVLANHashTable(ETH_HandleTypeDef *heth, uint32_t VLANHashTable) -{ - MODIFY_REG(heth->Instance->MACVHTR, ETH_MACVHTR_VLHT, VLANHashTable); -} - -/** - * @brief Get the VLAN Configuration for Transmit Packets. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param VLANTag: Selects the vlan tag, this parameter must be one of the following - * ETH_OUTER_TX_VLANTAG - * ETH_INNER_TX_VLANTAG - * @param pVlanConfig: pointer to a ETH_TxVLANConfigTypeDef structure - * that will contain the Tx VLAN filter configuration. - * @retval HAL Status. - */ -HAL_StatusTypeDef HAL_ETHEx_GetTxVLANConfig(ETH_HandleTypeDef *heth, uint32_t VLANTag, - ETH_TxVLANConfigTypeDef *pVlanConfig) -{ - if (pVlanConfig == NULL) - { - return HAL_ERROR; - } - - if (VLANTag == ETH_INNER_TX_VLANTAG) - { - pVlanConfig->SourceTxDesc = ((READ_BIT(heth->Instance->MACIVIR, ETH_MACVIR_VLTI) >> 20) == 0U) ? DISABLE : ENABLE; - pVlanConfig->SVLANType = ((READ_BIT(heth->Instance->MACIVIR, ETH_MACVIR_CSVL) >> 19) == 0U) ? DISABLE : ENABLE; - pVlanConfig->VLANTagControl = READ_BIT(heth->Instance->MACIVIR, (ETH_MACVIR_VLP | ETH_MACVIR_VLC)); - } - else - { - pVlanConfig->SourceTxDesc = ((READ_BIT(heth->Instance->MACVIR, ETH_MACVIR_VLTI) >> 20) == 0U) ? DISABLE : ENABLE; - pVlanConfig->SVLANType = ((READ_BIT(heth->Instance->MACVIR, ETH_MACVIR_CSVL) >> 19) == 0U) ? DISABLE : ENABLE; - pVlanConfig->VLANTagControl = READ_BIT(heth->Instance->MACVIR, (ETH_MACVIR_VLP | ETH_MACVIR_VLC)); - } - - return HAL_OK;; -} - -/** - * @brief Set the VLAN Configuration for Transmit Packets. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param VLANTag: Selects the vlan tag, this parameter must be one of the following - * ETH_OUTER_TX_VLANTAG - * ETH_INNER_TX_VLANTAG - * @param pVlanConfig: pointer to a ETH_TxVLANConfigTypeDef structure - * that contains Tx VLAN filter configuration. - * @retval HAL Status - */ -HAL_StatusTypeDef HAL_ETHEx_SetTxVLANConfig(ETH_HandleTypeDef *heth, uint32_t VLANTag, - ETH_TxVLANConfigTypeDef *pVlanConfig) -{ - if (VLANTag == ETH_INNER_TX_VLANTAG) - { - MODIFY_REG(heth->Instance->MACIVIR, ETH_MACTXVLAN_MASK, (((uint32_t)pVlanConfig->SourceTxDesc << 20) | - ((uint32_t)pVlanConfig->SVLANType << 19) | - pVlanConfig->VLANTagControl)); - /* Enable Double VLAN processing */ - SET_BIT(heth->Instance->MACVTR, ETH_MACVTR_EDVLP); - } - else - { - MODIFY_REG(heth->Instance->MACVIR, ETH_MACTXVLAN_MASK, (((uint32_t)pVlanConfig->SourceTxDesc << 20) | - ((uint32_t)pVlanConfig->SVLANType << 19) | - pVlanConfig->VLANTagControl)); - } - - return HAL_OK; -} - -/** - * @brief Set the VLAN Tag Identifier for Transmit Packets. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param VLANTag: Selects the vlan tag, this parameter must be one of the following - * ETH_OUTER_TX_VLANTAG - * ETH_INNER_TX_VLANTAG - * @param VLANIdentifier: VLAN Identifier 16 bit value - * @retval None - */ -void HAL_ETHEx_SetTxVLANIdentifier(ETH_HandleTypeDef *heth, uint32_t VLANTag, uint32_t VLANIdentifier) -{ - if (VLANTag == ETH_INNER_TX_VLANTAG) - { - MODIFY_REG(heth->Instance->MACIVIR, ETH_MACVIR_VLT, VLANIdentifier); - } - else - { - MODIFY_REG(heth->Instance->MACVIR, ETH_MACVIR_VLT, VLANIdentifier); - } -} - -/** - * @brief Enables the VLAN Tag Filtering process. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval None. - */ -void HAL_ETHEx_EnableVLANProcessing(ETH_HandleTypeDef *heth) -{ - /* Enable VLAN processing */ - SET_BIT(heth->Instance->MACPFR, ETH_MACPFR_VTFE); -} - -/** - * @brief Disables the VLAN Tag Filtering process. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval None. - */ -void HAL_ETHEx_DisableVLANProcessing(ETH_HandleTypeDef *heth) -{ - /* Disable VLAN processing */ - CLEAR_BIT(heth->Instance->MACPFR, ETH_MACPFR_VTFE); -} - -/** - * @brief Enters the Low Power Idle (LPI) mode - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @param TxAutomate: Enable/Disable automate enter/exit LPI mode. - * @param TxClockStop: Enable/Disable Tx clock stop in LPI mode. - * @retval None - */ -void HAL_ETHEx_EnterLPIMode(ETH_HandleTypeDef *heth, FunctionalState TxAutomate, FunctionalState TxClockStop) -{ - /* Enable LPI Interrupts */ - __HAL_ETH_MAC_ENABLE_IT(heth, ETH_MACIER_LPIIE); - - /* Write to LPI Control register: Enter low power mode */ - MODIFY_REG(heth->Instance->MACLCSR, (ETH_MACLCSR_LPIEN | ETH_MACLCSR_LPITXA | ETH_MACLCSR_LPITCSE), - (((uint32_t)TxAutomate << 19) | - ((uint32_t)TxClockStop << 21) | - ETH_MACLCSR_LPIEN)); -} - -/** - * @brief Exits the Low Power Idle (LPI) mode. - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval None - */ -void HAL_ETHEx_ExitLPIMode(ETH_HandleTypeDef *heth) -{ - /* Clear the LPI Config and exit low power mode */ - CLEAR_BIT(heth->Instance->MACLCSR, (ETH_MACLCSR_LPIEN | ETH_MACLCSR_LPITXA | ETH_MACLCSR_LPITCSE)); - - /* Enable LPI Interrupts */ - __HAL_ETH_MAC_DISABLE_IT(heth, ETH_MACIER_LPIIE); -} - - -/** - * @brief Returns the ETH MAC LPI event - * @param heth: pointer to a ETH_HandleTypeDef structure that contains - * the configuration information for ETHERNET module - * @retval ETH MAC WakeUp event - */ -uint32_t HAL_ETHEx_GetMACLPIEvent(ETH_HandleTypeDef *heth) -{ - return heth->MACLPIEvent; -} - -/** - * @} - */ - -/** - * @} - */ - -/** - * @} - */ - -#endif /* ETH */ - -#endif /* HAL_ETH_MODULE_ENABLED */ - -/** - * @} - */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c b/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c deleted file mode 100644 index c9090f7..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c +++ /dev/null @@ -1,859 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_exti.c - * @author MCD Application Team - * @brief EXTI HAL module driver. - * This file provides firmware functions to manage the following - * functionalities of the General Purpose Input/Output (EXTI) peripheral: - * + Initialization and de-initialization functions - * + IO operation functions - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - @verbatim - ============================================================================== - ##### EXTI Peripheral features ##### - ============================================================================== - [..] - (+) Each Exti line can be configured within this driver. - - (+) Exti line can be configured in 3 different modes - (++) Interrupt (CORE1 or CORE2 in case of dual core line ) - (++) Event (CORE1 or CORE2 in case of dual core line ) - (++) a combination of the previous - - (+) Configurable Exti lines can be configured with 3 different triggers - (++) Rising - (++) Falling - (++) Both of them - - (+) When set in interrupt mode, configurable Exti lines have two diffenrents - interrupt pending registers which allow to distinguish which transition - occurs: - (++) Rising edge pending interrupt - (++) Falling - - (+) Exti lines 0 to 15 are linked to gpio pin number 0 to 15. Gpio port can - be selected through multiplexer. - - (+) PendClearSource used to set the D3 Smart Run Domain autoamtic pend clear source. - It is applicable for line with wkaeup target is Any (CPU1 , CPU2 and D3 smart run domain). - Value can be one of the following: - (++) EXTI_D3_PENDCLR_SRC_NONE : no pend clear source is selected : - In this case corresponding bit of D2PMRx register is set to 0 - (+++) On a configurable Line : the D3 domain wakeup signal is - automatically cleared after after the Delay + Rising Edge detect - (+++) On a direct Line : the D3 domain wakeup signal is - cleared after the direct event input signal is cleared - - (++) EXTI_D3_PENDCLR_SRC_DMACH6 : no pend clear source is selected : - In this case corresponding bit of D2PMRx register is set to 1 - and corresponding bits(2) of D3PCRxL/H is set to b00 : - DMA ch6 event selected as D3 domain pendclear source - - (++) EXTI_D3_PENDCLR_SRC_DMACH7 : no pend clear source is selected : - In this case corresponding bit of D2PMRx register is set to 1 - and corresponding bits(2) of D3PCRxL/H is set to b01 : - DMA ch7 event selected as D3 domain pendclear source - - (++) EXTI_D3_PENDCLR_SRC_LPTIM4 : no pend clear source is selected : - In this case corresponding bit of D2PMRx register is set to 1 - and corresponding bits(2) of D3PCRxL/H is set to b10 : - LPTIM4 out selected as D3 domain pendclear source - - (++) EXTI_D3_PENDCLR_SRC_LPTIM5 : no pend clear source is selected : - In this case corresponding bit of D2PMRx register is set to 1 - and corresponding bits(2) of D3PCRxL/H is set to b11 : - LPTIM5 out selected as D3 domain pendclear source - - - ##### How to use this driver ##### - ============================================================================== - [..] - - (#) Configure the EXTI line using HAL_EXTI_SetConfigLine(). - (++) Choose the interrupt line number by setting "Line" member from - EXTI_ConfigTypeDef structure. - (++) Configure the interrupt and/or event mode using "Mode" member from - EXTI_ConfigTypeDef structure. - (++) For configurable lines, configure rising and/or falling trigger - "Trigger" member from EXTI_ConfigTypeDef structure. - (++) For Exti lines linked to gpio, choose gpio port using "GPIOSel" - member from GPIO_InitTypeDef structure. - (++) For Exti lines with wkaeup target is Any (CPU1 , CPU2 and D3 smart run domain), - choose gpio D3 PendClearSource using PendClearSource - member from EXTI_PendClear_Source structure. - - (#) Get current Exti configuration of a dedicated line using - HAL_EXTI_GetConfigLine(). - (++) Provide exiting handle as parameter. - (++) Provide pointer on EXTI_ConfigTypeDef structure as second parameter. - - (#) Clear Exti configuration of a dedicated line using HAL_EXTI_GetConfigLine(). - (++) Provide exiting handle as parameter. - - (#) Register callback to treat Exti interrupts using HAL_EXTI_RegisterCallback(). - (++) Provide exiting handle as first parameter. - (++) Provide which callback will be registered using one value from - EXTI_CallbackIDTypeDef. - (++) Provide callback function pointer. - - (#) Get interrupt pending bit using HAL_EXTI_GetPending(). - - (#) Clear interrupt pending bit using HAL_EXTI_GetPending(). - - (#) Generate software interrupt using HAL_EXTI_GenerateSWI(). - - @endverbatim - */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @addtogroup EXTI - * @{ - */ - -#ifdef HAL_EXTI_MODULE_ENABLED - -/* Private typedef -----------------------------------------------------------*/ -/* Private defines ------------------------------------------------------------*/ -/** @defgroup EXTI_Private_Constants EXTI Private Constants - * @{ - */ -#define EXTI_MODE_OFFSET 0x04U /* 0x10: offset between CPU IMR/EMR registers */ -#define EXTI_CONFIG_OFFSET 0x08U /* 0x20: offset between CPU Rising/Falling configuration registers */ -/** - * @} - */ - -/* Private macros ------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private function prototypes -----------------------------------------------*/ -/* Exported functions --------------------------------------------------------*/ - -/** @addtogroup EXTI_Exported_Functions - * @{ - */ - -/** @addtogroup EXTI_Exported_Functions_Group1 - * @brief Configuration functions - * -@verbatim - =============================================================================== - ##### Configuration functions ##### - =============================================================================== - -@endverbatim - * @{ - */ - -/** - * @brief Set configuration of a dedicated Exti line. - * @param hexti Exti handle. - * @param pExtiConfig Pointer on EXTI configuration to be set. - * @retval HAL Status. - */ -HAL_StatusTypeDef HAL_EXTI_SetConfigLine(EXTI_HandleTypeDef *hexti, EXTI_ConfigTypeDef *pExtiConfig) -{ - __IO uint32_t *regaddr; - uint32_t regval; - uint32_t linepos; - uint32_t maskline; - uint32_t offset; - uint32_t pcrlinepos; - - /* Check null pointer */ - if ((hexti == NULL) || (pExtiConfig == NULL)) - { - return HAL_ERROR; - } - - /* Check the parameters */ - assert_param(IS_EXTI_LINE(pExtiConfig->Line)); - assert_param(IS_EXTI_MODE(pExtiConfig->Mode)); - - /* Assign line number to handle */ - hexti->Line = pExtiConfig->Line; - - /* compute line register offset and line mask */ - offset = ((pExtiConfig->Line & EXTI_REG_MASK) >> EXTI_REG_SHIFT); - linepos = (pExtiConfig->Line & EXTI_PIN_MASK); - maskline = (1UL << linepos); - - /* Configure triggers for configurable lines */ - if ((pExtiConfig->Line & EXTI_CONFIG) != 0x00U) - { - assert_param(IS_EXTI_TRIGGER(pExtiConfig->Trigger)); - - /* Configure rising trigger */ - regaddr = (__IO uint32_t *)(&EXTI->RTSR1 + (EXTI_CONFIG_OFFSET * offset)); - regval = *regaddr; - - /* Mask or set line */ - if ((pExtiConfig->Trigger & EXTI_TRIGGER_RISING) != 0x00U) - { - regval |= maskline; - } - else - { - regval &= ~maskline; - } - - /* Store rising trigger mode */ - *regaddr = regval; - - /* Configure falling trigger */ - regaddr = (__IO uint32_t *)(&EXTI->FTSR1 + (EXTI_CONFIG_OFFSET * offset)); - regval = *regaddr; - - /* Mask or set line */ - if ((pExtiConfig->Trigger & EXTI_TRIGGER_FALLING) != 0x00U) - { - regval |= maskline; - } - else - { - regval &= ~maskline; - } - - /* Store falling trigger mode */ - *regaddr = regval; - - /* Configure gpio port selection in case of gpio exti line */ - if ((pExtiConfig->Line & EXTI_GPIO) == EXTI_GPIO) - { - assert_param(IS_EXTI_GPIO_PORT(pExtiConfig->GPIOSel)); - assert_param(IS_EXTI_GPIO_PIN(linepos)); - - regval = SYSCFG->EXTICR[(linepos >> 2U) & 0x03UL]; - regval &= ~(SYSCFG_EXTICR1_EXTI0 << (SYSCFG_EXTICR1_EXTI1_Pos * (linepos & 0x03U))); - regval |= (pExtiConfig->GPIOSel << (SYSCFG_EXTICR1_EXTI1_Pos * (linepos & 0x03U))); - SYSCFG->EXTICR[(linepos >> 2U) & 0x03UL] = regval; - } - } - - /* Configure interrupt mode : read current mode */ - regaddr = (__IO uint32_t *)(&EXTI->IMR1 + (EXTI_MODE_OFFSET * offset)); - regval = *regaddr; - - /* Mask or set line */ - if ((pExtiConfig->Mode & EXTI_MODE_INTERRUPT) != 0x00U) - { - regval |= maskline; - } - else - { - regval &= ~maskline; - } - - /* Store interrupt mode */ - *regaddr = regval; - - /* The event mode cannot be configured if the line does not support it */ - assert_param(((pExtiConfig->Line & EXTI_EVENT) == EXTI_EVENT) || ((pExtiConfig->Mode & EXTI_MODE_EVENT) != EXTI_MODE_EVENT)); - - /* Configure event mode : read current mode */ - regaddr = (__IO uint32_t *)(&EXTI->EMR1 + (EXTI_MODE_OFFSET * offset)); - regval = *regaddr; - - /* Mask or set line */ - if ((pExtiConfig->Mode & EXTI_MODE_EVENT) != 0x00U) - { - regval |= maskline; - } - else - { - regval &= ~maskline; - } - - /* Store event mode */ - *regaddr = regval; - -#if defined (DUAL_CORE) - /* Configure interrupt mode for Core2 : read current mode */ - regaddr = (__IO uint32_t *)(&EXTI->C2IMR1 + (EXTI_MODE_OFFSET * offset)); - regval = *regaddr; - - /* Mask or set line */ - if ((pExtiConfig->Mode & EXTI_MODE_CORE2_INTERRUPT) != 0x00U) - { - regval |= maskline; - } - else - { - regval &= ~maskline; - } - - /* Store interrupt mode */ - *regaddr = regval; - - /* The event mode cannot be configured if the line does not support it */ - assert_param(((pExtiConfig->Line & EXTI_EVENT) == EXTI_EVENT) || ((pExtiConfig->Mode & EXTI_MODE_CORE2_EVENT) != EXTI_MODE_CORE2_EVENT)); - - /* Configure event mode : read current mode */ - regaddr = (__IO uint32_t *)(&EXTI->C2EMR1 + (EXTI_MODE_OFFSET * offset)); - regval = *regaddr; - - /* Mask or set line */ - if ((pExtiConfig->Mode & EXTI_MODE_CORE2_EVENT) != 0x00U) - { - regval |= maskline; - } - else - { - regval &= ~maskline; - } - - /* Store event mode */ - *regaddr = regval; -#endif /* DUAL_CORE */ - - /* Configure the D3 PendClear source in case of Wakeup target is Any */ - if ((pExtiConfig->Line & EXTI_TARGET_MASK) == EXTI_TARGET_MSK_ALL) - { - assert_param(IS_EXTI_D3_PENDCLR_SRC(pExtiConfig->PendClearSource)); - - /*Calc the PMR register address for the given line */ - regaddr = (__IO uint32_t *)(&EXTI->D3PMR1 + (EXTI_CONFIG_OFFSET * offset)); - regval = *regaddr; - - if(pExtiConfig->PendClearSource == EXTI_D3_PENDCLR_SRC_NONE) - { - /* Clear D3PMRx register for the given line */ - regval &= ~maskline; - /* Store D3PMRx register value */ - *regaddr = regval; - } - else - { - /* Set D3PMRx register to 1 for the given line */ - regval |= maskline; - /* Store D3PMRx register value */ - *regaddr = regval; - - if(linepos < 16UL) - { - regaddr = (__IO uint32_t *)(&EXTI->D3PCR1L + (EXTI_CONFIG_OFFSET * offset)); - pcrlinepos = 1UL << linepos; - } - else - { - regaddr = (__IO uint32_t *)(&EXTI->D3PCR1H + (EXTI_CONFIG_OFFSET * offset)); - pcrlinepos = 1UL << (linepos - 16UL); - } - - regval = (*regaddr & (~(pcrlinepos * pcrlinepos * 3UL))) | (pcrlinepos * pcrlinepos * (pExtiConfig->PendClearSource - 1UL)); - *regaddr = regval; - } - } - - return HAL_OK; -} - - -/** - * @brief Get configuration of a dedicated Exti line. - * @param hexti Exti handle. - * @param pExtiConfig Pointer on structure to store Exti configuration. - * @retval HAL Status. - */ -HAL_StatusTypeDef HAL_EXTI_GetConfigLine(EXTI_HandleTypeDef *hexti, EXTI_ConfigTypeDef *pExtiConfig) -{ - __IO uint32_t *regaddr; - uint32_t regval; - uint32_t linepos; - uint32_t maskline; - uint32_t offset; - uint32_t pcrlinepos; - - /* Check null pointer */ - if ((hexti == NULL) || (pExtiConfig == NULL)) - { - return HAL_ERROR; - } - - /* Check the parameter */ - assert_param(IS_EXTI_LINE(hexti->Line)); - - /* Store handle line number to configuration structure */ - pExtiConfig->Line = hexti->Line; - - /* compute line register offset and line mask */ - offset = ((pExtiConfig->Line & EXTI_REG_MASK) >> EXTI_REG_SHIFT); - linepos = (pExtiConfig->Line & EXTI_PIN_MASK); - maskline = (1UL << linepos); - - /* 1] Get core mode : interrupt */ - regaddr = (__IO uint32_t *)(&EXTI->IMR1 + (EXTI_MODE_OFFSET * offset)); - regval = *regaddr; - - pExtiConfig->Mode = EXTI_MODE_NONE; - - /* Check if selected line is enable */ - if ((regval & maskline) != 0x00U) - { - pExtiConfig->Mode = EXTI_MODE_INTERRUPT; - } - - /* Get event mode */ - regaddr = (__IO uint32_t *)(&EXTI->EMR1 + (EXTI_MODE_OFFSET * offset)); - regval = *regaddr; - - /* Check if selected line is enable */ - if ((regval & maskline) != 0x00U) - { - pExtiConfig->Mode |= EXTI_MODE_EVENT; - } -#if defined (DUAL_CORE) - regaddr = (__IO uint32_t *)(&EXTI->C2IMR1 + (EXTI_MODE_OFFSET * offset)); - regval = *regaddr; - - /* Check if selected line is enable */ - if ((regval & maskline) != 0x00U) - { - pExtiConfig->Mode = EXTI_MODE_CORE2_INTERRUPT; - } - - /* Get event mode */ - regaddr = (__IO uint32_t *)(&EXTI->C2EMR1 + (EXTI_MODE_OFFSET * offset)); - regval = *regaddr; - - /* Check if selected line is enable */ - if ((regval & maskline) != 0x00U) - { - pExtiConfig->Mode |= EXTI_MODE_CORE2_EVENT; - } -#endif /*DUAL_CORE*/ - - /* Get default Trigger and GPIOSel configuration */ - pExtiConfig->Trigger = EXTI_TRIGGER_NONE; - pExtiConfig->GPIOSel = 0x00U; - - /* 2] Get trigger for configurable lines : rising */ - if ((pExtiConfig->Line & EXTI_CONFIG) != 0x00U) - { - regaddr = (__IO uint32_t *)(&EXTI->RTSR1 + (EXTI_CONFIG_OFFSET * offset)); - regval = *regaddr; - - /* Check if configuration of selected line is enable */ - if ((regval & maskline) != 0x00U) - { - pExtiConfig->Trigger = EXTI_TRIGGER_RISING; - } - - /* Get falling configuration */ - regaddr = (__IO uint32_t *)(&EXTI->FTSR1 + (EXTI_CONFIG_OFFSET * offset)); - regval = *regaddr; - - /* Check if configuration of selected line is enable */ - if ((regval & maskline) != 0x00U) - { - pExtiConfig->Trigger |= EXTI_TRIGGER_FALLING; - } - - /* Get Gpio port selection for gpio lines */ - if ((pExtiConfig->Line & EXTI_GPIO) == EXTI_GPIO) - { - assert_param(IS_EXTI_GPIO_PIN(linepos)); - - regval = SYSCFG->EXTICR[(linepos >> 2U) & 0x03UL]; - pExtiConfig->GPIOSel = (regval >> (SYSCFG_EXTICR1_EXTI1_Pos * (linepos & 0x03u))) & SYSCFG_EXTICR1_EXTI0; - } - } - - /* Get default Pend Clear Source */ - pExtiConfig->PendClearSource = EXTI_D3_PENDCLR_SRC_NONE; - - /* 3] Get D3 Pend Clear source */ - if ((pExtiConfig->Line & EXTI_TARGET_MASK) == EXTI_TARGET_MSK_ALL) - { - regaddr = (__IO uint32_t *)(&EXTI->D3PMR1 + (EXTI_CONFIG_OFFSET * offset)); - if(((*regaddr) & linepos) != 0UL) - { - /* if wakeup target is any and PMR set, the read pend clear source from D3PCRxL/H */ - if(linepos < 16UL) - { - regaddr = (__IO uint32_t *)(&EXTI->D3PCR1L + (EXTI_CONFIG_OFFSET * offset)); - pcrlinepos = 1UL << linepos; - } - else - { - regaddr = (__IO uint32_t *)(&EXTI->D3PCR1H + (EXTI_CONFIG_OFFSET * offset)); - pcrlinepos = 1UL << (linepos - 16UL); - } - - pExtiConfig->PendClearSource = 1UL + ((*regaddr & (pcrlinepos * pcrlinepos * 3UL)) / (pcrlinepos * pcrlinepos)); - } - } - - return HAL_OK; -} - - -/** - * @brief Clear whole configuration of a dedicated Exti line. - * @param hexti Exti handle. - * @retval HAL Status. - */ -HAL_StatusTypeDef HAL_EXTI_ClearConfigLine(EXTI_HandleTypeDef *hexti) -{ - __IO uint32_t *regaddr; - uint32_t regval; - uint32_t linepos; - uint32_t maskline; - uint32_t offset; - uint32_t pcrlinepos; - - /* Check null pointer */ - if (hexti == NULL) - { - return HAL_ERROR; - } - - /* Check the parameter */ - assert_param(IS_EXTI_LINE(hexti->Line)); - - /* compute line register offset and line mask */ - offset = ((hexti->Line & EXTI_REG_MASK) >> EXTI_REG_SHIFT); - linepos = (hexti->Line & EXTI_PIN_MASK); - maskline = (1UL << linepos); - - /* 1] Clear interrupt mode */ - regaddr = (__IO uint32_t *)(&EXTI->IMR1 + (EXTI_MODE_OFFSET * offset)); - regval = (*regaddr & ~maskline); - *regaddr = regval; - - /* 2] Clear event mode */ - regaddr = (__IO uint32_t *)(&EXTI->EMR1 + (EXTI_MODE_OFFSET * offset)); - regval = (*regaddr & ~maskline); - *regaddr = regval; - -#if defined (DUAL_CORE) - /* 1] Clear CM4 interrupt mode */ - regaddr = (__IO uint32_t *)(&EXTI->C2IMR1 + (EXTI_MODE_OFFSET * offset)); - regval = (*regaddr & ~maskline); - *regaddr = regval; - - /* 2] Clear CM4 event mode */ - regaddr = (__IO uint32_t *)(&EXTI->C2EMR1 + (EXTI_MODE_OFFSET * offset)); - regval = (*regaddr & ~maskline); - *regaddr = regval; -#endif /* DUAL_CORE */ - - /* 3] Clear triggers in case of configurable lines */ - if ((hexti->Line & EXTI_CONFIG) != 0x00U) - { - regaddr = (__IO uint32_t *)(&EXTI->RTSR1 + (EXTI_CONFIG_OFFSET * offset)); - regval = (*regaddr & ~maskline); - *regaddr = regval; - - regaddr = (__IO uint32_t *)(&EXTI->FTSR1 + (EXTI_CONFIG_OFFSET * offset)); - regval = (*regaddr & ~maskline); - *regaddr = regval; - - /* Get Gpio port selection for gpio lines */ - if ((hexti->Line & EXTI_GPIO) == EXTI_GPIO) - { - assert_param(IS_EXTI_GPIO_PIN(linepos)); - - regval = SYSCFG->EXTICR[(linepos >> 2U) & 0x03UL]; - regval &= ~(SYSCFG_EXTICR1_EXTI0 << (SYSCFG_EXTICR1_EXTI1_Pos * (linepos & 0x03UL))); - SYSCFG->EXTICR[(linepos >> 2U) & 0x03UL] = regval; - } - } - - /* 4] Clear D3 Config lines */ - if ((hexti->Line & EXTI_TARGET_MASK) == EXTI_TARGET_MSK_ALL) - { - regaddr = (__IO uint32_t *)(&EXTI->D3PMR1 + (EXTI_CONFIG_OFFSET * offset)); - *regaddr = (*regaddr & ~maskline); - - if(linepos < 16UL) - { - regaddr = (__IO uint32_t *)(&EXTI->D3PCR1L + (EXTI_CONFIG_OFFSET * offset)); - pcrlinepos = 1UL << linepos; - } - else - { - regaddr = (__IO uint32_t *)(&EXTI->D3PCR1H + (EXTI_CONFIG_OFFSET * offset)); - pcrlinepos = 1UL << (linepos - 16UL); - } - - /*Clear D3 PendClear source */ - *regaddr &= (~(pcrlinepos * pcrlinepos * 3UL)); - } - - return HAL_OK; -} - - -/** - * @brief Register callback for a dedicated Exti line. - * @param hexti Exti handle. - * @param CallbackID User callback identifier. - * This parameter can be one of @arg @ref EXTI_CallbackIDTypeDef values. - * @param pPendingCbfn function pointer to be stored as callback. - * @retval HAL Status. - */ -HAL_StatusTypeDef HAL_EXTI_RegisterCallback(EXTI_HandleTypeDef *hexti, EXTI_CallbackIDTypeDef CallbackID, void (*pPendingCbfn)(void)) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Check null pointer */ - if (hexti == NULL) - { - return HAL_ERROR; - } - - switch (CallbackID) - { - case HAL_EXTI_COMMON_CB_ID: - hexti->PendingCallback = pPendingCbfn; - break; - - default: - status = HAL_ERROR; - break; - } - - return status; -} - - -/** - * @brief Store line number as handle private field. - * @param hexti Exti handle. - * @param ExtiLine Exti line number. - * This parameter can be from 0 to @ref EXTI_LINE_NB. - * @retval HAL Status. - */ -HAL_StatusTypeDef HAL_EXTI_GetHandle(EXTI_HandleTypeDef *hexti, uint32_t ExtiLine) -{ - /* Check the parameters */ - assert_param(IS_EXTI_LINE(ExtiLine)); - - /* Check null pointer */ - if (hexti == NULL) - { - return HAL_ERROR; - } - else - { - /* Store line number as handle private field */ - hexti->Line = ExtiLine; - - return HAL_OK; - } -} - - -/** - * @} - */ - -/** @addtogroup EXTI_Exported_Functions_Group2 - * @brief EXTI IO functions. - * -@verbatim - =============================================================================== - ##### IO operation functions ##### - =============================================================================== - -@endverbatim - * @{ - */ - -/** - * @brief Handle EXTI interrupt request. - * @param hexti Exti handle. - * @retval none. - */ -void HAL_EXTI_IRQHandler(EXTI_HandleTypeDef *hexti) -{ - __IO uint32_t *regaddr; - uint32_t regval; - uint32_t maskline; - uint32_t offset; - - /* Compute line register offset and line mask */ - offset = ((hexti->Line & EXTI_REG_MASK) >> EXTI_REG_SHIFT); - maskline = (1UL << (hexti->Line & EXTI_PIN_MASK)); - -#if defined(DUAL_CORE) - if (HAL_GetCurrentCPUID() == CM7_CPUID) - { - /* Get pending register address */ - regaddr = (__IO uint32_t *)(&EXTI->PR1 + (EXTI_MODE_OFFSET * offset)); - } - else /* Cortex-M4*/ - { - /* Get pending register address */ - regaddr = (__IO uint32_t *)(&EXTI->C2PR1 + (EXTI_MODE_OFFSET * offset)); - } -#else - regaddr = (__IO uint32_t *)(&EXTI->PR1 + (EXTI_MODE_OFFSET * offset)); -#endif /* DUAL_CORE */ - - /* Get pending bit */ - regval = (*regaddr & maskline); - - if (regval != 0x00U) - { - /* Clear pending bit */ - *regaddr = maskline; - - /* Call callback */ - if (hexti->PendingCallback != NULL) - { - hexti->PendingCallback(); - } - } -} - - -/** - * @brief Get interrupt pending bit of a dedicated line. - * @param hexti Exti handle. - * @param Edge Specify which pending edge as to be checked. - * This parameter can be one of the following values: - * @arg @ref EXTI_TRIGGER_RISING_FALLING - * This parameter is kept for compatibility with other series. - * @retval 1 if interrupt is pending else 0. - */ -uint32_t HAL_EXTI_GetPending(EXTI_HandleTypeDef *hexti, uint32_t Edge) -{ - __IO uint32_t *regaddr; - uint32_t regval; - uint32_t linepos; - uint32_t maskline; - uint32_t offset; - - /* Check parameters */ - assert_param(IS_EXTI_LINE(hexti->Line)); - assert_param(IS_EXTI_CONFIG_LINE(hexti->Line)); - assert_param(IS_EXTI_PENDING_EDGE(Edge)); - - /* compute line register offset and line mask */ - offset = ((hexti->Line & EXTI_REG_MASK) >> EXTI_REG_SHIFT); - linepos = (hexti->Line & EXTI_PIN_MASK); - maskline = (1UL << linepos); - -#if defined(DUAL_CORE) - if (HAL_GetCurrentCPUID() == CM7_CPUID) - { - /* Get pending register address */ - regaddr = (__IO uint32_t *)(&EXTI->PR1 + (EXTI_MODE_OFFSET * offset)); - } - else /* Cortex-M4 */ - { - /* Get pending register address */ - regaddr = (__IO uint32_t *)(&EXTI->C2PR1 + (EXTI_MODE_OFFSET * offset)); - } -#else - regaddr = (__IO uint32_t *)(&EXTI->PR1 + (EXTI_MODE_OFFSET * offset)); -#endif /* DUAL_CORE */ - - /* return 1 if bit is set else 0 */ - regval = ((*regaddr & maskline) >> linepos); - return regval; -} - - -/** - * @brief Clear interrupt pending bit of a dedicated line. - * @param hexti Exti handle. - * @param Edge Specify which pending edge as to be clear. - * This parameter can be one of the following values: - * @arg @ref EXTI_TRIGGER_RISING_FALLING - * This parameter is kept for compatibility with other series. - * @retval None. - */ -void HAL_EXTI_ClearPending(EXTI_HandleTypeDef *hexti, uint32_t Edge) -{ - __IO uint32_t *regaddr; - uint32_t maskline; - uint32_t offset; - - /* Check parameters */ - assert_param(IS_EXTI_LINE(hexti->Line)); - assert_param(IS_EXTI_CONFIG_LINE(hexti->Line)); - assert_param(IS_EXTI_PENDING_EDGE(Edge)); - - /* compute line register offset and line mask */ - offset = ((hexti->Line & EXTI_REG_MASK) >> EXTI_REG_SHIFT); - maskline = (1UL << (hexti->Line & EXTI_PIN_MASK)); - -#if defined(DUAL_CORE) - if (HAL_GetCurrentCPUID() == CM7_CPUID) - { - /* Get pending register address */ - regaddr = (__IO uint32_t *)(&EXTI->PR1 + (EXTI_MODE_OFFSET * offset)); - } - else /* Cortex-M4 */ - { - /* Get pending register address */ - regaddr = (__IO uint32_t *)(&EXTI->C2PR1 + (EXTI_MODE_OFFSET * offset)); - } -#else - regaddr = (__IO uint32_t *)(&EXTI->PR1 + (EXTI_MODE_OFFSET * offset)); -#endif /* DUAL_CORE */ - - /* Clear Pending bit */ - *regaddr = maskline; -} - -/** - * @brief Generate a software interrupt for a dedicated line. - * @param hexti Exti handle. - * @retval None. - */ -void HAL_EXTI_GenerateSWI(EXTI_HandleTypeDef *hexti) -{ - __IO uint32_t *regaddr; - uint32_t maskline; - uint32_t offset; - - /* Check parameters */ - assert_param(IS_EXTI_LINE(hexti->Line)); - assert_param(IS_EXTI_CONFIG_LINE(hexti->Line)); - - /* compute line register offset and line mask */ - offset = ((hexti->Line & EXTI_REG_MASK) >> EXTI_REG_SHIFT); - maskline = (1UL << (hexti->Line & EXTI_PIN_MASK)); - - regaddr = (__IO uint32_t *)(&EXTI->SWIER1 + (EXTI_CONFIG_OFFSET * offset)); - *regaddr = maskline; -} - - -/** - * @} - */ - -/** - * @} - */ - -#endif /* HAL_EXTI_MODULE_ENABLED */ -/** - * @} - */ - -/** - * @} - */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c b/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c deleted file mode 100644 index 950ea15..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c +++ /dev/null @@ -1,6204 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_fdcan.c - * @author MCD Application Team - * @brief FDCAN HAL module driver. - * This file provides firmware functions to manage the following - * functionalities of the Flexible DataRate Controller Area Network - * (FDCAN) peripheral: - * + Initialization and de-initialization functions - * + IO operation functions - * + Peripheral Configuration and Control functions - * + Peripheral State and Error functions - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - @verbatim - ============================================================================== - ##### How to use this driver ##### - ============================================================================== - [..] - (#) Initialize the FDCAN peripheral using HAL_FDCAN_Init function. - - (#) If needed , configure the reception filters and optional features using - the following configuration functions: - (++) HAL_FDCAN_ConfigClockCalibration - (++) HAL_FDCAN_ConfigFilter - (++) HAL_FDCAN_ConfigGlobalFilter - (++) HAL_FDCAN_ConfigExtendedIdMask - (++) HAL_FDCAN_ConfigRxFifoOverwrite - (++) HAL_FDCAN_ConfigFifoWatermark - (++) HAL_FDCAN_ConfigRamWatchdog - (++) HAL_FDCAN_ConfigTimestampCounter - (++) HAL_FDCAN_EnableTimestampCounter - (++) HAL_FDCAN_DisableTimestampCounter - (++) HAL_FDCAN_ConfigTimeoutCounter - (++) HAL_FDCAN_EnableTimeoutCounter - (++) HAL_FDCAN_DisableTimeoutCounter - (++) HAL_FDCAN_ConfigTxDelayCompensation - (++) HAL_FDCAN_EnableTxDelayCompensation - (++) HAL_FDCAN_DisableTxDelayCompensation - (++) HAL_FDCAN_EnableISOMode - (++) HAL_FDCAN_DisableISOMode - (++) HAL_FDCAN_EnableEdgeFiltering - (++) HAL_FDCAN_DisableEdgeFiltering - (++) HAL_FDCAN_TT_ConfigOperation - (++) HAL_FDCAN_TT_ConfigReferenceMessage - (++) HAL_FDCAN_TT_ConfigTrigger - - (#) Start the FDCAN module using HAL_FDCAN_Start function. At this level - the node is active on the bus: it can send and receive messages. - - (#) The following Tx control functions can only be called when the FDCAN - module is started: - (++) HAL_FDCAN_AddMessageToTxFifoQ - (++) HAL_FDCAN_EnableTxBufferRequest - (++) HAL_FDCAN_AbortTxRequest - - (#) After having submitted a Tx request in Tx Fifo or Queue, it is possible to - get Tx buffer location used to place the Tx request thanks to - HAL_FDCAN_GetLatestTxFifoQRequestBuffer API. - It is then possible to abort later on the corresponding Tx Request using - HAL_FDCAN_AbortTxRequest API. - - (#) When a message is received into the FDCAN message RAM, it can be - retrieved using the HAL_FDCAN_GetRxMessage function. - - (#) Calling the HAL_FDCAN_Stop function stops the FDCAN module by entering - it to initialization mode and re-enabling access to configuration - registers through the configuration functions listed here above. - - (#) All other control functions can be called any time after initialization - phase, no matter if the FDCAN module is started or stopped. - - *** Polling mode operation *** - ============================== - - [..] - (#) Reception and transmission states can be monitored via the following - functions: - (++) HAL_FDCAN_IsRxBufferMessageAvailable - (++) HAL_FDCAN_IsTxBufferMessagePending - (++) HAL_FDCAN_GetRxFifoFillLevel - (++) HAL_FDCAN_GetTxFifoFreeLevel - - *** Interrupt mode operation *** - ================================ - [..] - (#) There are two interrupt lines: line 0 and 1. - By default, all interrupts are assigned to line 0. Interrupt lines - can be configured using HAL_FDCAN_ConfigInterruptLines function. - - (#) Notifications are activated using HAL_FDCAN_ActivateNotification - function. Then, the process can be controlled through one of the - available user callbacks: HAL_FDCAN_xxxCallback. - - *** Callback registration *** - ============================================= - - The compilation define USE_HAL_FDCAN_REGISTER_CALLBACKS when set to 1 - allows the user to configure dynamically the driver callbacks. - Use Function HAL_FDCAN_RegisterCallback() or HAL_FDCAN_RegisterXXXCallback() - to register an interrupt callback. - - Function HAL_FDCAN_RegisterCallback() allows to register following callbacks: - (+) TxFifoEmptyCallback : Tx Fifo Empty Callback. - (+) RxBufferNewMessageCallback : Rx Buffer New Message Callback. - (+) HighPriorityMessageCallback : High Priority Message Callback. - (+) TimestampWraparoundCallback : Timestamp Wraparound Callback. - (+) TimeoutOccurredCallback : Timeout Occurred Callback. - (+) ErrorCallback : Error Callback. - (+) MspInitCallback : FDCAN MspInit. - (+) MspDeInitCallback : FDCAN MspDeInit. - This function takes as parameters the HAL peripheral handle, the Callback ID - and a pointer to the user callback function. - - For specific callbacks ClockCalibrationCallback, TxEventFifoCallback, RxFifo0Callback, RxFifo1Callback, - TxBufferCompleteCallback, TxBufferAbortCallback, ErrorStatusCallback, TT_ScheduleSyncCallback, TT_TimeMarkCallback, - TT_StopWatchCallback and TT_GlobalTimeCallback, use dedicated register callbacks : - respectively HAL_FDCAN_RegisterClockCalibrationCallback(), HAL_FDCAN_RegisterTxEventFifoCallback(), - HAL_FDCAN_RegisterRxFifo0Callback(), HAL_FDCAN_RegisterRxFifo1Callback(), - HAL_FDCAN_RegisterTxBufferCompleCallback(), HAL_FDCAN_RegisterTxBufferAbortCallback(), - HAL_FDCAN_RegisterErrorStatusCallback(), HAL_FDCAN_TT_RegisterScheduleSyncCallback(), - HAL_FDCAN_TT_RegisterTimeMarkCallback(), HAL_FDCAN_TT_RegisterStopWatchCallback() and - HAL_FDCAN_TT_RegisterGlobalTimeCallback(). - - Use function HAL_FDCAN_UnRegisterCallback() to reset a callback to the default - weak function. - HAL_FDCAN_UnRegisterCallback takes as parameters the HAL peripheral handle, - and the Callback ID. - This function allows to reset following callbacks: - (+) TxFifoEmptyCallback : Tx Fifo Empty Callback. - (+) RxBufferNewMessageCallback : Rx Buffer New Message Callback. - (+) HighPriorityMessageCallback : High Priority Message Callback. - (+) TimestampWraparoundCallback : Timestamp Wraparound Callback. - (+) TimeoutOccurredCallback : Timeout Occurred Callback. - (+) ErrorCallback : Error Callback. - (+) MspInitCallback : FDCAN MspInit. - (+) MspDeInitCallback : FDCAN MspDeInit. - - For specific callbacks ClockCalibrationCallback, TxEventFifoCallback, RxFifo0Callback, - RxFifo1Callback, TxBufferCompleteCallback, TxBufferAbortCallback, TT_ScheduleSyncCallback, - TT_TimeMarkCallback, TT_StopWatchCallback and TT_GlobalTimeCallback, use dedicated - register callbacks : respectively HAL_FDCAN_UnRegisterClockCalibrationCallback(), - HAL_FDCAN_UnRegisterTxEventFifoCallback(), HAL_FDCAN_UnRegisterRxFifo0Callback(), - HAL_FDCAN_UnRegisterRxFifo1Callback(), HAL_FDCAN_UnRegisterTxBufferCompleCallback(), - HAL_FDCAN_UnRegisterTxBufferAbortCallback(), HAL_FDCAN_UnRegisterErrorStatusCallback(), - HAL_FDCAN_TT_UnRegisterScheduleSyncCallback(), HAL_FDCAN_TT_UnRegisterTimeMarkCallback(), - HAL_FDCAN_TT_UnRegisterStopWatchCallback() and HAL_FDCAN_TT_UnRegisterGlobalTimeCallback(). - - By default, after the HAL_FDCAN_Init() and when the state is HAL_FDCAN_STATE_RESET, - all callbacks are set to the corresponding weak functions: - examples HAL_FDCAN_ErrorCallback(). - Exception done for MspInit and MspDeInit functions that are - reset to the legacy weak function in the HAL_FDCAN_Init()/ HAL_FDCAN_DeInit() only when - these callbacks are null (not registered beforehand). - if not, MspInit or MspDeInit are not null, the HAL_FDCAN_Init()/ HAL_FDCAN_DeInit() - keep and use the user MspInit/MspDeInit callbacks (registered beforehand) - - Callbacks can be registered/unregistered in HAL_FDCAN_STATE_READY state only. - Exception done MspInit/MspDeInit that can be registered/unregistered - in HAL_FDCAN_STATE_READY or HAL_FDCAN_STATE_RESET state, - thus registered (user) MspInit/DeInit callbacks can be used during the Init/DeInit. - In that case first register the MspInit/MspDeInit user callbacks - using HAL_FDCAN_RegisterCallback() before calling HAL_FDCAN_DeInit() - or HAL_FDCAN_Init() function. - - When The compilation define USE_HAL_FDCAN_REGISTER_CALLBACKS is set to 0 or - not defined, the callback registration feature is not available and all callbacks - are set to the corresponding weak functions. - - @endverbatim - ****************************************************************************** - */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" - -#if defined(FDCAN1) - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @defgroup FDCAN FDCAN - * @brief FDCAN HAL module driver - * @{ - */ - -#ifdef HAL_FDCAN_MODULE_ENABLED - -/* Private typedef -----------------------------------------------------------*/ -/* Private define ------------------------------------------------------------*/ -/** @addtogroup FDCAN_Private_Constants - * @{ - */ -#define FDCAN_TIMEOUT_VALUE 10U -#define FDCAN_TIMEOUT_COUNT 50U - -#define FDCAN_TX_EVENT_FIFO_MASK (FDCAN_IR_TEFL | FDCAN_IR_TEFF | FDCAN_IR_TEFW | FDCAN_IR_TEFN) -#define FDCAN_RX_FIFO0_MASK (FDCAN_IR_RF0L | FDCAN_IR_RF0F | FDCAN_IR_RF0W | FDCAN_IR_RF0N) -#define FDCAN_RX_FIFO1_MASK (FDCAN_IR_RF1L | FDCAN_IR_RF1F | FDCAN_IR_RF1W | FDCAN_IR_RF1N) -#define FDCAN_ERROR_MASK (FDCAN_IR_ELO | FDCAN_IR_WDI | FDCAN_IR_PEA | FDCAN_IR_PED | FDCAN_IR_ARA) -#define FDCAN_ERROR_STATUS_MASK (FDCAN_IR_EP | FDCAN_IR_EW | FDCAN_IR_BO) -#define FDCAN_TT_SCHEDULE_SYNC_MASK (FDCAN_TTIR_SBC | FDCAN_TTIR_SMC | FDCAN_TTIR_CSM | FDCAN_TTIR_SOG) -#define FDCAN_TT_TIME_MARK_MASK (FDCAN_TTIR_RTMI | FDCAN_TTIR_TTMI) -#define FDCAN_TT_GLOBAL_TIME_MASK (FDCAN_TTIR_GTW | FDCAN_TTIR_GTD) -#define FDCAN_TT_DISTURBING_ERROR_MASK (FDCAN_TTIR_GTE | FDCAN_TTIR_TXU | FDCAN_TTIR_TXO | \ - FDCAN_TTIR_SE1 | FDCAN_TTIR_SE2 | FDCAN_TTIR_ELC) -#define FDCAN_TT_FATAL_ERROR_MASK (FDCAN_TTIR_IWT | FDCAN_TTIR_WT | FDCAN_TTIR_AW | FDCAN_TTIR_CER) - -#define FDCAN_ELEMENT_MASK_STDID ((uint32_t)0x1FFC0000U) /* Standard Identifier */ -#define FDCAN_ELEMENT_MASK_EXTID ((uint32_t)0x1FFFFFFFU) /* Extended Identifier */ -#define FDCAN_ELEMENT_MASK_RTR ((uint32_t)0x20000000U) /* Remote Transmission Request */ -#define FDCAN_ELEMENT_MASK_XTD ((uint32_t)0x40000000U) /* Extended Identifier */ -#define FDCAN_ELEMENT_MASK_ESI ((uint32_t)0x80000000U) /* Error State Indicator */ -#define FDCAN_ELEMENT_MASK_TS ((uint32_t)0x0000FFFFU) /* Timestamp */ -#define FDCAN_ELEMENT_MASK_DLC ((uint32_t)0x000F0000U) /* Data Length Code */ -#define FDCAN_ELEMENT_MASK_BRS ((uint32_t)0x00100000U) /* Bit Rate Switch */ -#define FDCAN_ELEMENT_MASK_FDF ((uint32_t)0x00200000U) /* FD Format */ -#define FDCAN_ELEMENT_MASK_EFC ((uint32_t)0x00800000U) /* Event FIFO Control */ -#define FDCAN_ELEMENT_MASK_MM ((uint32_t)0xFF000000U) /* Message Marker */ -#define FDCAN_ELEMENT_MASK_FIDX ((uint32_t)0x7F000000U) /* Filter Index */ -#define FDCAN_ELEMENT_MASK_ANMF ((uint32_t)0x80000000U) /* Accepted Non-matching Frame */ -#define FDCAN_ELEMENT_MASK_ET ((uint32_t)0x00C00000U) /* Event type */ - -#define FDCAN_MESSAGE_RAM_SIZE 0x2800U -#define FDCAN_MESSAGE_RAM_END_ADDRESS (SRAMCAN_BASE + FDCAN_MESSAGE_RAM_SIZE - 0x4U) /* The Message RAM has a width of 4 Bytes */ - -/** - * @} - */ - -/* Private macro -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -static const uint8_t DLCtoBytes[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 12, 16, 20, 24, 32, 48, 64}; - -/* Private function prototypes -----------------------------------------------*/ -/** @addtogroup FDCAN_Private_Functions_Prototypes - * @{ - */ -static HAL_StatusTypeDef FDCAN_CalcultateRamBlockAddresses(FDCAN_HandleTypeDef *hfdcan); -static void FDCAN_CopyMessageToRAM(FDCAN_HandleTypeDef *hfdcan, FDCAN_TxHeaderTypeDef *pTxHeader, uint8_t *pTxData, uint32_t BufferIndex); -/** - * @} - */ - -/* Exported functions --------------------------------------------------------*/ -/** @defgroup FDCAN_Exported_Functions FDCAN Exported Functions - * @{ - */ - -/** @defgroup FDCAN_Exported_Functions_Group1 Initialization and de-initialization functions - * @brief Initialization and Configuration functions - * -@verbatim - ============================================================================== - ##### Initialization and de-initialization functions ##### - ============================================================================== - [..] This section provides functions allowing to: - (+) Initialize and configure the FDCAN. - (+) De-initialize the FDCAN. - (+) Enter FDCAN peripheral in power down mode. - (+) Exit power down mode. - (+) Register callbacks. - (+) Unregister callbacks. - -@endverbatim - * @{ - */ - -/** - * @brief Initializes the FDCAN peripheral according to the specified - * parameters in the FDCAN_InitTypeDef structure. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_Init(FDCAN_HandleTypeDef *hfdcan) -{ - uint32_t tickstart; - HAL_StatusTypeDef status; - const uint32_t CvtEltSize[] = {0, 0, 0, 0, 0, 1, 2, 3, 4, 0, 5, 0, 0, 0, 6, 0, 0, 0, 7}; - - /* Check FDCAN handle */ - if (hfdcan == NULL) - { - return HAL_ERROR; - } - - /* Check FDCAN instance */ - if (hfdcan->Instance == FDCAN1) - { - hfdcan->ttcan = (TTCAN_TypeDef *)((uint32_t)hfdcan->Instance + 0x100U); - } - - /* Check function parameters */ - assert_param(IS_FDCAN_ALL_INSTANCE(hfdcan->Instance)); - assert_param(IS_FDCAN_FRAME_FORMAT(hfdcan->Init.FrameFormat)); - assert_param(IS_FDCAN_MODE(hfdcan->Init.Mode)); - assert_param(IS_FUNCTIONAL_STATE(hfdcan->Init.AutoRetransmission)); - assert_param(IS_FUNCTIONAL_STATE(hfdcan->Init.TransmitPause)); - assert_param(IS_FUNCTIONAL_STATE(hfdcan->Init.ProtocolException)); - assert_param(IS_FDCAN_NOMINAL_PRESCALER(hfdcan->Init.NominalPrescaler)); - assert_param(IS_FDCAN_NOMINAL_SJW(hfdcan->Init.NominalSyncJumpWidth)); - assert_param(IS_FDCAN_NOMINAL_TSEG1(hfdcan->Init.NominalTimeSeg1)); - assert_param(IS_FDCAN_NOMINAL_TSEG2(hfdcan->Init.NominalTimeSeg2)); - if (hfdcan->Init.FrameFormat == FDCAN_FRAME_FD_BRS) - { - assert_param(IS_FDCAN_DATA_PRESCALER(hfdcan->Init.DataPrescaler)); - assert_param(IS_FDCAN_DATA_SJW(hfdcan->Init.DataSyncJumpWidth)); - assert_param(IS_FDCAN_DATA_TSEG1(hfdcan->Init.DataTimeSeg1)); - assert_param(IS_FDCAN_DATA_TSEG2(hfdcan->Init.DataTimeSeg2)); - } - assert_param(IS_FDCAN_MAX_VALUE(hfdcan->Init.StdFiltersNbr, 128U)); - assert_param(IS_FDCAN_MAX_VALUE(hfdcan->Init.ExtFiltersNbr, 64U)); - assert_param(IS_FDCAN_MAX_VALUE(hfdcan->Init.RxFifo0ElmtsNbr, 64U)); - if (hfdcan->Init.RxFifo0ElmtsNbr > 0U) - { - assert_param(IS_FDCAN_DATA_SIZE(hfdcan->Init.RxFifo0ElmtSize)); - } - assert_param(IS_FDCAN_MAX_VALUE(hfdcan->Init.RxFifo1ElmtsNbr, 64U)); - if (hfdcan->Init.RxFifo1ElmtsNbr > 0U) - { - assert_param(IS_FDCAN_DATA_SIZE(hfdcan->Init.RxFifo1ElmtSize)); - } - assert_param(IS_FDCAN_MAX_VALUE(hfdcan->Init.RxBuffersNbr, 64U)); - if (hfdcan->Init.RxBuffersNbr > 0U) - { - assert_param(IS_FDCAN_DATA_SIZE(hfdcan->Init.RxBufferSize)); - } - assert_param(IS_FDCAN_MAX_VALUE(hfdcan->Init.TxEventsNbr, 32U)); - assert_param(IS_FDCAN_MAX_VALUE((hfdcan->Init.TxBuffersNbr + hfdcan->Init.TxFifoQueueElmtsNbr), 32U)); - if (hfdcan->Init.TxFifoQueueElmtsNbr > 0U) - { - assert_param(IS_FDCAN_TX_FIFO_QUEUE_MODE(hfdcan->Init.TxFifoQueueMode)); - } - if ((hfdcan->Init.TxBuffersNbr + hfdcan->Init.TxFifoQueueElmtsNbr) > 0U) - { - assert_param(IS_FDCAN_DATA_SIZE(hfdcan->Init.TxElmtSize)); - } - -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - if (hfdcan->State == HAL_FDCAN_STATE_RESET) - { - /* Allocate lock resource and initialize it */ - hfdcan->Lock = HAL_UNLOCKED; - - /* Reset callbacks to legacy functions */ - hfdcan->ClockCalibrationCallback = HAL_FDCAN_ClockCalibrationCallback; /* Legacy weak ClockCalibrationCallback */ - hfdcan->TxEventFifoCallback = HAL_FDCAN_TxEventFifoCallback; /* Legacy weak TxEventFifoCallback */ - hfdcan->RxFifo0Callback = HAL_FDCAN_RxFifo0Callback; /* Legacy weak RxFifo0Callback */ - hfdcan->RxFifo1Callback = HAL_FDCAN_RxFifo1Callback; /* Legacy weak RxFifo1Callback */ - hfdcan->TxFifoEmptyCallback = HAL_FDCAN_TxFifoEmptyCallback; /* Legacy weak TxFifoEmptyCallback */ - hfdcan->TxBufferCompleteCallback = HAL_FDCAN_TxBufferCompleteCallback; /* Legacy weak TxBufferCompleteCallback */ - hfdcan->TxBufferAbortCallback = HAL_FDCAN_TxBufferAbortCallback; /* Legacy weak TxBufferAbortCallback */ - hfdcan->RxBufferNewMessageCallback = HAL_FDCAN_RxBufferNewMessageCallback; /* Legacy weak RxBufferNewMessageCallback */ - hfdcan->HighPriorityMessageCallback = HAL_FDCAN_HighPriorityMessageCallback; /* Legacy weak HighPriorityMessageCallback */ - hfdcan->TimestampWraparoundCallback = HAL_FDCAN_TimestampWraparoundCallback; /* Legacy weak TimestampWraparoundCallback */ - hfdcan->TimeoutOccurredCallback = HAL_FDCAN_TimeoutOccurredCallback; /* Legacy weak TimeoutOccurredCallback */ - hfdcan->ErrorCallback = HAL_FDCAN_ErrorCallback; /* Legacy weak ErrorCallback */ - hfdcan->ErrorStatusCallback = HAL_FDCAN_ErrorStatusCallback; /* Legacy weak ErrorStatusCallback */ - hfdcan->TT_ScheduleSyncCallback = HAL_FDCAN_TT_ScheduleSyncCallback; /* Legacy weak TT_ScheduleSyncCallback */ - hfdcan->TT_TimeMarkCallback = HAL_FDCAN_TT_TimeMarkCallback; /* Legacy weak TT_TimeMarkCallback */ - hfdcan->TT_StopWatchCallback = HAL_FDCAN_TT_StopWatchCallback; /* Legacy weak TT_StopWatchCallback */ - hfdcan->TT_GlobalTimeCallback = HAL_FDCAN_TT_GlobalTimeCallback; /* Legacy weak TT_GlobalTimeCallback */ - - if (hfdcan->MspInitCallback == NULL) - { - hfdcan->MspInitCallback = HAL_FDCAN_MspInit; /* Legacy weak MspInit */ - } - - /* Init the low level hardware: CLOCK, NVIC */ - hfdcan->MspInitCallback(hfdcan); - } -#else - if (hfdcan->State == HAL_FDCAN_STATE_RESET) - { - /* Allocate lock resource and initialize it */ - hfdcan->Lock = HAL_UNLOCKED; - - /* Init the low level hardware: CLOCK, NVIC */ - HAL_FDCAN_MspInit(hfdcan); - } -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - - /* Exit from Sleep mode */ - CLEAR_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_CSR); - - /* Get tick */ - tickstart = HAL_GetTick(); - - /* Check Sleep mode acknowledge */ - while ((hfdcan->Instance->CCCR & FDCAN_CCCR_CSA) == FDCAN_CCCR_CSA) - { - if ((HAL_GetTick() - tickstart) > FDCAN_TIMEOUT_VALUE) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_TIMEOUT; - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - - return HAL_ERROR; - } - } - - /* Request initialisation */ - SET_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_INIT); - - /* Get tick */ - tickstart = HAL_GetTick(); - - /* Wait until the INIT bit into CCCR register is set */ - while ((hfdcan->Instance->CCCR & FDCAN_CCCR_INIT) == 0U) - { - /* Check for the Timeout */ - if ((HAL_GetTick() - tickstart) > FDCAN_TIMEOUT_VALUE) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_TIMEOUT; - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - - return HAL_ERROR; - } - } - - /* Enable configuration change */ - SET_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_CCE); - - /* Set the no automatic retransmission */ - if (hfdcan->Init.AutoRetransmission == ENABLE) - { - CLEAR_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_DAR); - } - else - { - SET_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_DAR); - } - - /* Set the transmit pause feature */ - if (hfdcan->Init.TransmitPause == ENABLE) - { - SET_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_TXP); - } - else - { - CLEAR_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_TXP); - } - - /* Set the Protocol Exception Handling */ - if (hfdcan->Init.ProtocolException == ENABLE) - { - CLEAR_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_PXHD); - } - else - { - SET_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_PXHD); - } - - /* Set FDCAN Frame Format */ - MODIFY_REG(hfdcan->Instance->CCCR, FDCAN_FRAME_FD_BRS, hfdcan->Init.FrameFormat); - - /* Reset FDCAN Operation Mode */ - CLEAR_BIT(hfdcan->Instance->CCCR, (FDCAN_CCCR_TEST | FDCAN_CCCR_MON | FDCAN_CCCR_ASM)); - CLEAR_BIT(hfdcan->Instance->TEST, FDCAN_TEST_LBCK); - - /* Set FDCAN Operating Mode: - | Normal | Restricted | Bus | Internal | External - | | Operation | Monitoring | LoopBack | LoopBack - CCCR.TEST | 0 | 0 | 0 | 1 | 1 - CCCR.MON | 0 | 0 | 1 | 1 | 0 - TEST.LBCK | 0 | 0 | 0 | 1 | 1 - CCCR.ASM | 0 | 1 | 0 | 0 | 0 - */ - if (hfdcan->Init.Mode == FDCAN_MODE_RESTRICTED_OPERATION) - { - /* Enable Restricted Operation mode */ - SET_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_ASM); - } - else if (hfdcan->Init.Mode != FDCAN_MODE_NORMAL) - { - if (hfdcan->Init.Mode != FDCAN_MODE_BUS_MONITORING) - { - /* Enable write access to TEST register */ - SET_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_TEST); - - /* Enable LoopBack mode */ - SET_BIT(hfdcan->Instance->TEST, FDCAN_TEST_LBCK); - - if (hfdcan->Init.Mode == FDCAN_MODE_INTERNAL_LOOPBACK) - { - SET_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_MON); - } - } - else - { - /* Enable bus monitoring mode */ - SET_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_MON); - } - } - else - { - /* Nothing to do: normal mode */ - } - - /* Set the nominal bit timing register */ - hfdcan->Instance->NBTP = ((((uint32_t)hfdcan->Init.NominalSyncJumpWidth - 1U) << FDCAN_NBTP_NSJW_Pos) | \ - (((uint32_t)hfdcan->Init.NominalTimeSeg1 - 1U) << FDCAN_NBTP_NTSEG1_Pos) | \ - (((uint32_t)hfdcan->Init.NominalTimeSeg2 - 1U) << FDCAN_NBTP_NTSEG2_Pos) | \ - (((uint32_t)hfdcan->Init.NominalPrescaler - 1U) << FDCAN_NBTP_NBRP_Pos)); - - /* If FD operation with BRS is selected, set the data bit timing register */ - if (hfdcan->Init.FrameFormat == FDCAN_FRAME_FD_BRS) - { - hfdcan->Instance->DBTP = ((((uint32_t)hfdcan->Init.DataSyncJumpWidth - 1U) << FDCAN_DBTP_DSJW_Pos) | \ - (((uint32_t)hfdcan->Init.DataTimeSeg1 - 1U) << FDCAN_DBTP_DTSEG1_Pos) | \ - (((uint32_t)hfdcan->Init.DataTimeSeg2 - 1U) << FDCAN_DBTP_DTSEG2_Pos) | \ - (((uint32_t)hfdcan->Init.DataPrescaler - 1U) << FDCAN_DBTP_DBRP_Pos)); - } - - if (hfdcan->Init.TxFifoQueueElmtsNbr > 0U) - { - /* Select between Tx FIFO and Tx Queue operation modes */ - SET_BIT(hfdcan->Instance->TXBC, hfdcan->Init.TxFifoQueueMode); - } - - /* Configure Tx element size */ - if ((hfdcan->Init.TxBuffersNbr + hfdcan->Init.TxFifoQueueElmtsNbr) > 0U) - { - MODIFY_REG(hfdcan->Instance->TXESC, FDCAN_TXESC_TBDS, CvtEltSize[hfdcan->Init.TxElmtSize]); - } - - /* Configure Rx FIFO 0 element size */ - if (hfdcan->Init.RxFifo0ElmtsNbr > 0U) - { - MODIFY_REG(hfdcan->Instance->RXESC, FDCAN_RXESC_F0DS, (CvtEltSize[hfdcan->Init.RxFifo0ElmtSize] << FDCAN_RXESC_F0DS_Pos)); - } - - /* Configure Rx FIFO 1 element size */ - if (hfdcan->Init.RxFifo1ElmtsNbr > 0U) - { - MODIFY_REG(hfdcan->Instance->RXESC, FDCAN_RXESC_F1DS, (CvtEltSize[hfdcan->Init.RxFifo1ElmtSize] << FDCAN_RXESC_F1DS_Pos)); - } - - /* Configure Rx buffer element size */ - if (hfdcan->Init.RxBuffersNbr > 0U) - { - MODIFY_REG(hfdcan->Instance->RXESC, FDCAN_RXESC_RBDS, (CvtEltSize[hfdcan->Init.RxBufferSize] << FDCAN_RXESC_RBDS_Pos)); - } - - /* By default operation mode is set to Event-driven communication. - If Time-triggered communication is needed, user should call the - HAL_FDCAN_TT_ConfigOperation function just after the HAL_FDCAN_Init */ - if (hfdcan->Instance == FDCAN1) - { - CLEAR_BIT(hfdcan->ttcan->TTOCF, FDCAN_TTOCF_OM); - } - - /* Initialize the Latest Tx FIFO/Queue request buffer index */ - hfdcan->LatestTxFifoQRequest = 0U; - - /* Initialize the error code */ - hfdcan->ErrorCode = HAL_FDCAN_ERROR_NONE; - - /* Initialize the FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_READY; - - /* Calculate each RAM block address */ - status = FDCAN_CalcultateRamBlockAddresses(hfdcan); - - /* Return function status */ - return status; -} - -/** - * @brief Deinitializes the FDCAN peripheral registers to their default reset values. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_DeInit(FDCAN_HandleTypeDef *hfdcan) -{ - /* Check FDCAN handle */ - if (hfdcan == NULL) - { - return HAL_ERROR; - } - - /* Check function parameters */ - assert_param(IS_FDCAN_ALL_INSTANCE(hfdcan->Instance)); - - /* Stop the FDCAN module: return value is voluntary ignored */ - (void)HAL_FDCAN_Stop(hfdcan); - - /* Disable Interrupt lines */ - CLEAR_BIT(hfdcan->Instance->ILE, (FDCAN_INTERRUPT_LINE0 | FDCAN_INTERRUPT_LINE1)); - -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - if (hfdcan->MspDeInitCallback == NULL) - { - hfdcan->MspDeInitCallback = HAL_FDCAN_MspDeInit; /* Legacy weak MspDeInit */ - } - - /* DeInit the low level hardware: CLOCK, NVIC */ - hfdcan->MspDeInitCallback(hfdcan); -#else - /* DeInit the low level hardware: CLOCK, NVIC */ - HAL_FDCAN_MspDeInit(hfdcan); -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - - /* Reset the FDCAN ErrorCode */ - hfdcan->ErrorCode = HAL_FDCAN_ERROR_NONE; - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_RESET; - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Initializes the FDCAN MSP. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval None - */ -__weak void HAL_FDCAN_MspInit(FDCAN_HandleTypeDef *hfdcan) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hfdcan); - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_MspInit could be implemented in the user file - */ -} - -/** - * @brief DeInitializes the FDCAN MSP. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval None - */ -__weak void HAL_FDCAN_MspDeInit(FDCAN_HandleTypeDef *hfdcan) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hfdcan); - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_MspDeInit could be implemented in the user file - */ -} - -/** - * @brief Enter FDCAN peripheral in sleep mode. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_EnterPowerDownMode(FDCAN_HandleTypeDef *hfdcan) -{ - uint32_t tickstart; - - /* Request clock stop */ - SET_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_CSR); - - /* Get tick */ - tickstart = HAL_GetTick(); - - /* Wait until FDCAN is ready for power down */ - while ((hfdcan->Instance->CCCR & FDCAN_CCCR_CSA) == 0U) - { - if ((HAL_GetTick() - tickstart) > FDCAN_TIMEOUT_VALUE) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_TIMEOUT; - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - - return HAL_ERROR; - } - } - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Exit power down mode. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_ExitPowerDownMode(FDCAN_HandleTypeDef *hfdcan) -{ - uint32_t tickstart; - - /* Reset clock stop request */ - CLEAR_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_CSR); - - /* Get tick */ - tickstart = HAL_GetTick(); - - /* Wait until FDCAN exits sleep mode */ - while ((hfdcan->Instance->CCCR & FDCAN_CCCR_CSA) == FDCAN_CCCR_CSA) - { - if ((HAL_GetTick() - tickstart) > FDCAN_TIMEOUT_VALUE) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_TIMEOUT; - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - - return HAL_ERROR; - } - } - - /* Enter normal operation */ - CLEAR_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_INIT); - - /* Return function status */ - return HAL_OK; -} - -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 -/** - * @brief Register a FDCAN CallBack. - * To be used instead of the weak predefined callback - * @param hfdcan pointer to a FDCAN_HandleTypeDef structure that contains - * the configuration information for FDCAN module - * @param CallbackID ID of the callback to be registered - * This parameter can be one of the following values: - * @arg @ref HAL_FDCAN_TX_FIFO_EMPTY_CB_ID Tx Fifo Empty callback ID - * @arg @ref HAL_FDCAN_RX_BUFFER_NEW_MSG_CB_ID Rx buffer new message callback ID - * @arg @ref HAL_FDCAN_HIGH_PRIO_MESSAGE_CB_ID High priority message callback ID - * @arg @ref HAL_FDCAN_TIMESTAMP_WRAPAROUND_CB_ID Timestamp wraparound callback ID - * @arg @ref HAL_FDCAN_TIMEOUT_OCCURRED_CB_ID Timeout occurred callback ID - * @arg @ref HAL_FDCAN_ERROR_CALLBACK_CB_ID Error callback ID - * @arg @ref HAL_FDCAN_MSPINIT_CB_ID MspInit callback ID - * @arg @ref HAL_FDCAN_MSPDEINIT_CB_ID MspDeInit callback ID - * @param pCallback pointer to the Callback function - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_RegisterCallback(FDCAN_HandleTypeDef *hfdcan, HAL_FDCAN_CallbackIDTypeDef CallbackID, void (* pCallback)(FDCAN_HandleTypeDef *_hFDCAN)) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (pCallback == NULL) - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - return HAL_ERROR; - } - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - switch (CallbackID) - { - case HAL_FDCAN_TX_FIFO_EMPTY_CB_ID : - hfdcan->TxFifoEmptyCallback = pCallback; - break; - - case HAL_FDCAN_RX_BUFFER_NEW_MSG_CB_ID : - hfdcan->RxBufferNewMessageCallback = pCallback; - break; - - case HAL_FDCAN_HIGH_PRIO_MESSAGE_CB_ID : - hfdcan->HighPriorityMessageCallback = pCallback; - break; - - case HAL_FDCAN_TIMESTAMP_WRAPAROUND_CB_ID : - hfdcan->TimestampWraparoundCallback = pCallback; - break; - - case HAL_FDCAN_TIMEOUT_OCCURRED_CB_ID : - hfdcan->TimeoutOccurredCallback = pCallback; - break; - - case HAL_FDCAN_ERROR_CALLBACK_CB_ID : - hfdcan->ErrorCallback = pCallback; - break; - - case HAL_FDCAN_MSPINIT_CB_ID : - hfdcan->MspInitCallback = pCallback; - break; - - case HAL_FDCAN_MSPDEINIT_CB_ID : - hfdcan->MspDeInitCallback = pCallback; - break; - - default : - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - break; - } - } - else if (hfdcan->State == HAL_FDCAN_STATE_RESET) - { - switch (CallbackID) - { - case HAL_FDCAN_MSPINIT_CB_ID : - hfdcan->MspInitCallback = pCallback; - break; - - case HAL_FDCAN_MSPDEINIT_CB_ID : - hfdcan->MspDeInitCallback = pCallback; - break; - - default : - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - break; - } - } - else - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief Unregister a FDCAN CallBack. - * FDCAN callback is redirected to the weak predefined callback - * @param hfdcan pointer to a FDCAN_HandleTypeDef structure that contains - * the configuration information for FDCAN module - * @param CallbackID ID of the callback to be unregistered - * This parameter can be one of the following values: - * @arg @ref HAL_FDCAN_TX_FIFO_EMPTY_CB_ID Tx Fifo Empty callback ID - * @arg @ref HAL_FDCAN_RX_BUFFER_NEW_MSG_CB_ID Rx buffer new message callback ID - * @arg @ref HAL_FDCAN_HIGH_PRIO_MESSAGE_CB_ID High priority message callback ID - * @arg @ref HAL_FDCAN_TIMESTAMP_WRAPAROUND_CB_ID Timestamp wraparound callback ID - * @arg @ref HAL_FDCAN_TIMEOUT_OCCURRED_CB_ID Timeout occurred callback ID - * @arg @ref HAL_FDCAN_ERROR_CALLBACK_CB_ID Error callback ID - * @arg @ref HAL_FDCAN_MSPINIT_CB_ID MspInit callback ID - * @arg @ref HAL_FDCAN_MSPDEINIT_CB_ID MspDeInit callback ID - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_UnRegisterCallback(FDCAN_HandleTypeDef *hfdcan, HAL_FDCAN_CallbackIDTypeDef CallbackID) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - switch (CallbackID) - { - case HAL_FDCAN_TX_FIFO_EMPTY_CB_ID : - hfdcan->TxFifoEmptyCallback = HAL_FDCAN_TxFifoEmptyCallback; - break; - - case HAL_FDCAN_RX_BUFFER_NEW_MSG_CB_ID : - hfdcan->RxBufferNewMessageCallback = HAL_FDCAN_RxBufferNewMessageCallback; - break; - - case HAL_FDCAN_HIGH_PRIO_MESSAGE_CB_ID : - hfdcan->HighPriorityMessageCallback = HAL_FDCAN_HighPriorityMessageCallback; - break; - - case HAL_FDCAN_TIMESTAMP_WRAPAROUND_CB_ID : - hfdcan->TimestampWraparoundCallback = HAL_FDCAN_TimestampWraparoundCallback; - break; - - case HAL_FDCAN_TIMEOUT_OCCURRED_CB_ID : - hfdcan->TimeoutOccurredCallback = HAL_FDCAN_TimeoutOccurredCallback; - break; - - case HAL_FDCAN_ERROR_CALLBACK_CB_ID : - hfdcan->ErrorCallback = HAL_FDCAN_ErrorCallback; - break; - - case HAL_FDCAN_MSPINIT_CB_ID : - hfdcan->MspInitCallback = HAL_FDCAN_MspInit; - break; - - case HAL_FDCAN_MSPDEINIT_CB_ID : - hfdcan->MspDeInitCallback = HAL_FDCAN_MspDeInit; - break; - - default : - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - break; - } - } - else if (hfdcan->State == HAL_FDCAN_STATE_RESET) - { - switch (CallbackID) - { - case HAL_FDCAN_MSPINIT_CB_ID : - hfdcan->MspInitCallback = HAL_FDCAN_MspInit; - break; - - case HAL_FDCAN_MSPDEINIT_CB_ID : - hfdcan->MspDeInitCallback = HAL_FDCAN_MspDeInit; - break; - - default : - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - break; - } - } - else - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief Register Clock Calibration FDCAN Callback - * To be used instead of the weak HAL_FDCAN_ClockCalibrationCallback() predefined callback - * @param hfdcan FDCAN handle - * @param pCallback pointer to the Clock Calibration Callback function - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_RegisterClockCalibrationCallback(FDCAN_HandleTypeDef *hfdcan, pFDCAN_ClockCalibrationCallbackTypeDef pCallback) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (pCallback == NULL) - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - return HAL_ERROR; - } - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - hfdcan->ClockCalibrationCallback = pCallback; - } - else - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief UnRegister the Clock Calibration FDCAN Callback - * Clock Calibration FDCAN Callback is redirected to the weak HAL_FDCAN_ClockCalibrationCallback() predefined callback - * @param hfdcan FDCAN handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_UnRegisterClockCalibrationCallback(FDCAN_HandleTypeDef *hfdcan) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - hfdcan->ClockCalibrationCallback = HAL_FDCAN_ClockCalibrationCallback; /* Legacy weak ClockCalibrationCallback */ - } - else - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief Register Tx Event Fifo FDCAN Callback - * To be used instead of the weak HAL_FDCAN_TxEventFifoCallback() predefined callback - * @param hfdcan FDCAN handle - * @param pCallback pointer to the Tx Event Fifo Callback function - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_RegisterTxEventFifoCallback(FDCAN_HandleTypeDef *hfdcan, pFDCAN_TxEventFifoCallbackTypeDef pCallback) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (pCallback == NULL) - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - return HAL_ERROR; - } - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - hfdcan->TxEventFifoCallback = pCallback; - } - else - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief UnRegister the Tx Event Fifo FDCAN Callback - * Tx Event Fifo FDCAN Callback is redirected to the weak HAL_FDCAN_TxEventFifoCallback() predefined callback - * @param hfdcan FDCAN handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_UnRegisterTxEventFifoCallback(FDCAN_HandleTypeDef *hfdcan) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - hfdcan->TxEventFifoCallback = HAL_FDCAN_TxEventFifoCallback; /* Legacy weak TxEventFifoCallback */ - } - else - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief Register Rx Fifo 0 FDCAN Callback - * To be used instead of the weak HAL_FDCAN_RxFifo0Callback() predefined callback - * @param hfdcan FDCAN handle - * @param pCallback pointer to the Rx Fifo 0 Callback function - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_RegisterRxFifo0Callback(FDCAN_HandleTypeDef *hfdcan, pFDCAN_RxFifo0CallbackTypeDef pCallback) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (pCallback == NULL) - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - return HAL_ERROR; - } - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - hfdcan->RxFifo0Callback = pCallback; - } - else - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief UnRegister the Rx Fifo 0 FDCAN Callback - * Rx Fifo 0 FDCAN Callback is redirected to the weak HAL_FDCAN_RxFifo0Callback() predefined callback - * @param hfdcan FDCAN handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_UnRegisterRxFifo0Callback(FDCAN_HandleTypeDef *hfdcan) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - hfdcan->RxFifo0Callback = HAL_FDCAN_RxFifo0Callback; /* Legacy weak RxFifo0Callback */ - } - else - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief Register Rx Fifo 1 FDCAN Callback - * To be used instead of the weak HAL_FDCAN_RxFifo1Callback() predefined callback - * @param hfdcan FDCAN handle - * @param pCallback pointer to the Rx Fifo 1 Callback function - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_RegisterRxFifo1Callback(FDCAN_HandleTypeDef *hfdcan, pFDCAN_RxFifo1CallbackTypeDef pCallback) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (pCallback == NULL) - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - return HAL_ERROR; - } - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - hfdcan->RxFifo1Callback = pCallback; - } - else - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief UnRegister the Rx Fifo 1 FDCAN Callback - * Rx Fifo 1 FDCAN Callback is redirected to the weak HAL_FDCAN_RxFifo1Callback() predefined callback - * @param hfdcan FDCAN handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_UnRegisterRxFifo1Callback(FDCAN_HandleTypeDef *hfdcan) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - hfdcan->RxFifo1Callback = HAL_FDCAN_RxFifo1Callback; /* Legacy weak RxFifo1Callback */ - } - else - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief Register Tx Buffer Complete FDCAN Callback - * To be used instead of the weak HAL_FDCAN_TxBufferCompleteCallback() predefined callback - * @param hfdcan FDCAN handle - * @param pCallback pointer to the Tx Buffer Complete Callback function - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_RegisterTxBufferCompleteCallback(FDCAN_HandleTypeDef *hfdcan, pFDCAN_TxBufferCompleteCallbackTypeDef pCallback) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (pCallback == NULL) - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - return HAL_ERROR; - } - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - hfdcan->TxBufferCompleteCallback = pCallback; - } - else - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief UnRegister the Tx Buffer Complete FDCAN Callback - * Tx Buffer Complete FDCAN Callback is redirected to the weak HAL_FDCAN_TxBufferCompleteCallback() predefined callback - * @param hfdcan FDCAN handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_UnRegisterTxBufferCompleteCallback(FDCAN_HandleTypeDef *hfdcan) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - hfdcan->TxBufferCompleteCallback = HAL_FDCAN_TxBufferCompleteCallback; /* Legacy weak TxBufferCompleteCallback */ - } - else - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief Register Tx Buffer Abort FDCAN Callback - * To be used instead of the weak HAL_FDCAN_TxBufferAbortCallback() predefined callback - * @param hfdcan FDCAN handle - * @param pCallback pointer to the Tx Buffer Abort Callback function - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_RegisterTxBufferAbortCallback(FDCAN_HandleTypeDef *hfdcan, pFDCAN_TxBufferAbortCallbackTypeDef pCallback) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (pCallback == NULL) - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - return HAL_ERROR; - } - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - hfdcan->TxBufferAbortCallback = pCallback; - } - else - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief UnRegister the Tx Buffer Abort FDCAN Callback - * Tx Buffer Abort FDCAN Callback is redirected to the weak HAL_FDCAN_TxBufferAbortCallback() predefined callback - * @param hfdcan FDCAN handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_UnRegisterTxBufferAbortCallback(FDCAN_HandleTypeDef *hfdcan) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - hfdcan->TxBufferAbortCallback = HAL_FDCAN_TxBufferAbortCallback; /* Legacy weak TxBufferAbortCallback */ - } - else - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief Register Error Status FDCAN Callback - * To be used instead of the weak HAL_FDCAN_ErrorStatusCallback() predefined callback - * @param hfdcan FDCAN handle - * @param pCallback pointer to the Error Status Callback function - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_RegisterErrorStatusCallback(FDCAN_HandleTypeDef *hfdcan, pFDCAN_ErrorStatusCallbackTypeDef pCallback) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (pCallback == NULL) - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - return HAL_ERROR; - } - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - hfdcan->ErrorStatusCallback = pCallback; - } - else - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief UnRegister the Error Status FDCAN Callback - * Error Status FDCAN Callback is redirected to the weak HAL_FDCAN_ErrorStatusCallback() predefined callback - * @param hfdcan FDCAN handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_UnRegisterErrorStatusCallback(FDCAN_HandleTypeDef *hfdcan) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - hfdcan->ErrorStatusCallback = HAL_FDCAN_ErrorStatusCallback; /* Legacy weak ErrorStatusCallback */ - } - else - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief Register TT Schedule Synchronization FDCAN Callback - * To be used instead of the weak HAL_FDCAN_TT_ScheduleSyncCallback() predefined callback - * @param hfdcan FDCAN handle - * @param pCallback pointer to the TT Schedule Synchronization Callback function - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_RegisterTTScheduleSyncCallback(FDCAN_HandleTypeDef *hfdcan, pFDCAN_TT_ScheduleSyncCallbackTypeDef pCallback) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (pCallback == NULL) - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - return HAL_ERROR; - } - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - hfdcan->TT_ScheduleSyncCallback = pCallback; - } - else - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief UnRegister the TT Schedule Synchronization FDCAN Callback - * TT Schedule Synchronization Callback is redirected to the weak HAL_FDCAN_TT_ScheduleSyncCallback() predefined callback - * @param hfdcan FDCAN handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_UnRegisterTTScheduleSyncCallback(FDCAN_HandleTypeDef *hfdcan) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - hfdcan->TT_ScheduleSyncCallback = HAL_FDCAN_TT_ScheduleSyncCallback; /* Legacy weak TT_ScheduleSyncCallback */ - } - else - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief Register TT Time Mark FDCAN Callback - * To be used instead of the weak HAL_FDCAN_TT_TimeMarkCallback() predefined callback - * @param hfdcan FDCAN handle - * @param pCallback pointer to the TT Time Mark Callback function - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_RegisterTTTimeMarkCallback(FDCAN_HandleTypeDef *hfdcan, pFDCAN_TT_TimeMarkCallbackTypeDef pCallback) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (pCallback == NULL) - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - return HAL_ERROR; - } - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - hfdcan->TT_TimeMarkCallback = pCallback; - } - else - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief UnRegister the TT Time Mark FDCAN Callback - * TT Time Mark Callback is redirected to the weak HAL_FDCAN_TT_TimeMarkCallback() predefined callback - * @param hfdcan FDCAN handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_UnRegisterTTTimeMarkCallback(FDCAN_HandleTypeDef *hfdcan) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - hfdcan->TT_TimeMarkCallback = HAL_FDCAN_TT_TimeMarkCallback; /* Legacy weak TT_TimeMarkCallback */ - } - else - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief Register TT Stop Watch FDCAN Callback - * To be used instead of the weak HAL_FDCAN_TT_StopWatchCallback() predefined callback - * @param hfdcan FDCAN handle - * @param pCallback pointer to the TT Stop Watch Callback function - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_RegisterTTStopWatchCallback(FDCAN_HandleTypeDef *hfdcan, pFDCAN_TT_StopWatchCallbackTypeDef pCallback) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (pCallback == NULL) - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - return HAL_ERROR; - } - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - hfdcan->TT_StopWatchCallback = pCallback; - } - else - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief UnRegister the TT Stop Watch FDCAN Callback - * TT Stop Watch Callback is redirected to the weak HAL_FDCAN_TT_StopWatchCallback() predefined callback - * @param hfdcan FDCAN handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_UnRegisterTTStopWatchCallback(FDCAN_HandleTypeDef *hfdcan) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - hfdcan->TT_StopWatchCallback = HAL_FDCAN_TT_StopWatchCallback; /* Legacy weak TT_StopWatchCallback */ - } - else - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief Register TT Global Time FDCAN Callback - * To be used instead of the weak HAL_FDCAN_TT_GlobalTimeCallback() predefined callback - * @param hfdcan FDCAN handle - * @param pCallback pointer to the TT Global Time Callback function - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_RegisterTTGlobalTimeCallback(FDCAN_HandleTypeDef *hfdcan, pFDCAN_TT_GlobalTimeCallbackTypeDef pCallback) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (pCallback == NULL) - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - return HAL_ERROR; - } - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - hfdcan->TT_GlobalTimeCallback = pCallback; - } - else - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief UnRegister the TT Global Time FDCAN Callback - * TT Global Time Callback is redirected to the weak HAL_FDCAN_TT_GlobalTimeCallback() predefined callback - * @param hfdcan FDCAN handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_UnRegisterTTGlobalTimeCallback(FDCAN_HandleTypeDef *hfdcan) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - hfdcan->TT_GlobalTimeCallback = HAL_FDCAN_TT_GlobalTimeCallback; /* Legacy weak TT_GlobalTimeCallback */ - } - else - { - /* Update the error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - -/** - * @} - */ - -/** @defgroup FDCAN_Exported_Functions_Group2 Configuration functions - * @brief FDCAN Configuration functions. - * -@verbatim - ============================================================================== - ##### Configuration functions ##### - ============================================================================== - [..] This section provides functions allowing to: - (+) HAL_FDCAN_ConfigClockCalibration : Configure the FDCAN clock calibration unit - (+) HAL_FDCAN_GetClockCalibrationState : Get the clock calibration state - (+) HAL_FDCAN_ResetClockCalibrationState : Reset the clock calibration state - (+) HAL_FDCAN_GetClockCalibrationCounter : Get the clock calibration counters values - (+) HAL_FDCAN_ConfigFilter : Configure the FDCAN reception filters - (+) HAL_FDCAN_ConfigGlobalFilter : Configure the FDCAN global filter - (+) HAL_FDCAN_ConfigExtendedIdMask : Configure the extended ID mask - (+) HAL_FDCAN_ConfigRxFifoOverwrite : Configure the Rx FIFO operation mode - (+) HAL_FDCAN_ConfigFifoWatermark : Configure the FIFO watermark - (+) HAL_FDCAN_ConfigRamWatchdog : Configure the RAM watchdog - (+) HAL_FDCAN_ConfigTimestampCounter : Configure the timestamp counter - (+) HAL_FDCAN_EnableTimestampCounter : Enable the timestamp counter - (+) HAL_FDCAN_DisableTimestampCounter : Disable the timestamp counter - (+) HAL_FDCAN_GetTimestampCounter : Get the timestamp counter value - (+) HAL_FDCAN_ResetTimestampCounter : Reset the timestamp counter to zero - (+) HAL_FDCAN_ConfigTimeoutCounter : Configure the timeout counter - (+) HAL_FDCAN_EnableTimeoutCounter : Enable the timeout counter - (+) HAL_FDCAN_DisableTimeoutCounter : Disable the timeout counter - (+) HAL_FDCAN_GetTimeoutCounter : Get the timeout counter value - (+) HAL_FDCAN_ResetTimeoutCounter : Reset the timeout counter to its start value - (+) HAL_FDCAN_ConfigTxDelayCompensation : Configure the transmitter delay compensation - (+) HAL_FDCAN_EnableTxDelayCompensation : Enable the transmitter delay compensation - (+) HAL_FDCAN_DisableTxDelayCompensation : Disable the transmitter delay compensation - (+) HAL_FDCAN_EnableISOMode : Enable ISO 11898-1 protocol mode - (+) HAL_FDCAN_DisableISOMode : Disable ISO 11898-1 protocol mode - (+) HAL_FDCAN_EnableEdgeFiltering : Enable edge filtering during bus integration - (+) HAL_FDCAN_DisableEdgeFiltering : Disable edge filtering during bus integration - -@endverbatim - * @{ - */ - -/** - * @brief Configure the FDCAN clock calibration unit according to the specified - * parameters in the FDCAN_ClkCalUnitTypeDef structure. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param sCcuConfig pointer to an FDCAN_ClkCalUnitTypeDef structure that - * contains the clock calibration information - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_ConfigClockCalibration(FDCAN_HandleTypeDef *hfdcan, FDCAN_ClkCalUnitTypeDef *sCcuConfig) -{ - /* Check function parameters */ - assert_param(IS_FDCAN_CLOCK_CALIBRATION(sCcuConfig->ClockCalibration)); - if (sCcuConfig->ClockCalibration == FDCAN_CLOCK_CALIBRATION_DISABLE) - { - assert_param(IS_FDCAN_CKDIV(sCcuConfig->ClockDivider)); - } - else - { - assert_param(IS_FDCAN_MAX_VALUE(sCcuConfig->MinOscClkPeriods, 0xFFU)); - assert_param(IS_FDCAN_CALIBRATION_FIELD_LENGTH(sCcuConfig->CalFieldLength)); - assert_param(IS_FDCAN_MIN_VALUE(sCcuConfig->TimeQuantaPerBitTime, 4U)); - assert_param(IS_FDCAN_MAX_VALUE(sCcuConfig->TimeQuantaPerBitTime, 0x25U)); - assert_param(IS_FDCAN_MAX_VALUE(sCcuConfig->WatchdogStartValue, 0xFFFFU)); - } - - /* FDCAN1 should be initialized in order to use clock calibration */ - if (hfdcan->Instance != FDCAN1) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_PARAM; - - return HAL_ERROR; - } - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - if (sCcuConfig->ClockCalibration == FDCAN_CLOCK_CALIBRATION_DISABLE) - { - /* Bypass clock calibration */ - SET_BIT(FDCAN_CCU->CCFG, FDCANCCU_CCFG_BCC); - - /* Configure clock divider */ - MODIFY_REG(FDCAN_CCU->CCFG, FDCANCCU_CCFG_CDIV, sCcuConfig->ClockDivider); - } - else /* sCcuConfig->ClockCalibration == ENABLE */ - { - /* Clock calibration unit generates time quanta clock */ - CLEAR_BIT(FDCAN_CCU->CCFG, FDCANCCU_CCFG_BCC); - - /* Configure clock calibration unit */ - MODIFY_REG(FDCAN_CCU->CCFG, - (FDCANCCU_CCFG_TQBT | FDCANCCU_CCFG_CFL | FDCANCCU_CCFG_OCPM), - ((sCcuConfig->TimeQuantaPerBitTime << FDCANCCU_CCFG_TQBT_Pos) | sCcuConfig->CalFieldLength | (sCcuConfig->MinOscClkPeriods << FDCANCCU_CCFG_OCPM_Pos))); - - /* Configure the start value of the calibration watchdog counter */ - MODIFY_REG(FDCAN_CCU->CWD, FDCANCCU_CWD_WDC, sCcuConfig->WatchdogStartValue); - } - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_READY; - - return HAL_ERROR; - } -} - -/** - * @brief Get the clock calibration state. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval State clock calibration state (can be a value of @arg FDCAN_calibration_state) - */ -uint32_t HAL_FDCAN_GetClockCalibrationState(FDCAN_HandleTypeDef *hfdcan) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hfdcan); - - return (FDCAN_CCU->CSTAT & FDCANCCU_CSTAT_CALS); -} - -/** - * @brief Reset the clock calibration state. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_ResetClockCalibrationState(FDCAN_HandleTypeDef *hfdcan) -{ - /* FDCAN1 should be initialized in order to use clock calibration */ - if (hfdcan->Instance != FDCAN1) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_PARAM; - - return HAL_ERROR; - } - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - /* Calibration software reset */ - SET_BIT(FDCAN_CCU->CCFG, FDCANCCU_CCFG_SWR); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_READY; - - return HAL_ERROR; - } -} - -/** - * @brief Get the clock calibration counter value. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param Counter clock calibration counter. - * This parameter can be a value of @arg FDCAN_calibration_counter. - * @retval Value clock calibration counter value - */ -uint32_t HAL_FDCAN_GetClockCalibrationCounter(FDCAN_HandleTypeDef *hfdcan, uint32_t Counter) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hfdcan); - - /* Check function parameters */ - assert_param(IS_FDCAN_CALIBRATION_COUNTER(Counter)); - - if (Counter == FDCAN_CALIB_TIME_QUANTA_COUNTER) - { - return ((FDCAN_CCU->CSTAT & FDCANCCU_CSTAT_TQC) >> FDCANCCU_CSTAT_TQC_Pos); - } - else if (Counter == FDCAN_CALIB_CLOCK_PERIOD_COUNTER) - { - return (FDCAN_CCU->CSTAT & FDCANCCU_CSTAT_OCPC); - } - else /* Counter == FDCAN_CALIB_WATCHDOG_COUNTER */ - { - return ((FDCAN_CCU->CWD & FDCANCCU_CWD_WDV) >> FDCANCCU_CWD_WDV_Pos); - } -} - -/** - * @brief Configure the FDCAN reception filter according to the specified - * parameters in the FDCAN_FilterTypeDef structure. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param sFilterConfig pointer to an FDCAN_FilterTypeDef structure that - * contains the filter configuration information - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_ConfigFilter(FDCAN_HandleTypeDef *hfdcan, FDCAN_FilterTypeDef *sFilterConfig) -{ - uint32_t FilterElementW1; - uint32_t FilterElementW2; - uint32_t *FilterAddress; - HAL_FDCAN_StateTypeDef state = hfdcan->State; - - if ((state == HAL_FDCAN_STATE_READY) || (state == HAL_FDCAN_STATE_BUSY)) - { - /* Check function parameters */ - assert_param(IS_FDCAN_ID_TYPE(sFilterConfig->IdType)); - assert_param(IS_FDCAN_FILTER_CFG(sFilterConfig->FilterConfig)); - if (sFilterConfig->FilterConfig == FDCAN_FILTER_TO_RXBUFFER) - { - assert_param(IS_FDCAN_MAX_VALUE(sFilterConfig->RxBufferIndex, 63U)); - assert_param(IS_FDCAN_MAX_VALUE(sFilterConfig->IsCalibrationMsg, 1U)); - } - - if (sFilterConfig->IdType == FDCAN_STANDARD_ID) - { - /* Check function parameters */ - assert_param(IS_FDCAN_MAX_VALUE(sFilterConfig->FilterIndex, (hfdcan->Init.StdFiltersNbr - 1U))); - assert_param(IS_FDCAN_MAX_VALUE(sFilterConfig->FilterID1, 0x7FFU)); - if (sFilterConfig->FilterConfig != FDCAN_FILTER_TO_RXBUFFER) - { - assert_param(IS_FDCAN_MAX_VALUE(sFilterConfig->FilterID2, 0x7FFU)); - assert_param(IS_FDCAN_STD_FILTER_TYPE(sFilterConfig->FilterType)); - } - - /* Build filter element */ - if (sFilterConfig->FilterConfig == FDCAN_FILTER_TO_RXBUFFER) - { - FilterElementW1 = ((FDCAN_FILTER_TO_RXBUFFER << 27U) | - (sFilterConfig->FilterID1 << 16U) | - (sFilterConfig->IsCalibrationMsg << 8U) | - sFilterConfig->RxBufferIndex); - } - else - { - FilterElementW1 = ((sFilterConfig->FilterType << 30U) | - (sFilterConfig->FilterConfig << 27U) | - (sFilterConfig->FilterID1 << 16U) | - sFilterConfig->FilterID2); - } - - /* Calculate filter address */ - FilterAddress = (uint32_t *)(hfdcan->msgRam.StandardFilterSA + (sFilterConfig->FilterIndex * 4U)); - - /* Write filter element to the message RAM */ - *FilterAddress = FilterElementW1; - } - else /* sFilterConfig->IdType == FDCAN_EXTENDED_ID */ - { - /* Check function parameters */ - assert_param(IS_FDCAN_MAX_VALUE(sFilterConfig->FilterIndex, (hfdcan->Init.ExtFiltersNbr - 1U))); - assert_param(IS_FDCAN_MAX_VALUE(sFilterConfig->FilterID1, 0x1FFFFFFFU)); - if (sFilterConfig->FilterConfig != FDCAN_FILTER_TO_RXBUFFER) - { - assert_param(IS_FDCAN_MAX_VALUE(sFilterConfig->FilterID2, 0x1FFFFFFFU)); - assert_param(IS_FDCAN_EXT_FILTER_TYPE(sFilterConfig->FilterType)); - } - - /* Build first word of filter element */ - FilterElementW1 = ((sFilterConfig->FilterConfig << 29U) | sFilterConfig->FilterID1); - - /* Build second word of filter element */ - if (sFilterConfig->FilterConfig == FDCAN_FILTER_TO_RXBUFFER) - { - FilterElementW2 = sFilterConfig->RxBufferIndex; - } - else - { - FilterElementW2 = ((sFilterConfig->FilterType << 30U) | sFilterConfig->FilterID2); - } - - /* Calculate filter address */ - FilterAddress = (uint32_t *)(hfdcan->msgRam.ExtendedFilterSA + (sFilterConfig->FilterIndex * 4U * 2U)); - - /* Write filter element to the message RAM */ - *FilterAddress = FilterElementW1; - FilterAddress++; - *FilterAddress = FilterElementW2; - } - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_INITIALIZED; - - return HAL_ERROR; - } -} - -/** - * @brief Configure the FDCAN global filter. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param NonMatchingStd Defines how received messages with 11-bit IDs that - * do not match any element of the filter list are treated. - * This parameter can be a value of @arg FDCAN_Non_Matching_Frames. - * @param NonMatchingExt Defines how received messages with 29-bit IDs that - * do not match any element of the filter list are treated. - * This parameter can be a value of @arg FDCAN_Non_Matching_Frames. - * @param RejectRemoteStd Filter or reject all the remote 11-bit IDs frames. - * This parameter can be a value of @arg FDCAN_Reject_Remote_Frames. - * @param RejectRemoteExt Filter or reject all the remote 29-bit IDs frames. - * This parameter can be a value of @arg FDCAN_Reject_Remote_Frames. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_ConfigGlobalFilter(FDCAN_HandleTypeDef *hfdcan, - uint32_t NonMatchingStd, - uint32_t NonMatchingExt, - uint32_t RejectRemoteStd, - uint32_t RejectRemoteExt) -{ - /* Check function parameters */ - assert_param(IS_FDCAN_NON_MATCHING(NonMatchingStd)); - assert_param(IS_FDCAN_NON_MATCHING(NonMatchingExt)); - assert_param(IS_FDCAN_REJECT_REMOTE(RejectRemoteStd)); - assert_param(IS_FDCAN_REJECT_REMOTE(RejectRemoteExt)); - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - /* Configure global filter */ - hfdcan->Instance->GFC = ((NonMatchingStd << FDCAN_GFC_ANFS_Pos) | - (NonMatchingExt << FDCAN_GFC_ANFE_Pos) | - (RejectRemoteStd << FDCAN_GFC_RRFS_Pos) | - (RejectRemoteExt << FDCAN_GFC_RRFE_Pos)); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_READY; - - return HAL_ERROR; - } -} - -/** - * @brief Configure the extended ID mask. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param Mask Extended ID Mask. - * This parameter must be a number between 0 and 0x1FFFFFFF - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_ConfigExtendedIdMask(FDCAN_HandleTypeDef *hfdcan, uint32_t Mask) -{ - /* Check function parameters */ - assert_param(IS_FDCAN_MAX_VALUE(Mask, 0x1FFFFFFFU)); - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - /* Configure the extended ID mask */ - hfdcan->Instance->XIDAM = Mask; - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_READY; - - return HAL_ERROR; - } -} - -/** - * @brief Configure the Rx FIFO operation mode. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param RxFifo Rx FIFO. - * This parameter can be one of the following values: - * @arg FDCAN_RX_FIFO0: Rx FIFO 0 - * @arg FDCAN_RX_FIFO1: Rx FIFO 1 - * @param OperationMode operation mode. - * This parameter can be a value of @arg FDCAN_Rx_FIFO_operation_mode. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_ConfigRxFifoOverwrite(FDCAN_HandleTypeDef *hfdcan, uint32_t RxFifo, uint32_t OperationMode) -{ - /* Check function parameters */ - assert_param(IS_FDCAN_RX_FIFO(RxFifo)); - assert_param(IS_FDCAN_RX_FIFO_MODE(OperationMode)); - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - if (RxFifo == FDCAN_RX_FIFO0) - { - /* Select FIFO 0 Operation Mode */ - MODIFY_REG(hfdcan->Instance->RXF0C, FDCAN_RXF0C_F0OM, OperationMode); - } - else /* RxFifo == FDCAN_RX_FIFO1 */ - { - /* Select FIFO 1 Operation Mode */ - MODIFY_REG(hfdcan->Instance->RXF1C, FDCAN_RXF1C_F1OM, OperationMode); - } - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_READY; - - return HAL_ERROR; - } -} - -/** - * @brief Configure the FIFO watermark. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param FIFO select the FIFO to be configured. - * This parameter can be a value of @arg FDCAN_FIFO_watermark. - * @param Watermark level for FIFO watermark interrupt. - * This parameter must be a number between: - * - 0 and 32, if FIFO is FDCAN_CFG_TX_EVENT_FIFO - * - 0 and 64, if FIFO is FDCAN_CFG_RX_FIFO0 or FDCAN_CFG_RX_FIFO1 - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_ConfigFifoWatermark(FDCAN_HandleTypeDef *hfdcan, uint32_t FIFO, uint32_t Watermark) -{ - /* Check function parameters */ - assert_param(IS_FDCAN_FIFO_WATERMARK(FIFO)); - if (FIFO == FDCAN_CFG_TX_EVENT_FIFO) - { - assert_param(IS_FDCAN_MAX_VALUE(Watermark, 32U)); - } - else /* (FIFO == FDCAN_CFG_RX_FIFO0) || (FIFO == FDCAN_CFG_RX_FIFO1) */ - { - assert_param(IS_FDCAN_MAX_VALUE(Watermark, 64U)); - } - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - /* Set the level for FIFO watermark interrupt */ - if (FIFO == FDCAN_CFG_TX_EVENT_FIFO) - { - MODIFY_REG(hfdcan->Instance->TXEFC, FDCAN_TXEFC_EFWM, (Watermark << FDCAN_TXEFC_EFWM_Pos)); - } - else if (FIFO == FDCAN_CFG_RX_FIFO0) - { - MODIFY_REG(hfdcan->Instance->RXF0C, FDCAN_RXF0C_F0WM, (Watermark << FDCAN_RXF0C_F0WM_Pos)); - } - else /* FIFO == FDCAN_CFG_RX_FIFO1 */ - { - MODIFY_REG(hfdcan->Instance->RXF1C, FDCAN_RXF1C_F1WM, (Watermark << FDCAN_RXF1C_F1WM_Pos)); - } - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_READY; - - return HAL_ERROR; - } -} - -/** - * @brief Configure the RAM watchdog. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param CounterStartValue Start value of the Message RAM Watchdog Counter, - * This parameter must be a number between 0x00 and 0xFF, - * with the reset value of 0x00 the counter is disabled. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_ConfigRamWatchdog(FDCAN_HandleTypeDef *hfdcan, uint32_t CounterStartValue) -{ - /* Check function parameters */ - assert_param(IS_FDCAN_MAX_VALUE(CounterStartValue, 0xFFU)); - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - /* Configure the RAM watchdog counter start value */ - MODIFY_REG(hfdcan->Instance->RWD, FDCAN_RWD_WDC, CounterStartValue); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_READY; - - return HAL_ERROR; - } -} - -/** - * @brief Configure the timestamp counter. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param TimestampPrescaler Timestamp Counter Prescaler. - * This parameter can be a value of @arg FDCAN_Timestamp_Prescaler. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_ConfigTimestampCounter(FDCAN_HandleTypeDef *hfdcan, uint32_t TimestampPrescaler) -{ - /* Check function parameters */ - assert_param(IS_FDCAN_TIMESTAMP_PRESCALER(TimestampPrescaler)); - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - /* Configure prescaler */ - MODIFY_REG(hfdcan->Instance->TSCC, FDCAN_TSCC_TCP, TimestampPrescaler); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_READY; - - return HAL_ERROR; - } -} - -/** - * @brief Enable the timestamp counter. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param TimestampOperation Timestamp counter operation. - * This parameter can be a value of @arg FDCAN_Timestamp. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_EnableTimestampCounter(FDCAN_HandleTypeDef *hfdcan, uint32_t TimestampOperation) -{ - /* Check function parameters */ - assert_param(IS_FDCAN_TIMESTAMP(TimestampOperation)); - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - /* Enable timestamp counter */ - MODIFY_REG(hfdcan->Instance->TSCC, FDCAN_TSCC_TSS, TimestampOperation); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_READY; - - return HAL_ERROR; - } -} - -/** - * @brief Disable the timestamp counter. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_DisableTimestampCounter(FDCAN_HandleTypeDef *hfdcan) -{ - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - /* Disable timestamp counter */ - CLEAR_BIT(hfdcan->Instance->TSCC, FDCAN_TSCC_TSS); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_READY; - - return HAL_ERROR; - } -} - -/** - * @brief Get the timestamp counter value. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval Value Timestamp counter value - */ -uint16_t HAL_FDCAN_GetTimestampCounter(FDCAN_HandleTypeDef *hfdcan) -{ - return (uint16_t)(hfdcan->Instance->TSCV); -} - -/** - * @brief Reset the timestamp counter to zero. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_ResetTimestampCounter(FDCAN_HandleTypeDef *hfdcan) -{ - if ((hfdcan->Instance->TSCC & FDCAN_TSCC_TSS) != FDCAN_TIMESTAMP_EXTERNAL) - { - /* Reset timestamp counter. - Actually any write operation to TSCV clears the counter */ - CLEAR_REG(hfdcan->Instance->TSCV); - } - else - { - /* Update error code. - Unable to reset external counter */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_SUPPORTED; - - return HAL_ERROR; - } - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Configure the timeout counter. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param TimeoutOperation Timeout counter operation. - * This parameter can be a value of @arg FDCAN_Timeout_Operation. - * @param TimeoutPeriod Start value of the timeout down-counter. - * This parameter must be a number between 0x0000 and 0xFFFF - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_ConfigTimeoutCounter(FDCAN_HandleTypeDef *hfdcan, uint32_t TimeoutOperation, uint32_t TimeoutPeriod) -{ - /* Check function parameters */ - assert_param(IS_FDCAN_TIMEOUT(TimeoutOperation)); - assert_param(IS_FDCAN_MAX_VALUE(TimeoutPeriod, 0xFFFFU)); - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - /* Select timeout operation and configure period */ - MODIFY_REG(hfdcan->Instance->TOCC, (FDCAN_TOCC_TOS | FDCAN_TOCC_TOP), (TimeoutOperation | (TimeoutPeriod << FDCAN_TOCC_TOP_Pos))); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_READY; - - return HAL_ERROR; - } -} - -/** - * @brief Enable the timeout counter. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_EnableTimeoutCounter(FDCAN_HandleTypeDef *hfdcan) -{ - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - /* Enable timeout counter */ - SET_BIT(hfdcan->Instance->TOCC, FDCAN_TOCC_ETOC); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_READY; - - return HAL_ERROR; - } -} - -/** - * @brief Disable the timeout counter. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_DisableTimeoutCounter(FDCAN_HandleTypeDef *hfdcan) -{ - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - /* Disable timeout counter */ - CLEAR_BIT(hfdcan->Instance->TOCC, FDCAN_TOCC_ETOC); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_READY; - - return HAL_ERROR; - } -} - -/** - * @brief Get the timeout counter value. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval Value Timeout counter value - */ -uint16_t HAL_FDCAN_GetTimeoutCounter(FDCAN_HandleTypeDef *hfdcan) -{ - return (uint16_t)(hfdcan->Instance->TOCV); -} - -/** - * @brief Reset the timeout counter to its start value. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_ResetTimeoutCounter(FDCAN_HandleTypeDef *hfdcan) -{ - if ((hfdcan->Instance->TOCC & FDCAN_TOCC_TOS) == FDCAN_TIMEOUT_CONTINUOUS) - { - /* Reset timeout counter to start value */ - CLEAR_REG(hfdcan->Instance->TOCV); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code. - Unable to reset counter: controlled only by FIFO empty state */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_SUPPORTED; - - return HAL_ERROR; - } -} - -/** - * @brief Configure the transmitter delay compensation. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param TdcOffset Transmitter Delay Compensation Offset. - * This parameter must be a number between 0x00 and 0x7F. - * @param TdcFilter Transmitter Delay Compensation Filter Window Length. - * This parameter must be a number between 0x00 and 0x7F. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_ConfigTxDelayCompensation(FDCAN_HandleTypeDef *hfdcan, uint32_t TdcOffset, uint32_t TdcFilter) -{ - /* Check function parameters */ - assert_param(IS_FDCAN_MAX_VALUE(TdcOffset, 0x7FU)); - assert_param(IS_FDCAN_MAX_VALUE(TdcFilter, 0x7FU)); - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - /* Configure TDC offset and filter window */ - hfdcan->Instance->TDCR = ((TdcFilter << FDCAN_TDCR_TDCF_Pos) | (TdcOffset << FDCAN_TDCR_TDCO_Pos)); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_READY; - - return HAL_ERROR; - } -} - -/** - * @brief Enable the transmitter delay compensation. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_EnableTxDelayCompensation(FDCAN_HandleTypeDef *hfdcan) -{ - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - /* Enable transmitter delay compensation */ - SET_BIT(hfdcan->Instance->DBTP, FDCAN_DBTP_TDC); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_READY; - - return HAL_ERROR; - } -} - -/** - * @brief Disable the transmitter delay compensation. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_DisableTxDelayCompensation(FDCAN_HandleTypeDef *hfdcan) -{ - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - /* Disable transmitter delay compensation */ - CLEAR_BIT(hfdcan->Instance->DBTP, FDCAN_DBTP_TDC); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_READY; - - return HAL_ERROR; - } -} - -/** - * @brief Enable ISO 11898-1 protocol mode. - * CAN FD frame format is according to ISO 11898-1 standard. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_EnableISOMode(FDCAN_HandleTypeDef *hfdcan) -{ - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - /* Disable Non ISO protocol mode */ - CLEAR_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_NISO); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_READY; - - return HAL_ERROR; - } -} - -/** - * @brief Disable ISO 11898-1 protocol mode. - * CAN FD frame format is according to Bosch CAN FD specification V1.0. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_DisableISOMode(FDCAN_HandleTypeDef *hfdcan) -{ - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - /* Enable Non ISO protocol mode */ - SET_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_NISO); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_READY; - - return HAL_ERROR; - } -} - -/** - * @brief Enable edge filtering during bus integration. - * Two consecutive dominant tq are required to detect an edge for hard synchronization. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_EnableEdgeFiltering(FDCAN_HandleTypeDef *hfdcan) -{ - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - /* Enable edge filtering */ - SET_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_EFBI); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_READY; - - return HAL_ERROR; - } -} - -/** - * @brief Disable edge filtering during bus integration. - * One dominant tq is required to detect an edge for hard synchronization. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_DisableEdgeFiltering(FDCAN_HandleTypeDef *hfdcan) -{ - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - /* Disable edge filtering */ - CLEAR_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_EFBI); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_READY; - - return HAL_ERROR; - } -} - -/** - * @} - */ - -/** @defgroup FDCAN_Exported_Functions_Group3 Control functions - * @brief Control functions - * -@verbatim - ============================================================================== - ##### Control functions ##### - ============================================================================== - [..] This section provides functions allowing to: - (+) HAL_FDCAN_Start : Start the FDCAN module - (+) HAL_FDCAN_Stop : Stop the FDCAN module and enable access to configuration registers - (+) HAL_FDCAN_AddMessageToTxFifoQ : Add a message to the Tx FIFO/Queue and activate the corresponding transmission request - (+) HAL_FDCAN_AddMessageToTxBuffer : Add a message to a dedicated Tx buffer - (+) HAL_FDCAN_EnableTxBufferRequest : Enable transmission request - (+) HAL_FDCAN_GetLatestTxFifoQRequestBuffer : Get Tx buffer index of latest Tx FIFO/Queue request - (+) HAL_FDCAN_AbortTxRequest : Abort transmission request - (+) HAL_FDCAN_GetRxMessage : Get an FDCAN frame from the Rx Buffer/FIFO zone into the message RAM - (+) HAL_FDCAN_GetTxEvent : Get an FDCAN Tx event from the Tx Event FIFO zone into the message RAM - (+) HAL_FDCAN_GetHighPriorityMessageStatus : Get high priority message status - (+) HAL_FDCAN_GetProtocolStatus : Get protocol status - (+) HAL_FDCAN_GetErrorCounters : Get error counter values - (+) HAL_FDCAN_IsRxBufferMessageAvailable : Check if a new message is received in the selected Rx buffer - (+) HAL_FDCAN_IsTxBufferMessagePending : Check if a transmission request is pending on the selected Tx buffer - (+) HAL_FDCAN_GetRxFifoFillLevel : Return Rx FIFO fill level - (+) HAL_FDCAN_GetTxFifoFreeLevel : Return Tx FIFO free level - (+) HAL_FDCAN_IsRestrictedOperationMode : Check if the FDCAN peripheral entered Restricted Operation Mode - (+) HAL_FDCAN_ExitRestrictedOperationMode : Exit Restricted Operation Mode - -@endverbatim - * @{ - */ - -/** - * @brief Start the FDCAN module. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_Start(FDCAN_HandleTypeDef *hfdcan) -{ - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - /* Change FDCAN peripheral state */ - hfdcan->State = HAL_FDCAN_STATE_BUSY; - - /* Request leave initialisation */ - CLEAR_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_INIT); - - /* Reset the FDCAN ErrorCode */ - hfdcan->ErrorCode = HAL_FDCAN_ERROR_NONE; - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_READY; - - return HAL_ERROR; - } -} - -/** - * @brief Stop the FDCAN module and enable access to configuration registers. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_Stop(FDCAN_HandleTypeDef *hfdcan) -{ - uint32_t Counter = 0U; - - if (hfdcan->State == HAL_FDCAN_STATE_BUSY) - { - /* Request initialisation */ - SET_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_INIT); - - /* Wait until the INIT bit into CCCR register is set */ - while ((hfdcan->Instance->CCCR & FDCAN_CCCR_INIT) == 0U) - { - /* Check for the Timeout */ - if (Counter > FDCAN_TIMEOUT_COUNT) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_TIMEOUT; - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - - return HAL_ERROR; - } - - /* Increment counter */ - Counter++; - } - - /* Reset counter */ - Counter = 0U; - - /* Exit from Sleep mode */ - CLEAR_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_CSR); - - /* Wait until FDCAN exits sleep mode */ - while ((hfdcan->Instance->CCCR & FDCAN_CCCR_CSA) == FDCAN_CCCR_CSA) - { - /* Check for the Timeout */ - if (Counter > FDCAN_TIMEOUT_COUNT) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_TIMEOUT; - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - - return HAL_ERROR; - } - - /* Increment counter */ - Counter++; - } - - /* Enable configuration change */ - SET_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_CCE); - - /* Reset Latest Tx FIFO/Queue Request Buffer Index */ - hfdcan->LatestTxFifoQRequest = 0U; - - /* Change FDCAN peripheral state */ - hfdcan->State = HAL_FDCAN_STATE_READY; - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_STARTED; - - return HAL_ERROR; - } -} - -/** - * @brief Add a message to the Tx FIFO/Queue and activate the corresponding transmission request - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param pTxHeader pointer to a FDCAN_TxHeaderTypeDef structure. - * @param pTxData pointer to a buffer containing the payload of the Tx frame. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_AddMessageToTxFifoQ(FDCAN_HandleTypeDef *hfdcan, FDCAN_TxHeaderTypeDef *pTxHeader, uint8_t *pTxData) -{ - uint32_t PutIndex; - - /* Check function parameters */ - assert_param(IS_FDCAN_ID_TYPE(pTxHeader->IdType)); - if (pTxHeader->IdType == FDCAN_STANDARD_ID) - { - assert_param(IS_FDCAN_MAX_VALUE(pTxHeader->Identifier, 0x7FFU)); - } - else /* pTxHeader->IdType == FDCAN_EXTENDED_ID */ - { - assert_param(IS_FDCAN_MAX_VALUE(pTxHeader->Identifier, 0x1FFFFFFFU)); - } - assert_param(IS_FDCAN_FRAME_TYPE(pTxHeader->TxFrameType)); - assert_param(IS_FDCAN_DLC(pTxHeader->DataLength)); - assert_param(IS_FDCAN_ESI(pTxHeader->ErrorStateIndicator)); - assert_param(IS_FDCAN_BRS(pTxHeader->BitRateSwitch)); - assert_param(IS_FDCAN_FDF(pTxHeader->FDFormat)); - assert_param(IS_FDCAN_EFC(pTxHeader->TxEventFifoControl)); - assert_param(IS_FDCAN_MAX_VALUE(pTxHeader->MessageMarker, 0xFFU)); - - if (hfdcan->State == HAL_FDCAN_STATE_BUSY) - { - /* Check that the Tx FIFO/Queue has an allocated area into the RAM */ - if ((hfdcan->Instance->TXBC & FDCAN_TXBC_TFQS) == 0U) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_PARAM; - - return HAL_ERROR; - } - - /* Check that the Tx FIFO/Queue is not full */ - if ((hfdcan->Instance->TXFQS & FDCAN_TXFQS_TFQF) != 0U) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_FIFO_FULL; - - return HAL_ERROR; - } - else - { - /* Retrieve the Tx FIFO PutIndex */ - PutIndex = ((hfdcan->Instance->TXFQS & FDCAN_TXFQS_TFQPI) >> FDCAN_TXFQS_TFQPI_Pos); - - /* Add the message to the Tx FIFO/Queue */ - FDCAN_CopyMessageToRAM(hfdcan, pTxHeader, pTxData, PutIndex); - - /* Activate the corresponding transmission request */ - hfdcan->Instance->TXBAR = ((uint32_t)1 << PutIndex); - - /* Store the Latest Tx FIFO/Queue Request Buffer Index */ - hfdcan->LatestTxFifoQRequest = ((uint32_t)1 << PutIndex); - } - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_STARTED; - - return HAL_ERROR; - } -} - -/** - * @brief Add a message to a dedicated Tx buffer - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param pTxHeader pointer to a FDCAN_TxHeaderTypeDef structure. - * @param pTxData pointer to a buffer containing the payload of the Tx frame. - * @param BufferIndex index of the buffer to be configured. - * This parameter can be a value of @arg FDCAN_Tx_location. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_AddMessageToTxBuffer(FDCAN_HandleTypeDef *hfdcan, FDCAN_TxHeaderTypeDef *pTxHeader, uint8_t *pTxData, uint32_t BufferIndex) -{ - HAL_FDCAN_StateTypeDef state = hfdcan->State; - - /* Check function parameters */ - assert_param(IS_FDCAN_ID_TYPE(pTxHeader->IdType)); - if (pTxHeader->IdType == FDCAN_STANDARD_ID) - { - assert_param(IS_FDCAN_MAX_VALUE(pTxHeader->Identifier, 0x7FFU)); - } - else /* pTxHeader->IdType == FDCAN_EXTENDED_ID */ - { - assert_param(IS_FDCAN_MAX_VALUE(pTxHeader->Identifier, 0x1FFFFFFFU)); - } - assert_param(IS_FDCAN_FRAME_TYPE(pTxHeader->TxFrameType)); - assert_param(IS_FDCAN_DLC(pTxHeader->DataLength)); - assert_param(IS_FDCAN_ESI(pTxHeader->ErrorStateIndicator)); - assert_param(IS_FDCAN_BRS(pTxHeader->BitRateSwitch)); - assert_param(IS_FDCAN_FDF(pTxHeader->FDFormat)); - assert_param(IS_FDCAN_EFC(pTxHeader->TxEventFifoControl)); - assert_param(IS_FDCAN_MAX_VALUE(pTxHeader->MessageMarker, 0xFFU)); - assert_param(IS_FDCAN_TX_LOCATION(BufferIndex)); - - if ((state == HAL_FDCAN_STATE_READY) || (state == HAL_FDCAN_STATE_BUSY)) - { - /* Check that the selected buffer has an allocated area into the RAM */ - if (POSITION_VAL(BufferIndex) >= ((hfdcan->Instance->TXBC & FDCAN_TXBC_NDTB) >> FDCAN_TXBC_NDTB_Pos)) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_PARAM; - - return HAL_ERROR; - } - - /* Check that there is no transmission request pending for the selected buffer */ - if ((hfdcan->Instance->TXBRP & BufferIndex) != 0U) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_PENDING; - - return HAL_ERROR; - } - else - { - /* Add the message to the Tx buffer */ - FDCAN_CopyMessageToRAM(hfdcan, pTxHeader, pTxData, POSITION_VAL(BufferIndex)); - } - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_INITIALIZED; - - return HAL_ERROR; - } -} - -/** - * @brief Enable transmission request. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param BufferIndex buffer index. - * This parameter can be any combination of @arg FDCAN_Tx_location. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_EnableTxBufferRequest(FDCAN_HandleTypeDef *hfdcan, uint32_t BufferIndex) -{ - if (hfdcan->State == HAL_FDCAN_STATE_BUSY) - { - /* Add transmission request */ - hfdcan->Instance->TXBAR = BufferIndex; - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_STARTED; - - return HAL_ERROR; - } -} - -/** - * @brief Get Tx buffer index of latest Tx FIFO/Queue request - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval Tx buffer index of last Tx FIFO/Queue request - * - Any value of @arg FDCAN_Tx_location if Tx request has been submitted. - * - 0 if no Tx FIFO/Queue request have been submitted. - */ -uint32_t HAL_FDCAN_GetLatestTxFifoQRequestBuffer(FDCAN_HandleTypeDef *hfdcan) -{ - /* Return Last Tx FIFO/Queue Request Buffer */ - return hfdcan->LatestTxFifoQRequest; -} - -/** - * @brief Abort transmission request - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param BufferIndex buffer index. - * This parameter can be any combination of @arg FDCAN_Tx_location. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_AbortTxRequest(FDCAN_HandleTypeDef *hfdcan, uint32_t BufferIndex) -{ - if (hfdcan->State == HAL_FDCAN_STATE_BUSY) - { - /* Add cancellation request */ - hfdcan->Instance->TXBCR = BufferIndex; - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_STARTED; - - return HAL_ERROR; - } -} - -/** - * @brief Get an FDCAN frame from the Rx Buffer/FIFO zone into the message RAM. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param RxLocation Location of the received message to be read. - * This parameter can be a value of @arg FDCAN_Rx_location. - * @param pRxHeader pointer to a FDCAN_RxHeaderTypeDef structure. - * @param pRxData pointer to a buffer where the payload of the Rx frame will be stored. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_GetRxMessage(FDCAN_HandleTypeDef *hfdcan, uint32_t RxLocation, FDCAN_RxHeaderTypeDef *pRxHeader, uint8_t *pRxData) -{ - uint32_t *RxAddress; - uint8_t *pData; - uint32_t ByteCounter; - uint32_t GetIndex = 0; - HAL_FDCAN_StateTypeDef state = hfdcan->State; - - if (state == HAL_FDCAN_STATE_BUSY) - { - if (RxLocation == FDCAN_RX_FIFO0) /* Rx element is assigned to the Rx FIFO 0 */ - { - /* Check that the Rx FIFO 0 has an allocated area into the RAM */ - if ((hfdcan->Instance->RXF0C & FDCAN_RXF0C_F0S) == 0U) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_PARAM; - - return HAL_ERROR; - } - - /* Check that the Rx FIFO 0 is not empty */ - if ((hfdcan->Instance->RXF0S & FDCAN_RXF0S_F0FL) == 0U) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_FIFO_EMPTY; - - return HAL_ERROR; - } - else - { - /* Check that the Rx FIFO 0 is full & overwrite mode is on*/ - if(((hfdcan->Instance->RXF0S & FDCAN_RXF0S_F0F) >> FDCAN_RXF0S_F0F_Pos) == 1U) - { - if(((hfdcan->Instance->RXF0C & FDCAN_RXF0C_F0OM) >> FDCAN_RXF0C_F0OM_Pos) == FDCAN_RX_FIFO_OVERWRITE) - { - /* When overwrite status is on discard first message in FIFO */ - GetIndex = 1U; - } - } - - /* Calculate Rx FIFO 0 element index*/ - GetIndex += ((hfdcan->Instance->RXF0S & FDCAN_RXF0S_F0GI) >> FDCAN_RXF0S_F0GI_Pos); - - /* Calculate Rx FIFO 0 element address */ - RxAddress = (uint32_t *)(hfdcan->msgRam.RxFIFO0SA + (GetIndex * hfdcan->Init.RxFifo0ElmtSize * 4U)); - } - } - else if (RxLocation == FDCAN_RX_FIFO1) /* Rx element is assigned to the Rx FIFO 1 */ - { - /* Check that the Rx FIFO 1 has an allocated area into the RAM */ - if ((hfdcan->Instance->RXF1C & FDCAN_RXF1C_F1S) == 0U) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_PARAM; - - return HAL_ERROR; - } - - /* Check that the Rx FIFO 0 is not empty */ - if ((hfdcan->Instance->RXF1S & FDCAN_RXF1S_F1FL) == 0U) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_FIFO_EMPTY; - - return HAL_ERROR; - } - else - { - /* Check that the Rx FIFO 1 is full & overwrite mode is on*/ - if(((hfdcan->Instance->RXF1S & FDCAN_RXF1S_F1F) >> FDCAN_RXF1S_F1F_Pos) == 1U) - { - if(((hfdcan->Instance->RXF1C & FDCAN_RXF1C_F1OM) >> FDCAN_RXF1C_F1OM_Pos) == FDCAN_RX_FIFO_OVERWRITE) - { - /* When overwrite status is on discard first message in FIFO */ - GetIndex = 1U; - } - } - - /* Calculate Rx FIFO 1 element index*/ - GetIndex += ((hfdcan->Instance->RXF1S & FDCAN_RXF1S_F1GI) >> FDCAN_RXF1S_F1GI_Pos); - - /* Calculate Rx FIFO 1 element address */ - RxAddress = (uint32_t *)(hfdcan->msgRam.RxFIFO1SA + (GetIndex * hfdcan->Init.RxFifo1ElmtSize * 4U)); - } - } - else /* Rx element is assigned to a dedicated Rx buffer */ - { - /* Check that the selected buffer has an allocated area into the RAM */ - if (RxLocation >= hfdcan->Init.RxBuffersNbr) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_PARAM; - - return HAL_ERROR; - } - else - { - /* Calculate Rx buffer address */ - RxAddress = (uint32_t *)(hfdcan->msgRam.RxBufferSA + (RxLocation * hfdcan->Init.RxBufferSize * 4U)); - } - } - - /* Retrieve IdType */ - pRxHeader->IdType = *RxAddress & FDCAN_ELEMENT_MASK_XTD; - - /* Retrieve Identifier */ - if (pRxHeader->IdType == FDCAN_STANDARD_ID) /* Standard ID element */ - { - pRxHeader->Identifier = ((*RxAddress & FDCAN_ELEMENT_MASK_STDID) >> 18); - } - else /* Extended ID element */ - { - pRxHeader->Identifier = (*RxAddress & FDCAN_ELEMENT_MASK_EXTID); - } - - /* Retrieve RxFrameType */ - pRxHeader->RxFrameType = (*RxAddress & FDCAN_ELEMENT_MASK_RTR); - - /* Retrieve ErrorStateIndicator */ - pRxHeader->ErrorStateIndicator = (*RxAddress & FDCAN_ELEMENT_MASK_ESI); - - /* Increment RxAddress pointer to second word of Rx FIFO element */ - RxAddress++; - - /* Retrieve RxTimestamp */ - pRxHeader->RxTimestamp = (*RxAddress & FDCAN_ELEMENT_MASK_TS); - - /* Retrieve DataLength */ - pRxHeader->DataLength = (*RxAddress & FDCAN_ELEMENT_MASK_DLC); - - /* Retrieve BitRateSwitch */ - pRxHeader->BitRateSwitch = (*RxAddress & FDCAN_ELEMENT_MASK_BRS); - - /* Retrieve FDFormat */ - pRxHeader->FDFormat = (*RxAddress & FDCAN_ELEMENT_MASK_FDF); - - /* Retrieve FilterIndex */ - pRxHeader->FilterIndex = ((*RxAddress & FDCAN_ELEMENT_MASK_FIDX) >> 24); - - /* Retrieve NonMatchingFrame */ - pRxHeader->IsFilterMatchingFrame = ((*RxAddress & FDCAN_ELEMENT_MASK_ANMF) >> 31); - - /* Increment RxAddress pointer to payload of Rx FIFO element */ - RxAddress++; - - /* Retrieve Rx payload */ - pData = (uint8_t *)RxAddress; - for (ByteCounter = 0; ByteCounter < DLCtoBytes[pRxHeader->DataLength >> 16]; ByteCounter++) - { - pRxData[ByteCounter] = pData[ByteCounter]; - } - - if (RxLocation == FDCAN_RX_FIFO0) /* Rx element is assigned to the Rx FIFO 0 */ - { - /* Acknowledge the Rx FIFO 0 that the oldest element is read so that it increments the GetIndex */ - hfdcan->Instance->RXF0A = GetIndex; - } - else if (RxLocation == FDCAN_RX_FIFO1) /* Rx element is assigned to the Rx FIFO 1 */ - { - /* Acknowledge the Rx FIFO 1 that the oldest element is read so that it increments the GetIndex */ - hfdcan->Instance->RXF1A = GetIndex; - } - else /* Rx element is assigned to a dedicated Rx buffer */ - { - /* Clear the New Data flag of the current Rx buffer */ - if (RxLocation < FDCAN_RX_BUFFER32) - { - hfdcan->Instance->NDAT1 = ((uint32_t)1 << RxLocation); - } - else /* FDCAN_RX_BUFFER32 <= RxLocation <= FDCAN_RX_BUFFER63 */ - { - hfdcan->Instance->NDAT2 = ((uint32_t)1 << (RxLocation & 0x1FU)); - } - } - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_STARTED; - - return HAL_ERROR; - } -} - -/** - * @brief Get an FDCAN Tx event from the Tx Event FIFO zone into the message RAM. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param pTxEvent pointer to a FDCAN_TxEventFifoTypeDef structure. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_GetTxEvent(FDCAN_HandleTypeDef *hfdcan, FDCAN_TxEventFifoTypeDef *pTxEvent) -{ - uint32_t *TxEventAddress; - uint32_t GetIndex; - HAL_FDCAN_StateTypeDef state = hfdcan->State; - - /* Check function parameters */ - assert_param(IS_FDCAN_MIN_VALUE(hfdcan->Init.TxEventsNbr, 1U)); - - if (state == HAL_FDCAN_STATE_BUSY) - { - /* Check that the Tx Event FIFO has an allocated area into the RAM */ - if ((hfdcan->Instance->TXEFC & FDCAN_TXEFC_EFS) == 0U) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_PARAM; - - return HAL_ERROR; - } - - /* Check that the Tx event FIFO is not empty */ - if ((hfdcan->Instance->TXEFS & FDCAN_TXEFS_EFFL) == 0U) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_FIFO_EMPTY; - - return HAL_ERROR; - } - - /* Calculate Tx event FIFO element address */ - GetIndex = ((hfdcan->Instance->TXEFS & FDCAN_TXEFS_EFGI) >> FDCAN_TXEFS_EFGI_Pos); - TxEventAddress = (uint32_t *)(hfdcan->msgRam.TxEventFIFOSA + (GetIndex * 2U * 4U)); - - /* Retrieve IdType */ - pTxEvent->IdType = *TxEventAddress & FDCAN_ELEMENT_MASK_XTD; - - /* Retrieve Identifier */ - if (pTxEvent->IdType == FDCAN_STANDARD_ID) /* Standard ID element */ - { - pTxEvent->Identifier = ((*TxEventAddress & FDCAN_ELEMENT_MASK_STDID) >> 18U); - } - else /* Extended ID element */ - { - pTxEvent->Identifier = (*TxEventAddress & FDCAN_ELEMENT_MASK_EXTID); - } - - /* Retrieve TxFrameType */ - pTxEvent->TxFrameType = (*TxEventAddress & FDCAN_ELEMENT_MASK_RTR); - - /* Retrieve ErrorStateIndicator */ - pTxEvent->ErrorStateIndicator = (*TxEventAddress & FDCAN_ELEMENT_MASK_ESI); - - /* Increment TxEventAddress pointer to second word of Tx Event FIFO element */ - TxEventAddress++; - - /* Retrieve TxTimestamp */ - pTxEvent->TxTimestamp = (*TxEventAddress & FDCAN_ELEMENT_MASK_TS); - - /* Retrieve DataLength */ - pTxEvent->DataLength = (*TxEventAddress & FDCAN_ELEMENT_MASK_DLC); - - /* Retrieve BitRateSwitch */ - pTxEvent->BitRateSwitch = (*TxEventAddress & FDCAN_ELEMENT_MASK_BRS); - - /* Retrieve FDFormat */ - pTxEvent->FDFormat = (*TxEventAddress & FDCAN_ELEMENT_MASK_FDF); - - /* Retrieve EventType */ - pTxEvent->EventType = (*TxEventAddress & FDCAN_ELEMENT_MASK_ET); - - /* Retrieve MessageMarker */ - pTxEvent->MessageMarker = ((*TxEventAddress & FDCAN_ELEMENT_MASK_MM) >> 24); - - /* Acknowledge the Tx Event FIFO that the oldest element is read so that it increments the GetIndex */ - hfdcan->Instance->TXEFA = GetIndex; - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_STARTED; - - return HAL_ERROR; - } -} - -/** - * @brief Get high priority message status. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param HpMsgStatus pointer to an FDCAN_HpMsgStatusTypeDef structure. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_GetHighPriorityMessageStatus(FDCAN_HandleTypeDef *hfdcan, FDCAN_HpMsgStatusTypeDef *HpMsgStatus) -{ - HpMsgStatus->FilterList = ((hfdcan->Instance->HPMS & FDCAN_HPMS_FLST) >> FDCAN_HPMS_FLST_Pos); - HpMsgStatus->FilterIndex = ((hfdcan->Instance->HPMS & FDCAN_HPMS_FIDX) >> FDCAN_HPMS_FIDX_Pos); - HpMsgStatus->MessageStorage = (hfdcan->Instance->HPMS & FDCAN_HPMS_MSI); - HpMsgStatus->MessageIndex = (hfdcan->Instance->HPMS & FDCAN_HPMS_BIDX); - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Get protocol status. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param ProtocolStatus pointer to an FDCAN_ProtocolStatusTypeDef structure. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_GetProtocolStatus(FDCAN_HandleTypeDef *hfdcan, FDCAN_ProtocolStatusTypeDef *ProtocolStatus) -{ - uint32_t StatusReg; - - /* Read the protocol status register */ - StatusReg = READ_REG(hfdcan->Instance->PSR); - - /* Fill the protocol status structure */ - ProtocolStatus->LastErrorCode = (StatusReg & FDCAN_PSR_LEC); - ProtocolStatus->DataLastErrorCode = ((StatusReg & FDCAN_PSR_DLEC) >> FDCAN_PSR_DLEC_Pos); - ProtocolStatus->Activity = (StatusReg & FDCAN_PSR_ACT); - ProtocolStatus->ErrorPassive = ((StatusReg & FDCAN_PSR_EP) >> FDCAN_PSR_EP_Pos); - ProtocolStatus->Warning = ((StatusReg & FDCAN_PSR_EW) >> FDCAN_PSR_EW_Pos); - ProtocolStatus->BusOff = ((StatusReg & FDCAN_PSR_BO) >> FDCAN_PSR_BO_Pos); - ProtocolStatus->RxESIflag = ((StatusReg & FDCAN_PSR_RESI) >> FDCAN_PSR_RESI_Pos); - ProtocolStatus->RxBRSflag = ((StatusReg & FDCAN_PSR_RBRS) >> FDCAN_PSR_RBRS_Pos); - ProtocolStatus->RxFDFflag = ((StatusReg & FDCAN_PSR_REDL) >> FDCAN_PSR_REDL_Pos); - ProtocolStatus->ProtocolException = ((StatusReg & FDCAN_PSR_PXE) >> FDCAN_PSR_PXE_Pos); - ProtocolStatus->TDCvalue = ((StatusReg & FDCAN_PSR_TDCV) >> FDCAN_PSR_TDCV_Pos); - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Get error counter values. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param ErrorCounters pointer to an FDCAN_ErrorCountersTypeDef structure. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_GetErrorCounters(FDCAN_HandleTypeDef *hfdcan, FDCAN_ErrorCountersTypeDef *ErrorCounters) -{ - uint32_t CountersReg; - - /* Read the error counters register */ - CountersReg = READ_REG(hfdcan->Instance->ECR); - - /* Fill the error counters structure */ - ErrorCounters->TxErrorCnt = ((CountersReg & FDCAN_ECR_TEC) >> FDCAN_ECR_TEC_Pos); - ErrorCounters->RxErrorCnt = ((CountersReg & FDCAN_ECR_REC) >> FDCAN_ECR_REC_Pos); - ErrorCounters->RxErrorPassive = ((CountersReg & FDCAN_ECR_RP) >> FDCAN_ECR_RP_Pos); - ErrorCounters->ErrorLogging = ((CountersReg & FDCAN_ECR_CEL) >> FDCAN_ECR_CEL_Pos); - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Check if a new message is received in the selected Rx buffer. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param RxBufferIndex Rx buffer index. - * This parameter must be a number between 0 and 63. - * @retval Status - * - 0 : No new message on RxBufferIndex. - * - 1 : New message received on RxBufferIndex. - */ -uint32_t HAL_FDCAN_IsRxBufferMessageAvailable(FDCAN_HandleTypeDef *hfdcan, uint32_t RxBufferIndex) -{ - /* Check function parameters */ - assert_param(IS_FDCAN_MAX_VALUE(RxBufferIndex, 63U)); - uint32_t NewData1 = hfdcan->Instance->NDAT1; - uint32_t NewData2 = hfdcan->Instance->NDAT2; - - /* Check new message reception on the selected buffer */ - if (((RxBufferIndex < 32U) && ((NewData1 & (uint32_t)((uint32_t)1 << RxBufferIndex)) == 0U)) || - ((RxBufferIndex >= 32U) && ((NewData2 & (uint32_t)((uint32_t)1 << (RxBufferIndex & 0x1FU))) == 0U))) - { - return 0; - } - - /* Clear the New Data flag of the current Rx buffer */ - if (RxBufferIndex < 32U) - { - hfdcan->Instance->NDAT1 = ((uint32_t)1 << RxBufferIndex); - } - else /* 32 <= RxBufferIndex <= 63 */ - { - hfdcan->Instance->NDAT2 = ((uint32_t)1 << (RxBufferIndex & 0x1FU)); - } - - return 1; -} - -/** - * @brief Check if a transmission request is pending on the selected Tx buffer. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param TxBufferIndex Tx buffer index. - * This parameter can be any combination of @arg FDCAN_Tx_location. - * @retval Status - * - 0 : No pending transmission request on TxBufferIndex. - * - 1 : Pending transmission request on TxBufferIndex. - */ -uint32_t HAL_FDCAN_IsTxBufferMessagePending(FDCAN_HandleTypeDef *hfdcan, uint32_t TxBufferIndex) -{ - /* Check pending transmission request on the selected buffer */ - if ((hfdcan->Instance->TXBRP & TxBufferIndex) == 0U) - { - return 0; - } - return 1; -} - -/** - * @brief Return Rx FIFO fill level. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param RxFifo Rx FIFO. - * This parameter can be one of the following values: - * @arg FDCAN_RX_FIFO0: Rx FIFO 0 - * @arg FDCAN_RX_FIFO1: Rx FIFO 1 - * @retval Level Rx FIFO fill level. - */ -uint32_t HAL_FDCAN_GetRxFifoFillLevel(FDCAN_HandleTypeDef *hfdcan, uint32_t RxFifo) -{ - uint32_t FillLevel; - - /* Check function parameters */ - assert_param(IS_FDCAN_RX_FIFO(RxFifo)); - - if (RxFifo == FDCAN_RX_FIFO0) - { - FillLevel = hfdcan->Instance->RXF0S & FDCAN_RXF0S_F0FL; - } - else /* RxFifo == FDCAN_RX_FIFO1 */ - { - FillLevel = hfdcan->Instance->RXF1S & FDCAN_RXF1S_F1FL; - } - - /* Return Rx FIFO fill level */ - return FillLevel; -} - -/** - * @brief Return Tx FIFO free level: number of consecutive free Tx FIFO - * elements starting from Tx FIFO GetIndex. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval Level Tx FIFO free level. - */ -uint32_t HAL_FDCAN_GetTxFifoFreeLevel(FDCAN_HandleTypeDef *hfdcan) -{ - uint32_t FreeLevel; - - FreeLevel = hfdcan->Instance->TXFQS & FDCAN_TXFQS_TFFL; - - /* Return Tx FIFO free level */ - return FreeLevel; -} - -/** - * @brief Check if the FDCAN peripheral entered Restricted Operation Mode. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval Status - * - 0 : Normal FDCAN operation. - * - 1 : Restricted Operation Mode active. - */ -uint32_t HAL_FDCAN_IsRestrictedOperationMode(FDCAN_HandleTypeDef *hfdcan) -{ - uint32_t OperationMode; - - /* Get Operation Mode */ - OperationMode = ((hfdcan->Instance->CCCR & FDCAN_CCCR_ASM) >> FDCAN_CCCR_ASM_Pos); - - return OperationMode; -} - -/** - * @brief Exit Restricted Operation Mode. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_ExitRestrictedOperationMode(FDCAN_HandleTypeDef *hfdcan) -{ - HAL_FDCAN_StateTypeDef state = hfdcan->State; - - if ((state == HAL_FDCAN_STATE_READY) || (state == HAL_FDCAN_STATE_BUSY)) - { - /* Exit Restricted Operation mode */ - CLEAR_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_ASM); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_INITIALIZED; - - return HAL_ERROR; - } -} - -/** - * @} - */ - -/** @defgroup FDCAN_Exported_Functions_Group4 TT Configuration and control functions - * @brief TT Configuration and control functions - * -@verbatim - ============================================================================== - ##### TT Configuration and control functions ##### - ============================================================================== - [..] This section provides functions allowing to: - (+) HAL_FDCAN_TT_ConfigOperation : Initialize TT operation parameters - (+) HAL_FDCAN_TT_ConfigReferenceMessage : Configure the reference message - (+) HAL_FDCAN_TT_ConfigTrigger : Configure the FDCAN trigger - (+) HAL_FDCAN_TT_SetGlobalTime : Schedule global time adjustment - (+) HAL_FDCAN_TT_SetClockSynchronization : Schedule TUR numerator update - (+) HAL_FDCAN_TT_ConfigStopWatch : Configure stop watch source and polarity - (+) HAL_FDCAN_TT_ConfigRegisterTimeMark : Configure register time mark pulse generation - (+) HAL_FDCAN_TT_EnableRegisterTimeMarkPulse : Enable register time mark pulse generation - (+) HAL_FDCAN_TT_DisableRegisterTimeMarkPulse : Disable register time mark pulse generation - (+) HAL_FDCAN_TT_EnableTriggerTimeMarkPulse : Enable trigger time mark pulse generation - (+) HAL_FDCAN_TT_DisableTriggerTimeMarkPulse : Disable trigger time mark pulse generation - (+) HAL_FDCAN_TT_EnableHardwareGapControl : Enable gap control by input pin fdcan1_evt - (+) HAL_FDCAN_TT_DisableHardwareGapControl : Disable gap control by input pin fdcan1_evt - (+) HAL_FDCAN_TT_EnableTimeMarkGapControl : Enable gap control (finish only) by register time mark interrupt - (+) HAL_FDCAN_TT_DisableTimeMarkGapControl : Disable gap control by register time mark interrupt - (+) HAL_FDCAN_TT_SetNextIsGap : Transmit next reference message with Next_is_Gap = "1" - (+) HAL_FDCAN_TT_SetEndOfGap : Finish a Gap by requesting start of reference message - (+) HAL_FDCAN_TT_ConfigExternalSyncPhase : Configure target phase used for external synchronization - (+) HAL_FDCAN_TT_EnableExternalSynchronization : Synchronize the phase of the FDCAN schedule to an external schedule - (+) HAL_FDCAN_TT_DisableExternalSynchronization : Disable external schedule synchronization - (+) HAL_FDCAN_TT_GetOperationStatus : Get TT operation status - -@endverbatim - * @{ - */ - -/** - * @brief Initialize TT operation parameters. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param pTTParams pointer to a FDCAN_TT_ConfigTypeDef structure. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_TT_ConfigOperation(FDCAN_HandleTypeDef *hfdcan, FDCAN_TT_ConfigTypeDef *pTTParams) -{ - uint32_t tickstart; - uint32_t RAMcounter; - uint32_t StartAddress; - - /* Check function parameters */ - assert_param(IS_FDCAN_TT_INSTANCE(hfdcan->Instance)); - assert_param(IS_FDCAN_TT_TUR_NUMERATOR(pTTParams->TURNumerator)); - assert_param(IS_FDCAN_TT_TUR_DENOMINATOR(pTTParams->TURDenominator)); - assert_param(IS_FDCAN_TT_TIME_MASTER(pTTParams->TimeMaster)); - assert_param(IS_FDCAN_MAX_VALUE(pTTParams->SyncDevLimit, 7U)); - assert_param(IS_FDCAN_MAX_VALUE(pTTParams->InitRefTrigOffset, 127U)); - assert_param(IS_FDCAN_MAX_VALUE(pTTParams->TriggerMemoryNbr, 64U)); - assert_param(IS_FDCAN_TT_CYCLE_START_SYNC(pTTParams->CycleStartSync)); - assert_param(IS_FDCAN_TT_STOP_WATCH_TRIGGER(pTTParams->StopWatchTrigSel)); - assert_param(IS_FDCAN_TT_EVENT_TRIGGER(pTTParams->EventTrigSel)); - if (pTTParams->TimeMaster == FDCAN_TT_POTENTIAL_MASTER) - { - assert_param(IS_FDCAN_TT_BASIC_CYCLES_NUMBER(pTTParams->BasicCyclesNbr)); - } - if (pTTParams->OperationMode != FDCAN_TT_COMMUNICATION_LEVEL0) - { - assert_param(IS_FDCAN_TT_OPERATION(pTTParams->GapEnable)); - assert_param(IS_FDCAN_MAX_VALUE(pTTParams->AppWdgLimit, 255U)); - assert_param(IS_FDCAN_TT_EVENT_TRIGGER_POLARITY(pTTParams->EvtTrigPolarity)); - assert_param(IS_FDCAN_TT_TX_ENABLE_WINDOW(pTTParams->TxEnableWindow)); - assert_param(IS_FDCAN_MAX_VALUE(pTTParams->ExpTxTrigNbr, 4095U)); - } - if (pTTParams->OperationMode != FDCAN_TT_COMMUNICATION_LEVEL1) - { - assert_param(IS_FDCAN_TT_TUR_LEVEL_0_2(pTTParams->TURNumerator, pTTParams->TURDenominator)); - assert_param(IS_FDCAN_TT_EXTERNAL_CLK_SYNC(pTTParams->ExternalClkSync)); - assert_param(IS_FDCAN_TT_GLOBAL_TIME_FILTERING(pTTParams->GlobalTimeFilter)); - assert_param(IS_FDCAN_TT_AUTO_CLK_CALIBRATION(pTTParams->ClockCalibration)); - } - else - { - assert_param(IS_FDCAN_TT_TUR_LEVEL_1(pTTParams->TURNumerator, pTTParams->TURDenominator)); - } - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - /* Stop local time in order to enable write access to the other bits of TURCF register */ - CLEAR_BIT(hfdcan->ttcan->TURCF, FDCAN_TURCF_ELT); - - /* Get tick */ - tickstart = HAL_GetTick(); - - /* Wait until the ELT bit into TURCF register is reset */ - while ((hfdcan->ttcan->TURCF & FDCAN_TURCF_ELT) != 0U) - { - /* Check for the Timeout */ - if ((HAL_GetTick() - tickstart) > FDCAN_TIMEOUT_VALUE) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_TIMEOUT; - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - - return HAL_ERROR; - } - } - - /* Configure TUR (Time Unit Ratio) */ - MODIFY_REG(hfdcan->ttcan->TURCF, - (FDCAN_TURCF_NCL | FDCAN_TURCF_DC), - (((pTTParams->TURNumerator - 0x10000U) << FDCAN_TURCF_NCL_Pos) | (pTTParams->TURDenominator << FDCAN_TURCF_DC_Pos))); - - /* Enable local time */ - SET_BIT(hfdcan->ttcan->TURCF, FDCAN_TURCF_ELT); - - /* Configure TT operation */ - MODIFY_REG(hfdcan->ttcan->TTOCF, - (FDCAN_TTOCF_OM | FDCAN_TTOCF_TM | FDCAN_TTOCF_LDSDL | FDCAN_TTOCF_IRTO), - (pTTParams->OperationMode | \ - pTTParams->TimeMaster | \ - (pTTParams->SyncDevLimit << FDCAN_TTOCF_LDSDL_Pos) | \ - (pTTParams->InitRefTrigOffset << FDCAN_TTOCF_IRTO_Pos))); - if (pTTParams->OperationMode != FDCAN_TT_COMMUNICATION_LEVEL0) - { - MODIFY_REG(hfdcan->ttcan->TTOCF, - (FDCAN_TTOCF_GEN | FDCAN_TTOCF_AWL | FDCAN_TTOCF_EVTP), - (pTTParams->GapEnable | \ - (pTTParams->AppWdgLimit << FDCAN_TTOCF_AWL_Pos) | \ - pTTParams->EvtTrigPolarity)); - } - if (pTTParams->OperationMode != FDCAN_TT_COMMUNICATION_LEVEL1) - { - MODIFY_REG(hfdcan->ttcan->TTOCF, - (FDCAN_TTOCF_EECS | FDCAN_TTOCF_EGTF | FDCAN_TTOCF_ECC), - (pTTParams->ExternalClkSync | \ - pTTParams->GlobalTimeFilter | \ - pTTParams->ClockCalibration)); - } - - /* Configure system matrix limits */ - MODIFY_REG(hfdcan->ttcan->TTMLM, FDCAN_TTMLM_CSS, pTTParams->CycleStartSync); - if (pTTParams->OperationMode != FDCAN_TT_COMMUNICATION_LEVEL0) - { - MODIFY_REG(hfdcan->ttcan->TTMLM, - (FDCAN_TTMLM_TXEW | FDCAN_TTMLM_ENTT), - (((pTTParams->TxEnableWindow - 1U) << FDCAN_TTMLM_TXEW_Pos) | (pTTParams->ExpTxTrigNbr << FDCAN_TTMLM_ENTT_Pos))); - } - if (pTTParams->TimeMaster == FDCAN_TT_POTENTIAL_MASTER) - { - MODIFY_REG(hfdcan->ttcan->TTMLM, FDCAN_TTMLM_CCM, pTTParams->BasicCyclesNbr); - } - - /* Configure input triggers: Stop watch and Event */ - MODIFY_REG(hfdcan->ttcan->TTTS, - (FDCAN_TTTS_SWTSEL | FDCAN_TTTS_EVTSEL), - (pTTParams->StopWatchTrigSel | pTTParams->EventTrigSel)); - - /* Configure trigger memory start address */ - StartAddress = (hfdcan->msgRam.EndAddress - SRAMCAN_BASE) / 4U; - MODIFY_REG(hfdcan->ttcan->TTTMC, FDCAN_TTTMC_TMSA, (StartAddress << FDCAN_TTTMC_TMSA_Pos)); - - /* Trigger memory elements number */ - MODIFY_REG(hfdcan->ttcan->TTTMC, FDCAN_TTTMC_TME, (pTTParams->TriggerMemoryNbr << FDCAN_TTTMC_TME_Pos)); - - /* Recalculate End Address */ - hfdcan->msgRam.TTMemorySA = hfdcan->msgRam.EndAddress; - hfdcan->msgRam.EndAddress = hfdcan->msgRam.TTMemorySA + (pTTParams->TriggerMemoryNbr * 2U * 4U); - - if (hfdcan->msgRam.EndAddress > FDCAN_MESSAGE_RAM_END_ADDRESS) /* Last address of the Message RAM */ - { - /* Update error code. - Message RAM overflow */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_PARAM; - - return HAL_ERROR; - } - else - { - /* Flush the allocated Message RAM area */ - for (RAMcounter = hfdcan->msgRam.TTMemorySA; RAMcounter < hfdcan->msgRam.EndAddress; RAMcounter += 4U) - { - *(uint32_t *)(RAMcounter) = 0x00000000; - } - } - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_READY; - - return HAL_ERROR; - } -} - -/** - * @brief Configure the reference message. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param IdType Identifier Type. - * This parameter can be a value of @arg FDCAN_id_type. - * @param Identifier Reference Identifier. - * This parameter must be a number between: - * - 0 and 0x7FF, if IdType is FDCAN_STANDARD_ID - * - 0 and 0x1FFFFFFF, if IdType is FDCAN_EXTENDED_ID - * @param Payload Enable or disable the additional payload. - * This parameter can be a value of @arg FDCAN_TT_Reference_Message_Payload. - * This parameter is ignored in case of time slaves. - * If this parameter is set to FDCAN_TT_REF_MESSAGE_ADD_PAYLOAD, the - * following elements are taken from Tx Buffer 0: - * - MessageMarker - * - TxEventFifoControl - * - DataLength - * - Data Bytes (payload): - * - bytes 2-8, for Level 1 - * - bytes 5-8, for Level 0 and Level 2 - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_TT_ConfigReferenceMessage(FDCAN_HandleTypeDef *hfdcan, uint32_t IdType, uint32_t Identifier, uint32_t Payload) -{ - /* Check function parameters */ - assert_param(IS_FDCAN_TT_INSTANCE(hfdcan->Instance)); - assert_param(IS_FDCAN_ID_TYPE(IdType)); - if (IdType == FDCAN_STANDARD_ID) - { - assert_param(IS_FDCAN_MAX_VALUE(Identifier, 0x7FFU)); - } - else /* IdType == FDCAN_EXTENDED_ID */ - { - assert_param(IS_FDCAN_MAX_VALUE(Identifier, 0x1FFFFFFFU)); - } - assert_param(IS_FDCAN_TT_REFERENCE_MESSAGE_PAYLOAD(Payload)); - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - /* Configure reference message identifier type, identifier and payload */ - if (IdType == FDCAN_EXTENDED_ID) - { - MODIFY_REG(hfdcan->ttcan->TTRMC, (FDCAN_TTRMC_RID | FDCAN_TTRMC_XTD | FDCAN_TTRMC_RMPS), (Payload | IdType | Identifier)); - } - else /* IdType == FDCAN_STANDARD_ID */ - { - MODIFY_REG(hfdcan->ttcan->TTRMC, (FDCAN_TTRMC_RID | FDCAN_TTRMC_XTD | FDCAN_TTRMC_RMPS), (Payload | IdType | (Identifier << 18))); - } - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_READY; - - return HAL_ERROR; - } -} - -/** - * @brief Configure the FDCAN trigger according to the specified - * parameters in the FDCAN_TriggerTypeDef structure. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param sTriggerConfig pointer to an FDCAN_TriggerTypeDef structure that - * contains the trigger configuration information - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_TT_ConfigTrigger(FDCAN_HandleTypeDef *hfdcan, FDCAN_TriggerTypeDef *sTriggerConfig) -{ - uint32_t CycleCode; - uint32_t MessageNumber; - uint32_t TriggerElementW1; - uint32_t TriggerElementW2; - uint32_t *TriggerAddress; - - /* Check function parameters */ - assert_param(IS_FDCAN_TT_INSTANCE(hfdcan->Instance)); - assert_param(IS_FDCAN_MAX_VALUE(sTriggerConfig->TriggerIndex, 63U)); - assert_param(IS_FDCAN_MAX_VALUE(sTriggerConfig->TimeMark, 0xFFFFU)); - assert_param(IS_FDCAN_TT_REPEAT_FACTOR(sTriggerConfig->RepeatFactor)); - if (sTriggerConfig->RepeatFactor != FDCAN_TT_REPEAT_EVERY_CYCLE) - { - assert_param(IS_FDCAN_MAX_VALUE(sTriggerConfig->StartCycle, (sTriggerConfig->RepeatFactor - 1U))); - } - assert_param(IS_FDCAN_TT_TM_EVENT_INTERNAL(sTriggerConfig->TmEventInt)); - assert_param(IS_FDCAN_TT_TM_EVENT_EXTERNAL(sTriggerConfig->TmEventExt)); - assert_param(IS_FDCAN_TT_TRIGGER_TYPE(sTriggerConfig->TriggerType)); - assert_param(IS_FDCAN_ID_TYPE(sTriggerConfig->FilterType)); - if ((sTriggerConfig->TriggerType == FDCAN_TT_TX_TRIGGER_SINGLE) || - (sTriggerConfig->TriggerType == FDCAN_TT_TX_TRIGGER_CONTINUOUS) || - (sTriggerConfig->TriggerType == FDCAN_TT_TX_TRIGGER_ARBITRATION) || - (sTriggerConfig->TriggerType == FDCAN_TT_TX_TRIGGER_MERGED)) - { - assert_param(IS_FDCAN_TX_LOCATION(sTriggerConfig->TxBufferIndex)); - } - if (sTriggerConfig->TriggerType == FDCAN_TT_RX_TRIGGER) - { - if (sTriggerConfig->FilterType == FDCAN_STANDARD_ID) - { - assert_param(IS_FDCAN_MAX_VALUE(sTriggerConfig->FilterIndex, 63U)); - } - else /* sTriggerConfig->FilterType == FDCAN_EXTENDED_ID */ - { - assert_param(IS_FDCAN_MAX_VALUE(sTriggerConfig->FilterIndex, 127U)); - } - } - - if (hfdcan->State == HAL_FDCAN_STATE_READY) - { - /* Calculate cycle code */ - if (sTriggerConfig->RepeatFactor == FDCAN_TT_REPEAT_EVERY_CYCLE) - { - CycleCode = FDCAN_TT_REPEAT_EVERY_CYCLE; - } - else /* sTriggerConfig->RepeatFactor != FDCAN_TT_REPEAT_EVERY_CYCLE */ - { - CycleCode = sTriggerConfig->RepeatFactor + sTriggerConfig->StartCycle; - } - - /* Build first word of trigger element */ - TriggerElementW1 = ((sTriggerConfig->TimeMark << 16) | \ - (CycleCode << 8) | \ - sTriggerConfig->TmEventInt | \ - sTriggerConfig->TmEventExt | \ - sTriggerConfig->TriggerType); - - /* Select message number depending on trigger type (transmission or reception) */ - if (sTriggerConfig->TriggerType == FDCAN_TT_RX_TRIGGER) - { - MessageNumber = sTriggerConfig->FilterIndex; - } - else if ((sTriggerConfig->TriggerType == FDCAN_TT_TX_TRIGGER_SINGLE) || - (sTriggerConfig->TriggerType == FDCAN_TT_TX_TRIGGER_CONTINUOUS) || - (sTriggerConfig->TriggerType == FDCAN_TT_TX_TRIGGER_ARBITRATION) || - (sTriggerConfig->TriggerType == FDCAN_TT_TX_TRIGGER_MERGED)) - { - MessageNumber = POSITION_VAL(sTriggerConfig->TxBufferIndex); - } - else - { - MessageNumber = 0U; - } - - /* Build second word of trigger element */ - TriggerElementW2 = ((sTriggerConfig->FilterType >> 7) | (MessageNumber << 16)); - - /* Calculate trigger address */ - TriggerAddress = (uint32_t *)(hfdcan->msgRam.TTMemorySA + (sTriggerConfig->TriggerIndex * 4U * 2U)); - - /* Write trigger element to the message RAM */ - *TriggerAddress = TriggerElementW1; - TriggerAddress++; - *TriggerAddress = TriggerElementW2; - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_READY; - - return HAL_ERROR; - } -} - -/** - * @brief Schedule global time adjustment for the next reference message. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param TimePreset time preset value. - * This parameter must be a number between: - * - 0x0000 and 0x7FFF, Next_Master_Ref_Mark = Current_Master_Ref_Mark + TimePreset - * or - * - 0x8001 and 0xFFFF, Next_Master_Ref_Mark = Current_Master_Ref_Mark - (0x10000 - TimePreset) - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_TT_SetGlobalTime(FDCAN_HandleTypeDef *hfdcan, uint32_t TimePreset) -{ - uint32_t Counter = 0U; - HAL_FDCAN_StateTypeDef state = hfdcan->State; - - /* Check function parameters */ - assert_param(IS_FDCAN_TT_INSTANCE(hfdcan->Instance)); - assert_param(IS_FDCAN_TT_TIME_PRESET(TimePreset)); - - if ((state == HAL_FDCAN_STATE_READY) || (state == HAL_FDCAN_STATE_BUSY)) - { - /* Check that the external clock synchronization is enabled */ - if ((hfdcan->ttcan->TTOCF & FDCAN_TTOCF_EECS) != FDCAN_TTOCF_EECS) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_SUPPORTED; - - return HAL_ERROR; - } - - /* Check that no global time preset is pending */ - if ((hfdcan->ttcan->TTOST & FDCAN_TTOST_WGTD) == FDCAN_TTOST_WGTD) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_PENDING; - - return HAL_ERROR; - } - - /* Configure time preset */ - MODIFY_REG(hfdcan->ttcan->TTGTP, FDCAN_TTGTP_TP, (TimePreset << FDCAN_TTGTP_TP_Pos)); - - /* Wait until the LCKC bit into TTOCN register is reset */ - while ((hfdcan->ttcan->TTOCN & FDCAN_TTOCN_LCKC) != 0U) - { - /* Check for the Timeout */ - if (Counter > FDCAN_TIMEOUT_COUNT) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_TIMEOUT; - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - - return HAL_ERROR; - } - - /* Increment counter */ - Counter++; - } - - /* Schedule time preset to take effect by the next reference message */ - SET_BIT(hfdcan->ttcan->TTOCN, FDCAN_TTOCN_SGT); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_INITIALIZED; - - return HAL_ERROR; - } -} - -/** - * @brief Schedule TUR numerator update for the next reference message. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param NewTURNumerator new value of the TUR numerator. - * This parameter must be a number between 0x10000 and 0x1FFFF. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_TT_SetClockSynchronization(FDCAN_HandleTypeDef *hfdcan, uint32_t NewTURNumerator) -{ - uint32_t Counter = 0U; - HAL_FDCAN_StateTypeDef state = hfdcan->State; - - /* Check function parameters */ - assert_param(IS_FDCAN_TT_INSTANCE(hfdcan->Instance)); - assert_param(IS_FDCAN_TT_TUR_NUMERATOR(NewTURNumerator)); - - if ((state == HAL_FDCAN_STATE_READY) || (state == HAL_FDCAN_STATE_BUSY)) - { - /* Check that the external clock synchronization is enabled */ - if ((hfdcan->ttcan->TTOCF & FDCAN_TTOCF_EECS) != FDCAN_TTOCF_EECS) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_SUPPORTED; - - return HAL_ERROR; - } - - /* Check that no external clock synchronization is pending */ - if ((hfdcan->ttcan->TTOST & FDCAN_TTOST_WECS) == FDCAN_TTOST_WECS) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_PENDING; - - return HAL_ERROR; - } - - /* Configure new TUR numerator */ - MODIFY_REG(hfdcan->ttcan->TURCF, FDCAN_TURCF_NCL, (NewTURNumerator - 0x10000U)); - - /* Wait until the LCKC bit into TTOCN register is reset */ - while ((hfdcan->ttcan->TTOCN & FDCAN_TTOCN_LCKC) != 0U) - { - /* Check for the Timeout */ - if (Counter > FDCAN_TIMEOUT_COUNT) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_TIMEOUT; - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - - return HAL_ERROR; - } - - /* Increment counter */ - Counter++; - } - - /* Schedule TUR numerator update by the next reference message */ - SET_BIT(hfdcan->ttcan->TTOCN, FDCAN_TTOCN_ECS); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_INITIALIZED; - - return HAL_ERROR; - } -} - -/** - * @brief Configure stop watch source and polarity. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param Source stop watch source. - * This parameter can be a value of @arg FDCAN_TT_stop_watch_source. - * @param Polarity stop watch polarity. - * This parameter can be a value of @arg FDCAN_TT_stop_watch_polarity. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_TT_ConfigStopWatch(FDCAN_HandleTypeDef *hfdcan, uint32_t Source, uint32_t Polarity) -{ - uint32_t Counter = 0U; - HAL_FDCAN_StateTypeDef state = hfdcan->State; - - /* Check function parameters */ - assert_param(IS_FDCAN_TT_INSTANCE(hfdcan->Instance)); - assert_param(IS_FDCAN_TT_STOP_WATCH_SOURCE(Source)); - assert_param(IS_FDCAN_TT_STOP_WATCH_POLARITY(Polarity)); - - if ((state == HAL_FDCAN_STATE_READY) || (state == HAL_FDCAN_STATE_BUSY)) - { - /* Wait until the LCKC bit into TTOCN register is reset */ - while ((hfdcan->ttcan->TTOCN & FDCAN_TTOCN_LCKC) != 0U) - { - /* Check for the Timeout */ - if (Counter > FDCAN_TIMEOUT_COUNT) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_TIMEOUT; - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - - return HAL_ERROR; - } - - /* Increment counter */ - Counter++; - } - - /* Select stop watch source and polarity */ - MODIFY_REG(hfdcan->ttcan->TTOCN, (FDCAN_TTOCN_SWS | FDCAN_TTOCN_SWP), (Source | Polarity)); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_INITIALIZED; - - return HAL_ERROR; - } -} - -/** - * @brief Configure register time mark pulse generation. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param TimeMarkSource time mark source. - * This parameter can be a value of @arg FDCAN_TT_time_mark_source. - * @param TimeMarkValue time mark value (reference). - * This parameter must be a number between 0 and 0xFFFF. - * @param RepeatFactor repeat factor of the cycle for which the time mark is valid. - * This parameter can be a value of @arg FDCAN_TT_Repeat_Factor. - * @param StartCycle index of the first cycle in which the time mark becomes valid. - * This parameter is ignored if RepeatFactor is set to FDCAN_TT_REPEAT_EVERY_CYCLE. - * This parameter must be a number between 0 and RepeatFactor. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_TT_ConfigRegisterTimeMark(FDCAN_HandleTypeDef *hfdcan, - uint32_t TimeMarkSource, uint32_t TimeMarkValue, - uint32_t RepeatFactor, uint32_t StartCycle) -{ - uint32_t Counter = 0U; - uint32_t CycleCode; - HAL_FDCAN_StateTypeDef state = hfdcan->State; - - /* Check function parameters */ - assert_param(IS_FDCAN_TT_INSTANCE(hfdcan->Instance)); - assert_param(IS_FDCAN_TT_REGISTER_TIME_MARK_SOURCE(TimeMarkSource)); - assert_param(IS_FDCAN_MAX_VALUE(TimeMarkValue, 0xFFFFU)); - assert_param(IS_FDCAN_TT_REPEAT_FACTOR(RepeatFactor)); - if (RepeatFactor != FDCAN_TT_REPEAT_EVERY_CYCLE) - { - assert_param(IS_FDCAN_MAX_VALUE(StartCycle, (RepeatFactor - 1U))); - } - - if ((state == HAL_FDCAN_STATE_READY) || (state == HAL_FDCAN_STATE_BUSY)) - { - /* Wait until the LCKC bit into TTOCN register is reset */ - while ((hfdcan->ttcan->TTOCN & FDCAN_TTOCN_LCKC) != 0U) - { - /* Check for the Timeout */ - if (Counter > FDCAN_TIMEOUT_COUNT) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_TIMEOUT; - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - - return HAL_ERROR; - } - - /* Increment counter */ - Counter++; - } - - /* Disable the time mark compare function */ - CLEAR_BIT(hfdcan->ttcan->TTOCN, FDCAN_TTOCN_TMC); - - if (TimeMarkSource != FDCAN_TT_REG_TIMEMARK_DIABLED) - { - /* Calculate cycle code */ - if (RepeatFactor == FDCAN_TT_REPEAT_EVERY_CYCLE) - { - CycleCode = FDCAN_TT_REPEAT_EVERY_CYCLE; - } - else /* RepeatFactor != FDCAN_TT_REPEAT_EVERY_CYCLE */ - { - CycleCode = RepeatFactor + StartCycle; - } - - Counter = 0U; - - /* Wait until the LCKM bit into TTTMK register is reset */ - while ((hfdcan->ttcan->TTTMK & FDCAN_TTTMK_LCKM) != 0U) - { - /* Check for the Timeout */ - if (Counter > FDCAN_TIMEOUT_COUNT) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_TIMEOUT; - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - - return HAL_ERROR; - } - - /* Increment counter */ - Counter++; - } - - /* Configure time mark value and cycle code */ - hfdcan->ttcan->TTTMK = ((TimeMarkValue << FDCAN_TTTMK_TM_Pos) | (CycleCode << FDCAN_TTTMK_TICC_Pos)); - - Counter = 0U; - - /* Wait until the LCKC bit into TTOCN register is reset */ - while ((hfdcan->ttcan->TTOCN & FDCAN_TTOCN_LCKC) != 0U) - { - /* Check for the Timeout */ - if (Counter > FDCAN_TIMEOUT_COUNT) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_TIMEOUT; - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - - return HAL_ERROR; - } - - /* Increment counter */ - Counter++; - } - - /* Update the register time mark compare source */ - MODIFY_REG(hfdcan->ttcan->TTOCN, FDCAN_TTOCN_TMC, TimeMarkSource); - } - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_INITIALIZED; - - return HAL_ERROR; - } -} - -/** - * @brief Enable register time mark pulse generation. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_TT_EnableRegisterTimeMarkPulse(FDCAN_HandleTypeDef *hfdcan) -{ - uint32_t Counter = 0U; - HAL_FDCAN_StateTypeDef state = hfdcan->State; - - /* Check function parameters */ - assert_param(IS_FDCAN_TT_INSTANCE(hfdcan->Instance)); - - if ((state == HAL_FDCAN_STATE_READY) || (state == HAL_FDCAN_STATE_BUSY)) - { - /* Wait until the LCKC bit into TTOCN register is reset */ - while ((hfdcan->ttcan->TTOCN & FDCAN_TTOCN_LCKC) != 0U) - { - /* Check for the Timeout */ - if (Counter > FDCAN_TIMEOUT_COUNT) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_TIMEOUT; - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - - return HAL_ERROR; - } - - /* Increment counter */ - Counter++; - } - - /* Enable Register Time Mark Interrupt output on fdcan1_rtp */ - SET_BIT(hfdcan->ttcan->TTOCN, FDCAN_TTOCN_RTIE); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_INITIALIZED; - - return HAL_ERROR; - } -} - -/** - * @brief Disable register time mark pulse generation. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_TT_DisableRegisterTimeMarkPulse(FDCAN_HandleTypeDef *hfdcan) -{ - uint32_t Counter = 0U; - HAL_FDCAN_StateTypeDef state = hfdcan->State; - - /* Check function parameters */ - assert_param(IS_FDCAN_TT_INSTANCE(hfdcan->Instance)); - - if ((state == HAL_FDCAN_STATE_READY) || (state == HAL_FDCAN_STATE_BUSY)) - { - /* Wait until the LCKC bit into TTOCN register is reset */ - while ((hfdcan->ttcan->TTOCN & FDCAN_TTOCN_LCKC) != 0U) - { - /* Check for the Timeout */ - if (Counter > FDCAN_TIMEOUT_COUNT) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_TIMEOUT; - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - - return HAL_ERROR; - } - - /* Increment counter */ - Counter++; - } - - /* Disable Register Time Mark Interrupt output on fdcan1_rtp */ - CLEAR_BIT(hfdcan->ttcan->TTOCN, FDCAN_TTOCN_RTIE); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_INITIALIZED; - - return HAL_ERROR; - } -} - -/** - * @brief Enable trigger time mark pulse generation. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_TT_EnableTriggerTimeMarkPulse(FDCAN_HandleTypeDef *hfdcan) -{ - uint32_t Counter = 0U; - HAL_FDCAN_StateTypeDef state = hfdcan->State; - - /* Check function parameters */ - assert_param(IS_FDCAN_TT_INSTANCE(hfdcan->Instance)); - - if ((state == HAL_FDCAN_STATE_READY) || (state == HAL_FDCAN_STATE_BUSY)) - { - if ((hfdcan->ttcan->TTOCF & FDCAN_TTOCF_OM) != FDCAN_TT_COMMUNICATION_LEVEL0) - { - /* Wait until the LCKC bit into TTOCN register is reset */ - while ((hfdcan->ttcan->TTOCN & FDCAN_TTOCN_LCKC) != 0U) - { - /* Check for the Timeout */ - if (Counter > FDCAN_TIMEOUT_COUNT) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_TIMEOUT; - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - - return HAL_ERROR; - } - - /* Increment counter */ - Counter++; - } - - /* Enable Trigger Time Mark Interrupt output on fdcan1_tmp */ - SET_BIT(hfdcan->ttcan->TTOCN, FDCAN_TTOCN_TTIE); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code. - Feature not supported for TT Level 0 */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_SUPPORTED; - - return HAL_ERROR; - } - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_INITIALIZED; - - return HAL_ERROR; - } -} - -/** - * @brief Disable trigger time mark pulse generation. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_TT_DisableTriggerTimeMarkPulse(FDCAN_HandleTypeDef *hfdcan) -{ - uint32_t Counter = 0U; - HAL_FDCAN_StateTypeDef state = hfdcan->State; - - /* Check function parameters */ - assert_param(IS_FDCAN_TT_INSTANCE(hfdcan->Instance)); - - if ((state == HAL_FDCAN_STATE_READY) || (state == HAL_FDCAN_STATE_BUSY)) - { - if ((hfdcan->ttcan->TTOCF & FDCAN_TTOCF_OM) != FDCAN_TT_COMMUNICATION_LEVEL0) - { - /* Wait until the LCKC bit into TTOCN register is reset */ - while ((hfdcan->ttcan->TTOCN & FDCAN_TTOCN_LCKC) != 0U) - { - /* Check for the Timeout */ - if (Counter > FDCAN_TIMEOUT_COUNT) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_TIMEOUT; - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - - return HAL_ERROR; - } - - /* Increment counter */ - Counter++; - } - - /* Disable Trigger Time Mark Interrupt output on fdcan1_rtp */ - CLEAR_BIT(hfdcan->ttcan->TTOCN, FDCAN_TTOCN_TTIE); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code. - Feature not supported for TT Level 0 */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_SUPPORTED; - - return HAL_ERROR; - } - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_INITIALIZED; - - return HAL_ERROR; - } -} - -/** - * @brief Enable gap control by input pin fdcan1_evt. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_TT_EnableHardwareGapControl(FDCAN_HandleTypeDef *hfdcan) -{ - uint32_t Counter = 0U; - HAL_FDCAN_StateTypeDef state = hfdcan->State; - - /* Check function parameters */ - assert_param(IS_FDCAN_TT_INSTANCE(hfdcan->Instance)); - - if ((state == HAL_FDCAN_STATE_READY) || (state == HAL_FDCAN_STATE_BUSY)) - { - if ((hfdcan->ttcan->TTOCF & FDCAN_TTOCF_OM) != FDCAN_TT_COMMUNICATION_LEVEL0) - { - /* Wait until the LCKC bit into TTOCN register is reset */ - while ((hfdcan->ttcan->TTOCN & FDCAN_TTOCN_LCKC) != 0U) - { - /* Check for the Timeout */ - if (Counter > FDCAN_TIMEOUT_COUNT) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_TIMEOUT; - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - - return HAL_ERROR; - } - - /* Increment counter */ - Counter++; - } - - /* Enable gap control by pin fdcan1_evt */ - SET_BIT(hfdcan->ttcan->TTOCN, FDCAN_TTOCN_GCS); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code. - Feature not supported for TT Level 0 */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_SUPPORTED; - - return HAL_ERROR; - } - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_INITIALIZED; - - return HAL_ERROR; - } -} - -/** - * @brief Disable gap control by input pin fdcan1_evt. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_TT_DisableHardwareGapControl(FDCAN_HandleTypeDef *hfdcan) -{ - uint32_t Counter = 0U; - HAL_FDCAN_StateTypeDef state = hfdcan->State; - - /* Check function parameters */ - assert_param(IS_FDCAN_TT_INSTANCE(hfdcan->Instance)); - - if ((state == HAL_FDCAN_STATE_READY) || (state == HAL_FDCAN_STATE_BUSY)) - { - if ((hfdcan->ttcan->TTOCF & FDCAN_TTOCF_OM) != FDCAN_TT_COMMUNICATION_LEVEL0) - { - /* Wait until the LCKC bit into TTOCN register is reset */ - while ((hfdcan->ttcan->TTOCN & FDCAN_TTOCN_LCKC) != 0U) - { - /* Check for the Timeout */ - if (Counter > FDCAN_TIMEOUT_COUNT) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_TIMEOUT; - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - - return HAL_ERROR; - } - - /* Increment counter */ - Counter++; - } - - /* Disable gap control by pin fdcan1_evt */ - CLEAR_BIT(hfdcan->ttcan->TTOCN, FDCAN_TTOCN_GCS); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code. - Feature not supported for TT Level 0 */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_SUPPORTED; - - return HAL_ERROR; - } - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_INITIALIZED; - - return HAL_ERROR; - } -} - -/** - * @brief Enable gap control (finish only) by register time mark interrupt. - * The next register time mark interrupt (TTIR.RTMI = "1") will finish - * the Gap and start the reference message. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_TT_EnableTimeMarkGapControl(FDCAN_HandleTypeDef *hfdcan) -{ - uint32_t Counter = 0U; - HAL_FDCAN_StateTypeDef state = hfdcan->State; - - /* Check function parameters */ - assert_param(IS_FDCAN_TT_INSTANCE(hfdcan->Instance)); - - if ((state == HAL_FDCAN_STATE_READY) || (state == HAL_FDCAN_STATE_BUSY)) - { - if ((hfdcan->ttcan->TTOCF & FDCAN_TTOCF_OM) != FDCAN_TT_COMMUNICATION_LEVEL0) - { - /* Wait until the LCKC bit into TTOCN register is reset */ - while ((hfdcan->ttcan->TTOCN & FDCAN_TTOCN_LCKC) != 0U) - { - /* Check for the Timeout */ - if (Counter > FDCAN_TIMEOUT_COUNT) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_TIMEOUT; - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - - return HAL_ERROR; - } - - /* Increment counter */ - Counter++; - } - - /* Enable gap control by register time mark interrupt */ - SET_BIT(hfdcan->ttcan->TTOCN, FDCAN_TTOCN_TMG); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code. - Feature not supported for TT Level 0 */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_SUPPORTED; - - return HAL_ERROR; - } - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_INITIALIZED; - - return HAL_ERROR; - } -} - -/** - * @brief Disable gap control by register time mark interrupt. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_TT_DisableTimeMarkGapControl(FDCAN_HandleTypeDef *hfdcan) -{ - uint32_t Counter = 0U; - HAL_FDCAN_StateTypeDef state = hfdcan->State; - - /* Check function parameters */ - assert_param(IS_FDCAN_TT_INSTANCE(hfdcan->Instance)); - - if ((state == HAL_FDCAN_STATE_READY) || (state == HAL_FDCAN_STATE_BUSY)) - { - if ((hfdcan->ttcan->TTOCF & FDCAN_TTOCF_OM) != FDCAN_TT_COMMUNICATION_LEVEL0) - { - /* Wait until the LCKC bit into TTOCN register is reset */ - while ((hfdcan->ttcan->TTOCN & FDCAN_TTOCN_LCKC) != 0U) - { - /* Check for the Timeout */ - if (Counter > FDCAN_TIMEOUT_COUNT) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_TIMEOUT; - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - - return HAL_ERROR; - } - - /* Increment counter */ - Counter++; - } - - /* Disable gap control by register time mark interrupt */ - CLEAR_BIT(hfdcan->ttcan->TTOCN, FDCAN_TTOCN_TMG); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code. - Feature not supported for TT Level 0 */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_SUPPORTED; - - return HAL_ERROR; - } - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_INITIALIZED; - - return HAL_ERROR; - } -} - -/** - * @brief Transmit next reference message with Next_is_Gap = "1". - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_TT_SetNextIsGap(FDCAN_HandleTypeDef *hfdcan) -{ - uint32_t Counter = 0U; - HAL_FDCAN_StateTypeDef state = hfdcan->State; - - /* Check function parameters */ - assert_param(IS_FDCAN_TT_INSTANCE(hfdcan->Instance)); - - if ((state == HAL_FDCAN_STATE_READY) || (state == HAL_FDCAN_STATE_BUSY)) - { - /* Check that the node is configured for external event-synchronized TT operation */ - if ((hfdcan->ttcan->TTOCF & FDCAN_TTOCF_GEN) != FDCAN_TTOCF_GEN) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_SUPPORTED; - - return HAL_ERROR; - } - - if ((hfdcan->ttcan->TTOCF & FDCAN_TTOCF_OM) != FDCAN_TT_COMMUNICATION_LEVEL0) - { - /* Wait until the LCKC bit into TTOCN register is reset */ - while ((hfdcan->ttcan->TTOCN & FDCAN_TTOCN_LCKC) != 0U) - { - /* Check for the Timeout */ - if (Counter > FDCAN_TIMEOUT_COUNT) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_TIMEOUT; - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - - return HAL_ERROR; - } - - /* Increment counter */ - Counter++; - } - - /* Set Next is Gap */ - SET_BIT(hfdcan->ttcan->TTOCN, FDCAN_TTOCN_NIG); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code. - Feature not supported for TT Level 0 */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_SUPPORTED; - - return HAL_ERROR; - } - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_INITIALIZED; - - return HAL_ERROR; - } -} - -/** - * @brief Finish a Gap by requesting start of reference message. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_TT_SetEndOfGap(FDCAN_HandleTypeDef *hfdcan) -{ - uint32_t Counter = 0U; - HAL_FDCAN_StateTypeDef state = hfdcan->State; - - /* Check function parameters */ - assert_param(IS_FDCAN_TT_INSTANCE(hfdcan->Instance)); - - if ((state == HAL_FDCAN_STATE_READY) || (state == HAL_FDCAN_STATE_BUSY)) - { - /* Check that the node is configured for external event-synchronized TT operation */ - if ((hfdcan->ttcan->TTOCF & FDCAN_TTOCF_GEN) != FDCAN_TTOCF_GEN) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_SUPPORTED; - - return HAL_ERROR; - } - - if ((hfdcan->ttcan->TTOCF & FDCAN_TTOCF_OM) != FDCAN_TT_COMMUNICATION_LEVEL0) - { - /* Wait until the LCKC bit into TTOCN register is reset */ - while ((hfdcan->ttcan->TTOCN & FDCAN_TTOCN_LCKC) != 0U) - { - /* Check for the Timeout */ - if (Counter > FDCAN_TIMEOUT_COUNT) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_TIMEOUT; - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - - return HAL_ERROR; - } - - /* Increment counter */ - Counter++; - } - - /* Set Finish Gap */ - SET_BIT(hfdcan->ttcan->TTOCN, FDCAN_TTOCN_FGP); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code. - Feature not supported for TT Level 0 */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_SUPPORTED; - - return HAL_ERROR; - } - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_INITIALIZED; - - return HAL_ERROR; - } -} - -/** - * @brief Configure target phase used for external synchronization by event - * trigger input pin fdcan1_evt. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param TargetPhase defines target value of cycle time when a rising edge - * of fdcan1_evt is expected. - * This parameter must be a number between 0 and 0xFFFF. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_TT_ConfigExternalSyncPhase(FDCAN_HandleTypeDef *hfdcan, uint32_t TargetPhase) -{ - HAL_FDCAN_StateTypeDef state = hfdcan->State; - - /* Check function parameters */ - assert_param(IS_FDCAN_TT_INSTANCE(hfdcan->Instance)); - assert_param(IS_FDCAN_MAX_VALUE(TargetPhase, 0xFFFFU)); - - if ((state == HAL_FDCAN_STATE_READY) || (state == HAL_FDCAN_STATE_BUSY)) - { - /* Check that no external schedule synchronization is pending */ - if ((hfdcan->ttcan->TTOCN & FDCAN_TTOCN_ESCN) == FDCAN_TTOCN_ESCN) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_PENDING; - - return HAL_ERROR; - } - - /* Configure cycle time target phase */ - MODIFY_REG(hfdcan->ttcan->TTGTP, FDCAN_TTGTP_CTP, (TargetPhase << FDCAN_TTGTP_CTP_Pos)); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_INITIALIZED; - - return HAL_ERROR; - } -} - -/** - * @brief Synchronize the phase of the FDCAN schedule to an external schedule - * using event trigger input pin fdcan1_evt. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_TT_EnableExternalSynchronization(FDCAN_HandleTypeDef *hfdcan) -{ - uint32_t Counter = 0U; - HAL_FDCAN_StateTypeDef state = hfdcan->State; - - /* Check function parameters */ - assert_param(IS_FDCAN_TT_INSTANCE(hfdcan->Instance)); - - if ((state == HAL_FDCAN_STATE_READY) || (state == HAL_FDCAN_STATE_BUSY)) - { - /* Wait until the LCKC bit into TTOCN register is reset */ - while ((hfdcan->ttcan->TTOCN & FDCAN_TTOCN_LCKC) != 0U) - { - /* Check for the Timeout */ - if (Counter > FDCAN_TIMEOUT_COUNT) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_TIMEOUT; - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - - return HAL_ERROR; - } - - /* Increment counter */ - Counter++; - } - - /* Enable external synchronization */ - SET_BIT(hfdcan->ttcan->TTOCN, FDCAN_TTOCN_ESCN); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_INITIALIZED; - - return HAL_ERROR; - } -} - -/** - * @brief Disable external schedule synchronization. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_TT_DisableExternalSynchronization(FDCAN_HandleTypeDef *hfdcan) -{ - uint32_t Counter = 0U; - HAL_FDCAN_StateTypeDef state = hfdcan->State; - - /* Check function parameters */ - assert_param(IS_FDCAN_TT_INSTANCE(hfdcan->Instance)); - - if ((state == HAL_FDCAN_STATE_READY) || (state == HAL_FDCAN_STATE_BUSY)) - { - /* Wait until the LCKC bit into TTOCN register is reset */ - while ((hfdcan->ttcan->TTOCN & FDCAN_TTOCN_LCKC) != 0U) - { - /* Check for the Timeout */ - if (Counter > FDCAN_TIMEOUT_COUNT) - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_TIMEOUT; - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - - return HAL_ERROR; - } - - /* Increment counter */ - Counter++; - } - - /* Disable external synchronization */ - CLEAR_BIT(hfdcan->ttcan->TTOCN, FDCAN_TTOCN_ESCN); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_INITIALIZED; - - return HAL_ERROR; - } -} - -/** - * @brief Get TT operation status. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param TTOpStatus pointer to an FDCAN_TTOperationStatusTypeDef structure. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_TT_GetOperationStatus(FDCAN_HandleTypeDef *hfdcan, FDCAN_TTOperationStatusTypeDef *TTOpStatus) -{ - uint32_t TTStatusReg; - - /* Check function parameters */ - assert_param(IS_FDCAN_TT_INSTANCE(hfdcan->Instance)); - - /* Read the TT operation status register */ - TTStatusReg = READ_REG(hfdcan->ttcan->TTOST); - - /* Fill the TT operation status structure */ - TTOpStatus->ErrorLevel = (TTStatusReg & FDCAN_TTOST_EL); - TTOpStatus->MasterState = (TTStatusReg & FDCAN_TTOST_MS); - TTOpStatus->SyncState = (TTStatusReg & FDCAN_TTOST_SYS); - TTOpStatus->GTimeQuality = ((TTStatusReg & FDCAN_TTOST_QGTP) >> FDCAN_TTOST_QGTP_Pos); - TTOpStatus->ClockQuality = ((TTStatusReg & FDCAN_TTOST_QCS) >> FDCAN_TTOST_QCS_Pos); - TTOpStatus->RefTrigOffset = ((TTStatusReg & FDCAN_TTOST_RTO) >> FDCAN_TTOST_RTO_Pos); - TTOpStatus->GTimeDiscPending = ((TTStatusReg & FDCAN_TTOST_WGTD) >> FDCAN_TTOST_WGTD_Pos); - TTOpStatus->GapFinished = ((TTStatusReg & FDCAN_TTOST_GFI) >> FDCAN_TTOST_GFI_Pos); - TTOpStatus->MasterPriority = ((TTStatusReg & FDCAN_TTOST_TMP) >> FDCAN_TTOST_TMP_Pos); - TTOpStatus->GapStarted = ((TTStatusReg & FDCAN_TTOST_GSI) >> FDCAN_TTOST_GSI_Pos); - TTOpStatus->WaitForEvt = ((TTStatusReg & FDCAN_TTOST_WFE) >> FDCAN_TTOST_WFE_Pos); - TTOpStatus->AppWdgEvt = ((TTStatusReg & FDCAN_TTOST_AWE) >> FDCAN_TTOST_AWE_Pos); - TTOpStatus->ECSPending = ((TTStatusReg & FDCAN_TTOST_WECS) >> FDCAN_TTOST_WECS_Pos); - TTOpStatus->PhaseLock = ((TTStatusReg & FDCAN_TTOST_SPL) >> FDCAN_TTOST_SPL_Pos); - - /* Return function status */ - return HAL_OK; -} - -/** - * @} - */ - -/** @defgroup FDCAN_Exported_Functions_Group5 Interrupts management - * @brief Interrupts management - * -@verbatim - ============================================================================== - ##### Interrupts management ##### - ============================================================================== - [..] This section provides functions allowing to: - (+) HAL_FDCAN_ConfigInterruptLines : Assign interrupts to either Interrupt line 0 or 1 - (+) HAL_FDCAN_TT_ConfigInterruptLines : Assign TT interrupts to either Interrupt line 0 or 1 - (+) HAL_FDCAN_ActivateNotification : Enable interrupts - (+) HAL_FDCAN_DeactivateNotification : Disable interrupts - (+) HAL_FDCAN_TT_ActivateNotification : Enable TT interrupts - (+) HAL_FDCAN_TT_DeactivateNotification : Disable TT interrupts - (+) HAL_FDCAN_IRQHandler : Handles FDCAN interrupt request - -@endverbatim - * @{ - */ - -/** - * @brief Assign interrupts to either Interrupt line 0 or 1. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param ITList indicates which interrupts will be assigned to the selected interrupt line. - * This parameter can be any combination of @arg FDCAN_Interrupts. - * @param InterruptLine Interrupt line. - * This parameter can be a value of @arg FDCAN_Interrupt_Line. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_ConfigInterruptLines(FDCAN_HandleTypeDef *hfdcan, uint32_t ITList, uint32_t InterruptLine) -{ - HAL_FDCAN_StateTypeDef state = hfdcan->State; - - /* Check function parameters */ - assert_param(IS_FDCAN_IT(ITList)); - assert_param(IS_FDCAN_IT_LINE(InterruptLine)); - - if ((state == HAL_FDCAN_STATE_READY) || (state == HAL_FDCAN_STATE_BUSY)) - { - /* Assign list of interrupts to the selected line */ - if (InterruptLine == FDCAN_INTERRUPT_LINE0) - { - CLEAR_BIT(hfdcan->Instance->ILS, ITList); - } - else /* InterruptLine == FDCAN_INTERRUPT_LINE1 */ - { - SET_BIT(hfdcan->Instance->ILS, ITList); - } - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_INITIALIZED; - - return HAL_ERROR; - } -} - -/** - * @brief Assign TT interrupts to either Interrupt line 0 or 1. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param TTITList indicates which interrupts will be assigned to the selected interrupt line. - * This parameter can be any combination of @arg FDCAN_TTInterrupts. - * @param InterruptLine Interrupt line. - * This parameter can be a value of @arg FDCAN_Interrupt_Line. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_TT_ConfigInterruptLines(FDCAN_HandleTypeDef *hfdcan, uint32_t TTITList, uint32_t InterruptLine) -{ - HAL_FDCAN_StateTypeDef state = hfdcan->State; - - /* Check function parameters */ - assert_param(IS_FDCAN_TT_INSTANCE(hfdcan->Instance)); - assert_param(IS_FDCAN_TT_IT(TTITList)); - assert_param(IS_FDCAN_IT_LINE(InterruptLine)); - - if ((state == HAL_FDCAN_STATE_READY) || (state == HAL_FDCAN_STATE_BUSY)) - { - /* Assign list of interrupts to the selected line */ - if (InterruptLine == FDCAN_INTERRUPT_LINE0) - { - CLEAR_BIT(hfdcan->ttcan->TTILS, TTITList); - } - else /* InterruptLine == FDCAN_INTERRUPT_LINE1 */ - { - SET_BIT(hfdcan->ttcan->TTILS, TTITList); - } - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_INITIALIZED; - - return HAL_ERROR; - } -} - -/** - * @brief Enable interrupts. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param ActiveITs indicates which interrupts will be enabled. - * This parameter can be any combination of @arg FDCAN_Interrupts. - * @param BufferIndexes Tx Buffer Indexes. - * This parameter can be any combination of @arg FDCAN_Tx_location. - * This parameter is ignored if ActiveITs does not include one of the following: - * - FDCAN_IT_TX_COMPLETE - * - FDCAN_IT_TX_ABORT_COMPLETE - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_ActivateNotification(FDCAN_HandleTypeDef *hfdcan, uint32_t ActiveITs, uint32_t BufferIndexes) -{ - HAL_FDCAN_StateTypeDef state = hfdcan->State; - - /* Check function parameters */ - assert_param(IS_FDCAN_IT(ActiveITs)); - - if ((state == HAL_FDCAN_STATE_READY) || (state == HAL_FDCAN_STATE_BUSY)) - { - /* Enable Interrupt lines */ - if ((ActiveITs & hfdcan->Instance->ILS) == 0U) - { - /* Enable Interrupt line 0 */ - SET_BIT(hfdcan->Instance->ILE, FDCAN_INTERRUPT_LINE0); - } - else if ((ActiveITs & hfdcan->Instance->ILS) == ActiveITs) - { - /* Enable Interrupt line 1 */ - SET_BIT(hfdcan->Instance->ILE, FDCAN_INTERRUPT_LINE1); - } - else - { - /* Enable Interrupt lines 0 and 1 */ - hfdcan->Instance->ILE = (FDCAN_INTERRUPT_LINE0 | FDCAN_INTERRUPT_LINE1); - } - - if ((ActiveITs & FDCAN_IT_TX_COMPLETE) != 0U) - { - /* Enable Tx Buffer Transmission Interrupt to set TC flag in IR register, - but interrupt will only occur if TC is enabled in IE register */ - SET_BIT(hfdcan->Instance->TXBTIE, BufferIndexes); - } - - if ((ActiveITs & FDCAN_IT_TX_ABORT_COMPLETE) != 0U) - { - /* Enable Tx Buffer Cancellation Finished Interrupt to set TCF flag in IR register, - but interrupt will only occur if TCF is enabled in IE register */ - SET_BIT(hfdcan->Instance->TXBCIE, BufferIndexes); - } - - /* Enable the selected interrupts */ - __HAL_FDCAN_ENABLE_IT(hfdcan, ActiveITs); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_INITIALIZED; - - return HAL_ERROR; - } -} - -/** - * @brief Disable interrupts. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param InactiveITs indicates which interrupts will be disabled. - * This parameter can be any combination of @arg FDCAN_Interrupts. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_DeactivateNotification(FDCAN_HandleTypeDef *hfdcan, uint32_t InactiveITs) -{ - uint32_t ITLineSelection; - HAL_FDCAN_StateTypeDef state = hfdcan->State; - - /* Check function parameters */ - assert_param(IS_FDCAN_IT(InactiveITs)); - - if ((state == HAL_FDCAN_STATE_READY) || (state == HAL_FDCAN_STATE_BUSY)) - { - /* Disable the selected interrupts */ - __HAL_FDCAN_DISABLE_IT(hfdcan, InactiveITs); - - if ((InactiveITs & FDCAN_IT_TX_COMPLETE) != 0U) - { - /* Disable Tx Buffer Transmission Interrupts */ - CLEAR_REG(hfdcan->Instance->TXBTIE); - } - - if ((InactiveITs & FDCAN_IT_TX_ABORT_COMPLETE) != 0U) - { - /* Disable Tx Buffer Cancellation Finished Interrupt */ - CLEAR_REG(hfdcan->Instance->TXBCIE); - } - - ITLineSelection = hfdcan->Instance->ILS; - - if ((hfdcan->Instance->IE | ITLineSelection) == ITLineSelection) - { - /* Disable Interrupt line 0 */ - CLEAR_BIT(hfdcan->Instance->ILE, FDCAN_INTERRUPT_LINE0); - } - - if ((hfdcan->Instance->IE & ITLineSelection) == 0U) - { - /* Disable Interrupt line 1 */ - CLEAR_BIT(hfdcan->Instance->ILE, FDCAN_INTERRUPT_LINE1); - } - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_INITIALIZED; - - return HAL_ERROR; - } -} - -/** - * @brief Enable TT interrupts. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param ActiveTTITs indicates which TT interrupts will be enabled. - * This parameter can be any combination of @arg FDCAN_TTInterrupts. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_TT_ActivateNotification(FDCAN_HandleTypeDef *hfdcan, uint32_t ActiveTTITs) -{ - HAL_FDCAN_StateTypeDef state = hfdcan->State; - - /* Check function parameters */ - assert_param(IS_FDCAN_TT_INSTANCE(hfdcan->Instance)); - assert_param(IS_FDCAN_TT_IT(ActiveTTITs)); - - if ((state == HAL_FDCAN_STATE_READY) || (state == HAL_FDCAN_STATE_BUSY)) - { - /* Enable Interrupt lines */ - if ((ActiveTTITs & hfdcan->ttcan->TTILS) == 0U) - { - /* Enable Interrupt line 0 */ - SET_BIT(hfdcan->Instance->ILE, FDCAN_INTERRUPT_LINE0); - } - else if ((ActiveTTITs & hfdcan->ttcan->TTILS) == ActiveTTITs) - { - /* Enable Interrupt line 1 */ - SET_BIT(hfdcan->Instance->ILE, FDCAN_INTERRUPT_LINE1); - } - else - { - /* Enable Interrupt lines 0 and 1 */ - hfdcan->Instance->ILE = (FDCAN_INTERRUPT_LINE0 | FDCAN_INTERRUPT_LINE1); - } - - /* Enable the selected TT interrupts */ - __HAL_FDCAN_TT_ENABLE_IT(hfdcan, ActiveTTITs); - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_INITIALIZED; - - return HAL_ERROR; - } -} - -/** - * @brief Disable TT interrupts. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param InactiveTTITs indicates which TT interrupts will be disabled. - * This parameter can be any combination of @arg FDCAN_TTInterrupts. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_FDCAN_TT_DeactivateNotification(FDCAN_HandleTypeDef *hfdcan, uint32_t InactiveTTITs) -{ - uint32_t ITLineSelection; - HAL_FDCAN_StateTypeDef state = hfdcan->State; - - /* Check function parameters */ - assert_param(IS_FDCAN_TT_INSTANCE(hfdcan->Instance)); - assert_param(IS_FDCAN_TT_IT(InactiveTTITs)); - - if ((state == HAL_FDCAN_STATE_READY) || (state == HAL_FDCAN_STATE_BUSY)) - { - /* Disable the selected TT interrupts */ - __HAL_FDCAN_TT_DISABLE_IT(hfdcan, InactiveTTITs); - - ITLineSelection = hfdcan->ttcan->TTILS; - - if ((hfdcan->ttcan->TTIE | ITLineSelection) == ITLineSelection) - { - /* Disable Interrupt line 0 */ - CLEAR_BIT(hfdcan->Instance->ILE, FDCAN_INTERRUPT_LINE0); - } - - if ((hfdcan->ttcan->TTIE & ITLineSelection) == 0U) - { - /* Disable Interrupt line 1 */ - CLEAR_BIT(hfdcan->Instance->ILE, FDCAN_INTERRUPT_LINE1); - } - - /* Return function status */ - return HAL_OK; - } - else - { - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_NOT_INITIALIZED; - - return HAL_ERROR; - } -} - -/** - * @brief Handles FDCAN interrupt request. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -void HAL_FDCAN_IRQHandler(FDCAN_HandleTypeDef *hfdcan) -{ - uint32_t ClkCalibrationITs; - uint32_t TxEventFifoITs; - uint32_t RxFifo0ITs; - uint32_t RxFifo1ITs; - uint32_t Errors; - uint32_t ErrorStatusITs; - uint32_t TransmittedBuffers; - uint32_t AbortedBuffers; - uint32_t TTSchedSyncITs; - uint32_t TTTimeMarkITs; - uint32_t TTGlobTimeITs; - uint32_t TTDistErrors; - uint32_t TTFatalErrors; - uint32_t SWTime; - uint32_t SWCycleCount; - uint32_t itsourceIE; - uint32_t itsourceTTIE; - uint32_t itflagIR; - uint32_t itflagTTIR; - - ClkCalibrationITs = (FDCAN_CCU->IR << 30); - ClkCalibrationITs &= (FDCAN_CCU->IE << 30); - TxEventFifoITs = hfdcan->Instance->IR & FDCAN_TX_EVENT_FIFO_MASK; - TxEventFifoITs &= hfdcan->Instance->IE; - RxFifo0ITs = hfdcan->Instance->IR & FDCAN_RX_FIFO0_MASK; - RxFifo0ITs &= hfdcan->Instance->IE; - RxFifo1ITs = hfdcan->Instance->IR & FDCAN_RX_FIFO1_MASK; - RxFifo1ITs &= hfdcan->Instance->IE; - Errors = hfdcan->Instance->IR & FDCAN_ERROR_MASK; - Errors &= hfdcan->Instance->IE; - ErrorStatusITs = hfdcan->Instance->IR & FDCAN_ERROR_STATUS_MASK; - ErrorStatusITs &= hfdcan->Instance->IE; - itsourceIE = hfdcan->Instance->IE; - itflagIR = hfdcan->Instance->IR; - - /* High Priority Message interrupt management *******************************/ - if (FDCAN_CHECK_IT_SOURCE(itsourceIE, FDCAN_IT_RX_HIGH_PRIORITY_MSG) != RESET) - { - if (FDCAN_CHECK_FLAG(itflagIR, FDCAN_FLAG_RX_HIGH_PRIORITY_MSG) != RESET) - { - /* Clear the High Priority Message flag */ - __HAL_FDCAN_CLEAR_FLAG(hfdcan, FDCAN_FLAG_RX_HIGH_PRIORITY_MSG); - -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->HighPriorityMessageCallback(hfdcan); -#else - /* High Priority Message Callback */ - HAL_FDCAN_HighPriorityMessageCallback(hfdcan); -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - } - - /* Transmission Abort interrupt management **********************************/ - if (FDCAN_CHECK_IT_SOURCE(itsourceIE, FDCAN_IT_TX_ABORT_COMPLETE) != RESET) - { - if (FDCAN_CHECK_FLAG(itflagIR, FDCAN_FLAG_TX_ABORT_COMPLETE) != RESET) - { - /* List of aborted monitored buffers */ - AbortedBuffers = hfdcan->Instance->TXBCF; - AbortedBuffers &= hfdcan->Instance->TXBCIE; - - /* Clear the Transmission Cancellation flag */ - __HAL_FDCAN_CLEAR_FLAG(hfdcan, FDCAN_FLAG_TX_ABORT_COMPLETE); - -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->TxBufferAbortCallback(hfdcan, AbortedBuffers); -#else - /* Transmission Cancellation Callback */ - HAL_FDCAN_TxBufferAbortCallback(hfdcan, AbortedBuffers); -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - } - - /* Clock calibration unit interrupts management *****************************/ - if (ClkCalibrationITs != 0U) - { - /* Clear the Clock Calibration flags */ - __HAL_FDCAN_CLEAR_FLAG(hfdcan, ClkCalibrationITs); - -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->ClockCalibrationCallback(hfdcan, ClkCalibrationITs); -#else - /* Clock Calibration Callback */ - HAL_FDCAN_ClockCalibrationCallback(hfdcan, ClkCalibrationITs); -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - - /* Tx event FIFO interrupts management **************************************/ - if (TxEventFifoITs != 0U) - { - /* Clear the Tx Event FIFO flags */ - __HAL_FDCAN_CLEAR_FLAG(hfdcan, TxEventFifoITs); - -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->TxEventFifoCallback(hfdcan, TxEventFifoITs); -#else - /* Tx Event FIFO Callback */ - HAL_FDCAN_TxEventFifoCallback(hfdcan, TxEventFifoITs); -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - - /* Rx FIFO 0 interrupts management ******************************************/ - if (RxFifo0ITs != 0U) - { - /* Clear the Rx FIFO 0 flags */ - __HAL_FDCAN_CLEAR_FLAG(hfdcan, RxFifo0ITs); - -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->RxFifo0Callback(hfdcan, RxFifo0ITs); -#else - /* Rx FIFO 0 Callback */ - HAL_FDCAN_RxFifo0Callback(hfdcan, RxFifo0ITs); -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - - /* Rx FIFO 1 interrupts management ******************************************/ - if (RxFifo1ITs != 0U) - { - /* Clear the Rx FIFO 1 flags */ - __HAL_FDCAN_CLEAR_FLAG(hfdcan, RxFifo1ITs); - -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->RxFifo1Callback(hfdcan, RxFifo1ITs); -#else - /* Rx FIFO 1 Callback */ - HAL_FDCAN_RxFifo1Callback(hfdcan, RxFifo1ITs); -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - - /* Tx FIFO empty interrupt management ***************************************/ - if (FDCAN_CHECK_IT_SOURCE(itsourceIE, FDCAN_IT_TX_FIFO_EMPTY) != RESET) - { - if (FDCAN_CHECK_FLAG(itflagIR, FDCAN_FLAG_TX_FIFO_EMPTY) != RESET) - { - /* Clear the Tx FIFO empty flag */ - __HAL_FDCAN_CLEAR_FLAG(hfdcan, FDCAN_FLAG_TX_FIFO_EMPTY); - -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->TxFifoEmptyCallback(hfdcan); -#else - /* Tx FIFO empty Callback */ - HAL_FDCAN_TxFifoEmptyCallback(hfdcan); -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - } - - /* Transmission Complete interrupt management *******************************/ - if (FDCAN_CHECK_IT_SOURCE(itsourceIE, FDCAN_IT_TX_COMPLETE) != RESET) - { - if (FDCAN_CHECK_FLAG(itflagIR, FDCAN_FLAG_TX_COMPLETE) != RESET) - { - /* List of transmitted monitored buffers */ - TransmittedBuffers = hfdcan->Instance->TXBTO; - TransmittedBuffers &= hfdcan->Instance->TXBTIE; - - /* Clear the Transmission Complete flag */ - __HAL_FDCAN_CLEAR_FLAG(hfdcan, FDCAN_FLAG_TX_COMPLETE); - -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->TxBufferCompleteCallback(hfdcan, TransmittedBuffers); -#else - /* Transmission Complete Callback */ - HAL_FDCAN_TxBufferCompleteCallback(hfdcan, TransmittedBuffers); -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - } - - /* Rx Buffer New Message interrupt management *******************************/ - if (FDCAN_CHECK_IT_SOURCE(itsourceIE, FDCAN_IT_RX_BUFFER_NEW_MESSAGE) != RESET) - { - if (FDCAN_CHECK_FLAG(itflagIR, FDCAN_FLAG_RX_BUFFER_NEW_MESSAGE) != RESET) - { - /* Clear the Rx Buffer New Message flag */ - __HAL_FDCAN_CLEAR_FLAG(hfdcan, FDCAN_FLAG_RX_BUFFER_NEW_MESSAGE); - -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->RxBufferNewMessageCallback(hfdcan); -#else - /* Rx Buffer New Message Callback */ - HAL_FDCAN_RxBufferNewMessageCallback(hfdcan); -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - } - - /* Timestamp Wraparound interrupt management ********************************/ - if (FDCAN_CHECK_IT_SOURCE(itsourceIE, FDCAN_IT_TIMESTAMP_WRAPAROUND) != RESET) - { - if (FDCAN_CHECK_FLAG(itflagIR, FDCAN_FLAG_TIMESTAMP_WRAPAROUND) != RESET) - { - /* Clear the Timestamp Wraparound flag */ - __HAL_FDCAN_CLEAR_FLAG(hfdcan, FDCAN_FLAG_TIMESTAMP_WRAPAROUND); - -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->TimestampWraparoundCallback(hfdcan); -#else - /* Timestamp Wraparound Callback */ - HAL_FDCAN_TimestampWraparoundCallback(hfdcan); -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - } - - /* Timeout Occurred interrupt management ************************************/ - if (FDCAN_CHECK_IT_SOURCE(itsourceIE, FDCAN_IT_TIMEOUT_OCCURRED) != RESET) - { - if (FDCAN_CHECK_FLAG(itflagIR, FDCAN_FLAG_TIMEOUT_OCCURRED) != RESET) - { - /* Clear the Timeout Occurred flag */ - __HAL_FDCAN_CLEAR_FLAG(hfdcan, FDCAN_FLAG_TIMEOUT_OCCURRED); - -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->TimeoutOccurredCallback(hfdcan); -#else - /* Timeout Occurred Callback */ - HAL_FDCAN_TimeoutOccurredCallback(hfdcan); -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - } - - /* Message RAM access failure interrupt management **************************/ - if (FDCAN_CHECK_IT_SOURCE(itsourceIE, FDCAN_IT_RAM_ACCESS_FAILURE) != RESET) - { - if (FDCAN_CHECK_FLAG(itflagIR, FDCAN_FLAG_RAM_ACCESS_FAILURE) != RESET) - { - /* Clear the Message RAM access failure flag */ - __HAL_FDCAN_CLEAR_FLAG(hfdcan, FDCAN_FLAG_RAM_ACCESS_FAILURE); - - /* Update error code */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_RAM_ACCESS; - } - } - - /* Error Status interrupts management ***************************************/ - if (ErrorStatusITs != 0U) - { - /* Clear the Error flags */ - __HAL_FDCAN_CLEAR_FLAG(hfdcan, ErrorStatusITs); - -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->ErrorStatusCallback(hfdcan, ErrorStatusITs); -#else - /* Error Status Callback */ - HAL_FDCAN_ErrorStatusCallback(hfdcan, ErrorStatusITs); -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - - /* Error interrupts management **********************************************/ - if (Errors != 0U) - { - /* Clear the Error flags */ - __HAL_FDCAN_CLEAR_FLAG(hfdcan, Errors); - - /* Update error code */ - hfdcan->ErrorCode |= Errors; - } - - if (hfdcan->Instance == FDCAN1) - { - if ((hfdcan->ttcan->TTOCF & FDCAN_TTOCF_OM) != 0U) - { - TTSchedSyncITs = hfdcan->ttcan->TTIR & FDCAN_TT_SCHEDULE_SYNC_MASK; - TTSchedSyncITs &= hfdcan->ttcan->TTIE; - TTTimeMarkITs = hfdcan->ttcan->TTIR & FDCAN_TT_TIME_MARK_MASK; - TTTimeMarkITs &= hfdcan->ttcan->TTIE; - TTGlobTimeITs = hfdcan->ttcan->TTIR & FDCAN_TT_GLOBAL_TIME_MASK; - TTGlobTimeITs &= hfdcan->ttcan->TTIE; - TTDistErrors = hfdcan->ttcan->TTIR & FDCAN_TT_DISTURBING_ERROR_MASK; - TTDistErrors &= hfdcan->ttcan->TTIE; - TTFatalErrors = hfdcan->ttcan->TTIR & FDCAN_TT_FATAL_ERROR_MASK; - TTFatalErrors &= hfdcan->ttcan->TTIE; - itsourceTTIE = hfdcan->ttcan->TTIE; - itflagTTIR = hfdcan->ttcan->TTIR; - - /* TT Schedule Synchronization interrupts management **********************/ - if (TTSchedSyncITs != 0U) - { - /* Clear the TT Schedule Synchronization flags */ - __HAL_FDCAN_TT_CLEAR_FLAG(hfdcan, TTSchedSyncITs); - -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->TT_ScheduleSyncCallback(hfdcan, TTSchedSyncITs); -#else - /* TT Schedule Synchronization Callback */ - HAL_FDCAN_TT_ScheduleSyncCallback(hfdcan, TTSchedSyncITs); -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - - /* TT Time Mark interrupts management *************************************/ - if (TTTimeMarkITs != 0U) - { - /* Clear the TT Time Mark flags */ - __HAL_FDCAN_TT_CLEAR_FLAG(hfdcan, TTTimeMarkITs); - -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->TT_TimeMarkCallback(hfdcan, TTTimeMarkITs); -#else - /* TT Time Mark Callback */ - HAL_FDCAN_TT_TimeMarkCallback(hfdcan, TTTimeMarkITs); -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - - /* TT Stop Watch interrupt management *************************************/ - if (FDCAN_CHECK_IT_SOURCE(itsourceTTIE, FDCAN_TT_IT_STOP_WATCH) != RESET) - { - if (FDCAN_CHECK_FLAG(itflagTTIR, FDCAN_TT_FLAG_STOP_WATCH) != RESET) - { - /* Retrieve Stop watch Time and Cycle count */ - SWTime = ((hfdcan->ttcan->TTCPT & FDCAN_TTCPT_SWV) >> FDCAN_TTCPT_SWV_Pos); - SWCycleCount = ((hfdcan->ttcan->TTCPT & FDCAN_TTCPT_CCV) >> FDCAN_TTCPT_CCV_Pos); - - /* Clear the TT Stop Watch flag */ - __HAL_FDCAN_TT_CLEAR_FLAG(hfdcan, FDCAN_TT_FLAG_STOP_WATCH); - -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->TT_StopWatchCallback(hfdcan, SWTime, SWCycleCount); -#else - /* TT Stop Watch Callback */ - HAL_FDCAN_TT_StopWatchCallback(hfdcan, SWTime, SWCycleCount); -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - } - - /* TT Global Time interrupts management ***********************************/ - if (TTGlobTimeITs != 0U) - { - /* Clear the TT Global Time flags */ - __HAL_FDCAN_TT_CLEAR_FLAG(hfdcan, TTGlobTimeITs); - -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->TT_GlobalTimeCallback(hfdcan, TTGlobTimeITs); -#else - /* TT Global Time Callback */ - HAL_FDCAN_TT_GlobalTimeCallback(hfdcan, TTGlobTimeITs); -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } - - /* TT Disturbing Error interrupts management ******************************/ - if (TTDistErrors != 0U) - { - /* Clear the TT Disturbing Error flags */ - __HAL_FDCAN_TT_CLEAR_FLAG(hfdcan, TTDistErrors); - - /* Update error code */ - hfdcan->ErrorCode |= TTDistErrors; - } - - /* TT Fatal Error interrupts management ***********************************/ - if (TTFatalErrors != 0U) - { - /* Clear the TT Fatal Error flags */ - __HAL_FDCAN_TT_CLEAR_FLAG(hfdcan, TTFatalErrors); - - /* Update error code */ - hfdcan->ErrorCode |= TTFatalErrors; - } - } - } - - if (hfdcan->ErrorCode != HAL_FDCAN_ERROR_NONE) - { -#if USE_HAL_FDCAN_REGISTER_CALLBACKS == 1 - /* Call registered callback*/ - hfdcan->ErrorCallback(hfdcan); -#else - /* Error Callback */ - HAL_FDCAN_ErrorCallback(hfdcan); -#endif /* USE_HAL_FDCAN_REGISTER_CALLBACKS */ - } -} - -/** - * @} - */ - -/** @defgroup FDCAN_Exported_Functions_Group6 Callback functions - * @brief FDCAN Callback functions - * -@verbatim - ============================================================================== - ##### Callback functions ##### - ============================================================================== - [..] - This subsection provides the following callback functions: - (+) HAL_FDCAN_ClockCalibrationCallback - (+) HAL_FDCAN_TxEventFifoCallback - (+) HAL_FDCAN_RxFifo0Callback - (+) HAL_FDCAN_RxFifo1Callback - (+) HAL_FDCAN_TxFifoEmptyCallback - (+) HAL_FDCAN_TxBufferCompleteCallback - (+) HAL_FDCAN_TxBufferAbortCallback - (+) HAL_FDCAN_RxBufferNewMessageCallback - (+) HAL_FDCAN_HighPriorityMessageCallback - (+) HAL_FDCAN_TimestampWraparoundCallback - (+) HAL_FDCAN_TimeoutOccurredCallback - (+) HAL_FDCAN_ErrorCallback - (+) HAL_FDCAN_ErrorStatusCallback - (+) HAL_FDCAN_TT_ScheduleSyncCallback - (+) HAL_FDCAN_TT_TimeMarkCallback - (+) HAL_FDCAN_TT_StopWatchCallback - (+) HAL_FDCAN_TT_GlobalTimeCallback - -@endverbatim - * @{ - */ - -/** - * @brief Clock Calibration callback. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param ClkCalibrationITs indicates which Clock Calibration interrupts are signaled. - * This parameter can be any combination of @arg FDCAN_Clock_Calibration_Interrupts. - * @retval None - */ -__weak void HAL_FDCAN_ClockCalibrationCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t ClkCalibrationITs) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hfdcan); - UNUSED(ClkCalibrationITs); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_ClockCalibrationCallback could be implemented in the user file - */ -} - -/** - * @brief Tx Event callback. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param TxEventFifoITs indicates which Tx Event FIFO interrupts are signaled. - * This parameter can be any combination of @arg FDCAN_Tx_Event_Fifo_Interrupts. - * @retval None - */ -__weak void HAL_FDCAN_TxEventFifoCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t TxEventFifoITs) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hfdcan); - UNUSED(TxEventFifoITs); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_TxEventFifoCallback could be implemented in the user file - */ -} - -/** - * @brief Rx FIFO 0 callback. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param RxFifo0ITs indicates which Rx FIFO 0 interrupts are signaled. - * This parameter can be any combination of @arg FDCAN_Rx_Fifo0_Interrupts. - * @retval None - */ -__weak void HAL_FDCAN_RxFifo0Callback(FDCAN_HandleTypeDef *hfdcan, uint32_t RxFifo0ITs) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hfdcan); - UNUSED(RxFifo0ITs); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_RxFifo0Callback could be implemented in the user file - */ -} - -/** - * @brief Rx FIFO 1 callback. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param RxFifo1ITs indicates which Rx FIFO 1 interrupts are signaled. - * This parameter can be any combination of @arg FDCAN_Rx_Fifo1_Interrupts. - * @retval None - */ -__weak void HAL_FDCAN_RxFifo1Callback(FDCAN_HandleTypeDef *hfdcan, uint32_t RxFifo1ITs) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hfdcan); - UNUSED(RxFifo1ITs); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_RxFifo1Callback could be implemented in the user file - */ -} - -/** - * @brief Tx FIFO Empty callback. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval None - */ -__weak void HAL_FDCAN_TxFifoEmptyCallback(FDCAN_HandleTypeDef *hfdcan) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hfdcan); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_TxFifoEmptyCallback could be implemented in the user file - */ -} - -/** - * @brief Transmission Complete callback. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param BufferIndexes Indexes of the transmitted buffers. - * This parameter can be any combination of @arg FDCAN_Tx_location. - * @retval None - */ -__weak void HAL_FDCAN_TxBufferCompleteCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t BufferIndexes) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hfdcan); - UNUSED(BufferIndexes); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_TxBufferCompleteCallback could be implemented in the user file - */ -} - -/** - * @brief Transmission Cancellation callback. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param BufferIndexes Indexes of the aborted buffers. - * This parameter can be any combination of @arg FDCAN_Tx_location. - * @retval None - */ -__weak void HAL_FDCAN_TxBufferAbortCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t BufferIndexes) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hfdcan); - UNUSED(BufferIndexes); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_TxBufferAbortCallback could be implemented in the user file - */ -} - -/** - * @brief Rx Buffer New Message callback. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval None - */ -__weak void HAL_FDCAN_RxBufferNewMessageCallback(FDCAN_HandleTypeDef *hfdcan) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hfdcan); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_RxBufferNewMessageCallback could be implemented in the user file - */ -} - -/** - * @brief Timestamp Wraparound callback. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval None - */ -__weak void HAL_FDCAN_TimestampWraparoundCallback(FDCAN_HandleTypeDef *hfdcan) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hfdcan); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_TimestampWraparoundCallback could be implemented in the user file - */ -} - -/** - * @brief Timeout Occurred callback. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval None - */ -__weak void HAL_FDCAN_TimeoutOccurredCallback(FDCAN_HandleTypeDef *hfdcan) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hfdcan); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_TimeoutOccurredCallback could be implemented in the user file - */ -} - -/** - * @brief High Priority Message callback. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval None - */ -__weak void HAL_FDCAN_HighPriorityMessageCallback(FDCAN_HandleTypeDef *hfdcan) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hfdcan); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_HighPriorityMessageCallback could be implemented in the user file - */ -} - -/** - * @brief Error callback. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval None - */ -__weak void HAL_FDCAN_ErrorCallback(FDCAN_HandleTypeDef *hfdcan) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hfdcan); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_ErrorCallback could be implemented in the user file - */ -} - -/** - * @brief Error status callback. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param ErrorStatusITs indicates which Error Status interrupts are signaled. - * This parameter can be any combination of @arg FDCAN_Error_Status_Interrupts. - * @retval None - */ -__weak void HAL_FDCAN_ErrorStatusCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t ErrorStatusITs) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hfdcan); - UNUSED(ErrorStatusITs); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_ErrorStatusCallback could be implemented in the user file - */ -} - -/** - * @brief TT Schedule Synchronization callback. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param TTSchedSyncITs indicates which TT Schedule Synchronization interrupts are signaled. - * This parameter can be any combination of @arg FDCAN_TTScheduleSynchronization_Interrupts. - * @retval None - */ -__weak void HAL_FDCAN_TT_ScheduleSyncCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t TTSchedSyncITs) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hfdcan); - UNUSED(TTSchedSyncITs); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_TT_ScheduleSyncCallback could be implemented in the user file - */ -} - -/** - * @brief TT Time Mark callback. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param TTTimeMarkITs indicates which TT Schedule Synchronization interrupts are signaled. - * This parameter can be any combination of @arg FDCAN_TTTimeMark_Interrupts. - * @retval None - */ -__weak void HAL_FDCAN_TT_TimeMarkCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t TTTimeMarkITs) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hfdcan); - UNUSED(TTTimeMarkITs); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_TT_TimeMarkCallback could be implemented in the user file - */ -} - -/** - * @brief TT Stop Watch callback. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param SWTime Time Value captured at the Stop Watch Trigger pin (fdcan1_swt) falling/rising - * edge (as configured via HAL_FDCAN_TTConfigStopWatch). - * This parameter is a number between 0 and 0xFFFF. - * @param SWCycleCount Cycle count value captured together with SWTime. - * This parameter is a number between 0 and 0x3F. - * @retval None - */ -__weak void HAL_FDCAN_TT_StopWatchCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t SWTime, uint32_t SWCycleCount) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hfdcan); - UNUSED(SWTime); - UNUSED(SWCycleCount); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_TT_StopWatchCallback could be implemented in the user file - */ -} - -/** - * @brief TT Global Time callback. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param TTGlobTimeITs indicates which TT Global Time interrupts are signaled. - * This parameter can be any combination of @arg FDCAN_TTGlobalTime_Interrupts. - * @retval None - */ -__weak void HAL_FDCAN_TT_GlobalTimeCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t TTGlobTimeITs) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hfdcan); - UNUSED(TTGlobTimeITs); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FDCAN_TT_GlobalTimeCallback could be implemented in the user file - */ -} - -/** - * @} - */ - -/** @defgroup FDCAN_Exported_Functions_Group7 Peripheral State functions - * @brief FDCAN Peripheral State functions - * -@verbatim - ============================================================================== - ##### Peripheral State functions ##### - ============================================================================== - [..] - This subsection provides functions allowing to : - (+) HAL_FDCAN_GetState() : Return the FDCAN state. - (+) HAL_FDCAN_GetError() : Return the FDCAN error code if any. - -@endverbatim - * @{ - */ -/** - * @brief Return the FDCAN state - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL state - */ -HAL_FDCAN_StateTypeDef HAL_FDCAN_GetState(FDCAN_HandleTypeDef *hfdcan) -{ - /* Return FDCAN state */ - return hfdcan->State; -} - -/** - * @brief Return the FDCAN error code - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval FDCAN Error Code - */ -uint32_t HAL_FDCAN_GetError(FDCAN_HandleTypeDef *hfdcan) -{ - /* Return FDCAN error code */ - return hfdcan->ErrorCode; -} - -/** - * @} - */ - -/** - * @} - */ - -/** @addtogroup FDCAN_Private_Functions - * @{ - */ - -/** - * @brief Calculate each RAM block start address and size - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @retval HAL status - */ -static HAL_StatusTypeDef FDCAN_CalcultateRamBlockAddresses(FDCAN_HandleTypeDef *hfdcan) -{ - uint32_t RAMcounter; - uint32_t StartAddress; - - StartAddress = hfdcan->Init.MessageRAMOffset; - - /* Standard filter list start address */ - MODIFY_REG(hfdcan->Instance->SIDFC, FDCAN_SIDFC_FLSSA, (StartAddress << FDCAN_SIDFC_FLSSA_Pos)); - - /* Standard filter elements number */ - MODIFY_REG(hfdcan->Instance->SIDFC, FDCAN_SIDFC_LSS, (hfdcan->Init.StdFiltersNbr << FDCAN_SIDFC_LSS_Pos)); - - /* Extended filter list start address */ - StartAddress += hfdcan->Init.StdFiltersNbr; - MODIFY_REG(hfdcan->Instance->XIDFC, FDCAN_XIDFC_FLESA, (StartAddress << FDCAN_XIDFC_FLESA_Pos)); - - /* Extended filter elements number */ - MODIFY_REG(hfdcan->Instance->XIDFC, FDCAN_XIDFC_LSE, (hfdcan->Init.ExtFiltersNbr << FDCAN_XIDFC_LSE_Pos)); - - /* Rx FIFO 0 start address */ - StartAddress += (hfdcan->Init.ExtFiltersNbr * 2U); - MODIFY_REG(hfdcan->Instance->RXF0C, FDCAN_RXF0C_F0SA, (StartAddress << FDCAN_RXF0C_F0SA_Pos)); - - /* Rx FIFO 0 elements number */ - MODIFY_REG(hfdcan->Instance->RXF0C, FDCAN_RXF0C_F0S, (hfdcan->Init.RxFifo0ElmtsNbr << FDCAN_RXF0C_F0S_Pos)); - - /* Rx FIFO 1 start address */ - StartAddress += (hfdcan->Init.RxFifo0ElmtsNbr * hfdcan->Init.RxFifo0ElmtSize); - MODIFY_REG(hfdcan->Instance->RXF1C, FDCAN_RXF1C_F1SA, (StartAddress << FDCAN_RXF1C_F1SA_Pos)); - - /* Rx FIFO 1 elements number */ - MODIFY_REG(hfdcan->Instance->RXF1C, FDCAN_RXF1C_F1S, (hfdcan->Init.RxFifo1ElmtsNbr << FDCAN_RXF1C_F1S_Pos)); - - /* Rx buffer list start address */ - StartAddress += (hfdcan->Init.RxFifo1ElmtsNbr * hfdcan->Init.RxFifo1ElmtSize); - MODIFY_REG(hfdcan->Instance->RXBC, FDCAN_RXBC_RBSA, (StartAddress << FDCAN_RXBC_RBSA_Pos)); - - /* Tx event FIFO start address */ - StartAddress += (hfdcan->Init.RxBuffersNbr * hfdcan->Init.RxBufferSize); - MODIFY_REG(hfdcan->Instance->TXEFC, FDCAN_TXEFC_EFSA, (StartAddress << FDCAN_TXEFC_EFSA_Pos)); - - /* Tx event FIFO elements number */ - MODIFY_REG(hfdcan->Instance->TXEFC, FDCAN_TXEFC_EFS, (hfdcan->Init.TxEventsNbr << FDCAN_TXEFC_EFS_Pos)); - - /* Tx buffer list start address */ - StartAddress += (hfdcan->Init.TxEventsNbr * 2U); - MODIFY_REG(hfdcan->Instance->TXBC, FDCAN_TXBC_TBSA, (StartAddress << FDCAN_TXBC_TBSA_Pos)); - - /* Dedicated Tx buffers number */ - MODIFY_REG(hfdcan->Instance->TXBC, FDCAN_TXBC_NDTB, (hfdcan->Init.TxBuffersNbr << FDCAN_TXBC_NDTB_Pos)); - - /* Tx FIFO/queue elements number */ - MODIFY_REG(hfdcan->Instance->TXBC, FDCAN_TXBC_TFQS, (hfdcan->Init.TxFifoQueueElmtsNbr << FDCAN_TXBC_TFQS_Pos)); - - hfdcan->msgRam.StandardFilterSA = SRAMCAN_BASE + (hfdcan->Init.MessageRAMOffset * 4U); - hfdcan->msgRam.ExtendedFilterSA = hfdcan->msgRam.StandardFilterSA + (hfdcan->Init.StdFiltersNbr * 4U); - hfdcan->msgRam.RxFIFO0SA = hfdcan->msgRam.ExtendedFilterSA + (hfdcan->Init.ExtFiltersNbr * 2U * 4U); - hfdcan->msgRam.RxFIFO1SA = hfdcan->msgRam.RxFIFO0SA + (hfdcan->Init.RxFifo0ElmtsNbr * hfdcan->Init.RxFifo0ElmtSize * 4U); - hfdcan->msgRam.RxBufferSA = hfdcan->msgRam.RxFIFO1SA + (hfdcan->Init.RxFifo1ElmtsNbr * hfdcan->Init.RxFifo1ElmtSize * 4U); - hfdcan->msgRam.TxEventFIFOSA = hfdcan->msgRam.RxBufferSA + (hfdcan->Init.RxBuffersNbr * hfdcan->Init.RxBufferSize * 4U); - hfdcan->msgRam.TxBufferSA = hfdcan->msgRam.TxEventFIFOSA + (hfdcan->Init.TxEventsNbr * 2U * 4U); - hfdcan->msgRam.TxFIFOQSA = hfdcan->msgRam.TxBufferSA + (hfdcan->Init.TxBuffersNbr * hfdcan->Init.TxElmtSize * 4U); - - hfdcan->msgRam.EndAddress = hfdcan->msgRam.TxFIFOQSA + (hfdcan->Init.TxFifoQueueElmtsNbr * hfdcan->Init.TxElmtSize * 4U); - - if (hfdcan->msgRam.EndAddress > FDCAN_MESSAGE_RAM_END_ADDRESS) /* Last address of the Message RAM */ - { - /* Update error code. - Message RAM overflow */ - hfdcan->ErrorCode |= HAL_FDCAN_ERROR_PARAM; - - /* Change FDCAN state */ - hfdcan->State = HAL_FDCAN_STATE_ERROR; - - return HAL_ERROR; - } - else - { - /* Flush the allocated Message RAM area */ - for (RAMcounter = hfdcan->msgRam.StandardFilterSA; RAMcounter < hfdcan->msgRam.EndAddress; RAMcounter += 4U) - { - *(uint32_t *)(RAMcounter) = 0x00000000; - } - } - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Copy Tx message to the message RAM. - * @param hfdcan pointer to an FDCAN_HandleTypeDef structure that contains - * the configuration information for the specified FDCAN. - * @param pTxHeader pointer to a FDCAN_TxHeaderTypeDef structure. - * @param pTxData pointer to a buffer containing the payload of the Tx frame. - * @param BufferIndex index of the buffer to be configured. - * @retval HAL status - */ -static void FDCAN_CopyMessageToRAM(FDCAN_HandleTypeDef *hfdcan, FDCAN_TxHeaderTypeDef *pTxHeader, uint8_t *pTxData, uint32_t BufferIndex) -{ - uint32_t TxElementW1; - uint32_t TxElementW2; - uint32_t *TxAddress; - uint32_t ByteCounter; - - /* Build first word of Tx header element */ - if (pTxHeader->IdType == FDCAN_STANDARD_ID) - { - TxElementW1 = (pTxHeader->ErrorStateIndicator | - FDCAN_STANDARD_ID | - pTxHeader->TxFrameType | - (pTxHeader->Identifier << 18)); - } - else /* pTxHeader->IdType == FDCAN_EXTENDED_ID */ - { - TxElementW1 = (pTxHeader->ErrorStateIndicator | - FDCAN_EXTENDED_ID | - pTxHeader->TxFrameType | - pTxHeader->Identifier); - } - - /* Build second word of Tx header element */ - TxElementW2 = ((pTxHeader->MessageMarker << 24) | - pTxHeader->TxEventFifoControl | - pTxHeader->FDFormat | - pTxHeader->BitRateSwitch | - pTxHeader->DataLength); - - /* Calculate Tx element address */ - TxAddress = (uint32_t *)(hfdcan->msgRam.TxBufferSA + (BufferIndex * hfdcan->Init.TxElmtSize * 4U)); - - /* Write Tx element header to the message RAM */ - *TxAddress = TxElementW1; - TxAddress++; - *TxAddress = TxElementW2; - TxAddress++; - - /* Write Tx payload to the message RAM */ - for (ByteCounter = 0; ByteCounter < DLCtoBytes[pTxHeader->DataLength >> 16]; ByteCounter += 4U) - { - *TxAddress = (((uint32_t)pTxData[ByteCounter + 3U] << 24) | - ((uint32_t)pTxData[ByteCounter + 2U] << 16) | - ((uint32_t)pTxData[ByteCounter + 1U] << 8) | - (uint32_t)pTxData[ByteCounter]); - TxAddress++; - } -} - -/** - * @} - */ -#endif /* HAL_FDCAN_MODULE_ENABLED */ -/** - * @} - */ - -/** - * @} - */ - -#endif /* FDCAN1 */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c b/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c deleted file mode 100644 index a3fe346..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c +++ /dev/null @@ -1,1201 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_flash.c - * @author MCD Application Team - * @brief FLASH HAL module driver. - * This file provides firmware functions to manage the following - * functionalities of the internal FLASH memory: - * + Program operations functions - * + Memory Control functions - * + Peripheral Errors functions - * - @verbatim - ============================================================================== - ##### FLASH peripheral features ##### - ============================================================================== - - [..] The Flash memory interface manages CPU AXI I-Code and D-Code accesses - to the Flash memory. It implements the erase and program Flash memory operations - and the read and write protection mechanisms. - - [..] The FLASH main features are: - (+) Flash memory read operations - (+) Flash memory program/erase operations - (+) Read / write protections - (+) Option bytes programming - (+) Error code correction (ECC) : Data in flash are 266-bits word - (10 bits added per flash word) - - ##### How to use this driver ##### - ============================================================================== - [..] - This driver provides functions and macros to configure and program the FLASH - memory of all STM32H7xx devices. - - (#) FLASH Memory IO Programming functions: - (++) Lock and Unlock the FLASH interface using HAL_FLASH_Unlock() and - HAL_FLASH_Lock() functions - (++) Program functions: 256-bit word only - (++) There Two modes of programming : - (+++) Polling mode using HAL_FLASH_Program() function - (+++) Interrupt mode using HAL_FLASH_Program_IT() function - - (#) Interrupts and flags management functions : - (++) Handle FLASH interrupts by calling HAL_FLASH_IRQHandler() - (++) Callback functions are called when the flash operations are finished : - HAL_FLASH_EndOfOperationCallback() when everything is ok, otherwise - HAL_FLASH_OperationErrorCallback() - (++) Get error flag status by calling HAL_FLASH_GetError() - - (#) Option bytes management functions : - (++) Lock and Unlock the option bytes using HAL_FLASH_OB_Unlock() and - HAL_FLASH_OB_Lock() functions - (++) Launch the reload of the option bytes using HAL_FLASH_OB_Launch() function. - In this case, a reset is generated - [..] - In addition to these functions, this driver includes a set of macros allowing - to handle the following operations: - (+) Set the latency - (+) Enable/Disable the FLASH interrupts - (+) Monitor the FLASH flags status - [..] - (@) For any Flash memory program operation (erase or program), the CPU clock frequency - (HCLK) must be at least 1MHz. - (@) The contents of the Flash memory are not guaranteed if a device reset occurs during - a Flash memory operation. - (@) The application can simultaneously request a read and a write operation through each AXI - interface. - As the Flash memory is divided into two independent banks, the embedded Flash - memory interface can drive different operations at the same time on each bank. For - example a read, write or erase operation can be executed on bank 1 while another read, - write or erase operation is executed on bank 2. - - @endverbatim - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file in - * the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - ****************************************************************************** - */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @defgroup FLASH FLASH - * @brief FLASH HAL module driver - * @{ - */ - -#ifdef HAL_FLASH_MODULE_ENABLED - -/* Private typedef -----------------------------------------------------------*/ -/* Private define ------------------------------------------------------------*/ -/** @addtogroup FLASH_Private_Constants - * @{ - */ -#define FLASH_TIMEOUT_VALUE 50000U /* 50 s */ -/** - * @} - */ -/* Private macro -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/** @addtogroup FLASH_Private_Variables - * @{ - */ -FLASH_ProcessTypeDef pFlash; -/** - * @} - */ -/* Private function prototypes -----------------------------------------------*/ -/* Exported functions ---------------------------------------------------------*/ - -/** @defgroup FLASH_Exported_Functions FLASH Exported functions - * @{ - */ - -/** @defgroup FLASH_Exported_Functions_Group1 Programming operation functions - * @brief Programming operation functions - * -@verbatim - =============================================================================== - ##### Programming operation functions ##### - =============================================================================== - [..] - This subsection provides a set of functions allowing to manage the FLASH - program operations. - -@endverbatim - * @{ - */ - -/** - * @brief Program a flash word at a specified address - * @param TypeProgram Indicate the way to program at a specified address. - * This parameter can be a value of @ref FLASH_Type_Program - * @param FlashAddress specifies the address to be programmed. - * This parameter shall be aligned to the Flash word: - * - 256 bits for STM32H74x/5X devices (8x 32bits words) - * - 128 bits for STM32H7Ax/BX devices (4x 32bits words) - * - 256 bits for STM32H72x/3X devices (8x 32bits words) - * @param DataAddress specifies the address of data to be programmed. - * This parameter shall be 32-bit aligned - * - * @retval HAL_StatusTypeDef HAL Status - */ -HAL_StatusTypeDef HAL_FLASH_Program(uint32_t TypeProgram, uint32_t FlashAddress, uint32_t DataAddress) -{ - HAL_StatusTypeDef status; - __IO uint32_t *dest_addr = (__IO uint32_t *)FlashAddress; - __IO uint32_t *src_addr = (__IO uint32_t*)DataAddress; - uint32_t bank; - uint8_t row_index = FLASH_NB_32BITWORD_IN_FLASHWORD; - - /* Check the parameters */ - assert_param(IS_FLASH_TYPEPROGRAM(TypeProgram)); - assert_param(IS_FLASH_PROGRAM_ADDRESS(FlashAddress)); - - /* Process Locked */ - __HAL_LOCK(&pFlash); - -#if defined (FLASH_OPTCR_PG_OTP) - if((IS_FLASH_PROGRAM_ADDRESS_BANK1(FlashAddress)) || (IS_FLASH_PROGRAM_ADDRESS_OTP(FlashAddress))) -#else - if(IS_FLASH_PROGRAM_ADDRESS_BANK1(FlashAddress)) -#endif /* FLASH_OPTCR_PG_OTP */ - { - bank = FLASH_BANK_1; - } -#if defined (DUAL_BANK) - else if(IS_FLASH_PROGRAM_ADDRESS_BANK2(FlashAddress)) - { - bank = FLASH_BANK_2; - } -#endif /* DUAL_BANK */ - else - { - return HAL_ERROR; - } - - /* Reset error code */ - pFlash.ErrorCode = HAL_FLASH_ERROR_NONE; - - /* Wait for last operation to be completed */ - status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE, bank); - - if(status == HAL_OK) - { -#if defined (DUAL_BANK) - if(bank == FLASH_BANK_1) - { -#if defined (FLASH_OPTCR_PG_OTP) - if (TypeProgram == FLASH_TYPEPROGRAM_OTPWORD) - { - /* Set OTP_PG bit */ - SET_BIT(FLASH->OPTCR, FLASH_OPTCR_PG_OTP); - } - else -#endif /* FLASH_OPTCR_PG_OTP */ - { - /* Set PG bit */ - SET_BIT(FLASH->CR1, FLASH_CR_PG); - } - } - else - { - /* Set PG bit */ - SET_BIT(FLASH->CR2, FLASH_CR_PG); - } -#else /* Single Bank */ -#if defined (FLASH_OPTCR_PG_OTP) - if (TypeProgram == FLASH_TYPEPROGRAM_OTPWORD) - { - /* Set OTP_PG bit */ - SET_BIT(FLASH->OPTCR, FLASH_OPTCR_PG_OTP); - } - else -#endif /* FLASH_OPTCR_PG_OTP */ - { - /* Set PG bit */ - SET_BIT(FLASH->CR1, FLASH_CR_PG); - } -#endif /* DUAL_BANK */ - - __ISB(); - __DSB(); - -#if defined (FLASH_OPTCR_PG_OTP) - if (TypeProgram == FLASH_TYPEPROGRAM_OTPWORD) - { - /* Program an OTP word (16 bits) */ - *(__IO uint16_t *)FlashAddress = *(__IO uint16_t*)DataAddress; - } - else -#endif /* FLASH_OPTCR_PG_OTP */ - { - /* Program the flash word */ - do - { - *dest_addr = *src_addr; - dest_addr++; - src_addr++; - row_index--; - } while (row_index != 0U); - } - - __ISB(); - __DSB(); - - /* Wait for last operation to be completed */ - status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE, bank); - -#if defined (DUAL_BANK) -#if defined (FLASH_OPTCR_PG_OTP) - if (TypeProgram == FLASH_TYPEPROGRAM_OTPWORD) - { - /* If the program operation is completed, disable the OTP_PG */ - CLEAR_BIT(FLASH->OPTCR, FLASH_OPTCR_PG_OTP); - } - else -#endif /* FLASH_OPTCR_PG_OTP */ - { - if(bank == FLASH_BANK_1) - { - /* If the program operation is completed, disable the PG */ - CLEAR_BIT(FLASH->CR1, FLASH_CR_PG); - } - else - { - /* If the program operation is completed, disable the PG */ - CLEAR_BIT(FLASH->CR2, FLASH_CR_PG); - } - } -#else /* Single Bank */ -#if defined (FLASH_OPTCR_PG_OTP) - if (TypeProgram == FLASH_TYPEPROGRAM_OTPWORD) - { - /* If the program operation is completed, disable the OTP_PG */ - CLEAR_BIT(FLASH->OPTCR, FLASH_OPTCR_PG_OTP); - } - else -#endif /* FLASH_OPTCR_PG_OTP */ - { - /* If the program operation is completed, disable the PG */ - CLEAR_BIT(FLASH->CR1, FLASH_CR_PG); - } -#endif /* DUAL_BANK */ - } - - /* Process Unlocked */ - __HAL_UNLOCK(&pFlash); - - return status; -} - -/** - * @brief Program a flash word at a specified address with interrupt enabled. - * @param TypeProgram Indicate the way to program at a specified address. - * This parameter can be a value of @ref FLASH_Type_Program - * @param FlashAddress specifies the address to be programmed. - * This parameter shall be aligned to the Flash word: - * - 256 bits for STM32H74x/5X devices (8x 32bits words) - * - 128 bits for STM32H7Ax/BX devices (4x 32bits words) - * - 256 bits for STM32H72x/3X devices (8x 32bits words) - * @param DataAddress specifies the address of data to be programmed. - * This parameter shall be 32-bit aligned - * - * @retval HAL Status - */ -HAL_StatusTypeDef HAL_FLASH_Program_IT(uint32_t TypeProgram, uint32_t FlashAddress, uint32_t DataAddress) -{ - HAL_StatusTypeDef status; - __IO uint32_t *dest_addr = (__IO uint32_t*)FlashAddress; - __IO uint32_t *src_addr = (__IO uint32_t*)DataAddress; - uint32_t bank; - uint8_t row_index = FLASH_NB_32BITWORD_IN_FLASHWORD; - - /* Check the parameters */ - assert_param(IS_FLASH_TYPEPROGRAM(TypeProgram)); - assert_param(IS_FLASH_PROGRAM_ADDRESS(FlashAddress)); - - /* Process Locked */ - __HAL_LOCK(&pFlash); - - /* Reset error code */ - pFlash.ErrorCode = HAL_FLASH_ERROR_NONE; - -#if defined (FLASH_OPTCR_PG_OTP) - if((IS_FLASH_PROGRAM_ADDRESS_BANK1(FlashAddress)) || (IS_FLASH_PROGRAM_ADDRESS_OTP(FlashAddress))) -#else - if(IS_FLASH_PROGRAM_ADDRESS_BANK1(FlashAddress)) -#endif /* FLASH_OPTCR_PG_OTP */ - { - bank = FLASH_BANK_1; - } -#if defined (DUAL_BANK) - else if(IS_FLASH_PROGRAM_ADDRESS_BANK2(FlashAddress)) - { - bank = FLASH_BANK_2; - } -#endif /* DUAL_BANK */ - else - { - return HAL_ERROR; - } - - /* Wait for last operation to be completed */ - status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE, bank); - - if (status != HAL_OK) - { - /* Process Unlocked */ - __HAL_UNLOCK(&pFlash); - } - else - { - pFlash.Address = FlashAddress; - -#if defined (DUAL_BANK) - if(bank == FLASH_BANK_1) - { - /* Set internal variables used by the IRQ handler */ - pFlash.ProcedureOnGoing = FLASH_PROC_PROGRAM_BANK1; - -#if defined (FLASH_OPTCR_PG_OTP) - if (TypeProgram == FLASH_TYPEPROGRAM_OTPWORD) - { - /* Set OTP_PG bit */ - SET_BIT(FLASH->OPTCR, FLASH_OPTCR_PG_OTP); - } - else -#endif /* FLASH_OPTCR_PG_OTP */ - { - /* Set PG bit */ - SET_BIT(FLASH->CR1, FLASH_CR_PG); - } - - /* Enable End of Operation and Error interrupts for Bank 1 */ -#if defined (FLASH_CR_OPERRIE) - __HAL_FLASH_ENABLE_IT_BANK1(FLASH_IT_EOP_BANK1 | FLASH_IT_WRPERR_BANK1 | FLASH_IT_PGSERR_BANK1 | \ - FLASH_IT_STRBERR_BANK1 | FLASH_IT_INCERR_BANK1 | FLASH_IT_OPERR_BANK1); -#else - __HAL_FLASH_ENABLE_IT_BANK1(FLASH_IT_EOP_BANK1 | FLASH_IT_WRPERR_BANK1 | FLASH_IT_PGSERR_BANK1 | \ - FLASH_IT_STRBERR_BANK1 | FLASH_IT_INCERR_BANK1); -#endif /* FLASH_CR_OPERRIE */ - } - else - { - /* Set internal variables used by the IRQ handler */ - pFlash.ProcedureOnGoing = FLASH_PROC_PROGRAM_BANK2; - - /* Set PG bit */ - SET_BIT(FLASH->CR2, FLASH_CR_PG); - - /* Enable End of Operation and Error interrupts for Bank2 */ -#if defined (FLASH_CR_OPERRIE) - __HAL_FLASH_ENABLE_IT_BANK2(FLASH_IT_EOP_BANK2 | FLASH_IT_WRPERR_BANK2 | FLASH_IT_PGSERR_BANK2 | \ - FLASH_IT_STRBERR_BANK2 | FLASH_IT_INCERR_BANK2 | FLASH_IT_OPERR_BANK2); -#else - __HAL_FLASH_ENABLE_IT_BANK2(FLASH_IT_EOP_BANK2 | FLASH_IT_WRPERR_BANK2 | FLASH_IT_PGSERR_BANK2 | \ - FLASH_IT_STRBERR_BANK2 | FLASH_IT_INCERR_BANK2); -#endif /* FLASH_CR_OPERRIE */ - } -#else /* Single Bank */ - /* Set internal variables used by the IRQ handler */ - pFlash.ProcedureOnGoing = FLASH_PROC_PROGRAM_BANK1; - -#if defined (FLASH_OPTCR_PG_OTP) - if (TypeProgram == FLASH_TYPEPROGRAM_OTPWORD) - { - /* Set OTP_PG bit */ - SET_BIT(FLASH->OPTCR, FLASH_OPTCR_PG_OTP); - } - else -#endif /* FLASH_OPTCR_PG_OTP */ - { - /* Set PG bit */ - SET_BIT(FLASH->CR1, FLASH_CR_PG); - } - - /* Enable End of Operation and Error interrupts for Bank 1 */ -#if defined (FLASH_CR_OPERRIE) - __HAL_FLASH_ENABLE_IT_BANK1(FLASH_IT_EOP_BANK1 | FLASH_IT_WRPERR_BANK1 | FLASH_IT_PGSERR_BANK1 | \ - FLASH_IT_STRBERR_BANK1 | FLASH_IT_INCERR_BANK1 | FLASH_IT_OPERR_BANK1); -#else - __HAL_FLASH_ENABLE_IT_BANK1(FLASH_IT_EOP_BANK1 | FLASH_IT_WRPERR_BANK1 | FLASH_IT_PGSERR_BANK1 | \ - FLASH_IT_STRBERR_BANK1 | FLASH_IT_INCERR_BANK1); -#endif /* FLASH_CR_OPERRIE */ -#endif /* DUAL_BANK */ - - __ISB(); - __DSB(); - -#if defined (FLASH_OPTCR_PG_OTP) - if (TypeProgram == FLASH_TYPEPROGRAM_OTPWORD) - { - /* Program an OTP word (16 bits) */ - *(__IO uint16_t *)FlashAddress = *(__IO uint16_t*)DataAddress; - } - else -#endif /* FLASH_OPTCR_PG_OTP */ - { - /* Program the flash word */ - do - { - *dest_addr = *src_addr; - dest_addr++; - src_addr++; - row_index--; - } while (row_index != 0U); - } - - __ISB(); - __DSB(); - } - - return status; -} - -/** - * @brief This function handles FLASH interrupt request. - * @retval None - */ -void HAL_FLASH_IRQHandler(void) -{ - uint32_t temp; - uint32_t errorflag; - FLASH_ProcedureTypeDef procedure; - - /* Check FLASH Bank1 End of Operation flag */ - if(__HAL_FLASH_GET_FLAG_BANK1(FLASH_SR_EOP) != RESET) - { - if(pFlash.ProcedureOnGoing == FLASH_PROC_SECTERASE_BANK1) - { - /* Nb of sector to erased can be decreased */ - pFlash.NbSectorsToErase--; - - /* Check if there are still sectors to erase */ - if(pFlash.NbSectorsToErase != 0U) - { - /* Indicate user which sector has been erased */ - HAL_FLASH_EndOfOperationCallback(pFlash.Sector); - - /* Clear bank 1 End of Operation pending bit */ - __HAL_FLASH_CLEAR_FLAG_BANK1(FLASH_FLAG_EOP_BANK1); - - /* Increment sector number */ - pFlash.Sector++; - temp = pFlash.Sector; - FLASH_Erase_Sector(temp, FLASH_BANK_1, pFlash.VoltageForErase); - } - else - { - /* No more sectors to Erase, user callback can be called */ - /* Reset Sector and stop Erase sectors procedure */ - pFlash.Sector = 0xFFFFFFFFU; - pFlash.ProcedureOnGoing = FLASH_PROC_NONE; - - /* FLASH EOP interrupt user callback */ - HAL_FLASH_EndOfOperationCallback(pFlash.Sector); - - /* Clear FLASH End of Operation pending bit */ - __HAL_FLASH_CLEAR_FLAG_BANK1(FLASH_FLAG_EOP_BANK1); - } - } - else - { - procedure = pFlash.ProcedureOnGoing; - - if((procedure == FLASH_PROC_MASSERASE_BANK1) || (procedure == FLASH_PROC_ALLBANK_MASSERASE)) - { - /* MassErase ended. Return the selected bank */ - /* FLASH EOP interrupt user callback */ - HAL_FLASH_EndOfOperationCallback(FLASH_BANK_1); - } - else if(procedure == FLASH_PROC_PROGRAM_BANK1) - { - /* Program ended. Return the selected address */ - /* FLASH EOP interrupt user callback */ - HAL_FLASH_EndOfOperationCallback(pFlash.Address); - } - else - { - /* Nothing to do */ - } - - if((procedure != FLASH_PROC_SECTERASE_BANK2) && \ - (procedure != FLASH_PROC_MASSERASE_BANK2) && \ - (procedure != FLASH_PROC_PROGRAM_BANK2)) - { - pFlash.ProcedureOnGoing = FLASH_PROC_NONE; - /* Clear FLASH End of Operation pending bit */ - __HAL_FLASH_CLEAR_FLAG_BANK1(FLASH_FLAG_EOP_BANK1); - } - } - } - -#if defined (DUAL_BANK) - /* Check FLASH Bank2 End of Operation flag */ - if(__HAL_FLASH_GET_FLAG_BANK2(FLASH_SR_EOP) != RESET) - { - if(pFlash.ProcedureOnGoing == FLASH_PROC_SECTERASE_BANK2) - { - /*Nb of sector to erased can be decreased*/ - pFlash.NbSectorsToErase--; - - /* Check if there are still sectors to erase*/ - if(pFlash.NbSectorsToErase != 0U) - { - /*Indicate user which sector has been erased*/ - HAL_FLASH_EndOfOperationCallback(pFlash.Sector); - - /* Clear bank 2 End of Operation pending bit */ - __HAL_FLASH_CLEAR_FLAG_BANK2(FLASH_FLAG_EOP_BANK2); - - /*Increment sector number*/ - pFlash.Sector++; - temp = pFlash.Sector; - FLASH_Erase_Sector(temp, FLASH_BANK_2, pFlash.VoltageForErase); - } - else - { - /* No more sectors to Erase, user callback can be called */ - /* Reset Sector and stop Erase sectors procedure */ - pFlash.Sector = 0xFFFFFFFFU; - pFlash.ProcedureOnGoing = FLASH_PROC_NONE; - - /* FLASH EOP interrupt user callback */ - HAL_FLASH_EndOfOperationCallback(pFlash.Sector); - - /* Clear FLASH End of Operation pending bit */ - __HAL_FLASH_CLEAR_FLAG_BANK2(FLASH_FLAG_EOP_BANK2); - } - } - else - { - procedure = pFlash.ProcedureOnGoing; - - if((procedure == FLASH_PROC_MASSERASE_BANK2) || (procedure == FLASH_PROC_ALLBANK_MASSERASE)) - { - /*MassErase ended. Return the selected bank*/ - /* FLASH EOP interrupt user callback */ - HAL_FLASH_EndOfOperationCallback(FLASH_BANK_2); - } - else if(procedure == FLASH_PROC_PROGRAM_BANK2) - { - /* Program ended. Return the selected address */ - /* FLASH EOP interrupt user callback */ - HAL_FLASH_EndOfOperationCallback(pFlash.Address); - } - else - { - /* Nothing to do */ - } - - if((procedure != FLASH_PROC_SECTERASE_BANK1) && \ - (procedure != FLASH_PROC_MASSERASE_BANK1) && \ - (procedure != FLASH_PROC_PROGRAM_BANK1)) - { - pFlash.ProcedureOnGoing = FLASH_PROC_NONE; - /* Clear FLASH End of Operation pending bit */ - __HAL_FLASH_CLEAR_FLAG_BANK2(FLASH_FLAG_EOP_BANK2); - } - } - } -#endif /* DUAL_BANK */ - - /* Check FLASH Bank1 operation error flags */ -#if defined (FLASH_SR_OPERR) - errorflag = FLASH->SR1 & (FLASH_FLAG_WRPERR_BANK1 | FLASH_FLAG_PGSERR_BANK1 | FLASH_FLAG_STRBERR_BANK1 | \ - FLASH_FLAG_INCERR_BANK1 | FLASH_FLAG_OPERR_BANK1); -#else - errorflag = FLASH->SR1 & (FLASH_FLAG_WRPERR_BANK1 | FLASH_FLAG_PGSERR_BANK1 | FLASH_FLAG_STRBERR_BANK1 | \ - FLASH_FLAG_INCERR_BANK1); -#endif /* FLASH_SR_OPERR */ - - if(errorflag != 0U) - { - /* Save the error code */ - pFlash.ErrorCode |= errorflag; - - /* Clear error programming flags */ - __HAL_FLASH_CLEAR_FLAG_BANK1(errorflag); - - procedure = pFlash.ProcedureOnGoing; - - if(procedure == FLASH_PROC_SECTERASE_BANK1) - { - /* Return the faulty sector */ - temp = pFlash.Sector; - pFlash.Sector = 0xFFFFFFFFU; - } - else if((procedure == FLASH_PROC_MASSERASE_BANK1) || (procedure == FLASH_PROC_ALLBANK_MASSERASE)) - { - /* Return the faulty bank */ - temp = FLASH_BANK_1; - } - else - { - /* Return the faulty address */ - temp = pFlash.Address; - } - - /* Stop the procedure ongoing*/ - pFlash.ProcedureOnGoing = FLASH_PROC_NONE; - - /* FLASH error interrupt user callback */ - HAL_FLASH_OperationErrorCallback(temp); - } - -#if defined (DUAL_BANK) - /* Check FLASH Bank2 operation error flags */ -#if defined (FLASH_SR_OPERR) - errorflag = FLASH->SR2 & ((FLASH_FLAG_WRPERR_BANK2 | FLASH_FLAG_PGSERR_BANK2 | FLASH_FLAG_STRBERR_BANK2 | \ - FLASH_FLAG_INCERR_BANK2 | FLASH_FLAG_OPERR_BANK2) & 0x7FFFFFFFU); -#else - errorflag = FLASH->SR2 & ((FLASH_FLAG_WRPERR_BANK2 | FLASH_FLAG_PGSERR_BANK2 | FLASH_FLAG_STRBERR_BANK2 | \ - FLASH_FLAG_INCERR_BANK2) & 0x7FFFFFFFU); -#endif /* FLASH_SR_OPERR */ - - if(errorflag != 0U) - { - /* Save the error code */ - pFlash.ErrorCode |= (errorflag | 0x80000000U); - - /* Clear error programming flags */ - __HAL_FLASH_CLEAR_FLAG_BANK2(errorflag); - - procedure = pFlash.ProcedureOnGoing; - - if(procedure== FLASH_PROC_SECTERASE_BANK2) - { - /*return the faulty sector*/ - temp = pFlash.Sector; - pFlash.Sector = 0xFFFFFFFFU; - } - else if((procedure == FLASH_PROC_MASSERASE_BANK2) || (procedure == FLASH_PROC_ALLBANK_MASSERASE)) - { - /*return the faulty bank*/ - temp = FLASH_BANK_2; - } - else - { - /*return the faulty address*/ - temp = pFlash.Address; - } - - /*Stop the procedure ongoing*/ - pFlash.ProcedureOnGoing = FLASH_PROC_NONE; - - /* FLASH error interrupt user callback */ - HAL_FLASH_OperationErrorCallback(temp); - } -#endif /* DUAL_BANK */ - - if(pFlash.ProcedureOnGoing == FLASH_PROC_NONE) - { -#if defined (FLASH_CR_OPERRIE) - /* Disable Bank1 Operation and Error source interrupt */ - __HAL_FLASH_DISABLE_IT_BANK1(FLASH_IT_EOP_BANK1 | FLASH_IT_WRPERR_BANK1 | FLASH_IT_PGSERR_BANK1 | \ - FLASH_IT_STRBERR_BANK1 | FLASH_IT_INCERR_BANK1 | FLASH_IT_OPERR_BANK1); - -#if defined (DUAL_BANK) - /* Disable Bank2 Operation and Error source interrupt */ - __HAL_FLASH_DISABLE_IT_BANK2(FLASH_IT_EOP_BANK2 | FLASH_IT_WRPERR_BANK2 | FLASH_IT_PGSERR_BANK2 | \ - FLASH_IT_STRBERR_BANK2 | FLASH_IT_INCERR_BANK2 | FLASH_IT_OPERR_BANK2); -#endif /* DUAL_BANK */ -#else - /* Disable Bank1 Operation and Error source interrupt */ - __HAL_FLASH_DISABLE_IT_BANK1(FLASH_IT_EOP_BANK1 | FLASH_IT_WRPERR_BANK1 | FLASH_IT_PGSERR_BANK1 | \ - FLASH_IT_STRBERR_BANK1 | FLASH_IT_INCERR_BANK1); - -#if defined (DUAL_BANK) - /* Disable Bank2 Operation and Error source interrupt */ - __HAL_FLASH_DISABLE_IT_BANK2(FLASH_IT_EOP_BANK2 | FLASH_IT_WRPERR_BANK2 | FLASH_IT_PGSERR_BANK2 | \ - FLASH_IT_STRBERR_BANK2 | FLASH_IT_INCERR_BANK2); -#endif /* DUAL_BANK */ -#endif /* FLASH_CR_OPERRIE */ - - /* Process Unlocked */ - __HAL_UNLOCK(&pFlash); - } -} - -/** - * @brief FLASH end of operation interrupt callback - * @param ReturnValue The value saved in this parameter depends on the ongoing procedure - * Mass Erase: Bank number which has been requested to erase - * Sectors Erase: Sector which has been erased - * (if 0xFFFFFFFF, it means that all the selected sectors have been erased) - * Program: Address which was selected for data program - * @retval None - */ -__weak void HAL_FLASH_EndOfOperationCallback(uint32_t ReturnValue) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(ReturnValue); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FLASH_EndOfOperationCallback could be implemented in the user file - */ -} - -/** - * @brief FLASH operation error interrupt callback - * @param ReturnValue The value saved in this parameter depends on the ongoing procedure - * Mass Erase: Bank number which has been requested to erase - * Sectors Erase: Sector number which returned an error - * Program: Address which was selected for data program - * @retval None - */ -__weak void HAL_FLASH_OperationErrorCallback(uint32_t ReturnValue) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(ReturnValue); - - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_FLASH_OperationErrorCallback could be implemented in the user file - */ -} - -/** - * @} - */ - -/** @defgroup FLASH_Exported_Functions_Group2 Peripheral Control functions - * @brief Management functions - * -@verbatim - =============================================================================== - ##### Peripheral Control functions ##### - =============================================================================== - [..] - This subsection provides a set of functions allowing to control the FLASH - memory operations. - -@endverbatim - * @{ - */ - -/** - * @brief Unlock the FLASH control registers access - * @retval HAL Status - */ -HAL_StatusTypeDef HAL_FLASH_Unlock(void) -{ - if(READ_BIT(FLASH->CR1, FLASH_CR_LOCK) != 0U) - { - /* Authorize the FLASH Bank1 Registers access */ - WRITE_REG(FLASH->KEYR1, FLASH_KEY1); - WRITE_REG(FLASH->KEYR1, FLASH_KEY2); - - /* Verify Flash Bank1 is unlocked */ - if (READ_BIT(FLASH->CR1, FLASH_CR_LOCK) != 0U) - { - return HAL_ERROR; - } - } - -#if defined (DUAL_BANK) - if(READ_BIT(FLASH->CR2, FLASH_CR_LOCK) != 0U) - { - /* Authorize the FLASH Bank2 Registers access */ - WRITE_REG(FLASH->KEYR2, FLASH_KEY1); - WRITE_REG(FLASH->KEYR2, FLASH_KEY2); - - /* Verify Flash Bank2 is unlocked */ - if (READ_BIT(FLASH->CR2, FLASH_CR_LOCK) != 0U) - { - return HAL_ERROR; - } - } -#endif /* DUAL_BANK */ - - return HAL_OK; -} - -/** - * @brief Locks the FLASH control registers access - * @retval HAL Status - */ -HAL_StatusTypeDef HAL_FLASH_Lock(void) -{ - /* Set the LOCK Bit to lock the FLASH Bank1 Control Register access */ - SET_BIT(FLASH->CR1, FLASH_CR_LOCK); - - /* Verify Flash Bank1 is locked */ - if (READ_BIT(FLASH->CR1, FLASH_CR_LOCK) == 0U) - { - return HAL_ERROR; - } - -#if defined (DUAL_BANK) - /* Set the LOCK Bit to lock the FLASH Bank2 Control Register access */ - SET_BIT(FLASH->CR2, FLASH_CR_LOCK); - - /* Verify Flash Bank2 is locked */ - if (READ_BIT(FLASH->CR2, FLASH_CR_LOCK) == 0U) - { - return HAL_ERROR; - } -#endif /* DUAL_BANK */ - - return HAL_OK; -} - -/** - * @brief Unlock the FLASH Option Control Registers access. - * @retval HAL Status - */ -HAL_StatusTypeDef HAL_FLASH_OB_Unlock(void) -{ - if(READ_BIT(FLASH->OPTCR, FLASH_OPTCR_OPTLOCK) != 0U) - { - /* Authorizes the Option Byte registers programming */ - WRITE_REG(FLASH->OPTKEYR, FLASH_OPT_KEY1); - WRITE_REG(FLASH->OPTKEYR, FLASH_OPT_KEY2); - - /* Verify that the Option Bytes are unlocked */ - if (READ_BIT(FLASH->OPTCR, FLASH_OPTCR_OPTLOCK) != 0U) - { - return HAL_ERROR; - } - } - - return HAL_OK; -} - -/** - * @brief Lock the FLASH Option Control Registers access. - * @retval HAL Status - */ -HAL_StatusTypeDef HAL_FLASH_OB_Lock(void) -{ - /* Set the OPTLOCK Bit to lock the FLASH Option Byte Registers access */ - SET_BIT(FLASH->OPTCR, FLASH_OPTCR_OPTLOCK); - - /* Verify that the Option Bytes are locked */ - if (READ_BIT(FLASH->OPTCR, FLASH_OPTCR_OPTLOCK) == 0U) - { - return HAL_ERROR; - } - - return HAL_OK; -} - -/** - * @brief Launch the option bytes loading. - * @retval HAL Status - */ -HAL_StatusTypeDef HAL_FLASH_OB_Launch(void) -{ - HAL_StatusTypeDef status; - - /* Wait for CRC computation to be completed */ - if (FLASH_CRC_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE, FLASH_BANK_1) != HAL_OK) - { - status = HAL_ERROR; - } -#if defined (DUAL_BANK) - else if (FLASH_CRC_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE, FLASH_BANK_2) != HAL_OK) - { - status = HAL_ERROR; - } -#endif /* DUAL_BANK */ - else - { - status = HAL_OK; - } - - if (status == HAL_OK) - { - /* Set OPTSTRT Bit */ - SET_BIT(FLASH->OPTCR, FLASH_OPTCR_OPTSTART); - - /* Wait for OB change operation to be completed */ - status = FLASH_OB_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - } - - return status; -} - -/** - * @} - */ - -/** @defgroup FLASH_Exported_Functions_Group3 Peripheral State and Errors functions - * @brief Peripheral Errors functions - * -@verbatim - =============================================================================== - ##### Peripheral Errors functions ##### - =============================================================================== - [..] - This subsection permits to get in run-time Errors of the FLASH peripheral. - -@endverbatim - * @{ - */ - -/** - * @brief Get the specific FLASH error flag. - * @retval HAL_FLASH_ERRORCode The returned value can be: - * @arg HAL_FLASH_ERROR_NONE : No error set - * - * @arg HAL_FLASH_ERROR_WRP_BANK1 : Write Protection Error on Bank 1 - * @arg HAL_FLASH_ERROR_PGS_BANK1 : Program Sequence Error on Bank 1 - * @arg HAL_FLASH_ERROR_STRB_BANK1 : Strobe Error on Bank 1 - * @arg HAL_FLASH_ERROR_INC_BANK1 : Inconsistency Error on Bank 1 - * @arg HAL_FLASH_ERROR_OPE_BANK1 : Operation Error on Bank 1 - * @arg HAL_FLASH_ERROR_RDP_BANK1 : Read Protection Error on Bank 1 - * @arg HAL_FLASH_ERROR_RDS_BANK1 : Read Secured Error on Bank 1 - * @arg HAL_FLASH_ERROR_SNECC_BANK1: ECC Single Correction Error on Bank 1 - * @arg HAL_FLASH_ERROR_DBECC_BANK1: ECC Double Detection Error on Bank 1 - * @arg HAL_FLASH_ERROR_CRCRD_BANK1: CRC Read Error on Bank 1 - * - * @arg HAL_FLASH_ERROR_WRP_BANK2 : Write Protection Error on Bank 2 - * @arg HAL_FLASH_ERROR_PGS_BANK2 : Program Sequence Error on Bank 2 - * @arg HAL_FLASH_ERROR_STRB_BANK2 : Strobe Error on Bank 2 - * @arg HAL_FLASH_ERROR_INC_BANK2 : Inconsistency Error on Bank 2 - * @arg HAL_FLASH_ERROR_OPE_BANK2 : Operation Error on Bank 2 - * @arg HAL_FLASH_ERROR_RDP_BANK2 : Read Protection Error on Bank 2 - * @arg HAL_FLASH_ERROR_RDS_BANK2 : Read Secured Error on Bank 2 - * @arg HAL_FLASH_ERROR_SNECC_BANK2: SNECC Error on Bank 2 - * @arg HAL_FLASH_ERROR_DBECC_BANK2: Double Detection ECC on Bank 2 - * @arg HAL_FLASH_ERROR_CRCRD_BANK2: CRC Read Error on Bank 2 -*/ - -uint32_t HAL_FLASH_GetError(void) -{ - return pFlash.ErrorCode; -} - -/** - * @} - */ - -/** - * @} - */ - -/* Private functions ---------------------------------------------------------*/ - -/** @addtogroup FLASH_Private_Functions - * @{ - */ - -/** - * @brief Wait for a FLASH operation to complete. - * @param Timeout maximum flash operation timeout - * @param Bank flash FLASH_BANK_1 or FLASH_BANK_2 - * @retval HAL_StatusTypeDef HAL Status - */ -HAL_StatusTypeDef FLASH_WaitForLastOperation(uint32_t Timeout, uint32_t Bank) -{ - /* Wait for the FLASH operation to complete by polling on QW flag to be reset. - Even if the FLASH operation fails, the QW flag will be reset and an error - flag will be set */ - - uint32_t bsyflag = FLASH_FLAG_QW_BANK1; - uint32_t errorflag = 0; - uint32_t tickstart = HAL_GetTick(); - - assert_param(IS_FLASH_BANK_EXCLUSIVE(Bank)); - -#if defined (DUAL_BANK) - - if (Bank == FLASH_BANK_2) - { - /* Select bsyflag depending on Bank */ - bsyflag = FLASH_FLAG_QW_BANK2; - } -#endif /* DUAL_BANK */ - - while(__HAL_FLASH_GET_FLAG(bsyflag)) - { - if(Timeout != HAL_MAX_DELAY) - { - if(((HAL_GetTick() - tickstart) > Timeout) || (Timeout == 0U)) - { - return HAL_TIMEOUT; - } - } - } - - /* Get Error Flags */ - if (Bank == FLASH_BANK_1) - { - errorflag = FLASH->SR1 & FLASH_FLAG_ALL_ERRORS_BANK1; - } -#if defined (DUAL_BANK) - else - { - errorflag = (FLASH->SR2 & FLASH_FLAG_ALL_ERRORS_BANK2) | 0x80000000U; - } -#endif /* DUAL_BANK */ - - /* In case of error reported in Flash SR1 or SR2 register */ - if((errorflag & 0x7FFFFFFFU) != 0U) - { - /*Save the error code*/ - pFlash.ErrorCode |= errorflag; - - /* Clear error programming flags */ - __HAL_FLASH_CLEAR_FLAG(errorflag); - - return HAL_ERROR; - } - - /* Check FLASH End of Operation flag */ - if(Bank == FLASH_BANK_1) - { - if (__HAL_FLASH_GET_FLAG_BANK1(FLASH_FLAG_EOP_BANK1)) - { - /* Clear FLASH End of Operation pending bit */ - __HAL_FLASH_CLEAR_FLAG_BANK1(FLASH_FLAG_EOP_BANK1); - } - } -#if defined (DUAL_BANK) - else - { - if (__HAL_FLASH_GET_FLAG_BANK2(FLASH_FLAG_EOP_BANK2)) - { - /* Clear FLASH End of Operation pending bit */ - __HAL_FLASH_CLEAR_FLAG_BANK2(FLASH_FLAG_EOP_BANK2); - } - } -#endif /* DUAL_BANK */ - - return HAL_OK; -} - -/** - * @brief Wait for a FLASH Option Bytes change operation to complete. - * @param Timeout maximum flash operation timeout - * @retval HAL_StatusTypeDef HAL Status - */ -HAL_StatusTypeDef FLASH_OB_WaitForLastOperation(uint32_t Timeout) -{ - /* Get timeout */ - uint32_t tickstart = HAL_GetTick(); - - /* Wait for the FLASH Option Bytes change operation to complete by polling on OPT_BUSY flag to be reset */ - while(READ_BIT(FLASH->OPTSR_CUR, FLASH_OPTSR_OPT_BUSY) != 0U) - { - if(Timeout != HAL_MAX_DELAY) - { - if(((HAL_GetTick() - tickstart) > Timeout) || (Timeout == 0U)) - { - return HAL_TIMEOUT; - } - } - } - - /* Check option byte change error */ - if(READ_BIT(FLASH->OPTSR_CUR, FLASH_OPTSR_OPTCHANGEERR) != 0U) - { - /* Save the error code */ - pFlash.ErrorCode |= HAL_FLASH_ERROR_OB_CHANGE; - - /* Clear the OB error flag */ - FLASH->OPTCCR |= FLASH_OPTCCR_CLR_OPTCHANGEERR; - - return HAL_ERROR; - } - - /* If there is no error flag set */ - return HAL_OK; -} - -/** - * @brief Wait for a FLASH CRC computation to complete. - * @param Timeout maximum flash operation timeout - * @param Bank flash FLASH_BANK_1 or FLASH_BANK_2 - * @retval HAL_StatusTypeDef HAL Status - */ -HAL_StatusTypeDef FLASH_CRC_WaitForLastOperation(uint32_t Timeout, uint32_t Bank) -{ - uint32_t bsyflag; - uint32_t tickstart = HAL_GetTick(); - - assert_param(IS_FLASH_BANK_EXCLUSIVE(Bank)); - - /* Select bsyflag depending on Bank */ - if(Bank == FLASH_BANK_1) - { - bsyflag = FLASH_FLAG_CRC_BUSY_BANK1; - } - else - { - bsyflag = FLASH_FLAG_CRC_BUSY_BANK2; - } - - /* Wait for the FLASH CRC computation to complete by polling on CRC_BUSY flag to be reset */ - while(__HAL_FLASH_GET_FLAG(bsyflag)) - { - if(Timeout != HAL_MAX_DELAY) - { - if(((HAL_GetTick() - tickstart) > Timeout) || (Timeout == 0U)) - { - return HAL_TIMEOUT; - } - } - } - - /* Check FLASH CRC read error flag */ - if(Bank == FLASH_BANK_1) - { - if (__HAL_FLASH_GET_FLAG_BANK1(FLASH_FLAG_CRCRDERR_BANK1)) - { - /* Save the error code */ - pFlash.ErrorCode |= HAL_FLASH_ERROR_CRCRD_BANK1; - - /* Clear FLASH CRC read error pending bit */ - __HAL_FLASH_CLEAR_FLAG_BANK1(FLASH_FLAG_CRCRDERR_BANK1); - - return HAL_ERROR; - } - } -#if defined (DUAL_BANK) - else - { - if (__HAL_FLASH_GET_FLAG_BANK2(FLASH_FLAG_CRCRDERR_BANK2)) - { - /* Save the error code */ - pFlash.ErrorCode |= HAL_FLASH_ERROR_CRCRD_BANK2; - - /* Clear FLASH CRC read error pending bit */ - __HAL_FLASH_CLEAR_FLAG_BANK2(FLASH_FLAG_CRCRDERR_BANK2); - - return HAL_ERROR; - } - } -#endif /* DUAL_BANK */ - - /* If there is no error flag set */ - return HAL_OK; -} - -/** - * @} - */ - -#endif /* HAL_FLASH_MODULE_ENABLED */ - -/** - * @} - */ - -/** - * @} - */ - - diff --git a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c b/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c deleted file mode 100644 index fd4acec..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c +++ /dev/null @@ -1,1860 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_flash_ex.c - * @author MCD Application Team - * @brief Extended FLASH HAL module driver. - * This file provides firmware functions to manage the following - * functionalities of the FLASH extension peripheral: - * + Extended programming operations functions - * - @verbatim - ============================================================================== - ##### Flash Extension features ##### - ============================================================================== - - [..] Comparing to other previous devices, the FLASH interface for STM32H7xx - devices contains the following additional features - - (+) Capacity up to 2 Mbyte with dual bank architecture supporting read-while-write - capability (RWW) - (+) Dual bank memory organization - (+) PCROP protection for all banks - (+) Global readout protection (RDP) - (+) Write protection - (+) Secure access only protection - (+) Bank / register swapping (when Dual-Bank) - (+) Cyclic Redundancy Check (CRC) - - ##### How to use this driver ##### - ============================================================================== - [..] This driver provides functions to configure and program the FLASH memory - of all STM32H7xx devices. It includes - (#) FLASH Memory Erase functions: - (++) Lock and Unlock the FLASH interface using HAL_FLASH_Unlock() and - HAL_FLASH_Lock() functions - (++) Erase function: Sector erase, bank erase and dual-bank mass erase - (++) There are two modes of erase : - (+++) Polling Mode using HAL_FLASHEx_Erase() - (+++) Interrupt Mode using HAL_FLASHEx_Erase_IT() - - (#) Option Bytes Programming functions: Use HAL_FLASHEx_OBProgram() to: - (++) Set/Reset the write protection per bank - (++) Set the Read protection Level - (++) Set the BOR level - (++) Program the user Option Bytes - (++) PCROP protection configuration and control per bank - (++) Secure area configuration and control per bank - (++) Core Boot address configuration - (++) TCM / AXI shared RAM configuration - (++) CPU Frequency Boost configuration - - (#) FLASH Memory Lock and unlock per Bank: HAL_FLASHEx_Lock_Bank1(), HAL_FLASHEx_Unlock_Bank1(), - HAL_FLASHEx_Lock_Bank2() and HAL_FLASHEx_Unlock_Bank2() functions - - (#) FLASH CRC computation function: Use HAL_FLASHEx_ComputeCRC() to: - (++) Enable CRC feature - (++) Program the desired burst size - (++) Define the user Flash Area on which the CRC has be computed - (++) Perform the CRC computation - (++) Disable CRC feature - - @endverbatim - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file in - * the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - ****************************************************************************** - */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @defgroup FLASHEx FLASHEx - * @brief FLASH HAL Extension module driver - * @{ - */ - -#ifdef HAL_FLASH_MODULE_ENABLED - -/* Private typedef -----------------------------------------------------------*/ -/* Private define ------------------------------------------------------------*/ -/** @addtogroup FLASHEx_Private_Constants - * @{ - */ -#define FLASH_TIMEOUT_VALUE 50000U /* 50 s */ - -/** - * @} - */ -/* Private macro -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private function prototypes -----------------------------------------------*/ -/** @defgroup FLASHEx_Private_Functions FLASHEx Private Functions - * @{ - */ -static void FLASH_MassErase(uint32_t VoltageRange, uint32_t Banks); -static void FLASH_OB_EnableWRP(uint32_t WRPSector, uint32_t Banks); -static void FLASH_OB_DisableWRP(uint32_t WRPSector, uint32_t Bank); -static void FLASH_OB_GetWRP(uint32_t *WRPState, uint32_t *WRPSector, uint32_t Bank); -static void FLASH_OB_RDPConfig(uint32_t RDPLevel); -static uint32_t FLASH_OB_GetRDP(void); -static void FLASH_OB_PCROPConfig(uint32_t PCROConfigRDP, uint32_t PCROPStartAddr, uint32_t PCROPEndAddr, uint32_t Banks); -static void FLASH_OB_GetPCROP(uint32_t *PCROPConfig, uint32_t *PCROPStartAddr,uint32_t *PCROPEndAddr, uint32_t Bank); -static void FLASH_OB_BOR_LevelConfig(uint32_t Level); -static uint32_t FLASH_OB_GetBOR(void); -static void FLASH_OB_UserConfig(uint32_t UserType, uint32_t UserConfig); -static uint32_t FLASH_OB_GetUser(void); -static void FLASH_OB_BootAddConfig(uint32_t BootOption, uint32_t BootAddress0, uint32_t BootAddress1); -static void FLASH_OB_GetBootAdd(uint32_t *BootAddress0, uint32_t *BootAddress1); -static void FLASH_OB_SecureAreaConfig(uint32_t SecureAreaConfig, uint32_t SecureAreaStartAddr, uint32_t SecureAreaEndAddr, uint32_t Banks); -static void FLASH_OB_GetSecureArea(uint32_t *SecureAreaConfig, uint32_t *SecureAreaStartAddr, uint32_t *SecureAreaEndAddr, uint32_t Bank); -static void FLASH_CRC_AddSector(uint32_t Sector, uint32_t Bank); -static void FLASH_CRC_SelectAddress(uint32_t CRCStartAddr, uint32_t CRCEndAddr, uint32_t Bank); - -#if defined (DUAL_CORE) -static void FLASH_OB_CM4BootAddConfig(uint32_t BootOption, uint32_t BootAddress0, uint32_t BootAddress1); -static void FLASH_OB_GetCM4BootAdd(uint32_t *BootAddress0, uint32_t *BootAddress1); -#endif /*DUAL_CORE*/ - -#if defined (FLASH_OTPBL_LOCKBL) -static void FLASH_OB_OTP_LockConfig(uint32_t OTP_Block); -static uint32_t FLASH_OB_OTP_GetLock(void); -#endif /* FLASH_OTPBL_LOCKBL */ - -#if defined (FLASH_OPTSR2_TCM_AXI_SHARED) -static void FLASH_OB_SharedRAM_Config(uint32_t SharedRamConfig); -static uint32_t FLASH_OB_SharedRAM_GetConfig(void); -#endif /* FLASH_OPTSR2_TCM_AXI_SHARED */ - -#if defined (FLASH_OPTSR2_CPUFREQ_BOOST) -static void FLASH_OB_CPUFreq_BoostConfig(uint32_t FreqBoost); -static uint32_t FLASH_OB_CPUFreq_GetBoost(void); -#endif /* FLASH_OPTSR2_CPUFREQ_BOOST */ -/** - * @} - */ - -/* Exported functions ---------------------------------------------------------*/ -/** @defgroup FLASHEx_Exported_Functions FLASHEx Exported Functions - * @{ - */ - -/** @defgroup FLASHEx_Exported_Functions_Group1 Extended IO operation functions - * @brief Extended IO operation functions - * -@verbatim - =============================================================================== - ##### Extended programming operation functions ##### - =============================================================================== - [..] - This subsection provides a set of functions allowing to manage the Extension FLASH - programming operations Operations. - -@endverbatim - * @{ - */ -/** - * @brief Perform a mass erase or erase the specified FLASH memory sectors - * @param[in] pEraseInit pointer to an FLASH_EraseInitTypeDef structure that - * contains the configuration information for the erasing. - * - * @param[out] SectorError pointer to variable that contains the configuration - * information on faulty sector in case of error (0xFFFFFFFF means that all - * the sectors have been correctly erased) - * - * @retval HAL Status - */ -HAL_StatusTypeDef HAL_FLASHEx_Erase(FLASH_EraseInitTypeDef *pEraseInit, uint32_t *SectorError) -{ - HAL_StatusTypeDef status = HAL_OK; - uint32_t sector_index; - - /* Check the parameters */ - assert_param(IS_FLASH_TYPEERASE(pEraseInit->TypeErase)); - assert_param(IS_FLASH_BANK(pEraseInit->Banks)); - - /* Process Locked */ - __HAL_LOCK(&pFlash); - - /* Reset error code */ - pFlash.ErrorCode = HAL_FLASH_ERROR_NONE; - - /* Wait for last operation to be completed on Bank1 */ - if((pEraseInit->Banks & FLASH_BANK_1) == FLASH_BANK_1) - { - if(FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE, FLASH_BANK_1) != HAL_OK) - { - status = HAL_ERROR; - } - } - -#if defined (DUAL_BANK) - /* Wait for last operation to be completed on Bank2 */ - if((pEraseInit->Banks & FLASH_BANK_2) == FLASH_BANK_2) - { - if(FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE, FLASH_BANK_2) != HAL_OK) - { - status = HAL_ERROR; - } - } -#endif /* DUAL_BANK */ - - if(status == HAL_OK) - { - if(pEraseInit->TypeErase == FLASH_TYPEERASE_MASSERASE) - { - /* Mass erase to be done */ - FLASH_MassErase(pEraseInit->VoltageRange, pEraseInit->Banks); - - /* Wait for last operation to be completed on Bank 1 */ - if((pEraseInit->Banks & FLASH_BANK_1) == FLASH_BANK_1) - { - if(FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE, FLASH_BANK_1) != HAL_OK) - { - status = HAL_ERROR; - } - /* if the erase operation is completed, disable the Bank1 BER Bit */ - FLASH->CR1 &= (~FLASH_CR_BER); - } -#if defined (DUAL_BANK) - /* Wait for last operation to be completed on Bank 2 */ - if((pEraseInit->Banks & FLASH_BANK_2) == FLASH_BANK_2) - { - if(FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE, FLASH_BANK_2) != HAL_OK) - { - status = HAL_ERROR; - } - /* if the erase operation is completed, disable the Bank2 BER Bit */ - FLASH->CR2 &= (~FLASH_CR_BER); - } -#endif /* DUAL_BANK */ - } - else - { - /*Initialization of SectorError variable*/ - *SectorError = 0xFFFFFFFFU; - - /* Erase by sector by sector to be done*/ - for(sector_index = pEraseInit->Sector; sector_index < (pEraseInit->NbSectors + pEraseInit->Sector); sector_index++) - { - FLASH_Erase_Sector(sector_index, pEraseInit->Banks, pEraseInit->VoltageRange); - - if((pEraseInit->Banks & FLASH_BANK_1) == FLASH_BANK_1) - { - /* Wait for last operation to be completed */ - status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE, FLASH_BANK_1); - - /* If the erase operation is completed, disable the SER Bit */ - FLASH->CR1 &= (~(FLASH_CR_SER | FLASH_CR_SNB)); - } -#if defined (DUAL_BANK) - if((pEraseInit->Banks & FLASH_BANK_2) == FLASH_BANK_2) - { - /* Wait for last operation to be completed */ - status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE, FLASH_BANK_2); - - /* If the erase operation is completed, disable the SER Bit */ - FLASH->CR2 &= (~(FLASH_CR_SER | FLASH_CR_SNB)); - } -#endif /* DUAL_BANK */ - - if(status != HAL_OK) - { - /* In case of error, stop erase procedure and return the faulty sector */ - *SectorError = sector_index; - break; - } - } - } - } - - /* Process Unlocked */ - __HAL_UNLOCK(&pFlash); - - return status; -} - -/** - * @brief Perform a mass erase or erase the specified FLASH memory sectors with interrupt enabled - * @param pEraseInit pointer to an FLASH_EraseInitTypeDef structure that - * contains the configuration information for the erasing. - * - * @retval HAL Status - */ -HAL_StatusTypeDef HAL_FLASHEx_Erase_IT(FLASH_EraseInitTypeDef *pEraseInit) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Check the parameters */ - assert_param(IS_FLASH_TYPEERASE(pEraseInit->TypeErase)); - assert_param(IS_FLASH_BANK(pEraseInit->Banks)); - - /* Process Locked */ - __HAL_LOCK(&pFlash); - - /* Reset error code */ - pFlash.ErrorCode = HAL_FLASH_ERROR_NONE; - - /* Wait for last operation to be completed on Bank 1 */ - if((pEraseInit->Banks & FLASH_BANK_1) == FLASH_BANK_1) - { - if(FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE, FLASH_BANK_1) != HAL_OK) - { - status = HAL_ERROR; - } - } - -#if defined (DUAL_BANK) - /* Wait for last operation to be completed on Bank 2 */ - if((pEraseInit->Banks & FLASH_BANK_2) == FLASH_BANK_2) - { - if(FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE, FLASH_BANK_2) != HAL_OK) - { - status = HAL_ERROR; - } - } -#endif /* DUAL_BANK */ - - if (status != HAL_OK) - { - /* Process Unlocked */ - __HAL_UNLOCK(&pFlash); - } - else - { - if((pEraseInit->Banks & FLASH_BANK_1) == FLASH_BANK_1) - { - /* Enable End of Operation and Error interrupts for Bank 1 */ -#if defined (FLASH_CR_OPERRIE) - __HAL_FLASH_ENABLE_IT_BANK1(FLASH_IT_EOP_BANK1 | FLASH_IT_WRPERR_BANK1 | FLASH_IT_PGSERR_BANK1 | \ - FLASH_IT_STRBERR_BANK1 | FLASH_IT_INCERR_BANK1 | FLASH_IT_OPERR_BANK1); -#else - __HAL_FLASH_ENABLE_IT_BANK1(FLASH_IT_EOP_BANK1 | FLASH_IT_WRPERR_BANK1 | FLASH_IT_PGSERR_BANK1 | \ - FLASH_IT_STRBERR_BANK1 | FLASH_IT_INCERR_BANK1); -#endif /* FLASH_CR_OPERRIE */ - } -#if defined (DUAL_BANK) - if((pEraseInit->Banks & FLASH_BANK_2) == FLASH_BANK_2) - { - /* Enable End of Operation and Error interrupts for Bank 2 */ -#if defined (FLASH_CR_OPERRIE) - __HAL_FLASH_ENABLE_IT_BANK2(FLASH_IT_EOP_BANK2 | FLASH_IT_WRPERR_BANK2 | FLASH_IT_PGSERR_BANK2 | \ - FLASH_IT_STRBERR_BANK2 | FLASH_IT_INCERR_BANK2 | FLASH_IT_OPERR_BANK2); -#else - __HAL_FLASH_ENABLE_IT_BANK2(FLASH_IT_EOP_BANK2 | FLASH_IT_WRPERR_BANK2 | FLASH_IT_PGSERR_BANK2 | \ - FLASH_IT_STRBERR_BANK2 | FLASH_IT_INCERR_BANK2); -#endif /* FLASH_CR_OPERRIE */ - } -#endif /* DUAL_BANK */ - - if(pEraseInit->TypeErase == FLASH_TYPEERASE_MASSERASE) - { - /*Mass erase to be done*/ - if(pEraseInit->Banks == FLASH_BANK_1) - { - pFlash.ProcedureOnGoing = FLASH_PROC_MASSERASE_BANK1; - } -#if defined (DUAL_BANK) - else if(pEraseInit->Banks == FLASH_BANK_2) - { - pFlash.ProcedureOnGoing = FLASH_PROC_MASSERASE_BANK2; - } -#endif /* DUAL_BANK */ - else - { - pFlash.ProcedureOnGoing = FLASH_PROC_ALLBANK_MASSERASE; - } - - FLASH_MassErase(pEraseInit->VoltageRange, pEraseInit->Banks); - } - else - { - /* Erase by sector to be done */ -#if defined (DUAL_BANK) - if(pEraseInit->Banks == FLASH_BANK_1) - { - pFlash.ProcedureOnGoing = FLASH_PROC_SECTERASE_BANK1; - } - else - { - pFlash.ProcedureOnGoing = FLASH_PROC_SECTERASE_BANK2; - } -#else - pFlash.ProcedureOnGoing = FLASH_PROC_SECTERASE_BANK1; -#endif /* DUAL_BANK */ - - pFlash.NbSectorsToErase = pEraseInit->NbSectors; - pFlash.Sector = pEraseInit->Sector; - pFlash.VoltageForErase = pEraseInit->VoltageRange; - - /* Erase first sector and wait for IT */ - FLASH_Erase_Sector(pEraseInit->Sector, pEraseInit->Banks, pEraseInit->VoltageRange); - } - } - - return status; -} - -/** - * @brief Program option bytes - * @param pOBInit pointer to an FLASH_OBProgramInitTypeDef structure that - * contains the configuration information for the programming. - * - * @retval HAL Status - */ -HAL_StatusTypeDef HAL_FLASHEx_OBProgram(FLASH_OBProgramInitTypeDef *pOBInit) -{ - HAL_StatusTypeDef status; - - /* Check the parameters */ - assert_param(IS_OPTIONBYTE(pOBInit->OptionType)); - - /* Process Locked */ - __HAL_LOCK(&pFlash); - - /* Reset Error Code */ - pFlash.ErrorCode = HAL_FLASH_ERROR_NONE; - - /* Wait for last operation to be completed */ - if(FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE, FLASH_BANK_1) != HAL_OK) - { - status = HAL_ERROR; - } -#if defined (DUAL_BANK) - else if(FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE, FLASH_BANK_2) != HAL_OK) - { - status = HAL_ERROR; - } -#endif /* DUAL_BANK */ - else - { - status = HAL_OK; - } - - if(status == HAL_OK) - { - /*Write protection configuration*/ - if((pOBInit->OptionType & OPTIONBYTE_WRP) == OPTIONBYTE_WRP) - { - assert_param(IS_WRPSTATE(pOBInit->WRPState)); - - if(pOBInit->WRPState == OB_WRPSTATE_ENABLE) - { - /*Enable of Write protection on the selected Sector*/ - FLASH_OB_EnableWRP(pOBInit->WRPSector,pOBInit->Banks); - } - else - { - /*Disable of Write protection on the selected Sector*/ - FLASH_OB_DisableWRP(pOBInit->WRPSector, pOBInit->Banks); - } - } - - /* Read protection configuration */ - if((pOBInit->OptionType & OPTIONBYTE_RDP) != 0U) - { - /* Configure the Read protection level */ - FLASH_OB_RDPConfig(pOBInit->RDPLevel); - } - - /* User Configuration */ - if((pOBInit->OptionType & OPTIONBYTE_USER) != 0U) - { - /* Configure the user option bytes */ - FLASH_OB_UserConfig(pOBInit->USERType, pOBInit->USERConfig); - } - - /* PCROP Configuration */ - if((pOBInit->OptionType & OPTIONBYTE_PCROP) != 0U) - { - assert_param(IS_FLASH_BANK(pOBInit->Banks)); - - /*Configure the Proprietary code readout protection */ - FLASH_OB_PCROPConfig(pOBInit->PCROPConfig, pOBInit->PCROPStartAddr, pOBInit->PCROPEndAddr, pOBInit->Banks); - } - - /* BOR Level configuration */ - if((pOBInit->OptionType & OPTIONBYTE_BOR) == OPTIONBYTE_BOR) - { - FLASH_OB_BOR_LevelConfig(pOBInit->BORLevel); - } - -#if defined(DUAL_CORE) - /* CM7 Boot Address configuration */ - if((pOBInit->OptionType & OPTIONBYTE_CM7_BOOTADD) == OPTIONBYTE_CM7_BOOTADD) - { - FLASH_OB_BootAddConfig(pOBInit->BootConfig, pOBInit->BootAddr0, pOBInit->BootAddr1); - } - - /* CM4 Boot Address configuration */ - if((pOBInit->OptionType & OPTIONBYTE_CM4_BOOTADD) == OPTIONBYTE_CM4_BOOTADD) - { - FLASH_OB_CM4BootAddConfig(pOBInit->CM4BootConfig, pOBInit->CM4BootAddr0, pOBInit->CM4BootAddr1); - } -#else /* Single Core*/ - /* Boot Address configuration */ - if((pOBInit->OptionType & OPTIONBYTE_BOOTADD) == OPTIONBYTE_BOOTADD) - { - FLASH_OB_BootAddConfig(pOBInit->BootConfig, pOBInit->BootAddr0, pOBInit->BootAddr1); - } -#endif /*DUAL_CORE*/ - - /* Secure area configuration */ - if((pOBInit->OptionType & OPTIONBYTE_SECURE_AREA) == OPTIONBYTE_SECURE_AREA) - { - FLASH_OB_SecureAreaConfig(pOBInit->SecureAreaConfig, pOBInit->SecureAreaStartAddr, pOBInit->SecureAreaEndAddr,pOBInit->Banks); - } - -#if defined(FLASH_OTPBL_LOCKBL) - /* OTP Block Lock configuration */ - if((pOBInit->OptionType & OPTIONBYTE_OTP_LOCK) == OPTIONBYTE_OTP_LOCK) - { - FLASH_OB_OTP_LockConfig(pOBInit->OTPBlockLock); - } -#endif /* FLASH_OTPBL_LOCKBL */ - -#if defined(FLASH_OPTSR2_TCM_AXI_SHARED) - /* TCM / AXI Shared RAM configuration */ - if((pOBInit->OptionType & OPTIONBYTE_SHARED_RAM) == OPTIONBYTE_SHARED_RAM) - { - FLASH_OB_SharedRAM_Config(pOBInit->SharedRamConfig); - } -#endif /* FLASH_OPTSR2_TCM_AXI_SHARED */ - -#if defined(FLASH_OPTSR2_CPUFREQ_BOOST) - /* CPU Frequency Boost configuration */ - if((pOBInit->OptionType & OPTIONBYTE_FREQ_BOOST) == OPTIONBYTE_FREQ_BOOST) - { - FLASH_OB_CPUFreq_BoostConfig(pOBInit->FreqBoostState); - } -#endif /* FLASH_OPTSR2_CPUFREQ_BOOST */ - } - - /* Process Unlocked */ - __HAL_UNLOCK(&pFlash); - - return status; -} - -/** - * @brief Get the Option byte configuration - * @param pOBInit pointer to an FLASH_OBProgramInitTypeDef structure that - * contains the configuration information for the programming. - * @note The parameter Banks of the pOBInit structure must be set exclusively to FLASH_BANK_1 or FLASH_BANK_2, - * as this parameter is use to get the given Bank WRP, PCROP and secured area configuration. - * - * @retval None - */ -void HAL_FLASHEx_OBGetConfig(FLASH_OBProgramInitTypeDef *pOBInit) -{ - pOBInit->OptionType = (OPTIONBYTE_USER | OPTIONBYTE_RDP | OPTIONBYTE_BOR); - - /* Get Read protection level */ - pOBInit->RDPLevel = FLASH_OB_GetRDP(); - - /* Get the user option bytes */ - pOBInit->USERConfig = FLASH_OB_GetUser(); - - /*Get BOR Level*/ - pOBInit->BORLevel = FLASH_OB_GetBOR(); - -#if defined (DUAL_BANK) - if ((pOBInit->Banks == FLASH_BANK_1) || (pOBInit->Banks == FLASH_BANK_2)) -#else - if (pOBInit->Banks == FLASH_BANK_1) -#endif /* DUAL_BANK */ - { - pOBInit->OptionType |= (OPTIONBYTE_WRP | OPTIONBYTE_PCROP | OPTIONBYTE_SECURE_AREA); - - /* Get write protection on the selected area */ - FLASH_OB_GetWRP(&(pOBInit->WRPState), &(pOBInit->WRPSector), pOBInit->Banks); - - /* Get the Proprietary code readout protection */ - FLASH_OB_GetPCROP(&(pOBInit->PCROPConfig), &(pOBInit->PCROPStartAddr), &(pOBInit->PCROPEndAddr), pOBInit->Banks); - - /*Get Bank Secure area*/ - FLASH_OB_GetSecureArea(&(pOBInit->SecureAreaConfig), &(pOBInit->SecureAreaStartAddr), &(pOBInit->SecureAreaEndAddr), pOBInit->Banks); - } - - /*Get Boot Address*/ - FLASH_OB_GetBootAdd(&(pOBInit->BootAddr0), &(pOBInit->BootAddr1)); -#if defined(DUAL_CORE) - pOBInit->OptionType |= OPTIONBYTE_CM7_BOOTADD | OPTIONBYTE_CM4_BOOTADD; - - /*Get CM4 Boot Address*/ - FLASH_OB_GetCM4BootAdd(&(pOBInit->CM4BootAddr0), &(pOBInit->CM4BootAddr1)); -#else - pOBInit->OptionType |= OPTIONBYTE_BOOTADD; -#endif /*DUAL_CORE*/ - -#if defined (FLASH_OTPBL_LOCKBL) - pOBInit->OptionType |= OPTIONBYTE_OTP_LOCK; - - /* Get OTP Block Lock */ - pOBInit->OTPBlockLock = FLASH_OB_OTP_GetLock(); -#endif /* FLASH_OTPBL_LOCKBL */ - -#if defined (FLASH_OPTSR2_TCM_AXI_SHARED) - pOBInit->OptionType |= OPTIONBYTE_SHARED_RAM; - - /* Get TCM / AXI Shared RAM */ - pOBInit->SharedRamConfig = FLASH_OB_SharedRAM_GetConfig(); -#endif /* FLASH_OPTSR2_TCM_AXI_SHARED */ - -#if defined (FLASH_OPTSR2_CPUFREQ_BOOST) - pOBInit->OptionType |= OPTIONBYTE_FREQ_BOOST; - - /* Get CPU Frequency Boost */ - pOBInit->FreqBoostState = FLASH_OB_CPUFreq_GetBoost(); -#endif /* FLASH_OPTSR2_CPUFREQ_BOOST */ -} - -/** - * @brief Unlock the FLASH Bank1 control registers access - * @retval HAL Status - */ -HAL_StatusTypeDef HAL_FLASHEx_Unlock_Bank1(void) -{ - if(READ_BIT(FLASH->CR1, FLASH_CR_LOCK) != 0U) - { - /* Authorize the FLASH Bank1 Registers access */ - WRITE_REG(FLASH->KEYR1, FLASH_KEY1); - WRITE_REG(FLASH->KEYR1, FLASH_KEY2); - - /* Verify Flash Bank1 is unlocked */ - if (READ_BIT(FLASH->CR1, FLASH_CR_LOCK) != 0U) - { - return HAL_ERROR; - } - } - - return HAL_OK; -} - -/** - * @brief Locks the FLASH Bank1 control registers access - * @retval HAL Status - */ -HAL_StatusTypeDef HAL_FLASHEx_Lock_Bank1(void) -{ - /* Set the LOCK Bit to lock the FLASH Bank1 Registers access */ - SET_BIT(FLASH->CR1, FLASH_CR_LOCK); - return HAL_OK; -} - -#if defined (DUAL_BANK) -/** - * @brief Unlock the FLASH Bank2 control registers access - * @retval HAL Status - */ -HAL_StatusTypeDef HAL_FLASHEx_Unlock_Bank2(void) -{ - if(READ_BIT(FLASH->CR2, FLASH_CR_LOCK) != 0U) - { - /* Authorize the FLASH Bank2 Registers access */ - WRITE_REG(FLASH->KEYR2, FLASH_KEY1); - WRITE_REG(FLASH->KEYR2, FLASH_KEY2); - - /* Verify Flash Bank1 is unlocked */ - if (READ_BIT(FLASH->CR2, FLASH_CR_LOCK) != 0U) - { - return HAL_ERROR; - } - } - - return HAL_OK; -} - -/** - * @brief Locks the FLASH Bank2 control registers access - * @retval HAL Status - */ -HAL_StatusTypeDef HAL_FLASHEx_Lock_Bank2(void) -{ - /* Set the LOCK Bit to lock the FLASH Bank2 Registers access */ - SET_BIT(FLASH->CR2, FLASH_CR_LOCK); - return HAL_OK; -} -#endif /* DUAL_BANK */ - -/* - * @brief Perform a CRC computation on the specified FLASH memory area - * @param pCRCInit pointer to an FLASH_CRCInitTypeDef structure that - * contains the configuration information for the CRC computation. - * @note CRC computation uses CRC-32 (Ethernet) polynomial 0x4C11DB7 - * @note The application should avoid running a CRC on PCROP or secure-only - * user Flash memory area since it may alter the expected CRC value. - * A special error flag (CRC read error: CRCRDERR) can be used to - * detect such a case. - * @retval HAL Status -*/ -HAL_StatusTypeDef HAL_FLASHEx_ComputeCRC(FLASH_CRCInitTypeDef *pCRCInit, uint32_t *CRC_Result) -{ - HAL_StatusTypeDef status; - uint32_t sector_index; - - /* Check the parameters */ - assert_param(IS_FLASH_BANK_EXCLUSIVE(pCRCInit->Bank)); - assert_param(IS_FLASH_TYPECRC(pCRCInit->TypeCRC)); - - /* Wait for OB change operation to be completed */ - status = FLASH_OB_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - - if (status == HAL_OK) - { - if (pCRCInit->Bank == FLASH_BANK_1) - { - /* Enable CRC feature */ - FLASH->CR1 |= FLASH_CR_CRC_EN; - - /* Clear CRC flags in Status Register: CRC end of calculation and CRC read error */ - FLASH->CCR1 |= (FLASH_CCR_CLR_CRCEND | FLASH_CCR_CLR_CRCRDERR); - - /* Clear current CRC result, program burst size and define memory area on which CRC has to be computed */ - FLASH->CRCCR1 |= FLASH_CRCCR_CLEAN_CRC | pCRCInit->BurstSize | pCRCInit->TypeCRC; - - if (pCRCInit->TypeCRC == FLASH_CRC_SECTORS) - { - /* Clear sectors list */ - FLASH->CRCCR1 |= FLASH_CRCCR_CLEAN_SECT; - - /* Select CRC sectors */ - for(sector_index = pCRCInit->Sector; sector_index < (pCRCInit->NbSectors + pCRCInit->Sector); sector_index++) - { - FLASH_CRC_AddSector(sector_index, FLASH_BANK_1); - } - } - else if (pCRCInit->TypeCRC == FLASH_CRC_BANK) - { - /* Enable Bank 1 CRC select bit */ - FLASH->CRCCR1 |= FLASH_CRCCR_ALL_BANK; - } - else - { - /* Select CRC start and end addresses */ - FLASH_CRC_SelectAddress(pCRCInit->CRCStartAddr, pCRCInit->CRCEndAddr, FLASH_BANK_1); - } - - /* Start the CRC calculation */ - FLASH->CRCCR1 |= FLASH_CRCCR_START_CRC; - - /* Wait on CRC busy flag */ - status = FLASH_CRC_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE, FLASH_BANK_1); - - /* Return CRC result */ - (*CRC_Result) = FLASH->CRCDATA; - - /* Disable CRC feature */ - FLASH->CR1 &= (~FLASH_CR_CRC_EN); - - /* Clear CRC flags */ - __HAL_FLASH_CLEAR_FLAG_BANK1(FLASH_FLAG_CRCEND_BANK1 | FLASH_FLAG_CRCRDERR_BANK1); - } -#if defined (DUAL_BANK) - else - { - /* Enable CRC feature */ - FLASH->CR2 |= FLASH_CR_CRC_EN; - - /* Clear CRC flags in Status Register: CRC end of calculation and CRC read error */ - FLASH->CCR2 |= (FLASH_CCR_CLR_CRCEND | FLASH_CCR_CLR_CRCRDERR); - - /* Clear current CRC result, program burst size and define memory area on which CRC has to be computed */ - FLASH->CRCCR2 |= FLASH_CRCCR_CLEAN_CRC | pCRCInit->BurstSize | pCRCInit->TypeCRC; - - if (pCRCInit->TypeCRC == FLASH_CRC_SECTORS) - { - /* Clear sectors list */ - FLASH->CRCCR2 |= FLASH_CRCCR_CLEAN_SECT; - - /* Add CRC sectors */ - for(sector_index = pCRCInit->Sector; sector_index < (pCRCInit->NbSectors + pCRCInit->Sector); sector_index++) - { - FLASH_CRC_AddSector(sector_index, FLASH_BANK_2); - } - } - else if (pCRCInit->TypeCRC == FLASH_CRC_BANK) - { - /* Enable Bank 2 CRC select bit */ - FLASH->CRCCR2 |= FLASH_CRCCR_ALL_BANK; - } - else - { - /* Select CRC start and end addresses */ - FLASH_CRC_SelectAddress(pCRCInit->CRCStartAddr, pCRCInit->CRCEndAddr, FLASH_BANK_2); - } - - /* Start the CRC calculation */ - FLASH->CRCCR2 |= FLASH_CRCCR_START_CRC; - - /* Wait on CRC busy flag */ - status = FLASH_CRC_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE, FLASH_BANK_2); - - /* Return CRC result */ - (*CRC_Result) = FLASH->CRCDATA; - - /* Disable CRC feature */ - FLASH->CR2 &= (~FLASH_CR_CRC_EN); - - /* Clear CRC flags */ - __HAL_FLASH_CLEAR_FLAG_BANK2(FLASH_FLAG_CRCEND_BANK2 | FLASH_FLAG_CRCRDERR_BANK2); - } -#endif /* DUAL_BANK */ - } - - return status; -} - -/** - * @} - */ - -/** - * @} - */ - -/* Private functions ---------------------------------------------------------*/ - -/** @addtogroup FLASHEx_Private_Functions - * @{ - */ - -/** - * @brief Mass erase of FLASH memory - * @param VoltageRange The device program/erase parallelism. - * This parameter can be one of the following values: - * @arg FLASH_VOLTAGE_RANGE_1 : Flash program/erase by 8 bits - * @arg FLASH_VOLTAGE_RANGE_2 : Flash program/erase by 16 bits - * @arg FLASH_VOLTAGE_RANGE_3 : Flash program/erase by 32 bits - * @arg FLASH_VOLTAGE_RANGE_4 : Flash program/erase by 64 bits - * - * @param Banks Banks to be erased - * This parameter can be one of the following values: - * @arg FLASH_BANK_1: Bank1 to be erased - * @arg FLASH_BANK_2: Bank2 to be erased - * @arg FLASH_BANK_BOTH: Bank1 and Bank2 to be erased - * - * @retval HAL Status - */ -static void FLASH_MassErase(uint32_t VoltageRange, uint32_t Banks) -{ - /* Check the parameters */ -#if defined (FLASH_CR_PSIZE) - assert_param(IS_VOLTAGERANGE(VoltageRange)); -#else - UNUSED(VoltageRange); -#endif /* FLASH_CR_PSIZE */ - assert_param(IS_FLASH_BANK(Banks)); - -#if defined (DUAL_BANK) - /* Flash Mass Erase */ - if((Banks & FLASH_BANK_BOTH) == FLASH_BANK_BOTH) - { -#if defined (FLASH_CR_PSIZE) - /* Reset Program/erase VoltageRange for Bank1 and Bank2 */ - FLASH->CR1 &= (~FLASH_CR_PSIZE); - FLASH->CR2 &= (~FLASH_CR_PSIZE); - - /* Set voltage range */ - FLASH->CR1 |= VoltageRange; - FLASH->CR2 |= VoltageRange; -#endif /* FLASH_CR_PSIZE */ - - /* Set Mass Erase Bit */ - FLASH->OPTCR |= FLASH_OPTCR_MER; - } - else -#endif /* DUAL_BANK */ - { - /* Proceed to erase Flash Bank */ - if((Banks & FLASH_BANK_1) == FLASH_BANK_1) - { -#if defined (FLASH_CR_PSIZE) - /* Set Program/erase VoltageRange for Bank1 */ - FLASH->CR1 &= (~FLASH_CR_PSIZE); - FLASH->CR1 |= VoltageRange; -#endif /* FLASH_CR_PSIZE */ - - /* Erase Bank1 */ - FLASH->CR1 |= (FLASH_CR_BER | FLASH_CR_START); - } - -#if defined (DUAL_BANK) - if((Banks & FLASH_BANK_2) == FLASH_BANK_2) - { -#if defined (FLASH_CR_PSIZE) - /* Set Program/erase VoltageRange for Bank2 */ - FLASH->CR2 &= (~FLASH_CR_PSIZE); - FLASH->CR2 |= VoltageRange; -#endif /* FLASH_CR_PSIZE */ - - /* Erase Bank2 */ - FLASH->CR2 |= (FLASH_CR_BER | FLASH_CR_START); - } -#endif /* DUAL_BANK */ - } -} - -/** - * @brief Erase the specified FLASH memory sector - * @param Sector FLASH sector to erase - * This parameter can be a value of @ref FLASH_Sectors - * @param Banks Banks to be erased - * This parameter can be one of the following values: - * @arg FLASH_BANK_1: Bank1 to be erased - * @arg FLASH_BANK_2: Bank2 to be erased - * @arg FLASH_BANK_BOTH: Bank1 and Bank2 to be erased - * @param VoltageRange The device program/erase parallelism. - * This parameter can be one of the following values: - * @arg FLASH_VOLTAGE_RANGE_1 : Flash program/erase by 8 bits - * @arg FLASH_VOLTAGE_RANGE_2 : Flash program/erase by 16 bits - * @arg FLASH_VOLTAGE_RANGE_3 : Flash program/erase by 32 bits - * @arg FLASH_VOLTAGE_RANGE_4 : Flash program/erase by 64 bits - * - * @retval None - */ -void FLASH_Erase_Sector(uint32_t Sector, uint32_t Banks, uint32_t VoltageRange) -{ - assert_param(IS_FLASH_SECTOR(Sector)); - assert_param(IS_FLASH_BANK_EXCLUSIVE(Banks)); -#if defined (FLASH_CR_PSIZE) - assert_param(IS_VOLTAGERANGE(VoltageRange)); -#else - UNUSED(VoltageRange); -#endif /* FLASH_CR_PSIZE */ - - if((Banks & FLASH_BANK_1) == FLASH_BANK_1) - { -#if defined (FLASH_CR_PSIZE) - /* Reset Program/erase VoltageRange and Sector Number for Bank1 */ - FLASH->CR1 &= ~(FLASH_CR_PSIZE | FLASH_CR_SNB); - - FLASH->CR1 |= (FLASH_CR_SER | VoltageRange | (Sector << FLASH_CR_SNB_Pos) | FLASH_CR_START); -#else - /* Reset Sector Number for Bank1 */ - FLASH->CR1 &= ~(FLASH_CR_SNB); - - FLASH->CR1 |= (FLASH_CR_SER | (Sector << FLASH_CR_SNB_Pos) | FLASH_CR_START); -#endif /* FLASH_CR_PSIZE */ - } - -#if defined (DUAL_BANK) - if((Banks & FLASH_BANK_2) == FLASH_BANK_2) - { -#if defined (FLASH_CR_PSIZE) - /* Reset Program/erase VoltageRange and Sector Number for Bank2 */ - FLASH->CR2 &= ~(FLASH_CR_PSIZE | FLASH_CR_SNB); - - FLASH->CR2 |= (FLASH_CR_SER | VoltageRange | (Sector << FLASH_CR_SNB_Pos) | FLASH_CR_START); -#else - /* Reset Sector Number for Bank2 */ - FLASH->CR2 &= ~(FLASH_CR_SNB); - - FLASH->CR2 |= (FLASH_CR_SER | (Sector << FLASH_CR_SNB_Pos) | FLASH_CR_START); -#endif /* FLASH_CR_PSIZE */ - } -#endif /* DUAL_BANK */ -} - -/** - * @brief Enable the write protection of the desired bank1 or bank 2 sectors - * @param WRPSector specifies the sector(s) to be write protected. - * This parameter can be one of the following values: - * @arg WRPSector: A combination of OB_WRP_SECTOR_0 to OB_WRP_SECTOR_7 or OB_WRP_SECTOR_ALL - * - * @param Banks the specific bank to apply WRP sectors - * This parameter can be one of the following values: - * @arg FLASH_BANK_1: enable WRP on specified bank1 sectors - * @arg FLASH_BANK_2: enable WRP on specified bank2 sectors - * @arg FLASH_BANK_BOTH: enable WRP on both bank1 and bank2 specified sectors - * - * @retval HAL FLASH State - */ -static void FLASH_OB_EnableWRP(uint32_t WRPSector, uint32_t Banks) -{ - /* Check the parameters */ - assert_param(IS_OB_WRP_SECTOR(WRPSector)); - assert_param(IS_FLASH_BANK(Banks)); - - if((Banks & FLASH_BANK_1) == FLASH_BANK_1) - { - /* Enable Write Protection for bank 1 */ - FLASH->WPSN_PRG1 &= (~(WRPSector & FLASH_WPSN_WRPSN)); - } - -#if defined (DUAL_BANK) - if((Banks & FLASH_BANK_2) == FLASH_BANK_2) - { - /* Enable Write Protection for bank 2 */ - FLASH->WPSN_PRG2 &= (~(WRPSector & FLASH_WPSN_WRPSN)); - } -#endif /* DUAL_BANK */ -} - -/** - * @brief Disable the write protection of the desired bank1 or bank 2 sectors - * @param WRPSector specifies the sector(s) to disable write protection. - * This parameter can be one of the following values: - * @arg WRPSector: A combination of FLASH_OB_WRP_SECTOR_0 to FLASH_OB_WRP_SECTOR_7 or FLASH_OB_WRP_SECTOR_ALL - * - * @param Banks the specific bank to apply WRP sectors - * This parameter can be one of the following values: - * @arg FLASH_BANK_1: disable WRP on specified bank1 sectors - * @arg FLASH_BANK_2: disable WRP on specified bank2 sectors - * @arg FLASH_BANK_BOTH: disable WRP on both bank1 and bank2 specified sectors - * - * @retval HAL FLASH State - */ -static void FLASH_OB_DisableWRP(uint32_t WRPSector, uint32_t Banks) -{ - /* Check the parameters */ - assert_param(IS_OB_WRP_SECTOR(WRPSector)); - assert_param(IS_FLASH_BANK(Banks)); - - if((Banks & FLASH_BANK_1) == FLASH_BANK_1) - { - /* Disable Write Protection for bank 1 */ - FLASH->WPSN_PRG1 |= (WRPSector & FLASH_WPSN_WRPSN); - } - -#if defined (DUAL_BANK) - if((Banks & FLASH_BANK_2) == FLASH_BANK_2) - { - /* Disable Write Protection for bank 2 */ - FLASH->WPSN_PRG2 |= (WRPSector & FLASH_WPSN_WRPSN); - } -#endif /* DUAL_BANK */ -} - -/** - * @brief Get the write protection of the given bank 1 or bank 2 sectors - * @param WRPState gives the write protection state on the given bank. - * This parameter can be one of the following values: - * @arg WRPState: OB_WRPSTATE_DISABLE or OB_WRPSTATE_ENABLE - - * @param WRPSector gives the write protected sector(s) on the given bank . - * This parameter can be one of the following values: - * @arg WRPSector: A combination of FLASH_OB_WRP_SECTOR_0 to FLASH_OB_WRP_SECTOR_7 or FLASH_OB_WRP_SECTOR_ALL - * - * @param Bank the specific bank to apply WRP sectors - * This parameter can be exclusively one of the following values: - * @arg FLASH_BANK_1: Get bank1 WRP sectors - * @arg FLASH_BANK_2: Get bank2 WRP sectors - * @arg FLASH_BANK_BOTH: note allowed in this functions - * - * @retval HAL FLASH State - */ -static void FLASH_OB_GetWRP(uint32_t *WRPState, uint32_t *WRPSector, uint32_t Bank) -{ - uint32_t regvalue = 0U; - - if(Bank == FLASH_BANK_1) - { - regvalue = FLASH->WPSN_CUR1; - } - -#if defined (DUAL_BANK) - if(Bank == FLASH_BANK_2) - { - regvalue = FLASH->WPSN_CUR2; - } -#endif /* DUAL_BANK */ - - (*WRPSector) = (~regvalue) & FLASH_WPSN_WRPSN; - - if(*WRPSector == 0U) - { - (*WRPState) = OB_WRPSTATE_DISABLE; - } - else - { - (*WRPState) = OB_WRPSTATE_ENABLE; - } -} - -/** - * @brief Set the read protection level. - * - * @note To configure the RDP level, the option lock bit OPTLOCK must be - * cleared with the call of the HAL_FLASH_OB_Unlock() function. - * @note To validate the RDP level, the option bytes must be reloaded - * through the call of the HAL_FLASH_OB_Launch() function. - * @note !!! Warning : When enabling OB_RDP level 2 it's no more possible - * to go back to level 1 or 0 !!! - * - * @param RDPLevel specifies the read protection level. - * This parameter can be one of the following values: - * @arg OB_RDP_LEVEL_0: No protection - * @arg OB_RDP_LEVEL_1: Read protection of the memory - * @arg OB_RDP_LEVEL_2: Full chip protection - * - * @retval HAL status - */ -static void FLASH_OB_RDPConfig(uint32_t RDPLevel) -{ - /* Check the parameters */ - assert_param(IS_OB_RDP_LEVEL(RDPLevel)); - - /* Configure the RDP level in the option bytes register */ - MODIFY_REG(FLASH->OPTSR_PRG, FLASH_OPTSR_RDP, RDPLevel); -} - -/** - * @brief Get the read protection level. - * @retval RDPLevel specifies the read protection level. - * This return value can be one of the following values: - * @arg OB_RDP_LEVEL_0: No protection - * @arg OB_RDP_LEVEL_1: Read protection of the memory - * @arg OB_RDP_LEVEL_2: Full chip protection - */ -static uint32_t FLASH_OB_GetRDP(void) -{ - uint32_t rdp_level = READ_BIT(FLASH->OPTSR_CUR, FLASH_OPTSR_RDP); - - if ((rdp_level != OB_RDP_LEVEL_0) && (rdp_level != OB_RDP_LEVEL_2)) - { - return (OB_RDP_LEVEL_1); - } - else - { - return rdp_level; - } -} - -#if defined(DUAL_CORE) -/** - * @brief Program the FLASH User Option Byte. - * - * @note To configure the user option bytes, the option lock bit OPTLOCK must - * be cleared with the call of the HAL_FLASH_OB_Unlock() function. - * - * @note To validate the user option bytes, the option bytes must be reloaded - * through the call of the HAL_FLASH_OB_Launch() function. - * - * @param UserType The FLASH User Option Bytes to be modified : - * a combination of @ref FLASHEx_OB_USER_Type - * - * @param UserConfig The FLASH User Option Bytes values: - * IWDG1_SW(Bit4), IWDG2_SW(Bit 5), nRST_STOP_D1(Bit 6), nRST_STDY_D1(Bit 7), - * FZ_IWDG_STOP(Bit 17), FZ_IWDG_SDBY(Bit 18), ST_RAM_SIZE(Bit[19:20]), - * SECURITY(Bit 21), BCM4(Bit 22), BCM7(Bit 23), nRST_STOP_D2(Bit 24), - * nRST_STDY_D2(Bit 25), IO_HSLV (Bit 29) and SWAP_BANK_OPT(Bit 31). - * - * @retval HAL status - */ -#else -/** - * @brief Program the FLASH User Option Byte. - * - * @note To configure the user option bytes, the option lock bit OPTLOCK must - * be cleared with the call of the HAL_FLASH_OB_Unlock() function. - * - * @note To validate the user option bytes, the option bytes must be reloaded - * through the call of the HAL_FLASH_OB_Launch() function. - * - * @param UserType The FLASH User Option Bytes to be modified : - * a combination of @arg FLASHEx_OB_USER_Type - * - * @param UserConfig The FLASH User Option Bytes values: - * IWDG_SW(Bit4), nRST_STOP_D1(Bit 6), nRST_STDY_D1(Bit 7), - * FZ_IWDG_STOP(Bit 17), FZ_IWDG_SDBY(Bit 18), ST_RAM_SIZE(Bit[19:20]), - * SECURITY(Bit 21), IO_HSLV (Bit 29) and SWAP_BANK_OPT(Bit 31). - * - * @retval HAL status - */ -#endif /*DUAL_CORE*/ -static void FLASH_OB_UserConfig(uint32_t UserType, uint32_t UserConfig) -{ - uint32_t optr_reg_val = 0; - uint32_t optr_reg_mask = 0; - - /* Check the parameters */ - assert_param(IS_OB_USER_TYPE(UserType)); - - if((UserType & OB_USER_IWDG1_SW) != 0U) - { - /* IWDG_HW option byte should be modified */ - assert_param(IS_OB_IWDG1_SOURCE(UserConfig & FLASH_OPTSR_IWDG1_SW)); - - /* Set value and mask for IWDG_HW option byte */ - optr_reg_val |= (UserConfig & FLASH_OPTSR_IWDG1_SW); - optr_reg_mask |= FLASH_OPTSR_IWDG1_SW; - } -#if defined(DUAL_CORE) - if((UserType & OB_USER_IWDG2_SW) != 0U) - { - /* IWDG2_SW option byte should be modified */ - assert_param(IS_OB_IWDG2_SOURCE(UserConfig & FLASH_OPTSR_IWDG2_SW)); - - /* Set value and mask for IWDG2_SW option byte */ - optr_reg_val |= (UserConfig & FLASH_OPTSR_IWDG2_SW); - optr_reg_mask |= FLASH_OPTSR_IWDG2_SW; - } -#endif /*DUAL_CORE*/ - if((UserType & OB_USER_NRST_STOP_D1) != 0U) - { - /* NRST_STOP option byte should be modified */ - assert_param(IS_OB_STOP_D1_RESET(UserConfig & FLASH_OPTSR_NRST_STOP_D1)); - - /* Set value and mask for NRST_STOP option byte */ - optr_reg_val |= (UserConfig & FLASH_OPTSR_NRST_STOP_D1); - optr_reg_mask |= FLASH_OPTSR_NRST_STOP_D1; - } - - if((UserType & OB_USER_NRST_STDBY_D1) != 0U) - { - /* NRST_STDBY option byte should be modified */ - assert_param(IS_OB_STDBY_D1_RESET(UserConfig & FLASH_OPTSR_NRST_STBY_D1)); - - /* Set value and mask for NRST_STDBY option byte */ - optr_reg_val |= (UserConfig & FLASH_OPTSR_NRST_STBY_D1); - optr_reg_mask |= FLASH_OPTSR_NRST_STBY_D1; - } - - if((UserType & OB_USER_IWDG_STOP) != 0U) - { - /* IWDG_STOP option byte should be modified */ - assert_param(IS_OB_USER_IWDG_STOP(UserConfig & FLASH_OPTSR_FZ_IWDG_STOP)); - - /* Set value and mask for IWDG_STOP option byte */ - optr_reg_val |= (UserConfig & FLASH_OPTSR_FZ_IWDG_STOP); - optr_reg_mask |= FLASH_OPTSR_FZ_IWDG_STOP; - } - - if((UserType & OB_USER_IWDG_STDBY) != 0U) - { - /* IWDG_STDBY option byte should be modified */ - assert_param(IS_OB_USER_IWDG_STDBY(UserConfig & FLASH_OPTSR_FZ_IWDG_SDBY)); - - /* Set value and mask for IWDG_STDBY option byte */ - optr_reg_val |= (UserConfig & FLASH_OPTSR_FZ_IWDG_SDBY); - optr_reg_mask |= FLASH_OPTSR_FZ_IWDG_SDBY; - } - - if((UserType & OB_USER_ST_RAM_SIZE) != 0U) - { - /* ST_RAM_SIZE option byte should be modified */ - assert_param(IS_OB_USER_ST_RAM_SIZE(UserConfig & FLASH_OPTSR_ST_RAM_SIZE)); - - /* Set value and mask for ST_RAM_SIZE option byte */ - optr_reg_val |= (UserConfig & FLASH_OPTSR_ST_RAM_SIZE); - optr_reg_mask |= FLASH_OPTSR_ST_RAM_SIZE; - } - - if((UserType & OB_USER_SECURITY) != 0U) - { - /* SECURITY option byte should be modified */ - assert_param(IS_OB_USER_SECURITY(UserConfig & FLASH_OPTSR_SECURITY)); - - /* Set value and mask for SECURITY option byte */ - optr_reg_val |= (UserConfig & FLASH_OPTSR_SECURITY); - optr_reg_mask |= FLASH_OPTSR_SECURITY; - } - -#if defined(DUAL_CORE) - if((UserType & OB_USER_BCM4) != 0U) - { - /* BCM4 option byte should be modified */ - assert_param(IS_OB_USER_BCM4(UserConfig & FLASH_OPTSR_BCM4)); - - /* Set value and mask for BCM4 option byte */ - optr_reg_val |= (UserConfig & FLASH_OPTSR_BCM4); - optr_reg_mask |= FLASH_OPTSR_BCM4; - } - - if((UserType & OB_USER_BCM7) != 0U) - { - /* BCM7 option byte should be modified */ - assert_param(IS_OB_USER_BCM7(UserConfig & FLASH_OPTSR_BCM7)); - - /* Set value and mask for BCM7 option byte */ - optr_reg_val |= (UserConfig & FLASH_OPTSR_BCM7); - optr_reg_mask |= FLASH_OPTSR_BCM7; - } -#endif /* DUAL_CORE */ - -#if defined (FLASH_OPTSR_NRST_STOP_D2) - if((UserType & OB_USER_NRST_STOP_D2) != 0U) - { - /* NRST_STOP option byte should be modified */ - assert_param(IS_OB_STOP_D2_RESET(UserConfig & FLASH_OPTSR_NRST_STOP_D2)); - - /* Set value and mask for NRST_STOP option byte */ - optr_reg_val |= (UserConfig & FLASH_OPTSR_NRST_STOP_D2); - optr_reg_mask |= FLASH_OPTSR_NRST_STOP_D2; - } - - if((UserType & OB_USER_NRST_STDBY_D2) != 0U) - { - /* NRST_STDBY option byte should be modified */ - assert_param(IS_OB_STDBY_D2_RESET(UserConfig & FLASH_OPTSR_NRST_STBY_D2)); - - /* Set value and mask for NRST_STDBY option byte */ - optr_reg_val |= (UserConfig & FLASH_OPTSR_NRST_STBY_D2); - optr_reg_mask |= FLASH_OPTSR_NRST_STBY_D2; - } -#endif /* FLASH_OPTSR_NRST_STOP_D2 */ - -#if defined (DUAL_BANK) - if((UserType & OB_USER_SWAP_BANK) != 0U) - { - /* SWAP_BANK_OPT option byte should be modified */ - assert_param(IS_OB_USER_SWAP_BANK(UserConfig & FLASH_OPTSR_SWAP_BANK_OPT)); - - /* Set value and mask for SWAP_BANK_OPT option byte */ - optr_reg_val |= (UserConfig & FLASH_OPTSR_SWAP_BANK_OPT); - optr_reg_mask |= FLASH_OPTSR_SWAP_BANK_OPT; - } -#endif /* DUAL_BANK */ - - if((UserType & OB_USER_IOHSLV) != 0U) - { - /* IOHSLV_OPT option byte should be modified */ - assert_param(IS_OB_USER_IOHSLV(UserConfig & FLASH_OPTSR_IO_HSLV)); - - /* Set value and mask for IOHSLV_OPT option byte */ - optr_reg_val |= (UserConfig & FLASH_OPTSR_IO_HSLV); - optr_reg_mask |= FLASH_OPTSR_IO_HSLV; - } - -#if defined (FLASH_OPTSR_VDDMMC_HSLV) - if((UserType & OB_USER_VDDMMC_HSLV) != 0U) - { - /* VDDMMC_HSLV option byte should be modified */ - assert_param(IS_OB_USER_VDDMMC_HSLV(UserConfig & FLASH_OPTSR_VDDMMC_HSLV)); - - /* Set value and mask for VDDMMC_HSLV option byte */ - optr_reg_val |= (UserConfig & FLASH_OPTSR_VDDMMC_HSLV); - optr_reg_mask |= FLASH_OPTSR_VDDMMC_HSLV; - } -#endif /* FLASH_OPTSR_VDDMMC_HSLV */ - - /* Configure the option bytes register */ - MODIFY_REG(FLASH->OPTSR_PRG, optr_reg_mask, optr_reg_val); -} - -#if defined(DUAL_CORE) -/** - * @brief Return the FLASH User Option Byte value. - * @retval The FLASH User Option Bytes values - * IWDG1_SW(Bit4), IWDG2_SW(Bit 5), nRST_STOP_D1(Bit 6), nRST_STDY_D1(Bit 7), - * FZ_IWDG_STOP(Bit 17), FZ_IWDG_SDBY(Bit 18), ST_RAM_SIZE(Bit[19:20]), - * SECURITY(Bit 21), BCM4(Bit 22), BCM7(Bit 23), nRST_STOP_D2(Bit 24), - * nRST_STDY_D2(Bit 25), IO_HSLV (Bit 29) and SWAP_BANK_OPT(Bit 31). - */ -#else -/** - * @brief Return the FLASH User Option Byte value. - * @retval The FLASH User Option Bytes values - * IWDG_SW(Bit4), nRST_STOP_D1(Bit 6), nRST_STDY_D1(Bit 7), - * FZ_IWDG_STOP(Bit 17), FZ_IWDG_SDBY(Bit 18), ST_RAM_SIZE(Bit[19:20]), - * SECURITY(Bit 21), IO_HSLV (Bit 29) and SWAP_BANK_OPT(Bit 31). - */ -#endif /*DUAL_CORE*/ -static uint32_t FLASH_OB_GetUser(void) -{ - uint32_t userConfig = READ_REG(FLASH->OPTSR_CUR); - userConfig &= (~(FLASH_OPTSR_BOR_LEV | FLASH_OPTSR_RDP)); - - return userConfig; -} - -/** - * @brief Configure the Proprietary code readout protection of the desired addresses - * - * @note To configure the PCROP options, the option lock bit OPTLOCK must be - * cleared with the call of the HAL_FLASH_OB_Unlock() function. - * @note To validate the PCROP options, the option bytes must be reloaded - * through the call of the HAL_FLASH_OB_Launch() function. - * - * @param PCROPConfig specifies if the PCROP area for the given Bank shall be erased or not - * when RDP level decreased from Level 1 to Level 0, or after a bank erase with protection removal - * This parameter must be a value of @arg FLASHEx_OB_PCROP_RDP enumeration - * - * @param PCROPStartAddr specifies the start address of the Proprietary code readout protection - * This parameter can be an address between begin and end of the bank - * - * @param PCROPEndAddr specifies the end address of the Proprietary code readout protection - * This parameter can be an address between PCROPStartAddr and end of the bank - * - * @param Banks the specific bank to apply PCROP protection - * This parameter can be one of the following values: - * @arg FLASH_BANK_1: PCROP on specified bank1 area - * @arg FLASH_BANK_2: PCROP on specified bank2 area - * @arg FLASH_BANK_BOTH: PCROP on specified bank1 and bank2 area (same config will be applied on both banks) - * - * @retval None - */ -static void FLASH_OB_PCROPConfig(uint32_t PCROPConfig, uint32_t PCROPStartAddr, uint32_t PCROPEndAddr, uint32_t Banks) -{ - /* Check the parameters */ - assert_param(IS_FLASH_BANK(Banks)); - assert_param(IS_OB_PCROP_RDP(PCROPConfig)); - - if((Banks & FLASH_BANK_1) == FLASH_BANK_1) - { - assert_param(IS_FLASH_PROGRAM_ADDRESS_BANK1(PCROPStartAddr)); - assert_param(IS_FLASH_PROGRAM_ADDRESS_BANK1(PCROPEndAddr)); - - /* Configure the Proprietary code readout protection */ - FLASH->PRAR_PRG1 = ((PCROPStartAddr - FLASH_BANK1_BASE) >> 8) | \ - (((PCROPEndAddr - FLASH_BANK1_BASE) >> 8) << FLASH_PRAR_PROT_AREA_END_Pos) | \ - PCROPConfig; - } - -#if defined (DUAL_BANK) - if((Banks & FLASH_BANK_2) == FLASH_BANK_2) - { - assert_param(IS_FLASH_PROGRAM_ADDRESS_BANK2(PCROPStartAddr)); - assert_param(IS_FLASH_PROGRAM_ADDRESS_BANK2(PCROPEndAddr)); - - /* Configure the Proprietary code readout protection */ - FLASH->PRAR_PRG2 = ((PCROPStartAddr - FLASH_BANK2_BASE) >> 8) | \ - (((PCROPEndAddr - FLASH_BANK2_BASE) >> 8) << FLASH_PRAR_PROT_AREA_END_Pos) | \ - PCROPConfig; - } -#endif /* DUAL_BANK */ -} - -/** - * @brief Get the Proprietary code readout protection configuration on a given Bank - * - * @param PCROPConfig indicates if the PCROP area for the given Bank shall be erased or not - * when RDP level decreased from Level 1 to Level 0 or after a bank erase with protection removal - * - * @param PCROPStartAddr gives the start address of the Proprietary code readout protection of the bank - * - * @param PCROPEndAddr gives the end address of the Proprietary code readout protection of the bank - * - * @param Bank the specific bank to apply PCROP protection - * This parameter can be exclusively one of the following values: - * @arg FLASH_BANK_1: PCROP on specified bank1 area - * @arg FLASH_BANK_2: PCROP on specified bank2 area - * @arg FLASH_BANK_BOTH: is not allowed here - * - * @retval None - */ -static void FLASH_OB_GetPCROP(uint32_t *PCROPConfig, uint32_t *PCROPStartAddr, uint32_t *PCROPEndAddr, uint32_t Bank) -{ - uint32_t regvalue = 0; - uint32_t bankBase = 0; - - if(Bank == FLASH_BANK_1) - { - regvalue = FLASH->PRAR_CUR1; - bankBase = FLASH_BANK1_BASE; - } - -#if defined (DUAL_BANK) - if(Bank == FLASH_BANK_2) - { - regvalue = FLASH->PRAR_CUR2; - bankBase = FLASH_BANK2_BASE; - } -#endif /* DUAL_BANK */ - - (*PCROPConfig) = (regvalue & FLASH_PRAR_DMEP); - - (*PCROPStartAddr) = ((regvalue & FLASH_PRAR_PROT_AREA_START) << 8) + bankBase; - (*PCROPEndAddr) = (regvalue & FLASH_PRAR_PROT_AREA_END) >> FLASH_PRAR_PROT_AREA_END_Pos; - (*PCROPEndAddr) = ((*PCROPEndAddr) << 8) + bankBase; -} - -/** - * @brief Set the BOR Level. - * @param Level specifies the Option Bytes BOR Reset Level. - * This parameter can be one of the following values: - * @arg OB_BOR_LEVEL0: Reset level threshold is set to 1.6V - * @arg OB_BOR_LEVEL1: Reset level threshold is set to 2.1V - * @arg OB_BOR_LEVEL2: Reset level threshold is set to 2.4V - * @arg OB_BOR_LEVEL3: Reset level threshold is set to 2.7V - * @retval None - */ -static void FLASH_OB_BOR_LevelConfig(uint32_t Level) -{ - assert_param(IS_OB_BOR_LEVEL(Level)); - - /* Configure BOR_LEV option byte */ - MODIFY_REG(FLASH->OPTSR_PRG, FLASH_OPTSR_BOR_LEV, Level); -} - -/** - * @brief Get the BOR Level. - * @retval The Option Bytes BOR Reset Level. - * This parameter can be one of the following values: - * @arg OB_BOR_LEVEL0: Reset level threshold is set to 1.6V - * @arg OB_BOR_LEVEL1: Reset level threshold is set to 2.1V - * @arg OB_BOR_LEVEL2: Reset level threshold is set to 2.4V - * @arg OB_BOR_LEVEL3: Reset level threshold is set to 2.7V - */ -static uint32_t FLASH_OB_GetBOR(void) -{ - return (FLASH->OPTSR_CUR & FLASH_OPTSR_BOR_LEV); -} - -/** - * @brief Set Boot address - * @param BootOption Boot address option byte to be programmed, - * This parameter must be a value of @ref FLASHEx_OB_BOOT_OPTION - (OB_BOOT_ADD0, OB_BOOT_ADD1 or OB_BOOT_ADD_BOTH) - * - * @param BootAddress0 Specifies the Boot Address 0 - * @param BootAddress1 Specifies the Boot Address 1 - * @retval HAL Status - */ -static void FLASH_OB_BootAddConfig(uint32_t BootOption, uint32_t BootAddress0, uint32_t BootAddress1) -{ - /* Check the parameters */ - assert_param(IS_OB_BOOT_ADD_OPTION(BootOption)); - - if((BootOption & OB_BOOT_ADD0) == OB_BOOT_ADD0) - { - /* Check the parameters */ - assert_param(IS_BOOT_ADDRESS(BootAddress0)); - - /* Configure CM7 BOOT ADD0 */ -#if defined(DUAL_CORE) - MODIFY_REG(FLASH->BOOT7_PRG, FLASH_BOOT7_BCM7_ADD0, (BootAddress0 >> 16)); -#else /* Single Core*/ - MODIFY_REG(FLASH->BOOT_PRG, FLASH_BOOT_ADD0, (BootAddress0 >> 16)); -#endif /* DUAL_CORE */ - } - - if((BootOption & OB_BOOT_ADD1) == OB_BOOT_ADD1) - { - /* Check the parameters */ - assert_param(IS_BOOT_ADDRESS(BootAddress1)); - - /* Configure CM7 BOOT ADD1 */ -#if defined(DUAL_CORE) - MODIFY_REG(FLASH->BOOT7_PRG, FLASH_BOOT7_BCM7_ADD1, BootAddress1); -#else /* Single Core*/ - MODIFY_REG(FLASH->BOOT_PRG, FLASH_BOOT_ADD1, BootAddress1); -#endif /* DUAL_CORE */ - } -} - -/** - * @brief Get Boot address - * @param BootAddress0 Specifies the Boot Address 0. - * @param BootAddress1 Specifies the Boot Address 1. - * @retval HAL Status - */ -static void FLASH_OB_GetBootAdd(uint32_t *BootAddress0, uint32_t *BootAddress1) -{ - uint32_t regvalue; - -#if defined(DUAL_CORE) - regvalue = FLASH->BOOT7_CUR; - - (*BootAddress0) = (regvalue & FLASH_BOOT7_BCM7_ADD0) << 16; - (*BootAddress1) = (regvalue & FLASH_BOOT7_BCM7_ADD1); -#else /* Single Core */ - regvalue = FLASH->BOOT_CUR; - - (*BootAddress0) = (regvalue & FLASH_BOOT_ADD0) << 16; - (*BootAddress1) = (regvalue & FLASH_BOOT_ADD1); -#endif /* DUAL_CORE */ -} - -#if defined(DUAL_CORE) -/** - * @brief Set CM4 Boot address - * @param BootOption Boot address option byte to be programmed, - * This parameter must be a value of @ref FLASHEx_OB_BOOT_OPTION - (OB_BOOT_ADD0, OB_BOOT_ADD1 or OB_BOOT_ADD_BOTH) - * - * @param BootAddress0 Specifies the CM4 Boot Address 0. - * @param BootAddress1 Specifies the CM4 Boot Address 1. - * @retval HAL Status - */ -static void FLASH_OB_CM4BootAddConfig(uint32_t BootOption, uint32_t BootAddress0, uint32_t BootAddress1) -{ - /* Check the parameters */ - assert_param(IS_OB_BOOT_ADD_OPTION(BootOption)); - - if((BootOption & OB_BOOT_ADD0) == OB_BOOT_ADD0) - { - /* Check the parameters */ - assert_param(IS_BOOT_ADDRESS(BootAddress0)); - - /* Configure CM4 BOOT ADD0 */ - MODIFY_REG(FLASH->BOOT4_PRG, FLASH_BOOT4_BCM4_ADD0, (BootAddress0 >> 16)); - - } - - if((BootOption & OB_BOOT_ADD1) == OB_BOOT_ADD1) - { - /* Check the parameters */ - assert_param(IS_BOOT_ADDRESS(BootAddress1)); - - /* Configure CM4 BOOT ADD1 */ - MODIFY_REG(FLASH->BOOT4_PRG, FLASH_BOOT4_BCM4_ADD1, BootAddress1); - } -} - -/** - * @brief Get CM4 Boot address - * @param BootAddress0 Specifies the CM4 Boot Address 0. - * @param BootAddress1 Specifies the CM4 Boot Address 1. - * @retval HAL Status - */ -static void FLASH_OB_GetCM4BootAdd(uint32_t *BootAddress0, uint32_t *BootAddress1) -{ - uint32_t regvalue; - - regvalue = FLASH->BOOT4_CUR; - - (*BootAddress0) = (regvalue & FLASH_BOOT4_BCM4_ADD0) << 16; - (*BootAddress1) = (regvalue & FLASH_BOOT4_BCM4_ADD1); -} -#endif /*DUAL_CORE*/ - -/** - * @brief Set secure area configuration - * @param SecureAreaConfig specify if the secure area will be deleted or not - * when RDP level decreased from Level 1 to Level 0 or during a mass erase. - * - * @param SecureAreaStartAddr Specifies the secure area start address - * @param SecureAreaEndAddr Specifies the secure area end address - * @param Banks the specific bank to apply Security protection - * This parameter can be one of the following values: - * @arg FLASH_BANK_1: Secure area on specified bank1 area - * @arg FLASH_BANK_2: Secure area on specified bank2 area - * @arg FLASH_BANK_BOTH: Secure area on specified bank1 and bank2 area (same config will be applied on both banks) - * @retval None - */ -static void FLASH_OB_SecureAreaConfig(uint32_t SecureAreaConfig, uint32_t SecureAreaStartAddr, uint32_t SecureAreaEndAddr, uint32_t Banks) -{ - /* Check the parameters */ - assert_param(IS_FLASH_BANK(Banks)); - assert_param(IS_OB_SECURE_RDP(SecureAreaConfig)); - - if((Banks & FLASH_BANK_1) == FLASH_BANK_1) - { - /* Check the parameters */ - assert_param(IS_FLASH_PROGRAM_ADDRESS_BANK1(SecureAreaStartAddr)); - assert_param(IS_FLASH_PROGRAM_ADDRESS_BANK1(SecureAreaEndAddr)); - - /* Configure the secure area */ - FLASH->SCAR_PRG1 = ((SecureAreaStartAddr - FLASH_BANK1_BASE) >> 8) | \ - (((SecureAreaEndAddr - FLASH_BANK1_BASE) >> 8) << FLASH_SCAR_SEC_AREA_END_Pos) | \ - (SecureAreaConfig & FLASH_SCAR_DMES); - } - -#if defined (DUAL_BANK) - if((Banks & FLASH_BANK_2) == FLASH_BANK_2) - { - /* Check the parameters */ - assert_param(IS_FLASH_PROGRAM_ADDRESS_BANK2(SecureAreaStartAddr)); - assert_param(IS_FLASH_PROGRAM_ADDRESS_BANK2(SecureAreaEndAddr)); - - /* Configure the secure area */ - FLASH->SCAR_PRG2 = ((SecureAreaStartAddr - FLASH_BANK2_BASE) >> 8) | \ - (((SecureAreaEndAddr - FLASH_BANK2_BASE) >> 8) << FLASH_SCAR_SEC_AREA_END_Pos) | \ - (SecureAreaConfig & FLASH_SCAR_DMES); - } -#endif /* DUAL_BANK */ -} - -/** - * @brief Get secure area configuration - * @param SecureAreaConfig indicates if the secure area will be deleted or not - * when RDP level decreased from Level 1 to Level 0 or during a mass erase. - * @param SecureAreaStartAddr gives the secure area start address - * @param SecureAreaEndAddr gives the secure area end address - * @param Bank Specifies the Bank - * @retval None - */ -static void FLASH_OB_GetSecureArea(uint32_t *SecureAreaConfig, uint32_t *SecureAreaStartAddr, uint32_t *SecureAreaEndAddr, uint32_t Bank) -{ - uint32_t regvalue = 0; - uint32_t bankBase = 0; - - /* Check Bank parameter value */ - if(Bank == FLASH_BANK_1) - { - regvalue = FLASH->SCAR_CUR1; - bankBase = FLASH_BANK1_BASE; - } - -#if defined (DUAL_BANK) - if(Bank == FLASH_BANK_2) - { - regvalue = FLASH->SCAR_CUR2; - bankBase = FLASH_BANK2_BASE; - } -#endif /* DUAL_BANK */ - - /* Get the secure area settings */ - (*SecureAreaConfig) = (regvalue & FLASH_SCAR_DMES); - (*SecureAreaStartAddr) = ((regvalue & FLASH_SCAR_SEC_AREA_START) << 8) + bankBase; - (*SecureAreaEndAddr) = (regvalue & FLASH_SCAR_SEC_AREA_END) >> FLASH_SCAR_SEC_AREA_END_Pos; - (*SecureAreaEndAddr) = ((*SecureAreaEndAddr) << 8) + bankBase; -} - -/** - * @brief Add a CRC sector to the list of sectors on which the CRC will be calculated - * @param Sector Specifies the CRC sector number - * @param Bank Specifies the Bank - * @retval None - */ -static void FLASH_CRC_AddSector(uint32_t Sector, uint32_t Bank) -{ - /* Check the parameters */ - assert_param(IS_FLASH_SECTOR(Sector)); - - if (Bank == FLASH_BANK_1) - { - /* Clear CRC sector */ - FLASH->CRCCR1 &= (~FLASH_CRCCR_CRC_SECT); - - /* Select CRC Sector and activate ADD_SECT bit */ - FLASH->CRCCR1 |= Sector | FLASH_CRCCR_ADD_SECT; - } -#if defined (DUAL_BANK) - else - { - /* Clear CRC sector */ - FLASH->CRCCR2 &= (~FLASH_CRCCR_CRC_SECT); - - /* Select CRC Sector and activate ADD_SECT bit */ - FLASH->CRCCR2 |= Sector | FLASH_CRCCR_ADD_SECT; - } -#endif /* DUAL_BANK */ -} - -/** - * @brief Select CRC start and end memory addresses on which the CRC will be calculated - * @param CRCStartAddr Specifies the CRC start address - * @param CRCEndAddr Specifies the CRC end address - * @param Bank Specifies the Bank - * @retval None - */ -static void FLASH_CRC_SelectAddress(uint32_t CRCStartAddr, uint32_t CRCEndAddr, uint32_t Bank) -{ - if (Bank == FLASH_BANK_1) - { - assert_param(IS_FLASH_PROGRAM_ADDRESS_BANK1(CRCStartAddr)); - assert_param(IS_FLASH_PROGRAM_ADDRESS_BANK1(CRCEndAddr)); - - /* Write CRC Start and End addresses */ - FLASH->CRCSADD1 = CRCStartAddr; - FLASH->CRCEADD1 = CRCEndAddr; - } -#if defined (DUAL_BANK) - else - { - assert_param(IS_FLASH_PROGRAM_ADDRESS_BANK2(CRCStartAddr)); - assert_param(IS_FLASH_PROGRAM_ADDRESS_BANK2(CRCEndAddr)); - - /* Write CRC Start and End addresses */ - FLASH->CRCSADD2 = CRCStartAddr; - FLASH->CRCEADD2 = CRCEndAddr; - } -#endif /* DUAL_BANK */ -} -/** - * @} - */ - -#if defined (FLASH_OTPBL_LOCKBL) -/** - * @brief Configure the OTP Block Lock. - * @param OTP_Block specifies the OTP Block to lock. - * This parameter can be a value of @ref FLASHEx_OTP_Blocks - * @retval None - */ -static void FLASH_OB_OTP_LockConfig(uint32_t OTP_Block) -{ - /* Check the parameters */ - assert_param(IS_OTP_BLOCK(OTP_Block)); - - /* Configure the OTP Block lock in the option bytes register */ - FLASH->OTPBL_PRG |= (OTP_Block & FLASH_OTPBL_LOCKBL); -} - -/** - * @brief Get the OTP Block Lock. - * @retval OTP_Block specifies the OTP Block to lock. - * This return value can be a value of @ref FLASHEx_OTP_Blocks - */ -static uint32_t FLASH_OB_OTP_GetLock(void) -{ - return (FLASH->OTPBL_CUR); -} -#endif /* FLASH_OTPBL_LOCKBL */ - -#if defined (FLASH_OPTSR2_TCM_AXI_SHARED) -/** - * @brief Configure the TCM / AXI Shared RAM. - * @param SharedRamConfig specifies the Shared RAM configuration. - * This parameter can be a value of @ref FLASHEx_OB_TCM_AXI_SHARED - * @retval None - */ -static void FLASH_OB_SharedRAM_Config(uint32_t SharedRamConfig) -{ - /* Check the parameters */ - assert_param(IS_OB_USER_TCM_AXI_SHARED(SharedRamConfig)); - - /* Configure the TCM / AXI Shared RAM in the option bytes register */ - MODIFY_REG(FLASH->OPTSR2_PRG, FLASH_OPTSR2_TCM_AXI_SHARED, SharedRamConfig); -} - -/** - * @brief Get the TCM / AXI Shared RAM configuration. - * @retval SharedRamConfig returns the TCM / AXI Shared RAM configuration. - * This return value can be a value of @ref FLASHEx_OB_TCM_AXI_SHARED - */ -static uint32_t FLASH_OB_SharedRAM_GetConfig(void) -{ - return (FLASH->OPTSR2_CUR & FLASH_OPTSR2_TCM_AXI_SHARED); -} -#endif /* FLASH_OPTSR2_TCM_AXI_SHARED */ - -#if defined (FLASH_OPTSR2_CPUFREQ_BOOST) -/** - * @brief Configure the CPU Frequency Boost. - * @param FreqBoost specifies the CPU Frequency Boost state. - * This parameter can be a value of @ref FLASHEx_OB_CPUFREQ_BOOST - * @retval None - */ -static void FLASH_OB_CPUFreq_BoostConfig(uint32_t FreqBoost) -{ - /* Check the parameters */ - assert_param(IS_OB_USER_CPUFREQ_BOOST(FreqBoost)); - - /* Configure the CPU Frequency Boost in the option bytes register */ - MODIFY_REG(FLASH->OPTSR2_PRG, FLASH_OPTSR2_CPUFREQ_BOOST, FreqBoost); -} - -/** - * @brief Get the CPU Frequency Boost state. - * @retval FreqBoost returns the CPU Frequency Boost state. - * This return value can be a value of @ref FLASHEx_OB_CPUFREQ_BOOST - */ -static uint32_t FLASH_OB_CPUFreq_GetBoost(void) -{ - return (FLASH->OPTSR2_CUR & FLASH_OPTSR2_CPUFREQ_BOOST); -} -#endif /* FLASH_OPTSR2_CPUFREQ_BOOST */ - -#endif /* HAL_FLASH_MODULE_ENABLED */ - -/** - * @} - */ - -/** - * @} - */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c b/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c deleted file mode 100644 index 3580f78..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c +++ /dev/null @@ -1,555 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_gpio.c - * @author MCD Application Team - * @brief GPIO HAL module driver. - * This file provides firmware functions to manage the following - * functionalities of the General Purpose Input/Output (GPIO) peripheral: - * + Initialization and de-initialization functions - * + IO operation functions - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - @verbatim - ============================================================================== - ##### GPIO Peripheral features ##### - ============================================================================== - [..] - (+) Each port bit of the general-purpose I/O (GPIO) ports can be individually - configured by software in several modes: - (++) Input mode - (++) Analog mode - (++) Output mode - (++) Alternate function mode - (++) External interrupt/event lines - - (+) During and just after reset, the alternate functions and external interrupt - lines are not active and the I/O ports are configured in input floating mode. - - (+) All GPIO pins have weak internal pull-up and pull-down resistors, which can be - activated or not. - - (+) In Output or Alternate mode, each IO can be configured on open-drain or push-pull - type and the IO speed can be selected depending on the VDD value. - - (+) The microcontroller IO pins are connected to onboard peripherals/modules through a - multiplexer that allows only one peripheral alternate function (AF) connected - to an IO pin at a time. In this way, there can be no conflict between peripherals - sharing the same IO pin. - - (+) All ports have external interrupt/event capability. To use external interrupt - lines, the port must be configured in input mode. All available GPIO pins are - connected to the 16 external interrupt/event lines from EXTI0 to EXTI15. - - The external interrupt/event controller consists of up to 23 edge detectors - (16 lines are connected to GPIO) for generating event/interrupt requests (each - input line can be independently configured to select the type (interrupt or event) - and the corresponding trigger event (rising or falling or both). Each line can - also be masked independently. - - ##### How to use this driver ##### - ============================================================================== - [..] - (#) Enable the GPIO AHB clock using the following function: __HAL_RCC_GPIOx_CLK_ENABLE(). - - (#) Configure the GPIO pin(s) using HAL_GPIO_Init(). - (++) Configure the IO mode using "Mode" member from GPIO_InitTypeDef structure - (++) Activate Pull-up, Pull-down resistor using "Pull" member from GPIO_InitTypeDef - structure. - (++) In case of Output or alternate function mode selection: the speed is - configured through "Speed" member from GPIO_InitTypeDef structure. - (++) In alternate mode is selection, the alternate function connected to the IO - is configured through "Alternate" member from GPIO_InitTypeDef structure. - (++) Analog mode is required when a pin is to be used as ADC channel - or DAC output. - (++) In case of external interrupt/event selection the "Mode" member from - GPIO_InitTypeDef structure select the type (interrupt or event) and - the corresponding trigger event (rising or falling or both). - - (#) In case of external interrupt/event mode selection, configure NVIC IRQ priority - mapped to the EXTI line using HAL_NVIC_SetPriority() and enable it using - HAL_NVIC_EnableIRQ(). - - (#) To get the level of a pin configured in input mode use HAL_GPIO_ReadPin(). - - (#) To set/reset the level of a pin configured in output mode use - HAL_GPIO_WritePin()/HAL_GPIO_TogglePin(). - - (#) To lock pin configuration until next reset use HAL_GPIO_LockPin(). - - - (#) During and just after reset, the alternate functions are not - active and the GPIO pins are configured in input floating mode (except JTAG - pins). - - (#) The LSE oscillator pins OSC32_IN and OSC32_OUT can be used as general purpose - (PC14 and PC15, respectively) when the LSE oscillator is off. The LSE has - priority over the GPIO function. - - (#) The HSE oscillator pins OSC_IN/OSC_OUT can be used as - general purpose PH0 and PH1, respectively, when the HSE oscillator is off. - The HSE has priority over the GPIO function. - - @endverbatim - ****************************************************************************** - */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @defgroup GPIO GPIO - * @brief GPIO HAL module driver - * @{ - */ - -#ifdef HAL_GPIO_MODULE_ENABLED - -/* Private typedef -----------------------------------------------------------*/ -/* Private defines ------------------------------------------------------------*/ -/** @addtogroup GPIO_Private_Constants GPIO Private Constants - * @{ - */ - -#if defined(DUAL_CORE) -#define EXTI_CPU1 (0x01000000U) -#define EXTI_CPU2 (0x02000000U) -#endif /*DUAL_CORE*/ -#define GPIO_NUMBER (16U) -/** - * @} - */ -/* Private macro -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private function prototypes -----------------------------------------------*/ -/* Private functions ---------------------------------------------------------*/ -/* Exported functions --------------------------------------------------------*/ -/** @defgroup GPIO_Exported_Functions GPIO Exported Functions - * @{ - */ - -/** @defgroup GPIO_Exported_Functions_Group1 Initialization and de-initialization functions - * @brief Initialization and Configuration functions - * -@verbatim - =============================================================================== - ##### Initialization and de-initialization functions ##### - =============================================================================== - [..] - This section provides functions allowing to initialize and de-initialize the GPIOs - to be ready for use. - -@endverbatim - * @{ - */ - -/** - * @brief Initializes the GPIOx peripheral according to the specified parameters in the GPIO_Init. - * @param GPIOx: where x can be (A..K) to select the GPIO peripheral. - * @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) -{ - uint32_t position = 0x00U; - uint32_t iocurrent; - uint32_t temp; - EXTI_Core_TypeDef *EXTI_CurrentCPU; - -#if defined(DUAL_CORE) && defined(CORE_CM4) - EXTI_CurrentCPU = EXTI_D2; /* EXTI for CM4 CPU */ -#else - EXTI_CurrentCPU = EXTI_D1; /* EXTI for CM7 CPU */ -#endif - - /* Check the parameters */ - assert_param(IS_GPIO_ALL_INSTANCE(GPIOx)); - assert_param(IS_GPIO_PIN(GPIO_Init->Pin)); - assert_param(IS_GPIO_MODE(GPIO_Init->Mode)); - - /* Configure the port pins */ - while (((GPIO_Init->Pin) >> position) != 0x00U) - { - /* Get current io position */ - iocurrent = (GPIO_Init->Pin) & (1UL << position); - - if (iocurrent != 0x00U) - { - /*--------------------- GPIO Mode Configuration ------------------------*/ - /* In case of Output or Alternate function mode selection */ - if (((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF)) - { - /* Check the Speed parameter */ - assert_param(IS_GPIO_SPEED(GPIO_Init->Speed)); - - /* Configure the IO Speed */ - temp = GPIOx->OSPEEDR; - temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U)); - temp |= (GPIO_Init->Speed << (position * 2U)); - GPIOx->OSPEEDR = temp; - - /* Configure the IO Output Type */ - temp = GPIOx->OTYPER; - temp &= ~(GPIO_OTYPER_OT0 << position) ; - temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); - GPIOx->OTYPER = temp; - } - - if ((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG) - { - /* Check the Pull parameter */ - assert_param(IS_GPIO_PULL(GPIO_Init->Pull)); - - /* Activate the Pull-up or Pull down resistor for the current IO */ - temp = GPIOx->PUPDR; - temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U)); - temp |= ((GPIO_Init->Pull) << (position * 2U)); - GPIOx->PUPDR = temp; - } - - /* In case of Alternate function mode selection */ - if ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF) - { - /* Check the Alternate function parameters */ - assert_param(IS_GPIO_AF_INSTANCE(GPIOx)); - assert_param(IS_GPIO_AF(GPIO_Init->Alternate)); - - /* Configure Alternate function mapped with the current IO */ - temp = GPIOx->AFR[position >> 3U]; - temp &= ~(0xFU << ((position & 0x07U) * 4U)); - temp |= ((GPIO_Init->Alternate) << ((position & 0x07U) * 4U)); - GPIOx->AFR[position >> 3U] = temp; - } - - /* Configure IO Direction mode (Input, Output, Alternate or Analog) */ - temp = GPIOx->MODER; - temp &= ~(GPIO_MODER_MODE0 << (position * 2U)); - temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U)); - GPIOx->MODER = temp; - - /*--------------------- EXTI Mode Configuration ------------------------*/ - /* Configure the External Interrupt or event for the current IO */ - if ((GPIO_Init->Mode & EXTI_MODE) != 0x00U) - { - /* Enable SYSCFG Clock */ - __HAL_RCC_SYSCFG_CLK_ENABLE(); - - temp = SYSCFG->EXTICR[position >> 2U]; - temp &= ~(0x0FUL << (4U * (position & 0x03U))); - temp |= (GPIO_GET_INDEX(GPIOx) << (4U * (position & 0x03U))); - SYSCFG->EXTICR[position >> 2U] = temp; - - /* Clear Rising Falling edge configuration */ - temp = EXTI->RTSR1; - temp &= ~(iocurrent); - if ((GPIO_Init->Mode & TRIGGER_RISING) != 0x00U) - { - temp |= iocurrent; - } - EXTI->RTSR1 = temp; - - temp = EXTI->FTSR1; - temp &= ~(iocurrent); - if ((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00U) - { - temp |= iocurrent; - } - EXTI->FTSR1 = temp; - - temp = EXTI_CurrentCPU->EMR1; - temp &= ~(iocurrent); - if ((GPIO_Init->Mode & EXTI_EVT) != 0x00U) - { - temp |= iocurrent; - } - EXTI_CurrentCPU->EMR1 = temp; - - /* Clear EXTI line configuration */ - temp = EXTI_CurrentCPU->IMR1; - temp &= ~(iocurrent); - if ((GPIO_Init->Mode & EXTI_IT) != 0x00U) - { - temp |= iocurrent; - } - EXTI_CurrentCPU->IMR1 = temp; - } - } - - position++; - } -} - -/** - * @brief De-initializes the GPIOx peripheral registers to their default reset values. - * @param GPIOx: where x can be (A..K) to select the GPIO peripheral. - * @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) -{ - uint32_t position = 0x00U; - uint32_t iocurrent; - uint32_t tmp; - EXTI_Core_TypeDef *EXTI_CurrentCPU; - -#if defined(DUAL_CORE) && defined(CORE_CM4) - EXTI_CurrentCPU = EXTI_D2; /* EXTI for CM4 CPU */ -#else - EXTI_CurrentCPU = EXTI_D1; /* EXTI for CM7 CPU */ -#endif - - /* Check the parameters */ - assert_param(IS_GPIO_ALL_INSTANCE(GPIOx)); - assert_param(IS_GPIO_PIN(GPIO_Pin)); - - /* Configure the port pins */ - while ((GPIO_Pin >> position) != 0x00U) - { - /* Get current io position */ - iocurrent = GPIO_Pin & (1UL << position) ; - - if (iocurrent != 0x00U) - { - /*------------------------- EXTI Mode Configuration --------------------*/ - /* Clear the External Interrupt or Event for the current IO */ - tmp = SYSCFG->EXTICR[position >> 2U]; - tmp &= (0x0FUL << (4U * (position & 0x03U))); - if (tmp == (GPIO_GET_INDEX(GPIOx) << (4U * (position & 0x03U)))) - { - /* Clear EXTI line configuration for Current CPU */ - EXTI_CurrentCPU->IMR1 &= ~(iocurrent); - EXTI_CurrentCPU->EMR1 &= ~(iocurrent); - - /* Clear Rising Falling edge configuration */ - EXTI->FTSR1 &= ~(iocurrent); - EXTI->RTSR1 &= ~(iocurrent); - - tmp = 0x0FUL << (4U * (position & 0x03U)); - SYSCFG->EXTICR[position >> 2U] &= ~tmp; - } - - /*------------------------- GPIO Mode Configuration --------------------*/ - /* Configure IO in Analog Mode */ - GPIOx->MODER |= (GPIO_MODER_MODE0 << (position * 2U)); - - /* Configure the default Alternate Function in current IO */ - GPIOx->AFR[position >> 3U] &= ~(0xFU << ((position & 0x07U) * 4U)) ; - - /* Deactivate the Pull-up and Pull-down resistor for the current IO */ - GPIOx->PUPDR &= ~(GPIO_PUPDR_PUPD0 << (position * 2U)); - - /* Configure the default value IO Output Type */ - GPIOx->OTYPER &= ~(GPIO_OTYPER_OT0 << position) ; - - /* Configure the default value for IO Speed */ - GPIOx->OSPEEDR &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U)); - } - - position++; - } -} - -/** - * @} - */ - -/** @defgroup GPIO_Exported_Functions_Group2 IO operation functions - * @brief GPIO Read, Write, Toggle, Lock and EXTI management functions. - * -@verbatim - =============================================================================== - ##### IO operation functions ##### - =============================================================================== - -@endverbatim - * @{ - */ - -/** - * @brief Reads the specified input port pin. - * @param GPIOx: where x can be (A..K) to select the GPIO peripheral. - * @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) -{ - GPIO_PinState bitstatus; - - /* Check the parameters */ - assert_param(IS_GPIO_PIN(GPIO_Pin)); - - if ((GPIOx->IDR & GPIO_Pin) != 0x00U) - { - bitstatus = GPIO_PIN_SET; - } - else - { - bitstatus = GPIO_PIN_RESET; - } - return bitstatus; -} - -/** - * @brief Sets or clears the selected data port bit. - * - * @note This function uses GPIOx_BSRR register to allow atomic read/modify - * accesses. In this way, there is no risk of an IRQ occurring between - * the read and the modify access. - * - * @param GPIOx: where x can be (A..K) to select the GPIO peripheral. - * @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). - * @param PinState: specifies the value to be written to the selected bit. - * This parameter can be one of the GPIO_PinState enum values: - * @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) -{ - /* Check the parameters */ - assert_param(IS_GPIO_PIN(GPIO_Pin)); - assert_param(IS_GPIO_PIN_ACTION(PinState)); - - if (PinState != GPIO_PIN_RESET) - { - GPIOx->BSRR = GPIO_Pin; - } - else - { - GPIOx->BSRR = (uint32_t)GPIO_Pin << GPIO_NUMBER; - } -} - -/** - * @brief Toggles the specified GPIO pins. - * @param GPIOx: Where x can be (A..K) to select the GPIO peripheral. - * @param GPIO_Pin: Specifies the pins to be toggled. - * @retval None - */ -void HAL_GPIO_TogglePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin) -{ - uint32_t odr; - - /* Check the parameters */ - assert_param(IS_GPIO_PIN(GPIO_Pin)); - - /* get current Output Data Register value */ - odr = GPIOx->ODR; - - /* Set selected pins that were at low level, and reset ones that were high */ - GPIOx->BSRR = ((odr & GPIO_Pin) << GPIO_NUMBER) | (~odr & GPIO_Pin); -} - -/** - * @brief Locks GPIO Pins configuration registers. - * @note The locked registers are GPIOx_MODER, GPIOx_OTYPER, GPIOx_OSPEEDR, - * GPIOx_PUPDR, GPIOx_AFRL and GPIOx_AFRH. - * @note The configuration of the locked GPIO pins can no longer be modified - * until the next reset. - * @param GPIOx: where x can be (A..K) to select the GPIO peripheral for STM32H7 family - * @param GPIO_Pin: specifies the port bit to be locked. - * This parameter can be any combination of GPIO_PIN_x where x can be (0..15). - * @retval None - */ -HAL_StatusTypeDef HAL_GPIO_LockPin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin) -{ - __IO uint32_t tmp = GPIO_LCKR_LCKK; - - /* Check the parameters */ - assert_param(IS_GPIO_LOCK_INSTANCE(GPIOx)); - assert_param(IS_GPIO_PIN(GPIO_Pin)); - - /* Apply lock key write sequence */ - tmp |= GPIO_Pin; - /* Set LCKx bit(s): LCKK='1' + LCK[15-0] */ - GPIOx->LCKR = tmp; - /* Reset LCKx bit(s): LCKK='0' + LCK[15-0] */ - GPIOx->LCKR = GPIO_Pin; - /* Set LCKx bit(s): LCKK='1' + LCK[15-0] */ - GPIOx->LCKR = tmp; - /* Read LCKK register. This read is mandatory to complete key lock sequence*/ - tmp = GPIOx->LCKR; - - /* read again in order to confirm lock is active */ - if ((GPIOx->LCKR & GPIO_LCKR_LCKK) != 0x00U) - { - return HAL_OK; - } - else - { - return HAL_ERROR; - } -} - -/** - * @brief Handle EXTI interrupt request. - * @param GPIO_Pin: Specifies the port pin connected to corresponding EXTI line. - * @retval None - */ -void HAL_GPIO_EXTI_IRQHandler(uint16_t GPIO_Pin) -{ -#if defined(DUAL_CORE) && defined(CORE_CM4) - if (__HAL_GPIO_EXTID2_GET_IT(GPIO_Pin) != 0x00U) - { - __HAL_GPIO_EXTID2_CLEAR_IT(GPIO_Pin); - HAL_GPIO_EXTI_Callback(GPIO_Pin); - } -#else - /* EXTI line interrupt detected */ - if (__HAL_GPIO_EXTI_GET_IT(GPIO_Pin) != 0x00U) - { - __HAL_GPIO_EXTI_CLEAR_IT(GPIO_Pin); - HAL_GPIO_EXTI_Callback(GPIO_Pin); - } -#endif -} - -/** - * @brief EXTI line detection callback. - * @param GPIO_Pin: Specifies the port pin connected to corresponding EXTI line. - * @retval None - */ -__weak void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(GPIO_Pin); - - /* NOTE: This function Should not be modified, when the callback is needed, - the HAL_GPIO_EXTI_Callback could be implemented in the user file - */ -} - -/** - * @} - */ - - -/** - * @} - */ - -#endif /* HAL_GPIO_MODULE_ENABLED */ -/** - * @} - */ - -/** - * @} - */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c b/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c deleted file mode 100644 index 1d17bac..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c +++ /dev/null @@ -1,447 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_hsem.c - * @author MCD Application Team - * @brief HSEM HAL module driver. - * This file provides firmware functions to manage the following - * functionalities of the semaphore peripheral: - * + Semaphore Take function (2-Step Procedure) , non blocking - * + Semaphore FastTake function (1-Step Procedure) , non blocking - * + Semaphore Status check - * + Semaphore Clear Key Set and Get - * + Release and release all functions - * + Semaphore notification enabling and disabling and callnack functions - * + IRQ handler management - * - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - @verbatim - ============================================================================== - ##### How to use this driver ##### - ============================================================================== - [..] - (#)Take a semaphore In 2-Step mode Using function HAL_HSEM_Take. This function takes as parameters : - (++) the semaphore ID from 0 to 31 - (++) the process ID from 0 to 255 - (#) Fast Take semaphore In 1-Step mode Using function HAL_HSEM_FastTake. This function takes as parameter : - (++) the semaphore ID from 0_ID to 31. Note that the process ID value is implicitly assumed as zero - (#) Check if a semaphore is Taken using function HAL_HSEM_IsSemTaken. This function takes as parameter : - (++) the semaphore ID from 0_ID to 31 - (++) It returns 1 if the given semaphore is taken otherwise (Free) zero - (#)Release a semaphore using function with HAL_HSEM_Release. This function takes as parameters : - (++) the semaphore ID from 0 to 31 - (++) the process ID from 0 to 255: - (++) Note: If ProcessID and MasterID match, semaphore is freed, and an interrupt - may be generated when enabled (notification activated). If ProcessID or MasterID does not match, - semaphore remains taken (locked) - - (#)Release all semaphores at once taken by a given Master using function HAL_HSEM_Release_All - This function takes as parameters : - (++) the Release Key (value from 0 to 0xFFFF) can be Set or Get respectively by - HAL_HSEM_SetClearKey() or HAL_HSEM_GetClearKey functions - (++) the Master ID: - (++) Note: If the Key and MasterID match, all semaphores taken by the given CPU that corresponds - to MasterID will be freed, and an interrupt may be generated when enabled (notification activated). If the - Key or the MasterID doesn't match, semaphores remains taken (locked) - - (#)Semaphores Release all key functions: - (++) HAL_HSEM_SetClearKey() to set semaphore release all Key - (++) HAL_HSEM_GetClearKey() to get release all Key - (#)Semaphores notification functions : - (++) HAL_HSEM_ActivateNotification to activate a notification callback on - a given semaphores Mask (bitfield). When one or more semaphores defined by the mask are released - the callback HAL_HSEM_FreeCallback will be asserted giving as parameters a mask of the released - semaphores (bitfield). - - (++) HAL_HSEM_DeactivateNotification to deactivate the notification of a given semaphores Mask (bitfield). - (++) See the description of the macro __HAL_HSEM_SEMID_TO_MASK to check how to calculate a semaphore mask - Used by the notification functions - *** HSEM HAL driver macros list *** - ============================================= - [..] Below the list of most used macros in HSEM HAL driver. - - (+) __HAL_HSEM_SEMID_TO_MASK: Helper macro to convert a Semaphore ID to a Mask. - [..] Example of use : - [..] mask = __HAL_HSEM_SEMID_TO_MASK(8) | __HAL_HSEM_SEMID_TO_MASK(21) | __HAL_HSEM_SEMID_TO_MASK(25). - [..] All next macros take as parameter a semaphore Mask (bitfiled) that can be constructed using __HAL_HSEM_SEMID_TO_MASK as the above example. - (+) __HAL_HSEM_ENABLE_IT: Enable the specified semaphores Mask interrupts. - (+) __HAL_HSEM_DISABLE_IT: Disable the specified semaphores Mask interrupts. - (+) __HAL_HSEM_GET_IT: Checks whether the specified semaphore interrupt has occurred or not. - (+) __HAL_HSEM_GET_FLAG: Get the semaphores status release flags. - (+) __HAL_HSEM_CLEAR_FLAG: Clear the semaphores status release flags. - - @endverbatim - ****************************************************************************** - */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @defgroup HSEM HSEM - * @brief HSEM HAL module driver - * @{ - */ - -#ifdef HAL_HSEM_MODULE_ENABLED - -/* Private typedef -----------------------------------------------------------*/ -/* Private define ------------------------------------------------------------*/ -#if defined(DUAL_CORE) -/** @defgroup HSEM_Private_Constants HSEM Private Constants - * @{ - */ - -#ifndef HSEM_R_MASTERID -#define HSEM_R_MASTERID HSEM_R_COREID -#endif - -#ifndef HSEM_RLR_MASTERID -#define HSEM_RLR_MASTERID HSEM_RLR_COREID -#endif - -#ifndef HSEM_CR_MASTERID -#define HSEM_CR_MASTERID HSEM_CR_COREID -#endif - -/** - * @} - */ -#endif /* DUAL_CORE */ -/* Private macro -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private function prototypes -----------------------------------------------*/ -/* Private functions ---------------------------------------------------------*/ -/* Exported functions --------------------------------------------------------*/ - -/** @defgroup HSEM_Exported_Functions HSEM Exported Functions - * @{ - */ - -/** @defgroup HSEM_Exported_Functions_Group1 Take and Release functions - * @brief HSEM Take and Release functions - * -@verbatim - ============================================================================== - ##### HSEM Take and Release functions ##### - ============================================================================== -[..] This section provides functions allowing to: - (+) Take a semaphore with 2 Step method - (+) Fast Take a semaphore with 1 Step method - (+) Check semaphore state Taken or not - (+) Release a semaphore - (+) Release all semaphore at once - -@endverbatim - * @{ - */ - - -/** - * @brief Take a semaphore in 2 Step mode. - * @param SemID: semaphore ID from 0 to 31 - * @param ProcessID: Process ID from 0 to 255 - * @retval HAL status - */ -HAL_StatusTypeDef HAL_HSEM_Take(uint32_t SemID, uint32_t ProcessID) -{ - /* Check the parameters */ - assert_param(IS_HSEM_SEMID(SemID)); - assert_param(IS_HSEM_PROCESSID(ProcessID)); - -#if USE_MULTI_CORE_SHARED_CODE != 0U - /* First step write R register with MasterID, processID and take bit=1*/ - HSEM->R[SemID] = ((ProcessID & HSEM_R_PROCID) | ((HAL_GetCurrentCPUID() << POSITION_VAL(HSEM_R_MASTERID)) & HSEM_R_MASTERID) | HSEM_R_LOCK); - - /* second step : read the R register . Take achieved if MasterID and processID match and take bit set to 1 */ - if (HSEM->R[SemID] == ((ProcessID & HSEM_R_PROCID) | ((HAL_GetCurrentCPUID() << POSITION_VAL(HSEM_R_MASTERID)) & HSEM_R_MASTERID) | HSEM_R_LOCK)) - { - /*take success when MasterID and ProcessID match and take bit set*/ - return HAL_OK; - } -#else - /* First step write R register with MasterID, processID and take bit=1*/ - HSEM->R[SemID] = (ProcessID | HSEM_CR_COREID_CURRENT | HSEM_R_LOCK); - - /* second step : read the R register . Take achieved if MasterID and processID match and take bit set to 1 */ - if (HSEM->R[SemID] == (ProcessID | HSEM_CR_COREID_CURRENT | HSEM_R_LOCK)) - { - /*take success when MasterID and ProcessID match and take bit set*/ - return HAL_OK; - } -#endif - - /* Semaphore take fails*/ - return HAL_ERROR; -} - -/** - * @brief Fast Take a semaphore with 1 Step mode. - * @param SemID: semaphore ID from 0 to 31 - * @retval HAL status - */ -HAL_StatusTypeDef HAL_HSEM_FastTake(uint32_t SemID) -{ - /* Check the parameters */ - assert_param(IS_HSEM_SEMID(SemID)); - -#if USE_MULTI_CORE_SHARED_CODE != 0U - /* Read the RLR register to take the semaphore */ - if (HSEM->RLR[SemID] == (((HAL_GetCurrentCPUID() << POSITION_VAL(HSEM_R_MASTERID)) & HSEM_RLR_MASTERID) | HSEM_RLR_LOCK)) - { - /*take success when MasterID match and take bit set*/ - return HAL_OK; - } -#else - /* Read the RLR register to take the semaphore */ - if (HSEM->RLR[SemID] == (HSEM_CR_COREID_CURRENT | HSEM_RLR_LOCK)) - { - /*take success when MasterID match and take bit set*/ - return HAL_OK; - } -#endif - - /* Semaphore take fails */ - return HAL_ERROR; -} -/** - * @brief Check semaphore state Taken or not. - * @param SemID: semaphore ID - * @retval HAL HSEM state - */ -uint32_t HAL_HSEM_IsSemTaken(uint32_t SemID) -{ - return (((HSEM->R[SemID] & HSEM_R_LOCK) != 0U) ? 1UL : 0UL); -} - - -/** - * @brief Release a semaphore. - * @param SemID: semaphore ID from 0 to 31 - * @param ProcessID: Process ID from 0 to 255 - * @retval None - */ -void HAL_HSEM_Release(uint32_t SemID, uint32_t ProcessID) -{ - /* Check the parameters */ - assert_param(IS_HSEM_SEMID(SemID)); - assert_param(IS_HSEM_PROCESSID(ProcessID)); - - /* Clear the semaphore by writing to the R register : the MasterID , the processID and take bit = 0 */ -#if USE_MULTI_CORE_SHARED_CODE != 0U - HSEM->R[SemID] = (ProcessID | ((HAL_GetCurrentCPUID() << POSITION_VAL(HSEM_R_MASTERID)) & HSEM_R_MASTERID)); -#else - HSEM->R[SemID] = (ProcessID | HSEM_CR_COREID_CURRENT); -#endif - -} - -/** - * @brief Release All semaphore used by a given Master . - * @param Key: Semaphore Key , value from 0 to 0xFFFF - * @param CoreID: CoreID of the CPU that is using semaphores to be released - * @retval None - */ -void HAL_HSEM_ReleaseAll(uint32_t Key, uint32_t CoreID) -{ - assert_param(IS_HSEM_KEY(Key)); - assert_param(IS_HSEM_COREID(CoreID)); - - HSEM->CR = ((Key << HSEM_CR_KEY_Pos) | (CoreID << HSEM_CR_COREID_Pos)); -} - -/** - * @} - */ - -/** @defgroup HSEM_Exported_Functions_Group2 HSEM Set and Get Key functions - * @brief HSEM Set and Get Key functions. - * -@verbatim - ============================================================================== - ##### HSEM Set and Get Key functions ##### - ============================================================================== - [..] This section provides functions allowing to: - (+) Set semaphore Key - (+) Get semaphore Key -@endverbatim - - * @{ - */ - -/** - * @brief Set semaphore Key . - * @param Key: Semaphore Key , value from 0 to 0xFFFF - * @retval None - */ -void HAL_HSEM_SetClearKey(uint32_t Key) -{ - assert_param(IS_HSEM_KEY(Key)); - - MODIFY_REG(HSEM->KEYR, HSEM_KEYR_KEY, (Key << HSEM_KEYR_KEY_Pos)); - -} - -/** - * @brief Get semaphore Key . - * @retval Semaphore Key , value from 0 to 0xFFFF - */ -uint32_t HAL_HSEM_GetClearKey(void) -{ - return (HSEM->KEYR >> HSEM_KEYR_KEY_Pos); -} - -/** - * @} - */ - -/** @defgroup HSEM_Exported_Functions_Group3 HSEM IRQ handler management - * @brief HSEM Notification functions. - * -@verbatim - ============================================================================== - ##### HSEM IRQ handler management and Notification functions ##### - ============================================================================== -[..] This section provides HSEM IRQ handler and Notification function. - -@endverbatim - * @{ - */ - -/** - * @brief Activate Semaphore release Notification for a given Semaphores Mask . - * @param SemMask: Mask of Released semaphores - * @retval Semaphore Key - */ -void HAL_HSEM_ActivateNotification(uint32_t SemMask) -{ -#if USE_MULTI_CORE_SHARED_CODE != 0U - /*enable the semaphore mask interrupts */ - if (HAL_GetCurrentCPUID() == HSEM_CPU1_COREID) - { - /*Use interrupt line 0 for CPU1 Master */ - HSEM->C1IER |= SemMask; - } - else /* HSEM_CPU2_COREID */ - { - /*Use interrupt line 1 for CPU2 Master*/ - HSEM->C2IER |= SemMask; - } -#else - HSEM_COMMON->IER |= SemMask; -#endif -} - -/** - * @brief Deactivate Semaphore release Notification for a given Semaphores Mask . - * @param SemMask: Mask of Released semaphores - * @retval Semaphore Key - */ -void HAL_HSEM_DeactivateNotification(uint32_t SemMask) -{ -#if USE_MULTI_CORE_SHARED_CODE != 0U - /*enable the semaphore mask interrupts */ - if (HAL_GetCurrentCPUID() == HSEM_CPU1_COREID) - { - /*Use interrupt line 0 for CPU1 Master */ - HSEM->C1IER &= ~SemMask; - } - else /* HSEM_CPU2_COREID */ - { - /*Use interrupt line 1 for CPU2 Master*/ - HSEM->C2IER &= ~SemMask; - } -#else - HSEM_COMMON->IER &= ~SemMask; -#endif -} - -/** - * @brief This function handles HSEM interrupt request - * @retval None - */ -void HAL_HSEM_IRQHandler(void) -{ - uint32_t statusreg; -#if USE_MULTI_CORE_SHARED_CODE != 0U - if (HAL_GetCurrentCPUID() == HSEM_CPU1_COREID) - { - /* Get the list of masked freed semaphores*/ - statusreg = HSEM->C1MISR; /*Use interrupt line 0 for CPU1 Master*/ - - /*Disable Interrupts*/ - HSEM->C1IER &= ~((uint32_t)statusreg); - - /*Clear Flags*/ - HSEM->C1ICR = ((uint32_t)statusreg); - } - else /* HSEM_CPU2_COREID */ - { - /* Get the list of masked freed semaphores*/ - statusreg = HSEM->C2MISR;/*Use interrupt line 1 for CPU2 Master*/ - - /*Disable Interrupts*/ - HSEM->C2IER &= ~((uint32_t)statusreg); - - /*Clear Flags*/ - HSEM->C2ICR = ((uint32_t)statusreg); - } -#else - /* Get the list of masked freed semaphores*/ - statusreg = HSEM_COMMON->MISR; - - /*Disable Interrupts*/ - HSEM_COMMON->IER &= ~((uint32_t)statusreg); - - /*Clear Flags*/ - HSEM_COMMON->ICR = ((uint32_t)statusreg); - -#endif - /* Call FreeCallback */ - HAL_HSEM_FreeCallback(statusreg); -} - -/** - * @brief Semaphore Released Callback. - * @param SemMask: Mask of Released semaphores - * @retval None - */ -__weak void HAL_HSEM_FreeCallback(uint32_t SemMask) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(SemMask); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_HSEM_FreeCallback can be implemented in the user file - */ -} - -/** - * @} - */ - -/** - * @} - */ - -#endif /* HAL_HSEM_MODULE_ENABLED */ -/** - * @} - */ - -/** - * @} - */ diff --git a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c b/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c deleted file mode 100644 index c9ad0e7..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c +++ /dev/null @@ -1,7268 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_i2c.c - * @author MCD Application Team - * @brief I2C HAL module driver. - * This file provides firmware functions to manage the following - * functionalities of the Inter Integrated Circuit (I2C) peripheral: - * + Initialization and de-initialization functions - * + IO operation functions - * + Peripheral State and Errors functions - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - @verbatim - ============================================================================== - ##### How to use this driver ##### - ============================================================================== - [..] - The I2C HAL driver can be used as follows: - - (#) Declare a I2C_HandleTypeDef handle structure, for example: - I2C_HandleTypeDef hi2c; - - (#)Initialize the I2C low level resources by implementing the HAL_I2C_MspInit() API: - (##) Enable the I2Cx interface clock - (##) I2C pins configuration - (+++) Enable the clock for the I2C GPIOs - (+++) Configure I2C pins as alternate function open-drain - (##) NVIC configuration if you need to use interrupt process - (+++) Configure the I2Cx interrupt priority - (+++) Enable the NVIC I2C IRQ Channel - (##) DMA Configuration if you need to use DMA process - (+++) Declare a DMA_HandleTypeDef handle structure for - the transmit or receive stream or channel depends on Instance - (+++) Enable the DMAx interface clock using - (+++) Configure the DMA handle parameters - (+++) Configure the DMA Tx or Rx stream or channel depends on Instance - (+++) Associate the initialized DMA handle to the hi2c DMA Tx or Rx handle - (+++) Configure the priority and enable the NVIC for the transfer complete interrupt on - the DMA Tx or Rx stream or channel depends on Instance - - (#) Configure the Communication Clock Timing, Own Address1, Master Addressing mode, Dual Addressing mode, - Own Address2, Own Address2 Mask, General call and Nostretch mode in the hi2c Init structure. - - (#) Initialize the I2C registers by calling the HAL_I2C_Init(), configures also the low level Hardware - (GPIO, CLOCK, NVIC...etc) by calling the customized HAL_I2C_MspInit(&hi2c) API. - - (#) To check if target device is ready for communication, use the function HAL_I2C_IsDeviceReady() - - (#) For I2C IO and IO MEM operations, three operation modes are available within this driver : - - *** Polling mode IO operation *** - ================================= - [..] - (+) Transmit in master mode an amount of data in blocking mode using HAL_I2C_Master_Transmit() - (+) Receive in master mode an amount of data in blocking mode using HAL_I2C_Master_Receive() - (+) Transmit in slave mode an amount of data in blocking mode using HAL_I2C_Slave_Transmit() - (+) Receive in slave mode an amount of data in blocking mode using HAL_I2C_Slave_Receive() - - *** Polling mode IO MEM operation *** - ===================================== - [..] - (+) Write an amount of data in blocking mode to a specific memory address using HAL_I2C_Mem_Write() - (+) Read an amount of data in blocking mode from a specific memory address using HAL_I2C_Mem_Read() - - - *** Interrupt mode IO operation *** - =================================== - [..] - (+) Transmit in master mode an amount of data in non-blocking mode using HAL_I2C_Master_Transmit_IT() - (+) At transmission end of transfer, HAL_I2C_MasterTxCpltCallback() is executed and users can - add their own code by customization of function pointer HAL_I2C_MasterTxCpltCallback() - (+) Receive in master mode an amount of data in non-blocking mode using HAL_I2C_Master_Receive_IT() - (+) At reception end of transfer, HAL_I2C_MasterRxCpltCallback() is executed and users can - add their own code by customization of function pointer HAL_I2C_MasterRxCpltCallback() - (+) Transmit in slave mode an amount of data in non-blocking mode using HAL_I2C_Slave_Transmit_IT() - (+) At transmission end of transfer, HAL_I2C_SlaveTxCpltCallback() is executed and users can - add their own code by customization of function pointer HAL_I2C_SlaveTxCpltCallback() - (+) Receive in slave mode an amount of data in non-blocking mode using HAL_I2C_Slave_Receive_IT() - (+) At reception end of transfer, HAL_I2C_SlaveRxCpltCallback() is executed and users can - add their own code by customization of function pointer HAL_I2C_SlaveRxCpltCallback() - (+) In case of transfer Error, HAL_I2C_ErrorCallback() function is executed and users can - add their own code by customization of function pointer HAL_I2C_ErrorCallback() - (+) Abort a master I2C process communication with Interrupt using HAL_I2C_Master_Abort_IT() - (+) End of abort process, HAL_I2C_AbortCpltCallback() is executed and users can - add their own code by customization of function pointer HAL_I2C_AbortCpltCallback() - (+) Discard a slave I2C process communication using __HAL_I2C_GENERATE_NACK() macro. - This action will inform Master to generate a Stop condition to discard the communication. - - - *** Interrupt mode or DMA mode IO sequential operation *** - ========================================================== - [..] - (@) These interfaces allow to manage a sequential transfer with a repeated start condition - when a direction change during transfer - [..] - (+) A specific option field manage the different steps of a sequential transfer - (+) Option field values are defined through I2C_XFEROPTIONS and are listed below: - (++) I2C_FIRST_AND_LAST_FRAME: No sequential usage, functional is same as associated interfaces in - no sequential mode - (++) I2C_FIRST_FRAME: Sequential usage, this option allow to manage a sequence with start condition, address - and data to transfer without a final stop condition - (++) I2C_FIRST_AND_NEXT_FRAME: Sequential usage (Master only), this option allow to manage a sequence with - start condition, address and data to transfer without a final stop condition, - an then permit a call the same master sequential interface several times - (like HAL_I2C_Master_Seq_Transmit_IT() then HAL_I2C_Master_Seq_Transmit_IT() - or HAL_I2C_Master_Seq_Transmit_DMA() then HAL_I2C_Master_Seq_Transmit_DMA()) - (++) I2C_NEXT_FRAME: Sequential usage, this option allow to manage a sequence with a restart condition, address - and with new data to transfer if the direction change or manage only the new data to - transfer - if no direction change and without a final stop condition in both cases - (++) I2C_LAST_FRAME: Sequential usage, this option allow to manage a sequance with a restart condition, address - and with new data to transfer if the direction change or manage only the new data to - transfer - if no direction change and with a final stop condition in both cases - (++) I2C_LAST_FRAME_NO_STOP: Sequential usage (Master only), this option allow to manage a restart condition - after several call of the same master sequential interface several times - (link with option I2C_FIRST_AND_NEXT_FRAME). - Usage can, transfer several bytes one by one using - HAL_I2C_Master_Seq_Transmit_IT - or HAL_I2C_Master_Seq_Receive_IT - or HAL_I2C_Master_Seq_Transmit_DMA - or HAL_I2C_Master_Seq_Receive_DMA - with option I2C_FIRST_AND_NEXT_FRAME then I2C_NEXT_FRAME. - Then usage of this option I2C_LAST_FRAME_NO_STOP at the last Transmit or - Receive sequence permit to call the opposite interface Receive or Transmit - without stopping the communication and so generate a restart condition. - (++) I2C_OTHER_FRAME: Sequential usage (Master only), this option allow to manage a restart condition after - each call of the same master sequential - interface. - Usage can, transfer several bytes one by one with a restart with slave address between - each bytes using - HAL_I2C_Master_Seq_Transmit_IT - or HAL_I2C_Master_Seq_Receive_IT - or HAL_I2C_Master_Seq_Transmit_DMA - or HAL_I2C_Master_Seq_Receive_DMA - with option I2C_FIRST_FRAME then I2C_OTHER_FRAME. - Then usage of this option I2C_OTHER_AND_LAST_FRAME at the last frame to help automatic - generation of STOP condition. - - (+) Different sequential I2C interfaces are listed below: - (++) Sequential transmit in master I2C mode an amount of data in non-blocking mode using - HAL_I2C_Master_Seq_Transmit_IT() or using HAL_I2C_Master_Seq_Transmit_DMA() - (+++) At transmission end of current frame transfer, HAL_I2C_MasterTxCpltCallback() is executed and - users can add their own code by customization of function pointer HAL_I2C_MasterTxCpltCallback() - (++) Sequential receive in master I2C mode an amount of data in non-blocking mode using - HAL_I2C_Master_Seq_Receive_IT() or using HAL_I2C_Master_Seq_Receive_DMA() - (+++) At reception end of current frame transfer, HAL_I2C_MasterRxCpltCallback() is executed and users can - add their own code by customization of function pointer HAL_I2C_MasterRxCpltCallback() - (++) Abort a master IT or DMA I2C process communication with Interrupt using HAL_I2C_Master_Abort_IT() - (+++) End of abort process, HAL_I2C_AbortCpltCallback() is executed and users can - add their own code by customization of function pointer HAL_I2C_AbortCpltCallback() - (++) Enable/disable the Address listen mode in slave I2C mode using HAL_I2C_EnableListen_IT() - HAL_I2C_DisableListen_IT() - (+++) When address slave I2C match, HAL_I2C_AddrCallback() is executed and users can - add their own code to check the Address Match Code and the transmission direction request by master - (Write/Read). - (+++) At Listen mode end HAL_I2C_ListenCpltCallback() is executed and users can - add their own code by customization of function pointer HAL_I2C_ListenCpltCallback() - (++) Sequential transmit in slave I2C mode an amount of data in non-blocking mode using - HAL_I2C_Slave_Seq_Transmit_IT() or using HAL_I2C_Slave_Seq_Transmit_DMA() - (+++) At transmission end of current frame transfer, HAL_I2C_SlaveTxCpltCallback() is executed and - users can add their own code by customization of function pointer HAL_I2C_SlaveTxCpltCallback() - (++) Sequential receive in slave I2C mode an amount of data in non-blocking mode using - HAL_I2C_Slave_Seq_Receive_IT() or using HAL_I2C_Slave_Seq_Receive_DMA() - (+++) At reception end of current frame transfer, HAL_I2C_SlaveRxCpltCallback() is executed and users can - add their own code by customization of function pointer HAL_I2C_SlaveRxCpltCallback() - (++) In case of transfer Error, HAL_I2C_ErrorCallback() function is executed and users can - add their own code by customization of function pointer HAL_I2C_ErrorCallback() - (++) Discard a slave I2C process communication using __HAL_I2C_GENERATE_NACK() macro. - This action will inform Master to generate a Stop condition to discard the communication. - - *** Interrupt mode IO MEM operation *** - ======================================= - [..] - (+) Write an amount of data in non-blocking mode with Interrupt to a specific memory address using - HAL_I2C_Mem_Write_IT() - (+) At Memory end of write transfer, HAL_I2C_MemTxCpltCallback() is executed and users can - add their own code by customization of function pointer HAL_I2C_MemTxCpltCallback() - (+) Read an amount of data in non-blocking mode with Interrupt from a specific memory address using - HAL_I2C_Mem_Read_IT() - (+) At Memory end of read transfer, HAL_I2C_MemRxCpltCallback() is executed and users can - add their own code by customization of function pointer HAL_I2C_MemRxCpltCallback() - (+) In case of transfer Error, HAL_I2C_ErrorCallback() function is executed and users can - add their own code by customization of function pointer HAL_I2C_ErrorCallback() - - *** DMA mode IO operation *** - ============================== - [..] - (+) Transmit in master mode an amount of data in non-blocking mode (DMA) using - HAL_I2C_Master_Transmit_DMA() - (+) At transmission end of transfer, HAL_I2C_MasterTxCpltCallback() is executed and users can - add their own code by customization of function pointer HAL_I2C_MasterTxCpltCallback() - (+) Receive in master mode an amount of data in non-blocking mode (DMA) using - HAL_I2C_Master_Receive_DMA() - (+) At reception end of transfer, HAL_I2C_MasterRxCpltCallback() is executed and users can - add their own code by customization of function pointer HAL_I2C_MasterRxCpltCallback() - (+) Transmit in slave mode an amount of data in non-blocking mode (DMA) using - HAL_I2C_Slave_Transmit_DMA() - (+) At transmission end of transfer, HAL_I2C_SlaveTxCpltCallback() is executed and users can - add their own code by customization of function pointer HAL_I2C_SlaveTxCpltCallback() - (+) Receive in slave mode an amount of data in non-blocking mode (DMA) using - HAL_I2C_Slave_Receive_DMA() - (+) At reception end of transfer, HAL_I2C_SlaveRxCpltCallback() is executed and users can - add their own code by customization of function pointer HAL_I2C_SlaveRxCpltCallback() - (+) In case of transfer Error, HAL_I2C_ErrorCallback() function is executed and users can - add their own code by customization of function pointer HAL_I2C_ErrorCallback() - (+) Abort a master I2C process communication with Interrupt using HAL_I2C_Master_Abort_IT() - (+) End of abort process, HAL_I2C_AbortCpltCallback() is executed and users can - add their own code by customization of function pointer HAL_I2C_AbortCpltCallback() - (+) Discard a slave I2C process communication using __HAL_I2C_GENERATE_NACK() macro. - This action will inform Master to generate a Stop condition to discard the communication. - - *** DMA mode IO MEM operation *** - ================================= - [..] - (+) Write an amount of data in non-blocking mode with DMA to a specific memory address using - HAL_I2C_Mem_Write_DMA() - (+) At Memory end of write transfer, HAL_I2C_MemTxCpltCallback() is executed and users can - add their own code by customization of function pointer HAL_I2C_MemTxCpltCallback() - (+) Read an amount of data in non-blocking mode with DMA from a specific memory address using - HAL_I2C_Mem_Read_DMA() - (+) At Memory end of read transfer, HAL_I2C_MemRxCpltCallback() is executed and users can - add their own code by customization of function pointer HAL_I2C_MemRxCpltCallback() - (+) In case of transfer Error, HAL_I2C_ErrorCallback() function is executed and users can - add their own code by customization of function pointer HAL_I2C_ErrorCallback() - - - *** I2C HAL driver macros list *** - ================================== - [..] - Below the list of most used macros in I2C HAL driver. - - (+) __HAL_I2C_ENABLE: Enable the I2C peripheral - (+) __HAL_I2C_DISABLE: Disable the I2C peripheral - (+) __HAL_I2C_GENERATE_NACK: Generate a Non-Acknowledge I2C peripheral in Slave mode - (+) __HAL_I2C_GET_FLAG: Check whether the specified I2C flag is set or not - (+) __HAL_I2C_CLEAR_FLAG: Clear the specified I2C pending flag - (+) __HAL_I2C_ENABLE_IT: Enable the specified I2C interrupt - (+) __HAL_I2C_DISABLE_IT: Disable the specified I2C interrupt - - *** Callback registration *** - ============================================= - [..] - The compilation flag USE_HAL_I2C_REGISTER_CALLBACKS when set to 1 - allows the user to configure dynamically the driver callbacks. - Use Functions HAL_I2C_RegisterCallback() or HAL_I2C_RegisterAddrCallback() - to register an interrupt callback. - [..] - Function HAL_I2C_RegisterCallback() allows to register following callbacks: - (+) MasterTxCpltCallback : callback for Master transmission end of transfer. - (+) MasterRxCpltCallback : callback for Master reception end of transfer. - (+) SlaveTxCpltCallback : callback for Slave transmission end of transfer. - (+) SlaveRxCpltCallback : callback for Slave reception end of transfer. - (+) ListenCpltCallback : callback for end of listen mode. - (+) MemTxCpltCallback : callback for Memory transmission end of transfer. - (+) MemRxCpltCallback : callback for Memory reception end of transfer. - (+) ErrorCallback : callback for error detection. - (+) AbortCpltCallback : callback for abort completion process. - (+) MspInitCallback : callback for Msp Init. - (+) MspDeInitCallback : callback for Msp DeInit. - This function takes as parameters the HAL peripheral handle, the Callback ID - and a pointer to the user callback function. - [..] - For specific callback AddrCallback use dedicated register callbacks : HAL_I2C_RegisterAddrCallback(). - [..] - Use function HAL_I2C_UnRegisterCallback to reset a callback to the default - weak function. - HAL_I2C_UnRegisterCallback takes as parameters the HAL peripheral handle, - and the Callback ID. - This function allows to reset following callbacks: - (+) MasterTxCpltCallback : callback for Master transmission end of transfer. - (+) MasterRxCpltCallback : callback for Master reception end of transfer. - (+) SlaveTxCpltCallback : callback for Slave transmission end of transfer. - (+) SlaveRxCpltCallback : callback for Slave reception end of transfer. - (+) ListenCpltCallback : callback for end of listen mode. - (+) MemTxCpltCallback : callback for Memory transmission end of transfer. - (+) MemRxCpltCallback : callback for Memory reception end of transfer. - (+) ErrorCallback : callback for error detection. - (+) AbortCpltCallback : callback for abort completion process. - (+) MspInitCallback : callback for Msp Init. - (+) MspDeInitCallback : callback for Msp DeInit. - [..] - For callback AddrCallback use dedicated register callbacks : HAL_I2C_UnRegisterAddrCallback(). - [..] - By default, after the HAL_I2C_Init() and when the state is HAL_I2C_STATE_RESET - all callbacks are set to the corresponding weak functions: - examples HAL_I2C_MasterTxCpltCallback(), HAL_I2C_MasterRxCpltCallback(). - Exception done for MspInit and MspDeInit functions that are - reset to the legacy weak functions in the HAL_I2C_Init()/ HAL_I2C_DeInit() only when - these callbacks are null (not registered beforehand). - If MspInit or MspDeInit are not null, the HAL_I2C_Init()/ HAL_I2C_DeInit() - keep and use the user MspInit/MspDeInit callbacks (registered beforehand) whatever the state. - [..] - Callbacks can be registered/unregistered in HAL_I2C_STATE_READY state only. - Exception done MspInit/MspDeInit functions that can be registered/unregistered - in HAL_I2C_STATE_READY or HAL_I2C_STATE_RESET state, - thus registered (user) MspInit/DeInit callbacks can be used during the Init/DeInit. - Then, the user first registers the MspInit/MspDeInit user callbacks - using HAL_I2C_RegisterCallback() before calling HAL_I2C_DeInit() - or HAL_I2C_Init() function. - [..] - When the compilation flag USE_HAL_I2C_REGISTER_CALLBACKS is set to 0 or - not defined, the callback registration feature is not available and all callbacks - are set to the corresponding weak functions. - - [..] - (@) You can refer to the I2C HAL driver header file for more useful macros - - @endverbatim - */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @defgroup I2C I2C - * @brief I2C HAL module driver - * @{ - */ - -#ifdef HAL_I2C_MODULE_ENABLED - -/* Private typedef -----------------------------------------------------------*/ -/* Private define ------------------------------------------------------------*/ - -/** @defgroup I2C_Private_Define I2C Private Define - * @{ - */ -#define TIMING_CLEAR_MASK (0xF0FFFFFFU) /*!< I2C TIMING clear register Mask */ -#define I2C_TIMEOUT_ADDR (10000U) /*!< 10 s */ -#define I2C_TIMEOUT_BUSY (25U) /*!< 25 ms */ -#define I2C_TIMEOUT_DIR (25U) /*!< 25 ms */ -#define I2C_TIMEOUT_RXNE (25U) /*!< 25 ms */ -#define I2C_TIMEOUT_STOPF (25U) /*!< 25 ms */ -#define I2C_TIMEOUT_TC (25U) /*!< 25 ms */ -#define I2C_TIMEOUT_TCR (25U) /*!< 25 ms */ -#define I2C_TIMEOUT_TXIS (25U) /*!< 25 ms */ -#define I2C_TIMEOUT_FLAG (25U) /*!< 25 ms */ - -#define MAX_NBYTE_SIZE 255U -#define SLAVE_ADDR_SHIFT 7U -#define SLAVE_ADDR_MSK 0x06U - -/* Private define for @ref PreviousState usage */ -#define I2C_STATE_MSK ((uint32_t)((uint32_t)((uint32_t)HAL_I2C_STATE_BUSY_TX | \ - (uint32_t)HAL_I2C_STATE_BUSY_RX) & \ - (uint32_t)(~((uint32_t)HAL_I2C_STATE_READY)))) -/*!< Mask State define, keep only RX and TX bits */ -#define I2C_STATE_NONE ((uint32_t)(HAL_I2C_MODE_NONE)) -/*!< Default Value */ -#define I2C_STATE_MASTER_BUSY_TX ((uint32_t)(((uint32_t)HAL_I2C_STATE_BUSY_TX & I2C_STATE_MSK) | \ - (uint32_t)HAL_I2C_MODE_MASTER)) -/*!< Master Busy TX, combinaison of State LSB and Mode enum */ -#define I2C_STATE_MASTER_BUSY_RX ((uint32_t)(((uint32_t)HAL_I2C_STATE_BUSY_RX & I2C_STATE_MSK) | \ - (uint32_t)HAL_I2C_MODE_MASTER)) -/*!< Master Busy RX, combinaison of State LSB and Mode enum */ -#define I2C_STATE_SLAVE_BUSY_TX ((uint32_t)(((uint32_t)HAL_I2C_STATE_BUSY_TX & I2C_STATE_MSK) | \ - (uint32_t)HAL_I2C_MODE_SLAVE)) -/*!< Slave Busy TX, combinaison of State LSB and Mode enum */ -#define I2C_STATE_SLAVE_BUSY_RX ((uint32_t)(((uint32_t)HAL_I2C_STATE_BUSY_RX & I2C_STATE_MSK) | \ - (uint32_t)HAL_I2C_MODE_SLAVE)) -/*!< Slave Busy RX, combinaison of State LSB and Mode enum */ -#define I2C_STATE_MEM_BUSY_TX ((uint32_t)(((uint32_t)HAL_I2C_STATE_BUSY_TX & I2C_STATE_MSK) | \ - (uint32_t)HAL_I2C_MODE_MEM)) -/*!< Memory Busy TX, combinaison of State LSB and Mode enum */ -#define I2C_STATE_MEM_BUSY_RX ((uint32_t)(((uint32_t)HAL_I2C_STATE_BUSY_RX & I2C_STATE_MSK) | \ - (uint32_t)HAL_I2C_MODE_MEM)) -/*!< Memory Busy RX, combinaison of State LSB and Mode enum */ - - -/* Private define to centralize the enable/disable of Interrupts */ -#define I2C_XFER_TX_IT (uint16_t)(0x0001U) /*!< Bit field can be combinated with - @ref I2C_XFER_LISTEN_IT */ -#define I2C_XFER_RX_IT (uint16_t)(0x0002U) /*!< Bit field can be combinated with - @ref I2C_XFER_LISTEN_IT */ -#define I2C_XFER_LISTEN_IT (uint16_t)(0x8000U) /*!< Bit field can be combinated with @ref I2C_XFER_TX_IT - and @ref I2C_XFER_RX_IT */ - -#define I2C_XFER_ERROR_IT (uint16_t)(0x0010U) /*!< Bit definition to manage addition of global Error - and NACK treatment */ -#define I2C_XFER_CPLT_IT (uint16_t)(0x0020U) /*!< Bit definition to manage only STOP evenement */ -#define I2C_XFER_RELOAD_IT (uint16_t)(0x0040U) /*!< Bit definition to manage only Reload of NBYTE */ - -/* Private define Sequential Transfer Options default/reset value */ -#define I2C_NO_OPTION_FRAME (0xFFFF0000U) -/** - * @} - */ - -/* Private macro -------------------------------------------------------------*/ -/* Macro to get remaining data to transfer on DMA side */ -#define I2C_GET_DMA_REMAIN_DATA(__HANDLE__) __HAL_DMA_GET_COUNTER(__HANDLE__) - -/* Private variables ---------------------------------------------------------*/ -/* Private function prototypes -----------------------------------------------*/ - -/** @defgroup I2C_Private_Functions I2C Private Functions - * @{ - */ -/* Private functions to handle DMA transfer */ -static void I2C_DMAMasterTransmitCplt(DMA_HandleTypeDef *hdma); -static void I2C_DMAMasterReceiveCplt(DMA_HandleTypeDef *hdma); -static void I2C_DMASlaveTransmitCplt(DMA_HandleTypeDef *hdma); -static void I2C_DMASlaveReceiveCplt(DMA_HandleTypeDef *hdma); -static void I2C_DMAError(DMA_HandleTypeDef *hdma); -static void I2C_DMAAbort(DMA_HandleTypeDef *hdma); - -/* Private functions to handle IT transfer */ -static void I2C_ITAddrCplt(I2C_HandleTypeDef *hi2c, uint32_t ITFlags); -static void I2C_ITMasterSeqCplt(I2C_HandleTypeDef *hi2c); -static void I2C_ITSlaveSeqCplt(I2C_HandleTypeDef *hi2c); -static void I2C_ITMasterCplt(I2C_HandleTypeDef *hi2c, uint32_t ITFlags); -static void I2C_ITSlaveCplt(I2C_HandleTypeDef *hi2c, uint32_t ITFlags); -static void I2C_ITListenCplt(I2C_HandleTypeDef *hi2c, uint32_t ITFlags); -static void I2C_ITError(I2C_HandleTypeDef *hi2c, uint32_t ErrorCode); - -/* Private functions to handle IT transfer */ -static HAL_StatusTypeDef I2C_RequestMemoryWrite(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, - uint16_t MemAddress, uint16_t MemAddSize, uint32_t Timeout, - uint32_t Tickstart); -static HAL_StatusTypeDef I2C_RequestMemoryRead(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, - uint16_t MemAddress, uint16_t MemAddSize, uint32_t Timeout, - uint32_t Tickstart); - -/* Private functions for I2C transfer IRQ handler */ -static HAL_StatusTypeDef I2C_Master_ISR_IT(struct __I2C_HandleTypeDef *hi2c, uint32_t ITFlags, - uint32_t ITSources); -static HAL_StatusTypeDef I2C_Mem_ISR_IT(struct __I2C_HandleTypeDef *hi2c, uint32_t ITFlags, - uint32_t ITSources); -static HAL_StatusTypeDef I2C_Slave_ISR_IT(struct __I2C_HandleTypeDef *hi2c, uint32_t ITFlags, - uint32_t ITSources); -static HAL_StatusTypeDef I2C_Master_ISR_DMA(struct __I2C_HandleTypeDef *hi2c, uint32_t ITFlags, - uint32_t ITSources); -static HAL_StatusTypeDef I2C_Mem_ISR_DMA(struct __I2C_HandleTypeDef *hi2c, uint32_t ITFlags, - uint32_t ITSources); -static HAL_StatusTypeDef I2C_Slave_ISR_DMA(struct __I2C_HandleTypeDef *hi2c, uint32_t ITFlags, - uint32_t ITSources); - -/* Private functions to handle flags during polling transfer */ -static HAL_StatusTypeDef I2C_WaitOnFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Flag, FlagStatus Status, - uint32_t Timeout, uint32_t Tickstart); -static HAL_StatusTypeDef I2C_WaitOnTXISFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, - uint32_t Tickstart); -static HAL_StatusTypeDef I2C_WaitOnRXNEFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, - uint32_t Tickstart); -static HAL_StatusTypeDef I2C_WaitOnSTOPFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, - uint32_t Tickstart); -static HAL_StatusTypeDef I2C_IsErrorOccurred(I2C_HandleTypeDef *hi2c, uint32_t Timeout, - uint32_t Tickstart); - -/* Private functions to centralize the enable/disable of Interrupts */ -static void I2C_Enable_IRQ(I2C_HandleTypeDef *hi2c, uint16_t InterruptRequest); -static void I2C_Disable_IRQ(I2C_HandleTypeDef *hi2c, uint16_t InterruptRequest); - -/* Private function to treat different error callback */ -static void I2C_TreatErrorCallback(I2C_HandleTypeDef *hi2c); - -/* Private function to flush TXDR register */ -static void I2C_Flush_TXDR(I2C_HandleTypeDef *hi2c); - -/* Private function to handle start, restart or stop a transfer */ -static void I2C_TransferConfig(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t Size, uint32_t Mode, - uint32_t Request); - -/* Private function to Convert Specific options */ -static void I2C_ConvertOtherXferOptions(I2C_HandleTypeDef *hi2c); -/** - * @} - */ - -/* Exported functions --------------------------------------------------------*/ - -/** @defgroup I2C_Exported_Functions I2C Exported Functions - * @{ - */ - -/** @defgroup I2C_Exported_Functions_Group1 Initialization and de-initialization functions - * @brief Initialization and Configuration functions - * -@verbatim - =============================================================================== - ##### Initialization and de-initialization functions ##### - =============================================================================== - [..] This subsection provides a set of functions allowing to initialize and - deinitialize the I2Cx peripheral: - - (+) User must Implement HAL_I2C_MspInit() function in which he configures - all related peripherals resources (CLOCK, GPIO, DMA, IT and NVIC ). - - (+) Call the function HAL_I2C_Init() to configure the selected device with - the selected configuration: - (++) Clock Timing - (++) Own Address 1 - (++) Addressing mode (Master, Slave) - (++) Dual Addressing mode - (++) Own Address 2 - (++) Own Address 2 Mask - (++) General call mode - (++) Nostretch mode - - (+) Call the function HAL_I2C_DeInit() to restore the default configuration - of the selected I2Cx peripheral. - -@endverbatim - * @{ - */ - -/** - * @brief Initializes the I2C according to the specified parameters - * in the I2C_InitTypeDef and initialize the associated handle. - * @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) -{ - /* Check the I2C handle allocation */ - if (hi2c == NULL) - { - return HAL_ERROR; - } - - /* Check the parameters */ - assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance)); - assert_param(IS_I2C_OWN_ADDRESS1(hi2c->Init.OwnAddress1)); - assert_param(IS_I2C_ADDRESSING_MODE(hi2c->Init.AddressingMode)); - assert_param(IS_I2C_DUAL_ADDRESS(hi2c->Init.DualAddressMode)); - 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) - { - /* Allocate lock resource and initialize it */ - hi2c->Lock = HAL_UNLOCKED; - -#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) - /* Init the I2C Callback settings */ - hi2c->MasterTxCpltCallback = HAL_I2C_MasterTxCpltCallback; /* Legacy weak MasterTxCpltCallback */ - hi2c->MasterRxCpltCallback = HAL_I2C_MasterRxCpltCallback; /* Legacy weak MasterRxCpltCallback */ - hi2c->SlaveTxCpltCallback = HAL_I2C_SlaveTxCpltCallback; /* Legacy weak SlaveTxCpltCallback */ - hi2c->SlaveRxCpltCallback = HAL_I2C_SlaveRxCpltCallback; /* Legacy weak SlaveRxCpltCallback */ - hi2c->ListenCpltCallback = HAL_I2C_ListenCpltCallback; /* Legacy weak ListenCpltCallback */ - hi2c->MemTxCpltCallback = HAL_I2C_MemTxCpltCallback; /* Legacy weak MemTxCpltCallback */ - hi2c->MemRxCpltCallback = HAL_I2C_MemRxCpltCallback; /* Legacy weak MemRxCpltCallback */ - hi2c->ErrorCallback = HAL_I2C_ErrorCallback; /* Legacy weak ErrorCallback */ - hi2c->AbortCpltCallback = HAL_I2C_AbortCpltCallback; /* Legacy weak AbortCpltCallback */ - hi2c->AddrCallback = HAL_I2C_AddrCallback; /* Legacy weak AddrCallback */ - - if (hi2c->MspInitCallback == NULL) - { - hi2c->MspInitCallback = HAL_I2C_MspInit; /* Legacy weak MspInit */ - } - - /* 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); -#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ - } - - hi2c->State = HAL_I2C_STATE_BUSY; - - /* Disable the selected I2C peripheral */ - __HAL_I2C_DISABLE(hi2c); - - /*---------------------------- I2Cx TIMINGR Configuration ------------------*/ - /* Configure I2Cx: Frequency range */ - hi2c->Instance->TIMINGR = hi2c->Init.Timing & TIMING_CLEAR_MASK; - - /*---------------------------- I2Cx OAR1 Configuration ---------------------*/ - /* Disable Own Address1 before set the Own Address1 configuration */ - hi2c->Instance->OAR1 &= ~I2C_OAR1_OA1EN; - - /* Configure I2Cx: Own Address1 and ack own address1 mode */ - if (hi2c->Init.AddressingMode == I2C_ADDRESSINGMODE_7BIT) - { - hi2c->Instance->OAR1 = (I2C_OAR1_OA1EN | hi2c->Init.OwnAddress1); - } - else /* I2C_ADDRESSINGMODE_10BIT */ - { - hi2c->Instance->OAR1 = (I2C_OAR1_OA1EN | I2C_OAR1_OA1MODE | hi2c->Init.OwnAddress1); - } - - /*---------------------------- I2Cx CR2 Configuration ----------------------*/ - /* Configure I2Cx: Addressing Master mode */ - if (hi2c->Init.AddressingMode == I2C_ADDRESSINGMODE_10BIT) - { - hi2c->Instance->CR2 = (I2C_CR2_ADD10); - } - /* Enable the AUTOEND by default, and enable NACK (should be disable only during Slave process */ - hi2c->Instance->CR2 |= (I2C_CR2_AUTOEND | I2C_CR2_NACK); - - /*---------------------------- I2Cx OAR2 Configuration ---------------------*/ - /* Disable Own Address2 before set the Own Address2 configuration */ - hi2c->Instance->OAR2 &= ~I2C_DUALADDRESS_ENABLE; - - /* Configure I2Cx: Dual mode and Own Address2 */ - hi2c->Instance->OAR2 = (hi2c->Init.DualAddressMode | hi2c->Init.OwnAddress2 | \ - (hi2c->Init.OwnAddress2Masks << 8)); - - /*---------------------------- I2Cx CR1 Configuration ----------------------*/ - /* Configure I2Cx: Generalcall and NoStretch mode */ - hi2c->Instance->CR1 = (hi2c->Init.GeneralCallMode | hi2c->Init.NoStretchMode); - - /* Enable the selected I2C peripheral */ - __HAL_I2C_ENABLE(hi2c); - - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - hi2c->State = HAL_I2C_STATE_READY; - hi2c->PreviousState = I2C_STATE_NONE; - hi2c->Mode = HAL_I2C_MODE_NONE; - - return HAL_OK; -} - -/** - * @brief DeInitialize the I2C peripheral. - * @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) -{ - /* Check the I2C handle allocation */ - if (hi2c == NULL) - { - return HAL_ERROR; - } - - /* Check the parameters */ - assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance)); - - hi2c->State = HAL_I2C_STATE_BUSY; - - /* Disable the I2C Peripheral Clock */ - __HAL_I2C_DISABLE(hi2c); - -#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) - if (hi2c->MspDeInitCallback == NULL) - { - hi2c->MspDeInitCallback = HAL_I2C_MspDeInit; /* Legacy weak MspDeInit */ - } - - /* DeInit the low level hardware: GPIO, CLOCK, NVIC */ - hi2c->MspDeInitCallback(hi2c); -#else - /* DeInit the low level hardware: GPIO, CLOCK, NVIC */ - HAL_I2C_MspDeInit(hi2c); -#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ - - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - hi2c->State = HAL_I2C_STATE_RESET; - hi2c->PreviousState = I2C_STATE_NONE; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Release Lock */ - __HAL_UNLOCK(hi2c); - - return HAL_OK; -} - -/** - * @brief Initialize the I2C MSP. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @retval None - */ -__weak void HAL_I2C_MspInit(I2C_HandleTypeDef *hi2c) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hi2c); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_I2C_MspInit could be implemented in the user file - */ -} - -/** - * @brief DeInitialize the I2C MSP. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @retval None - */ -__weak void HAL_I2C_MspDeInit(I2C_HandleTypeDef *hi2c) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hi2c); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_I2C_MspDeInit could be implemented in the user file - */ -} - -#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) -/** - * @brief Register a User I2C Callback - * To be used instead of the weak predefined callback - * @note The HAL_I2C_RegisterCallback() may be called before HAL_I2C_Init() in HAL_I2C_STATE_RESET - * to register callbacks for HAL_I2C_MSPINIT_CB_ID and HAL_I2C_MSPDEINIT_CB_ID. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param CallbackID ID of the callback to be registered - * This parameter can be one of the following values: - * @arg @ref HAL_I2C_MASTER_TX_COMPLETE_CB_ID Master Tx Transfer completed callback ID - * @arg @ref HAL_I2C_MASTER_RX_COMPLETE_CB_ID Master Rx Transfer completed callback ID - * @arg @ref HAL_I2C_SLAVE_TX_COMPLETE_CB_ID Slave Tx Transfer completed callback ID - * @arg @ref HAL_I2C_SLAVE_RX_COMPLETE_CB_ID Slave Rx Transfer completed callback ID - * @arg @ref HAL_I2C_LISTEN_COMPLETE_CB_ID Listen Complete callback ID - * @arg @ref HAL_I2C_MEM_TX_COMPLETE_CB_ID Memory Tx Transfer callback ID - * @arg @ref HAL_I2C_MEM_RX_COMPLETE_CB_ID Memory Rx Transfer completed callback ID - * @arg @ref HAL_I2C_ERROR_CB_ID Error callback ID - * @arg @ref HAL_I2C_ABORT_CB_ID Abort callback ID - * @arg @ref HAL_I2C_MSPINIT_CB_ID MspInit callback ID - * @arg @ref HAL_I2C_MSPDEINIT_CB_ID MspDeInit callback ID - * @param pCallback pointer to the Callback function - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_RegisterCallback(I2C_HandleTypeDef *hi2c, HAL_I2C_CallbackIDTypeDef CallbackID, - pI2C_CallbackTypeDef pCallback) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (pCallback == NULL) - { - /* Update the error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; - - return HAL_ERROR; - } - - if (HAL_I2C_STATE_READY == hi2c->State) - { - switch (CallbackID) - { - case HAL_I2C_MASTER_TX_COMPLETE_CB_ID : - hi2c->MasterTxCpltCallback = pCallback; - break; - - case HAL_I2C_MASTER_RX_COMPLETE_CB_ID : - hi2c->MasterRxCpltCallback = pCallback; - break; - - case HAL_I2C_SLAVE_TX_COMPLETE_CB_ID : - hi2c->SlaveTxCpltCallback = pCallback; - break; - - case HAL_I2C_SLAVE_RX_COMPLETE_CB_ID : - hi2c->SlaveRxCpltCallback = pCallback; - break; - - case HAL_I2C_LISTEN_COMPLETE_CB_ID : - hi2c->ListenCpltCallback = pCallback; - break; - - case HAL_I2C_MEM_TX_COMPLETE_CB_ID : - hi2c->MemTxCpltCallback = pCallback; - break; - - case HAL_I2C_MEM_RX_COMPLETE_CB_ID : - hi2c->MemRxCpltCallback = pCallback; - break; - - case HAL_I2C_ERROR_CB_ID : - hi2c->ErrorCallback = pCallback; - break; - - case HAL_I2C_ABORT_CB_ID : - hi2c->AbortCpltCallback = pCallback; - break; - - case HAL_I2C_MSPINIT_CB_ID : - hi2c->MspInitCallback = pCallback; - break; - - case HAL_I2C_MSPDEINIT_CB_ID : - hi2c->MspDeInitCallback = pCallback; - break; - - default : - /* Update the error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - break; - } - } - else if (HAL_I2C_STATE_RESET == hi2c->State) - { - switch (CallbackID) - { - case HAL_I2C_MSPINIT_CB_ID : - hi2c->MspInitCallback = pCallback; - break; - - case HAL_I2C_MSPDEINIT_CB_ID : - hi2c->MspDeInitCallback = pCallback; - break; - - default : - /* Update the error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - break; - } - } - else - { - /* Update the error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief Unregister an I2C Callback - * I2C callback is redirected to the weak predefined callback - * @note The HAL_I2C_UnRegisterCallback() may be called before HAL_I2C_Init() in HAL_I2C_STATE_RESET - * to un-register callbacks for HAL_I2C_MSPINIT_CB_ID and HAL_I2C_MSPDEINIT_CB_ID. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param CallbackID ID of the callback to be unregistered - * This parameter can be one of the following values: - * This parameter can be one of the following values: - * @arg @ref HAL_I2C_MASTER_TX_COMPLETE_CB_ID Master Tx Transfer completed callback ID - * @arg @ref HAL_I2C_MASTER_RX_COMPLETE_CB_ID Master Rx Transfer completed callback ID - * @arg @ref HAL_I2C_SLAVE_TX_COMPLETE_CB_ID Slave Tx Transfer completed callback ID - * @arg @ref HAL_I2C_SLAVE_RX_COMPLETE_CB_ID Slave Rx Transfer completed callback ID - * @arg @ref HAL_I2C_LISTEN_COMPLETE_CB_ID Listen Complete callback ID - * @arg @ref HAL_I2C_MEM_TX_COMPLETE_CB_ID Memory Tx Transfer callback ID - * @arg @ref HAL_I2C_MEM_RX_COMPLETE_CB_ID Memory Rx Transfer completed callback ID - * @arg @ref HAL_I2C_ERROR_CB_ID Error callback ID - * @arg @ref HAL_I2C_ABORT_CB_ID Abort callback ID - * @arg @ref HAL_I2C_MSPINIT_CB_ID MspInit callback ID - * @arg @ref HAL_I2C_MSPDEINIT_CB_ID MspDeInit callback ID - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_UnRegisterCallback(I2C_HandleTypeDef *hi2c, HAL_I2C_CallbackIDTypeDef CallbackID) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (HAL_I2C_STATE_READY == hi2c->State) - { - switch (CallbackID) - { - case HAL_I2C_MASTER_TX_COMPLETE_CB_ID : - hi2c->MasterTxCpltCallback = HAL_I2C_MasterTxCpltCallback; /* Legacy weak MasterTxCpltCallback */ - break; - - case HAL_I2C_MASTER_RX_COMPLETE_CB_ID : - hi2c->MasterRxCpltCallback = HAL_I2C_MasterRxCpltCallback; /* Legacy weak MasterRxCpltCallback */ - break; - - case HAL_I2C_SLAVE_TX_COMPLETE_CB_ID : - hi2c->SlaveTxCpltCallback = HAL_I2C_SlaveTxCpltCallback; /* Legacy weak SlaveTxCpltCallback */ - break; - - case HAL_I2C_SLAVE_RX_COMPLETE_CB_ID : - hi2c->SlaveRxCpltCallback = HAL_I2C_SlaveRxCpltCallback; /* Legacy weak SlaveRxCpltCallback */ - break; - - case HAL_I2C_LISTEN_COMPLETE_CB_ID : - hi2c->ListenCpltCallback = HAL_I2C_ListenCpltCallback; /* Legacy weak ListenCpltCallback */ - break; - - case HAL_I2C_MEM_TX_COMPLETE_CB_ID : - hi2c->MemTxCpltCallback = HAL_I2C_MemTxCpltCallback; /* Legacy weak MemTxCpltCallback */ - break; - - case HAL_I2C_MEM_RX_COMPLETE_CB_ID : - hi2c->MemRxCpltCallback = HAL_I2C_MemRxCpltCallback; /* Legacy weak MemRxCpltCallback */ - break; - - case HAL_I2C_ERROR_CB_ID : - hi2c->ErrorCallback = HAL_I2C_ErrorCallback; /* Legacy weak ErrorCallback */ - break; - - case HAL_I2C_ABORT_CB_ID : - hi2c->AbortCpltCallback = HAL_I2C_AbortCpltCallback; /* Legacy weak AbortCpltCallback */ - break; - - case HAL_I2C_MSPINIT_CB_ID : - hi2c->MspInitCallback = HAL_I2C_MspInit; /* Legacy weak MspInit */ - break; - - case HAL_I2C_MSPDEINIT_CB_ID : - hi2c->MspDeInitCallback = HAL_I2C_MspDeInit; /* Legacy weak MspDeInit */ - break; - - default : - /* Update the error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - break; - } - } - else if (HAL_I2C_STATE_RESET == hi2c->State) - { - switch (CallbackID) - { - case HAL_I2C_MSPINIT_CB_ID : - hi2c->MspInitCallback = HAL_I2C_MspInit; /* Legacy weak MspInit */ - break; - - case HAL_I2C_MSPDEINIT_CB_ID : - hi2c->MspDeInitCallback = HAL_I2C_MspDeInit; /* Legacy weak MspDeInit */ - break; - - default : - /* Update the error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - break; - } - } - else - { - /* Update the error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief Register the Slave Address Match I2C Callback - * To be used instead of the weak HAL_I2C_AddrCallback() predefined callback - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param pCallback pointer to the Address Match Callback function - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_RegisterAddrCallback(I2C_HandleTypeDef *hi2c, pI2C_AddrCallbackTypeDef pCallback) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (pCallback == NULL) - { - /* Update the error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; - - return HAL_ERROR; - } - - if (HAL_I2C_STATE_READY == hi2c->State) - { - hi2c->AddrCallback = pCallback; - } - else - { - /* Update the error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief UnRegister the Slave Address Match I2C Callback - * Info Ready I2C Callback is redirected to the weak HAL_I2C_AddrCallback() predefined callback - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_UnRegisterAddrCallback(I2C_HandleTypeDef *hi2c) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (HAL_I2C_STATE_READY == hi2c->State) - { - hi2c->AddrCallback = HAL_I2C_AddrCallback; /* Legacy weak AddrCallback */ - } - else - { - /* Update the error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; - - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ - -/** - * @} - */ - -/** @defgroup I2C_Exported_Functions_Group2 Input and Output operation functions - * @brief Data transfers functions - * -@verbatim - =============================================================================== - ##### IO operation functions ##### - =============================================================================== - [..] - This subsection provides a set of functions allowing to manage the I2C data - transfers. - - (#) There are two modes of transfer: - (++) Blocking mode : The communication is performed in the polling mode. - The status of all data processing is returned by the same function - after finishing transfer. - (++) No-Blocking mode : The communication is performed using Interrupts - or DMA. These functions return the status of the transfer startup. - The end of the data processing will be indicated through the - dedicated I2C IRQ when using Interrupt mode or the DMA IRQ when - using DMA mode. - - (#) Blocking mode functions are : - (++) HAL_I2C_Master_Transmit() - (++) HAL_I2C_Master_Receive() - (++) HAL_I2C_Slave_Transmit() - (++) HAL_I2C_Slave_Receive() - (++) HAL_I2C_Mem_Write() - (++) HAL_I2C_Mem_Read() - (++) HAL_I2C_IsDeviceReady() - - (#) No-Blocking mode functions with Interrupt are : - (++) HAL_I2C_Master_Transmit_IT() - (++) HAL_I2C_Master_Receive_IT() - (++) HAL_I2C_Slave_Transmit_IT() - (++) HAL_I2C_Slave_Receive_IT() - (++) HAL_I2C_Mem_Write_IT() - (++) HAL_I2C_Mem_Read_IT() - (++) HAL_I2C_Master_Seq_Transmit_IT() - (++) HAL_I2C_Master_Seq_Receive_IT() - (++) HAL_I2C_Slave_Seq_Transmit_IT() - (++) HAL_I2C_Slave_Seq_Receive_IT() - (++) HAL_I2C_EnableListen_IT() - (++) HAL_I2C_DisableListen_IT() - (++) HAL_I2C_Master_Abort_IT() - - (#) No-Blocking mode functions with DMA are : - (++) HAL_I2C_Master_Transmit_DMA() - (++) HAL_I2C_Master_Receive_DMA() - (++) HAL_I2C_Slave_Transmit_DMA() - (++) HAL_I2C_Slave_Receive_DMA() - (++) HAL_I2C_Mem_Write_DMA() - (++) HAL_I2C_Mem_Read_DMA() - (++) HAL_I2C_Master_Seq_Transmit_DMA() - (++) HAL_I2C_Master_Seq_Receive_DMA() - (++) HAL_I2C_Slave_Seq_Transmit_DMA() - (++) HAL_I2C_Slave_Seq_Receive_DMA() - - (#) A set of Transfer Complete Callbacks are provided in non Blocking mode: - (++) HAL_I2C_MasterTxCpltCallback() - (++) HAL_I2C_MasterRxCpltCallback() - (++) HAL_I2C_SlaveTxCpltCallback() - (++) HAL_I2C_SlaveRxCpltCallback() - (++) HAL_I2C_MemTxCpltCallback() - (++) HAL_I2C_MemRxCpltCallback() - (++) HAL_I2C_AddrCallback() - (++) HAL_I2C_ListenCpltCallback() - (++) HAL_I2C_ErrorCallback() - (++) HAL_I2C_AbortCpltCallback() - -@endverbatim - * @{ - */ - -/** - * @brief Transmits in master mode an amount of data in blocking mode. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param DevAddress Target device address: The device 7 bits address value - * in datasheet must be shifted to the left before calling the interface - * @param pData Pointer to data buffer - * @param Size Amount of data to be sent - * @param Timeout Timeout duration - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_Master_Transmit(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, - uint16_t Size, uint32_t Timeout) -{ - uint32_t tickstart; - - if (hi2c->State == HAL_I2C_STATE_READY) - { - /* Process Locked */ - __HAL_LOCK(hi2c); - - /* Init tickstart for timeout management*/ - tickstart = HAL_GetTick(); - - if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY, tickstart) != HAL_OK) - { - return HAL_ERROR; - } - - hi2c->State = HAL_I2C_STATE_BUSY_TX; - hi2c->Mode = HAL_I2C_MODE_MASTER; - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - - /* Prepare transfer parameters */ - hi2c->pBuffPtr = pData; - hi2c->XferCount = Size; - hi2c->XferISR = NULL; - - /* Send Slave Address */ - /* Set NBYTES to write and reload if hi2c->XferCount > MAX_NBYTE_SIZE and generate RESTART */ - if (hi2c->XferCount > MAX_NBYTE_SIZE) - { - hi2c->XferSize = MAX_NBYTE_SIZE; - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_RELOAD_MODE, - I2C_GENERATE_START_WRITE); - } - else - { - hi2c->XferSize = hi2c->XferCount; - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_AUTOEND_MODE, - I2C_GENERATE_START_WRITE); - } - - while (hi2c->XferCount > 0U) - { - /* Wait until TXIS flag is set */ - if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - { - return HAL_ERROR; - } - /* Write data to TXDR */ - hi2c->Instance->TXDR = *hi2c->pBuffPtr; - - /* Increment Buffer pointer */ - hi2c->pBuffPtr++; - - hi2c->XferCount--; - hi2c->XferSize--; - - if ((hi2c->XferCount != 0U) && (hi2c->XferSize == 0U)) - { - /* Wait until TCR flag is set */ - if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_TCR, RESET, Timeout, tickstart) != HAL_OK) - { - return HAL_ERROR; - } - - if (hi2c->XferCount > MAX_NBYTE_SIZE) - { - hi2c->XferSize = MAX_NBYTE_SIZE; - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_RELOAD_MODE, - I2C_NO_STARTSTOP); - } - else - { - hi2c->XferSize = hi2c->XferCount; - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_AUTOEND_MODE, - I2C_NO_STARTSTOP); - } - } - } - - /* No need to Check TC flag, with AUTOEND mode the stop is automatically generated */ - /* Wait until STOPF flag is set */ - if (I2C_WaitOnSTOPFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - { - return HAL_ERROR; - } - - /* Clear STOP Flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); - - /* Clear Configuration Register 2 */ - I2C_RESET_CR2(hi2c); - - hi2c->State = HAL_I2C_STATE_READY; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Receives in master mode an amount of data in blocking mode. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param DevAddress Target device address: The device 7 bits address value - * in datasheet must be shifted to the left before calling the interface - * @param pData Pointer to data buffer - * @param Size Amount of data to be sent - * @param Timeout Timeout duration - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_Master_Receive(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, - uint16_t Size, uint32_t Timeout) -{ - uint32_t tickstart; - - if (hi2c->State == HAL_I2C_STATE_READY) - { - /* Process Locked */ - __HAL_LOCK(hi2c); - - /* Init tickstart for timeout management*/ - tickstart = HAL_GetTick(); - - if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY, tickstart) != HAL_OK) - { - return HAL_ERROR; - } - - hi2c->State = HAL_I2C_STATE_BUSY_RX; - hi2c->Mode = HAL_I2C_MODE_MASTER; - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - - /* Prepare transfer parameters */ - hi2c->pBuffPtr = pData; - hi2c->XferCount = Size; - hi2c->XferISR = NULL; - - /* Send Slave Address */ - /* Set NBYTES to write and reload if hi2c->XferCount > MAX_NBYTE_SIZE and generate RESTART */ - if (hi2c->XferCount > MAX_NBYTE_SIZE) - { - hi2c->XferSize = MAX_NBYTE_SIZE; - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_RELOAD_MODE, - I2C_GENERATE_START_READ); - } - else - { - hi2c->XferSize = hi2c->XferCount; - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_AUTOEND_MODE, - I2C_GENERATE_START_READ); - } - - while (hi2c->XferCount > 0U) - { - /* Wait until RXNE flag is set */ - if (I2C_WaitOnRXNEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - { - return HAL_ERROR; - } - - /* Read data from RXDR */ - *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->RXDR; - - /* Increment Buffer pointer */ - hi2c->pBuffPtr++; - - hi2c->XferSize--; - hi2c->XferCount--; - - if ((hi2c->XferCount != 0U) && (hi2c->XferSize == 0U)) - { - /* Wait until TCR flag is set */ - if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_TCR, RESET, Timeout, tickstart) != HAL_OK) - { - return HAL_ERROR; - } - - if (hi2c->XferCount > MAX_NBYTE_SIZE) - { - hi2c->XferSize = MAX_NBYTE_SIZE; - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_RELOAD_MODE, - I2C_NO_STARTSTOP); - } - else - { - hi2c->XferSize = hi2c->XferCount; - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_AUTOEND_MODE, - I2C_NO_STARTSTOP); - } - } - } - - /* No need to Check TC flag, with AUTOEND mode the stop is automatically generated */ - /* Wait until STOPF flag is set */ - if (I2C_WaitOnSTOPFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - { - return HAL_ERROR; - } - - /* Clear STOP Flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); - - /* Clear Configuration Register 2 */ - I2C_RESET_CR2(hi2c); - - hi2c->State = HAL_I2C_STATE_READY; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Transmits in slave mode an amount of data in blocking mode. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param pData Pointer to data buffer - * @param Size Amount of data to be sent - * @param Timeout Timeout duration - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_Slave_Transmit(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, - uint32_t Timeout) -{ - uint32_t tickstart; - - if (hi2c->State == HAL_I2C_STATE_READY) - { - if ((pData == NULL) || (Size == 0U)) - { - hi2c->ErrorCode = HAL_I2C_ERROR_INVALID_PARAM; - return HAL_ERROR; - } - /* Process Locked */ - __HAL_LOCK(hi2c); - - /* Init tickstart for timeout management*/ - tickstart = HAL_GetTick(); - - hi2c->State = HAL_I2C_STATE_BUSY_TX; - hi2c->Mode = HAL_I2C_MODE_SLAVE; - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - - /* Prepare transfer parameters */ - hi2c->pBuffPtr = pData; - hi2c->XferCount = Size; - hi2c->XferISR = NULL; - - /* Enable Address Acknowledge */ - hi2c->Instance->CR2 &= ~I2C_CR2_NACK; - - /* Wait until ADDR flag is set */ - if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, RESET, Timeout, tickstart) != HAL_OK) - { - /* Disable Address Acknowledge */ - hi2c->Instance->CR2 |= I2C_CR2_NACK; - return HAL_ERROR; - } - - /* Preload TX data if no stretch enable */ - if (hi2c->Init.NoStretchMode == I2C_NOSTRETCH_ENABLE) - { - /* Preload TX register */ - /* Write data to TXDR */ - hi2c->Instance->TXDR = *hi2c->pBuffPtr; - - /* Increment Buffer pointer */ - hi2c->pBuffPtr++; - - hi2c->XferCount--; - } - - /* Clear ADDR flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_ADDR); - - /* If 10bit addressing mode is selected */ - if (hi2c->Init.AddressingMode == I2C_ADDRESSINGMODE_10BIT) - { - /* Wait until ADDR flag is set */ - if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, RESET, Timeout, tickstart) != HAL_OK) - { - /* Disable Address Acknowledge */ - hi2c->Instance->CR2 |= I2C_CR2_NACK; - return HAL_ERROR; - } - - /* Clear ADDR flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_ADDR); - } - - /* Wait until DIR flag is set Transmitter mode */ - if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_DIR, RESET, Timeout, tickstart) != HAL_OK) - { - /* Disable Address Acknowledge */ - hi2c->Instance->CR2 |= I2C_CR2_NACK; - return HAL_ERROR; - } - - while (hi2c->XferCount > 0U) - { - /* Wait until TXIS flag is set */ - if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - { - /* Disable Address Acknowledge */ - hi2c->Instance->CR2 |= I2C_CR2_NACK; - return HAL_ERROR; - } - - /* Write data to TXDR */ - hi2c->Instance->TXDR = *hi2c->pBuffPtr; - - /* Increment Buffer pointer */ - hi2c->pBuffPtr++; - - hi2c->XferCount--; - } - - /* Wait until AF flag is set */ - if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_AF, RESET, Timeout, tickstart) != HAL_OK) - { - /* Disable Address Acknowledge */ - hi2c->Instance->CR2 |= I2C_CR2_NACK; - return HAL_ERROR; - } - - /* Flush TX register */ - I2C_Flush_TXDR(hi2c); - - /* Clear AF flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); - - /* Wait until STOP flag is set */ - if (I2C_WaitOnSTOPFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - { - /* Disable Address Acknowledge */ - hi2c->Instance->CR2 |= I2C_CR2_NACK; - - return HAL_ERROR; - } - - /* Clear STOP flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); - - /* Wait until BUSY flag is reset */ - if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, Timeout, tickstart) != HAL_OK) - { - /* Disable Address Acknowledge */ - hi2c->Instance->CR2 |= I2C_CR2_NACK; - return HAL_ERROR; - } - - /* Disable Address Acknowledge */ - hi2c->Instance->CR2 |= I2C_CR2_NACK; - - hi2c->State = HAL_I2C_STATE_READY; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Receive in slave mode an amount of data in blocking mode - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param pData Pointer to data buffer - * @param Size Amount of data to be sent - * @param Timeout Timeout duration - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_Slave_Receive(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, - uint32_t Timeout) -{ - uint32_t tickstart; - - if (hi2c->State == HAL_I2C_STATE_READY) - { - if ((pData == NULL) || (Size == 0U)) - { - hi2c->ErrorCode = HAL_I2C_ERROR_INVALID_PARAM; - return HAL_ERROR; - } - /* Process Locked */ - __HAL_LOCK(hi2c); - - /* Init tickstart for timeout management*/ - tickstart = HAL_GetTick(); - - hi2c->State = HAL_I2C_STATE_BUSY_RX; - hi2c->Mode = HAL_I2C_MODE_SLAVE; - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - - /* Prepare transfer parameters */ - hi2c->pBuffPtr = pData; - hi2c->XferCount = Size; - hi2c->XferSize = hi2c->XferCount; - hi2c->XferISR = NULL; - - /* Enable Address Acknowledge */ - hi2c->Instance->CR2 &= ~I2C_CR2_NACK; - - /* Wait until ADDR flag is set */ - if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, RESET, Timeout, tickstart) != HAL_OK) - { - /* Disable Address Acknowledge */ - hi2c->Instance->CR2 |= I2C_CR2_NACK; - return HAL_ERROR; - } - - /* Clear ADDR flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_ADDR); - - /* Wait until DIR flag is reset Receiver mode */ - if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_DIR, SET, Timeout, tickstart) != HAL_OK) - { - /* Disable Address Acknowledge */ - hi2c->Instance->CR2 |= I2C_CR2_NACK; - return HAL_ERROR; - } - - while (hi2c->XferCount > 0U) - { - /* Wait until RXNE flag is set */ - if (I2C_WaitOnRXNEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - { - /* Disable Address Acknowledge */ - hi2c->Instance->CR2 |= I2C_CR2_NACK; - - /* Store Last receive data if any */ - if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_RXNE) == SET) - { - /* Read data from RXDR */ - *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->RXDR; - - /* Increment Buffer pointer */ - hi2c->pBuffPtr++; - - hi2c->XferCount--; - hi2c->XferSize--; - } - - return HAL_ERROR; - } - - /* Read data from RXDR */ - *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->RXDR; - - /* Increment Buffer pointer */ - hi2c->pBuffPtr++; - - hi2c->XferCount--; - hi2c->XferSize--; - } - - /* Wait until STOP flag is set */ - if (I2C_WaitOnSTOPFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - { - /* Disable Address Acknowledge */ - hi2c->Instance->CR2 |= I2C_CR2_NACK; - return HAL_ERROR; - } - - /* Clear STOP flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); - - /* Wait until BUSY flag is reset */ - if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, Timeout, tickstart) != HAL_OK) - { - /* Disable Address Acknowledge */ - hi2c->Instance->CR2 |= I2C_CR2_NACK; - return HAL_ERROR; - } - - /* Disable Address Acknowledge */ - hi2c->Instance->CR2 |= I2C_CR2_NACK; - - hi2c->State = HAL_I2C_STATE_READY; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Transmit in master mode an amount of data in non-blocking mode with Interrupt - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param DevAddress Target device address: The device 7 bits address value - * in datasheet must be shifted to the left before calling the interface - * @param pData Pointer to data buffer - * @param Size Amount of data to be sent - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_Master_Transmit_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, - uint16_t Size) -{ - uint32_t xfermode; - - if (hi2c->State == HAL_I2C_STATE_READY) - { - if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) == SET) - { - return HAL_BUSY; - } - - /* Process Locked */ - __HAL_LOCK(hi2c); - - hi2c->State = HAL_I2C_STATE_BUSY_TX; - hi2c->Mode = HAL_I2C_MODE_MASTER; - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - - /* Prepare transfer parameters */ - hi2c->pBuffPtr = pData; - hi2c->XferCount = Size; - hi2c->XferOptions = I2C_NO_OPTION_FRAME; - hi2c->XferISR = I2C_Master_ISR_IT; - - if (hi2c->XferCount > MAX_NBYTE_SIZE) - { - hi2c->XferSize = MAX_NBYTE_SIZE; - xfermode = I2C_RELOAD_MODE; - } - else - { - hi2c->XferSize = hi2c->XferCount; - xfermode = I2C_AUTOEND_MODE; - } - - /* Send Slave Address */ - /* Set NBYTES to write and reload if hi2c->XferCount > MAX_NBYTE_SIZE */ - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, xfermode, I2C_GENERATE_START_WRITE); - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Note : The I2C interrupts must be enabled after unlocking current process - to avoid the risk of I2C interrupt handle execution before current - process unlock */ - - /* Enable ERR, TC, STOP, NACK, TXI interrupt */ - /* possible to enable all of these */ - /* I2C_IT_ERRI | I2C_IT_TCI | I2C_IT_STOPI | I2C_IT_NACKI | - I2C_IT_ADDRI | I2C_IT_RXI | I2C_IT_TXI */ - I2C_Enable_IRQ(hi2c, I2C_XFER_TX_IT); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Receive in master mode an amount of data in non-blocking mode with Interrupt - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param DevAddress Target device address: The device 7 bits address value - * in datasheet must be shifted to the left before calling the interface - * @param pData Pointer to data buffer - * @param Size Amount of data to be sent - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_Master_Receive_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, - uint16_t Size) -{ - uint32_t xfermode; - - if (hi2c->State == HAL_I2C_STATE_READY) - { - if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) == SET) - { - return HAL_BUSY; - } - - /* Process Locked */ - __HAL_LOCK(hi2c); - - hi2c->State = HAL_I2C_STATE_BUSY_RX; - hi2c->Mode = HAL_I2C_MODE_MASTER; - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - - /* Prepare transfer parameters */ - hi2c->pBuffPtr = pData; - hi2c->XferCount = Size; - hi2c->XferOptions = I2C_NO_OPTION_FRAME; - hi2c->XferISR = I2C_Master_ISR_IT; - - if (hi2c->XferCount > MAX_NBYTE_SIZE) - { - hi2c->XferSize = MAX_NBYTE_SIZE; - xfermode = I2C_RELOAD_MODE; - } - else - { - hi2c->XferSize = hi2c->XferCount; - xfermode = I2C_AUTOEND_MODE; - } - - /* Send Slave Address */ - /* Set NBYTES to write and reload if hi2c->XferCount > MAX_NBYTE_SIZE */ - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, xfermode, I2C_GENERATE_START_READ); - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Note : The I2C interrupts must be enabled after unlocking current process - to avoid the risk of I2C interrupt handle execution before current - process unlock */ - - /* Enable ERR, TC, STOP, NACK, RXI interrupt */ - /* possible to enable all of these */ - /* I2C_IT_ERRI | I2C_IT_TCI | I2C_IT_STOPI | I2C_IT_NACKI | - I2C_IT_ADDRI | I2C_IT_RXI | I2C_IT_TXI */ - I2C_Enable_IRQ(hi2c, I2C_XFER_RX_IT); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Transmit in slave mode an amount of data in non-blocking mode with Interrupt - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param pData Pointer to data buffer - * @param Size Amount of data to be sent - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_Slave_Transmit_IT(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size) -{ - if (hi2c->State == HAL_I2C_STATE_READY) - { - /* Process Locked */ - __HAL_LOCK(hi2c); - - hi2c->State = HAL_I2C_STATE_BUSY_TX; - hi2c->Mode = HAL_I2C_MODE_SLAVE; - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - - /* Enable Address Acknowledge */ - hi2c->Instance->CR2 &= ~I2C_CR2_NACK; - - /* Prepare transfer parameters */ - hi2c->pBuffPtr = pData; - hi2c->XferCount = Size; - hi2c->XferSize = hi2c->XferCount; - hi2c->XferOptions = I2C_NO_OPTION_FRAME; - hi2c->XferISR = I2C_Slave_ISR_IT; - - /* Preload TX data if no stretch enable */ - if (hi2c->Init.NoStretchMode == I2C_NOSTRETCH_ENABLE) - { - /* Preload TX register */ - /* Write data to TXDR */ - hi2c->Instance->TXDR = *hi2c->pBuffPtr; - - /* Increment Buffer pointer */ - hi2c->pBuffPtr++; - - hi2c->XferCount--; - hi2c->XferSize--; - } - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Note : The I2C interrupts must be enabled after unlocking current process - to avoid the risk of I2C interrupt handle execution before current - process unlock */ - - /* Enable ERR, TC, STOP, NACK, TXI interrupt */ - /* possible to enable all of these */ - /* I2C_IT_ERRI | I2C_IT_TCI | I2C_IT_STOPI | I2C_IT_NACKI | - I2C_IT_ADDRI | I2C_IT_RXI | I2C_IT_TXI */ - I2C_Enable_IRQ(hi2c, I2C_XFER_TX_IT | I2C_XFER_LISTEN_IT); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Receive in slave mode an amount of data in non-blocking mode with Interrupt - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param pData Pointer to data buffer - * @param Size Amount of data to be sent - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_Slave_Receive_IT(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size) -{ - if (hi2c->State == HAL_I2C_STATE_READY) - { - /* Process Locked */ - __HAL_LOCK(hi2c); - - hi2c->State = HAL_I2C_STATE_BUSY_RX; - hi2c->Mode = HAL_I2C_MODE_SLAVE; - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - - /* Enable Address Acknowledge */ - hi2c->Instance->CR2 &= ~I2C_CR2_NACK; - - /* Prepare transfer parameters */ - hi2c->pBuffPtr = pData; - hi2c->XferCount = Size; - hi2c->XferSize = hi2c->XferCount; - hi2c->XferOptions = I2C_NO_OPTION_FRAME; - hi2c->XferISR = I2C_Slave_ISR_IT; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Note : The I2C interrupts must be enabled after unlocking current process - to avoid the risk of I2C interrupt handle execution before current - process unlock */ - - /* Enable ERR, TC, STOP, NACK, RXI interrupt */ - /* possible to enable all of these */ - /* I2C_IT_ERRI | I2C_IT_TCI | I2C_IT_STOPI | I2C_IT_NACKI | - I2C_IT_ADDRI | I2C_IT_RXI | I2C_IT_TXI */ - I2C_Enable_IRQ(hi2c, I2C_XFER_RX_IT | I2C_XFER_LISTEN_IT); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Transmit in master mode an amount of data in non-blocking mode with DMA - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param DevAddress Target device address: The device 7 bits address value - * in datasheet must be shifted to the left before calling the interface - * @param pData Pointer to data buffer - * @param Size Amount of data to be sent - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_Master_Transmit_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, - uint16_t Size) -{ - uint32_t xfermode; - HAL_StatusTypeDef dmaxferstatus; - - if (hi2c->State == HAL_I2C_STATE_READY) - { - if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) == SET) - { - return HAL_BUSY; - } - - /* Process Locked */ - __HAL_LOCK(hi2c); - - hi2c->State = HAL_I2C_STATE_BUSY_TX; - hi2c->Mode = HAL_I2C_MODE_MASTER; - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - - /* Prepare transfer parameters */ - hi2c->pBuffPtr = pData; - hi2c->XferCount = Size; - hi2c->XferOptions = I2C_NO_OPTION_FRAME; - hi2c->XferISR = I2C_Master_ISR_DMA; - - if (hi2c->XferCount > MAX_NBYTE_SIZE) - { - hi2c->XferSize = MAX_NBYTE_SIZE; - xfermode = I2C_RELOAD_MODE; - } - else - { - hi2c->XferSize = hi2c->XferCount; - xfermode = I2C_AUTOEND_MODE; - } - - if (hi2c->XferSize > 0U) - { - if (hi2c->hdmatx != NULL) - { - /* Set the I2C DMA transfer complete callback */ - hi2c->hdmatx->XferCpltCallback = I2C_DMAMasterTransmitCplt; - - /* Set the DMA error callback */ - hi2c->hdmatx->XferErrorCallback = I2C_DMAError; - - /* Set the unused DMA callbacks to NULL */ - hi2c->hdmatx->XferHalfCpltCallback = NULL; - hi2c->hdmatx->XferAbortCallback = NULL; - - /* Enable the DMA stream or channel depends on Instance */ - dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmatx, (uint32_t)pData, (uint32_t)&hi2c->Instance->TXDR, - hi2c->XferSize); - } - else - { - /* Update I2C state */ - hi2c->State = HAL_I2C_STATE_READY; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Update I2C error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_ERROR; - } - - if (dmaxferstatus == HAL_OK) - { - /* Send Slave Address */ - /* Set NBYTES to write and reload if hi2c->XferCount > MAX_NBYTE_SIZE and generate RESTART */ - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, xfermode, I2C_GENERATE_START_WRITE); - - /* Update XferCount value */ - hi2c->XferCount -= hi2c->XferSize; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Note : The I2C interrupts must be enabled after unlocking current process - to avoid the risk of I2C interrupt handle execution before current - process unlock */ - /* Enable ERR and NACK interrupts */ - I2C_Enable_IRQ(hi2c, I2C_XFER_ERROR_IT); - - /* Enable DMA Request */ - hi2c->Instance->CR1 |= I2C_CR1_TXDMAEN; - } - else - { - /* Update I2C state */ - hi2c->State = HAL_I2C_STATE_READY; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Update I2C error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_ERROR; - } - } - else - { - /* Update Transfer ISR function pointer */ - hi2c->XferISR = I2C_Master_ISR_IT; - - /* Send Slave Address */ - /* Set NBYTES to write and generate START condition */ - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_AUTOEND_MODE, - I2C_GENERATE_START_WRITE); - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Note : The I2C interrupts must be enabled after unlocking current process - to avoid the risk of I2C interrupt handle execution before current - process unlock */ - /* Enable ERR, TC, STOP, NACK, TXI interrupt */ - /* possible to enable all of these */ - /* I2C_IT_ERRI | I2C_IT_TCI | I2C_IT_STOPI | I2C_IT_NACKI | - I2C_IT_ADDRI | I2C_IT_RXI | I2C_IT_TXI */ - I2C_Enable_IRQ(hi2c, I2C_XFER_TX_IT); - } - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Receive in master mode an amount of data in non-blocking mode with DMA - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param DevAddress Target device address: The device 7 bits address value - * in datasheet must be shifted to the left before calling the interface - * @param pData Pointer to data buffer - * @param Size Amount of data to be sent - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_Master_Receive_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, - uint16_t Size) -{ - uint32_t xfermode; - HAL_StatusTypeDef dmaxferstatus; - - if (hi2c->State == HAL_I2C_STATE_READY) - { - if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) == SET) - { - return HAL_BUSY; - } - - /* Process Locked */ - __HAL_LOCK(hi2c); - - hi2c->State = HAL_I2C_STATE_BUSY_RX; - hi2c->Mode = HAL_I2C_MODE_MASTER; - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - - /* Prepare transfer parameters */ - hi2c->pBuffPtr = pData; - hi2c->XferCount = Size; - hi2c->XferOptions = I2C_NO_OPTION_FRAME; - hi2c->XferISR = I2C_Master_ISR_DMA; - - if (hi2c->XferCount > MAX_NBYTE_SIZE) - { - hi2c->XferSize = MAX_NBYTE_SIZE; - xfermode = I2C_RELOAD_MODE; - } - else - { - hi2c->XferSize = hi2c->XferCount; - xfermode = I2C_AUTOEND_MODE; - } - - if (hi2c->XferSize > 0U) - { - if (hi2c->hdmarx != NULL) - { - /* Set the I2C DMA transfer complete callback */ - hi2c->hdmarx->XferCpltCallback = I2C_DMAMasterReceiveCplt; - - /* Set the DMA error callback */ - hi2c->hdmarx->XferErrorCallback = I2C_DMAError; - - /* Set the unused DMA callbacks to NULL */ - hi2c->hdmarx->XferHalfCpltCallback = NULL; - hi2c->hdmarx->XferAbortCallback = NULL; - - /* Enable the DMA stream or channel depends on Instance */ - dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmarx, (uint32_t)&hi2c->Instance->RXDR, (uint32_t)pData, - hi2c->XferSize); - } - else - { - /* Update I2C state */ - hi2c->State = HAL_I2C_STATE_READY; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Update I2C error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_ERROR; - } - - if (dmaxferstatus == HAL_OK) - { - /* Send Slave Address */ - /* Set NBYTES to read and reload if hi2c->XferCount > MAX_NBYTE_SIZE and generate RESTART */ - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, xfermode, I2C_GENERATE_START_READ); - - /* Update XferCount value */ - hi2c->XferCount -= hi2c->XferSize; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Note : The I2C interrupts must be enabled after unlocking current process - to avoid the risk of I2C interrupt handle execution before current - process unlock */ - /* Enable ERR and NACK interrupts */ - I2C_Enable_IRQ(hi2c, I2C_XFER_ERROR_IT); - - /* Enable DMA Request */ - hi2c->Instance->CR1 |= I2C_CR1_RXDMAEN; - } - else - { - /* Update I2C state */ - hi2c->State = HAL_I2C_STATE_READY; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Update I2C error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_ERROR; - } - } - else - { - /* Update Transfer ISR function pointer */ - hi2c->XferISR = I2C_Master_ISR_IT; - - /* Send Slave Address */ - /* Set NBYTES to read and generate START condition */ - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_AUTOEND_MODE, - I2C_GENERATE_START_READ); - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Note : The I2C interrupts must be enabled after unlocking current process - to avoid the risk of I2C interrupt handle execution before current - process unlock */ - /* Enable ERR, TC, STOP, NACK, TXI interrupt */ - /* possible to enable all of these */ - /* I2C_IT_ERRI | I2C_IT_TCI | I2C_IT_STOPI | I2C_IT_NACKI | - I2C_IT_ADDRI | I2C_IT_RXI | I2C_IT_TXI */ - I2C_Enable_IRQ(hi2c, I2C_XFER_TX_IT); - } - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Transmit in slave mode an amount of data in non-blocking mode with DMA - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param pData Pointer to data buffer - * @param Size Amount of data to be sent - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_Slave_Transmit_DMA(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size) -{ - HAL_StatusTypeDef dmaxferstatus; - - if (hi2c->State == HAL_I2C_STATE_READY) - { - if ((pData == NULL) || (Size == 0U)) - { - hi2c->ErrorCode = HAL_I2C_ERROR_INVALID_PARAM; - return HAL_ERROR; - } - /* Process Locked */ - __HAL_LOCK(hi2c); - - hi2c->State = HAL_I2C_STATE_BUSY_TX; - hi2c->Mode = HAL_I2C_MODE_SLAVE; - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - - /* Prepare transfer parameters */ - hi2c->pBuffPtr = pData; - hi2c->XferCount = Size; - hi2c->XferSize = hi2c->XferCount; - hi2c->XferOptions = I2C_NO_OPTION_FRAME; - hi2c->XferISR = I2C_Slave_ISR_DMA; - - /* Preload TX data if no stretch enable */ - if (hi2c->Init.NoStretchMode == I2C_NOSTRETCH_ENABLE) - { - /* Preload TX register */ - /* Write data to TXDR */ - hi2c->Instance->TXDR = *hi2c->pBuffPtr; - - /* Increment Buffer pointer */ - hi2c->pBuffPtr++; - - hi2c->XferCount--; - hi2c->XferSize--; - } - - if (hi2c->XferCount != 0U) - { - if (hi2c->hdmatx != NULL) - { - /* Set the I2C DMA transfer complete callback */ - hi2c->hdmatx->XferCpltCallback = I2C_DMASlaveTransmitCplt; - - /* Set the DMA error callback */ - hi2c->hdmatx->XferErrorCallback = I2C_DMAError; - - /* Set the unused DMA callbacks to NULL */ - hi2c->hdmatx->XferHalfCpltCallback = NULL; - hi2c->hdmatx->XferAbortCallback = NULL; - - /* Enable the DMA stream or channel depends on Instance */ - dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmatx, - (uint32_t)hi2c->pBuffPtr, (uint32_t)&hi2c->Instance->TXDR, - hi2c->XferSize); - } - else - { - /* Update I2C state */ - hi2c->State = HAL_I2C_STATE_LISTEN; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Update I2C error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_ERROR; - } - - if (dmaxferstatus == HAL_OK) - { - /* Enable Address Acknowledge */ - hi2c->Instance->CR2 &= ~I2C_CR2_NACK; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Note : The I2C interrupts must be enabled after unlocking current process - to avoid the risk of I2C interrupt handle execution before current - process unlock */ - /* Enable ERR, STOP, NACK, ADDR interrupts */ - I2C_Enable_IRQ(hi2c, I2C_XFER_LISTEN_IT); - - /* Enable DMA Request */ - hi2c->Instance->CR1 |= I2C_CR1_TXDMAEN; - } - else - { - /* Update I2C state */ - hi2c->State = HAL_I2C_STATE_LISTEN; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Update I2C error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_ERROR; - } - } - else - { - /* Enable Address Acknowledge */ - hi2c->Instance->CR2 &= ~I2C_CR2_NACK; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Note : The I2C interrupts must be enabled after unlocking current process - to avoid the risk of I2C interrupt handle execution before current - process unlock */ - /* Enable ERR, STOP, NACK, ADDR interrupts */ - I2C_Enable_IRQ(hi2c, I2C_XFER_LISTEN_IT); - } - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Receive in slave mode an amount of data in non-blocking mode with DMA - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param pData Pointer to data buffer - * @param Size Amount of data to be sent - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_Slave_Receive_DMA(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size) -{ - HAL_StatusTypeDef dmaxferstatus; - - if (hi2c->State == HAL_I2C_STATE_READY) - { - if ((pData == NULL) || (Size == 0U)) - { - hi2c->ErrorCode = HAL_I2C_ERROR_INVALID_PARAM; - return HAL_ERROR; - } - /* Process Locked */ - __HAL_LOCK(hi2c); - - hi2c->State = HAL_I2C_STATE_BUSY_RX; - hi2c->Mode = HAL_I2C_MODE_SLAVE; - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - - /* Prepare transfer parameters */ - hi2c->pBuffPtr = pData; - hi2c->XferCount = Size; - hi2c->XferSize = hi2c->XferCount; - hi2c->XferOptions = I2C_NO_OPTION_FRAME; - hi2c->XferISR = I2C_Slave_ISR_DMA; - - if (hi2c->hdmarx != NULL) - { - /* Set the I2C DMA transfer complete callback */ - hi2c->hdmarx->XferCpltCallback = I2C_DMASlaveReceiveCplt; - - /* Set the DMA error callback */ - hi2c->hdmarx->XferErrorCallback = I2C_DMAError; - - /* Set the unused DMA callbacks to NULL */ - hi2c->hdmarx->XferHalfCpltCallback = NULL; - hi2c->hdmarx->XferAbortCallback = NULL; - - /* Enable the DMA stream or channel depends on Instance */ - dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmarx, (uint32_t)&hi2c->Instance->RXDR, (uint32_t)pData, - hi2c->XferSize); - } - else - { - /* Update I2C state */ - hi2c->State = HAL_I2C_STATE_LISTEN; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Update I2C error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_ERROR; - } - - if (dmaxferstatus == HAL_OK) - { - /* Enable Address Acknowledge */ - hi2c->Instance->CR2 &= ~I2C_CR2_NACK; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Note : The I2C interrupts must be enabled after unlocking current process - to avoid the risk of I2C interrupt handle execution before current - process unlock */ - /* Enable ERR, STOP, NACK, ADDR interrupts */ - I2C_Enable_IRQ(hi2c, I2C_XFER_LISTEN_IT); - - /* Enable DMA Request */ - hi2c->Instance->CR1 |= I2C_CR1_RXDMAEN; - } - else - { - /* Update I2C state */ - hi2c->State = HAL_I2C_STATE_LISTEN; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Update I2C error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_ERROR; - } - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} -/** - * @brief Write an amount of data in blocking mode to a specific memory address - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param DevAddress Target device address: The device 7 bits address value - * in datasheet must be shifted to the left before calling the interface - * @param MemAddress Internal memory address - * @param MemAddSize Size of internal memory address - * @param pData Pointer to data buffer - * @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) -{ - uint32_t tickstart; - - /* Check the parameters */ - assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); - - if (hi2c->State == HAL_I2C_STATE_READY) - { - if ((pData == NULL) || (Size == 0U)) - { - hi2c->ErrorCode = HAL_I2C_ERROR_INVALID_PARAM; - return HAL_ERROR; - } - - /* Process Locked */ - __HAL_LOCK(hi2c); - - /* Init tickstart for timeout management*/ - tickstart = HAL_GetTick(); - - if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY, tickstart) != HAL_OK) - { - return HAL_ERROR; - } - - hi2c->State = HAL_I2C_STATE_BUSY_TX; - hi2c->Mode = HAL_I2C_MODE_MEM; - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - - /* Prepare transfer parameters */ - hi2c->pBuffPtr = pData; - hi2c->XferCount = Size; - hi2c->XferISR = NULL; - - /* Send Slave Address and Memory Address */ - if (I2C_RequestMemoryWrite(hi2c, DevAddress, MemAddress, MemAddSize, Timeout, tickstart) != HAL_OK) - { - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - return HAL_ERROR; - } - - /* Set NBYTES to write and reload if hi2c->XferCount > MAX_NBYTE_SIZE */ - if (hi2c->XferCount > MAX_NBYTE_SIZE) - { - hi2c->XferSize = MAX_NBYTE_SIZE; - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_RELOAD_MODE, I2C_NO_STARTSTOP); - } - else - { - hi2c->XferSize = hi2c->XferCount; - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_AUTOEND_MODE, I2C_NO_STARTSTOP); - } - - do - { - /* Wait until TXIS flag is set */ - if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - { - return HAL_ERROR; - } - - /* Write data to TXDR */ - hi2c->Instance->TXDR = *hi2c->pBuffPtr; - - /* Increment Buffer pointer */ - hi2c->pBuffPtr++; - - hi2c->XferCount--; - hi2c->XferSize--; - - if ((hi2c->XferCount != 0U) && (hi2c->XferSize == 0U)) - { - /* Wait until TCR flag is set */ - if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_TCR, RESET, Timeout, tickstart) != HAL_OK) - { - return HAL_ERROR; - } - - if (hi2c->XferCount > MAX_NBYTE_SIZE) - { - hi2c->XferSize = MAX_NBYTE_SIZE; - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_RELOAD_MODE, - I2C_NO_STARTSTOP); - } - else - { - hi2c->XferSize = hi2c->XferCount; - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_AUTOEND_MODE, - I2C_NO_STARTSTOP); - } - } - - } while (hi2c->XferCount > 0U); - - /* 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) - { - return HAL_ERROR; - } - - /* Clear STOP Flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); - - /* Clear Configuration Register 2 */ - I2C_RESET_CR2(hi2c); - - hi2c->State = HAL_I2C_STATE_READY; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Read an amount of data in blocking mode from a specific memory address - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param DevAddress Target device address: The device 7 bits address value - * in datasheet must be shifted to the left before calling the interface - * @param MemAddress Internal memory address - * @param MemAddSize Size of internal memory address - * @param pData Pointer to data buffer - * @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) -{ - uint32_t tickstart; - - /* Check the parameters */ - assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); - - if (hi2c->State == HAL_I2C_STATE_READY) - { - if ((pData == NULL) || (Size == 0U)) - { - hi2c->ErrorCode = HAL_I2C_ERROR_INVALID_PARAM; - return HAL_ERROR; - } - - /* Process Locked */ - __HAL_LOCK(hi2c); - - /* Init tickstart for timeout management*/ - tickstart = HAL_GetTick(); - - if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY, tickstart) != HAL_OK) - { - return HAL_ERROR; - } - - hi2c->State = HAL_I2C_STATE_BUSY_RX; - hi2c->Mode = HAL_I2C_MODE_MEM; - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - - /* Prepare transfer parameters */ - hi2c->pBuffPtr = pData; - hi2c->XferCount = Size; - hi2c->XferISR = NULL; - - /* Send Slave Address and Memory Address */ - if (I2C_RequestMemoryRead(hi2c, DevAddress, MemAddress, MemAddSize, Timeout, tickstart) != HAL_OK) - { - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - return HAL_ERROR; - } - - /* Send Slave Address */ - /* Set NBYTES to write and reload if hi2c->XferCount > MAX_NBYTE_SIZE and generate RESTART */ - if (hi2c->XferCount > MAX_NBYTE_SIZE) - { - hi2c->XferSize = MAX_NBYTE_SIZE; - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_RELOAD_MODE, - I2C_GENERATE_START_READ); - } - else - { - hi2c->XferSize = hi2c->XferCount; - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_AUTOEND_MODE, - I2C_GENERATE_START_READ); - } - - do - { - /* Wait until RXNE flag is set */ - if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_RXNE, RESET, Timeout, tickstart) != HAL_OK) - { - return HAL_ERROR; - } - - /* Read data from RXDR */ - *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->RXDR; - - /* Increment Buffer pointer */ - hi2c->pBuffPtr++; - - hi2c->XferSize--; - hi2c->XferCount--; - - if ((hi2c->XferCount != 0U) && (hi2c->XferSize == 0U)) - { - /* Wait until TCR flag is set */ - if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_TCR, RESET, Timeout, tickstart) != HAL_OK) - { - return HAL_ERROR; - } - - if (hi2c->XferCount > MAX_NBYTE_SIZE) - { - hi2c->XferSize = MAX_NBYTE_SIZE; - I2C_TransferConfig(hi2c, DevAddress, (uint8_t) hi2c->XferSize, I2C_RELOAD_MODE, - I2C_NO_STARTSTOP); - } - else - { - hi2c->XferSize = hi2c->XferCount; - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_AUTOEND_MODE, - I2C_NO_STARTSTOP); - } - } - } while (hi2c->XferCount > 0U); - - /* 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) - { - return HAL_ERROR; - } - - /* Clear STOP Flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); - - /* Clear Configuration Register 2 */ - I2C_RESET_CR2(hi2c); - - hi2c->State = HAL_I2C_STATE_READY; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} -/** - * @brief Write an amount of data in non-blocking mode with Interrupt to a specific memory address - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param DevAddress Target device address: The device 7 bits address value - * in datasheet must be shifted to the left before calling the interface - * @param MemAddress Internal memory address - * @param MemAddSize Size of internal memory address - * @param pData Pointer to data buffer - * @param Size Amount of data to be sent - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_Mem_Write_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, - uint16_t MemAddSize, uint8_t *pData, uint16_t Size) -{ - /* Check the parameters */ - assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); - - if (hi2c->State == HAL_I2C_STATE_READY) - { - if ((pData == NULL) || (Size == 0U)) - { - hi2c->ErrorCode = HAL_I2C_ERROR_INVALID_PARAM; - return HAL_ERROR; - } - - if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) == SET) - { - return HAL_BUSY; - } - - /* Process Locked */ - __HAL_LOCK(hi2c); - - hi2c->State = HAL_I2C_STATE_BUSY_TX; - hi2c->Mode = HAL_I2C_MODE_MEM; - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - - /* Prepare transfer parameters */ - hi2c->pBuffPtr = pData; - hi2c->XferCount = Size; - hi2c->XferOptions = I2C_NO_OPTION_FRAME; - hi2c->XferISR = I2C_Mem_ISR_IT; - hi2c->Devaddress = DevAddress; - - /* If Memory address size is 8Bit */ - if (MemAddSize == I2C_MEMADD_SIZE_8BIT) - { - /* Prefetch Memory Address */ - hi2c->Instance->TXDR = I2C_MEM_ADD_LSB(MemAddress); - - /* Reset Memaddress content */ - hi2c->Memaddress = 0xFFFFFFFFU; - } - /* If Memory address size is 16Bit */ - else - { - /* Prefetch Memory Address (MSB part, LSB will be manage through interrupt) */ - hi2c->Instance->TXDR = I2C_MEM_ADD_MSB(MemAddress); - - /* Prepare Memaddress buffer for LSB part */ - hi2c->Memaddress = I2C_MEM_ADD_LSB(MemAddress); - } - /* Send Slave Address and Memory Address */ - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)MemAddSize, I2C_RELOAD_MODE, I2C_GENERATE_START_WRITE); - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Note : The I2C interrupts must be enabled after unlocking current process - to avoid the risk of I2C interrupt handle execution before current - process unlock */ - - /* Enable ERR, TC, STOP, NACK, TXI interrupt */ - /* possible to enable all of these */ - /* I2C_IT_ERRI | I2C_IT_TCI | I2C_IT_STOPI | I2C_IT_NACKI | - I2C_IT_ADDRI | I2C_IT_RXI | I2C_IT_TXI */ - I2C_Enable_IRQ(hi2c, I2C_XFER_TX_IT); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Read an amount of data in non-blocking mode with Interrupt from a specific memory address - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param DevAddress Target device address: The device 7 bits address value - * in datasheet must be shifted to the left before calling the interface - * @param MemAddress Internal memory address - * @param MemAddSize Size of internal memory address - * @param pData Pointer to data buffer - * @param Size Amount of data to be sent - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_Mem_Read_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, - uint16_t MemAddSize, uint8_t *pData, uint16_t Size) -{ - /* Check the parameters */ - assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); - - if (hi2c->State == HAL_I2C_STATE_READY) - { - if ((pData == NULL) || (Size == 0U)) - { - hi2c->ErrorCode = HAL_I2C_ERROR_INVALID_PARAM; - return HAL_ERROR; - } - - if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) == SET) - { - return HAL_BUSY; - } - - /* Process Locked */ - __HAL_LOCK(hi2c); - - hi2c->State = HAL_I2C_STATE_BUSY_RX; - hi2c->Mode = HAL_I2C_MODE_MEM; - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - - /* Prepare transfer parameters */ - hi2c->pBuffPtr = pData; - hi2c->XferCount = Size; - hi2c->XferOptions = I2C_NO_OPTION_FRAME; - hi2c->XferISR = I2C_Mem_ISR_IT; - hi2c->Devaddress = DevAddress; - - /* If Memory address size is 8Bit */ - if (MemAddSize == I2C_MEMADD_SIZE_8BIT) - { - /* Prefetch Memory Address */ - hi2c->Instance->TXDR = I2C_MEM_ADD_LSB(MemAddress); - - /* Reset Memaddress content */ - hi2c->Memaddress = 0xFFFFFFFFU; - } - /* If Memory address size is 16Bit */ - else - { - /* Prefetch Memory Address (MSB part, LSB will be manage through interrupt) */ - hi2c->Instance->TXDR = I2C_MEM_ADD_MSB(MemAddress); - - /* Prepare Memaddress buffer for LSB part */ - hi2c->Memaddress = I2C_MEM_ADD_LSB(MemAddress); - } - /* Send Slave Address and Memory Address */ - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)MemAddSize, I2C_SOFTEND_MODE, I2C_GENERATE_START_WRITE); - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Note : The I2C interrupts must be enabled after unlocking current process - to avoid the risk of I2C interrupt handle execution before current - process unlock */ - - /* Enable ERR, TC, STOP, NACK, RXI interrupt */ - /* possible to enable all of these */ - /* I2C_IT_ERRI | I2C_IT_TCI | I2C_IT_STOPI | I2C_IT_NACKI | - I2C_IT_ADDRI | I2C_IT_RXI | I2C_IT_TXI */ - I2C_Enable_IRQ(hi2c, (I2C_XFER_TX_IT | I2C_XFER_RX_IT)); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} -/** - * @brief Write an amount of data in non-blocking mode with DMA to a specific memory address - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param DevAddress Target device address: The device 7 bits address value - * in datasheet must be shifted to the left before calling the interface - * @param MemAddress Internal memory address - * @param MemAddSize Size of internal memory address - * @param pData Pointer to data buffer - * @param Size Amount of data to be sent - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_Mem_Write_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, - uint16_t MemAddSize, uint8_t *pData, uint16_t Size) -{ - HAL_StatusTypeDef dmaxferstatus; - - /* Check the parameters */ - assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); - - if (hi2c->State == HAL_I2C_STATE_READY) - { - if ((pData == NULL) || (Size == 0U)) - { - hi2c->ErrorCode = HAL_I2C_ERROR_INVALID_PARAM; - return HAL_ERROR; - } - - if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) == SET) - { - return HAL_BUSY; - } - - /* Process Locked */ - __HAL_LOCK(hi2c); - - hi2c->State = HAL_I2C_STATE_BUSY_TX; - hi2c->Mode = HAL_I2C_MODE_MEM; - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - - /* Prepare transfer parameters */ - hi2c->pBuffPtr = pData; - hi2c->XferCount = Size; - hi2c->XferOptions = I2C_NO_OPTION_FRAME; - hi2c->XferISR = I2C_Mem_ISR_DMA; - hi2c->Devaddress = DevAddress; - - if (hi2c->XferCount > MAX_NBYTE_SIZE) - { - hi2c->XferSize = MAX_NBYTE_SIZE; - } - else - { - hi2c->XferSize = hi2c->XferCount; - } - - /* If Memory address size is 8Bit */ - if (MemAddSize == I2C_MEMADD_SIZE_8BIT) - { - /* Prefetch Memory Address */ - hi2c->Instance->TXDR = I2C_MEM_ADD_LSB(MemAddress); - - /* Reset Memaddress content */ - hi2c->Memaddress = 0xFFFFFFFFU; - } - /* If Memory address size is 16Bit */ - else - { - /* Prefetch Memory Address (MSB part, LSB will be manage through interrupt) */ - hi2c->Instance->TXDR = I2C_MEM_ADD_MSB(MemAddress); - - /* Prepare Memaddress buffer for LSB part */ - hi2c->Memaddress = I2C_MEM_ADD_LSB(MemAddress); - } - - if (hi2c->hdmatx != NULL) - { - /* Set the I2C DMA transfer complete callback */ - hi2c->hdmatx->XferCpltCallback = I2C_DMAMasterTransmitCplt; - - /* Set the DMA error callback */ - hi2c->hdmatx->XferErrorCallback = I2C_DMAError; - - /* Set the unused DMA callbacks to NULL */ - hi2c->hdmatx->XferHalfCpltCallback = NULL; - hi2c->hdmatx->XferAbortCallback = NULL; - - /* Enable the DMA stream or channel depends on Instance */ - dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmatx, (uint32_t)pData, (uint32_t)&hi2c->Instance->TXDR, - hi2c->XferSize); - } - else - { - /* Update I2C state */ - hi2c->State = HAL_I2C_STATE_READY; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Update I2C error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_ERROR; - } - - if (dmaxferstatus == HAL_OK) - { - /* Send Slave Address and Memory Address */ - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)MemAddSize, I2C_RELOAD_MODE, I2C_GENERATE_START_WRITE); - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Note : The I2C interrupts must be enabled after unlocking current process - to avoid the risk of I2C interrupt handle execution before current - process unlock */ - /* Enable ERR, TC, STOP, NACK, TXI interrupt */ - /* possible to enable all of these */ - /* I2C_IT_ERRI | I2C_IT_TCI | I2C_IT_STOPI | I2C_IT_NACKI | - I2C_IT_ADDRI | I2C_IT_RXI | I2C_IT_TXI */ - I2C_Enable_IRQ(hi2c, I2C_XFER_TX_IT); - } - else - { - /* Update I2C state */ - hi2c->State = HAL_I2C_STATE_READY; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Update I2C error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_ERROR; - } - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Reads an amount of data in non-blocking mode with DMA from a specific memory address. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param DevAddress Target device address: The device 7 bits address value - * in datasheet must be shifted to the left before calling the interface - * @param MemAddress Internal memory address - * @param MemAddSize Size of internal memory address - * @param pData Pointer to data buffer - * @param Size Amount of data to be read - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_Mem_Read_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, - uint16_t MemAddSize, uint8_t *pData, uint16_t Size) -{ - HAL_StatusTypeDef dmaxferstatus; - - /* Check the parameters */ - assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); - - if (hi2c->State == HAL_I2C_STATE_READY) - { - if ((pData == NULL) || (Size == 0U)) - { - hi2c->ErrorCode = HAL_I2C_ERROR_INVALID_PARAM; - return HAL_ERROR; - } - - if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) == SET) - { - return HAL_BUSY; - } - - /* Process Locked */ - __HAL_LOCK(hi2c); - - hi2c->State = HAL_I2C_STATE_BUSY_RX; - hi2c->Mode = HAL_I2C_MODE_MEM; - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - - /* Prepare transfer parameters */ - hi2c->pBuffPtr = pData; - hi2c->XferCount = Size; - hi2c->XferOptions = I2C_NO_OPTION_FRAME; - hi2c->XferISR = I2C_Mem_ISR_DMA; - hi2c->Devaddress = DevAddress; - - if (hi2c->XferCount > MAX_NBYTE_SIZE) - { - hi2c->XferSize = MAX_NBYTE_SIZE; - } - else - { - hi2c->XferSize = hi2c->XferCount; - } - - /* If Memory address size is 8Bit */ - if (MemAddSize == I2C_MEMADD_SIZE_8BIT) - { - /* Prefetch Memory Address */ - hi2c->Instance->TXDR = I2C_MEM_ADD_LSB(MemAddress); - - /* Reset Memaddress content */ - hi2c->Memaddress = 0xFFFFFFFFU; - } - /* If Memory address size is 16Bit */ - else - { - /* Prefetch Memory Address (MSB part, LSB will be manage through interrupt) */ - hi2c->Instance->TXDR = I2C_MEM_ADD_MSB(MemAddress); - - /* Prepare Memaddress buffer for LSB part */ - hi2c->Memaddress = I2C_MEM_ADD_LSB(MemAddress); - } - - if (hi2c->hdmarx != NULL) - { - /* Set the I2C DMA transfer complete callback */ - hi2c->hdmarx->XferCpltCallback = I2C_DMAMasterReceiveCplt; - - /* Set the DMA error callback */ - hi2c->hdmarx->XferErrorCallback = I2C_DMAError; - - /* Set the unused DMA callbacks to NULL */ - hi2c->hdmarx->XferHalfCpltCallback = NULL; - hi2c->hdmarx->XferAbortCallback = NULL; - - /* Enable the DMA stream or channel depends on Instance */ - dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmarx, (uint32_t)&hi2c->Instance->RXDR, (uint32_t)pData, - hi2c->XferSize); - } - else - { - /* Update I2C state */ - hi2c->State = HAL_I2C_STATE_READY; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Update I2C error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_ERROR; - } - - if (dmaxferstatus == HAL_OK) - { - /* Send Slave Address and Memory Address */ - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)MemAddSize, I2C_SOFTEND_MODE, I2C_GENERATE_START_WRITE); - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Note : The I2C interrupts must be enabled after unlocking current process - to avoid the risk of I2C interrupt handle execution before current - process unlock */ - /* Enable ERR, TC, STOP, NACK, TXI interrupt */ - /* possible to enable all of these */ - /* I2C_IT_ERRI | I2C_IT_TCI | I2C_IT_STOPI | I2C_IT_NACKI | - I2C_IT_ADDRI | I2C_IT_RXI | I2C_IT_TXI */ - I2C_Enable_IRQ(hi2c, I2C_XFER_TX_IT); - } - else - { - /* Update I2C state */ - hi2c->State = HAL_I2C_STATE_READY; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Update I2C error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_ERROR; - } - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Checks if target device is ready for communication. - * @note This function is used with Memory devices - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param DevAddress Target device address: The device 7 bits address value - * in datasheet must be shifted to the left before calling the interface - * @param Trials Number of trials - * @param Timeout Timeout duration - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_IsDeviceReady(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint32_t Trials, - uint32_t Timeout) -{ - uint32_t tickstart; - - __IO uint32_t I2C_Trials = 0UL; - - FlagStatus tmp1; - FlagStatus tmp2; - - if (hi2c->State == HAL_I2C_STATE_READY) - { - if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) == SET) - { - return HAL_BUSY; - } - - /* Process Locked */ - __HAL_LOCK(hi2c); - - hi2c->State = HAL_I2C_STATE_BUSY; - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - - do - { - /* Generate Start */ - hi2c->Instance->CR2 = I2C_GENERATE_START(hi2c->Init.AddressingMode, DevAddress); - - /* No need to Check TC flag, with AUTOEND mode the stop is automatically generated */ - /* Wait until STOPF flag is set or a NACK flag is set*/ - tickstart = HAL_GetTick(); - - tmp1 = __HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF); - tmp2 = __HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF); - - while ((tmp1 == RESET) && (tmp2 == RESET)) - { - if (Timeout != HAL_MAX_DELAY) - { - if (((HAL_GetTick() - tickstart) > Timeout) || (Timeout == 0U)) - { - /* Update I2C state */ - hi2c->State = HAL_I2C_STATE_READY; - - /* Update I2C error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_ERROR; - } - } - - tmp1 = __HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF); - tmp2 = __HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF); - } - - /* Check if the NACKF flag has not been set */ - if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF) == RESET) - { - /* Wait until STOPF flag is reset */ - if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_STOPF, RESET, Timeout, tickstart) != HAL_OK) - { - return HAL_ERROR; - } - - /* Clear STOP Flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); - - /* Device is ready */ - hi2c->State = HAL_I2C_STATE_READY; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_OK; - } - else - { - /* Wait until STOPF flag is reset */ - if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_STOPF, RESET, Timeout, tickstart) != HAL_OK) - { - return HAL_ERROR; - } - - /* Clear NACK Flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); - - /* Clear STOP Flag, auto generated with autoend*/ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); - } - - /* Check if the maximum allowed number of trials has been reached */ - if (I2C_Trials == Trials) - { - /* Generate Stop */ - hi2c->Instance->CR2 |= I2C_CR2_STOP; - - /* Wait until STOPF flag is reset */ - if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_STOPF, RESET, Timeout, tickstart) != HAL_OK) - { - return HAL_ERROR; - } - - /* Clear STOP Flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); - } - - /* Increment Trials */ - I2C_Trials++; - } while (I2C_Trials < Trials); - - /* Update I2C state */ - hi2c->State = HAL_I2C_STATE_READY; - - /* Update I2C error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_ERROR; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Sequential transmit in master I2C mode an amount of data in non-blocking mode with Interrupt. - * @note This interface allow to manage repeated start condition when a direction change during transfer - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param DevAddress Target device address: The device 7 bits address value - * in datasheet must be shifted to the left before calling the interface - * @param pData Pointer to data buffer - * @param Size Amount of data to be sent - * @param XferOptions Options of Transfer, value of @ref I2C_XFEROPTIONS - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_Master_Seq_Transmit_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, - uint16_t Size, uint32_t XferOptions) -{ - uint32_t xfermode; - uint32_t xferrequest = I2C_GENERATE_START_WRITE; - - /* Check the parameters */ - assert_param(IS_I2C_TRANSFER_OPTIONS_REQUEST(XferOptions)); - - if (hi2c->State == HAL_I2C_STATE_READY) - { - /* Process Locked */ - __HAL_LOCK(hi2c); - - hi2c->State = HAL_I2C_STATE_BUSY_TX; - hi2c->Mode = HAL_I2C_MODE_MASTER; - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - - /* Prepare transfer parameters */ - hi2c->pBuffPtr = pData; - hi2c->XferCount = Size; - hi2c->XferOptions = XferOptions; - hi2c->XferISR = I2C_Master_ISR_IT; - - /* If hi2c->XferCount > MAX_NBYTE_SIZE, use reload mode */ - if (hi2c->XferCount > MAX_NBYTE_SIZE) - { - hi2c->XferSize = MAX_NBYTE_SIZE; - xfermode = I2C_RELOAD_MODE; - } - else - { - hi2c->XferSize = hi2c->XferCount; - xfermode = hi2c->XferOptions; - } - - /* If transfer direction not change and there is no request to start another frame, - do not generate Restart Condition */ - /* Mean Previous state is same as current state */ - if ((hi2c->PreviousState == I2C_STATE_MASTER_BUSY_TX) && \ - (IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(XferOptions) == 0)) - { - xferrequest = I2C_NO_STARTSTOP; - } - else - { - /* Convert OTHER_xxx XferOptions if any */ - I2C_ConvertOtherXferOptions(hi2c); - - /* Update xfermode accordingly if no reload is necessary */ - if (hi2c->XferCount <= MAX_NBYTE_SIZE) - { - xfermode = hi2c->XferOptions; - } - } - - /* Send Slave Address and set NBYTES to write */ - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, xfermode, xferrequest); - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Note : The I2C interrupts must be enabled after unlocking current process - to avoid the risk of I2C interrupt handle execution before current - process unlock */ - /* Enable ERR, TC, STOP, NACK, TXI interrupt */ - /* possible to enable all of these */ - /* I2C_IT_ERRI | I2C_IT_TCI | I2C_IT_STOPI | I2C_IT_NACKI | - I2C_IT_ADDRI | I2C_IT_RXI | I2C_IT_TXI */ - I2C_Enable_IRQ(hi2c, I2C_XFER_TX_IT); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Sequential transmit in master I2C mode an amount of data in non-blocking mode with DMA. - * @note This interface allow to manage repeated start condition when a direction change during transfer - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param DevAddress Target device address: The device 7 bits address value - * in datasheet must be shifted to the left before calling the interface - * @param pData Pointer to data buffer - * @param Size Amount of data to be sent - * @param XferOptions Options of Transfer, value of @ref I2C_XFEROPTIONS - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_Master_Seq_Transmit_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, - uint16_t Size, uint32_t XferOptions) -{ - uint32_t xfermode; - uint32_t xferrequest = I2C_GENERATE_START_WRITE; - HAL_StatusTypeDef dmaxferstatus; - - /* Check the parameters */ - assert_param(IS_I2C_TRANSFER_OPTIONS_REQUEST(XferOptions)); - - if (hi2c->State == HAL_I2C_STATE_READY) - { - /* Process Locked */ - __HAL_LOCK(hi2c); - - hi2c->State = HAL_I2C_STATE_BUSY_TX; - hi2c->Mode = HAL_I2C_MODE_MASTER; - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - - /* Prepare transfer parameters */ - hi2c->pBuffPtr = pData; - hi2c->XferCount = Size; - hi2c->XferOptions = XferOptions; - hi2c->XferISR = I2C_Master_ISR_DMA; - - /* If hi2c->XferCount > MAX_NBYTE_SIZE, use reload mode */ - if (hi2c->XferCount > MAX_NBYTE_SIZE) - { - hi2c->XferSize = MAX_NBYTE_SIZE; - xfermode = I2C_RELOAD_MODE; - } - else - { - hi2c->XferSize = hi2c->XferCount; - xfermode = hi2c->XferOptions; - } - - /* If transfer direction not change and there is no request to start another frame, - do not generate Restart Condition */ - /* Mean Previous state is same as current state */ - if ((hi2c->PreviousState == I2C_STATE_MASTER_BUSY_TX) && \ - (IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(XferOptions) == 0)) - { - xferrequest = I2C_NO_STARTSTOP; - } - else - { - /* Convert OTHER_xxx XferOptions if any */ - I2C_ConvertOtherXferOptions(hi2c); - - /* Update xfermode accordingly if no reload is necessary */ - if (hi2c->XferCount <= MAX_NBYTE_SIZE) - { - xfermode = hi2c->XferOptions; - } - } - - if (hi2c->XferSize > 0U) - { - if (hi2c->hdmatx != NULL) - { - /* Set the I2C DMA transfer complete callback */ - hi2c->hdmatx->XferCpltCallback = I2C_DMAMasterTransmitCplt; - - /* Set the DMA error callback */ - hi2c->hdmatx->XferErrorCallback = I2C_DMAError; - - /* Set the unused DMA callbacks to NULL */ - hi2c->hdmatx->XferHalfCpltCallback = NULL; - hi2c->hdmatx->XferAbortCallback = NULL; - - /* Enable the DMA stream or channel depends on Instance */ - dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmatx, (uint32_t)pData, (uint32_t)&hi2c->Instance->TXDR, - hi2c->XferSize); - } - else - { - /* Update I2C state */ - hi2c->State = HAL_I2C_STATE_READY; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Update I2C error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_ERROR; - } - - if (dmaxferstatus == HAL_OK) - { - /* Send Slave Address and set NBYTES to write */ - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, xfermode, xferrequest); - - /* Update XferCount value */ - hi2c->XferCount -= hi2c->XferSize; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Note : The I2C interrupts must be enabled after unlocking current process - to avoid the risk of I2C interrupt handle execution before current - process unlock */ - /* Enable ERR and NACK interrupts */ - I2C_Enable_IRQ(hi2c, I2C_XFER_ERROR_IT); - - /* Enable DMA Request */ - hi2c->Instance->CR1 |= I2C_CR1_TXDMAEN; - } - else - { - /* Update I2C state */ - hi2c->State = HAL_I2C_STATE_READY; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Update I2C error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_ERROR; - } - } - else - { - /* Update Transfer ISR function pointer */ - hi2c->XferISR = I2C_Master_ISR_IT; - - /* Send Slave Address */ - /* Set NBYTES to write and generate START condition */ - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_AUTOEND_MODE, - I2C_GENERATE_START_WRITE); - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Note : The I2C interrupts must be enabled after unlocking current process - to avoid the risk of I2C interrupt handle execution before current - process unlock */ - /* Enable ERR, TC, STOP, NACK, TXI interrupt */ - /* possible to enable all of these */ - /* I2C_IT_ERRI | I2C_IT_TCI | I2C_IT_STOPI | I2C_IT_NACKI | - I2C_IT_ADDRI | I2C_IT_RXI | I2C_IT_TXI */ - I2C_Enable_IRQ(hi2c, I2C_XFER_TX_IT); - } - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Sequential receive in master I2C mode an amount of data in non-blocking mode with Interrupt - * @note This interface allow to manage repeated start condition when a direction change during transfer - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param DevAddress Target device address: The device 7 bits address value - * in datasheet must be shifted to the left before calling the interface - * @param pData Pointer to data buffer - * @param Size Amount of data to be sent - * @param XferOptions Options of Transfer, value of @ref I2C_XFEROPTIONS - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_Master_Seq_Receive_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, - uint16_t Size, uint32_t XferOptions) -{ - uint32_t xfermode; - uint32_t xferrequest = I2C_GENERATE_START_READ; - - /* Check the parameters */ - assert_param(IS_I2C_TRANSFER_OPTIONS_REQUEST(XferOptions)); - - if (hi2c->State == HAL_I2C_STATE_READY) - { - /* Process Locked */ - __HAL_LOCK(hi2c); - - hi2c->State = HAL_I2C_STATE_BUSY_RX; - hi2c->Mode = HAL_I2C_MODE_MASTER; - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - - /* Prepare transfer parameters */ - hi2c->pBuffPtr = pData; - hi2c->XferCount = Size; - hi2c->XferOptions = XferOptions; - hi2c->XferISR = I2C_Master_ISR_IT; - - /* If hi2c->XferCount > MAX_NBYTE_SIZE, use reload mode */ - if (hi2c->XferCount > MAX_NBYTE_SIZE) - { - hi2c->XferSize = MAX_NBYTE_SIZE; - xfermode = I2C_RELOAD_MODE; - } - else - { - hi2c->XferSize = hi2c->XferCount; - xfermode = hi2c->XferOptions; - } - - /* If transfer direction not change and there is no request to start another frame, - do not generate Restart Condition */ - /* Mean Previous state is same as current state */ - if ((hi2c->PreviousState == I2C_STATE_MASTER_BUSY_RX) && \ - (IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(XferOptions) == 0)) - { - xferrequest = I2C_NO_STARTSTOP; - } - else - { - /* Convert OTHER_xxx XferOptions if any */ - I2C_ConvertOtherXferOptions(hi2c); - - /* Update xfermode accordingly if no reload is necessary */ - if (hi2c->XferCount <= MAX_NBYTE_SIZE) - { - xfermode = hi2c->XferOptions; - } - } - - /* Send Slave Address and set NBYTES to read */ - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, xfermode, xferrequest); - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Note : The I2C interrupts must be enabled after unlocking current process - to avoid the risk of I2C interrupt handle execution before current - process unlock */ - I2C_Enable_IRQ(hi2c, I2C_XFER_RX_IT); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Sequential receive in master I2C mode an amount of data in non-blocking mode with DMA - * @note This interface allow to manage repeated start condition when a direction change during transfer - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param DevAddress Target device address: The device 7 bits address value - * in datasheet must be shifted to the left before calling the interface - * @param pData Pointer to data buffer - * @param Size Amount of data to be sent - * @param XferOptions Options of Transfer, value of @ref I2C_XFEROPTIONS - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_Master_Seq_Receive_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, - uint16_t Size, uint32_t XferOptions) -{ - uint32_t xfermode; - uint32_t xferrequest = I2C_GENERATE_START_READ; - HAL_StatusTypeDef dmaxferstatus; - - /* Check the parameters */ - assert_param(IS_I2C_TRANSFER_OPTIONS_REQUEST(XferOptions)); - - if (hi2c->State == HAL_I2C_STATE_READY) - { - /* Process Locked */ - __HAL_LOCK(hi2c); - - hi2c->State = HAL_I2C_STATE_BUSY_RX; - hi2c->Mode = HAL_I2C_MODE_MASTER; - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - - /* Prepare transfer parameters */ - hi2c->pBuffPtr = pData; - hi2c->XferCount = Size; - hi2c->XferOptions = XferOptions; - hi2c->XferISR = I2C_Master_ISR_DMA; - - /* If hi2c->XferCount > MAX_NBYTE_SIZE, use reload mode */ - if (hi2c->XferCount > MAX_NBYTE_SIZE) - { - hi2c->XferSize = MAX_NBYTE_SIZE; - xfermode = I2C_RELOAD_MODE; - } - else - { - hi2c->XferSize = hi2c->XferCount; - xfermode = hi2c->XferOptions; - } - - /* If transfer direction not change and there is no request to start another frame, - do not generate Restart Condition */ - /* Mean Previous state is same as current state */ - if ((hi2c->PreviousState == I2C_STATE_MASTER_BUSY_RX) && \ - (IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(XferOptions) == 0)) - { - xferrequest = I2C_NO_STARTSTOP; - } - else - { - /* Convert OTHER_xxx XferOptions if any */ - I2C_ConvertOtherXferOptions(hi2c); - - /* Update xfermode accordingly if no reload is necessary */ - if (hi2c->XferCount <= MAX_NBYTE_SIZE) - { - xfermode = hi2c->XferOptions; - } - } - - if (hi2c->XferSize > 0U) - { - if (hi2c->hdmarx != NULL) - { - /* Set the I2C DMA transfer complete callback */ - hi2c->hdmarx->XferCpltCallback = I2C_DMAMasterReceiveCplt; - - /* Set the DMA error callback */ - hi2c->hdmarx->XferErrorCallback = I2C_DMAError; - - /* Set the unused DMA callbacks to NULL */ - hi2c->hdmarx->XferHalfCpltCallback = NULL; - hi2c->hdmarx->XferAbortCallback = NULL; - - /* Enable the DMA stream or channel depends on Instance */ - dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmarx, (uint32_t)&hi2c->Instance->RXDR, (uint32_t)pData, - hi2c->XferSize); - } - else - { - /* Update I2C state */ - hi2c->State = HAL_I2C_STATE_READY; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Update I2C error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_ERROR; - } - - if (dmaxferstatus == HAL_OK) - { - /* Send Slave Address and set NBYTES to read */ - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, xfermode, xferrequest); - - /* Update XferCount value */ - hi2c->XferCount -= hi2c->XferSize; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Note : The I2C interrupts must be enabled after unlocking current process - to avoid the risk of I2C interrupt handle execution before current - process unlock */ - /* Enable ERR and NACK interrupts */ - I2C_Enable_IRQ(hi2c, I2C_XFER_ERROR_IT); - - /* Enable DMA Request */ - hi2c->Instance->CR1 |= I2C_CR1_RXDMAEN; - } - else - { - /* Update I2C state */ - hi2c->State = HAL_I2C_STATE_READY; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Update I2C error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_ERROR; - } - } - else - { - /* Update Transfer ISR function pointer */ - hi2c->XferISR = I2C_Master_ISR_IT; - - /* Send Slave Address */ - /* Set NBYTES to read and generate START condition */ - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_AUTOEND_MODE, - I2C_GENERATE_START_READ); - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Note : The I2C interrupts must be enabled after unlocking current process - to avoid the risk of I2C interrupt handle execution before current - process unlock */ - /* Enable ERR, TC, STOP, NACK, TXI interrupt */ - /* possible to enable all of these */ - /* I2C_IT_ERRI | I2C_IT_TCI | I2C_IT_STOPI | I2C_IT_NACKI | - I2C_IT_ADDRI | I2C_IT_RXI | I2C_IT_TXI */ - I2C_Enable_IRQ(hi2c, I2C_XFER_TX_IT); - } - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Sequential transmit in slave/device I2C mode an amount of data in non-blocking mode with Interrupt - * @note This interface allow to manage repeated start condition when a direction change during transfer - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param pData Pointer to data buffer - * @param Size Amount of data to be sent - * @param XferOptions Options of Transfer, value of @ref I2C_XFEROPTIONS - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_Slave_Seq_Transmit_IT(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, - uint32_t XferOptions) -{ - /* Declaration of tmp to prevent undefined behavior of volatile usage */ - FlagStatus tmp; - - /* Check the parameters */ - assert_param(IS_I2C_TRANSFER_OPTIONS_REQUEST(XferOptions)); - - if (((uint32_t)hi2c->State & (uint32_t)HAL_I2C_STATE_LISTEN) == (uint32_t)HAL_I2C_STATE_LISTEN) - { - if ((pData == NULL) || (Size == 0U)) - { - hi2c->ErrorCode = HAL_I2C_ERROR_INVALID_PARAM; - return HAL_ERROR; - } - - /* Disable Interrupts, to prevent preemption during treatment in case of multicall */ - I2C_Disable_IRQ(hi2c, I2C_XFER_LISTEN_IT | I2C_XFER_TX_IT); - - /* Process Locked */ - __HAL_LOCK(hi2c); - - /* I2C cannot manage full duplex exchange so disable previous IT enabled if any */ - /* and then toggle the HAL slave RX state to TX state */ - if (hi2c->State == HAL_I2C_STATE_BUSY_RX_LISTEN) - { - /* Disable associated Interrupts */ - I2C_Disable_IRQ(hi2c, I2C_XFER_RX_IT); - - /* Abort DMA Xfer if any */ - if ((hi2c->Instance->CR1 & I2C_CR1_RXDMAEN) == I2C_CR1_RXDMAEN) - { - hi2c->Instance->CR1 &= ~I2C_CR1_RXDMAEN; - - if (hi2c->hdmarx != NULL) - { - /* Set the I2C DMA Abort callback : - will lead to call HAL_I2C_ErrorCallback() at end of DMA abort procedure */ - hi2c->hdmarx->XferAbortCallback = I2C_DMAAbort; - - /* Abort DMA RX */ - if (HAL_DMA_Abort_IT(hi2c->hdmarx) != HAL_OK) - { - /* Call Directly XferAbortCallback function in case of error */ - hi2c->hdmarx->XferAbortCallback(hi2c->hdmarx); - } - } - } - } - - hi2c->State = HAL_I2C_STATE_BUSY_TX_LISTEN; - hi2c->Mode = HAL_I2C_MODE_SLAVE; - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - - /* Enable Address Acknowledge */ - hi2c->Instance->CR2 &= ~I2C_CR2_NACK; - - /* Prepare transfer parameters */ - hi2c->pBuffPtr = pData; - hi2c->XferCount = Size; - hi2c->XferSize = hi2c->XferCount; - hi2c->XferOptions = XferOptions; - hi2c->XferISR = I2C_Slave_ISR_IT; - - tmp = __HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_ADDR); - if ((I2C_GET_DIR(hi2c) == I2C_DIRECTION_RECEIVE) && (tmp != RESET)) - { - /* Clear ADDR flag after prepare the transfer parameters */ - /* This action will generate an acknowledge to the Master */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_ADDR); - } - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Note : The I2C interrupts must be enabled after unlocking current process - to avoid the risk of I2C interrupt handle execution before current - process unlock */ - /* REnable ADDR interrupt */ - I2C_Enable_IRQ(hi2c, I2C_XFER_TX_IT | I2C_XFER_LISTEN_IT); - - return HAL_OK; - } - else - { - return HAL_ERROR; - } -} - -/** - * @brief Sequential transmit in slave/device I2C mode an amount of data in non-blocking mode with DMA - * @note This interface allow to manage repeated start condition when a direction change during transfer - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param pData Pointer to data buffer - * @param Size Amount of data to be sent - * @param XferOptions Options of Transfer, value of @ref I2C_XFEROPTIONS - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_Slave_Seq_Transmit_DMA(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, - uint32_t XferOptions) -{ - /* Declaration of tmp to prevent undefined behavior of volatile usage */ - FlagStatus tmp; - HAL_StatusTypeDef dmaxferstatus; - - /* Check the parameters */ - assert_param(IS_I2C_TRANSFER_OPTIONS_REQUEST(XferOptions)); - - if (((uint32_t)hi2c->State & (uint32_t)HAL_I2C_STATE_LISTEN) == (uint32_t)HAL_I2C_STATE_LISTEN) - { - if ((pData == NULL) || (Size == 0U)) - { - hi2c->ErrorCode = HAL_I2C_ERROR_INVALID_PARAM; - return HAL_ERROR; - } - - /* Process Locked */ - __HAL_LOCK(hi2c); - - /* Disable Interrupts, to prevent preemption during treatment in case of multicall */ - I2C_Disable_IRQ(hi2c, I2C_XFER_LISTEN_IT | I2C_XFER_TX_IT); - - /* I2C cannot manage full duplex exchange so disable previous IT enabled if any */ - /* and then toggle the HAL slave RX state to TX state */ - if (hi2c->State == HAL_I2C_STATE_BUSY_RX_LISTEN) - { - /* Disable associated Interrupts */ - I2C_Disable_IRQ(hi2c, I2C_XFER_RX_IT); - - if ((hi2c->Instance->CR1 & I2C_CR1_RXDMAEN) == I2C_CR1_RXDMAEN) - { - /* Abort DMA Xfer if any */ - if (hi2c->hdmarx != NULL) - { - hi2c->Instance->CR1 &= ~I2C_CR1_RXDMAEN; - - /* Set the I2C DMA Abort callback : - will lead to call HAL_I2C_ErrorCallback() at end of DMA abort procedure */ - hi2c->hdmarx->XferAbortCallback = I2C_DMAAbort; - - /* Abort DMA RX */ - if (HAL_DMA_Abort_IT(hi2c->hdmarx) != HAL_OK) - { - /* Call Directly XferAbortCallback function in case of error */ - hi2c->hdmarx->XferAbortCallback(hi2c->hdmarx); - } - } - } - } - else if (hi2c->State == HAL_I2C_STATE_BUSY_TX_LISTEN) - { - if ((hi2c->Instance->CR1 & I2C_CR1_TXDMAEN) == I2C_CR1_TXDMAEN) - { - hi2c->Instance->CR1 &= ~I2C_CR1_TXDMAEN; - - /* Abort DMA Xfer if any */ - if (hi2c->hdmatx != NULL) - { - /* Set the I2C DMA Abort callback : - will lead to call HAL_I2C_ErrorCallback() at end of DMA abort procedure */ - hi2c->hdmatx->XferAbortCallback = I2C_DMAAbort; - - /* Abort DMA TX */ - if (HAL_DMA_Abort_IT(hi2c->hdmatx) != HAL_OK) - { - /* Call Directly XferAbortCallback function in case of error */ - hi2c->hdmatx->XferAbortCallback(hi2c->hdmatx); - } - } - } - } - else - { - /* Nothing to do */ - } - - hi2c->State = HAL_I2C_STATE_BUSY_TX_LISTEN; - hi2c->Mode = HAL_I2C_MODE_SLAVE; - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - - /* Enable Address Acknowledge */ - hi2c->Instance->CR2 &= ~I2C_CR2_NACK; - - /* Prepare transfer parameters */ - hi2c->pBuffPtr = pData; - hi2c->XferCount = Size; - hi2c->XferSize = hi2c->XferCount; - hi2c->XferOptions = XferOptions; - hi2c->XferISR = I2C_Slave_ISR_DMA; - - if (hi2c->hdmatx != NULL) - { - /* Set the I2C DMA transfer complete callback */ - hi2c->hdmatx->XferCpltCallback = I2C_DMASlaveTransmitCplt; - - /* Set the DMA error callback */ - hi2c->hdmatx->XferErrorCallback = I2C_DMAError; - - /* Set the unused DMA callbacks to NULL */ - hi2c->hdmatx->XferHalfCpltCallback = NULL; - hi2c->hdmatx->XferAbortCallback = NULL; - - /* Enable the DMA stream or channel depends on Instance */ - dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmatx, (uint32_t)pData, (uint32_t)&hi2c->Instance->TXDR, - hi2c->XferSize); - } - else - { - /* Update I2C state */ - hi2c->State = HAL_I2C_STATE_LISTEN; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Update I2C error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_ERROR; - } - - if (dmaxferstatus == HAL_OK) - { - /* Update XferCount value */ - hi2c->XferCount -= hi2c->XferSize; - - /* Reset XferSize */ - hi2c->XferSize = 0; - } - else - { - /* Update I2C state */ - hi2c->State = HAL_I2C_STATE_LISTEN; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Update I2C error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_ERROR; - } - - tmp = __HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_ADDR); - if ((I2C_GET_DIR(hi2c) == I2C_DIRECTION_RECEIVE) && (tmp != RESET)) - { - /* Clear ADDR flag after prepare the transfer parameters */ - /* This action will generate an acknowledge to the Master */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_ADDR); - } - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Enable DMA Request */ - hi2c->Instance->CR1 |= I2C_CR1_TXDMAEN; - - /* Note : The I2C interrupts must be enabled after unlocking current process - to avoid the risk of I2C interrupt handle execution before current - process unlock */ - /* Enable ERR, STOP, NACK, ADDR interrupts */ - I2C_Enable_IRQ(hi2c, I2C_XFER_LISTEN_IT); - - return HAL_OK; - } - else - { - return HAL_ERROR; - } -} - -/** - * @brief Sequential receive in slave/device I2C mode an amount of data in non-blocking mode with Interrupt - * @note This interface allow to manage repeated start condition when a direction change during transfer - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param pData Pointer to data buffer - * @param Size Amount of data to be sent - * @param XferOptions Options of Transfer, value of @ref I2C_XFEROPTIONS - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_Slave_Seq_Receive_IT(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, - uint32_t XferOptions) -{ - /* Declaration of tmp to prevent undefined behavior of volatile usage */ - FlagStatus tmp; - - /* Check the parameters */ - assert_param(IS_I2C_TRANSFER_OPTIONS_REQUEST(XferOptions)); - - if (((uint32_t)hi2c->State & (uint32_t)HAL_I2C_STATE_LISTEN) == (uint32_t)HAL_I2C_STATE_LISTEN) - { - if ((pData == NULL) || (Size == 0U)) - { - hi2c->ErrorCode = HAL_I2C_ERROR_INVALID_PARAM; - return HAL_ERROR; - } - - /* Disable Interrupts, to prevent preemption during treatment in case of multicall */ - I2C_Disable_IRQ(hi2c, I2C_XFER_LISTEN_IT | I2C_XFER_RX_IT); - - /* Process Locked */ - __HAL_LOCK(hi2c); - - /* I2C cannot manage full duplex exchange so disable previous IT enabled if any */ - /* and then toggle the HAL slave TX state to RX state */ - if (hi2c->State == HAL_I2C_STATE_BUSY_TX_LISTEN) - { - /* Disable associated Interrupts */ - I2C_Disable_IRQ(hi2c, I2C_XFER_TX_IT); - - if ((hi2c->Instance->CR1 & I2C_CR1_TXDMAEN) == I2C_CR1_TXDMAEN) - { - hi2c->Instance->CR1 &= ~I2C_CR1_TXDMAEN; - - /* Abort DMA Xfer if any */ - if (hi2c->hdmatx != NULL) - { - /* Set the I2C DMA Abort callback : - will lead to call HAL_I2C_ErrorCallback() at end of DMA abort procedure */ - hi2c->hdmatx->XferAbortCallback = I2C_DMAAbort; - - /* Abort DMA TX */ - if (HAL_DMA_Abort_IT(hi2c->hdmatx) != HAL_OK) - { - /* Call Directly XferAbortCallback function in case of error */ - hi2c->hdmatx->XferAbortCallback(hi2c->hdmatx); - } - } - } - } - - hi2c->State = HAL_I2C_STATE_BUSY_RX_LISTEN; - hi2c->Mode = HAL_I2C_MODE_SLAVE; - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - - /* Enable Address Acknowledge */ - hi2c->Instance->CR2 &= ~I2C_CR2_NACK; - - /* Prepare transfer parameters */ - hi2c->pBuffPtr = pData; - hi2c->XferCount = Size; - hi2c->XferSize = hi2c->XferCount; - hi2c->XferOptions = XferOptions; - hi2c->XferISR = I2C_Slave_ISR_IT; - - tmp = __HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_ADDR); - if ((I2C_GET_DIR(hi2c) == I2C_DIRECTION_TRANSMIT) && (tmp != RESET)) - { - /* Clear ADDR flag after prepare the transfer parameters */ - /* This action will generate an acknowledge to the Master */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_ADDR); - } - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Note : The I2C interrupts must be enabled after unlocking current process - to avoid the risk of I2C interrupt handle execution before current - process unlock */ - /* REnable ADDR interrupt */ - I2C_Enable_IRQ(hi2c, I2C_XFER_RX_IT | I2C_XFER_LISTEN_IT); - - return HAL_OK; - } - else - { - return HAL_ERROR; - } -} - -/** - * @brief Sequential receive in slave/device I2C mode an amount of data in non-blocking mode with DMA - * @note This interface allow to manage repeated start condition when a direction change during transfer - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param pData Pointer to data buffer - * @param Size Amount of data to be sent - * @param XferOptions Options of Transfer, value of @ref I2C_XFEROPTIONS - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_Slave_Seq_Receive_DMA(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, - uint32_t XferOptions) -{ - /* Declaration of tmp to prevent undefined behavior of volatile usage */ - FlagStatus tmp; - HAL_StatusTypeDef dmaxferstatus; - - /* Check the parameters */ - assert_param(IS_I2C_TRANSFER_OPTIONS_REQUEST(XferOptions)); - - if (((uint32_t)hi2c->State & (uint32_t)HAL_I2C_STATE_LISTEN) == (uint32_t)HAL_I2C_STATE_LISTEN) - { - if ((pData == NULL) || (Size == 0U)) - { - hi2c->ErrorCode = HAL_I2C_ERROR_INVALID_PARAM; - return HAL_ERROR; - } - - /* Disable Interrupts, to prevent preemption during treatment in case of multicall */ - I2C_Disable_IRQ(hi2c, I2C_XFER_LISTEN_IT | I2C_XFER_RX_IT); - - /* Process Locked */ - __HAL_LOCK(hi2c); - - /* I2C cannot manage full duplex exchange so disable previous IT enabled if any */ - /* and then toggle the HAL slave TX state to RX state */ - if (hi2c->State == HAL_I2C_STATE_BUSY_TX_LISTEN) - { - /* Disable associated Interrupts */ - I2C_Disable_IRQ(hi2c, I2C_XFER_TX_IT); - - if ((hi2c->Instance->CR1 & I2C_CR1_TXDMAEN) == I2C_CR1_TXDMAEN) - { - /* Abort DMA Xfer if any */ - if (hi2c->hdmatx != NULL) - { - hi2c->Instance->CR1 &= ~I2C_CR1_TXDMAEN; - - /* Set the I2C DMA Abort callback : - will lead to call HAL_I2C_ErrorCallback() at end of DMA abort procedure */ - hi2c->hdmatx->XferAbortCallback = I2C_DMAAbort; - - /* Abort DMA TX */ - if (HAL_DMA_Abort_IT(hi2c->hdmatx) != HAL_OK) - { - /* Call Directly XferAbortCallback function in case of error */ - hi2c->hdmatx->XferAbortCallback(hi2c->hdmatx); - } - } - } - } - else if (hi2c->State == HAL_I2C_STATE_BUSY_RX_LISTEN) - { - if ((hi2c->Instance->CR1 & I2C_CR1_RXDMAEN) == I2C_CR1_RXDMAEN) - { - hi2c->Instance->CR1 &= ~I2C_CR1_RXDMAEN; - - /* Abort DMA Xfer if any */ - if (hi2c->hdmarx != NULL) - { - /* Set the I2C DMA Abort callback : - will lead to call HAL_I2C_ErrorCallback() at end of DMA abort procedure */ - hi2c->hdmarx->XferAbortCallback = I2C_DMAAbort; - - /* Abort DMA RX */ - if (HAL_DMA_Abort_IT(hi2c->hdmarx) != HAL_OK) - { - /* Call Directly XferAbortCallback function in case of error */ - hi2c->hdmarx->XferAbortCallback(hi2c->hdmarx); - } - } - } - } - else - { - /* Nothing to do */ - } - - hi2c->State = HAL_I2C_STATE_BUSY_RX_LISTEN; - hi2c->Mode = HAL_I2C_MODE_SLAVE; - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - - /* Enable Address Acknowledge */ - hi2c->Instance->CR2 &= ~I2C_CR2_NACK; - - /* Prepare transfer parameters */ - hi2c->pBuffPtr = pData; - hi2c->XferCount = Size; - hi2c->XferSize = hi2c->XferCount; - hi2c->XferOptions = XferOptions; - hi2c->XferISR = I2C_Slave_ISR_DMA; - - if (hi2c->hdmarx != NULL) - { - /* Set the I2C DMA transfer complete callback */ - hi2c->hdmarx->XferCpltCallback = I2C_DMASlaveReceiveCplt; - - /* Set the DMA error callback */ - hi2c->hdmarx->XferErrorCallback = I2C_DMAError; - - /* Set the unused DMA callbacks to NULL */ - hi2c->hdmarx->XferHalfCpltCallback = NULL; - hi2c->hdmarx->XferAbortCallback = NULL; - - /* Enable the DMA stream or channel depends on Instance */ - dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmarx, (uint32_t)&hi2c->Instance->RXDR, - (uint32_t)pData, hi2c->XferSize); - } - else - { - /* Update I2C state */ - hi2c->State = HAL_I2C_STATE_LISTEN; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Update I2C error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_ERROR; - } - - if (dmaxferstatus == HAL_OK) - { - /* Update XferCount value */ - hi2c->XferCount -= hi2c->XferSize; - - /* Reset XferSize */ - hi2c->XferSize = 0; - } - else - { - /* Update I2C state */ - hi2c->State = HAL_I2C_STATE_LISTEN; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Update I2C error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_ERROR; - } - - tmp = __HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_ADDR); - if ((I2C_GET_DIR(hi2c) == I2C_DIRECTION_TRANSMIT) && (tmp != RESET)) - { - /* Clear ADDR flag after prepare the transfer parameters */ - /* This action will generate an acknowledge to the Master */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_ADDR); - } - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Enable DMA Request */ - hi2c->Instance->CR1 |= I2C_CR1_RXDMAEN; - - /* Note : The I2C interrupts must be enabled after unlocking current process - to avoid the risk of I2C interrupt handle execution before current - process unlock */ - /* REnable ADDR interrupt */ - I2C_Enable_IRQ(hi2c, I2C_XFER_RX_IT | I2C_XFER_LISTEN_IT); - - return HAL_OK; - } - else - { - return HAL_ERROR; - } -} - -/** - * @brief Enable the Address listen mode with Interrupt. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_EnableListen_IT(I2C_HandleTypeDef *hi2c) -{ - if (hi2c->State == HAL_I2C_STATE_READY) - { - hi2c->State = HAL_I2C_STATE_LISTEN; - hi2c->XferISR = I2C_Slave_ISR_IT; - - /* Enable the Address Match interrupt */ - I2C_Enable_IRQ(hi2c, I2C_XFER_LISTEN_IT); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Disable the Address listen mode with Interrupt. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_DisableListen_IT(I2C_HandleTypeDef *hi2c) -{ - /* Declaration of tmp to prevent undefined behavior of volatile usage */ - uint32_t tmp; - - /* Disable Address listen mode only if a transfer is not ongoing */ - if (hi2c->State == HAL_I2C_STATE_LISTEN) - { - tmp = (uint32_t)(hi2c->State) & I2C_STATE_MSK; - hi2c->PreviousState = tmp | (uint32_t)(hi2c->Mode); - hi2c->State = HAL_I2C_STATE_READY; - hi2c->Mode = HAL_I2C_MODE_NONE; - hi2c->XferISR = NULL; - - /* Disable the Address Match interrupt */ - I2C_Disable_IRQ(hi2c, I2C_XFER_LISTEN_IT); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Abort a master I2C IT or DMA process communication with Interrupt. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param DevAddress Target device address: The device 7 bits address value - * in datasheet must be shifted to the left before calling the interface - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2C_Master_Abort_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress) -{ - if (hi2c->Mode == HAL_I2C_MODE_MASTER) - { - /* Process Locked */ - __HAL_LOCK(hi2c); - - /* Disable Interrupts and Store Previous state */ - if (hi2c->State == HAL_I2C_STATE_BUSY_TX) - { - I2C_Disable_IRQ(hi2c, I2C_XFER_TX_IT); - hi2c->PreviousState = I2C_STATE_MASTER_BUSY_TX; - } - else if (hi2c->State == HAL_I2C_STATE_BUSY_RX) - { - I2C_Disable_IRQ(hi2c, I2C_XFER_RX_IT); - hi2c->PreviousState = I2C_STATE_MASTER_BUSY_RX; - } - else - { - /* Do nothing */ - } - - /* Set State at HAL_I2C_STATE_ABORT */ - hi2c->State = HAL_I2C_STATE_ABORT; - - /* Set NBYTES to 1 to generate a dummy read on I2C peripheral */ - /* Set AUTOEND mode, this will generate a NACK then STOP condition to abort the current transfer */ - I2C_TransferConfig(hi2c, DevAddress, 1, I2C_AUTOEND_MODE, I2C_GENERATE_STOP); - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Note : The I2C interrupts must be enabled after unlocking current process - to avoid the risk of I2C interrupt handle execution before current - process unlock */ - I2C_Enable_IRQ(hi2c, I2C_XFER_CPLT_IT); - - return HAL_OK; - } - else - { - /* Wrong usage of abort function */ - /* This function should be used only in case of abort monitored by master device */ - return HAL_ERROR; - } -} - -/** - * @} - */ - -/** @defgroup I2C_IRQ_Handler_and_Callbacks IRQ Handler and Callbacks - * @{ - */ - -/** - * @brief This function handles I2C event interrupt request. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @retval None - */ -void HAL_I2C_EV_IRQHandler(I2C_HandleTypeDef *hi2c) -{ - /* Get current IT Flags and IT sources value */ - uint32_t itflags = READ_REG(hi2c->Instance->ISR); - uint32_t itsources = READ_REG(hi2c->Instance->CR1); - - /* I2C events treatment -------------------------------------*/ - if (hi2c->XferISR != NULL) - { - hi2c->XferISR(hi2c, itflags, itsources); - } -} - -/** - * @brief This function handles I2C error interrupt request. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @retval None - */ -void HAL_I2C_ER_IRQHandler(I2C_HandleTypeDef *hi2c) -{ - uint32_t itflags = READ_REG(hi2c->Instance->ISR); - uint32_t itsources = READ_REG(hi2c->Instance->CR1); - uint32_t tmperror; - - /* I2C Bus error interrupt occurred ------------------------------------*/ - if ((I2C_CHECK_FLAG(itflags, I2C_FLAG_BERR) != RESET) && \ - (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_ERRI) != RESET)) - { - hi2c->ErrorCode |= HAL_I2C_ERROR_BERR; - - /* Clear BERR flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_BERR); - } - - /* I2C Over-Run/Under-Run interrupt occurred ----------------------------------------*/ - if ((I2C_CHECK_FLAG(itflags, I2C_FLAG_OVR) != RESET) && \ - (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_ERRI) != RESET)) - { - hi2c->ErrorCode |= HAL_I2C_ERROR_OVR; - - /* Clear OVR flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_OVR); - } - - /* I2C Arbitration Loss error interrupt occurred -------------------------------------*/ - if ((I2C_CHECK_FLAG(itflags, I2C_FLAG_ARLO) != RESET) && \ - (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_ERRI) != RESET)) - { - hi2c->ErrorCode |= HAL_I2C_ERROR_ARLO; - - /* Clear ARLO flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_ARLO); - } - - /* Store current volatile hi2c->ErrorCode, misra rule */ - tmperror = hi2c->ErrorCode; - - /* Call the Error Callback in case of Error detected */ - if ((tmperror & (HAL_I2C_ERROR_BERR | HAL_I2C_ERROR_OVR | HAL_I2C_ERROR_ARLO)) != HAL_I2C_ERROR_NONE) - { - I2C_ITError(hi2c, tmperror); - } -} - -/** - * @brief Master Tx Transfer completed callback. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @retval None - */ -__weak void HAL_I2C_MasterTxCpltCallback(I2C_HandleTypeDef *hi2c) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hi2c); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_I2C_MasterTxCpltCallback could be implemented in the user file - */ -} - -/** - * @brief Master Rx Transfer completed callback. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @retval None - */ -__weak void HAL_I2C_MasterRxCpltCallback(I2C_HandleTypeDef *hi2c) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hi2c); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_I2C_MasterRxCpltCallback could be implemented in the user file - */ -} - -/** @brief Slave Tx Transfer completed callback. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @retval None - */ -__weak void HAL_I2C_SlaveTxCpltCallback(I2C_HandleTypeDef *hi2c) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hi2c); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_I2C_SlaveTxCpltCallback could be implemented in the user file - */ -} - -/** - * @brief Slave Rx Transfer completed callback. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @retval None - */ -__weak void HAL_I2C_SlaveRxCpltCallback(I2C_HandleTypeDef *hi2c) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hi2c); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_I2C_SlaveRxCpltCallback could be implemented in the user file - */ -} - -/** - * @brief Slave Address Match callback. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param TransferDirection Master request Transfer Direction (Write/Read), value of @ref I2C_XFERDIRECTION - * @param AddrMatchCode Address Match Code - * @retval None - */ -__weak void HAL_I2C_AddrCallback(I2C_HandleTypeDef *hi2c, uint8_t TransferDirection, uint16_t AddrMatchCode) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hi2c); - UNUSED(TransferDirection); - UNUSED(AddrMatchCode); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_I2C_AddrCallback() could be implemented in the user file - */ -} - -/** - * @brief Listen Complete callback. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @retval None - */ -__weak void HAL_I2C_ListenCpltCallback(I2C_HandleTypeDef *hi2c) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hi2c); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_I2C_ListenCpltCallback() could be implemented in the user file - */ -} - -/** - * @brief Memory Tx Transfer completed callback. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @retval None - */ -__weak void HAL_I2C_MemTxCpltCallback(I2C_HandleTypeDef *hi2c) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hi2c); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_I2C_MemTxCpltCallback could be implemented in the user file - */ -} - -/** - * @brief Memory Rx Transfer completed callback. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @retval None - */ -__weak void HAL_I2C_MemRxCpltCallback(I2C_HandleTypeDef *hi2c) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hi2c); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_I2C_MemRxCpltCallback could be implemented in the user file - */ -} - -/** - * @brief I2C error callback. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @retval None - */ -__weak void HAL_I2C_ErrorCallback(I2C_HandleTypeDef *hi2c) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hi2c); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_I2C_ErrorCallback could be implemented in the user file - */ -} - -/** - * @brief I2C abort callback. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @retval None - */ -__weak void HAL_I2C_AbortCpltCallback(I2C_HandleTypeDef *hi2c) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hi2c); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_I2C_AbortCpltCallback could be implemented in the user file - */ -} - -/** - * @} - */ - -/** @defgroup I2C_Exported_Functions_Group3 Peripheral State, Mode and Error functions - * @brief Peripheral State, Mode and Error functions - * -@verbatim - =============================================================================== - ##### Peripheral State, Mode and Error functions ##### - =============================================================================== - [..] - This subsection permit to get in run-time the status of the peripheral - and the data flow. - -@endverbatim - * @{ - */ - -/** - * @brief Return the I2C handle state. - * @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) -{ - /* Return I2C handle state */ - return hi2c->State; -} - -/** - * @brief Returns the I2C Master, Slave, Memory or no mode. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for I2C module - * @retval HAL mode - */ -HAL_I2C_ModeTypeDef HAL_I2C_GetMode(I2C_HandleTypeDef *hi2c) -{ - return hi2c->Mode; -} - -/** - * @brief Return the I2C error code. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @retval I2C Error Code - */ -uint32_t HAL_I2C_GetError(I2C_HandleTypeDef *hi2c) -{ - return hi2c->ErrorCode; -} - -/** - * @} - */ - -/** - * @} - */ - -/** @addtogroup I2C_Private_Functions - * @{ - */ - -/** - * @brief Interrupt Sub-Routine which handle the Interrupt Flags Master Mode with Interrupt. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param ITFlags Interrupt flags to handle. - * @param ITSources Interrupt sources enabled. - * @retval HAL status - */ -static HAL_StatusTypeDef I2C_Master_ISR_IT(struct __I2C_HandleTypeDef *hi2c, uint32_t ITFlags, - uint32_t ITSources) -{ - uint16_t devaddress; - uint32_t tmpITFlags = ITFlags; - - /* Process Locked */ - __HAL_LOCK(hi2c); - - if ((I2C_CHECK_FLAG(tmpITFlags, I2C_FLAG_AF) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_NACKI) != RESET)) - { - /* Clear NACK Flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); - - /* Set corresponding Error Code */ - /* No need to generate STOP, it is automatically done */ - /* Error callback will be send during stop flag treatment */ - hi2c->ErrorCode |= HAL_I2C_ERROR_AF; - - /* Flush TX register */ - I2C_Flush_TXDR(hi2c); - } - else if ((I2C_CHECK_FLAG(tmpITFlags, I2C_FLAG_RXNE) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_RXI) != RESET)) - { - /* Remove RXNE flag on temporary variable as read done */ - tmpITFlags &= ~I2C_FLAG_RXNE; - - /* Read data from RXDR */ - *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->RXDR; - - /* Increment Buffer pointer */ - hi2c->pBuffPtr++; - - hi2c->XferSize--; - hi2c->XferCount--; - } - else if ((I2C_CHECK_FLAG(tmpITFlags, I2C_FLAG_TXIS) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_TXI) != RESET)) - { - /* Write data to TXDR */ - hi2c->Instance->TXDR = *hi2c->pBuffPtr; - - /* Increment Buffer pointer */ - hi2c->pBuffPtr++; - - hi2c->XferSize--; - hi2c->XferCount--; - } - else if ((I2C_CHECK_FLAG(tmpITFlags, I2C_FLAG_TCR) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_TCI) != RESET)) - { - if ((hi2c->XferCount != 0U) && (hi2c->XferSize == 0U)) - { - devaddress = (uint16_t)(hi2c->Instance->CR2 & I2C_CR2_SADD); - - if (hi2c->XferCount > MAX_NBYTE_SIZE) - { - hi2c->XferSize = MAX_NBYTE_SIZE; - I2C_TransferConfig(hi2c, devaddress, (uint8_t)hi2c->XferSize, I2C_RELOAD_MODE, I2C_NO_STARTSTOP); - } - else - { - hi2c->XferSize = hi2c->XferCount; - if (hi2c->XferOptions != I2C_NO_OPTION_FRAME) - { - I2C_TransferConfig(hi2c, devaddress, (uint8_t)hi2c->XferSize, - hi2c->XferOptions, I2C_NO_STARTSTOP); - } - else - { - I2C_TransferConfig(hi2c, devaddress, (uint8_t)hi2c->XferSize, - I2C_AUTOEND_MODE, I2C_NO_STARTSTOP); - } - } - } - else - { - /* Call TxCpltCallback() if no stop mode is set */ - if (I2C_GET_STOP_MODE(hi2c) != I2C_AUTOEND_MODE) - { - /* Call I2C Master Sequential complete process */ - I2C_ITMasterSeqCplt(hi2c); - } - else - { - /* Wrong size Status regarding TCR flag event */ - /* Call the corresponding callback to inform upper layer of End of Transfer */ - I2C_ITError(hi2c, HAL_I2C_ERROR_SIZE); - } - } - } - else if ((I2C_CHECK_FLAG(tmpITFlags, I2C_FLAG_TC) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_TCI) != RESET)) - { - if (hi2c->XferCount == 0U) - { - if (I2C_GET_STOP_MODE(hi2c) != I2C_AUTOEND_MODE) - { - /* Generate a stop condition in case of no transfer option */ - if (hi2c->XferOptions == I2C_NO_OPTION_FRAME) - { - /* Generate Stop */ - hi2c->Instance->CR2 |= I2C_CR2_STOP; - } - else - { - /* Call I2C Master Sequential complete process */ - I2C_ITMasterSeqCplt(hi2c); - } - } - } - else - { - /* Wrong size Status regarding TC flag event */ - /* Call the corresponding callback to inform upper layer of End of Transfer */ - I2C_ITError(hi2c, HAL_I2C_ERROR_SIZE); - } - } - else - { - /* Nothing to do */ - } - - if ((I2C_CHECK_FLAG(tmpITFlags, I2C_FLAG_STOPF) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_STOPI) != RESET)) - { - /* Call I2C Master complete process */ - I2C_ITMasterCplt(hi2c, tmpITFlags); - } - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_OK; -} - -/** - * @brief Interrupt Sub-Routine which handle the Interrupt Flags Memory Mode with Interrupt. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param ITFlags Interrupt flags to handle. - * @param ITSources Interrupt sources enabled. - * @retval HAL status - */ -static HAL_StatusTypeDef I2C_Mem_ISR_IT(struct __I2C_HandleTypeDef *hi2c, uint32_t ITFlags, - uint32_t ITSources) -{ - uint32_t direction = I2C_GENERATE_START_WRITE; - uint32_t tmpITFlags = ITFlags; - - /* Process Locked */ - __HAL_LOCK(hi2c); - - if ((I2C_CHECK_FLAG(tmpITFlags, I2C_FLAG_AF) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_NACKI) != RESET)) - { - /* Clear NACK Flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); - - /* Set corresponding Error Code */ - /* No need to generate STOP, it is automatically done */ - /* Error callback will be send during stop flag treatment */ - hi2c->ErrorCode |= HAL_I2C_ERROR_AF; - - /* Flush TX register */ - I2C_Flush_TXDR(hi2c); - } - else if ((I2C_CHECK_FLAG(tmpITFlags, I2C_FLAG_RXNE) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_RXI) != RESET)) - { - /* Remove RXNE flag on temporary variable as read done */ - tmpITFlags &= ~I2C_FLAG_RXNE; - - /* Read data from RXDR */ - *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->RXDR; - - /* Increment Buffer pointer */ - hi2c->pBuffPtr++; - - hi2c->XferSize--; - hi2c->XferCount--; - } - else if ((I2C_CHECK_FLAG(tmpITFlags, I2C_FLAG_TXIS) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_TXI) != RESET)) - { - if (hi2c->Memaddress == 0xFFFFFFFFU) - { - /* Write data to TXDR */ - hi2c->Instance->TXDR = *hi2c->pBuffPtr; - - /* Increment Buffer pointer */ - hi2c->pBuffPtr++; - - hi2c->XferSize--; - hi2c->XferCount--; - } - else - { - /* Write LSB part of Memory Address */ - hi2c->Instance->TXDR = hi2c->Memaddress; - - /* Reset Memaddress content */ - hi2c->Memaddress = 0xFFFFFFFFU; - } - } - else if ((I2C_CHECK_FLAG(tmpITFlags, I2C_FLAG_TCR) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_TCI) != RESET)) - { - if ((hi2c->XferCount != 0U) && (hi2c->XferSize == 0U)) - { - if (hi2c->XferCount > MAX_NBYTE_SIZE) - { - hi2c->XferSize = MAX_NBYTE_SIZE; - I2C_TransferConfig(hi2c, (uint16_t)hi2c->Devaddress, (uint8_t)hi2c->XferSize, - I2C_RELOAD_MODE, I2C_NO_STARTSTOP); - } - else - { - hi2c->XferSize = hi2c->XferCount; - I2C_TransferConfig(hi2c, (uint16_t)hi2c->Devaddress, (uint8_t)hi2c->XferSize, - I2C_AUTOEND_MODE, I2C_NO_STARTSTOP); - } - } - else - { - /* Wrong size Status regarding TCR flag event */ - /* Call the corresponding callback to inform upper layer of End of Transfer */ - I2C_ITError(hi2c, HAL_I2C_ERROR_SIZE); - } - } - else if ((I2C_CHECK_FLAG(tmpITFlags, I2C_FLAG_TC) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_TCI) != RESET)) - { - if (hi2c->State == HAL_I2C_STATE_BUSY_RX) - { - direction = I2C_GENERATE_START_READ; - } - - if (hi2c->XferCount > MAX_NBYTE_SIZE) - { - hi2c->XferSize = MAX_NBYTE_SIZE; - - /* Set NBYTES to write and reload if hi2c->XferCount > MAX_NBYTE_SIZE and generate RESTART */ - I2C_TransferConfig(hi2c, (uint16_t)hi2c->Devaddress, (uint8_t)hi2c->XferSize, - I2C_RELOAD_MODE, direction); - } - else - { - hi2c->XferSize = hi2c->XferCount; - - /* Set NBYTES to write and generate RESTART */ - I2C_TransferConfig(hi2c, (uint16_t)hi2c->Devaddress, (uint8_t)hi2c->XferSize, - I2C_AUTOEND_MODE, direction); - } - } - else - { - /* Nothing to do */ - } - - if ((I2C_CHECK_FLAG(tmpITFlags, I2C_FLAG_STOPF) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_STOPI) != RESET)) - { - /* Call I2C Master complete process */ - I2C_ITMasterCplt(hi2c, tmpITFlags); - } - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_OK; -} - -/** - * @brief Interrupt Sub-Routine which handle the Interrupt Flags Slave Mode with Interrupt. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param ITFlags Interrupt flags to handle. - * @param ITSources Interrupt sources enabled. - * @retval HAL status - */ -static HAL_StatusTypeDef I2C_Slave_ISR_IT(struct __I2C_HandleTypeDef *hi2c, uint32_t ITFlags, - uint32_t ITSources) -{ - uint32_t tmpoptions = hi2c->XferOptions; - uint32_t tmpITFlags = ITFlags; - - /* Process locked */ - __HAL_LOCK(hi2c); - - /* Check if STOPF is set */ - if ((I2C_CHECK_FLAG(tmpITFlags, I2C_FLAG_STOPF) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_STOPI) != RESET)) - { - /* Call I2C Slave complete process */ - I2C_ITSlaveCplt(hi2c, tmpITFlags); - } - - if ((I2C_CHECK_FLAG(tmpITFlags, I2C_FLAG_AF) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_NACKI) != RESET)) - { - /* Check that I2C transfer finished */ - /* if yes, normal use case, a NACK is sent by the MASTER when Transfer is finished */ - /* Mean XferCount == 0*/ - /* So clear Flag NACKF only */ - if (hi2c->XferCount == 0U) - { - if ((hi2c->State == HAL_I2C_STATE_LISTEN) && (tmpoptions == I2C_FIRST_AND_LAST_FRAME)) - /* Same action must be done for (tmpoptions == I2C_LAST_FRAME) which removed for - Warning[Pa134]: left and right operands are identical */ - { - /* Call I2C Listen complete process */ - I2C_ITListenCplt(hi2c, tmpITFlags); - } - else if ((hi2c->State == HAL_I2C_STATE_BUSY_TX_LISTEN) && (tmpoptions != I2C_NO_OPTION_FRAME)) - { - /* Clear NACK Flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); - - /* Flush TX register */ - I2C_Flush_TXDR(hi2c); - - /* Last Byte is Transmitted */ - /* Call I2C Slave Sequential complete process */ - I2C_ITSlaveSeqCplt(hi2c); - } - else - { - /* Clear NACK Flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); - } - } - else - { - /* if no, error use case, a Non-Acknowledge of last Data is generated by the MASTER*/ - /* Clear NACK Flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); - - /* Set ErrorCode corresponding to a Non-Acknowledge */ - hi2c->ErrorCode |= HAL_I2C_ERROR_AF; - - if ((tmpoptions == I2C_FIRST_FRAME) || (tmpoptions == I2C_NEXT_FRAME)) - { - /* Call the corresponding callback to inform upper layer of End of Transfer */ - I2C_ITError(hi2c, hi2c->ErrorCode); - } - } - } - else if ((I2C_CHECK_FLAG(tmpITFlags, I2C_FLAG_RXNE) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_RXI) != RESET)) - { - if (hi2c->XferCount > 0U) - { - /* Read data from RXDR */ - *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->RXDR; - - /* Increment Buffer pointer */ - hi2c->pBuffPtr++; - - hi2c->XferSize--; - hi2c->XferCount--; - } - - if ((hi2c->XferCount == 0U) && \ - (tmpoptions != I2C_NO_OPTION_FRAME)) - { - /* Call I2C Slave Sequential complete process */ - I2C_ITSlaveSeqCplt(hi2c); - } - } - else if ((I2C_CHECK_FLAG(tmpITFlags, I2C_FLAG_ADDR) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_ADDRI) != RESET)) - { - I2C_ITAddrCplt(hi2c, tmpITFlags); - } - else if ((I2C_CHECK_FLAG(tmpITFlags, I2C_FLAG_TXIS) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_TXI) != RESET)) - { - /* Write data to TXDR only if XferCount not reach "0" */ - /* A TXIS flag can be set, during STOP treatment */ - /* Check if all Data have already been sent */ - /* If it is the case, this last write in TXDR is not sent, correspond to a dummy TXIS event */ - if (hi2c->XferCount > 0U) - { - /* Write data to TXDR */ - hi2c->Instance->TXDR = *hi2c->pBuffPtr; - - /* Increment Buffer pointer */ - hi2c->pBuffPtr++; - - hi2c->XferCount--; - hi2c->XferSize--; - } - else - { - if ((tmpoptions == I2C_NEXT_FRAME) || (tmpoptions == I2C_FIRST_FRAME)) - { - /* Last Byte is Transmitted */ - /* Call I2C Slave Sequential complete process */ - I2C_ITSlaveSeqCplt(hi2c); - } - } - } - else - { - /* Nothing to do */ - } - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_OK; -} - -/** - * @brief Interrupt Sub-Routine which handle the Interrupt Flags Master Mode with DMA. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param ITFlags Interrupt flags to handle. - * @param ITSources Interrupt sources enabled. - * @retval HAL status - */ -static HAL_StatusTypeDef I2C_Master_ISR_DMA(struct __I2C_HandleTypeDef *hi2c, uint32_t ITFlags, - uint32_t ITSources) -{ - uint16_t devaddress; - uint32_t xfermode; - - /* Process Locked */ - __HAL_LOCK(hi2c); - - if ((I2C_CHECK_FLAG(ITFlags, I2C_FLAG_AF) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_NACKI) != RESET)) - { - /* Clear NACK Flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); - - /* Set corresponding Error Code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_AF; - - /* No need to generate STOP, it is automatically done */ - /* But enable STOP interrupt, to treat it */ - /* Error callback will be send during stop flag treatment */ - I2C_Enable_IRQ(hi2c, I2C_XFER_CPLT_IT); - - /* Flush TX register */ - I2C_Flush_TXDR(hi2c); - } - else if ((I2C_CHECK_FLAG(ITFlags, I2C_FLAG_TCR) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_TCI) != RESET)) - { - /* Disable TC interrupt */ - __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_TCI); - - if (hi2c->XferCount != 0U) - { - /* Recover Slave address */ - devaddress = (uint16_t)(hi2c->Instance->CR2 & I2C_CR2_SADD); - - /* Prepare the new XferSize to transfer */ - if (hi2c->XferCount > MAX_NBYTE_SIZE) - { - hi2c->XferSize = MAX_NBYTE_SIZE; - xfermode = I2C_RELOAD_MODE; - } - else - { - hi2c->XferSize = hi2c->XferCount; - if (hi2c->XferOptions != I2C_NO_OPTION_FRAME) - { - xfermode = hi2c->XferOptions; - } - else - { - xfermode = I2C_AUTOEND_MODE; - } - } - - /* Set the new XferSize in Nbytes register */ - I2C_TransferConfig(hi2c, devaddress, (uint8_t)hi2c->XferSize, xfermode, I2C_NO_STARTSTOP); - - /* Update XferCount value */ - hi2c->XferCount -= hi2c->XferSize; - - /* Enable DMA Request */ - if (hi2c->State == HAL_I2C_STATE_BUSY_RX) - { - hi2c->Instance->CR1 |= I2C_CR1_RXDMAEN; - } - else - { - hi2c->Instance->CR1 |= I2C_CR1_TXDMAEN; - } - } - else - { - /* Call TxCpltCallback() if no stop mode is set */ - if (I2C_GET_STOP_MODE(hi2c) != I2C_AUTOEND_MODE) - { - /* Call I2C Master Sequential complete process */ - I2C_ITMasterSeqCplt(hi2c); - } - else - { - /* Wrong size Status regarding TCR flag event */ - /* Call the corresponding callback to inform upper layer of End of Transfer */ - I2C_ITError(hi2c, HAL_I2C_ERROR_SIZE); - } - } - } - else if ((I2C_CHECK_FLAG(ITFlags, I2C_FLAG_TC) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_TCI) != RESET)) - { - if (hi2c->XferCount == 0U) - { - if (I2C_GET_STOP_MODE(hi2c) != I2C_AUTOEND_MODE) - { - /* Generate a stop condition in case of no transfer option */ - if (hi2c->XferOptions == I2C_NO_OPTION_FRAME) - { - /* Generate Stop */ - hi2c->Instance->CR2 |= I2C_CR2_STOP; - } - else - { - /* Call I2C Master Sequential complete process */ - I2C_ITMasterSeqCplt(hi2c); - } - } - } - else - { - /* Wrong size Status regarding TC flag event */ - /* Call the corresponding callback to inform upper layer of End of Transfer */ - I2C_ITError(hi2c, HAL_I2C_ERROR_SIZE); - } - } - else if ((I2C_CHECK_FLAG(ITFlags, I2C_FLAG_STOPF) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_STOPI) != RESET)) - { - /* Call I2C Master complete process */ - I2C_ITMasterCplt(hi2c, ITFlags); - } - else - { - /* Nothing to do */ - } - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_OK; -} - -/** - * @brief Interrupt Sub-Routine which handle the Interrupt Flags Memory Mode with DMA. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param ITFlags Interrupt flags to handle. - * @param ITSources Interrupt sources enabled. - * @retval HAL status - */ -static HAL_StatusTypeDef I2C_Mem_ISR_DMA(struct __I2C_HandleTypeDef *hi2c, uint32_t ITFlags, - uint32_t ITSources) -{ - uint32_t direction = I2C_GENERATE_START_WRITE; - - /* Process Locked */ - __HAL_LOCK(hi2c); - - if ((I2C_CHECK_FLAG(ITFlags, I2C_FLAG_AF) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_NACKI) != RESET)) - { - /* Clear NACK Flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); - - /* Set corresponding Error Code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_AF; - - /* No need to generate STOP, it is automatically done */ - /* But enable STOP interrupt, to treat it */ - /* Error callback will be send during stop flag treatment */ - I2C_Enable_IRQ(hi2c, I2C_XFER_CPLT_IT); - - /* Flush TX register */ - I2C_Flush_TXDR(hi2c); - } - else if ((I2C_CHECK_FLAG(ITFlags, I2C_FLAG_TXIS) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_TXI) != RESET)) - { - /* Write LSB part of Memory Address */ - hi2c->Instance->TXDR = hi2c->Memaddress; - - /* Reset Memaddress content */ - hi2c->Memaddress = 0xFFFFFFFFU; - } - else if ((I2C_CHECK_FLAG(ITFlags, I2C_FLAG_TCR) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_TCI) != RESET)) - { - /* Enable only Error interrupt */ - I2C_Enable_IRQ(hi2c, I2C_XFER_ERROR_IT); - - if (hi2c->XferCount != 0U) - { - /* Prepare the new XferSize to transfer */ - if (hi2c->XferCount > MAX_NBYTE_SIZE) - { - hi2c->XferSize = MAX_NBYTE_SIZE; - I2C_TransferConfig(hi2c, (uint16_t)hi2c->Devaddress, (uint8_t)hi2c->XferSize, - I2C_RELOAD_MODE, I2C_NO_STARTSTOP); - } - else - { - hi2c->XferSize = hi2c->XferCount; - I2C_TransferConfig(hi2c, (uint16_t)hi2c->Devaddress, (uint8_t)hi2c->XferSize, - I2C_AUTOEND_MODE, I2C_NO_STARTSTOP); - } - - /* Update XferCount value */ - hi2c->XferCount -= hi2c->XferSize; - - /* Enable DMA Request */ - if (hi2c->State == HAL_I2C_STATE_BUSY_RX) - { - hi2c->Instance->CR1 |= I2C_CR1_RXDMAEN; - } - else - { - hi2c->Instance->CR1 |= I2C_CR1_TXDMAEN; - } - } - else - { - /* Wrong size Status regarding TCR flag event */ - /* Call the corresponding callback to inform upper layer of End of Transfer */ - I2C_ITError(hi2c, HAL_I2C_ERROR_SIZE); - } - } - else if ((I2C_CHECK_FLAG(ITFlags, I2C_FLAG_TC) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_TCI) != RESET)) - { - if (hi2c->State == HAL_I2C_STATE_BUSY_RX) - { - direction = I2C_GENERATE_START_READ; - } - - if (hi2c->XferCount > MAX_NBYTE_SIZE) - { - hi2c->XferSize = MAX_NBYTE_SIZE; - - /* Set NBYTES to write and reload if hi2c->XferCount > MAX_NBYTE_SIZE and generate RESTART */ - I2C_TransferConfig(hi2c, (uint16_t)hi2c->Devaddress, (uint8_t)hi2c->XferSize, - I2C_RELOAD_MODE, direction); - } - else - { - hi2c->XferSize = hi2c->XferCount; - - /* Set NBYTES to write and generate RESTART */ - I2C_TransferConfig(hi2c, (uint16_t)hi2c->Devaddress, (uint8_t)hi2c->XferSize, - I2C_AUTOEND_MODE, direction); - } - - /* Update XferCount value */ - hi2c->XferCount -= hi2c->XferSize; - - /* Enable DMA Request */ - if (hi2c->State == HAL_I2C_STATE_BUSY_RX) - { - hi2c->Instance->CR1 |= I2C_CR1_RXDMAEN; - } - else - { - hi2c->Instance->CR1 |= I2C_CR1_TXDMAEN; - } - } - else if ((I2C_CHECK_FLAG(ITFlags, I2C_FLAG_STOPF) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_STOPI) != RESET)) - { - /* Call I2C Master complete process */ - I2C_ITMasterCplt(hi2c, ITFlags); - } - else - { - /* Nothing to do */ - } - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_OK; -} - -/** - * @brief Interrupt Sub-Routine which handle the Interrupt Flags Slave Mode with DMA. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param ITFlags Interrupt flags to handle. - * @param ITSources Interrupt sources enabled. - * @retval HAL status - */ -static HAL_StatusTypeDef I2C_Slave_ISR_DMA(struct __I2C_HandleTypeDef *hi2c, uint32_t ITFlags, - uint32_t ITSources) -{ - uint32_t tmpoptions = hi2c->XferOptions; - uint32_t treatdmanack = 0U; - HAL_I2C_StateTypeDef tmpstate; - - /* Process locked */ - __HAL_LOCK(hi2c); - - /* Check if STOPF is set */ - if ((I2C_CHECK_FLAG(ITFlags, I2C_FLAG_STOPF) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_STOPI) != RESET)) - { - /* Call I2C Slave complete process */ - I2C_ITSlaveCplt(hi2c, ITFlags); - } - - if ((I2C_CHECK_FLAG(ITFlags, I2C_FLAG_AF) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_NACKI) != RESET)) - { - /* Check that I2C transfer finished */ - /* if yes, normal use case, a NACK is sent by the MASTER when Transfer is finished */ - /* Mean XferCount == 0 */ - /* So clear Flag NACKF only */ - if ((I2C_CHECK_IT_SOURCE(ITSources, I2C_CR1_TXDMAEN) != RESET) || - (I2C_CHECK_IT_SOURCE(ITSources, I2C_CR1_RXDMAEN) != RESET)) - { - /* Split check of hdmarx, for MISRA compliance */ - if (hi2c->hdmarx != NULL) - { - if (I2C_CHECK_IT_SOURCE(ITSources, I2C_CR1_RXDMAEN) != RESET) - { - if (I2C_GET_DMA_REMAIN_DATA(hi2c->hdmarx) == 0U) - { - treatdmanack = 1U; - } - } - } - - /* Split check of hdmatx, for MISRA compliance */ - if (hi2c->hdmatx != NULL) - { - if (I2C_CHECK_IT_SOURCE(ITSources, I2C_CR1_TXDMAEN) != RESET) - { - if (I2C_GET_DMA_REMAIN_DATA(hi2c->hdmatx) == 0U) - { - treatdmanack = 1U; - } - } - } - - if (treatdmanack == 1U) - { - if ((hi2c->State == HAL_I2C_STATE_LISTEN) && (tmpoptions == I2C_FIRST_AND_LAST_FRAME)) - /* Same action must be done for (tmpoptions == I2C_LAST_FRAME) which removed for - Warning[Pa134]: left and right operands are identical */ - { - /* Call I2C Listen complete process */ - I2C_ITListenCplt(hi2c, ITFlags); - } - else if ((hi2c->State == HAL_I2C_STATE_BUSY_TX_LISTEN) && (tmpoptions != I2C_NO_OPTION_FRAME)) - { - /* Clear NACK Flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); - - /* Flush TX register */ - I2C_Flush_TXDR(hi2c); - - /* Last Byte is Transmitted */ - /* Call I2C Slave Sequential complete process */ - I2C_ITSlaveSeqCplt(hi2c); - } - else - { - /* Clear NACK Flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); - } - } - else - { - /* if no, error use case, a Non-Acknowledge of last Data is generated by the MASTER*/ - /* Clear NACK Flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); - - /* Set ErrorCode corresponding to a Non-Acknowledge */ - hi2c->ErrorCode |= HAL_I2C_ERROR_AF; - - /* Store current hi2c->State, solve MISRA2012-Rule-13.5 */ - tmpstate = hi2c->State; - - if ((tmpoptions == I2C_FIRST_FRAME) || (tmpoptions == I2C_NEXT_FRAME)) - { - if ((tmpstate == HAL_I2C_STATE_BUSY_TX) || (tmpstate == HAL_I2C_STATE_BUSY_TX_LISTEN)) - { - hi2c->PreviousState = I2C_STATE_SLAVE_BUSY_TX; - } - else if ((tmpstate == HAL_I2C_STATE_BUSY_RX) || (tmpstate == HAL_I2C_STATE_BUSY_RX_LISTEN)) - { - hi2c->PreviousState = I2C_STATE_SLAVE_BUSY_RX; - } - else - { - /* Do nothing */ - } - - /* Call the corresponding callback to inform upper layer of End of Transfer */ - I2C_ITError(hi2c, hi2c->ErrorCode); - } - } - } - else - { - /* Only Clear NACK Flag, no DMA treatment is pending */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); - } - } - else if ((I2C_CHECK_FLAG(ITFlags, I2C_FLAG_ADDR) != RESET) && \ - (I2C_CHECK_IT_SOURCE(ITSources, I2C_IT_ADDRI) != RESET)) - { - I2C_ITAddrCplt(hi2c, ITFlags); - } - else - { - /* Nothing to do */ - } - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_OK; -} - -/** - * @brief Master sends target device address followed by internal memory address for write request. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param DevAddress Target device address: The device 7 bits address value - * in datasheet must be shifted to the left before calling the interface - * @param MemAddress Internal memory address - * @param MemAddSize Size of internal memory address - * @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) -{ - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)MemAddSize, I2C_RELOAD_MODE, I2C_GENERATE_START_WRITE); - - /* Wait until TXIS flag is set */ - if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) - { - return HAL_ERROR; - } - - /* If Memory address size is 8Bit */ - if (MemAddSize == I2C_MEMADD_SIZE_8BIT) - { - /* Send Memory Address */ - hi2c->Instance->TXDR = I2C_MEM_ADD_LSB(MemAddress); - } - /* If Memory address size is 16Bit */ - else - { - /* Send MSB of Memory Address */ - hi2c->Instance->TXDR = I2C_MEM_ADD_MSB(MemAddress); - - /* Wait until TXIS flag is set */ - if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) - { - return HAL_ERROR; - } - - /* Send LSB of Memory Address */ - hi2c->Instance->TXDR = I2C_MEM_ADD_LSB(MemAddress); - } - - /* Wait until TCR flag is set */ - if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_TCR, RESET, Timeout, Tickstart) != HAL_OK) - { - return HAL_ERROR; - } - - return HAL_OK; -} - -/** - * @brief Master sends target device address followed by internal memory address for read request. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param DevAddress Target device address: The device 7 bits address value - * in datasheet must be shifted to the left before calling the interface - * @param MemAddress Internal memory address - * @param MemAddSize Size of internal memory address - * @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) -{ - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)MemAddSize, I2C_SOFTEND_MODE, I2C_GENERATE_START_WRITE); - - /* Wait until TXIS flag is set */ - if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) - { - return HAL_ERROR; - } - - /* If Memory address size is 8Bit */ - if (MemAddSize == I2C_MEMADD_SIZE_8BIT) - { - /* Send Memory Address */ - hi2c->Instance->TXDR = I2C_MEM_ADD_LSB(MemAddress); - } - /* If Memory address size is 16Bit */ - else - { - /* Send MSB of Memory Address */ - hi2c->Instance->TXDR = I2C_MEM_ADD_MSB(MemAddress); - - /* Wait until TXIS flag is set */ - if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) - { - return HAL_ERROR; - } - - /* Send LSB of Memory Address */ - hi2c->Instance->TXDR = I2C_MEM_ADD_LSB(MemAddress); - } - - /* Wait until TC flag is set */ - if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_TC, RESET, Timeout, Tickstart) != HAL_OK) - { - return HAL_ERROR; - } - - return HAL_OK; -} - -/** - * @brief I2C Address complete process callback. - * @param hi2c I2C handle. - * @param ITFlags Interrupt flags to handle. - * @retval None - */ -static void I2C_ITAddrCplt(I2C_HandleTypeDef *hi2c, uint32_t ITFlags) -{ - uint8_t transferdirection; - uint16_t slaveaddrcode; - uint16_t ownadd1code; - uint16_t ownadd2code; - - /* Prevent unused argument(s) compilation warning */ - UNUSED(ITFlags); - - /* In case of Listen state, need to inform upper layer of address match code event */ - if (((uint32_t)hi2c->State & (uint32_t)HAL_I2C_STATE_LISTEN) == (uint32_t)HAL_I2C_STATE_LISTEN) - { - transferdirection = I2C_GET_DIR(hi2c); - slaveaddrcode = I2C_GET_ADDR_MATCH(hi2c); - ownadd1code = I2C_GET_OWN_ADDRESS1(hi2c); - ownadd2code = I2C_GET_OWN_ADDRESS2(hi2c); - - /* If 10bits addressing mode is selected */ - if (hi2c->Init.AddressingMode == I2C_ADDRESSINGMODE_10BIT) - { - if ((slaveaddrcode & SLAVE_ADDR_MSK) == ((ownadd1code >> SLAVE_ADDR_SHIFT) & SLAVE_ADDR_MSK)) - { - slaveaddrcode = ownadd1code; - hi2c->AddrEventCount++; - if (hi2c->AddrEventCount == 2U) - { - /* Reset Address Event counter */ - hi2c->AddrEventCount = 0U; - - /* Clear ADDR flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_ADDR); - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Call Slave Addr callback */ -#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) - hi2c->AddrCallback(hi2c, transferdirection, slaveaddrcode); -#else - HAL_I2C_AddrCallback(hi2c, transferdirection, slaveaddrcode); -#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ - } - } - else - { - slaveaddrcode = ownadd2code; - - /* Disable ADDR Interrupts */ - I2C_Disable_IRQ(hi2c, I2C_XFER_LISTEN_IT); - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Call Slave Addr callback */ -#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) - hi2c->AddrCallback(hi2c, transferdirection, slaveaddrcode); -#else - HAL_I2C_AddrCallback(hi2c, transferdirection, slaveaddrcode); -#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ - } - } - /* else 7 bits addressing mode is selected */ - else - { - /* Disable ADDR Interrupts */ - I2C_Disable_IRQ(hi2c, I2C_XFER_LISTEN_IT); - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Call Slave Addr callback */ -#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) - hi2c->AddrCallback(hi2c, transferdirection, slaveaddrcode); -#else - HAL_I2C_AddrCallback(hi2c, transferdirection, slaveaddrcode); -#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ - } - } - /* Else clear address flag only */ - else - { - /* Clear ADDR flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_ADDR); - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - } -} - -/** - * @brief I2C Master sequential complete process. - * @param hi2c I2C handle. - * @retval None - */ -static void I2C_ITMasterSeqCplt(I2C_HandleTypeDef *hi2c) -{ - /* Reset I2C handle mode */ - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* No Generate Stop, to permit restart mode */ - /* The stop will be done at the end of transfer, when I2C_AUTOEND_MODE enable */ - if (hi2c->State == HAL_I2C_STATE_BUSY_TX) - { - hi2c->State = HAL_I2C_STATE_READY; - hi2c->PreviousState = I2C_STATE_MASTER_BUSY_TX; - hi2c->XferISR = NULL; - - /* Disable Interrupts */ - I2C_Disable_IRQ(hi2c, I2C_XFER_TX_IT); - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Call the corresponding callback to inform upper layer of End of Transfer */ -#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) - hi2c->MasterTxCpltCallback(hi2c); -#else - HAL_I2C_MasterTxCpltCallback(hi2c); -#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ - } - /* hi2c->State == HAL_I2C_STATE_BUSY_RX */ - else - { - hi2c->State = HAL_I2C_STATE_READY; - hi2c->PreviousState = I2C_STATE_MASTER_BUSY_RX; - hi2c->XferISR = NULL; - - /* Disable Interrupts */ - I2C_Disable_IRQ(hi2c, I2C_XFER_RX_IT); - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Call the corresponding callback to inform upper layer of End of Transfer */ -#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) - hi2c->MasterRxCpltCallback(hi2c); -#else - HAL_I2C_MasterRxCpltCallback(hi2c); -#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ - } -} - -/** - * @brief I2C Slave sequential complete process. - * @param hi2c I2C handle. - * @retval None - */ -static void I2C_ITSlaveSeqCplt(I2C_HandleTypeDef *hi2c) -{ - uint32_t tmpcr1value = READ_REG(hi2c->Instance->CR1); - - /* Reset I2C handle mode */ - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* If a DMA is ongoing, Update handle size context */ - if (I2C_CHECK_IT_SOURCE(tmpcr1value, I2C_CR1_TXDMAEN) != RESET) - { - /* Disable DMA Request */ - hi2c->Instance->CR1 &= ~I2C_CR1_TXDMAEN; - } - else if (I2C_CHECK_IT_SOURCE(tmpcr1value, I2C_CR1_RXDMAEN) != RESET) - { - /* Disable DMA Request */ - hi2c->Instance->CR1 &= ~I2C_CR1_RXDMAEN; - } - else - { - /* Do nothing */ - } - - if (hi2c->State == HAL_I2C_STATE_BUSY_TX_LISTEN) - { - /* Remove HAL_I2C_STATE_SLAVE_BUSY_TX, keep only HAL_I2C_STATE_LISTEN */ - hi2c->State = HAL_I2C_STATE_LISTEN; - hi2c->PreviousState = I2C_STATE_SLAVE_BUSY_TX; - - /* Disable Interrupts */ - I2C_Disable_IRQ(hi2c, I2C_XFER_TX_IT); - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Call the corresponding callback to inform upper layer of End of Transfer */ -#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) - hi2c->SlaveTxCpltCallback(hi2c); -#else - HAL_I2C_SlaveTxCpltCallback(hi2c); -#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ - } - - else if (hi2c->State == HAL_I2C_STATE_BUSY_RX_LISTEN) - { - /* Remove HAL_I2C_STATE_SLAVE_BUSY_RX, keep only HAL_I2C_STATE_LISTEN */ - hi2c->State = HAL_I2C_STATE_LISTEN; - hi2c->PreviousState = I2C_STATE_SLAVE_BUSY_RX; - - /* Disable Interrupts */ - I2C_Disable_IRQ(hi2c, I2C_XFER_RX_IT); - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Call the corresponding callback to inform upper layer of End of Transfer */ -#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) - hi2c->SlaveRxCpltCallback(hi2c); -#else - HAL_I2C_SlaveRxCpltCallback(hi2c); -#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ - } - else - { - /* Nothing to do */ - } -} - -/** - * @brief I2C Master complete process. - * @param hi2c I2C handle. - * @param ITFlags Interrupt flags to handle. - * @retval None - */ -static void I2C_ITMasterCplt(I2C_HandleTypeDef *hi2c, uint32_t ITFlags) -{ - uint32_t tmperror; - uint32_t tmpITFlags = ITFlags; - __IO uint32_t tmpreg; - - /* Clear STOP Flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); - - /* Disable Interrupts and Store Previous state */ - if (hi2c->State == HAL_I2C_STATE_BUSY_TX) - { - I2C_Disable_IRQ(hi2c, I2C_XFER_TX_IT); - hi2c->PreviousState = I2C_STATE_MASTER_BUSY_TX; - } - else if (hi2c->State == HAL_I2C_STATE_BUSY_RX) - { - I2C_Disable_IRQ(hi2c, I2C_XFER_RX_IT); - hi2c->PreviousState = I2C_STATE_MASTER_BUSY_RX; - } - else - { - /* Do nothing */ - } - - /* Clear Configuration Register 2 */ - I2C_RESET_CR2(hi2c); - - /* Reset handle parameters */ - hi2c->XferISR = NULL; - hi2c->XferOptions = I2C_NO_OPTION_FRAME; - - if (I2C_CHECK_FLAG(tmpITFlags, I2C_FLAG_AF) != RESET) - { - /* Clear NACK Flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); - - /* Set acknowledge error code */ - hi2c->ErrorCode |= HAL_I2C_ERROR_AF; - } - - /* Fetch Last receive data if any */ - if ((hi2c->State == HAL_I2C_STATE_ABORT) && (I2C_CHECK_FLAG(tmpITFlags, I2C_FLAG_RXNE) != RESET)) - { - /* Read data from RXDR */ - tmpreg = (uint8_t)hi2c->Instance->RXDR; - UNUSED(tmpreg); - } - - /* Flush TX register */ - I2C_Flush_TXDR(hi2c); - - /* Store current volatile hi2c->ErrorCode, misra rule */ - tmperror = hi2c->ErrorCode; - - /* Call the corresponding callback to inform upper layer of End of Transfer */ - if ((hi2c->State == HAL_I2C_STATE_ABORT) || (tmperror != HAL_I2C_ERROR_NONE)) - { - /* Call the corresponding callback to inform upper layer of End of Transfer */ - I2C_ITError(hi2c, hi2c->ErrorCode); - } - /* hi2c->State == HAL_I2C_STATE_BUSY_TX */ - else if (hi2c->State == HAL_I2C_STATE_BUSY_TX) - { - hi2c->State = HAL_I2C_STATE_READY; - hi2c->PreviousState = I2C_STATE_NONE; - - if (hi2c->Mode == HAL_I2C_MODE_MEM) - { - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Call the corresponding callback to inform upper layer of End of Transfer */ -#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) - hi2c->MemTxCpltCallback(hi2c); -#else - HAL_I2C_MemTxCpltCallback(hi2c); -#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ - } - else - { - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Call the corresponding callback to inform upper layer of End of Transfer */ -#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) - hi2c->MasterTxCpltCallback(hi2c); -#else - HAL_I2C_MasterTxCpltCallback(hi2c); -#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ - } - } - /* hi2c->State == HAL_I2C_STATE_BUSY_RX */ - else if (hi2c->State == HAL_I2C_STATE_BUSY_RX) - { - hi2c->State = HAL_I2C_STATE_READY; - hi2c->PreviousState = I2C_STATE_NONE; - - if (hi2c->Mode == HAL_I2C_MODE_MEM) - { - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Call the corresponding callback to inform upper layer of End of Transfer */ -#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) - hi2c->MemRxCpltCallback(hi2c); -#else - HAL_I2C_MemRxCpltCallback(hi2c); -#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ - } - else - { - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Call the corresponding callback to inform upper layer of End of Transfer */ -#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) - hi2c->MasterRxCpltCallback(hi2c); -#else - HAL_I2C_MasterRxCpltCallback(hi2c); -#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ - } - } - else - { - /* Nothing to do */ - } -} - -/** - * @brief I2C Slave complete process. - * @param hi2c I2C handle. - * @param ITFlags Interrupt flags to handle. - * @retval None - */ -static void I2C_ITSlaveCplt(I2C_HandleTypeDef *hi2c, uint32_t ITFlags) -{ - uint32_t tmpcr1value = READ_REG(hi2c->Instance->CR1); - uint32_t tmpITFlags = ITFlags; - HAL_I2C_StateTypeDef tmpstate = hi2c->State; - - /* Clear STOP Flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); - - /* Disable Interrupts and Store Previous state */ - if ((tmpstate == HAL_I2C_STATE_BUSY_TX) || (tmpstate == HAL_I2C_STATE_BUSY_TX_LISTEN)) - { - I2C_Disable_IRQ(hi2c, I2C_XFER_LISTEN_IT | I2C_XFER_TX_IT); - hi2c->PreviousState = I2C_STATE_SLAVE_BUSY_TX; - } - else if ((tmpstate == HAL_I2C_STATE_BUSY_RX) || (tmpstate == HAL_I2C_STATE_BUSY_RX_LISTEN)) - { - I2C_Disable_IRQ(hi2c, I2C_XFER_LISTEN_IT | I2C_XFER_RX_IT); - hi2c->PreviousState = I2C_STATE_SLAVE_BUSY_RX; - } - else - { - /* Do nothing */ - } - - /* Disable Address Acknowledge */ - hi2c->Instance->CR2 |= I2C_CR2_NACK; - - /* Clear Configuration Register 2 */ - I2C_RESET_CR2(hi2c); - - /* Flush TX register */ - I2C_Flush_TXDR(hi2c); - - /* If a DMA is ongoing, Update handle size context */ - if (I2C_CHECK_IT_SOURCE(tmpcr1value, I2C_CR1_TXDMAEN) != RESET) - { - /* Disable DMA Request */ - hi2c->Instance->CR1 &= ~I2C_CR1_TXDMAEN; - - if (hi2c->hdmatx != NULL) - { - hi2c->XferCount = (uint16_t)I2C_GET_DMA_REMAIN_DATA(hi2c->hdmatx); - } - } - else if (I2C_CHECK_IT_SOURCE(tmpcr1value, I2C_CR1_RXDMAEN) != RESET) - { - /* Disable DMA Request */ - hi2c->Instance->CR1 &= ~I2C_CR1_RXDMAEN; - - if (hi2c->hdmarx != NULL) - { - hi2c->XferCount = (uint16_t)I2C_GET_DMA_REMAIN_DATA(hi2c->hdmarx); - } - } - else - { - /* Do nothing */ - } - - /* Store Last receive data if any */ - if (I2C_CHECK_FLAG(tmpITFlags, I2C_FLAG_RXNE) != RESET) - { - /* Remove RXNE flag on temporary variable as read done */ - tmpITFlags &= ~I2C_FLAG_RXNE; - - /* Read data from RXDR */ - *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->RXDR; - - /* Increment Buffer pointer */ - hi2c->pBuffPtr++; - - if ((hi2c->XferSize > 0U)) - { - hi2c->XferSize--; - hi2c->XferCount--; - } - } - - /* All data are not transferred, so set error code accordingly */ - if (hi2c->XferCount != 0U) - { - /* Set ErrorCode corresponding to a Non-Acknowledge */ - hi2c->ErrorCode |= HAL_I2C_ERROR_AF; - } - - hi2c->Mode = HAL_I2C_MODE_NONE; - hi2c->XferISR = NULL; - - if (hi2c->ErrorCode != HAL_I2C_ERROR_NONE) - { - /* Call the corresponding callback to inform upper layer of End of Transfer */ - I2C_ITError(hi2c, hi2c->ErrorCode); - - /* Call the Listen Complete callback, to inform upper layer of the end of Listen usecase */ - if (hi2c->State == HAL_I2C_STATE_LISTEN) - { - /* Call I2C Listen complete process */ - I2C_ITListenCplt(hi2c, tmpITFlags); - } - } - else if (hi2c->XferOptions != I2C_NO_OPTION_FRAME) - { - /* Call the Sequential Complete callback, to inform upper layer of the end of Transfer */ - I2C_ITSlaveSeqCplt(hi2c); - - hi2c->XferOptions = I2C_NO_OPTION_FRAME; - hi2c->State = HAL_I2C_STATE_READY; - hi2c->PreviousState = I2C_STATE_NONE; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Call the Listen Complete callback, to inform upper layer of the end of Listen usecase */ -#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) - hi2c->ListenCpltCallback(hi2c); -#else - HAL_I2C_ListenCpltCallback(hi2c); -#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ - } - /* Call the corresponding callback to inform upper layer of End of Transfer */ - else if (hi2c->State == HAL_I2C_STATE_BUSY_RX) - { - hi2c->State = HAL_I2C_STATE_READY; - hi2c->PreviousState = I2C_STATE_NONE; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Call the corresponding callback to inform upper layer of End of Transfer */ -#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) - hi2c->SlaveRxCpltCallback(hi2c); -#else - HAL_I2C_SlaveRxCpltCallback(hi2c); -#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ - } - else - { - hi2c->State = HAL_I2C_STATE_READY; - hi2c->PreviousState = I2C_STATE_NONE; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Call the corresponding callback to inform upper layer of End of Transfer */ -#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) - hi2c->SlaveTxCpltCallback(hi2c); -#else - HAL_I2C_SlaveTxCpltCallback(hi2c); -#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ - } -} - -/** - * @brief I2C Listen complete process. - * @param hi2c I2C handle. - * @param ITFlags Interrupt flags to handle. - * @retval None - */ -static void I2C_ITListenCplt(I2C_HandleTypeDef *hi2c, uint32_t ITFlags) -{ - /* Reset handle parameters */ - hi2c->XferOptions = I2C_NO_OPTION_FRAME; - hi2c->PreviousState = I2C_STATE_NONE; - hi2c->State = HAL_I2C_STATE_READY; - hi2c->Mode = HAL_I2C_MODE_NONE; - hi2c->XferISR = NULL; - - /* Store Last receive data if any */ - if (I2C_CHECK_FLAG(ITFlags, I2C_FLAG_RXNE) != RESET) - { - /* Read data from RXDR */ - *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->RXDR; - - /* Increment Buffer pointer */ - hi2c->pBuffPtr++; - - if ((hi2c->XferSize > 0U)) - { - hi2c->XferSize--; - hi2c->XferCount--; - - /* Set ErrorCode corresponding to a Non-Acknowledge */ - hi2c->ErrorCode |= HAL_I2C_ERROR_AF; - } - } - - /* Disable all Interrupts*/ - I2C_Disable_IRQ(hi2c, I2C_XFER_LISTEN_IT | I2C_XFER_RX_IT | I2C_XFER_TX_IT); - - /* Clear NACK Flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Call the Listen Complete callback, to inform upper layer of the end of Listen usecase */ -#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) - hi2c->ListenCpltCallback(hi2c); -#else - HAL_I2C_ListenCpltCallback(hi2c); -#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ -} - -/** - * @brief I2C interrupts error process. - * @param hi2c I2C handle. - * @param ErrorCode Error code to handle. - * @retval None - */ -static void I2C_ITError(I2C_HandleTypeDef *hi2c, uint32_t ErrorCode) -{ - HAL_I2C_StateTypeDef tmpstate = hi2c->State; - uint32_t tmppreviousstate; - - /* Reset handle parameters */ - hi2c->Mode = HAL_I2C_MODE_NONE; - hi2c->XferOptions = I2C_NO_OPTION_FRAME; - hi2c->XferCount = 0U; - - /* Set new error code */ - hi2c->ErrorCode |= ErrorCode; - - /* Disable Interrupts */ - if ((tmpstate == HAL_I2C_STATE_LISTEN) || - (tmpstate == HAL_I2C_STATE_BUSY_TX_LISTEN) || - (tmpstate == HAL_I2C_STATE_BUSY_RX_LISTEN)) - { - /* Disable all interrupts, except interrupts related to LISTEN state */ - I2C_Disable_IRQ(hi2c, I2C_XFER_RX_IT | I2C_XFER_TX_IT); - - /* keep HAL_I2C_STATE_LISTEN if set */ - hi2c->State = HAL_I2C_STATE_LISTEN; - hi2c->XferISR = I2C_Slave_ISR_IT; - } - else - { - /* Disable all interrupts */ - I2C_Disable_IRQ(hi2c, I2C_XFER_LISTEN_IT | I2C_XFER_RX_IT | I2C_XFER_TX_IT); - - /* Flush TX register */ - I2C_Flush_TXDR(hi2c); - - /* If state is an abort treatment on going, don't change state */ - /* This change will be do later */ - if (hi2c->State != HAL_I2C_STATE_ABORT) - { - /* Set HAL_I2C_STATE_READY */ - hi2c->State = HAL_I2C_STATE_READY; - - /* Check if a STOPF is detected */ - if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == SET) - { - if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF) == SET) - { - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); - hi2c->ErrorCode |= HAL_I2C_ERROR_AF; - } - - /* Clear STOP Flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); - } - - } - hi2c->XferISR = NULL; - } - - /* Abort DMA TX transfer if any */ - tmppreviousstate = hi2c->PreviousState; - if ((hi2c->hdmatx != NULL) && ((tmppreviousstate == I2C_STATE_MASTER_BUSY_TX) || \ - (tmppreviousstate == I2C_STATE_SLAVE_BUSY_TX))) - { - if ((hi2c->Instance->CR1 & I2C_CR1_TXDMAEN) == I2C_CR1_TXDMAEN) - { - hi2c->Instance->CR1 &= ~I2C_CR1_TXDMAEN; - } - - if (HAL_DMA_GetState(hi2c->hdmatx) != HAL_DMA_STATE_READY) - { - /* Set the I2C DMA Abort callback : - will lead to call HAL_I2C_ErrorCallback() at end of DMA abort procedure */ - hi2c->hdmatx->XferAbortCallback = I2C_DMAAbort; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Abort DMA TX */ - if (HAL_DMA_Abort_IT(hi2c->hdmatx) != HAL_OK) - { - /* Call Directly XferAbortCallback function in case of error */ - hi2c->hdmatx->XferAbortCallback(hi2c->hdmatx); - } - } - else - { - I2C_TreatErrorCallback(hi2c); - } - } - /* Abort DMA RX transfer if any */ - else if ((hi2c->hdmarx != NULL) && ((tmppreviousstate == I2C_STATE_MASTER_BUSY_RX) || \ - (tmppreviousstate == I2C_STATE_SLAVE_BUSY_RX))) - { - if ((hi2c->Instance->CR1 & I2C_CR1_RXDMAEN) == I2C_CR1_RXDMAEN) - { - hi2c->Instance->CR1 &= ~I2C_CR1_RXDMAEN; - } - - if (HAL_DMA_GetState(hi2c->hdmarx) != HAL_DMA_STATE_READY) - { - /* Set the I2C DMA Abort callback : - will lead to call HAL_I2C_ErrorCallback() at end of DMA abort procedure */ - hi2c->hdmarx->XferAbortCallback = I2C_DMAAbort; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Abort DMA RX */ - if (HAL_DMA_Abort_IT(hi2c->hdmarx) != HAL_OK) - { - /* Call Directly hi2c->hdmarx->XferAbortCallback function in case of error */ - hi2c->hdmarx->XferAbortCallback(hi2c->hdmarx); - } - } - else - { - I2C_TreatErrorCallback(hi2c); - } - } - else - { - I2C_TreatErrorCallback(hi2c); - } -} - -/** - * @brief I2C Error callback treatment. - * @param hi2c I2C handle. - * @retval None - */ -static void I2C_TreatErrorCallback(I2C_HandleTypeDef *hi2c) -{ - if (hi2c->State == HAL_I2C_STATE_ABORT) - { - hi2c->State = HAL_I2C_STATE_READY; - hi2c->PreviousState = I2C_STATE_NONE; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Call the corresponding callback to inform upper layer of End of Transfer */ -#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) - hi2c->AbortCpltCallback(hi2c); -#else - HAL_I2C_AbortCpltCallback(hi2c); -#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ - } - else - { - hi2c->PreviousState = I2C_STATE_NONE; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - /* Call the corresponding callback to inform upper layer of End of Transfer */ -#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) - hi2c->ErrorCallback(hi2c); -#else - HAL_I2C_ErrorCallback(hi2c); -#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ - } -} - -/** - * @brief I2C Tx data register flush process. - * @param hi2c I2C handle. - * @retval None - */ -static void I2C_Flush_TXDR(I2C_HandleTypeDef *hi2c) -{ - /* 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) - { - hi2c->Instance->TXDR = 0x00U; - } - - /* Flush TX register if not empty */ - if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXE) == RESET) - { - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_TXE); - } -} - -/** - * @brief DMA I2C master transmit process complete callback. - * @param hdma DMA handle - * @retval None - */ -static void I2C_DMAMasterTransmitCplt(DMA_HandleTypeDef *hdma) -{ - /* Derogation MISRAC2012-Rule-11.5 */ - I2C_HandleTypeDef *hi2c = (I2C_HandleTypeDef *)(((DMA_HandleTypeDef *)hdma)->Parent); - - /* Disable DMA Request */ - hi2c->Instance->CR1 &= ~I2C_CR1_TXDMAEN; - - /* If last transfer, enable STOP interrupt */ - if (hi2c->XferCount == 0U) - { - /* Enable STOP interrupt */ - I2C_Enable_IRQ(hi2c, I2C_XFER_CPLT_IT); - } - /* else prepare a new DMA transfer and enable TCReload interrupt */ - else - { - /* Update Buffer pointer */ - hi2c->pBuffPtr += hi2c->XferSize; - - /* Set the XferSize to transfer */ - if (hi2c->XferCount > MAX_NBYTE_SIZE) - { - hi2c->XferSize = MAX_NBYTE_SIZE; - } - else - { - hi2c->XferSize = hi2c->XferCount; - } - - /* Enable the DMA stream or channel depends on Instance */ - if (HAL_DMA_Start_IT(hi2c->hdmatx, (uint32_t)hi2c->pBuffPtr, (uint32_t)&hi2c->Instance->TXDR, - hi2c->XferSize) != HAL_OK) - { - /* Call the corresponding callback to inform upper layer of End of Transfer */ - I2C_ITError(hi2c, HAL_I2C_ERROR_DMA); - } - else - { - /* Enable TC interrupts */ - I2C_Enable_IRQ(hi2c, I2C_XFER_RELOAD_IT); - } - } -} - -/** - * @brief DMA I2C slave transmit process complete callback. - * @param hdma DMA handle - * @retval None - */ -static void I2C_DMASlaveTransmitCplt(DMA_HandleTypeDef *hdma) -{ - /* Derogation MISRAC2012-Rule-11.5 */ - I2C_HandleTypeDef *hi2c = (I2C_HandleTypeDef *)(((DMA_HandleTypeDef *)hdma)->Parent); - uint32_t tmpoptions = hi2c->XferOptions; - - if ((tmpoptions == I2C_NEXT_FRAME) || (tmpoptions == I2C_FIRST_FRAME)) - { - /* Disable DMA Request */ - hi2c->Instance->CR1 &= ~I2C_CR1_TXDMAEN; - - /* Last Byte is Transmitted */ - /* Call I2C Slave Sequential complete process */ - I2C_ITSlaveSeqCplt(hi2c); - } - else - { - /* No specific action, Master fully manage the generation of STOP condition */ - /* Mean that this generation can arrive at any time, at the end or during DMA process */ - /* So STOP condition should be manage through Interrupt treatment */ - } -} - -/** - * @brief DMA I2C master receive process complete callback. - * @param hdma DMA handle - * @retval None - */ -static void I2C_DMAMasterReceiveCplt(DMA_HandleTypeDef *hdma) -{ - /* Derogation MISRAC2012-Rule-11.5 */ - I2C_HandleTypeDef *hi2c = (I2C_HandleTypeDef *)(((DMA_HandleTypeDef *)hdma)->Parent); - - /* Disable DMA Request */ - hi2c->Instance->CR1 &= ~I2C_CR1_RXDMAEN; - - /* If last transfer, enable STOP interrupt */ - if (hi2c->XferCount == 0U) - { - /* Enable STOP interrupt */ - I2C_Enable_IRQ(hi2c, I2C_XFER_CPLT_IT); - } - /* else prepare a new DMA transfer and enable TCReload interrupt */ - else - { - /* Update Buffer pointer */ - hi2c->pBuffPtr += hi2c->XferSize; - - /* Set the XferSize to transfer */ - if (hi2c->XferCount > MAX_NBYTE_SIZE) - { - hi2c->XferSize = MAX_NBYTE_SIZE; - } - else - { - hi2c->XferSize = hi2c->XferCount; - } - - /* Enable the DMA stream or channel depends on Instance */ - if (HAL_DMA_Start_IT(hi2c->hdmarx, (uint32_t)&hi2c->Instance->RXDR, (uint32_t)hi2c->pBuffPtr, - hi2c->XferSize) != HAL_OK) - { - /* Call the corresponding callback to inform upper layer of End of Transfer */ - I2C_ITError(hi2c, HAL_I2C_ERROR_DMA); - } - else - { - /* Enable TC interrupts */ - I2C_Enable_IRQ(hi2c, I2C_XFER_RELOAD_IT); - } - } -} - -/** - * @brief DMA I2C slave receive process complete callback. - * @param hdma DMA handle - * @retval None - */ -static void I2C_DMASlaveReceiveCplt(DMA_HandleTypeDef *hdma) -{ - /* Derogation MISRAC2012-Rule-11.5 */ - I2C_HandleTypeDef *hi2c = (I2C_HandleTypeDef *)(((DMA_HandleTypeDef *)hdma)->Parent); - uint32_t tmpoptions = hi2c->XferOptions; - - if ((I2C_GET_DMA_REMAIN_DATA(hi2c->hdmarx) == 0U) && \ - (tmpoptions != I2C_NO_OPTION_FRAME)) - { - /* Disable DMA Request */ - hi2c->Instance->CR1 &= ~I2C_CR1_RXDMAEN; - - /* Call I2C Slave Sequential complete process */ - I2C_ITSlaveSeqCplt(hi2c); - } - else - { - /* No specific action, Master fully manage the generation of STOP condition */ - /* Mean that this generation can arrive at any time, at the end or during DMA process */ - /* So STOP condition should be manage through Interrupt treatment */ - } -} - -/** - * @brief DMA I2C communication error callback. - * @param hdma DMA handle - * @retval None - */ -static void I2C_DMAError(DMA_HandleTypeDef *hdma) -{ - uint32_t treatdmaerror = 0U; - /* Derogation MISRAC2012-Rule-11.5 */ - I2C_HandleTypeDef *hi2c = (I2C_HandleTypeDef *)(((DMA_HandleTypeDef *)hdma)->Parent); - - if (hi2c->hdmatx != NULL) - { - if (I2C_GET_DMA_REMAIN_DATA(hi2c->hdmatx) == 0U) - { - treatdmaerror = 1U; - } - } - - if (hi2c->hdmarx != NULL) - { - if (I2C_GET_DMA_REMAIN_DATA(hi2c->hdmarx) == 0U) - { - treatdmaerror = 1U; - } - } - - /* Check if a FIFO error is detected, if true normal use case, so no specific action to perform */ - if (!((HAL_DMA_GetError(hdma) == HAL_DMA_ERROR_FE)) && (treatdmaerror != 0U)) - { - /* Disable Acknowledge */ - hi2c->Instance->CR2 |= I2C_CR2_NACK; - - /* Call the corresponding callback to inform upper layer of End of Transfer */ - I2C_ITError(hi2c, HAL_I2C_ERROR_DMA); - } -} - -/** - * @brief DMA I2C communication abort callback - * (To be called at end of DMA Abort procedure). - * @param hdma DMA handle. - * @retval None - */ -static void I2C_DMAAbort(DMA_HandleTypeDef *hdma) -{ - /* Derogation MISRAC2012-Rule-11.5 */ - I2C_HandleTypeDef *hi2c = (I2C_HandleTypeDef *)(((DMA_HandleTypeDef *)hdma)->Parent); - - /* Reset AbortCpltCallback */ - if (hi2c->hdmatx != NULL) - { - hi2c->hdmatx->XferAbortCallback = NULL; - } - if (hi2c->hdmarx != NULL) - { - hi2c->hdmarx->XferAbortCallback = NULL; - } - - I2C_TreatErrorCallback(hi2c); -} - -/** - * @brief This function handles I2C Communication Timeout. It waits - * until a flag is no longer in the specified status. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param Flag Specifies the I2C flag to check. - * @param Status The actual Flag status (SET or RESET). - * @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) -{ - while (__HAL_I2C_GET_FLAG(hi2c, Flag) == Status) - { - /* Check for the Timeout */ - if (Timeout != HAL_MAX_DELAY) - { - if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) - { - if ((__HAL_I2C_GET_FLAG(hi2c, Flag) == Status)) - { - hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; - hi2c->State = HAL_I2C_STATE_READY; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - return HAL_ERROR; - } - } - } - } - return HAL_OK; -} - -/** - * @brief This function handles I2C Communication Timeout for specific usage of TXIS flag. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @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) -{ - while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXIS) == RESET) - { - /* Check if an error is detected */ - if (I2C_IsErrorOccurred(hi2c, Timeout, Tickstart) != HAL_OK) - { - return HAL_ERROR; - } - - /* Check for the Timeout */ - if (Timeout != HAL_MAX_DELAY) - { - if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) - { - if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXIS) == RESET)) - { - hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; - hi2c->State = HAL_I2C_STATE_READY; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_ERROR; - } - } - } - } - return HAL_OK; -} - -/** - * @brief This function handles I2C Communication Timeout for specific usage of STOP flag. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @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) -{ - while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET) - { - /* Check if an error is detected */ - if (I2C_IsErrorOccurred(hi2c, Timeout, Tickstart) != HAL_OK) - { - return HAL_ERROR; - } - - /* Check for the Timeout */ - if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) - { - if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET)) - { - hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; - hi2c->State = HAL_I2C_STATE_READY; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_ERROR; - } - } - } - return HAL_OK; -} - -/** - * @brief This function handles I2C Communication Timeout for specific usage of RXNE flag. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param Timeout Timeout duration - * @param Tickstart Tick start value - * @retval HAL status - */ -static HAL_StatusTypeDef I2C_WaitOnRXNEFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, - uint32_t Tickstart) -{ - while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_RXNE) == RESET) - { - /* Check if an error is detected */ - if (I2C_IsErrorOccurred(hi2c, Timeout, Tickstart) != HAL_OK) - { - return HAL_ERROR; - } - - /* Check if a STOPF is detected */ - if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == SET) - { - /* Check if an RXNE is pending */ - /* Store Last receive data if any */ - if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_RXNE) == SET) && (hi2c->XferSize > 0U)) - { - /* Return HAL_OK */ - /* The Reading of data from RXDR will be done in caller function */ - return HAL_OK; - } - else - { - if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF) == SET) - { - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); - hi2c->ErrorCode = HAL_I2C_ERROR_AF; - } - else - { - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - } - - /* Clear STOP Flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); - - /* Clear Configuration Register 2 */ - I2C_RESET_CR2(hi2c); - - hi2c->State = HAL_I2C_STATE_READY; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_ERROR; - } - } - - /* Check for the Timeout */ - if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) - { - if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_RXNE) == RESET)) - { - hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; - hi2c->State = HAL_I2C_STATE_READY; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_ERROR; - } - } - } - return HAL_OK; -} - -/** - * @brief This function handles errors detection during an I2C Communication. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param Timeout Timeout duration - * @param Tickstart Tick start value - * @retval HAL status - */ -static HAL_StatusTypeDef I2C_IsErrorOccurred(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) -{ - HAL_StatusTypeDef status = HAL_OK; - uint32_t itflag = hi2c->Instance->ISR; - uint32_t error_code = 0; - uint32_t tickstart = Tickstart; - uint32_t tmp1; - HAL_I2C_ModeTypeDef tmp2; - - if (HAL_IS_BIT_SET(itflag, I2C_FLAG_AF)) - { - /* Clear NACKF Flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); - - /* Wait until STOP Flag is set or timeout occurred */ - /* AutoEnd should be initiate after AF */ - while ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET) && (status == HAL_OK)) - { - /* Check for the Timeout */ - if (Timeout != HAL_MAX_DELAY) - { - if (((HAL_GetTick() - tickstart) > Timeout) || (Timeout == 0U)) - { - tmp1 = (uint32_t)(hi2c->Instance->CR2 & I2C_CR2_STOP); - tmp2 = hi2c->Mode; - - /* In case of I2C still busy, try to regenerate a STOP manually */ - if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET) && \ - (tmp1 != I2C_CR2_STOP) && \ - (tmp2 != HAL_I2C_MODE_SLAVE)) - { - /* Generate Stop */ - hi2c->Instance->CR2 |= I2C_CR2_STOP; - - /* Update Tick with new reference */ - tickstart = HAL_GetTick(); - } - - while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET) - { - /* Check for the Timeout */ - if ((HAL_GetTick() - tickstart) > I2C_TIMEOUT_STOPF) - { - error_code |= HAL_I2C_ERROR_TIMEOUT; - - status = HAL_ERROR; - - break; - } - } - } - } - } - - /* In case STOP Flag is detected, clear it */ - if (status == HAL_OK) - { - /* Clear STOP Flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); - } - - error_code |= HAL_I2C_ERROR_AF; - - status = HAL_ERROR; - } - - /* Refresh Content of Status register */ - itflag = hi2c->Instance->ISR; - - /* Then verify if an additional errors occurs */ - /* Check if a Bus error occurred */ - if (HAL_IS_BIT_SET(itflag, I2C_FLAG_BERR)) - { - error_code |= HAL_I2C_ERROR_BERR; - - /* Clear BERR flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_BERR); - - status = HAL_ERROR; - } - - /* Check if an Over-Run/Under-Run error occurred */ - if (HAL_IS_BIT_SET(itflag, I2C_FLAG_OVR)) - { - error_code |= HAL_I2C_ERROR_OVR; - - /* Clear OVR flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_OVR); - - status = HAL_ERROR; - } - - /* Check if an Arbitration Loss error occurred */ - if (HAL_IS_BIT_SET(itflag, I2C_FLAG_ARLO)) - { - error_code |= HAL_I2C_ERROR_ARLO; - - /* Clear ARLO flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_ARLO); - - status = HAL_ERROR; - } - - if (status != HAL_OK) - { - /* Flush TX register */ - I2C_Flush_TXDR(hi2c); - - /* Clear Configuration Register 2 */ - I2C_RESET_CR2(hi2c); - - hi2c->ErrorCode |= error_code; - hi2c->State = HAL_I2C_STATE_READY; - hi2c->Mode = HAL_I2C_MODE_NONE; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - } - - return status; -} - -/** - * @brief Handles I2Cx communication when starting transfer or during transfer (TC or TCR flag are set). - * @param hi2c I2C handle. - * @param DevAddress Specifies the slave address to be programmed. - * @param Size Specifies the number of bytes to be programmed. - * This parameter must be a value between 0 and 255. - * @param Mode New state of the I2C START condition generation. - * This parameter can be one of the following values: - * @arg @ref I2C_RELOAD_MODE Enable Reload mode . - * @arg @ref I2C_AUTOEND_MODE Enable Automatic end mode. - * @arg @ref I2C_SOFTEND_MODE Enable Software end mode. - * @param Request New state of the I2C START condition generation. - * This parameter can be one of the following values: - * @arg @ref I2C_NO_STARTSTOP Don't Generate stop and start condition. - * @arg @ref I2C_GENERATE_STOP Generate stop condition (Size should be set to 0). - * @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) -{ - /* Check the parameters */ - assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance)); - assert_param(IS_TRANSFER_MODE(Mode)); - assert_param(IS_TRANSFER_REQUEST(Request)); - - /* Declaration of tmp to prevent undefined behavior of volatile usage */ - uint32_t tmp = ((uint32_t)(((uint32_t)DevAddress & I2C_CR2_SADD) | \ - (((uint32_t)Size << I2C_CR2_NBYTES_Pos) & I2C_CR2_NBYTES) | \ - (uint32_t)Mode | (uint32_t)Request) & (~0x80000000U)); - - /* 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)), tmp); -} - -/** - * @brief Manage the enabling of Interrupts. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param InterruptRequest Value of @ref I2C_Interrupt_configuration_definition. - * @retval None - */ -static void I2C_Enable_IRQ(I2C_HandleTypeDef *hi2c, uint16_t InterruptRequest) -{ - uint32_t tmpisr = 0U; - - if ((hi2c->XferISR == I2C_Master_ISR_DMA) || \ - (hi2c->XferISR == I2C_Slave_ISR_DMA)) - { - if ((InterruptRequest & I2C_XFER_LISTEN_IT) == I2C_XFER_LISTEN_IT) - { - /* Enable ERR, STOP, NACK and ADDR interrupts */ - tmpisr |= I2C_IT_ADDRI | I2C_IT_STOPI | I2C_IT_NACKI | I2C_IT_ERRI; - } - - if (InterruptRequest == I2C_XFER_ERROR_IT) - { - /* Enable ERR and NACK interrupts */ - tmpisr |= I2C_IT_ERRI | I2C_IT_NACKI; - } - - if (InterruptRequest == I2C_XFER_CPLT_IT) - { - /* Enable STOP interrupts */ - tmpisr |= (I2C_IT_STOPI | I2C_IT_TCI); - } - - if (InterruptRequest == I2C_XFER_RELOAD_IT) - { - /* Enable TC interrupts */ - tmpisr |= I2C_IT_TCI; - } - } - else - { - if ((InterruptRequest & I2C_XFER_LISTEN_IT) == I2C_XFER_LISTEN_IT) - { - /* Enable ERR, STOP, NACK, and ADDR interrupts */ - tmpisr |= I2C_IT_ADDRI | I2C_IT_STOPI | I2C_IT_NACKI | I2C_IT_ERRI; - } - - if ((InterruptRequest & I2C_XFER_TX_IT) == I2C_XFER_TX_IT) - { - /* Enable ERR, TC, STOP, NACK and RXI interrupts */ - tmpisr |= I2C_IT_ERRI | I2C_IT_TCI | I2C_IT_STOPI | I2C_IT_NACKI | I2C_IT_TXI; - } - - if ((InterruptRequest & I2C_XFER_RX_IT) == I2C_XFER_RX_IT) - { - /* Enable ERR, TC, STOP, NACK and TXI interrupts */ - tmpisr |= I2C_IT_ERRI | I2C_IT_TCI | I2C_IT_STOPI | I2C_IT_NACKI | I2C_IT_RXI; - } - - if (InterruptRequest == I2C_XFER_ERROR_IT) - { - /* Enable ERR and NACK interrupts */ - tmpisr |= I2C_IT_ERRI | I2C_IT_NACKI; - } - - if (InterruptRequest == I2C_XFER_CPLT_IT) - { - /* Enable STOP interrupts */ - tmpisr |= I2C_IT_STOPI; - } - } - - /* Enable interrupts only at the end */ - /* to avoid the risk of I2C interrupt handle execution before */ - /* all interrupts requested done */ - __HAL_I2C_ENABLE_IT(hi2c, tmpisr); -} - -/** - * @brief Manage the disabling of Interrupts. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2C. - * @param InterruptRequest Value of @ref I2C_Interrupt_configuration_definition. - * @retval None - */ -static void I2C_Disable_IRQ(I2C_HandleTypeDef *hi2c, uint16_t InterruptRequest) -{ - uint32_t tmpisr = 0U; - - if ((InterruptRequest & I2C_XFER_TX_IT) == I2C_XFER_TX_IT) - { - /* Disable TC and TXI interrupts */ - tmpisr |= I2C_IT_TCI | I2C_IT_TXI; - - if (((uint32_t)hi2c->State & (uint32_t)HAL_I2C_STATE_LISTEN) != (uint32_t)HAL_I2C_STATE_LISTEN) - { - /* Disable NACK and STOP interrupts */ - tmpisr |= I2C_IT_STOPI | I2C_IT_NACKI | I2C_IT_ERRI; - } - } - - if ((InterruptRequest & I2C_XFER_RX_IT) == I2C_XFER_RX_IT) - { - /* Disable TC and RXI interrupts */ - tmpisr |= I2C_IT_TCI | I2C_IT_RXI; - - if (((uint32_t)hi2c->State & (uint32_t)HAL_I2C_STATE_LISTEN) != (uint32_t)HAL_I2C_STATE_LISTEN) - { - /* Disable NACK and STOP interrupts */ - tmpisr |= I2C_IT_STOPI | I2C_IT_NACKI | I2C_IT_ERRI; - } - } - - if ((InterruptRequest & I2C_XFER_LISTEN_IT) == I2C_XFER_LISTEN_IT) - { - /* Disable ADDR, NACK and STOP interrupts */ - tmpisr |= I2C_IT_ADDRI | I2C_IT_STOPI | I2C_IT_NACKI | I2C_IT_ERRI; - } - - if (InterruptRequest == I2C_XFER_ERROR_IT) - { - /* Enable ERR and NACK interrupts */ - tmpisr |= I2C_IT_ERRI | I2C_IT_NACKI; - } - - if (InterruptRequest == I2C_XFER_CPLT_IT) - { - /* Enable STOP interrupts */ - tmpisr |= I2C_IT_STOPI; - } - - if (InterruptRequest == I2C_XFER_RELOAD_IT) - { - /* Enable TC interrupts */ - tmpisr |= I2C_IT_TCI; - } - - /* Disable interrupts only at the end */ - /* to avoid a breaking situation like at "t" time */ - /* all disable interrupts request are not done */ - __HAL_I2C_DISABLE_IT(hi2c, tmpisr); -} - -/** - * @brief Convert I2Cx OTHER_xxx XferOptions to functional XferOptions. - * @param hi2c I2C handle. - * @retval None - */ -static void I2C_ConvertOtherXferOptions(I2C_HandleTypeDef *hi2c) -{ - /* if user set XferOptions to I2C_OTHER_FRAME */ - /* it request implicitly to generate a restart condition */ - /* set XferOptions to I2C_FIRST_FRAME */ - if (hi2c->XferOptions == I2C_OTHER_FRAME) - { - hi2c->XferOptions = I2C_FIRST_FRAME; - } - /* else if user set XferOptions to I2C_OTHER_AND_LAST_FRAME */ - /* it request implicitly to generate a restart condition */ - /* then generate a stop condition at the end of transfer */ - /* set XferOptions to I2C_FIRST_AND_LAST_FRAME */ - else if (hi2c->XferOptions == I2C_OTHER_AND_LAST_FRAME) - { - hi2c->XferOptions = I2C_FIRST_AND_LAST_FRAME; - } - else - { - /* Nothing to do */ - } -} - -/** - * @} - */ - -#endif /* HAL_I2C_MODULE_ENABLED */ -/** - * @} - */ - -/** - * @} - */ diff --git a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.c b/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.c deleted file mode 100644 index d9b8e46..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.c +++ /dev/null @@ -1,372 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_i2c_ex.c - * @author MCD Application Team - * @brief I2C Extended HAL module driver. - * This file provides firmware functions to manage the following - * functionalities of I2C Extended peripheral: - * + Filter Mode Functions - * + WakeUp Mode Functions - * + FastModePlus Functions - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - @verbatim - ============================================================================== - ##### I2C peripheral Extended features ##### - ============================================================================== - - [..] Comparing to other previous devices, the I2C interface for STM32H7xx - devices contains the following additional features - - (+) Possibility to disable or enable Analog Noise Filter - (+) Use of a configured Digital Noise Filter - (+) Disable or enable wakeup from Stop mode(s) - (+) Disable or enable Fast Mode Plus - - ##### How to use this driver ##### - ============================================================================== - [..] This driver provides functions to configure Noise Filter and Wake Up Feature - (#) Configure I2C Analog noise filter using the function HAL_I2CEx_ConfigAnalogFilter() - (#) Configure I2C Digital noise filter using the function HAL_I2CEx_ConfigDigitalFilter() - (#) Configure the enable or disable of I2C Wake Up Mode using the functions : - (++) HAL_I2CEx_EnableWakeUp() - (++) HAL_I2CEx_DisableWakeUp() - (#) Configure the enable or disable of fast mode plus driving capability using the functions : - (++) HAL_I2CEx_EnableFastModePlus() - (++) HAL_I2CEx_DisableFastModePlus() - @endverbatim - */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @defgroup I2CEx I2CEx - * @brief I2C Extended HAL module driver - * @{ - */ - -#ifdef HAL_I2C_MODULE_ENABLED - -/* Private typedef -----------------------------------------------------------*/ -/* Private define ------------------------------------------------------------*/ -/* Private macro -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private function prototypes -----------------------------------------------*/ -/* Private functions ---------------------------------------------------------*/ - -/** @defgroup I2CEx_Exported_Functions I2C Extended Exported Functions - * @{ - */ - -/** @defgroup I2CEx_Exported_Functions_Group1 Filter Mode Functions - * @brief Filter Mode Functions - * -@verbatim - =============================================================================== - ##### Filter Mode Functions ##### - =============================================================================== - [..] This section provides functions allowing to: - (+) Configure Noise Filters - -@endverbatim - * @{ - */ - -/** - * @brief Configure I2C Analog noise filter. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * 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) -{ - /* 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) - { - /* Process Locked */ - __HAL_LOCK(hi2c); - - hi2c->State = HAL_I2C_STATE_BUSY; - - /* Disable the selected I2C peripheral */ - __HAL_I2C_DISABLE(hi2c); - - /* Reset I2Cx ANOFF bit */ - hi2c->Instance->CR1 &= ~(I2C_CR1_ANFOFF); - - /* Set analog filter bit*/ - hi2c->Instance->CR1 |= AnalogFilter; - - __HAL_I2C_ENABLE(hi2c); - - hi2c->State = HAL_I2C_STATE_READY; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Configure I2C Digital noise filter. - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * 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) -{ - uint32_t tmpreg; - - /* 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) - { - /* Process Locked */ - __HAL_LOCK(hi2c); - - hi2c->State = HAL_I2C_STATE_BUSY; - - /* Disable the selected I2C peripheral */ - __HAL_I2C_DISABLE(hi2c); - - /* Get the old register value */ - tmpreg = hi2c->Instance->CR1; - - /* Reset I2Cx DNF bits [11:8] */ - tmpreg &= ~(I2C_CR1_DNF); - - /* Set I2Cx DNF coefficient */ - tmpreg |= DigitalFilter << 8U; - - /* Store the new register value */ - hi2c->Instance->CR1 = tmpreg; - - __HAL_I2C_ENABLE(hi2c); - - hi2c->State = HAL_I2C_STATE_READY; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} -/** - * @} - */ - -/** @defgroup I2CEx_Exported_Functions_Group2 WakeUp Mode Functions - * @brief WakeUp Mode Functions - * -@verbatim - =============================================================================== - ##### WakeUp Mode Functions ##### - =============================================================================== - [..] This section provides functions allowing to: - (+) Configure Wake Up Feature - -@endverbatim - * @{ - */ - -/** - * @brief Enable I2C wakeup from Stop mode(s). - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2Cx peripheral. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2CEx_EnableWakeUp(I2C_HandleTypeDef *hi2c) -{ - /* Check the parameters */ - assert_param(IS_I2C_WAKEUP_FROMSTOP_INSTANCE(hi2c->Instance)); - - if (hi2c->State == HAL_I2C_STATE_READY) - { - /* Process Locked */ - __HAL_LOCK(hi2c); - - hi2c->State = HAL_I2C_STATE_BUSY; - - /* Disable the selected I2C peripheral */ - __HAL_I2C_DISABLE(hi2c); - - /* Enable wakeup from stop mode */ - hi2c->Instance->CR1 |= I2C_CR1_WUPEN; - - __HAL_I2C_ENABLE(hi2c); - - hi2c->State = HAL_I2C_STATE_READY; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Disable I2C wakeup from Stop mode(s). - * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - * the configuration information for the specified I2Cx peripheral. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_I2CEx_DisableWakeUp(I2C_HandleTypeDef *hi2c) -{ - /* Check the parameters */ - assert_param(IS_I2C_WAKEUP_FROMSTOP_INSTANCE(hi2c->Instance)); - - if (hi2c->State == HAL_I2C_STATE_READY) - { - /* Process Locked */ - __HAL_LOCK(hi2c); - - hi2c->State = HAL_I2C_STATE_BUSY; - - /* Disable the selected I2C peripheral */ - __HAL_I2C_DISABLE(hi2c); - - /* Enable wakeup from stop mode */ - hi2c->Instance->CR1 &= ~(I2C_CR1_WUPEN); - - __HAL_I2C_ENABLE(hi2c); - - hi2c->State = HAL_I2C_STATE_READY; - - /* Process Unlocked */ - __HAL_UNLOCK(hi2c); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} -/** - * @} - */ - -/** @defgroup I2CEx_Exported_Functions_Group3 Fast Mode Plus Functions - * @brief Fast Mode Plus Functions - * -@verbatim - =============================================================================== - ##### Fast Mode Plus Functions ##### - =============================================================================== - [..] This section provides functions allowing to: - (+) Configure Fast Mode Plus - -@endverbatim - * @{ - */ - -/** - * @brief Enable the I2C fast mode plus driving capability. - * @param ConfigFastModePlus Selects the pin. - * This parameter can be one of the @ref I2CEx_FastModePlus values - * @note For I2C1, fast mode plus driving capability can be enabled on all selected - * I2C1 pins using I2C_FASTMODEPLUS_I2C1 parameter or independently - * on each one of the following pins PB6, PB7, PB8 and PB9. - * @note For remaining I2C1 pins (PA14, PA15...) fast mode plus driving capability - * can be enabled only by using I2C_FASTMODEPLUS_I2C1 parameter. - * @note For all I2C2 pins fast mode plus driving capability can be enabled - * only by using I2C_FASTMODEPLUS_I2C2 parameter. - * @note For all I2C3 pins fast mode plus driving capability can be enabled - * only by using I2C_FASTMODEPLUS_I2C3 parameter. - * @note For all I2C4 pins fast mode plus driving capability can be enabled - * only by using I2C_FASTMODEPLUS_I2C4 parameter. - * @note For all I2C5 pins fast mode plus driving capability can be enabled - * only by using I2C_FASTMODEPLUS_I2C5 parameter. - * @retval None - */ -void HAL_I2CEx_EnableFastModePlus(uint32_t ConfigFastModePlus) -{ - /* Check the parameter */ - assert_param(IS_I2C_FASTMODEPLUS(ConfigFastModePlus)); - - /* Enable SYSCFG clock */ - __HAL_RCC_SYSCFG_CLK_ENABLE(); - - /* Enable fast mode plus driving capability for selected pin */ - SET_BIT(SYSCFG->PMCR, (uint32_t)ConfigFastModePlus); -} - -/** - * @brief Disable the I2C fast mode plus driving capability. - * @param ConfigFastModePlus Selects the pin. - * This parameter can be one of the @ref I2CEx_FastModePlus values - * @note For I2C1, fast mode plus driving capability can be disabled on all selected - * I2C1 pins using I2C_FASTMODEPLUS_I2C1 parameter or independently - * on each one of the following pins PB6, PB7, PB8 and PB9. - * @note For remaining I2C1 pins (PA14, PA15...) fast mode plus driving capability - * can be disabled only by using I2C_FASTMODEPLUS_I2C1 parameter. - * @note For all I2C2 pins fast mode plus driving capability can be disabled - * only by using I2C_FASTMODEPLUS_I2C2 parameter. - * @note For all I2C3 pins fast mode plus driving capability can be disabled - * only by using I2C_FASTMODEPLUS_I2C3 parameter. - * @note For all I2C4 pins fast mode plus driving capability can be disabled - * only by using I2C_FASTMODEPLUS_I2C4 parameter. - * @note For all I2C5 pins fast mode plus driving capability can be disabled - * only by using I2C_FASTMODEPLUS_I2C5 parameter. - * @retval None - */ -void HAL_I2CEx_DisableFastModePlus(uint32_t ConfigFastModePlus) -{ - /* Check the parameter */ - assert_param(IS_I2C_FASTMODEPLUS(ConfigFastModePlus)); - - /* Enable SYSCFG clock */ - __HAL_RCC_SYSCFG_CLK_ENABLE(); - - /* Disable fast mode plus driving capability for selected pin */ - CLEAR_BIT(SYSCFG->PMCR, (uint32_t)ConfigFastModePlus); -} -/** - * @} - */ -/** - * @} - */ - -#endif /* HAL_I2C_MODULE_ENABLED */ -/** - * @} - */ - -/** - * @} - */ diff --git a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c b/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c deleted file mode 100644 index 089d9fb..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c +++ /dev/null @@ -1,1899 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_mdma.c - * @author MCD Application Team - * @brief This file provides firmware functions to manage the following - * functionalities of the Master Direct Memory Access (MDMA) peripheral: - * + Initialization/de-initialization functions - * + I/O operation functions - * + Peripheral State and errors functions - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - @verbatim - ============================================================================== - ##### How to use this driver ##### - ============================================================================== - [..] - (#) Enable and configure the peripheral to be connected to the MDMA Channel - (except for internal SRAM/FLASH memories: no initialization is - necessary) please refer to Reference manual for connection between peripherals - and MDMA requests. - - (#) - For a given Channel use HAL_MDMA_Init function to program the required configuration through the following parameters: - transfer request , channel priority, data endianness, Source increment, destination increment , - source data size, destination data size, data alignment, source Burst, destination Burst , - buffer Transfer Length, Transfer Trigger Mode (buffer transfer, block transfer, repeated block transfer - or full transfer) source and destination block address offset, mask address and data. - - If using the MDMA in linked list mode then use function HAL_MDMA_LinkedList_CreateNode to fill a transfer node. - Note that parameters given to the function HAL_MDMA_Init corresponds always to the node zero. - Use function HAL_MDMA_LinkedList_AddNode to connect the created node to the linked list at a given position. - User can make a linked list circular using function HAL_MDMA_LinkedList_EnableCircularMode , this function will automatically connect the - last node of the list to the first one in order to make the list circular. - In this case the linked list will loop on node 1 : first node connected after the initial transfer defined by the HAL_MDMA_Init - - -@- The initial transfer itself (node 0 corresponding to the Init). - User can disable the circular mode using function HAL_MDMA_LinkedList_DisableCircularMode, this function will then remove - the connection between last node and first one. - - Function HAL_MDMA_LinkedList_RemoveNode can be used to remove (disconnect) a node from the transfer linked list. - When a linked list is circular (last node connected to first one), if removing node1 (node where the linked list loops), - the linked list remains circular and node 2 becomes the first one. - Note that if the linked list is made circular the transfer will loop infinitely (or until aborted by the user). - - [..] - (+) User can select the transfer trigger mode (parameter TransferTriggerMode) to define the amount of data to be - transfer upon a request : - (++) MDMA_BUFFER_TRANSFER : each request triggers a transfer of BufferTransferLength data - with BufferTransferLength defined within the HAL_MDMA_Init. - (++) MDMA_BLOCK_TRANSFER : each request triggers a transfer of a block - with block size defined within the function HAL_MDMA_Start/HAL_MDMA_Start_IT - or within the current linked list node parameters. - (++) MDMA_REPEAT_BLOCK_TRANSFER : each request triggers a transfer of a number of blocks - with block size and number of blocks defined within the function HAL_MDMA_Start/HAL_MDMA_Start_IT - or within the current linked list node parameters. - (++) MDMA_FULL_TRANSFER : each request triggers a full transfer - all blocks and all nodes(if a linked list has been created using HAL_MDMA_LinkedList_CreateNode \ HAL_MDMA_LinkedList_AddNode). - - *** Polling mode IO operation *** - ================================= - [..] - (+) Use HAL_MDMA_Start() to start MDMA transfer after the configuration of Source - address and destination address and the Length of data to be transferred. - (+) Use HAL_MDMA_PollForTransfer() to poll for the end of current transfer or a transfer level - In this case a fixed Timeout can be configured by User depending from his application. - (+) Use HAL_MDMA_Abort() function to abort the current transfer : blocking method this API returns - when the abort ends or timeout (should not be called from an interrupt service routine). - - *** Interrupt mode IO operation *** - =================================== - [..] - (+) Configure the MDMA interrupt priority using HAL_NVIC_SetPriority() - (+) Enable the MDMA IRQ handler using HAL_NVIC_EnableIRQ() - (+) Use HAL_MDMA_Start_IT() to start MDMA transfer after the configuration of - Source address and destination address and the Length of data to be transferred. In this - case the MDMA interrupt is configured. - (+) Use HAL_MDMA_IRQHandler() called under MDMA_IRQHandler() Interrupt subroutine - (+) At the end of data transfer HAL_MDMA_IRQHandler() function is executed and user can - add his own function by customization of function pointer XferCpltCallback and - XferErrorCallback (i.e a member of MDMA handle structure). - - (+) Use HAL_MDMA_Abort_IT() function to abort the current transfer : non-blocking method. This API will finish the execution immediately - then the callback XferAbortCallback (if specified by the user) is asserted once the MDMA channel has effectively aborted. - (could be called from an interrupt service routine). - - (+) Use functions HAL_MDMA_RegisterCallback and HAL_MDMA_UnRegisterCallback respectevely to register unregister user callbacks - from the following list : - (++) XferCpltCallback : transfer complete callback. - (++) XferBufferCpltCallback : buffer transfer complete callback. - (++) XferBlockCpltCallback : block transfer complete callback. - (++) XferRepeatBlockCpltCallback : repeated block transfer complete callback. - (++) XferErrorCallback : transfer error callback. - (++) XferAbortCallback : transfer abort complete callback. - - [..] - (+) If the transfer Request corresponds to SW request (MDMA_REQUEST_SW) User can use function HAL_MDMA_GenerateSWRequest to - trigger requests manually. Function HAL_MDMA_GenerateSWRequest must be used with the following precautions: - (++) This function returns an error if used while the Transfer has ended or not started. - (++) If used while the current request has not been served yet (current request transfer on going) - this function returns an error and the new request is ignored. - - Generally this function should be used in conjunctions with the MDMA callbacks: - (++) example 1: - (+++) Configure a transfer with request set to MDMA_REQUEST_SW and trigger mode set to MDMA_BUFFER_TRANSFER - (+++) Register a callback for buffer transfer complete (using callback ID set to HAL_MDMA_XFER_BUFFERCPLT_CB_ID) - (+++) After calling HAL_MDMA_Start_IT the MDMA will issue the transfer of a first BufferTransferLength data. - (+++) When the buffer transfer complete callback is asserted first buffer has been transferred and user can ask for a new buffer transfer - request using HAL_MDMA_GenerateSWRequest. - - (++) example 2: - (+++) Configure a transfer with request set to MDMA_REQUEST_SW and trigger mode set to MDMA_BLOCK_TRANSFER - (+++) Register a callback for block transfer complete (using callback ID HAL_MDMA_XFER_BLOCKCPLT_CB_ID) - (+++) After calling HAL_MDMA_Start_IT the MDMA will issue the transfer of a first block of data. - (+++) When the block transfer complete callback is asserted the first block has been transferred and user can ask - for a new block transfer request using HAL_MDMA_GenerateSWRequest. - - [..] Use HAL_MDMA_GetState() function to return the MDMA state and HAL_MDMA_GetError() in case of error detection. - - *** MDMA HAL driver macros list *** - ============================================= - [..] - Below the list of most used macros in MDMA HAL driver. - - (+) __HAL_MDMA_ENABLE: Enable the specified MDMA Channel. - (+) __HAL_MDMA_DISABLE: Disable the specified MDMA Channel. - (+) __HAL_MDMA_GET_FLAG: Get the MDMA Channel pending flags. - (+) __HAL_MDMA_CLEAR_FLAG: Clear the MDMA Channel pending flags. - (+) __HAL_MDMA_ENABLE_IT: Enable the specified MDMA Channel interrupts. - (+) __HAL_MDMA_DISABLE_IT: Disable the specified MDMA Channel interrupts. - (+) __HAL_MDMA_GET_IT_SOURCE: Check whether the specified MDMA Channel interrupt has occurred or not. - - [..] - (@) You can refer to the header file of the MDMA HAL driver for more useful macros. - - [..] - - @endverbatim - */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @defgroup MDMA MDMA - * @brief MDMA HAL module driver - * @{ - */ - -#ifdef HAL_MDMA_MODULE_ENABLED - -/* Private typedef -----------------------------------------------------------*/ -/* Private constants ---------------------------------------------------------*/ -/** @addtogroup MDMA_Private_Constants - * @{ - */ -#define HAL_TIMEOUT_MDMA_ABORT 5U /* 5 ms */ -#define HAL_MDMA_CHANNEL_SIZE 0x40U /* an MDMA instance channel size is 64 byte */ -/** - * @} - */ -/* Private macro -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private function prototypes -----------------------------------------------*/ -/** @addtogroup MDMA_Private_Functions_Prototypes - * @{ - */ -static void MDMA_SetConfig(MDMA_HandleTypeDef *hmdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t BlockDataLength, uint32_t BlockCount); -static void MDMA_Init(MDMA_HandleTypeDef *hmdma); - -/** - * @} - */ - -/** @addtogroup MDMA_Exported_Functions MDMA Exported Functions - * @{ - */ - -/** @addtogroup MDMA_Exported_Functions_Group1 - * -@verbatim - =============================================================================== - ##### Initialization and de-initialization functions ##### - =============================================================================== - [..] - This section provides functions allowing to : - Initialize and de-initialize the MDMA channel. - Register and Unregister MDMA callbacks - [..] - The HAL_MDMA_Init() function follows the MDMA channel configuration procedures as described in - reference manual. - The HAL_MDMA_DeInit function allows to deinitialize the MDMA channel. - HAL_MDMA_RegisterCallback and HAL_MDMA_UnRegisterCallback functions allows - respectevely to register/unregister an MDMA callback function. - -@endverbatim - * @{ - */ - -/** - * @brief Initializes the MDMA according to the specified - * parameters in the MDMA_InitTypeDef and create the associated handle. - * @param hmdma: Pointer to a MDMA_HandleTypeDef structure that contains - * the configuration information for the specified MDMA Channel. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_MDMA_Init(MDMA_HandleTypeDef *hmdma) -{ - uint32_t tickstart = HAL_GetTick(); - - /* Check the MDMA peripheral handle */ - if(hmdma == NULL) - { - return HAL_ERROR; - } - - /* Check the parameters */ - assert_param(IS_MDMA_STREAM_ALL_INSTANCE(hmdma->Instance)); - assert_param(IS_MDMA_PRIORITY(hmdma->Init.Priority)); - assert_param(IS_MDMA_ENDIANNESS_MODE(hmdma->Init.Endianness)); - assert_param(IS_MDMA_REQUEST(hmdma->Init.Request)); - assert_param(IS_MDMA_SOURCE_INC(hmdma->Init.SourceInc)); - assert_param(IS_MDMA_DESTINATION_INC(hmdma->Init.DestinationInc)); - assert_param(IS_MDMA_SOURCE_DATASIZE(hmdma->Init.SourceDataSize)); - assert_param(IS_MDMA_DESTINATION_DATASIZE(hmdma->Init.DestDataSize)); - assert_param(IS_MDMA_DATA_ALIGNMENT(hmdma->Init.DataAlignment)); - assert_param(IS_MDMA_SOURCE_BURST(hmdma->Init.SourceBurst)); - assert_param(IS_MDMA_DESTINATION_BURST(hmdma->Init.DestBurst)); - assert_param(IS_MDMA_BUFFER_TRANSFER_LENGTH(hmdma->Init.BufferTransferLength)); - assert_param(IS_MDMA_TRANSFER_TRIGGER_MODE(hmdma->Init.TransferTriggerMode)); - assert_param(IS_MDMA_BLOCK_ADDR_OFFSET(hmdma->Init.SourceBlockAddressOffset)); - assert_param(IS_MDMA_BLOCK_ADDR_OFFSET(hmdma->Init.DestBlockAddressOffset)); - - - /* Allocate lock resource */ - __HAL_UNLOCK(hmdma); - - /* Change MDMA peripheral state */ - hmdma->State = HAL_MDMA_STATE_BUSY; - - /* Disable the MDMA channel */ - __HAL_MDMA_DISABLE(hmdma); - - /* Check if the MDMA channel is effectively disabled */ - while((hmdma->Instance->CCR & MDMA_CCR_EN) != 0U) - { - /* Check for the Timeout */ - if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_MDMA_ABORT) - { - /* Update error code */ - hmdma->ErrorCode = HAL_MDMA_ERROR_TIMEOUT; - - /* Change the MDMA state */ - hmdma->State = HAL_MDMA_STATE_ERROR; - - return HAL_ERROR; - } - } - - /* Initialize the MDMA channel registers */ - MDMA_Init(hmdma); - - /* Reset the MDMA first/last linkedlist node addresses and node counter */ - hmdma->FirstLinkedListNodeAddress = 0; - hmdma->LastLinkedListNodeAddress = 0; - hmdma->LinkedListNodeCounter = 0; - - /* Initialize the error code */ - hmdma->ErrorCode = HAL_MDMA_ERROR_NONE; - - /* Initialize the MDMA state */ - hmdma->State = HAL_MDMA_STATE_READY; - - return HAL_OK; -} - -/** - * @brief DeInitializes the MDMA peripheral - * @param hmdma: pointer to a MDMA_HandleTypeDef structure that contains - * the configuration information for the specified MDMA Channel. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_MDMA_DeInit(MDMA_HandleTypeDef *hmdma) -{ - - /* Check the MDMA peripheral handle */ - if(hmdma == NULL) - { - return HAL_ERROR; - } - - /* Disable the selected MDMA Channelx */ - __HAL_MDMA_DISABLE(hmdma); - - /* Reset MDMA Channel control register */ - hmdma->Instance->CCR = 0; - hmdma->Instance->CTCR = 0; - hmdma->Instance->CBNDTR = 0; - hmdma->Instance->CSAR = 0; - hmdma->Instance->CDAR = 0; - hmdma->Instance->CBRUR = 0; - hmdma->Instance->CLAR = 0; - hmdma->Instance->CTBR = 0; - hmdma->Instance->CMAR = 0; - hmdma->Instance->CMDR = 0; - - /* Clear all flags */ - __HAL_MDMA_CLEAR_FLAG(hmdma,(MDMA_FLAG_TE | MDMA_FLAG_CTC | MDMA_FLAG_BRT | MDMA_FLAG_BT | MDMA_FLAG_BFTC)); - - /* Reset the MDMA first/last linkedlist node addresses and node counter */ - hmdma->FirstLinkedListNodeAddress = 0; - hmdma->LastLinkedListNodeAddress = 0; - hmdma->LinkedListNodeCounter = 0; - - /* Initialize the error code */ - hmdma->ErrorCode = HAL_MDMA_ERROR_NONE; - - /* Initialize the MDMA state */ - hmdma->State = HAL_MDMA_STATE_RESET; - - /* Release Lock */ - __HAL_UNLOCK(hmdma); - - return HAL_OK; -} - -/** - * @brief Config the Post request Mask address and Mask data - * @param hmdma : pointer to a MDMA_HandleTypeDef structure that contains - * the configuration information for the specified MDMA Channel. - * @param MaskAddress: specifies the address to be updated (written) with MaskData after a request is served. - * @param MaskData: specifies the value to be written to MaskAddress after a request is served. - * MaskAddress and MaskData could be used to automatically clear a peripheral flag when the request is served. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_MDMA_ConfigPostRequestMask(MDMA_HandleTypeDef *hmdma, uint32_t MaskAddress, uint32_t MaskData) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Check the MDMA peripheral handle */ - if(hmdma == NULL) - { - return HAL_ERROR; - } - - /* Process locked */ - __HAL_LOCK(hmdma); - - if(HAL_MDMA_STATE_READY == hmdma->State) - { - /* if HW request set Post Request MaskAddress and MaskData, */ - if((hmdma->Instance->CTCR & MDMA_CTCR_SWRM) == 0U) - { - /* Set the HW request clear Mask and Data */ - hmdma->Instance->CMAR = MaskAddress; - hmdma->Instance->CMDR = MaskData; - - /* - -If the request is done by SW : BWM could be set to 1 or 0. - -If the request is done by a peripheral : - If mask address not set (0) => BWM must be set to 0 - If mask address set (different than 0) => BWM could be set to 1 or 0 - */ - if(MaskAddress == 0U) - { - hmdma->Instance->CTCR &= ~MDMA_CTCR_BWM; - } - else - { - hmdma->Instance->CTCR |= MDMA_CTCR_BWM; - } - } - else - { - /* Return error status */ - status = HAL_ERROR; - } - } - else - { - /* Return error status */ - status = HAL_ERROR; - } - /* Release Lock */ - __HAL_UNLOCK(hmdma); - - return status; -} - -/** - * @brief Register callbacks - * @param hmdma: pointer to a MDMA_HandleTypeDef structure that contains - * the configuration information for the specified MDMA Channel. - * @param CallbackID: User Callback identifier - * @param pCallback: pointer to callbacsk function. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_MDMA_RegisterCallback(MDMA_HandleTypeDef *hmdma, HAL_MDMA_CallbackIDTypeDef CallbackID, void (* pCallback)(MDMA_HandleTypeDef *_hmdma)) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Check the MDMA peripheral handle */ - if(hmdma == NULL) - { - return HAL_ERROR; - } - - /* Process locked */ - __HAL_LOCK(hmdma); - - if(HAL_MDMA_STATE_READY == hmdma->State) - { - switch (CallbackID) - { - case HAL_MDMA_XFER_CPLT_CB_ID: - hmdma->XferCpltCallback = pCallback; - break; - - case HAL_MDMA_XFER_BUFFERCPLT_CB_ID: - hmdma->XferBufferCpltCallback = pCallback; - break; - - case HAL_MDMA_XFER_BLOCKCPLT_CB_ID: - hmdma->XferBlockCpltCallback = pCallback; - break; - - case HAL_MDMA_XFER_REPBLOCKCPLT_CB_ID: - hmdma->XferRepeatBlockCpltCallback = pCallback; - break; - - case HAL_MDMA_XFER_ERROR_CB_ID: - hmdma->XferErrorCallback = pCallback; - break; - - case HAL_MDMA_XFER_ABORT_CB_ID: - hmdma->XferAbortCallback = pCallback; - break; - - default: - break; - } - } - else - { - /* Return error status */ - status = HAL_ERROR; - } - - /* Release Lock */ - __HAL_UNLOCK(hmdma); - - return status; -} - -/** - * @brief UnRegister callbacks - * @param hmdma: pointer to a MDMA_HandleTypeDef structure that contains - * the configuration information for the specified MDMA Channel. - * @param CallbackID: User Callback identifier - * a HAL_MDMA_CallbackIDTypeDef ENUM as parameter. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_MDMA_UnRegisterCallback(MDMA_HandleTypeDef *hmdma, HAL_MDMA_CallbackIDTypeDef CallbackID) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Check the MDMA peripheral handle */ - if(hmdma == NULL) - { - return HAL_ERROR; - } - - /* Process locked */ - __HAL_LOCK(hmdma); - - if(HAL_MDMA_STATE_READY == hmdma->State) - { - switch (CallbackID) - { - case HAL_MDMA_XFER_CPLT_CB_ID: - hmdma->XferCpltCallback = NULL; - break; - - case HAL_MDMA_XFER_BUFFERCPLT_CB_ID: - hmdma->XferBufferCpltCallback = NULL; - break; - - case HAL_MDMA_XFER_BLOCKCPLT_CB_ID: - hmdma->XferBlockCpltCallback = NULL; - break; - - case HAL_MDMA_XFER_REPBLOCKCPLT_CB_ID: - hmdma->XferRepeatBlockCpltCallback = NULL; - break; - - case HAL_MDMA_XFER_ERROR_CB_ID: - hmdma->XferErrorCallback = NULL; - break; - - case HAL_MDMA_XFER_ABORT_CB_ID: - hmdma->XferAbortCallback = NULL; - break; - - case HAL_MDMA_XFER_ALL_CB_ID: - hmdma->XferCpltCallback = NULL; - hmdma->XferBufferCpltCallback = NULL; - hmdma->XferBlockCpltCallback = NULL; - hmdma->XferRepeatBlockCpltCallback = NULL; - hmdma->XferErrorCallback = NULL; - hmdma->XferAbortCallback = NULL; - break; - - default: - status = HAL_ERROR; - break; - } - } - else - { - status = HAL_ERROR; - } - - /* Release Lock */ - __HAL_UNLOCK(hmdma); - - return status; -} - -/** - * @} - */ - -/** @addtogroup MDMA_Exported_Functions_Group2 - * -@verbatim - =============================================================================== - ##### Linked list operation functions ##### - =============================================================================== - [..] This section provides functions allowing to: - (+) Create a linked list node - (+) Add a node to the MDMA linked list - (+) Remove a node from the MDMA linked list - (+) Enable/Disable linked list circular mode -@endverbatim - * @{ - */ - -/** - * @brief Initializes an MDMA Link Node according to the specified - * parameters in the pMDMA_LinkedListNodeConfig . - * @param pNode: Pointer to a MDMA_LinkNodeTypeDef structure that contains Linked list node - * registers configurations. - * @param pNodeConfig: Pointer to a MDMA_LinkNodeConfTypeDef structure that contains - * the configuration information for the specified MDMA Linked List Node. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_MDMA_LinkedList_CreateNode(MDMA_LinkNodeTypeDef *pNode, MDMA_LinkNodeConfTypeDef *pNodeConfig) -{ - uint32_t addressMask; - uint32_t blockoffset; - - /* Check the MDMA peripheral state */ - if((pNode == NULL) || (pNodeConfig == NULL)) - { - return HAL_ERROR; - } - - /* Check the parameters */ - assert_param(IS_MDMA_PRIORITY(pNodeConfig->Init.Priority)); - assert_param(IS_MDMA_ENDIANNESS_MODE(pNodeConfig->Init.Endianness)); - assert_param(IS_MDMA_REQUEST(pNodeConfig->Init.Request)); - assert_param(IS_MDMA_SOURCE_INC(pNodeConfig->Init.SourceInc)); - assert_param(IS_MDMA_DESTINATION_INC(pNodeConfig->Init.DestinationInc)); - assert_param(IS_MDMA_SOURCE_DATASIZE(pNodeConfig->Init.SourceDataSize)); - assert_param(IS_MDMA_DESTINATION_DATASIZE(pNodeConfig->Init.DestDataSize)); - assert_param(IS_MDMA_DATA_ALIGNMENT(pNodeConfig->Init.DataAlignment)); - assert_param(IS_MDMA_SOURCE_BURST(pNodeConfig->Init.SourceBurst)); - assert_param(IS_MDMA_DESTINATION_BURST(pNodeConfig->Init.DestBurst)); - assert_param(IS_MDMA_BUFFER_TRANSFER_LENGTH(pNodeConfig->Init.BufferTransferLength)); - assert_param(IS_MDMA_TRANSFER_TRIGGER_MODE(pNodeConfig->Init.TransferTriggerMode)); - assert_param(IS_MDMA_BLOCK_ADDR_OFFSET(pNodeConfig->Init.SourceBlockAddressOffset)); - assert_param(IS_MDMA_BLOCK_ADDR_OFFSET(pNodeConfig->Init.DestBlockAddressOffset)); - - assert_param(IS_MDMA_TRANSFER_LENGTH(pNodeConfig->BlockDataLength)); - assert_param(IS_MDMA_BLOCK_COUNT(pNodeConfig->BlockCount)); - - - /* Configure next Link node Address Register to zero */ - pNode->CLAR = 0; - - /* Configure the Link Node registers*/ - pNode->CTBR = 0; - pNode->CMAR = 0; - pNode->CMDR = 0; - pNode->Reserved = 0; - - /* Write new CTCR Register value */ - pNode->CTCR = pNodeConfig->Init.SourceInc | pNodeConfig->Init.DestinationInc | \ - pNodeConfig->Init.SourceDataSize | pNodeConfig->Init.DestDataSize | \ - pNodeConfig->Init.DataAlignment| pNodeConfig->Init.SourceBurst | \ - pNodeConfig->Init.DestBurst | \ - ((pNodeConfig->Init.BufferTransferLength - 1U) << MDMA_CTCR_TLEN_Pos) | \ - pNodeConfig->Init.TransferTriggerMode; - - /* If SW request set the CTCR register to SW Request Mode*/ - if(pNodeConfig->Init.Request == MDMA_REQUEST_SW) - { - pNode->CTCR |= MDMA_CTCR_SWRM; - } - - /* - -If the request is done by SW : BWM could be set to 1 or 0. - -If the request is done by a peripheral : - If mask address not set (0) => BWM must be set to 0 - If mask address set (different than 0) => BWM could be set to 1 or 0 - */ - if((pNodeConfig->Init.Request == MDMA_REQUEST_SW) || (pNodeConfig->PostRequestMaskAddress != 0U)) - { - pNode->CTCR |= MDMA_CTCR_BWM; - } - - /* Set the new CBNDTR Register value */ - pNode->CBNDTR = ((pNodeConfig->BlockCount - 1U) << MDMA_CBNDTR_BRC_Pos) & MDMA_CBNDTR_BRC; - - /* if block source address offset is negative set the Block Repeat Source address Update Mode to decrement */ - if(pNodeConfig->Init.SourceBlockAddressOffset < 0) - { - pNode->CBNDTR |= MDMA_CBNDTR_BRSUM; - /*write new CBRUR Register value : source repeat block offset */ - blockoffset = (uint32_t)(- pNodeConfig->Init.SourceBlockAddressOffset); - pNode->CBRUR = blockoffset & 0x0000FFFFU; - } - else - { - /*write new CBRUR Register value : source repeat block offset */ - pNode->CBRUR = (((uint32_t) pNodeConfig->Init.SourceBlockAddressOffset) & 0x0000FFFFU); - } - - /* if block destination address offset is negative set the Block Repeat destination address Update Mode to decrement */ - if(pNodeConfig->Init.DestBlockAddressOffset < 0) - { - pNode->CBNDTR |= MDMA_CBNDTR_BRDUM; - /*write new CBRUR Register value : destination repeat block offset */ - blockoffset = (uint32_t)(- pNodeConfig->Init.DestBlockAddressOffset); - pNode->CBRUR |= ((blockoffset & 0x0000FFFFU) << MDMA_CBRUR_DUV_Pos); - } - else - { - /*write new CBRUR Register value : destination repeat block offset */ - pNode->CBRUR |= ((((uint32_t)pNodeConfig->Init.DestBlockAddressOffset) & 0x0000FFFFU) << MDMA_CBRUR_DUV_Pos); - } - - /* Configure MDMA Link Node data length */ - pNode->CBNDTR |= pNodeConfig->BlockDataLength; - - /* Configure MDMA Link Node destination address */ - pNode->CDAR = pNodeConfig->DstAddress; - - /* Configure MDMA Link Node Source address */ - pNode->CSAR = pNodeConfig->SrcAddress; - - /* if HW request set the HW request and the requet CleraMask and ClearData MaskData, */ - if(pNodeConfig->Init.Request != MDMA_REQUEST_SW) - { - /* Set the HW request in CTBR register */ - pNode->CTBR = pNodeConfig->Init.Request & MDMA_CTBR_TSEL; - /* Set the HW request clear Mask and Data */ - pNode->CMAR = pNodeConfig->PostRequestMaskAddress; - pNode->CMDR = pNodeConfig->PostRequestMaskData; - } - - addressMask = pNodeConfig->SrcAddress & 0xFF000000U; - if((addressMask == 0x20000000U) || (addressMask == 0x00000000U)) - { - /*The AHBSbus is used as source (read operation) on channel x */ - pNode->CTBR |= MDMA_CTBR_SBUS; - } - - addressMask = pNodeConfig->DstAddress & 0xFF000000U; - if((addressMask == 0x20000000U) || (addressMask == 0x00000000U)) - { - /*The AHB bus is used as destination (write operation) on channel x */ - pNode->CTBR |= MDMA_CTBR_DBUS; - } - - return HAL_OK; -} - -/** - * @brief Connect a node to the linked list. - * @param hmdma : Pointer to a MDMA_HandleTypeDef structure that contains - * the configuration information for the specified MDMA Channel. - * @param pNewNode : Pointer to a MDMA_LinkNodeTypeDef structure that contains Linked list node - * to be add to the list. - * @param pPrevNode : Pointer to the new node position in the linked list or zero to insert the new node - * at the end of the list - * - * @retval HAL status - */ -HAL_StatusTypeDef HAL_MDMA_LinkedList_AddNode(MDMA_HandleTypeDef *hmdma, MDMA_LinkNodeTypeDef *pNewNode, MDMA_LinkNodeTypeDef *pPrevNode) -{ - MDMA_LinkNodeTypeDef *pNode; - uint32_t counter = 0, nodeInserted = 0; - HAL_StatusTypeDef hal_status = HAL_OK; - - /* Check the MDMA peripheral handle */ - if((hmdma == NULL) || (pNewNode == NULL)) - { - return HAL_ERROR; - } - - /* Process locked */ - __HAL_LOCK(hmdma); - - if(HAL_MDMA_STATE_READY == hmdma->State) - { - /* Change MDMA peripheral state */ - hmdma->State = HAL_MDMA_STATE_BUSY; - - /* Check if this is the first node (after the Inititlization node) */ - if((uint32_t)hmdma->FirstLinkedListNodeAddress == 0U) - { - if(pPrevNode == NULL) - { - /* if this is the first node after the initialization - connect this node to the node 0 by updating - the MDMA channel CLAR register to this node address */ - hmdma->Instance->CLAR = (uint32_t)pNewNode; - /* Set the MDMA handle First linked List node*/ - hmdma->FirstLinkedListNodeAddress = pNewNode; - - /*reset New node link */ - pNewNode->CLAR = 0; - - /* Update the Handle last node address */ - hmdma->LastLinkedListNodeAddress = pNewNode; - - hmdma->LinkedListNodeCounter = 1; - } - else - { - hal_status = HAL_ERROR; - } - } - else if(hmdma->FirstLinkedListNodeAddress != pNewNode) - { - /* Check if the node to insert already exists*/ - pNode = hmdma->FirstLinkedListNodeAddress; - while((counter < hmdma->LinkedListNodeCounter) && (hal_status == HAL_OK)) - { - if(pNode->CLAR == (uint32_t)pNewNode) - { - hal_status = HAL_ERROR; /* error this node already exist in the linked list and it is not first node */ - } - pNode = (MDMA_LinkNodeTypeDef *)pNode->CLAR; - counter++; - } - - if(hal_status == HAL_OK) - { - /* Check if the previous node is the last one in the current list or zero */ - if((pPrevNode == hmdma->LastLinkedListNodeAddress) || (pPrevNode == NULL)) - { - /* insert the new node at the end of the list */ - pNewNode->CLAR = hmdma->LastLinkedListNodeAddress->CLAR; - hmdma->LastLinkedListNodeAddress->CLAR = (uint32_t)pNewNode; - /* Update the Handle last node address */ - hmdma->LastLinkedListNodeAddress = pNewNode; - /* Increment the linked list node counter */ - hmdma->LinkedListNodeCounter++; - } - else - { - /*insert the new node after the pPreviousNode node */ - pNode = hmdma->FirstLinkedListNodeAddress; - counter = 0; - while((counter < hmdma->LinkedListNodeCounter) && (nodeInserted == 0U)) - { - counter++; - if(pNode == pPrevNode) - { - /*Insert the new node after the previous one */ - pNewNode->CLAR = pNode->CLAR; - pNode->CLAR = (uint32_t)pNewNode; - /* Increment the linked list node counter */ - hmdma->LinkedListNodeCounter++; - nodeInserted = 1; - } - else - { - pNode = (MDMA_LinkNodeTypeDef *)pNode->CLAR; - } - } - - if(nodeInserted == 0U) - { - hal_status = HAL_ERROR; - } - } - } - } - else - { - hal_status = HAL_ERROR; - } - - /* Process unlocked */ - __HAL_UNLOCK(hmdma); - - hmdma->State = HAL_MDMA_STATE_READY; - - return hal_status; - } - else - { - /* Process unlocked */ - __HAL_UNLOCK(hmdma); - - /* Return error status */ - return HAL_BUSY; - } -} - -/** - * @brief Disconnect/Remove a node from the transfer linked list. - * @param hmdma : Pointer to a MDMA_HandleTypeDef structure that contains - * the configuration information for the specified MDMA Channel. - * @param pNode : Pointer to a MDMA_LinkNodeTypeDef structure that contains Linked list node - * to be removed from the list. - * - * @retval HAL status - */ -HAL_StatusTypeDef HAL_MDMA_LinkedList_RemoveNode(MDMA_HandleTypeDef *hmdma, MDMA_LinkNodeTypeDef *pNode) -{ - MDMA_LinkNodeTypeDef *ptmpNode; - uint32_t counter = 0, nodeDeleted = 0; - HAL_StatusTypeDef hal_status = HAL_OK; - - /* Check the MDMA peripheral handle */ - if((hmdma == NULL) || (pNode == NULL)) - { - return HAL_ERROR; - } - - /* Process locked */ - __HAL_LOCK(hmdma); - - if(HAL_MDMA_STATE_READY == hmdma->State) - { - /* Change MDMA peripheral state */ - hmdma->State = HAL_MDMA_STATE_BUSY; - - /* If first and last node are null (no nodes in the list) : return error*/ - if(((uint32_t)hmdma->FirstLinkedListNodeAddress == 0U) || ((uint32_t)hmdma->LastLinkedListNodeAddress == 0U) || (hmdma->LinkedListNodeCounter == 0U)) - { - hal_status = HAL_ERROR; - } - else if(hmdma->FirstLinkedListNodeAddress == pNode) /* Deleting first node */ - { - /* Delete 1st node */ - if(hmdma->LastLinkedListNodeAddress == pNode) - { - /*if the last node is at the same time the first one (1 single node after the init node 0) - then update the last node too */ - - hmdma->FirstLinkedListNodeAddress = 0; - hmdma->LastLinkedListNodeAddress = 0; - hmdma->LinkedListNodeCounter = 0; - - hmdma->Instance->CLAR = 0; - } - else - { - if((uint32_t)hmdma->FirstLinkedListNodeAddress == hmdma->LastLinkedListNodeAddress->CLAR) - { - /* if last node is looping to first (circular list) one update the last node connection */ - hmdma->LastLinkedListNodeAddress->CLAR = pNode->CLAR; - } - - /* if deleting the first node after the initialization - connect the next node to the node 0 by updating - the MDMA channel CLAR register to this node address */ - hmdma->Instance->CLAR = pNode->CLAR; - hmdma->FirstLinkedListNodeAddress = (MDMA_LinkNodeTypeDef *)hmdma->Instance->CLAR; - /* Update the Handle node counter */ - hmdma->LinkedListNodeCounter--; - } - } - else /* Deleting any other node */ - { - /*Deleted node is not the first one : find it */ - ptmpNode = hmdma->FirstLinkedListNodeAddress; - while((counter < hmdma->LinkedListNodeCounter) && (nodeDeleted == 0U)) - { - counter++; - if(ptmpNode->CLAR == ((uint32_t)pNode)) - { - /* if deleting the last node */ - if(pNode == hmdma->LastLinkedListNodeAddress) - { - /*Update the linked list last node address in the handle*/ - hmdma->LastLinkedListNodeAddress = ptmpNode; - } - /* update the next node link after deleting pMDMA_LinkedListNode */ - ptmpNode->CLAR = pNode->CLAR; - nodeDeleted = 1; - /* Update the Handle node counter */ - hmdma->LinkedListNodeCounter--; - } - else - { - ptmpNode = (MDMA_LinkNodeTypeDef *)ptmpNode->CLAR; - } - } - - if(nodeDeleted == 0U) - { - /* last node reashed without finding the node to delete : return error */ - hal_status = HAL_ERROR; - } - } - - /* Process unlocked */ - __HAL_UNLOCK(hmdma); - - hmdma->State = HAL_MDMA_STATE_READY; - - return hal_status; - } - else - { - /* Process unlocked */ - __HAL_UNLOCK(hmdma); - - /* Return error status */ - return HAL_BUSY; - } -} - -/** - * @brief Make the linked list circular by connecting the last node to the first. - * @param hmdma : Pointer to a MDMA_HandleTypeDef structure that contains - * the configuration information for the specified MDMA Channel. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_MDMA_LinkedList_EnableCircularMode(MDMA_HandleTypeDef *hmdma) -{ - HAL_StatusTypeDef hal_status = HAL_OK; - - /* Check the MDMA peripheral handle */ - if(hmdma == NULL) - { - return HAL_ERROR; - } - - /* Process locked */ - __HAL_LOCK(hmdma); - - if(HAL_MDMA_STATE_READY == hmdma->State) - { - /* Change MDMA peripheral state */ - hmdma->State = HAL_MDMA_STATE_BUSY; - - /* If first and last node are null (no nodes in the list) : return error*/ - if(((uint32_t)hmdma->FirstLinkedListNodeAddress == 0U) || ((uint32_t)hmdma->LastLinkedListNodeAddress == 0U) || (hmdma->LinkedListNodeCounter == 0U)) - { - hal_status = HAL_ERROR; - } - else - { - /* to enable circular mode Last Node should be connected to first node */ - hmdma->LastLinkedListNodeAddress->CLAR = (uint32_t)hmdma->FirstLinkedListNodeAddress; - } - - } - /* Process unlocked */ - __HAL_UNLOCK(hmdma); - - hmdma->State = HAL_MDMA_STATE_READY; - - return hal_status; -} - -/** - * @brief Disable the linked list circular mode by setting the last node connection to null - * @param hmdma : Pointer to a MDMA_HandleTypeDef structure that contains - * the configuration information for the specified MDMA Channel. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_MDMA_LinkedList_DisableCircularMode(MDMA_HandleTypeDef *hmdma) -{ - HAL_StatusTypeDef hal_status = HAL_OK; - - /* Check the MDMA peripheral handle */ - if(hmdma == NULL) - { - return HAL_ERROR; - } - - /* Process locked */ - __HAL_LOCK(hmdma); - - if(HAL_MDMA_STATE_READY == hmdma->State) - { - /* Change MDMA peripheral state */ - hmdma->State = HAL_MDMA_STATE_BUSY; - - /* If first and last node are null (no nodes in the list) : return error*/ - if(((uint32_t)hmdma->FirstLinkedListNodeAddress == 0U) || ((uint32_t)hmdma->LastLinkedListNodeAddress == 0U) || (hmdma->LinkedListNodeCounter == 0U)) - { - hal_status = HAL_ERROR; - } - else - { - /* to disable circular mode Last Node should be connected to NULL */ - hmdma->LastLinkedListNodeAddress->CLAR = 0; - } - - } - /* Process unlocked */ - __HAL_UNLOCK(hmdma); - - hmdma->State = HAL_MDMA_STATE_READY; - - return hal_status; -} - -/** - * @} - */ - -/** @addtogroup MDMA_Exported_Functions_Group3 - * -@verbatim - =============================================================================== - ##### IO operation functions ##### - =============================================================================== - [..] This section provides functions allowing to: - (+) Configure the source, destination address and data length and Start MDMA transfer - (+) Configure the source, destination address and data length and - Start MDMA transfer with interrupt - (+) Abort MDMA transfer - (+) Poll for transfer complete - (+) Generate a SW request (when Request is set to MDMA_REQUEST_SW) - (+) Handle MDMA interrupt request - -@endverbatim - * @{ - */ - -/** - * @brief Starts the MDMA Transfer. - * @param hmdma : pointer to a MDMA_HandleTypeDef structure that contains - * the configuration information for the specified MDMA Channel. - * @param SrcAddress : The source memory Buffer address - * @param DstAddress : The destination memory Buffer address - * @param BlockDataLength : The length of a block transfer in bytes - * @param BlockCount : The number of a blocks to be transfer - * @retval HAL status - */ -HAL_StatusTypeDef HAL_MDMA_Start(MDMA_HandleTypeDef *hmdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t BlockDataLength, uint32_t BlockCount) -{ - /* Check the parameters */ - assert_param(IS_MDMA_TRANSFER_LENGTH(BlockDataLength)); - assert_param(IS_MDMA_BLOCK_COUNT(BlockCount)); - - /* Check the MDMA peripheral handle */ - if(hmdma == NULL) - { - return HAL_ERROR; - } - - /* Process locked */ - __HAL_LOCK(hmdma); - - if(HAL_MDMA_STATE_READY == hmdma->State) - { - /* Change MDMA peripheral state */ - hmdma->State = HAL_MDMA_STATE_BUSY; - - /* Initialize the error code */ - hmdma->ErrorCode = HAL_MDMA_ERROR_NONE; - - /* Disable the peripheral */ - __HAL_MDMA_DISABLE(hmdma); - - /* Configure the source, destination address and the data length */ - MDMA_SetConfig(hmdma, SrcAddress, DstAddress, BlockDataLength, BlockCount); - - /* Enable the Peripheral */ - __HAL_MDMA_ENABLE(hmdma); - - if(hmdma->Init.Request == MDMA_REQUEST_SW) - { - /* activate If SW request mode*/ - hmdma->Instance->CCR |= MDMA_CCR_SWRQ; - } - } - else - { - /* Process unlocked */ - __HAL_UNLOCK(hmdma); - - /* Return error status */ - return HAL_BUSY; - } - - return HAL_OK; -} - -/** - * @brief Starts the MDMA Transfer with interrupts enabled. - * @param hmdma : pointer to a MDMA_HandleTypeDef structure that contains - * the configuration information for the specified MDMA Channel. - * @param SrcAddress : The source memory Buffer address - * @param DstAddress : The destination memory Buffer address - * @param BlockDataLength : The length of a block transfer in bytes - * @param BlockCount : The number of a blocks to be transfer - * @retval HAL status - */ -HAL_StatusTypeDef HAL_MDMA_Start_IT(MDMA_HandleTypeDef *hmdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t BlockDataLength, uint32_t BlockCount) -{ - /* Check the parameters */ - assert_param(IS_MDMA_TRANSFER_LENGTH(BlockDataLength)); - assert_param(IS_MDMA_BLOCK_COUNT(BlockCount)); - - /* Check the MDMA peripheral handle */ - if(hmdma == NULL) - { - return HAL_ERROR; - } - - /* Process locked */ - __HAL_LOCK(hmdma); - - if(HAL_MDMA_STATE_READY == hmdma->State) - { - /* Change MDMA peripheral state */ - hmdma->State = HAL_MDMA_STATE_BUSY; - - /* Initialize the error code */ - hmdma->ErrorCode = HAL_MDMA_ERROR_NONE; - - /* Disable the peripheral */ - __HAL_MDMA_DISABLE(hmdma); - - /* Configure the source, destination address and the data length */ - MDMA_SetConfig(hmdma, SrcAddress, DstAddress, BlockDataLength, BlockCount); - - /* Enable Common interrupts i.e Transfer Error IT and Channel Transfer Complete IT*/ - __HAL_MDMA_ENABLE_IT(hmdma, (MDMA_IT_TE | MDMA_IT_CTC)); - - if(hmdma->XferBlockCpltCallback != NULL) - { - /* if Block transfer complete Callback is set enable the corresponding IT*/ - __HAL_MDMA_ENABLE_IT(hmdma, MDMA_IT_BT); - } - - if(hmdma->XferRepeatBlockCpltCallback != NULL) - { - /* if Repeated Block transfer complete Callback is set enable the corresponding IT*/ - __HAL_MDMA_ENABLE_IT(hmdma, MDMA_IT_BRT); - } - - if(hmdma->XferBufferCpltCallback != NULL) - { - /* if buffer transfer complete Callback is set enable the corresponding IT*/ - __HAL_MDMA_ENABLE_IT(hmdma, MDMA_IT_BFTC); - } - - /* Enable the Peripheral */ - __HAL_MDMA_ENABLE(hmdma); - - if(hmdma->Init.Request == MDMA_REQUEST_SW) - { - /* activate If SW request mode*/ - hmdma->Instance->CCR |= MDMA_CCR_SWRQ; - } - } - else - { - /* Process unlocked */ - __HAL_UNLOCK(hmdma); - - /* Return error status */ - return HAL_BUSY; - } - - return HAL_OK; -} - -/** - * @brief Aborts the MDMA Transfer. - * @param hmdma : pointer to a MDMA_HandleTypeDef structure that contains - * the configuration information for the specified MDMA Channel. - * - * @note After disabling a MDMA Channel, a check for wait until the MDMA Channel is - * effectively disabled is added. If a Channel is disabled - * while a data transfer is ongoing, the current data will be transferred - * and the Channel will be effectively disabled only after the transfer of - * this single data is finished. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_MDMA_Abort(MDMA_HandleTypeDef *hmdma) -{ - uint32_t tickstart = HAL_GetTick(); - - /* Check the MDMA peripheral handle */ - if(hmdma == NULL) - { - return HAL_ERROR; - } - - if(HAL_MDMA_STATE_BUSY != hmdma->State) - { - hmdma->ErrorCode = HAL_MDMA_ERROR_NO_XFER; - - /* Process Unlocked */ - __HAL_UNLOCK(hmdma); - - return HAL_ERROR; - } - else - { - /* Disable all the transfer interrupts */ - __HAL_MDMA_DISABLE_IT(hmdma, (MDMA_IT_TE | MDMA_IT_CTC | MDMA_IT_BT | MDMA_IT_BRT | MDMA_IT_BFTC)); - - /* Disable the channel */ - __HAL_MDMA_DISABLE(hmdma); - - /* Check if the MDMA Channel is effectively disabled */ - while((hmdma->Instance->CCR & MDMA_CCR_EN) != 0U) - { - /* Check for the Timeout */ - if( (HAL_GetTick() - tickstart ) > HAL_TIMEOUT_MDMA_ABORT) - { - /* Update error code */ - hmdma->ErrorCode |= HAL_MDMA_ERROR_TIMEOUT; - - /* Process Unlocked */ - __HAL_UNLOCK(hmdma); - - /* Change the MDMA state */ - hmdma->State = HAL_MDMA_STATE_ERROR; - - return HAL_ERROR; - } - } - - /* Clear all interrupt flags */ - __HAL_MDMA_CLEAR_FLAG(hmdma, (MDMA_FLAG_TE | MDMA_FLAG_CTC | MDMA_FLAG_BT | MDMA_FLAG_BRT | MDMA_FLAG_BFTC)); - - /* Process Unlocked */ - __HAL_UNLOCK(hmdma); - - /* Change the MDMA state*/ - hmdma->State = HAL_MDMA_STATE_READY; - } - - return HAL_OK; -} - -/** - * @brief Aborts the MDMA Transfer in Interrupt mode. - * @param hmdma : pointer to a MDMA_HandleTypeDef structure that contains - * the configuration information for the specified MDMA Channel. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_MDMA_Abort_IT(MDMA_HandleTypeDef *hmdma) -{ - /* Check the MDMA peripheral handle */ - if(hmdma == NULL) - { - return HAL_ERROR; - } - - if(HAL_MDMA_STATE_BUSY != hmdma->State) - { - /* No transfer ongoing */ - hmdma->ErrorCode = HAL_MDMA_ERROR_NO_XFER; - - return HAL_ERROR; - } - else - { - /* Set Abort State */ - hmdma->State = HAL_MDMA_STATE_ABORT; - - /* Disable the stream */ - __HAL_MDMA_DISABLE(hmdma); - } - - return HAL_OK; -} - -/** - * @brief Polling for transfer complete. - * @param hmdma: pointer to a MDMA_HandleTypeDef structure that contains - * the configuration information for the specified MDMA Channel. - * @param CompleteLevel: Specifies the MDMA level complete. - * @param Timeout: Timeout duration. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_MDMA_PollForTransfer(MDMA_HandleTypeDef *hmdma, HAL_MDMA_LevelCompleteTypeDef CompleteLevel, uint32_t Timeout) -{ - uint32_t levelFlag, errorFlag; - uint32_t tickstart; - - /* Check the parameters */ - assert_param(IS_MDMA_LEVEL_COMPLETE(CompleteLevel)); - - /* Check the MDMA peripheral handle */ - if(hmdma == NULL) - { - return HAL_ERROR; - } - - if(HAL_MDMA_STATE_BUSY != hmdma->State) - { - /* No transfer ongoing */ - hmdma->ErrorCode = HAL_MDMA_ERROR_NO_XFER; - - return HAL_ERROR; - } - - /* Get the level transfer complete flag */ - levelFlag = ((CompleteLevel == HAL_MDMA_FULL_TRANSFER) ? MDMA_FLAG_CTC : \ - (CompleteLevel == HAL_MDMA_BUFFER_TRANSFER)? MDMA_FLAG_BFTC : \ - (CompleteLevel == HAL_MDMA_BLOCK_TRANSFER) ? MDMA_FLAG_BT : \ - MDMA_FLAG_BRT); - - - /* Get timeout */ - tickstart = HAL_GetTick(); - - while(__HAL_MDMA_GET_FLAG(hmdma, levelFlag) == 0U) - { - if((__HAL_MDMA_GET_FLAG(hmdma, MDMA_FLAG_TE) != 0U)) - { - /* Get the transfer error source flag */ - errorFlag = hmdma->Instance->CESR; - - if((errorFlag & MDMA_CESR_TED) == 0U) - { - /* Update error code : Read Transfer error */ - hmdma->ErrorCode |= HAL_MDMA_ERROR_READ_XFER; - } - else - { - /* Update error code : Write Transfer error */ - hmdma->ErrorCode |= HAL_MDMA_ERROR_WRITE_XFER; - } - - if((errorFlag & MDMA_CESR_TEMD) != 0U) - { - /* Update error code : Error Mask Data */ - hmdma->ErrorCode |= HAL_MDMA_ERROR_MASK_DATA; - } - - if((errorFlag & MDMA_CESR_TELD) != 0U) - { - /* Update error code : Error Linked list */ - hmdma->ErrorCode |= HAL_MDMA_ERROR_LINKED_LIST; - } - - if((errorFlag & MDMA_CESR_ASE) != 0U) - { - /* Update error code : Address/Size alignment error */ - hmdma->ErrorCode |= HAL_MDMA_ERROR_ALIGNMENT; - } - - if((errorFlag & MDMA_CESR_BSE) != 0U) - { - /* Update error code : Block Size error */ - hmdma->ErrorCode |= HAL_MDMA_ERROR_BLOCK_SIZE; - } - - (void) HAL_MDMA_Abort(hmdma); /* if error then abort the current transfer */ - - /* - Note that the Abort function will - - Clear all transfer flags - - Unlock - - Set the State - */ - - return HAL_ERROR; - - } - - /* Check for the Timeout */ - if(Timeout != HAL_MAX_DELAY) - { - if(((HAL_GetTick() - tickstart ) > Timeout) || (Timeout == 0U)) - { - /* Update error code */ - hmdma->ErrorCode |= HAL_MDMA_ERROR_TIMEOUT; - - (void) HAL_MDMA_Abort(hmdma); /* if timeout then abort the current transfer */ - - /* - Note that the Abort function will - - Clear all transfer flags - - Unlock - - Set the State - */ - - return HAL_ERROR; - } - } - } - - /* Clear the transfer level flag */ - if(CompleteLevel == HAL_MDMA_BUFFER_TRANSFER) - { - __HAL_MDMA_CLEAR_FLAG(hmdma, MDMA_FLAG_BFTC); - - } - else if(CompleteLevel == HAL_MDMA_BLOCK_TRANSFER) - { - __HAL_MDMA_CLEAR_FLAG(hmdma, (MDMA_FLAG_BFTC | MDMA_FLAG_BT)); - - } - else if(CompleteLevel == HAL_MDMA_REPEAT_BLOCK_TRANSFER) - { - __HAL_MDMA_CLEAR_FLAG(hmdma, (MDMA_FLAG_BFTC | MDMA_FLAG_BT | MDMA_FLAG_BRT)); - } - else if(CompleteLevel == HAL_MDMA_FULL_TRANSFER) - { - __HAL_MDMA_CLEAR_FLAG(hmdma, (MDMA_FLAG_BRT | MDMA_FLAG_BT | MDMA_FLAG_BFTC | MDMA_FLAG_CTC)); - - /* Process unlocked */ - __HAL_UNLOCK(hmdma); - - hmdma->State = HAL_MDMA_STATE_READY; - } - else - { - return HAL_ERROR; - } - - return HAL_OK; -} - -/** - * @brief Generate an MDMA SW request trigger to activate the request on the given Channel. - * @param hmdma: pointer to a MDMA_HandleTypeDef structure that contains - * the configuration information for the specified MDMA Stream. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_MDMA_GenerateSWRequest(MDMA_HandleTypeDef *hmdma) -{ - uint32_t request_mode; - - /* Check the MDMA peripheral handle */ - if(hmdma == NULL) - { - return HAL_ERROR; - } - - /* Get the softawre request mode */ - request_mode = hmdma->Instance->CTCR & MDMA_CTCR_SWRM; - - if((hmdma->Instance->CCR & MDMA_CCR_EN) == 0U) - { - /* if no Transfer on going (MDMA enable bit not set) return error */ - hmdma->ErrorCode = HAL_MDMA_ERROR_NO_XFER; - - return HAL_ERROR; - } - else if(((hmdma->Instance->CISR & MDMA_CISR_CRQA) != 0U) || (request_mode == 0U)) - { - /* if an MDMA ongoing request has not yet end or if request mode is not SW request return error */ - hmdma->ErrorCode = HAL_MDMA_ERROR_BUSY; - - return HAL_ERROR; - } - else - { - /* Set the SW request bit to activate the request on the Channel */ - hmdma->Instance->CCR |= MDMA_CCR_SWRQ; - - return HAL_OK; - } -} - -/** - * @brief Handles MDMA interrupt request. - * @param hmdma: pointer to a MDMA_HandleTypeDef structure that contains - * the configuration information for the specified MDMA Channel. - * @retval None - */ -void HAL_MDMA_IRQHandler(MDMA_HandleTypeDef *hmdma) -{ - __IO uint32_t count = 0; - uint32_t timeout = SystemCoreClock / 9600U; - - uint32_t generalIntFlag, errorFlag; - - /* General Interrupt Flag management ****************************************/ - generalIntFlag = 1UL << ((((uint32_t)hmdma->Instance - (uint32_t)(MDMA_Channel0))/HAL_MDMA_CHANNEL_SIZE) & 0x1FU); - if((MDMA->GISR0 & generalIntFlag) == 0U) - { - return; /* the General interrupt flag for the current channel is down , nothing to do */ - } - - /* Transfer Error Interrupt management ***************************************/ - if((__HAL_MDMA_GET_FLAG(hmdma, MDMA_FLAG_TE) != 0U)) - { - if(__HAL_MDMA_GET_IT_SOURCE(hmdma, MDMA_IT_TE) != 0U) - { - /* Disable the transfer error interrupt */ - __HAL_MDMA_DISABLE_IT(hmdma, MDMA_IT_TE); - - /* Get the transfer error source flag */ - errorFlag = hmdma->Instance->CESR; - - if((errorFlag & MDMA_CESR_TED) == 0U) - { - /* Update error code : Read Transfer error */ - hmdma->ErrorCode |= HAL_MDMA_ERROR_READ_XFER; - } - else - { - /* Update error code : Write Transfer error */ - hmdma->ErrorCode |= HAL_MDMA_ERROR_WRITE_XFER; - } - - if((errorFlag & MDMA_CESR_TEMD) != 0U) - { - /* Update error code : Error Mask Data */ - hmdma->ErrorCode |= HAL_MDMA_ERROR_MASK_DATA; - } - - if((errorFlag & MDMA_CESR_TELD) != 0U) - { - /* Update error code : Error Linked list */ - hmdma->ErrorCode |= HAL_MDMA_ERROR_LINKED_LIST; - } - - if((errorFlag & MDMA_CESR_ASE) != 0U) - { - /* Update error code : Address/Size alignment error */ - hmdma->ErrorCode |= HAL_MDMA_ERROR_ALIGNMENT; - } - - if((errorFlag & MDMA_CESR_BSE) != 0U) - { - /* Update error code : Block Size error error */ - hmdma->ErrorCode |= HAL_MDMA_ERROR_BLOCK_SIZE; - } - - /* Clear the transfer error flags */ - __HAL_MDMA_CLEAR_FLAG(hmdma, MDMA_FLAG_TE); - } - } - - /* Buffer Transfer Complete Interrupt management ******************************/ - if((__HAL_MDMA_GET_FLAG(hmdma, MDMA_FLAG_BFTC) != 0U)) - { - if(__HAL_MDMA_GET_IT_SOURCE(hmdma, MDMA_IT_BFTC) != 0U) - { - /* Clear the buffer transfer complete flag */ - __HAL_MDMA_CLEAR_FLAG(hmdma, MDMA_FLAG_BFTC); - - if(hmdma->XferBufferCpltCallback != NULL) - { - /* Buffer transfer callback */ - hmdma->XferBufferCpltCallback(hmdma); - } - } - } - - /* Block Transfer Complete Interrupt management ******************************/ - if((__HAL_MDMA_GET_FLAG(hmdma, MDMA_FLAG_BT) != 0U)) - { - if(__HAL_MDMA_GET_IT_SOURCE(hmdma, MDMA_IT_BT) != 0U) - { - /* Clear the block transfer complete flag */ - __HAL_MDMA_CLEAR_FLAG(hmdma, MDMA_FLAG_BT); - - if(hmdma->XferBlockCpltCallback != NULL) - { - /* Block transfer callback */ - hmdma->XferBlockCpltCallback(hmdma); - } - } - } - - /* Repeated Block Transfer Complete Interrupt management ******************************/ - if((__HAL_MDMA_GET_FLAG(hmdma, MDMA_FLAG_BRT) != 0U)) - { - if(__HAL_MDMA_GET_IT_SOURCE(hmdma, MDMA_IT_BRT) != 0U) - { - /* Clear the repeat block transfer complete flag */ - __HAL_MDMA_CLEAR_FLAG(hmdma, MDMA_FLAG_BRT); - - if(hmdma->XferRepeatBlockCpltCallback != NULL) - { - /* Repeated Block transfer callback */ - hmdma->XferRepeatBlockCpltCallback(hmdma); - } - } - } - - /* Channel Transfer Complete Interrupt management ***********************************/ - if((__HAL_MDMA_GET_FLAG(hmdma, MDMA_FLAG_CTC) != 0U)) - { - if(__HAL_MDMA_GET_IT_SOURCE(hmdma, MDMA_IT_CTC) != 0U) - { - /* Disable all the transfer interrupts */ - __HAL_MDMA_DISABLE_IT(hmdma, (MDMA_IT_TE | MDMA_IT_CTC | MDMA_IT_BT | MDMA_IT_BRT | MDMA_IT_BFTC)); - - if(HAL_MDMA_STATE_ABORT == hmdma->State) - { - /* Process Unlocked */ - __HAL_UNLOCK(hmdma); - - /* Change the DMA state */ - hmdma->State = HAL_MDMA_STATE_READY; - - if(hmdma->XferAbortCallback != NULL) - { - hmdma->XferAbortCallback(hmdma); - } - return; - } - - /* Clear the Channel Transfer Complete flag */ - __HAL_MDMA_CLEAR_FLAG(hmdma, MDMA_FLAG_CTC); - - /* Process Unlocked */ - __HAL_UNLOCK(hmdma); - - /* Change MDMA peripheral state */ - hmdma->State = HAL_MDMA_STATE_READY; - - if(hmdma->XferCpltCallback != NULL) - { - /* Channel Transfer Complete callback */ - hmdma->XferCpltCallback(hmdma); - } - } - } - - /* manage error case */ - if(hmdma->ErrorCode != HAL_MDMA_ERROR_NONE) - { - hmdma->State = HAL_MDMA_STATE_ABORT; - - /* Disable the channel */ - __HAL_MDMA_DISABLE(hmdma); - - do - { - if (++count > timeout) - { - break; - } - } - while((hmdma->Instance->CCR & MDMA_CCR_EN) != 0U); - - /* Process Unlocked */ - __HAL_UNLOCK(hmdma); - - if((hmdma->Instance->CCR & MDMA_CCR_EN) != 0U) - { - /* Change the MDMA state to error if MDMA disable fails */ - hmdma->State = HAL_MDMA_STATE_ERROR; - } - else - { - /* Change the MDMA state to Ready if MDMA disable success */ - hmdma->State = HAL_MDMA_STATE_READY; - } - - - if (hmdma->XferErrorCallback != NULL) - { - /* Transfer error callback */ - hmdma->XferErrorCallback(hmdma); - } - } -} - -/** - * @} - */ - -/** @addtogroup MDMA_Exported_Functions_Group4 - * -@verbatim - =============================================================================== - ##### State and Errors functions ##### - =============================================================================== - [..] - This subsection provides functions allowing to - (+) Check the MDMA state - (+) Get error code - -@endverbatim - * @{ - */ - -/** - * @brief Returns the MDMA state. - * @param hmdma: pointer to a MDMA_HandleTypeDef structure that contains - * the configuration information for the specified MDMA Channel. - * @retval HAL state - */ -HAL_MDMA_StateTypeDef HAL_MDMA_GetState(MDMA_HandleTypeDef *hmdma) -{ - return hmdma->State; -} - -/** - * @brief Return the MDMA error code - * @param hmdma : pointer to a MDMA_HandleTypeDef structure that contains - * the configuration information for the specified MDMA Channel. - * @retval MDMA Error Code - */ -uint32_t HAL_MDMA_GetError(MDMA_HandleTypeDef *hmdma) -{ - return hmdma->ErrorCode; -} - -/** - * @} - */ - -/** - * @} - */ - -/** @addtogroup MDMA_Private_Functions - * @{ - */ - -/** - * @brief Sets the MDMA Transfer parameter. - * @param hmdma: pointer to a MDMA_HandleTypeDef structure that contains - * the configuration information for the specified MDMA Channel. - * @param SrcAddress: The source memory Buffer address - * @param DstAddress: The destination memory Buffer address - * @param BlockDataLength : The length of a block transfer in bytes - * @param BlockCount: The number of blocks to be transferred - * @retval HAL status - */ -static void MDMA_SetConfig(MDMA_HandleTypeDef *hmdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t BlockDataLength, uint32_t BlockCount) -{ - uint32_t addressMask; - - /* Configure the MDMA Channel data length */ - MODIFY_REG(hmdma->Instance->CBNDTR ,MDMA_CBNDTR_BNDT, (BlockDataLength & MDMA_CBNDTR_BNDT)); - - /* Configure the MDMA block repeat count */ - MODIFY_REG(hmdma->Instance->CBNDTR , MDMA_CBNDTR_BRC , ((BlockCount - 1U) << MDMA_CBNDTR_BRC_Pos) & MDMA_CBNDTR_BRC); - - /* Clear all interrupt flags */ - __HAL_MDMA_CLEAR_FLAG(hmdma, MDMA_FLAG_TE | MDMA_FLAG_CTC | MDMA_CISR_BRTIF | MDMA_CISR_BTIF | MDMA_CISR_TCIF); - - /* Configure MDMA Channel destination address */ - hmdma->Instance->CDAR = DstAddress; - - /* Configure MDMA Channel Source address */ - hmdma->Instance->CSAR = SrcAddress; - - addressMask = SrcAddress & 0xFF000000U; - if((addressMask == 0x20000000U) || (addressMask == 0x00000000U)) - { - /*The AHBSbus is used as source (read operation) on channel x */ - hmdma->Instance->CTBR |= MDMA_CTBR_SBUS; - } - else - { - /*The AXI bus is used as source (read operation) on channel x */ - hmdma->Instance->CTBR &= (~MDMA_CTBR_SBUS); - } - - addressMask = DstAddress & 0xFF000000U; - if((addressMask == 0x20000000U) || (addressMask == 0x00000000U)) - { - /*The AHB bus is used as destination (write operation) on channel x */ - hmdma->Instance->CTBR |= MDMA_CTBR_DBUS; - } - else - { - /*The AXI bus is used as destination (write operation) on channel x */ - hmdma->Instance->CTBR &= (~MDMA_CTBR_DBUS); - } - - /* Set the linked list register to the first node of the list */ - hmdma->Instance->CLAR = (uint32_t)hmdma->FirstLinkedListNodeAddress; -} - -/** - * @brief Initializes the MDMA handle according to the specified - * parameters in the MDMA_InitTypeDef - * @param hmdma: pointer to a MDMA_HandleTypeDef structure that contains - * the configuration information for the specified MDMA Channel. - * @retval None - */ -static void MDMA_Init(MDMA_HandleTypeDef *hmdma) -{ - uint32_t blockoffset; - - /* Prepare the MDMA Channel configuration */ - hmdma->Instance->CCR = hmdma->Init.Priority | hmdma->Init.Endianness; - - /* Write new CTCR Register value */ - hmdma->Instance->CTCR = hmdma->Init.SourceInc | hmdma->Init.DestinationInc | \ - hmdma->Init.SourceDataSize | hmdma->Init.DestDataSize | \ - hmdma->Init.DataAlignment | hmdma->Init.SourceBurst | \ - hmdma->Init.DestBurst | \ - ((hmdma->Init.BufferTransferLength - 1U) << MDMA_CTCR_TLEN_Pos) | \ - hmdma->Init.TransferTriggerMode; - - /* If SW request set the CTCR register to SW Request Mode */ - if(hmdma->Init.Request == MDMA_REQUEST_SW) - { - /* - -If the request is done by SW : BWM could be set to 1 or 0. - -If the request is done by a peripheral : - If mask address not set (0) => BWM must be set to 0 - If mask address set (different than 0) => BWM could be set to 1 or 0 - */ - hmdma->Instance->CTCR |= (MDMA_CTCR_SWRM | MDMA_CTCR_BWM); - } - - /* Reset CBNDTR Register */ - hmdma->Instance->CBNDTR = 0; - - /* if block source address offset is negative set the Block Repeat Source address Update Mode to decrement */ - if(hmdma->Init.SourceBlockAddressOffset < 0) - { - hmdma->Instance->CBNDTR |= MDMA_CBNDTR_BRSUM; - /* Write new CBRUR Register value : source repeat block offset */ - blockoffset = (uint32_t)(- hmdma->Init.SourceBlockAddressOffset); - hmdma->Instance->CBRUR = (blockoffset & 0x0000FFFFU); - } - else - { - /* Write new CBRUR Register value : source repeat block offset */ - hmdma->Instance->CBRUR = (((uint32_t)hmdma->Init.SourceBlockAddressOffset) & 0x0000FFFFU); - } - - /* If block destination address offset is negative set the Block Repeat destination address Update Mode to decrement */ - if(hmdma->Init.DestBlockAddressOffset < 0) - { - hmdma->Instance->CBNDTR |= MDMA_CBNDTR_BRDUM; - /* Write new CBRUR Register value : destination repeat block offset */ - blockoffset = (uint32_t)(- hmdma->Init.DestBlockAddressOffset); - hmdma->Instance->CBRUR |= ((blockoffset & 0x0000FFFFU) << MDMA_CBRUR_DUV_Pos); - } - else - { - /*write new CBRUR Register value : destination repeat block offset */ - hmdma->Instance->CBRUR |= ((((uint32_t)hmdma->Init.DestBlockAddressOffset) & 0x0000FFFFU) << MDMA_CBRUR_DUV_Pos); - } - - /* if HW request set the HW request and the requet CleraMask and ClearData MaskData, */ - if(hmdma->Init.Request != MDMA_REQUEST_SW) - { - /* Set the HW request in CTRB register */ - hmdma->Instance->CTBR = hmdma->Init.Request & MDMA_CTBR_TSEL; - } - else /* SW request : reset the CTBR register */ - { - hmdma->Instance->CTBR = 0; - } - - /* Write Link Address Register */ - hmdma->Instance->CLAR = 0; -} - -/** - * @} - */ - -#endif /* HAL_MDMA_MODULE_ENABLED */ -/** - * @} - */ - -/** - * @} - */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c b/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c deleted file mode 100644 index aeb9933..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c +++ /dev/null @@ -1,873 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_pwr.c - * @author MCD Application Team - * @brief PWR HAL module driver. - * This file provides firmware functions to manage the following - * functionalities of the Power Controller (PWR) peripheral: - * + Initialization and de-initialization functions. - * + Peripheral Control functions. - * + Interrupt Handling functions. - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - @verbatim - ============================================================================== - ##### PWR peripheral overview ##### - ============================================================================== - [..] - (#) The Power control (PWR) provides an overview of the supply architecture - for the different power domains and of the supply configuration - controller. - In the H7 family, the number of power domains is different between - device lines. This difference is due to characteristics of each device. - - (#) Domain architecture overview for the different H7 lines: - (+) Dual core lines are STM32H745, STM32H747, STM32H755 and STM32H757. - These devices have 3 power domains (D1, D2 and D3). - The domain D1 contains a CPU (Cortex-M7), a Flash memory and some - peripherals. The D2 domain contains peripherals and a CPU - (Cortex-M4). The D3 domain contains the system control, I/O logic - and low-power peripherals. - (+) STM32H72x, STM32H73x, STM32H742, STM32H743, STM32H750 and STM32H753 - devices have 3 power domains (D1, D2 and D3). - The domain D1 contains a CPU (Cortex-M7), a Flash memory and some - peripherals. The D2 domain contains peripherals. The D3 domains - contains the system control, I/O logic and low-power peripherals. - (+) STM32H7Axxx and STM32H7Bxxx devices have 2 power domains (CD and SRD). - The core domain (CD) contains a CPU (Cortex-M7), a Flash - memory and peripherals. The SmartRun domain contains the system - control, I/O logic and low-power peripherals. - - (#) Every entity have low power mode as described below : - (#) The CPU low power modes are : - (+) CPU CRUN. - (+) CPU CSLEEP. - (+) CPU CSTOP. - (#) The domain low power modes are : - (+) DRUN. - (+) DSTOP. - (+) DSTANDBY. - (#) The SYSTEM low power modes are : - (+) RUN* : The Run* mode is entered after a POR reset and a wakeup from - Standby. In Run* mode, the performance is limited and the - system supply configuration shall be programmed. The system - enters Run mode only when the ACTVOSRDY bit in PWR control - status register 1 (PWR_CSR1) is set to 1. - (+) RUN. - (+) STOP. - (+) STANDBY. - - ============================================================================== - ##### How to use this driver ##### - ============================================================================== - [..] - (#) Power management peripheral is active by default at startup level in - STM32h7xx lines. - - (#) Call HAL_PWR_EnableBkUpAccess() and HAL_PWR_DisableBkUpAccess() functions - to enable/disable access to the backup domain (RTC registers, RTC backup - data registers and backup SRAM). - - (#) Call HAL_PWR_ConfigPVD() after setting parameters to be configured (event - mode and voltage threshold) in order to set up the Power Voltage Detector, - then use HAL_PWR_EnablePVD() and HAL_PWR_DisablePVD() functions to start - and stop the PVD detection. - (+) PVD level could be one of the following values : - (++) 1V95 - (++) 2V1 - (++) 2V25 - (++) 2V4 - (++) 2V55 - (++) 2V7 - (++) 2V85 - (++) External voltage level - - (#) Call HAL_PWR_EnableWakeUpPin() and HAL_PWR_DisableWakeUpPin() functions - with the right parameter to configure the wake up pin polarity (Low or - High) and to enable and disable it. - - (#) Call HAL_PWR_EnterSLEEPMode() function to enter the current Core in SLEEP - mode. Wake-up from SLEEP mode could be following to an event or an - interrupt according to low power mode intrinsic request called (__WFI() - or __WFE()). - Please ensure to clear all CPU pending events by calling - HAL_PWREx_ClearPendingEvent() function when trying to enter the Cortex-Mx - in SLEEP mode with __WFE() entry. - - (#) Call HAL_PWR_EnterSTOPMode() function to enter the whole system to Stop 0 - mode for single core devices. For dual core devices, this API will enter - the domain (containing Cortex-Mx that executing this function) in DSTOP - mode. According to the used parameter, user could select the regulator to - be kept actif in low power mode and wake-up event type. - Please ensure to clear all CPU pending events by calling - HAL_PWREx_ClearPendingEvent() function when trying to enter the Cortex-Mx - in CSTOP mode with __WFE() entry. - - (#) Call HAL_PWR_EnterSTANDBYMode() function to enter the whole system in - STANDBY mode for single core devices. For dual core devices, this API - will enter the domain (containing Cortex-Mx that executing this function) - in DSTANDBY mode. - - (#) Call HAL_PWR_EnableSleepOnExit() and HAL_PWR_DisableSleepOnExit() APIs to - enable and disable the Cortex-Mx re-entring in SLEEP mode after an - interruption handling is over. - - (#) Call HAL_PWR_EnableSEVOnPend() and HAL_PWR_DisableSEVOnPend() functions - to configure the Cortex-Mx to wake-up after any pending event / interrupt - even if it's disabled or has insufficient priority to cause exception - entry. - - (#) Call HAL_PWR_PVD_IRQHandler() function to handle the PWR PVD interrupt - request. - - *** PWR HAL driver macros list *** - ============================================= - [..] - Below the list of most used macros in PWR HAL driver. - - (+) __HAL_PWR_VOLTAGESCALING_CONFIG() : Configure the main internal - regulator output voltage. - (+) __HAL_PWR_GET_FLAG() : Get the PWR pending flags. - (+) __HAL_PWR_CLEAR_FLAG() : Clear the PWR pending flags. - - @endverbatim - */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @defgroup PWR PWR - * @brief PWR HAL module driver - * @{ - */ - -#ifdef HAL_PWR_MODULE_ENABLED - -/* Private typedef -----------------------------------------------------------*/ -/* Private define ------------------------------------------------------------*/ - -/** @addtogroup PWR_Private_Constants PWR Private Constants - * @{ - */ - -/** @defgroup PWR_PVD_Mode_Mask PWR PVD Mode Mask - * @{ - */ -#if !defined (DUAL_CORE) -#define PVD_MODE_IT (0x00010000U) -#define PVD_MODE_EVT (0x00020000U) -#endif /* !defined (DUAL_CORE) */ - -#define PVD_RISING_EDGE (0x00000001U) -#define PVD_FALLING_EDGE (0x00000002U) -#define PVD_RISING_FALLING_EDGE (0x00000003U) -/** - * @} - */ - -/** - * @} - */ - -/* Private macro -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private function prototypes -----------------------------------------------*/ -/* Private functions ---------------------------------------------------------*/ - -/** @defgroup PWR_Exported_Functions PWR Exported Functions - * @{ - */ - -/** @defgroup PWR_Exported_Functions_Group1 Initialization and De-Initialization Functions - * @brief Initialization and De-Initialization functions - * -@verbatim - =============================================================================== - ##### Initialization and De-Initialization Functions ##### - =============================================================================== - [..] - This section provides functions allowing to deinitialize power peripheral. - - [..] - After system reset, the backup domain (RTC registers, RTC backup data - registers and backup SRAM) is protected against possible unwanted write - accesses. - The HAL_PWR_EnableBkUpAccess() function enables the access to the backup - domain. - The HAL_PWR_DisableBkUpAccess() function disables the access to the backup - domain. - -@endverbatim - * @{ - */ - -/** - * @brief Deinitialize the HAL PWR peripheral registers to their default reset - * values. - * @note This functionality is not available in this product. - * The prototype is kept just to maintain compatibility with other - * products. - * @retval None. - */ -void HAL_PWR_DeInit (void) -{ -} - -/** - * @brief Enable access to the backup domain (RTC registers, RTC backup data - * registers and backup SRAM). - * @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) -{ - /* Enable access to RTC and backup registers */ - SET_BIT (PWR->CR1, PWR_CR1_DBP); -} - -/** - * @brief Disable access to the backup domain (RTC registers, RTC backup data - * registers and backup SRAM). - * @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_DisableBkUpAccess (void) -{ - /* Disable access to RTC and backup registers */ - CLEAR_BIT (PWR->CR1, PWR_CR1_DBP); -} -/** - * @} - */ - -/** @defgroup PWR_Exported_Functions_Group2 Peripheral Control Functions - * @brief Power Control functions - * -@verbatim - =============================================================================== - ##### Peripheral Control Functions ##### - =============================================================================== - [..] - This section provides functions allowing to control power peripheral. - - *** PVD configuration *** - ========================= - [..] - (+) The PVD is used to monitor the VDD power supply by comparing it to a - threshold selected by the PVD Level (PLS[7:0] bits in the PWR_CR1 - register). - - (+) A PVDO flag is available to indicate if VDD is higher or lower - than the PVD threshold. This event is internally connected to the EXTI - line 16 to generate an interrupt if enabled. - It is configurable through __HAL_PWR_PVD_EXTI_ENABLE_IT() macro. - - (+) The PVD is stopped in STANDBY mode. - - *** Wake-up pin configuration *** - ================================= - [..] - (+) Wake-up pin is used to wake up the system from STANDBY mode. - The pin pull is configurable through the WKUPEPR register to be in - No-pull, Pull-up and Pull-down. - The pin polarity is configurable through the WKUPEPR register to be - active on rising or falling edges. - - (+) There are up to six Wake-up pin in the STM32H7 devices family. - - *** Low Power modes configuration *** - ===================================== - [..] - The device present 3 principles low-power modes features: - (+) SLEEP mode : Cortex-Mx is stopped and all PWR domains are remaining - active (Powered and Clocked). - - (+) STOP mode : Cortex-Mx is stopped, clocks are stopped and the - regulator is running. The Main regulator or the LP - regulator could be selected. - - (+) STANDBY mode : All PWR domains enter DSTANDBY mode and the VCORE - supply regulator is powered off. - - *** SLEEP mode *** - ================== - [..] - (+) Entry: - The SLEEP mode is entered by using the HAL_PWR_EnterSLEEPMode(Regulator, - SLEEPEntry) function. - - (++) PWR_SLEEPENTRY_WFI: enter SLEEP mode with WFI instruction. - (++) PWR_SLEEPENTRY_WFE: enter SLEEP mode with WFE instruction. - - -@@- The Regulator parameter is not used for the STM32H7 family - and is kept as parameter just to maintain compatibility with the - lower power families (STM32L). - - (+) Exit: - Any peripheral interrupt acknowledged by the nested vectored interrupt - controller (NVIC) can wake up the device from SLEEP mode. - - *** STOP mode *** - ================= - [..] - In system STOP mode, all clocks in the 1.2V domain are stopped, the PLL, - the HSI, and the HSE RC oscillators are disabled. Internal SRAM and - register contents are preserved. - The voltage regulator can be configured either in normal or low-power mode. - To minimize the consumption in STOP mode, FLASH can be powered off before - entering the STOP mode using the HAL_PWREx_EnableFlashPowerDown() function. - It can be switched on again by software after exiting the STOP mode using - the HAL_PWREx_DisableFlashPowerDown() function. - - (+) Entry: - The STOP mode is entered using the HAL_PWR_EnterSTOPMode(Regulator, - STOPEntry) function with: - - (++) Regulator: - (+++) PWR_MAINREGULATOR_ON: Main regulator ON. - (+++) PWR_LOWPOWERREGULATOR_ON: Low Power regulator ON. - - (++) STOPEntry: - (+++) PWR_STOPENTRY_WFI: enter STOP mode with WFI instruction. - (+++) PWR_STOPENTRY_WFE: enter STOP mode with WFE instruction. - - (+) Exit: - Any EXTI Line (Internal or External) configured in Interrupt/Event mode. - - *** STANDBY mode *** - ==================== - [..] - (+) - The system STANDBY mode allows to achieve the lowest power consumption. - It is based on the Cortex-Mx deep SLEEP mode, with the voltage regulator - disabled. The system is consequently powered off. The PLL, the HSI - oscillator and the HSE oscillator are also switched off. SRAM and register - contents are lost except for the RTC registers, RTC backup registers, - backup SRAM and standby circuitry. - - [..] - The voltage regulator is OFF. - - (++) Entry: - (+++) The STANDBY mode is entered using the HAL_PWR_EnterSTANDBYMode() - function. - - (++) Exit: - (+++) WKUP pin rising or falling edge, RTC alarm (Alarm A and Alarm B), - RTC wakeup, tamper event, time stamp event, external reset in NRST - pin, IWDG reset. - - *** Auto-wakeup (AWU) from low-power mode *** - ============================================= - [..] - (+) The MCU can be woken up from low-power mode by an RTC Alarm event, an - RTC Wakeup event, a tamper event or a time-stamp event, without - depending on an external interrupt (Auto-wakeup mode). - - (+) RTC auto-wakeup (AWU) from the STOP and STANDBY modes - - (++) To wake up from the STOP mode with an RTC alarm event, it is - necessary to configure the RTC to generate the RTC alarm using the - HAL_RTC_SetAlarm_IT() function. - - (++) To wake up from the STOP mode with an RTC Tamper or time stamp event, - it is necessary to configure the RTC to detect the tamper or time - stamp event using the HAL_RTCEx_SetTimeStamp_IT() or - HAL_RTCEx_SetTamper_IT() functions. - - (++) To wake up from the STOP mode with an RTC WakeUp event, it is - necessary to configure the RTC to generate the RTC WakeUp event - using the HAL_RTCEx_SetWakeUpTimer_IT() function. - -@endverbatim - * @{ - */ - -/** - * @brief Configure the event mode and the voltage threshold detected by the - * Programmable Voltage Detector(PVD). - * @param sConfigPVD : Pointer to an PWR_PVDTypeDef structure that contains - * the configuration information for the PVD. - * @note Refer to the electrical characteristics of your device datasheet for - * more details about the voltage threshold corresponding to each - * detection level. - * @note For dual core devices, please ensure to configure the EXTI lines for - * the different Cortex-Mx through PWR_Exported_Macro provided by this - * driver. All combination are allowed: wake up only Cortex-M7, wake up - * only Cortex-M4 or wake up Cortex-M7 and Cortex-M4. - * @retval None. - */ -void HAL_PWR_ConfigPVD (PWR_PVDTypeDef *sConfigPVD) -{ - /* Check the PVD configuration parameter */ - if (sConfigPVD == NULL) - { - return; - } - - /* Check the parameters */ - assert_param (IS_PWR_PVD_LEVEL (sConfigPVD->PVDLevel)); - assert_param (IS_PWR_PVD_MODE (sConfigPVD->Mode)); - - /* Set PLS[7:5] bits according to PVDLevel value */ - MODIFY_REG (PWR->CR1, PWR_CR1_PLS, sConfigPVD->PVDLevel); - - /* Clear previous config */ -#if !defined (DUAL_CORE) - __HAL_PWR_PVD_EXTI_DISABLE_EVENT (); - __HAL_PWR_PVD_EXTI_DISABLE_IT (); -#endif /* !defined (DUAL_CORE) */ - - __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE (); - __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE (); - -#if !defined (DUAL_CORE) - /* Interrupt mode configuration */ - if ((sConfigPVD->Mode & PVD_MODE_IT) == PVD_MODE_IT) - { - __HAL_PWR_PVD_EXTI_ENABLE_IT (); - } - - /* Event mode configuration */ - if ((sConfigPVD->Mode & PVD_MODE_EVT) == PVD_MODE_EVT) - { - __HAL_PWR_PVD_EXTI_ENABLE_EVENT (); - } -#endif /* !defined (DUAL_CORE) */ - - /* Rising edge configuration */ - if ((sConfigPVD->Mode & PVD_RISING_EDGE) == PVD_RISING_EDGE) - { - __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE (); - } - - /* Falling edge configuration */ - if ((sConfigPVD->Mode & PVD_FALLING_EDGE) == PVD_FALLING_EDGE) - { - __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE (); - } -} - -/** - * @brief Enable the Programmable Voltage Detector (PVD). - * @retval None. - */ -void HAL_PWR_EnablePVD (void) -{ - /* Enable the power voltage detector */ - SET_BIT (PWR->CR1, PWR_CR1_PVDEN); -} - -/** - * @brief Disable the Programmable Voltage Detector (PVD). - * @retval None. - */ -void HAL_PWR_DisablePVD (void) -{ - /* Disable the power voltage detector */ - CLEAR_BIT (PWR->CR1, PWR_CR1_PVDEN); -} - -/** - * @brief Enable the WakeUp PINx functionality. - * @param WakeUpPinPolarity : Specifies which Wake-Up pin to enable. - * This parameter can be one of the following legacy values, which - * sets the default (rising edge): - * @arg PWR_WAKEUP_PIN1, PWR_WAKEUP_PIN2, PWR_WAKEUP_PIN3, - * PWR_WAKEUP_PIN4, PWR_WAKEUP_PIN5, PWR_WAKEUP_PIN6. - * or one of the following values where the user can explicitly states - * the enabled pin and the chosen polarity: - * @arg PWR_WAKEUP_PIN1_HIGH, PWR_WAKEUP_PIN1_LOW, - * PWR_WAKEUP_PIN2_HIGH, PWR_WAKEUP_PIN2_LOW, - * PWR_WAKEUP_PIN3_HIGH, PWR_WAKEUP_PIN3_LOW, - * PWR_WAKEUP_PIN4_HIGH, PWR_WAKEUP_PIN4_LOW, - * PWR_WAKEUP_PIN5_HIGH, PWR_WAKEUP_PIN5_LOW, - * PWR_WAKEUP_PIN6_HIGH, PWR_WAKEUP_PIN6_LOW. - * @note PWR_WAKEUP_PINx and PWR_WAKEUP_PINx_HIGH are equivalent. - * @note The PWR_WAKEUP_PIN3_HIGH, PWR_WAKEUP_PIN3_LOW, PWR_WAKEUP_PIN5_HIGH - * and PWR_WAKEUP_PIN5_LOW are available only for devices that includes - * GPIOI port. - * @retval None. - */ -void HAL_PWR_EnableWakeUpPin (uint32_t WakeUpPinPolarity) -{ - /* Check the parameters */ - assert_param (IS_PWR_WAKEUP_PIN (WakeUpPinPolarity)); - - /* - Enable and Specify the Wake-Up pin polarity and the pull configuration - for the event detection (rising or falling edge). - */ - MODIFY_REG (PWR->WKUPEPR, PWR_EWUP_MASK, WakeUpPinPolarity); -} - -/** - * @brief Disable the WakeUp PINx functionality. - * @param WakeUpPinx : Specifies the Power Wake-Up pin to disable. - * This parameter can be one of the following values: - * @arg PWR_WAKEUP_PIN1, PWR_WAKEUP_PIN2, PWR_WAKEUP_PIN3, - * PWR_WAKEUP_PIN4, PWR_WAKEUP_PIN5, PWR_WAKEUP_PIN6, - * PWR_WAKEUP_PIN1_HIGH, PWR_WAKEUP_PIN1_LOW, - * PWR_WAKEUP_PIN2_HIGH, PWR_WAKEUP_PIN2_LOW, - * PWR_WAKEUP_PIN3_HIGH, PWR_WAKEUP_PIN3_LOW, - * PWR_WAKEUP_PIN4_HIGH, PWR_WAKEUP_PIN4_LOW, - * PWR_WAKEUP_PIN5_HIGH, PWR_WAKEUP_PIN5_LOW, - * PWR_WAKEUP_PIN6_HIGH, PWR_WAKEUP_PIN6_LOW. - * @note The PWR_WAKEUP_PIN3_HIGH, PWR_WAKEUP_PIN3_LOW, PWR_WAKEUP_PIN5_HIGH - * and PWR_WAKEUP_PIN5_LOW are available only for devices that includes - * GPIOI port. - * @retval None. - */ -void HAL_PWR_DisableWakeUpPin (uint32_t WakeUpPinx) -{ - /* Check the parameters */ - assert_param (IS_PWR_WAKEUP_PIN (WakeUpPinx)); - - /* Disable the wake up pin selected */ - CLEAR_BIT (PWR->WKUPEPR, (PWR_WKUPEPR_WKUPEN & WakeUpPinx)); -} - -/** - * @brief Enter the current core in SLEEP mode (CSLEEP). - * @param Regulator : Specifies the regulator state in SLEEP mode. - * This parameter can be one of the following values: - * @arg PWR_MAINREGULATOR_ON : SLEEP mode with regulator ON. - * @arg PWR_LOWPOWERREGULATOR_ON : SLEEP mode with low power - * regulator ON. - * @note This parameter is not used for the STM32H7 family and is kept as - * parameter just to maintain compatibility with the lower power - * families. - * @param SLEEPEntry : Specifies if SLEEP mode is entered with WFI or WFE - * intrinsic instruction. - * This parameter can be one of the following values: - * @arg PWR_SLEEPENTRY_WFI : enter SLEEP mode with WFI instruction. - * @arg PWR_SLEEPENTRY_WFE : enter SLEEP mode with WFE instruction. - * @note Ensure to clear pending events before calling this API through - * HAL_PWREx_ClearPendingEvent() when the SLEEP entry is WFE. - * @retval None. - */ -void HAL_PWR_EnterSLEEPMode (uint32_t Regulator, uint8_t SLEEPEntry) -{ - /* Check the parameters */ - assert_param (IS_PWR_REGULATOR (Regulator)); - assert_param (IS_PWR_SLEEP_ENTRY (SLEEPEntry)); - - /* Clear SLEEPDEEP bit of Cortex System Control Register */ - CLEAR_BIT (SCB->SCR, SCB_SCR_SLEEPDEEP_Msk); - - /* Select SLEEP mode entry */ - if (SLEEPEntry == PWR_SLEEPENTRY_WFI) - { - /* Request Wait For Interrupt */ - __WFI (); - } - else - { - /* Request Wait For Event */ - __WFE (); - } -} - -/** - * @brief Enter STOP mode. - * @note For single core devices, this API will enter the system in STOP mode - * with all domains in DSTOP, if RUN_D3/RUN_SRD bit in CPUCR register is - * cleared. - * For dual core devices, this API will enter the domain (containing - * Cortex-Mx that executing this function) in DSTOP mode. If all - * Cortex-Mx domains are in DSTOP and RUN_D3 bit in CPUCR register is - * cleared, all the system will enter in STOP mode. - * @param Regulator : Specifies the regulator state in STOP mode. - * This parameter can be one of the following values: - * @arg PWR_MAINREGULATOR_ON : STOP mode with regulator ON. - * @arg PWR_LOWPOWERREGULATOR_ON : STOP mode with low power - * regulator ON. - * @param STOPEntry : Specifies if STOP mode in entered with WFI or WFE - * intrinsic instruction. - * This parameter can be one of the following values: - * @arg PWR_STOPENTRY_WFI : Enter STOP mode with WFI instruction. - * @arg PWR_STOPENTRY_WFE : Enter STOP mode with WFE instruction. - * @note In System STOP mode, all I/O pins keep the same state as in Run mode. - * @note When exiting System STOP mode by issuing an interrupt or a wakeup - * event, the HSI RC oscillator is selected as default system wakeup - * clock. - * @note In System STOP mode, when the voltage regulator operates in low - * power mode, an additional startup delay is incurred when the system - * is waking up. By keeping the internal regulator ON during STOP mode, - * the consumption is higher although the startup time is reduced. - * @retval None. - */ -void HAL_PWR_EnterSTOPMode (uint32_t Regulator, uint8_t STOPEntry) -{ - /* Check the parameters */ - assert_param (IS_PWR_REGULATOR (Regulator)); - assert_param (IS_PWR_STOP_ENTRY (STOPEntry)); - - /* Select the regulator state in STOP mode */ - MODIFY_REG (PWR->CR1, PWR_CR1_LPDS, Regulator); - - /* Configure the PWR mode for the different Domains */ -#if defined (DUAL_CORE) - /* Check CPU ID */ - if (HAL_GetCurrentCPUID () == CM7_CPUID) - { - /* Keep DSTOP mode when Cortex-M7 enters DEEP-SLEEP */ - CLEAR_BIT (PWR->CPUCR, (PWR_CPUCR_PDDS_D1 | PWR_CPUCR_PDDS_D3)); - } - else - { - /* Keep DSTOP mode when Cortex-M4 enters DEEP-SLEEP */ - CLEAR_BIT (PWR->CPUCR, (PWR_CPUCR_PDDS_D2 | PWR_CPUCR_PDDS_D3)); - } -#else /* Single core devices */ - /* Keep DSTOP mode when Cortex-M7 enter in DEEP-SLEEP */ - CLEAR_BIT (PWR->CPUCR, (PWR_CPUCR_PDDS_D1 | PWR_CPUCR_PDDS_D3)); - -#if defined (PWR_CPUCR_PDDS_D2) - /* Keep DSTOP mode when Cortex-M7 enter in DEEP-SLEEP */ - CLEAR_BIT (PWR->CPUCR, PWR_CPUCR_PDDS_D2); -#endif /* PWR_CPUCR_PDDS_D2 */ -#endif /* defined (DUAL_CORE) */ - - /* Set SLEEPDEEP bit of Cortex System Control Register */ - SET_BIT (SCB->SCR, SCB_SCR_SLEEPDEEP_Msk); - - /* Ensure that all instructions are done before entering STOP mode */ - __DSB (); - __ISB (); - - /* Select STOP mode entry */ - if (STOPEntry == PWR_STOPENTRY_WFI) - { - /* Request Wait For Interrupt */ - __WFI (); - } - else - { - /* Request Wait For Event */ - __WFE (); - } - - /* Clear SLEEPDEEP bit of Cortex-Mx in the System Control Register */ - CLEAR_BIT (SCB->SCR, SCB_SCR_SLEEPDEEP_Msk); -} - -/** - * @brief Enter STANDBY mode. - * @note For single core devices, this API will enter the system in STANDBY - * mode with all domains in DSTANDBY, if RUN_D3/RUN_SRD bit in CPUCR - * register is cleared. - * For dual core devices, this API will enter the domain (containing - * Cortex-Mx that executing this function) in DSTANDBY mode. If all - * Cortex-Mx domains are in DSTANDBY and RUN_D3 bit in CPUCR register - * is cleared, all the system will enter in STANDBY mode. - * @note The system enters Standby mode only when all domains are in DSTANDBY. - * @note When the System exit STANDBY mode by issuing an interrupt or a - * wakeup event, the HSI RC oscillator is selected as system clock. - * @note It is recommended to disable all regulators before entring STANDBY - * mode for power consumption saving purpose. - * @retval None. - */ -void HAL_PWR_EnterSTANDBYMode (void) -{ - /* Configure the PWR mode for the different Domains */ -#if defined (DUAL_CORE) - /* Check CPU ID */ - if (HAL_GetCurrentCPUID () == CM7_CPUID) - { - /* Enter DSTANDBY mode when Cortex-M7 enters DEEP-SLEEP */ - SET_BIT (PWR->CPUCR, (PWR_CPUCR_PDDS_D1 | PWR_CPUCR_PDDS_D3)); - SET_BIT (PWR->CPU2CR, (PWR_CPU2CR_PDDS_D1 | PWR_CPU2CR_PDDS_D3)); - } - else - { - /* Enter DSTANDBY mode when Cortex-M4 enters DEEP-SLEEP */ - SET_BIT (PWR->CPUCR, (PWR_CPUCR_PDDS_D2 | PWR_CPUCR_PDDS_D3)); - SET_BIT (PWR->CPU2CR, (PWR_CPU2CR_PDDS_D2 | PWR_CPU2CR_PDDS_D3)); - } -#else /* Single core devices */ - /* Enter DSTANDBY mode when Cortex-M7 enters DEEP-SLEEP */ - SET_BIT (PWR->CPUCR, (PWR_CPUCR_PDDS_D1 | PWR_CPUCR_PDDS_D3)); - -#if defined (PWR_CPUCR_PDDS_D2) - /* Enter DSTANDBY mode when Cortex-M7 enters DEEP-SLEEP */ - SET_BIT (PWR->CPUCR, PWR_CPUCR_PDDS_D2); -#endif /* PWR_CPUCR_PDDS_D2 */ -#endif /* defined (DUAL_CORE) */ - - /* Set SLEEPDEEP bit of Cortex System Control Register */ - SET_BIT (SCB->SCR, SCB_SCR_SLEEPDEEP_Msk); - - /* Ensure that all instructions are done before entering STOP mode */ - __DSB (); - __ISB (); - - /* This option is used to ensure that store operations are completed */ -#if defined (__CC_ARM) - __force_stores(); -#endif /* defined (__CC_ARM) */ - - /* Request Wait For Interrupt */ - __WFI (); -} - -/** - * @brief Indicate Sleep-On-Exit feature when returning from Handler mode to - * Thread mode. - * @note Set SLEEPONEXIT bit of SCR register. When this bit is set, the - * processor re-enters SLEEP mode when an interruption handling is over. - * Setting this bit is useful when the processor is expected to run - * only on interruptions handling. - * @retval None. - */ -void HAL_PWR_EnableSleepOnExit (void) -{ - /* Set SLEEPONEXIT bit of Cortex-Mx System Control Register */ - SET_BIT (SCB->SCR, SCB_SCR_SLEEPONEXIT_Msk); -} - -/** - * @brief Disable Sleep-On-Exit feature when returning from Handler mode to - * Thread mode. - * @note Clears SLEEPONEXIT bit of SCR register. When this bit is set, the - * processor re-enters SLEEP mode when an interruption handling is over. - * @retval None - */ -void HAL_PWR_DisableSleepOnExit (void) -{ - /* Clear SLEEPONEXIT bit of Cortex-Mx System Control Register */ - CLEAR_BIT (SCB->SCR, SCB_SCR_SLEEPONEXIT_Msk); -} - -/** - * @brief Enable CORTEX SEVONPEND feature. - * @note Sets SEVONPEND bit of SCR register. When this bit is set, any - * pending event / interrupt even if it's disabled or has insufficient - * priority to cause exception entry wakes up the Cortex-Mx. - * @retval None. - */ -void HAL_PWR_EnableSEVOnPend (void) -{ - /* Set SEVONPEND bit of Cortex-Mx System Control Register */ - SET_BIT (SCB->SCR, SCB_SCR_SEVONPEND_Msk); -} - -/** - * @brief Disable CORTEX SEVONPEND feature. - * @note Resets SEVONPEND bit of SCR register. When this bit is reset, only - * enabled pending causes exception entry wakes up the Cortex-Mx. - * @retval None. - */ -void HAL_PWR_DisableSEVOnPend (void) -{ - /* Clear SEVONPEND bit of Cortex System Control Register */ - CLEAR_BIT (SCB->SCR, SCB_SCR_SEVONPEND_Msk); -} -/** - * @} - */ - -/** @defgroup PWR_Exported_Functions_Group3 Interrupt Handling Functions - * @brief Interrupt Handling functions - * -@verbatim - =============================================================================== - ##### Interrupt Handling Functions ##### - =============================================================================== - [..] - This section provides functions allowing to handle the PVD pending - interrupts. - -@endverbatim - * @{ - */ - -/** - * @brief This function handles the PWR PVD interrupt request. - * @note This API should be called under the PVD_AVD_IRQHandler(). - * @retval None. - */ -void HAL_PWR_PVD_IRQHandler (void) -{ -#if defined (DUAL_CORE) - /* Check Cortex-Mx ID */ - if (HAL_GetCurrentCPUID () == CM7_CPUID) - { - /* Check PWR EXTI D1 flag */ - if(__HAL_PWR_PVD_EXTI_GET_FLAG () != 0U) - { - /* Clear PWR EXTI D1 pending bit */ - __HAL_PWR_PVD_EXTI_CLEAR_FLAG (); - - /* PWR PVD interrupt user callback */ - HAL_PWR_PVDCallback (); - } - } - else - { - /* Check PWR EXTI D2 flag */ - if (__HAL_PWR_PVD_EXTID2_GET_FLAG () != 0U) - { - /* Clear PWR EXTI D2 pending bit */ - __HAL_PWR_PVD_EXTID2_CLEAR_FLAG (); - - /* PWR PVD interrupt user callback */ - HAL_PWR_PVDCallback (); - } - } -#else /* Single core devices */ - /* PVD EXTI line interrupt detected */ - if (__HAL_PWR_PVD_EXTI_GET_FLAG () != 0U) - { - /* Clear PWR EXTI pending bit */ - __HAL_PWR_PVD_EXTI_CLEAR_FLAG (); - - /* PWR PVD interrupt user callback */ - HAL_PWR_PVDCallback (); - } -#endif /* defined (DUAL_CORE) */ -} - -/** - * @brief PWR PVD interrupt callback. - * @retval None. - */ -__weak void HAL_PWR_PVDCallback (void) -{ - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_PWR_PVDCallback can be implemented in the user file - */ -} - -/** - * @} - */ - -/** - * @} - */ - -#endif /* HAL_PWR_MODULE_ENABLED */ -/** - * @} - */ - -/** - * @} - */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c b/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c deleted file mode 100644 index 5d51ceb..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c +++ /dev/null @@ -1,2142 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_pwr_ex.c - * @author MCD Application Team - * @brief Extended PWR HAL module driver. - * This file provides firmware functions to manage the following - * functionalities of PWR extension peripheral: - * + Peripheral Extended features functions - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - @verbatim - ============================================================================== - ##### How to use this driver ##### - ============================================================================== - [..] - (#) Call HAL_PWREx_ConfigSupply() function to configure the regulator supply - with the following different setups according to hardware (support SMPS): - (+) PWR_DIRECT_SMPS_SUPPLY - (+) PWR_SMPS_1V8_SUPPLIES_LDO - (+) PWR_SMPS_2V5_SUPPLIES_LDO - (+) PWR_SMPS_1V8_SUPPLIES_EXT_AND_LDO - (+) PWR_SMPS_2V5_SUPPLIES_EXT_AND_LDO - (+) PWR_SMPS_1V8_SUPPLIES_EXT - (+) PWR_SMPS_2V5_SUPPLIES_EXT - (+) PWR_LDO_SUPPLY - (+) PWR_EXTERNAL_SOURCE_SUPPLY - - (#) Call HAL_PWREx_GetSupplyConfig() function to get the current supply setup. - - (#) Call HAL_PWREx_ControlVoltageScaling() function to configure the main - internal regulator output voltage. The voltage scaling could be one of - the following scales : - (+) PWR_REGULATOR_VOLTAGE_SCALE0 - (+) PWR_REGULATOR_VOLTAGE_SCALE1 - (+) PWR_REGULATOR_VOLTAGE_SCALE2 - (+) PWR_REGULATOR_VOLTAGE_SCALE3 - - (#) Call HAL_PWREx_GetVoltageRange() function to get the current output - voltage applied to the main regulator. - - (#) Call HAL_PWREx_ControlStopModeVoltageScaling() function to configure the - main internal regulator output voltage in STOP mode. The voltage scaling - in STOP mode could be one of the following scales : - (+) PWR_REGULATOR_SVOS_SCALE3 - (+) PWR_REGULATOR_SVOS_SCALE4 - (+) PWR_REGULATOR_SVOS_SCALE5 - - (#) Call HAL_PWREx_GetStopModeVoltageRange() function to get the current - output voltage applied to the main regulator in STOP mode. - - (#) Call HAL_PWREx_EnterSTOP2Mode() function to enter the system in STOP mode - with core domain in D2STOP mode. This API is used only for STM32H7Axxx - and STM32H7Bxxx devices. - Please ensure to clear all CPU pending events by calling - HAL_PWREx_ClearPendingEvent() function when trying to enter the Cortex-Mx - in DEEP-SLEEP mode with __WFE() entry. - - (#) Call HAL_PWREx_EnterSTOPMode() function to enter the selected domain in - DSTOP mode. Call this API with all available power domains to enter the - system in STOP mode. - Please ensure to clear all CPU pending events by calling - HAL_PWREx_ClearPendingEvent() function when trying to enter the Cortex-Mx - in DEEP-SLEEP mode with __WFE() entry. - - (#) Call HAL_PWREx_ClearPendingEvent() function always before entring the - Cortex-Mx in any low power mode (SLEEP/DEEP-SLEEP) using WFE entry. - - (#) Call HAL_PWREx_EnterSTANDBYMode() function to enter the selected domain - in DSTANDBY mode. Call this API with all available power domains to enter - the system in STANDBY mode. - - (#) Call HAL_PWREx_ConfigD3Domain() function to setup the D3/SRD domain state - (RUN/STOP) when the system enter to low power mode. - - (#) Call HAL_PWREx_ClearDomainFlags() function to clear the CPU flags for the - selected power domain. This API is used only for dual core devices. - - (#) Call HAL_PWREx_HoldCore() and HAL_PWREx_ReleaseCore() functions to hold - and release the selected CPU and and their domain peripherals when - exiting STOP mode. These APIs are used only for dual core devices. - - (#) Call HAL_PWREx_EnableFlashPowerDown() and - HAL_PWREx_DisableFlashPowerDown() functions to enable and disable the - Flash Power Down in STOP mode. - - (#) Call HAL_PWREx_EnableMemoryShutOff() and - HAL_PWREx_DisableMemoryShutOff() functions to enable and disable the - memory block shut-off in DStop or DStop2. These APIs are used only for - STM32H7Axxx and STM32H7Bxxx lines. - - (#) Call HAL_PWREx_EnableWakeUpPin() and HAL_PWREx_DisableWakeUpPin() - functions to enable and disable the Wake-up pin functionality for - the selected pin. - - (#) Call HAL_PWREx_GetWakeupFlag() and HAL_PWREx_ClearWakeupFlag() - functions to manage wake-up flag for the selected pin. - - (#) Call HAL_PWREx_WAKEUP_PIN_IRQHandler() function to handle all wake-up - pins interrupts. - - (#) Call HAL_PWREx_EnableBkUpReg() and HAL_PWREx_DisableBkUpReg() functions - to enable and disable the backup domain regulator. - - (#) Call HAL_PWREx_EnableUSBReg(), HAL_PWREx_DisableUSBReg(), - HAL_PWREx_EnableUSBVoltageDetector() and - HAL_PWREx_DisableUSBVoltageDetector() functions to manage USB power - regulation functionalities. - - (#) Call HAL_PWREx_EnableBatteryCharging() and - HAL_PWREx_DisableBatteryCharging() functions to enable and disable the - battery charging feature with the selected resistor. - - (#) Call HAL_PWREx_EnableAnalogBooster() and - HAL_PWREx_DisableAnalogBooster() functions to enable and disable the - AVD boost feature when the VDD supply voltage is below 2V7. - - (#) Call HAL_PWREx_EnableMonitoring() and HAL_PWREx_DisableMonitoring() - functions to enable and disable the VBAT and Temperature monitoring. - When VBAT and Temperature monitoring feature is enables, use - HAL_PWREx_GetTemperatureLevel() and HAL_PWREx_GetVBATLevel() to get - respectively the Temperature level and VBAT level. - - (#) Call HAL_PWREx_GetMMCVoltage() and HAL_PWREx_DisableMonitoring() - function to get VDDMMC voltage level. This API is used only for - STM32H7Axxx and STM32H7Bxxx lines - - (#) Call HAL_PWREx_ConfigAVD() after setting parameter to be configured - (event mode and voltage threshold) in order to set up the Analog Voltage - Detector then use HAL_PWREx_EnableAVD() and HAL_PWREx_DisableAVD() - functions to start and stop the AVD detection. - (+) AVD level could be one of the following values : - (++) 1V7 - (++) 2V1 - (++) 2V5 - (++) 2V8 - - (#) Call HAL_PWREx_PVD_AVD_IRQHandler() function to handle the PWR PVD and - AVD interrupt request. - - @endverbatim - */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @defgroup PWREx PWREx - * @brief PWR Extended HAL module driver - * @{ - */ - -#ifdef HAL_PWR_MODULE_ENABLED - -/* Private typedef -----------------------------------------------------------*/ -/* Private define ------------------------------------------------------------*/ - -/** @addtogroup PWREx_Private_Constants - * @{ - */ - -/** @defgroup PWREx_AVD_Mode_Mask PWR Extended AVD Mode Mask - * @{ - */ -#define AVD_MODE_IT (0x00010000U) -#define AVD_MODE_EVT (0x00020000U) -#define AVD_RISING_EDGE (0x00000001U) -#define AVD_FALLING_EDGE (0x00000002U) -#define AVD_RISING_FALLING_EDGE (0x00000003U) -/** - * @} - */ - -/** @defgroup PWREx_REG_SET_TIMEOUT PWR Extended Flag Setting Time Out Value - * @{ - */ -#define PWR_FLAG_SETTING_DELAY (1000U) -/** - * @} - */ - -/** @defgroup PWREx_WakeUp_Pins_Offsets PWREx Wake-Up Pins masks and offsets - * @{ - */ -/* Wake-Up Pins EXTI register mask */ -#if defined (EXTI_IMR2_IM57) -#define PWR_EXTI_WAKEUP_PINS_MASK (EXTI_IMR2_IM55 | EXTI_IMR2_IM56 |\ - EXTI_IMR2_IM57 | EXTI_IMR2_IM58 |\ - EXTI_IMR2_IM59 | EXTI_IMR2_IM60) -#else -#define PWR_EXTI_WAKEUP_PINS_MASK (EXTI_IMR2_IM55 | EXTI_IMR2_IM56 |\ - EXTI_IMR2_IM58 | EXTI_IMR2_IM60) -#endif /* defined (EXTI_IMR2_IM57) */ - -/* Wake-Up Pins PWR Pin Pull shift offsets */ -#define PWR_WAKEUP_PINS_PULL_SHIFT_OFFSET (2U) -/** - * @} - */ - -/** - * @} - */ - -/* Private macro -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private function prototypes -----------------------------------------------*/ -/* Private functions ---------------------------------------------------------*/ -/* Exported types ------------------------------------------------------------*/ -/* Exported functions --------------------------------------------------------*/ - -/** @defgroup PWREx_Exported_Functions PWREx Exported Functions - * @{ - */ - -/** @defgroup PWREx_Exported_Functions_Group1 Power Supply Control Functions - * @brief Power supply control functions - * -@verbatim - =============================================================================== - ##### Power supply control functions ##### - =============================================================================== - [..] - (#) When the system is powered on, the POR monitors VDD supply. Once VDD is - above the POR threshold level, the voltage regulator is enabled in the - default supply configuration: - (+) The Voltage converter output level is set at 1V0 in accordance with - the VOS3 level configured in PWR (D3/SRD) domain control register - (PWR_D3CR/PWR_SRDCR). - (+) The system is kept in reset mode as long as VCORE is not ok. - (+) Once VCORE is ok, the system is taken out of reset and the HSI - oscillator is enabled. - (+) Once the oscillator is stable, the system is initialized: Flash memory - and option bytes are loaded and the CPU starts in Run* mode. - (+) The software shall then initialize the system including supply - configuration programming using the HAL_PWREx_ConfigSupply(). - (+) Once the supply configuration has been configured, the - HAL_PWREx_ConfigSupply() function checks the ACTVOSRDY bit in PWR - control status register 1 (PWR_CSR1) to guarantee a valid voltage - levels: - (++) As long as ACTVOSRDY indicates that voltage levels are invalid, the - system is in limited Run* mode, write accesses to the RAMs are not - permitted and VOS shall not be changed. - (++) Once ACTVOSRDY indicates that voltage levels are valid, the system - is in normal Run mode, write accesses to RAMs are allowed and VOS - can be changed. - -@endverbatim - * @{ - */ - -/** - * @brief Configure the system Power Supply. - * @param SupplySource : Specifies the Power Supply source to set after a - * system startup. - * This parameter can be one of the following values : - * @arg PWR_DIRECT_SMPS_SUPPLY : The SMPS supplies the Vcore Power - * Domains. The LDO is Bypassed. - * @arg PWR_SMPS_1V8_SUPPLIES_LDO : The SMPS 1.8V output supplies - * the LDO. The Vcore Power Domains - * are supplied from the LDO. - * @arg PWR_SMPS_2V5_SUPPLIES_LDO : The SMPS 2.5V output supplies - * the LDO. The Vcore Power Domains - * are supplied from the LDO. - * @arg PWR_SMPS_1V8_SUPPLIES_EXT_AND_LDO : The SMPS 1.8V output - * supplies external - * circuits and the LDO. - * The Vcore Power Domains - * are supplied from the - * LDO. - * @arg PWR_SMPS_2V5_SUPPLIES_EXT_AND_LDO : The SMPS 2.5V output - * supplies external - * circuits and the LDO. - * The Vcore Power Domains - * are supplied from the - * LDO. - * @arg PWR_SMPS_1V8_SUPPLIES_EXT : The SMPS 1.8V output supplies - * external circuits. The LDO is - * Bypassed. The Vcore Power - * Domains are supplied from - * external source. - * @arg PWR_SMPS_2V5_SUPPLIES_EXT : The SMPS 2.5V output supplies - * external circuits. The LDO is - * Bypassed. The Vcore Power - * Domains are supplied from - * external source. - * @arg PWR_LDO_SUPPLY : The LDO regulator supplies the Vcore Power - * Domains. The SMPS regulator is Bypassed. - * @arg PWR_EXTERNAL_SOURCE_SUPPLY : The SMPS and the LDO are - * Bypassed. The Vcore Power - * Domains are supplied from - * external source. - * @note The PWR_LDO_SUPPLY and PWR_EXTERNAL_SOURCE_SUPPLY are used by all - * H7 lines. - * The PWR_DIRECT_SMPS_SUPPLY, PWR_SMPS_1V8_SUPPLIES_LDO, - * PWR_SMPS_2V5_SUPPLIES_LDO, PWR_SMPS_1V8_SUPPLIES_EXT_AND_LDO, - * PWR_SMPS_2V5_SUPPLIES_EXT_AND_LDO, PWR_SMPS_1V8_SUPPLIES_EXT and - * PWR_SMPS_2V5_SUPPLIES_EXT are used only for lines that supports SMPS - * regulator. - * @retval HAL status. - */ -HAL_StatusTypeDef HAL_PWREx_ConfigSupply (uint32_t SupplySource) -{ - uint32_t tickstart; - - /* Check the parameters */ - assert_param (IS_PWR_SUPPLY (SupplySource)); - - /* Check if supply source was configured */ -#if defined (PWR_FLAG_SCUEN) - if (__HAL_PWR_GET_FLAG (PWR_FLAG_SCUEN) == 0U) -#else - if ((PWR->CR3 & (PWR_CR3_SMPSEN | PWR_CR3_LDOEN | PWR_CR3_BYPASS)) != (PWR_CR3_SMPSEN | PWR_CR3_LDOEN)) -#endif /* defined (PWR_FLAG_SCUEN) */ - { - /* Check supply configuration */ - if ((PWR->CR3 & PWR_SUPPLY_CONFIG_MASK) != SupplySource) - { - /* Supply configuration update locked, can't apply a new supply config */ - return HAL_ERROR; - } - else - { - /* Supply configuration update locked, but new supply configuration - matches with old supply configuration : nothing to do - */ - return HAL_OK; - } - } - - /* Set the power supply configuration */ - MODIFY_REG (PWR->CR3, PWR_SUPPLY_CONFIG_MASK, SupplySource); - - /* Get tick */ - tickstart = HAL_GetTick (); - - /* Wait till voltage level flag is set */ - while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U) - { - if ((HAL_GetTick () - tickstart) > PWR_FLAG_SETTING_DELAY) - { - return HAL_ERROR; - } - } - -#if defined (SMPS) - /* When the SMPS supplies external circuits verify that SDEXTRDY flag is set */ - if ((SupplySource == PWR_SMPS_1V8_SUPPLIES_EXT_AND_LDO) || - (SupplySource == PWR_SMPS_2V5_SUPPLIES_EXT_AND_LDO) || - (SupplySource == PWR_SMPS_1V8_SUPPLIES_EXT) || - (SupplySource == PWR_SMPS_2V5_SUPPLIES_EXT)) - { - /* Get the current tick number */ - tickstart = HAL_GetTick (); - - /* Wait till SMPS external supply ready flag is set */ - while (__HAL_PWR_GET_FLAG (PWR_FLAG_SMPSEXTRDY) == 0U) - { - if ((HAL_GetTick () - tickstart) > PWR_FLAG_SETTING_DELAY) - { - return HAL_ERROR; - } - } - } -#endif /* defined (SMPS) */ - - return HAL_OK; -} - -/** - * @brief Get the power supply configuration. - * @retval The supply configuration. - */ -uint32_t HAL_PWREx_GetSupplyConfig (void) -{ - return (PWR->CR3 & PWR_SUPPLY_CONFIG_MASK); -} - -/** - * @brief Configure the main internal regulator output voltage. - * @param VoltageScaling : Specifies the regulator output voltage to achieve - * a tradeoff between performance and power - * consumption. - * This parameter can be one of the following values : - * @arg PWR_REGULATOR_VOLTAGE_SCALE0 : Regulator voltage output - * Scale 0 mode. - * @arg PWR_REGULATOR_VOLTAGE_SCALE1 : Regulator voltage output - * range 1 mode. - * @arg PWR_REGULATOR_VOLTAGE_SCALE2 : Regulator voltage output - * range 2 mode. - * @arg PWR_REGULATOR_VOLTAGE_SCALE3 : Regulator voltage output - * range 3 mode. - * @note For STM32H74x and STM32H75x lines, configuring Voltage Scale 0 is - * only possible when Vcore is supplied from LDO (Low DropOut). The - * SYSCFG Clock must be enabled through __HAL_RCC_SYSCFG_CLK_ENABLE() - * macro before configuring Voltage Scale 0. - * To enter low power mode , and if current regulator voltage is - * Voltage Scale 0 then first switch to Voltage Scale 1 before entering - * low power mode. - * @retval HAL Status - */ -HAL_StatusTypeDef HAL_PWREx_ControlVoltageScaling (uint32_t VoltageScaling) -{ - uint32_t tickstart; - - /* Check the parameters */ - assert_param (IS_PWR_REGULATOR_VOLTAGE (VoltageScaling)); - - /* Get the voltage scaling */ - if ((PWR->CSR1 & PWR_CSR1_ACTVOS) == VoltageScaling) - { - /* Old and new voltage scaling configuration match : nothing to do */ - return HAL_OK; - } - -#if defined (PWR_SRDCR_VOS) - /* Set the voltage range */ - MODIFY_REG (PWR->SRDCR, PWR_SRDCR_VOS, VoltageScaling); -#else -#if defined(SYSCFG_PWRCR_ODEN) /* STM32H74xxx and STM32H75xxx lines */ - if (VoltageScaling == PWR_REGULATOR_VOLTAGE_SCALE0) - { - if ((PWR->CR3 & PWR_CR3_LDOEN) == PWR_CR3_LDOEN) - { - /* Set the voltage range */ - MODIFY_REG (PWR->D3CR, PWR_D3CR_VOS, PWR_REGULATOR_VOLTAGE_SCALE1); - - /* Get tick */ - tickstart = HAL_GetTick (); - - /* Wait till voltage level flag is set */ - while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U) - { - if ((HAL_GetTick () - tickstart) > PWR_FLAG_SETTING_DELAY) - { - return HAL_ERROR; - } - } - - /* Enable the PWR overdrive */ - SET_BIT (SYSCFG->PWRCR, SYSCFG_PWRCR_ODEN); - } - else - { - /* The voltage scale 0 is only possible when LDO regulator is enabled */ - return HAL_ERROR; - } - } - else - { - if ((PWR->CSR1 & PWR_CSR1_ACTVOS) == PWR_REGULATOR_VOLTAGE_SCALE1) - { - if ((SYSCFG->PWRCR & SYSCFG_PWRCR_ODEN) != 0U) - { - /* Disable the PWR overdrive */ - CLEAR_BIT(SYSCFG->PWRCR, SYSCFG_PWRCR_ODEN); - - /* Get tick */ - tickstart = HAL_GetTick (); - - /* Wait till voltage level flag is set */ - while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U) - { - if ((HAL_GetTick () - tickstart) > PWR_FLAG_SETTING_DELAY) - { - return HAL_ERROR; - } - } - } - } - - /* Set the voltage range */ - MODIFY_REG (PWR->D3CR, PWR_D3CR_VOS, VoltageScaling); - } -#else /* STM32H72xxx and STM32H73xxx lines */ - /* Set the voltage range */ - MODIFY_REG(PWR->D3CR, PWR_D3CR_VOS, VoltageScaling); -#endif /* defined (SYSCFG_PWRCR_ODEN) */ -#endif /* defined (PWR_SRDCR_VOS) */ - - /* Get tick */ - tickstart = HAL_GetTick (); - - /* Wait till voltage level flag is set */ - while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U) - { - if ((HAL_GetTick() - tickstart) > PWR_FLAG_SETTING_DELAY) - { - return HAL_ERROR; - } - } - - return HAL_OK; -} - -/** - * @brief Get the main internal regulator output voltage. Reflecting the last - * VOS value applied to the PMU. - * @retval The current applied VOS selection. - */ -uint32_t HAL_PWREx_GetVoltageRange (void) -{ - /* Get the active voltage scaling */ - return (PWR->CSR1 & PWR_CSR1_ACTVOS); -} - -/** - * @brief Configure the main internal regulator output voltage in STOP mode. - * @param VoltageScaling : Specifies the regulator output voltage when the - * system enters Stop mode to achieve a tradeoff between performance - * and power consumption. - * This parameter can be one of the following values: - * @arg PWR_REGULATOR_SVOS_SCALE3 : Regulator voltage output range - * 3 mode. - * @arg PWR_REGULATOR_SVOS_SCALE4 : Regulator voltage output range - * 4 mode. - * @arg PWR_REGULATOR_SVOS_SCALE5 : Regulator voltage output range - * 5 mode. - * @note The Stop mode voltage scaling for SVOS4 and SVOS5 sets the voltage - * regulator in Low-power (LP) mode to further reduce power consumption. - * When preselecting SVOS3, the use of the voltage regulator low-power - * mode (LP) can be selected by LPDS register bit. - * @note The selected SVOS4 and SVOS5 levels add an additional startup delay - * when exiting from system Stop mode. - * @retval HAL Status. - */ -HAL_StatusTypeDef HAL_PWREx_ControlStopModeVoltageScaling (uint32_t VoltageScaling) -{ - /* Check the parameters */ - assert_param (IS_PWR_STOP_MODE_REGULATOR_VOLTAGE (VoltageScaling)); - - /* Return the stop mode voltage range */ - MODIFY_REG (PWR->CR1, PWR_CR1_SVOS, VoltageScaling); - - return HAL_OK; -} - -/** - * @brief Get the main internal regulator output voltage in STOP mode. - * @retval The actual applied VOS selection. - */ -uint32_t HAL_PWREx_GetStopModeVoltageRange (void) -{ - /* Return the stop voltage scaling */ - return (PWR->CR1 & PWR_CR1_SVOS); -} -/** - * @} - */ - -/** @defgroup PWREx_Exported_Functions_Group2 Low Power Control Functions - * @brief Low power control functions - * -@verbatim - =============================================================================== - ##### Low power control functions ##### - =============================================================================== - - *** Domains Low Power modes configuration *** - ============================================= - [..] - This section provides the extended low power mode control APIs. - The system presents 3 principles domains (D1, D2 and D3) that can be - operated in low-power modes (DSTOP or DSTANDBY mode): - - (+) DSTOP mode to enters a domain to STOP mode: - (++) D1 domain and/or D2 domain enters DSTOP mode only when the CPU - subsystem is in CSTOP mode and has allocated peripheral in the - domain. - In DSTOP mode the domain bus matrix clock is stopped. - (++) The system enters STOP mode using one of the following scenarios: - (+++) D1 domain enters DSTANDBY mode (powered off) and D2, D3 domains - enter DSTOP mode. - (+++) D2 domain enters DSTANDBY mode (powered off) and D1, D3 domains - enter DSTOP mode. - (+++) D3 domain enters DSTANDBY mode (powered off) and D1, D2 domains - enter DSTOP mode. - (+++) D1 and D2 domains enter DSTANDBY mode (powered off) and D3 domain - enters DSTOP mode. - (+++) D1 and D3 domains enter DSTANDBY mode (powered off) and D2 domain - enters DSTOP mode. - (+++) D2 and D3 domains enter DSTANDBY mode (powered off) and D1 domain - enters DSTOP mode. - (+++) D1, D2 and D3 domains enter DSTOP mode. - (++) When the system enters STOP mode, the clocks are stopped and the - regulator is running in main or low power mode. - (++) D3 domain can be kept in Run mode regardless of the CPU status when - enter STOP mode by using HAL_PWREx_ConfigD3Domain(D3State) function. - - (+) DSTANDBY mode to enters a domain to STANDBY mode: - (++) The DSTANDBY mode is entered when the PDDS_Dn bit in PWR CPU control - register (PWR_CPUCR) for the Dn domain selects Standby mode. - (++) The system enters STANDBY mode only when D1, D2 and D3 domains enter - DSTANDBY mode. Consequently the VCORE supply regulator is powered - off. - - *** DSTOP mode *** - ================== - [..] - In DStop mode the domain bus matrix clock is stopped. - The Flash memory can enter low-power Stop mode when it is enabled through - FLPS in PWR_CR1 register. This allows a trade-off between domain DStop - restart time and low power consumption. - [..] - In DStop mode domain peripherals using the LSI or LSE clock and - peripherals having a kernel clock request are still able to operate. - [..] - Before entering DSTOP mode it is recommended to call SCB_CleanDCache - function in order to clean the D-Cache and guarantee the data integrity - for the SRAM memories. - - (+) Entry: - The DSTOP mode is entered using the HAL_PWREx_EnterSTOPMode(Regulator, - STOPEntry, Domain) function with: - (++) Regulator: - (+++) PWR_MAINREGULATOR_ON : Main regulator ON. - (+++) PWR_LOWPOWERREGULATOR_ON : Low Power regulator ON. - (++) STOPEntry: - (+++) PWR_STOPENTRY_WFI : enter STOP mode with WFI instruction - (+++) PWR_STOPENTRY_WFE : enter STOP mode with WFE instruction - (++) Domain: - (+++) PWR_D1_DOMAIN : Enters D1/CD domain to DSTOP mode. - (+++) PWR_D2_DOMAIN : Enters D2 domain to DSTOP mode. - (+++) PWR_D3_DOMAIN : Enters D3/SRD domain to DSTOP mode. - - (+) Exit: - Any EXTI Line (Internal or External) configured in Interrupt/Event mode. - - *** DSTANDBY mode *** - ===================== - [..] - In DStandby mode: - (+) The domain bus matrix clock is stopped. - (+) The domain is powered down and the domain RAM and register contents - are lost. - [..] - Before entering DSTANDBY mode it is recommended to call SCB_CleanDCache - function in order to clean the D-Cache and guarantee the data integrity - for the SRAM memories. - - (+) Entry: - The DSTANDBY mode is entered using the HAL_PWREx_EnterSTANDBYMode - (Domain) function with: - (++) Domain: - (+++) PWR_D1_DOMAIN : Enters D1/CD domain to DSTANDBY mode. - (+++) PWR_D2_DOMAIN : Enters D2 domain to DSTANDBY mode. - (+++) PWR_D3_DOMAIN : Enters D3/SRD domain to DSTANDBY mode. - - (+) Exit: - WKUP pin rising or falling edge, RTC alarm (Alarm A and Alarm B), RTC - wakeup, tamper event, time stamp event, external reset in NRST pin, - IWDG reset. - - *** Keep D3/SRD in RUN mode *** - =============================== - [..] - D3/SRD domain can be kept in Run mode regardless of the CPU status when - entering STOP mode by using HAL_PWREx_ConfigD3Domain(D3State) function - with : - (+) D3State: - (++) PWR_D3_DOMAIN_STOP : D3/SDR domain follows the CPU sub-system - mode. - (++) PWR_D3_DOMAIN_RUN : D3/SRD domain remains in Run mode regardless - of CPU subsystem mode. - - *** FLASH Power Down configuration **** - ======================================= - [..] - By setting the FLPS bit in the PWR_CR1 register using the - HAL_PWREx_EnableFlashPowerDown() function, the Flash memory also enters - power down mode when the device enters STOP mode. When the Flash memory is - in power down mode, an additional startup delay is incurred when waking up - from STOP mode. - - *** Wakeup Pins configuration **** - =================================== - [..] - Wakeup pins allow the system to exit from Standby mode. The configuration - of wakeup pins is done with the HAL_PWREx_EnableWakeUpPin(sPinParams) - function with: - (+) sPinParams: structure to enable and configure a wakeup pin: - (++) WakeUpPin: Wakeup pin to be enabled. - (++) PinPolarity: Wakeup pin polarity (rising or falling edge). - (++) PinPull: Wakeup pin pull (no pull, pull-up or pull-down). - [..] - The wakeup pins are internally connected to the EXTI lines [55-60] to - generate an interrupt if enabled. The EXTI lines configuration is done by - the HAL_EXTI_Dx_EventInputConfig() functions defined in the stm32h7xxhal.c - file. - [..] - When a wakeup pin event is received the HAL_PWREx_WAKEUP_PIN_IRQHandler is - called and the appropriate flag is set in the PWR_WKUPFR register. Then in - the HAL_PWREx_WAKEUP_PIN_IRQHandler function the wakeup pin flag will be - cleared and the appropriate user callback will be called. The user can add - his own code by customization of function pointer HAL_PWREx_WKUPx_Callback. - -@endverbatim - * @{ - */ - -#if defined (PWR_CPUCR_RETDS_CD) -/** - * @brief Enter the system to STOP mode with main domain in DSTOP2. - * @note In STOP mode, the domain bus matrix clock is stalled. - * @note In STOP mode, memories and registers are maintained and peripherals - * in CPU domain are no longer operational. - * @note All clocks in the VCORE domain are stopped, the PLL, the HSI and the - * HSE oscillators are disabled. Only Peripherals that have wakeup - * capability can switch on the HSI to receive a frame, and switch off - * the HSI after receiving the frame if it is not a wakeup frame. In - * this case the HSI clock is propagated only to the peripheral - * requesting it. - * @note When exiting STOP mode by issuing an interrupt or a wakeup event, - * the HSI RC oscillator is selected as system clock if STOPWUCK bit in - * RCC_CFGR register is set. - * @param Regulator : Specifies the regulator state in STOP mode. - * This parameter can be one of the following values: - * @arg PWR_MAINREGULATOR_ON : STOP mode with regulator ON. - * @arg PWR_LOWPOWERREGULATOR_ON : STOP mode with low power - * regulator ON. - * @param STOPEntry : Specifies if STOP mode in entered with WFI or WFE - * intrinsic instruction. - * This parameter can be one of the following values: - * @arg PWR_STOPENTRY_WFI : Enter STOP mode with WFI instruction. - * @arg PWR_STOPENTRY_WFE : Enter STOP mode with WFE instruction. - * @retval None. - */ -void HAL_PWREx_EnterSTOP2Mode (uint32_t Regulator, uint8_t STOPEntry) -{ - /* Check the parameters */ - assert_param (IS_PWR_REGULATOR (Regulator)); - assert_param (IS_PWR_STOP_ENTRY (STOPEntry)); - - /* Select the regulator state in Stop mode */ - MODIFY_REG (PWR->CR1, PWR_CR1_LPDS, Regulator); - - /* Go to DStop2 mode (deep retention) when CPU domain enters Deepsleep */ - SET_BIT (PWR->CPUCR, PWR_CPUCR_RETDS_CD); - - /* Keep DSTOP mode when SmartRun domain enters Deepsleep */ - CLEAR_BIT (PWR->CPUCR, PWR_CPUCR_PDDS_SRD); - - /* Set SLEEPDEEP bit of Cortex System Control Register */ - SET_BIT (SCB->SCR, SCB_SCR_SLEEPDEEP_Msk); - - /* Ensure that all instructions are done before entering STOP mode */ - __ISB (); - __DSB (); - - /* Select Stop mode entry */ - if (STOPEntry == PWR_STOPENTRY_WFI) - { - /* Request Wait For Interrupt */ - __WFI (); - } - else - { - /* Request Wait For Event */ - __WFE (); - } - - /* Clear SLEEPDEEP bit of Cortex-Mx in the System Control Register */ - CLEAR_BIT (SCB->SCR, SCB_SCR_SLEEPDEEP_Msk); -} -#endif /* defined (PWR_CPUCR_RETDS_CD) */ - -/** - * @brief Enter a Domain to DSTOP mode. - * @note This API gives flexibility to manage independently each domain STOP - * mode. For dual core lines, this API should be executed with the - * corresponding Cortex-Mx to enter domain to DSTOP mode. When it is - * executed by all available Cortex-Mx, the system enter to STOP mode. - * For single core lines, calling this API with domain parameter set to - * PWR_D1_DOMAIN (D1/CD), the whole system will enter in STOP mode - * independently of PWR_CPUCR_PDDS_Dx bits values if RUN_D3 bit in the - * CPUCR_RUN_D3 is cleared. - * @note In DStop mode the domain bus matrix clock is stopped. - * @note The system D3/SRD domain enter Stop mode only when the CPU subsystem - * is in CStop mode, the EXTI wakeup sources are inactive and at least - * one PDDS_Dn bit in PWR CPU control register (PWR_CPUCR) for - * any domain request Stop. - * @note Before entering DSTOP mode it is recommended to call SCB_CleanDCache - * function in order to clean the D-Cache and guarantee the data - * integrity for the SRAM memories. - * @note In System Stop mode, the domain peripherals that use the LSI or LSE - * clock, and the peripherals that have a kernel clock request to - * select HSI or CSI as source, are still able to operate. - * @param Regulator : Specifies the regulator state in STOP mode. - * This parameter can be one of the following values: - * @arg PWR_MAINREGULATOR_ON : STOP mode with regulator ON. - * @arg PWR_LOWPOWERREGULATOR_ON : STOP mode with low power - * regulator ON. - * @param STOPEntry : Specifies if STOP mode in entered with WFI or WFE - * intrinsic instruction. - * This parameter can be one of the following values: - * @arg PWR_STOPENTRY_WFI : Enter STOP mode with WFI instruction. - * @arg PWR_STOPENTRY_WFE : Enter STOP mode with WFE instruction. - * @param Domain : Specifies the Domain to enter in DSTOP mode. - * This parameter can be one of the following values: - * @arg PWR_D1_DOMAIN : Enter D1/CD Domain to DSTOP mode. - * @arg PWR_D2_DOMAIN : Enter D2 Domain to DSTOP mode. - * @arg PWR_D3_DOMAIN : Enter D3/SRD Domain to DSTOP mode. - * @retval None. - */ -void HAL_PWREx_EnterSTOPMode (uint32_t Regulator, uint8_t STOPEntry, uint32_t Domain) -{ - /* Check the parameters */ - assert_param (IS_PWR_REGULATOR (Regulator)); - assert_param (IS_PWR_STOP_ENTRY (STOPEntry)); - assert_param (IS_PWR_DOMAIN (Domain)); - - /* Select the regulator state in Stop mode */ - MODIFY_REG (PWR->CR1, PWR_CR1_LPDS, Regulator); - - /* Select the domain Power Down DeepSleep */ - if (Domain == PWR_D1_DOMAIN) - { -#if defined (DUAL_CORE) - /* Check current core */ - if (HAL_GetCurrentCPUID () != CM7_CPUID) - { - /* - When the domain selected and the cortex-mx don't match, entering stop - mode will not be performed - */ - return; - } -#endif /* defined (DUAL_CORE) */ - - /* Keep DSTOP mode when D1/CD domain enters Deepsleep */ - CLEAR_BIT (PWR->CPUCR, PWR_CPUCR_PDDS_D1); - - /* Set SLEEPDEEP bit of Cortex System Control Register */ - SET_BIT (SCB->SCR, SCB_SCR_SLEEPDEEP_Msk); - - /* Ensure that all instructions are done before entering STOP mode */ - __DSB (); - __ISB (); - - /* Select Stop mode entry */ - if (STOPEntry == PWR_STOPENTRY_WFI) - { - /* Request Wait For Interrupt */ - __WFI (); - } - else - { - /* Request Wait For Event */ - __WFE (); - } - - /* Clear SLEEPDEEP bit of Cortex-Mx in the System Control Register */ - CLEAR_BIT (SCB->SCR, SCB_SCR_SLEEPDEEP_Msk); - } -#if defined (PWR_CPUCR_PDDS_D2) - else if (Domain == PWR_D2_DOMAIN) - { -#if defined (DUAL_CORE) - /* Check current core */ - if (HAL_GetCurrentCPUID () != CM4_CPUID) - { - /* - When the domain selected and the cortex-mx don't match, entering stop - mode will not be performed - */ - return; - } - - /* Keep DSTOP mode when D2 domain enters Deepsleep */ - CLEAR_BIT (PWR->CPU2CR, PWR_CPU2CR_PDDS_D2); - - /* Set SLEEPDEEP bit of Cortex System Control Register */ - SET_BIT (SCB->SCR, SCB_SCR_SLEEPDEEP_Msk); - - /* Ensure that all instructions are done before entering STOP mode */ - __DSB (); - __ISB (); - - /* Select Stop mode entry */ - if (STOPEntry == PWR_STOPENTRY_WFI) - { - /* Request Wait For Interrupt */ - __WFI (); - } - else - { - /* Request Wait For Event */ - __WFE (); - } - - /* Clear SLEEPDEEP bit of Cortex-Mx in the System Control Register */ - CLEAR_BIT (SCB->SCR, SCB_SCR_SLEEPDEEP_Msk); -#else - /* Keep DSTOP mode when D2 domain enters Deepsleep */ - CLEAR_BIT (PWR->CPUCR, PWR_CPUCR_PDDS_D2); -#endif /* defined (DUAL_CORE) */ - } -#endif /* defined (PWR_CPUCR_PDDS_D2) */ - else - { -#if defined (DUAL_CORE) - /* Check current core */ - if (HAL_GetCurrentCPUID () == CM7_CPUID) - { - /* Keep DSTOP mode when D3 domain enters Deepsleep */ - CLEAR_BIT (PWR->CPUCR, PWR_CPUCR_PDDS_D3); - } - else - { - /* Keep DSTOP mode when D3 domain enters Deepsleep */ - CLEAR_BIT (PWR->CPU2CR, PWR_CPU2CR_PDDS_D3); - } -#else - /* Keep DSTOP mode when D3/SRD domain enters Deepsleep */ - CLEAR_BIT (PWR->CPUCR, PWR_CPUCR_PDDS_D3); -#endif /* defined (DUAL_CORE) */ - } -} - -/** - * @brief Clear pending event. - * @note This API clears the pending event in order to enter a given CPU - * to CSLEEP or CSTOP. It should be called just before APIs performing - * enter low power mode using Wait For Event request. - * @note Cortex-M7 must be in CRUN mode when calling this API by Cortex-M4. - * @retval None. - */ -void HAL_PWREx_ClearPendingEvent (void) -{ -#if defined (DUAL_CORE) - /* Check the current Core */ - if (HAL_GetCurrentCPUID () == CM7_CPUID) - { - __WFE (); - } - else - { - __SEV (); - __WFE (); - } -#else - __WFE (); -#endif /* defined (DUAL_CORE) */ -} - -/** - * @brief Enter a Domain to DSTANDBY mode. - * @note This API gives flexibility to manage independently each domain - * STANDBY mode. For dual core lines, this API should be executed with - * the corresponding Cortex-Mx to enter domain to DSTANDBY mode. When - * it is executed by all available Cortex-Mx, the system enter STANDBY - * mode. - * For single core lines, calling this API with D1/SRD the selected - * domain will enter the whole system in STOP if PWR_CPUCR_PDDS_D3 = 0 - * and enter the whole system in STANDBY if PWR_CPUCR_PDDS_D3 = 1. - * @note The DStandby mode is entered when all PDDS_Dn bits in PWR_CPUCR for - * the Dn domain select Standby mode. When the system enters Standby - * mode, the voltage regulator is disabled. - * @note When D2 or D3 domain is in DStandby mode and the CPU sets the - * domain PDDS_Dn bit to select Stop mode, the domain remains in - * DStandby mode. The domain will only exit DStandby when the CPU - * allocates a peripheral in the domain. - * @note The system D3/SRD domain enters Standby mode only when the D1 and D2 - * domain are in DStandby. - * @note Before entering DSTANDBY mode it is recommended to call - * SCB_CleanDCache function in order to clean the D-Cache and guarantee - * the data integrity for the SRAM memories. - * @param Domain : Specifies the Domain to enter to STANDBY mode. - * This parameter can be one of the following values: - * @arg PWR_D1_DOMAIN: Enter D1/CD Domain to DSTANDBY mode. - * @arg PWR_D2_DOMAIN: Enter D2 Domain to DSTANDBY mode. - * @arg PWR_D3_DOMAIN: Enter D3/SRD Domain to DSTANDBY mode. - * @retval None - */ -void HAL_PWREx_EnterSTANDBYMode (uint32_t Domain) -{ - /* Check the parameters */ - assert_param (IS_PWR_DOMAIN (Domain)); - - /* Select the domain Power Down DeepSleep */ - if (Domain == PWR_D1_DOMAIN) - { -#if defined (DUAL_CORE) - /* Check current core */ - if (HAL_GetCurrentCPUID () != CM7_CPUID) - { - /* - When the domain selected and the cortex-mx don't match, entering - standby mode will not be performed - */ - return; - } -#endif /* defined (DUAL_CORE) */ - - /* Allow DSTANDBY mode when D1/CD domain enters Deepsleep */ - SET_BIT (PWR-> CPUCR, PWR_CPUCR_PDDS_D1); - -#if defined (DUAL_CORE) - /* Allow DSTANDBY mode when D1/CD domain enters Deepsleep */ - SET_BIT (PWR-> CPU2CR, PWR_CPU2CR_PDDS_D1); -#endif /*DUAL_CORE*/ - - /* Set SLEEPDEEP bit of Cortex System Control Register */ - SET_BIT (SCB->SCR, SCB_SCR_SLEEPDEEP_Msk); - - /* This option is used to ensure that store operations are completed */ -#if defined (__CC_ARM) - __force_stores (); -#endif /* defined (__CC_ARM) */ - - /* Request Wait For Interrupt */ - __WFI (); - } -#if defined (PWR_CPUCR_PDDS_D2) - else if (Domain == PWR_D2_DOMAIN) - { - /* Allow DSTANDBY mode when D2 domain enters Deepsleep */ - SET_BIT (PWR-> CPUCR, PWR_CPUCR_PDDS_D2); - -#if defined (DUAL_CORE) - /* Check current core */ - if (HAL_GetCurrentCPUID () != CM4_CPUID) - { - /* - When the domain selected and the cortex-mx don't match, entering - standby mode will not be performed - */ - return; - } - - /* Allow DSTANDBY mode when D2 domain enters Deepsleep */ - SET_BIT (PWR-> CPU2CR, PWR_CPU2CR_PDDS_D2); - - /* Set SLEEPDEEP bit of Cortex System Control Register */ - SET_BIT (SCB->SCR, SCB_SCR_SLEEPDEEP_Msk); - - /* This option is used to ensure that store operations are completed */ -#if defined (__CC_ARM) - __force_stores (); -#endif /* defined (__CC_ARM) */ - - /* Request Wait For Interrupt */ - __WFI (); -#endif /* defined (DUAL_CORE) */ - } -#endif /* defined (PWR_CPUCR_PDDS_D2) */ - else - { - /* Allow DSTANDBY mode when D3/SRD domain enters Deepsleep */ - SET_BIT (PWR->CPUCR, PWR_CPUCR_PDDS_D3); - -#if defined (DUAL_CORE) - /* Allow DSTANDBY mode when D3/SRD domain enters Deepsleep */ - SET_BIT (PWR->CPU2CR, PWR_CPU2CR_PDDS_D3); -#endif /* defined (DUAL_CORE) */ - } -} - -/** - * @brief Configure the D3/SRD Domain state when the System in low power mode. - * @param D3State : Specifies the D3/SRD state. - * This parameter can be one of the following values : - * @arg PWR_D3_DOMAIN_STOP : D3/SRD domain will follow the most deep - * CPU sub-system low power mode. - * @arg PWR_D3_DOMAIN_RUN : D3/SRD domain will stay in RUN mode - * regardless of the CPU sub-system low - * power mode. - * @retval None - */ -void HAL_PWREx_ConfigD3Domain (uint32_t D3State) -{ - /* Check the parameter */ - assert_param (IS_D3_STATE (D3State)); - - /* Keep D3/SRD in run mode */ - MODIFY_REG (PWR->CPUCR, PWR_CPUCR_RUN_D3, D3State); -} - -#if defined (DUAL_CORE) -/** - * @brief Clear HOLD2F, HOLD1F, STOPF, SBF, SBF_D1, and SBF_D2 flags for a - * given domain. - * @param DomainFlags : Specifies the Domain flags to be cleared. - * This parameter can be one of the following values: - * @arg PWR_D1_DOMAIN_FLAGS : Clear D1 Domain flags. - * @arg PWR_D2_DOMAIN_FLAGS : Clear D2 Domain flags. - * @arg PWR_ALL_DOMAIN_FLAGS : Clear D1 and D2 Domain flags. - * @retval None. - */ -void HAL_PWREx_ClearDomainFlags (uint32_t DomainFlags) -{ - /* Check the parameter */ - assert_param (IS_PWR_DOMAIN_FLAG (DomainFlags)); - - /* D1 CPU flags */ - if (DomainFlags == PWR_D1_DOMAIN_FLAGS) - { - /* Clear D1 domain flags (HOLD2F, STOPF, SBF, SBF_D1, and SBF_D2) */ - SET_BIT (PWR->CPUCR, PWR_CPUCR_CSSF); - } - /* D2 CPU flags */ - else if (DomainFlags == PWR_D2_DOMAIN_FLAGS) - { - /* Clear D2 domain flags (HOLD1F, STOPF, SBF, SBF_D1, and SBF_D2) */ - SET_BIT (PWR->CPU2CR, PWR_CPU2CR_CSSF); - } - else - { - /* Clear D1 domain flags (HOLD2F, STOPF, SBF, SBF_D1, and SBF_D2) */ - SET_BIT (PWR->CPUCR, PWR_CPUCR_CSSF); - /* Clear D2 domain flags (HOLD1F, STOPF, SBF, SBF_D1, and SBF_D2) */ - SET_BIT (PWR->CPU2CR, PWR_CPU2CR_CSSF); - } -} - -/** - * @brief Hold the CPU and their domain peripherals when exiting STOP mode. - * @param CPU : Specifies the core to be held. - * This parameter can be one of the following values: - * @arg PWR_CORE_CPU1: Hold CPU1 and set CPU2 as master. - * @arg PWR_CORE_CPU2: Hold CPU2 and set CPU1 as master. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_PWREx_HoldCore (uint32_t CPU) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Check the parameters */ - assert_param (IS_PWR_CORE (CPU)); - - /* Check CPU index */ - if (CPU == PWR_CORE_CPU2) - { - /* If CPU1 is not held */ - if ((PWR->CPU2CR & PWR_CPU2CR_HOLD1) != PWR_CPU2CR_HOLD1) - { - /* Set HOLD2 bit */ - SET_BIT (PWR->CPUCR, PWR_CPUCR_HOLD2); - } - else - { - status = HAL_ERROR; - } - } - else - { - /* If CPU2 is not held */ - if ((PWR->CPUCR & PWR_CPUCR_HOLD2) != PWR_CPUCR_HOLD2) - { - /* Set HOLD1 bit */ - SET_BIT (PWR->CPU2CR, PWR_CPU2CR_HOLD1); - } - else - { - status = HAL_ERROR; - } - } - - return status; -} - -/** - * @brief Release the CPU and their domain peripherals after a wake-up from - * STOP mode. - * @param CPU: Specifies the core to be released. - * This parameter can be one of the following values: - * @arg PWR_CORE_CPU1: Release the CPU1 and their domain - * peripherals from holding. - * @arg PWR_CORE_CPU2: Release the CPU2 and their domain - * peripherals from holding. - * @retval None - */ -void HAL_PWREx_ReleaseCore (uint32_t CPU) -{ - /* Check the parameters */ - assert_param (IS_PWR_CORE (CPU)); - - /* Check CPU index */ - if (CPU == PWR_CORE_CPU2) - { - /* Reset HOLD2 bit */ - CLEAR_BIT (PWR->CPUCR, PWR_CPUCR_HOLD2); - } - else - { - /* Reset HOLD1 bit */ - CLEAR_BIT (PWR->CPU2CR, PWR_CPU2CR_HOLD1); - } -} -#endif /* defined (DUAL_CORE) */ - - -/** - * @brief Enable the Flash Power Down in Stop mode. - * @note When Flash Power Down is enabled the Flash memory enters low-power - * mode when D1/SRD domain is in DStop mode. This feature allows to - * obtain the best trade-off between low-power consumption and restart - * time when exiting from DStop mode. - * @retval None. - */ -void HAL_PWREx_EnableFlashPowerDown (void) -{ - /* Enable the Flash Power Down */ - SET_BIT (PWR->CR1, PWR_CR1_FLPS); -} - -/** - * @brief Disable the Flash Power Down in Stop mode. - * @note When Flash Power Down is disabled the Flash memory is kept on - * normal mode when D1/SRD domain is in DStop mode. This feature allows - * to obtain the best trade-off between low-power consumption and - * restart time when exiting from DStop mode. - * @retval None. - */ -void HAL_PWREx_DisableFlashPowerDown (void) -{ - /* Disable the Flash Power Down */ - CLEAR_BIT (PWR->CR1, PWR_CR1_FLPS); -} - -#if defined (PWR_CR1_SRDRAMSO) -/** - * @brief Enable memory block shut-off in DStop or DStop2 modes - * @note In DStop or DStop2 mode, the content of the memory blocks is - * maintained. Further power optimization can be obtained by switching - * off some memory blocks. This optimization implies loss of the memory - * content. The user can select which memory is discarded during STOP - * mode by means of xxSO bits. - * @param MemoryBlock : Specifies the memory block to shut-off during DStop or - * DStop2 mode. - * This parameter can be one of the following values: - * @arg PWR_SRD_AHB_MEMORY_BLOCK : SmartRun domain AHB memory. - * @arg PWR_USB_FDCAN_MEMORY_BLOCK : High-speed interfaces USB and - * FDCAN memories. - * @arg PWR_GFXMMU_JPEG_MEMORY_BLOCK : GFXMMU and JPEG memories. - * @arg PWR_TCM_ECM_MEMORY_BLOCK : Instruction TCM and ETM memories. - * @arg PWR_RAM1_AHB_MEMORY_BLOCK : AHB RAM1 memory. - * @arg PWR_RAM2_AHB_MEMORY_BLOCK : AHB RAM2 memory. - * @arg PWR_RAM1_AXI_MEMORY_BLOCK : AXI RAM1 memory. - * @arg PWR_RAM2_AXI_MEMORY_BLOCK : AXI RAM2 memory. - * @arg PWR_RAM3_AXI_MEMORY_BLOCK : AXI RAM3 memory. - * @retval None. - */ -void HAL_PWREx_EnableMemoryShutOff (uint32_t MemoryBlock) -{ - /* Check the parameter */ - assert_param (IS_PWR_MEMORY_BLOCK (MemoryBlock)); - - /* Enable memory block shut-off */ - SET_BIT (PWR->CR1, MemoryBlock); -} - -/** - * @brief Disable memory block shut-off in DStop or DStop2 modes - * @param MemoryBlock : Specifies the memory block to keep content during - * DStop or DStop2 mode. - * This parameter can be one of the following values: - * @arg PWR_SRD_AHB_MEMORY_BLOCK : SmartRun domain AHB memory. - * @arg PWR_USB_FDCAN_MEMORY_BLOCK : High-speed interfaces USB and - * FDCAN memories. - * @arg PWR_GFXMMU_JPEG_MEMORY_BLOCK : GFXMMU and JPEG memories. - * @arg PWR_TCM_ECM_MEMORY_BLOCK : Instruction TCM and ETM memories. - * @arg PWR_RAM1_AHB_MEMORY_BLOCK : AHB RAM1 memory. - * @arg PWR_RAM2_AHB_MEMORY_BLOCK : AHB RAM2 memory. - * @arg PWR_RAM1_AXI_MEMORY_BLOCK : AXI RAM1 memory. - * @arg PWR_RAM2_AXI_MEMORY_BLOCK : AXI RAM2 memory. - * @arg PWR_RAM3_AXI_MEMORY_BLOCK : AXI RAM3 memory. - * @retval None. - */ -void HAL_PWREx_DisableMemoryShutOff (uint32_t MemoryBlock) -{ - /* Check the parameter */ - assert_param (IS_PWR_MEMORY_BLOCK (MemoryBlock)); - - /* Disable memory block shut-off */ - CLEAR_BIT (PWR->CR1, MemoryBlock); -} -#endif /* defined (PWR_CR1_SRDRAMSO) */ - -/** - * @brief Enable the Wake-up PINx functionality. - * @param sPinParams : Pointer to a PWREx_WakeupPinTypeDef structure that - * contains the configuration information for the wake-up - * Pin. - * @note For dual core devices, please ensure to configure the EXTI lines for - * the different Cortex-Mx. All combination are allowed: wake up only - * Cortex-M7, wake up only Cortex-M4 and wake up Cortex-M7 and - * Cortex-M4. - * @retval None. - */ -void HAL_PWREx_EnableWakeUpPin (PWREx_WakeupPinTypeDef *sPinParams) -{ - uint32_t pinConfig; - uint32_t regMask; - const uint32_t pullMask = PWR_WKUPEPR_WKUPPUPD1; - - /* Check the parameters */ - assert_param (IS_PWR_WAKEUP_PIN (sPinParams->WakeUpPin)); - assert_param (IS_PWR_WAKEUP_PIN_POLARITY (sPinParams->PinPolarity)); - assert_param (IS_PWR_WAKEUP_PIN_PULL (sPinParams->PinPull)); - - pinConfig = sPinParams->WakeUpPin | \ - (sPinParams->PinPolarity << ((POSITION_VAL(sPinParams->WakeUpPin) + PWR_WKUPEPR_WKUPP1_Pos) & 0x1FU)) | \ - (sPinParams->PinPull << (((POSITION_VAL(sPinParams->WakeUpPin) * PWR_WAKEUP_PINS_PULL_SHIFT_OFFSET) + PWR_WKUPEPR_WKUPPUPD1_Pos) & 0x1FU)); - - regMask = sPinParams->WakeUpPin | \ - (PWR_WKUPEPR_WKUPP1 << (POSITION_VAL(sPinParams->WakeUpPin) & 0x1FU)) | \ - (pullMask << ((POSITION_VAL(sPinParams->WakeUpPin) * PWR_WAKEUP_PINS_PULL_SHIFT_OFFSET) & 0x1FU)); - - /* Enable and Specify the Wake-Up pin polarity and the pull configuration - for the event detection (rising or falling edge) */ - MODIFY_REG (PWR->WKUPEPR, regMask, pinConfig); -#ifndef DUAL_CORE - /* Configure the Wakeup Pin EXTI Line */ - MODIFY_REG (EXTI->IMR2, PWR_EXTI_WAKEUP_PINS_MASK, (sPinParams->WakeUpPin << EXTI_IMR2_IM55_Pos)); -#endif /* !DUAL_CORE */ -} - -/** - * @brief Disable the Wake-up PINx functionality. - * @param WakeUpPin : Specifies the Wake-Up pin to be disabled. - * This parameter can be one of the following values: - * @arg PWR_WAKEUP_PIN1 : Disable PA0 wake-up PIN. - * @arg PWR_WAKEUP_PIN2 : Disable PA2 wake-up PIN. - * @arg PWR_WAKEUP_PIN3 : Disable PI8 wake-up PIN. - * @arg PWR_WAKEUP_PIN4 : Disable PC13 wake-up PIN. - * @arg PWR_WAKEUP_PIN5 : Disable PI11 wake-up PIN. - * @arg PWR_WAKEUP_PIN6 : Disable PC1 wake-up PIN. - * @note The PWR_WAKEUP_PIN3 and PWR_WAKEUP_PIN5 are available only for - * devices that support GPIOI port. - * @retval None - */ -void HAL_PWREx_DisableWakeUpPin (uint32_t WakeUpPin) -{ - /* Check the parameter */ - assert_param (IS_PWR_WAKEUP_PIN (WakeUpPin)); - - /* Disable the WakeUpPin */ - CLEAR_BIT (PWR->WKUPEPR, WakeUpPin); -} - -/** - * @brief Get the Wake-Up Pin pending flags. - * @param WakeUpFlag : Specifies the Wake-Up PIN flag to be checked. - * This parameter can be one of the following values: - * @arg PWR_WAKEUP_FLAG1 : Get wakeup event received from PA0. - * @arg PWR_WAKEUP_FLAG2 : Get wakeup event received from PA2. - * @arg PWR_WAKEUP_FLAG3 : Get wakeup event received from PI8. - * @arg PWR_WAKEUP_FLAG4 : Get wakeup event received from PC13. - * @arg PWR_WAKEUP_FLAG5 : Get wakeup event received from PI11. - * @arg PWR_WAKEUP_FLAG6 : Get wakeup event received from PC1. - * @arg PWR_WAKEUP_FLAG_ALL : Get Wakeup event received from all - * wake up pins. - * @note The PWR_WAKEUP_FLAG3 and PWR_WAKEUP_FLAG5 are available only for - * devices that support GPIOI port. - * @retval The Wake-Up pin flag. - */ -uint32_t HAL_PWREx_GetWakeupFlag (uint32_t WakeUpFlag) -{ - /* Check the parameters */ - assert_param (IS_PWR_WAKEUP_FLAG (WakeUpFlag)); - - /* Return the wake up pin flag */ - return (PWR->WKUPFR & WakeUpFlag); -} - -/** - * @brief Clear the Wake-Up pin pending flag. - * @param WakeUpFlag: Specifies the Wake-Up PIN flag to clear. - * This parameter can be one of the following values: - * @arg PWR_WAKEUP_FLAG1 : Clear the wakeup event received from PA0. - * @arg PWR_WAKEUP_FLAG2 : Clear the wakeup event received from PA2. - * @arg PWR_WAKEUP_FLAG3 : Clear the wakeup event received from PI8. - * @arg PWR_WAKEUP_FLAG4 : Clear the wakeup event received from PC13. - * @arg PWR_WAKEUP_FLAG5 : Clear the wakeup event received from PI11. - * @arg PWR_WAKEUP_FLAG6 : Clear the wakeup event received from PC1. - * @arg PWR_WAKEUP_FLAG_ALL : Clear the wakeup events received from - * all wake up pins. - * @note The PWR_WAKEUP_FLAG3 and PWR_WAKEUP_FLAG5 are available only for - * devices that support GPIOI port. - * @retval HAL status. - */ -HAL_StatusTypeDef HAL_PWREx_ClearWakeupFlag (uint32_t WakeUpFlag) -{ - /* Check the parameter */ - assert_param (IS_PWR_WAKEUP_FLAG (WakeUpFlag)); - - /* Clear the wake up event received from wake up pin x */ - SET_BIT (PWR->WKUPCR, WakeUpFlag); - - /* Check if the wake up event is well cleared */ - if ((PWR->WKUPFR & WakeUpFlag) != 0U) - { - return HAL_ERROR; - } - - return HAL_OK; -} - -/** - * @brief This function handles the PWR WAKEUP PIN interrupt request. - * @note This API should be called under the WAKEUP_PIN_IRQHandler(). - * @retval None. - */ -void HAL_PWREx_WAKEUP_PIN_IRQHandler (void) -{ - /* Wakeup pin EXTI line interrupt detected */ - if (READ_BIT(PWR->WKUPFR, PWR_WKUPFR_WKUPF1) != 0U) - { - /* Clear PWR WKUPF1 flag */ - __HAL_PWR_CLEAR_WAKEUPFLAG (PWR_FLAG_WKUP1); - - /* PWR WKUP1 interrupt user callback */ - HAL_PWREx_WKUP1_Callback (); - } - else if (READ_BIT (PWR->WKUPFR, PWR_WKUPFR_WKUPF2) != 0U) - { - /* Clear PWR WKUPF2 flag */ - __HAL_PWR_CLEAR_WAKEUPFLAG (PWR_FLAG_WKUP2); - - /* PWR WKUP2 interrupt user callback */ - HAL_PWREx_WKUP2_Callback (); - } -#if defined (PWR_WKUPFR_WKUPF3) - else if (READ_BIT (PWR->WKUPFR, PWR_WKUPFR_WKUPF3) != 0U) - { - /* Clear PWR WKUPF3 flag */ - __HAL_PWR_CLEAR_WAKEUPFLAG (PWR_FLAG_WKUP3); - - /* PWR WKUP3 interrupt user callback */ - HAL_PWREx_WKUP3_Callback (); - } -#endif /* defined (PWR_WKUPFR_WKUPF3) */ - else if (READ_BIT (PWR->WKUPFR, PWR_WKUPFR_WKUPF4) != 0U) - { - /* Clear PWR WKUPF4 flag */ - __HAL_PWR_CLEAR_WAKEUPFLAG (PWR_FLAG_WKUP4); - - /* PWR WKUP4 interrupt user callback */ - HAL_PWREx_WKUP4_Callback (); - } -#if defined (PWR_WKUPFR_WKUPF5) - else if (READ_BIT (PWR->WKUPFR, PWR_WKUPFR_WKUPF5) != 0U) - { - /* Clear PWR WKUPF5 flag */ - __HAL_PWR_CLEAR_WAKEUPFLAG (PWR_FLAG_WKUP5); - - /* PWR WKUP5 interrupt user callback */ - HAL_PWREx_WKUP5_Callback (); - } -#endif /* defined (PWR_WKUPFR_WKUPF5) */ - else - { - /* Clear PWR WKUPF6 flag */ - __HAL_PWR_CLEAR_WAKEUPFLAG (PWR_FLAG_WKUP6); - - /* PWR WKUP6 interrupt user callback */ - HAL_PWREx_WKUP6_Callback (); - } -} - -/** - * @brief PWR WKUP1 interrupt callback. - * @retval None. - */ -__weak void HAL_PWREx_WKUP1_Callback (void) -{ - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_PWREx_WKUP1Callback can be implemented in the user file - */ -} - -/** - * @brief PWR WKUP2 interrupt callback. - * @retval None. - */ -__weak void HAL_PWREx_WKUP2_Callback (void) -{ - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_PWREx_WKUP2Callback can be implemented in the user file - */ -} - -#if defined (PWR_WKUPFR_WKUPF3) -/** - * @brief PWR WKUP3 interrupt callback. - * @retval None. - */ -__weak void HAL_PWREx_WKUP3_Callback (void) -{ - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_PWREx_WKUP3Callback can be implemented in the user file - */ -} -#endif /* defined (PWR_WKUPFR_WKUPF3) */ - -/** - * @brief PWR WKUP4 interrupt callback. - * @retval None. - */ -__weak void HAL_PWREx_WKUP4_Callback (void) -{ - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_PWREx_WKUP4Callback can be implemented in the user file - */ -} - -#if defined (PWR_WKUPFR_WKUPF5) -/** - * @brief PWR WKUP5 interrupt callback. - * @retval None. - */ -__weak void HAL_PWREx_WKUP5_Callback (void) -{ - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_PWREx_WKUP5Callback can be implemented in the user file - */ -} -#endif /* defined (PWR_WKUPFR_WKUPF5) */ - -/** - * @brief PWR WKUP6 interrupt callback. - * @retval None. - */ -__weak void HAL_PWREx_WKUP6_Callback (void) -{ - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_PWREx_WKUP6Callback can be implemented in the user file - */ -} -/** - * @} - */ - -/** @defgroup PWREx_Exported_Functions_Group3 Peripherals control functions - * @brief Peripherals control functions - * -@verbatim - =============================================================================== - ##### Peripherals control functions ##### - =============================================================================== - - *** Main and Backup Regulators configuration *** - ================================================ - [..] - (+) The backup domain includes 4 Kbytes of backup SRAM accessible only - from the CPU, and addressed in 32-bit, 16-bit or 8-bit mode. Its - content is retained even in Standby or VBAT mode when the low power - backup regulator is enabled. It can be considered as an internal - EEPROM when VBAT is always present. You can use the - HAL_PWREx_EnableBkUpReg() function to enable the low power backup - regulator. - (+) When the backup domain is supplied by VDD (analog switch connected to - VDD) the backup SRAM is powered from VDD which replaces the VBAT power - supply to save battery life. - (+) The backup SRAM is not mass erased by a tamper event. It is read - protected to prevent confidential data, such as cryptographic private - key, from being accessed. The backup SRAM can be erased only through - the Flash interface when a protection level change from level 1 to - level 0 is requested. - -@- Refer to the description of Read protection (RDP) in the Flash - programming manual. - (+) The main internal regulator can be configured to have a tradeoff - between performance and power consumption when the device does not - operate at the maximum frequency. This is done through - HAL_PWREx_ControlVoltageScaling(VOS) function which configure the VOS - bit in PWR_D3CR register. - (+) The main internal regulator can be configured to operate in Low Power - mode when the system enters STOP mode to further reduce power - consumption. - This is done through HAL_PWREx_ControlStopModeVoltageScaling(SVOS) - function which configure the SVOS bit in PWR_CR1 register. - The selected SVOS4 and SVOS5 levels add an additional startup delay - when exiting from system Stop mode. - -@- Refer to the product datasheets for more details. - - *** USB Regulator configuration *** - =================================== - [..] - (+) The USB transceivers are supplied from a dedicated VDD33USB supply - that can be provided either by the integrated USB regulator, or by an - external USB supply. - (+) The USB regulator is enabled by HAL_PWREx_EnableUSBReg() function, the - VDD33USB is then provided from the USB regulator. - (+) When the USB regulator is enabled, the VDD33USB supply level detector - shall be enabled through HAL_PWREx_EnableUSBVoltageDetector() - function. - (+) The USB regulator is disabled through HAL_PWREx_DisableUSBReg() - function and VDD33USB can be provided from an external supply. In this - case VDD33USB and VDD50USB shall be connected together. - - *** VBAT battery charging *** - ============================= - [..] - (+) When VDD is present, the external battery connected to VBAT can be - charged through an internal resistance. VBAT charging can be performed - either through a 5 KOhm resistor or through a 1.5 KOhm resistor. - (+) VBAT charging is enabled by HAL_PWREx_EnableBatteryCharging - (ResistorValue) function with: - (++) ResistorValue: - (+++) PWR_BATTERY_CHARGING_RESISTOR_5: 5 KOhm resistor. - (+++) PWR_BATTERY_CHARGING_RESISTOR_1_5: 1.5 KOhm resistor. - (+) VBAT charging is disabled by HAL_PWREx_DisableBatteryCharging() - function. - -@endverbatim - * @{ - */ - -/** - * @brief Enable the Backup Regulator. - * @retval HAL status. - */ -HAL_StatusTypeDef HAL_PWREx_EnableBkUpReg (void) -{ - uint32_t tickstart; - - /* Enable the Backup regulator */ - SET_BIT (PWR->CR2, PWR_CR2_BREN); - - /* Get tick */ - tickstart = HAL_GetTick (); - - /* Wait till Backup regulator ready flag is set */ - while (__HAL_PWR_GET_FLAG (PWR_FLAG_BRR) == 0U) - { - if ((HAL_GetTick() - tickstart ) > PWR_FLAG_SETTING_DELAY) - { - return HAL_ERROR; - } - } - - return HAL_OK; -} - -/** - * @brief Disable the Backup Regulator. - * @retval HAL status. - */ -HAL_StatusTypeDef HAL_PWREx_DisableBkUpReg (void) -{ - uint32_t tickstart; - - /* Disable the Backup regulator */ - CLEAR_BIT (PWR->CR2, PWR_CR2_BREN); - - /* Get tick */ - tickstart = HAL_GetTick (); - - /* Wait till Backup regulator ready flag is reset */ - while (__HAL_PWR_GET_FLAG (PWR_FLAG_BRR) != 0U) - { - if ((HAL_GetTick() - tickstart ) > PWR_FLAG_SETTING_DELAY) - { - return HAL_ERROR; - } - } - - return HAL_OK; -} - -/** - * @brief Enable the USB Regulator. - * @retval HAL status. - */ -HAL_StatusTypeDef HAL_PWREx_EnableUSBReg (void) -{ - uint32_t tickstart; - - /* Enable the USB regulator */ - SET_BIT (PWR->CR3, PWR_CR3_USBREGEN); - - /* Get tick */ - tickstart = HAL_GetTick (); - - /* Wait till the USB regulator ready flag is set */ - while (__HAL_PWR_GET_FLAG (PWR_FLAG_USB33RDY) == 0U) - { - if ((HAL_GetTick() - tickstart ) > PWR_FLAG_SETTING_DELAY) - { - return HAL_ERROR; - } - } - - return HAL_OK; -} - -/** - * @brief Disable the USB Regulator. - * @retval HAL status. - */ -HAL_StatusTypeDef HAL_PWREx_DisableUSBReg (void) -{ - uint32_t tickstart; - - /* Disable the USB regulator */ - CLEAR_BIT (PWR->CR3, PWR_CR3_USBREGEN); - - /* Get tick */ - tickstart = HAL_GetTick (); - - /* Wait till the USB regulator ready flag is reset */ - while(__HAL_PWR_GET_FLAG (PWR_FLAG_USB33RDY) != 0U) - { - if ((HAL_GetTick() - tickstart ) > PWR_FLAG_SETTING_DELAY) - { - return HAL_ERROR; - } - } - - return HAL_OK; -} - -/** - * @brief Enable the USB voltage level detector. - * @retval None. - */ -void HAL_PWREx_EnableUSBVoltageDetector (void) -{ - /* Enable the USB voltage detector */ - SET_BIT (PWR->CR3, PWR_CR3_USB33DEN); -} - -/** - * @brief Disable the USB voltage level detector. - * @retval None. - */ -void HAL_PWREx_DisableUSBVoltageDetector (void) -{ - /* Disable the USB voltage detector */ - CLEAR_BIT (PWR->CR3, PWR_CR3_USB33DEN); -} - -/** - * @brief Enable the Battery charging. - * @note When VDD is present, charge the external battery through an internal - * resistor. - * @param ResistorValue : Specifies the charging resistor. - * This parameter can be one of the following values : - * @arg PWR_BATTERY_CHARGING_RESISTOR_5 : 5 KOhm resistor. - * @arg PWR_BATTERY_CHARGING_RESISTOR_1_5 : 1.5 KOhm resistor. - * @retval None. - */ -void HAL_PWREx_EnableBatteryCharging (uint32_t ResistorValue) -{ - /* Check the parameter */ - assert_param (IS_PWR_BATTERY_RESISTOR_SELECT (ResistorValue)); - - /* Specify the charging resistor */ - MODIFY_REG (PWR->CR3, PWR_CR3_VBRS, ResistorValue); - - /* Enable the Battery charging */ - SET_BIT (PWR->CR3, PWR_CR3_VBE); -} - -/** - * @brief Disable the Battery charging. - * @retval None. - */ -void HAL_PWREx_DisableBatteryCharging (void) -{ - /* Disable the Battery charging */ - CLEAR_BIT (PWR->CR3, PWR_CR3_VBE); -} - -#if defined (PWR_CR1_BOOSTE) -/** - * @brief Enable the booster to guarantee the analog switch AC performance when - * the VDD supply voltage is below 2V7. - * @note The VDD supply voltage can be monitored through the PVD and the PLS - * field bits. - * @retval None. - */ -void HAL_PWREx_EnableAnalogBooster (void) -{ - /* Enable the Analog voltage */ - SET_BIT (PWR->CR1, PWR_CR1_AVD_READY); - - /* Enable VDDA booster */ - SET_BIT (PWR->CR1, PWR_CR1_BOOSTE); -} - -/** - * @brief Disable the analog booster. - * @retval None. - */ -void HAL_PWREx_DisableAnalogBooster (void) -{ - /* Disable VDDA booster */ - CLEAR_BIT (PWR->CR1, PWR_CR1_BOOSTE); - - /* Disable the Analog voltage */ - CLEAR_BIT (PWR->CR1, PWR_CR1_AVD_READY); -} -#endif /* defined (PWR_CR1_BOOSTE) */ -/** - * @} - */ - -/** @defgroup PWREx_Exported_Functions_Group4 Power Monitoring functions - * @brief Power Monitoring functions - * -@verbatim - =============================================================================== - ##### Power Monitoring functions ##### - =============================================================================== - - *** VBAT and Temperature supervision *** - ======================================== - [..] - (+) The VBAT battery voltage supply can be monitored by comparing it with - two threshold levels: VBAThigh and VBATlow. VBATH flag and VBATL flags - in the PWR control register 2 (PWR_CR2), indicate if VBAT is higher or - lower than the threshold. - (+) The temperature can be monitored by comparing it with two threshold - levels, TEMPhigh and TEMPlow. TEMPH and TEMPL flags, in the PWR - control register 2 (PWR_CR2), indicate whether the device temperature - is higher or lower than the threshold. - (+) The VBAT and the temperature monitoring is enabled by - HAL_PWREx_EnableMonitoring() function and disabled by - HAL_PWREx_DisableMonitoring() function. - (+) The HAL_PWREx_GetVBATLevel() function returns the VBAT level which can - be : PWR_VBAT_BELOW_LOW_THRESHOLD or PWR_VBAT_ABOVE_HIGH_THRESHOLD or - PWR_VBAT_BETWEEN_HIGH_LOW_THRESHOLD. - (+) The HAL_PWREx_GetTemperatureLevel() function returns the Temperature - level which can be : - PWR_TEMP_BELOW_LOW_THRESHOLD or PWR_TEMP_ABOVE_HIGH_THRESHOLD or - PWR_TEMP_BETWEEN_HIGH_LOW_THRESHOLD. - - *** AVD configuration *** - ========================= - [..] - (+) The AVD is used to monitor the VDDA power supply by comparing it to a - threshold selected by the AVD Level (ALS[3:0] bits in the PWR_CR1 - register). - (+) A AVDO flag is available to indicate if VDDA is higher or lower - than the AVD threshold. This event is internally connected to the EXTI - line 16 to generate an interrupt if enabled. - It is configurable through __HAL_PWR_AVD_EXTI_ENABLE_IT() macro. - (+) The AVD is stopped in System Standby mode. - -@endverbatim - * @{ - */ - -/** - * @brief Enable the VBAT and temperature monitoring. - * @retval HAL status. - */ -void HAL_PWREx_EnableMonitoring (void) -{ - /* Enable the VBAT and Temperature monitoring */ - SET_BIT (PWR->CR2, PWR_CR2_MONEN); -} - -/** - * @brief Disable the VBAT and temperature monitoring. - * @retval HAL status. - */ -void HAL_PWREx_DisableMonitoring (void) -{ - /* Disable the VBAT and Temperature monitoring */ - CLEAR_BIT (PWR->CR2, PWR_CR2_MONEN); -} - -/** - * @brief Indicate whether the junction temperature is between, above or below - * the thresholds. - * @retval Temperature level. - */ -uint32_t HAL_PWREx_GetTemperatureLevel (void) -{ - uint32_t tempLevel, regValue; - - /* Read the temperature flags */ - regValue = READ_BIT (PWR->CR2, (PWR_CR2_TEMPH | PWR_CR2_TEMPL)); - - /* Check if the temperature is below the threshold */ - if (regValue == PWR_CR2_TEMPL) - { - tempLevel = PWR_TEMP_BELOW_LOW_THRESHOLD; - } - /* Check if the temperature is above the threshold */ - else if (regValue == PWR_CR2_TEMPH) - { - tempLevel = PWR_TEMP_ABOVE_HIGH_THRESHOLD; - } - /* The temperature is between the thresholds */ - else - { - tempLevel = PWR_TEMP_BETWEEN_HIGH_LOW_THRESHOLD; - } - - return tempLevel; -} - -/** - * @brief Indicate whether the Battery voltage level is between, above or below - * the thresholds. - * @retval VBAT level. - */ -uint32_t HAL_PWREx_GetVBATLevel (void) -{ - uint32_t VBATLevel, regValue; - - /* Read the VBAT flags */ - regValue = READ_BIT (PWR->CR2, (PWR_CR2_VBATH | PWR_CR2_VBATL)); - - /* Check if the VBAT is below the threshold */ - if (regValue == PWR_CR2_VBATL) - { - VBATLevel = PWR_VBAT_BELOW_LOW_THRESHOLD; - } - /* Check if the VBAT is above the threshold */ - else if (regValue == PWR_CR2_VBATH) - { - VBATLevel = PWR_VBAT_ABOVE_HIGH_THRESHOLD; - } - /* The VBAT is between the thresholds */ - else - { - VBATLevel = PWR_VBAT_BETWEEN_HIGH_LOW_THRESHOLD; - } - - return VBATLevel; -} - -#if defined (PWR_CSR1_MMCVDO) -/** - * @brief Get the VDDMMC voltage level. - * @retval The VDDMMC voltage level. - */ -PWREx_MMC_VoltageLevel HAL_PWREx_GetMMCVoltage (void) -{ - PWREx_MMC_VoltageLevel mmc_voltage; - - /* Check voltage detector output on VDDMMC value */ - if ((PWR->CSR1 & PWR_CSR1_MMCVDO_Msk) == 0U) - { - mmc_voltage = PWR_MMC_VOLTAGE_BELOW_1V2; - } - else - { - mmc_voltage = PWR_MMC_VOLTAGE_EQUAL_ABOVE_1V2; - } - - return mmc_voltage; -} -#endif /* defined (PWR_CSR1_MMCVDO) */ - -/** - * @brief Configure the event mode and the voltage threshold detected by the - * Analog Voltage Detector (AVD). - * @param sConfigAVD : Pointer to an PWREx_AVDTypeDef structure that contains - * the configuration information for the AVD. - * @note Refer to the electrical characteristics of your device datasheet for - * more details about the voltage threshold corresponding to each - * detection level. - * @note For dual core devices, please ensure to configure the EXTI lines for - * the different Cortex-Mx through PWR_Exported_Macro provided by this - * driver. All combination are allowed: wake up only Cortex-M7, wake up - * only Cortex-M4 and wake up Cortex-M7 and Cortex-M4. - * @retval None. - */ -void HAL_PWREx_ConfigAVD (PWREx_AVDTypeDef *sConfigAVD) -{ - /* Check the parameters */ - assert_param (IS_PWR_AVD_LEVEL (sConfigAVD->AVDLevel)); - assert_param (IS_PWR_AVD_MODE (sConfigAVD->Mode)); - - /* Set the ALS[18:17] bits according to AVDLevel value */ - MODIFY_REG (PWR->CR1, PWR_CR1_ALS, sConfigAVD->AVDLevel); - - /* Clear any previous config */ -#if !defined (DUAL_CORE) - __HAL_PWR_AVD_EXTI_DISABLE_EVENT (); - __HAL_PWR_AVD_EXTI_DISABLE_IT (); -#endif /* !defined (DUAL_CORE) */ - - __HAL_PWR_AVD_EXTI_DISABLE_RISING_EDGE (); - __HAL_PWR_AVD_EXTI_DISABLE_FALLING_EDGE (); - -#if !defined (DUAL_CORE) - /* Configure the interrupt mode */ - if ((sConfigAVD->Mode & AVD_MODE_IT) == AVD_MODE_IT) - { - __HAL_PWR_AVD_EXTI_ENABLE_IT (); - } - - /* Configure the event mode */ - if ((sConfigAVD->Mode & AVD_MODE_EVT) == AVD_MODE_EVT) - { - __HAL_PWR_AVD_EXTI_ENABLE_EVENT (); - } -#endif /* !defined (DUAL_CORE) */ - - /* Rising edge configuration */ - if ((sConfigAVD->Mode & AVD_RISING_EDGE) == AVD_RISING_EDGE) - { - __HAL_PWR_AVD_EXTI_ENABLE_RISING_EDGE (); - } - - /* Falling edge configuration */ - if ((sConfigAVD->Mode & AVD_FALLING_EDGE) == AVD_FALLING_EDGE) - { - __HAL_PWR_AVD_EXTI_ENABLE_FALLING_EDGE (); - } -} - -/** - * @brief Enable the Analog Voltage Detector (AVD). - * @retval None. - */ -void HAL_PWREx_EnableAVD (void) -{ - /* Enable the Analog Voltage Detector */ - SET_BIT (PWR->CR1, PWR_CR1_AVDEN); -} - -/** - * @brief Disable the Analog Voltage Detector(AVD). - * @retval None. - */ -void HAL_PWREx_DisableAVD (void) -{ - /* Disable the Analog Voltage Detector */ - CLEAR_BIT (PWR->CR1, PWR_CR1_AVDEN); -} - -/** - * @brief This function handles the PWR PVD/AVD interrupt request. - * @note This API should be called under the PVD_AVD_IRQHandler(). - * @retval None - */ -void HAL_PWREx_PVD_AVD_IRQHandler (void) -{ - /* Check if the Programmable Voltage Detector is enabled (PVD) */ - if (READ_BIT (PWR->CR1, PWR_CR1_PVDEN) != 0U) - { -#if defined (DUAL_CORE) - if (HAL_GetCurrentCPUID () == CM7_CPUID) -#endif /* defined (DUAL_CORE) */ - { - /* Check PWR D1/CD EXTI flag */ - if (__HAL_PWR_PVD_EXTI_GET_FLAG () != 0U) - { - /* PWR PVD interrupt user callback */ - HAL_PWR_PVDCallback (); - - /* Clear PWR EXTI D1/CD pending bit */ - __HAL_PWR_PVD_EXTI_CLEAR_FLAG (); - } - } -#if defined (DUAL_CORE) - else - { - /* Check PWR EXTI D2 flag */ - if (__HAL_PWR_PVD_EXTID2_GET_FLAG () != 0U) - { - /* PWR PVD interrupt user callback */ - HAL_PWR_PVDCallback (); - - /* Clear PWR EXTI D2 pending bit */ - __HAL_PWR_PVD_EXTID2_CLEAR_FLAG(); - } - } -#endif /* defined (DUAL_CORE) */ - } - - /* Check if the Analog Voltage Detector is enabled (AVD) */ - if (READ_BIT (PWR->CR1, PWR_CR1_AVDEN) != 0U) - { -#if defined (DUAL_CORE) - if (HAL_GetCurrentCPUID () == CM7_CPUID) -#endif /* defined (DUAL_CORE) */ - { - /* Check PWR EXTI D1/CD flag */ - if (__HAL_PWR_AVD_EXTI_GET_FLAG () != 0U) - { - /* PWR AVD interrupt user callback */ - HAL_PWREx_AVDCallback (); - - /* Clear PWR EXTI D1/CD pending bit */ - __HAL_PWR_AVD_EXTI_CLEAR_FLAG (); - } - } -#if defined (DUAL_CORE) - else - { - /* Check PWR EXTI D2 flag */ - if (__HAL_PWR_AVD_EXTID2_GET_FLAG () != 0U) - { - /* PWR AVD interrupt user callback */ - HAL_PWREx_AVDCallback (); - - /* Clear PWR EXTI D2 pending bit */ - __HAL_PWR_AVD_EXTID2_CLEAR_FLAG (); - } - } -#endif /* defined (DUAL_CORE) */ - } -} - -/** - * @brief PWR AVD interrupt callback. - * @retval None. - */ -__weak void HAL_PWREx_AVDCallback (void) -{ - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_PWR_AVDCallback can be implemented in the user file - */ -} -/** - * @} - */ - -/** - * @} - */ - -#endif /* HAL_PWR_MODULE_ENABLED */ - -/** - * @} - */ - -/** - * @} - */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c b/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c deleted file mode 100644 index 8c987ac..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c +++ /dev/null @@ -1,1814 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_rcc.c - * @author MCD Application Team - * @brief RCC HAL module driver. - * This file provides firmware functions to manage the following - * functionalities of the Reset and Clock Control (RCC) peripheral: - * + Initialization and de-initialization functions - * + Peripheral Control functions - * - @verbatim - ============================================================================== - ##### RCC specific features ##### - ============================================================================== - [..] - After reset the device is running from Internal High Speed oscillator - (HSI 64MHz) with Flash 0 wait state,and all peripherals are off except - internal SRAM, Flash, JTAG and PWR - (+) There is no pre-scaler on High speed (AHB) and Low speed (APB) buses; - all peripherals mapped on these buses are running at HSI speed. - (+) The clock for all peripherals is switched off, except the SRAM and FLASH. - (+) All GPIOs are in analogue mode , except the JTAG pins which - are assigned to be used for debug purpose. - - [..] - Once the device started from reset, the user application has to: - (+) Configure the clock source to be used to drive the System clock - (if the application needs higher frequency/performance) - (+) Configure the System clock frequency and Flash settings - (+) Configure the AHB and APB buses pre-scalers - (+) Enable the clock for the peripheral(s) to be used - (+) Configure the clock kernel source(s) for peripherals which clocks are not - derived from the System clock through :RCC_D1CCIPR,RCC_D2CCIP1R,RCC_D2CCIP2R - and RCC_D3CCIPR registers - - ##### RCC Limitations ##### - ============================================================================== - [..] - A delay between an RCC peripheral clock enable and the effective peripheral - enabling should be taken into account in order to manage the peripheral read/write - from/to registers. - (+) This delay depends on the peripheral mapping. - (+) If peripheral is mapped on AHB: the delay is 2 AHB clock cycle - after the clock enable bit is set on the hardware register - (+) If peripheral is mapped on APB: the delay is 2 APB clock cycle - after the clock enable bit is set on the hardware register - - [..] - Implemented Workaround: - (+) For AHB & APB peripherals, a dummy read to the peripheral register has been - inserted in each __HAL_RCC_PPP_CLK_ENABLE() macro. - - @endverbatim - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file in - * the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - ****************************************************************************** - */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @defgroup RCC RCC - * @brief RCC HAL module driver - * @{ - */ - -#ifdef HAL_RCC_MODULE_ENABLED - -/* Private typedef -----------------------------------------------------------*/ -/* Private define ------------------------------------------------------------*/ -/* Private macro -------------------------------------------------------------*/ -/** @defgroup RCC_Private_Macros RCC Private Macros - * @{ - */ -#define MCO1_CLK_ENABLE() __HAL_RCC_GPIOA_CLK_ENABLE() -#define MCO1_GPIO_PORT GPIOA -#define MCO1_PIN GPIO_PIN_8 - -#define MCO2_CLK_ENABLE() __HAL_RCC_GPIOC_CLK_ENABLE() -#define MCO2_GPIO_PORT GPIOC -#define MCO2_PIN GPIO_PIN_9 - -/** - * @} - */ -/* Private variables ---------------------------------------------------------*/ -/** @defgroup RCC_Private_Variables RCC Private Variables - * @{ - */ - -/** - * @} - */ -/* Private function prototypes -----------------------------------------------*/ -/* Exported functions --------------------------------------------------------*/ - -/** @defgroup RCC_Exported_Functions RCC Exported Functions - * @{ - */ - -/** @defgroup RCC_Exported_Functions_Group1 Initialization and de-initialization functions - * @brief Initialization and Configuration functions - * -@verbatim - =============================================================================== - ##### Initialization and de-initialization functions ##### - =============================================================================== - [..] - This section provides functions allowing to configure the internal/external oscillators - (HSE, HSI, LSE,CSI, LSI,HSI48, PLL, CSS and MCO) and the System buses clocks (SYSCLK, AHB3, AHB1 - AHB2,AHB4,APB3, APB1L, APB1H, APB2, and APB4). - - [..] Internal/external clock and PLL configuration - (#) HSI (high-speed internal), 64 MHz factory-trimmed RC used directly or through - the PLL as System clock source. - (#) CSI is a low-power RC oscillator which can be used directly as system clock, peripheral - clock, or PLL input.But even with frequency calibration, is less accurate than an - external crystal oscillator or ceramic resonator. - (#) LSI (low-speed internal), 32 KHz low consumption RC used as IWDG and/or RTC - clock source. - - (#) HSE (high-speed external), 4 to 48 MHz crystal oscillator used directly or - through the PLL as System clock source. Can be used also as RTC clock source. - - (#) LSE (low-speed external), 32 KHz oscillator used as RTC clock source. - - (#) PLL , The RCC features three independent PLLs (clocked by HSI , HSE or CSI), - featuring three different output clocks and able to work either in integer or Fractional mode. - (++) A main PLL, PLL1, which is generally used to provide clocks to the CPU - and to some peripherals. - (++) Two dedicated PLLs, PLL2 and PLL3, which are used to generate the kernel clock for peripherals. - - - (#) CSS (Clock security system), once enabled and if a HSE clock failure occurs - (HSE used directly or through PLL as System clock source), the System clock - is automatically switched to HSI and an interrupt is generated if enabled. - The interrupt is linked to the Cortex-M NMI (Non-Mask-able Interrupt) - exception vector. - - (#) MCO1 (micro controller clock output), used to output HSI, LSE, HSE, PLL1(PLL1_Q) - or HSI48 clock (through a configurable pre-scaler) on PA8 pin. - - (#) MCO2 (micro controller clock output), used to output HSE, PLL2(PLL2_P), SYSCLK, - LSI, CSI, or PLL1(PLL1_P) clock (through a configurable pre-scaler) on PC9 pin. - - [..] System, AHB and APB buses clocks configuration - (#) Several clock sources can be used to drive the System clock (SYSCLK): CSI,HSI, - HSE and PLL. - The AHB clock (HCLK) is derived from System core clock through configurable - pre-scaler and used to clock the CPU, memory and peripherals mapped - on AHB and APB bus of the 3 Domains (D1, D2, D3)* through configurable pre-scalers - and used to clock the peripherals mapped on these buses. You can use - "HAL_RCC_GetSysClockFreq()" function to retrieve system clock frequency. - - -@- All the peripheral clocks are derived from the System clock (SYSCLK) except those - with dual clock domain where kernel source clock could be selected through - RCC_D1CCIPR,RCC_D2CCIP1R,RCC_D2CCIP2R and RCC_D3CCIPR registers. - - (*) : 2 Domains (CD and SRD) for stm32h7a3xx and stm32h7b3xx family lines. -@endverbatim - * @{ - */ - -/** - * @brief Resets the RCC clock configuration to the default reset state. - * @note The default reset state of the clock configuration is given below: - * - HSI ON and used as system clock source - * - HSE, PLL1, PLL2 and PLL3 OFF - * - AHB, APB Bus pre-scaler set to 1. - * - CSS, MCO1 and MCO2 OFF - * - All interrupts disabled - * @note This function doesn't modify the configuration of the - * - Peripheral clocks - * - LSI, LSE and RTC clocks - * @retval HAL status - */ -HAL_StatusTypeDef HAL_RCC_DeInit(void) -{ - uint32_t tickstart; - - /* Increasing the CPU frequency */ - if (FLASH_LATENCY_DEFAULT > __HAL_FLASH_GET_LATENCY()) - { - /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ - __HAL_FLASH_SET_LATENCY(FLASH_LATENCY_DEFAULT); - - /* 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() != FLASH_LATENCY_DEFAULT) - { - return HAL_ERROR; - } - - } - - - /* Get Start Tick */ - tickstart = HAL_GetTick(); - - /* Set HSION bit */ - SET_BIT(RCC->CR, RCC_CR_HSION); - - /* Wait till HSI is ready */ - while (READ_BIT(RCC->CR, RCC_CR_HSIRDY) == 0U) - { - if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - - /* Set HSITRIM[6:0] bits to the reset value */ - SET_BIT(RCC->HSICFGR, RCC_HSICFGR_HSITRIM_6); - - /* Reset CFGR register */ - CLEAR_REG(RCC->CFGR); - - /* Update the SystemCoreClock and SystemD2Clock global variables */ - SystemCoreClock = HSI_VALUE; - SystemD2Clock = HSI_VALUE; - - /* Adapt Systick interrupt period */ - if (HAL_InitTick(uwTickPrio) != HAL_OK) - { - return HAL_ERROR; - } - - /* Get Start Tick */ - tickstart = HAL_GetTick(); - - /* Wait till clock switch is ready */ - while (READ_BIT(RCC->CFGR, RCC_CFGR_SWS) != 0U) - { - if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - - /* Get Start Tick */ - tickstart = HAL_GetTick(); - - /* Reset CSION, CSIKERON, HSEON, HSI48ON, HSECSSON, HSIDIV bits */ - CLEAR_BIT(RCC->CR, RCC_CR_HSEON | RCC_CR_HSIKERON | RCC_CR_HSIDIV | RCC_CR_HSIDIVF | RCC_CR_CSION | RCC_CR_CSIKERON \ - | RCC_CR_HSI48ON | RCC_CR_CSSHSEON); - - /* Wait till HSE is disabled */ - while (READ_BIT(RCC->CR, RCC_CR_HSERDY) != 0U) - { - if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - - /* Get Start Tick */ - tickstart = HAL_GetTick(); - - /* Clear PLLON bit */ - CLEAR_BIT(RCC->CR, RCC_CR_PLL1ON); - - /* Wait till PLL is disabled */ - while (READ_BIT(RCC->CR, RCC_CR_PLL1RDY) != 0U) - { - if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - - /* Get Start Tick */ - tickstart = HAL_GetTick(); - - /* Reset PLL2ON bit */ - CLEAR_BIT(RCC->CR, RCC_CR_PLL2ON); - - /* Wait till PLL2 is disabled */ - while (READ_BIT(RCC->CR, RCC_CR_PLL2RDY) != 0U) - { - if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - - /* Get Start Tick */ - tickstart = HAL_GetTick(); - - /* Reset PLL3 bit */ - CLEAR_BIT(RCC->CR, RCC_CR_PLL3ON); - - /* Wait till PLL3 is disabled */ - while (READ_BIT(RCC->CR, RCC_CR_PLL3RDY) != 0U) - { - if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - -#if defined(RCC_D1CFGR_HPRE) - /* Reset D1CFGR register */ - CLEAR_REG(RCC->D1CFGR); - - /* Reset D2CFGR register */ - CLEAR_REG(RCC->D2CFGR); - - /* Reset D3CFGR register */ - CLEAR_REG(RCC->D3CFGR); -#else - /* Reset CDCFGR1 register */ - CLEAR_REG(RCC->CDCFGR1); - - /* Reset CDCFGR2 register */ - CLEAR_REG(RCC->CDCFGR2); - - /* Reset SRDCFGR register */ - CLEAR_REG(RCC->SRDCFGR); -#endif - - /* Reset PLLCKSELR register to default value */ - RCC->PLLCKSELR = RCC_PLLCKSELR_DIVM1_5 | RCC_PLLCKSELR_DIVM2_5 | RCC_PLLCKSELR_DIVM3_5; - - /* Reset PLLCFGR register to default value */ - WRITE_REG(RCC->PLLCFGR, 0x01FF0000U); - - /* Reset PLL1DIVR register to default value */ - WRITE_REG(RCC->PLL1DIVR, 0x01010280U); - - /* Reset PLL1FRACR register */ - CLEAR_REG(RCC->PLL1FRACR); - - /* Reset PLL2DIVR register to default value */ - WRITE_REG(RCC->PLL2DIVR, 0x01010280U); - - /* Reset PLL2FRACR register */ - CLEAR_REG(RCC->PLL2FRACR); - - /* Reset PLL3DIVR register to default value */ - WRITE_REG(RCC->PLL3DIVR, 0x01010280U); - - /* Reset PLL3FRACR register */ - CLEAR_REG(RCC->PLL3FRACR); - -#if defined(RCC_CR_HSEEXT) - /* Reset HSEEXT */ - CLEAR_BIT(RCC->CR, RCC_CR_HSEEXT); -#endif /* RCC_CR_HSEEXT */ - - /* Reset HSEBYP bit */ - CLEAR_BIT(RCC->CR, RCC_CR_HSEBYP); - - /* Disable all interrupts */ - CLEAR_REG(RCC->CIER); - - /* Clear all interrupts flags */ - WRITE_REG(RCC->CICR, 0xFFFFFFFFU); - - /* Reset all RSR flags */ - SET_BIT(RCC->RSR, RCC_RSR_RMVF); - - /* Decreasing the number of wait states because of lower CPU frequency */ - if (FLASH_LATENCY_DEFAULT < __HAL_FLASH_GET_LATENCY()) - { - /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ - __HAL_FLASH_SET_LATENCY(FLASH_LATENCY_DEFAULT); - - /* 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() != FLASH_LATENCY_DEFAULT) - { - return HAL_ERROR; - } - - } - - return HAL_OK; -} - -/** - * @brief Initializes the RCC Oscillators according to the specified parameters in the - * RCC_OscInitTypeDef. - * @param RCC_OscInitStruct: pointer to an RCC_OscInitTypeDef structure that - * contains the configuration information for the RCC Oscillators. - * @note The PLL is not disabled when used as system clock. - * @note Transitions LSE Bypass to LSE On and LSE On to LSE Bypass are not - * supported by this function. User should request a transition to LSE Off - * first and then LSE On or LSE Bypass. - * @note Transition HSE Bypass to HSE On and HSE On to HSE Bypass are not - * supported by this function. User should request a transition to HSE Off - * first and then HSE On or HSE Bypass. - * @retval HAL status - */ -__weak HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) -{ - uint32_t tickstart; - uint32_t temp1_pllckcfg, temp2_pllckcfg; - - /* Check Null pointer */ - if (RCC_OscInitStruct == NULL) - { - return HAL_ERROR; - } - - /* Check the parameters */ - assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); - /*------------------------------- HSE Configuration ------------------------*/ - if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) - { - /* Check the parameters */ - assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); - - const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE(); - const uint32_t temp_pllckselr = RCC->PLLCKSELR; - /* When the HSE is used as system clock or clock source for PLL in these cases HSE will not disabled */ - if ((temp_sysclksrc == RCC_CFGR_SWS_HSE) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_HSE))) - { - if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - { - return HAL_ERROR; - } - } - else - { - /* Set the new HSE configuration ---------------------------------------*/ - __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); - - /* Check the HSE State */ - if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF) - { - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - - /* Wait till HSE is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U) - { - if ((uint32_t)(HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - } - else - { - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - - /* Wait till HSE is disabled */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) - { - if ((uint32_t)(HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - } - } - } - /*----------------------------- HSI Configuration --------------------------*/ - if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) - { - /* Check the parameters */ - assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState)); - assert_param(IS_RCC_HSICALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue)); - - /* When the HSI is used as system clock it will not be disabled */ - const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE(); - const uint32_t temp_pllckselr = RCC->PLLCKSELR; - if ((temp_sysclksrc == RCC_CFGR_SWS_HSI) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_HSI))) - { - /* When HSI is used as system clock it will not be disabled */ - if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF)) - { - return HAL_ERROR; - } - /* Otherwise, only HSI division and calibration are allowed */ - else - { - /* Enable the Internal High Speed oscillator (HSI, HSIDIV2, HSIDIV4, or HSIDIV8) */ - __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIState); - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - - /* Wait till HSI is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U) - { - if ((uint32_t)(HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ - __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - } - } - - else - { - /* Check the HSI State */ - if ((RCC_OscInitStruct->HSIState) != RCC_HSI_OFF) - { - /* Enable the Internal High Speed oscillator (HSI, HSIDIV2,HSIDIV4, or HSIDIV8) */ - __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIState); - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - - /* Wait till HSI is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U) - { - if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - - /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ - __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - } - else - { - /* Disable the Internal High Speed oscillator (HSI). */ - __HAL_RCC_HSI_DISABLE(); - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - - /* Wait till HSI is disabled */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) - { - if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - } - } - } - /*----------------------------- CSI Configuration --------------------------*/ - if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_CSI) == RCC_OSCILLATORTYPE_CSI) - { - /* Check the parameters */ - assert_param(IS_RCC_CSI(RCC_OscInitStruct->CSIState)); - assert_param(IS_RCC_CSICALIBRATION_VALUE(RCC_OscInitStruct->CSICalibrationValue)); - - /* When the CSI is used as system clock it will not disabled */ - const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE(); - const uint32_t temp_pllckselr = RCC->PLLCKSELR; - if ((temp_sysclksrc == RCC_CFGR_SWS_CSI) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_CSI))) - { - /* When CSI is used as system clock it will not disabled */ - if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON)) - { - return HAL_ERROR; - } - /* Otherwise, just the calibration is allowed */ - else - { - /* Adjusts the Internal High Speed oscillator (CSI) calibration value.*/ - __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue); - } - } - else - { - /* Check the CSI State */ - if ((RCC_OscInitStruct->CSIState) != RCC_CSI_OFF) - { - /* Enable the Internal High Speed oscillator (CSI). */ - __HAL_RCC_CSI_ENABLE(); - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - - /* Wait till CSI is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U) - { - if ((HAL_GetTick() - tickstart) > CSI_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - - /* Adjusts the Internal High Speed oscillator (CSI) calibration value.*/ - __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue); - } - else - { - /* Disable the Internal High Speed oscillator (CSI). */ - __HAL_RCC_CSI_DISABLE(); - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - - /* Wait till CSI is disabled */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) - { - if ((HAL_GetTick() - tickstart) > CSI_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - } - } - } - /*------------------------------ LSI Configuration -------------------------*/ - if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI) - { - /* Check the parameters */ - assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState)); - - /* Check the LSI State */ - if ((RCC_OscInitStruct->LSIState) != RCC_LSI_OFF) - { - /* Enable the Internal Low Speed oscillator (LSI). */ - __HAL_RCC_LSI_ENABLE(); - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - - /* Wait till LSI is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U) - { - if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - } - else - { - /* Disable the Internal Low Speed oscillator (LSI). */ - __HAL_RCC_LSI_DISABLE(); - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - - /* Wait till LSI is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U) - { - if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - } - } - - /*------------------------------ HSI48 Configuration -------------------------*/ - if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI48) == RCC_OSCILLATORTYPE_HSI48) - { - /* Check the parameters */ - assert_param(IS_RCC_HSI48(RCC_OscInitStruct->HSI48State)); - - /* Check the HSI48 State */ - if ((RCC_OscInitStruct->HSI48State) != RCC_HSI48_OFF) - { - /* Enable the Internal Low Speed oscillator (HSI48). */ - __HAL_RCC_HSI48_ENABLE(); - - /* Get time-out */ - tickstart = HAL_GetTick(); - - /* Wait till HSI48 is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == 0U) - { - if ((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - } - else - { - /* Disable the Internal Low Speed oscillator (HSI48). */ - __HAL_RCC_HSI48_DISABLE(); - - /* Get time-out */ - tickstart = HAL_GetTick(); - - /* Wait till HSI48 is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != 0U) - { - if ((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - } - } - /*------------------------------ LSE Configuration -------------------------*/ - if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE) - { - /* Check the parameters */ - assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState)); - - /* Enable write access to Backup domain */ - PWR->CR1 |= PWR_CR1_DBP; - - /* Wait for Backup domain Write protection disable */ - tickstart = HAL_GetTick(); - - while ((PWR->CR1 & PWR_CR1_DBP) == 0U) - { - if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - - /* Set the new LSE configuration -----------------------------------------*/ - __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState); - /* Check the LSE State */ - if ((RCC_OscInitStruct->LSEState) != RCC_LSE_OFF) - { - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - - /* Wait till LSE is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U) - { - if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - } - else - { - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - - /* Wait till LSE is disabled */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U) - { - if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - } - } - /*-------------------------------- PLL Configuration -----------------------*/ - /* Check the parameters */ - assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState)); - if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE) - { - /* Check if the PLL is used as system clock or not */ - if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_CFGR_SWS_PLL1) - { - if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON) - { - /* Check the parameters */ - assert_param(IS_RCC_PLLSOURCE(RCC_OscInitStruct->PLL.PLLSource)); - assert_param(IS_RCC_PLLRGE_VALUE(RCC_OscInitStruct->PLL.PLLRGE)); - assert_param(IS_RCC_PLLVCO_VALUE(RCC_OscInitStruct->PLL.PLLVCOSEL)); - assert_param(IS_RCC_PLLM_VALUE(RCC_OscInitStruct->PLL.PLLM)); - assert_param(IS_RCC_PLLN_VALUE(RCC_OscInitStruct->PLL.PLLN)); - assert_param(IS_RCC_PLLP_VALUE(RCC_OscInitStruct->PLL.PLLP)); - assert_param(IS_RCC_PLLQ_VALUE(RCC_OscInitStruct->PLL.PLLQ)); - assert_param(IS_RCC_PLLR_VALUE(RCC_OscInitStruct->PLL.PLLR)); - assert_param(IS_RCC_PLLFRACN_VALUE(RCC_OscInitStruct->PLL.PLLFRACN)); - - /* Disable the main PLL. */ - __HAL_RCC_PLL_DISABLE(); - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - - /* Wait till PLL is disabled */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U) - { - if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - - /* Configure the main PLL clock source, multiplication and division factors. */ - __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource, - RCC_OscInitStruct->PLL.PLLM, - RCC_OscInitStruct->PLL.PLLN, - RCC_OscInitStruct->PLL.PLLP, - RCC_OscInitStruct->PLL.PLLQ, - RCC_OscInitStruct->PLL.PLLR); - - /* Disable PLLFRACN . */ - __HAL_RCC_PLLFRACN_DISABLE(); - - /* Configure PLL PLL1FRACN */ - __HAL_RCC_PLLFRACN_CONFIG(RCC_OscInitStruct->PLL.PLLFRACN); - - /* Select PLL1 input reference frequency range: VCI */ - __HAL_RCC_PLL_VCIRANGE(RCC_OscInitStruct->PLL.PLLRGE) ; - - /* Select PLL1 output frequency range : VCO */ - __HAL_RCC_PLL_VCORANGE(RCC_OscInitStruct->PLL.PLLVCOSEL) ; - - /* Enable PLL System Clock output. */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVP); - - /* Enable PLL1Q Clock output. */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ); - - /* Enable PLL1R Clock output. */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVR); - - /* Enable PLL1FRACN . */ - __HAL_RCC_PLLFRACN_ENABLE(); - - /* Enable the main PLL. */ - __HAL_RCC_PLL_ENABLE(); - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - - /* Wait till PLL is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U) - { - if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - } - else - { - /* Disable the main PLL. */ - __HAL_RCC_PLL_DISABLE(); - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - - /* Wait till PLL is disabled */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U) - { - if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - } - } - else - { - /* Do not return HAL_ERROR if request repeats the current configuration */ - temp1_pllckcfg = RCC->PLLCKSELR; - temp2_pllckcfg = RCC->PLL1DIVR; - if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) || - (READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - ((READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos) != RCC_OscInitStruct->PLL.PLLM) || - (READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_N1) != (RCC_OscInitStruct->PLL.PLLN - 1U)) || - ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) != (RCC_OscInitStruct->PLL.PLLP - 1U)) || - ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) != (RCC_OscInitStruct->PLL.PLLQ - 1U)) || - ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_R1) >> RCC_PLL1DIVR_R1_Pos) != (RCC_OscInitStruct->PLL.PLLR - 1U))) - { - return HAL_ERROR; - } - else - { - /* Check if only fractional part needs to be updated */ - temp1_pllckcfg = ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> RCC_PLL1FRACR_FRACN1_Pos); - if (RCC_OscInitStruct->PLL.PLLFRACN != temp1_pllckcfg) - { - assert_param(IS_RCC_PLLFRACN_VALUE(RCC_OscInitStruct->PLL.PLLFRACN)); - /* Disable PLL1FRACEN */ - __HAL_RCC_PLLFRACN_DISABLE(); - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - /* Wait at least 2 CK_REF (PLL input source divided by M) period to make sure next latched value will be taken into account. */ - while ((HAL_GetTick() - tickstart) < PLL_FRAC_TIMEOUT_VALUE) - { - } - /* Configure PLL1 PLL1FRACN */ - __HAL_RCC_PLLFRACN_CONFIG(RCC_OscInitStruct->PLL.PLLFRACN); - /* Enable PLL1FRACEN to latch new value. */ - __HAL_RCC_PLLFRACN_ENABLE(); - } - } - } - } - return HAL_OK; -} - -/** - * @brief Initializes the CPU, AHB and APB buses clocks according to the specified - * parameters in the RCC_ClkInitStruct. - * @param RCC_ClkInitStruct: pointer to an RCC_OscInitTypeDef structure that - * contains the configuration information for the RCC peripheral. - * @param FLatency: FLASH Latency, this parameter depend on device selected - * - * @note The SystemCoreClock CMSIS variable is used to store System Core Clock Frequency - * and updated by HAL_InitTick() function called within this function - * - * @note The HSI is used (enabled by hardware) as system clock source after - * start-up from Reset, wake-up from STOP and STANDBY mode, or in case - * of failure of the HSE used directly or indirectly as system clock - * (if the Clock Security System CSS is enabled). - * - * @note A switch from one clock source to another occurs only if the target - * clock source is ready (clock stable after start-up delay or PLL locked). - * If a clock source which is not yet ready is selected, the switch will - * occur when the clock source will be ready. - * You can use HAL_RCC_GetClockConfig() function to know which clock is - * currently used as system clock source. - * @note Depending on the device voltage range, the software has to set correctly - * D1CPRE[3:0] bits to ensure that Domain1 core clock 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) -{ - HAL_StatusTypeDef halstatus; - uint32_t tickstart; - uint32_t common_system_clock; - - /* Check Null pointer */ - if (RCC_ClkInitStruct == NULL) - { - return HAL_ERROR; - } - - /* Check the parameters */ - assert_param(IS_RCC_CLOCKTYPE(RCC_ClkInitStruct->ClockType)); - assert_param(IS_FLASH_LATENCY(FLatency)); - - /* 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()) - { - /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ - __HAL_FLASH_SET_LATENCY(FLatency); - - /* 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) - { - return HAL_ERROR; - } - - } - - /* Increasing the BUS frequency divider */ - /*-------------------------- D1PCLK1/CDPCLK1 Configuration ---------------------------*/ - if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1) - { -#if defined (RCC_D1CFGR_D1PPRE) - if ((RCC_ClkInitStruct->APB3CLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_D1PPRE)) - { - assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider)); - MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider); - } -#else - if ((RCC_ClkInitStruct->APB3CLKDivider) > (RCC->CDCFGR1 & RCC_CDCFGR1_CDPPRE)) - { - assert_param(IS_RCC_CDPCLK1(RCC_ClkInitStruct->APB3CLKDivider)); - MODIFY_REG(RCC->CDCFGR1, RCC_CDCFGR1_CDPPRE, RCC_ClkInitStruct->APB3CLKDivider); - } -#endif - } - - /*-------------------------- PCLK1 Configuration ---------------------------*/ - if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) - { -#if defined (RCC_D2CFGR_D2PPRE1) - if ((RCC_ClkInitStruct->APB1CLKDivider) > (RCC->D2CFGR & RCC_D2CFGR_D2PPRE1)) - { - assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider)); - MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, (RCC_ClkInitStruct->APB1CLKDivider)); - } -#else - if ((RCC_ClkInitStruct->APB1CLKDivider) > (RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE1)) - { - assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider)); - MODIFY_REG(RCC->CDCFGR2, RCC_CDCFGR2_CDPPRE1, (RCC_ClkInitStruct->APB1CLKDivider)); - } -#endif - } - /*-------------------------- PCLK2 Configuration ---------------------------*/ - if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) - { -#if defined(RCC_D2CFGR_D2PPRE2) - if ((RCC_ClkInitStruct->APB2CLKDivider) > (RCC->D2CFGR & RCC_D2CFGR_D2PPRE2)) - { - assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider)); - MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, (RCC_ClkInitStruct->APB2CLKDivider)); - } -#else - if ((RCC_ClkInitStruct->APB2CLKDivider) > (RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE2)) - { - assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider)); - MODIFY_REG(RCC->CDCFGR2, RCC_CDCFGR2_CDPPRE2, (RCC_ClkInitStruct->APB2CLKDivider)); - } -#endif - } - - /*-------------------------- D3PCLK1 Configuration ---------------------------*/ - if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D3PCLK1) == RCC_CLOCKTYPE_D3PCLK1) - { -#if defined(RCC_D3CFGR_D3PPRE) - if ((RCC_ClkInitStruct->APB4CLKDivider) > (RCC->D3CFGR & RCC_D3CFGR_D3PPRE)) - { - assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider)); - MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, (RCC_ClkInitStruct->APB4CLKDivider)); - } -#else - if ((RCC_ClkInitStruct->APB4CLKDivider) > (RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE)) - { - assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider)); - MODIFY_REG(RCC->SRDCFGR, RCC_SRDCFGR_SRDPPRE, (RCC_ClkInitStruct->APB4CLKDivider)); - } -#endif - } - - /*-------------------------- HCLK Configuration --------------------------*/ - if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) - { -#if defined (RCC_D1CFGR_HPRE) - if ((RCC_ClkInitStruct->AHBCLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_HPRE)) - { - /* Set the new HCLK clock divider */ - assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); - MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); - } -#else - if ((RCC_ClkInitStruct->AHBCLKDivider) > (RCC->CDCFGR1 & RCC_CDCFGR1_HPRE)) - { - /* Set the new HCLK clock divider */ - assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); - MODIFY_REG(RCC->CDCFGR1, RCC_CDCFGR1_HPRE, RCC_ClkInitStruct->AHBCLKDivider); - } -#endif - } - - /*------------------------- SYSCLK Configuration -------------------------*/ - if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) - { - assert_param(IS_RCC_SYSCLK(RCC_ClkInitStruct->SYSCLKDivider)); - assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); -#if defined(RCC_D1CFGR_D1CPRE) - MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1CPRE, RCC_ClkInitStruct->SYSCLKDivider); -#else - MODIFY_REG(RCC->CDCFGR1, RCC_CDCFGR1_CDCPRE, RCC_ClkInitStruct->SYSCLKDivider); -#endif - /* HSE is selected as System Clock Source */ - if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) - { - /* Check the HSE ready flag */ - if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U) - { - return HAL_ERROR; - } - } - /* PLL is selected as System Clock Source */ - else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) - { - /* Check the PLL ready flag */ - if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U) - { - return HAL_ERROR; - } - } - /* CSI is selected as System Clock Source */ - else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_CSI) - { - /* Check the PLL ready flag */ - if (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U) - { - return HAL_ERROR; - } - } - /* HSI is selected as System Clock Source */ - else - { - /* Check the HSI ready flag */ - if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U) - { - return HAL_ERROR; - } - } - MODIFY_REG(RCC->CFGR, RCC_CFGR_SW, RCC_ClkInitStruct->SYSCLKSource); - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - - while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - { - if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - - } - - /* Decreasing the BUS frequency divider */ - /*-------------------------- HCLK Configuration --------------------------*/ - if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) - { -#if defined(RCC_D1CFGR_HPRE) - if ((RCC_ClkInitStruct->AHBCLKDivider) < (RCC->D1CFGR & RCC_D1CFGR_HPRE)) - { - /* Set the new HCLK clock divider */ - assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); - MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); - } -#else - if ((RCC_ClkInitStruct->AHBCLKDivider) < (RCC->CDCFGR1 & RCC_CDCFGR1_HPRE)) - { - /* Set the new HCLK clock divider */ - assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); - MODIFY_REG(RCC->CDCFGR1, RCC_CDCFGR1_HPRE, RCC_ClkInitStruct->AHBCLKDivider); - } -#endif - } - - /* Decreasing the number of wait states because of lower CPU frequency */ - if (FLatency < __HAL_FLASH_GET_LATENCY()) - { - /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ - __HAL_FLASH_SET_LATENCY(FLatency); - - /* 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) - { - return HAL_ERROR; - } - } - - /*-------------------------- D1PCLK1/CDPCLK Configuration ---------------------------*/ - if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1) - { -#if defined(RCC_D1CFGR_D1PPRE) - if ((RCC_ClkInitStruct->APB3CLKDivider) < (RCC->D1CFGR & RCC_D1CFGR_D1PPRE)) - { - assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider)); - MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider); - } -#else - if ((RCC_ClkInitStruct->APB3CLKDivider) < (RCC->CDCFGR1 & RCC_CDCFGR1_CDPPRE)) - { - assert_param(IS_RCC_CDPCLK1(RCC_ClkInitStruct->APB3CLKDivider)); - MODIFY_REG(RCC->CDCFGR1, RCC_CDCFGR1_CDPPRE, RCC_ClkInitStruct->APB3CLKDivider); - } -#endif - } - - /*-------------------------- PCLK1 Configuration ---------------------------*/ - if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) - { -#if defined(RCC_D2CFGR_D2PPRE1) - if ((RCC_ClkInitStruct->APB1CLKDivider) < (RCC->D2CFGR & RCC_D2CFGR_D2PPRE1)) - { - assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider)); - MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, (RCC_ClkInitStruct->APB1CLKDivider)); - } -#else - if ((RCC_ClkInitStruct->APB1CLKDivider) < (RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE1)) - { - assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider)); - MODIFY_REG(RCC->CDCFGR2, RCC_CDCFGR2_CDPPRE1, (RCC_ClkInitStruct->APB1CLKDivider)); - } -#endif - } - - /*-------------------------- PCLK2 Configuration ---------------------------*/ - if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) - { -#if defined (RCC_D2CFGR_D2PPRE2) - if ((RCC_ClkInitStruct->APB2CLKDivider) < (RCC->D2CFGR & RCC_D2CFGR_D2PPRE2)) - { - assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider)); - MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, (RCC_ClkInitStruct->APB2CLKDivider)); - } -#else - if ((RCC_ClkInitStruct->APB2CLKDivider) < (RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE2)) - { - assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider)); - MODIFY_REG(RCC->CDCFGR2, RCC_CDCFGR2_CDPPRE2, (RCC_ClkInitStruct->APB2CLKDivider)); - } -#endif - } - - /*-------------------------- D3PCLK1/SRDPCLK1 Configuration ---------------------------*/ - if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D3PCLK1) == RCC_CLOCKTYPE_D3PCLK1) - { -#if defined(RCC_D3CFGR_D3PPRE) - if ((RCC_ClkInitStruct->APB4CLKDivider) < (RCC->D3CFGR & RCC_D3CFGR_D3PPRE)) - { - assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider)); - MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, (RCC_ClkInitStruct->APB4CLKDivider)); - } -#else - if ((RCC_ClkInitStruct->APB4CLKDivider) < (RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE)) - { - assert_param(IS_RCC_SRDPCLK1(RCC_ClkInitStruct->APB4CLKDivider)); - MODIFY_REG(RCC->SRDCFGR, RCC_SRDCFGR_SRDPPRE, (RCC_ClkInitStruct->APB4CLKDivider)); - } -#endif - } - - /* Update the SystemCoreClock global variable */ -#if defined(RCC_D1CFGR_D1CPRE) - common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU); -#else - common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU); -#endif - -#if defined(RCC_D1CFGR_HPRE) - SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU)); -#else - SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_HPRE) >> RCC_CDCFGR1_HPRE_Pos]) & 0x1FU)); -#endif - -#if defined(DUAL_CORE) && defined(CORE_CM4) - SystemCoreClock = SystemD2Clock; -#else - SystemCoreClock = common_system_clock; -#endif /* DUAL_CORE && CORE_CM4 */ - - /* Configure the source of time base considering new system clocks settings*/ - halstatus = HAL_InitTick(uwTickPrio); - - return halstatus; -} - -/** - * @} - */ - -/** @defgroup RCC_Exported_Functions_Group2 Peripheral Control functions - * @brief RCC clocks control functions - * -@verbatim - =============================================================================== - ##### Peripheral Control functions ##### - =============================================================================== - [..] - This subsection provides a set of functions allowing to control the RCC Clocks - frequencies. - -@endverbatim - * @{ - */ - -/** - * @brief Selects the clock source to output on MCO1 pin(PA8) or on MCO2 pin(PC9). - * @note PA8/PC9 should be configured in alternate function mode. - * @param RCC_MCOx: specifies the output direction for the clock source. - * This parameter can be one of the following values: - * @arg RCC_MCO1: Clock source to output on MCO1 pin(PA8). - * @arg RCC_MCO2: Clock source to output on MCO2 pin(PC9). - * @param RCC_MCOSource: specifies the clock source to output. - * This parameter can be one of the following values: - * @arg RCC_MCO1SOURCE_HSI: HSI clock selected as MCO1 source - * @arg RCC_MCO1SOURCE_LSE: LSE clock selected as MCO1 source - * @arg RCC_MCO1SOURCE_HSE: HSE clock selected as MCO1 source - * @arg RCC_MCO1SOURCE_PLL1QCLK: PLL1Q clock selected as MCO1 source - * @arg RCC_MCO1SOURCE_HSI48: HSI48 (48MHZ) selected as MCO1 source - * @arg RCC_MCO2SOURCE_SYSCLK: System clock (SYSCLK) selected as MCO2 source - * @arg RCC_MCO2SOURCE_PLL2PCLK: PLL2P clock selected as MCO2 source - * @arg RCC_MCO2SOURCE_HSE: HSE clock selected as MCO2 source - * @arg RCC_MCO2SOURCE_PLLCLK: PLL1P clock selected as MCO2 source - * @arg RCC_MCO2SOURCE_CSICLK: CSI clock selected as MCO2 source - * @arg RCC_MCO2SOURCE_LSICLK: LSI clock selected as MCO2 source - * @param RCC_MCODiv: specifies the MCOx pre-scaler. - * This parameter can be one of the following values: - * @arg RCC_MCODIV_1 up to RCC_MCODIV_15 : divider applied to MCOx clock - * @retval None - */ -void HAL_RCC_MCOConfig(uint32_t RCC_MCOx, uint32_t RCC_MCOSource, uint32_t RCC_MCODiv) -{ - GPIO_InitTypeDef GPIO_InitStruct; - /* Check the parameters */ - assert_param(IS_RCC_MCO(RCC_MCOx)); - assert_param(IS_RCC_MCODIV(RCC_MCODiv)); - /* RCC_MCO1 */ - if (RCC_MCOx == RCC_MCO1) - { - assert_param(IS_RCC_MCO1SOURCE(RCC_MCOSource)); - - /* MCO1 Clock Enable */ - MCO1_CLK_ENABLE(); - - /* Configure the MCO1 pin in alternate function mode */ - GPIO_InitStruct.Pin = MCO1_PIN; - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - GPIO_InitStruct.Pull = GPIO_NOPULL; - GPIO_InitStruct.Alternate = GPIO_AF0_MCO; - HAL_GPIO_Init(MCO1_GPIO_PORT, &GPIO_InitStruct); - - /* Mask MCO1 and MCO1PRE[3:0] bits then Select MCO1 clock source and pre-scaler */ - MODIFY_REG(RCC->CFGR, (RCC_CFGR_MCO1 | RCC_CFGR_MCO1PRE), (RCC_MCOSource | RCC_MCODiv)); - } - else - { - assert_param(IS_RCC_MCO2SOURCE(RCC_MCOSource)); - - /* MCO2 Clock Enable */ - MCO2_CLK_ENABLE(); - - /* Configure the MCO2 pin in alternate function mode */ - GPIO_InitStruct.Pin = MCO2_PIN; - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - GPIO_InitStruct.Pull = GPIO_NOPULL; - GPIO_InitStruct.Alternate = GPIO_AF0_MCO; - HAL_GPIO_Init(MCO2_GPIO_PORT, &GPIO_InitStruct); - - /* Mask MCO2 and MCO2PRE[3:0] bits then Select MCO2 clock source and pre-scaler */ - MODIFY_REG(RCC->CFGR, (RCC_CFGR_MCO2 | RCC_CFGR_MCO2PRE), (RCC_MCOSource | (RCC_MCODiv << 7U))); - } -} - -/** - * @brief Enables the Clock Security System. - * @note If a failure is detected on the HSE oscillator clock, this oscillator - * is automatically disabled and an interrupt is generated to inform the - * software about the failure (Clock Security System Interrupt, CSSI), - * allowing the MCU to perform rescue operations. The CSSI is linked to - * the Cortex-M NMI (Non-Mask-able Interrupt) exception vector. - * @retval None - */ -void HAL_RCC_EnableCSS(void) -{ - SET_BIT(RCC->CR, RCC_CR_CSSHSEON) ; -} - -/** - * @brief Disables the Clock Security System. - * @retval None - */ -void HAL_RCC_DisableCSS(void) -{ - CLEAR_BIT(RCC->CR, RCC_CR_CSSHSEON); -} - -/** - * @brief Returns the SYSCLK frequency - * - * @note The system frequency computed by this function is not the real - * frequency in the chip. It is calculated based on the predefined - * constant and the selected clock source: - * @note If SYSCLK source is CSI, function returns values based on CSI_VALUE(*) - * @note If SYSCLK source is HSI, function returns values based on HSI_VALUE(**) - * @note If SYSCLK source is HSE, function returns values based on HSE_VALUE(***) - * @note If SYSCLK source is PLL, function returns values based on CSI_VALUE(*), - * HSI_VALUE(**) or HSE_VALUE(***) multiplied/divided by the PLL factors. - * @note (*) CSI_VALUE is a constant defined in stm32h7xx_hal_conf.h file (default value - * 4 MHz) but the real value may vary depending on the variations - * in voltage and temperature. - * @note (**) HSI_VALUE is a constant defined in stm32h7xx_hal_conf.h file (default value - * 64 MHz) but the real value may vary depending on the variations - * in voltage and temperature. - * @note (***) HSE_VALUE is a constant defined in stm32h7xx_hal_conf.h file (default value - * 25 MHz), user has to ensure that HSE_VALUE is same as the real - * frequency of the crystal used. Otherwise, this function may - * have wrong result. - * - * @note The result of this function could be not correct when using fractional - * value for HSE crystal. - * - * @note This function can be used by the user application to compute the - * baud rate for the communication peripherals or configure other parameters. - * - * @note Each time SYSCLK changes, this function must be called to update the - * right SYSCLK value. Otherwise, any configuration based on this function will be incorrect. - * - * - * @retval SYSCLK frequency - */ -uint32_t HAL_RCC_GetSysClockFreq(void) -{ - uint32_t pllp, pllsource, pllm, pllfracen, hsivalue; - float_t fracn1, pllvco; - uint32_t sysclockfreq; - - /* Get SYSCLK source -------------------------------------------------------*/ - - switch (RCC->CFGR & RCC_CFGR_SWS) - { - case RCC_CFGR_SWS_HSI: /* HSI used as system clock source */ - - if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U) - { - sysclockfreq = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3)); - } - else - { - sysclockfreq = (uint32_t) HSI_VALUE; - } - - break; - - case RCC_CFGR_SWS_CSI: /* CSI used as system clock source */ - sysclockfreq = CSI_VALUE; - break; - - case RCC_CFGR_SWS_HSE: /* HSE used as system clock source */ - sysclockfreq = HSE_VALUE; - break; - - case RCC_CFGR_SWS_PLL1: /* PLL1 used as system clock source */ - - /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLLM) * PLLN - SYSCLK = PLL_VCO / PLLR - */ - pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC); - pllm = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM1) >> 4) ; - pllfracen = ((RCC-> PLLCFGR & RCC_PLLCFGR_PLL1FRACEN) >> RCC_PLLCFGR_PLL1FRACEN_Pos); - fracn1 = (float_t)(uint32_t)(pllfracen * ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> 3)); - - if (pllm != 0U) - { - switch (pllsource) - { - case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */ - - if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U) - { - hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3)); - pllvco = ((float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1); - } - else - { - pllvco = ((float_t)HSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1); - } - break; - - case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */ - pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1); - break; - - case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */ - pllvco = ((float_t)HSE_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1); - break; - - default: - pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1); - break; - } - pllp = (((RCC->PLL1DIVR & RCC_PLL1DIVR_P1) >> 9) + 1U) ; - sysclockfreq = (uint32_t)(float_t)(pllvco / (float_t)pllp); - } - else - { - sysclockfreq = 0U; - } - break; - - default: - sysclockfreq = CSI_VALUE; - break; - } - - return sysclockfreq; -} - - -/** - * @brief Returns the HCLK frequency - * @note Each time HCLK changes, this function must be called to update the - * right HCLK value. Otherwise, any configuration based on this function will be incorrect. - * - * @note The SystemD2Clock CMSIS variable is used to store System domain2 Clock Frequency - * and updated within this function - * @retval HCLK frequency - */ -uint32_t HAL_RCC_GetHCLKFreq(void) -{ - uint32_t common_system_clock; - -#if defined(RCC_D1CFGR_D1CPRE) - common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos] & 0x1FU); -#else - common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos] & 0x1FU); -#endif - -#if defined(RCC_D1CFGR_HPRE) - SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU)); -#else - SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_HPRE) >> RCC_CDCFGR1_HPRE_Pos]) & 0x1FU)); -#endif - -#if defined(DUAL_CORE) && defined(CORE_CM4) - SystemCoreClock = SystemD2Clock; -#else - SystemCoreClock = common_system_clock; -#endif /* DUAL_CORE && CORE_CM4 */ - - return SystemD2Clock; -} - - -/** - * @brief Returns the PCLK1 frequency - * @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) -{ -#if defined (RCC_D2CFGR_D2PPRE1) - /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/ - return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->D2CFGR & RCC_D2CFGR_D2PPRE1) >> RCC_D2CFGR_D2PPRE1_Pos]) & 0x1FU)); -#else - /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/ - return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE1) >> RCC_CDCFGR2_CDPPRE1_Pos]) & 0x1FU)); -#endif -} - - -/** - * @brief Returns the D2 PCLK2 frequency - * @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 PCLK1 frequency - */ -uint32_t HAL_RCC_GetPCLK2Freq(void) -{ - /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/ -#if defined(RCC_D2CFGR_D2PPRE2) - return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->D2CFGR & RCC_D2CFGR_D2PPRE2) >> RCC_D2CFGR_D2PPRE2_Pos]) & 0x1FU)); -#else - return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE2) >> RCC_CDCFGR2_CDPPRE2_Pos]) & 0x1FU)); -#endif -} - -/** - * @brief Configures the RCC_OscInitStruct according to the internal - * RCC configuration registers. - * @param RCC_OscInitStruct: pointer to an RCC_OscInitTypeDef structure that - * will be configured. - * @retval None - */ -void HAL_RCC_GetOscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) -{ - /* Set all possible values for the Oscillator type parameter ---------------*/ - RCC_OscInitStruct->OscillatorType = RCC_OSCILLATORTYPE_HSE | RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_CSI | \ - RCC_OSCILLATORTYPE_LSE | RCC_OSCILLATORTYPE_LSI | RCC_OSCILLATORTYPE_HSI48; - - /* Get the HSE configuration -----------------------------------------------*/ -#if defined(RCC_CR_HSEEXT) - if ((RCC->CR & (RCC_CR_HSEBYP | RCC_CR_HSEEXT)) == RCC_CR_HSEBYP) - { - RCC_OscInitStruct->HSEState = RCC_HSE_BYPASS; - } - else if ((RCC->CR & (RCC_CR_HSEBYP | RCC_CR_HSEEXT)) == (RCC_CR_HSEBYP | RCC_CR_HSEEXT)) - { - RCC_OscInitStruct->HSEState = RCC_HSE_BYPASS_DIGITAL; - } - else if ((RCC->CR & RCC_CR_HSEON) == RCC_CR_HSEON) - { - RCC_OscInitStruct->HSEState = RCC_HSE_ON; - } - else - { - RCC_OscInitStruct->HSEState = RCC_HSE_OFF; - } -#else - if ((RCC->CR & RCC_CR_HSEBYP) == RCC_CR_HSEBYP) - { - RCC_OscInitStruct->HSEState = RCC_HSE_BYPASS; - } - else if ((RCC->CR & RCC_CR_HSEON) == RCC_CR_HSEON) - { - RCC_OscInitStruct->HSEState = RCC_HSE_ON; - } - else - { - RCC_OscInitStruct->HSEState = RCC_HSE_OFF; - } -#endif /* RCC_CR_HSEEXT */ - - /* Get the CSI configuration -----------------------------------------------*/ - if ((RCC->CR & RCC_CR_CSION) == RCC_CR_CSION) - { - RCC_OscInitStruct->CSIState = RCC_CSI_ON; - } - else - { - RCC_OscInitStruct->CSIState = RCC_CSI_OFF; - } - -#if defined(RCC_VER_X) - if (HAL_GetREVID() <= REV_ID_Y) - { - RCC_OscInitStruct->CSICalibrationValue = (uint32_t)(READ_BIT(RCC->HSICFGR, HAL_RCC_REV_Y_CSITRIM_Msk) >> HAL_RCC_REV_Y_CSITRIM_Pos); - } - else - { - RCC_OscInitStruct->CSICalibrationValue = (uint32_t)(READ_BIT(RCC->CSICFGR, RCC_CSICFGR_CSITRIM) >> RCC_CSICFGR_CSITRIM_Pos); - } -#else - RCC_OscInitStruct->CSICalibrationValue = (uint32_t)(READ_BIT(RCC->CSICFGR, RCC_CSICFGR_CSITRIM) >> RCC_CSICFGR_CSITRIM_Pos); -#endif /*RCC_VER_X*/ - - /* Get the HSI configuration -----------------------------------------------*/ - if ((RCC->CR & RCC_CR_HSION) == RCC_CR_HSION) - { - RCC_OscInitStruct->HSIState = RCC_HSI_ON; - } - else - { - RCC_OscInitStruct->HSIState = RCC_HSI_OFF; - } - -#if defined(RCC_VER_X) - if (HAL_GetREVID() <= REV_ID_Y) - { - RCC_OscInitStruct->HSICalibrationValue = (uint32_t)(READ_BIT(RCC->HSICFGR, HAL_RCC_REV_Y_HSITRIM_Msk) >> HAL_RCC_REV_Y_HSITRIM_Pos); - } - else - { - RCC_OscInitStruct->HSICalibrationValue = (uint32_t)(READ_BIT(RCC->HSICFGR, RCC_HSICFGR_HSITRIM) >> RCC_HSICFGR_HSITRIM_Pos); - } -#else - RCC_OscInitStruct->HSICalibrationValue = (uint32_t)(READ_BIT(RCC->HSICFGR, RCC_HSICFGR_HSITRIM) >> RCC_HSICFGR_HSITRIM_Pos); -#endif /*RCC_VER_X*/ - - /* Get the LSE configuration -----------------------------------------------*/ -#if defined(RCC_BDCR_LSEEXT) - if ((RCC->BDCR & (RCC_BDCR_LSEBYP | RCC_BDCR_LSEEXT)) == RCC_BDCR_LSEBYP) - { - RCC_OscInitStruct->LSEState = RCC_LSE_BYPASS; - } - else if ((RCC->BDCR & (RCC_BDCR_LSEBYP | RCC_BDCR_LSEEXT)) == (RCC_BDCR_LSEBYP | RCC_BDCR_LSEEXT)) - { - RCC_OscInitStruct->LSEState = RCC_LSE_BYPASS_DIGITAL; - } - else if ((RCC->BDCR & RCC_BDCR_LSEON) == RCC_BDCR_LSEON) - { - RCC_OscInitStruct->LSEState = RCC_LSE_ON; - } - else - { - RCC_OscInitStruct->LSEState = RCC_LSE_OFF; - } -#else - if ((RCC->BDCR & RCC_BDCR_LSEBYP) == RCC_BDCR_LSEBYP) - { - RCC_OscInitStruct->LSEState = RCC_LSE_BYPASS; - } - else if ((RCC->BDCR & RCC_BDCR_LSEON) == RCC_BDCR_LSEON) - { - RCC_OscInitStruct->LSEState = RCC_LSE_ON; - } - else - { - RCC_OscInitStruct->LSEState = RCC_LSE_OFF; - } -#endif /* RCC_BDCR_LSEEXT */ - - /* Get the LSI configuration -----------------------------------------------*/ - if ((RCC->CSR & RCC_CSR_LSION) == RCC_CSR_LSION) - { - RCC_OscInitStruct->LSIState = RCC_LSI_ON; - } - else - { - RCC_OscInitStruct->LSIState = RCC_LSI_OFF; - } - - /* Get the HSI48 configuration ---------------------------------------------*/ - if ((RCC->CR & RCC_CR_HSI48ON) == RCC_CR_HSI48ON) - { - RCC_OscInitStruct->HSI48State = RCC_HSI48_ON; - } - else - { - RCC_OscInitStruct->HSI48State = RCC_HSI48_OFF; - } - - /* Get the PLL configuration -----------------------------------------------*/ - if ((RCC->CR & RCC_CR_PLLON) == RCC_CR_PLLON) - { - RCC_OscInitStruct->PLL.PLLState = RCC_PLL_ON; - } - else - { - RCC_OscInitStruct->PLL.PLLState = RCC_PLL_OFF; - } - RCC_OscInitStruct->PLL.PLLSource = (uint32_t)(RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC); - RCC_OscInitStruct->PLL.PLLM = (uint32_t)((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos); - RCC_OscInitStruct->PLL.PLLN = (uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_N1) >> RCC_PLL1DIVR_N1_Pos) + 1U; - RCC_OscInitStruct->PLL.PLLR = (uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_R1) >> RCC_PLL1DIVR_R1_Pos) + 1U; - RCC_OscInitStruct->PLL.PLLP = (uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) + 1U; - RCC_OscInitStruct->PLL.PLLQ = (uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) + 1U; - RCC_OscInitStruct->PLL.PLLRGE = (uint32_t)((RCC->PLLCFGR & RCC_PLLCFGR_PLL1RGE)); - RCC_OscInitStruct->PLL.PLLVCOSEL = (uint32_t)((RCC->PLLCFGR & RCC_PLLCFGR_PLL1VCOSEL) >> RCC_PLLCFGR_PLL1VCOSEL_Pos); - RCC_OscInitStruct->PLL.PLLFRACN = (uint32_t)(((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> RCC_PLL1FRACR_FRACN1_Pos)); -} - -/** - * @brief Configures the RCC_ClkInitStruct according to the internal - * RCC configuration registers. - * @param RCC_ClkInitStruct: pointer to an RCC_ClkInitTypeDef structure that - * will be configured. - * @param pFLatency: Pointer on the Flash Latency. - * @retval None - */ -void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency) -{ - /* Set all possible values for the Clock type parameter --------------------*/ - RCC_ClkInitStruct->ClockType = RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_D1PCLK1 | RCC_CLOCKTYPE_PCLK1 | - RCC_CLOCKTYPE_PCLK2 | RCC_CLOCKTYPE_D3PCLK1 ; - - /* Get the SYSCLK configuration --------------------------------------------*/ - RCC_ClkInitStruct->SYSCLKSource = (uint32_t)(RCC->CFGR & RCC_CFGR_SW); - -#if defined(RCC_D1CFGR_D1CPRE) - /* Get the SYSCLK configuration ----------------------------------------------*/ - RCC_ClkInitStruct->SYSCLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_D1CPRE); - - /* Get the D1HCLK configuration ----------------------------------------------*/ - RCC_ClkInitStruct->AHBCLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_HPRE); - - /* Get the APB3 configuration ----------------------------------------------*/ - RCC_ClkInitStruct->APB3CLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_D1PPRE); - - /* Get the APB1 configuration ----------------------------------------------*/ - RCC_ClkInitStruct->APB1CLKDivider = (uint32_t)(RCC->D2CFGR & RCC_D2CFGR_D2PPRE1); - - /* Get the APB2 configuration ----------------------------------------------*/ - RCC_ClkInitStruct->APB2CLKDivider = (uint32_t)(RCC->D2CFGR & RCC_D2CFGR_D2PPRE2); - - /* Get the APB4 configuration ----------------------------------------------*/ - RCC_ClkInitStruct->APB4CLKDivider = (uint32_t)(RCC->D3CFGR & RCC_D3CFGR_D3PPRE); -#else - /* Get the SYSCLK configuration ----------------------------------------------*/ - RCC_ClkInitStruct->SYSCLKDivider = (uint32_t)(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE); - - /* Get the D1HCLK configuration ----------------------------------------------*/ - RCC_ClkInitStruct->AHBCLKDivider = (uint32_t)(RCC->CDCFGR1 & RCC_CDCFGR1_HPRE); - - /* Get the APB3 configuration ----------------------------------------------*/ - RCC_ClkInitStruct->APB3CLKDivider = (uint32_t)(RCC->CDCFGR1 & RCC_CDCFGR1_CDPPRE); - - /* Get the APB1 configuration ----------------------------------------------*/ - RCC_ClkInitStruct->APB1CLKDivider = (uint32_t)(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE1); - - /* Get the APB2 configuration ----------------------------------------------*/ - RCC_ClkInitStruct->APB2CLKDivider = (uint32_t)(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE2); - - /* Get the APB4 configuration ----------------------------------------------*/ - RCC_ClkInitStruct->APB4CLKDivider = (uint32_t)(RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE); -#endif - - /* Get the Flash Wait State (Latency) configuration ------------------------*/ - *pFLatency = (uint32_t)(FLASH->ACR & FLASH_ACR_LATENCY); -} - -/** - * @brief This function handles the RCC CSS interrupt request. - * @note This API should be called under the NMI_Handler(). - * @retval None - */ -void HAL_RCC_NMI_IRQHandler(void) -{ - /* Check RCC CSSF flag */ - if (__HAL_RCC_GET_IT(RCC_IT_CSS)) - { - /* RCC Clock Security System interrupt user callback */ - HAL_RCC_CSSCallback(); - - /* Clear RCC CSS pending bit */ - __HAL_RCC_CLEAR_IT(RCC_IT_CSS); - } -} - -/** - * @brief RCC Clock Security System interrupt callback - * @retval none - */ -__weak void HAL_RCC_CSSCallback(void) -{ - /* NOTE : This function Should not be modified, when the callback is needed, - the HAL_RCC_CSSCallback could be implemented in the user file - */ -} - -/** - * @} - */ - -/** - * @} - */ - -#endif /* HAL_RCC_MODULE_ENABLED */ -/** - * @} - */ - -/** - * @} - */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c b/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c deleted file mode 100644 index b771887..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c +++ /dev/null @@ -1,3935 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_rcc_ex.c - * @author MCD Application Team - * @brief Extended RCC HAL module driver. - * This file provides firmware functions to manage the following - * functionalities RCC extension peripheral: - * + Extended Peripheral Control functions - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file in - * the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - ****************************************************************************** - */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @defgroup RCCEx RCCEx - * @brief RCC HAL module driver - * @{ - */ - -#ifdef HAL_RCC_MODULE_ENABLED - -/* Private typedef -----------------------------------------------------------*/ -/* Private defines -----------------------------------------------------------*/ -/** @defgroup RCCEx_Private_defines RCCEx Private Defines - * @{ - */ -#define PLL2_TIMEOUT_VALUE PLL_TIMEOUT_VALUE /* 2 ms */ -#define PLL3_TIMEOUT_VALUE PLL_TIMEOUT_VALUE /* 2 ms */ - -#define DIVIDER_P_UPDATE 0U -#define DIVIDER_Q_UPDATE 1U -#define DIVIDER_R_UPDATE 2U -/** - * @} - */ - -/* Private macros ------------------------------------------------------------*/ -/** @defgroup RCCEx_Private_Macros RCCEx Private Macros - * @{ - */ -/** - * @} - */ - -/* Private variables ---------------------------------------------------------*/ -/* Private function prototypes -----------------------------------------------*/ -static HAL_StatusTypeDef RCCEx_PLL2_Config(RCC_PLL2InitTypeDef *pll2, uint32_t Divider); -static HAL_StatusTypeDef RCCEx_PLL3_Config(RCC_PLL3InitTypeDef *pll3, uint32_t Divider); - -/* Exported functions --------------------------------------------------------*/ -/** @defgroup RCCEx_Exported_Functions RCCEx Exported Functions - * @{ - */ - -/** @defgroup RCCEx_Exported_Functions_Group1 Extended Peripheral Control functions - * @brief Extended Peripheral Control functions - * -@verbatim - =============================================================================== - ##### Extended Peripheral Control functions ##### - =============================================================================== - [..] - This subsection provides a set of functions allowing to control the RCC Clocks - frequencies. - [..] - (@) Important note: Care must be taken when HAL_RCCEx_PeriphCLKConfig() is used to - select the RTC clock source; in this case the Backup domain will be reset in - order to modify the RTC Clock source, as consequence RTC registers (including - the backup registers) and RCC_BDCR register are set to their reset values. - -@endverbatim - * @{ - */ -/** - * @brief Initializes the RCC extended peripherals clocks according to the specified - * parameters in the RCC_PeriphCLKInitTypeDef. - * @param PeriphClkInit: pointer to an RCC_PeriphCLKInitTypeDef structure that - * contains the configuration information for the Extended Peripherals - * clocks (SDMMC, CKPER, FMC, QSPI*, OSPI*, DSI, SPI45, SPDIF, DFSDM1, DFSDM2*, FDCAN, SWPMI, SAI23*,SAI2A*, SAI2B*, SAI1, SPI123, - * USART234578, USART16 (USART16910*), RNG, HRTIM1*, I2C123 (I2C1235*), USB, CEC, LPTIM1, LPUART1, I2C4, LPTIM2, LPTIM345, ADC, - * SAI4A*, SAI4B*, SPI6, RTC). - * @note Care must be taken when HAL_RCCEx_PeriphCLKConfig() is used to select - * the RTC clock source; in this case the Backup domain will be reset in - * order to modify the RTC Clock source, as consequence RTC registers (including - * the backup registers) are set to their reset values. - * - * (*) : Available on some STM32H7 lines only. - * - * @retval HAL status - */ -HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) -{ - uint32_t tmpreg; - uint32_t tickstart; - HAL_StatusTypeDef ret = HAL_OK; /* Intermediate status */ - HAL_StatusTypeDef status = HAL_OK; /* Final status */ - - /*---------------------------- SPDIFRX configuration -------------------------------*/ - - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPDIFRX) == RCC_PERIPHCLK_SPDIFRX) - { - - switch (PeriphClkInit->SpdifrxClockSelection) - { - case RCC_SPDIFRXCLKSOURCE_PLL: /* PLL is used as clock source for SPDIFRX*/ - /* Enable PLL1Q Clock output generated form System PLL . */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ); - - /* SPDIFRX clock source configuration done later after clock selection check */ - break; - - case RCC_SPDIFRXCLKSOURCE_PLL2: /* PLL2 is used as clock source for SPDIFRX*/ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE); - - /* SPDIFRX clock source configuration done later after clock selection check */ - break; - - case RCC_SPDIFRXCLKSOURCE_PLL3: /* PLL3 is used as clock source for SPDIFRX*/ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE); - - /* SPDIFRX clock source configuration done later after clock selection check */ - break; - - case RCC_SPDIFRXCLKSOURCE_HSI: - /* Internal OSC clock is used as source of SPDIFRX clock*/ - /* SPDIFRX clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - break; - } - - if (ret == HAL_OK) - { - /* Set the source of SPDIFRX clock*/ - __HAL_RCC_SPDIFRX_CONFIG(PeriphClkInit->SpdifrxClockSelection); - } - else - { - /* set overall return value */ - status = ret; - } - } - - /*---------------------------- SAI1 configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1) - { - switch (PeriphClkInit->Sai1ClockSelection) - { - case RCC_SAI1CLKSOURCE_PLL: /* PLL is used as clock source for SAI1*/ - /* Enable SAI Clock output generated form System PLL . */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ); - - /* SAI1 clock source configuration done later after clock selection check */ - break; - - case RCC_SAI1CLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI1*/ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE); - - /* SAI1 clock source configuration done later after clock selection check */ - break; - - case RCC_SAI1CLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI1*/ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE); - - /* SAI1 clock source configuration done later after clock selection check */ - break; - - case RCC_SAI1CLKSOURCE_PIN: - /* External clock is used as source of SAI1 clock*/ - /* SAI1 clock source configuration done later after clock selection check */ - break; - - case RCC_SAI1CLKSOURCE_CLKP: - /* HSI, HSE, or CSI oscillator is used as source of SAI1 clock */ - /* SAI1 clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - break; - } - - if (ret == HAL_OK) - { - /* Set the source of SAI1 clock*/ - __HAL_RCC_SAI1_CONFIG(PeriphClkInit->Sai1ClockSelection); - } - else - { - /* set overall return value */ - status = ret; - } - } - -#if defined(SAI3) - /*---------------------------- SAI2/3 configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI23) == RCC_PERIPHCLK_SAI23) - { - switch (PeriphClkInit->Sai23ClockSelection) - { - case RCC_SAI23CLKSOURCE_PLL: /* PLL is used as clock source for SAI2/3 */ - /* Enable SAI Clock output generated form System PLL . */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ); - - /* SAI2/3 clock source configuration done later after clock selection check */ - break; - - case RCC_SAI23CLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2/3 */ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE); - - /* SAI2/3 clock source configuration done later after clock selection check */ - break; - - case RCC_SAI23CLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2/3 */ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE); - - /* SAI2/3 clock source configuration done later after clock selection check */ - break; - - case RCC_SAI23CLKSOURCE_PIN: - /* External clock is used as source of SAI2/3 clock*/ - /* SAI2/3 clock source configuration done later after clock selection check */ - break; - - case RCC_SAI23CLKSOURCE_CLKP: - /* HSI, HSE, or CSI oscillator is used as source of SAI2/3 clock */ - /* SAI2/3 clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - break; - } - - if (ret == HAL_OK) - { - /* Set the source of SAI2/3 clock*/ - __HAL_RCC_SAI23_CONFIG(PeriphClkInit->Sai23ClockSelection); - } - else - { - /* set overall return value */ - status = ret; - } - } - -#endif /* SAI3 */ - -#if defined(RCC_CDCCIP1R_SAI2ASEL) - /*---------------------------- SAI2A configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2A) == RCC_PERIPHCLK_SAI2A) - { - switch (PeriphClkInit->Sai2AClockSelection) - { - case RCC_SAI2ACLKSOURCE_PLL: /* PLL is used as clock source for SAI2A */ - /* Enable SAI2A Clock output generated form System PLL . */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ); - - /* SAI2A clock source configuration done later after clock selection check */ - break; - - case RCC_SAI2ACLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2A */ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE); - - /* SAI2A clock source configuration done later after clock selection check */ - break; - - case RCC_SAI2ACLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2A */ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE); - - /* SAI2A clock source configuration done later after clock selection check */ - break; - - case RCC_SAI2ACLKSOURCE_PIN: - /* External clock is used as source of SAI2A clock*/ - /* SAI2A clock source configuration done later after clock selection check */ - break; - - case RCC_SAI2ACLKSOURCE_CLKP: - /* HSI, HSE, or CSI oscillator is used as source of SAI2A clock */ - /* SAI2A clock source configuration done later after clock selection check */ - break; - - case RCC_SAI2ACLKSOURCE_SPDIF: - /* SPDIF clock is used as source of SAI2A clock */ - /* SAI2A clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - break; - } - - if (ret == HAL_OK) - { - /* Set the source of SAI2A clock*/ - __HAL_RCC_SAI2A_CONFIG(PeriphClkInit->Sai2AClockSelection); - } - else - { - /* set overall return value */ - status = ret; - } - } -#endif /*SAI2A*/ - -#if defined(RCC_CDCCIP1R_SAI2BSEL) - - /*---------------------------- SAI2B configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2B) == RCC_PERIPHCLK_SAI2B) - { - switch (PeriphClkInit->Sai2BClockSelection) - { - case RCC_SAI2BCLKSOURCE_PLL: /* PLL is used as clock source for SAI2B */ - /* Enable SAI Clock output generated form System PLL . */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ); - - /* SAI2B clock source configuration done later after clock selection check */ - break; - - case RCC_SAI2BCLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2B */ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE); - - /* SAI2B clock source configuration done later after clock selection check */ - break; - - case RCC_SAI2BCLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2B */ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE); - - /* SAI2B clock source configuration done later after clock selection check */ - break; - - case RCC_SAI2BCLKSOURCE_PIN: - /* External clock is used as source of SAI2B clock*/ - /* SAI2B clock source configuration done later after clock selection check */ - break; - - case RCC_SAI2BCLKSOURCE_CLKP: - /* HSI, HSE, or CSI oscillator is used as source of SAI2B clock */ - /* SAI2B clock source configuration done later after clock selection check */ - break; - - case RCC_SAI2BCLKSOURCE_SPDIF: - /* SPDIF clock is used as source of SAI2B clock */ - /* SAI2B clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - break; - } - - if (ret == HAL_OK) - { - /* Set the source of SAI2B clock*/ - __HAL_RCC_SAI2B_CONFIG(PeriphClkInit->Sai2BClockSelection); - } - else - { - /* set overall return value */ - status = ret; - } - } -#endif /*SAI2B*/ - -#if defined(SAI4) - /*---------------------------- SAI4A configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI4A) == RCC_PERIPHCLK_SAI4A) - { - switch (PeriphClkInit->Sai4AClockSelection) - { - case RCC_SAI4ACLKSOURCE_PLL: /* PLL is used as clock source for SAI2*/ - /* Enable SAI Clock output generated form System PLL . */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ); - - /* SAI1 clock source configuration done later after clock selection check */ - break; - - case RCC_SAI4ACLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2*/ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE); - - /* SAI2 clock source configuration done later after clock selection check */ - break; - - case RCC_SAI4ACLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2*/ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE); - - /* SAI1 clock source configuration done later after clock selection check */ - break; - - case RCC_SAI4ACLKSOURCE_PIN: - /* External clock is used as source of SAI2 clock*/ - /* SAI2 clock source configuration done later after clock selection check */ - break; - - case RCC_SAI4ACLKSOURCE_CLKP: - /* HSI, HSE, or CSI oscillator is used as source of SAI2 clock */ - /* SAI1 clock source configuration done later after clock selection check */ - break; - -#if defined(RCC_VER_3_0) - case RCC_SAI4ACLKSOURCE_SPDIF: - /* SPDIF clock is used as source of SAI4A clock */ - /* SAI4A clock source configuration done later after clock selection check */ - break; -#endif /* RCC_VER_3_0 */ - - default: - ret = HAL_ERROR; - break; - } - - if (ret == HAL_OK) - { - /* Set the source of SAI4A clock*/ - __HAL_RCC_SAI4A_CONFIG(PeriphClkInit->Sai4AClockSelection); - } - else - { - /* set overall return value */ - status = ret; - } - } - /*---------------------------- SAI4B configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI4B) == RCC_PERIPHCLK_SAI4B) - { - switch (PeriphClkInit->Sai4BClockSelection) - { - case RCC_SAI4BCLKSOURCE_PLL: /* PLL is used as clock source for SAI2*/ - /* Enable SAI Clock output generated form System PLL . */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ); - - /* SAI1 clock source configuration done later after clock selection check */ - break; - - case RCC_SAI4BCLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2*/ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE); - - /* SAI2 clock source configuration done later after clock selection check */ - break; - - case RCC_SAI4BCLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2*/ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE); - - /* SAI1 clock source configuration done later after clock selection check */ - break; - - case RCC_SAI4BCLKSOURCE_PIN: - /* External clock is used as source of SAI2 clock*/ - /* SAI2 clock source configuration done later after clock selection check */ - break; - - case RCC_SAI4BCLKSOURCE_CLKP: - /* HSI, HSE, or CSI oscillator is used as source of SAI2 clock */ - /* SAI1 clock source configuration done later after clock selection check */ - break; - -#if defined(RCC_VER_3_0) - case RCC_SAI4BCLKSOURCE_SPDIF: - /* SPDIF clock is used as source of SAI4B clock */ - /* SAI4B clock source configuration done later after clock selection check */ - break; -#endif /* RCC_VER_3_0 */ - - default: - ret = HAL_ERROR; - break; - } - - if (ret == HAL_OK) - { - /* Set the source of SAI4B clock*/ - __HAL_RCC_SAI4B_CONFIG(PeriphClkInit->Sai4BClockSelection); - } - else - { - /* set overall return value */ - status = ret; - } - } -#endif /*SAI4*/ - -#if defined(QUADSPI) - /*---------------------------- QSPI configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_QSPI) == RCC_PERIPHCLK_QSPI) - { - switch (PeriphClkInit->QspiClockSelection) - { - case RCC_QSPICLKSOURCE_PLL: /* PLL is used as clock source for QSPI*/ - /* Enable QSPI Clock output generated form System PLL . */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ); - - /* QSPI clock source configuration done later after clock selection check */ - break; - - case RCC_QSPICLKSOURCE_PLL2: /* PLL2 is used as clock source for QSPI*/ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE); - - /* QSPI clock source configuration done later after clock selection check */ - break; - - - case RCC_QSPICLKSOURCE_CLKP: - /* HSI, HSE, or CSI oscillator is used as source of QSPI clock */ - /* QSPI clock source configuration done later after clock selection check */ - break; - - case RCC_QSPICLKSOURCE_D1HCLK: - /* Domain1 HCLK clock selected as QSPI kernel peripheral clock */ - break; - - default: - ret = HAL_ERROR; - break; - } - - if (ret == HAL_OK) - { - /* Set the source of QSPI clock*/ - __HAL_RCC_QSPI_CONFIG(PeriphClkInit->QspiClockSelection); - } - else - { - /* set overall return value */ - status = ret; - } - } -#endif /*QUADSPI*/ - -#if defined(OCTOSPI1) || defined(OCTOSPI2) - /*---------------------------- OCTOSPI configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_OSPI) == RCC_PERIPHCLK_OSPI) - { - switch (PeriphClkInit->OspiClockSelection) - { - case RCC_OSPICLKSOURCE_PLL: /* PLL is used as clock source for OSPI*/ - /* Enable OSPI Clock output generated form System PLL . */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ); - - /* OSPI clock source configuration done later after clock selection check */ - break; - - case RCC_OSPICLKSOURCE_PLL2: /* PLL2 is used as clock source for OSPI*/ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE); - - /* OSPI clock source configuration done later after clock selection check */ - break; - - - case RCC_OSPICLKSOURCE_CLKP: - /* HSI, HSE, or CSI oscillator is used as source of OSPI clock */ - /* OSPI clock source configuration done later after clock selection check */ - break; - - case RCC_OSPICLKSOURCE_HCLK: - /* HCLK clock selected as OSPI kernel peripheral clock */ - break; - - default: - ret = HAL_ERROR; - break; - } - - if (ret == HAL_OK) - { - /* Set the source of OSPI clock*/ - __HAL_RCC_OSPI_CONFIG(PeriphClkInit->OspiClockSelection); - } - else - { - /* set overall return value */ - status = ret; - } - } -#endif /*OCTOSPI*/ - - /*---------------------------- SPI1/2/3 configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI123) == RCC_PERIPHCLK_SPI123) - { - switch (PeriphClkInit->Spi123ClockSelection) - { - case RCC_SPI123CLKSOURCE_PLL: /* PLL is used as clock source for SPI1/2/3 */ - /* Enable SPI Clock output generated form System PLL . */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ); - - /* SPI1/2/3 clock source configuration done later after clock selection check */ - break; - - case RCC_SPI123CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI1/2/3 */ - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE); - - /* SPI1/2/3 clock source configuration done later after clock selection check */ - break; - - case RCC_SPI123CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI1/2/3 */ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE); - - /* SPI1/2/3 clock source configuration done later after clock selection check */ - break; - - case RCC_SPI123CLKSOURCE_PIN: - /* External clock is used as source of SPI1/2/3 clock*/ - /* SPI1/2/3 clock source configuration done later after clock selection check */ - break; - - case RCC_SPI123CLKSOURCE_CLKP: - /* HSI, HSE, or CSI oscillator is used as source of SPI1/2/3 clock */ - /* SPI1/2/3 clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - break; - } - - if (ret == HAL_OK) - { - /* Set the source of SPI1/2/3 clock*/ - __HAL_RCC_SPI123_CONFIG(PeriphClkInit->Spi123ClockSelection); - } - else - { - /* set overall return value */ - status = ret; - } - } - - /*---------------------------- SPI4/5 configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI45) == RCC_PERIPHCLK_SPI45) - { - switch (PeriphClkInit->Spi45ClockSelection) - { - case RCC_SPI45CLKSOURCE_PCLK2: /* CD/D2 PCLK2 as clock source for SPI4/5 */ - /* SPI4/5 clock source configuration done later after clock selection check */ - break; - - case RCC_SPI45CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI4/5 */ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE); - - /* SPI4/5 clock source configuration done later after clock selection check */ - break; - case RCC_SPI45CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI4/5 */ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE); - /* SPI4/5 clock source configuration done later after clock selection check */ - break; - - case RCC_SPI45CLKSOURCE_HSI: - /* HSI oscillator clock is used as source of SPI4/5 clock*/ - /* SPI4/5 clock source configuration done later after clock selection check */ - break; - - case RCC_SPI45CLKSOURCE_CSI: - /* CSI oscillator clock is used as source of SPI4/5 clock */ - /* SPI4/5 clock source configuration done later after clock selection check */ - break; - - case RCC_SPI45CLKSOURCE_HSE: - /* HSE, oscillator is used as source of SPI4/5 clock */ - /* SPI4/5 clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - break; - } - - if (ret == HAL_OK) - { - /* Set the source of SPI4/5 clock*/ - __HAL_RCC_SPI45_CONFIG(PeriphClkInit->Spi45ClockSelection); - } - else - { - /* set overall return value */ - status = ret; - } - } - - /*---------------------------- SPI6 configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI6) == RCC_PERIPHCLK_SPI6) - { - switch (PeriphClkInit->Spi6ClockSelection) - { - case RCC_SPI6CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for SPI6*/ - /* SPI6 clock source configuration done later after clock selection check */ - break; - - case RCC_SPI6CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI6*/ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE); - - /* SPI6 clock source configuration done later after clock selection check */ - break; - case RCC_SPI6CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI6*/ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE); - /* SPI6 clock source configuration done later after clock selection check */ - break; - - case RCC_SPI6CLKSOURCE_HSI: - /* HSI oscillator clock is used as source of SPI6 clock*/ - /* SPI6 clock source configuration done later after clock selection check */ - break; - - case RCC_SPI6CLKSOURCE_CSI: - /* CSI oscillator clock is used as source of SPI6 clock */ - /* SPI6 clock source configuration done later after clock selection check */ - break; - - case RCC_SPI6CLKSOURCE_HSE: - /* HSE, oscillator is used as source of SPI6 clock */ - /* SPI6 clock source configuration done later after clock selection check */ - break; -#if defined(RCC_SPI6CLKSOURCE_PIN) - case RCC_SPI6CLKSOURCE_PIN: - /* 2S_CKIN is used as source of SPI6 clock */ - /* SPI6 clock source configuration done later after clock selection check */ - break; -#endif - - default: - ret = HAL_ERROR; - break; - } - - if (ret == HAL_OK) - { - /* Set the source of SPI6 clock*/ - __HAL_RCC_SPI6_CONFIG(PeriphClkInit->Spi6ClockSelection); - } - else - { - /* set overall return value */ - status = ret; - } - } - -#if defined(DSI) - /*---------------------------- DSI configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_DSI) == RCC_PERIPHCLK_DSI) - { - switch (PeriphClkInit->DsiClockSelection) - { - - case RCC_DSICLKSOURCE_PLL2: /* PLL2 is used as clock source for DSI*/ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE); - - /* DSI clock source configuration done later after clock selection check */ - break; - - case RCC_DSICLKSOURCE_PHY: - /* PHY is used as clock source for DSI*/ - /* DSI clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - break; - } - - if (ret == HAL_OK) - { - /* Set the source of DSI clock*/ - __HAL_RCC_DSI_CONFIG(PeriphClkInit->DsiClockSelection); - } - else - { - /* set overall return value */ - status = ret; - } - } -#endif /*DSI*/ - -#if defined(FDCAN1) || defined(FDCAN2) - /*---------------------------- FDCAN configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FDCAN) == RCC_PERIPHCLK_FDCAN) - { - switch (PeriphClkInit->FdcanClockSelection) - { - case RCC_FDCANCLKSOURCE_PLL: /* PLL is used as clock source for FDCAN*/ - /* Enable FDCAN Clock output generated form System PLL . */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ); - - /* FDCAN clock source configuration done later after clock selection check */ - break; - - case RCC_FDCANCLKSOURCE_PLL2: /* PLL2 is used as clock source for FDCAN*/ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE); - - /* FDCAN clock source configuration done later after clock selection check */ - break; - - case RCC_FDCANCLKSOURCE_HSE: - /* HSE is used as clock source for FDCAN*/ - /* FDCAN clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - break; - } - - if (ret == HAL_OK) - { - /* Set the source of FDCAN clock*/ - __HAL_RCC_FDCAN_CONFIG(PeriphClkInit->FdcanClockSelection); - } - else - { - /* set overall return value */ - status = ret; - } - } -#endif /*FDCAN1 || FDCAN2*/ - - /*---------------------------- FMC configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FMC) == RCC_PERIPHCLK_FMC) - { - switch (PeriphClkInit->FmcClockSelection) - { - case RCC_FMCCLKSOURCE_PLL: /* PLL is used as clock source for FMC*/ - /* Enable FMC Clock output generated form System PLL . */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ); - - /* FMC clock source configuration done later after clock selection check */ - break; - - case RCC_FMCCLKSOURCE_PLL2: /* PLL2 is used as clock source for FMC*/ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE); - - /* FMC clock source configuration done later after clock selection check */ - break; - - - case RCC_FMCCLKSOURCE_CLKP: - /* HSI, HSE, or CSI oscillator is used as source of FMC clock */ - /* FMC clock source configuration done later after clock selection check */ - break; - - case RCC_FMCCLKSOURCE_HCLK: - /* D1/CD HCLK clock selected as FMC kernel peripheral clock */ - break; - - default: - ret = HAL_ERROR; - break; - } - - if (ret == HAL_OK) - { - /* Set the source of FMC clock*/ - __HAL_RCC_FMC_CONFIG(PeriphClkInit->FmcClockSelection); - } - else - { - /* set overall return value */ - status = ret; - } - } - - /*---------------------------- RTC configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC) - { - /* check for RTC Parameters used to output RTCCLK */ - assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); - - /* Enable write access to Backup domain */ - SET_BIT(PWR->CR1, PWR_CR1_DBP); - - /* Wait for Backup domain Write protection disable */ - tickstart = HAL_GetTick(); - - while ((PWR->CR1 & PWR_CR1_DBP) == 0U) - { - if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - { - ret = HAL_TIMEOUT; - break; - } - } - - if (ret == HAL_OK) - { - /* Reset the Backup domain only if the RTC Clock source selection is modified */ - if ((RCC->BDCR & RCC_BDCR_RTCSEL) != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL)) - { - /* Store the content of BDCR register before the reset of Backup Domain */ - tmpreg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL)); - /* RTC Clock selection can be changed only if the Backup Domain is reset */ - __HAL_RCC_BACKUPRESET_FORCE(); - __HAL_RCC_BACKUPRESET_RELEASE(); - /* Restore the Content of BDCR register */ - RCC->BDCR = tmpreg; - } - - /* If LSE is selected as RTC clock source (and enabled prior to Backup Domain reset), wait for LSE reactivation */ - if (PeriphClkInit->RTCClockSelection == RCC_RTCCLKSOURCE_LSE) - { - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - - /* Wait till LSE is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U) - { - if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - { - ret = HAL_TIMEOUT; - break; - } - } - } - - if (ret == HAL_OK) - { - __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection); - } - else - { - /* set overall return value */ - status = ret; - } - } - else - { - /* set overall return value */ - status = ret; - } - } - - - /*-------------------------- USART1/6 configuration --------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART16) == RCC_PERIPHCLK_USART16) - { - switch (PeriphClkInit->Usart16ClockSelection) - { - case RCC_USART16CLKSOURCE_PCLK2: /* CD/D2 PCLK2 as clock source for USART1/6 */ - /* USART1/6 clock source configuration done later after clock selection check */ - break; - - case RCC_USART16CLKSOURCE_PLL2: /* PLL2 is used as clock source for USART1/6 */ - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE); - /* USART1/6 clock source configuration done later after clock selection check */ - break; - - case RCC_USART16CLKSOURCE_PLL3: /* PLL3 is used as clock source for USART1/6 */ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE); - /* USART1/6 clock source configuration done later after clock selection check */ - break; - - case RCC_USART16CLKSOURCE_HSI: - /* HSI oscillator clock is used as source of USART1/6 clock */ - /* USART1/6 clock source configuration done later after clock selection check */ - break; - - case RCC_USART16CLKSOURCE_CSI: - /* CSI oscillator clock is used as source of USART1/6 clock */ - /* USART1/6 clock source configuration done later after clock selection check */ - break; - - case RCC_USART16CLKSOURCE_LSE: - /* LSE, oscillator is used as source of USART1/6 clock */ - /* USART1/6 clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - break; - } - - if (ret == HAL_OK) - { - /* Set the source of USART1/6 clock */ - __HAL_RCC_USART16_CONFIG(PeriphClkInit->Usart16ClockSelection); - } - else - { - /* set overall return value */ - status = ret; - } - } - - /*-------------------------- USART2/3/4/5/7/8 Configuration --------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART234578) == RCC_PERIPHCLK_USART234578) - { - switch (PeriphClkInit->Usart234578ClockSelection) - { - case RCC_USART234578CLKSOURCE_PCLK1: /* CD/D2 PCLK1 as clock source for USART2/3/4/5/7/8 */ - /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */ - break; - - case RCC_USART234578CLKSOURCE_PLL2: /* PLL2 is used as clock source for USART2/3/4/5/7/8 */ - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE); - /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */ - break; - - case RCC_USART234578CLKSOURCE_PLL3: /* PLL3 is used as clock source for USART2/3/4/5/7/8 */ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE); - /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */ - break; - - case RCC_USART234578CLKSOURCE_HSI: - /* HSI oscillator clock is used as source of USART2/3/4/5/7/8 clock */ - /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */ - break; - - case RCC_USART234578CLKSOURCE_CSI: - /* CSI oscillator clock is used as source of USART2/3/4/5/7/8 clock */ - /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */ - break; - - case RCC_USART234578CLKSOURCE_LSE: - /* LSE, oscillator is used as source of USART2/3/4/5/7/8 clock */ - /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - break; - } - - if (ret == HAL_OK) - { - /* Set the source of USART2/3/4/5/7/8 clock */ - __HAL_RCC_USART234578_CONFIG(PeriphClkInit->Usart234578ClockSelection); - } - else - { - /* set overall return value */ - status = ret; - } - } - - /*-------------------------- LPUART1 Configuration -------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPUART1) == RCC_PERIPHCLK_LPUART1) - { - switch (PeriphClkInit->Lpuart1ClockSelection) - { - case RCC_LPUART1CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPUART1 */ - /* LPUART1 clock source configuration done later after clock selection check */ - break; - - case RCC_LPUART1CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPUART1 */ - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE); - /* LPUART1 clock source configuration done later after clock selection check */ - break; - - case RCC_LPUART1CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPUART1 */ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE); - /* LPUART1 clock source configuration done later after clock selection check */ - break; - - case RCC_LPUART1CLKSOURCE_HSI: - /* HSI oscillator clock is used as source of LPUART1 clock */ - /* LPUART1 clock source configuration done later after clock selection check */ - break; - - case RCC_LPUART1CLKSOURCE_CSI: - /* CSI oscillator clock is used as source of LPUART1 clock */ - /* LPUART1 clock source configuration done later after clock selection check */ - break; - - case RCC_LPUART1CLKSOURCE_LSE: - /* LSE, oscillator is used as source of LPUART1 clock */ - /* LPUART1 clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - break; - } - - if (ret == HAL_OK) - { - /* Set the source of LPUART1 clock */ - __HAL_RCC_LPUART1_CONFIG(PeriphClkInit->Lpuart1ClockSelection); - } - else - { - /* set overall return value */ - status = ret; - } - } - - /*---------------------------- LPTIM1 configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM1) == RCC_PERIPHCLK_LPTIM1) - { - switch (PeriphClkInit->Lptim1ClockSelection) - { - case RCC_LPTIM1CLKSOURCE_PCLK1: /* CD/D2 PCLK1 as clock source for LPTIM1*/ - /* LPTIM1 clock source configuration done later after clock selection check */ - break; - - case RCC_LPTIM1CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM1*/ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE); - - /* LPTIM1 clock source configuration done later after clock selection check */ - break; - - case RCC_LPTIM1CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM1*/ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE); - - /* LPTIM1 clock source configuration done later after clock selection check */ - break; - - case RCC_LPTIM1CLKSOURCE_LSE: - /* External low speed OSC clock is used as source of LPTIM1 clock*/ - /* LPTIM1 clock source configuration done later after clock selection check */ - break; - - case RCC_LPTIM1CLKSOURCE_LSI: - /* Internal low speed OSC clock is used as source of LPTIM1 clock*/ - /* LPTIM1 clock source configuration done later after clock selection check */ - break; - case RCC_LPTIM1CLKSOURCE_CLKP: - /* HSI, HSE, or CSI oscillator is used as source of LPTIM1 clock */ - /* LPTIM1 clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - break; - } - - if (ret == HAL_OK) - { - /* Set the source of LPTIM1 clock*/ - __HAL_RCC_LPTIM1_CONFIG(PeriphClkInit->Lptim1ClockSelection); - } - else - { - /* set overall return value */ - status = ret; - } - } - - /*---------------------------- LPTIM2 configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM2) == RCC_PERIPHCLK_LPTIM2) - { - switch (PeriphClkInit->Lptim2ClockSelection) - { - case RCC_LPTIM2CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPTIM2*/ - /* LPTIM2 clock source configuration done later after clock selection check */ - break; - - case RCC_LPTIM2CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM2*/ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE); - - /* LPTIM2 clock source configuration done later after clock selection check */ - break; - - case RCC_LPTIM2CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM2*/ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE); - - /* LPTIM2 clock source configuration done later after clock selection check */ - break; - - case RCC_LPTIM2CLKSOURCE_LSE: - /* External low speed OSC clock is used as source of LPTIM2 clock*/ - /* LPTIM2 clock source configuration done later after clock selection check */ - break; - - case RCC_LPTIM2CLKSOURCE_LSI: - /* Internal low speed OSC clock is used as source of LPTIM2 clock*/ - /* LPTIM2 clock source configuration done later after clock selection check */ - break; - case RCC_LPTIM2CLKSOURCE_CLKP: - /* HSI, HSE, or CSI oscillator is used as source of LPTIM2 clock */ - /* LPTIM2 clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - break; - } - - if (ret == HAL_OK) - { - /* Set the source of LPTIM2 clock*/ - __HAL_RCC_LPTIM2_CONFIG(PeriphClkInit->Lptim2ClockSelection); - } - else - { - /* set overall return value */ - status = ret; - } - } - - /*---------------------------- LPTIM345 configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM345) == RCC_PERIPHCLK_LPTIM345) - { - switch (PeriphClkInit->Lptim345ClockSelection) - { - - case RCC_LPTIM345CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPTIM3/4/5 */ - /* LPTIM3/4/5 clock source configuration done later after clock selection check */ - break; - - case RCC_LPTIM345CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM3/4/5 */ - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE); - - /* LPTIM3/4/5 clock source configuration done later after clock selection check */ - break; - - case RCC_LPTIM345CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM3/4/5 */ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE); - - /* LPTIM3/4/5 clock source configuration done later after clock selection check */ - break; - - case RCC_LPTIM345CLKSOURCE_LSE: - /* External low speed OSC clock is used as source of LPTIM3/4/5 clock */ - /* LPTIM3/4/5 clock source configuration done later after clock selection check */ - break; - - case RCC_LPTIM345CLKSOURCE_LSI: - /* Internal low speed OSC clock is used as source of LPTIM3/4/5 clock */ - /* LPTIM3/4/5 clock source configuration done later after clock selection check */ - break; - case RCC_LPTIM345CLKSOURCE_CLKP: - /* HSI, HSE, or CSI oscillator is used as source of LPTIM3/4/5 clock */ - /* LPTIM3/4/5 clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - break; - } - - if (ret == HAL_OK) - { - /* Set the source of LPTIM3/4/5 clock */ - __HAL_RCC_LPTIM345_CONFIG(PeriphClkInit->Lptim345ClockSelection); - } - else - { - /* set overall return value */ - status = ret; - } - } - - /*------------------------------ I2C1/2/3/5* Configuration ------------------------*/ -#if defined(I2C5) - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C1235) == RCC_PERIPHCLK_I2C1235) - { - /* Check the parameters */ - assert_param(IS_RCC_I2C1235CLKSOURCE(PeriphClkInit->I2c1235ClockSelection)); - - if ((PeriphClkInit->I2c1235ClockSelection) == RCC_I2C1235CLKSOURCE_PLL3) - { - if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK) - { - status = HAL_ERROR; - } - } - - __HAL_RCC_I2C1235_CONFIG(PeriphClkInit->I2c1235ClockSelection); - - } -#else - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C123) == RCC_PERIPHCLK_I2C123) - { - /* Check the parameters */ - assert_param(IS_RCC_I2C123CLKSOURCE(PeriphClkInit->I2c123ClockSelection)); - - if ((PeriphClkInit->I2c123ClockSelection) == RCC_I2C123CLKSOURCE_PLL3) - { - if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK) - { - status = HAL_ERROR; - } - } - - __HAL_RCC_I2C123_CONFIG(PeriphClkInit->I2c123ClockSelection); - - } -#endif /* I2C5 */ - - /*------------------------------ I2C4 Configuration ------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C4) == RCC_PERIPHCLK_I2C4) - { - /* Check the parameters */ - assert_param(IS_RCC_I2C4CLKSOURCE(PeriphClkInit->I2c4ClockSelection)); - - if ((PeriphClkInit->I2c4ClockSelection) == RCC_I2C4CLKSOURCE_PLL3) - { - if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK) - { - status = HAL_ERROR; - } - } - - __HAL_RCC_I2C4_CONFIG(PeriphClkInit->I2c4ClockSelection); - - } - - /*---------------------------- ADC configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_ADC) == RCC_PERIPHCLK_ADC) - { - switch (PeriphClkInit->AdcClockSelection) - { - - case RCC_ADCCLKSOURCE_PLL2: /* PLL2 is used as clock source for ADC*/ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE); - - /* ADC clock source configuration done later after clock selection check */ - break; - - case RCC_ADCCLKSOURCE_PLL3: /* PLL3 is used as clock source for ADC*/ - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE); - - /* ADC clock source configuration done later after clock selection check */ - break; - - case RCC_ADCCLKSOURCE_CLKP: - /* HSI, HSE, or CSI oscillator is used as source of ADC clock */ - /* ADC clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - break; - } - - if (ret == HAL_OK) - { - /* Set the source of ADC clock*/ - __HAL_RCC_ADC_CONFIG(PeriphClkInit->AdcClockSelection); - } - else - { - /* set overall return value */ - status = ret; - } - } - - /*------------------------------ USB Configuration -------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USB) == RCC_PERIPHCLK_USB) - { - - switch (PeriphClkInit->UsbClockSelection) - { - case RCC_USBCLKSOURCE_PLL: /* PLL is used as clock source for USB*/ - /* Enable USB Clock output generated form System USB . */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ); - - /* USB clock source configuration done later after clock selection check */ - break; - - case RCC_USBCLKSOURCE_PLL3: /* PLL3 is used as clock source for USB*/ - - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE); - - /* USB clock source configuration done later after clock selection check */ - break; - - case RCC_USBCLKSOURCE_HSI48: - /* HSI48 oscillator is used as source of USB clock */ - /* USB clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - break; - } - - if (ret == HAL_OK) - { - /* Set the source of USB clock*/ - __HAL_RCC_USB_CONFIG(PeriphClkInit->UsbClockSelection); - } - else - { - /* set overall return value */ - status = ret; - } - - } - - /*------------------------------------- SDMMC Configuration ------------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SDMMC) == RCC_PERIPHCLK_SDMMC) - { - /* Check the parameters */ - assert_param(IS_RCC_SDMMC(PeriphClkInit->SdmmcClockSelection)); - - switch (PeriphClkInit->SdmmcClockSelection) - { - case RCC_SDMMCCLKSOURCE_PLL: /* PLL is used as clock source for SDMMC*/ - /* Enable SDMMC Clock output generated form System PLL . */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ); - - /* SDMMC clock source configuration done later after clock selection check */ - break; - - case RCC_SDMMCCLKSOURCE_PLL2: /* PLL2 is used as clock source for SDMMC*/ - - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE); - - /* SDMMC clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - break; - } - - if (ret == HAL_OK) - { - /* Set the source of SDMMC clock*/ - __HAL_RCC_SDMMC_CONFIG(PeriphClkInit->SdmmcClockSelection); - } - else - { - /* set overall return value */ - status = ret; - } - } - -#if defined(LTDC) - /*-------------------------------------- LTDC Configuration -----------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LTDC) == RCC_PERIPHCLK_LTDC) - { - if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK) - { - status = HAL_ERROR; - } - } -#endif /* LTDC */ - - /*------------------------------ RNG Configuration -------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RNG) == RCC_PERIPHCLK_RNG) - { - - switch (PeriphClkInit->RngClockSelection) - { - case RCC_RNGCLKSOURCE_PLL: /* PLL is used as clock source for RNG*/ - /* Enable RNG Clock output generated form System RNG . */ - __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ); - - /* RNG clock source configuration done later after clock selection check */ - break; - - case RCC_RNGCLKSOURCE_LSE: /* LSE is used as clock source for RNG*/ - - /* RNG clock source configuration done later after clock selection check */ - break; - - case RCC_RNGCLKSOURCE_LSI: /* LSI is used as clock source for RNG*/ - - /* RNG clock source configuration done later after clock selection check */ - break; - case RCC_RNGCLKSOURCE_HSI48: - /* HSI48 oscillator is used as source of RNG clock */ - /* RNG clock source configuration done later after clock selection check */ - break; - - default: - ret = HAL_ERROR; - break; - } - - if (ret == HAL_OK) - { - /* Set the source of RNG clock*/ - __HAL_RCC_RNG_CONFIG(PeriphClkInit->RngClockSelection); - } - else - { - /* set overall return value */ - status = ret; - } - - } - - /*------------------------------ SWPMI1 Configuration ------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SWPMI1) == RCC_PERIPHCLK_SWPMI1) - { - /* Check the parameters */ - assert_param(IS_RCC_SWPMI1CLKSOURCE(PeriphClkInit->Swpmi1ClockSelection)); - - /* Configure the SWPMI1 interface clock source */ - __HAL_RCC_SWPMI1_CONFIG(PeriphClkInit->Swpmi1ClockSelection); - } -#if defined(HRTIM1) - /*------------------------------ HRTIM1 clock Configuration ----------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_HRTIM1) == RCC_PERIPHCLK_HRTIM1) - { - /* Check the parameters */ - assert_param(IS_RCC_HRTIM1CLKSOURCE(PeriphClkInit->Hrtim1ClockSelection)); - - /* Configure the HRTIM1 clock source */ - __HAL_RCC_HRTIM1_CONFIG(PeriphClkInit->Hrtim1ClockSelection); - } -#endif /*HRTIM1*/ - /*------------------------------ DFSDM1 Configuration ------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_DFSDM1) == RCC_PERIPHCLK_DFSDM1) - { - /* Check the parameters */ - assert_param(IS_RCC_DFSDM1CLKSOURCE(PeriphClkInit->Dfsdm1ClockSelection)); - - /* Configure the DFSDM1 interface clock source */ - __HAL_RCC_DFSDM1_CONFIG(PeriphClkInit->Dfsdm1ClockSelection); - } - -#if defined(DFSDM2_BASE) - /*------------------------------ DFSDM2 Configuration ------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_DFSDM2) == RCC_PERIPHCLK_DFSDM2) - { - /* Check the parameters */ - assert_param(IS_RCC_DFSDM2CLKSOURCE(PeriphClkInit->Dfsdm2ClockSelection)); - - /* Configure the DFSDM2 interface clock source */ - __HAL_RCC_DFSDM2_CONFIG(PeriphClkInit->Dfsdm2ClockSelection); - } -#endif /* DFSDM2 */ - - /*------------------------------------ TIM configuration --------------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_TIM) == RCC_PERIPHCLK_TIM) - { - /* Check the parameters */ - assert_param(IS_RCC_TIMPRES(PeriphClkInit->TIMPresSelection)); - - /* Configure Timer Prescaler */ - __HAL_RCC_TIMCLKPRESCALER(PeriphClkInit->TIMPresSelection); - } - - /*------------------------------------ CKPER configuration --------------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CKPER) == RCC_PERIPHCLK_CKPER) - { - /* Check the parameters */ - assert_param(IS_RCC_CLKPSOURCE(PeriphClkInit->CkperClockSelection)); - - /* Configure the CKPER clock source */ - __HAL_RCC_CLKP_CONFIG(PeriphClkInit->CkperClockSelection); - } - - /*------------------------------ CEC Configuration ------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CEC) == RCC_PERIPHCLK_CEC) - { - /* Check the parameters */ - assert_param(IS_RCC_CECCLKSOURCE(PeriphClkInit->CecClockSelection)); - - /* Configure the CEC interface clock source */ - __HAL_RCC_CEC_CONFIG(PeriphClkInit->CecClockSelection); - } - - /*---------------------------- PLL2 configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVP) == RCC_PERIPHCLK_PLL2_DIVP) - { - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE); - - if (ret == HAL_OK) - { - /*Nothing to do*/ - } - else - { - /* set overall return value */ - status = ret; - } - } - - - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVQ) == RCC_PERIPHCLK_PLL2_DIVQ) - { - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE); - - if (ret == HAL_OK) - { - /*Nothing to do*/ - } - else - { - /* set overall return value */ - status = ret; - } - } - - - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVR) == RCC_PERIPHCLK_PLL2_DIVR) - { - ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE); - - if (ret == HAL_OK) - { - /*Nothing to do*/ - } - else - { - /* set overall return value */ - status = ret; - } - } - - - /*---------------------------- PLL3 configuration -------------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVP) == RCC_PERIPHCLK_PLL3_DIVP) - { - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE); - - if (ret == HAL_OK) - { - /*Nothing to do*/ - } - else - { - /* set overall return value */ - status = ret; - } - } - - - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVQ) == RCC_PERIPHCLK_PLL3_DIVQ) - { - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE); - - if (ret == HAL_OK) - { - /*Nothing to do*/ - } - else - { - /* set overall return value */ - status = ret; - } - } - - - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVR) == RCC_PERIPHCLK_PLL3_DIVR) - { - ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE); - - if (ret == HAL_OK) - { - /*Nothing to do*/ - } - else - { - /* set overall return value */ - status = ret; - } - } - - if (status == HAL_OK) - { - return HAL_OK; - } - return HAL_ERROR; -} - -/** - * @brief Get the RCC_ClkInitStruct according to the internal RCC configuration registers. - * @param PeriphClkInit: pointer to an RCC_PeriphCLKInitTypeDef structure that - * returns the configuration information for the Extended Peripherals clocks : - * (SDMMC, CKPER, FMC, QSPI*, OSPI*, DSI*, SPI45, SPDIF, DFSDM1, DFSDM2*, FDCAN, SWPMI, SAI23*, SAI1, SPI123, - * USART234578, USART16, RNG, HRTIM1*, I2C123 (I2C1235*), USB, CEC, LPTIM1, LPUART1, I2C4, LPTIM2, LPTIM345, ADC. - * SAI4A*, SAI4B*, SPI6, RTC, TIM). - * @retval None - * - * (*) : Available on some STM32H7 lines only. - */ -void HAL_RCCEx_GetPeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) -{ - /* Set all possible values for the extended clock type parameter------------*/ - PeriphClkInit->PeriphClockSelection = - RCC_PERIPHCLK_USART16 | RCC_PERIPHCLK_USART234578 | RCC_PERIPHCLK_LPUART1 | - RCC_PERIPHCLK_I2C4 | RCC_PERIPHCLK_LPTIM1 | RCC_PERIPHCLK_LPTIM2 | RCC_PERIPHCLK_LPTIM345 | - RCC_PERIPHCLK_SAI1 | RCC_PERIPHCLK_SPI123 | RCC_PERIPHCLK_SPI45 | RCC_PERIPHCLK_SPI6 | - RCC_PERIPHCLK_FDCAN | RCC_PERIPHCLK_SDMMC | RCC_PERIPHCLK_RNG | RCC_PERIPHCLK_USB | - RCC_PERIPHCLK_ADC | RCC_PERIPHCLK_SWPMI1 | RCC_PERIPHCLK_DFSDM1 | RCC_PERIPHCLK_RTC | - RCC_PERIPHCLK_CEC | RCC_PERIPHCLK_FMC | RCC_PERIPHCLK_SPDIFRX | RCC_PERIPHCLK_TIM | - RCC_PERIPHCLK_CKPER; - -#if defined(I2C5) - PeriphClkInit->PeriphClockSelection |= RCC_PERIPHCLK_I2C1235; -#else - PeriphClkInit->PeriphClockSelection |= RCC_PERIPHCLK_I2C123; -#endif /*I2C5*/ -#if defined(RCC_CDCCIP1R_SAI2ASEL) - PeriphClkInit->PeriphClockSelection |= RCC_PERIPHCLK_SAI2A; -#endif /* RCC_CDCCIP1R_SAI2ASEL */ -#if defined(RCC_CDCCIP1R_SAI2BSEL) - PeriphClkInit->PeriphClockSelection |= RCC_PERIPHCLK_SAI2B; -#endif /* RCC_CDCCIP1R_SAI2BSEL */ -#if defined(SAI3) - PeriphClkInit->PeriphClockSelection |= RCC_PERIPHCLK_SAI23; -#endif /* SAI3 */ -#if defined(SAI4) - PeriphClkInit->PeriphClockSelection |= RCC_PERIPHCLK_SAI4A; - PeriphClkInit->PeriphClockSelection |= RCC_PERIPHCLK_SAI4B; -#endif /* SAI4 */ -#if defined(DFSDM2_BASE) - PeriphClkInit->PeriphClockSelection |= RCC_PERIPHCLK_DFSDM2; -#endif /* DFSDM2 */ -#if defined(QUADSPI) - PeriphClkInit->PeriphClockSelection |= RCC_PERIPHCLK_QSPI; -#endif /* QUADSPI */ -#if defined(OCTOSPI1) || defined(OCTOSPI2) - PeriphClkInit->PeriphClockSelection |= RCC_PERIPHCLK_OSPI; -#endif /* OCTOSPI1 || OCTOSPI2 */ -#if defined(HRTIM1) - PeriphClkInit->PeriphClockSelection |= RCC_PERIPHCLK_HRTIM1; -#endif /* HRTIM1 */ -#if defined(LTDC) - PeriphClkInit->PeriphClockSelection |= RCC_PERIPHCLK_LTDC; -#endif /* LTDC */ -#if defined(DSI) - PeriphClkInit->PeriphClockSelection |= RCC_PERIPHCLK_DSI; -#endif /* DSI */ - - /* Get the PLL3 Clock configuration -----------------------------------------------*/ - PeriphClkInit->PLL3.PLL3M = (uint32_t)((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM3) >> RCC_PLLCKSELR_DIVM3_Pos); - PeriphClkInit->PLL3.PLL3N = (uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_N3) >> RCC_PLL3DIVR_N3_Pos) + 1U; - PeriphClkInit->PLL3.PLL3R = (uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_R3) >> RCC_PLL3DIVR_R3_Pos) + 1U; - PeriphClkInit->PLL3.PLL3P = (uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_P3) >> RCC_PLL3DIVR_P3_Pos) + 1U; - PeriphClkInit->PLL3.PLL3Q = (uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_Q3) >> RCC_PLL3DIVR_Q3_Pos) + 1U; - PeriphClkInit->PLL3.PLL3RGE = (uint32_t)((RCC->PLLCFGR & RCC_PLLCFGR_PLL3RGE) >> RCC_PLLCFGR_PLL3RGE_Pos); - PeriphClkInit->PLL3.PLL3VCOSEL = (uint32_t)((RCC->PLLCFGR & RCC_PLLCFGR_PLL3VCOSEL) >> RCC_PLLCFGR_PLL3VCOSEL_Pos); - - /* Get the PLL2 Clock configuration -----------------------------------------------*/ - PeriphClkInit->PLL2.PLL2M = (uint32_t)((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM2) >> RCC_PLLCKSELR_DIVM2_Pos); - PeriphClkInit->PLL2.PLL2N = (uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_N2) >> RCC_PLL2DIVR_N2_Pos) + 1U; - PeriphClkInit->PLL2.PLL2R = (uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_R2) >> RCC_PLL2DIVR_R2_Pos) + 1U; - PeriphClkInit->PLL2.PLL2P = (uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_P2) >> RCC_PLL2DIVR_P2_Pos) + 1U; - PeriphClkInit->PLL2.PLL2Q = (uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_Q2) >> RCC_PLL2DIVR_Q2_Pos) + 1U; - PeriphClkInit->PLL2.PLL2RGE = (uint32_t)((RCC->PLLCFGR & RCC_PLLCFGR_PLL2RGE) >> RCC_PLLCFGR_PLL2RGE_Pos); - PeriphClkInit->PLL2.PLL2VCOSEL = (uint32_t)((RCC->PLLCFGR & RCC_PLLCFGR_PLL2VCOSEL) >> RCC_PLLCFGR_PLL2VCOSEL_Pos); - - /* Get the USART1 configuration --------------------------------------------*/ - PeriphClkInit->Usart16ClockSelection = __HAL_RCC_GET_USART16_SOURCE(); - /* Get the USART2/3/4/5/7/8 clock source -----------------------------------*/ - PeriphClkInit->Usart234578ClockSelection = __HAL_RCC_GET_USART234578_SOURCE(); - /* Get the LPUART1 clock source --------------------------------------------*/ - PeriphClkInit->Lpuart1ClockSelection = __HAL_RCC_GET_LPUART1_SOURCE(); -#if defined(I2C5) - /* Get the I2C1/2/3/5 clock source -----------------------------------------*/ - PeriphClkInit->I2c1235ClockSelection = __HAL_RCC_GET_I2C1_SOURCE(); -#else - /* Get the I2C1/2/3 clock source -------------------------------------------*/ - PeriphClkInit->I2c123ClockSelection = __HAL_RCC_GET_I2C1_SOURCE(); -#endif /*I2C5*/ - /* Get the LPTIM1 clock source ---------------------------------------------*/ - PeriphClkInit->Lptim1ClockSelection = __HAL_RCC_GET_LPTIM1_SOURCE(); - /* Get the LPTIM2 clock source ---------------------------------------------*/ - PeriphClkInit->Lptim2ClockSelection = __HAL_RCC_GET_LPTIM2_SOURCE(); - /* Get the LPTIM3/4/5 clock source -----------------------------------------*/ - PeriphClkInit->Lptim345ClockSelection = __HAL_RCC_GET_LPTIM345_SOURCE(); - /* Get the SAI1 clock source -----------------------------------------------*/ - PeriphClkInit->Sai1ClockSelection = __HAL_RCC_GET_SAI1_SOURCE(); -#if defined(SAI3) - /* Get the SAI2/3 clock source ---------------------------------------------*/ - PeriphClkInit->Sai23ClockSelection = __HAL_RCC_GET_SAI23_SOURCE(); -#endif /*SAI3*/ -#if defined(RCC_CDCCIP1R_SAI2ASEL_0) - /* Get the SAI2A clock source ---------------------------------------------*/ - PeriphClkInit->Sai2AClockSelection = __HAL_RCC_GET_SAI2A_SOURCE(); -#endif /*SAI2A*/ -#if defined(RCC_CDCCIP1R_SAI2BSEL_0) - /* Get the SAI2B clock source ---------------------------------------------*/ - PeriphClkInit->Sai2BClockSelection = __HAL_RCC_GET_SAI2B_SOURCE(); -#endif /*SAI2B*/ -#if defined(SAI4) - /* Get the SAI4A clock source ----------------------------------------------*/ - PeriphClkInit->Sai4AClockSelection = __HAL_RCC_GET_SAI4A_SOURCE(); - /* Get the SAI4B clock source ----------------------------------------------*/ - PeriphClkInit->Sai4BClockSelection = __HAL_RCC_GET_SAI4B_SOURCE(); -#endif /*SAI4*/ - /* Get the RTC clock source ------------------------------------------------*/ - PeriphClkInit->RTCClockSelection = __HAL_RCC_GET_RTC_SOURCE(); - /* Get the USB clock source ------------------------------------------------*/ - PeriphClkInit->UsbClockSelection = __HAL_RCC_GET_USB_SOURCE(); - /* Get the SDMMC clock source ----------------------------------------------*/ - PeriphClkInit->SdmmcClockSelection = __HAL_RCC_GET_SDMMC_SOURCE(); - /* Get the RNG clock source ------------------------------------------------*/ - PeriphClkInit->RngClockSelection = __HAL_RCC_GET_RNG_SOURCE(); -#if defined(HRTIM1) - /* Get the HRTIM1 clock source ---------------------------------------------*/ - PeriphClkInit->Hrtim1ClockSelection = __HAL_RCC_GET_HRTIM1_SOURCE(); -#endif /* HRTIM1 */ - /* Get the ADC clock source ------------------------------------------------*/ - PeriphClkInit->AdcClockSelection = __HAL_RCC_GET_ADC_SOURCE(); - /* Get the SWPMI1 clock source ---------------------------------------------*/ - PeriphClkInit->Swpmi1ClockSelection = __HAL_RCC_GET_SWPMI1_SOURCE(); - /* Get the DFSDM1 clock source ---------------------------------------------*/ - PeriphClkInit->Dfsdm1ClockSelection = __HAL_RCC_GET_DFSDM1_SOURCE(); -#if defined(DFSDM2_BASE) - /* Get the DFSDM2 clock source ---------------------------------------------*/ - PeriphClkInit->Dfsdm2ClockSelection = __HAL_RCC_GET_DFSDM2_SOURCE(); -#endif /* DFSDM2 */ - /* Get the SPDIFRX clock source --------------------------------------------*/ - PeriphClkInit->SpdifrxClockSelection = __HAL_RCC_GET_SPDIFRX_SOURCE(); - /* Get the SPI1/2/3 clock source -------------------------------------------*/ - PeriphClkInit->Spi123ClockSelection = __HAL_RCC_GET_SPI123_SOURCE(); - /* Get the SPI4/5 clock source ---------------------------------------------*/ - PeriphClkInit->Spi45ClockSelection = __HAL_RCC_GET_SPI45_SOURCE(); - /* Get the SPI6 clock source -----------------------------------------------*/ - PeriphClkInit->Spi6ClockSelection = __HAL_RCC_GET_SPI6_SOURCE(); - /* Get the FDCAN clock source ----------------------------------------------*/ - PeriphClkInit->FdcanClockSelection = __HAL_RCC_GET_FDCAN_SOURCE(); - /* Get the CEC clock source ------------------------------------------------*/ - PeriphClkInit->CecClockSelection = __HAL_RCC_GET_CEC_SOURCE(); - /* Get the FMC clock source ------------------------------------------------*/ - PeriphClkInit->FmcClockSelection = __HAL_RCC_GET_FMC_SOURCE(); -#if defined(QUADSPI) - /* Get the QSPI clock source -----------------------------------------------*/ - PeriphClkInit->QspiClockSelection = __HAL_RCC_GET_QSPI_SOURCE(); -#endif /* QUADSPI */ -#if defined(OCTOSPI1) || defined(OCTOSPI2) - /* Get the OSPI clock source -----------------------------------------------*/ - PeriphClkInit->OspiClockSelection = __HAL_RCC_GET_OSPI_SOURCE(); -#endif /* OCTOSPI1 || OCTOSPI2 */ - -#if defined(DSI) - /* Get the DSI clock source ------------------------------------------------*/ - PeriphClkInit->DsiClockSelection = __HAL_RCC_GET_DSI_SOURCE(); -#endif /*DSI*/ - - /* Get the CKPER clock source ----------------------------------------------*/ - PeriphClkInit->CkperClockSelection = __HAL_RCC_GET_CLKP_SOURCE(); - - /* Get the TIM Prescaler configuration -------------------------------------*/ - if ((RCC->CFGR & RCC_CFGR_TIMPRE) == 0U) - { - PeriphClkInit->TIMPresSelection = RCC_TIMPRES_DESACTIVATED; - } - else - { - PeriphClkInit->TIMPresSelection = RCC_TIMPRES_ACTIVATED; - } -} - -/** - * @brief Return the peripheral clock frequency for a given peripheral(SAI..) - * @note Return 0 if peripheral clock identifier not managed by this API - * @param PeriphClk: Peripheral clock identifier - * This parameter can be one of the following values: - * @arg RCC_PERIPHCLK_SAI1 : SAI1 peripheral clock - * @arg RCC_PERIPHCLK_SAI23 : SAI2/3 peripheral clock (*) - * @arg RCC_PERIPHCLK_SAI2A : SAI2A peripheral clock (*) - * @arg RCC_PERIPHCLK_SAI2B : SAI2B peripheral clock (*) - * @arg RCC_PERIPHCLK_SAI4A : SAI4A peripheral clock (*) - * @arg RCC_PERIPHCLK_SAI4B : SAI4B peripheral clock (*) - * @arg RCC_PERIPHCLK_SPI123: SPI1/2/3 peripheral clock - * @arg RCC_PERIPHCLK_ADC : ADC peripheral clock - * @arg RCC_PERIPHCLK_SDMMC : SDMMC peripheral clock - * @arg RCC_PERIPHCLK_SPI6 : SPI6 peripheral clock - * @retval Frequency in KHz - * - * (*) : Available on some STM32H7 lines only. - */ -uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint64_t PeriphClk) -{ - PLL1_ClocksTypeDef pll1_clocks; - PLL2_ClocksTypeDef pll2_clocks; - PLL3_ClocksTypeDef pll3_clocks; - - /* This variable is used to store the clock frequency (value in Hz) */ - uint32_t frequency; - /* This variable is used to store the SAI and CKP clock source */ - uint32_t saiclocksource; - uint32_t ckpclocksource; - uint32_t srcclk; - - if (PeriphClk == RCC_PERIPHCLK_SAI1) - { - - saiclocksource = __HAL_RCC_GET_SAI1_SOURCE(); - - switch (saiclocksource) - { - case RCC_SAI1CLKSOURCE_PLL: /* PLL1 is the clock source for SAI1 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY)) - { - HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks); - frequency = pll1_clocks.PLL1_Q_Frequency; - } - else - { - frequency = 0; - } - break; - } - case RCC_SAI1CLKSOURCE_PLL2: /* PLL2 is the clock source for SAI1 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY)) - { - HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks); - frequency = pll2_clocks.PLL2_P_Frequency; - } - else - { - frequency = 0; - } - break; - } - - case RCC_SAI1CLKSOURCE_PLL3: /* PLL3 is the clock source for SAI1 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY)) - { - HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks); - frequency = pll3_clocks.PLL3_P_Frequency; - } - else - { - frequency = 0; - } - break; - } - - case RCC_SAI1CLKSOURCE_CLKP: /* CKPER is the clock source for SAI1*/ - { - - ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE(); - - if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI)) - { - /* In Case the CKPER Source is HSI */ - frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3)); - } - - else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI)) - { - /* In Case the CKPER Source is CSI */ - frequency = CSI_VALUE; - } - - else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE)) - { - /* In Case the CKPER Source is HSE */ - frequency = HSE_VALUE; - } - - else - { - /* In Case the CKPER is disabled*/ - frequency = 0; - } - - break; - } - - case (RCC_SAI1CLKSOURCE_PIN): /* External clock is the clock source for SAI1 */ - { - frequency = EXTERNAL_CLOCK_VALUE; - break; - } - default : - { - frequency = 0; - break; - } - } - } - -#if defined(SAI3) - else if (PeriphClk == RCC_PERIPHCLK_SAI23) - { - - saiclocksource = __HAL_RCC_GET_SAI23_SOURCE(); - - switch (saiclocksource) - { - case RCC_SAI23CLKSOURCE_PLL: /* PLL1 is the clock source for SAI2/3 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY)) - { - HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks); - frequency = pll1_clocks.PLL1_Q_Frequency; - } - else - { - frequency = 0; - } - break; - } - case RCC_SAI23CLKSOURCE_PLL2: /* PLL2 is the clock source for SAI2/3 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY)) - { - HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks); - frequency = pll2_clocks.PLL2_P_Frequency; - } - else - { - frequency = 0; - } - break; - } - - case RCC_SAI23CLKSOURCE_PLL3: /* PLL3 is the clock source for SAI2/3 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY)) - { - HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks); - frequency = pll3_clocks.PLL3_P_Frequency; - } - else - { - frequency = 0; - } - break; - } - - case RCC_SAI23CLKSOURCE_CLKP: /* CKPER is the clock source for SAI2/3 */ - { - - ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE(); - - if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI)) - { - /* In Case the CKPER Source is HSI */ - frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3)); - } - - else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI)) - { - /* In Case the CKPER Source is CSI */ - frequency = CSI_VALUE; - } - - else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE)) - { - /* In Case the CKPER Source is HSE */ - frequency = HSE_VALUE; - } - - else - { - /* In Case the CKPER is disabled*/ - frequency = 0; - } - - break; - } - - case (RCC_SAI23CLKSOURCE_PIN): /* External clock is the clock source for SAI2/3 */ - { - frequency = EXTERNAL_CLOCK_VALUE; - break; - } - default : - { - frequency = 0; - break; - } - } - } -#endif /* SAI3 */ - -#if defined(RCC_CDCCIP1R_SAI2ASEL) - - else if (PeriphClk == RCC_PERIPHCLK_SAI2A) - { - saiclocksource = __HAL_RCC_GET_SAI2A_SOURCE(); - - switch (saiclocksource) - { - case RCC_SAI2ACLKSOURCE_PLL: /* PLL1 is the clock source for SAI2A */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY)) - { - HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks); - frequency = pll1_clocks.PLL1_Q_Frequency; - } - else - { - frequency = 0; - } - break; - } - case RCC_SAI2ACLKSOURCE_PLL2: /* PLLI2 is the clock source for SAI2A */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY)) - { - HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks); - frequency = pll2_clocks.PLL2_P_Frequency; - } - else - { - frequency = 0; - } - break; - } - - case RCC_SAI2ACLKSOURCE_PLL3: /* PLLI3 is the clock source for SAI2A */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY)) - { - HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks); - frequency = pll3_clocks.PLL3_P_Frequency; - } - else - { - frequency = 0; - } - break; - } - - case RCC_SAI2ACLKSOURCE_CLKP: /* CKPER is the clock source for SAI2A */ - { - - ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE(); - - if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI)) - { - /* In Case the CKPER Source is HSI */ - frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3)); - } - - else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI)) - { - /* In Case the CKPER Source is CSI */ - frequency = CSI_VALUE; - } - - else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE)) - { - /* In Case the CKPER Source is HSE */ - frequency = HSE_VALUE; - } - - else - { - /* In Case the CKPER is disabled*/ - frequency = 0; - } - - break; - } - - case (RCC_SAI2ACLKSOURCE_PIN): /* External clock is the clock source for SAI2A */ - { - frequency = EXTERNAL_CLOCK_VALUE; - break; - } - - default : - { - frequency = 0; - break; - } - } - - } -#endif - -#if defined(RCC_CDCCIP1R_SAI2BSEL_0) - else if (PeriphClk == RCC_PERIPHCLK_SAI2B) - { - - saiclocksource = __HAL_RCC_GET_SAI2B_SOURCE(); - - switch (saiclocksource) - { - case RCC_SAI2BCLKSOURCE_PLL: /* PLL1 is the clock source for SAI2B */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY)) - { - HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks); - frequency = pll1_clocks.PLL1_Q_Frequency; - } - else - { - frequency = 0; - } - break; - } - case RCC_SAI2BCLKSOURCE_PLL2: /* PLLI2 is the clock source for SAI2B */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY)) - { - HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks); - frequency = pll2_clocks.PLL2_P_Frequency; - } - else - { - frequency = 0; - } - break; - } - - case RCC_SAI2BCLKSOURCE_PLL3: /* PLLI3 is the clock source for SAI2B */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY)) - { - HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks); - frequency = pll3_clocks.PLL3_P_Frequency; - } - else - { - frequency = 0; - } - break; - } - - case RCC_SAI2BCLKSOURCE_CLKP: /* CKPER is the clock source for SAI2B*/ - { - - ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE(); - - if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI)) - { - /* In Case the CKPER Source is HSI */ - frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3)); - } - - else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI)) - { - /* In Case the CKPER Source is CSI */ - frequency = CSI_VALUE; - } - - else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE)) - { - /* In Case the CKPER Source is HSE */ - frequency = HSE_VALUE; - } - - else - { - /* In Case the CKPER is disabled*/ - frequency = 0; - } - break; - } - - case (RCC_SAI2BCLKSOURCE_PIN): /* External clock is the clock source for SAI2B */ - { - frequency = EXTERNAL_CLOCK_VALUE; - break; - } - - default : - { - frequency = 0; - break; - } - } - } -#endif - -#if defined(SAI4) - else if (PeriphClk == RCC_PERIPHCLK_SAI4A) - { - - saiclocksource = __HAL_RCC_GET_SAI4A_SOURCE(); - - switch (saiclocksource) - { - case RCC_SAI4ACLKSOURCE_PLL: /* PLL1 is the clock source for SAI4A */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY)) - { - HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks); - frequency = pll1_clocks.PLL1_Q_Frequency; - } - else - { - frequency = 0; - } - break; - } - case RCC_SAI4ACLKSOURCE_PLL2: /* PLLI2 is the clock source for SAI4A */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY)) - { - HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks); - frequency = pll2_clocks.PLL2_P_Frequency; - } - else - { - frequency = 0; - } - break; - } - - case RCC_SAI4ACLKSOURCE_PLL3: /* PLLI3 is the clock source for SAI4A */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY)) - { - HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks); - frequency = pll3_clocks.PLL3_P_Frequency; - } - else - { - frequency = 0; - } - break; - } - - case RCC_SAI4ACLKSOURCE_CLKP: /* CKPER is the clock source for SAI4A*/ - { - - ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE(); - - if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI)) - { - /* In Case the CKPER Source is HSI */ - frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3)); - } - - else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI)) - { - /* In Case the CKPER Source is CSI */ - frequency = CSI_VALUE; - } - - else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE)) - { - /* In Case the CKPER Source is HSE */ - frequency = HSE_VALUE; - } - - else - { - /* In Case the CKPER is disabled*/ - frequency = 0; - } - - break; - } - - case RCC_SAI4ACLKSOURCE_PIN: /* External clock is the clock source for SAI4A */ - { - frequency = EXTERNAL_CLOCK_VALUE; - break; - } - - default : - { - frequency = 0; - break; - } - } - } - - else if (PeriphClk == RCC_PERIPHCLK_SAI4B) - { - - saiclocksource = __HAL_RCC_GET_SAI4B_SOURCE(); - - switch (saiclocksource) - { - case RCC_SAI4BCLKSOURCE_PLL: /* PLL1 is the clock source for SAI4B */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY)) - { - HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks); - frequency = pll1_clocks.PLL1_Q_Frequency; - } - else - { - frequency = 0; - } - break; - } - case RCC_SAI4BCLKSOURCE_PLL2: /* PLLI2 is the clock source for SAI4B */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY)) - { - HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks); - frequency = pll2_clocks.PLL2_P_Frequency; - } - else - { - frequency = 0; - } - break; - } - - case RCC_SAI4BCLKSOURCE_PLL3: /* PLLI3 is the clock source for SAI4B */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY)) - { - HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks); - frequency = pll3_clocks.PLL3_P_Frequency; - } - else - { - frequency = 0; - } - break; - } - - case RCC_SAI4BCLKSOURCE_CLKP: /* CKPER is the clock source for SAI4B*/ - { - - ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE(); - - if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI)) - { - /* In Case the CKPER Source is HSI */ - frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3)); - } - - else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI)) - { - /* In Case the CKPER Source is CSI */ - frequency = CSI_VALUE; - } - - else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE)) - { - /* In Case the CKPER Source is HSE */ - frequency = HSE_VALUE; - } - - else - { - /* In Case the CKPER is disabled*/ - frequency = 0; - } - - break; - } - - case RCC_SAI4BCLKSOURCE_PIN: /* External clock is the clock source for SAI4B */ - { - frequency = EXTERNAL_CLOCK_VALUE; - break; - } - - default : - { - frequency = 0; - break; - } - } - } -#endif /*SAI4*/ - else if (PeriphClk == RCC_PERIPHCLK_SPI123) - { - /* Get SPI1/2/3 clock source */ - srcclk = __HAL_RCC_GET_SPI123_SOURCE(); - - switch (srcclk) - { - case RCC_SPI123CLKSOURCE_PLL: /* PLL1 is the clock source for SPI123 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY)) - { - HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks); - frequency = pll1_clocks.PLL1_Q_Frequency; - } - else - { - frequency = 0; - } - break; - } - case RCC_SPI123CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI123 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY)) - { - HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks); - frequency = pll2_clocks.PLL2_P_Frequency; - } - else - { - frequency = 0; - } - break; - } - - case RCC_SPI123CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI123 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY)) - { - HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks); - frequency = pll3_clocks.PLL3_P_Frequency; - } - else - { - frequency = 0; - } - break; - } - - case RCC_SPI123CLKSOURCE_CLKP: /* CKPER is the clock source for SPI123 */ - { - - ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE(); - - if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI)) - { - /* In Case the CKPER Source is HSI */ - frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3)); - } - - else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI)) - { - /* In Case the CKPER Source is CSI */ - frequency = CSI_VALUE; - } - - else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE)) - { - /* In Case the CKPER Source is HSE */ - frequency = HSE_VALUE; - } - - else - { - /* In Case the CKPER is disabled*/ - frequency = 0; - } - - break; - } - - case (RCC_SPI123CLKSOURCE_PIN): /* External clock is the clock source for I2S */ - { - frequency = EXTERNAL_CLOCK_VALUE; - break; - } - default : - { - frequency = 0; - break; - } - } - } - else if (PeriphClk == RCC_PERIPHCLK_SPI45) - { - /* Get SPI45 clock source */ - srcclk = __HAL_RCC_GET_SPI45_SOURCE(); - switch (srcclk) - { - case RCC_SPI45CLKSOURCE_PCLK2: /* CD/D2 PCLK2 is the clock source for SPI4/5 */ - { - frequency = HAL_RCC_GetPCLK1Freq(); - break; - } - case RCC_SPI45CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI45 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY)) - { - HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks); - frequency = pll2_clocks.PLL2_Q_Frequency; - } - else - { - frequency = 0; - } - break; - } - case RCC_SPI45CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI45 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY)) - { - HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks); - frequency = pll3_clocks.PLL3_Q_Frequency; - } - else - { - frequency = 0; - } - break; - } - case RCC_SPI45CLKSOURCE_HSI: /* HSI is the clock source for SPI45 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) - { - frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3)); - } - else - { - frequency = 0; - } - break; - } - case RCC_SPI45CLKSOURCE_CSI: /* CSI is the clock source for SPI45 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) - { - frequency = CSI_VALUE; - } - else - { - frequency = 0; - } - break; - } - case RCC_SPI45CLKSOURCE_HSE: /* HSE is the clock source for SPI45 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) - { - frequency = HSE_VALUE; - } - else - { - frequency = 0; - } - break; - } - default : - { - frequency = 0; - break; - } - } - } - else if (PeriphClk == RCC_PERIPHCLK_ADC) - { - /* Get ADC clock source */ - srcclk = __HAL_RCC_GET_ADC_SOURCE(); - - switch (srcclk) - { - case RCC_ADCCLKSOURCE_PLL2: - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY)) - { - HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks); - frequency = pll2_clocks.PLL2_P_Frequency; - } - else - { - frequency = 0; - } - break; - } - case RCC_ADCCLKSOURCE_PLL3: - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY)) - { - HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks); - frequency = pll3_clocks.PLL3_R_Frequency; - } - else - { - frequency = 0; - } - break; - } - - case RCC_ADCCLKSOURCE_CLKP: - { - - ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE(); - - if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI)) - { - /* In Case the CKPER Source is HSI */ - frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3)); - } - - else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI)) - { - /* In Case the CKPER Source is CSI */ - frequency = CSI_VALUE; - } - - else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE)) - { - /* In Case the CKPER Source is HSE */ - frequency = HSE_VALUE; - } - - else - { - /* In Case the CKPER is disabled*/ - frequency = 0; - } - - break; - } - - default : - { - frequency = 0; - break; - } - } - } - else if (PeriphClk == RCC_PERIPHCLK_SDMMC) - { - /* Get SDMMC clock source */ - srcclk = __HAL_RCC_GET_SDMMC_SOURCE(); - - switch (srcclk) - { - case RCC_SDMMCCLKSOURCE_PLL: /* PLL1 is the clock source for SDMMC */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY)) - { - HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks); - frequency = pll1_clocks.PLL1_Q_Frequency; - } - else - { - frequency = 0; - } - break; - } - case RCC_SDMMCCLKSOURCE_PLL2: /* PLL2 is the clock source for SDMMC */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY)) - { - HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks); - frequency = pll2_clocks.PLL2_R_Frequency; - } - else - { - frequency = 0; - } - break; - } - - default : - { - frequency = 0; - break; - } - } - } - else if (PeriphClk == RCC_PERIPHCLK_SPI6) - { - /* Get SPI6 clock source */ - srcclk = __HAL_RCC_GET_SPI6_SOURCE(); - - switch (srcclk) - { - case RCC_SPI6CLKSOURCE_D3PCLK1: /* D3PCLK1 (PCLK4) is the clock source for SPI6 */ - { - frequency = HAL_RCCEx_GetD3PCLK1Freq(); - break; - } - case RCC_SPI6CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI6 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY)) - { - HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks); - frequency = pll2_clocks.PLL2_Q_Frequency; - } - else - { - frequency = 0; - } - break; - } - case RCC_SPI6CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI6 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY)) - { - HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks); - frequency = pll3_clocks.PLL3_Q_Frequency; - } - else - { - frequency = 0; - } - break; - } - case RCC_SPI6CLKSOURCE_HSI: /* HSI is the clock source for SPI6 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) - { - frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3)); - } - else - { - frequency = 0; - } - break; - } - case RCC_SPI6CLKSOURCE_CSI: /* CSI is the clock source for SPI6 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) - { - frequency = CSI_VALUE; - } - else - { - frequency = 0; - } - break; - } - case RCC_SPI6CLKSOURCE_HSE: /* HSE is the clock source for SPI6 */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) - { - frequency = HSE_VALUE; - } - else - { - frequency = 0; - } - break; - } -#if defined(RCC_SPI6CLKSOURCE_PIN) - case RCC_SPI6CLKSOURCE_PIN: /* External clock is the clock source for SPI6 */ - { - frequency = EXTERNAL_CLOCK_VALUE; - break; - } -#endif /* RCC_SPI6CLKSOURCE_PIN */ - default : - { - frequency = 0; - break; - } - } - } - else if (PeriphClk == RCC_PERIPHCLK_FDCAN) - { - /* Get FDCAN clock source */ - srcclk = __HAL_RCC_GET_FDCAN_SOURCE(); - - switch (srcclk) - { - case RCC_FDCANCLKSOURCE_HSE: /* HSE is the clock source for FDCAN */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) - { - frequency = HSE_VALUE; - } - else - { - frequency = 0; - } - break; - } - case RCC_FDCANCLKSOURCE_PLL: /* PLL is the clock source for FDCAN */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY)) - { - HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks); - frequency = pll1_clocks.PLL1_Q_Frequency; - } - else - { - frequency = 0; - } - break; - } - case RCC_FDCANCLKSOURCE_PLL2: /* PLL2 is the clock source for FDCAN */ - { - if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY)) - { - HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks); - frequency = pll2_clocks.PLL2_Q_Frequency; - } - else - { - frequency = 0; - } - break; - } - default : - { - frequency = 0; - break; - } - } - } - else - { - frequency = 0; - } - - return frequency; -} - - -/** - * @brief Returns the D1PCLK1 frequency - * @note Each time D1PCLK1 changes, this function must be called to update the - * right D1PCLK1 value. Otherwise, any configuration based on this function will be incorrect. - * @retval D1PCLK1 frequency - */ -uint32_t HAL_RCCEx_GetD1PCLK1Freq(void) -{ -#if defined(RCC_D1CFGR_D1PPRE) - /* Get HCLK source and Compute D1PCLK1 frequency ---------------------------*/ - return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1PPRE) >> RCC_D1CFGR_D1PPRE_Pos] & 0x1FU)); -#else - /* Get HCLK source and Compute D1PCLK1 frequency ---------------------------*/ - return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDPPRE) >> RCC_CDCFGR1_CDPPRE_Pos] & 0x1FU)); -#endif -} - -/** - * @brief Returns the D3PCLK1 frequency - * @note Each time D3PCLK1 changes, this function must be called to update the - * right D3PCLK1 value. Otherwise, any configuration based on this function will be incorrect. - * @retval D3PCLK1 frequency - */ -uint32_t HAL_RCCEx_GetD3PCLK1Freq(void) -{ -#if defined(RCC_D3CFGR_D3PPRE) - /* Get HCLK source and Compute D3PCLK1 frequency ---------------------------*/ - return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->D3CFGR & RCC_D3CFGR_D3PPRE) >> RCC_D3CFGR_D3PPRE_Pos] & 0x1FU)); -#else - /* Get HCLK source and Compute D3PCLK1 frequency ---------------------------*/ - return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE) >> RCC_SRDCFGR_SRDPPRE_Pos] & 0x1FU)); -#endif -} -/** -* @brief Returns the PLL2 clock frequencies :PLL2_P_Frequency,PLL2_R_Frequency and PLL2_Q_Frequency - * @note The PLL2 clock frequencies computed by this function is not the real - * frequency in the chip. It is calculated based on the predefined - * constant and the selected clock source: - * @note The function returns values based on HSE_VALUE, HSI_VALUE or CSI Value multiplied/divided by the PLL factors. - * @note This function can be used by the user application to compute the - * baud-rate for the communication peripherals or configure other parameters. - * - * @note Each time PLL2CLK changes, this function must be called to update the - * right PLL2CLK value. Otherwise, any configuration based on this function will be incorrect. - * @param PLL2_Clocks structure. - * @retval None - */ -void HAL_RCCEx_GetPLL2ClockFreq(PLL2_ClocksTypeDef *PLL2_Clocks) -{ - uint32_t pllsource, pll2m, pll2fracen, hsivalue; - float_t fracn2, pll2vco; - - /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLL2M) * PLL2N - PLL2xCLK = PLL2_VCO / PLL2x - */ - pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC); - pll2m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM2) >> 12); - pll2fracen = (RCC->PLLCFGR & RCC_PLLCFGR_PLL2FRACEN) >> RCC_PLLCFGR_PLL2FRACEN_Pos; - fracn2 = (float_t)(uint32_t)(pll2fracen * ((RCC->PLL2FRACR & RCC_PLL2FRACR_FRACN2) >> 3)); - - if (pll2m != 0U) - { - switch (pllsource) - { - - case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */ - - if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U) - { - hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3)); - pll2vco = ((float_t)hsivalue / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1); - } - else - { - pll2vco = ((float_t)HSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1); - } - break; - - case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */ - pll2vco = ((float_t)CSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1); - break; - - case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */ - pll2vco = ((float_t)HSE_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1); - break; - - default: - pll2vco = ((float_t)CSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1); - break; - } - PLL2_Clocks->PLL2_P_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_P2) >> 9) + (float_t)1)) ; - PLL2_Clocks->PLL2_Q_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_Q2) >> 16) + (float_t)1)) ; - PLL2_Clocks->PLL2_R_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_R2) >> 24) + (float_t)1)) ; - } - else - { - PLL2_Clocks->PLL2_P_Frequency = 0U; - PLL2_Clocks->PLL2_Q_Frequency = 0U; - PLL2_Clocks->PLL2_R_Frequency = 0U; - } -} - -/** -* @brief Returns the PLL3 clock frequencies :PLL3_P_Frequency,PLL3_R_Frequency and PLL3_Q_Frequency - * @note The PLL3 clock frequencies computed by this function is not the real - * frequency in the chip. It is calculated based on the predefined - * constant and the selected clock source: - * @note The function returns values based on HSE_VALUE, HSI_VALUE or CSI Value multiplied/divided by the PLL factors. - * @note This function can be used by the user application to compute the - * baud-rate for the communication peripherals or configure other parameters. - * - * @note Each time PLL3CLK changes, this function must be called to update the - * right PLL3CLK value. Otherwise, any configuration based on this function will be incorrect. - * @param PLL3_Clocks structure. - * @retval None - */ -void HAL_RCCEx_GetPLL3ClockFreq(PLL3_ClocksTypeDef *PLL3_Clocks) -{ - uint32_t pllsource, pll3m, pll3fracen, hsivalue; - float_t fracn3, pll3vco; - - /* PLL3_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLL3M) * PLL3N - PLL3xCLK = PLL3_VCO / PLLxR - */ - pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC); - pll3m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM3) >> 20) ; - pll3fracen = (RCC->PLLCFGR & RCC_PLLCFGR_PLL3FRACEN) >> RCC_PLLCFGR_PLL3FRACEN_Pos; - fracn3 = (float_t)(uint32_t)(pll3fracen * ((RCC->PLL3FRACR & RCC_PLL3FRACR_FRACN3) >> 3)); - - if (pll3m != 0U) - { - switch (pllsource) - { - case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */ - - if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U) - { - hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3)); - pll3vco = ((float_t)hsivalue / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1); - } - else - { - pll3vco = ((float_t)HSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1); - } - break; - case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */ - pll3vco = ((float_t)CSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1); - break; - - case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */ - pll3vco = ((float_t)HSE_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1); - break; - - default: - pll3vco = ((float_t)CSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1); - break; - } - PLL3_Clocks->PLL3_P_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_P3) >> 9) + (float_t)1)) ; - PLL3_Clocks->PLL3_Q_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_Q3) >> 16) + (float_t)1)) ; - PLL3_Clocks->PLL3_R_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_R3) >> 24) + (float_t)1)) ; - } - else - { - PLL3_Clocks->PLL3_P_Frequency = 0U; - PLL3_Clocks->PLL3_Q_Frequency = 0U; - PLL3_Clocks->PLL3_R_Frequency = 0U; - } - -} - -/** -* @brief Returns the PLL1 clock frequencies :PLL1_P_Frequency,PLL1_R_Frequency and PLL1_Q_Frequency - * @note The PLL1 clock frequencies computed by this function is not the real - * frequency in the chip. It is calculated based on the predefined - * constant and the selected clock source: - * @note The function returns values based on HSE_VALUE, HSI_VALUE or CSI Value multiplied/divided by the PLL factors. - * @note This function can be used by the user application to compute the - * baud-rate for the communication peripherals or configure other parameters. - * - * @note Each time PLL1CLK changes, this function must be called to update the - * right PLL1CLK value. Otherwise, any configuration based on this function will be incorrect. - * @param PLL1_Clocks structure. - * @retval None - */ -void HAL_RCCEx_GetPLL1ClockFreq(PLL1_ClocksTypeDef *PLL1_Clocks) -{ - uint32_t pllsource, pll1m, pll1fracen, hsivalue; - float_t fracn1, pll1vco; - - pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC); - pll1m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM1) >> 4); - pll1fracen = RCC->PLLCFGR & RCC_PLLCFGR_PLL1FRACEN; - fracn1 = (float_t)(uint32_t)(pll1fracen * ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> 3)); - - if (pll1m != 0U) - { - switch (pllsource) - { - - case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */ - - if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U) - { - hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3)); - pll1vco = ((float_t)hsivalue / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1); - } - else - { - pll1vco = ((float_t)HSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1); - } - break; - case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */ - pll1vco = ((float_t)CSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1); - break; - - case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */ - pll1vco = ((float_t)HSE_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1); - break; - - default: - pll1vco = ((float_t)HSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1); - break; - } - - PLL1_Clocks->PLL1_P_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_P1) >> 9) + (float_t)1)) ; - PLL1_Clocks->PLL1_Q_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_Q1) >> 16) + (float_t)1)) ; - PLL1_Clocks->PLL1_R_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_R1) >> 24) + (float_t)1)) ; - } - else - { - PLL1_Clocks->PLL1_P_Frequency = 0U; - PLL1_Clocks->PLL1_Q_Frequency = 0U; - PLL1_Clocks->PLL1_R_Frequency = 0U; - } - -} - -/** - * @brief Returns the main System frequency - * @note Each time System clock changes, this function must be called to update the - * right core clock value. Otherwise, any configuration based on this function will be incorrect. - * @note The SystemCoreClock CMSIS variable is used to store System current Core Clock Frequency - * and updated within this function - * @retval HCLK frequency - */ -uint32_t HAL_RCCEx_GetD1SysClockFreq(void) -{ - uint32_t common_system_clock; - -#if defined(RCC_D1CFGR_D1CPRE) - common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos] & 0x1FU); -#else - common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos] & 0x1FU); -#endif - - /* Update the SystemD2Clock global variable */ -#if defined(RCC_D1CFGR_HPRE) - SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU)); -#else - SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_HPRE) >> RCC_CDCFGR1_HPRE_Pos]) & 0x1FU)); -#endif - -#if defined(DUAL_CORE) && defined(CORE_CM4) - SystemCoreClock = SystemD2Clock; -#else - SystemCoreClock = common_system_clock; -#endif /* DUAL_CORE && CORE_CM4 */ - - return common_system_clock; -} -/** - * @} - */ - -/** @defgroup RCCEx_Exported_Functions_Group2 Extended System Control functions - * @brief Extended Peripheral Control functions - * @{ - */ -/** - * @brief Enables the LSE Clock Security System. - * @note Prior to enable the LSE Clock Security System, LSE oscillator is to be enabled - * with HAL_RCC_OscConfig() and the LSE oscillator clock is to be selected as RTC - * clock with HAL_RCCEx_PeriphCLKConfig(). - * @retval None - */ -void HAL_RCCEx_EnableLSECSS(void) -{ - SET_BIT(RCC->BDCR, RCC_BDCR_LSECSSON) ; -} - -/** - * @brief Disables the LSE Clock Security System. - * @note LSE Clock Security System can only be disabled after a LSE failure detection. - * @retval None - */ -void HAL_RCCEx_DisableLSECSS(void) -{ - CLEAR_BIT(RCC->BDCR, RCC_BDCR_LSECSSON) ; - /* Disable LSE CSS IT if any */ - __HAL_RCC_DISABLE_IT(RCC_IT_LSECSS); -} - -/** - * @brief Enable the LSE Clock Security System Interrupt & corresponding EXTI line. - * @note LSE Clock Security System Interrupt is mapped on EXTI line 18 - * @retval None - */ -void HAL_RCCEx_EnableLSECSS_IT(void) -{ - /* Enable LSE CSS */ - SET_BIT(RCC->BDCR, RCC_BDCR_LSECSSON) ; - - /* Enable LSE CSS IT */ - __HAL_RCC_ENABLE_IT(RCC_IT_LSECSS); - - /* Enable IT on EXTI Line 18 */ -#if defined(DUAL_CORE) && defined(CORE_CM4) - __HAL_RCC_C2_LSECSS_EXTI_ENABLE_IT(); -#else - __HAL_RCC_LSECSS_EXTI_ENABLE_IT(); -#endif /* DUAL_CORE && CORE_CM4 */ - __HAL_RCC_LSECSS_EXTI_ENABLE_RISING_EDGE(); -} - -/** - * @brief Configure the oscillator clock source for wakeup from Stop and CSS backup clock - * @param WakeUpClk: Wakeup clock - * This parameter can be one of the following values: - * @arg RCC_STOP_WAKEUPCLOCK_CSI: CSI oscillator selection - * @arg RCC_STOP_WAKEUPCLOCK_HSI: HSI oscillator selection - * @note This function shall not be called after the Clock Security System on HSE has been - * enabled. - * @retval None - */ -void HAL_RCCEx_WakeUpStopCLKConfig(uint32_t WakeUpClk) -{ - assert_param(IS_RCC_STOP_WAKEUPCLOCK(WakeUpClk)); - - __HAL_RCC_WAKEUPSTOP_CLK_CONFIG(WakeUpClk); -} - -/** - * @brief Configure the oscillator Kernel clock source for wakeup from Stop - * @param WakeUpClk: Kernel Wakeup clock - * This parameter can be one of the following values: - * @arg RCC_STOP_KERWAKEUPCLOCK_CSI: CSI oscillator selection - * @arg RCC_STOP_KERWAKEUPCLOCK_HSI: HSI oscillator selection - * @retval None - */ -void HAL_RCCEx_KerWakeUpStopCLKConfig(uint32_t WakeUpClk) -{ - assert_param(IS_RCC_STOP_KERWAKEUPCLOCK(WakeUpClk)); - - __HAL_RCC_KERWAKEUPSTOP_CLK_CONFIG(WakeUpClk); -} - -#if defined(DUAL_CORE) -/** - * @brief Enable COREx boot independently of CMx_B option byte value - * @param RCC_BootCx: Boot Core to be enabled - * This parameter can be one of the following values: - * @arg RCC_BOOT_C1: CM7 core selection - * @arg RCC_BOOT_C2: CM4 core selection - * @note This bit can be set by software but is cleared by hardware after a system reset or STANDBY - * - * @retval None - */ -void HAL_RCCEx_EnableBootCore(uint32_t RCC_BootCx) -{ - assert_param(IS_RCC_BOOT_CORE(RCC_BootCx)); - SET_BIT(RCC->GCR, RCC_BootCx) ; -} - -#endif /*DUAL_CORE*/ - -#if defined(DUAL_CORE) -/** - * @brief Configure WWDGx to generate a system reset not only CPUx reset(default) when a time-out occurs - * @param RCC_WWDGx: WWDGx to be configured - * This parameter can be one of the following values: - * @arg RCC_WWDG1: WWDG1 generates system reset - * @arg RCC_WWDG2: WWDG2 generates system reset - * @note This bit can be set by software but is cleared by hardware during a system reset - * - * @retval None - */ -void HAL_RCCEx_WWDGxSysResetConfig(uint32_t RCC_WWDGx) -{ - assert_param(IS_RCC_SCOPE_WWDG(RCC_WWDGx)); - SET_BIT(RCC->GCR, RCC_WWDGx) ; -} - -#else -#if defined(RCC_GCR_WW1RSC) -/** - * @brief Configure WWDG1 to generate a system reset not only CPU reset(default) when a time-out occurs - * @param RCC_WWDGx: WWDGx to be configured - * This parameter can be one of the following values: - * @arg RCC_WWDG1: WWDG1 generates system reset - * @note This bit can be set by software but is cleared by hardware during a system reset - * - * @retval None - */ -void HAL_RCCEx_WWDGxSysResetConfig(uint32_t RCC_WWDGx) -{ - assert_param(IS_RCC_SCOPE_WWDG(RCC_WWDGx)); - SET_BIT(RCC->GCR, RCC_WWDGx) ; -} -#endif -#endif /*DUAL_CORE*/ - -/** - * @} - */ - -/** @defgroup RCCEx_Exported_Functions_Group3 Extended Clock Recovery System Control functions - * @brief Extended Clock Recovery System Control functions - * -@verbatim - =============================================================================== - ##### Extended Clock Recovery System Control functions ##### - =============================================================================== - [..] - For devices with Clock Recovery System feature (CRS), RCC Extension HAL driver can be used as follows: - - (#) In System clock config, HSI48 needs to be enabled - - (#) Enable CRS clock in IP MSP init which will use CRS functions - - (#) Call CRS functions as follows: - (##) Prepare synchronization configuration necessary for HSI48 calibration - (+++) Default values can be set for frequency Error Measurement (reload and error limit) - and also HSI48 oscillator smooth trimming. - (+++) Macro __HAL_RCC_CRS_RELOADVALUE_CALCULATE can be also used to calculate - directly reload value with target and synchronization frequencies values - (##) Call function HAL_RCCEx_CRSConfig which - (+++) Resets CRS registers to their default values. - (+++) Configures CRS registers with synchronization configuration - (+++) Enables automatic calibration and frequency error counter feature - Note: When using USB LPM (Link Power Management) and the device is in Sleep mode, the - periodic USB SOF will not be generated by the host. No SYNC signal will therefore be - provided to the CRS to calibrate the HSI48 on the run. To guarantee the required clock - precision after waking up from Sleep mode, the LSE or reference clock on the GPIOs - should be used as SYNC signal. - - (##) A polling function is provided to wait for complete synchronization - (+++) Call function HAL_RCCEx_CRSWaitSynchronization() - (+++) According to CRS status, user can decide to adjust again the calibration or continue - application if synchronization is OK - - (#) User can retrieve information related to synchronization in calling function - HAL_RCCEx_CRSGetSynchronizationInfo() - - (#) Regarding synchronization status and synchronization information, user can try a new calibration - in changing synchronization configuration and call again HAL_RCCEx_CRSConfig. - Note: When the SYNC event is detected during the down-counting phase (before reaching the zero value), - it means that the actual frequency is lower than the target (and so, that the TRIM value should be - incremented), while when it is detected during the up-counting phase it means that the actual frequency - is higher (and that the TRIM value should be decremented). - - (#) In interrupt mode, user can resort to the available macros (__HAL_RCC_CRS_XXX_IT). Interrupts will go - through CRS Handler (CRS_IRQn/CRS_IRQHandler) - (++) Call function HAL_RCCEx_CRSConfig() - (++) Enable CRS_IRQn (thanks to NVIC functions) - (++) Enable CRS interrupt (__HAL_RCC_CRS_ENABLE_IT) - (++) Implement CRS status management in the following user callbacks called from - HAL_RCCEx_CRS_IRQHandler(): - (+++) HAL_RCCEx_CRS_SyncOkCallback() - (+++) HAL_RCCEx_CRS_SyncWarnCallback() - (+++) HAL_RCCEx_CRS_ExpectedSyncCallback() - (+++) HAL_RCCEx_CRS_ErrorCallback() - - (#) To force a SYNC EVENT, user can use the function HAL_RCCEx_CRSSoftwareSynchronizationGenerate(). - This function can be called before calling HAL_RCCEx_CRSConfig (for instance in Systick handler) - -@endverbatim - * @{ - */ - -/** - * @brief Start automatic synchronization for polling mode - * @param pInit Pointer on RCC_CRSInitTypeDef structure - * @retval None - */ -void HAL_RCCEx_CRSConfig(RCC_CRSInitTypeDef *pInit) -{ - uint32_t value; - - /* Check the parameters */ - assert_param(IS_RCC_CRS_SYNC_DIV(pInit->Prescaler)); - assert_param(IS_RCC_CRS_SYNC_SOURCE(pInit->Source)); - assert_param(IS_RCC_CRS_SYNC_POLARITY(pInit->Polarity)); - assert_param(IS_RCC_CRS_RELOADVALUE(pInit->ReloadValue)); - assert_param(IS_RCC_CRS_ERRORLIMIT(pInit->ErrorLimitValue)); - assert_param(IS_RCC_CRS_HSI48CALIBRATION(pInit->HSI48CalibrationValue)); - - /* CONFIGURATION */ - - /* Before configuration, reset CRS registers to their default values*/ - __HAL_RCC_CRS_FORCE_RESET(); - __HAL_RCC_CRS_RELEASE_RESET(); - - /* Set the SYNCDIV[2:0] bits according to Pre-scaler value */ - /* Set the SYNCSRC[1:0] bits according to Source value */ - /* Set the SYNCSPOL bit according to Polarity value */ - if ((HAL_GetREVID() <= REV_ID_Y) && (pInit->Source == RCC_CRS_SYNC_SOURCE_USB2)) - { - /* Use Rev.Y value of USB2 */ - value = (pInit->Prescaler | RCC_CRS_SYNC_SOURCE_PIN | pInit->Polarity); - } - else - { - value = (pInit->Prescaler | pInit->Source | pInit->Polarity); - } - /* Set the RELOAD[15:0] bits according to ReloadValue value */ - value |= pInit->ReloadValue; - /* Set the FELIM[7:0] bits according to ErrorLimitValue value */ - value |= (pInit->ErrorLimitValue << CRS_CFGR_FELIM_Pos); - WRITE_REG(CRS->CFGR, value); - - /* Adjust HSI48 oscillator smooth trimming */ - /* Set the TRIM[5:0] bits according to RCC_CRS_HSI48CalibrationValue value */ - MODIFY_REG(CRS->CR, CRS_CR_TRIM, (pInit->HSI48CalibrationValue << CRS_CR_TRIM_Pos)); - - /* START AUTOMATIC SYNCHRONIZATION*/ - - /* Enable Automatic trimming & Frequency error counter */ - SET_BIT(CRS->CR, CRS_CR_AUTOTRIMEN | CRS_CR_CEN); -} - -/** - * @brief Generate the software synchronization event - * @retval None - */ -void HAL_RCCEx_CRSSoftwareSynchronizationGenerate(void) -{ - SET_BIT(CRS->CR, CRS_CR_SWSYNC); -} - -/** - * @brief Return synchronization info - * @param pSynchroInfo Pointer on RCC_CRSSynchroInfoTypeDef structure - * @retval None - */ -void HAL_RCCEx_CRSGetSynchronizationInfo(RCC_CRSSynchroInfoTypeDef *pSynchroInfo) -{ - /* Check the parameter */ - assert_param(pSynchroInfo != (void *)NULL); - - /* Get the reload value */ - pSynchroInfo->ReloadValue = (uint32_t)(READ_BIT(CRS->CFGR, CRS_CFGR_RELOAD)); - - /* Get HSI48 oscillator smooth trimming */ - pSynchroInfo->HSI48CalibrationValue = (uint32_t)(READ_BIT(CRS->CR, CRS_CR_TRIM) >> CRS_CR_TRIM_Pos); - - /* Get Frequency error capture */ - pSynchroInfo->FreqErrorCapture = (uint32_t)(READ_BIT(CRS->ISR, CRS_ISR_FECAP) >> CRS_ISR_FECAP_Pos); - - /* Get Frequency error direction */ - pSynchroInfo->FreqErrorDirection = (uint32_t)(READ_BIT(CRS->ISR, CRS_ISR_FEDIR)); -} - -/** -* @brief Wait for CRS Synchronization status. -* @param Timeout Duration of the time-out -* @note Timeout is based on the maximum time to receive a SYNC event based on synchronization -* frequency. -* @note If Time-out set to HAL_MAX_DELAY, HAL_TIMEOUT will be never returned. -* @retval Combination of Synchronization status -* This parameter can be a combination of the following values: -* @arg @ref RCC_CRS_TIMEOUT -* @arg @ref RCC_CRS_SYNCOK -* @arg @ref RCC_CRS_SYNCWARN -* @arg @ref RCC_CRS_SYNCERR -* @arg @ref RCC_CRS_SYNCMISS -* @arg @ref RCC_CRS_TRIMOVF -*/ -uint32_t HAL_RCCEx_CRSWaitSynchronization(uint32_t Timeout) -{ - uint32_t crsstatus = RCC_CRS_NONE; - uint32_t tickstart; - - /* Get time-out */ - tickstart = HAL_GetTick(); - - /* Wait for CRS flag or time-out detection */ - do - { - if (Timeout != HAL_MAX_DELAY) - { - if (((HAL_GetTick() - tickstart) > Timeout) || (Timeout == 0U)) - { - crsstatus = RCC_CRS_TIMEOUT; - } - } - /* Check CRS SYNCOK flag */ - if (__HAL_RCC_CRS_GET_FLAG(RCC_CRS_FLAG_SYNCOK)) - { - /* CRS SYNC event OK */ - crsstatus |= RCC_CRS_SYNCOK; - - /* Clear CRS SYNC event OK bit */ - __HAL_RCC_CRS_CLEAR_FLAG(RCC_CRS_FLAG_SYNCOK); - } - - /* Check CRS SYNCWARN flag */ - if (__HAL_RCC_CRS_GET_FLAG(RCC_CRS_FLAG_SYNCWARN)) - { - /* CRS SYNC warning */ - crsstatus |= RCC_CRS_SYNCWARN; - - /* Clear CRS SYNCWARN bit */ - __HAL_RCC_CRS_CLEAR_FLAG(RCC_CRS_FLAG_SYNCWARN); - } - - /* Check CRS TRIM overflow flag */ - if (__HAL_RCC_CRS_GET_FLAG(RCC_CRS_FLAG_TRIMOVF)) - { - /* CRS SYNC Error */ - crsstatus |= RCC_CRS_TRIMOVF; - - /* Clear CRS Error bit */ - __HAL_RCC_CRS_CLEAR_FLAG(RCC_CRS_FLAG_TRIMOVF); - } - - /* Check CRS Error flag */ - if (__HAL_RCC_CRS_GET_FLAG(RCC_CRS_FLAG_SYNCERR)) - { - /* CRS SYNC Error */ - crsstatus |= RCC_CRS_SYNCERR; - - /* Clear CRS Error bit */ - __HAL_RCC_CRS_CLEAR_FLAG(RCC_CRS_FLAG_SYNCERR); - } - - /* Check CRS SYNC Missed flag */ - if (__HAL_RCC_CRS_GET_FLAG(RCC_CRS_FLAG_SYNCMISS)) - { - /* CRS SYNC Missed */ - crsstatus |= RCC_CRS_SYNCMISS; - - /* Clear CRS SYNC Missed bit */ - __HAL_RCC_CRS_CLEAR_FLAG(RCC_CRS_FLAG_SYNCMISS); - } - - /* Check CRS Expected SYNC flag */ - if (__HAL_RCC_CRS_GET_FLAG(RCC_CRS_FLAG_ESYNC)) - { - /* frequency error counter reached a zero value */ - __HAL_RCC_CRS_CLEAR_FLAG(RCC_CRS_FLAG_ESYNC); - } - } - while (RCC_CRS_NONE == crsstatus); - - return crsstatus; -} - -/** - * @brief Handle the Clock Recovery System interrupt request. - * @retval None - */ -void HAL_RCCEx_CRS_IRQHandler(void) -{ - uint32_t crserror = RCC_CRS_NONE; - /* Get current IT flags and IT sources values */ - uint32_t itflags = READ_REG(CRS->ISR); - uint32_t itsources = READ_REG(CRS->CR); - - /* Check CRS SYNCOK flag */ - if (((itflags & RCC_CRS_FLAG_SYNCOK) != 0U) && ((itsources & RCC_CRS_IT_SYNCOK) != 0U)) - { - /* Clear CRS SYNC event OK flag */ - WRITE_REG(CRS->ICR, CRS_ICR_SYNCOKC); - - /* user callback */ - HAL_RCCEx_CRS_SyncOkCallback(); - } - /* Check CRS SYNCWARN flag */ - else if (((itflags & RCC_CRS_FLAG_SYNCWARN) != 0U) && ((itsources & RCC_CRS_IT_SYNCWARN) != 0U)) - { - /* Clear CRS SYNCWARN flag */ - WRITE_REG(CRS->ICR, CRS_ICR_SYNCWARNC); - - /* user callback */ - HAL_RCCEx_CRS_SyncWarnCallback(); - } - /* Check CRS Expected SYNC flag */ - else if (((itflags & RCC_CRS_FLAG_ESYNC) != 0U) && ((itsources & RCC_CRS_IT_ESYNC) != 0U)) - { - /* frequency error counter reached a zero value */ - WRITE_REG(CRS->ICR, CRS_ICR_ESYNCC); - - /* user callback */ - HAL_RCCEx_CRS_ExpectedSyncCallback(); - } - /* Check CRS Error flags */ - else - { - if (((itflags & RCC_CRS_FLAG_ERR) != 0U) && ((itsources & RCC_CRS_IT_ERR) != 0U)) - { - if ((itflags & RCC_CRS_FLAG_SYNCERR) != 0U) - { - crserror |= RCC_CRS_SYNCERR; - } - if ((itflags & RCC_CRS_FLAG_SYNCMISS) != 0U) - { - crserror |= RCC_CRS_SYNCMISS; - } - if ((itflags & RCC_CRS_FLAG_TRIMOVF) != 0U) - { - crserror |= RCC_CRS_TRIMOVF; - } - - /* Clear CRS Error flags */ - WRITE_REG(CRS->ICR, CRS_ICR_ERRC); - - /* user error callback */ - HAL_RCCEx_CRS_ErrorCallback(crserror); - } - } -} - -/** - * @brief RCCEx Clock Recovery System SYNCOK interrupt callback. - * @retval none - */ -__weak void HAL_RCCEx_CRS_SyncOkCallback(void) -{ - /* NOTE : This function should not be modified, when the callback is needed, - the @ref HAL_RCCEx_CRS_SyncOkCallback should be implemented in the user file - */ -} - -/** - * @brief RCCEx Clock Recovery System SYNCWARN interrupt callback. - * @retval none - */ -__weak void HAL_RCCEx_CRS_SyncWarnCallback(void) -{ - /* NOTE : This function should not be modified, when the callback is needed, - the @ref HAL_RCCEx_CRS_SyncWarnCallback should be implemented in the user file - */ -} - -/** - * @brief RCCEx Clock Recovery System Expected SYNC interrupt callback. - * @retval none - */ -__weak void HAL_RCCEx_CRS_ExpectedSyncCallback(void) -{ - /* NOTE : This function should not be modified, when the callback is needed, - the @ref HAL_RCCEx_CRS_ExpectedSyncCallback should be implemented in the user file - */ -} - -/** - * @brief RCCEx Clock Recovery System Error interrupt callback. - * @param Error Combination of Error status. - * This parameter can be a combination of the following values: - * @arg @ref RCC_CRS_SYNCERR - * @arg @ref RCC_CRS_SYNCMISS - * @arg @ref RCC_CRS_TRIMOVF - * @retval none - */ -__weak void HAL_RCCEx_CRS_ErrorCallback(uint32_t Error) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(Error); - - /* NOTE : This function should not be modified, when the callback is needed, - the @ref HAL_RCCEx_CRS_ErrorCallback should be implemented in the user file - */ -} - - -/** - * @} - */ - -/** - * @} - */ - -/** @defgroup RCCEx_Private_functions RCCEx Private Functions - * @{ - */ -/** - * @brief Configure the PLL2 VCI,VCO ranges, multiplication and division factors and enable it - * @param pll2: Pointer to an RCC_PLL2InitTypeDef structure that - * contains the configuration parameters as well as VCI, VCO clock ranges. - * @param Divider divider parameter to be updated - * @note PLL2 is temporary disabled to apply new parameters - * - * @retval HAL status - */ -static HAL_StatusTypeDef RCCEx_PLL2_Config(RCC_PLL2InitTypeDef *pll2, uint32_t Divider) -{ - - uint32_t tickstart; - HAL_StatusTypeDef status = HAL_OK; - assert_param(IS_RCC_PLL2M_VALUE(pll2->PLL2M)); - assert_param(IS_RCC_PLL2N_VALUE(pll2->PLL2N)); - assert_param(IS_RCC_PLL2P_VALUE(pll2->PLL2P)); - assert_param(IS_RCC_PLL2R_VALUE(pll2->PLL2R)); - assert_param(IS_RCC_PLL2Q_VALUE(pll2->PLL2Q)); - assert_param(IS_RCC_PLL2RGE_VALUE(pll2->PLL2RGE)); - assert_param(IS_RCC_PLL2VCO_VALUE(pll2->PLL2VCOSEL)); - assert_param(IS_RCC_PLLFRACN_VALUE(pll2->PLL2FRACN)); - - /* Check that PLL2 OSC clock source is already set */ - if (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_NONE) - { - return HAL_ERROR; - } - - - else - { - /* Disable PLL2. */ - __HAL_RCC_PLL2_DISABLE(); - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - - /* Wait till PLL is disabled */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != 0U) - { - if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - - /* Configure PLL2 multiplication and division factors. */ - __HAL_RCC_PLL2_CONFIG(pll2->PLL2M, - pll2->PLL2N, - pll2->PLL2P, - pll2->PLL2Q, - pll2->PLL2R); - - /* Select PLL2 input reference frequency range: VCI */ - __HAL_RCC_PLL2_VCIRANGE(pll2->PLL2RGE) ; - - /* Select PLL2 output frequency range : VCO */ - __HAL_RCC_PLL2_VCORANGE(pll2->PLL2VCOSEL) ; - - /* Disable PLL2FRACN . */ - __HAL_RCC_PLL2FRACN_DISABLE(); - - /* Configures PLL2 clock Fractional Part Of The Multiplication Factor */ - __HAL_RCC_PLL2FRACN_CONFIG(pll2->PLL2FRACN); - - /* Enable PLL2FRACN . */ - __HAL_RCC_PLL2FRACN_ENABLE(); - - /* Enable the PLL2 clock output */ - if (Divider == DIVIDER_P_UPDATE) - { - __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVP); - } - else if (Divider == DIVIDER_Q_UPDATE) - { - __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVQ); - } - else - { - __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVR); - } - - /* Enable PLL2. */ - __HAL_RCC_PLL2_ENABLE(); - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - - /* Wait till PLL2 is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == 0U) - { - if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - - } - - - return status; -} - - -/** - * @brief Configure the PLL3 VCI,VCO ranges, multiplication and division factors and enable it - * @param pll3: Pointer to an RCC_PLL3InitTypeDef structure that - * contains the configuration parameters as well as VCI, VCO clock ranges. - * @param Divider divider parameter to be updated - * @note PLL3 is temporary disabled to apply new parameters - * - * @retval HAL status - */ -static HAL_StatusTypeDef RCCEx_PLL3_Config(RCC_PLL3InitTypeDef *pll3, uint32_t Divider) -{ - uint32_t tickstart; - HAL_StatusTypeDef status = HAL_OK; - assert_param(IS_RCC_PLL3M_VALUE(pll3->PLL3M)); - assert_param(IS_RCC_PLL3N_VALUE(pll3->PLL3N)); - assert_param(IS_RCC_PLL3P_VALUE(pll3->PLL3P)); - assert_param(IS_RCC_PLL3R_VALUE(pll3->PLL3R)); - assert_param(IS_RCC_PLL3Q_VALUE(pll3->PLL3Q)); - assert_param(IS_RCC_PLL3RGE_VALUE(pll3->PLL3RGE)); - assert_param(IS_RCC_PLL3VCO_VALUE(pll3->PLL3VCOSEL)); - assert_param(IS_RCC_PLLFRACN_VALUE(pll3->PLL3FRACN)); - - /* Check that PLL3 OSC clock source is already set */ - if (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_NONE) - { - return HAL_ERROR; - } - - - else - { - /* Disable PLL3. */ - __HAL_RCC_PLL3_DISABLE(); - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - /* Wait till PLL3 is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) != 0U) - { - if ((HAL_GetTick() - tickstart) > PLL3_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - - /* Configure the PLL3 multiplication and division factors. */ - __HAL_RCC_PLL3_CONFIG(pll3->PLL3M, - pll3->PLL3N, - pll3->PLL3P, - pll3->PLL3Q, - pll3->PLL3R); - - /* Select PLL3 input reference frequency range: VCI */ - __HAL_RCC_PLL3_VCIRANGE(pll3->PLL3RGE) ; - - /* Select PLL3 output frequency range : VCO */ - __HAL_RCC_PLL3_VCORANGE(pll3->PLL3VCOSEL) ; - - /* Disable PLL3FRACN . */ - __HAL_RCC_PLL3FRACN_DISABLE(); - - /* Configures PLL3 clock Fractional Part Of The Multiplication Factor */ - __HAL_RCC_PLL3FRACN_CONFIG(pll3->PLL3FRACN); - - /* Enable PLL3FRACN . */ - __HAL_RCC_PLL3FRACN_ENABLE(); - - /* Enable the PLL3 clock output */ - if (Divider == DIVIDER_P_UPDATE) - { - __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVP); - } - else if (Divider == DIVIDER_Q_UPDATE) - { - __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVQ); - } - else - { - __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVR); - } - - /* Enable PLL3. */ - __HAL_RCC_PLL3_ENABLE(); - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - - /* Wait till PLL3 is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) == 0U) - { - if ((HAL_GetTick() - tickstart) > PLL3_TIMEOUT_VALUE) - { - return HAL_TIMEOUT; - } - } - - } - - - return status; -} - -/** - * @brief Handle the RCC LSE Clock Security System interrupt request. - * @retval None - */ -void HAL_RCCEx_LSECSS_IRQHandler(void) -{ - /* Check RCC LSE CSSF flag */ - if (__HAL_RCC_GET_IT(RCC_IT_LSECSS)) - { - - /* Clear RCC LSE CSS pending bit */ - __HAL_RCC_CLEAR_IT(RCC_IT_LSECSS); - - /* RCC LSE Clock Security System interrupt user callback */ - HAL_RCCEx_LSECSS_Callback(); - - } -} - -/** - * @brief RCCEx LSE Clock Security System interrupt callback. - * @retval none - */ -__weak void HAL_RCCEx_LSECSS_Callback(void) -{ - /* NOTE : This function should not be modified, when the callback is needed, - the @ref HAL_RCCEx_LSECSS_Callback should be implemented in the user file - */ -} - - - -/** - * @} - */ - -#endif /* HAL_RCC_MODULE_ENABLED */ -/** - * @} - */ - -/** - * @} - */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c b/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c deleted file mode 100644 index 704d1ba..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c +++ /dev/null @@ -1,4158 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_sd.c - * @author MCD Application Team - * @brief SD card HAL module driver. - * This file provides firmware functions to manage the following - * functionalities of the Secure Digital (SD) peripheral: - * + Initialization and de-initialization functions - * + IO operation functions - * + Peripheral Control functions - * + Peripheral State functions - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - @verbatim - ============================================================================== - ##### How to use this driver ##### - ============================================================================== - [..] - This driver implements a high level communication layer for read and write from/to - this memory. The needed STM32 hardware resources (SDMMC and GPIO) are performed by - the user in HAL_SD_MspInit() function (MSP layer). - Basically, the MSP layer configuration should be the same as we provide in the - examples. - You can easily tailor this configuration according to hardware resources. - - [..] - This driver is a generic layered driver for SDMMC memories which uses the HAL - SDMMC driver functions to interface with SD and uSD cards devices. - It is used as follows: - - (#)Initialize the SDMMC low level resources by implementing the HAL_SD_MspInit() API: - (##) Enable the SDMMC interface clock using __HAL_RCC_SDMMC_CLK_ENABLE(); - (##) SDMMC pins configuration for SD card - (+++) Enable the clock for the SDMMC GPIOs using the functions __HAL_RCC_GPIOx_CLK_ENABLE(); - (+++) Configure these SDMMC pins as alternate function pull-up using HAL_GPIO_Init() - and according to your pin assignment; - (##) NVIC configuration if you need to use interrupt process (HAL_SD_ReadBlocks_IT() - and HAL_SD_WriteBlocks_IT() APIs). - (+++) Configure the SDMMC interrupt priorities using function HAL_NVIC_SetPriority(); - (+++) Enable the NVIC SDMMC IRQs using function HAL_NVIC_EnableIRQ() - (+++) SDMMC interrupts are managed using the macros __HAL_SD_ENABLE_IT() - and __HAL_SD_DISABLE_IT() inside the communication process. - (+++) SDMMC interrupts pending bits are managed using the macros __HAL_SD_GET_IT() - and __HAL_SD_CLEAR_IT() - (##) No general propose DMA Configuration is needed, an Internal DMA for SDMMC Peripheral are used. - - (#) At this stage, you can perform SD read/write/erase operations after SD card initialization - - - *** SD Card Initialization and configuration *** - ================================================ - [..] - To initialize the SD Card, use the HAL_SD_Init() function. It Initializes - SDMMC Peripheral(STM32 side) and the SD Card, and put it into StandBy State (Ready for data transfer). - This function provide the following operations: - - (#) Apply the SD Card initialization process at 400KHz and check the SD Card - type (Standard Capacity or High Capacity). You can change or adapt this - frequency by adjusting the "ClockDiv" field. - The SD Card frequency (SDMMC_CK) is computed as follows: - - SDMMC_CK = SDMMCCLK / (2 * ClockDiv) - - In initialization mode and according to the SD Card standard, - make sure that the SDMMC_CK frequency doesn't exceed 400KHz. - - This phase of initialization is done through SDMMC_Init() and - SDMMC_PowerState_ON() SDMMC low level APIs. - - (#) Initialize the SD card. The API used is HAL_SD_InitCard(). - This phase allows the card initialization and identification - and check the SD Card type (Standard Capacity or High Capacity) - The initialization flow is compatible with SD standard. - - This API (HAL_SD_InitCard()) could be used also to reinitialize the card in case - of plug-off plug-in. - - (#) Configure the SD Card Data transfer frequency. You can change or adapt this - frequency by adjusting the "ClockDiv" field. - In transfer mode and according to the SD Card standard, make sure that the - SDMMC_CK frequency doesn't exceed 25MHz and 100MHz in High-speed mode switch. - - (#) Select the corresponding SD Card according to the address read with the step 2. - - (#) Configure the SD Card in wide bus mode: 4-bits data. - - *** SD Card Read operation *** - ============================== - [..] - (+) You can read from SD card in polling mode by using function HAL_SD_ReadBlocks(). - This function support only 512-bytes block length (the block size should be - chosen as 512 bytes). - You can choose either one block read operation or multiple block read operation - by adjusting the "NumberOfBlocks" parameter. - After this, you have to ensure that the transfer is done correctly. The check is done - through HAL_SD_GetCardState() function for SD card state. - - (+) You can read from SD card in DMA mode by using function HAL_SD_ReadBlocks_DMA(). - This function support only 512-bytes block length (the block size should be - chosen as 512 bytes). - You can choose either one block read operation or multiple block read operation - by adjusting the "NumberOfBlocks" parameter. - After this, you have to ensure that the transfer is done correctly. The check is done - through HAL_SD_GetCardState() function for SD card state. - You could also check the DMA transfer process through the SD Rx interrupt event. - - (+) You can read from SD card in Interrupt mode by using function HAL_SD_ReadBlocks_IT(). - This function support only 512-bytes block length (the block size should be - chosen as 512 bytes). - You can choose either one block read operation or multiple block read operation - by adjusting the "NumberOfBlocks" parameter. - After this, you have to ensure that the transfer is done correctly. The check is done - through HAL_SD_GetCardState() function for SD card state. - You could also check the IT transfer process through the SD Rx interrupt event. - - *** SD Card Write operation *** - =============================== - [..] - (+) You can write to SD card in polling mode by using function HAL_SD_WriteBlocks(). - This function support only 512-bytes block length (the block size should be - chosen as 512 bytes). - You can choose either one block read operation or multiple block read operation - by adjusting the "NumberOfBlocks" parameter. - After this, you have to ensure that the transfer is done correctly. The check is done - through HAL_SD_GetCardState() function for SD card state. - - (+) You can write to SD card in DMA mode by using function HAL_SD_WriteBlocks_DMA(). - This function support only 512-bytes block length (the block size should be - chosen as 512 bytes). - You can choose either one block read operation or multiple block read operation - by adjusting the "NumberOfBlocks" parameter. - After this, you have to ensure that the transfer is done correctly. The check is done - through HAL_SD_GetCardState() function for SD card state. - You could also check the DMA transfer process through the SD Tx interrupt event. - - (+) You can write to SD card in Interrupt mode by using function HAL_SD_WriteBlocks_IT(). - This function support only 512-bytes block length (the block size should be - chosen as 512 bytes). - You can choose either one block read operation or multiple block read operation - by adjusting the "NumberOfBlocks" parameter. - After this, you have to ensure that the transfer is done correctly. The check is done - through HAL_SD_GetCardState() function for SD card state. - You could also check the IT transfer process through the SD Tx interrupt event. - - *** SD card status *** - ====================== - [..] - (+) The SD Status contains status bits that are related to the SD Memory - Card proprietary features. To get SD card status use the HAL_SD_GetCardStatus(). - - *** SD card information *** - =========================== - [..] - (+) To get SD card information, you can use the function HAL_SD_GetCardInfo(). - It returns useful information about the SD card such as block size, card type, - block number ... - - *** SD card CSD register *** - ============================ - (+) The HAL_SD_GetCardCSD() API allows to get the parameters of the CSD register. - Some of the CSD parameters are useful for card initialization and identification. - - *** SD card CID register *** - ============================ - (+) The HAL_SD_GetCardCID() API allows to get the parameters of the CID register. - Some of the CSD parameters are useful for card initialization and identification. - - *** SD HAL driver macros list *** - ================================== - [..] - Below the list of most used macros in SD HAL driver. - - (+) __HAL_SD_ENABLE_IT: Enable the SD device interrupt - (+) __HAL_SD_DISABLE_IT: Disable the SD device interrupt - (+) __HAL_SD_GET_FLAG:Check whether the specified SD flag is set or not - (+) __HAL_SD_CLEAR_FLAG: Clear the SD's pending flags - - (@) You can refer to the SD HAL driver header file for more useful macros - - *** Callback registration *** - ============================================= - [..] - The compilation define USE_HAL_SD_REGISTER_CALLBACKS when set to 1 - allows the user to configure dynamically the driver callbacks. - - Use Functions HAL_SD_RegisterCallback() to register a user callback, - it allows to register following callbacks: - (+) TxCpltCallback : callback when a transmission transfer is completed. - (+) RxCpltCallback : callback when a reception transfer is completed. - (+) ErrorCallback : callback when error occurs. - (+) AbortCpltCallback : callback when abort is completed. - (+) Read_DMADblBuf0CpltCallback : callback when the DMA reception of first buffer is completed. - (+) Read_DMADblBuf1CpltCallback : callback when the DMA reception of second buffer is completed. - (+) Write_DMADblBuf0CpltCallback : callback when the DMA transmission of first buffer is completed. - (+) Write_DMADblBuf1CpltCallback : callback when the DMA transmission of second buffer is completed. - (+) MspInitCallback : SD MspInit. - (+) MspDeInitCallback : SD MspDeInit. - This function takes as parameters the HAL peripheral handle, the Callback ID - and a pointer to the user callback function. - For specific callbacks TransceiverCallback use dedicated register callbacks: - respectively HAL_SD_RegisterTransceiverCallback(). - - Use function HAL_SD_UnRegisterCallback() to reset a callback to the default - weak (surcharged) function. It allows to reset following callbacks: - (+) TxCpltCallback : callback when a transmission transfer is completed. - (+) RxCpltCallback : callback when a reception transfer is completed. - (+) ErrorCallback : callback when error occurs. - (+) AbortCpltCallback : callback when abort is completed. - (+) Read_DMADblBuf0CpltCallback : callback when the DMA reception of first buffer is completed. - (+) Read_DMADblBuf1CpltCallback : callback when the DMA reception of second buffer is completed. - (+) Write_DMADblBuf0CpltCallback : callback when the DMA transmission of first buffer is completed. - (+) Write_DMADblBuf1CpltCallback : callback when the DMA transmission of second buffer is completed. - (+) MspInitCallback : SD MspInit. - (+) MspDeInitCallback : SD MspDeInit. - This function) takes as parameters the HAL peripheral handle and the Callback ID. - For specific callbacks TransceiverCallback use dedicated unregister callbacks: - respectively HAL_SD_UnRegisterTransceiverCallback(). - - By default, after the HAL_SD_Init and if the state is HAL_SD_STATE_RESET - all callbacks are reset to the corresponding legacy weak (surcharged) functions. - Exception done for MspInit and MspDeInit callbacks that are respectively - reset to the legacy weak (surcharged) functions in the HAL_SD_Init - and HAL_SD_DeInit only when these callbacks are null (not registered beforehand). - If not, MspInit or MspDeInit are not null, the HAL_SD_Init and HAL_SD_DeInit - keep and use the user MspInit/MspDeInit callbacks (registered beforehand) - - Callbacks can be registered/unregistered in READY state only. - Exception done for MspInit/MspDeInit callbacks that can be registered/unregistered - in READY or RESET state, thus registered (user) MspInit/DeInit callbacks can be used - during the Init/DeInit. - In that case first register the MspInit/MspDeInit user callbacks - using HAL_SD_RegisterCallback before calling HAL_SD_DeInit - or HAL_SD_Init function. - - When The compilation define USE_HAL_SD_REGISTER_CALLBACKS is set to 0 or - not defined, the callback registering feature is not available - and weak (surcharged) callbacks are used. - - @endverbatim - ****************************************************************************** - */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @addtogroup SD - * @{ - */ - -#ifdef HAL_SD_MODULE_ENABLED - -/* Private typedef -----------------------------------------------------------*/ -/* Private define ------------------------------------------------------------*/ -/** @addtogroup SD_Private_Defines - * @{ - */ -/* Frequencies used in the driver for clock divider calculation */ -#define SD_INIT_FREQ 400000U /* Initialization phase : 400 kHz max */ -#define SD_NORMAL_SPEED_FREQ 25000000U /* Normal speed phase : 25 MHz max */ -#define SD_HIGH_SPEED_FREQ 50000000U /* High speed phase : 50 MHz max */ -/* Private macro -------------------------------------------------------------*/ -#if defined (DLYB_SDMMC1) && defined (DLYB_SDMMC2) -#define SD_GET_DLYB_INSTANCE(SDMMC_INSTANCE) (((SDMMC_INSTANCE) == SDMMC1)? \ - DLYB_SDMMC1 : DLYB_SDMMC2 ) -#elif defined (DLYB_SDMMC1) -#define SD_GET_DLYB_INSTANCE(SDMMC_INSTANCE) ( DLYB_SDMMC1 ) -#endif /* (DLYB_SDMMC1) && defined (DLYB_SDMMC2) */ - -/** - * @} - */ - -/* Private variables ---------------------------------------------------------*/ -/* Private function prototypes -----------------------------------------------*/ -/* Private functions ---------------------------------------------------------*/ -/** @defgroup SD_Private_Functions SD Private Functions - * @{ - */ -static uint32_t SD_InitCard(SD_HandleTypeDef *hsd); -static uint32_t SD_PowerON(SD_HandleTypeDef *hsd); -static uint32_t SD_SendSDStatus(SD_HandleTypeDef *hsd, uint32_t *pSDstatus); -static uint32_t SD_SendStatus(SD_HandleTypeDef *hsd, uint32_t *pCardStatus); -static uint32_t SD_WideBus_Enable(SD_HandleTypeDef *hsd); -static uint32_t SD_WideBus_Disable(SD_HandleTypeDef *hsd); -static uint32_t SD_FindSCR(SD_HandleTypeDef *hsd, uint32_t *pSCR); -static void SD_PowerOFF(SD_HandleTypeDef *hsd); -static void SD_Write_IT(SD_HandleTypeDef *hsd); -static void SD_Read_IT(SD_HandleTypeDef *hsd); -static uint32_t SD_SwitchSpeed(SD_HandleTypeDef *hsd, uint32_t SwitchSpeedMode); -#if (USE_SD_TRANSCEIVER != 0U) -static uint32_t SD_UltraHighSpeed(SD_HandleTypeDef *hsd, uint32_t UltraHighSpeedMode); -static uint32_t SD_DDR_Mode(SD_HandleTypeDef *hsd); -#endif /* USE_SD_TRANSCEIVER */ -/** - * @} - */ - -/* Exported functions --------------------------------------------------------*/ -/** @addtogroup SD_Exported_Functions - * @{ - */ - -/** @addtogroup SD_Exported_Functions_Group1 - * @brief Initialization and de-initialization functions - * -@verbatim - ============================================================================== - ##### Initialization and de-initialization functions ##### - ============================================================================== - [..] - This section provides functions allowing to initialize/de-initialize the SD - card device to be ready for use. - -@endverbatim - * @{ - */ - -/** - * @brief Initializes the SD according to the specified parameters in the - SD_HandleTypeDef and create the associated handle. - * @param hsd: Pointer to the SD handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SD_Init(SD_HandleTypeDef *hsd) -{ - HAL_SD_CardStatusTypeDef CardStatus; - uint32_t speedgrade; - uint32_t unitsize; - uint32_t tickstart; - - /* Check the SD handle allocation */ - if (hsd == NULL) - { - return HAL_ERROR; - } - - /* Check the parameters */ - assert_param(IS_SDMMC_ALL_INSTANCE(hsd->Instance)); - assert_param(IS_SDMMC_CLOCK_EDGE(hsd->Init.ClockEdge)); - assert_param(IS_SDMMC_CLOCK_POWER_SAVE(hsd->Init.ClockPowerSave)); - assert_param(IS_SDMMC_BUS_WIDE(hsd->Init.BusWide)); - assert_param(IS_SDMMC_HARDWARE_FLOW_CONTROL(hsd->Init.HardwareFlowControl)); - assert_param(IS_SDMMC_CLKDIV(hsd->Init.ClockDiv)); - - if (hsd->State == HAL_SD_STATE_RESET) - { - /* Allocate lock resource and initialize it */ - hsd->Lock = HAL_UNLOCKED; - -#if (USE_SD_TRANSCEIVER != 0U) - /* Force SDMMC_TRANSCEIVER_PRESENT for Legacy usage */ - if (hsd->Init.TranceiverPresent == SDMMC_TRANSCEIVER_UNKNOWN) - { - hsd->Init.TranceiverPresent = SDMMC_TRANSCEIVER_PRESENT; - } -#endif /*USE_SD_TRANSCEIVER */ -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) - /* Reset Callback pointers in HAL_SD_STATE_RESET only */ - hsd->TxCpltCallback = HAL_SD_TxCpltCallback; - hsd->RxCpltCallback = HAL_SD_RxCpltCallback; - hsd->ErrorCallback = HAL_SD_ErrorCallback; - hsd->AbortCpltCallback = HAL_SD_AbortCallback; - hsd->Read_DMADblBuf0CpltCallback = HAL_SDEx_Read_DMADoubleBuf0CpltCallback; - hsd->Read_DMADblBuf1CpltCallback = HAL_SDEx_Read_DMADoubleBuf1CpltCallback; - hsd->Write_DMADblBuf0CpltCallback = HAL_SDEx_Write_DMADoubleBuf0CpltCallback; - hsd->Write_DMADblBuf1CpltCallback = HAL_SDEx_Write_DMADoubleBuf1CpltCallback; -#if (USE_SD_TRANSCEIVER != 0U) - if (hsd->Init.TranceiverPresent == SDMMC_TRANSCEIVER_PRESENT) - { - hsd->DriveTransceiver_1_8V_Callback = HAL_SD_DriveTransceiver_1_8V_Callback; - } -#endif /* USE_SD_TRANSCEIVER */ - - if (hsd->MspInitCallback == NULL) - { - hsd->MspInitCallback = HAL_SD_MspInit; - } - - /* Init the low level hardware */ - hsd->MspInitCallback(hsd); -#else - /* Init the low level hardware : GPIO, CLOCK, CORTEX...etc */ - HAL_SD_MspInit(hsd); -#endif /* USE_HAL_SD_REGISTER_CALLBACKS */ - } - - hsd->State = HAL_SD_STATE_PROGRAMMING; - - /* Initialize the Card parameters */ - if (HAL_SD_InitCard(hsd) != HAL_OK) - { - return HAL_ERROR; - } - - if (HAL_SD_GetCardStatus(hsd, &CardStatus) != HAL_OK) - { - return HAL_ERROR; - } - /* Get Initial Card Speed from Card Status*/ - speedgrade = CardStatus.UhsSpeedGrade; - unitsize = CardStatus.UhsAllocationUnitSize; - if ((hsd->SdCard.CardType == CARD_SDHC_SDXC) && ((speedgrade != 0U) || (unitsize != 0U))) - { - hsd->SdCard.CardSpeed = CARD_ULTRA_HIGH_SPEED; - } - else - { - if (hsd->SdCard.CardType == CARD_SDHC_SDXC) - { - hsd->SdCard.CardSpeed = CARD_HIGH_SPEED; - } - else - { - hsd->SdCard.CardSpeed = CARD_NORMAL_SPEED; - } - - } - /* Configure the bus wide */ - if (HAL_SD_ConfigWideBusOperation(hsd, hsd->Init.BusWide) != HAL_OK) - { - return HAL_ERROR; - } - - /* Verify that SD card is ready to use after Initialization */ - tickstart = HAL_GetTick(); - while ((HAL_SD_GetCardState(hsd) != HAL_SD_CARD_TRANSFER)) - { - if ((HAL_GetTick() - tickstart) >= SDMMC_DATATIMEOUT) - { - hsd->ErrorCode = HAL_SD_ERROR_TIMEOUT; - hsd->State = HAL_SD_STATE_READY; - return HAL_TIMEOUT; - } - } - - /* Initialize the error code */ - hsd->ErrorCode = HAL_SD_ERROR_NONE; - - /* Initialize the SD operation */ - hsd->Context = SD_CONTEXT_NONE; - - /* Initialize the SD state */ - hsd->State = HAL_SD_STATE_READY; - - return HAL_OK; -} - -/** - * @brief Initializes the SD Card. - * @param hsd: Pointer to SD handle - * @note This function initializes the SD card. It could be used when a card - re-initialization is needed. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SD_InitCard(SD_HandleTypeDef *hsd) -{ - uint32_t errorstate; - SD_InitTypeDef Init; - uint32_t sdmmc_clk; - - /* Default SDMMC peripheral configuration for SD card initialization */ - Init.ClockEdge = SDMMC_CLOCK_EDGE_RISING; - Init.ClockPowerSave = SDMMC_CLOCK_POWER_SAVE_DISABLE; - Init.BusWide = SDMMC_BUS_WIDE_1B; - Init.HardwareFlowControl = SDMMC_HARDWARE_FLOW_CONTROL_DISABLE; - - /* Init Clock should be less or equal to 400Khz*/ - sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC); - if (sdmmc_clk == 0U) - { - hsd->State = HAL_SD_STATE_READY; - hsd->ErrorCode = SDMMC_ERROR_INVALID_PARAMETER; - return HAL_ERROR; - } - Init.ClockDiv = sdmmc_clk / (2U * SD_INIT_FREQ); - -#if (USE_SD_TRANSCEIVER != 0U) - Init.TranceiverPresent = hsd->Init.TranceiverPresent; - - if (hsd->Init.TranceiverPresent == SDMMC_TRANSCEIVER_PRESENT) - { - /* Set Transceiver polarity */ - hsd->Instance->POWER |= SDMMC_POWER_DIRPOL; - } -#elif defined (USE_SD_DIRPOL) - /* Set Transceiver polarity */ - hsd->Instance->POWER |= SDMMC_POWER_DIRPOL; -#endif /* USE_SD_TRANSCEIVER */ - - /* Initialize SDMMC peripheral interface with default configuration */ - (void)SDMMC_Init(hsd->Instance, Init); - - /* Set Power State to ON */ - (void)SDMMC_PowerState_ON(hsd->Instance); - - /* wait 74 Cycles: required power up waiting time before starting - the SD initialization sequence */ - if (Init.ClockDiv != 0U) - { - sdmmc_clk = sdmmc_clk / (2U * Init.ClockDiv); - } - - if (sdmmc_clk != 0U) - { - HAL_Delay(1U + (74U * 1000U / (sdmmc_clk))); - } - - /* Identify card operating voltage */ - errorstate = SD_PowerON(hsd); - if (errorstate != HAL_SD_ERROR_NONE) - { - hsd->State = HAL_SD_STATE_READY; - hsd->ErrorCode |= errorstate; - return HAL_ERROR; - } - - /* Card initialization */ - errorstate = SD_InitCard(hsd); - if (errorstate != HAL_SD_ERROR_NONE) - { - hsd->State = HAL_SD_STATE_READY; - hsd->ErrorCode |= errorstate; - return HAL_ERROR; - } - - /* Set Block Size for Card */ - errorstate = SDMMC_CmdBlockLength(hsd->Instance, BLOCKSIZE); - if (errorstate != HAL_SD_ERROR_NONE) - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - hsd->ErrorCode |= errorstate; - hsd->State = HAL_SD_STATE_READY; - return HAL_ERROR; - } - - return HAL_OK; -} - -/** - * @brief De-Initializes the SD card. - * @param hsd: Pointer to SD handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SD_DeInit(SD_HandleTypeDef *hsd) -{ - /* Check the SD handle allocation */ - if (hsd == NULL) - { - return HAL_ERROR; - } - - /* Check the parameters */ - assert_param(IS_SDMMC_ALL_INSTANCE(hsd->Instance)); - - hsd->State = HAL_SD_STATE_BUSY; - -#if (USE_SD_TRANSCEIVER != 0U) - /* Deactivate the 1.8V Mode */ - if (hsd->Init.TranceiverPresent == SDMMC_TRANSCEIVER_PRESENT) - { -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) - if (hsd->DriveTransceiver_1_8V_Callback == NULL) - { - hsd->DriveTransceiver_1_8V_Callback = HAL_SD_DriveTransceiver_1_8V_Callback; - } - hsd->DriveTransceiver_1_8V_Callback(RESET); -#else - HAL_SD_DriveTransceiver_1_8V_Callback(RESET); -#endif /* USE_HAL_SD_REGISTER_CALLBACKS */ - } -#endif /* USE_SD_TRANSCEIVER */ - - /* Set SD power state to off */ - SD_PowerOFF(hsd); - -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) - if (hsd->MspDeInitCallback == NULL) - { - hsd->MspDeInitCallback = HAL_SD_MspDeInit; - } - - /* DeInit the low level hardware */ - hsd->MspDeInitCallback(hsd); -#else - /* De-Initialize the MSP layer */ - HAL_SD_MspDeInit(hsd); -#endif /* USE_HAL_SD_REGISTER_CALLBACKS */ - - hsd->ErrorCode = HAL_SD_ERROR_NONE; - hsd->State = HAL_SD_STATE_RESET; - - return HAL_OK; -} - - -/** - * @brief Initializes the SD MSP. - * @param hsd: Pointer to SD handle - * @retval None - */ -__weak void HAL_SD_MspInit(SD_HandleTypeDef *hsd) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hsd); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_SD_MspInit could be implemented in the user file - */ -} - -/** - * @brief De-Initialize SD MSP. - * @param hsd: Pointer to SD handle - * @retval None - */ -__weak void HAL_SD_MspDeInit(SD_HandleTypeDef *hsd) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hsd); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_SD_MspDeInit could be implemented in the user file - */ -} - -/** - * @} - */ - -/** @addtogroup SD_Exported_Functions_Group2 - * @brief Data transfer functions - * -@verbatim - ============================================================================== - ##### IO operation functions ##### - ============================================================================== - [..] - This subsection provides a set of functions allowing to manage the data - transfer from/to SD card. - -@endverbatim - * @{ - */ - -/** - * @brief Reads block(s) from a specified address in a card. The Data transfer - * is managed by polling mode. - * @note This API should be followed by a check on the card state through - * HAL_SD_GetCardState(). - * @param hsd: Pointer to SD handle - * @param pData: pointer to the buffer that will contain the received data - * @param BlockAdd: Block Address from where data is to be read - * @param NumberOfBlocks: Number of SD blocks to read - * @param Timeout: Specify timeout value - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SD_ReadBlocks(SD_HandleTypeDef *hsd, uint8_t *pData, uint32_t BlockAdd, uint32_t NumberOfBlocks, - uint32_t Timeout) -{ - SDMMC_DataInitTypeDef config; - uint32_t errorstate; - uint32_t tickstart = HAL_GetTick(); - uint32_t count; - uint32_t data; - uint32_t dataremaining; - uint32_t add = BlockAdd; - uint8_t *tempbuff = pData; - - if (NULL == pData) - { - hsd->ErrorCode |= HAL_SD_ERROR_PARAM; - return HAL_ERROR; - } - - if (hsd->State == HAL_SD_STATE_READY) - { - hsd->ErrorCode = HAL_SD_ERROR_NONE; - - if ((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) - { - hsd->ErrorCode |= HAL_SD_ERROR_ADDR_OUT_OF_RANGE; - return HAL_ERROR; - } - - hsd->State = HAL_SD_STATE_BUSY; - - /* Initialize data control register */ - hsd->Instance->DCTRL = 0U; - - if (hsd->SdCard.CardType != CARD_SDHC_SDXC) - { - add *= 512U; - } - - /* Configure the SD DPSM (Data Path State Machine) */ - config.DataTimeOut = SDMMC_DATATIMEOUT; - config.DataLength = NumberOfBlocks * BLOCKSIZE; - config.DataBlockSize = SDMMC_DATABLOCK_SIZE_512B; - config.TransferDir = SDMMC_TRANSFER_DIR_TO_SDMMC; - config.TransferMode = SDMMC_TRANSFER_MODE_BLOCK; - config.DPSM = SDMMC_DPSM_DISABLE; - (void)SDMMC_ConfigData(hsd->Instance, &config); - __SDMMC_CMDTRANS_ENABLE(hsd->Instance); - - /* Read block(s) in polling mode */ - if (NumberOfBlocks > 1U) - { - hsd->Context = SD_CONTEXT_READ_MULTIPLE_BLOCK; - - /* Read Multi Block command */ - errorstate = SDMMC_CmdReadMultiBlock(hsd->Instance, add); - } - else - { - hsd->Context = SD_CONTEXT_READ_SINGLE_BLOCK; - - /* Read Single Block command */ - errorstate = SDMMC_CmdReadSingleBlock(hsd->Instance, add); - } - if (errorstate != HAL_SD_ERROR_NONE) - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - hsd->ErrorCode |= errorstate; - hsd->State = HAL_SD_STATE_READY; - hsd->Context = SD_CONTEXT_NONE; - return HAL_ERROR; - } - - /* Poll on SDMMC flags */ - dataremaining = config.DataLength; - while (!__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXOVERR | SDMMC_FLAG_DCRCFAIL | SDMMC_FLAG_DTIMEOUT | SDMMC_FLAG_DATAEND)) - { - if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXFIFOHF) && (dataremaining >= 32U)) - { - /* Read data from SDMMC Rx FIFO */ - for (count = 0U; count < 8U; count++) - { - data = SDMMC_ReadFIFO(hsd->Instance); - *tempbuff = (uint8_t)(data & 0xFFU); - tempbuff++; - *tempbuff = (uint8_t)((data >> 8U) & 0xFFU); - tempbuff++; - *tempbuff = (uint8_t)((data >> 16U) & 0xFFU); - tempbuff++; - *tempbuff = (uint8_t)((data >> 24U) & 0xFFU); - tempbuff++; - } - dataremaining -= 32U; - } - - if (((HAL_GetTick() - tickstart) >= Timeout) || (Timeout == 0U)) - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - hsd->ErrorCode |= HAL_SD_ERROR_TIMEOUT; - hsd->State = HAL_SD_STATE_READY; - hsd->Context = SD_CONTEXT_NONE; - return HAL_TIMEOUT; - } - } - __SDMMC_CMDTRANS_DISABLE(hsd->Instance); - - /* Send stop transmission command in case of multiblock read */ - if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DATAEND) && (NumberOfBlocks > 1U)) - { - if (hsd->SdCard.CardType != CARD_SECURED) - { - /* Send stop transmission command */ - errorstate = SDMMC_CmdStopTransfer(hsd->Instance); - if (errorstate != HAL_SD_ERROR_NONE) - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - hsd->ErrorCode |= errorstate; - hsd->State = HAL_SD_STATE_READY; - hsd->Context = SD_CONTEXT_NONE; - return HAL_ERROR; - } - } - } - - /* Get error state */ - if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DTIMEOUT)) - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - hsd->ErrorCode |= HAL_SD_ERROR_DATA_TIMEOUT; - hsd->State = HAL_SD_STATE_READY; - hsd->Context = SD_CONTEXT_NONE; - return HAL_ERROR; - } - else if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DCRCFAIL)) - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - hsd->ErrorCode |= HAL_SD_ERROR_DATA_CRC_FAIL; - hsd->State = HAL_SD_STATE_READY; - hsd->Context = SD_CONTEXT_NONE; - return HAL_ERROR; - } - else if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXOVERR)) - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - hsd->ErrorCode |= HAL_SD_ERROR_RX_OVERRUN; - hsd->State = HAL_SD_STATE_READY; - hsd->Context = SD_CONTEXT_NONE; - return HAL_ERROR; - } - else - { - /* Nothing to do */ - } - - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_DATA_FLAGS); - - hsd->State = HAL_SD_STATE_READY; - - return HAL_OK; - } - else - { - hsd->ErrorCode |= HAL_SD_ERROR_BUSY; - return HAL_ERROR; - } -} - -/** - * @brief Allows to write block(s) to a specified address in a card. The Data - * transfer is managed by polling mode. - * @note This API should be followed by a check on the card state through - * HAL_SD_GetCardState(). - * @param hsd: Pointer to SD handle - * @param pData: pointer to the buffer that will contain the data to transmit - * @param BlockAdd: Block Address where data will be written - * @param NumberOfBlocks: Number of SD blocks to write - * @param Timeout: Specify timeout value - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SD_WriteBlocks(SD_HandleTypeDef *hsd, const uint8_t *pData, uint32_t BlockAdd, - uint32_t NumberOfBlocks, uint32_t Timeout) -{ - SDMMC_DataInitTypeDef config; - uint32_t errorstate; - uint32_t tickstart = HAL_GetTick(); - uint32_t count; - uint32_t data; - uint32_t dataremaining; - uint32_t add = BlockAdd; - const uint8_t *tempbuff = pData; - - if (NULL == pData) - { - hsd->ErrorCode |= HAL_SD_ERROR_PARAM; - return HAL_ERROR; - } - - if (hsd->State == HAL_SD_STATE_READY) - { - hsd->ErrorCode = HAL_SD_ERROR_NONE; - - if ((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) - { - hsd->ErrorCode |= HAL_SD_ERROR_ADDR_OUT_OF_RANGE; - return HAL_ERROR; - } - - hsd->State = HAL_SD_STATE_BUSY; - - /* Initialize data control register */ - hsd->Instance->DCTRL = 0U; - - if (hsd->SdCard.CardType != CARD_SDHC_SDXC) - { - add *= 512U; - } - - /* Configure the SD DPSM (Data Path State Machine) */ - config.DataTimeOut = SDMMC_DATATIMEOUT; - config.DataLength = NumberOfBlocks * BLOCKSIZE; - config.DataBlockSize = SDMMC_DATABLOCK_SIZE_512B; - config.TransferDir = SDMMC_TRANSFER_DIR_TO_CARD; - config.TransferMode = SDMMC_TRANSFER_MODE_BLOCK; - config.DPSM = SDMMC_DPSM_DISABLE; - (void)SDMMC_ConfigData(hsd->Instance, &config); - __SDMMC_CMDTRANS_ENABLE(hsd->Instance); - - /* Write Blocks in Polling mode */ - if (NumberOfBlocks > 1U) - { - hsd->Context = SD_CONTEXT_WRITE_MULTIPLE_BLOCK; - - /* Write Multi Block command */ - errorstate = SDMMC_CmdWriteMultiBlock(hsd->Instance, add); - } - else - { - hsd->Context = SD_CONTEXT_WRITE_SINGLE_BLOCK; - - /* Write Single Block command */ - errorstate = SDMMC_CmdWriteSingleBlock(hsd->Instance, add); - } - if (errorstate != HAL_SD_ERROR_NONE) - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - hsd->ErrorCode |= errorstate; - hsd->State = HAL_SD_STATE_READY; - hsd->Context = SD_CONTEXT_NONE; - return HAL_ERROR; - } - - /* Write block(s) in polling mode */ - dataremaining = config.DataLength; - while (!__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_TXUNDERR | SDMMC_FLAG_DCRCFAIL | SDMMC_FLAG_DTIMEOUT | - SDMMC_FLAG_DATAEND)) - { - if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_TXFIFOHE) && (dataremaining >= 32U)) - { - /* Write data to SDMMC Tx FIFO */ - for (count = 0U; count < 8U; count++) - { - data = (uint32_t)(*tempbuff); - tempbuff++; - data |= ((uint32_t)(*tempbuff) << 8U); - tempbuff++; - data |= ((uint32_t)(*tempbuff) << 16U); - tempbuff++; - data |= ((uint32_t)(*tempbuff) << 24U); - tempbuff++; - (void)SDMMC_WriteFIFO(hsd->Instance, &data); - } - dataremaining -= 32U; - } - - if (((HAL_GetTick() - tickstart) >= Timeout) || (Timeout == 0U)) - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - hsd->ErrorCode |= errorstate; - hsd->State = HAL_SD_STATE_READY; - hsd->Context = SD_CONTEXT_NONE; - return HAL_TIMEOUT; - } - } - __SDMMC_CMDTRANS_DISABLE(hsd->Instance); - - /* Send stop transmission command in case of multiblock write */ - if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DATAEND) && (NumberOfBlocks > 1U)) - { - if (hsd->SdCard.CardType != CARD_SECURED) - { - /* Send stop transmission command */ - errorstate = SDMMC_CmdStopTransfer(hsd->Instance); - if (errorstate != HAL_SD_ERROR_NONE) - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - hsd->ErrorCode |= errorstate; - hsd->State = HAL_SD_STATE_READY; - hsd->Context = SD_CONTEXT_NONE; - return HAL_ERROR; - } - } - } - - /* Get error state */ - if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DTIMEOUT)) - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - hsd->ErrorCode |= HAL_SD_ERROR_DATA_TIMEOUT; - hsd->State = HAL_SD_STATE_READY; - hsd->Context = SD_CONTEXT_NONE; - return HAL_ERROR; - } - else if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DCRCFAIL)) - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - hsd->ErrorCode |= HAL_SD_ERROR_DATA_CRC_FAIL; - hsd->State = HAL_SD_STATE_READY; - hsd->Context = SD_CONTEXT_NONE; - return HAL_ERROR; - } - else if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_TXUNDERR)) - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - hsd->ErrorCode |= HAL_SD_ERROR_TX_UNDERRUN; - hsd->State = HAL_SD_STATE_READY; - hsd->Context = SD_CONTEXT_NONE; - return HAL_ERROR; - } - else - { - /* Nothing to do */ - } - - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_DATA_FLAGS); - - hsd->State = HAL_SD_STATE_READY; - - return HAL_OK; - } - else - { - hsd->ErrorCode |= HAL_SD_ERROR_BUSY; - return HAL_ERROR; - } -} - -/** - * @brief Reads block(s) from a specified address in a card. The Data transfer - * is managed in interrupt mode. - * @note This API should be followed by a check on the card state through - * HAL_SD_GetCardState(). - * @note You could also check the IT transfer process through the SD Rx - * interrupt event. - * @param hsd: Pointer to SD handle - * @param pData: Pointer to the buffer that will contain the received data - * @param BlockAdd: Block Address from where data is to be read - * @param NumberOfBlocks: Number of blocks to read. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SD_ReadBlocks_IT(SD_HandleTypeDef *hsd, uint8_t *pData, uint32_t BlockAdd, - uint32_t NumberOfBlocks) -{ - SDMMC_DataInitTypeDef config; - uint32_t errorstate; - uint32_t add = BlockAdd; - - if (NULL == pData) - { - hsd->ErrorCode |= HAL_SD_ERROR_PARAM; - return HAL_ERROR; - } - - if (hsd->State == HAL_SD_STATE_READY) - { - hsd->ErrorCode = HAL_SD_ERROR_NONE; - - if ((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) - { - hsd->ErrorCode |= HAL_SD_ERROR_ADDR_OUT_OF_RANGE; - return HAL_ERROR; - } - - hsd->State = HAL_SD_STATE_BUSY; - - /* Initialize data control register */ - hsd->Instance->DCTRL = 0U; - - hsd->pRxBuffPtr = pData; - hsd->RxXferSize = BLOCKSIZE * NumberOfBlocks; - - if (hsd->SdCard.CardType != CARD_SDHC_SDXC) - { - add *= 512U; - } - - /* Configure the SD DPSM (Data Path State Machine) */ - config.DataTimeOut = SDMMC_DATATIMEOUT; - config.DataLength = BLOCKSIZE * NumberOfBlocks; - config.DataBlockSize = SDMMC_DATABLOCK_SIZE_512B; - config.TransferDir = SDMMC_TRANSFER_DIR_TO_SDMMC; - config.TransferMode = SDMMC_TRANSFER_MODE_BLOCK; - config.DPSM = SDMMC_DPSM_DISABLE; - (void)SDMMC_ConfigData(hsd->Instance, &config); - __SDMMC_CMDTRANS_ENABLE(hsd->Instance); - - /* Read Blocks in IT mode */ - if (NumberOfBlocks > 1U) - { - hsd->Context = (SD_CONTEXT_READ_MULTIPLE_BLOCK | SD_CONTEXT_IT); - - /* Read Multi Block command */ - errorstate = SDMMC_CmdReadMultiBlock(hsd->Instance, add); - } - else - { - hsd->Context = (SD_CONTEXT_READ_SINGLE_BLOCK | SD_CONTEXT_IT); - - /* Read Single Block command */ - errorstate = SDMMC_CmdReadSingleBlock(hsd->Instance, add); - } - if (errorstate != HAL_SD_ERROR_NONE) - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - hsd->ErrorCode |= errorstate; - hsd->State = HAL_SD_STATE_READY; - hsd->Context = SD_CONTEXT_NONE; - return HAL_ERROR; - } - - __HAL_SD_ENABLE_IT(hsd, (SDMMC_IT_DCRCFAIL | SDMMC_IT_DTIMEOUT | SDMMC_IT_RXOVERR | SDMMC_IT_DATAEND | - SDMMC_FLAG_RXFIFOHF)); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Writes block(s) to a specified address in a card. The Data transfer - * is managed in interrupt mode. - * @note This API should be followed by a check on the card state through - * HAL_SD_GetCardState(). - * @note You could also check the IT transfer process through the SD Tx - * interrupt event. - * @param hsd: Pointer to SD handle - * @param pData: Pointer to the buffer that will contain the data to transmit - * @param BlockAdd: Block Address where data will be written - * @param NumberOfBlocks: Number of blocks to write - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SD_WriteBlocks_IT(SD_HandleTypeDef *hsd, const uint8_t *pData, uint32_t BlockAdd, - uint32_t NumberOfBlocks) -{ - SDMMC_DataInitTypeDef config; - uint32_t errorstate; - uint32_t add = BlockAdd; - - if (NULL == pData) - { - hsd->ErrorCode |= HAL_SD_ERROR_PARAM; - return HAL_ERROR; - } - - if (hsd->State == HAL_SD_STATE_READY) - { - hsd->ErrorCode = HAL_SD_ERROR_NONE; - - if ((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) - { - hsd->ErrorCode |= HAL_SD_ERROR_ADDR_OUT_OF_RANGE; - return HAL_ERROR; - } - - hsd->State = HAL_SD_STATE_BUSY; - - /* Initialize data control register */ - hsd->Instance->DCTRL = 0U; - - hsd->pTxBuffPtr = pData; - hsd->TxXferSize = BLOCKSIZE * NumberOfBlocks; - - if (hsd->SdCard.CardType != CARD_SDHC_SDXC) - { - add *= 512U; - } - - /* Configure the SD DPSM (Data Path State Machine) */ - config.DataTimeOut = SDMMC_DATATIMEOUT; - config.DataLength = BLOCKSIZE * NumberOfBlocks; - config.DataBlockSize = SDMMC_DATABLOCK_SIZE_512B; - config.TransferDir = SDMMC_TRANSFER_DIR_TO_CARD; - config.TransferMode = SDMMC_TRANSFER_MODE_BLOCK; - config.DPSM = SDMMC_DPSM_DISABLE; - (void)SDMMC_ConfigData(hsd->Instance, &config); - - __SDMMC_CMDTRANS_ENABLE(hsd->Instance); - - /* Write Blocks in Polling mode */ - if (NumberOfBlocks > 1U) - { - hsd->Context = (SD_CONTEXT_WRITE_MULTIPLE_BLOCK | SD_CONTEXT_IT); - - /* Write Multi Block command */ - errorstate = SDMMC_CmdWriteMultiBlock(hsd->Instance, add); - } - else - { - hsd->Context = (SD_CONTEXT_WRITE_SINGLE_BLOCK | SD_CONTEXT_IT); - - /* Write Single Block command */ - errorstate = SDMMC_CmdWriteSingleBlock(hsd->Instance, add); - } - if (errorstate != HAL_SD_ERROR_NONE) - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - hsd->ErrorCode |= errorstate; - hsd->State = HAL_SD_STATE_READY; - hsd->Context = SD_CONTEXT_NONE; - return HAL_ERROR; - } - - /* Enable transfer interrupts */ - __HAL_SD_ENABLE_IT(hsd, (SDMMC_IT_DCRCFAIL | SDMMC_IT_DTIMEOUT | SDMMC_IT_TXUNDERR | SDMMC_IT_DATAEND | - SDMMC_FLAG_TXFIFOHE)); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Reads block(s) from a specified address in a card. The Data transfer - * is managed by DMA mode. - * @note This API should be followed by a check on the card state through - * HAL_SD_GetCardState(). - * @note You could also check the DMA transfer process through the SD Rx - * interrupt event. - * @param hsd: Pointer SD handle - * @param pData: Pointer to the buffer that will contain the received data - * @param BlockAdd: Block Address from where data is to be read - * @param NumberOfBlocks: Number of blocks to read. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SD_ReadBlocks_DMA(SD_HandleTypeDef *hsd, uint8_t *pData, uint32_t BlockAdd, - uint32_t NumberOfBlocks) -{ - SDMMC_DataInitTypeDef config; - uint32_t errorstate; - uint32_t add = BlockAdd; - - if (NULL == pData) - { - hsd->ErrorCode |= HAL_SD_ERROR_PARAM; - return HAL_ERROR; - } - - if (hsd->State == HAL_SD_STATE_READY) - { - hsd->ErrorCode = HAL_SD_ERROR_NONE; - - if ((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) - { - hsd->ErrorCode |= HAL_SD_ERROR_ADDR_OUT_OF_RANGE; - return HAL_ERROR; - } - - hsd->State = HAL_SD_STATE_BUSY; - - /* Initialize data control register */ - hsd->Instance->DCTRL = 0U; - - hsd->pRxBuffPtr = pData; - hsd->RxXferSize = BLOCKSIZE * NumberOfBlocks; - - if (hsd->SdCard.CardType != CARD_SDHC_SDXC) - { - add *= 512U; - } - - /* Configure the SD DPSM (Data Path State Machine) */ - config.DataTimeOut = SDMMC_DATATIMEOUT; - config.DataLength = BLOCKSIZE * NumberOfBlocks; - config.DataBlockSize = SDMMC_DATABLOCK_SIZE_512B; - config.TransferDir = SDMMC_TRANSFER_DIR_TO_SDMMC; - config.TransferMode = SDMMC_TRANSFER_MODE_BLOCK; - config.DPSM = SDMMC_DPSM_DISABLE; - (void)SDMMC_ConfigData(hsd->Instance, &config); - - __SDMMC_CMDTRANS_ENABLE(hsd->Instance); - hsd->Instance->IDMABASE0 = (uint32_t) pData ; - hsd->Instance->IDMACTRL = SDMMC_ENABLE_IDMA_SINGLE_BUFF; - - /* Read Blocks in DMA mode */ - if (NumberOfBlocks > 1U) - { - hsd->Context = (SD_CONTEXT_READ_MULTIPLE_BLOCK | SD_CONTEXT_DMA); - - /* Read Multi Block command */ - errorstate = SDMMC_CmdReadMultiBlock(hsd->Instance, add); - } - else - { - hsd->Context = (SD_CONTEXT_READ_SINGLE_BLOCK | SD_CONTEXT_DMA); - - /* Read Single Block command */ - errorstate = SDMMC_CmdReadSingleBlock(hsd->Instance, add); - } - if (errorstate != HAL_SD_ERROR_NONE) - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - hsd->ErrorCode |= errorstate; - hsd->State = HAL_SD_STATE_READY; - hsd->Context = SD_CONTEXT_NONE; - return HAL_ERROR; - } - - /* Enable transfer interrupts */ - __HAL_SD_ENABLE_IT(hsd, (SDMMC_IT_DCRCFAIL | SDMMC_IT_DTIMEOUT | SDMMC_IT_RXOVERR | SDMMC_IT_DATAEND)); - - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Writes block(s) to a specified address in a card. The Data transfer - * is managed by DMA mode. - * @note This API should be followed by a check on the card state through - * HAL_SD_GetCardState(). - * @note You could also check the DMA transfer process through the SD Tx - * interrupt event. - * @param hsd: Pointer to SD handle - * @param pData: Pointer to the buffer that will contain the data to transmit - * @param BlockAdd: Block Address where data will be written - * @param NumberOfBlocks: Number of blocks to write - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SD_WriteBlocks_DMA(SD_HandleTypeDef *hsd, const uint8_t *pData, uint32_t BlockAdd, - uint32_t NumberOfBlocks) -{ - SDMMC_DataInitTypeDef config; - uint32_t errorstate; - uint32_t add = BlockAdd; - - if (NULL == pData) - { - hsd->ErrorCode |= HAL_SD_ERROR_PARAM; - return HAL_ERROR; - } - - if (hsd->State == HAL_SD_STATE_READY) - { - hsd->ErrorCode = HAL_SD_ERROR_NONE; - - if ((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) - { - hsd->ErrorCode |= HAL_SD_ERROR_ADDR_OUT_OF_RANGE; - return HAL_ERROR; - } - - hsd->State = HAL_SD_STATE_BUSY; - - /* Initialize data control register */ - hsd->Instance->DCTRL = 0U; - - hsd->pTxBuffPtr = pData; - hsd->TxXferSize = BLOCKSIZE * NumberOfBlocks; - - if (hsd->SdCard.CardType != CARD_SDHC_SDXC) - { - add *= 512U; - } - - /* Configure the SD DPSM (Data Path State Machine) */ - config.DataTimeOut = SDMMC_DATATIMEOUT; - config.DataLength = BLOCKSIZE * NumberOfBlocks; - config.DataBlockSize = SDMMC_DATABLOCK_SIZE_512B; - config.TransferDir = SDMMC_TRANSFER_DIR_TO_CARD; - config.TransferMode = SDMMC_TRANSFER_MODE_BLOCK; - config.DPSM = SDMMC_DPSM_DISABLE; - (void)SDMMC_ConfigData(hsd->Instance, &config); - - - __SDMMC_CMDTRANS_ENABLE(hsd->Instance); - - hsd->Instance->IDMABASE0 = (uint32_t) pData ; - hsd->Instance->IDMACTRL = SDMMC_ENABLE_IDMA_SINGLE_BUFF; - - /* Write Blocks in Polling mode */ - if (NumberOfBlocks > 1U) - { - hsd->Context = (SD_CONTEXT_WRITE_MULTIPLE_BLOCK | SD_CONTEXT_DMA); - - /* Write Multi Block command */ - errorstate = SDMMC_CmdWriteMultiBlock(hsd->Instance, add); - } - else - { - hsd->Context = (SD_CONTEXT_WRITE_SINGLE_BLOCK | SD_CONTEXT_DMA); - - /* Write Single Block command */ - errorstate = SDMMC_CmdWriteSingleBlock(hsd->Instance, add); - } - if (errorstate != HAL_SD_ERROR_NONE) - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - hsd->ErrorCode |= errorstate; - hsd->State = HAL_SD_STATE_READY; - hsd->Context = SD_CONTEXT_NONE; - return HAL_ERROR; - } - - /* Enable transfer interrupts */ - __HAL_SD_ENABLE_IT(hsd, (SDMMC_IT_DCRCFAIL | SDMMC_IT_DTIMEOUT | SDMMC_IT_TXUNDERR | SDMMC_IT_DATAEND)); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Erases the specified memory area of the given SD card. - * @note This API should be followed by a check on the card state through - * HAL_SD_GetCardState(). - * @param hsd: Pointer to SD handle - * @param BlockStartAdd: Start Block address - * @param BlockEndAdd: End Block address - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SD_Erase(SD_HandleTypeDef *hsd, uint32_t BlockStartAdd, uint32_t BlockEndAdd) -{ - uint32_t errorstate; - uint32_t start_add = BlockStartAdd; - uint32_t end_add = BlockEndAdd; - - if (hsd->State == HAL_SD_STATE_READY) - { - hsd->ErrorCode = HAL_SD_ERROR_NONE; - - if (end_add < start_add) - { - hsd->ErrorCode |= HAL_SD_ERROR_PARAM; - return HAL_ERROR; - } - - if (end_add > (hsd->SdCard.LogBlockNbr)) - { - hsd->ErrorCode |= HAL_SD_ERROR_ADDR_OUT_OF_RANGE; - return HAL_ERROR; - } - - hsd->State = HAL_SD_STATE_BUSY; - - /* Check if the card command class supports erase command */ - if (((hsd->SdCard.Class) & SDMMC_CCCC_ERASE) == 0U) - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - hsd->ErrorCode |= HAL_SD_ERROR_REQUEST_NOT_APPLICABLE; - hsd->State = HAL_SD_STATE_READY; - return HAL_ERROR; - } - - if ((SDMMC_GetResponse(hsd->Instance, SDMMC_RESP1) & SDMMC_CARD_LOCKED) == SDMMC_CARD_LOCKED) - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - hsd->ErrorCode |= HAL_SD_ERROR_LOCK_UNLOCK_FAILED; - hsd->State = HAL_SD_STATE_READY; - return HAL_ERROR; - } - - /* Get start and end block for high capacity cards */ - if (hsd->SdCard.CardType != CARD_SDHC_SDXC) - { - start_add *= 512U; - end_add *= 512U; - } - - /* According to sd-card spec 1.0 ERASE_GROUP_START (CMD32) and erase_group_end(CMD33) */ - if (hsd->SdCard.CardType != CARD_SECURED) - { - /* Send CMD32 SD_ERASE_GRP_START with argument as addr */ - errorstate = SDMMC_CmdSDEraseStartAdd(hsd->Instance, start_add); - if (errorstate != HAL_SD_ERROR_NONE) - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - hsd->ErrorCode |= errorstate; - hsd->State = HAL_SD_STATE_READY; - return HAL_ERROR; - } - - /* Send CMD33 SD_ERASE_GRP_END with argument as addr */ - errorstate = SDMMC_CmdSDEraseEndAdd(hsd->Instance, end_add); - if (errorstate != HAL_SD_ERROR_NONE) - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - hsd->ErrorCode |= errorstate; - hsd->State = HAL_SD_STATE_READY; - return HAL_ERROR; - } - } - - /* Send CMD38 ERASE */ - errorstate = SDMMC_CmdErase(hsd->Instance, 0UL); - if (errorstate != HAL_SD_ERROR_NONE) - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - hsd->ErrorCode |= errorstate; - hsd->State = HAL_SD_STATE_READY; - return HAL_ERROR; - } - - hsd->State = HAL_SD_STATE_READY; - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief This function handles SD card interrupt request. - * @param hsd: Pointer to SD handle - * @retval None - */ -void HAL_SD_IRQHandler(SD_HandleTypeDef *hsd) -{ - uint32_t errorstate; - uint32_t context = hsd->Context; - - /* Check for SDMMC interrupt flags */ - if ((__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXFIFOHF) != RESET) && ((context & SD_CONTEXT_IT) != 0U)) - { - SD_Read_IT(hsd); - } - - else if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DATAEND) != RESET) - { - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_FLAG_DATAEND); - - __HAL_SD_DISABLE_IT(hsd, SDMMC_IT_DATAEND | SDMMC_IT_DCRCFAIL | SDMMC_IT_DTIMEOUT | \ - SDMMC_IT_TXUNDERR | SDMMC_IT_RXOVERR | SDMMC_IT_TXFIFOHE | \ - SDMMC_IT_RXFIFOHF); - - __HAL_SD_DISABLE_IT(hsd, SDMMC_IT_IDMABTC); - __SDMMC_CMDTRANS_DISABLE(hsd->Instance); - - if ((context & SD_CONTEXT_IT) != 0U) - { - if (((context & SD_CONTEXT_READ_MULTIPLE_BLOCK) != 0U) || ((context & SD_CONTEXT_WRITE_MULTIPLE_BLOCK) != 0U)) - { - errorstate = SDMMC_CmdStopTransfer(hsd->Instance); - if (errorstate != HAL_SD_ERROR_NONE) - { - hsd->ErrorCode |= errorstate; -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) - hsd->ErrorCallback(hsd); -#else - HAL_SD_ErrorCallback(hsd); -#endif /* USE_HAL_SD_REGISTER_CALLBACKS */ - } - } - - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_DATA_FLAGS); - - hsd->State = HAL_SD_STATE_READY; - hsd->Context = SD_CONTEXT_NONE; - if (((context & SD_CONTEXT_READ_SINGLE_BLOCK) != 0U) || ((context & SD_CONTEXT_READ_MULTIPLE_BLOCK) != 0U)) - { -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) - hsd->RxCpltCallback(hsd); -#else - HAL_SD_RxCpltCallback(hsd); -#endif /* USE_HAL_SD_REGISTER_CALLBACKS */ - } - else - { -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) - hsd->TxCpltCallback(hsd); -#else - HAL_SD_TxCpltCallback(hsd); -#endif /* USE_HAL_SD_REGISTER_CALLBACKS */ - } - } - else if ((context & SD_CONTEXT_DMA) != 0U) - { - hsd->Instance->DLEN = 0; - hsd->Instance->DCTRL = 0; - hsd->Instance->IDMACTRL = SDMMC_DISABLE_IDMA; - - /* Stop Transfer for Write Multi blocks or Read Multi blocks */ - if (((context & SD_CONTEXT_READ_MULTIPLE_BLOCK) != 0U) || ((context & SD_CONTEXT_WRITE_MULTIPLE_BLOCK) != 0U)) - { - errorstate = SDMMC_CmdStopTransfer(hsd->Instance); - if (errorstate != HAL_SD_ERROR_NONE) - { - hsd->ErrorCode |= errorstate; -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) - hsd->ErrorCallback(hsd); -#else - HAL_SD_ErrorCallback(hsd); -#endif /* USE_HAL_SD_REGISTER_CALLBACKS */ - } - } - - hsd->State = HAL_SD_STATE_READY; - hsd->Context = SD_CONTEXT_NONE; - if (((context & SD_CONTEXT_WRITE_SINGLE_BLOCK) != 0U) || ((context & SD_CONTEXT_WRITE_MULTIPLE_BLOCK) != 0U)) - { -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) - hsd->TxCpltCallback(hsd); -#else - HAL_SD_TxCpltCallback(hsd); -#endif /* USE_HAL_SD_REGISTER_CALLBACKS */ - } - if (((context & SD_CONTEXT_READ_SINGLE_BLOCK) != 0U) || ((context & SD_CONTEXT_READ_MULTIPLE_BLOCK) != 0U)) - { -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) - hsd->RxCpltCallback(hsd); -#else - HAL_SD_RxCpltCallback(hsd); -#endif /* USE_HAL_SD_REGISTER_CALLBACKS */ - } - } - else - { - /* Nothing to do */ - } - } - - else if ((__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_TXFIFOHE) != RESET) && ((context & SD_CONTEXT_IT) != 0U)) - { - SD_Write_IT(hsd); - } - - else if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DCRCFAIL | SDMMC_FLAG_DTIMEOUT | SDMMC_FLAG_RXOVERR | - SDMMC_FLAG_TXUNDERR) != RESET) - { - /* Set Error code */ - if (__HAL_SD_GET_FLAG(hsd, SDMMC_IT_DCRCFAIL) != RESET) - { - hsd->ErrorCode |= HAL_SD_ERROR_DATA_CRC_FAIL; - } - if (__HAL_SD_GET_FLAG(hsd, SDMMC_IT_DTIMEOUT) != RESET) - { - hsd->ErrorCode |= HAL_SD_ERROR_DATA_TIMEOUT; - } - if (__HAL_SD_GET_FLAG(hsd, SDMMC_IT_RXOVERR) != RESET) - { - hsd->ErrorCode |= HAL_SD_ERROR_RX_OVERRUN; - } - if (__HAL_SD_GET_FLAG(hsd, SDMMC_IT_TXUNDERR) != RESET) - { - hsd->ErrorCode |= HAL_SD_ERROR_TX_UNDERRUN; - } - - /* Clear All flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_DATA_FLAGS); - - /* Disable all interrupts */ - __HAL_SD_DISABLE_IT(hsd, SDMMC_IT_DATAEND | SDMMC_IT_DCRCFAIL | SDMMC_IT_DTIMEOUT | \ - SDMMC_IT_TXUNDERR | SDMMC_IT_RXOVERR); - - __SDMMC_CMDTRANS_DISABLE(hsd->Instance); - hsd->Instance->DCTRL |= SDMMC_DCTRL_FIFORST; - hsd->Instance->CMD |= SDMMC_CMD_CMDSTOP; - hsd->ErrorCode |= SDMMC_CmdStopTransfer(hsd->Instance); - hsd->Instance->CMD &= ~(SDMMC_CMD_CMDSTOP); - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_FLAG_DABORT); - - if ((context & SD_CONTEXT_IT) != 0U) - { - /* Set the SD state to ready to be able to start again the process */ - hsd->State = HAL_SD_STATE_READY; - hsd->Context = SD_CONTEXT_NONE; -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) - hsd->ErrorCallback(hsd); -#else - HAL_SD_ErrorCallback(hsd); -#endif /* USE_HAL_SD_REGISTER_CALLBACKS */ - } - else if ((context & SD_CONTEXT_DMA) != 0U) - { - if (hsd->ErrorCode != HAL_SD_ERROR_NONE) - { - /* Disable Internal DMA */ - __HAL_SD_DISABLE_IT(hsd, SDMMC_IT_IDMABTC); - hsd->Instance->IDMACTRL = SDMMC_DISABLE_IDMA; - - /* Set the SD state to ready to be able to start again the process */ - hsd->State = HAL_SD_STATE_READY; -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) - hsd->ErrorCallback(hsd); -#else - HAL_SD_ErrorCallback(hsd); -#endif /* USE_HAL_SD_REGISTER_CALLBACKS */ - } - } - else - { - /* Nothing to do */ - } - } - - else if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_IDMABTC) != RESET) - { - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_FLAG_IDMABTC); - if (READ_BIT(hsd->Instance->IDMACTRL, SDMMC_IDMA_IDMABACT) == 0U) - { - /* Current buffer is buffer0, Transfer complete for buffer1 */ - if ((context & SD_CONTEXT_WRITE_MULTIPLE_BLOCK) != 0U) - { -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) - hsd->Write_DMADblBuf1CpltCallback(hsd); -#else - HAL_SDEx_Write_DMADoubleBuf1CpltCallback(hsd); -#endif /* USE_HAL_SD_REGISTER_CALLBACKS */ - } - else /* SD_CONTEXT_READ_MULTIPLE_BLOCK */ - { -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) - hsd->Read_DMADblBuf1CpltCallback(hsd); -#else - HAL_SDEx_Read_DMADoubleBuf1CpltCallback(hsd); -#endif /* USE_HAL_SD_REGISTER_CALLBACKS */ - } - } - else /* SD_DMA_BUFFER1 */ - { - /* Current buffer is buffer1, Transfer complete for buffer0 */ - if ((context & SD_CONTEXT_WRITE_MULTIPLE_BLOCK) != 0U) - { -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) - hsd->Write_DMADblBuf0CpltCallback(hsd); -#else - HAL_SDEx_Write_DMADoubleBuf0CpltCallback(hsd); -#endif /* USE_HAL_SD_REGISTER_CALLBACKS */ - } - else /* SD_CONTEXT_READ_MULTIPLE_BLOCK */ - { -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) - hsd->Read_DMADblBuf0CpltCallback(hsd); -#else - HAL_SDEx_Read_DMADoubleBuf0CpltCallback(hsd); -#endif /* USE_HAL_SD_REGISTER_CALLBACKS */ - } - } - } - else - { - /* Nothing to do */ - } -} - -/** - * @brief return the SD state - * @param hsd: Pointer to sd handle - * @retval HAL state - */ -HAL_SD_StateTypeDef HAL_SD_GetState(SD_HandleTypeDef *hsd) -{ - return hsd->State; -} - -/** - * @brief Return the SD error code - * @param hsd : Pointer to a SD_HandleTypeDef structure that contains - * the configuration information. - * @retval SD Error Code - */ -uint32_t HAL_SD_GetError(SD_HandleTypeDef *hsd) -{ - return hsd->ErrorCode; -} - -/** - * @brief Tx Transfer completed callbacks - * @param hsd: Pointer to SD handle - * @retval None - */ -__weak void HAL_SD_TxCpltCallback(SD_HandleTypeDef *hsd) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hsd); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_SD_TxCpltCallback can be implemented in the user file - */ -} - -/** - * @brief Rx Transfer completed callbacks - * @param hsd: Pointer SD handle - * @retval None - */ -__weak void HAL_SD_RxCpltCallback(SD_HandleTypeDef *hsd) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hsd); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_SD_RxCpltCallback can be implemented in the user file - */ -} - -/** - * @brief SD error callbacks - * @param hsd: Pointer SD handle - * @retval None - */ -__weak void HAL_SD_ErrorCallback(SD_HandleTypeDef *hsd) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hsd); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_SD_ErrorCallback can be implemented in the user file - */ -} - -/** - * @brief SD Abort callbacks - * @param hsd: Pointer SD handle - * @retval None - */ -__weak void HAL_SD_AbortCallback(SD_HandleTypeDef *hsd) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hsd); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_SD_AbortCallback can be implemented in the user file - */ -} - -#if (USE_SD_TRANSCEIVER != 0U) -/** - * @brief Enable/Disable the SD Transceiver 1.8V Mode Callback. - * @param status: Voltage Switch State - * @retval None - */ -__weak void HAL_SD_DriveTransceiver_1_8V_Callback(FlagStatus status) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(status); - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_SD_EnableTransceiver could be implemented in the user file - */ -} -#endif /* USE_SD_TRANSCEIVER */ - -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) -/** - * @brief Register a User SD Callback - * To be used instead of the weak (surcharged) predefined callback - * @note The HAL_SD_RegisterCallback() may be called before HAL_SD_Init() in - * HAL_SD_STATE_RESET to register callbacks for HAL_SD_MSP_INIT_CB_ID - * and HAL_SD_MSP_DEINIT_CB_ID. - * @param hsd : SD handle - * @param CallbackID : ID of the callback to be registered - * This parameter can be one of the following values: - * @arg @ref HAL_SD_TX_CPLT_CB_ID SD Tx Complete Callback ID - * @arg @ref HAL_SD_RX_CPLT_CB_ID SD Rx Complete Callback ID - * @arg @ref HAL_SD_ERROR_CB_ID SD Error Callback ID - * @arg @ref HAL_SD_ABORT_CB_ID SD Abort Callback ID - * @arg @ref HAL_SD_READ_DMA_DBL_BUF0_CPLT_CB_ID SD DMA Rx Double buffer 0 Callback ID - * @arg @ref HAL_SD_READ_DMA_DBL_BUF1_CPLT_CB_ID SD DMA Rx Double buffer 1 Callback ID - * @arg @ref HAL_SD_WRITE_DMA_DBL_BUF0_CPLT_CB_ID SD DMA Tx Double buffer 0 Callback ID - * @arg @ref HAL_SD_WRITE_DMA_DBL_BUF1_CPLT_CB_ID SD DMA Tx Double buffer 1 Callback ID - * @arg @ref HAL_SD_MSP_INIT_CB_ID SD MspInit Callback ID - * @arg @ref HAL_SD_MSP_DEINIT_CB_ID SD MspDeInit Callback ID - * @param pCallback : pointer to the Callback function - * @retval status - */ -HAL_StatusTypeDef HAL_SD_RegisterCallback(SD_HandleTypeDef *hsd, HAL_SD_CallbackIDTypeDef CallbackID, - pSD_CallbackTypeDef pCallback) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (pCallback == NULL) - { - /* Update the error code */ - hsd->ErrorCode |= HAL_SD_ERROR_INVALID_CALLBACK; - return HAL_ERROR; - } - - if (hsd->State == HAL_SD_STATE_READY) - { - switch (CallbackID) - { - case HAL_SD_TX_CPLT_CB_ID : - hsd->TxCpltCallback = pCallback; - break; - case HAL_SD_RX_CPLT_CB_ID : - hsd->RxCpltCallback = pCallback; - break; - case HAL_SD_ERROR_CB_ID : - hsd->ErrorCallback = pCallback; - break; - case HAL_SD_ABORT_CB_ID : - hsd->AbortCpltCallback = pCallback; - break; - case HAL_SD_READ_DMA_DBL_BUF0_CPLT_CB_ID : - hsd->Read_DMADblBuf0CpltCallback = pCallback; - break; - case HAL_SD_READ_DMA_DBL_BUF1_CPLT_CB_ID : - hsd->Read_DMADblBuf1CpltCallback = pCallback; - break; - case HAL_SD_WRITE_DMA_DBL_BUF0_CPLT_CB_ID : - hsd->Write_DMADblBuf0CpltCallback = pCallback; - break; - case HAL_SD_WRITE_DMA_DBL_BUF1_CPLT_CB_ID : - hsd->Write_DMADblBuf1CpltCallback = pCallback; - break; - case HAL_SD_MSP_INIT_CB_ID : - hsd->MspInitCallback = pCallback; - break; - case HAL_SD_MSP_DEINIT_CB_ID : - hsd->MspDeInitCallback = pCallback; - break; - default : - /* Update the error code */ - hsd->ErrorCode |= HAL_SD_ERROR_INVALID_CALLBACK; - /* update return status */ - status = HAL_ERROR; - break; - } - } - else if (hsd->State == HAL_SD_STATE_RESET) - { - switch (CallbackID) - { - case HAL_SD_MSP_INIT_CB_ID : - hsd->MspInitCallback = pCallback; - break; - case HAL_SD_MSP_DEINIT_CB_ID : - hsd->MspDeInitCallback = pCallback; - break; - default : - /* Update the error code */ - hsd->ErrorCode |= HAL_SD_ERROR_INVALID_CALLBACK; - /* update return status */ - status = HAL_ERROR; - break; - } - } - else - { - /* Update the error code */ - hsd->ErrorCode |= HAL_SD_ERROR_INVALID_CALLBACK; - /* update return status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief Unregister a User SD Callback - * SD Callback is redirected to the weak (surcharged) predefined callback - * @note The HAL_SD_UnRegisterCallback() may be called before HAL_SD_Init() in - * HAL_SD_STATE_RESET to register callbacks for HAL_SD_MSP_INIT_CB_ID - * and HAL_SD_MSP_DEINIT_CB_ID. - * @param hsd : SD handle - * @param CallbackID : ID of the callback to be unregistered - * This parameter can be one of the following values: - * @arg @ref HAL_SD_TX_CPLT_CB_ID SD Tx Complete Callback ID - * @arg @ref HAL_SD_RX_CPLT_CB_ID SD Rx Complete Callback ID - * @arg @ref HAL_SD_ERROR_CB_ID SD Error Callback ID - * @arg @ref HAL_SD_ABORT_CB_ID SD Abort Callback ID - * @arg @ref HAL_SD_READ_DMA_DBL_BUF0_CPLT_CB_ID SD DMA Rx Double buffer 0 Callback ID - * @arg @ref HAL_SD_READ_DMA_DBL_BUF1_CPLT_CB_ID SD DMA Rx Double buffer 1 Callback ID - * @arg @ref HAL_SD_WRITE_DMA_DBL_BUF0_CPLT_CB_ID SD DMA Tx Double buffer 0 Callback ID - * @arg @ref HAL_SD_WRITE_DMA_DBL_BUF1_CPLT_CB_ID SD DMA Tx Double buffer 1 Callback ID - * @arg @ref HAL_SD_MSP_INIT_CB_ID SD MspInit Callback ID - * @arg @ref HAL_SD_MSP_DEINIT_CB_ID SD MspDeInit Callback ID - * @retval status - */ -HAL_StatusTypeDef HAL_SD_UnRegisterCallback(SD_HandleTypeDef *hsd, HAL_SD_CallbackIDTypeDef CallbackID) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (hsd->State == HAL_SD_STATE_READY) - { - switch (CallbackID) - { - case HAL_SD_TX_CPLT_CB_ID : - hsd->TxCpltCallback = HAL_SD_TxCpltCallback; - break; - case HAL_SD_RX_CPLT_CB_ID : - hsd->RxCpltCallback = HAL_SD_RxCpltCallback; - break; - case HAL_SD_ERROR_CB_ID : - hsd->ErrorCallback = HAL_SD_ErrorCallback; - break; - case HAL_SD_ABORT_CB_ID : - hsd->AbortCpltCallback = HAL_SD_AbortCallback; - break; - case HAL_SD_READ_DMA_DBL_BUF0_CPLT_CB_ID : - hsd->Read_DMADblBuf0CpltCallback = HAL_SDEx_Read_DMADoubleBuf0CpltCallback; - break; - case HAL_SD_READ_DMA_DBL_BUF1_CPLT_CB_ID : - hsd->Read_DMADblBuf1CpltCallback = HAL_SDEx_Read_DMADoubleBuf1CpltCallback; - break; - case HAL_SD_WRITE_DMA_DBL_BUF0_CPLT_CB_ID : - hsd->Write_DMADblBuf0CpltCallback = HAL_SDEx_Write_DMADoubleBuf0CpltCallback; - break; - case HAL_SD_WRITE_DMA_DBL_BUF1_CPLT_CB_ID : - hsd->Write_DMADblBuf1CpltCallback = HAL_SDEx_Write_DMADoubleBuf1CpltCallback; - break; - case HAL_SD_MSP_INIT_CB_ID : - hsd->MspInitCallback = HAL_SD_MspInit; - break; - case HAL_SD_MSP_DEINIT_CB_ID : - hsd->MspDeInitCallback = HAL_SD_MspDeInit; - break; - default : - /* Update the error code */ - hsd->ErrorCode |= HAL_SD_ERROR_INVALID_CALLBACK; - /* update return status */ - status = HAL_ERROR; - break; - } - } - else if (hsd->State == HAL_SD_STATE_RESET) - { - switch (CallbackID) - { - case HAL_SD_MSP_INIT_CB_ID : - hsd->MspInitCallback = HAL_SD_MspInit; - break; - case HAL_SD_MSP_DEINIT_CB_ID : - hsd->MspDeInitCallback = HAL_SD_MspDeInit; - break; - default : - /* Update the error code */ - hsd->ErrorCode |= HAL_SD_ERROR_INVALID_CALLBACK; - /* update return status */ - status = HAL_ERROR; - break; - } - } - else - { - /* Update the error code */ - hsd->ErrorCode |= HAL_SD_ERROR_INVALID_CALLBACK; - /* update return status */ - status = HAL_ERROR; - } - - return status; -} - -#if (USE_SD_TRANSCEIVER != 0U) -/** - * @brief Register a User SD Transceiver Callback - * To be used instead of the weak (surcharged) predefined callback - * @param hsd : SD handle - * @param pCallback : pointer to the Callback function - * @retval status - */ -HAL_StatusTypeDef HAL_SD_RegisterTransceiverCallback(SD_HandleTypeDef *hsd, pSD_TransceiverCallbackTypeDef pCallback) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (pCallback == NULL) - { - /* Update the error code */ - hsd->ErrorCode |= HAL_SD_ERROR_INVALID_CALLBACK; - return HAL_ERROR; - } - - /* Process locked */ - __HAL_LOCK(hsd); - - if (hsd->State == HAL_SD_STATE_READY) - { - hsd->DriveTransceiver_1_8V_Callback = pCallback; - } - else - { - /* Update the error code */ - hsd->ErrorCode |= HAL_SD_ERROR_INVALID_CALLBACK; - /* update return status */ - status = HAL_ERROR; - } - - /* Release Lock */ - __HAL_UNLOCK(hsd); - return status; -} - -/** - * @brief Unregister a User SD Transceiver Callback - * SD Callback is redirected to the weak (surcharged) predefined callback - * @param hsd : SD handle - * @retval status - */ -HAL_StatusTypeDef HAL_SD_UnRegisterTransceiverCallback(SD_HandleTypeDef *hsd) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Process locked */ - __HAL_LOCK(hsd); - - if (hsd->State == HAL_SD_STATE_READY) - { - hsd->DriveTransceiver_1_8V_Callback = HAL_SD_DriveTransceiver_1_8V_Callback; - } - else - { - /* Update the error code */ - hsd->ErrorCode |= HAL_SD_ERROR_INVALID_CALLBACK; - /* update return status */ - status = HAL_ERROR; - } - - /* Release Lock */ - __HAL_UNLOCK(hsd); - return status; -} -#endif /* USE_SD_TRANSCEIVER */ -#endif /* USE_HAL_SD_REGISTER_CALLBACKS */ - -/** - * @} - */ - -/** @addtogroup SD_Exported_Functions_Group3 - * @brief management functions - * -@verbatim - ============================================================================== - ##### Peripheral Control functions ##### - ============================================================================== - [..] - This subsection provides a set of functions allowing to control the SD card - operations and get the related information - -@endverbatim - * @{ - */ - -/** - * @brief Returns information the information of the card which are stored on - * the CID register. - * @param hsd: Pointer to SD handle - * @param pCID: Pointer to a HAL_SD_CardCIDTypeDef structure that - * contains all CID register parameters - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SD_GetCardCID(SD_HandleTypeDef *hsd, HAL_SD_CardCIDTypeDef *pCID) -{ - pCID->ManufacturerID = (uint8_t)((hsd->CID[0] & 0xFF000000U) >> 24U); - - pCID->OEM_AppliID = (uint16_t)((hsd->CID[0] & 0x00FFFF00U) >> 8U); - - pCID->ProdName1 = (((hsd->CID[0] & 0x000000FFU) << 24U) | ((hsd->CID[1] & 0xFFFFFF00U) >> 8U)); - - pCID->ProdName2 = (uint8_t)(hsd->CID[1] & 0x000000FFU); - - pCID->ProdRev = (uint8_t)((hsd->CID[2] & 0xFF000000U) >> 24U); - - pCID->ProdSN = (((hsd->CID[2] & 0x00FFFFFFU) << 8U) | ((hsd->CID[3] & 0xFF000000U) >> 24U)); - - pCID->Reserved1 = (uint8_t)((hsd->CID[3] & 0x00F00000U) >> 20U); - - pCID->ManufactDate = (uint16_t)((hsd->CID[3] & 0x000FFF00U) >> 8U); - - pCID->CID_CRC = (uint8_t)((hsd->CID[3] & 0x000000FEU) >> 1U); - - pCID->Reserved2 = 1U; - - return HAL_OK; -} - -/** - * @brief Returns information the information of the card which are stored on - * the CSD register. - * @param hsd: Pointer to SD handle - * @param pCSD: Pointer to a HAL_SD_CardCSDTypeDef structure that - * contains all CSD register parameters - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SD_GetCardCSD(SD_HandleTypeDef *hsd, HAL_SD_CardCSDTypeDef *pCSD) -{ - pCSD->CSDStruct = (uint8_t)((hsd->CSD[0] & 0xC0000000U) >> 30U); - - pCSD->SysSpecVersion = (uint8_t)((hsd->CSD[0] & 0x3C000000U) >> 26U); - - pCSD->Reserved1 = (uint8_t)((hsd->CSD[0] & 0x03000000U) >> 24U); - - pCSD->TAAC = (uint8_t)((hsd->CSD[0] & 0x00FF0000U) >> 16U); - - pCSD->NSAC = (uint8_t)((hsd->CSD[0] & 0x0000FF00U) >> 8U); - - pCSD->MaxBusClkFrec = (uint8_t)(hsd->CSD[0] & 0x000000FFU); - - pCSD->CardComdClasses = (uint16_t)((hsd->CSD[1] & 0xFFF00000U) >> 20U); - - pCSD->RdBlockLen = (uint8_t)((hsd->CSD[1] & 0x000F0000U) >> 16U); - - pCSD->PartBlockRead = (uint8_t)((hsd->CSD[1] & 0x00008000U) >> 15U); - - pCSD->WrBlockMisalign = (uint8_t)((hsd->CSD[1] & 0x00004000U) >> 14U); - - pCSD->RdBlockMisalign = (uint8_t)((hsd->CSD[1] & 0x00002000U) >> 13U); - - pCSD->DSRImpl = (uint8_t)((hsd->CSD[1] & 0x00001000U) >> 12U); - - pCSD->Reserved2 = 0U; /*!< Reserved */ - - if (hsd->SdCard.CardType == CARD_SDSC) - { - pCSD->DeviceSize = (((hsd->CSD[1] & 0x000003FFU) << 2U) | ((hsd->CSD[2] & 0xC0000000U) >> 30U)); - - pCSD->MaxRdCurrentVDDMin = (uint8_t)((hsd->CSD[2] & 0x38000000U) >> 27U); - - pCSD->MaxRdCurrentVDDMax = (uint8_t)((hsd->CSD[2] & 0x07000000U) >> 24U); - - pCSD->MaxWrCurrentVDDMin = (uint8_t)((hsd->CSD[2] & 0x00E00000U) >> 21U); - - pCSD->MaxWrCurrentVDDMax = (uint8_t)((hsd->CSD[2] & 0x001C0000U) >> 18U); - - pCSD->DeviceSizeMul = (uint8_t)((hsd->CSD[2] & 0x00038000U) >> 15U); - - hsd->SdCard.BlockNbr = (pCSD->DeviceSize + 1U) ; - hsd->SdCard.BlockNbr *= (1UL << ((pCSD->DeviceSizeMul & 0x07U) + 2U)); - hsd->SdCard.BlockSize = (1UL << (pCSD->RdBlockLen & 0x0FU)); - - hsd->SdCard.LogBlockNbr = (hsd->SdCard.BlockNbr) * ((hsd->SdCard.BlockSize) / 512U); - hsd->SdCard.LogBlockSize = 512U; - } - else if (hsd->SdCard.CardType == CARD_SDHC_SDXC) - { - /* Byte 7 */ - pCSD->DeviceSize = (((hsd->CSD[1] & 0x0000003FU) << 16U) | ((hsd->CSD[2] & 0xFFFF0000U) >> 16U)); - - hsd->SdCard.BlockNbr = ((pCSD->DeviceSize + 1U) * 1024U); - hsd->SdCard.LogBlockNbr = hsd->SdCard.BlockNbr; - hsd->SdCard.BlockSize = 512U; - hsd->SdCard.LogBlockSize = hsd->SdCard.BlockSize; - } - else - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - hsd->ErrorCode |= HAL_SD_ERROR_UNSUPPORTED_FEATURE; - hsd->State = HAL_SD_STATE_READY; - return HAL_ERROR; - } - - pCSD->EraseGrSize = (uint8_t)((hsd->CSD[2] & 0x00004000U) >> 14U); - - pCSD->EraseGrMul = (uint8_t)((hsd->CSD[2] & 0x00003F80U) >> 7U); - - pCSD->WrProtectGrSize = (uint8_t)(hsd->CSD[2] & 0x0000007FU); - - pCSD->WrProtectGrEnable = (uint8_t)((hsd->CSD[3] & 0x80000000U) >> 31U); - - pCSD->ManDeflECC = (uint8_t)((hsd->CSD[3] & 0x60000000U) >> 29U); - - pCSD->WrSpeedFact = (uint8_t)((hsd->CSD[3] & 0x1C000000U) >> 26U); - - pCSD->MaxWrBlockLen = (uint8_t)((hsd->CSD[3] & 0x03C00000U) >> 22U); - - pCSD->WriteBlockPaPartial = (uint8_t)((hsd->CSD[3] & 0x00200000U) >> 21U); - - pCSD->Reserved3 = 0; - - pCSD->ContentProtectAppli = (uint8_t)((hsd->CSD[3] & 0x00010000U) >> 16U); - - pCSD->FileFormatGroup = (uint8_t)((hsd->CSD[3] & 0x00008000U) >> 15U); - - pCSD->CopyFlag = (uint8_t)((hsd->CSD[3] & 0x00004000U) >> 14U); - - pCSD->PermWrProtect = (uint8_t)((hsd->CSD[3] & 0x00002000U) >> 13U); - - pCSD->TempWrProtect = (uint8_t)((hsd->CSD[3] & 0x00001000U) >> 12U); - - pCSD->FileFormat = (uint8_t)((hsd->CSD[3] & 0x00000C00U) >> 10U); - - pCSD->ECC = (uint8_t)((hsd->CSD[3] & 0x00000300U) >> 8U); - - pCSD->CSD_CRC = (uint8_t)((hsd->CSD[3] & 0x000000FEU) >> 1U); - - pCSD->Reserved4 = 1; - - return HAL_OK; -} - -/** - * @brief Gets the SD status info.( shall be called if there is no SD transaction ongoing ) - * @param hsd: Pointer to SD handle - * @param pStatus: Pointer to the HAL_SD_CardStatusTypeDef structure that - * will contain the SD card status information - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SD_GetCardStatus(SD_HandleTypeDef *hsd, HAL_SD_CardStatusTypeDef *pStatus) -{ - uint32_t sd_status[16]; - uint32_t errorstate; - HAL_StatusTypeDef status = HAL_OK; - - if (hsd->State == HAL_SD_STATE_BUSY) - { - return HAL_ERROR; - } - - errorstate = SD_SendSDStatus(hsd, sd_status); - if (errorstate != HAL_SD_ERROR_NONE) - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - hsd->ErrorCode |= errorstate; - hsd->State = HAL_SD_STATE_READY; - status = HAL_ERROR; - } - else - { - pStatus->DataBusWidth = (uint8_t)((sd_status[0] & 0xC0U) >> 6U); - - pStatus->SecuredMode = (uint8_t)((sd_status[0] & 0x20U) >> 5U); - - pStatus->CardType = (uint16_t)(((sd_status[0] & 0x00FF0000U) >> 8U) | ((sd_status[0] & 0xFF000000U) >> 24U)); - - pStatus->ProtectedAreaSize = (((sd_status[1] & 0xFFU) << 24U) | ((sd_status[1] & 0xFF00U) << 8U) | - ((sd_status[1] & 0xFF0000U) >> 8U) | ((sd_status[1] & 0xFF000000U) >> 24U)); - - pStatus->SpeedClass = (uint8_t)(sd_status[2] & 0xFFU); - - pStatus->PerformanceMove = (uint8_t)((sd_status[2] & 0xFF00U) >> 8U); - - pStatus->AllocationUnitSize = (uint8_t)((sd_status[2] & 0xF00000U) >> 20U); - - pStatus->EraseSize = (uint16_t)(((sd_status[2] & 0xFF000000U) >> 16U) | (sd_status[3] & 0xFFU)); - - pStatus->EraseTimeout = (uint8_t)((sd_status[3] & 0xFC00U) >> 10U); - - pStatus->EraseOffset = (uint8_t)((sd_status[3] & 0x0300U) >> 8U); - - pStatus->UhsSpeedGrade = (uint8_t)((sd_status[3] & 0x00F0U) >> 4U); - pStatus->UhsAllocationUnitSize = (uint8_t)(sd_status[3] & 0x000FU) ; - pStatus->VideoSpeedClass = (uint8_t)((sd_status[4] & 0xFF000000U) >> 24U); - } - - /* Set Block Size for Card */ - errorstate = SDMMC_CmdBlockLength(hsd->Instance, BLOCKSIZE); - if (errorstate != HAL_SD_ERROR_NONE) - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - hsd->ErrorCode = errorstate; - hsd->State = HAL_SD_STATE_READY; - status = HAL_ERROR; - } - - - return status; -} - -/** - * @brief Gets the SD card info. - * @param hsd: Pointer to SD handle - * @param pCardInfo: Pointer to the HAL_SD_CardInfoTypeDef structure that - * will contain the SD card status information - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SD_GetCardInfo(SD_HandleTypeDef *hsd, HAL_SD_CardInfoTypeDef *pCardInfo) -{ - pCardInfo->CardType = (uint32_t)(hsd->SdCard.CardType); - pCardInfo->CardVersion = (uint32_t)(hsd->SdCard.CardVersion); - pCardInfo->Class = (uint32_t)(hsd->SdCard.Class); - pCardInfo->RelCardAdd = (uint32_t)(hsd->SdCard.RelCardAdd); - pCardInfo->BlockNbr = (uint32_t)(hsd->SdCard.BlockNbr); - pCardInfo->BlockSize = (uint32_t)(hsd->SdCard.BlockSize); - pCardInfo->LogBlockNbr = (uint32_t)(hsd->SdCard.LogBlockNbr); - pCardInfo->LogBlockSize = (uint32_t)(hsd->SdCard.LogBlockSize); - - return HAL_OK; -} - -/** - * @brief Enables wide bus operation for the requested card if supported by - * card. - * @param hsd: Pointer to SD handle - * @param WideMode: Specifies the SD card wide bus mode - * This parameter can be one of the following values: - * @arg SDMMC_BUS_WIDE_8B: 8-bit data transfer - * @arg SDMMC_BUS_WIDE_4B: 4-bit data transfer - * @arg SDMMC_BUS_WIDE_1B: 1-bit data transfer - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SD_ConfigWideBusOperation(SD_HandleTypeDef *hsd, uint32_t WideMode) -{ - SDMMC_InitTypeDef Init; - uint32_t errorstate; - uint32_t sdmmc_clk; - HAL_StatusTypeDef status = HAL_OK; - - /* Check the parameters */ - assert_param(IS_SDMMC_BUS_WIDE(WideMode)); - - /* Change State */ - hsd->State = HAL_SD_STATE_BUSY; - - if (hsd->SdCard.CardType != CARD_SECURED) - { - if (WideMode == SDMMC_BUS_WIDE_8B) - { - hsd->ErrorCode |= HAL_SD_ERROR_UNSUPPORTED_FEATURE; - } - else if (WideMode == SDMMC_BUS_WIDE_4B) - { - errorstate = SD_WideBus_Enable(hsd); - - hsd->ErrorCode |= errorstate; - } - else if (WideMode == SDMMC_BUS_WIDE_1B) - { - errorstate = SD_WideBus_Disable(hsd); - - hsd->ErrorCode |= errorstate; - } - else - { - /* WideMode is not a valid argument*/ - hsd->ErrorCode |= HAL_SD_ERROR_PARAM; - } - } - else - { - /* SD Card does not support this feature */ - hsd->ErrorCode |= HAL_SD_ERROR_UNSUPPORTED_FEATURE; - } - - if (hsd->ErrorCode != HAL_SD_ERROR_NONE) - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - status = HAL_ERROR; - } - else - { - sdmmc_clk = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC); - if (sdmmc_clk != 0U) - { - /* Configure the SDMMC peripheral */ - Init.ClockEdge = hsd->Init.ClockEdge; - Init.ClockPowerSave = hsd->Init.ClockPowerSave; - Init.BusWide = WideMode; - Init.HardwareFlowControl = hsd->Init.HardwareFlowControl; - - /* Check if user Clock div < Normal speed 25Mhz, no change in Clockdiv */ - if (hsd->Init.ClockDiv >= (sdmmc_clk / (2U * SD_NORMAL_SPEED_FREQ))) - { - Init.ClockDiv = hsd->Init.ClockDiv; - } - else if (hsd->SdCard.CardSpeed == CARD_ULTRA_HIGH_SPEED) - { - /* UltraHigh speed SD card,user Clock div */ - Init.ClockDiv = hsd->Init.ClockDiv; - } - else if (hsd->SdCard.CardSpeed == CARD_HIGH_SPEED) - { - /* High speed SD card, Max Frequency = 50Mhz */ - if (hsd->Init.ClockDiv == 0U) - { - if (sdmmc_clk > SD_HIGH_SPEED_FREQ) - { - Init.ClockDiv = sdmmc_clk / (2U * SD_HIGH_SPEED_FREQ); - } - else - { - Init.ClockDiv = hsd->Init.ClockDiv; - } - } - else - { - if ((sdmmc_clk / (2U * hsd->Init.ClockDiv)) > SD_HIGH_SPEED_FREQ) - { - Init.ClockDiv = sdmmc_clk / (2U * SD_HIGH_SPEED_FREQ); - } - else - { - Init.ClockDiv = hsd->Init.ClockDiv; - } - } - } - else - { - /* No High speed SD card, Max Frequency = 25Mhz */ - if (hsd->Init.ClockDiv == 0U) - { - if (sdmmc_clk > SD_NORMAL_SPEED_FREQ) - { - Init.ClockDiv = sdmmc_clk / (2U * SD_NORMAL_SPEED_FREQ); - } - else - { - Init.ClockDiv = hsd->Init.ClockDiv; - } - } - else - { - if ((sdmmc_clk / (2U * hsd->Init.ClockDiv)) > SD_NORMAL_SPEED_FREQ) - { - Init.ClockDiv = sdmmc_clk / (2U * SD_NORMAL_SPEED_FREQ); - } - else - { - Init.ClockDiv = hsd->Init.ClockDiv; - } - } - } - -#if (USE_SD_TRANSCEIVER != 0U) - Init.TranceiverPresent = hsd->Init.TranceiverPresent; -#endif /* USE_SD_TRANSCEIVER */ - - (void)SDMMC_Init(hsd->Instance, Init); - } - else - { - hsd->ErrorCode |= SDMMC_ERROR_INVALID_PARAMETER; - status = HAL_ERROR; - } - } - - /* Set Block Size for Card */ - errorstate = SDMMC_CmdBlockLength(hsd->Instance, BLOCKSIZE); - if (errorstate != HAL_SD_ERROR_NONE) - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - hsd->ErrorCode |= errorstate; - status = HAL_ERROR; - } - - /* Change State */ - hsd->State = HAL_SD_STATE_READY; - - return status; -} - -/** - * @brief Configure the speed bus mode - * @param hsd: Pointer to the SD handle - * @param SpeedMode: Specifies the SD card speed bus mode - * This parameter can be one of the following values: - * @arg SDMMC_SPEED_MODE_AUTO: Max speed mode supported by the card - * @arg SDMMC_SPEED_MODE_DEFAULT: Default Speed/SDR12 mode - * @arg SDMMC_SPEED_MODE_HIGH: High Speed/SDR25 mode - * @arg SDMMC_SPEED_MODE_ULTRA: Ultra high speed mode - * @retval HAL status - */ - -HAL_StatusTypeDef HAL_SD_ConfigSpeedBusOperation(SD_HandleTypeDef *hsd, uint32_t SpeedMode) -{ - uint32_t tickstart; - uint32_t errorstate; - HAL_StatusTypeDef status = HAL_OK; - - /* Check the parameters */ - assert_param(IS_SDMMC_SPEED_MODE(SpeedMode)); - /* Change State */ - hsd->State = HAL_SD_STATE_BUSY; - -#if (USE_SD_TRANSCEIVER != 0U) - if (hsd->Init.TranceiverPresent == SDMMC_TRANSCEIVER_PRESENT) - { - switch (SpeedMode) - { - case SDMMC_SPEED_MODE_AUTO: - { - if ((hsd->SdCard.CardSpeed == CARD_ULTRA_HIGH_SPEED) || - (hsd->SdCard.CardType == CARD_SDHC_SDXC)) - { - hsd->Instance->CLKCR |= SDMMC_CLKCR_BUSSPEED; - /* Enable Ultra High Speed */ - if (SD_UltraHighSpeed(hsd, SDMMC_SDR104_SWITCH_PATTERN) != HAL_SD_ERROR_NONE) - { - if (SD_SwitchSpeed(hsd, SDMMC_SDR25_SWITCH_PATTERN) != HAL_SD_ERROR_NONE) - { - hsd->ErrorCode |= HAL_SD_ERROR_UNSUPPORTED_FEATURE; - status = HAL_ERROR; - } - } - } - else if (hsd->SdCard.CardSpeed == CARD_HIGH_SPEED) - { - /* Enable High Speed */ - if (SD_SwitchSpeed(hsd, SDMMC_SDR25_SWITCH_PATTERN) != HAL_SD_ERROR_NONE) - { - hsd->ErrorCode |= HAL_SD_ERROR_UNSUPPORTED_FEATURE; - status = HAL_ERROR; - } - } - else - { - /*Nothing to do, Use defaultSpeed */ - } - break; - } - case SDMMC_SPEED_MODE_ULTRA_SDR104: - { - if ((hsd->SdCard.CardSpeed == CARD_ULTRA_HIGH_SPEED) || - (hsd->SdCard.CardType == CARD_SDHC_SDXC)) - { - /* Enable UltraHigh Speed */ - if (SD_UltraHighSpeed(hsd, SDMMC_SDR104_SWITCH_PATTERN) != HAL_SD_ERROR_NONE) - { - hsd->ErrorCode |= HAL_SD_ERROR_UNSUPPORTED_FEATURE; - status = HAL_ERROR; - } - hsd->Instance->CLKCR |= SDMMC_CLKCR_BUSSPEED; - } - else - { - hsd->ErrorCode |= HAL_SD_ERROR_UNSUPPORTED_FEATURE; - status = HAL_ERROR; - } - break; - } - case SDMMC_SPEED_MODE_ULTRA_SDR50: - { - if ((hsd->SdCard.CardSpeed == CARD_ULTRA_HIGH_SPEED) || - (hsd->SdCard.CardType == CARD_SDHC_SDXC)) - { - /* Enable UltraHigh Speed */ - if (SD_UltraHighSpeed(hsd, SDMMC_SDR50_SWITCH_PATTERN) != HAL_SD_ERROR_NONE) - { - hsd->ErrorCode |= HAL_SD_ERROR_UNSUPPORTED_FEATURE; - status = HAL_ERROR; - } - hsd->Instance->CLKCR |= SDMMC_CLKCR_BUSSPEED; - } - else - { - hsd->ErrorCode |= HAL_SD_ERROR_UNSUPPORTED_FEATURE; - status = HAL_ERROR; - } - break; - } - case SDMMC_SPEED_MODE_DDR: - { - if ((hsd->SdCard.CardSpeed == CARD_ULTRA_HIGH_SPEED) || - (hsd->SdCard.CardType == CARD_SDHC_SDXC)) - { - /* Enable DDR Mode*/ - if (SD_DDR_Mode(hsd) != HAL_SD_ERROR_NONE) - { - hsd->ErrorCode |= HAL_SD_ERROR_UNSUPPORTED_FEATURE; - status = HAL_ERROR; - } - hsd->Instance->CLKCR |= SDMMC_CLKCR_BUSSPEED | SDMMC_CLKCR_DDR; - } - else - { - hsd->ErrorCode |= HAL_SD_ERROR_UNSUPPORTED_FEATURE; - status = HAL_ERROR; - } - break; - } - case SDMMC_SPEED_MODE_HIGH: - { - if ((hsd->SdCard.CardSpeed == CARD_ULTRA_HIGH_SPEED) || - (hsd->SdCard.CardSpeed == CARD_HIGH_SPEED) || - (hsd->SdCard.CardType == CARD_SDHC_SDXC)) - { - /* Enable High Speed */ - if (SD_SwitchSpeed(hsd, SDMMC_SDR25_SWITCH_PATTERN) != HAL_SD_ERROR_NONE) - { - hsd->ErrorCode |= HAL_SD_ERROR_UNSUPPORTED_FEATURE; - status = HAL_ERROR; - } - } - else - { - hsd->ErrorCode |= HAL_SD_ERROR_UNSUPPORTED_FEATURE; - status = HAL_ERROR; - } - break; - } - case SDMMC_SPEED_MODE_DEFAULT: - { - /* Switch to default Speed */ - if (SD_SwitchSpeed(hsd, SDMMC_SDR12_SWITCH_PATTERN) != HAL_SD_ERROR_NONE) - { - hsd->ErrorCode |= HAL_SD_ERROR_UNSUPPORTED_FEATURE; - status = HAL_ERROR; - } - - break; - } - default: - hsd->ErrorCode |= HAL_SD_ERROR_PARAM; - status = HAL_ERROR; - break; - } - } - else - { - switch (SpeedMode) - { - case SDMMC_SPEED_MODE_AUTO: - { - if ((hsd->SdCard.CardSpeed == CARD_ULTRA_HIGH_SPEED) || - (hsd->SdCard.CardSpeed == CARD_HIGH_SPEED) || - (hsd->SdCard.CardType == CARD_SDHC_SDXC)) - { - /* Enable High Speed */ - if (SD_SwitchSpeed(hsd, SDMMC_SDR25_SWITCH_PATTERN) != HAL_SD_ERROR_NONE) - { - hsd->ErrorCode |= HAL_SD_ERROR_UNSUPPORTED_FEATURE; - status = HAL_ERROR; - } - } - else - { - /*Nothing to do, Use defaultSpeed */ - } - break; - } - case SDMMC_SPEED_MODE_HIGH: - { - if ((hsd->SdCard.CardSpeed == CARD_ULTRA_HIGH_SPEED) || - (hsd->SdCard.CardSpeed == CARD_HIGH_SPEED) || - (hsd->SdCard.CardType == CARD_SDHC_SDXC)) - { - /* Enable High Speed */ - if (SD_SwitchSpeed(hsd, SDMMC_SDR25_SWITCH_PATTERN) != HAL_SD_ERROR_NONE) - { - hsd->ErrorCode |= HAL_SD_ERROR_UNSUPPORTED_FEATURE; - status = HAL_ERROR; - } - } - else - { - hsd->ErrorCode |= HAL_SD_ERROR_UNSUPPORTED_FEATURE; - status = HAL_ERROR; - } - break; - } - case SDMMC_SPEED_MODE_DEFAULT: - { - /* Switch to default Speed */ - if (SD_SwitchSpeed(hsd, SDMMC_SDR12_SWITCH_PATTERN) != HAL_SD_ERROR_NONE) - { - hsd->ErrorCode |= HAL_SD_ERROR_UNSUPPORTED_FEATURE; - status = HAL_ERROR; - } - - break; - } - case SDMMC_SPEED_MODE_ULTRA: /*not valid without transceiver*/ - default: - hsd->ErrorCode |= HAL_SD_ERROR_PARAM; - status = HAL_ERROR; - break; - } - } -#else - switch (SpeedMode) - { - case SDMMC_SPEED_MODE_AUTO: - { - if ((hsd->SdCard.CardSpeed == CARD_ULTRA_HIGH_SPEED) || - (hsd->SdCard.CardSpeed == CARD_HIGH_SPEED) || - (hsd->SdCard.CardType == CARD_SDHC_SDXC)) - { - /* Enable High Speed */ - if (SD_SwitchSpeed(hsd, SDMMC_SDR25_SWITCH_PATTERN) != HAL_SD_ERROR_NONE) - { - hsd->ErrorCode |= HAL_SD_ERROR_UNSUPPORTED_FEATURE; - status = HAL_ERROR; - } - } - else - { - /*Nothing to do, Use defaultSpeed */ - } - break; - } - case SDMMC_SPEED_MODE_HIGH: - { - if ((hsd->SdCard.CardSpeed == CARD_ULTRA_HIGH_SPEED) || - (hsd->SdCard.CardSpeed == CARD_HIGH_SPEED) || - (hsd->SdCard.CardType == CARD_SDHC_SDXC)) - { - /* Enable High Speed */ - if (SD_SwitchSpeed(hsd, SDMMC_SDR25_SWITCH_PATTERN) != HAL_SD_ERROR_NONE) - { - hsd->ErrorCode |= HAL_SD_ERROR_UNSUPPORTED_FEATURE; - status = HAL_ERROR; - } - } - else - { - hsd->ErrorCode |= HAL_SD_ERROR_UNSUPPORTED_FEATURE; - status = HAL_ERROR; - } - break; - } - case SDMMC_SPEED_MODE_DEFAULT: - { - /* Switch to default Speed */ - if (SD_SwitchSpeed(hsd, SDMMC_SDR12_SWITCH_PATTERN) != HAL_SD_ERROR_NONE) - { - hsd->ErrorCode |= HAL_SD_ERROR_UNSUPPORTED_FEATURE; - status = HAL_ERROR; - } - - break; - } - case SDMMC_SPEED_MODE_ULTRA: /*not valid without transceiver*/ - default: - hsd->ErrorCode |= HAL_SD_ERROR_PARAM; - status = HAL_ERROR; - break; - } -#endif /* USE_SD_TRANSCEIVER */ - - /* Verify that SD card is ready to use after Speed mode switch*/ - tickstart = HAL_GetTick(); - while ((HAL_SD_GetCardState(hsd) != HAL_SD_CARD_TRANSFER)) - { - if ((HAL_GetTick() - tickstart) >= SDMMC_DATATIMEOUT) - { - hsd->ErrorCode = HAL_SD_ERROR_TIMEOUT; - hsd->State = HAL_SD_STATE_READY; - return HAL_TIMEOUT; - } - } - - /* Set Block Size for Card */ - errorstate = SDMMC_CmdBlockLength(hsd->Instance, BLOCKSIZE); - if (errorstate != HAL_SD_ERROR_NONE) - { - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_FLAGS); - hsd->ErrorCode |= errorstate; - status = HAL_ERROR; - } - - /* Change State */ - hsd->State = HAL_SD_STATE_READY; - return status; -} - -/** - * @brief Gets the current sd card data state. - * @param hsd: pointer to SD handle - * @retval Card state - */ -HAL_SD_CardStateTypeDef HAL_SD_GetCardState(SD_HandleTypeDef *hsd) -{ - uint32_t cardstate; - uint32_t errorstate; - uint32_t resp1 = 0; - - errorstate = SD_SendStatus(hsd, &resp1); - if (errorstate != HAL_SD_ERROR_NONE) - { - hsd->ErrorCode |= errorstate; - } - - cardstate = ((resp1 >> 9U) & 0x0FU); - - return (HAL_SD_CardStateTypeDef)cardstate; -} - -/** - * @brief Abort the current transfer and disable the SD. - * @param hsd: pointer to a SD_HandleTypeDef structure that contains - * the configuration information for SD module. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SD_Abort(SD_HandleTypeDef *hsd) -{ - uint32_t error_code; - uint32_t tickstart; - - if (hsd->State == HAL_SD_STATE_BUSY) - { - /* DIsable All interrupts */ - __HAL_SD_DISABLE_IT(hsd, SDMMC_IT_DATAEND | SDMMC_IT_DCRCFAIL | SDMMC_IT_DTIMEOUT | \ - SDMMC_IT_TXUNDERR | SDMMC_IT_RXOVERR); - __SDMMC_CMDTRANS_DISABLE(hsd->Instance); - - /*we will send the CMD12 in all cases in order to stop the data transfers*/ - /*In case the data transfer just finished , the external memory will not respond and will return HAL_SD_ERROR_CMD_RSP_TIMEOUT*/ - /*In case the data transfer aborted , the external memory will respond and will return HAL_SD_ERROR_NONE*/ - /*Other scenario will return HAL_ERROR*/ - - hsd->ErrorCode = SDMMC_CmdStopTransfer(hsd->Instance); - error_code = hsd->ErrorCode; - if ((error_code != HAL_SD_ERROR_NONE) && (error_code != HAL_SD_ERROR_CMD_RSP_TIMEOUT)) - { - return HAL_ERROR; - } - - tickstart = HAL_GetTick(); - if ((hsd->Instance->DCTRL & SDMMC_DCTRL_DTDIR) == SDMMC_TRANSFER_DIR_TO_CARD) - { - if (hsd->ErrorCode == HAL_SD_ERROR_NONE) - { - while(!__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DABORT | SDMMC_FLAG_BUSYD0END)) - { - if ((HAL_GetTick() - tickstart) >= SDMMC_DATATIMEOUT) - { - hsd->ErrorCode = HAL_SD_ERROR_TIMEOUT; - hsd->State = HAL_SD_STATE_READY; - return HAL_TIMEOUT; - } - } - } - - if (hsd->ErrorCode == HAL_SD_ERROR_CMD_RSP_TIMEOUT) - { - while(!__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DATAEND)) - { - if ((HAL_GetTick() - tickstart) >= SDMMC_DATATIMEOUT) - { - hsd->ErrorCode = HAL_SD_ERROR_TIMEOUT; - hsd->State = HAL_SD_STATE_READY; - return HAL_TIMEOUT; - } - } - } - } - else if ((hsd->Instance->DCTRL & SDMMC_DCTRL_DTDIR) == SDMMC_TRANSFER_DIR_TO_SDMMC) - { - while(!__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DABORT | SDMMC_FLAG_DATAEND)) - { - if ((HAL_GetTick() - tickstart) >= SDMMC_DATATIMEOUT) - { - hsd->ErrorCode = HAL_SD_ERROR_TIMEOUT; - hsd->State = HAL_SD_STATE_READY; - return HAL_TIMEOUT; - } - } - } - else - { - /* Nothing to do*/ - } - - /*The reason of all these while conditions previously is that we need to wait the SDMMC and clear - the appropriate flags that will be set depending of the abort/non abort of the memory */ - /*Not waiting the SDMMC flags will cause the next SDMMC_DISABLE_IDMA to not get cleared - and will result in next SDMMC read/write operation to fail */ - - /*SDMMC ready for clear data flags*/ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_FLAG_BUSYD0END); - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_DATA_FLAGS); - /* If IDMA Context, disable Internal DMA */ - hsd->Instance->IDMACTRL = SDMMC_DISABLE_IDMA; - - hsd->State = HAL_SD_STATE_READY; - - /* Initialize the SD operation */ - hsd->Context = SD_CONTEXT_NONE; - } - return HAL_OK; -} - - -/** - * @brief Abort the current transfer and disable the SD (IT mode). - * @param hsd: pointer to a SD_HandleTypeDef structure that contains - * the configuration information for SD module. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SD_Abort_IT(SD_HandleTypeDef *hsd) -{ - HAL_SD_CardStateTypeDef CardState; - - /* Disable All interrupts */ - __HAL_SD_DISABLE_IT(hsd, SDMMC_IT_DATAEND | SDMMC_IT_DCRCFAIL | SDMMC_IT_DTIMEOUT | \ - SDMMC_IT_TXUNDERR | SDMMC_IT_RXOVERR); - - /* If IDMA Context, disable Internal DMA */ - hsd->Instance->IDMACTRL = SDMMC_DISABLE_IDMA; - - /* Clear All flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_DATA_FLAGS); - - CardState = HAL_SD_GetCardState(hsd); - hsd->State = HAL_SD_STATE_READY; - - if ((CardState == HAL_SD_CARD_RECEIVING) || (CardState == HAL_SD_CARD_SENDING)) - { - hsd->ErrorCode = SDMMC_CmdStopTransfer(hsd->Instance); - } - - if (hsd->ErrorCode != HAL_SD_ERROR_NONE) - { - return HAL_ERROR; - } - else - { -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) - hsd->AbortCpltCallback(hsd); -#else - HAL_SD_AbortCallback(hsd); -#endif /* USE_HAL_SD_REGISTER_CALLBACKS */ - } - - return HAL_OK; -} - -/** - * @} - */ - -/** - * @} - */ - -/* Private function ----------------------------------------------------------*/ -/** @addtogroup SD_Private_Functions - * @{ - */ - - -/** - * @brief Initializes the sd card. - * @param hsd: Pointer to SD handle - * @retval SD Card error state - */ -static uint32_t SD_InitCard(SD_HandleTypeDef *hsd) -{ - HAL_SD_CardCSDTypeDef CSD; - uint32_t errorstate; - uint16_t sd_rca = 0U; - uint32_t tickstart = HAL_GetTick(); - - /* Check the power State */ - if (SDMMC_GetPowerState(hsd->Instance) == 0U) - { - /* Power off */ - return HAL_SD_ERROR_REQUEST_NOT_APPLICABLE; - } - - if (hsd->SdCard.CardType != CARD_SECURED) - { - /* Send CMD2 ALL_SEND_CID */ - errorstate = SDMMC_CmdSendCID(hsd->Instance); - if (errorstate != HAL_SD_ERROR_NONE) - { - return errorstate; - } - else - { - /* Get Card identification number data */ - hsd->CID[0U] = SDMMC_GetResponse(hsd->Instance, SDMMC_RESP1); - hsd->CID[1U] = SDMMC_GetResponse(hsd->Instance, SDMMC_RESP2); - hsd->CID[2U] = SDMMC_GetResponse(hsd->Instance, SDMMC_RESP3); - hsd->CID[3U] = SDMMC_GetResponse(hsd->Instance, SDMMC_RESP4); - } - } - - if (hsd->SdCard.CardType != CARD_SECURED) - { - /* Send CMD3 SET_REL_ADDR with argument 0 */ - /* SD Card publishes its RCA. */ - while (sd_rca == 0U) - { - errorstate = SDMMC_CmdSetRelAdd(hsd->Instance, &sd_rca); - if (errorstate != HAL_SD_ERROR_NONE) - { - return errorstate; - } - if ((HAL_GetTick() - tickstart) >= SDMMC_CMDTIMEOUT) - { - return HAL_SD_ERROR_TIMEOUT; - } - } - } - if (hsd->SdCard.CardType != CARD_SECURED) - { - /* Get the SD card RCA */ - hsd->SdCard.RelCardAdd = sd_rca; - - /* Send CMD9 SEND_CSD with argument as card's RCA */ - errorstate = SDMMC_CmdSendCSD(hsd->Instance, (uint32_t)(hsd->SdCard.RelCardAdd << 16U)); - if (errorstate != HAL_SD_ERROR_NONE) - { - return errorstate; - } - else - { - /* Get Card Specific Data */ - hsd->CSD[0U] = SDMMC_GetResponse(hsd->Instance, SDMMC_RESP1); - hsd->CSD[1U] = SDMMC_GetResponse(hsd->Instance, SDMMC_RESP2); - hsd->CSD[2U] = SDMMC_GetResponse(hsd->Instance, SDMMC_RESP3); - hsd->CSD[3U] = SDMMC_GetResponse(hsd->Instance, SDMMC_RESP4); - } - } - - /* Get the Card Class */ - hsd->SdCard.Class = (SDMMC_GetResponse(hsd->Instance, SDMMC_RESP2) >> 20U); - - /* Get CSD parameters */ - if (HAL_SD_GetCardCSD(hsd, &CSD) != HAL_OK) - { - return HAL_SD_ERROR_UNSUPPORTED_FEATURE; - } - - /* Select the Card */ - errorstate = SDMMC_CmdSelDesel(hsd->Instance, (uint32_t)(((uint32_t)hsd->SdCard.RelCardAdd) << 16U)); - if (errorstate != HAL_SD_ERROR_NONE) - { - return errorstate; - } - - /* All cards are initialized */ - return HAL_SD_ERROR_NONE; -} - -/** - * @brief Enquires cards about their operating voltage and configures clock - * controls and stores SD information that will be needed in future - * in the SD handle. - * @param hsd: Pointer to SD handle - * @retval error state - */ -static uint32_t SD_PowerON(SD_HandleTypeDef *hsd) -{ - __IO uint32_t count = 0U; - uint32_t response = 0U; - uint32_t validvoltage = 0U; - uint32_t errorstate; -#if (USE_SD_TRANSCEIVER != 0U) - uint32_t tickstart = HAL_GetTick(); -#endif /* USE_SD_TRANSCEIVER */ - - /* CMD0: GO_IDLE_STATE */ - errorstate = SDMMC_CmdGoIdleState(hsd->Instance); - if (errorstate != HAL_SD_ERROR_NONE) - { - return errorstate; - } - - /* CMD8: SEND_IF_COND: Command available only on V2.0 cards */ - errorstate = SDMMC_CmdOperCond(hsd->Instance); - if (errorstate == SDMMC_ERROR_TIMEOUT) /* No response to CMD8 */ - { - hsd->SdCard.CardVersion = CARD_V1_X; - /* CMD0: GO_IDLE_STATE */ - errorstate = SDMMC_CmdGoIdleState(hsd->Instance); - if (errorstate != HAL_SD_ERROR_NONE) - { - return errorstate; - } - - } - else - { - hsd->SdCard.CardVersion = CARD_V2_X; - } - - if (hsd->SdCard.CardVersion == CARD_V2_X) - { - /* SEND CMD55 APP_CMD with RCA as 0 */ - errorstate = SDMMC_CmdAppCommand(hsd->Instance, 0); - if (errorstate != HAL_SD_ERROR_NONE) - { - return HAL_SD_ERROR_UNSUPPORTED_FEATURE; - } - } - /* SD CARD */ - /* Send ACMD41 SD_APP_OP_COND with Argument 0x80100000 */ - while ((count < SDMMC_MAX_VOLT_TRIAL) && (validvoltage == 0U)) - { - /* SEND CMD55 APP_CMD with RCA as 0 */ - errorstate = SDMMC_CmdAppCommand(hsd->Instance, 0); - if (errorstate != HAL_SD_ERROR_NONE) - { - return errorstate; - } - - /* Send CMD41 */ - errorstate = SDMMC_CmdAppOperCommand(hsd->Instance, SDMMC_VOLTAGE_WINDOW_SD | SDMMC_HIGH_CAPACITY | - SD_SWITCH_1_8V_CAPACITY); - if (errorstate != HAL_SD_ERROR_NONE) - { - return HAL_SD_ERROR_UNSUPPORTED_FEATURE; - } - - /* Get command response */ - response = SDMMC_GetResponse(hsd->Instance, SDMMC_RESP1); - - /* Get operating voltage*/ - validvoltage = (((response >> 31U) == 1U) ? 1U : 0U); - - count++; - } - - if (count >= SDMMC_MAX_VOLT_TRIAL) - { - return HAL_SD_ERROR_INVALID_VOLTRANGE; - } - - /* Set default card type */ - hsd->SdCard.CardType = CARD_SDSC; - - if ((response & SDMMC_HIGH_CAPACITY) == SDMMC_HIGH_CAPACITY) - { - hsd->SdCard.CardType = CARD_SDHC_SDXC; -#if (USE_SD_TRANSCEIVER != 0U) - if (hsd->Init.TranceiverPresent == SDMMC_TRANSCEIVER_PRESENT) - { - if ((response & SD_SWITCH_1_8V_CAPACITY) == SD_SWITCH_1_8V_CAPACITY) - { - hsd->SdCard.CardSpeed = CARD_ULTRA_HIGH_SPEED; - - /* Start switching procedue */ - hsd->Instance->POWER |= SDMMC_POWER_VSWITCHEN; - - /* Send CMD11 to switch 1.8V mode */ - errorstate = SDMMC_CmdVoltageSwitch(hsd->Instance); - if (errorstate != HAL_SD_ERROR_NONE) - { - return errorstate; - } - - /* Check to CKSTOP */ - while ((hsd->Instance->STA & SDMMC_FLAG_CKSTOP) != SDMMC_FLAG_CKSTOP) - { - if ((HAL_GetTick() - tickstart) >= SDMMC_DATATIMEOUT) - { - return HAL_SD_ERROR_TIMEOUT; - } - } - - /* Clear CKSTOP Flag */ - hsd->Instance->ICR = SDMMC_FLAG_CKSTOP; - - /* Check to BusyD0 */ - if ((hsd->Instance->STA & SDMMC_FLAG_BUSYD0) != SDMMC_FLAG_BUSYD0) - { - /* Error when activate Voltage Switch in SDMMC Peripheral */ - return SDMMC_ERROR_UNSUPPORTED_FEATURE; - } - else - { - /* Enable Transceiver Switch PIN */ -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) - hsd->DriveTransceiver_1_8V_Callback(SET); -#else - HAL_SD_DriveTransceiver_1_8V_Callback(SET); -#endif /* USE_HAL_SD_REGISTER_CALLBACKS */ - - /* Switch ready */ - hsd->Instance->POWER |= SDMMC_POWER_VSWITCH; - - /* Check VSWEND Flag */ - while ((hsd->Instance->STA & SDMMC_FLAG_VSWEND) != SDMMC_FLAG_VSWEND) - { - if ((HAL_GetTick() - tickstart) >= SDMMC_DATATIMEOUT) - { - return HAL_SD_ERROR_TIMEOUT; - } - } - - /* Clear VSWEND Flag */ - hsd->Instance->ICR = SDMMC_FLAG_VSWEND; - - /* Check BusyD0 status */ - if ((hsd->Instance->STA & SDMMC_FLAG_BUSYD0) == SDMMC_FLAG_BUSYD0) - { - /* Error when enabling 1.8V mode */ - return HAL_SD_ERROR_INVALID_VOLTRANGE; - } - /* Switch to 1.8V OK */ - - /* Disable VSWITCH FLAG from SDMMC Peripheral */ - hsd->Instance->POWER = 0x13U; - - /* Clean Status flags */ - hsd->Instance->ICR = 0xFFFFFFFFU; - } - } - } -#endif /* USE_SD_TRANSCEIVER */ - } - - return HAL_SD_ERROR_NONE; -} - -/** - * @brief Turns the SDMMC output signals off. - * @param hsd: Pointer to SD handle - * @retval None - */ -static void SD_PowerOFF(SD_HandleTypeDef *hsd) -{ - /* Set Power State to OFF */ - (void)SDMMC_PowerState_OFF(hsd->Instance); -} - -/** - * @brief Send Status info command. - * @param hsd: pointer to SD handle - * @param pSDstatus: Pointer to the buffer that will contain the SD card status - * SD Status register) - * @retval error state - */ -static uint32_t SD_SendSDStatus(SD_HandleTypeDef *hsd, uint32_t *pSDstatus) -{ - SDMMC_DataInitTypeDef config; - uint32_t errorstate; - uint32_t tickstart = HAL_GetTick(); - uint32_t count; - uint32_t *pData = pSDstatus; - - /* Check SD response */ - if ((SDMMC_GetResponse(hsd->Instance, SDMMC_RESP1) & SDMMC_CARD_LOCKED) == SDMMC_CARD_LOCKED) - { - return HAL_SD_ERROR_LOCK_UNLOCK_FAILED; - } - - /* Set block size for card if it is not equal to current block size for card */ - errorstate = SDMMC_CmdBlockLength(hsd->Instance, 64U); - if (errorstate != HAL_SD_ERROR_NONE) - { - hsd->ErrorCode |= HAL_SD_ERROR_NONE; - return errorstate; - } - - /* Send CMD55 */ - errorstate = SDMMC_CmdAppCommand(hsd->Instance, (uint32_t)(hsd->SdCard.RelCardAdd << 16U)); - if (errorstate != HAL_SD_ERROR_NONE) - { - hsd->ErrorCode |= HAL_SD_ERROR_NONE; - return errorstate; - } - - /* Configure the SD DPSM (Data Path State Machine) */ - config.DataTimeOut = SDMMC_DATATIMEOUT; - config.DataLength = 64U; - config.DataBlockSize = SDMMC_DATABLOCK_SIZE_64B; - config.TransferDir = SDMMC_TRANSFER_DIR_TO_SDMMC; - config.TransferMode = SDMMC_TRANSFER_MODE_BLOCK; - config.DPSM = SDMMC_DPSM_ENABLE; - (void)SDMMC_ConfigData(hsd->Instance, &config); - - /* Send ACMD13 (SD_APP_STAUS) with argument as card's RCA */ - errorstate = SDMMC_CmdStatusRegister(hsd->Instance); - if (errorstate != HAL_SD_ERROR_NONE) - { - hsd->ErrorCode |= HAL_SD_ERROR_NONE; - return errorstate; - } - - /* Get status data */ - while (!__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXOVERR | SDMMC_FLAG_DCRCFAIL | SDMMC_FLAG_DTIMEOUT | SDMMC_FLAG_DATAEND)) - { - if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXFIFOHF)) - { - for (count = 0U; count < 8U; count++) - { - *pData = SDMMC_ReadFIFO(hsd->Instance); - pData++; - } - } - - if ((HAL_GetTick() - tickstart) >= SDMMC_DATATIMEOUT) - { - return HAL_SD_ERROR_TIMEOUT; - } - } - - if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DTIMEOUT)) - { - return HAL_SD_ERROR_DATA_TIMEOUT; - } - else if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DCRCFAIL)) - { - return HAL_SD_ERROR_DATA_CRC_FAIL; - } - else if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXOVERR)) - { - return HAL_SD_ERROR_RX_OVERRUN; - } - else - { - /* Nothing to do */ - } - - while ((__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DPSMACT))) - { - *pData = SDMMC_ReadFIFO(hsd->Instance); - pData++; - - if ((HAL_GetTick() - tickstart) >= SDMMC_DATATIMEOUT) - { - return HAL_SD_ERROR_TIMEOUT; - } - } - - /* Clear all the static status flags*/ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_DATA_FLAGS); - - return HAL_SD_ERROR_NONE; -} - -/** - * @brief Returns the current card's status. - * @param hsd: Pointer to SD handle - * @param pCardStatus: pointer to the buffer that will contain the SD card - * status (Card Status register) - * @retval error state - */ -static uint32_t SD_SendStatus(SD_HandleTypeDef *hsd, uint32_t *pCardStatus) -{ - uint32_t errorstate; - - if (pCardStatus == NULL) - { - return HAL_SD_ERROR_PARAM; - } - - /* Send Status command */ - errorstate = SDMMC_CmdSendStatus(hsd->Instance, (uint32_t)(hsd->SdCard.RelCardAdd << 16U)); - if (errorstate != HAL_SD_ERROR_NONE) - { - return errorstate; - } - - /* Get SD card status */ - *pCardStatus = SDMMC_GetResponse(hsd->Instance, SDMMC_RESP1); - - return HAL_SD_ERROR_NONE; -} - -/** - * @brief Enables the SDMMC wide bus mode. - * @param hsd: pointer to SD handle - * @retval error state - */ -static uint32_t SD_WideBus_Enable(SD_HandleTypeDef *hsd) -{ - uint32_t scr[2U] = {0UL, 0UL}; - uint32_t errorstate; - - if ((SDMMC_GetResponse(hsd->Instance, SDMMC_RESP1) & SDMMC_CARD_LOCKED) == SDMMC_CARD_LOCKED) - { - return HAL_SD_ERROR_LOCK_UNLOCK_FAILED; - } - - /* Get SCR Register */ - errorstate = SD_FindSCR(hsd, scr); - if (errorstate != HAL_SD_ERROR_NONE) - { - return errorstate; - } - - /* If requested card supports wide bus operation */ - if ((scr[1U] & SDMMC_WIDE_BUS_SUPPORT) != SDMMC_ALLZERO) - { - /* Send CMD55 APP_CMD with argument as card's RCA.*/ - errorstate = SDMMC_CmdAppCommand(hsd->Instance, (uint32_t)(hsd->SdCard.RelCardAdd << 16U)); - if (errorstate != HAL_SD_ERROR_NONE) - { - return errorstate; - } - - /* Send ACMD6 APP_CMD with argument as 2 for wide bus mode */ - errorstate = SDMMC_CmdBusWidth(hsd->Instance, 2U); - if (errorstate != HAL_SD_ERROR_NONE) - { - return errorstate; - } - - return HAL_SD_ERROR_NONE; - } - else - { - return HAL_SD_ERROR_REQUEST_NOT_APPLICABLE; - } -} - -/** - * @brief Disables the SDMMC wide bus mode. - * @param hsd: Pointer to SD handle - * @retval error state - */ -static uint32_t SD_WideBus_Disable(SD_HandleTypeDef *hsd) -{ - uint32_t scr[2U] = {0UL, 0UL}; - uint32_t errorstate; - - if ((SDMMC_GetResponse(hsd->Instance, SDMMC_RESP1) & SDMMC_CARD_LOCKED) == SDMMC_CARD_LOCKED) - { - return HAL_SD_ERROR_LOCK_UNLOCK_FAILED; - } - - /* Get SCR Register */ - errorstate = SD_FindSCR(hsd, scr); - if (errorstate != HAL_SD_ERROR_NONE) - { - return errorstate; - } - - /* If requested card supports 1 bit mode operation */ - if ((scr[1U] & SDMMC_SINGLE_BUS_SUPPORT) != SDMMC_ALLZERO) - { - /* Send CMD55 APP_CMD with argument as card's RCA */ - errorstate = SDMMC_CmdAppCommand(hsd->Instance, (uint32_t)(hsd->SdCard.RelCardAdd << 16U)); - if (errorstate != HAL_SD_ERROR_NONE) - { - return errorstate; - } - - /* Send ACMD6 APP_CMD with argument as 0 for single bus mode */ - errorstate = SDMMC_CmdBusWidth(hsd->Instance, 0U); - if (errorstate != HAL_SD_ERROR_NONE) - { - return errorstate; - } - - return HAL_SD_ERROR_NONE; - } - else - { - return HAL_SD_ERROR_REQUEST_NOT_APPLICABLE; - } -} - - -/** - * @brief Finds the SD card SCR register value. - * @param hsd: Pointer to SD handle - * @param pSCR: pointer to the buffer that will contain the SCR value - * @retval error state - */ -static uint32_t SD_FindSCR(SD_HandleTypeDef *hsd, uint32_t *pSCR) -{ - SDMMC_DataInitTypeDef config; - uint32_t errorstate; - uint32_t tickstart = HAL_GetTick(); - uint32_t index = 0U; - uint32_t tempscr[2U] = {0UL, 0UL}; - uint32_t *scr = pSCR; - - /* Set Block Size To 8 Bytes */ - errorstate = SDMMC_CmdBlockLength(hsd->Instance, 8U); - if (errorstate != HAL_SD_ERROR_NONE) - { - return errorstate; - } - - /* Send CMD55 APP_CMD with argument as card's RCA */ - errorstate = SDMMC_CmdAppCommand(hsd->Instance, (uint32_t)((hsd->SdCard.RelCardAdd) << 16U)); - if (errorstate != HAL_SD_ERROR_NONE) - { - return errorstate; - } - - config.DataTimeOut = SDMMC_DATATIMEOUT; - config.DataLength = 8U; - config.DataBlockSize = SDMMC_DATABLOCK_SIZE_8B; - config.TransferDir = SDMMC_TRANSFER_DIR_TO_SDMMC; - config.TransferMode = SDMMC_TRANSFER_MODE_BLOCK; - config.DPSM = SDMMC_DPSM_ENABLE; - (void)SDMMC_ConfigData(hsd->Instance, &config); - - /* Send ACMD51 SD_APP_SEND_SCR with argument as 0 */ - errorstate = SDMMC_CmdSendSCR(hsd->Instance); - if (errorstate != HAL_SD_ERROR_NONE) - { - return errorstate; - } - - while (!__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXOVERR | SDMMC_FLAG_DCRCFAIL | SDMMC_FLAG_DTIMEOUT | SDMMC_FLAG_DBCKEND | - SDMMC_FLAG_DATAEND)) - { - if ((!__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXFIFOE)) && (index == 0U)) - { - tempscr[0] = SDMMC_ReadFIFO(hsd->Instance); - tempscr[1] = SDMMC_ReadFIFO(hsd->Instance); - index++; - } - - - if ((HAL_GetTick() - tickstart) >= SDMMC_DATATIMEOUT) - { - return HAL_SD_ERROR_TIMEOUT; - } - } - - if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DTIMEOUT)) - { - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_FLAG_DTIMEOUT); - - return HAL_SD_ERROR_DATA_TIMEOUT; - } - else if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DCRCFAIL)) - { - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_FLAG_DCRCFAIL); - - return HAL_SD_ERROR_DATA_CRC_FAIL; - } - else if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXOVERR)) - { - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_FLAG_RXOVERR); - - return HAL_SD_ERROR_RX_OVERRUN; - } - else - { - /* No error flag set */ - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_DATA_FLAGS); - - *scr = (((tempscr[1] & SDMMC_0TO7BITS) << 24) | ((tempscr[1] & SDMMC_8TO15BITS) << 8) | \ - ((tempscr[1] & SDMMC_16TO23BITS) >> 8) | ((tempscr[1] & SDMMC_24TO31BITS) >> 24)); - scr++; - *scr = (((tempscr[0] & SDMMC_0TO7BITS) << 24) | ((tempscr[0] & SDMMC_8TO15BITS) << 8) | \ - ((tempscr[0] & SDMMC_16TO23BITS) >> 8) | ((tempscr[0] & SDMMC_24TO31BITS) >> 24)); - - } - - return HAL_SD_ERROR_NONE; -} - -/** - * @brief Wrap up reading in non-blocking mode. - * @param hsd: pointer to a SD_HandleTypeDef structure that contains - * the configuration information. - * @retval None - */ -static void SD_Read_IT(SD_HandleTypeDef *hsd) -{ - uint32_t count; - uint32_t data; - uint8_t *tmp; - - tmp = hsd->pRxBuffPtr; - - if (hsd->RxXferSize >= 32U) - { - /* Read data from SDMMC Rx FIFO */ - for (count = 0U; count < 8U; count++) - { - data = SDMMC_ReadFIFO(hsd->Instance); - *tmp = (uint8_t)(data & 0xFFU); - tmp++; - *tmp = (uint8_t)((data >> 8U) & 0xFFU); - tmp++; - *tmp = (uint8_t)((data >> 16U) & 0xFFU); - tmp++; - *tmp = (uint8_t)((data >> 24U) & 0xFFU); - tmp++; - } - - hsd->pRxBuffPtr = tmp; - hsd->RxXferSize -= 32U; - } -} - -/** - * @brief Wrap up writing in non-blocking mode. - * @param hsd: pointer to a SD_HandleTypeDef structure that contains - * the configuration information. - * @retval None - */ -static void SD_Write_IT(SD_HandleTypeDef *hsd) -{ - uint32_t count; - uint32_t data; - const uint8_t *tmp; - - tmp = hsd->pTxBuffPtr; - - if (hsd->TxXferSize >= 32U) - { - /* Write data to SDMMC Tx FIFO */ - for (count = 0U; count < 8U; count++) - { - data = (uint32_t)(*tmp); - tmp++; - data |= ((uint32_t)(*tmp) << 8U); - tmp++; - data |= ((uint32_t)(*tmp) << 16U); - tmp++; - data |= ((uint32_t)(*tmp) << 24U); - tmp++; - (void)SDMMC_WriteFIFO(hsd->Instance, &data); - } - - hsd->pTxBuffPtr = tmp; - hsd->TxXferSize -= 32U; - } -} - -/** - * @brief Switches the SD card to High Speed mode. - * This API must be used after "Transfer State" - * @note This operation should be followed by the configuration - * of PLL to have SDMMCCK clock between 25 and 50 MHz - * @param hsd: SD handle - * @param SwitchSpeedMode: SD speed mode( SDMMC_SDR12_SWITCH_PATTERN, SDMMC_SDR25_SWITCH_PATTERN) - * @retval SD Card error state - */ -uint32_t SD_SwitchSpeed(SD_HandleTypeDef *hsd, uint32_t SwitchSpeedMode) -{ - uint32_t errorstate = HAL_SD_ERROR_NONE; - SDMMC_DataInitTypeDef sdmmc_datainitstructure; - uint32_t SD_hs[16] = {0}; - uint32_t count; - uint32_t loop = 0 ; - uint32_t Timeout = HAL_GetTick(); - - if (hsd->SdCard.CardSpeed == CARD_NORMAL_SPEED) - { - /* Standard Speed Card <= 12.5Mhz */ - return HAL_SD_ERROR_REQUEST_NOT_APPLICABLE; - } - - if (hsd->SdCard.CardSpeed >= CARD_HIGH_SPEED) - { - /* Initialize the Data control register */ - hsd->Instance->DCTRL = 0; - errorstate = SDMMC_CmdBlockLength(hsd->Instance, 64U); - - if (errorstate != HAL_SD_ERROR_NONE) - { - return errorstate; - } - - /* Configure the SD DPSM (Data Path State Machine) */ - sdmmc_datainitstructure.DataTimeOut = SDMMC_DATATIMEOUT; - sdmmc_datainitstructure.DataLength = 64U; - sdmmc_datainitstructure.DataBlockSize = SDMMC_DATABLOCK_SIZE_64B ; - sdmmc_datainitstructure.TransferDir = SDMMC_TRANSFER_DIR_TO_SDMMC; - sdmmc_datainitstructure.TransferMode = SDMMC_TRANSFER_MODE_BLOCK; - sdmmc_datainitstructure.DPSM = SDMMC_DPSM_ENABLE; - - (void)SDMMC_ConfigData(hsd->Instance, &sdmmc_datainitstructure); - - - errorstate = SDMMC_CmdSwitch(hsd->Instance, SwitchSpeedMode); - if (errorstate != HAL_SD_ERROR_NONE) - { - return errorstate; - } - - while (!__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXOVERR | SDMMC_FLAG_DCRCFAIL | SDMMC_FLAG_DTIMEOUT | SDMMC_FLAG_DBCKEND | - SDMMC_FLAG_DATAEND)) - { - if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXFIFOHF)) - { - for (count = 0U; count < 8U; count++) - { - SD_hs[(8U * loop) + count] = SDMMC_ReadFIFO(hsd->Instance); - } - loop ++; - } - - if ((HAL_GetTick() - Timeout) >= SDMMC_DATATIMEOUT) - { - hsd->ErrorCode = HAL_SD_ERROR_TIMEOUT; - hsd->State = HAL_SD_STATE_READY; - return HAL_SD_ERROR_TIMEOUT; - } - } - - if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DTIMEOUT)) - { - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_FLAG_DTIMEOUT); - - return errorstate; - } - else if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DCRCFAIL)) - { - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_FLAG_DCRCFAIL); - - errorstate = SDMMC_ERROR_DATA_CRC_FAIL; - - return errorstate; - } - else if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXOVERR)) - { - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_FLAG_RXOVERR); - - errorstate = SDMMC_ERROR_RX_OVERRUN; - - return errorstate; - } - else - { - /* No error flag set */ - } - - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_DATA_FLAGS); - - /* Test if the switch mode HS is ok */ - if ((((uint8_t *)SD_hs)[13] & 2U) != 2U) - { - errorstate = SDMMC_ERROR_UNSUPPORTED_FEATURE; - } - - } - - return errorstate; -} - -#if (USE_SD_TRANSCEIVER != 0U) -/** - * @brief Switches the SD card to Ultra High Speed mode. - * This API must be used after "Transfer State" - * @note This operation should be followed by the configuration - * of PLL to have SDMMCCK clock between 50 and 120 MHz - * @param hsd: SD handle - * @param UltraHighSpeedMode: SD speed mode( SDMMC_SDR50_SWITCH_PATTERN, SDMMC_SDR104_SWITCH_PATTERN) - * @retval SD Card error state - */ -static uint32_t SD_UltraHighSpeed(SD_HandleTypeDef *hsd, uint32_t UltraHighSpeedMode) -{ - uint32_t errorstate = HAL_SD_ERROR_NONE; - SDMMC_DataInitTypeDef sdmmc_datainitstructure; - uint32_t SD_hs[16] = {0}; - uint32_t count; - uint32_t loop = 0 ; - uint32_t Timeout = HAL_GetTick(); - - if (hsd->SdCard.CardSpeed == CARD_NORMAL_SPEED) - { - /* Standard Speed Card <= 12.5Mhz */ - return HAL_SD_ERROR_REQUEST_NOT_APPLICABLE; - } - - if (hsd->SdCard.CardSpeed == CARD_ULTRA_HIGH_SPEED) - { - /* Initialize the Data control register */ - hsd->Instance->DCTRL = 0; - errorstate = SDMMC_CmdBlockLength(hsd->Instance, 64U); - - if (errorstate != HAL_SD_ERROR_NONE) - { - return errorstate; - } - - /* Configure the SD DPSM (Data Path State Machine) */ - sdmmc_datainitstructure.DataTimeOut = SDMMC_DATATIMEOUT; - sdmmc_datainitstructure.DataLength = 64U; - sdmmc_datainitstructure.DataBlockSize = SDMMC_DATABLOCK_SIZE_64B ; - sdmmc_datainitstructure.TransferDir = SDMMC_TRANSFER_DIR_TO_SDMMC; - sdmmc_datainitstructure.TransferMode = SDMMC_TRANSFER_MODE_BLOCK; - sdmmc_datainitstructure.DPSM = SDMMC_DPSM_ENABLE; - - if (SDMMC_ConfigData(hsd->Instance, &sdmmc_datainitstructure) != HAL_OK) - { - return (HAL_SD_ERROR_GENERAL_UNKNOWN_ERR); - } - - errorstate = SDMMC_CmdSwitch(hsd->Instance, UltraHighSpeedMode); - if (errorstate != HAL_SD_ERROR_NONE) - { - return errorstate; - } - - while (!__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXOVERR | SDMMC_FLAG_DCRCFAIL | SDMMC_FLAG_DTIMEOUT | SDMMC_FLAG_DBCKEND | - SDMMC_FLAG_DATAEND)) - { - if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXFIFOHF)) - { - for (count = 0U; count < 8U; count++) - { - SD_hs[(8U * loop) + count] = SDMMC_ReadFIFO(hsd->Instance); - } - loop ++; - } - - if ((HAL_GetTick() - Timeout) >= SDMMC_DATATIMEOUT) - { - hsd->ErrorCode = HAL_SD_ERROR_TIMEOUT; - hsd->State = HAL_SD_STATE_READY; - return HAL_SD_ERROR_TIMEOUT; - } - } - - if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DTIMEOUT)) - { - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_FLAG_DTIMEOUT); - - return errorstate; - } - else if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DCRCFAIL)) - { - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_FLAG_DCRCFAIL); - - errorstate = SDMMC_ERROR_DATA_CRC_FAIL; - - return errorstate; - } - else if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXOVERR)) - { - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_FLAG_RXOVERR); - - errorstate = SDMMC_ERROR_RX_OVERRUN; - - return errorstate; - } - else - { - /* No error flag set */ - } - - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_DATA_FLAGS); - - /* Test if the switch mode HS is ok */ - if ((((uint8_t *)SD_hs)[13] & 2U) != 2U) - { - errorstate = SDMMC_ERROR_UNSUPPORTED_FEATURE; - } - else - { -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) - hsd->DriveTransceiver_1_8V_Callback(SET); -#else - HAL_SD_DriveTransceiver_1_8V_Callback(SET); -#endif /* USE_HAL_SD_REGISTER_CALLBACKS */ -#if defined (DLYB_SDMMC1) || defined (DLYB_SDMMC2) - /* Enable DelayBlock Peripheral */ - /* SDMMC_FB_CLK tuned feedback clock selected as receive clock, for SDR104 */ - MODIFY_REG(hsd->Instance->CLKCR, SDMMC_CLKCR_SELCLKRX, SDMMC_CLKCR_SELCLKRX_1); - if (DelayBlock_Enable(SD_GET_DLYB_INSTANCE(hsd->Instance)) != HAL_OK) - { - return (HAL_SD_ERROR_GENERAL_UNKNOWN_ERR); - } -#endif /* (DLYB_SDMMC1) || (DLYB_SDMMC2) */ - } - } - - return errorstate; -} - -/** - * @brief Switches the SD card to Double Data Rate (DDR) mode. - * This API must be used after "Transfer State" - * @note This operation should be followed by the configuration - * of PLL to have SDMMCCK clock less than 50MHz - * @param hsd: SD handle - * @retval SD Card error state - */ -static uint32_t SD_DDR_Mode(SD_HandleTypeDef *hsd) -{ - uint32_t errorstate = HAL_SD_ERROR_NONE; - SDMMC_DataInitTypeDef sdmmc_datainitstructure; - uint32_t SD_hs[16] = {0}; - uint32_t count; - uint32_t loop = 0 ; - uint32_t Timeout = HAL_GetTick(); - - if (hsd->SdCard.CardSpeed == CARD_NORMAL_SPEED) - { - /* Standard Speed Card <= 12.5Mhz */ - return HAL_SD_ERROR_REQUEST_NOT_APPLICABLE; - } - - if (hsd->SdCard.CardSpeed == CARD_ULTRA_HIGH_SPEED) - { - /* Initialize the Data control register */ - hsd->Instance->DCTRL = 0; - errorstate = SDMMC_CmdBlockLength(hsd->Instance, 64U); - - if (errorstate != HAL_SD_ERROR_NONE) - { - return errorstate; - } - - /* Configure the SD DPSM (Data Path State Machine) */ - sdmmc_datainitstructure.DataTimeOut = SDMMC_DATATIMEOUT; - sdmmc_datainitstructure.DataLength = 64U; - sdmmc_datainitstructure.DataBlockSize = SDMMC_DATABLOCK_SIZE_64B ; - sdmmc_datainitstructure.TransferDir = SDMMC_TRANSFER_DIR_TO_SDMMC; - sdmmc_datainitstructure.TransferMode = SDMMC_TRANSFER_MODE_BLOCK; - sdmmc_datainitstructure.DPSM = SDMMC_DPSM_ENABLE; - - if (SDMMC_ConfigData(hsd->Instance, &sdmmc_datainitstructure) != HAL_OK) - { - return (HAL_SD_ERROR_GENERAL_UNKNOWN_ERR); - } - - errorstate = SDMMC_CmdSwitch(hsd->Instance, SDMMC_DDR50_SWITCH_PATTERN); - if (errorstate != HAL_SD_ERROR_NONE) - { - return errorstate; - } - - while (!__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXOVERR | SDMMC_FLAG_DCRCFAIL | SDMMC_FLAG_DTIMEOUT | SDMMC_FLAG_DBCKEND | - SDMMC_FLAG_DATAEND)) - { - if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXFIFOHF)) - { - for (count = 0U; count < 8U; count++) - { - SD_hs[(8U * loop) + count] = SDMMC_ReadFIFO(hsd->Instance); - } - loop ++; - } - - if ((HAL_GetTick() - Timeout) >= SDMMC_DATATIMEOUT) - { - hsd->ErrorCode = HAL_SD_ERROR_TIMEOUT; - hsd->State = HAL_SD_STATE_READY; - return HAL_SD_ERROR_TIMEOUT; - } - } - - if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DTIMEOUT)) - { - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_FLAG_DTIMEOUT); - - return errorstate; - } - else if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DCRCFAIL)) - { - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_FLAG_DCRCFAIL); - - errorstate = SDMMC_ERROR_DATA_CRC_FAIL; - - return errorstate; - } - else if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXOVERR)) - { - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_FLAG_RXOVERR); - - errorstate = SDMMC_ERROR_RX_OVERRUN; - - return errorstate; - } - else - { - /* No error flag set */ - } - - /* Clear all the static flags */ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_DATA_FLAGS); - - /* Test if the switch mode is ok */ - if ((((uint8_t *)SD_hs)[13] & 2U) != 2U) - { - errorstate = SDMMC_ERROR_UNSUPPORTED_FEATURE; - } - else - { -#if defined (USE_HAL_SD_REGISTER_CALLBACKS) && (USE_HAL_SD_REGISTER_CALLBACKS == 1U) - hsd->DriveTransceiver_1_8V_Callback(SET); -#else - HAL_SD_DriveTransceiver_1_8V_Callback(SET); -#endif /* USE_HAL_SD_REGISTER_CALLBACKS */ -#if defined (DLYB_SDMMC1) || defined (DLYB_SDMMC2) - /* Enable DelayBlock Peripheral */ - /* SDMMC_CKin feedback clock selected as receive clock, for DDR50 */ - MODIFY_REG(hsd->Instance->CLKCR, SDMMC_CLKCR_SELCLKRX, SDMMC_CLKCR_SELCLKRX_0); - if (DelayBlock_Enable(SD_GET_DLYB_INSTANCE(hsd->Instance)) != HAL_OK) - { - return (HAL_SD_ERROR_GENERAL_UNKNOWN_ERR); - } -#endif /* (DLYB_SDMMC1) || (DLYB_SDMMC2) */ - } - } - - return errorstate; -} - -#endif /* USE_SD_TRANSCEIVER */ - -/** - * @brief Read DMA Buffer 0 Transfer completed callbacks - * @param hsd: SD handle - * @retval None - */ -__weak void HAL_SDEx_Read_DMADoubleBuf0CpltCallback(SD_HandleTypeDef *hsd) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hsd); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_SDEx_Read_DMADoubleBuf0CpltCallback can be implemented in the user file - */ -} - -/** - * @brief Read DMA Buffer 1 Transfer completed callbacks - * @param hsd: SD handle - * @retval None - */ -__weak void HAL_SDEx_Read_DMADoubleBuf1CpltCallback(SD_HandleTypeDef *hsd) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hsd); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_SDEx_Read_DMADoubleBuf1CpltCallback can be implemented in the user file - */ -} - -/** - * @brief Write DMA Buffer 0 Transfer completed callbacks - * @param hsd: SD handle - * @retval None - */ -__weak void HAL_SDEx_Write_DMADoubleBuf0CpltCallback(SD_HandleTypeDef *hsd) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hsd); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_SDEx_Write_DMADoubleBuf0CpltCallback can be implemented in the user file - */ -} - -/** - * @brief Write DMA Buffer 1 Transfer completed callbacks - * @param hsd: SD handle - * @retval None - */ -__weak void HAL_SDEx_Write_DMADoubleBuf1CpltCallback(SD_HandleTypeDef *hsd) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(hsd); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_SDEx_Write_DMADoubleBuf1CpltCallback can be implemented in the user file - */ -} - - -/** - * @} - */ - -#endif /* HAL_SD_MODULE_ENABLED */ - -/** - * @} - */ - -/** - * @} - */ diff --git a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.c b/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.c deleted file mode 100644 index 1cc19e3..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.c +++ /dev/null @@ -1,313 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_sd_ex.c - * @author MCD Application Team - * @brief SD card Extended HAL module driver. - * This file provides firmware functions to manage the following - * functionalities of the Secure Digital (SD) peripheral: - * + Extended features functions - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - @verbatim - ============================================================================== - ##### How to use this driver ##### - ============================================================================== - [..] - The SD Extension HAL driver can be used as follows: - (+) Configure Buffer0 and Buffer1 start address and Buffer size using HAL_SDEx_ConfigDMAMultiBuffer() function. - (+) Start Read and Write for multibuffer mode using HAL_SDEx_ReadBlocksDMAMultiBuffer() - and HAL_SDEx_WriteBlocksDMAMultiBuffer() functions. - - @endverbatim - ****************************************************************************** - */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @defgroup SDEx SDEx - * @brief SD Extended HAL module driver - * @{ - */ - -#ifdef HAL_SD_MODULE_ENABLED - -/* Private typedef -----------------------------------------------------------*/ -/* Private define ------------------------------------------------------------*/ -/* Private macro -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private function prototypes -----------------------------------------------*/ -/* Private functions ---------------------------------------------------------*/ -/* Exported functions --------------------------------------------------------*/ -/** @addtogroup SDEx_Exported_Functions - * @{ - */ - -/** @addtogroup SDEx_Exported_Functions_Group1 - * @brief Multibuffer functions - * -@verbatim - ============================================================================== - ##### Multibuffer functions ##### - ============================================================================== - [..] - This section provides functions allowing to configure the multibuffer mode and start read and write - multibuffer mode for SD HAL driver. - -@endverbatim - * @{ - */ - -/** - * @brief Configure DMA Dual Buffer mode. The Data transfer is managed by an Internal DMA. - * @param hsd: SD handle - * @param pDataBuffer0: Pointer to the buffer0 that will contain/receive the transferred data - * @param pDataBuffer1: Pointer to the buffer1 that will contain/receive the transferred data - * @param BufferSize: Size of Buffer0 in Blocks. Buffer0 and Buffer1 must have the same size. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SDEx_ConfigDMAMultiBuffer(SD_HandleTypeDef *hsd, uint32_t *pDataBuffer0, uint32_t *pDataBuffer1, - uint32_t BufferSize) -{ - if (hsd->State == HAL_SD_STATE_READY) - { - hsd->Instance->IDMABASE0 = (uint32_t) pDataBuffer0; - hsd->Instance->IDMABASE1 = (uint32_t) pDataBuffer1; - hsd->Instance->IDMABSIZE = (uint32_t)(BLOCKSIZE * BufferSize); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Reads block(s) from a specified address in a card. The received Data will be stored in Buffer0 and Buffer1. - * Buffer0, Buffer1 and BufferSize need to be configured by function HAL_SDEx_ConfigDMAMultiBuffer before - * call this function. - * @param hsd: SD handle - * @param BlockAdd: Block Address from where data is to be read - * @param NumberOfBlocks: Total number of blocks to read - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SDEx_ReadBlocksDMAMultiBuffer(SD_HandleTypeDef *hsd, uint32_t BlockAdd, uint32_t NumberOfBlocks) -{ - SDMMC_DataInitTypeDef config; - uint32_t errorstate; - uint32_t DmaBase0_reg; - uint32_t DmaBase1_reg; - uint32_t add = BlockAdd; - - if (hsd->State == HAL_SD_STATE_READY) - { - if ((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) - { - hsd->ErrorCode |= HAL_SD_ERROR_ADDR_OUT_OF_RANGE; - return HAL_ERROR; - } - - DmaBase0_reg = hsd->Instance->IDMABASE0; - DmaBase1_reg = hsd->Instance->IDMABASE1; - - if ((hsd->Instance->IDMABSIZE == 0U) || (DmaBase0_reg == 0U) || (DmaBase1_reg == 0U)) - { - hsd->ErrorCode = HAL_SD_ERROR_ADDR_OUT_OF_RANGE; - return HAL_ERROR; - } - - /* Initialize data control register */ - hsd->Instance->DCTRL = 0; - /* Clear old Flags*/ - __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_DATA_FLAGS); - - hsd->ErrorCode = HAL_SD_ERROR_NONE; - hsd->State = HAL_SD_STATE_BUSY; - - if (hsd->SdCard.CardType != CARD_SDHC_SDXC) - { - add *= 512U; - } - - /* Configure the SD DPSM (Data Path State Machine) */ - config.DataTimeOut = SDMMC_DATATIMEOUT; - config.DataLength = BLOCKSIZE * NumberOfBlocks; - config.DataBlockSize = SDMMC_DATABLOCK_SIZE_512B; - config.TransferDir = SDMMC_TRANSFER_DIR_TO_SDMMC; - config.TransferMode = SDMMC_TRANSFER_MODE_BLOCK; - config.DPSM = SDMMC_DPSM_DISABLE; - (void)SDMMC_ConfigData(hsd->Instance, &config); - - hsd->Instance->DCTRL |= SDMMC_DCTRL_FIFORST; - - __SDMMC_CMDTRANS_ENABLE(hsd->Instance); - - hsd->Instance->IDMACTRL = SDMMC_ENABLE_IDMA_DOUBLE_BUFF0; - - /* Read Blocks in DMA mode */ - hsd->Context = (SD_CONTEXT_READ_MULTIPLE_BLOCK | SD_CONTEXT_DMA); - - /* Read Multi Block command */ - errorstate = SDMMC_CmdReadMultiBlock(hsd->Instance, add); - if (errorstate != HAL_SD_ERROR_NONE) - { - hsd->State = HAL_SD_STATE_READY; - hsd->ErrorCode |= errorstate; - return HAL_ERROR; - } - - __HAL_SD_ENABLE_IT(hsd, (SDMMC_IT_DCRCFAIL | SDMMC_IT_DTIMEOUT | SDMMC_IT_RXOVERR | SDMMC_IT_DATAEND | - SDMMC_IT_IDMABTC)); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } - -} - -/** - * @brief Write block(s) to a specified address in a card. The transferred Data are stored in Buffer0 and Buffer1. - * Buffer0, Buffer1 and BufferSize need to be configured by function HAL_SDEx_ConfigDMAMultiBuffer before - * call this function. - * @param hsd: SD handle - * @param BlockAdd: Block Address from where data is to be read - * @param NumberOfBlocks: Total number of blocks to read - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SDEx_WriteBlocksDMAMultiBuffer(SD_HandleTypeDef *hsd, uint32_t BlockAdd, uint32_t NumberOfBlocks) -{ - SDMMC_DataInitTypeDef config; - uint32_t errorstate; - uint32_t DmaBase0_reg; - uint32_t DmaBase1_reg; - uint32_t add = BlockAdd; - - if (hsd->State == HAL_SD_STATE_READY) - { - if ((add + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr)) - { - hsd->ErrorCode |= HAL_SD_ERROR_ADDR_OUT_OF_RANGE; - return HAL_ERROR; - } - - DmaBase0_reg = hsd->Instance->IDMABASE0; - DmaBase1_reg = hsd->Instance->IDMABASE1; - if ((hsd->Instance->IDMABSIZE == 0U) || (DmaBase0_reg == 0U) || (DmaBase1_reg == 0U)) - { - hsd->ErrorCode = HAL_SD_ERROR_ADDR_OUT_OF_RANGE; - return HAL_ERROR; - } - - /* Initialize data control register */ - hsd->Instance->DCTRL = 0; - - hsd->ErrorCode = HAL_SD_ERROR_NONE; - - hsd->State = HAL_SD_STATE_BUSY; - - if (hsd->SdCard.CardType != CARD_SDHC_SDXC) - { - add *= 512U; - } - - /* Configure the SD DPSM (Data Path State Machine) */ - config.DataTimeOut = SDMMC_DATATIMEOUT; - config.DataLength = BLOCKSIZE * NumberOfBlocks; - config.DataBlockSize = SDMMC_DATABLOCK_SIZE_512B; - config.TransferDir = SDMMC_TRANSFER_DIR_TO_CARD; - config.TransferMode = SDMMC_TRANSFER_MODE_BLOCK; - config.DPSM = SDMMC_DPSM_DISABLE; - (void)SDMMC_ConfigData(hsd->Instance, &config); - - __SDMMC_CMDTRANS_ENABLE(hsd->Instance); - - hsd->Instance->IDMACTRL = SDMMC_ENABLE_IDMA_DOUBLE_BUFF0; - - /* Write Blocks in DMA mode */ - hsd->Context = (SD_CONTEXT_WRITE_MULTIPLE_BLOCK | SD_CONTEXT_DMA); - - /* Write Multi Block command */ - errorstate = SDMMC_CmdWriteMultiBlock(hsd->Instance, add); - if (errorstate != HAL_SD_ERROR_NONE) - { - hsd->State = HAL_SD_STATE_READY; - hsd->ErrorCode |= errorstate; - return HAL_ERROR; - } - - __HAL_SD_ENABLE_IT(hsd, (SDMMC_IT_DCRCFAIL | SDMMC_IT_DTIMEOUT | SDMMC_IT_TXUNDERR | SDMMC_IT_DATAEND | - SDMMC_IT_IDMABTC)); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - - -/** - * @brief Change the DMA Buffer0 or Buffer1 address on the fly. - * @param hsd: pointer to a SD_HandleTypeDef structure. - * @param Buffer: the buffer to be changed, This parameter can be one of - * the following values: SD_DMA_BUFFER0 or SD_DMA_BUFFER1 - * @param pDataBuffer: The new address - * @note The BUFFER0 address can be changed only when the current transfer use - * BUFFER1 and the BUFFER1 address can be changed only when the current - * transfer use BUFFER0. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_SDEx_ChangeDMABuffer(SD_HandleTypeDef *hsd, HAL_SDEx_DMABuffer_MemoryTypeDef Buffer, - uint32_t *pDataBuffer) -{ - if (Buffer == SD_DMA_BUFFER0) - { - /* change the buffer0 address */ - hsd->Instance->IDMABASE0 = (uint32_t)pDataBuffer; - } - else - { - /* change the memory1 address */ - hsd->Instance->IDMABASE1 = (uint32_t)pDataBuffer; - } - - return HAL_OK; -} - - -/** - * @} - */ - -/** - * @} - */ - -#endif /* HAL_SD_MODULE_ENABLED */ - -/** - * @} - */ - -/** - * @} - */ diff --git a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c b/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c deleted file mode 100644 index eab578f..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c +++ /dev/null @@ -1,7908 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_tim.c - * @author MCD Application Team - * @brief TIM HAL module driver. - * This file provides firmware functions to manage the following - * functionalities of the Timer (TIM) peripheral: - * + TIM Time Base Initialization - * + TIM Time Base Start - * + TIM Time Base Start Interruption - * + TIM Time Base Start DMA - * + TIM Output Compare/PWM Initialization - * + TIM Output Compare/PWM Channel Configuration - * + TIM Output Compare/PWM Start - * + TIM Output Compare/PWM Start Interruption - * + TIM Output Compare/PWM Start DMA - * + TIM Input Capture Initialization - * + TIM Input Capture Channel Configuration - * + TIM Input Capture Start - * + TIM Input Capture Start Interruption - * + TIM Input Capture Start DMA - * + TIM One Pulse Initialization - * + TIM One Pulse Channel Configuration - * + TIM One Pulse Start - * + TIM Encoder Interface Initialization - * + TIM Encoder Interface Start - * + TIM Encoder Interface Start Interruption - * + TIM Encoder Interface Start DMA - * + Commutation Event configuration with Interruption and DMA - * + TIM OCRef clear configuration - * + TIM External Clock configuration - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - @verbatim - ============================================================================== - ##### TIMER Generic features ##### - ============================================================================== - [..] The Timer features include: - (#) 16-bit up, down, up/down auto-reload counter. - (#) 16-bit programmable prescaler allowing dividing (also on the fly) the - counter clock frequency either by any factor between 1 and 65536. - (#) Up to 4 independent channels for: - (++) Input Capture - (++) Output Compare - (++) PWM generation (Edge and Center-aligned Mode) - (++) One-pulse mode output - (#) Synchronization circuit to control the timer with external signals and to interconnect - several timers together. - (#) Supports incremental encoder for positioning purposes - - ##### How to use this driver ##### - ============================================================================== - [..] - (#) Initialize the TIM low level resources by implementing the following functions - depending on the selected feature: - (++) Time Base : HAL_TIM_Base_MspInit() - (++) Input Capture : HAL_TIM_IC_MspInit() - (++) Output Compare : HAL_TIM_OC_MspInit() - (++) PWM generation : HAL_TIM_PWM_MspInit() - (++) One-pulse mode output : HAL_TIM_OnePulse_MspInit() - (++) Encoder mode output : HAL_TIM_Encoder_MspInit() - - (#) Initialize the TIM low level resources : - (##) Enable the TIM interface clock using __HAL_RCC_TIMx_CLK_ENABLE(); - (##) TIM pins configuration - (+++) Enable the clock for the TIM GPIOs using the following function: - __HAL_RCC_GPIOx_CLK_ENABLE(); - (+++) Configure these TIM pins in Alternate function mode using HAL_GPIO_Init(); - - (#) The external Clock can be configured, if needed (the default clock is the - internal clock from the APBx), using the following function: - HAL_TIM_ConfigClockSource, the clock configuration should be done before - any start function. - - (#) Configure the TIM in the desired functioning mode using one of the - Initialization function of this driver: - (++) HAL_TIM_Base_Init: to use the Timer to generate a simple time base - (++) HAL_TIM_OC_Init and HAL_TIM_OC_ConfigChannel: to use the Timer to generate an - Output Compare signal. - (++) HAL_TIM_PWM_Init and HAL_TIM_PWM_ConfigChannel: to use the Timer to generate a - PWM signal. - (++) HAL_TIM_IC_Init and HAL_TIM_IC_ConfigChannel: to use the Timer to measure an - external signal. - (++) HAL_TIM_OnePulse_Init and HAL_TIM_OnePulse_ConfigChannel: to use the Timer - in One Pulse Mode. - (++) HAL_TIM_Encoder_Init: to use the Timer Encoder Interface. - - (#) Activate the TIM peripheral using one of the start functions depending from the feature used: - (++) Time Base : HAL_TIM_Base_Start(), HAL_TIM_Base_Start_DMA(), HAL_TIM_Base_Start_IT() - (++) Input Capture : HAL_TIM_IC_Start(), HAL_TIM_IC_Start_DMA(), HAL_TIM_IC_Start_IT() - (++) Output Compare : HAL_TIM_OC_Start(), HAL_TIM_OC_Start_DMA(), HAL_TIM_OC_Start_IT() - (++) PWM generation : HAL_TIM_PWM_Start(), HAL_TIM_PWM_Start_DMA(), HAL_TIM_PWM_Start_IT() - (++) One-pulse mode output : HAL_TIM_OnePulse_Start(), HAL_TIM_OnePulse_Start_IT() - (++) Encoder mode output : HAL_TIM_Encoder_Start(), HAL_TIM_Encoder_Start_DMA(), HAL_TIM_Encoder_Start_IT(). - - (#) The DMA Burst is managed with the two following functions: - HAL_TIM_DMABurst_WriteStart() - HAL_TIM_DMABurst_ReadStart() - - *** Callback registration *** - ============================================= - - [..] - The compilation define USE_HAL_TIM_REGISTER_CALLBACKS when set to 1 - allows the user to configure dynamically the driver callbacks. - - [..] - Use Function HAL_TIM_RegisterCallback() to register a callback. - HAL_TIM_RegisterCallback() takes as parameters the HAL peripheral handle, - the Callback ID and a pointer to the user callback function. - - [..] - Use function HAL_TIM_UnRegisterCallback() to reset a callback to the default - weak function. - HAL_TIM_UnRegisterCallback takes as parameters the HAL peripheral handle, - and the Callback ID. - - [..] - These functions allow to register/unregister following callbacks: - (+) Base_MspInitCallback : TIM Base Msp Init Callback. - (+) Base_MspDeInitCallback : TIM Base Msp DeInit Callback. - (+) IC_MspInitCallback : TIM IC Msp Init Callback. - (+) IC_MspDeInitCallback : TIM IC Msp DeInit Callback. - (+) OC_MspInitCallback : TIM OC Msp Init Callback. - (+) OC_MspDeInitCallback : TIM OC Msp DeInit Callback. - (+) PWM_MspInitCallback : TIM PWM Msp Init Callback. - (+) PWM_MspDeInitCallback : TIM PWM Msp DeInit Callback. - (+) OnePulse_MspInitCallback : TIM One Pulse Msp Init Callback. - (+) OnePulse_MspDeInitCallback : TIM One Pulse Msp DeInit Callback. - (+) Encoder_MspInitCallback : TIM Encoder Msp Init Callback. - (+) Encoder_MspDeInitCallback : TIM Encoder Msp DeInit Callback. - (+) HallSensor_MspInitCallback : TIM Hall Sensor Msp Init Callback. - (+) HallSensor_MspDeInitCallback : TIM Hall Sensor Msp DeInit Callback. - (+) PeriodElapsedCallback : TIM Period Elapsed Callback. - (+) PeriodElapsedHalfCpltCallback : TIM Period Elapsed half complete Callback. - (+) TriggerCallback : TIM Trigger Callback. - (+) TriggerHalfCpltCallback : TIM Trigger half complete Callback. - (+) IC_CaptureCallback : TIM Input Capture Callback. - (+) IC_CaptureHalfCpltCallback : TIM Input Capture half complete Callback. - (+) OC_DelayElapsedCallback : TIM Output Compare Delay Elapsed Callback. - (+) PWM_PulseFinishedCallback : TIM PWM Pulse Finished Callback. - (+) PWM_PulseFinishedHalfCpltCallback : TIM PWM Pulse Finished half complete Callback. - (+) ErrorCallback : TIM Error Callback. - (+) CommutationCallback : TIM Commutation Callback. - (+) CommutationHalfCpltCallback : TIM Commutation half complete Callback. - (+) BreakCallback : TIM Break Callback. - (+) Break2Callback : TIM Break2 Callback. - - [..] -By default, after the Init and when the state is HAL_TIM_STATE_RESET -all interrupt callbacks are set to the corresponding weak functions: - examples HAL_TIM_TriggerCallback(), HAL_TIM_ErrorCallback(). - - [..] - Exception done for MspInit and MspDeInit functions that are reset to the legacy weak - functionalities in the Init / DeInit only when these callbacks are null - (not registered beforehand). If not, MspInit or MspDeInit are not null, the Init / DeInit - keep and use the user MspInit / MspDeInit callbacks(registered beforehand) - - [..] - Callbacks can be registered / unregistered in HAL_TIM_STATE_READY state only. - Exception done MspInit / MspDeInit that can be registered / unregistered - in HAL_TIM_STATE_READY or HAL_TIM_STATE_RESET state, - thus registered(user) MspInit / DeInit callbacks can be used during the Init / DeInit. - In that case first register the MspInit/MspDeInit user callbacks - using HAL_TIM_RegisterCallback() before calling DeInit or Init function. - - [..] - When The compilation define USE_HAL_TIM_REGISTER_CALLBACKS is set to 0 or - not defined, the callback registration feature is not available and all callbacks - are set to the corresponding weak functions. - - @endverbatim - ****************************************************************************** - */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @defgroup TIM TIM - * @brief TIM HAL module driver - * @{ - */ - -#ifdef HAL_TIM_MODULE_ENABLED - -/* Private typedef -----------------------------------------------------------*/ -/* Private define ------------------------------------------------------------*/ -/* Private macros ------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private function prototypes -----------------------------------------------*/ -/** @addtogroup TIM_Private_Functions - * @{ - */ -static void TIM_OC1_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config); -static void TIM_OC3_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config); -static void TIM_OC4_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config); -static void TIM_OC5_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config); -static void TIM_OC6_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config); -static void TIM_TI1_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter); -static void TIM_TI2_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, - uint32_t TIM_ICFilter); -static void TIM_TI2_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter); -static void TIM_TI3_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, - uint32_t TIM_ICFilter); -static void TIM_TI4_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, - uint32_t TIM_ICFilter); -static void TIM_ITRx_SetConfig(TIM_TypeDef *TIMx, uint32_t InputTriggerSource); -static void TIM_DMAPeriodElapsedCplt(DMA_HandleTypeDef *hdma); -static void TIM_DMAPeriodElapsedHalfCplt(DMA_HandleTypeDef *hdma); -static void TIM_DMADelayPulseCplt(DMA_HandleTypeDef *hdma); -static void TIM_DMATriggerCplt(DMA_HandleTypeDef *hdma); -static void TIM_DMATriggerHalfCplt(DMA_HandleTypeDef *hdma); -static HAL_StatusTypeDef TIM_SlaveTimer_SetConfig(TIM_HandleTypeDef *htim, - const TIM_SlaveConfigTypeDef *sSlaveConfig); -/** - * @} - */ -/* Exported functions --------------------------------------------------------*/ - -/** @defgroup TIM_Exported_Functions TIM Exported Functions - * @{ - */ - -/** @defgroup TIM_Exported_Functions_Group1 TIM Time Base functions - * @brief Time Base functions - * -@verbatim - ============================================================================== - ##### Time Base functions ##### - ============================================================================== - [..] - This section provides functions allowing to: - (+) Initialize and configure the TIM base. - (+) De-initialize the TIM base. - (+) Start the Time Base. - (+) Stop the Time Base. - (+) Start the Time Base and enable interrupt. - (+) Stop the Time Base and disable interrupt. - (+) Start the Time Base and enable DMA transfer. - (+) Stop the Time Base and disable DMA transfer. - -@endverbatim - * @{ - */ -/** - * @brief Initializes the TIM Time base Unit according to the specified - * parameters in the TIM_HandleTypeDef and initialize the associated handle. - * @note Switching from Center Aligned counter mode to Edge counter mode (or reverse) - * requires a timer reset to avoid unexpected direction - * due to DIR bit readonly in center aligned mode. - * 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) -{ - /* Check the TIM handle allocation */ - if (htim == NULL) - { - return HAL_ERROR; - } - - /* Check the parameters */ - 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_PERIOD(htim, htim->Init.Period)); - assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); - - if (htim->State == HAL_TIM_STATE_RESET) - { - /* Allocate lock resource and initialize it */ - htim->Lock = HAL_UNLOCKED; - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - /* Reset interrupt callbacks to legacy weak callbacks */ - TIM_ResetCallback(htim); - - if (htim->Base_MspInitCallback == NULL) - { - htim->Base_MspInitCallback = HAL_TIM_Base_MspInit; - } - /* 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); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - - /* Set the TIM state */ - htim->State = HAL_TIM_STATE_BUSY; - - /* Set the Time Base configuration */ - TIM_Base_SetConfig(htim->Instance, &htim->Init); - - /* Initialize the DMA burst operation state */ - htim->DMABurstState = HAL_DMA_BURST_STATE_READY; - - /* Initialize the TIM channels state */ - TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); - - /* Initialize the TIM state*/ - htim->State = HAL_TIM_STATE_READY; - - return HAL_OK; -} - -/** - * @brief DeInitializes the TIM Base peripheral - * @param htim TIM Base handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_Base_DeInit(TIM_HandleTypeDef *htim) -{ - /* Check the parameters */ - assert_param(IS_TIM_INSTANCE(htim->Instance)); - - htim->State = HAL_TIM_STATE_BUSY; - - /* Disable the TIM Peripheral Clock */ - __HAL_TIM_DISABLE(htim); - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - if (htim->Base_MspDeInitCallback == NULL) - { - htim->Base_MspDeInitCallback = HAL_TIM_Base_MspDeInit; - } - /* DeInit the low level hardware */ - htim->Base_MspDeInitCallback(htim); -#else - /* DeInit the low level hardware: GPIO, CLOCK, NVIC */ - HAL_TIM_Base_MspDeInit(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - - /* Change the DMA burst operation state */ - htim->DMABurstState = HAL_DMA_BURST_STATE_RESET; - - /* Change the TIM channels state */ - TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_RESET); - TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_RESET); - - /* Change TIM state */ - htim->State = HAL_TIM_STATE_RESET; - - /* Release Lock */ - __HAL_UNLOCK(htim); - - return HAL_OK; -} - -/** - * @brief Initializes the TIM Base MSP. - * @param htim TIM Base handle - * @retval None - */ -__weak void HAL_TIM_Base_MspInit(TIM_HandleTypeDef *htim) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(htim); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_TIM_Base_MspInit could be implemented in the user file - */ -} - -/** - * @brief DeInitializes TIM Base MSP. - * @param htim TIM Base handle - * @retval None - */ -__weak void HAL_TIM_Base_MspDeInit(TIM_HandleTypeDef *htim) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(htim); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_TIM_Base_MspDeInit could be implemented in the user file - */ -} - - -/** - * @brief Starts the TIM Base generation. - * @param htim TIM Base handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_Base_Start(TIM_HandleTypeDef *htim) -{ - uint32_t tmpsmcr; - - /* Check the parameters */ - assert_param(IS_TIM_INSTANCE(htim->Instance)); - - /* Check the TIM state */ - if (htim->State != HAL_TIM_STATE_READY) - { - return HAL_ERROR; - } - - /* Set the TIM state */ - htim->State = HAL_TIM_STATE_BUSY; - - /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ - if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - { - tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; - if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - { - __HAL_TIM_ENABLE(htim); - } - } - else - { - __HAL_TIM_ENABLE(htim); - } - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Stops the TIM Base generation. - * @param htim TIM Base handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_Base_Stop(TIM_HandleTypeDef *htim) -{ - /* Check the parameters */ - assert_param(IS_TIM_INSTANCE(htim->Instance)); - - /* Disable the Peripheral */ - __HAL_TIM_DISABLE(htim); - - /* Set the TIM state */ - htim->State = HAL_TIM_STATE_READY; - - /* Return function status */ - return HAL_OK; -} - -/** - * @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) -{ - uint32_t tmpsmcr; - - /* Check the parameters */ - assert_param(IS_TIM_INSTANCE(htim->Instance)); - - /* Check the TIM state */ - if (htim->State != HAL_TIM_STATE_READY) - { - return HAL_ERROR; - } - - /* Set the TIM state */ - htim->State = HAL_TIM_STATE_BUSY; - - /* Enable the TIM Update interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE); - - /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ - if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - { - tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; - if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - { - __HAL_TIM_ENABLE(htim); - } - } - else - { - __HAL_TIM_ENABLE(htim); - } - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Stops the TIM Base generation in interrupt mode. - * @param htim TIM Base handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_Base_Stop_IT(TIM_HandleTypeDef *htim) -{ - /* Check the parameters */ - assert_param(IS_TIM_INSTANCE(htim->Instance)); - - /* Disable the TIM Update interrupt */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_UPDATE); - - /* Disable the Peripheral */ - __HAL_TIM_DISABLE(htim); - - /* Set the TIM state */ - htim->State = HAL_TIM_STATE_READY; - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Starts the TIM Base generation in DMA mode. - * @param htim TIM Base handle - * @param pData The source Buffer address. - * @param Length The length of data to be transferred from memory to peripheral. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_Base_Start_DMA(TIM_HandleTypeDef *htim, const uint32_t *pData, uint16_t Length) -{ - uint32_t tmpsmcr; - - /* Check the parameters */ - assert_param(IS_TIM_DMA_INSTANCE(htim->Instance)); - - /* Set the TIM state */ - if (htim->State == HAL_TIM_STATE_BUSY) - { - return HAL_BUSY; - } - else if (htim->State == HAL_TIM_STATE_READY) - { - if ((pData == NULL) || (Length == 0U)) - { - return HAL_ERROR; - } - else - { - htim->State = HAL_TIM_STATE_BUSY; - } - } - else - { - return HAL_ERROR; - } - - /* Set the DMA Period elapsed callbacks */ - htim->hdma[TIM_DMA_ID_UPDATE]->XferCpltCallback = TIM_DMAPeriodElapsedCplt; - htim->hdma[TIM_DMA_ID_UPDATE]->XferHalfCpltCallback = TIM_DMAPeriodElapsedHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_UPDATE]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_UPDATE], (uint32_t)pData, (uint32_t)&htim->Instance->ARR, - Length) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - - /* Enable the TIM Update DMA request */ - __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_UPDATE); - - /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ - if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - { - tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; - if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - { - __HAL_TIM_ENABLE(htim); - } - } - else - { - __HAL_TIM_ENABLE(htim); - } - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Stops the TIM Base generation in DMA mode. - * @param htim TIM Base handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_Base_Stop_DMA(TIM_HandleTypeDef *htim) -{ - /* Check the parameters */ - assert_param(IS_TIM_DMA_INSTANCE(htim->Instance)); - - /* Disable the TIM Update DMA request */ - __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_UPDATE); - - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_UPDATE]); - - /* Disable the Peripheral */ - __HAL_TIM_DISABLE(htim); - - /* Set the TIM state */ - htim->State = HAL_TIM_STATE_READY; - - /* Return function status */ - return HAL_OK; -} - -/** - * @} - */ - -/** @defgroup TIM_Exported_Functions_Group2 TIM Output Compare functions - * @brief TIM Output Compare functions - * -@verbatim - ============================================================================== - ##### TIM Output Compare functions ##### - ============================================================================== - [..] - This section provides functions allowing to: - (+) Initialize and configure the TIM Output Compare. - (+) De-initialize the TIM Output Compare. - (+) Start the TIM Output Compare. - (+) Stop the TIM Output Compare. - (+) Start the TIM Output Compare and enable interrupt. - (+) Stop the TIM Output Compare and disable interrupt. - (+) Start the TIM Output Compare and enable DMA transfer. - (+) Stop the TIM Output Compare and disable DMA transfer. - -@endverbatim - * @{ - */ -/** - * @brief Initializes the TIM Output Compare according to the specified - * parameters in the TIM_HandleTypeDef and initializes the associated handle. - * @note Switching from Center Aligned counter mode to Edge counter mode (or reverse) - * requires a timer reset to avoid unexpected direction - * due to DIR bit readonly in center aligned mode. - * Ex: call @ref HAL_TIM_OC_DeInit() before HAL_TIM_OC_Init() - * @param htim TIM Output Compare handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_OC_Init(TIM_HandleTypeDef *htim) -{ - /* Check the TIM handle allocation */ - if (htim == NULL) - { - return HAL_ERROR; - } - - /* Check the parameters */ - 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_PERIOD(htim, htim->Init.Period)); - assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); - - if (htim->State == HAL_TIM_STATE_RESET) - { - /* Allocate lock resource and initialize it */ - htim->Lock = HAL_UNLOCKED; - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - /* Reset interrupt callbacks to legacy weak callbacks */ - TIM_ResetCallback(htim); - - if (htim->OC_MspInitCallback == NULL) - { - htim->OC_MspInitCallback = HAL_TIM_OC_MspInit; - } - /* Init the low level hardware : GPIO, CLOCK, NVIC */ - htim->OC_MspInitCallback(htim); -#else - /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */ - HAL_TIM_OC_MspInit(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - - /* Set the TIM state */ - htim->State = HAL_TIM_STATE_BUSY; - - /* Init the base time for the Output Compare */ - TIM_Base_SetConfig(htim->Instance, &htim->Init); - - /* Initialize the DMA burst operation state */ - htim->DMABurstState = HAL_DMA_BURST_STATE_READY; - - /* Initialize the TIM channels state */ - TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); - - /* Initialize the TIM state*/ - htim->State = HAL_TIM_STATE_READY; - - return HAL_OK; -} - -/** - * @brief DeInitializes the TIM peripheral - * @param htim TIM Output Compare handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_OC_DeInit(TIM_HandleTypeDef *htim) -{ - /* Check the parameters */ - assert_param(IS_TIM_INSTANCE(htim->Instance)); - - htim->State = HAL_TIM_STATE_BUSY; - - /* Disable the TIM Peripheral Clock */ - __HAL_TIM_DISABLE(htim); - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - if (htim->OC_MspDeInitCallback == NULL) - { - htim->OC_MspDeInitCallback = HAL_TIM_OC_MspDeInit; - } - /* DeInit the low level hardware */ - htim->OC_MspDeInitCallback(htim); -#else - /* DeInit the low level hardware: GPIO, CLOCK, NVIC and DMA */ - HAL_TIM_OC_MspDeInit(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - - /* Change the DMA burst operation state */ - htim->DMABurstState = HAL_DMA_BURST_STATE_RESET; - - /* Change the TIM channels state */ - TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_RESET); - TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_RESET); - - /* Change TIM state */ - htim->State = HAL_TIM_STATE_RESET; - - /* Release Lock */ - __HAL_UNLOCK(htim); - - return HAL_OK; -} - -/** - * @brief Initializes the TIM Output Compare MSP. - * @param htim TIM Output Compare handle - * @retval None - */ -__weak void HAL_TIM_OC_MspInit(TIM_HandleTypeDef *htim) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(htim); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_TIM_OC_MspInit could be implemented in the user file - */ -} - -/** - * @brief DeInitializes TIM Output Compare MSP. - * @param htim TIM Output Compare handle - * @retval None - */ -__weak void HAL_TIM_OC_MspDeInit(TIM_HandleTypeDef *htim) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(htim); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_TIM_OC_MspDeInit could be implemented in the user file - */ -} - -/** - * @brief Starts the TIM Output Compare signal generation. - * @param htim TIM Output Compare handle - * @param Channel TIM Channel to be enabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @arg TIM_CHANNEL_5: TIM Channel 5 selected - * @arg TIM_CHANNEL_6: TIM Channel 6 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_OC_Start(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - uint32_t tmpsmcr; - - /* Check the parameters */ - assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); - - /* Check the TIM channel state */ - if (TIM_CHANNEL_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY) - { - return HAL_ERROR; - } - - /* Set the TIM channel state */ - TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); - - /* Enable the Output compare channel */ - TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); - - if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) - { - /* Enable the main output */ - __HAL_TIM_MOE_ENABLE(htim); - } - - /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ - if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - { - tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; - if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - { - __HAL_TIM_ENABLE(htim); - } - } - else - { - __HAL_TIM_ENABLE(htim); - } - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Stops the TIM Output Compare signal generation. - * @param htim TIM Output Compare handle - * @param Channel TIM Channel to be disabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @arg TIM_CHANNEL_5: TIM Channel 5 selected - * @arg TIM_CHANNEL_6: TIM Channel 6 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_OC_Stop(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - /* Check the parameters */ - assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); - - /* Disable the Output compare channel */ - TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE); - - if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) - { - /* Disable the Main Output */ - __HAL_TIM_MOE_DISABLE(htim); - } - - /* Disable the Peripheral */ - __HAL_TIM_DISABLE(htim); - - /* Set the TIM channel state */ - TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Starts the TIM Output Compare signal generation in interrupt mode. - * @param htim TIM Output Compare handle - * @param Channel TIM Channel to be enabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_OC_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - HAL_StatusTypeDef status = HAL_OK; - uint32_t tmpsmcr; - - /* Check the parameters */ - assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); - - /* Check the TIM channel state */ - if (TIM_CHANNEL_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY) - { - return HAL_ERROR; - } - - /* Set the TIM channel state */ - TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); - - switch (Channel) - { - case TIM_CHANNEL_1: - { - /* Enable the TIM Capture/Compare 1 interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); - break; - } - - case TIM_CHANNEL_2: - { - /* Enable the TIM Capture/Compare 2 interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); - break; - } - - case TIM_CHANNEL_3: - { - /* Enable the TIM Capture/Compare 3 interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC3); - break; - } - - case TIM_CHANNEL_4: - { - /* Enable the TIM Capture/Compare 4 interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC4); - break; - } - - default: - status = HAL_ERROR; - break; - } - - if (status == HAL_OK) - { - /* Enable the Output compare channel */ - TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); - - if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) - { - /* Enable the main output */ - __HAL_TIM_MOE_ENABLE(htim); - } - - /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ - if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - { - tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; - if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - { - __HAL_TIM_ENABLE(htim); - } - } - else - { - __HAL_TIM_ENABLE(htim); - } - } - - /* Return function status */ - return status; -} - -/** - * @brief Stops the TIM Output Compare signal generation in interrupt mode. - * @param htim TIM Output Compare handle - * @param Channel TIM Channel to be disabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_OC_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Check the parameters */ - assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); - - switch (Channel) - { - case TIM_CHANNEL_1: - { - /* Disable the TIM Capture/Compare 1 interrupt */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); - break; - } - - case TIM_CHANNEL_2: - { - /* Disable the TIM Capture/Compare 2 interrupt */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2); - break; - } - - case TIM_CHANNEL_3: - { - /* Disable the TIM Capture/Compare 3 interrupt */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC3); - break; - } - - case TIM_CHANNEL_4: - { - /* Disable the TIM Capture/Compare 4 interrupt */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC4); - break; - } - - default: - status = HAL_ERROR; - break; - } - - if (status == HAL_OK) - { - /* Disable the Output compare channel */ - TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE); - - if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) - { - /* Disable the Main Output */ - __HAL_TIM_MOE_DISABLE(htim); - } - - /* Disable the Peripheral */ - __HAL_TIM_DISABLE(htim); - - /* Set the TIM channel state */ - TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); - } - - /* Return function status */ - return status; -} - -/** - * @brief Starts the TIM Output Compare signal generation in DMA mode. - * @param htim TIM Output Compare handle - * @param Channel TIM Channel to be enabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @param pData The source Buffer address. - * @param Length The length of data to be transferred from memory to TIM peripheral - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_OC_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, const uint32_t *pData, - uint16_t Length) -{ - HAL_StatusTypeDef status = HAL_OK; - uint32_t tmpsmcr; - - /* Check the parameters */ - assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); - - /* Set the TIM channel state */ - if (TIM_CHANNEL_STATE_GET(htim, Channel) == HAL_TIM_CHANNEL_STATE_BUSY) - { - return HAL_BUSY; - } - else if (TIM_CHANNEL_STATE_GET(htim, Channel) == HAL_TIM_CHANNEL_STATE_READY) - { - if ((pData == NULL) || (Length == 0U)) - { - return HAL_ERROR; - } - else - { - TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); - } - } - else - { - return HAL_ERROR; - } - - switch (Channel) - { - case TIM_CHANNEL_1: - { - /* Set the DMA compare callbacks */ - htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMADelayPulseCplt; - htim->hdma[TIM_DMA_ID_CC1]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)pData, (uint32_t)&htim->Instance->CCR1, - Length) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - - /* Enable the TIM Capture/Compare 1 DMA request */ - __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC1); - break; - } - - case TIM_CHANNEL_2: - { - /* Set the DMA compare callbacks */ - htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMADelayPulseCplt; - htim->hdma[TIM_DMA_ID_CC2]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)pData, (uint32_t)&htim->Instance->CCR2, - Length) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - - /* Enable the TIM Capture/Compare 2 DMA request */ - __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC2); - break; - } - - case TIM_CHANNEL_3: - { - /* Set the DMA compare callbacks */ - htim->hdma[TIM_DMA_ID_CC3]->XferCpltCallback = TIM_DMADelayPulseCplt; - htim->hdma[TIM_DMA_ID_CC3]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC3]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC3], (uint32_t)pData, (uint32_t)&htim->Instance->CCR3, - Length) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - /* Enable the TIM Capture/Compare 3 DMA request */ - __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC3); - break; - } - - case TIM_CHANNEL_4: - { - /* Set the DMA compare callbacks */ - htim->hdma[TIM_DMA_ID_CC4]->XferCpltCallback = TIM_DMADelayPulseCplt; - htim->hdma[TIM_DMA_ID_CC4]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC4]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC4], (uint32_t)pData, (uint32_t)&htim->Instance->CCR4, - Length) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - /* Enable the TIM Capture/Compare 4 DMA request */ - __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC4); - break; - } - - default: - status = HAL_ERROR; - break; - } - - if (status == HAL_OK) - { - /* Enable the Output compare channel */ - TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); - - if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) - { - /* Enable the main output */ - __HAL_TIM_MOE_ENABLE(htim); - } - - /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ - if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - { - tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; - if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - { - __HAL_TIM_ENABLE(htim); - } - } - else - { - __HAL_TIM_ENABLE(htim); - } - } - - /* Return function status */ - return status; -} - -/** - * @brief Stops the TIM Output Compare signal generation in DMA mode. - * @param htim TIM Output Compare handle - * @param Channel TIM Channel to be disabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_OC_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Check the parameters */ - assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); - - switch (Channel) - { - case TIM_CHANNEL_1: - { - /* Disable the TIM Capture/Compare 1 DMA request */ - __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC1); - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC1]); - break; - } - - case TIM_CHANNEL_2: - { - /* Disable the TIM Capture/Compare 2 DMA request */ - __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC2); - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC2]); - break; - } - - case TIM_CHANNEL_3: - { - /* Disable the TIM Capture/Compare 3 DMA request */ - __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC3); - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC3]); - break; - } - - case TIM_CHANNEL_4: - { - /* Disable the TIM Capture/Compare 4 interrupt */ - __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC4); - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC4]); - break; - } - - default: - status = HAL_ERROR; - break; - } - - if (status == HAL_OK) - { - /* Disable the Output compare channel */ - TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE); - - if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) - { - /* Disable the Main Output */ - __HAL_TIM_MOE_DISABLE(htim); - } - - /* Disable the Peripheral */ - __HAL_TIM_DISABLE(htim); - - /* Set the TIM channel state */ - TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); - } - - /* Return function status */ - return status; -} - -/** - * @} - */ - -/** @defgroup TIM_Exported_Functions_Group3 TIM PWM functions - * @brief TIM PWM functions - * -@verbatim - ============================================================================== - ##### TIM PWM functions ##### - ============================================================================== - [..] - This section provides functions allowing to: - (+) Initialize and configure the TIM PWM. - (+) De-initialize the TIM PWM. - (+) Start the TIM PWM. - (+) Stop the TIM PWM. - (+) Start the TIM PWM and enable interrupt. - (+) Stop the TIM PWM and disable interrupt. - (+) Start the TIM PWM and enable DMA transfer. - (+) Stop the TIM PWM and disable DMA transfer. - -@endverbatim - * @{ - */ -/** - * @brief Initializes the TIM PWM Time Base according to the specified - * parameters in the TIM_HandleTypeDef and initializes the associated handle. - * @note Switching from Center Aligned counter mode to Edge counter mode (or reverse) - * requires a timer reset to avoid unexpected direction - * due to DIR bit readonly in center aligned mode. - * 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) -{ - /* Check the TIM handle allocation */ - if (htim == NULL) - { - return HAL_ERROR; - } - - /* Check the parameters */ - 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_PERIOD(htim, htim->Init.Period)); - assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); - - if (htim->State == HAL_TIM_STATE_RESET) - { - /* Allocate lock resource and initialize it */ - htim->Lock = HAL_UNLOCKED; - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - /* Reset interrupt callbacks to legacy weak callbacks */ - TIM_ResetCallback(htim); - - if (htim->PWM_MspInitCallback == NULL) - { - htim->PWM_MspInitCallback = HAL_TIM_PWM_MspInit; - } - /* 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); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - - /* Set the TIM state */ - htim->State = HAL_TIM_STATE_BUSY; - - /* Init the base time for the PWM */ - TIM_Base_SetConfig(htim->Instance, &htim->Init); - - /* Initialize the DMA burst operation state */ - htim->DMABurstState = HAL_DMA_BURST_STATE_READY; - - /* Initialize the TIM channels state */ - TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); - - /* Initialize the TIM state*/ - htim->State = HAL_TIM_STATE_READY; - - return HAL_OK; -} - -/** - * @brief DeInitializes the TIM peripheral - * @param htim TIM PWM handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_PWM_DeInit(TIM_HandleTypeDef *htim) -{ - /* Check the parameters */ - assert_param(IS_TIM_INSTANCE(htim->Instance)); - - htim->State = HAL_TIM_STATE_BUSY; - - /* Disable the TIM Peripheral Clock */ - __HAL_TIM_DISABLE(htim); - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - if (htim->PWM_MspDeInitCallback == NULL) - { - htim->PWM_MspDeInitCallback = HAL_TIM_PWM_MspDeInit; - } - /* DeInit the low level hardware */ - htim->PWM_MspDeInitCallback(htim); -#else - /* DeInit the low level hardware: GPIO, CLOCK, NVIC and DMA */ - HAL_TIM_PWM_MspDeInit(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - - /* Change the DMA burst operation state */ - htim->DMABurstState = HAL_DMA_BURST_STATE_RESET; - - /* Change the TIM channels state */ - TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_RESET); - TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_RESET); - - /* Change TIM state */ - htim->State = HAL_TIM_STATE_RESET; - - /* Release Lock */ - __HAL_UNLOCK(htim); - - return HAL_OK; -} - -/** - * @brief Initializes the TIM PWM MSP. - * @param htim TIM PWM handle - * @retval None - */ -__weak void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef *htim) -{ - /* Prevent unused argument(s) compilation warning */ - 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 - */ -} - -/** - * @brief DeInitializes TIM PWM MSP. - * @param htim TIM PWM handle - * @retval None - */ -__weak void HAL_TIM_PWM_MspDeInit(TIM_HandleTypeDef *htim) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(htim); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_TIM_PWM_MspDeInit could be implemented in the user file - */ -} - -/** - * @brief Starts the PWM signal generation. - * @param htim TIM handle - * @param Channel TIM Channels to be enabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @arg TIM_CHANNEL_5: TIM Channel 5 selected - * @arg TIM_CHANNEL_6: TIM Channel 6 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_PWM_Start(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - uint32_t tmpsmcr; - - /* Check the parameters */ - assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); - - /* Check the TIM channel state */ - if (TIM_CHANNEL_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY) - { - return HAL_ERROR; - } - - /* Set the TIM channel state */ - TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); - - /* Enable the Capture compare channel */ - TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); - - if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) - { - /* Enable the main output */ - __HAL_TIM_MOE_ENABLE(htim); - } - - /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ - if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - { - tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; - if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - { - __HAL_TIM_ENABLE(htim); - } - } - else - { - __HAL_TIM_ENABLE(htim); - } - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Stops the PWM signal generation. - * @param htim TIM PWM handle - * @param Channel TIM Channels to be disabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @arg TIM_CHANNEL_5: TIM Channel 5 selected - * @arg TIM_CHANNEL_6: TIM Channel 6 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_PWM_Stop(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - /* Check the parameters */ - assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); - - /* Disable the Capture compare channel */ - TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE); - - if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) - { - /* Disable the Main Output */ - __HAL_TIM_MOE_DISABLE(htim); - } - - /* Disable the Peripheral */ - __HAL_TIM_DISABLE(htim); - - /* Set the TIM channel state */ - TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Starts the PWM signal generation in interrupt mode. - * @param htim TIM PWM handle - * @param Channel TIM Channel to be enabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_PWM_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - HAL_StatusTypeDef status = HAL_OK; - uint32_t tmpsmcr; - - /* Check the parameters */ - assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); - - /* Check the TIM channel state */ - if (TIM_CHANNEL_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY) - { - return HAL_ERROR; - } - - /* Set the TIM channel state */ - TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); - - switch (Channel) - { - case TIM_CHANNEL_1: - { - /* Enable the TIM Capture/Compare 1 interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); - break; - } - - case TIM_CHANNEL_2: - { - /* Enable the TIM Capture/Compare 2 interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); - break; - } - - case TIM_CHANNEL_3: - { - /* Enable the TIM Capture/Compare 3 interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC3); - break; - } - - case TIM_CHANNEL_4: - { - /* Enable the TIM Capture/Compare 4 interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC4); - break; - } - - default: - status = HAL_ERROR; - break; - } - - if (status == HAL_OK) - { - /* Enable the Capture compare channel */ - TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); - - if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) - { - /* Enable the main output */ - __HAL_TIM_MOE_ENABLE(htim); - } - - /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ - if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - { - tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; - if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - { - __HAL_TIM_ENABLE(htim); - } - } - else - { - __HAL_TIM_ENABLE(htim); - } - } - - /* Return function status */ - return status; -} - -/** - * @brief Stops the PWM signal generation in interrupt mode. - * @param htim TIM PWM handle - * @param Channel TIM Channels to be disabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_PWM_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Check the parameters */ - assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); - - switch (Channel) - { - case TIM_CHANNEL_1: - { - /* Disable the TIM Capture/Compare 1 interrupt */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); - break; - } - - case TIM_CHANNEL_2: - { - /* Disable the TIM Capture/Compare 2 interrupt */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2); - break; - } - - case TIM_CHANNEL_3: - { - /* Disable the TIM Capture/Compare 3 interrupt */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC3); - break; - } - - case TIM_CHANNEL_4: - { - /* Disable the TIM Capture/Compare 4 interrupt */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC4); - break; - } - - default: - status = HAL_ERROR; - break; - } - - if (status == HAL_OK) - { - /* Disable the Capture compare channel */ - TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE); - - if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) - { - /* Disable the Main Output */ - __HAL_TIM_MOE_DISABLE(htim); - } - - /* Disable the Peripheral */ - __HAL_TIM_DISABLE(htim); - - /* Set the TIM channel state */ - TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); - } - - /* Return function status */ - return status; -} - -/** - * @brief Starts the TIM PWM signal generation in DMA mode. - * @param htim TIM PWM handle - * @param Channel TIM Channels to be enabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @param pData The source Buffer address. - * @param Length The length of data to be transferred from memory to TIM peripheral - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_PWM_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, const uint32_t *pData, - uint16_t Length) -{ - HAL_StatusTypeDef status = HAL_OK; - uint32_t tmpsmcr; - - /* Check the parameters */ - assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); - - /* Set the TIM channel state */ - if (TIM_CHANNEL_STATE_GET(htim, Channel) == HAL_TIM_CHANNEL_STATE_BUSY) - { - return HAL_BUSY; - } - else if (TIM_CHANNEL_STATE_GET(htim, Channel) == HAL_TIM_CHANNEL_STATE_READY) - { - if ((pData == NULL) || (Length == 0U)) - { - return HAL_ERROR; - } - else - { - TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); - } - } - else - { - return HAL_ERROR; - } - - switch (Channel) - { - case TIM_CHANNEL_1: - { - /* Set the DMA compare callbacks */ - htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMADelayPulseCplt; - htim->hdma[TIM_DMA_ID_CC1]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)pData, (uint32_t)&htim->Instance->CCR1, - Length) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - - /* Enable the TIM Capture/Compare 1 DMA request */ - __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC1); - break; - } - - case TIM_CHANNEL_2: - { - /* Set the DMA compare callbacks */ - htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMADelayPulseCplt; - htim->hdma[TIM_DMA_ID_CC2]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)pData, (uint32_t)&htim->Instance->CCR2, - Length) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - /* Enable the TIM Capture/Compare 2 DMA request */ - __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC2); - break; - } - - case TIM_CHANNEL_3: - { - /* Set the DMA compare callbacks */ - htim->hdma[TIM_DMA_ID_CC3]->XferCpltCallback = TIM_DMADelayPulseCplt; - htim->hdma[TIM_DMA_ID_CC3]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC3]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC3], (uint32_t)pData, (uint32_t)&htim->Instance->CCR3, - Length) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - /* Enable the TIM Output Capture/Compare 3 request */ - __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC3); - break; - } - - case TIM_CHANNEL_4: - { - /* Set the DMA compare callbacks */ - htim->hdma[TIM_DMA_ID_CC4]->XferCpltCallback = TIM_DMADelayPulseCplt; - htim->hdma[TIM_DMA_ID_CC4]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC4]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC4], (uint32_t)pData, (uint32_t)&htim->Instance->CCR4, - Length) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - /* Enable the TIM Capture/Compare 4 DMA request */ - __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC4); - break; - } - - default: - status = HAL_ERROR; - break; - } - - if (status == HAL_OK) - { - /* Enable the Capture compare channel */ - TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); - - if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) - { - /* Enable the main output */ - __HAL_TIM_MOE_ENABLE(htim); - } - - /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ - if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - { - tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; - if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - { - __HAL_TIM_ENABLE(htim); - } - } - else - { - __HAL_TIM_ENABLE(htim); - } - } - - /* Return function status */ - return status; -} - -/** - * @brief Stops the TIM PWM signal generation in DMA mode. - * @param htim TIM PWM handle - * @param Channel TIM Channels to be disabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_PWM_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Check the parameters */ - assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); - - switch (Channel) - { - case TIM_CHANNEL_1: - { - /* Disable the TIM Capture/Compare 1 DMA request */ - __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC1); - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC1]); - break; - } - - case TIM_CHANNEL_2: - { - /* Disable the TIM Capture/Compare 2 DMA request */ - __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC2); - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC2]); - break; - } - - case TIM_CHANNEL_3: - { - /* Disable the TIM Capture/Compare 3 DMA request */ - __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC3); - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC3]); - break; - } - - case TIM_CHANNEL_4: - { - /* Disable the TIM Capture/Compare 4 interrupt */ - __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC4); - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC4]); - break; - } - - default: - status = HAL_ERROR; - break; - } - - if (status == HAL_OK) - { - /* Disable the Capture compare channel */ - TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE); - - if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) - { - /* Disable the Main Output */ - __HAL_TIM_MOE_DISABLE(htim); - } - - /* Disable the Peripheral */ - __HAL_TIM_DISABLE(htim); - - /* Set the TIM channel state */ - TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); - } - - /* Return function status */ - return status; -} - -/** - * @} - */ - -/** @defgroup TIM_Exported_Functions_Group4 TIM Input Capture functions - * @brief TIM Input Capture functions - * -@verbatim - ============================================================================== - ##### TIM Input Capture functions ##### - ============================================================================== - [..] - This section provides functions allowing to: - (+) Initialize and configure the TIM Input Capture. - (+) De-initialize the TIM Input Capture. - (+) Start the TIM Input Capture. - (+) Stop the TIM Input Capture. - (+) Start the TIM Input Capture and enable interrupt. - (+) Stop the TIM Input Capture and disable interrupt. - (+) Start the TIM Input Capture and enable DMA transfer. - (+) Stop the TIM Input Capture and disable DMA transfer. - -@endverbatim - * @{ - */ -/** - * @brief Initializes the TIM Input Capture Time base according to the specified - * parameters in the TIM_HandleTypeDef and initializes the associated handle. - * @note Switching from Center Aligned counter mode to Edge counter mode (or reverse) - * requires a timer reset to avoid unexpected direction - * due to DIR bit readonly in center aligned mode. - * Ex: call @ref HAL_TIM_IC_DeInit() before HAL_TIM_IC_Init() - * @param htim TIM Input Capture handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_IC_Init(TIM_HandleTypeDef *htim) -{ - /* Check the TIM handle allocation */ - if (htim == NULL) - { - return HAL_ERROR; - } - - /* Check the parameters */ - 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_PERIOD(htim, htim->Init.Period)); - assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); - - if (htim->State == HAL_TIM_STATE_RESET) - { - /* Allocate lock resource and initialize it */ - htim->Lock = HAL_UNLOCKED; - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - /* Reset interrupt callbacks to legacy weak callbacks */ - TIM_ResetCallback(htim); - - if (htim->IC_MspInitCallback == NULL) - { - htim->IC_MspInitCallback = HAL_TIM_IC_MspInit; - } - /* Init the low level hardware : GPIO, CLOCK, NVIC */ - htim->IC_MspInitCallback(htim); -#else - /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */ - HAL_TIM_IC_MspInit(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - - /* Set the TIM state */ - htim->State = HAL_TIM_STATE_BUSY; - - /* Init the base time for the input capture */ - TIM_Base_SetConfig(htim->Instance, &htim->Init); - - /* Initialize the DMA burst operation state */ - htim->DMABurstState = HAL_DMA_BURST_STATE_READY; - - /* Initialize the TIM channels state */ - TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); - - /* Initialize the TIM state*/ - htim->State = HAL_TIM_STATE_READY; - - return HAL_OK; -} - -/** - * @brief DeInitializes the TIM peripheral - * @param htim TIM Input Capture handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_IC_DeInit(TIM_HandleTypeDef *htim) -{ - /* Check the parameters */ - assert_param(IS_TIM_INSTANCE(htim->Instance)); - - htim->State = HAL_TIM_STATE_BUSY; - - /* Disable the TIM Peripheral Clock */ - __HAL_TIM_DISABLE(htim); - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - if (htim->IC_MspDeInitCallback == NULL) - { - htim->IC_MspDeInitCallback = HAL_TIM_IC_MspDeInit; - } - /* DeInit the low level hardware */ - htim->IC_MspDeInitCallback(htim); -#else - /* DeInit the low level hardware: GPIO, CLOCK, NVIC and DMA */ - HAL_TIM_IC_MspDeInit(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - - /* Change the DMA burst operation state */ - htim->DMABurstState = HAL_DMA_BURST_STATE_RESET; - - /* Change the TIM channels state */ - TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_RESET); - TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_RESET); - - /* Change TIM state */ - htim->State = HAL_TIM_STATE_RESET; - - /* Release Lock */ - __HAL_UNLOCK(htim); - - return HAL_OK; -} - -/** - * @brief Initializes the TIM Input Capture MSP. - * @param htim TIM Input Capture handle - * @retval None - */ -__weak void HAL_TIM_IC_MspInit(TIM_HandleTypeDef *htim) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(htim); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_TIM_IC_MspInit could be implemented in the user file - */ -} - -/** - * @brief DeInitializes TIM Input Capture MSP. - * @param htim TIM handle - * @retval None - */ -__weak void HAL_TIM_IC_MspDeInit(TIM_HandleTypeDef *htim) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(htim); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_TIM_IC_MspDeInit could be implemented in the user file - */ -} - -/** - * @brief Starts the TIM Input Capture measurement. - * @param htim TIM Input Capture handle - * @param Channel TIM Channels to be enabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_IC_Start(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - uint32_t tmpsmcr; - HAL_TIM_ChannelStateTypeDef channel_state = TIM_CHANNEL_STATE_GET(htim, Channel); - HAL_TIM_ChannelStateTypeDef complementary_channel_state = TIM_CHANNEL_N_STATE_GET(htim, Channel); - - /* Check the parameters */ - assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); - - /* Check the TIM channel state */ - if ((channel_state != HAL_TIM_CHANNEL_STATE_READY) - || (complementary_channel_state != HAL_TIM_CHANNEL_STATE_READY)) - { - return HAL_ERROR; - } - - /* Set the TIM channel state */ - TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); - - /* Enable the Input Capture channel */ - TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); - - /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ - if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - { - tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; - if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - { - __HAL_TIM_ENABLE(htim); - } - } - else - { - __HAL_TIM_ENABLE(htim); - } - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Stops the TIM Input Capture measurement. - * @param htim TIM Input Capture handle - * @param Channel TIM Channels to be disabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_IC_Stop(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - /* Check the parameters */ - assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); - - /* Disable the Input Capture channel */ - TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE); - - /* Disable the Peripheral */ - __HAL_TIM_DISABLE(htim); - - /* Set the TIM channel state */ - TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Starts the TIM Input Capture measurement in interrupt mode. - * @param htim TIM Input Capture handle - * @param Channel TIM Channels to be enabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_IC_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - HAL_StatusTypeDef status = HAL_OK; - uint32_t tmpsmcr; - - HAL_TIM_ChannelStateTypeDef channel_state = TIM_CHANNEL_STATE_GET(htim, Channel); - HAL_TIM_ChannelStateTypeDef complementary_channel_state = TIM_CHANNEL_N_STATE_GET(htim, Channel); - - /* Check the parameters */ - assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); - - /* Check the TIM channel state */ - if ((channel_state != HAL_TIM_CHANNEL_STATE_READY) - || (complementary_channel_state != HAL_TIM_CHANNEL_STATE_READY)) - { - return HAL_ERROR; - } - - /* Set the TIM channel state */ - TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); - - switch (Channel) - { - case TIM_CHANNEL_1: - { - /* Enable the TIM Capture/Compare 1 interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); - break; - } - - case TIM_CHANNEL_2: - { - /* Enable the TIM Capture/Compare 2 interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); - break; - } - - case TIM_CHANNEL_3: - { - /* Enable the TIM Capture/Compare 3 interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC3); - break; - } - - case TIM_CHANNEL_4: - { - /* Enable the TIM Capture/Compare 4 interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC4); - break; - } - - default: - status = HAL_ERROR; - break; - } - - if (status == HAL_OK) - { - /* Enable the Input Capture channel */ - TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); - - /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ - if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - { - tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; - if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - { - __HAL_TIM_ENABLE(htim); - } - } - else - { - __HAL_TIM_ENABLE(htim); - } - } - - /* Return function status */ - return status; -} - -/** - * @brief Stops the TIM Input Capture measurement in interrupt mode. - * @param htim TIM Input Capture handle - * @param Channel TIM Channels to be disabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_IC_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Check the parameters */ - assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); - - switch (Channel) - { - case TIM_CHANNEL_1: - { - /* Disable the TIM Capture/Compare 1 interrupt */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); - break; - } - - case TIM_CHANNEL_2: - { - /* Disable the TIM Capture/Compare 2 interrupt */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2); - break; - } - - case TIM_CHANNEL_3: - { - /* Disable the TIM Capture/Compare 3 interrupt */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC3); - break; - } - - case TIM_CHANNEL_4: - { - /* Disable the TIM Capture/Compare 4 interrupt */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC4); - break; - } - - default: - status = HAL_ERROR; - break; - } - - if (status == HAL_OK) - { - /* Disable the Input Capture channel */ - TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE); - - /* Disable the Peripheral */ - __HAL_TIM_DISABLE(htim); - - /* Set the TIM channel state */ - TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); - } - - /* Return function status */ - return status; -} - -/** - * @brief Starts the TIM Input Capture measurement in DMA mode. - * @param htim TIM Input Capture handle - * @param Channel TIM Channels to be enabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @param pData The destination Buffer address. - * @param Length The length of data to be transferred from TIM peripheral to memory. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_IC_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData, uint16_t Length) -{ - HAL_StatusTypeDef status = HAL_OK; - uint32_t tmpsmcr; - - HAL_TIM_ChannelStateTypeDef channel_state = TIM_CHANNEL_STATE_GET(htim, Channel); - HAL_TIM_ChannelStateTypeDef complementary_channel_state = TIM_CHANNEL_N_STATE_GET(htim, Channel); - - /* Check the parameters */ - assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); - assert_param(IS_TIM_DMA_CC_INSTANCE(htim->Instance)); - - /* Set the TIM channel state */ - if ((channel_state == HAL_TIM_CHANNEL_STATE_BUSY) - || (complementary_channel_state == HAL_TIM_CHANNEL_STATE_BUSY)) - { - return HAL_BUSY; - } - else if ((channel_state == HAL_TIM_CHANNEL_STATE_READY) - && (complementary_channel_state == HAL_TIM_CHANNEL_STATE_READY)) - { - if ((pData == NULL) || (Length == 0U)) - { - return HAL_ERROR; - } - else - { - TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); - } - } - else - { - return HAL_ERROR; - } - - /* Enable the Input Capture channel */ - TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); - - switch (Channel) - { - case TIM_CHANNEL_1: - { - /* Set the DMA capture callbacks */ - htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMACaptureCplt; - htim->hdma[TIM_DMA_ID_CC1]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)&htim->Instance->CCR1, (uint32_t)pData, - Length) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - /* Enable the TIM Capture/Compare 1 DMA request */ - __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC1); - break; - } - - case TIM_CHANNEL_2: - { - /* Set the DMA capture callbacks */ - htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMACaptureCplt; - htim->hdma[TIM_DMA_ID_CC2]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)&htim->Instance->CCR2, (uint32_t)pData, - Length) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - /* Enable the TIM Capture/Compare 2 DMA request */ - __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC2); - break; - } - - case TIM_CHANNEL_3: - { - /* Set the DMA capture callbacks */ - htim->hdma[TIM_DMA_ID_CC3]->XferCpltCallback = TIM_DMACaptureCplt; - htim->hdma[TIM_DMA_ID_CC3]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC3]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC3], (uint32_t)&htim->Instance->CCR3, (uint32_t)pData, - Length) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - /* Enable the TIM Capture/Compare 3 DMA request */ - __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC3); - break; - } - - case TIM_CHANNEL_4: - { - /* Set the DMA capture callbacks */ - htim->hdma[TIM_DMA_ID_CC4]->XferCpltCallback = TIM_DMACaptureCplt; - htim->hdma[TIM_DMA_ID_CC4]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC4]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC4], (uint32_t)&htim->Instance->CCR4, (uint32_t)pData, - Length) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - /* Enable the TIM Capture/Compare 4 DMA request */ - __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC4); - break; - } - - default: - status = HAL_ERROR; - break; - } - - /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ - if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - { - tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; - if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - { - __HAL_TIM_ENABLE(htim); - } - } - else - { - __HAL_TIM_ENABLE(htim); - } - - /* Return function status */ - return status; -} - -/** - * @brief Stops the TIM Input Capture measurement in DMA mode. - * @param htim TIM Input Capture handle - * @param Channel TIM Channels to be disabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_IC_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Check the parameters */ - assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); - assert_param(IS_TIM_DMA_CC_INSTANCE(htim->Instance)); - - /* Disable the Input Capture channel */ - TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE); - - switch (Channel) - { - case TIM_CHANNEL_1: - { - /* Disable the TIM Capture/Compare 1 DMA request */ - __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC1); - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC1]); - break; - } - - case TIM_CHANNEL_2: - { - /* Disable the TIM Capture/Compare 2 DMA request */ - __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC2); - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC2]); - break; - } - - case TIM_CHANNEL_3: - { - /* Disable the TIM Capture/Compare 3 DMA request */ - __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC3); - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC3]); - break; - } - - case TIM_CHANNEL_4: - { - /* Disable the TIM Capture/Compare 4 DMA request */ - __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC4); - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC4]); - break; - } - - default: - status = HAL_ERROR; - break; - } - - if (status == HAL_OK) - { - /* Disable the Peripheral */ - __HAL_TIM_DISABLE(htim); - - /* Set the TIM channel state */ - TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); - } - - /* Return function status */ - return status; -} -/** - * @} - */ - -/** @defgroup TIM_Exported_Functions_Group5 TIM One Pulse functions - * @brief TIM One Pulse functions - * -@verbatim - ============================================================================== - ##### TIM One Pulse functions ##### - ============================================================================== - [..] - This section provides functions allowing to: - (+) Initialize and configure the TIM One Pulse. - (+) De-initialize the TIM One Pulse. - (+) Start the TIM One Pulse. - (+) Stop the TIM One Pulse. - (+) Start the TIM One Pulse and enable interrupt. - (+) Stop the TIM One Pulse and disable interrupt. - (+) Start the TIM One Pulse and enable DMA transfer. - (+) Stop the TIM One Pulse and disable DMA transfer. - -@endverbatim - * @{ - */ -/** - * @brief Initializes the TIM One Pulse Time Base according to the specified - * parameters in the TIM_HandleTypeDef and initializes the associated handle. - * @note Switching from Center Aligned counter mode to Edge counter mode (or reverse) - * requires a timer reset to avoid unexpected direction - * due to DIR bit readonly in center aligned mode. - * Ex: call @ref HAL_TIM_OnePulse_DeInit() before HAL_TIM_OnePulse_Init() - * @note When the timer instance is initialized in One Pulse mode, timer - * channels 1 and channel 2 are reserved and cannot be used for other - * purpose. - * @param htim TIM One Pulse handle - * @param OnePulseMode Select the One pulse mode. - * This parameter can be one of the following values: - * @arg TIM_OPMODE_SINGLE: Only one pulse will be generated. - * @arg TIM_OPMODE_REPETITIVE: Repetitive pulses will be generated. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_OnePulse_Init(TIM_HandleTypeDef *htim, uint32_t OnePulseMode) -{ - /* Check the TIM handle allocation */ - if (htim == NULL) - { - return HAL_ERROR; - } - - /* Check the parameters */ - 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_OPM_MODE(OnePulseMode)); - assert_param(IS_TIM_PERIOD(htim, htim->Init.Period)); - assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); - - if (htim->State == HAL_TIM_STATE_RESET) - { - /* Allocate lock resource and initialize it */ - htim->Lock = HAL_UNLOCKED; - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - /* Reset interrupt callbacks to legacy weak callbacks */ - TIM_ResetCallback(htim); - - if (htim->OnePulse_MspInitCallback == NULL) - { - htim->OnePulse_MspInitCallback = HAL_TIM_OnePulse_MspInit; - } - /* Init the low level hardware : GPIO, CLOCK, NVIC */ - htim->OnePulse_MspInitCallback(htim); -#else - /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */ - HAL_TIM_OnePulse_MspInit(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - - /* Set the TIM state */ - htim->State = HAL_TIM_STATE_BUSY; - - /* Configure the Time base in the One Pulse Mode */ - TIM_Base_SetConfig(htim->Instance, &htim->Init); - - /* Reset the OPM Bit */ - htim->Instance->CR1 &= ~TIM_CR1_OPM; - - /* Configure the OPM Mode */ - htim->Instance->CR1 |= OnePulseMode; - - /* Initialize the DMA burst operation state */ - htim->DMABurstState = HAL_DMA_BURST_STATE_READY; - - /* Initialize the TIM channels state */ - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - - /* Initialize the TIM state*/ - htim->State = HAL_TIM_STATE_READY; - - return HAL_OK; -} - -/** - * @brief DeInitializes the TIM One Pulse - * @param htim TIM One Pulse handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_OnePulse_DeInit(TIM_HandleTypeDef *htim) -{ - /* Check the parameters */ - assert_param(IS_TIM_INSTANCE(htim->Instance)); - - htim->State = HAL_TIM_STATE_BUSY; - - /* Disable the TIM Peripheral Clock */ - __HAL_TIM_DISABLE(htim); - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - if (htim->OnePulse_MspDeInitCallback == NULL) - { - htim->OnePulse_MspDeInitCallback = HAL_TIM_OnePulse_MspDeInit; - } - /* DeInit the low level hardware */ - htim->OnePulse_MspDeInitCallback(htim); -#else - /* DeInit the low level hardware: GPIO, CLOCK, NVIC */ - HAL_TIM_OnePulse_MspDeInit(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - - /* Change the DMA burst operation state */ - htim->DMABurstState = HAL_DMA_BURST_STATE_RESET; - - /* Set the TIM channel state */ - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_RESET); - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_RESET); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_RESET); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_RESET); - - /* Change TIM state */ - htim->State = HAL_TIM_STATE_RESET; - - /* Release Lock */ - __HAL_UNLOCK(htim); - - return HAL_OK; -} - -/** - * @brief Initializes the TIM One Pulse MSP. - * @param htim TIM One Pulse handle - * @retval None - */ -__weak void HAL_TIM_OnePulse_MspInit(TIM_HandleTypeDef *htim) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(htim); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_TIM_OnePulse_MspInit could be implemented in the user file - */ -} - -/** - * @brief DeInitializes TIM One Pulse MSP. - * @param htim TIM One Pulse handle - * @retval None - */ -__weak void HAL_TIM_OnePulse_MspDeInit(TIM_HandleTypeDef *htim) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(htim); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_TIM_OnePulse_MspDeInit could be implemented in the user file - */ -} - -/** - * @brief Starts the TIM One Pulse signal generation. - * @note Though OutputChannel parameter is deprecated and ignored by the function - * it has been kept to avoid HAL_TIM API compatibility break. - * @note The pulse output channel is determined when calling - * @ref HAL_TIM_OnePulse_ConfigChannel(). - * @param htim TIM One Pulse handle - * @param OutputChannel See note above - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_OnePulse_Start(TIM_HandleTypeDef *htim, uint32_t OutputChannel) -{ - HAL_TIM_ChannelStateTypeDef channel_1_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_1); - HAL_TIM_ChannelStateTypeDef channel_2_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_2); - HAL_TIM_ChannelStateTypeDef complementary_channel_1_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_1); - HAL_TIM_ChannelStateTypeDef complementary_channel_2_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_2); - - /* Prevent unused argument(s) compilation warning */ - UNUSED(OutputChannel); - - /* Check the TIM channels state */ - if ((channel_1_state != HAL_TIM_CHANNEL_STATE_READY) - || (channel_2_state != HAL_TIM_CHANNEL_STATE_READY) - || (complementary_channel_1_state != HAL_TIM_CHANNEL_STATE_READY) - || (complementary_channel_2_state != HAL_TIM_CHANNEL_STATE_READY)) - { - return HAL_ERROR; - } - - /* Set the TIM channels state */ - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - - /* Enable the Capture compare and the Input Capture channels - (in the OPM Mode the two possible channels that can be used are TIM_CHANNEL_1 and TIM_CHANNEL_2) - if TIM_CHANNEL_1 is used as output, the TIM_CHANNEL_2 will be used as input and - if TIM_CHANNEL_1 is used as input, the TIM_CHANNEL_2 will be used as output - whatever the combination, the TIM_CHANNEL_1 and TIM_CHANNEL_2 should be enabled together - - No need to enable the counter, it's enabled automatically by hardware - (the counter starts in response to a stimulus and generate a pulse */ - - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); - - if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) - { - /* Enable the main output */ - __HAL_TIM_MOE_ENABLE(htim); - } - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Stops the TIM One Pulse signal generation. - * @note Though OutputChannel parameter is deprecated and ignored by the function - * it has been kept to avoid HAL_TIM API compatibility break. - * @note The pulse output channel is determined when calling - * @ref HAL_TIM_OnePulse_ConfigChannel(). - * @param htim TIM One Pulse handle - * @param OutputChannel See note above - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_OnePulse_Stop(TIM_HandleTypeDef *htim, uint32_t OutputChannel) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(OutputChannel); - - /* Disable the Capture compare and the Input Capture channels - (in the OPM Mode the two possible channels that can be used are TIM_CHANNEL_1 and TIM_CHANNEL_2) - if TIM_CHANNEL_1 is used as output, the TIM_CHANNEL_2 will be used as input and - if TIM_CHANNEL_1 is used as input, the TIM_CHANNEL_2 will be used as output - whatever the combination, the TIM_CHANNEL_1 and TIM_CHANNEL_2 should be disabled together */ - - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); - - if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) - { - /* Disable the Main Output */ - __HAL_TIM_MOE_DISABLE(htim); - } - - /* Disable the Peripheral */ - __HAL_TIM_DISABLE(htim); - - /* Set the TIM channels state */ - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Starts the TIM One Pulse signal generation in interrupt mode. - * @note Though OutputChannel parameter is deprecated and ignored by the function - * it has been kept to avoid HAL_TIM API compatibility break. - * @note The pulse output channel is determined when calling - * @ref HAL_TIM_OnePulse_ConfigChannel(). - * @param htim TIM One Pulse handle - * @param OutputChannel See note above - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_OnePulse_Start_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel) -{ - HAL_TIM_ChannelStateTypeDef channel_1_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_1); - HAL_TIM_ChannelStateTypeDef channel_2_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_2); - HAL_TIM_ChannelStateTypeDef complementary_channel_1_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_1); - HAL_TIM_ChannelStateTypeDef complementary_channel_2_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_2); - - /* Prevent unused argument(s) compilation warning */ - UNUSED(OutputChannel); - - /* Check the TIM channels state */ - if ((channel_1_state != HAL_TIM_CHANNEL_STATE_READY) - || (channel_2_state != HAL_TIM_CHANNEL_STATE_READY) - || (complementary_channel_1_state != HAL_TIM_CHANNEL_STATE_READY) - || (complementary_channel_2_state != HAL_TIM_CHANNEL_STATE_READY)) - { - return HAL_ERROR; - } - - /* Set the TIM channels state */ - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - - /* Enable the Capture compare and the Input Capture channels - (in the OPM Mode the two possible channels that can be used are TIM_CHANNEL_1 and TIM_CHANNEL_2) - if TIM_CHANNEL_1 is used as output, the TIM_CHANNEL_2 will be used as input and - if TIM_CHANNEL_1 is used as input, the TIM_CHANNEL_2 will be used as output - whatever the combination, the TIM_CHANNEL_1 and TIM_CHANNEL_2 should be enabled together - - No need to enable the counter, it's enabled automatically by hardware - (the counter starts in response to a stimulus and generate a pulse */ - - /* Enable the TIM Capture/Compare 1 interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); - - /* Enable the TIM Capture/Compare 2 interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); - - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); - - if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) - { - /* Enable the main output */ - __HAL_TIM_MOE_ENABLE(htim); - } - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Stops the TIM One Pulse signal generation in interrupt mode. - * @note Though OutputChannel parameter is deprecated and ignored by the function - * it has been kept to avoid HAL_TIM API compatibility break. - * @note The pulse output channel is determined when calling - * @ref HAL_TIM_OnePulse_ConfigChannel(). - * @param htim TIM One Pulse handle - * @param OutputChannel See note above - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_OnePulse_Stop_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(OutputChannel); - - /* Disable the TIM Capture/Compare 1 interrupt */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); - - /* Disable the TIM Capture/Compare 2 interrupt */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2); - - /* Disable the Capture compare and the Input Capture channels - (in the OPM Mode the two possible channels that can be used are TIM_CHANNEL_1 and TIM_CHANNEL_2) - if TIM_CHANNEL_1 is used as output, the TIM_CHANNEL_2 will be used as input and - if TIM_CHANNEL_1 is used as input, the TIM_CHANNEL_2 will be used as output - whatever the combination, the TIM_CHANNEL_1 and TIM_CHANNEL_2 should be disabled together */ - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); - - if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) - { - /* Disable the Main Output */ - __HAL_TIM_MOE_DISABLE(htim); - } - - /* Disable the Peripheral */ - __HAL_TIM_DISABLE(htim); - - /* Set the TIM channels state */ - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - - /* Return function status */ - return HAL_OK; -} - -/** - * @} - */ - -/** @defgroup TIM_Exported_Functions_Group6 TIM Encoder functions - * @brief TIM Encoder functions - * -@verbatim - ============================================================================== - ##### TIM Encoder functions ##### - ============================================================================== - [..] - This section provides functions allowing to: - (+) Initialize and configure the TIM Encoder. - (+) De-initialize the TIM Encoder. - (+) Start the TIM Encoder. - (+) Stop the TIM Encoder. - (+) Start the TIM Encoder and enable interrupt. - (+) Stop the TIM Encoder and disable interrupt. - (+) Start the TIM Encoder and enable DMA transfer. - (+) Stop the TIM Encoder and disable DMA transfer. - -@endverbatim - * @{ - */ -/** - * @brief Initializes the TIM Encoder Interface and initialize the associated handle. - * @note Switching from Center Aligned counter mode to Edge counter mode (or reverse) - * requires a timer reset to avoid unexpected direction - * due to DIR bit readonly in center aligned mode. - * Ex: call @ref HAL_TIM_Encoder_DeInit() before HAL_TIM_Encoder_Init() - * @note Encoder mode and External clock mode 2 are not compatible and must not be selected together - * Ex: A call for @ref HAL_TIM_Encoder_Init will erase the settings of @ref HAL_TIM_ConfigClockSource - * using TIM_CLOCKSOURCE_ETRMODE2 and vice versa - * @note When the timer instance is initialized in Encoder mode, timer - * channels 1 and channel 2 are reserved and cannot be used for other - * purpose. - * @param htim TIM Encoder Interface handle - * @param sConfig TIM Encoder Interface configuration structure - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_Encoder_Init(TIM_HandleTypeDef *htim, TIM_Encoder_InitTypeDef *sConfig) -{ - uint32_t tmpsmcr; - uint32_t tmpccmr1; - uint32_t tmpccer; - - /* Check the TIM handle allocation */ - if (htim == NULL) - { - return HAL_ERROR; - } - - /* Check the parameters */ - assert_param(IS_TIM_ENCODER_INTERFACE_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)); - assert_param(IS_TIM_ENCODER_MODE(sConfig->EncoderMode)); - assert_param(IS_TIM_IC_SELECTION(sConfig->IC1Selection)); - assert_param(IS_TIM_IC_SELECTION(sConfig->IC2Selection)); - assert_param(IS_TIM_ENCODERINPUT_POLARITY(sConfig->IC1Polarity)); - assert_param(IS_TIM_ENCODERINPUT_POLARITY(sConfig->IC2Polarity)); - assert_param(IS_TIM_IC_PRESCALER(sConfig->IC1Prescaler)); - assert_param(IS_TIM_IC_PRESCALER(sConfig->IC2Prescaler)); - assert_param(IS_TIM_IC_FILTER(sConfig->IC1Filter)); - assert_param(IS_TIM_IC_FILTER(sConfig->IC2Filter)); - assert_param(IS_TIM_PERIOD(htim, htim->Init.Period)); - - if (htim->State == HAL_TIM_STATE_RESET) - { - /* Allocate lock resource and initialize it */ - htim->Lock = HAL_UNLOCKED; - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - /* Reset interrupt callbacks to legacy weak callbacks */ - TIM_ResetCallback(htim); - - if (htim->Encoder_MspInitCallback == NULL) - { - htim->Encoder_MspInitCallback = HAL_TIM_Encoder_MspInit; - } - /* Init the low level hardware : GPIO, CLOCK, NVIC */ - htim->Encoder_MspInitCallback(htim); -#else - /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */ - HAL_TIM_Encoder_MspInit(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - - /* Set the TIM state */ - htim->State = HAL_TIM_STATE_BUSY; - - /* Reset the SMS and ECE bits */ - htim->Instance->SMCR &= ~(TIM_SMCR_SMS | TIM_SMCR_ECE); - - /* Configure the Time base in the Encoder Mode */ - TIM_Base_SetConfig(htim->Instance, &htim->Init); - - /* Get the TIMx SMCR register value */ - tmpsmcr = htim->Instance->SMCR; - - /* Get the TIMx CCMR1 register value */ - tmpccmr1 = htim->Instance->CCMR1; - - /* Get the TIMx CCER register value */ - tmpccer = htim->Instance->CCER; - - /* Set the encoder Mode */ - tmpsmcr |= sConfig->EncoderMode; - - /* Select the Capture Compare 1 and the Capture Compare 2 as input */ - tmpccmr1 &= ~(TIM_CCMR1_CC1S | TIM_CCMR1_CC2S); - tmpccmr1 |= (sConfig->IC1Selection | (sConfig->IC2Selection << 8U)); - - /* Set the Capture Compare 1 and the Capture Compare 2 prescalers and filters */ - tmpccmr1 &= ~(TIM_CCMR1_IC1PSC | TIM_CCMR1_IC2PSC); - tmpccmr1 &= ~(TIM_CCMR1_IC1F | TIM_CCMR1_IC2F); - tmpccmr1 |= sConfig->IC1Prescaler | (sConfig->IC2Prescaler << 8U); - tmpccmr1 |= (sConfig->IC1Filter << 4U) | (sConfig->IC2Filter << 12U); - - /* Set the TI1 and the TI2 Polarities */ - tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC2P); - tmpccer &= ~(TIM_CCER_CC1NP | TIM_CCER_CC2NP); - tmpccer |= sConfig->IC1Polarity | (sConfig->IC2Polarity << 4U); - - /* Write to TIMx SMCR */ - htim->Instance->SMCR = tmpsmcr; - - /* Write to TIMx CCMR1 */ - htim->Instance->CCMR1 = tmpccmr1; - - /* Write to TIMx CCER */ - htim->Instance->CCER = tmpccer; - - /* Initialize the DMA burst operation state */ - htim->DMABurstState = HAL_DMA_BURST_STATE_READY; - - /* Set the TIM channels state */ - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - - /* Initialize the TIM state*/ - htim->State = HAL_TIM_STATE_READY; - - return HAL_OK; -} - - -/** - * @brief DeInitializes the TIM Encoder interface - * @param htim TIM Encoder Interface handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_Encoder_DeInit(TIM_HandleTypeDef *htim) -{ - /* Check the parameters */ - assert_param(IS_TIM_INSTANCE(htim->Instance)); - - htim->State = HAL_TIM_STATE_BUSY; - - /* Disable the TIM Peripheral Clock */ - __HAL_TIM_DISABLE(htim); - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - if (htim->Encoder_MspDeInitCallback == NULL) - { - htim->Encoder_MspDeInitCallback = HAL_TIM_Encoder_MspDeInit; - } - /* DeInit the low level hardware */ - htim->Encoder_MspDeInitCallback(htim); -#else - /* DeInit the low level hardware: GPIO, CLOCK, NVIC */ - HAL_TIM_Encoder_MspDeInit(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - - /* Change the DMA burst operation state */ - htim->DMABurstState = HAL_DMA_BURST_STATE_RESET; - - /* Set the TIM channels state */ - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_RESET); - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_RESET); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_RESET); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_RESET); - - /* Change TIM state */ - htim->State = HAL_TIM_STATE_RESET; - - /* Release Lock */ - __HAL_UNLOCK(htim); - - return HAL_OK; -} - -/** - * @brief Initializes the TIM Encoder Interface MSP. - * @param htim TIM Encoder Interface handle - * @retval None - */ -__weak void HAL_TIM_Encoder_MspInit(TIM_HandleTypeDef *htim) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(htim); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_TIM_Encoder_MspInit could be implemented in the user file - */ -} - -/** - * @brief DeInitializes TIM Encoder Interface MSP. - * @param htim TIM Encoder Interface handle - * @retval None - */ -__weak void HAL_TIM_Encoder_MspDeInit(TIM_HandleTypeDef *htim) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(htim); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_TIM_Encoder_MspDeInit could be implemented in the user file - */ -} - -/** - * @brief Starts the TIM Encoder Interface. - * @param htim TIM Encoder Interface handle - * @param Channel TIM Channels to be enabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_ALL: TIM Channel 1 and TIM Channel 2 are selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_Encoder_Start(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - HAL_TIM_ChannelStateTypeDef channel_1_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_1); - HAL_TIM_ChannelStateTypeDef channel_2_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_2); - HAL_TIM_ChannelStateTypeDef complementary_channel_1_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_1); - HAL_TIM_ChannelStateTypeDef complementary_channel_2_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_2); - - /* Check the parameters */ - assert_param(IS_TIM_ENCODER_INTERFACE_INSTANCE(htim->Instance)); - - /* Set the TIM channel(s) state */ - if (Channel == TIM_CHANNEL_1) - { - if ((channel_1_state != HAL_TIM_CHANNEL_STATE_READY) - || (complementary_channel_1_state != HAL_TIM_CHANNEL_STATE_READY)) - { - return HAL_ERROR; - } - else - { - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - } - } - else if (Channel == TIM_CHANNEL_2) - { - if ((channel_2_state != HAL_TIM_CHANNEL_STATE_READY) - || (complementary_channel_2_state != HAL_TIM_CHANNEL_STATE_READY)) - { - return HAL_ERROR; - } - else - { - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - } - } - else - { - if ((channel_1_state != HAL_TIM_CHANNEL_STATE_READY) - || (channel_2_state != HAL_TIM_CHANNEL_STATE_READY) - || (complementary_channel_1_state != HAL_TIM_CHANNEL_STATE_READY) - || (complementary_channel_2_state != HAL_TIM_CHANNEL_STATE_READY)) - { - return HAL_ERROR; - } - else - { - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - } - } - - /* Enable the encoder interface channels */ - switch (Channel) - { - case TIM_CHANNEL_1: - { - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); - break; - } - - case TIM_CHANNEL_2: - { - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); - break; - } - - default : - { - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); - break; - } - } - /* Enable the Peripheral */ - __HAL_TIM_ENABLE(htim); - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Stops the TIM Encoder Interface. - * @param htim TIM Encoder Interface handle - * @param Channel TIM Channels to be disabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_ALL: TIM Channel 1 and TIM Channel 2 are selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_Encoder_Stop(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - /* Check the parameters */ - assert_param(IS_TIM_ENCODER_INTERFACE_INSTANCE(htim->Instance)); - - /* Disable the Input Capture channels 1 and 2 - (in the EncoderInterface the two possible channels that can be used are TIM_CHANNEL_1 and TIM_CHANNEL_2) */ - switch (Channel) - { - case TIM_CHANNEL_1: - { - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); - break; - } - - case TIM_CHANNEL_2: - { - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); - break; - } - - default : - { - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); - break; - } - } - - /* Disable the Peripheral */ - __HAL_TIM_DISABLE(htim); - - /* Set the TIM channel(s) state */ - if ((Channel == TIM_CHANNEL_1) || (Channel == TIM_CHANNEL_2)) - { - TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); - } - else - { - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - } - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Starts the TIM Encoder Interface in interrupt mode. - * @param htim TIM Encoder Interface handle - * @param Channel TIM Channels to be enabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_ALL: TIM Channel 1 and TIM Channel 2 are selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_Encoder_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - HAL_TIM_ChannelStateTypeDef channel_1_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_1); - HAL_TIM_ChannelStateTypeDef channel_2_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_2); - HAL_TIM_ChannelStateTypeDef complementary_channel_1_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_1); - HAL_TIM_ChannelStateTypeDef complementary_channel_2_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_2); - - /* Check the parameters */ - assert_param(IS_TIM_ENCODER_INTERFACE_INSTANCE(htim->Instance)); - - /* Set the TIM channel(s) state */ - if (Channel == TIM_CHANNEL_1) - { - if ((channel_1_state != HAL_TIM_CHANNEL_STATE_READY) - || (complementary_channel_1_state != HAL_TIM_CHANNEL_STATE_READY)) - { - return HAL_ERROR; - } - else - { - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - } - } - else if (Channel == TIM_CHANNEL_2) - { - if ((channel_2_state != HAL_TIM_CHANNEL_STATE_READY) - || (complementary_channel_2_state != HAL_TIM_CHANNEL_STATE_READY)) - { - return HAL_ERROR; - } - else - { - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - } - } - else - { - if ((channel_1_state != HAL_TIM_CHANNEL_STATE_READY) - || (channel_2_state != HAL_TIM_CHANNEL_STATE_READY) - || (complementary_channel_1_state != HAL_TIM_CHANNEL_STATE_READY) - || (complementary_channel_2_state != HAL_TIM_CHANNEL_STATE_READY)) - { - return HAL_ERROR; - } - else - { - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - } - } - - /* Enable the encoder interface channels */ - /* Enable the capture compare Interrupts 1 and/or 2 */ - switch (Channel) - { - case TIM_CHANNEL_1: - { - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); - __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); - break; - } - - case TIM_CHANNEL_2: - { - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); - __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); - break; - } - - default : - { - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); - __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); - __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); - break; - } - } - - /* Enable the Peripheral */ - __HAL_TIM_ENABLE(htim); - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Stops the TIM Encoder Interface in interrupt mode. - * @param htim TIM Encoder Interface handle - * @param Channel TIM Channels to be disabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_ALL: TIM Channel 1 and TIM Channel 2 are selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_Encoder_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - /* Check the parameters */ - assert_param(IS_TIM_ENCODER_INTERFACE_INSTANCE(htim->Instance)); - - /* Disable the Input Capture channels 1 and 2 - (in the EncoderInterface the two possible channels that can be used are TIM_CHANNEL_1 and TIM_CHANNEL_2) */ - if (Channel == TIM_CHANNEL_1) - { - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); - - /* Disable the capture compare Interrupts 1 */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); - } - else if (Channel == TIM_CHANNEL_2) - { - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); - - /* Disable the capture compare Interrupts 2 */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2); - } - else - { - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); - - /* Disable the capture compare Interrupts 1 and 2 */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); - __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2); - } - - /* Disable the Peripheral */ - __HAL_TIM_DISABLE(htim); - - /* Set the TIM channel(s) state */ - if ((Channel == TIM_CHANNEL_1) || (Channel == TIM_CHANNEL_2)) - { - TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); - } - else - { - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - } - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Starts the TIM Encoder Interface in DMA mode. - * @param htim TIM Encoder Interface handle - * @param Channel TIM Channels to be enabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_ALL: TIM Channel 1 and TIM Channel 2 are selected - * @param pData1 The destination Buffer address for IC1. - * @param pData2 The destination Buffer address for IC2. - * @param Length The length of data to be transferred from TIM peripheral to memory. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_Encoder_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData1, - uint32_t *pData2, uint16_t Length) -{ - HAL_TIM_ChannelStateTypeDef channel_1_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_1); - HAL_TIM_ChannelStateTypeDef channel_2_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_2); - HAL_TIM_ChannelStateTypeDef complementary_channel_1_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_1); - HAL_TIM_ChannelStateTypeDef complementary_channel_2_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_2); - - /* Check the parameters */ - assert_param(IS_TIM_ENCODER_INTERFACE_INSTANCE(htim->Instance)); - - /* Set the TIM channel(s) state */ - if (Channel == TIM_CHANNEL_1) - { - if ((channel_1_state == HAL_TIM_CHANNEL_STATE_BUSY) - || (complementary_channel_1_state == HAL_TIM_CHANNEL_STATE_BUSY)) - { - return HAL_BUSY; - } - else if ((channel_1_state == HAL_TIM_CHANNEL_STATE_READY) - && (complementary_channel_1_state == HAL_TIM_CHANNEL_STATE_READY)) - { - if ((pData1 == NULL) || (Length == 0U)) - { - return HAL_ERROR; - } - else - { - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - } - } - else - { - return HAL_ERROR; - } - } - else if (Channel == TIM_CHANNEL_2) - { - if ((channel_2_state == HAL_TIM_CHANNEL_STATE_BUSY) - || (complementary_channel_2_state == HAL_TIM_CHANNEL_STATE_BUSY)) - { - return HAL_BUSY; - } - else if ((channel_2_state == HAL_TIM_CHANNEL_STATE_READY) - && (complementary_channel_2_state == HAL_TIM_CHANNEL_STATE_READY)) - { - if ((pData2 == NULL) || (Length == 0U)) - { - return HAL_ERROR; - } - else - { - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - } - } - else - { - return HAL_ERROR; - } - } - else - { - if ((channel_1_state == HAL_TIM_CHANNEL_STATE_BUSY) - || (channel_2_state == HAL_TIM_CHANNEL_STATE_BUSY) - || (complementary_channel_1_state == HAL_TIM_CHANNEL_STATE_BUSY) - || (complementary_channel_2_state == HAL_TIM_CHANNEL_STATE_BUSY)) - { - return HAL_BUSY; - } - else if ((channel_1_state == HAL_TIM_CHANNEL_STATE_READY) - && (channel_2_state == HAL_TIM_CHANNEL_STATE_READY) - && (complementary_channel_1_state == HAL_TIM_CHANNEL_STATE_READY) - && (complementary_channel_2_state == HAL_TIM_CHANNEL_STATE_READY)) - { - if ((((pData1 == NULL) || (pData2 == NULL))) || (Length == 0U)) - { - return HAL_ERROR; - } - else - { - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - } - } - else - { - return HAL_ERROR; - } - } - - switch (Channel) - { - case TIM_CHANNEL_1: - { - /* Set the DMA capture callbacks */ - htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMACaptureCplt; - htim->hdma[TIM_DMA_ID_CC1]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)&htim->Instance->CCR1, (uint32_t)pData1, - Length) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - /* Enable the TIM Input Capture DMA request */ - __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC1); - - /* Enable the Capture compare channel */ - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); - - /* Enable the Peripheral */ - __HAL_TIM_ENABLE(htim); - - break; - } - - case TIM_CHANNEL_2: - { - /* Set the DMA capture callbacks */ - htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMACaptureCplt; - htim->hdma[TIM_DMA_ID_CC2]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAError; - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)&htim->Instance->CCR2, (uint32_t)pData2, - Length) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - /* Enable the TIM Input Capture DMA request */ - __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC2); - - /* Enable the Capture compare channel */ - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); - - /* Enable the Peripheral */ - __HAL_TIM_ENABLE(htim); - - break; - } - - default: - { - /* Set the DMA capture callbacks */ - htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMACaptureCplt; - htim->hdma[TIM_DMA_ID_CC1]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)&htim->Instance->CCR1, (uint32_t)pData1, - Length) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - - /* Set the DMA capture callbacks */ - htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMACaptureCplt; - htim->hdma[TIM_DMA_ID_CC2]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)&htim->Instance->CCR2, (uint32_t)pData2, - Length) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - - /* Enable the TIM Input Capture DMA request */ - __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC1); - /* Enable the TIM Input Capture DMA request */ - __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC2); - - /* Enable the Capture compare channel */ - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); - - /* Enable the Peripheral */ - __HAL_TIM_ENABLE(htim); - - break; - } - } - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Stops the TIM Encoder Interface in DMA mode. - * @param htim TIM Encoder Interface handle - * @param Channel TIM Channels to be enabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_ALL: TIM Channel 1 and TIM Channel 2 are selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_Encoder_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - /* Check the parameters */ - assert_param(IS_TIM_ENCODER_INTERFACE_INSTANCE(htim->Instance)); - - /* Disable the Input Capture channels 1 and 2 - (in the EncoderInterface the two possible channels that can be used are TIM_CHANNEL_1 and TIM_CHANNEL_2) */ - if (Channel == TIM_CHANNEL_1) - { - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); - - /* Disable the capture compare DMA Request 1 */ - __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC1); - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC1]); - } - else if (Channel == TIM_CHANNEL_2) - { - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); - - /* Disable the capture compare DMA Request 2 */ - __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC2); - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC2]); - } - else - { - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); - - /* Disable the capture compare DMA Request 1 and 2 */ - __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC1); - __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC2); - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC1]); - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC2]); - } - - /* Disable the Peripheral */ - __HAL_TIM_DISABLE(htim); - - /* Set the TIM channel(s) state */ - if ((Channel == TIM_CHANNEL_1) || (Channel == TIM_CHANNEL_2)) - { - TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); - } - else - { - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - } - - /* Return function status */ - return HAL_OK; -} - -/** - * @} - */ -/** @defgroup TIM_Exported_Functions_Group7 TIM IRQ handler management - * @brief TIM IRQ handler management - * -@verbatim - ============================================================================== - ##### IRQ handler management ##### - ============================================================================== - [..] - This section provides Timer IRQ handler function. - -@endverbatim - * @{ - */ -/** - * @brief This function handles TIM interrupts requests. - * @param htim TIM handle - * @retval None - */ -void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim) -{ - /* Capture compare 1 event */ - if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC1) != RESET) - { - if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC1) != RESET) - { - { - __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC1); - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; - - /* Input capture event */ - if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U) - { -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->IC_CaptureCallback(htim); -#else - HAL_TIM_IC_CaptureCallback(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - /* Output compare event */ - else - { -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->OC_DelayElapsedCallback(htim); - htim->PWM_PulseFinishedCallback(htim); -#else - HAL_TIM_OC_DelayElapsedCallback(htim); - HAL_TIM_PWM_PulseFinishedCallback(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; - } - } - } - /* Capture compare 2 event */ - if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC2) != RESET) - { - if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC2) != RESET) - { - __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC2); - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; - /* Input capture event */ - if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U) - { -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->IC_CaptureCallback(htim); -#else - HAL_TIM_IC_CaptureCallback(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - /* Output compare event */ - else - { -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->OC_DelayElapsedCallback(htim); - htim->PWM_PulseFinishedCallback(htim); -#else - HAL_TIM_OC_DelayElapsedCallback(htim); - HAL_TIM_PWM_PulseFinishedCallback(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; - } - } - /* Capture compare 3 event */ - if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC3) != RESET) - { - if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC3) != RESET) - { - __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC3); - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; - /* Input capture event */ - if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U) - { -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->IC_CaptureCallback(htim); -#else - HAL_TIM_IC_CaptureCallback(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - /* Output compare event */ - else - { -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->OC_DelayElapsedCallback(htim); - htim->PWM_PulseFinishedCallback(htim); -#else - HAL_TIM_OC_DelayElapsedCallback(htim); - HAL_TIM_PWM_PulseFinishedCallback(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; - } - } - /* Capture compare 4 event */ - if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC4) != RESET) - { - if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC4) != RESET) - { - __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC4); - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; - /* Input capture event */ - if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U) - { -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->IC_CaptureCallback(htim); -#else - HAL_TIM_IC_CaptureCallback(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - /* Output compare event */ - else - { -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->OC_DelayElapsedCallback(htim); - htim->PWM_PulseFinishedCallback(htim); -#else - HAL_TIM_OC_DelayElapsedCallback(htim); - HAL_TIM_PWM_PulseFinishedCallback(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; - } - } - /* TIM Update event */ - if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_UPDATE) != RESET) - { - if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_UPDATE) != RESET) - { - __HAL_TIM_CLEAR_IT(htim, TIM_IT_UPDATE); -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->PeriodElapsedCallback(htim); -#else - HAL_TIM_PeriodElapsedCallback(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - } - /* TIM Break input event */ - if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_BREAK) != RESET) - { - if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_BREAK) != RESET) - { - __HAL_TIM_CLEAR_IT(htim, TIM_IT_BREAK); -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->BreakCallback(htim); -#else - HAL_TIMEx_BreakCallback(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - } - /* TIM Break2 input event */ - if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_BREAK2) != RESET) - { - if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_BREAK) != RESET) - { - __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK2); -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->Break2Callback(htim); -#else - HAL_TIMEx_Break2Callback(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - } - /* TIM Trigger detection event */ - if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_TRIGGER) != RESET) - { - if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_TRIGGER) != RESET) - { - __HAL_TIM_CLEAR_IT(htim, TIM_IT_TRIGGER); -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->TriggerCallback(htim); -#else - HAL_TIM_TriggerCallback(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - } - /* TIM commutation event */ - if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_COM) != RESET) - { - if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_COM) != RESET) - { - __HAL_TIM_CLEAR_IT(htim, TIM_FLAG_COM); -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->CommutationCallback(htim); -#else - HAL_TIMEx_CommutCallback(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - } -} - -/** - * @} - */ - -/** @defgroup TIM_Exported_Functions_Group8 TIM Peripheral Control functions - * @brief TIM Peripheral Control functions - * -@verbatim - ============================================================================== - ##### Peripheral Control functions ##### - ============================================================================== - [..] - This section provides functions allowing to: - (+) Configure The Input Output channels for OC, PWM, IC or One Pulse mode. - (+) Configure External Clock source. - (+) Configure Complementary channels, break features and dead time. - (+) Configure Master and the Slave synchronization. - (+) Configure the DMA Burst Mode. - -@endverbatim - * @{ - */ - -/** - * @brief Initializes the TIM Output Compare Channels according to the specified - * parameters in the TIM_OC_InitTypeDef. - * @param htim TIM Output Compare handle - * @param sConfig TIM Output Compare configuration structure - * @param Channel TIM Channels to configure - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @arg TIM_CHANNEL_5: TIM Channel 5 selected - * @arg TIM_CHANNEL_6: TIM Channel 6 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_OC_ConfigChannel(TIM_HandleTypeDef *htim, - const TIM_OC_InitTypeDef *sConfig, - uint32_t Channel) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Check the parameters */ - assert_param(IS_TIM_CHANNELS(Channel)); - assert_param(IS_TIM_OC_MODE(sConfig->OCMode)); - assert_param(IS_TIM_OC_POLARITY(sConfig->OCPolarity)); - - /* Process Locked */ - __HAL_LOCK(htim); - - switch (Channel) - { - case TIM_CHANNEL_1: - { - /* Check the parameters */ - assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); - - /* Configure the TIM Channel 1 in Output Compare */ - TIM_OC1_SetConfig(htim->Instance, sConfig); - break; - } - - case TIM_CHANNEL_2: - { - /* Check the parameters */ - assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); - - /* Configure the TIM Channel 2 in Output Compare */ - TIM_OC2_SetConfig(htim->Instance, sConfig); - break; - } - - case TIM_CHANNEL_3: - { - /* Check the parameters */ - assert_param(IS_TIM_CC3_INSTANCE(htim->Instance)); - - /* Configure the TIM Channel 3 in Output Compare */ - TIM_OC3_SetConfig(htim->Instance, sConfig); - break; - } - - case TIM_CHANNEL_4: - { - /* Check the parameters */ - assert_param(IS_TIM_CC4_INSTANCE(htim->Instance)); - - /* Configure the TIM Channel 4 in Output Compare */ - TIM_OC4_SetConfig(htim->Instance, sConfig); - break; - } - - case TIM_CHANNEL_5: - { - /* Check the parameters */ - assert_param(IS_TIM_CC5_INSTANCE(htim->Instance)); - - /* Configure the TIM Channel 5 in Output Compare */ - TIM_OC5_SetConfig(htim->Instance, sConfig); - break; - } - - case TIM_CHANNEL_6: - { - /* Check the parameters */ - assert_param(IS_TIM_CC6_INSTANCE(htim->Instance)); - - /* Configure the TIM Channel 6 in Output Compare */ - TIM_OC6_SetConfig(htim->Instance, sConfig); - break; - } - - default: - status = HAL_ERROR; - break; - } - - __HAL_UNLOCK(htim); - - return status; -} - -/** - * @brief Initializes the TIM Input Capture Channels according to the specified - * parameters in the TIM_IC_InitTypeDef. - * @param htim TIM IC handle - * @param sConfig TIM Input Capture configuration structure - * @param Channel TIM Channel to configure - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_IC_ConfigChannel(TIM_HandleTypeDef *htim, const TIM_IC_InitTypeDef *sConfig, uint32_t Channel) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Check the parameters */ - assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); - assert_param(IS_TIM_IC_POLARITY(sConfig->ICPolarity)); - assert_param(IS_TIM_IC_SELECTION(sConfig->ICSelection)); - assert_param(IS_TIM_IC_PRESCALER(sConfig->ICPrescaler)); - assert_param(IS_TIM_IC_FILTER(sConfig->ICFilter)); - - /* Process Locked */ - __HAL_LOCK(htim); - - if (Channel == TIM_CHANNEL_1) - { - /* TI1 Configuration */ - TIM_TI1_SetConfig(htim->Instance, - sConfig->ICPolarity, - sConfig->ICSelection, - sConfig->ICFilter); - - /* Reset the IC1PSC Bits */ - htim->Instance->CCMR1 &= ~TIM_CCMR1_IC1PSC; - - /* Set the IC1PSC value */ - htim->Instance->CCMR1 |= sConfig->ICPrescaler; - } - else if (Channel == TIM_CHANNEL_2) - { - /* TI2 Configuration */ - assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); - - TIM_TI2_SetConfig(htim->Instance, - sConfig->ICPolarity, - sConfig->ICSelection, - sConfig->ICFilter); - - /* Reset the IC2PSC Bits */ - htim->Instance->CCMR1 &= ~TIM_CCMR1_IC2PSC; - - /* Set the IC2PSC value */ - htim->Instance->CCMR1 |= (sConfig->ICPrescaler << 8U); - } - else if (Channel == TIM_CHANNEL_3) - { - /* TI3 Configuration */ - assert_param(IS_TIM_CC3_INSTANCE(htim->Instance)); - - TIM_TI3_SetConfig(htim->Instance, - sConfig->ICPolarity, - sConfig->ICSelection, - sConfig->ICFilter); - - /* Reset the IC3PSC Bits */ - htim->Instance->CCMR2 &= ~TIM_CCMR2_IC3PSC; - - /* Set the IC3PSC value */ - htim->Instance->CCMR2 |= sConfig->ICPrescaler; - } - else if (Channel == TIM_CHANNEL_4) - { - /* TI4 Configuration */ - assert_param(IS_TIM_CC4_INSTANCE(htim->Instance)); - - TIM_TI4_SetConfig(htim->Instance, - sConfig->ICPolarity, - sConfig->ICSelection, - sConfig->ICFilter); - - /* Reset the IC4PSC Bits */ - htim->Instance->CCMR2 &= ~TIM_CCMR2_IC4PSC; - - /* Set the IC4PSC value */ - htim->Instance->CCMR2 |= (sConfig->ICPrescaler << 8U); - } - else - { - status = HAL_ERROR; - } - - __HAL_UNLOCK(htim); - - return status; -} - -/** - * @brief Initializes the TIM PWM channels according to the specified - * parameters in the TIM_OC_InitTypeDef. - * @param htim TIM PWM handle - * @param sConfig TIM PWM configuration structure - * @param Channel TIM Channels to be configured - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @arg TIM_CHANNEL_5: TIM Channel 5 selected - * @arg TIM_CHANNEL_6: TIM Channel 6 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel(TIM_HandleTypeDef *htim, - const TIM_OC_InitTypeDef *sConfig, - uint32_t Channel) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Check the parameters */ - assert_param(IS_TIM_CHANNELS(Channel)); - 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); - - switch (Channel) - { - case TIM_CHANNEL_1: - { - /* Check the parameters */ - assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); - - /* Configure the Channel 1 in PWM mode */ - TIM_OC1_SetConfig(htim->Instance, sConfig); - - /* Set the Preload enable bit for channel1 */ - htim->Instance->CCMR1 |= TIM_CCMR1_OC1PE; - - /* Configure the Output Fast mode */ - htim->Instance->CCMR1 &= ~TIM_CCMR1_OC1FE; - htim->Instance->CCMR1 |= sConfig->OCFastMode; - break; - } - - case TIM_CHANNEL_2: - { - /* Check the parameters */ - assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); - - /* Configure the Channel 2 in PWM mode */ - TIM_OC2_SetConfig(htim->Instance, sConfig); - - /* Set the Preload enable bit for channel2 */ - htim->Instance->CCMR1 |= TIM_CCMR1_OC2PE; - - /* Configure the Output Fast mode */ - htim->Instance->CCMR1 &= ~TIM_CCMR1_OC2FE; - htim->Instance->CCMR1 |= sConfig->OCFastMode << 8U; - break; - } - - case TIM_CHANNEL_3: - { - /* Check the parameters */ - assert_param(IS_TIM_CC3_INSTANCE(htim->Instance)); - - /* Configure the Channel 3 in PWM mode */ - TIM_OC3_SetConfig(htim->Instance, sConfig); - - /* Set the Preload enable bit for channel3 */ - htim->Instance->CCMR2 |= TIM_CCMR2_OC3PE; - - /* Configure the Output Fast mode */ - htim->Instance->CCMR2 &= ~TIM_CCMR2_OC3FE; - htim->Instance->CCMR2 |= sConfig->OCFastMode; - break; - } - - case TIM_CHANNEL_4: - { - /* Check the parameters */ - assert_param(IS_TIM_CC4_INSTANCE(htim->Instance)); - - /* Configure the Channel 4 in PWM mode */ - TIM_OC4_SetConfig(htim->Instance, sConfig); - - /* Set the Preload enable bit for channel4 */ - htim->Instance->CCMR2 |= TIM_CCMR2_OC4PE; - - /* Configure the Output Fast mode */ - htim->Instance->CCMR2 &= ~TIM_CCMR2_OC4FE; - htim->Instance->CCMR2 |= sConfig->OCFastMode << 8U; - break; - } - - case TIM_CHANNEL_5: - { - /* Check the parameters */ - assert_param(IS_TIM_CC5_INSTANCE(htim->Instance)); - - /* Configure the Channel 5 in PWM mode */ - TIM_OC5_SetConfig(htim->Instance, sConfig); - - /* Set the Preload enable bit for channel5*/ - htim->Instance->CCMR3 |= TIM_CCMR3_OC5PE; - - /* Configure the Output Fast mode */ - htim->Instance->CCMR3 &= ~TIM_CCMR3_OC5FE; - htim->Instance->CCMR3 |= sConfig->OCFastMode; - break; - } - - case TIM_CHANNEL_6: - { - /* Check the parameters */ - assert_param(IS_TIM_CC6_INSTANCE(htim->Instance)); - - /* Configure the Channel 6 in PWM mode */ - TIM_OC6_SetConfig(htim->Instance, sConfig); - - /* Set the Preload enable bit for channel6 */ - htim->Instance->CCMR3 |= TIM_CCMR3_OC6PE; - - /* Configure the Output Fast mode */ - htim->Instance->CCMR3 &= ~TIM_CCMR3_OC6FE; - htim->Instance->CCMR3 |= sConfig->OCFastMode << 8U; - break; - } - - default: - status = HAL_ERROR; - break; - } - - __HAL_UNLOCK(htim); - - return status; -} - -/** - * @brief Initializes the TIM One Pulse Channels according to the specified - * parameters in the TIM_OnePulse_InitTypeDef. - * @param htim TIM One Pulse handle - * @param sConfig TIM One Pulse configuration structure - * @param OutputChannel TIM output channel to configure - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @param InputChannel TIM input Channel to configure - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @note To output a waveform with a minimum delay user can enable the fast - * mode by calling the @ref __HAL_TIM_ENABLE_OCxFAST macro. Then CCx - * output is forced in response to the edge detection on TIx input, - * without taking in account the comparison. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_OnePulse_ConfigChannel(TIM_HandleTypeDef *htim, TIM_OnePulse_InitTypeDef *sConfig, - uint32_t OutputChannel, uint32_t InputChannel) -{ - HAL_StatusTypeDef status = HAL_OK; - TIM_OC_InitTypeDef temp1; - - /* Check the parameters */ - assert_param(IS_TIM_OPM_CHANNELS(OutputChannel)); - assert_param(IS_TIM_OPM_CHANNELS(InputChannel)); - - if (OutputChannel != InputChannel) - { - /* Process Locked */ - __HAL_LOCK(htim); - - htim->State = HAL_TIM_STATE_BUSY; - - /* Extract the Output compare configuration from sConfig structure */ - temp1.OCMode = sConfig->OCMode; - temp1.Pulse = sConfig->Pulse; - temp1.OCPolarity = sConfig->OCPolarity; - temp1.OCNPolarity = sConfig->OCNPolarity; - temp1.OCIdleState = sConfig->OCIdleState; - temp1.OCNIdleState = sConfig->OCNIdleState; - - switch (OutputChannel) - { - case TIM_CHANNEL_1: - { - assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); - - TIM_OC1_SetConfig(htim->Instance, &temp1); - break; - } - - case TIM_CHANNEL_2: - { - assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); - - TIM_OC2_SetConfig(htim->Instance, &temp1); - break; - } - - default: - status = HAL_ERROR; - break; - } - - if (status == HAL_OK) - { - switch (InputChannel) - { - case TIM_CHANNEL_1: - { - assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); - - TIM_TI1_SetConfig(htim->Instance, sConfig->ICPolarity, - sConfig->ICSelection, sConfig->ICFilter); - - /* Reset the IC1PSC Bits */ - htim->Instance->CCMR1 &= ~TIM_CCMR1_IC1PSC; - - /* Select the Trigger source */ - htim->Instance->SMCR &= ~TIM_SMCR_TS; - htim->Instance->SMCR |= TIM_TS_TI1FP1; - - /* Select the Slave Mode */ - htim->Instance->SMCR &= ~TIM_SMCR_SMS; - htim->Instance->SMCR |= TIM_SLAVEMODE_TRIGGER; - break; - } - - case TIM_CHANNEL_2: - { - assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); - - TIM_TI2_SetConfig(htim->Instance, sConfig->ICPolarity, - sConfig->ICSelection, sConfig->ICFilter); - - /* Reset the IC2PSC Bits */ - htim->Instance->CCMR1 &= ~TIM_CCMR1_IC2PSC; - - /* Select the Trigger source */ - htim->Instance->SMCR &= ~TIM_SMCR_TS; - htim->Instance->SMCR |= TIM_TS_TI2FP2; - - /* Select the Slave Mode */ - htim->Instance->SMCR &= ~TIM_SMCR_SMS; - htim->Instance->SMCR |= TIM_SLAVEMODE_TRIGGER; - break; - } - - default: - status = HAL_ERROR; - break; - } - } - - htim->State = HAL_TIM_STATE_READY; - - __HAL_UNLOCK(htim); - - return status; - } - else - { - return HAL_ERROR; - } -} - -/** - * @brief Configure the DMA Burst to transfer Data from the memory to the TIM peripheral - * @param htim TIM handle - * @param BurstBaseAddress TIM Base address from where the DMA will start the Data write - * This parameter can be one of the following values: - * @arg TIM_DMABASE_CR1 - * @arg TIM_DMABASE_CR2 - * @arg TIM_DMABASE_SMCR - * @arg TIM_DMABASE_DIER - * @arg TIM_DMABASE_SR - * @arg TIM_DMABASE_EGR - * @arg TIM_DMABASE_CCMR1 - * @arg TIM_DMABASE_CCMR2 - * @arg TIM_DMABASE_CCER - * @arg TIM_DMABASE_CNT - * @arg TIM_DMABASE_PSC - * @arg TIM_DMABASE_ARR - * @arg TIM_DMABASE_RCR - * @arg TIM_DMABASE_CCR1 - * @arg TIM_DMABASE_CCR2 - * @arg TIM_DMABASE_CCR3 - * @arg TIM_DMABASE_CCR4 - * @arg TIM_DMABASE_BDTR - * @arg TIM_DMABASE_CCMR3 - * @arg TIM_DMABASE_CCR5 - * @arg TIM_DMABASE_CCR6 - * @arg TIM_DMABASE_AF1 - * @arg TIM_DMABASE_AF2 - * @arg TIM_DMABASE_TISEL - * - * @param BurstRequestSrc TIM DMA Request sources - * This parameter can be one of the following values: - * @arg TIM_DMA_UPDATE: TIM update Interrupt source - * @arg TIM_DMA_CC1: TIM Capture Compare 1 DMA source - * @arg TIM_DMA_CC2: TIM Capture Compare 2 DMA source - * @arg TIM_DMA_CC3: TIM Capture Compare 3 DMA source - * @arg TIM_DMA_CC4: TIM Capture Compare 4 DMA source - * @arg TIM_DMA_COM: TIM Commutation DMA source - * @arg TIM_DMA_TRIGGER: TIM Trigger DMA source - * @param BurstBuffer The Buffer address. - * @param BurstLength DMA Burst length. This parameter can be one value - * between: TIM_DMABURSTLENGTH_1TRANSFER and TIM_DMABURSTLENGTH_18TRANSFERS. - * @note This function should be used only when BurstLength is equal to DMA data transfer length. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_DMABurst_WriteStart(TIM_HandleTypeDef *htim, uint32_t BurstBaseAddress, - uint32_t BurstRequestSrc, const uint32_t *BurstBuffer, uint32_t BurstLength) -{ - HAL_StatusTypeDef status; - - status = HAL_TIM_DMABurst_MultiWriteStart(htim, BurstBaseAddress, BurstRequestSrc, BurstBuffer, BurstLength, - ((BurstLength) >> 8U) + 1U); - - - - return status; -} - -/** - * @brief Configure the DMA Burst to transfer multiple Data from the memory to the TIM peripheral - * @param htim TIM handle - * @param BurstBaseAddress TIM Base address from where the DMA will start the Data write - * This parameter can be one of the following values: - * @arg TIM_DMABASE_CR1 - * @arg TIM_DMABASE_CR2 - * @arg TIM_DMABASE_SMCR - * @arg TIM_DMABASE_DIER - * @arg TIM_DMABASE_SR - * @arg TIM_DMABASE_EGR - * @arg TIM_DMABASE_CCMR1 - * @arg TIM_DMABASE_CCMR2 - * @arg TIM_DMABASE_CCER - * @arg TIM_DMABASE_CNT - * @arg TIM_DMABASE_PSC - * @arg TIM_DMABASE_ARR - * @arg TIM_DMABASE_RCR - * @arg TIM_DMABASE_CCR1 - * @arg TIM_DMABASE_CCR2 - * @arg TIM_DMABASE_CCR3 - * @arg TIM_DMABASE_CCR4 - * @arg TIM_DMABASE_BDTR - * @arg TIM_DMABASE_CCMR3 - * @arg TIM_DMABASE_CCR5 - * @arg TIM_DMABASE_CCR6 - * @arg TIM_DMABASE_AF1 - * @arg TIM_DMABASE_AF2 - * @arg TIM_DMABASE_TISEL - * - * @param BurstRequestSrc TIM DMA Request sources - * This parameter can be one of the following values: - * @arg TIM_DMA_UPDATE: TIM update Interrupt source - * @arg TIM_DMA_CC1: TIM Capture Compare 1 DMA source - * @arg TIM_DMA_CC2: TIM Capture Compare 2 DMA source - * @arg TIM_DMA_CC3: TIM Capture Compare 3 DMA source - * @arg TIM_DMA_CC4: TIM Capture Compare 4 DMA source - * @arg TIM_DMA_COM: TIM Commutation DMA source - * @arg TIM_DMA_TRIGGER: TIM Trigger DMA source - * @param BurstBuffer The Buffer address. - * @param BurstLength DMA Burst length. This parameter can be one value - * between: TIM_DMABURSTLENGTH_1TRANSFER and TIM_DMABURSTLENGTH_18TRANSFERS. - * @param DataLength Data length. This parameter can be one value - * between 1 and 0xFFFF. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_DMABurst_MultiWriteStart(TIM_HandleTypeDef *htim, uint32_t BurstBaseAddress, - uint32_t BurstRequestSrc, const uint32_t *BurstBuffer, - uint32_t BurstLength, uint32_t DataLength) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Check the parameters */ - assert_param(IS_TIM_DMABURST_INSTANCE(htim->Instance)); - assert_param(IS_TIM_DMA_BASE(BurstBaseAddress)); - assert_param(IS_TIM_DMA_SOURCE(BurstRequestSrc)); - assert_param(IS_TIM_DMA_LENGTH(BurstLength)); - assert_param(IS_TIM_DMA_DATA_LENGTH(DataLength)); - - if (htim->DMABurstState == HAL_DMA_BURST_STATE_BUSY) - { - return HAL_BUSY; - } - else if (htim->DMABurstState == HAL_DMA_BURST_STATE_READY) - { - if ((BurstBuffer == NULL) && (BurstLength > 0U)) - { - return HAL_ERROR; - } - else - { - htim->DMABurstState = HAL_DMA_BURST_STATE_BUSY; - } - } - else - { - /* nothing to do */ - } - - switch (BurstRequestSrc) - { - case TIM_DMA_UPDATE: - { - /* Set the DMA Period elapsed callbacks */ - htim->hdma[TIM_DMA_ID_UPDATE]->XferCpltCallback = TIM_DMAPeriodElapsedCplt; - htim->hdma[TIM_DMA_ID_UPDATE]->XferHalfCpltCallback = TIM_DMAPeriodElapsedHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_UPDATE]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_UPDATE], (uint32_t)BurstBuffer, - (uint32_t)&htim->Instance->DMAR, DataLength) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - break; - } - case TIM_DMA_CC1: - { - /* Set the DMA compare callbacks */ - htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMADelayPulseCplt; - htim->hdma[TIM_DMA_ID_CC1]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)BurstBuffer, - (uint32_t)&htim->Instance->DMAR, DataLength) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - break; - } - case TIM_DMA_CC2: - { - /* Set the DMA compare callbacks */ - htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMADelayPulseCplt; - htim->hdma[TIM_DMA_ID_CC2]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)BurstBuffer, - (uint32_t)&htim->Instance->DMAR, DataLength) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - break; - } - case TIM_DMA_CC3: - { - /* Set the DMA compare callbacks */ - htim->hdma[TIM_DMA_ID_CC3]->XferCpltCallback = TIM_DMADelayPulseCplt; - htim->hdma[TIM_DMA_ID_CC3]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC3]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC3], (uint32_t)BurstBuffer, - (uint32_t)&htim->Instance->DMAR, DataLength) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - break; - } - case TIM_DMA_CC4: - { - /* Set the DMA compare callbacks */ - htim->hdma[TIM_DMA_ID_CC4]->XferCpltCallback = TIM_DMADelayPulseCplt; - htim->hdma[TIM_DMA_ID_CC4]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC4]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC4], (uint32_t)BurstBuffer, - (uint32_t)&htim->Instance->DMAR, DataLength) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - break; - } - case TIM_DMA_COM: - { - /* Set the DMA commutation callbacks */ - htim->hdma[TIM_DMA_ID_COMMUTATION]->XferCpltCallback = TIMEx_DMACommutationCplt; - htim->hdma[TIM_DMA_ID_COMMUTATION]->XferHalfCpltCallback = TIMEx_DMACommutationHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_COMMUTATION]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_COMMUTATION], (uint32_t)BurstBuffer, - (uint32_t)&htim->Instance->DMAR, DataLength) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - break; - } - case TIM_DMA_TRIGGER: - { - /* Set the DMA trigger callbacks */ - htim->hdma[TIM_DMA_ID_TRIGGER]->XferCpltCallback = TIM_DMATriggerCplt; - htim->hdma[TIM_DMA_ID_TRIGGER]->XferHalfCpltCallback = TIM_DMATriggerHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_TRIGGER]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_TRIGGER], (uint32_t)BurstBuffer, - (uint32_t)&htim->Instance->DMAR, DataLength) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - break; - } - default: - status = HAL_ERROR; - break; - } - - if (status == HAL_OK) - { - /* Configure the DMA Burst Mode */ - htim->Instance->DCR = (BurstBaseAddress | BurstLength); - /* Enable the TIM DMA Request */ - __HAL_TIM_ENABLE_DMA(htim, BurstRequestSrc); - } - - /* Return function status */ - return status; -} - -/** - * @brief Stops the TIM DMA Burst mode - * @param htim TIM handle - * @param BurstRequestSrc TIM DMA Request sources to disable - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_DMABurst_WriteStop(TIM_HandleTypeDef *htim, uint32_t BurstRequestSrc) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Check the parameters */ - assert_param(IS_TIM_DMA_SOURCE(BurstRequestSrc)); - - /* Abort the DMA transfer (at least disable the DMA stream) */ - switch (BurstRequestSrc) - { - case TIM_DMA_UPDATE: - { - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_UPDATE]); - break; - } - case TIM_DMA_CC1: - { - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC1]); - break; - } - case TIM_DMA_CC2: - { - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC2]); - break; - } - case TIM_DMA_CC3: - { - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC3]); - break; - } - case TIM_DMA_CC4: - { - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC4]); - break; - } - case TIM_DMA_COM: - { - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_COMMUTATION]); - break; - } - case TIM_DMA_TRIGGER: - { - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_TRIGGER]); - break; - } - default: - status = HAL_ERROR; - break; - } - - if (status == HAL_OK) - { - /* Disable the TIM Update DMA request */ - __HAL_TIM_DISABLE_DMA(htim, BurstRequestSrc); - - /* Change the DMA burst operation state */ - htim->DMABurstState = HAL_DMA_BURST_STATE_READY; - } - - /* Return function status */ - return status; -} - -/** - * @brief Configure the DMA Burst to transfer Data from the TIM peripheral to the memory - * @param htim TIM handle - * @param BurstBaseAddress TIM Base address from where the DMA will start the Data read - * This parameter can be one of the following values: - * @arg TIM_DMABASE_CR1 - * @arg TIM_DMABASE_CR2 - * @arg TIM_DMABASE_SMCR - * @arg TIM_DMABASE_DIER - * @arg TIM_DMABASE_SR - * @arg TIM_DMABASE_EGR - * @arg TIM_DMABASE_CCMR1 - * @arg TIM_DMABASE_CCMR2 - * @arg TIM_DMABASE_CCER - * @arg TIM_DMABASE_CNT - * @arg TIM_DMABASE_PSC - * @arg TIM_DMABASE_ARR - * @arg TIM_DMABASE_RCR - * @arg TIM_DMABASE_CCR1 - * @arg TIM_DMABASE_CCR2 - * @arg TIM_DMABASE_CCR3 - * @arg TIM_DMABASE_CCR4 - * @arg TIM_DMABASE_BDTR - * @arg TIM_DMABASE_CCMR3 - * @arg TIM_DMABASE_CCR5 - * @arg TIM_DMABASE_CCR6 - * @arg TIM_DMABASE_AF1 - * @arg TIM_DMABASE_AF2 - * @arg TIM_DMABASE_TISEL - * - * @param BurstRequestSrc TIM DMA Request sources - * This parameter can be one of the following values: - * @arg TIM_DMA_UPDATE: TIM update Interrupt source - * @arg TIM_DMA_CC1: TIM Capture Compare 1 DMA source - * @arg TIM_DMA_CC2: TIM Capture Compare 2 DMA source - * @arg TIM_DMA_CC3: TIM Capture Compare 3 DMA source - * @arg TIM_DMA_CC4: TIM Capture Compare 4 DMA source - * @arg TIM_DMA_COM: TIM Commutation DMA source - * @arg TIM_DMA_TRIGGER: TIM Trigger DMA source - * @param BurstBuffer The Buffer address. - * @param BurstLength DMA Burst length. This parameter can be one value - * between: TIM_DMABURSTLENGTH_1TRANSFER and TIM_DMABURSTLENGTH_18TRANSFERS. - * @note This function should be used only when BurstLength is equal to DMA data transfer length. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_DMABurst_ReadStart(TIM_HandleTypeDef *htim, uint32_t BurstBaseAddress, - uint32_t BurstRequestSrc, uint32_t *BurstBuffer, uint32_t BurstLength) -{ - HAL_StatusTypeDef status; - - status = HAL_TIM_DMABurst_MultiReadStart(htim, BurstBaseAddress, BurstRequestSrc, BurstBuffer, BurstLength, - ((BurstLength) >> 8U) + 1U); - - - return status; -} - -/** - * @brief Configure the DMA Burst to transfer Data from the TIM peripheral to the memory - * @param htim TIM handle - * @param BurstBaseAddress TIM Base address from where the DMA will start the Data read - * This parameter can be one of the following values: - * @arg TIM_DMABASE_CR1 - * @arg TIM_DMABASE_CR2 - * @arg TIM_DMABASE_SMCR - * @arg TIM_DMABASE_DIER - * @arg TIM_DMABASE_SR - * @arg TIM_DMABASE_EGR - * @arg TIM_DMABASE_CCMR1 - * @arg TIM_DMABASE_CCMR2 - * @arg TIM_DMABASE_CCER - * @arg TIM_DMABASE_CNT - * @arg TIM_DMABASE_PSC - * @arg TIM_DMABASE_ARR - * @arg TIM_DMABASE_RCR - * @arg TIM_DMABASE_CCR1 - * @arg TIM_DMABASE_CCR2 - * @arg TIM_DMABASE_CCR3 - * @arg TIM_DMABASE_CCR4 - * @arg TIM_DMABASE_BDTR - * @arg TIM_DMABASE_CCMR3 - * @arg TIM_DMABASE_CCR5 - * @arg TIM_DMABASE_CCR6 - * @arg TIM_DMABASE_AF1 - * @arg TIM_DMABASE_AF2 - * @arg TIM_DMABASE_TISEL - * - * @param BurstRequestSrc TIM DMA Request sources - * This parameter can be one of the following values: - * @arg TIM_DMA_UPDATE: TIM update Interrupt source - * @arg TIM_DMA_CC1: TIM Capture Compare 1 DMA source - * @arg TIM_DMA_CC2: TIM Capture Compare 2 DMA source - * @arg TIM_DMA_CC3: TIM Capture Compare 3 DMA source - * @arg TIM_DMA_CC4: TIM Capture Compare 4 DMA source - * @arg TIM_DMA_COM: TIM Commutation DMA source - * @arg TIM_DMA_TRIGGER: TIM Trigger DMA source - * @param BurstBuffer The Buffer address. - * @param BurstLength DMA Burst length. This parameter can be one value - * between: TIM_DMABURSTLENGTH_1TRANSFER and TIM_DMABURSTLENGTH_18TRANSFERS. - * @param DataLength Data length. This parameter can be one value - * between 1 and 0xFFFF. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_DMABurst_MultiReadStart(TIM_HandleTypeDef *htim, uint32_t BurstBaseAddress, - uint32_t BurstRequestSrc, uint32_t *BurstBuffer, - uint32_t BurstLength, uint32_t DataLength) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Check the parameters */ - assert_param(IS_TIM_DMABURST_INSTANCE(htim->Instance)); - assert_param(IS_TIM_DMA_BASE(BurstBaseAddress)); - assert_param(IS_TIM_DMA_SOURCE(BurstRequestSrc)); - assert_param(IS_TIM_DMA_LENGTH(BurstLength)); - assert_param(IS_TIM_DMA_DATA_LENGTH(DataLength)); - - if (htim->DMABurstState == HAL_DMA_BURST_STATE_BUSY) - { - return HAL_BUSY; - } - else if (htim->DMABurstState == HAL_DMA_BURST_STATE_READY) - { - if ((BurstBuffer == NULL) && (BurstLength > 0U)) - { - return HAL_ERROR; - } - else - { - htim->DMABurstState = HAL_DMA_BURST_STATE_BUSY; - } - } - else - { - /* nothing to do */ - } - switch (BurstRequestSrc) - { - case TIM_DMA_UPDATE: - { - /* Set the DMA Period elapsed callbacks */ - htim->hdma[TIM_DMA_ID_UPDATE]->XferCpltCallback = TIM_DMAPeriodElapsedCplt; - htim->hdma[TIM_DMA_ID_UPDATE]->XferHalfCpltCallback = TIM_DMAPeriodElapsedHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_UPDATE]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_UPDATE], (uint32_t)&htim->Instance->DMAR, (uint32_t)BurstBuffer, - DataLength) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - break; - } - case TIM_DMA_CC1: - { - /* Set the DMA capture callbacks */ - htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMACaptureCplt; - htim->hdma[TIM_DMA_ID_CC1]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)&htim->Instance->DMAR, (uint32_t)BurstBuffer, - DataLength) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - break; - } - case TIM_DMA_CC2: - { - /* Set the DMA capture callbacks */ - htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMACaptureCplt; - htim->hdma[TIM_DMA_ID_CC2]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)&htim->Instance->DMAR, (uint32_t)BurstBuffer, - DataLength) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - break; - } - case TIM_DMA_CC3: - { - /* Set the DMA capture callbacks */ - htim->hdma[TIM_DMA_ID_CC3]->XferCpltCallback = TIM_DMACaptureCplt; - htim->hdma[TIM_DMA_ID_CC3]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC3]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC3], (uint32_t)&htim->Instance->DMAR, (uint32_t)BurstBuffer, - DataLength) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - break; - } - case TIM_DMA_CC4: - { - /* Set the DMA capture callbacks */ - htim->hdma[TIM_DMA_ID_CC4]->XferCpltCallback = TIM_DMACaptureCplt; - htim->hdma[TIM_DMA_ID_CC4]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC4]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC4], (uint32_t)&htim->Instance->DMAR, (uint32_t)BurstBuffer, - DataLength) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - break; - } - case TIM_DMA_COM: - { - /* Set the DMA commutation callbacks */ - htim->hdma[TIM_DMA_ID_COMMUTATION]->XferCpltCallback = TIMEx_DMACommutationCplt; - htim->hdma[TIM_DMA_ID_COMMUTATION]->XferHalfCpltCallback = TIMEx_DMACommutationHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_COMMUTATION]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_COMMUTATION], (uint32_t)&htim->Instance->DMAR, (uint32_t)BurstBuffer, - DataLength) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - break; - } - case TIM_DMA_TRIGGER: - { - /* Set the DMA trigger callbacks */ - htim->hdma[TIM_DMA_ID_TRIGGER]->XferCpltCallback = TIM_DMATriggerCplt; - htim->hdma[TIM_DMA_ID_TRIGGER]->XferHalfCpltCallback = TIM_DMATriggerHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_TRIGGER]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_TRIGGER], (uint32_t)&htim->Instance->DMAR, (uint32_t)BurstBuffer, - DataLength) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - break; - } - default: - status = HAL_ERROR; - break; - } - - if (status == HAL_OK) - { - /* Configure the DMA Burst Mode */ - htim->Instance->DCR = (BurstBaseAddress | BurstLength); - - /* Enable the TIM DMA Request */ - __HAL_TIM_ENABLE_DMA(htim, BurstRequestSrc); - } - - /* Return function status */ - return status; -} - -/** - * @brief Stop the DMA burst reading - * @param htim TIM handle - * @param BurstRequestSrc TIM DMA Request sources to disable. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_DMABurst_ReadStop(TIM_HandleTypeDef *htim, uint32_t BurstRequestSrc) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Check the parameters */ - assert_param(IS_TIM_DMA_SOURCE(BurstRequestSrc)); - - /* Abort the DMA transfer (at least disable the DMA stream) */ - switch (BurstRequestSrc) - { - case TIM_DMA_UPDATE: - { - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_UPDATE]); - break; - } - case TIM_DMA_CC1: - { - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC1]); - break; - } - case TIM_DMA_CC2: - { - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC2]); - break; - } - case TIM_DMA_CC3: - { - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC3]); - break; - } - case TIM_DMA_CC4: - { - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC4]); - break; - } - case TIM_DMA_COM: - { - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_COMMUTATION]); - break; - } - case TIM_DMA_TRIGGER: - { - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_TRIGGER]); - break; - } - default: - status = HAL_ERROR; - break; - } - - if (status == HAL_OK) - { - /* Disable the TIM Update DMA request */ - __HAL_TIM_DISABLE_DMA(htim, BurstRequestSrc); - - /* Change the DMA burst operation state */ - htim->DMABurstState = HAL_DMA_BURST_STATE_READY; - } - - /* Return function status */ - return status; -} - -/** - * @brief Generate a software event - * @param htim TIM handle - * @param EventSource specifies the event source. - * This parameter can be one of the following values: - * @arg TIM_EVENTSOURCE_UPDATE: Timer update Event source - * @arg TIM_EVENTSOURCE_CC1: Timer Capture Compare 1 Event source - * @arg TIM_EVENTSOURCE_CC2: Timer Capture Compare 2 Event source - * @arg TIM_EVENTSOURCE_CC3: Timer Capture Compare 3 Event source - * @arg TIM_EVENTSOURCE_CC4: Timer Capture Compare 4 Event source - * @arg TIM_EVENTSOURCE_COM: Timer COM event source - * @arg TIM_EVENTSOURCE_TRIGGER: Timer Trigger Event source - * @arg TIM_EVENTSOURCE_BREAK: Timer Break event source - * @arg TIM_EVENTSOURCE_BREAK2: Timer Break2 event source - * @note Basic timers can only generate an update event. - * @note TIM_EVENTSOURCE_COM is relevant only with advanced timer instances. - * @note TIM_EVENTSOURCE_BREAK and TIM_EVENTSOURCE_BREAK2 are relevant - * only for timer instances supporting break input(s). - * @retval HAL status - */ - -HAL_StatusTypeDef HAL_TIM_GenerateEvent(TIM_HandleTypeDef *htim, uint32_t EventSource) -{ - /* Check the parameters */ - assert_param(IS_TIM_INSTANCE(htim->Instance)); - assert_param(IS_TIM_EVENT_SOURCE(EventSource)); - - /* Process Locked */ - __HAL_LOCK(htim); - - /* Change the TIM state */ - htim->State = HAL_TIM_STATE_BUSY; - - /* Set the event sources */ - htim->Instance->EGR = EventSource; - - /* Change the TIM state */ - htim->State = HAL_TIM_STATE_READY; - - __HAL_UNLOCK(htim); - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Configures the OCRef clear feature - * @param htim TIM handle - * @param sClearInputConfig pointer to a TIM_ClearInputConfigTypeDef structure that - * contains the OCREF clear feature and parameters for the TIM peripheral. - * @param Channel specifies the TIM Channel - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 - * @arg TIM_CHANNEL_2: TIM Channel 2 - * @arg TIM_CHANNEL_3: TIM Channel 3 - * @arg TIM_CHANNEL_4: TIM Channel 4 - * @arg TIM_CHANNEL_5: TIM Channel 5 - * @arg TIM_CHANNEL_6: TIM Channel 6 - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_ConfigOCrefClear(TIM_HandleTypeDef *htim, - const TIM_ClearInputConfigTypeDef *sClearInputConfig, - uint32_t Channel) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Check the parameters */ - assert_param(IS_TIM_OCXREF_CLEAR_INSTANCE(htim->Instance)); - assert_param(IS_TIM_CLEARINPUT_SOURCE(sClearInputConfig->ClearInputSource)); - - /* Process Locked */ - __HAL_LOCK(htim); - - htim->State = HAL_TIM_STATE_BUSY; - - switch (sClearInputConfig->ClearInputSource) - { - case TIM_CLEARINPUTSOURCE_NONE: - { - /* Clear the OCREF clear selection bit and the the ETR Bits */ - CLEAR_BIT(htim->Instance->SMCR, (TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP)); - break; - } - - case TIM_CLEARINPUTSOURCE_ETR: - { - /* Check the parameters */ - assert_param(IS_TIM_CLEARINPUT_POLARITY(sClearInputConfig->ClearInputPolarity)); - assert_param(IS_TIM_CLEARINPUT_PRESCALER(sClearInputConfig->ClearInputPrescaler)); - assert_param(IS_TIM_CLEARINPUT_FILTER(sClearInputConfig->ClearInputFilter)); - - /* When OCRef clear feature is used with ETR source, ETR prescaler must be off */ - if (sClearInputConfig->ClearInputPrescaler != TIM_CLEARINPUTPRESCALER_DIV1) - { - htim->State = HAL_TIM_STATE_READY; - __HAL_UNLOCK(htim); - return HAL_ERROR; - } - - TIM_ETR_SetConfig(htim->Instance, - sClearInputConfig->ClearInputPrescaler, - sClearInputConfig->ClearInputPolarity, - sClearInputConfig->ClearInputFilter); - break; - } - - default: - status = HAL_ERROR; - break; - } - - if (status == HAL_OK) - { - switch (Channel) - { - case TIM_CHANNEL_1: - { - if (sClearInputConfig->ClearInputState != (uint32_t)DISABLE) - { - /* Enable the OCREF clear feature for Channel 1 */ - SET_BIT(htim->Instance->CCMR1, TIM_CCMR1_OC1CE); - } - else - { - /* Disable the OCREF clear feature for Channel 1 */ - CLEAR_BIT(htim->Instance->CCMR1, TIM_CCMR1_OC1CE); - } - break; - } - case TIM_CHANNEL_2: - { - if (sClearInputConfig->ClearInputState != (uint32_t)DISABLE) - { - /* Enable the OCREF clear feature for Channel 2 */ - SET_BIT(htim->Instance->CCMR1, TIM_CCMR1_OC2CE); - } - else - { - /* Disable the OCREF clear feature for Channel 2 */ - CLEAR_BIT(htim->Instance->CCMR1, TIM_CCMR1_OC2CE); - } - break; - } - case TIM_CHANNEL_3: - { - if (sClearInputConfig->ClearInputState != (uint32_t)DISABLE) - { - /* Enable the OCREF clear feature for Channel 3 */ - SET_BIT(htim->Instance->CCMR2, TIM_CCMR2_OC3CE); - } - else - { - /* Disable the OCREF clear feature for Channel 3 */ - CLEAR_BIT(htim->Instance->CCMR2, TIM_CCMR2_OC3CE); - } - break; - } - case TIM_CHANNEL_4: - { - if (sClearInputConfig->ClearInputState != (uint32_t)DISABLE) - { - /* Enable the OCREF clear feature for Channel 4 */ - SET_BIT(htim->Instance->CCMR2, TIM_CCMR2_OC4CE); - } - else - { - /* Disable the OCREF clear feature for Channel 4 */ - CLEAR_BIT(htim->Instance->CCMR2, TIM_CCMR2_OC4CE); - } - break; - } - case TIM_CHANNEL_5: - { - if (sClearInputConfig->ClearInputState != (uint32_t)DISABLE) - { - /* Enable the OCREF clear feature for Channel 5 */ - SET_BIT(htim->Instance->CCMR3, TIM_CCMR3_OC5CE); - } - else - { - /* Disable the OCREF clear feature for Channel 5 */ - CLEAR_BIT(htim->Instance->CCMR3, TIM_CCMR3_OC5CE); - } - break; - } - case TIM_CHANNEL_6: - { - if (sClearInputConfig->ClearInputState != (uint32_t)DISABLE) - { - /* Enable the OCREF clear feature for Channel 6 */ - SET_BIT(htim->Instance->CCMR3, TIM_CCMR3_OC6CE); - } - else - { - /* Disable the OCREF clear feature for Channel 6 */ - CLEAR_BIT(htim->Instance->CCMR3, TIM_CCMR3_OC6CE); - } - break; - } - default: - break; - } - } - - htim->State = HAL_TIM_STATE_READY; - - __HAL_UNLOCK(htim); - - return status; -} - -/** - * @brief Configures the clock source to be used - * @param htim TIM handle - * @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, const TIM_ClockConfigTypeDef *sClockSourceConfig) -{ - HAL_StatusTypeDef status = HAL_OK; - uint32_t tmpsmcr; - - /* Process Locked */ - __HAL_LOCK(htim); - - htim->State = HAL_TIM_STATE_BUSY; - - /* Check the parameters */ - assert_param(IS_TIM_CLOCKSOURCE(sClockSourceConfig->ClockSource)); - - /* Reset the SMS, TS, ECE, ETPS and ETRF bits */ - tmpsmcr = htim->Instance->SMCR; - tmpsmcr &= ~(TIM_SMCR_SMS | TIM_SMCR_TS); - tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP); - htim->Instance->SMCR = tmpsmcr; - - switch (sClockSourceConfig->ClockSource) - { - case TIM_CLOCKSOURCE_INTERNAL: - { - assert_param(IS_TIM_INSTANCE(htim->Instance)); - break; - } - - case TIM_CLOCKSOURCE_ETRMODE1: - { - /* Check whether or not the timer instance supports external trigger input mode 1 (ETRF)*/ - assert_param(IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(htim->Instance)); - - /* Check ETR input conditioning related parameters */ - assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler)); - assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); - assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); - - /* Configure the ETR Clock source */ - TIM_ETR_SetConfig(htim->Instance, - sClockSourceConfig->ClockPrescaler, - sClockSourceConfig->ClockPolarity, - sClockSourceConfig->ClockFilter); - - /* Select the External clock mode1 and the ETRF trigger */ - tmpsmcr = htim->Instance->SMCR; - tmpsmcr |= (TIM_SLAVEMODE_EXTERNAL1 | TIM_CLOCKSOURCE_ETRMODE1); - /* Write to TIMx SMCR */ - htim->Instance->SMCR = tmpsmcr; - break; - } - - case TIM_CLOCKSOURCE_ETRMODE2: - { - /* Check whether or not the timer instance supports external trigger input mode 2 (ETRF)*/ - assert_param(IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(htim->Instance)); - - /* Check ETR input conditioning related parameters */ - assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler)); - assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); - assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); - - /* Configure the ETR Clock source */ - TIM_ETR_SetConfig(htim->Instance, - sClockSourceConfig->ClockPrescaler, - sClockSourceConfig->ClockPolarity, - sClockSourceConfig->ClockFilter); - /* Enable the External clock mode2 */ - htim->Instance->SMCR |= TIM_SMCR_ECE; - break; - } - - case TIM_CLOCKSOURCE_TI1: - { - /* Check whether or not the timer instance supports external clock mode 1 */ - assert_param(IS_TIM_CLOCKSOURCE_TIX_INSTANCE(htim->Instance)); - - /* Check TI1 input conditioning related parameters */ - assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); - assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); - - TIM_TI1_ConfigInputStage(htim->Instance, - sClockSourceConfig->ClockPolarity, - sClockSourceConfig->ClockFilter); - TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1); - break; - } - - case TIM_CLOCKSOURCE_TI2: - { - /* Check whether or not the timer instance supports external clock mode 1 (ETRF)*/ - assert_param(IS_TIM_CLOCKSOURCE_TIX_INSTANCE(htim->Instance)); - - /* Check TI2 input conditioning related parameters */ - assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); - assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); - - TIM_TI2_ConfigInputStage(htim->Instance, - sClockSourceConfig->ClockPolarity, - sClockSourceConfig->ClockFilter); - TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI2); - break; - } - - case TIM_CLOCKSOURCE_TI1ED: - { - /* Check whether or not the timer instance supports external clock mode 1 */ - assert_param(IS_TIM_CLOCKSOURCE_TIX_INSTANCE(htim->Instance)); - - /* Check TI1 input conditioning related parameters */ - assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); - assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); - - TIM_TI1_ConfigInputStage(htim->Instance, - sClockSourceConfig->ClockPolarity, - sClockSourceConfig->ClockFilter); - TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1ED); - break; - } - - case TIM_CLOCKSOURCE_ITR0: - case TIM_CLOCKSOURCE_ITR1: - case TIM_CLOCKSOURCE_ITR2: - case TIM_CLOCKSOURCE_ITR3: - case TIM_CLOCKSOURCE_ITR4: - case TIM_CLOCKSOURCE_ITR5: - case TIM_CLOCKSOURCE_ITR6: - case TIM_CLOCKSOURCE_ITR7: - case TIM_CLOCKSOURCE_ITR8: - { - /* Check whether or not the timer instance supports internal trigger input */ - assert_param(IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(htim->Instance)); - - TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource); - break; - } - - default: - status = HAL_ERROR; - break; - } - htim->State = HAL_TIM_STATE_READY; - - __HAL_UNLOCK(htim); - - return status; -} - -/** - * @brief Selects the signal connected to the TI1 input: direct from CH1_input - * or a XOR combination between CH1_input, CH2_input & CH3_input - * @param htim TIM handle. - * @param TI1_Selection Indicate whether or not channel 1 is connected to the - * output of a XOR gate. - * This parameter can be one of the following values: - * @arg TIM_TI1SELECTION_CH1: The TIMx_CH1 pin is connected to TI1 input - * @arg TIM_TI1SELECTION_XORCOMBINATION: The TIMx_CH1, CH2 and CH3 - * pins are connected to the TI1 input (XOR combination) - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_ConfigTI1Input(TIM_HandleTypeDef *htim, uint32_t TI1_Selection) -{ - uint32_t tmpcr2; - - /* Check the parameters */ - assert_param(IS_TIM_XOR_INSTANCE(htim->Instance)); - assert_param(IS_TIM_TI1SELECTION(TI1_Selection)); - - /* Get the TIMx CR2 register value */ - tmpcr2 = htim->Instance->CR2; - - /* Reset the TI1 selection */ - tmpcr2 &= ~TIM_CR2_TI1S; - - /* Set the TI1 selection */ - tmpcr2 |= TI1_Selection; - - /* Write to TIMxCR2 */ - htim->Instance->CR2 = tmpcr2; - - return HAL_OK; -} - -/** - * @brief Configures the TIM in Slave mode - * @param htim TIM handle. - * @param sSlaveConfig pointer to a TIM_SlaveConfigTypeDef structure that - * contains the selected trigger (internal trigger input, filtered - * 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, const TIM_SlaveConfigTypeDef *sSlaveConfig) -{ - /* 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); - - htim->State = HAL_TIM_STATE_BUSY; - - if (TIM_SlaveTimer_SetConfig(htim, sSlaveConfig) != HAL_OK) - { - htim->State = HAL_TIM_STATE_READY; - __HAL_UNLOCK(htim); - return HAL_ERROR; - } - - /* Disable Trigger Interrupt */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_TRIGGER); - - /* Disable Trigger DMA request */ - __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_TRIGGER); - - htim->State = HAL_TIM_STATE_READY; - - __HAL_UNLOCK(htim); - - return HAL_OK; -} - -/** - * @brief Configures the TIM in Slave mode in interrupt mode - * @param htim TIM handle. - * @param sSlaveConfig pointer to a TIM_SlaveConfigTypeDef structure that - * contains the selected trigger (internal trigger input, filtered - * 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_IT(TIM_HandleTypeDef *htim, - const TIM_SlaveConfigTypeDef *sSlaveConfig) -{ - /* 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); - - htim->State = HAL_TIM_STATE_BUSY; - - if (TIM_SlaveTimer_SetConfig(htim, sSlaveConfig) != HAL_OK) - { - htim->State = HAL_TIM_STATE_READY; - __HAL_UNLOCK(htim); - return HAL_ERROR; - } - - /* Enable Trigger Interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_TRIGGER); - - /* Disable Trigger DMA request */ - __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_TRIGGER); - - htim->State = HAL_TIM_STATE_READY; - - __HAL_UNLOCK(htim); - - return HAL_OK; -} - -/** - * @brief Read the captured value from Capture Compare unit - * @param htim TIM handle. - * @param Channel TIM Channels to be enabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @retval Captured value - */ -uint32_t HAL_TIM_ReadCapturedValue(const TIM_HandleTypeDef *htim, uint32_t Channel) -{ - uint32_t tmpreg = 0U; - - switch (Channel) - { - case TIM_CHANNEL_1: - { - /* Check the parameters */ - assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); - - /* Return the capture 1 value */ - tmpreg = htim->Instance->CCR1; - - break; - } - case TIM_CHANNEL_2: - { - /* Check the parameters */ - assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); - - /* Return the capture 2 value */ - tmpreg = htim->Instance->CCR2; - - break; - } - - case TIM_CHANNEL_3: - { - /* Check the parameters */ - assert_param(IS_TIM_CC3_INSTANCE(htim->Instance)); - - /* Return the capture 3 value */ - tmpreg = htim->Instance->CCR3; - - break; - } - - case TIM_CHANNEL_4: - { - /* Check the parameters */ - assert_param(IS_TIM_CC4_INSTANCE(htim->Instance)); - - /* Return the capture 4 value */ - tmpreg = htim->Instance->CCR4; - - break; - } - - default: - break; - } - - return tmpreg; -} - -/** - * @} - */ - -/** @defgroup TIM_Exported_Functions_Group9 TIM Callbacks functions - * @brief TIM Callbacks functions - * -@verbatim - ============================================================================== - ##### TIM Callbacks functions ##### - ============================================================================== - [..] - This section provides TIM callback functions: - (+) TIM Period elapsed callback - (+) TIM Output Compare callback - (+) TIM Input capture callback - (+) TIM Trigger callback - (+) TIM Error callback - -@endverbatim - * @{ - */ - -/** - * @brief Period elapsed callback in non-blocking mode - * @param htim TIM handle - * @retval None - */ -__weak void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(htim); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_TIM_PeriodElapsedCallback could be implemented in the user file - */ -} - -/** - * @brief Period elapsed half complete callback in non-blocking mode - * @param htim TIM handle - * @retval None - */ -__weak void HAL_TIM_PeriodElapsedHalfCpltCallback(TIM_HandleTypeDef *htim) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(htim); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_TIM_PeriodElapsedHalfCpltCallback could be implemented in the user file - */ -} - -/** - * @brief Output Compare callback in non-blocking mode - * @param htim TIM OC handle - * @retval None - */ -__weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim) -{ - /* Prevent unused argument(s) compilation warning */ - 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 - */ -} - -/** - * @brief Input Capture callback in non-blocking mode - * @param htim TIM IC handle - * @retval None - */ -__weak void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim) -{ - /* Prevent unused argument(s) compilation warning */ - 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 - */ -} - -/** - * @brief Input Capture half complete callback in non-blocking mode - * @param htim TIM IC handle - * @retval None - */ -__weak void HAL_TIM_IC_CaptureHalfCpltCallback(TIM_HandleTypeDef *htim) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(htim); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_TIM_IC_CaptureHalfCpltCallback could be implemented in the user file - */ -} - -/** - * @brief PWM Pulse finished callback in non-blocking mode - * @param htim TIM handle - * @retval None - */ -__weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim) -{ - /* Prevent unused argument(s) compilation warning */ - 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 - */ -} - -/** - * @brief PWM Pulse finished half complete callback in non-blocking mode - * @param htim TIM handle - * @retval None - */ -__weak void HAL_TIM_PWM_PulseFinishedHalfCpltCallback(TIM_HandleTypeDef *htim) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(htim); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_TIM_PWM_PulseFinishedHalfCpltCallback could be implemented in the user file - */ -} - -/** - * @brief Hall Trigger detection callback in non-blocking mode - * @param htim TIM handle - * @retval None - */ -__weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim) -{ - /* Prevent unused argument(s) compilation warning */ - 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 - */ -} - -/** - * @brief Hall Trigger detection half complete callback in non-blocking mode - * @param htim TIM handle - * @retval None - */ -__weak void HAL_TIM_TriggerHalfCpltCallback(TIM_HandleTypeDef *htim) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(htim); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_TIM_TriggerHalfCpltCallback could be implemented in the user file - */ -} - -/** - * @brief Timer error callback in non-blocking mode - * @param htim TIM handle - * @retval None - */ -__weak void HAL_TIM_ErrorCallback(TIM_HandleTypeDef *htim) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(htim); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_TIM_ErrorCallback could be implemented in the user file - */ -} - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) -/** - * @brief Register a User TIM callback to be used instead of the weak predefined callback - * @param htim tim handle - * @param CallbackID ID of the callback to be registered - * This parameter can be one of the following values: - * @arg @ref HAL_TIM_BASE_MSPINIT_CB_ID Base MspInit Callback ID - * @arg @ref HAL_TIM_BASE_MSPDEINIT_CB_ID Base MspDeInit Callback ID - * @arg @ref HAL_TIM_IC_MSPINIT_CB_ID IC MspInit Callback ID - * @arg @ref HAL_TIM_IC_MSPDEINIT_CB_ID IC MspDeInit Callback ID - * @arg @ref HAL_TIM_OC_MSPINIT_CB_ID OC MspInit Callback ID - * @arg @ref HAL_TIM_OC_MSPDEINIT_CB_ID OC MspDeInit Callback ID - * @arg @ref HAL_TIM_PWM_MSPINIT_CB_ID PWM MspInit Callback ID - * @arg @ref HAL_TIM_PWM_MSPDEINIT_CB_ID PWM MspDeInit Callback ID - * @arg @ref HAL_TIM_ONE_PULSE_MSPINIT_CB_ID One Pulse MspInit Callback ID - * @arg @ref HAL_TIM_ONE_PULSE_MSPDEINIT_CB_ID One Pulse MspDeInit Callback ID - * @arg @ref HAL_TIM_ENCODER_MSPINIT_CB_ID Encoder MspInit Callback ID - * @arg @ref HAL_TIM_ENCODER_MSPDEINIT_CB_ID Encoder MspDeInit Callback ID - * @arg @ref HAL_TIM_HALL_SENSOR_MSPINIT_CB_ID Hall Sensor MspInit Callback ID - * @arg @ref HAL_TIM_HALL_SENSOR_MSPDEINIT_CB_ID Hall Sensor MspDeInit Callback ID - * @arg @ref HAL_TIM_PERIOD_ELAPSED_CB_ID Period Elapsed Callback ID - * @arg @ref HAL_TIM_PERIOD_ELAPSED_HALF_CB_ID Period Elapsed half complete Callback ID - * @arg @ref HAL_TIM_TRIGGER_CB_ID Trigger Callback ID - * @arg @ref HAL_TIM_TRIGGER_HALF_CB_ID Trigger half complete Callback ID - * @arg @ref HAL_TIM_IC_CAPTURE_CB_ID Input Capture Callback ID - * @arg @ref HAL_TIM_IC_CAPTURE_HALF_CB_ID Input Capture half complete Callback ID - * @arg @ref HAL_TIM_OC_DELAY_ELAPSED_CB_ID Output Compare Delay Elapsed Callback ID - * @arg @ref HAL_TIM_PWM_PULSE_FINISHED_CB_ID PWM Pulse Finished Callback ID - * @arg @ref HAL_TIM_PWM_PULSE_FINISHED_HALF_CB_ID PWM Pulse Finished half complete Callback ID - * @arg @ref HAL_TIM_ERROR_CB_ID Error Callback ID - * @arg @ref HAL_TIM_COMMUTATION_CB_ID Commutation Callback ID - * @arg @ref HAL_TIM_COMMUTATION_HALF_CB_ID Commutation half complete Callback ID - * @arg @ref HAL_TIM_BREAK_CB_ID Break Callback ID - * @arg @ref HAL_TIM_BREAK2_CB_ID Break2 Callback ID - * @param pCallback pointer to the callback function - * @retval status - */ -HAL_StatusTypeDef HAL_TIM_RegisterCallback(TIM_HandleTypeDef *htim, HAL_TIM_CallbackIDTypeDef CallbackID, - pTIM_CallbackTypeDef pCallback) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (pCallback == NULL) - { - return HAL_ERROR; - } - - if (htim->State == HAL_TIM_STATE_READY) - { - switch (CallbackID) - { - case HAL_TIM_BASE_MSPINIT_CB_ID : - htim->Base_MspInitCallback = pCallback; - break; - - case HAL_TIM_BASE_MSPDEINIT_CB_ID : - htim->Base_MspDeInitCallback = pCallback; - break; - - case HAL_TIM_IC_MSPINIT_CB_ID : - htim->IC_MspInitCallback = pCallback; - break; - - case HAL_TIM_IC_MSPDEINIT_CB_ID : - htim->IC_MspDeInitCallback = pCallback; - break; - - case HAL_TIM_OC_MSPINIT_CB_ID : - htim->OC_MspInitCallback = pCallback; - break; - - case HAL_TIM_OC_MSPDEINIT_CB_ID : - htim->OC_MspDeInitCallback = pCallback; - break; - - case HAL_TIM_PWM_MSPINIT_CB_ID : - htim->PWM_MspInitCallback = pCallback; - break; - - case HAL_TIM_PWM_MSPDEINIT_CB_ID : - htim->PWM_MspDeInitCallback = pCallback; - break; - - case HAL_TIM_ONE_PULSE_MSPINIT_CB_ID : - htim->OnePulse_MspInitCallback = pCallback; - break; - - case HAL_TIM_ONE_PULSE_MSPDEINIT_CB_ID : - htim->OnePulse_MspDeInitCallback = pCallback; - break; - - case HAL_TIM_ENCODER_MSPINIT_CB_ID : - htim->Encoder_MspInitCallback = pCallback; - break; - - case HAL_TIM_ENCODER_MSPDEINIT_CB_ID : - htim->Encoder_MspDeInitCallback = pCallback; - break; - - case HAL_TIM_HALL_SENSOR_MSPINIT_CB_ID : - htim->HallSensor_MspInitCallback = pCallback; - break; - - case HAL_TIM_HALL_SENSOR_MSPDEINIT_CB_ID : - htim->HallSensor_MspDeInitCallback = pCallback; - break; - - case HAL_TIM_PERIOD_ELAPSED_CB_ID : - htim->PeriodElapsedCallback = pCallback; - break; - - case HAL_TIM_PERIOD_ELAPSED_HALF_CB_ID : - htim->PeriodElapsedHalfCpltCallback = pCallback; - break; - - case HAL_TIM_TRIGGER_CB_ID : - htim->TriggerCallback = pCallback; - break; - - case HAL_TIM_TRIGGER_HALF_CB_ID : - htim->TriggerHalfCpltCallback = pCallback; - break; - - case HAL_TIM_IC_CAPTURE_CB_ID : - htim->IC_CaptureCallback = pCallback; - break; - - case HAL_TIM_IC_CAPTURE_HALF_CB_ID : - htim->IC_CaptureHalfCpltCallback = pCallback; - break; - - case HAL_TIM_OC_DELAY_ELAPSED_CB_ID : - htim->OC_DelayElapsedCallback = pCallback; - break; - - case HAL_TIM_PWM_PULSE_FINISHED_CB_ID : - htim->PWM_PulseFinishedCallback = pCallback; - break; - - case HAL_TIM_PWM_PULSE_FINISHED_HALF_CB_ID : - htim->PWM_PulseFinishedHalfCpltCallback = pCallback; - break; - - case HAL_TIM_ERROR_CB_ID : - htim->ErrorCallback = pCallback; - break; - - case HAL_TIM_COMMUTATION_CB_ID : - htim->CommutationCallback = pCallback; - break; - - case HAL_TIM_COMMUTATION_HALF_CB_ID : - htim->CommutationHalfCpltCallback = pCallback; - break; - - case HAL_TIM_BREAK_CB_ID : - htim->BreakCallback = pCallback; - break; - - case HAL_TIM_BREAK2_CB_ID : - htim->Break2Callback = pCallback; - break; - - default : - /* Return error status */ - status = HAL_ERROR; - break; - } - } - else if (htim->State == HAL_TIM_STATE_RESET) - { - switch (CallbackID) - { - case HAL_TIM_BASE_MSPINIT_CB_ID : - htim->Base_MspInitCallback = pCallback; - break; - - case HAL_TIM_BASE_MSPDEINIT_CB_ID : - htim->Base_MspDeInitCallback = pCallback; - break; - - case HAL_TIM_IC_MSPINIT_CB_ID : - htim->IC_MspInitCallback = pCallback; - break; - - case HAL_TIM_IC_MSPDEINIT_CB_ID : - htim->IC_MspDeInitCallback = pCallback; - break; - - case HAL_TIM_OC_MSPINIT_CB_ID : - htim->OC_MspInitCallback = pCallback; - break; - - case HAL_TIM_OC_MSPDEINIT_CB_ID : - htim->OC_MspDeInitCallback = pCallback; - break; - - case HAL_TIM_PWM_MSPINIT_CB_ID : - htim->PWM_MspInitCallback = pCallback; - break; - - case HAL_TIM_PWM_MSPDEINIT_CB_ID : - htim->PWM_MspDeInitCallback = pCallback; - break; - - case HAL_TIM_ONE_PULSE_MSPINIT_CB_ID : - htim->OnePulse_MspInitCallback = pCallback; - break; - - case HAL_TIM_ONE_PULSE_MSPDEINIT_CB_ID : - htim->OnePulse_MspDeInitCallback = pCallback; - break; - - case HAL_TIM_ENCODER_MSPINIT_CB_ID : - htim->Encoder_MspInitCallback = pCallback; - break; - - case HAL_TIM_ENCODER_MSPDEINIT_CB_ID : - htim->Encoder_MspDeInitCallback = pCallback; - break; - - case HAL_TIM_HALL_SENSOR_MSPINIT_CB_ID : - htim->HallSensor_MspInitCallback = pCallback; - break; - - case HAL_TIM_HALL_SENSOR_MSPDEINIT_CB_ID : - htim->HallSensor_MspDeInitCallback = pCallback; - break; - - default : - /* Return error status */ - status = HAL_ERROR; - break; - } - } - else - { - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief Unregister a TIM callback - * TIM callback is redirected to the weak predefined callback - * @param htim tim handle - * @param CallbackID ID of the callback to be unregistered - * This parameter can be one of the following values: - * @arg @ref HAL_TIM_BASE_MSPINIT_CB_ID Base MspInit Callback ID - * @arg @ref HAL_TIM_BASE_MSPDEINIT_CB_ID Base MspDeInit Callback ID - * @arg @ref HAL_TIM_IC_MSPINIT_CB_ID IC MspInit Callback ID - * @arg @ref HAL_TIM_IC_MSPDEINIT_CB_ID IC MspDeInit Callback ID - * @arg @ref HAL_TIM_OC_MSPINIT_CB_ID OC MspInit Callback ID - * @arg @ref HAL_TIM_OC_MSPDEINIT_CB_ID OC MspDeInit Callback ID - * @arg @ref HAL_TIM_PWM_MSPINIT_CB_ID PWM MspInit Callback ID - * @arg @ref HAL_TIM_PWM_MSPDEINIT_CB_ID PWM MspDeInit Callback ID - * @arg @ref HAL_TIM_ONE_PULSE_MSPINIT_CB_ID One Pulse MspInit Callback ID - * @arg @ref HAL_TIM_ONE_PULSE_MSPDEINIT_CB_ID One Pulse MspDeInit Callback ID - * @arg @ref HAL_TIM_ENCODER_MSPINIT_CB_ID Encoder MspInit Callback ID - * @arg @ref HAL_TIM_ENCODER_MSPDEINIT_CB_ID Encoder MspDeInit Callback ID - * @arg @ref HAL_TIM_HALL_SENSOR_MSPINIT_CB_ID Hall Sensor MspInit Callback ID - * @arg @ref HAL_TIM_HALL_SENSOR_MSPDEINIT_CB_ID Hall Sensor MspDeInit Callback ID - * @arg @ref HAL_TIM_PERIOD_ELAPSED_CB_ID Period Elapsed Callback ID - * @arg @ref HAL_TIM_PERIOD_ELAPSED_HALF_CB_ID Period Elapsed half complete Callback ID - * @arg @ref HAL_TIM_TRIGGER_CB_ID Trigger Callback ID - * @arg @ref HAL_TIM_TRIGGER_HALF_CB_ID Trigger half complete Callback ID - * @arg @ref HAL_TIM_IC_CAPTURE_CB_ID Input Capture Callback ID - * @arg @ref HAL_TIM_IC_CAPTURE_HALF_CB_ID Input Capture half complete Callback ID - * @arg @ref HAL_TIM_OC_DELAY_ELAPSED_CB_ID Output Compare Delay Elapsed Callback ID - * @arg @ref HAL_TIM_PWM_PULSE_FINISHED_CB_ID PWM Pulse Finished Callback ID - * @arg @ref HAL_TIM_PWM_PULSE_FINISHED_HALF_CB_ID PWM Pulse Finished half complete Callback ID - * @arg @ref HAL_TIM_ERROR_CB_ID Error Callback ID - * @arg @ref HAL_TIM_COMMUTATION_CB_ID Commutation Callback ID - * @arg @ref HAL_TIM_COMMUTATION_HALF_CB_ID Commutation half complete Callback ID - * @arg @ref HAL_TIM_BREAK_CB_ID Break Callback ID - * @arg @ref HAL_TIM_BREAK2_CB_ID Break2 Callback ID - * @retval status - */ -HAL_StatusTypeDef HAL_TIM_UnRegisterCallback(TIM_HandleTypeDef *htim, HAL_TIM_CallbackIDTypeDef CallbackID) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (htim->State == HAL_TIM_STATE_READY) - { - switch (CallbackID) - { - case HAL_TIM_BASE_MSPINIT_CB_ID : - /* Legacy weak Base MspInit Callback */ - htim->Base_MspInitCallback = HAL_TIM_Base_MspInit; - break; - - case HAL_TIM_BASE_MSPDEINIT_CB_ID : - /* Legacy weak Base Msp DeInit Callback */ - htim->Base_MspDeInitCallback = HAL_TIM_Base_MspDeInit; - break; - - case HAL_TIM_IC_MSPINIT_CB_ID : - /* Legacy weak IC Msp Init Callback */ - htim->IC_MspInitCallback = HAL_TIM_IC_MspInit; - break; - - case HAL_TIM_IC_MSPDEINIT_CB_ID : - /* Legacy weak IC Msp DeInit Callback */ - htim->IC_MspDeInitCallback = HAL_TIM_IC_MspDeInit; - break; - - case HAL_TIM_OC_MSPINIT_CB_ID : - /* Legacy weak OC Msp Init Callback */ - htim->OC_MspInitCallback = HAL_TIM_OC_MspInit; - break; - - case HAL_TIM_OC_MSPDEINIT_CB_ID : - /* Legacy weak OC Msp DeInit Callback */ - htim->OC_MspDeInitCallback = HAL_TIM_OC_MspDeInit; - break; - - case HAL_TIM_PWM_MSPINIT_CB_ID : - /* Legacy weak PWM Msp Init Callback */ - htim->PWM_MspInitCallback = HAL_TIM_PWM_MspInit; - break; - - case HAL_TIM_PWM_MSPDEINIT_CB_ID : - /* Legacy weak PWM Msp DeInit Callback */ - htim->PWM_MspDeInitCallback = HAL_TIM_PWM_MspDeInit; - break; - - case HAL_TIM_ONE_PULSE_MSPINIT_CB_ID : - /* Legacy weak One Pulse Msp Init Callback */ - htim->OnePulse_MspInitCallback = HAL_TIM_OnePulse_MspInit; - break; - - case HAL_TIM_ONE_PULSE_MSPDEINIT_CB_ID : - /* Legacy weak One Pulse Msp DeInit Callback */ - htim->OnePulse_MspDeInitCallback = HAL_TIM_OnePulse_MspDeInit; - break; - - case HAL_TIM_ENCODER_MSPINIT_CB_ID : - /* Legacy weak Encoder Msp Init Callback */ - htim->Encoder_MspInitCallback = HAL_TIM_Encoder_MspInit; - break; - - case HAL_TIM_ENCODER_MSPDEINIT_CB_ID : - /* Legacy weak Encoder Msp DeInit Callback */ - htim->Encoder_MspDeInitCallback = HAL_TIM_Encoder_MspDeInit; - break; - - case HAL_TIM_HALL_SENSOR_MSPINIT_CB_ID : - /* Legacy weak Hall Sensor Msp Init Callback */ - htim->HallSensor_MspInitCallback = HAL_TIMEx_HallSensor_MspInit; - break; - - case HAL_TIM_HALL_SENSOR_MSPDEINIT_CB_ID : - /* Legacy weak Hall Sensor Msp DeInit Callback */ - htim->HallSensor_MspDeInitCallback = HAL_TIMEx_HallSensor_MspDeInit; - break; - - case HAL_TIM_PERIOD_ELAPSED_CB_ID : - /* Legacy weak Period Elapsed Callback */ - htim->PeriodElapsedCallback = HAL_TIM_PeriodElapsedCallback; - break; - - case HAL_TIM_PERIOD_ELAPSED_HALF_CB_ID : - /* Legacy weak Period Elapsed half complete Callback */ - htim->PeriodElapsedHalfCpltCallback = HAL_TIM_PeriodElapsedHalfCpltCallback; - break; - - case HAL_TIM_TRIGGER_CB_ID : - /* Legacy weak Trigger Callback */ - htim->TriggerCallback = HAL_TIM_TriggerCallback; - break; - - case HAL_TIM_TRIGGER_HALF_CB_ID : - /* Legacy weak Trigger half complete Callback */ - htim->TriggerHalfCpltCallback = HAL_TIM_TriggerHalfCpltCallback; - break; - - case HAL_TIM_IC_CAPTURE_CB_ID : - /* Legacy weak IC Capture Callback */ - htim->IC_CaptureCallback = HAL_TIM_IC_CaptureCallback; - break; - - case HAL_TIM_IC_CAPTURE_HALF_CB_ID : - /* Legacy weak IC Capture half complete Callback */ - htim->IC_CaptureHalfCpltCallback = HAL_TIM_IC_CaptureHalfCpltCallback; - break; - - case HAL_TIM_OC_DELAY_ELAPSED_CB_ID : - /* Legacy weak OC Delay Elapsed Callback */ - htim->OC_DelayElapsedCallback = HAL_TIM_OC_DelayElapsedCallback; - break; - - case HAL_TIM_PWM_PULSE_FINISHED_CB_ID : - /* Legacy weak PWM Pulse Finished Callback */ - htim->PWM_PulseFinishedCallback = HAL_TIM_PWM_PulseFinishedCallback; - break; - - case HAL_TIM_PWM_PULSE_FINISHED_HALF_CB_ID : - /* Legacy weak PWM Pulse Finished half complete Callback */ - htim->PWM_PulseFinishedHalfCpltCallback = HAL_TIM_PWM_PulseFinishedHalfCpltCallback; - break; - - case HAL_TIM_ERROR_CB_ID : - /* Legacy weak Error Callback */ - htim->ErrorCallback = HAL_TIM_ErrorCallback; - break; - - case HAL_TIM_COMMUTATION_CB_ID : - /* Legacy weak Commutation Callback */ - htim->CommutationCallback = HAL_TIMEx_CommutCallback; - break; - - case HAL_TIM_COMMUTATION_HALF_CB_ID : - /* Legacy weak Commutation half complete Callback */ - htim->CommutationHalfCpltCallback = HAL_TIMEx_CommutHalfCpltCallback; - break; - - case HAL_TIM_BREAK_CB_ID : - /* Legacy weak Break Callback */ - htim->BreakCallback = HAL_TIMEx_BreakCallback; - break; - - case HAL_TIM_BREAK2_CB_ID : - /* Legacy weak Break2 Callback */ - htim->Break2Callback = HAL_TIMEx_Break2Callback; - break; - - default : - /* Return error status */ - status = HAL_ERROR; - break; - } - } - else if (htim->State == HAL_TIM_STATE_RESET) - { - switch (CallbackID) - { - case HAL_TIM_BASE_MSPINIT_CB_ID : - /* Legacy weak Base MspInit Callback */ - htim->Base_MspInitCallback = HAL_TIM_Base_MspInit; - break; - - case HAL_TIM_BASE_MSPDEINIT_CB_ID : - /* Legacy weak Base Msp DeInit Callback */ - htim->Base_MspDeInitCallback = HAL_TIM_Base_MspDeInit; - break; - - case HAL_TIM_IC_MSPINIT_CB_ID : - /* Legacy weak IC Msp Init Callback */ - htim->IC_MspInitCallback = HAL_TIM_IC_MspInit; - break; - - case HAL_TIM_IC_MSPDEINIT_CB_ID : - /* Legacy weak IC Msp DeInit Callback */ - htim->IC_MspDeInitCallback = HAL_TIM_IC_MspDeInit; - break; - - case HAL_TIM_OC_MSPINIT_CB_ID : - /* Legacy weak OC Msp Init Callback */ - htim->OC_MspInitCallback = HAL_TIM_OC_MspInit; - break; - - case HAL_TIM_OC_MSPDEINIT_CB_ID : - /* Legacy weak OC Msp DeInit Callback */ - htim->OC_MspDeInitCallback = HAL_TIM_OC_MspDeInit; - break; - - case HAL_TIM_PWM_MSPINIT_CB_ID : - /* Legacy weak PWM Msp Init Callback */ - htim->PWM_MspInitCallback = HAL_TIM_PWM_MspInit; - break; - - case HAL_TIM_PWM_MSPDEINIT_CB_ID : - /* Legacy weak PWM Msp DeInit Callback */ - htim->PWM_MspDeInitCallback = HAL_TIM_PWM_MspDeInit; - break; - - case HAL_TIM_ONE_PULSE_MSPINIT_CB_ID : - /* Legacy weak One Pulse Msp Init Callback */ - htim->OnePulse_MspInitCallback = HAL_TIM_OnePulse_MspInit; - break; - - case HAL_TIM_ONE_PULSE_MSPDEINIT_CB_ID : - /* Legacy weak One Pulse Msp DeInit Callback */ - htim->OnePulse_MspDeInitCallback = HAL_TIM_OnePulse_MspDeInit; - break; - - case HAL_TIM_ENCODER_MSPINIT_CB_ID : - /* Legacy weak Encoder Msp Init Callback */ - htim->Encoder_MspInitCallback = HAL_TIM_Encoder_MspInit; - break; - - case HAL_TIM_ENCODER_MSPDEINIT_CB_ID : - /* Legacy weak Encoder Msp DeInit Callback */ - htim->Encoder_MspDeInitCallback = HAL_TIM_Encoder_MspDeInit; - break; - - case HAL_TIM_HALL_SENSOR_MSPINIT_CB_ID : - /* Legacy weak Hall Sensor Msp Init Callback */ - htim->HallSensor_MspInitCallback = HAL_TIMEx_HallSensor_MspInit; - break; - - case HAL_TIM_HALL_SENSOR_MSPDEINIT_CB_ID : - /* Legacy weak Hall Sensor Msp DeInit Callback */ - htim->HallSensor_MspDeInitCallback = HAL_TIMEx_HallSensor_MspDeInit; - break; - - default : - /* Return error status */ - status = HAL_ERROR; - break; - } - } - else - { - /* Return error status */ - status = HAL_ERROR; - } - - return status; -} -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - -/** - * @} - */ - -/** @defgroup TIM_Exported_Functions_Group10 TIM Peripheral State functions - * @brief TIM Peripheral State functions - * -@verbatim - ============================================================================== - ##### Peripheral State functions ##### - ============================================================================== - [..] - This subsection permits to get in run-time the status of the peripheral - and the data flow. - -@endverbatim - * @{ - */ - -/** - * @brief Return the TIM Base handle state. - * @param htim TIM Base handle - * @retval HAL state - */ -HAL_TIM_StateTypeDef HAL_TIM_Base_GetState(const TIM_HandleTypeDef *htim) -{ - return htim->State; -} - -/** - * @brief Return the TIM OC handle state. - * @param htim TIM Output Compare handle - * @retval HAL state - */ -HAL_TIM_StateTypeDef HAL_TIM_OC_GetState(const TIM_HandleTypeDef *htim) -{ - return htim->State; -} - -/** - * @brief Return the TIM PWM handle state. - * @param htim TIM handle - * @retval HAL state - */ -HAL_TIM_StateTypeDef HAL_TIM_PWM_GetState(const TIM_HandleTypeDef *htim) -{ - return htim->State; -} - -/** - * @brief Return the TIM Input Capture handle state. - * @param htim TIM IC handle - * @retval HAL state - */ -HAL_TIM_StateTypeDef HAL_TIM_IC_GetState(const TIM_HandleTypeDef *htim) -{ - return htim->State; -} - -/** - * @brief Return the TIM One Pulse Mode handle state. - * @param htim TIM OPM handle - * @retval HAL state - */ -HAL_TIM_StateTypeDef HAL_TIM_OnePulse_GetState(const TIM_HandleTypeDef *htim) -{ - return htim->State; -} - -/** - * @brief Return the TIM Encoder Mode handle state. - * @param htim TIM Encoder Interface handle - * @retval HAL state - */ -HAL_TIM_StateTypeDef HAL_TIM_Encoder_GetState(const TIM_HandleTypeDef *htim) -{ - return htim->State; -} - -/** - * @brief Return the TIM Encoder Mode handle state. - * @param htim TIM handle - * @retval Active channel - */ -HAL_TIM_ActiveChannel HAL_TIM_GetActiveChannel(const TIM_HandleTypeDef *htim) -{ - return htim->Channel; -} - -/** - * @brief Return actual state of the TIM channel. - * @param htim TIM handle - * @param Channel TIM Channel - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 - * @arg TIM_CHANNEL_2: TIM Channel 2 - * @arg TIM_CHANNEL_3: TIM Channel 3 - * @arg TIM_CHANNEL_4: TIM Channel 4 - * @arg TIM_CHANNEL_5: TIM Channel 5 - * @arg TIM_CHANNEL_6: TIM Channel 6 - * @retval TIM Channel state - */ -HAL_TIM_ChannelStateTypeDef HAL_TIM_GetChannelState(const TIM_HandleTypeDef *htim, uint32_t Channel) -{ - HAL_TIM_ChannelStateTypeDef channel_state; - - /* Check the parameters */ - assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); - - channel_state = TIM_CHANNEL_STATE_GET(htim, Channel); - - return channel_state; -} - -/** - * @brief Return actual state of a DMA burst operation. - * @param htim TIM handle - * @retval DMA burst state - */ -HAL_TIM_DMABurstStateTypeDef HAL_TIM_DMABurstState(const TIM_HandleTypeDef *htim) -{ - /* Check the parameters */ - assert_param(IS_TIM_DMABURST_INSTANCE(htim->Instance)); - - return htim->DMABurstState; -} - -/** - * @} - */ - -/** - * @} - */ - -/** @defgroup TIM_Private_Functions TIM Private Functions - * @{ - */ - -/** - * @brief TIM DMA error callback - * @param hdma pointer to DMA handle. - * @retval None - */ -void TIM_DMAError(DMA_HandleTypeDef *hdma) -{ - TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - - if (hdma == htim->hdma[TIM_DMA_ID_CC1]) - { - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - } - else if (hdma == htim->hdma[TIM_DMA_ID_CC2]) - { - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - } - else if (hdma == htim->hdma[TIM_DMA_ID_CC3]) - { - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_3, HAL_TIM_CHANNEL_STATE_READY); - } - else if (hdma == htim->hdma[TIM_DMA_ID_CC4]) - { - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_4, HAL_TIM_CHANNEL_STATE_READY); - } - else - { - htim->State = HAL_TIM_STATE_READY; - } - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->ErrorCallback(htim); -#else - HAL_TIM_ErrorCallback(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; -} - -/** - * @brief TIM DMA Delay Pulse complete callback. - * @param hdma pointer to DMA handle. - * @retval None - */ -static void TIM_DMADelayPulseCplt(DMA_HandleTypeDef *hdma) -{ - TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - - if (hdma == htim->hdma[TIM_DMA_ID_CC1]) - { - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; - - if (hdma->Init.Mode == DMA_NORMAL) - { - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - } - } - else if (hdma == htim->hdma[TIM_DMA_ID_CC2]) - { - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; - - if (hdma->Init.Mode == DMA_NORMAL) - { - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - } - } - else if (hdma == htim->hdma[TIM_DMA_ID_CC3]) - { - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; - - if (hdma->Init.Mode == DMA_NORMAL) - { - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_3, HAL_TIM_CHANNEL_STATE_READY); - } - } - else if (hdma == htim->hdma[TIM_DMA_ID_CC4]) - { - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; - - if (hdma->Init.Mode == DMA_NORMAL) - { - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_4, HAL_TIM_CHANNEL_STATE_READY); - } - } - else - { - /* nothing to do */ - } - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->PWM_PulseFinishedCallback(htim); -#else - HAL_TIM_PWM_PulseFinishedCallback(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; -} - -/** - * @brief TIM DMA Delay Pulse half complete callback. - * @param hdma pointer to DMA handle. - * @retval None - */ -void TIM_DMADelayPulseHalfCplt(DMA_HandleTypeDef *hdma) -{ - TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - - if (hdma == htim->hdma[TIM_DMA_ID_CC1]) - { - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; - } - else if (hdma == htim->hdma[TIM_DMA_ID_CC2]) - { - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; - } - else if (hdma == htim->hdma[TIM_DMA_ID_CC3]) - { - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; - } - else if (hdma == htim->hdma[TIM_DMA_ID_CC4]) - { - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; - } - else - { - /* nothing to do */ - } - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->PWM_PulseFinishedHalfCpltCallback(htim); -#else - HAL_TIM_PWM_PulseFinishedHalfCpltCallback(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; -} - -/** - * @brief TIM DMA Capture complete callback. - * @param hdma pointer to DMA handle. - * @retval None - */ -void TIM_DMACaptureCplt(DMA_HandleTypeDef *hdma) -{ - TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - - if (hdma == htim->hdma[TIM_DMA_ID_CC1]) - { - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; - - if (hdma->Init.Mode == DMA_NORMAL) - { - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - } - } - else if (hdma == htim->hdma[TIM_DMA_ID_CC2]) - { - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; - - if (hdma->Init.Mode == DMA_NORMAL) - { - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - } - } - else if (hdma == htim->hdma[TIM_DMA_ID_CC3]) - { - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; - - if (hdma->Init.Mode == DMA_NORMAL) - { - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_3, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_3, HAL_TIM_CHANNEL_STATE_READY); - } - } - else if (hdma == htim->hdma[TIM_DMA_ID_CC4]) - { - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; - - if (hdma->Init.Mode == DMA_NORMAL) - { - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_4, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_4, HAL_TIM_CHANNEL_STATE_READY); - } - } - else - { - /* nothing to do */ - } - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->IC_CaptureCallback(htim); -#else - HAL_TIM_IC_CaptureCallback(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; -} - -/** - * @brief TIM DMA Capture half complete callback. - * @param hdma pointer to DMA handle. - * @retval None - */ -void TIM_DMACaptureHalfCplt(DMA_HandleTypeDef *hdma) -{ - TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - - if (hdma == htim->hdma[TIM_DMA_ID_CC1]) - { - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; - } - else if (hdma == htim->hdma[TIM_DMA_ID_CC2]) - { - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; - } - else if (hdma == htim->hdma[TIM_DMA_ID_CC3]) - { - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; - } - else if (hdma == htim->hdma[TIM_DMA_ID_CC4]) - { - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; - } - else - { - /* nothing to do */ - } - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->IC_CaptureHalfCpltCallback(htim); -#else - HAL_TIM_IC_CaptureHalfCpltCallback(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; -} - -/** - * @brief TIM DMA Period Elapse complete callback. - * @param hdma pointer to DMA handle. - * @retval None - */ -static void TIM_DMAPeriodElapsedCplt(DMA_HandleTypeDef *hdma) -{ - TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - - if (htim->hdma[TIM_DMA_ID_UPDATE]->Init.Mode == DMA_NORMAL) - { - htim->State = HAL_TIM_STATE_READY; - } - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->PeriodElapsedCallback(htim); -#else - HAL_TIM_PeriodElapsedCallback(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ -} - -/** - * @brief TIM DMA Period Elapse half complete callback. - * @param hdma pointer to DMA handle. - * @retval None - */ -static void TIM_DMAPeriodElapsedHalfCplt(DMA_HandleTypeDef *hdma) -{ - TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->PeriodElapsedHalfCpltCallback(htim); -#else - HAL_TIM_PeriodElapsedHalfCpltCallback(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ -} - -/** - * @brief TIM DMA Trigger callback. - * @param hdma pointer to DMA handle. - * @retval None - */ -static void TIM_DMATriggerCplt(DMA_HandleTypeDef *hdma) -{ - TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - - if (htim->hdma[TIM_DMA_ID_TRIGGER]->Init.Mode == DMA_NORMAL) - { - htim->State = HAL_TIM_STATE_READY; - } - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->TriggerCallback(htim); -#else - HAL_TIM_TriggerCallback(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ -} - -/** - * @brief TIM DMA Trigger half complete callback. - * @param hdma pointer to DMA handle. - * @retval None - */ -static void TIM_DMATriggerHalfCplt(DMA_HandleTypeDef *hdma) -{ - TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->TriggerHalfCpltCallback(htim); -#else - HAL_TIM_TriggerHalfCpltCallback(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ -} - -/** - * @brief Time Base configuration - * @param TIMx TIM peripheral - * @param Structure TIM Base configuration structure - * @retval None - */ -void TIM_Base_SetConfig(TIM_TypeDef *TIMx, const TIM_Base_InitTypeDef *Structure) -{ - uint32_t tmpcr1; - tmpcr1 = TIMx->CR1; - - /* Set TIM Time Base Unit parameters ---------------------------------------*/ - if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx)) - { - /* Select the Counter Mode */ - tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS); - tmpcr1 |= Structure->CounterMode; - } - - if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx)) - { - /* Set the clock division */ - tmpcr1 &= ~TIM_CR1_CKD; - tmpcr1 |= (uint32_t)Structure->ClockDivision; - } - - /* Set the auto-reload preload */ - MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload); - - TIMx->CR1 = tmpcr1; - - /* Set the Autoreload value */ - TIMx->ARR = (uint32_t)Structure->Period ; - - /* Set the Prescaler value */ - TIMx->PSC = Structure->Prescaler; - - if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx)) - { - /* Set the Repetition Counter value */ - TIMx->RCR = Structure->RepetitionCounter; - } - - /* Generate an update event to reload the Prescaler - and the repetition counter (only for advanced timer) value immediately */ - TIMx->EGR = TIM_EGR_UG; -} - -/** - * @brief Timer Output Compare 1 configuration - * @param TIMx to select the TIM peripheral - * @param OC_Config The output configuration structure - * @retval None - */ -static void TIM_OC1_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config) -{ - uint32_t tmpccmrx; - uint32_t tmpccer; - uint32_t tmpcr2; - - /* Disable the Channel 1: Reset the CC1E Bit */ - TIMx->CCER &= ~TIM_CCER_CC1E; - - /* Get the TIMx CCER register value */ - tmpccer = TIMx->CCER; - /* Get the TIMx CR2 register value */ - tmpcr2 = TIMx->CR2; - - /* Get the TIMx CCMR1 register value */ - tmpccmrx = TIMx->CCMR1; - - /* Reset the Output Compare Mode Bits */ - tmpccmrx &= ~TIM_CCMR1_OC1M; - tmpccmrx &= ~TIM_CCMR1_CC1S; - /* Select the Output Compare Mode */ - tmpccmrx |= OC_Config->OCMode; - - /* Reset the Output Polarity level */ - tmpccer &= ~TIM_CCER_CC1P; - /* Set the Output Compare Polarity */ - tmpccer |= OC_Config->OCPolarity; - - if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_1)) - { - /* Check parameters */ - assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); - - /* Reset the Output N Polarity level */ - tmpccer &= ~TIM_CCER_CC1NP; - /* Set the Output N Polarity */ - tmpccer |= OC_Config->OCNPolarity; - /* Reset the Output N State */ - tmpccer &= ~TIM_CCER_CC1NE; - } - - if (IS_TIM_BREAK_INSTANCE(TIMx)) - { - /* 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; - tmpcr2 &= ~TIM_CR2_OIS1N; - /* Set the Output Idle state */ - tmpcr2 |= OC_Config->OCIdleState; - /* Set the Output N Idle state */ - tmpcr2 |= OC_Config->OCNIdleState; - } - - /* Write to TIMx CR2 */ - TIMx->CR2 = tmpcr2; - - /* Write to TIMx CCMR1 */ - TIMx->CCMR1 = tmpccmrx; - - /* Set the Capture Compare Register value */ - TIMx->CCR1 = OC_Config->Pulse; - - /* Write to TIMx CCER */ - TIMx->CCER = tmpccer; -} - -/** - * @brief Timer Output Compare 2 configuration - * @param TIMx to select the TIM peripheral - * @param OC_Config The output configuration structure - * @retval None - */ -void TIM_OC2_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config) -{ - uint32_t tmpccmrx; - uint32_t tmpccer; - uint32_t tmpcr2; - - /* Disable the Channel 2: Reset the CC2E Bit */ - TIMx->CCER &= ~TIM_CCER_CC2E; - - /* Get the TIMx CCER register value */ - tmpccer = TIMx->CCER; - /* Get the TIMx CR2 register value */ - tmpcr2 = TIMx->CR2; - - /* Get the TIMx CCMR1 register value */ - tmpccmrx = TIMx->CCMR1; - - /* Reset the Output Compare mode and Capture/Compare selection Bits */ - tmpccmrx &= ~TIM_CCMR1_OC2M; - tmpccmrx &= ~TIM_CCMR1_CC2S; - - /* Select the Output Compare Mode */ - tmpccmrx |= (OC_Config->OCMode << 8U); - - /* Reset the Output Polarity level */ - tmpccer &= ~TIM_CCER_CC2P; - /* Set the Output Compare Polarity */ - tmpccer |= (OC_Config->OCPolarity << 4U); - - if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_2)) - { - assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); - - /* Reset the Output N Polarity level */ - tmpccer &= ~TIM_CCER_CC2NP; - /* Set the Output N Polarity */ - tmpccer |= (OC_Config->OCNPolarity << 4U); - /* Reset the Output N State */ - tmpccer &= ~TIM_CCER_CC2NE; - - } - - if (IS_TIM_BREAK_INSTANCE(TIMx)) - { - /* 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; - tmpcr2 &= ~TIM_CR2_OIS2N; - /* Set the Output Idle state */ - tmpcr2 |= (OC_Config->OCIdleState << 2U); - /* Set the Output N Idle state */ - tmpcr2 |= (OC_Config->OCNIdleState << 2U); - } - - /* Write to TIMx CR2 */ - TIMx->CR2 = tmpcr2; - - /* Write to TIMx CCMR1 */ - TIMx->CCMR1 = tmpccmrx; - - /* Set the Capture Compare Register value */ - TIMx->CCR2 = OC_Config->Pulse; - - /* Write to TIMx CCER */ - TIMx->CCER = tmpccer; -} - -/** - * @brief Timer Output Compare 3 configuration - * @param TIMx to select the TIM peripheral - * @param OC_Config The output configuration structure - * @retval None - */ -static void TIM_OC3_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config) -{ - uint32_t tmpccmrx; - uint32_t tmpccer; - uint32_t tmpcr2; - - /* Disable the Channel 3: Reset the CC2E Bit */ - TIMx->CCER &= ~TIM_CCER_CC3E; - - /* Get the TIMx CCER register value */ - tmpccer = TIMx->CCER; - /* Get the TIMx CR2 register value */ - tmpcr2 = TIMx->CR2; - - /* Get the TIMx CCMR2 register value */ - tmpccmrx = TIMx->CCMR2; - - /* Reset the Output Compare mode and Capture/Compare selection Bits */ - tmpccmrx &= ~TIM_CCMR2_OC3M; - tmpccmrx &= ~TIM_CCMR2_CC3S; - /* Select the Output Compare Mode */ - tmpccmrx |= OC_Config->OCMode; - - /* Reset the Output Polarity level */ - tmpccer &= ~TIM_CCER_CC3P; - /* Set the Output Compare Polarity */ - tmpccer |= (OC_Config->OCPolarity << 8U); - - if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_3)) - { - assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); - - /* Reset the Output N Polarity level */ - tmpccer &= ~TIM_CCER_CC3NP; - /* Set the Output N Polarity */ - tmpccer |= (OC_Config->OCNPolarity << 8U); - /* Reset the Output N State */ - tmpccer &= ~TIM_CCER_CC3NE; - } - - if (IS_TIM_BREAK_INSTANCE(TIMx)) - { - /* 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; - tmpcr2 &= ~TIM_CR2_OIS3N; - /* Set the Output Idle state */ - tmpcr2 |= (OC_Config->OCIdleState << 4U); - /* Set the Output N Idle state */ - tmpcr2 |= (OC_Config->OCNIdleState << 4U); - } - - /* Write to TIMx CR2 */ - TIMx->CR2 = tmpcr2; - - /* Write to TIMx CCMR2 */ - TIMx->CCMR2 = tmpccmrx; - - /* Set the Capture Compare Register value */ - TIMx->CCR3 = OC_Config->Pulse; - - /* Write to TIMx CCER */ - TIMx->CCER = tmpccer; -} - -/** - * @brief Timer Output Compare 4 configuration - * @param TIMx to select the TIM peripheral - * @param OC_Config The output configuration structure - * @retval None - */ -static void TIM_OC4_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config) -{ - uint32_t tmpccmrx; - uint32_t tmpccer; - uint32_t tmpcr2; - - /* Disable the Channel 4: Reset the CC4E Bit */ - TIMx->CCER &= ~TIM_CCER_CC4E; - - /* Get the TIMx CCER register value */ - tmpccer = TIMx->CCER; - /* Get the TIMx CR2 register value */ - tmpcr2 = TIMx->CR2; - - /* Get the TIMx CCMR2 register value */ - tmpccmrx = TIMx->CCMR2; - - /* Reset the Output Compare mode and Capture/Compare selection Bits */ - tmpccmrx &= ~TIM_CCMR2_OC4M; - tmpccmrx &= ~TIM_CCMR2_CC4S; - - /* Select the Output Compare Mode */ - tmpccmrx |= (OC_Config->OCMode << 8U); - - /* Reset the Output Polarity level */ - tmpccer &= ~TIM_CCER_CC4P; - /* Set the Output Compare Polarity */ - tmpccer |= (OC_Config->OCPolarity << 12U); - - if (IS_TIM_BREAK_INSTANCE(TIMx)) - { - /* Check parameters */ - assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); - - /* Reset the Output Compare IDLE State */ - tmpcr2 &= ~TIM_CR2_OIS4; - - /* Set the Output Idle state */ - tmpcr2 |= (OC_Config->OCIdleState << 6U); - } - - /* Write to TIMx CR2 */ - TIMx->CR2 = tmpcr2; - - /* Write to TIMx CCMR2 */ - TIMx->CCMR2 = tmpccmrx; - - /* Set the Capture Compare Register value */ - TIMx->CCR4 = OC_Config->Pulse; - - /* Write to TIMx CCER */ - TIMx->CCER = tmpccer; -} - -/** - * @brief Timer Output Compare 5 configuration - * @param TIMx to select the TIM peripheral - * @param OC_Config The output configuration structure - * @retval None - */ -static void TIM_OC5_SetConfig(TIM_TypeDef *TIMx, - const TIM_OC_InitTypeDef *OC_Config) -{ - uint32_t tmpccmrx; - uint32_t tmpccer; - uint32_t tmpcr2; - - /* Disable the output: Reset the CCxE Bit */ - TIMx->CCER &= ~TIM_CCER_CC5E; - - /* Get the TIMx CCER register value */ - tmpccer = TIMx->CCER; - /* Get the TIMx CR2 register value */ - tmpcr2 = TIMx->CR2; - /* Get the TIMx CCMR1 register value */ - tmpccmrx = TIMx->CCMR3; - - /* Reset the Output Compare Mode Bits */ - tmpccmrx &= ~(TIM_CCMR3_OC5M); - /* Select the Output Compare Mode */ - tmpccmrx |= OC_Config->OCMode; - - /* Reset the Output Polarity level */ - tmpccer &= ~TIM_CCER_CC5P; - /* Set the Output Compare Polarity */ - tmpccer |= (OC_Config->OCPolarity << 16U); - - if (IS_TIM_BREAK_INSTANCE(TIMx)) - { - /* Reset the Output Compare IDLE State */ - tmpcr2 &= ~TIM_CR2_OIS5; - /* Set the Output Idle state */ - tmpcr2 |= (OC_Config->OCIdleState << 8U); - } - /* Write to TIMx CR2 */ - TIMx->CR2 = tmpcr2; - - /* Write to TIMx CCMR3 */ - TIMx->CCMR3 = tmpccmrx; - - /* Set the Capture Compare Register value */ - TIMx->CCR5 = OC_Config->Pulse; - - /* Write to TIMx CCER */ - TIMx->CCER = tmpccer; -} - -/** - * @brief Timer Output Compare 6 configuration - * @param TIMx to select the TIM peripheral - * @param OC_Config The output configuration structure - * @retval None - */ -static void TIM_OC6_SetConfig(TIM_TypeDef *TIMx, - const TIM_OC_InitTypeDef *OC_Config) -{ - uint32_t tmpccmrx; - uint32_t tmpccer; - uint32_t tmpcr2; - - /* Disable the output: Reset the CCxE Bit */ - TIMx->CCER &= ~TIM_CCER_CC6E; - - /* Get the TIMx CCER register value */ - tmpccer = TIMx->CCER; - /* Get the TIMx CR2 register value */ - tmpcr2 = TIMx->CR2; - /* Get the TIMx CCMR1 register value */ - tmpccmrx = TIMx->CCMR3; - - /* Reset the Output Compare Mode Bits */ - tmpccmrx &= ~(TIM_CCMR3_OC6M); - /* Select the Output Compare Mode */ - tmpccmrx |= (OC_Config->OCMode << 8U); - - /* Reset the Output Polarity level */ - tmpccer &= (uint32_t)~TIM_CCER_CC6P; - /* Set the Output Compare Polarity */ - tmpccer |= (OC_Config->OCPolarity << 20U); - - if (IS_TIM_BREAK_INSTANCE(TIMx)) - { - /* Reset the Output Compare IDLE State */ - tmpcr2 &= ~TIM_CR2_OIS6; - /* Set the Output Idle state */ - tmpcr2 |= (OC_Config->OCIdleState << 10U); - } - - /* Write to TIMx CR2 */ - TIMx->CR2 = tmpcr2; - - /* Write to TIMx CCMR3 */ - TIMx->CCMR3 = tmpccmrx; - - /* Set the Capture Compare Register value */ - TIMx->CCR6 = OC_Config->Pulse; - - /* Write to TIMx CCER */ - TIMx->CCER = tmpccer; -} - -/** - * @brief Slave Timer configuration function - * @param htim TIM handle - * @param sSlaveConfig Slave timer configuration - * @retval None - */ -static HAL_StatusTypeDef TIM_SlaveTimer_SetConfig(TIM_HandleTypeDef *htim, - const TIM_SlaveConfigTypeDef *sSlaveConfig) -{ - HAL_StatusTypeDef status = HAL_OK; - uint32_t tmpsmcr; - uint32_t tmpccmr1; - uint32_t tmpccer; - - /* Get the TIMx SMCR register value */ - tmpsmcr = htim->Instance->SMCR; - - /* Reset the Trigger Selection Bits */ - tmpsmcr &= ~TIM_SMCR_TS; - /* Set the Input Trigger source */ - tmpsmcr |= sSlaveConfig->InputTrigger; - - /* Reset the slave mode Bits */ - tmpsmcr &= ~TIM_SMCR_SMS; - /* Set the slave mode */ - tmpsmcr |= sSlaveConfig->SlaveMode; - - /* Write to TIMx SMCR */ - htim->Instance->SMCR = tmpsmcr; - - /* Configure the trigger prescaler, filter, and polarity */ - switch (sSlaveConfig->InputTrigger) - { - case TIM_TS_ETRF: - { - /* Check the parameters */ - assert_param(IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(htim->Instance)); - assert_param(IS_TIM_TRIGGERPRESCALER(sSlaveConfig->TriggerPrescaler)); - assert_param(IS_TIM_TRIGGERPOLARITY(sSlaveConfig->TriggerPolarity)); - assert_param(IS_TIM_TRIGGERFILTER(sSlaveConfig->TriggerFilter)); - /* Configure the ETR Trigger source */ - TIM_ETR_SetConfig(htim->Instance, - sSlaveConfig->TriggerPrescaler, - sSlaveConfig->TriggerPolarity, - sSlaveConfig->TriggerFilter); - break; - } - - case TIM_TS_TI1F_ED: - { - /* Check the parameters */ - assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); - assert_param(IS_TIM_TRIGGERFILTER(sSlaveConfig->TriggerFilter)); - - if (sSlaveConfig->SlaveMode == TIM_SLAVEMODE_GATED) - { - return HAL_ERROR; - } - - /* Disable the Channel 1: Reset the CC1E Bit */ - tmpccer = htim->Instance->CCER; - htim->Instance->CCER &= ~TIM_CCER_CC1E; - tmpccmr1 = htim->Instance->CCMR1; - - /* Set the filter */ - tmpccmr1 &= ~TIM_CCMR1_IC1F; - tmpccmr1 |= ((sSlaveConfig->TriggerFilter) << 4U); - - /* Write to TIMx CCMR1 and CCER registers */ - htim->Instance->CCMR1 = tmpccmr1; - htim->Instance->CCER = tmpccer; - break; - } - - case TIM_TS_TI1FP1: - { - /* Check the parameters */ - assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); - assert_param(IS_TIM_TRIGGERPOLARITY(sSlaveConfig->TriggerPolarity)); - assert_param(IS_TIM_TRIGGERFILTER(sSlaveConfig->TriggerFilter)); - - /* Configure TI1 Filter and Polarity */ - TIM_TI1_ConfigInputStage(htim->Instance, - sSlaveConfig->TriggerPolarity, - sSlaveConfig->TriggerFilter); - break; - } - - case TIM_TS_TI2FP2: - { - /* Check the parameters */ - assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); - assert_param(IS_TIM_TRIGGERPOLARITY(sSlaveConfig->TriggerPolarity)); - assert_param(IS_TIM_TRIGGERFILTER(sSlaveConfig->TriggerFilter)); - - /* Configure TI2 Filter and Polarity */ - TIM_TI2_ConfigInputStage(htim->Instance, - sSlaveConfig->TriggerPolarity, - sSlaveConfig->TriggerFilter); - break; - } - - case TIM_TS_ITR0: - case TIM_TS_ITR1: - case TIM_TS_ITR2: - case TIM_TS_ITR3: - case TIM_TS_ITR4: - case TIM_TS_ITR5: - case TIM_TS_ITR6: - case TIM_TS_ITR7: - case TIM_TS_ITR8: - case TIM_TS_ITR9: - case TIM_TS_ITR10: - case TIM_TS_ITR11: - case TIM_TS_ITR12: - case TIM_TS_ITR13: - { - /* Check the parameter */ - assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); - break; - } - - default: - status = HAL_ERROR; - break; - } - - return status; -} - -/** - * @brief Configure the TI1 as Input. - * @param TIMx to select the TIM peripheral. - * @param TIM_ICPolarity The Input Polarity. - * This parameter can be one of the following values: - * @arg TIM_ICPOLARITY_RISING - * @arg TIM_ICPOLARITY_FALLING - * @arg TIM_ICPOLARITY_BOTHEDGE - * @param TIM_ICSelection specifies the input to be used. - * This parameter can be one of the following values: - * @arg TIM_ICSELECTION_DIRECTTI: TIM Input 1 is selected to be connected to IC1. - * @arg TIM_ICSELECTION_INDIRECTTI: TIM Input 1 is selected to be connected to IC2. - * @arg TIM_ICSELECTION_TRC: TIM Input 1 is selected to be connected to TRC. - * @param TIM_ICFilter Specifies the Input Capture Filter. - * This parameter must be a value between 0x00 and 0x0F. - * @retval None - * @note TIM_ICFilter and TIM_ICPolarity are not used in INDIRECT mode as TI2FP1 - * (on channel2 path) is used as the input signal. Therefore CCMR1 must be - * protected against un-initialized filter and polarity values. - */ -void TIM_TI1_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, - uint32_t TIM_ICFilter) -{ - uint32_t tmpccmr1; - uint32_t tmpccer; - - /* Disable the Channel 1: Reset the CC1E Bit */ - TIMx->CCER &= ~TIM_CCER_CC1E; - tmpccmr1 = TIMx->CCMR1; - tmpccer = TIMx->CCER; - - /* Select the Input */ - if (IS_TIM_CC2_INSTANCE(TIMx) != RESET) - { - tmpccmr1 &= ~TIM_CCMR1_CC1S; - tmpccmr1 |= TIM_ICSelection; - } - else - { - tmpccmr1 |= TIM_CCMR1_CC1S_0; - } - - /* Set the filter */ - tmpccmr1 &= ~TIM_CCMR1_IC1F; - tmpccmr1 |= ((TIM_ICFilter << 4U) & TIM_CCMR1_IC1F); - - /* Select the Polarity and set the CC1E Bit */ - tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP); - tmpccer |= (TIM_ICPolarity & (TIM_CCER_CC1P | TIM_CCER_CC1NP)); - - /* Write to TIMx CCMR1 and CCER registers */ - TIMx->CCMR1 = tmpccmr1; - TIMx->CCER = tmpccer; -} - -/** - * @brief Configure the Polarity and Filter for TI1. - * @param TIMx to select the TIM peripheral. - * @param TIM_ICPolarity The Input Polarity. - * This parameter can be one of the following values: - * @arg TIM_ICPOLARITY_RISING - * @arg TIM_ICPOLARITY_FALLING - * @arg TIM_ICPOLARITY_BOTHEDGE - * @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) -{ - uint32_t tmpccmr1; - uint32_t tmpccer; - - /* Disable the Channel 1: Reset the CC1E Bit */ - tmpccer = TIMx->CCER; - TIMx->CCER &= ~TIM_CCER_CC1E; - tmpccmr1 = TIMx->CCMR1; - - /* Set the filter */ - tmpccmr1 &= ~TIM_CCMR1_IC1F; - tmpccmr1 |= (TIM_ICFilter << 4U); - - /* Select the Polarity and set the CC1E Bit */ - tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP); - tmpccer |= TIM_ICPolarity; - - /* Write to TIMx CCMR1 and CCER registers */ - TIMx->CCMR1 = tmpccmr1; - TIMx->CCER = tmpccer; -} - -/** - * @brief Configure the TI2 as Input. - * @param TIMx to select the TIM peripheral - * @param TIM_ICPolarity The Input Polarity. - * This parameter can be one of the following values: - * @arg TIM_ICPOLARITY_RISING - * @arg TIM_ICPOLARITY_FALLING - * @arg TIM_ICPOLARITY_BOTHEDGE - * @param TIM_ICSelection specifies the input to be used. - * This parameter can be one of the following values: - * @arg TIM_ICSELECTION_DIRECTTI: TIM Input 2 is selected to be connected to IC2. - * @arg TIM_ICSELECTION_INDIRECTTI: TIM Input 2 is selected to be connected to IC1. - * @arg TIM_ICSELECTION_TRC: TIM Input 2 is selected to be connected to TRC. - * @param TIM_ICFilter Specifies the Input Capture Filter. - * This parameter must be a value between 0x00 and 0x0F. - * @retval None - * @note TIM_ICFilter and TIM_ICPolarity are not used in INDIRECT mode as TI1FP2 - * (on channel1 path) is used as the input signal. Therefore CCMR1 must be - * protected against un-initialized filter and polarity values. - */ -static void TIM_TI2_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, - uint32_t TIM_ICFilter) -{ - uint32_t tmpccmr1; - uint32_t tmpccer; - - /* Disable the Channel 2: Reset the CC2E Bit */ - TIMx->CCER &= ~TIM_CCER_CC2E; - tmpccmr1 = TIMx->CCMR1; - tmpccer = TIMx->CCER; - - /* Select the Input */ - tmpccmr1 &= ~TIM_CCMR1_CC2S; - tmpccmr1 |= (TIM_ICSelection << 8U); - - /* Set the filter */ - tmpccmr1 &= ~TIM_CCMR1_IC2F; - tmpccmr1 |= ((TIM_ICFilter << 12U) & TIM_CCMR1_IC2F); - - /* Select the Polarity and set the CC2E Bit */ - tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP); - tmpccer |= ((TIM_ICPolarity << 4U) & (TIM_CCER_CC2P | TIM_CCER_CC2NP)); - - /* Write to TIMx CCMR1 and CCER registers */ - TIMx->CCMR1 = tmpccmr1 ; - TIMx->CCER = tmpccer; -} - -/** - * @brief Configure the Polarity and Filter for TI2. - * @param TIMx to select the TIM peripheral. - * @param TIM_ICPolarity The Input Polarity. - * This parameter can be one of the following values: - * @arg TIM_ICPOLARITY_RISING - * @arg TIM_ICPOLARITY_FALLING - * @arg TIM_ICPOLARITY_BOTHEDGE - * @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) -{ - uint32_t tmpccmr1; - uint32_t tmpccer; - - /* Disable the Channel 2: Reset the CC2E Bit */ - TIMx->CCER &= ~TIM_CCER_CC2E; - tmpccmr1 = TIMx->CCMR1; - tmpccer = TIMx->CCER; - - /* Set the filter */ - tmpccmr1 &= ~TIM_CCMR1_IC2F; - tmpccmr1 |= (TIM_ICFilter << 12U); - - /* Select the Polarity and set the CC2E Bit */ - tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP); - tmpccer |= (TIM_ICPolarity << 4U); - - /* Write to TIMx CCMR1 and CCER registers */ - TIMx->CCMR1 = tmpccmr1 ; - TIMx->CCER = tmpccer; -} - -/** - * @brief Configure the TI3 as Input. - * @param TIMx to select the TIM peripheral - * @param TIM_ICPolarity The Input Polarity. - * This parameter can be one of the following values: - * @arg TIM_ICPOLARITY_RISING - * @arg TIM_ICPOLARITY_FALLING - * @arg TIM_ICPOLARITY_BOTHEDGE - * @param TIM_ICSelection specifies the input to be used. - * This parameter can be one of the following values: - * @arg TIM_ICSELECTION_DIRECTTI: TIM Input 3 is selected to be connected to IC3. - * @arg TIM_ICSELECTION_INDIRECTTI: TIM Input 3 is selected to be connected to IC4. - * @arg TIM_ICSELECTION_TRC: TIM Input 3 is selected to be connected to TRC. - * @param TIM_ICFilter Specifies the Input Capture Filter. - * This parameter must be a value between 0x00 and 0x0F. - * @retval None - * @note TIM_ICFilter and TIM_ICPolarity are not used in INDIRECT mode as TI3FP4 - * (on channel1 path) is used as the input signal. Therefore CCMR2 must be - * protected against un-initialized filter and polarity values. - */ -static void TIM_TI3_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, - uint32_t TIM_ICFilter) -{ - uint32_t tmpccmr2; - uint32_t tmpccer; - - /* Disable the Channel 3: Reset the CC3E Bit */ - TIMx->CCER &= ~TIM_CCER_CC3E; - tmpccmr2 = TIMx->CCMR2; - tmpccer = TIMx->CCER; - - /* Select the Input */ - tmpccmr2 &= ~TIM_CCMR2_CC3S; - tmpccmr2 |= TIM_ICSelection; - - /* Set the filter */ - tmpccmr2 &= ~TIM_CCMR2_IC3F; - tmpccmr2 |= ((TIM_ICFilter << 4U) & TIM_CCMR2_IC3F); - - /* Select the Polarity and set the CC3E Bit */ - tmpccer &= ~(TIM_CCER_CC3P | TIM_CCER_CC3NP); - tmpccer |= ((TIM_ICPolarity << 8U) & (TIM_CCER_CC3P | TIM_CCER_CC3NP)); - - /* Write to TIMx CCMR2 and CCER registers */ - TIMx->CCMR2 = tmpccmr2; - TIMx->CCER = tmpccer; -} - -/** - * @brief Configure the TI4 as Input. - * @param TIMx to select the TIM peripheral - * @param TIM_ICPolarity The Input Polarity. - * This parameter can be one of the following values: - * @arg TIM_ICPOLARITY_RISING - * @arg TIM_ICPOLARITY_FALLING - * @arg TIM_ICPOLARITY_BOTHEDGE - * @param TIM_ICSelection specifies the input to be used. - * This parameter can be one of the following values: - * @arg TIM_ICSELECTION_DIRECTTI: TIM Input 4 is selected to be connected to IC4. - * @arg TIM_ICSELECTION_INDIRECTTI: TIM Input 4 is selected to be connected to IC3. - * @arg TIM_ICSELECTION_TRC: TIM Input 4 is selected to be connected to TRC. - * @param TIM_ICFilter Specifies the Input Capture Filter. - * This parameter must be a value between 0x00 and 0x0F. - * @note TIM_ICFilter and TIM_ICPolarity are not used in INDIRECT mode as TI4FP3 - * (on channel1 path) is used as the input signal. Therefore CCMR2 must be - * protected against un-initialized filter and polarity values. - * @retval None - */ -static void TIM_TI4_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, - uint32_t TIM_ICFilter) -{ - uint32_t tmpccmr2; - uint32_t tmpccer; - - /* Disable the Channel 4: Reset the CC4E Bit */ - TIMx->CCER &= ~TIM_CCER_CC4E; - tmpccmr2 = TIMx->CCMR2; - tmpccer = TIMx->CCER; - - /* Select the Input */ - tmpccmr2 &= ~TIM_CCMR2_CC4S; - tmpccmr2 |= (TIM_ICSelection << 8U); - - /* Set the filter */ - tmpccmr2 &= ~TIM_CCMR2_IC4F; - tmpccmr2 |= ((TIM_ICFilter << 12U) & TIM_CCMR2_IC4F); - - /* Select the Polarity and set the CC4E Bit */ - tmpccer &= ~(TIM_CCER_CC4P | TIM_CCER_CC4NP); - tmpccer |= ((TIM_ICPolarity << 12U) & (TIM_CCER_CC4P | TIM_CCER_CC4NP)); - - /* Write to TIMx CCMR2 and CCER registers */ - TIMx->CCMR2 = tmpccmr2; - TIMx->CCER = tmpccer ; -} - -/** - * @brief Selects the Input Trigger source - * @param TIMx to select the TIM peripheral - * @param InputTriggerSource The Input Trigger source. - * This parameter can be one of the following values: - * @arg TIM_TS_ITR0: Internal Trigger 0 - * @arg TIM_TS_ITR1: Internal Trigger 1 - * @arg TIM_TS_ITR2: Internal Trigger 2 - * @arg TIM_TS_ITR3: Internal Trigger 3 - * @arg TIM_TS_ITR4: Internal Trigger 4 (*) - * @arg TIM_TS_ITR5: Internal Trigger 5 - * @arg TIM_TS_ITR6: Internal Trigger 6 - * @arg TIM_TS_ITR7: Internal Trigger 7 - * @arg TIM_TS_ITR8: Internal Trigger 8 (*) - * @arg TIM_TS_ITR9: Internal Trigger 9 (*) - * @arg TIM_TS_ITR10: Internal Trigger 10 (*) - * @arg TIM_TS_ITR11: Internal Trigger 11 (*) - * @arg TIM_TS_ITR12: Internal Trigger 12 (*) - * @arg TIM_TS_ITR13: Internal Trigger 13 (*) - * @arg TIM_TS_TI1F_ED: TI1 Edge Detector - * @arg TIM_TS_TI1FP1: Filtered Timer Input 1 - * @arg TIM_TS_TI2FP2: Filtered Timer Input 2 - * @arg TIM_TS_ETRF: External Trigger input - * - * (*) Value not defined in all devices. - * - * @retval None - */ -static void TIM_ITRx_SetConfig(TIM_TypeDef *TIMx, uint32_t InputTriggerSource) -{ - uint32_t tmpsmcr; - - /* Get the TIMx SMCR register value */ - tmpsmcr = TIMx->SMCR; - /* Reset the TS Bits */ - tmpsmcr &= ~TIM_SMCR_TS; - /* Set the Input Trigger source and the slave mode*/ - tmpsmcr |= (InputTriggerSource | TIM_SLAVEMODE_EXTERNAL1); - /* Write to TIMx SMCR */ - TIMx->SMCR = tmpsmcr; -} -/** - * @brief Configures the TIMx External Trigger (ETR). - * @param TIMx to select the TIM peripheral - * @param TIM_ExtTRGPrescaler The external Trigger Prescaler. - * This parameter can be one of the following values: - * @arg TIM_ETRPRESCALER_DIV1: ETRP Prescaler OFF. - * @arg TIM_ETRPRESCALER_DIV2: ETRP frequency divided by 2. - * @arg TIM_ETRPRESCALER_DIV4: ETRP frequency divided by 4. - * @arg TIM_ETRPRESCALER_DIV8: ETRP frequency divided by 8. - * @param TIM_ExtTRGPolarity The external Trigger Polarity. - * This parameter can be one of the following values: - * @arg TIM_ETRPOLARITY_INVERTED: active low or falling edge active. - * @arg TIM_ETRPOLARITY_NONINVERTED: active high or rising edge active. - * @param ExtTRGFilter External Trigger Filter. - * 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) -{ - uint32_t tmpsmcr; - - tmpsmcr = TIMx->SMCR; - - /* Reset the ETR Bits */ - tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP); - - /* Set the Prescaler, the Filter value and the Polarity */ - tmpsmcr |= (uint32_t)(TIM_ExtTRGPrescaler | (TIM_ExtTRGPolarity | (ExtTRGFilter << 8U))); - - /* Write to TIMx SMCR */ - TIMx->SMCR = tmpsmcr; -} - -/** - * @brief Enables or disables the TIM Capture Compare Channel x. - * @param TIMx to select the TIM peripheral - * @param Channel specifies the TIM Channel - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 - * @arg TIM_CHANNEL_2: TIM Channel 2 - * @arg TIM_CHANNEL_3: TIM Channel 3 - * @arg TIM_CHANNEL_4: TIM Channel 4 - * @arg TIM_CHANNEL_5: TIM Channel 5 selected - * @arg TIM_CHANNEL_6: TIM Channel 6 selected - * @param ChannelState specifies the TIM Channel CCxE bit new state. - * This parameter can be: TIM_CCx_ENABLE or TIM_CCx_DISABLE. - * @retval None - */ -void TIM_CCxChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelState) -{ - uint32_t tmp; - - /* Check the parameters */ - assert_param(IS_TIM_CC1_INSTANCE(TIMx)); - assert_param(IS_TIM_CHANNELS(Channel)); - - tmp = TIM_CCER_CC1E << (Channel & 0x1FU); /* 0x1FU = 31 bits max shift */ - - /* Reset the CCxE Bit */ - TIMx->CCER &= ~tmp; - - /* Set or reset the CCxE Bit */ - TIMx->CCER |= (uint32_t)(ChannelState << (Channel & 0x1FU)); /* 0x1FU = 31 bits max shift */ -} - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) -/** - * @brief Reset interrupt callbacks to the legacy weak callbacks. - * @param htim pointer to a TIM_HandleTypeDef structure that contains - * the configuration information for TIM module. - * @retval None - */ -void TIM_ResetCallback(TIM_HandleTypeDef *htim) -{ - /* Reset the TIM callback to the legacy weak callbacks */ - htim->PeriodElapsedCallback = HAL_TIM_PeriodElapsedCallback; - htim->PeriodElapsedHalfCpltCallback = HAL_TIM_PeriodElapsedHalfCpltCallback; - htim->TriggerCallback = HAL_TIM_TriggerCallback; - htim->TriggerHalfCpltCallback = HAL_TIM_TriggerHalfCpltCallback; - htim->IC_CaptureCallback = HAL_TIM_IC_CaptureCallback; - htim->IC_CaptureHalfCpltCallback = HAL_TIM_IC_CaptureHalfCpltCallback; - htim->OC_DelayElapsedCallback = HAL_TIM_OC_DelayElapsedCallback; - htim->PWM_PulseFinishedCallback = HAL_TIM_PWM_PulseFinishedCallback; - htim->PWM_PulseFinishedHalfCpltCallback = HAL_TIM_PWM_PulseFinishedHalfCpltCallback; - htim->ErrorCallback = HAL_TIM_ErrorCallback; - htim->CommutationCallback = HAL_TIMEx_CommutCallback; - htim->CommutationHalfCpltCallback = HAL_TIMEx_CommutHalfCpltCallback; - htim->BreakCallback = HAL_TIMEx_BreakCallback; - htim->Break2Callback = HAL_TIMEx_Break2Callback; -} -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - -/** - * @} - */ - -#endif /* HAL_TIM_MODULE_ENABLED */ -/** - * @} - */ - -/** - * @} - */ diff --git a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c b/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c deleted file mode 100644 index ad4cbee..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c +++ /dev/null @@ -1,2947 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_tim_ex.c - * @author MCD Application Team - * @brief TIM HAL module driver. - * This file provides firmware functions to manage the following - * functionalities of the Timer Extended peripheral: - * + Time Hall Sensor Interface Initialization - * + Time Hall Sensor Interface Start - * + Time Complementary signal break and dead time configuration - * + Time Master and Slave synchronization configuration - * + Time Output Compare/PWM Channel Configuration (for channels 5 and 6) - * + Timer remapping capabilities configuration - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - @verbatim - ============================================================================== - ##### TIMER Extended features ##### - ============================================================================== - [..] - The Timer Extended features include: - (#) Complementary outputs with programmable dead-time for : - (++) Output Compare - (++) PWM generation (Edge and Center-aligned Mode) - (++) One-pulse mode output - (#) Synchronization circuit to control the timer with external signals and to - interconnect several timers together. - (#) Break input to put the timer output signals in reset state or in a known state. - (#) Supports incremental (quadrature) encoder and hall-sensor circuitry for - positioning purposes - - ##### How to use this driver ##### - ============================================================================== - [..] - (#) Initialize the TIM low level resources by implementing the following functions - depending on the selected feature: - (++) Hall Sensor output : HAL_TIMEx_HallSensor_MspInit() - - (#) Initialize the TIM low level resources : - (##) Enable the TIM interface clock using __HAL_RCC_TIMx_CLK_ENABLE(); - (##) TIM pins configuration - (+++) Enable the clock for the TIM GPIOs using the following function: - __HAL_RCC_GPIOx_CLK_ENABLE(); - (+++) Configure these TIM pins in Alternate function mode using HAL_GPIO_Init(); - - (#) The external Clock can be configured, if needed (the default clock is the - internal clock from the APBx), using the following function: - HAL_TIM_ConfigClockSource, the clock configuration should be done before - any start function. - - (#) Configure the TIM in the desired functioning mode using one of the - initialization function of this driver: - (++) HAL_TIMEx_HallSensor_Init() and HAL_TIMEx_ConfigCommutEvent(): to use the - Timer Hall Sensor Interface and the commutation event with the corresponding - Interrupt and DMA request if needed (Note that One Timer is used to interface - with the Hall sensor Interface and another Timer should be used to use - the commutation event). - - (#) Activate the TIM peripheral using one of the start functions: - (++) Complementary Output Compare : HAL_TIMEx_OCN_Start(), HAL_TIMEx_OCN_Start_DMA(), - HAL_TIMEx_OCN_Start_IT() - (++) Complementary PWM generation : HAL_TIMEx_PWMN_Start(), HAL_TIMEx_PWMN_Start_DMA(), - HAL_TIMEx_PWMN_Start_IT() - (++) Complementary One-pulse mode output : HAL_TIMEx_OnePulseN_Start(), HAL_TIMEx_OnePulseN_Start_IT() - (++) Hall Sensor output : HAL_TIMEx_HallSensor_Start(), HAL_TIMEx_HallSensor_Start_DMA(), - HAL_TIMEx_HallSensor_Start_IT(). - - @endverbatim - ****************************************************************************** - */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @defgroup TIMEx TIMEx - * @brief TIM Extended HAL module driver - * @{ - */ - -#ifdef HAL_TIM_MODULE_ENABLED - -/* Private typedef -----------------------------------------------------------*/ -/* Private define ------------------------------------------------------------*/ -#if defined(TIM_BDTR_BKBID) -/* Private constants ---------------------------------------------------------*/ -/** @defgroup TIMEx_Private_Constants TIM Extended Private Constants - * @{ - */ -/* Timeout for break input rearm */ -#define TIM_BREAKINPUT_REARM_TIMEOUT 5UL /* 5 milliseconds */ -/** - * @} - */ -/* End of private constants --------------------------------------------------*/ - -#endif /* TIM_BDTR_BKBID */ -/* Private macros ------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private function prototypes -----------------------------------------------*/ -static void TIM_DMADelayPulseNCplt(DMA_HandleTypeDef *hdma); -static void TIM_DMAErrorCCxN(DMA_HandleTypeDef *hdma); -static void TIM_CCxNChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelNState); - -/* Exported functions --------------------------------------------------------*/ -/** @defgroup TIMEx_Exported_Functions TIM Extended Exported Functions - * @{ - */ - -/** @defgroup TIMEx_Exported_Functions_Group1 Extended Timer Hall Sensor functions - * @brief Timer Hall Sensor functions - * -@verbatim - ============================================================================== - ##### Timer Hall Sensor functions ##### - ============================================================================== - [..] - This section provides functions allowing to: - (+) Initialize and configure TIM HAL Sensor. - (+) De-initialize TIM HAL Sensor. - (+) Start the Hall Sensor Interface. - (+) Stop the Hall Sensor Interface. - (+) Start the Hall Sensor Interface and enable interrupts. - (+) Stop the Hall Sensor Interface and disable interrupts. - (+) Start the Hall Sensor Interface and enable DMA transfers. - (+) Stop the Hall Sensor Interface and disable DMA transfers. - -@endverbatim - * @{ - */ -/** - * @brief Initializes the TIM Hall Sensor Interface and initialize the associated handle. - * @note When the timer instance is initialized in Hall Sensor Interface mode, - * timer channels 1 and channel 2 are reserved and cannot be used for - * other purpose. - * @param htim TIM Hall Sensor Interface handle - * @param sConfig TIM Hall Sensor configuration structure - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_HallSensor_Init(TIM_HandleTypeDef *htim, const TIM_HallSensor_InitTypeDef *sConfig) -{ - TIM_OC_InitTypeDef OC_Config; - - /* Check the TIM handle allocation */ - if (htim == NULL) - { - return HAL_ERROR; - } - - /* Check the parameters */ - assert_param(IS_TIM_HALL_SENSOR_INTERFACE_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)); - assert_param(IS_TIM_IC_POLARITY(sConfig->IC1Polarity)); - assert_param(IS_TIM_PERIOD(htim, htim->Init.Period)); - assert_param(IS_TIM_IC_PRESCALER(sConfig->IC1Prescaler)); - assert_param(IS_TIM_IC_FILTER(sConfig->IC1Filter)); - - if (htim->State == HAL_TIM_STATE_RESET) - { - /* Allocate lock resource and initialize it */ - htim->Lock = HAL_UNLOCKED; - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - /* Reset interrupt callbacks to legacy week callbacks */ - TIM_ResetCallback(htim); - - if (htim->HallSensor_MspInitCallback == NULL) - { - htim->HallSensor_MspInitCallback = HAL_TIMEx_HallSensor_MspInit; - } - /* Init the low level hardware : GPIO, CLOCK, NVIC */ - htim->HallSensor_MspInitCallback(htim); -#else - /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */ - HAL_TIMEx_HallSensor_MspInit(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - - /* Set the TIM state */ - htim->State = HAL_TIM_STATE_BUSY; - - /* Configure the Time base in the Encoder Mode */ - TIM_Base_SetConfig(htim->Instance, &htim->Init); - - /* Configure the Channel 1 as Input Channel to interface with the three Outputs of the Hall sensor */ - TIM_TI1_SetConfig(htim->Instance, sConfig->IC1Polarity, TIM_ICSELECTION_TRC, sConfig->IC1Filter); - - /* Reset the IC1PSC Bits */ - htim->Instance->CCMR1 &= ~TIM_CCMR1_IC1PSC; - /* Set the IC1PSC value */ - htim->Instance->CCMR1 |= sConfig->IC1Prescaler; - - /* Enable the Hall sensor interface (XOR function of the three inputs) */ - htim->Instance->CR2 |= TIM_CR2_TI1S; - - /* Select the TIM_TS_TI1F_ED signal as Input trigger for the TIM */ - htim->Instance->SMCR &= ~TIM_SMCR_TS; - htim->Instance->SMCR |= TIM_TS_TI1F_ED; - - /* Use the TIM_TS_TI1F_ED signal to reset the TIM counter each edge detection */ - htim->Instance->SMCR &= ~TIM_SMCR_SMS; - htim->Instance->SMCR |= TIM_SLAVEMODE_RESET; - - /* Program channel 2 in PWM 2 mode with the desired Commutation_Delay*/ - OC_Config.OCFastMode = TIM_OCFAST_DISABLE; - OC_Config.OCIdleState = TIM_OCIDLESTATE_RESET; - OC_Config.OCMode = TIM_OCMODE_PWM2; - OC_Config.OCNIdleState = TIM_OCNIDLESTATE_RESET; - OC_Config.OCNPolarity = TIM_OCNPOLARITY_HIGH; - OC_Config.OCPolarity = TIM_OCPOLARITY_HIGH; - OC_Config.Pulse = sConfig->Commutation_Delay; - - TIM_OC2_SetConfig(htim->Instance, &OC_Config); - - /* Select OC2REF as trigger output on TRGO: write the MMS bits in the TIMx_CR2 - register to 101 */ - htim->Instance->CR2 &= ~TIM_CR2_MMS; - htim->Instance->CR2 |= TIM_TRGO_OC2REF; - - /* Initialize the DMA burst operation state */ - htim->DMABurstState = HAL_DMA_BURST_STATE_READY; - - /* Initialize the TIM channels state */ - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - - /* Initialize the TIM state*/ - htim->State = HAL_TIM_STATE_READY; - - return HAL_OK; -} - -/** - * @brief DeInitializes the TIM Hall Sensor interface - * @param htim TIM Hall Sensor Interface handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_HallSensor_DeInit(TIM_HandleTypeDef *htim) -{ - /* Check the parameters */ - assert_param(IS_TIM_INSTANCE(htim->Instance)); - - htim->State = HAL_TIM_STATE_BUSY; - - /* Disable the TIM Peripheral Clock */ - __HAL_TIM_DISABLE(htim); - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - if (htim->HallSensor_MspDeInitCallback == NULL) - { - htim->HallSensor_MspDeInitCallback = HAL_TIMEx_HallSensor_MspDeInit; - } - /* DeInit the low level hardware */ - htim->HallSensor_MspDeInitCallback(htim); -#else - /* DeInit the low level hardware: GPIO, CLOCK, NVIC */ - HAL_TIMEx_HallSensor_MspDeInit(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - - /* Change the DMA burst operation state */ - htim->DMABurstState = HAL_DMA_BURST_STATE_RESET; - - /* Change the TIM channels state */ - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_RESET); - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_RESET); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_RESET); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_RESET); - - /* Change TIM state */ - htim->State = HAL_TIM_STATE_RESET; - - /* Release Lock */ - __HAL_UNLOCK(htim); - - return HAL_OK; -} - -/** - * @brief Initializes the TIM Hall Sensor MSP. - * @param htim TIM Hall Sensor Interface handle - * @retval None - */ -__weak void HAL_TIMEx_HallSensor_MspInit(TIM_HandleTypeDef *htim) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(htim); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_TIMEx_HallSensor_MspInit could be implemented in the user file - */ -} - -/** - * @brief DeInitializes TIM Hall Sensor MSP. - * @param htim TIM Hall Sensor Interface handle - * @retval None - */ -__weak void HAL_TIMEx_HallSensor_MspDeInit(TIM_HandleTypeDef *htim) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(htim); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_TIMEx_HallSensor_MspDeInit could be implemented in the user file - */ -} - -/** - * @brief Starts the TIM Hall Sensor Interface. - * @param htim TIM Hall Sensor Interface handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start(TIM_HandleTypeDef *htim) -{ - uint32_t tmpsmcr; - HAL_TIM_ChannelStateTypeDef channel_1_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_1); - HAL_TIM_ChannelStateTypeDef channel_2_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_2); - HAL_TIM_ChannelStateTypeDef complementary_channel_1_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_1); - HAL_TIM_ChannelStateTypeDef complementary_channel_2_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_2); - - /* Check the parameters */ - assert_param(IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE(htim->Instance)); - - /* Check the TIM channels state */ - if ((channel_1_state != HAL_TIM_CHANNEL_STATE_READY) - || (channel_2_state != HAL_TIM_CHANNEL_STATE_READY) - || (complementary_channel_1_state != HAL_TIM_CHANNEL_STATE_READY) - || (complementary_channel_2_state != HAL_TIM_CHANNEL_STATE_READY)) - { - return HAL_ERROR; - } - - /* Set the TIM channels state */ - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - - /* Enable the Input Capture channel 1 - (in the Hall Sensor Interface the three possible channels that can be used are TIM_CHANNEL_1, - TIM_CHANNEL_2 and TIM_CHANNEL_3) */ - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); - - /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ - if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - { - tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; - if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - { - __HAL_TIM_ENABLE(htim); - } - } - else - { - __HAL_TIM_ENABLE(htim); - } - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Stops the TIM Hall sensor Interface. - * @param htim TIM Hall Sensor Interface handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop(TIM_HandleTypeDef *htim) -{ - /* Check the parameters */ - assert_param(IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE(htim->Instance)); - - /* Disable the Input Capture channels 1, 2 and 3 - (in the Hall Sensor Interface the three possible channels that can be used are TIM_CHANNEL_1, - TIM_CHANNEL_2 and TIM_CHANNEL_3) */ - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); - - /* Disable the Peripheral */ - __HAL_TIM_DISABLE(htim); - - /* Set the TIM channels state */ - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Starts the TIM Hall Sensor Interface in interrupt mode. - * @param htim TIM Hall Sensor Interface handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start_IT(TIM_HandleTypeDef *htim) -{ - uint32_t tmpsmcr; - HAL_TIM_ChannelStateTypeDef channel_1_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_1); - HAL_TIM_ChannelStateTypeDef channel_2_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_2); - HAL_TIM_ChannelStateTypeDef complementary_channel_1_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_1); - HAL_TIM_ChannelStateTypeDef complementary_channel_2_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_2); - - /* Check the parameters */ - assert_param(IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE(htim->Instance)); - - /* Check the TIM channels state */ - if ((channel_1_state != HAL_TIM_CHANNEL_STATE_READY) - || (channel_2_state != HAL_TIM_CHANNEL_STATE_READY) - || (complementary_channel_1_state != HAL_TIM_CHANNEL_STATE_READY) - || (complementary_channel_2_state != HAL_TIM_CHANNEL_STATE_READY)) - { - return HAL_ERROR; - } - - /* Set the TIM channels state */ - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - - /* Enable the capture compare Interrupts 1 event */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); - - /* Enable the Input Capture channel 1 - (in the Hall Sensor Interface the three possible channels that can be used are TIM_CHANNEL_1, - TIM_CHANNEL_2 and TIM_CHANNEL_3) */ - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); - - /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ - if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - { - tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; - if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - { - __HAL_TIM_ENABLE(htim); - } - } - else - { - __HAL_TIM_ENABLE(htim); - } - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Stops the TIM Hall Sensor Interface in interrupt mode. - * @param htim TIM Hall Sensor Interface handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop_IT(TIM_HandleTypeDef *htim) -{ - /* Check the parameters */ - assert_param(IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE(htim->Instance)); - - /* Disable the Input Capture channel 1 - (in the Hall Sensor Interface the three possible channels that can be used are TIM_CHANNEL_1, - TIM_CHANNEL_2 and TIM_CHANNEL_3) */ - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); - - /* Disable the capture compare Interrupts event */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); - - /* Disable the Peripheral */ - __HAL_TIM_DISABLE(htim); - - /* Set the TIM channels state */ - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Starts the TIM Hall Sensor Interface in DMA mode. - * @param htim TIM Hall Sensor Interface handle - * @param pData The destination Buffer address. - * @param Length The length of data to be transferred from TIM peripheral to memory. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start_DMA(TIM_HandleTypeDef *htim, uint32_t *pData, uint16_t Length) -{ - uint32_t tmpsmcr; - HAL_TIM_ChannelStateTypeDef channel_1_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_1); - HAL_TIM_ChannelStateTypeDef complementary_channel_1_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_1); - - /* Check the parameters */ - assert_param(IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE(htim->Instance)); - - /* Set the TIM channel state */ - if ((channel_1_state == HAL_TIM_CHANNEL_STATE_BUSY) - || (complementary_channel_1_state == HAL_TIM_CHANNEL_STATE_BUSY)) - { - return HAL_BUSY; - } - else if ((channel_1_state == HAL_TIM_CHANNEL_STATE_READY) - && (complementary_channel_1_state == HAL_TIM_CHANNEL_STATE_READY)) - { - if ((pData == NULL) || (Length == 0U)) - { - return HAL_ERROR; - } - else - { - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - } - } - else - { - return HAL_ERROR; - } - - /* Enable the Input Capture channel 1 - (in the Hall Sensor Interface the three possible channels that can be used are TIM_CHANNEL_1, - TIM_CHANNEL_2 and TIM_CHANNEL_3) */ - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); - - /* Set the DMA Input Capture 1 Callbacks */ - htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMACaptureCplt; - htim->hdma[TIM_DMA_ID_CC1]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt; - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAError ; - - /* Enable the DMA stream for Capture 1*/ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)&htim->Instance->CCR1, (uint32_t)pData, Length) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - /* Enable the capture compare 1 Interrupt */ - __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC1); - - /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ - if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - { - tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; - if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - { - __HAL_TIM_ENABLE(htim); - } - } - else - { - __HAL_TIM_ENABLE(htim); - } - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Stops the TIM Hall Sensor Interface in DMA mode. - * @param htim TIM Hall Sensor Interface handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop_DMA(TIM_HandleTypeDef *htim) -{ - /* Check the parameters */ - assert_param(IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE(htim->Instance)); - - /* Disable the Input Capture channel 1 - (in the Hall Sensor Interface the three possible channels that can be used are TIM_CHANNEL_1, - TIM_CHANNEL_2 and TIM_CHANNEL_3) */ - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); - - - /* Disable the capture compare Interrupts 1 event */ - __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC1); - - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC1]); - - /* Disable the Peripheral */ - __HAL_TIM_DISABLE(htim); - - /* Set the TIM channel state */ - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - - /* Return function status */ - return HAL_OK; -} - -/** - * @} - */ - -/** @defgroup TIMEx_Exported_Functions_Group2 Extended Timer Complementary Output Compare functions - * @brief Timer Complementary Output Compare functions - * -@verbatim - ============================================================================== - ##### Timer Complementary Output Compare functions ##### - ============================================================================== - [..] - This section provides functions allowing to: - (+) Start the Complementary Output Compare/PWM. - (+) Stop the Complementary Output Compare/PWM. - (+) Start the Complementary Output Compare/PWM and enable interrupts. - (+) Stop the Complementary Output Compare/PWM and disable interrupts. - (+) Start the Complementary Output Compare/PWM and enable DMA transfers. - (+) Stop the Complementary Output Compare/PWM and disable DMA transfers. - -@endverbatim - * @{ - */ - -/** - * @brief Starts the TIM Output Compare signal generation on the complementary - * output. - * @param htim TIM Output Compare handle - * @param Channel TIM Channel to be enabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_OCN_Start(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - uint32_t tmpsmcr; - - /* Check the parameters */ - assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); - - /* Check the TIM complementary channel state */ - if (TIM_CHANNEL_N_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY) - { - return HAL_ERROR; - } - - /* Set the TIM complementary channel state */ - TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); - - /* Enable the Capture compare channel N */ - TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_ENABLE); - - /* Enable the Main Output */ - __HAL_TIM_MOE_ENABLE(htim); - - /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ - if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - { - tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; - if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - { - __HAL_TIM_ENABLE(htim); - } - } - else - { - __HAL_TIM_ENABLE(htim); - } - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Stops the TIM Output Compare signal generation on the complementary - * output. - * @param htim TIM handle - * @param Channel TIM Channel to be disabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_OCN_Stop(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - /* Check the parameters */ - assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); - - /* Disable the Capture compare channel N */ - TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_DISABLE); - - /* Disable the Main Output */ - __HAL_TIM_MOE_DISABLE(htim); - - /* Disable the Peripheral */ - __HAL_TIM_DISABLE(htim); - - /* Set the TIM complementary channel state */ - TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Starts the TIM Output Compare signal generation in interrupt mode - * on the complementary output. - * @param htim TIM OC handle - * @param Channel TIM Channel to be enabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_OCN_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - HAL_StatusTypeDef status = HAL_OK; - uint32_t tmpsmcr; - - /* Check the parameters */ - assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); - - /* Check the TIM complementary channel state */ - if (TIM_CHANNEL_N_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY) - { - return HAL_ERROR; - } - - /* Set the TIM complementary channel state */ - TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); - - switch (Channel) - { - case TIM_CHANNEL_1: - { - /* Enable the TIM Output Compare interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); - break; - } - - case TIM_CHANNEL_2: - { - /* Enable the TIM Output Compare interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); - break; - } - - case TIM_CHANNEL_3: - { - /* Enable the TIM Output Compare interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC3); - break; - } - - - default: - status = HAL_ERROR; - break; - } - - if (status == HAL_OK) - { - /* Enable the TIM Break interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_BREAK); - - /* Enable the Capture compare channel N */ - TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_ENABLE); - - /* Enable the Main Output */ - __HAL_TIM_MOE_ENABLE(htim); - - /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ - if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - { - tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; - if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - { - __HAL_TIM_ENABLE(htim); - } - } - else - { - __HAL_TIM_ENABLE(htim); - } - } - - /* Return function status */ - return status; -} - -/** - * @brief Stops the TIM Output Compare signal generation in interrupt mode - * on the complementary output. - * @param htim TIM Output Compare handle - * @param Channel TIM Channel to be disabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_OCN_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - HAL_StatusTypeDef status = HAL_OK; - uint32_t tmpccer; - - /* Check the parameters */ - assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); - - switch (Channel) - { - case TIM_CHANNEL_1: - { - /* Disable the TIM Output Compare interrupt */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); - break; - } - - case TIM_CHANNEL_2: - { - /* Disable the TIM Output Compare interrupt */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2); - break; - } - - case TIM_CHANNEL_3: - { - /* Disable the TIM Output Compare interrupt */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC3); - break; - } - - default: - status = HAL_ERROR; - break; - } - - if (status == HAL_OK) - { - /* Disable the Capture compare channel N */ - TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_DISABLE); - - /* Disable the TIM Break interrupt (only if no more channel is active) */ - tmpccer = htim->Instance->CCER; - if ((tmpccer & (TIM_CCER_CC1NE | TIM_CCER_CC2NE | TIM_CCER_CC3NE)) == (uint32_t)RESET) - { - __HAL_TIM_DISABLE_IT(htim, TIM_IT_BREAK); - } - - /* Disable the Main Output */ - __HAL_TIM_MOE_DISABLE(htim); - - /* Disable the Peripheral */ - __HAL_TIM_DISABLE(htim); - - /* Set the TIM complementary channel state */ - TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); - } - - /* Return function status */ - return status; -} - -/** - * @brief Starts the TIM Output Compare signal generation in DMA mode - * on the complementary output. - * @param htim TIM Output Compare handle - * @param Channel TIM Channel to be enabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @param pData The source Buffer address. - * @param Length The length of data to be transferred from memory to TIM peripheral - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_OCN_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, const uint32_t *pData, - uint16_t Length) -{ - HAL_StatusTypeDef status = HAL_OK; - uint32_t tmpsmcr; - - /* Check the parameters */ - assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); - - /* Set the TIM complementary channel state */ - if (TIM_CHANNEL_N_STATE_GET(htim, Channel) == HAL_TIM_CHANNEL_STATE_BUSY) - { - return HAL_BUSY; - } - else if (TIM_CHANNEL_N_STATE_GET(htim, Channel) == HAL_TIM_CHANNEL_STATE_READY) - { - if ((pData == NULL) || (Length == 0U)) - { - return HAL_ERROR; - } - else - { - TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); - } - } - else - { - return HAL_ERROR; - } - - switch (Channel) - { - case TIM_CHANNEL_1: - { - /* Set the DMA compare callbacks */ - htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMADelayPulseNCplt; - htim->hdma[TIM_DMA_ID_CC1]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAErrorCCxN ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)pData, (uint32_t)&htim->Instance->CCR1, - Length) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - /* Enable the TIM Output Compare DMA request */ - __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC1); - break; - } - - case TIM_CHANNEL_2: - { - /* Set the DMA compare callbacks */ - htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMADelayPulseNCplt; - htim->hdma[TIM_DMA_ID_CC2]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAErrorCCxN ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)pData, (uint32_t)&htim->Instance->CCR2, - Length) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - /* Enable the TIM Output Compare DMA request */ - __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC2); - break; - } - - case TIM_CHANNEL_3: - { - /* Set the DMA compare callbacks */ - htim->hdma[TIM_DMA_ID_CC3]->XferCpltCallback = TIM_DMADelayPulseNCplt; - htim->hdma[TIM_DMA_ID_CC3]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC3]->XferErrorCallback = TIM_DMAErrorCCxN ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC3], (uint32_t)pData, (uint32_t)&htim->Instance->CCR3, - Length) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - /* Enable the TIM Output Compare DMA request */ - __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC3); - break; - } - - default: - status = HAL_ERROR; - break; - } - - if (status == HAL_OK) - { - /* Enable the Capture compare channel N */ - TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_ENABLE); - - /* Enable the Main Output */ - __HAL_TIM_MOE_ENABLE(htim); - - /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ - if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - { - tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; - if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - { - __HAL_TIM_ENABLE(htim); - } - } - else - { - __HAL_TIM_ENABLE(htim); - } - } - - /* Return function status */ - return status; -} - -/** - * @brief Stops the TIM Output Compare signal generation in DMA mode - * on the complementary output. - * @param htim TIM Output Compare handle - * @param Channel TIM Channel to be disabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_OCN_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Check the parameters */ - assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); - - switch (Channel) - { - case TIM_CHANNEL_1: - { - /* Disable the TIM Output Compare DMA request */ - __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC1); - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC1]); - break; - } - - case TIM_CHANNEL_2: - { - /* Disable the TIM Output Compare DMA request */ - __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC2); - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC2]); - break; - } - - case TIM_CHANNEL_3: - { - /* Disable the TIM Output Compare DMA request */ - __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC3); - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC3]); - break; - } - - default: - status = HAL_ERROR; - break; - } - - if (status == HAL_OK) - { - /* Disable the Capture compare channel N */ - TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_DISABLE); - - /* Disable the Main Output */ - __HAL_TIM_MOE_DISABLE(htim); - - /* Disable the Peripheral */ - __HAL_TIM_DISABLE(htim); - - /* Set the TIM complementary channel state */ - TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); - } - - /* Return function status */ - return status; -} - -/** - * @} - */ - -/** @defgroup TIMEx_Exported_Functions_Group3 Extended Timer Complementary PWM functions - * @brief Timer Complementary PWM functions - * -@verbatim - ============================================================================== - ##### Timer Complementary PWM functions ##### - ============================================================================== - [..] - This section provides functions allowing to: - (+) Start the Complementary PWM. - (+) Stop the Complementary PWM. - (+) Start the Complementary PWM and enable interrupts. - (+) Stop the Complementary PWM and disable interrupts. - (+) Start the Complementary PWM and enable DMA transfers. - (+) Stop the Complementary PWM and disable DMA transfers. - (+) Start the Complementary Input Capture measurement. - (+) Stop the Complementary Input Capture. - (+) Start the Complementary Input Capture and enable interrupts. - (+) Stop the Complementary Input Capture and disable interrupts. - (+) Start the Complementary Input Capture and enable DMA transfers. - (+) Stop the Complementary Input Capture and disable DMA transfers. - (+) Start the Complementary One Pulse generation. - (+) Stop the Complementary One Pulse. - (+) Start the Complementary One Pulse and enable interrupts. - (+) Stop the Complementary One Pulse and disable interrupts. - -@endverbatim - * @{ - */ - -/** - * @brief Starts the PWM signal generation on the complementary output. - * @param htim TIM handle - * @param Channel TIM Channel to be enabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_PWMN_Start(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - uint32_t tmpsmcr; - - /* Check the parameters */ - assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); - - /* Check the TIM complementary channel state */ - if (TIM_CHANNEL_N_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY) - { - return HAL_ERROR; - } - - /* Set the TIM complementary channel state */ - TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); - - /* Enable the complementary PWM output */ - TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_ENABLE); - - /* Enable the Main Output */ - __HAL_TIM_MOE_ENABLE(htim); - - /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ - if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - { - tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; - if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - { - __HAL_TIM_ENABLE(htim); - } - } - else - { - __HAL_TIM_ENABLE(htim); - } - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Stops the PWM signal generation on the complementary output. - * @param htim TIM handle - * @param Channel TIM Channel to be disabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - /* Check the parameters */ - assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); - - /* Disable the complementary PWM output */ - TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_DISABLE); - - /* Disable the Main Output */ - __HAL_TIM_MOE_DISABLE(htim); - - /* Disable the Peripheral */ - __HAL_TIM_DISABLE(htim); - - /* Set the TIM complementary channel state */ - TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Starts the PWM signal generation in interrupt mode on the - * complementary output. - * @param htim TIM handle - * @param Channel TIM Channel to be disabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_PWMN_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - HAL_StatusTypeDef status = HAL_OK; - uint32_t tmpsmcr; - - /* Check the parameters */ - assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); - - /* Check the TIM complementary channel state */ - if (TIM_CHANNEL_N_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY) - { - return HAL_ERROR; - } - - /* Set the TIM complementary channel state */ - TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); - - switch (Channel) - { - case TIM_CHANNEL_1: - { - /* Enable the TIM Capture/Compare 1 interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); - break; - } - - case TIM_CHANNEL_2: - { - /* Enable the TIM Capture/Compare 2 interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); - break; - } - - case TIM_CHANNEL_3: - { - /* Enable the TIM Capture/Compare 3 interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC3); - break; - } - - default: - status = HAL_ERROR; - break; - } - - if (status == HAL_OK) - { - /* Enable the TIM Break interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_BREAK); - - /* Enable the complementary PWM output */ - TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_ENABLE); - - /* Enable the Main Output */ - __HAL_TIM_MOE_ENABLE(htim); - - /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ - if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - { - tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; - if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - { - __HAL_TIM_ENABLE(htim); - } - } - else - { - __HAL_TIM_ENABLE(htim); - } - } - - /* Return function status */ - return status; -} - -/** - * @brief Stops the PWM signal generation in interrupt mode on the - * complementary output. - * @param htim TIM handle - * @param Channel TIM Channel to be disabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - HAL_StatusTypeDef status = HAL_OK; - uint32_t tmpccer; - - /* Check the parameters */ - assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); - - switch (Channel) - { - case TIM_CHANNEL_1: - { - /* Disable the TIM Capture/Compare 1 interrupt */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); - break; - } - - case TIM_CHANNEL_2: - { - /* Disable the TIM Capture/Compare 2 interrupt */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2); - break; - } - - case TIM_CHANNEL_3: - { - /* Disable the TIM Capture/Compare 3 interrupt */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC3); - break; - } - - default: - status = HAL_ERROR; - break; - } - - if (status == HAL_OK) - { - /* Disable the complementary PWM output */ - TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_DISABLE); - - /* Disable the TIM Break interrupt (only if no more channel is active) */ - tmpccer = htim->Instance->CCER; - if ((tmpccer & (TIM_CCER_CC1NE | TIM_CCER_CC2NE | TIM_CCER_CC3NE)) == (uint32_t)RESET) - { - __HAL_TIM_DISABLE_IT(htim, TIM_IT_BREAK); - } - - /* Disable the Main Output */ - __HAL_TIM_MOE_DISABLE(htim); - - /* Disable the Peripheral */ - __HAL_TIM_DISABLE(htim); - - /* Set the TIM complementary channel state */ - TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); - } - - /* Return function status */ - return status; -} - -/** - * @brief Starts the TIM PWM signal generation in DMA mode on the - * complementary output - * @param htim TIM handle - * @param Channel TIM Channel to be enabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @param pData The source Buffer address. - * @param Length The length of data to be transferred from memory to TIM peripheral - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_PWMN_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, const uint32_t *pData, - uint16_t Length) -{ - HAL_StatusTypeDef status = HAL_OK; - uint32_t tmpsmcr; - - /* Check the parameters */ - assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); - - /* Set the TIM complementary channel state */ - if (TIM_CHANNEL_N_STATE_GET(htim, Channel) == HAL_TIM_CHANNEL_STATE_BUSY) - { - return HAL_BUSY; - } - else if (TIM_CHANNEL_N_STATE_GET(htim, Channel) == HAL_TIM_CHANNEL_STATE_READY) - { - if ((pData == NULL) || (Length == 0U)) - { - return HAL_ERROR; - } - else - { - TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); - } - } - else - { - return HAL_ERROR; - } - - switch (Channel) - { - case TIM_CHANNEL_1: - { - /* Set the DMA compare callbacks */ - htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMADelayPulseNCplt; - htim->hdma[TIM_DMA_ID_CC1]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAErrorCCxN ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)pData, (uint32_t)&htim->Instance->CCR1, - Length) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - /* Enable the TIM Capture/Compare 1 DMA request */ - __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC1); - break; - } - - case TIM_CHANNEL_2: - { - /* Set the DMA compare callbacks */ - htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMADelayPulseNCplt; - htim->hdma[TIM_DMA_ID_CC2]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAErrorCCxN ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)pData, (uint32_t)&htim->Instance->CCR2, - Length) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - /* Enable the TIM Capture/Compare 2 DMA request */ - __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC2); - break; - } - - case TIM_CHANNEL_3: - { - /* Set the DMA compare callbacks */ - htim->hdma[TIM_DMA_ID_CC3]->XferCpltCallback = TIM_DMADelayPulseNCplt; - htim->hdma[TIM_DMA_ID_CC3]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; - - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_CC3]->XferErrorCallback = TIM_DMAErrorCCxN ; - - /* Enable the DMA stream */ - if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC3], (uint32_t)pData, (uint32_t)&htim->Instance->CCR3, - Length) != HAL_OK) - { - /* Return error status */ - return HAL_ERROR; - } - /* Enable the TIM Capture/Compare 3 DMA request */ - __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC3); - break; - } - - default: - status = HAL_ERROR; - break; - } - - if (status == HAL_OK) - { - /* Enable the complementary PWM output */ - TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_ENABLE); - - /* Enable the Main Output */ - __HAL_TIM_MOE_ENABLE(htim); - - /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ - if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - { - tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; - if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - { - __HAL_TIM_ENABLE(htim); - } - } - else - { - __HAL_TIM_ENABLE(htim); - } - } - - /* Return function status */ - return status; -} - -/** - * @brief Stops the TIM PWM signal generation in DMA mode on the complementary - * output - * @param htim TIM handle - * @param Channel TIM Channel to be disabled - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Check the parameters */ - assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); - - switch (Channel) - { - case TIM_CHANNEL_1: - { - /* Disable the TIM Capture/Compare 1 DMA request */ - __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC1); - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC1]); - break; - } - - case TIM_CHANNEL_2: - { - /* Disable the TIM Capture/Compare 2 DMA request */ - __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC2); - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC2]); - break; - } - - case TIM_CHANNEL_3: - { - /* Disable the TIM Capture/Compare 3 DMA request */ - __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC3); - (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC3]); - break; - } - - default: - status = HAL_ERROR; - break; - } - - if (status == HAL_OK) - { - /* Disable the complementary PWM output */ - TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_DISABLE); - - /* Disable the Main Output */ - __HAL_TIM_MOE_DISABLE(htim); - - /* Disable the Peripheral */ - __HAL_TIM_DISABLE(htim); - - /* Set the TIM complementary channel state */ - TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); - } - - /* Return function status */ - return status; -} - -/** - * @} - */ - -/** @defgroup TIMEx_Exported_Functions_Group4 Extended Timer Complementary One Pulse functions - * @brief Timer Complementary One Pulse functions - * -@verbatim - ============================================================================== - ##### Timer Complementary One Pulse functions ##### - ============================================================================== - [..] - This section provides functions allowing to: - (+) Start the Complementary One Pulse generation. - (+) Stop the Complementary One Pulse. - (+) Start the Complementary One Pulse and enable interrupts. - (+) Stop the Complementary One Pulse and disable interrupts. - -@endverbatim - * @{ - */ - -/** - * @brief Starts the TIM One Pulse signal generation on the complementary - * output. - * @note OutputChannel must match the pulse output channel chosen when calling - * @ref HAL_TIM_OnePulse_ConfigChannel(). - * @param htim TIM One Pulse handle - * @param OutputChannel pulse output channel to enable - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Start(TIM_HandleTypeDef *htim, uint32_t OutputChannel) -{ - uint32_t input_channel = (OutputChannel == TIM_CHANNEL_1) ? TIM_CHANNEL_2 : TIM_CHANNEL_1; - HAL_TIM_ChannelStateTypeDef channel_1_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_1); - HAL_TIM_ChannelStateTypeDef channel_2_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_2); - HAL_TIM_ChannelStateTypeDef complementary_channel_1_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_1); - HAL_TIM_ChannelStateTypeDef complementary_channel_2_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_2); - - /* Check the parameters */ - assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, OutputChannel)); - - /* Check the TIM channels state */ - if ((channel_1_state != HAL_TIM_CHANNEL_STATE_READY) - || (channel_2_state != HAL_TIM_CHANNEL_STATE_READY) - || (complementary_channel_1_state != HAL_TIM_CHANNEL_STATE_READY) - || (complementary_channel_2_state != HAL_TIM_CHANNEL_STATE_READY)) - { - return HAL_ERROR; - } - - /* Set the TIM channels state */ - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - - /* Enable the complementary One Pulse output channel and the Input Capture channel */ - TIM_CCxNChannelCmd(htim->Instance, OutputChannel, TIM_CCxN_ENABLE); - TIM_CCxChannelCmd(htim->Instance, input_channel, TIM_CCx_ENABLE); - - /* Enable the Main Output */ - __HAL_TIM_MOE_ENABLE(htim); - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Stops the TIM One Pulse signal generation on the complementary - * output. - * @note OutputChannel must match the pulse output channel chosen when calling - * @ref HAL_TIM_OnePulse_ConfigChannel(). - * @param htim TIM One Pulse handle - * @param OutputChannel pulse output channel to disable - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Stop(TIM_HandleTypeDef *htim, uint32_t OutputChannel) -{ - uint32_t input_channel = (OutputChannel == TIM_CHANNEL_1) ? TIM_CHANNEL_2 : TIM_CHANNEL_1; - - /* Check the parameters */ - assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, OutputChannel)); - - /* Disable the complementary One Pulse output channel and the Input Capture channel */ - TIM_CCxNChannelCmd(htim->Instance, OutputChannel, TIM_CCxN_DISABLE); - TIM_CCxChannelCmd(htim->Instance, input_channel, TIM_CCx_DISABLE); - - /* Disable the Main Output */ - __HAL_TIM_MOE_DISABLE(htim); - - /* Disable the Peripheral */ - __HAL_TIM_DISABLE(htim); - - /* Set the TIM channels state */ - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Starts the TIM One Pulse signal generation in interrupt mode on the - * complementary channel. - * @note OutputChannel must match the pulse output channel chosen when calling - * @ref HAL_TIM_OnePulse_ConfigChannel(). - * @param htim TIM One Pulse handle - * @param OutputChannel pulse output channel to enable - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Start_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel) -{ - uint32_t input_channel = (OutputChannel == TIM_CHANNEL_1) ? TIM_CHANNEL_2 : TIM_CHANNEL_1; - HAL_TIM_ChannelStateTypeDef channel_1_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_1); - HAL_TIM_ChannelStateTypeDef channel_2_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_2); - HAL_TIM_ChannelStateTypeDef complementary_channel_1_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_1); - HAL_TIM_ChannelStateTypeDef complementary_channel_2_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_2); - - /* Check the parameters */ - assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, OutputChannel)); - - /* Check the TIM channels state */ - if ((channel_1_state != HAL_TIM_CHANNEL_STATE_READY) - || (channel_2_state != HAL_TIM_CHANNEL_STATE_READY) - || (complementary_channel_1_state != HAL_TIM_CHANNEL_STATE_READY) - || (complementary_channel_2_state != HAL_TIM_CHANNEL_STATE_READY)) - { - return HAL_ERROR; - } - - /* Set the TIM channels state */ - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - - /* Enable the TIM Capture/Compare 1 interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); - - /* Enable the TIM Capture/Compare 2 interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); - - /* Enable the complementary One Pulse output channel and the Input Capture channel */ - TIM_CCxNChannelCmd(htim->Instance, OutputChannel, TIM_CCxN_ENABLE); - TIM_CCxChannelCmd(htim->Instance, input_channel, TIM_CCx_ENABLE); - - /* Enable the Main Output */ - __HAL_TIM_MOE_ENABLE(htim); - - /* Return function status */ - return HAL_OK; -} - -/** - * @brief Stops the TIM One Pulse signal generation in interrupt mode on the - * complementary channel. - * @note OutputChannel must match the pulse output channel chosen when calling - * @ref HAL_TIM_OnePulse_ConfigChannel(). - * @param htim TIM One Pulse handle - * @param OutputChannel pulse output channel to disable - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 selected - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Stop_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel) -{ - uint32_t input_channel = (OutputChannel == TIM_CHANNEL_1) ? TIM_CHANNEL_2 : TIM_CHANNEL_1; - - /* Check the parameters */ - assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, OutputChannel)); - - /* Disable the TIM Capture/Compare 1 interrupt */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); - - /* Disable the TIM Capture/Compare 2 interrupt */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2); - - /* Disable the complementary One Pulse output channel and the Input Capture channel */ - TIM_CCxNChannelCmd(htim->Instance, OutputChannel, TIM_CCxN_DISABLE); - TIM_CCxChannelCmd(htim->Instance, input_channel, TIM_CCx_DISABLE); - - /* Disable the Main Output */ - __HAL_TIM_MOE_DISABLE(htim); - - /* Disable the Peripheral */ - __HAL_TIM_DISABLE(htim); - - /* Set the TIM channels state */ - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - - /* Return function status */ - return HAL_OK; -} - -/** - * @} - */ - -/** @defgroup TIMEx_Exported_Functions_Group5 Extended Peripheral Control functions - * @brief Peripheral Control functions - * -@verbatim - ============================================================================== - ##### Peripheral Control functions ##### - ============================================================================== - [..] - This section provides functions allowing to: - (+) Configure the commutation event in case of use of the Hall sensor interface. - (+) Configure Output channels for OC and PWM mode. - - (+) Configure Complementary channels, break features and dead time. - (+) Configure Master synchronization. - (+) Configure timer remapping capabilities. - (+) Select timer input source. - (+) Enable or disable channel grouping. - -@endverbatim - * @{ - */ - -/** - * @brief Configure the TIM commutation event sequence. - * @note This function is mandatory to use the commutation event in order to - * update the configuration at each commutation detection on the TRGI input of the Timer, - * the typical use of this feature is with the use of another Timer(interface Timer) - * configured in Hall sensor interface, this interface Timer will generate the - * commutation at its TRGO output (connected to Timer used in this function) each time - * the TI1 of the Interface Timer detect a commutation at its input TI1. - * @param htim TIM handle - * @param InputTrigger the Internal trigger corresponding to the Timer Interfacing with the Hall sensor - * This parameter can be one of the following values: - * @arg TIM_TS_ITR0: Internal trigger 0 selected - * @arg TIM_TS_ITR1: Internal trigger 1 selected - * @arg TIM_TS_ITR2: Internal trigger 2 selected - * @arg TIM_TS_ITR3: Internal trigger 3 selected - * @arg TIM_TS_ITR12: Internal trigger 12 selected (*) - * @arg TIM_TS_ITR13: Internal trigger 13 selected (*) - * @arg TIM_TS_NONE: No trigger is needed - * @param CommutationSource the Commutation Event source - * This parameter can be one of the following values: - * @arg TIM_COMMUTATION_TRGI: Commutation source is the TRGI of the Interface Timer - * @arg TIM_COMMUTATION_SOFTWARE: Commutation source is set by software using the COMG bit - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent(TIM_HandleTypeDef *htim, uint32_t InputTrigger, - uint32_t CommutationSource) -{ - /* Check the parameters */ - assert_param(IS_TIM_COMMUTATION_EVENT_INSTANCE(htim->Instance)); - assert_param(IS_TIM_INTERNAL_TRIGGEREVENT_SELECTION(InputTrigger)); - - __HAL_LOCK(htim); - - if ((InputTrigger == TIM_TS_ITR0) || (InputTrigger == TIM_TS_ITR1) || - (InputTrigger == TIM_TS_ITR2) || (InputTrigger == TIM_TS_ITR3) || - (InputTrigger == TIM_TS_ITR12) || (InputTrigger == TIM_TS_ITR13)) - { - /* Select the Input trigger */ - htim->Instance->SMCR &= ~TIM_SMCR_TS; - htim->Instance->SMCR |= InputTrigger; - } - - /* Select the Capture Compare preload feature */ - htim->Instance->CR2 |= TIM_CR2_CCPC; - /* Select the Commutation event source */ - htim->Instance->CR2 &= ~TIM_CR2_CCUS; - htim->Instance->CR2 |= CommutationSource; - - /* Disable Commutation Interrupt */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_COM); - - /* Disable Commutation DMA request */ - __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_COM); - - __HAL_UNLOCK(htim); - - return HAL_OK; -} - -/** - * @brief Configure the TIM commutation event sequence with interrupt. - * @note This function is mandatory to use the commutation event in order to - * update the configuration at each commutation detection on the TRGI input of the Timer, - * the typical use of this feature is with the use of another Timer(interface Timer) - * configured in Hall sensor interface, this interface Timer will generate the - * commutation at its TRGO output (connected to Timer used in this function) each time - * the TI1 of the Interface Timer detect a commutation at its input TI1. - * @param htim TIM handle - * @param InputTrigger the Internal trigger corresponding to the Timer Interfacing with the Hall sensor - * This parameter can be one of the following values: - * @arg TIM_TS_ITR0: Internal trigger 0 selected - * @arg TIM_TS_ITR1: Internal trigger 1 selected - * @arg TIM_TS_ITR2: Internal trigger 2 selected - * @arg TIM_TS_ITR3: Internal trigger 3 selected - * @arg TIM_TS_ITR2: Internal trigger 12 selected (*) - * @arg TIM_TS_ITR3: Internal trigger 13 selected (*) - * @arg TIM_TS_NONE: No trigger is needed - * @param CommutationSource the Commutation Event source - * This parameter can be one of the following values: - * @arg TIM_COMMUTATION_TRGI: Commutation source is the TRGI of the Interface Timer - * @arg TIM_COMMUTATION_SOFTWARE: Commutation source is set by software using the COMG bit - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent_IT(TIM_HandleTypeDef *htim, uint32_t InputTrigger, - uint32_t CommutationSource) -{ - /* Check the parameters */ - assert_param(IS_TIM_COMMUTATION_EVENT_INSTANCE(htim->Instance)); - assert_param(IS_TIM_INTERNAL_TRIGGEREVENT_SELECTION(InputTrigger)); - - __HAL_LOCK(htim); - - if ((InputTrigger == TIM_TS_ITR0) || (InputTrigger == TIM_TS_ITR1) || - (InputTrigger == TIM_TS_ITR2) || (InputTrigger == TIM_TS_ITR3) || - (InputTrigger == TIM_TS_ITR12) || (InputTrigger == TIM_TS_ITR13)) - { - /* Select the Input trigger */ - htim->Instance->SMCR &= ~TIM_SMCR_TS; - htim->Instance->SMCR |= InputTrigger; - } - - /* Select the Capture Compare preload feature */ - htim->Instance->CR2 |= TIM_CR2_CCPC; - /* Select the Commutation event source */ - htim->Instance->CR2 &= ~TIM_CR2_CCUS; - htim->Instance->CR2 |= CommutationSource; - - /* Disable Commutation DMA request */ - __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_COM); - - /* Enable the Commutation Interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_COM); - - __HAL_UNLOCK(htim); - - return HAL_OK; -} - -/** - * @brief Configure the TIM commutation event sequence with DMA. - * @note This function is mandatory to use the commutation event in order to - * update the configuration at each commutation detection on the TRGI input of the Timer, - * the typical use of this feature is with the use of another Timer(interface Timer) - * configured in Hall sensor interface, this interface Timer will generate the - * commutation at its TRGO output (connected to Timer used in this function) each time - * the TI1 of the Interface Timer detect a commutation at its input TI1. - * @note The user should configure the DMA in his own software, in This function only the COMDE bit is set - * @param htim TIM handle - * @param InputTrigger the Internal trigger corresponding to the Timer Interfacing with the Hall sensor - * This parameter can be one of the following values: - * @arg TIM_TS_ITR0: Internal trigger 0 selected - * @arg TIM_TS_ITR1: Internal trigger 1 selected - * @arg TIM_TS_ITR2: Internal trigger 2 selected - * @arg TIM_TS_ITR3: Internal trigger 3 selected - * @arg TIM_TS_ITR2: Internal trigger 12 selected (*) - * @arg TIM_TS_ITR3: Internal trigger 13 selected (*) - * @arg TIM_TS_NONE: No trigger is needed - * - * (*) Value not defined in all devices. - * - * @param CommutationSource the Commutation Event source - * This parameter can be one of the following values: - * @arg TIM_COMMUTATION_TRGI: Commutation source is the TRGI of the Interface Timer - * @arg TIM_COMMUTATION_SOFTWARE: Commutation source is set by software using the COMG bit - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent_DMA(TIM_HandleTypeDef *htim, uint32_t InputTrigger, - uint32_t CommutationSource) -{ - /* Check the parameters */ - assert_param(IS_TIM_COMMUTATION_EVENT_INSTANCE(htim->Instance)); - assert_param(IS_TIM_INTERNAL_TRIGGEREVENT_SELECTION(InputTrigger)); - - __HAL_LOCK(htim); - - if ((InputTrigger == TIM_TS_ITR0) || (InputTrigger == TIM_TS_ITR1) || - (InputTrigger == TIM_TS_ITR2) || (InputTrigger == TIM_TS_ITR3) || - (InputTrigger == TIM_TS_ITR12) || (InputTrigger == TIM_TS_ITR13)) - { - /* Select the Input trigger */ - htim->Instance->SMCR &= ~TIM_SMCR_TS; - htim->Instance->SMCR |= InputTrigger; - } - - /* Select the Capture Compare preload feature */ - htim->Instance->CR2 |= TIM_CR2_CCPC; - /* Select the Commutation event source */ - htim->Instance->CR2 &= ~TIM_CR2_CCUS; - htim->Instance->CR2 |= CommutationSource; - - /* Enable the Commutation DMA Request */ - /* Set the DMA Commutation Callback */ - htim->hdma[TIM_DMA_ID_COMMUTATION]->XferCpltCallback = TIMEx_DMACommutationCplt; - htim->hdma[TIM_DMA_ID_COMMUTATION]->XferHalfCpltCallback = TIMEx_DMACommutationHalfCplt; - /* Set the DMA error callback */ - htim->hdma[TIM_DMA_ID_COMMUTATION]->XferErrorCallback = TIM_DMAError; - - /* Disable Commutation Interrupt */ - __HAL_TIM_DISABLE_IT(htim, TIM_IT_COM); - - /* Enable the Commutation DMA Request */ - __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_COM); - - __HAL_UNLOCK(htim); - - return HAL_OK; -} - -/** - * @brief Configures the TIM in master mode. - * @param htim TIM handle. - * @param sMasterConfig pointer to a TIM_MasterConfigTypeDef structure that - * contains the selected trigger output (TRGO) and the Master/Slave - * mode. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim, - const TIM_MasterConfigTypeDef *sMasterConfig) -{ - uint32_t tmpcr2; - uint32_t tmpsmcr; - - /* Check the parameters */ - 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); - - /* Change the handler state */ - htim->State = HAL_TIM_STATE_BUSY; - - /* Get the TIMx CR2 register value */ - tmpcr2 = htim->Instance->CR2; - - /* Get the TIMx SMCR register value */ - tmpsmcr = htim->Instance->SMCR; - - /* If the timer supports ADC synchronization through TRGO2, set the master mode selection 2 */ - if (IS_TIM_TRGO2_INSTANCE(htim->Instance)) - { - /* Check the parameters */ - assert_param(IS_TIM_TRGO2_SOURCE(sMasterConfig->MasterOutputTrigger2)); - - /* Clear the MMS2 bits */ - tmpcr2 &= ~TIM_CR2_MMS2; - /* Select the TRGO2 source*/ - tmpcr2 |= sMasterConfig->MasterOutputTrigger2; - } - - /* Reset the MMS Bits */ - tmpcr2 &= ~TIM_CR2_MMS; - /* Select the TRGO source */ - tmpcr2 |= sMasterConfig->MasterOutputTrigger; - - /* Update TIMx CR2 */ - htim->Instance->CR2 = tmpcr2; - - if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - { - /* Reset the MSM Bit */ - tmpsmcr &= ~TIM_SMCR_MSM; - /* Set master mode */ - tmpsmcr |= sMasterConfig->MasterSlaveMode; - - /* Update TIMx SMCR */ - htim->Instance->SMCR = tmpsmcr; - } - - /* Change the htim state */ - htim->State = HAL_TIM_STATE_READY; - - __HAL_UNLOCK(htim); - - return HAL_OK; -} - -/** - * @brief Configures the Break feature, dead time, Lock level, OSSI/OSSR State - * and the AOE(automatic output enable). - * @param htim TIM handle - * @param sBreakDeadTimeConfig pointer to a TIM_ConfigBreakDeadConfigTypeDef structure that - * contains the BDTR Register configuration information for the TIM peripheral. - * @note Interrupts can be generated when an active level is detected on the - * break input, the break 2 input or the system break input. Break - * interrupt can be enabled by calling the @ref __HAL_TIM_ENABLE_IT macro. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_ConfigBreakDeadTime(TIM_HandleTypeDef *htim, - const TIM_BreakDeadTimeConfigTypeDef *sBreakDeadTimeConfig) -{ - /* Keep this variable initialized to 0 as it is used to configure BDTR register */ - uint32_t tmpbdtr = 0U; - - /* Check the parameters */ - assert_param(IS_TIM_BREAK_INSTANCE(htim->Instance)); - assert_param(IS_TIM_OSSR_STATE(sBreakDeadTimeConfig->OffStateRunMode)); - assert_param(IS_TIM_OSSI_STATE(sBreakDeadTimeConfig->OffStateIDLEMode)); - assert_param(IS_TIM_LOCK_LEVEL(sBreakDeadTimeConfig->LockLevel)); - assert_param(IS_TIM_DEADTIME(sBreakDeadTimeConfig->DeadTime)); - assert_param(IS_TIM_BREAK_STATE(sBreakDeadTimeConfig->BreakState)); - 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); - - /* 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); - MODIFY_REG(tmpbdtr, TIM_BDTR_LOCK, sBreakDeadTimeConfig->LockLevel); - MODIFY_REG(tmpbdtr, TIM_BDTR_OSSI, sBreakDeadTimeConfig->OffStateIDLEMode); - MODIFY_REG(tmpbdtr, TIM_BDTR_OSSR, sBreakDeadTimeConfig->OffStateRunMode); - MODIFY_REG(tmpbdtr, TIM_BDTR_BKE, sBreakDeadTimeConfig->BreakState); - MODIFY_REG(tmpbdtr, TIM_BDTR_BKP, sBreakDeadTimeConfig->BreakPolarity); - MODIFY_REG(tmpbdtr, TIM_BDTR_AOE, sBreakDeadTimeConfig->AutomaticOutput); - MODIFY_REG(tmpbdtr, TIM_BDTR_BKF, (sBreakDeadTimeConfig->BreakFilter << TIM_BDTR_BKF_Pos)); - -#if defined(TIM_BDTR_BKBID) - if (IS_TIM_ADVANCED_INSTANCE(htim->Instance)) - { - /* Check the parameters */ - assert_param(IS_TIM_BREAK_AFMODE(sBreakDeadTimeConfig->BreakAFMode)); - - /* Set BREAK AF mode */ - MODIFY_REG(tmpbdtr, TIM_BDTR_BKBID, sBreakDeadTimeConfig->BreakAFMode); - } - -#endif /* TIM_BDTR_BKBID */ - if (IS_TIM_BKIN2_INSTANCE(htim->Instance)) - { - /* Check the parameters */ - 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)); - MODIFY_REG(tmpbdtr, TIM_BDTR_BK2E, sBreakDeadTimeConfig->Break2State); - MODIFY_REG(tmpbdtr, TIM_BDTR_BK2P, sBreakDeadTimeConfig->Break2Polarity); -#if defined(TIM_BDTR_BKBID) - - if (IS_TIM_ADVANCED_INSTANCE(htim->Instance)) - { - /* Check the parameters */ - assert_param(IS_TIM_BREAK2_AFMODE(sBreakDeadTimeConfig->Break2AFMode)); - - /* Set BREAK2 AF mode */ - MODIFY_REG(tmpbdtr, TIM_BDTR_BK2BID, sBreakDeadTimeConfig->Break2AFMode); - } -#endif /* TIM_BDTR_BKBID */ - } - - /* Set TIMx_BDTR */ - htim->Instance->BDTR = tmpbdtr; - - __HAL_UNLOCK(htim); - - return HAL_OK; -} -#if defined(TIM_BREAK_INPUT_SUPPORT) - -/** - * @brief Configures the break input source. - * @param htim TIM handle. - * @param BreakInput Break input to configure - * This parameter can be one of the following values: - * @arg TIM_BREAKINPUT_BRK: Timer break input - * @arg TIM_BREAKINPUT_BRK2: Timer break 2 input - * @param sBreakInputConfig Break input source configuration - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_ConfigBreakInput(TIM_HandleTypeDef *htim, - uint32_t BreakInput, - const TIMEx_BreakInputConfigTypeDef *sBreakInputConfig) - -{ - HAL_StatusTypeDef status = HAL_OK; - uint32_t tmporx; - uint32_t bkin_enable_mask; - uint32_t bkin_polarity_mask; - uint32_t bkin_enable_bitpos; - uint32_t bkin_polarity_bitpos; - - /* Check the parameters */ - assert_param(IS_TIM_BREAK_INSTANCE(htim->Instance)); - assert_param(IS_TIM_BREAKINPUT(BreakInput)); - assert_param(IS_TIM_BREAKINPUTSOURCE(sBreakInputConfig->Source)); - assert_param(IS_TIM_BREAKINPUTSOURCE_STATE(sBreakInputConfig->Enable)); - if (sBreakInputConfig->Source != TIM_BREAKINPUTSOURCE_DFSDM1) - { - assert_param(IS_TIM_BREAKINPUTSOURCE_POLARITY(sBreakInputConfig->Polarity)); - } - - /* Check input state */ - __HAL_LOCK(htim); - - switch (sBreakInputConfig->Source) - { - case TIM_BREAKINPUTSOURCE_BKIN: - { - bkin_enable_mask = TIM1_AF1_BKINE; - bkin_enable_bitpos = TIM1_AF1_BKINE_Pos; - bkin_polarity_mask = TIM1_AF1_BKINP; - bkin_polarity_bitpos = TIM1_AF1_BKINP_Pos; - break; - } - case TIM_BREAKINPUTSOURCE_COMP1: - { - bkin_enable_mask = TIM1_AF1_BKCMP1E; - bkin_enable_bitpos = TIM1_AF1_BKCMP1E_Pos; - bkin_polarity_mask = TIM1_AF1_BKCMP1P; - bkin_polarity_bitpos = TIM1_AF1_BKCMP1P_Pos; - break; - } - case TIM_BREAKINPUTSOURCE_COMP2: - { - bkin_enable_mask = TIM1_AF1_BKCMP2E; - bkin_enable_bitpos = TIM1_AF1_BKCMP2E_Pos; - bkin_polarity_mask = TIM1_AF1_BKCMP2P; - bkin_polarity_bitpos = TIM1_AF1_BKCMP2P_Pos; - break; - } - case TIM_BREAKINPUTSOURCE_DFSDM1: - { - bkin_enable_mask = TIM1_AF1_BKDF1BK0E; - bkin_enable_bitpos = TIM1_AF1_BKDF1BK0E_Pos; - bkin_polarity_mask = 0U; - bkin_polarity_bitpos = 0U; - break; - } - - default: - { - bkin_enable_mask = 0U; - bkin_polarity_mask = 0U; - bkin_enable_bitpos = 0U; - bkin_polarity_bitpos = 0U; - break; - } - } - - switch (BreakInput) - { - case TIM_BREAKINPUT_BRK: - { - /* Get the TIMx_AF1 register value */ - tmporx = htim->Instance->AF1; - - /* Enable the break input */ - tmporx &= ~bkin_enable_mask; - tmporx |= (sBreakInputConfig->Enable << bkin_enable_bitpos) & bkin_enable_mask; - - /* Set the break input polarity */ - if (sBreakInputConfig->Source != TIM_BREAKINPUTSOURCE_DFSDM1) - { - tmporx &= ~bkin_polarity_mask; - tmporx |= (sBreakInputConfig->Polarity << bkin_polarity_bitpos) & bkin_polarity_mask; - } - - /* Set TIMx_AF1 */ - htim->Instance->AF1 = tmporx; - break; - } - case TIM_BREAKINPUT_BRK2: - { - /* Get the TIMx_AF2 register value */ - tmporx = htim->Instance->AF2; - - /* Enable the break input */ - tmporx &= ~bkin_enable_mask; - tmporx |= (sBreakInputConfig->Enable << bkin_enable_bitpos) & bkin_enable_mask; - - /* Set the break input polarity */ - if (sBreakInputConfig->Source != TIM_BREAKINPUTSOURCE_DFSDM1) - { - tmporx &= ~bkin_polarity_mask; - tmporx |= (sBreakInputConfig->Polarity << bkin_polarity_bitpos) & bkin_polarity_mask; - } - - /* Set TIMx_AF2 */ - htim->Instance->AF2 = tmporx; - break; - } - default: - status = HAL_ERROR; - break; - } - - __HAL_UNLOCK(htim); - - return status; -} -#endif /*TIM_BREAK_INPUT_SUPPORT */ - -/** - * @brief Configures the TIMx Remapping input capabilities. - * @param htim TIM handle. - * @param Remap specifies the TIM remapping source. - * For TIM1, the parameter is one of the following values: - * @arg TIM_TIM1_ETR_GPIO: TIM1_ETR is connected to GPIO - * @arg TIM_TIM1_ETR_COMP1: TIM1_ETR is connected to COMP1 output - * @arg TIM_TIM1_ETR_COMP2: TIM1_ETR is connected to COMP2 output - * @arg TIM_TIM1_ETR_ADC1_AWD1: TIM1_ETR is connected to ADC1 AWD1 - * @arg TIM_TIM1_ETR_ADC1_AWD2: TIM1_ETR is connected to ADC1 AWD2 - * @arg TIM_TIM1_ETR_ADC1_AWD3: TIM1_ETR is connected to ADC1 AWD3 - * @arg TIM_TIM1_ETR_ADC3_AWD1: TIM1_ETR is connected to ADC3 AWD1 - * @arg TIM_TIM1_ETR_ADC3_AWD2: TIM1_ETR is connected to ADC3 AWD2 - * @arg TIM_TIM1_ETR_ADC3_AWD3: TIM1_ETR is connected to ADC3 AWD3 - * - * For TIM2, the parameter is one of the following values: - * @arg TIM_TIM2_ETR_GPIO: TIM2_ETR is connected to GPIO - * @arg TIM_TIM2_ETR_COMP1: TIM2_ETR is connected to COMP1 output - * @arg TIM_TIM2_ETR_COMP2: TIM2_ETR is connected to COMP2 output - * @arg TIM_TIM2_ETR_LSE: TIM2_ETR is connected to LSE - * @arg TIM_TIM2_ETR_SAI1_FSA: TIM2_ETR is connected to SAI1 FS_A - * @arg TIM_TIM2_ETR_SAI1_FSB: TIM2_ETR is connected to SAI1 FS_B - * - * For TIM3, the parameter is one of the following values: - * @arg TIM_TIM3_ETR_GPIO: TIM3_ETR is connected to GPIO - * @arg TIM_TIM3_ETR_COMP1: TIM3_ETR is connected to COMP1 output - * - * For TIM5, the parameter is one of the following values: - * @arg TIM_TIM5_ETR_GPIO: TIM5_ETR is connected to GPIO - * @arg TIM_TIM5_ETR_SAI2_FSA: TIM5_ETR is connected to SAI2 FS_A (*) - * @arg TIM_TIM5_ETR_SAI2_FSB: TIM5_ETR is connected to SAI2 FS_B (*) - * @arg TIM_TIM5_ETR_SAI4_FSA: TIM5_ETR is connected to SAI2 FS_A (*) - * @arg TIM_TIM5_ETR_SAI4_FSB: TIM5_ETR is connected to SAI2 FS_B (*) - * - * For TIM8, the parameter is one of the following values: - * @arg TIM_TIM8_ETR_GPIO: TIM8_ETR is connected to GPIO - * @arg TIM_TIM8_ETR_COMP1: TIM8_ETR is connected to COMP1 output - * @arg TIM_TIM8_ETR_COMP2: TIM8_ETR is connected to COMP2 output - * @arg TIM_TIM8_ETR_ADC2_AWD1: TIM8_ETR is connected to ADC2 AWD1 - * @arg TIM_TIM8_ETR_ADC2_AWD2: TIM8_ETR is connected to ADC2 AWD2 - * @arg TIM_TIM8_ETR_ADC2_AWD3: TIM8_ETR is connected to ADC2 AWD3 - * @arg TIM_TIM8_ETR_ADC3_AWD1: TIM8_ETR is connected to ADC3 AWD1 - * @arg TIM_TIM8_ETR_ADC3_AWD2: TIM8_ETR is connected to ADC3 AWD2 - * @arg TIM_TIM8_ETR_ADC3_AWD3: TIM8_ETR is connected to ADC3 AWD3 - * - * For TIM23, the parameter is one of the following values: (*) - * @arg TIM_TIM23_ETR_GPIO TIM23_ETR is connected to GPIO - * @arg TIM_TIM23_ETR_COMP1 TIM23_ETR is connected to COMP1 output - * @arg TIM_TIM23_ETR_COMP2 TIM23_ETR is connected to COMP2 output - * - * For TIM24, the parameter is one of the following values: (*) - * @arg TIM_TIM24_ETR_GPIO TIM24_ETR is connected to GPIO - * @arg TIM_TIM24_ETR_SAI4_FSA TIM24_ETR is connected to SAI4 FS_A - * @arg TIM_TIM24_ETR_SAI4_FSB TIM24_ETR is connected to SAI4 FS_B - * @arg TIM_TIM24_ETR_SAI1_FSA TIM24_ETR is connected to SAI1 FS_A - * @arg TIM_TIM24_ETR_SAI1_FSB TIM24_ETR is connected to SAI1 FS_B - * - * (*) Value not defined in all devices. - * - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_RemapConfig(TIM_HandleTypeDef *htim, uint32_t Remap) -{ - /* Check parameters */ - assert_param(IS_TIM_REMAP_INSTANCE(htim->Instance)); - assert_param(IS_TIM_REMAP(Remap)); - - __HAL_LOCK(htim); - - MODIFY_REG(htim->Instance->AF1, TIM1_AF1_ETRSEL_Msk, Remap); - - __HAL_UNLOCK(htim); - - return HAL_OK; -} - -/** - * @brief Select the timer input source - * @param htim TIM handle. - * @param Channel specifies the TIM Channel - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TI1 input channel - * @arg TIM_CHANNEL_2: TI2 input channel - * @arg TIM_CHANNEL_3: TIM Channel 3 - * @arg TIM_CHANNEL_4: TIM Channel 4 - * @param TISelection parameter of the TIM_TISelectionStruct structure is detailed as follows: - * For TIM1, the parameter is one of the following values: - * @arg TIM_TIM1_TI1_GPIO: TIM1 TI1 is connected to GPIO - * @arg TIM_TIM1_TI1_COMP1: TIM1 TI1 is connected to COMP1 output - * - * For TIM2, the parameter is one of the following values: - * @arg TIM_TIM2_TI4_GPIO: TIM2 TI4 is connected to GPIO - * @arg TIM_TIM2_TI4_COMP1: TIM2 TI4 is connected to COMP1 output - * @arg TIM_TIM2_TI4_COMP2: TIM2 TI4 is connected to COMP2 output - * @arg TIM_TIM2_TI4_COMP1_COMP2: TIM2 TI4 is connected to logical OR between COMP1 and COMP2 output - * - * For TIM3, the parameter is one of the following values: - * @arg TIM_TIM3_TI1_GPIO: TIM3 TI1 is connected to GPIO - * @arg TIM_TIM3_TI1_COMP1: TIM3 TI1 is connected to COMP1 output - * @arg TIM_TIM3_TI1_COMP2: TIM3 TI1 is connected to COMP2 output - * @arg TIM_TIM3_TI1_COMP1_COMP2: TIM3 TI1 is connected to logical OR between COMP1 and COMP2 output - * - * For TIM5, the parameter is one of the following values: - * @arg TIM_TIM5_TI1_GPIO: TIM5 TI1 is connected to GPIO - * @arg TIM_TIM5_TI1_CAN_TMP: TIM5 TI1 is connected to CAN TMP - * @arg TIM_TIM5_TI1_CAN_RTP: TIM5 TI1 is connected to CAN RTP - * - * For TIM8, the parameter is one of the following values: - * @arg TIM_TIM8_TI1_GPIO: TIM8 TI1 is connected to GPIO - * @arg TIM_TIM8_TI1_COMP2: TIM8 TI1 is connected to COMP2 output - * - * For TIM12, the parameter can have the following values: (*) - * @arg TIM_TIM12_TI1_GPIO: TIM12 TI1 is connected to GPIO - * @arg TIM_TIM12_TI1_SPDIF_FS: TIM12 TI1 is connected to SPDIF FS - * - * For TIM15, the parameter is one of the following values: - * @arg TIM_TIM15_TI1_GPIO: TIM15 TI1 is connected to GPIO - * @arg TIM_TIM15_TI1_TIM2: TIM15 TI1 is connected to TIM2 CH1 - * @arg TIM_TIM15_TI1_TIM3: TIM15 TI1 is connected to TIM3 CH1 - * @arg TIM_TIM15_TI1_TIM4: TIM15 TI1 is connected to TIM4 CH1 - * @arg TIM_TIM15_TI1_LSE: TIM15 TI1 is connected to LSE - * @arg TIM_TIM15_TI1_CSI: TIM15 TI1 is connected to CSI - * @arg TIM_TIM15_TI1_MCO2: TIM15 TI1 is connected to MCO2 - * @arg TIM_TIM15_TI2_GPIO: TIM15 TI2 is connected to GPIO - * @arg TIM_TIM15_TI2_TIM2: TIM15 TI2 is connected to TIM2 CH2 - * @arg TIM_TIM15_TI2_TIM3: TIM15 TI2 is connected to TIM3 CH2 - * @arg TIM_TIM15_TI2_TIM4: TIM15 TI2 is connected to TIM4 CH2 - * - * For TIM16, the parameter can have the following values: - * @arg TIM_TIM16_TI1_GPIO: TIM16 TI1 is connected to GPIO - * @arg TIM_TIM16_TI1_LSI: TIM16 TI1 is connected to LSI - * @arg TIM_TIM16_TI1_LSE: TIM16 TI1 is connected to LSE - * @arg TIM_TIM16_TI1_RTC: TIM16 TI1 is connected to RTC wakeup interrupt - * - * For TIM17, the parameter can have the following values: - * @arg TIM_TIM17_TI1_GPIO: TIM17 TI1 is connected to GPIO - * @arg TIM_TIM17_TI1_SPDIF_FS: TIM17 TI1 is connected to SPDIF FS (*) - * @arg TIM_TIM17_TI1_HSE_1MHZ: TIM17 TI1 is connected to HSE 1MHz - * @arg TIM_TIM17_TI1_MCO1: TIM17 TI1 is connected to MCO1 - * - * For TIM23, the parameter can have the following values: (*) - * @arg TIM_TIM23_TI4_GPIO TIM23_TI4 is connected to GPIO - * @arg TIM_TIM23_TI4_COMP1 TIM23_TI4 is connected to COMP1 output - * @arg TIM_TIM23_TI4_COMP2 TIM23_TI4 is connected to COMP2 output - * @arg TIM_TIM23_TI4_COMP1_COMP2 TIM23_TI4 is connected to COMP2 output - * - * For TIM24, the parameter can have the following values: (*) - * @arg TIM_TIM24_TI1_GPIO TIM24_TI1 is connected to GPIO - * @arg TIM_TIM24_TI1_CAN_TMP TIM24_TI1 is connected to CAN_TMP - * @arg TIM_TIM24_TI1_CAN_RTP TIM24_TI1 is connected to CAN_RTP - * @arg TIM_TIM24_TI1_CAN_SOC TIM24_TI1 is connected to CAN_SOC - * - * (*) Value not defined in all devices. \n - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_TISelection(TIM_HandleTypeDef *htim, uint32_t TISelection, uint32_t Channel) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Check parameters */ - assert_param(IS_TIM_TISEL_INSTANCE(htim->Instance)); - assert_param(IS_TIM_TISEL(TISelection)); - - __HAL_LOCK(htim); - - switch (Channel) - { - case TIM_CHANNEL_1: - MODIFY_REG(htim->Instance->TISEL, TIM_TISEL_TI1SEL, TISelection); - break; - case TIM_CHANNEL_2: - MODIFY_REG(htim->Instance->TISEL, TIM_TISEL_TI2SEL, TISelection); - break; - case TIM_CHANNEL_3: - MODIFY_REG(htim->Instance->TISEL, TIM_TISEL_TI3SEL, TISelection); - break; - case TIM_CHANNEL_4: - MODIFY_REG(htim->Instance->TISEL, TIM_TISEL_TI4SEL, TISelection); - break; - default: - status = HAL_ERROR; - break; - } - - __HAL_UNLOCK(htim); - - return status; -} - -/** - * @brief Group channel 5 and channel 1, 2 or 3 - * @param htim TIM handle. - * @param Channels specifies the reference signal(s) the OC5REF is combined with. - * This parameter can be any combination of the following values: - * TIM_GROUPCH5_NONE: No effect of OC5REF on OC1REFC, OC2REFC and OC3REFC - * TIM_GROUPCH5_OC1REFC: OC1REFC is the logical AND of OC1REFC and OC5REF - * TIM_GROUPCH5_OC2REFC: OC2REFC is the logical AND of OC2REFC and OC5REF - * TIM_GROUPCH5_OC3REFC: OC3REFC is the logical AND of OC3REFC and OC5REF - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_GroupChannel5(TIM_HandleTypeDef *htim, uint32_t Channels) -{ - /* Check parameters */ - assert_param(IS_TIM_COMBINED3PHASEPWM_INSTANCE(htim->Instance)); - assert_param(IS_TIM_GROUPCH5(Channels)); - - /* Process Locked */ - __HAL_LOCK(htim); - - htim->State = HAL_TIM_STATE_BUSY; - - /* Clear GC5Cx bit fields */ - htim->Instance->CCR5 &= ~(TIM_CCR5_GC5C3 | TIM_CCR5_GC5C2 | TIM_CCR5_GC5C1); - - /* Set GC5Cx bit fields */ - htim->Instance->CCR5 |= Channels; - - /* Change the htim state */ - htim->State = HAL_TIM_STATE_READY; - - __HAL_UNLOCK(htim); - - return HAL_OK; -} -#if defined(TIM_BDTR_BKBID) - -/** - * @brief Disarm the designated break input (when it operates in bidirectional mode). - * @param htim TIM handle. - * @param BreakInput Break input to disarm - * This parameter can be one of the following values: - * @arg TIM_BREAKINPUT_BRK: Timer break input - * @arg TIM_BREAKINPUT_BRK2: Timer break 2 input - * @note The break input can be disarmed only when it is configured in - * bidirectional mode and when when MOE is reset. - * @note Purpose is to be able to have the input voltage back to high-state, - * whatever the time constant on the output . - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_DisarmBreakInput(TIM_HandleTypeDef *htim, uint32_t BreakInput) -{ - HAL_StatusTypeDef status = HAL_OK; - uint32_t tmpbdtr; - - /* Check the parameters */ - assert_param(IS_TIM_ADVANCED_INSTANCE(htim->Instance)); - assert_param(IS_TIM_BREAKINPUT(BreakInput)); - - switch (BreakInput) - { - case TIM_BREAKINPUT_BRK: - { - /* Check initial conditions */ - tmpbdtr = READ_REG(htim->Instance->BDTR); - if ((READ_BIT(tmpbdtr, TIM_BDTR_BKBID) == TIM_BDTR_BKBID) && - (READ_BIT(tmpbdtr, TIM_BDTR_MOE) == 0U)) - { - /* Break input BRK is disarmed */ - SET_BIT(htim->Instance->BDTR, TIM_BDTR_BKDSRM); - } - break; - } - - case TIM_BREAKINPUT_BRK2: - { - /* Check initial conditions */ - tmpbdtr = READ_REG(htim->Instance->BDTR); - if ((READ_BIT(tmpbdtr, TIM_BDTR_BK2BID) == TIM_BDTR_BK2BID) && - (READ_BIT(tmpbdtr, TIM_BDTR_MOE) == 0U)) - { - /* Break input BRK is disarmed */ - SET_BIT(htim->Instance->BDTR, TIM_BDTR_BK2DSRM); - } - break; - } - default: - status = HAL_ERROR; - break; - } - - return status; -} - -/** - * @brief Arm the designated break input (when it operates in bidirectional mode). - * @param htim TIM handle. - * @param BreakInput Break input to arm - * This parameter can be one of the following values: - * @arg TIM_BREAKINPUT_BRK: Timer break input - * @arg TIM_BREAKINPUT_BRK2: Timer break 2 input - * @note Arming is possible at anytime, even if fault is present. - * @note Break input is automatically armed as soon as MOE bit is set. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_ReArmBreakInput(TIM_HandleTypeDef *htim, uint32_t BreakInput) -{ - HAL_StatusTypeDef status = HAL_OK; - uint32_t tickstart; - - /* Check the parameters */ - assert_param(IS_TIM_ADVANCED_INSTANCE(htim->Instance)); - assert_param(IS_TIM_BREAKINPUT(BreakInput)); - - switch (BreakInput) - { - case TIM_BREAKINPUT_BRK: - { - /* Check initial conditions */ - if (READ_BIT(htim->Instance->BDTR, TIM_BDTR_BKBID) == TIM_BDTR_BKBID) - { - /* Break input BRK is re-armed automatically by hardware. Poll to check whether fault condition disappeared */ - /* Init tickstart for timeout management */ - tickstart = HAL_GetTick(); - while (READ_BIT(htim->Instance->BDTR, TIM_BDTR_BKDSRM) != 0UL) - { - if ((HAL_GetTick() - tickstart) > TIM_BREAKINPUT_REARM_TIMEOUT) - { - /* New check to avoid false timeout detection in case of preemption */ - if (READ_BIT(htim->Instance->BDTR, TIM_BDTR_BKDSRM) != 0UL) - { - return HAL_TIMEOUT; - } - } - } - } - break; - } - - case TIM_BREAKINPUT_BRK2: - { - /* Check initial conditions */ - if (READ_BIT(htim->Instance->BDTR, TIM_BDTR_BK2BID) == TIM_BDTR_BK2BID) - { - /* Break input BRK2 is re-armed automatically by hardware. Poll to check whether fault condition disappeared */ - /* Init tickstart for timeout management */ - tickstart = HAL_GetTick(); - while (READ_BIT(htim->Instance->BDTR, TIM_BDTR_BK2DSRM) != 0UL) - { - if ((HAL_GetTick() - tickstart) > TIM_BREAKINPUT_REARM_TIMEOUT) - { - /* New check to avoid false timeout detection in case of preemption */ - if (READ_BIT(htim->Instance->BDTR, TIM_BDTR_BK2DSRM) != 0UL) - { - return HAL_TIMEOUT; - } - } - } - } - break; - } - default: - status = HAL_ERROR; - break; - } - - return status; -} -#endif /* TIM_BDTR_BKBID */ - -/** - * @} - */ - -/** @defgroup TIMEx_Exported_Functions_Group6 Extended Callbacks functions - * @brief Extended Callbacks functions - * -@verbatim - ============================================================================== - ##### Extended Callbacks functions ##### - ============================================================================== - [..] - This section provides Extended TIM callback functions: - (+) Timer Commutation callback - (+) Timer Break callback - -@endverbatim - * @{ - */ - -/** - * @brief Hall commutation changed callback in non-blocking mode - * @param htim TIM handle - * @retval None - */ -__weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim) -{ - /* Prevent unused argument(s) compilation warning */ - 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 - */ -} -/** - * @brief Hall commutation changed half complete callback in non-blocking mode - * @param htim TIM handle - * @retval None - */ -__weak void HAL_TIMEx_CommutHalfCpltCallback(TIM_HandleTypeDef *htim) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(htim); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_TIMEx_CommutHalfCpltCallback could be implemented in the user file - */ -} - -/** - * @brief Hall Break detection callback in non-blocking mode - * @param htim TIM handle - * @retval None - */ -__weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim) -{ - /* Prevent unused argument(s) compilation warning */ - 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 - */ -} - -/** - * @brief Hall Break2 detection callback in non blocking mode - * @param htim: TIM handle - * @retval None - */ -__weak void HAL_TIMEx_Break2Callback(TIM_HandleTypeDef *htim) -{ - /* Prevent unused argument(s) compilation warning */ - 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 - */ -} -/** - * @} - */ - -/** @defgroup TIMEx_Exported_Functions_Group7 Extended Peripheral State functions - * @brief Extended Peripheral State functions - * -@verbatim - ============================================================================== - ##### Extended Peripheral State functions ##### - ============================================================================== - [..] - This subsection permits to get in run-time the status of the peripheral - and the data flow. - -@endverbatim - * @{ - */ - -/** - * @brief Return the TIM Hall Sensor interface handle state. - * @param htim TIM Hall Sensor handle - * @retval HAL state - */ -HAL_TIM_StateTypeDef HAL_TIMEx_HallSensor_GetState(const TIM_HandleTypeDef *htim) -{ - return htim->State; -} - -/** - * @brief Return actual state of the TIM complementary channel. - * @param htim TIM handle - * @param ChannelN TIM Complementary channel - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 - * @arg TIM_CHANNEL_2: TIM Channel 2 - * @arg TIM_CHANNEL_3: TIM Channel 3 - * @retval TIM Complementary channel state - */ -HAL_TIM_ChannelStateTypeDef HAL_TIMEx_GetChannelNState(const TIM_HandleTypeDef *htim, uint32_t ChannelN) -{ - HAL_TIM_ChannelStateTypeDef channel_state; - - /* Check the parameters */ - assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, ChannelN)); - - channel_state = TIM_CHANNEL_N_STATE_GET(htim, ChannelN); - - return channel_state; -} -/** - * @} - */ - -/** - * @} - */ - -/* Private functions ---------------------------------------------------------*/ -/** @defgroup TIMEx_Private_Functions TIM Extended Private Functions - * @{ - */ - -/** - * @brief TIM DMA Commutation callback. - * @param hdma pointer to DMA handle. - * @retval None - */ -void TIMEx_DMACommutationCplt(DMA_HandleTypeDef *hdma) -{ - TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - - /* Change the htim state */ - htim->State = HAL_TIM_STATE_READY; - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->CommutationCallback(htim); -#else - HAL_TIMEx_CommutCallback(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ -} - -/** - * @brief TIM DMA Commutation half complete callback. - * @param hdma pointer to DMA handle. - * @retval None - */ -void TIMEx_DMACommutationHalfCplt(DMA_HandleTypeDef *hdma) -{ - TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - - /* Change the htim state */ - htim->State = HAL_TIM_STATE_READY; - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->CommutationHalfCpltCallback(htim); -#else - HAL_TIMEx_CommutHalfCpltCallback(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ -} - - -/** - * @brief TIM DMA Delay Pulse complete callback (complementary channel). - * @param hdma pointer to DMA handle. - * @retval None - */ -static void TIM_DMADelayPulseNCplt(DMA_HandleTypeDef *hdma) -{ - TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - - if (hdma == htim->hdma[TIM_DMA_ID_CC1]) - { - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; - - if (hdma->Init.Mode == DMA_NORMAL) - { - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - } - } - else if (hdma == htim->hdma[TIM_DMA_ID_CC2]) - { - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; - - if (hdma->Init.Mode == DMA_NORMAL) - { - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - } - } - else if (hdma == htim->hdma[TIM_DMA_ID_CC3]) - { - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; - - if (hdma->Init.Mode == DMA_NORMAL) - { - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_3, HAL_TIM_CHANNEL_STATE_READY); - } - } - else if (hdma == htim->hdma[TIM_DMA_ID_CC4]) - { - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; - - if (hdma->Init.Mode == DMA_NORMAL) - { - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_4, HAL_TIM_CHANNEL_STATE_READY); - } - } - else - { - /* nothing to do */ - } - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->PWM_PulseFinishedCallback(htim); -#else - HAL_TIM_PWM_PulseFinishedCallback(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; -} - -/** - * @brief TIM DMA error callback (complementary channel) - * @param hdma pointer to DMA handle. - * @retval None - */ -static void TIM_DMAErrorCCxN(DMA_HandleTypeDef *hdma) -{ - TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - - if (hdma == htim->hdma[TIM_DMA_ID_CC1]) - { - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - } - else if (hdma == htim->hdma[TIM_DMA_ID_CC2]) - { - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - } - else if (hdma == htim->hdma[TIM_DMA_ID_CC3]) - { - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_3, HAL_TIM_CHANNEL_STATE_READY); - } - else - { - /* nothing to do */ - } - -#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) - htim->ErrorCallback(htim); -#else - HAL_TIM_ErrorCallback(htim); -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - - htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; -} - -/** - * @brief Enables or disables the TIM Capture Compare Channel xN. - * @param TIMx to select the TIM peripheral - * @param Channel specifies the TIM Channel - * This parameter can be one of the following values: - * @arg TIM_CHANNEL_1: TIM Channel 1 - * @arg TIM_CHANNEL_2: TIM Channel 2 - * @arg TIM_CHANNEL_3: TIM Channel 3 - * @param ChannelNState specifies the TIM Channel CCxNE bit new state. - * This parameter can be: TIM_CCxN_ENABLE or TIM_CCxN_Disable. - * @retval None - */ -static void TIM_CCxNChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelNState) -{ - uint32_t tmp; - - tmp = TIM_CCER_CC1NE << (Channel & 0x1FU); /* 0x1FU = 31 bits max shift */ - - /* Reset the CCxNE Bit */ - TIMx->CCER &= ~tmp; - - /* Set or reset the CCxNE Bit */ - TIMx->CCER |= (uint32_t)(ChannelNState << (Channel & 0x1FU)); /* 0x1FU = 31 bits max shift */ -} -/** - * @} - */ - -#endif /* HAL_TIM_MODULE_ENABLED */ -/** - * @} - */ - -/** - * @} - */ diff --git a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c b/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c deleted file mode 100644 index 016d568..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c +++ /dev/null @@ -1,4722 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_uart.c - * @author MCD Application Team - * @brief UART HAL module driver. - * This file provides firmware functions to manage the following - * functionalities of the Universal Asynchronous Receiver Transmitter Peripheral (UART). - * + Initialization and de-initialization functions - * + IO operation functions - * + Peripheral Control functions - * - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - @verbatim - =============================================================================== - ##### How to use this driver ##### - =============================================================================== - [..] - The UART HAL driver can be used as follows: - - (#) Declare a UART_HandleTypeDef handle structure (eg. UART_HandleTypeDef huart). - (#) Initialize the UART low level resources by implementing the HAL_UART_MspInit() API: - (++) Enable the USARTx interface clock. - (++) UART pins configuration: - (+++) Enable the clock for the UART GPIOs. - (+++) Configure these UART pins as alternate function pull-up. - (++) NVIC configuration if you need to use interrupt process (HAL_UART_Transmit_IT() - and HAL_UART_Receive_IT() APIs): - (+++) Configure the USARTx interrupt priority. - (+++) Enable the NVIC USART IRQ handle. - (++) UART interrupts handling: - -@@- The specific UART interrupts (Transmission complete interrupt, - RXNE interrupt, RX/TX FIFOs related interrupts and Error Interrupts) - are managed using the macros __HAL_UART_ENABLE_IT() and __HAL_UART_DISABLE_IT() - inside the transmit and receive processes. - (++) DMA Configuration if you need to use DMA process (HAL_UART_Transmit_DMA() - and HAL_UART_Receive_DMA() APIs): - (+++) Declare a DMA handle structure for the Tx/Rx channel. - (+++) Enable the DMAx interface clock. - (+++) Configure the declared DMA handle structure with the required Tx/Rx parameters. - (+++) Configure the DMA Tx/Rx channel. - (+++) Associate the initialized DMA handle to the UART DMA Tx/Rx handle. - (+++) Configure the priority and enable the NVIC for the transfer complete - interrupt on the DMA Tx/Rx channel. - - (#) Program the Baud Rate, Word Length, Stop Bit, Parity, Prescaler value , Hardware - flow control and Mode (Receiver/Transmitter) in the huart handle Init structure. - - (#) If required, program UART advanced features (TX/RX pins swap, auto Baud rate detection,...) - in the huart handle AdvancedInit structure. - - (#) For the UART asynchronous mode, initialize the UART registers by calling - the HAL_UART_Init() API. - - (#) For the UART Half duplex mode, initialize the UART registers by calling - the HAL_HalfDuplex_Init() API. - - (#) For the UART LIN (Local Interconnection Network) mode, initialize the UART registers - by calling the HAL_LIN_Init() API. - - (#) For the UART Multiprocessor mode, initialize the UART registers - by calling the HAL_MultiProcessor_Init() API. - - (#) For the UART RS485 Driver Enabled mode, initialize the UART registers - by calling the HAL_RS485Ex_Init() API. - - [..] - (@) These API's (HAL_UART_Init(), HAL_HalfDuplex_Init(), HAL_LIN_Init(), HAL_MultiProcessor_Init(), - also configure the low level Hardware GPIO, CLOCK, CORTEX...etc) by - calling the customized HAL_UART_MspInit() API. - - ##### Callback registration ##### - ================================== - - [..] - The compilation define USE_HAL_UART_REGISTER_CALLBACKS when set to 1 - allows the user to configure dynamically the driver callbacks. - - [..] - Use Function HAL_UART_RegisterCallback() to register a user callback. - Function HAL_UART_RegisterCallback() allows to register following callbacks: - (+) TxHalfCpltCallback : Tx Half Complete Callback. - (+) TxCpltCallback : Tx Complete Callback. - (+) RxHalfCpltCallback : Rx Half Complete Callback. - (+) RxCpltCallback : Rx Complete Callback. - (+) ErrorCallback : Error Callback. - (+) AbortCpltCallback : Abort Complete Callback. - (+) AbortTransmitCpltCallback : Abort Transmit Complete Callback. - (+) AbortReceiveCpltCallback : Abort Receive Complete Callback. - (+) WakeupCallback : Wakeup Callback. - (+) RxFifoFullCallback : Rx Fifo Full Callback. - (+) TxFifoEmptyCallback : Tx Fifo Empty Callback. - (+) MspInitCallback : UART MspInit. - (+) MspDeInitCallback : UART MspDeInit. - This function takes as parameters the HAL peripheral handle, the Callback ID - and a pointer to the user callback function. - - [..] - Use function HAL_UART_UnRegisterCallback() to reset a callback to the default - weak (surcharged) function. - HAL_UART_UnRegisterCallback() takes as parameters the HAL peripheral handle, - and the Callback ID. - This function allows to reset following callbacks: - (+) TxHalfCpltCallback : Tx Half Complete Callback. - (+) TxCpltCallback : Tx Complete Callback. - (+) RxHalfCpltCallback : Rx Half Complete Callback. - (+) RxCpltCallback : Rx Complete Callback. - (+) ErrorCallback : Error Callback. - (+) AbortCpltCallback : Abort Complete Callback. - (+) AbortTransmitCpltCallback : Abort Transmit Complete Callback. - (+) AbortReceiveCpltCallback : Abort Receive Complete Callback. - (+) WakeupCallback : Wakeup Callback. - (+) RxFifoFullCallback : Rx Fifo Full Callback. - (+) TxFifoEmptyCallback : Tx Fifo Empty Callback. - (+) MspInitCallback : UART MspInit. - (+) MspDeInitCallback : UART MspDeInit. - - [..] - For specific callback RxEventCallback, use dedicated registration/reset functions: - respectively HAL_UART_RegisterRxEventCallback() , HAL_UART_UnRegisterRxEventCallback(). - - [..] - By default, after the HAL_UART_Init() and when the state is HAL_UART_STATE_RESET - all callbacks are set to the corresponding weak (surcharged) functions: - examples HAL_UART_TxCpltCallback(), HAL_UART_RxHalfCpltCallback(). - Exception done for MspInit and MspDeInit functions that are respectively - reset to the legacy weak (surcharged) functions in the HAL_UART_Init() - and HAL_UART_DeInit() only when these callbacks are null (not registered beforehand). - If not, MspInit or MspDeInit are not null, the HAL_UART_Init() and HAL_UART_DeInit() - keep and use the user MspInit/MspDeInit callbacks (registered beforehand). - - [..] - Callbacks can be registered/unregistered in HAL_UART_STATE_READY state only. - Exception done MspInit/MspDeInit that can be registered/unregistered - in HAL_UART_STATE_READY or HAL_UART_STATE_RESET state, thus registered (user) - MspInit/DeInit callbacks can be used during the Init/DeInit. - In that case first register the MspInit/MspDeInit user callbacks - using HAL_UART_RegisterCallback() before calling HAL_UART_DeInit() - or HAL_UART_Init() function. - - [..] - When The compilation define USE_HAL_UART_REGISTER_CALLBACKS is set to 0 or - not defined, the callback registration feature is not available - and weak (surcharged) callbacks are used. - - - @endverbatim - ****************************************************************************** - */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @defgroup UART UART - * @brief HAL UART module driver - * @{ - */ - -#ifdef HAL_UART_MODULE_ENABLED - -/* Private typedef -----------------------------------------------------------*/ -/* Private define ------------------------------------------------------------*/ -/** @defgroup UART_Private_Constants UART Private Constants - * @{ - */ -#define USART_CR1_FIELDS ((uint32_t)(USART_CR1_M | USART_CR1_PCE | USART_CR1_PS | USART_CR1_TE | USART_CR1_RE | \ - USART_CR1_OVER8 | USART_CR1_FIFOEN)) /*!< UART or USART CR1 fields of parameters set by UART_SetConfig API */ - -#define USART_CR3_FIELDS ((uint32_t)(USART_CR3_RTSE | USART_CR3_CTSE | USART_CR3_ONEBIT | USART_CR3_TXFTCFG | \ - USART_CR3_RXFTCFG)) /*!< UART or USART CR3 fields of parameters set by UART_SetConfig API */ - -#define LPUART_BRR_MIN 0x00000300U /* LPUART BRR minimum authorized value */ -#define LPUART_BRR_MAX 0x000FFFFFU /* LPUART BRR maximum authorized value */ - -#define UART_BRR_MIN 0x10U /* UART BRR minimum authorized value */ -#define UART_BRR_MAX 0x0000FFFFU /* UART BRR maximum authorized value */ -/** - * @} - */ - -/* Private macros ------------------------------------------------------------*/ -/* Private function prototypes -----------------------------------------------*/ -/** @addtogroup UART_Private_Functions - * @{ - */ -static void UART_EndTxTransfer(UART_HandleTypeDef *huart); -static void UART_EndRxTransfer(UART_HandleTypeDef *huart); -static void UART_DMATransmitCplt(DMA_HandleTypeDef *hdma); -static void UART_DMAReceiveCplt(DMA_HandleTypeDef *hdma); -static void UART_DMARxHalfCplt(DMA_HandleTypeDef *hdma); -static void UART_DMATxHalfCplt(DMA_HandleTypeDef *hdma); -static void UART_DMAError(DMA_HandleTypeDef *hdma); -static void UART_DMAAbortOnError(DMA_HandleTypeDef *hdma); -static void UART_DMATxAbortCallback(DMA_HandleTypeDef *hdma); -static void UART_DMARxAbortCallback(DMA_HandleTypeDef *hdma); -static void UART_DMATxOnlyAbortCallback(DMA_HandleTypeDef *hdma); -static void UART_DMARxOnlyAbortCallback(DMA_HandleTypeDef *hdma); -static void UART_TxISR_8BIT(UART_HandleTypeDef *huart); -static void UART_TxISR_16BIT(UART_HandleTypeDef *huart); -static void UART_TxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart); -static void UART_TxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart); -static void UART_EndTransmit_IT(UART_HandleTypeDef *huart); -static void UART_RxISR_8BIT(UART_HandleTypeDef *huart); -static void UART_RxISR_16BIT(UART_HandleTypeDef *huart); -static void UART_RxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart); -static void UART_RxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart); -/** - * @} - */ - -/* Private variables ---------------------------------------------------------*/ -/** @addtogroup UART_Private_variables - * @{ - */ -const uint16_t UARTPrescTable[12] = {1U, 2U, 4U, 6U, 8U, 10U, 12U, 16U, 32U, 64U, 128U, 256U}; -/** - * @} - */ - -/* Exported Constants --------------------------------------------------------*/ -/* Exported functions --------------------------------------------------------*/ - -/** @defgroup UART_Exported_Functions UART Exported Functions - * @{ - */ - -/** @defgroup UART_Exported_Functions_Group1 Initialization and de-initialization functions - * @brief Initialization and Configuration functions - * -@verbatim -=============================================================================== - ##### Initialization and Configuration functions ##### - =============================================================================== - [..] - This subsection provides a set of functions allowing to initialize the USARTx or the UARTy - in asynchronous mode. - (+) For the asynchronous mode the parameters below can be configured: - (++) Baud Rate - (++) Word Length - (++) Stop Bit - (++) Parity: If the parity is enabled, then the MSB bit of the data written - in the data register is transmitted but is changed by the parity bit. - (++) Hardware flow control - (++) Receiver/transmitter modes - (++) Over Sampling Method - (++) One-Bit Sampling Method - (+) For the asynchronous mode, the following advanced features can be configured as well: - (++) TX and/or RX pin level inversion - (++) data logical level inversion - (++) RX and TX pins swap - (++) RX overrun detection disabling - (++) DMA disabling on RX error - (++) MSB first on communication line - (++) auto Baud rate detection - [..] - The HAL_UART_Init(), HAL_HalfDuplex_Init(), HAL_LIN_Init()and HAL_MultiProcessor_Init()API - follow respectively the UART asynchronous, UART Half duplex, UART LIN mode - and UART multiprocessor mode configuration procedures (details for the procedures - are available in reference manual). - -@endverbatim - - Depending on the frame length defined by the M1 and M0 bits (7-bit, - 8-bit or 9-bit), the possible UART formats are listed in the - following table. - - Table 1. UART frame format. - +-----------------------------------------------------------------------+ - | M1 bit | M0 bit | PCE bit | UART frame | - |---------|---------|-----------|---------------------------------------| - | 0 | 0 | 0 | | SB | 8 bit data | STB | | - |---------|---------|-----------|---------------------------------------| - | 0 | 0 | 1 | | SB | 7 bit data | PB | STB | | - |---------|---------|-----------|---------------------------------------| - | 0 | 1 | 0 | | SB | 9 bit data | STB | | - |---------|---------|-----------|---------------------------------------| - | 0 | 1 | 1 | | SB | 8 bit data | PB | STB | | - |---------|---------|-----------|---------------------------------------| - | 1 | 0 | 0 | | SB | 7 bit data | STB | | - |---------|---------|-----------|---------------------------------------| - | 1 | 0 | 1 | | SB | 6 bit data | PB | STB | | - +-----------------------------------------------------------------------+ - - * @{ - */ - -/** - * @brief Initialize the UART mode according to the specified - * 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) -{ - /* Check the UART handle allocation */ - if (huart == NULL) - { - return HAL_ERROR; - } - - if (huart->Init.HwFlowCtl != UART_HWCONTROL_NONE) - { - /* Check the parameters */ - assert_param(IS_UART_HWFLOW_INSTANCE(huart->Instance)); - } - else - { - /* Check the parameters */ - assert_param((IS_UART_INSTANCE(huart->Instance)) || (IS_LPUART_INSTANCE(huart->Instance))); - } - - if (huart->gState == HAL_UART_STATE_RESET) - { - /* Allocate lock resource and initialize it */ - huart->Lock = HAL_UNLOCKED; - -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - UART_InitCallbacksToDefault(huart); - - if (huart->MspInitCallback == NULL) - { - huart->MspInitCallback = HAL_UART_MspInit; - } - - /* Init the low level hardware */ - huart->MspInitCallback(huart); -#else - /* Init the low level hardware : GPIO, CLOCK */ - HAL_UART_MspInit(huart); -#endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ - } - - huart->gState = HAL_UART_STATE_BUSY; - - __HAL_UART_DISABLE(huart); - - /* Set the UART Communication parameters */ - if (UART_SetConfig(huart) == HAL_ERROR) - { - return HAL_ERROR; - } - - if (huart->AdvancedInit.AdvFeatureInit != UART_ADVFEATURE_NO_INIT) - { - UART_AdvFeatureConfig(huart); - } - - /* 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)); - CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN)); - - __HAL_UART_ENABLE(huart); - - /* TEACK and/or REACK to check before moving huart->gState and huart->RxState to Ready */ - return (UART_CheckIdleState(huart)); -} - -/** - * @brief Initialize the half-duplex mode according to the specified - * parameters in the UART_InitTypeDef and creates the associated handle. - * @param huart UART handle. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_HalfDuplex_Init(UART_HandleTypeDef *huart) -{ - /* Check the UART handle allocation */ - if (huart == NULL) - { - return HAL_ERROR; - } - - /* Check UART instance */ - assert_param(IS_UART_HALFDUPLEX_INSTANCE(huart->Instance)); - - if (huart->gState == HAL_UART_STATE_RESET) - { - /* Allocate lock resource and initialize it */ - huart->Lock = HAL_UNLOCKED; - -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - UART_InitCallbacksToDefault(huart); - - if (huart->MspInitCallback == NULL) - { - huart->MspInitCallback = HAL_UART_MspInit; - } - - /* Init the low level hardware */ - huart->MspInitCallback(huart); -#else - /* Init the low level hardware : GPIO, CLOCK */ - HAL_UART_MspInit(huart); -#endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ - } - - huart->gState = HAL_UART_STATE_BUSY; - - __HAL_UART_DISABLE(huart); - - /* Set the UART Communication parameters */ - if (UART_SetConfig(huart) == HAL_ERROR) - { - return HAL_ERROR; - } - - if (huart->AdvancedInit.AdvFeatureInit != UART_ADVFEATURE_NO_INIT) - { - UART_AdvFeatureConfig(huart); - } - - /* In half-duplex mode, the following bits must be kept cleared: - - LINEN and CLKEN bits in the USART_CR2 register, - - SCEN and IREN bits in the USART_CR3 register.*/ - CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN)); - CLEAR_BIT(huart->Instance->CR3, (USART_CR3_IREN | USART_CR3_SCEN)); - - /* Enable the Half-Duplex mode by setting the HDSEL bit in the CR3 register */ - SET_BIT(huart->Instance->CR3, USART_CR3_HDSEL); - - __HAL_UART_ENABLE(huart); - - /* TEACK and/or REACK to check before moving huart->gState and huart->RxState to Ready */ - return (UART_CheckIdleState(huart)); -} - - -/** - * @brief Initialize the LIN mode according to the specified - * parameters in the UART_InitTypeDef and creates the associated handle. - * @param huart UART handle. - * @param BreakDetectLength Specifies the LIN break detection length. - * This parameter can be one of the following values: - * @arg @ref UART_LINBREAKDETECTLENGTH_10B 10-bit break detection - * @arg @ref UART_LINBREAKDETECTLENGTH_11B 11-bit break detection - * @retval HAL status - */ -HAL_StatusTypeDef HAL_LIN_Init(UART_HandleTypeDef *huart, uint32_t BreakDetectLength) -{ - /* Check the UART handle allocation */ - if (huart == NULL) - { - return HAL_ERROR; - } - - /* Check the LIN UART instance */ - assert_param(IS_UART_LIN_INSTANCE(huart->Instance)); - /* Check the Break detection length parameter */ - assert_param(IS_UART_LIN_BREAK_DETECT_LENGTH(BreakDetectLength)); - - /* LIN mode limited to 16-bit oversampling only */ - if (huart->Init.OverSampling == UART_OVERSAMPLING_8) - { - return HAL_ERROR; - } - /* LIN mode limited to 8-bit data length */ - if (huart->Init.WordLength != UART_WORDLENGTH_8B) - { - return HAL_ERROR; - } - - if (huart->gState == HAL_UART_STATE_RESET) - { - /* Allocate lock resource and initialize it */ - huart->Lock = HAL_UNLOCKED; - -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - UART_InitCallbacksToDefault(huart); - - if (huart->MspInitCallback == NULL) - { - huart->MspInitCallback = HAL_UART_MspInit; - } - - /* Init the low level hardware */ - huart->MspInitCallback(huart); -#else - /* Init the low level hardware : GPIO, CLOCK */ - HAL_UART_MspInit(huart); -#endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ - } - - huart->gState = HAL_UART_STATE_BUSY; - - __HAL_UART_DISABLE(huart); - - /* Set the UART Communication parameters */ - if (UART_SetConfig(huart) == HAL_ERROR) - { - return HAL_ERROR; - } - - if (huart->AdvancedInit.AdvFeatureInit != UART_ADVFEATURE_NO_INIT) - { - UART_AdvFeatureConfig(huart); - } - - /* In LIN mode, the following bits must be kept cleared: - - LINEN and CLKEN bits in the USART_CR2 register, - - SCEN and IREN bits in the USART_CR3 register.*/ - CLEAR_BIT(huart->Instance->CR2, USART_CR2_CLKEN); - CLEAR_BIT(huart->Instance->CR3, (USART_CR3_HDSEL | USART_CR3_IREN | USART_CR3_SCEN)); - - /* Enable the LIN mode by setting the LINEN bit in the CR2 register */ - SET_BIT(huart->Instance->CR2, USART_CR2_LINEN); - - /* Set the USART LIN Break detection length. */ - MODIFY_REG(huart->Instance->CR2, USART_CR2_LBDL, BreakDetectLength); - - __HAL_UART_ENABLE(huart); - - /* TEACK and/or REACK to check before moving huart->gState and huart->RxState to Ready */ - return (UART_CheckIdleState(huart)); -} - - -/** - * @brief Initialize the multiprocessor mode according to the specified - * parameters in the UART_InitTypeDef and initialize the associated handle. - * @param huart UART handle. - * @param Address UART node address (4-, 6-, 7- or 8-bit long). - * @param WakeUpMethod Specifies the UART wakeup method. - * This parameter can be one of the following values: - * @arg @ref UART_WAKEUPMETHOD_IDLELINE WakeUp by an idle line detection - * @arg @ref UART_WAKEUPMETHOD_ADDRESSMARK WakeUp by an address mark - * @note If the user resorts to idle line detection wake up, the Address parameter - * is useless and ignored by the initialization function. - * @note If the user resorts to address mark wake up, the address length detection - * is configured by default to 4 bits only. For the UART to be able to - * manage 6-, 7- or 8-bit long addresses detection, the API - * HAL_MultiProcessorEx_AddressLength_Set() must be called after - * HAL_MultiProcessor_Init(). - * @retval HAL status - */ -HAL_StatusTypeDef HAL_MultiProcessor_Init(UART_HandleTypeDef *huart, uint8_t Address, uint32_t WakeUpMethod) -{ - /* Check the UART handle allocation */ - if (huart == NULL) - { - return HAL_ERROR; - } - - /* Check the wake up method parameter */ - assert_param(IS_UART_WAKEUPMETHOD(WakeUpMethod)); - - if (huart->gState == HAL_UART_STATE_RESET) - { - /* Allocate lock resource and initialize it */ - huart->Lock = HAL_UNLOCKED; - -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - UART_InitCallbacksToDefault(huart); - - if (huart->MspInitCallback == NULL) - { - huart->MspInitCallback = HAL_UART_MspInit; - } - - /* Init the low level hardware */ - huart->MspInitCallback(huart); -#else - /* Init the low level hardware : GPIO, CLOCK */ - HAL_UART_MspInit(huart); -#endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ - } - - huart->gState = HAL_UART_STATE_BUSY; - - __HAL_UART_DISABLE(huart); - - /* Set the UART Communication parameters */ - if (UART_SetConfig(huart) == HAL_ERROR) - { - return HAL_ERROR; - } - - if (huart->AdvancedInit.AdvFeatureInit != UART_ADVFEATURE_NO_INIT) - { - UART_AdvFeatureConfig(huart); - } - - /* In multiprocessor 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)); - CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN)); - - if (WakeUpMethod == UART_WAKEUPMETHOD_ADDRESSMARK) - { - /* If address mark wake up method is chosen, set the USART address node */ - MODIFY_REG(huart->Instance->CR2, USART_CR2_ADD, ((uint32_t)Address << UART_CR2_ADDRESS_LSB_POS)); - } - - /* Set the wake up method by setting the WAKE bit in the CR1 register */ - MODIFY_REG(huart->Instance->CR1, USART_CR1_WAKE, WakeUpMethod); - - __HAL_UART_ENABLE(huart); - - /* TEACK and/or REACK to check before moving huart->gState and huart->RxState to Ready */ - return (UART_CheckIdleState(huart)); -} - - -/** - * @brief DeInitialize the UART peripheral. - * @param huart UART handle. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UART_DeInit(UART_HandleTypeDef *huart) -{ - /* Check the UART handle allocation */ - if (huart == NULL) - { - return HAL_ERROR; - } - - /* Check the parameters */ - assert_param((IS_UART_INSTANCE(huart->Instance)) || (IS_LPUART_INSTANCE(huart->Instance))); - - huart->gState = HAL_UART_STATE_BUSY; - - __HAL_UART_DISABLE(huart); - - huart->Instance->CR1 = 0x0U; - huart->Instance->CR2 = 0x0U; - huart->Instance->CR3 = 0x0U; - -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - if (huart->MspDeInitCallback == NULL) - { - huart->MspDeInitCallback = HAL_UART_MspDeInit; - } - /* DeInit the low level hardware */ - huart->MspDeInitCallback(huart); -#else - /* DeInit the low level hardware */ - HAL_UART_MspDeInit(huart); -#endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ - - huart->ErrorCode = HAL_UART_ERROR_NONE; - huart->gState = HAL_UART_STATE_RESET; - huart->RxState = HAL_UART_STATE_RESET; - huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - huart->RxEventType = HAL_UART_RXEVENT_TC; - - __HAL_UNLOCK(huart); - - return HAL_OK; -} - -/** - * @brief Initialize the UART MSP. - * @param huart UART handle. - * @retval None - */ -__weak void HAL_UART_MspInit(UART_HandleTypeDef *huart) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(huart); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_UART_MspInit can be implemented in the user file - */ -} - -/** - * @brief DeInitialize the UART MSP. - * @param huart UART handle. - * @retval None - */ -__weak void HAL_UART_MspDeInit(UART_HandleTypeDef *huart) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(huart); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_UART_MspDeInit can be implemented in the user file - */ -} - -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) -/** - * @brief Register a User UART Callback - * To be used instead of the weak predefined callback - * @note The HAL_UART_RegisterCallback() may be called before HAL_UART_Init(), HAL_HalfDuplex_Init(), - * HAL_LIN_Init(), HAL_MultiProcessor_Init() or HAL_RS485Ex_Init() in HAL_UART_STATE_RESET to register - * callbacks for HAL_UART_MSPINIT_CB_ID and HAL_UART_MSPDEINIT_CB_ID - * @param huart uart handle - * @param CallbackID ID of the callback to be registered - * This parameter can be one of the following values: - * @arg @ref HAL_UART_TX_HALFCOMPLETE_CB_ID Tx Half Complete Callback ID - * @arg @ref HAL_UART_TX_COMPLETE_CB_ID Tx Complete Callback ID - * @arg @ref HAL_UART_RX_HALFCOMPLETE_CB_ID Rx Half Complete Callback ID - * @arg @ref HAL_UART_RX_COMPLETE_CB_ID Rx Complete Callback ID - * @arg @ref HAL_UART_ERROR_CB_ID Error Callback ID - * @arg @ref HAL_UART_ABORT_COMPLETE_CB_ID Abort Complete Callback ID - * @arg @ref HAL_UART_ABORT_TRANSMIT_COMPLETE_CB_ID Abort Transmit Complete Callback ID - * @arg @ref HAL_UART_ABORT_RECEIVE_COMPLETE_CB_ID Abort Receive Complete Callback ID - * @arg @ref HAL_UART_WAKEUP_CB_ID Wakeup Callback ID - * @arg @ref HAL_UART_RX_FIFO_FULL_CB_ID Rx Fifo Full Callback ID - * @arg @ref HAL_UART_TX_FIFO_EMPTY_CB_ID Tx Fifo Empty Callback ID - * @arg @ref HAL_UART_MSPINIT_CB_ID MspInit Callback ID - * @arg @ref HAL_UART_MSPDEINIT_CB_ID MspDeInit Callback ID - * @param pCallback pointer to the Callback function - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UART_RegisterCallback(UART_HandleTypeDef *huart, HAL_UART_CallbackIDTypeDef CallbackID, - pUART_CallbackTypeDef pCallback) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (pCallback == NULL) - { - huart->ErrorCode |= HAL_UART_ERROR_INVALID_CALLBACK; - - return HAL_ERROR; - } - - if (huart->gState == HAL_UART_STATE_READY) - { - switch (CallbackID) - { - case HAL_UART_TX_HALFCOMPLETE_CB_ID : - huart->TxHalfCpltCallback = pCallback; - break; - - case HAL_UART_TX_COMPLETE_CB_ID : - huart->TxCpltCallback = pCallback; - break; - - case HAL_UART_RX_HALFCOMPLETE_CB_ID : - huart->RxHalfCpltCallback = pCallback; - break; - - case HAL_UART_RX_COMPLETE_CB_ID : - huart->RxCpltCallback = pCallback; - break; - - case HAL_UART_ERROR_CB_ID : - huart->ErrorCallback = pCallback; - break; - - case HAL_UART_ABORT_COMPLETE_CB_ID : - huart->AbortCpltCallback = pCallback; - break; - - case HAL_UART_ABORT_TRANSMIT_COMPLETE_CB_ID : - huart->AbortTransmitCpltCallback = pCallback; - break; - - case HAL_UART_ABORT_RECEIVE_COMPLETE_CB_ID : - huart->AbortReceiveCpltCallback = pCallback; - break; - - case HAL_UART_WAKEUP_CB_ID : - huart->WakeupCallback = pCallback; - break; - - case HAL_UART_RX_FIFO_FULL_CB_ID : - huart->RxFifoFullCallback = pCallback; - break; - - case HAL_UART_TX_FIFO_EMPTY_CB_ID : - huart->TxFifoEmptyCallback = pCallback; - break; - - case HAL_UART_MSPINIT_CB_ID : - huart->MspInitCallback = pCallback; - break; - - case HAL_UART_MSPDEINIT_CB_ID : - huart->MspDeInitCallback = pCallback; - break; - - default : - huart->ErrorCode |= HAL_UART_ERROR_INVALID_CALLBACK; - - status = HAL_ERROR; - break; - } - } - else if (huart->gState == HAL_UART_STATE_RESET) - { - switch (CallbackID) - { - case HAL_UART_MSPINIT_CB_ID : - huart->MspInitCallback = pCallback; - break; - - case HAL_UART_MSPDEINIT_CB_ID : - huart->MspDeInitCallback = pCallback; - break; - - default : - huart->ErrorCode |= HAL_UART_ERROR_INVALID_CALLBACK; - - status = HAL_ERROR; - break; - } - } - else - { - huart->ErrorCode |= HAL_UART_ERROR_INVALID_CALLBACK; - - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief Unregister an UART Callback - * UART callaback is redirected to the weak predefined callback - * @note The HAL_UART_UnRegisterCallback() may be called before HAL_UART_Init(), HAL_HalfDuplex_Init(), - * HAL_LIN_Init(), HAL_MultiProcessor_Init() or HAL_RS485Ex_Init() in HAL_UART_STATE_RESET to un-register - * callbacks for HAL_UART_MSPINIT_CB_ID and HAL_UART_MSPDEINIT_CB_ID - * @param huart uart handle - * @param CallbackID ID of the callback to be unregistered - * This parameter can be one of the following values: - * @arg @ref HAL_UART_TX_HALFCOMPLETE_CB_ID Tx Half Complete Callback ID - * @arg @ref HAL_UART_TX_COMPLETE_CB_ID Tx Complete Callback ID - * @arg @ref HAL_UART_RX_HALFCOMPLETE_CB_ID Rx Half Complete Callback ID - * @arg @ref HAL_UART_RX_COMPLETE_CB_ID Rx Complete Callback ID - * @arg @ref HAL_UART_ERROR_CB_ID Error Callback ID - * @arg @ref HAL_UART_ABORT_COMPLETE_CB_ID Abort Complete Callback ID - * @arg @ref HAL_UART_ABORT_TRANSMIT_COMPLETE_CB_ID Abort Transmit Complete Callback ID - * @arg @ref HAL_UART_ABORT_RECEIVE_COMPLETE_CB_ID Abort Receive Complete Callback ID - * @arg @ref HAL_UART_WAKEUP_CB_ID Wakeup Callback ID - * @arg @ref HAL_UART_RX_FIFO_FULL_CB_ID Rx Fifo Full Callback ID - * @arg @ref HAL_UART_TX_FIFO_EMPTY_CB_ID Tx Fifo Empty Callback ID - * @arg @ref HAL_UART_MSPINIT_CB_ID MspInit Callback ID - * @arg @ref HAL_UART_MSPDEINIT_CB_ID MspDeInit Callback ID - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UART_UnRegisterCallback(UART_HandleTypeDef *huart, HAL_UART_CallbackIDTypeDef CallbackID) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (HAL_UART_STATE_READY == huart->gState) - { - switch (CallbackID) - { - case HAL_UART_TX_HALFCOMPLETE_CB_ID : - huart->TxHalfCpltCallback = HAL_UART_TxHalfCpltCallback; /* Legacy weak TxHalfCpltCallback */ - break; - - case HAL_UART_TX_COMPLETE_CB_ID : - huart->TxCpltCallback = HAL_UART_TxCpltCallback; /* Legacy weak TxCpltCallback */ - break; - - case HAL_UART_RX_HALFCOMPLETE_CB_ID : - huart->RxHalfCpltCallback = HAL_UART_RxHalfCpltCallback; /* Legacy weak RxHalfCpltCallback */ - break; - - case HAL_UART_RX_COMPLETE_CB_ID : - huart->RxCpltCallback = HAL_UART_RxCpltCallback; /* Legacy weak RxCpltCallback */ - break; - - case HAL_UART_ERROR_CB_ID : - huart->ErrorCallback = HAL_UART_ErrorCallback; /* Legacy weak ErrorCallback */ - break; - - case HAL_UART_ABORT_COMPLETE_CB_ID : - huart->AbortCpltCallback = HAL_UART_AbortCpltCallback; /* Legacy weak AbortCpltCallback */ - break; - - case HAL_UART_ABORT_TRANSMIT_COMPLETE_CB_ID : - huart->AbortTransmitCpltCallback = HAL_UART_AbortTransmitCpltCallback; /* Legacy weak - AbortTransmitCpltCallback */ - break; - - case HAL_UART_ABORT_RECEIVE_COMPLETE_CB_ID : - huart->AbortReceiveCpltCallback = HAL_UART_AbortReceiveCpltCallback; /* Legacy weak - AbortReceiveCpltCallback */ - break; - - case HAL_UART_WAKEUP_CB_ID : - huart->WakeupCallback = HAL_UARTEx_WakeupCallback; /* Legacy weak WakeupCallback */ - break; - - case HAL_UART_RX_FIFO_FULL_CB_ID : - huart->RxFifoFullCallback = HAL_UARTEx_RxFifoFullCallback; /* Legacy weak RxFifoFullCallback */ - break; - - case HAL_UART_TX_FIFO_EMPTY_CB_ID : - huart->TxFifoEmptyCallback = HAL_UARTEx_TxFifoEmptyCallback; /* Legacy weak TxFifoEmptyCallback */ - break; - - case HAL_UART_MSPINIT_CB_ID : - huart->MspInitCallback = HAL_UART_MspInit; /* Legacy weak MspInitCallback */ - break; - - case HAL_UART_MSPDEINIT_CB_ID : - huart->MspDeInitCallback = HAL_UART_MspDeInit; /* Legacy weak MspDeInitCallback */ - break; - - default : - huart->ErrorCode |= HAL_UART_ERROR_INVALID_CALLBACK; - - status = HAL_ERROR; - break; - } - } - else if (HAL_UART_STATE_RESET == huart->gState) - { - switch (CallbackID) - { - case HAL_UART_MSPINIT_CB_ID : - huart->MspInitCallback = HAL_UART_MspInit; - break; - - case HAL_UART_MSPDEINIT_CB_ID : - huart->MspDeInitCallback = HAL_UART_MspDeInit; - break; - - default : - huart->ErrorCode |= HAL_UART_ERROR_INVALID_CALLBACK; - - status = HAL_ERROR; - break; - } - } - else - { - huart->ErrorCode |= HAL_UART_ERROR_INVALID_CALLBACK; - - status = HAL_ERROR; - } - - return status; -} - -/** - * @brief Register a User UART Rx Event Callback - * To be used instead of the weak predefined callback - * @param huart Uart handle - * @param pCallback Pointer to the Rx Event Callback function - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UART_RegisterRxEventCallback(UART_HandleTypeDef *huart, pUART_RxEventCallbackTypeDef pCallback) -{ - HAL_StatusTypeDef status = HAL_OK; - - if (pCallback == NULL) - { - huart->ErrorCode |= HAL_UART_ERROR_INVALID_CALLBACK; - - return HAL_ERROR; - } - - /* Process locked */ - __HAL_LOCK(huart); - - if (huart->gState == HAL_UART_STATE_READY) - { - huart->RxEventCallback = pCallback; - } - else - { - huart->ErrorCode |= HAL_UART_ERROR_INVALID_CALLBACK; - - status = HAL_ERROR; - } - - /* Release Lock */ - __HAL_UNLOCK(huart); - - return status; -} - -/** - * @brief UnRegister the UART Rx Event Callback - * UART Rx Event Callback is redirected to the weak HAL_UARTEx_RxEventCallback() predefined callback - * @param huart Uart handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UART_UnRegisterRxEventCallback(UART_HandleTypeDef *huart) -{ - HAL_StatusTypeDef status = HAL_OK; - - /* Process locked */ - __HAL_LOCK(huart); - - if (huart->gState == HAL_UART_STATE_READY) - { - huart->RxEventCallback = HAL_UARTEx_RxEventCallback; /* Legacy weak UART Rx Event Callback */ - } - else - { - huart->ErrorCode |= HAL_UART_ERROR_INVALID_CALLBACK; - - status = HAL_ERROR; - } - - /* Release Lock */ - __HAL_UNLOCK(huart); - return status; -} - -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - -/** - * @} - */ - -/** @defgroup UART_Exported_Functions_Group2 IO operation functions - * @brief UART Transmit/Receive functions - * -@verbatim - =============================================================================== - ##### IO operation functions ##### - =============================================================================== - This subsection provides a set of functions allowing to manage the UART asynchronous - and Half duplex data transfers. - - (#) There are two mode of transfer: - (+) Blocking mode: The communication is performed in polling mode. - The HAL status of all data processing is returned by the same function - after finishing transfer. - (+) Non-Blocking mode: The communication is performed using Interrupts - or DMA, These API's return the HAL status. - The end of the data processing will be indicated through the - dedicated UART IRQ when using Interrupt mode or the DMA IRQ when - using DMA mode. - The HAL_UART_TxCpltCallback(), HAL_UART_RxCpltCallback() user callbacks - will be executed respectively at the end of the transmit or Receive process - The HAL_UART_ErrorCallback()user callback will be executed when a communication error is detected - - (#) Blocking mode API's are : - (+) HAL_UART_Transmit() - (+) HAL_UART_Receive() - - (#) Non-Blocking mode API's with Interrupt are : - (+) HAL_UART_Transmit_IT() - (+) HAL_UART_Receive_IT() - (+) HAL_UART_IRQHandler() - - (#) Non-Blocking mode API's with DMA are : - (+) HAL_UART_Transmit_DMA() - (+) HAL_UART_Receive_DMA() - (+) HAL_UART_DMAPause() - (+) HAL_UART_DMAResume() - (+) HAL_UART_DMAStop() - - (#) A set of Transfer Complete Callbacks are provided in Non_Blocking mode: - (+) HAL_UART_TxHalfCpltCallback() - (+) HAL_UART_TxCpltCallback() - (+) HAL_UART_RxHalfCpltCallback() - (+) HAL_UART_RxCpltCallback() - (+) HAL_UART_ErrorCallback() - - (#) Non-Blocking mode transfers could be aborted using Abort API's : - (+) HAL_UART_Abort() - (+) HAL_UART_AbortTransmit() - (+) HAL_UART_AbortReceive() - (+) HAL_UART_Abort_IT() - (+) HAL_UART_AbortTransmit_IT() - (+) HAL_UART_AbortReceive_IT() - - (#) For Abort services based on interrupts (HAL_UART_Abortxxx_IT), a set of Abort Complete Callbacks are provided: - (+) HAL_UART_AbortCpltCallback() - (+) HAL_UART_AbortTransmitCpltCallback() - (+) HAL_UART_AbortReceiveCpltCallback() - - (#) A Rx Event Reception Callback (Rx event notification) is available for Non_Blocking modes of enhanced - reception services: - (+) HAL_UARTEx_RxEventCallback() - - (#) In Non-Blocking mode transfers, possible errors are split into 2 categories. - Errors are handled as follows : - (+) Error is considered as Recoverable and non blocking : Transfer could go till end, but error severity is - to be evaluated by user : this concerns Frame Error, Parity Error or Noise Error - in Interrupt mode reception . - Received character is then retrieved and stored in Rx buffer, Error code is set to allow user - to identify error type, and HAL_UART_ErrorCallback() user callback is executed. - Transfer is kept ongoing on UART side. - If user wants to abort it, Abort services should be called by user. - (+) Error is considered as Blocking : Transfer could not be completed properly and is aborted. - This concerns Overrun Error In Interrupt mode reception and all errors in DMA mode. - Error code is set to allow user to identify error type, and HAL_UART_ErrorCallback() - user callback is executed. - - -@- In the Half duplex communication, it is forbidden to run the transmit - and receive process in parallel, the UART state HAL_UART_STATE_BUSY_TX_RX can't be useful. - -@endverbatim - * @{ - */ - -/** - * @brief Send an amount of data in blocking mode. - * @note When UART parity is not enabled (PCE = 0), and Word Length is configured to 9 bits (M1-M0 = 01), - * the sent data is handled as a set of u16. In this case, Size must indicate the number - * of u16 provided through pData. - * @note When FIFO mode is enabled, writing a data in the TDR register adds one - * data to the TXFIFO. Write operations to the TDR register are performed - * when TXFNF flag is set. From hardware perspective, TXFNF flag and - * TXE are mapped on the same bit-field. - * @param huart UART handle. - * @param pData Pointer to data buffer (u8 or u16 data elements). - * @param Size Amount of data elements (u8 or u16) to be sent. - * @param Timeout Timeout duration. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UART_Transmit(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size, uint32_t Timeout) -{ - const uint8_t *pdata8bits; - const uint16_t *pdata16bits; - uint32_t tickstart; - - /* Check that a Tx process is not already ongoing */ - if (huart->gState == HAL_UART_STATE_READY) - { - if ((pData == NULL) || (Size == 0U)) - { - return HAL_ERROR; - } - - huart->ErrorCode = HAL_UART_ERROR_NONE; - huart->gState = HAL_UART_STATE_BUSY_TX; - - /* Init tickstart for timeout management */ - tickstart = HAL_GetTick(); - - huart->TxXferSize = Size; - huart->TxXferCount = Size; - - /* In case of 9bits/No Parity transfer, pData needs to be handled as a uint16_t pointer */ - if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) - { - pdata8bits = NULL; - pdata16bits = (const uint16_t *) pData; - } - else - { - pdata8bits = pData; - pdata16bits = NULL; - } - - while (huart->TxXferCount > 0U) - { - if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TXE, RESET, tickstart, Timeout) != HAL_OK) - { - - huart->gState = HAL_UART_STATE_READY; - - return HAL_TIMEOUT; - } - if (pdata8bits == NULL) - { - huart->Instance->TDR = (uint16_t)(*pdata16bits & 0x01FFU); - pdata16bits++; - } - else - { - huart->Instance->TDR = (uint8_t)(*pdata8bits & 0xFFU); - pdata8bits++; - } - huart->TxXferCount--; - } - - if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TC, RESET, tickstart, Timeout) != HAL_OK) - { - huart->gState = HAL_UART_STATE_READY; - - return HAL_TIMEOUT; - } - - /* At end of Tx process, restore huart->gState to Ready */ - huart->gState = HAL_UART_STATE_READY; - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Receive an amount of data in blocking mode. - * @note When UART parity is not enabled (PCE = 0), and Word Length is configured to 9 bits (M1-M0 = 01), - * the received data is handled as a set of u16. In this case, Size must indicate the number - * of u16 available through pData. - * @note When FIFO mode is enabled, the RXFNE flag is set as long as the RXFIFO - * is not empty. Read operations from the RDR register are performed when - * RXFNE flag is set. From hardware perspective, RXFNE flag and - * RXNE are mapped on the same bit-field. - * @param huart UART handle. - * @param pData Pointer to data buffer (u8 or u16 data elements). - * @param Size Amount of data elements (u8 or u16) to be received. - * @param Timeout Timeout duration. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UART_Receive(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size, uint32_t Timeout) -{ - uint8_t *pdata8bits; - uint16_t *pdata16bits; - uint16_t uhMask; - uint32_t tickstart; - - /* Check that a Rx process is not already ongoing */ - if (huart->RxState == HAL_UART_STATE_READY) - { - if ((pData == NULL) || (Size == 0U)) - { - return HAL_ERROR; - } - - huart->ErrorCode = HAL_UART_ERROR_NONE; - huart->RxState = HAL_UART_STATE_BUSY_RX; - huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - - /* Init tickstart for timeout management */ - tickstart = HAL_GetTick(); - - huart->RxXferSize = Size; - huart->RxXferCount = Size; - - /* Computation of UART mask to apply to RDR register */ - UART_MASK_COMPUTATION(huart); - uhMask = huart->Mask; - - /* In case of 9bits/No Parity transfer, pRxData needs to be handled as a uint16_t pointer */ - if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) - { - pdata8bits = NULL; - pdata16bits = (uint16_t *) pData; - } - else - { - pdata8bits = pData; - pdata16bits = NULL; - } - - /* as long as data have to be received */ - while (huart->RxXferCount > 0U) - { - if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_RXNE, RESET, tickstart, Timeout) != HAL_OK) - { - huart->RxState = HAL_UART_STATE_READY; - - return HAL_TIMEOUT; - } - if (pdata8bits == NULL) - { - *pdata16bits = (uint16_t)(huart->Instance->RDR & uhMask); - pdata16bits++; - } - else - { - *pdata8bits = (uint8_t)(huart->Instance->RDR & (uint8_t)uhMask); - pdata8bits++; - } - huart->RxXferCount--; - } - - /* At end of Rx process, restore huart->RxState to Ready */ - huart->RxState = HAL_UART_STATE_READY; - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Send an amount of data in interrupt mode. - * @note When UART parity is not enabled (PCE = 0), and Word Length is configured to 9 bits (M1-M0 = 01), - * the sent data is handled as a set of u16. In this case, Size must indicate the number - * of u16 provided through pData. - * @param huart UART handle. - * @param pData Pointer to data buffer (u8 or u16 data elements). - * @param Size Amount of data elements (u8 or u16) to be sent. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UART_Transmit_IT(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size) -{ - /* Check that a Tx process is not already ongoing */ - if (huart->gState == HAL_UART_STATE_READY) - { - if ((pData == NULL) || (Size == 0U)) - { - return HAL_ERROR; - } - - huart->pTxBuffPtr = pData; - huart->TxXferSize = Size; - huart->TxXferCount = Size; - huart->TxISR = NULL; - - huart->ErrorCode = HAL_UART_ERROR_NONE; - huart->gState = HAL_UART_STATE_BUSY_TX; - - /* Configure Tx interrupt processing */ - if (huart->FifoMode == UART_FIFOMODE_ENABLE) - { - /* Set the Tx ISR function pointer according to the data word length */ - if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) - { - huart->TxISR = UART_TxISR_16BIT_FIFOEN; - } - else - { - huart->TxISR = UART_TxISR_8BIT_FIFOEN; - } - - /* Enable the TX FIFO threshold interrupt */ - ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_TXFTIE); - } - else - { - /* Set the Tx ISR function pointer according to the data word length */ - if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) - { - huart->TxISR = UART_TxISR_16BIT; - } - else - { - huart->TxISR = UART_TxISR_8BIT; - } - - /* Enable the Transmit Data Register Empty interrupt */ - ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE); - } - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Receive an amount of data in interrupt mode. - * @note When UART parity is not enabled (PCE = 0), and Word Length is configured to 9 bits (M1-M0 = 01), - * the received data is handled as a set of u16. In this case, Size must indicate the number - * of u16 available through pData. - * @param huart UART handle. - * @param pData Pointer to data buffer (u8 or u16 data elements). - * @param Size Amount of data elements (u8 or u16) to be received. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UART_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size) -{ - /* Check that a Rx process is not already ongoing */ - if (huart->RxState == HAL_UART_STATE_READY) - { - if ((pData == NULL) || (Size == 0U)) - { - return HAL_ERROR; - } - - /* Set Reception type to Standard reception */ - huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - - if (!(IS_LPUART_INSTANCE(huart->Instance))) - { - /* Check that USART RTOEN bit is set */ - if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U) - { - /* Enable the UART Receiver Timeout Interrupt */ - ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RTOIE); - } - } - - return (UART_Start_Receive_IT(huart, pData, Size)); - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Send an amount of data in DMA mode. - * @note When UART parity is not enabled (PCE = 0), and Word Length is configured to 9 bits (M1-M0 = 01), - * the sent data is handled as a set of u16. In this case, Size must indicate the number - * of u16 provided through pData. - * @param huart UART handle. - * @param pData Pointer to data buffer (u8 or u16 data elements). - * @param Size Amount of data elements (u8 or u16) to be sent. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UART_Transmit_DMA(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size) -{ - /* Check that a Tx process is not already ongoing */ - if (huart->gState == HAL_UART_STATE_READY) - { - if ((pData == NULL) || (Size == 0U)) - { - return HAL_ERROR; - } - - huart->pTxBuffPtr = pData; - huart->TxXferSize = Size; - huart->TxXferCount = Size; - - huart->ErrorCode = HAL_UART_ERROR_NONE; - huart->gState = HAL_UART_STATE_BUSY_TX; - - if (huart->hdmatx != NULL) - { - /* Set the UART DMA transfer complete callback */ - huart->hdmatx->XferCpltCallback = UART_DMATransmitCplt; - - /* Set the UART DMA Half transfer complete callback */ - huart->hdmatx->XferHalfCpltCallback = UART_DMATxHalfCplt; - - /* Set the DMA error callback */ - huart->hdmatx->XferErrorCallback = UART_DMAError; - - /* Set the DMA abort callback */ - huart->hdmatx->XferAbortCallback = NULL; - - /* Enable the UART transmit DMA channel */ - if (HAL_DMA_Start_IT(huart->hdmatx, (uint32_t)huart->pTxBuffPtr, (uint32_t)&huart->Instance->TDR, Size) != HAL_OK) - { - /* Set error code to DMA */ - huart->ErrorCode = HAL_UART_ERROR_DMA; - - /* Restore huart->gState to ready */ - huart->gState = HAL_UART_STATE_READY; - - return HAL_ERROR; - } - } - /* Clear the TC flag in the ICR register */ - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_TCF); - - /* Enable the DMA transfer for transmit request by setting the DMAT bit - in the UART CR3 register */ - ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_DMAT); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Receive an amount of data in DMA mode. - * @note When the UART parity is enabled (PCE = 1), the received data contain - * the parity bit (MSB position). - * @note When UART parity is not enabled (PCE = 0), and Word Length is configured to 9 bits (M1-M0 = 01), - * the received data is handled as a set of u16. In this case, Size must indicate the number - * of u16 available through pData. - * @param huart UART handle. - * @param pData Pointer to data buffer (u8 or u16 data elements). - * @param Size Amount of data elements (u8 or u16) to be received. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UART_Receive_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size) -{ - /* Check that a Rx process is not already ongoing */ - if (huart->RxState == HAL_UART_STATE_READY) - { - if ((pData == NULL) || (Size == 0U)) - { - return HAL_ERROR; - } - - /* Set Reception type to Standard reception */ - huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - - if (!(IS_LPUART_INSTANCE(huart->Instance))) - { - /* Check that USART RTOEN bit is set */ - if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U) - { - /* Enable the UART Receiver Timeout Interrupt */ - ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RTOIE); - } - } - - return (UART_Start_Receive_DMA(huart, pData, Size)); - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Pause the DMA Transfer. - * @param huart UART handle. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UART_DMAPause(UART_HandleTypeDef *huart) -{ - const HAL_UART_StateTypeDef gstate = huart->gState; - const HAL_UART_StateTypeDef rxstate = huart->RxState; - - if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAT)) && - (gstate == HAL_UART_STATE_BUSY_TX)) - { - /* Disable the UART DMA Tx request */ - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAT); - } - if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) && - (rxstate == HAL_UART_STATE_BUSY_RX)) - { - /* Disable PE and ERR (Frame error, noise error, overrun error) interrupts */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE); - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - - /* Disable the UART DMA Rx request */ - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); - } - - return HAL_OK; -} - -/** - * @brief Resume the DMA Transfer. - * @param huart UART handle. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UART_DMAResume(UART_HandleTypeDef *huart) -{ - if (huart->gState == HAL_UART_STATE_BUSY_TX) - { - /* Enable the UART DMA Tx request */ - ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_DMAT); - } - if (huart->RxState == HAL_UART_STATE_BUSY_RX) - { - /* Clear the Overrun flag before resuming the Rx transfer */ - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF); - - /* Re-enable PE and ERR (Frame error, noise error, overrun error) interrupts */ - if (huart->Init.Parity != UART_PARITY_NONE) - { - ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE); - } - ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_EIE); - - /* Enable the UART DMA Rx request */ - ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_DMAR); - } - - return HAL_OK; -} - -/** - * @brief Stop the DMA Transfer. - * @param huart UART handle. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UART_DMAStop(UART_HandleTypeDef *huart) -{ - /* The Lock is not implemented on this API to allow the user application - to call the HAL UART API under callbacks HAL_UART_TxCpltCallback() / HAL_UART_RxCpltCallback() / - HAL_UART_TxHalfCpltCallback / HAL_UART_RxHalfCpltCallback: - indeed, when HAL_DMA_Abort() API is called, the DMA TX/RX Transfer or Half Transfer complete - interrupt is generated if the DMA transfer interruption occurs at the middle or at the end of - the stream and the corresponding call back is executed. */ - - const HAL_UART_StateTypeDef gstate = huart->gState; - const HAL_UART_StateTypeDef rxstate = huart->RxState; - - /* Stop UART DMA Tx request if ongoing */ - if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAT)) && - (gstate == HAL_UART_STATE_BUSY_TX)) - { - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAT); - - /* Abort the UART DMA Tx channel */ - if (huart->hdmatx != NULL) - { - if (HAL_DMA_Abort(huart->hdmatx) != HAL_OK) - { - if (HAL_DMA_GetError(huart->hdmatx) == HAL_DMA_ERROR_TIMEOUT) - { - /* Set error code to DMA */ - huart->ErrorCode = HAL_UART_ERROR_DMA; - - return HAL_TIMEOUT; - } - } - } - - UART_EndTxTransfer(huart); - } - - /* Stop UART DMA Rx request if ongoing */ - if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) && - (rxstate == HAL_UART_STATE_BUSY_RX)) - { - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); - - /* Abort the UART DMA Rx channel */ - if (huart->hdmarx != NULL) - { - if (HAL_DMA_Abort(huart->hdmarx) != HAL_OK) - { - if (HAL_DMA_GetError(huart->hdmarx) == HAL_DMA_ERROR_TIMEOUT) - { - /* Set error code to DMA */ - huart->ErrorCode = HAL_UART_ERROR_DMA; - - return HAL_TIMEOUT; - } - } - } - - UART_EndRxTransfer(huart); - } - - return HAL_OK; -} - -/** - * @brief Abort ongoing transfers (blocking mode). - * @param huart UART handle. - * @note This procedure could be used for aborting any ongoing transfer started in Interrupt or DMA mode. - * This procedure performs following operations : - * - Disable UART Interrupts (Tx and Rx) - * - Disable the DMA transfer in the peripheral register (if enabled) - * - Abort DMA transfer by calling HAL_DMA_Abort (in case of transfer in DMA mode) - * - Set handle State to READY - * @note This procedure is executed in blocking mode : when exiting function, Abort is considered as completed. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UART_Abort(UART_HandleTypeDef *huart) -{ - /* Disable TXE, TC, RXNE, PE, RXFT, TXFT and ERR (Frame error, noise error, overrun error) interrupts */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE | - USART_CR1_TXEIE_TXFNFIE | USART_CR1_TCIE)); - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE | USART_CR3_RXFTIE | USART_CR3_TXFTIE); - - /* If Reception till IDLE event was ongoing, disable IDLEIE interrupt */ - if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - { - ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_IDLEIE)); - } - - /* Abort the UART DMA Tx channel if enabled */ - if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAT)) - { - /* Disable the UART DMA Tx request if enabled */ - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAT); - - /* Abort the UART DMA Tx channel : use blocking DMA Abort API (no callback) */ - if (huart->hdmatx != NULL) - { - /* Set the UART DMA Abort callback to Null. - No call back execution at end of DMA abort procedure */ - huart->hdmatx->XferAbortCallback = NULL; - - if (HAL_DMA_Abort(huart->hdmatx) != HAL_OK) - { - if (HAL_DMA_GetError(huart->hdmatx) == HAL_DMA_ERROR_TIMEOUT) - { - /* Set error code to DMA */ - huart->ErrorCode = HAL_UART_ERROR_DMA; - - return HAL_TIMEOUT; - } - } - } - } - - /* Abort the UART DMA Rx channel if enabled */ - if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - { - /* Disable the UART DMA Rx request if enabled */ - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); - - /* Abort the UART DMA Rx channel : use blocking DMA Abort API (no callback) */ - if (huart->hdmarx != NULL) - { - /* Set the UART DMA Abort callback to Null. - No call back execution at end of DMA abort procedure */ - huart->hdmarx->XferAbortCallback = NULL; - - if (HAL_DMA_Abort(huart->hdmarx) != HAL_OK) - { - if (HAL_DMA_GetError(huart->hdmarx) == HAL_DMA_ERROR_TIMEOUT) - { - /* Set error code to DMA */ - huart->ErrorCode = HAL_UART_ERROR_DMA; - - return HAL_TIMEOUT; - } - } - } - } - - /* Reset Tx and Rx transfer counters */ - huart->TxXferCount = 0U; - huart->RxXferCount = 0U; - - /* Clear the Error flags in the ICR register */ - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF | UART_CLEAR_NEF | UART_CLEAR_PEF | UART_CLEAR_FEF); - - /* Flush the whole TX FIFO (if needed) */ - if (huart->FifoMode == UART_FIFOMODE_ENABLE) - { - __HAL_UART_SEND_REQ(huart, UART_TXDATA_FLUSH_REQUEST); - } - - /* Discard the received data */ - __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST); - - /* Restore huart->gState and huart->RxState to Ready */ - huart->gState = HAL_UART_STATE_READY; - huart->RxState = HAL_UART_STATE_READY; - huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - - huart->ErrorCode = HAL_UART_ERROR_NONE; - - return HAL_OK; -} - -/** - * @brief Abort ongoing Transmit transfer (blocking mode). - * @param huart UART handle. - * @note This procedure could be used for aborting any ongoing Tx transfer started in Interrupt or DMA mode. - * This procedure performs following operations : - * - Disable UART Interrupts (Tx) - * - Disable the DMA transfer in the peripheral register (if enabled) - * - Abort DMA transfer by calling HAL_DMA_Abort (in case of transfer in DMA mode) - * - Set handle State to READY - * @note This procedure is executed in blocking mode : when exiting function, Abort is considered as completed. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UART_AbortTransmit(UART_HandleTypeDef *huart) -{ - /* Disable TCIE, TXEIE and TXFTIE interrupts */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TCIE | USART_CR1_TXEIE_TXFNFIE)); - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_TXFTIE); - - /* Abort the UART DMA Tx channel if enabled */ - if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAT)) - { - /* Disable the UART DMA Tx request if enabled */ - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAT); - - /* Abort the UART DMA Tx channel : use blocking DMA Abort API (no callback) */ - if (huart->hdmatx != NULL) - { - /* Set the UART DMA Abort callback to Null. - No call back execution at end of DMA abort procedure */ - huart->hdmatx->XferAbortCallback = NULL; - - if (HAL_DMA_Abort(huart->hdmatx) != HAL_OK) - { - if (HAL_DMA_GetError(huart->hdmatx) == HAL_DMA_ERROR_TIMEOUT) - { - /* Set error code to DMA */ - huart->ErrorCode = HAL_UART_ERROR_DMA; - - return HAL_TIMEOUT; - } - } - } - } - - /* Reset Tx transfer counter */ - huart->TxXferCount = 0U; - - /* Flush the whole TX FIFO (if needed) */ - if (huart->FifoMode == UART_FIFOMODE_ENABLE) - { - __HAL_UART_SEND_REQ(huart, UART_TXDATA_FLUSH_REQUEST); - } - - /* Restore huart->gState to Ready */ - huart->gState = HAL_UART_STATE_READY; - - return HAL_OK; -} - -/** - * @brief Abort ongoing Receive transfer (blocking mode). - * @param huart UART handle. - * @note This procedure could be used for aborting any ongoing Rx transfer started in Interrupt or DMA mode. - * This procedure performs following operations : - * - Disable UART Interrupts (Rx) - * - Disable the DMA transfer in the peripheral register (if enabled) - * - Abort DMA transfer by calling HAL_DMA_Abort (in case of transfer in DMA mode) - * - Set handle State to READY - * @note This procedure is executed in blocking mode : when exiting function, Abort is considered as completed. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UART_AbortReceive(UART_HandleTypeDef *huart) -{ - /* Disable PEIE, EIE, RXNEIE and RXFTIE interrupts */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_PEIE | USART_CR1_RXNEIE_RXFNEIE)); - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE | USART_CR3_RXFTIE); - - /* If Reception till IDLE event was ongoing, disable IDLEIE interrupt */ - if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - { - ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_IDLEIE)); - } - - /* Abort the UART DMA Rx channel if enabled */ - if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - { - /* Disable the UART DMA Rx request if enabled */ - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); - - /* Abort the UART DMA Rx channel : use blocking DMA Abort API (no callback) */ - if (huart->hdmarx != NULL) - { - /* Set the UART DMA Abort callback to Null. - No call back execution at end of DMA abort procedure */ - huart->hdmarx->XferAbortCallback = NULL; - - if (HAL_DMA_Abort(huart->hdmarx) != HAL_OK) - { - if (HAL_DMA_GetError(huart->hdmarx) == HAL_DMA_ERROR_TIMEOUT) - { - /* Set error code to DMA */ - huart->ErrorCode = HAL_UART_ERROR_DMA; - - return HAL_TIMEOUT; - } - } - } - } - - /* Reset Rx transfer counter */ - huart->RxXferCount = 0U; - - /* Clear the Error flags in the ICR register */ - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF | UART_CLEAR_NEF | UART_CLEAR_PEF | UART_CLEAR_FEF); - - /* Discard the received data */ - __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST); - - /* Restore huart->RxState to Ready */ - huart->RxState = HAL_UART_STATE_READY; - huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - - return HAL_OK; -} - -/** - * @brief Abort ongoing transfers (Interrupt mode). - * @param huart UART handle. - * @note This procedure could be used for aborting any ongoing transfer started in Interrupt or DMA mode. - * This procedure performs following operations : - * - Disable UART Interrupts (Tx and Rx) - * - Disable the DMA transfer in the peripheral register (if enabled) - * - Abort DMA transfer by calling HAL_DMA_Abort_IT (in case of transfer in DMA mode) - * - Set handle State to READY - * - At abort completion, call user abort complete callback - * @note This procedure is executed in Interrupt mode, meaning that abort procedure could be - * considered as completed only when user abort complete callback is executed (not when exiting function). - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UART_Abort_IT(UART_HandleTypeDef *huart) -{ - uint32_t abortcplt = 1U; - - /* Disable interrupts */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_PEIE | USART_CR1_TCIE | USART_CR1_RXNEIE_RXFNEIE | - USART_CR1_TXEIE_TXFNFIE)); - ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE | USART_CR3_TXFTIE)); - - /* If Reception till IDLE event was ongoing, disable IDLEIE interrupt */ - if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - { - ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_IDLEIE)); - } - - /* If DMA Tx and/or DMA Rx Handles are associated to UART Handle, DMA Abort complete callbacks should be initialised - before any call to DMA Abort functions */ - /* DMA Tx Handle is valid */ - if (huart->hdmatx != NULL) - { - /* Set DMA Abort Complete callback if UART DMA Tx request if enabled. - Otherwise, set it to NULL */ - if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAT)) - { - huart->hdmatx->XferAbortCallback = UART_DMATxAbortCallback; - } - else - { - huart->hdmatx->XferAbortCallback = NULL; - } - } - /* DMA Rx Handle is valid */ - if (huart->hdmarx != NULL) - { - /* Set DMA Abort Complete callback if UART DMA Rx request if enabled. - Otherwise, set it to NULL */ - if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - { - huart->hdmarx->XferAbortCallback = UART_DMARxAbortCallback; - } - else - { - huart->hdmarx->XferAbortCallback = NULL; - } - } - - /* Abort the UART DMA Tx channel if enabled */ - if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAT)) - { - /* Disable DMA Tx at UART level */ - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAT); - - /* Abort the UART DMA Tx channel : use non blocking DMA Abort API (callback) */ - if (huart->hdmatx != NULL) - { - /* UART Tx DMA Abort callback has already been initialised : - will lead to call HAL_UART_AbortCpltCallback() at end of DMA abort procedure */ - - /* Abort DMA TX */ - if (HAL_DMA_Abort_IT(huart->hdmatx) != HAL_OK) - { - huart->hdmatx->XferAbortCallback = NULL; - } - else - { - abortcplt = 0U; - } - } - } - - /* Abort the UART DMA Rx channel if enabled */ - if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - { - /* Disable the UART DMA Rx request if enabled */ - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); - - /* Abort the UART DMA Rx channel : use non blocking DMA Abort API (callback) */ - if (huart->hdmarx != NULL) - { - /* UART Rx DMA Abort callback has already been initialised : - will lead to call HAL_UART_AbortCpltCallback() at end of DMA abort procedure */ - - /* Abort DMA RX */ - if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK) - { - huart->hdmarx->XferAbortCallback = NULL; - abortcplt = 1U; - } - else - { - abortcplt = 0U; - } - } - } - - /* if no DMA abort complete callback execution is required => call user Abort Complete callback */ - if (abortcplt == 1U) - { - /* Reset Tx and Rx transfer counters */ - huart->TxXferCount = 0U; - huart->RxXferCount = 0U; - - /* Clear ISR function pointers */ - huart->RxISR = NULL; - huart->TxISR = NULL; - - /* Reset errorCode */ - huart->ErrorCode = HAL_UART_ERROR_NONE; - - /* Clear the Error flags in the ICR register */ - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF | UART_CLEAR_NEF | UART_CLEAR_PEF | UART_CLEAR_FEF); - - /* Flush the whole TX FIFO (if needed) */ - if (huart->FifoMode == UART_FIFOMODE_ENABLE) - { - __HAL_UART_SEND_REQ(huart, UART_TXDATA_FLUSH_REQUEST); - } - - /* Discard the received data */ - __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST); - - /* Restore huart->gState and huart->RxState to Ready */ - huart->gState = HAL_UART_STATE_READY; - huart->RxState = HAL_UART_STATE_READY; - huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - - /* As no DMA to be aborted, call directly user Abort complete callback */ -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /* Call registered Abort complete callback */ - huart->AbortCpltCallback(huart); -#else - /* Call legacy weak Abort complete callback */ - HAL_UART_AbortCpltCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - } - - return HAL_OK; -} - -/** - * @brief Abort ongoing Transmit transfer (Interrupt mode). - * @param huart UART handle. - * @note This procedure could be used for aborting any ongoing Tx transfer started in Interrupt or DMA mode. - * This procedure performs following operations : - * - Disable UART Interrupts (Tx) - * - Disable the DMA transfer in the peripheral register (if enabled) - * - Abort DMA transfer by calling HAL_DMA_Abort_IT (in case of transfer in DMA mode) - * - Set handle State to READY - * - At abort completion, call user abort complete callback - * @note This procedure is executed in Interrupt mode, meaning that abort procedure could be - * considered as completed only when user abort complete callback is executed (not when exiting function). - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UART_AbortTransmit_IT(UART_HandleTypeDef *huart) -{ - /* Disable interrupts */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TCIE | USART_CR1_TXEIE_TXFNFIE)); - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_TXFTIE); - - /* Abort the UART DMA Tx channel if enabled */ - if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAT)) - { - /* Disable the UART DMA Tx request if enabled */ - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAT); - - /* Abort the UART DMA Tx channel : use non blocking DMA Abort API (callback) */ - if (huart->hdmatx != NULL) - { - /* Set the UART DMA Abort callback : - will lead to call HAL_UART_AbortCpltCallback() at end of DMA abort procedure */ - huart->hdmatx->XferAbortCallback = UART_DMATxOnlyAbortCallback; - - /* Abort DMA TX */ - if (HAL_DMA_Abort_IT(huart->hdmatx) != HAL_OK) - { - /* Call Directly huart->hdmatx->XferAbortCallback function in case of error */ - huart->hdmatx->XferAbortCallback(huart->hdmatx); - } - } - else - { - /* Reset Tx transfer counter */ - huart->TxXferCount = 0U; - - /* Clear TxISR function pointers */ - huart->TxISR = NULL; - - /* Restore huart->gState to Ready */ - huart->gState = HAL_UART_STATE_READY; - - /* As no DMA to be aborted, call directly user Abort complete callback */ -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /* Call registered Abort Transmit Complete Callback */ - huart->AbortTransmitCpltCallback(huart); -#else - /* Call legacy weak Abort Transmit Complete Callback */ - HAL_UART_AbortTransmitCpltCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - } - } - else - { - /* Reset Tx transfer counter */ - huart->TxXferCount = 0U; - - /* Clear TxISR function pointers */ - huart->TxISR = NULL; - - /* Flush the whole TX FIFO (if needed) */ - if (huart->FifoMode == UART_FIFOMODE_ENABLE) - { - __HAL_UART_SEND_REQ(huart, UART_TXDATA_FLUSH_REQUEST); - } - - /* Restore huart->gState to Ready */ - huart->gState = HAL_UART_STATE_READY; - - /* As no DMA to be aborted, call directly user Abort complete callback */ -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /* Call registered Abort Transmit Complete Callback */ - huart->AbortTransmitCpltCallback(huart); -#else - /* Call legacy weak Abort Transmit Complete Callback */ - HAL_UART_AbortTransmitCpltCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - } - - return HAL_OK; -} - -/** - * @brief Abort ongoing Receive transfer (Interrupt mode). - * @param huart UART handle. - * @note This procedure could be used for aborting any ongoing Rx transfer started in Interrupt or DMA mode. - * This procedure performs following operations : - * - Disable UART Interrupts (Rx) - * - Disable the DMA transfer in the peripheral register (if enabled) - * - Abort DMA transfer by calling HAL_DMA_Abort_IT (in case of transfer in DMA mode) - * - Set handle State to READY - * - At abort completion, call user abort complete callback - * @note This procedure is executed in Interrupt mode, meaning that abort procedure could be - * considered as completed only when user abort complete callback is executed (not when exiting function). - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UART_AbortReceive_IT(UART_HandleTypeDef *huart) -{ - /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_PEIE | USART_CR1_RXNEIE_RXFNEIE)); - ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE)); - - /* If Reception till IDLE event was ongoing, disable IDLEIE interrupt */ - if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - { - ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_IDLEIE)); - } - - /* Abort the UART DMA Rx channel if enabled */ - if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - { - /* Disable the UART DMA Rx request if enabled */ - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); - - /* Abort the UART DMA Rx channel : use non blocking DMA Abort API (callback) */ - if (huart->hdmarx != NULL) - { - /* Set the UART DMA Abort callback : - will lead to call HAL_UART_AbortCpltCallback() at end of DMA abort procedure */ - huart->hdmarx->XferAbortCallback = UART_DMARxOnlyAbortCallback; - - /* Abort DMA RX */ - if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK) - { - /* Call Directly huart->hdmarx->XferAbortCallback function in case of error */ - huart->hdmarx->XferAbortCallback(huart->hdmarx); - } - } - else - { - /* Reset Rx transfer counter */ - huart->RxXferCount = 0U; - - /* Clear RxISR function pointer */ - huart->pRxBuffPtr = NULL; - - /* Clear the Error flags in the ICR register */ - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF | UART_CLEAR_NEF | UART_CLEAR_PEF | UART_CLEAR_FEF); - - /* Discard the received data */ - __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST); - - /* Restore huart->RxState to Ready */ - huart->RxState = HAL_UART_STATE_READY; - huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - - /* As no DMA to be aborted, call directly user Abort complete callback */ -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /* Call registered Abort Receive Complete Callback */ - huart->AbortReceiveCpltCallback(huart); -#else - /* Call legacy weak Abort Receive Complete Callback */ - HAL_UART_AbortReceiveCpltCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - } - } - else - { - /* Reset Rx transfer counter */ - huart->RxXferCount = 0U; - - /* Clear RxISR function pointer */ - huart->pRxBuffPtr = NULL; - - /* Clear the Error flags in the ICR register */ - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF | UART_CLEAR_NEF | UART_CLEAR_PEF | UART_CLEAR_FEF); - - /* Restore huart->RxState to Ready */ - huart->RxState = HAL_UART_STATE_READY; - huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - - /* As no DMA to be aborted, call directly user Abort complete callback */ -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /* Call registered Abort Receive Complete Callback */ - huart->AbortReceiveCpltCallback(huart); -#else - /* Call legacy weak Abort Receive Complete Callback */ - HAL_UART_AbortReceiveCpltCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - } - - return HAL_OK; -} - -/** - * @brief Handle UART interrupt request. - * @param huart UART handle. - * @retval None - */ -void HAL_UART_IRQHandler(UART_HandleTypeDef *huart) -{ - uint32_t isrflags = READ_REG(huart->Instance->ISR); - uint32_t cr1its = READ_REG(huart->Instance->CR1); - uint32_t cr3its = READ_REG(huart->Instance->CR3); - - uint32_t errorflags; - uint32_t errorcode; - - /* If no error occurs */ - errorflags = (isrflags & (uint32_t)(USART_ISR_PE | USART_ISR_FE | USART_ISR_ORE | USART_ISR_NE | USART_ISR_RTOF)); - if (errorflags == 0U) - { - /* UART in mode Receiver ---------------------------------------------------*/ - if (((isrflags & USART_ISR_RXNE_RXFNE) != 0U) - && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) - || ((cr3its & USART_CR3_RXFTIE) != 0U))) - { - if (huart->RxISR != NULL) - { - huart->RxISR(huart); - } - return; - } - } - - /* If some errors occur */ - if ((errorflags != 0U) - && ((((cr3its & (USART_CR3_RXFTIE | USART_CR3_EIE)) != 0U) - || ((cr1its & (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE | USART_CR1_RTOIE)) != 0U)))) - { - /* UART parity error interrupt occurred -------------------------------------*/ - if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U)) - { - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF); - - huart->ErrorCode |= HAL_UART_ERROR_PE; - } - - /* UART frame error interrupt occurred --------------------------------------*/ - if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U)) - { - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF); - - huart->ErrorCode |= HAL_UART_ERROR_FE; - } - - /* UART noise error interrupt occurred --------------------------------------*/ - if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U)) - { - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF); - - huart->ErrorCode |= HAL_UART_ERROR_NE; - } - - /* UART Over-Run interrupt occurred -----------------------------------------*/ - if (((isrflags & USART_ISR_ORE) != 0U) - && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) || - ((cr3its & (USART_CR3_RXFTIE | USART_CR3_EIE)) != 0U))) - { - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF); - - huart->ErrorCode |= HAL_UART_ERROR_ORE; - } - - /* UART Receiver Timeout interrupt occurred ---------------------------------*/ - if (((isrflags & USART_ISR_RTOF) != 0U) && ((cr1its & USART_CR1_RTOIE) != 0U)) - { - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF); - - huart->ErrorCode |= HAL_UART_ERROR_RTO; - } - - /* Call UART Error Call back function if need be ----------------------------*/ - if (huart->ErrorCode != HAL_UART_ERROR_NONE) - { - /* UART in mode Receiver --------------------------------------------------*/ - if (((isrflags & USART_ISR_RXNE_RXFNE) != 0U) - && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) - || ((cr3its & USART_CR3_RXFTIE) != 0U))) - { - if (huart->RxISR != NULL) - { - huart->RxISR(huart); - } - } - - /* If Error is to be considered as blocking : - - Receiver Timeout error in Reception - - Overrun error in Reception - - any error occurs in DMA mode reception - */ - errorcode = huart->ErrorCode; - if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) || - ((errorcode & (HAL_UART_ERROR_RTO | HAL_UART_ERROR_ORE)) != 0U)) - { - /* Blocking error : transfer is aborted - Set the UART state ready to be able to start again the process, - Disable Rx Interrupts, and disable Rx DMA request, if ongoing */ - UART_EndRxTransfer(huart); - - /* Abort the UART DMA Rx channel if enabled */ - if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - { - /* Disable the UART DMA Rx request if enabled */ - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); - - /* Abort the UART DMA Rx channel */ - if (huart->hdmarx != NULL) - { - /* Set the UART DMA Abort callback : - will lead to call HAL_UART_ErrorCallback() at end of DMA abort procedure */ - huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError; - - /* Abort DMA RX */ - if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK) - { - /* Call Directly huart->hdmarx->XferAbortCallback function in case of error */ - huart->hdmarx->XferAbortCallback(huart->hdmarx); - } - } - else - { - /* Call user error callback */ -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /*Call registered error callback*/ - huart->ErrorCallback(huart); -#else - /*Call legacy weak error callback*/ - HAL_UART_ErrorCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - - } - } - else - { - /* Call user error callback */ -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /*Call registered error callback*/ - huart->ErrorCallback(huart); -#else - /*Call legacy weak error callback*/ - HAL_UART_ErrorCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - } - } - else - { - /* Non Blocking error : transfer could go on. - Error is notified to user through user error callback */ -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /*Call registered error callback*/ - huart->ErrorCallback(huart); -#else - /*Call legacy weak error callback*/ - HAL_UART_ErrorCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - huart->ErrorCode = HAL_UART_ERROR_NONE; - } - } - return; - - } /* End if some error occurs */ - - /* Check current reception Mode : - If Reception till IDLE event has been selected : */ - if ((huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - && ((isrflags & USART_ISR_IDLE) != 0U) - && ((cr1its & USART_ISR_IDLE) != 0U)) - { - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF); - - /* Check if DMA mode is enabled in UART */ - if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - { - /* DMA mode enabled */ - /* Check received length : If all expected data are received, do nothing, - (DMA cplt callback will be called). - Otherwise, if at least one data has already been received, IDLE event is to be notified to user */ - uint16_t nb_remaining_rx_data = (uint16_t) __HAL_DMA_GET_COUNTER(huart->hdmarx); - if ((nb_remaining_rx_data > 0U) - && (nb_remaining_rx_data < huart->RxXferSize)) - { - /* Reception is not complete */ - huart->RxXferCount = nb_remaining_rx_data; - - /* In Normal mode, end DMA xfer and HAL UART Rx process*/ - if (huart->hdmarx->Init.Mode != DMA_CIRCULAR) - { - /* Disable PE and ERR (Frame error, noise error, overrun error) interrupts */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE); - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - - /* Disable the DMA transfer for the receiver request by resetting the DMAR bit - in the UART CR3 register */ - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); - - /* At end of Rx process, restore huart->RxState to Ready */ - huart->RxState = HAL_UART_STATE_READY; - huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - - /* Last bytes received, so no need as the abort is immediate */ - (void)HAL_DMA_Abort(huart->hdmarx); - } - - /* Initialize type of RxEvent that correspond to RxEvent callback execution; - In this case, Rx Event type is Idle Event */ - huart->RxEventType = HAL_UART_RXEVENT_IDLE; - -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /*Call registered Rx Event callback*/ - huart->RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount)); -#else - /*Call legacy weak Rx Event callback*/ - HAL_UARTEx_RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount)); -#endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ - } - return; - } - else - { - /* DMA mode not enabled */ - /* Check received length : If all expected data are received, do nothing. - Otherwise, if at least one data has already been received, IDLE event is to be notified to user */ - uint16_t nb_rx_data = huart->RxXferSize - huart->RxXferCount; - if ((huart->RxXferCount > 0U) - && (nb_rx_data > 0U)) - { - /* Disable the UART Parity Error Interrupt and RXNE interrupts */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE)); - - /* Disable the UART Error Interrupt:(Frame error, noise error, overrun error) and RX FIFO Threshold interrupt */ - ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE)); - - /* Rx process is completed, restore huart->RxState to Ready */ - huart->RxState = HAL_UART_STATE_READY; - huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - - /* Clear RxISR function pointer */ - huart->RxISR = NULL; - - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - - /* Initialize type of RxEvent that correspond to RxEvent callback execution; - In this case, Rx Event type is Idle Event */ - huart->RxEventType = HAL_UART_RXEVENT_IDLE; - -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /*Call registered Rx complete callback*/ - huart->RxEventCallback(huart, nb_rx_data); -#else - /*Call legacy weak Rx Event callback*/ - HAL_UARTEx_RxEventCallback(huart, nb_rx_data); -#endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ - } - return; - } - } - - /* UART wakeup from Stop mode interrupt occurred ---------------------------*/ - if (((isrflags & USART_ISR_WUF) != 0U) && ((cr3its & USART_CR3_WUFIE) != 0U)) - { - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_WUF); - - /* UART Rx state is not reset as a reception process might be ongoing. - If UART handle state fields need to be reset to READY, this could be done in Wakeup callback */ - -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /* Call registered Wakeup Callback */ - huart->WakeupCallback(huart); -#else - /* Call legacy weak Wakeup Callback */ - HAL_UARTEx_WakeupCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - return; - } - - /* UART in mode Transmitter ------------------------------------------------*/ - if (((isrflags & USART_ISR_TXE_TXFNF) != 0U) - && (((cr1its & USART_CR1_TXEIE_TXFNFIE) != 0U) - || ((cr3its & USART_CR3_TXFTIE) != 0U))) - { - if (huart->TxISR != NULL) - { - huart->TxISR(huart); - } - return; - } - - /* UART in mode Transmitter (transmission end) -----------------------------*/ - if (((isrflags & USART_ISR_TC) != 0U) && ((cr1its & USART_CR1_TCIE) != 0U)) - { - UART_EndTransmit_IT(huart); - return; - } - - /* UART TX Fifo Empty occurred ----------------------------------------------*/ - if (((isrflags & USART_ISR_TXFE) != 0U) && ((cr1its & USART_CR1_TXFEIE) != 0U)) - { -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /* Call registered Tx Fifo Empty Callback */ - huart->TxFifoEmptyCallback(huart); -#else - /* Call legacy weak Tx Fifo Empty Callback */ - HAL_UARTEx_TxFifoEmptyCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - return; - } - - /* UART RX Fifo Full occurred ----------------------------------------------*/ - if (((isrflags & USART_ISR_RXFF) != 0U) && ((cr1its & USART_CR1_RXFFIE) != 0U)) - { -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /* Call registered Rx Fifo Full Callback */ - huart->RxFifoFullCallback(huart); -#else - /* Call legacy weak Rx Fifo Full Callback */ - HAL_UARTEx_RxFifoFullCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - return; - } -} - -/** - * @brief Tx Transfer completed callback. - * @param huart UART handle. - * @retval None - */ -__weak void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(huart); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_UART_TxCpltCallback can be implemented in the user file. - */ -} - -/** - * @brief Tx Half Transfer completed callback. - * @param huart UART handle. - * @retval None - */ -__weak void HAL_UART_TxHalfCpltCallback(UART_HandleTypeDef *huart) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(huart); - - /* NOTE: This function should not be modified, when the callback is needed, - the HAL_UART_TxHalfCpltCallback can be implemented in the user file. - */ -} - -/** - * @brief Rx Transfer completed callback. - * @param huart UART handle. - * @retval None - */ -__weak void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(huart); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_UART_RxCpltCallback can be implemented in the user file. - */ -} - -/** - * @brief Rx Half Transfer completed callback. - * @param huart UART handle. - * @retval None - */ -__weak void HAL_UART_RxHalfCpltCallback(UART_HandleTypeDef *huart) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(huart); - - /* NOTE: This function should not be modified, when the callback is needed, - the HAL_UART_RxHalfCpltCallback can be implemented in the user file. - */ -} - -/** - * @brief UART error callback. - * @param huart UART handle. - * @retval None - */ -__weak void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(huart); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_UART_ErrorCallback can be implemented in the user file. - */ -} - -/** - * @brief UART Abort Complete callback. - * @param huart UART handle. - * @retval None - */ -__weak void HAL_UART_AbortCpltCallback(UART_HandleTypeDef *huart) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(huart); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_UART_AbortCpltCallback can be implemented in the user file. - */ -} - -/** - * @brief UART Abort Complete callback. - * @param huart UART handle. - * @retval None - */ -__weak void HAL_UART_AbortTransmitCpltCallback(UART_HandleTypeDef *huart) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(huart); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_UART_AbortTransmitCpltCallback can be implemented in the user file. - */ -} - -/** - * @brief UART Abort Receive Complete callback. - * @param huart UART handle. - * @retval None - */ -__weak void HAL_UART_AbortReceiveCpltCallback(UART_HandleTypeDef *huart) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(huart); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_UART_AbortReceiveCpltCallback can be implemented in the user file. - */ -} - -/** - * @brief Reception Event Callback (Rx event notification called after use of advanced reception service). - * @param huart UART handle - * @param Size Number of data available in application reception buffer (indicates a position in - * reception buffer until which, data are available) - * @retval None - */ -__weak void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t Size) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(huart); - UNUSED(Size); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_UARTEx_RxEventCallback can be implemented in the user file. - */ -} - -/** - * @} - */ - -/** @defgroup UART_Exported_Functions_Group3 Peripheral Control functions - * @brief UART control functions - * -@verbatim - =============================================================================== - ##### Peripheral Control functions ##### - =============================================================================== - [..] - This subsection provides a set of functions allowing to control the UART. - (+) HAL_UART_ReceiverTimeout_Config() API allows to configure the receiver timeout value on the fly - (+) HAL_UART_EnableReceiverTimeout() API enables the receiver timeout feature - (+) HAL_UART_DisableReceiverTimeout() API disables the receiver timeout feature - (+) HAL_MultiProcessor_EnableMuteMode() API enables mute mode - (+) HAL_MultiProcessor_DisableMuteMode() API disables mute mode - (+) HAL_MultiProcessor_EnterMuteMode() API enters mute mode - (+) UART_SetConfig() API configures the UART peripheral - (+) UART_AdvFeatureConfig() API optionally configures the UART advanced features - (+) UART_CheckIdleState() API ensures that TEACK and/or REACK are set after initialization - (+) HAL_HalfDuplex_EnableTransmitter() API disables receiver and enables transmitter - (+) HAL_HalfDuplex_EnableReceiver() API disables transmitter and enables receiver - (+) HAL_LIN_SendBreak() API transmits the break characters -@endverbatim - * @{ - */ - -/** - * @brief Update on the fly the receiver timeout value in RTOR register. - * @param huart Pointer to a UART_HandleTypeDef structure that contains - * the configuration information for the specified UART module. - * @param TimeoutValue receiver timeout value in number of baud blocks. The timeout - * value must be less or equal to 0x0FFFFFFFF. - * @retval None - */ -void HAL_UART_ReceiverTimeout_Config(UART_HandleTypeDef *huart, uint32_t TimeoutValue) -{ - if (!(IS_LPUART_INSTANCE(huart->Instance))) - { - assert_param(IS_UART_RECEIVER_TIMEOUT_VALUE(TimeoutValue)); - MODIFY_REG(huart->Instance->RTOR, USART_RTOR_RTO, TimeoutValue); - } -} - -/** - * @brief Enable the UART receiver timeout feature. - * @param huart Pointer to a UART_HandleTypeDef structure that contains - * the configuration information for the specified UART module. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UART_EnableReceiverTimeout(UART_HandleTypeDef *huart) -{ - if (!(IS_LPUART_INSTANCE(huart->Instance))) - { - if (huart->gState == HAL_UART_STATE_READY) - { - /* Process Locked */ - __HAL_LOCK(huart); - - huart->gState = HAL_UART_STATE_BUSY; - - /* Set the USART RTOEN bit */ - SET_BIT(huart->Instance->CR2, USART_CR2_RTOEN); - - huart->gState = HAL_UART_STATE_READY; - - /* Process Unlocked */ - __HAL_UNLOCK(huart); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } - } - else - { - return HAL_ERROR; - } -} - -/** - * @brief Disable the UART receiver timeout feature. - * @param huart Pointer to a UART_HandleTypeDef structure that contains - * the configuration information for the specified UART module. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UART_DisableReceiverTimeout(UART_HandleTypeDef *huart) -{ - if (!(IS_LPUART_INSTANCE(huart->Instance))) - { - if (huart->gState == HAL_UART_STATE_READY) - { - /* Process Locked */ - __HAL_LOCK(huart); - - huart->gState = HAL_UART_STATE_BUSY; - - /* Clear the USART RTOEN bit */ - CLEAR_BIT(huart->Instance->CR2, USART_CR2_RTOEN); - - huart->gState = HAL_UART_STATE_READY; - - /* Process Unlocked */ - __HAL_UNLOCK(huart); - - return HAL_OK; - } - else - { - return HAL_BUSY; - } - } - else - { - return HAL_ERROR; - } -} - -/** - * @brief Enable UART in mute mode (does not mean UART enters mute mode; - * to enter mute mode, HAL_MultiProcessor_EnterMuteMode() API must be called). - * @param huart UART handle. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_MultiProcessor_EnableMuteMode(UART_HandleTypeDef *huart) -{ - __HAL_LOCK(huart); - - huart->gState = HAL_UART_STATE_BUSY; - - /* Enable USART mute mode by setting the MME bit in the CR1 register */ - ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_MME); - - huart->gState = HAL_UART_STATE_READY; - - return (UART_CheckIdleState(huart)); -} - -/** - * @brief Disable UART mute mode (does not mean the UART actually exits mute mode - * as it may not have been in mute mode at this very moment). - * @param huart UART handle. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_MultiProcessor_DisableMuteMode(UART_HandleTypeDef *huart) -{ - __HAL_LOCK(huart); - - huart->gState = HAL_UART_STATE_BUSY; - - /* Disable USART mute mode by clearing the MME bit in the CR1 register */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_MME); - - huart->gState = HAL_UART_STATE_READY; - - return (UART_CheckIdleState(huart)); -} - -/** - * @brief Enter UART mute mode (means UART actually enters mute mode). - * @note To exit from mute mode, HAL_MultiProcessor_DisableMuteMode() API must be called. - * @param huart UART handle. - * @retval None - */ -void HAL_MultiProcessor_EnterMuteMode(UART_HandleTypeDef *huart) -{ - __HAL_UART_SEND_REQ(huart, UART_MUTE_MODE_REQUEST); -} - -/** - * @brief Enable the UART transmitter and disable the UART receiver. - * @param huart UART handle. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_HalfDuplex_EnableTransmitter(UART_HandleTypeDef *huart) -{ - __HAL_LOCK(huart); - huart->gState = HAL_UART_STATE_BUSY; - - /* Clear TE and RE bits */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TE | USART_CR1_RE)); - - /* Enable the USART's transmit interface by setting the TE bit in the USART CR1 register */ - ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TE); - - huart->gState = HAL_UART_STATE_READY; - - __HAL_UNLOCK(huart); - - return HAL_OK; -} - -/** - * @brief Enable the UART receiver and disable the UART transmitter. - * @param huart UART handle. - * @retval HAL status. - */ -HAL_StatusTypeDef HAL_HalfDuplex_EnableReceiver(UART_HandleTypeDef *huart) -{ - __HAL_LOCK(huart); - huart->gState = HAL_UART_STATE_BUSY; - - /* Clear TE and RE bits */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TE | USART_CR1_RE)); - - /* Enable the USART's receive interface by setting the RE bit in the USART CR1 register */ - ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RE); - - huart->gState = HAL_UART_STATE_READY; - - __HAL_UNLOCK(huart); - - return HAL_OK; -} - - -/** - * @brief Transmit break characters. - * @param huart UART handle. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_LIN_SendBreak(UART_HandleTypeDef *huart) -{ - /* Check the parameters */ - assert_param(IS_UART_LIN_INSTANCE(huart->Instance)); - - __HAL_LOCK(huart); - - huart->gState = HAL_UART_STATE_BUSY; - - /* Send break characters */ - __HAL_UART_SEND_REQ(huart, UART_SENDBREAK_REQUEST); - - huart->gState = HAL_UART_STATE_READY; - - __HAL_UNLOCK(huart); - - return HAL_OK; -} - -/** - * @} - */ - -/** @defgroup UART_Exported_Functions_Group4 Peripheral State and Error functions - * @brief UART Peripheral State functions - * -@verbatim - ============================================================================== - ##### Peripheral State and Error functions ##### - ============================================================================== - [..] - This subsection provides functions allowing to : - (+) Return the UART handle state. - (+) Return the UART handle error code - -@endverbatim - * @{ - */ - -/** - * @brief Return the UART handle state. - * @param huart Pointer to a UART_HandleTypeDef structure that contains - * the configuration information for the specified UART. - * @retval HAL state - */ -HAL_UART_StateTypeDef HAL_UART_GetState(const UART_HandleTypeDef *huart) -{ - uint32_t temp1; - uint32_t temp2; - temp1 = huart->gState; - temp2 = huart->RxState; - - return (HAL_UART_StateTypeDef)(temp1 | temp2); -} - -/** - * @brief Return the UART handle error code. - * @param huart Pointer to a UART_HandleTypeDef structure that contains - * the configuration information for the specified UART. - * @retval UART Error Code - */ -uint32_t HAL_UART_GetError(const UART_HandleTypeDef *huart) -{ - return huart->ErrorCode; -} -/** - * @} - */ - -/** - * @} - */ - -/** @defgroup UART_Private_Functions UART Private Functions - * @{ - */ - -/** - * @brief Initialize the callbacks to their default values. - * @param huart UART handle. - * @retval none - */ -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) -void UART_InitCallbacksToDefault(UART_HandleTypeDef *huart) -{ - /* Init the UART Callback settings */ - huart->TxHalfCpltCallback = HAL_UART_TxHalfCpltCallback; /* Legacy weak TxHalfCpltCallback */ - huart->TxCpltCallback = HAL_UART_TxCpltCallback; /* Legacy weak TxCpltCallback */ - huart->RxHalfCpltCallback = HAL_UART_RxHalfCpltCallback; /* Legacy weak RxHalfCpltCallback */ - huart->RxCpltCallback = HAL_UART_RxCpltCallback; /* Legacy weak RxCpltCallback */ - huart->ErrorCallback = HAL_UART_ErrorCallback; /* Legacy weak ErrorCallback */ - huart->AbortCpltCallback = HAL_UART_AbortCpltCallback; /* Legacy weak AbortCpltCallback */ - huart->AbortTransmitCpltCallback = HAL_UART_AbortTransmitCpltCallback; /* Legacy weak AbortTransmitCpltCallback */ - huart->AbortReceiveCpltCallback = HAL_UART_AbortReceiveCpltCallback; /* Legacy weak AbortReceiveCpltCallback */ - huart->WakeupCallback = HAL_UARTEx_WakeupCallback; /* Legacy weak WakeupCallback */ - huart->RxFifoFullCallback = HAL_UARTEx_RxFifoFullCallback; /* Legacy weak RxFifoFullCallback */ - huart->TxFifoEmptyCallback = HAL_UARTEx_TxFifoEmptyCallback; /* Legacy weak TxFifoEmptyCallback */ - huart->RxEventCallback = HAL_UARTEx_RxEventCallback; /* Legacy weak RxEventCallback */ - -} -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - -/** - * @brief Configure the UART peripheral. - * @param huart UART handle. - * @retval HAL status - */ -HAL_StatusTypeDef UART_SetConfig(UART_HandleTypeDef *huart) -{ - uint32_t tmpreg; - uint16_t brrtemp; - UART_ClockSourceTypeDef clocksource; - uint32_t usartdiv; - HAL_StatusTypeDef ret = HAL_OK; - uint32_t lpuart_ker_ck_pres; - PLL2_ClocksTypeDef pll2_clocks; - PLL3_ClocksTypeDef pll3_clocks; - uint32_t pclk; - - /* Check the parameters */ - assert_param(IS_UART_BAUDRATE(huart->Init.BaudRate)); - assert_param(IS_UART_WORD_LENGTH(huart->Init.WordLength)); - if (UART_INSTANCE_LOWPOWER(huart)) - { - assert_param(IS_LPUART_STOPBITS(huart->Init.StopBits)); - } - else - { - assert_param(IS_UART_STOPBITS(huart->Init.StopBits)); - assert_param(IS_UART_ONE_BIT_SAMPLE(huart->Init.OneBitSampling)); - } - - assert_param(IS_UART_PARITY(huart->Init.Parity)); - assert_param(IS_UART_MODE(huart->Init.Mode)); - assert_param(IS_UART_HARDWARE_FLOW_CONTROL(huart->Init.HwFlowCtl)); - assert_param(IS_UART_OVERSAMPLING(huart->Init.OverSampling)); - assert_param(IS_UART_PRESCALER(huart->Init.ClockPrescaler)); - - /*-------------------------- USART CR1 Configuration -----------------------*/ - /* Clear M, PCE, PS, TE, RE and OVER8 bits and configure - * 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 ; - MODIFY_REG(huart->Instance->CR1, USART_CR1_FIELDS, tmpreg); - - /*-------------------------- 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); - - /*-------------------------- USART CR3 Configuration -----------------------*/ - /* 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; - - if (!(UART_INSTANCE_LOWPOWER(huart))) - { - tmpreg |= huart->Init.OneBitSampling; - } - MODIFY_REG(huart->Instance->CR3, USART_CR3_FIELDS, tmpreg); - - /*-------------------------- USART PRESC Configuration -----------------------*/ - /* Configure - * - UART Clock Prescaler : set PRESCALER according to huart->Init.ClockPrescaler value */ - MODIFY_REG(huart->Instance->PRESC, USART_PRESC_PRESCALER, huart->Init.ClockPrescaler); - - /*-------------------------- USART BRR Configuration -----------------------*/ - UART_GETCLOCKSOURCE(huart, clocksource); - - /* Check LPUART instance */ - if (UART_INSTANCE_LOWPOWER(huart)) - { - /* Retrieve frequency clock */ - switch (clocksource) - { - case UART_CLOCKSOURCE_D3PCLK1: - pclk = HAL_RCCEx_GetD3PCLK1Freq(); - break; - case UART_CLOCKSOURCE_PLL2: - HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks); - pclk = pll2_clocks.PLL2_Q_Frequency; - break; - case UART_CLOCKSOURCE_PLL3: - HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks); - pclk = pll3_clocks.PLL3_Q_Frequency; - break; - case UART_CLOCKSOURCE_HSI: - if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U) - { - pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U)); - } - else - { - pclk = (uint32_t) HSI_VALUE; - } - break; - case UART_CLOCKSOURCE_CSI: - pclk = (uint32_t) CSI_VALUE; - break; - case UART_CLOCKSOURCE_LSE: - pclk = (uint32_t) LSE_VALUE; - break; - default: - pclk = 0U; - ret = HAL_ERROR; - break; - } - - /* If proper clock source reported */ - if (pclk != 0U) - { - /* Compute clock after Prescaler */ - lpuart_ker_ck_pres = (pclk / UARTPrescTable[huart->Init.ClockPrescaler]); - - /* Ensure that Frequency clock is in the range [3 * baudrate, 4096 * baudrate] */ - if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) || - (lpuart_ker_ck_pres > (4096U * huart->Init.BaudRate))) - { - ret = HAL_ERROR; - } - else - { - /* Check computed UsartDiv value is in allocated range - (it is forbidden to write values lower than 0x300 in the LPUART_BRR register) */ - usartdiv = (uint32_t)(UART_DIV_LPUART(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler)); - if ((usartdiv >= LPUART_BRR_MIN) && (usartdiv <= LPUART_BRR_MAX)) - { - huart->Instance->BRR = usartdiv; - } - else - { - ret = HAL_ERROR; - } - } /* if ( (lpuart_ker_ck_pres < (3 * huart->Init.BaudRate) ) || - (lpuart_ker_ck_pres > (4096 * huart->Init.BaudRate) )) */ - } /* if (pclk != 0) */ - } - /* Check UART Over Sampling to set Baud Rate Register */ - else if (huart->Init.OverSampling == UART_OVERSAMPLING_8) - { - switch (clocksource) - { - case UART_CLOCKSOURCE_D2PCLK1: - pclk = HAL_RCC_GetPCLK1Freq(); - break; - case UART_CLOCKSOURCE_D2PCLK2: - pclk = HAL_RCC_GetPCLK2Freq(); - break; - case UART_CLOCKSOURCE_PLL2: - HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks); - pclk = pll2_clocks.PLL2_Q_Frequency; - break; - case UART_CLOCKSOURCE_PLL3: - HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks); - pclk = pll3_clocks.PLL3_Q_Frequency; - break; - case UART_CLOCKSOURCE_HSI: - if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U) - { - pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U)); - } - else - { - pclk = (uint32_t) HSI_VALUE; - } - break; - case UART_CLOCKSOURCE_CSI: - pclk = (uint32_t) CSI_VALUE; - break; - case UART_CLOCKSOURCE_LSE: - pclk = (uint32_t) LSE_VALUE; - break; - default: - pclk = 0U; - ret = HAL_ERROR; - break; - } - - /* USARTDIV must be greater than or equal to 0d16 */ - if (pclk != 0U) - { - usartdiv = (uint32_t)(UART_DIV_SAMPLING8(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler)); - if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX)) - { - brrtemp = (uint16_t)(usartdiv & 0xFFF0U); - brrtemp |= (uint16_t)((usartdiv & (uint16_t)0x000FU) >> 1U); - huart->Instance->BRR = brrtemp; - } - else - { - ret = HAL_ERROR; - } - } - } - else - { - switch (clocksource) - { - case UART_CLOCKSOURCE_D2PCLK1: - pclk = HAL_RCC_GetPCLK1Freq(); - break; - case UART_CLOCKSOURCE_D2PCLK2: - pclk = HAL_RCC_GetPCLK2Freq(); - break; - case UART_CLOCKSOURCE_PLL2: - HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks); - pclk = pll2_clocks.PLL2_Q_Frequency; - break; - case UART_CLOCKSOURCE_PLL3: - HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks); - pclk = pll3_clocks.PLL3_Q_Frequency; - break; - case UART_CLOCKSOURCE_HSI: - if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U) - { - pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U)); - } - else - { - pclk = (uint32_t) HSI_VALUE; - } - break; - case UART_CLOCKSOURCE_CSI: - pclk = (uint32_t) CSI_VALUE; - break; - case UART_CLOCKSOURCE_LSE: - pclk = (uint32_t) LSE_VALUE; - break; - default: - pclk = 0U; - ret = HAL_ERROR; - break; - } - - if (pclk != 0U) - { - /* USARTDIV must be greater than or equal to 0d16 */ - usartdiv = (uint32_t)(UART_DIV_SAMPLING16(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler)); - if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX)) - { - huart->Instance->BRR = (uint16_t)usartdiv; - } - else - { - ret = HAL_ERROR; - } - } - } - - /* Initialize the number of data to process during RX/TX ISR execution */ - huart->NbTxDataToProcess = 1; - huart->NbRxDataToProcess = 1; - - /* Clear ISR function pointers */ - huart->RxISR = NULL; - huart->TxISR = NULL; - - return ret; -} - -/** - * @brief Configure the UART peripheral advanced features. - * @param huart UART handle. - * @retval None - */ -void UART_AdvFeatureConfig(UART_HandleTypeDef *huart) -{ - /* 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)) - { - assert_param(IS_UART_ADVFEATURE_TXINV(huart->AdvancedInit.TxPinLevelInvert)); - MODIFY_REG(huart->Instance->CR2, USART_CR2_TXINV, huart->AdvancedInit.TxPinLevelInvert); - } - - /* if required, configure RX pin active level inversion */ - if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXINVERT_INIT)) - { - assert_param(IS_UART_ADVFEATURE_RXINV(huart->AdvancedInit.RxPinLevelInvert)); - MODIFY_REG(huart->Instance->CR2, USART_CR2_RXINV, huart->AdvancedInit.RxPinLevelInvert); - } - - /* if required, configure data inversion */ - if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DATAINVERT_INIT)) - { - assert_param(IS_UART_ADVFEATURE_DATAINV(huart->AdvancedInit.DataInvert)); - MODIFY_REG(huart->Instance->CR2, USART_CR2_DATAINV, huart->AdvancedInit.DataInvert); - } - - /* if required, configure RX/TX pins swap */ - if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_SWAP_INIT)) - { - assert_param(IS_UART_ADVFEATURE_SWAP(huart->AdvancedInit.Swap)); - MODIFY_REG(huart->Instance->CR2, USART_CR2_SWAP, huart->AdvancedInit.Swap); - } - - /* if required, configure RX overrun detection disabling */ - if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXOVERRUNDISABLE_INIT)) - { - assert_param(IS_UART_OVERRUN(huart->AdvancedInit.OverrunDisable)); - MODIFY_REG(huart->Instance->CR3, USART_CR3_OVRDIS, huart->AdvancedInit.OverrunDisable); - } - - /* if required, configure DMA disabling on reception error */ - if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DMADISABLEONERROR_INIT)) - { - assert_param(IS_UART_ADVFEATURE_DMAONRXERROR(huart->AdvancedInit.DMADisableonRxError)); - MODIFY_REG(huart->Instance->CR3, USART_CR3_DDRE, huart->AdvancedInit.DMADisableonRxError); - } - - /* if required, configure auto Baud rate detection scheme */ - if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_AUTOBAUDRATE_INIT)) - { - 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); - /* set auto Baudrate detection parameters if detection is enabled */ - if (huart->AdvancedInit.AutoBaudRateEnable == UART_ADVFEATURE_AUTOBAUDRATE_ENABLE) - { - assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATEMODE(huart->AdvancedInit.AutoBaudRateMode)); - MODIFY_REG(huart->Instance->CR2, USART_CR2_ABRMODE, huart->AdvancedInit.AutoBaudRateMode); - } - } - - /* if required, configure MSB first on communication line */ - if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_MSBFIRST_INIT)) - { - assert_param(IS_UART_ADVFEATURE_MSBFIRST(huart->AdvancedInit.MSBFirst)); - MODIFY_REG(huart->Instance->CR2, USART_CR2_MSBFIRST, huart->AdvancedInit.MSBFirst); - } -} - -/** - * @brief Check the UART Idle State. - * @param huart UART handle. - * @retval HAL status - */ -HAL_StatusTypeDef UART_CheckIdleState(UART_HandleTypeDef *huart) -{ - uint32_t tickstart; - - /* Initialize the UART ErrorCode */ - huart->ErrorCode = HAL_UART_ERROR_NONE; - - /* Init tickstart for timeout management */ - tickstart = HAL_GetTick(); - - /* Check if the Transmitter is enabled */ - if ((huart->Instance->CR1 & USART_CR1_TE) == USART_CR1_TE) - { - /* Wait until TEACK flag is set */ - if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_TEACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK) - { - /* Disable TXE interrupt for the interrupt process */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE_TXFNFIE)); - - huart->gState = HAL_UART_STATE_READY; - - __HAL_UNLOCK(huart); - - /* Timeout occurred */ - return HAL_TIMEOUT; - } - } - - /* Check if the Receiver is enabled */ - if ((huart->Instance->CR1 & USART_CR1_RE) == USART_CR1_RE) - { - /* Wait until REACK flag is set */ - if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_REACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK) - { - /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) - interrupts for the interrupt process */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE)); - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - - huart->RxState = HAL_UART_STATE_READY; - - __HAL_UNLOCK(huart); - - /* Timeout occurred */ - return HAL_TIMEOUT; - } - } - - /* Initialize the UART State */ - huart->gState = HAL_UART_STATE_READY; - huart->RxState = HAL_UART_STATE_READY; - huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - huart->RxEventType = HAL_UART_RXEVENT_TC; - - __HAL_UNLOCK(huart); - - return HAL_OK; -} - -/** - * @brief This function handles UART Communication Timeout. It waits - * until a flag is no longer in the specified status. - * @param huart UART handle. - * @param Flag Specifies the UART flag to check - * @param Status The actual Flag status (SET or RESET) - * @param Tickstart Tick start value - * @param Timeout Timeout duration - * @retval HAL status - */ -HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout(UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status, - uint32_t Tickstart, uint32_t Timeout) -{ - /* Wait until flag is set */ - while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status) - { - /* Check for the Timeout */ - if (Timeout != HAL_MAX_DELAY) - { - if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) - { - - return HAL_TIMEOUT; - } - - if (READ_BIT(huart->Instance->CR1, USART_CR1_RE) != 0U) - { - if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) == SET) - { - /* Clear Overrun Error flag*/ - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF); - - /* Blocking error : transfer is aborted - Set the UART state ready to be able to start again the process, - Disable Rx Interrupts if ongoing */ - UART_EndRxTransfer(huart); - - huart->ErrorCode = HAL_UART_ERROR_ORE; - - /* Process Unlocked */ - __HAL_UNLOCK(huart); - - return HAL_ERROR; - } - if (__HAL_UART_GET_FLAG(huart, UART_FLAG_RTOF) == SET) - { - /* Clear Receiver Timeout flag*/ - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF); - - /* Blocking error : transfer is aborted - Set the UART state ready to be able to start again the process, - Disable Rx Interrupts if ongoing */ - UART_EndRxTransfer(huart); - - huart->ErrorCode = HAL_UART_ERROR_RTO; - - /* Process Unlocked */ - __HAL_UNLOCK(huart); - - return HAL_TIMEOUT; - } - } - } - } - return HAL_OK; -} - -/** - * @brief Start Receive operation in interrupt mode. - * @note This function could be called by all HAL UART API providing reception in Interrupt mode. - * @note When calling this function, parameters validity is considered as already checked, - * i.e. Rx State, buffer address, ... - * UART Handle is assumed as Locked. - * @param huart UART handle. - * @param pData Pointer to data buffer (u8 or u16 data elements). - * @param Size Amount of data elements (u8 or u16) to be received. - * @retval HAL status - */ -HAL_StatusTypeDef UART_Start_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size) -{ - huart->pRxBuffPtr = pData; - huart->RxXferSize = Size; - huart->RxXferCount = Size; - huart->RxISR = NULL; - - /* Computation of UART mask to apply to RDR register */ - UART_MASK_COMPUTATION(huart); - - huart->ErrorCode = HAL_UART_ERROR_NONE; - huart->RxState = HAL_UART_STATE_BUSY_RX; - - /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */ - ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_EIE); - - /* Configure Rx interrupt processing */ - if ((huart->FifoMode == UART_FIFOMODE_ENABLE) && (Size >= huart->NbRxDataToProcess)) - { - /* Set the Rx ISR function pointer according to the data word length */ - if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) - { - huart->RxISR = UART_RxISR_16BIT_FIFOEN; - } - else - { - huart->RxISR = UART_RxISR_8BIT_FIFOEN; - } - - /* Enable the UART Parity Error interrupt and RX FIFO Threshold interrupt */ - if (huart->Init.Parity != UART_PARITY_NONE) - { - ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE); - } - ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_RXFTIE); - } - else - { - /* Set the Rx ISR function pointer according to the data word length */ - if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) - { - huart->RxISR = UART_RxISR_16BIT; - } - else - { - huart->RxISR = UART_RxISR_8BIT; - } - - /* Enable the UART Parity Error interrupt and Data Register Not Empty interrupt */ - if (huart->Init.Parity != UART_PARITY_NONE) - { - ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE | USART_CR1_RXNEIE_RXFNEIE); - } - else - { - ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE); - } - } - return HAL_OK; -} - -/** - * @brief Start Receive operation in DMA mode. - * @note This function could be called by all HAL UART API providing reception in DMA mode. - * @note When calling this function, parameters validity is considered as already checked, - * i.e. Rx State, buffer address, ... - * UART Handle is assumed as Locked. - * @param huart UART handle. - * @param pData Pointer to data buffer (u8 or u16 data elements). - * @param Size Amount of data elements (u8 or u16) to be received. - * @retval HAL status - */ -HAL_StatusTypeDef UART_Start_Receive_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size) -{ - huart->pRxBuffPtr = pData; - huart->RxXferSize = Size; - - huart->ErrorCode = HAL_UART_ERROR_NONE; - huart->RxState = HAL_UART_STATE_BUSY_RX; - - if (huart->hdmarx != NULL) - { - /* Set the UART DMA transfer complete callback */ - huart->hdmarx->XferCpltCallback = UART_DMAReceiveCplt; - - /* Set the UART DMA Half transfer complete callback */ - huart->hdmarx->XferHalfCpltCallback = UART_DMARxHalfCplt; - - /* Set the DMA error callback */ - huart->hdmarx->XferErrorCallback = UART_DMAError; - - /* Set the DMA abort callback */ - huart->hdmarx->XferAbortCallback = NULL; - - /* Enable the DMA channel */ - if (HAL_DMA_Start_IT(huart->hdmarx, (uint32_t)&huart->Instance->RDR, (uint32_t)huart->pRxBuffPtr, Size) != HAL_OK) - { - /* Set error code to DMA */ - huart->ErrorCode = HAL_UART_ERROR_DMA; - - /* Restore huart->RxState to ready */ - huart->RxState = HAL_UART_STATE_READY; - - return HAL_ERROR; - } - } - - /* Enable the UART Parity Error Interrupt */ - if (huart->Init.Parity != UART_PARITY_NONE) - { - ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE); - } - - /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */ - ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_EIE); - - /* Enable the DMA transfer for the receiver request by setting the DMAR bit - in the UART CR3 register */ - ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_DMAR); - - return HAL_OK; -} - - -/** - * @brief End ongoing Tx transfer on UART peripheral (following error detection or Transmit completion). - * @param huart UART handle. - * @retval None - */ -static void UART_EndTxTransfer(UART_HandleTypeDef *huart) -{ - /* Disable TXEIE, TCIE, TXFT interrupts */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE_TXFNFIE | USART_CR1_TCIE)); - ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_TXFTIE)); - - /* At end of Tx process, restore huart->gState to Ready */ - huart->gState = HAL_UART_STATE_READY; -} - - -/** - * @brief End ongoing Rx transfer on UART peripheral (following error detection or Reception completion). - * @param huart UART handle. - * @retval None - */ -static void UART_EndRxTransfer(UART_HandleTypeDef *huart) -{ - /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE)); - ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE)); - - /* In case of reception waiting for IDLE event, disable also the IDLE IE interrupt source */ - if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - { - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - } - - /* At end of Rx process, restore huart->RxState to Ready */ - huart->RxState = HAL_UART_STATE_READY; - huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - - /* Reset RxIsr function pointer */ - huart->RxISR = NULL; -} - - -/** - * @brief DMA UART transmit process complete callback. - * @param hdma DMA handle. - * @retval None - */ -static void UART_DMATransmitCplt(DMA_HandleTypeDef *hdma) -{ - UART_HandleTypeDef *huart = (UART_HandleTypeDef *)(hdma->Parent); - - /* DMA Normal mode */ - if (hdma->Init.Mode != DMA_CIRCULAR) - { - huart->TxXferCount = 0U; - - /* Disable the DMA transfer for transmit request by resetting the DMAT bit - in the UART CR3 register */ - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAT); - - /* Enable the UART Transmit Complete Interrupt */ - ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE); - } - /* DMA Circular mode */ - else - { -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /*Call registered Tx complete callback*/ - huart->TxCpltCallback(huart); -#else - /*Call legacy weak Tx complete callback*/ - HAL_UART_TxCpltCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - } -} - -/** - * @brief DMA UART transmit process half complete callback. - * @param hdma DMA handle. - * @retval None - */ -static void UART_DMATxHalfCplt(DMA_HandleTypeDef *hdma) -{ - UART_HandleTypeDef *huart = (UART_HandleTypeDef *)(hdma->Parent); - -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /*Call registered Tx Half complete callback*/ - huart->TxHalfCpltCallback(huart); -#else - /*Call legacy weak Tx Half complete callback*/ - HAL_UART_TxHalfCpltCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ -} - -/** - * @brief DMA UART receive process complete callback. - * @param hdma DMA handle. - * @retval None - */ -static void UART_DMAReceiveCplt(DMA_HandleTypeDef *hdma) -{ - UART_HandleTypeDef *huart = (UART_HandleTypeDef *)(hdma->Parent); - - /* DMA Normal mode */ - if (hdma->Init.Mode != DMA_CIRCULAR) - { - huart->RxXferCount = 0U; - - /* Disable PE and ERR (Frame error, noise error, overrun error) interrupts */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE); - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - - /* Disable the DMA transfer for the receiver request by resetting the DMAR bit - in the UART CR3 register */ - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); - - /* At end of Rx process, restore huart->RxState to Ready */ - huart->RxState = HAL_UART_STATE_READY; - - /* If Reception till IDLE event has been selected, Disable IDLE Interrupt */ - if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - { - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - } - } - - /* Initialize type of RxEvent that correspond to RxEvent callback execution; - In this case, Rx Event type is Transfer Complete */ - huart->RxEventType = HAL_UART_RXEVENT_TC; - - /* Check current reception Mode : - If Reception till IDLE event has been selected : use Rx Event callback */ - if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - { -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /*Call registered Rx Event callback*/ - huart->RxEventCallback(huart, huart->RxXferSize); -#else - /*Call legacy weak Rx Event callback*/ - HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - } - else - { - /* In other cases : use Rx Complete callback */ -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /*Call registered Rx complete callback*/ - huart->RxCpltCallback(huart); -#else - /*Call legacy weak Rx complete callback*/ - HAL_UART_RxCpltCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - } -} - -/** - * @brief DMA UART receive process half complete callback. - * @param hdma DMA handle. - * @retval None - */ -static void UART_DMARxHalfCplt(DMA_HandleTypeDef *hdma) -{ - UART_HandleTypeDef *huart = (UART_HandleTypeDef *)(hdma->Parent); - - /* Initialize type of RxEvent that correspond to RxEvent callback execution; - In this case, Rx Event type is Half Transfer */ - huart->RxEventType = HAL_UART_RXEVENT_HT; - - /* Check current reception Mode : - If Reception till IDLE event has been selected : use Rx Event callback */ - if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - { -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /*Call registered Rx Event callback*/ - huart->RxEventCallback(huart, huart->RxXferSize / 2U); -#else - /*Call legacy weak Rx Event callback*/ - HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize / 2U); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - } - else - { - /* In other cases : use Rx Half Complete callback */ -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /*Call registered Rx Half complete callback*/ - huart->RxHalfCpltCallback(huart); -#else - /*Call legacy weak Rx Half complete callback*/ - HAL_UART_RxHalfCpltCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - } -} - -/** - * @brief DMA UART communication error callback. - * @param hdma DMA handle. - * @retval None - */ -static void UART_DMAError(DMA_HandleTypeDef *hdma) -{ - UART_HandleTypeDef *huart = (UART_HandleTypeDef *)(hdma->Parent); - - const HAL_UART_StateTypeDef gstate = huart->gState; - const HAL_UART_StateTypeDef rxstate = huart->RxState; - - /* Stop UART DMA Tx request if ongoing */ - if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAT)) && - (gstate == HAL_UART_STATE_BUSY_TX)) - { - huart->TxXferCount = 0U; - UART_EndTxTransfer(huart); - } - - /* Stop UART DMA Rx request if ongoing */ - if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) && - (rxstate == HAL_UART_STATE_BUSY_RX)) - { - huart->RxXferCount = 0U; - UART_EndRxTransfer(huart); - } - - huart->ErrorCode |= HAL_UART_ERROR_DMA; - -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /*Call registered error callback*/ - huart->ErrorCallback(huart); -#else - /*Call legacy weak error callback*/ - HAL_UART_ErrorCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ -} - -/** - * @brief DMA UART communication abort callback, when initiated by HAL services on Error - * (To be called at end of DMA Abort procedure following error occurrence). - * @param hdma DMA handle. - * @retval None - */ -static void UART_DMAAbortOnError(DMA_HandleTypeDef *hdma) -{ - UART_HandleTypeDef *huart = (UART_HandleTypeDef *)(hdma->Parent); - huart->RxXferCount = 0U; - huart->TxXferCount = 0U; - -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /*Call registered error callback*/ - huart->ErrorCallback(huart); -#else - /*Call legacy weak error callback*/ - HAL_UART_ErrorCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ -} - -/** - * @brief DMA UART Tx communication abort callback, when initiated by user - * (To be called at end of DMA Tx Abort procedure following user abort request). - * @note When this callback is executed, User Abort complete call back is called only if no - * Abort still ongoing for Rx DMA Handle. - * @param hdma DMA handle. - * @retval None - */ -static void UART_DMATxAbortCallback(DMA_HandleTypeDef *hdma) -{ - UART_HandleTypeDef *huart = (UART_HandleTypeDef *)(hdma->Parent); - - huart->hdmatx->XferAbortCallback = NULL; - - /* Check if an Abort process is still ongoing */ - if (huart->hdmarx != NULL) - { - if (huart->hdmarx->XferAbortCallback != NULL) - { - return; - } - } - - /* No Abort process still ongoing : All DMA channels are aborted, call user Abort Complete callback */ - huart->TxXferCount = 0U; - huart->RxXferCount = 0U; - - /* Reset errorCode */ - huart->ErrorCode = HAL_UART_ERROR_NONE; - - /* Clear the Error flags in the ICR register */ - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF | UART_CLEAR_NEF | UART_CLEAR_PEF | UART_CLEAR_FEF); - - /* Flush the whole TX FIFO (if needed) */ - if (huart->FifoMode == UART_FIFOMODE_ENABLE) - { - __HAL_UART_SEND_REQ(huart, UART_TXDATA_FLUSH_REQUEST); - } - - /* Restore huart->gState and huart->RxState to Ready */ - huart->gState = HAL_UART_STATE_READY; - huart->RxState = HAL_UART_STATE_READY; - huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - - /* Call user Abort complete callback */ -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /* Call registered Abort complete callback */ - huart->AbortCpltCallback(huart); -#else - /* Call legacy weak Abort complete callback */ - HAL_UART_AbortCpltCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ -} - - -/** - * @brief DMA UART Rx communication abort callback, when initiated by user - * (To be called at end of DMA Rx Abort procedure following user abort request). - * @note When this callback is executed, User Abort complete call back is called only if no - * Abort still ongoing for Tx DMA Handle. - * @param hdma DMA handle. - * @retval None - */ -static void UART_DMARxAbortCallback(DMA_HandleTypeDef *hdma) -{ - UART_HandleTypeDef *huart = (UART_HandleTypeDef *)(hdma->Parent); - - huart->hdmarx->XferAbortCallback = NULL; - - /* Check if an Abort process is still ongoing */ - if (huart->hdmatx != NULL) - { - if (huart->hdmatx->XferAbortCallback != NULL) - { - return; - } - } - - /* No Abort process still ongoing : All DMA channels are aborted, call user Abort Complete callback */ - huart->TxXferCount = 0U; - huart->RxXferCount = 0U; - - /* Reset errorCode */ - huart->ErrorCode = HAL_UART_ERROR_NONE; - - /* Clear the Error flags in the ICR register */ - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF | UART_CLEAR_NEF | UART_CLEAR_PEF | UART_CLEAR_FEF); - - /* Discard the received data */ - __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST); - - /* Restore huart->gState and huart->RxState to Ready */ - huart->gState = HAL_UART_STATE_READY; - huart->RxState = HAL_UART_STATE_READY; - huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - - /* Call user Abort complete callback */ -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /* Call registered Abort complete callback */ - huart->AbortCpltCallback(huart); -#else - /* Call legacy weak Abort complete callback */ - HAL_UART_AbortCpltCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ -} - - -/** - * @brief DMA UART Tx communication abort callback, when initiated by user by a call to - * HAL_UART_AbortTransmit_IT API (Abort only Tx transfer) - * (This callback is executed at end of DMA Tx Abort procedure following user abort request, - * and leads to user Tx Abort Complete callback execution). - * @param hdma DMA handle. - * @retval None - */ -static void UART_DMATxOnlyAbortCallback(DMA_HandleTypeDef *hdma) -{ - UART_HandleTypeDef *huart = (UART_HandleTypeDef *)(hdma->Parent); - - huart->TxXferCount = 0U; - - /* Flush the whole TX FIFO (if needed) */ - if (huart->FifoMode == UART_FIFOMODE_ENABLE) - { - __HAL_UART_SEND_REQ(huart, UART_TXDATA_FLUSH_REQUEST); - } - - /* Restore huart->gState to Ready */ - huart->gState = HAL_UART_STATE_READY; - - /* Call user Abort complete callback */ -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /* Call registered Abort Transmit Complete Callback */ - huart->AbortTransmitCpltCallback(huart); -#else - /* Call legacy weak Abort Transmit Complete Callback */ - HAL_UART_AbortTransmitCpltCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ -} - -/** - * @brief DMA UART Rx communication abort callback, when initiated by user by a call to - * HAL_UART_AbortReceive_IT API (Abort only Rx transfer) - * (This callback is executed at end of DMA Rx Abort procedure following user abort request, - * and leads to user Rx Abort Complete callback execution). - * @param hdma DMA handle. - * @retval None - */ -static void UART_DMARxOnlyAbortCallback(DMA_HandleTypeDef *hdma) -{ - UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - - huart->RxXferCount = 0U; - - /* Clear the Error flags in the ICR register */ - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF | UART_CLEAR_NEF | UART_CLEAR_PEF | UART_CLEAR_FEF); - - /* Discard the received data */ - __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST); - - /* Restore huart->RxState to Ready */ - huart->RxState = HAL_UART_STATE_READY; - huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - - /* Call user Abort complete callback */ -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /* Call registered Abort Receive Complete Callback */ - huart->AbortReceiveCpltCallback(huart); -#else - /* Call legacy weak Abort Receive Complete Callback */ - HAL_UART_AbortReceiveCpltCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ -} - -/** - * @brief TX interrupt handler for 7 or 8 bits data word length . - * @note Function is called under interruption only, once - * interruptions have been enabled by HAL_UART_Transmit_IT(). - * @param huart UART handle. - * @retval None - */ -static void UART_TxISR_8BIT(UART_HandleTypeDef *huart) -{ - /* Check that a Tx process is ongoing */ - if (huart->gState == HAL_UART_STATE_BUSY_TX) - { - if (huart->TxXferCount == 0U) - { - /* Disable the UART Transmit Data Register Empty Interrupt */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE); - - /* Enable the UART Transmit Complete Interrupt */ - ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE); - } - else - { - huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF); - huart->pTxBuffPtr++; - huart->TxXferCount--; - } - } -} - -/** - * @brief TX interrupt handler for 9 bits data word length. - * @note Function is called under interruption only, once - * interruptions have been enabled by HAL_UART_Transmit_IT(). - * @param huart UART handle. - * @retval None - */ -static void UART_TxISR_16BIT(UART_HandleTypeDef *huart) -{ - const uint16_t *tmp; - - /* Check that a Tx process is ongoing */ - if (huart->gState == HAL_UART_STATE_BUSY_TX) - { - if (huart->TxXferCount == 0U) - { - /* Disable the UART Transmit Data Register Empty Interrupt */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE); - - /* Enable the UART Transmit Complete Interrupt */ - ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE); - } - else - { - tmp = (const uint16_t *) huart->pTxBuffPtr; - huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL); - huart->pTxBuffPtr += 2U; - huart->TxXferCount--; - } - } -} - -/** - * @brief TX interrupt handler for 7 or 8 bits data word length and FIFO mode is enabled. - * @note Function is called under interruption only, once - * interruptions have been enabled by HAL_UART_Transmit_IT(). - * @param huart UART handle. - * @retval None - */ -static void UART_TxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart) -{ - uint16_t nb_tx_data; - - /* Check that a Tx process is ongoing */ - if (huart->gState == HAL_UART_STATE_BUSY_TX) - { - for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--) - { - if (huart->TxXferCount == 0U) - { - /* Disable the TX FIFO threshold interrupt */ - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_TXFTIE); - - /* Enable the UART Transmit Complete Interrupt */ - ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE); - - break; /* force exit loop */ - } - else if (READ_BIT(huart->Instance->ISR, USART_ISR_TXE_TXFNF) != 0U) - { - huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF); - huart->pTxBuffPtr++; - huart->TxXferCount--; - } - else - { - /* Nothing to do */ - } - } - } -} - -/** - * @brief TX interrupt handler for 9 bits data word length and FIFO mode is enabled. - * @note Function is called under interruption only, once - * interruptions have been enabled by HAL_UART_Transmit_IT(). - * @param huart UART handle. - * @retval None - */ -static void UART_TxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart) -{ - const uint16_t *tmp; - uint16_t nb_tx_data; - - /* Check that a Tx process is ongoing */ - if (huart->gState == HAL_UART_STATE_BUSY_TX) - { - for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--) - { - if (huart->TxXferCount == 0U) - { - /* Disable the TX FIFO threshold interrupt */ - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_TXFTIE); - - /* Enable the UART Transmit Complete Interrupt */ - ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE); - - break; /* force exit loop */ - } - else if (READ_BIT(huart->Instance->ISR, USART_ISR_TXE_TXFNF) != 0U) - { - tmp = (const uint16_t *) huart->pTxBuffPtr; - huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL); - huart->pTxBuffPtr += 2U; - huart->TxXferCount--; - } - else - { - /* Nothing to do */ - } - } - } -} - -/** - * @brief Wrap up transmission in non-blocking mode. - * @param huart pointer to a UART_HandleTypeDef structure that contains - * the configuration information for the specified UART module. - * @retval None - */ -static void UART_EndTransmit_IT(UART_HandleTypeDef *huart) -{ - /* Disable the UART Transmit Complete Interrupt */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TCIE); - - /* Tx process is ended, restore huart->gState to Ready */ - huart->gState = HAL_UART_STATE_READY; - - /* Cleat TxISR function pointer */ - huart->TxISR = NULL; - -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /*Call registered Tx complete callback*/ - huart->TxCpltCallback(huart); -#else - /*Call legacy weak Tx complete callback*/ - HAL_UART_TxCpltCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ -} - -/** - * @brief RX interrupt handler for 7 or 8 bits data word length . - * @param huart UART handle. - * @retval None - */ -static void UART_RxISR_8BIT(UART_HandleTypeDef *huart) -{ - uint16_t uhMask = huart->Mask; - uint16_t uhdata; - - /* Check that a Rx process is ongoing */ - if (huart->RxState == HAL_UART_STATE_BUSY_RX) - { - uhdata = (uint16_t) READ_REG(huart->Instance->RDR); - *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask); - huart->pRxBuffPtr++; - huart->RxXferCount--; - - if (huart->RxXferCount == 0U) - { - /* Disable the UART Parity Error Interrupt and RXNE interrupts */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE)); - - /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */ - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - - /* Rx process is completed, restore huart->RxState to Ready */ - huart->RxState = HAL_UART_STATE_READY; - - /* Clear RxISR function pointer */ - huart->RxISR = NULL; - - /* Initialize type of RxEvent to Transfer Complete */ - huart->RxEventType = HAL_UART_RXEVENT_TC; - - if (!(IS_LPUART_INSTANCE(huart->Instance))) - { - /* Check that USART RTOEN bit is set */ - if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U) - { - /* Enable the UART Receiver Timeout Interrupt */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE); - } - } - - /* Check current reception Mode : - If Reception till IDLE event has been selected : */ - if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - { - /* Set reception type to Standard */ - huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - - /* Disable IDLE interrupt */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - - if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET) - { - /* Clear IDLE Flag */ - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF); - } - -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /*Call registered Rx Event callback*/ - huart->RxEventCallback(huart, huart->RxXferSize); -#else - /*Call legacy weak Rx Event callback*/ - HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize); -#endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ - } - else - { - /* Standard reception API called */ -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /*Call registered Rx complete callback*/ - huart->RxCpltCallback(huart); -#else - /*Call legacy weak Rx complete callback*/ - HAL_UART_RxCpltCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - } - } - } - else - { - /* Clear RXNE interrupt flag */ - __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST); - } -} - -/** - * @brief RX interrupt handler for 9 bits data word length . - * @note Function is called under interruption only, once - * interruptions have been enabled by HAL_UART_Receive_IT() - * @param huart UART handle. - * @retval None - */ -static void UART_RxISR_16BIT(UART_HandleTypeDef *huart) -{ - uint16_t *tmp; - uint16_t uhMask = huart->Mask; - uint16_t uhdata; - - /* Check that a Rx process is ongoing */ - if (huart->RxState == HAL_UART_STATE_BUSY_RX) - { - uhdata = (uint16_t) READ_REG(huart->Instance->RDR); - tmp = (uint16_t *) huart->pRxBuffPtr ; - *tmp = (uint16_t)(uhdata & uhMask); - huart->pRxBuffPtr += 2U; - huart->RxXferCount--; - - if (huart->RxXferCount == 0U) - { - /* Disable the UART Parity Error Interrupt and RXNE interrupt*/ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE)); - - /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */ - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - - /* Rx process is completed, restore huart->RxState to Ready */ - huart->RxState = HAL_UART_STATE_READY; - - /* Clear RxISR function pointer */ - huart->RxISR = NULL; - - /* Initialize type of RxEvent to Transfer Complete */ - huart->RxEventType = HAL_UART_RXEVENT_TC; - - if (!(IS_LPUART_INSTANCE(huart->Instance))) - { - /* Check that USART RTOEN bit is set */ - if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U) - { - /* Enable the UART Receiver Timeout Interrupt */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE); - } - } - - /* Check current reception Mode : - If Reception till IDLE event has been selected : */ - if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - { - /* Set reception type to Standard */ - huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - - /* Disable IDLE interrupt */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - - if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET) - { - /* Clear IDLE Flag */ - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF); - } - -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /*Call registered Rx Event callback*/ - huart->RxEventCallback(huart, huart->RxXferSize); -#else - /*Call legacy weak Rx Event callback*/ - HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize); -#endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ - } - else - { - /* Standard reception API called */ -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /*Call registered Rx complete callback*/ - huart->RxCpltCallback(huart); -#else - /*Call legacy weak Rx complete callback*/ - HAL_UART_RxCpltCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - } - } - } - else - { - /* Clear RXNE interrupt flag */ - __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST); - } -} - -/** - * @brief RX interrupt handler for 7 or 8 bits data word length and FIFO mode is enabled. - * @note Function is called under interruption only, once - * interruptions have been enabled by HAL_UART_Receive_IT() - * @param huart UART handle. - * @retval None - */ -static void UART_RxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart) -{ - uint16_t uhMask = huart->Mask; - uint16_t uhdata; - uint16_t nb_rx_data; - uint16_t rxdatacount; - uint32_t isrflags = READ_REG(huart->Instance->ISR); - uint32_t cr1its = READ_REG(huart->Instance->CR1); - uint32_t cr3its = READ_REG(huart->Instance->CR3); - - /* Check that a Rx process is ongoing */ - if (huart->RxState == HAL_UART_STATE_BUSY_RX) - { - nb_rx_data = huart->NbRxDataToProcess; - while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U)) - { - uhdata = (uint16_t) READ_REG(huart->Instance->RDR); - *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask); - huart->pRxBuffPtr++; - huart->RxXferCount--; - isrflags = READ_REG(huart->Instance->ISR); - - /* If some non blocking errors occurred */ - if ((isrflags & (USART_ISR_PE | USART_ISR_FE | USART_ISR_NE)) != 0U) - { - /* UART parity error interrupt occurred -------------------------------------*/ - if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U)) - { - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF); - - huart->ErrorCode |= HAL_UART_ERROR_PE; - } - - /* UART frame error interrupt occurred --------------------------------------*/ - if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U)) - { - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF); - - huart->ErrorCode |= HAL_UART_ERROR_FE; - } - - /* UART noise error interrupt occurred --------------------------------------*/ - if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U)) - { - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF); - - huart->ErrorCode |= HAL_UART_ERROR_NE; - } - - /* Call UART Error Call back function if need be ----------------------------*/ - if (huart->ErrorCode != HAL_UART_ERROR_NONE) - { - /* Non Blocking error : transfer could go on. - Error is notified to user through user error callback */ -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /*Call registered error callback*/ - huart->ErrorCallback(huart); -#else - /*Call legacy weak error callback*/ - HAL_UART_ErrorCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - huart->ErrorCode = HAL_UART_ERROR_NONE; - } - } - - if (huart->RxXferCount == 0U) - { - /* Disable the UART Parity Error Interrupt and RXFT interrupt*/ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE); - - /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) - and RX FIFO Threshold interrupt */ - ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE)); - - /* Rx process is completed, restore huart->RxState to Ready */ - huart->RxState = HAL_UART_STATE_READY; - - /* Clear RxISR function pointer */ - huart->RxISR = NULL; - - /* Initialize type of RxEvent to Transfer Complete */ - huart->RxEventType = HAL_UART_RXEVENT_TC; - - if (!(IS_LPUART_INSTANCE(huart->Instance))) - { - /* Check that USART RTOEN bit is set */ - if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U) - { - /* Enable the UART Receiver Timeout Interrupt */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE); - } - } - - /* Check current reception Mode : - If Reception till IDLE event has been selected : */ - if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - { - /* Set reception type to Standard */ - huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - - /* Disable IDLE interrupt */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - - if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET) - { - /* Clear IDLE Flag */ - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF); - } - -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /*Call registered Rx Event callback*/ - huart->RxEventCallback(huart, huart->RxXferSize); -#else - /*Call legacy weak Rx Event callback*/ - HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize); -#endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ - } - else - { - /* Standard reception API called */ -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /*Call registered Rx complete callback*/ - huart->RxCpltCallback(huart); -#else - /*Call legacy weak Rx complete callback*/ - HAL_UART_RxCpltCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - } - } - } - - /* When remaining number of bytes to receive is less than the RX FIFO - threshold, next incoming frames are processed as if FIFO mode was - disabled (i.e. one interrupt per received frame). - */ - rxdatacount = huart->RxXferCount; - if ((rxdatacount != 0U) && (rxdatacount < huart->NbRxDataToProcess)) - { - /* Disable the UART RXFT interrupt*/ - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_RXFTIE); - - /* Update the RxISR function pointer */ - huart->RxISR = UART_RxISR_8BIT; - - /* Enable the UART Data Register Not Empty interrupt */ - ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE); - } - } - else - { - /* Clear RXNE interrupt flag */ - __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST); - } -} - -/** - * @brief RX interrupt handler for 9 bits data word length and FIFO mode is enabled. - * @note Function is called under interruption only, once - * interruptions have been enabled by HAL_UART_Receive_IT() - * @param huart UART handle. - * @retval None - */ -static void UART_RxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart) -{ - uint16_t *tmp; - uint16_t uhMask = huart->Mask; - uint16_t uhdata; - uint16_t nb_rx_data; - uint16_t rxdatacount; - uint32_t isrflags = READ_REG(huart->Instance->ISR); - uint32_t cr1its = READ_REG(huart->Instance->CR1); - uint32_t cr3its = READ_REG(huart->Instance->CR3); - - /* Check that a Rx process is ongoing */ - if (huart->RxState == HAL_UART_STATE_BUSY_RX) - { - nb_rx_data = huart->NbRxDataToProcess; - while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U)) - { - uhdata = (uint16_t) READ_REG(huart->Instance->RDR); - tmp = (uint16_t *) huart->pRxBuffPtr ; - *tmp = (uint16_t)(uhdata & uhMask); - huart->pRxBuffPtr += 2U; - huart->RxXferCount--; - isrflags = READ_REG(huart->Instance->ISR); - - /* If some non blocking errors occurred */ - if ((isrflags & (USART_ISR_PE | USART_ISR_FE | USART_ISR_NE)) != 0U) - { - /* UART parity error interrupt occurred -------------------------------------*/ - if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U)) - { - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF); - - huart->ErrorCode |= HAL_UART_ERROR_PE; - } - - /* UART frame error interrupt occurred --------------------------------------*/ - if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U)) - { - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF); - - huart->ErrorCode |= HAL_UART_ERROR_FE; - } - - /* UART noise error interrupt occurred --------------------------------------*/ - if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U)) - { - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF); - - huart->ErrorCode |= HAL_UART_ERROR_NE; - } - - /* Call UART Error Call back function if need be ----------------------------*/ - if (huart->ErrorCode != HAL_UART_ERROR_NONE) - { - /* Non Blocking error : transfer could go on. - Error is notified to user through user error callback */ -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /*Call registered error callback*/ - huart->ErrorCallback(huart); -#else - /*Call legacy weak error callback*/ - HAL_UART_ErrorCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - huart->ErrorCode = HAL_UART_ERROR_NONE; - } - } - - if (huart->RxXferCount == 0U) - { - /* Disable the UART Parity Error Interrupt and RXFT interrupt*/ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE); - - /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) - and RX FIFO Threshold interrupt */ - ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE)); - - /* Rx process is completed, restore huart->RxState to Ready */ - huart->RxState = HAL_UART_STATE_READY; - - /* Clear RxISR function pointer */ - huart->RxISR = NULL; - - /* Initialize type of RxEvent to Transfer Complete */ - huart->RxEventType = HAL_UART_RXEVENT_TC; - - if (!(IS_LPUART_INSTANCE(huart->Instance))) - { - /* Check that USART RTOEN bit is set */ - if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U) - { - /* Enable the UART Receiver Timeout Interrupt */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE); - } - } - - /* Check current reception Mode : - If Reception till IDLE event has been selected : */ - if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - { - /* Set reception type to Standard */ - huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - - /* Disable IDLE interrupt */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - - if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET) - { - /* Clear IDLE Flag */ - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF); - } - -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /*Call registered Rx Event callback*/ - huart->RxEventCallback(huart, huart->RxXferSize); -#else - /*Call legacy weak Rx Event callback*/ - HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize); -#endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ - } - else - { - /* Standard reception API called */ -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /*Call registered Rx complete callback*/ - huart->RxCpltCallback(huart); -#else - /*Call legacy weak Rx complete callback*/ - HAL_UART_RxCpltCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - } - } - } - - /* When remaining number of bytes to receive is less than the RX FIFO - threshold, next incoming frames are processed as if FIFO mode was - disabled (i.e. one interrupt per received frame). - */ - rxdatacount = huart->RxXferCount; - if ((rxdatacount != 0U) && (rxdatacount < huart->NbRxDataToProcess)) - { - /* Disable the UART RXFT interrupt*/ - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_RXFTIE); - - /* Update the RxISR function pointer */ - huart->RxISR = UART_RxISR_16BIT; - - /* Enable the UART Data Register Not Empty interrupt */ - ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE); - } - } - else - { - /* Clear RXNE interrupt flag */ - __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST); - } -} - -/** - * @} - */ - -#endif /* HAL_UART_MODULE_ENABLED */ -/** - * @} - */ - -/** - * @} - */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c b/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c deleted file mode 100644 index 2bba9dc..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c +++ /dev/null @@ -1,1044 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_hal_uart_ex.c - * @author MCD Application Team - * @brief Extended UART HAL module driver. - * This file provides firmware functions to manage the following extended - * functionalities of the Universal Asynchronous Receiver Transmitter Peripheral (UART). - * + Initialization and de-initialization functions - * + Peripheral Control functions - * - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - @verbatim - ============================================================================== - ##### UART peripheral extended features ##### - ============================================================================== - - (#) Declare a UART_HandleTypeDef handle structure. - - (#) For the UART RS485 Driver Enable mode, initialize the UART registers - by calling the HAL_RS485Ex_Init() API. - - (#) FIFO mode enabling/disabling and RX/TX FIFO threshold programming. - - -@- When UART operates in FIFO mode, FIFO mode must be enabled prior - starting RX/TX transfers. Also RX/TX FIFO thresholds must be - configured prior starting RX/TX transfers. - - @endverbatim - ****************************************************************************** - */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @defgroup UARTEx UARTEx - * @brief UART Extended HAL module driver - * @{ - */ - -#ifdef HAL_UART_MODULE_ENABLED - -/* Private typedef -----------------------------------------------------------*/ -/* Private define ------------------------------------------------------------*/ -/** @defgroup UARTEX_Private_Constants UARTEx Private Constants - * @{ - */ -/* UART RX FIFO depth */ -#define RX_FIFO_DEPTH 16U - -/* UART TX FIFO depth */ -#define TX_FIFO_DEPTH 16U -/** - * @} - */ - -/* Private macros ------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private function prototypes -----------------------------------------------*/ -/** @defgroup UARTEx_Private_Functions UARTEx Private Functions - * @{ - */ -static void UARTEx_Wakeup_AddressConfig(UART_HandleTypeDef *huart, UART_WakeUpTypeDef WakeUpSelection); -static void UARTEx_SetNbDataToProcess(UART_HandleTypeDef *huart); -/** - * @} - */ - -/* Exported functions --------------------------------------------------------*/ - -/** @defgroup UARTEx_Exported_Functions UARTEx Exported Functions - * @{ - */ - -/** @defgroup UARTEx_Exported_Functions_Group1 Initialization and de-initialization functions - * @brief Extended Initialization and Configuration Functions - * -@verbatim -=============================================================================== - ##### Initialization and Configuration functions ##### - =============================================================================== - [..] - This subsection provides a set of functions allowing to initialize the USARTx or the UARTy - in asynchronous mode. - (+) For the asynchronous mode the parameters below can be configured: - (++) Baud Rate - (++) Word Length - (++) Stop Bit - (++) Parity: If the parity is enabled, then the MSB bit of the data written - in the data register is transmitted but is changed by the parity bit. - (++) Hardware flow control - (++) Receiver/transmitter modes - (++) Over Sampling Method - (++) One-Bit Sampling Method - (+) For the asynchronous mode, the following advanced features can be configured as well: - (++) TX and/or RX pin level inversion - (++) data logical level inversion - (++) RX and TX pins swap - (++) RX overrun detection disabling - (++) DMA disabling on RX error - (++) MSB first on communication line - (++) auto Baud rate detection - [..] - The HAL_RS485Ex_Init() API follows the UART RS485 mode configuration - procedures (details for the procedures are available in reference manual). - -@endverbatim - - Depending on the frame length defined by the M1 and M0 bits (7-bit, - 8-bit or 9-bit), the possible UART formats are listed in the - following table. - - Table 1. UART frame format. - +-----------------------------------------------------------------------+ - | M1 bit | M0 bit | PCE bit | UART frame | - |---------|---------|-----------|---------------------------------------| - | 0 | 0 | 0 | | SB | 8 bit data | STB | | - |---------|---------|-----------|---------------------------------------| - | 0 | 0 | 1 | | SB | 7 bit data | PB | STB | | - |---------|---------|-----------|---------------------------------------| - | 0 | 1 | 0 | | SB | 9 bit data | STB | | - |---------|---------|-----------|---------------------------------------| - | 0 | 1 | 1 | | SB | 8 bit data | PB | STB | | - |---------|---------|-----------|---------------------------------------| - | 1 | 0 | 0 | | SB | 7 bit data | STB | | - |---------|---------|-----------|---------------------------------------| - | 1 | 0 | 1 | | SB | 6 bit data | PB | STB | | - +-----------------------------------------------------------------------+ - - * @{ - */ - -/** - * @brief Initialize the RS485 Driver enable feature according to the specified - * parameters in the UART_InitTypeDef and creates the associated handle. - * @param huart UART handle. - * @param Polarity Select the driver enable polarity. - * This parameter can be one of the following values: - * @arg @ref UART_DE_POLARITY_HIGH DE signal is active high - * @arg @ref UART_DE_POLARITY_LOW DE signal is active low - * @param AssertionTime Driver Enable assertion time: - * 5-bit value defining the time between the activation of the DE (Driver Enable) - * signal and the beginning of the start bit. It is expressed in sample time - * units (1/8 or 1/16 bit time, depending on the oversampling rate) - * @param DeassertionTime Driver Enable deassertion time: - * 5-bit value defining the time between the end of the last stop bit, in a - * transmitted message, and the de-activation of the DE (Driver Enable) signal. - * It is expressed in sample time units (1/8 or 1/16 bit time, depending on the - * oversampling rate). - * @retval HAL status - */ -HAL_StatusTypeDef HAL_RS485Ex_Init(UART_HandleTypeDef *huart, uint32_t Polarity, uint32_t AssertionTime, - uint32_t DeassertionTime) -{ - uint32_t temp; - - /* Check the UART handle allocation */ - if (huart == NULL) - { - return HAL_ERROR; - } - /* Check the Driver Enable UART instance */ - assert_param(IS_UART_DRIVER_ENABLE_INSTANCE(huart->Instance)); - - /* Check the Driver Enable polarity */ - assert_param(IS_UART_DE_POLARITY(Polarity)); - - /* Check the Driver Enable assertion time */ - assert_param(IS_UART_ASSERTIONTIME(AssertionTime)); - - /* Check the Driver Enable deassertion time */ - assert_param(IS_UART_DEASSERTIONTIME(DeassertionTime)); - - if (huart->gState == HAL_UART_STATE_RESET) - { - /* Allocate lock resource and initialize it */ - huart->Lock = HAL_UNLOCKED; - -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - UART_InitCallbacksToDefault(huart); - - if (huart->MspInitCallback == NULL) - { - huart->MspInitCallback = HAL_UART_MspInit; - } - - /* Init the low level hardware */ - huart->MspInitCallback(huart); -#else - /* Init the low level hardware : GPIO, CLOCK, CORTEX */ - HAL_UART_MspInit(huart); -#endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ - } - - huart->gState = HAL_UART_STATE_BUSY; - - /* Disable the Peripheral */ - __HAL_UART_DISABLE(huart); - - /* Set the UART Communication parameters */ - if (UART_SetConfig(huart) == HAL_ERROR) - { - return HAL_ERROR; - } - - if (huart->AdvancedInit.AdvFeatureInit != UART_ADVFEATURE_NO_INIT) - { - UART_AdvFeatureConfig(huart); - } - - /* Enable the Driver Enable mode by setting the DEM bit in the CR3 register */ - SET_BIT(huart->Instance->CR3, USART_CR3_DEM); - - /* Set the Driver Enable polarity */ - MODIFY_REG(huart->Instance->CR3, USART_CR3_DEP, Polarity); - - /* Set the Driver Enable assertion and deassertion times */ - temp = (AssertionTime << UART_CR1_DEAT_ADDRESS_LSB_POS); - temp |= (DeassertionTime << UART_CR1_DEDT_ADDRESS_LSB_POS); - MODIFY_REG(huart->Instance->CR1, (USART_CR1_DEDT | USART_CR1_DEAT), temp); - - /* Enable the Peripheral */ - __HAL_UART_ENABLE(huart); - - /* TEACK and/or REACK to check before moving huart->gState and huart->RxState to Ready */ - return (UART_CheckIdleState(huart)); -} - -/** - * @} - */ - -/** @defgroup UARTEx_Exported_Functions_Group2 IO operation functions - * @brief Extended functions - * -@verbatim - =============================================================================== - ##### IO operation functions ##### - =============================================================================== - This subsection provides a set of Wakeup and FIFO mode related callback functions. - - (#) Wakeup from Stop mode Callback: - (+) HAL_UARTEx_WakeupCallback() - - (#) TX/RX Fifos Callbacks: - (+) HAL_UARTEx_RxFifoFullCallback() - (+) HAL_UARTEx_TxFifoEmptyCallback() - -@endverbatim - * @{ - */ - -/** - * @brief UART wakeup from Stop mode callback. - * @param huart UART handle. - * @retval None - */ -__weak void HAL_UARTEx_WakeupCallback(UART_HandleTypeDef *huart) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(huart); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_UARTEx_WakeupCallback can be implemented in the user file. - */ -} - -/** - * @brief UART RX Fifo full callback. - * @param huart UART handle. - * @retval None - */ -__weak void HAL_UARTEx_RxFifoFullCallback(UART_HandleTypeDef *huart) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(huart); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_UARTEx_RxFifoFullCallback can be implemented in the user file. - */ -} - -/** - * @brief UART TX Fifo empty callback. - * @param huart UART handle. - * @retval None - */ -__weak void HAL_UARTEx_TxFifoEmptyCallback(UART_HandleTypeDef *huart) -{ - /* Prevent unused argument(s) compilation warning */ - UNUSED(huart); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_UARTEx_TxFifoEmptyCallback can be implemented in the user file. - */ -} - -/** - * @} - */ - -/** @defgroup UARTEx_Exported_Functions_Group3 Peripheral Control functions - * @brief Extended Peripheral Control functions - * -@verbatim - =============================================================================== - ##### Peripheral Control functions ##### - =============================================================================== - [..] This section provides the following functions: - (+) HAL_MultiProcessorEx_AddressLength_Set() API optionally sets the UART node address - detection length to more than 4 bits for multiprocessor address mark wake up. - (+) HAL_UARTEx_StopModeWakeUpSourceConfig() API defines the wake-up from stop mode - trigger: address match, Start Bit detection or RXNE bit status. - (+) HAL_UARTEx_EnableStopMode() API enables the UART to wake up the MCU from stop mode - (+) HAL_UARTEx_DisableStopMode() API disables the above functionality - (+) HAL_UARTEx_EnableFifoMode() API enables the FIFO mode - (+) HAL_UARTEx_DisableFifoMode() API disables the FIFO mode - (+) HAL_UARTEx_SetTxFifoThreshold() API sets the TX FIFO threshold - (+) HAL_UARTEx_SetRxFifoThreshold() API sets the RX FIFO threshold - - [..] This subsection also provides a set of additional functions providing enhanced reception - services to user. (For example, these functions allow application to handle use cases - where number of data to be received is unknown). - - (#) Compared to standard reception services which only consider number of received - data elements as reception completion criteria, these functions also consider additional events - as triggers for updating reception status to caller : - (+) Detection of inactivity period (RX line has not been active for a given period). - (++) RX inactivity detected by IDLE event, i.e. RX line has been in idle state (normally high state) - for 1 frame time, after last received byte. - (++) RX inactivity detected by RTO, i.e. line has been in idle state - for a programmable time, after last received byte. - (+) Detection that a specific character has been received. - - (#) There are two mode of transfer: - (+) Blocking mode: The reception is performed in polling mode, until either expected number of data is received, - or till IDLE event occurs. Reception is handled only during function execution. - When function exits, no data reception could occur. HAL status and number of actually received data elements, - are returned by function after finishing transfer. - (+) Non-Blocking mode: The reception is performed using Interrupts or DMA. - These API's return the HAL status. - The end of the data processing will be indicated through the - dedicated UART IRQ when using Interrupt mode or the DMA IRQ when using DMA mode. - The HAL_UARTEx_RxEventCallback() user callback will be executed during Receive process - The HAL_UART_ErrorCallback()user callback will be executed when a reception error is detected. - - (#) Blocking mode API: - (+) HAL_UARTEx_ReceiveToIdle() - - (#) Non-Blocking mode API with Interrupt: - (+) HAL_UARTEx_ReceiveToIdle_IT() - - (#) Non-Blocking mode API with DMA: - (+) HAL_UARTEx_ReceiveToIdle_DMA() - -@endverbatim - * @{ - */ - -/** - * @brief By default in multiprocessor mode, when the wake up method is set - * to address mark, the UART handles only 4-bit long addresses detection; - * this API allows to enable longer addresses detection (6-, 7- or 8-bit - * long). - * @note Addresses detection lengths are: 6-bit address detection in 7-bit data mode, - * 7-bit address detection in 8-bit data mode, 8-bit address detection in 9-bit data mode. - * @param huart UART handle. - * @param AddressLength This parameter can be one of the following values: - * @arg @ref UART_ADDRESS_DETECT_4B 4-bit long address - * @arg @ref UART_ADDRESS_DETECT_7B 6-, 7- or 8-bit long address - * @retval HAL status - */ -HAL_StatusTypeDef HAL_MultiProcessorEx_AddressLength_Set(UART_HandleTypeDef *huart, uint32_t AddressLength) -{ - /* Check the UART handle allocation */ - if (huart == NULL) - { - return HAL_ERROR; - } - - /* Check the address length parameter */ - assert_param(IS_UART_ADDRESSLENGTH_DETECT(AddressLength)); - - huart->gState = HAL_UART_STATE_BUSY; - - /* Disable the Peripheral */ - __HAL_UART_DISABLE(huart); - - /* Set the address length */ - MODIFY_REG(huart->Instance->CR2, USART_CR2_ADDM7, AddressLength); - - /* Enable the Peripheral */ - __HAL_UART_ENABLE(huart); - - /* TEACK and/or REACK to check before moving huart->gState to Ready */ - return (UART_CheckIdleState(huart)); -} - -/** - * @brief Set Wakeup from Stop mode interrupt flag selection. - * @note It is the application responsibility to enable the interrupt used as - * usart_wkup interrupt source before entering low-power mode. - * @param huart UART handle. - * @param WakeUpSelection Address match, Start Bit detection or RXNE/RXFNE bit status. - * This parameter can be one of the following values: - * @arg @ref UART_WAKEUP_ON_ADDRESS - * @arg @ref UART_WAKEUP_ON_STARTBIT - * @arg @ref UART_WAKEUP_ON_READDATA_NONEMPTY - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UARTEx_StopModeWakeUpSourceConfig(UART_HandleTypeDef *huart, UART_WakeUpTypeDef WakeUpSelection) -{ - HAL_StatusTypeDef status = HAL_OK; - uint32_t tickstart; - - /* check the wake-up from stop mode UART instance */ - assert_param(IS_UART_WAKEUP_FROMSTOP_INSTANCE(huart->Instance)); - /* check the wake-up selection parameter */ - assert_param(IS_UART_WAKEUP_SELECTION(WakeUpSelection.WakeUpEvent)); - - /* Process Locked */ - __HAL_LOCK(huart); - - huart->gState = HAL_UART_STATE_BUSY; - - /* Disable the Peripheral */ - __HAL_UART_DISABLE(huart); - - /* Set the wake-up selection scheme */ - MODIFY_REG(huart->Instance->CR3, USART_CR3_WUS, WakeUpSelection.WakeUpEvent); - - if (WakeUpSelection.WakeUpEvent == UART_WAKEUP_ON_ADDRESS) - { - UARTEx_Wakeup_AddressConfig(huart, WakeUpSelection); - } - - /* Enable the Peripheral */ - __HAL_UART_ENABLE(huart); - - /* Init tickstart for timeout management */ - tickstart = HAL_GetTick(); - - /* Wait until REACK flag is set */ - if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_REACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK) - { - status = HAL_TIMEOUT; - } - else - { - /* Initialize the UART State */ - huart->gState = HAL_UART_STATE_READY; - } - - /* Process Unlocked */ - __HAL_UNLOCK(huart); - - return status; -} - -/** - * @brief Enable UART Stop Mode. - * @note The UART is able to wake up the MCU from Stop 1 mode as long as UART clock is HSI or LSE. - * @param huart UART handle. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UARTEx_EnableStopMode(UART_HandleTypeDef *huart) -{ - /* Process Locked */ - __HAL_LOCK(huart); - - /* Set UESM bit */ - ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_UESM); - - /* Process Unlocked */ - __HAL_UNLOCK(huart); - - return HAL_OK; -} - -/** - * @brief Disable UART Stop Mode. - * @param huart UART handle. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UARTEx_DisableStopMode(UART_HandleTypeDef *huart) -{ - /* Process Locked */ - __HAL_LOCK(huart); - - /* Clear UESM bit */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_UESM); - - /* Process Unlocked */ - __HAL_UNLOCK(huart); - - return HAL_OK; -} - -/** - * @brief Enable the FIFO mode. - * @param huart UART handle. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UARTEx_EnableFifoMode(UART_HandleTypeDef *huart) -{ - uint32_t tmpcr1; - - /* Check parameters */ - assert_param(IS_UART_FIFO_INSTANCE(huart->Instance)); - - /* Process Locked */ - __HAL_LOCK(huart); - - huart->gState = HAL_UART_STATE_BUSY; - - /* Save actual UART configuration */ - tmpcr1 = READ_REG(huart->Instance->CR1); - - /* Disable UART */ - __HAL_UART_DISABLE(huart); - - /* Enable FIFO mode */ - SET_BIT(tmpcr1, USART_CR1_FIFOEN); - huart->FifoMode = UART_FIFOMODE_ENABLE; - - /* Restore UART configuration */ - WRITE_REG(huart->Instance->CR1, tmpcr1); - - /* Determine the number of data to process during RX/TX ISR execution */ - UARTEx_SetNbDataToProcess(huart); - - huart->gState = HAL_UART_STATE_READY; - - /* Process Unlocked */ - __HAL_UNLOCK(huart); - - return HAL_OK; -} - -/** - * @brief Disable the FIFO mode. - * @param huart UART handle. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UARTEx_DisableFifoMode(UART_HandleTypeDef *huart) -{ - uint32_t tmpcr1; - - /* Check parameters */ - assert_param(IS_UART_FIFO_INSTANCE(huart->Instance)); - - /* Process Locked */ - __HAL_LOCK(huart); - - huart->gState = HAL_UART_STATE_BUSY; - - /* Save actual UART configuration */ - tmpcr1 = READ_REG(huart->Instance->CR1); - - /* Disable UART */ - __HAL_UART_DISABLE(huart); - - /* Enable FIFO mode */ - CLEAR_BIT(tmpcr1, USART_CR1_FIFOEN); - huart->FifoMode = UART_FIFOMODE_DISABLE; - - /* Restore UART configuration */ - WRITE_REG(huart->Instance->CR1, tmpcr1); - - huart->gState = HAL_UART_STATE_READY; - - /* Process Unlocked */ - __HAL_UNLOCK(huart); - - return HAL_OK; -} - -/** - * @brief Set the TXFIFO threshold. - * @param huart UART handle. - * @param Threshold TX FIFO threshold value - * This parameter can be one of the following values: - * @arg @ref UART_TXFIFO_THRESHOLD_1_8 - * @arg @ref UART_TXFIFO_THRESHOLD_1_4 - * @arg @ref UART_TXFIFO_THRESHOLD_1_2 - * @arg @ref UART_TXFIFO_THRESHOLD_3_4 - * @arg @ref UART_TXFIFO_THRESHOLD_7_8 - * @arg @ref UART_TXFIFO_THRESHOLD_8_8 - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UARTEx_SetTxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold) -{ - uint32_t tmpcr1; - - /* Check parameters */ - assert_param(IS_UART_FIFO_INSTANCE(huart->Instance)); - assert_param(IS_UART_TXFIFO_THRESHOLD(Threshold)); - - /* Process Locked */ - __HAL_LOCK(huart); - - huart->gState = HAL_UART_STATE_BUSY; - - /* Save actual UART configuration */ - tmpcr1 = READ_REG(huart->Instance->CR1); - - /* Disable UART */ - __HAL_UART_DISABLE(huart); - - /* Update TX threshold configuration */ - MODIFY_REG(huart->Instance->CR3, USART_CR3_TXFTCFG, Threshold); - - /* Determine the number of data to process during RX/TX ISR execution */ - UARTEx_SetNbDataToProcess(huart); - - /* Restore UART configuration */ - WRITE_REG(huart->Instance->CR1, tmpcr1); - - huart->gState = HAL_UART_STATE_READY; - - /* Process Unlocked */ - __HAL_UNLOCK(huart); - - return HAL_OK; -} - -/** - * @brief Set the RXFIFO threshold. - * @param huart UART handle. - * @param Threshold RX FIFO threshold value - * This parameter can be one of the following values: - * @arg @ref UART_RXFIFO_THRESHOLD_1_8 - * @arg @ref UART_RXFIFO_THRESHOLD_1_4 - * @arg @ref UART_RXFIFO_THRESHOLD_1_2 - * @arg @ref UART_RXFIFO_THRESHOLD_3_4 - * @arg @ref UART_RXFIFO_THRESHOLD_7_8 - * @arg @ref UART_RXFIFO_THRESHOLD_8_8 - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UARTEx_SetRxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold) -{ - uint32_t tmpcr1; - - /* Check the parameters */ - assert_param(IS_UART_FIFO_INSTANCE(huart->Instance)); - assert_param(IS_UART_RXFIFO_THRESHOLD(Threshold)); - - /* Process Locked */ - __HAL_LOCK(huart); - - huart->gState = HAL_UART_STATE_BUSY; - - /* Save actual UART configuration */ - tmpcr1 = READ_REG(huart->Instance->CR1); - - /* Disable UART */ - __HAL_UART_DISABLE(huart); - - /* Update RX threshold configuration */ - MODIFY_REG(huart->Instance->CR3, USART_CR3_RXFTCFG, Threshold); - - /* Determine the number of data to process during RX/TX ISR execution */ - UARTEx_SetNbDataToProcess(huart); - - /* Restore UART configuration */ - WRITE_REG(huart->Instance->CR1, tmpcr1); - - huart->gState = HAL_UART_STATE_READY; - - /* Process Unlocked */ - __HAL_UNLOCK(huart); - - return HAL_OK; -} - -/** - * @brief Receive an amount of data in blocking mode till either the expected number of data - * is received or an IDLE event occurs. - * @note HAL_OK is returned if reception is completed (expected number of data has been received) - * or if reception is stopped after IDLE event (less than the expected number of data has been received) - * In this case, RxLen output parameter indicates number of data available in reception buffer. - * @note When UART parity is not enabled (PCE = 0), and Word Length is configured to 9 bits (M1-M0 = 01), - * the received data is handled as a set of uint16_t. In this case, Size must indicate the number - * of uint16_t available through pData. - * @note When FIFO mode is enabled, the RXFNE flag is set as long as the RXFIFO - * is not empty. Read operations from the RDR register are performed when - * RXFNE flag is set. From hardware perspective, RXFNE flag and - * RXNE are mapped on the same bit-field. - * @param huart UART handle. - * @param pData Pointer to data buffer (uint8_t or uint16_t data elements). - * @param Size Amount of data elements (uint8_t or uint16_t) to be received. - * @param RxLen Number of data elements finally received - * (could be lower than Size, in case reception ends on IDLE event) - * @param Timeout Timeout duration expressed in ms (covers the whole reception sequence). - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size, uint16_t *RxLen, - uint32_t Timeout) -{ - uint8_t *pdata8bits; - uint16_t *pdata16bits; - uint16_t uhMask; - uint32_t tickstart; - - /* Check that a Rx process is not already ongoing */ - if (huart->RxState == HAL_UART_STATE_READY) - { - if ((pData == NULL) || (Size == 0U)) - { - return HAL_ERROR; - } - - huart->ErrorCode = HAL_UART_ERROR_NONE; - huart->RxState = HAL_UART_STATE_BUSY_RX; - huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE; - huart->RxEventType = HAL_UART_RXEVENT_TC; - - /* Init tickstart for timeout management */ - tickstart = HAL_GetTick(); - - huart->RxXferSize = Size; - huart->RxXferCount = Size; - - /* Computation of UART mask to apply to RDR register */ - UART_MASK_COMPUTATION(huart); - uhMask = huart->Mask; - - /* In case of 9bits/No Parity transfer, pRxData needs to be handled as a uint16_t pointer */ - if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) - { - pdata8bits = NULL; - pdata16bits = (uint16_t *) pData; - } - else - { - pdata8bits = pData; - pdata16bits = NULL; - } - - /* Initialize output number of received elements */ - *RxLen = 0U; - - /* as long as data have to be received */ - while (huart->RxXferCount > 0U) - { - /* Check if IDLE flag is set */ - if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE)) - { - /* Clear IDLE flag in ISR */ - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF); - - /* If Set, but no data ever received, clear flag without exiting loop */ - /* If Set, and data has already been received, this means Idle Event is valid : End reception */ - if (*RxLen > 0U) - { - huart->RxEventType = HAL_UART_RXEVENT_IDLE; - huart->RxState = HAL_UART_STATE_READY; - - return HAL_OK; - } - } - - /* Check if RXNE flag is set */ - if (__HAL_UART_GET_FLAG(huart, UART_FLAG_RXNE)) - { - if (pdata8bits == NULL) - { - *pdata16bits = (uint16_t)(huart->Instance->RDR & uhMask); - pdata16bits++; - } - else - { - *pdata8bits = (uint8_t)(huart->Instance->RDR & (uint8_t)uhMask); - pdata8bits++; - } - /* Increment number of received elements */ - *RxLen += 1U; - huart->RxXferCount--; - } - - /* Check for the Timeout */ - if (Timeout != HAL_MAX_DELAY) - { - if (((HAL_GetTick() - tickstart) > Timeout) || (Timeout == 0U)) - { - huart->RxState = HAL_UART_STATE_READY; - - return HAL_TIMEOUT; - } - } - } - - /* Set number of received elements in output parameter : RxLen */ - *RxLen = huart->RxXferSize - huart->RxXferCount; - /* At end of Rx process, restore huart->RxState to Ready */ - huart->RxState = HAL_UART_STATE_READY; - - return HAL_OK; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Receive an amount of data in interrupt mode till either the expected number of data - * is received or an IDLE event occurs. - * @note Reception is initiated by this function call. Further progress of reception is achieved thanks - * to UART interrupts raised by RXNE and IDLE events. Callback is called at end of reception indicating - * number of received data elements. - * @note When UART parity is not enabled (PCE = 0), and Word Length is configured to 9 bits (M1-M0 = 01), - * the received data is handled as a set of uint16_t. In this case, Size must indicate the number - * of uint16_t available through pData. - * @param huart UART handle. - * @param pData Pointer to data buffer (uint8_t or uint16_t data elements). - * @param Size Amount of data elements (uint8_t or uint16_t) to be received. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size) -{ - HAL_StatusTypeDef status; - - /* Check that a Rx process is not already ongoing */ - if (huart->RxState == HAL_UART_STATE_READY) - { - if ((pData == NULL) || (Size == 0U)) - { - return HAL_ERROR; - } - - /* Set Reception type to reception till IDLE Event*/ - huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE; - huart->RxEventType = HAL_UART_RXEVENT_TC; - - status = UART_Start_Receive_IT(huart, pData, Size); - - /* Check Rx process has been successfully started */ - if (status == HAL_OK) - { - if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - { - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF); - ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - } - else - { - /* In case of errors already pending when reception is started, - Interrupts may have already been raised and lead to reception abortion. - (Overrun error for instance). - In such case Reception Type has been reset to HAL_UART_RECEPTION_STANDARD. */ - status = HAL_ERROR; - } - } - - return status; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Receive an amount of data in DMA mode till either the expected number - * of data is received or an IDLE event occurs. - * @note Reception is initiated by this function call. Further progress of reception is achieved thanks - * to DMA services, transferring automatically received data elements in user reception buffer and - * calling registered callbacks at half/end of reception. UART IDLE events are also used to consider - * reception phase as ended. In all cases, callback execution will indicate number of received data elements. - * @note When the UART parity is enabled (PCE = 1), the received data contain - * the parity bit (MSB position). - * @note When UART parity is not enabled (PCE = 0), and Word Length is configured to 9 bits (M1-M0 = 01), - * the received data is handled as a set of uint16_t. In this case, Size must indicate the number - * of uint16_t available through pData. - * @param huart UART handle. - * @param pData Pointer to data buffer (uint8_t or uint16_t data elements). - * @param Size Amount of data elements (uint8_t or uint16_t) to be received. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size) -{ - HAL_StatusTypeDef status; - - /* Check that a Rx process is not already ongoing */ - if (huart->RxState == HAL_UART_STATE_READY) - { - if ((pData == NULL) || (Size == 0U)) - { - return HAL_ERROR; - } - - /* Set Reception type to reception till IDLE Event*/ - huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE; - huart->RxEventType = HAL_UART_RXEVENT_TC; - - status = UART_Start_Receive_DMA(huart, pData, Size); - - /* Check Rx process has been successfully started */ - if (status == HAL_OK) - { - if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - { - __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF); - ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - } - else - { - /* In case of errors already pending when reception is started, - Interrupts may have already been raised and lead to reception abortion. - (Overrun error for instance). - In such case Reception Type has been reset to HAL_UART_RECEPTION_STANDARD. */ - status = HAL_ERROR; - } - } - - return status; - } - else - { - return HAL_BUSY; - } -} - -/** - * @brief Provide Rx Event type that has lead to RxEvent callback execution. - * @note When HAL_UARTEx_ReceiveToIdle_IT() or HAL_UARTEx_ReceiveToIdle_DMA() API are called, progress - * of reception process is provided to application through calls of Rx Event callback (either default one - * HAL_UARTEx_RxEventCallback() or user registered one). As several types of events could occur (IDLE event, - * Half Transfer, or Transfer Complete), this function allows to retrieve the Rx Event type that has lead - * to Rx Event callback execution. - * @note This function is expected to be called within the user implementation of Rx Event Callback, - * in order to provide the accurate value : - * In Interrupt Mode : - * - HAL_UART_RXEVENT_TC : when Reception has been completed (expected nb of data has been received) - * - HAL_UART_RXEVENT_IDLE : when Idle event occurred prior reception has been completed (nb of - * received data is lower than expected one) - * In DMA Mode : - * - HAL_UART_RXEVENT_TC : when Reception has been completed (expected nb of data has been received) - * - HAL_UART_RXEVENT_HT : when half of expected nb of data has been received - * - HAL_UART_RXEVENT_IDLE : when Idle event occurred prior reception has been completed (nb of - * received data is lower than expected one). - * In DMA mode, RxEvent callback could be called several times; - * When DMA is configured in Normal Mode, HT event does not stop Reception process; - * When DMA is configured in Circular Mode, HT, TC or IDLE events don't stop Reception process; - * @param huart UART handle. - * @retval Rx Event Type (return vale will be a value of @ref UART_RxEvent_Type_Values) - */ -HAL_UART_RxEventTypeTypeDef HAL_UARTEx_GetRxEventType(UART_HandleTypeDef *huart) -{ - /* Return Rx Event type value, as stored in UART handle */ - return (huart->RxEventType); -} - -/** - * @} - */ - -/** - * @} - */ - -/** @addtogroup UARTEx_Private_Functions - * @{ - */ - -/** - * @brief Initialize the UART wake-up from stop mode parameters when triggered by address detection. - * @param huart UART handle. - * @param WakeUpSelection UART wake up from stop mode parameters. - * @retval None - */ -static void UARTEx_Wakeup_AddressConfig(UART_HandleTypeDef *huart, UART_WakeUpTypeDef WakeUpSelection) -{ - assert_param(IS_UART_ADDRESSLENGTH_DETECT(WakeUpSelection.AddressLength)); - - /* Set the USART address length */ - MODIFY_REG(huart->Instance->CR2, USART_CR2_ADDM7, WakeUpSelection.AddressLength); - - /* Set the USART address node */ - MODIFY_REG(huart->Instance->CR2, USART_CR2_ADD, ((uint32_t)WakeUpSelection.Address << UART_CR2_ADDRESS_LSB_POS)); -} - -/** - * @brief Calculate the number of data to process in RX/TX ISR. - * @note The RX FIFO depth and the TX FIFO depth is extracted from - * the UART configuration registers. - * @param huart UART handle. - * @retval None - */ -static void UARTEx_SetNbDataToProcess(UART_HandleTypeDef *huart) -{ - uint8_t rx_fifo_depth; - uint8_t tx_fifo_depth; - uint8_t rx_fifo_threshold; - uint8_t tx_fifo_threshold; - static const uint8_t numerator[] = {1U, 1U, 1U, 3U, 7U, 1U, 0U, 0U}; - static const uint8_t denominator[] = {8U, 4U, 2U, 4U, 8U, 1U, 1U, 1U}; - - if (huart->FifoMode == UART_FIFOMODE_DISABLE) - { - huart->NbTxDataToProcess = 1U; - huart->NbRxDataToProcess = 1U; - } - else - { - rx_fifo_depth = RX_FIFO_DEPTH; - tx_fifo_depth = TX_FIFO_DEPTH; - rx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_RXFTCFG) >> USART_CR3_RXFTCFG_Pos); - tx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_TXFTCFG) >> USART_CR3_TXFTCFG_Pos); - huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) / - (uint16_t)denominator[tx_fifo_threshold]; - huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) / - (uint16_t)denominator[rx_fifo_threshold]; - } -} -/** - * @} - */ - -#endif /* HAL_UART_MODULE_ENABLED */ - -/** - * @} - */ - -/** - * @} - */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.c b/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.c deleted file mode 100644 index d7ac9bc..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.c +++ /dev/null @@ -1,214 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_ll_delayblock.c - * @author MCD Application Team - * @brief DelayBlock Low Layer HAL module driver. - * - * This file provides firmware functions to manage the following - * functionalities of the Delay Block peripheral: - * + input clock frequency range 25MHz to 208MHz - * + up to 12 oversampling phases - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - @verbatim - ============================================================================== - ##### DelayBlock peripheral features ##### - ============================================================================== - [..] The Delay block is used to generate an Output clock which is de-phased from the Input - clock. The phase of the Output clock is programmed by FW. The Output clock is then used - to clock the receive data in i.e. a SDMMC or QSPI interface. - The delay is Voltage and Temperature dependent, which may require FW to do re-tuning - and recenter the Output clock phase to the receive data. - - [..] The Delay Block features include the following: - (+) Input clock frequency range 25MHz to 208MHz. - (+) Up to 12 oversampling phases. - - ##### How to use this driver ##### - ============================================================================== - [..] - This driver is a considered as a driver of service for external devices drivers - that interfaces with the DELAY peripheral. - The DelayBlock_Enable() function, enables the DelayBlock instance, configure the delay line length - and configure the Output clock phase. - The DelayBlock_Disable() function, disables the DelayBlock instance by setting DEN flag to 0. - - - @endverbatim - */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @defgroup DELAYBLOCK_LL DELAYBLOCK_LL - * @brief Low layer module for Delay Block - * @{ - */ - -#if defined(HAL_SD_MODULE_ENABLED) || defined(HAL_QSPI_MODULE_ENABLED) - -/* Private typedef -----------------------------------------------------------*/ -/* Private define ------------------------------------------------------------*/ -/** @defgroup DelayBlock_LL_Private_Defines Delay Block Low Layer Private Defines - * @{ - */ -#define DLYB_TIMEOUT 0xFFU -/** - * @} - */ -/* Private macro -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private function prototypes -----------------------------------------------*/ -/* Exported functions --------------------------------------------------------*/ - -/** @defgroup DelayBlock_LL_Exported_Functions Delay Block Low Layer Exported Functions - * @{ - */ - -/** @defgroup HAL_DELAY_LL_Group1 Initialization de-initialization functions - * @brief Initialization and Configuration functions - * -@verbatim - =============================================================================== - ##### Initialization and de-initialization functions ##### - =============================================================================== - [..] This section provides functions allowing to: - -@endverbatim - * @{ - */ - - -/** - * @brief Enable the Delay Block instance. - * @param DLYBx: Pointer to DLYB instance. - * @retval HAL status - */ -HAL_StatusTypeDef DelayBlock_Enable(DLYB_TypeDef *DLYBx) -{ - uint32_t unit = 0U; - uint32_t sel = 0U; - uint32_t sel_current; - uint32_t unit_current; - uint32_t tuning; - uint32_t lng_mask; - uint32_t tickstart; - - DLYBx->CR = DLYB_CR_DEN | DLYB_CR_SEN; - - for (sel_current = 0U; sel_current < DLYB_MAX_SELECT; sel_current++) - { - /* lng_mask is the mask bit for the LNG field to check the output of the UNITx*/ - lng_mask = DLYB_CFGR_LNG_0 << sel_current; - tuning = 0U; - for (unit_current = 0U; unit_current < DLYB_MAX_UNIT; unit_current++) - { - /* Set the Delay of the UNIT(s)*/ - DLYBx->CFGR = DLYB_MAX_SELECT | (unit_current << DLYB_CFGR_UNIT_Pos); - - /* Waiting for a LNG valid value */ - tickstart = HAL_GetTick(); - while ((DLYBx->CFGR & DLYB_CFGR_LNGF) == 0U) - { - if((HAL_GetTick() - tickstart) >= DLYB_TIMEOUT) - { - return HAL_TIMEOUT; - } - } - if (tuning == 0U) - { - if ((DLYBx->CFGR & lng_mask) != 0U) - { - /* 1/2 period HIGH is detected */ - tuning = 1U; - } - } - else - { - /* 1/2 period LOW detected after the HIGH 1/2 period => FULL PERIOD passed*/ - if((DLYBx->CFGR & lng_mask ) == 0U) - { - /* Save the first result */ - if( unit == 0U ) - { - unit = unit_current; - sel = sel_current + 1U; - } - break; - } - } - } - } - - /* Apply the Tuning settings */ - DLYBx->CR = 0U; - DLYBx->CR = DLYB_CR_DEN | DLYB_CR_SEN; - DLYBx->CFGR = sel | (unit << DLYB_CFGR_UNIT_Pos); - DLYBx->CR = DLYB_CR_DEN; - - return HAL_OK; -} - -/** - * @brief Disable the Delay Block instance. - * @param DLYBx: Pointer to DLYB instance. - * @retval HAL status - */ -HAL_StatusTypeDef DelayBlock_Disable(DLYB_TypeDef *DLYBx) -{ - /* Disable DLYB */ - DLYBx->CR = 0U; - return HAL_OK; -} - -/** - * @brief Configure the Delay Block instance. - * @param DLYBx: Pointer to DLYB instance. - * @param PhaseSel: Phase selection [0..11]. - * @param Units: Delay units[0..127]. - * @retval HAL status - */ -HAL_StatusTypeDef DelayBlock_Configure(DLYB_TypeDef *DLYBx,uint32_t PhaseSel, uint32_t Units ) -{ - /* Apply the delay settings */ - - DLYBx->CR = 0U; - DLYBx->CR = DLYB_CR_DEN | DLYB_CR_SEN; - DLYBx->CFGR = PhaseSel | (Units << DLYB_CFGR_UNIT_Pos); - DLYBx->CR = DLYB_CR_DEN; - - return HAL_OK; -} - - -/** - * @} - */ - -/** - * @} - */ - -#endif /* (HAL_SD_MODULE_ENABLED) & (HAL_QSPI_MODULE_ENABLED)*/ -/** - * @} - */ - -/** - * @} - */ - diff --git a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c b/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c deleted file mode 100644 index 38e7697..0000000 --- a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c +++ /dev/null @@ -1,1644 +0,0 @@ -/** - ****************************************************************************** - * @file stm32h7xx_ll_sdmmc.c - * @author MCD Application Team - * @brief SDMMC Low Layer HAL module driver. - * - * This file provides firmware functions to manage the following - * functionalities of the SDMMC peripheral: - * + Initialization/de-initialization functions - * + I/O operation functions - * + Peripheral Control functions - * + Peripheral State functions - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - @verbatim - ============================================================================== - ##### SDMMC peripheral features ##### - ============================================================================== - [..] The SD/SDMMC MMC card host interface (SDMMC) provides an interface between the AHB - peripheral bus and MultiMedia cards (MMCs), SD memory cards, SDMMC cards and CE-ATA - devices. - - [..] The SDMMC features include the following: - (+) Full compliance with MultiMediaCard System Specification Version 4.51. Card support - for three different databus modes: 1-bit (default), 4-bit and 8-bit. - (+) Full compatibility with previous versions of MultiMediaCards (backward compatibility). - (+) Full compliance with SD memory card specifications version 4.1. - (SDR104 SDMMC_CK speed limited to maximum allowed IO speed, SPI mode and - UHS-II mode not supported). - (+) Full compliance with SDIO card specification version 4.0. Card support - for two different databus modes: 1-bit (default) and 4-bit. - (SDR104 SDMMC_CK speed limited to maximum allowed IO speed, SPI mode and - UHS-II mode not supported). - (+) Data transfer up to 208 Mbyte/s for the 8 bit mode. (depending maximum allowed IO speed). - (+) Data and command output enable signals to control external bidirectional drivers - - ##### How to use this driver ##### - ============================================================================== - [..] - This driver is a considered as a driver of service for external devices drivers - that interfaces with the SDMMC peripheral. - According to the device used (SD card/ MMC card / SDMMC card ...), a set of APIs - is used in the device's driver to perform SDMMC operations and functionalities. - - This driver is almost transparent for the final user, it is only used to implement other - functionalities of the external device. - - [..] - (+) The SDMMC clock is coming from output of PLL1_Q or PLL2_R. - Before start working with SDMMC peripheral make sure that the PLL is well configured. - The SDMMC peripheral uses two clock signals: - (++) PLL1_Q bus clock (default after reset) - (++) PLL2_R bus clock - - (+) Enable/Disable peripheral clock using RCC peripheral macros related to SDMMC - peripheral. - - (+) Enable the Power ON State using the SDMMC_PowerState_ON(SDMMCx) - function and disable it using the function SDMMC_PowerState_OFF(SDMMCx). - - (+) Enable/Disable the peripheral interrupts using the macros __SDMMC_ENABLE_IT(hSDMMC, IT) - and __SDMMC_DISABLE_IT(hSDMMC, IT) if you need to use interrupt mode. - - (+) When using the DMA mode - (++) Configure the IDMA mode (Single buffer or double) - (++) Configure the buffer address - (++) Configure Data Path State Machine - - (+) To control the CPSM (Command Path State Machine) and send - commands to the card use the SDMMC_SendCommand(SDMMCx), - SDMMC_GetCommandResponse() and SDMMC_GetResponse() functions. First, user has - to fill the command structure (pointer to SDMMC_CmdInitTypeDef) according - to the selected command to be sent. - The parameters that should be filled are: - (++) Command Argument - (++) Command Index - (++) Command Response type - (++) Command Wait - (++) CPSM Status (Enable or Disable). - - -@@- To check if the command is well received, read the SDMMC_CMDRESP - register using the SDMMC_GetCommandResponse(). - The SDMMC responses registers (SDMMC_RESP1 to SDMMC_RESP2), use the - SDMMC_GetResponse() function. - - (+) To control the DPSM (Data Path State Machine) and send/receive - data to/from the card use the SDMMC_DataConfig(), SDMMC_GetDataCounter(), - SDMMC_ReadFIFO(), SDMMC_WriteFIFO() and SDMMC_GetFIFOCount() functions. - - *** Read Operations *** - ======================= - [..] - (#) First, user has to fill the data structure (pointer to - SDMMC_DataInitTypeDef) according to the selected data type to be received. - The parameters that should be filled are: - (++) Data TimeOut - (++) Data Length - (++) Data Block size - (++) Data Transfer direction: should be from card (To SDMMC) - (++) Data Transfer mode - (++) DPSM Status (Enable or Disable) - - (#) Configure the SDMMC resources to receive the data from the card - according to selected transfer mode (Refer to Step 8, 9 and 10). - - (#) Send the selected Read command (refer to step 11). - - (#) Use the SDMMC flags/interrupts to check the transfer status. - - *** Write Operations *** - ======================== - [..] - (#) First, user has to fill the data structure (pointer to - SDMMC_DataInitTypeDef) according to the selected data type to be received. - The parameters that should be filled are: - (++) Data TimeOut - (++) Data Length - (++) Data Block size - (++) Data Transfer direction: should be to card (To CARD) - (++) Data Transfer mode - (++) DPSM Status (Enable or Disable) - - (#) Configure the SDMMC resources to send the data to the card according to - selected transfer mode. - - (#) Send the selected Write command. - - (#) Use the SDMMC flags/interrupts to check the transfer status. - - *** Command management operations *** - ===================================== - [..] - (#) The commands used for Read/Write/Erase operations are managed in - separate functions. - Each function allows to send the needed command with the related argument, - then check the response. - By the same approach, you could implement a command and check the response. - - @endverbatim - ****************************************************************************** - */ - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" - -/** @addtogroup STM32H7xx_HAL_Driver - * @{ - */ - -/** @defgroup SDMMC_LL SDMMC Low Layer - * @brief Low layer module for SD - * @{ - */ - -#if defined (HAL_SD_MODULE_ENABLED) || defined (HAL_MMC_MODULE_ENABLED) - -/* Private typedef -----------------------------------------------------------*/ -/* Private define ------------------------------------------------------------*/ -/* Private macro -------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -/* Private function prototypes -----------------------------------------------*/ -static uint32_t SDMMC_GetCmdError(SDMMC_TypeDef *SDMMCx); - -/* Exported functions --------------------------------------------------------*/ - -/** @defgroup SDMMC_LL_Exported_Functions SDMMC Low Layer Exported Functions - * @{ - */ - -/** @defgroup HAL_SDMMC_LL_Group1 Initialization de-initialization functions - * @brief Initialization and Configuration functions - * -@verbatim - =============================================================================== - ##### Initialization/de-initialization functions ##### - =============================================================================== - [..] This section provides functions allowing to: - -@endverbatim - * @{ - */ - -/** - * @brief Initializes the SDMMC according to the specified - * parameters in the SDMMC_InitTypeDef and create the associated handle. - * @param SDMMCx: Pointer to SDMMC register base - * @param Init: SDMMC initialization structure - * @retval HAL status - */ -HAL_StatusTypeDef SDMMC_Init(SDMMC_TypeDef *SDMMCx, SDMMC_InitTypeDef Init) -{ - uint32_t tmpreg = 0; - - /* Check the parameters */ - assert_param(IS_SDMMC_ALL_INSTANCE(SDMMCx)); - assert_param(IS_SDMMC_CLOCK_EDGE(Init.ClockEdge)); - assert_param(IS_SDMMC_CLOCK_POWER_SAVE(Init.ClockPowerSave)); - assert_param(IS_SDMMC_BUS_WIDE(Init.BusWide)); - assert_param(IS_SDMMC_HARDWARE_FLOW_CONTROL(Init.HardwareFlowControl)); - assert_param(IS_SDMMC_CLKDIV(Init.ClockDiv)); - - /* Set SDMMC configuration parameters */ - tmpreg |= (Init.ClockEdge | \ - Init.ClockPowerSave | \ - Init.BusWide | \ - Init.HardwareFlowControl | \ - Init.ClockDiv - ); - - /* Write to SDMMC CLKCR */ - MODIFY_REG(SDMMCx->CLKCR, CLKCR_CLEAR_MASK, tmpreg); - - return HAL_OK; -} - - -/** - * @} - */ - -/** @defgroup HAL_SDMMC_LL_Group2 IO operation functions - * @brief Data transfers functions - * -@verbatim - =============================================================================== - ##### I/O operation functions ##### - =============================================================================== - [..] - This subsection provides a set of functions allowing to manage the SDMMC data - transfers. - -@endverbatim - * @{ - */ - -/** - * @brief Read data (word) from Rx FIFO in blocking mode (polling) - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -uint32_t SDMMC_ReadFIFO(SDMMC_TypeDef *SDMMCx) -{ - /* Read data from Rx FIFO */ - return (SDMMCx->FIFO); -} - -/** - * @brief Write data (word) to Tx FIFO in blocking mode (polling) - * @param SDMMCx: Pointer to SDMMC register base - * @param pWriteData: pointer to data to write - * @retval HAL status - */ -HAL_StatusTypeDef SDMMC_WriteFIFO(SDMMC_TypeDef *SDMMCx, uint32_t *pWriteData) -{ - /* Write data to FIFO */ - SDMMCx->FIFO = *pWriteData; - - return HAL_OK; -} - -/** - * @} - */ - -/** @defgroup HAL_SDMMC_LL_Group3 Peripheral Control functions - * @brief management functions - * -@verbatim - =============================================================================== - ##### Peripheral Control functions ##### - =============================================================================== - [..] - This subsection provides a set of functions allowing to control the SDMMC data - transfers. - -@endverbatim - * @{ - */ - -/** - * @brief Set SDMMC Power state to ON. - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -HAL_StatusTypeDef SDMMC_PowerState_ON(SDMMC_TypeDef *SDMMCx) -{ - /* Set power state to ON */ - SDMMCx->POWER |= SDMMC_POWER_PWRCTRL; - - return HAL_OK; -} - -/** - * @brief Set SDMMC Power state to Power-Cycle. - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -HAL_StatusTypeDef SDMMC_PowerState_Cycle(SDMMC_TypeDef *SDMMCx) -{ - /* Set power state to Power Cycle*/ - SDMMCx->POWER |= SDMMC_POWER_PWRCTRL_1; - - return HAL_OK; -} - -/** - * @brief Set SDMMC Power state to OFF. - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -HAL_StatusTypeDef SDMMC_PowerState_OFF(SDMMC_TypeDef *SDMMCx) -{ - /* Set power state to OFF */ - SDMMCx->POWER &= ~(SDMMC_POWER_PWRCTRL); - - return HAL_OK; -} - -/** - * @brief Get SDMMC Power state. - * @param SDMMCx: Pointer to SDMMC register base - * @retval Power status of the controller. The returned value can be one of the - * following values: - * - 0x00: Power OFF - * - 0x02: Power UP - * - 0x03: Power ON - */ -uint32_t SDMMC_GetPowerState(SDMMC_TypeDef *SDMMCx) -{ - return (SDMMCx->POWER & SDMMC_POWER_PWRCTRL); -} - -/** - * @brief Configure the SDMMC command path according to the specified parameters in - * SDMMC_CmdInitTypeDef structure and send the command - * @param SDMMCx: Pointer to SDMMC register base - * @param Command: pointer to a SDMMC_CmdInitTypeDef structure that contains - * the configuration information for the SDMMC command - * @retval HAL status - */ -HAL_StatusTypeDef SDMMC_SendCommand(SDMMC_TypeDef *SDMMCx, SDMMC_CmdInitTypeDef *Command) -{ - uint32_t tmpreg = 0; - - /* Check the parameters */ - assert_param(IS_SDMMC_CMD_INDEX(Command->CmdIndex)); - assert_param(IS_SDMMC_RESPONSE(Command->Response)); - assert_param(IS_SDMMC_WAIT(Command->WaitForInterrupt)); - assert_param(IS_SDMMC_CPSM(Command->CPSM)); - - /* Set the SDMMC Argument value */ - SDMMCx->ARG = Command->Argument; - - /* Set SDMMC command parameters */ - tmpreg |= (uint32_t)(Command->CmdIndex | \ - Command->Response | \ - Command->WaitForInterrupt | \ - Command->CPSM); - - /* Write to SDMMC CMD register */ - MODIFY_REG(SDMMCx->CMD, CMD_CLEAR_MASK, tmpreg); - - return HAL_OK; -} - -/** - * @brief Return the command index of last command for which response received - * @param SDMMCx: Pointer to SDMMC register base - * @retval Command index of the last command response received - */ -uint8_t SDMMC_GetCommandResponse(SDMMC_TypeDef *SDMMCx) -{ - return (uint8_t)(SDMMCx->RESPCMD); -} - - -/** - * @brief Return the response received from the card for the last command - * @param SDMMCx: Pointer to SDMMC register base - * @param Response: Specifies the SDMMC response register. - * This parameter can be one of the following values: - * @arg SDMMC_RESP1: Response Register 1 - * @arg SDMMC_RESP2: Response Register 2 - * @arg SDMMC_RESP3: Response Register 3 - * @arg SDMMC_RESP4: Response Register 4 - * @retval The Corresponding response register value - */ -uint32_t SDMMC_GetResponse(SDMMC_TypeDef *SDMMCx, uint32_t Response) -{ - uint32_t tmp; - - /* Check the parameters */ - assert_param(IS_SDMMC_RESP(Response)); - - /* Get the response */ - tmp = (uint32_t)(&(SDMMCx->RESP1)) + Response; - - return (*(__IO uint32_t *) tmp); -} - -/** - * @brief Configure the SDMMC data path according to the specified - * parameters in the SDMMC_DataInitTypeDef. - * @param SDMMCx: Pointer to SDMMC register base - * @param Data : pointer to a SDMMC_DataInitTypeDef structure - * that contains the configuration information for the SDMMC data. - * @retval HAL status - */ -HAL_StatusTypeDef SDMMC_ConfigData(SDMMC_TypeDef *SDMMCx, SDMMC_DataInitTypeDef *Data) -{ - uint32_t tmpreg = 0; - - /* Check the parameters */ - assert_param(IS_SDMMC_DATA_LENGTH(Data->DataLength)); - assert_param(IS_SDMMC_BLOCK_SIZE(Data->DataBlockSize)); - assert_param(IS_SDMMC_TRANSFER_DIR(Data->TransferDir)); - assert_param(IS_SDMMC_TRANSFER_MODE(Data->TransferMode)); - assert_param(IS_SDMMC_DPSM(Data->DPSM)); - - /* Set the SDMMC Data TimeOut value */ - SDMMCx->DTIMER = Data->DataTimeOut; - - /* Set the SDMMC DataLength value */ - SDMMCx->DLEN = Data->DataLength; - - /* Set the SDMMC data configuration parameters */ - tmpreg |= (uint32_t)(Data->DataBlockSize | \ - Data->TransferDir | \ - Data->TransferMode | \ - Data->DPSM); - - /* Write to SDMMC DCTRL */ - MODIFY_REG(SDMMCx->DCTRL, DCTRL_CLEAR_MASK, tmpreg); - - return HAL_OK; - -} - -/** - * @brief Returns number of remaining data bytes to be transferred. - * @param SDMMCx: Pointer to SDMMC register base - * @retval Number of remaining data bytes to be transferred - */ -uint32_t SDMMC_GetDataCounter(SDMMC_TypeDef *SDMMCx) -{ - return (SDMMCx->DCOUNT); -} - -/** - * @brief Get the FIFO data - * @param SDMMCx: Pointer to SDMMC register base - * @retval Data received - */ -uint32_t SDMMC_GetFIFOCount(SDMMC_TypeDef *SDMMCx) -{ - return (SDMMCx->FIFO); -} - -/** - * @brief Sets one of the two options of inserting read wait interval. - * @param SDMMCx: Pointer to SDMMC register base - * @param SDMMC_ReadWaitMode: SDMMC Read Wait operation mode. - * This parameter can be: - * @arg SDMMC_READ_WAIT_MODE_CLK: Read Wait control by stopping SDMMCCLK - * @arg SDMMC_READ_WAIT_MODE_DATA2: Read Wait control using SDMMC_DATA2 - * @retval None - */ -HAL_StatusTypeDef SDMMC_SetSDMMCReadWaitMode(SDMMC_TypeDef *SDMMCx, uint32_t SDMMC_ReadWaitMode) -{ - /* Check the parameters */ - assert_param(IS_SDMMC_READWAIT_MODE(SDMMC_ReadWaitMode)); - - /* Set SDMMC read wait mode */ - MODIFY_REG(SDMMCx->DCTRL, SDMMC_DCTRL_RWMOD, SDMMC_ReadWaitMode); - - return HAL_OK; -} - -/** - * @} - */ - - -/** @defgroup HAL_SDMMC_LL_Group4 Command management functions - * @brief Data transfers functions - * -@verbatim - =============================================================================== - ##### Commands management functions ##### - =============================================================================== - [..] - This subsection provides a set of functions allowing to manage the needed commands. - -@endverbatim - * @{ - */ - -/** - * @brief Send the Data Block Length command and check the response - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -uint32_t SDMMC_CmdBlockLength(SDMMC_TypeDef *SDMMCx, uint32_t BlockSize) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Set Block Size for Card */ - sdmmc_cmdinit.Argument = (uint32_t)BlockSize; - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_SET_BLOCKLEN; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_SET_BLOCKLEN, SDMMC_CMDTIMEOUT); - - return errorstate; -} - -/** - * @brief Send the Read Single Block command and check the response - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -uint32_t SDMMC_CmdReadSingleBlock(SDMMC_TypeDef *SDMMCx, uint32_t ReadAdd) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Set Block Size for Card */ - sdmmc_cmdinit.Argument = (uint32_t)ReadAdd; - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_READ_SINGLE_BLOCK; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_READ_SINGLE_BLOCK, SDMMC_CMDTIMEOUT); - - return errorstate; -} - -/** - * @brief Send the Read Multi Block command and check the response - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -uint32_t SDMMC_CmdReadMultiBlock(SDMMC_TypeDef *SDMMCx, uint32_t ReadAdd) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Set Block Size for Card */ - sdmmc_cmdinit.Argument = (uint32_t)ReadAdd; - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_READ_MULT_BLOCK; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_READ_MULT_BLOCK, SDMMC_CMDTIMEOUT); - - return errorstate; -} - -/** - * @brief Send the Write Single Block command and check the response - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -uint32_t SDMMC_CmdWriteSingleBlock(SDMMC_TypeDef *SDMMCx, uint32_t WriteAdd) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Set Block Size for Card */ - sdmmc_cmdinit.Argument = (uint32_t)WriteAdd; - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_WRITE_SINGLE_BLOCK; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_WRITE_SINGLE_BLOCK, SDMMC_CMDTIMEOUT); - - return errorstate; -} - -/** - * @brief Send the Write Multi Block command and check the response - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -uint32_t SDMMC_CmdWriteMultiBlock(SDMMC_TypeDef *SDMMCx, uint32_t WriteAdd) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Set Block Size for Card */ - sdmmc_cmdinit.Argument = (uint32_t)WriteAdd; - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_WRITE_MULT_BLOCK; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_WRITE_MULT_BLOCK, SDMMC_CMDTIMEOUT); - - return errorstate; -} - -/** - * @brief Send the Start Address Erase command for SD and check the response - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -uint32_t SDMMC_CmdSDEraseStartAdd(SDMMC_TypeDef *SDMMCx, uint32_t StartAdd) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Set Block Size for Card */ - sdmmc_cmdinit.Argument = (uint32_t)StartAdd; - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_SD_ERASE_GRP_START; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_SD_ERASE_GRP_START, SDMMC_CMDTIMEOUT); - - return errorstate; -} - -/** - * @brief Send the End Address Erase command for SD and check the response - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -uint32_t SDMMC_CmdSDEraseEndAdd(SDMMC_TypeDef *SDMMCx, uint32_t EndAdd) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Set Block Size for Card */ - sdmmc_cmdinit.Argument = (uint32_t)EndAdd; - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_SD_ERASE_GRP_END; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_SD_ERASE_GRP_END, SDMMC_CMDTIMEOUT); - - return errorstate; -} - -/** - * @brief Send the Start Address Erase command and check the response - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -uint32_t SDMMC_CmdEraseStartAdd(SDMMC_TypeDef *SDMMCx, uint32_t StartAdd) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Set Block Size for Card */ - sdmmc_cmdinit.Argument = (uint32_t)StartAdd; - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_ERASE_GRP_START; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_ERASE_GRP_START, SDMMC_CMDTIMEOUT); - - return errorstate; -} - -/** - * @brief Send the End Address Erase command and check the response - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -uint32_t SDMMC_CmdEraseEndAdd(SDMMC_TypeDef *SDMMCx, uint32_t EndAdd) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Set Block Size for Card */ - sdmmc_cmdinit.Argument = (uint32_t)EndAdd; - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_ERASE_GRP_END; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_ERASE_GRP_END, SDMMC_CMDTIMEOUT); - - return errorstate; -} - -/** - * @brief Send the Erase command and check the response - * @param SDMMCx Pointer to SDMMC register base - * @param EraseType Type of erase to be performed - * @retval HAL status - */ -uint32_t SDMMC_CmdErase(SDMMC_TypeDef *SDMMCx, uint32_t EraseType) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Set Block Size for Card */ - sdmmc_cmdinit.Argument = EraseType; - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_ERASE; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_ERASE, SDMMC_MAXERASETIMEOUT); - - return errorstate; -} - -/** - * @brief Send the Stop Transfer command and check the response. - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -uint32_t SDMMC_CmdStopTransfer(SDMMC_TypeDef *SDMMCx) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Send CMD12 STOP_TRANSMISSION */ - sdmmc_cmdinit.Argument = 0U; - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_STOP_TRANSMISSION; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - - __SDMMC_CMDSTOP_ENABLE(SDMMCx); - __SDMMC_CMDTRANS_DISABLE(SDMMCx); - - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_STOP_TRANSMISSION, SDMMC_STOPTRANSFERTIMEOUT); - - __SDMMC_CMDSTOP_DISABLE(SDMMCx); - - /* Ignore Address Out Of Range Error, Not relevant at end of memory */ - if (errorstate == SDMMC_ERROR_ADDR_OUT_OF_RANGE) - { - errorstate = SDMMC_ERROR_NONE; - } - - return errorstate; -} - -/** - * @brief Send the Select Deselect command and check the response. - * @param SDMMCx: Pointer to SDMMC register base - * @param addr: Address of the card to be selected - * @retval HAL status - */ -uint32_t SDMMC_CmdSelDesel(SDMMC_TypeDef *SDMMCx, uint32_t Addr) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Send CMD7 SDMMC_SEL_DESEL_CARD */ - sdmmc_cmdinit.Argument = (uint32_t)Addr; - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_SEL_DESEL_CARD; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_SEL_DESEL_CARD, SDMMC_CMDTIMEOUT); - - return errorstate; -} - -/** - * @brief Send the Go Idle State command and check the response. - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -uint32_t SDMMC_CmdGoIdleState(SDMMC_TypeDef *SDMMCx) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - sdmmc_cmdinit.Argument = 0U; - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_GO_IDLE_STATE; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_NO; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdError(SDMMCx); - - return errorstate; -} - -/** - * @brief Send the Operating Condition command and check the response. - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -uint32_t SDMMC_CmdOperCond(SDMMC_TypeDef *SDMMCx) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Send CMD8 to verify SD card interface operating condition */ - /* Argument: - [31:12]: Reserved (shall be set to '0') - - [11:8]: Supply Voltage (VHS) 0x1 (Range: 2.7-3.6 V) - - [7:0]: Check Pattern (recommended 0xAA) */ - /* CMD Response: R7 */ - sdmmc_cmdinit.Argument = SDMMC_CHECK_PATTERN; - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_HS_SEND_EXT_CSD; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp7(SDMMCx); - - return errorstate; -} - -/** - * @brief Send the Application command to verify that that the next command - * is an application specific com-mand rather than a standard command - * and check the response. - * @param SDMMCx: Pointer to SDMMC register base - * @param Argument: Command Argument - * @retval HAL status - */ -uint32_t SDMMC_CmdAppCommand(SDMMC_TypeDef *SDMMCx, uint32_t Argument) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - sdmmc_cmdinit.Argument = (uint32_t)Argument; - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_APP_CMD; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - /* If there is a HAL_ERROR, it is a MMC card, else - it is a SD card: SD card 2.0 (voltage range mismatch) - or SD card 1.x */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_APP_CMD, SDMMC_CMDTIMEOUT); - - return errorstate; -} - -/** - * @brief Send the command asking the accessed card to send its operating - * condition register (OCR) - * @param SDMMCx: Pointer to SDMMC register base - * @param Argument: Command Argument - * @retval HAL status - */ -uint32_t SDMMC_CmdAppOperCommand(SDMMC_TypeDef *SDMMCx, uint32_t Argument) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - sdmmc_cmdinit.Argument = Argument; - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_SD_APP_OP_COND; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp3(SDMMCx); - - return errorstate; -} - -/** - * @brief Send the Bus Width command and check the response. - * @param SDMMCx: Pointer to SDMMC register base - * @param BusWidth: BusWidth - * @retval HAL status - */ -uint32_t SDMMC_CmdBusWidth(SDMMC_TypeDef *SDMMCx, uint32_t BusWidth) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - sdmmc_cmdinit.Argument = (uint32_t)BusWidth; - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_APP_SD_SET_BUSWIDTH; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_APP_SD_SET_BUSWIDTH, SDMMC_CMDTIMEOUT); - - return errorstate; -} - -/** - * @brief Send the Send SCR command and check the response. - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -uint32_t SDMMC_CmdSendSCR(SDMMC_TypeDef *SDMMCx) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Send CMD51 SD_APP_SEND_SCR */ - sdmmc_cmdinit.Argument = 0U; - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_SD_APP_SEND_SCR; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_SD_APP_SEND_SCR, SDMMC_CMDTIMEOUT); - - return errorstate; -} - -/** - * @brief Send the Send CID command and check the response. - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -uint32_t SDMMC_CmdSendCID(SDMMC_TypeDef *SDMMCx) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Send CMD2 ALL_SEND_CID */ - sdmmc_cmdinit.Argument = 0U; - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_ALL_SEND_CID; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_LONG; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp2(SDMMCx); - - return errorstate; -} - -/** - * @brief Send the Send CSD command and check the response. - * @param SDMMCx: Pointer to SDMMC register base - * @param Argument: Command Argument - * @retval HAL status - */ -uint32_t SDMMC_CmdSendCSD(SDMMC_TypeDef *SDMMCx, uint32_t Argument) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Send CMD9 SEND_CSD */ - sdmmc_cmdinit.Argument = Argument; - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_SEND_CSD; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_LONG; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp2(SDMMCx); - - return errorstate; -} - -/** - * @brief Send the Send CSD command and check the response. - * @param SDMMCx: Pointer to SDMMC register base - * @param pRCA: Card RCA - * @retval HAL status - */ -uint32_t SDMMC_CmdSetRelAdd(SDMMC_TypeDef *SDMMCx, uint16_t *pRCA) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Send CMD3 SD_CMD_SET_REL_ADDR */ - sdmmc_cmdinit.Argument = 0U; - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_SET_REL_ADDR; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp6(SDMMCx, SDMMC_CMD_SET_REL_ADDR, pRCA); - - return errorstate; -} - -/** - * @brief Send the Set Relative Address command to MMC card (not SD card). - * @param SDMMCx Pointer to SDMMC register base - * @param RCA Card RCA - * @retval HAL status - */ -uint32_t SDMMC_CmdSetRelAddMmc(SDMMC_TypeDef *SDMMCx, uint16_t RCA) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Send CMD3 SD_CMD_SET_REL_ADDR */ - sdmmc_cmdinit.Argument = ((uint32_t)RCA << 16U); - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_SET_REL_ADDR; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_SET_REL_ADDR, SDMMC_CMDTIMEOUT); - - return errorstate; -} - -/** - * @brief Send the Sleep command to MMC card (not SD card). - * @param SDMMCx Pointer to SDMMC register base - * @param Argument Argument of the command (RCA and Sleep/Awake) - * @retval HAL status - */ -uint32_t SDMMC_CmdSleepMmc(SDMMC_TypeDef *SDMMCx, uint32_t Argument) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Send CMD5 SDMMC_CMD_MMC_SLEEP_AWAKE */ - sdmmc_cmdinit.Argument = Argument; - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_MMC_SLEEP_AWAKE; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_MMC_SLEEP_AWAKE, SDMMC_CMDTIMEOUT); - - return errorstate; -} - -/** - * @brief Send the Status command and check the response. - * @param SDMMCx: Pointer to SDMMC register base - * @param Argument: Command Argument - * @retval HAL status - */ -uint32_t SDMMC_CmdSendStatus(SDMMC_TypeDef *SDMMCx, uint32_t Argument) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - sdmmc_cmdinit.Argument = Argument; - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_SEND_STATUS; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_SEND_STATUS, SDMMC_CMDTIMEOUT); - - return errorstate; -} - -/** - * @brief Send the Status register command and check the response. - * @param SDMMCx: Pointer to SDMMC register base - * @retval HAL status - */ -uint32_t SDMMC_CmdStatusRegister(SDMMC_TypeDef *SDMMCx) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - sdmmc_cmdinit.Argument = 0U; - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_SD_APP_STATUS; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_SD_APP_STATUS, SDMMC_CMDTIMEOUT); - - return errorstate; -} - -/** - * @brief Sends host capacity support information and activates the card's - * initialization process. Send SDMMC_CMD_SEND_OP_COND command - * @param SDMMCx: Pointer to SDMMC register base - * @parame Argument: Argument used for the command - * @retval HAL status - */ -uint32_t SDMMC_CmdOpCondition(SDMMC_TypeDef *SDMMCx, uint32_t Argument) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - sdmmc_cmdinit.Argument = Argument; - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_SEND_OP_COND; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp3(SDMMCx); - - return errorstate; -} - -/** - * @brief Checks switchable function and switch card function. SDMMC_CMD_HS_SWITCH command - * @param SDMMCx: Pointer to SDMMC register base - * @parame Argument: Argument used for the command - * @retval HAL status - */ -uint32_t SDMMC_CmdSwitch(SDMMC_TypeDef *SDMMCx, uint32_t Argument) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Send CMD6 to activate SDR50 Mode and Power Limit 1.44W */ - /* CMD Response: R1 */ - sdmmc_cmdinit.Argument = Argument; /* SDMMC_SDR25_SWITCH_PATTERN*/ - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_HS_SWITCH; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_HS_SWITCH, SDMMC_CMDTIMEOUT); - - return errorstate; -} - -/** - * @brief Send the command asking the accessed card to send its operating - * condition register (OCR) - * @param None - * @retval HAL status - */ -uint32_t SDMMC_CmdVoltageSwitch(SDMMC_TypeDef *SDMMCx) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - sdmmc_cmdinit.Argument = 0x00000000; - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_VOLTAGE_SWITCH; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_VOLTAGE_SWITCH, SDMMC_CMDTIMEOUT); - - return errorstate; -} - -/** - * @brief Send the Send EXT_CSD command and check the response. - * @param SDMMCx: Pointer to SDMMC register base - * @param Argument: Command Argument - * @retval HAL status - */ -uint32_t SDMMC_CmdSendEXTCSD(SDMMC_TypeDef *SDMMCx, uint32_t Argument) -{ - SDMMC_CmdInitTypeDef sdmmc_cmdinit; - uint32_t errorstate; - - /* Send CMD9 SEND_CSD */ - sdmmc_cmdinit.Argument = Argument; - sdmmc_cmdinit.CmdIndex = SDMMC_CMD_HS_SEND_EXT_CSD; - sdmmc_cmdinit.Response = SDMMC_RESPONSE_SHORT; - sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO; - sdmmc_cmdinit.CPSM = SDMMC_CPSM_ENABLE; - (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit); - - /* Check for error conditions */ - errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_HS_SEND_EXT_CSD, SDMMC_CMDTIMEOUT); - - return errorstate; -} - -/** - * @} - */ - - -/** @defgroup HAL_SDMMC_LL_Group5 Responses management functions - * @brief Responses functions - * -@verbatim - =============================================================================== - ##### Responses management functions ##### - =============================================================================== - [..] - This subsection provides a set of functions allowing to manage the needed responses. - -@endverbatim - * @{ - */ -/** - * @brief Checks for error conditions for R1 response. - * @param hsd: SD handle - * @param SD_CMD: The sent command index - * @retval SD Card error state - */ -uint32_t SDMMC_GetCmdResp1(SDMMC_TypeDef *SDMMCx, uint8_t SD_CMD, uint32_t Timeout) -{ - uint32_t response_r1; - uint32_t sta_reg; - - /* 8 is the number of required instructions cycles for the below loop statement. - The Timeout is expressed in ms */ - uint32_t count = Timeout * (SystemCoreClock / 8U / 1000U); - - do - { - if (count-- == 0U) - { - return SDMMC_ERROR_TIMEOUT; - } - sta_reg = SDMMCx->STA; - } while (((sta_reg & (SDMMC_FLAG_CCRCFAIL | SDMMC_FLAG_CMDREND | SDMMC_FLAG_CTIMEOUT | - SDMMC_FLAG_BUSYD0END)) == 0U) || ((sta_reg & SDMMC_FLAG_CMDACT) != 0U)); - - if (__SDMMC_GET_FLAG(SDMMCx, SDMMC_FLAG_CTIMEOUT)) - { - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_FLAG_CTIMEOUT); - - return SDMMC_ERROR_CMD_RSP_TIMEOUT; - } - else if (__SDMMC_GET_FLAG(SDMMCx, SDMMC_FLAG_CCRCFAIL)) - { - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_FLAG_CCRCFAIL); - - return SDMMC_ERROR_CMD_CRC_FAIL; - } - else - { - /* Nothing to do */ - } - - /* Clear all the static flags */ - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_STATIC_CMD_FLAGS); - - /* Check response received is of desired command */ - if (SDMMC_GetCommandResponse(SDMMCx) != SD_CMD) - { - return SDMMC_ERROR_CMD_CRC_FAIL; - } - - /* We have received response, retrieve it for analysis */ - response_r1 = SDMMC_GetResponse(SDMMCx, SDMMC_RESP1); - - if ((response_r1 & SDMMC_OCR_ERRORBITS) == SDMMC_ALLZERO) - { - return SDMMC_ERROR_NONE; - } - else if ((response_r1 & SDMMC_OCR_ADDR_OUT_OF_RANGE) == SDMMC_OCR_ADDR_OUT_OF_RANGE) - { - return SDMMC_ERROR_ADDR_OUT_OF_RANGE; - } - else if ((response_r1 & SDMMC_OCR_ADDR_MISALIGNED) == SDMMC_OCR_ADDR_MISALIGNED) - { - return SDMMC_ERROR_ADDR_MISALIGNED; - } - else if ((response_r1 & SDMMC_OCR_BLOCK_LEN_ERR) == SDMMC_OCR_BLOCK_LEN_ERR) - { - return SDMMC_ERROR_BLOCK_LEN_ERR; - } - else if ((response_r1 & SDMMC_OCR_ERASE_SEQ_ERR) == SDMMC_OCR_ERASE_SEQ_ERR) - { - return SDMMC_ERROR_ERASE_SEQ_ERR; - } - else if ((response_r1 & SDMMC_OCR_BAD_ERASE_PARAM) == SDMMC_OCR_BAD_ERASE_PARAM) - { - return SDMMC_ERROR_BAD_ERASE_PARAM; - } - else if ((response_r1 & SDMMC_OCR_WRITE_PROT_VIOLATION) == SDMMC_OCR_WRITE_PROT_VIOLATION) - { - return SDMMC_ERROR_WRITE_PROT_VIOLATION; - } - else if ((response_r1 & SDMMC_OCR_LOCK_UNLOCK_FAILED) == SDMMC_OCR_LOCK_UNLOCK_FAILED) - { - return SDMMC_ERROR_LOCK_UNLOCK_FAILED; - } - else if ((response_r1 & SDMMC_OCR_COM_CRC_FAILED) == SDMMC_OCR_COM_CRC_FAILED) - { - return SDMMC_ERROR_COM_CRC_FAILED; - } - else if ((response_r1 & SDMMC_OCR_ILLEGAL_CMD) == SDMMC_OCR_ILLEGAL_CMD) - { - return SDMMC_ERROR_ILLEGAL_CMD; - } - else if ((response_r1 & SDMMC_OCR_CARD_ECC_FAILED) == SDMMC_OCR_CARD_ECC_FAILED) - { - return SDMMC_ERROR_CARD_ECC_FAILED; - } - else if ((response_r1 & SDMMC_OCR_CC_ERROR) == SDMMC_OCR_CC_ERROR) - { - return SDMMC_ERROR_CC_ERR; - } - else if ((response_r1 & SDMMC_OCR_STREAM_READ_UNDERRUN) == SDMMC_OCR_STREAM_READ_UNDERRUN) - { - return SDMMC_ERROR_STREAM_READ_UNDERRUN; - } - else if ((response_r1 & SDMMC_OCR_STREAM_WRITE_OVERRUN) == SDMMC_OCR_STREAM_WRITE_OVERRUN) - { - return SDMMC_ERROR_STREAM_WRITE_OVERRUN; - } - else if ((response_r1 & SDMMC_OCR_CID_CSD_OVERWRITE) == SDMMC_OCR_CID_CSD_OVERWRITE) - { - return SDMMC_ERROR_CID_CSD_OVERWRITE; - } - else if ((response_r1 & SDMMC_OCR_WP_ERASE_SKIP) == SDMMC_OCR_WP_ERASE_SKIP) - { - return SDMMC_ERROR_WP_ERASE_SKIP; - } - else if ((response_r1 & SDMMC_OCR_CARD_ECC_DISABLED) == SDMMC_OCR_CARD_ECC_DISABLED) - { - return SDMMC_ERROR_CARD_ECC_DISABLED; - } - else if ((response_r1 & SDMMC_OCR_ERASE_RESET) == SDMMC_OCR_ERASE_RESET) - { - return SDMMC_ERROR_ERASE_RESET; - } - else if ((response_r1 & SDMMC_OCR_AKE_SEQ_ERROR) == SDMMC_OCR_AKE_SEQ_ERROR) - { - return SDMMC_ERROR_AKE_SEQ_ERR; - } - else - { - return SDMMC_ERROR_GENERAL_UNKNOWN_ERR; - } -} - -/** - * @brief Checks for error conditions for R2 (CID or CSD) response. - * @param hsd: SD handle - * @retval SD Card error state - */ -uint32_t SDMMC_GetCmdResp2(SDMMC_TypeDef *SDMMCx) -{ - uint32_t sta_reg; - /* 8 is the number of required instructions cycles for the below loop statement. - The SDMMC_CMDTIMEOUT is expressed in ms */ - uint32_t count = SDMMC_CMDTIMEOUT * (SystemCoreClock / 8U / 1000U); - - do - { - if (count-- == 0U) - { - return SDMMC_ERROR_TIMEOUT; - } - sta_reg = SDMMCx->STA; - } while (((sta_reg & (SDMMC_FLAG_CCRCFAIL | SDMMC_FLAG_CMDREND | SDMMC_FLAG_CTIMEOUT)) == 0U) || - ((sta_reg & SDMMC_FLAG_CMDACT) != 0U)); - - if (__SDMMC_GET_FLAG(SDMMCx, SDMMC_FLAG_CTIMEOUT)) - { - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_FLAG_CTIMEOUT); - - return SDMMC_ERROR_CMD_RSP_TIMEOUT; - } - else if (__SDMMC_GET_FLAG(SDMMCx, SDMMC_FLAG_CCRCFAIL)) - { - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_FLAG_CCRCFAIL); - - return SDMMC_ERROR_CMD_CRC_FAIL; - } - else - { - /* No error flag set */ - /* Clear all the static flags */ - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_STATIC_CMD_FLAGS); - } - - return SDMMC_ERROR_NONE; -} - -/** - * @brief Checks for error conditions for R3 (OCR) response. - * @param hsd: SD handle - * @retval SD Card error state - */ -uint32_t SDMMC_GetCmdResp3(SDMMC_TypeDef *SDMMCx) -{ - uint32_t sta_reg; - /* 8 is the number of required instructions cycles for the below loop statement. - The SDMMC_CMDTIMEOUT is expressed in ms */ - uint32_t count = SDMMC_CMDTIMEOUT * (SystemCoreClock / 8U / 1000U); - - do - { - if (count-- == 0U) - { - return SDMMC_ERROR_TIMEOUT; - } - sta_reg = SDMMCx->STA; - } while (((sta_reg & (SDMMC_FLAG_CCRCFAIL | SDMMC_FLAG_CMDREND | SDMMC_FLAG_CTIMEOUT)) == 0U) || - ((sta_reg & SDMMC_FLAG_CMDACT) != 0U)); - - if (__SDMMC_GET_FLAG(SDMMCx, SDMMC_FLAG_CTIMEOUT)) - { - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_FLAG_CTIMEOUT); - - return SDMMC_ERROR_CMD_RSP_TIMEOUT; - } - else - { - /* Clear all the static flags */ - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_STATIC_CMD_FLAGS); - } - - return SDMMC_ERROR_NONE; -} - -/** - * @brief Checks for error conditions for R6 (RCA) response. - * @param hsd: SD handle - * @param SD_CMD: The sent command index - * @param pRCA: Pointer to the variable that will contain the SD card relative - * address RCA - * @retval SD Card error state - */ -uint32_t SDMMC_GetCmdResp6(SDMMC_TypeDef *SDMMCx, uint8_t SD_CMD, uint16_t *pRCA) -{ - uint32_t response_r1; - uint32_t sta_reg; - - /* 8 is the number of required instructions cycles for the below loop statement. - The SDMMC_CMDTIMEOUT is expressed in ms */ - uint32_t count = SDMMC_CMDTIMEOUT * (SystemCoreClock / 8U / 1000U); - - do - { - if (count-- == 0U) - { - return SDMMC_ERROR_TIMEOUT; - } - sta_reg = SDMMCx->STA; - } while (((sta_reg & (SDMMC_FLAG_CCRCFAIL | SDMMC_FLAG_CMDREND | SDMMC_FLAG_CTIMEOUT)) == 0U) || - ((sta_reg & SDMMC_FLAG_CMDACT) != 0U)); - - if (__SDMMC_GET_FLAG(SDMMCx, SDMMC_FLAG_CTIMEOUT)) - { - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_FLAG_CTIMEOUT); - - return SDMMC_ERROR_CMD_RSP_TIMEOUT; - } - else if (__SDMMC_GET_FLAG(SDMMCx, SDMMC_FLAG_CCRCFAIL)) - { - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_FLAG_CCRCFAIL); - - return SDMMC_ERROR_CMD_CRC_FAIL; - } - else - { - /* Nothing to do */ - } - - /* Check response received is of desired command */ - if (SDMMC_GetCommandResponse(SDMMCx) != SD_CMD) - { - return SDMMC_ERROR_CMD_CRC_FAIL; - } - - /* Clear all the static flags */ - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_STATIC_CMD_FLAGS); - - /* We have received response, retrieve it. */ - response_r1 = SDMMC_GetResponse(SDMMCx, SDMMC_RESP1); - - if ((response_r1 & (SDMMC_R6_GENERAL_UNKNOWN_ERROR | SDMMC_R6_ILLEGAL_CMD | - SDMMC_R6_COM_CRC_FAILED)) == SDMMC_ALLZERO) - { - *pRCA = (uint16_t)(response_r1 >> 16); - - return SDMMC_ERROR_NONE; - } - else if ((response_r1 & SDMMC_R6_ILLEGAL_CMD) == SDMMC_R6_ILLEGAL_CMD) - { - return SDMMC_ERROR_ILLEGAL_CMD; - } - else if ((response_r1 & SDMMC_R6_COM_CRC_FAILED) == SDMMC_R6_COM_CRC_FAILED) - { - return SDMMC_ERROR_COM_CRC_FAILED; - } - else - { - return SDMMC_ERROR_GENERAL_UNKNOWN_ERR; - } -} - -/** - * @brief Checks for error conditions for R7 response. - * @param hsd: SD handle - * @retval SD Card error state - */ -uint32_t SDMMC_GetCmdResp7(SDMMC_TypeDef *SDMMCx) -{ - uint32_t sta_reg; - /* 8 is the number of required instructions cycles for the below loop statement. - The SDMMC_CMDTIMEOUT is expressed in ms */ - uint32_t count = SDMMC_CMDTIMEOUT * (SystemCoreClock / 8U / 1000U); - - do - { - if (count-- == 0U) - { - return SDMMC_ERROR_TIMEOUT; - } - sta_reg = SDMMCx->STA; - } while (((sta_reg & (SDMMC_FLAG_CCRCFAIL | SDMMC_FLAG_CMDREND | SDMMC_FLAG_CTIMEOUT)) == 0U) || - ((sta_reg & SDMMC_FLAG_CMDACT) != 0U)); - - if (__SDMMC_GET_FLAG(SDMMCx, SDMMC_FLAG_CTIMEOUT)) - { - /* Card is not SD V2.0 compliant */ - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_FLAG_CTIMEOUT); - - return SDMMC_ERROR_CMD_RSP_TIMEOUT; - } - - else if (__SDMMC_GET_FLAG(SDMMCx, SDMMC_FLAG_CCRCFAIL)) - { - /* Card is not SD V2.0 compliant */ - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_FLAG_CCRCFAIL); - - return SDMMC_ERROR_CMD_CRC_FAIL; - } - else - { - /* Nothing to do */ - } - - if (__SDMMC_GET_FLAG(SDMMCx, SDMMC_FLAG_CMDREND)) - { - /* Card is SD V2.0 compliant */ - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_FLAG_CMDREND); - } - - return SDMMC_ERROR_NONE; - -} - -/** - * @} - */ - -/* Private function ----------------------------------------------------------*/ -/** @addtogroup SD_Private_Functions - * @{ - */ - -/** - * @brief Checks for error conditions for CMD0. - * @param hsd: SD handle - * @retval SD Card error state - */ -static uint32_t SDMMC_GetCmdError(SDMMC_TypeDef *SDMMCx) -{ - /* 8 is the number of required instructions cycles for the below loop statement. - The SDMMC_CMDTIMEOUT is expressed in ms */ - uint32_t count = SDMMC_CMDTIMEOUT * (SystemCoreClock / 8U / 1000U); - - do - { - if (count-- == 0U) - { - return SDMMC_ERROR_TIMEOUT; - } - - } while (!__SDMMC_GET_FLAG(SDMMCx, SDMMC_FLAG_CMDSENT)); - - /* Clear all the static flags */ - __SDMMC_CLEAR_FLAG(SDMMCx, SDMMC_STATIC_CMD_FLAGS); - - return SDMMC_ERROR_NONE; -} - -/** - * @} - */ - -#endif /* HAL_SD_MODULE_ENABLED || HAL_MMC_MODULE_ENABLED */ -/** - * @} - */ - -/** - * @} - */ diff --git a/FATFS/App/fatfs.c b/FATFS/App/fatfs.c deleted file mode 100644 index 535a29b..0000000 --- a/FATFS/App/fatfs.c +++ /dev/null @@ -1,54 +0,0 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * @file fatfs.c - * @brief Code for fatfs applications - ****************************************************************************** - * @attention - * - * Copyright (c) 2024 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ -/* USER CODE END Header */ -#include "fatfs.h" - -uint8_t retSD; /* Return value for SD */ -char SDPath[4]; /* SD logical drive path */ -FATFS SDFatFS; /* File system object for SD logical drive */ -FIL SDFile; /* File object for SD */ - -/* USER CODE BEGIN Variables */ - -/* USER CODE END Variables */ - -void MX_FATFS_Init(void) -{ - /*## FatFS: Link the SD driver ###########################*/ - retSD = FATFS_LinkDriver(&SD_Driver, SDPath); - - /* USER CODE BEGIN Init */ - /* additional user code for init */ - /* USER CODE END Init */ -} - -/** - * @brief Gets Time from RTC - * @param None - * @retval Time in DWORD - */ -DWORD get_fattime(void) -{ - /* USER CODE BEGIN get_fattime */ - return 0; - /* USER CODE END get_fattime */ -} - -/* USER CODE BEGIN Application */ - -/* USER CODE END Application */ diff --git a/FATFS/App/fatfs.h b/FATFS/App/fatfs.h deleted file mode 100644 index 5e4720c..0000000 --- a/FATFS/App/fatfs.h +++ /dev/null @@ -1,47 +0,0 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * @file fatfs.h - * @brief Header for fatfs applications - ****************************************************************************** - * @attention - * - * Copyright (c) 2024 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ -/* USER CODE END Header */ -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef __fatfs_H -#define __fatfs_H -#ifdef __cplusplus - extern "C" { -#endif - -#include "ff.h" -#include "ff_gen_drv.h" -#include "sd_diskio.h" /* defines SD_Driver as external */ - -/* USER CODE BEGIN Includes */ - -/* USER CODE END Includes */ - -extern uint8_t retSD; /* Return value for SD */ -extern char SDPath[4]; /* SD logical drive path */ -extern FATFS SDFatFS; /* File system object for SD logical drive */ -extern FIL SDFile; /* File object for SD */ - -void MX_FATFS_Init(void); - -/* USER CODE BEGIN Prototypes */ - -/* USER CODE END Prototypes */ -#ifdef __cplusplus -} -#endif -#endif /*__fatfs_H */ diff --git a/FATFS/Target/bsp_driver_sd.c b/FATFS/Target/bsp_driver_sd.c deleted file mode 100644 index 72f807d..0000000 --- a/FATFS/Target/bsp_driver_sd.c +++ /dev/null @@ -1,307 +0,0 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * @file bsp_driver_sd.c for H7 (based on stm32h743i_eval_sd.c) - * @brief This file includes a generic uSD card driver. - * To be completed by the user according to the board used for the project. - * @note Some functions generated as weak: they can be overridden by - * - code in user files - * - or BSP code from the FW pack files - * if such files are added to the generated project (by the user). - ****************************************************************************** - * @attention - * - * Copyright (c) 2024 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ -/* USER CODE END Header */ - -/* USER CODE BEGIN FirstSection */ -/* can be used to modify / undefine following code or add new definitions */ -/* USER CODE END FirstSection */ -/* Includes ------------------------------------------------------------------*/ -#include "bsp_driver_sd.h" - -/* Extern variables ---------------------------------------------------------*/ - -extern SD_HandleTypeDef hsd1; - -/* USER CODE BEGIN BeforeInitSection */ -/* can be used to modify / undefine following code or add code */ -/* USER CODE END BeforeInitSection */ -/** - * @brief Initializes the SD card device. - * @retval SD status - */ -__weak uint8_t BSP_SD_Init(void) -{ - uint8_t sd_state = MSD_OK; - /* Check if the SD card is plugged in the slot */ - if (BSP_SD_IsDetected() != SD_PRESENT) - { - return MSD_ERROR_SD_NOT_PRESENT; - } - /* HAL SD initialization */ - sd_state = HAL_SD_Init(&hsd1); - /* Configure SD Bus width (4 bits mode selected) */ - if (sd_state == MSD_OK) - { - /* Enable wide operation */ - if (HAL_SD_ConfigWideBusOperation(&hsd1, SDMMC_BUS_WIDE_4B) != HAL_OK) - { - sd_state = MSD_ERROR; - } - } - - return sd_state; -} -/* USER CODE BEGIN AfterInitSection */ -/* can be used to modify previous code / undefine following code / add code */ -/* USER CODE END AfterInitSection */ - -/* USER CODE BEGIN InterruptMode */ -/** - * @brief Configures Interrupt mode for SD detection pin. - * @retval Returns 0 - */ -__weak uint8_t BSP_SD_ITConfig(void) -{ - /* Code to be updated by the user or replaced by one from the FW pack (in a stmxxxx_sd.c file) */ - - return (uint8_t)0; -} - -/* USER CODE END InterruptMode */ - -/* USER CODE BEGIN BeforeReadBlocksSection */ -/* can be used to modify previous code / undefine following code / add code */ -/* USER CODE END BeforeReadBlocksSection */ -/** - * @brief Reads block(s) from a specified address in an SD card, in polling mode. - * @param pData: Pointer to the buffer that will contain the data to transmit - * @param ReadAddr: Address from where data is to be read - * @param NumOfBlocks: Number of SD blocks to read - * @param Timeout: Timeout for read operation - * @retval SD status - */ -__weak uint8_t BSP_SD_ReadBlocks(uint32_t *pData, uint32_t ReadAddr, uint32_t NumOfBlocks, uint32_t Timeout) -{ - uint8_t sd_state = MSD_OK; - - if (HAL_SD_ReadBlocks(&hsd1, (uint8_t *)pData, ReadAddr, NumOfBlocks, Timeout) != HAL_OK) - { - sd_state = MSD_ERROR; - } - - return sd_state; -} - -/* USER CODE BEGIN BeforeWriteBlocksSection */ -/* can be used to modify previous code / undefine following code / add code */ -/* USER CODE END BeforeWriteBlocksSection */ -/** - * @brief Writes block(s) to a specified address in an SD card, in polling mode. - * @param pData: Pointer to the buffer that will contain the data to transmit - * @param WriteAddr: Address from where data is to be written - * @param NumOfBlocks: Number of SD blocks to write - * @param Timeout: Timeout for write operation - * @retval SD status - */ -__weak uint8_t BSP_SD_WriteBlocks(uint32_t *pData, uint32_t WriteAddr, uint32_t NumOfBlocks, uint32_t Timeout) -{ - uint8_t sd_state = MSD_OK; - - if (HAL_SD_WriteBlocks(&hsd1, (uint8_t *)pData, WriteAddr, NumOfBlocks, Timeout) != HAL_OK) - { - sd_state = MSD_ERROR; - } - - return sd_state; -} - -/* USER CODE BEGIN BeforeReadDMABlocksSection */ -/* can be used to modify previous code / undefine following code / add code */ -/* USER CODE END BeforeReadDMABlocksSection */ -/** - * @brief Reads block(s) from a specified address in an SD card, in DMA mode. - * @param pData: Pointer to the buffer that will contain the data to transmit - * @param ReadAddr: Address from where data is to be read - * @param NumOfBlocks: Number of SD blocks to read - * @retval SD status - */ -__weak uint8_t BSP_SD_ReadBlocks_DMA(uint32_t *pData, uint32_t ReadAddr, uint32_t NumOfBlocks) -{ - uint8_t sd_state = MSD_OK; - - /* Read block(s) in DMA transfer mode */ - if (HAL_SD_ReadBlocks_DMA(&hsd1, (uint8_t *)pData, ReadAddr, NumOfBlocks) != HAL_OK) - { - sd_state = MSD_ERROR; - } - - return sd_state; -} - -/* USER CODE BEGIN BeforeWriteDMABlocksSection */ -/* can be used to modify previous code / undefine following code / add code */ -/* USER CODE END BeforeWriteDMABlocksSection */ -/** - * @brief Writes block(s) to a specified address in an SD card, in DMA mode. - * @param pData: Pointer to the buffer that will contain the data to transmit - * @param WriteAddr: Address from where data is to be written - * @param NumOfBlocks: Number of SD blocks to write - * @retval SD status - */ -__weak uint8_t BSP_SD_WriteBlocks_DMA(uint32_t *pData, uint32_t WriteAddr, uint32_t NumOfBlocks) -{ - uint8_t sd_state = MSD_OK; - - /* Write block(s) in DMA transfer mode */ - if (HAL_SD_WriteBlocks_DMA(&hsd1, (uint8_t *)pData, WriteAddr, NumOfBlocks) != HAL_OK) - { - sd_state = MSD_ERROR; - } - - return sd_state; -} - -/* USER CODE BEGIN BeforeEraseSection */ -/* can be used to modify previous code / undefine following code / add code */ -/* USER CODE END BeforeEraseSection */ -/** - * @brief Erases the specified memory area of the given SD card. - * @param StartAddr: Start byte address - * @param EndAddr: End byte address - * @retval SD status - */ -__weak uint8_t BSP_SD_Erase(uint32_t StartAddr, uint32_t EndAddr) -{ - uint8_t sd_state = MSD_OK; - - if (HAL_SD_Erase(&hsd1, StartAddr, EndAddr) != HAL_OK) - { - sd_state = MSD_ERROR; - } - - return sd_state; -} - -/* USER CODE BEGIN BeforeGetCardStateSection */ -/* can be used to modify previous code / undefine following code / add code */ -/* USER CODE END BeforeGetCardStateSection */ - -/** - * @brief Gets the current SD card data status. - * @param None - * @retval Data transfer state. - * This value can be one of the following values: - * @arg SD_TRANSFER_OK: No data transfer is acting - * @arg SD_TRANSFER_BUSY: Data transfer is acting - */ -__weak uint8_t BSP_SD_GetCardState(void) -{ - return ((HAL_SD_GetCardState(&hsd1) == HAL_SD_CARD_TRANSFER ) ? SD_TRANSFER_OK : SD_TRANSFER_BUSY); -} - -/** - * @brief Get SD information about specific SD card. - * @param CardInfo: Pointer to HAL_SD_CardInfoTypedef structure - * @retval None - */ -__weak void BSP_SD_GetCardInfo(HAL_SD_CardInfoTypeDef *CardInfo) -{ - /* Get SD card Information */ - HAL_SD_GetCardInfo(&hsd1, CardInfo); -} - -/* USER CODE BEGIN BeforeCallBacksSection */ -/* can be used to modify previous code / undefine following code / add code */ -/* USER CODE END BeforeCallBacksSection */ -/** - * @brief SD Abort callbacks - * @param hsd: SD handle - * @retval None - */ -void HAL_SD_AbortCallback(SD_HandleTypeDef *hsd) -{ - BSP_SD_AbortCallback(); -} - -/** - * @brief Tx Transfer completed callback - * @param hsd: SD handle - * @retval None - */ -void HAL_SD_TxCpltCallback(SD_HandleTypeDef *hsd) -{ - BSP_SD_WriteCpltCallback(); -} - -/** - * @brief Rx Transfer completed callback - * @param hsd: SD handle - * @retval None - */ -void HAL_SD_RxCpltCallback(SD_HandleTypeDef *hsd) -{ - BSP_SD_ReadCpltCallback(); -} - -/* USER CODE BEGIN CallBacksSection_C */ -/** - * @brief BSP SD Abort callback - * @retval None - * @note empty (up to the user to fill it in or to remove it if useless) - */ -__weak void BSP_SD_AbortCallback(void) -{ - -} - -/** - * @brief BSP Tx Transfer completed callback - * @retval None - * @note empty (up to the user to fill it in or to remove it if useless) - */ -__weak void BSP_SD_WriteCpltCallback(void) -{ - -} - -/** - * @brief BSP Rx Transfer completed callback - * @retval None - * @note empty (up to the user to fill it in or to remove it if useless) - */ -__weak void BSP_SD_ReadCpltCallback(void) -{ - -} -/* USER CODE END CallBacksSection_C */ - -/** - * @brief Detects if SD card is correctly plugged in the memory slot or not. - * @param None - * @retval Returns if SD is detected or not - */ -__weak uint8_t BSP_SD_IsDetected(void) -{ - __IO uint8_t status = SD_PRESENT; - - if (BSP_PlatformIsDetected() == 0x0) - { - status = SD_NOT_PRESENT; - } - - return status; -} - -/* USER CODE BEGIN AdditionalCode */ -/* user code can be inserted here */ -/* USER CODE END AdditionalCode */ diff --git a/FATFS/Target/bsp_driver_sd.h b/FATFS/Target/bsp_driver_sd.h deleted file mode 100644 index 6ef48ea..0000000 --- a/FATFS/Target/bsp_driver_sd.h +++ /dev/null @@ -1,83 +0,0 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * @file bsp_driver_sd.h (based on stm32h743i_eval_sd.h) - * @brief This file contains the common defines and functions prototypes for - * the bsp_driver_sd.c driver. - ****************************************************************************** - * @attention - * - * Copyright (c) 2024 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ -/* USER CODE END Header */ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef __STM32H7_SD_H -#define __STM32H7_SD_H - -#ifdef __cplusplus - extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" -#include "fatfs_platform.h" - -/* Exported types --------------------------------------------------------*/ -/** - * @brief SD Card information structure - */ -#define BSP_SD_CardInfo HAL_SD_CardInfoTypeDef - -/* Exported constants --------------------------------------------------------*/ -/** - * @brief SD status structure definition - */ -#define MSD_OK ((uint8_t)0x00) -#define MSD_ERROR ((uint8_t)0x01) -#define MSD_ERROR_SD_NOT_PRESENT ((uint8_t)0x02) - -/** - * @brief SD transfer state definition - */ -#define SD_TRANSFER_OK ((uint8_t)0x00) -#define SD_TRANSFER_BUSY ((uint8_t)0x01) - -#define SD_PRESENT ((uint8_t)0x01) -#define SD_NOT_PRESENT ((uint8_t)0x00) -#define SD_DATATIMEOUT ((uint32_t)100000000) - -/* USER CODE BEGIN BSP_H_CODE */ -#define SD_DetectIRQHandler() HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_8) - -/* Exported functions --------------------------------------------------------*/ -uint8_t BSP_SD_Init(void); -uint8_t BSP_SD_ITConfig(void); -uint8_t BSP_SD_ReadBlocks(uint32_t *pData, uint32_t ReadAddr, uint32_t NumOfBlocks, uint32_t Timeout); -uint8_t BSP_SD_WriteBlocks(uint32_t *pData, uint32_t WriteAddr, uint32_t NumOfBlocks, uint32_t Timeout); -uint8_t BSP_SD_ReadBlocks_DMA(uint32_t *pData, uint32_t ReadAddr, uint32_t NumOfBlocks); -uint8_t BSP_SD_WriteBlocks_DMA(uint32_t *pData, uint32_t WriteAddr, uint32_t NumOfBlocks); -uint8_t BSP_SD_Erase(uint32_t StartAddr, uint32_t EndAddr); -uint8_t BSP_SD_GetCardState(void); -void BSP_SD_GetCardInfo(BSP_SD_CardInfo *CardInfo); -uint8_t BSP_SD_IsDetected(void); - -/* These functions can be modified in case the current settings (e.g. DMA stream) - need to be changed for specific application needs */ -void BSP_SD_AbortCallback(void); -void BSP_SD_WriteCpltCallback(void); -void BSP_SD_ReadCpltCallback(void); -/* USER CODE END BSP_H_CODE */ - -#ifdef __cplusplus -} -#endif - -#endif /* __STM32H7_SD_H */ diff --git a/FATFS/Target/fatfs_platform.c b/FATFS/Target/fatfs_platform.c deleted file mode 100644 index 07e388d..0000000 --- a/FATFS/Target/fatfs_platform.c +++ /dev/null @@ -1,32 +0,0 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * @file : fatfs_platform.c - * @brief : fatfs_platform source file - ****************************************************************************** - * @attention - * - * Copyright (c) 2024 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** -*/ -/* USER CODE END Header */ -#include "fatfs_platform.h" - -uint8_t BSP_PlatformIsDetected(void) { - uint8_t status = SD_PRESENT; - /* Check SD card detect pin */ - if(HAL_GPIO_ReadPin(SD_DETECT_GPIO_PORT, SD_DETECT_PIN) != GPIO_PIN_RESET) - { - status = SD_NOT_PRESENT; - } - /* USER CODE BEGIN 1 */ - /* user code can be inserted here */ - /* USER CODE END 1 */ - return status; -} diff --git a/FATFS/Target/fatfs_platform.h b/FATFS/Target/fatfs_platform.h deleted file mode 100644 index c44518f..0000000 --- a/FATFS/Target/fatfs_platform.h +++ /dev/null @@ -1,27 +0,0 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * @file : fatfs_platform.h - * @brief : fatfs_platform header file - ****************************************************************************** - * @attention - * - * Copyright (c) 2024 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** -*/ -/* USER CODE END Header */ -/* Includes ------------------------------------------------------------------*/ -#include "stm32h7xx_hal.h" -/* Defines ------------------------------------------------------------------*/ -#define SD_PRESENT ((uint8_t)0x01) /* also in bsp_driver_sd.h */ -#define SD_NOT_PRESENT ((uint8_t)0x00) /* also in bsp_driver_sd.h */ -#define SD_DETECT_PIN GPIO_PIN_15 -#define SD_DETECT_GPIO_PORT GPIOB -/* Prototypes ---------------------------------------------------------------*/ -uint8_t BSP_PlatformIsDetected(void); diff --git a/FATFS/Target/ffconf.h b/FATFS/Target/ffconf.h deleted file mode 100644 index 6f28d42..0000000 --- a/FATFS/Target/ffconf.h +++ /dev/null @@ -1,270 +0,0 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * FatFs - Generic FAT file system module R0.12c (C)ChaN, 2017 - ****************************************************************************** - * @attention - * - * Copyright (c) 2024 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ -/* USER CODE END Header */ - -#ifndef _FFCONF -#define _FFCONF 68300 /* Revision ID */ - -/*-----------------------------------------------------------------------------/ -/ Additional user header to be used -/-----------------------------------------------------------------------------*/ -#include "main.h" -#include "stm32h7xx_hal.h" -#include "bsp_driver_sd.h" -#include "cmsis_os.h" /* _FS_REENTRANT set to 1 and CMSIS API chosen */ - -/*-----------------------------------------------------------------------------/ -/ Function Configurations -/-----------------------------------------------------------------------------*/ - -#define _FS_READONLY 0 /* 0:Read/Write or 1:Read only */ -/* This option switches read-only configuration. (0:Read/Write or 1:Read-only) -/ Read-only configuration removes writing API functions, f_write(), f_sync(), -/ f_unlink(), f_mkdir(), f_chmod(), f_rename(), f_truncate(), f_getfree() -/ and optional writing functions as well. */ - -#define _FS_MINIMIZE 0 /* 0 to 3 */ -/* This option defines minimization level to remove some basic API functions. -/ -/ 0: All basic functions are enabled. -/ 1: f_stat(), f_getfree(), f_unlink(), f_mkdir(), f_truncate() and f_rename() -/ are removed. -/ 2: f_opendir(), f_readdir() and f_closedir() are removed in addition to 1. -/ 3: f_lseek() function is removed in addition to 2. */ - -#define _USE_STRFUNC 2 /* 0:Disable or 1-2:Enable */ -/* This option switches string functions, f_gets(), f_putc(), f_puts() and -/ f_printf(). -/ -/ 0: Disable string functions. -/ 1: Enable without LF-CRLF conversion. -/ 2: Enable with LF-CRLF conversion. */ - -#define _USE_FIND 0 -/* This option switches filtered directory read functions, f_findfirst() and -/ f_findnext(). (0:Disable, 1:Enable 2:Enable with matching altname[] too) */ - -#define _USE_MKFS 1 -/* This option switches f_mkfs() function. (0:Disable or 1:Enable) */ - -#define _USE_FASTSEEK 1 -/* This option switches fast seek feature. (0:Disable or 1:Enable) */ - -#define _USE_EXPAND 0 -/* This option switches f_expand function. (0:Disable or 1:Enable) */ - -#define _USE_CHMOD 0 -/* This option switches attribute manipulation functions, f_chmod() and f_utime(). -/ (0:Disable or 1:Enable) Also _FS_READONLY needs to be 0 to enable this option. */ - -#define _USE_LABEL 0 -/* This option switches volume label functions, f_getlabel() and f_setlabel(). -/ (0:Disable or 1:Enable) */ - -#define _USE_FORWARD 0 -/* This option switches f_forward() function. (0:Disable or 1:Enable) */ - -/*-----------------------------------------------------------------------------/ -/ Locale and Namespace Configurations -/-----------------------------------------------------------------------------*/ - -#define _CODE_PAGE 850 -/* This option specifies the OEM code page to be used on the target system. -/ Incorrect setting of the code page can cause a file open failure. -/ -/ 1 - ASCII (No extended character. Non-LFN cfg. only) -/ 437 - U.S. -/ 720 - Arabic -/ 737 - Greek -/ 771 - KBL -/ 775 - Baltic -/ 850 - Latin 1 -/ 852 - Latin 2 -/ 855 - Cyrillic -/ 857 - Turkish -/ 860 - Portuguese -/ 861 - Icelandic -/ 862 - Hebrew -/ 863 - Canadian French -/ 864 - Arabic -/ 865 - Nordic -/ 866 - Russian -/ 869 - Greek 2 -/ 932 - Japanese (DBCS) -/ 936 - Simplified Chinese (DBCS) -/ 949 - Korean (DBCS) -/ 950 - Traditional Chinese (DBCS) -*/ - -#define _USE_LFN 2 /* 0 to 3 */ -#define _MAX_LFN 255 /* Maximum LFN length to handle (12 to 255) */ -/* The _USE_LFN switches the support of long file name (LFN). -/ -/ 0: Disable support of LFN. _MAX_LFN has no effect. -/ 1: Enable LFN with static working buffer on the BSS. Always NOT thread-safe. -/ 2: Enable LFN with dynamic working buffer on the STACK. -/ 3: Enable LFN with dynamic working buffer on the HEAP. -/ -/ To enable the LFN, Unicode handling functions (option/unicode.c) must be added -/ to the project. The working buffer occupies (_MAX_LFN + 1) * 2 bytes and -/ additional 608 bytes at exFAT enabled. _MAX_LFN can be in range from 12 to 255. -/ It should be set 255 to support full featured LFN operations. -/ When use stack for the working buffer, take care on stack overflow. When use heap -/ memory for the working buffer, memory management functions, ff_memalloc() and -/ ff_memfree(), must be added to the project. */ - -#define _LFN_UNICODE 0 /* 0:ANSI/OEM or 1:Unicode */ -/* This option switches character encoding on the API. (0:ANSI/OEM or 1:UTF-16) -/ To use Unicode string for the path name, enable LFN and set _LFN_UNICODE = 1. -/ This option also affects behavior of string I/O functions. */ - -#define _STRF_ENCODE 3 -/* When _LFN_UNICODE == 1, this option selects the character encoding ON THE FILE to -/ be read/written via string I/O functions, f_gets(), f_putc(), f_puts and f_printf(). -/ -/ 0: ANSI/OEM -/ 1: UTF-16LE -/ 2: UTF-16BE -/ 3: UTF-8 -/ -/ This option has no effect when _LFN_UNICODE == 0. */ - -#define _FS_RPATH 0 /* 0 to 2 */ -/* This option configures support of relative path. -/ -/ 0: Disable relative path and remove related functions. -/ 1: Enable relative path. f_chdir() and f_chdrive() are available. -/ 2: f_getcwd() function is available in addition to 1. -*/ - -/*---------------------------------------------------------------------------/ -/ Drive/Volume Configurations -/----------------------------------------------------------------------------*/ - -#define _VOLUMES 1 -/* Number of volumes (logical drives) to be used. */ - -/* USER CODE BEGIN Volumes */ -#define _STR_VOLUME_ID 0 /* 0:Use only 0-9 for drive ID, 1:Use strings for drive ID */ -#define _VOLUME_STRS "RAM","NAND","CF","SD1","SD2","USB1","USB2","USB3" -/* _STR_VOLUME_ID switches string support of volume ID. -/ When _STR_VOLUME_ID is set to 1, also pre-defined strings can be used as drive -/ number in the path name. _VOLUME_STRS defines the drive ID strings for each -/ logical drives. Number of items must be equal to _VOLUMES. Valid characters for -/ the drive ID strings are: A-Z and 0-9. */ -/* USER CODE END Volumes */ - -#define _MULTI_PARTITION 0 /* 0:Single partition, 1:Multiple partition */ -/* This option switches support of multi-partition on a physical drive. -/ By default (0), each logical drive number is bound to the same physical drive -/ number and only an FAT volume found on the physical drive will be mounted. -/ When multi-partition is enabled (1), each logical drive number can be bound to -/ arbitrary physical drive and partition listed in the VolToPart[]. Also f_fdisk() -/ function will be available. */ -#define _MIN_SS 512 /* 512, 1024, 2048 or 4096 */ -#define _MAX_SS 4096 /* 512, 1024, 2048 or 4096 */ -/* These options configure the range of sector size to be supported. (512, 1024, -/ 2048 or 4096) Always set both 512 for most systems, all type of memory cards and -/ harddisk. But a larger value may be required for on-board flash memory and some -/ type of optical media. When _MAX_SS is larger than _MIN_SS, FatFs is configured -/ to variable sector size and GET_SECTOR_SIZE command must be implemented to the -/ disk_ioctl() function. */ - -#define _USE_TRIM 0 -/* This option switches support of ATA-TRIM. (0:Disable or 1:Enable) -/ To enable Trim function, also CTRL_TRIM command should be implemented to the -/ disk_ioctl() function. */ - -#define _FS_NOFSINFO 0 /* 0,1,2 or 3 */ -/* If you need to know correct free space on the FAT32 volume, set bit 0 of this -/ option, and f_getfree() function at first time after volume mount will force -/ a full FAT scan. Bit 1 controls the use of last allocated cluster number. -/ -/ bit0=0: Use free cluster count in the FSINFO if available. -/ bit0=1: Do not trust free cluster count in the FSINFO. -/ bit1=0: Use last allocated cluster number in the FSINFO if available. -/ bit1=1: Do not trust last allocated cluster number in the FSINFO. -*/ - -/*---------------------------------------------------------------------------/ -/ System Configurations -/----------------------------------------------------------------------------*/ - -#define _FS_TINY 0 /* 0:Normal or 1:Tiny */ -/* This option switches tiny buffer configuration. (0:Normal or 1:Tiny) -/ At the tiny configuration, size of file object (FIL) is reduced _MAX_SS bytes. -/ Instead of private sector buffer eliminated from the file object, common sector -/ buffer in the file system object (FATFS) is used for the file data transfer. */ - -#define _FS_EXFAT 1 -/* This option switches support of exFAT file system. (0:Disable or 1:Enable) -/ When enable exFAT, also LFN needs to be enabled. (_USE_LFN >= 1) -/ Note that enabling exFAT discards C89 compatibility. */ - -#define _FS_NORTC 0 -#define _NORTC_MON 6 -#define _NORTC_MDAY 4 -#define _NORTC_YEAR 2015 -/* The option _FS_NORTC switches timestamp functiton. If the system does not have -/ any RTC function or valid timestamp is not needed, set _FS_NORTC = 1 to disable -/ the timestamp function. All objects modified by FatFs will have a fixed timestamp -/ defined by _NORTC_MON, _NORTC_MDAY and _NORTC_YEAR in local time. -/ To enable timestamp function (_FS_NORTC = 0), get_fattime() function need to be -/ added to the project to get current time form real-time clock. _NORTC_MON, -/ _NORTC_MDAY and _NORTC_YEAR have no effect. -/ These options have no effect at read-only configuration (_FS_READONLY = 1). */ - -#define _FS_LOCK 2 /* 0:Disable or >=1:Enable */ -/* The option _FS_LOCK switches file lock function to control duplicated file open -/ and illegal operation to open objects. This option must be 0 when _FS_READONLY -/ is 1. -/ -/ 0: Disable file lock function. To avoid volume corruption, application program -/ should avoid illegal open, remove and rename to the open objects. -/ >0: Enable file lock function. The value defines how many files/sub-directories -/ can be opened simultaneously under file lock control. Note that the file -/ lock control is independent of re-entrancy. */ - -#define _FS_REENTRANT 1 /* 0:Disable or 1:Enable */ - -#define _USE_MUTEX 0 /* 0:Disable or 1:Enable */ -#define _FS_TIMEOUT 1000 /* Timeout period in unit of time ticks */ -#define _SYNC_t osSemaphoreId -/* The option _FS_REENTRANT switches the re-entrancy (thread safe) of the FatFs -/ module itself. Note that regardless of this option, file access to different -/ volume is always re-entrant and volume control functions, f_mount(), f_mkfs() -/ and f_fdisk() function, are always not re-entrant. Only file/directory access -/ to the same volume is under control of this function. -/ -/ 0: Disable re-entrancy. _FS_TIMEOUT and _SYNC_t have no effect. -/ 1: Enable re-entrancy. Also user provided synchronization handlers, -/ ff_req_grant(), ff_rel_grant(), ff_del_syncobj() and ff_cre_syncobj() -/ function, must be added to the project. Samples are available in -/ option/syscall.c. -/ -/ The _FS_TIMEOUT defines timeout period in unit of time tick. -/ The _SYNC_t defines O/S dependent sync object type. e.g. HANDLE, ID, OS_EVENT*, -/ SemaphoreHandle_t and etc.. A header file for O/S definitions needs to be -/ included somewhere in the scope of ff.h. */ - -/* define the ff_malloc ff_free macros as FreeRTOS pvPortMalloc and vPortFree macros */ -#if !defined(ff_malloc) && !defined(ff_free) -#define ff_malloc pvPortMalloc -#define ff_free vPortFree -#endif - -#endif /* _FFCONF */ diff --git a/FATFS/Target/sd_diskio.c b/FATFS/Target/sd_diskio.c deleted file mode 100644 index 32d1451..0000000 --- a/FATFS/Target/sd_diskio.c +++ /dev/null @@ -1,683 +0,0 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * @file sd_diskio.c - * @brief SD Disk I/O driver - ****************************************************************************** - * @attention - * - * Copyright (c) 2024 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ -/* USER CODE END Header */ - -/* Note: code generation based on sd_diskio_dma_rtos_template_bspv1.c v2.1.4 - as FreeRTOS is enabled. */ - -/* USER CODE BEGIN firstSection */ -/* can be used to modify / undefine following code or add new definitions */ -/* USER CODE END firstSection*/ - -/* Includes ------------------------------------------------------------------*/ -#include "ff_gen_drv.h" -#include "sd_diskio.h" - -#include -#include - -/* Private typedef -----------------------------------------------------------*/ -/* Private define ------------------------------------------------------------*/ - -#define QUEUE_SIZE (uint32_t) 10 -#define READ_CPLT_MSG (uint32_t) 1 -#define WRITE_CPLT_MSG (uint32_t) 2 -/* -================================================================== -enable the defines below to send custom rtos messages -when an error or an abort occurs. -Notice: depending on the HAL/SD driver the HAL_SD_ErrorCallback() -may not be available. -See BSP_SD_ErrorCallback() and BSP_SD_AbortCallback() below -================================================================== - -#define RW_ERROR_MSG (uint32_t) 3 -#define RW_ABORT_MSG (uint32_t) 4 -*/ -/* - * the following Timeout is useful to give the control back to the applications - * in case of errors in either BSP_SD_ReadCpltCallback() or BSP_SD_WriteCpltCallback() - * the value by default is as defined in the BSP platform driver otherwise 30 secs - */ -#define SD_TIMEOUT 30 * 1000 - -#define SD_DEFAULT_BLOCK_SIZE 512 - -/* - * Depending on the use case, the SD card initialization could be done at the - * application level: if it is the case define the flag below to disable - * the BSP_SD_Init() call in the SD_Initialize() and add a call to - * BSP_SD_Init() elsewhere in the application. - */ -/* USER CODE BEGIN disableSDInit */ -/* #define DISABLE_SD_INIT */ -/* USER CODE END disableSDInit */ - -/* - * when using cacheable memory region, it may be needed to maintain the cache - * validity. Enable the define below to activate a cache maintenance at each - * read and write operation. - * Notice: This is applicable only for cortex M7 based platform. - */ -/* USER CODE BEGIN enableSDDmaCacheMaintenance */ -/* #define ENABLE_SD_DMA_CACHE_MAINTENANCE 1 */ -/* USER CODE END enableSDDmaCacheMaintenance */ - -/* -* Some DMA requires 4-Byte aligned address buffer to correctly read/write data, -* in FatFs some accesses aren't thus we need a 4-byte aligned scratch buffer to correctly -* transfer data -*/ -/* USER CODE BEGIN enableScratchBuffer */ -/* #define ENABLE_SCRATCH_BUFFER */ -/* USER CODE END enableScratchBuffer */ - -/* Private variables ---------------------------------------------------------*/ -#if defined(ENABLE_SCRATCH_BUFFER) -#if defined (ENABLE_SD_DMA_CACHE_MAINTENANCE) -ALIGN_32BYTES(static uint8_t scratch[BLOCKSIZE]); // 32-Byte aligned for cache maintenance -#else -__ALIGN_BEGIN static uint8_t scratch[BLOCKSIZE] __ALIGN_END; -#endif -#endif -/* Disk status */ -static volatile DSTATUS Stat = STA_NOINIT; - -#if (osCMSIS <= 0x20000U) -static osMessageQId SDQueueID = NULL; -#else -static osMessageQueueId_t SDQueueID = NULL; -#endif -/* Private function prototypes -----------------------------------------------*/ -static DSTATUS SD_CheckStatus(BYTE lun); -DSTATUS SD_initialize (BYTE); -DSTATUS SD_status (BYTE); -DRESULT SD_read (BYTE, BYTE*, DWORD, UINT); -#if _USE_WRITE == 1 -DRESULT SD_write (BYTE, const BYTE*, DWORD, UINT); -#endif /* _USE_WRITE == 1 */ -#if _USE_IOCTL == 1 -DRESULT SD_ioctl (BYTE, BYTE, void*); -#endif /* _USE_IOCTL == 1 */ - -const Diskio_drvTypeDef SD_Driver = -{ - SD_initialize, - SD_status, - SD_read, -#if _USE_WRITE == 1 - SD_write, -#endif /* _USE_WRITE == 1 */ - -#if _USE_IOCTL == 1 - SD_ioctl, -#endif /* _USE_IOCTL == 1 */ -}; - -/* USER CODE BEGIN beforeFunctionSection */ -/* can be used to modify / undefine following code or add new code */ -/* USER CODE END beforeFunctionSection */ - -/* Private functions ---------------------------------------------------------*/ - -static int SD_CheckStatusWithTimeout(uint32_t timeout) -{ - uint32_t timer; - /* block until SDIO peripheral is ready again or a timeout occur */ -#if (osCMSIS <= 0x20000U) - timer = osKernelSysTick(); - while( osKernelSysTick() - timer < timeout) -#else - timer = osKernelGetTickCount(); - while( osKernelGetTickCount() - timer < timeout) -#endif - { - if (BSP_SD_GetCardState() == SD_TRANSFER_OK) - { - return 0; - } - } - - return -1; -} - -static DSTATUS SD_CheckStatus(BYTE lun) -{ - Stat = STA_NOINIT; - - if(BSP_SD_GetCardState() == SD_TRANSFER_OK) - { - Stat &= ~STA_NOINIT; - } - - return Stat; -} - -/** - * @brief Initializes a Drive - * @param lun : not used - * @retval DSTATUS: Operation status - */ -DSTATUS SD_initialize(BYTE lun) -{ -Stat = STA_NOINIT; - - /* - * check that the kernel has been started before continuing - * as the osMessage API will fail otherwise - */ -#if (osCMSIS <= 0x20000U) - if(osKernelRunning()) -#else - if(osKernelGetState() == osKernelRunning) -#endif - { -#if !defined(DISABLE_SD_INIT) - - if(BSP_SD_Init() == MSD_OK) - { - Stat = SD_CheckStatus(lun); - } - -#else - Stat = SD_CheckStatus(lun); -#endif - - /* - * if the SD is correctly initialized, create the operation queue - * if not already created - */ - - if (Stat != STA_NOINIT) - { - if (SDQueueID == NULL) - { - #if (osCMSIS <= 0x20000U) - osMessageQDef(SD_Queue, QUEUE_SIZE, uint16_t); - SDQueueID = osMessageCreate (osMessageQ(SD_Queue), NULL); -#else - SDQueueID = osMessageQueueNew(QUEUE_SIZE, 2, NULL); -#endif - } - - if (SDQueueID == NULL) - { - Stat |= STA_NOINIT; - } - } - } - - return Stat; -} - -/** - * @brief Gets Disk Status - * @param lun : not used - * @retval DSTATUS: Operation status - */ -DSTATUS SD_status(BYTE lun) -{ - return SD_CheckStatus(lun); -} - -/* USER CODE BEGIN beforeReadSection */ -/* can be used to modify previous code / undefine following code / add new code */ -/* USER CODE END beforeReadSection */ -/** - * @brief Reads Sector(s) - * @param lun : not used - * @param *buff: Data buffer to store read data - * @param sector: Sector address (LBA) - * @param count: Number of sectors to read (1..128) - * @retval DRESULT: Operation result - */ - -DRESULT SD_read(BYTE lun, BYTE *buff, DWORD sector, UINT count) -{ - uint8_t ret; - DRESULT res = RES_ERROR; - uint32_t timer; -#if (osCMSIS < 0x20000U) - osEvent event; -#else - uint16_t event; - osStatus_t status; -#endif -#if (ENABLE_SD_DMA_CACHE_MAINTENANCE == 1) - uint32_t alignedAddr; -#endif - /* - * ensure the SDCard is ready for a new operation - */ - - if (SD_CheckStatusWithTimeout(SD_TIMEOUT) < 0) - { - return res; - } - -#if defined(ENABLE_SCRATCH_BUFFER) - if (!((uint32_t)buff & 0x3)) - { -#endif - /* Fast path cause destination buffer is correctly aligned */ - ret = BSP_SD_ReadBlocks_DMA((uint32_t*)buff, (uint32_t)(sector), count); - - if (ret == MSD_OK) { -#if (osCMSIS < 0x20000U) - /* wait for a message from the queue or a timeout */ - event = osMessageGet(SDQueueID, SD_TIMEOUT); - - if (event.status == osEventMessage) - { - if (event.value.v == READ_CPLT_MSG) - { - timer = osKernelSysTick(); - /* block until SDIO IP is ready or a timeout occur */ - while(osKernelSysTick() - timer > lwftp: ----> send \r\n"); - else - printf(">> lwftp: ----> send %s", data); - err = netconn_write(conn, data, strlen(data), NETCONN_COPY); -#if FTPSemaphore - // relaese the semaphore - sys_sem_signal(&ftpsem); -#endif - return err; -} - - -err_t lwftp_data_open(lwftp_session_t *s, const char *response) { - err_t err = ERR_VAL; - char *ptr; - ip_addr_t addr_d; - - ptr = strchr(response, '('); - if (ptr) { - unsigned int a = strtoul(ptr + 1, &ptr, 10); - unsigned int b = strtoul(ptr + 1, &ptr, 10); - unsigned int c = strtoul(ptr + 1, &ptr, 10); - unsigned int d = strtoul(ptr + 1, &ptr, 10); - IP4_ADDR(&addr_d, a, b, c, d); - - s->data_port = strtoul(ptr + 1, &ptr, 10) << 8; - s->data_port |= strtoul(ptr + 1, &ptr, 10) & 255; - printf(">> lwftp: server data port: '%d'\r\n", s->data_port); - - if (*ptr == ')') { - s->data_conn = netconn_new(NETCONN_TCP); - if (s->data_conn != NULL) { - err = netconn_connect(s->data_conn, &addr_d, s->data_port); - } else { - err = ERR_MEM; - } - } - } else { - err = ERR_BUF; - } - return err; -} - -/** - *============================================= - * Main functions - *============================================= - */ - -/* Send data to Server*/ -err_t lwftp_store(lwftp_session_t *s, const char *filename, const char *data) { - char cmd[256]; - err_t err; - size_t data_len = strlen(data); - - snprintf(cmd, sizeof(cmd), "STOR %s\r\n", filename); - err = lwftp_send(s->conn, cmd); - if (err == ERR_OK) { - err = netconn_write(s->data_conn, data, data_len, NETCONN_COPY); - if (err == ERR_OK) { - printf(">> lwftp: data sent successfully\r\n"); - netconn_close(s->data_conn); - }else{ - printf(">> lwftp: send data failed with code %d\r\n", err); - } - }else{ - printf(">> lwftp: send command failed with code %d\r\n", err); - } - return err; -} - - -/* Get data from Server*/ -err_t lwftp_retrieve(lwftp_session_t *s, const char *filename) { - char cmd[256]; - err_t err; - - snprintf(cmd, sizeof(cmd), "RETR %s\r\n", filename); - err = lwftp_send(s->conn, cmd); - if (err == ERR_OK) { - printf(">> lwftp: command sent successfully\r\n"); - } else { - printf(">> lwftp: send command failed with code %d\r\n", err); - } - return err; -} - -/* Get file list from Server*/ -err_t lwftp_list(lwftp_session_t *s) { - err_t err; - - err = lwftp_send(s->conn, "LIST\r\n"); - if (err == ERR_OK) { - printf(">> lwftp: command sent successfully\r\n"); - } else { - printf(">> lwftp: send command failed with code %d\r\n", err); - } - return err; -} - - - -void onDataReceived(void *data, size_t size) { - osDelay(1000); -// printf("%s\r\n", (char*) data); - printf("Received data (%zu bytes): %.*s\n", size, (int)size, (char*)data); -} - -//void lwftp_data_thread(void *arg) { -// lwftp_session_t *s = (lwftp_session_t*) arg; -// static struct netbuf *d_buf; -// -// while (1) { -// if (s->data_conn != NULL && s->data_state == LWFTP_CONNECTED) { -// if (netconn_recv(s->data_conn, &d_buf) == ERR_OK) { -// void *data; -// u16_t len; -// do { -// netbuf_data(d_buf, &data, &len); -// } while (netbuf_next(d_buf) >= 0); -// onDataReceived(data, len); -// } -// if (d_buf != NULL) { -// netbuf_delete(d_buf); -// d_buf = NULL; -// } -// } -// } -//} - -void lwftp_data_thread(void *arg) { - lwftp_session_t *s = (lwftp_session_t*) arg; - static struct netbuf *d_buf; - static char *aggregated_data = NULL; - static size_t total_len = 0; - - while (1) { - if (s->data_conn != NULL && s->data_state == LWFTP_CONNECTED) { - err_t err = netconn_recv(s->data_conn, &d_buf); - if (err == ERR_OK && d_buf != NULL) { - void *data; - u16_t len; - do { - netbuf_data(d_buf, &data, &len); - if (aggregated_data == NULL) { - aggregated_data = (char*) malloc(len); - if (!aggregated_data) { - break; - } - memcpy(aggregated_data, data, len); - total_len = len; - } else { - char *new_data = (char*) realloc(aggregated_data, total_len + len); - if (!new_data) { - free(aggregated_data); - aggregated_data = NULL; - break; - } - aggregated_data = new_data; - memcpy(aggregated_data + total_len, data, len); - total_len += len; - } - } while (netbuf_next(d_buf) >= 0); - netbuf_delete(d_buf); - - if (aggregated_data != NULL) { -// onDataReceived(aggregated_data, total_len); - free(aggregated_data); - aggregated_data = NULL; - total_len = 0; - } - } else { - } - } else { - vTaskDelay(pdMS_TO_TICKS(100)); - } - } -} - -void lwftp_ctrl_thread(void *arg) { - lwftp_session_t *s = (lwftp_session_t*) arg; - - static struct netbuf *buf; - uint response = 0; - char cmd[256]; - err_t err; - - // check session data invalid - if ((s->control_state != LWFTP_CLOSED) || s->conn || s->data_conn || !s->user - || !s->pass) { - printf(">> lwftp: invalid session data\r\n"); - return; - } - - s->conn = netconn_new(NETCONN_TCP); - s->data_conn = netconn_new(NETCONN_TCP); - - // create a new connection identifier - if (s->conn != NULL) { - err = netconn_bind(s->conn, &s->cli_ip, 0); - - if (err == ERR_OK) { - printf(">> lwftp: client IP bind OK\r\n"); - err = netconn_connect(s->conn, &s->svr_ip, s->svr_port); - - // If the connection to the server is established, the following will continue, else delete the connection - if (err == ERR_OK) { - printf(">> lwftp: server connect OK\r\n"); -#if FTPSemaphore - // Release the semaphore once the connection is successful - sys_sem_signal(&ftpsem); -#endif - - /** - * ===================== - * Response processing - * ===================== - */ - while (1) { - /* wait until the data is sent by the server*/ - if (netconn_recv(s->conn, &buf) == ERR_OK) { - if (buf) { - response = strtoul(buf->p->payload, NULL, 10); - printf("\n>> lwftp: <==== resp '%d'\r\n", response); - - /** [Response 220] Service ready for new user.*/ - if (response == 220) { - snprintf(cmd, sizeof(cmd), "USER %s\r\n", s->user); - lwftp_send(s->conn, cmd); - } - /** [Response 331] User name okay, need password.*/ - else if (response == 331) { - snprintf(cmd, sizeof(cmd), "PASS %s\r\n", s->pass); - lwftp_send(s->conn, cmd); - } - /** [Response 230] User logged in, proceed.*/ - else if (response == 230) { - printf(">> lwftp: now logged in\r\n"); - lwftp_send(s->conn, "PASV\r\n"); - } - - /** [Response 227] Entering Passive Mode (h1,h2,h3,h4,p1,p2).*/ - else if (response == 227) { - printf(">> lwftp: entering passive Mode\r\n"); - err = lwftp_data_open(s, buf->p->payload); - if (err != ERR_OK) { - printf(">> lwftp: data port connection failed with code %d\r\n",err); - goto exit; - } - s->data_state = LWFTP_CONNECTED; - printf(">> lwftp: data port connect OK\r\n"); - } - - /** [Response 125] Data connection already open; transfer starting.*/ - else if (response == 125) { - printf(">> lwftp: transfer starting.\r\n"); - } - - /** [Response 226] Closing data connection. Requested file action successful*/ - else if (response == 226) { - printf(">> lwftp: closing data connection.\r\n"); - printf(">> lwftp: requested file action successful.\r\n"); - } - } - } - memset(cmd, 0, sizeof(cmd)); - if (buf != NULL) { - netbuf_delete(buf); - buf = NULL; - } - } - } else { - printf(">> lwftp: server connection failed with code %d\r\n", err); - goto exit; - } - } else { - printf(">> lwftp: client IP binding failed with code %d\r\n", err); - goto exit; - } - } - exit: if (s->data_conn) { - netconn_close(s->data_conn); - netconn_delete(s->data_conn); - } - netconn_close(s->conn); - netconn_delete(s->conn); - printf(">> lwftp: all ftp connection closed\r\n"); -} diff --git a/LWFTPC/lwftpc.h b/LWFTPC/lwftpc.h deleted file mode 100644 index 4035fc4..0000000 --- a/LWFTPC/lwftpc.h +++ /dev/null @@ -1,93 +0,0 @@ -/* - * lwftpc.h - * - * Created on: Feb 20, 2024 - * Author: "SeungJu Lim" - */ - -#include -#include -#include "lwip/api.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#ifndef LWFTPC_H_ -#define LWFTPC_H_ - - -enum lwftp_results { - LWFTP_RESULT_OK=0, - LWFTP_RESULT_INPROGRESS, - LWFTP_RESULT_LOGGED, - LWFTP_RESULT_ERR_UNKNOWN, /** Unknown error */ - LWFTP_RESULT_ERR_ARGUMENT, /** Wrong argument */ - LWFTP_RESULT_ERR_MEMORY, /** Out of memory */ - LWFTP_RESULT_ERR_CONNECT, /** Connection to server failed */ - LWFTP_RESULT_ERR_HOSTNAME, /** Failed to resolve server hostname */ - LWFTP_RESULT_ERR_CLOSED, /** Connection unexpectedly closed by remote server */ - LWFTP_RESULT_ERR_TIMEOUT, /** Connection timed out (server didn't respond in time) */ - LWFTP_RESULT_ERR_SRVR_RESP, /** Server responded with an unknown response code */ - LWFTP_RESULT_ERR_INTERNAL, /** Internal network stack error */ - LWFTP_RESULT_ERR_LOCAL, /** Local storage error */ - LWFTP_RESULT_ERR_FILENAME /** Remote host could not find file */ -}; - - -/** LWFTPC control connection state */ -typedef enum { - LWFTP_CLOSED=0, - LWFTP_CONNECTED, - LWFTP_USER_SENT, - LWFTP_PASS_SENT, - LWFTP_LOGGED, - LWFTP_TYPE_SENT, - LWFTP_PASV_SENT, - LWFTP_RETR_SENT, - LWFTP_STOR_SENT, - LWFTP_XFERING, - LWFTP_DATAEND, - LWFTP_QUIT, - LWFTP_QUIT_SENT, - LWFTP_CLOSING, -} lwftp_state_t; - - -/** LWFTPC session structure */ -typedef struct { - // User interface - ip_addr_t cli_ip; - ip_addr_t svr_ip; - u16_t svr_port; - u16_t data_port; - const char *user; - const char *pass; - // Internal data - lwftp_state_t control_state; - lwftp_state_t data_state; - lwftp_state_t target_state; - struct netconn *conn; - struct netconn *data_conn; -} lwftp_session_t; - - -/** LWFTPC API prototypes*/ -err_t lwftp_send(struct netconn *conn, const char *data); -err_t lwftp_data_open(lwftp_session_t *s, const char *response); -void lwftp_data_thread(void *arg); -void lwftp_ctrl_thread(void *arg); - -/** for callback*/ -typedef void (*lwftp_transfer_callback)(err_t result, void *context); -void onDataReceived(void *data, size_t size); -err_t lwftp_store(lwftp_session_t *s, const char *filename, const char *data); -err_t lwftp_retrieve(lwftp_session_t *s, const char *filename); -err_t lwftp_list(lwftp_session_t *s); - - -#ifdef __cplusplus -} -#endif - -#endif /* LWFTPC_H_ */ diff --git a/LWIP/App/lwip.c b/LWIP/App/lwip.c deleted file mode 100644 index 44ae6a2..0000000 --- a/LWIP/App/lwip.c +++ /dev/null @@ -1,207 +0,0 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * File Name : LWIP.c - * Description : This file provides initialization code for LWIP - * middleWare. - ****************************************************************************** - * @attention - * - * Copyright (c) 2024 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ -/* USER CODE END Header */ - -/* Includes ------------------------------------------------------------------*/ -#include "lwip.h" -#include "lwip/init.h" -#include "lwip/netif.h" -#if defined ( __CC_ARM ) /* MDK ARM Compiler */ -#include "lwip/sio.h" -#endif /* MDK ARM Compiler */ -#include "ethernetif.h" - -/* USER CODE BEGIN 0 */ - -/* USER CODE END 0 */ -/* Private function prototypes -----------------------------------------------*/ -static void ethernet_link_status_updated(struct netif *netif); -/* ETH Variables initialization ----------------------------------------------*/ -void Error_Handler(void); - -/* USER CODE BEGIN 1 */ - -/* USER CODE END 1 */ - -/* Variables Initialization */ -struct netif gnetif; -ip4_addr_t ipaddr; -ip4_addr_t netmask; -ip4_addr_t gw; -uint8_t IP_ADDRESS[4]; -uint8_t NETMASK_ADDRESS[4]; -uint8_t GATEWAY_ADDRESS[4]; - -/* USER CODE BEGIN 2 */ - -/* USER CODE END 2 */ - -/** - * LwIP initialization function - */ -void MX_LWIP_Init(void) -{ - /* IP addresses initialization */ - IP_ADDRESS[0] = 192; - IP_ADDRESS[1] = 168; - IP_ADDRESS[2] = 0; - IP_ADDRESS[3] = 120; - NETMASK_ADDRESS[0] = 255; - NETMASK_ADDRESS[1] = 255; - NETMASK_ADDRESS[2] = 255; - NETMASK_ADDRESS[3] = 0; - GATEWAY_ADDRESS[0] = 0; - GATEWAY_ADDRESS[1] = 0; - GATEWAY_ADDRESS[2] = 0; - GATEWAY_ADDRESS[3] = 0; - -/* USER CODE BEGIN IP_ADDRESSES */ - -/* USER CODE END IP_ADDRESSES */ - - /* Initilialize the LwIP stack with RTOS */ - tcpip_init( NULL, NULL ); - - /* IP addresses initialization without DHCP (IPv4) */ - IP4_ADDR(&ipaddr, IP_ADDRESS[0], IP_ADDRESS[1], IP_ADDRESS[2], IP_ADDRESS[3]); - IP4_ADDR(&netmask, NETMASK_ADDRESS[0], NETMASK_ADDRESS[1] , NETMASK_ADDRESS[2], NETMASK_ADDRESS[3]); - IP4_ADDR(&gw, GATEWAY_ADDRESS[0], GATEWAY_ADDRESS[1], GATEWAY_ADDRESS[2], GATEWAY_ADDRESS[3]); - - /* add the network interface (IPv4/IPv6) with RTOS */ - netif_add(&gnetif, &ipaddr, &netmask, &gw, NULL, ðernetif_init, &tcpip_input); - - /* Registers the default network interface */ - netif_set_default(&gnetif); - - /* We must always bring the network interface up connection or not... */ - netif_set_up(&gnetif); - - /* Set the link callback function, this function is called on change of link status*/ - netif_set_link_callback(&gnetif, ethernet_link_status_updated); - - /* Create the Ethernet link handler thread */ -/* USER CODE BEGIN H7_OS_THREAD_DEF_CREATE_CMSIS_RTOS_V1 */ - osThreadDef(EthLink, ethernet_link_thread, osPriorityBelowNormal, 0, configMINIMAL_STACK_SIZE *2); - osThreadCreate (osThread(EthLink), &gnetif); -/* USER CODE END H7_OS_THREAD_DEF_CREATE_CMSIS_RTOS_V1 */ - -/* USER CODE BEGIN 3 */ - -/* USER CODE END 3 */ -} - -#ifdef USE_OBSOLETE_USER_CODE_SECTION_4 -/* Kept to help code migration. (See new 4_1, 4_2... sections) */ -/* Avoid to use this user section which will become obsolete. */ -/* USER CODE BEGIN 4 */ -/* USER CODE END 4 */ -#endif - -/** - * @brief Notify the User about the network interface config status - * @param netif: the network interface - * @retval None - */ -static void ethernet_link_status_updated(struct netif *netif) -{ - if (netif_is_up(netif)) - { -/* USER CODE BEGIN 5 */ -/* USER CODE END 5 */ - } - else /* netif is down */ - { -/* USER CODE BEGIN 6 */ -/* USER CODE END 6 */ - } -} - -#if defined ( __CC_ARM ) /* MDK ARM Compiler */ -/** - * Opens a serial device for communication. - * - * @param devnum device number - * @return handle to serial device if successful, NULL otherwise - */ -sio_fd_t sio_open(u8_t devnum) -{ - sio_fd_t sd; - -/* USER CODE BEGIN 7 */ - sd = 0; // dummy code -/* USER CODE END 7 */ - - return sd; -} - -/** - * Sends a single character to the serial device. - * - * @param c character to send - * @param fd serial device handle - * - * @note This function will block until the character can be sent. - */ -void sio_send(u8_t c, sio_fd_t fd) -{ -/* USER CODE BEGIN 8 */ -/* USER CODE END 8 */ -} - -/** - * Reads from the serial device. - * - * @param fd serial device handle - * @param data pointer to data buffer for receiving - * @param len maximum length (in bytes) of data to receive - * @return number of bytes actually received - may be 0 if aborted by sio_read_abort - * - * @note This function will block until data can be received. The blocking - * can be cancelled by calling sio_read_abort(). - */ -u32_t sio_read(sio_fd_t fd, u8_t *data, u32_t len) -{ - u32_t recved_bytes; - -/* USER CODE BEGIN 9 */ - recved_bytes = 0; // dummy code -/* USER CODE END 9 */ - return recved_bytes; -} - -/** - * Tries to read from the serial device. Same as sio_read but returns - * immediately if no data is available and never blocks. - * - * @param fd serial device handle - * @param data pointer to data buffer for receiving - * @param len maximum length (in bytes) of data to receive - * @return number of bytes actually received - */ -u32_t sio_tryread(sio_fd_t fd, u8_t *data, u32_t len) -{ - u32_t recved_bytes; - -/* USER CODE BEGIN 10 */ - recved_bytes = 0; // dummy code -/* USER CODE END 10 */ - return recved_bytes; -} -#endif /* MDK ARM Compiler */ - diff --git a/LWIP/App/lwip.h b/LWIP/App/lwip.h deleted file mode 100644 index 911bb74..0000000 --- a/LWIP/App/lwip.h +++ /dev/null @@ -1,75 +0,0 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * File Name : LWIP.h - * Description : This file provides code for the configuration - * of the LWIP. - ****************************************************************************** - * @attention - * - * Copyright (c) 2024 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ************************************************************************* - - */ -/* USER CODE END Header */ -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef __mx_lwip_H -#define __mx_lwip_H -#ifdef __cplusplus - extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "lwip/opt.h" -#include "lwip/mem.h" -#include "lwip/memp.h" -#include "netif/etharp.h" -#include "lwip/dhcp.h" -#include "lwip/netif.h" -#include "lwip/timeouts.h" -#include "ethernetif.h" - -/* Includes for RTOS ---------------------------------------------------------*/ -#if WITH_RTOS -#include "lwip/tcpip.h" -#endif /* WITH_RTOS */ - -/* USER CODE BEGIN 0 */ -/* USER CODE END 0 */ - -/* Global Variables ----------------------------------------------------------*/ -extern ETH_HandleTypeDef heth; - -/* LWIP init function */ -void MX_LWIP_Init(void); - -#if !WITH_RTOS -/* USER CODE BEGIN 1 */ -/* Function defined in lwip.c to: - * - Read a received packet from the Ethernet buffers - * - Send it to the lwIP stack for handling - * - Handle timeouts if NO_SYS_NO_TIMERS not set - */ -void MX_LWIP_Process(void); - -/* USER CODE END 1 */ -#endif /* WITH_RTOS */ - -#ifdef __cplusplus -} -#endif -#endif /*__ mx_lwip_H */ - -/** - * @} - */ - -/** - * @} - */ diff --git a/LWIP/Target/ethernetif.c b/LWIP/Target/ethernetif.c deleted file mode 100644 index 1d4e6c4..0000000 --- a/LWIP/Target/ethernetif.c +++ /dev/null @@ -1,907 +0,0 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * File Name : ethernetif.c - * Description : This file provides code for the configuration - * of the ethernetif.c MiddleWare. - ****************************************************************************** - * @attention - * - * Copyright (c) 2024 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ -/* USER CODE END Header */ - -/* Includes ------------------------------------------------------------------*/ -#include "main.h" -#include "lwip/opt.h" -#include "lwip/timeouts.h" -#include "netif/ethernet.h" -#include "netif/etharp.h" -#include "lwip/ethip6.h" -#include "ethernetif.h" -#include "lan8742.h" -#include -#include "cmsis_os.h" -#include "lwip/tcpip.h" - -/* Within 'USER CODE' section, code will be kept by default at each generation */ -/* USER CODE BEGIN 0 */ - -/* USER CODE END 0 */ - -/* Private define ------------------------------------------------------------*/ -/* The time to block waiting for input. */ -#define TIME_WAITING_FOR_INPUT ( portMAX_DELAY ) -/* USER CODE BEGIN OS_THREAD_STACK_SIZE_WITH_RTOS */ -/* Stack size of the interface thread */ -#define INTERFACE_THREAD_STACK_SIZE ( 350 ) -/* USER CODE END OS_THREAD_STACK_SIZE_WITH_RTOS */ -/* Network interface name */ -#define IFNAME0 's' -#define IFNAME1 't' - -/* ETH Setting */ -#define ETH_DMA_TRANSMIT_TIMEOUT ( 20U ) -#define ETH_TX_BUFFER_MAX ((ETH_TX_DESC_CNT) * 2U) -/* ETH_RX_BUFFER_SIZE parameter is defined in lwipopts.h */ - -/* USER CODE BEGIN 1 */ - -/* USER CODE END 1 */ - -/* Private variables ---------------------------------------------------------*/ -/* -@Note: This interface is implemented to operate in zero-copy mode only: - - Rx buffers will be allocated from LwIP stack memory heap, - then passed to ETH HAL driver. - - Tx buffers will be allocated from LwIP stack memory heap, - then passed to ETH HAL driver. - -@Notes: - 1.a. ETH DMA Rx descriptors must be contiguous, the default count is 4, - to customize it please redefine ETH_RX_DESC_CNT in ETH GUI (Rx Descriptor Length) - so that updated value will be generated in stm32xxxx_hal_conf.h - 1.b. ETH DMA Tx descriptors must be contiguous, the default count is 4, - to customize it please redefine ETH_TX_DESC_CNT in ETH GUI (Tx Descriptor Length) - so that updated value will be generated in stm32xxxx_hal_conf.h - - 2.a. Rx Buffers number must be between ETH_RX_DESC_CNT and 2*ETH_RX_DESC_CNT - 2.b. Rx Buffers must have the same size: ETH_RX_BUFFER_SIZE, this value must - passed to ETH DMA in the init field (heth.Init.RxBuffLen) - 2.c The RX Ruffers addresses and sizes must be properly defined to be aligned - to L1-CACHE line size (32 bytes). -*/ - -/* Data Type Definitions */ -typedef enum -{ - RX_ALLOC_OK = 0x00, - RX_ALLOC_ERROR = 0x01 -} RxAllocStatusTypeDef; - -typedef struct -{ - struct pbuf_custom pbuf_custom; - uint8_t buff[(ETH_RX_BUFFER_SIZE + 31) & ~31] __ALIGNED(32); -} RxBuff_t; - -/* Memory Pool Declaration */ -#define ETH_RX_BUFFER_CNT 12U -LWIP_MEMPOOL_DECLARE(RX_POOL, ETH_RX_BUFFER_CNT, sizeof(RxBuff_t), "Zero-copy RX PBUF pool"); - -/* Variable Definitions */ -static uint8_t RxAllocStatus; - -#if defined ( __ICCARM__ ) /*!< IAR Compiler */ - -#pragma location=0x30000000 -ETH_DMADescTypeDef DMARxDscrTab[ETH_RX_DESC_CNT]; /* Ethernet Rx DMA Descriptors */ -#pragma location=0x30000100 -ETH_DMADescTypeDef DMATxDscrTab[ETH_TX_DESC_CNT]; /* Ethernet Tx DMA Descriptors */ - -#elif defined ( __CC_ARM ) /* MDK ARM Compiler */ - -__attribute__((at(0x30000000))) ETH_DMADescTypeDef DMARxDscrTab[ETH_RX_DESC_CNT]; /* Ethernet Rx DMA Descriptors */ -__attribute__((at(0x30000100))) ETH_DMADescTypeDef DMATxDscrTab[ETH_TX_DESC_CNT]; /* Ethernet Tx DMA Descriptors */ - -#elif defined ( __GNUC__ ) /* GNU Compiler */ - -ETH_DMADescTypeDef DMARxDscrTab[ETH_RX_DESC_CNT] __attribute__((section(".RxDecripSection"))); /* Ethernet Rx DMA Descriptors */ -ETH_DMADescTypeDef DMATxDscrTab[ETH_TX_DESC_CNT] __attribute__((section(".TxDecripSection"))); /* Ethernet Tx DMA Descriptors */ - -#endif - -/* USER CODE BEGIN 2 */ - -/* USER CODE END 2 */ - -osSemaphoreId RxPktSemaphore = NULL; /* Semaphore to signal incoming packets */ -osSemaphoreId TxPktSemaphore = NULL; /* Semaphore to signal transmit packet complete */ - -/* Global Ethernet handle */ -ETH_HandleTypeDef heth; -ETH_TxPacketConfig TxConfig; - -/* Private function prototypes -----------------------------------------------*/ -static void ethernetif_input(void const * argument); -int32_t ETH_PHY_IO_Init(void); -int32_t ETH_PHY_IO_DeInit (void); -int32_t ETH_PHY_IO_ReadReg(uint32_t DevAddr, uint32_t RegAddr, uint32_t *pRegVal); -int32_t ETH_PHY_IO_WriteReg(uint32_t DevAddr, uint32_t RegAddr, uint32_t RegVal); -int32_t ETH_PHY_IO_GetTick(void); - -lan8742_Object_t LAN8742; -lan8742_IOCtx_t LAN8742_IOCtx = {ETH_PHY_IO_Init, - ETH_PHY_IO_DeInit, - ETH_PHY_IO_WriteReg, - ETH_PHY_IO_ReadReg, - ETH_PHY_IO_GetTick}; - -/* USER CODE BEGIN 3 */ - -/* USER CODE END 3 */ - -/* Private functions ---------------------------------------------------------*/ -void pbuf_free_custom(struct pbuf *p); - -/** - * @brief Ethernet Rx Transfer completed callback - * @param handlerEth: ETH handler - * @retval None - */ -void HAL_ETH_RxCpltCallback(ETH_HandleTypeDef *handlerEth) -{ - osSemaphoreRelease(RxPktSemaphore); -} -/** - * @brief Ethernet Tx Transfer completed callback - * @param handlerEth: ETH handler - * @retval None - */ -void HAL_ETH_TxCpltCallback(ETH_HandleTypeDef *handlerEth) -{ - osSemaphoreRelease(TxPktSemaphore); -} -/** - * @brief Ethernet DMA transfer error callback - * @param handlerEth: ETH handler - * @retval None - */ -void HAL_ETH_ErrorCallback(ETH_HandleTypeDef *handlerEth) -{ - if((HAL_ETH_GetDMAError(handlerEth) & ETH_DMACSR_RBU) == ETH_DMACSR_RBU) - { - osSemaphoreRelease(RxPktSemaphore); - } -} - -/* USER CODE BEGIN 4 */ - -/* USER CODE END 4 */ - -/******************************************************************************* - LL Driver Interface ( LwIP stack --> ETH) -*******************************************************************************/ -/** - * @brief In this function, the hardware should be initialized. - * Called from ethernetif_init(). - * - * @param netif the already initialized lwip network interface structure - * for this ethernetif - */ -static void low_level_init(struct netif *netif) -{ - HAL_StatusTypeDef hal_eth_init_status = HAL_OK; - uint32_t duplex, speed = 0; - int32_t PHYLinkState = 0; - ETH_MACConfigTypeDef MACConf = {0}; - /* Start ETH HAL Init */ - - uint8_t MACAddr[6] ; - heth.Instance = ETH; - MACAddr[0] = 0x00; - MACAddr[1] = 0x80; - MACAddr[2] = 0xE1; - MACAddr[3] = 0x00; - MACAddr[4] = 0x00; - MACAddr[5] = 0x00; - heth.Init.MACAddr = &MACAddr[0]; - heth.Init.MediaInterface = HAL_ETH_RMII_MODE; - heth.Init.TxDesc = DMATxDscrTab; - heth.Init.RxDesc = DMARxDscrTab; - heth.Init.RxBuffLen = 1536; - - /* USER CODE BEGIN MACADDRESS */ - - /* USER CODE END MACADDRESS */ - - hal_eth_init_status = HAL_ETH_Init(&heth); - - memset(&TxConfig, 0 , sizeof(ETH_TxPacketConfig)); - TxConfig.Attributes = ETH_TX_PACKETS_FEATURES_CSUM | ETH_TX_PACKETS_FEATURES_CRCPAD; - TxConfig.ChecksumCtrl = ETH_CHECKSUM_IPHDR_PAYLOAD_INSERT_PHDR_CALC; - TxConfig.CRCPadCtrl = ETH_CRC_PAD_INSERT; - - /* End ETH HAL Init */ - - /* Initialize the RX POOL */ - LWIP_MEMPOOL_INIT(RX_POOL); - -#if LWIP_ARP || LWIP_ETHERNET - - /* set MAC hardware address length */ - netif->hwaddr_len = ETH_HWADDR_LEN; - - /* set MAC hardware address */ - netif->hwaddr[0] = heth.Init.MACAddr[0]; - netif->hwaddr[1] = heth.Init.MACAddr[1]; - netif->hwaddr[2] = heth.Init.MACAddr[2]; - netif->hwaddr[3] = heth.Init.MACAddr[3]; - netif->hwaddr[4] = heth.Init.MACAddr[4]; - netif->hwaddr[5] = heth.Init.MACAddr[5]; - - /* maximum transfer unit */ - netif->mtu = ETH_MAX_PAYLOAD; - - /* 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; - #else - netif->flags |= NETIF_FLAG_BROADCAST; - #endif /* LWIP_ARP */ - - /* create a binary semaphore used for informing ethernetif of frame reception */ - osSemaphoreDef(RxSem); - RxPktSemaphore = osSemaphoreCreate(osSemaphore(RxSem), 1); - - /* create a binary semaphore used for informing ethernetif of frame transmission */ - osSemaphoreDef(TxSem); - TxPktSemaphore = osSemaphoreCreate(osSemaphore(TxSem), 1); - - /* Decrease the semaphore's initial count from 1 to 0 */ - osSemaphoreWait(RxPktSemaphore, 0); - osSemaphoreWait(TxPktSemaphore, 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); - osThreadCreate (osThread(EthIf), netif); -/* USER CODE END OS_THREAD_DEF_CREATE_CMSIS_RTOS_V1 */ - -/* USER CODE BEGIN PHY_PRE_CONFIG */ - -/* USER CODE END PHY_PRE_CONFIG */ - /* Set PHY IO functions */ - LAN8742_RegisterBusIO(&LAN8742, &LAN8742_IOCtx); - - /* Initialize the LAN8742 ETH PHY */ - LAN8742_Init(&LAN8742); - - if (hal_eth_init_status == HAL_OK) - { - PHYLinkState = LAN8742_GetLinkState(&LAN8742); - - /* Get link state */ - if(PHYLinkState <= LAN8742_STATUS_LINK_DOWN) - { - netif_set_link_down(netif); - netif_set_down(netif); - } - else - { - switch (PHYLinkState) - { - case LAN8742_STATUS_100MBITS_FULLDUPLEX: - duplex = ETH_FULLDUPLEX_MODE; - speed = ETH_SPEED_100M; - break; - case LAN8742_STATUS_100MBITS_HALFDUPLEX: - duplex = ETH_HALFDUPLEX_MODE; - speed = ETH_SPEED_100M; - break; - case LAN8742_STATUS_10MBITS_FULLDUPLEX: - duplex = ETH_FULLDUPLEX_MODE; - speed = ETH_SPEED_10M; - break; - case LAN8742_STATUS_10MBITS_HALFDUPLEX: - duplex = ETH_HALFDUPLEX_MODE; - speed = ETH_SPEED_10M; - break; - default: - duplex = ETH_FULLDUPLEX_MODE; - speed = ETH_SPEED_100M; - break; - } - - /* Get MAC Config MAC */ - HAL_ETH_GetMACConfig(&heth, &MACConf); - MACConf.DuplexMode = duplex; - MACConf.Speed = speed; - HAL_ETH_SetMACConfig(&heth, &MACConf); - - HAL_ETH_Start_IT(&heth); - netif_set_up(netif); - netif_set_link_up(netif); - -/* USER CODE BEGIN PHY_POST_CONFIG */ - -/* USER CODE END PHY_POST_CONFIG */ - } - - } - else - { - Error_Handler(); - } -#endif /* LWIP_ARP || LWIP_ETHERNET */ - -/* USER CODE BEGIN LOW_LEVEL_INIT */ - -/* USER CODE END LOW_LEVEL_INIT */ -} - -/** - * @brief This function should do the actual transmission of the packet. The packet is - * contained in the pbuf that is passed to the function. This pbuf - * might be chained. - * - * @param netif the lwip network interface structure for this ethernetif - * @param p the MAC packet to send (e.g. IP packet including MAC addresses and type) - * @return ERR_OK if the packet could be sent - * an err_t value if the packet couldn't be sent - * - * @note Returning ERR_MEM here if a DMA queue of your MAC is full can lead to - * strange results. You might consider waiting for space in the DMA queue - * to become available 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) -{ - uint32_t i = 0U; - struct pbuf *q = NULL; - err_t errval = ERR_OK; - ETH_BufferTypeDef Txbuffer[ETH_TX_DESC_CNT] = {0}; - - memset(Txbuffer, 0 , ETH_TX_DESC_CNT*sizeof(ETH_BufferTypeDef)); - - for(q = p; q != NULL; q = q->next) - { - if(i >= ETH_TX_DESC_CNT) - return ERR_IF; - - Txbuffer[i].buffer = q->payload; - Txbuffer[i].len = q->len; - - if(i>0) - { - Txbuffer[i-1].next = &Txbuffer[i]; - } - - if(q->next == NULL) - { - Txbuffer[i].next = NULL; - } - - i++; - } - - TxConfig.Length = p->tot_len; - TxConfig.TxBuffer = Txbuffer; - TxConfig.pData = p; - - pbuf_ref(p); - - if (HAL_ETH_Transmit_IT(&heth, &TxConfig) == HAL_OK) { - while(osSemaphoreWait(TxPktSemaphore, TIME_WAITING_FOR_INPUT)!=osOK) - - { - } - - HAL_ETH_ReleaseTxPacket(&heth); - } else { - pbuf_free(p); - } - - return errval; -} - -/** - * @brief Should allocate a pbuf and transfer the bytes of the incoming - * packet from the interface into the pbuf. - * - * @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) -{ - struct pbuf *p = NULL; - - if(RxAllocStatus == RX_ALLOC_OK) - { - HAL_ETH_ReadData(&heth, (void **)&p); - } - - return p; -} - -/** - * @brief This function should be called when a packet is ready to be read - * from the interface. It uses the function low_level_input() that - * should handle the actual reception of bytes from the network - * interface. Then the type of the received packet is determined and - * the appropriate input function is called. - * - * @param netif the lwip network interface structure for this ethernetif - */ -static void ethernetif_input(void const * argument) -{ - struct pbuf *p = NULL; - struct netif *netif = (struct netif *) argument; - - for( ;; ) - { - if (osSemaphoreWait(RxPktSemaphore, TIME_WAITING_FOR_INPUT) == osOK) - { - do - { - p = low_level_input( netif ); - if (p != NULL) - { - if (netif->input( p, netif) != ERR_OK ) - { - pbuf_free(p); - } - } - } while(p!=NULL); - } - } -} - -#if !LWIP_ARP -/** - * This function has to be completed by user in case of ARP OFF. - * - * @param netif the lwip network interface structure for this ethernetif - * @return ERR_OK if ... - */ -static err_t low_level_output_arp_off(struct netif *netif, struct pbuf *q, const ip4_addr_t *ipaddr) -{ - err_t errval; - errval = ERR_OK; - -/* USER CODE BEGIN 5 */ - -/* USER CODE END 5 */ - - return errval; - -} -#endif /* LWIP_ARP */ - -/** - * @brief Should be called at the beginning of the program to set up the - * network interface. It calls the function low_level_init() to do the - * actual setup of the hardware. - * - * This function should be passed as a parameter to netif_add(). - * - * @param netif the lwip network interface structure for this ethernetif - * @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) -{ - LWIP_ASSERT("netif != NULL", (netif != NULL)); - -#if LWIP_NETIF_HOSTNAME - /* Initialize interface hostname */ - netif->hostname = "lwip"; -#endif /* LWIP_NETIF_HOSTNAME */ - - /* - * Initialize the snmp variables and counters inside the struct netif. - * The last argument should be replaced with your link speed, in units - * of bits per second. - */ - // MIB2_INIT_NETIF(netif, snmp_ifType_ethernet_csmacd, LINK_SPEED_OF_YOUR_NETIF_IN_BPS); - - netif->name[0] = IFNAME0; - netif->name[1] = IFNAME1; - /* We directly use etharp_output() here to save a function call. - * You can instead declare your own function an call etharp_output() - * from it if you have to do some checks before sending (e.g. if link - * is available...) */ - -#if LWIP_IPV4 -#if LWIP_ARP || LWIP_ETHERNET -#if LWIP_ARP - netif->output = etharp_output; -#else - /* The user should write its own code in low_level_output_arp_off function */ - netif->output = low_level_output_arp_off; -#endif /* LWIP_ARP */ -#endif /* LWIP_ARP || LWIP_ETHERNET */ -#endif /* LWIP_IPV4 */ - -#if LWIP_IPV6 - netif->output_ip6 = ethip6_output; -#endif /* LWIP_IPV6 */ - - netif->linkoutput = low_level_output; - - /* initialize the hardware */ - low_level_init(netif); - - return ERR_OK; -} - -/** - * @brief Custom Rx pbuf free callback - * @param pbuf: pbuf to be freed - * @retval None - */ -void pbuf_free_custom(struct pbuf *p) -{ - struct pbuf_custom* custom_pbuf = (struct pbuf_custom*)p; - LWIP_MEMPOOL_FREE(RX_POOL, custom_pbuf); - - /* If the Rx Buffer Pool was exhausted, signal the ethernetif_input task to - * call HAL_ETH_GetRxDataBuffer to rebuild the Rx descriptors. */ - - if (RxAllocStatus == RX_ALLOC_ERROR) - { - RxAllocStatus = RX_ALLOC_OK; - osSemaphoreRelease(RxPktSemaphore); - } -} - -/* USER CODE BEGIN 6 */ - -/** -* @brief Returns the current time in milliseconds -* when LWIP_TIMERS == 1 and NO_SYS == 1 -* @param None -* @retval Current Time value -*/ -u32_t sys_now(void) -{ - return HAL_GetTick(); -} - -/* USER CODE END 6 */ - -/** - * @brief Initializes the ETH MSP. - * @param ethHandle: ETH handle - * @retval None - */ - -void HAL_ETH_MspInit(ETH_HandleTypeDef* ethHandle) -{ - GPIO_InitTypeDef GPIO_InitStruct = {0}; - if(ethHandle->Instance==ETH) - { - /* USER CODE BEGIN ETH_MspInit 0 */ - - /* USER CODE END ETH_MspInit 0 */ - /* Enable Peripheral clock */ - __HAL_RCC_ETH1MAC_CLK_ENABLE(); - __HAL_RCC_ETH1TX_CLK_ENABLE(); - __HAL_RCC_ETH1RX_CLK_ENABLE(); - - __HAL_RCC_GPIOC_CLK_ENABLE(); - __HAL_RCC_GPIOA_CLK_ENABLE(); - __HAL_RCC_GPIOB_CLK_ENABLE(); - /**ETH GPIO Configuration - PC1 ------> ETH_MDC - PC4 ------> ETH_RXD0 - PA1 ------> ETH_REF_CLK - PC5 ------> ETH_RXD1 - PA2 ------> ETH_MDIO - PB13 ------> ETH_TXD1 - PA7 ------> ETH_CRS_DV - PB11 ------> ETH_TX_EN - PB12 ------> ETH_TXD0 - */ - GPIO_InitStruct.Pin = GPIO_PIN_1|GPIO_PIN_4|GPIO_PIN_5; - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - GPIO_InitStruct.Pull = GPIO_NOPULL; - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - GPIO_InitStruct.Alternate = GPIO_AF11_ETH; - HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); - - GPIO_InitStruct.Pin = GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_7; - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - GPIO_InitStruct.Pull = GPIO_NOPULL; - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - GPIO_InitStruct.Alternate = GPIO_AF11_ETH; - HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - - GPIO_InitStruct.Pin = GPIO_PIN_13|GPIO_PIN_11|GPIO_PIN_12; - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - GPIO_InitStruct.Pull = GPIO_NOPULL; - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - GPIO_InitStruct.Alternate = GPIO_AF11_ETH; - HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - - /* Peripheral interrupt init */ - HAL_NVIC_SetPriority(ETH_IRQn, 5, 0); - HAL_NVIC_EnableIRQ(ETH_IRQn); - /* USER CODE BEGIN ETH_MspInit 1 */ - - /* USER CODE END ETH_MspInit 1 */ - } -} - -void HAL_ETH_MspDeInit(ETH_HandleTypeDef* ethHandle) -{ - if(ethHandle->Instance==ETH) - { - /* USER CODE BEGIN ETH_MspDeInit 0 */ - - /* USER CODE END ETH_MspDeInit 0 */ - /* Disable Peripheral clock */ - __HAL_RCC_ETH1MAC_CLK_DISABLE(); - __HAL_RCC_ETH1TX_CLK_DISABLE(); - __HAL_RCC_ETH1RX_CLK_DISABLE(); - - /**ETH GPIO Configuration - PC1 ------> ETH_MDC - PC4 ------> ETH_RXD0 - PA1 ------> ETH_REF_CLK - PC5 ------> ETH_RXD1 - PA2 ------> ETH_MDIO - PB13 ------> ETH_TXD1 - PA7 ------> ETH_CRS_DV - PB11 ------> ETH_TX_EN - PB12 ------> ETH_TXD0 - */ - HAL_GPIO_DeInit(GPIOC, GPIO_PIN_1|GPIO_PIN_4|GPIO_PIN_5); - - HAL_GPIO_DeInit(GPIOA, GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_7); - - HAL_GPIO_DeInit(GPIOB, GPIO_PIN_13|GPIO_PIN_11|GPIO_PIN_12); - - /* Peripheral interrupt Deinit*/ - HAL_NVIC_DisableIRQ(ETH_IRQn); - - /* USER CODE BEGIN ETH_MspDeInit 1 */ - - /* USER CODE END ETH_MspDeInit 1 */ - } -} - -/******************************************************************************* - PHI IO Functions -*******************************************************************************/ -/** - * @brief Initializes the MDIO interface GPIO and clocks. - * @param None - * @retval 0 if OK, -1 if ERROR - */ -int32_t ETH_PHY_IO_Init(void) -{ - /* We assume that MDIO GPIO configuration is already done - in the ETH_MspInit() else it should be done here - */ - - /* Configure the MDIO Clock */ - HAL_ETH_SetMDIOClockRange(&heth); - - return 0; -} - -/** - * @brief De-Initializes the MDIO interface . - * @param None - * @retval 0 if OK, -1 if ERROR - */ -int32_t ETH_PHY_IO_DeInit (void) -{ - return 0; -} - -/** - * @brief Read a PHY register through the MDIO interface. - * @param DevAddr: PHY port address - * @param RegAddr: PHY register address - * @param pRegVal: pointer to hold the register value - * @retval 0 if OK -1 if Error - */ -int32_t ETH_PHY_IO_ReadReg(uint32_t DevAddr, uint32_t RegAddr, uint32_t *pRegVal) -{ - if(HAL_ETH_ReadPHYRegister(&heth, DevAddr, RegAddr, pRegVal) != HAL_OK) - { - return -1; - } - - return 0; -} - -/** - * @brief Write a value to a PHY register through the MDIO interface. - * @param DevAddr: PHY port address - * @param RegAddr: PHY register address - * @param RegVal: Value to be written - * @retval 0 if OK -1 if Error - */ -int32_t ETH_PHY_IO_WriteReg(uint32_t DevAddr, uint32_t RegAddr, uint32_t RegVal) -{ - if(HAL_ETH_WritePHYRegister(&heth, DevAddr, RegAddr, RegVal) != HAL_OK) - { - return -1; - } - - return 0; -} - -/** - * @brief Get the time in millisecons used for internal PHY driver process. - * @retval Time value - */ -int32_t ETH_PHY_IO_GetTick(void) -{ - return HAL_GetTick(); -} - -/** - * @brief Check the ETH link state then update ETH driver and netif link accordingly. - * @retval None - */ - -void ethernet_link_thread(void const * argument) -{ - ETH_MACConfigTypeDef MACConf = {0}; - int32_t PHYLinkState = 0; - uint32_t linkchanged = 0U, speed = 0U, duplex = 0U; - - struct netif *netif = (struct netif *) argument; -/* USER CODE BEGIN ETH link init */ - -/* USER CODE END ETH link init */ - - for(;;) - { - PHYLinkState = LAN8742_GetLinkState(&LAN8742); - - if(netif_is_link_up(netif) && (PHYLinkState <= LAN8742_STATUS_LINK_DOWN)) - { - HAL_ETH_Stop_IT(&heth); - netif_set_down(netif); - netif_set_link_down(netif); - } - else if(!netif_is_link_up(netif) && (PHYLinkState > LAN8742_STATUS_LINK_DOWN)) - { - switch (PHYLinkState) - { - case LAN8742_STATUS_100MBITS_FULLDUPLEX: - duplex = ETH_FULLDUPLEX_MODE; - speed = ETH_SPEED_100M; - linkchanged = 1; - break; - case LAN8742_STATUS_100MBITS_HALFDUPLEX: - duplex = ETH_HALFDUPLEX_MODE; - speed = ETH_SPEED_100M; - linkchanged = 1; - break; - case LAN8742_STATUS_10MBITS_FULLDUPLEX: - duplex = ETH_FULLDUPLEX_MODE; - speed = ETH_SPEED_10M; - linkchanged = 1; - break; - case LAN8742_STATUS_10MBITS_HALFDUPLEX: - duplex = ETH_HALFDUPLEX_MODE; - speed = ETH_SPEED_10M; - linkchanged = 1; - break; - default: - break; - } - - if(linkchanged) - { - /* Get MAC Config MAC */ - HAL_ETH_GetMACConfig(&heth, &MACConf); - MACConf.DuplexMode = duplex; - MACConf.Speed = speed; - HAL_ETH_SetMACConfig(&heth, &MACConf); - HAL_ETH_Start_IT(&heth); - netif_set_up(netif); - netif_set_link_up(netif); - } - } - -/* USER CODE BEGIN ETH link Thread core code for User BSP */ - -/* USER CODE END ETH link Thread core code for User BSP */ - - osDelay(100); - } -} - -void HAL_ETH_RxAllocateCallback(uint8_t **buff) -{ -/* USER CODE BEGIN HAL ETH RxAllocateCallback */ - struct pbuf_custom *p = LWIP_MEMPOOL_ALLOC(RX_POOL); - if (p) - { - /* Get the buff from the struct pbuf address. */ - *buff = (uint8_t *)p + offsetof(RxBuff_t, buff); - p->custom_free_function = pbuf_free_custom; - /* Initialize the struct pbuf. - * This must be performed whenever a buffer's allocated because it may be - * changed by lwIP or the app, e.g., pbuf_free decrements ref. */ - pbuf_alloced_custom(PBUF_RAW, 0, PBUF_REF, p, *buff, ETH_RX_BUFFER_SIZE); - } - else - { - RxAllocStatus = RX_ALLOC_ERROR; - *buff = NULL; - } -/* USER CODE END HAL ETH RxAllocateCallback */ -} - -void HAL_ETH_RxLinkCallback(void **pStart, void **pEnd, uint8_t *buff, uint16_t Length) -{ -/* USER CODE BEGIN HAL ETH RxLinkCallback */ - - struct pbuf **ppStart = (struct pbuf **)pStart; - struct pbuf **ppEnd = (struct pbuf **)pEnd; - struct pbuf *p = NULL; - - /* Get the struct pbuf from the buff address. */ - p = (struct pbuf *)(buff - offsetof(RxBuff_t, buff)); - p->next = NULL; - p->tot_len = 0; - p->len = Length; - - /* Chain the buffer. */ - if (!*ppStart) - { - /* The first buffer of the packet. */ - *ppStart = p; - } - else - { - /* Chain the buffer to the end of the packet. */ - (*ppEnd)->next = p; - } - *ppEnd = p; - - /* Update the total length of all the buffers of the chain. Each pbuf in the chain should have its tot_len - * set to its own length, plus the length of all the following pbufs in the chain. */ - for (p = *ppStart; p != NULL; p = p->next) - { - p->tot_len += Length; - } - - /* Invalidate data cache because Rx DMA's writing to physical memory makes it stale. */ - SCB_InvalidateDCache_by_Addr((uint32_t *)buff, Length); - -/* USER CODE END HAL ETH RxLinkCallback */ -} - -void HAL_ETH_TxFreeCallback(uint32_t * buff) -{ -/* USER CODE BEGIN HAL ETH TxFreeCallback */ - - pbuf_free((struct pbuf *)buff); - -/* USER CODE END HAL ETH TxFreeCallback */ -} - -/* USER CODE BEGIN 8 */ - -/* USER CODE END 8 */ - diff --git a/LWIP/Target/ethernetif.h b/LWIP/Target/ethernetif.h deleted file mode 100644 index cc2aff0..0000000 --- a/LWIP/Target/ethernetif.h +++ /dev/null @@ -1,45 +0,0 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * File Name : ethernetif.h - * Description : This file provides initialization code for LWIP - * middleWare. - ****************************************************************************** - * @attention - * - * Copyright (c) 2024 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ -/* USER CODE END Header */ - -#ifndef __ETHERNETIF_H__ -#define __ETHERNETIF_H__ - -#include "lwip/err.h" -#include "lwip/netif.h" -#include "cmsis_os.h" - -/* Within 'USER CODE' section, code will be kept by default at each generation */ -/* USER CODE BEGIN 0 */ - -/* USER CODE END 0 */ - -/* Exported functions ------------------------------------------------------- */ -err_t ethernetif_init(struct netif *netif); - -void ethernet_link_thread(void const * argument); - -void Error_Handler(void); -u32_t sys_jiffies(void); -u32_t sys_now(void); - -/* USER CODE BEGIN 1 */ - -/* USER CODE END 1 */ -#endif diff --git a/LWIP/Target/lwipopts.h b/LWIP/Target/lwipopts.h deleted file mode 100644 index 82f7b20..0000000 --- a/LWIP/Target/lwipopts.h +++ /dev/null @@ -1,126 +0,0 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * File Name : Target/lwipopts.h - * Description : This file overrides LwIP stack default configuration - * done in opt.h file. - ****************************************************************************** - * @attention - * - * Copyright (c) 2024 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ -/* USER CODE END Header */ - -/* Define to prevent recursive inclusion --------------------------------------*/ -#ifndef __LWIPOPTS__H__ -#define __LWIPOPTS__H__ - -#include "main.h" - -/*-----------------------------------------------------------------------------*/ -/* Current version of LwIP supported by CubeMx: 2.1.2 -*/ -/*-----------------------------------------------------------------------------*/ - -/* Within 'USER CODE' section, code will be kept by default at each generation */ -/* USER CODE BEGIN 0 */ -#define LWIP_DEBUG 1 -#define NETIF_DEBUG LWIP_DBG_ON -#define DHCP_DEBUG LWIP_DBG_ON -//#define UDP_DEBUG LWIP_DBG_ON -#define MEMP_DEBUG LWIP_DBG_ON -#define MEM_DEBUG LWIP_DBG_ON -//#define ICMP_DEBUG LWIP_DBG_ON -/* USER CODE END 0 */ - -#ifdef __cplusplus - extern "C" { -#endif - -/* STM32CubeMX Specific Parameters (not defined in opt.h) ---------------------*/ -/* Parameters set in STM32CubeMX LwIP Configuration GUI -*/ -/*----- WITH_RTOS enabled (Since FREERTOS is set) -----*/ -#define WITH_RTOS 1 -/*----- CHECKSUM_BY_HARDWARE enabled -----*/ -#define CHECKSUM_BY_HARDWARE 1 -/*-----------------------------------------------------------------------------*/ - -/* LwIP Stack Parameters (modified compared to initialization value in opt.h) -*/ -/* Parameters set in STM32CubeMX LwIP Configuration GUI -*/ -/*----- Default value in ETH configuration GUI in CubeMx: 1524 -----*/ -#define ETH_RX_BUFFER_SIZE 1536 -/*----- Value in opt.h for MEM_ALIGNMENT: 1 -----*/ -#define MEM_ALIGNMENT 4 -/*----- Default Value for MEM_SIZE: 1600 ---*/ -#define MEM_SIZE 32232 -/*----- Default Value for H7 devices: 0x30044000 -----*/ -#define LWIP_RAM_HEAP_POINTER 0x30000200 -/*----- Value supported for H7 devices: 1 -----*/ -#define LWIP_SUPPORT_CUSTOM_PBUF 1 -/*----- Value in opt.h for LWIP_ETHERNET: LWIP_ARP || PPPOE_SUPPORT -*/ -#define LWIP_ETHERNET 1 -/*----- Value in opt.h for LWIP_DNS_SECURE: (LWIP_DNS_SECURE_RAND_XID | LWIP_DNS_SECURE_NO_MULTIPLE_OUTSTANDING | LWIP_DNS_SECURE_RAND_SRC_PORT) -*/ -#define LWIP_DNS_SECURE 7 -/*----- Default Value for TCP_MSS: 536 ---*/ -#define TCP_MSS 1460 -/*----- Default Value for TCP_SND_BUF: 2920 ---*/ -#define TCP_SND_BUF 5840 -/*----- Default Value for TCP_SND_QUEUELEN: 17 ---*/ -#define TCP_SND_QUEUELEN 16 -/*----- Value in opt.h for LWIP_NETIF_LINK_CALLBACK: 0 -----*/ -#define LWIP_NETIF_LINK_CALLBACK 1 -/*----- Value in opt.h for TCPIP_THREAD_STACKSIZE: 0 -----*/ -#define TCPIP_THREAD_STACKSIZE 1024 -/*----- Value in opt.h for TCPIP_THREAD_PRIO: 1 -----*/ -#define TCPIP_THREAD_PRIO osPriorityNormal -/*----- Value in opt.h for TCPIP_MBOX_SIZE: 0 -----*/ -#define TCPIP_MBOX_SIZE 6 -/*----- Value in opt.h for SLIPIF_THREAD_STACKSIZE: 0 -----*/ -#define SLIPIF_THREAD_STACKSIZE 1024 -/*----- Value in opt.h for SLIPIF_THREAD_PRIO: 1 -----*/ -#define SLIPIF_THREAD_PRIO 3 -/*----- Value in opt.h for DEFAULT_THREAD_STACKSIZE: 0 -----*/ -#define DEFAULT_THREAD_STACKSIZE 2048 -/*----- Value in opt.h for DEFAULT_THREAD_PRIO: 1 -----*/ -#define DEFAULT_THREAD_PRIO 3 -/*----- Value in opt.h for DEFAULT_UDP_RECVMBOX_SIZE: 0 -----*/ -#define DEFAULT_UDP_RECVMBOX_SIZE 6 -/*----- Value in opt.h for DEFAULT_TCP_RECVMBOX_SIZE: 0 -----*/ -#define DEFAULT_TCP_RECVMBOX_SIZE 6 -/*----- Value in opt.h for DEFAULT_ACCEPTMBOX_SIZE: 0 -----*/ -#define DEFAULT_ACCEPTMBOX_SIZE 6 -/*----- Value in opt.h for RECV_BUFSIZE_DEFAULT: INT_MAX -----*/ -#define RECV_BUFSIZE_DEFAULT 2000000000 -/*----- Value in opt.h for LWIP_STATS: 1 -----*/ -#define LWIP_STATS 0 -/*----- Value in opt.h for CHECKSUM_GEN_IP: 1 -----*/ -#define CHECKSUM_GEN_IP 0 -/*----- Value in opt.h for CHECKSUM_GEN_UDP: 1 -----*/ -#define CHECKSUM_GEN_UDP 0 -/*----- Value in opt.h for CHECKSUM_GEN_TCP: 1 -----*/ -#define CHECKSUM_GEN_TCP 0 -/*----- Value in opt.h for CHECKSUM_GEN_ICMP6: 1 -----*/ -#define CHECKSUM_GEN_ICMP6 0 -/*----- Value in opt.h for CHECKSUM_CHECK_IP: 1 -----*/ -#define CHECKSUM_CHECK_IP 0 -/*----- Value in opt.h for CHECKSUM_CHECK_UDP: 1 -----*/ -#define CHECKSUM_CHECK_UDP 0 -/*----- Value in opt.h for CHECKSUM_CHECK_TCP: 1 -----*/ -#define CHECKSUM_CHECK_TCP 0 -/*----- Value in opt.h for CHECKSUM_CHECK_ICMP6: 1 -----*/ -#define CHECKSUM_CHECK_ICMP6 0 -/*-----------------------------------------------------------------------------*/ -/* USER CODE BEGIN 1 */ - -/* USER CODE END 1 */ - -#ifdef __cplusplus -} -#endif -#endif /*__LWIPOPTS__H__ */ diff --git a/Middlewares/Third_Party/FatFs/src/diskio.c b/Middlewares/Third_Party/FatFs/src/diskio.c deleted file mode 100644 index 5cf8edf..0000000 --- a/Middlewares/Third_Party/FatFs/src/diskio.c +++ /dev/null @@ -1,141 +0,0 @@ -/*-----------------------------------------------------------------------*/ -/* Low level disk I/O module skeleton for FatFs (C)ChaN, 2017 */ -/* */ -/* Portions COPYRIGHT 2017 STMicroelectronics */ -/* Portions Copyright (C) 2017, ChaN, all right reserved */ -/*-----------------------------------------------------------------------*/ -/* If a working storage control module is available, it should be */ -/* attached to the FatFs via a glue function rather than modifying it. */ -/* This is an example of glue functions to attach various existing */ -/* storage control modules to the FatFs module with a defined API. */ -/*-----------------------------------------------------------------------*/ - -/* Includes ------------------------------------------------------------------*/ -#include "diskio.h" -#include "ff_gen_drv.h" - -#if defined ( __GNUC__ ) -#ifndef __weak -#define __weak __attribute__((weak)) -#endif -#endif - -/* Private typedef -----------------------------------------------------------*/ -/* Private define ------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -extern Disk_drvTypeDef disk; - -/* Private function prototypes -----------------------------------------------*/ -/* Private functions ---------------------------------------------------------*/ - -/** - * @brief Gets Disk Status - * @param pdrv: Physical drive number (0..) - * @retval DSTATUS: Operation status - */ -DSTATUS disk_status ( - BYTE pdrv /* Physical drive number to identify the drive */ -) -{ - DSTATUS stat; - - stat = disk.drv[pdrv]->disk_status(disk.lun[pdrv]); - return stat; -} - -/** - * @brief Initializes a Drive - * @param pdrv: Physical drive number (0..) - * @retval DSTATUS: Operation status - */ -DSTATUS disk_initialize ( - BYTE pdrv /* Physical drive nmuber to identify the drive */ -) -{ - DSTATUS stat = RES_OK; - - if(disk.is_initialized[pdrv] == 0) - { - disk.is_initialized[pdrv] = 1; - stat = disk.drv[pdrv]->disk_initialize(disk.lun[pdrv]); - } - return stat; -} - -/** - * @brief Reads Sector(s) - * @param pdrv: Physical drive number (0..) - * @param *buff: Data buffer to store read data - * @param sector: Sector address (LBA) - * @param count: Number of sectors to read (1..128) - * @retval DRESULT: Operation result - */ -DRESULT disk_read ( - BYTE pdrv, /* Physical drive nmuber to identify the drive */ - BYTE *buff, /* Data buffer to store read data */ - DWORD sector, /* Sector address in LBA */ - UINT count /* Number of sectors to read */ -) -{ - DRESULT res; - - res = disk.drv[pdrv]->disk_read(disk.lun[pdrv], buff, sector, count); - return res; -} - -/** - * @brief Writes Sector(s) - * @param pdrv: Physical drive number (0..) - * @param *buff: Data to be written - * @param sector: Sector address (LBA) - * @param count: Number of sectors to write (1..128) - * @retval DRESULT: Operation result - */ -#if _USE_WRITE == 1 -DRESULT disk_write ( - BYTE pdrv, /* Physical drive nmuber to identify the drive */ - const BYTE *buff, /* Data to be written */ - DWORD sector, /* Sector address in LBA */ - UINT count /* Number of sectors to write */ -) -{ - DRESULT res; - - res = disk.drv[pdrv]->disk_write(disk.lun[pdrv], buff, sector, count); - return res; -} -#endif /* _USE_WRITE == 1 */ - -/** - * @brief I/O control operation - * @param pdrv: Physical drive number (0..) - * @param cmd: Control code - * @param *buff: Buffer to send/receive control data - * @retval DRESULT: Operation result - */ -#if _USE_IOCTL == 1 -DRESULT disk_ioctl ( - BYTE pdrv, /* Physical drive nmuber (0..) */ - BYTE cmd, /* Control code */ - void *buff /* Buffer to send/receive control data */ -) -{ - DRESULT res; - - res = disk.drv[pdrv]->disk_ioctl(disk.lun[pdrv], cmd, buff); - return res; -} -#endif /* _USE_IOCTL == 1 */ - -/** - * @brief Gets Time from RTC - * @param None - * @retval Time in DWORD - */ -__weak DWORD get_fattime (void) -{ - return 0; -} - -/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ - diff --git a/Middlewares/Third_Party/FatFs/src/diskio.h b/Middlewares/Third_Party/FatFs/src/diskio.h deleted file mode 100644 index 5b61e57..0000000 --- a/Middlewares/Third_Party/FatFs/src/diskio.h +++ /dev/null @@ -1,80 +0,0 @@ -/*-----------------------------------------------------------------------/ -/ Low level disk interface modlue include file (C)ChaN, 2014 / -/-----------------------------------------------------------------------*/ - -#ifndef _DISKIO_DEFINED -#define _DISKIO_DEFINED - -#ifdef __cplusplus -extern "C" { -#endif - -#define _USE_WRITE 1 /* 1: Enable disk_write function */ -#define _USE_IOCTL 1 /* 1: Enable disk_ioctl function */ - -#include "integer.h" - - -/* Status of Disk Functions */ -typedef BYTE DSTATUS; - -/* Results of Disk Functions */ -typedef enum { - RES_OK = 0, /* 0: Successful */ - RES_ERROR, /* 1: R/W Error */ - RES_WRPRT, /* 2: Write Protected */ - RES_NOTRDY, /* 3: Not Ready */ - RES_PARERR /* 4: Invalid Parameter */ -} DRESULT; - - -/*---------------------------------------*/ -/* Prototypes for disk control functions */ - - -DSTATUS disk_initialize (BYTE pdrv); -DSTATUS disk_status (BYTE pdrv); -DRESULT disk_read (BYTE pdrv, BYTE* buff, DWORD sector, UINT count); -DRESULT disk_write (BYTE pdrv, const BYTE* buff, DWORD sector, UINT count); -DRESULT disk_ioctl (BYTE pdrv, BYTE cmd, void* buff); -DWORD get_fattime (void); - -/* Disk Status Bits (DSTATUS) */ - -#define STA_NOINIT 0x01 /* Drive not initialized */ -#define STA_NODISK 0x02 /* No medium in the drive */ -#define STA_PROTECT 0x04 /* Write protected */ - - -/* Command code for disk_ioctrl fucntion */ - -/* Generic command (Used by FatFs) */ -#define CTRL_SYNC 0 /* Complete pending write process (needed at _FS_READONLY == 0) */ -#define GET_SECTOR_COUNT 1 /* Get media size (needed at _USE_MKFS == 1) */ -#define GET_SECTOR_SIZE 2 /* Get sector size (needed at _MAX_SS != _MIN_SS) */ -#define GET_BLOCK_SIZE 3 /* Get erase block size (needed at _USE_MKFS == 1) */ -#define CTRL_TRIM 4 /* Inform device that the data on the block of sectors is no longer used (needed at _USE_TRIM == 1) */ - -/* Generic command (Not used by FatFs) */ -#define CTRL_POWER 5 /* Get/Set power status */ -#define CTRL_LOCK 6 /* Lock/Unlock media removal */ -#define CTRL_EJECT 7 /* Eject media */ -#define CTRL_FORMAT 8 /* Create physical format on the media */ - -/* MMC/SDC specific ioctl command */ -#define MMC_GET_TYPE 10 /* Get card type */ -#define MMC_GET_CSD 11 /* Get CSD */ -#define MMC_GET_CID 12 /* Get CID */ -#define MMC_GET_OCR 13 /* Get OCR */ -#define MMC_GET_SDSTAT 14 /* Get SD status */ - -/* ATA/CF specific ioctl command */ -#define ATA_GET_REV 20 /* Get F/W revision */ -#define ATA_GET_MODEL 21 /* Get model name */ -#define ATA_GET_SN 22 /* Get serial number */ - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/Middlewares/Third_Party/FatFs/src/ff.c b/Middlewares/Third_Party/FatFs/src/ff.c deleted file mode 100644 index b0bd436..0000000 --- a/Middlewares/Third_Party/FatFs/src/ff.c +++ /dev/null @@ -1,6140 +0,0 @@ -/*----------------------------------------------------------------------------/ -/ FatFs - Generic FAT file system module R0.12c / -/-----------------------------------------------------------------------------/ -/ -/ Copyright (C) 2017, ChaN, all right reserved. -/ -/ FatFs module is an open source software. Redistribution and use of FatFs in -/ source and binary forms, with or without modification, are permitted provided -/ that the following condition is met: -/ -/ 1. Redistributions of source code must retain the above copyright notice, -/ this condition and the following disclaimer. -/ -/ This software is provided by the copyright holder and contributors "AS IS" -/ and any warranties related to this software are DISCLAIMED. -/ The copyright owner or contributors be NOT LIABLE for any damages caused -/ by use of this software. -/----------------------------------------------------------------------------*/ - - -#include "ff.h" /* Declarations of FatFs API */ -#include "diskio.h" /* Declarations of device I/O functions */ - - -/*-------------------------------------------------------------------------- - - Module Private Definitions - ----------------------------------------------------------------------------*/ - -#if _FATFS != 68300 /* Revision ID */ -#error Wrong include file (ff.h). -#endif - - -/* DBCS code ranges and SBCS upper conversion tables */ - -#if _CODE_PAGE == 932 /* Japanese Shift-JIS */ -#define _DF1S 0x81 /* DBC 1st byte range 1 start */ -#define _DF1E 0x9F /* DBC 1st byte range 1 end */ -#define _DF2S 0xE0 /* DBC 1st byte range 2 start */ -#define _DF2E 0xFC /* DBC 1st byte range 2 end */ -#define _DS1S 0x40 /* DBC 2nd byte range 1 start */ -#define _DS1E 0x7E /* DBC 2nd byte range 1 end */ -#define _DS2S 0x80 /* DBC 2nd byte range 2 start */ -#define _DS2E 0xFC /* DBC 2nd byte range 2 end */ - -#elif _CODE_PAGE == 936 /* Simplified Chinese GBK */ -#define _DF1S 0x81 -#define _DF1E 0xFE -#define _DS1S 0x40 -#define _DS1E 0x7E -#define _DS2S 0x80 -#define _DS2E 0xFE - -#elif _CODE_PAGE == 949 /* Korean */ -#define _DF1S 0x81 -#define _DF1E 0xFE -#define _DS1S 0x41 -#define _DS1E 0x5A -#define _DS2S 0x61 -#define _DS2E 0x7A -#define _DS3S 0x81 -#define _DS3E 0xFE - -#elif _CODE_PAGE == 950 /* Traditional Chinese Big5 */ -#define _DF1S 0x81 -#define _DF1E 0xFE -#define _DS1S 0x40 -#define _DS1E 0x7E -#define _DS2S 0xA1 -#define _DS2E 0xFE - -#elif _CODE_PAGE == 437 /* U.S. */ -#define _DF1S 0 -#define _EXCVT {0x80,0x9A,0x45,0x41,0x8E,0x41,0x8F,0x80,0x45,0x45,0x45,0x49,0x49,0x49,0x8E,0x8F, \ - 0x90,0x92,0x92,0x4F,0x99,0x4F,0x55,0x55,0x59,0x99,0x9A,0x9B,0x9C,0x9D,0x9E,0x9F, \ - 0x41,0x49,0x4F,0x55,0xA5,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF, \ - 0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \ - 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF, \ - 0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \ - 0xE0,0xE1,0xE2,0xE3,0xE4,0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,0xEB,0xEC,0xED,0xEE,0xEF, \ - 0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF} - -#elif _CODE_PAGE == 720 /* Arabic */ -#define _DF1S 0 -#define _EXCVT {0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F, \ - 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,0x9D,0x9E,0x9F, \ - 0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF, \ - 0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \ - 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF, \ - 0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \ - 0xE0,0xE1,0xE2,0xE3,0xE4,0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,0xEB,0xEC,0xED,0xEE,0xEF, \ - 0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF} - -#elif _CODE_PAGE == 737 /* Greek */ -#define _DF1S 0 -#define _EXCVT {0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F, \ - 0x90,0x92,0x92,0x93,0x94,0x95,0x96,0x97,0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87, \ - 0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,0x90,0x91,0xAA,0x92,0x93,0x94,0x95,0x96, \ - 0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \ - 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF, \ - 0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \ - 0x97,0xEA,0xEB,0xEC,0xE4,0xED,0xEE,0xEF,0xF5,0xF0,0xEA,0xEB,0xEC,0xED,0xEE,0xEF, \ - 0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF} - -#elif _CODE_PAGE == 771 /* KBL */ -#define _DF1S 0 -#define _EXCVT {0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F, \ - 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,0x9D,0x9E,0x9F, \ - 0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F, \ - 0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \ - 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF, \ - 0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDC,0xDE,0xDE, \ - 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,0x9D,0x9E,0x9F, \ - 0xF0,0xF0,0xF2,0xF2,0xF4,0xF4,0xF6,0xF6,0xF8,0xF8,0xFA,0xFA,0xFC,0xFC,0xFE,0xFF} - -#elif _CODE_PAGE == 775 /* Baltic */ -#define _DF1S 0 -#define _EXCVT {0x80,0x9A,0x91,0xA0,0x8E,0x95,0x8F,0x80,0xAD,0xED,0x8A,0x8A,0xA1,0x8D,0x8E,0x8F, \ - 0x90,0x92,0x92,0xE2,0x99,0x95,0x96,0x97,0x97,0x99,0x9A,0x9D,0x9C,0x9D,0x9E,0x9F, \ - 0xA0,0xA1,0xE0,0xA3,0xA3,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF, \ - 0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \ - 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF, \ - 0xB5,0xB6,0xB7,0xB8,0xBD,0xBE,0xC6,0xC7,0xA5,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \ - 0xE0,0xE1,0xE2,0xE3,0xE5,0xE5,0xE6,0xE3,0xE8,0xE8,0xEA,0xEA,0xEE,0xED,0xEE,0xEF, \ - 0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF} - -#elif _CODE_PAGE == 850 /* Latin 1 */ -#define _DF1S 0 -#define _EXCVT {0x43,0x55,0x45,0x41,0x41,0x41,0x41,0x43,0x45,0x45,0x45,0x49,0x49,0x49,0x41,0x41, \ - 0x45,0x92,0x92,0x4F,0x4F,0x4F,0x55,0x55,0x59,0x4F,0x55,0x4F,0x9C,0x4F,0x9E,0x9F, \ - 0x41,0x49,0x4F,0x55,0xA5,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF, \ - 0xB0,0xB1,0xB2,0xB3,0xB4,0x41,0x41,0x41,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \ - 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0x41,0x41,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF, \ - 0xD1,0xD1,0x45,0x45,0x45,0x49,0x49,0x49,0x49,0xD9,0xDA,0xDB,0xDC,0xDD,0x49,0xDF, \ - 0x4F,0xE1,0x4F,0x4F,0x4F,0x4F,0xE6,0xE8,0xE8,0x55,0x55,0x55,0x59,0x59,0xEE,0xEF, \ - 0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF} - -#elif _CODE_PAGE == 852 /* Latin 2 */ -#define _DF1S 0 -#define _EXCVT {0x80,0x9A,0x90,0xB6,0x8E,0xDE,0x8F,0x80,0x9D,0xD3,0x8A,0x8A,0xD7,0x8D,0x8E,0x8F, \ - 0x90,0x91,0x91,0xE2,0x99,0x95,0x95,0x97,0x97,0x99,0x9A,0x9B,0x9B,0x9D,0x9E,0xAC, \ - 0xB5,0xD6,0xE0,0xE9,0xA4,0xA4,0xA6,0xA6,0xA8,0xA8,0xAA,0x8D,0xAC,0xB8,0xAE,0xAF, \ - 0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBD,0xBF, \ - 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC6,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF, \ - 0xD1,0xD1,0xD2,0xD3,0xD2,0xD5,0xD6,0xD7,0xB7,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \ - 0xE0,0xE1,0xE2,0xE3,0xE3,0xD5,0xE6,0xE6,0xE8,0xE9,0xE8,0xEB,0xED,0xED,0xDD,0xEF, \ - 0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xEB,0xFC,0xFC,0xFE,0xFF} - -#elif _CODE_PAGE == 855 /* Cyrillic */ -#define _DF1S 0 -#define _EXCVT {0x81,0x81,0x83,0x83,0x85,0x85,0x87,0x87,0x89,0x89,0x8B,0x8B,0x8D,0x8D,0x8F,0x8F, \ - 0x91,0x91,0x93,0x93,0x95,0x95,0x97,0x97,0x99,0x99,0x9B,0x9B,0x9D,0x9D,0x9F,0x9F, \ - 0xA1,0xA1,0xA3,0xA3,0xA5,0xA5,0xA7,0xA7,0xA9,0xA9,0xAB,0xAB,0xAD,0xAD,0xAE,0xAF, \ - 0xB0,0xB1,0xB2,0xB3,0xB4,0xB6,0xB6,0xB8,0xB8,0xB9,0xBA,0xBB,0xBC,0xBE,0xBE,0xBF, \ - 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC7,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF, \ - 0xD1,0xD1,0xD3,0xD3,0xD5,0xD5,0xD7,0xD7,0xDD,0xD9,0xDA,0xDB,0xDC,0xDD,0xE0,0xDF, \ - 0xE0,0xE2,0xE2,0xE4,0xE4,0xE6,0xE6,0xE8,0xE8,0xEA,0xEA,0xEC,0xEC,0xEE,0xEE,0xEF, \ - 0xF0,0xF2,0xF2,0xF4,0xF4,0xF6,0xF6,0xF8,0xF8,0xFA,0xFA,0xFC,0xFC,0xFD,0xFE,0xFF} - -#elif _CODE_PAGE == 857 /* Turkish */ -#define _DF1S 0 -#define _EXCVT {0x80,0x9A,0x90,0xB6,0x8E,0xB7,0x8F,0x80,0xD2,0xD3,0xD4,0xD8,0xD7,0x49,0x8E,0x8F, \ - 0x90,0x92,0x92,0xE2,0x99,0xE3,0xEA,0xEB,0x98,0x99,0x9A,0x9D,0x9C,0x9D,0x9E,0x9E, \ - 0xB5,0xD6,0xE0,0xE9,0xA5,0xA5,0xA6,0xA6,0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF, \ - 0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \ - 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC7,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF, \ - 0xD0,0xD1,0xD2,0xD3,0xD4,0x49,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \ - 0xE0,0xE1,0xE2,0xE3,0xE5,0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,0xEB,0xDE,0xED,0xEE,0xEF, \ - 0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF} - -#elif _CODE_PAGE == 860 /* Portuguese */ -#define _DF1S 0 -#define _EXCVT {0x80,0x9A,0x90,0x8F,0x8E,0x91,0x86,0x80,0x89,0x89,0x92,0x8B,0x8C,0x98,0x8E,0x8F, \ - 0x90,0x91,0x92,0x8C,0x99,0xA9,0x96,0x9D,0x98,0x99,0x9A,0x9B,0x9C,0x9D,0x9E,0x9F, \ - 0x86,0x8B,0x9F,0x96,0xA5,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF, \ - 0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \ - 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF, \ - 0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \ - 0xE0,0xE1,0xE2,0xE3,0xE4,0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,0xEB,0xEC,0xED,0xEE,0xEF, \ - 0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF} - -#elif _CODE_PAGE == 861 /* Icelandic */ -#define _DF1S 0 -#define _EXCVT {0x80,0x9A,0x90,0x41,0x8E,0x41,0x8F,0x80,0x45,0x45,0x45,0x8B,0x8B,0x8D,0x8E,0x8F, \ - 0x90,0x92,0x92,0x4F,0x99,0x8D,0x55,0x97,0x97,0x99,0x9A,0x9D,0x9C,0x9D,0x9E,0x9F, \ - 0xA4,0xA5,0xA6,0xA7,0xA4,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF, \ - 0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \ - 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF, \ - 0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \ - 0xE0,0xE1,0xE2,0xE3,0xE4,0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,0xEB,0xEC,0xED,0xEE,0xEF, \ - 0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF} - -#elif _CODE_PAGE == 862 /* Hebrew */ -#define _DF1S 0 -#define _EXCVT {0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F, \ - 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,0x9D,0x9E,0x9F, \ - 0x41,0x49,0x4F,0x55,0xA5,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF, \ - 0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \ - 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF, \ - 0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \ - 0xE0,0xE1,0xE2,0xE3,0xE4,0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,0xEB,0xEC,0xED,0xEE,0xEF, \ - 0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF} - -#elif _CODE_PAGE == 863 /* Canadian-French */ -#define _DF1S 0 -#define _EXCVT {0x43,0x55,0x45,0x41,0x41,0x41,0x86,0x43,0x45,0x45,0x45,0x49,0x49,0x8D,0x41,0x8F, \ - 0x45,0x45,0x45,0x4F,0x45,0x49,0x55,0x55,0x98,0x4F,0x55,0x9B,0x9C,0x55,0x55,0x9F, \ - 0xA0,0xA1,0x4F,0x55,0xA4,0xA5,0xA6,0xA7,0x49,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF, \ - 0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \ - 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF, \ - 0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \ - 0xE0,0xE1,0xE2,0xE3,0xE4,0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,0xEB,0xEC,0xED,0xEE,0xEF, \ - 0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF} - -#elif _CODE_PAGE == 864 /* Arabic */ -#define _DF1S 0 -#define _EXCVT {0x80,0x9A,0x45,0x41,0x8E,0x41,0x8F,0x80,0x45,0x45,0x45,0x49,0x49,0x49,0x8E,0x8F, \ - 0x90,0x92,0x92,0x4F,0x99,0x4F,0x55,0x55,0x59,0x99,0x9A,0x9B,0x9C,0x9D,0x9E,0x9F, \ - 0x41,0x49,0x4F,0x55,0xA5,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF, \ - 0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \ - 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF, \ - 0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \ - 0xE0,0xE1,0xE2,0xE3,0xE4,0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,0xEB,0xEC,0xED,0xEE,0xEF, \ - 0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF} - -#elif _CODE_PAGE == 865 /* Nordic */ -#define _DF1S 0 -#define _EXCVT {0x80,0x9A,0x90,0x41,0x8E,0x41,0x8F,0x80,0x45,0x45,0x45,0x49,0x49,0x49,0x8E,0x8F, \ - 0x90,0x92,0x92,0x4F,0x99,0x4F,0x55,0x55,0x59,0x99,0x9A,0x9B,0x9C,0x9D,0x9E,0x9F, \ - 0x41,0x49,0x4F,0x55,0xA5,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF, \ - 0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \ - 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF, \ - 0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \ - 0xE0,0xE1,0xE2,0xE3,0xE4,0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,0xEB,0xEC,0xED,0xEE,0xEF, \ - 0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF} - -#elif _CODE_PAGE == 866 /* Russian */ -#define _DF1S 0 -#define _EXCVT {0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F, \ - 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,0x9D,0x9E,0x9F, \ - 0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F, \ - 0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \ - 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF, \ - 0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \ - 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,0x9D,0x9E,0x9F, \ - 0xF0,0xF0,0xF2,0xF2,0xF4,0xF4,0xF6,0xF6,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF} - -#elif _CODE_PAGE == 869 /* Greek 2 */ -#define _DF1S 0 -#define _EXCVT {0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F, \ - 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x86,0x9C,0x8D,0x8F,0x90, \ - 0x91,0x90,0x92,0x95,0xA4,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF, \ - 0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \ - 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF, \ - 0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xA4,0xA5,0xA6,0xD9,0xDA,0xDB,0xDC,0xA7,0xA8,0xDF, \ - 0xA9,0xAA,0xAC,0xAD,0xB5,0xB6,0xB7,0xB8,0xBD,0xBE,0xC6,0xC7,0xCF,0xCF,0xD0,0xEF, \ - 0xF0,0xF1,0xD1,0xD2,0xD3,0xF5,0xD4,0xF7,0xF8,0xF9,0xD5,0x96,0x95,0x98,0xFE,0xFF} - -#elif _CODE_PAGE == 1 /* ASCII (for only non-LFN cfg) */ -#if _USE_LFN != 0 -#error Cannot enable LFN without valid code page. -#endif -#define _DF1S 0 - -#else -#error Unknown code page - -#endif - - -/* Character code support macros */ -#define IsUpper(c) (((c)>='A')&&((c)<='Z')) -#define IsLower(c) (((c)>='a')&&((c)<='z')) -#define IsDigit(c) (((c)>='0')&&((c)<='9')) - -#if _DF1S != 0 /* Code page is DBCS */ - -#ifdef _DF2S /* Two 1st byte areas */ -#define IsDBCS1(c) (((BYTE)(c) >= _DF1S && (BYTE)(c) <= _DF1E) || ((BYTE)(c) >= _DF2S && (BYTE)(c) <= _DF2E)) -#else /* One 1st byte area */ -#define IsDBCS1(c) ((BYTE)(c) >= _DF1S && (BYTE)(c) <= _DF1E) -#endif - -#ifdef _DS3S /* Three 2nd byte areas */ -#define IsDBCS2(c) (((BYTE)(c) >= _DS1S && (BYTE)(c) <= _DS1E) || ((BYTE)(c) >= _DS2S && (BYTE)(c) <= _DS2E) || ((BYTE)(c) >= _DS3S && (BYTE)(c) <= _DS3E)) -#else /* Two 2nd byte areas */ -#define IsDBCS2(c) (((BYTE)(c) >= _DS1S && (BYTE)(c) <= _DS1E) || ((BYTE)(c) >= _DS2S && (BYTE)(c) <= _DS2E)) -#endif - -#else /* Code page is SBCS */ - -#define IsDBCS1(c) 0 -#define IsDBCS2(c) 0 - -#endif /* _DF1S */ - - -/* Additional file attribute bits for internal use */ -#define AM_VOL 0x08 /* Volume label */ -#define AM_LFN 0x0F /* LFN entry */ -#define AM_MASK 0x3F /* Mask of defined bits */ - - -/* Additional file access control and file status flags for internal use */ -#define FA_SEEKEND 0x20 /* Seek to end of the file on file open */ -#define FA_MODIFIED 0x40 /* File has been modified */ -#define FA_DIRTY 0x80 /* FIL.buf[] needs to be written-back */ - - -/* Name status flags in fn[] */ -#define NSFLAG 11 /* Index of the name status byte */ -#define NS_LOSS 0x01 /* Out of 8.3 format */ -#define NS_LFN 0x02 /* Force to create LFN entry */ -#define NS_LAST 0x04 /* Last segment */ -#define NS_BODY 0x08 /* Lower case flag (body) */ -#define NS_EXT 0x10 /* Lower case flag (ext) */ -#define NS_DOT 0x20 /* Dot entry */ -#define NS_NOLFN 0x40 /* Do not find LFN */ -#define NS_NONAME 0x80 /* Not followed */ - - -/* Limits and boundaries */ -#define MAX_DIR 0x200000 /* Max size of FAT directory */ -#define MAX_DIR_EX 0x10000000 /* Max size of exFAT directory */ -#define MAX_FAT12 0xFF5 /* Max FAT12 clusters (differs from specs, but correct for real DOS/Windows behavior) */ -#define MAX_FAT16 0xFFF5 /* Max FAT16 clusters (differs from specs, but correct for real DOS/Windows behavior) */ -#define MAX_FAT32 0x0FFFFFF5 /* Max FAT32 clusters (not specified, practical limit) */ -#define MAX_EXFAT 0x7FFFFFFD /* Max exFAT clusters (differs from specs, implementation limit) */ - - -/* FatFs refers the FAT structure as simple byte array instead of structure member -/ because the C structure is not binary compatible between different platforms */ - -#define BS_JmpBoot 0 /* x86 jump instruction (3-byte) */ -#define BS_OEMName 3 /* OEM name (8-byte) */ -#define BPB_BytsPerSec 11 /* Sector size [byte] (WORD) */ -#define BPB_SecPerClus 13 /* Cluster size [sector] (BYTE) */ -#define BPB_RsvdSecCnt 14 /* Size of reserved area [sector] (WORD) */ -#define BPB_NumFATs 16 /* Number of FATs (BYTE) */ -#define BPB_RootEntCnt 17 /* Size of root directory area for FAT12/16 [entry] (WORD) */ -#define BPB_TotSec16 19 /* Volume size (16-bit) [sector] (WORD) */ -#define BPB_Media 21 /* Media descriptor byte (BYTE) */ -#define BPB_FATSz16 22 /* FAT size (16-bit) [sector] (WORD) */ -#define BPB_SecPerTrk 24 /* Track size for int13h [sector] (WORD) */ -#define BPB_NumHeads 26 /* Number of heads for int13h (WORD) */ -#define BPB_HiddSec 28 /* Volume offset from top of the drive (DWORD) */ -#define BPB_TotSec32 32 /* Volume size (32-bit) [sector] (DWORD) */ -#define BS_DrvNum 36 /* Physical drive number for int13h (BYTE) */ -#define BS_NTres 37 /* Error flag (BYTE) */ -#define BS_BootSig 38 /* Extended boot signature (BYTE) */ -#define BS_VolID 39 /* Volume serial number (DWORD) */ -#define BS_VolLab 43 /* Volume label string (8-byte) */ -#define BS_FilSysType 54 /* File system type string (8-byte) */ -#define BS_BootCode 62 /* Boot code (448-byte) */ -#define BS_55AA 510 /* Signature word (WORD) */ - -#define BPB_FATSz32 36 /* FAT32: FAT size [sector] (DWORD) */ -#define BPB_ExtFlags32 40 /* FAT32: Extended flags (WORD) */ -#define BPB_FSVer32 42 /* FAT32: File system version (WORD) */ -#define BPB_RootClus32 44 /* FAT32: Root directory cluster (DWORD) */ -#define BPB_FSInfo32 48 /* FAT32: Offset of FSINFO sector (WORD) */ -#define BPB_BkBootSec32 50 /* FAT32: Offset of backup boot sector (WORD) */ -#define BS_DrvNum32 64 /* FAT32: Physical drive number for int13h (BYTE) */ -#define BS_NTres32 65 /* FAT32: Error flag (BYTE) */ -#define BS_BootSig32 66 /* FAT32: Extended boot signature (BYTE) */ -#define BS_VolID32 67 /* FAT32: Volume serial number (DWORD) */ -#define BS_VolLab32 71 /* FAT32: Volume label string (8-byte) */ -#define BS_FilSysType32 82 /* FAT32: File system type string (8-byte) */ -#define BS_BootCode32 90 /* FAT32: Boot code (420-byte) */ - -#define BPB_ZeroedEx 11 /* exFAT: MBZ field (53-byte) */ -#define BPB_VolOfsEx 64 /* exFAT: Volume offset from top of the drive [sector] (QWORD) */ -#define BPB_TotSecEx 72 /* exFAT: Volume size [sector] (QWORD) */ -#define BPB_FatOfsEx 80 /* exFAT: FAT offset from top of the volume [sector] (DWORD) */ -#define BPB_FatSzEx 84 /* exFAT: FAT size [sector] (DWORD) */ -#define BPB_DataOfsEx 88 /* exFAT: Data offset from top of the volume [sector] (DWORD) */ -#define BPB_NumClusEx 92 /* exFAT: Number of clusters (DWORD) */ -#define BPB_RootClusEx 96 /* exFAT: Root directory start cluster (DWORD) */ -#define BPB_VolIDEx 100 /* exFAT: Volume serial number (DWORD) */ -#define BPB_FSVerEx 104 /* exFAT: File system version (WORD) */ -#define BPB_VolFlagEx 106 /* exFAT: Volume flags (BYTE) */ -#define BPB_ActFatEx 107 /* exFAT: Active FAT flags (BYTE) */ -#define BPB_BytsPerSecEx 108 /* exFAT: Log2 of sector size in unit of byte (BYTE) */ -#define BPB_SecPerClusEx 109 /* exFAT: Log2 of cluster size in unit of sector (BYTE) */ -#define BPB_NumFATsEx 110 /* exFAT: Number of FATs (BYTE) */ -#define BPB_DrvNumEx 111 /* exFAT: Physical drive number for int13h (BYTE) */ -#define BPB_PercInUseEx 112 /* exFAT: Percent in use (BYTE) */ -#define BPB_RsvdEx 113 /* exFAT: Reserved (7-byte) */ -#define BS_BootCodeEx 120 /* exFAT: Boot code (390-byte) */ - -#define DIR_Name 0 /* Short file name (11-byte) */ -#define DIR_Attr 11 /* Attribute (BYTE) */ -#define DIR_NTres 12 /* Lower case flag (BYTE) */ -#define DIR_CrtTime10 13 /* Created time sub-second (BYTE) */ -#define DIR_CrtTime 14 /* Created time (DWORD) */ -#define DIR_LstAccDate 18 /* Last accessed date (WORD) */ -#define DIR_FstClusHI 20 /* Higher 16-bit of first cluster (WORD) */ -#define DIR_ModTime 22 /* Modified time (DWORD) */ -#define DIR_FstClusLO 26 /* Lower 16-bit of first cluster (WORD) */ -#define DIR_FileSize 28 /* File size (DWORD) */ -#define LDIR_Ord 0 /* LFN: LFN order and LLE flag (BYTE) */ -#define LDIR_Attr 11 /* LFN: LFN attribute (BYTE) */ -#define LDIR_Type 12 /* LFN: Entry type (BYTE) */ -#define LDIR_Chksum 13 /* LFN: Checksum of the SFN (BYTE) */ -#define LDIR_FstClusLO 26 /* LFN: MBZ field (WORD) */ -#define XDIR_Type 0 /* exFAT: Type of exFAT directory entry (BYTE) */ -#define XDIR_NumLabel 1 /* exFAT: Number of volume label characters (BYTE) */ -#define XDIR_Label 2 /* exFAT: Volume label (11-WORD) */ -#define XDIR_CaseSum 4 /* exFAT: Sum of case conversion table (DWORD) */ -#define XDIR_NumSec 1 /* exFAT: Number of secondary entries (BYTE) */ -#define XDIR_SetSum 2 /* exFAT: Sum of the set of directory entries (WORD) */ -#define XDIR_Attr 4 /* exFAT: File attribute (WORD) */ -#define XDIR_CrtTime 8 /* exFAT: Created time (DWORD) */ -#define XDIR_ModTime 12 /* exFAT: Modified time (DWORD) */ -#define XDIR_AccTime 16 /* exFAT: Last accessed time (DWORD) */ -#define XDIR_CrtTime10 20 /* exFAT: Created time subsecond (BYTE) */ -#define XDIR_ModTime10 21 /* exFAT: Modified time subsecond (BYTE) */ -#define XDIR_CrtTZ 22 /* exFAT: Created timezone (BYTE) */ -#define XDIR_ModTZ 23 /* exFAT: Modified timezone (BYTE) */ -#define XDIR_AccTZ 24 /* exFAT: Last accessed timezone (BYTE) */ -#define XDIR_GenFlags 33 /* exFAT: General secondary flags (WORD) */ -#define XDIR_NumName 35 /* exFAT: Number of file name characters (BYTE) */ -#define XDIR_NameHash 36 /* exFAT: Hash of file name (WORD) */ -#define XDIR_ValidFileSize 40 /* exFAT: Valid file size (QWORD) */ -#define XDIR_FstClus 52 /* exFAT: First cluster of the file data (DWORD) */ -#define XDIR_FileSize 56 /* exFAT: File/Directory size (QWORD) */ - -#define SZDIRE 32 /* Size of a directory entry */ -#define DDEM 0xE5 /* Deleted directory entry mark set to DIR_Name[0] */ -#define RDDEM 0x05 /* Replacement of the character collides with DDEM */ -#define LLEF 0x40 /* Last long entry flag in LDIR_Ord */ - -#define FSI_LeadSig 0 /* FAT32 FSI: Leading signature (DWORD) */ -#define FSI_StrucSig 484 /* FAT32 FSI: Structure signature (DWORD) */ -#define FSI_Free_Count 488 /* FAT32 FSI: Number of free clusters (DWORD) */ -#define FSI_Nxt_Free 492 /* FAT32 FSI: Last allocated cluster (DWORD) */ - -#define MBR_Table 446 /* MBR: Offset of partition table in the MBR */ -#define SZ_PTE 16 /* MBR: Size of a partition table entry */ -#define PTE_Boot 0 /* MBR PTE: Boot indicator */ -#define PTE_StHead 1 /* MBR PTE: Start head */ -#define PTE_StSec 2 /* MBR PTE: Start sector */ -#define PTE_StCyl 3 /* MBR PTE: Start cylinder */ -#define PTE_System 4 /* MBR PTE: System ID */ -#define PTE_EdHead 5 /* MBR PTE: End head */ -#define PTE_EdSec 6 /* MBR PTE: End sector */ -#define PTE_EdCyl 7 /* MBR PTE: End cylinder */ -#define PTE_StLba 8 /* MBR PTE: Start in LBA */ -#define PTE_SizLba 12 /* MBR PTE: Size in LBA */ - - -/* Post process after fatal error on file operation */ -#define ABORT(fs, res) { fp->err = (BYTE)(res); LEAVE_FF(fs, res); } - - -/* Reentrancy related */ -#if _FS_REENTRANT -#if _USE_LFN == 1 -#error Static LFN work area cannot be used at thread-safe configuration -#endif -#define ENTER_FF(fs) { if (!lock_fs(fs)) return FR_TIMEOUT; } -#define LEAVE_FF(fs, res) { unlock_fs(fs, res); return res; } -#else -#define ENTER_FF(fs) -#define LEAVE_FF(fs, res) return res -#endif - - -/* Definitions of volume - partition conversion */ -#if _MULTI_PARTITION -#define LD2PD(vol) VolToPart[vol].pd /* Get physical drive number */ -#define LD2PT(vol) VolToPart[vol].pt /* Get partition index */ -#else -#define LD2PD(vol) (BYTE)(vol) /* Each logical drive is bound to the same physical drive number */ -#define LD2PT(vol) 0 /* Find first valid partition or in SFD */ -#endif - - -/* Definitions of sector size */ -#if (_MAX_SS < _MIN_SS) || (_MAX_SS != 512 && _MAX_SS != 1024 && _MAX_SS != 2048 && _MAX_SS != 4096) || (_MIN_SS != 512 && _MIN_SS != 1024 && _MIN_SS != 2048 && _MIN_SS != 4096) -#error Wrong sector size configuration -#endif -#if _MAX_SS == _MIN_SS -#define SS(fs) ((UINT)_MAX_SS) /* Fixed sector size */ -#else -#define SS(fs) ((fs)->ssize) /* Variable sector size */ -#endif - - -/* Timestamp */ -#if _FS_NORTC == 1 -#if _NORTC_YEAR < 1980 || _NORTC_YEAR > 2107 || _NORTC_MON < 1 || _NORTC_MON > 12 || _NORTC_MDAY < 1 || _NORTC_MDAY > 31 -#error Invalid _FS_NORTC settings -#endif -#define GET_FATTIME() ((DWORD)(_NORTC_YEAR - 1980) << 25 | (DWORD)_NORTC_MON << 21 | (DWORD)_NORTC_MDAY << 16) -#else -#define GET_FATTIME() get_fattime() -#endif - - -/* File lock controls */ -#if _FS_LOCK != 0 -#if _FS_READONLY -#error _FS_LOCK must be 0 at read-only configuration -#endif -typedef struct { - FATFS *fs; /* Object ID 1, volume (NULL:blank entry) */ - DWORD clu; /* Object ID 2, containing directory (0:root) */ - DWORD ofs; /* Object ID 3, offset in the directory */ - WORD ctr; /* Object open counter, 0:none, 0x01..0xFF:read mode open count, 0x100:write mode */ -} FILESEM; -#endif - - - - - -/*-------------------------------------------------------------------------- - - Module Private Work Area - ----------------------------------------------------------------------------*/ - -/* Remark: Variables defined here without initial value shall be guaranteed -/ zero/null at start-up. If not, the linker option or start-up routine is -/ not compliance with C standard. */ - -#if _VOLUMES < 1 || _VOLUMES > 10 -#error Wrong _VOLUMES setting -#endif -static FATFS *FatFs[_VOLUMES]; /* Pointer to the file system objects (logical drives) */ -static WORD Fsid; /* File system mount ID */ - -#if _FS_RPATH != 0 && _VOLUMES >= 2 -static BYTE CurrVol; /* Current drive */ -#endif - -#if _FS_LOCK != 0 -static FILESEM Files[_FS_LOCK]; /* Open object lock semaphores */ -#endif - -#if _USE_LFN == 0 /* Non-LFN configuration */ -#define DEF_NAMBUF -#define INIT_NAMBUF(fs) -#define FREE_NAMBUF() - -#else /* LFN configuration */ -#if _MAX_LFN < 12 || _MAX_LFN > 255 -#error Wrong _MAX_LFN value -#endif -#define MAXDIRB(nc) ((nc + 44U) / 15 * SZDIRE) - -#if _USE_LFN == 1 /* LFN enabled with static working buffer */ -#if _FS_EXFAT -static BYTE DirBuf[MAXDIRB(_MAX_LFN)]; /* Directory entry block scratchpad buffer */ -#endif -static WCHAR LfnBuf[_MAX_LFN + 1]; /* LFN enabled with static working buffer */ -#define DEF_NAMBUF -#define INIT_NAMBUF(fs) -#define FREE_NAMBUF() - -#elif _USE_LFN == 2 /* LFN enabled with dynamic working buffer on the stack */ -#if _FS_EXFAT -#define DEF_NAMBUF WCHAR lbuf[_MAX_LFN+1]; BYTE dbuf[MAXDIRB(_MAX_LFN)]; -#define INIT_NAMBUF(fs) { (fs)->lfnbuf = lbuf; (fs)->dirbuf = dbuf; } -#define FREE_NAMBUF() -#else -#define DEF_NAMBUF WCHAR lbuf[_MAX_LFN+1]; -#define INIT_NAMBUF(fs) { (fs)->lfnbuf = lbuf; } -#define FREE_NAMBUF() -#endif - -#elif _USE_LFN == 3 /* LFN enabled with dynamic working buffer on the heap */ -#if _FS_EXFAT -#define DEF_NAMBUF WCHAR *lfn; -#define INIT_NAMBUF(fs) { lfn = ff_memalloc((_MAX_LFN+1)*2 + MAXDIRB(_MAX_LFN)); if (!lfn) LEAVE_FF(fs, FR_NOT_ENOUGH_CORE); (fs)->lfnbuf = lfn; (fs)->dirbuf = (BYTE*)(lfn+_MAX_LFN+1); } -#define FREE_NAMBUF() ff_memfree(lfn) -#else -#define DEF_NAMBUF WCHAR *lfn; -#define INIT_NAMBUF(fs) { lfn = ff_memalloc((_MAX_LFN+1)*2); if (!lfn) LEAVE_FF(fs, FR_NOT_ENOUGH_CORE); (fs)->lfnbuf = lfn; } -#define FREE_NAMBUF() ff_memfree(lfn) -#endif - -#else -#error Wrong _USE_LFN setting - -#endif -#endif /* else _USE_LFN == 0 */ - -#ifdef _EXCVT -static const BYTE ExCvt[] = _EXCVT; /* Upper conversion table for SBCS extended characters */ -#endif - - - - - - -/*-------------------------------------------------------------------------- - - Module Private Functions - ----------------------------------------------------------------------------*/ - - -/*-----------------------------------------------------------------------*/ -/* Load/Store multi-byte word in the FAT structure */ -/*-----------------------------------------------------------------------*/ - -static -WORD ld_word (const BYTE* ptr) /* Load a 2-byte little-endian word */ -{ - WORD rv; - - rv = ptr[1]; - rv = rv << 8 | ptr[0]; - return rv; -} - -static -DWORD ld_dword (const BYTE* ptr) /* Load a 4-byte little-endian word */ -{ - DWORD rv; - - rv = ptr[3]; - rv = rv << 8 | ptr[2]; - rv = rv << 8 | ptr[1]; - rv = rv << 8 | ptr[0]; - return rv; -} - -#if _FS_EXFAT -static -QWORD ld_qword (const BYTE* ptr) /* Load an 8-byte little-endian word */ -{ - QWORD rv; - - rv = ptr[7]; - rv = rv << 8 | ptr[6]; - rv = rv << 8 | ptr[5]; - rv = rv << 8 | ptr[4]; - rv = rv << 8 | ptr[3]; - rv = rv << 8 | ptr[2]; - rv = rv << 8 | ptr[1]; - rv = rv << 8 | ptr[0]; - return rv; -} -#endif - -#if !_FS_READONLY -static -void st_word (BYTE* ptr, WORD val) /* Store a 2-byte word in little-endian */ -{ - *ptr++ = (BYTE)val; val >>= 8; - *ptr++ = (BYTE)val; -} - -static -void st_dword (BYTE* ptr, DWORD val) /* Store a 4-byte word in little-endian */ -{ - *ptr++ = (BYTE)val; val >>= 8; - *ptr++ = (BYTE)val; val >>= 8; - *ptr++ = (BYTE)val; val >>= 8; - *ptr++ = (BYTE)val; -} - -#if _FS_EXFAT -static -void st_qword (BYTE* ptr, QWORD val) /* Store an 8-byte word in little-endian */ -{ - *ptr++ = (BYTE)val; val >>= 8; - *ptr++ = (BYTE)val; val >>= 8; - *ptr++ = (BYTE)val; val >>= 8; - *ptr++ = (BYTE)val; val >>= 8; - *ptr++ = (BYTE)val; val >>= 8; - *ptr++ = (BYTE)val; val >>= 8; - *ptr++ = (BYTE)val; val >>= 8; - *ptr++ = (BYTE)val; -} -#endif -#endif /* !_FS_READONLY */ - - - -/*-----------------------------------------------------------------------*/ -/* String functions */ -/*-----------------------------------------------------------------------*/ - -/* Copy memory to memory */ -static -void mem_cpy (void* dst, const void* src, UINT cnt) { - BYTE *d = (BYTE*)dst; - const BYTE *s = (const BYTE*)src; - - if (cnt) { - do { - *d++ = *s++; - } while (--cnt); - } -} - -/* Fill memory block */ -static -void mem_set (void* dst, int val, UINT cnt) { - BYTE *d = (BYTE*)dst; - - do { - *d++ = (BYTE)val; - } while (--cnt); -} - -/* Compare memory block */ -static -int mem_cmp (const void* dst, const void* src, UINT cnt) { /* ZR:same, NZ:different */ - const BYTE *d = (const BYTE *)dst, *s = (const BYTE *)src; - int r = 0; - - do { - r = *d++ - *s++; - } while (--cnt && r == 0); - - return r; -} - -/* Check if chr is contained in the string */ -static -int chk_chr (const char* str, int chr) { /* NZ:contained, ZR:not contained */ - while (*str && *str != chr) str++; - return *str; -} - - - - -#if _FS_REENTRANT -/*-----------------------------------------------------------------------*/ -/* Request/Release grant to access the volume */ -/*-----------------------------------------------------------------------*/ -static -int lock_fs ( - FATFS* fs /* File system object */ -) -{ - return (fs && ff_req_grant(fs->sobj)) ? 1 : 0; -} - - -static -void unlock_fs ( - FATFS* fs, /* File system object */ - FRESULT res /* Result code to be returned */ -) -{ - if (fs && res != FR_NOT_ENABLED && res != FR_INVALID_DRIVE && res != FR_TIMEOUT) { - ff_rel_grant(fs->sobj); - } -} - -#endif - - - -#if _FS_LOCK != 0 -/*-----------------------------------------------------------------------*/ -/* File lock control functions */ -/*-----------------------------------------------------------------------*/ - -static -FRESULT chk_lock ( /* Check if the file can be accessed */ - DIR* dp, /* Directory object pointing the file to be checked */ - int acc /* Desired access type (0:Read, 1:Write, 2:Delete/Rename) */ -) -{ - UINT i, be; - - /* Search file semaphore table */ - for (i = be = 0; i < _FS_LOCK; i++) { - if (Files[i].fs) { /* Existing entry */ - if (Files[i].fs == dp->obj.fs && /* Check if the object matched with an open object */ - Files[i].clu == dp->obj.sclust && - Files[i].ofs == dp->dptr) break; - } else { /* Blank entry */ - be = 1; - } - } - if (i == _FS_LOCK) { /* The object is not opened */ - return (be || acc == 2) ? FR_OK : FR_TOO_MANY_OPEN_FILES; /* Is there a blank entry for new object? */ - } - - /* The object has been opened. Reject any open against writing file and all write mode open */ - return (acc || Files[i].ctr == 0x100) ? FR_LOCKED : FR_OK; -} - - -static -int enq_lock (void) /* Check if an entry is available for a new object */ -{ - UINT i; - - for (i = 0; i < _FS_LOCK && Files[i].fs; i++) ; - return (i == _FS_LOCK) ? 0 : 1; -} - - -static -UINT inc_lock ( /* Increment object open counter and returns its index (0:Internal error) */ - DIR* dp, /* Directory object pointing the file to register or increment */ - int acc /* Desired access (0:Read, 1:Write, 2:Delete/Rename) */ -) -{ - UINT i; - - - for (i = 0; i < _FS_LOCK; i++) { /* Find the object */ - if (Files[i].fs == dp->obj.fs && - Files[i].clu == dp->obj.sclust && - Files[i].ofs == dp->dptr) break; - } - - if (i == _FS_LOCK) { /* Not opened. Register it as new. */ - for (i = 0; i < _FS_LOCK && Files[i].fs; i++) ; - if (i == _FS_LOCK) return 0; /* No free entry to register (int err) */ - Files[i].fs = dp->obj.fs; - Files[i].clu = dp->obj.sclust; - Files[i].ofs = dp->dptr; - Files[i].ctr = 0; - } - - if (acc && Files[i].ctr) return 0; /* Access violation (int err) */ - - Files[i].ctr = acc ? 0x100 : Files[i].ctr + 1; /* Set semaphore value */ - - return i + 1; -} - - -static -FRESULT dec_lock ( /* Decrement object open counter */ - UINT i /* Semaphore index (1..) */ -) -{ - WORD n; - FRESULT res; - - - if (--i < _FS_LOCK) { /* Shift index number origin from 0 */ - n = Files[i].ctr; - if (n == 0x100) n = 0; /* If write mode open, delete the entry */ - if (n > 0) n--; /* Decrement read mode open count */ - Files[i].ctr = n; - if (n == 0) Files[i].fs = 0; /* Delete the entry if open count gets zero */ - res = FR_OK; - } else { - res = FR_INT_ERR; /* Invalid index nunber */ - } - return res; -} - - -static -void clear_lock ( /* Clear lock entries of the volume */ - FATFS *fs -) -{ - UINT i; - - for (i = 0; i < _FS_LOCK; i++) { - if (Files[i].fs == fs) Files[i].fs = 0; - } -} - -#endif /* _FS_LOCK != 0 */ - - - -/*-----------------------------------------------------------------------*/ -/* Move/Flush disk access window in the file system object */ -/*-----------------------------------------------------------------------*/ -#if !_FS_READONLY -static -FRESULT sync_window ( /* Returns FR_OK or FR_DISK_ERROR */ - FATFS* fs /* File system object */ -) -{ - DWORD wsect; - UINT nf; - FRESULT res = FR_OK; - - - if (fs->wflag) { /* Write back the sector if it is dirty */ - wsect = fs->winsect; /* Current sector number */ - if (disk_write(fs->drv, fs->win, wsect, 1) != RES_OK) { - res = FR_DISK_ERR; - } else { - fs->wflag = 0; - if (wsect - fs->fatbase < fs->fsize) { /* Is it in the FAT area? */ - for (nf = fs->n_fats; nf >= 2; nf--) { /* Reflect the change to all FAT copies */ - wsect += fs->fsize; - disk_write(fs->drv, fs->win, wsect, 1); - } - } - } - } - return res; -} -#endif - - -static -FRESULT move_window ( /* Returns FR_OK or FR_DISK_ERROR */ - FATFS* fs, /* File system object */ - DWORD sector /* Sector number to make appearance in the fs->win[] */ -) -{ - FRESULT res = FR_OK; - - - if (sector != fs->winsect) { /* Window offset changed? */ -#if !_FS_READONLY - res = sync_window(fs); /* Write-back changes */ -#endif - if (res == FR_OK) { /* Fill sector window with new data */ - if (disk_read(fs->drv, fs->win, sector, 1) != RES_OK) { - sector = 0xFFFFFFFF; /* Invalidate window if data is not reliable */ - res = FR_DISK_ERR; - } - fs->winsect = sector; - } - } - return res; -} - - - - -#if !_FS_READONLY -/*-----------------------------------------------------------------------*/ -/* Synchronize file system and strage device */ -/*-----------------------------------------------------------------------*/ - -static -FRESULT sync_fs ( /* FR_OK:succeeded, !=0:error */ - FATFS* fs /* File system object */ -) -{ - FRESULT res; - - - res = sync_window(fs); - if (res == FR_OK) { - /* Update FSInfo sector if needed */ - if (fs->fs_type == FS_FAT32 && fs->fsi_flag == 1) { - /* Create FSInfo structure */ - mem_set(fs->win, 0, SS(fs)); - st_word(fs->win + BS_55AA, 0xAA55); - st_dword(fs->win + FSI_LeadSig, 0x41615252); - st_dword(fs->win + FSI_StrucSig, 0x61417272); - st_dword(fs->win + FSI_Free_Count, fs->free_clst); - st_dword(fs->win + FSI_Nxt_Free, fs->last_clst); - /* Write it into the FSInfo sector */ - fs->winsect = fs->volbase + 1; - disk_write(fs->drv, fs->win, fs->winsect, 1); - fs->fsi_flag = 0; - } - /* Make sure that no pending write process in the physical drive */ - if (disk_ioctl(fs->drv, CTRL_SYNC, 0) != RES_OK) res = FR_DISK_ERR; - } - - return res; -} - -#endif - - - -/*-----------------------------------------------------------------------*/ -/* Get sector# from cluster# */ -/*-----------------------------------------------------------------------*/ - -static -DWORD clust2sect ( /* !=0:Sector number, 0:Failed (invalid cluster#) */ - FATFS* fs, /* File system object */ - DWORD clst /* Cluster# to be converted */ -) -{ - clst -= 2; - if (clst >= fs->n_fatent - 2) return 0; /* Invalid cluster# */ - return clst * fs->csize + fs->database; -} - - - - -/*-----------------------------------------------------------------------*/ -/* FAT access - Read value of a FAT entry */ -/*-----------------------------------------------------------------------*/ - -static -DWORD get_fat ( /* 0xFFFFFFFF:Disk error, 1:Internal error, 2..0x7FFFFFFF:Cluster status */ - _FDID* obj, /* Corresponding object */ - DWORD clst /* Cluster number to get the value */ -) -{ - UINT wc, bc; - DWORD val; - FATFS *fs = obj->fs; - - - if (clst < 2 || clst >= fs->n_fatent) { /* Check if in valid range */ - val = 1; /* Internal error */ - - } else { - val = 0xFFFFFFFF; /* Default value falls on disk error */ - - switch (fs->fs_type) { - case FS_FAT12 : - bc = (UINT)clst; bc += bc / 2; - if (move_window(fs, fs->fatbase + (bc / SS(fs))) != FR_OK) break; - wc = fs->win[bc++ % SS(fs)]; - if (move_window(fs, fs->fatbase + (bc / SS(fs))) != FR_OK) break; - wc |= fs->win[bc % SS(fs)] << 8; - val = (clst & 1) ? (wc >> 4) : (wc & 0xFFF); - break; - - case FS_FAT16 : - if (move_window(fs, fs->fatbase + (clst / (SS(fs) / 2))) != FR_OK) break; - val = ld_word(fs->win + clst * 2 % SS(fs)); - break; - - case FS_FAT32 : - if (move_window(fs, fs->fatbase + (clst / (SS(fs) / 4))) != FR_OK) break; - val = ld_dword(fs->win + clst * 4 % SS(fs)) & 0x0FFFFFFF; - break; -#if _FS_EXFAT - case FS_EXFAT : - if (obj->objsize) { - DWORD cofs = clst - obj->sclust; /* Offset from start cluster */ - DWORD clen = (DWORD)((obj->objsize - 1) / SS(fs)) / fs->csize; /* Number of clusters - 1 */ - - if (obj->stat == 2) { /* Is there no valid chain on the FAT? */ - if (cofs <= clen) { - val = (cofs == clen) ? 0x7FFFFFFF : clst + 1; /* Generate the value */ - break; - } - } - if (obj->stat == 3 && cofs < obj->n_cont) { /* Is it in the 1st fragment? */ - val = clst + 1; /* Generate the value */ - break; - } - if (obj->stat != 2) { /* Get value from FAT if FAT chain is valid */ - if (obj->n_frag != 0) { /* Is it on the growing edge? */ - val = 0x7FFFFFFF; /* Generate EOC */ - } else { - if (move_window(fs, fs->fatbase + (clst / (SS(fs) / 4))) != FR_OK) break; - val = ld_dword(fs->win + clst * 4 % SS(fs)) & 0x7FFFFFFF; - } - break; - } - } - /* go to default */ -#endif - default: - val = 1; /* Internal error */ - } - } - - return val; -} - - - - -#if !_FS_READONLY -/*-----------------------------------------------------------------------*/ -/* FAT access - Change value of a FAT entry */ -/*-----------------------------------------------------------------------*/ - -static -FRESULT put_fat ( /* FR_OK(0):succeeded, !=0:error */ - FATFS* fs, /* Corresponding file system object */ - DWORD clst, /* FAT index number (cluster number) to be changed */ - DWORD val /* New value to be set to the entry */ -) -{ - UINT bc; - BYTE *p; - FRESULT res = FR_INT_ERR; - - if (clst >= 2 && clst < fs->n_fatent) { /* Check if in valid range */ - switch (fs->fs_type) { - case FS_FAT12 : /* Bitfield items */ - bc = (UINT)clst; bc += bc / 2; - res = move_window(fs, fs->fatbase + (bc / SS(fs))); - if (res != FR_OK) break; - p = fs->win + bc++ % SS(fs); - *p = (clst & 1) ? ((*p & 0x0F) | ((BYTE)val << 4)) : (BYTE)val; - fs->wflag = 1; - res = move_window(fs, fs->fatbase + (bc / SS(fs))); - if (res != FR_OK) break; - p = fs->win + bc % SS(fs); - *p = (clst & 1) ? (BYTE)(val >> 4) : ((*p & 0xF0) | ((BYTE)(val >> 8) & 0x0F)); - fs->wflag = 1; - break; - - case FS_FAT16 : /* WORD aligned items */ - res = move_window(fs, fs->fatbase + (clst / (SS(fs) / 2))); - if (res != FR_OK) break; - st_word(fs->win + clst * 2 % SS(fs), (WORD)val); - fs->wflag = 1; - break; - - case FS_FAT32 : /* DWORD aligned items */ -#if _FS_EXFAT - case FS_EXFAT : -#endif - res = move_window(fs, fs->fatbase + (clst / (SS(fs) / 4))); - if (res != FR_OK) break; - if (!_FS_EXFAT || fs->fs_type != FS_EXFAT) { - val = (val & 0x0FFFFFFF) | (ld_dword(fs->win + clst * 4 % SS(fs)) & 0xF0000000); - } - st_dword(fs->win + clst * 4 % SS(fs), val); - fs->wflag = 1; - break; - } - } - return res; -} - -#endif /* !_FS_READONLY */ - - - - -#if _FS_EXFAT && !_FS_READONLY -/*-----------------------------------------------------------------------*/ -/* exFAT: Accessing FAT and Allocation Bitmap */ -/*-----------------------------------------------------------------------*/ - -/*--------------------------------------*/ -/* Find a contiguous free cluster block */ -/*--------------------------------------*/ - -static -DWORD find_bitmap ( /* 0:Not found, 2..:Cluster block found, 0xFFFFFFFF:Disk error */ - FATFS* fs, /* File system object */ - DWORD clst, /* Cluster number to scan from */ - DWORD ncl /* Number of contiguous clusters to find (1..) */ -) -{ - BYTE bm, bv; - UINT i; - DWORD val, scl, ctr; - - - clst -= 2; /* The first bit in the bitmap corresponds to cluster #2 */ - if (clst >= fs->n_fatent - 2) clst = 0; - scl = val = clst; ctr = 0; - for (;;) { - if (move_window(fs, fs->database + val / 8 / SS(fs)) != FR_OK) return 0xFFFFFFFF; /* (assuming bitmap is located top of the cluster heap) */ - i = val / 8 % SS(fs); bm = 1 << (val % 8); - do { - do { - bv = fs->win[i] & bm; bm <<= 1; /* Get bit value */ - if (++val >= fs->n_fatent - 2) { /* Next cluster (with wrap-around) */ - val = 0; bm = 0; i = SS(fs); - } - if (!bv) { /* Is it a free cluster? */ - if (++ctr == ncl) return scl + 2; /* Check if run length is sufficient for required */ - } else { - scl = val; ctr = 0; /* Encountered a cluster in-use, restart to scan */ - } - if (val == clst) return 0; /* All cluster scanned? */ - } while (bm); - bm = 1; - } while (++i < SS(fs)); - } -} - - -/*----------------------------------------*/ -/* Set/Clear a block of allocation bitmap */ -/*----------------------------------------*/ - -static -FRESULT change_bitmap ( - FATFS* fs, /* File system object */ - DWORD clst, /* Cluster number to change from */ - DWORD ncl, /* Number of clusters to be changed */ - int bv /* bit value to be set (0 or 1) */ -) -{ - BYTE bm; - UINT i; - DWORD sect; - - clst -= 2; /* The first bit corresponds to cluster #2 */ - sect = fs->database + clst / 8 / SS(fs); /* Sector address (assuming bitmap is located top of the cluster heap) */ - i = clst / 8 % SS(fs); /* Byte offset in the sector */ - bm = 1 << (clst % 8); /* Bit mask in the byte */ - for (;;) { - if (move_window(fs, sect++) != FR_OK) return FR_DISK_ERR; - do { - do { - if (bv == (int)((fs->win[i] & bm) != 0)) return FR_INT_ERR; /* Is the bit expected value? */ - fs->win[i] ^= bm; /* Flip the bit */ - fs->wflag = 1; - if (--ncl == 0) return FR_OK; /* All bits processed? */ - } while (bm <<= 1); /* Next bit */ - bm = 1; - } while (++i < SS(fs)); /* Next byte */ - i = 0; - } -} - - -/*---------------------------------------------*/ -/* Fill the first fragment of the FAT chain */ -/*---------------------------------------------*/ - -static -FRESULT fill_first_frag ( - _FDID* obj /* Pointer to the corresponding object */ -) -{ - FRESULT res; - DWORD cl, n; - - if (obj->stat == 3) { /* Has the object been changed 'fragmented'? */ - for (cl = obj->sclust, n = obj->n_cont; n; cl++, n--) { /* Create cluster chain on the FAT */ - res = put_fat(obj->fs, cl, cl + 1); - if (res != FR_OK) return res; - } - obj->stat = 0; /* Change status 'FAT chain is valid' */ - } - return FR_OK; -} - - -/*---------------------------------------------*/ -/* Fill the last fragment of the FAT chain */ -/*---------------------------------------------*/ - -static -FRESULT fill_last_frag ( - _FDID* obj, /* Pointer to the corresponding object */ - DWORD lcl, /* Last cluster of the fragment */ - DWORD term /* Value to set the last FAT entry */ -) -{ - FRESULT res; - - while (obj->n_frag > 0) { /* Create the last chain on the FAT */ - res = put_fat(obj->fs, lcl - obj->n_frag + 1, (obj->n_frag > 1) ? lcl - obj->n_frag + 2 : term); - if (res != FR_OK) return res; - obj->n_frag--; - } - return FR_OK; -} - -#endif /* _FS_EXFAT && !_FS_READONLY */ - - - -#if !_FS_READONLY -/*-----------------------------------------------------------------------*/ -/* FAT handling - Remove a cluster chain */ -/*-----------------------------------------------------------------------*/ -static -FRESULT remove_chain ( /* FR_OK(0):succeeded, !=0:error */ - _FDID* obj, /* Corresponding object */ - DWORD clst, /* Cluster to remove a chain from */ - DWORD pclst /* Previous cluster of clst (0:an entire chain) */ -) -{ - FRESULT res = FR_OK; - DWORD nxt; - FATFS *fs = obj->fs; -#if _FS_EXFAT || _USE_TRIM - DWORD scl = clst, ecl = clst; -#endif -#if _USE_TRIM - DWORD rt[2]; -#endif - - if (clst < 2 || clst >= fs->n_fatent) return FR_INT_ERR; /* Check if in valid range */ - - /* Mark the previous cluster 'EOC' on the FAT if it exists */ - if (pclst && (!_FS_EXFAT || fs->fs_type != FS_EXFAT || obj->stat != 2)) { - res = put_fat(fs, pclst, 0xFFFFFFFF); - if (res != FR_OK) return res; - } - - /* Remove the chain */ - do { - nxt = get_fat(obj, clst); /* Get cluster status */ - if (nxt == 0) break; /* Empty cluster? */ - if (nxt == 1) return FR_INT_ERR; /* Internal error? */ - if (nxt == 0xFFFFFFFF) return FR_DISK_ERR; /* Disk error? */ - if (!_FS_EXFAT || fs->fs_type != FS_EXFAT) { - res = put_fat(fs, clst, 0); /* Mark the cluster 'free' on the FAT */ - if (res != FR_OK) return res; - } - if (fs->free_clst < fs->n_fatent - 2) { /* Update FSINFO */ - fs->free_clst++; - fs->fsi_flag |= 1; - } -#if _FS_EXFAT || _USE_TRIM - if (ecl + 1 == nxt) { /* Is next cluster contiguous? */ - ecl = nxt; - } else { /* End of contiguous cluster block */ -#if _FS_EXFAT - if (fs->fs_type == FS_EXFAT) { - res = change_bitmap(fs, scl, ecl - scl + 1, 0); /* Mark the cluster block 'free' on the bitmap */ - if (res != FR_OK) return res; - } -#endif -#if _USE_TRIM - rt[0] = clust2sect(fs, scl); /* Start sector */ - rt[1] = clust2sect(fs, ecl) + fs->csize - 1; /* End sector */ - disk_ioctl(fs->drv, CTRL_TRIM, rt); /* Inform device the block can be erased */ -#endif - scl = ecl = nxt; - } -#endif - clst = nxt; /* Next cluster */ - } while (clst < fs->n_fatent); /* Repeat while not the last link */ - -#if _FS_EXFAT - if (fs->fs_type == FS_EXFAT) { - if (pclst == 0) { /* Does the object have no chain? */ - obj->stat = 0; /* Change the object status 'initial' */ - } else { - if (obj->stat == 3 && pclst >= obj->sclust && pclst <= obj->sclust + obj->n_cont) { /* Did the chain get contiguous? */ - obj->stat = 2; /* Change the object status 'contiguous' */ - } - } - } -#endif - return FR_OK; -} - - - - -/*-----------------------------------------------------------------------*/ -/* FAT handling - Stretch a chain or Create a new chain */ -/*-----------------------------------------------------------------------*/ -static -DWORD create_chain ( /* 0:No free cluster, 1:Internal error, 0xFFFFFFFF:Disk error, >=2:New cluster# */ - _FDID* obj, /* Corresponding object */ - DWORD clst /* Cluster# to stretch, 0:Create a new chain */ -) -{ - DWORD cs, ncl, scl; - FRESULT res; - FATFS *fs = obj->fs; - - - if (clst == 0) { /* Create a new chain */ - scl = fs->last_clst; /* Get suggested cluster to start from */ - if (scl == 0 || scl >= fs->n_fatent) scl = 1; - } - else { /* Stretch current chain */ - cs = get_fat(obj, clst); /* Check the cluster status */ - if (cs < 2) return 1; /* Invalid FAT value */ - if (cs == 0xFFFFFFFF) return cs; /* A disk error occurred */ - if (cs < fs->n_fatent) return cs; /* It is already followed by next cluster */ - scl = clst; - } - -#if _FS_EXFAT - if (fs->fs_type == FS_EXFAT) { /* On the exFAT volume */ - ncl = find_bitmap(fs, scl, 1); /* Find a free cluster */ - if (ncl == 0 || ncl == 0xFFFFFFFF) return ncl; /* No free cluster or hard error? */ - res = change_bitmap(fs, ncl, 1, 1); /* Mark the cluster 'in use' */ - if (res == FR_INT_ERR) return 1; - if (res == FR_DISK_ERR) return 0xFFFFFFFF; - if (clst == 0) { /* Is it a new chain? */ - obj->stat = 2; /* Set status 'contiguous' */ - } else { /* It is a stretched chain */ - if (obj->stat == 2 && ncl != scl + 1) { /* Is the chain got fragmented? */ - obj->n_cont = scl - obj->sclust; /* Set size of the contiguous part */ - obj->stat = 3; /* Change status 'just fragmented' */ - } - } - if (obj->stat != 2) { /* Is the file non-contiguous? */ - if (ncl == clst + 1) { /* Is the cluster next to previous one? */ - obj->n_frag = obj->n_frag ? obj->n_frag + 1 : 2; /* Increment size of last framgent */ - } else { /* New fragment */ - if (obj->n_frag == 0) obj->n_frag = 1; - res = fill_last_frag(obj, clst, ncl); /* Fill last fragment on the FAT and link it to new one */ - if (res == FR_OK) obj->n_frag = 1; - } - } - } else -#endif - { /* On the FAT12/16/32 volume */ - ncl = scl; /* Start cluster */ - for (;;) { - ncl++; /* Next cluster */ - if (ncl >= fs->n_fatent) { /* Check wrap-around */ - ncl = 2; - if (ncl > scl) return 0; /* No free cluster */ - } - cs = get_fat(obj, ncl); /* Get the cluster status */ - if (cs == 0) break; /* Found a free cluster */ - if (cs == 1 || cs == 0xFFFFFFFF) return cs; /* An error occurred */ - if (ncl == scl) return 0; /* No free cluster */ - } - res = put_fat(fs, ncl, 0xFFFFFFFF); /* Mark the new cluster 'EOC' */ - if (res == FR_OK && clst != 0) { - res = put_fat(fs, clst, ncl); /* Link it from the previous one if needed */ - } - } - - if (res == FR_OK) { /* Update FSINFO if function succeeded. */ - fs->last_clst = ncl; - if (fs->free_clst <= fs->n_fatent - 2) fs->free_clst--; - fs->fsi_flag |= 1; - } else { - ncl = (res == FR_DISK_ERR) ? 0xFFFFFFFF : 1; /* Failed. Generate error status */ - } - - return ncl; /* Return new cluster number or error status */ -} - -#endif /* !_FS_READONLY */ - - - - -#if _USE_FASTSEEK -/*-----------------------------------------------------------------------*/ -/* FAT handling - Convert offset into cluster with link map table */ -/*-----------------------------------------------------------------------*/ - -static -DWORD clmt_clust ( /* <2:Error, >=2:Cluster number */ - FIL* fp, /* Pointer to the file object */ - FSIZE_t ofs /* File offset to be converted to cluster# */ -) -{ - DWORD cl, ncl, *tbl; - FATFS *fs = fp->obj.fs; - - - tbl = fp->cltbl + 1; /* Top of CLMT */ - cl = (DWORD)(ofs / SS(fs) / fs->csize); /* Cluster order from top of the file */ - for (;;) { - ncl = *tbl++; /* Number of cluters in the fragment */ - if (ncl == 0) return 0; /* End of table? (error) */ - if (cl < ncl) break; /* In this fragment? */ - cl -= ncl; tbl++; /* Next fragment */ - } - return cl + *tbl; /* Return the cluster number */ -} - -#endif /* _USE_FASTSEEK */ - - - - -/*-----------------------------------------------------------------------*/ -/* Directory handling - Set directory index */ -/*-----------------------------------------------------------------------*/ - -static -FRESULT dir_sdi ( /* FR_OK(0):succeeded, !=0:error */ - DIR* dp, /* Pointer to directory object */ - DWORD ofs /* Offset of directory table */ -) -{ - DWORD csz, clst; - FATFS *fs = dp->obj.fs; - - - if (ofs >= (DWORD)((_FS_EXFAT && fs->fs_type == FS_EXFAT) ? MAX_DIR_EX : MAX_DIR) || ofs % SZDIRE) { /* Check range of offset and alignment */ - return FR_INT_ERR; - } - dp->dptr = ofs; /* Set current offset */ - clst = dp->obj.sclust; /* Table start cluster (0:root) */ - if (clst == 0 && fs->fs_type >= FS_FAT32) { /* Replace cluster# 0 with root cluster# */ - clst = fs->dirbase; - if (_FS_EXFAT) dp->obj.stat = 0; /* exFAT: Root dir has an FAT chain */ - } - - if (clst == 0) { /* Static table (root-directory in FAT12/16) */ - if (ofs / SZDIRE >= fs->n_rootdir) return FR_INT_ERR; /* Is index out of range? */ - dp->sect = fs->dirbase; - - } else { /* Dynamic table (sub-directory or root-directory in FAT32+) */ - csz = (DWORD)fs->csize * SS(fs); /* Bytes per cluster */ - while (ofs >= csz) { /* Follow cluster chain */ - clst = get_fat(&dp->obj, clst); /* Get next cluster */ - if (clst == 0xFFFFFFFF) return FR_DISK_ERR; /* Disk error */ - if (clst < 2 || clst >= fs->n_fatent) return FR_INT_ERR; /* Reached to end of table or internal error */ - ofs -= csz; - } - dp->sect = clust2sect(fs, clst); - } - dp->clust = clst; /* Current cluster# */ - if (!dp->sect) return FR_INT_ERR; - dp->sect += ofs / SS(fs); /* Sector# of the directory entry */ - dp->dir = fs->win + (ofs % SS(fs)); /* Pointer to the entry in the win[] */ - - return FR_OK; -} - - - - -/*-----------------------------------------------------------------------*/ -/* Directory handling - Move directory table index next */ -/*-----------------------------------------------------------------------*/ - -static -FRESULT dir_next ( /* FR_OK(0):succeeded, FR_NO_FILE:End of table, FR_DENIED:Could not stretch */ - DIR* dp, /* Pointer to the directory object */ - int stretch /* 0: Do not stretch table, 1: Stretch table if needed */ -) -{ - DWORD ofs, clst; - FATFS *fs = dp->obj.fs; -#if !_FS_READONLY - UINT n; -#endif - - ofs = dp->dptr + SZDIRE; /* Next entry */ - if (!dp->sect || ofs >= (DWORD)((_FS_EXFAT && fs->fs_type == FS_EXFAT) ? MAX_DIR_EX : MAX_DIR)) return FR_NO_FILE; /* Report EOT when offset has reached max value */ - - if (ofs % SS(fs) == 0) { /* Sector changed? */ - dp->sect++; /* Next sector */ - - if (!dp->clust) { /* Static table */ - if (ofs / SZDIRE >= fs->n_rootdir) { /* Report EOT if it reached end of static table */ - dp->sect = 0; return FR_NO_FILE; - } - } - else { /* Dynamic table */ - if ((ofs / SS(fs) & (fs->csize - 1)) == 0) { /* Cluster changed? */ - clst = get_fat(&dp->obj, dp->clust); /* Get next cluster */ - if (clst <= 1) return FR_INT_ERR; /* Internal error */ - if (clst == 0xFFFFFFFF) return FR_DISK_ERR; /* Disk error */ - if (clst >= fs->n_fatent) { /* Reached end of dynamic table */ -#if !_FS_READONLY - if (!stretch) { /* If no stretch, report EOT */ - dp->sect = 0; return FR_NO_FILE; - } - clst = create_chain(&dp->obj, dp->clust); /* Allocate a cluster */ - if (clst == 0) return FR_DENIED; /* No free cluster */ - if (clst == 1) return FR_INT_ERR; /* Internal error */ - if (clst == 0xFFFFFFFF) return FR_DISK_ERR; /* Disk error */ - /* Clean-up the stretched table */ - if (_FS_EXFAT) dp->obj.stat |= 4; /* The directory needs to be updated */ - if (sync_window(fs) != FR_OK) return FR_DISK_ERR; /* Flush disk access window */ - mem_set(fs->win, 0, SS(fs)); /* Clear window buffer */ - for (n = 0, fs->winsect = clust2sect(fs, clst); n < fs->csize; n++, fs->winsect++) { /* Fill the new cluster with 0 */ - fs->wflag = 1; - if (sync_window(fs) != FR_OK) return FR_DISK_ERR; - } - fs->winsect -= n; /* Restore window offset */ -#else - if (!stretch) dp->sect = 0; /* (this line is to suppress compiler warning) */ - dp->sect = 0; return FR_NO_FILE; /* Report EOT */ -#endif - } - dp->clust = clst; /* Initialize data for new cluster */ - dp->sect = clust2sect(fs, clst); - } - } - } - dp->dptr = ofs; /* Current entry */ - dp->dir = fs->win + ofs % SS(fs); /* Pointer to the entry in the win[] */ - - return FR_OK; -} - - - - -#if !_FS_READONLY -/*-----------------------------------------------------------------------*/ -/* Directory handling - Reserve a block of directory entries */ -/*-----------------------------------------------------------------------*/ - -static -FRESULT dir_alloc ( /* FR_OK(0):succeeded, !=0:error */ - DIR* dp, /* Pointer to the directory object */ - UINT nent /* Number of contiguous entries to allocate */ -) -{ - FRESULT res; - UINT n; - FATFS *fs = dp->obj.fs; - - - res = dir_sdi(dp, 0); - if (res == FR_OK) { - n = 0; - do { - res = move_window(fs, dp->sect); - if (res != FR_OK) break; -#if _FS_EXFAT - if ((fs->fs_type == FS_EXFAT) ? (int)((dp->dir[XDIR_Type] & 0x80) == 0) : (int)(dp->dir[DIR_Name] == DDEM || dp->dir[DIR_Name] == 0)) { -#else - if (dp->dir[DIR_Name] == DDEM || dp->dir[DIR_Name] == 0) { -#endif - if (++n == nent) break; /* A block of contiguous free entries is found */ - } else { - n = 0; /* Not a blank entry. Restart to search */ - } - res = dir_next(dp, 1); - } while (res == FR_OK); /* Next entry with table stretch enabled */ - } - - if (res == FR_NO_FILE) res = FR_DENIED; /* No directory entry to allocate */ - return res; -} - -#endif /* !_FS_READONLY */ - - - - -/*-----------------------------------------------------------------------*/ -/* FAT: Directory handling - Load/Store start cluster number */ -/*-----------------------------------------------------------------------*/ - -static -DWORD ld_clust ( /* Returns the top cluster value of the SFN entry */ - FATFS* fs, /* Pointer to the fs object */ - const BYTE* dir /* Pointer to the key entry */ -) -{ - DWORD cl; - - cl = ld_word(dir + DIR_FstClusLO); - if (fs->fs_type == FS_FAT32) { - cl |= (DWORD)ld_word(dir + DIR_FstClusHI) << 16; - } - - return cl; -} - - -#if !_FS_READONLY -static -void st_clust ( - FATFS* fs, /* Pointer to the fs object */ - BYTE* dir, /* Pointer to the key entry */ - DWORD cl /* Value to be set */ -) -{ - st_word(dir + DIR_FstClusLO, (WORD)cl); - if (fs->fs_type == FS_FAT32) { - st_word(dir + DIR_FstClusHI, (WORD)(cl >> 16)); - } -} -#endif - - - -#if _USE_LFN != 0 -/*------------------------------------------------------------------------*/ -/* FAT-LFN: LFN handling */ -/*------------------------------------------------------------------------*/ -static -const BYTE LfnOfs[] = {1,3,5,7,9,14,16,18,20,22,24,28,30}; /* Offset of LFN characters in the directory entry */ - - -/*--------------------------------------------------------*/ -/* FAT-LFN: Compare a part of file name with an LFN entry */ -/*--------------------------------------------------------*/ -static -int cmp_lfn ( /* 1:matched, 0:not matched */ - const WCHAR* lfnbuf, /* Pointer to the LFN working buffer to be compared */ - BYTE* dir /* Pointer to the directory entry containing the part of LFN */ -) -{ - UINT i, s; - WCHAR wc, uc; - - - if (ld_word(dir + LDIR_FstClusLO) != 0) return 0; /* Check LDIR_FstClusLO */ - - i = ((dir[LDIR_Ord] & 0x3F) - 1) * 13; /* Offset in the LFN buffer */ - - for (wc = 1, s = 0; s < 13; s++) { /* Process all characters in the entry */ - uc = ld_word(dir + LfnOfs[s]); /* Pick an LFN character */ - if (wc) { - if (i >= _MAX_LFN || ff_wtoupper(uc) != ff_wtoupper(lfnbuf[i++])) { /* Compare it */ - return 0; /* Not matched */ - } - wc = uc; - } else { - if (uc != 0xFFFF) return 0; /* Check filler */ - } - } - - if ((dir[LDIR_Ord] & LLEF) && wc && lfnbuf[i]) return 0; /* Last segment matched but different length */ - - return 1; /* The part of LFN matched */ -} - - -#if _FS_MINIMIZE <= 1 || _FS_RPATH >= 2 || _USE_LABEL || _FS_EXFAT -/*-----------------------------------------------------*/ -/* FAT-LFN: Pick a part of file name from an LFN entry */ -/*-----------------------------------------------------*/ -static -int pick_lfn ( /* 1:succeeded, 0:buffer overflow or invalid LFN entry */ - WCHAR* lfnbuf, /* Pointer to the LFN working buffer */ - BYTE* dir /* Pointer to the LFN entry */ -) -{ - UINT i, s; - WCHAR wc, uc; - - - if (ld_word(dir + LDIR_FstClusLO) != 0) return 0; /* Check LDIR_FstClusLO is 0 */ - - i = ((dir[LDIR_Ord] & ~LLEF) - 1) * 13; /* Offset in the LFN buffer */ - - for (wc = 1, s = 0; s < 13; s++) { /* Process all characters in the entry */ - uc = ld_word(dir + LfnOfs[s]); /* Pick an LFN character */ - if (wc) { - if (i >= _MAX_LFN) return 0; /* Buffer overflow? */ - lfnbuf[i++] = wc = uc; /* Store it */ - } else { - if (uc != 0xFFFF) return 0; /* Check filler */ - } - } - - if (dir[LDIR_Ord] & LLEF) { /* Put terminator if it is the last LFN part */ - if (i >= _MAX_LFN) return 0; /* Buffer overflow? */ - lfnbuf[i] = 0; - } - - return 1; /* The part of LFN is valid */ -} -#endif - - -#if !_FS_READONLY -/*-----------------------------------------*/ -/* FAT-LFN: Create an entry of LFN entries */ -/*-----------------------------------------*/ -static -void put_lfn ( - const WCHAR* lfn, /* Pointer to the LFN */ - BYTE* dir, /* Pointer to the LFN entry to be created */ - BYTE ord, /* LFN order (1-20) */ - BYTE sum /* Checksum of the corresponding SFN */ -) -{ - UINT i, s; - WCHAR wc; - - - dir[LDIR_Chksum] = sum; /* Set checksum */ - dir[LDIR_Attr] = AM_LFN; /* Set attribute. LFN entry */ - dir[LDIR_Type] = 0; - st_word(dir + LDIR_FstClusLO, 0); - - i = (ord - 1) * 13; /* Get offset in the LFN working buffer */ - s = wc = 0; - do { - if (wc != 0xFFFF) wc = lfn[i++]; /* Get an effective character */ - st_word(dir + LfnOfs[s], wc); /* Put it */ - if (wc == 0) wc = 0xFFFF; /* Padding characters for left locations */ - } while (++s < 13); - if (wc == 0xFFFF || !lfn[i]) ord |= LLEF; /* Last LFN part is the start of LFN sequence */ - dir[LDIR_Ord] = ord; /* Set the LFN order */ -} - -#endif /* !_FS_READONLY */ -#endif /* _USE_LFN != 0 */ - - - -#if _USE_LFN != 0 && !_FS_READONLY -/*-----------------------------------------------------------------------*/ -/* FAT-LFN: Create a Numbered SFN */ -/*-----------------------------------------------------------------------*/ - -static -void gen_numname ( - BYTE* dst, /* Pointer to the buffer to store numbered SFN */ - const BYTE* src, /* Pointer to SFN */ - const WCHAR* lfn, /* Pointer to LFN */ - UINT seq /* Sequence number */ -) -{ - BYTE ns[8], c; - UINT i, j; - WCHAR wc; - DWORD sr; - - - mem_cpy(dst, src, 11); - - if (seq > 5) { /* In case of many collisions, generate a hash number instead of sequential number */ - sr = seq; - while (*lfn) { /* Create a CRC */ - wc = *lfn++; - for (i = 0; i < 16; i++) { - sr = (sr << 1) + (wc & 1); - wc >>= 1; - if (sr & 0x10000) sr ^= 0x11021; - } - } - seq = (UINT)sr; - } - - /* itoa (hexdecimal) */ - i = 7; - do { - c = (BYTE)((seq % 16) + '0'); - if (c > '9') c += 7; - ns[i--] = c; - seq /= 16; - } while (seq); - ns[i] = '~'; - - /* Append the number */ - for (j = 0; j < i && dst[j] != ' '; j++) { - if (IsDBCS1(dst[j])) { - if (j == i - 1) break; - j++; - } - } - do { - dst[j++] = (i < 8) ? ns[i++] : ' '; - } while (j < 8); -} -#endif /* _USE_LFN != 0 && !_FS_READONLY */ - - - -#if _USE_LFN != 0 -/*-----------------------------------------------------------------------*/ -/* FAT-LFN: Calculate checksum of an SFN entry */ -/*-----------------------------------------------------------------------*/ - -static -BYTE sum_sfn ( - const BYTE* dir /* Pointer to the SFN entry */ -) -{ - BYTE sum = 0; - UINT n = 11; - - do { - sum = (sum >> 1) + (sum << 7) + *dir++; - } while (--n); - return sum; -} - -#endif /* _USE_LFN != 0 */ - - - -#if _FS_EXFAT -/*-----------------------------------------------------------------------*/ -/* exFAT: Checksum */ -/*-----------------------------------------------------------------------*/ - -static -WORD xdir_sum ( /* Get checksum of the directoly block */ - const BYTE* dir /* Directory entry block to be calculated */ -) -{ - UINT i, szblk; - WORD sum; - - - szblk = (dir[XDIR_NumSec] + 1) * SZDIRE; - for (i = sum = 0; i < szblk; i++) { - if (i == XDIR_SetSum) { /* Skip sum field */ - i++; - } else { - sum = ((sum & 1) ? 0x8000 : 0) + (sum >> 1) + dir[i]; - } - } - return sum; -} - - - -static -WORD xname_sum ( /* Get check sum (to be used as hash) of the name */ - const WCHAR* name /* File name to be calculated */ -) -{ - WCHAR chr; - WORD sum = 0; - - - while ((chr = *name++) != 0) { - chr = ff_wtoupper(chr); /* File name needs to be ignored case */ - sum = ((sum & 1) ? 0x8000 : 0) + (sum >> 1) + (chr & 0xFF); - sum = ((sum & 1) ? 0x8000 : 0) + (sum >> 1) + (chr >> 8); - } - return sum; -} - - -#if !_FS_READONLY && _USE_MKFS -static -DWORD xsum32 ( - BYTE dat, /* Data to be sumed */ - DWORD sum /* Previous value */ -) -{ - sum = ((sum & 1) ? 0x80000000 : 0) + (sum >> 1) + dat; - return sum; -} -#endif - - -#if _FS_MINIMIZE <= 1 || _FS_RPATH >= 2 -/*------------------------------------------------------*/ -/* exFAT: Get object information from a directory block */ -/*------------------------------------------------------*/ - -static -void get_xdir_info ( - BYTE* dirb, /* Pointer to the direcotry entry block 85+C0+C1s */ - FILINFO* fno /* Buffer to store the extracted file information */ -) -{ - UINT di, si; - WCHAR w; -#if !_LFN_UNICODE - UINT nc; -#endif - - /* Get file name */ - di = 0; -#if _LFN_UNICODE - for (si = SZDIRE * 2; di < dirb[XDIR_NumName]; si += 2, di++) { - if ((si % SZDIRE) == 0) si += 2; /* Skip entry type field */ - w = ld_word(dirb + si); /* Get a character */ - if (di >= _MAX_LFN) { di = 0; break; } /* Buffer overflow --> inaccessible object name */ - fno->fname[di] = w; /* Store it */ - } -#else - for (si = SZDIRE * 2, nc = 0; nc < dirb[XDIR_NumName]; si += 2, nc++) { - if ((si % SZDIRE) == 0) si += 2; /* Skip entry type field */ - w = ff_convert(ld_word(dirb + si), 0); /* Get a character and Unicode -> OEM */ - if (_DF1S && w >= 0x100) { /* Is it a double byte char? (always false at SBCS cfg) */ - fno->fname[di++] = (char)(w >> 8); /* Put 1st byte of the DBC */ - } - if (w == 0 || di >= _MAX_LFN) { di = 0; break; } /* Invalid char or buffer overflow --> inaccessible object name */ - fno->fname[di++] = (char)w; - } -#endif - if (di == 0) fno->fname[di++] = '?'; /* Inaccessible object name? */ - fno->fname[di] = 0; /* Terminate file name */ - - fno->altname[0] = 0; /* No SFN */ - fno->fattrib = dirb[XDIR_Attr]; /* Attribute */ - fno->fsize = (fno->fattrib & AM_DIR) ? 0 : ld_qword(dirb + XDIR_FileSize); /* Size */ - fno->ftime = ld_word(dirb + XDIR_ModTime + 0); /* Time */ - fno->fdate = ld_word(dirb + XDIR_ModTime + 2); /* Date */ -} - -#endif /* _FS_MINIMIZE <= 1 || _FS_RPATH >= 2 */ - - -/*-----------------------------------*/ -/* exFAT: Get a directry entry block */ -/*-----------------------------------*/ - -static -FRESULT load_xdir ( /* FR_INT_ERR: invalid entry block */ - DIR* dp /* Pointer to the reading direcotry object pointing the 85 entry */ -) -{ - FRESULT res; - UINT i, sz_ent; - BYTE* dirb = dp->obj.fs->dirbuf; /* Pointer to the on-memory direcotry entry block 85+C0+C1s */ - - - /* Load 85 entry */ - res = move_window(dp->obj.fs, dp->sect); - if (res != FR_OK) return res; - if (dp->dir[XDIR_Type] != 0x85) return FR_INT_ERR; - mem_cpy(dirb + 0, dp->dir, SZDIRE); - sz_ent = (dirb[XDIR_NumSec] + 1) * SZDIRE; - if (sz_ent < 3 * SZDIRE || sz_ent > 19 * SZDIRE) return FR_INT_ERR; - - /* Load C0 entry */ - res = dir_next(dp, 0); - if (res != FR_OK) return res; - res = move_window(dp->obj.fs, dp->sect); - if (res != FR_OK) return res; - if (dp->dir[XDIR_Type] != 0xC0) return FR_INT_ERR; - mem_cpy(dirb + SZDIRE, dp->dir, SZDIRE); - if (MAXDIRB(dirb[XDIR_NumName]) > sz_ent) return FR_INT_ERR; - - /* Load C1 entries */ - i = SZDIRE * 2; /* C1 offset */ - do { - res = dir_next(dp, 0); - if (res != FR_OK) return res; - res = move_window(dp->obj.fs, dp->sect); - if (res != FR_OK) return res; - if (dp->dir[XDIR_Type] != 0xC1) return FR_INT_ERR; - if (i < MAXDIRB(_MAX_LFN)) mem_cpy(dirb + i, dp->dir, SZDIRE); - } while ((i += SZDIRE) < sz_ent); - - /* Sanity check (do it when accessible object name) */ - if (i <= MAXDIRB(_MAX_LFN)) { - if (xdir_sum(dirb) != ld_word(dirb + XDIR_SetSum)) return FR_INT_ERR; - } - return FR_OK; -} - - -#if !_FS_READONLY || _FS_RPATH != 0 -/*------------------------------------------------*/ -/* exFAT: Load the object's directory entry block */ -/*------------------------------------------------*/ -static -FRESULT load_obj_dir ( - DIR* dp, /* Blank directory object to be used to access containing direcotry */ - const _FDID* obj /* Object with its containing directory information */ -) -{ - FRESULT res; - - /* Open object containing directory */ - dp->obj.fs = obj->fs; - dp->obj.sclust = obj->c_scl; - dp->obj.stat = (BYTE)obj->c_size; - dp->obj.objsize = obj->c_size & 0xFFFFFF00; - dp->blk_ofs = obj->c_ofs; - - res = dir_sdi(dp, dp->blk_ofs); /* Goto object's entry block */ - if (res == FR_OK) { - res = load_xdir(dp); /* Load the object's entry block */ - } - return res; -} -#endif - - -#if !_FS_READONLY -/*-----------------------------------------------*/ -/* exFAT: Store the directory block to the media */ -/*-----------------------------------------------*/ -static -FRESULT store_xdir ( - DIR* dp /* Pointer to the direcotry object */ -) -{ - FRESULT res; - UINT nent; - BYTE* dirb = dp->obj.fs->dirbuf; /* Pointer to the direcotry entry block 85+C0+C1s */ - - /* Create set sum */ - st_word(dirb + XDIR_SetSum, xdir_sum(dirb)); - nent = dirb[XDIR_NumSec] + 1; - - /* Store the set of directory to the volume */ - res = dir_sdi(dp, dp->blk_ofs); - while (res == FR_OK) { - res = move_window(dp->obj.fs, dp->sect); - if (res != FR_OK) break; - mem_cpy(dp->dir, dirb, SZDIRE); - dp->obj.fs->wflag = 1; - if (--nent == 0) break; - dirb += SZDIRE; - res = dir_next(dp, 0); - } - return (res == FR_OK || res == FR_DISK_ERR) ? res : FR_INT_ERR; -} - - - -/*-------------------------------------------*/ -/* exFAT: Create a new directory enrty block */ -/*-------------------------------------------*/ - -static -void create_xdir ( - BYTE* dirb, /* Pointer to the direcotry entry block buffer */ - const WCHAR* lfn /* Pointer to the nul terminated file name */ -) -{ - UINT i; - BYTE nb, nc; - WCHAR chr; - - - /* Create 85+C0 entry */ - mem_set(dirb, 0, 2 * SZDIRE); - dirb[XDIR_Type] = 0x85; - dirb[XDIR_Type + SZDIRE] = 0xC0; - - /* Create C1 entries */ - nc = 0; nb = 1; chr = 1; i = SZDIRE * 2; - do { - dirb[i++] = 0xC1; dirb[i++] = 0; /* Entry type C1 */ - do { /* Fill name field */ - if (chr && (chr = lfn[nc]) != 0) nc++; /* Get a character if exist */ - st_word(dirb + i, chr); /* Store it */ - } while ((i += 2) % SZDIRE != 0); - nb++; - } while (lfn[nc]); /* Fill next entry if any char follows */ - - dirb[XDIR_NumName] = nc; /* Set name length */ - dirb[XDIR_NumSec] = nb; /* Set block length */ - st_word(dirb + XDIR_NameHash, xname_sum(lfn)); /* Set name hash */ -} - -#endif /* !_FS_READONLY */ -#endif /* _FS_EXFAT */ - - - -#if _FS_MINIMIZE <= 1 || _FS_RPATH >= 2 || _USE_LABEL || _FS_EXFAT -/*-----------------------------------------------------------------------*/ -/* Read an object from the directory */ -/*-----------------------------------------------------------------------*/ - -static -FRESULT dir_read ( - DIR* dp, /* Pointer to the directory object */ - int vol /* Filtered by 0:file/directory or 1:volume label */ -) -{ - FRESULT res = FR_NO_FILE; - FATFS *fs = dp->obj.fs; - BYTE a, c; -#if _USE_LFN != 0 - BYTE ord = 0xFF, sum = 0xFF; -#endif - - while (dp->sect) { - res = move_window(fs, dp->sect); - if (res != FR_OK) break; - c = dp->dir[DIR_Name]; /* Test for the entry type */ - if (c == 0) { - res = FR_NO_FILE; break; /* Reached to end of the directory */ - } -#if _FS_EXFAT - if (fs->fs_type == FS_EXFAT) { /* On the exFAT volume */ - if (_USE_LABEL && vol) { - if (c == 0x83) break; /* Volume label entry? */ - } else { - if (c == 0x85) { /* Start of the file entry block? */ - dp->blk_ofs = dp->dptr; /* Get location of the block */ - res = load_xdir(dp); /* Load the entry block */ - if (res == FR_OK) { - dp->obj.attr = fs->dirbuf[XDIR_Attr] & AM_MASK; /* Get attribute */ - } - break; - } - } - } else -#endif - { /* On the FAT12/16/32 volume */ - dp->obj.attr = a = dp->dir[DIR_Attr] & AM_MASK; /* Get attribute */ -#if _USE_LFN != 0 /* LFN configuration */ - if (c == DDEM || c == '.' || (int)((a & ~AM_ARC) == AM_VOL) != vol) { /* An entry without valid data */ - ord = 0xFF; - } else { - if (a == AM_LFN) { /* An LFN entry is found */ - if (c & LLEF) { /* Is it start of an LFN sequence? */ - sum = dp->dir[LDIR_Chksum]; - c &= (BYTE)~LLEF; ord = c; - dp->blk_ofs = dp->dptr; - } - /* Check LFN validity and capture it */ - ord = (c == ord && sum == dp->dir[LDIR_Chksum] && pick_lfn(fs->lfnbuf, dp->dir)) ? ord - 1 : 0xFF; - } else { /* An SFN entry is found */ - if (ord || sum != sum_sfn(dp->dir)) { /* Is there a valid LFN? */ - dp->blk_ofs = 0xFFFFFFFF; /* It has no LFN. */ - } - break; - } - } -#else /* Non LFN configuration */ - if (c != DDEM && c != '.' && a != AM_LFN && (int)((a & ~AM_ARC) == AM_VOL) == vol) { /* Is it a valid entry? */ - break; - } -#endif - } - res = dir_next(dp, 0); /* Next entry */ - if (res != FR_OK) break; - } - - if (res != FR_OK) dp->sect = 0; /* Terminate the read operation on error or EOT */ - return res; -} - -#endif /* _FS_MINIMIZE <= 1 || _USE_LABEL || _FS_RPATH >= 2 */ - - - -/*-----------------------------------------------------------------------*/ -/* Directory handling - Find an object in the directory */ -/*-----------------------------------------------------------------------*/ - -static -FRESULT dir_find ( /* FR_OK(0):succeeded, !=0:error */ - DIR* dp /* Pointer to the directory object with the file name */ -) -{ - FRESULT res; - FATFS *fs = dp->obj.fs; - BYTE c; -#if _USE_LFN != 0 - BYTE a, ord, sum; -#endif - - res = dir_sdi(dp, 0); /* Rewind directory object */ - if (res != FR_OK) return res; -#if _FS_EXFAT - if (fs->fs_type == FS_EXFAT) { /* On the exFAT volume */ - BYTE nc; - UINT di, ni; - WORD hash = xname_sum(fs->lfnbuf); /* Hash value of the name to find */ - - while ((res = dir_read(dp, 0)) == FR_OK) { /* Read an item */ -#if _MAX_LFN < 255 - if (fs->dirbuf[XDIR_NumName] > _MAX_LFN) continue; /* Skip comparison if inaccessible object name */ -#endif - if (ld_word(fs->dirbuf + XDIR_NameHash) != hash) continue; /* Skip comparison if hash mismatched */ - for (nc = fs->dirbuf[XDIR_NumName], di = SZDIRE * 2, ni = 0; nc; nc--, di += 2, ni++) { /* Compare the name */ - if ((di % SZDIRE) == 0) di += 2; - if (ff_wtoupper(ld_word(fs->dirbuf + di)) != ff_wtoupper(fs->lfnbuf[ni])) break; - } - if (nc == 0 && !fs->lfnbuf[ni]) break; /* Name matched? */ - } - return res; - } -#endif - /* On the FAT12/16/32 volume */ -#if _USE_LFN != 0 - ord = sum = 0xFF; dp->blk_ofs = 0xFFFFFFFF; /* Reset LFN sequence */ -#endif - do { - res = move_window(fs, dp->sect); - if (res != FR_OK) break; - c = dp->dir[DIR_Name]; - if (c == 0) { res = FR_NO_FILE; break; } /* Reached to end of table */ -#if _USE_LFN != 0 /* LFN configuration */ - dp->obj.attr = a = dp->dir[DIR_Attr] & AM_MASK; - if (c == DDEM || ((a & AM_VOL) && a != AM_LFN)) { /* An entry without valid data */ - ord = 0xFF; dp->blk_ofs = 0xFFFFFFFF; /* Reset LFN sequence */ - } else { - if (a == AM_LFN) { /* An LFN entry is found */ - if (!(dp->fn[NSFLAG] & NS_NOLFN)) { - if (c & LLEF) { /* Is it start of LFN sequence? */ - sum = dp->dir[LDIR_Chksum]; - c &= (BYTE)~LLEF; ord = c; /* LFN start order */ - dp->blk_ofs = dp->dptr; /* Start offset of LFN */ - } - /* Check validity of the LFN entry and compare it with given name */ - ord = (c == ord && sum == dp->dir[LDIR_Chksum] && cmp_lfn(fs->lfnbuf, dp->dir)) ? ord - 1 : 0xFF; - } - } else { /* An SFN entry is found */ - if (!ord && sum == sum_sfn(dp->dir)) break; /* LFN matched? */ - if (!(dp->fn[NSFLAG] & NS_LOSS) && !mem_cmp(dp->dir, dp->fn, 11)) break; /* SFN matched? */ - ord = 0xFF; dp->blk_ofs = 0xFFFFFFFF; /* Reset LFN sequence */ - } - } -#else /* Non LFN configuration */ - dp->obj.attr = dp->dir[DIR_Attr] & AM_MASK; - if (!(dp->dir[DIR_Attr] & AM_VOL) && !mem_cmp(dp->dir, dp->fn, 11)) break; /* Is it a valid entry? */ -#endif - res = dir_next(dp, 0); /* Next entry */ - } while (res == FR_OK); - - return res; -} - - - - -#if !_FS_READONLY -/*-----------------------------------------------------------------------*/ -/* Register an object to the directory */ -/*-----------------------------------------------------------------------*/ - -static -FRESULT dir_register ( /* FR_OK:succeeded, FR_DENIED:no free entry or too many SFN collision, FR_DISK_ERR:disk error */ - DIR* dp /* Target directory with object name to be created */ -) -{ - FRESULT res; - FATFS *fs = dp->obj.fs; -#if _USE_LFN != 0 /* LFN configuration */ - UINT n, nlen, nent; - BYTE sn[12], sum; - - - if (dp->fn[NSFLAG] & (NS_DOT | NS_NONAME)) return FR_INVALID_NAME; /* Check name validity */ - for (nlen = 0; fs->lfnbuf[nlen]; nlen++) ; /* Get lfn length */ - -#if _FS_EXFAT - if (fs->fs_type == FS_EXFAT) { /* On the exFAT volume */ - DIR dj; - - nent = (nlen + 14) / 15 + 2; /* Number of entries to allocate (85+C0+C1s) */ - res = dir_alloc(dp, nent); /* Allocate entries */ - if (res != FR_OK) return res; - dp->blk_ofs = dp->dptr - SZDIRE * (nent - 1); /* Set the allocated entry block offset */ - - if (dp->obj.sclust != 0 && (dp->obj.stat & 4)) { /* Has the sub-directory been stretched? */ - dp->obj.objsize += (DWORD)fs->csize * SS(fs); /* Increase the directory size by cluster size */ - res = fill_first_frag(&dp->obj); /* Fill first fragment on the FAT if needed */ - if (res != FR_OK) return res; - res = fill_last_frag(&dp->obj, dp->clust, 0xFFFFFFFF); /* Fill last fragment on the FAT if needed */ - if (res != FR_OK) return res; - res = load_obj_dir(&dj, &dp->obj); /* Load the object status */ - if (res != FR_OK) return res; - st_qword(fs->dirbuf + XDIR_FileSize, dp->obj.objsize); /* Update the allocation status */ - st_qword(fs->dirbuf + XDIR_ValidFileSize, dp->obj.objsize); - fs->dirbuf[XDIR_GenFlags] = dp->obj.stat | 1; - res = store_xdir(&dj); /* Store the object status */ - if (res != FR_OK) return res; - } - - create_xdir(fs->dirbuf, fs->lfnbuf); /* Create on-memory directory block to be written later */ - return FR_OK; - } -#endif - /* On the FAT12/16/32 volume */ - mem_cpy(sn, dp->fn, 12); - if (sn[NSFLAG] & NS_LOSS) { /* When LFN is out of 8.3 format, generate a numbered name */ - dp->fn[NSFLAG] = NS_NOLFN; /* Find only SFN */ - for (n = 1; n < 100; n++) { - gen_numname(dp->fn, sn, fs->lfnbuf, n); /* Generate a numbered name */ - res = dir_find(dp); /* Check if the name collides with existing SFN */ - if (res != FR_OK) break; - } - if (n == 100) return FR_DENIED; /* Abort if too many collisions */ - if (res != FR_NO_FILE) return res; /* Abort if the result is other than 'not collided' */ - dp->fn[NSFLAG] = sn[NSFLAG]; - } - - /* Create an SFN with/without LFNs. */ - nent = (sn[NSFLAG] & NS_LFN) ? (nlen + 12) / 13 + 1 : 1; /* Number of entries to allocate */ - res = dir_alloc(dp, nent); /* Allocate entries */ - if (res == FR_OK && --nent) { /* Set LFN entry if needed */ - res = dir_sdi(dp, dp->dptr - nent * SZDIRE); - if (res == FR_OK) { - sum = sum_sfn(dp->fn); /* Checksum value of the SFN tied to the LFN */ - do { /* Store LFN entries in bottom first */ - res = move_window(fs, dp->sect); - if (res != FR_OK) break; - put_lfn(fs->lfnbuf, dp->dir, (BYTE)nent, sum); - fs->wflag = 1; - res = dir_next(dp, 0); /* Next entry */ - } while (res == FR_OK && --nent); - } - } - -#else /* Non LFN configuration */ - res = dir_alloc(dp, 1); /* Allocate an entry for SFN */ - -#endif - - /* Set SFN entry */ - if (res == FR_OK) { - res = move_window(fs, dp->sect); - if (res == FR_OK) { - mem_set(dp->dir, 0, SZDIRE); /* Clean the entry */ - mem_cpy(dp->dir + DIR_Name, dp->fn, 11); /* Put SFN */ -#if _USE_LFN != 0 - dp->dir[DIR_NTres] = dp->fn[NSFLAG] & (NS_BODY | NS_EXT); /* Put NT flag */ -#endif - fs->wflag = 1; - } - } - - return res; -} - -#endif /* !_FS_READONLY */ - - - -#if !_FS_READONLY && _FS_MINIMIZE == 0 -/*-----------------------------------------------------------------------*/ -/* Remove an object from the directory */ -/*-----------------------------------------------------------------------*/ - -static -FRESULT dir_remove ( /* FR_OK:Succeeded, FR_DISK_ERR:A disk error */ - DIR* dp /* Directory object pointing the entry to be removed */ -) -{ - FRESULT res; - FATFS *fs = dp->obj.fs; -#if _USE_LFN != 0 /* LFN configuration */ - DWORD last = dp->dptr; - - res = (dp->blk_ofs == 0xFFFFFFFF) ? FR_OK : dir_sdi(dp, dp->blk_ofs); /* Goto top of the entry block if LFN is exist */ - if (res == FR_OK) { - do { - res = move_window(fs, dp->sect); - if (res != FR_OK) break; - /* Mark an entry 'deleted' */ - if (_FS_EXFAT && fs->fs_type == FS_EXFAT) { /* On the exFAT volume */ - dp->dir[XDIR_Type] &= 0x7F; - } else { /* On the FAT12/16/32 volume */ - dp->dir[DIR_Name] = DDEM; - } - fs->wflag = 1; - if (dp->dptr >= last) break; /* If reached last entry then all entries of the object has been deleted. */ - res = dir_next(dp, 0); /* Next entry */ - } while (res == FR_OK); - if (res == FR_NO_FILE) res = FR_INT_ERR; - } -#else /* Non LFN configuration */ - - res = move_window(fs, dp->sect); - if (res == FR_OK) { - dp->dir[DIR_Name] = DDEM; - fs->wflag = 1; - } -#endif - - return res; -} - -#endif /* !_FS_READONLY && _FS_MINIMIZE == 0 */ - - - -#if _FS_MINIMIZE <= 1 || _FS_RPATH >= 2 -/*-----------------------------------------------------------------------*/ -/* Get file information from directory entry */ -/*-----------------------------------------------------------------------*/ - -static -void get_fileinfo ( /* No return code */ - DIR* dp, /* Pointer to the directory object */ - FILINFO* fno /* Pointer to the file information to be filled */ -) -{ - UINT i, j; - TCHAR c; - DWORD tm; -#if _USE_LFN != 0 - WCHAR w, lfv; - FATFS *fs = dp->obj.fs; -#endif - - - fno->fname[0] = 0; /* Invaidate file info */ - if (!dp->sect) return; /* Exit if read pointer has reached end of directory */ - -#if _USE_LFN != 0 /* LFN configuration */ -#if _FS_EXFAT - if (fs->fs_type == FS_EXFAT) { /* On the exFAT volume */ - get_xdir_info(fs->dirbuf, fno); - return; - } else -#endif - { /* On the FAT12/16/32 volume */ - if (dp->blk_ofs != 0xFFFFFFFF) { /* Get LFN if available */ - i = j = 0; - while ((w = fs->lfnbuf[j++]) != 0) { /* Get an LFN character */ -#if !_LFN_UNICODE - w = ff_convert(w, 0); /* Unicode -> OEM */ - if (w == 0) { i = 0; break; } /* No LFN if it could not be converted */ - if (_DF1S && w >= 0x100) { /* Put 1st byte if it is a DBC (always false at SBCS cfg) */ - fno->fname[i++] = (char)(w >> 8); - } -#endif - if (i >= _MAX_LFN) { i = 0; break; } /* No LFN if buffer overflow */ - fno->fname[i++] = (TCHAR)w; - } - fno->fname[i] = 0; /* Terminate the LFN */ - } - } - - i = j = 0; - lfv = fno->fname[i]; /* LFN is exist if non-zero */ - while (i < 11) { /* Copy name body and extension */ - c = (TCHAR)dp->dir[i++]; - if (c == ' ') continue; /* Skip padding spaces */ - if (c == RDDEM) c = (TCHAR)DDEM; /* Restore replaced DDEM character */ - if (i == 9) { /* Insert a . if extension is exist */ - if (!lfv) fno->fname[j] = '.'; - fno->altname[j++] = '.'; - } -#if _LFN_UNICODE - if (IsDBCS1(c) && i != 8 && i != 11 && IsDBCS2(dp->dir[i])) { - c = c << 8 | dp->dir[i++]; - } - c = ff_convert(c, 1); /* OEM -> Unicode */ - if (!c) c = '?'; -#endif - fno->altname[j] = c; - if (!lfv) { - if (IsUpper(c) && (dp->dir[DIR_NTres] & ((i >= 9) ? NS_EXT : NS_BODY))) { - c += 0x20; /* To lower */ - } - fno->fname[j] = c; - } - j++; - } - if (!lfv) { - fno->fname[j] = 0; - if (!dp->dir[DIR_NTres]) j = 0; /* Altname is no longer needed if neither LFN nor case info is exist. */ - } - fno->altname[j] = 0; /* Terminate the SFN */ - -#else /* Non-LFN configuration */ - i = j = 0; - while (i < 11) { /* Copy name body and extension */ - c = (TCHAR)dp->dir[i++]; - if (c == ' ') continue; /* Skip padding spaces */ - if (c == RDDEM) c = (TCHAR)DDEM; /* Restore replaced DDEM character */ - if (i == 9) fno->fname[j++] = '.'; /* Insert a . if extension is exist */ - fno->fname[j++] = c; - } - fno->fname[j] = 0; -#endif - - fno->fattrib = dp->dir[DIR_Attr]; /* Attribute */ - fno->fsize = ld_dword(dp->dir + DIR_FileSize); /* Size */ - tm = ld_dword(dp->dir + DIR_ModTime); /* Timestamp */ - fno->ftime = (WORD)tm; fno->fdate = (WORD)(tm >> 16); -} - -#endif /* _FS_MINIMIZE <= 1 || _FS_RPATH >= 2 */ - - - -#if _USE_FIND && _FS_MINIMIZE <= 1 -/*-----------------------------------------------------------------------*/ -/* Pattern matching */ -/*-----------------------------------------------------------------------*/ - -static -WCHAR get_achar ( /* Get a character and advances ptr 1 or 2 */ - const TCHAR** ptr /* Pointer to pointer to the SBCS/DBCS/Unicode string */ -) -{ -#if !_LFN_UNICODE - WCHAR chr; - - chr = (BYTE)*(*ptr)++; /* Get a byte */ - if (IsLower(chr)) chr -= 0x20; /* To upper ASCII char */ -#ifdef _EXCVT - if (chr >= 0x80) chr = ExCvt[chr - 0x80]; /* To upper SBCS extended char */ -#else - if (IsDBCS1(chr) && IsDBCS2(**ptr)) { /* Get DBC 2nd byte if needed */ - chr = chr << 8 | (BYTE)*(*ptr)++; - } -#endif - return chr; -#else - return ff_wtoupper(*(*ptr)++); /* Get a word and to upper */ -#endif -} - - -static -int pattern_matching ( /* 0:not matched, 1:matched */ - const TCHAR* pat, /* Matching pattern */ - const TCHAR* nam, /* String to be tested */ - int skip, /* Number of pre-skip chars (number of ?s) */ - int inf /* Infinite search (* specified) */ -) -{ - const TCHAR *pp, *np; - WCHAR pc, nc; - int nm, nx; - - - while (skip--) { /* Pre-skip name chars */ - if (!get_achar(&nam)) return 0; /* Branch mismatched if less name chars */ - } - if (!*pat && inf) return 1; /* (short circuit) */ - - do { - pp = pat; np = nam; /* Top of pattern and name to match */ - for (;;) { - if (*pp == '?' || *pp == '*') { /* Wildcard? */ - nm = nx = 0; - do { /* Analyze the wildcard chars */ - if (*pp++ == '?') nm++; else nx = 1; - } while (*pp == '?' || *pp == '*'); - if (pattern_matching(pp, np, nm, nx)) return 1; /* Test new branch (recurs upto number of wildcard blocks in the pattern) */ - nc = *np; break; /* Branch mismatched */ - } - pc = get_achar(&pp); /* Get a pattern char */ - nc = get_achar(&np); /* Get a name char */ - if (pc != nc) break; /* Branch mismatched? */ - if (pc == 0) return 1; /* Branch matched? (matched at end of both strings) */ - } - get_achar(&nam); /* nam++ */ - } while (inf && nc); /* Retry until end of name if infinite search is specified */ - - return 0; -} - -#endif /* _USE_FIND && _FS_MINIMIZE <= 1 */ - - - -/*-----------------------------------------------------------------------*/ -/* Pick a top segment and create the object name in directory form */ -/*-----------------------------------------------------------------------*/ - -static -FRESULT create_name ( /* FR_OK: successful, FR_INVALID_NAME: could not create */ - DIR* dp, /* Pointer to the directory object */ - const TCHAR** path /* Pointer to pointer to the segment in the path string */ -) -{ -#if _USE_LFN != 0 /* LFN configuration */ - BYTE b, cf; - WCHAR w, *lfn; - UINT i, ni, si, di; - const TCHAR *p; - - /* Create LFN in Unicode */ - p = *path; lfn = dp->obj.fs->lfnbuf; si = di = 0; - for (;;) { - w = p[si++]; /* Get a character */ - if (w < ' ') break; /* Break if end of the path name */ - if (w == '/' || w == '\\') { /* Break if a separator is found */ - while (p[si] == '/' || p[si] == '\\') si++; /* Skip duplicated separator if exist */ - break; - } - if (di >= _MAX_LFN) return FR_INVALID_NAME; /* Reject too long name */ -#if !_LFN_UNICODE - w &= 0xFF; - if (IsDBCS1(w)) { /* Check if it is a DBC 1st byte (always false on SBCS cfg) */ - b = (BYTE)p[si++]; /* Get 2nd byte */ - w = (w << 8) + b; /* Create a DBC */ - if (!IsDBCS2(b)) return FR_INVALID_NAME; /* Reject invalid sequence */ - } - w = ff_convert(w, 1); /* Convert ANSI/OEM to Unicode */ - if (!w) return FR_INVALID_NAME; /* Reject invalid code */ -#endif - if (w < 0x80 && chk_chr("\"*:<>\?|\x7F", w)) return FR_INVALID_NAME; /* Reject illegal characters for LFN */ - lfn[di++] = w; /* Store the Unicode character */ - } - *path = &p[si]; /* Return pointer to the next segment */ - cf = (w < ' ') ? NS_LAST : 0; /* Set last segment flag if end of the path */ -#if _FS_RPATH != 0 - if ((di == 1 && lfn[di - 1] == '.') || - (di == 2 && lfn[di - 1] == '.' && lfn[di - 2] == '.')) { /* Is this segment a dot name? */ - lfn[di] = 0; - for (i = 0; i < 11; i++) /* Create dot name for SFN entry */ - dp->fn[i] = (i < di) ? '.' : ' '; - dp->fn[i] = cf | NS_DOT; /* This is a dot entry */ - return FR_OK; - } -#endif - while (di) { /* Snip off trailing spaces and dots if exist */ - w = lfn[di - 1]; - if (w != ' ' && w != '.') break; - di--; - } - lfn[di] = 0; /* LFN is created */ - if (di == 0) return FR_INVALID_NAME; /* Reject nul name */ - - /* Create SFN in directory form */ - mem_set(dp->fn, ' ', 11); - for (si = 0; lfn[si] == ' ' || lfn[si] == '.'; si++) ; /* Strip leading spaces and dots */ - if (si) cf |= NS_LOSS | NS_LFN; - while (di && lfn[di - 1] != '.') di--; /* Find extension (di<=si: no extension) */ - - i = b = 0; ni = 8; - for (;;) { - w = lfn[si++]; /* Get an LFN character */ - if (!w) break; /* Break on end of the LFN */ - if (w == ' ' || (w == '.' && si != di)) { /* Remove spaces and dots */ - cf |= NS_LOSS | NS_LFN; continue; - } - - if (i >= ni || si == di) { /* Extension or end of SFN */ - if (ni == 11) { /* Long extension */ - cf |= NS_LOSS | NS_LFN; break; - } - if (si != di) cf |= NS_LOSS | NS_LFN; /* Out of 8.3 format */ - if (si > di) break; /* No extension */ - si = di; i = 8; ni = 11; /* Enter extension section */ - b <<= 2; continue; - } - - if (w >= 0x80) { /* Non ASCII character */ -#ifdef _EXCVT - w = ff_convert(w, 0); /* Unicode -> OEM code */ - if (w) w = ExCvt[w - 0x80]; /* Convert extended character to upper (SBCS) */ -#else - w = ff_convert(ff_wtoupper(w), 0); /* Upper converted Unicode -> OEM code */ -#endif - cf |= NS_LFN; /* Force create LFN entry */ - } - - if (_DF1S && w >= 0x100) { /* Is this DBC? (always false at SBCS cfg) */ - if (i >= ni - 1) { - cf |= NS_LOSS | NS_LFN; i = ni; continue; - } - dp->fn[i++] = (BYTE)(w >> 8); - } else { /* SBC */ - if (!w || chk_chr("+,;=[]", w)) { /* Replace illegal characters for SFN */ - w = '_'; cf |= NS_LOSS | NS_LFN;/* Lossy conversion */ - } else { - if (IsUpper(w)) { /* ASCII large capital */ - b |= 2; - } else { - if (IsLower(w)) { /* ASCII small capital */ - b |= 1; w -= 0x20; - } - } - } - } - dp->fn[i++] = (BYTE)w; - } - - if (dp->fn[0] == DDEM) dp->fn[0] = RDDEM; /* If the first character collides with DDEM, replace it with RDDEM */ - - if (ni == 8) b <<= 2; - if ((b & 0x0C) == 0x0C || (b & 0x03) == 0x03) cf |= NS_LFN; /* Create LFN entry when there are composite capitals */ - if (!(cf & NS_LFN)) { /* When LFN is in 8.3 format without extended character, NT flags are created */ - if ((b & 0x03) == 0x01) cf |= NS_EXT; /* NT flag (Extension has only small capital) */ - if ((b & 0x0C) == 0x04) cf |= NS_BODY; /* NT flag (Filename has only small capital) */ - } - - dp->fn[NSFLAG] = cf; /* SFN is created */ - - return FR_OK; - - -#else /* _USE_LFN != 0 : Non-LFN configuration */ - BYTE c, d, *sfn; - UINT ni, si, i; - const char *p; - - /* Create file name in directory form */ - p = *path; sfn = dp->fn; - mem_set(sfn, ' ', 11); - si = i = 0; ni = 8; -#if _FS_RPATH != 0 - if (p[si] == '.') { /* Is this a dot entry? */ - for (;;) { - c = (BYTE)p[si++]; - if (c != '.' || si >= 3) break; - sfn[i++] = c; - } - if (c != '/' && c != '\\' && c > ' ') return FR_INVALID_NAME; - *path = p + si; /* Return pointer to the next segment */ - sfn[NSFLAG] = (c <= ' ') ? NS_LAST | NS_DOT : NS_DOT; /* Set last segment flag if end of the path */ - return FR_OK; - } -#endif - for (;;) { - c = (BYTE)p[si++]; - if (c <= ' ') break; /* Break if end of the path name */ - if (c == '/' || c == '\\') { /* Break if a separator is found */ - while (p[si] == '/' || p[si] == '\\') si++; /* Skip duplicated separator if exist */ - break; - } - if (c == '.' || i >= ni) { /* End of body or over size? */ - if (ni == 11 || c != '.') return FR_INVALID_NAME; /* Over size or invalid dot */ - i = 8; ni = 11; /* Goto extension */ - continue; - } - if (c >= 0x80) { /* Extended character? */ -#ifdef _EXCVT - c = ExCvt[c - 0x80]; /* To upper extended characters (SBCS cfg) */ -#else -#if !_DF1S - return FR_INVALID_NAME; /* Reject extended characters (ASCII only cfg) */ -#endif -#endif - } - if (IsDBCS1(c)) { /* Check if it is a DBC 1st byte (always false at SBCS cfg.) */ - d = (BYTE)p[si++]; /* Get 2nd byte */ - if (!IsDBCS2(d) || i >= ni - 1) return FR_INVALID_NAME; /* Reject invalid DBC */ - sfn[i++] = c; - sfn[i++] = d; - } else { /* SBC */ - if (chk_chr("\"*+,:;<=>\?[]|\x7F", c)) return FR_INVALID_NAME; /* Reject illegal chrs for SFN */ - if (IsLower(c)) c -= 0x20; /* To upper */ - sfn[i++] = c; - } - } - *path = p + si; /* Return pointer to the next segment */ - if (i == 0) return FR_INVALID_NAME; /* Reject nul string */ - - if (sfn[0] == DDEM) sfn[0] = RDDEM; /* If the first character collides with DDEM, replace it with RDDEM */ - sfn[NSFLAG] = (c <= ' ') ? NS_LAST : 0; /* Set last segment flag if end of the path */ - - return FR_OK; -#endif /* _USE_LFN != 0 */ -} - - - - -/*-----------------------------------------------------------------------*/ -/* Follow a file path */ -/*-----------------------------------------------------------------------*/ - -static -FRESULT follow_path ( /* FR_OK(0): successful, !=0: error code */ - DIR* dp, /* Directory object to return last directory and found object */ - const TCHAR* path /* Full-path string to find a file or directory */ -) -{ - FRESULT res; - BYTE ns; - _FDID *obj = &dp->obj; - FATFS *fs = obj->fs; - - -#if _FS_RPATH != 0 - if (*path != '/' && *path != '\\') { /* Without heading separator */ - obj->sclust = fs->cdir; /* Start from current directory */ - } else -#endif - { /* With heading separator */ - while (*path == '/' || *path == '\\') path++; /* Strip heading separator */ - obj->sclust = 0; /* Start from root directory */ - } -#if _FS_EXFAT - obj->n_frag = 0; /* Invalidate last fragment counter of the object */ -#if _FS_RPATH != 0 - if (fs->fs_type == FS_EXFAT && obj->sclust) { /* Retrieve the sub-directory status if needed */ - DIR dj; - - obj->c_scl = fs->cdc_scl; - obj->c_size = fs->cdc_size; - obj->c_ofs = fs->cdc_ofs; - res = load_obj_dir(&dj, obj); - if (res != FR_OK) return res; - obj->objsize = ld_dword(fs->dirbuf + XDIR_FileSize); - obj->stat = fs->dirbuf[XDIR_GenFlags] & 2; - } -#endif -#endif - - if ((UINT)*path < ' ') { /* Null path name is the origin directory itself */ - dp->fn[NSFLAG] = NS_NONAME; - res = dir_sdi(dp, 0); - - } else { /* Follow path */ - for (;;) { - res = create_name(dp, &path); /* Get a segment name of the path */ - if (res != FR_OK) break; - res = dir_find(dp); /* Find an object with the segment name */ - ns = dp->fn[NSFLAG]; - if (res != FR_OK) { /* Failed to find the object */ - if (res == FR_NO_FILE) { /* Object is not found */ - if (_FS_RPATH && (ns & NS_DOT)) { /* If dot entry is not exist, stay there */ - if (!(ns & NS_LAST)) continue; /* Continue to follow if not last segment */ - dp->fn[NSFLAG] = NS_NONAME; - res = FR_OK; - } else { /* Could not find the object */ - if (!(ns & NS_LAST)) res = FR_NO_PATH; /* Adjust error code if not last segment */ - } - } - break; - } - if (ns & NS_LAST) break; /* Last segment matched. Function completed. */ - /* Get into the sub-directory */ - if (!(obj->attr & AM_DIR)) { /* It is not a sub-directory and cannot follow */ - res = FR_NO_PATH; break; - } -#if _FS_EXFAT - if (fs->fs_type == FS_EXFAT) { /* Save containing directory information for next dir */ - obj->c_scl = obj->sclust; - obj->c_size = ((DWORD)obj->objsize & 0xFFFFFF00) | obj->stat; - obj->c_ofs = dp->blk_ofs; - obj->sclust = ld_dword(fs->dirbuf + XDIR_FstClus); /* Open next directory */ - obj->stat = fs->dirbuf[XDIR_GenFlags] & 2; - obj->objsize = ld_qword(fs->dirbuf + XDIR_FileSize); - } else -#endif - { - obj->sclust = ld_clust(fs, fs->win + dp->dptr % SS(fs)); /* Open next directory */ - } - } - } - - return res; -} - - - - -/*-----------------------------------------------------------------------*/ -/* Get logical drive number from path name */ -/*-----------------------------------------------------------------------*/ - -static -int get_ldnumber ( /* Returns logical drive number (-1:invalid drive) */ - const TCHAR** path /* Pointer to pointer to the path name */ -) -{ - const TCHAR *tp, *tt; - UINT i; - int vol = -1; -#if _STR_VOLUME_ID /* Find string drive id */ - static const char* const volid[] = {_VOLUME_STRS}; - const char *sp; - char c; - TCHAR tc; -#endif - - - if (*path) { /* If the pointer is not a null */ - for (tt = *path; (UINT)*tt >= (_USE_LFN ? ' ' : '!') && *tt != ':'; tt++) ; /* Find ':' in the path */ - if (*tt == ':') { /* If a ':' is exist in the path name */ - tp = *path; - i = *tp++ - '0'; - if (i < 10 && tp == tt) { /* Is there a numeric drive id? */ - if (i < _VOLUMES) { /* If a drive id is found, get the value and strip it */ - vol = (int)i; - *path = ++tt; - } - } -#if _STR_VOLUME_ID - else { /* No numeric drive number, find string drive id */ - i = 0; tt++; - do { - sp = volid[i]; tp = *path; - do { /* Compare a string drive id with path name */ - c = *sp++; tc = *tp++; - if (IsLower(tc)) tc -= 0x20; - } while (c && (TCHAR)c == tc); - } while ((c || tp != tt) && ++i < _VOLUMES); /* Repeat for each id until pattern match */ - if (i < _VOLUMES) { /* If a drive id is found, get the value and strip it */ - vol = (int)i; - *path = tt; - } - } -#endif - return vol; - } -#if _FS_RPATH != 0 && _VOLUMES >= 2 - vol = CurrVol; /* Current drive */ -#else - vol = 0; /* Drive 0 */ -#endif - } - return vol; -} - - - - -/*-----------------------------------------------------------------------*/ -/* Load a sector and check if it is an FAT boot sector */ -/*-----------------------------------------------------------------------*/ - -static -BYTE check_fs ( /* 0:FAT, 1:exFAT, 2:Valid BS but not FAT, 3:Not a BS, 4:Disk error */ - FATFS* fs, /* File system object */ - DWORD sect /* Sector# (lba) to load and check if it is an FAT-VBR or not */ -) -{ - fs->wflag = 0; fs->winsect = 0xFFFFFFFF; /* Invaidate window */ - if (move_window(fs, sect) != FR_OK) return 4; /* Load boot record */ - - if (ld_word(fs->win + BS_55AA) != 0xAA55) return 3; /* Check boot record signature (always placed here even if the sector size is >512) */ - - if (fs->win[BS_JmpBoot] == 0xE9 || (fs->win[BS_JmpBoot] == 0xEB && fs->win[BS_JmpBoot + 2] == 0x90)) { - if ((ld_dword(fs->win + BS_FilSysType) & 0xFFFFFF) == 0x544146) return 0; /* Check "FAT" string */ - if (ld_dword(fs->win + BS_FilSysType32) == 0x33544146) return 0; /* Check "FAT3" string */ - } -#if _FS_EXFAT - if (!mem_cmp(fs->win + BS_JmpBoot, "\xEB\x76\x90" "EXFAT ", 11)) return 1; -#endif - return 2; -} - - - - -/*-----------------------------------------------------------------------*/ -/* Find logical drive and check if the volume is mounted */ -/*-----------------------------------------------------------------------*/ - -static -FRESULT find_volume ( /* FR_OK(0): successful, !=0: any error occurred */ - const TCHAR** path, /* Pointer to pointer to the path name (drive number) */ - FATFS** rfs, /* Pointer to pointer to the found file system object */ - BYTE mode /* !=0: Check write protection for write access */ -) -{ - BYTE fmt, *pt; - int vol; - DSTATUS stat; - DWORD bsect, fasize, tsect, sysect, nclst, szbfat, br[4]; - WORD nrsv; - FATFS *fs; - UINT i; - - - /* Get logical drive number */ - *rfs = 0; - vol = get_ldnumber(path); - if (vol < 0) return FR_INVALID_DRIVE; - - /* Check if the file system object is valid or not */ - fs = FatFs[vol]; /* Get pointer to the file system object */ - if (!fs) return FR_NOT_ENABLED; /* Is the file system object available? */ - - ENTER_FF(fs); /* Lock the volume */ - *rfs = fs; /* Return pointer to the file system object */ - - mode &= (BYTE)~FA_READ; /* Desired access mode, write access or not */ - if (fs->fs_type) { /* If the volume has been mounted */ - stat = disk_status(fs->drv); - if (!(stat & STA_NOINIT)) { /* and the physical drive is kept initialized */ - if (!_FS_READONLY && mode && (stat & STA_PROTECT)) { /* Check write protection if needed */ - return FR_WRITE_PROTECTED; - } - return FR_OK; /* The file system object is valid */ - } - } - - /* The file system object is not valid. */ - /* Following code attempts to mount the volume. (analyze BPB and initialize the fs object) */ - - fs->fs_type = 0; /* Clear the file system object */ - fs->drv = LD2PD(vol); /* Bind the logical drive and a physical drive */ - stat = disk_initialize(fs->drv); /* Initialize the physical drive */ - if (stat & STA_NOINIT) { /* Check if the initialization succeeded */ - return FR_NOT_READY; /* Failed to initialize due to no medium or hard error */ - } - if (!_FS_READONLY && mode && (stat & STA_PROTECT)) { /* Check disk write protection if needed */ - return FR_WRITE_PROTECTED; - } -#if _MAX_SS != _MIN_SS /* Get sector size (multiple sector size cfg only) */ - if (disk_ioctl(fs->drv, GET_SECTOR_SIZE, &SS(fs)) != RES_OK) return FR_DISK_ERR; - if (SS(fs) > _MAX_SS || SS(fs) < _MIN_SS || (SS(fs) & (SS(fs) - 1))) return FR_DISK_ERR; -#endif - - /* Find an FAT partition on the drive. Supports only generic partitioning rules, FDISK and SFD. */ - bsect = 0; - fmt = check_fs(fs, bsect); /* Load sector 0 and check if it is an FAT-VBR as SFD */ - if (fmt == 2 || (fmt < 2 && LD2PT(vol) != 0)) { /* Not an FAT-VBR or forced partition number */ - for (i = 0; i < 4; i++) { /* Get partition offset */ - pt = fs->win + (MBR_Table + i * SZ_PTE); - br[i] = pt[PTE_System] ? ld_dword(pt + PTE_StLba) : 0; - } - i = LD2PT(vol); /* Partition number: 0:auto, 1-4:forced */ - if (i) i--; - do { /* Find an FAT volume */ - bsect = br[i]; - fmt = bsect ? check_fs(fs, bsect) : 3; /* Check the partition */ - } while (LD2PT(vol) == 0 && fmt >= 2 && ++i < 4); - } - if (fmt == 4) return FR_DISK_ERR; /* An error occured in the disk I/O layer */ - if (fmt >= 2) return FR_NO_FILESYSTEM; /* No FAT volume is found */ - - /* An FAT volume is found (bsect). Following code initializes the file system object */ - -#if _FS_EXFAT - if (fmt == 1) { - QWORD maxlba; - - for (i = BPB_ZeroedEx; i < BPB_ZeroedEx + 53 && fs->win[i] == 0; i++) ; /* Check zero filler */ - if (i < BPB_ZeroedEx + 53) return FR_NO_FILESYSTEM; - - if (ld_word(fs->win + BPB_FSVerEx) != 0x100) return FR_NO_FILESYSTEM; /* Check exFAT revision (Must be 1.0) */ - - if (1 << fs->win[BPB_BytsPerSecEx] != SS(fs)) { /* (BPB_BytsPerSecEx must be equal to the physical sector size) */ - return FR_NO_FILESYSTEM; - } - - maxlba = ld_qword(fs->win + BPB_TotSecEx) + bsect; /* Last LBA + 1 of the volume */ - if (maxlba >= 0x100000000) return FR_NO_FILESYSTEM; /* (It cannot be handled in 32-bit LBA) */ - - fs->fsize = ld_dword(fs->win + BPB_FatSzEx); /* Number of sectors per FAT */ - - fs->n_fats = fs->win[BPB_NumFATsEx]; /* Number of FATs */ - if (fs->n_fats != 1) return FR_NO_FILESYSTEM; /* (Supports only 1 FAT) */ - - fs->csize = 1 << fs->win[BPB_SecPerClusEx]; /* Cluster size */ - if (fs->csize == 0) return FR_NO_FILESYSTEM; /* (Must be 1..32768) */ - - nclst = ld_dword(fs->win + BPB_NumClusEx); /* Number of clusters */ - if (nclst > MAX_EXFAT) return FR_NO_FILESYSTEM; /* (Too many clusters) */ - fs->n_fatent = nclst + 2; - - /* Boundaries and Limits */ - fs->volbase = bsect; - fs->database = bsect + ld_dword(fs->win + BPB_DataOfsEx); - fs->fatbase = bsect + ld_dword(fs->win + BPB_FatOfsEx); - if (maxlba < (QWORD)fs->database + nclst * fs->csize) return FR_NO_FILESYSTEM; /* (Volume size must not be smaller than the size requiered) */ - fs->dirbase = ld_dword(fs->win + BPB_RootClusEx); - - /* Check if bitmap location is in assumption (at the first cluster) */ - if (move_window(fs, clust2sect(fs, fs->dirbase)) != FR_OK) return FR_DISK_ERR; - for (i = 0; i < SS(fs); i += SZDIRE) { - if (fs->win[i] == 0x81 && ld_dword(fs->win + i + 20) == 2) break; /* 81 entry with cluster #2? */ - } - if (i == SS(fs)) return FR_NO_FILESYSTEM; -#if !_FS_READONLY - fs->last_clst = fs->free_clst = 0xFFFFFFFF; /* Initialize cluster allocation information */ -#endif - fmt = FS_EXFAT; /* FAT sub-type */ - } else -#endif /* _FS_EXFAT */ - { - if (ld_word(fs->win + BPB_BytsPerSec) != SS(fs)) return FR_NO_FILESYSTEM; /* (BPB_BytsPerSec must be equal to the physical sector size) */ - - fasize = ld_word(fs->win + BPB_FATSz16); /* Number of sectors per FAT */ - if (fasize == 0) fasize = ld_dword(fs->win + BPB_FATSz32); - fs->fsize = fasize; - - fs->n_fats = fs->win[BPB_NumFATs]; /* Number of FATs */ - if (fs->n_fats != 1 && fs->n_fats != 2) return FR_NO_FILESYSTEM; /* (Must be 1 or 2) */ - fasize *= fs->n_fats; /* Number of sectors for FAT area */ - - fs->csize = fs->win[BPB_SecPerClus]; /* Cluster size */ - if (fs->csize == 0 || (fs->csize & (fs->csize - 1))) return FR_NO_FILESYSTEM; /* (Must be power of 2) */ - - fs->n_rootdir = ld_word(fs->win + BPB_RootEntCnt); /* Number of root directory entries */ - if (fs->n_rootdir % (SS(fs) / SZDIRE)) return FR_NO_FILESYSTEM; /* (Must be sector aligned) */ - - tsect = ld_word(fs->win + BPB_TotSec16); /* Number of sectors on the volume */ - if (tsect == 0) tsect = ld_dword(fs->win + BPB_TotSec32); - - nrsv = ld_word(fs->win + BPB_RsvdSecCnt); /* Number of reserved sectors */ - if (nrsv == 0) return FR_NO_FILESYSTEM; /* (Must not be 0) */ - - /* Determine the FAT sub type */ - sysect = nrsv + fasize + fs->n_rootdir / (SS(fs) / SZDIRE); /* RSV + FAT + DIR */ - if (tsect < sysect) return FR_NO_FILESYSTEM; /* (Invalid volume size) */ - nclst = (tsect - sysect) / fs->csize; /* Number of clusters */ - if (nclst == 0) return FR_NO_FILESYSTEM; /* (Invalid volume size) */ - fmt = FS_FAT32; - if (nclst <= MAX_FAT16) fmt = FS_FAT16; - if (nclst <= MAX_FAT12) fmt = FS_FAT12; - - /* Boundaries and Limits */ - fs->n_fatent = nclst + 2; /* Number of FAT entries */ - fs->volbase = bsect; /* Volume start sector */ - fs->fatbase = bsect + nrsv; /* FAT start sector */ - fs->database = bsect + sysect; /* Data start sector */ - if (fmt == FS_FAT32) { - if (ld_word(fs->win + BPB_FSVer32) != 0) return FR_NO_FILESYSTEM; /* (Must be FAT32 revision 0.0) */ - if (fs->n_rootdir) return FR_NO_FILESYSTEM; /* (BPB_RootEntCnt must be 0) */ - fs->dirbase = ld_dword(fs->win + BPB_RootClus32); /* Root directory start cluster */ - szbfat = fs->n_fatent * 4; /* (Needed FAT size) */ - } else { - if (fs->n_rootdir == 0) return FR_NO_FILESYSTEM;/* (BPB_RootEntCnt must not be 0) */ - fs->dirbase = fs->fatbase + fasize; /* Root directory start sector */ - szbfat = (fmt == FS_FAT16) ? /* (Needed FAT size) */ - fs->n_fatent * 2 : fs->n_fatent * 3 / 2 + (fs->n_fatent & 1); - } - if (fs->fsize < (szbfat + (SS(fs) - 1)) / SS(fs)) return FR_NO_FILESYSTEM; /* (BPB_FATSz must not be less than the size needed) */ - -#if !_FS_READONLY - /* Get FSINFO if available */ - fs->last_clst = fs->free_clst = 0xFFFFFFFF; /* Initialize cluster allocation information */ - fs->fsi_flag = 0x80; -#if (_FS_NOFSINFO & 3) != 3 - if (fmt == FS_FAT32 /* Enable FSINFO only if FAT32 and BPB_FSInfo32 == 1 */ - && ld_word(fs->win + BPB_FSInfo32) == 1 - && move_window(fs, bsect + 1) == FR_OK) - { - fs->fsi_flag = 0; - if (ld_word(fs->win + BS_55AA) == 0xAA55 /* Load FSINFO data if available */ - && ld_dword(fs->win + FSI_LeadSig) == 0x41615252 - && ld_dword(fs->win + FSI_StrucSig) == 0x61417272) - { -#if (_FS_NOFSINFO & 1) == 0 - fs->free_clst = ld_dword(fs->win + FSI_Free_Count); -#endif -#if (_FS_NOFSINFO & 2) == 0 - fs->last_clst = ld_dword(fs->win + FSI_Nxt_Free); -#endif - } - } -#endif /* (_FS_NOFSINFO & 3) != 3 */ -#endif /* !_FS_READONLY */ - } - - fs->fs_type = fmt; /* FAT sub-type */ - fs->id = ++Fsid; /* File system mount ID */ -#if _USE_LFN == 1 - fs->lfnbuf = LfnBuf; /* Static LFN working buffer */ -#if _FS_EXFAT - fs->dirbuf = DirBuf; /* Static directory block scratchpad buuffer */ -#endif -#endif -#if _FS_RPATH != 0 - fs->cdir = 0; /* Initialize current directory */ -#endif -#if _FS_LOCK != 0 /* Clear file lock semaphores */ - clear_lock(fs); -#endif - return FR_OK; -} - - - - -/*-----------------------------------------------------------------------*/ -/* Check if the file/directory object is valid or not */ -/*-----------------------------------------------------------------------*/ - -static -FRESULT validate ( /* Returns FR_OK or FR_INVALID_OBJECT */ - _FDID* obj, /* Pointer to the _OBJ, the 1st member in the FIL/DIR object, to check validity */ - FATFS** fs /* Pointer to pointer to the owner file system object to return */ -) -{ - FRESULT res = FR_INVALID_OBJECT; - - - if (obj && obj->fs && obj->fs->fs_type && obj->id == obj->fs->id) { /* Test if the object is valid */ -#if _FS_REENTRANT - if (lock_fs(obj->fs)) { /* Obtain the filesystem object */ - if (!(disk_status(obj->fs->drv) & STA_NOINIT)) { /* Test if the phsical drive is kept initialized */ - res = FR_OK; - } else { - unlock_fs(obj->fs, FR_OK); - } - } else { - res = FR_TIMEOUT; - } -#else - if (!(disk_status(obj->fs->drv) & STA_NOINIT)) { /* Test if the phsical drive is kept initialized */ - res = FR_OK; - } -#endif - } - *fs = (res == FR_OK) ? obj->fs : 0; /* Corresponding filesystem object */ - return res; -} - - - - -/*--------------------------------------------------------------------------- - - Public Functions (FatFs API) - -----------------------------------------------------------------------------*/ - - - -/*-----------------------------------------------------------------------*/ -/* Mount/Unmount a Logical Drive */ -/*-----------------------------------------------------------------------*/ - -FRESULT f_mount ( - FATFS* fs, /* Pointer to the file system object (NULL:unmount)*/ - const TCHAR* path, /* Logical drive number to be mounted/unmounted */ - BYTE opt /* Mode option 0:Do not mount (delayed mount), 1:Mount immediately */ -) -{ - FATFS *cfs; - int vol; - FRESULT res; - const TCHAR *rp = path; - - - /* Get logical drive number */ - vol = get_ldnumber(&rp); - if (vol < 0) return FR_INVALID_DRIVE; - cfs = FatFs[vol]; /* Pointer to fs object */ - - if (cfs) { -#if _FS_LOCK != 0 - clear_lock(cfs); -#endif -#if _FS_REENTRANT /* Discard sync object of the current volume */ - if (!ff_del_syncobj(cfs->sobj)) return FR_INT_ERR; -#endif - cfs->fs_type = 0; /* Clear old fs object */ - } - - if (fs) { - fs->fs_type = 0; /* Clear new fs object */ -#if _FS_REENTRANT /* Create sync object for the new volume */ - if (!ff_cre_syncobj((BYTE)vol, &fs->sobj)) return FR_INT_ERR; -#endif - } - FatFs[vol] = fs; /* Register new fs object */ - - if (!fs || opt != 1) return FR_OK; /* Do not mount now, it will be mounted later */ - - res = find_volume(&path, &fs, 0); /* Force mounted the volume */ - LEAVE_FF(fs, res); -} - - - - -/*-----------------------------------------------------------------------*/ -/* Open or Create a File */ -/*-----------------------------------------------------------------------*/ - -FRESULT f_open ( - FIL* fp, /* Pointer to the blank file object */ - const TCHAR* path, /* Pointer to the file name */ - BYTE mode /* Access mode and file open mode flags */ -) -{ - FRESULT res; - DIR dj; - FATFS *fs; -#if !_FS_READONLY - DWORD dw, cl, bcs, clst, sc; - FSIZE_t ofs; -#endif - DEF_NAMBUF - - - if (!fp) return FR_INVALID_OBJECT; - - /* Get logical drive */ - mode &= _FS_READONLY ? FA_READ : FA_READ | FA_WRITE | FA_CREATE_ALWAYS | FA_CREATE_NEW | FA_OPEN_ALWAYS | FA_OPEN_APPEND | FA_SEEKEND; - res = find_volume(&path, &fs, mode); - if (res == FR_OK) { - dj.obj.fs = fs; - INIT_NAMBUF(fs); - res = follow_path(&dj, path); /* Follow the file path */ -#if !_FS_READONLY /* R/W configuration */ - if (res == FR_OK) { - if (dj.fn[NSFLAG] & NS_NONAME) { /* Origin directory itself? */ - res = FR_INVALID_NAME; - } -#if _FS_LOCK != 0 - else { - res = chk_lock(&dj, (mode & ~FA_READ) ? 1 : 0); - } -#endif - } - /* Create or Open a file */ - if (mode & (FA_CREATE_ALWAYS | FA_OPEN_ALWAYS | FA_CREATE_NEW)) { - if (res != FR_OK) { /* No file, create new */ - if (res == FR_NO_FILE) { /* There is no file to open, create a new entry */ -#if _FS_LOCK != 0 - res = enq_lock() ? dir_register(&dj) : FR_TOO_MANY_OPEN_FILES; -#else - res = dir_register(&dj); -#endif - } - mode |= FA_CREATE_ALWAYS; /* File is created */ - } - else { /* Any object is already existing */ - if (dj.obj.attr & (AM_RDO | AM_DIR)) { /* Cannot overwrite it (R/O or DIR) */ - res = FR_DENIED; - } else { - if (mode & FA_CREATE_NEW) res = FR_EXIST; /* Cannot create as new file */ - } - } - if (res == FR_OK && (mode & FA_CREATE_ALWAYS)) { /* Truncate it if overwrite mode */ - dw = GET_FATTIME(); -#if _FS_EXFAT - if (fs->fs_type == FS_EXFAT) { - /* Get current allocation info */ - fp->obj.fs = fs; - fp->obj.sclust = ld_dword(fs->dirbuf + XDIR_FstClus); - fp->obj.objsize = ld_qword(fs->dirbuf + XDIR_FileSize); - fp->obj.stat = fs->dirbuf[XDIR_GenFlags] & 2; - fp->obj.n_frag = 0; - /* Initialize directory entry block */ - st_dword(fs->dirbuf + XDIR_CrtTime, dw); /* Set created time */ - fs->dirbuf[XDIR_CrtTime10] = 0; - st_dword(fs->dirbuf + XDIR_ModTime, dw); /* Set modified time */ - fs->dirbuf[XDIR_ModTime10] = 0; - fs->dirbuf[XDIR_Attr] = AM_ARC; /* Reset attribute */ - st_dword(fs->dirbuf + XDIR_FstClus, 0); /* Reset file allocation info */ - st_qword(fs->dirbuf + XDIR_FileSize, 0); - st_qword(fs->dirbuf + XDIR_ValidFileSize, 0); - fs->dirbuf[XDIR_GenFlags] = 1; - res = store_xdir(&dj); - if (res == FR_OK && fp->obj.sclust) { /* Remove the cluster chain if exist */ - res = remove_chain(&fp->obj, fp->obj.sclust, 0); - fs->last_clst = fp->obj.sclust - 1; /* Reuse the cluster hole */ - } - } else -#endif - { - /* Clean directory info */ - st_dword(dj.dir + DIR_CrtTime, dw); /* Set created time */ - st_dword(dj.dir + DIR_ModTime, dw); /* Set modified time */ - dj.dir[DIR_Attr] = AM_ARC; /* Reset attribute */ - cl = ld_clust(fs, dj.dir); /* Get cluster chain */ - st_clust(fs, dj.dir, 0); /* Reset file allocation info */ - st_dword(dj.dir + DIR_FileSize, 0); - fs->wflag = 1; - - if (cl) { /* Remove the cluster chain if exist */ - dw = fs->winsect; - res = remove_chain(&dj.obj, cl, 0); - if (res == FR_OK) { - res = move_window(fs, dw); - fs->last_clst = cl - 1; /* Reuse the cluster hole */ - } - } - } - } - } - else { /* Open an existing file */ - if (res == FR_OK) { /* Following succeeded */ - if (dj.obj.attr & AM_DIR) { /* It is a directory */ - res = FR_NO_FILE; - } else { - if ((mode & FA_WRITE) && (dj.obj.attr & AM_RDO)) { /* R/O violation */ - res = FR_DENIED; - } - } - } - } - if (res == FR_OK) { - if (mode & FA_CREATE_ALWAYS) /* Set file change flag if created or overwritten */ - mode |= FA_MODIFIED; - fp->dir_sect = fs->winsect; /* Pointer to the directory entry */ - fp->dir_ptr = dj.dir; -#if _FS_LOCK != 0 - fp->obj.lockid = inc_lock(&dj, (mode & ~FA_READ) ? 1 : 0); - if (!fp->obj.lockid) res = FR_INT_ERR; -#endif - } -#else /* R/O configuration */ - if (res == FR_OK) { - if (dj.fn[NSFLAG] & NS_NONAME) { /* Origin directory itself? */ - res = FR_INVALID_NAME; - } else { - if (dj.obj.attr & AM_DIR) { /* It is a directory */ - res = FR_NO_FILE; - } - } - } -#endif - - if (res == FR_OK) { -#if _FS_EXFAT - if (fs->fs_type == FS_EXFAT) { - fp->obj.c_scl = dj.obj.sclust; /* Get containing directory info */ - fp->obj.c_size = ((DWORD)dj.obj.objsize & 0xFFFFFF00) | dj.obj.stat; - fp->obj.c_ofs = dj.blk_ofs; - fp->obj.sclust = ld_dword(fs->dirbuf + XDIR_FstClus); /* Get object allocation info */ - fp->obj.objsize = ld_qword(fs->dirbuf + XDIR_FileSize); - fp->obj.stat = fs->dirbuf[XDIR_GenFlags] & 2; - } else -#endif - { - fp->obj.sclust = ld_clust(fs, dj.dir); /* Get object allocation info */ - fp->obj.objsize = ld_dword(dj.dir + DIR_FileSize); - } -#if _USE_FASTSEEK - fp->cltbl = 0; /* Disable fast seek mode */ -#endif - fp->obj.fs = fs; /* Validate the file object */ - fp->obj.id = fs->id; - fp->flag = mode; /* Set file access mode */ - fp->err = 0; /* Clear error flag */ - fp->sect = 0; /* Invalidate current data sector */ - fp->fptr = 0; /* Set file pointer top of the file */ -#if !_FS_READONLY -#if !_FS_TINY - mem_set(fp->buf, 0, _MAX_SS); /* Clear sector buffer */ -#endif - if ((mode & FA_SEEKEND) && fp->obj.objsize > 0) { /* Seek to end of file if FA_OPEN_APPEND is specified */ - fp->fptr = fp->obj.objsize; /* Offset to seek */ - bcs = (DWORD)fs->csize * SS(fs); /* Cluster size in byte */ - clst = fp->obj.sclust; /* Follow the cluster chain */ - for (ofs = fp->obj.objsize; res == FR_OK && ofs > bcs; ofs -= bcs) { - clst = get_fat(&fp->obj, clst); - if (clst <= 1) res = FR_INT_ERR; - if (clst == 0xFFFFFFFF) res = FR_DISK_ERR; - } - fp->clust = clst; - if (res == FR_OK && ofs % SS(fs)) { /* Fill sector buffer if not on the sector boundary */ - if ((sc = clust2sect(fs, clst)) == 0) { - res = FR_INT_ERR; - } else { - fp->sect = sc + (DWORD)(ofs / SS(fs)); -#if !_FS_TINY - if (disk_read(fs->drv, fp->buf, fp->sect, 1) != RES_OK) res = FR_DISK_ERR; -#endif - } - } - } -#endif - } - - FREE_NAMBUF(); - } - - if (res != FR_OK) fp->obj.fs = 0; /* Invalidate file object on error */ - - LEAVE_FF(fs, res); -} - - - - -/*-----------------------------------------------------------------------*/ -/* Read File */ -/*-----------------------------------------------------------------------*/ - -FRESULT f_read ( - FIL* fp, /* Pointer to the file object */ - void* buff, /* Pointer to data buffer */ - UINT btr, /* Number of bytes to read */ - UINT* br /* Pointer to number of bytes read */ -) -{ - FRESULT res; - FATFS *fs; - DWORD clst, sect; - FSIZE_t remain; - UINT rcnt, cc, csect; - BYTE *rbuff = (BYTE*)buff; - - - *br = 0; /* Clear read byte counter */ - res = validate(&fp->obj, &fs); /* Check validity of the file object */ - if (res != FR_OK || (res = (FRESULT)fp->err) != FR_OK) LEAVE_FF(fs, res); /* Check validity */ - if (!(fp->flag & FA_READ)) LEAVE_FF(fs, FR_DENIED); /* Check access mode */ - remain = fp->obj.objsize - fp->fptr; - if (btr > remain) btr = (UINT)remain; /* Truncate btr by remaining bytes */ - - for ( ; btr; /* Repeat until all data read */ - rbuff += rcnt, fp->fptr += rcnt, *br += rcnt, btr -= rcnt) { - if (fp->fptr % SS(fs) == 0) { /* On the sector boundary? */ - csect = (UINT)(fp->fptr / SS(fs) & (fs->csize - 1)); /* Sector offset in the cluster */ - if (csect == 0) { /* On the cluster boundary? */ - if (fp->fptr == 0) { /* On the top of the file? */ - clst = fp->obj.sclust; /* Follow cluster chain from the origin */ - } else { /* Middle or end of the file */ -#if _USE_FASTSEEK - if (fp->cltbl) { - clst = clmt_clust(fp, fp->fptr); /* Get cluster# from the CLMT */ - } else -#endif - { - clst = get_fat(&fp->obj, fp->clust); /* Follow cluster chain on the FAT */ - } - } - if (clst < 2) ABORT(fs, FR_INT_ERR); - if (clst == 0xFFFFFFFF) ABORT(fs, FR_DISK_ERR); - fp->clust = clst; /* Update current cluster */ - } - sect = clust2sect(fs, fp->clust); /* Get current sector */ - if (!sect) ABORT(fs, FR_INT_ERR); - sect += csect; - cc = btr / SS(fs); /* When remaining bytes >= sector size, */ - if (cc) { /* Read maximum contiguous sectors directly */ - if (csect + cc > fs->csize) { /* Clip at cluster boundary */ - cc = fs->csize - csect; - } - if (disk_read(fs->drv, rbuff, sect, cc) != RES_OK) ABORT(fs, FR_DISK_ERR); -#if !_FS_READONLY && _FS_MINIMIZE <= 2 /* Replace one of the read sectors with cached data if it contains a dirty sector */ -#if _FS_TINY - if (fs->wflag && fs->winsect - sect < cc) { - mem_cpy(rbuff + ((fs->winsect - sect) * SS(fs)), fs->win, SS(fs)); - } -#else - if ((fp->flag & FA_DIRTY) && fp->sect - sect < cc) { - mem_cpy(rbuff + ((fp->sect - sect) * SS(fs)), fp->buf, SS(fs)); - } -#endif -#endif - rcnt = SS(fs) * cc; /* Number of bytes transferred */ - continue; - } -#if !_FS_TINY - if (fp->sect != sect) { /* Load data sector if not in cache */ -#if !_FS_READONLY - if (fp->flag & FA_DIRTY) { /* Write-back dirty sector cache */ - if (disk_write(fs->drv, fp->buf, fp->sect, 1) != RES_OK) ABORT(fs, FR_DISK_ERR); - fp->flag &= (BYTE)~FA_DIRTY; - } -#endif - if (disk_read(fs->drv, fp->buf, sect, 1) != RES_OK) ABORT(fs, FR_DISK_ERR); /* Fill sector cache */ - } -#endif - fp->sect = sect; - } - rcnt = SS(fs) - (UINT)fp->fptr % SS(fs); /* Number of bytes left in the sector */ - if (rcnt > btr) rcnt = btr; /* Clip it by btr if needed */ -#if _FS_TINY - if (move_window(fs, fp->sect) != FR_OK) ABORT(fs, FR_DISK_ERR); /* Move sector window */ - mem_cpy(rbuff, fs->win + fp->fptr % SS(fs), rcnt); /* Extract partial sector */ -#else - mem_cpy(rbuff, fp->buf + fp->fptr % SS(fs), rcnt); /* Extract partial sector */ -#endif - } - - LEAVE_FF(fs, FR_OK); -} - - - - -#if !_FS_READONLY -/*-----------------------------------------------------------------------*/ -/* Write File */ -/*-----------------------------------------------------------------------*/ - -FRESULT f_write ( - FIL* fp, /* Pointer to the file object */ - const void* buff, /* Pointer to the data to be written */ - UINT btw, /* Number of bytes to write */ - UINT* bw /* Pointer to number of bytes written */ -) -{ - FRESULT res; - FATFS *fs; - DWORD clst, sect; - UINT wcnt, cc, csect; - const BYTE *wbuff = (const BYTE*)buff; - - - *bw = 0; /* Clear write byte counter */ - res = validate(&fp->obj, &fs); /* Check validity of the file object */ - if (res != FR_OK || (res = (FRESULT)fp->err) != FR_OK) LEAVE_FF(fs, res); /* Check validity */ - if (!(fp->flag & FA_WRITE)) LEAVE_FF(fs, FR_DENIED); /* Check access mode */ - - /* Check fptr wrap-around (file size cannot reach 4GiB on FATxx) */ - if ((!_FS_EXFAT || fs->fs_type != FS_EXFAT) && (DWORD)(fp->fptr + btw) < (DWORD)fp->fptr) { - btw = (UINT)(0xFFFFFFFF - (DWORD)fp->fptr); - } - - for ( ; btw; /* Repeat until all data written */ - wbuff += wcnt, fp->fptr += wcnt, fp->obj.objsize = (fp->fptr > fp->obj.objsize) ? fp->fptr : fp->obj.objsize, *bw += wcnt, btw -= wcnt) { - if (fp->fptr % SS(fs) == 0) { /* On the sector boundary? */ - csect = (UINT)(fp->fptr / SS(fs)) & (fs->csize - 1); /* Sector offset in the cluster */ - if (csect == 0) { /* On the cluster boundary? */ - if (fp->fptr == 0) { /* On the top of the file? */ - clst = fp->obj.sclust; /* Follow from the origin */ - if (clst == 0) { /* If no cluster is allocated, */ - clst = create_chain(&fp->obj, 0); /* create a new cluster chain */ - } - } else { /* On the middle or end of the file */ -#if _USE_FASTSEEK - if (fp->cltbl) { - clst = clmt_clust(fp, fp->fptr); /* Get cluster# from the CLMT */ - } else -#endif - { - clst = create_chain(&fp->obj, fp->clust); /* Follow or stretch cluster chain on the FAT */ - } - } - if (clst == 0) break; /* Could not allocate a new cluster (disk full) */ - if (clst == 1) ABORT(fs, FR_INT_ERR); - if (clst == 0xFFFFFFFF) ABORT(fs, FR_DISK_ERR); - fp->clust = clst; /* Update current cluster */ - if (fp->obj.sclust == 0) fp->obj.sclust = clst; /* Set start cluster if the first write */ - } -#if _FS_TINY - if (fs->winsect == fp->sect && sync_window(fs) != FR_OK) ABORT(fs, FR_DISK_ERR); /* Write-back sector cache */ -#else - if (fp->flag & FA_DIRTY) { /* Write-back sector cache */ - if (disk_write(fs->drv, fp->buf, fp->sect, 1) != RES_OK) ABORT(fs, FR_DISK_ERR); - fp->flag &= (BYTE)~FA_DIRTY; - } -#endif - sect = clust2sect(fs, fp->clust); /* Get current sector */ - if (!sect) ABORT(fs, FR_INT_ERR); - sect += csect; - cc = btw / SS(fs); /* When remaining bytes >= sector size, */ - if (cc) { /* Write maximum contiguous sectors directly */ - if (csect + cc > fs->csize) { /* Clip at cluster boundary */ - cc = fs->csize - csect; - } - if (disk_write(fs->drv, wbuff, sect, cc) != RES_OK) ABORT(fs, FR_DISK_ERR); -#if _FS_MINIMIZE <= 2 -#if _FS_TINY - if (fs->winsect - sect < cc) { /* Refill sector cache if it gets invalidated by the direct write */ - mem_cpy(fs->win, wbuff + ((fs->winsect - sect) * SS(fs)), SS(fs)); - fs->wflag = 0; - } -#else - if (fp->sect - sect < cc) { /* Refill sector cache if it gets invalidated by the direct write */ - mem_cpy(fp->buf, wbuff + ((fp->sect - sect) * SS(fs)), SS(fs)); - fp->flag &= (BYTE)~FA_DIRTY; - } -#endif -#endif - wcnt = SS(fs) * cc; /* Number of bytes transferred */ - continue; - } -#if _FS_TINY - if (fp->fptr >= fp->obj.objsize) { /* Avoid silly cache filling on the growing edge */ - if (sync_window(fs) != FR_OK) ABORT(fs, FR_DISK_ERR); - fs->winsect = sect; - } -#else - if (fp->sect != sect && /* Fill sector cache with file data */ - fp->fptr < fp->obj.objsize && - disk_read(fs->drv, fp->buf, sect, 1) != RES_OK) { - ABORT(fs, FR_DISK_ERR); - } -#endif - fp->sect = sect; - } - wcnt = SS(fs) - (UINT)fp->fptr % SS(fs); /* Number of bytes left in the sector */ - if (wcnt > btw) wcnt = btw; /* Clip it by btw if needed */ -#if _FS_TINY - if (move_window(fs, fp->sect) != FR_OK) ABORT(fs, FR_DISK_ERR); /* Move sector window */ - mem_cpy(fs->win + fp->fptr % SS(fs), wbuff, wcnt); /* Fit data to the sector */ - fs->wflag = 1; -#else - mem_cpy(fp->buf + fp->fptr % SS(fs), wbuff, wcnt); /* Fit data to the sector */ - fp->flag |= FA_DIRTY; -#endif - } - - fp->flag |= FA_MODIFIED; /* Set file change flag */ - - LEAVE_FF(fs, FR_OK); -} - - - - -/*-----------------------------------------------------------------------*/ -/* Synchronize the File */ -/*-----------------------------------------------------------------------*/ - -FRESULT f_sync ( - FIL* fp /* Pointer to the file object */ -) -{ - FRESULT res; - FATFS *fs; - DWORD tm; - BYTE *dir; -#if _FS_EXFAT - DIR dj; - DEF_NAMBUF -#endif - - res = validate(&fp->obj, &fs); /* Check validity of the file object */ - if (res == FR_OK) { - if (fp->flag & FA_MODIFIED) { /* Is there any change to the file? */ -#if !_FS_TINY - if (fp->flag & FA_DIRTY) { /* Write-back cached data if needed */ - if (disk_write(fs->drv, fp->buf, fp->sect, 1) != RES_OK) LEAVE_FF(fs, FR_DISK_ERR); - fp->flag &= (BYTE)~FA_DIRTY; - } -#endif - /* Update the directory entry */ - tm = GET_FATTIME(); /* Modified time */ -#if _FS_EXFAT - if (fs->fs_type == FS_EXFAT) { - res = fill_first_frag(&fp->obj); /* Fill first fragment on the FAT if needed */ - if (res == FR_OK) { - res = fill_last_frag(&fp->obj, fp->clust, 0xFFFFFFFF); /* Fill last fragment on the FAT if needed */ - } - if (res == FR_OK) { - INIT_NAMBUF(fs); - res = load_obj_dir(&dj, &fp->obj); /* Load directory entry block */ - if (res == FR_OK) { - fs->dirbuf[XDIR_Attr] |= AM_ARC; /* Set archive bit */ - fs->dirbuf[XDIR_GenFlags] = fp->obj.stat | 1; /* Update file allocation info */ - st_dword(fs->dirbuf + XDIR_FstClus, fp->obj.sclust); - st_qword(fs->dirbuf + XDIR_FileSize, fp->obj.objsize); - st_qword(fs->dirbuf + XDIR_ValidFileSize, fp->obj.objsize); - st_dword(fs->dirbuf + XDIR_ModTime, tm); /* Update modified time */ - fs->dirbuf[XDIR_ModTime10] = 0; - st_dword(fs->dirbuf + XDIR_AccTime, 0); - res = store_xdir(&dj); /* Restore it to the directory */ - if (res == FR_OK) { - res = sync_fs(fs); - fp->flag &= (BYTE)~FA_MODIFIED; - } - } - FREE_NAMBUF(); - } - } else -#endif - { - res = move_window(fs, fp->dir_sect); - if (res == FR_OK) { - dir = fp->dir_ptr; - dir[DIR_Attr] |= AM_ARC; /* Set archive bit */ - st_clust(fp->obj.fs, dir, fp->obj.sclust); /* Update file allocation info */ - st_dword(dir + DIR_FileSize, (DWORD)fp->obj.objsize); /* Update file size */ - st_dword(dir + DIR_ModTime, tm); /* Update modified time */ - st_word(dir + DIR_LstAccDate, 0); - fs->wflag = 1; - res = sync_fs(fs); /* Restore it to the directory */ - fp->flag &= (BYTE)~FA_MODIFIED; - } - } - } - } - - LEAVE_FF(fs, res); -} - -#endif /* !_FS_READONLY */ - - - - -/*-----------------------------------------------------------------------*/ -/* Close File */ -/*-----------------------------------------------------------------------*/ - -FRESULT f_close ( - FIL* fp /* Pointer to the file object to be closed */ -) -{ - FRESULT res; - FATFS *fs; - -#if !_FS_READONLY - res = f_sync(fp); /* Flush cached data */ - if (res == FR_OK) -#endif - { - res = validate(&fp->obj, &fs); /* Lock volume */ - if (res == FR_OK) { -#if _FS_LOCK != 0 - res = dec_lock(fp->obj.lockid); /* Decrement file open counter */ - if (res == FR_OK) -#endif - { - fp->obj.fs = 0; /* Invalidate file object */ - } -#if _FS_REENTRANT - unlock_fs(fs, FR_OK); /* Unlock volume */ -#endif - } - } - return res; -} - - - - -#if _FS_RPATH >= 1 -/*-----------------------------------------------------------------------*/ -/* Change Current Directory or Current Drive, Get Current Directory */ -/*-----------------------------------------------------------------------*/ - -#if _VOLUMES >= 2 -FRESULT f_chdrive ( - const TCHAR* path /* Drive number */ -) -{ - int vol; - - - /* Get logical drive number */ - vol = get_ldnumber(&path); - if (vol < 0) return FR_INVALID_DRIVE; - - CurrVol = (BYTE)vol; /* Set it as current volume */ - - return FR_OK; -} -#endif - - -FRESULT f_chdir ( - const TCHAR* path /* Pointer to the directory path */ -) -{ - FRESULT res; - DIR dj; - FATFS *fs; - DEF_NAMBUF - - /* Get logical drive */ - res = find_volume(&path, &fs, 0); - if (res == FR_OK) { - dj.obj.fs = fs; - INIT_NAMBUF(fs); - res = follow_path(&dj, path); /* Follow the path */ - if (res == FR_OK) { /* Follow completed */ - if (dj.fn[NSFLAG] & NS_NONAME) { - fs->cdir = dj.obj.sclust; /* It is the start directory itself */ -#if _FS_EXFAT - if (fs->fs_type == FS_EXFAT) { - fs->cdc_scl = dj.obj.c_scl; - fs->cdc_size = dj.obj.c_size; - fs->cdc_ofs = dj.obj.c_ofs; - } -#endif - } else { - if (dj.obj.attr & AM_DIR) { /* It is a sub-directory */ -#if _FS_EXFAT - if (fs->fs_type == FS_EXFAT) { - fs->cdir = ld_dword(fs->dirbuf + XDIR_FstClus); /* Sub-directory cluster */ - fs->cdc_scl = dj.obj.sclust; /* Save containing directory information */ - fs->cdc_size = ((DWORD)dj.obj.objsize & 0xFFFFFF00) | dj.obj.stat; - fs->cdc_ofs = dj.blk_ofs; - } else -#endif - { - fs->cdir = ld_clust(fs, dj.dir); /* Sub-directory cluster */ - } - } else { - res = FR_NO_PATH; /* Reached but a file */ - } - } - } - FREE_NAMBUF(); - if (res == FR_NO_FILE) res = FR_NO_PATH; - } - - LEAVE_FF(fs, res); -} - - -#if _FS_RPATH >= 2 -FRESULT f_getcwd ( - TCHAR* buff, /* Pointer to the directory path */ - UINT len /* Size of path */ -) -{ - FRESULT res; - DIR dj; - FATFS *fs; - UINT i, n; - DWORD ccl; - TCHAR *tp; - FILINFO fno; - DEF_NAMBUF - - - *buff = 0; - /* Get logical drive */ - res = find_volume((const TCHAR**)&buff, &fs, 0); /* Get current volume */ - if (res == FR_OK) { - dj.obj.fs = fs; - INIT_NAMBUF(fs); - i = len; /* Bottom of buffer (directory stack base) */ - if (!_FS_EXFAT || fs->fs_type != FS_EXFAT) { /* (Cannot do getcwd on exFAT and returns root path) */ - dj.obj.sclust = fs->cdir; /* Start to follow upper directory from current directory */ - while ((ccl = dj.obj.sclust) != 0) { /* Repeat while current directory is a sub-directory */ - res = dir_sdi(&dj, 1 * SZDIRE); /* Get parent directory */ - if (res != FR_OK) break; - res = move_window(fs, dj.sect); - if (res != FR_OK) break; - dj.obj.sclust = ld_clust(fs, dj.dir); /* Goto parent directory */ - res = dir_sdi(&dj, 0); - if (res != FR_OK) break; - do { /* Find the entry links to the child directory */ - res = dir_read(&dj, 0); - if (res != FR_OK) break; - if (ccl == ld_clust(fs, dj.dir)) break; /* Found the entry */ - res = dir_next(&dj, 0); - } while (res == FR_OK); - if (res == FR_NO_FILE) res = FR_INT_ERR;/* It cannot be 'not found'. */ - if (res != FR_OK) break; - get_fileinfo(&dj, &fno); /* Get the directory name and push it to the buffer */ - for (n = 0; fno.fname[n]; n++) ; - if (i < n + 3) { - res = FR_NOT_ENOUGH_CORE; break; - } - while (n) buff[--i] = fno.fname[--n]; - buff[--i] = '/'; - } - } - tp = buff; - if (res == FR_OK) { -#if _VOLUMES >= 2 - *tp++ = '0' + CurrVol; /* Put drive number */ - *tp++ = ':'; -#endif - if (i == len) { /* Root-directory */ - *tp++ = '/'; - } else { /* Sub-directroy */ - do /* Add stacked path str */ - *tp++ = buff[i++]; - while (i < len); - } - } - *tp = 0; - FREE_NAMBUF(); - } - - LEAVE_FF(fs, res); -} - -#endif /* _FS_RPATH >= 2 */ -#endif /* _FS_RPATH >= 1 */ - - - -#if _FS_MINIMIZE <= 2 -/*-----------------------------------------------------------------------*/ -/* Seek File R/W Pointer */ -/*-----------------------------------------------------------------------*/ - -FRESULT f_lseek ( - FIL* fp, /* Pointer to the file object */ - FSIZE_t ofs /* File pointer from top of file */ -) -{ - FRESULT res; - FATFS *fs; - DWORD clst, bcs, nsect; - FSIZE_t ifptr; -#if _USE_FASTSEEK - DWORD cl, pcl, ncl, tcl, dsc, tlen, ulen, *tbl; -#endif - - res = validate(&fp->obj, &fs); /* Check validity of the file object */ - if (res == FR_OK) res = (FRESULT)fp->err; -#if _FS_EXFAT && !_FS_READONLY - if (res == FR_OK && fs->fs_type == FS_EXFAT) { - res = fill_last_frag(&fp->obj, fp->clust, 0xFFFFFFFF); /* Fill last fragment on the FAT if needed */ - } -#endif - if (res != FR_OK) LEAVE_FF(fs, res); - -#if _USE_FASTSEEK - if (fp->cltbl) { /* Fast seek */ - if (ofs == CREATE_LINKMAP) { /* Create CLMT */ - tbl = fp->cltbl; - tlen = *tbl++; ulen = 2; /* Given table size and required table size */ - cl = fp->obj.sclust; /* Origin of the chain */ - if (cl) { - do { - /* Get a fragment */ - tcl = cl; ncl = 0; ulen += 2; /* Top, length and used items */ - do { - pcl = cl; ncl++; - cl = get_fat(&fp->obj, cl); - if (cl <= 1) ABORT(fs, FR_INT_ERR); - if (cl == 0xFFFFFFFF) ABORT(fs, FR_DISK_ERR); - } while (cl == pcl + 1); - if (ulen <= tlen) { /* Store the length and top of the fragment */ - *tbl++ = ncl; *tbl++ = tcl; - } - } while (cl < fs->n_fatent); /* Repeat until end of chain */ - } - *fp->cltbl = ulen; /* Number of items used */ - if (ulen <= tlen) { - *tbl = 0; /* Terminate table */ - } else { - res = FR_NOT_ENOUGH_CORE; /* Given table size is smaller than required */ - } - } else { /* Fast seek */ - if (ofs > fp->obj.objsize) ofs = fp->obj.objsize; /* Clip offset at the file size */ - fp->fptr = ofs; /* Set file pointer */ - if (ofs) { - fp->clust = clmt_clust(fp, ofs - 1); - dsc = clust2sect(fs, fp->clust); - if (!dsc) ABORT(fs, FR_INT_ERR); - dsc += (DWORD)((ofs - 1) / SS(fs)) & (fs->csize - 1); - if (fp->fptr % SS(fs) && dsc != fp->sect) { /* Refill sector cache if needed */ -#if !_FS_TINY -#if !_FS_READONLY - if (fp->flag & FA_DIRTY) { /* Write-back dirty sector cache */ - if (disk_write(fs->drv, fp->buf, fp->sect, 1) != RES_OK) ABORT(fs, FR_DISK_ERR); - fp->flag &= (BYTE)~FA_DIRTY; - } -#endif - if (disk_read(fs->drv, fp->buf, dsc, 1) != RES_OK) ABORT(fs, FR_DISK_ERR); /* Load current sector */ -#endif - fp->sect = dsc; - } - } - } - } else -#endif - - /* Normal Seek */ - { -#if _FS_EXFAT - if (fs->fs_type != FS_EXFAT && ofs >= 0x100000000) ofs = 0xFFFFFFFF; /* Clip at 4GiB-1 if at FATxx */ -#endif - if (ofs > fp->obj.objsize && (_FS_READONLY || !(fp->flag & FA_WRITE))) { /* In read-only mode, clip offset with the file size */ - ofs = fp->obj.objsize; - } - ifptr = fp->fptr; - fp->fptr = nsect = 0; - if (ofs) { - bcs = (DWORD)fs->csize * SS(fs); /* Cluster size (byte) */ - if (ifptr > 0 && - (ofs - 1) / bcs >= (ifptr - 1) / bcs) { /* When seek to same or following cluster, */ - fp->fptr = (ifptr - 1) & ~(FSIZE_t)(bcs - 1); /* start from the current cluster */ - ofs -= fp->fptr; - clst = fp->clust; - } else { /* When seek to back cluster, */ - clst = fp->obj.sclust; /* start from the first cluster */ -#if !_FS_READONLY - if (clst == 0) { /* If no cluster chain, create a new chain */ - clst = create_chain(&fp->obj, 0); - if (clst == 1) ABORT(fs, FR_INT_ERR); - if (clst == 0xFFFFFFFF) ABORT(fs, FR_DISK_ERR); - fp->obj.sclust = clst; - } -#endif - fp->clust = clst; - } - if (clst != 0) { - while (ofs > bcs) { /* Cluster following loop */ - ofs -= bcs; fp->fptr += bcs; -#if !_FS_READONLY - if (fp->flag & FA_WRITE) { /* Check if in write mode or not */ - if (_FS_EXFAT && fp->fptr > fp->obj.objsize) { /* No FAT chain object needs correct objsize to generate FAT value */ - fp->obj.objsize = fp->fptr; - fp->flag |= FA_MODIFIED; - } - clst = create_chain(&fp->obj, clst); /* Follow chain with forceed stretch */ - if (clst == 0) { /* Clip file size in case of disk full */ - ofs = 0; break; - } - } else -#endif - { - clst = get_fat(&fp->obj, clst); /* Follow cluster chain if not in write mode */ - } - if (clst == 0xFFFFFFFF) ABORT(fs, FR_DISK_ERR); - if (clst <= 1 || clst >= fs->n_fatent) ABORT(fs, FR_INT_ERR); - fp->clust = clst; - } - fp->fptr += ofs; - if (ofs % SS(fs)) { - nsect = clust2sect(fs, clst); /* Current sector */ - if (!nsect) ABORT(fs, FR_INT_ERR); - nsect += (DWORD)(ofs / SS(fs)); - } - } - } - if (!_FS_READONLY && fp->fptr > fp->obj.objsize) { /* Set file change flag if the file size is extended */ - fp->obj.objsize = fp->fptr; - fp->flag |= FA_MODIFIED; - } - if (fp->fptr % SS(fs) && nsect != fp->sect) { /* Fill sector cache if needed */ -#if !_FS_TINY -#if !_FS_READONLY - if (fp->flag & FA_DIRTY) { /* Write-back dirty sector cache */ - if (disk_write(fs->drv, fp->buf, fp->sect, 1) != RES_OK) ABORT(fs, FR_DISK_ERR); - fp->flag &= (BYTE)~FA_DIRTY; - } -#endif - if (disk_read(fs->drv, fp->buf, nsect, 1) != RES_OK) ABORT(fs, FR_DISK_ERR); /* Fill sector cache */ -#endif - fp->sect = nsect; - } - } - - LEAVE_FF(fs, res); -} - - - -#if _FS_MINIMIZE <= 1 -/*-----------------------------------------------------------------------*/ -/* Create a Directory Object */ -/*-----------------------------------------------------------------------*/ - -FRESULT f_opendir ( - DIR* dp, /* Pointer to directory object to create */ - const TCHAR* path /* Pointer to the directory path */ -) -{ - FRESULT res; - FATFS *fs; - _FDID *obj; - DEF_NAMBUF - - - if (!dp) return FR_INVALID_OBJECT; - - /* Get logical drive */ - obj = &dp->obj; - res = find_volume(&path, &fs, 0); - if (res == FR_OK) { - obj->fs = fs; - INIT_NAMBUF(fs); - res = follow_path(dp, path); /* Follow the path to the directory */ - if (res == FR_OK) { /* Follow completed */ - if (!(dp->fn[NSFLAG] & NS_NONAME)) { /* It is not the origin directory itself */ - if (obj->attr & AM_DIR) { /* This object is a sub-directory */ -#if _FS_EXFAT - if (fs->fs_type == FS_EXFAT) { - obj->c_scl = obj->sclust; /* Get containing directory inforamation */ - obj->c_size = ((DWORD)obj->objsize & 0xFFFFFF00) | obj->stat; - obj->c_ofs = dp->blk_ofs; - obj->sclust = ld_dword(fs->dirbuf + XDIR_FstClus); /* Get object allocation info */ - obj->objsize = ld_qword(fs->dirbuf + XDIR_FileSize); - obj->stat = fs->dirbuf[XDIR_GenFlags] & 2; - } else -#endif - { - obj->sclust = ld_clust(fs, dp->dir); /* Get object allocation info */ - } - } else { /* This object is a file */ - res = FR_NO_PATH; - } - } - if (res == FR_OK) { - obj->id = fs->id; - res = dir_sdi(dp, 0); /* Rewind directory */ -#if _FS_LOCK != 0 - if (res == FR_OK) { - if (obj->sclust) { - obj->lockid = inc_lock(dp, 0); /* Lock the sub directory */ - if (!obj->lockid) res = FR_TOO_MANY_OPEN_FILES; - } else { - obj->lockid = 0; /* Root directory need not to be locked */ - } - } -#endif - } - } - FREE_NAMBUF(); - if (res == FR_NO_FILE) res = FR_NO_PATH; - } - if (res != FR_OK) obj->fs = 0; /* Invalidate the directory object if function faild */ - - LEAVE_FF(fs, res); -} - - - - -/*-----------------------------------------------------------------------*/ -/* Close Directory */ -/*-----------------------------------------------------------------------*/ - -FRESULT f_closedir ( - DIR *dp /* Pointer to the directory object to be closed */ -) -{ - FRESULT res; - FATFS *fs; - - - res = validate(&dp->obj, &fs); /* Check validity of the file object */ - if (res == FR_OK) { -#if _FS_LOCK != 0 - if (dp->obj.lockid) { /* Decrement sub-directory open counter */ - res = dec_lock(dp->obj.lockid); - } - if (res == FR_OK) -#endif - { - dp->obj.fs = 0; /* Invalidate directory object */ - } -#if _FS_REENTRANT - unlock_fs(fs, FR_OK); /* Unlock volume */ -#endif - } - return res; -} - - - - -/*-----------------------------------------------------------------------*/ -/* Read Directory Entries in Sequence */ -/*-----------------------------------------------------------------------*/ - -FRESULT f_readdir ( - DIR* dp, /* Pointer to the open directory object */ - FILINFO* fno /* Pointer to file information to return */ -) -{ - FRESULT res; - FATFS *fs; - DEF_NAMBUF - - - res = validate(&dp->obj, &fs); /* Check validity of the directory object */ - if (res == FR_OK) { - if (!fno) { - res = dir_sdi(dp, 0); /* Rewind the directory object */ - } else { - INIT_NAMBUF(fs); - res = dir_read(dp, 0); /* Read an item */ - if (res == FR_NO_FILE) res = FR_OK; /* Ignore end of directory */ - if (res == FR_OK) { /* A valid entry is found */ - get_fileinfo(dp, fno); /* Get the object information */ - res = dir_next(dp, 0); /* Increment index for next */ - if (res == FR_NO_FILE) res = FR_OK; /* Ignore end of directory now */ - } - FREE_NAMBUF(); - } - } - LEAVE_FF(fs, res); -} - - - -#if _USE_FIND -/*-----------------------------------------------------------------------*/ -/* Find Next File */ -/*-----------------------------------------------------------------------*/ - -FRESULT f_findnext ( - DIR* dp, /* Pointer to the open directory object */ - FILINFO* fno /* Pointer to the file information structure */ -) -{ - FRESULT res; - - - for (;;) { - res = f_readdir(dp, fno); /* Get a directory item */ - if (res != FR_OK || !fno || !fno->fname[0]) break; /* Terminate if any error or end of directory */ - if (pattern_matching(dp->pat, fno->fname, 0, 0)) break; /* Test for the file name */ -#if _USE_LFN != 0 && _USE_FIND == 2 - if (pattern_matching(dp->pat, fno->altname, 0, 0)) break; /* Test for alternative name if exist */ -#endif - } - return res; -} - - - -/*-----------------------------------------------------------------------*/ -/* Find First File */ -/*-----------------------------------------------------------------------*/ - -FRESULT f_findfirst ( - DIR* dp, /* Pointer to the blank directory object */ - FILINFO* fno, /* Pointer to the file information structure */ - const TCHAR* path, /* Pointer to the directory to open */ - const TCHAR* pattern /* Pointer to the matching pattern */ -) -{ - FRESULT res; - - - dp->pat = pattern; /* Save pointer to pattern string */ - res = f_opendir(dp, path); /* Open the target directory */ - if (res == FR_OK) { - res = f_findnext(dp, fno); /* Find the first item */ - } - return res; -} - -#endif /* _USE_FIND */ - - - -#if _FS_MINIMIZE == 0 -/*-----------------------------------------------------------------------*/ -/* Get File Status */ -/*-----------------------------------------------------------------------*/ - -FRESULT f_stat ( - const TCHAR* path, /* Pointer to the file path */ - FILINFO* fno /* Pointer to file information to return */ -) -{ - FRESULT res; - DIR dj; - DEF_NAMBUF - - - /* Get logical drive */ - res = find_volume(&path, &dj.obj.fs, 0); - if (res == FR_OK) { - INIT_NAMBUF(dj.obj.fs); - res = follow_path(&dj, path); /* Follow the file path */ - if (res == FR_OK) { /* Follow completed */ - if (dj.fn[NSFLAG] & NS_NONAME) { /* It is origin directory */ - res = FR_INVALID_NAME; - } else { /* Found an object */ - if (fno) get_fileinfo(&dj, fno); - } - } - FREE_NAMBUF(); - } - - LEAVE_FF(dj.obj.fs, res); -} - - - -#if !_FS_READONLY -/*-----------------------------------------------------------------------*/ -/* Get Number of Free Clusters */ -/*-----------------------------------------------------------------------*/ - -FRESULT f_getfree ( - const TCHAR* path, /* Path name of the logical drive number */ - DWORD* nclst, /* Pointer to a variable to return number of free clusters */ - FATFS** fatfs /* Pointer to return pointer to corresponding file system object */ -) -{ - FRESULT res; - FATFS *fs; - DWORD nfree, clst, sect, stat; - UINT i; - BYTE *p; - _FDID obj; - - - /* Get logical drive */ - res = find_volume(&path, &fs, 0); - if (res == FR_OK) { - *fatfs = fs; /* Return ptr to the fs object */ - /* If free_clst is valid, return it without full cluster scan */ - if (fs->free_clst <= fs->n_fatent - 2) { - *nclst = fs->free_clst; - } else { - /* Get number of free clusters */ - nfree = 0; - if (fs->fs_type == FS_FAT12) { /* FAT12: Sector unalighed FAT entries */ - clst = 2; obj.fs = fs; - do { - stat = get_fat(&obj, clst); - if (stat == 0xFFFFFFFF) { res = FR_DISK_ERR; break; } - if (stat == 1) { res = FR_INT_ERR; break; } - if (stat == 0) nfree++; - } while (++clst < fs->n_fatent); - } else { -#if _FS_EXFAT - if (fs->fs_type == FS_EXFAT) { /* exFAT: Scan bitmap table */ - BYTE bm; - UINT b; - - clst = fs->n_fatent - 2; - sect = fs->database; - i = 0; - do { - if (i == 0 && (res = move_window(fs, sect++)) != FR_OK) break; - for (b = 8, bm = fs->win[i]; b && clst; b--, clst--) { - if (!(bm & 1)) nfree++; - bm >>= 1; - } - i = (i + 1) % SS(fs); - } while (clst); - } else -#endif - { /* FAT16/32: Sector alighed FAT entries */ - clst = fs->n_fatent; sect = fs->fatbase; - i = 0; p = 0; - do { - if (i == 0) { - res = move_window(fs, sect++); - if (res != FR_OK) break; - p = fs->win; - i = SS(fs); - } - if (fs->fs_type == FS_FAT16) { - if (ld_word(p) == 0) nfree++; - p += 2; i -= 2; - } else { - if ((ld_dword(p) & 0x0FFFFFFF) == 0) nfree++; - p += 4; i -= 4; - } - } while (--clst); - } - } - *nclst = nfree; /* Return the free clusters */ - fs->free_clst = nfree; /* Now free_clst is valid */ - fs->fsi_flag |= 1; /* FSInfo is to be updated */ - } - } - - LEAVE_FF(fs, res); -} - - - - -/*-----------------------------------------------------------------------*/ -/* Truncate File */ -/*-----------------------------------------------------------------------*/ - -FRESULT f_truncate ( - FIL* fp /* Pointer to the file object */ -) -{ - FRESULT res; - FATFS *fs; - DWORD ncl; - - - res = validate(&fp->obj, &fs); /* Check validity of the file object */ - if (res != FR_OK || (res = (FRESULT)fp->err) != FR_OK) LEAVE_FF(fs, res); - if (!(fp->flag & FA_WRITE)) LEAVE_FF(fs, FR_DENIED); /* Check access mode */ - - if (fp->fptr < fp->obj.objsize) { /* Process when fptr is not on the eof */ - if (fp->fptr == 0) { /* When set file size to zero, remove entire cluster chain */ - res = remove_chain(&fp->obj, fp->obj.sclust, 0); - fp->obj.sclust = 0; - } else { /* When truncate a part of the file, remove remaining clusters */ - ncl = get_fat(&fp->obj, fp->clust); - res = FR_OK; - if (ncl == 0xFFFFFFFF) res = FR_DISK_ERR; - if (ncl == 1) res = FR_INT_ERR; - if (res == FR_OK && ncl < fs->n_fatent) { - res = remove_chain(&fp->obj, ncl, fp->clust); - } - } - fp->obj.objsize = fp->fptr; /* Set file size to current R/W point */ - fp->flag |= FA_MODIFIED; -#if !_FS_TINY - if (res == FR_OK && (fp->flag & FA_DIRTY)) { - if (disk_write(fs->drv, fp->buf, fp->sect, 1) != RES_OK) { - res = FR_DISK_ERR; - } else { - fp->flag &= (BYTE)~FA_DIRTY; - } - } -#endif - if (res != FR_OK) ABORT(fs, res); - } - - LEAVE_FF(fs, res); -} - - - - -/*-----------------------------------------------------------------------*/ -/* Delete a File/Directory */ -/*-----------------------------------------------------------------------*/ - -FRESULT f_unlink ( - const TCHAR* path /* Pointer to the file or directory path */ -) -{ - FRESULT res; - DIR dj, sdj; - DWORD dclst = 0; - FATFS *fs; -#if _FS_EXFAT - _FDID obj; -#endif - DEF_NAMBUF - - - /* Get logical drive */ - res = find_volume(&path, &fs, FA_WRITE); - dj.obj.fs = fs; - if (res == FR_OK) { - INIT_NAMBUF(fs); - res = follow_path(&dj, path); /* Follow the file path */ - if (_FS_RPATH && res == FR_OK && (dj.fn[NSFLAG] & NS_DOT)) { - res = FR_INVALID_NAME; /* Cannot remove dot entry */ - } -#if _FS_LOCK != 0 - if (res == FR_OK) res = chk_lock(&dj, 2); /* Check if it is an open object */ -#endif - if (res == FR_OK) { /* The object is accessible */ - if (dj.fn[NSFLAG] & NS_NONAME) { - res = FR_INVALID_NAME; /* Cannot remove the origin directory */ - } else { - if (dj.obj.attr & AM_RDO) { - res = FR_DENIED; /* Cannot remove R/O object */ - } - } - if (res == FR_OK) { -#if _FS_EXFAT - obj.fs = fs; - if (fs->fs_type == FS_EXFAT) { - obj.sclust = dclst = ld_dword(fs->dirbuf + XDIR_FstClus); - obj.objsize = ld_qword(fs->dirbuf + XDIR_FileSize); - obj.stat = fs->dirbuf[XDIR_GenFlags] & 2; - } else -#endif - { - dclst = ld_clust(fs, dj.dir); - } - if (dj.obj.attr & AM_DIR) { /* Is it a sub-directory? */ -#if _FS_RPATH != 0 - if (dclst == fs->cdir) { /* Is it the current directory? */ - res = FR_DENIED; - } else -#endif - { - sdj.obj.fs = fs; /* Open the sub-directory */ - sdj.obj.sclust = dclst; -#if _FS_EXFAT - if (fs->fs_type == FS_EXFAT) { - sdj.obj.objsize = obj.objsize; - sdj.obj.stat = obj.stat; - } -#endif - res = dir_sdi(&sdj, 0); - if (res == FR_OK) { - res = dir_read(&sdj, 0); /* Read an item */ - if (res == FR_OK) res = FR_DENIED; /* Not empty? */ - if (res == FR_NO_FILE) res = FR_OK; /* Empty? */ - } - } - } - } - if (res == FR_OK) { - res = dir_remove(&dj); /* Remove the directory entry */ - if (res == FR_OK && dclst) { /* Remove the cluster chain if exist */ -#if _FS_EXFAT - res = remove_chain(&obj, dclst, 0); -#else - res = remove_chain(&dj.obj, dclst, 0); -#endif - } - if (res == FR_OK) res = sync_fs(fs); - } - } - FREE_NAMBUF(); - } - - LEAVE_FF(fs, res); -} - - - - -/*-----------------------------------------------------------------------*/ -/* Create a Directory */ -/*-----------------------------------------------------------------------*/ - -FRESULT f_mkdir ( - const TCHAR* path /* Pointer to the directory path */ -) -{ - FRESULT res; - DIR dj; - FATFS *fs; - BYTE *dir; - UINT n; - DWORD dsc, dcl, pcl, tm; - DEF_NAMBUF - - - /* Get logical drive */ - res = find_volume(&path, &fs, FA_WRITE); - dj.obj.fs = fs; - if (res == FR_OK) { - INIT_NAMBUF(fs); - res = follow_path(&dj, path); /* Follow the file path */ - if (res == FR_OK) res = FR_EXIST; /* Any object with same name is already existing */ - if (_FS_RPATH && res == FR_NO_FILE && (dj.fn[NSFLAG] & NS_DOT)) { - res = FR_INVALID_NAME; - } - if (res == FR_NO_FILE) { /* Can create a new directory */ - dcl = create_chain(&dj.obj, 0); /* Allocate a cluster for the new directory table */ - dj.obj.objsize = (DWORD)fs->csize * SS(fs); - res = FR_OK; - if (dcl == 0) res = FR_DENIED; /* No space to allocate a new cluster */ - if (dcl == 1) res = FR_INT_ERR; - if (dcl == 0xFFFFFFFF) res = FR_DISK_ERR; - if (res == FR_OK) res = sync_window(fs); /* Flush FAT */ - tm = GET_FATTIME(); - if (res == FR_OK) { /* Initialize the new directory table */ - dsc = clust2sect(fs, dcl); - dir = fs->win; - mem_set(dir, 0, SS(fs)); - if (!_FS_EXFAT || fs->fs_type != FS_EXFAT) { - mem_set(dir + DIR_Name, ' ', 11); /* Create "." entry */ - dir[DIR_Name] = '.'; - dir[DIR_Attr] = AM_DIR; - st_dword(dir + DIR_ModTime, tm); - st_clust(fs, dir, dcl); - mem_cpy(dir + SZDIRE, dir, SZDIRE); /* Create ".." entry */ - dir[SZDIRE + 1] = '.'; pcl = dj.obj.sclust; - if (fs->fs_type == FS_FAT32 && pcl == fs->dirbase) pcl = 0; - st_clust(fs, dir + SZDIRE, pcl); - } - for (n = fs->csize; n; n--) { /* Write dot entries and clear following sectors */ - fs->winsect = dsc++; - fs->wflag = 1; - res = sync_window(fs); - if (res != FR_OK) break; - mem_set(dir, 0, SS(fs)); - } - } - if (res == FR_OK) { - res = dir_register(&dj); /* Register the object to the directoy */ - } - if (res == FR_OK) { -#if _FS_EXFAT - if (fs->fs_type == FS_EXFAT) { /* Initialize directory entry block */ - st_dword(fs->dirbuf + XDIR_ModTime, tm); /* Created time */ - st_dword(fs->dirbuf + XDIR_FstClus, dcl); /* Table start cluster */ - st_dword(fs->dirbuf + XDIR_FileSize, (DWORD)dj.obj.objsize); /* File size needs to be valid */ - st_dword(fs->dirbuf + XDIR_ValidFileSize, (DWORD)dj.obj.objsize); - fs->dirbuf[XDIR_GenFlags] = 3; /* Initialize the object flag (contiguous) */ - fs->dirbuf[XDIR_Attr] = AM_DIR; /* Attribute */ - res = store_xdir(&dj); - } else -#endif - { - dir = dj.dir; - st_dword(dir + DIR_ModTime, tm); /* Created time */ - st_clust(fs, dir, dcl); /* Table start cluster */ - dir[DIR_Attr] = AM_DIR; /* Attribute */ - fs->wflag = 1; - } - if (res == FR_OK) { - res = sync_fs(fs); - } - } else { - remove_chain(&dj.obj, dcl, 0); /* Could not register, remove cluster chain */ - } - } - FREE_NAMBUF(); - } - - LEAVE_FF(fs, res); -} - - - - -/*-----------------------------------------------------------------------*/ -/* Rename a File/Directory */ -/*-----------------------------------------------------------------------*/ - -FRESULT f_rename ( - const TCHAR* path_old, /* Pointer to the object name to be renamed */ - const TCHAR* path_new /* Pointer to the new name */ -) -{ - FRESULT res; - DIR djo, djn; - FATFS *fs; - BYTE buf[_FS_EXFAT ? SZDIRE * 2 : 24], *dir; - DWORD dw; - DEF_NAMBUF - - - get_ldnumber(&path_new); /* Snip drive number of new name off */ - res = find_volume(&path_old, &fs, FA_WRITE); /* Get logical drive of the old object */ - if (res == FR_OK) { - djo.obj.fs = fs; - INIT_NAMBUF(fs); - res = follow_path(&djo, path_old); /* Check old object */ - if (res == FR_OK && (djo.fn[NSFLAG] & (NS_DOT | NS_NONAME))) res = FR_INVALID_NAME; /* Check validity of name */ -#if _FS_LOCK != 0 - if (res == FR_OK) { - res = chk_lock(&djo, 2); - } -#endif - if (res == FR_OK) { /* Object to be renamed is found */ -#if _FS_EXFAT - if (fs->fs_type == FS_EXFAT) { /* At exFAT */ - BYTE nf, nn; - WORD nh; - - mem_cpy(buf, fs->dirbuf, SZDIRE * 2); /* Save 85+C0 entry of old object */ - mem_cpy(&djn, &djo, sizeof djo); - res = follow_path(&djn, path_new); /* Make sure if new object name is not in use */ - if (res == FR_OK) { /* Is new name already in use by any other object? */ - res = (djn.obj.sclust == djo.obj.sclust && djn.dptr == djo.dptr) ? FR_NO_FILE : FR_EXIST; - } - if (res == FR_NO_FILE) { /* It is a valid path and no name collision */ - res = dir_register(&djn); /* Register the new entry */ - if (res == FR_OK) { - nf = fs->dirbuf[XDIR_NumSec]; nn = fs->dirbuf[XDIR_NumName]; - nh = ld_word(fs->dirbuf + XDIR_NameHash); - mem_cpy(fs->dirbuf, buf, SZDIRE * 2); - fs->dirbuf[XDIR_NumSec] = nf; fs->dirbuf[XDIR_NumName] = nn; - st_word(fs->dirbuf + XDIR_NameHash, nh); -/* Start of critical section where an interruption can cause a cross-link */ - res = store_xdir(&djn); - } - } - } else -#endif - { /* At FAT12/FAT16/FAT32 */ - mem_cpy(buf, djo.dir + DIR_Attr, 21); /* Save information about the object except name */ - mem_cpy(&djn, &djo, sizeof (DIR)); /* Duplicate the directory object */ - res = follow_path(&djn, path_new); /* Make sure if new object name is not in use */ - if (res == FR_OK) { /* Is new name already in use by any other object? */ - res = (djn.obj.sclust == djo.obj.sclust && djn.dptr == djo.dptr) ? FR_NO_FILE : FR_EXIST; - } - if (res == FR_NO_FILE) { /* It is a valid path and no name collision */ - res = dir_register(&djn); /* Register the new entry */ - if (res == FR_OK) { - dir = djn.dir; /* Copy information about object except name */ - mem_cpy(dir + 13, buf + 2, 19); - dir[DIR_Attr] = buf[0] | AM_ARC; - fs->wflag = 1; - if ((dir[DIR_Attr] & AM_DIR) && djo.obj.sclust != djn.obj.sclust) { /* Update .. entry in the sub-directory if needed */ - dw = clust2sect(fs, ld_clust(fs, dir)); - if (!dw) { - res = FR_INT_ERR; - } else { -/* Start of critical section where an interruption can cause a cross-link */ - res = move_window(fs, dw); - dir = fs->win + SZDIRE * 1; /* Ptr to .. entry */ - if (res == FR_OK && dir[1] == '.') { - st_clust(fs, dir, djn.obj.sclust); - fs->wflag = 1; - } - } - } - } - } - } - if (res == FR_OK) { - res = dir_remove(&djo); /* Remove old entry */ - if (res == FR_OK) { - res = sync_fs(fs); - } - } -/* End of the critical section */ - } - FREE_NAMBUF(); - } - - LEAVE_FF(fs, res); -} - -#endif /* !_FS_READONLY */ -#endif /* _FS_MINIMIZE == 0 */ -#endif /* _FS_MINIMIZE <= 1 */ -#endif /* _FS_MINIMIZE <= 2 */ - - - -#if _USE_CHMOD && !_FS_READONLY -/*-----------------------------------------------------------------------*/ -/* Change Attribute */ -/*-----------------------------------------------------------------------*/ - -FRESULT f_chmod ( - const TCHAR* path, /* Pointer to the file path */ - BYTE attr, /* Attribute bits */ - BYTE mask /* Attribute mask to change */ -) -{ - FRESULT res; - DIR dj; - FATFS *fs; - DEF_NAMBUF - - - res = find_volume(&path, &fs, FA_WRITE); /* Get logical drive */ - dj.obj.fs = fs; - if (res == FR_OK) { - INIT_NAMBUF(fs); - res = follow_path(&dj, path); /* Follow the file path */ - if (res == FR_OK && (dj.fn[NSFLAG] & (NS_DOT | NS_NONAME))) res = FR_INVALID_NAME; /* Check object validity */ - if (res == FR_OK) { - mask &= AM_RDO|AM_HID|AM_SYS|AM_ARC; /* Valid attribute mask */ -#if _FS_EXFAT - if (fs->fs_type == FS_EXFAT) { - fs->dirbuf[XDIR_Attr] = (attr & mask) | (fs->dirbuf[XDIR_Attr] & (BYTE)~mask); /* Apply attribute change */ - res = store_xdir(&dj); - } else -#endif - { - dj.dir[DIR_Attr] = (attr & mask) | (dj.dir[DIR_Attr] & (BYTE)~mask); /* Apply attribute change */ - fs->wflag = 1; - } - if (res == FR_OK) { - res = sync_fs(fs); - } - } - FREE_NAMBUF(); - } - - LEAVE_FF(fs, res); -} - - - - -/*-----------------------------------------------------------------------*/ -/* Change Timestamp */ -/*-----------------------------------------------------------------------*/ - -FRESULT f_utime ( - const TCHAR* path, /* Pointer to the file/directory name */ - const FILINFO* fno /* Pointer to the time stamp to be set */ -) -{ - FRESULT res; - DIR dj; - FATFS *fs; - DEF_NAMBUF - - - res = find_volume(&path, &fs, FA_WRITE); /* Get logical drive */ - dj.obj.fs = fs; - if (res == FR_OK) { - INIT_NAMBUF(fs); - res = follow_path(&dj, path); /* Follow the file path */ - if (res == FR_OK && (dj.fn[NSFLAG] & (NS_DOT | NS_NONAME))) res = FR_INVALID_NAME; /* Check object validity */ - if (res == FR_OK) { -#if _FS_EXFAT - if (fs->fs_type == FS_EXFAT) { - st_dword(fs->dirbuf + XDIR_ModTime, (DWORD)fno->fdate << 16 | fno->ftime); - res = store_xdir(&dj); - } else -#endif - { - st_dword(dj.dir + DIR_ModTime, (DWORD)fno->fdate << 16 | fno->ftime); - fs->wflag = 1; - } - if (res == FR_OK) { - res = sync_fs(fs); - } - } - FREE_NAMBUF(); - } - - LEAVE_FF(fs, res); -} - -#endif /* _USE_CHMOD && !_FS_READONLY */ - - - -#if _USE_LABEL -/*-----------------------------------------------------------------------*/ -/* Get Volume Label */ -/*-----------------------------------------------------------------------*/ - -FRESULT f_getlabel ( - const TCHAR* path, /* Path name of the logical drive number */ - TCHAR* label, /* Pointer to a buffer to return the volume label */ - DWORD* vsn /* Pointer to a variable to return the volume serial number */ -) -{ - FRESULT res; - DIR dj; - FATFS *fs; - UINT si, di; -#if _LFN_UNICODE || _FS_EXFAT - WCHAR w; -#endif - - /* Get logical drive */ - res = find_volume(&path, &fs, 0); - - /* Get volume label */ - if (res == FR_OK && label) { - dj.obj.fs = fs; dj.obj.sclust = 0; /* Open root directory */ - res = dir_sdi(&dj, 0); - if (res == FR_OK) { - res = dir_read(&dj, 1); /* Find a volume label entry */ - if (res == FR_OK) { -#if _FS_EXFAT - if (fs->fs_type == FS_EXFAT) { - for (si = di = 0; si < dj.dir[XDIR_NumLabel]; si++) { /* Extract volume label from 83 entry */ - w = ld_word(dj.dir + XDIR_Label + si * 2); -#if _LFN_UNICODE - label[di++] = w; -#else - w = ff_convert(w, 0); /* Unicode -> OEM */ - if (w == 0) w = '?'; /* Replace wrong character */ - if (_DF1S && w >= 0x100) label[di++] = (char)(w >> 8); - label[di++] = (char)w; -#endif - } - label[di] = 0; - } else -#endif - { - si = di = 0; /* Extract volume label from AM_VOL entry with code comversion */ - do { -#if _LFN_UNICODE - w = (si < 11) ? dj.dir[si++] : ' '; - if (IsDBCS1(w) && si < 11 && IsDBCS2(dj.dir[si])) { - w = w << 8 | dj.dir[si++]; - } - label[di++] = ff_convert(w, 1); /* OEM -> Unicode */ -#else - label[di++] = dj.dir[si++]; -#endif - } while (di < 11); - do { /* Truncate trailing spaces */ - label[di] = 0; - if (di == 0) break; - } while (label[--di] == ' '); - } - } - } - if (res == FR_NO_FILE) { /* No label entry and return nul string */ - label[0] = 0; - res = FR_OK; - } - } - - /* Get volume serial number */ - if (res == FR_OK && vsn) { - res = move_window(fs, fs->volbase); - if (res == FR_OK) { - switch (fs->fs_type) { - case FS_EXFAT: - di = BPB_VolIDEx; break; - - case FS_FAT32: - di = BS_VolID32; break; - - default: - di = BS_VolID; - } - *vsn = ld_dword(fs->win + di); - } - } - - LEAVE_FF(fs, res); -} - - - -#if !_FS_READONLY -/*-----------------------------------------------------------------------*/ -/* Set Volume Label */ -/*-----------------------------------------------------------------------*/ - -FRESULT f_setlabel ( - const TCHAR* label /* Pointer to the volume label to set */ -) -{ - FRESULT res; - DIR dj; - FATFS *fs; - BYTE dirvn[22]; - UINT i, j, slen; - WCHAR w; - static const char badchr[] = "\"*+,.:;<=>\?[]|\x7F"; - - - /* Get logical drive */ - res = find_volume(&label, &fs, FA_WRITE); - if (res != FR_OK) LEAVE_FF(fs, res); - dj.obj.fs = fs; - - /* Get length of given volume label */ - for (slen = 0; (UINT)label[slen] >= ' '; slen++) ; /* Get name length */ - -#if _FS_EXFAT - if (fs->fs_type == FS_EXFAT) { /* On the exFAT volume */ - for (i = j = 0; i < slen; ) { /* Create volume label in directory form */ - w = label[i++]; -#if !_LFN_UNICODE - if (IsDBCS1(w)) { - w = (i < slen && IsDBCS2(label[i])) ? w << 8 | (BYTE)label[i++] : 0; - } - w = ff_convert(w, 1); -#endif - if (w == 0 || chk_chr(badchr, w) || j == 22) { /* Check validity check validity of the volume label */ - LEAVE_FF(fs, FR_INVALID_NAME); - } - st_word(dirvn + j, w); j += 2; - } - slen = j; - } else -#endif - { /* On the FAT12/16/32 volume */ - for ( ; slen && label[slen - 1] == ' '; slen--) ; /* Remove trailing spaces */ - if (slen) { /* Is there a volume label to be set? */ - dirvn[0] = 0; i = j = 0; /* Create volume label in directory form */ - do { -#if _LFN_UNICODE - w = ff_convert(ff_wtoupper(label[i++]), 0); -#else - w = (BYTE)label[i++]; - if (IsDBCS1(w)) { - w = (j < 10 && i < slen && IsDBCS2(label[i])) ? w << 8 | (BYTE)label[i++] : 0; - } -#if _USE_LFN != 0 - w = ff_convert(ff_wtoupper(ff_convert(w, 1)), 0); -#else - if (IsLower(w)) w -= 0x20; /* To upper ASCII characters */ -#ifdef _EXCVT - if (w >= 0x80) w = ExCvt[w - 0x80]; /* To upper extended characters (SBCS cfg) */ -#else - if (!_DF1S && w >= 0x80) w = 0; /* Reject extended characters (ASCII cfg) */ -#endif -#endif -#endif - if (w == 0 || chk_chr(badchr, w) || j >= (UINT)((w >= 0x100) ? 10 : 11)) { /* Reject invalid characters for volume label */ - LEAVE_FF(fs, FR_INVALID_NAME); - } - if (w >= 0x100) dirvn[j++] = (BYTE)(w >> 8); - dirvn[j++] = (BYTE)w; - } while (i < slen); - while (j < 11) dirvn[j++] = ' '; /* Fill remaining name field */ - if (dirvn[0] == DDEM) LEAVE_FF(fs, FR_INVALID_NAME); /* Reject illegal name (heading DDEM) */ - } - } - - /* Set volume label */ - dj.obj.sclust = 0; /* Open root directory */ - res = dir_sdi(&dj, 0); - if (res == FR_OK) { - res = dir_read(&dj, 1); /* Get volume label entry */ - if (res == FR_OK) { - if (_FS_EXFAT && fs->fs_type == FS_EXFAT) { - dj.dir[XDIR_NumLabel] = (BYTE)(slen / 2); /* Change the volume label */ - mem_cpy(dj.dir + XDIR_Label, dirvn, slen); - } else { - if (slen) { - mem_cpy(dj.dir, dirvn, 11); /* Change the volume label */ - } else { - dj.dir[DIR_Name] = DDEM; /* Remove the volume label */ - } - } - fs->wflag = 1; - res = sync_fs(fs); - } else { /* No volume label entry is found or error */ - if (res == FR_NO_FILE) { - res = FR_OK; - if (slen) { /* Create a volume label entry */ - res = dir_alloc(&dj, 1); /* Allocate an entry */ - if (res == FR_OK) { - mem_set(dj.dir, 0, SZDIRE); /* Clear the entry */ - if (_FS_EXFAT && fs->fs_type == FS_EXFAT) { - dj.dir[XDIR_Type] = 0x83; /* Create 83 entry */ - dj.dir[XDIR_NumLabel] = (BYTE)(slen / 2); - mem_cpy(dj.dir + XDIR_Label, dirvn, slen); - } else { - dj.dir[DIR_Attr] = AM_VOL; /* Create volume label entry */ - mem_cpy(dj.dir, dirvn, 11); - } - fs->wflag = 1; - res = sync_fs(fs); - } - } - } - } - } - - LEAVE_FF(fs, res); -} - -#endif /* !_FS_READONLY */ -#endif /* _USE_LABEL */ - - - -#if _USE_EXPAND && !_FS_READONLY -/*-----------------------------------------------------------------------*/ -/* Allocate a Contiguous Blocks to the File */ -/*-----------------------------------------------------------------------*/ - -FRESULT f_expand ( - FIL* fp, /* Pointer to the file object */ - FSIZE_t fsz, /* File size to be expanded to */ - BYTE opt /* Operation mode 0:Find and prepare or 1:Find and allocate */ -) -{ - FRESULT res; - FATFS *fs; - DWORD n, clst, stcl, scl, ncl, tcl, lclst; - - - res = validate(&fp->obj, &fs); /* Check validity of the file object */ - if (res != FR_OK || (res = (FRESULT)fp->err) != FR_OK) LEAVE_FF(fs, res); - if (fsz == 0 || fp->obj.objsize != 0 || !(fp->flag & FA_WRITE)) LEAVE_FF(fs, FR_DENIED); -#if _FS_EXFAT - if (fs->fs_type != FS_EXFAT && fsz >= 0x100000000) LEAVE_FF(fs, FR_DENIED); /* Check if in size limit */ -#endif - n = (DWORD)fs->csize * SS(fs); /* Cluster size */ - tcl = (DWORD)(fsz / n) + ((fsz & (n - 1)) ? 1 : 0); /* Number of clusters required */ - stcl = fs->last_clst; lclst = 0; - if (stcl < 2 || stcl >= fs->n_fatent) stcl = 2; - -#if _FS_EXFAT - if (fs->fs_type == FS_EXFAT) { - scl = find_bitmap(fs, stcl, tcl); /* Find a contiguous cluster block */ - if (scl == 0) res = FR_DENIED; /* No contiguous cluster block was found */ - if (scl == 0xFFFFFFFF) res = FR_DISK_ERR; - if (res == FR_OK) { /* A contiguous free area is found */ - if (opt) { /* Allocate it now */ - res = change_bitmap(fs, scl, tcl, 1); /* Mark the cluster block 'in use' */ - lclst = scl + tcl - 1; - } else { /* Set it as suggested point for next allocation */ - lclst = scl - 1; - } - } - } else -#endif - { - scl = clst = stcl; ncl = 0; - for (;;) { /* Find a contiguous cluster block */ - n = get_fat(&fp->obj, clst); - if (++clst >= fs->n_fatent) clst = 2; - if (n == 1) { res = FR_INT_ERR; break; } - if (n == 0xFFFFFFFF) { res = FR_DISK_ERR; break; } - if (n == 0) { /* Is it a free cluster? */ - if (++ncl == tcl) break; /* Break if a contiguous cluster block is found */ - } else { - scl = clst; ncl = 0; /* Not a free cluster */ - } - if (clst == stcl) { res = FR_DENIED; break; } /* No contiguous cluster? */ - } - if (res == FR_OK) { /* A contiguous free area is found */ - if (opt) { /* Allocate it now */ - for (clst = scl, n = tcl; n; clst++, n--) { /* Create a cluster chain on the FAT */ - res = put_fat(fs, clst, (n == 1) ? 0xFFFFFFFF : clst + 1); - if (res != FR_OK) break; - lclst = clst; - } - } else { /* Set it as suggested point for next allocation */ - lclst = scl - 1; - } - } - } - - if (res == FR_OK) { - fs->last_clst = lclst; /* Set suggested start cluster to start next */ - if (opt) { /* Is it allocated now? */ - fp->obj.sclust = scl; /* Update object allocation information */ - fp->obj.objsize = fsz; - if (_FS_EXFAT) fp->obj.stat = 2; /* Set status 'contiguous chain' */ - fp->flag |= FA_MODIFIED; - if (fs->free_clst <= fs->n_fatent - 2) { /* Update FSINFO */ - fs->free_clst -= tcl; - fs->fsi_flag |= 1; - } - } - } - - LEAVE_FF(fs, res); -} - -#endif /* _USE_EXPAND && !_FS_READONLY */ - - - -#if _USE_FORWARD -/*-----------------------------------------------------------------------*/ -/* Forward data to the stream directly */ -/*-----------------------------------------------------------------------*/ - -FRESULT f_forward ( - FIL* fp, /* Pointer to the file object */ - UINT (*func)(const BYTE*,UINT), /* Pointer to the streaming function */ - UINT btf, /* Number of bytes to forward */ - UINT* bf /* Pointer to number of bytes forwarded */ -) -{ - FRESULT res; - FATFS *fs; - DWORD clst, sect; - FSIZE_t remain; - UINT rcnt, csect; - BYTE *dbuf; - - - *bf = 0; /* Clear transfer byte counter */ - res = validate(&fp->obj, &fs); /* Check validity of the file object */ - if (res != FR_OK || (res = (FRESULT)fp->err) != FR_OK) LEAVE_FF(fs, res); - if (!(fp->flag & FA_READ)) LEAVE_FF(fs, FR_DENIED); /* Check access mode */ - - remain = fp->obj.objsize - fp->fptr; - if (btf > remain) btf = (UINT)remain; /* Truncate btf by remaining bytes */ - - for ( ; btf && (*func)(0, 0); /* Repeat until all data transferred or stream goes busy */ - fp->fptr += rcnt, *bf += rcnt, btf -= rcnt) { - csect = (UINT)(fp->fptr / SS(fs) & (fs->csize - 1)); /* Sector offset in the cluster */ - if (fp->fptr % SS(fs) == 0) { /* On the sector boundary? */ - if (csect == 0) { /* On the cluster boundary? */ - clst = (fp->fptr == 0) ? /* On the top of the file? */ - fp->obj.sclust : get_fat(&fp->obj, fp->clust); - if (clst <= 1) ABORT(fs, FR_INT_ERR); - if (clst == 0xFFFFFFFF) ABORT(fs, FR_DISK_ERR); - fp->clust = clst; /* Update current cluster */ - } - } - sect = clust2sect(fs, fp->clust); /* Get current data sector */ - if (!sect) ABORT(fs, FR_INT_ERR); - sect += csect; -#if _FS_TINY - if (move_window(fs, sect) != FR_OK) ABORT(fs, FR_DISK_ERR); /* Move sector window to the file data */ - dbuf = fs->win; -#else - if (fp->sect != sect) { /* Fill sector cache with file data */ -#if !_FS_READONLY - if (fp->flag & FA_DIRTY) { /* Write-back dirty sector cache */ - if (disk_write(fs->drv, fp->buf, fp->sect, 1) != RES_OK) ABORT(fs, FR_DISK_ERR); - fp->flag &= (BYTE)~FA_DIRTY; - } -#endif - if (disk_read(fs->drv, fp->buf, sect, 1) != RES_OK) ABORT(fs, FR_DISK_ERR); - } - dbuf = fp->buf; -#endif - fp->sect = sect; - rcnt = SS(fs) - (UINT)fp->fptr % SS(fs); /* Number of bytes left in the sector */ - if (rcnt > btf) rcnt = btf; /* Clip it by btr if needed */ - rcnt = (*func)(dbuf + ((UINT)fp->fptr % SS(fs)), rcnt); /* Forward the file data */ - if (!rcnt) ABORT(fs, FR_INT_ERR); - } - - LEAVE_FF(fs, FR_OK); -} -#endif /* _USE_FORWARD */ - - - -#if _USE_MKFS && !_FS_READONLY -/*-----------------------------------------------------------------------*/ -/* Create an FAT/exFAT volume */ -/*-----------------------------------------------------------------------*/ - -FRESULT f_mkfs ( - const TCHAR* path, /* Logical drive number */ - BYTE opt, /* Format option */ - DWORD au, /* Size of allocation unit (cluster) [byte] */ - void* work, /* Pointer to working buffer */ - UINT len /* Size of working buffer */ -) -{ - const UINT n_fats = 1; /* Number of FATs for FAT12/16/32 volume (1 or 2) */ - const UINT n_rootdir = 512; /* Number of root directory entries for FAT12/16 volume */ - static const WORD cst[] = {1, 4, 16, 64, 256, 512, 0}; /* Cluster size boundary for FAT12/16 volume (4Ks unit) */ - static const WORD cst32[] = {1, 2, 4, 8, 16, 32, 0}; /* Cluster size boundary for FAT32 volume (128Ks unit) */ - BYTE fmt, sys, *buf, *pte, pdrv, part; - WORD ss; - DWORD szb_buf, sz_buf, sz_blk, n_clst, pau, sect, nsect, n; - DWORD b_vol, b_fat, b_data; /* Base LBA for volume, fat, data */ - DWORD sz_vol, sz_rsv, sz_fat, sz_dir; /* Size for volume, fat, dir, data */ - UINT i; - int vol; - DSTATUS stat; -#if _USE_TRIM || _FS_EXFAT - DWORD tbl[3]; -#endif - - - /* Check mounted drive and clear work area */ - vol = get_ldnumber(&path); /* Get target logical drive */ - if (vol < 0) return FR_INVALID_DRIVE; - if (FatFs[vol]) FatFs[vol]->fs_type = 0; /* Clear the volume */ - pdrv = LD2PD(vol); /* Physical drive */ - part = LD2PT(vol); /* Partition (0:create as new, 1-4:get from partition table) */ - - /* Check physical drive status */ - stat = disk_initialize(pdrv); - if (stat & STA_NOINIT) return FR_NOT_READY; - if (stat & STA_PROTECT) return FR_WRITE_PROTECTED; - if (disk_ioctl(pdrv, GET_BLOCK_SIZE, &sz_blk) != RES_OK || !sz_blk || sz_blk > 32768 || (sz_blk & (sz_blk - 1))) sz_blk = 1; /* Erase block to align data area */ -#if _MAX_SS != _MIN_SS /* Get sector size of the medium if variable sector size cfg. */ - if (disk_ioctl(pdrv, GET_SECTOR_SIZE, &ss) != RES_OK) return FR_DISK_ERR; - if (ss > _MAX_SS || ss < _MIN_SS || (ss & (ss - 1))) return FR_DISK_ERR; -#else - ss = _MAX_SS; -#endif - if ((au != 0 && au < ss) || au > 0x1000000 || (au & (au - 1))) return FR_INVALID_PARAMETER; /* Check if au is valid */ - au /= ss; /* Cluster size in unit of sector */ - - /* Get working buffer */ - buf = (BYTE*)work; /* Working buffer */ - sz_buf = len / ss; /* Size of working buffer (sector) */ - szb_buf = sz_buf * ss; /* Size of working buffer (byte) */ - if (!szb_buf) return FR_MKFS_ABORTED; - - /* Determine where the volume to be located (b_vol, sz_vol) */ - if (_MULTI_PARTITION && part != 0) { - /* Get partition information from partition table in the MBR */ - if (disk_read(pdrv, buf, 0, 1) != RES_OK) return FR_DISK_ERR; /* Load MBR */ - if (ld_word(buf + BS_55AA) != 0xAA55) return FR_MKFS_ABORTED; /* Check if MBR is valid */ - pte = buf + (MBR_Table + (part - 1) * SZ_PTE); - if (!pte[PTE_System]) return FR_MKFS_ABORTED; /* No partition? */ - b_vol = ld_dword(pte + PTE_StLba); /* Get volume start sector */ - sz_vol = ld_dword(pte + PTE_SizLba); /* Get volume size */ - } else { - /* Create a single-partition in this function */ - if (disk_ioctl(pdrv, GET_SECTOR_COUNT, &sz_vol) != RES_OK) return FR_DISK_ERR; - b_vol = (opt & FM_SFD) ? 0 : 63; /* Volume start sector */ - if (sz_vol < b_vol) return FR_MKFS_ABORTED; - sz_vol -= b_vol; /* Volume size */ - } - if (sz_vol < 128) return FR_MKFS_ABORTED; /* Check if volume size is >=128s */ - - /* Pre-determine the FAT type */ - do { - if (_FS_EXFAT && (opt & FM_EXFAT)) { /* exFAT possible? */ - if ((opt & FM_ANY) == FM_EXFAT || sz_vol >= 0x4000000 || au > 128) { /* exFAT only, vol >= 64Ms or au > 128s ? */ - fmt = FS_EXFAT; break; - } - } - if (au > 128) return FR_INVALID_PARAMETER; /* Too large au for FAT/FAT32 */ - if (opt & FM_FAT32) { /* FAT32 possible? */ - if ((opt & FM_ANY) == FM_FAT32 || !(opt & FM_FAT)) { /* FAT32 only or no-FAT? */ - fmt = FS_FAT32; break; - } - } - if (!(opt & FM_FAT)) return FR_INVALID_PARAMETER; /* no-FAT? */ - fmt = FS_FAT16; - } while (0); - -#if _FS_EXFAT - if (fmt == FS_EXFAT) { /* Create an exFAT volume */ - DWORD szb_bit, szb_case, sum, nb, cl; - WCHAR ch, si; - UINT j, st; - BYTE b; - - if (sz_vol < 0x1000) return FR_MKFS_ABORTED; /* Too small volume? */ -#if _USE_TRIM - tbl[0] = b_vol; tbl[1] = b_vol + sz_vol - 1; /* Inform the device the volume area may be erased */ - disk_ioctl(pdrv, CTRL_TRIM, tbl); -#endif - /* Determine FAT location, data location and number of clusters */ - if (!au) { /* au auto-selection */ - au = 8; - if (sz_vol >= 0x80000) au = 64; /* >= 512Ks */ - if (sz_vol >= 0x4000000) au = 256; /* >= 64Ms */ - } - b_fat = b_vol + 32; /* FAT start at offset 32 */ - sz_fat = ((sz_vol / au + 2) * 4 + ss - 1) / ss; /* Number of FAT sectors */ - b_data = (b_fat + sz_fat + sz_blk - 1) & ~(sz_blk - 1); /* Align data area to the erase block boundary */ - if (b_data >= sz_vol / 2) return FR_MKFS_ABORTED; /* Too small volume? */ - n_clst = (sz_vol - (b_data - b_vol)) / au; /* Number of clusters */ - if (n_clst <16) return FR_MKFS_ABORTED; /* Too few clusters? */ - if (n_clst > MAX_EXFAT) return FR_MKFS_ABORTED; /* Too many clusters? */ - - szb_bit = (n_clst + 7) / 8; /* Size of allocation bitmap */ - tbl[0] = (szb_bit + au * ss - 1) / (au * ss); /* Number of allocation bitmap clusters */ - - /* Create a compressed up-case table */ - sect = b_data + au * tbl[0]; /* Table start sector */ - sum = 0; /* Table checksum to be stored in the 82 entry */ - st = si = i = j = szb_case = 0; - do { - switch (st) { - case 0: - ch = ff_wtoupper(si); /* Get an up-case char */ - if (ch != si) { - si++; break; /* Store the up-case char if exist */ - } - for (j = 1; (WCHAR)(si + j) && (WCHAR)(si + j) == ff_wtoupper((WCHAR)(si + j)); j++) ; /* Get run length of no-case block */ - if (j >= 128) { - ch = 0xFFFF; st = 2; break; /* Compress the no-case block if run is >= 128 */ - } - st = 1; /* Do not compress short run */ - /* go to next case */ - case 1: - ch = si++; /* Fill the short run */ - if (--j == 0) st = 0; - break; - - default: - ch = (WCHAR)j; si += j; /* Number of chars to skip */ - st = 0; - } - sum = xsum32(buf[i + 0] = (BYTE)ch, sum); /* Put it into the write buffer */ - sum = xsum32(buf[i + 1] = (BYTE)(ch >> 8), sum); - i += 2; szb_case += 2; - if (!si || i == szb_buf) { /* Write buffered data when buffer full or end of process */ - n = (i + ss - 1) / ss; - if (disk_write(pdrv, buf, sect, n) != RES_OK) return FR_DISK_ERR; - sect += n; i = 0; - } - } while (si); - tbl[1] = (szb_case + au * ss - 1) / (au * ss); /* Number of up-case table clusters */ - tbl[2] = 1; /* Number of root dir clusters */ - - /* Initialize the allocation bitmap */ - sect = b_data; nsect = (szb_bit + ss - 1) / ss; /* Start of bitmap and number of sectors */ - nb = tbl[0] + tbl[1] + tbl[2]; /* Number of clusters in-use by system */ - do { - mem_set(buf, 0, szb_buf); - for (i = 0; nb >= 8 && i < szb_buf; buf[i++] = 0xFF, nb -= 8) ; - for (b = 1; nb && i < szb_buf; buf[i] |= b, b <<= 1, nb--) ; - n = (nsect > sz_buf) ? sz_buf : nsect; /* Write the buffered data */ - if (disk_write(pdrv, buf, sect, n) != RES_OK) return FR_DISK_ERR; - sect += n; nsect -= n; - } while (nsect); - - /* Initialize the FAT */ - sect = b_fat; nsect = sz_fat; /* Start of FAT and number of FAT sectors */ - j = nb = cl = 0; - do { - mem_set(buf, 0, szb_buf); i = 0; /* Clear work area and reset write index */ - if (cl == 0) { /* Set entry 0 and 1 */ - st_dword(buf + i, 0xFFFFFFF8); i += 4; cl++; - st_dword(buf + i, 0xFFFFFFFF); i += 4; cl++; - } - do { /* Create chains of bitmap, up-case and root dir */ - while (nb && i < szb_buf) { /* Create a chain */ - st_dword(buf + i, (nb > 1) ? cl + 1 : 0xFFFFFFFF); - i += 4; cl++; nb--; - } - if (!nb && j < 3) nb = tbl[j++]; /* Next chain */ - } while (nb && i < szb_buf); - n = (nsect > sz_buf) ? sz_buf : nsect; /* Write the buffered data */ - if (disk_write(pdrv, buf, sect, n) != RES_OK) return FR_DISK_ERR; - sect += n; nsect -= n; - } while (nsect); - - /* Initialize the root directory */ - mem_set(buf, 0, szb_buf); - buf[SZDIRE * 0 + 0] = 0x83; /* 83 entry (volume label) */ - buf[SZDIRE * 1 + 0] = 0x81; /* 81 entry (allocation bitmap) */ - st_dword(buf + SZDIRE * 1 + 20, 2); - st_dword(buf + SZDIRE * 1 + 24, szb_bit); - buf[SZDIRE * 2 + 0] = 0x82; /* 82 entry (up-case table) */ - st_dword(buf + SZDIRE * 2 + 4, sum); - st_dword(buf + SZDIRE * 2 + 20, 2 + tbl[0]); - st_dword(buf + SZDIRE * 2 + 24, szb_case); - sect = b_data + au * (tbl[0] + tbl[1]); nsect = au; /* Start of the root directory and number of sectors */ - do { /* Fill root directory sectors */ - n = (nsect > sz_buf) ? sz_buf : nsect; - if (disk_write(pdrv, buf, sect, n) != RES_OK) return FR_DISK_ERR; - mem_set(buf, 0, ss); - sect += n; nsect -= n; - } while (nsect); - - /* Create two set of the exFAT VBR blocks */ - sect = b_vol; - for (n = 0; n < 2; n++) { - /* Main record (+0) */ - mem_set(buf, 0, ss); - mem_cpy(buf + BS_JmpBoot, "\xEB\x76\x90" "EXFAT ", 11); /* Boot jump code (x86), OEM name */ - st_dword(buf + BPB_VolOfsEx, b_vol); /* Volume offset in the physical drive [sector] */ - st_dword(buf + BPB_TotSecEx, sz_vol); /* Volume size [sector] */ - st_dword(buf + BPB_FatOfsEx, b_fat - b_vol); /* FAT offset [sector] */ - st_dword(buf + BPB_FatSzEx, sz_fat); /* FAT size [sector] */ - st_dword(buf + BPB_DataOfsEx, b_data - b_vol); /* Data offset [sector] */ - st_dword(buf + BPB_NumClusEx, n_clst); /* Number of clusters */ - st_dword(buf + BPB_RootClusEx, 2 + tbl[0] + tbl[1]); /* Root dir cluster # */ - st_dword(buf + BPB_VolIDEx, GET_FATTIME()); /* VSN */ - st_word(buf + BPB_FSVerEx, 0x100); /* File system version (1.00) */ - for (buf[BPB_BytsPerSecEx] = 0, i = ss; i >>= 1; buf[BPB_BytsPerSecEx]++) ; /* Log2 of sector size [byte] */ - for (buf[BPB_SecPerClusEx] = 0, i = au; i >>= 1; buf[BPB_SecPerClusEx]++) ; /* Log2 of cluster size [sector] */ - buf[BPB_NumFATsEx] = 1; /* Number of FATs */ - buf[BPB_DrvNumEx] = 0x80; /* Drive number (for int13) */ - st_word(buf + BS_BootCodeEx, 0xFEEB); /* Boot code (x86) */ - st_word(buf + BS_55AA, 0xAA55); /* Signature (placed here regardless of sector size) */ - for (i = sum = 0; i < ss; i++) { /* VBR checksum */ - if (i != BPB_VolFlagEx && i != BPB_VolFlagEx + 1 && i != BPB_PercInUseEx) sum = xsum32(buf[i], sum); - } - if (disk_write(pdrv, buf, sect++, 1) != RES_OK) return FR_DISK_ERR; - /* Extended bootstrap record (+1..+8) */ - mem_set(buf, 0, ss); - st_word(buf + ss - 2, 0xAA55); /* Signature (placed at end of sector) */ - for (j = 1; j < 9; j++) { - for (i = 0; i < ss; sum = xsum32(buf[i++], sum)) ; /* VBR checksum */ - if (disk_write(pdrv, buf, sect++, 1) != RES_OK) return FR_DISK_ERR; - } - /* OEM/Reserved record (+9..+10) */ - mem_set(buf, 0, ss); - for ( ; j < 11; j++) { - for (i = 0; i < ss; sum = xsum32(buf[i++], sum)) ; /* VBR checksum */ - if (disk_write(pdrv, buf, sect++, 1) != RES_OK) return FR_DISK_ERR; - } - /* Sum record (+11) */ - for (i = 0; i < ss; i += 4) st_dword(buf + i, sum); /* Fill with checksum value */ - if (disk_write(pdrv, buf, sect++, 1) != RES_OK) return FR_DISK_ERR; - } - - } else -#endif /* _FS_EXFAT */ - { /* Create an FAT12/16/32 volume */ - do { - pau = au; - /* Pre-determine number of clusters and FAT sub-type */ - if (fmt == FS_FAT32) { /* FAT32 volume */ - if (!pau) { /* au auto-selection */ - n = sz_vol / 0x20000; /* Volume size in unit of 128KS */ - for (i = 0, pau = 1; cst32[i] && cst32[i] <= n; i++, pau <<= 1) ; /* Get from table */ - } - n_clst = sz_vol / pau; /* Number of clusters */ - sz_fat = (n_clst * 4 + 8 + ss - 1) / ss; /* FAT size [sector] */ - sz_rsv = 32; /* Number of reserved sectors */ - sz_dir = 0; /* No static directory */ - if (n_clst <= MAX_FAT16 || n_clst > MAX_FAT32) return FR_MKFS_ABORTED; - } else { /* FAT12/16 volume */ - if (!pau) { /* au auto-selection */ - n = sz_vol / 0x1000; /* Volume size in unit of 4KS */ - for (i = 0, pau = 1; cst[i] && cst[i] <= n; i++, pau <<= 1) ; /* Get from table */ - } - n_clst = sz_vol / pau; - if (n_clst > MAX_FAT12) { - n = n_clst * 2 + 4; /* FAT size [byte] */ - } else { - fmt = FS_FAT12; - n = (n_clst * 3 + 1) / 2 + 3; /* FAT size [byte] */ - } - sz_fat = (n + ss - 1) / ss; /* FAT size [sector] */ - sz_rsv = 1; /* Number of reserved sectors */ - sz_dir = (DWORD)n_rootdir * SZDIRE / ss; /* Rootdir size [sector] */ - } - b_fat = b_vol + sz_rsv; /* FAT base */ - b_data = b_fat + sz_fat * n_fats + sz_dir; /* Data base */ - - /* Align data base to erase block boundary (for flash memory media) */ - n = ((b_data + sz_blk - 1) & ~(sz_blk - 1)) - b_data; /* Next nearest erase block from current data base */ - if (fmt == FS_FAT32) { /* FAT32: Move FAT base */ - sz_rsv += n; b_fat += n; - } else { /* FAT12/16: Expand FAT size */ - sz_fat += n / n_fats; - } - - /* Determine number of clusters and final check of validity of the FAT sub-type */ - if (sz_vol < b_data + pau * 16 - b_vol) return FR_MKFS_ABORTED; /* Too small volume */ - n_clst = (sz_vol - sz_rsv - sz_fat * n_fats - sz_dir) / pau; - if (fmt == FS_FAT32) { - if (n_clst <= MAX_FAT16) { /* Too few clusters for FAT32 */ - if (!au && (au = pau / 2) != 0) continue; /* Adjust cluster size and retry */ - return FR_MKFS_ABORTED; - } - } - if (fmt == FS_FAT16) { - if (n_clst > MAX_FAT16) { /* Too many clusters for FAT16 */ - if (!au && (pau * 2) <= 64) { - au = pau * 2; continue; /* Adjust cluster size and retry */ - } - if ((opt & FM_FAT32)) { - fmt = FS_FAT32; continue; /* Switch type to FAT32 and retry */ - } - if (!au && (au = pau * 2) <= 128) continue; /* Adjust cluster size and retry */ - return FR_MKFS_ABORTED; - } - if (n_clst <= MAX_FAT12) { /* Too few clusters for FAT16 */ - if (!au && (au = pau * 2) <= 128) continue; /* Adjust cluster size and retry */ - return FR_MKFS_ABORTED; - } - } - if (fmt == FS_FAT12 && n_clst > MAX_FAT12) return FR_MKFS_ABORTED; /* Too many clusters for FAT12 */ - - /* Ok, it is the valid cluster configuration */ - break; - } while (1); - -#if _USE_TRIM - tbl[0] = b_vol; tbl[1] = b_vol + sz_vol - 1; /* Inform the device the volume area can be erased */ - disk_ioctl(pdrv, CTRL_TRIM, tbl); -#endif - /* Create FAT VBR */ - mem_set(buf, 0, ss); - mem_cpy(buf + BS_JmpBoot, "\xEB\xFE\x90" "MSDOS5.0", 11);/* Boot jump code (x86), OEM name */ - st_word(buf + BPB_BytsPerSec, ss); /* Sector size [byte] */ - buf[BPB_SecPerClus] = (BYTE)pau; /* Cluster size [sector] */ - st_word(buf + BPB_RsvdSecCnt, (WORD)sz_rsv); /* Size of reserved area */ - buf[BPB_NumFATs] = (BYTE)n_fats; /* Number of FATs */ - st_word(buf + BPB_RootEntCnt, (WORD)((fmt == FS_FAT32) ? 0 : n_rootdir)); /* Number of root directory entries */ - if (sz_vol < 0x10000) { - st_word(buf + BPB_TotSec16, (WORD)sz_vol); /* Volume size in 16-bit LBA */ - } else { - st_dword(buf + BPB_TotSec32, sz_vol); /* Volume size in 32-bit LBA */ - } - buf[BPB_Media] = 0xF8; /* Media descriptor byte */ - st_word(buf + BPB_SecPerTrk, 63); /* Number of sectors per track (for int13) */ - st_word(buf + BPB_NumHeads, 255); /* Number of heads (for int13) */ - st_dword(buf + BPB_HiddSec, b_vol); /* Volume offset in the physical drive [sector] */ - if (fmt == FS_FAT32) { - st_dword(buf + BS_VolID32, GET_FATTIME()); /* VSN */ - st_dword(buf + BPB_FATSz32, sz_fat); /* FAT size [sector] */ - st_dword(buf + BPB_RootClus32, 2); /* Root directory cluster # (2) */ - st_word(buf + BPB_FSInfo32, 1); /* Offset of FSINFO sector (VBR + 1) */ - st_word(buf + BPB_BkBootSec32, 6); /* Offset of backup VBR (VBR + 6) */ - buf[BS_DrvNum32] = 0x80; /* Drive number (for int13) */ - buf[BS_BootSig32] = 0x29; /* Extended boot signature */ - mem_cpy(buf + BS_VolLab32, "NO NAME " "FAT32 ", 19); /* Volume label, FAT signature */ - } else { - st_dword(buf + BS_VolID, GET_FATTIME()); /* VSN */ - st_word(buf + BPB_FATSz16, (WORD)sz_fat); /* FAT size [sector] */ - buf[BS_DrvNum] = 0x80; /* Drive number (for int13) */ - buf[BS_BootSig] = 0x29; /* Extended boot signature */ - mem_cpy(buf + BS_VolLab, "NO NAME " "FAT ", 19); /* Volume label, FAT signature */ - } - st_word(buf + BS_55AA, 0xAA55); /* Signature (offset is fixed here regardless of sector size) */ - if (disk_write(pdrv, buf, b_vol, 1) != RES_OK) return FR_DISK_ERR; /* Write it to the VBR sector */ - - /* Create FSINFO record if needed */ - if (fmt == FS_FAT32) { - disk_write(pdrv, buf, b_vol + 6, 1); /* Write backup VBR (VBR + 6) */ - mem_set(buf, 0, ss); - st_dword(buf + FSI_LeadSig, 0x41615252); - st_dword(buf + FSI_StrucSig, 0x61417272); - st_dword(buf + FSI_Free_Count, n_clst - 1); /* Number of free clusters */ - st_dword(buf + FSI_Nxt_Free, 2); /* Last allocated cluster# */ - st_word(buf + BS_55AA, 0xAA55); - disk_write(pdrv, buf, b_vol + 7, 1); /* Write backup FSINFO (VBR + 7) */ - disk_write(pdrv, buf, b_vol + 1, 1); /* Write original FSINFO (VBR + 1) */ - } - - /* Initialize FAT area */ - mem_set(buf, 0, (UINT)szb_buf); - sect = b_fat; /* FAT start sector */ - for (i = 0; i < n_fats; i++) { /* Initialize FATs each */ - if (fmt == FS_FAT32) { - st_dword(buf + 0, 0xFFFFFFF8); /* Entry 0 */ - st_dword(buf + 4, 0xFFFFFFFF); /* Entry 1 */ - st_dword(buf + 8, 0x0FFFFFFF); /* Entry 2 (root directory) */ - } else { - st_dword(buf + 0, (fmt == FS_FAT12) ? 0xFFFFF8 : 0xFFFFFFF8); /* Entry 0 and 1 */ - } - nsect = sz_fat; /* Number of FAT sectors */ - do { /* Fill FAT sectors */ - n = (nsect > sz_buf) ? sz_buf : nsect; - if (disk_write(pdrv, buf, sect, (UINT)n) != RES_OK) return FR_DISK_ERR; - mem_set(buf, 0, ss); - sect += n; nsect -= n; - } while (nsect); - } - - /* Initialize root directory (fill with zero) */ - nsect = (fmt == FS_FAT32) ? pau : sz_dir; /* Number of root directory sectors */ - do { - n = (nsect > sz_buf) ? sz_buf : nsect; - if (disk_write(pdrv, buf, sect, (UINT)n) != RES_OK) return FR_DISK_ERR; - sect += n; nsect -= n; - } while (nsect); - } - - /* Determine system ID in the partition table */ - if (_FS_EXFAT && fmt == FS_EXFAT) { - sys = 0x07; /* HPFS/NTFS/exFAT */ - } else { - if (fmt == FS_FAT32) { - sys = 0x0C; /* FAT32X */ - } else { - if (sz_vol >= 0x10000) { - sys = 0x06; /* FAT12/16 (>=64KS) */ - } else { - sys = (fmt == FS_FAT16) ? 0x04 : 0x01; /* FAT16 (<64KS) : FAT12 (<64KS) */ - } - } - } - - /* Update partition information */ - if (_MULTI_PARTITION && part != 0) { /* Created in the existing partition */ - /* Update system ID in the partition table */ - if (disk_read(pdrv, buf, 0, 1) != RES_OK) return FR_DISK_ERR; /* Read the MBR */ - buf[MBR_Table + (part - 1) * SZ_PTE + PTE_System] = sys; /* Set system ID */ - if (disk_write(pdrv, buf, 0, 1) != RES_OK) return FR_DISK_ERR; /* Write it back to the MBR */ - } else { /* Created as a new single partition */ - if (!(opt & FM_SFD)) { /* Create partition table if in FDISK format */ - mem_set(buf, 0, ss); - st_word(buf + BS_55AA, 0xAA55); /* MBR signature */ - pte = buf + MBR_Table; /* Create partition table for single partition in the drive */ - pte[PTE_Boot] = 0; /* Boot indicator */ - pte[PTE_StHead] = 1; /* Start head */ - pte[PTE_StSec] = 1; /* Start sector */ - pte[PTE_StCyl] = 0; /* Start cylinder */ - pte[PTE_System] = sys; /* System type */ - n = (b_vol + sz_vol) / (63 * 255); /* (End CHS may be invalid) */ - pte[PTE_EdHead] = 254; /* End head */ - pte[PTE_EdSec] = (BYTE)(n >> 2 | 63); /* End sector */ - pte[PTE_EdCyl] = (BYTE)n; /* End cylinder */ - st_dword(pte + PTE_StLba, b_vol); /* Start offset in LBA */ - st_dword(pte + PTE_SizLba, sz_vol); /* Size in sectors */ - if (disk_write(pdrv, buf, 0, 1) != RES_OK) return FR_DISK_ERR; /* Write it to the MBR */ - } - } - - if (disk_ioctl(pdrv, CTRL_SYNC, 0) != RES_OK) return FR_DISK_ERR; - - return FR_OK; -} - - - -#if _MULTI_PARTITION -/*-----------------------------------------------------------------------*/ -/* Create partition table on the physical drive */ -/*-----------------------------------------------------------------------*/ - -FRESULT f_fdisk ( - BYTE pdrv, /* Physical drive number */ - const DWORD* szt, /* Pointer to the size table for each partitions */ - void* work /* Pointer to the working buffer */ -) -{ - UINT i, n, sz_cyl, tot_cyl, b_cyl, e_cyl, p_cyl; - BYTE s_hd, e_hd, *p, *buf = (BYTE*)work; - DSTATUS stat; - DWORD sz_disk, sz_part, s_part; - - - stat = disk_initialize(pdrv); - if (stat & STA_NOINIT) return FR_NOT_READY; - if (stat & STA_PROTECT) return FR_WRITE_PROTECTED; - if (disk_ioctl(pdrv, GET_SECTOR_COUNT, &sz_disk)) return FR_DISK_ERR; - - /* Determine the CHS without any consideration of the drive geometry */ - for (n = 16; n < 256 && sz_disk / n / 63 > 1024; n *= 2) ; - if (n == 256) n--; - e_hd = n - 1; - sz_cyl = 63 * n; - tot_cyl = sz_disk / sz_cyl; - - /* Create partition table */ - mem_set(buf, 0, _MAX_SS); - p = buf + MBR_Table; b_cyl = 0; - for (i = 0; i < 4; i++, p += SZ_PTE) { - p_cyl = (szt[i] <= 100U) ? (DWORD)tot_cyl * szt[i] / 100 : szt[i] / sz_cyl; /* Number of cylinders */ - if (!p_cyl) continue; - s_part = (DWORD)sz_cyl * b_cyl; - sz_part = (DWORD)sz_cyl * p_cyl; - if (i == 0) { /* Exclude first track of cylinder 0 */ - s_hd = 1; - s_part += 63; sz_part -= 63; - } else { - s_hd = 0; - } - e_cyl = b_cyl + p_cyl - 1; /* End cylinder */ - if (e_cyl >= tot_cyl) return FR_INVALID_PARAMETER; - - /* Set partition table */ - p[1] = s_hd; /* Start head */ - p[2] = (BYTE)((b_cyl >> 2) + 1); /* Start sector */ - p[3] = (BYTE)b_cyl; /* Start cylinder */ - p[4] = 0x07; /* System type (temporary setting) */ - p[5] = e_hd; /* End head */ - p[6] = (BYTE)((e_cyl >> 2) + 63); /* End sector */ - p[7] = (BYTE)e_cyl; /* End cylinder */ - st_dword(p + 8, s_part); /* Start sector in LBA */ - st_dword(p + 12, sz_part); /* Number of sectors */ - - /* Next partition */ - b_cyl += p_cyl; - } - st_word(p, 0xAA55); - - /* Write it to the MBR */ - return (disk_write(pdrv, buf, 0, 1) != RES_OK || disk_ioctl(pdrv, CTRL_SYNC, 0) != RES_OK) ? FR_DISK_ERR : FR_OK; -} - -#endif /* _MULTI_PARTITION */ -#endif /* _USE_MKFS && !_FS_READONLY */ - - - - -#if _USE_STRFUNC -/*-----------------------------------------------------------------------*/ -/* Get a string from the file */ -/*-----------------------------------------------------------------------*/ - -TCHAR* f_gets ( - TCHAR* buff, /* Pointer to the string buffer to read */ - int len, /* Size of string buffer (characters) */ - FIL* fp /* Pointer to the file object */ -) -{ - int n = 0; - TCHAR c, *p = buff; - BYTE s[2]; - UINT rc; - - - while (n < len - 1) { /* Read characters until buffer gets filled */ -#if _LFN_UNICODE -#if _STRF_ENCODE == 3 /* Read a character in UTF-8 */ - f_read(fp, s, 1, &rc); - if (rc != 1) break; - c = s[0]; - if (c >= 0x80) { - if (c < 0xC0) continue; /* Skip stray trailer */ - if (c < 0xE0) { /* Two-byte sequence (0x80-0x7FF) */ - f_read(fp, s, 1, &rc); - if (rc != 1) break; - c = (c & 0x1F) << 6 | (s[0] & 0x3F); - if (c < 0x80) c = '?'; /* Reject invalid code range */ - } else { - if (c < 0xF0) { /* Three-byte sequence (0x800-0xFFFF) */ - f_read(fp, s, 2, &rc); - if (rc != 2) break; - c = c << 12 | (s[0] & 0x3F) << 6 | (s[1] & 0x3F); - if (c < 0x800) c = '?'; /* Reject invalid code range */ - } else { /* Reject four-byte sequence */ - c = '?'; - } - } - } -#elif _STRF_ENCODE == 2 /* Read a character in UTF-16BE */ - f_read(fp, s, 2, &rc); - if (rc != 2) break; - c = s[1] + (s[0] << 8); -#elif _STRF_ENCODE == 1 /* Read a character in UTF-16LE */ - f_read(fp, s, 2, &rc); - if (rc != 2) break; - c = s[0] + (s[1] << 8); -#else /* Read a character in ANSI/OEM */ - f_read(fp, s, 1, &rc); - if (rc != 1) break; - c = s[0]; - if (IsDBCS1(c)) { - f_read(fp, s, 1, &rc); - if (rc != 1) break; - c = (c << 8) + s[0]; - } - c = ff_convert(c, 1); /* OEM -> Unicode */ - if (!c) c = '?'; -#endif -#else /* Read a character without conversion */ - f_read(fp, s, 1, &rc); - if (rc != 1) break; - c = s[0]; -#endif - if (_USE_STRFUNC == 2 && c == '\r') continue; /* Strip '\r' */ - *p++ = c; - n++; - if (c == '\n') break; /* Break on EOL */ - } - *p = 0; - return n ? buff : 0; /* When no data read (eof or error), return with error. */ -} - - - - -#if !_FS_READONLY -#include -/*-----------------------------------------------------------------------*/ -/* Put a character to the file */ -/*-----------------------------------------------------------------------*/ - -typedef struct { - FIL *fp; /* Ptr to the writing file */ - int idx, nchr; /* Write index of buf[] (-1:error), number of chars written */ - BYTE buf[64]; /* Write buffer */ -} putbuff; - - -static -void putc_bfd ( /* Buffered write with code conversion */ - putbuff* pb, - TCHAR c -) -{ - UINT bw; - int i; - - - if (_USE_STRFUNC == 2 && c == '\n') { /* LF -> CRLF conversion */ - putc_bfd(pb, '\r'); - } - - i = pb->idx; /* Write index of pb->buf[] */ - if (i < 0) return; - -#if _LFN_UNICODE -#if _STRF_ENCODE == 3 /* Write a character in UTF-8 */ - if (c < 0x80) { /* 7-bit */ - pb->buf[i++] = (BYTE)c; - } else { - if (c < 0x800) { /* 11-bit */ - pb->buf[i++] = (BYTE)(0xC0 | c >> 6); - } else { /* 16-bit */ - pb->buf[i++] = (BYTE)(0xE0 | c >> 12); - pb->buf[i++] = (BYTE)(0x80 | (c >> 6 & 0x3F)); - } - pb->buf[i++] = (BYTE)(0x80 | (c & 0x3F)); - } -#elif _STRF_ENCODE == 2 /* Write a character in UTF-16BE */ - pb->buf[i++] = (BYTE)(c >> 8); - pb->buf[i++] = (BYTE)c; -#elif _STRF_ENCODE == 1 /* Write a character in UTF-16LE */ - pb->buf[i++] = (BYTE)c; - pb->buf[i++] = (BYTE)(c >> 8); -#else /* Write a character in ANSI/OEM */ - c = ff_convert(c, 0); /* Unicode -> OEM */ - if (!c) c = '?'; - if (c >= 0x100) - pb->buf[i++] = (BYTE)(c >> 8); - pb->buf[i++] = (BYTE)c; -#endif -#else /* Write a character without conversion */ - pb->buf[i++] = (BYTE)c; -#endif - - if (i >= (int)(sizeof pb->buf) - 3) { /* Write buffered characters to the file */ - f_write(pb->fp, pb->buf, (UINT)i, &bw); - i = (bw == (UINT)i) ? 0 : -1; - } - pb->idx = i; - pb->nchr++; -} - - -static -int putc_flush ( /* Flush left characters in the buffer */ - putbuff* pb -) -{ - UINT nw; - - if ( pb->idx >= 0 /* Flush buffered characters to the file */ - && f_write(pb->fp, pb->buf, (UINT)pb->idx, &nw) == FR_OK - && (UINT)pb->idx == nw) return pb->nchr; - return EOF; -} - - -static -void putc_init ( /* Initialize write buffer */ - putbuff* pb, - FIL* fp -) -{ - pb->fp = fp; - pb->nchr = pb->idx = 0; -} - - - -int f_putc ( - TCHAR c, /* A character to be output */ - FIL* fp /* Pointer to the file object */ -) -{ - putbuff pb; - - - putc_init(&pb, fp); - putc_bfd(&pb, c); /* Put the character */ - return putc_flush(&pb); -} - - - - -/*-----------------------------------------------------------------------*/ -/* Put a string to the file */ -/*-----------------------------------------------------------------------*/ - -int f_puts ( - const TCHAR* str, /* Pointer to the string to be output */ - FIL* fp /* Pointer to the file object */ -) -{ - putbuff pb; - - - putc_init(&pb, fp); - while (*str) putc_bfd(&pb, *str++); /* Put the string */ - return putc_flush(&pb); -} - - - - -/*-----------------------------------------------------------------------*/ -/* Put a formatted string to the file */ -/*-----------------------------------------------------------------------*/ - -int f_printf ( - FIL* fp, /* Pointer to the file object */ - const TCHAR* fmt, /* Pointer to the format string */ - ... /* Optional arguments... */ -) -{ - va_list arp; - putbuff pb; - BYTE f, r; - UINT i, j, w; - DWORD v; - TCHAR c, d, str[32], *p; - - - putc_init(&pb, fp); - - va_start(arp, fmt); - - for (;;) { - c = *fmt++; - if (c == 0) break; /* End of string */ - if (c != '%') { /* Non escape character */ - putc_bfd(&pb, c); - continue; - } - w = f = 0; - c = *fmt++; - if (c == '0') { /* Flag: '0' padding */ - f = 1; c = *fmt++; - } else { - if (c == '-') { /* Flag: left justified */ - f = 2; c = *fmt++; - } - } - while (IsDigit(c)) { /* Precision */ - w = w * 10 + c - '0'; - c = *fmt++; - } - if (c == 'l' || c == 'L') { /* Prefix: Size is long int */ - f |= 4; c = *fmt++; - } - if (!c) break; - d = c; - if (IsLower(d)) d -= 0x20; - switch (d) { /* Type is... */ - case 'S' : /* String */ - p = va_arg(arp, TCHAR*); - for (j = 0; p[j]; j++) ; - if (!(f & 2)) { - while (j++ < w) putc_bfd(&pb, ' '); - } - while (*p) putc_bfd(&pb, *p++); - while (j++ < w) putc_bfd(&pb, ' '); - continue; - - case 'C' : /* Character */ - putc_bfd(&pb, (TCHAR)va_arg(arp, int)); continue; - - case 'B' : /* Binary */ - r = 2; break; - - case 'O' : /* Octal */ - r = 8; break; - - case 'D' : /* Signed decimal */ - case 'U' : /* Unsigned decimal */ - r = 10; break; - - case 'X' : /* Hexdecimal */ - r = 16; break; - - default: /* Unknown type (pass-through) */ - putc_bfd(&pb, c); continue; - } - - /* Get an argument and put it in numeral */ - v = (f & 4) ? (DWORD)va_arg(arp, long) : ((d == 'D') ? (DWORD)(long)va_arg(arp, int) : (DWORD)va_arg(arp, unsigned int)); - if (d == 'D' && (v & 0x80000000)) { - v = 0 - v; - f |= 8; - } - i = 0; - do { - d = (TCHAR)(v % r); v /= r; - if (d > 9) d += (c == 'x') ? 0x27 : 0x07; - str[i++] = d + '0'; - } while (v && i < sizeof str / sizeof str[0]); - if (f & 8) str[i++] = '-'; - j = i; d = (f & 1) ? '0' : ' '; - while (!(f & 2) && j++ < w) putc_bfd(&pb, d); - do { - putc_bfd(&pb, str[--i]); - } while (i); - while (j++ < w) putc_bfd(&pb, d); - } - - va_end(arp); - - return putc_flush(&pb); -} - -#endif /* !_FS_READONLY */ -#endif /* _USE_STRFUNC */ diff --git a/Middlewares/Third_Party/FatFs/src/ff.h b/Middlewares/Third_Party/FatFs/src/ff.h deleted file mode 100644 index b14c3ce..0000000 --- a/Middlewares/Third_Party/FatFs/src/ff.h +++ /dev/null @@ -1,361 +0,0 @@ -/*----------------------------------------------------------------------------/ -/ FatFs - Generic FAT file system module R0.12c / -/-----------------------------------------------------------------------------/ -/ -/ Copyright (C) 2017, ChaN, all right reserved. -/ -/ FatFs module is an open source software. Redistribution and use of FatFs in -/ source and binary forms, with or without modification, are permitted provided -/ that the following condition is met: - -/ 1. Redistributions of source code must retain the above copyright notice, -/ this condition and the following disclaimer. -/ -/ This software is provided by the copyright holder and contributors "AS IS" -/ and any warranties related to this software are DISCLAIMED. -/ The copyright owner or contributors be NOT LIABLE for any damages caused -/ by use of this software. -/----------------------------------------------------------------------------*/ - - -#ifndef _FATFS -#define _FATFS 68300 /* Revision ID */ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "integer.h" /* Basic integer types */ -#include "ffconf.h" /* FatFs configuration options */ - -#if _FATFS != _FFCONF -#error Wrong configuration file (ffconf.h). -#endif - - - -/* Definitions of volume management */ - -#if _MULTI_PARTITION /* Multiple partition configuration */ -typedef struct { - BYTE pd; /* Physical drive number */ - BYTE pt; /* Partition: 0:Auto detect, 1-4:Forced partition) */ -} PARTITION; -extern PARTITION VolToPart[]; /* Volume - Partition resolution table */ -#endif - - - -/* Type of path name strings on FatFs API */ - -#if _LFN_UNICODE /* Unicode (UTF-16) string */ -#if _USE_LFN == 0 -#error _LFN_UNICODE must be 0 at non-LFN cfg. -#endif -#ifndef _INC_TCHAR -typedef WCHAR TCHAR; -#define _T(x) L ## x -#define _TEXT(x) L ## x -#endif -#else /* ANSI/OEM string */ -#ifndef _INC_TCHAR -typedef char TCHAR; -#define _T(x) x -#define _TEXT(x) x -#endif -#endif - - - -/* Type of file size variables */ - -#if _FS_EXFAT -#if _USE_LFN == 0 -#error LFN must be enabled when enable exFAT -#endif -typedef QWORD FSIZE_t; -#else -typedef DWORD FSIZE_t; -#endif - - - -/* File system object structure (FATFS) */ - -typedef struct { - BYTE fs_type; /* File system type (0:N/A) */ - BYTE drv; /* Physical drive number */ - BYTE n_fats; /* Number of FATs (1 or 2) */ - BYTE wflag; /* win[] flag (b0:dirty) */ - BYTE fsi_flag; /* FSINFO flags (b7:disabled, b0:dirty) */ - WORD id; /* File system mount ID */ - WORD n_rootdir; /* Number of root directory entries (FAT12/16) */ - WORD csize; /* Cluster size [sectors] */ -#if _MAX_SS != _MIN_SS - WORD ssize; /* Sector size (512, 1024, 2048 or 4096) */ -#endif -#if _USE_LFN != 0 - WCHAR* lfnbuf; /* LFN working buffer */ -#endif -#if _FS_EXFAT - BYTE* dirbuf; /* Directory entry block scratchpad buffer */ -#endif -#if _FS_REENTRANT - _SYNC_t sobj; /* Identifier of sync object */ -#endif -#if !_FS_READONLY - DWORD last_clst; /* Last allocated cluster */ - DWORD free_clst; /* Number of free clusters */ -#endif -#if _FS_RPATH != 0 - DWORD cdir; /* Current directory start cluster (0:root) */ -#if _FS_EXFAT - DWORD cdc_scl; /* Containing directory start cluster (invalid when cdir is 0) */ - DWORD cdc_size; /* b31-b8:Size of containing directory, b7-b0: Chain status */ - DWORD cdc_ofs; /* Offset in the containing directory (invalid when cdir is 0) */ -#endif -#endif - DWORD n_fatent; /* Number of FAT entries (number of clusters + 2) */ - DWORD fsize; /* Size of an FAT [sectors] */ - DWORD volbase; /* Volume base sector */ - DWORD fatbase; /* FAT base sector */ - DWORD dirbase; /* Root directory base sector/cluster */ - DWORD database; /* Data base sector */ - DWORD winsect; /* Current sector appearing in the win[] */ - BYTE win[_MAX_SS]; /* Disk access window for Directory, FAT (and file data at tiny cfg) */ -} FATFS; - - - -/* Object ID and allocation information (_FDID) */ - -typedef struct { - FATFS* fs; /* Pointer to the owner file system object */ - WORD id; /* Owner file system mount ID */ - BYTE attr; /* Object attribute */ - BYTE stat; /* Object chain status (b1-0: =0:not contiguous, =2:contiguous (no data on FAT), =3:flagmented in this session, b2:sub-directory stretched) */ - DWORD sclust; /* Object start cluster (0:no cluster or root directory) */ - FSIZE_t objsize; /* Object size (valid when sclust != 0) */ -#if _FS_EXFAT - DWORD n_cont; /* Size of first fragment, clusters - 1 (valid when stat == 3) */ - DWORD n_frag; /* Size of last fragment needs to be written (valid when not zero) */ - DWORD c_scl; /* Containing directory start cluster (valid when sclust != 0) */ - DWORD c_size; /* b31-b8:Size of containing directory, b7-b0: Chain status (valid when c_scl != 0) */ - DWORD c_ofs; /* Offset in the containing directory (valid when sclust != 0 and non-directory object) */ -#endif -#if _FS_LOCK != 0 - UINT lockid; /* File lock ID origin from 1 (index of file semaphore table Files[]) */ -#endif -} _FDID; - - - -/* File object structure (FIL) */ - -typedef struct { - _FDID obj; /* Object identifier (must be the 1st member to detect invalid object pointer) */ - BYTE flag; /* File status flags */ - BYTE err; /* Abort flag (error code) */ - FSIZE_t fptr; /* File read/write pointer (Zeroed on file open) */ - DWORD clust; /* Current cluster of fpter (invalid when fptr is 0) */ - DWORD sect; /* Sector number appearing in buf[] (0:invalid) */ -#if !_FS_READONLY - DWORD dir_sect; /* Sector number containing the directory entry */ - BYTE* dir_ptr; /* Pointer to the directory entry in the win[] */ -#endif -#if _USE_FASTSEEK - DWORD* cltbl; /* Pointer to the cluster link map table (nulled on open, set by application) */ -#endif -#if !_FS_TINY - BYTE buf[_MAX_SS]; /* File private data read/write window */ -#endif -} FIL; - - - -/* Directory object structure (DIR) */ - -typedef struct { - _FDID obj; /* Object identifier */ - DWORD dptr; /* Current read/write offset */ - DWORD clust; /* Current cluster */ - DWORD sect; /* Current sector (0:Read operation has terminated) */ - BYTE* dir; /* Pointer to the directory item in the win[] */ - BYTE fn[12]; /* SFN (in/out) {body[8],ext[3],status[1]} */ -#if _USE_LFN != 0 - DWORD blk_ofs; /* Offset of current entry block being processed (0xFFFFFFFF:Invalid) */ -#endif -#if _USE_FIND - const TCHAR* pat; /* Pointer to the name matching pattern */ -#endif -} DIR; - - - -/* File information structure (FILINFO) */ - -typedef struct { - FSIZE_t fsize; /* File size */ - WORD fdate; /* Modified date */ - WORD ftime; /* Modified time */ - BYTE fattrib; /* File attribute */ -#if _USE_LFN != 0 - TCHAR altname[13]; /* Alternative file name */ - TCHAR fname[_MAX_LFN + 1]; /* Primary file name */ -#else - TCHAR fname[13]; /* File name */ -#endif -} FILINFO; - - - -/* File function return code (FRESULT) */ - -typedef enum { - FR_OK = 0, /* (0) Succeeded */ - FR_DISK_ERR, /* (1) A hard error occurred in the low level disk I/O layer */ - FR_INT_ERR, /* (2) Assertion failed */ - FR_NOT_READY, /* (3) The physical drive cannot work */ - FR_NO_FILE, /* (4) Could not find the file */ - FR_NO_PATH, /* (5) Could not find the path */ - FR_INVALID_NAME, /* (6) The path name format is invalid */ - FR_DENIED, /* (7) Access denied due to prohibited access or directory full */ - FR_EXIST, /* (8) Access denied due to prohibited access */ - FR_INVALID_OBJECT, /* (9) The file/directory object is invalid */ - FR_WRITE_PROTECTED, /* (10) The physical drive is write protected */ - FR_INVALID_DRIVE, /* (11) The logical drive number is invalid */ - FR_NOT_ENABLED, /* (12) The volume has no work area */ - FR_NO_FILESYSTEM, /* (13) There is no valid FAT volume */ - FR_MKFS_ABORTED, /* (14) The f_mkfs() aborted due to any problem */ - FR_TIMEOUT, /* (15) Could not get a grant to access the volume within defined period */ - FR_LOCKED, /* (16) The operation is rejected according to the file sharing policy */ - FR_NOT_ENOUGH_CORE, /* (17) LFN working buffer could not be allocated */ - FR_TOO_MANY_OPEN_FILES, /* (18) Number of open files > _FS_LOCK */ - FR_INVALID_PARAMETER /* (19) Given parameter is invalid */ -} FRESULT; - - - -/*--------------------------------------------------------------*/ -/* FatFs module application interface */ - -FRESULT f_open (FIL* fp, const TCHAR* path, BYTE mode); /* Open or create a file */ -FRESULT f_close (FIL* fp); /* Close an open file object */ -FRESULT f_read (FIL* fp, void* buff, UINT btr, UINT* br); /* Read data from the file */ -FRESULT f_write (FIL* fp, const void* buff, UINT btw, UINT* bw); /* Write data to the file */ -FRESULT f_lseek (FIL* fp, FSIZE_t ofs); /* Move file pointer of the file object */ -FRESULT f_truncate (FIL* fp); /* Truncate the file */ -FRESULT f_sync (FIL* fp); /* Flush cached data of the writing file */ -FRESULT f_opendir (DIR* dp, const TCHAR* path); /* Open a directory */ -FRESULT f_closedir (DIR* dp); /* Close an open directory */ -FRESULT f_readdir (DIR* dp, FILINFO* fno); /* Read a directory item */ -FRESULT f_findfirst (DIR* dp, FILINFO* fno, const TCHAR* path, const TCHAR* pattern); /* Find first file */ -FRESULT f_findnext (DIR* dp, FILINFO* fno); /* Find next file */ -FRESULT f_mkdir (const TCHAR* path); /* Create a sub directory */ -FRESULT f_unlink (const TCHAR* path); /* Delete an existing file or directory */ -FRESULT f_rename (const TCHAR* path_old, const TCHAR* path_new); /* Rename/Move a file or directory */ -FRESULT f_stat (const TCHAR* path, FILINFO* fno); /* Get file status */ -FRESULT f_chmod (const TCHAR* path, BYTE attr, BYTE mask); /* Change attribute of a file/dir */ -FRESULT f_utime (const TCHAR* path, const FILINFO* fno); /* Change timestamp of a file/dir */ -FRESULT f_chdir (const TCHAR* path); /* Change current directory */ -FRESULT f_chdrive (const TCHAR* path); /* Change current drive */ -FRESULT f_getcwd (TCHAR* buff, UINT len); /* Get current directory */ -FRESULT f_getfree (const TCHAR* path, DWORD* nclst, FATFS** fatfs); /* Get number of free clusters on the drive */ -FRESULT f_getlabel (const TCHAR* path, TCHAR* label, DWORD* vsn); /* Get volume label */ -FRESULT f_setlabel (const TCHAR* label); /* Set volume label */ -FRESULT f_forward (FIL* fp, UINT(*func)(const BYTE*,UINT), UINT btf, UINT* bf); /* Forward data to the stream */ -FRESULT f_expand (FIL* fp, FSIZE_t szf, BYTE opt); /* Allocate a contiguous block to the file */ -FRESULT f_mount (FATFS* fs, const TCHAR* path, BYTE opt); /* Mount/Unmount a logical drive */ -FRESULT f_mkfs (const TCHAR* path, BYTE opt, DWORD au, void* work, UINT len); /* Create a FAT volume */ -FRESULT f_fdisk (BYTE pdrv, const DWORD* szt, void* work); /* Divide a physical drive into some partitions */ -int f_putc (TCHAR c, FIL* fp); /* Put a character to the file */ -int f_puts (const TCHAR* str, FIL* cp); /* Put a string to the file */ -int f_printf (FIL* fp, const TCHAR* str, ...); /* Put a formatted string to the file */ -TCHAR* f_gets (TCHAR* buff, int len, FIL* fp); /* Get a string from the file */ - -#define f_eof(fp) ((int)((fp)->fptr == (fp)->obj.objsize)) -#define f_error(fp) ((fp)->err) -#define f_tell(fp) ((fp)->fptr) -#define f_size(fp) ((fp)->obj.objsize) -#define f_rewind(fp) f_lseek((fp), 0) -#define f_rewinddir(dp) f_readdir((dp), 0) -#define f_rmdir(path) f_unlink(path) - -#ifndef EOF -#define EOF (-1) -#endif - - - - -/*--------------------------------------------------------------*/ -/* Additional user defined functions */ - -/* RTC function */ -#if !_FS_READONLY && !_FS_NORTC -DWORD get_fattime (void); -#endif - -/* Unicode support functions */ -#if _USE_LFN != 0 /* Unicode - OEM code conversion */ -WCHAR ff_convert (WCHAR chr, UINT dir); /* OEM-Unicode bidirectional conversion */ -WCHAR ff_wtoupper (WCHAR chr); /* Unicode upper-case conversion */ -#if _USE_LFN == 3 /* Memory functions */ -void* ff_memalloc (UINT msize); /* Allocate memory block */ -void ff_memfree (void* mblock); /* Free memory block */ -#endif -#endif - -/* Sync functions */ -#if _FS_REENTRANT -int ff_cre_syncobj (BYTE vol, _SYNC_t* sobj); /* Create a sync object */ -int ff_req_grant (_SYNC_t sobj); /* Lock sync object */ -void ff_rel_grant (_SYNC_t sobj); /* Unlock sync object */ -int ff_del_syncobj (_SYNC_t sobj); /* Delete a sync object */ -#endif - - - - -/*--------------------------------------------------------------*/ -/* Flags and offset address */ - - -/* File access mode and open method flags (3rd argument of f_open) */ -#define FA_READ 0x01 -#define FA_WRITE 0x02 -#define FA_OPEN_EXISTING 0x00 -#define FA_CREATE_NEW 0x04 -#define FA_CREATE_ALWAYS 0x08 -#define FA_OPEN_ALWAYS 0x10 -#define FA_OPEN_APPEND 0x30 - -/* Fast seek controls (2nd argument of f_lseek) */ -#define CREATE_LINKMAP ((FSIZE_t)0 - 1) - -/* Format options (2nd argument of f_mkfs) */ -#define FM_FAT 0x01 -#define FM_FAT32 0x02 -#define FM_EXFAT 0x04 -#define FM_ANY 0x07 -#define FM_SFD 0x08 - -/* Filesystem type (FATFS.fs_type) */ -#define FS_FAT12 1 -#define FS_FAT16 2 -#define FS_FAT32 3 -#define FS_EXFAT 4 - -/* File attribute bits for directory entry (FILINFO.fattrib) */ -#define AM_RDO 0x01 /* Read only */ -#define AM_HID 0x02 /* Hidden */ -#define AM_SYS 0x04 /* System */ -#define AM_DIR 0x10 /* Directory */ -#define AM_ARC 0x20 /* Archive */ - - -#ifdef __cplusplus -} -#endif - -#endif /* _FATFS */ diff --git a/Middlewares/Third_Party/FatFs/src/ff_gen_drv.c b/Middlewares/Third_Party/FatFs/src/ff_gen_drv.c deleted file mode 100644 index ccd595b..0000000 --- a/Middlewares/Third_Party/FatFs/src/ff_gen_drv.c +++ /dev/null @@ -1,122 +0,0 @@ -/** - ****************************************************************************** - * @file ff_gen_drv.c - * @author MCD Application Team - * @brief FatFs generic low level driver. - ***************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. All rights reserved. - * - * This software component is licensed by ST under BSD 3-Clause license, - * the "License"; You may not use this file except in compliance with the - * License. You may obtain a copy of the License at: - * opensource.org/licenses/BSD-3-Clause - * - ****************************************************************************** -**/ -/* Includes ------------------------------------------------------------------*/ -#include "ff_gen_drv.h" - -/* Private typedef -----------------------------------------------------------*/ -/* Private define ------------------------------------------------------------*/ -/* Private variables ---------------------------------------------------------*/ -Disk_drvTypeDef disk = {{0},{0},{0},0}; - -/* Private function prototypes -----------------------------------------------*/ -/* Private functions ---------------------------------------------------------*/ - -/** - * @brief Links a compatible diskio driver/lun id and increments the number of active - * linked drivers. - * @note The number of linked drivers (volumes) is up to 10 due to FatFs limits. - * @param drv: pointer to the disk IO Driver structure - * @param path: pointer to the logical drive path - * @param lun : only used for USB Key Disk to add multi-lun management - else the parameter must be equal to 0 - * @retval Returns 0 in case of success, otherwise 1. - */ -uint8_t FATFS_LinkDriverEx(const Diskio_drvTypeDef *drv, char *path, uint8_t lun) -{ - uint8_t ret = 1; - uint8_t DiskNum = 0; - - if(disk.nbr < _VOLUMES) - { - disk.is_initialized[disk.nbr] = 0; - disk.drv[disk.nbr] = drv; - disk.lun[disk.nbr] = lun; - DiskNum = disk.nbr++; - path[0] = DiskNum + '0'; - path[1] = ':'; - path[2] = '/'; - path[3] = 0; - ret = 0; - } - - return ret; -} - -/** - * @brief Links a compatible diskio driver and increments the number of active - * linked drivers. - * @note The number of linked drivers (volumes) is up to 10 due to FatFs limits - * @param drv: pointer to the disk IO Driver structure - * @param path: pointer to the logical drive path - * @retval Returns 0 in case of success, otherwise 1. - */ -uint8_t FATFS_LinkDriver(const Diskio_drvTypeDef *drv, char *path) -{ - return FATFS_LinkDriverEx(drv, path, 0); -} - -/** - * @brief Unlinks a diskio driver and decrements the number of active linked - * drivers. - * @param path: pointer to the logical drive path - * @param lun : not used - * @retval Returns 0 in case of success, otherwise 1. - */ -uint8_t FATFS_UnLinkDriverEx(char *path, uint8_t lun) -{ - uint8_t DiskNum = 0; - uint8_t ret = 1; - - if(disk.nbr >= 1) - { - DiskNum = path[0] - '0'; - if(disk.drv[DiskNum] != 0) - { - disk.drv[DiskNum] = 0; - disk.lun[DiskNum] = 0; - disk.nbr--; - ret = 0; - } - } - - return ret; -} - -/** - * @brief Unlinks a diskio driver and decrements the number of active linked - * drivers. - * @param path: pointer to the logical drive path - * @retval Returns 0 in case of success, otherwise 1. - */ -uint8_t FATFS_UnLinkDriver(char *path) -{ - return FATFS_UnLinkDriverEx(path, 0); -} - -/** - * @brief Gets number of linked drivers to the FatFs module. - * @param None - * @retval Number of attached drivers. - */ -uint8_t FATFS_GetAttachedDriversNbr(void) -{ - return disk.nbr; -} - -/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ - diff --git a/Middlewares/Third_Party/FatFs/src/ff_gen_drv.h b/Middlewares/Third_Party/FatFs/src/ff_gen_drv.h deleted file mode 100644 index 5172e0d..0000000 --- a/Middlewares/Third_Party/FatFs/src/ff_gen_drv.h +++ /dev/null @@ -1,80 +0,0 @@ -/** - ****************************************************************************** - * @file ff_gen_drv.h - * @author MCD Application Team - * @brief Header for ff_gen_drv.c module. - ***************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. All rights reserved. - * - * This software component is licensed by ST under BSD 3-Clause license, - * the "License"; You may not use this file except in compliance with the - * License. You may obtain a copy of the License at: - * opensource.org/licenses/BSD-3-Clause - * - ****************************************************************************** -**/ - -/* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef __FF_GEN_DRV_H -#define __FF_GEN_DRV_H - -#ifdef __cplusplus - extern "C" { -#endif - -/* Includes ------------------------------------------------------------------*/ -#include "diskio.h" -#include "ff.h" -#include "stdint.h" - - -/* Exported types ------------------------------------------------------------*/ - -/** - * @brief Disk IO Driver structure definition - */ -typedef struct -{ - DSTATUS (*disk_initialize) (BYTE); /*!< Initialize Disk Drive */ - DSTATUS (*disk_status) (BYTE); /*!< Get Disk Status */ - DRESULT (*disk_read) (BYTE, BYTE*, DWORD, UINT); /*!< Read Sector(s) */ -#if _USE_WRITE == 1 - DRESULT (*disk_write) (BYTE, const BYTE*, DWORD, UINT); /*!< Write Sector(s) when _USE_WRITE = 0 */ -#endif /* _USE_WRITE == 1 */ -#if _USE_IOCTL == 1 - DRESULT (*disk_ioctl) (BYTE, BYTE, void*); /*!< I/O control operation when _USE_IOCTL = 1 */ -#endif /* _USE_IOCTL == 1 */ - -}Diskio_drvTypeDef; - -/** - * @brief Global Disk IO Drivers structure definition - */ -typedef struct -{ - uint8_t is_initialized[_VOLUMES]; - const Diskio_drvTypeDef *drv[_VOLUMES]; - uint8_t lun[_VOLUMES]; - volatile uint8_t nbr; - -}Disk_drvTypeDef; - -/* Exported constants --------------------------------------------------------*/ -/* Exported macro ------------------------------------------------------------*/ -/* Exported functions ------------------------------------------------------- */ -uint8_t FATFS_LinkDriver(const Diskio_drvTypeDef *drv, char *path); -uint8_t FATFS_UnLinkDriver(char *path); -uint8_t FATFS_LinkDriverEx(const Diskio_drvTypeDef *drv, char *path, BYTE lun); -uint8_t FATFS_UnLinkDriverEx(char *path, BYTE lun); -uint8_t FATFS_GetAttachedDriversNbr(void); - -#ifdef __cplusplus -} -#endif - -#endif /* __FF_GEN_DRV_H */ - -/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ - diff --git a/Middlewares/Third_Party/FatFs/src/integer.h b/Middlewares/Third_Party/FatFs/src/integer.h deleted file mode 100644 index 9ce7865..0000000 --- a/Middlewares/Third_Party/FatFs/src/integer.h +++ /dev/null @@ -1,38 +0,0 @@ -/*-------------------------------------------*/ -/* Integer type definitions for FatFs module */ -/*-------------------------------------------*/ - -#ifndef _FF_INTEGER -#define _FF_INTEGER - -#ifdef _WIN32 /* FatFs development platform */ - -#include -#include -typedef unsigned __int64 QWORD; - - -#else /* Embedded platform */ - -/* These types MUST be 16-bit or 32-bit */ -typedef int INT; -typedef unsigned int UINT; - -/* This type MUST be 8-bit */ -typedef unsigned char BYTE; - -/* These types MUST be 16-bit */ -typedef short SHORT; -typedef unsigned short WORD; -typedef unsigned short WCHAR; - -/* These types MUST be 32-bit */ -typedef long LONG; -typedef unsigned long DWORD; - -/* This type MUST be 64-bit (Remove this for ANSI C (C89) compatibility) */ -typedef unsigned long long QWORD; - -#endif - -#endif diff --git a/Middlewares/Third_Party/FatFs/src/option/ccsbcs.c b/Middlewares/Third_Party/FatFs/src/option/ccsbcs.c deleted file mode 100644 index e2762dc..0000000 --- a/Middlewares/Third_Party/FatFs/src/option/ccsbcs.c +++ /dev/null @@ -1,388 +0,0 @@ -/*------------------------------------------------------------------------*/ -/* Unicode - Local code bidirectional converter (C)ChaN, 2015 */ -/* (SBCS code pages) */ -/*------------------------------------------------------------------------*/ -/* 437 U.S. -/ 720 Arabic -/ 737 Greek -/ 771 KBL -/ 775 Baltic -/ 850 Latin 1 -/ 852 Latin 2 -/ 855 Cyrillic -/ 857 Turkish -/ 860 Portuguese -/ 861 Icelandic -/ 862 Hebrew -/ 863 Canadian French -/ 864 Arabic -/ 865 Nordic -/ 866 Russian -/ 869 Greek 2 -*/ - -#include "../ff.h" - - -#if _CODE_PAGE == 437 -#define _TBLDEF 1 -static -const WCHAR Tbl[] = { /* CP437(0x80-0xFF) to Unicode conversion table */ - 0x00C7, 0x00FC, 0x00E9, 0x00E2, 0x00E4, 0x00E0, 0x00E5, 0x00E7, 0x00EA, 0x00EB, 0x00E8, 0x00EF, 0x00EE, 0x00EC, 0x00C4, 0x00C5, - 0x00C9, 0x00E6, 0x00C6, 0x00F4, 0x00F6, 0x00F2, 0x00FB, 0x00F9, 0x00FF, 0x00D6, 0x00DC, 0x00A2, 0x00A3, 0x00A5, 0x20A7, 0x0192, - 0x00E1, 0x00ED, 0x00F3, 0x00FA, 0x00F1, 0x00D1, 0x00AA, 0x00BA, 0x00BF, 0x2310, 0x00AC, 0x00BD, 0x00BC, 0x00A1, 0x00AB, 0x00BB, - 0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x2561, 0x2562, 0x2556, 0x2555, 0x2563, 0x2551, 0x2557, 0x255D, 0x255C, 0x255B, 0x2510, - 0x2514, 0x2534, 0x252C, 0x251C, 0x2500, 0x253C, 0x255E, 0x255F, 0x255A, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256C, 0x2567, - 0x2568, 0x2564, 0x2565, 0x2559, 0x2558, 0x2552, 0x2553, 0x256B, 0x256A, 0x2518, 0x250C, 0x2588, 0x2584, 0x258C, 0x2590, 0x2580, - 0x03B1, 0x00DF, 0x0393, 0x03C0, 0x03A3, 0x03C3, 0x00B5, 0x03C4, 0x03A6, 0x0398, 0x03A9, 0x03B4, 0x221E, 0x03C6, 0x03B5, 0x2229, - 0x2261, 0x00B1, 0x2265, 0x2264, 0x2320, 0x2321, 0x00F7, 0x2248, 0x00B0, 0x2219, 0x00B7, 0x221A, 0x207F, 0x00B2, 0x25A0, 0x00A0 -}; - -#elif _CODE_PAGE == 720 -#define _TBLDEF 1 -static -const WCHAR Tbl[] = { /* CP720(0x80-0xFF) to Unicode conversion table */ - 0x0000, 0x0000, 0x00E9, 0x00E2, 0x0000, 0x00E0, 0x0000, 0x00E7, 0x00EA, 0x00EB, 0x00E8, 0x00EF, 0x00EE, 0x0000, 0x0000, 0x0000, - 0x0000, 0x0651, 0x0652, 0x00F4, 0x00A4, 0x0640, 0x00FB, 0x00F9, 0x0621, 0x0622, 0x0623, 0x0624, 0x00A3, 0x0625, 0x0626, 0x0627, - 0x0628, 0x0629, 0x062A, 0x062B, 0x062C, 0x062D, 0x062E, 0x062F, 0x0630, 0x0631, 0x0632, 0x0633, 0x0634, 0x0635, 0x00AB, 0x00BB, - 0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x2561, 0x2562, 0x2556, 0x2555, 0x2563, 0x2551, 0x2557, 0x255D, 0x255C, 0x255B, 0x2510, - 0x2514, 0x2534, 0x252C, 0x251C, 0x2500, 0x253C, 0x255E, 0x255F, 0x255A, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256C, 0x2567, - 0x2568, 0x2564, 0x2565, 0x2559, 0x2558, 0x2552, 0x2553, 0x256B, 0x256A, 0x2518, 0x250C, 0x2588, 0x2584, 0x258C, 0x2590, 0x2580, - 0x0636, 0x0637, 0x0638, 0x0639, 0x063A, 0x0641, 0x00B5, 0x0642, 0x0643, 0x0644, 0x0645, 0x0646, 0x0647, 0x0648, 0x0649, 0x064A, - 0x2261, 0x064B, 0x064C, 0x064D, 0x064E, 0x064F, 0x0650, 0x2248, 0x00B0, 0x2219, 0x00B7, 0x221A, 0x207F, 0x00B2, 0x25A0, 0x00A0 -}; - -#elif _CODE_PAGE == 737 -#define _TBLDEF 1 -static -const WCHAR Tbl[] = { /* CP737(0x80-0xFF) to Unicode conversion table */ - 0x0391, 0x0392, 0x0393, 0x0394, 0x0395, 0x0396, 0x0397, 0x0398, 0x0399, 0x039A, 0x039B, 0x039C, 0x039D, 0x039E, 0x039F, 0x03A0, - 0x03A1, 0x03A3, 0x03A4, 0x03A5, 0x03A6, 0x03A7, 0x03A8, 0x03A9, 0x03B1, 0x03B2, 0x03B3, 0x03B4, 0x03B5, 0x03B6, 0x03B7, 0x03B8, - 0x03B9, 0x03BA, 0x03BB, 0x03BC, 0x03BD, 0x03BE, 0x03BF, 0x03C0, 0x03C1, 0x03C3, 0x03C2, 0x03C4, 0x03C5, 0x03C6, 0x03C7, 0x03C8, - 0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x2561, 0x2562, 0x2556, 0x2555, 0x2563, 0x2551, 0x2557, 0x255D, 0x255C, 0x255B, 0x2510, - 0x2514, 0x2534, 0x252C, 0x251C, 0x2500, 0x253C, 0x255E, 0x255F, 0x255A, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256C, 0x2567, - 0x2568, 0x2564, 0x2565, 0x2559, 0x2558, 0x2552, 0x2553, 0x256B, 0x256A, 0x2518, 0x250C, 0x2588, 0x2584, 0x258C, 0x2590, 0x2580, - 0x03C9, 0x03AC, 0x03AD, 0x03AE, 0x03CA, 0x03AF, 0x03CC, 0x03CD, 0x03CB, 0x03CE, 0x0386, 0x0388, 0x0389, 0x038A, 0x038C, 0x038E, - 0x038F, 0x00B1, 0x2265, 0x2264, 0x03AA, 0x03AB, 0x00F7, 0x2248, 0x00B0, 0x2219, 0x00B7, 0x221A, 0x207F, 0x00B2, 0x25A0, 0x00A0 -}; - -#elif _CODE_PAGE == 771 -#define _TBLDEF 1 -static -const WCHAR Tbl[] = { /* CP771(0x80-0xFF) to Unicode conversion table */ - 0x0410, 0x0411, 0x0412, 0x0413, 0x0414, 0x0415, 0x0416, 0x0417, 0x0418, 0x0419, 0x041A, 0x041B, 0x041C, 0x041D, 0x041E, 0x041F, - 0x0420, 0x0421, 0x0422, 0x0423, 0x0424, 0x0425, 0x0426, 0x0427, 0x0428, 0x0429, 0x042A, 0x042B, 0x042C, 0x042D, 0x042E, 0x042F, - 0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0436, 0x0437, 0x0438, 0x0439, 0x043A, 0x043B, 0x043C, 0x043D, 0x043E, 0x043F, - 0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x2561, 0x2562, 0x2556, 0x2555, 0x2563, 0x2551, 0x2557, 0x255D, 0x255C, 0x2558, 0x2510, - 0x2514, 0x2534, 0x252C, 0x251C, 0x2500, 0x253C, 0x255E, 0x255F, 0x255A, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256C, 0x2567, - 0x2568, 0x2564, 0x2565, 0x2559, 0x2558, 0x2552, 0x2553, 0x256B, 0x256A, 0x2518, 0x250C, 0x2588, 0x0104, 0x0105, 0x010C, 0x010D, - 0x0440, 0x0441, 0x0442, 0x0443, 0x0444, 0x0445, 0x0446, 0x0447, 0x0448, 0x0449, 0x044A, 0x044B, 0x044C, 0x044D, 0x044E, 0x044F, - 0x0118, 0x0119, 0x0116, 0x0117, 0x012E, 0x012F, 0x0160, 0x0161, 0x0172, 0x0173, 0x016A, 0x016B, 0x017D, 0x017E, 0x25A0, 0x00A0 -}; - -#elif _CODE_PAGE == 775 -#define _TBLDEF 1 -static -const WCHAR Tbl[] = { /* CP775(0x80-0xFF) to Unicode conversion table */ - 0x0106, 0x00FC, 0x00E9, 0x0101, 0x00E4, 0x0123, 0x00E5, 0x0107, 0x0142, 0x0113, 0x0156, 0x0157, 0x012B, 0x0179, 0x00C4, 0x00C5, - 0x00C9, 0x00E6, 0x00C6, 0x014D, 0x00F6, 0x0122, 0x00A2, 0x015A, 0x015B, 0x00D6, 0x00DC, 0x00F8, 0x00A3, 0x00D8, 0x00D7, 0x00A4, - 0x0100, 0x012A, 0x00F3, 0x017B, 0x017C, 0x017A, 0x201D, 0x00A6, 0x00A9, 0x00AE, 0x00AC, 0x00BD, 0x00BC, 0x0141, 0x00AB, 0x00BB, - 0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x0104, 0x010C, 0x0118, 0x0116, 0x2563, 0x2551, 0x2557, 0x255D, 0x012E, 0x0160, 0x2510, - 0x2514, 0x2534, 0x252C, 0x251C, 0x2500, 0x253C, 0x0172, 0x016A, 0x255A, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256C, 0x017D, - 0x0105, 0x010D, 0x0119, 0x0117, 0x012F, 0x0161, 0x0173, 0x016B, 0x017E, 0x2518, 0x250C, 0x2588, 0x2584, 0x258C, 0x2590, 0x2580, - 0x00D3, 0x00DF, 0x014C, 0x0143, 0x00F5, 0x00D5, 0x00B5, 0x0144, 0x0136, 0x0137, 0x013B, 0x013C, 0x0146, 0x0112, 0x0145, 0x2019, - 0x00AD, 0x00B1, 0x201C, 0x00BE, 0x00B6, 0x00A7, 0x00F7, 0x201E, 0x00B0, 0x2219, 0x00B7, 0x00B9, 0x00B3, 0x00B2, 0x25A0, 0x00A0 -}; - -#elif _CODE_PAGE == 850 -#define _TBLDEF 1 -static -const WCHAR Tbl[] = { /* CP850(0x80-0xFF) to Unicode conversion table */ - 0x00C7, 0x00FC, 0x00E9, 0x00E2, 0x00E4, 0x00E0, 0x00E5, 0x00E7, 0x00EA, 0x00EB, 0x00E8, 0x00EF, 0x00EE, 0x00EC, 0x00C4, 0x00C5, - 0x00C9, 0x00E6, 0x00C6, 0x00F4, 0x00F6, 0x00F2, 0x00FB, 0x00F9, 0x00FF, 0x00D6, 0x00DC, 0x00F8, 0x00A3, 0x00D8, 0x00D7, 0x0192, - 0x00E1, 0x00ED, 0x00F3, 0x00FA, 0x00F1, 0x00D1, 0x00AA, 0x00BA, 0x00BF, 0x00AE, 0x00AC, 0x00BD, 0x00BC, 0x00A1, 0x00AB, 0x00BB, - 0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x00C1, 0x00C2, 0x00C0, 0x00A9, 0x2563, 0x2551, 0x2557, 0x255D, 0x00A2, 0x00A5, 0x2510, - 0x2514, 0x2534, 0x252C, 0x251C, 0x2500, 0x253C, 0x00E3, 0x00C3, 0x255A, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256C, 0x00A4, - 0x00F0, 0x00D0, 0x00CA, 0x00CB, 0x00C8, 0x0131, 0x00CD, 0x00CE, 0x00CF, 0x2518, 0x250C, 0x2588, 0x2584, 0x00A6, 0x00CC, 0x2580, - 0x00D3, 0x00DF, 0x00D4, 0x00D2, 0x00F5, 0x00D5, 0x00B5, 0x00FE, 0x00DE, 0x00DA, 0x00DB, 0x00D9, 0x00FD, 0x00DD, 0x00AF, 0x00B4, - 0x00AD, 0x00B1, 0x2017, 0x00BE, 0x00B6, 0x00A7, 0x00F7, 0x00B8, 0x00B0, 0x00A8, 0x00B7, 0x00B9, 0x00B3, 0x00B2, 0x25A0, 0x00A0 -}; - -#elif _CODE_PAGE == 852 -#define _TBLDEF 1 -static -const WCHAR Tbl[] = { /* CP852(0x80-0xFF) to Unicode conversion table */ - 0x00C7, 0x00FC, 0x00E9, 0x00E2, 0x00E4, 0x016F, 0x0107, 0x00E7, 0x0142, 0x00EB, 0x0150, 0x0151, 0x00EE, 0x0179, 0x00C4, 0x0106, - 0x00C9, 0x0139, 0x013A, 0x00F4, 0x00F6, 0x013D, 0x013E, 0x015A, 0x015B, 0x00D6, 0x00DC, 0x0164, 0x0165, 0x0141, 0x00D7, 0x010D, - 0x00E1, 0x00ED, 0x00F3, 0x00FA, 0x0104, 0x0105, 0x017D, 0x017E, 0x0118, 0x0119, 0x00AC, 0x017A, 0x010C, 0x015F, 0x00AB, 0x00BB, - 0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x00C1, 0x00C2, 0x011A, 0x015E, 0x2563, 0x2551, 0x2557, 0x255D, 0x017B, 0x017C, 0x2510, - 0x2514, 0x2534, 0x252C, 0x251C, 0x2500, 0x253C, 0x0102, 0x0103, 0x255A, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256C, 0x00A4, - 0x0111, 0x0110, 0x010E, 0x00CB, 0x010F, 0x0147, 0x00CD, 0x00CE, 0x011B, 0x2518, 0x250C, 0x2588, 0x2584, 0x0162, 0x016E, 0x2580, - 0x00D3, 0x00DF, 0x00D4, 0x0143, 0x0144, 0x0148, 0x0160, 0x0161, 0x0154, 0x00DA, 0x0155, 0x0170, 0x00FD, 0x00DD, 0x0163, 0x00B4, - 0x00AD, 0x02DD, 0x02DB, 0x02C7, 0x02D8, 0x00A7, 0x00F7, 0x00B8, 0x00B0, 0x00A8, 0x02D9, 0x0171, 0x0158, 0x0159, 0x25A0, 0x00A0 -}; - -#elif _CODE_PAGE == 855 -#define _TBLDEF 1 -static -const WCHAR Tbl[] = { /* CP855(0x80-0xFF) to Unicode conversion table */ - 0x0452, 0x0402, 0x0453, 0x0403, 0x0451, 0x0401, 0x0454, 0x0404, 0x0455, 0x0405, 0x0456, 0x0406, 0x0457, 0x0407, 0x0458, 0x0408, - 0x0459, 0x0409, 0x045A, 0x040A, 0x045B, 0x040B, 0x045C, 0x040C, 0x045E, 0x040E, 0x045F, 0x040F, 0x044E, 0x042E, 0x044A, 0x042A, - 0x0430, 0x0410, 0x0431, 0x0411, 0x0446, 0x0426, 0x0434, 0x0414, 0x0435, 0x0415, 0x0444, 0x0424, 0x0433, 0x0413, 0x00AB, 0x00BB, - 0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x0445, 0x0425, 0x0438, 0x0418, 0x2563, 0x2551, 0x2557, 0x255D, 0x0439, 0x0419, 0x2510, - 0x2514, 0x2534, 0x252C, 0x251C, 0x2500, 0x253C, 0x043A, 0x041A, 0x255A, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256C, 0x00A4, - 0x043B, 0x041B, 0x043C, 0x041C, 0x043D, 0x041D, 0x043E, 0x041E, 0x043F, 0x2518, 0x250C, 0x2588, 0x2584, 0x041F, 0x044F, 0x2580, - 0x042F, 0x0440, 0x0420, 0x0441, 0x0421, 0x0442, 0x0422, 0x0443, 0x0423, 0x0436, 0x0416, 0x0432, 0x0412, 0x044C, 0x042C, 0x2116, - 0x00AD, 0x044B, 0x042B, 0x0437, 0x0417, 0x0448, 0x0428, 0x044D, 0x042D, 0x0449, 0x0429, 0x0447, 0x0427, 0x00A7, 0x25A0, 0x00A0 -}; - -#elif _CODE_PAGE == 857 -#define _TBLDEF 1 -static -const WCHAR Tbl[] = { /* CP857(0x80-0xFF) to Unicode conversion table */ - 0x00C7, 0x00FC, 0x00E9, 0x00E2, 0x00E4, 0x00E0, 0x00E5, 0x00E7, 0x00EA, 0x00EB, 0x00E8, 0x00EF, 0x00EE, 0x0131, 0x00C4, 0x00C5, - 0x00C9, 0x00E6, 0x00C6, 0x00F4, 0x00F6, 0x00F2, 0x00FB, 0x00F9, 0x0130, 0x00D6, 0x00DC, 0x00F8, 0x00A3, 0x00D8, 0x015E, 0x015F, - 0x00E1, 0x00ED, 0x00F3, 0x00FA, 0x00F1, 0x00D1, 0x011E, 0x011F, 0x00BF, 0x00AE, 0x00AC, 0x00BD, 0x00BC, 0x00A1, 0x00AB, 0x00BB, - 0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x00C1, 0x00C2, 0x00C0, 0x00A9, 0x2563, 0x2551, 0x2557, 0x255D, 0x00A2, 0x00A5, 0x2510, - 0x2514, 0x2534, 0x252C, 0x251C, 0x2500, 0x253C, 0x00E3, 0x00C3, 0x255A, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256C, 0x00A4, - 0x00BA, 0x00AA, 0x00CA, 0x00CB, 0x00C8, 0x0000, 0x00CD, 0x00CE, 0x00CF, 0x2518, 0x250C, 0x2588, 0x2584, 0x00A6, 0x00CC, 0x2580, - 0x00D3, 0x00DF, 0x00D4, 0x00D2, 0x00F5, 0x00D5, 0x00B5, 0x0000, 0x00D7, 0x00DA, 0x00DB, 0x00D9, 0x00EC, 0x00FF, 0x00AF, 0x00B4, - 0x00AD, 0x00B1, 0x0000, 0x00BE, 0x00B6, 0x00A7, 0x00F7, 0x00B8, 0x00B0, 0x00A8, 0x00B7, 0x00B9, 0x00B3, 0x00B2, 0x25A0, 0x00A0 -}; - -#elif _CODE_PAGE == 860 -#define _TBLDEF 1 -static -const WCHAR Tbl[] = { /* CP860(0x80-0xFF) to Unicode conversion table */ - 0x00C7, 0x00FC, 0x00E9, 0x00E2, 0x00E3, 0x00E0, 0x00C1, 0x00E7, 0x00EA, 0x00CA, 0x00E8, 0x00CD, 0x00D4, 0x00EC, 0x00C3, 0x00C2, - 0x00C9, 0x00C0, 0x00C8, 0x00F4, 0x00F5, 0x00F2, 0x00DA, 0x00F9, 0x00CC, 0x00D5, 0x00DC, 0x00A2, 0x00A3, 0x00D9, 0x20A7, 0x00D3, - 0x00E1, 0x00ED, 0x00F3, 0x00FA, 0x00F1, 0x00D1, 0x00AA, 0x00BA, 0x00BF, 0x00D2, 0x00AC, 0x00BD, 0x00BC, 0x00A1, 0x00AB, 0x00BB, - 0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x2561, 0x2562, 0x2556, 0x2555, 0x2563, 0x2551, 0x2557, 0x255D, 0x255C, 0x2558, 0x2510, - 0x2514, 0x2534, 0x252C, 0x251C, 0x2500, 0x253C, 0x255E, 0x255F, 0x255A, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256C, 0x2567, - 0x2568, 0x2564, 0x2565, 0x2559, 0x2558, 0x2552, 0x2553, 0x256B, 0x256A, 0x2518, 0x250C, 0x2588, 0x2584, 0x258C, 0x2590, 0x2580, - 0x03B1, 0x00DF, 0x0393, 0x03C0, 0x03A3, 0x03C3, 0x00B5, 0x03C4, 0x03A6, 0x0398, 0x03A9, 0x03B4, 0x221E, 0x03C6, 0x03B5, 0x2229, - 0x2261, 0x00B1, 0x2265, 0x2264, 0x2320, 0x2321, 0x00F7, 0x2248, 0x00B0, 0x2219, 0x00B7, 0x221A, 0x207F, 0x00B2, 0x25A0, 0x00A0 -}; - -#elif _CODE_PAGE == 861 -#define _TBLDEF 1 -static -const WCHAR Tbl[] = { /* CP861(0x80-0xFF) to Unicode conversion table */ - 0x00C7, 0x00FC, 0x00E9, 0x00E2, 0x00E4, 0x00E0, 0x00E6, 0x00E7, 0x00EA, 0x00EB, 0x00E8, 0x00D0, 0x00F0, 0x00DE, 0x00C4, 0x00C5, - 0x00C9, 0x00E6, 0x00C6, 0x00F4, 0x00F6, 0x00FE, 0x00FB, 0x00DD, 0x00FD, 0x00D6, 0x00DC, 0x00F8, 0x00A3, 0x00D8, 0x20A7, 0x0192, - 0x00E1, 0x00ED, 0x00F3, 0x00FA, 0x00C1, 0x00CD, 0x00D3, 0x00DA, 0x00BF, 0x2310, 0x00AC, 0x00BD, 0x00BC, 0x00A1, 0x00AB, 0x00BB, - 0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x2561, 0x2562, 0x2556, 0x2555, 0x2563, 0x2551, 0x2557, 0x255D, 0x255C, 0x255B, 0x2510, - 0x2514, 0x2534, 0x252C, 0x251C, 0x2500, 0x253C, 0x255E, 0x255F, 0x255A, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256C, 0x2567, - 0x2568, 0x2564, 0x2565, 0x2559, 0x2558, 0x2552, 0x2553, 0x256B, 0x256A, 0x2518, 0x250C, 0x2588, 0x2584, 0x258C, 0x2590, 0x2580, - 0x03B1, 0x00DF, 0x0393, 0x03C0, 0x03A3, 0x03C3, 0x00B5, 0x03C4, 0x03A6, 0x0398, 0x03A9, 0x03B4, 0x221E, 0x03C6, 0x03B5, 0x2229, - 0x2261, 0x00B1, 0x2265, 0x2264, 0x2320, 0x2321, 0x00F7, 0x2248, 0x00B0, 0x2219, 0x00B7, 0x221A, 0x207F, 0x00B2, 0x25A0, 0x00A0 -}; - -#elif _CODE_PAGE == 862 -#define _TBLDEF 1 -static -const WCHAR Tbl[] = { /* CP862(0x80-0xFF) to Unicode conversion table */ - 0x05D0, 0x05D1, 0x05D2, 0x05D3, 0x05D4, 0x05D5, 0x05D6, 0x05D7, 0x05D8, 0x05D9, 0x05DA, 0x05DB, 0x05DC, 0x05DD, 0x05DE, 0x05DF, - 0x05E0, 0x05E1, 0x05E2, 0x05E3, 0x05E4, 0x05E5, 0x05E6, 0x05E7, 0x05E8, 0x05E9, 0x05EA, 0x00A2, 0x00A3, 0x00A5, 0x20A7, 0x0192, - 0x00E1, 0x00ED, 0x00F3, 0x00FA, 0x00F1, 0x00D1, 0x00AA, 0x00BA, 0x00BF, 0x2310, 0x00AC, 0x00BD, 0x00BC, 0x00A1, 0x00AB, 0x00BB, - 0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x2561, 0x2562, 0x2556, 0x2555, 0x2563, 0x2551, 0x2557, 0x255D, 0x255C, 0x255B, 0x2510, - 0x2514, 0x2534, 0x252C, 0x251C, 0x2500, 0x253C, 0x255E, 0x255F, 0x255A, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256C, 0x2567, - 0x2568, 0x2564, 0x2565, 0x2559, 0x2558, 0x2552, 0x2553, 0x256B, 0x256A, 0x2518, 0x250C, 0x2588, 0x2584, 0x258C, 0x2590, 0x2580, - 0x03B1, 0x00DF, 0x0393, 0x03C0, 0x03A3, 0x03C3, 0x00B5, 0x03C4, 0x03A6, 0x0398, 0x03A9, 0x03B4, 0x221E, 0x03C6, 0x03B5, 0x2229, - 0x2261, 0x00B1, 0x2265, 0x2264, 0x2320, 0x2321, 0x00F7, 0x2248, 0x00B0, 0x2219, 0x00B7, 0x221A, 0x207F, 0x00B2, 0x25A0, 0x00A0 -}; - -#elif _CODE_PAGE == 863 -#define _TBLDEF 1 -static -const WCHAR Tbl[] = { /* CP863(0x80-0xFF) to Unicode conversion table */ - 0x00C7, 0x00FC, 0x00E9, 0x00E2, 0x00C2, 0x00E0, 0x00B6, 0x00E7, 0x00EA, 0x00EB, 0x00E8, 0x00EF, 0x00EE, 0x00EC, 0x2017, 0x00C0, - 0x00C9, 0x00C8, 0x00CA, 0x00F4, 0x00CB, 0x00CF, 0x00FB, 0x00F9, 0x00A4, 0x00D4, 0x00DC, 0x00A2, 0x00A3, 0x00D9, 0x00DB, 0x0192, - 0x00A6, 0x00B4, 0x00F3, 0x00FA, 0x00A8, 0x00BB, 0x00B3, 0x00AF, 0x00CE, 0x3210, 0x00AC, 0x00BD, 0x00BC, 0x00BE, 0x00AB, 0x00BB, - 0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x2561, 0x2562, 0x2556, 0x2555, 0x2563, 0x2551, 0x2557, 0x255D, 0x255C, 0x255B, 0x2510, - 0x2514, 0x2534, 0x252C, 0x251C, 0x2500, 0x253C, 0x255E, 0x255F, 0x255A, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256C, 0x2567, - 0x2568, 0x2564, 0x2565, 0x2559, 0x2558, 0x2552, 0x2553, 0x256B, 0x256A, 0x2518, 0x250C, 0x2588, 0x2584, 0x258C, 0x2590, 0x2580, - 0x03B1, 0x00DF, 0x0393, 0x03C0, 0x03A3, 0x03C3, 0x00B5, 0x03C4, 0x03A6, 0x0398, 0x03A9, 0x03B4, 0x221E, 0x03C6, 0x03B5, 0x2219, - 0x2261, 0x00B1, 0x2265, 0x2264, 0x2320, 0x2321, 0x00F7, 0x2248, 0x00B0, 0x2219, 0x00B7, 0x221A, 0x207F, 0x00B2, 0x25A0, 0x00A0 -}; - -#elif _CODE_PAGE == 864 -#define _TBLDEF 1 -static -const WCHAR Tbl[] = { /* CP864(0x80-0xFF) to Unicode conversion table */ - 0x00B0, 0x00B7, 0x2219, 0x221A, 0x2592, 0x2500, 0x2502, 0x253C, 0x2524, 0x252C, 0x251C, 0x2534, 0x2510, 0x250C, 0x2514, 0x2518, - 0x03B2, 0x221E, 0x03C6, 0x00B1, 0x00BD, 0x00BC, 0x2248, 0x00AB, 0x00BB, 0xFEF7, 0xFEF8, 0x0000, 0x0000, 0xFEFB, 0xFEFC, 0x0000, - 0x00A0, 0x00AD, 0xFE82, 0x00A3, 0x00A4, 0xFE84, 0x0000, 0x20AC, 0xFE8E, 0xFE8F, 0xFE95, 0xFE99, 0x060C, 0xFE9D, 0xFEA1, 0xFEA5, - 0x0660, 0x0661, 0x0662, 0x0663, 0x0664, 0x0665, 0x0666, 0x0667, 0x0668, 0x0669, 0xFED1, 0x061B, 0xFEB1, 0xFEB5, 0xFEB9, 0x061F, - 0x00A2, 0xFE80, 0xFE81, 0xFE83, 0xFE85, 0xFECA, 0xFE8B, 0xFE8D, 0xFE91, 0xFE93, 0xFE97, 0xFE9B, 0xFE9F, 0xFEA3, 0xFEA7, 0xFEA9, - 0xFEAB, 0xFEAD, 0xFEAF, 0xFEB3, 0xFEB7, 0xFEBB, 0xFEBF, 0xFEC1, 0xFEC5, 0xFECB, 0xFECF, 0x00A6, 0x00AC, 0x00F7, 0x00D7, 0xFEC9, - 0x0640, 0xFED3, 0xFED7, 0xFEDB, 0xFEDF, 0xFEE3, 0xFEE7, 0xFEEB, 0xFEED, 0xFEEF, 0xFEF3, 0xFEBD, 0xFECC, 0xFECE, 0xFECD, 0xFEE1, - 0xFE7D, 0x0651, 0xFEE5, 0xFEE9, 0xFEEC, 0xFEF0, 0xFEF2, 0xFED0, 0xFED5, 0xFEF5, 0xFEF6, 0xFEDD, 0xFED9, 0xFEF1, 0x25A0, 0x0000 -}; - -#elif _CODE_PAGE == 865 -#define _TBLDEF 1 -static -const WCHAR Tbl[] = { /* CP865(0x80-0xFF) to Unicode conversion table */ - 0x00C7, 0x00FC, 0x00E9, 0x00E2, 0x00E4, 0x00E0, 0x00E5, 0x00E7, 0x00EA, 0x00EB, 0x00E8, 0x00EF, 0x00EE, 0x00EC, 0x00C4, 0x00C5, - 0x00C5, 0x00E6, 0x00C6, 0x00F4, 0x00F6, 0x00F2, 0x00FB, 0x00F9, 0x00FF, 0x00D6, 0x00DC, 0x00F8, 0x00A3, 0x00D8, 0x20A7, 0x0192, - 0x00E1, 0x00ED, 0x00F3, 0x00FA, 0x00F1, 0x00D1, 0x00AA, 0x00BA, 0x00BF, 0x2310, 0x00AC, 0x00BD, 0x00BC, 0x00A1, 0x00AB, 0x00A4, - 0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x2561, 0x2562, 0x2556, 0x2555, 0x2563, 0x2551, 0x2557, 0x255D, 0x255C, 0x2558, 0x2510, - 0x2514, 0x2534, 0x252C, 0x251C, 0x2500, 0x253C, 0x255E, 0x255F, 0x255A, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256C, 0x2567, - 0x2568, 0x2564, 0x2565, 0x2559, 0x2558, 0x2552, 0x2553, 0x256B, 0x256A, 0x2518, 0x250C, 0x2588, 0x2584, 0x258C, 0x2590, 0x2580, - 0x03B1, 0x00DF, 0x0393, 0x03C0, 0x03A3, 0x03C3, 0x00B5, 0x03C4, 0x03A6, 0x0398, 0x03A9, 0x03B4, 0x221E, 0x03C6, 0x03B5, 0x2229, - 0x2261, 0x00B1, 0x2265, 0x2264, 0x2320, 0x2321, 0x00F7, 0x2248, 0x00B0, 0x2219, 0x00B7, 0x221A, 0x207F, 0x00B2, 0x25A0, 0x00A0 -}; - -#elif _CODE_PAGE == 866 -#define _TBLDEF 1 -static -const WCHAR Tbl[] = { /* CP866(0x80-0xFF) to Unicode conversion table */ - 0x0410, 0x0411, 0x0412, 0x0413, 0x0414, 0x0415, 0x0416, 0x0417, 0x0418, 0x0419, 0x041A, 0x041B, 0x041C, 0x041D, 0x041E, 0x041F, - 0x0420, 0x0421, 0x0422, 0x0423, 0x0424, 0x0425, 0x0426, 0x0427, 0x0428, 0x0429, 0x042A, 0x042B, 0x042C, 0x042D, 0x042E, 0x042F, - 0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0436, 0x0437, 0x0438, 0x0439, 0x043A, 0x043B, 0x043C, 0x043D, 0x043E, 0x043F, - 0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x2561, 0x2562, 0x2556, 0x2555, 0x2563, 0x2551, 0x2557, 0x255D, 0x255C, 0x255B, 0x2510, - 0x2514, 0x2534, 0x252C, 0x251C, 0x2500, 0x253C, 0x255E, 0x255F, 0x255A, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256C, 0x2567, - 0x2568, 0x2564, 0x2565, 0x2559, 0x2558, 0x2552, 0x2553, 0x256B, 0x256A, 0x2518, 0x250C, 0x2588, 0x2584, 0x258C, 0x2590, 0x2580, - 0x0440, 0x0441, 0x0442, 0x0443, 0x0444, 0x0445, 0x0446, 0x0447, 0x0448, 0x0449, 0x044A, 0x044B, 0x044C, 0x044D, 0x044E, 0x044F, - 0x0401, 0x0451, 0x0404, 0x0454, 0x0407, 0x0457, 0x040E, 0x045E, 0x00B0, 0x2219, 0x00B7, 0x221A, 0x2116, 0x00A4, 0x25A0, 0x00A0 -}; - -#elif _CODE_PAGE == 869 -#define _TBLDEF 1 -static -const WCHAR Tbl[] = { /* CP869(0x80-0xFF) to Unicode conversion table */ - 0x00B7, 0x00B7, 0x00B7, 0x00B7, 0x00B7, 0x00B7, 0x0386, 0x00B7, 0x00B7, 0x00AC, 0x00A6, 0x2018, 0x2019, 0x0388, 0x2015, 0x0389, - 0x038A, 0x03AA, 0x038C, 0x00B7, 0x00B7, 0x038E, 0x03AB, 0x00A9, 0x038F, 0x00B2, 0x00B3, 0x03AC, 0x00A3, 0x03AD, 0x03AE, 0x03AF, - 0x03CA, 0x0390, 0x03CC, 0x03CD, 0x0391, 0x0392, 0x0393, 0x0394, 0x0395, 0x0396, 0x0397, 0x00BD, 0x0398, 0x0399, 0x00AB, 0x00BB, - 0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x039A, 0x039B, 0x039C, 0x039D, 0x2563, 0x2551, 0x2557, 0x255D, 0x039E, 0x039F, 0x2510, - 0x2514, 0x2534, 0x252C, 0x251C, 0x2500, 0x253C, 0x0A30, 0x03A1, 0x255A, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256C, 0x03A3, - 0x03A4, 0x03A5, 0x03A6, 0x03A7, 0x03A8, 0x03A9, 0x03B1, 0x03B2, 0x03B3, 0x2518, 0x250C, 0x2588, 0x2584, 0x03B4, 0x03B5, 0x2580, - 0x03B6, 0x03B7, 0x03B8, 0x03B9, 0x03BA, 0x03BB, 0x03BC, 0x03BD, 0x03BE, 0x03BF, 0x03C0, 0x03C1, 0x03C3, 0x03C2, 0x03C4, 0x0384, - 0x00AD, 0x00B1, 0x03C5, 0x03C6, 0x03C7, 0x00A7, 0x03C8, 0x0385, 0x00B0, 0x00A8, 0x03C9, 0x03CB, 0x03B0, 0x03CE, 0x25A0, 0x00A0 -}; - -#endif - - -#if !_TBLDEF || !_USE_LFN -#error This file is not needed at current configuration. Remove from the project. -#endif - - - - -WCHAR ff_convert ( /* Converted character, Returns zero on error */ - WCHAR chr, /* Character code to be converted */ - UINT dir /* 0: Unicode to OEM code, 1: OEM code to Unicode */ -) -{ - WCHAR c; - - - if (chr < 0x80) { /* ASCII */ - c = chr; - - } else { - if (dir) { /* OEM code to Unicode */ - c = (chr >= 0x100) ? 0 : Tbl[chr - 0x80]; - - } else { /* Unicode to OEM code */ - for (c = 0; c < 0x80; c++) { - if (chr == Tbl[c]) break; - } - c = (c + 0x80) & 0xFF; - } - } - - return c; -} - - - -WCHAR ff_wtoupper ( /* Returns upper converted character */ - WCHAR chr /* Unicode character to be upper converted (BMP only) */ -) -{ - /* Compressed upper conversion table */ - static const WCHAR cvt1[] = { /* U+0000 - U+0FFF */ - /* Basic Latin */ - 0x0061,0x031A, - /* Latin-1 Supplement */ - 0x00E0,0x0317, 0x00F8,0x0307, 0x00FF,0x0001,0x0178, - /* Latin Extended-A */ - 0x0100,0x0130, 0x0132,0x0106, 0x0139,0x0110, 0x014A,0x012E, 0x0179,0x0106, - /* Latin Extended-B */ - 0x0180,0x004D,0x0243,0x0181,0x0182,0x0182,0x0184,0x0184,0x0186,0x0187,0x0187,0x0189,0x018A,0x018B,0x018B,0x018D,0x018E,0x018F,0x0190,0x0191,0x0191,0x0193,0x0194,0x01F6,0x0196,0x0197,0x0198,0x0198,0x023D,0x019B,0x019C,0x019D,0x0220,0x019F,0x01A0,0x01A0,0x01A2,0x01A2,0x01A4,0x01A4,0x01A6,0x01A7,0x01A7,0x01A9,0x01AA,0x01AB,0x01AC,0x01AC,0x01AE,0x01AF,0x01AF,0x01B1,0x01B2,0x01B3,0x01B3,0x01B5,0x01B5,0x01B7,0x01B8,0x01B8,0x01BA,0x01BB,0x01BC,0x01BC,0x01BE,0x01F7,0x01C0,0x01C1,0x01C2,0x01C3,0x01C4,0x01C5,0x01C4,0x01C7,0x01C8,0x01C7,0x01CA,0x01CB,0x01CA, - 0x01CD,0x0110, 0x01DD,0x0001,0x018E, 0x01DE,0x0112, 0x01F3,0x0003,0x01F1,0x01F4,0x01F4, 0x01F8,0x0128, - 0x0222,0x0112, 0x023A,0x0009,0x2C65,0x023B,0x023B,0x023D,0x2C66,0x023F,0x0240,0x0241,0x0241, 0x0246,0x010A, - /* IPA Extensions */ - 0x0253,0x0040,0x0181,0x0186,0x0255,0x0189,0x018A,0x0258,0x018F,0x025A,0x0190,0x025C,0x025D,0x025E,0x025F,0x0193,0x0261,0x0262,0x0194,0x0264,0x0265,0x0266,0x0267,0x0197,0x0196,0x026A,0x2C62,0x026C,0x026D,0x026E,0x019C,0x0270,0x0271,0x019D,0x0273,0x0274,0x019F,0x0276,0x0277,0x0278,0x0279,0x027A,0x027B,0x027C,0x2C64,0x027E,0x027F,0x01A6,0x0281,0x0282,0x01A9,0x0284,0x0285,0x0286,0x0287,0x01AE,0x0244,0x01B1,0x01B2,0x0245,0x028D,0x028E,0x028F,0x0290,0x0291,0x01B7, - /* Greek, Coptic */ - 0x037B,0x0003,0x03FD,0x03FE,0x03FF, 0x03AC,0x0004,0x0386,0x0388,0x0389,0x038A, 0x03B1,0x0311, - 0x03C2,0x0002,0x03A3,0x03A3, 0x03C4,0x0308, 0x03CC,0x0003,0x038C,0x038E,0x038F, 0x03D8,0x0118, - 0x03F2,0x000A,0x03F9,0x03F3,0x03F4,0x03F5,0x03F6,0x03F7,0x03F7,0x03F9,0x03FA,0x03FA, - /* Cyrillic */ - 0x0430,0x0320, 0x0450,0x0710, 0x0460,0x0122, 0x048A,0x0136, 0x04C1,0x010E, 0x04CF,0x0001,0x04C0, 0x04D0,0x0144, - /* Armenian */ - 0x0561,0x0426, - - 0x0000 - }; - static const WCHAR cvt2[] = { /* U+1000 - U+FFFF */ - /* Phonetic Extensions */ - 0x1D7D,0x0001,0x2C63, - /* Latin Extended Additional */ - 0x1E00,0x0196, 0x1EA0,0x015A, - /* Greek Extended */ - 0x1F00,0x0608, 0x1F10,0x0606, 0x1F20,0x0608, 0x1F30,0x0608, 0x1F40,0x0606, - 0x1F51,0x0007,0x1F59,0x1F52,0x1F5B,0x1F54,0x1F5D,0x1F56,0x1F5F, 0x1F60,0x0608, - 0x1F70,0x000E,0x1FBA,0x1FBB,0x1FC8,0x1FC9,0x1FCA,0x1FCB,0x1FDA,0x1FDB,0x1FF8,0x1FF9,0x1FEA,0x1FEB,0x1FFA,0x1FFB, - 0x1F80,0x0608, 0x1F90,0x0608, 0x1FA0,0x0608, 0x1FB0,0x0004,0x1FB8,0x1FB9,0x1FB2,0x1FBC, - 0x1FCC,0x0001,0x1FC3, 0x1FD0,0x0602, 0x1FE0,0x0602, 0x1FE5,0x0001,0x1FEC, 0x1FF2,0x0001,0x1FFC, - /* Letterlike Symbols */ - 0x214E,0x0001,0x2132, - /* Number forms */ - 0x2170,0x0210, 0x2184,0x0001,0x2183, - /* Enclosed Alphanumerics */ - 0x24D0,0x051A, 0x2C30,0x042F, - /* Latin Extended-C */ - 0x2C60,0x0102, 0x2C67,0x0106, 0x2C75,0x0102, - /* Coptic */ - 0x2C80,0x0164, - /* Georgian Supplement */ - 0x2D00,0x0826, - /* Full-width */ - 0xFF41,0x031A, - - 0x0000 - }; - const WCHAR *p; - WCHAR bc, nc, cmd; - - - p = chr < 0x1000 ? cvt1 : cvt2; - for (;;) { - bc = *p++; /* Get block base */ - if (!bc || chr < bc) break; - nc = *p++; cmd = nc >> 8; nc &= 0xFF; /* Get processing command and block size */ - if (chr < bc + nc) { /* In the block? */ - switch (cmd) { - case 0: chr = p[chr - bc]; break; /* Table conversion */ - case 1: chr -= (chr - bc) & 1; break; /* Case pairs */ - case 2: chr -= 16; break; /* Shift -16 */ - case 3: chr -= 32; break; /* Shift -32 */ - case 4: chr -= 48; break; /* Shift -48 */ - case 5: chr -= 26; break; /* Shift -26 */ - case 6: chr += 8; break; /* Shift +8 */ - case 7: chr -= 80; break; /* Shift -80 */ - case 8: chr -= 0x1C60; break; /* Shift -0x1C60 */ - } - break; - } - if (!cmd) p += nc; - } - - return chr; -} - diff --git a/Middlewares/Third_Party/FatFs/src/option/syscall.c b/Middlewares/Third_Party/FatFs/src/option/syscall.c deleted file mode 100644 index cd6370d..0000000 --- a/Middlewares/Third_Party/FatFs/src/option/syscall.c +++ /dev/null @@ -1,177 +0,0 @@ -/*------------------------------------------------------------------------*/ -/* Sample code of OS dependent controls for FatFs */ -/* (C)ChaN, 2014 */ -/* Portions COPYRIGHT 2017 STMicroelectronics */ -/* Portions Copyright (C) 2014, ChaN, all right reserved */ -/*------------------------------------------------------------------------*/ - -/** - ****************************************************************************** - * @attention - * - * Copyright (c) 2017 STMicroelectronics. All rights reserved. - * - * This software component is licensed by ST under BSD 3-Clause license, - * the "License"; You may not use this file except in compliance with the - * License. You may obtain a copy of the License at: - * opensource.org/licenses/BSD-3-Clause - * - ****************************************************************************** -**/ - - - -#include "../ff.h" - - -#if _FS_REENTRANT -/*------------------------------------------------------------------------*/ -/* Create a Synchronization Object */ -/*------------------------------------------------------------------------*/ -/* This function is called in f_mount() function to create a new -/ synchronization object, such as semaphore and mutex. When a 0 is returned, -/ the f_mount() function fails with FR_INT_ERR. -*/ - -int ff_cre_syncobj ( /* 1:Function succeeded, 0:Could not create the sync object */ - BYTE vol, /* Corresponding volume (logical drive number) */ - _SYNC_t *sobj /* Pointer to return the created sync object */ -) -{ - - int ret; -#if _USE_MUTEX - -#if (osCMSIS < 0x20000U) - osMutexDef(MTX); - *sobj = osMutexCreate(osMutex(MTX)); -#else - *sobj = osMutexNew(NULL); -#endif - -#else - -#if (osCMSIS < 0x20000U) - osSemaphoreDef(SEM); - *sobj = osSemaphoreCreate(osSemaphore(SEM), 1); -#else - *sobj = osSemaphoreNew(1, 1, NULL); -#endif - -#endif - ret = (*sobj != NULL); - - return ret; -} - - - -/*------------------------------------------------------------------------*/ -/* Delete a Synchronization Object */ -/*------------------------------------------------------------------------*/ -/* This function is called in f_mount() function to delete a synchronization -/ object that created with ff_cre_syncobj() function. When a 0 is returned, -/ the f_mount() function fails with FR_INT_ERR. -*/ - -int ff_del_syncobj ( /* 1:Function succeeded, 0:Could not delete due to any error */ - _SYNC_t sobj /* Sync object tied to the logical drive to be deleted */ -) -{ -#if _USE_MUTEX - osMutexDelete (sobj); -#else - osSemaphoreDelete (sobj); -#endif - return 1; -} - - - -/*------------------------------------------------------------------------*/ -/* Request Grant to Access the Volume */ -/*------------------------------------------------------------------------*/ -/* This function is called on entering file functions to lock the volume. -/ When a 0 is returned, the file function fails with FR_TIMEOUT. -*/ - -int ff_req_grant ( /* 1:Got a grant to access the volume, 0:Could not get a grant */ - _SYNC_t sobj /* Sync object to wait */ -) -{ - int ret = 0; -#if (osCMSIS < 0x20000U) - -#if _USE_MUTEX - if(osMutexWait(sobj, _FS_TIMEOUT) == osOK) -#else - if(osSemaphoreWait(sobj, _FS_TIMEOUT) == osOK) -#endif - -#else - -#if _USE_MUTEX - if(osMutexAcquire(sobj, _FS_TIMEOUT) == osOK) -#else - if(osSemaphoreAcquire(sobj, _FS_TIMEOUT) == osOK) -#endif - -#endif - { - ret = 1; - } - - return ret; -} - - - -/*------------------------------------------------------------------------*/ -/* Release Grant to Access the Volume */ -/*------------------------------------------------------------------------*/ -/* This function is called on leaving file functions to unlock the volume. -*/ - -void ff_rel_grant ( - _SYNC_t sobj /* Sync object to be signaled */ -) -{ -#if _USE_MUTEX - osMutexRelease(sobj); -#else - osSemaphoreRelease(sobj); -#endif -} - -#endif - - - - -#if _USE_LFN == 3 /* LFN with a working buffer on the heap */ -/*------------------------------------------------------------------------*/ -/* Allocate a memory block */ -/*------------------------------------------------------------------------*/ -/* If a NULL is returned, the file function fails with FR_NOT_ENOUGH_CORE. -*/ - -void* ff_memalloc ( /* Returns pointer to the allocated memory block */ - UINT msize /* Number of bytes to allocate */ -) -{ - return ff_malloc(msize); /* Allocate a new memory block with POSIX API */ -} - - -/*------------------------------------------------------------------------*/ -/* Free a memory block */ -/*------------------------------------------------------------------------*/ - -void ff_memfree ( - void* mblock /* Pointer to the memory block to free */ -) -{ - ff_free(mblock); /* Discard the memory block with POSIX API */ -} - -#endif diff --git a/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c b/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c deleted file mode 100644 index 89c3633..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c +++ /dev/null @@ -1,1727 +0,0 @@ -/* ---------------------------------------------------------------------- - * $Date: 5. February 2013 - * $Revision: V1.02 - * - * Project: CMSIS-RTOS API - * Title: cmsis_os.c - * - * Version 0.02 - * Initial Proposal Phase - * Version 0.03 - * osKernelStart added, optional feature: main started as thread - * osSemaphores have standard behavior - * osTimerCreate does not start the timer, added osTimerStart - * osThreadPass is renamed to osThreadYield - * Version 1.01 - * Support for C++ interface - * - const attribute removed from the osXxxxDef_t typedef's - * - const attribute added to the osXxxxDef macros - * Added: osTimerDelete, osMutexDelete, osSemaphoreDelete - * Added: osKernelInitialize - * Version 1.02 - * Control functions for short timeouts in microsecond resolution: - * Added: osKernelSysTick, osKernelSysTickFrequency, osKernelSysTickMicroSec - * Removed: osSignalGet - * - * - *---------------------------------------------------------------------------- - * - * Portions Copyright © 2016 STMicroelectronics International N.V. All rights reserved. - * Portions Copyright (c) 2013 ARM LIMITED - * All rights reserved. - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - Neither the name of ARM nor the names of its contributors may be used - * to endorse or promote products derived from this software without - * specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - *---------------------------------------------------------------------------*/ - -#include -#include "cmsis_os.h" - -/* - * ARM Compiler 4/5 - */ -#if defined ( __CC_ARM ) - - #define __ASM __asm - #define __INLINE __inline - #define __STATIC_INLINE static __inline - - #include "cmsis_armcc.h" - -/* - * GNU Compiler - */ -#elif defined ( __GNUC__ ) - - #define __ASM __asm /*!< asm keyword for GNU Compiler */ - #define __INLINE inline /*!< inline keyword for GNU Compiler */ - #define __STATIC_INLINE static inline - - #include "cmsis_gcc.h" - - -/* - * IAR Compiler - */ -#elif defined ( __ICCARM__ ) - - #ifndef __ASM - #define __ASM __asm - #endif - #ifndef __INLINE - #define __INLINE inline - #endif - #ifndef __STATIC_INLINE - #define __STATIC_INLINE static inline - #endif - - #include -#endif - -extern void xPortSysTickHandler(void); - -/* Convert from CMSIS type osPriority to FreeRTOS priority number */ -static unsigned portBASE_TYPE makeFreeRtosPriority (osPriority priority) -{ - unsigned portBASE_TYPE fpriority = tskIDLE_PRIORITY; - - if (priority != osPriorityError) { - fpriority += (priority - osPriorityIdle); - } - - return fpriority; -} - -#if (INCLUDE_uxTaskPriorityGet == 1) -/* Convert from FreeRTOS priority number to CMSIS type osPriority */ -static osPriority makeCmsisPriority (unsigned portBASE_TYPE fpriority) -{ - osPriority priority = osPriorityError; - - if ((fpriority - tskIDLE_PRIORITY) <= (osPriorityRealtime - osPriorityIdle)) { - priority = (osPriority)((int)osPriorityIdle + (int)(fpriority - tskIDLE_PRIORITY)); - } - - return priority; -} -#endif - - -/* Determine whether we are in thread mode or handler mode. */ -static int inHandlerMode (void) -{ - return __get_IPSR() != 0; -} - -/*********************** Kernel Control Functions *****************************/ -/** -* @brief Initialize the RTOS Kernel for creating objects. -* @retval status code that indicates the execution status of the function. -* @note MUST REMAIN UNCHANGED: \b osKernelInitialize shall be consistent in every CMSIS-RTOS. -*/ -osStatus osKernelInitialize (void); - -/** -* @brief Start the RTOS Kernel with executing the specified thread. -* @param thread_def thread definition referenced with \ref osThread. -* @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) -{ - vTaskStartScheduler(); - - return osOK; -} - -/** -* @brief Check if the RTOS kernel is already started -* @param None -* @retval (0) RTOS is not started -* (1) RTOS is started -* (-1) if this feature is disabled in FreeRTOSConfig.h -* @note MUST REMAIN UNCHANGED: \b osKernelRunning shall be consistent in every CMSIS-RTOS. -*/ -int32_t osKernelRunning(void) -{ -#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) - if (xTaskGetSchedulerState() == taskSCHEDULER_NOT_STARTED) - return 0; - else - return 1; -#else - return (-1); -#endif -} - -#if (defined (osFeature_SysTick) && (osFeature_SysTick != 0)) // System Timer available -/** -* @brief Get the value of the Kernel SysTick timer -* @param None -* @retval None -* @note MUST REMAIN UNCHANGED: \b osKernelSysTick shall be consistent in every CMSIS-RTOS. -*/ -uint32_t osKernelSysTick(void) -{ - if (inHandlerMode()) { - return xTaskGetTickCountFromISR(); - } - else { - return xTaskGetTickCount(); - } -} -#endif // System Timer available -/*********************** Thread Management *****************************/ -/** -* @brief Create a thread and add it to Active Threads and set it to state READY. -* @param thread_def thread definition referenced with \ref osThread. -* @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) -{ - TaskHandle_t handle; - -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) - if((thread_def->buffer != NULL) && (thread_def->controlblock != NULL)) { - handle = xTaskCreateStatic((TaskFunction_t)thread_def->pthread,(const portCHAR *)thread_def->name, - thread_def->stacksize, argument, makeFreeRtosPriority(thread_def->tpriority), - thread_def->buffer, thread_def->controlblock); - } - else { - if (xTaskCreate((TaskFunction_t)thread_def->pthread,(const portCHAR *)thread_def->name, - thread_def->stacksize, argument, makeFreeRtosPriority(thread_def->tpriority), - &handle) != pdPASS) { - return NULL; - } - } -#elif( configSUPPORT_STATIC_ALLOCATION == 1 ) - - handle = xTaskCreateStatic((TaskFunction_t)thread_def->pthread,(const portCHAR *)thread_def->name, - thread_def->stacksize, argument, makeFreeRtosPriority(thread_def->tpriority), - thread_def->buffer, thread_def->controlblock); -#else - if (xTaskCreate((TaskFunction_t)thread_def->pthread,(const portCHAR *)thread_def->name, - thread_def->stacksize, argument, makeFreeRtosPriority(thread_def->tpriority), - &handle) != pdPASS) { - return NULL; - } -#endif - - return handle; -} - -/** -* @brief Return the thread ID of the current running thread. -* @retval thread ID for reference by other functions or NULL in case of error. -* @note MUST REMAIN UNCHANGED: \b osThreadGetId shall be consistent in every CMSIS-RTOS. -*/ -osThreadId osThreadGetId (void) -{ -#if ( ( INCLUDE_xTaskGetCurrentTaskHandle == 1 ) || ( configUSE_MUTEXES == 1 ) ) - return xTaskGetCurrentTaskHandle(); -#else - return NULL; -#endif -} - -/** -* @brief Terminate execution of a thread and remove it from Active Threads. -* @param thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. -* @retval status code that indicates the execution status of the function. -* @note MUST REMAIN UNCHANGED: \b osThreadTerminate shall be consistent in every CMSIS-RTOS. -*/ -osStatus osThreadTerminate (osThreadId thread_id) -{ -#if (INCLUDE_vTaskDelete == 1) - vTaskDelete(thread_id); - return osOK; -#else - return osErrorOS; -#endif -} - -/** -* @brief Pass control to next thread that is in state \b READY. -* @retval status code that indicates the execution status of the function. -* @note MUST REMAIN UNCHANGED: \b osThreadYield shall be consistent in every CMSIS-RTOS. -*/ -osStatus osThreadYield (void) -{ - taskYIELD(); - - return osOK; -} - -/** -* @brief Change priority of an active thread. -* @param thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. -* @param priority new priority value for the thread function. -* @retval status code that indicates the execution status of the function. -* @note MUST REMAIN UNCHANGED: \b osThreadSetPriority shall be consistent in every CMSIS-RTOS. -*/ -osStatus osThreadSetPriority (osThreadId thread_id, osPriority priority) -{ -#if (INCLUDE_vTaskPrioritySet == 1) - vTaskPrioritySet(thread_id, makeFreeRtosPriority(priority)); - return osOK; -#else - return osErrorOS; -#endif -} - -/** -* @brief Get current priority of an active thread. -* @param thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. -* @retval current priority value of the thread function. -* @note MUST REMAIN UNCHANGED: \b osThreadGetPriority shall be consistent in every CMSIS-RTOS. -*/ -osPriority osThreadGetPriority (osThreadId thread_id) -{ -#if (INCLUDE_uxTaskPriorityGet == 1) - if (inHandlerMode()) - { - return makeCmsisPriority(uxTaskPriorityGetFromISR(thread_id)); - } - else - { - return makeCmsisPriority(uxTaskPriorityGet(thread_id)); - } -#else - return osPriorityError; -#endif -} - -/*********************** Generic Wait Functions *******************************/ -/** -* @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) -{ -#if INCLUDE_vTaskDelay - TickType_t ticks = millisec / portTICK_PERIOD_MS; - - vTaskDelay(ticks ? ticks : 1); /* Minimum delay = 1 tick */ - - return osOK; -#else - (void) millisec; - - return osErrorResource; -#endif -} - -#if (defined (osFeature_Wait) && (osFeature_Wait != 0)) /* Generic Wait available */ -/** -* @brief Wait for Signal, Message, Mail, or Timeout -* @param millisec timeout value or 0 in case of no time-out -* @retval event that contains signal, message, or mail information or error code. -* @note MUST REMAIN UNCHANGED: \b osWait shall be consistent in every CMSIS-RTOS. -*/ -osEvent osWait (uint32_t millisec); - -#endif /* Generic Wait available */ - -/*********************** Timer Management Functions ***************************/ -/** -* @brief Create a timer. -* @param timer_def timer object referenced with \ref osTimer. -* @param type osTimerOnce for one-shot or osTimerPeriodic for periodic behavior. -* @param argument argument to the timer call back function. -* @retval timer ID for reference by other functions or NULL in case of error. -* @note MUST REMAIN UNCHANGED: \b osTimerCreate shall be consistent in every CMSIS-RTOS. -*/ -osTimerId osTimerCreate (const osTimerDef_t *timer_def, os_timer_type type, void *argument) -{ -#if (configUSE_TIMERS == 1) - -#if( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) - if(timer_def->controlblock != NULL) { - return xTimerCreateStatic((const char *)"", - 1, // period should be filled when starting the Timer using osTimerStart - (type == osTimerPeriodic) ? pdTRUE : pdFALSE, - (void *) argument, - (TimerCallbackFunction_t)timer_def->ptimer, - (StaticTimer_t *)timer_def->controlblock); - } - else { - return xTimerCreate((const char *)"", - 1, // period should be filled when starting the Timer using osTimerStart - (type == osTimerPeriodic) ? pdTRUE : pdFALSE, - (void *) argument, - (TimerCallbackFunction_t)timer_def->ptimer); - } -#elif( configSUPPORT_STATIC_ALLOCATION == 1 ) - return xTimerCreateStatic((const char *)"", - 1, // period should be filled when starting the Timer using osTimerStart - (type == osTimerPeriodic) ? pdTRUE : pdFALSE, - (void *) argument, - (TimerCallbackFunction_t)timer_def->ptimer, - (StaticTimer_t *)timer_def->controlblock); -#else - return xTimerCreate((const char *)"", - 1, // period should be filled when starting the Timer using osTimerStart - (type == osTimerPeriodic) ? pdTRUE : pdFALSE, - (void *) argument, - (TimerCallbackFunction_t)timer_def->ptimer); -#endif - -#else - return NULL; -#endif -} - -/** -* @brief Start or restart a timer. -* @param timer_id timer ID obtained by \ref osTimerCreate. -* @param millisec time delay value of the timer. -* @retval status code that indicates the execution status of the function -* @note MUST REMAIN UNCHANGED: \b osTimerStart shall be consistent in every CMSIS-RTOS. -*/ -osStatus osTimerStart (osTimerId timer_id, uint32_t millisec) -{ - osStatus result = osOK; -#if (configUSE_TIMERS == 1) - portBASE_TYPE taskWoken = pdFALSE; - TickType_t ticks = millisec / portTICK_PERIOD_MS; - - if (ticks == 0) - ticks = 1; - - if (inHandlerMode()) - { - if (xTimerChangePeriodFromISR(timer_id, ticks, &taskWoken) != pdPASS) - { - result = osErrorOS; - } - else - { - portEND_SWITCHING_ISR(taskWoken); - } - } - else - { - if (xTimerChangePeriod(timer_id, ticks, 0) != pdPASS) - result = osErrorOS; - } - -#else - result = osErrorOS; -#endif - return result; -} - -/** -* @brief Stop a timer. -* @param timer_id timer ID obtained by \ref osTimerCreate -* @retval status code that indicates the execution status of the function. -* @note MUST REMAIN UNCHANGED: \b osTimerStop shall be consistent in every CMSIS-RTOS. -*/ -osStatus osTimerStop (osTimerId timer_id) -{ - osStatus result = osOK; -#if (configUSE_TIMERS == 1) - portBASE_TYPE taskWoken = pdFALSE; - - if (inHandlerMode()) { - if (xTimerStopFromISR(timer_id, &taskWoken) != pdPASS) { - return osErrorOS; - } - portEND_SWITCHING_ISR(taskWoken); - } - else { - if (xTimerStop(timer_id, 0) != pdPASS) { - result = osErrorOS; - } - } -#else - result = osErrorOS; -#endif - return result; -} - -/** -* @brief Delete a timer. -* @param timer_id timer ID obtained by \ref osTimerCreate -* @retval status code that indicates the execution status of the function. -* @note MUST REMAIN UNCHANGED: \b osTimerDelete shall be consistent in every CMSIS-RTOS. -*/ -osStatus osTimerDelete (osTimerId timer_id) -{ -osStatus result = osOK; - -#if (configUSE_TIMERS == 1) - - if (inHandlerMode()) { - return osErrorISR; - } - else { - if ((xTimerDelete(timer_id, osWaitForever )) != pdPASS) { - result = osErrorOS; - } - } - -#else - result = osErrorOS; -#endif - - return result; -} - -/*************************** Signal Management ********************************/ -/** -* @brief Set the specified Signal Flags of an active thread. -* @param thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. -* @param signals specifies the signal flags of the thread that should be set. -* @retval previous signal flags of the specified thread or 0x80000000 in case of incorrect parameters. -* @note MUST REMAIN UNCHANGED: \b osSignalSet shall be consistent in every CMSIS-RTOS. -*/ -int32_t osSignalSet (osThreadId thread_id, int32_t signal) -{ -#if( configUSE_TASK_NOTIFICATIONS == 1 ) - BaseType_t xHigherPriorityTaskWoken = pdFALSE; - uint32_t ulPreviousNotificationValue = 0; - - if (inHandlerMode()) - { - if(xTaskGenericNotifyFromISR( thread_id , (uint32_t)signal, eSetBits, &ulPreviousNotificationValue, &xHigherPriorityTaskWoken ) != pdPASS ) - return 0x80000000; - - portYIELD_FROM_ISR( xHigherPriorityTaskWoken ); - } - else if(xTaskGenericNotify( thread_id , (uint32_t)signal, eSetBits, &ulPreviousNotificationValue) != pdPASS ) - return 0x80000000; - - return ulPreviousNotificationValue; -#else - (void) thread_id; - (void) signal; - - return 0x80000000; /* Task Notification not supported */ -#endif -} - -/** -* @brief Clear the specified Signal Flags of an active thread. -* @param thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. -* @param signals specifies the signal flags of the thread that shall be cleared. -* @retval previous signal flags of the specified thread or 0x80000000 in case of incorrect parameters. -* @note MUST REMAIN UNCHANGED: \b osSignalClear shall be consistent in every CMSIS-RTOS. -*/ -int32_t osSignalClear (osThreadId thread_id, int32_t signal); - -/** -* @brief Wait for one or more Signal Flags to become signaled for the current \b RUNNING thread. -* @param signals wait until all specified signal flags set or 0 for any single signal flag. -* @param millisec timeout value or 0 in case of no time-out. -* @retval event flag information or error code. -* @note MUST REMAIN UNCHANGED: \b osSignalWait shall be consistent in every CMSIS-RTOS. -*/ -osEvent osSignalWait (int32_t signals, uint32_t millisec) -{ - osEvent ret; - -#if( configUSE_TASK_NOTIFICATIONS == 1 ) - - TickType_t ticks; - - ret.value.signals = 0; - ticks = 0; - if (millisec == osWaitForever) { - ticks = portMAX_DELAY; - } - else if (millisec != 0) { - ticks = millisec / portTICK_PERIOD_MS; - if (ticks == 0) { - ticks = 1; - } - } - - if (inHandlerMode()) - { - ret.status = osErrorISR; /*Not allowed in ISR*/ - } - else - { - if(xTaskNotifyWait( 0,(uint32_t) signals, (uint32_t *)&ret.value.signals, ticks) != pdTRUE) - { - if(ticks == 0) ret.status = osOK; - else ret.status = osEventTimeout; - } - else if(ret.value.signals < 0) - { - ret.status = osErrorValue; - } - else ret.status = osEventSignal; - } -#else - (void) signals; - (void) millisec; - - ret.status = osErrorOS; /* Task Notification not supported */ -#endif - - return ret; -} - -/**************************** Mutex Management ********************************/ -/** -* @brief Create and Initialize a Mutex object -* @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) -{ -#if ( configUSE_MUTEXES == 1) - -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) - - if (mutex_def->controlblock != NULL) { - return xSemaphoreCreateMutexStatic( mutex_def->controlblock ); - } - else { - return xSemaphoreCreateMutex(); - } -#elif ( configSUPPORT_STATIC_ALLOCATION == 1 ) - return xSemaphoreCreateMutexStatic( mutex_def->controlblock ); -#else - return xSemaphoreCreateMutex(); -#endif -#else - return NULL; -#endif -} - -/** -* @brief Wait until a Mutex becomes available -* @param mutex_id mutex ID obtained by \ref osMutexCreate. -* @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) -{ - TickType_t ticks; - portBASE_TYPE taskWoken = pdFALSE; - - - if (mutex_id == NULL) { - return osErrorParameter; - } - - ticks = 0; - if (millisec == osWaitForever) { - ticks = portMAX_DELAY; - } - else if (millisec != 0) { - ticks = millisec / portTICK_PERIOD_MS; - if (ticks == 0) { - ticks = 1; - } - } - - if (inHandlerMode()) { - if (xSemaphoreTakeFromISR(mutex_id, &taskWoken) != pdTRUE) { - return osErrorOS; - } - portEND_SWITCHING_ISR(taskWoken); - } - else if (xSemaphoreTake(mutex_id, ticks) != pdTRUE) { - return osErrorOS; - } - - return osOK; -} - -/** -* @brief Release a Mutex that was obtained by \ref osMutexWait -* @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) -{ - osStatus result = osOK; - portBASE_TYPE taskWoken = pdFALSE; - - if (inHandlerMode()) { - if (xSemaphoreGiveFromISR(mutex_id, &taskWoken) != pdTRUE) { - return osErrorOS; - } - portEND_SWITCHING_ISR(taskWoken); - } - else if (xSemaphoreGive(mutex_id) != pdTRUE) - { - result = osErrorOS; - } - return result; -} - -/** -* @brief Delete a Mutex -* @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 osMutexDelete shall be consistent in every CMSIS-RTOS. -*/ -osStatus osMutexDelete (osMutexId mutex_id) -{ - if (inHandlerMode()) { - return osErrorISR; - } - - vQueueDelete(mutex_id); - - return osOK; -} - -/******************** Semaphore Management Functions **************************/ - -#if (defined (osFeature_Semaphore) && (osFeature_Semaphore != 0)) - -/** -* @brief Create and Initialize a Semaphore object used for managing resources -* @param semaphore_def semaphore definition referenced with \ref osSemaphore. -* @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) -{ -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) - - osSemaphoreId sema; - - if (semaphore_def->controlblock != NULL){ - if (count == 1) { - return xSemaphoreCreateBinaryStatic( semaphore_def->controlblock ); - } - else { -#if (configUSE_COUNTING_SEMAPHORES == 1 ) - return xSemaphoreCreateCountingStatic( count, count, semaphore_def->controlblock ); -#else - return NULL; -#endif - } - } - else { - if (count == 1) { - vSemaphoreCreateBinary(sema); - return sema; - } - else { -#if (configUSE_COUNTING_SEMAPHORES == 1 ) - return xSemaphoreCreateCounting(count, count); -#else - return NULL; -#endif - } - } -#elif ( configSUPPORT_STATIC_ALLOCATION == 1 ) // configSUPPORT_DYNAMIC_ALLOCATION == 0 - if(count == 1) { - return xSemaphoreCreateBinaryStatic( semaphore_def->controlblock ); - } - else - { -#if (configUSE_COUNTING_SEMAPHORES == 1 ) - return xSemaphoreCreateCountingStatic( count, count, semaphore_def->controlblock ); -#else - return NULL; -#endif - } -#else // configSUPPORT_STATIC_ALLOCATION == 0 && configSUPPORT_DYNAMIC_ALLOCATION == 1 - osSemaphoreId sema; - - if (count == 1) { - vSemaphoreCreateBinary(sema); - return sema; - } - else { -#if (configUSE_COUNTING_SEMAPHORES == 1 ) - return xSemaphoreCreateCounting(count, count); -#else - return NULL; -#endif - } -#endif -} - -/** -* @brief Wait until a Semaphore token becomes available -* @param semaphore_id semaphore object referenced with \ref osSemaphore. -* @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) -{ - TickType_t ticks; - portBASE_TYPE taskWoken = pdFALSE; - - - if (semaphore_id == NULL) { - return osErrorParameter; - } - - ticks = 0; - if (millisec == osWaitForever) { - ticks = portMAX_DELAY; - } - else if (millisec != 0) { - ticks = millisec / portTICK_PERIOD_MS; - if (ticks == 0) { - ticks = 1; - } - } - - if (inHandlerMode()) { - if (xSemaphoreTakeFromISR(semaphore_id, &taskWoken) != pdTRUE) { - return osErrorOS; - } - portEND_SWITCHING_ISR(taskWoken); - } - else if (xSemaphoreTake(semaphore_id, ticks) != pdTRUE) { - return osErrorOS; - } - - return osOK; -} - -/** -* @brief Release a Semaphore token -* @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) -{ - osStatus result = osOK; - portBASE_TYPE taskWoken = pdFALSE; - - - if (inHandlerMode()) { - if (xSemaphoreGiveFromISR(semaphore_id, &taskWoken) != pdTRUE) { - return osErrorOS; - } - portEND_SWITCHING_ISR(taskWoken); - } - else { - if (xSemaphoreGive(semaphore_id) != pdTRUE) { - result = osErrorOS; - } - } - - return result; -} - -/** -* @brief Delete a Semaphore -* @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 osSemaphoreDelete shall be consistent in every CMSIS-RTOS. -*/ -osStatus osSemaphoreDelete (osSemaphoreId semaphore_id) -{ - if (inHandlerMode()) { - return osErrorISR; - } - - vSemaphoreDelete(semaphore_id); - - return osOK; -} - -#endif /* Use Semaphores */ - -/******************* Memory Pool Management Functions ***********************/ - -#if (defined (osFeature_Pool) && (osFeature_Pool != 0)) - -//TODO -//This is a primitive and inefficient wrapper around the existing FreeRTOS memory management. -//A better implementation will have to modify heap_x.c! - - -typedef struct os_pool_cb { - void *pool; - uint8_t *markers; - uint32_t pool_sz; - uint32_t item_sz; - uint32_t currentIndex; -} os_pool_cb_t; - - -/** -* @brief Create and Initialize a memory pool -* @param pool_def memory pool definition referenced with \ref osPool. -* @retval memory pool ID for reference by other functions or NULL in case of error. -* @note MUST REMAIN UNCHANGED: \b osPoolCreate shall be consistent in every CMSIS-RTOS. -*/ -osPoolId osPoolCreate (const osPoolDef_t *pool_def) -{ -#if (configSUPPORT_DYNAMIC_ALLOCATION == 1) - osPoolId thePool; - int itemSize = 4 * ((pool_def->item_sz + 3) / 4); - uint32_t i; - - /* First have to allocate memory for the pool control block. */ - thePool = pvPortMalloc(sizeof(os_pool_cb_t)); - - - if (thePool) { - thePool->pool_sz = pool_def->pool_sz; - thePool->item_sz = itemSize; - thePool->currentIndex = 0; - - /* Memory for markers */ - thePool->markers = pvPortMalloc(pool_def->pool_sz); - - if (thePool->markers) { - /* Now allocate the pool itself. */ - thePool->pool = pvPortMalloc(pool_def->pool_sz * itemSize); - - if (thePool->pool) { - for (i = 0; i < pool_def->pool_sz; i++) { - thePool->markers[i] = 0; - } - } - else { - vPortFree(thePool->markers); - vPortFree(thePool); - thePool = NULL; - } - } - else { - vPortFree(thePool); - thePool = NULL; - } - } - - return thePool; - -#else - return NULL; -#endif -} - -/** -* @brief Allocate a memory block from a memory pool -* @param pool_id memory pool ID obtain referenced with \ref osPoolCreate. -* @retval address of the allocated memory block or NULL in case of no memory available. -* @note MUST REMAIN UNCHANGED: \b osPoolAlloc shall be consistent in every CMSIS-RTOS. -*/ -void *osPoolAlloc (osPoolId pool_id) -{ - int dummy = 0; - void *p = NULL; - uint32_t i; - uint32_t index; - - if (inHandlerMode()) { - dummy = portSET_INTERRUPT_MASK_FROM_ISR(); - } - else { - vPortEnterCritical(); - } - - for (i = 0; i < pool_id->pool_sz; i++) { - index = (pool_id->currentIndex + i) % pool_id->pool_sz; - - if (pool_id->markers[index] == 0) { - pool_id->markers[index] = 1; - p = (void *)((uint32_t)(pool_id->pool) + (index * pool_id->item_sz)); - pool_id->currentIndex = index; - break; - } - } - - if (inHandlerMode()) { - portCLEAR_INTERRUPT_MASK_FROM_ISR(dummy); - } - else { - vPortExitCritical(); - } - - return p; -} - -/** -* @brief Allocate a memory block from a memory pool and set memory block to zero -* @param pool_id memory pool ID obtain referenced with \ref osPoolCreate. -* @retval address of the allocated memory block or NULL in case of no memory available. -* @note MUST REMAIN UNCHANGED: \b osPoolCAlloc shall be consistent in every CMSIS-RTOS. -*/ -void *osPoolCAlloc (osPoolId pool_id) -{ - void *p = osPoolAlloc(pool_id); - - if (p != NULL) - { - memset(p, 0, sizeof(pool_id->pool_sz)); - } - - return p; -} - -/** -* @brief Return an allocated memory block back to a specific memory pool -* @param pool_id memory pool ID obtain referenced with \ref osPoolCreate. -* @param block address of the allocated memory block that is returned to the memory pool. -* @retval status code that indicates the execution status of the function. -* @note MUST REMAIN UNCHANGED: \b osPoolFree shall be consistent in every CMSIS-RTOS. -*/ -osStatus osPoolFree (osPoolId pool_id, void *block) -{ - uint32_t index; - - if (pool_id == NULL) { - return osErrorParameter; - } - - if (block == NULL) { - return osErrorParameter; - } - - if (block < pool_id->pool) { - return osErrorParameter; - } - - index = (uint32_t)block - (uint32_t)(pool_id->pool); - if (index % pool_id->item_sz) { - return osErrorParameter; - } - index = index / pool_id->item_sz; - if (index >= pool_id->pool_sz) { - return osErrorParameter; - } - - pool_id->markers[index] = 0; - - return osOK; -} - - -#endif /* Use Memory Pool Management */ - -/******************* Message Queue Management Functions *********************/ - -#if (defined (osFeature_MessageQ) && (osFeature_MessageQ != 0)) /* Use Message Queues */ - -/** -* @brief Create and Initialize a Message Queue -* @param queue_def queue definition referenced with \ref osMessageQ. -* @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) -{ - (void) thread_id; - -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) - - if ((queue_def->buffer != NULL) && (queue_def->controlblock != NULL)) { - 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); - } -#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 -} - -/** -* @brief Put a Message to a Queue. -* @param queue_id message queue ID obtained with \ref osMessageCreate. -* @param info message information. -* @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) -{ - portBASE_TYPE taskWoken = pdFALSE; - TickType_t ticks; - - ticks = millisec / portTICK_PERIOD_MS; - if (ticks == 0) { - ticks = 1; - } - - if (inHandlerMode()) { - if (xQueueSendFromISR(queue_id, &info, &taskWoken) != pdTRUE) { - return osErrorOS; - } - portEND_SWITCHING_ISR(taskWoken); - } - else { - if (xQueueSend(queue_id, &info, ticks) != pdTRUE) { - return osErrorOS; - } - } - - return osOK; -} - -/** -* @brief Get a Message or Wait for a Message from a Queue. -* @param queue_id message queue ID obtained with \ref osMessageCreate. -* @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) -{ - portBASE_TYPE taskWoken; - TickType_t ticks; - osEvent event; - - event.def.message_id = queue_id; - event.value.v = 0; - - if (queue_id == NULL) { - event.status = osErrorParameter; - return event; - } - - taskWoken = pdFALSE; - - ticks = 0; - if (millisec == osWaitForever) { - ticks = portMAX_DELAY; - } - else if (millisec != 0) { - ticks = millisec / portTICK_PERIOD_MS; - if (ticks == 0) { - ticks = 1; - } - } - - if (inHandlerMode()) { - if (xQueueReceiveFromISR(queue_id, &event.value.v, &taskWoken) == pdTRUE) { - /* We have mail */ - event.status = osEventMessage; - } - else { - event.status = osOK; - } - portEND_SWITCHING_ISR(taskWoken); - } - else { - if (xQueueReceive(queue_id, &event.value.v, ticks) == pdTRUE) { - /* We have mail */ - event.status = osEventMessage; - } - else { - event.status = (ticks == 0) ? osOK : osEventTimeout; - } - } - - return event; -} - -#endif /* Use Message Queues */ - -/******************** Mail Queue Management Functions ***********************/ -#if (defined (osFeature_MailQ) && (osFeature_MailQ != 0)) /* Use Mail Queues */ - - -typedef struct os_mailQ_cb { - const osMailQDef_t *queue_def; - QueueHandle_t handle; - osPoolId pool; -} os_mailQ_cb_t; - -/** -* @brief Create and Initialize mail queue -* @param queue_def reference to the mail queue definition obtain with \ref osMailQ -* @param thread_id thread ID (obtained by \ref osThreadCreate or \ref osThreadGetId) or NULL. -* @retval mail queue ID for reference by other functions or NULL in case of error. -* @note MUST REMAIN UNCHANGED: \b osMailCreate shall be consistent in every CMSIS-RTOS. -*/ -osMailQId osMailCreate (const osMailQDef_t *queue_def, osThreadId thread_id) -{ -#if (configSUPPORT_DYNAMIC_ALLOCATION == 1) - (void) thread_id; - - osPoolDef_t pool_def = {queue_def->queue_sz, queue_def->item_sz, NULL}; - - /* Create a mail queue control block */ - - *(queue_def->cb) = pvPortMalloc(sizeof(struct os_mailQ_cb)); - - if (*(queue_def->cb) == NULL) { - return NULL; - } - (*(queue_def->cb))->queue_def = queue_def; - - /* Create a queue in FreeRTOS */ - (*(queue_def->cb))->handle = xQueueCreate(queue_def->queue_sz, sizeof(void *)); - - - if ((*(queue_def->cb))->handle == NULL) { - vPortFree(*(queue_def->cb)); - return NULL; - } - - /* Create a mail pool */ - (*(queue_def->cb))->pool = osPoolCreate(&pool_def); - if ((*(queue_def->cb))->pool == NULL) { - //TODO: Delete queue. How to do it in FreeRTOS? - vPortFree(*(queue_def->cb)); - return NULL; - } - - return *(queue_def->cb); -#else - return NULL; -#endif -} - -/** -* @brief Allocate a memory block from a mail -* @param queue_id mail queue ID obtained with \ref osMailCreate. -* @param millisec timeout value or 0 in case of no time-out. -* @retval pointer to memory block that can be filled with mail or NULL in case error. -* @note MUST REMAIN UNCHANGED: \b osMailAlloc shall be consistent in every CMSIS-RTOS. -*/ -void *osMailAlloc (osMailQId queue_id, uint32_t millisec) -{ - (void) millisec; - void *p; - - - if (queue_id == NULL) { - return NULL; - } - - p = osPoolAlloc(queue_id->pool); - - return p; -} - -/** -* @brief Allocate a memory block from a mail and set memory block to zero -* @param queue_id mail queue ID obtained with \ref osMailCreate. -* @param millisec timeout value or 0 in case of no time-out. -* @retval pointer to memory block that can be filled with mail or NULL in case error. -* @note MUST REMAIN UNCHANGED: \b osMailCAlloc shall be consistent in every CMSIS-RTOS. -*/ -void *osMailCAlloc (osMailQId queue_id, uint32_t millisec) -{ - uint32_t i; - void *p = osMailAlloc(queue_id, millisec); - - if (p) { - for (i = 0; i < queue_id->queue_def->item_sz; i++) { - ((uint8_t *)p)[i] = 0; - } - } - - return p; -} - -/** -* @brief Put a mail to a queue -* @param queue_id mail queue ID obtained with \ref osMailCreate. -* @param mail memory block previously allocated with \ref osMailAlloc or \ref osMailCAlloc. -* @retval status code that indicates the execution status of the function. -* @note MUST REMAIN UNCHANGED: \b osMailPut shall be consistent in every CMSIS-RTOS. -*/ -osStatus osMailPut (osMailQId queue_id, void *mail) -{ - portBASE_TYPE taskWoken; - - - if (queue_id == NULL) { - return osErrorParameter; - } - - taskWoken = pdFALSE; - - if (inHandlerMode()) { - if (xQueueSendFromISR(queue_id->handle, &mail, &taskWoken) != pdTRUE) { - return osErrorOS; - } - portEND_SWITCHING_ISR(taskWoken); - } - else { - if (xQueueSend(queue_id->handle, &mail, 0) != pdTRUE) { - return osErrorOS; - } - } - - return osOK; -} - -/** -* @brief Get a mail from a queue -* @param queue_id mail queue ID obtained with \ref osMailCreate. -* @param millisec timeout value or 0 in case of no time-out -* @retval event that contains mail information or error code. -* @note MUST REMAIN UNCHANGED: \b osMailGet shall be consistent in every CMSIS-RTOS. -*/ -osEvent osMailGet (osMailQId queue_id, uint32_t millisec) -{ - portBASE_TYPE taskWoken; - TickType_t ticks; - osEvent event; - - event.def.mail_id = queue_id; - - if (queue_id == NULL) { - event.status = osErrorParameter; - return event; - } - - taskWoken = pdFALSE; - - ticks = 0; - if (millisec == osWaitForever) { - ticks = portMAX_DELAY; - } - else if (millisec != 0) { - ticks = millisec / portTICK_PERIOD_MS; - if (ticks == 0) { - ticks = 1; - } - } - - if (inHandlerMode()) { - if (xQueueReceiveFromISR(queue_id->handle, &event.value.p, &taskWoken) == pdTRUE) { - /* We have mail */ - event.status = osEventMail; - } - else { - event.status = osOK; - } - portEND_SWITCHING_ISR(taskWoken); - } - else { - if (xQueueReceive(queue_id->handle, &event.value.p, ticks) == pdTRUE) { - /* We have mail */ - event.status = osEventMail; - } - else { - event.status = (ticks == 0) ? osOK : osEventTimeout; - } - } - - return event; -} - -/** -* @brief Free a memory block from a mail -* @param queue_id mail queue ID obtained with \ref osMailCreate. -* @param mail pointer to the memory block that was obtained with \ref osMailGet. -* @retval status code that indicates the execution status of the function. -* @note MUST REMAIN UNCHANGED: \b osMailFree shall be consistent in every CMSIS-RTOS. -*/ -osStatus osMailFree (osMailQId queue_id, void *mail) -{ - if (queue_id == NULL) { - return osErrorParameter; - } - - return osPoolFree(queue_id->pool, mail); -} -#endif /* Use Mail Queues */ - -/*************************** Additional specific APIs to Free RTOS ************/ -/** -* @brief Handles the tick increment -* @param none. -* @retval none. -*/ -void osSystickHandler(void) -{ - -#if (INCLUDE_xTaskGetSchedulerState == 1 ) - if (xTaskGetSchedulerState() != taskSCHEDULER_NOT_STARTED) - { -#endif /* INCLUDE_xTaskGetSchedulerState */ - xPortSysTickHandler(); -#if (INCLUDE_xTaskGetSchedulerState == 1 ) - } -#endif /* INCLUDE_xTaskGetSchedulerState */ -} - -#if ( INCLUDE_eTaskGetState == 1 ) -/** -* @brief Obtain the state of any thread. -* @param thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. -* @retval the stae of the thread, states are encoded by the osThreadState enumerated type. -*/ -osThreadState osThreadGetState(osThreadId thread_id) -{ - eTaskState ThreadState; - osThreadState result; - - ThreadState = eTaskGetState(thread_id); - - switch (ThreadState) - { - case eRunning : - result = osThreadRunning; - break; - case eReady : - result = osThreadReady; - break; - case eBlocked : - result = osThreadBlocked; - break; - case eSuspended : - result = osThreadSuspended; - break; - case eDeleted : - result = osThreadDeleted; - break; - default: - result = osThreadError; - } - - return result; -} -#endif /* INCLUDE_eTaskGetState */ - -#if (INCLUDE_eTaskGetState == 1) -/** -* @brief Check if a thread is already suspended or not. -* @param thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. -* @retval status code that indicates the execution status of the function. -*/ -osStatus osThreadIsSuspended(osThreadId thread_id) -{ - if (eTaskGetState(thread_id) == eSuspended) - return osOK; - else - return osErrorOS; -} -#endif /* INCLUDE_eTaskGetState */ -/** -* @brief Suspend execution of a thread. -* @param thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. -* @retval status code that indicates the execution status of the function. -*/ -osStatus osThreadSuspend (osThreadId thread_id) -{ -#if (INCLUDE_vTaskSuspend == 1) - vTaskSuspend(thread_id); - - return osOK; -#else - return osErrorResource; -#endif -} - -/** -* @brief Resume execution of a suspended thread. -* @param thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. -* @retval status code that indicates the execution status of the function. -*/ -osStatus osThreadResume (osThreadId thread_id) -{ -#if (INCLUDE_vTaskSuspend == 1) - if(inHandlerMode()) - { - if (xTaskResumeFromISR(thread_id) == pdTRUE) - { - portYIELD_FROM_ISR(pdTRUE); - } - } - else - { - vTaskResume(thread_id); - } - return osOK; -#else - return osErrorResource; -#endif -} - -/** -* @brief Suspend execution of a all active threads. -* @retval status code that indicates the execution status of the function. -*/ -osStatus osThreadSuspendAll (void) -{ - vTaskSuspendAll(); - - return osOK; -} - -/** -* @brief Resume execution of a all suspended threads. -* @retval status code that indicates the execution status of the function. -*/ -osStatus osThreadResumeAll (void) -{ - if (xTaskResumeAll() == pdTRUE) - return osOK; - else - return osErrorOS; - -} - -/** -* @brief Delay a task until a specified time -* @param PreviousWakeTime Pointer to a variable that holds the time at which the -* task was last unblocked. PreviousWakeTime must be initialised with the current time -* prior to its first use (PreviousWakeTime = osKernelSysTick() ) -* @param millisec time delay value -* @retval status code that indicates the execution status of the function. -*/ -osStatus osDelayUntil (uint32_t *PreviousWakeTime, uint32_t millisec) -{ -#if INCLUDE_vTaskDelayUntil - TickType_t ticks = (millisec / portTICK_PERIOD_MS); - vTaskDelayUntil((TickType_t *) PreviousWakeTime, ticks ? ticks : 1); - - return osOK; -#else - (void) millisec; - (void) PreviousWakeTime; - - return osErrorResource; -#endif -} - -/** -* @brief Abort the delay for a specific thread -* @param thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId -* @retval status code that indicates the execution status of the function. -*/ -osStatus osAbortDelay(osThreadId thread_id) -{ -#if INCLUDE_xTaskAbortDelay - - xTaskAbortDelay(thread_id); - - return osOK; -#else - (void) thread_id; - - return osErrorResource; -#endif -} - -/** -* @brief Lists all the current threads, along with their current state -* and stack usage high water mark. -* @param buffer A buffer into which the above mentioned details -* will be written -* @retval status code that indicates the execution status of the function. -*/ -osStatus osThreadList (uint8_t *buffer) -{ -#if ( ( configUSE_TRACE_FACILITY == 1 ) && ( configUSE_STATS_FORMATTING_FUNCTIONS == 1 ) ) - vTaskList((char *)buffer); -#endif - return osOK; -} - -/** -* @brief Receive an item from a queue without removing the item from the queue. -* @param queue_id message queue ID obtained with \ref osMessageCreate. -* @param millisec timeout value or 0 in case of no time-out. -* @retval event information that includes status code. -*/ -osEvent osMessagePeek (osMessageQId queue_id, uint32_t millisec) -{ - TickType_t ticks; - osEvent event; - - event.def.message_id = queue_id; - - if (queue_id == NULL) { - event.status = osErrorParameter; - return event; - } - - ticks = 0; - if (millisec == osWaitForever) { - ticks = portMAX_DELAY; - } - else if (millisec != 0) { - ticks = millisec / portTICK_PERIOD_MS; - if (ticks == 0) { - ticks = 1; - } - } - - if (xQueuePeek(queue_id, &event.value.v, ticks) == pdTRUE) - { - /* We have mail */ - event.status = osEventMessage; - } - else - { - event.status = (ticks == 0) ? osOK : osEventTimeout; - } - - return event; -} - -/** -* @brief Get the number of messaged stored in a queue. -* @param queue_id message queue ID obtained with \ref osMessageCreate. -* @retval number of messages stored in a queue. -*/ -uint32_t osMessageWaiting(osMessageQId queue_id) -{ - if (inHandlerMode()) { - return uxQueueMessagesWaitingFromISR(queue_id); - } - else - { - return uxQueueMessagesWaiting(queue_id); - } -} - -/** -* @brief Get the available space in a message queue. -* @param queue_id message queue ID obtained with \ref osMessageCreate. -* @retval available space in a message queue. -*/ -uint32_t osMessageAvailableSpace(osMessageQId queue_id) -{ - return uxQueueSpacesAvailable(queue_id); -} - -/** -* @brief Delete a Message Queue -* @param queue_id message queue ID obtained with \ref osMessageCreate. -* @retval status code that indicates the execution status of the function. -*/ -osStatus osMessageDelete (osMessageQId queue_id) -{ - if (inHandlerMode()) { - return osErrorISR; - } - - vQueueDelete(queue_id); - - return osOK; -} - -/** -* @brief Create and Initialize a Recursive Mutex -* @param mutex_def mutex definition referenced with \ref osMutex. -* @retval mutex ID for reference by other functions or NULL in case of error.. -*/ -osMutexId osRecursiveMutexCreate (const osMutexDef_t *mutex_def) -{ -#if (configUSE_RECURSIVE_MUTEXES == 1) -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) - - if (mutex_def->controlblock != NULL){ - return xSemaphoreCreateRecursiveMutexStatic( mutex_def->controlblock ); - } - else { - return xSemaphoreCreateRecursiveMutex(); - } -#elif ( configSUPPORT_STATIC_ALLOCATION == 1 ) - return xSemaphoreCreateRecursiveMutexStatic( mutex_def->controlblock ); -#else - return xSemaphoreCreateRecursiveMutex(); -#endif -#else - return NULL; -#endif -} - -/** -* @brief Release a Recursive Mutex -* @param mutex_id mutex ID obtained by \ref osRecursiveMutexCreate. -* @retval status code that indicates the execution status of the function. -*/ -osStatus osRecursiveMutexRelease (osMutexId mutex_id) -{ -#if (configUSE_RECURSIVE_MUTEXES == 1) - osStatus result = osOK; - - if (xSemaphoreGiveRecursive(mutex_id) != pdTRUE) - { - result = osErrorOS; - } - return result; -#else - return osErrorResource; -#endif -} - -/** -* @brief Release a Recursive Mutex -* @param mutex_id mutex ID obtained by \ref osRecursiveMutexCreate. -* @param millisec timeout value or 0 in case of no time-out. -* @retval status code that indicates the execution status of the function. -*/ -osStatus osRecursiveMutexWait (osMutexId mutex_id, uint32_t millisec) -{ -#if (configUSE_RECURSIVE_MUTEXES == 1) - TickType_t ticks; - - if (mutex_id == NULL) - { - return osErrorParameter; - } - - ticks = 0; - if (millisec == osWaitForever) - { - ticks = portMAX_DELAY; - } - else if (millisec != 0) - { - ticks = millisec / portTICK_PERIOD_MS; - if (ticks == 0) - { - ticks = 1; - } - } - - if (xSemaphoreTakeRecursive(mutex_id, ticks) != pdTRUE) - { - return osErrorOS; - } - return osOK; -#else - return osErrorResource; -#endif -} - -/** -* @brief Returns the current count value of a counting semaphore -* @param semaphore_id semaphore_id ID obtained by \ref osSemaphoreCreate. -* @retval count value -*/ -uint32_t osSemaphoreGetCount(osSemaphoreId semaphore_id) -{ - return uxSemaphoreGetCount(semaphore_id); -} diff --git a/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h b/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h deleted file mode 100644 index f53a132..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h +++ /dev/null @@ -1,1026 +0,0 @@ -/* ---------------------------------------------------------------------- - * $Date: 5. February 2013 - * $Revision: V1.02 - * - * Project: CMSIS-RTOS API - * Title: cmsis_os.h header file - * - * Version 0.02 - * Initial Proposal Phase - * Version 0.03 - * osKernelStart added, optional feature: main started as thread - * osSemaphores have standard behavior - * osTimerCreate does not start the timer, added osTimerStart - * osThreadPass is renamed to osThreadYield - * Version 1.01 - * Support for C++ interface - * - const attribute removed from the osXxxxDef_t typedef's - * - const attribute added to the osXxxxDef macros - * Added: osTimerDelete, osMutexDelete, osSemaphoreDelete - * Added: osKernelInitialize - * Version 1.02 - * Control functions for short timeouts in microsecond resolution: - * Added: osKernelSysTick, osKernelSysTickFrequency, osKernelSysTickMicroSec - * Removed: osSignalGet - * - * - *---------------------------------------------------------------------------- - * - * Portions Copyright © 2016 STMicroelectronics International N.V. All rights reserved. - * Portions Copyright (c) 2013 ARM LIMITED - * All rights reserved. - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - Neither the name of ARM nor the names of its contributors may be used - * to endorse or promote products derived from this software without - * specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - *---------------------------------------------------------------------------*/ - -#include "FreeRTOS.h" -#include "task.h" -#include "timers.h" -#include "queue.h" -#include "semphr.h" -#include "event_groups.h" - -/** -\page cmsis_os_h Header File Template: cmsis_os.h - -The file \b cmsis_os.h is a template header file for a CMSIS-RTOS compliant Real-Time Operating System (RTOS). -Each RTOS that is compliant with CMSIS-RTOS shall provide a specific \b cmsis_os.h header file that represents -its implementation. - -The file cmsis_os.h contains: - - CMSIS-RTOS API function definitions - - struct definitions for parameters and return types - - status and priority values used by CMSIS-RTOS API functions - - macros for defining threads and other kernel objects - - -Name conventions and header file modifications - -All definitions are prefixed with \b os to give an unique name space for CMSIS-RTOS functions. -Definitions that are prefixed \b os_ are not used in the application code but local to this header file. -All definitions and functions that belong to a module are grouped and have a common prefix, i.e. \b osThread. - -Definitions that are marked with CAN BE CHANGED can be adapted towards the needs of the actual CMSIS-RTOS implementation. -These definitions can be specific to the underlying RTOS kernel. - -Definitions that are marked with MUST REMAIN UNCHANGED cannot be altered. Otherwise the CMSIS-RTOS implementation is no longer -compliant to the standard. Note that some functions are optional and need not to be provided by every CMSIS-RTOS implementation. - - -Function calls from interrupt service routines - -The following CMSIS-RTOS functions can be called from threads and interrupt service routines (ISR): - - \ref osSignalSet - - \ref osSemaphoreRelease - - \ref osPoolAlloc, \ref osPoolCAlloc, \ref osPoolFree - - \ref osMessagePut, \ref osMessageGet - - \ref osMailAlloc, \ref osMailCAlloc, \ref osMailGet, \ref osMailPut, \ref osMailFree - -Functions that cannot be called from an ISR are verifying the interrupt status and return in case that they are called -from an ISR context the status code \b osErrorISR. In some implementations this condition might be caught using the HARD FAULT vector. - -Some CMSIS-RTOS implementations support CMSIS-RTOS function calls from multiple ISR at the same time. -If this is impossible, the CMSIS-RTOS rejects calls by nested ISR functions with the status code \b osErrorISRRecursive. - - -Define and reference object definitions - -With \#define osObjectsExternal objects are defined as external symbols. This allows to create a consistent header file -that is used throughout a project as shown below: - -Header File -\code -#include // CMSIS RTOS header file - -// Thread definition -extern void thread_sample (void const *argument); // function prototype -osThreadDef (thread_sample, osPriorityBelowNormal, 1, 100); - -// Pool definition -osPoolDef(MyPool, 10, long); -\endcode - - -This header file defines all objects when included in a C/C++ source file. When \#define osObjectsExternal is -present before the header file, the objects are defined as external symbols. A single consistent header file can therefore be -used throughout the whole project. - -Example -\code -#include "osObjects.h" // Definition of the CMSIS-RTOS objects -\endcode - -\code -#define osObjectExternal // Objects will be defined as external symbols -#include "osObjects.h" // Reference to the CMSIS-RTOS objects -\endcode - -*/ - -#ifndef _CMSIS_OS_H -#define _CMSIS_OS_H - -/// \note MUST REMAIN UNCHANGED: \b osCMSIS identifies the CMSIS-RTOS API version. -#define osCMSIS 0x10002 ///< API version (main [31:16] .sub [15:0]) - -/// \note CAN BE CHANGED: \b osCMSIS_KERNEL identifies the underlying RTOS kernel and version number. -#define osCMSIS_KERNEL 0x10000 ///< RTOS identification and version (main [31:16] .sub [15:0]) - -/// \note MUST REMAIN UNCHANGED: \b osKernelSystemId shall be consistent in every CMSIS-RTOS. -#define osKernelSystemId "KERNEL V1.00" ///< RTOS identification string - -/// \note MUST REMAIN UNCHANGED: \b osFeature_xxx shall be consistent in every CMSIS-RTOS. -#define osFeature_MainThread 1 ///< main thread 1=main can be thread, 0=not available -#define osFeature_Pool 1 ///< Memory Pools: 1=available, 0=not available -#define osFeature_MailQ 1 ///< Mail Queues: 1=available, 0=not available -#define osFeature_MessageQ 1 ///< Message Queues: 1=available, 0=not available -#define osFeature_Signals 8 ///< maximum number of Signal Flags available per thread -#define osFeature_Semaphore 1 ///< osFeature_Semaphore function: 1=available, 0=not available -#define osFeature_Wait 0 ///< osWait function: 1=available, 0=not available -#define osFeature_SysTick 1 ///< osKernelSysTick functions: 1=available, 0=not available - -#ifdef __cplusplus -extern "C" -{ -#endif - - -// ==== Enumeration, structures, defines ==== - -/// Priority used for thread control. -/// \note MUST REMAIN UNCHANGED: \b osPriority shall be consistent in every CMSIS-RTOS. -typedef enum { - osPriorityIdle = -3, ///< priority: idle (lowest) - osPriorityLow = -2, ///< priority: low - osPriorityBelowNormal = -1, ///< priority: below normal - osPriorityNormal = 0, ///< priority: normal (default) - osPriorityAboveNormal = +1, ///< priority: above normal - osPriorityHigh = +2, ///< priority: high - osPriorityRealtime = +3, ///< priority: realtime (highest) - osPriorityError = 0x84 ///< system cannot determine priority or thread has illegal priority -} osPriority; - -/// Timeout value. -/// \note MUST REMAIN UNCHANGED: \b osWaitForever shall be consistent in every CMSIS-RTOS. -#define osWaitForever 0xFFFFFFFF ///< wait forever timeout value - -/// Status code values returned by CMSIS-RTOS functions. -/// \note MUST REMAIN UNCHANGED: \b osStatus shall be consistent in every CMSIS-RTOS. -typedef enum { - osOK = 0, ///< function completed; no error or event occurred. - osEventSignal = 0x08, ///< function completed; signal event occurred. - osEventMessage = 0x10, ///< function completed; message event occurred. - osEventMail = 0x20, ///< function completed; mail event occurred. - osEventTimeout = 0x40, ///< function completed; timeout occurred. - osErrorParameter = 0x80, ///< parameter error: a mandatory parameter was missing or specified an incorrect object. - osErrorResource = 0x81, ///< resource not available: a specified resource was not available. - osErrorTimeoutResource = 0xC1, ///< resource not available within given time: a specified resource was not available within the timeout period. - osErrorISR = 0x82, ///< not allowed in ISR context: the function cannot be called from interrupt service routines. - osErrorISRRecursive = 0x83, ///< function called multiple times from ISR with same object. - osErrorPriority = 0x84, ///< system cannot determine priority or thread has illegal priority. - osErrorNoMemory = 0x85, ///< system is out of memory: it was impossible to allocate or reserve memory for the operation. - osErrorValue = 0x86, ///< value of a parameter is out of range. - osErrorOS = 0xFF, ///< unspecified RTOS error: run-time error but no other error message fits. - os_status_reserved = 0x7FFFFFFF ///< prevent from enum down-size compiler optimization. -} osStatus; - -#if ( INCLUDE_eTaskGetState == 1 ) -/* Thread state returned by osThreadGetState */ -typedef enum { - osThreadRunning = 0x0, /* A thread is querying the state of itself, so must be running. */ - osThreadReady = 0x1 , /* The thread being queried is in a read or pending ready list. */ - osThreadBlocked = 0x2, /* The thread being queried is in the Blocked state. */ - osThreadSuspended = 0x3, /* The thread being queried is in the Suspended state, or is in the Blocked state with an infinite time out. */ - osThreadDeleted = 0x4, /* The thread being queried has been deleted, but its TCB has not yet been freed. */ - osThreadError = 0x7FFFFFFF -} osThreadState; -#endif /* INCLUDE_eTaskGetState */ - -/// Timer type value for the timer definition. -/// \note MUST REMAIN UNCHANGED: \b os_timer_type shall be consistent in every CMSIS-RTOS. -typedef enum { - osTimerOnce = 0, ///< one-shot timer - osTimerPeriodic = 1 ///< repeating timer -} os_timer_type; - -/// Entry point of a thread. -/// \note MUST REMAIN UNCHANGED: \b os_pthread shall be consistent in every CMSIS-RTOS. -typedef void (*os_pthread) (void const *argument); - -/// Entry point of a timer call back function. -/// \note MUST REMAIN UNCHANGED: \b os_ptimer shall be consistent in every CMSIS-RTOS. -typedef void (*os_ptimer) (void const *argument); - -// >>> the following data type definitions may shall adapted towards a specific RTOS - -/// Thread ID identifies the thread (pointer to a thread control block). -/// \note CAN BE CHANGED: \b os_thread_cb is implementation specific in every CMSIS-RTOS. -typedef TaskHandle_t osThreadId; - -/// Timer ID identifies the timer (pointer to a timer control block). -/// \note CAN BE CHANGED: \b os_timer_cb is implementation specific in every CMSIS-RTOS. -typedef TimerHandle_t osTimerId; - -/// Mutex ID identifies the mutex (pointer to a mutex control block). -/// \note CAN BE CHANGED: \b os_mutex_cb is implementation specific in every CMSIS-RTOS. -typedef SemaphoreHandle_t osMutexId; - -/// Semaphore ID identifies the semaphore (pointer to a semaphore control block). -/// \note CAN BE CHANGED: \b os_semaphore_cb is implementation specific in every CMSIS-RTOS. -typedef SemaphoreHandle_t osSemaphoreId; - -/// Pool ID identifies the memory pool (pointer to a memory pool control block). -/// \note CAN BE CHANGED: \b os_pool_cb is implementation specific in every CMSIS-RTOS. -typedef struct os_pool_cb *osPoolId; - -/// Message ID identifies the message queue (pointer to a message queue control block). -/// \note CAN BE CHANGED: \b os_messageQ_cb is implementation specific in every CMSIS-RTOS. -typedef QueueHandle_t osMessageQId; - -/// Mail ID identifies the mail queue (pointer to a mail queue control block). -/// \note CAN BE CHANGED: \b os_mailQ_cb is implementation specific in every CMSIS-RTOS. -typedef struct os_mailQ_cb *osMailQId; - - -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) - -typedef StaticTask_t osStaticThreadDef_t; -typedef StaticTimer_t osStaticTimerDef_t; -typedef StaticSemaphore_t osStaticMutexDef_t; -typedef StaticSemaphore_t osStaticSemaphoreDef_t; -typedef StaticQueue_t osStaticMessageQDef_t; - -#endif - - - - -/// Thread Definition structure contains startup information of a thread. -/// \note CAN BE CHANGED: \b os_thread_def is implementation specific in every CMSIS-RTOS. -typedef struct os_thread_def { - char *name; ///< Thread name - os_pthread pthread; ///< start address of thread function - osPriority tpriority; ///< initial thread priority - uint32_t instances; ///< maximum number of instances of that thread function - uint32_t stacksize; ///< stack size requirements in bytes; 0 is default stack size -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) - uint32_t *buffer; ///< stack buffer for static allocation; NULL for dynamic allocation - osStaticThreadDef_t *controlblock; ///< control block to hold thread's data for static allocation; NULL for dynamic allocation -#endif -} osThreadDef_t; - -/// Timer Definition structure contains timer parameters. -/// \note CAN BE CHANGED: \b os_timer_def is implementation specific in every CMSIS-RTOS. -typedef struct os_timer_def { - os_ptimer ptimer; ///< start address of a timer function -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) - osStaticTimerDef_t *controlblock; ///< control block to hold timer's data for static allocation; NULL for dynamic allocation -#endif -} osTimerDef_t; - -/// Mutex Definition structure contains setup information for a mutex. -/// \note CAN BE CHANGED: \b os_mutex_def is implementation specific in every CMSIS-RTOS. -typedef struct os_mutex_def { - uint32_t dummy; ///< dummy value. -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) - osStaticMutexDef_t *controlblock; ///< control block for static allocation; NULL for dynamic allocation -#endif -} osMutexDef_t; - -/// Semaphore Definition structure contains setup information for a semaphore. -/// \note CAN BE CHANGED: \b os_semaphore_def is implementation specific in every CMSIS-RTOS. -typedef struct os_semaphore_def { - uint32_t dummy; ///< dummy value. -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) - osStaticSemaphoreDef_t *controlblock; ///< control block for static allocation; NULL for dynamic allocation -#endif -} osSemaphoreDef_t; - -/// Definition structure for memory block allocation. -/// \note CAN BE CHANGED: \b os_pool_def is implementation specific in every CMSIS-RTOS. -typedef struct os_pool_def { - uint32_t pool_sz; ///< number of items (elements) in the pool - uint32_t item_sz; ///< size of an item - void *pool; ///< pointer to memory for pool -} osPoolDef_t; - -/// Definition structure for message queue. -/// \note CAN BE CHANGED: \b os_messageQ_def is implementation specific in every CMSIS-RTOS. -typedef struct os_messageQ_def { - uint32_t queue_sz; ///< number of elements in the queue - uint32_t item_sz; ///< size of an item -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) - uint8_t *buffer; ///< buffer for static allocation; NULL for dynamic allocation - osStaticMessageQDef_t *controlblock; ///< control block to hold queue's data for static allocation; NULL for dynamic allocation -#endif - //void *pool; ///< memory array for messages -} osMessageQDef_t; - -/// Definition structure for mail queue. -/// \note CAN BE CHANGED: \b os_mailQ_def is implementation specific in every CMSIS-RTOS. -typedef struct os_mailQ_def { - uint32_t queue_sz; ///< number of elements in the queue - uint32_t item_sz; ///< size of an item - struct os_mailQ_cb **cb; -} osMailQDef_t; - -/// Event structure contains detailed information about an event. -/// \note MUST REMAIN UNCHANGED: \b os_event shall be consistent in every CMSIS-RTOS. -/// However the struct may be extended at the end. -typedef struct { - osStatus status; ///< status code: event or error information - union { - uint32_t v; ///< message as 32-bit value - void *p; ///< message or mail as void pointer - int32_t signals; ///< signal flags - } value; ///< event value - union { - osMailQId mail_id; ///< mail id obtained by \ref osMailCreate - osMessageQId message_id; ///< message id obtained by \ref osMessageCreate - } def; ///< event definition -} osEvent; - - -// ==== Kernel Control Functions ==== - -/// Initialize the RTOS Kernel for creating objects. -/// \return status code that indicates the execution status of the function. -/// \note MUST REMAIN UNCHANGED: \b osKernelInitialize shall be consistent in every CMSIS-RTOS. -osStatus osKernelInitialize (void); - -/// Start the RTOS Kernel. -/// \return 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); - -/// Check if the RTOS kernel is already started. -/// \note MUST REMAIN UNCHANGED: \b osKernelRunning shall be consistent in every CMSIS-RTOS. -/// \return 0 RTOS is not started, 1 RTOS is started. -int32_t osKernelRunning(void); - -#if (defined (osFeature_SysTick) && (osFeature_SysTick != 0)) // System Timer available - -/// Get the RTOS kernel system timer counter -/// \note MUST REMAIN UNCHANGED: \b osKernelSysTick shall be consistent in every CMSIS-RTOS. -/// \return RTOS kernel system timer as 32-bit value -uint32_t osKernelSysTick (void); - -/// The RTOS kernel system timer frequency in Hz -/// \note Reflects the system timer setting and is typically defined in a configuration file. -#define osKernelSysTickFrequency (configTICK_RATE_HZ) - -/// Convert a microseconds value to a RTOS kernel system timer value. -/// \param microsec time value in microseconds. -/// \return time value normalized to the \ref osKernelSysTickFrequency -#define osKernelSysTickMicroSec(microsec) (((uint64_t)microsec * (osKernelSysTickFrequency)) / 1000000) - -#endif // System Timer available - -// ==== Thread Management ==== - -/// Create a Thread Definition with function, priority, and stack requirements. -/// \param name name of the thread function. -/// \param priority initial priority of the thread function. -/// \param instances number of possible thread instances. -/// \param stacksz stack size (in bytes) requirements for the thread function. -/// \note CAN BE CHANGED: The parameters to \b osThreadDef shall be consistent but the -/// macro body is implementation specific in every CMSIS-RTOS. -#if defined (osObjectsExternal) // object is external -#define osThreadDef(name, thread, priority, instances, stacksz) \ -extern const osThreadDef_t os_thread_def_##name -#else // define the object - -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) -#define osThreadDef(name, thread, priority, instances, stacksz) \ -const osThreadDef_t os_thread_def_##name = \ -{ #name, (thread), (priority), (instances), (stacksz), NULL, NULL } - -#define osThreadStaticDef(name, thread, priority, instances, stacksz, buffer, control) \ -const osThreadDef_t os_thread_def_##name = \ -{ #name, (thread), (priority), (instances), (stacksz), (buffer), (control) } -#else //configSUPPORT_STATIC_ALLOCATION == 0 - -#define osThreadDef(name, thread, priority, instances, stacksz) \ -const osThreadDef_t os_thread_def_##name = \ -{ #name, (thread), (priority), (instances), (stacksz)} -#endif -#endif - -/// Access a Thread definition. -/// \param name name of the thread definition object. -/// \note CAN BE CHANGED: The parameter to \b osThread shall be consistent but the -/// macro body is implementation specific in every CMSIS-RTOS. -#define osThread(name) \ -&os_thread_def_##name - -/// Create a thread and add it to Active Threads and set it to state READY. -/// \param[in] thread_def thread definition referenced with \ref osThread. -/// \param[in] argument pointer that is passed to the thread function as start argument. -/// \return 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); - -/// Return the thread ID of the current running thread. -/// \return thread ID for reference by other functions or NULL in case of error. -/// \note MUST REMAIN UNCHANGED: \b osThreadGetId shall be consistent in every CMSIS-RTOS. -osThreadId osThreadGetId (void); - -/// Terminate execution of a thread and remove it from Active Threads. -/// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. -/// \return status code that indicates the execution status of the function. -/// \note MUST REMAIN UNCHANGED: \b osThreadTerminate shall be consistent in every CMSIS-RTOS. -osStatus osThreadTerminate (osThreadId thread_id); - -/// Pass control to next thread that is in state \b READY. -/// \return status code that indicates the execution status of the function. -/// \note MUST REMAIN UNCHANGED: \b osThreadYield shall be consistent in every CMSIS-RTOS. -osStatus osThreadYield (void); - -/// Change priority of an active thread. -/// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. -/// \param[in] priority new priority value for the thread function. -/// \return status code that indicates the execution status of the function. -/// \note MUST REMAIN UNCHANGED: \b osThreadSetPriority shall be consistent in every CMSIS-RTOS. -osStatus osThreadSetPriority (osThreadId thread_id, osPriority priority); - -/// Get current priority of an active thread. -/// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. -/// \return current priority value of the thread function. -/// \note MUST REMAIN UNCHANGED: \b osThreadGetPriority shall be consistent in every CMSIS-RTOS. -osPriority osThreadGetPriority (osThreadId thread_id); - - -// ==== Generic Wait Functions ==== - -/// Wait for Timeout (Time Delay). -/// \param[in] millisec time delay value -/// \return status code that indicates the execution status of the function. -osStatus osDelay (uint32_t millisec); - -#if (defined (osFeature_Wait) && (osFeature_Wait != 0)) // Generic Wait available - -/// Wait for Signal, Message, Mail, or Timeout. -/// \param[in] millisec timeout value or 0 in case of no time-out -/// \return event that contains signal, message, or mail information or error code. -/// \note MUST REMAIN UNCHANGED: \b osWait shall be consistent in every CMSIS-RTOS. -osEvent osWait (uint32_t millisec); - -#endif // Generic Wait available - - -// ==== Timer Management Functions ==== -/// Define a Timer object. -/// \param name name of the timer object. -/// \param function name of the timer call back function. -/// \note CAN BE CHANGED: The parameter to \b osTimerDef shall be consistent but the -/// macro body is implementation specific in every CMSIS-RTOS. -#if defined (osObjectsExternal) // object is external -#define osTimerDef(name, function) \ -extern const osTimerDef_t os_timer_def_##name -#else // define the object - -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) -#define osTimerDef(name, function) \ -const osTimerDef_t os_timer_def_##name = \ -{ (function), NULL } - -#define osTimerStaticDef(name, function, control) \ -const osTimerDef_t os_timer_def_##name = \ -{ (function), (control) } -#else //configSUPPORT_STATIC_ALLOCATION == 0 -#define osTimerDef(name, function) \ -const osTimerDef_t os_timer_def_##name = \ -{ (function) } -#endif -#endif - -/// Access a Timer definition. -/// \param name name of the timer object. -/// \note CAN BE CHANGED: The parameter to \b osTimer shall be consistent but the -/// macro body is implementation specific in every CMSIS-RTOS. -#define osTimer(name) \ -&os_timer_def_##name - -/// Create a timer. -/// \param[in] timer_def timer object referenced with \ref osTimer. -/// \param[in] type osTimerOnce for one-shot or osTimerPeriodic for periodic behavior. -/// \param[in] argument argument to the timer call back function. -/// \return timer ID for reference by other functions or NULL in case of error. -/// \note MUST REMAIN UNCHANGED: \b osTimerCreate shall be consistent in every CMSIS-RTOS. -osTimerId osTimerCreate (const osTimerDef_t *timer_def, os_timer_type type, void *argument); - -/// Start or restart a timer. -/// \param[in] timer_id timer ID obtained by \ref osTimerCreate. -/// \param[in] millisec time delay value of the timer. -/// \return status code that indicates the execution status of the function. -/// \note MUST REMAIN UNCHANGED: \b osTimerStart shall be consistent in every CMSIS-RTOS. -osStatus osTimerStart (osTimerId timer_id, uint32_t millisec); - -/// Stop the timer. -/// \param[in] timer_id timer ID obtained by \ref osTimerCreate. -/// \return status code that indicates the execution status of the function. -/// \note MUST REMAIN UNCHANGED: \b osTimerStop shall be consistent in every CMSIS-RTOS. -osStatus osTimerStop (osTimerId timer_id); - -/// Delete a timer that was created by \ref osTimerCreate. -/// \param[in] timer_id timer ID obtained by \ref osTimerCreate. -/// \return status code that indicates the execution status of the function. -/// \note MUST REMAIN UNCHANGED: \b osTimerDelete shall be consistent in every CMSIS-RTOS. -osStatus osTimerDelete (osTimerId timer_id); - - -// ==== Signal Management ==== - -/// Set the specified Signal Flags of an active thread. -/// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. -/// \param[in] signals specifies the signal flags of the thread that should be set. -/// \return osOK if successful, osErrorOS if failed. -/// \note MUST REMAIN UNCHANGED: \b osSignalSet shall be consistent in every CMSIS-RTOS. -int32_t osSignalSet (osThreadId thread_id, int32_t signals); - -/// Clear the specified Signal Flags of an active thread. -/// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. -/// \param[in] signals specifies the signal flags of the thread that shall be cleared. -/// \return previous signal flags of the specified thread or 0x80000000 in case of incorrect parameters. -/// \note MUST REMAIN UNCHANGED: \b osSignalClear shall be consistent in every CMSIS-RTOS. -int32_t osSignalClear (osThreadId thread_id, int32_t signals); - -/// Wait for one or more Signal Flags to become signaled for the current \b RUNNING thread. -/// \param[in] signals wait until all specified signal flags set or 0 for any single signal flag. -/// \param[in] millisec timeout value or 0 in case of no time-out. -/// \return event flag information or error code. -/// \note MUST REMAIN UNCHANGED: \b osSignalWait shall be consistent in every CMSIS-RTOS. -osEvent osSignalWait (int32_t signals, uint32_t millisec); - - -// ==== Mutex Management ==== - -/// Define a Mutex. -/// \param name name of the mutex object. -/// \note CAN BE CHANGED: The parameter to \b osMutexDef shall be consistent but the -/// macro body is implementation specific in every CMSIS-RTOS. -#if defined (osObjectsExternal) // object is external -#define osMutexDef(name) \ -extern const osMutexDef_t os_mutex_def_##name -#else // define the object - -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) -#define osMutexDef(name) \ -const osMutexDef_t os_mutex_def_##name = { 0, NULL } - -#define osMutexStaticDef(name, control) \ -const osMutexDef_t os_mutex_def_##name = { 0, (control) } -#else //configSUPPORT_STATIC_ALLOCATION == 0 -#define osMutexDef(name) \ -const osMutexDef_t os_mutex_def_##name = { 0 } - -#endif - -#endif - -/// Access a Mutex definition. -/// \param name name of the mutex object. -/// \note CAN BE CHANGED: The parameter to \b osMutex shall be consistent but the -/// macro body is implementation specific in every CMSIS-RTOS. -#define osMutex(name) \ -&os_mutex_def_##name - -/// Create and Initialize a Mutex object. -/// \param[in] mutex_def mutex definition referenced with \ref osMutex. -/// \return 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); - -/// Wait until a Mutex becomes available. -/// \param[in] mutex_id mutex ID obtained by \ref osMutexCreate. -/// \param[in] millisec timeout value or 0 in case of no time-out. -/// \return 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); - -/// Release a Mutex that was obtained by \ref osMutexWait. -/// \param[in] mutex_id mutex ID obtained by \ref osMutexCreate. -/// \return 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); - -/// Delete a Mutex that was created by \ref osMutexCreate. -/// \param[in] mutex_id mutex ID obtained by \ref osMutexCreate. -/// \return status code that indicates the execution status of the function. -/// \note MUST REMAIN UNCHANGED: \b osMutexDelete shall be consistent in every CMSIS-RTOS. -osStatus osMutexDelete (osMutexId mutex_id); - - -// ==== Semaphore Management Functions ==== - -#if (defined (osFeature_Semaphore) && (osFeature_Semaphore != 0)) // Semaphore available - -/// Define a Semaphore object. -/// \param name name of the semaphore object. -/// \note CAN BE CHANGED: The parameter to \b osSemaphoreDef shall be consistent but the -/// macro body is implementation specific in every CMSIS-RTOS. -#if defined (osObjectsExternal) // object is external -#define osSemaphoreDef(name) \ -extern const osSemaphoreDef_t os_semaphore_def_##name -#else // define the object - -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) -#define osSemaphoreDef(name) \ -const osSemaphoreDef_t os_semaphore_def_##name = { 0, NULL } - -#define osSemaphoreStaticDef(name, control) \ -const osSemaphoreDef_t os_semaphore_def_##name = { 0, (control) } - -#else //configSUPPORT_STATIC_ALLOCATION == 0 -#define osSemaphoreDef(name) \ -const osSemaphoreDef_t os_semaphore_def_##name = { 0 } -#endif -#endif - -/// Access a Semaphore definition. -/// \param name name of the semaphore object. -/// \note CAN BE CHANGED: The parameter to \b osSemaphore shall be consistent but the -/// macro body is implementation specific in every CMSIS-RTOS. -#define osSemaphore(name) \ -&os_semaphore_def_##name - -/// Create and Initialize a Semaphore object used for managing resources. -/// \param[in] semaphore_def semaphore definition referenced with \ref osSemaphore. -/// \param[in] count number of available resources. -/// \return 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); - -/// Wait until a Semaphore token becomes available. -/// \param[in] semaphore_id semaphore object referenced with \ref osSemaphoreCreate. -/// \param[in] millisec timeout value or 0 in case of no time-out. -/// \return 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); - -/// Release a Semaphore token. -/// \param[in] semaphore_id semaphore object referenced with \ref osSemaphoreCreate. -/// \return 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); - -/// Delete a Semaphore that was created by \ref osSemaphoreCreate. -/// \param[in] semaphore_id semaphore object referenced with \ref osSemaphoreCreate. -/// \return status code that indicates the execution status of the function. -/// \note MUST REMAIN UNCHANGED: \b osSemaphoreDelete shall be consistent in every CMSIS-RTOS. -osStatus osSemaphoreDelete (osSemaphoreId semaphore_id); - -#endif // Semaphore available - - -// ==== Memory Pool Management Functions ==== - -#if (defined (osFeature_Pool) && (osFeature_Pool != 0)) // Memory Pool Management available - -/// \brief Define a Memory Pool. -/// \param name name of the memory pool. -/// \param no maximum number of blocks (objects) in the memory pool. -/// \param type data type of a single block (object). -/// \note CAN BE CHANGED: The parameter to \b osPoolDef shall be consistent but the -/// macro body is implementation specific in every CMSIS-RTOS. -#if defined (osObjectsExternal) // object is external -#define osPoolDef(name, no, type) \ -extern const osPoolDef_t os_pool_def_##name -#else // define the object -#define osPoolDef(name, no, type) \ -const osPoolDef_t os_pool_def_##name = \ -{ (no), sizeof(type), NULL } -#endif - -/// \brief Access a Memory Pool definition. -/// \param name name of the memory pool -/// \note CAN BE CHANGED: The parameter to \b osPool shall be consistent but the -/// macro body is implementation specific in every CMSIS-RTOS. -#define osPool(name) \ -&os_pool_def_##name - -/// Create and Initialize a memory pool. -/// \param[in] pool_def memory pool definition referenced with \ref osPool. -/// \return memory pool ID for reference by other functions or NULL in case of error. -/// \note MUST REMAIN UNCHANGED: \b osPoolCreate shall be consistent in every CMSIS-RTOS. -osPoolId osPoolCreate (const osPoolDef_t *pool_def); - -/// Allocate a memory block from a memory pool. -/// \param[in] pool_id memory pool ID obtain referenced with \ref osPoolCreate. -/// \return address of the allocated memory block or NULL in case of no memory available. -/// \note MUST REMAIN UNCHANGED: \b osPoolAlloc shall be consistent in every CMSIS-RTOS. -void *osPoolAlloc (osPoolId pool_id); - -/// Allocate a memory block from a memory pool and set memory block to zero. -/// \param[in] pool_id memory pool ID obtain referenced with \ref osPoolCreate. -/// \return address of the allocated memory block or NULL in case of no memory available. -/// \note MUST REMAIN UNCHANGED: \b osPoolCAlloc shall be consistent in every CMSIS-RTOS. -void *osPoolCAlloc (osPoolId pool_id); - -/// Return an allocated memory block back to a specific memory pool. -/// \param[in] pool_id memory pool ID obtain referenced with \ref osPoolCreate. -/// \param[in] block address of the allocated memory block that is returned to the memory pool. -/// \return status code that indicates the execution status of the function. -/// \note MUST REMAIN UNCHANGED: \b osPoolFree shall be consistent in every CMSIS-RTOS. -osStatus osPoolFree (osPoolId pool_id, void *block); - -#endif // Memory Pool Management available - - -// ==== Message Queue Management Functions ==== - -#if (defined (osFeature_MessageQ) && (osFeature_MessageQ != 0)) // Message Queues available - -/// \brief Create a Message Queue Definition. -/// \param name name of the queue. -/// \param queue_sz maximum number of messages in the queue. -/// \param type data type of a single message element (for debugger). -/// \note CAN BE CHANGED: The parameter to \b osMessageQDef shall be consistent but the -/// macro body is implementation specific in every CMSIS-RTOS. -#if defined (osObjectsExternal) // object is external -#define osMessageQDef(name, queue_sz, type) \ -extern const osMessageQDef_t os_messageQ_def_##name -#else // define the object -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) -#define osMessageQDef(name, queue_sz, type) \ -const osMessageQDef_t os_messageQ_def_##name = \ -{ (queue_sz), sizeof (type), NULL, NULL } - -#define osMessageQStaticDef(name, queue_sz, type, buffer, control) \ -const osMessageQDef_t os_messageQ_def_##name = \ -{ (queue_sz), sizeof (type) , (buffer), (control)} -#else //configSUPPORT_STATIC_ALLOCATION == 1 -#define osMessageQDef(name, queue_sz, type) \ -const osMessageQDef_t os_messageQ_def_##name = \ -{ (queue_sz), sizeof (type) } - -#endif -#endif - -/// \brief Access a Message Queue Definition. -/// \param name name of the queue -/// \note CAN BE CHANGED: The parameter to \b osMessageQ shall be consistent but the -/// macro body is implementation specific in every CMSIS-RTOS. -#define osMessageQ(name) \ -&os_messageQ_def_##name - -/// Create and Initialize a Message Queue. -/// \param[in] queue_def queue definition referenced with \ref osMessageQ. -/// \param[in] thread_id thread ID (obtained by \ref osThreadCreate or \ref osThreadGetId) or NULL. -/// \return 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); - -/// Put a Message to a Queue. -/// \param[in] queue_id message queue ID obtained with \ref osMessageCreate. -/// \param[in] info message information. -/// \param[in] millisec timeout value or 0 in case of no time-out. -/// \return 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); - -/// Get a Message or Wait for a Message from a Queue. -/// \param[in] queue_id message queue ID obtained with \ref osMessageCreate. -/// \param[in] millisec timeout value or 0 in case of no time-out. -/// \return 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); - -#endif // Message Queues available - - -// ==== Mail Queue Management Functions ==== - -#if (defined (osFeature_MailQ) && (osFeature_MailQ != 0)) // Mail Queues available - -/// \brief Create a Mail Queue Definition. -/// \param name name of the queue -/// \param queue_sz maximum number of messages in queue -/// \param type data type of a single message element -/// \note CAN BE CHANGED: The parameter to \b osMailQDef shall be consistent but the -/// macro body is implementation specific in every CMSIS-RTOS. -#if defined (osObjectsExternal) // object is external -#define osMailQDef(name, queue_sz, type) \ -extern struct os_mailQ_cb *os_mailQ_cb_##name \ -extern osMailQDef_t os_mailQ_def_##name -#else // define the object -#define osMailQDef(name, queue_sz, type) \ -struct os_mailQ_cb *os_mailQ_cb_##name; \ -const osMailQDef_t os_mailQ_def_##name = \ -{ (queue_sz), sizeof (type), (&os_mailQ_cb_##name) } -#endif - -/// \brief Access a Mail Queue Definition. -/// \param name name of the queue -/// \note CAN BE CHANGED: The parameter to \b osMailQ shall be consistent but the -/// macro body is implementation specific in every CMSIS-RTOS. -#define osMailQ(name) \ -&os_mailQ_def_##name - -/// Create and Initialize mail queue. -/// \param[in] queue_def reference to the mail queue definition obtain with \ref osMailQ -/// \param[in] thread_id thread ID (obtained by \ref osThreadCreate or \ref osThreadGetId) or NULL. -/// \return mail queue ID for reference by other functions or NULL in case of error. -/// \note MUST REMAIN UNCHANGED: \b osMailCreate shall be consistent in every CMSIS-RTOS. -osMailQId osMailCreate (const osMailQDef_t *queue_def, osThreadId thread_id); - -/// Allocate a memory block from a mail. -/// \param[in] queue_id mail queue ID obtained with \ref osMailCreate. -/// \param[in] millisec timeout value or 0 in case of no time-out -/// \return pointer to memory block that can be filled with mail or NULL in case of error. -/// \note MUST REMAIN UNCHANGED: \b osMailAlloc shall be consistent in every CMSIS-RTOS. -void *osMailAlloc (osMailQId queue_id, uint32_t millisec); - -/// Allocate a memory block from a mail and set memory block to zero. -/// \param[in] queue_id mail queue ID obtained with \ref osMailCreate. -/// \param[in] millisec timeout value or 0 in case of no time-out -/// \return pointer to memory block that can be filled with mail or NULL in case of error. -/// \note MUST REMAIN UNCHANGED: \b osMailCAlloc shall be consistent in every CMSIS-RTOS. -void *osMailCAlloc (osMailQId queue_id, uint32_t millisec); - -/// Put a mail to a queue. -/// \param[in] queue_id mail queue ID obtained with \ref osMailCreate. -/// \param[in] mail memory block previously allocated with \ref osMailAlloc or \ref osMailCAlloc. -/// \return status code that indicates the execution status of the function. -/// \note MUST REMAIN UNCHANGED: \b osMailPut shall be consistent in every CMSIS-RTOS. -osStatus osMailPut (osMailQId queue_id, void *mail); - -/// Get a mail from a queue. -/// \param[in] queue_id mail queue ID obtained with \ref osMailCreate. -/// \param[in] millisec timeout value or 0 in case of no time-out -/// \return event that contains mail information or error code. -/// \note MUST REMAIN UNCHANGED: \b osMailGet shall be consistent in every CMSIS-RTOS. -osEvent osMailGet (osMailQId queue_id, uint32_t millisec); - -/// Free a memory block from a mail. -/// \param[in] queue_id mail queue ID obtained with \ref osMailCreate. -/// \param[in] mail pointer to the memory block that was obtained with \ref osMailGet. -/// \return status code that indicates the execution status of the function. -/// \note MUST REMAIN UNCHANGED: \b osMailFree shall be consistent in every CMSIS-RTOS. -osStatus osMailFree (osMailQId queue_id, void *mail); - -#endif // Mail Queues available - -/*************************** Additional specific APIs to Free RTOS ************/ -/** -* @brief Handles the tick increment -* @param none. -* @retval none. -*/ -void osSystickHandler(void); - -#if ( INCLUDE_eTaskGetState == 1 ) -/** -* @brief Obtain the state of any thread. -* @param thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. -* @retval the stae of the thread, states are encoded by the osThreadState enumerated type. -*/ -osThreadState osThreadGetState(osThreadId thread_id); -#endif /* INCLUDE_eTaskGetState */ - -#if ( INCLUDE_eTaskGetState == 1 ) -/** -* @brief Check if a thread is already suspended or not. -* @param thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. -* @retval status code that indicates the execution status of the function. -*/ - -osStatus osThreadIsSuspended(osThreadId thread_id); - -#endif /* INCLUDE_eTaskGetState */ - -/** -* @brief Suspend execution of a thread. -* @param thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. -* @retval status code that indicates the execution status of the function. -*/ -osStatus osThreadSuspend (osThreadId thread_id); - -/** -* @brief Resume execution of a suspended thread. -* @param thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. -* @retval status code that indicates the execution status of the function. -*/ -osStatus osThreadResume (osThreadId thread_id); - -/** -* @brief Suspend execution of a all active threads. -* @retval status code that indicates the execution status of the function. -*/ -osStatus osThreadSuspendAll (void); - -/** -* @brief Resume execution of a all suspended threads. -* @retval status code that indicates the execution status of the function. -*/ -osStatus osThreadResumeAll (void); - -/** -* @brief Delay a task until a specified time -* @param PreviousWakeTime Pointer to a variable that holds the time at which the -* task was last unblocked. PreviousWakeTime must be initialised with the current time -* prior to its first use (PreviousWakeTime = osKernelSysTick() ) -* @param millisec time delay value -* @retval status code that indicates the execution status of the function. -*/ -osStatus osDelayUntil (uint32_t *PreviousWakeTime, uint32_t millisec); - -/** -* @brief Abort the delay for a specific thread -* @param thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId -* @retval status code that indicates the execution status of the function. -*/ -osStatus osAbortDelay(osThreadId thread_id); - -/** -* @brief Lists all the current threads, along with their current state -* and stack usage high water mark. -* @param buffer A buffer into which the above mentioned details -* will be written -* @retval status code that indicates the execution status of the function. -*/ -osStatus osThreadList (uint8_t *buffer); - -/** -* @brief Receive an item from a queue without removing the item from the queue. -* @param queue_id message queue ID obtained with \ref osMessageCreate. -* @param millisec timeout value or 0 in case of no time-out. -* @retval event information that includes status code. -*/ -osEvent osMessagePeek (osMessageQId queue_id, uint32_t millisec); - -/** -* @brief Get the number of messaged stored in a queue. -* @param queue_id message queue ID obtained with \ref osMessageCreate. -* @retval number of messages stored in a queue. -*/ -uint32_t osMessageWaiting(osMessageQId queue_id); - -/** -* @brief Get the available space in a message queue. -* @param queue_id message queue ID obtained with \ref osMessageCreate. -* @retval available space in a message queue. -*/ -uint32_t osMessageAvailableSpace(osMessageQId queue_id); - -/** -* @brief Delete a Message Queue -* @param queue_id message queue ID obtained with \ref osMessageCreate. -* @retval status code that indicates the execution status of the function. -*/ -osStatus osMessageDelete (osMessageQId queue_id); - -/** -* @brief Create and Initialize a Recursive Mutex -* @param mutex_def mutex definition referenced with \ref osMutex. -* @retval mutex ID for reference by other functions or NULL in case of error.. -*/ -osMutexId osRecursiveMutexCreate (const osMutexDef_t *mutex_def); - -/** -* @brief Release a Recursive Mutex -* @param mutex_id mutex ID obtained by \ref osRecursiveMutexCreate. -* @retval status code that indicates the execution status of the function. -*/ -osStatus osRecursiveMutexRelease (osMutexId mutex_id); - -/** -* @brief Release a Recursive Mutex -* @param mutex_id mutex ID obtained by \ref osRecursiveMutexCreate. -* @param millisec timeout value or 0 in case of no time-out. -* @retval status code that indicates the execution status of the function. -*/ -osStatus osRecursiveMutexWait (osMutexId mutex_id, uint32_t millisec); - -/** -* @brief Returns the current count value of a counting semaphore -* @param semaphore_id semaphore_id ID obtained by \ref osSemaphoreCreate. -* @retval count value -*/ -uint32_t osSemaphoreGetCount(osSemaphoreId semaphore_id); - -#ifdef __cplusplus -} -#endif - -#endif // _CMSIS_OS_H diff --git a/Middlewares/Third_Party/FreeRTOS/Source/LICENSE b/Middlewares/Third_Party/FreeRTOS/Source/LICENSE deleted file mode 100644 index 2ce4711..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/LICENSE +++ /dev/null @@ -1,18 +0,0 @@ -Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff --git a/Middlewares/Third_Party/FreeRTOS/Source/croutine.c b/Middlewares/Third_Party/FreeRTOS/Source/croutine.c deleted file mode 100644 index 9ce5003..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/croutine.c +++ /dev/null @@ -1,353 +0,0 @@ -/* - * FreeRTOS Kernel V10.3.1 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - -#include "FreeRTOS.h" -#include "task.h" -#include "croutine.h" - -/* Remove the whole file is co-routines are not being used. */ -#if( configUSE_CO_ROUTINES != 0 ) - -/* - * Some kernel aware debuggers require data to be viewed to be global, rather - * than file scope. - */ -#ifdef portREMOVE_STATIC_QUALIFIER - #define static -#endif - - -/* Lists for ready and blocked co-routines. --------------------*/ -static List_t pxReadyCoRoutineLists[ configMAX_CO_ROUTINE_PRIORITIES ]; /*< Prioritised ready co-routines. */ -static List_t xDelayedCoRoutineList1; /*< Delayed co-routines. */ -static List_t xDelayedCoRoutineList2; /*< Delayed co-routines (two lists are used - one for delays that have overflowed the current tick count. */ -static List_t * pxDelayedCoRoutineList; /*< Points to the delayed co-routine list currently being used. */ -static List_t * pxOverflowDelayedCoRoutineList; /*< Points to the delayed co-routine list currently being used to hold co-routines that have overflowed the current tick count. */ -static List_t xPendingReadyCoRoutineList; /*< Holds co-routines that have been readied by an external event. They cannot be added directly to the ready lists as the ready lists cannot be accessed by interrupts. */ - -/* Other file private variables. --------------------------------*/ -CRCB_t * pxCurrentCoRoutine = NULL; -static UBaseType_t uxTopCoRoutineReadyPriority = 0; -static TickType_t xCoRoutineTickCount = 0, xLastTickCount = 0, xPassedTicks = 0; - -/* The initial state of the co-routine when it is created. */ -#define corINITIAL_STATE ( 0 ) - -/* - * Place the co-routine represented by pxCRCB into the appropriate ready queue - * for the priority. It is inserted at the end of the list. - * - * This macro accesses the co-routine ready lists and therefore must not be - * used from within an ISR. - */ -#define prvAddCoRoutineToReadyQueue( pxCRCB ) \ -{ \ - if( pxCRCB->uxPriority > uxTopCoRoutineReadyPriority ) \ - { \ - uxTopCoRoutineReadyPriority = pxCRCB->uxPriority; \ - } \ - vListInsertEnd( ( List_t * ) &( pxReadyCoRoutineLists[ pxCRCB->uxPriority ] ), &( pxCRCB->xGenericListItem ) ); \ -} - -/* - * Utility to ready all the lists used by the scheduler. This is called - * automatically upon the creation of the first co-routine. - */ -static void prvInitialiseCoRoutineLists( void ); - -/* - * Co-routines that are readied by an interrupt cannot be placed directly into - * the ready lists (there is no mutual exclusion). Instead they are placed in - * in the pending ready list in order that they can later be moved to the ready - * list by the co-routine scheduler. - */ -static void prvCheckPendingReadyList( void ); - -/* - * Macro that looks at the list of co-routines that are currently delayed to - * see if any require waking. - * - * Co-routines are stored in the queue in the order of their wake time - - * meaning once one co-routine has been found whose timer has not expired - * we need not look any further down the list. - */ -static void prvCheckDelayedList( void ); - -/*-----------------------------------------------------------*/ - -BaseType_t xCoRoutineCreate( crCOROUTINE_CODE pxCoRoutineCode, UBaseType_t uxPriority, UBaseType_t uxIndex ) -{ -BaseType_t xReturn; -CRCB_t *pxCoRoutine; - - /* Allocate the memory that will store the co-routine control block. */ - pxCoRoutine = ( CRCB_t * ) pvPortMalloc( sizeof( CRCB_t ) ); - if( pxCoRoutine ) - { - /* If pxCurrentCoRoutine is NULL then this is the first co-routine to - be created and the co-routine data structures need initialising. */ - if( pxCurrentCoRoutine == NULL ) - { - pxCurrentCoRoutine = pxCoRoutine; - prvInitialiseCoRoutineLists(); - } - - /* Check the priority is within limits. */ - if( uxPriority >= configMAX_CO_ROUTINE_PRIORITIES ) - { - uxPriority = configMAX_CO_ROUTINE_PRIORITIES - 1; - } - - /* Fill out the co-routine control block from the function parameters. */ - pxCoRoutine->uxState = corINITIAL_STATE; - pxCoRoutine->uxPriority = uxPriority; - pxCoRoutine->uxIndex = uxIndex; - pxCoRoutine->pxCoRoutineFunction = pxCoRoutineCode; - - /* Initialise all the other co-routine control block parameters. */ - vListInitialiseItem( &( pxCoRoutine->xGenericListItem ) ); - vListInitialiseItem( &( pxCoRoutine->xEventListItem ) ); - - /* Set the co-routine control block as a link back from the ListItem_t. - This is so we can get back to the containing CRCB from a generic item - in a list. */ - listSET_LIST_ITEM_OWNER( &( pxCoRoutine->xGenericListItem ), pxCoRoutine ); - listSET_LIST_ITEM_OWNER( &( pxCoRoutine->xEventListItem ), pxCoRoutine ); - - /* Event lists are always in priority order. */ - listSET_LIST_ITEM_VALUE( &( pxCoRoutine->xEventListItem ), ( ( TickType_t ) configMAX_CO_ROUTINE_PRIORITIES - ( TickType_t ) uxPriority ) ); - - /* Now the co-routine has been initialised it can be added to the ready - list at the correct priority. */ - prvAddCoRoutineToReadyQueue( pxCoRoutine ); - - xReturn = pdPASS; - } - else - { - xReturn = errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY; - } - - return xReturn; -} -/*-----------------------------------------------------------*/ - -void vCoRoutineAddToDelayedList( TickType_t xTicksToDelay, List_t *pxEventList ) -{ -TickType_t xTimeToWake; - - /* Calculate the time to wake - this may overflow but this is - not a problem. */ - xTimeToWake = xCoRoutineTickCount + xTicksToDelay; - - /* We must remove ourselves from the ready list before adding - ourselves to the blocked list as the same list item is used for - both lists. */ - ( void ) uxListRemove( ( ListItem_t * ) &( pxCurrentCoRoutine->xGenericListItem ) ); - - /* The list item will be inserted in wake time order. */ - listSET_LIST_ITEM_VALUE( &( pxCurrentCoRoutine->xGenericListItem ), xTimeToWake ); - - if( xTimeToWake < xCoRoutineTickCount ) - { - /* Wake time has overflowed. Place this item in the - overflow list. */ - vListInsert( ( List_t * ) pxOverflowDelayedCoRoutineList, ( ListItem_t * ) &( pxCurrentCoRoutine->xGenericListItem ) ); - } - else - { - /* The wake time has not overflowed, so we can use the - current block list. */ - vListInsert( ( List_t * ) pxDelayedCoRoutineList, ( ListItem_t * ) &( pxCurrentCoRoutine->xGenericListItem ) ); - } - - if( pxEventList ) - { - /* Also add the co-routine to an event list. If this is done then the - function must be called with interrupts disabled. */ - vListInsert( pxEventList, &( pxCurrentCoRoutine->xEventListItem ) ); - } -} -/*-----------------------------------------------------------*/ - -static void prvCheckPendingReadyList( void ) -{ - /* Are there any co-routines waiting to get moved to the ready list? These - are co-routines that have been readied by an ISR. The ISR cannot access - the ready lists itself. */ - while( listLIST_IS_EMPTY( &xPendingReadyCoRoutineList ) == pdFALSE ) - { - CRCB_t *pxUnblockedCRCB; - - /* The pending ready list can be accessed by an ISR. */ - portDISABLE_INTERRUPTS(); - { - pxUnblockedCRCB = ( CRCB_t * ) listGET_OWNER_OF_HEAD_ENTRY( (&xPendingReadyCoRoutineList) ); - ( void ) uxListRemove( &( pxUnblockedCRCB->xEventListItem ) ); - } - portENABLE_INTERRUPTS(); - - ( void ) uxListRemove( &( pxUnblockedCRCB->xGenericListItem ) ); - prvAddCoRoutineToReadyQueue( pxUnblockedCRCB ); - } -} -/*-----------------------------------------------------------*/ - -static void prvCheckDelayedList( void ) -{ -CRCB_t *pxCRCB; - - xPassedTicks = xTaskGetTickCount() - xLastTickCount; - while( xPassedTicks ) - { - xCoRoutineTickCount++; - xPassedTicks--; - - /* If the tick count has overflowed we need to swap the ready lists. */ - if( xCoRoutineTickCount == 0 ) - { - List_t * pxTemp; - - /* Tick count has overflowed so we need to swap the delay lists. If there are - any items in pxDelayedCoRoutineList here then there is an error! */ - pxTemp = pxDelayedCoRoutineList; - pxDelayedCoRoutineList = pxOverflowDelayedCoRoutineList; - pxOverflowDelayedCoRoutineList = pxTemp; - } - - /* See if this tick has made a timeout expire. */ - while( listLIST_IS_EMPTY( pxDelayedCoRoutineList ) == pdFALSE ) - { - pxCRCB = ( CRCB_t * ) listGET_OWNER_OF_HEAD_ENTRY( pxDelayedCoRoutineList ); - - if( xCoRoutineTickCount < listGET_LIST_ITEM_VALUE( &( pxCRCB->xGenericListItem ) ) ) - { - /* Timeout not yet expired. */ - break; - } - - portDISABLE_INTERRUPTS(); - { - /* The event could have occurred just before this critical - section. If this is the case then the generic list item will - have been moved to the pending ready list and the following - line is still valid. Also the pvContainer parameter will have - been set to NULL so the following lines are also valid. */ - ( void ) uxListRemove( &( pxCRCB->xGenericListItem ) ); - - /* Is the co-routine waiting on an event also? */ - if( pxCRCB->xEventListItem.pxContainer ) - { - ( void ) uxListRemove( &( pxCRCB->xEventListItem ) ); - } - } - portENABLE_INTERRUPTS(); - - prvAddCoRoutineToReadyQueue( pxCRCB ); - } - } - - xLastTickCount = xCoRoutineTickCount; -} -/*-----------------------------------------------------------*/ - -void vCoRoutineSchedule( void ) -{ - /* See if any co-routines readied by events need moving to the ready lists. */ - prvCheckPendingReadyList(); - - /* See if any delayed co-routines have timed out. */ - prvCheckDelayedList(); - - /* Find the highest priority queue that contains ready co-routines. */ - while( listLIST_IS_EMPTY( &( pxReadyCoRoutineLists[ uxTopCoRoutineReadyPriority ] ) ) ) - { - if( uxTopCoRoutineReadyPriority == 0 ) - { - /* No more co-routines to check. */ - return; - } - --uxTopCoRoutineReadyPriority; - } - - /* listGET_OWNER_OF_NEXT_ENTRY walks through the list, so the co-routines - of the same priority get an equal share of the processor time. */ - listGET_OWNER_OF_NEXT_ENTRY( pxCurrentCoRoutine, &( pxReadyCoRoutineLists[ uxTopCoRoutineReadyPriority ] ) ); - - /* Call the co-routine. */ - ( pxCurrentCoRoutine->pxCoRoutineFunction )( pxCurrentCoRoutine, pxCurrentCoRoutine->uxIndex ); - - return; -} -/*-----------------------------------------------------------*/ - -static void prvInitialiseCoRoutineLists( void ) -{ -UBaseType_t uxPriority; - - for( uxPriority = 0; uxPriority < configMAX_CO_ROUTINE_PRIORITIES; uxPriority++ ) - { - vListInitialise( ( List_t * ) &( pxReadyCoRoutineLists[ uxPriority ] ) ); - } - - vListInitialise( ( List_t * ) &xDelayedCoRoutineList1 ); - vListInitialise( ( List_t * ) &xDelayedCoRoutineList2 ); - vListInitialise( ( List_t * ) &xPendingReadyCoRoutineList ); - - /* Start with pxDelayedCoRoutineList using list1 and the - pxOverflowDelayedCoRoutineList using list2. */ - pxDelayedCoRoutineList = &xDelayedCoRoutineList1; - pxOverflowDelayedCoRoutineList = &xDelayedCoRoutineList2; -} -/*-----------------------------------------------------------*/ - -BaseType_t xCoRoutineRemoveFromEventList( const List_t *pxEventList ) -{ -CRCB_t *pxUnblockedCRCB; -BaseType_t xReturn; - - /* This function is called from within an interrupt. It can only access - event lists and the pending ready list. This function assumes that a - check has already been made to ensure pxEventList is not empty. */ - pxUnblockedCRCB = ( CRCB_t * ) listGET_OWNER_OF_HEAD_ENTRY( pxEventList ); - ( void ) uxListRemove( &( pxUnblockedCRCB->xEventListItem ) ); - vListInsertEnd( ( List_t * ) &( xPendingReadyCoRoutineList ), &( pxUnblockedCRCB->xEventListItem ) ); - - if( pxUnblockedCRCB->uxPriority >= pxCurrentCoRoutine->uxPriority ) - { - xReturn = pdTRUE; - } - else - { - xReturn = pdFALSE; - } - - return xReturn; -} - -#endif /* configUSE_CO_ROUTINES == 0 */ - diff --git a/Middlewares/Third_Party/FreeRTOS/Source/event_groups.c b/Middlewares/Third_Party/FreeRTOS/Source/event_groups.c deleted file mode 100644 index bf4ec24..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/event_groups.c +++ /dev/null @@ -1,753 +0,0 @@ -/* - * FreeRTOS Kernel V10.3.1 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - -/* Standard includes. */ -#include - -/* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining -all the API functions to use the MPU wrappers. That should only be done when -task.h is included from an application file. */ -#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE - -/* FreeRTOS includes. */ -#include "FreeRTOS.h" -#include "task.h" -#include "timers.h" -#include "event_groups.h" - -/* Lint e961, e750 and e9021 are suppressed as a MISRA exception justified -because the MPU ports require MPU_WRAPPERS_INCLUDED_FROM_API_FILE to be defined -for the header files above, but not in this file, in order to generate the -correct privileged Vs unprivileged linkage and placement. */ -#undef MPU_WRAPPERS_INCLUDED_FROM_API_FILE /*lint !e961 !e750 !e9021 See comment above. */ - -/* The following bit fields convey control information in a task's event list -item value. It is important they don't clash with the -taskEVENT_LIST_ITEM_VALUE_IN_USE definition. */ -#if configUSE_16_BIT_TICKS == 1 - #define eventCLEAR_EVENTS_ON_EXIT_BIT 0x0100U - #define eventUNBLOCKED_DUE_TO_BIT_SET 0x0200U - #define eventWAIT_FOR_ALL_BITS 0x0400U - #define eventEVENT_BITS_CONTROL_BYTES 0xff00U -#else - #define eventCLEAR_EVENTS_ON_EXIT_BIT 0x01000000UL - #define eventUNBLOCKED_DUE_TO_BIT_SET 0x02000000UL - #define eventWAIT_FOR_ALL_BITS 0x04000000UL - #define eventEVENT_BITS_CONTROL_BYTES 0xff000000UL -#endif - -typedef struct EventGroupDef_t -{ - EventBits_t uxEventBits; - List_t xTasksWaitingForBits; /*< List of tasks waiting for a bit to be set. */ - - #if( configUSE_TRACE_FACILITY == 1 ) - UBaseType_t uxEventGroupNumber; - #endif - - #if( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) - uint8_t ucStaticallyAllocated; /*< Set to pdTRUE if the event group is statically allocated to ensure no attempt is made to free the memory. */ - #endif -} EventGroup_t; - -/*-----------------------------------------------------------*/ - -/* - * Test the bits set in uxCurrentEventBits to see if the wait condition is met. - * The wait condition is defined by xWaitForAllBits. If xWaitForAllBits is - * pdTRUE then the wait condition is met if all the bits set in uxBitsToWaitFor - * are also set in uxCurrentEventBits. If xWaitForAllBits is pdFALSE then the - * wait condition is met if any of the bits set in uxBitsToWait for are also set - * in uxCurrentEventBits. - */ -static BaseType_t prvTestWaitCondition( const EventBits_t uxCurrentEventBits, const EventBits_t uxBitsToWaitFor, const BaseType_t xWaitForAllBits ) PRIVILEGED_FUNCTION; - -/*-----------------------------------------------------------*/ - -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) - - EventGroupHandle_t xEventGroupCreateStatic( StaticEventGroup_t *pxEventGroupBuffer ) - { - EventGroup_t *pxEventBits; - - /* A StaticEventGroup_t object must be provided. */ - configASSERT( pxEventGroupBuffer ); - - #if( configASSERT_DEFINED == 1 ) - { - /* Sanity check that the size of the structure used to declare a - variable of type StaticEventGroup_t equals the size of the real - event group structure. */ - volatile size_t xSize = sizeof( StaticEventGroup_t ); - configASSERT( xSize == sizeof( EventGroup_t ) ); - } /*lint !e529 xSize is referenced if configASSERT() is defined. */ - #endif /* configASSERT_DEFINED */ - - /* The user has provided a statically allocated event group - use it. */ - pxEventBits = ( EventGroup_t * ) pxEventGroupBuffer; /*lint !e740 !e9087 EventGroup_t and StaticEventGroup_t are deliberately aliased for data hiding purposes and guaranteed to have the same size and alignment requirement - checked by configASSERT(). */ - - if( pxEventBits != NULL ) - { - pxEventBits->uxEventBits = 0; - vListInitialise( &( pxEventBits->xTasksWaitingForBits ) ); - - #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) - { - /* Both static and dynamic allocation can be used, so note that - this event group was created statically in case the event group - is later deleted. */ - pxEventBits->ucStaticallyAllocated = pdTRUE; - } - #endif /* configSUPPORT_DYNAMIC_ALLOCATION */ - - traceEVENT_GROUP_CREATE( pxEventBits ); - } - else - { - /* xEventGroupCreateStatic should only ever be called with - pxEventGroupBuffer pointing to a pre-allocated (compile time - allocated) StaticEventGroup_t variable. */ - traceEVENT_GROUP_CREATE_FAILED(); - } - - return pxEventBits; - } - -#endif /* configSUPPORT_STATIC_ALLOCATION */ -/*-----------------------------------------------------------*/ - -#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) - - EventGroupHandle_t xEventGroupCreate( void ) - { - EventGroup_t *pxEventBits; - - /* Allocate the event group. Justification for MISRA deviation as - follows: pvPortMalloc() always ensures returned memory blocks are - aligned per the requirements of the MCU stack. In this case - pvPortMalloc() must return a pointer that is guaranteed to meet the - alignment requirements of the EventGroup_t structure - which (if you - follow it through) is the alignment requirements of the TickType_t type - (EventBits_t being of TickType_t itself). Therefore, whenever the - stack alignment requirements are greater than or equal to the - TickType_t alignment requirements the cast is safe. In other cases, - where the natural word size of the architecture is less than - sizeof( TickType_t ), the TickType_t variables will be accessed in two - or more reads operations, and the alignment requirements is only that - of each individual read. */ - pxEventBits = ( EventGroup_t * ) pvPortMalloc( sizeof( EventGroup_t ) ); /*lint !e9087 !e9079 see comment above. */ - - if( pxEventBits != NULL ) - { - pxEventBits->uxEventBits = 0; - vListInitialise( &( pxEventBits->xTasksWaitingForBits ) ); - - #if( configSUPPORT_STATIC_ALLOCATION == 1 ) - { - /* Both static and dynamic allocation can be used, so note this - event group was allocated statically in case the event group is - later deleted. */ - pxEventBits->ucStaticallyAllocated = pdFALSE; - } - #endif /* configSUPPORT_STATIC_ALLOCATION */ - - traceEVENT_GROUP_CREATE( pxEventBits ); - } - else - { - traceEVENT_GROUP_CREATE_FAILED(); /*lint !e9063 Else branch only exists to allow tracing and does not generate code if trace macros are not defined. */ - } - - return pxEventBits; - } - -#endif /* configSUPPORT_DYNAMIC_ALLOCATION */ -/*-----------------------------------------------------------*/ - -EventBits_t xEventGroupSync( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet, const EventBits_t uxBitsToWaitFor, TickType_t xTicksToWait ) -{ -EventBits_t uxOriginalBitValue, uxReturn; -EventGroup_t *pxEventBits = xEventGroup; -BaseType_t xAlreadyYielded; -BaseType_t xTimeoutOccurred = pdFALSE; - - configASSERT( ( uxBitsToWaitFor & eventEVENT_BITS_CONTROL_BYTES ) == 0 ); - configASSERT( uxBitsToWaitFor != 0 ); - #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) - { - configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) ); - } - #endif - - vTaskSuspendAll(); - { - uxOriginalBitValue = pxEventBits->uxEventBits; - - ( void ) xEventGroupSetBits( xEventGroup, uxBitsToSet ); - - if( ( ( uxOriginalBitValue | uxBitsToSet ) & uxBitsToWaitFor ) == uxBitsToWaitFor ) - { - /* All the rendezvous bits are now set - no need to block. */ - uxReturn = ( uxOriginalBitValue | uxBitsToSet ); - - /* Rendezvous always clear the bits. They will have been cleared - already unless this is the only task in the rendezvous. */ - pxEventBits->uxEventBits &= ~uxBitsToWaitFor; - - xTicksToWait = 0; - } - else - { - if( xTicksToWait != ( TickType_t ) 0 ) - { - traceEVENT_GROUP_SYNC_BLOCK( xEventGroup, uxBitsToSet, uxBitsToWaitFor ); - - /* Store the bits that the calling task is waiting for in the - task's event list item so the kernel knows when a match is - found. Then enter the blocked state. */ - vTaskPlaceOnUnorderedEventList( &( pxEventBits->xTasksWaitingForBits ), ( uxBitsToWaitFor | eventCLEAR_EVENTS_ON_EXIT_BIT | eventWAIT_FOR_ALL_BITS ), xTicksToWait ); - - /* This assignment is obsolete as uxReturn will get set after - the task unblocks, but some compilers mistakenly generate a - warning about uxReturn being returned without being set if the - assignment is omitted. */ - uxReturn = 0; - } - else - { - /* The rendezvous bits were not set, but no block time was - specified - just return the current event bit value. */ - uxReturn = pxEventBits->uxEventBits; - xTimeoutOccurred = pdTRUE; - } - } - } - xAlreadyYielded = xTaskResumeAll(); - - if( xTicksToWait != ( TickType_t ) 0 ) - { - if( xAlreadyYielded == pdFALSE ) - { - portYIELD_WITHIN_API(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - /* The task blocked to wait for its required bits to be set - at this - point either the required bits were set or the block time expired. If - the required bits were set they will have been stored in the task's - event list item, and they should now be retrieved then cleared. */ - uxReturn = uxTaskResetEventItemValue(); - - if( ( uxReturn & eventUNBLOCKED_DUE_TO_BIT_SET ) == ( EventBits_t ) 0 ) - { - /* The task timed out, just return the current event bit value. */ - taskENTER_CRITICAL(); - { - uxReturn = pxEventBits->uxEventBits; - - /* Although the task got here because it timed out before the - bits it was waiting for were set, it is possible that since it - unblocked another task has set the bits. If this is the case - then it needs to clear the bits before exiting. */ - if( ( uxReturn & uxBitsToWaitFor ) == uxBitsToWaitFor ) - { - pxEventBits->uxEventBits &= ~uxBitsToWaitFor; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - taskEXIT_CRITICAL(); - - xTimeoutOccurred = pdTRUE; - } - else - { - /* The task unblocked because the bits were set. */ - } - - /* Control bits might be set as the task had blocked should not be - returned. */ - uxReturn &= ~eventEVENT_BITS_CONTROL_BYTES; - } - - traceEVENT_GROUP_SYNC_END( xEventGroup, uxBitsToSet, uxBitsToWaitFor, xTimeoutOccurred ); - - /* Prevent compiler warnings when trace macros are not used. */ - ( void ) xTimeoutOccurred; - - return uxReturn; -} -/*-----------------------------------------------------------*/ - -EventBits_t xEventGroupWaitBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToWaitFor, const BaseType_t xClearOnExit, const BaseType_t xWaitForAllBits, TickType_t xTicksToWait ) -{ -EventGroup_t *pxEventBits = xEventGroup; -EventBits_t uxReturn, uxControlBits = 0; -BaseType_t xWaitConditionMet, xAlreadyYielded; -BaseType_t xTimeoutOccurred = pdFALSE; - - /* Check the user is not attempting to wait on the bits used by the kernel - itself, and that at least one bit is being requested. */ - configASSERT( xEventGroup ); - configASSERT( ( uxBitsToWaitFor & eventEVENT_BITS_CONTROL_BYTES ) == 0 ); - configASSERT( uxBitsToWaitFor != 0 ); - #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) - { - configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) ); - } - #endif - - vTaskSuspendAll(); - { - const EventBits_t uxCurrentEventBits = pxEventBits->uxEventBits; - - /* Check to see if the wait condition is already met or not. */ - xWaitConditionMet = prvTestWaitCondition( uxCurrentEventBits, uxBitsToWaitFor, xWaitForAllBits ); - - if( xWaitConditionMet != pdFALSE ) - { - /* The wait condition has already been met so there is no need to - block. */ - uxReturn = uxCurrentEventBits; - xTicksToWait = ( TickType_t ) 0; - - /* Clear the wait bits if requested to do so. */ - if( xClearOnExit != pdFALSE ) - { - pxEventBits->uxEventBits &= ~uxBitsToWaitFor; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else if( xTicksToWait == ( TickType_t ) 0 ) - { - /* The wait condition has not been met, but no block time was - specified, so just return the current value. */ - uxReturn = uxCurrentEventBits; - xTimeoutOccurred = pdTRUE; - } - else - { - /* The task is going to block to wait for its required bits to be - set. uxControlBits are used to remember the specified behaviour of - this call to xEventGroupWaitBits() - for use when the event bits - unblock the task. */ - if( xClearOnExit != pdFALSE ) - { - uxControlBits |= eventCLEAR_EVENTS_ON_EXIT_BIT; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - if( xWaitForAllBits != pdFALSE ) - { - uxControlBits |= eventWAIT_FOR_ALL_BITS; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - /* Store the bits that the calling task is waiting for in the - task's event list item so the kernel knows when a match is - found. Then enter the blocked state. */ - vTaskPlaceOnUnorderedEventList( &( pxEventBits->xTasksWaitingForBits ), ( uxBitsToWaitFor | uxControlBits ), xTicksToWait ); - - /* This is obsolete as it will get set after the task unblocks, but - some compilers mistakenly generate a warning about the variable - being returned without being set if it is not done. */ - uxReturn = 0; - - traceEVENT_GROUP_WAIT_BITS_BLOCK( xEventGroup, uxBitsToWaitFor ); - } - } - xAlreadyYielded = xTaskResumeAll(); - - if( xTicksToWait != ( TickType_t ) 0 ) - { - if( xAlreadyYielded == pdFALSE ) - { - portYIELD_WITHIN_API(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - /* The task blocked to wait for its required bits to be set - at this - point either the required bits were set or the block time expired. If - the required bits were set they will have been stored in the task's - event list item, and they should now be retrieved then cleared. */ - uxReturn = uxTaskResetEventItemValue(); - - if( ( uxReturn & eventUNBLOCKED_DUE_TO_BIT_SET ) == ( EventBits_t ) 0 ) - { - taskENTER_CRITICAL(); - { - /* The task timed out, just return the current event bit value. */ - uxReturn = pxEventBits->uxEventBits; - - /* It is possible that the event bits were updated between this - task leaving the Blocked state and running again. */ - if( prvTestWaitCondition( uxReturn, uxBitsToWaitFor, xWaitForAllBits ) != pdFALSE ) - { - if( xClearOnExit != pdFALSE ) - { - pxEventBits->uxEventBits &= ~uxBitsToWaitFor; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - xTimeoutOccurred = pdTRUE; - } - taskEXIT_CRITICAL(); - } - else - { - /* The task unblocked because the bits were set. */ - } - - /* The task blocked so control bits may have been set. */ - uxReturn &= ~eventEVENT_BITS_CONTROL_BYTES; - } - traceEVENT_GROUP_WAIT_BITS_END( xEventGroup, uxBitsToWaitFor, xTimeoutOccurred ); - - /* Prevent compiler warnings when trace macros are not used. */ - ( void ) xTimeoutOccurred; - - return uxReturn; -} -/*-----------------------------------------------------------*/ - -EventBits_t xEventGroupClearBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToClear ) -{ -EventGroup_t *pxEventBits = xEventGroup; -EventBits_t uxReturn; - - /* Check the user is not attempting to clear the bits used by the kernel - itself. */ - configASSERT( xEventGroup ); - configASSERT( ( uxBitsToClear & eventEVENT_BITS_CONTROL_BYTES ) == 0 ); - - taskENTER_CRITICAL(); - { - traceEVENT_GROUP_CLEAR_BITS( xEventGroup, uxBitsToClear ); - - /* The value returned is the event group value prior to the bits being - cleared. */ - uxReturn = pxEventBits->uxEventBits; - - /* Clear the bits. */ - pxEventBits->uxEventBits &= ~uxBitsToClear; - } - taskEXIT_CRITICAL(); - - return uxReturn; -} -/*-----------------------------------------------------------*/ - -#if ( ( configUSE_TRACE_FACILITY == 1 ) && ( INCLUDE_xTimerPendFunctionCall == 1 ) && ( configUSE_TIMERS == 1 ) ) - - BaseType_t xEventGroupClearBitsFromISR( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToClear ) - { - BaseType_t xReturn; - - traceEVENT_GROUP_CLEAR_BITS_FROM_ISR( xEventGroup, uxBitsToClear ); - xReturn = xTimerPendFunctionCallFromISR( vEventGroupClearBitsCallback, ( void * ) xEventGroup, ( uint32_t ) uxBitsToClear, NULL ); /*lint !e9087 Can't avoid cast to void* as a generic callback function not specific to this use case. Callback casts back to original type so safe. */ - - return xReturn; - } - -#endif -/*-----------------------------------------------------------*/ - -EventBits_t xEventGroupGetBitsFromISR( EventGroupHandle_t xEventGroup ) -{ -UBaseType_t uxSavedInterruptStatus; -EventGroup_t const * const pxEventBits = xEventGroup; -EventBits_t uxReturn; - - uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR(); - { - uxReturn = pxEventBits->uxEventBits; - } - portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); - - return uxReturn; -} /*lint !e818 EventGroupHandle_t is a typedef used in other functions to so can't be pointer to const. */ -/*-----------------------------------------------------------*/ - -EventBits_t xEventGroupSetBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet ) -{ -ListItem_t *pxListItem, *pxNext; -ListItem_t const *pxListEnd; -List_t const * pxList; -EventBits_t uxBitsToClear = 0, uxBitsWaitedFor, uxControlBits; -EventGroup_t *pxEventBits = xEventGroup; -BaseType_t xMatchFound = pdFALSE; - - /* Check the user is not attempting to set the bits used by the kernel - itself. */ - configASSERT( xEventGroup ); - configASSERT( ( uxBitsToSet & eventEVENT_BITS_CONTROL_BYTES ) == 0 ); - - pxList = &( pxEventBits->xTasksWaitingForBits ); - pxListEnd = listGET_END_MARKER( pxList ); /*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. */ - vTaskSuspendAll(); - { - traceEVENT_GROUP_SET_BITS( xEventGroup, uxBitsToSet ); - - pxListItem = listGET_HEAD_ENTRY( pxList ); - - /* Set the bits. */ - pxEventBits->uxEventBits |= uxBitsToSet; - - /* See if the new bit value should unblock any tasks. */ - while( pxListItem != pxListEnd ) - { - pxNext = listGET_NEXT( pxListItem ); - uxBitsWaitedFor = listGET_LIST_ITEM_VALUE( pxListItem ); - xMatchFound = pdFALSE; - - /* Split the bits waited for from the control bits. */ - uxControlBits = uxBitsWaitedFor & eventEVENT_BITS_CONTROL_BYTES; - uxBitsWaitedFor &= ~eventEVENT_BITS_CONTROL_BYTES; - - if( ( uxControlBits & eventWAIT_FOR_ALL_BITS ) == ( EventBits_t ) 0 ) - { - /* Just looking for single bit being set. */ - if( ( uxBitsWaitedFor & pxEventBits->uxEventBits ) != ( EventBits_t ) 0 ) - { - xMatchFound = pdTRUE; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else if( ( uxBitsWaitedFor & pxEventBits->uxEventBits ) == uxBitsWaitedFor ) - { - /* All bits are set. */ - xMatchFound = pdTRUE; - } - else - { - /* Need all bits to be set, but not all the bits were set. */ - } - - if( xMatchFound != pdFALSE ) - { - /* The bits match. Should the bits be cleared on exit? */ - if( ( uxControlBits & eventCLEAR_EVENTS_ON_EXIT_BIT ) != ( EventBits_t ) 0 ) - { - uxBitsToClear |= uxBitsWaitedFor; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - /* Store the actual event flag value in the task's event list - item before removing the task from the event list. The - eventUNBLOCKED_DUE_TO_BIT_SET bit is set so the task knows - that is was unblocked due to its required bits matching, rather - than because it timed out. */ - vTaskRemoveFromUnorderedEventList( pxListItem, pxEventBits->uxEventBits | eventUNBLOCKED_DUE_TO_BIT_SET ); - } - - /* Move onto the next list item. Note pxListItem->pxNext is not - used here as the list item may have been removed from the event list - and inserted into the ready/pending reading list. */ - pxListItem = pxNext; - } - - /* Clear any bits that matched when the eventCLEAR_EVENTS_ON_EXIT_BIT - bit was set in the control word. */ - pxEventBits->uxEventBits &= ~uxBitsToClear; - } - ( void ) xTaskResumeAll(); - - return pxEventBits->uxEventBits; -} -/*-----------------------------------------------------------*/ - -void vEventGroupDelete( EventGroupHandle_t xEventGroup ) -{ -EventGroup_t *pxEventBits = xEventGroup; -const List_t *pxTasksWaitingForBits = &( pxEventBits->xTasksWaitingForBits ); - - vTaskSuspendAll(); - { - traceEVENT_GROUP_DELETE( xEventGroup ); - - while( listCURRENT_LIST_LENGTH( pxTasksWaitingForBits ) > ( UBaseType_t ) 0 ) - { - /* Unblock the task, returning 0 as the event list is being deleted - and cannot therefore have any bits set. */ - configASSERT( pxTasksWaitingForBits->xListEnd.pxNext != ( const ListItem_t * ) &( pxTasksWaitingForBits->xListEnd ) ); - vTaskRemoveFromUnorderedEventList( pxTasksWaitingForBits->xListEnd.pxNext, eventUNBLOCKED_DUE_TO_BIT_SET ); - } - - #if( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 0 ) ) - { - /* The event group can only have been allocated dynamically - free - it again. */ - vPortFree( pxEventBits ); - } - #elif( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) ) - { - /* The event group could have been allocated statically or - dynamically, so check before attempting to free the memory. */ - if( pxEventBits->ucStaticallyAllocated == ( uint8_t ) pdFALSE ) - { - vPortFree( pxEventBits ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - #endif /* configSUPPORT_DYNAMIC_ALLOCATION */ - } - ( void ) xTaskResumeAll(); -} -/*-----------------------------------------------------------*/ - -/* For internal use only - execute a 'set bits' command that was pended from -an interrupt. */ -void vEventGroupSetBitsCallback( void *pvEventGroup, const uint32_t ulBitsToSet ) -{ - ( void ) xEventGroupSetBits( pvEventGroup, ( EventBits_t ) ulBitsToSet ); /*lint !e9079 Can't avoid cast to void* as a generic timer callback prototype. Callback casts back to original type so safe. */ -} -/*-----------------------------------------------------------*/ - -/* For internal use only - execute a 'clear bits' command that was pended from -an interrupt. */ -void vEventGroupClearBitsCallback( void *pvEventGroup, const uint32_t ulBitsToClear ) -{ - ( void ) xEventGroupClearBits( pvEventGroup, ( EventBits_t ) ulBitsToClear ); /*lint !e9079 Can't avoid cast to void* as a generic timer callback prototype. Callback casts back to original type so safe. */ -} -/*-----------------------------------------------------------*/ - -static BaseType_t prvTestWaitCondition( const EventBits_t uxCurrentEventBits, const EventBits_t uxBitsToWaitFor, const BaseType_t xWaitForAllBits ) -{ -BaseType_t xWaitConditionMet = pdFALSE; - - if( xWaitForAllBits == pdFALSE ) - { - /* Task only has to wait for one bit within uxBitsToWaitFor to be - set. Is one already set? */ - if( ( uxCurrentEventBits & uxBitsToWaitFor ) != ( EventBits_t ) 0 ) - { - xWaitConditionMet = pdTRUE; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - /* Task has to wait for all the bits in uxBitsToWaitFor to be set. - Are they set already? */ - if( ( uxCurrentEventBits & uxBitsToWaitFor ) == uxBitsToWaitFor ) - { - xWaitConditionMet = pdTRUE; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - - return xWaitConditionMet; -} -/*-----------------------------------------------------------*/ - -#if ( ( configUSE_TRACE_FACILITY == 1 ) && ( INCLUDE_xTimerPendFunctionCall == 1 ) && ( configUSE_TIMERS == 1 ) ) - - BaseType_t xEventGroupSetBitsFromISR( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet, BaseType_t *pxHigherPriorityTaskWoken ) - { - BaseType_t xReturn; - - traceEVENT_GROUP_SET_BITS_FROM_ISR( xEventGroup, uxBitsToSet ); - xReturn = xTimerPendFunctionCallFromISR( vEventGroupSetBitsCallback, ( void * ) xEventGroup, ( uint32_t ) uxBitsToSet, pxHigherPriorityTaskWoken ); /*lint !e9087 Can't avoid cast to void* as a generic callback function not specific to this use case. Callback casts back to original type so safe. */ - - return xReturn; - } - -#endif -/*-----------------------------------------------------------*/ - -#if (configUSE_TRACE_FACILITY == 1) - - UBaseType_t uxEventGroupGetNumber( void* xEventGroup ) - { - UBaseType_t xReturn; - EventGroup_t const *pxEventBits = ( EventGroup_t * ) xEventGroup; /*lint !e9087 !e9079 EventGroupHandle_t is a pointer to an EventGroup_t, but EventGroupHandle_t is kept opaque outside of this file for data hiding purposes. */ - - if( xEventGroup == NULL ) - { - xReturn = 0; - } - else - { - xReturn = pxEventBits->uxEventGroupNumber; - } - - return xReturn; - } - -#endif /* configUSE_TRACE_FACILITY */ -/*-----------------------------------------------------------*/ - -#if ( configUSE_TRACE_FACILITY == 1 ) - - void vEventGroupSetNumber( void * xEventGroup, UBaseType_t uxEventGroupNumber ) - { - ( ( EventGroup_t * ) xEventGroup )->uxEventGroupNumber = uxEventGroupNumber; /*lint !e9087 !e9079 EventGroupHandle_t is a pointer to an EventGroup_t, but EventGroupHandle_t is kept opaque outside of this file for data hiding purposes. */ - } - -#endif /* configUSE_TRACE_FACILITY */ -/*-----------------------------------------------------------*/ - - diff --git a/Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h b/Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h deleted file mode 100644 index ceb469a..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h +++ /dev/null @@ -1,1295 +0,0 @@ -/* - * FreeRTOS Kernel V10.3.1 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - -#ifndef INC_FREERTOS_H -#define INC_FREERTOS_H - -/* - * Include the generic headers required for the FreeRTOS port being used. - */ -#include - -/* - * If stdint.h cannot be located then: - * + If using GCC ensure the -nostdint options is *not* being used. - * + Ensure the project's include path includes the directory in which your - * compiler stores stdint.h. - * + Set any compiler options necessary for it to support C99, as technically - * stdint.h is only mandatory with C99 (FreeRTOS does not require C99 in any - * other way). - * + The FreeRTOS download includes a simple stdint.h definition that can be - * used in cases where none is provided by the compiler. The files only - * contains the typedefs required to build FreeRTOS. Read the instructions - * in FreeRTOS/source/stdint.readme for more information. - */ -#include /* READ COMMENT ABOVE. */ - -#ifdef __cplusplus -extern "C" { -#endif - -/* Application specific configuration options. */ -#include "FreeRTOSConfig.h" - -/* Basic FreeRTOS definitions. */ -#include "projdefs.h" - -/* Definitions specific to the port being used. */ -#include "portable.h" - -/* Must be defaulted before configUSE_NEWLIB_REENTRANT is used below. */ -#ifndef configUSE_NEWLIB_REENTRANT - #define configUSE_NEWLIB_REENTRANT 0 -#endif - -/* Required if struct _reent is used. */ -#if ( configUSE_NEWLIB_REENTRANT == 1 ) - #include -#endif -/* - * Check all the required application specific macros have been defined. - * These macros are application specific and (as downloaded) are defined - * within FreeRTOSConfig.h. - */ - -#ifndef configMINIMAL_STACK_SIZE - #error Missing definition: configMINIMAL_STACK_SIZE must be defined in FreeRTOSConfig.h. configMINIMAL_STACK_SIZE defines the size (in words) of the stack allocated to the idle task. Refer to the demo project provided for your port for a suitable value. -#endif - -#ifndef configMAX_PRIORITIES - #error Missing definition: configMAX_PRIORITIES must be defined in FreeRTOSConfig.h. See the Configuration section of the FreeRTOS API documentation for details. -#endif - -#if configMAX_PRIORITIES < 1 - #error configMAX_PRIORITIES must be defined to be greater than or equal to 1. -#endif - -#ifndef configUSE_PREEMPTION - #error Missing definition: configUSE_PREEMPTION must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details. -#endif - -#ifndef configUSE_IDLE_HOOK - #error Missing definition: configUSE_IDLE_HOOK must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details. -#endif - -#ifndef configUSE_TICK_HOOK - #error Missing definition: configUSE_TICK_HOOK must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details. -#endif - -#ifndef configUSE_16_BIT_TICKS - #error Missing definition: configUSE_16_BIT_TICKS must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details. -#endif - -#ifndef configUSE_CO_ROUTINES - #define configUSE_CO_ROUTINES 0 -#endif - -#ifndef INCLUDE_vTaskPrioritySet - #define INCLUDE_vTaskPrioritySet 0 -#endif - -#ifndef INCLUDE_uxTaskPriorityGet - #define INCLUDE_uxTaskPriorityGet 0 -#endif - -#ifndef INCLUDE_vTaskDelete - #define INCLUDE_vTaskDelete 0 -#endif - -#ifndef INCLUDE_vTaskSuspend - #define INCLUDE_vTaskSuspend 0 -#endif - -#ifndef INCLUDE_vTaskDelayUntil - #define INCLUDE_vTaskDelayUntil 0 -#endif - -#ifndef INCLUDE_vTaskDelay - #define INCLUDE_vTaskDelay 0 -#endif - -#ifndef INCLUDE_xTaskGetIdleTaskHandle - #define INCLUDE_xTaskGetIdleTaskHandle 0 -#endif - -#ifndef INCLUDE_xTaskAbortDelay - #define INCLUDE_xTaskAbortDelay 0 -#endif - -#ifndef INCLUDE_xQueueGetMutexHolder - #define INCLUDE_xQueueGetMutexHolder 0 -#endif - -#ifndef INCLUDE_xSemaphoreGetMutexHolder - #define INCLUDE_xSemaphoreGetMutexHolder INCLUDE_xQueueGetMutexHolder -#endif - -#ifndef INCLUDE_xTaskGetHandle - #define INCLUDE_xTaskGetHandle 0 -#endif - -#ifndef INCLUDE_uxTaskGetStackHighWaterMark - #define INCLUDE_uxTaskGetStackHighWaterMark 0 -#endif - -#ifndef INCLUDE_uxTaskGetStackHighWaterMark2 - #define INCLUDE_uxTaskGetStackHighWaterMark2 0 -#endif - -#ifndef INCLUDE_eTaskGetState - #define INCLUDE_eTaskGetState 0 -#endif - -#ifndef INCLUDE_xTaskResumeFromISR - #define INCLUDE_xTaskResumeFromISR 1 -#endif - -#ifndef INCLUDE_xTimerPendFunctionCall - #define INCLUDE_xTimerPendFunctionCall 0 -#endif - -#ifndef INCLUDE_xTaskGetSchedulerState - #define INCLUDE_xTaskGetSchedulerState 0 -#endif - -#ifndef INCLUDE_xTaskGetCurrentTaskHandle - #define INCLUDE_xTaskGetCurrentTaskHandle 0 -#endif - -#if configUSE_CO_ROUTINES != 0 - #ifndef configMAX_CO_ROUTINE_PRIORITIES - #error configMAX_CO_ROUTINE_PRIORITIES must be greater than or equal to 1. - #endif -#endif - -#ifndef configUSE_DAEMON_TASK_STARTUP_HOOK - #define configUSE_DAEMON_TASK_STARTUP_HOOK 0 -#endif - -#ifndef configUSE_APPLICATION_TASK_TAG - #define configUSE_APPLICATION_TASK_TAG 0 -#endif - -#ifndef configNUM_THREAD_LOCAL_STORAGE_POINTERS - #define configNUM_THREAD_LOCAL_STORAGE_POINTERS 0 -#endif - -#ifndef configUSE_RECURSIVE_MUTEXES - #define configUSE_RECURSIVE_MUTEXES 0 -#endif - -#ifndef configUSE_MUTEXES - #define configUSE_MUTEXES 0 -#endif - -#ifndef configUSE_TIMERS - #define configUSE_TIMERS 0 -#endif - -#ifndef configUSE_COUNTING_SEMAPHORES - #define configUSE_COUNTING_SEMAPHORES 0 -#endif - -#ifndef configUSE_ALTERNATIVE_API - #define configUSE_ALTERNATIVE_API 0 -#endif - -#ifndef portCRITICAL_NESTING_IN_TCB - #define portCRITICAL_NESTING_IN_TCB 0 -#endif - -#ifndef configMAX_TASK_NAME_LEN - #define configMAX_TASK_NAME_LEN 16 -#endif - -#ifndef configIDLE_SHOULD_YIELD - #define configIDLE_SHOULD_YIELD 1 -#endif - -#if configMAX_TASK_NAME_LEN < 1 - #error configMAX_TASK_NAME_LEN must be set to a minimum of 1 in FreeRTOSConfig.h -#endif - -#ifndef configASSERT - #define configASSERT( x ) - #define configASSERT_DEFINED 0 -#else - #define configASSERT_DEFINED 1 -#endif - -/* configPRECONDITION should be defined as configASSERT. -The CBMC proofs need a way to track assumptions and assertions. -A configPRECONDITION statement should express an implicit invariant or -assumption made. A configASSERT statement should express an invariant that must -hold explicit before calling the code. */ -#ifndef configPRECONDITION - #define configPRECONDITION( X ) configASSERT(X) - #define configPRECONDITION_DEFINED 0 -#else - #define configPRECONDITION_DEFINED 1 -#endif - -#ifndef portMEMORY_BARRIER - #define portMEMORY_BARRIER() -#endif - -#ifndef portSOFTWARE_BARRIER - #define portSOFTWARE_BARRIER() -#endif - -/* The timers module relies on xTaskGetSchedulerState(). */ -#if configUSE_TIMERS == 1 - - #ifndef configTIMER_TASK_PRIORITY - #error If configUSE_TIMERS is set to 1 then configTIMER_TASK_PRIORITY must also be defined. - #endif /* configTIMER_TASK_PRIORITY */ - - #ifndef configTIMER_QUEUE_LENGTH - #error If configUSE_TIMERS is set to 1 then configTIMER_QUEUE_LENGTH must also be defined. - #endif /* configTIMER_QUEUE_LENGTH */ - - #ifndef configTIMER_TASK_STACK_DEPTH - #error If configUSE_TIMERS is set to 1 then configTIMER_TASK_STACK_DEPTH must also be defined. - #endif /* configTIMER_TASK_STACK_DEPTH */ - -#endif /* configUSE_TIMERS */ - -#ifndef portSET_INTERRUPT_MASK_FROM_ISR - #define portSET_INTERRUPT_MASK_FROM_ISR() 0 -#endif - -#ifndef portCLEAR_INTERRUPT_MASK_FROM_ISR - #define portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedStatusValue ) ( void ) uxSavedStatusValue -#endif - -#ifndef portCLEAN_UP_TCB - #define portCLEAN_UP_TCB( pxTCB ) ( void ) pxTCB -#endif - -#ifndef portPRE_TASK_DELETE_HOOK - #define portPRE_TASK_DELETE_HOOK( pvTaskToDelete, pxYieldPending ) -#endif - -#ifndef portSETUP_TCB - #define portSETUP_TCB( pxTCB ) ( void ) pxTCB -#endif - -#ifndef configQUEUE_REGISTRY_SIZE - #define configQUEUE_REGISTRY_SIZE 0U -#endif - -#if ( configQUEUE_REGISTRY_SIZE < 1 ) - #define vQueueAddToRegistry( xQueue, pcName ) - #define vQueueUnregisterQueue( xQueue ) - #define pcQueueGetName( xQueue ) -#endif - -#ifndef portPOINTER_SIZE_TYPE - #define portPOINTER_SIZE_TYPE uint32_t -#endif - -/* Remove any unused trace macros. */ -#ifndef traceSTART - /* Used to perform any necessary initialisation - for example, open a file - into which trace is to be written. */ - #define traceSTART() -#endif - -#ifndef traceEND - /* Use to close a trace, for example close a file into which trace has been - written. */ - #define traceEND() -#endif - -#ifndef traceTASK_SWITCHED_IN - /* Called after a task has been selected to run. pxCurrentTCB holds a pointer - to the task control block of the selected task. */ - #define traceTASK_SWITCHED_IN() -#endif - -#ifndef traceINCREASE_TICK_COUNT - /* Called before stepping the tick count after waking from tickless idle - sleep. */ - #define traceINCREASE_TICK_COUNT( x ) -#endif - -#ifndef traceLOW_POWER_IDLE_BEGIN - /* Called immediately before entering tickless idle. */ - #define traceLOW_POWER_IDLE_BEGIN() -#endif - -#ifndef traceLOW_POWER_IDLE_END - /* Called when returning to the Idle task after a tickless idle. */ - #define traceLOW_POWER_IDLE_END() -#endif - -#ifndef traceTASK_SWITCHED_OUT - /* Called before a task has been selected to run. pxCurrentTCB holds a pointer - to the task control block of the task being switched out. */ - #define traceTASK_SWITCHED_OUT() -#endif - -#ifndef traceTASK_PRIORITY_INHERIT - /* Called when a task attempts to take a mutex that is already held by a - lower priority task. pxTCBOfMutexHolder is a pointer to the TCB of the task - that holds the mutex. uxInheritedPriority is the priority the mutex holder - will inherit (the priority of the task that is attempting to obtain the - muted. */ - #define traceTASK_PRIORITY_INHERIT( pxTCBOfMutexHolder, uxInheritedPriority ) -#endif - -#ifndef traceTASK_PRIORITY_DISINHERIT - /* Called when a task releases a mutex, the holding of which had resulted in - the task inheriting the priority of a higher priority task. - pxTCBOfMutexHolder is a pointer to the TCB of the task that is releasing the - mutex. uxOriginalPriority is the task's configured (base) priority. */ - #define traceTASK_PRIORITY_DISINHERIT( pxTCBOfMutexHolder, uxOriginalPriority ) -#endif - -#ifndef traceBLOCKING_ON_QUEUE_RECEIVE - /* Task is about to block because it cannot read from a - queue/mutex/semaphore. pxQueue is a pointer to the queue/mutex/semaphore - upon which the read was attempted. pxCurrentTCB points to the TCB of the - task that attempted the read. */ - #define traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue ) -#endif - -#ifndef traceBLOCKING_ON_QUEUE_PEEK - /* Task is about to block because it cannot read from a - queue/mutex/semaphore. pxQueue is a pointer to the queue/mutex/semaphore - upon which the read was attempted. pxCurrentTCB points to the TCB of the - task that attempted the read. */ - #define traceBLOCKING_ON_QUEUE_PEEK( pxQueue ) -#endif - -#ifndef traceBLOCKING_ON_QUEUE_SEND - /* Task is about to block because it cannot write to a - queue/mutex/semaphore. pxQueue is a pointer to the queue/mutex/semaphore - upon which the write was attempted. pxCurrentTCB points to the TCB of the - task that attempted the write. */ - #define traceBLOCKING_ON_QUEUE_SEND( pxQueue ) -#endif - -#ifndef configCHECK_FOR_STACK_OVERFLOW - #define configCHECK_FOR_STACK_OVERFLOW 0 -#endif - -#ifndef configRECORD_STACK_HIGH_ADDRESS - #define configRECORD_STACK_HIGH_ADDRESS 0 -#endif - -#ifndef configINCLUDE_FREERTOS_TASK_C_ADDITIONS_H - #define configINCLUDE_FREERTOS_TASK_C_ADDITIONS_H 0 -#endif - -/* The following event macros are embedded in the kernel API calls. */ - -#ifndef traceMOVED_TASK_TO_READY_STATE - #define traceMOVED_TASK_TO_READY_STATE( pxTCB ) -#endif - -#ifndef tracePOST_MOVED_TASK_TO_READY_STATE - #define tracePOST_MOVED_TASK_TO_READY_STATE( pxTCB ) -#endif - -#ifndef traceQUEUE_CREATE - #define traceQUEUE_CREATE( pxNewQueue ) -#endif - -#ifndef traceQUEUE_CREATE_FAILED - #define traceQUEUE_CREATE_FAILED( ucQueueType ) -#endif - -#ifndef traceCREATE_MUTEX - #define traceCREATE_MUTEX( pxNewQueue ) -#endif - -#ifndef traceCREATE_MUTEX_FAILED - #define traceCREATE_MUTEX_FAILED() -#endif - -#ifndef traceGIVE_MUTEX_RECURSIVE - #define traceGIVE_MUTEX_RECURSIVE( pxMutex ) -#endif - -#ifndef traceGIVE_MUTEX_RECURSIVE_FAILED - #define traceGIVE_MUTEX_RECURSIVE_FAILED( pxMutex ) -#endif - -#ifndef traceTAKE_MUTEX_RECURSIVE - #define traceTAKE_MUTEX_RECURSIVE( pxMutex ) -#endif - -#ifndef traceTAKE_MUTEX_RECURSIVE_FAILED - #define traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex ) -#endif - -#ifndef traceCREATE_COUNTING_SEMAPHORE - #define traceCREATE_COUNTING_SEMAPHORE() -#endif - -#ifndef traceCREATE_COUNTING_SEMAPHORE_FAILED - #define traceCREATE_COUNTING_SEMAPHORE_FAILED() -#endif - -#ifndef traceQUEUE_SEND - #define traceQUEUE_SEND( pxQueue ) -#endif - -#ifndef traceQUEUE_SEND_FAILED - #define traceQUEUE_SEND_FAILED( pxQueue ) -#endif - -#ifndef traceQUEUE_RECEIVE - #define traceQUEUE_RECEIVE( pxQueue ) -#endif - -#ifndef traceQUEUE_PEEK - #define traceQUEUE_PEEK( pxQueue ) -#endif - -#ifndef traceQUEUE_PEEK_FAILED - #define traceQUEUE_PEEK_FAILED( pxQueue ) -#endif - -#ifndef traceQUEUE_PEEK_FROM_ISR - #define traceQUEUE_PEEK_FROM_ISR( pxQueue ) -#endif - -#ifndef traceQUEUE_RECEIVE_FAILED - #define traceQUEUE_RECEIVE_FAILED( pxQueue ) -#endif - -#ifndef traceQUEUE_SEND_FROM_ISR - #define traceQUEUE_SEND_FROM_ISR( pxQueue ) -#endif - -#ifndef traceQUEUE_SEND_FROM_ISR_FAILED - #define traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue ) -#endif - -#ifndef traceQUEUE_RECEIVE_FROM_ISR - #define traceQUEUE_RECEIVE_FROM_ISR( pxQueue ) -#endif - -#ifndef traceQUEUE_RECEIVE_FROM_ISR_FAILED - #define traceQUEUE_RECEIVE_FROM_ISR_FAILED( pxQueue ) -#endif - -#ifndef traceQUEUE_PEEK_FROM_ISR_FAILED - #define traceQUEUE_PEEK_FROM_ISR_FAILED( pxQueue ) -#endif - -#ifndef traceQUEUE_DELETE - #define traceQUEUE_DELETE( pxQueue ) -#endif - -#ifndef traceTASK_CREATE - #define traceTASK_CREATE( pxNewTCB ) -#endif - -#ifndef traceTASK_CREATE_FAILED - #define traceTASK_CREATE_FAILED() -#endif - -#ifndef traceTASK_DELETE - #define traceTASK_DELETE( pxTaskToDelete ) -#endif - -#ifndef traceTASK_DELAY_UNTIL - #define traceTASK_DELAY_UNTIL( x ) -#endif - -#ifndef traceTASK_DELAY - #define traceTASK_DELAY() -#endif - -#ifndef traceTASK_PRIORITY_SET - #define traceTASK_PRIORITY_SET( pxTask, uxNewPriority ) -#endif - -#ifndef traceTASK_SUSPEND - #define traceTASK_SUSPEND( pxTaskToSuspend ) -#endif - -#ifndef traceTASK_RESUME - #define traceTASK_RESUME( pxTaskToResume ) -#endif - -#ifndef traceTASK_RESUME_FROM_ISR - #define traceTASK_RESUME_FROM_ISR( pxTaskToResume ) -#endif - -#ifndef traceTASK_INCREMENT_TICK - #define traceTASK_INCREMENT_TICK( xTickCount ) -#endif - -#ifndef traceTIMER_CREATE - #define traceTIMER_CREATE( pxNewTimer ) -#endif - -#ifndef traceTIMER_CREATE_FAILED - #define traceTIMER_CREATE_FAILED() -#endif - -#ifndef traceTIMER_COMMAND_SEND - #define traceTIMER_COMMAND_SEND( xTimer, xMessageID, xMessageValueValue, xReturn ) -#endif - -#ifndef traceTIMER_EXPIRED - #define traceTIMER_EXPIRED( pxTimer ) -#endif - -#ifndef traceTIMER_COMMAND_RECEIVED - #define traceTIMER_COMMAND_RECEIVED( pxTimer, xMessageID, xMessageValue ) -#endif - -#ifndef traceMALLOC - #define traceMALLOC( pvAddress, uiSize ) -#endif - -#ifndef traceFREE - #define traceFREE( pvAddress, uiSize ) -#endif - -#ifndef traceEVENT_GROUP_CREATE - #define traceEVENT_GROUP_CREATE( xEventGroup ) -#endif - -#ifndef traceEVENT_GROUP_CREATE_FAILED - #define traceEVENT_GROUP_CREATE_FAILED() -#endif - -#ifndef traceEVENT_GROUP_SYNC_BLOCK - #define traceEVENT_GROUP_SYNC_BLOCK( xEventGroup, uxBitsToSet, uxBitsToWaitFor ) -#endif - -#ifndef traceEVENT_GROUP_SYNC_END - #define traceEVENT_GROUP_SYNC_END( xEventGroup, uxBitsToSet, uxBitsToWaitFor, xTimeoutOccurred ) ( void ) xTimeoutOccurred -#endif - -#ifndef traceEVENT_GROUP_WAIT_BITS_BLOCK - #define traceEVENT_GROUP_WAIT_BITS_BLOCK( xEventGroup, uxBitsToWaitFor ) -#endif - -#ifndef traceEVENT_GROUP_WAIT_BITS_END - #define traceEVENT_GROUP_WAIT_BITS_END( xEventGroup, uxBitsToWaitFor, xTimeoutOccurred ) ( void ) xTimeoutOccurred -#endif - -#ifndef traceEVENT_GROUP_CLEAR_BITS - #define traceEVENT_GROUP_CLEAR_BITS( xEventGroup, uxBitsToClear ) -#endif - -#ifndef traceEVENT_GROUP_CLEAR_BITS_FROM_ISR - #define traceEVENT_GROUP_CLEAR_BITS_FROM_ISR( xEventGroup, uxBitsToClear ) -#endif - -#ifndef traceEVENT_GROUP_SET_BITS - #define traceEVENT_GROUP_SET_BITS( xEventGroup, uxBitsToSet ) -#endif - -#ifndef traceEVENT_GROUP_SET_BITS_FROM_ISR - #define traceEVENT_GROUP_SET_BITS_FROM_ISR( xEventGroup, uxBitsToSet ) -#endif - -#ifndef traceEVENT_GROUP_DELETE - #define traceEVENT_GROUP_DELETE( xEventGroup ) -#endif - -#ifndef tracePEND_FUNC_CALL - #define tracePEND_FUNC_CALL(xFunctionToPend, pvParameter1, ulParameter2, ret) -#endif - -#ifndef tracePEND_FUNC_CALL_FROM_ISR - #define tracePEND_FUNC_CALL_FROM_ISR(xFunctionToPend, pvParameter1, ulParameter2, ret) -#endif - -#ifndef traceQUEUE_REGISTRY_ADD - #define traceQUEUE_REGISTRY_ADD(xQueue, pcQueueName) -#endif - -#ifndef traceTASK_NOTIFY_TAKE_BLOCK - #define traceTASK_NOTIFY_TAKE_BLOCK() -#endif - -#ifndef traceTASK_NOTIFY_TAKE - #define traceTASK_NOTIFY_TAKE() -#endif - -#ifndef traceTASK_NOTIFY_WAIT_BLOCK - #define traceTASK_NOTIFY_WAIT_BLOCK() -#endif - -#ifndef traceTASK_NOTIFY_WAIT - #define traceTASK_NOTIFY_WAIT() -#endif - -#ifndef traceTASK_NOTIFY - #define traceTASK_NOTIFY() -#endif - -#ifndef traceTASK_NOTIFY_FROM_ISR - #define traceTASK_NOTIFY_FROM_ISR() -#endif - -#ifndef traceTASK_NOTIFY_GIVE_FROM_ISR - #define traceTASK_NOTIFY_GIVE_FROM_ISR() -#endif - -#ifndef traceSTREAM_BUFFER_CREATE_FAILED - #define traceSTREAM_BUFFER_CREATE_FAILED( xIsMessageBuffer ) -#endif - -#ifndef traceSTREAM_BUFFER_CREATE_STATIC_FAILED - #define traceSTREAM_BUFFER_CREATE_STATIC_FAILED( xReturn, xIsMessageBuffer ) -#endif - -#ifndef traceSTREAM_BUFFER_CREATE - #define traceSTREAM_BUFFER_CREATE( pxStreamBuffer, xIsMessageBuffer ) -#endif - -#ifndef traceSTREAM_BUFFER_DELETE - #define traceSTREAM_BUFFER_DELETE( xStreamBuffer ) -#endif - -#ifndef traceSTREAM_BUFFER_RESET - #define traceSTREAM_BUFFER_RESET( xStreamBuffer ) -#endif - -#ifndef traceBLOCKING_ON_STREAM_BUFFER_SEND - #define traceBLOCKING_ON_STREAM_BUFFER_SEND( xStreamBuffer ) -#endif - -#ifndef traceSTREAM_BUFFER_SEND - #define traceSTREAM_BUFFER_SEND( xStreamBuffer, xBytesSent ) -#endif - -#ifndef traceSTREAM_BUFFER_SEND_FAILED - #define traceSTREAM_BUFFER_SEND_FAILED( xStreamBuffer ) -#endif - -#ifndef traceSTREAM_BUFFER_SEND_FROM_ISR - #define traceSTREAM_BUFFER_SEND_FROM_ISR( xStreamBuffer, xBytesSent ) -#endif - -#ifndef traceBLOCKING_ON_STREAM_BUFFER_RECEIVE - #define traceBLOCKING_ON_STREAM_BUFFER_RECEIVE( xStreamBuffer ) -#endif - -#ifndef traceSTREAM_BUFFER_RECEIVE - #define traceSTREAM_BUFFER_RECEIVE( xStreamBuffer, xReceivedLength ) -#endif - -#ifndef traceSTREAM_BUFFER_RECEIVE_FAILED - #define traceSTREAM_BUFFER_RECEIVE_FAILED( xStreamBuffer ) -#endif - -#ifndef traceSTREAM_BUFFER_RECEIVE_FROM_ISR - #define traceSTREAM_BUFFER_RECEIVE_FROM_ISR( xStreamBuffer, xReceivedLength ) -#endif - -#ifndef configGENERATE_RUN_TIME_STATS - #define configGENERATE_RUN_TIME_STATS 0 -#endif - -#if ( configGENERATE_RUN_TIME_STATS == 1 ) - - #ifndef portCONFIGURE_TIMER_FOR_RUN_TIME_STATS - #error If configGENERATE_RUN_TIME_STATS is defined then portCONFIGURE_TIMER_FOR_RUN_TIME_STATS must also be defined. portCONFIGURE_TIMER_FOR_RUN_TIME_STATS should call a port layer function to setup a peripheral timer/counter that can then be used as the run time counter time base. - #endif /* portCONFIGURE_TIMER_FOR_RUN_TIME_STATS */ - - #ifndef portGET_RUN_TIME_COUNTER_VALUE - #ifndef portALT_GET_RUN_TIME_COUNTER_VALUE - #error If configGENERATE_RUN_TIME_STATS is defined then either portGET_RUN_TIME_COUNTER_VALUE or portALT_GET_RUN_TIME_COUNTER_VALUE must also be defined. See the examples provided and the FreeRTOS web site for more information. - #endif /* portALT_GET_RUN_TIME_COUNTER_VALUE */ - #endif /* portGET_RUN_TIME_COUNTER_VALUE */ - -#endif /* configGENERATE_RUN_TIME_STATS */ - -#ifndef portCONFIGURE_TIMER_FOR_RUN_TIME_STATS - #define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() -#endif - -#ifndef configUSE_MALLOC_FAILED_HOOK - #define configUSE_MALLOC_FAILED_HOOK 0 -#endif - -#ifndef portPRIVILEGE_BIT - #define portPRIVILEGE_BIT ( ( UBaseType_t ) 0x00 ) -#endif - -#ifndef portYIELD_WITHIN_API - #define portYIELD_WITHIN_API portYIELD -#endif - -#ifndef portSUPPRESS_TICKS_AND_SLEEP - #define portSUPPRESS_TICKS_AND_SLEEP( xExpectedIdleTime ) -#endif - -#ifndef configEXPECTED_IDLE_TIME_BEFORE_SLEEP - #define configEXPECTED_IDLE_TIME_BEFORE_SLEEP 2 -#endif - -#if configEXPECTED_IDLE_TIME_BEFORE_SLEEP < 2 - #error configEXPECTED_IDLE_TIME_BEFORE_SLEEP must not be less than 2 -#endif - -#ifndef configUSE_TICKLESS_IDLE - #define configUSE_TICKLESS_IDLE 0 -#endif - -#ifndef configPRE_SUPPRESS_TICKS_AND_SLEEP_PROCESSING - #define configPRE_SUPPRESS_TICKS_AND_SLEEP_PROCESSING( x ) -#endif - -#ifndef configPRE_SLEEP_PROCESSING - #define configPRE_SLEEP_PROCESSING( x ) -#endif - -#ifndef configPOST_SLEEP_PROCESSING - #define configPOST_SLEEP_PROCESSING( x ) -#endif - -#ifndef configUSE_QUEUE_SETS - #define configUSE_QUEUE_SETS 0 -#endif - -#ifndef portTASK_USES_FLOATING_POINT - #define portTASK_USES_FLOATING_POINT() -#endif - -#ifndef portALLOCATE_SECURE_CONTEXT - #define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize ) -#endif - -#ifndef portDONT_DISCARD - #define portDONT_DISCARD -#endif - -#ifndef configUSE_TIME_SLICING - #define configUSE_TIME_SLICING 1 -#endif - -#ifndef configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS - #define configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS 0 -#endif - -#ifndef configUSE_STATS_FORMATTING_FUNCTIONS - #define configUSE_STATS_FORMATTING_FUNCTIONS 0 -#endif - -#ifndef portASSERT_IF_INTERRUPT_PRIORITY_INVALID - #define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() -#endif - -#ifndef configUSE_TRACE_FACILITY - #define configUSE_TRACE_FACILITY 0 -#endif - -#ifndef mtCOVERAGE_TEST_MARKER - #define mtCOVERAGE_TEST_MARKER() -#endif - -#ifndef mtCOVERAGE_TEST_DELAY - #define mtCOVERAGE_TEST_DELAY() -#endif - -#ifndef portASSERT_IF_IN_ISR - #define portASSERT_IF_IN_ISR() -#endif - -#ifndef configUSE_PORT_OPTIMISED_TASK_SELECTION - #define configUSE_PORT_OPTIMISED_TASK_SELECTION 0 -#endif - -#ifndef configAPPLICATION_ALLOCATED_HEAP - #define configAPPLICATION_ALLOCATED_HEAP 0 -#endif - -#ifndef configUSE_TASK_NOTIFICATIONS - #define configUSE_TASK_NOTIFICATIONS 1 -#endif - -#ifndef configUSE_POSIX_ERRNO - #define configUSE_POSIX_ERRNO 0 -#endif - -#ifndef portTICK_TYPE_IS_ATOMIC - #define portTICK_TYPE_IS_ATOMIC 0 -#endif - -#ifndef configSUPPORT_STATIC_ALLOCATION - /* Defaults to 0 for backward compatibility. */ - #define configSUPPORT_STATIC_ALLOCATION 0 -#endif - -#ifndef configSUPPORT_DYNAMIC_ALLOCATION - /* Defaults to 1 for backward compatibility. */ - #define configSUPPORT_DYNAMIC_ALLOCATION 1 -#endif - -#ifndef configSTACK_DEPTH_TYPE - /* Defaults to uint16_t for backward compatibility, but can be overridden - in FreeRTOSConfig.h if uint16_t is too restrictive. */ - #define configSTACK_DEPTH_TYPE uint16_t -#endif - -#ifndef configMESSAGE_BUFFER_LENGTH_TYPE - /* Defaults to size_t for backward compatibility, but can be overridden - in FreeRTOSConfig.h if lengths will always be less than the number of bytes - in a size_t. */ - #define configMESSAGE_BUFFER_LENGTH_TYPE size_t -#endif - -/* Sanity check the configuration. */ -#if( configUSE_TICKLESS_IDLE != 0 ) - #if( INCLUDE_vTaskSuspend != 1 ) - #error INCLUDE_vTaskSuspend must be set to 1 if configUSE_TICKLESS_IDLE is not set to 0 - #endif /* INCLUDE_vTaskSuspend */ -#endif /* configUSE_TICKLESS_IDLE */ - -#if( ( configSUPPORT_STATIC_ALLOCATION == 0 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 0 ) ) - #error configSUPPORT_STATIC_ALLOCATION and configSUPPORT_DYNAMIC_ALLOCATION cannot both be 0, but can both be 1. -#endif - -#if( ( configUSE_RECURSIVE_MUTEXES == 1 ) && ( configUSE_MUTEXES != 1 ) ) - #error configUSE_MUTEXES must be set to 1 to use recursive mutexes -#endif - -#ifndef configINITIAL_TICK_COUNT - #define configINITIAL_TICK_COUNT 0 -#endif - -#if( portTICK_TYPE_IS_ATOMIC == 0 ) - /* Either variables of tick type cannot be read atomically, or - portTICK_TYPE_IS_ATOMIC was not set - map the critical sections used when - the tick count is returned to the standard critical section macros. */ - #define portTICK_TYPE_ENTER_CRITICAL() portENTER_CRITICAL() - #define portTICK_TYPE_EXIT_CRITICAL() portEXIT_CRITICAL() - #define portTICK_TYPE_SET_INTERRUPT_MASK_FROM_ISR() portSET_INTERRUPT_MASK_FROM_ISR() - #define portTICK_TYPE_CLEAR_INTERRUPT_MASK_FROM_ISR( x ) portCLEAR_INTERRUPT_MASK_FROM_ISR( ( x ) ) -#else - /* The tick type can be read atomically, so critical sections used when the - tick count is returned can be defined away. */ - #define portTICK_TYPE_ENTER_CRITICAL() - #define portTICK_TYPE_EXIT_CRITICAL() - #define portTICK_TYPE_SET_INTERRUPT_MASK_FROM_ISR() 0 - #define portTICK_TYPE_CLEAR_INTERRUPT_MASK_FROM_ISR( x ) ( void ) x -#endif - -/* Definitions to allow backward compatibility with FreeRTOS versions prior to -V8 if desired. */ -#ifndef configENABLE_BACKWARD_COMPATIBILITY - #define configENABLE_BACKWARD_COMPATIBILITY 1 -#endif - -#ifndef configPRINTF - /* configPRINTF() was not defined, so define it away to nothing. To use - configPRINTF() then define it as follows (where MyPrintFunction() is - provided by the application writer): - - void MyPrintFunction(const char *pcFormat, ... ); - #define configPRINTF( X ) MyPrintFunction X - - Then call like a standard printf() function, but placing brackets around - all parameters so they are passed as a single parameter. For example: - configPRINTF( ("Value = %d", MyVariable) ); */ - #define configPRINTF( X ) -#endif - -#ifndef configMAX - /* The application writer has not provided their own MAX macro, so define - the following generic implementation. */ - #define configMAX( a, b ) ( ( ( a ) > ( b ) ) ? ( a ) : ( b ) ) -#endif - -#ifndef configMIN - /* The application writer has not provided their own MAX macro, so define - the following generic implementation. */ - #define configMIN( a, b ) ( ( ( a ) < ( b ) ) ? ( a ) : ( b ) ) -#endif - -#if configENABLE_BACKWARD_COMPATIBILITY == 1 - #define eTaskStateGet eTaskGetState - #define portTickType TickType_t - #define xTaskHandle TaskHandle_t - #define xQueueHandle QueueHandle_t - #define xSemaphoreHandle SemaphoreHandle_t - #define xQueueSetHandle QueueSetHandle_t - #define xQueueSetMemberHandle QueueSetMemberHandle_t - #define xTimeOutType TimeOut_t - #define xMemoryRegion MemoryRegion_t - #define xTaskParameters TaskParameters_t - #define xTaskStatusType TaskStatus_t - #define xTimerHandle TimerHandle_t - #define xCoRoutineHandle CoRoutineHandle_t - #define pdTASK_HOOK_CODE TaskHookFunction_t - #define portTICK_RATE_MS portTICK_PERIOD_MS - #define pcTaskGetTaskName pcTaskGetName - #define pcTimerGetTimerName pcTimerGetName - #define pcQueueGetQueueName pcQueueGetName - #define vTaskGetTaskInfo vTaskGetInfo - #define xTaskGetIdleRunTimeCounter ulTaskGetIdleRunTimeCounter - - /* Backward compatibility within the scheduler code only - these definitions - are not really required but are included for completeness. */ - #define tmrTIMER_CALLBACK TimerCallbackFunction_t - #define pdTASK_CODE TaskFunction_t - #define xListItem ListItem_t - #define xList List_t - - /* For libraries that break the list data hiding, and access list structure - members directly (which is not supposed to be done). */ - #define pxContainer pvContainer -#endif /* configENABLE_BACKWARD_COMPATIBILITY */ - -#if( configUSE_ALTERNATIVE_API != 0 ) - #error The alternative API was deprecated some time ago, and was removed in FreeRTOS V9.0 0 -#endif - -/* Set configUSE_TASK_FPU_SUPPORT to 0 to omit floating point support even -if floating point hardware is otherwise supported by the FreeRTOS port in use. -This constant is not supported by all FreeRTOS ports that include floating -point support. */ -#ifndef configUSE_TASK_FPU_SUPPORT - #define configUSE_TASK_FPU_SUPPORT 1 -#endif - -/* Set configENABLE_MPU to 1 to enable MPU support and 0 to disable it. This is -currently used in ARMv8M ports. */ -#ifndef configENABLE_MPU - #define configENABLE_MPU 0 -#endif - -/* Set configENABLE_FPU to 1 to enable FPU support and 0 to disable it. This is -currently used in ARMv8M ports. */ -#ifndef configENABLE_FPU - #define configENABLE_FPU 1 -#endif - -/* Set configENABLE_TRUSTZONE to 1 enable TrustZone support and 0 to disable it. -This is currently used in ARMv8M ports. */ -#ifndef configENABLE_TRUSTZONE - #define configENABLE_TRUSTZONE 1 -#endif - -/* Set configRUN_FREERTOS_SECURE_ONLY to 1 to run the FreeRTOS ARMv8M port on -the Secure Side only. */ -#ifndef configRUN_FREERTOS_SECURE_ONLY - #define configRUN_FREERTOS_SECURE_ONLY 0 -#endif - -/* Sometimes the FreeRTOSConfig.h settings only allow a task to be created using - * dynamically allocated RAM, in which case when any task is deleted it is known - * that both the task's stack and TCB need to be freed. Sometimes the - * FreeRTOSConfig.h settings only allow a task to be created using statically - * allocated RAM, in which case when any task is deleted it is known that neither - * the task's stack or TCB should be freed. Sometimes the FreeRTOSConfig.h - * settings allow a task to be created using either statically or dynamically - * allocated RAM, in which case a member of the TCB is used to record whether the - * stack and/or TCB were allocated statically or dynamically, so when a task is - * deleted the RAM that was allocated dynamically is freed again and no attempt is - * made to free the RAM that was allocated statically. - * tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE is only true if it is possible for a - * task to be created using either statically or dynamically allocated RAM. Note - * that if portUSING_MPU_WRAPPERS is 1 then a protected task can be created with - * a statically allocated stack and a dynamically allocated TCB. - * - * The following table lists various combinations of portUSING_MPU_WRAPPERS, - * configSUPPORT_DYNAMIC_ALLOCATION and configSUPPORT_STATIC_ALLOCATION and - * when it is possible to have both static and dynamic allocation: - * +-----+---------+--------+-----------------------------+-----------------------------------+------------------+-----------+ - * | MPU | Dynamic | Static | Available Functions | Possible Allocations | Both Dynamic and | Need Free | - * | | | | | | Static Possible | | - * +-----+---------+--------+-----------------------------+-----------------------------------+------------------+-----------+ - * | 0 | 0 | 1 | xTaskCreateStatic | TCB - Static, Stack - Static | No | No | - * +-----|---------|--------|-----------------------------|-----------------------------------|------------------|-----------| - * | 0 | 1 | 0 | xTaskCreate | TCB - Dynamic, Stack - Dynamic | No | Yes | - * +-----|---------|--------|-----------------------------|-----------------------------------|------------------|-----------| - * | 0 | 1 | 1 | xTaskCreate, | 1. TCB - Dynamic, Stack - Dynamic | Yes | Yes | - * | | | | xTaskCreateStatic | 2. TCB - Static, Stack - Static | | | - * +-----|---------|--------|-----------------------------|-----------------------------------|------------------|-----------| - * | 1 | 0 | 1 | xTaskCreateStatic, | TCB - Static, Stack - Static | No | No | - * | | | | xTaskCreateRestrictedStatic | | | | - * +-----|---------|--------|-----------------------------|-----------------------------------|------------------|-----------| - * | 1 | 1 | 0 | xTaskCreate, | 1. TCB - Dynamic, Stack - Dynamic | Yes | Yes | - * | | | | xTaskCreateRestricted | 2. TCB - Dynamic, Stack - Static | | | - * +-----|---------|--------|-----------------------------|-----------------------------------|------------------|-----------| - * | 1 | 1 | 1 | xTaskCreate, | 1. TCB - Dynamic, Stack - Dynamic | Yes | Yes | - * | | | | xTaskCreateStatic, | 2. TCB - Dynamic, Stack - Static | | | - * | | | | xTaskCreateRestricted, | 3. TCB - Static, Stack - Static | | | - * | | | | xTaskCreateRestrictedStatic | | | | - * +-----+---------+--------+-----------------------------+-----------------------------------+------------------+-----------+ - */ -#define tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE ( ( ( portUSING_MPU_WRAPPERS == 0 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) ) || \ - ( ( portUSING_MPU_WRAPPERS == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) ) - -/* - * In line with software engineering best practice, FreeRTOS implements a strict - * data hiding policy, so the real structures used by FreeRTOS to maintain the - * state of tasks, queues, semaphores, etc. are not accessible to the application - * code. However, if the application writer wants to statically allocate such - * an object then the size of the object needs to be know. Dummy structures - * that are guaranteed to have the same size and alignment requirements of the - * real objects are used for this purpose. The dummy list and list item - * structures below are used for inclusion in such a dummy structure. - */ -struct xSTATIC_LIST_ITEM -{ - #if( configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES == 1 ) - TickType_t xDummy1; - #endif - TickType_t xDummy2; - void *pvDummy3[ 4 ]; - #if( configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES == 1 ) - TickType_t xDummy4; - #endif -}; -typedef struct xSTATIC_LIST_ITEM StaticListItem_t; - -/* See the comments above the struct xSTATIC_LIST_ITEM definition. */ -struct xSTATIC_MINI_LIST_ITEM -{ - #if( configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES == 1 ) - TickType_t xDummy1; - #endif - TickType_t xDummy2; - void *pvDummy3[ 2 ]; -}; -typedef struct xSTATIC_MINI_LIST_ITEM StaticMiniListItem_t; - -/* See the comments above the struct xSTATIC_LIST_ITEM definition. */ -typedef struct xSTATIC_LIST -{ - #if( configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES == 1 ) - TickType_t xDummy1; - #endif - UBaseType_t uxDummy2; - void *pvDummy3; - StaticMiniListItem_t xDummy4; - #if( configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES == 1 ) - TickType_t xDummy5; - #endif -} StaticList_t; - -/* - * In line with software engineering best practice, especially when supplying a - * library that is likely to change in future versions, FreeRTOS implements a - * strict data hiding policy. This means the Task structure used internally by - * FreeRTOS is not accessible to application code. However, if the application - * writer wants to statically allocate the memory required to create a task then - * the size of the task object needs to be know. The StaticTask_t structure - * below is provided for this purpose. Its sizes and alignment requirements are - * guaranteed to match those of the genuine structure, no matter which - * architecture is being used, and no matter how the values in FreeRTOSConfig.h - * are set. Its contents are somewhat obfuscated in the hope users will - * recognise that it would be unwise to make direct use of the structure members. - */ -typedef struct xSTATIC_TCB -{ - void *pxDummy1; - #if ( portUSING_MPU_WRAPPERS == 1 ) - xMPU_SETTINGS xDummy2; - #endif - StaticListItem_t xDummy3[ 2 ]; - UBaseType_t uxDummy5; - void *pxDummy6; - uint8_t ucDummy7[ configMAX_TASK_NAME_LEN ]; - #if ( ( portSTACK_GROWTH > 0 ) || ( configRECORD_STACK_HIGH_ADDRESS == 1 ) ) - void *pxDummy8; - #endif - #if ( portCRITICAL_NESTING_IN_TCB == 1 ) - UBaseType_t uxDummy9; - #endif - #if ( configUSE_TRACE_FACILITY == 1 ) - UBaseType_t uxDummy10[ 2 ]; - #endif - #if ( configUSE_MUTEXES == 1 ) - UBaseType_t uxDummy12[ 2 ]; - #endif - #if ( configUSE_APPLICATION_TASK_TAG == 1 ) - void *pxDummy14; - #endif - #if( configNUM_THREAD_LOCAL_STORAGE_POINTERS > 0 ) - void *pvDummy15[ configNUM_THREAD_LOCAL_STORAGE_POINTERS ]; - #endif - #if ( configGENERATE_RUN_TIME_STATS == 1 ) - uint32_t ulDummy16; - #endif - #if ( configUSE_NEWLIB_REENTRANT == 1 ) - struct _reent xDummy17; - #endif - #if ( configUSE_TASK_NOTIFICATIONS == 1 ) - uint32_t ulDummy18; - uint8_t ucDummy19; - #endif - #if ( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) - uint8_t uxDummy20; - #endif - - #if( INCLUDE_xTaskAbortDelay == 1 ) - uint8_t ucDummy21; - #endif - #if ( configUSE_POSIX_ERRNO == 1 ) - int iDummy22; - #endif -} StaticTask_t; - -/* - * In line with software engineering best practice, especially when supplying a - * library that is likely to change in future versions, FreeRTOS implements a - * strict data hiding policy. This means the Queue structure used internally by - * FreeRTOS is not accessible to application code. However, if the application - * writer wants to statically allocate the memory required to create a queue - * then the size of the queue object needs to be know. The StaticQueue_t - * structure below is provided for this purpose. Its sizes and alignment - * requirements are guaranteed to match those of the genuine structure, no - * matter which architecture is being used, and no matter how the values in - * FreeRTOSConfig.h are set. Its contents are somewhat obfuscated in the hope - * users will recognise that it would be unwise to make direct use of the - * structure members. - */ -typedef struct xSTATIC_QUEUE -{ - void *pvDummy1[ 3 ]; - - union - { - void *pvDummy2; - UBaseType_t uxDummy2; - } u; - - StaticList_t xDummy3[ 2 ]; - UBaseType_t uxDummy4[ 3 ]; - uint8_t ucDummy5[ 2 ]; - - #if( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) - uint8_t ucDummy6; - #endif - - #if ( configUSE_QUEUE_SETS == 1 ) - void *pvDummy7; - #endif - - #if ( configUSE_TRACE_FACILITY == 1 ) - UBaseType_t uxDummy8; - uint8_t ucDummy9; - #endif - -} StaticQueue_t; -typedef StaticQueue_t StaticSemaphore_t; - -/* - * In line with software engineering best practice, especially when supplying a - * library that is likely to change in future versions, FreeRTOS implements a - * strict data hiding policy. This means the event group structure used - * internally by FreeRTOS is not accessible to application code. However, if - * the application writer wants to statically allocate the memory required to - * create an event group then the size of the event group object needs to be - * know. The StaticEventGroup_t structure below is provided for this purpose. - * Its sizes and alignment requirements are guaranteed to match those of the - * genuine structure, no matter which architecture is being used, and no matter - * how the values in FreeRTOSConfig.h are set. Its contents are somewhat - * obfuscated in the hope users will recognise that it would be unwise to make - * direct use of the structure members. - */ -typedef struct xSTATIC_EVENT_GROUP -{ - TickType_t xDummy1; - StaticList_t xDummy2; - - #if( configUSE_TRACE_FACILITY == 1 ) - UBaseType_t uxDummy3; - #endif - - #if( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) - uint8_t ucDummy4; - #endif - -} StaticEventGroup_t; - -/* - * In line with software engineering best practice, especially when supplying a - * library that is likely to change in future versions, FreeRTOS implements a - * strict data hiding policy. This means the software timer structure used - * internally by FreeRTOS is not accessible to application code. However, if - * the application writer wants to statically allocate the memory required to - * create a software timer then the size of the queue object needs to be know. - * The StaticTimer_t structure below is provided for this purpose. Its sizes - * and alignment requirements are guaranteed to match those of the genuine - * structure, no matter which architecture is being used, and no matter how the - * values in FreeRTOSConfig.h are set. Its contents are somewhat obfuscated in - * the hope users will recognise that it would be unwise to make direct use of - * the structure members. - */ -typedef struct xSTATIC_TIMER -{ - void *pvDummy1; - StaticListItem_t xDummy2; - TickType_t xDummy3; - void *pvDummy5; - TaskFunction_t pvDummy6; - #if( configUSE_TRACE_FACILITY == 1 ) - UBaseType_t uxDummy7; - #endif - uint8_t ucDummy8; - -} StaticTimer_t; - -/* -* In line with software engineering best practice, especially when supplying a -* library that is likely to change in future versions, FreeRTOS implements a -* strict data hiding policy. This means the stream buffer structure used -* internally by FreeRTOS is not accessible to application code. However, if -* the application writer wants to statically allocate the memory required to -* create a stream buffer then the size of the stream buffer object needs to be -* know. The StaticStreamBuffer_t structure below is provided for this purpose. -* Its size and alignment requirements are guaranteed to match those of the -* genuine structure, no matter which architecture is being used, and no matter -* how the values in FreeRTOSConfig.h are set. Its contents are somewhat -* obfuscated in the hope users will recognise that it would be unwise to make -* direct use of the structure members. -*/ -typedef struct xSTATIC_STREAM_BUFFER -{ - size_t uxDummy1[ 4 ]; - void * pvDummy2[ 3 ]; - uint8_t ucDummy3; - #if ( configUSE_TRACE_FACILITY == 1 ) - UBaseType_t uxDummy4; - #endif -} StaticStreamBuffer_t; - -/* Message buffers are built on stream buffers. */ -typedef StaticStreamBuffer_t StaticMessageBuffer_t; - -#ifdef __cplusplus -} -#endif - -#endif /* INC_FREERTOS_H */ - diff --git a/Middlewares/Third_Party/FreeRTOS/Source/include/StackMacros.h b/Middlewares/Third_Party/FreeRTOS/Source/include/StackMacros.h deleted file mode 100644 index 5643991..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/include/StackMacros.h +++ /dev/null @@ -1,133 +0,0 @@ -/* - * FreeRTOS Kernel V10.3.1 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - -#ifndef STACK_MACROS_H -#define STACK_MACROS_H - -#ifndef _MSC_VER /* Visual Studio doesn't support #warning. */ - #warning The name of this file has changed to stack_macros.h. Please update your code accordingly. This source file (which has the original name) will be removed in future released. -#endif - -/* - * Call the stack overflow hook function if the stack of the task being swapped - * out is currently overflowed, or looks like it might have overflowed in the - * past. - * - * Setting configCHECK_FOR_STACK_OVERFLOW to 1 will cause the macro to check - * the current stack state only - comparing the current top of stack value to - * the stack limit. Setting configCHECK_FOR_STACK_OVERFLOW to greater than 1 - * will also cause the last few stack bytes to be checked to ensure the value - * to which the bytes were set when the task was created have not been - * overwritten. Note this second test does not guarantee that an overflowed - * stack will always be recognised. - */ - -/*-----------------------------------------------------------*/ - -#if( ( configCHECK_FOR_STACK_OVERFLOW == 1 ) && ( portSTACK_GROWTH < 0 ) ) - - /* Only the current stack state is to be checked. */ - #define taskCHECK_FOR_STACK_OVERFLOW() \ - { \ - /* Is the currently saved stack pointer within the stack limit? */ \ - if( pxCurrentTCB->pxTopOfStack <= pxCurrentTCB->pxStack ) \ - { \ - vApplicationStackOverflowHook( ( TaskHandle_t ) pxCurrentTCB, pxCurrentTCB->pcTaskName ); \ - } \ - } - -#endif /* configCHECK_FOR_STACK_OVERFLOW == 1 */ -/*-----------------------------------------------------------*/ - -#if( ( configCHECK_FOR_STACK_OVERFLOW == 1 ) && ( portSTACK_GROWTH > 0 ) ) - - /* Only the current stack state is to be checked. */ - #define taskCHECK_FOR_STACK_OVERFLOW() \ - { \ - \ - /* Is the currently saved stack pointer within the stack limit? */ \ - if( pxCurrentTCB->pxTopOfStack >= pxCurrentTCB->pxEndOfStack ) \ - { \ - vApplicationStackOverflowHook( ( TaskHandle_t ) pxCurrentTCB, pxCurrentTCB->pcTaskName ); \ - } \ - } - -#endif /* configCHECK_FOR_STACK_OVERFLOW == 1 */ -/*-----------------------------------------------------------*/ - -#if( ( configCHECK_FOR_STACK_OVERFLOW > 1 ) && ( portSTACK_GROWTH < 0 ) ) - - #define taskCHECK_FOR_STACK_OVERFLOW() \ - { \ - const uint32_t * const pulStack = ( uint32_t * ) pxCurrentTCB->pxStack; \ - const uint32_t ulCheckValue = ( uint32_t ) 0xa5a5a5a5; \ - \ - if( ( pulStack[ 0 ] != ulCheckValue ) || \ - ( pulStack[ 1 ] != ulCheckValue ) || \ - ( pulStack[ 2 ] != ulCheckValue ) || \ - ( pulStack[ 3 ] != ulCheckValue ) ) \ - { \ - vApplicationStackOverflowHook( ( TaskHandle_t ) pxCurrentTCB, pxCurrentTCB->pcTaskName ); \ - } \ - } - -#endif /* #if( configCHECK_FOR_STACK_OVERFLOW > 1 ) */ -/*-----------------------------------------------------------*/ - -#if( ( configCHECK_FOR_STACK_OVERFLOW > 1 ) && ( portSTACK_GROWTH > 0 ) ) - - #define taskCHECK_FOR_STACK_OVERFLOW() \ - { \ - int8_t *pcEndOfStack = ( int8_t * ) pxCurrentTCB->pxEndOfStack; \ - static const uint8_t ucExpectedStackBytes[] = { tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, \ - tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, \ - tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, \ - tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, \ - tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE }; \ - \ - \ - pcEndOfStack -= sizeof( ucExpectedStackBytes ); \ - \ - /* Has the extremity of the task stack ever been written over? */ \ - if( memcmp( ( void * ) pcEndOfStack, ( void * ) ucExpectedStackBytes, sizeof( ucExpectedStackBytes ) ) != 0 ) \ - { \ - vApplicationStackOverflowHook( ( TaskHandle_t ) pxCurrentTCB, pxCurrentTCB->pcTaskName ); \ - } \ - } - -#endif /* #if( configCHECK_FOR_STACK_OVERFLOW > 1 ) */ -/*-----------------------------------------------------------*/ - -/* Remove stack overflow macro if not being used. */ -#ifndef taskCHECK_FOR_STACK_OVERFLOW - #define taskCHECK_FOR_STACK_OVERFLOW() -#endif - - - -#endif /* STACK_MACROS_H */ - diff --git a/Middlewares/Third_Party/FreeRTOS/Source/include/atomic.h b/Middlewares/Third_Party/FreeRTOS/Source/include/atomic.h deleted file mode 100644 index ceca696..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/include/atomic.h +++ /dev/null @@ -1,414 +0,0 @@ -/* - * FreeRTOS Kernel V10.3.1 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - -/** - * @file atomic.h - * @brief FreeRTOS atomic operation support. - * - * This file implements atomic functions by disabling interrupts globally. - * Implementations with architecture specific atomic instructions can be - * provided under each compiler directory. - */ - -#ifndef ATOMIC_H -#define ATOMIC_H - -#ifndef INC_FREERTOS_H - #error "include FreeRTOS.h must appear in source files before include atomic.h" -#endif - -/* Standard includes. */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Port specific definitions -- entering/exiting critical section. - * Refer template -- ./lib/FreeRTOS/portable/Compiler/Arch/portmacro.h - * - * Every call to ATOMIC_EXIT_CRITICAL() must be closely paired with - * ATOMIC_ENTER_CRITICAL(). - * - */ -#if defined( portSET_INTERRUPT_MASK_FROM_ISR ) - - /* Nested interrupt scheme is supported in this port. */ - #define ATOMIC_ENTER_CRITICAL() \ - UBaseType_t uxCriticalSectionType = portSET_INTERRUPT_MASK_FROM_ISR() - - #define ATOMIC_EXIT_CRITICAL() \ - portCLEAR_INTERRUPT_MASK_FROM_ISR( uxCriticalSectionType ) - -#else - - /* Nested interrupt scheme is NOT supported in this port. */ - #define ATOMIC_ENTER_CRITICAL() portENTER_CRITICAL() - #define ATOMIC_EXIT_CRITICAL() portEXIT_CRITICAL() - -#endif /* portSET_INTERRUPT_MASK_FROM_ISR() */ - -/* - * Port specific definition -- "always inline". - * Inline is compiler specific, and may not always get inlined depending on your - * optimization level. Also, inline is considered as performance optimization - * for atomic. Thus, if portFORCE_INLINE is not provided by portmacro.h, - * instead of resulting error, simply define it away. - */ -#ifndef portFORCE_INLINE - #define portFORCE_INLINE -#endif - -#define ATOMIC_COMPARE_AND_SWAP_SUCCESS 0x1U /**< Compare and swap succeeded, swapped. */ -#define ATOMIC_COMPARE_AND_SWAP_FAILURE 0x0U /**< Compare and swap failed, did not swap. */ - -/*----------------------------- Swap && CAS ------------------------------*/ - -/** - * Atomic compare-and-swap - * - * @brief Performs an atomic compare-and-swap operation on the specified values. - * - * @param[in, out] pulDestination Pointer to memory location from where value is - * to be loaded and checked. - * @param[in] ulExchange If condition meets, write this value to memory. - * @param[in] ulComparand Swap condition. - * - * @return Unsigned integer of value 1 or 0. 1 for swapped, 0 for not swapped. - * - * @note This function only swaps *pulDestination with ulExchange, if previous - * *pulDestination value equals ulComparand. - */ -static portFORCE_INLINE uint32_t Atomic_CompareAndSwap_u32( uint32_t volatile * pulDestination, - uint32_t ulExchange, - uint32_t ulComparand ) -{ -uint32_t ulReturnValue; - - ATOMIC_ENTER_CRITICAL(); - { - if( *pulDestination == ulComparand ) - { - *pulDestination = ulExchange; - ulReturnValue = ATOMIC_COMPARE_AND_SWAP_SUCCESS; - } - else - { - ulReturnValue = ATOMIC_COMPARE_AND_SWAP_FAILURE; - } - } - ATOMIC_EXIT_CRITICAL(); - - return ulReturnValue; -} -/*-----------------------------------------------------------*/ - -/** - * Atomic swap (pointers) - * - * @brief Atomically sets the address pointed to by *ppvDestination to the value - * of *pvExchange. - * - * @param[in, out] ppvDestination Pointer to memory location from where a pointer - * value is to be loaded and written back to. - * @param[in] pvExchange Pointer value to be written to *ppvDestination. - * - * @return The initial value of *ppvDestination. - */ -static portFORCE_INLINE void * Atomic_SwapPointers_p32( void * volatile * ppvDestination, - void * pvExchange ) -{ -void * pReturnValue; - - ATOMIC_ENTER_CRITICAL(); - { - pReturnValue = *ppvDestination; - *ppvDestination = pvExchange; - } - ATOMIC_EXIT_CRITICAL(); - - return pReturnValue; -} -/*-----------------------------------------------------------*/ - -/** - * Atomic compare-and-swap (pointers) - * - * @brief Performs an atomic compare-and-swap operation on the specified pointer - * values. - * - * @param[in, out] ppvDestination Pointer to memory location from where a pointer - * value is to be loaded and checked. - * @param[in] pvExchange If condition meets, write this value to memory. - * @param[in] pvComparand Swap condition. - * - * @return Unsigned integer of value 1 or 0. 1 for swapped, 0 for not swapped. - * - * @note This function only swaps *ppvDestination with pvExchange, if previous - * *ppvDestination value equals pvComparand. - */ -static portFORCE_INLINE uint32_t Atomic_CompareAndSwapPointers_p32( void * volatile * ppvDestination, - void * pvExchange, - void * pvComparand ) -{ -uint32_t ulReturnValue = ATOMIC_COMPARE_AND_SWAP_FAILURE; - - ATOMIC_ENTER_CRITICAL(); - { - if( *ppvDestination == pvComparand ) - { - *ppvDestination = pvExchange; - ulReturnValue = ATOMIC_COMPARE_AND_SWAP_SUCCESS; - } - } - ATOMIC_EXIT_CRITICAL(); - - return ulReturnValue; -} - - -/*----------------------------- Arithmetic ------------------------------*/ - -/** - * Atomic add - * - * @brief Atomically adds count to the value of the specified pointer points to. - * - * @param[in,out] pulAddend Pointer to memory location from where value is to be - * loaded and written back to. - * @param[in] ulCount Value to be added to *pulAddend. - * - * @return previous *pulAddend value. - */ -static portFORCE_INLINE uint32_t Atomic_Add_u32( uint32_t volatile * pulAddend, - uint32_t ulCount ) -{ - uint32_t ulCurrent; - - ATOMIC_ENTER_CRITICAL(); - { - ulCurrent = *pulAddend; - *pulAddend += ulCount; - } - ATOMIC_EXIT_CRITICAL(); - - return ulCurrent; -} -/*-----------------------------------------------------------*/ - -/** - * Atomic subtract - * - * @brief Atomically subtracts count from the value of the specified pointer - * pointers to. - * - * @param[in,out] pulAddend Pointer to memory location from where value is to be - * loaded and written back to. - * @param[in] ulCount Value to be subtract from *pulAddend. - * - * @return previous *pulAddend value. - */ -static portFORCE_INLINE uint32_t Atomic_Subtract_u32( uint32_t volatile * pulAddend, - uint32_t ulCount ) -{ - uint32_t ulCurrent; - - ATOMIC_ENTER_CRITICAL(); - { - ulCurrent = *pulAddend; - *pulAddend -= ulCount; - } - ATOMIC_EXIT_CRITICAL(); - - return ulCurrent; -} -/*-----------------------------------------------------------*/ - -/** - * Atomic increment - * - * @brief Atomically increments the value of the specified pointer points to. - * - * @param[in,out] pulAddend Pointer to memory location from where value is to be - * loaded and written back to. - * - * @return *pulAddend value before increment. - */ -static portFORCE_INLINE uint32_t Atomic_Increment_u32( uint32_t volatile * pulAddend ) -{ -uint32_t ulCurrent; - - ATOMIC_ENTER_CRITICAL(); - { - ulCurrent = *pulAddend; - *pulAddend += 1; - } - ATOMIC_EXIT_CRITICAL(); - - return ulCurrent; -} -/*-----------------------------------------------------------*/ - -/** - * Atomic decrement - * - * @brief Atomically decrements the value of the specified pointer points to - * - * @param[in,out] pulAddend Pointer to memory location from where value is to be - * loaded and written back to. - * - * @return *pulAddend value before decrement. - */ -static portFORCE_INLINE uint32_t Atomic_Decrement_u32( uint32_t volatile * pulAddend ) -{ -uint32_t ulCurrent; - - ATOMIC_ENTER_CRITICAL(); - { - ulCurrent = *pulAddend; - *pulAddend -= 1; - } - ATOMIC_EXIT_CRITICAL(); - - return ulCurrent; -} - -/*----------------------------- Bitwise Logical ------------------------------*/ - -/** - * Atomic OR - * - * @brief Performs an atomic OR operation on the specified values. - * - * @param [in, out] pulDestination Pointer to memory location from where value is - * to be loaded and written back to. - * @param [in] ulValue Value to be ORed with *pulDestination. - * - * @return The original value of *pulDestination. - */ -static portFORCE_INLINE uint32_t Atomic_OR_u32( uint32_t volatile * pulDestination, - uint32_t ulValue ) -{ -uint32_t ulCurrent; - - ATOMIC_ENTER_CRITICAL(); - { - ulCurrent = *pulDestination; - *pulDestination |= ulValue; - } - ATOMIC_EXIT_CRITICAL(); - - return ulCurrent; -} -/*-----------------------------------------------------------*/ - -/** - * Atomic AND - * - * @brief Performs an atomic AND operation on the specified values. - * - * @param [in, out] pulDestination Pointer to memory location from where value is - * to be loaded and written back to. - * @param [in] ulValue Value to be ANDed with *pulDestination. - * - * @return The original value of *pulDestination. - */ -static portFORCE_INLINE uint32_t Atomic_AND_u32( uint32_t volatile * pulDestination, - uint32_t ulValue ) -{ -uint32_t ulCurrent; - - ATOMIC_ENTER_CRITICAL(); - { - ulCurrent = *pulDestination; - *pulDestination &= ulValue; - } - ATOMIC_EXIT_CRITICAL(); - - return ulCurrent; -} -/*-----------------------------------------------------------*/ - -/** - * Atomic NAND - * - * @brief Performs an atomic NAND operation on the specified values. - * - * @param [in, out] pulDestination Pointer to memory location from where value is - * to be loaded and written back to. - * @param [in] ulValue Value to be NANDed with *pulDestination. - * - * @return The original value of *pulDestination. - */ -static portFORCE_INLINE uint32_t Atomic_NAND_u32( uint32_t volatile * pulDestination, - uint32_t ulValue ) -{ -uint32_t ulCurrent; - - ATOMIC_ENTER_CRITICAL(); - { - ulCurrent = *pulDestination; - *pulDestination = ~( ulCurrent & ulValue ); - } - ATOMIC_EXIT_CRITICAL(); - - return ulCurrent; -} -/*-----------------------------------------------------------*/ - -/** - * Atomic XOR - * - * @brief Performs an atomic XOR operation on the specified values. - * - * @param [in, out] pulDestination Pointer to memory location from where value is - * to be loaded and written back to. - * @param [in] ulValue Value to be XORed with *pulDestination. - * - * @return The original value of *pulDestination. - */ -static portFORCE_INLINE uint32_t Atomic_XOR_u32( uint32_t volatile * pulDestination, - uint32_t ulValue ) -{ -uint32_t ulCurrent; - - ATOMIC_ENTER_CRITICAL(); - { - ulCurrent = *pulDestination; - *pulDestination ^= ulValue; - } - ATOMIC_EXIT_CRITICAL(); - - return ulCurrent; -} - -#ifdef __cplusplus -} -#endif - -#endif /* ATOMIC_H */ diff --git a/Middlewares/Third_Party/FreeRTOS/Source/include/croutine.h b/Middlewares/Third_Party/FreeRTOS/Source/include/croutine.h deleted file mode 100644 index 8d7069c..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/include/croutine.h +++ /dev/null @@ -1,720 +0,0 @@ -/* - * FreeRTOS Kernel V10.3.1 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - -#ifndef CO_ROUTINE_H -#define CO_ROUTINE_H - -#ifndef INC_FREERTOS_H - #error "include FreeRTOS.h must appear in source files before include croutine.h" -#endif - -#include "list.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* Used to hide the implementation of the co-routine control block. The -control block structure however has to be included in the header due to -the macro implementation of the co-routine functionality. */ -typedef void * CoRoutineHandle_t; - -/* Defines the prototype to which co-routine functions must conform. */ -typedef void (*crCOROUTINE_CODE)( CoRoutineHandle_t, UBaseType_t ); - -typedef struct corCoRoutineControlBlock -{ - crCOROUTINE_CODE pxCoRoutineFunction; - ListItem_t xGenericListItem; /*< List item used to place the CRCB in ready and blocked queues. */ - ListItem_t xEventListItem; /*< List item used to place the CRCB in event lists. */ - UBaseType_t uxPriority; /*< The priority of the co-routine in relation to other co-routines. */ - UBaseType_t uxIndex; /*< Used to distinguish between co-routines when multiple co-routines use the same co-routine function. */ - uint16_t uxState; /*< Used internally by the co-routine implementation. */ -} CRCB_t; /* Co-routine control block. Note must be identical in size down to uxPriority with TCB_t. */ - -/** - * croutine. h - *
- BaseType_t xCoRoutineCreate(
-                                 crCOROUTINE_CODE pxCoRoutineCode,
-                                 UBaseType_t uxPriority,
-                                 UBaseType_t uxIndex
-                               );
- * - * Create a new co-routine and add it to the list of co-routines that are - * ready to run. - * - * @param pxCoRoutineCode Pointer to the co-routine function. Co-routine - * functions require special syntax - see the co-routine section of the WEB - * documentation for more information. - * - * @param uxPriority The priority with respect to other co-routines at which - * the co-routine will run. - * - * @param uxIndex Used to distinguish between different co-routines that - * execute the same function. See the example below and the co-routine section - * of the WEB documentation for further information. - * - * @return pdPASS if the co-routine was successfully created and added to a ready - * list, otherwise an error code defined with ProjDefs.h. - * - * Example usage: -
- // Co-routine to be created.
- void vFlashCoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
- {
- // Variables in co-routines must be declared static if they must maintain value across a blocking call.
- // This may not be necessary for const variables.
- static const char cLedToFlash[ 2 ] = { 5, 6 };
- static const TickType_t uxFlashRates[ 2 ] = { 200, 400 };
-
-     // Must start every co-routine with a call to crSTART();
-     crSTART( xHandle );
-
-     for( ;; )
-     {
-         // This co-routine just delays for a fixed period, then toggles
-         // an LED.  Two co-routines are created using this function, so
-         // the uxIndex parameter is used to tell the co-routine which
-         // LED to flash and how int32_t to delay.  This assumes xQueue has
-         // already been created.
-         vParTestToggleLED( cLedToFlash[ uxIndex ] );
-         crDELAY( xHandle, uxFlashRates[ uxIndex ] );
-     }
-
-     // Must end every co-routine with a call to crEND();
-     crEND();
- }
-
- // Function that creates two co-routines.
- void vOtherFunction( void )
- {
- uint8_t ucParameterToPass;
- TaskHandle_t xHandle;
-
-     // Create two co-routines at priority 0.  The first is given index 0
-     // so (from the code above) toggles LED 5 every 200 ticks.  The second
-     // is given index 1 so toggles LED 6 every 400 ticks.
-     for( uxIndex = 0; uxIndex < 2; uxIndex++ )
-     {
-         xCoRoutineCreate( vFlashCoRoutine, 0, uxIndex );
-     }
- }
-   
- * \defgroup xCoRoutineCreate xCoRoutineCreate - * \ingroup Tasks - */ -BaseType_t xCoRoutineCreate( crCOROUTINE_CODE pxCoRoutineCode, UBaseType_t uxPriority, UBaseType_t uxIndex ); - - -/** - * croutine. h - *
- void vCoRoutineSchedule( void );
- * - * Run a co-routine. - * - * vCoRoutineSchedule() executes the highest priority co-routine that is able - * to run. The co-routine will execute until it either blocks, yields or is - * preempted by a task. Co-routines execute cooperatively so one - * co-routine cannot be preempted by another, but can be preempted by a task. - * - * If an application comprises of both tasks and co-routines then - * vCoRoutineSchedule should be called from the idle task (in an idle task - * hook). - * - * Example usage: -
- // This idle task hook will schedule a co-routine each time it is called.
- // The rest of the idle task will execute between co-routine calls.
- void vApplicationIdleHook( void )
- {
-	vCoRoutineSchedule();
- }
-
- // Alternatively, if you do not require any other part of the idle task to
- // execute, the idle task hook can call vCoRoutineSchedule() within an
- // infinite loop.
- void vApplicationIdleHook( void )
- {
-    for( ;; )
-    {
-        vCoRoutineSchedule();
-    }
- }
- 
- * \defgroup vCoRoutineSchedule vCoRoutineSchedule - * \ingroup Tasks - */ -void vCoRoutineSchedule( void ); - -/** - * croutine. h - *
- crSTART( CoRoutineHandle_t xHandle );
- * - * This macro MUST always be called at the start of a co-routine function. - * - * Example usage: -
- // Co-routine to be created.
- void vACoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
- {
- // Variables in co-routines must be declared static if they must maintain value across a blocking call.
- static int32_t ulAVariable;
-
-     // Must start every co-routine with a call to crSTART();
-     crSTART( xHandle );
-
-     for( ;; )
-     {
-          // Co-routine functionality goes here.
-     }
-
-     // Must end every co-routine with a call to crEND();
-     crEND();
- }
- * \defgroup crSTART crSTART - * \ingroup Tasks - */ -#define crSTART( pxCRCB ) switch( ( ( CRCB_t * )( pxCRCB ) )->uxState ) { case 0: - -/** - * croutine. h - *
- crEND();
- * - * This macro MUST always be called at the end of a co-routine function. - * - * Example usage: -
- // Co-routine to be created.
- void vACoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
- {
- // Variables in co-routines must be declared static if they must maintain value across a blocking call.
- static int32_t ulAVariable;
-
-     // Must start every co-routine with a call to crSTART();
-     crSTART( xHandle );
-
-     for( ;; )
-     {
-          // Co-routine functionality goes here.
-     }
-
-     // Must end every co-routine with a call to crEND();
-     crEND();
- }
- * \defgroup crSTART crSTART - * \ingroup Tasks - */ -#define crEND() } - -/* - * These macros are intended for internal use by the co-routine implementation - * only. The macros should not be used directly by application writers. - */ -#define crSET_STATE0( xHandle ) ( ( CRCB_t * )( xHandle ) )->uxState = (__LINE__ * 2); return; case (__LINE__ * 2): -#define crSET_STATE1( xHandle ) ( ( CRCB_t * )( xHandle ) )->uxState = ((__LINE__ * 2)+1); return; case ((__LINE__ * 2)+1): - -/** - * croutine. h - *
- crDELAY( CoRoutineHandle_t xHandle, TickType_t xTicksToDelay );
- * - * Delay a co-routine for a fixed period of time. - * - * crDELAY can only be called from the co-routine function itself - not - * from within a function called by the co-routine function. This is because - * co-routines do not maintain their own stack. - * - * @param xHandle The handle of the co-routine to delay. This is the xHandle - * parameter of the co-routine function. - * - * @param xTickToDelay The number of ticks that the co-routine should delay - * for. The actual amount of time this equates to is defined by - * configTICK_RATE_HZ (set in FreeRTOSConfig.h). The constant portTICK_PERIOD_MS - * can be used to convert ticks to milliseconds. - * - * Example usage: -
- // Co-routine to be created.
- void vACoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
- {
- // Variables in co-routines must be declared static if they must maintain value across a blocking call.
- // This may not be necessary for const variables.
- // We are to delay for 200ms.
- static const xTickType xDelayTime = 200 / portTICK_PERIOD_MS;
-
-     // Must start every co-routine with a call to crSTART();
-     crSTART( xHandle );
-
-     for( ;; )
-     {
-        // Delay for 200ms.
-        crDELAY( xHandle, xDelayTime );
-
-        // Do something here.
-     }
-
-     // Must end every co-routine with a call to crEND();
-     crEND();
- }
- * \defgroup crDELAY crDELAY - * \ingroup Tasks - */ -#define crDELAY( xHandle, xTicksToDelay ) \ - if( ( xTicksToDelay ) > 0 ) \ - { \ - vCoRoutineAddToDelayedList( ( xTicksToDelay ), NULL ); \ - } \ - crSET_STATE0( ( xHandle ) ); - -/** - *
- crQUEUE_SEND(
-                  CoRoutineHandle_t xHandle,
-                  QueueHandle_t pxQueue,
-                  void *pvItemToQueue,
-                  TickType_t xTicksToWait,
-                  BaseType_t *pxResult
-             )
- * - * The macro's crQUEUE_SEND() and crQUEUE_RECEIVE() are the co-routine - * equivalent to the xQueueSend() and xQueueReceive() functions used by tasks. - * - * crQUEUE_SEND and crQUEUE_RECEIVE can only be used from a co-routine whereas - * xQueueSend() and xQueueReceive() can only be used from tasks. - * - * crQUEUE_SEND can only be called from the co-routine function itself - not - * from within a function called by the co-routine function. This is because - * co-routines do not maintain their own stack. - * - * See the co-routine section of the WEB documentation for information on - * passing data between tasks and co-routines and between ISR's and - * co-routines. - * - * @param xHandle The handle of the calling co-routine. This is the xHandle - * parameter of the co-routine function. - * - * @param pxQueue The handle of the queue on which the data will be posted. - * The handle is obtained as the return value when the queue is created using - * the xQueueCreate() API function. - * - * @param pvItemToQueue A pointer to the data being posted onto the queue. - * The number of bytes of each queued item is specified when the queue is - * created. This number of bytes is copied from pvItemToQueue into the queue - * itself. - * - * @param xTickToDelay The number of ticks that the co-routine should block - * to wait for space to become available on the queue, should space not be - * available immediately. The actual amount of time this equates to is defined - * by configTICK_RATE_HZ (set in FreeRTOSConfig.h). The constant - * portTICK_PERIOD_MS can be used to convert ticks to milliseconds (see example - * below). - * - * @param pxResult The variable pointed to by pxResult will be set to pdPASS if - * data was successfully posted onto the queue, otherwise it will be set to an - * error defined within ProjDefs.h. - * - * Example usage: -
- // Co-routine function that blocks for a fixed period then posts a number onto
- // a queue.
- static void prvCoRoutineFlashTask( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
- {
- // Variables in co-routines must be declared static if they must maintain value across a blocking call.
- static BaseType_t xNumberToPost = 0;
- static BaseType_t xResult;
-
-    // Co-routines must begin with a call to crSTART().
-    crSTART( xHandle );
-
-    for( ;; )
-    {
-        // This assumes the queue has already been created.
-        crQUEUE_SEND( xHandle, xCoRoutineQueue, &xNumberToPost, NO_DELAY, &xResult );
-
-        if( xResult != pdPASS )
-        {
-            // The message was not posted!
-        }
-
-        // Increment the number to be posted onto the queue.
-        xNumberToPost++;
-
-        // Delay for 100 ticks.
-        crDELAY( xHandle, 100 );
-    }
-
-    // Co-routines must end with a call to crEND().
-    crEND();
- }
- * \defgroup crQUEUE_SEND crQUEUE_SEND - * \ingroup Tasks - */ -#define crQUEUE_SEND( xHandle, pxQueue, pvItemToQueue, xTicksToWait, pxResult ) \ -{ \ - *( pxResult ) = xQueueCRSend( ( pxQueue) , ( pvItemToQueue) , ( xTicksToWait ) ); \ - if( *( pxResult ) == errQUEUE_BLOCKED ) \ - { \ - crSET_STATE0( ( xHandle ) ); \ - *pxResult = xQueueCRSend( ( pxQueue ), ( pvItemToQueue ), 0 ); \ - } \ - if( *pxResult == errQUEUE_YIELD ) \ - { \ - crSET_STATE1( ( xHandle ) ); \ - *pxResult = pdPASS; \ - } \ -} - -/** - * croutine. h - *
-  crQUEUE_RECEIVE(
-                     CoRoutineHandle_t xHandle,
-                     QueueHandle_t pxQueue,
-                     void *pvBuffer,
-                     TickType_t xTicksToWait,
-                     BaseType_t *pxResult
-                 )
- * - * The macro's crQUEUE_SEND() and crQUEUE_RECEIVE() are the co-routine - * equivalent to the xQueueSend() and xQueueReceive() functions used by tasks. - * - * crQUEUE_SEND and crQUEUE_RECEIVE can only be used from a co-routine whereas - * xQueueSend() and xQueueReceive() can only be used from tasks. - * - * crQUEUE_RECEIVE can only be called from the co-routine function itself - not - * from within a function called by the co-routine function. This is because - * co-routines do not maintain their own stack. - * - * See the co-routine section of the WEB documentation for information on - * passing data between tasks and co-routines and between ISR's and - * co-routines. - * - * @param xHandle The handle of the calling co-routine. This is the xHandle - * parameter of the co-routine function. - * - * @param pxQueue The handle of the queue from which the data will be received. - * The handle is obtained as the return value when the queue is created using - * the xQueueCreate() API function. - * - * @param pvBuffer The buffer into which the received item is to be copied. - * The number of bytes of each queued item is specified when the queue is - * created. This number of bytes is copied into pvBuffer. - * - * @param xTickToDelay The number of ticks that the co-routine should block - * to wait for data to become available from the queue, should data not be - * available immediately. The actual amount of time this equates to is defined - * by configTICK_RATE_HZ (set in FreeRTOSConfig.h). The constant - * portTICK_PERIOD_MS can be used to convert ticks to milliseconds (see the - * crQUEUE_SEND example). - * - * @param pxResult The variable pointed to by pxResult will be set to pdPASS if - * data was successfully retrieved from the queue, otherwise it will be set to - * an error code as defined within ProjDefs.h. - * - * Example usage: -
- // A co-routine receives the number of an LED to flash from a queue.  It
- // blocks on the queue until the number is received.
- static void prvCoRoutineFlashWorkTask( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
- {
- // Variables in co-routines must be declared static if they must maintain value across a blocking call.
- static BaseType_t xResult;
- static UBaseType_t uxLEDToFlash;
-
-    // All co-routines must start with a call to crSTART().
-    crSTART( xHandle );
-
-    for( ;; )
-    {
-        // Wait for data to become available on the queue.
-        crQUEUE_RECEIVE( xHandle, xCoRoutineQueue, &uxLEDToFlash, portMAX_DELAY, &xResult );
-
-        if( xResult == pdPASS )
-        {
-            // We received the LED to flash - flash it!
-            vParTestToggleLED( uxLEDToFlash );
-        }
-    }
-
-    crEND();
- }
- * \defgroup crQUEUE_RECEIVE crQUEUE_RECEIVE - * \ingroup Tasks - */ -#define crQUEUE_RECEIVE( xHandle, pxQueue, pvBuffer, xTicksToWait, pxResult ) \ -{ \ - *( pxResult ) = xQueueCRReceive( ( pxQueue) , ( pvBuffer ), ( xTicksToWait ) ); \ - if( *( pxResult ) == errQUEUE_BLOCKED ) \ - { \ - crSET_STATE0( ( xHandle ) ); \ - *( pxResult ) = xQueueCRReceive( ( pxQueue) , ( pvBuffer ), 0 ); \ - } \ - if( *( pxResult ) == errQUEUE_YIELD ) \ - { \ - crSET_STATE1( ( xHandle ) ); \ - *( pxResult ) = pdPASS; \ - } \ -} - -/** - * croutine. h - *
-  crQUEUE_SEND_FROM_ISR(
-                            QueueHandle_t pxQueue,
-                            void *pvItemToQueue,
-                            BaseType_t xCoRoutinePreviouslyWoken
-                       )
- * - * The macro's crQUEUE_SEND_FROM_ISR() and crQUEUE_RECEIVE_FROM_ISR() are the - * co-routine equivalent to the xQueueSendFromISR() and xQueueReceiveFromISR() - * functions used by tasks. - * - * crQUEUE_SEND_FROM_ISR() and crQUEUE_RECEIVE_FROM_ISR() can only be used to - * pass data between a co-routine and and ISR, whereas xQueueSendFromISR() and - * xQueueReceiveFromISR() can only be used to pass data between a task and and - * ISR. - * - * crQUEUE_SEND_FROM_ISR can only be called from an ISR to send data to a queue - * that is being used from within a co-routine. - * - * See the co-routine section of the WEB documentation for information on - * passing data between tasks and co-routines and between ISR's and - * co-routines. - * - * @param xQueue The handle to the queue on which the item is to be posted. - * - * @param pvItemToQueue A pointer to the item that is to be placed on the - * queue. The size of the items the queue will hold was defined when the - * queue was created, so this many bytes will be copied from pvItemToQueue - * into the queue storage area. - * - * @param xCoRoutinePreviouslyWoken This is included so an ISR can post onto - * the same queue multiple times from a single interrupt. The first call - * should always pass in pdFALSE. Subsequent calls should pass in - * the value returned from the previous call. - * - * @return pdTRUE if a co-routine was woken by posting onto the queue. This is - * used by the ISR to determine if a context switch may be required following - * the ISR. - * - * Example usage: -
- // A co-routine that blocks on a queue waiting for characters to be received.
- static void vReceivingCoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
- {
- char cRxedChar;
- BaseType_t xResult;
-
-     // All co-routines must start with a call to crSTART().
-     crSTART( xHandle );
-
-     for( ;; )
-     {
-         // Wait for data to become available on the queue.  This assumes the
-         // queue xCommsRxQueue has already been created!
-         crQUEUE_RECEIVE( xHandle, xCommsRxQueue, &uxLEDToFlash, portMAX_DELAY, &xResult );
-
-         // Was a character received?
-         if( xResult == pdPASS )
-         {
-             // Process the character here.
-         }
-     }
-
-     // All co-routines must end with a call to crEND().
-     crEND();
- }
-
- // An ISR that uses a queue to send characters received on a serial port to
- // a co-routine.
- void vUART_ISR( void )
- {
- char cRxedChar;
- BaseType_t xCRWokenByPost = pdFALSE;
-
-     // We loop around reading characters until there are none left in the UART.
-     while( UART_RX_REG_NOT_EMPTY() )
-     {
-         // Obtain the character from the UART.
-         cRxedChar = UART_RX_REG;
-
-         // Post the character onto a queue.  xCRWokenByPost will be pdFALSE
-         // the first time around the loop.  If the post causes a co-routine
-         // to be woken (unblocked) then xCRWokenByPost will be set to pdTRUE.
-         // In this manner we can ensure that if more than one co-routine is
-         // blocked on the queue only one is woken by this ISR no matter how
-         // many characters are posted to the queue.
-         xCRWokenByPost = crQUEUE_SEND_FROM_ISR( xCommsRxQueue, &cRxedChar, xCRWokenByPost );
-     }
- }
- * \defgroup crQUEUE_SEND_FROM_ISR crQUEUE_SEND_FROM_ISR - * \ingroup Tasks - */ -#define crQUEUE_SEND_FROM_ISR( pxQueue, pvItemToQueue, xCoRoutinePreviouslyWoken ) xQueueCRSendFromISR( ( pxQueue ), ( pvItemToQueue ), ( xCoRoutinePreviouslyWoken ) ) - - -/** - * croutine. h - *
-  crQUEUE_SEND_FROM_ISR(
-                            QueueHandle_t pxQueue,
-                            void *pvBuffer,
-                            BaseType_t * pxCoRoutineWoken
-                       )
- * - * The macro's crQUEUE_SEND_FROM_ISR() and crQUEUE_RECEIVE_FROM_ISR() are the - * co-routine equivalent to the xQueueSendFromISR() and xQueueReceiveFromISR() - * functions used by tasks. - * - * crQUEUE_SEND_FROM_ISR() and crQUEUE_RECEIVE_FROM_ISR() can only be used to - * pass data between a co-routine and and ISR, whereas xQueueSendFromISR() and - * xQueueReceiveFromISR() can only be used to pass data between a task and and - * ISR. - * - * crQUEUE_RECEIVE_FROM_ISR can only be called from an ISR to receive data - * from a queue that is being used from within a co-routine (a co-routine - * posted to the queue). - * - * See the co-routine section of the WEB documentation for information on - * passing data between tasks and co-routines and between ISR's and - * co-routines. - * - * @param xQueue The handle to the queue on which the item is to be posted. - * - * @param pvBuffer A pointer to a buffer into which the received item will be - * placed. The size of the items the queue will hold was defined when the - * queue was created, so this many bytes will be copied from the queue into - * pvBuffer. - * - * @param pxCoRoutineWoken A co-routine may be blocked waiting for space to become - * available on the queue. If crQUEUE_RECEIVE_FROM_ISR causes such a - * co-routine to unblock *pxCoRoutineWoken will get set to pdTRUE, otherwise - * *pxCoRoutineWoken will remain unchanged. - * - * @return pdTRUE an item was successfully received from the queue, otherwise - * pdFALSE. - * - * Example usage: -
- // A co-routine that posts a character to a queue then blocks for a fixed
- // period.  The character is incremented each time.
- static void vSendingCoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
- {
- // cChar holds its value while this co-routine is blocked and must therefore
- // be declared static.
- static char cCharToTx = 'a';
- BaseType_t xResult;
-
-     // All co-routines must start with a call to crSTART().
-     crSTART( xHandle );
-
-     for( ;; )
-     {
-         // Send the next character to the queue.
-         crQUEUE_SEND( xHandle, xCoRoutineQueue, &cCharToTx, NO_DELAY, &xResult );
-
-         if( xResult == pdPASS )
-         {
-             // The character was successfully posted to the queue.
-         }
-		 else
-		 {
-			// Could not post the character to the queue.
-		 }
-
-         // Enable the UART Tx interrupt to cause an interrupt in this
-		 // hypothetical UART.  The interrupt will obtain the character
-		 // from the queue and send it.
-		 ENABLE_RX_INTERRUPT();
-
-		 // Increment to the next character then block for a fixed period.
-		 // cCharToTx will maintain its value across the delay as it is
-		 // declared static.
-		 cCharToTx++;
-		 if( cCharToTx > 'x' )
-		 {
-			cCharToTx = 'a';
-		 }
-		 crDELAY( 100 );
-     }
-
-     // All co-routines must end with a call to crEND().
-     crEND();
- }
-
- // An ISR that uses a queue to receive characters to send on a UART.
- void vUART_ISR( void )
- {
- char cCharToTx;
- BaseType_t xCRWokenByPost = pdFALSE;
-
-     while( UART_TX_REG_EMPTY() )
-     {
-         // Are there any characters in the queue waiting to be sent?
-		 // xCRWokenByPost will automatically be set to pdTRUE if a co-routine
-		 // is woken by the post - ensuring that only a single co-routine is
-		 // woken no matter how many times we go around this loop.
-         if( crQUEUE_RECEIVE_FROM_ISR( pxQueue, &cCharToTx, &xCRWokenByPost ) )
-		 {
-			 SEND_CHARACTER( cCharToTx );
-		 }
-     }
- }
- * \defgroup crQUEUE_RECEIVE_FROM_ISR crQUEUE_RECEIVE_FROM_ISR - * \ingroup Tasks - */ -#define crQUEUE_RECEIVE_FROM_ISR( pxQueue, pvBuffer, pxCoRoutineWoken ) xQueueCRReceiveFromISR( ( pxQueue ), ( pvBuffer ), ( pxCoRoutineWoken ) ) - -/* - * This function is intended for internal use by the co-routine macros only. - * The macro nature of the co-routine implementation requires that the - * prototype appears here. The function should not be used by application - * writers. - * - * Removes the current co-routine from its ready list and places it in the - * appropriate delayed list. - */ -void vCoRoutineAddToDelayedList( TickType_t xTicksToDelay, List_t *pxEventList ); - -/* - * This function is intended for internal use by the queue implementation only. - * The function should not be used by application writers. - * - * Removes the highest priority co-routine from the event list and places it in - * the pending ready list. - */ -BaseType_t xCoRoutineRemoveFromEventList( const List_t *pxEventList ); - -#ifdef __cplusplus -} -#endif - -#endif /* CO_ROUTINE_H */ diff --git a/Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h b/Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h deleted file mode 100644 index 21657b9..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h +++ /dev/null @@ -1,279 +0,0 @@ -/* - * FreeRTOS Kernel V10.3.1 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - -#ifndef DEPRECATED_DEFINITIONS_H -#define DEPRECATED_DEFINITIONS_H - - -/* Each FreeRTOS port has a unique portmacro.h header file. Originally a -pre-processor definition was used to ensure the pre-processor found the correct -portmacro.h file for the port being used. That scheme was deprecated in favour -of setting the compiler's include path such that it found the correct -portmacro.h file - removing the need for the constant and allowing the -portmacro.h file to be located anywhere in relation to the port being used. The -definitions below remain in the code for backward compatibility only. New -projects should not use them. */ - -#ifdef OPEN_WATCOM_INDUSTRIAL_PC_PORT - #include "..\..\Source\portable\owatcom\16bitdos\pc\portmacro.h" - typedef void ( __interrupt __far *pxISR )(); -#endif - -#ifdef OPEN_WATCOM_FLASH_LITE_186_PORT - #include "..\..\Source\portable\owatcom\16bitdos\flsh186\portmacro.h" - typedef void ( __interrupt __far *pxISR )(); -#endif - -#ifdef GCC_MEGA_AVR - #include "../portable/GCC/ATMega323/portmacro.h" -#endif - -#ifdef IAR_MEGA_AVR - #include "../portable/IAR/ATMega323/portmacro.h" -#endif - -#ifdef MPLAB_PIC24_PORT - #include "../../Source/portable/MPLAB/PIC24_dsPIC/portmacro.h" -#endif - -#ifdef MPLAB_DSPIC_PORT - #include "../../Source/portable/MPLAB/PIC24_dsPIC/portmacro.h" -#endif - -#ifdef MPLAB_PIC18F_PORT - #include "../../Source/portable/MPLAB/PIC18F/portmacro.h" -#endif - -#ifdef MPLAB_PIC32MX_PORT - #include "../../Source/portable/MPLAB/PIC32MX/portmacro.h" -#endif - -#ifdef _FEDPICC - #include "libFreeRTOS/Include/portmacro.h" -#endif - -#ifdef SDCC_CYGNAL - #include "../../Source/portable/SDCC/Cygnal/portmacro.h" -#endif - -#ifdef GCC_ARM7 - #include "../../Source/portable/GCC/ARM7_LPC2000/portmacro.h" -#endif - -#ifdef GCC_ARM7_ECLIPSE - #include "portmacro.h" -#endif - -#ifdef ROWLEY_LPC23xx - #include "../../Source/portable/GCC/ARM7_LPC23xx/portmacro.h" -#endif - -#ifdef IAR_MSP430 - #include "..\..\Source\portable\IAR\MSP430\portmacro.h" -#endif - -#ifdef GCC_MSP430 - #include "../../Source/portable/GCC/MSP430F449/portmacro.h" -#endif - -#ifdef ROWLEY_MSP430 - #include "../../Source/portable/Rowley/MSP430F449/portmacro.h" -#endif - -#ifdef ARM7_LPC21xx_KEIL_RVDS - #include "..\..\Source\portable\RVDS\ARM7_LPC21xx\portmacro.h" -#endif - -#ifdef SAM7_GCC - #include "../../Source/portable/GCC/ARM7_AT91SAM7S/portmacro.h" -#endif - -#ifdef SAM7_IAR - #include "..\..\Source\portable\IAR\AtmelSAM7S64\portmacro.h" -#endif - -#ifdef SAM9XE_IAR - #include "..\..\Source\portable\IAR\AtmelSAM9XE\portmacro.h" -#endif - -#ifdef LPC2000_IAR - #include "..\..\Source\portable\IAR\LPC2000\portmacro.h" -#endif - -#ifdef STR71X_IAR - #include "..\..\Source\portable\IAR\STR71x\portmacro.h" -#endif - -#ifdef STR75X_IAR - #include "..\..\Source\portable\IAR\STR75x\portmacro.h" -#endif - -#ifdef STR75X_GCC - #include "..\..\Source\portable\GCC\STR75x\portmacro.h" -#endif - -#ifdef STR91X_IAR - #include "..\..\Source\portable\IAR\STR91x\portmacro.h" -#endif - -#ifdef GCC_H8S - #include "../../Source/portable/GCC/H8S2329/portmacro.h" -#endif - -#ifdef GCC_AT91FR40008 - #include "../../Source/portable/GCC/ARM7_AT91FR40008/portmacro.h" -#endif - -#ifdef RVDS_ARMCM3_LM3S102 - #include "../../Source/portable/RVDS/ARM_CM3/portmacro.h" -#endif - -#ifdef GCC_ARMCM3_LM3S102 - #include "../../Source/portable/GCC/ARM_CM3/portmacro.h" -#endif - -#ifdef GCC_ARMCM3 - #include "../../Source/portable/GCC/ARM_CM3/portmacro.h" -#endif - -#ifdef IAR_ARM_CM3 - #include "../../Source/portable/IAR/ARM_CM3/portmacro.h" -#endif - -#ifdef IAR_ARMCM3_LM - #include "../../Source/portable/IAR/ARM_CM3/portmacro.h" -#endif - -#ifdef HCS12_CODE_WARRIOR - #include "../../Source/portable/CodeWarrior/HCS12/portmacro.h" -#endif - -#ifdef MICROBLAZE_GCC - #include "../../Source/portable/GCC/MicroBlaze/portmacro.h" -#endif - -#ifdef TERN_EE - #include "..\..\Source\portable\Paradigm\Tern_EE\small\portmacro.h" -#endif - -#ifdef GCC_HCS12 - #include "../../Source/portable/GCC/HCS12/portmacro.h" -#endif - -#ifdef GCC_MCF5235 - #include "../../Source/portable/GCC/MCF5235/portmacro.h" -#endif - -#ifdef COLDFIRE_V2_GCC - #include "../../../Source/portable/GCC/ColdFire_V2/portmacro.h" -#endif - -#ifdef COLDFIRE_V2_CODEWARRIOR - #include "../../Source/portable/CodeWarrior/ColdFire_V2/portmacro.h" -#endif - -#ifdef GCC_PPC405 - #include "../../Source/portable/GCC/PPC405_Xilinx/portmacro.h" -#endif - -#ifdef GCC_PPC440 - #include "../../Source/portable/GCC/PPC440_Xilinx/portmacro.h" -#endif - -#ifdef _16FX_SOFTUNE - #include "..\..\Source\portable\Softune\MB96340\portmacro.h" -#endif - -#ifdef BCC_INDUSTRIAL_PC_PORT - /* A short file name has to be used in place of the normal - FreeRTOSConfig.h when using the Borland compiler. */ - #include "frconfig.h" - #include "..\portable\BCC\16BitDOS\PC\prtmacro.h" - typedef void ( __interrupt __far *pxISR )(); -#endif - -#ifdef BCC_FLASH_LITE_186_PORT - /* A short file name has to be used in place of the normal - FreeRTOSConfig.h when using the Borland compiler. */ - #include "frconfig.h" - #include "..\portable\BCC\16BitDOS\flsh186\prtmacro.h" - typedef void ( __interrupt __far *pxISR )(); -#endif - -#ifdef __GNUC__ - #ifdef __AVR32_AVR32A__ - #include "portmacro.h" - #endif -#endif - -#ifdef __ICCAVR32__ - #ifdef __CORE__ - #if __CORE__ == __AVR32A__ - #include "portmacro.h" - #endif - #endif -#endif - -#ifdef __91467D - #include "portmacro.h" -#endif - -#ifdef __96340 - #include "portmacro.h" -#endif - - -#ifdef __IAR_V850ES_Fx3__ - #include "../../Source/portable/IAR/V850ES/portmacro.h" -#endif - -#ifdef __IAR_V850ES_Jx3__ - #include "../../Source/portable/IAR/V850ES/portmacro.h" -#endif - -#ifdef __IAR_V850ES_Jx3_L__ - #include "../../Source/portable/IAR/V850ES/portmacro.h" -#endif - -#ifdef __IAR_V850ES_Jx2__ - #include "../../Source/portable/IAR/V850ES/portmacro.h" -#endif - -#ifdef __IAR_V850ES_Hx2__ - #include "../../Source/portable/IAR/V850ES/portmacro.h" -#endif - -#ifdef __IAR_78K0R_Kx3__ - #include "../../Source/portable/IAR/78K0R/portmacro.h" -#endif - -#ifdef __IAR_78K0R_Kx3L__ - #include "../../Source/portable/IAR/78K0R/portmacro.h" -#endif - -#endif /* DEPRECATED_DEFINITIONS_H */ - diff --git a/Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h b/Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h deleted file mode 100644 index a87fdf3..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h +++ /dev/null @@ -1,757 +0,0 @@ -/* - * FreeRTOS Kernel V10.3.1 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - -#ifndef EVENT_GROUPS_H -#define EVENT_GROUPS_H - -#ifndef INC_FREERTOS_H - #error "include FreeRTOS.h" must appear in source files before "include event_groups.h" -#endif - -/* FreeRTOS includes. */ -#include "timers.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * An event group is a collection of bits to which an application can assign a - * meaning. For example, an application may create an event group to convey - * the status of various CAN bus related events in which bit 0 might mean "A CAN - * message has been received and is ready for processing", bit 1 might mean "The - * application has queued a message that is ready for sending onto the CAN - * network", and bit 2 might mean "It is time to send a SYNC message onto the - * CAN network" etc. A task can then test the bit values to see which events - * are active, and optionally enter the Blocked state to wait for a specified - * bit or a group of specified bits to be active. To continue the CAN bus - * example, a CAN controlling task can enter the Blocked state (and therefore - * not consume any processing time) until either bit 0, bit 1 or bit 2 are - * active, at which time the bit that was actually active would inform the task - * which action it had to take (process a received message, send a message, or - * send a SYNC). - * - * The event groups implementation contains intelligence to avoid race - * conditions that would otherwise occur were an application to use a simple - * variable for the same purpose. This is particularly important with respect - * to when a bit within an event group is to be cleared, and when bits have to - * be set and then tested atomically - as is the case where event groups are - * used to create a synchronisation point between multiple tasks (a - * 'rendezvous'). - * - * \defgroup EventGroup - */ - - - -/** - * event_groups.h - * - * Type by which event groups are referenced. For example, a call to - * xEventGroupCreate() returns an EventGroupHandle_t variable that can then - * be used as a parameter to other event group functions. - * - * \defgroup EventGroupHandle_t EventGroupHandle_t - * \ingroup EventGroup - */ -struct EventGroupDef_t; -typedef struct EventGroupDef_t * EventGroupHandle_t; - -/* - * The type that holds event bits always matches TickType_t - therefore the - * number of bits it holds is set by configUSE_16_BIT_TICKS (16 bits if set to 1, - * 32 bits if set to 0. - * - * \defgroup EventBits_t EventBits_t - * \ingroup EventGroup - */ -typedef TickType_t EventBits_t; - -/** - * event_groups.h - *
- EventGroupHandle_t xEventGroupCreate( void );
- 
- * - * Create a new event group. - * - * Internally, within the FreeRTOS implementation, event groups use a [small] - * block of memory, in which the event group's structure is stored. If an event - * groups is created using xEventGropuCreate() then the required memory is - * automatically dynamically allocated inside the xEventGroupCreate() function. - * (see http://www.freertos.org/a00111.html). If an event group is created - * using xEventGropuCreateStatic() then the application writer must instead - * provide the memory that will get used by the event group. - * xEventGroupCreateStatic() therefore allows an event group to be created - * without using any dynamic memory allocation. - * - * Although event groups are not related to ticks, for internal implementation - * reasons the number of bits available for use in an event group is dependent - * on the configUSE_16_BIT_TICKS setting in FreeRTOSConfig.h. If - * configUSE_16_BIT_TICKS is 1 then each event group contains 8 usable bits (bit - * 0 to bit 7). If configUSE_16_BIT_TICKS is set to 0 then each event group has - * 24 usable bits (bit 0 to bit 23). The EventBits_t type is used to store - * event bits within an event group. - * - * @return If the event group was created then a handle to the event group is - * returned. If there was insufficient FreeRTOS heap available to create the - * event group then NULL is returned. See http://www.freertos.org/a00111.html - * - * Example usage: -
-	// Declare a variable to hold the created event group.
-	EventGroupHandle_t xCreatedEventGroup;
-
-	// Attempt to create the event group.
-	xCreatedEventGroup = xEventGroupCreate();
-
-	// Was the event group created successfully?
-	if( xCreatedEventGroup == NULL )
-	{
-		// The event group was not created because there was insufficient
-		// FreeRTOS heap available.
-	}
-	else
-	{
-		// The event group was created.
-	}
-   
- * \defgroup xEventGroupCreate xEventGroupCreate - * \ingroup EventGroup - */ -#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) - EventGroupHandle_t xEventGroupCreate( void ) PRIVILEGED_FUNCTION; -#endif - -/** - * event_groups.h - *
- EventGroupHandle_t xEventGroupCreateStatic( EventGroupHandle_t * pxEventGroupBuffer );
- 
- * - * Create a new event group. - * - * Internally, within the FreeRTOS implementation, event groups use a [small] - * block of memory, in which the event group's structure is stored. If an event - * groups is created using xEventGropuCreate() then the required memory is - * automatically dynamically allocated inside the xEventGroupCreate() function. - * (see http://www.freertos.org/a00111.html). If an event group is created - * using xEventGropuCreateStatic() then the application writer must instead - * provide the memory that will get used by the event group. - * xEventGroupCreateStatic() therefore allows an event group to be created - * without using any dynamic memory allocation. - * - * Although event groups are not related to ticks, for internal implementation - * reasons the number of bits available for use in an event group is dependent - * on the configUSE_16_BIT_TICKS setting in FreeRTOSConfig.h. If - * configUSE_16_BIT_TICKS is 1 then each event group contains 8 usable bits (bit - * 0 to bit 7). If configUSE_16_BIT_TICKS is set to 0 then each event group has - * 24 usable bits (bit 0 to bit 23). The EventBits_t type is used to store - * event bits within an event group. - * - * @param pxEventGroupBuffer pxEventGroupBuffer must point to a variable of type - * StaticEventGroup_t, which will be then be used to hold the event group's data - * structures, removing the need for the memory to be allocated dynamically. - * - * @return If the event group was created then a handle to the event group is - * returned. If pxEventGroupBuffer was NULL then NULL is returned. - * - * Example usage: -
-	// StaticEventGroup_t is a publicly accessible structure that has the same
-	// size and alignment requirements as the real event group structure.  It is
-	// provided as a mechanism for applications to know the size of the event
-	// group (which is dependent on the architecture and configuration file
-	// settings) without breaking the strict data hiding policy by exposing the
-	// real event group internals.  This StaticEventGroup_t variable is passed
-	// into the xSemaphoreCreateEventGroupStatic() function and is used to store
-	// the event group's data structures
-	StaticEventGroup_t xEventGroupBuffer;
-
-	// Create the event group without dynamically allocating any memory.
-	xEventGroup = xEventGroupCreateStatic( &xEventGroupBuffer );
-   
- */ -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) - EventGroupHandle_t xEventGroupCreateStatic( StaticEventGroup_t *pxEventGroupBuffer ) PRIVILEGED_FUNCTION; -#endif - -/** - * event_groups.h - *
-	EventBits_t xEventGroupWaitBits( 	EventGroupHandle_t xEventGroup,
-										const EventBits_t uxBitsToWaitFor,
-										const BaseType_t xClearOnExit,
-										const BaseType_t xWaitForAllBits,
-										const TickType_t xTicksToWait );
- 
- * - * [Potentially] block to wait for one or more bits to be set within a - * previously created event group. - * - * This function cannot be called from an interrupt. - * - * @param xEventGroup The event group in which the bits are being tested. The - * event group must have previously been created using a call to - * xEventGroupCreate(). - * - * @param uxBitsToWaitFor A bitwise value that indicates the bit or bits to test - * inside the event group. For example, to wait for bit 0 and/or bit 2 set - * uxBitsToWaitFor to 0x05. To wait for bits 0 and/or bit 1 and/or bit 2 set - * uxBitsToWaitFor to 0x07. Etc. - * - * @param xClearOnExit If xClearOnExit is set to pdTRUE then any bits within - * uxBitsToWaitFor that are set within the event group will be cleared before - * xEventGroupWaitBits() returns if the wait condition was met (if the function - * returns for a reason other than a timeout). If xClearOnExit is set to - * pdFALSE then the bits set in the event group are not altered when the call to - * xEventGroupWaitBits() returns. - * - * @param xWaitForAllBits If xWaitForAllBits is set to pdTRUE then - * xEventGroupWaitBits() will return when either all the bits in uxBitsToWaitFor - * are set or the specified block time expires. If xWaitForAllBits is set to - * pdFALSE then xEventGroupWaitBits() will return when any one of the bits set - * in uxBitsToWaitFor is set or the specified block time expires. The block - * time is specified by the xTicksToWait parameter. - * - * @param xTicksToWait The maximum amount of time (specified in 'ticks') to wait - * for one/all (depending on the xWaitForAllBits value) of the bits specified by - * uxBitsToWaitFor to become set. - * - * @return The value of the event group at the time either the bits being waited - * for became set, or the block time expired. Test the return value to know - * which bits were set. If xEventGroupWaitBits() returned because its timeout - * expired then not all the bits being waited for will be set. If - * xEventGroupWaitBits() returned because the bits it was waiting for were set - * then the returned value is the event group value before any bits were - * automatically cleared in the case that xClearOnExit parameter was set to - * pdTRUE. - * - * Example usage: -
-   #define BIT_0	( 1 << 0 )
-   #define BIT_4	( 1 << 4 )
-
-   void aFunction( EventGroupHandle_t xEventGroup )
-   {
-   EventBits_t uxBits;
-   const TickType_t xTicksToWait = 100 / portTICK_PERIOD_MS;
-
-		// Wait a maximum of 100ms for either bit 0 or bit 4 to be set within
-		// the event group.  Clear the bits before exiting.
-		uxBits = xEventGroupWaitBits(
-					xEventGroup,	// The event group being tested.
-					BIT_0 | BIT_4,	// The bits within the event group to wait for.
-					pdTRUE,			// BIT_0 and BIT_4 should be cleared before returning.
-					pdFALSE,		// Don't wait for both bits, either bit will do.
-					xTicksToWait );	// Wait a maximum of 100ms for either bit to be set.
-
-		if( ( uxBits & ( BIT_0 | BIT_4 ) ) == ( BIT_0 | BIT_4 ) )
-		{
-			// xEventGroupWaitBits() returned because both bits were set.
-		}
-		else if( ( uxBits & BIT_0 ) != 0 )
-		{
-			// xEventGroupWaitBits() returned because just BIT_0 was set.
-		}
-		else if( ( uxBits & BIT_4 ) != 0 )
-		{
-			// xEventGroupWaitBits() returned because just BIT_4 was set.
-		}
-		else
-		{
-			// xEventGroupWaitBits() returned because xTicksToWait ticks passed
-			// without either BIT_0 or BIT_4 becoming set.
-		}
-   }
-   
- * \defgroup xEventGroupWaitBits xEventGroupWaitBits - * \ingroup EventGroup - */ -EventBits_t xEventGroupWaitBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToWaitFor, const BaseType_t xClearOnExit, const BaseType_t xWaitForAllBits, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; - -/** - * event_groups.h - *
-	EventBits_t xEventGroupClearBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToClear );
- 
- * - * Clear bits within an event group. This function cannot be called from an - * interrupt. - * - * @param xEventGroup The event group in which the bits are to be cleared. - * - * @param uxBitsToClear A bitwise value that indicates the bit or bits to clear - * in the event group. For example, to clear bit 3 only, set uxBitsToClear to - * 0x08. To clear bit 3 and bit 0 set uxBitsToClear to 0x09. - * - * @return The value of the event group before the specified bits were cleared. - * - * Example usage: -
-   #define BIT_0	( 1 << 0 )
-   #define BIT_4	( 1 << 4 )
-
-   void aFunction( EventGroupHandle_t xEventGroup )
-   {
-   EventBits_t uxBits;
-
-		// Clear bit 0 and bit 4 in xEventGroup.
-		uxBits = xEventGroupClearBits(
-								xEventGroup,	// The event group being updated.
-								BIT_0 | BIT_4 );// The bits being cleared.
-
-		if( ( uxBits & ( BIT_0 | BIT_4 ) ) == ( BIT_0 | BIT_4 ) )
-		{
-			// Both bit 0 and bit 4 were set before xEventGroupClearBits() was
-			// called.  Both will now be clear (not set).
-		}
-		else if( ( uxBits & BIT_0 ) != 0 )
-		{
-			// Bit 0 was set before xEventGroupClearBits() was called.  It will
-			// now be clear.
-		}
-		else if( ( uxBits & BIT_4 ) != 0 )
-		{
-			// Bit 4 was set before xEventGroupClearBits() was called.  It will
-			// now be clear.
-		}
-		else
-		{
-			// Neither bit 0 nor bit 4 were set in the first place.
-		}
-   }
-   
- * \defgroup xEventGroupClearBits xEventGroupClearBits - * \ingroup EventGroup - */ -EventBits_t xEventGroupClearBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToClear ) PRIVILEGED_FUNCTION; - -/** - * event_groups.h - *
-	BaseType_t xEventGroupClearBitsFromISR( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet );
- 
- * - * A version of xEventGroupClearBits() that can be called from an interrupt. - * - * Setting bits in an event group is not a deterministic operation because there - * are an unknown number of tasks that may be waiting for the bit or bits being - * set. FreeRTOS does not allow nondeterministic operations to be performed - * while interrupts are disabled, so protects event groups that are accessed - * from tasks by suspending the scheduler rather than disabling interrupts. As - * a result event groups cannot be accessed directly from an interrupt service - * routine. Therefore xEventGroupClearBitsFromISR() sends a message to the - * timer task to have the clear operation performed in the context of the timer - * task. - * - * @param xEventGroup The event group in which the bits are to be cleared. - * - * @param uxBitsToClear A bitwise value that indicates the bit or bits to clear. - * For example, to clear bit 3 only, set uxBitsToClear to 0x08. To clear bit 3 - * and bit 0 set uxBitsToClear to 0x09. - * - * @return If the request to execute the function was posted successfully then - * pdPASS is returned, otherwise pdFALSE is returned. pdFALSE will be returned - * if the timer service queue was full. - * - * Example usage: -
-   #define BIT_0	( 1 << 0 )
-   #define BIT_4	( 1 << 4 )
-
-   // An event group which it is assumed has already been created by a call to
-   // xEventGroupCreate().
-   EventGroupHandle_t xEventGroup;
-
-   void anInterruptHandler( void )
-   {
-		// Clear bit 0 and bit 4 in xEventGroup.
-		xResult = xEventGroupClearBitsFromISR(
-							xEventGroup,	 // The event group being updated.
-							BIT_0 | BIT_4 ); // The bits being set.
-
-		if( xResult == pdPASS )
-		{
-			// The message was posted successfully.
-		}
-  }
-   
- * \defgroup xEventGroupClearBitsFromISR xEventGroupClearBitsFromISR - * \ingroup EventGroup - */ -#if( configUSE_TRACE_FACILITY == 1 ) - BaseType_t xEventGroupClearBitsFromISR( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToClear ) PRIVILEGED_FUNCTION; -#else - #define xEventGroupClearBitsFromISR( xEventGroup, uxBitsToClear ) xTimerPendFunctionCallFromISR( vEventGroupClearBitsCallback, ( void * ) xEventGroup, ( uint32_t ) uxBitsToClear, NULL ) -#endif - -/** - * event_groups.h - *
-	EventBits_t xEventGroupSetBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet );
- 
- * - * Set bits within an event group. - * This function cannot be called from an interrupt. xEventGroupSetBitsFromISR() - * is a version that can be called from an interrupt. - * - * Setting bits in an event group will automatically unblock tasks that are - * blocked waiting for the bits. - * - * @param xEventGroup The event group in which the bits are to be set. - * - * @param uxBitsToSet A bitwise value that indicates the bit or bits to set. - * For example, to set bit 3 only, set uxBitsToSet to 0x08. To set bit 3 - * and bit 0 set uxBitsToSet to 0x09. - * - * @return The value of the event group at the time the call to - * xEventGroupSetBits() returns. There are two reasons why the returned value - * might have the bits specified by the uxBitsToSet parameter cleared. First, - * if setting a bit results in a task that was waiting for the bit leaving the - * blocked state then it is possible the bit will be cleared automatically - * (see the xClearBitOnExit parameter of xEventGroupWaitBits()). Second, any - * unblocked (or otherwise Ready state) task that has a priority above that of - * the task that called xEventGroupSetBits() will execute and may change the - * event group value before the call to xEventGroupSetBits() returns. - * - * Example usage: -
-   #define BIT_0	( 1 << 0 )
-   #define BIT_4	( 1 << 4 )
-
-   void aFunction( EventGroupHandle_t xEventGroup )
-   {
-   EventBits_t uxBits;
-
-		// Set bit 0 and bit 4 in xEventGroup.
-		uxBits = xEventGroupSetBits(
-							xEventGroup,	// The event group being updated.
-							BIT_0 | BIT_4 );// The bits being set.
-
-		if( ( uxBits & ( BIT_0 | BIT_4 ) ) == ( BIT_0 | BIT_4 ) )
-		{
-			// Both bit 0 and bit 4 remained set when the function returned.
-		}
-		else if( ( uxBits & BIT_0 ) != 0 )
-		{
-			// Bit 0 remained set when the function returned, but bit 4 was
-			// cleared.  It might be that bit 4 was cleared automatically as a
-			// task that was waiting for bit 4 was removed from the Blocked
-			// state.
-		}
-		else if( ( uxBits & BIT_4 ) != 0 )
-		{
-			// Bit 4 remained set when the function returned, but bit 0 was
-			// cleared.  It might be that bit 0 was cleared automatically as a
-			// task that was waiting for bit 0 was removed from the Blocked
-			// state.
-		}
-		else
-		{
-			// Neither bit 0 nor bit 4 remained set.  It might be that a task
-			// was waiting for both of the bits to be set, and the bits were
-			// cleared as the task left the Blocked state.
-		}
-   }
-   
- * \defgroup xEventGroupSetBits xEventGroupSetBits - * \ingroup EventGroup - */ -EventBits_t xEventGroupSetBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet ) PRIVILEGED_FUNCTION; - -/** - * event_groups.h - *
-	BaseType_t xEventGroupSetBitsFromISR( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet, BaseType_t *pxHigherPriorityTaskWoken );
- 
- * - * A version of xEventGroupSetBits() that can be called from an interrupt. - * - * Setting bits in an event group is not a deterministic operation because there - * are an unknown number of tasks that may be waiting for the bit or bits being - * set. FreeRTOS does not allow nondeterministic operations to be performed in - * interrupts or from critical sections. Therefore xEventGroupSetBitsFromISR() - * sends a message to the timer task to have the set operation performed in the - * context of the timer task - where a scheduler lock is used in place of a - * critical section. - * - * @param xEventGroup The event group in which the bits are to be set. - * - * @param uxBitsToSet A bitwise value that indicates the bit or bits to set. - * For example, to set bit 3 only, set uxBitsToSet to 0x08. To set bit 3 - * and bit 0 set uxBitsToSet to 0x09. - * - * @param pxHigherPriorityTaskWoken As mentioned above, calling this function - * will result in a message being sent to the timer daemon task. If the - * priority of the timer daemon task is higher than the priority of the - * currently running task (the task the interrupt interrupted) then - * *pxHigherPriorityTaskWoken will be set to pdTRUE by - * xEventGroupSetBitsFromISR(), indicating that a context switch should be - * requested before the interrupt exits. For that reason - * *pxHigherPriorityTaskWoken must be initialised to pdFALSE. See the - * example code below. - * - * @return If the request to execute the function was posted successfully then - * pdPASS is returned, otherwise pdFALSE is returned. pdFALSE will be returned - * if the timer service queue was full. - * - * Example usage: -
-   #define BIT_0	( 1 << 0 )
-   #define BIT_4	( 1 << 4 )
-
-   // An event group which it is assumed has already been created by a call to
-   // xEventGroupCreate().
-   EventGroupHandle_t xEventGroup;
-
-   void anInterruptHandler( void )
-   {
-   BaseType_t xHigherPriorityTaskWoken, xResult;
-
-		// xHigherPriorityTaskWoken must be initialised to pdFALSE.
-		xHigherPriorityTaskWoken = pdFALSE;
-
-		// Set bit 0 and bit 4 in xEventGroup.
-		xResult = xEventGroupSetBitsFromISR(
-							xEventGroup,	// The event group being updated.
-							BIT_0 | BIT_4   // The bits being set.
-							&xHigherPriorityTaskWoken );
-
-		// Was the message posted successfully?
-		if( xResult == pdPASS )
-		{
-			// If xHigherPriorityTaskWoken is now set to pdTRUE then a context
-			// switch should be requested.  The macro used is port specific and
-			// will be either portYIELD_FROM_ISR() or portEND_SWITCHING_ISR() -
-			// refer to the documentation page for the port being used.
-			portYIELD_FROM_ISR( xHigherPriorityTaskWoken );
-		}
-  }
-   
- * \defgroup xEventGroupSetBitsFromISR xEventGroupSetBitsFromISR - * \ingroup EventGroup - */ -#if( configUSE_TRACE_FACILITY == 1 ) - BaseType_t xEventGroupSetBitsFromISR( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet, BaseType_t *pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION; -#else - #define xEventGroupSetBitsFromISR( xEventGroup, uxBitsToSet, pxHigherPriorityTaskWoken ) xTimerPendFunctionCallFromISR( vEventGroupSetBitsCallback, ( void * ) xEventGroup, ( uint32_t ) uxBitsToSet, pxHigherPriorityTaskWoken ) -#endif - -/** - * event_groups.h - *
-	EventBits_t xEventGroupSync(	EventGroupHandle_t xEventGroup,
-									const EventBits_t uxBitsToSet,
-									const EventBits_t uxBitsToWaitFor,
-									TickType_t xTicksToWait );
- 
- * - * Atomically set bits within an event group, then wait for a combination of - * bits to be set within the same event group. This functionality is typically - * used to synchronise multiple tasks, where each task has to wait for the other - * tasks to reach a synchronisation point before proceeding. - * - * This function cannot be used from an interrupt. - * - * The function will return before its block time expires if the bits specified - * by the uxBitsToWait parameter are set, or become set within that time. In - * this case all the bits specified by uxBitsToWait will be automatically - * cleared before the function returns. - * - * @param xEventGroup The event group in which the bits are being tested. The - * event group must have previously been created using a call to - * xEventGroupCreate(). - * - * @param uxBitsToSet The bits to set in the event group before determining - * if, and possibly waiting for, all the bits specified by the uxBitsToWait - * parameter are set. - * - * @param uxBitsToWaitFor A bitwise value that indicates the bit or bits to test - * inside the event group. For example, to wait for bit 0 and bit 2 set - * uxBitsToWaitFor to 0x05. To wait for bits 0 and bit 1 and bit 2 set - * uxBitsToWaitFor to 0x07. Etc. - * - * @param xTicksToWait The maximum amount of time (specified in 'ticks') to wait - * for all of the bits specified by uxBitsToWaitFor to become set. - * - * @return The value of the event group at the time either the bits being waited - * for became set, or the block time expired. Test the return value to know - * which bits were set. If xEventGroupSync() returned because its timeout - * expired then not all the bits being waited for will be set. If - * xEventGroupSync() returned because all the bits it was waiting for were - * set then the returned value is the event group value before any bits were - * automatically cleared. - * - * Example usage: -
- // Bits used by the three tasks.
- #define TASK_0_BIT		( 1 << 0 )
- #define TASK_1_BIT		( 1 << 1 )
- #define TASK_2_BIT		( 1 << 2 )
-
- #define ALL_SYNC_BITS ( TASK_0_BIT | TASK_1_BIT | TASK_2_BIT )
-
- // Use an event group to synchronise three tasks.  It is assumed this event
- // group has already been created elsewhere.
- EventGroupHandle_t xEventBits;
-
- void vTask0( void *pvParameters )
- {
- EventBits_t uxReturn;
- TickType_t xTicksToWait = 100 / portTICK_PERIOD_MS;
-
-	 for( ;; )
-	 {
-		// Perform task functionality here.
-
-		// Set bit 0 in the event flag to note this task has reached the
-		// sync point.  The other two tasks will set the other two bits defined
-		// by ALL_SYNC_BITS.  All three tasks have reached the synchronisation
-		// point when all the ALL_SYNC_BITS are set.  Wait a maximum of 100ms
-		// for this to happen.
-		uxReturn = xEventGroupSync( xEventBits, TASK_0_BIT, ALL_SYNC_BITS, xTicksToWait );
-
-		if( ( uxReturn & ALL_SYNC_BITS ) == ALL_SYNC_BITS )
-		{
-			// All three tasks reached the synchronisation point before the call
-			// to xEventGroupSync() timed out.
-		}
-	}
- }
-
- void vTask1( void *pvParameters )
- {
-	 for( ;; )
-	 {
-		// Perform task functionality here.
-
-		// Set bit 1 in the event flag to note this task has reached the
-		// synchronisation point.  The other two tasks will set the other two
-		// bits defined by ALL_SYNC_BITS.  All three tasks have reached the
-		// synchronisation point when all the ALL_SYNC_BITS are set.  Wait
-		// indefinitely for this to happen.
-		xEventGroupSync( xEventBits, TASK_1_BIT, ALL_SYNC_BITS, portMAX_DELAY );
-
-		// xEventGroupSync() was called with an indefinite block time, so
-		// this task will only reach here if the syncrhonisation was made by all
-		// three tasks, so there is no need to test the return value.
-	 }
- }
-
- void vTask2( void *pvParameters )
- {
-	 for( ;; )
-	 {
-		// Perform task functionality here.
-
-		// Set bit 2 in the event flag to note this task has reached the
-		// synchronisation point.  The other two tasks will set the other two
-		// bits defined by ALL_SYNC_BITS.  All three tasks have reached the
-		// synchronisation point when all the ALL_SYNC_BITS are set.  Wait
-		// indefinitely for this to happen.
-		xEventGroupSync( xEventBits, TASK_2_BIT, ALL_SYNC_BITS, portMAX_DELAY );
-
-		// xEventGroupSync() was called with an indefinite block time, so
-		// this task will only reach here if the syncrhonisation was made by all
-		// three tasks, so there is no need to test the return value.
-	}
- }
-
- 
- * \defgroup xEventGroupSync xEventGroupSync - * \ingroup EventGroup - */ -EventBits_t xEventGroupSync( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet, const EventBits_t uxBitsToWaitFor, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; - - -/** - * event_groups.h - *
-	EventBits_t xEventGroupGetBits( EventGroupHandle_t xEventGroup );
- 
- * - * Returns the current value of the bits in an event group. This function - * cannot be used from an interrupt. - * - * @param xEventGroup The event group being queried. - * - * @return The event group bits at the time xEventGroupGetBits() was called. - * - * \defgroup xEventGroupGetBits xEventGroupGetBits - * \ingroup EventGroup - */ -#define xEventGroupGetBits( xEventGroup ) xEventGroupClearBits( xEventGroup, 0 ) - -/** - * event_groups.h - *
-	EventBits_t xEventGroupGetBitsFromISR( EventGroupHandle_t xEventGroup );
- 
- * - * A version of xEventGroupGetBits() that can be called from an ISR. - * - * @param xEventGroup The event group being queried. - * - * @return The event group bits at the time xEventGroupGetBitsFromISR() was called. - * - * \defgroup xEventGroupGetBitsFromISR xEventGroupGetBitsFromISR - * \ingroup EventGroup - */ -EventBits_t xEventGroupGetBitsFromISR( EventGroupHandle_t xEventGroup ) PRIVILEGED_FUNCTION; - -/** - * event_groups.h - *
-	void xEventGroupDelete( EventGroupHandle_t xEventGroup );
- 
- * - * Delete an event group that was previously created by a call to - * xEventGroupCreate(). Tasks that are blocked on the event group will be - * unblocked and obtain 0 as the event group's value. - * - * @param xEventGroup The event group being deleted. - */ -void vEventGroupDelete( EventGroupHandle_t xEventGroup ) PRIVILEGED_FUNCTION; - -/* For internal use only. */ -void vEventGroupSetBitsCallback( void *pvEventGroup, const uint32_t ulBitsToSet ) PRIVILEGED_FUNCTION; -void vEventGroupClearBitsCallback( void *pvEventGroup, const uint32_t ulBitsToClear ) PRIVILEGED_FUNCTION; - - -#if (configUSE_TRACE_FACILITY == 1) - UBaseType_t uxEventGroupGetNumber( void* xEventGroup ) PRIVILEGED_FUNCTION; - void vEventGroupSetNumber( void* xEventGroup, UBaseType_t uxEventGroupNumber ) PRIVILEGED_FUNCTION; -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* EVENT_GROUPS_H */ - - diff --git a/Middlewares/Third_Party/FreeRTOS/Source/include/list.h b/Middlewares/Third_Party/FreeRTOS/Source/include/list.h deleted file mode 100644 index a3e3024..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/include/list.h +++ /dev/null @@ -1,412 +0,0 @@ -/* - * FreeRTOS Kernel V10.3.1 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - -/* - * This is the list implementation used by the scheduler. While it is tailored - * heavily for the schedulers needs, it is also available for use by - * application code. - * - * list_ts can only store pointers to list_item_ts. Each ListItem_t contains a - * numeric value (xItemValue). Most of the time the lists are sorted in - * descending item value order. - * - * Lists are created already containing one list item. The value of this - * item is the maximum possible that can be stored, it is therefore always at - * the end of the list and acts as a marker. The list member pxHead always - * points to this marker - even though it is at the tail of the list. This - * is because the tail contains a wrap back pointer to the true head of - * the list. - * - * In addition to it's value, each list item contains a pointer to the next - * item in the list (pxNext), a pointer to the list it is in (pxContainer) - * and a pointer to back to the object that contains it. These later two - * pointers are included for efficiency of list manipulation. There is - * effectively a two way link between the object containing the list item and - * the list item itself. - * - * - * \page ListIntroduction List Implementation - * \ingroup FreeRTOSIntro - */ - -#ifndef INC_FREERTOS_H - #error FreeRTOS.h must be included before list.h -#endif - -#ifndef LIST_H -#define LIST_H - -/* - * The list structure members are modified from within interrupts, and therefore - * by rights should be declared volatile. However, they are only modified in a - * functionally atomic way (within critical sections of with the scheduler - * suspended) and are either passed by reference into a function or indexed via - * a volatile variable. Therefore, in all use cases tested so far, the volatile - * qualifier can be omitted in order to provide a moderate performance - * improvement without adversely affecting functional behaviour. The assembly - * instructions generated by the IAR, ARM and GCC compilers when the respective - * compiler's options were set for maximum optimisation has been inspected and - * deemed to be as intended. That said, as compiler technology advances, and - * especially if aggressive cross module optimisation is used (a use case that - * has not been exercised to any great extend) then it is feasible that the - * volatile qualifier will be needed for correct optimisation. It is expected - * that a compiler removing essential code because, without the volatile - * qualifier on the list structure members and with aggressive cross module - * optimisation, the compiler deemed the code unnecessary will result in - * complete and obvious failure of the scheduler. If this is ever experienced - * then the volatile qualifier can be inserted in the relevant places within the - * list structures by simply defining configLIST_VOLATILE to volatile in - * FreeRTOSConfig.h (as per the example at the bottom of this comment block). - * If configLIST_VOLATILE is not defined then the preprocessor directives below - * will simply #define configLIST_VOLATILE away completely. - * - * To use volatile list structure members then add the following line to - * FreeRTOSConfig.h (without the quotes): - * "#define configLIST_VOLATILE volatile" - */ -#ifndef configLIST_VOLATILE - #define configLIST_VOLATILE -#endif /* configSUPPORT_CROSS_MODULE_OPTIMISATION */ - -#ifdef __cplusplus -extern "C" { -#endif - -/* Macros that can be used to place known values within the list structures, -then check that the known values do not get corrupted during the execution of -the application. These may catch the list data structures being overwritten in -memory. They will not catch data errors caused by incorrect configuration or -use of FreeRTOS.*/ -#if( configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES == 0 ) - /* Define the macros to do nothing. */ - #define listFIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE - #define listSECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE - #define listFIRST_LIST_INTEGRITY_CHECK_VALUE - #define listSECOND_LIST_INTEGRITY_CHECK_VALUE - #define listSET_FIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem ) - #define listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem ) - #define listSET_LIST_INTEGRITY_CHECK_1_VALUE( pxList ) - #define listSET_LIST_INTEGRITY_CHECK_2_VALUE( pxList ) - #define listTEST_LIST_ITEM_INTEGRITY( pxItem ) - #define listTEST_LIST_INTEGRITY( pxList ) -#else - /* Define macros that add new members into the list structures. */ - #define listFIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE TickType_t xListItemIntegrityValue1; - #define listSECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE TickType_t xListItemIntegrityValue2; - #define listFIRST_LIST_INTEGRITY_CHECK_VALUE TickType_t xListIntegrityValue1; - #define listSECOND_LIST_INTEGRITY_CHECK_VALUE TickType_t xListIntegrityValue2; - - /* Define macros that set the new structure members to known values. */ - #define listSET_FIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem ) ( pxItem )->xListItemIntegrityValue1 = pdINTEGRITY_CHECK_VALUE - #define listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem ) ( pxItem )->xListItemIntegrityValue2 = pdINTEGRITY_CHECK_VALUE - #define listSET_LIST_INTEGRITY_CHECK_1_VALUE( pxList ) ( pxList )->xListIntegrityValue1 = pdINTEGRITY_CHECK_VALUE - #define listSET_LIST_INTEGRITY_CHECK_2_VALUE( pxList ) ( pxList )->xListIntegrityValue2 = pdINTEGRITY_CHECK_VALUE - - /* Define macros that will assert if one of the structure members does not - contain its expected value. */ - #define listTEST_LIST_ITEM_INTEGRITY( pxItem ) configASSERT( ( ( pxItem )->xListItemIntegrityValue1 == pdINTEGRITY_CHECK_VALUE ) && ( ( pxItem )->xListItemIntegrityValue2 == pdINTEGRITY_CHECK_VALUE ) ) - #define listTEST_LIST_INTEGRITY( pxList ) configASSERT( ( ( pxList )->xListIntegrityValue1 == pdINTEGRITY_CHECK_VALUE ) && ( ( pxList )->xListIntegrityValue2 == pdINTEGRITY_CHECK_VALUE ) ) -#endif /* configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES */ - - -/* - * Definition of the only type of object that a list can contain. - */ -struct xLIST; -struct xLIST_ITEM -{ - listFIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE /*< Set to a known value if configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */ - configLIST_VOLATILE TickType_t xItemValue; /*< The value being listed. In most cases this is used to sort the list in descending order. */ - struct xLIST_ITEM * configLIST_VOLATILE pxNext; /*< Pointer to the next ListItem_t in the list. */ - struct xLIST_ITEM * configLIST_VOLATILE pxPrevious; /*< Pointer to the previous ListItem_t in the list. */ - void * pvOwner; /*< Pointer to the object (normally a TCB) that contains the list item. There is therefore a two way link between the object containing the list item and the list item itself. */ - struct xLIST * configLIST_VOLATILE pxContainer; /*< Pointer to the list in which this list item is placed (if any). */ - listSECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE /*< Set to a known value if configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */ -}; -typedef struct xLIST_ITEM ListItem_t; /* For some reason lint wants this as two separate definitions. */ - -struct xMINI_LIST_ITEM -{ - listFIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE /*< Set to a known value if configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */ - configLIST_VOLATILE TickType_t xItemValue; - struct xLIST_ITEM * configLIST_VOLATILE pxNext; - struct xLIST_ITEM * configLIST_VOLATILE pxPrevious; -}; -typedef struct xMINI_LIST_ITEM MiniListItem_t; - -/* - * Definition of the type of queue used by the scheduler. - */ -typedef struct xLIST -{ - listFIRST_LIST_INTEGRITY_CHECK_VALUE /*< Set to a known value if configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */ - volatile UBaseType_t uxNumberOfItems; - ListItem_t * configLIST_VOLATILE pxIndex; /*< Used to walk through the list. Points to the last item returned by a call to listGET_OWNER_OF_NEXT_ENTRY (). */ - MiniListItem_t xListEnd; /*< List item that contains the maximum possible item value meaning it is always at the end of the list and is therefore used as a marker. */ - listSECOND_LIST_INTEGRITY_CHECK_VALUE /*< Set to a known value if configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */ -} List_t; - -/* - * Access macro to set the owner of a list item. The owner of a list item - * is the object (usually a TCB) that contains the list item. - * - * \page listSET_LIST_ITEM_OWNER listSET_LIST_ITEM_OWNER - * \ingroup LinkedList - */ -#define listSET_LIST_ITEM_OWNER( pxListItem, pxOwner ) ( ( pxListItem )->pvOwner = ( void * ) ( pxOwner ) ) - -/* - * Access macro to get the owner of a list item. The owner of a list item - * is the object (usually a TCB) that contains the list item. - * - * \page listGET_LIST_ITEM_OWNER listSET_LIST_ITEM_OWNER - * \ingroup LinkedList - */ -#define listGET_LIST_ITEM_OWNER( pxListItem ) ( ( pxListItem )->pvOwner ) - -/* - * Access macro to set the value of the list item. In most cases the value is - * used to sort the list in descending order. - * - * \page listSET_LIST_ITEM_VALUE listSET_LIST_ITEM_VALUE - * \ingroup LinkedList - */ -#define listSET_LIST_ITEM_VALUE( pxListItem, xValue ) ( ( pxListItem )->xItemValue = ( xValue ) ) - -/* - * Access macro to retrieve the value of the list item. The value can - * represent anything - for example the priority of a task, or the time at - * which a task should be unblocked. - * - * \page listGET_LIST_ITEM_VALUE listGET_LIST_ITEM_VALUE - * \ingroup LinkedList - */ -#define listGET_LIST_ITEM_VALUE( pxListItem ) ( ( pxListItem )->xItemValue ) - -/* - * Access macro to retrieve the value of the list item at the head of a given - * list. - * - * \page listGET_LIST_ITEM_VALUE listGET_LIST_ITEM_VALUE - * \ingroup LinkedList - */ -#define listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxList ) ( ( ( pxList )->xListEnd ).pxNext->xItemValue ) - -/* - * Return the list item at the head of the list. - * - * \page listGET_HEAD_ENTRY listGET_HEAD_ENTRY - * \ingroup LinkedList - */ -#define listGET_HEAD_ENTRY( pxList ) ( ( ( pxList )->xListEnd ).pxNext ) - -/* - * Return the next list item. - * - * \page listGET_NEXT listGET_NEXT - * \ingroup LinkedList - */ -#define listGET_NEXT( pxListItem ) ( ( pxListItem )->pxNext ) - -/* - * Return the list item that marks the end of the list - * - * \page listGET_END_MARKER listGET_END_MARKER - * \ingroup LinkedList - */ -#define listGET_END_MARKER( pxList ) ( ( ListItem_t const * ) ( &( ( pxList )->xListEnd ) ) ) - -/* - * Access macro to determine if a list contains any items. The macro will - * only have the value true if the list is empty. - * - * \page listLIST_IS_EMPTY listLIST_IS_EMPTY - * \ingroup LinkedList - */ -#define listLIST_IS_EMPTY( pxList ) ( ( ( pxList )->uxNumberOfItems == ( UBaseType_t ) 0 ) ? pdTRUE : pdFALSE ) - -/* - * Access macro to return the number of items in the list. - */ -#define listCURRENT_LIST_LENGTH( pxList ) ( ( pxList )->uxNumberOfItems ) - -/* - * Access function to obtain the owner of the next entry in a list. - * - * The list member pxIndex is used to walk through a list. Calling - * listGET_OWNER_OF_NEXT_ENTRY increments pxIndex to the next item in the list - * and returns that entry's pxOwner parameter. Using multiple calls to this - * function it is therefore possible to move through every item contained in - * a list. - * - * The pxOwner parameter of a list item is a pointer to the object that owns - * the list item. In the scheduler this is normally a task control block. - * The pxOwner parameter effectively creates a two way link between the list - * item and its owner. - * - * @param pxTCB pxTCB is set to the address of the owner of the next list item. - * @param pxList The list from which the next item owner is to be returned. - * - * \page listGET_OWNER_OF_NEXT_ENTRY listGET_OWNER_OF_NEXT_ENTRY - * \ingroup LinkedList - */ -#define listGET_OWNER_OF_NEXT_ENTRY( pxTCB, pxList ) \ -{ \ -List_t * const pxConstList = ( pxList ); \ - /* Increment the index to the next item and return the item, ensuring */ \ - /* we don't return the marker used at the end of the list. */ \ - ( pxConstList )->pxIndex = ( pxConstList )->pxIndex->pxNext; \ - if( ( void * ) ( pxConstList )->pxIndex == ( void * ) &( ( pxConstList )->xListEnd ) ) \ - { \ - ( pxConstList )->pxIndex = ( pxConstList )->pxIndex->pxNext; \ - } \ - ( pxTCB ) = ( pxConstList )->pxIndex->pvOwner; \ -} - - -/* - * Access function to obtain the owner of the first entry in a list. Lists - * are normally sorted in ascending item value order. - * - * This function returns the pxOwner member of the first item in the list. - * The pxOwner parameter of a list item is a pointer to the object that owns - * the list item. In the scheduler this is normally a task control block. - * The pxOwner parameter effectively creates a two way link between the list - * item and its owner. - * - * @param pxList The list from which the owner of the head item is to be - * returned. - * - * \page listGET_OWNER_OF_HEAD_ENTRY listGET_OWNER_OF_HEAD_ENTRY - * \ingroup LinkedList - */ -#define listGET_OWNER_OF_HEAD_ENTRY( pxList ) ( (&( ( pxList )->xListEnd ))->pxNext->pvOwner ) - -/* - * Check to see if a list item is within a list. The list item maintains a - * "container" pointer that points to the list it is in. All this macro does - * is check to see if the container and the list match. - * - * @param pxList The list we want to know if the list item is within. - * @param pxListItem The list item we want to know if is in the list. - * @return pdTRUE if the list item is in the list, otherwise pdFALSE. - */ -#define listIS_CONTAINED_WITHIN( pxList, pxListItem ) ( ( ( pxListItem )->pxContainer == ( pxList ) ) ? ( pdTRUE ) : ( pdFALSE ) ) - -/* - * Return the list a list item is contained within (referenced from). - * - * @param pxListItem The list item being queried. - * @return A pointer to the List_t object that references the pxListItem - */ -#define listLIST_ITEM_CONTAINER( pxListItem ) ( ( pxListItem )->pxContainer ) - -/* - * This provides a crude means of knowing if a list has been initialised, as - * pxList->xListEnd.xItemValue is set to portMAX_DELAY by the vListInitialise() - * function. - */ -#define listLIST_IS_INITIALISED( pxList ) ( ( pxList )->xListEnd.xItemValue == portMAX_DELAY ) - -/* - * Must be called before a list is used! This initialises all the members - * of the list structure and inserts the xListEnd item into the list as a - * marker to the back of the list. - * - * @param pxList Pointer to the list being initialised. - * - * \page vListInitialise vListInitialise - * \ingroup LinkedList - */ -void vListInitialise( List_t * const pxList ) PRIVILEGED_FUNCTION; - -/* - * Must be called before a list item is used. This sets the list container to - * null so the item does not think that it is already contained in a list. - * - * @param pxItem Pointer to the list item being initialised. - * - * \page vListInitialiseItem vListInitialiseItem - * \ingroup LinkedList - */ -void vListInitialiseItem( ListItem_t * const pxItem ) PRIVILEGED_FUNCTION; - -/* - * Insert a list item into a list. The item will be inserted into the list in - * a position determined by its item value (descending item value order). - * - * @param pxList The list into which the item is to be inserted. - * - * @param pxNewListItem The item that is to be placed in the list. - * - * \page vListInsert vListInsert - * \ingroup LinkedList - */ -void vListInsert( List_t * const pxList, ListItem_t * const pxNewListItem ) PRIVILEGED_FUNCTION; - -/* - * Insert a list item into a list. The item will be inserted in a position - * such that it will be the last item within the list returned by multiple - * calls to listGET_OWNER_OF_NEXT_ENTRY. - * - * The list member pxIndex is used to walk through a list. Calling - * listGET_OWNER_OF_NEXT_ENTRY increments pxIndex to the next item in the list. - * Placing an item in a list using vListInsertEnd effectively places the item - * in the list position pointed to by pxIndex. This means that every other - * item within the list will be returned by listGET_OWNER_OF_NEXT_ENTRY before - * the pxIndex parameter again points to the item being inserted. - * - * @param pxList The list into which the item is to be inserted. - * - * @param pxNewListItem The list item to be inserted into the list. - * - * \page vListInsertEnd vListInsertEnd - * \ingroup LinkedList - */ -void vListInsertEnd( List_t * const pxList, ListItem_t * const pxNewListItem ) PRIVILEGED_FUNCTION; - -/* - * Remove an item from a list. The list item has a pointer to the list that - * it is in, so only the list item need be passed into the function. - * - * @param uxListRemove The item to be removed. The item will remove itself from - * the list pointed to by it's pxContainer parameter. - * - * @return The number of items that remain in the list after the list item has - * been removed. - * - * \page uxListRemove uxListRemove - * \ingroup LinkedList - */ -UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove ) PRIVILEGED_FUNCTION; - -#ifdef __cplusplus -} -#endif - -#endif - diff --git a/Middlewares/Third_Party/FreeRTOS/Source/include/message_buffer.h b/Middlewares/Third_Party/FreeRTOS/Source/include/message_buffer.h deleted file mode 100644 index 0c3edb9..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/include/message_buffer.h +++ /dev/null @@ -1,803 +0,0 @@ -/* - * FreeRTOS Kernel V10.3.1 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - - -/* - * Message buffers build functionality on top of FreeRTOS stream buffers. - * Whereas stream buffers are used to send a continuous stream of data from one - * task or interrupt to another, message buffers are used to send variable - * length discrete messages from one task or interrupt to another. Their - * implementation is light weight, making them particularly suited for interrupt - * to task and core to core communication scenarios. - * - * ***NOTE***: Uniquely among FreeRTOS objects, the stream buffer - * implementation (so also the message buffer implementation, as message buffers - * are built on top of stream buffers) assumes there is only one task or - * interrupt that will write to the buffer (the writer), and only one task or - * interrupt that will read from the buffer (the reader). It is safe for the - * writer and reader to be different tasks or interrupts, but, unlike other - * FreeRTOS objects, it is not safe to have multiple different writers or - * multiple different readers. If there are to be multiple different writers - * then the application writer must place each call to a writing API function - * (such as xMessageBufferSend()) inside a critical section and set the send - * block time to 0. Likewise, if there are to be multiple different readers - * then the application writer must place each call to a reading API function - * (such as xMessageBufferRead()) inside a critical section and set the receive - * timeout to 0. - * - * Message buffers hold variable length messages. To enable that, when a - * message is written to the message buffer an additional sizeof( size_t ) bytes - * are also written to store the message's length (that happens internally, with - * the API function). sizeof( size_t ) is typically 4 bytes on a 32-bit - * architecture, so writing a 10 byte message to a message buffer on a 32-bit - * architecture will actually reduce the available space in the message buffer - * by 14 bytes (10 byte are used by the message, and 4 bytes to hold the length - * of the message). - */ - -#ifndef FREERTOS_MESSAGE_BUFFER_H -#define FREERTOS_MESSAGE_BUFFER_H - -#ifndef INC_FREERTOS_H - #error "include FreeRTOS.h must appear in source files before include message_buffer.h" -#endif - -/* Message buffers are built onto of stream buffers. */ -#include "stream_buffer.h" - -#if defined( __cplusplus ) -extern "C" { -#endif - -/** - * Type by which message buffers are referenced. For example, a call to - * xMessageBufferCreate() returns an MessageBufferHandle_t variable that can - * then be used as a parameter to xMessageBufferSend(), xMessageBufferReceive(), - * etc. - */ -typedef void * MessageBufferHandle_t; - -/*-----------------------------------------------------------*/ - -/** - * message_buffer.h - * -
-MessageBufferHandle_t xMessageBufferCreate( size_t xBufferSizeBytes );
-
- * - * Creates a new message buffer using dynamically allocated memory. See - * xMessageBufferCreateStatic() for a version that uses statically allocated - * memory (memory that is allocated at compile time). - * - * configSUPPORT_DYNAMIC_ALLOCATION must be set to 1 or left undefined in - * FreeRTOSConfig.h for xMessageBufferCreate() to be available. - * - * @param xBufferSizeBytes The total number of bytes (not messages) the message - * buffer will be able to hold at any one time. When a message is written to - * the message buffer an additional sizeof( size_t ) bytes are also written to - * store the message's length. sizeof( size_t ) is typically 4 bytes on a - * 32-bit architecture, so on most 32-bit architectures a 10 byte message will - * take up 14 bytes of message buffer space. - * - * @return If NULL is returned, then the message buffer cannot be created - * because there is insufficient heap memory available for FreeRTOS to allocate - * the message buffer data structures and storage area. A non-NULL value being - * returned indicates that the message buffer has been created successfully - - * the returned value should be stored as the handle to the created message - * buffer. - * - * Example use: -
-
-void vAFunction( void )
-{
-MessageBufferHandle_t xMessageBuffer;
-const size_t xMessageBufferSizeBytes = 100;
-
-    // Create a message buffer that can hold 100 bytes.  The memory used to hold
-    // both the message buffer structure and the messages themselves is allocated
-    // dynamically.  Each message added to the buffer consumes an additional 4
-    // bytes which are used to hold the lengh of the message.
-    xMessageBuffer = xMessageBufferCreate( xMessageBufferSizeBytes );
-
-    if( xMessageBuffer == NULL )
-    {
-        // There was not enough heap memory space available to create the
-        // message buffer.
-    }
-    else
-    {
-        // The message buffer was created successfully and can now be used.
-    }
-
-
- * \defgroup xMessageBufferCreate xMessageBufferCreate - * \ingroup MessageBufferManagement - */ -#define xMessageBufferCreate( xBufferSizeBytes ) ( MessageBufferHandle_t ) xStreamBufferGenericCreate( xBufferSizeBytes, ( size_t ) 0, pdTRUE ) - -/** - * message_buffer.h - * -
-MessageBufferHandle_t xMessageBufferCreateStatic( size_t xBufferSizeBytes,
-                                                  uint8_t *pucMessageBufferStorageArea,
-                                                  StaticMessageBuffer_t *pxStaticMessageBuffer );
-
- * Creates a new message buffer using statically allocated memory. See - * xMessageBufferCreate() for a version that uses dynamically allocated memory. - * - * @param xBufferSizeBytes The size, in bytes, of the buffer pointed to by the - * pucMessageBufferStorageArea parameter. When a message is written to the - * message buffer an additional sizeof( size_t ) bytes are also written to store - * the message's length. sizeof( size_t ) is typically 4 bytes on a 32-bit - * architecture, so on most 32-bit architecture a 10 byte message will take up - * 14 bytes of message buffer space. The maximum number of bytes that can be - * stored in the message buffer is actually (xBufferSizeBytes - 1). - * - * @param pucMessageBufferStorageArea Must point to a uint8_t array that is at - * least xBufferSizeBytes + 1 big. This is the array to which messages are - * copied when they are written to the message buffer. - * - * @param pxStaticMessageBuffer Must point to a variable of type - * StaticMessageBuffer_t, which will be used to hold the message buffer's data - * structure. - * - * @return If the message buffer is created successfully then a handle to the - * created message buffer is returned. If either pucMessageBufferStorageArea or - * pxStaticmessageBuffer are NULL then NULL is returned. - * - * Example use: -
-
-// Used to dimension the array used to hold the messages.  The available space
-// will actually be one less than this, so 999.
-#define STORAGE_SIZE_BYTES 1000
-
-// Defines the memory that will actually hold the messages within the message
-// buffer.
-static uint8_t ucStorageBuffer[ STORAGE_SIZE_BYTES ];
-
-// The variable used to hold the message buffer structure.
-StaticMessageBuffer_t xMessageBufferStruct;
-
-void MyFunction( void )
-{
-MessageBufferHandle_t xMessageBuffer;
-
-    xMessageBuffer = xMessageBufferCreateStatic( sizeof( ucBufferStorage ),
-                                                 ucBufferStorage,
-                                                 &xMessageBufferStruct );
-
-    // As neither the pucMessageBufferStorageArea or pxStaticMessageBuffer
-    // parameters were NULL, xMessageBuffer will not be NULL, and can be used to
-    // reference the created message buffer in other message buffer API calls.
-
-    // Other code that uses the message buffer can go here.
-}
-
-
- * \defgroup xMessageBufferCreateStatic xMessageBufferCreateStatic - * \ingroup MessageBufferManagement - */ -#define xMessageBufferCreateStatic( xBufferSizeBytes, pucMessageBufferStorageArea, pxStaticMessageBuffer ) ( MessageBufferHandle_t ) xStreamBufferGenericCreateStatic( xBufferSizeBytes, 0, pdTRUE, pucMessageBufferStorageArea, pxStaticMessageBuffer ) - -/** - * message_buffer.h - * -
-size_t xMessageBufferSend( MessageBufferHandle_t xMessageBuffer,
-                           const void *pvTxData,
-                           size_t xDataLengthBytes,
-                           TickType_t xTicksToWait );
-
- *
- * Sends a discrete message to the message buffer.  The message can be any
- * length that fits within the buffer's free space, and is copied into the
- * buffer.
- *
- * ***NOTE***:  Uniquely among FreeRTOS objects, the stream buffer
- * implementation (so also the message buffer implementation, as message buffers
- * are built on top of stream buffers) assumes there is only one task or
- * interrupt that will write to the buffer (the writer), and only one task or
- * interrupt that will read from the buffer (the reader).  It is safe for the
- * writer and reader to be different tasks or interrupts, but, unlike other
- * FreeRTOS objects, it is not safe to have multiple different writers or
- * multiple different readers.  If there are to be multiple different writers
- * then the application writer must place each call to a writing API function
- * (such as xMessageBufferSend()) inside a critical section and set the send
- * block time to 0.  Likewise, if there are to be multiple different readers
- * then the application writer must place each call to a reading API function
- * (such as xMessageBufferRead()) inside a critical section and set the receive
- * block time to 0.
- *
- * Use xMessageBufferSend() to write to a message buffer from a task.  Use
- * xMessageBufferSendFromISR() to write to a message buffer from an interrupt
- * service routine (ISR).
- *
- * @param xMessageBuffer The handle of the message buffer to which a message is
- * being sent.
- *
- * @param pvTxData A pointer to the message that is to be copied into the
- * message buffer.
- *
- * @param xDataLengthBytes The length of the message.  That is, the number of
- * bytes to copy from pvTxData into the message buffer.  When a message is
- * written to the message buffer an additional sizeof( size_t ) bytes are also
- * written to store the message's length.  sizeof( size_t ) is typically 4 bytes
- * on a 32-bit architecture, so on most 32-bit architecture setting
- * xDataLengthBytes to 20 will reduce the free space in the message buffer by 24
- * bytes (20 bytes of message data and 4 bytes to hold the message length).
- *
- * @param xTicksToWait The maximum amount of time the calling task should remain
- * in the Blocked state to wait for enough space to become available in the
- * message buffer, should the message buffer have insufficient space when
- * xMessageBufferSend() is called.  The calling task will never block if
- * xTicksToWait is zero.  The block time is specified in tick periods, so the
- * absolute time it represents is dependent on the tick frequency.  The macro
- * pdMS_TO_TICKS() can be used to convert a time specified in milliseconds into
- * a time specified in ticks.  Setting xTicksToWait to portMAX_DELAY will cause
- * the task to wait indefinitely (without timing out), provided
- * INCLUDE_vTaskSuspend is set to 1 in FreeRTOSConfig.h.  Tasks do not use any
- * CPU time when they are in the Blocked state.
- *
- * @return The number of bytes written to the message buffer.  If the call to
- * xMessageBufferSend() times out before there was enough space to write the
- * message into the message buffer then zero is returned.  If the call did not
- * time out then xDataLengthBytes is returned.
- *
- * Example use:
-
-void vAFunction( MessageBufferHandle_t xMessageBuffer )
-{
-size_t xBytesSent;
-uint8_t ucArrayToSend[] = { 0, 1, 2, 3 };
-char *pcStringToSend = "String to send";
-const TickType_t x100ms = pdMS_TO_TICKS( 100 );
-
-    // Send an array to the message buffer, blocking for a maximum of 100ms to
-    // wait for enough space to be available in the message buffer.
-    xBytesSent = xMessageBufferSend( xMessageBuffer, ( void * ) ucArrayToSend, sizeof( ucArrayToSend ), x100ms );
-
-    if( xBytesSent != sizeof( ucArrayToSend ) )
-    {
-        // The call to xMessageBufferSend() times out before there was enough
-        // space in the buffer for the data to be written.
-    }
-
-    // Send the string to the message buffer.  Return immediately if there is
-    // not enough space in the buffer.
-    xBytesSent = xMessageBufferSend( xMessageBuffer, ( void * ) pcStringToSend, strlen( pcStringToSend ), 0 );
-
-    if( xBytesSent != strlen( pcStringToSend ) )
-    {
-        // The string could not be added to the message buffer because there was
-        // not enough free space in the buffer.
-    }
-}
-
- * \defgroup xMessageBufferSend xMessageBufferSend - * \ingroup MessageBufferManagement - */ -#define xMessageBufferSend( xMessageBuffer, pvTxData, xDataLengthBytes, xTicksToWait ) xStreamBufferSend( ( StreamBufferHandle_t ) xMessageBuffer, pvTxData, xDataLengthBytes, xTicksToWait ) - -/** - * message_buffer.h - * -
-size_t xMessageBufferSendFromISR( MessageBufferHandle_t xMessageBuffer,
-                                  const void *pvTxData,
-                                  size_t xDataLengthBytes,
-                                  BaseType_t *pxHigherPriorityTaskWoken );
-
- *
- * Interrupt safe version of the API function that sends a discrete message to
- * the message buffer.  The message can be any length that fits within the
- * buffer's free space, and is copied into the buffer.
- *
- * ***NOTE***:  Uniquely among FreeRTOS objects, the stream buffer
- * implementation (so also the message buffer implementation, as message buffers
- * are built on top of stream buffers) assumes there is only one task or
- * interrupt that will write to the buffer (the writer), and only one task or
- * interrupt that will read from the buffer (the reader).  It is safe for the
- * writer and reader to be different tasks or interrupts, but, unlike other
- * FreeRTOS objects, it is not safe to have multiple different writers or
- * multiple different readers.  If there are to be multiple different writers
- * then the application writer must place each call to a writing API function
- * (such as xMessageBufferSend()) inside a critical section and set the send
- * block time to 0.  Likewise, if there are to be multiple different readers
- * then the application writer must place each call to a reading API function
- * (such as xMessageBufferRead()) inside a critical section and set the receive
- * block time to 0.
- *
- * Use xMessageBufferSend() to write to a message buffer from a task.  Use
- * xMessageBufferSendFromISR() to write to a message buffer from an interrupt
- * service routine (ISR).
- *
- * @param xMessageBuffer The handle of the message buffer to which a message is
- * being sent.
- *
- * @param pvTxData A pointer to the message that is to be copied into the
- * message buffer.
- *
- * @param xDataLengthBytes The length of the message.  That is, the number of
- * bytes to copy from pvTxData into the message buffer.  When a message is
- * written to the message buffer an additional sizeof( size_t ) bytes are also
- * written to store the message's length.  sizeof( size_t ) is typically 4 bytes
- * on a 32-bit architecture, so on most 32-bit architecture setting
- * xDataLengthBytes to 20 will reduce the free space in the message buffer by 24
- * bytes (20 bytes of message data and 4 bytes to hold the message length).
- *
- * @param pxHigherPriorityTaskWoken  It is possible that a message buffer will
- * have a task blocked on it waiting for data.  Calling
- * xMessageBufferSendFromISR() can make data available, and so cause a task that
- * was waiting for data to leave the Blocked state.  If calling
- * xMessageBufferSendFromISR() causes a task to leave the Blocked state, and the
- * unblocked task has a priority higher than the currently executing task (the
- * task that was interrupted), then, internally, xMessageBufferSendFromISR()
- * will set *pxHigherPriorityTaskWoken to pdTRUE.  If
- * xMessageBufferSendFromISR() sets this value to pdTRUE, then normally a
- * context switch should be performed before the interrupt is exited.  This will
- * ensure that the interrupt returns directly to the highest priority Ready
- * state task.  *pxHigherPriorityTaskWoken should be set to pdFALSE before it
- * is passed into the function.  See the code example below for an example.
- *
- * @return The number of bytes actually written to the message buffer.  If the
- * message buffer didn't have enough free space for the message to be stored
- * then 0 is returned, otherwise xDataLengthBytes is returned.
- *
- * Example use:
-
-// A message buffer that has already been created.
-MessageBufferHandle_t xMessageBuffer;
-
-void vAnInterruptServiceRoutine( void )
-{
-size_t xBytesSent;
-char *pcStringToSend = "String to send";
-BaseType_t xHigherPriorityTaskWoken = pdFALSE; // Initialised to pdFALSE.
-
-    // Attempt to send the string to the message buffer.
-    xBytesSent = xMessageBufferSendFromISR( xMessageBuffer,
-                                            ( void * ) pcStringToSend,
-                                            strlen( pcStringToSend ),
-                                            &xHigherPriorityTaskWoken );
-
-    if( xBytesSent != strlen( pcStringToSend ) )
-    {
-        // The string could not be added to the message buffer because there was
-        // not enough free space in the buffer.
-    }
-
-    // If xHigherPriorityTaskWoken was set to pdTRUE inside
-    // xMessageBufferSendFromISR() then a task that has a priority above the
-    // priority of the currently executing task was unblocked and a context
-    // switch should be performed to ensure the ISR returns to the unblocked
-    // task.  In most FreeRTOS ports this is done by simply passing
-    // xHigherPriorityTaskWoken into portYIELD_FROM_ISR(), which will test the
-    // variables value, and perform the context switch if necessary.  Check the
-    // documentation for the port in use for port specific instructions.
-    portYIELD_FROM_ISR( xHigherPriorityTaskWoken );
-}
-
- * \defgroup xMessageBufferSendFromISR xMessageBufferSendFromISR - * \ingroup MessageBufferManagement - */ -#define xMessageBufferSendFromISR( xMessageBuffer, pvTxData, xDataLengthBytes, pxHigherPriorityTaskWoken ) xStreamBufferSendFromISR( ( StreamBufferHandle_t ) xMessageBuffer, pvTxData, xDataLengthBytes, pxHigherPriorityTaskWoken ) - -/** - * message_buffer.h - * -
-size_t xMessageBufferReceive( MessageBufferHandle_t xMessageBuffer,
-                              void *pvRxData,
-                              size_t xBufferLengthBytes,
-                              TickType_t xTicksToWait );
-
- * - * Receives a discrete message from a message buffer. Messages can be of - * variable length and are copied out of the buffer. - * - * ***NOTE***: Uniquely among FreeRTOS objects, the stream buffer - * implementation (so also the message buffer implementation, as message buffers - * are built on top of stream buffers) assumes there is only one task or - * interrupt that will write to the buffer (the writer), and only one task or - * interrupt that will read from the buffer (the reader). It is safe for the - * writer and reader to be different tasks or interrupts, but, unlike other - * FreeRTOS objects, it is not safe to have multiple different writers or - * multiple different readers. If there are to be multiple different writers - * then the application writer must place each call to a writing API function - * (such as xMessageBufferSend()) inside a critical section and set the send - * block time to 0. Likewise, if there are to be multiple different readers - * then the application writer must place each call to a reading API function - * (such as xMessageBufferRead()) inside a critical section and set the receive - * block time to 0. - * - * Use xMessageBufferReceive() to read from a message buffer from a task. Use - * xMessageBufferReceiveFromISR() to read from a message buffer from an - * interrupt service routine (ISR). - * - * @param xMessageBuffer The handle of the message buffer from which a message - * is being received. - * - * @param pvRxData A pointer to the buffer into which the received message is - * to be copied. - * - * @param xBufferLengthBytes The length of the buffer pointed to by the pvRxData - * parameter. This sets the maximum length of the message that can be received. - * If xBufferLengthBytes is too small to hold the next message then the message - * will be left in the message buffer and 0 will be returned. - * - * @param xTicksToWait The maximum amount of time the task should remain in the - * Blocked state to wait for a message, should the message buffer be empty. - * xMessageBufferReceive() will return immediately if xTicksToWait is zero and - * the message buffer is empty. The block time is specified in tick periods, so - * the absolute time it represents is dependent on the tick frequency. The - * macro pdMS_TO_TICKS() can be used to convert a time specified in milliseconds - * into a time specified in ticks. Setting xTicksToWait to portMAX_DELAY will - * cause the task to wait indefinitely (without timing out), provided - * INCLUDE_vTaskSuspend is set to 1 in FreeRTOSConfig.h. Tasks do not use any - * CPU time when they are in the Blocked state. - * - * @return The length, in bytes, of the message read from the message buffer, if - * any. If xMessageBufferReceive() times out before a message became available - * then zero is returned. If the length of the message is greater than - * xBufferLengthBytes then the message will be left in the message buffer and - * zero is returned. - * - * Example use: -
-void vAFunction( MessageBuffer_t xMessageBuffer )
-{
-uint8_t ucRxData[ 20 ];
-size_t xReceivedBytes;
-const TickType_t xBlockTime = pdMS_TO_TICKS( 20 );
-
-    // Receive the next message from the message buffer.  Wait in the Blocked
-    // state (so not using any CPU processing time) for a maximum of 100ms for
-    // a message to become available.
-    xReceivedBytes = xMessageBufferReceive( xMessageBuffer,
-                                            ( void * ) ucRxData,
-                                            sizeof( ucRxData ),
-                                            xBlockTime );
-
-    if( xReceivedBytes > 0 )
-    {
-        // A ucRxData contains a message that is xReceivedBytes long.  Process
-        // the message here....
-    }
-}
-
- * \defgroup xMessageBufferReceive xMessageBufferReceive - * \ingroup MessageBufferManagement - */ -#define xMessageBufferReceive( xMessageBuffer, pvRxData, xBufferLengthBytes, xTicksToWait ) xStreamBufferReceive( ( StreamBufferHandle_t ) xMessageBuffer, pvRxData, xBufferLengthBytes, xTicksToWait ) - - -/** - * message_buffer.h - * -
-size_t xMessageBufferReceiveFromISR( MessageBufferHandle_t xMessageBuffer,
-                                     void *pvRxData,
-                                     size_t xBufferLengthBytes,
-                                     BaseType_t *pxHigherPriorityTaskWoken );
-
- * - * An interrupt safe version of the API function that receives a discrete - * message from a message buffer. Messages can be of variable length and are - * copied out of the buffer. - * - * ***NOTE***: Uniquely among FreeRTOS objects, the stream buffer - * implementation (so also the message buffer implementation, as message buffers - * are built on top of stream buffers) assumes there is only one task or - * interrupt that will write to the buffer (the writer), and only one task or - * interrupt that will read from the buffer (the reader). It is safe for the - * writer and reader to be different tasks or interrupts, but, unlike other - * FreeRTOS objects, it is not safe to have multiple different writers or - * multiple different readers. If there are to be multiple different writers - * then the application writer must place each call to a writing API function - * (such as xMessageBufferSend()) inside a critical section and set the send - * block time to 0. Likewise, if there are to be multiple different readers - * then the application writer must place each call to a reading API function - * (such as xMessageBufferRead()) inside a critical section and set the receive - * block time to 0. - * - * Use xMessageBufferReceive() to read from a message buffer from a task. Use - * xMessageBufferReceiveFromISR() to read from a message buffer from an - * interrupt service routine (ISR). - * - * @param xMessageBuffer The handle of the message buffer from which a message - * is being received. - * - * @param pvRxData A pointer to the buffer into which the received message is - * to be copied. - * - * @param xBufferLengthBytes The length of the buffer pointed to by the pvRxData - * parameter. This sets the maximum length of the message that can be received. - * If xBufferLengthBytes is too small to hold the next message then the message - * will be left in the message buffer and 0 will be returned. - * - * @param pxHigherPriorityTaskWoken It is possible that a message buffer will - * have a task blocked on it waiting for space to become available. Calling - * xMessageBufferReceiveFromISR() can make space available, and so cause a task - * that is waiting for space to leave the Blocked state. If calling - * xMessageBufferReceiveFromISR() causes a task to leave the Blocked state, and - * the unblocked task has a priority higher than the currently executing task - * (the task that was interrupted), then, internally, - * xMessageBufferReceiveFromISR() will set *pxHigherPriorityTaskWoken to pdTRUE. - * If xMessageBufferReceiveFromISR() sets this value to pdTRUE, then normally a - * context switch should be performed before the interrupt is exited. That will - * ensure the interrupt returns directly to the highest priority Ready state - * task. *pxHigherPriorityTaskWoken should be set to pdFALSE before it is - * passed into the function. See the code example below for an example. - * - * @return The length, in bytes, of the message read from the message buffer, if - * any. - * - * Example use: -
-// A message buffer that has already been created.
-MessageBuffer_t xMessageBuffer;
-
-void vAnInterruptServiceRoutine( void )
-{
-uint8_t ucRxData[ 20 ];
-size_t xReceivedBytes;
-BaseType_t xHigherPriorityTaskWoken = pdFALSE;  // Initialised to pdFALSE.
-
-    // Receive the next message from the message buffer.
-    xReceivedBytes = xMessageBufferReceiveFromISR( xMessageBuffer,
-                                                  ( void * ) ucRxData,
-                                                  sizeof( ucRxData ),
-                                                  &xHigherPriorityTaskWoken );
-
-    if( xReceivedBytes > 0 )
-    {
-        // A ucRxData contains a message that is xReceivedBytes long.  Process
-        // the message here....
-    }
-
-    // If xHigherPriorityTaskWoken was set to pdTRUE inside
-    // xMessageBufferReceiveFromISR() then a task that has a priority above the
-    // priority of the currently executing task was unblocked and a context
-    // switch should be performed to ensure the ISR returns to the unblocked
-    // task.  In most FreeRTOS ports this is done by simply passing
-    // xHigherPriorityTaskWoken into portYIELD_FROM_ISR(), which will test the
-    // variables value, and perform the context switch if necessary.  Check the
-    // documentation for the port in use for port specific instructions.
-    portYIELD_FROM_ISR( xHigherPriorityTaskWoken );
-}
-
- * \defgroup xMessageBufferReceiveFromISR xMessageBufferReceiveFromISR - * \ingroup MessageBufferManagement - */ -#define xMessageBufferReceiveFromISR( xMessageBuffer, pvRxData, xBufferLengthBytes, pxHigherPriorityTaskWoken ) xStreamBufferReceiveFromISR( ( StreamBufferHandle_t ) xMessageBuffer, pvRxData, xBufferLengthBytes, pxHigherPriorityTaskWoken ) - -/** - * message_buffer.h - * -
-void vMessageBufferDelete( MessageBufferHandle_t xMessageBuffer );
-
- * - * Deletes a message buffer that was previously created using a call to - * xMessageBufferCreate() or xMessageBufferCreateStatic(). If the message - * buffer was created using dynamic memory (that is, by xMessageBufferCreate()), - * then the allocated memory is freed. - * - * A message buffer handle must not be used after the message buffer has been - * deleted. - * - * @param xMessageBuffer The handle of the message buffer to be deleted. - * - */ -#define vMessageBufferDelete( xMessageBuffer ) vStreamBufferDelete( ( StreamBufferHandle_t ) xMessageBuffer ) - -/** - * message_buffer.h -
-BaseType_t xMessageBufferIsFull( MessageBufferHandle_t xMessageBuffer ) );
-
- * - * Tests to see if a message buffer is full. A message buffer is full if it - * cannot accept any more messages, of any size, until space is made available - * by a message being removed from the message buffer. - * - * @param xMessageBuffer The handle of the message buffer being queried. - * - * @return If the message buffer referenced by xMessageBuffer is full then - * pdTRUE is returned. Otherwise pdFALSE is returned. - */ -#define xMessageBufferIsFull( xMessageBuffer ) xStreamBufferIsFull( ( StreamBufferHandle_t ) xMessageBuffer ) - -/** - * message_buffer.h -
-BaseType_t xMessageBufferIsEmpty( MessageBufferHandle_t xMessageBuffer ) );
-
- * - * Tests to see if a message buffer is empty (does not contain any messages). - * - * @param xMessageBuffer The handle of the message buffer being queried. - * - * @return If the message buffer referenced by xMessageBuffer is empty then - * pdTRUE is returned. Otherwise pdFALSE is returned. - * - */ -#define xMessageBufferIsEmpty( xMessageBuffer ) xStreamBufferIsEmpty( ( StreamBufferHandle_t ) xMessageBuffer ) - -/** - * message_buffer.h -
-BaseType_t xMessageBufferReset( MessageBufferHandle_t xMessageBuffer );
-
- * - * Resets a message buffer to its initial empty state, discarding any message it - * contained. - * - * A message buffer can only be reset if there are no tasks blocked on it. - * - * @param xMessageBuffer The handle of the message buffer being reset. - * - * @return If the message buffer was reset then pdPASS is returned. If the - * message buffer could not be reset because either there was a task blocked on - * the message queue to wait for space to become available, or to wait for a - * a message to be available, then pdFAIL is returned. - * - * \defgroup xMessageBufferReset xMessageBufferReset - * \ingroup MessageBufferManagement - */ -#define xMessageBufferReset( xMessageBuffer ) xStreamBufferReset( ( StreamBufferHandle_t ) xMessageBuffer ) - - -/** - * message_buffer.h -
-size_t xMessageBufferSpaceAvailable( MessageBufferHandle_t xMessageBuffer ) );
-
- * Returns the number of bytes of free space in the message buffer. - * - * @param xMessageBuffer The handle of the message buffer being queried. - * - * @return The number of bytes that can be written to the message buffer before - * the message buffer would be full. When a message is written to the message - * buffer an additional sizeof( size_t ) bytes are also written to store the - * message's length. sizeof( size_t ) is typically 4 bytes on a 32-bit - * architecture, so if xMessageBufferSpacesAvailable() returns 10, then the size - * of the largest message that can be written to the message buffer is 6 bytes. - * - * \defgroup xMessageBufferSpaceAvailable xMessageBufferSpaceAvailable - * \ingroup MessageBufferManagement - */ -#define xMessageBufferSpaceAvailable( xMessageBuffer ) xStreamBufferSpacesAvailable( ( StreamBufferHandle_t ) xMessageBuffer ) -#define xMessageBufferSpacesAvailable( xMessageBuffer ) xStreamBufferSpacesAvailable( ( StreamBufferHandle_t ) xMessageBuffer ) /* Corrects typo in original macro name. */ - -/** - * message_buffer.h -
- size_t xMessageBufferNextLengthBytes( MessageBufferHandle_t xMessageBuffer ) );
- 
- * Returns the length (in bytes) of the next message in a message buffer. - * Useful if xMessageBufferReceive() returned 0 because the size of the buffer - * passed into xMessageBufferReceive() was too small to hold the next message. - * - * @param xMessageBuffer The handle of the message buffer being queried. - * - * @return The length (in bytes) of the next message in the message buffer, or 0 - * if the message buffer is empty. - * - * \defgroup xMessageBufferNextLengthBytes xMessageBufferNextLengthBytes - * \ingroup MessageBufferManagement - */ -#define xMessageBufferNextLengthBytes( xMessageBuffer ) xStreamBufferNextMessageLengthBytes( ( StreamBufferHandle_t ) xMessageBuffer ) PRIVILEGED_FUNCTION; - -/** - * message_buffer.h - * -
-BaseType_t xMessageBufferSendCompletedFromISR( MessageBufferHandle_t xStreamBuffer, BaseType_t *pxHigherPriorityTaskWoken );
-
- * - * For advanced users only. - * - * The sbSEND_COMPLETED() macro is called from within the FreeRTOS APIs when - * data is sent to a message buffer or stream buffer. If there was a task that - * was blocked on the message or stream buffer waiting for data to arrive then - * the sbSEND_COMPLETED() macro sends a notification to the task to remove it - * from the Blocked state. xMessageBufferSendCompletedFromISR() does the same - * thing. It is provided to enable application writers to implement their own - * version of sbSEND_COMPLETED(), and MUST NOT BE USED AT ANY OTHER TIME. - * - * See the example implemented in FreeRTOS/Demo/Minimal/MessageBufferAMP.c for - * additional information. - * - * @param xStreamBuffer The handle of the stream buffer to which data was - * written. - * - * @param pxHigherPriorityTaskWoken *pxHigherPriorityTaskWoken should be - * initialised to pdFALSE before it is passed into - * xMessageBufferSendCompletedFromISR(). If calling - * xMessageBufferSendCompletedFromISR() removes a task from the Blocked state, - * and the task has a priority above the priority of the currently running task, - * then *pxHigherPriorityTaskWoken will get set to pdTRUE indicating that a - * context switch should be performed before exiting the ISR. - * - * @return If a task was removed from the Blocked state then pdTRUE is returned. - * Otherwise pdFALSE is returned. - * - * \defgroup xMessageBufferSendCompletedFromISR xMessageBufferSendCompletedFromISR - * \ingroup StreamBufferManagement - */ -#define xMessageBufferSendCompletedFromISR( xMessageBuffer, pxHigherPriorityTaskWoken ) xStreamBufferSendCompletedFromISR( ( StreamBufferHandle_t ) xMessageBuffer, pxHigherPriorityTaskWoken ) - -/** - * message_buffer.h - * -
-BaseType_t xMessageBufferReceiveCompletedFromISR( MessageBufferHandle_t xStreamBuffer, BaseType_t *pxHigherPriorityTaskWoken );
-
- * - * For advanced users only. - * - * The sbRECEIVE_COMPLETED() macro is called from within the FreeRTOS APIs when - * data is read out of a message buffer or stream buffer. If there was a task - * that was blocked on the message or stream buffer waiting for data to arrive - * then the sbRECEIVE_COMPLETED() macro sends a notification to the task to - * remove it from the Blocked state. xMessageBufferReceiveCompletedFromISR() - * does the same thing. It is provided to enable application writers to - * implement their own version of sbRECEIVE_COMPLETED(), and MUST NOT BE USED AT - * ANY OTHER TIME. - * - * See the example implemented in FreeRTOS/Demo/Minimal/MessageBufferAMP.c for - * additional information. - * - * @param xStreamBuffer The handle of the stream buffer from which data was - * read. - * - * @param pxHigherPriorityTaskWoken *pxHigherPriorityTaskWoken should be - * initialised to pdFALSE before it is passed into - * xMessageBufferReceiveCompletedFromISR(). If calling - * xMessageBufferReceiveCompletedFromISR() removes a task from the Blocked state, - * and the task has a priority above the priority of the currently running task, - * then *pxHigherPriorityTaskWoken will get set to pdTRUE indicating that a - * context switch should be performed before exiting the ISR. - * - * @return If a task was removed from the Blocked state then pdTRUE is returned. - * Otherwise pdFALSE is returned. - * - * \defgroup xMessageBufferReceiveCompletedFromISR xMessageBufferReceiveCompletedFromISR - * \ingroup StreamBufferManagement - */ -#define xMessageBufferReceiveCompletedFromISR( xMessageBuffer, pxHigherPriorityTaskWoken ) xStreamBufferReceiveCompletedFromISR( ( StreamBufferHandle_t ) xMessageBuffer, pxHigherPriorityTaskWoken ) - -#if defined( __cplusplus ) -} /* extern "C" */ -#endif - -#endif /* !defined( FREERTOS_MESSAGE_BUFFER_H ) */ diff --git a/Middlewares/Third_Party/FreeRTOS/Source/include/mpu_prototypes.h b/Middlewares/Third_Party/FreeRTOS/Source/include/mpu_prototypes.h deleted file mode 100644 index a21b7a6..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/include/mpu_prototypes.h +++ /dev/null @@ -1,160 +0,0 @@ -/* - * FreeRTOS Kernel V10.3.1 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - -/* - * When the MPU is used the standard (non MPU) API functions are mapped to - * equivalents that start "MPU_", the prototypes for which are defined in this - * header files. This will cause the application code to call the MPU_ version - * which wraps the non-MPU version with privilege promoting then demoting code, - * so the kernel code always runs will full privileges. - */ - - -#ifndef MPU_PROTOTYPES_H -#define MPU_PROTOTYPES_H - -/* MPU versions of tasks.h API functions. */ -BaseType_t MPU_xTaskCreate( TaskFunction_t pxTaskCode, const char * const pcName, const uint16_t usStackDepth, void * const pvParameters, UBaseType_t uxPriority, TaskHandle_t * const pxCreatedTask ) FREERTOS_SYSTEM_CALL; -TaskHandle_t MPU_xTaskCreateStatic( TaskFunction_t pxTaskCode, const char * const pcName, const uint32_t ulStackDepth, void * const pvParameters, UBaseType_t uxPriority, StackType_t * const puxStackBuffer, StaticTask_t * const pxTaskBuffer ) FREERTOS_SYSTEM_CALL; -BaseType_t MPU_xTaskCreateRestricted( const TaskParameters_t * const pxTaskDefinition, TaskHandle_t *pxCreatedTask ) FREERTOS_SYSTEM_CALL; -BaseType_t MPU_xTaskCreateRestrictedStatic( const TaskParameters_t * const pxTaskDefinition, TaskHandle_t *pxCreatedTask ) FREERTOS_SYSTEM_CALL; -void MPU_vTaskAllocateMPURegions( TaskHandle_t xTask, const MemoryRegion_t * const pxRegions ) FREERTOS_SYSTEM_CALL; -void MPU_vTaskDelete( TaskHandle_t xTaskToDelete ) FREERTOS_SYSTEM_CALL; -void MPU_vTaskDelay( const TickType_t xTicksToDelay ) FREERTOS_SYSTEM_CALL; -void MPU_vTaskDelayUntil( TickType_t * const pxPreviousWakeTime, const TickType_t xTimeIncrement ) FREERTOS_SYSTEM_CALL; -BaseType_t MPU_xTaskAbortDelay( TaskHandle_t xTask ) FREERTOS_SYSTEM_CALL; -UBaseType_t MPU_uxTaskPriorityGet( const TaskHandle_t xTask ) FREERTOS_SYSTEM_CALL; -eTaskState MPU_eTaskGetState( TaskHandle_t xTask ) FREERTOS_SYSTEM_CALL; -void MPU_vTaskGetInfo( TaskHandle_t xTask, TaskStatus_t *pxTaskStatus, BaseType_t xGetFreeStackSpace, eTaskState eState ) FREERTOS_SYSTEM_CALL; -void MPU_vTaskPrioritySet( TaskHandle_t xTask, UBaseType_t uxNewPriority ) FREERTOS_SYSTEM_CALL; -void MPU_vTaskSuspend( TaskHandle_t xTaskToSuspend ) FREERTOS_SYSTEM_CALL; -void MPU_vTaskResume( TaskHandle_t xTaskToResume ) FREERTOS_SYSTEM_CALL; -void MPU_vTaskStartScheduler( void ) FREERTOS_SYSTEM_CALL; -void MPU_vTaskSuspendAll( void ) FREERTOS_SYSTEM_CALL; -BaseType_t MPU_xTaskResumeAll( void ) FREERTOS_SYSTEM_CALL; -TickType_t MPU_xTaskGetTickCount( void ) FREERTOS_SYSTEM_CALL; -UBaseType_t MPU_uxTaskGetNumberOfTasks( void ) FREERTOS_SYSTEM_CALL; -char * MPU_pcTaskGetName( TaskHandle_t xTaskToQuery ) FREERTOS_SYSTEM_CALL; -TaskHandle_t MPU_xTaskGetHandle( const char *pcNameToQuery ) FREERTOS_SYSTEM_CALL; -UBaseType_t MPU_uxTaskGetStackHighWaterMark( TaskHandle_t xTask ) FREERTOS_SYSTEM_CALL; -configSTACK_DEPTH_TYPE MPU_uxTaskGetStackHighWaterMark2( TaskHandle_t xTask ) FREERTOS_SYSTEM_CALL; -void MPU_vTaskSetApplicationTaskTag( TaskHandle_t xTask, TaskHookFunction_t pxHookFunction ) FREERTOS_SYSTEM_CALL; -TaskHookFunction_t MPU_xTaskGetApplicationTaskTag( TaskHandle_t xTask ) FREERTOS_SYSTEM_CALL; -void MPU_vTaskSetThreadLocalStoragePointer( TaskHandle_t xTaskToSet, BaseType_t xIndex, void *pvValue ) FREERTOS_SYSTEM_CALL; -void * MPU_pvTaskGetThreadLocalStoragePointer( TaskHandle_t xTaskToQuery, BaseType_t xIndex ) FREERTOS_SYSTEM_CALL; -BaseType_t MPU_xTaskCallApplicationTaskHook( TaskHandle_t xTask, void *pvParameter ) FREERTOS_SYSTEM_CALL; -TaskHandle_t MPU_xTaskGetIdleTaskHandle( void ) FREERTOS_SYSTEM_CALL; -UBaseType_t MPU_uxTaskGetSystemState( TaskStatus_t * const pxTaskStatusArray, const UBaseType_t uxArraySize, uint32_t * const pulTotalRunTime ) FREERTOS_SYSTEM_CALL; -uint32_t MPU_ulTaskGetIdleRunTimeCounter( void ) FREERTOS_SYSTEM_CALL; -void MPU_vTaskList( char * pcWriteBuffer ) FREERTOS_SYSTEM_CALL; -void MPU_vTaskGetRunTimeStats( char *pcWriteBuffer ) FREERTOS_SYSTEM_CALL; -BaseType_t MPU_xTaskGenericNotify( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue ) FREERTOS_SYSTEM_CALL; -BaseType_t MPU_xTaskNotifyWait( uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t *pulNotificationValue, TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL; -uint32_t MPU_ulTaskNotifyTake( BaseType_t xClearCountOnExit, TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL; -BaseType_t MPU_xTaskNotifyStateClear( TaskHandle_t xTask ) FREERTOS_SYSTEM_CALL; -uint32_t MPU_ulTaskNotifyValueClear( TaskHandle_t xTask, uint32_t ulBitsToClear ) FREERTOS_SYSTEM_CALL; -BaseType_t MPU_xTaskIncrementTick( void ) FREERTOS_SYSTEM_CALL; -TaskHandle_t MPU_xTaskGetCurrentTaskHandle( void ) FREERTOS_SYSTEM_CALL; -void MPU_vTaskSetTimeOutState( TimeOut_t * const pxTimeOut ) FREERTOS_SYSTEM_CALL; -BaseType_t MPU_xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait ) FREERTOS_SYSTEM_CALL; -void MPU_vTaskMissedYield( void ) FREERTOS_SYSTEM_CALL; -BaseType_t MPU_xTaskGetSchedulerState( void ) FREERTOS_SYSTEM_CALL; -BaseType_t MPU_xTaskCatchUpTicks( TickType_t xTicksToCatchUp ) FREERTOS_SYSTEM_CALL; - -/* MPU versions of queue.h API functions. */ -BaseType_t MPU_xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition ) FREERTOS_SYSTEM_CALL; -BaseType_t MPU_xQueueReceive( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL; -BaseType_t MPU_xQueuePeek( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL; -BaseType_t MPU_xQueueSemaphoreTake( QueueHandle_t xQueue, TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL; -UBaseType_t MPU_uxQueueMessagesWaiting( const QueueHandle_t xQueue ) FREERTOS_SYSTEM_CALL; -UBaseType_t MPU_uxQueueSpacesAvailable( const QueueHandle_t xQueue ) FREERTOS_SYSTEM_CALL; -void MPU_vQueueDelete( QueueHandle_t xQueue ) FREERTOS_SYSTEM_CALL; -QueueHandle_t MPU_xQueueCreateMutex( const uint8_t ucQueueType ) FREERTOS_SYSTEM_CALL; -QueueHandle_t MPU_xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t *pxStaticQueue ) FREERTOS_SYSTEM_CALL; -QueueHandle_t MPU_xQueueCreateCountingSemaphore( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount ) FREERTOS_SYSTEM_CALL; -QueueHandle_t MPU_xQueueCreateCountingSemaphoreStatic( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount, StaticQueue_t *pxStaticQueue ) FREERTOS_SYSTEM_CALL; -TaskHandle_t MPU_xQueueGetMutexHolder( QueueHandle_t xSemaphore ) FREERTOS_SYSTEM_CALL; -BaseType_t MPU_xQueueTakeMutexRecursive( QueueHandle_t xMutex, TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL; -BaseType_t MPU_xQueueGiveMutexRecursive( QueueHandle_t pxMutex ) FREERTOS_SYSTEM_CALL; -void MPU_vQueueAddToRegistry( QueueHandle_t xQueue, const char *pcName ) FREERTOS_SYSTEM_CALL; -void MPU_vQueueUnregisterQueue( QueueHandle_t xQueue ) FREERTOS_SYSTEM_CALL; -const char * MPU_pcQueueGetName( QueueHandle_t xQueue ) FREERTOS_SYSTEM_CALL; -QueueHandle_t MPU_xQueueGenericCreate( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, const uint8_t ucQueueType ) FREERTOS_SYSTEM_CALL; -QueueHandle_t MPU_xQueueGenericCreateStatic( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, StaticQueue_t *pxStaticQueue, const uint8_t ucQueueType ) FREERTOS_SYSTEM_CALL; -QueueSetHandle_t MPU_xQueueCreateSet( const UBaseType_t uxEventQueueLength ) FREERTOS_SYSTEM_CALL; -BaseType_t MPU_xQueueAddToSet( QueueSetMemberHandle_t xQueueOrSemaphore, QueueSetHandle_t xQueueSet ) FREERTOS_SYSTEM_CALL; -BaseType_t MPU_xQueueRemoveFromSet( QueueSetMemberHandle_t xQueueOrSemaphore, QueueSetHandle_t xQueueSet ) FREERTOS_SYSTEM_CALL; -QueueSetMemberHandle_t MPU_xQueueSelectFromSet( QueueSetHandle_t xQueueSet, const TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL; -BaseType_t MPU_xQueueGenericReset( QueueHandle_t xQueue, BaseType_t xNewQueue ) FREERTOS_SYSTEM_CALL; -void MPU_vQueueSetQueueNumber( QueueHandle_t xQueue, UBaseType_t uxQueueNumber ) FREERTOS_SYSTEM_CALL; -UBaseType_t MPU_uxQueueGetQueueNumber( QueueHandle_t xQueue ) FREERTOS_SYSTEM_CALL; -uint8_t MPU_ucQueueGetQueueType( QueueHandle_t xQueue ) FREERTOS_SYSTEM_CALL; - -/* MPU versions of timers.h API functions. */ -TimerHandle_t MPU_xTimerCreate( const char * const pcTimerName, const TickType_t xTimerPeriodInTicks, const UBaseType_t uxAutoReload, void * const pvTimerID, TimerCallbackFunction_t pxCallbackFunction ) FREERTOS_SYSTEM_CALL; -TimerHandle_t MPU_xTimerCreateStatic( const char * const pcTimerName, const TickType_t xTimerPeriodInTicks, const UBaseType_t uxAutoReload, void * const pvTimerID, TimerCallbackFunction_t pxCallbackFunction, StaticTimer_t *pxTimerBuffer ) FREERTOS_SYSTEM_CALL; -void * MPU_pvTimerGetTimerID( const TimerHandle_t xTimer ) FREERTOS_SYSTEM_CALL; -void MPU_vTimerSetTimerID( TimerHandle_t xTimer, void *pvNewID ) FREERTOS_SYSTEM_CALL; -BaseType_t MPU_xTimerIsTimerActive( TimerHandle_t xTimer ) FREERTOS_SYSTEM_CALL; -TaskHandle_t MPU_xTimerGetTimerDaemonTaskHandle( void ) FREERTOS_SYSTEM_CALL; -BaseType_t MPU_xTimerPendFunctionCall( PendedFunction_t xFunctionToPend, void *pvParameter1, uint32_t ulParameter2, TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL; -const char * MPU_pcTimerGetName( TimerHandle_t xTimer ) FREERTOS_SYSTEM_CALL; -void MPU_vTimerSetReloadMode( TimerHandle_t xTimer, const UBaseType_t uxAutoReload ) FREERTOS_SYSTEM_CALL; -UBaseType_t MPU_uxTimerGetReloadMode( TimerHandle_t xTimer ) FREERTOS_SYSTEM_CALL; -TickType_t MPU_xTimerGetPeriod( TimerHandle_t xTimer ) FREERTOS_SYSTEM_CALL; -TickType_t MPU_xTimerGetExpiryTime( TimerHandle_t xTimer ) FREERTOS_SYSTEM_CALL; -BaseType_t MPU_xTimerCreateTimerTask( void ) FREERTOS_SYSTEM_CALL; -BaseType_t MPU_xTimerGenericCommand( TimerHandle_t xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t * const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL; - -/* MPU versions of event_group.h API functions. */ -EventGroupHandle_t MPU_xEventGroupCreate( void ) FREERTOS_SYSTEM_CALL; -EventGroupHandle_t MPU_xEventGroupCreateStatic( StaticEventGroup_t *pxEventGroupBuffer ) FREERTOS_SYSTEM_CALL; -EventBits_t MPU_xEventGroupWaitBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToWaitFor, const BaseType_t xClearOnExit, const BaseType_t xWaitForAllBits, TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL; -EventBits_t MPU_xEventGroupClearBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToClear ) FREERTOS_SYSTEM_CALL; -EventBits_t MPU_xEventGroupSetBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet ) FREERTOS_SYSTEM_CALL; -EventBits_t MPU_xEventGroupSync( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet, const EventBits_t uxBitsToWaitFor, TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL; -void MPU_vEventGroupDelete( EventGroupHandle_t xEventGroup ) FREERTOS_SYSTEM_CALL; -UBaseType_t MPU_uxEventGroupGetNumber( void* xEventGroup ) FREERTOS_SYSTEM_CALL; - -/* MPU versions of message/stream_buffer.h API functions. */ -size_t MPU_xStreamBufferSend( StreamBufferHandle_t xStreamBuffer, const void *pvTxData, size_t xDataLengthBytes, TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL; -size_t MPU_xStreamBufferReceive( StreamBufferHandle_t xStreamBuffer, void *pvRxData, size_t xBufferLengthBytes, TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL; -size_t MPU_xStreamBufferNextMessageLengthBytes( StreamBufferHandle_t xStreamBuffer ) FREERTOS_SYSTEM_CALL; -void MPU_vStreamBufferDelete( StreamBufferHandle_t xStreamBuffer ) FREERTOS_SYSTEM_CALL; -BaseType_t MPU_xStreamBufferIsFull( StreamBufferHandle_t xStreamBuffer ) FREERTOS_SYSTEM_CALL; -BaseType_t MPU_xStreamBufferIsEmpty( StreamBufferHandle_t xStreamBuffer ) FREERTOS_SYSTEM_CALL; -BaseType_t MPU_xStreamBufferReset( StreamBufferHandle_t xStreamBuffer ) FREERTOS_SYSTEM_CALL; -size_t MPU_xStreamBufferSpacesAvailable( StreamBufferHandle_t xStreamBuffer ) FREERTOS_SYSTEM_CALL; -size_t MPU_xStreamBufferBytesAvailable( StreamBufferHandle_t xStreamBuffer ) FREERTOS_SYSTEM_CALL; -BaseType_t MPU_xStreamBufferSetTriggerLevel( StreamBufferHandle_t xStreamBuffer, size_t xTriggerLevel ) FREERTOS_SYSTEM_CALL; -StreamBufferHandle_t MPU_xStreamBufferGenericCreate( size_t xBufferSizeBytes, size_t xTriggerLevelBytes, BaseType_t xIsMessageBuffer ) FREERTOS_SYSTEM_CALL; -StreamBufferHandle_t MPU_xStreamBufferGenericCreateStatic( size_t xBufferSizeBytes, size_t xTriggerLevelBytes, BaseType_t xIsMessageBuffer, uint8_t * const pucStreamBufferStorageArea, StaticStreamBuffer_t * const pxStaticStreamBuffer ) FREERTOS_SYSTEM_CALL; - - - -#endif /* MPU_PROTOTYPES_H */ - diff --git a/Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h b/Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h deleted file mode 100644 index 5f63d4f..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h +++ /dev/null @@ -1,189 +0,0 @@ -/* - * FreeRTOS Kernel V10.3.1 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - -#ifndef MPU_WRAPPERS_H -#define MPU_WRAPPERS_H - -/* This file redefines API functions to be called through a wrapper macro, but -only for ports that are using the MPU. */ -#ifdef portUSING_MPU_WRAPPERS - - /* MPU_WRAPPERS_INCLUDED_FROM_API_FILE will be defined when this file is - included from queue.c or task.c to prevent it from having an effect within - those files. */ - #ifndef MPU_WRAPPERS_INCLUDED_FROM_API_FILE - - /* - * Map standard (non MPU) API functions to equivalents that start - * "MPU_". This will cause the application code to call the MPU_ - * version, which wraps the non-MPU version with privilege promoting - * then demoting code, so the kernel code always runs will full - * privileges. - */ - - /* Map standard tasks.h API functions to the MPU equivalents. */ - #define xTaskCreate MPU_xTaskCreate - #define xTaskCreateStatic MPU_xTaskCreateStatic - #define xTaskCreateRestricted MPU_xTaskCreateRestricted - #define vTaskAllocateMPURegions MPU_vTaskAllocateMPURegions - #define vTaskDelete MPU_vTaskDelete - #define vTaskDelay MPU_vTaskDelay - #define vTaskDelayUntil MPU_vTaskDelayUntil - #define xTaskAbortDelay MPU_xTaskAbortDelay - #define uxTaskPriorityGet MPU_uxTaskPriorityGet - #define eTaskGetState MPU_eTaskGetState - #define vTaskGetInfo MPU_vTaskGetInfo - #define vTaskPrioritySet MPU_vTaskPrioritySet - #define vTaskSuspend MPU_vTaskSuspend - #define vTaskResume MPU_vTaskResume - #define vTaskSuspendAll MPU_vTaskSuspendAll - #define xTaskResumeAll MPU_xTaskResumeAll - #define xTaskGetTickCount MPU_xTaskGetTickCount - #define uxTaskGetNumberOfTasks MPU_uxTaskGetNumberOfTasks - #define pcTaskGetName MPU_pcTaskGetName - #define xTaskGetHandle MPU_xTaskGetHandle - #define uxTaskGetStackHighWaterMark MPU_uxTaskGetStackHighWaterMark - #define uxTaskGetStackHighWaterMark2 MPU_uxTaskGetStackHighWaterMark2 - #define vTaskSetApplicationTaskTag MPU_vTaskSetApplicationTaskTag - #define xTaskGetApplicationTaskTag MPU_xTaskGetApplicationTaskTag - #define vTaskSetThreadLocalStoragePointer MPU_vTaskSetThreadLocalStoragePointer - #define pvTaskGetThreadLocalStoragePointer MPU_pvTaskGetThreadLocalStoragePointer - #define xTaskCallApplicationTaskHook MPU_xTaskCallApplicationTaskHook - #define xTaskGetIdleTaskHandle MPU_xTaskGetIdleTaskHandle - #define uxTaskGetSystemState MPU_uxTaskGetSystemState - #define vTaskList MPU_vTaskList - #define vTaskGetRunTimeStats MPU_vTaskGetRunTimeStats - #define ulTaskGetIdleRunTimeCounter MPU_ulTaskGetIdleRunTimeCounter - #define xTaskGenericNotify MPU_xTaskGenericNotify - #define xTaskNotifyWait MPU_xTaskNotifyWait - #define ulTaskNotifyTake MPU_ulTaskNotifyTake - #define xTaskNotifyStateClear MPU_xTaskNotifyStateClear - #define ulTaskNotifyValueClear MPU_ulTaskNotifyValueClear - #define xTaskCatchUpTicks MPU_xTaskCatchUpTicks - - #define xTaskGetCurrentTaskHandle MPU_xTaskGetCurrentTaskHandle - #define vTaskSetTimeOutState MPU_vTaskSetTimeOutState - #define xTaskCheckForTimeOut MPU_xTaskCheckForTimeOut - #define xTaskGetSchedulerState MPU_xTaskGetSchedulerState - - /* Map standard queue.h API functions to the MPU equivalents. */ - #define xQueueGenericSend MPU_xQueueGenericSend - #define xQueueReceive MPU_xQueueReceive - #define xQueuePeek MPU_xQueuePeek - #define xQueueSemaphoreTake MPU_xQueueSemaphoreTake - #define uxQueueMessagesWaiting MPU_uxQueueMessagesWaiting - #define uxQueueSpacesAvailable MPU_uxQueueSpacesAvailable - #define vQueueDelete MPU_vQueueDelete - #define xQueueCreateMutex MPU_xQueueCreateMutex - #define xQueueCreateMutexStatic MPU_xQueueCreateMutexStatic - #define xQueueCreateCountingSemaphore MPU_xQueueCreateCountingSemaphore - #define xQueueCreateCountingSemaphoreStatic MPU_xQueueCreateCountingSemaphoreStatic - #define xQueueGetMutexHolder MPU_xQueueGetMutexHolder - #define xQueueTakeMutexRecursive MPU_xQueueTakeMutexRecursive - #define xQueueGiveMutexRecursive MPU_xQueueGiveMutexRecursive - #define xQueueGenericCreate MPU_xQueueGenericCreate - #define xQueueGenericCreateStatic MPU_xQueueGenericCreateStatic - #define xQueueCreateSet MPU_xQueueCreateSet - #define xQueueAddToSet MPU_xQueueAddToSet - #define xQueueRemoveFromSet MPU_xQueueRemoveFromSet - #define xQueueSelectFromSet MPU_xQueueSelectFromSet - #define xQueueGenericReset MPU_xQueueGenericReset - - #if( configQUEUE_REGISTRY_SIZE > 0 ) - #define vQueueAddToRegistry MPU_vQueueAddToRegistry - #define vQueueUnregisterQueue MPU_vQueueUnregisterQueue - #define pcQueueGetName MPU_pcQueueGetName - #endif - - /* Map standard timer.h API functions to the MPU equivalents. */ - #define xTimerCreate MPU_xTimerCreate - #define xTimerCreateStatic MPU_xTimerCreateStatic - #define pvTimerGetTimerID MPU_pvTimerGetTimerID - #define vTimerSetTimerID MPU_vTimerSetTimerID - #define xTimerIsTimerActive MPU_xTimerIsTimerActive - #define xTimerGetTimerDaemonTaskHandle MPU_xTimerGetTimerDaemonTaskHandle - #define xTimerPendFunctionCall MPU_xTimerPendFunctionCall - #define pcTimerGetName MPU_pcTimerGetName - #define vTimerSetReloadMode MPU_vTimerSetReloadMode - #define uxTimerGetReloadMode MPU_uxTimerGetReloadMode - #define xTimerGetPeriod MPU_xTimerGetPeriod - #define xTimerGetExpiryTime MPU_xTimerGetExpiryTime - #define xTimerGenericCommand MPU_xTimerGenericCommand - - /* Map standard event_group.h API functions to the MPU equivalents. */ - #define xEventGroupCreate MPU_xEventGroupCreate - #define xEventGroupCreateStatic MPU_xEventGroupCreateStatic - #define xEventGroupWaitBits MPU_xEventGroupWaitBits - #define xEventGroupClearBits MPU_xEventGroupClearBits - #define xEventGroupSetBits MPU_xEventGroupSetBits - #define xEventGroupSync MPU_xEventGroupSync - #define vEventGroupDelete MPU_vEventGroupDelete - - /* Map standard message/stream_buffer.h API functions to the MPU - equivalents. */ - #define xStreamBufferSend MPU_xStreamBufferSend - #define xStreamBufferReceive MPU_xStreamBufferReceive - #define xStreamBufferNextMessageLengthBytes MPU_xStreamBufferNextMessageLengthBytes - #define vStreamBufferDelete MPU_vStreamBufferDelete - #define xStreamBufferIsFull MPU_xStreamBufferIsFull - #define xStreamBufferIsEmpty MPU_xStreamBufferIsEmpty - #define xStreamBufferReset MPU_xStreamBufferReset - #define xStreamBufferSpacesAvailable MPU_xStreamBufferSpacesAvailable - #define xStreamBufferBytesAvailable MPU_xStreamBufferBytesAvailable - #define xStreamBufferSetTriggerLevel MPU_xStreamBufferSetTriggerLevel - #define xStreamBufferGenericCreate MPU_xStreamBufferGenericCreate - #define xStreamBufferGenericCreateStatic MPU_xStreamBufferGenericCreateStatic - - - /* Remove the privileged function macro, but keep the PRIVILEGED_DATA - macro so applications can place data in privileged access sections - (useful when using statically allocated objects). */ - #define PRIVILEGED_FUNCTION - #define PRIVILEGED_DATA __attribute__((section("privileged_data"))) - #define FREERTOS_SYSTEM_CALL - - #else /* MPU_WRAPPERS_INCLUDED_FROM_API_FILE */ - - /* Ensure API functions go in the privileged execution section. */ - #define PRIVILEGED_FUNCTION __attribute__((section("privileged_functions"))) - #define PRIVILEGED_DATA __attribute__((section("privileged_data"))) - #define FREERTOS_SYSTEM_CALL __attribute__((section( "freertos_system_calls"))) - - #endif /* MPU_WRAPPERS_INCLUDED_FROM_API_FILE */ - -#else /* portUSING_MPU_WRAPPERS */ - - #define PRIVILEGED_FUNCTION - #define PRIVILEGED_DATA - #define FREERTOS_SYSTEM_CALL - #define portUSING_MPU_WRAPPERS 0 - -#endif /* portUSING_MPU_WRAPPERS */ - - -#endif /* MPU_WRAPPERS_H */ - diff --git a/Middlewares/Third_Party/FreeRTOS/Source/include/portable.h b/Middlewares/Third_Party/FreeRTOS/Source/include/portable.h deleted file mode 100644 index a2099c3..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/include/portable.h +++ /dev/null @@ -1,199 +0,0 @@ -/* - * FreeRTOS Kernel V10.3.1 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - -/*----------------------------------------------------------- - * Portable layer API. Each function must be defined for each port. - *----------------------------------------------------------*/ - -#ifndef PORTABLE_H -#define PORTABLE_H - -/* Each FreeRTOS port has a unique portmacro.h header file. Originally a -pre-processor definition was used to ensure the pre-processor found the correct -portmacro.h file for the port being used. That scheme was deprecated in favour -of setting the compiler's include path such that it found the correct -portmacro.h file - removing the need for the constant and allowing the -portmacro.h file to be located anywhere in relation to the port being used. -Purely for reasons of backward compatibility the old method is still valid, but -to make it clear that new projects should not use it, support for the port -specific constants has been moved into the deprecated_definitions.h header -file. */ -#include "deprecated_definitions.h" - -/* If portENTER_CRITICAL is not defined then including deprecated_definitions.h -did not result in a portmacro.h header file being included - and it should be -included here. In this case the path to the correct portmacro.h header file -must be set in the compiler's include path. */ -#ifndef portENTER_CRITICAL - #include "portmacro.h" -#endif - -#if portBYTE_ALIGNMENT == 32 - #define portBYTE_ALIGNMENT_MASK ( 0x001f ) -#endif - -#if portBYTE_ALIGNMENT == 16 - #define portBYTE_ALIGNMENT_MASK ( 0x000f ) -#endif - -#if portBYTE_ALIGNMENT == 8 - #define portBYTE_ALIGNMENT_MASK ( 0x0007 ) -#endif - -#if portBYTE_ALIGNMENT == 4 - #define portBYTE_ALIGNMENT_MASK ( 0x0003 ) -#endif - -#if portBYTE_ALIGNMENT == 2 - #define portBYTE_ALIGNMENT_MASK ( 0x0001 ) -#endif - -#if portBYTE_ALIGNMENT == 1 - #define portBYTE_ALIGNMENT_MASK ( 0x0000 ) -#endif - -#ifndef portBYTE_ALIGNMENT_MASK - #error "Invalid portBYTE_ALIGNMENT definition" -#endif - -#ifndef portNUM_CONFIGURABLE_REGIONS - #define portNUM_CONFIGURABLE_REGIONS 1 -#endif - -#ifndef portHAS_STACK_OVERFLOW_CHECKING - #define portHAS_STACK_OVERFLOW_CHECKING 0 -#endif - -#ifndef portARCH_NAME - #define portARCH_NAME NULL -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -#include "mpu_wrappers.h" - -/* - * Setup the stack of a new task so it is ready to be placed under the - * scheduler control. The registers have to be placed on the stack in - * the order that the port expects to find them. - * - */ -#if( portUSING_MPU_WRAPPERS == 1 ) - #if( portHAS_STACK_OVERFLOW_CHECKING == 1 ) - StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, StackType_t *pxEndOfStack, TaskFunction_t pxCode, void *pvParameters, BaseType_t xRunPrivileged ) PRIVILEGED_FUNCTION; - #else - StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters, BaseType_t xRunPrivileged ) PRIVILEGED_FUNCTION; - #endif -#else - #if( portHAS_STACK_OVERFLOW_CHECKING == 1 ) - StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, StackType_t *pxEndOfStack, TaskFunction_t pxCode, void *pvParameters ) PRIVILEGED_FUNCTION; - #else - StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters ) PRIVILEGED_FUNCTION; - #endif -#endif - -/* Used by heap_5.c to define the start address and size of each memory region -that together comprise the total FreeRTOS heap space. */ -typedef struct HeapRegion -{ - uint8_t *pucStartAddress; - size_t xSizeInBytes; -} HeapRegion_t; - -/* Used to pass information about the heap out of vPortGetHeapStats(). */ -typedef struct xHeapStats -{ - size_t xAvailableHeapSpaceInBytes; /* The total heap size currently available - this is the sum of all the free blocks, not the largest block that can be allocated. */ - size_t xSizeOfLargestFreeBlockInBytes; /* The maximum size, in bytes, of all the free blocks within the heap at the time vPortGetHeapStats() is called. */ - size_t xSizeOfSmallestFreeBlockInBytes; /* The minimum size, in bytes, of all the free blocks within the heap at the time vPortGetHeapStats() is called. */ - size_t xNumberOfFreeBlocks; /* The number of free memory blocks within the heap at the time vPortGetHeapStats() is called. */ - size_t xMinimumEverFreeBytesRemaining; /* The minimum amount of total free memory (sum of all free blocks) there has been in the heap since the system booted. */ - size_t xNumberOfSuccessfulAllocations; /* The number of calls to pvPortMalloc() that have returned a valid memory block. */ - size_t xNumberOfSuccessfulFrees; /* The number of calls to vPortFree() that has successfully freed a block of memory. */ -} HeapStats_t; - -/* - * Used to define multiple heap regions for use by heap_5.c. This function - * must be called before any calls to pvPortMalloc() - not creating a task, - * queue, semaphore, mutex, software timer, event group, etc. will result in - * pvPortMalloc being called. - * - * pxHeapRegions passes in an array of HeapRegion_t structures - each of which - * defines a region of memory that can be used as the heap. The array is - * terminated by a HeapRegions_t structure that has a size of 0. The region - * with the lowest start address must appear first in the array. - */ -void vPortDefineHeapRegions( const HeapRegion_t * const pxHeapRegions ) PRIVILEGED_FUNCTION; - -/* - * Returns a HeapStats_t structure filled with information about the current - * heap state. - */ -void vPortGetHeapStats( HeapStats_t *pxHeapStats ); - -/* - * Map to the memory management routines required for the port. - */ -void *pvPortMalloc( size_t xSize ) PRIVILEGED_FUNCTION; -void vPortFree( void *pv ) PRIVILEGED_FUNCTION; -void vPortInitialiseBlocks( void ) PRIVILEGED_FUNCTION; -size_t xPortGetFreeHeapSize( void ) PRIVILEGED_FUNCTION; -size_t xPortGetMinimumEverFreeHeapSize( void ) PRIVILEGED_FUNCTION; - -/* - * Setup the hardware ready for the scheduler to take control. This generally - * sets up a tick interrupt and sets timers for the correct tick frequency. - */ -BaseType_t xPortStartScheduler( void ) PRIVILEGED_FUNCTION; - -/* - * Undo any hardware/ISR setup that was performed by xPortStartScheduler() so - * the hardware is left in its original condition after the scheduler stops - * executing. - */ -void vPortEndScheduler( void ) PRIVILEGED_FUNCTION; - -/* - * The structures and methods of manipulating the MPU are contained within the - * port layer. - * - * Fills the xMPUSettings structure with the memory region information - * contained in xRegions. - */ -#if( portUSING_MPU_WRAPPERS == 1 ) - struct xMEMORY_REGION; - void vPortStoreTaskMPUSettings( xMPU_SETTINGS *xMPUSettings, const struct xMEMORY_REGION * const xRegions, StackType_t *pxBottomOfStack, uint32_t ulStackDepth ) PRIVILEGED_FUNCTION; -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* PORTABLE_H */ - diff --git a/Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h b/Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h deleted file mode 100644 index 0d95130..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h +++ /dev/null @@ -1,124 +0,0 @@ -/* - * FreeRTOS Kernel V10.3.1 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - -#ifndef PROJDEFS_H -#define PROJDEFS_H - -/* - * Defines the prototype to which task functions must conform. Defined in this - * file to ensure the type is known before portable.h is included. - */ -typedef void (*TaskFunction_t)( void * ); - -/* Converts a time in milliseconds to a time in ticks. This macro can be -overridden by a macro of the same name defined in FreeRTOSConfig.h in case the -definition here is not suitable for your application. */ -#ifndef pdMS_TO_TICKS - #define pdMS_TO_TICKS( xTimeInMs ) ( ( TickType_t ) ( ( ( TickType_t ) ( xTimeInMs ) * ( TickType_t ) configTICK_RATE_HZ ) / ( TickType_t ) 1000 ) ) -#endif - -#define pdFALSE ( ( BaseType_t ) 0 ) -#define pdTRUE ( ( BaseType_t ) 1 ) - -#define pdPASS ( pdTRUE ) -#define pdFAIL ( pdFALSE ) -#define errQUEUE_EMPTY ( ( BaseType_t ) 0 ) -#define errQUEUE_FULL ( ( BaseType_t ) 0 ) - -/* FreeRTOS error definitions. */ -#define errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY ( -1 ) -#define errQUEUE_BLOCKED ( -4 ) -#define errQUEUE_YIELD ( -5 ) - -/* Macros used for basic data corruption checks. */ -#ifndef configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES - #define configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES 0 -#endif - -#if( configUSE_16_BIT_TICKS == 1 ) - #define pdINTEGRITY_CHECK_VALUE 0x5a5a -#else - #define pdINTEGRITY_CHECK_VALUE 0x5a5a5a5aUL -#endif - -/* The following errno values are used by FreeRTOS+ components, not FreeRTOS -itself. */ -#define pdFREERTOS_ERRNO_NONE 0 /* No errors */ -#define pdFREERTOS_ERRNO_ENOENT 2 /* No such file or directory */ -#define pdFREERTOS_ERRNO_EINTR 4 /* Interrupted system call */ -#define pdFREERTOS_ERRNO_EIO 5 /* I/O error */ -#define pdFREERTOS_ERRNO_ENXIO 6 /* No such device or address */ -#define pdFREERTOS_ERRNO_EBADF 9 /* Bad file number */ -#define pdFREERTOS_ERRNO_EAGAIN 11 /* No more processes */ -#define pdFREERTOS_ERRNO_EWOULDBLOCK 11 /* Operation would block */ -#define pdFREERTOS_ERRNO_ENOMEM 12 /* Not enough memory */ -#define pdFREERTOS_ERRNO_EACCES 13 /* Permission denied */ -#define pdFREERTOS_ERRNO_EFAULT 14 /* Bad address */ -#define pdFREERTOS_ERRNO_EBUSY 16 /* Mount device busy */ -#define pdFREERTOS_ERRNO_EEXIST 17 /* File exists */ -#define pdFREERTOS_ERRNO_EXDEV 18 /* Cross-device link */ -#define pdFREERTOS_ERRNO_ENODEV 19 /* No such device */ -#define pdFREERTOS_ERRNO_ENOTDIR 20 /* Not a directory */ -#define pdFREERTOS_ERRNO_EISDIR 21 /* Is a directory */ -#define pdFREERTOS_ERRNO_EINVAL 22 /* Invalid argument */ -#define pdFREERTOS_ERRNO_ENOSPC 28 /* No space left on device */ -#define pdFREERTOS_ERRNO_ESPIPE 29 /* Illegal seek */ -#define pdFREERTOS_ERRNO_EROFS 30 /* Read only file system */ -#define pdFREERTOS_ERRNO_EUNATCH 42 /* Protocol driver not attached */ -#define pdFREERTOS_ERRNO_EBADE 50 /* Invalid exchange */ -#define pdFREERTOS_ERRNO_EFTYPE 79 /* Inappropriate file type or format */ -#define pdFREERTOS_ERRNO_ENMFILE 89 /* No more files */ -#define pdFREERTOS_ERRNO_ENOTEMPTY 90 /* Directory not empty */ -#define pdFREERTOS_ERRNO_ENAMETOOLONG 91 /* File or path name too long */ -#define pdFREERTOS_ERRNO_EOPNOTSUPP 95 /* Operation not supported on transport endpoint */ -#define pdFREERTOS_ERRNO_ENOBUFS 105 /* No buffer space available */ -#define pdFREERTOS_ERRNO_ENOPROTOOPT 109 /* Protocol not available */ -#define pdFREERTOS_ERRNO_EADDRINUSE 112 /* Address already in use */ -#define pdFREERTOS_ERRNO_ETIMEDOUT 116 /* Connection timed out */ -#define pdFREERTOS_ERRNO_EINPROGRESS 119 /* Connection already in progress */ -#define pdFREERTOS_ERRNO_EALREADY 120 /* Socket already connected */ -#define pdFREERTOS_ERRNO_EADDRNOTAVAIL 125 /* Address not available */ -#define pdFREERTOS_ERRNO_EISCONN 127 /* Socket is already connected */ -#define pdFREERTOS_ERRNO_ENOTCONN 128 /* Socket is not connected */ -#define pdFREERTOS_ERRNO_ENOMEDIUM 135 /* No medium inserted */ -#define pdFREERTOS_ERRNO_EILSEQ 138 /* An invalid UTF-16 sequence was encountered. */ -#define pdFREERTOS_ERRNO_ECANCELED 140 /* Operation canceled. */ - -/* The following endian values are used by FreeRTOS+ components, not FreeRTOS -itself. */ -#define pdFREERTOS_LITTLE_ENDIAN 0 -#define pdFREERTOS_BIG_ENDIAN 1 - -/* Re-defining endian values for generic naming. */ -#define pdLITTLE_ENDIAN pdFREERTOS_LITTLE_ENDIAN -#define pdBIG_ENDIAN pdFREERTOS_BIG_ENDIAN - - -#endif /* PROJDEFS_H */ - - - diff --git a/Middlewares/Third_Party/FreeRTOS/Source/include/queue.h b/Middlewares/Third_Party/FreeRTOS/Source/include/queue.h deleted file mode 100644 index 52ccca5..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/include/queue.h +++ /dev/null @@ -1,1655 +0,0 @@ -/* - * FreeRTOS Kernel V10.3.1 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - - -#ifndef QUEUE_H -#define QUEUE_H - -#ifndef INC_FREERTOS_H - #error "include FreeRTOS.h" must appear in source files before "include queue.h" -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -#include "task.h" - -/** - * Type by which queues are referenced. For example, a call to xQueueCreate() - * returns an QueueHandle_t variable that can then be used as a parameter to - * xQueueSend(), xQueueReceive(), etc. - */ -struct QueueDefinition; /* Using old naming convention so as not to break kernel aware debuggers. */ -typedef struct QueueDefinition * QueueHandle_t; - -/** - * Type by which queue sets are referenced. For example, a call to - * xQueueCreateSet() returns an xQueueSet variable that can then be used as a - * parameter to xQueueSelectFromSet(), xQueueAddToSet(), etc. - */ -typedef struct QueueDefinition * QueueSetHandle_t; - -/** - * Queue sets can contain both queues and semaphores, so the - * QueueSetMemberHandle_t is defined as a type to be used where a parameter or - * return value can be either an QueueHandle_t or an SemaphoreHandle_t. - */ -typedef struct QueueDefinition * QueueSetMemberHandle_t; - -/* For internal use only. */ -#define queueSEND_TO_BACK ( ( BaseType_t ) 0 ) -#define queueSEND_TO_FRONT ( ( BaseType_t ) 1 ) -#define queueOVERWRITE ( ( BaseType_t ) 2 ) - -/* For internal use only. These definitions *must* match those in queue.c. */ -#define queueQUEUE_TYPE_BASE ( ( uint8_t ) 0U ) -#define queueQUEUE_TYPE_SET ( ( uint8_t ) 0U ) -#define queueQUEUE_TYPE_MUTEX ( ( uint8_t ) 1U ) -#define queueQUEUE_TYPE_COUNTING_SEMAPHORE ( ( uint8_t ) 2U ) -#define queueQUEUE_TYPE_BINARY_SEMAPHORE ( ( uint8_t ) 3U ) -#define queueQUEUE_TYPE_RECURSIVE_MUTEX ( ( uint8_t ) 4U ) - -/** - * queue. h - *
- QueueHandle_t xQueueCreate(
-							  UBaseType_t uxQueueLength,
-							  UBaseType_t uxItemSize
-						  );
- * 
- * - * Creates a new queue instance, and returns a handle by which the new queue - * can be referenced. - * - * Internally, within the FreeRTOS implementation, queues use two blocks of - * memory. The first block is used to hold the queue's data structures. The - * second block is used to hold items placed into the queue. If a queue is - * created using xQueueCreate() then both blocks of memory are automatically - * dynamically allocated inside the xQueueCreate() function. (see - * http://www.freertos.org/a00111.html). If a queue is created using - * xQueueCreateStatic() then the application writer must provide the memory that - * will get used by the queue. xQueueCreateStatic() therefore allows a queue to - * be created without using any dynamic memory allocation. - * - * http://www.FreeRTOS.org/Embedded-RTOS-Queues.html - * - * @param uxQueueLength The maximum number of items that the queue can contain. - * - * @param uxItemSize The number of bytes each item in the queue will require. - * Items are queued by copy, not by reference, so this is the number of bytes - * that will be copied for each posted item. Each item on the queue must be - * the same size. - * - * @return If the queue is successfully create then a handle to the newly - * created queue is returned. If the queue cannot be created then 0 is - * returned. - * - * Example usage: -
- struct AMessage
- {
-	char ucMessageID;
-	char ucData[ 20 ];
- };
-
- void vATask( void *pvParameters )
- {
- QueueHandle_t xQueue1, xQueue2;
-
-	// Create a queue capable of containing 10 uint32_t values.
-	xQueue1 = xQueueCreate( 10, sizeof( uint32_t ) );
-	if( xQueue1 == 0 )
-	{
-		// Queue was not created and must not be used.
-	}
-
-	// Create a queue capable of containing 10 pointers to AMessage structures.
-	// These should be passed by pointer as they contain a lot of data.
-	xQueue2 = xQueueCreate( 10, sizeof( struct AMessage * ) );
-	if( xQueue2 == 0 )
-	{
-		// Queue was not created and must not be used.
-	}
-
-	// ... Rest of task code.
- }
- 
- * \defgroup xQueueCreate xQueueCreate - * \ingroup QueueManagement - */ -#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) - #define xQueueCreate( uxQueueLength, uxItemSize ) xQueueGenericCreate( ( uxQueueLength ), ( uxItemSize ), ( queueQUEUE_TYPE_BASE ) ) -#endif - -/** - * queue. h - *
- QueueHandle_t xQueueCreateStatic(
-							  UBaseType_t uxQueueLength,
-							  UBaseType_t uxItemSize,
-							  uint8_t *pucQueueStorageBuffer,
-							  StaticQueue_t *pxQueueBuffer
-						  );
- * 
- * - * Creates a new queue instance, and returns a handle by which the new queue - * can be referenced. - * - * Internally, within the FreeRTOS implementation, queues use two blocks of - * memory. The first block is used to hold the queue's data structures. The - * second block is used to hold items placed into the queue. If a queue is - * created using xQueueCreate() then both blocks of memory are automatically - * dynamically allocated inside the xQueueCreate() function. (see - * http://www.freertos.org/a00111.html). If a queue is created using - * xQueueCreateStatic() then the application writer must provide the memory that - * will get used by the queue. xQueueCreateStatic() therefore allows a queue to - * be created without using any dynamic memory allocation. - * - * http://www.FreeRTOS.org/Embedded-RTOS-Queues.html - * - * @param uxQueueLength The maximum number of items that the queue can contain. - * - * @param uxItemSize The number of bytes each item in the queue will require. - * Items are queued by copy, not by reference, so this is the number of bytes - * that will be copied for each posted item. Each item on the queue must be - * the same size. - * - * @param pucQueueStorageBuffer If uxItemSize is not zero then - * pucQueueStorageBuffer must point to a uint8_t array that is at least large - * enough to hold the maximum number of items that can be in the queue at any - * one time - which is ( uxQueueLength * uxItemsSize ) bytes. If uxItemSize is - * zero then pucQueueStorageBuffer can be NULL. - * - * @param pxQueueBuffer Must point to a variable of type StaticQueue_t, which - * will be used to hold the queue's data structure. - * - * @return If the queue is created then a handle to the created queue is - * returned. If pxQueueBuffer is NULL then NULL is returned. - * - * Example usage: -
- struct AMessage
- {
-	char ucMessageID;
-	char ucData[ 20 ];
- };
-
- #define QUEUE_LENGTH 10
- #define ITEM_SIZE sizeof( uint32_t )
-
- // xQueueBuffer will hold the queue structure.
- StaticQueue_t xQueueBuffer;
-
- // ucQueueStorage will hold the items posted to the queue.  Must be at least
- // [(queue length) * ( queue item size)] bytes long.
- uint8_t ucQueueStorage[ QUEUE_LENGTH * ITEM_SIZE ];
-
- void vATask( void *pvParameters )
- {
- QueueHandle_t xQueue1;
-
-	// Create a queue capable of containing 10 uint32_t values.
-	xQueue1 = xQueueCreate( QUEUE_LENGTH, // The number of items the queue can hold.
-							ITEM_SIZE	  // The size of each item in the queue
-							&( ucQueueStorage[ 0 ] ), // The buffer that will hold the items in the queue.
-							&xQueueBuffer ); // The buffer that will hold the queue structure.
-
-	// The queue is guaranteed to be created successfully as no dynamic memory
-	// allocation is used.  Therefore xQueue1 is now a handle to a valid queue.
-
-	// ... Rest of task code.
- }
- 
- * \defgroup xQueueCreateStatic xQueueCreateStatic - * \ingroup QueueManagement - */ -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) - #define xQueueCreateStatic( uxQueueLength, uxItemSize, pucQueueStorage, pxQueueBuffer ) xQueueGenericCreateStatic( ( uxQueueLength ), ( uxItemSize ), ( pucQueueStorage ), ( pxQueueBuffer ), ( queueQUEUE_TYPE_BASE ) ) -#endif /* configSUPPORT_STATIC_ALLOCATION */ - -/** - * queue. h - *
- BaseType_t xQueueSendToToFront(
-								   QueueHandle_t	xQueue,
-								   const void		*pvItemToQueue,
-								   TickType_t		xTicksToWait
-							   );
- * 
- * - * Post an item to the front of a queue. The item is queued by copy, not by - * reference. This function must not be called from an interrupt service - * routine. See xQueueSendFromISR () for an alternative which may be used - * in an ISR. - * - * @param xQueue The handle to the queue on which the item is to be posted. - * - * @param pvItemToQueue A pointer to the item that is to be placed on the - * queue. The size of the items the queue will hold was defined when the - * queue was created, so this many bytes will be copied from pvItemToQueue - * into the queue storage area. - * - * @param xTicksToWait The maximum amount of time the task should block - * waiting for space to become available on the queue, should it already - * be full. The call will return immediately if this is set to 0 and the - * queue is full. The time is defined in tick periods so the constant - * portTICK_PERIOD_MS should be used to convert to real time if this is required. - * - * @return pdTRUE if the item was successfully posted, otherwise errQUEUE_FULL. - * - * Example usage: -
- struct AMessage
- {
-	char ucMessageID;
-	char ucData[ 20 ];
- } xMessage;
-
- uint32_t ulVar = 10UL;
-
- void vATask( void *pvParameters )
- {
- QueueHandle_t xQueue1, xQueue2;
- struct AMessage *pxMessage;
-
-	// Create a queue capable of containing 10 uint32_t values.
-	xQueue1 = xQueueCreate( 10, sizeof( uint32_t ) );
-
-	// Create a queue capable of containing 10 pointers to AMessage structures.
-	// These should be passed by pointer as they contain a lot of data.
-	xQueue2 = xQueueCreate( 10, sizeof( struct AMessage * ) );
-
-	// ...
-
-	if( xQueue1 != 0 )
-	{
-		// Send an uint32_t.  Wait for 10 ticks for space to become
-		// available if necessary.
-		if( xQueueSendToFront( xQueue1, ( void * ) &ulVar, ( TickType_t ) 10 ) != pdPASS )
-		{
-			// Failed to post the message, even after 10 ticks.
-		}
-	}
-
-	if( xQueue2 != 0 )
-	{
-		// Send a pointer to a struct AMessage object.  Don't block if the
-		// queue is already full.
-		pxMessage = & xMessage;
-		xQueueSendToFront( xQueue2, ( void * ) &pxMessage, ( TickType_t ) 0 );
-	}
-
-	// ... Rest of task code.
- }
- 
- * \defgroup xQueueSend xQueueSend - * \ingroup QueueManagement - */ -#define xQueueSendToFront( xQueue, pvItemToQueue, xTicksToWait ) xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_FRONT ) - -/** - * queue. h - *
- BaseType_t xQueueSendToBack(
-								   QueueHandle_t	xQueue,
-								   const void		*pvItemToQueue,
-								   TickType_t		xTicksToWait
-							   );
- * 
- * - * This is a macro that calls xQueueGenericSend(). - * - * Post an item to the back of a queue. The item is queued by copy, not by - * reference. This function must not be called from an interrupt service - * routine. See xQueueSendFromISR () for an alternative which may be used - * in an ISR. - * - * @param xQueue The handle to the queue on which the item is to be posted. - * - * @param pvItemToQueue A pointer to the item that is to be placed on the - * queue. The size of the items the queue will hold was defined when the - * queue was created, so this many bytes will be copied from pvItemToQueue - * into the queue storage area. - * - * @param xTicksToWait The maximum amount of time the task should block - * waiting for space to become available on the queue, should it already - * be full. The call will return immediately if this is set to 0 and the queue - * is full. The time is defined in tick periods so the constant - * portTICK_PERIOD_MS should be used to convert to real time if this is required. - * - * @return pdTRUE if the item was successfully posted, otherwise errQUEUE_FULL. - * - * Example usage: -
- struct AMessage
- {
-	char ucMessageID;
-	char ucData[ 20 ];
- } xMessage;
-
- uint32_t ulVar = 10UL;
-
- void vATask( void *pvParameters )
- {
- QueueHandle_t xQueue1, xQueue2;
- struct AMessage *pxMessage;
-
-	// Create a queue capable of containing 10 uint32_t values.
-	xQueue1 = xQueueCreate( 10, sizeof( uint32_t ) );
-
-	// Create a queue capable of containing 10 pointers to AMessage structures.
-	// These should be passed by pointer as they contain a lot of data.
-	xQueue2 = xQueueCreate( 10, sizeof( struct AMessage * ) );
-
-	// ...
-
-	if( xQueue1 != 0 )
-	{
-		// Send an uint32_t.  Wait for 10 ticks for space to become
-		// available if necessary.
-		if( xQueueSendToBack( xQueue1, ( void * ) &ulVar, ( TickType_t ) 10 ) != pdPASS )
-		{
-			// Failed to post the message, even after 10 ticks.
-		}
-	}
-
-	if( xQueue2 != 0 )
-	{
-		// Send a pointer to a struct AMessage object.  Don't block if the
-		// queue is already full.
-		pxMessage = & xMessage;
-		xQueueSendToBack( xQueue2, ( void * ) &pxMessage, ( TickType_t ) 0 );
-	}
-
-	// ... Rest of task code.
- }
- 
- * \defgroup xQueueSend xQueueSend - * \ingroup QueueManagement - */ -#define xQueueSendToBack( xQueue, pvItemToQueue, xTicksToWait ) xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_BACK ) - -/** - * queue. h - *
- BaseType_t xQueueSend(
-							  QueueHandle_t xQueue,
-							  const void * pvItemToQueue,
-							  TickType_t xTicksToWait
-						 );
- * 
- * - * This is a macro that calls xQueueGenericSend(). It is included for - * backward compatibility with versions of FreeRTOS.org that did not - * include the xQueueSendToFront() and xQueueSendToBack() macros. It is - * equivalent to xQueueSendToBack(). - * - * Post an item on a queue. The item is queued by copy, not by reference. - * This function must not be called from an interrupt service routine. - * See xQueueSendFromISR () for an alternative which may be used in an ISR. - * - * @param xQueue The handle to the queue on which the item is to be posted. - * - * @param pvItemToQueue A pointer to the item that is to be placed on the - * queue. The size of the items the queue will hold was defined when the - * queue was created, so this many bytes will be copied from pvItemToQueue - * into the queue storage area. - * - * @param xTicksToWait The maximum amount of time the task should block - * waiting for space to become available on the queue, should it already - * be full. The call will return immediately if this is set to 0 and the - * queue is full. The time is defined in tick periods so the constant - * portTICK_PERIOD_MS should be used to convert to real time if this is required. - * - * @return pdTRUE if the item was successfully posted, otherwise errQUEUE_FULL. - * - * Example usage: -
- struct AMessage
- {
-	char ucMessageID;
-	char ucData[ 20 ];
- } xMessage;
-
- uint32_t ulVar = 10UL;
-
- void vATask( void *pvParameters )
- {
- QueueHandle_t xQueue1, xQueue2;
- struct AMessage *pxMessage;
-
-	// Create a queue capable of containing 10 uint32_t values.
-	xQueue1 = xQueueCreate( 10, sizeof( uint32_t ) );
-
-	// Create a queue capable of containing 10 pointers to AMessage structures.
-	// These should be passed by pointer as they contain a lot of data.
-	xQueue2 = xQueueCreate( 10, sizeof( struct AMessage * ) );
-
-	// ...
-
-	if( xQueue1 != 0 )
-	{
-		// Send an uint32_t.  Wait for 10 ticks for space to become
-		// available if necessary.
-		if( xQueueSend( xQueue1, ( void * ) &ulVar, ( TickType_t ) 10 ) != pdPASS )
-		{
-			// Failed to post the message, even after 10 ticks.
-		}
-	}
-
-	if( xQueue2 != 0 )
-	{
-		// Send a pointer to a struct AMessage object.  Don't block if the
-		// queue is already full.
-		pxMessage = & xMessage;
-		xQueueSend( xQueue2, ( void * ) &pxMessage, ( TickType_t ) 0 );
-	}
-
-	// ... Rest of task code.
- }
- 
- * \defgroup xQueueSend xQueueSend - * \ingroup QueueManagement - */ -#define xQueueSend( xQueue, pvItemToQueue, xTicksToWait ) xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_BACK ) - -/** - * queue. h - *
- BaseType_t xQueueOverwrite(
-							  QueueHandle_t xQueue,
-							  const void * pvItemToQueue
-						 );
- * 
- * - * Only for use with queues that have a length of one - so the queue is either - * empty or full. - * - * Post an item on a queue. If the queue is already full then overwrite the - * value held in the queue. The item is queued by copy, not by reference. - * - * This function must not be called from an interrupt service routine. - * See xQueueOverwriteFromISR () for an alternative which may be used in an ISR. - * - * @param xQueue The handle of the queue to which the data is being sent. - * - * @param pvItemToQueue A pointer to the item that is to be placed on the - * queue. The size of the items the queue will hold was defined when the - * queue was created, so this many bytes will be copied from pvItemToQueue - * into the queue storage area. - * - * @return xQueueOverwrite() is a macro that calls xQueueGenericSend(), and - * therefore has the same return values as xQueueSendToFront(). However, pdPASS - * is the only value that can be returned because xQueueOverwrite() will write - * to the queue even when the queue is already full. - * - * Example usage: -
-
- void vFunction( void *pvParameters )
- {
- QueueHandle_t xQueue;
- uint32_t ulVarToSend, ulValReceived;
-
-	// Create a queue to hold one uint32_t value.  It is strongly
-	// recommended *not* to use xQueueOverwrite() on queues that can
-	// contain more than one value, and doing so will trigger an assertion
-	// if configASSERT() is defined.
-	xQueue = xQueueCreate( 1, sizeof( uint32_t ) );
-
-	// Write the value 10 to the queue using xQueueOverwrite().
-	ulVarToSend = 10;
-	xQueueOverwrite( xQueue, &ulVarToSend );
-
-	// Peeking the queue should now return 10, but leave the value 10 in
-	// the queue.  A block time of zero is used as it is known that the
-	// queue holds a value.
-	ulValReceived = 0;
-	xQueuePeek( xQueue, &ulValReceived, 0 );
-
-	if( ulValReceived != 10 )
-	{
-		// Error unless the item was removed by a different task.
-	}
-
-	// The queue is still full.  Use xQueueOverwrite() to overwrite the
-	// value held in the queue with 100.
-	ulVarToSend = 100;
-	xQueueOverwrite( xQueue, &ulVarToSend );
-
-	// This time read from the queue, leaving the queue empty once more.
-	// A block time of 0 is used again.
-	xQueueReceive( xQueue, &ulValReceived, 0 );
-
-	// The value read should be the last value written, even though the
-	// queue was already full when the value was written.
-	if( ulValReceived != 100 )
-	{
-		// Error!
-	}
-
-	// ...
-}
- 
- * \defgroup xQueueOverwrite xQueueOverwrite - * \ingroup QueueManagement - */ -#define xQueueOverwrite( xQueue, pvItemToQueue ) xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), 0, queueOVERWRITE ) - - -/** - * queue. h - *
- BaseType_t xQueueGenericSend(
-									QueueHandle_t xQueue,
-									const void * pvItemToQueue,
-									TickType_t xTicksToWait
-									BaseType_t xCopyPosition
-								);
- * 
- * - * It is preferred that the macros xQueueSend(), xQueueSendToFront() and - * xQueueSendToBack() are used in place of calling this function directly. - * - * Post an item on a queue. The item is queued by copy, not by reference. - * This function must not be called from an interrupt service routine. - * See xQueueSendFromISR () for an alternative which may be used in an ISR. - * - * @param xQueue The handle to the queue on which the item is to be posted. - * - * @param pvItemToQueue A pointer to the item that is to be placed on the - * queue. The size of the items the queue will hold was defined when the - * queue was created, so this many bytes will be copied from pvItemToQueue - * into the queue storage area. - * - * @param xTicksToWait The maximum amount of time the task should block - * waiting for space to become available on the queue, should it already - * be full. The call will return immediately if this is set to 0 and the - * queue is full. The time is defined in tick periods so the constant - * portTICK_PERIOD_MS should be used to convert to real time if this is required. - * - * @param xCopyPosition Can take the value queueSEND_TO_BACK to place the - * item at the back of the queue, or queueSEND_TO_FRONT to place the item - * at the front of the queue (for high priority messages). - * - * @return pdTRUE if the item was successfully posted, otherwise errQUEUE_FULL. - * - * Example usage: -
- struct AMessage
- {
-	char ucMessageID;
-	char ucData[ 20 ];
- } xMessage;
-
- uint32_t ulVar = 10UL;
-
- void vATask( void *pvParameters )
- {
- QueueHandle_t xQueue1, xQueue2;
- struct AMessage *pxMessage;
-
-	// Create a queue capable of containing 10 uint32_t values.
-	xQueue1 = xQueueCreate( 10, sizeof( uint32_t ) );
-
-	// Create a queue capable of containing 10 pointers to AMessage structures.
-	// These should be passed by pointer as they contain a lot of data.
-	xQueue2 = xQueueCreate( 10, sizeof( struct AMessage * ) );
-
-	// ...
-
-	if( xQueue1 != 0 )
-	{
-		// Send an uint32_t.  Wait for 10 ticks for space to become
-		// available if necessary.
-		if( xQueueGenericSend( xQueue1, ( void * ) &ulVar, ( TickType_t ) 10, queueSEND_TO_BACK ) != pdPASS )
-		{
-			// Failed to post the message, even after 10 ticks.
-		}
-	}
-
-	if( xQueue2 != 0 )
-	{
-		// Send a pointer to a struct AMessage object.  Don't block if the
-		// queue is already full.
-		pxMessage = & xMessage;
-		xQueueGenericSend( xQueue2, ( void * ) &pxMessage, ( TickType_t ) 0, queueSEND_TO_BACK );
-	}
-
-	// ... Rest of task code.
- }
- 
- * \defgroup xQueueSend xQueueSend - * \ingroup QueueManagement - */ -BaseType_t xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition ) PRIVILEGED_FUNCTION; - -/** - * queue. h - *
- BaseType_t xQueuePeek(
-							 QueueHandle_t xQueue,
-							 void * const pvBuffer,
-							 TickType_t xTicksToWait
-						 );
- * - * Receive an item from a queue without removing the item from the queue. - * The item is received by copy so a buffer of adequate size must be - * provided. The number of bytes copied into the buffer was defined when - * the queue was created. - * - * Successfully received items remain on the queue so will be returned again - * by the next call, or a call to xQueueReceive(). - * - * This macro must not be used in an interrupt service routine. See - * xQueuePeekFromISR() for an alternative that can be called from an interrupt - * service routine. - * - * @param xQueue The handle to the queue from which the item is to be - * received. - * - * @param pvBuffer Pointer to the buffer into which the received item will - * be copied. - * - * @param xTicksToWait The maximum amount of time the task should block - * waiting for an item to receive should the queue be empty at the time - * of the call. The time is defined in tick periods so the constant - * portTICK_PERIOD_MS should be used to convert to real time if this is required. - * xQueuePeek() will return immediately if xTicksToWait is 0 and the queue - * is empty. - * - * @return pdTRUE if an item was successfully received from the queue, - * otherwise pdFALSE. - * - * Example usage: -
- struct AMessage
- {
-	char ucMessageID;
-	char ucData[ 20 ];
- } xMessage;
-
- QueueHandle_t xQueue;
-
- // Task to create a queue and post a value.
- void vATask( void *pvParameters )
- {
- struct AMessage *pxMessage;
-
-	// Create a queue capable of containing 10 pointers to AMessage structures.
-	// These should be passed by pointer as they contain a lot of data.
-	xQueue = xQueueCreate( 10, sizeof( struct AMessage * ) );
-	if( xQueue == 0 )
-	{
-		// Failed to create the queue.
-	}
-
-	// ...
-
-	// Send a pointer to a struct AMessage object.  Don't block if the
-	// queue is already full.
-	pxMessage = & xMessage;
-	xQueueSend( xQueue, ( void * ) &pxMessage, ( TickType_t ) 0 );
-
-	// ... Rest of task code.
- }
-
- // Task to peek the data from the queue.
- void vADifferentTask( void *pvParameters )
- {
- struct AMessage *pxRxedMessage;
-
-	if( xQueue != 0 )
-	{
-		// Peek a message on the created queue.  Block for 10 ticks if a
-		// message is not immediately available.
-		if( xQueuePeek( xQueue, &( pxRxedMessage ), ( TickType_t ) 10 ) )
-		{
-			// pcRxedMessage now points to the struct AMessage variable posted
-			// by vATask, but the item still remains on the queue.
-		}
-	}
-
-	// ... Rest of task code.
- }
- 
- * \defgroup xQueuePeek xQueuePeek - * \ingroup QueueManagement - */ -BaseType_t xQueuePeek( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; - -/** - * queue. h - *
- BaseType_t xQueuePeekFromISR(
-									QueueHandle_t xQueue,
-									void *pvBuffer,
-								);
- * - * A version of xQueuePeek() that can be called from an interrupt service - * routine (ISR). - * - * Receive an item from a queue without removing the item from the queue. - * The item is received by copy so a buffer of adequate size must be - * provided. The number of bytes copied into the buffer was defined when - * the queue was created. - * - * Successfully received items remain on the queue so will be returned again - * by the next call, or a call to xQueueReceive(). - * - * @param xQueue The handle to the queue from which the item is to be - * received. - * - * @param pvBuffer Pointer to the buffer into which the received item will - * be copied. - * - * @return pdTRUE if an item was successfully received from the queue, - * otherwise pdFALSE. - * - * \defgroup xQueuePeekFromISR xQueuePeekFromISR - * \ingroup QueueManagement - */ -BaseType_t xQueuePeekFromISR( QueueHandle_t xQueue, void * const pvBuffer ) PRIVILEGED_FUNCTION; - -/** - * queue. h - *
- BaseType_t xQueueReceive(
-								 QueueHandle_t xQueue,
-								 void *pvBuffer,
-								 TickType_t xTicksToWait
-							);
- * - * Receive an item from a queue. The item is received by copy so a buffer of - * adequate size must be provided. The number of bytes copied into the buffer - * was defined when the queue was created. - * - * Successfully received items are removed from the queue. - * - * This function must not be used in an interrupt service routine. See - * xQueueReceiveFromISR for an alternative that can. - * - * @param xQueue The handle to the queue from which the item is to be - * received. - * - * @param pvBuffer Pointer to the buffer into which the received item will - * be copied. - * - * @param xTicksToWait The maximum amount of time the task should block - * waiting for an item to receive should the queue be empty at the time - * of the call. xQueueReceive() will return immediately if xTicksToWait - * is zero and the queue is empty. The time is defined in tick periods so the - * constant portTICK_PERIOD_MS should be used to convert to real time if this is - * required. - * - * @return pdTRUE if an item was successfully received from the queue, - * otherwise pdFALSE. - * - * Example usage: -
- struct AMessage
- {
-	char ucMessageID;
-	char ucData[ 20 ];
- } xMessage;
-
- QueueHandle_t xQueue;
-
- // Task to create a queue and post a value.
- void vATask( void *pvParameters )
- {
- struct AMessage *pxMessage;
-
-	// Create a queue capable of containing 10 pointers to AMessage structures.
-	// These should be passed by pointer as they contain a lot of data.
-	xQueue = xQueueCreate( 10, sizeof( struct AMessage * ) );
-	if( xQueue == 0 )
-	{
-		// Failed to create the queue.
-	}
-
-	// ...
-
-	// Send a pointer to a struct AMessage object.  Don't block if the
-	// queue is already full.
-	pxMessage = & xMessage;
-	xQueueSend( xQueue, ( void * ) &pxMessage, ( TickType_t ) 0 );
-
-	// ... Rest of task code.
- }
-
- // Task to receive from the queue.
- void vADifferentTask( void *pvParameters )
- {
- struct AMessage *pxRxedMessage;
-
-	if( xQueue != 0 )
-	{
-		// Receive a message on the created queue.  Block for 10 ticks if a
-		// message is not immediately available.
-		if( xQueueReceive( xQueue, &( pxRxedMessage ), ( TickType_t ) 10 ) )
-		{
-			// pcRxedMessage now points to the struct AMessage variable posted
-			// by vATask.
-		}
-	}
-
-	// ... Rest of task code.
- }
- 
- * \defgroup xQueueReceive xQueueReceive - * \ingroup QueueManagement - */ -BaseType_t xQueueReceive( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; - -/** - * queue. h - *
UBaseType_t uxQueueMessagesWaiting( const QueueHandle_t xQueue );
- * - * Return the number of messages stored in a queue. - * - * @param xQueue A handle to the queue being queried. - * - * @return The number of messages available in the queue. - * - * \defgroup uxQueueMessagesWaiting uxQueueMessagesWaiting - * \ingroup QueueManagement - */ -UBaseType_t uxQueueMessagesWaiting( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; - -/** - * queue. h - *
UBaseType_t uxQueueSpacesAvailable( const QueueHandle_t xQueue );
- * - * Return the number of free spaces available in a queue. This is equal to the - * number of items that can be sent to the queue before the queue becomes full - * if no items are removed. - * - * @param xQueue A handle to the queue being queried. - * - * @return The number of spaces available in the queue. - * - * \defgroup uxQueueMessagesWaiting uxQueueMessagesWaiting - * \ingroup QueueManagement - */ -UBaseType_t uxQueueSpacesAvailable( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; - -/** - * queue. h - *
void vQueueDelete( QueueHandle_t xQueue );
- * - * Delete a queue - freeing all the memory allocated for storing of items - * placed on the queue. - * - * @param xQueue A handle to the queue to be deleted. - * - * \defgroup vQueueDelete vQueueDelete - * \ingroup QueueManagement - */ -void vQueueDelete( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; - -/** - * queue. h - *
- BaseType_t xQueueSendToFrontFromISR(
-										 QueueHandle_t xQueue,
-										 const void *pvItemToQueue,
-										 BaseType_t *pxHigherPriorityTaskWoken
-									  );
- 
- * - * This is a macro that calls xQueueGenericSendFromISR(). - * - * Post an item to the front of a queue. It is safe to use this macro from - * within an interrupt service routine. - * - * Items are queued by copy not reference so it is preferable to only - * queue small items, especially when called from an ISR. In most cases - * it would be preferable to store a pointer to the item being queued. - * - * @param xQueue The handle to the queue on which the item is to be posted. - * - * @param pvItemToQueue A pointer to the item that is to be placed on the - * queue. The size of the items the queue will hold was defined when the - * queue was created, so this many bytes will be copied from pvItemToQueue - * into the queue storage area. - * - * @param pxHigherPriorityTaskWoken xQueueSendToFrontFromISR() will set - * *pxHigherPriorityTaskWoken to pdTRUE if sending to the queue caused a task - * to unblock, and the unblocked task has a priority higher than the currently - * running task. If xQueueSendToFromFromISR() sets this value to pdTRUE then - * a context switch should be requested before the interrupt is exited. - * - * @return pdTRUE if the data was successfully sent to the queue, otherwise - * errQUEUE_FULL. - * - * Example usage for buffered IO (where the ISR can obtain more than one value - * per call): -
- void vBufferISR( void )
- {
- char cIn;
- BaseType_t xHigherPrioritTaskWoken;
-
-	// We have not woken a task at the start of the ISR.
-	xHigherPriorityTaskWoken = pdFALSE;
-
-	// Loop until the buffer is empty.
-	do
-	{
-		// Obtain a byte from the buffer.
-		cIn = portINPUT_BYTE( RX_REGISTER_ADDRESS );
-
-		// Post the byte.
-		xQueueSendToFrontFromISR( xRxQueue, &cIn, &xHigherPriorityTaskWoken );
-
-	} while( portINPUT_BYTE( BUFFER_COUNT ) );
-
-	// Now the buffer is empty we can switch context if necessary.
-	if( xHigherPriorityTaskWoken )
-	{
-		taskYIELD ();
-	}
- }
- 
- * - * \defgroup xQueueSendFromISR xQueueSendFromISR - * \ingroup QueueManagement - */ -#define xQueueSendToFrontFromISR( xQueue, pvItemToQueue, pxHigherPriorityTaskWoken ) xQueueGenericSendFromISR( ( xQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueSEND_TO_FRONT ) - - -/** - * queue. h - *
- BaseType_t xQueueSendToBackFromISR(
-										 QueueHandle_t xQueue,
-										 const void *pvItemToQueue,
-										 BaseType_t *pxHigherPriorityTaskWoken
-									  );
- 
- * - * This is a macro that calls xQueueGenericSendFromISR(). - * - * Post an item to the back of a queue. It is safe to use this macro from - * within an interrupt service routine. - * - * Items are queued by copy not reference so it is preferable to only - * queue small items, especially when called from an ISR. In most cases - * it would be preferable to store a pointer to the item being queued. - * - * @param xQueue The handle to the queue on which the item is to be posted. - * - * @param pvItemToQueue A pointer to the item that is to be placed on the - * queue. The size of the items the queue will hold was defined when the - * queue was created, so this many bytes will be copied from pvItemToQueue - * into the queue storage area. - * - * @param pxHigherPriorityTaskWoken xQueueSendToBackFromISR() will set - * *pxHigherPriorityTaskWoken to pdTRUE if sending to the queue caused a task - * to unblock, and the unblocked task has a priority higher than the currently - * running task. If xQueueSendToBackFromISR() sets this value to pdTRUE then - * a context switch should be requested before the interrupt is exited. - * - * @return pdTRUE if the data was successfully sent to the queue, otherwise - * errQUEUE_FULL. - * - * Example usage for buffered IO (where the ISR can obtain more than one value - * per call): -
- void vBufferISR( void )
- {
- char cIn;
- BaseType_t xHigherPriorityTaskWoken;
-
-	// We have not woken a task at the start of the ISR.
-	xHigherPriorityTaskWoken = pdFALSE;
-
-	// Loop until the buffer is empty.
-	do
-	{
-		// Obtain a byte from the buffer.
-		cIn = portINPUT_BYTE( RX_REGISTER_ADDRESS );
-
-		// Post the byte.
-		xQueueSendToBackFromISR( xRxQueue, &cIn, &xHigherPriorityTaskWoken );
-
-	} while( portINPUT_BYTE( BUFFER_COUNT ) );
-
-	// Now the buffer is empty we can switch context if necessary.
-	if( xHigherPriorityTaskWoken )
-	{
-		taskYIELD ();
-	}
- }
- 
- * - * \defgroup xQueueSendFromISR xQueueSendFromISR - * \ingroup QueueManagement - */ -#define xQueueSendToBackFromISR( xQueue, pvItemToQueue, pxHigherPriorityTaskWoken ) xQueueGenericSendFromISR( ( xQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueSEND_TO_BACK ) - -/** - * queue. h - *
- BaseType_t xQueueOverwriteFromISR(
-							  QueueHandle_t xQueue,
-							  const void * pvItemToQueue,
-							  BaseType_t *pxHigherPriorityTaskWoken
-						 );
- * 
- * - * A version of xQueueOverwrite() that can be used in an interrupt service - * routine (ISR). - * - * Only for use with queues that can hold a single item - so the queue is either - * empty or full. - * - * Post an item on a queue. If the queue is already full then overwrite the - * value held in the queue. The item is queued by copy, not by reference. - * - * @param xQueue The handle to the queue on which the item is to be posted. - * - * @param pvItemToQueue A pointer to the item that is to be placed on the - * queue. The size of the items the queue will hold was defined when the - * queue was created, so this many bytes will be copied from pvItemToQueue - * into the queue storage area. - * - * @param pxHigherPriorityTaskWoken xQueueOverwriteFromISR() will set - * *pxHigherPriorityTaskWoken to pdTRUE if sending to the queue caused a task - * to unblock, and the unblocked task has a priority higher than the currently - * running task. If xQueueOverwriteFromISR() sets this value to pdTRUE then - * a context switch should be requested before the interrupt is exited. - * - * @return xQueueOverwriteFromISR() is a macro that calls - * xQueueGenericSendFromISR(), and therefore has the same return values as - * xQueueSendToFrontFromISR(). However, pdPASS is the only value that can be - * returned because xQueueOverwriteFromISR() will write to the queue even when - * the queue is already full. - * - * Example usage: -
-
- QueueHandle_t xQueue;
-
- void vFunction( void *pvParameters )
- {
- 	// Create a queue to hold one uint32_t value.  It is strongly
-	// recommended *not* to use xQueueOverwriteFromISR() on queues that can
-	// contain more than one value, and doing so will trigger an assertion
-	// if configASSERT() is defined.
-	xQueue = xQueueCreate( 1, sizeof( uint32_t ) );
-}
-
-void vAnInterruptHandler( void )
-{
-// xHigherPriorityTaskWoken must be set to pdFALSE before it is used.
-BaseType_t xHigherPriorityTaskWoken = pdFALSE;
-uint32_t ulVarToSend, ulValReceived;
-
-	// Write the value 10 to the queue using xQueueOverwriteFromISR().
-	ulVarToSend = 10;
-	xQueueOverwriteFromISR( xQueue, &ulVarToSend, &xHigherPriorityTaskWoken );
-
-	// The queue is full, but calling xQueueOverwriteFromISR() again will still
-	// pass because the value held in the queue will be overwritten with the
-	// new value.
-	ulVarToSend = 100;
-	xQueueOverwriteFromISR( xQueue, &ulVarToSend, &xHigherPriorityTaskWoken );
-
-	// Reading from the queue will now return 100.
-
-	// ...
-
-	if( xHigherPrioritytaskWoken == pdTRUE )
-	{
-		// Writing to the queue caused a task to unblock and the unblocked task
-		// has a priority higher than or equal to the priority of the currently
-		// executing task (the task this interrupt interrupted).  Perform a context
-		// switch so this interrupt returns directly to the unblocked task.
-		portYIELD_FROM_ISR(); // or portEND_SWITCHING_ISR() depending on the port.
-	}
-}
- 
- * \defgroup xQueueOverwriteFromISR xQueueOverwriteFromISR - * \ingroup QueueManagement - */ -#define xQueueOverwriteFromISR( xQueue, pvItemToQueue, pxHigherPriorityTaskWoken ) xQueueGenericSendFromISR( ( xQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueOVERWRITE ) - -/** - * queue. h - *
- BaseType_t xQueueSendFromISR(
-									 QueueHandle_t xQueue,
-									 const void *pvItemToQueue,
-									 BaseType_t *pxHigherPriorityTaskWoken
-								);
- 
- * - * This is a macro that calls xQueueGenericSendFromISR(). It is included - * for backward compatibility with versions of FreeRTOS.org that did not - * include the xQueueSendToBackFromISR() and xQueueSendToFrontFromISR() - * macros. - * - * Post an item to the back of a queue. It is safe to use this function from - * within an interrupt service routine. - * - * Items are queued by copy not reference so it is preferable to only - * queue small items, especially when called from an ISR. In most cases - * it would be preferable to store a pointer to the item being queued. - * - * @param xQueue The handle to the queue on which the item is to be posted. - * - * @param pvItemToQueue A pointer to the item that is to be placed on the - * queue. The size of the items the queue will hold was defined when the - * queue was created, so this many bytes will be copied from pvItemToQueue - * into the queue storage area. - * - * @param pxHigherPriorityTaskWoken xQueueSendFromISR() will set - * *pxHigherPriorityTaskWoken to pdTRUE if sending to the queue caused a task - * to unblock, and the unblocked task has a priority higher than the currently - * running task. If xQueueSendFromISR() sets this value to pdTRUE then - * a context switch should be requested before the interrupt is exited. - * - * @return pdTRUE if the data was successfully sent to the queue, otherwise - * errQUEUE_FULL. - * - * Example usage for buffered IO (where the ISR can obtain more than one value - * per call): -
- void vBufferISR( void )
- {
- char cIn;
- BaseType_t xHigherPriorityTaskWoken;
-
-	// We have not woken a task at the start of the ISR.
-	xHigherPriorityTaskWoken = pdFALSE;
-
-	// Loop until the buffer is empty.
-	do
-	{
-		// Obtain a byte from the buffer.
-		cIn = portINPUT_BYTE( RX_REGISTER_ADDRESS );
-
-		// Post the byte.
-		xQueueSendFromISR( xRxQueue, &cIn, &xHigherPriorityTaskWoken );
-
-	} while( portINPUT_BYTE( BUFFER_COUNT ) );
-
-	// Now the buffer is empty we can switch context if necessary.
-	if( xHigherPriorityTaskWoken )
-	{
-		// Actual macro used here is port specific.
-		portYIELD_FROM_ISR ();
-	}
- }
- 
- * - * \defgroup xQueueSendFromISR xQueueSendFromISR - * \ingroup QueueManagement - */ -#define xQueueSendFromISR( xQueue, pvItemToQueue, pxHigherPriorityTaskWoken ) xQueueGenericSendFromISR( ( xQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueSEND_TO_BACK ) - -/** - * queue. h - *
- BaseType_t xQueueGenericSendFromISR(
-										   QueueHandle_t		xQueue,
-										   const	void	*pvItemToQueue,
-										   BaseType_t	*pxHigherPriorityTaskWoken,
-										   BaseType_t	xCopyPosition
-									   );
- 
- * - * It is preferred that the macros xQueueSendFromISR(), - * xQueueSendToFrontFromISR() and xQueueSendToBackFromISR() be used in place - * of calling this function directly. xQueueGiveFromISR() is an - * equivalent for use by semaphores that don't actually copy any data. - * - * Post an item on a queue. It is safe to use this function from within an - * interrupt service routine. - * - * Items are queued by copy not reference so it is preferable to only - * queue small items, especially when called from an ISR. In most cases - * it would be preferable to store a pointer to the item being queued. - * - * @param xQueue The handle to the queue on which the item is to be posted. - * - * @param pvItemToQueue A pointer to the item that is to be placed on the - * queue. The size of the items the queue will hold was defined when the - * queue was created, so this many bytes will be copied from pvItemToQueue - * into the queue storage area. - * - * @param pxHigherPriorityTaskWoken xQueueGenericSendFromISR() will set - * *pxHigherPriorityTaskWoken to pdTRUE if sending to the queue caused a task - * to unblock, and the unblocked task has a priority higher than the currently - * running task. If xQueueGenericSendFromISR() sets this value to pdTRUE then - * a context switch should be requested before the interrupt is exited. - * - * @param xCopyPosition Can take the value queueSEND_TO_BACK to place the - * item at the back of the queue, or queueSEND_TO_FRONT to place the item - * at the front of the queue (for high priority messages). - * - * @return pdTRUE if the data was successfully sent to the queue, otherwise - * errQUEUE_FULL. - * - * Example usage for buffered IO (where the ISR can obtain more than one value - * per call): -
- void vBufferISR( void )
- {
- char cIn;
- BaseType_t xHigherPriorityTaskWokenByPost;
-
-	// We have not woken a task at the start of the ISR.
-	xHigherPriorityTaskWokenByPost = pdFALSE;
-
-	// Loop until the buffer is empty.
-	do
-	{
-		// Obtain a byte from the buffer.
-		cIn = portINPUT_BYTE( RX_REGISTER_ADDRESS );
-
-		// Post each byte.
-		xQueueGenericSendFromISR( xRxQueue, &cIn, &xHigherPriorityTaskWokenByPost, queueSEND_TO_BACK );
-
-	} while( portINPUT_BYTE( BUFFER_COUNT ) );
-
-	// Now the buffer is empty we can switch context if necessary.  Note that the
-	// name of the yield function required is port specific.
-	if( xHigherPriorityTaskWokenByPost )
-	{
-		portYIELD_FROM_ISR();
-	}
- }
- 
- * - * \defgroup xQueueSendFromISR xQueueSendFromISR - * \ingroup QueueManagement - */ -BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue, const void * const pvItemToQueue, BaseType_t * const pxHigherPriorityTaskWoken, const BaseType_t xCopyPosition ) PRIVILEGED_FUNCTION; -BaseType_t xQueueGiveFromISR( QueueHandle_t xQueue, BaseType_t * const pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION; - -/** - * queue. h - *
- BaseType_t xQueueReceiveFromISR(
-									   QueueHandle_t	xQueue,
-									   void	*pvBuffer,
-									   BaseType_t *pxTaskWoken
-								   );
- * 
- * - * Receive an item from a queue. It is safe to use this function from within an - * interrupt service routine. - * - * @param xQueue The handle to the queue from which the item is to be - * received. - * - * @param pvBuffer Pointer to the buffer into which the received item will - * be copied. - * - * @param pxTaskWoken A task may be blocked waiting for space to become - * available on the queue. If xQueueReceiveFromISR causes such a task to - * unblock *pxTaskWoken will get set to pdTRUE, otherwise *pxTaskWoken will - * remain unchanged. - * - * @return pdTRUE if an item was successfully received from the queue, - * otherwise pdFALSE. - * - * Example usage: -
-
- QueueHandle_t xQueue;
-
- // Function to create a queue and post some values.
- void vAFunction( void *pvParameters )
- {
- char cValueToPost;
- const TickType_t xTicksToWait = ( TickType_t )0xff;
-
-	// Create a queue capable of containing 10 characters.
-	xQueue = xQueueCreate( 10, sizeof( char ) );
-	if( xQueue == 0 )
-	{
-		// Failed to create the queue.
-	}
-
-	// ...
-
-	// Post some characters that will be used within an ISR.  If the queue
-	// is full then this task will block for xTicksToWait ticks.
-	cValueToPost = 'a';
-	xQueueSend( xQueue, ( void * ) &cValueToPost, xTicksToWait );
-	cValueToPost = 'b';
-	xQueueSend( xQueue, ( void * ) &cValueToPost, xTicksToWait );
-
-	// ... keep posting characters ... this task may block when the queue
-	// becomes full.
-
-	cValueToPost = 'c';
-	xQueueSend( xQueue, ( void * ) &cValueToPost, xTicksToWait );
- }
-
- // ISR that outputs all the characters received on the queue.
- void vISR_Routine( void )
- {
- BaseType_t xTaskWokenByReceive = pdFALSE;
- char cRxedChar;
-
-	while( xQueueReceiveFromISR( xQueue, ( void * ) &cRxedChar, &xTaskWokenByReceive) )
-	{
-		// A character was received.  Output the character now.
-		vOutputCharacter( cRxedChar );
-
-		// If removing the character from the queue woke the task that was
-		// posting onto the queue cTaskWokenByReceive will have been set to
-		// pdTRUE.  No matter how many times this loop iterates only one
-		// task will be woken.
-	}
-
-	if( cTaskWokenByPost != ( char ) pdFALSE;
-	{
-		taskYIELD ();
-	}
- }
- 
- * \defgroup xQueueReceiveFromISR xQueueReceiveFromISR - * \ingroup QueueManagement - */ -BaseType_t xQueueReceiveFromISR( QueueHandle_t xQueue, void * const pvBuffer, BaseType_t * const pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION; - -/* - * Utilities to query queues that are safe to use from an ISR. These utilities - * should be used only from witin an ISR, or within a critical section. - */ -BaseType_t xQueueIsQueueEmptyFromISR( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; -BaseType_t xQueueIsQueueFullFromISR( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; -UBaseType_t uxQueueMessagesWaitingFromISR( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; - -/* - * The functions defined above are for passing data to and from tasks. The - * functions below are the equivalents for passing data to and from - * co-routines. - * - * These functions are called from the co-routine macro implementation and - * should not be called directly from application code. Instead use the macro - * wrappers defined within croutine.h. - */ -BaseType_t xQueueCRSendFromISR( QueueHandle_t xQueue, const void *pvItemToQueue, BaseType_t xCoRoutinePreviouslyWoken ); -BaseType_t xQueueCRReceiveFromISR( QueueHandle_t xQueue, void *pvBuffer, BaseType_t *pxTaskWoken ); -BaseType_t xQueueCRSend( QueueHandle_t xQueue, const void *pvItemToQueue, TickType_t xTicksToWait ); -BaseType_t xQueueCRReceive( QueueHandle_t xQueue, void *pvBuffer, TickType_t xTicksToWait ); - -/* - * For internal use only. Use xSemaphoreCreateMutex(), - * xSemaphoreCreateCounting() or xSemaphoreGetMutexHolder() instead of calling - * these functions directly. - */ -QueueHandle_t xQueueCreateMutex( const uint8_t ucQueueType ) PRIVILEGED_FUNCTION; -QueueHandle_t xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t *pxStaticQueue ) PRIVILEGED_FUNCTION; -QueueHandle_t xQueueCreateCountingSemaphore( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount ) PRIVILEGED_FUNCTION; -QueueHandle_t xQueueCreateCountingSemaphoreStatic( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount, StaticQueue_t *pxStaticQueue ) PRIVILEGED_FUNCTION; -BaseType_t xQueueSemaphoreTake( QueueHandle_t xQueue, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; -TaskHandle_t xQueueGetMutexHolder( QueueHandle_t xSemaphore ) PRIVILEGED_FUNCTION; -TaskHandle_t xQueueGetMutexHolderFromISR( QueueHandle_t xSemaphore ) PRIVILEGED_FUNCTION; - -/* - * For internal use only. Use xSemaphoreTakeMutexRecursive() or - * xSemaphoreGiveMutexRecursive() instead of calling these functions directly. - */ -BaseType_t xQueueTakeMutexRecursive( QueueHandle_t xMutex, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; -BaseType_t xQueueGiveMutexRecursive( QueueHandle_t xMutex ) PRIVILEGED_FUNCTION; - -/* - * Reset a queue back to its original empty state. The return value is now - * obsolete and is always set to pdPASS. - */ -#define xQueueReset( xQueue ) xQueueGenericReset( xQueue, pdFALSE ) - -/* - * The registry is provided as a means for kernel aware debuggers to - * locate queues, semaphores and mutexes. Call vQueueAddToRegistry() add - * a queue, semaphore or mutex handle to the registry if you want the handle - * to be available to a kernel aware debugger. If you are not using a kernel - * aware debugger then this function can be ignored. - * - * configQUEUE_REGISTRY_SIZE defines the maximum number of handles the - * registry can hold. configQUEUE_REGISTRY_SIZE must be greater than 0 - * within FreeRTOSConfig.h for the registry to be available. Its value - * does not effect the number of queues, semaphores and mutexes that can be - * created - just the number that the registry can hold. - * - * @param xQueue The handle of the queue being added to the registry. This - * is the handle returned by a call to xQueueCreate(). Semaphore and mutex - * handles can also be passed in here. - * - * @param pcName The name to be associated with the handle. This is the - * name that the kernel aware debugger will display. The queue registry only - * stores a pointer to the string - so the string must be persistent (global or - * preferably in ROM/Flash), not on the stack. - */ -#if( configQUEUE_REGISTRY_SIZE > 0 ) - void vQueueAddToRegistry( QueueHandle_t xQueue, const char *pcQueueName ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ -#endif - -/* - * The registry is provided as a means for kernel aware debuggers to - * locate queues, semaphores and mutexes. Call vQueueAddToRegistry() add - * a queue, semaphore or mutex handle to the registry if you want the handle - * to be available to a kernel aware debugger, and vQueueUnregisterQueue() to - * remove the queue, semaphore or mutex from the register. If you are not using - * a kernel aware debugger then this function can be ignored. - * - * @param xQueue The handle of the queue being removed from the registry. - */ -#if( configQUEUE_REGISTRY_SIZE > 0 ) - void vQueueUnregisterQueue( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; -#endif - -/* - * The queue registry is provided as a means for kernel aware debuggers to - * locate queues, semaphores and mutexes. Call pcQueueGetName() to look - * up and return the name of a queue in the queue registry from the queue's - * handle. - * - * @param xQueue The handle of the queue the name of which will be returned. - * @return If the queue is in the registry then a pointer to the name of the - * queue is returned. If the queue is not in the registry then NULL is - * returned. - */ -#if( configQUEUE_REGISTRY_SIZE > 0 ) - const char *pcQueueGetName( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ -#endif - -/* - * Generic version of the function used to creaet a queue using dynamic memory - * allocation. This is called by other functions and macros that create other - * RTOS objects that use the queue structure as their base. - */ -#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) - QueueHandle_t xQueueGenericCreate( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, const uint8_t ucQueueType ) PRIVILEGED_FUNCTION; -#endif - -/* - * Generic version of the function used to creaet a queue using dynamic memory - * allocation. This is called by other functions and macros that create other - * RTOS objects that use the queue structure as their base. - */ -#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 ) PRIVILEGED_FUNCTION; -#endif - -/* - * Queue sets provide a mechanism to allow a task to block (pend) on a read - * operation from multiple queues or semaphores simultaneously. - * - * See FreeRTOS/Source/Demo/Common/Minimal/QueueSet.c for an example using this - * function. - * - * A queue set must be explicitly created using a call to xQueueCreateSet() - * before it can be used. Once created, standard FreeRTOS queues and semaphores - * can be added to the set using calls to xQueueAddToSet(). - * xQueueSelectFromSet() is then used to determine which, if any, of the queues - * or semaphores contained in the set is in a state where a queue read or - * semaphore take operation would be successful. - * - * Note 1: See the documentation on http://wwwFreeRTOS.org/RTOS-queue-sets.html - * for reasons why queue sets are very rarely needed in practice as there are - * simpler methods of blocking on multiple objects. - * - * Note 2: Blocking on a queue set that contains a mutex will not cause the - * mutex holder to inherit the priority of the blocked task. - * - * Note 3: An additional 4 bytes of RAM is required for each space in a every - * queue added to a queue set. Therefore counting semaphores that have a high - * maximum count value should not be added to a queue set. - * - * Note 4: A receive (in the case of a queue) or take (in the case of a - * semaphore) operation must not be performed on a member of a queue set unless - * a call to xQueueSelectFromSet() has first returned a handle to that set member. - * - * @param uxEventQueueLength Queue sets store events that occur on - * the queues and semaphores contained in the set. uxEventQueueLength specifies - * the maximum number of events that can be queued at once. To be absolutely - * certain that events are not lost uxEventQueueLength should be set to the - * total sum of the length of the queues added to the set, where binary - * semaphores and mutexes have a length of 1, and counting semaphores have a - * length set by their maximum count value. Examples: - * + If a queue set is to hold a queue of length 5, another queue of length 12, - * and a binary semaphore, then uxEventQueueLength should be set to - * (5 + 12 + 1), or 18. - * + If a queue set is to hold three binary semaphores then uxEventQueueLength - * should be set to (1 + 1 + 1 ), or 3. - * + If a queue set is to hold a counting semaphore that has a maximum count of - * 5, and a counting semaphore that has a maximum count of 3, then - * uxEventQueueLength should be set to (5 + 3), or 8. - * - * @return If the queue set is created successfully then a handle to the created - * queue set is returned. Otherwise NULL is returned. - */ -QueueSetHandle_t xQueueCreateSet( const UBaseType_t uxEventQueueLength ) PRIVILEGED_FUNCTION; - -/* - * Adds a queue or semaphore to a queue set that was previously created by a - * call to xQueueCreateSet(). - * - * See FreeRTOS/Source/Demo/Common/Minimal/QueueSet.c for an example using this - * function. - * - * Note 1: A receive (in the case of a queue) or take (in the case of a - * semaphore) operation must not be performed on a member of a queue set unless - * a call to xQueueSelectFromSet() has first returned a handle to that set member. - * - * @param xQueueOrSemaphore The handle of the queue or semaphore being added to - * the queue set (cast to an QueueSetMemberHandle_t type). - * - * @param xQueueSet The handle of the queue set to which the queue or semaphore - * is being added. - * - * @return If the queue or semaphore was successfully added to the queue set - * then pdPASS is returned. If the queue could not be successfully added to the - * queue set because it is already a member of a different queue set then pdFAIL - * is returned. - */ -BaseType_t xQueueAddToSet( QueueSetMemberHandle_t xQueueOrSemaphore, QueueSetHandle_t xQueueSet ) PRIVILEGED_FUNCTION; - -/* - * Removes a queue or semaphore from a queue set. A queue or semaphore can only - * be removed from a set if the queue or semaphore is empty. - * - * See FreeRTOS/Source/Demo/Common/Minimal/QueueSet.c for an example using this - * function. - * - * @param xQueueOrSemaphore The handle of the queue or semaphore being removed - * from the queue set (cast to an QueueSetMemberHandle_t type). - * - * @param xQueueSet The handle of the queue set in which the queue or semaphore - * is included. - * - * @return If the queue or semaphore was successfully removed from the queue set - * then pdPASS is returned. If the queue was not in the queue set, or the - * queue (or semaphore) was not empty, then pdFAIL is returned. - */ -BaseType_t xQueueRemoveFromSet( QueueSetMemberHandle_t xQueueOrSemaphore, QueueSetHandle_t xQueueSet ) PRIVILEGED_FUNCTION; - -/* - * xQueueSelectFromSet() selects from the members of a queue set a queue or - * semaphore that either contains data (in the case of a queue) or is available - * to take (in the case of a semaphore). xQueueSelectFromSet() effectively - * allows a task to block (pend) on a read operation on all the queues and - * semaphores in a queue set simultaneously. - * - * See FreeRTOS/Source/Demo/Common/Minimal/QueueSet.c for an example using this - * function. - * - * Note 1: See the documentation on http://wwwFreeRTOS.org/RTOS-queue-sets.html - * for reasons why queue sets are very rarely needed in practice as there are - * simpler methods of blocking on multiple objects. - * - * Note 2: Blocking on a queue set that contains a mutex will not cause the - * mutex holder to inherit the priority of the blocked task. - * - * Note 3: A receive (in the case of a queue) or take (in the case of a - * semaphore) operation must not be performed on a member of a queue set unless - * a call to xQueueSelectFromSet() has first returned a handle to that set member. - * - * @param xQueueSet The queue set on which the task will (potentially) block. - * - * @param xTicksToWait The maximum time, in ticks, that the calling task will - * remain in the Blocked state (with other tasks executing) to wait for a member - * of the queue set to be ready for a successful queue read or semaphore take - * operation. - * - * @return xQueueSelectFromSet() will return the handle of a queue (cast to - * a QueueSetMemberHandle_t type) contained in the queue set that contains data, - * or the handle of a semaphore (cast to a QueueSetMemberHandle_t type) contained - * in the queue set that is available, or NULL if no such queue or semaphore - * exists before before the specified block time expires. - */ -QueueSetMemberHandle_t xQueueSelectFromSet( QueueSetHandle_t xQueueSet, const TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; - -/* - * A version of xQueueSelectFromSet() that can be used from an ISR. - */ -QueueSetMemberHandle_t xQueueSelectFromSetFromISR( QueueSetHandle_t xQueueSet ) PRIVILEGED_FUNCTION; - -/* Not public API functions. */ -void vQueueWaitForMessageRestricted( QueueHandle_t xQueue, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely ) PRIVILEGED_FUNCTION; -BaseType_t xQueueGenericReset( QueueHandle_t xQueue, BaseType_t xNewQueue ) PRIVILEGED_FUNCTION; -void vQueueSetQueueNumber( QueueHandle_t xQueue, UBaseType_t uxQueueNumber ) PRIVILEGED_FUNCTION; -UBaseType_t uxQueueGetQueueNumber( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; -uint8_t ucQueueGetQueueType( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; - - -#ifdef __cplusplus -} -#endif - -#endif /* QUEUE_H */ - diff --git a/Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h b/Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h deleted file mode 100644 index 787c791..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h +++ /dev/null @@ -1,1140 +0,0 @@ -/* - * FreeRTOS Kernel V10.3.1 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - -#ifndef SEMAPHORE_H -#define SEMAPHORE_H - -#ifndef INC_FREERTOS_H - #error "include FreeRTOS.h" must appear in source files before "include semphr.h" -#endif - -#include "queue.h" - -typedef QueueHandle_t SemaphoreHandle_t; - -#define semBINARY_SEMAPHORE_QUEUE_LENGTH ( ( uint8_t ) 1U ) -#define semSEMAPHORE_QUEUE_ITEM_LENGTH ( ( uint8_t ) 0U ) -#define semGIVE_BLOCK_TIME ( ( TickType_t ) 0U ) - - -/** - * semphr. h - *
vSemaphoreCreateBinary( SemaphoreHandle_t xSemaphore )
- * - * In many usage scenarios it is faster and more memory efficient to use a - * direct to task notification in place of a binary semaphore! - * http://www.freertos.org/RTOS-task-notifications.html - * - * This old vSemaphoreCreateBinary() macro is now deprecated in favour of the - * xSemaphoreCreateBinary() function. Note that binary semaphores created using - * the vSemaphoreCreateBinary() macro are created in a state such that the - * first call to 'take' the semaphore would pass, whereas binary semaphores - * created using xSemaphoreCreateBinary() are created in a state such that the - * the semaphore must first be 'given' before it can be 'taken'. - * - * Macro that implements a semaphore by using the existing queue mechanism. - * The queue length is 1 as this is a binary semaphore. The data size is 0 - * as we don't want to actually store any data - we just want to know if the - * queue is empty or full. - * - * This type of semaphore can be used for pure synchronisation between tasks or - * between an interrupt and a task. The semaphore need not be given back once - * obtained, so one task/interrupt can continuously 'give' the semaphore while - * another continuously 'takes' the semaphore. For this reason this type of - * semaphore does not use a priority inheritance mechanism. For an alternative - * that does use priority inheritance see xSemaphoreCreateMutex(). - * - * @param xSemaphore Handle to the created semaphore. Should be of type SemaphoreHandle_t. - * - * Example usage: -
- SemaphoreHandle_t xSemaphore = NULL;
-
- void vATask( void * pvParameters )
- {
-    // Semaphore cannot be used before a call to vSemaphoreCreateBinary ().
-    // This is a macro so pass the variable in directly.
-    vSemaphoreCreateBinary( xSemaphore );
-
-    if( xSemaphore != NULL )
-    {
-        // The semaphore was created successfully.
-        // The semaphore can now be used.
-    }
- }
- 
- * \defgroup vSemaphoreCreateBinary vSemaphoreCreateBinary - * \ingroup Semaphores - */ -#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) - #define vSemaphoreCreateBinary( xSemaphore ) \ - { \ - ( xSemaphore ) = xQueueGenericCreate( ( UBaseType_t ) 1, semSEMAPHORE_QUEUE_ITEM_LENGTH, queueQUEUE_TYPE_BINARY_SEMAPHORE ); \ - if( ( xSemaphore ) != NULL ) \ - { \ - ( void ) xSemaphoreGive( ( xSemaphore ) ); \ - } \ - } -#endif - -/** - * semphr. h - *
SemaphoreHandle_t xSemaphoreCreateBinary( void )
- * - * Creates a new binary semaphore instance, and returns a handle by which the - * new semaphore can be referenced. - * - * In many usage scenarios it is faster and more memory efficient to use a - * direct to task notification in place of a binary semaphore! - * http://www.freertos.org/RTOS-task-notifications.html - * - * Internally, within the FreeRTOS implementation, binary semaphores use a block - * of memory, in which the semaphore structure is stored. If a binary semaphore - * is created using xSemaphoreCreateBinary() then the required memory is - * automatically dynamically allocated inside the xSemaphoreCreateBinary() - * function. (see http://www.freertos.org/a00111.html). If a binary semaphore - * is created using xSemaphoreCreateBinaryStatic() then the application writer - * must provide the memory. xSemaphoreCreateBinaryStatic() therefore allows a - * binary semaphore to be created without using any dynamic memory allocation. - * - * The old vSemaphoreCreateBinary() macro is now deprecated in favour of this - * xSemaphoreCreateBinary() function. Note that binary semaphores created using - * the vSemaphoreCreateBinary() macro are created in a state such that the - * first call to 'take' the semaphore would pass, whereas binary semaphores - * created using xSemaphoreCreateBinary() are created in a state such that the - * the semaphore must first be 'given' before it can be 'taken'. - * - * This type of semaphore can be used for pure synchronisation between tasks or - * between an interrupt and a task. The semaphore need not be given back once - * obtained, so one task/interrupt can continuously 'give' the semaphore while - * another continuously 'takes' the semaphore. For this reason this type of - * semaphore does not use a priority inheritance mechanism. For an alternative - * that does use priority inheritance see xSemaphoreCreateMutex(). - * - * @return Handle to the created semaphore, or NULL if the memory required to - * hold the semaphore's data structures could not be allocated. - * - * Example usage: -
- SemaphoreHandle_t xSemaphore = NULL;
-
- void vATask( void * pvParameters )
- {
-    // Semaphore cannot be used before a call to xSemaphoreCreateBinary().
-    // This is a macro so pass the variable in directly.
-    xSemaphore = xSemaphoreCreateBinary();
-
-    if( xSemaphore != NULL )
-    {
-        // The semaphore was created successfully.
-        // The semaphore can now be used.
-    }
- }
- 
- * \defgroup xSemaphoreCreateBinary xSemaphoreCreateBinary - * \ingroup Semaphores - */ -#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) - #define xSemaphoreCreateBinary() xQueueGenericCreate( ( UBaseType_t ) 1, semSEMAPHORE_QUEUE_ITEM_LENGTH, queueQUEUE_TYPE_BINARY_SEMAPHORE ) -#endif - -/** - * semphr. h - *
SemaphoreHandle_t xSemaphoreCreateBinaryStatic( StaticSemaphore_t *pxSemaphoreBuffer )
- * - * Creates a new binary semaphore instance, and returns a handle by which the - * new semaphore can be referenced. - * - * NOTE: In many usage scenarios it is faster and more memory efficient to use a - * direct to task notification in place of a binary semaphore! - * http://www.freertos.org/RTOS-task-notifications.html - * - * Internally, within the FreeRTOS implementation, binary semaphores use a block - * of memory, in which the semaphore structure is stored. If a binary semaphore - * is created using xSemaphoreCreateBinary() then the required memory is - * automatically dynamically allocated inside the xSemaphoreCreateBinary() - * function. (see http://www.freertos.org/a00111.html). If a binary semaphore - * is created using xSemaphoreCreateBinaryStatic() then the application writer - * must provide the memory. xSemaphoreCreateBinaryStatic() therefore allows a - * binary semaphore to be created without using any dynamic memory allocation. - * - * This type of semaphore can be used for pure synchronisation between tasks or - * between an interrupt and a task. The semaphore need not be given back once - * obtained, so one task/interrupt can continuously 'give' the semaphore while - * another continuously 'takes' the semaphore. For this reason this type of - * semaphore does not use a priority inheritance mechanism. For an alternative - * that does use priority inheritance see xSemaphoreCreateMutex(). - * - * @param pxSemaphoreBuffer Must point to a variable of type StaticSemaphore_t, - * which will then be used to hold the semaphore's data structure, removing the - * need for the memory to be allocated dynamically. - * - * @return If the semaphore is created then a handle to the created semaphore is - * returned. If pxSemaphoreBuffer is NULL then NULL is returned. - * - * Example usage: -
- SemaphoreHandle_t xSemaphore = NULL;
- StaticSemaphore_t xSemaphoreBuffer;
-
- void vATask( void * pvParameters )
- {
-    // Semaphore cannot be used before a call to xSemaphoreCreateBinary().
-    // The semaphore's data structures will be placed in the xSemaphoreBuffer
-    // variable, the address of which is passed into the function.  The
-    // function's parameter is not NULL, so the function will not attempt any
-    // dynamic memory allocation, and therefore the function will not return
-    // return NULL.
-    xSemaphore = xSemaphoreCreateBinary( &xSemaphoreBuffer );
-
-    // Rest of task code goes here.
- }
- 
- * \defgroup xSemaphoreCreateBinaryStatic xSemaphoreCreateBinaryStatic - * \ingroup Semaphores - */ -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) - #define xSemaphoreCreateBinaryStatic( pxStaticSemaphore ) xQueueGenericCreateStatic( ( UBaseType_t ) 1, semSEMAPHORE_QUEUE_ITEM_LENGTH, NULL, pxStaticSemaphore, queueQUEUE_TYPE_BINARY_SEMAPHORE ) -#endif /* configSUPPORT_STATIC_ALLOCATION */ - -/** - * semphr. h - *
xSemaphoreTake(
- *                   SemaphoreHandle_t xSemaphore,
- *                   TickType_t xBlockTime
- *               )
- * - * Macro to obtain a semaphore. The semaphore must have previously been - * created with a call to xSemaphoreCreateBinary(), xSemaphoreCreateMutex() or - * xSemaphoreCreateCounting(). - * - * @param xSemaphore A handle to the semaphore being taken - obtained when - * the semaphore was created. - * - * @param xBlockTime The time in ticks to wait for the semaphore to become - * available. The macro portTICK_PERIOD_MS can be used to convert this to a - * real time. A block time of zero can be used to poll the semaphore. A block - * time of portMAX_DELAY can be used to block indefinitely (provided - * INCLUDE_vTaskSuspend is set to 1 in FreeRTOSConfig.h). - * - * @return pdTRUE if the semaphore was obtained. pdFALSE - * if xBlockTime expired without the semaphore becoming available. - * - * Example usage: -
- SemaphoreHandle_t xSemaphore = NULL;
-
- // A task that creates a semaphore.
- void vATask( void * pvParameters )
- {
-    // Create the semaphore to guard a shared resource.
-    xSemaphore = xSemaphoreCreateBinary();
- }
-
- // A task that uses the semaphore.
- void vAnotherTask( void * pvParameters )
- {
-    // ... Do other things.
-
-    if( xSemaphore != NULL )
-    {
-        // See if we can obtain the semaphore.  If the semaphore is not available
-        // wait 10 ticks to see if it becomes free.
-        if( xSemaphoreTake( xSemaphore, ( TickType_t ) 10 ) == pdTRUE )
-        {
-            // We were able to obtain the semaphore and can now access the
-            // shared resource.
-
-            // ...
-
-            // We have finished accessing the shared resource.  Release the
-            // semaphore.
-            xSemaphoreGive( xSemaphore );
-        }
-        else
-        {
-            // We could not obtain the semaphore and can therefore not access
-            // the shared resource safely.
-        }
-    }
- }
- 
- * \defgroup xSemaphoreTake xSemaphoreTake - * \ingroup Semaphores - */ -#define xSemaphoreTake( xSemaphore, xBlockTime ) xQueueSemaphoreTake( ( xSemaphore ), ( xBlockTime ) ) - -/** - * semphr. h - * xSemaphoreTakeRecursive( - * SemaphoreHandle_t xMutex, - * TickType_t xBlockTime - * ) - * - * Macro to recursively obtain, or 'take', a mutex type semaphore. - * The mutex must have previously been created using a call to - * xSemaphoreCreateRecursiveMutex(); - * - * configUSE_RECURSIVE_MUTEXES must be set to 1 in FreeRTOSConfig.h for this - * macro to be available. - * - * This macro must not be used on mutexes created using xSemaphoreCreateMutex(). - * - * A mutex used recursively can be 'taken' repeatedly by the owner. The mutex - * doesn't become available again until the owner has called - * xSemaphoreGiveRecursive() for each successful 'take' request. For example, - * if a task successfully 'takes' the same mutex 5 times then the mutex will - * not be available to any other task until it has also 'given' the mutex back - * exactly five times. - * - * @param xMutex A handle to the mutex being obtained. This is the - * handle returned by xSemaphoreCreateRecursiveMutex(); - * - * @param xBlockTime The time in ticks to wait for the semaphore to become - * available. The macro portTICK_PERIOD_MS can be used to convert this to a - * real time. A block time of zero can be used to poll the semaphore. If - * the task already owns the semaphore then xSemaphoreTakeRecursive() will - * return immediately no matter what the value of xBlockTime. - * - * @return pdTRUE if the semaphore was obtained. pdFALSE if xBlockTime - * expired without the semaphore becoming available. - * - * Example usage: -
- SemaphoreHandle_t xMutex = NULL;
-
- // A task that creates a mutex.
- void vATask( void * pvParameters )
- {
-    // Create the mutex to guard a shared resource.
-    xMutex = xSemaphoreCreateRecursiveMutex();
- }
-
- // A task that uses the mutex.
- void vAnotherTask( void * pvParameters )
- {
-    // ... Do other things.
-
-    if( xMutex != NULL )
-    {
-        // See if we can obtain the mutex.  If the mutex is not available
-        // wait 10 ticks to see if it becomes free.
-        if( xSemaphoreTakeRecursive( xSemaphore, ( TickType_t ) 10 ) == pdTRUE )
-        {
-            // We were able to obtain the mutex and can now access the
-            // shared resource.
-
-            // ...
-            // For some reason due to the nature of the code further calls to
-            // xSemaphoreTakeRecursive() are made on the same mutex.  In real
-            // code these would not be just sequential calls as this would make
-            // no sense.  Instead the calls are likely to be buried inside
-            // a more complex call structure.
-            xSemaphoreTakeRecursive( xMutex, ( TickType_t ) 10 );
-            xSemaphoreTakeRecursive( xMutex, ( TickType_t ) 10 );
-
-            // The mutex has now been 'taken' three times, so will not be
-            // available to another task until it has also been given back
-            // three times.  Again it is unlikely that real code would have
-            // these calls sequentially, but instead buried in a more complex
-            // call structure.  This is just for illustrative purposes.
-            xSemaphoreGiveRecursive( xMutex );
-            xSemaphoreGiveRecursive( xMutex );
-            xSemaphoreGiveRecursive( xMutex );
-
-            // Now the mutex can be taken by other tasks.
-        }
-        else
-        {
-            // We could not obtain the mutex and can therefore not access
-            // the shared resource safely.
-        }
-    }
- }
- 
- * \defgroup xSemaphoreTakeRecursive xSemaphoreTakeRecursive - * \ingroup Semaphores - */ -#if( configUSE_RECURSIVE_MUTEXES == 1 ) - #define xSemaphoreTakeRecursive( xMutex, xBlockTime ) xQueueTakeMutexRecursive( ( xMutex ), ( xBlockTime ) ) -#endif - -/** - * semphr. h - *
xSemaphoreGive( SemaphoreHandle_t xSemaphore )
- * - * Macro to release a semaphore. The semaphore must have previously been - * created with a call to xSemaphoreCreateBinary(), xSemaphoreCreateMutex() or - * xSemaphoreCreateCounting(). and obtained using sSemaphoreTake(). - * - * This macro must not be used from an ISR. See xSemaphoreGiveFromISR () for - * an alternative which can be used from an ISR. - * - * This macro must also not be used on semaphores created using - * xSemaphoreCreateRecursiveMutex(). - * - * @param xSemaphore A handle to the semaphore being released. This is the - * handle returned when the semaphore was created. - * - * @return pdTRUE if the semaphore was released. pdFALSE if an error occurred. - * Semaphores are implemented using queues. An error can occur if there is - * no space on the queue to post a message - indicating that the - * semaphore was not first obtained correctly. - * - * Example usage: -
- SemaphoreHandle_t xSemaphore = NULL;
-
- void vATask( void * pvParameters )
- {
-    // Create the semaphore to guard a shared resource.
-    xSemaphore = vSemaphoreCreateBinary();
-
-    if( xSemaphore != NULL )
-    {
-        if( xSemaphoreGive( xSemaphore ) != pdTRUE )
-        {
-            // We would expect this call to fail because we cannot give
-            // a semaphore without first "taking" it!
-        }
-
-        // Obtain the semaphore - don't block if the semaphore is not
-        // immediately available.
-        if( xSemaphoreTake( xSemaphore, ( TickType_t ) 0 ) )
-        {
-            // We now have the semaphore and can access the shared resource.
-
-            // ...
-
-            // We have finished accessing the shared resource so can free the
-            // semaphore.
-            if( xSemaphoreGive( xSemaphore ) != pdTRUE )
-            {
-                // We would not expect this call to fail because we must have
-                // obtained the semaphore to get here.
-            }
-        }
-    }
- }
- 
- * \defgroup xSemaphoreGive xSemaphoreGive - * \ingroup Semaphores - */ -#define xSemaphoreGive( xSemaphore ) xQueueGenericSend( ( QueueHandle_t ) ( xSemaphore ), NULL, semGIVE_BLOCK_TIME, queueSEND_TO_BACK ) - -/** - * semphr. h - *
xSemaphoreGiveRecursive( SemaphoreHandle_t xMutex )
- * - * Macro to recursively release, or 'give', a mutex type semaphore. - * The mutex must have previously been created using a call to - * xSemaphoreCreateRecursiveMutex(); - * - * configUSE_RECURSIVE_MUTEXES must be set to 1 in FreeRTOSConfig.h for this - * macro to be available. - * - * This macro must not be used on mutexes created using xSemaphoreCreateMutex(). - * - * A mutex used recursively can be 'taken' repeatedly by the owner. The mutex - * doesn't become available again until the owner has called - * xSemaphoreGiveRecursive() for each successful 'take' request. For example, - * if a task successfully 'takes' the same mutex 5 times then the mutex will - * not be available to any other task until it has also 'given' the mutex back - * exactly five times. - * - * @param xMutex A handle to the mutex being released, or 'given'. This is the - * handle returned by xSemaphoreCreateMutex(); - * - * @return pdTRUE if the semaphore was given. - * - * Example usage: -
- SemaphoreHandle_t xMutex = NULL;
-
- // A task that creates a mutex.
- void vATask( void * pvParameters )
- {
-    // Create the mutex to guard a shared resource.
-    xMutex = xSemaphoreCreateRecursiveMutex();
- }
-
- // A task that uses the mutex.
- void vAnotherTask( void * pvParameters )
- {
-    // ... Do other things.
-
-    if( xMutex != NULL )
-    {
-        // See if we can obtain the mutex.  If the mutex is not available
-        // wait 10 ticks to see if it becomes free.
-        if( xSemaphoreTakeRecursive( xMutex, ( TickType_t ) 10 ) == pdTRUE )
-        {
-            // We were able to obtain the mutex and can now access the
-            // shared resource.
-
-            // ...
-            // For some reason due to the nature of the code further calls to
-			// xSemaphoreTakeRecursive() are made on the same mutex.  In real
-			// code these would not be just sequential calls as this would make
-			// no sense.  Instead the calls are likely to be buried inside
-			// a more complex call structure.
-            xSemaphoreTakeRecursive( xMutex, ( TickType_t ) 10 );
-            xSemaphoreTakeRecursive( xMutex, ( TickType_t ) 10 );
-
-            // The mutex has now been 'taken' three times, so will not be
-			// available to another task until it has also been given back
-			// three times.  Again it is unlikely that real code would have
-			// these calls sequentially, it would be more likely that the calls
-			// to xSemaphoreGiveRecursive() would be called as a call stack
-			// unwound.  This is just for demonstrative purposes.
-            xSemaphoreGiveRecursive( xMutex );
-			xSemaphoreGiveRecursive( xMutex );
-			xSemaphoreGiveRecursive( xMutex );
-
-			// Now the mutex can be taken by other tasks.
-        }
-        else
-        {
-            // We could not obtain the mutex and can therefore not access
-            // the shared resource safely.
-        }
-    }
- }
- 
- * \defgroup xSemaphoreGiveRecursive xSemaphoreGiveRecursive - * \ingroup Semaphores - */ -#if( configUSE_RECURSIVE_MUTEXES == 1 ) - #define xSemaphoreGiveRecursive( xMutex ) xQueueGiveMutexRecursive( ( xMutex ) ) -#endif - -/** - * semphr. h - *
- xSemaphoreGiveFromISR(
-                          SemaphoreHandle_t xSemaphore,
-                          BaseType_t *pxHigherPriorityTaskWoken
-                      )
- * - * Macro to release a semaphore. The semaphore must have previously been - * created with a call to xSemaphoreCreateBinary() or xSemaphoreCreateCounting(). - * - * Mutex type semaphores (those created using a call to xSemaphoreCreateMutex()) - * must not be used with this macro. - * - * This macro can be used from an ISR. - * - * @param xSemaphore A handle to the semaphore being released. This is the - * handle returned when the semaphore was created. - * - * @param pxHigherPriorityTaskWoken xSemaphoreGiveFromISR() will set - * *pxHigherPriorityTaskWoken to pdTRUE if giving the semaphore caused a task - * to unblock, and the unblocked task has a priority higher than the currently - * running task. If xSemaphoreGiveFromISR() sets this value to pdTRUE then - * a context switch should be requested before the interrupt is exited. - * - * @return pdTRUE if the semaphore was successfully given, otherwise errQUEUE_FULL. - * - * Example usage: -
- \#define LONG_TIME 0xffff
- \#define TICKS_TO_WAIT	10
- SemaphoreHandle_t xSemaphore = NULL;
-
- // Repetitive task.
- void vATask( void * pvParameters )
- {
-    for( ;; )
-    {
-        // We want this task to run every 10 ticks of a timer.  The semaphore
-        // was created before this task was started.
-
-        // Block waiting for the semaphore to become available.
-        if( xSemaphoreTake( xSemaphore, LONG_TIME ) == pdTRUE )
-        {
-            // It is time to execute.
-
-            // ...
-
-            // We have finished our task.  Return to the top of the loop where
-            // we will block on the semaphore until it is time to execute
-            // again.  Note when using the semaphore for synchronisation with an
-			// ISR in this manner there is no need to 'give' the semaphore back.
-        }
-    }
- }
-
- // Timer ISR
- void vTimerISR( void * pvParameters )
- {
- static uint8_t ucLocalTickCount = 0;
- static BaseType_t xHigherPriorityTaskWoken;
-
-    // A timer tick has occurred.
-
-    // ... Do other time functions.
-
-    // Is it time for vATask () to run?
-	xHigherPriorityTaskWoken = pdFALSE;
-    ucLocalTickCount++;
-    if( ucLocalTickCount >= TICKS_TO_WAIT )
-    {
-        // Unblock the task by releasing the semaphore.
-        xSemaphoreGiveFromISR( xSemaphore, &xHigherPriorityTaskWoken );
-
-        // Reset the count so we release the semaphore again in 10 ticks time.
-        ucLocalTickCount = 0;
-    }
-
-    if( xHigherPriorityTaskWoken != pdFALSE )
-    {
-        // We can force a context switch here.  Context switching from an
-        // ISR uses port specific syntax.  Check the demo task for your port
-        // to find the syntax required.
-    }
- }
- 
- * \defgroup xSemaphoreGiveFromISR xSemaphoreGiveFromISR - * \ingroup Semaphores - */ -#define xSemaphoreGiveFromISR( xSemaphore, pxHigherPriorityTaskWoken ) xQueueGiveFromISR( ( QueueHandle_t ) ( xSemaphore ), ( pxHigherPriorityTaskWoken ) ) - -/** - * semphr. h - *
- xSemaphoreTakeFromISR(
-                          SemaphoreHandle_t xSemaphore,
-                          BaseType_t *pxHigherPriorityTaskWoken
-                      )
- * - * Macro to take a semaphore from an ISR. The semaphore must have - * previously been created with a call to xSemaphoreCreateBinary() or - * xSemaphoreCreateCounting(). - * - * Mutex type semaphores (those created using a call to xSemaphoreCreateMutex()) - * must not be used with this macro. - * - * This macro can be used from an ISR, however taking a semaphore from an ISR - * is not a common operation. It is likely to only be useful when taking a - * counting semaphore when an interrupt is obtaining an object from a resource - * pool (when the semaphore count indicates the number of resources available). - * - * @param xSemaphore A handle to the semaphore being taken. This is the - * handle returned when the semaphore was created. - * - * @param pxHigherPriorityTaskWoken xSemaphoreTakeFromISR() will set - * *pxHigherPriorityTaskWoken to pdTRUE if taking the semaphore caused a task - * to unblock, and the unblocked task has a priority higher than the currently - * running task. If xSemaphoreTakeFromISR() sets this value to pdTRUE then - * a context switch should be requested before the interrupt is exited. - * - * @return pdTRUE if the semaphore was successfully taken, otherwise - * pdFALSE - */ -#define xSemaphoreTakeFromISR( xSemaphore, pxHigherPriorityTaskWoken ) xQueueReceiveFromISR( ( QueueHandle_t ) ( xSemaphore ), NULL, ( pxHigherPriorityTaskWoken ) ) - -/** - * semphr. h - *
SemaphoreHandle_t xSemaphoreCreateMutex( void )
- * - * Creates a new mutex type semaphore instance, and returns a handle by which - * the new mutex can be referenced. - * - * Internally, within the FreeRTOS implementation, mutex semaphores use a block - * of memory, in which the mutex structure is stored. If a mutex is created - * using xSemaphoreCreateMutex() then the required memory is automatically - * dynamically allocated inside the xSemaphoreCreateMutex() function. (see - * http://www.freertos.org/a00111.html). If a mutex is created using - * xSemaphoreCreateMutexStatic() then the application writer must provided the - * memory. xSemaphoreCreateMutexStatic() therefore allows a mutex to be created - * without using any dynamic memory allocation. - * - * Mutexes created using this function can be accessed using the xSemaphoreTake() - * and xSemaphoreGive() macros. The xSemaphoreTakeRecursive() and - * xSemaphoreGiveRecursive() macros must not be used. - * - * This type of semaphore uses a priority inheritance mechanism so a task - * 'taking' a semaphore MUST ALWAYS 'give' the semaphore back once the - * semaphore it is no longer required. - * - * Mutex type semaphores cannot be used from within interrupt service routines. - * - * See xSemaphoreCreateBinary() for an alternative implementation that can be - * used for pure synchronisation (where one task or interrupt always 'gives' the - * semaphore and another always 'takes' the semaphore) and from within interrupt - * service routines. - * - * @return If the mutex was successfully created then a handle to the created - * semaphore is returned. If there was not enough heap to allocate the mutex - * data structures then NULL is returned. - * - * Example usage: -
- SemaphoreHandle_t xSemaphore;
-
- void vATask( void * pvParameters )
- {
-    // Semaphore cannot be used before a call to xSemaphoreCreateMutex().
-    // This is a macro so pass the variable in directly.
-    xSemaphore = xSemaphoreCreateMutex();
-
-    if( xSemaphore != NULL )
-    {
-        // The semaphore was created successfully.
-        // The semaphore can now be used.
-    }
- }
- 
- * \defgroup xSemaphoreCreateMutex xSemaphoreCreateMutex - * \ingroup Semaphores - */ -#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) - #define xSemaphoreCreateMutex() xQueueCreateMutex( queueQUEUE_TYPE_MUTEX ) -#endif - -/** - * semphr. h - *
SemaphoreHandle_t xSemaphoreCreateMutexStatic( StaticSemaphore_t *pxMutexBuffer )
- * - * Creates a new mutex type semaphore instance, and returns a handle by which - * the new mutex can be referenced. - * - * Internally, within the FreeRTOS implementation, mutex semaphores use a block - * of memory, in which the mutex structure is stored. If a mutex is created - * using xSemaphoreCreateMutex() then the required memory is automatically - * dynamically allocated inside the xSemaphoreCreateMutex() function. (see - * http://www.freertos.org/a00111.html). If a mutex is created using - * xSemaphoreCreateMutexStatic() then the application writer must provided the - * memory. xSemaphoreCreateMutexStatic() therefore allows a mutex to be created - * without using any dynamic memory allocation. - * - * Mutexes created using this function can be accessed using the xSemaphoreTake() - * and xSemaphoreGive() macros. The xSemaphoreTakeRecursive() and - * xSemaphoreGiveRecursive() macros must not be used. - * - * This type of semaphore uses a priority inheritance mechanism so a task - * 'taking' a semaphore MUST ALWAYS 'give' the semaphore back once the - * semaphore it is no longer required. - * - * Mutex type semaphores cannot be used from within interrupt service routines. - * - * See xSemaphoreCreateBinary() for an alternative implementation that can be - * used for pure synchronisation (where one task or interrupt always 'gives' the - * semaphore and another always 'takes' the semaphore) and from within interrupt - * service routines. - * - * @param pxMutexBuffer Must point to a variable of type StaticSemaphore_t, - * which will be used to hold the mutex's data structure, removing the need for - * the memory to be allocated dynamically. - * - * @return If the mutex was successfully created then a handle to the created - * mutex is returned. If pxMutexBuffer was NULL then NULL is returned. - * - * Example usage: -
- SemaphoreHandle_t xSemaphore;
- StaticSemaphore_t xMutexBuffer;
-
- void vATask( void * pvParameters )
- {
-    // A mutex cannot be used before it has been created.  xMutexBuffer is
-    // into xSemaphoreCreateMutexStatic() so no dynamic memory allocation is
-    // attempted.
-    xSemaphore = xSemaphoreCreateMutexStatic( &xMutexBuffer );
-
-    // As no dynamic memory allocation was performed, xSemaphore cannot be NULL,
-    // so there is no need to check it.
- }
- 
- * \defgroup xSemaphoreCreateMutexStatic xSemaphoreCreateMutexStatic - * \ingroup Semaphores - */ - #if( configSUPPORT_STATIC_ALLOCATION == 1 ) - #define xSemaphoreCreateMutexStatic( pxMutexBuffer ) xQueueCreateMutexStatic( queueQUEUE_TYPE_MUTEX, ( pxMutexBuffer ) ) -#endif /* configSUPPORT_STATIC_ALLOCATION */ - - -/** - * semphr. h - *
SemaphoreHandle_t xSemaphoreCreateRecursiveMutex( void )
- * - * Creates a new recursive mutex type semaphore instance, and returns a handle - * by which the new recursive mutex can be referenced. - * - * Internally, within the FreeRTOS implementation, recursive mutexs use a block - * of memory, in which the mutex structure is stored. If a recursive mutex is - * created using xSemaphoreCreateRecursiveMutex() then the required memory is - * automatically dynamically allocated inside the - * xSemaphoreCreateRecursiveMutex() function. (see - * http://www.freertos.org/a00111.html). If a recursive mutex is created using - * xSemaphoreCreateRecursiveMutexStatic() then the application writer must - * provide the memory that will get used by the mutex. - * xSemaphoreCreateRecursiveMutexStatic() therefore allows a recursive mutex to - * be created without using any dynamic memory allocation. - * - * Mutexes created using this macro can be accessed using the - * xSemaphoreTakeRecursive() and xSemaphoreGiveRecursive() macros. The - * xSemaphoreTake() and xSemaphoreGive() macros must not be used. - * - * A mutex used recursively can be 'taken' repeatedly by the owner. The mutex - * doesn't become available again until the owner has called - * xSemaphoreGiveRecursive() for each successful 'take' request. For example, - * if a task successfully 'takes' the same mutex 5 times then the mutex will - * not be available to any other task until it has also 'given' the mutex back - * exactly five times. - * - * This type of semaphore uses a priority inheritance mechanism so a task - * 'taking' a semaphore MUST ALWAYS 'give' the semaphore back once the - * semaphore it is no longer required. - * - * Mutex type semaphores cannot be used from within interrupt service routines. - * - * See xSemaphoreCreateBinary() for an alternative implementation that can be - * used for pure synchronisation (where one task or interrupt always 'gives' the - * semaphore and another always 'takes' the semaphore) and from within interrupt - * service routines. - * - * @return xSemaphore Handle to the created mutex semaphore. Should be of type - * SemaphoreHandle_t. - * - * Example usage: -
- SemaphoreHandle_t xSemaphore;
-
- void vATask( void * pvParameters )
- {
-    // Semaphore cannot be used before a call to xSemaphoreCreateMutex().
-    // This is a macro so pass the variable in directly.
-    xSemaphore = xSemaphoreCreateRecursiveMutex();
-
-    if( xSemaphore != NULL )
-    {
-        // The semaphore was created successfully.
-        // The semaphore can now be used.
-    }
- }
- 
- * \defgroup xSemaphoreCreateRecursiveMutex xSemaphoreCreateRecursiveMutex - * \ingroup Semaphores - */ -#if( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configUSE_RECURSIVE_MUTEXES == 1 ) ) - #define xSemaphoreCreateRecursiveMutex() xQueueCreateMutex( queueQUEUE_TYPE_RECURSIVE_MUTEX ) -#endif - -/** - * semphr. h - *
SemaphoreHandle_t xSemaphoreCreateRecursiveMutexStatic( StaticSemaphore_t *pxMutexBuffer )
- * - * Creates a new recursive mutex type semaphore instance, and returns a handle - * by which the new recursive mutex can be referenced. - * - * Internally, within the FreeRTOS implementation, recursive mutexs use a block - * of memory, in which the mutex structure is stored. If a recursive mutex is - * created using xSemaphoreCreateRecursiveMutex() then the required memory is - * automatically dynamically allocated inside the - * xSemaphoreCreateRecursiveMutex() function. (see - * http://www.freertos.org/a00111.html). If a recursive mutex is created using - * xSemaphoreCreateRecursiveMutexStatic() then the application writer must - * provide the memory that will get used by the mutex. - * xSemaphoreCreateRecursiveMutexStatic() therefore allows a recursive mutex to - * be created without using any dynamic memory allocation. - * - * Mutexes created using this macro can be accessed using the - * xSemaphoreTakeRecursive() and xSemaphoreGiveRecursive() macros. The - * xSemaphoreTake() and xSemaphoreGive() macros must not be used. - * - * A mutex used recursively can be 'taken' repeatedly by the owner. The mutex - * doesn't become available again until the owner has called - * xSemaphoreGiveRecursive() for each successful 'take' request. For example, - * if a task successfully 'takes' the same mutex 5 times then the mutex will - * not be available to any other task until it has also 'given' the mutex back - * exactly five times. - * - * This type of semaphore uses a priority inheritance mechanism so a task - * 'taking' a semaphore MUST ALWAYS 'give' the semaphore back once the - * semaphore it is no longer required. - * - * Mutex type semaphores cannot be used from within interrupt service routines. - * - * See xSemaphoreCreateBinary() for an alternative implementation that can be - * used for pure synchronisation (where one task or interrupt always 'gives' the - * semaphore and another always 'takes' the semaphore) and from within interrupt - * service routines. - * - * @param pxMutexBuffer Must point to a variable of type StaticSemaphore_t, - * which will then be used to hold the recursive mutex's data structure, - * removing the need for the memory to be allocated dynamically. - * - * @return If the recursive mutex was successfully created then a handle to the - * created recursive mutex is returned. If pxMutexBuffer was NULL then NULL is - * returned. - * - * Example usage: -
- SemaphoreHandle_t xSemaphore;
- StaticSemaphore_t xMutexBuffer;
-
- void vATask( void * pvParameters )
- {
-    // A recursive semaphore cannot be used before it is created.  Here a
-    // recursive mutex is created using xSemaphoreCreateRecursiveMutexStatic().
-    // The address of xMutexBuffer is passed into the function, and will hold
-    // the mutexes data structures - so no dynamic memory allocation will be
-    // attempted.
-    xSemaphore = xSemaphoreCreateRecursiveMutexStatic( &xMutexBuffer );
-
-    // As no dynamic memory allocation was performed, xSemaphore cannot be NULL,
-    // so there is no need to check it.
- }
- 
- * \defgroup xSemaphoreCreateRecursiveMutexStatic xSemaphoreCreateRecursiveMutexStatic - * \ingroup Semaphores - */ -#if( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configUSE_RECURSIVE_MUTEXES == 1 ) ) - #define xSemaphoreCreateRecursiveMutexStatic( pxStaticSemaphore ) xQueueCreateMutexStatic( queueQUEUE_TYPE_RECURSIVE_MUTEX, pxStaticSemaphore ) -#endif /* configSUPPORT_STATIC_ALLOCATION */ - -/** - * semphr. h - *
SemaphoreHandle_t xSemaphoreCreateCounting( UBaseType_t uxMaxCount, UBaseType_t uxInitialCount )
- * - * Creates a new counting semaphore instance, and returns a handle by which the - * new counting semaphore can be referenced. - * - * In many usage scenarios it is faster and more memory efficient to use a - * direct to task notification in place of a counting semaphore! - * http://www.freertos.org/RTOS-task-notifications.html - * - * Internally, within the FreeRTOS implementation, counting semaphores use a - * block of memory, in which the counting semaphore structure is stored. If a - * counting semaphore is created using xSemaphoreCreateCounting() then the - * required memory is automatically dynamically allocated inside the - * xSemaphoreCreateCounting() function. (see - * http://www.freertos.org/a00111.html). If a counting semaphore is created - * using xSemaphoreCreateCountingStatic() then the application writer can - * instead optionally provide the memory that will get used by the counting - * semaphore. xSemaphoreCreateCountingStatic() therefore allows a counting - * semaphore to be created without using any dynamic memory allocation. - * - * Counting semaphores are typically used for two things: - * - * 1) Counting events. - * - * In this usage scenario an event handler will 'give' a semaphore each time - * an event occurs (incrementing the semaphore count value), and a handler - * task will 'take' a semaphore each time it processes an event - * (decrementing the semaphore count value). The count value is therefore - * the difference between the number of events that have occurred and the - * number that have been processed. In this case it is desirable for the - * initial count value to be zero. - * - * 2) Resource management. - * - * In this usage scenario the count value indicates the number of resources - * available. To obtain control of a resource a task must first obtain a - * semaphore - decrementing the semaphore count value. When the count value - * reaches zero there are no free resources. When a task finishes with the - * resource it 'gives' the semaphore back - incrementing the semaphore count - * value. In this case it is desirable for the initial count value to be - * equal to the maximum count value, indicating that all resources are free. - * - * @param uxMaxCount The maximum count value that can be reached. When the - * semaphore reaches this value it can no longer be 'given'. - * - * @param uxInitialCount The count value assigned to the semaphore when it is - * created. - * - * @return Handle to the created semaphore. Null if the semaphore could not be - * created. - * - * Example usage: -
- SemaphoreHandle_t xSemaphore;
-
- void vATask( void * pvParameters )
- {
- SemaphoreHandle_t xSemaphore = NULL;
-
-    // Semaphore cannot be used before a call to xSemaphoreCreateCounting().
-    // The max value to which the semaphore can count should be 10, and the
-    // initial value assigned to the count should be 0.
-    xSemaphore = xSemaphoreCreateCounting( 10, 0 );
-
-    if( xSemaphore != NULL )
-    {
-        // The semaphore was created successfully.
-        // The semaphore can now be used.
-    }
- }
- 
- * \defgroup xSemaphoreCreateCounting xSemaphoreCreateCounting - * \ingroup Semaphores - */ -#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) - #define xSemaphoreCreateCounting( uxMaxCount, uxInitialCount ) xQueueCreateCountingSemaphore( ( uxMaxCount ), ( uxInitialCount ) ) -#endif - -/** - * semphr. h - *
SemaphoreHandle_t xSemaphoreCreateCountingStatic( UBaseType_t uxMaxCount, UBaseType_t uxInitialCount, StaticSemaphore_t *pxSemaphoreBuffer )
- * - * Creates a new counting semaphore instance, and returns a handle by which the - * new counting semaphore can be referenced. - * - * In many usage scenarios it is faster and more memory efficient to use a - * direct to task notification in place of a counting semaphore! - * http://www.freertos.org/RTOS-task-notifications.html - * - * Internally, within the FreeRTOS implementation, counting semaphores use a - * block of memory, in which the counting semaphore structure is stored. If a - * counting semaphore is created using xSemaphoreCreateCounting() then the - * required memory is automatically dynamically allocated inside the - * xSemaphoreCreateCounting() function. (see - * http://www.freertos.org/a00111.html). If a counting semaphore is created - * using xSemaphoreCreateCountingStatic() then the application writer must - * provide the memory. xSemaphoreCreateCountingStatic() therefore allows a - * counting semaphore to be created without using any dynamic memory allocation. - * - * Counting semaphores are typically used for two things: - * - * 1) Counting events. - * - * In this usage scenario an event handler will 'give' a semaphore each time - * an event occurs (incrementing the semaphore count value), and a handler - * task will 'take' a semaphore each time it processes an event - * (decrementing the semaphore count value). The count value is therefore - * the difference between the number of events that have occurred and the - * number that have been processed. In this case it is desirable for the - * initial count value to be zero. - * - * 2) Resource management. - * - * In this usage scenario the count value indicates the number of resources - * available. To obtain control of a resource a task must first obtain a - * semaphore - decrementing the semaphore count value. When the count value - * reaches zero there are no free resources. When a task finishes with the - * resource it 'gives' the semaphore back - incrementing the semaphore count - * value. In this case it is desirable for the initial count value to be - * equal to the maximum count value, indicating that all resources are free. - * - * @param uxMaxCount The maximum count value that can be reached. When the - * semaphore reaches this value it can no longer be 'given'. - * - * @param uxInitialCount The count value assigned to the semaphore when it is - * created. - * - * @param pxSemaphoreBuffer Must point to a variable of type StaticSemaphore_t, - * which will then be used to hold the semaphore's data structure, removing the - * need for the memory to be allocated dynamically. - * - * @return If the counting semaphore was successfully created then a handle to - * the created counting semaphore is returned. If pxSemaphoreBuffer was NULL - * then NULL is returned. - * - * Example usage: -
- SemaphoreHandle_t xSemaphore;
- StaticSemaphore_t xSemaphoreBuffer;
-
- void vATask( void * pvParameters )
- {
- SemaphoreHandle_t xSemaphore = NULL;
-
-    // Counting semaphore cannot be used before they have been created.  Create
-    // a counting semaphore using xSemaphoreCreateCountingStatic().  The max
-    // value to which the semaphore can count is 10, and the initial value
-    // assigned to the count will be 0.  The address of xSemaphoreBuffer is
-    // passed in and will be used to hold the semaphore structure, so no dynamic
-    // memory allocation will be used.
-    xSemaphore = xSemaphoreCreateCounting( 10, 0, &xSemaphoreBuffer );
-
-    // No memory allocation was attempted so xSemaphore cannot be NULL, so there
-    // is no need to check its value.
- }
- 
- * \defgroup xSemaphoreCreateCountingStatic xSemaphoreCreateCountingStatic - * \ingroup Semaphores - */ -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) - #define xSemaphoreCreateCountingStatic( uxMaxCount, uxInitialCount, pxSemaphoreBuffer ) xQueueCreateCountingSemaphoreStatic( ( uxMaxCount ), ( uxInitialCount ), ( pxSemaphoreBuffer ) ) -#endif /* configSUPPORT_STATIC_ALLOCATION */ - -/** - * semphr. h - *
void vSemaphoreDelete( SemaphoreHandle_t xSemaphore );
- * - * Delete a semaphore. This function must be used with care. For example, - * do not delete a mutex type semaphore if the mutex is held by a task. - * - * @param xSemaphore A handle to the semaphore to be deleted. - * - * \defgroup vSemaphoreDelete vSemaphoreDelete - * \ingroup Semaphores - */ -#define vSemaphoreDelete( xSemaphore ) vQueueDelete( ( QueueHandle_t ) ( xSemaphore ) ) - -/** - * semphr.h - *
TaskHandle_t xSemaphoreGetMutexHolder( SemaphoreHandle_t xMutex );
- * - * If xMutex is indeed a mutex type semaphore, return the current mutex holder. - * If xMutex is not a mutex type semaphore, or the mutex is available (not held - * by a task), return NULL. - * - * Note: This is a good way of determining if the calling task is the mutex - * holder, but not a good way of determining the identity of the mutex holder as - * the holder may change between the function exiting and the returned value - * being tested. - */ -#define xSemaphoreGetMutexHolder( xSemaphore ) xQueueGetMutexHolder( ( xSemaphore ) ) - -/** - * semphr.h - *
TaskHandle_t xSemaphoreGetMutexHolderFromISR( SemaphoreHandle_t xMutex );
- * - * If xMutex is indeed a mutex type semaphore, return the current mutex holder. - * If xMutex is not a mutex type semaphore, or the mutex is available (not held - * by a task), return NULL. - * - */ -#define xSemaphoreGetMutexHolderFromISR( xSemaphore ) xQueueGetMutexHolderFromISR( ( xSemaphore ) ) - -/** - * semphr.h - *
UBaseType_t uxSemaphoreGetCount( SemaphoreHandle_t xSemaphore );
- * - * If the semaphore is a counting semaphore then uxSemaphoreGetCount() returns - * its current count value. If the semaphore is a binary semaphore then - * uxSemaphoreGetCount() returns 1 if the semaphore is available, and 0 if the - * semaphore is not available. - * - */ -#define uxSemaphoreGetCount( xSemaphore ) uxQueueMessagesWaiting( ( QueueHandle_t ) ( xSemaphore ) ) - -#endif /* SEMAPHORE_H */ - - diff --git a/Middlewares/Third_Party/FreeRTOS/Source/include/stack_macros.h b/Middlewares/Third_Party/FreeRTOS/Source/include/stack_macros.h deleted file mode 100644 index b5bac08..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/include/stack_macros.h +++ /dev/null @@ -1,129 +0,0 @@ -/* - * FreeRTOS Kernel V10.3.1 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - -#ifndef STACK_MACROS_H -#define STACK_MACROS_H - -/* - * Call the stack overflow hook function if the stack of the task being swapped - * out is currently overflowed, or looks like it might have overflowed in the - * past. - * - * Setting configCHECK_FOR_STACK_OVERFLOW to 1 will cause the macro to check - * the current stack state only - comparing the current top of stack value to - * the stack limit. Setting configCHECK_FOR_STACK_OVERFLOW to greater than 1 - * will also cause the last few stack bytes to be checked to ensure the value - * to which the bytes were set when the task was created have not been - * overwritten. Note this second test does not guarantee that an overflowed - * stack will always be recognised. - */ - -/*-----------------------------------------------------------*/ - -#if( ( configCHECK_FOR_STACK_OVERFLOW == 1 ) && ( portSTACK_GROWTH < 0 ) ) - - /* Only the current stack state is to be checked. */ - #define taskCHECK_FOR_STACK_OVERFLOW() \ - { \ - /* Is the currently saved stack pointer within the stack limit? */ \ - if( pxCurrentTCB->pxTopOfStack <= pxCurrentTCB->pxStack ) \ - { \ - vApplicationStackOverflowHook( ( TaskHandle_t ) pxCurrentTCB, pxCurrentTCB->pcTaskName ); \ - } \ - } - -#endif /* configCHECK_FOR_STACK_OVERFLOW == 1 */ -/*-----------------------------------------------------------*/ - -#if( ( configCHECK_FOR_STACK_OVERFLOW == 1 ) && ( portSTACK_GROWTH > 0 ) ) - - /* Only the current stack state is to be checked. */ - #define taskCHECK_FOR_STACK_OVERFLOW() \ - { \ - \ - /* Is the currently saved stack pointer within the stack limit? */ \ - if( pxCurrentTCB->pxTopOfStack >= pxCurrentTCB->pxEndOfStack ) \ - { \ - vApplicationStackOverflowHook( ( TaskHandle_t ) pxCurrentTCB, pxCurrentTCB->pcTaskName ); \ - } \ - } - -#endif /* configCHECK_FOR_STACK_OVERFLOW == 1 */ -/*-----------------------------------------------------------*/ - -#if( ( configCHECK_FOR_STACK_OVERFLOW > 1 ) && ( portSTACK_GROWTH < 0 ) ) - - #define taskCHECK_FOR_STACK_OVERFLOW() \ - { \ - const uint32_t * const pulStack = ( uint32_t * ) pxCurrentTCB->pxStack; \ - const uint32_t ulCheckValue = ( uint32_t ) 0xa5a5a5a5; \ - \ - if( ( pulStack[ 0 ] != ulCheckValue ) || \ - ( pulStack[ 1 ] != ulCheckValue ) || \ - ( pulStack[ 2 ] != ulCheckValue ) || \ - ( pulStack[ 3 ] != ulCheckValue ) ) \ - { \ - vApplicationStackOverflowHook( ( TaskHandle_t ) pxCurrentTCB, pxCurrentTCB->pcTaskName ); \ - } \ - } - -#endif /* #if( configCHECK_FOR_STACK_OVERFLOW > 1 ) */ -/*-----------------------------------------------------------*/ - -#if( ( configCHECK_FOR_STACK_OVERFLOW > 1 ) && ( portSTACK_GROWTH > 0 ) ) - - #define taskCHECK_FOR_STACK_OVERFLOW() \ - { \ - int8_t *pcEndOfStack = ( int8_t * ) pxCurrentTCB->pxEndOfStack; \ - static const uint8_t ucExpectedStackBytes[] = { tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, \ - tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, \ - tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, \ - tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, \ - tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE }; \ - \ - \ - pcEndOfStack -= sizeof( ucExpectedStackBytes ); \ - \ - /* Has the extremity of the task stack ever been written over? */ \ - if( memcmp( ( void * ) pcEndOfStack, ( void * ) ucExpectedStackBytes, sizeof( ucExpectedStackBytes ) ) != 0 ) \ - { \ - vApplicationStackOverflowHook( ( TaskHandle_t ) pxCurrentTCB, pxCurrentTCB->pcTaskName ); \ - } \ - } - -#endif /* #if( configCHECK_FOR_STACK_OVERFLOW > 1 ) */ -/*-----------------------------------------------------------*/ - -/* Remove stack overflow macro if not being used. */ -#ifndef taskCHECK_FOR_STACK_OVERFLOW - #define taskCHECK_FOR_STACK_OVERFLOW() -#endif - - - -#endif /* STACK_MACROS_H */ - diff --git a/Middlewares/Third_Party/FreeRTOS/Source/include/stream_buffer.h b/Middlewares/Third_Party/FreeRTOS/Source/include/stream_buffer.h deleted file mode 100644 index a8b68ad..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/include/stream_buffer.h +++ /dev/null @@ -1,859 +0,0 @@ -/* - * FreeRTOS Kernel V10.3.1 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - -/* - * Stream buffers are used to send a continuous stream of data from one task or - * interrupt to another. Their implementation is light weight, making them - * particularly suited for interrupt to task and core to core communication - * scenarios. - * - * ***NOTE***: Uniquely among FreeRTOS objects, the stream buffer - * implementation (so also the message buffer implementation, as message buffers - * are built on top of stream buffers) assumes there is only one task or - * interrupt that will write to the buffer (the writer), and only one task or - * interrupt that will read from the buffer (the reader). It is safe for the - * writer and reader to be different tasks or interrupts, but, unlike other - * FreeRTOS objects, it is not safe to have multiple different writers or - * multiple different readers. If there are to be multiple different writers - * then the application writer must place each call to a writing API function - * (such as xStreamBufferSend()) inside a critical section and set the send - * block time to 0. Likewise, if there are to be multiple different readers - * then the application writer must place each call to a reading API function - * (such as xStreamBufferReceive()) inside a critical section section and set the - * receive block time to 0. - * - */ - -#ifndef STREAM_BUFFER_H -#define STREAM_BUFFER_H - -#ifndef INC_FREERTOS_H - #error "include FreeRTOS.h must appear in source files before include stream_buffer.h" -#endif - -#if defined( __cplusplus ) -extern "C" { -#endif - -/** - * Type by which stream buffers are referenced. For example, a call to - * xStreamBufferCreate() returns an StreamBufferHandle_t variable that can - * then be used as a parameter to xStreamBufferSend(), xStreamBufferReceive(), - * etc. - */ -struct StreamBufferDef_t; -typedef struct StreamBufferDef_t * StreamBufferHandle_t; - - -/** - * message_buffer.h - * -
-StreamBufferHandle_t xStreamBufferCreate( size_t xBufferSizeBytes, size_t xTriggerLevelBytes );
-
- * - * Creates a new stream buffer using dynamically allocated memory. See - * xStreamBufferCreateStatic() for a version that uses statically allocated - * memory (memory that is allocated at compile time). - * - * configSUPPORT_DYNAMIC_ALLOCATION must be set to 1 or left undefined in - * FreeRTOSConfig.h for xStreamBufferCreate() to be available. - * - * @param xBufferSizeBytes The total number of bytes the stream buffer will be - * able to hold at any one time. - * - * @param xTriggerLevelBytes The number of bytes that must be in the stream - * buffer before a task that is blocked on the stream buffer to wait for data is - * moved out of the blocked state. For example, if a task is blocked on a read - * of an empty stream buffer that has a trigger level of 1 then the task will be - * unblocked when a single byte is written to the buffer or the task's block - * time expires. As another example, if a task is blocked on a read of an empty - * stream buffer that has a trigger level of 10 then the task will not be - * unblocked until the stream buffer contains at least 10 bytes or the task's - * block time expires. If a reading task's block time expires before the - * trigger level is reached then the task will still receive however many bytes - * are actually available. Setting a trigger level of 0 will result in a - * trigger level of 1 being used. It is not valid to specify a trigger level - * that is greater than the buffer size. - * - * @return If NULL is returned, then the stream buffer cannot be created - * because there is insufficient heap memory available for FreeRTOS to allocate - * the stream buffer data structures and storage area. A non-NULL value being - * returned indicates that the stream buffer has been created successfully - - * the returned value should be stored as the handle to the created stream - * buffer. - * - * Example use: -
-
-void vAFunction( void )
-{
-StreamBufferHandle_t xStreamBuffer;
-const size_t xStreamBufferSizeBytes = 100, xTriggerLevel = 10;
-
-    // Create a stream buffer that can hold 100 bytes.  The memory used to hold
-    // both the stream buffer structure and the data in the stream buffer is
-    // allocated dynamically.
-    xStreamBuffer = xStreamBufferCreate( xStreamBufferSizeBytes, xTriggerLevel );
-
-    if( xStreamBuffer == NULL )
-    {
-        // There was not enough heap memory space available to create the
-        // stream buffer.
-    }
-    else
-    {
-        // The stream buffer was created successfully and can now be used.
-    }
-}
-
- * \defgroup xStreamBufferCreate xStreamBufferCreate - * \ingroup StreamBufferManagement - */ -#define xStreamBufferCreate( xBufferSizeBytes, xTriggerLevelBytes ) xStreamBufferGenericCreate( xBufferSizeBytes, xTriggerLevelBytes, pdFALSE ) - -/** - * stream_buffer.h - * -
-StreamBufferHandle_t xStreamBufferCreateStatic( size_t xBufferSizeBytes,
-                                                size_t xTriggerLevelBytes,
-                                                uint8_t *pucStreamBufferStorageArea,
-                                                StaticStreamBuffer_t *pxStaticStreamBuffer );
-
- * Creates a new stream buffer using statically allocated memory. See - * xStreamBufferCreate() for a version that uses dynamically allocated memory. - * - * configSUPPORT_STATIC_ALLOCATION must be set to 1 in FreeRTOSConfig.h for - * xStreamBufferCreateStatic() to be available. - * - * @param xBufferSizeBytes The size, in bytes, of the buffer pointed to by the - * pucStreamBufferStorageArea parameter. - * - * @param xTriggerLevelBytes The number of bytes that must be in the stream - * buffer before a task that is blocked on the stream buffer to wait for data is - * moved out of the blocked state. For example, if a task is blocked on a read - * of an empty stream buffer that has a trigger level of 1 then the task will be - * unblocked when a single byte is written to the buffer or the task's block - * time expires. As another example, if a task is blocked on a read of an empty - * stream buffer that has a trigger level of 10 then the task will not be - * unblocked until the stream buffer contains at least 10 bytes or the task's - * block time expires. If a reading task's block time expires before the - * trigger level is reached then the task will still receive however many bytes - * are actually available. Setting a trigger level of 0 will result in a - * trigger level of 1 being used. It is not valid to specify a trigger level - * that is greater than the buffer size. - * - * @param pucStreamBufferStorageArea Must point to a uint8_t array that is at - * least xBufferSizeBytes + 1 big. This is the array to which streams are - * copied when they are written to the stream buffer. - * - * @param pxStaticStreamBuffer Must point to a variable of type - * StaticStreamBuffer_t, which will be used to hold the stream buffer's data - * structure. - * - * @return If the stream buffer is created successfully then a handle to the - * created stream buffer is returned. If either pucStreamBufferStorageArea or - * pxStaticstreamBuffer are NULL then NULL is returned. - * - * Example use: -
-
-// Used to dimension the array used to hold the streams.  The available space
-// will actually be one less than this, so 999.
-#define STORAGE_SIZE_BYTES 1000
-
-// Defines the memory that will actually hold the streams within the stream
-// buffer.
-static uint8_t ucStorageBuffer[ STORAGE_SIZE_BYTES ];
-
-// The variable used to hold the stream buffer structure.
-StaticStreamBuffer_t xStreamBufferStruct;
-
-void MyFunction( void )
-{
-StreamBufferHandle_t xStreamBuffer;
-const size_t xTriggerLevel = 1;
-
-    xStreamBuffer = xStreamBufferCreateStatic( sizeof( ucBufferStorage ),
-                                               xTriggerLevel,
-                                               ucBufferStorage,
-                                               &xStreamBufferStruct );
-
-    // As neither the pucStreamBufferStorageArea or pxStaticStreamBuffer
-    // parameters were NULL, xStreamBuffer will not be NULL, and can be used to
-    // reference the created stream buffer in other stream buffer API calls.
-
-    // Other code that uses the stream buffer can go here.
-}
-
-
- * \defgroup xStreamBufferCreateStatic xStreamBufferCreateStatic - * \ingroup StreamBufferManagement - */ -#define xStreamBufferCreateStatic( xBufferSizeBytes, xTriggerLevelBytes, pucStreamBufferStorageArea, pxStaticStreamBuffer ) xStreamBufferGenericCreateStatic( xBufferSizeBytes, xTriggerLevelBytes, pdFALSE, pucStreamBufferStorageArea, pxStaticStreamBuffer ) - -/** - * stream_buffer.h - * -
-size_t xStreamBufferSend( StreamBufferHandle_t xStreamBuffer,
-                          const void *pvTxData,
-                          size_t xDataLengthBytes,
-                          TickType_t xTicksToWait );
-
- * - * Sends bytes to a stream buffer. The bytes are copied into the stream buffer. - * - * ***NOTE***: Uniquely among FreeRTOS objects, the stream buffer - * implementation (so also the message buffer implementation, as message buffers - * are built on top of stream buffers) assumes there is only one task or - * interrupt that will write to the buffer (the writer), and only one task or - * interrupt that will read from the buffer (the reader). It is safe for the - * writer and reader to be different tasks or interrupts, but, unlike other - * FreeRTOS objects, it is not safe to have multiple different writers or - * multiple different readers. If there are to be multiple different writers - * then the application writer must place each call to a writing API function - * (such as xStreamBufferSend()) inside a critical section and set the send - * block time to 0. Likewise, if there are to be multiple different readers - * then the application writer must place each call to a reading API function - * (such as xStreamBufferReceive()) inside a critical section and set the receive - * block time to 0. - * - * Use xStreamBufferSend() to write to a stream buffer from a task. Use - * xStreamBufferSendFromISR() to write to a stream buffer from an interrupt - * service routine (ISR). - * - * @param xStreamBuffer The handle of the stream buffer to which a stream is - * being sent. - * - * @param pvTxData A pointer to the buffer that holds the bytes to be copied - * into the stream buffer. - * - * @param xDataLengthBytes The maximum number of bytes to copy from pvTxData - * into the stream buffer. - * - * @param xTicksToWait The maximum amount of time the task should remain in the - * Blocked state to wait for enough space to become available in the stream - * buffer, should the stream buffer contain too little space to hold the - * another xDataLengthBytes bytes. The block time is specified in tick periods, - * so the absolute time it represents is dependent on the tick frequency. The - * macro pdMS_TO_TICKS() can be used to convert a time specified in milliseconds - * into a time specified in ticks. Setting xTicksToWait to portMAX_DELAY will - * cause the task to wait indefinitely (without timing out), provided - * INCLUDE_vTaskSuspend is set to 1 in FreeRTOSConfig.h. If a task times out - * before it can write all xDataLengthBytes into the buffer it will still write - * as many bytes as possible. A task does not use any CPU time when it is in - * the blocked state. - * - * @return The number of bytes written to the stream buffer. If a task times - * out before it can write all xDataLengthBytes into the buffer it will still - * write as many bytes as possible. - * - * Example use: -
-void vAFunction( StreamBufferHandle_t xStreamBuffer )
-{
-size_t xBytesSent;
-uint8_t ucArrayToSend[] = { 0, 1, 2, 3 };
-char *pcStringToSend = "String to send";
-const TickType_t x100ms = pdMS_TO_TICKS( 100 );
-
-    // Send an array to the stream buffer, blocking for a maximum of 100ms to
-    // wait for enough space to be available in the stream buffer.
-    xBytesSent = xStreamBufferSend( xStreamBuffer, ( void * ) ucArrayToSend, sizeof( ucArrayToSend ), x100ms );
-
-    if( xBytesSent != sizeof( ucArrayToSend ) )
-    {
-        // The call to xStreamBufferSend() times out before there was enough
-        // space in the buffer for the data to be written, but it did
-        // successfully write xBytesSent bytes.
-    }
-
-    // Send the string to the stream buffer.  Return immediately if there is not
-    // enough space in the buffer.
-    xBytesSent = xStreamBufferSend( xStreamBuffer, ( void * ) pcStringToSend, strlen( pcStringToSend ), 0 );
-
-    if( xBytesSent != strlen( pcStringToSend ) )
-    {
-        // The entire string could not be added to the stream buffer because
-        // there was not enough free space in the buffer, but xBytesSent bytes
-        // were sent.  Could try again to send the remaining bytes.
-    }
-}
-
- * \defgroup xStreamBufferSend xStreamBufferSend - * \ingroup StreamBufferManagement - */ -size_t xStreamBufferSend( StreamBufferHandle_t xStreamBuffer, - const void *pvTxData, - size_t xDataLengthBytes, - TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; - -/** - * stream_buffer.h - * -
-size_t xStreamBufferSendFromISR( StreamBufferHandle_t xStreamBuffer,
-                                 const void *pvTxData,
-                                 size_t xDataLengthBytes,
-                                 BaseType_t *pxHigherPriorityTaskWoken );
-
- * - * Interrupt safe version of the API function that sends a stream of bytes to - * the stream buffer. - * - * ***NOTE***: Uniquely among FreeRTOS objects, the stream buffer - * implementation (so also the message buffer implementation, as message buffers - * are built on top of stream buffers) assumes there is only one task or - * interrupt that will write to the buffer (the writer), and only one task or - * interrupt that will read from the buffer (the reader). It is safe for the - * writer and reader to be different tasks or interrupts, but, unlike other - * FreeRTOS objects, it is not safe to have multiple different writers or - * multiple different readers. If there are to be multiple different writers - * then the application writer must place each call to a writing API function - * (such as xStreamBufferSend()) inside a critical section and set the send - * block time to 0. Likewise, if there are to be multiple different readers - * then the application writer must place each call to a reading API function - * (such as xStreamBufferReceive()) inside a critical section and set the receive - * block time to 0. - * - * Use xStreamBufferSend() to write to a stream buffer from a task. Use - * xStreamBufferSendFromISR() to write to a stream buffer from an interrupt - * service routine (ISR). - * - * @param xStreamBuffer The handle of the stream buffer to which a stream is - * being sent. - * - * @param pvTxData A pointer to the data that is to be copied into the stream - * buffer. - * - * @param xDataLengthBytes The maximum number of bytes to copy from pvTxData - * into the stream buffer. - * - * @param pxHigherPriorityTaskWoken It is possible that a stream buffer will - * have a task blocked on it waiting for data. Calling - * xStreamBufferSendFromISR() can make data available, and so cause a task that - * was waiting for data to leave the Blocked state. If calling - * xStreamBufferSendFromISR() causes a task to leave the Blocked state, and the - * unblocked task has a priority higher than the currently executing task (the - * task that was interrupted), then, internally, xStreamBufferSendFromISR() - * will set *pxHigherPriorityTaskWoken to pdTRUE. If - * xStreamBufferSendFromISR() sets this value to pdTRUE, then normally a - * context switch should be performed before the interrupt is exited. This will - * ensure that the interrupt returns directly to the highest priority Ready - * state task. *pxHigherPriorityTaskWoken should be set to pdFALSE before it - * is passed into the function. See the example code below for an example. - * - * @return The number of bytes actually written to the stream buffer, which will - * be less than xDataLengthBytes if the stream buffer didn't have enough free - * space for all the bytes to be written. - * - * Example use: -
-// A stream buffer that has already been created.
-StreamBufferHandle_t xStreamBuffer;
-
-void vAnInterruptServiceRoutine( void )
-{
-size_t xBytesSent;
-char *pcStringToSend = "String to send";
-BaseType_t xHigherPriorityTaskWoken = pdFALSE; // Initialised to pdFALSE.
-
-    // Attempt to send the string to the stream buffer.
-    xBytesSent = xStreamBufferSendFromISR( xStreamBuffer,
-                                           ( void * ) pcStringToSend,
-                                           strlen( pcStringToSend ),
-                                           &xHigherPriorityTaskWoken );
-
-    if( xBytesSent != strlen( pcStringToSend ) )
-    {
-        // There was not enough free space in the stream buffer for the entire
-        // string to be written, ut xBytesSent bytes were written.
-    }
-
-    // If xHigherPriorityTaskWoken was set to pdTRUE inside
-    // xStreamBufferSendFromISR() then a task that has a priority above the
-    // priority of the currently executing task was unblocked and a context
-    // switch should be performed to ensure the ISR returns to the unblocked
-    // task.  In most FreeRTOS ports this is done by simply passing
-    // xHigherPriorityTaskWoken into taskYIELD_FROM_ISR(), which will test the
-    // variables value, and perform the context switch if necessary.  Check the
-    // documentation for the port in use for port specific instructions.
-    taskYIELD_FROM_ISR( xHigherPriorityTaskWoken );
-}
-
- * \defgroup xStreamBufferSendFromISR xStreamBufferSendFromISR - * \ingroup StreamBufferManagement - */ -size_t xStreamBufferSendFromISR( StreamBufferHandle_t xStreamBuffer, - const void *pvTxData, - size_t xDataLengthBytes, - BaseType_t * const pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION; - -/** - * stream_buffer.h - * -
-size_t xStreamBufferReceive( StreamBufferHandle_t xStreamBuffer,
-                             void *pvRxData,
-                             size_t xBufferLengthBytes,
-                             TickType_t xTicksToWait );
-
- * - * Receives bytes from a stream buffer. - * - * ***NOTE***: Uniquely among FreeRTOS objects, the stream buffer - * implementation (so also the message buffer implementation, as message buffers - * are built on top of stream buffers) assumes there is only one task or - * interrupt that will write to the buffer (the writer), and only one task or - * interrupt that will read from the buffer (the reader). It is safe for the - * writer and reader to be different tasks or interrupts, but, unlike other - * FreeRTOS objects, it is not safe to have multiple different writers or - * multiple different readers. If there are to be multiple different writers - * then the application writer must place each call to a writing API function - * (such as xStreamBufferSend()) inside a critical section and set the send - * block time to 0. Likewise, if there are to be multiple different readers - * then the application writer must place each call to a reading API function - * (such as xStreamBufferReceive()) inside a critical section and set the receive - * block time to 0. - * - * Use xStreamBufferReceive() to read from a stream buffer from a task. Use - * xStreamBufferReceiveFromISR() to read from a stream buffer from an - * interrupt service routine (ISR). - * - * @param xStreamBuffer The handle of the stream buffer from which bytes are to - * be received. - * - * @param pvRxData A pointer to the buffer into which the received bytes will be - * copied. - * - * @param xBufferLengthBytes The length of the buffer pointed to by the - * pvRxData parameter. This sets the maximum number of bytes to receive in one - * call. xStreamBufferReceive will return as many bytes as possible up to a - * maximum set by xBufferLengthBytes. - * - * @param xTicksToWait The maximum amount of time the task should remain in the - * Blocked state to wait for data to become available if the stream buffer is - * empty. xStreamBufferReceive() will return immediately if xTicksToWait is - * zero. The block time is specified in tick periods, so the absolute time it - * represents is dependent on the tick frequency. The macro pdMS_TO_TICKS() can - * be used to convert a time specified in milliseconds into a time specified in - * ticks. Setting xTicksToWait to portMAX_DELAY will cause the task to wait - * indefinitely (without timing out), provided INCLUDE_vTaskSuspend is set to 1 - * in FreeRTOSConfig.h. A task does not use any CPU time when it is in the - * Blocked state. - * - * @return The number of bytes actually read from the stream buffer, which will - * be less than xBufferLengthBytes if the call to xStreamBufferReceive() timed - * out before xBufferLengthBytes were available. - * - * Example use: -
-void vAFunction( StreamBuffer_t xStreamBuffer )
-{
-uint8_t ucRxData[ 20 ];
-size_t xReceivedBytes;
-const TickType_t xBlockTime = pdMS_TO_TICKS( 20 );
-
-    // Receive up to another sizeof( ucRxData ) bytes from the stream buffer.
-    // Wait in the Blocked state (so not using any CPU processing time) for a
-    // maximum of 100ms for the full sizeof( ucRxData ) number of bytes to be
-    // available.
-    xReceivedBytes = xStreamBufferReceive( xStreamBuffer,
-                                           ( void * ) ucRxData,
-                                           sizeof( ucRxData ),
-                                           xBlockTime );
-
-    if( xReceivedBytes > 0 )
-    {
-        // A ucRxData contains another xRecievedBytes bytes of data, which can
-        // be processed here....
-    }
-}
-
- * \defgroup xStreamBufferReceive xStreamBufferReceive - * \ingroup StreamBufferManagement - */ -size_t xStreamBufferReceive( StreamBufferHandle_t xStreamBuffer, - void *pvRxData, - size_t xBufferLengthBytes, - TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; - -/** - * stream_buffer.h - * -
-size_t xStreamBufferReceiveFromISR( StreamBufferHandle_t xStreamBuffer,
-                                    void *pvRxData,
-                                    size_t xBufferLengthBytes,
-                                    BaseType_t *pxHigherPriorityTaskWoken );
-
- * - * An interrupt safe version of the API function that receives bytes from a - * stream buffer. - * - * Use xStreamBufferReceive() to read bytes from a stream buffer from a task. - * Use xStreamBufferReceiveFromISR() to read bytes from a stream buffer from an - * interrupt service routine (ISR). - * - * @param xStreamBuffer The handle of the stream buffer from which a stream - * is being received. - * - * @param pvRxData A pointer to the buffer into which the received bytes are - * copied. - * - * @param xBufferLengthBytes The length of the buffer pointed to by the - * pvRxData parameter. This sets the maximum number of bytes to receive in one - * call. xStreamBufferReceive will return as many bytes as possible up to a - * maximum set by xBufferLengthBytes. - * - * @param pxHigherPriorityTaskWoken It is possible that a stream buffer will - * have a task blocked on it waiting for space to become available. Calling - * xStreamBufferReceiveFromISR() can make space available, and so cause a task - * that is waiting for space to leave the Blocked state. If calling - * xStreamBufferReceiveFromISR() causes a task to leave the Blocked state, and - * the unblocked task has a priority higher than the currently executing task - * (the task that was interrupted), then, internally, - * xStreamBufferReceiveFromISR() will set *pxHigherPriorityTaskWoken to pdTRUE. - * If xStreamBufferReceiveFromISR() sets this value to pdTRUE, then normally a - * context switch should be performed before the interrupt is exited. That will - * ensure the interrupt returns directly to the highest priority Ready state - * task. *pxHigherPriorityTaskWoken should be set to pdFALSE before it is - * passed into the function. See the code example below for an example. - * - * @return The number of bytes read from the stream buffer, if any. - * - * Example use: -
-// A stream buffer that has already been created.
-StreamBuffer_t xStreamBuffer;
-
-void vAnInterruptServiceRoutine( void )
-{
-uint8_t ucRxData[ 20 ];
-size_t xReceivedBytes;
-BaseType_t xHigherPriorityTaskWoken = pdFALSE;  // Initialised to pdFALSE.
-
-    // Receive the next stream from the stream buffer.
-    xReceivedBytes = xStreamBufferReceiveFromISR( xStreamBuffer,
-                                                  ( void * ) ucRxData,
-                                                  sizeof( ucRxData ),
-                                                  &xHigherPriorityTaskWoken );
-
-    if( xReceivedBytes > 0 )
-    {
-        // ucRxData contains xReceivedBytes read from the stream buffer.
-        // Process the stream here....
-    }
-
-    // If xHigherPriorityTaskWoken was set to pdTRUE inside
-    // xStreamBufferReceiveFromISR() then a task that has a priority above the
-    // priority of the currently executing task was unblocked and a context
-    // switch should be performed to ensure the ISR returns to the unblocked
-    // task.  In most FreeRTOS ports this is done by simply passing
-    // xHigherPriorityTaskWoken into taskYIELD_FROM_ISR(), which will test the
-    // variables value, and perform the context switch if necessary.  Check the
-    // documentation for the port in use for port specific instructions.
-    taskYIELD_FROM_ISR( xHigherPriorityTaskWoken );
-}
-
- * \defgroup xStreamBufferReceiveFromISR xStreamBufferReceiveFromISR - * \ingroup StreamBufferManagement - */ -size_t xStreamBufferReceiveFromISR( StreamBufferHandle_t xStreamBuffer, - void *pvRxData, - size_t xBufferLengthBytes, - BaseType_t * const pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION; - -/** - * stream_buffer.h - * -
-void vStreamBufferDelete( StreamBufferHandle_t xStreamBuffer );
-
- * - * Deletes a stream buffer that was previously created using a call to - * xStreamBufferCreate() or xStreamBufferCreateStatic(). If the stream - * buffer was created using dynamic memory (that is, by xStreamBufferCreate()), - * then the allocated memory is freed. - * - * A stream buffer handle must not be used after the stream buffer has been - * deleted. - * - * @param xStreamBuffer The handle of the stream buffer to be deleted. - * - * \defgroup vStreamBufferDelete vStreamBufferDelete - * \ingroup StreamBufferManagement - */ -void vStreamBufferDelete( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION; - -/** - * stream_buffer.h - * -
-BaseType_t xStreamBufferIsFull( StreamBufferHandle_t xStreamBuffer );
-
- * - * Queries a stream buffer to see if it is full. A stream buffer is full if it - * does not have any free space, and therefore cannot accept any more data. - * - * @param xStreamBuffer The handle of the stream buffer being queried. - * - * @return If the stream buffer is full then pdTRUE is returned. Otherwise - * pdFALSE is returned. - * - * \defgroup xStreamBufferIsFull xStreamBufferIsFull - * \ingroup StreamBufferManagement - */ -BaseType_t xStreamBufferIsFull( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION; - -/** - * stream_buffer.h - * -
-BaseType_t xStreamBufferIsEmpty( StreamBufferHandle_t xStreamBuffer );
-
- * - * Queries a stream buffer to see if it is empty. A stream buffer is empty if - * it does not contain any data. - * - * @param xStreamBuffer The handle of the stream buffer being queried. - * - * @return If the stream buffer is empty then pdTRUE is returned. Otherwise - * pdFALSE is returned. - * - * \defgroup xStreamBufferIsEmpty xStreamBufferIsEmpty - * \ingroup StreamBufferManagement - */ -BaseType_t xStreamBufferIsEmpty( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION; - -/** - * stream_buffer.h - * -
-BaseType_t xStreamBufferReset( StreamBufferHandle_t xStreamBuffer );
-
- * - * Resets a stream buffer to its initial, empty, state. Any data that was in - * the stream buffer is discarded. A stream buffer can only be reset if there - * are no tasks blocked waiting to either send to or receive from the stream - * buffer. - * - * @param xStreamBuffer The handle of the stream buffer being reset. - * - * @return If the stream buffer is reset then pdPASS is returned. If there was - * a task blocked waiting to send to or read from the stream buffer then the - * stream buffer is not reset and pdFAIL is returned. - * - * \defgroup xStreamBufferReset xStreamBufferReset - * \ingroup StreamBufferManagement - */ -BaseType_t xStreamBufferReset( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION; - -/** - * stream_buffer.h - * -
-size_t xStreamBufferSpacesAvailable( StreamBufferHandle_t xStreamBuffer );
-
- * - * Queries a stream buffer to see how much free space it contains, which is - * equal to the amount of data that can be sent to the stream buffer before it - * is full. - * - * @param xStreamBuffer The handle of the stream buffer being queried. - * - * @return The number of bytes that can be written to the stream buffer before - * the stream buffer would be full. - * - * \defgroup xStreamBufferSpacesAvailable xStreamBufferSpacesAvailable - * \ingroup StreamBufferManagement - */ -size_t xStreamBufferSpacesAvailable( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION; - -/** - * stream_buffer.h - * -
-size_t xStreamBufferBytesAvailable( StreamBufferHandle_t xStreamBuffer );
-
- * - * Queries a stream buffer to see how much data it contains, which is equal to - * the number of bytes that can be read from the stream buffer before the stream - * buffer would be empty. - * - * @param xStreamBuffer The handle of the stream buffer being queried. - * - * @return The number of bytes that can be read from the stream buffer before - * the stream buffer would be empty. - * - * \defgroup xStreamBufferBytesAvailable xStreamBufferBytesAvailable - * \ingroup StreamBufferManagement - */ -size_t xStreamBufferBytesAvailable( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION; - -/** - * stream_buffer.h - * -
-BaseType_t xStreamBufferSetTriggerLevel( StreamBufferHandle_t xStreamBuffer, size_t xTriggerLevel );
-
- * - * A stream buffer's trigger level is the number of bytes that must be in the - * stream buffer before a task that is blocked on the stream buffer to - * wait for data is moved out of the blocked state. For example, if a task is - * blocked on a read of an empty stream buffer that has a trigger level of 1 - * then the task will be unblocked when a single byte is written to the buffer - * or the task's block time expires. As another example, if a task is blocked - * on a read of an empty stream buffer that has a trigger level of 10 then the - * task will not be unblocked until the stream buffer contains at least 10 bytes - * or the task's block time expires. If a reading task's block time expires - * before the trigger level is reached then the task will still receive however - * many bytes are actually available. Setting a trigger level of 0 will result - * in a trigger level of 1 being used. It is not valid to specify a trigger - * level that is greater than the buffer size. - * - * A trigger level is set when the stream buffer is created, and can be modified - * using xStreamBufferSetTriggerLevel(). - * - * @param xStreamBuffer The handle of the stream buffer being updated. - * - * @param xTriggerLevel The new trigger level for the stream buffer. - * - * @return If xTriggerLevel was less than or equal to the stream buffer's length - * then the trigger level will be updated and pdTRUE is returned. Otherwise - * pdFALSE is returned. - * - * \defgroup xStreamBufferSetTriggerLevel xStreamBufferSetTriggerLevel - * \ingroup StreamBufferManagement - */ -BaseType_t xStreamBufferSetTriggerLevel( StreamBufferHandle_t xStreamBuffer, size_t xTriggerLevel ) PRIVILEGED_FUNCTION; - -/** - * stream_buffer.h - * -
-BaseType_t xStreamBufferSendCompletedFromISR( StreamBufferHandle_t xStreamBuffer, BaseType_t *pxHigherPriorityTaskWoken );
-
- * - * For advanced users only. - * - * The sbSEND_COMPLETED() macro is called from within the FreeRTOS APIs when - * data is sent to a message buffer or stream buffer. If there was a task that - * was blocked on the message or stream buffer waiting for data to arrive then - * the sbSEND_COMPLETED() macro sends a notification to the task to remove it - * from the Blocked state. xStreamBufferSendCompletedFromISR() does the same - * thing. It is provided to enable application writers to implement their own - * version of sbSEND_COMPLETED(), and MUST NOT BE USED AT ANY OTHER TIME. - * - * See the example implemented in FreeRTOS/Demo/Minimal/MessageBufferAMP.c for - * additional information. - * - * @param xStreamBuffer The handle of the stream buffer to which data was - * written. - * - * @param pxHigherPriorityTaskWoken *pxHigherPriorityTaskWoken should be - * initialised to pdFALSE before it is passed into - * xStreamBufferSendCompletedFromISR(). If calling - * xStreamBufferSendCompletedFromISR() removes a task from the Blocked state, - * and the task has a priority above the priority of the currently running task, - * then *pxHigherPriorityTaskWoken will get set to pdTRUE indicating that a - * context switch should be performed before exiting the ISR. - * - * @return If a task was removed from the Blocked state then pdTRUE is returned. - * Otherwise pdFALSE is returned. - * - * \defgroup xStreamBufferSendCompletedFromISR xStreamBufferSendCompletedFromISR - * \ingroup StreamBufferManagement - */ -BaseType_t xStreamBufferSendCompletedFromISR( StreamBufferHandle_t xStreamBuffer, BaseType_t *pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION; - -/** - * stream_buffer.h - * -
-BaseType_t xStreamBufferReceiveCompletedFromISR( StreamBufferHandle_t xStreamBuffer, BaseType_t *pxHigherPriorityTaskWoken );
-
- * - * For advanced users only. - * - * The sbRECEIVE_COMPLETED() macro is called from within the FreeRTOS APIs when - * data is read out of a message buffer or stream buffer. If there was a task - * that was blocked on the message or stream buffer waiting for data to arrive - * then the sbRECEIVE_COMPLETED() macro sends a notification to the task to - * remove it from the Blocked state. xStreamBufferReceiveCompletedFromISR() - * does the same thing. It is provided to enable application writers to - * implement their own version of sbRECEIVE_COMPLETED(), and MUST NOT BE USED AT - * ANY OTHER TIME. - * - * See the example implemented in FreeRTOS/Demo/Minimal/MessageBufferAMP.c for - * additional information. - * - * @param xStreamBuffer The handle of the stream buffer from which data was - * read. - * - * @param pxHigherPriorityTaskWoken *pxHigherPriorityTaskWoken should be - * initialised to pdFALSE before it is passed into - * xStreamBufferReceiveCompletedFromISR(). If calling - * xStreamBufferReceiveCompletedFromISR() removes a task from the Blocked state, - * and the task has a priority above the priority of the currently running task, - * then *pxHigherPriorityTaskWoken will get set to pdTRUE indicating that a - * context switch should be performed before exiting the ISR. - * - * @return If a task was removed from the Blocked state then pdTRUE is returned. - * Otherwise pdFALSE is returned. - * - * \defgroup xStreamBufferReceiveCompletedFromISR xStreamBufferReceiveCompletedFromISR - * \ingroup StreamBufferManagement - */ -BaseType_t xStreamBufferReceiveCompletedFromISR( StreamBufferHandle_t xStreamBuffer, BaseType_t *pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION; - -/* Functions below here are not part of the public API. */ -StreamBufferHandle_t xStreamBufferGenericCreate( size_t xBufferSizeBytes, - size_t xTriggerLevelBytes, - BaseType_t xIsMessageBuffer ) PRIVILEGED_FUNCTION; - -StreamBufferHandle_t xStreamBufferGenericCreateStatic( size_t xBufferSizeBytes, - size_t xTriggerLevelBytes, - BaseType_t xIsMessageBuffer, - uint8_t * const pucStreamBufferStorageArea, - StaticStreamBuffer_t * const pxStaticStreamBuffer ) PRIVILEGED_FUNCTION; - -size_t xStreamBufferNextMessageLengthBytes( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION; - -#if( configUSE_TRACE_FACILITY == 1 ) - void vStreamBufferSetStreamBufferNumber( StreamBufferHandle_t xStreamBuffer, UBaseType_t uxStreamBufferNumber ) PRIVILEGED_FUNCTION; - UBaseType_t uxStreamBufferGetStreamBufferNumber( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION; - uint8_t ucStreamBufferGetStreamBufferType( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION; -#endif - -#if defined( __cplusplus ) -} -#endif - -#endif /* !defined( STREAM_BUFFER_H ) */ diff --git a/Middlewares/Third_Party/FreeRTOS/Source/include/task.h b/Middlewares/Third_Party/FreeRTOS/Source/include/task.h deleted file mode 100644 index b0cc60b..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/include/task.h +++ /dev/null @@ -1,2543 +0,0 @@ -/* - * FreeRTOS Kernel V10.3.1 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - - -#ifndef INC_TASK_H -#define INC_TASK_H - -#ifndef INC_FREERTOS_H - #error "include FreeRTOS.h must appear in source files before include task.h" -#endif - -#include "list.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/*----------------------------------------------------------- - * MACROS AND DEFINITIONS - *----------------------------------------------------------*/ - -#define tskKERNEL_VERSION_NUMBER "V10.3.1" -#define tskKERNEL_VERSION_MAJOR 10 -#define tskKERNEL_VERSION_MINOR 3 -#define tskKERNEL_VERSION_BUILD 1 - -/* MPU region parameters passed in ulParameters - * of MemoryRegion_t struct. */ -#define tskMPU_REGION_READ_ONLY ( 1UL << 0UL ) -#define tskMPU_REGION_READ_WRITE ( 1UL << 1UL ) -#define tskMPU_REGION_EXECUTE_NEVER ( 1UL << 2UL ) -#define tskMPU_REGION_NORMAL_MEMORY ( 1UL << 3UL ) -#define tskMPU_REGION_DEVICE_MEMORY ( 1UL << 4UL ) - -/** - * task. h - * - * Type by which tasks are referenced. For example, a call to xTaskCreate - * returns (via a pointer parameter) an TaskHandle_t variable that can then - * be used as a parameter to vTaskDelete to delete the task. - * - * \defgroup TaskHandle_t TaskHandle_t - * \ingroup Tasks - */ -struct tskTaskControlBlock; /* The old naming convention is used to prevent breaking kernel aware debuggers. */ -typedef struct tskTaskControlBlock* TaskHandle_t; - -/* - * Defines the prototype to which the application task hook function must - * conform. - */ -typedef BaseType_t (*TaskHookFunction_t)( void * ); - -/* Task states returned by eTaskGetState. */ -typedef enum -{ - eRunning = 0, /* A task is querying the state of itself, so must be running. */ - eReady, /* The task being queried is in a read or pending ready list. */ - eBlocked, /* The task being queried is in the Blocked state. */ - eSuspended, /* The task being queried is in the Suspended state, or is in the Blocked state with an infinite time out. */ - eDeleted, /* The task being queried has been deleted, but its TCB has not yet been freed. */ - eInvalid /* Used as an 'invalid state' value. */ -} eTaskState; - -/* Actions that can be performed when vTaskNotify() is called. */ -typedef enum -{ - eNoAction = 0, /* Notify the task without updating its notify value. */ - eSetBits, /* Set bits in the task's notification value. */ - eIncrement, /* Increment the task's notification value. */ - eSetValueWithOverwrite, /* Set the task's notification value to a specific value even if the previous value has not yet been read by the task. */ - eSetValueWithoutOverwrite /* Set the task's notification value if the previous value has been read by the task. */ -} eNotifyAction; - -/* - * Used internally only. - */ -typedef struct xTIME_OUT -{ - BaseType_t xOverflowCount; - TickType_t xTimeOnEntering; -} TimeOut_t; - -/* - * Defines the memory ranges allocated to the task when an MPU is used. - */ -typedef struct xMEMORY_REGION -{ - void *pvBaseAddress; - uint32_t ulLengthInBytes; - uint32_t ulParameters; -} MemoryRegion_t; - -/* - * Parameters required to create an MPU protected task. - */ -typedef struct xTASK_PARAMETERS -{ - TaskFunction_t pvTaskCode; - const char * const pcName; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ - configSTACK_DEPTH_TYPE usStackDepth; - void *pvParameters; - UBaseType_t uxPriority; - StackType_t *puxStackBuffer; - MemoryRegion_t xRegions[ portNUM_CONFIGURABLE_REGIONS ]; - #if ( ( portUSING_MPU_WRAPPERS == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) ) - StaticTask_t * const pxTaskBuffer; - #endif -} TaskParameters_t; - -/* Used with the uxTaskGetSystemState() function to return the state of each task -in the system. */ -typedef struct xTASK_STATUS -{ - TaskHandle_t xHandle; /* The handle of the task to which the rest of the information in the structure relates. */ - const char *pcTaskName; /* A pointer to the task's name. This value will be invalid if the task was deleted since the structure was populated! */ /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ - UBaseType_t xTaskNumber; /* A number unique to the task. */ - eTaskState eCurrentState; /* The state in which the task existed when the structure was populated. */ - UBaseType_t uxCurrentPriority; /* The priority at which the task was running (may be inherited) when the structure was populated. */ - UBaseType_t uxBasePriority; /* The priority to which the task will return if the task's current priority has been inherited to avoid unbounded priority inversion when obtaining a mutex. Only valid if configUSE_MUTEXES is defined as 1 in FreeRTOSConfig.h. */ - uint32_t ulRunTimeCounter; /* The total run time allocated to the task so far, as defined by the run time stats clock. See http://www.freertos.org/rtos-run-time-stats.html. Only valid when configGENERATE_RUN_TIME_STATS is defined as 1 in FreeRTOSConfig.h. */ - StackType_t *pxStackBase; /* Points to the lowest address of the task's stack area. */ - configSTACK_DEPTH_TYPE usStackHighWaterMark; /* The minimum amount of stack space that has remained for the task since the task was created. The closer this value is to zero the closer the task has come to overflowing its stack. */ -} TaskStatus_t; - -/* Possible return values for eTaskConfirmSleepModeStatus(). */ -typedef enum -{ - eAbortSleep = 0, /* A task has been made ready or a context switch pended since portSUPPORESS_TICKS_AND_SLEEP() was called - abort entering a sleep mode. */ - eStandardSleep, /* Enter a sleep mode that will not last any longer than the expected idle time. */ - eNoTasksWaitingTimeout /* No tasks are waiting for a timeout so it is safe to enter a sleep mode that can only be exited by an external interrupt. */ -} eSleepModeStatus; - -/** - * Defines the priority used by the idle task. This must not be modified. - * - * \ingroup TaskUtils - */ -#define tskIDLE_PRIORITY ( ( UBaseType_t ) 0U ) - -/** - * task. h - * - * Macro for forcing a context switch. - * - * \defgroup taskYIELD taskYIELD - * \ingroup SchedulerControl - */ -#define taskYIELD() portYIELD() - -/** - * task. h - * - * Macro to mark the start of a critical code region. Preemptive context - * switches cannot occur when in a critical region. - * - * NOTE: This may alter the stack (depending on the portable implementation) - * so must be used with care! - * - * \defgroup taskENTER_CRITICAL taskENTER_CRITICAL - * \ingroup SchedulerControl - */ -#define taskENTER_CRITICAL() portENTER_CRITICAL() -#define taskENTER_CRITICAL_FROM_ISR() portSET_INTERRUPT_MASK_FROM_ISR() - -/** - * task. h - * - * Macro to mark the end of a critical code region. Preemptive context - * switches cannot occur when in a critical region. - * - * NOTE: This may alter the stack (depending on the portable implementation) - * so must be used with care! - * - * \defgroup taskEXIT_CRITICAL taskEXIT_CRITICAL - * \ingroup SchedulerControl - */ -#define taskEXIT_CRITICAL() portEXIT_CRITICAL() -#define taskEXIT_CRITICAL_FROM_ISR( x ) portCLEAR_INTERRUPT_MASK_FROM_ISR( x ) -/** - * task. h - * - * Macro to disable all maskable interrupts. - * - * \defgroup taskDISABLE_INTERRUPTS taskDISABLE_INTERRUPTS - * \ingroup SchedulerControl - */ -#define taskDISABLE_INTERRUPTS() portDISABLE_INTERRUPTS() - -/** - * task. h - * - * Macro to enable microcontroller interrupts. - * - * \defgroup taskENABLE_INTERRUPTS taskENABLE_INTERRUPTS - * \ingroup SchedulerControl - */ -#define taskENABLE_INTERRUPTS() portENABLE_INTERRUPTS() - -/* Definitions returned by xTaskGetSchedulerState(). taskSCHEDULER_SUSPENDED is -0 to generate more optimal code when configASSERT() is defined as the constant -is used in assert() statements. */ -#define taskSCHEDULER_SUSPENDED ( ( BaseType_t ) 0 ) -#define taskSCHEDULER_NOT_STARTED ( ( BaseType_t ) 1 ) -#define taskSCHEDULER_RUNNING ( ( BaseType_t ) 2 ) - - -/*----------------------------------------------------------- - * TASK CREATION API - *----------------------------------------------------------*/ - -/** - * task. h - *
- BaseType_t xTaskCreate(
-							  TaskFunction_t pvTaskCode,
-							  const char * const pcName,
-							  configSTACK_DEPTH_TYPE usStackDepth,
-							  void *pvParameters,
-							  UBaseType_t uxPriority,
-							  TaskHandle_t *pvCreatedTask
-						  );
- * - * Create a new task and add it to the list of tasks that are ready to run. - * - * Internally, within the FreeRTOS implementation, tasks use two blocks of - * memory. The first block is used to hold the task's data structures. The - * second block is used by the task as its stack. If a task is created using - * xTaskCreate() then both blocks of memory are automatically dynamically - * allocated inside the xTaskCreate() function. (see - * http://www.freertos.org/a00111.html). If a task is created using - * xTaskCreateStatic() then the application writer must provide the required - * memory. xTaskCreateStatic() therefore allows a task to be created without - * using any dynamic memory allocation. - * - * See xTaskCreateStatic() for a version that does not use any dynamic memory - * allocation. - * - * xTaskCreate() can only be used to create a task that has unrestricted - * access to the entire microcontroller memory map. Systems that include MPU - * support can alternatively create an MPU constrained task using - * xTaskCreateRestricted(). - * - * @param pvTaskCode Pointer to the task entry function. Tasks - * must be implemented to never return (i.e. continuous loop). - * - * @param pcName A descriptive name for the task. This is mainly used to - * facilitate debugging. Max length defined by configMAX_TASK_NAME_LEN - default - * is 16. - * - * @param usStackDepth The size of the task stack specified as the number of - * variables the stack can hold - not the number of bytes. For example, if - * the stack is 16 bits wide and usStackDepth is defined as 100, 200 bytes - * will be allocated for stack storage. - * - * @param pvParameters Pointer that will be used as the parameter for the task - * being created. - * - * @param uxPriority The priority at which the task should run. Systems that - * include MPU support can optionally create tasks in a privileged (system) - * mode by setting bit portPRIVILEGE_BIT of the priority parameter. For - * example, to create a privileged task at priority 2 the uxPriority parameter - * should be set to ( 2 | portPRIVILEGE_BIT ). - * - * @param pvCreatedTask Used to pass back a handle by which the created task - * can be referenced. - * - * @return pdPASS if the task was successfully created and added to a ready - * list, otherwise an error code defined in the file projdefs.h - * - * Example usage: -
- // Task to be created.
- void vTaskCode( void * pvParameters )
- {
-	 for( ;; )
-	 {
-		 // Task code goes here.
-	 }
- }
-
- // Function that creates a task.
- void vOtherFunction( void )
- {
- static uint8_t ucParameterToPass;
- TaskHandle_t xHandle = NULL;
-
-	 // Create the task, storing the handle.  Note that the passed parameter ucParameterToPass
-	 // must exist for the lifetime of the task, so in this case is declared static.  If it was just an
-	 // an automatic stack variable it might no longer exist, or at least have been corrupted, by the time
-	 // the new task attempts to access it.
-	 xTaskCreate( vTaskCode, "NAME", STACK_SIZE, &ucParameterToPass, tskIDLE_PRIORITY, &xHandle );
-	 configASSERT( xHandle );
-
-	 // Use the handle to delete the task.
-	 if( xHandle != NULL )
-	 {
-	 	vTaskDelete( xHandle );
-	 }
- }
-   
- * \defgroup xTaskCreate xTaskCreate - * \ingroup Tasks - */ -#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) - BaseType_t xTaskCreate( TaskFunction_t pxTaskCode, - 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 ) PRIVILEGED_FUNCTION; -#endif - -/** - * task. h - *
- TaskHandle_t xTaskCreateStatic( TaskFunction_t pvTaskCode,
-								 const char * const pcName,
-								 uint32_t ulStackDepth,
-								 void *pvParameters,
-								 UBaseType_t uxPriority,
-								 StackType_t *pxStackBuffer,
-								 StaticTask_t *pxTaskBuffer );
- * - * Create a new task and add it to the list of tasks that are ready to run. - * - * Internally, within the FreeRTOS implementation, tasks use two blocks of - * memory. The first block is used to hold the task's data structures. The - * second block is used by the task as its stack. If a task is created using - * xTaskCreate() then both blocks of memory are automatically dynamically - * allocated inside the xTaskCreate() function. (see - * http://www.freertos.org/a00111.html). If a task is created using - * xTaskCreateStatic() then the application writer must provide the required - * memory. xTaskCreateStatic() therefore allows a task to be created without - * using any dynamic memory allocation. - * - * @param pvTaskCode Pointer to the task entry function. Tasks - * must be implemented to never return (i.e. continuous loop). - * - * @param pcName A descriptive name for the task. This is mainly used to - * facilitate debugging. The maximum length of the string is defined by - * configMAX_TASK_NAME_LEN in FreeRTOSConfig.h. - * - * @param ulStackDepth The size of the task stack specified as the number of - * variables the stack can hold - not the number of bytes. For example, if - * the stack is 32-bits wide and ulStackDepth is defined as 100 then 400 bytes - * will be allocated for stack storage. - * - * @param pvParameters Pointer that will be used as the parameter for the task - * being created. - * - * @param uxPriority The priority at which the task will run. - * - * @param pxStackBuffer Must point to a StackType_t array that has at least - * ulStackDepth indexes - the array will then be used as the task's stack, - * removing the need for the stack to be allocated dynamically. - * - * @param pxTaskBuffer Must point to a variable of type StaticTask_t, which will - * then be used to hold the task's data structures, removing the need for the - * memory to be allocated dynamically. - * - * @return If neither pxStackBuffer or pxTaskBuffer are NULL, then the task will - * be created and a handle to the created task is returned. If either - * pxStackBuffer or pxTaskBuffer are NULL then the task will not be created and - * NULL is returned. - * - * Example usage: -
-
-    // Dimensions the buffer that the task being created will use as its stack.
-    // NOTE:  This is the number of words the stack will hold, not the number of
-    // bytes.  For example, if each stack item is 32-bits, and this is set to 100,
-    // then 400 bytes (100 * 32-bits) will be allocated.
-    #define STACK_SIZE 200
-
-    // Structure that will hold the TCB of the task being created.
-    StaticTask_t xTaskBuffer;
-
-    // Buffer that the task being created will use as its stack.  Note this is
-    // an array of StackType_t variables.  The size of StackType_t is dependent on
-    // the RTOS port.
-    StackType_t xStack[ STACK_SIZE ];
-
-    // Function that implements the task being created.
-    void vTaskCode( void * pvParameters )
-    {
-        // The parameter value is expected to be 1 as 1 is passed in the
-        // pvParameters value in the call to xTaskCreateStatic().
-        configASSERT( ( uint32_t ) pvParameters == 1UL );
-
-        for( ;; )
-        {
-            // Task code goes here.
-        }
-    }
-
-    // Function that creates a task.
-    void vOtherFunction( void )
-    {
-        TaskHandle_t xHandle = NULL;
-
-        // Create the task without using any dynamic memory allocation.
-        xHandle = xTaskCreateStatic(
-                      vTaskCode,       // Function that implements the task.
-                      "NAME",          // Text name for the task.
-                      STACK_SIZE,      // Stack size in words, not bytes.
-                      ( void * ) 1,    // Parameter passed into the task.
-                      tskIDLE_PRIORITY,// Priority at which the task is created.
-                      xStack,          // Array to use as the task's stack.
-                      &xTaskBuffer );  // Variable to hold the task's data structure.
-
-        // puxStackBuffer and pxTaskBuffer were not NULL, so the task will have
-        // been created, and xHandle will be the task's handle.  Use the handle
-        // to suspend the task.
-        vTaskSuspend( xHandle );
-    }
-   
- * \defgroup xTaskCreateStatic xTaskCreateStatic - * \ingroup Tasks - */ -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) - TaskHandle_t xTaskCreateStatic( TaskFunction_t pxTaskCode, - const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ - const uint32_t ulStackDepth, - void * const pvParameters, - UBaseType_t uxPriority, - StackType_t * const puxStackBuffer, - StaticTask_t * const pxTaskBuffer ) PRIVILEGED_FUNCTION; -#endif /* configSUPPORT_STATIC_ALLOCATION */ - -/** - * task. h - *
- BaseType_t xTaskCreateRestricted( TaskParameters_t *pxTaskDefinition, TaskHandle_t *pxCreatedTask );
- * - * Only available when configSUPPORT_DYNAMIC_ALLOCATION is set to 1. - * - * xTaskCreateRestricted() should only be used in systems that include an MPU - * implementation. - * - * Create a new task and add it to the list of tasks that are ready to run. - * The function parameters define the memory regions and associated access - * permissions allocated to the task. - * - * See xTaskCreateRestrictedStatic() for a version that does not use any - * dynamic memory allocation. - * - * @param pxTaskDefinition Pointer to a structure that contains a member - * for each of the normal xTaskCreate() parameters (see the xTaskCreate() API - * documentation) plus an optional stack buffer and the memory region - * definitions. - * - * @param pxCreatedTask Used to pass back a handle by which the created task - * can be referenced. - * - * @return pdPASS if the task was successfully created and added to a ready - * list, otherwise an error code defined in the file projdefs.h - * - * Example usage: -
-// Create an TaskParameters_t structure that defines the task to be created.
-static const TaskParameters_t xCheckTaskParameters =
-{
-	vATask,		// pvTaskCode - the function that implements the task.
-	"ATask",	// pcName - just a text name for the task to assist debugging.
-	100,		// usStackDepth	- the stack size DEFINED IN WORDS.
-	NULL,		// pvParameters - passed into the task function as the function parameters.
-	( 1UL | portPRIVILEGE_BIT ),// uxPriority - task priority, set the portPRIVILEGE_BIT if the task should run in a privileged state.
-	cStackBuffer,// puxStackBuffer - the buffer to be used as the task stack.
-
-	// xRegions - Allocate up to three separate memory regions for access by
-	// the task, with appropriate access permissions.  Different processors have
-	// different memory alignment requirements - refer to the FreeRTOS documentation
-	// for full information.
-	{
-		// Base address					Length	Parameters
-		{ cReadWriteArray,				32,		portMPU_REGION_READ_WRITE },
-		{ cReadOnlyArray,				32,		portMPU_REGION_READ_ONLY },
-		{ cPrivilegedOnlyAccessArray,	128,	portMPU_REGION_PRIVILEGED_READ_WRITE }
-	}
-};
-
-int main( void )
-{
-TaskHandle_t xHandle;
-
-	// Create a task from the const structure defined above.  The task handle
-	// is requested (the second parameter is not NULL) but in this case just for
-	// demonstration purposes as its not actually used.
-	xTaskCreateRestricted( &xRegTest1Parameters, &xHandle );
-
-	// Start the scheduler.
-	vTaskStartScheduler();
-
-	// Will only get here if there was insufficient memory to create the idle
-	// and/or timer task.
-	for( ;; );
-}
-   
- * \defgroup xTaskCreateRestricted xTaskCreateRestricted - * \ingroup Tasks - */ -#if( portUSING_MPU_WRAPPERS == 1 ) - BaseType_t xTaskCreateRestricted( const TaskParameters_t * const pxTaskDefinition, TaskHandle_t *pxCreatedTask ) PRIVILEGED_FUNCTION; -#endif - -/** - * task. h - *
- BaseType_t xTaskCreateRestrictedStatic( TaskParameters_t *pxTaskDefinition, TaskHandle_t *pxCreatedTask );
- * - * Only available when configSUPPORT_STATIC_ALLOCATION is set to 1. - * - * xTaskCreateRestrictedStatic() should only be used in systems that include an - * MPU implementation. - * - * Internally, within the FreeRTOS implementation, tasks use two blocks of - * memory. The first block is used to hold the task's data structures. The - * second block is used by the task as its stack. If a task is created using - * xTaskCreateRestricted() then the stack is provided by the application writer, - * and the memory used to hold the task's data structure is automatically - * dynamically allocated inside the xTaskCreateRestricted() function. If a task - * is created using xTaskCreateRestrictedStatic() then the application writer - * must provide the memory used to hold the task's data structures too. - * xTaskCreateRestrictedStatic() therefore allows a memory protected task to be - * created without using any dynamic memory allocation. - * - * @param pxTaskDefinition Pointer to a structure that contains a member - * for each of the normal xTaskCreate() parameters (see the xTaskCreate() API - * documentation) plus an optional stack buffer and the memory region - * definitions. If configSUPPORT_STATIC_ALLOCATION is set to 1 the structure - * contains an additional member, which is used to point to a variable of type - * StaticTask_t - which is then used to hold the task's data structure. - * - * @param pxCreatedTask Used to pass back a handle by which the created task - * can be referenced. - * - * @return pdPASS if the task was successfully created and added to a ready - * list, otherwise an error code defined in the file projdefs.h - * - * Example usage: -
-// Create an TaskParameters_t structure that defines the task to be created.
-// The StaticTask_t variable is only included in the structure when
-// configSUPPORT_STATIC_ALLOCATION is set to 1.  The PRIVILEGED_DATA macro can
-// be used to force the variable into the RTOS kernel's privileged data area.
-static PRIVILEGED_DATA StaticTask_t xTaskBuffer;
-static const TaskParameters_t xCheckTaskParameters =
-{
-	vATask,		// pvTaskCode - the function that implements the task.
-	"ATask",	// pcName - just a text name for the task to assist debugging.
-	100,		// usStackDepth	- the stack size DEFINED IN WORDS.
-	NULL,		// pvParameters - passed into the task function as the function parameters.
-	( 1UL | portPRIVILEGE_BIT ),// uxPriority - task priority, set the portPRIVILEGE_BIT if the task should run in a privileged state.
-	cStackBuffer,// puxStackBuffer - the buffer to be used as the task stack.
-
-	// xRegions - Allocate up to three separate memory regions for access by
-	// the task, with appropriate access permissions.  Different processors have
-	// different memory alignment requirements - refer to the FreeRTOS documentation
-	// for full information.
-	{
-		// Base address					Length	Parameters
-		{ cReadWriteArray,				32,		portMPU_REGION_READ_WRITE },
-		{ cReadOnlyArray,				32,		portMPU_REGION_READ_ONLY },
-		{ cPrivilegedOnlyAccessArray,	128,	portMPU_REGION_PRIVILEGED_READ_WRITE }
-	}
-
-	&xTaskBuffer; // Holds the task's data structure.
-};
-
-int main( void )
-{
-TaskHandle_t xHandle;
-
-	// Create a task from the const structure defined above.  The task handle
-	// is requested (the second parameter is not NULL) but in this case just for
-	// demonstration purposes as its not actually used.
-	xTaskCreateRestricted( &xRegTest1Parameters, &xHandle );
-
-	// Start the scheduler.
-	vTaskStartScheduler();
-
-	// Will only get here if there was insufficient memory to create the idle
-	// and/or timer task.
-	for( ;; );
-}
-   
- * \defgroup xTaskCreateRestrictedStatic xTaskCreateRestrictedStatic - * \ingroup Tasks - */ -#if( ( portUSING_MPU_WRAPPERS == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) ) - BaseType_t xTaskCreateRestrictedStatic( const TaskParameters_t * const pxTaskDefinition, TaskHandle_t *pxCreatedTask ) PRIVILEGED_FUNCTION; -#endif - -/** - * task. h - *
- void vTaskAllocateMPURegions( TaskHandle_t xTask, const MemoryRegion_t * const pxRegions );
- * - * Memory regions are assigned to a restricted task when the task is created by - * a call to xTaskCreateRestricted(). These regions can be redefined using - * vTaskAllocateMPURegions(). - * - * @param xTask The handle of the task being updated. - * - * @param xRegions A pointer to an MemoryRegion_t structure that contains the - * new memory region definitions. - * - * Example usage: -
-// Define an array of MemoryRegion_t structures that configures an MPU region
-// allowing read/write access for 1024 bytes starting at the beginning of the
-// ucOneKByte array.  The other two of the maximum 3 definable regions are
-// unused so set to zero.
-static const MemoryRegion_t xAltRegions[ portNUM_CONFIGURABLE_REGIONS ] =
-{
-	// Base address		Length		Parameters
-	{ ucOneKByte,		1024,		portMPU_REGION_READ_WRITE },
-	{ 0,				0,			0 },
-	{ 0,				0,			0 }
-};
-
-void vATask( void *pvParameters )
-{
-	// This task was created such that it has access to certain regions of
-	// memory as defined by the MPU configuration.  At some point it is
-	// desired that these MPU regions are replaced with that defined in the
-	// xAltRegions const struct above.  Use a call to vTaskAllocateMPURegions()
-	// for this purpose.  NULL is used as the task handle to indicate that this
-	// function should modify the MPU regions of the calling task.
-	vTaskAllocateMPURegions( NULL, xAltRegions );
-
-	// Now the task can continue its function, but from this point on can only
-	// access its stack and the ucOneKByte array (unless any other statically
-	// defined or shared regions have been declared elsewhere).
-}
-   
- * \defgroup xTaskCreateRestricted xTaskCreateRestricted - * \ingroup Tasks - */ -void vTaskAllocateMPURegions( TaskHandle_t xTask, const MemoryRegion_t * const pxRegions ) PRIVILEGED_FUNCTION; - -/** - * task. h - *
void vTaskDelete( TaskHandle_t xTask );
- * - * INCLUDE_vTaskDelete must be defined as 1 for this function to be available. - * See the configuration section for more information. - * - * Remove a task from the RTOS real time kernel's management. The task being - * deleted will be removed from all ready, blocked, suspended and event lists. - * - * NOTE: The idle task is responsible for freeing the kernel allocated - * memory from tasks that have been deleted. It is therefore important that - * the idle task is not starved of microcontroller processing time if your - * application makes any calls to vTaskDelete (). Memory allocated by the - * task code is not automatically freed, and should be freed before the task - * is deleted. - * - * See the demo application file death.c for sample code that utilises - * vTaskDelete (). - * - * @param xTask The handle of the task to be deleted. Passing NULL will - * cause the calling task to be deleted. - * - * Example usage: -
- void vOtherFunction( void )
- {
- TaskHandle_t xHandle;
-
-	 // Create the task, storing the handle.
-	 xTaskCreate( vTaskCode, "NAME", STACK_SIZE, NULL, tskIDLE_PRIORITY, &xHandle );
-
-	 // Use the handle to delete the task.
-	 vTaskDelete( xHandle );
- }
-   
- * \defgroup vTaskDelete vTaskDelete - * \ingroup Tasks - */ -void vTaskDelete( TaskHandle_t xTaskToDelete ) PRIVILEGED_FUNCTION; - -/*----------------------------------------------------------- - * TASK CONTROL API - *----------------------------------------------------------*/ - -/** - * task. h - *
void vTaskDelay( const TickType_t xTicksToDelay );
- * - * Delay a task for a given number of ticks. The actual time that the - * task remains blocked depends on the tick rate. The constant - * portTICK_PERIOD_MS can be used to calculate real time from the tick - * rate - with the resolution of one tick period. - * - * INCLUDE_vTaskDelay must be defined as 1 for this function to be available. - * See the configuration section for more information. - * - * - * vTaskDelay() specifies a time at which the task wishes to unblock relative to - * the time at which vTaskDelay() is called. For example, specifying a block - * period of 100 ticks will cause the task to unblock 100 ticks after - * vTaskDelay() is called. vTaskDelay() does not therefore provide a good method - * of controlling the frequency of a periodic task as the path taken through the - * code, as well as other task and interrupt activity, will effect the frequency - * at which vTaskDelay() gets called and therefore the time at which the task - * next executes. See vTaskDelayUntil() for an alternative API function designed - * to facilitate fixed frequency execution. It does this by specifying an - * absolute time (rather than a relative time) at which the calling task should - * unblock. - * - * @param xTicksToDelay The amount of time, in tick periods, that - * the calling task should block. - * - * Example usage: - - void vTaskFunction( void * pvParameters ) - { - // Block for 500ms. - const TickType_t xDelay = 500 / portTICK_PERIOD_MS; - - for( ;; ) - { - // Simply toggle the LED every 500ms, blocking between each toggle. - vToggleLED(); - vTaskDelay( xDelay ); - } - } - - * \defgroup vTaskDelay vTaskDelay - * \ingroup TaskCtrl - */ -void vTaskDelay( const TickType_t xTicksToDelay ) PRIVILEGED_FUNCTION; - -/** - * task. h - *
void vTaskDelayUntil( TickType_t *pxPreviousWakeTime, const TickType_t xTimeIncrement );
- * - * INCLUDE_vTaskDelayUntil must be defined as 1 for this function to be available. - * See the configuration section for more information. - * - * Delay a task until a specified time. This function can be used by periodic - * tasks to ensure a constant execution frequency. - * - * This function differs from vTaskDelay () in one important aspect: vTaskDelay () will - * cause a task to block for the specified number of ticks from the time vTaskDelay () is - * called. It is therefore difficult to use vTaskDelay () by itself to generate a fixed - * execution frequency as the time between a task starting to execute and that task - * calling vTaskDelay () may not be fixed [the task may take a different path though the - * code between calls, or may get interrupted or preempted a different number of times - * each time it executes]. - * - * Whereas vTaskDelay () specifies a wake time relative to the time at which the function - * is called, vTaskDelayUntil () specifies the absolute (exact) time at which it wishes to - * unblock. - * - * The constant portTICK_PERIOD_MS can be used to calculate real time from the tick - * rate - with the resolution of one tick period. - * - * @param pxPreviousWakeTime Pointer to a variable that holds the time at which the - * task was last unblocked. The variable must be initialised with the current time - * prior to its first use (see the example below). Following this the variable is - * automatically updated within vTaskDelayUntil (). - * - * @param xTimeIncrement The cycle time period. The task will be unblocked at - * time *pxPreviousWakeTime + xTimeIncrement. Calling vTaskDelayUntil with the - * same xTimeIncrement parameter value will cause the task to execute with - * a fixed interface period. - * - * Example usage: -
- // Perform an action every 10 ticks.
- void vTaskFunction( void * pvParameters )
- {
- TickType_t xLastWakeTime;
- const TickType_t xFrequency = 10;
-
-	 // Initialise the xLastWakeTime variable with the current time.
-	 xLastWakeTime = xTaskGetTickCount ();
-	 for( ;; )
-	 {
-		 // Wait for the next cycle.
-		 vTaskDelayUntil( &xLastWakeTime, xFrequency );
-
-		 // Perform action here.
-	 }
- }
-   
- * \defgroup vTaskDelayUntil vTaskDelayUntil - * \ingroup TaskCtrl - */ -void vTaskDelayUntil( TickType_t * const pxPreviousWakeTime, const TickType_t xTimeIncrement ) PRIVILEGED_FUNCTION; - -/** - * task. h - *
BaseType_t xTaskAbortDelay( TaskHandle_t xTask );
- * - * INCLUDE_xTaskAbortDelay must be defined as 1 in FreeRTOSConfig.h for this - * function to be available. - * - * A task will enter the Blocked state when it is waiting for an event. The - * event it is waiting for can be a temporal event (waiting for a time), such - * as when vTaskDelay() is called, or an event on an object, such as when - * xQueueReceive() or ulTaskNotifyTake() is called. If the handle of a task - * that is in the Blocked state is used in a call to xTaskAbortDelay() then the - * task will leave the Blocked state, and return from whichever function call - * placed the task into the Blocked state. - * - * There is no 'FromISR' version of this function as an interrupt would need to - * know which object a task was blocked on in order to know which actions to - * take. For example, if the task was blocked on a queue the interrupt handler - * would then need to know if the queue was locked. - * - * @param xTask The handle of the task to remove from the Blocked state. - * - * @return If the task referenced by xTask was not in the Blocked state then - * pdFAIL is returned. Otherwise pdPASS is returned. - * - * \defgroup xTaskAbortDelay xTaskAbortDelay - * \ingroup TaskCtrl - */ -BaseType_t xTaskAbortDelay( TaskHandle_t xTask ) PRIVILEGED_FUNCTION; - -/** - * task. h - *
UBaseType_t uxTaskPriorityGet( const TaskHandle_t xTask );
- * - * INCLUDE_uxTaskPriorityGet must be defined as 1 for this function to be available. - * See the configuration section for more information. - * - * Obtain the priority of any task. - * - * @param xTask Handle of the task to be queried. Passing a NULL - * handle results in the priority of the calling task being returned. - * - * @return The priority of xTask. - * - * Example usage: -
- void vAFunction( void )
- {
- TaskHandle_t xHandle;
-
-	 // Create a task, storing the handle.
-	 xTaskCreate( vTaskCode, "NAME", STACK_SIZE, NULL, tskIDLE_PRIORITY, &xHandle );
-
-	 // ...
-
-	 // Use the handle to obtain the priority of the created task.
-	 // It was created with tskIDLE_PRIORITY, but may have changed
-	 // it itself.
-	 if( uxTaskPriorityGet( xHandle ) != tskIDLE_PRIORITY )
-	 {
-		 // The task has changed it's priority.
-	 }
-
-	 // ...
-
-	 // Is our priority higher than the created task?
-	 if( uxTaskPriorityGet( xHandle ) < uxTaskPriorityGet( NULL ) )
-	 {
-		 // Our priority (obtained using NULL handle) is higher.
-	 }
- }
-   
- * \defgroup uxTaskPriorityGet uxTaskPriorityGet - * \ingroup TaskCtrl - */ -UBaseType_t uxTaskPriorityGet( const TaskHandle_t xTask ) PRIVILEGED_FUNCTION; - -/** - * task. h - *
UBaseType_t uxTaskPriorityGetFromISR( const TaskHandle_t xTask );
- * - * A version of uxTaskPriorityGet() that can be used from an ISR. - */ -UBaseType_t uxTaskPriorityGetFromISR( const TaskHandle_t xTask ) PRIVILEGED_FUNCTION; - -/** - * task. h - *
eTaskState eTaskGetState( TaskHandle_t xTask );
- * - * INCLUDE_eTaskGetState must be defined as 1 for this function to be available. - * See the configuration section for more information. - * - * Obtain the state of any task. States are encoded by the eTaskState - * enumerated type. - * - * @param xTask Handle of the task to be queried. - * - * @return The state of xTask at the time the function was called. Note the - * state of the task might change between the function being called, and the - * functions return value being tested by the calling task. - */ -eTaskState eTaskGetState( TaskHandle_t xTask ) PRIVILEGED_FUNCTION; - -/** - * task. h - *
void vTaskGetInfo( TaskHandle_t xTask, TaskStatus_t *pxTaskStatus, BaseType_t xGetFreeStackSpace, eTaskState eState );
- * - * configUSE_TRACE_FACILITY must be defined as 1 for this function to be - * available. See the configuration section for more information. - * - * Populates a TaskStatus_t structure with information about a task. - * - * @param xTask Handle of the task being queried. If xTask is NULL then - * information will be returned about the calling task. - * - * @param pxTaskStatus A pointer to the TaskStatus_t structure that will be - * filled with information about the task referenced by the handle passed using - * the xTask parameter. - * - * @xGetFreeStackSpace The TaskStatus_t structure contains a member to report - * the stack high water mark of the task being queried. Calculating the stack - * high water mark takes a relatively long time, and can make the system - * temporarily unresponsive - so the xGetFreeStackSpace parameter is provided to - * allow the high water mark checking to be skipped. The high watermark value - * will only be written to the TaskStatus_t structure if xGetFreeStackSpace is - * not set to pdFALSE; - * - * @param eState The TaskStatus_t structure contains a member to report the - * state of the task being queried. Obtaining the task state is not as fast as - * a simple assignment - so the eState parameter is provided to allow the state - * information to be omitted from the TaskStatus_t structure. To obtain state - * information then set eState to eInvalid - otherwise the value passed in - * eState will be reported as the task state in the TaskStatus_t structure. - * - * Example usage: -
- void vAFunction( void )
- {
- TaskHandle_t xHandle;
- TaskStatus_t xTaskDetails;
-
-    // Obtain the handle of a task from its name.
-    xHandle = xTaskGetHandle( "Task_Name" );
-
-    // Check the handle is not NULL.
-    configASSERT( xHandle );
-
-    // Use the handle to obtain further information about the task.
-    vTaskGetInfo( xHandle,
-                  &xTaskDetails,
-                  pdTRUE, // Include the high water mark in xTaskDetails.
-                  eInvalid ); // Include the task state in xTaskDetails.
- }
-   
- * \defgroup vTaskGetInfo vTaskGetInfo - * \ingroup TaskCtrl - */ -void vTaskGetInfo( TaskHandle_t xTask, TaskStatus_t *pxTaskStatus, BaseType_t xGetFreeStackSpace, eTaskState eState ) PRIVILEGED_FUNCTION; - -/** - * task. h - *
void vTaskPrioritySet( TaskHandle_t xTask, UBaseType_t uxNewPriority );
- * - * INCLUDE_vTaskPrioritySet must be defined as 1 for this function to be available. - * See the configuration section for more information. - * - * Set the priority of any task. - * - * A context switch will occur before the function returns if the priority - * being set is higher than the currently executing task. - * - * @param xTask Handle to the task for which the priority is being set. - * Passing a NULL handle results in the priority of the calling task being set. - * - * @param uxNewPriority The priority to which the task will be set. - * - * Example usage: -
- void vAFunction( void )
- {
- TaskHandle_t xHandle;
-
-	 // Create a task, storing the handle.
-	 xTaskCreate( vTaskCode, "NAME", STACK_SIZE, NULL, tskIDLE_PRIORITY, &xHandle );
-
-	 // ...
-
-	 // Use the handle to raise the priority of the created task.
-	 vTaskPrioritySet( xHandle, tskIDLE_PRIORITY + 1 );
-
-	 // ...
-
-	 // Use a NULL handle to raise our priority to the same value.
-	 vTaskPrioritySet( NULL, tskIDLE_PRIORITY + 1 );
- }
-   
- * \defgroup vTaskPrioritySet vTaskPrioritySet - * \ingroup TaskCtrl - */ -void vTaskPrioritySet( TaskHandle_t xTask, UBaseType_t uxNewPriority ) PRIVILEGED_FUNCTION; - -/** - * task. h - *
void vTaskSuspend( TaskHandle_t xTaskToSuspend );
- * - * INCLUDE_vTaskSuspend must be defined as 1 for this function to be available. - * See the configuration section for more information. - * - * Suspend any task. When suspended a task will never get any microcontroller - * processing time, no matter what its priority. - * - * Calls to vTaskSuspend are not accumulative - - * i.e. calling vTaskSuspend () twice on the same task still only requires one - * call to vTaskResume () to ready the suspended task. - * - * @param xTaskToSuspend Handle to the task being suspended. Passing a NULL - * handle will cause the calling task to be suspended. - * - * Example usage: -
- void vAFunction( void )
- {
- TaskHandle_t xHandle;
-
-	 // Create a task, storing the handle.
-	 xTaskCreate( vTaskCode, "NAME", STACK_SIZE, NULL, tskIDLE_PRIORITY, &xHandle );
-
-	 // ...
-
-	 // Use the handle to suspend the created task.
-	 vTaskSuspend( xHandle );
-
-	 // ...
-
-	 // The created task will not run during this period, unless
-	 // another task calls vTaskResume( xHandle ).
-
-	 //...
-
-
-	 // Suspend ourselves.
-	 vTaskSuspend( NULL );
-
-	 // We cannot get here unless another task calls vTaskResume
-	 // with our handle as the parameter.
- }
-   
- * \defgroup vTaskSuspend vTaskSuspend - * \ingroup TaskCtrl - */ -void vTaskSuspend( TaskHandle_t xTaskToSuspend ) PRIVILEGED_FUNCTION; - -/** - * task. h - *
void vTaskResume( TaskHandle_t xTaskToResume );
- * - * INCLUDE_vTaskSuspend must be defined as 1 for this function to be available. - * See the configuration section for more information. - * - * Resumes a suspended task. - * - * A task that has been suspended by one or more calls to vTaskSuspend () - * will be made available for running again by a single call to - * vTaskResume (). - * - * @param xTaskToResume Handle to the task being readied. - * - * Example usage: -
- void vAFunction( void )
- {
- TaskHandle_t xHandle;
-
-	 // Create a task, storing the handle.
-	 xTaskCreate( vTaskCode, "NAME", STACK_SIZE, NULL, tskIDLE_PRIORITY, &xHandle );
-
-	 // ...
-
-	 // Use the handle to suspend the created task.
-	 vTaskSuspend( xHandle );
-
-	 // ...
-
-	 // The created task will not run during this period, unless
-	 // another task calls vTaskResume( xHandle ).
-
-	 //...
-
-
-	 // Resume the suspended task ourselves.
-	 vTaskResume( xHandle );
-
-	 // The created task will once again get microcontroller processing
-	 // time in accordance with its priority within the system.
- }
-   
- * \defgroup vTaskResume vTaskResume - * \ingroup TaskCtrl - */ -void vTaskResume( TaskHandle_t xTaskToResume ) PRIVILEGED_FUNCTION; - -/** - * task. h - *
void xTaskResumeFromISR( TaskHandle_t xTaskToResume );
- * - * INCLUDE_xTaskResumeFromISR must be defined as 1 for this function to be - * available. See the configuration section for more information. - * - * An implementation of vTaskResume() that can be called from within an ISR. - * - * A task that has been suspended by one or more calls to vTaskSuspend () - * will be made available for running again by a single call to - * xTaskResumeFromISR (). - * - * xTaskResumeFromISR() should not be used to synchronise a task with an - * interrupt if there is a chance that the interrupt could arrive prior to the - * task being suspended - as this can lead to interrupts being missed. Use of a - * semaphore as a synchronisation mechanism would avoid this eventuality. - * - * @param xTaskToResume Handle to the task being readied. - * - * @return pdTRUE if resuming the task should result in a context switch, - * otherwise pdFALSE. This is used by the ISR to determine if a context switch - * may be required following the ISR. - * - * \defgroup vTaskResumeFromISR vTaskResumeFromISR - * \ingroup TaskCtrl - */ -BaseType_t xTaskResumeFromISR( TaskHandle_t xTaskToResume ) PRIVILEGED_FUNCTION; - -/*----------------------------------------------------------- - * SCHEDULER CONTROL - *----------------------------------------------------------*/ - -/** - * task. h - *
void vTaskStartScheduler( void );
- * - * Starts the real time kernel tick processing. After calling the kernel - * has control over which tasks are executed and when. - * - * See the demo application file main.c for an example of creating - * tasks and starting the kernel. - * - * Example usage: -
- void vAFunction( void )
- {
-	 // Create at least one task before starting the kernel.
-	 xTaskCreate( vTaskCode, "NAME", STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );
-
-	 // Start the real time kernel with preemption.
-	 vTaskStartScheduler ();
-
-	 // Will not get here unless a task calls vTaskEndScheduler ()
- }
-   
- * - * \defgroup vTaskStartScheduler vTaskStartScheduler - * \ingroup SchedulerControl - */ -void vTaskStartScheduler( void ) PRIVILEGED_FUNCTION; - -/** - * task. h - *
void vTaskEndScheduler( void );
- * - * NOTE: At the time of writing only the x86 real mode port, which runs on a PC - * in place of DOS, implements this function. - * - * Stops the real time kernel tick. All created tasks will be automatically - * deleted and multitasking (either preemptive or cooperative) will - * stop. Execution then resumes from the point where vTaskStartScheduler () - * was called, as if vTaskStartScheduler () had just returned. - * - * See the demo application file main. c in the demo/PC directory for an - * example that uses vTaskEndScheduler (). - * - * vTaskEndScheduler () requires an exit function to be defined within the - * portable layer (see vPortEndScheduler () in port. c for the PC port). This - * performs hardware specific operations such as stopping the kernel tick. - * - * vTaskEndScheduler () will cause all of the resources allocated by the - * kernel to be freed - but will not free resources allocated by application - * tasks. - * - * Example usage: -
- void vTaskCode( void * pvParameters )
- {
-	 for( ;; )
-	 {
-		 // Task code goes here.
-
-		 // At some point we want to end the real time kernel processing
-		 // so call ...
-		 vTaskEndScheduler ();
-	 }
- }
-
- void vAFunction( void )
- {
-	 // Create at least one task before starting the kernel.
-	 xTaskCreate( vTaskCode, "NAME", STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );
-
-	 // Start the real time kernel with preemption.
-	 vTaskStartScheduler ();
-
-	 // Will only get here when the vTaskCode () task has called
-	 // vTaskEndScheduler ().  When we get here we are back to single task
-	 // execution.
- }
-   
- * - * \defgroup vTaskEndScheduler vTaskEndScheduler - * \ingroup SchedulerControl - */ -void vTaskEndScheduler( void ) PRIVILEGED_FUNCTION; - -/** - * task. h - *
void vTaskSuspendAll( void );
- * - * Suspends the scheduler without disabling interrupts. Context switches will - * not occur while the scheduler is suspended. - * - * After calling vTaskSuspendAll () the calling task will continue to execute - * without risk of being swapped out until a call to xTaskResumeAll () has been - * made. - * - * API functions that have the potential to cause a context switch (for example, - * vTaskDelayUntil(), xQueueSend(), etc.) must not be called while the scheduler - * is suspended. - * - * Example usage: -
- void vTask1( void * pvParameters )
- {
-	 for( ;; )
-	 {
-		 // Task code goes here.
-
-		 // ...
-
-		 // At some point the task wants to perform a long operation during
-		 // which it does not want to get swapped out.  It cannot use
-		 // taskENTER_CRITICAL ()/taskEXIT_CRITICAL () as the length of the
-		 // operation may cause interrupts to be missed - including the
-		 // ticks.
-
-		 // Prevent the real time kernel swapping out the task.
-		 vTaskSuspendAll ();
-
-		 // Perform the operation here.  There is no need to use critical
-		 // sections as we have all the microcontroller processing time.
-		 // During this time interrupts will still operate and the kernel
-		 // tick count will be maintained.
-
-		 // ...
-
-		 // The operation is complete.  Restart the kernel.
-		 xTaskResumeAll ();
-	 }
- }
-   
- * \defgroup vTaskSuspendAll vTaskSuspendAll - * \ingroup SchedulerControl - */ -void vTaskSuspendAll( void ) PRIVILEGED_FUNCTION; - -/** - * task. h - *
BaseType_t xTaskResumeAll( void );
- * - * Resumes scheduler activity after it was suspended by a call to - * vTaskSuspendAll(). - * - * xTaskResumeAll() only resumes the scheduler. It does not unsuspend tasks - * that were previously suspended by a call to vTaskSuspend(). - * - * @return If resuming the scheduler caused a context switch then pdTRUE is - * returned, otherwise pdFALSE is returned. - * - * Example usage: -
- void vTask1( void * pvParameters )
- {
-	 for( ;; )
-	 {
-		 // Task code goes here.
-
-		 // ...
-
-		 // At some point the task wants to perform a long operation during
-		 // which it does not want to get swapped out.  It cannot use
-		 // taskENTER_CRITICAL ()/taskEXIT_CRITICAL () as the length of the
-		 // operation may cause interrupts to be missed - including the
-		 // ticks.
-
-		 // Prevent the real time kernel swapping out the task.
-		 vTaskSuspendAll ();
-
-		 // Perform the operation here.  There is no need to use critical
-		 // sections as we have all the microcontroller processing time.
-		 // During this time interrupts will still operate and the real
-		 // time kernel tick count will be maintained.
-
-		 // ...
-
-		 // The operation is complete.  Restart the kernel.  We want to force
-		 // a context switch - but there is no point if resuming the scheduler
-		 // caused a context switch already.
-		 if( !xTaskResumeAll () )
-		 {
-			  taskYIELD ();
-		 }
-	 }
- }
-   
- * \defgroup xTaskResumeAll xTaskResumeAll - * \ingroup SchedulerControl - */ -BaseType_t xTaskResumeAll( void ) PRIVILEGED_FUNCTION; - -/*----------------------------------------------------------- - * TASK UTILITIES - *----------------------------------------------------------*/ - -/** - * task. h - *
TickType_t xTaskGetTickCount( void );
- * - * @return The count of ticks since vTaskStartScheduler was called. - * - * \defgroup xTaskGetTickCount xTaskGetTickCount - * \ingroup TaskUtils - */ -TickType_t xTaskGetTickCount( void ) PRIVILEGED_FUNCTION; - -/** - * task. h - *
TickType_t xTaskGetTickCountFromISR( void );
- * - * @return The count of ticks since vTaskStartScheduler was called. - * - * This is a version of xTaskGetTickCount() that is safe to be called from an - * ISR - provided that TickType_t is the natural word size of the - * microcontroller being used or interrupt nesting is either not supported or - * not being used. - * - * \defgroup xTaskGetTickCountFromISR xTaskGetTickCountFromISR - * \ingroup TaskUtils - */ -TickType_t xTaskGetTickCountFromISR( void ) PRIVILEGED_FUNCTION; - -/** - * task. h - *
uint16_t uxTaskGetNumberOfTasks( void );
- * - * @return The number of tasks that the real time kernel is currently managing. - * This includes all ready, blocked and suspended tasks. A task that - * has been deleted but not yet freed by the idle task will also be - * included in the count. - * - * \defgroup uxTaskGetNumberOfTasks uxTaskGetNumberOfTasks - * \ingroup TaskUtils - */ -UBaseType_t uxTaskGetNumberOfTasks( void ) PRIVILEGED_FUNCTION; - -/** - * task. h - *
char *pcTaskGetName( TaskHandle_t xTaskToQuery );
- * - * @return The text (human readable) name of the task referenced by the handle - * xTaskToQuery. A task can query its own name by either passing in its own - * handle, or by setting xTaskToQuery to NULL. - * - * \defgroup pcTaskGetName pcTaskGetName - * \ingroup TaskUtils - */ -char *pcTaskGetName( TaskHandle_t xTaskToQuery ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ - -/** - * task. h - *
TaskHandle_t xTaskGetHandle( const char *pcNameToQuery );
- * - * NOTE: This function takes a relatively long time to complete and should be - * used sparingly. - * - * @return The handle of the task that has the human readable name pcNameToQuery. - * NULL is returned if no matching name is found. INCLUDE_xTaskGetHandle - * must be set to 1 in FreeRTOSConfig.h for pcTaskGetHandle() to be available. - * - * \defgroup pcTaskGetHandle pcTaskGetHandle - * \ingroup TaskUtils - */ -TaskHandle_t xTaskGetHandle( const char *pcNameToQuery ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ - -/** - * task.h - *
UBaseType_t uxTaskGetStackHighWaterMark( TaskHandle_t xTask );
- * - * INCLUDE_uxTaskGetStackHighWaterMark must be set to 1 in FreeRTOSConfig.h for - * this function to be available. - * - * Returns the high water mark of the stack associated with xTask. That is, - * the minimum free stack space there has been (in words, so on a 32 bit machine - * a value of 1 means 4 bytes) since the task started. The smaller the returned - * number the closer the task has come to overflowing its stack. - * - * uxTaskGetStackHighWaterMark() and uxTaskGetStackHighWaterMark2() are the - * same except for their return type. Using configSTACK_DEPTH_TYPE allows the - * user to determine the return type. It gets around the problem of the value - * overflowing on 8-bit types without breaking backward compatibility for - * applications that expect an 8-bit return type. - * - * @param xTask Handle of the task associated with the stack to be checked. - * Set xTask to NULL to check the stack of the calling task. - * - * @return The smallest amount of free stack space there has been (in words, so - * actual spaces on the stack rather than bytes) since the task referenced by - * xTask was created. - */ -UBaseType_t uxTaskGetStackHighWaterMark( TaskHandle_t xTask ) PRIVILEGED_FUNCTION; - -/** - * task.h - *
configSTACK_DEPTH_TYPE uxTaskGetStackHighWaterMark2( TaskHandle_t xTask );
- * - * INCLUDE_uxTaskGetStackHighWaterMark2 must be set to 1 in FreeRTOSConfig.h for - * this function to be available. - * - * Returns the high water mark of the stack associated with xTask. That is, - * the minimum free stack space there has been (in words, so on a 32 bit machine - * a value of 1 means 4 bytes) since the task started. The smaller the returned - * number the closer the task has come to overflowing its stack. - * - * uxTaskGetStackHighWaterMark() and uxTaskGetStackHighWaterMark2() are the - * same except for their return type. Using configSTACK_DEPTH_TYPE allows the - * user to determine the return type. It gets around the problem of the value - * overflowing on 8-bit types without breaking backward compatibility for - * applications that expect an 8-bit return type. - * - * @param xTask Handle of the task associated with the stack to be checked. - * Set xTask to NULL to check the stack of the calling task. - * - * @return The smallest amount of free stack space there has been (in words, so - * actual spaces on the stack rather than bytes) since the task referenced by - * xTask was created. - */ -configSTACK_DEPTH_TYPE uxTaskGetStackHighWaterMark2( TaskHandle_t xTask ) PRIVILEGED_FUNCTION; - -/* When using trace macros it is sometimes necessary to include task.h before -FreeRTOS.h. When this is done TaskHookFunction_t will not yet have been defined, -so the following two prototypes will cause a compilation error. This can be -fixed by simply guarding against the inclusion of these two prototypes unless -they are explicitly required by the configUSE_APPLICATION_TASK_TAG configuration -constant. */ -#ifdef configUSE_APPLICATION_TASK_TAG - #if configUSE_APPLICATION_TASK_TAG == 1 - /** - * task.h - *
void vTaskSetApplicationTaskTag( TaskHandle_t xTask, TaskHookFunction_t pxHookFunction );
- * - * Sets pxHookFunction to be the task hook function used by the task xTask. - * Passing xTask as NULL has the effect of setting the calling tasks hook - * function. - */ - void vTaskSetApplicationTaskTag( TaskHandle_t xTask, TaskHookFunction_t pxHookFunction ) PRIVILEGED_FUNCTION; - - /** - * task.h - *
void xTaskGetApplicationTaskTag( TaskHandle_t xTask );
- * - * Returns the pxHookFunction value assigned to the task xTask. Do not - * call from an interrupt service routine - call - * xTaskGetApplicationTaskTagFromISR() instead. - */ - TaskHookFunction_t xTaskGetApplicationTaskTag( TaskHandle_t xTask ) PRIVILEGED_FUNCTION; - - /** - * task.h - *
void xTaskGetApplicationTaskTagFromISR( TaskHandle_t xTask );
- * - * Returns the pxHookFunction value assigned to the task xTask. Can - * be called from an interrupt service routine. - */ - TaskHookFunction_t xTaskGetApplicationTaskTagFromISR( TaskHandle_t xTask ) PRIVILEGED_FUNCTION; - #endif /* configUSE_APPLICATION_TASK_TAG ==1 */ -#endif /* ifdef configUSE_APPLICATION_TASK_TAG */ - -#if( configNUM_THREAD_LOCAL_STORAGE_POINTERS > 0 ) - - /* Each task contains an array of pointers that is dimensioned by the - configNUM_THREAD_LOCAL_STORAGE_POINTERS setting in FreeRTOSConfig.h. The - kernel does not use the pointers itself, so the application writer can use - the pointers for any purpose they wish. The following two functions are - used to set and query a pointer respectively. */ - void vTaskSetThreadLocalStoragePointer( TaskHandle_t xTaskToSet, BaseType_t xIndex, void *pvValue ) PRIVILEGED_FUNCTION; - void *pvTaskGetThreadLocalStoragePointer( TaskHandle_t xTaskToQuery, BaseType_t xIndex ) PRIVILEGED_FUNCTION; - -#endif - -/** - * task.h - *
BaseType_t xTaskCallApplicationTaskHook( TaskHandle_t xTask, void *pvParameter );
- * - * Calls the hook function associated with xTask. Passing xTask as NULL has - * the effect of calling the Running tasks (the calling task) hook function. - * - * pvParameter is passed to the hook function for the task to interpret as it - * wants. The return value is the value returned by the task hook function - * registered by the user. - */ -BaseType_t xTaskCallApplicationTaskHook( TaskHandle_t xTask, void *pvParameter ) PRIVILEGED_FUNCTION; - -/** - * xTaskGetIdleTaskHandle() is only available if - * INCLUDE_xTaskGetIdleTaskHandle is set to 1 in FreeRTOSConfig.h. - * - * Simply returns the handle of the idle task. It is not valid to call - * xTaskGetIdleTaskHandle() before the scheduler has been started. - */ -TaskHandle_t xTaskGetIdleTaskHandle( void ) PRIVILEGED_FUNCTION; - -/** - * configUSE_TRACE_FACILITY must be defined as 1 in FreeRTOSConfig.h for - * uxTaskGetSystemState() to be available. - * - * uxTaskGetSystemState() populates an TaskStatus_t structure for each task in - * the system. TaskStatus_t structures contain, among other things, members - * for the task handle, task name, task priority, task state, and total amount - * of run time consumed by the task. See the TaskStatus_t structure - * definition in this file for the full member list. - * - * NOTE: This function is intended for debugging use only as its use results in - * the scheduler remaining suspended for an extended period. - * - * @param pxTaskStatusArray A pointer to an array of TaskStatus_t structures. - * The array must contain at least one TaskStatus_t structure for each task - * that is under the control of the RTOS. The number of tasks under the control - * of the RTOS can be determined using the uxTaskGetNumberOfTasks() API function. - * - * @param uxArraySize The size of the array pointed to by the pxTaskStatusArray - * parameter. The size is specified as the number of indexes in the array, or - * the number of TaskStatus_t structures contained in the array, not by the - * number of bytes in the array. - * - * @param pulTotalRunTime If configGENERATE_RUN_TIME_STATS is set to 1 in - * FreeRTOSConfig.h then *pulTotalRunTime is set by uxTaskGetSystemState() to the - * total run time (as defined by the run time stats clock, see - * http://www.freertos.org/rtos-run-time-stats.html) since the target booted. - * pulTotalRunTime can be set to NULL to omit the total run time information. - * - * @return The number of TaskStatus_t structures that were populated by - * uxTaskGetSystemState(). This should equal the number returned by the - * uxTaskGetNumberOfTasks() API function, but will be zero if the value passed - * in the uxArraySize parameter was too small. - * - * Example usage: -
-    // This example demonstrates how a human readable table of run time stats
-	// information is generated from raw data provided by uxTaskGetSystemState().
-	// The human readable table is written to pcWriteBuffer
-	void vTaskGetRunTimeStats( char *pcWriteBuffer )
-	{
-	TaskStatus_t *pxTaskStatusArray;
-	volatile UBaseType_t uxArraySize, x;
-	uint32_t ulTotalRunTime, ulStatsAsPercentage;
-
-		// Make sure the write buffer does not contain a string.
-		*pcWriteBuffer = 0x00;
-
-		// Take a snapshot of the number of tasks in case it changes while this
-		// function is executing.
-		uxArraySize = uxTaskGetNumberOfTasks();
-
-		// Allocate a TaskStatus_t structure for each task.  An array could be
-		// allocated statically at compile time.
-		pxTaskStatusArray = pvPortMalloc( uxArraySize * sizeof( TaskStatus_t ) );
-
-		if( pxTaskStatusArray != NULL )
-		{
-			// Generate raw status information about each task.
-			uxArraySize = uxTaskGetSystemState( pxTaskStatusArray, uxArraySize, &ulTotalRunTime );
-
-			// For percentage calculations.
-			ulTotalRunTime /= 100UL;
-
-			// Avoid divide by zero errors.
-			if( ulTotalRunTime > 0 )
-			{
-				// For each populated position in the pxTaskStatusArray array,
-				// format the raw data as human readable ASCII data
-				for( x = 0; x < uxArraySize; x++ )
-				{
-					// What percentage of the total run time has the task used?
-					// This will always be rounded down to the nearest integer.
-					// ulTotalRunTimeDiv100 has already been divided by 100.
-					ulStatsAsPercentage = pxTaskStatusArray[ x ].ulRunTimeCounter / ulTotalRunTime;
-
-					if( ulStatsAsPercentage > 0UL )
-					{
-						sprintf( pcWriteBuffer, "%s\t\t%lu\t\t%lu%%\r\n", pxTaskStatusArray[ x ].pcTaskName, pxTaskStatusArray[ x ].ulRunTimeCounter, ulStatsAsPercentage );
-					}
-					else
-					{
-						// If the percentage is zero here then the task has
-						// consumed less than 1% of the total run time.
-						sprintf( pcWriteBuffer, "%s\t\t%lu\t\t<1%%\r\n", pxTaskStatusArray[ x ].pcTaskName, pxTaskStatusArray[ x ].ulRunTimeCounter );
-					}
-
-					pcWriteBuffer += strlen( ( char * ) pcWriteBuffer );
-				}
-			}
-
-			// The array is no longer needed, free the memory it consumes.
-			vPortFree( pxTaskStatusArray );
-		}
-	}
-	
- */ -UBaseType_t uxTaskGetSystemState( TaskStatus_t * const pxTaskStatusArray, const UBaseType_t uxArraySize, uint32_t * const pulTotalRunTime ) PRIVILEGED_FUNCTION; - -/** - * task. h - *
void vTaskList( char *pcWriteBuffer );
- * - * configUSE_TRACE_FACILITY and configUSE_STATS_FORMATTING_FUNCTIONS must - * both be defined as 1 for this function to be available. See the - * configuration section of the FreeRTOS.org website for more information. - * - * NOTE 1: This function will disable interrupts for its duration. It is - * not intended for normal application runtime use but as a debug aid. - * - * Lists all the current tasks, along with their current state and stack - * usage high water mark. - * - * Tasks are reported as blocked ('B'), ready ('R'), deleted ('D') or - * suspended ('S'). - * - * PLEASE NOTE: - * - * This function is provided for convenience only, and is used by many of the - * demo applications. Do not consider it to be part of the scheduler. - * - * vTaskList() calls uxTaskGetSystemState(), then formats part of the - * uxTaskGetSystemState() output into a human readable table that displays task - * names, states and stack usage. - * - * vTaskList() has a dependency on the sprintf() C library function that might - * bloat the code size, use a lot of stack, and provide different results on - * different platforms. An alternative, tiny, third party, and limited - * functionality implementation of sprintf() is provided in many of the - * FreeRTOS/Demo sub-directories in a file called printf-stdarg.c (note - * printf-stdarg.c does not provide a full snprintf() implementation!). - * - * It is recommended that production systems call uxTaskGetSystemState() - * directly to get access to raw stats data, rather than indirectly through a - * call to vTaskList(). - * - * @param pcWriteBuffer A buffer into which the above mentioned details - * will be written, in ASCII form. This buffer is assumed to be large - * enough to contain the generated report. Approximately 40 bytes per - * task should be sufficient. - * - * \defgroup vTaskList vTaskList - * \ingroup TaskUtils - */ -void vTaskList( char * pcWriteBuffer ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ - -/** - * task. h - *
void vTaskGetRunTimeStats( char *pcWriteBuffer );
- * - * configGENERATE_RUN_TIME_STATS and configUSE_STATS_FORMATTING_FUNCTIONS - * must both be defined as 1 for this function to be available. The application - * must also then provide definitions for - * portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() and portGET_RUN_TIME_COUNTER_VALUE() - * to configure a peripheral timer/counter and return the timers current count - * value respectively. The counter should be at least 10 times the frequency of - * the tick count. - * - * NOTE 1: This function will disable interrupts for its duration. It is - * not intended for normal application runtime use but as a debug aid. - * - * Setting configGENERATE_RUN_TIME_STATS to 1 will result in a total - * accumulated execution time being stored for each task. The resolution - * of the accumulated time value depends on the frequency of the timer - * configured by the portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() macro. - * Calling vTaskGetRunTimeStats() writes the total execution time of each - * task into a buffer, both as an absolute count value and as a percentage - * of the total system execution time. - * - * NOTE 2: - * - * This function is provided for convenience only, and is used by many of the - * demo applications. Do not consider it to be part of the scheduler. - * - * vTaskGetRunTimeStats() calls uxTaskGetSystemState(), then formats part of the - * uxTaskGetSystemState() output into a human readable table that displays the - * amount of time each task has spent in the Running state in both absolute and - * percentage terms. - * - * vTaskGetRunTimeStats() has a dependency on the sprintf() C library function - * that might bloat the code size, use a lot of stack, and provide different - * results on different platforms. An alternative, tiny, third party, and - * limited functionality implementation of sprintf() is provided in many of the - * FreeRTOS/Demo sub-directories in a file called printf-stdarg.c (note - * printf-stdarg.c does not provide a full snprintf() implementation!). - * - * It is recommended that production systems call uxTaskGetSystemState() directly - * to get access to raw stats data, rather than indirectly through a call to - * vTaskGetRunTimeStats(). - * - * @param pcWriteBuffer A buffer into which the execution times will be - * written, in ASCII form. This buffer is assumed to be large enough to - * contain the generated report. Approximately 40 bytes per task should - * be sufficient. - * - * \defgroup vTaskGetRunTimeStats vTaskGetRunTimeStats - * \ingroup TaskUtils - */ -void vTaskGetRunTimeStats( char *pcWriteBuffer ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ - -/** -* task. h -*
uint32_t ulTaskGetIdleRunTimeCounter( void );
-* -* configGENERATE_RUN_TIME_STATS and configUSE_STATS_FORMATTING_FUNCTIONS -* must both be defined as 1 for this function to be available. The application -* must also then provide definitions for -* portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() and portGET_RUN_TIME_COUNTER_VALUE() -* to configure a peripheral timer/counter and return the timers current count -* value respectively. The counter should be at least 10 times the frequency of -* the tick count. -* -* Setting configGENERATE_RUN_TIME_STATS to 1 will result in a total -* accumulated execution time being stored for each task. The resolution -* of the accumulated time value depends on the frequency of the timer -* configured by the portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() macro. -* While uxTaskGetSystemState() and vTaskGetRunTimeStats() writes the total -* execution time of each task into a buffer, ulTaskGetIdleRunTimeCounter() -* returns the total execution time of just the idle task. -* -* @return The total run time of the idle task. This is the amount of time the -* idle task has actually been executing. The unit of time is dependent on the -* frequency configured using the portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() and -* portGET_RUN_TIME_COUNTER_VALUE() macros. -* -* \defgroup ulTaskGetIdleRunTimeCounter ulTaskGetIdleRunTimeCounter -* \ingroup TaskUtils -*/ -uint32_t ulTaskGetIdleRunTimeCounter( void ) PRIVILEGED_FUNCTION; - -/** - * task. h - *
BaseType_t xTaskNotify( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction );
- * - * configUSE_TASK_NOTIFICATIONS must be undefined or defined as 1 for this - * function to be available. - * - * When configUSE_TASK_NOTIFICATIONS is set to one each task has its own private - * "notification value", which is a 32-bit unsigned integer (uint32_t). - * - * Events can be sent to a task using an intermediary object. Examples of such - * objects are queues, semaphores, mutexes and event groups. Task notifications - * are a method of sending an event directly to a task without the need for such - * an intermediary object. - * - * A notification sent to a task can optionally perform an action, such as - * update, overwrite or increment the task's notification value. In that way - * task notifications can be used to send data to a task, or be used as light - * weight and fast binary or counting semaphores. - * - * A notification sent to a task will remain pending until it is cleared by the - * task calling xTaskNotifyWait() or ulTaskNotifyTake(). If the task was - * already in the Blocked state to wait for a notification when the notification - * arrives then the task will automatically be removed from the Blocked state - * (unblocked) and the notification cleared. - * - * A task can use xTaskNotifyWait() to [optionally] block to wait for a - * notification to be pending, or ulTaskNotifyTake() to [optionally] block - * to wait for its notification value to have a non-zero value. The task does - * not consume any CPU time while it is in the Blocked state. - * - * See http://www.FreeRTOS.org/RTOS-task-notifications.html for details. - * - * @param xTaskToNotify The handle of the task being notified. The handle to a - * task can be returned from the xTaskCreate() API function used to create the - * task, and the handle of the currently running task can be obtained by calling - * xTaskGetCurrentTaskHandle(). - * - * @param ulValue Data that can be sent with the notification. How the data is - * used depends on the value of the eAction parameter. - * - * @param eAction Specifies how the notification updates the task's notification - * value, if at all. Valid values for eAction are as follows: - * - * eSetBits - - * The task's notification value is bitwise ORed with ulValue. xTaskNofify() - * always returns pdPASS in this case. - * - * eIncrement - - * The task's notification value is incremented. ulValue is not used and - * xTaskNotify() always returns pdPASS in this case. - * - * eSetValueWithOverwrite - - * The task's notification value is set to the value of ulValue, even if the - * task being notified had not yet processed the previous notification (the - * task already had a notification pending). xTaskNotify() always returns - * pdPASS in this case. - * - * eSetValueWithoutOverwrite - - * If the task being notified did not already have a notification pending then - * the task's notification value is set to ulValue and xTaskNotify() will - * return pdPASS. If the task being notified already had a notification - * pending then no action is performed and pdFAIL is returned. - * - * eNoAction - - * The task receives a notification without its notification value being - * updated. ulValue is not used and xTaskNotify() always returns pdPASS in - * this case. - * - * pulPreviousNotificationValue - - * Can be used to pass out the subject task's notification value before any - * bits are modified by the notify function. - * - * @return Dependent on the value of eAction. See the description of the - * eAction parameter. - * - * \defgroup xTaskNotify xTaskNotify - * \ingroup TaskNotifications - */ -BaseType_t xTaskGenericNotify( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue ) PRIVILEGED_FUNCTION; -#define xTaskNotify( xTaskToNotify, ulValue, eAction ) xTaskGenericNotify( ( xTaskToNotify ), ( ulValue ), ( eAction ), NULL ) -#define xTaskNotifyAndQuery( xTaskToNotify, ulValue, eAction, pulPreviousNotifyValue ) xTaskGenericNotify( ( xTaskToNotify ), ( ulValue ), ( eAction ), ( pulPreviousNotifyValue ) ) - -/** - * task. h - *
BaseType_t xTaskNotifyFromISR( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, BaseType_t *pxHigherPriorityTaskWoken );
- * - * configUSE_TASK_NOTIFICATIONS must be undefined or defined as 1 for this - * function to be available. - * - * When configUSE_TASK_NOTIFICATIONS is set to one each task has its own private - * "notification value", which is a 32-bit unsigned integer (uint32_t). - * - * A version of xTaskNotify() that can be used from an interrupt service routine - * (ISR). - * - * Events can be sent to a task using an intermediary object. Examples of such - * objects are queues, semaphores, mutexes and event groups. Task notifications - * are a method of sending an event directly to a task without the need for such - * an intermediary object. - * - * A notification sent to a task can optionally perform an action, such as - * update, overwrite or increment the task's notification value. In that way - * task notifications can be used to send data to a task, or be used as light - * weight and fast binary or counting semaphores. - * - * A notification sent to a task will remain pending until it is cleared by the - * task calling xTaskNotifyWait() or ulTaskNotifyTake(). If the task was - * already in the Blocked state to wait for a notification when the notification - * arrives then the task will automatically be removed from the Blocked state - * (unblocked) and the notification cleared. - * - * A task can use xTaskNotifyWait() to [optionally] block to wait for a - * notification to be pending, or ulTaskNotifyTake() to [optionally] block - * to wait for its notification value to have a non-zero value. The task does - * not consume any CPU time while it is in the Blocked state. - * - * See http://www.FreeRTOS.org/RTOS-task-notifications.html for details. - * - * @param xTaskToNotify The handle of the task being notified. The handle to a - * task can be returned from the xTaskCreate() API function used to create the - * task, and the handle of the currently running task can be obtained by calling - * xTaskGetCurrentTaskHandle(). - * - * @param ulValue Data that can be sent with the notification. How the data is - * used depends on the value of the eAction parameter. - * - * @param eAction Specifies how the notification updates the task's notification - * value, if at all. Valid values for eAction are as follows: - * - * eSetBits - - * The task's notification value is bitwise ORed with ulValue. xTaskNofify() - * always returns pdPASS in this case. - * - * eIncrement - - * The task's notification value is incremented. ulValue is not used and - * xTaskNotify() always returns pdPASS in this case. - * - * eSetValueWithOverwrite - - * The task's notification value is set to the value of ulValue, even if the - * task being notified had not yet processed the previous notification (the - * task already had a notification pending). xTaskNotify() always returns - * pdPASS in this case. - * - * eSetValueWithoutOverwrite - - * If the task being notified did not already have a notification pending then - * the task's notification value is set to ulValue and xTaskNotify() will - * return pdPASS. If the task being notified already had a notification - * pending then no action is performed and pdFAIL is returned. - * - * eNoAction - - * The task receives a notification without its notification value being - * updated. ulValue is not used and xTaskNotify() always returns pdPASS in - * this case. - * - * @param pxHigherPriorityTaskWoken xTaskNotifyFromISR() will set - * *pxHigherPriorityTaskWoken to pdTRUE if sending the notification caused the - * task to which the notification was sent to leave the Blocked state, and the - * unblocked task has a priority higher than the currently running task. If - * xTaskNotifyFromISR() sets this value to pdTRUE then a context switch should - * be requested before the interrupt is exited. How a context switch is - * requested from an ISR is dependent on the port - see the documentation page - * for the port in use. - * - * @return Dependent on the value of eAction. See the description of the - * eAction parameter. - * - * \defgroup xTaskNotify xTaskNotify - * \ingroup TaskNotifications - */ -BaseType_t xTaskGenericNotifyFromISR( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue, BaseType_t *pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION; -#define xTaskNotifyFromISR( xTaskToNotify, ulValue, eAction, pxHigherPriorityTaskWoken ) xTaskGenericNotifyFromISR( ( xTaskToNotify ), ( ulValue ), ( eAction ), NULL, ( pxHigherPriorityTaskWoken ) ) -#define xTaskNotifyAndQueryFromISR( xTaskToNotify, ulValue, eAction, pulPreviousNotificationValue, pxHigherPriorityTaskWoken ) xTaskGenericNotifyFromISR( ( xTaskToNotify ), ( ulValue ), ( eAction ), ( pulPreviousNotificationValue ), ( pxHigherPriorityTaskWoken ) ) - -/** - * task. h - *
BaseType_t xTaskNotifyWait( uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t *pulNotificationValue, TickType_t xTicksToWait );
- * - * configUSE_TASK_NOTIFICATIONS must be undefined or defined as 1 for this - * function to be available. - * - * When configUSE_TASK_NOTIFICATIONS is set to one each task has its own private - * "notification value", which is a 32-bit unsigned integer (uint32_t). - * - * Events can be sent to a task using an intermediary object. Examples of such - * objects are queues, semaphores, mutexes and event groups. Task notifications - * are a method of sending an event directly to a task without the need for such - * an intermediary object. - * - * A notification sent to a task can optionally perform an action, such as - * update, overwrite or increment the task's notification value. In that way - * task notifications can be used to send data to a task, or be used as light - * weight and fast binary or counting semaphores. - * - * A notification sent to a task will remain pending until it is cleared by the - * task calling xTaskNotifyWait() or ulTaskNotifyTake(). If the task was - * already in the Blocked state to wait for a notification when the notification - * arrives then the task will automatically be removed from the Blocked state - * (unblocked) and the notification cleared. - * - * A task can use xTaskNotifyWait() to [optionally] block to wait for a - * notification to be pending, or ulTaskNotifyTake() to [optionally] block - * to wait for its notification value to have a non-zero value. The task does - * not consume any CPU time while it is in the Blocked state. - * - * See http://www.FreeRTOS.org/RTOS-task-notifications.html for details. - * - * @param ulBitsToClearOnEntry Bits that are set in ulBitsToClearOnEntry value - * will be cleared in the calling task's notification value before the task - * checks to see if any notifications are pending, and optionally blocks if no - * notifications are pending. Setting ulBitsToClearOnEntry to ULONG_MAX (if - * limits.h is included) or 0xffffffffUL (if limits.h is not included) will have - * the effect of resetting the task's notification value to 0. Setting - * ulBitsToClearOnEntry to 0 will leave the task's notification value unchanged. - * - * @param ulBitsToClearOnExit If a notification is pending or received before - * the calling task exits the xTaskNotifyWait() function then the task's - * notification value (see the xTaskNotify() API function) is passed out using - * the pulNotificationValue parameter. Then any bits that are set in - * ulBitsToClearOnExit will be cleared in the task's notification value (note - * *pulNotificationValue is set before any bits are cleared). Setting - * ulBitsToClearOnExit to ULONG_MAX (if limits.h is included) or 0xffffffffUL - * (if limits.h is not included) will have the effect of resetting the task's - * notification value to 0 before the function exits. Setting - * ulBitsToClearOnExit to 0 will leave the task's notification value unchanged - * when the function exits (in which case the value passed out in - * pulNotificationValue will match the task's notification value). - * - * @param pulNotificationValue Used to pass the task's notification value out - * of the function. Note the value passed out will not be effected by the - * clearing of any bits caused by ulBitsToClearOnExit being non-zero. - * - * @param xTicksToWait The maximum amount of time that the task should wait in - * the Blocked state for a notification to be received, should a notification - * not already be pending when xTaskNotifyWait() was called. The task - * will not consume any processing time while it is in the Blocked state. This - * is specified in kernel ticks, the macro pdMS_TO_TICSK( value_in_ms ) can be - * used to convert a time specified in milliseconds to a time specified in - * ticks. - * - * @return If a notification was received (including notifications that were - * already pending when xTaskNotifyWait was called) then pdPASS is - * returned. Otherwise pdFAIL is returned. - * - * \defgroup xTaskNotifyWait xTaskNotifyWait - * \ingroup TaskNotifications - */ -BaseType_t xTaskNotifyWait( uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t *pulNotificationValue, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; - -/** - * task. h - *
BaseType_t xTaskNotifyGive( TaskHandle_t xTaskToNotify );
- * - * configUSE_TASK_NOTIFICATIONS must be undefined or defined as 1 for this macro - * to be available. - * - * When configUSE_TASK_NOTIFICATIONS is set to one each task has its own private - * "notification value", which is a 32-bit unsigned integer (uint32_t). - * - * Events can be sent to a task using an intermediary object. Examples of such - * objects are queues, semaphores, mutexes and event groups. Task notifications - * are a method of sending an event directly to a task without the need for such - * an intermediary object. - * - * A notification sent to a task can optionally perform an action, such as - * update, overwrite or increment the task's notification value. In that way - * task notifications can be used to send data to a task, or be used as light - * weight and fast binary or counting semaphores. - * - * xTaskNotifyGive() is a helper macro intended for use when task notifications - * are used as light weight and faster binary or counting semaphore equivalents. - * Actual FreeRTOS semaphores are given using the xSemaphoreGive() API function, - * the equivalent action that instead uses a task notification is - * xTaskNotifyGive(). - * - * When task notifications are being used as a binary or counting semaphore - * equivalent then the task being notified should wait for the notification - * using the ulTaskNotificationTake() API function rather than the - * xTaskNotifyWait() API function. - * - * See http://www.FreeRTOS.org/RTOS-task-notifications.html for more details. - * - * @param xTaskToNotify The handle of the task being notified. The handle to a - * task can be returned from the xTaskCreate() API function used to create the - * task, and the handle of the currently running task can be obtained by calling - * xTaskGetCurrentTaskHandle(). - * - * @return xTaskNotifyGive() is a macro that calls xTaskNotify() with the - * eAction parameter set to eIncrement - so pdPASS is always returned. - * - * \defgroup xTaskNotifyGive xTaskNotifyGive - * \ingroup TaskNotifications - */ -#define xTaskNotifyGive( xTaskToNotify ) xTaskGenericNotify( ( xTaskToNotify ), ( 0 ), eIncrement, NULL ) - -/** - * task. h - *
void vTaskNotifyGiveFromISR( TaskHandle_t xTaskHandle, BaseType_t *pxHigherPriorityTaskWoken );
- *
- * configUSE_TASK_NOTIFICATIONS must be undefined or defined as 1 for this macro
- * to be available.
- *
- * When configUSE_TASK_NOTIFICATIONS is set to one each task has its own private
- * "notification value", which is a 32-bit unsigned integer (uint32_t).
- *
- * A version of xTaskNotifyGive() that can be called from an interrupt service
- * routine (ISR).
- *
- * Events can be sent to a task using an intermediary object.  Examples of such
- * objects are queues, semaphores, mutexes and event groups.  Task notifications
- * are a method of sending an event directly to a task without the need for such
- * an intermediary object.
- *
- * A notification sent to a task can optionally perform an action, such as
- * update, overwrite or increment the task's notification value.  In that way
- * task notifications can be used to send data to a task, or be used as light
- * weight and fast binary or counting semaphores.
- *
- * vTaskNotifyGiveFromISR() is intended for use when task notifications are
- * used as light weight and faster binary or counting semaphore equivalents.
- * Actual FreeRTOS semaphores are given from an ISR using the
- * xSemaphoreGiveFromISR() API function, the equivalent action that instead uses
- * a task notification is vTaskNotifyGiveFromISR().
- *
- * When task notifications are being used as a binary or counting semaphore
- * equivalent then the task being notified should wait for the notification
- * using the ulTaskNotificationTake() API function rather than the
- * xTaskNotifyWait() API function.
- *
- * See http://www.FreeRTOS.org/RTOS-task-notifications.html for more details.
- *
- * @param xTaskToNotify The handle of the task being notified.  The handle to a
- * task can be returned from the xTaskCreate() API function used to create the
- * task, and the handle of the currently running task can be obtained by calling
- * xTaskGetCurrentTaskHandle().
- *
- * @param pxHigherPriorityTaskWoken  vTaskNotifyGiveFromISR() will set
- * *pxHigherPriorityTaskWoken to pdTRUE if sending the notification caused the
- * task to which the notification was sent to leave the Blocked state, and the
- * unblocked task has a priority higher than the currently running task.  If
- * vTaskNotifyGiveFromISR() sets this value to pdTRUE then a context switch
- * should be requested before the interrupt is exited.  How a context switch is
- * requested from an ISR is dependent on the port - see the documentation page
- * for the port in use.
- *
- * \defgroup xTaskNotifyWait xTaskNotifyWait
- * \ingroup TaskNotifications
- */
-void vTaskNotifyGiveFromISR( TaskHandle_t xTaskToNotify, BaseType_t *pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION;
-
-/**
- * task. h
- * 
uint32_t ulTaskNotifyTake( BaseType_t xClearCountOnExit, TickType_t xTicksToWait );
- * - * configUSE_TASK_NOTIFICATIONS must be undefined or defined as 1 for this - * function to be available. - * - * When configUSE_TASK_NOTIFICATIONS is set to one each task has its own private - * "notification value", which is a 32-bit unsigned integer (uint32_t). - * - * Events can be sent to a task using an intermediary object. Examples of such - * objects are queues, semaphores, mutexes and event groups. Task notifications - * are a method of sending an event directly to a task without the need for such - * an intermediary object. - * - * A notification sent to a task can optionally perform an action, such as - * update, overwrite or increment the task's notification value. In that way - * task notifications can be used to send data to a task, or be used as light - * weight and fast binary or counting semaphores. - * - * ulTaskNotifyTake() is intended for use when a task notification is used as a - * faster and lighter weight binary or counting semaphore alternative. Actual - * FreeRTOS semaphores are taken using the xSemaphoreTake() API function, the - * equivalent action that instead uses a task notification is - * ulTaskNotifyTake(). - * - * When a task is using its notification value as a binary or counting semaphore - * other tasks should send notifications to it using the xTaskNotifyGive() - * macro, or xTaskNotify() function with the eAction parameter set to - * eIncrement. - * - * ulTaskNotifyTake() can either clear the task's notification value to - * zero on exit, in which case the notification value acts like a binary - * semaphore, or decrement the task's notification value on exit, in which case - * the notification value acts like a counting semaphore. - * - * A task can use ulTaskNotifyTake() to [optionally] block to wait for a - * the task's notification value to be non-zero. The task does not consume any - * CPU time while it is in the Blocked state. - * - * Where as xTaskNotifyWait() will return when a notification is pending, - * ulTaskNotifyTake() will return when the task's notification value is - * not zero. - * - * See http://www.FreeRTOS.org/RTOS-task-notifications.html for details. - * - * @param xClearCountOnExit if xClearCountOnExit is pdFALSE then the task's - * notification value is decremented when the function exits. In this way the - * notification value acts like a counting semaphore. If xClearCountOnExit is - * not pdFALSE then the task's notification value is cleared to zero when the - * function exits. In this way the notification value acts like a binary - * semaphore. - * - * @param xTicksToWait The maximum amount of time that the task should wait in - * the Blocked state for the task's notification value to be greater than zero, - * should the count not already be greater than zero when - * ulTaskNotifyTake() was called. The task will not consume any processing - * time while it is in the Blocked state. This is specified in kernel ticks, - * the macro pdMS_TO_TICSK( value_in_ms ) can be used to convert a time - * specified in milliseconds to a time specified in ticks. - * - * @return The task's notification count before it is either cleared to zero or - * decremented (see the xClearCountOnExit parameter). - * - * \defgroup ulTaskNotifyTake ulTaskNotifyTake - * \ingroup TaskNotifications - */ -uint32_t ulTaskNotifyTake( BaseType_t xClearCountOnExit, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; - -/** - * task. h - *
BaseType_t xTaskNotifyStateClear( TaskHandle_t xTask );
- * - * If the notification state of the task referenced by the handle xTask is - * eNotified, then set the task's notification state to eNotWaitingNotification. - * The task's notification value is not altered. Set xTask to NULL to clear the - * notification state of the calling task. - * - * @return pdTRUE if the task's notification state was set to - * eNotWaitingNotification, otherwise pdFALSE. - * \defgroup xTaskNotifyStateClear xTaskNotifyStateClear - * \ingroup TaskNotifications - */ -BaseType_t xTaskNotifyStateClear( TaskHandle_t xTask ); - -/** -* task. h -*
uint32_t ulTaskNotifyValueClear( TaskHandle_t xTask, uint32_t ulBitsToClear );
-* -* Clears the bits specified by the ulBitsToClear bit mask in the notification -* value of the task referenced by xTask. -* -* Set ulBitsToClear to 0xffffffff (UINT_MAX on 32-bit architectures) to clear -* the notification value to 0. Set ulBitsToClear to 0 to query the task's -* notification value without clearing any bits. -* -* @return The value of the target task's notification value before the bits -* specified by ulBitsToClear were cleared. -* \defgroup ulTaskNotifyValueClear ulTaskNotifyValueClear -* \ingroup TaskNotifications -*/ -uint32_t ulTaskNotifyValueClear( TaskHandle_t xTask, uint32_t ulBitsToClear ) PRIVILEGED_FUNCTION; - -/** - * task.h - *
void vTaskSetTimeOutState( TimeOut_t * const pxTimeOut )
- * - * Capture the current time for future use with xTaskCheckForTimeOut(). - * - * @param pxTimeOut Pointer to a timeout object into which the current time - * is to be captured. The captured time includes the tick count and the number - * of times the tick count has overflowed since the system first booted. - * \defgroup vTaskSetTimeOutState vTaskSetTimeOutState - * \ingroup TaskCtrl - */ -void vTaskSetTimeOutState( TimeOut_t * const pxTimeOut ) PRIVILEGED_FUNCTION; - -/** - * task.h - *
BaseType_t xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait );
- * - * Determines if pxTicksToWait ticks has passed since a time was captured - * using a call to vTaskSetTimeOutState(). The captured time includes the tick - * count and the number of times the tick count has overflowed. - * - * @param pxTimeOut The time status as captured previously using - * vTaskSetTimeOutState. If the timeout has not yet occurred, it is updated - * to reflect the current time status. - * @param pxTicksToWait The number of ticks to check for timeout i.e. if - * pxTicksToWait ticks have passed since pxTimeOut was last updated (either by - * vTaskSetTimeOutState() or xTaskCheckForTimeOut()), the timeout has occurred. - * If the timeout has not occurred, pxTIcksToWait is updated to reflect the - * number of remaining ticks. - * - * @return If timeout has occurred, pdTRUE is returned. Otherwise pdFALSE is - * returned and pxTicksToWait is updated to reflect the number of remaining - * ticks. - * - * @see https://www.freertos.org/xTaskCheckForTimeOut.html - * - * Example Usage: - *
-	// Driver library function used to receive uxWantedBytes from an Rx buffer
-	// that is filled by a UART interrupt. If there are not enough bytes in the
-	// Rx buffer then the task enters the Blocked state until it is notified that
-	// more data has been placed into the buffer. If there is still not enough
-	// data then the task re-enters the Blocked state, and xTaskCheckForTimeOut()
-	// is used to re-calculate the Block time to ensure the total amount of time
-	// spent in the Blocked state does not exceed MAX_TIME_TO_WAIT. This
-	// continues until either the buffer contains at least uxWantedBytes bytes,
-	// or the total amount of time spent in the Blocked state reaches
-	// MAX_TIME_TO_WAIT – at which point the task reads however many bytes are
-	// available up to a maximum of uxWantedBytes.
-
-	size_t xUART_Receive( uint8_t *pucBuffer, size_t uxWantedBytes )
-	{
-	size_t uxReceived = 0;
-	TickType_t xTicksToWait = MAX_TIME_TO_WAIT;
-	TimeOut_t xTimeOut;
-
-		// Initialize xTimeOut.  This records the time at which this function
-		// was entered.
-		vTaskSetTimeOutState( &xTimeOut );
-
-		// Loop until the buffer contains the wanted number of bytes, or a
-		// timeout occurs.
-		while( UART_bytes_in_rx_buffer( pxUARTInstance ) < uxWantedBytes )
-		{
-			// The buffer didn't contain enough data so this task is going to
-			// enter the Blocked state. Adjusting xTicksToWait to account for
-			// any time that has been spent in the Blocked state within this
-			// function so far to ensure the total amount of time spent in the
-			// Blocked state does not exceed MAX_TIME_TO_WAIT.
-			if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) != pdFALSE )
-			{
-				//Timed out before the wanted number of bytes were available,
-				// exit the loop.
-				break;
-			}
-
-			// Wait for a maximum of xTicksToWait ticks to be notified that the
-			// receive interrupt has placed more data into the buffer.
-			ulTaskNotifyTake( pdTRUE, xTicksToWait );
-		}
-
-		// Attempt to read uxWantedBytes from the receive buffer into pucBuffer.
-		// The actual number of bytes read (which might be less than
-		// uxWantedBytes) is returned.
-		uxReceived = UART_read_from_receive_buffer( pxUARTInstance,
-													pucBuffer,
-													uxWantedBytes );
-
-		return uxReceived;
-	}
- 
- * \defgroup xTaskCheckForTimeOut xTaskCheckForTimeOut - * \ingroup TaskCtrl - */ -BaseType_t xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait ) PRIVILEGED_FUNCTION; - -/*----------------------------------------------------------- - * SCHEDULER INTERNALS AVAILABLE FOR PORTING PURPOSES - *----------------------------------------------------------*/ - -/* - * THIS FUNCTION MUST NOT BE USED FROM APPLICATION CODE. IT IS ONLY - * INTENDED FOR USE WHEN IMPLEMENTING A PORT OF THE SCHEDULER AND IS - * AN INTERFACE WHICH IS FOR THE EXCLUSIVE USE OF THE SCHEDULER. - * - * Called from the real time kernel tick (either preemptive or cooperative), - * this increments the tick count and checks if any tasks that are blocked - * for a finite period required removing from a blocked list and placing on - * a ready list. If a non-zero value is returned then a context switch is - * required because either: - * + A task was removed from a blocked list because its timeout had expired, - * or - * + Time slicing is in use and there is a task of equal priority to the - * currently running task. - */ -BaseType_t xTaskIncrementTick( void ) PRIVILEGED_FUNCTION; - -/* - * THIS FUNCTION MUST NOT BE USED FROM APPLICATION CODE. IT IS AN - * INTERFACE WHICH IS FOR THE EXCLUSIVE USE OF THE SCHEDULER. - * - * THIS FUNCTION MUST BE CALLED WITH INTERRUPTS DISABLED. - * - * Removes the calling task from the ready list and places it both - * on the list of tasks waiting for a particular event, and the - * list of delayed tasks. The task will be removed from both lists - * and replaced on the ready list should either the event occur (and - * there be no higher priority tasks waiting on the same event) or - * the delay period expires. - * - * The 'unordered' version replaces the event list item value with the - * xItemValue value, and inserts the list item at the end of the list. - * - * The 'ordered' version uses the existing event list item value (which is the - * owning tasks priority) to insert the list item into the event list is task - * priority order. - * - * @param pxEventList The list containing tasks that are blocked waiting - * for the event to occur. - * - * @param xItemValue The item value to use for the event list item when the - * event list is not ordered by task priority. - * - * @param xTicksToWait The maximum amount of time that the task should wait - * for the event to occur. This is specified in kernel ticks,the constant - * portTICK_PERIOD_MS can be used to convert kernel ticks into a real time - * period. - */ -void vTaskPlaceOnEventList( List_t * const pxEventList, const TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; -void vTaskPlaceOnUnorderedEventList( List_t * pxEventList, const TickType_t xItemValue, const TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; - -/* - * THIS FUNCTION MUST NOT BE USED FROM APPLICATION CODE. IT IS AN - * INTERFACE WHICH IS FOR THE EXCLUSIVE USE OF THE SCHEDULER. - * - * THIS FUNCTION MUST BE CALLED WITH INTERRUPTS DISABLED. - * - * This function performs nearly the same function as vTaskPlaceOnEventList(). - * The difference being that this function does not permit tasks to block - * indefinitely, whereas vTaskPlaceOnEventList() does. - * - */ -void vTaskPlaceOnEventListRestricted( List_t * const pxEventList, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely ) PRIVILEGED_FUNCTION; - -/* - * THIS FUNCTION MUST NOT BE USED FROM APPLICATION CODE. IT IS AN - * INTERFACE WHICH IS FOR THE EXCLUSIVE USE OF THE SCHEDULER. - * - * THIS FUNCTION MUST BE CALLED WITH INTERRUPTS DISABLED. - * - * Removes a task from both the specified event list and the list of blocked - * tasks, and places it on a ready queue. - * - * xTaskRemoveFromEventList()/vTaskRemoveFromUnorderedEventList() will be called - * if either an event occurs to unblock a task, or the block timeout period - * expires. - * - * xTaskRemoveFromEventList() is used when the event list is in task priority - * order. It removes the list item from the head of the event list as that will - * have the highest priority owning task of all the tasks on the event list. - * vTaskRemoveFromUnorderedEventList() is used when the event list is not - * ordered and the event list items hold something other than the owning tasks - * priority. In this case the event list item value is updated to the value - * passed in the xItemValue parameter. - * - * @return pdTRUE if the task being removed has a higher priority than the task - * making the call, otherwise pdFALSE. - */ -BaseType_t xTaskRemoveFromEventList( const List_t * const pxEventList ) PRIVILEGED_FUNCTION; -void vTaskRemoveFromUnorderedEventList( ListItem_t * pxEventListItem, const TickType_t xItemValue ) PRIVILEGED_FUNCTION; - -/* - * THIS FUNCTION MUST NOT BE USED FROM APPLICATION CODE. IT IS ONLY - * INTENDED FOR USE WHEN IMPLEMENTING A PORT OF THE SCHEDULER AND IS - * AN INTERFACE WHICH IS FOR THE EXCLUSIVE USE OF THE SCHEDULER. - * - * Sets the pointer to the current TCB to the TCB of the highest priority task - * that is ready to run. - */ -portDONT_DISCARD void vTaskSwitchContext( void ) PRIVILEGED_FUNCTION; - -/* - * THESE FUNCTIONS MUST NOT BE USED FROM APPLICATION CODE. THEY ARE USED BY - * THE EVENT BITS MODULE. - */ -TickType_t uxTaskResetEventItemValue( void ) PRIVILEGED_FUNCTION; - -/* - * Return the handle of the calling task. - */ -TaskHandle_t xTaskGetCurrentTaskHandle( void ) PRIVILEGED_FUNCTION; - -/* - * Shortcut used by the queue implementation to prevent unnecessary call to - * taskYIELD(); - */ -void vTaskMissedYield( void ) PRIVILEGED_FUNCTION; - -/* - * Returns the scheduler state as taskSCHEDULER_RUNNING, - * taskSCHEDULER_NOT_STARTED or taskSCHEDULER_SUSPENDED. - */ -BaseType_t xTaskGetSchedulerState( void ) PRIVILEGED_FUNCTION; - -/* - * Raises the priority of the mutex holder to that of the calling task should - * the mutex holder have a priority less than the calling task. - */ -BaseType_t xTaskPriorityInherit( TaskHandle_t const pxMutexHolder ) PRIVILEGED_FUNCTION; - -/* - * Set the priority of a task back to its proper priority in the case that it - * inherited a higher priority while it was holding a semaphore. - */ -BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder ) PRIVILEGED_FUNCTION; - -/* - * If a higher priority task attempting to obtain a mutex caused a lower - * priority task to inherit the higher priority task's priority - but the higher - * priority task then timed out without obtaining the mutex, then the lower - * priority task will disinherit the priority again - but only down as far as - * the highest priority task that is still waiting for the mutex (if there were - * more than one task waiting for the mutex). - */ -void vTaskPriorityDisinheritAfterTimeout( TaskHandle_t const pxMutexHolder, UBaseType_t uxHighestPriorityWaitingTask ) PRIVILEGED_FUNCTION; - -/* - * Get the uxTCBNumber assigned to the task referenced by the xTask parameter. - */ -UBaseType_t uxTaskGetTaskNumber( TaskHandle_t xTask ) PRIVILEGED_FUNCTION; - -/* - * Set the uxTaskNumber of the task referenced by the xTask parameter to - * uxHandle. - */ -void vTaskSetTaskNumber( TaskHandle_t xTask, const UBaseType_t uxHandle ) PRIVILEGED_FUNCTION; - -/* - * Only available when configUSE_TICKLESS_IDLE is set to 1. - * If tickless mode is being used, or a low power mode is implemented, then - * the tick interrupt will not execute during idle periods. When this is the - * case, the tick count value maintained by the scheduler needs to be kept up - * to date with the actual execution time by being skipped forward by a time - * equal to the idle period. - */ -void vTaskStepTick( const TickType_t xTicksToJump ) PRIVILEGED_FUNCTION; - -/* Correct the tick count value after the application code has held -interrupts disabled for an extended period. xTicksToCatchUp is the number -of tick interrupts that have been missed due to interrupts being disabled. -Its value is not computed automatically, so must be computed by the -application writer. - -This function is similar to vTaskStepTick(), however, unlike -vTaskStepTick(), xTaskCatchUpTicks() may move the tick count forward past a -time at which a task should be removed from the blocked state. That means -tasks may have to be removed from the blocked state as the tick count is -moved. */ -BaseType_t xTaskCatchUpTicks( TickType_t xTicksToCatchUp ) PRIVILEGED_FUNCTION; - -/* - * Only available when configUSE_TICKLESS_IDLE is set to 1. - * Provided for use within portSUPPRESS_TICKS_AND_SLEEP() to allow the port - * specific sleep function to determine if it is ok to proceed with the sleep, - * and if it is ok to proceed, if it is ok to sleep indefinitely. - * - * This function is necessary because portSUPPRESS_TICKS_AND_SLEEP() is only - * called with the scheduler suspended, not from within a critical section. It - * is therefore possible for an interrupt to request a context switch between - * portSUPPRESS_TICKS_AND_SLEEP() and the low power mode actually being - * entered. eTaskConfirmSleepModeStatus() should be called from a short - * critical section between the timer being stopped and the sleep mode being - * entered to ensure it is ok to proceed into the sleep mode. - */ -eSleepModeStatus eTaskConfirmSleepModeStatus( void ) PRIVILEGED_FUNCTION; - -/* - * For internal use only. Increment the mutex held count when a mutex is - * taken and return the handle of the task that has taken the mutex. - */ -TaskHandle_t pvTaskIncrementMutexHeldCount( void ) PRIVILEGED_FUNCTION; - -/* - * For internal use only. Same as vTaskSetTimeOutState(), but without a critial - * section. - */ -void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut ) PRIVILEGED_FUNCTION; - - -#ifdef __cplusplus -} -#endif -#endif /* INC_TASK_H */ - - - diff --git a/Middlewares/Third_Party/FreeRTOS/Source/include/timers.h b/Middlewares/Third_Party/FreeRTOS/Source/include/timers.h deleted file mode 100644 index 307ea1f..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/include/timers.h +++ /dev/null @@ -1,1309 +0,0 @@ -/* - * FreeRTOS Kernel V10.3.1 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - - -#ifndef TIMERS_H -#define TIMERS_H - -#ifndef INC_FREERTOS_H - #error "include FreeRTOS.h must appear in source files before include timers.h" -#endif - -/*lint -save -e537 This headers are only multiply included if the application code -happens to also be including task.h. */ -#include "task.h" -/*lint -restore */ - -#ifdef __cplusplus -extern "C" { -#endif - -/*----------------------------------------------------------- - * MACROS AND DEFINITIONS - *----------------------------------------------------------*/ - -/* IDs for commands that can be sent/received on the timer queue. These are to -be used solely through the macros that make up the public software timer API, -as defined below. The commands that are sent from interrupts must use the -highest numbers as tmrFIRST_FROM_ISR_COMMAND is used to determine if the task -or interrupt version of the queue send function should be used. */ -#define tmrCOMMAND_EXECUTE_CALLBACK_FROM_ISR ( ( BaseType_t ) -2 ) -#define tmrCOMMAND_EXECUTE_CALLBACK ( ( BaseType_t ) -1 ) -#define tmrCOMMAND_START_DONT_TRACE ( ( BaseType_t ) 0 ) -#define tmrCOMMAND_START ( ( BaseType_t ) 1 ) -#define tmrCOMMAND_RESET ( ( BaseType_t ) 2 ) -#define tmrCOMMAND_STOP ( ( BaseType_t ) 3 ) -#define tmrCOMMAND_CHANGE_PERIOD ( ( BaseType_t ) 4 ) -#define tmrCOMMAND_DELETE ( ( BaseType_t ) 5 ) - -#define tmrFIRST_FROM_ISR_COMMAND ( ( BaseType_t ) 6 ) -#define tmrCOMMAND_START_FROM_ISR ( ( BaseType_t ) 6 ) -#define tmrCOMMAND_RESET_FROM_ISR ( ( BaseType_t ) 7 ) -#define tmrCOMMAND_STOP_FROM_ISR ( ( BaseType_t ) 8 ) -#define tmrCOMMAND_CHANGE_PERIOD_FROM_ISR ( ( BaseType_t ) 9 ) - - -/** - * Type by which software timers are referenced. For example, a call to - * xTimerCreate() returns an TimerHandle_t variable that can then be used to - * reference the subject timer in calls to other software timer API functions - * (for example, xTimerStart(), xTimerReset(), etc.). - */ -struct tmrTimerControl; /* The old naming convention is used to prevent breaking kernel aware debuggers. */ -typedef struct tmrTimerControl * TimerHandle_t; - -/* - * Defines the prototype to which timer callback functions must conform. - */ -typedef void (*TimerCallbackFunction_t)( TimerHandle_t xTimer ); - -/* - * Defines the prototype to which functions used with the - * xTimerPendFunctionCallFromISR() function must conform. - */ -typedef void (*PendedFunction_t)( void *, uint32_t ); - -/** - * TimerHandle_t xTimerCreate( const char * const pcTimerName, - * TickType_t xTimerPeriodInTicks, - * UBaseType_t uxAutoReload, - * void * pvTimerID, - * TimerCallbackFunction_t pxCallbackFunction ); - * - * Creates a new software timer instance, and returns a handle by which the - * created software timer can be referenced. - * - * Internally, within the FreeRTOS implementation, software timers use a block - * of memory, in which the timer data structure is stored. If a software timer - * is created using xTimerCreate() then the required memory is automatically - * dynamically allocated inside the xTimerCreate() function. (see - * http://www.freertos.org/a00111.html). If a software timer is created using - * xTimerCreateStatic() then the application writer must provide the memory that - * will get used by the software timer. xTimerCreateStatic() therefore allows a - * software timer to be created without using any dynamic memory allocation. - * - * Timers are created in the dormant state. The xTimerStart(), xTimerReset(), - * xTimerStartFromISR(), xTimerResetFromISR(), xTimerChangePeriod() and - * xTimerChangePeriodFromISR() API functions can all be used to transition a - * timer into the active state. - * - * @param pcTimerName A text name that is assigned to the timer. This is done - * purely to assist debugging. The kernel itself only ever references a timer - * by its handle, and never by its name. - * - * @param xTimerPeriodInTicks The timer period. The time is defined in tick - * periods so the constant portTICK_PERIOD_MS can be used to convert a time that - * has been specified in milliseconds. For example, if the timer must expire - * after 100 ticks, then xTimerPeriodInTicks should be set to 100. - * Alternatively, if the timer must expire after 500ms, then xPeriod can be set - * to ( 500 / portTICK_PERIOD_MS ) provided configTICK_RATE_HZ is less than or - * equal to 1000. Time timer period must be greater than 0. - * - * @param uxAutoReload If uxAutoReload is set to pdTRUE then the timer will - * expire repeatedly with a frequency set by the xTimerPeriodInTicks parameter. - * If uxAutoReload is set to pdFALSE then the timer will be a one-shot timer and - * enter the dormant state after it expires. - * - * @param pvTimerID An identifier that is assigned to the timer being created. - * Typically this would be used in the timer callback function to identify which - * timer expired when the same callback function is assigned to more than one - * timer. - * - * @param pxCallbackFunction The function to call when the timer expires. - * Callback functions must have the prototype defined by TimerCallbackFunction_t, - * which is "void vCallbackFunction( TimerHandle_t xTimer );". - * - * @return If the timer is successfully created then a handle to the newly - * created timer is returned. If the timer cannot be created because there is - * insufficient FreeRTOS heap remaining to allocate the timer - * structures then NULL is returned. - * - * Example usage: - * @verbatim - * #define NUM_TIMERS 5 - * - * // An array to hold handles to the created timers. - * TimerHandle_t xTimers[ NUM_TIMERS ]; - * - * // An array to hold a count of the number of times each timer expires. - * int32_t lExpireCounters[ NUM_TIMERS ] = { 0 }; - * - * // Define a callback function that will be used by multiple timer instances. - * // The callback function does nothing but count the number of times the - * // associated timer expires, and stop the timer once the timer has expired - * // 10 times. - * void vTimerCallback( TimerHandle_t pxTimer ) - * { - * int32_t lArrayIndex; - * const int32_t xMaxExpiryCountBeforeStopping = 10; - * - * // Optionally do something if the pxTimer parameter is NULL. - * configASSERT( pxTimer ); - * - * // Which timer expired? - * lArrayIndex = ( int32_t ) pvTimerGetTimerID( pxTimer ); - * - * // Increment the number of times that pxTimer has expired. - * lExpireCounters[ lArrayIndex ] += 1; - * - * // If the timer has expired 10 times then stop it from running. - * if( lExpireCounters[ lArrayIndex ] == xMaxExpiryCountBeforeStopping ) - * { - * // Do not use a block time if calling a timer API function from a - * // timer callback function, as doing so could cause a deadlock! - * xTimerStop( pxTimer, 0 ); - * } - * } - * - * void main( void ) - * { - * int32_t x; - * - * // Create then start some timers. Starting the timers before the scheduler - * // has been started means the timers will start running immediately that - * // the scheduler starts. - * for( x = 0; x < NUM_TIMERS; x++ ) - * { - * xTimers[ x ] = xTimerCreate( "Timer", // Just a text name, not used by the kernel. - * ( 100 * x ), // The timer period in ticks. - * pdTRUE, // The timers will auto-reload themselves when they expire. - * ( void * ) x, // Assign each timer a unique id equal to its array index. - * vTimerCallback // Each timer calls the same callback when it expires. - * ); - * - * if( xTimers[ x ] == NULL ) - * { - * // The timer was not created. - * } - * else - * { - * // Start the timer. No block time is specified, and even if one was - * // it would be ignored because the scheduler has not yet been - * // started. - * if( xTimerStart( xTimers[ x ], 0 ) != pdPASS ) - * { - * // The timer could not be set into the Active state. - * } - * } - * } - * - * // ... - * // Create tasks here. - * // ... - * - * // Starting the scheduler will start the timers running as they have already - * // been set into the active state. - * vTaskStartScheduler(); - * - * // Should not reach here. - * for( ;; ); - * } - * @endverbatim - */ -#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) - TimerHandle_t xTimerCreate( const char * const pcTimerName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ - const TickType_t xTimerPeriodInTicks, - const UBaseType_t uxAutoReload, - void * const pvTimerID, - TimerCallbackFunction_t pxCallbackFunction ) PRIVILEGED_FUNCTION; -#endif - -/** - * TimerHandle_t xTimerCreateStatic(const char * const pcTimerName, - * TickType_t xTimerPeriodInTicks, - * UBaseType_t uxAutoReload, - * void * pvTimerID, - * TimerCallbackFunction_t pxCallbackFunction, - * StaticTimer_t *pxTimerBuffer ); - * - * Creates a new software timer instance, and returns a handle by which the - * created software timer can be referenced. - * - * Internally, within the FreeRTOS implementation, software timers use a block - * of memory, in which the timer data structure is stored. If a software timer - * is created using xTimerCreate() then the required memory is automatically - * dynamically allocated inside the xTimerCreate() function. (see - * http://www.freertos.org/a00111.html). If a software timer is created using - * xTimerCreateStatic() then the application writer must provide the memory that - * will get used by the software timer. xTimerCreateStatic() therefore allows a - * software timer to be created without using any dynamic memory allocation. - * - * Timers are created in the dormant state. The xTimerStart(), xTimerReset(), - * xTimerStartFromISR(), xTimerResetFromISR(), xTimerChangePeriod() and - * xTimerChangePeriodFromISR() API functions can all be used to transition a - * timer into the active state. - * - * @param pcTimerName A text name that is assigned to the timer. This is done - * purely to assist debugging. The kernel itself only ever references a timer - * by its handle, and never by its name. - * - * @param xTimerPeriodInTicks The timer period. The time is defined in tick - * periods so the constant portTICK_PERIOD_MS can be used to convert a time that - * has been specified in milliseconds. For example, if the timer must expire - * after 100 ticks, then xTimerPeriodInTicks should be set to 100. - * Alternatively, if the timer must expire after 500ms, then xPeriod can be set - * to ( 500 / portTICK_PERIOD_MS ) provided configTICK_RATE_HZ is less than or - * equal to 1000. The timer period must be greater than 0. - * - * @param uxAutoReload If uxAutoReload is set to pdTRUE then the timer will - * expire repeatedly with a frequency set by the xTimerPeriodInTicks parameter. - * If uxAutoReload is set to pdFALSE then the timer will be a one-shot timer and - * enter the dormant state after it expires. - * - * @param pvTimerID An identifier that is assigned to the timer being created. - * Typically this would be used in the timer callback function to identify which - * timer expired when the same callback function is assigned to more than one - * timer. - * - * @param pxCallbackFunction The function to call when the timer expires. - * Callback functions must have the prototype defined by TimerCallbackFunction_t, - * which is "void vCallbackFunction( TimerHandle_t xTimer );". - * - * @param pxTimerBuffer Must point to a variable of type StaticTimer_t, which - * will be then be used to hold the software timer's data structures, removing - * the need for the memory to be allocated dynamically. - * - * @return If the timer is created then a handle to the created timer is - * returned. If pxTimerBuffer was NULL then NULL is returned. - * - * Example usage: - * @verbatim - * - * // The buffer used to hold the software timer's data structure. - * static StaticTimer_t xTimerBuffer; - * - * // A variable that will be incremented by the software timer's callback - * // function. - * UBaseType_t uxVariableToIncrement = 0; - * - * // A software timer callback function that increments a variable passed to - * // it when the software timer was created. After the 5th increment the - * // callback function stops the software timer. - * static void prvTimerCallback( TimerHandle_t xExpiredTimer ) - * { - * UBaseType_t *puxVariableToIncrement; - * BaseType_t xReturned; - * - * // Obtain the address of the variable to increment from the timer ID. - * puxVariableToIncrement = ( UBaseType_t * ) pvTimerGetTimerID( xExpiredTimer ); - * - * // Increment the variable to show the timer callback has executed. - * ( *puxVariableToIncrement )++; - * - * // If this callback has executed the required number of times, stop the - * // timer. - * if( *puxVariableToIncrement == 5 ) - * { - * // This is called from a timer callback so must not block. - * xTimerStop( xExpiredTimer, staticDONT_BLOCK ); - * } - * } - * - * - * void main( void ) - * { - * // Create the software time. xTimerCreateStatic() has an extra parameter - * // than the normal xTimerCreate() API function. The parameter is a pointer - * // to the StaticTimer_t structure that will hold the software timer - * // structure. If the parameter is passed as NULL then the structure will be - * // allocated dynamically, just as if xTimerCreate() had been called. - * xTimer = xTimerCreateStatic( "T1", // Text name for the task. Helps debugging only. Not used by FreeRTOS. - * xTimerPeriod, // The period of the timer in ticks. - * pdTRUE, // This is an auto-reload timer. - * ( void * ) &uxVariableToIncrement, // A variable incremented by the software timer's callback function - * prvTimerCallback, // The function to execute when the timer expires. - * &xTimerBuffer ); // The buffer that will hold the software timer structure. - * - * // The scheduler has not started yet so a block time is not used. - * xReturned = xTimerStart( xTimer, 0 ); - * - * // ... - * // Create tasks here. - * // ... - * - * // Starting the scheduler will start the timers running as they have already - * // been set into the active state. - * vTaskStartScheduler(); - * - * // Should not reach here. - * for( ;; ); - * } - * @endverbatim - */ -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) - TimerHandle_t xTimerCreateStatic( const char * const pcTimerName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ - const TickType_t xTimerPeriodInTicks, - const UBaseType_t uxAutoReload, - void * const pvTimerID, - TimerCallbackFunction_t pxCallbackFunction, - StaticTimer_t *pxTimerBuffer ) PRIVILEGED_FUNCTION; -#endif /* configSUPPORT_STATIC_ALLOCATION */ - -/** - * void *pvTimerGetTimerID( TimerHandle_t xTimer ); - * - * Returns the ID assigned to the timer. - * - * IDs are assigned to timers using the pvTimerID parameter of the call to - * xTimerCreated() that was used to create the timer, and by calling the - * vTimerSetTimerID() API function. - * - * If the same callback function is assigned to multiple timers then the timer - * ID can be used as time specific (timer local) storage. - * - * @param xTimer The timer being queried. - * - * @return The ID assigned to the timer being queried. - * - * Example usage: - * - * See the xTimerCreate() API function example usage scenario. - */ -void *pvTimerGetTimerID( const TimerHandle_t xTimer ) PRIVILEGED_FUNCTION; - -/** - * void vTimerSetTimerID( TimerHandle_t xTimer, void *pvNewID ); - * - * Sets the ID assigned to the timer. - * - * IDs are assigned to timers using the pvTimerID parameter of the call to - * xTimerCreated() that was used to create the timer. - * - * If the same callback function is assigned to multiple timers then the timer - * ID can be used as time specific (timer local) storage. - * - * @param xTimer The timer being updated. - * - * @param pvNewID The ID to assign to the timer. - * - * Example usage: - * - * See the xTimerCreate() API function example usage scenario. - */ -void vTimerSetTimerID( TimerHandle_t xTimer, void *pvNewID ) PRIVILEGED_FUNCTION; - -/** - * BaseType_t xTimerIsTimerActive( TimerHandle_t xTimer ); - * - * Queries a timer to see if it is active or dormant. - * - * A timer will be dormant if: - * 1) It has been created but not started, or - * 2) It is an expired one-shot timer that has not been restarted. - * - * Timers are created in the dormant state. The xTimerStart(), xTimerReset(), - * xTimerStartFromISR(), xTimerResetFromISR(), xTimerChangePeriod() and - * xTimerChangePeriodFromISR() API functions can all be used to transition a timer into the - * active state. - * - * @param xTimer The timer being queried. - * - * @return pdFALSE will be returned if the timer is dormant. A value other than - * pdFALSE will be returned if the timer is active. - * - * Example usage: - * @verbatim - * // This function assumes xTimer has already been created. - * void vAFunction( TimerHandle_t xTimer ) - * { - * if( xTimerIsTimerActive( xTimer ) != pdFALSE ) // or more simply and equivalently "if( xTimerIsTimerActive( xTimer ) )" - * { - * // xTimer is active, do something. - * } - * else - * { - * // xTimer is not active, do something else. - * } - * } - * @endverbatim - */ -BaseType_t xTimerIsTimerActive( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION; - -/** - * TaskHandle_t xTimerGetTimerDaemonTaskHandle( void ); - * - * Simply returns the handle of the timer service/daemon task. It it not valid - * to call xTimerGetTimerDaemonTaskHandle() before the scheduler has been started. - */ -TaskHandle_t xTimerGetTimerDaemonTaskHandle( void ) PRIVILEGED_FUNCTION; - -/** - * BaseType_t xTimerStart( TimerHandle_t xTimer, TickType_t xTicksToWait ); - * - * Timer functionality is provided by a timer service/daemon task. Many of the - * public FreeRTOS timer API functions send commands to the timer service task - * through a queue called the timer command queue. The timer command queue is - * private to the kernel itself and is not directly accessible to application - * code. The length of the timer command queue is set by the - * configTIMER_QUEUE_LENGTH configuration constant. - * - * xTimerStart() starts a timer that was previously created using the - * xTimerCreate() API function. If the timer had already been started and was - * already in the active state, then xTimerStart() has equivalent functionality - * to the xTimerReset() API function. - * - * Starting a timer ensures the timer is in the active state. If the timer - * is not stopped, deleted, or reset in the mean time, the callback function - * associated with the timer will get called 'n' ticks after xTimerStart() was - * called, where 'n' is the timers defined period. - * - * It is valid to call xTimerStart() before the scheduler has been started, but - * when this is done the timer will not actually start until the scheduler is - * started, and the timers expiry time will be relative to when the scheduler is - * started, not relative to when xTimerStart() was called. - * - * The configUSE_TIMERS configuration constant must be set to 1 for xTimerStart() - * to be available. - * - * @param xTimer The handle of the timer being started/restarted. - * - * @param xTicksToWait Specifies the time, in ticks, that the calling task should - * be held in the Blocked state to wait for the start command to be successfully - * sent to the timer command queue, should the queue already be full when - * xTimerStart() was called. xTicksToWait is ignored if xTimerStart() is called - * before the scheduler is started. - * - * @return pdFAIL will be returned if the start command could not be sent to - * the timer command queue even after xTicksToWait ticks had passed. pdPASS will - * be returned if the command was successfully sent to the timer command queue. - * When the command is actually processed will depend on the priority of the - * timer service/daemon task relative to other tasks in the system, although the - * timers expiry time is relative to when xTimerStart() is actually called. The - * timer service/daemon task priority is set by the configTIMER_TASK_PRIORITY - * configuration constant. - * - * Example usage: - * - * See the xTimerCreate() API function example usage scenario. - * - */ -#define xTimerStart( xTimer, xTicksToWait ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_START, ( xTaskGetTickCount() ), NULL, ( xTicksToWait ) ) - -/** - * BaseType_t xTimerStop( TimerHandle_t xTimer, TickType_t xTicksToWait ); - * - * Timer functionality is provided by a timer service/daemon task. Many of the - * public FreeRTOS timer API functions send commands to the timer service task - * through a queue called the timer command queue. The timer command queue is - * private to the kernel itself and is not directly accessible to application - * code. The length of the timer command queue is set by the - * configTIMER_QUEUE_LENGTH configuration constant. - * - * xTimerStop() stops a timer that was previously started using either of the - * The xTimerStart(), xTimerReset(), xTimerStartFromISR(), xTimerResetFromISR(), - * xTimerChangePeriod() or xTimerChangePeriodFromISR() API functions. - * - * Stopping a timer ensures the timer is not in the active state. - * - * The configUSE_TIMERS configuration constant must be set to 1 for xTimerStop() - * to be available. - * - * @param xTimer The handle of the timer being stopped. - * - * @param xTicksToWait Specifies the time, in ticks, that the calling task should - * be held in the Blocked state to wait for the stop command to be successfully - * sent to the timer command queue, should the queue already be full when - * xTimerStop() was called. xTicksToWait is ignored if xTimerStop() is called - * before the scheduler is started. - * - * @return pdFAIL will be returned if the stop command could not be sent to - * the timer command queue even after xTicksToWait ticks had passed. pdPASS will - * be returned if the command was successfully sent to the timer command queue. - * When the command is actually processed will depend on the priority of the - * timer service/daemon task relative to other tasks in the system. The timer - * service/daemon task priority is set by the configTIMER_TASK_PRIORITY - * configuration constant. - * - * Example usage: - * - * See the xTimerCreate() API function example usage scenario. - * - */ -#define xTimerStop( xTimer, xTicksToWait ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_STOP, 0U, NULL, ( xTicksToWait ) ) - -/** - * BaseType_t xTimerChangePeriod( TimerHandle_t xTimer, - * TickType_t xNewPeriod, - * TickType_t xTicksToWait ); - * - * Timer functionality is provided by a timer service/daemon task. Many of the - * public FreeRTOS timer API functions send commands to the timer service task - * through a queue called the timer command queue. The timer command queue is - * private to the kernel itself and is not directly accessible to application - * code. The length of the timer command queue is set by the - * configTIMER_QUEUE_LENGTH configuration constant. - * - * xTimerChangePeriod() changes the period of a timer that was previously - * created using the xTimerCreate() API function. - * - * xTimerChangePeriod() can be called to change the period of an active or - * dormant state timer. - * - * The configUSE_TIMERS configuration constant must be set to 1 for - * xTimerChangePeriod() to be available. - * - * @param xTimer The handle of the timer that is having its period changed. - * - * @param xNewPeriod The new period for xTimer. Timer periods are specified in - * tick periods, so the constant portTICK_PERIOD_MS can be used to convert a time - * that has been specified in milliseconds. For example, if the timer must - * expire after 100 ticks, then xNewPeriod should be set to 100. Alternatively, - * if the timer must expire after 500ms, then xNewPeriod can be set to - * ( 500 / portTICK_PERIOD_MS ) provided configTICK_RATE_HZ is less than - * or equal to 1000. - * - * @param xTicksToWait Specifies the time, in ticks, that the calling task should - * be held in the Blocked state to wait for the change period command to be - * successfully sent to the timer command queue, should the queue already be - * full when xTimerChangePeriod() was called. xTicksToWait is ignored if - * xTimerChangePeriod() is called before the scheduler is started. - * - * @return pdFAIL will be returned if the change period command could not be - * sent to the timer command queue even after xTicksToWait ticks had passed. - * pdPASS will be returned if the command was successfully sent to the timer - * command queue. When the command is actually processed will depend on the - * priority of the timer service/daemon task relative to other tasks in the - * system. The timer service/daemon task priority is set by the - * configTIMER_TASK_PRIORITY configuration constant. - * - * Example usage: - * @verbatim - * // This function assumes xTimer has already been created. If the timer - * // referenced by xTimer is already active when it is called, then the timer - * // is deleted. If the timer referenced by xTimer is not active when it is - * // called, then the period of the timer is set to 500ms and the timer is - * // started. - * void vAFunction( TimerHandle_t xTimer ) - * { - * if( xTimerIsTimerActive( xTimer ) != pdFALSE ) // or more simply and equivalently "if( xTimerIsTimerActive( xTimer ) )" - * { - * // xTimer is already active - delete it. - * xTimerDelete( xTimer ); - * } - * else - * { - * // xTimer is not active, change its period to 500ms. This will also - * // cause the timer to start. Block for a maximum of 100 ticks if the - * // change period command cannot immediately be sent to the timer - * // command queue. - * if( xTimerChangePeriod( xTimer, 500 / portTICK_PERIOD_MS, 100 ) == pdPASS ) - * { - * // The command was successfully sent. - * } - * else - * { - * // The command could not be sent, even after waiting for 100 ticks - * // to pass. Take appropriate action here. - * } - * } - * } - * @endverbatim - */ - #define xTimerChangePeriod( xTimer, xNewPeriod, xTicksToWait ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_CHANGE_PERIOD, ( xNewPeriod ), NULL, ( xTicksToWait ) ) - -/** - * BaseType_t xTimerDelete( TimerHandle_t xTimer, TickType_t xTicksToWait ); - * - * Timer functionality is provided by a timer service/daemon task. Many of the - * public FreeRTOS timer API functions send commands to the timer service task - * through a queue called the timer command queue. The timer command queue is - * private to the kernel itself and is not directly accessible to application - * code. The length of the timer command queue is set by the - * configTIMER_QUEUE_LENGTH configuration constant. - * - * xTimerDelete() deletes a timer that was previously created using the - * xTimerCreate() API function. - * - * The configUSE_TIMERS configuration constant must be set to 1 for - * xTimerDelete() to be available. - * - * @param xTimer The handle of the timer being deleted. - * - * @param xTicksToWait Specifies the time, in ticks, that the calling task should - * be held in the Blocked state to wait for the delete command to be - * successfully sent to the timer command queue, should the queue already be - * full when xTimerDelete() was called. xTicksToWait is ignored if xTimerDelete() - * is called before the scheduler is started. - * - * @return pdFAIL will be returned if the delete command could not be sent to - * the timer command queue even after xTicksToWait ticks had passed. pdPASS will - * be returned if the command was successfully sent to the timer command queue. - * When the command is actually processed will depend on the priority of the - * timer service/daemon task relative to other tasks in the system. The timer - * service/daemon task priority is set by the configTIMER_TASK_PRIORITY - * configuration constant. - * - * Example usage: - * - * See the xTimerChangePeriod() API function example usage scenario. - */ -#define xTimerDelete( xTimer, xTicksToWait ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_DELETE, 0U, NULL, ( xTicksToWait ) ) - -/** - * BaseType_t xTimerReset( TimerHandle_t xTimer, TickType_t xTicksToWait ); - * - * Timer functionality is provided by a timer service/daemon task. Many of the - * public FreeRTOS timer API functions send commands to the timer service task - * through a queue called the timer command queue. The timer command queue is - * private to the kernel itself and is not directly accessible to application - * code. The length of the timer command queue is set by the - * configTIMER_QUEUE_LENGTH configuration constant. - * - * xTimerReset() re-starts a timer that was previously created using the - * xTimerCreate() API function. If the timer had already been started and was - * already in the active state, then xTimerReset() will cause the timer to - * re-evaluate its expiry time so that it is relative to when xTimerReset() was - * called. If the timer was in the dormant state then xTimerReset() has - * equivalent functionality to the xTimerStart() API function. - * - * Resetting a timer ensures the timer is in the active state. If the timer - * is not stopped, deleted, or reset in the mean time, the callback function - * associated with the timer will get called 'n' ticks after xTimerReset() was - * called, where 'n' is the timers defined period. - * - * It is valid to call xTimerReset() before the scheduler has been started, but - * when this is done the timer will not actually start until the scheduler is - * started, and the timers expiry time will be relative to when the scheduler is - * started, not relative to when xTimerReset() was called. - * - * The configUSE_TIMERS configuration constant must be set to 1 for xTimerReset() - * to be available. - * - * @param xTimer The handle of the timer being reset/started/restarted. - * - * @param xTicksToWait Specifies the time, in ticks, that the calling task should - * be held in the Blocked state to wait for the reset command to be successfully - * sent to the timer command queue, should the queue already be full when - * xTimerReset() was called. xTicksToWait is ignored if xTimerReset() is called - * before the scheduler is started. - * - * @return pdFAIL will be returned if the reset command could not be sent to - * the timer command queue even after xTicksToWait ticks had passed. pdPASS will - * be returned if the command was successfully sent to the timer command queue. - * When the command is actually processed will depend on the priority of the - * timer service/daemon task relative to other tasks in the system, although the - * timers expiry time is relative to when xTimerStart() is actually called. The - * timer service/daemon task priority is set by the configTIMER_TASK_PRIORITY - * configuration constant. - * - * Example usage: - * @verbatim - * // When a key is pressed, an LCD back-light is switched on. If 5 seconds pass - * // without a key being pressed, then the LCD back-light is switched off. In - * // this case, the timer is a one-shot timer. - * - * TimerHandle_t xBacklightTimer = NULL; - * - * // The callback function assigned to the one-shot timer. In this case the - * // parameter is not used. - * void vBacklightTimerCallback( TimerHandle_t pxTimer ) - * { - * // The timer expired, therefore 5 seconds must have passed since a key - * // was pressed. Switch off the LCD back-light. - * vSetBacklightState( BACKLIGHT_OFF ); - * } - * - * // The key press event handler. - * void vKeyPressEventHandler( char cKey ) - * { - * // Ensure the LCD back-light is on, then reset the timer that is - * // responsible for turning the back-light off after 5 seconds of - * // key inactivity. Wait 10 ticks for the command to be successfully sent - * // if it cannot be sent immediately. - * vSetBacklightState( BACKLIGHT_ON ); - * if( xTimerReset( xBacklightTimer, 100 ) != pdPASS ) - * { - * // The reset command was not executed successfully. Take appropriate - * // action here. - * } - * - * // Perform the rest of the key processing here. - * } - * - * void main( void ) - * { - * int32_t x; - * - * // Create then start the one-shot timer that is responsible for turning - * // the back-light off if no keys are pressed within a 5 second period. - * xBacklightTimer = xTimerCreate( "BacklightTimer", // Just a text name, not used by the kernel. - * ( 5000 / portTICK_PERIOD_MS), // The timer period in ticks. - * pdFALSE, // The timer is a one-shot timer. - * 0, // The id is not used by the callback so can take any value. - * vBacklightTimerCallback // The callback function that switches the LCD back-light off. - * ); - * - * if( xBacklightTimer == NULL ) - * { - * // The timer was not created. - * } - * else - * { - * // Start the timer. No block time is specified, and even if one was - * // it would be ignored because the scheduler has not yet been - * // started. - * if( xTimerStart( xBacklightTimer, 0 ) != pdPASS ) - * { - * // The timer could not be set into the Active state. - * } - * } - * - * // ... - * // Create tasks here. - * // ... - * - * // Starting the scheduler will start the timer running as it has already - * // been set into the active state. - * vTaskStartScheduler(); - * - * // Should not reach here. - * for( ;; ); - * } - * @endverbatim - */ -#define xTimerReset( xTimer, xTicksToWait ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_RESET, ( xTaskGetTickCount() ), NULL, ( xTicksToWait ) ) - -/** - * BaseType_t xTimerStartFromISR( TimerHandle_t xTimer, - * BaseType_t *pxHigherPriorityTaskWoken ); - * - * A version of xTimerStart() that can be called from an interrupt service - * routine. - * - * @param xTimer The handle of the timer being started/restarted. - * - * @param pxHigherPriorityTaskWoken The timer service/daemon task spends most - * of its time in the Blocked state, waiting for messages to arrive on the timer - * command queue. Calling xTimerStartFromISR() writes a message to the timer - * command queue, so has the potential to transition the timer service/daemon - * task out of the Blocked state. If calling xTimerStartFromISR() causes the - * timer service/daemon task to leave the Blocked state, and the timer service/ - * daemon task has a priority equal to or greater than the currently executing - * task (the task that was interrupted), then *pxHigherPriorityTaskWoken will - * get set to pdTRUE internally within the xTimerStartFromISR() function. If - * xTimerStartFromISR() sets this value to pdTRUE then a context switch should - * be performed before the interrupt exits. - * - * @return pdFAIL will be returned if the start command could not be sent to - * the timer command queue. pdPASS will be returned if the command was - * successfully sent to the timer command queue. When the command is actually - * processed will depend on the priority of the timer service/daemon task - * relative to other tasks in the system, although the timers expiry time is - * relative to when xTimerStartFromISR() is actually called. The timer - * service/daemon task priority is set by the configTIMER_TASK_PRIORITY - * configuration constant. - * - * Example usage: - * @verbatim - * // This scenario assumes xBacklightTimer has already been created. When a - * // key is pressed, an LCD back-light is switched on. If 5 seconds pass - * // without a key being pressed, then the LCD back-light is switched off. In - * // this case, the timer is a one-shot timer, and unlike the example given for - * // the xTimerReset() function, the key press event handler is an interrupt - * // service routine. - * - * // The callback function assigned to the one-shot timer. In this case the - * // parameter is not used. - * void vBacklightTimerCallback( TimerHandle_t pxTimer ) - * { - * // The timer expired, therefore 5 seconds must have passed since a key - * // was pressed. Switch off the LCD back-light. - * vSetBacklightState( BACKLIGHT_OFF ); - * } - * - * // The key press interrupt service routine. - * void vKeyPressEventInterruptHandler( void ) - * { - * BaseType_t xHigherPriorityTaskWoken = pdFALSE; - * - * // Ensure the LCD back-light is on, then restart the timer that is - * // responsible for turning the back-light off after 5 seconds of - * // key inactivity. This is an interrupt service routine so can only - * // call FreeRTOS API functions that end in "FromISR". - * vSetBacklightState( BACKLIGHT_ON ); - * - * // xTimerStartFromISR() or xTimerResetFromISR() could be called here - * // as both cause the timer to re-calculate its expiry time. - * // xHigherPriorityTaskWoken was initialised to pdFALSE when it was - * // declared (in this function). - * if( xTimerStartFromISR( xBacklightTimer, &xHigherPriorityTaskWoken ) != pdPASS ) - * { - * // The start command was not executed successfully. Take appropriate - * // action here. - * } - * - * // Perform the rest of the key processing here. - * - * // If xHigherPriorityTaskWoken equals pdTRUE, then a context switch - * // should be performed. The syntax required to perform a context switch - * // from inside an ISR varies from port to port, and from compiler to - * // compiler. Inspect the demos for the port you are using to find the - * // actual syntax required. - * if( xHigherPriorityTaskWoken != pdFALSE ) - * { - * // Call the interrupt safe yield function here (actual function - * // depends on the FreeRTOS port being used). - * } - * } - * @endverbatim - */ -#define xTimerStartFromISR( xTimer, pxHigherPriorityTaskWoken ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_START_FROM_ISR, ( xTaskGetTickCountFromISR() ), ( pxHigherPriorityTaskWoken ), 0U ) - -/** - * BaseType_t xTimerStopFromISR( TimerHandle_t xTimer, - * BaseType_t *pxHigherPriorityTaskWoken ); - * - * A version of xTimerStop() that can be called from an interrupt service - * routine. - * - * @param xTimer The handle of the timer being stopped. - * - * @param pxHigherPriorityTaskWoken The timer service/daemon task spends most - * of its time in the Blocked state, waiting for messages to arrive on the timer - * command queue. Calling xTimerStopFromISR() writes a message to the timer - * command queue, so has the potential to transition the timer service/daemon - * task out of the Blocked state. If calling xTimerStopFromISR() causes the - * timer service/daemon task to leave the Blocked state, and the timer service/ - * daemon task has a priority equal to or greater than the currently executing - * task (the task that was interrupted), then *pxHigherPriorityTaskWoken will - * get set to pdTRUE internally within the xTimerStopFromISR() function. If - * xTimerStopFromISR() sets this value to pdTRUE then a context switch should - * be performed before the interrupt exits. - * - * @return pdFAIL will be returned if the stop command could not be sent to - * the timer command queue. pdPASS will be returned if the command was - * successfully sent to the timer command queue. When the command is actually - * processed will depend on the priority of the timer service/daemon task - * relative to other tasks in the system. The timer service/daemon task - * priority is set by the configTIMER_TASK_PRIORITY configuration constant. - * - * Example usage: - * @verbatim - * // This scenario assumes xTimer has already been created and started. When - * // an interrupt occurs, the timer should be simply stopped. - * - * // The interrupt service routine that stops the timer. - * void vAnExampleInterruptServiceRoutine( void ) - * { - * BaseType_t xHigherPriorityTaskWoken = pdFALSE; - * - * // The interrupt has occurred - simply stop the timer. - * // xHigherPriorityTaskWoken was set to pdFALSE where it was defined - * // (within this function). As this is an interrupt service routine, only - * // FreeRTOS API functions that end in "FromISR" can be used. - * if( xTimerStopFromISR( xTimer, &xHigherPriorityTaskWoken ) != pdPASS ) - * { - * // The stop command was not executed successfully. Take appropriate - * // action here. - * } - * - * // If xHigherPriorityTaskWoken equals pdTRUE, then a context switch - * // should be performed. The syntax required to perform a context switch - * // from inside an ISR varies from port to port, and from compiler to - * // compiler. Inspect the demos for the port you are using to find the - * // actual syntax required. - * if( xHigherPriorityTaskWoken != pdFALSE ) - * { - * // Call the interrupt safe yield function here (actual function - * // depends on the FreeRTOS port being used). - * } - * } - * @endverbatim - */ -#define xTimerStopFromISR( xTimer, pxHigherPriorityTaskWoken ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_STOP_FROM_ISR, 0, ( pxHigherPriorityTaskWoken ), 0U ) - -/** - * BaseType_t xTimerChangePeriodFromISR( TimerHandle_t xTimer, - * TickType_t xNewPeriod, - * BaseType_t *pxHigherPriorityTaskWoken ); - * - * A version of xTimerChangePeriod() that can be called from an interrupt - * service routine. - * - * @param xTimer The handle of the timer that is having its period changed. - * - * @param xNewPeriod The new period for xTimer. Timer periods are specified in - * tick periods, so the constant portTICK_PERIOD_MS can be used to convert a time - * that has been specified in milliseconds. For example, if the timer must - * expire after 100 ticks, then xNewPeriod should be set to 100. Alternatively, - * if the timer must expire after 500ms, then xNewPeriod can be set to - * ( 500 / portTICK_PERIOD_MS ) provided configTICK_RATE_HZ is less than - * or equal to 1000. - * - * @param pxHigherPriorityTaskWoken The timer service/daemon task spends most - * of its time in the Blocked state, waiting for messages to arrive on the timer - * command queue. Calling xTimerChangePeriodFromISR() writes a message to the - * timer command queue, so has the potential to transition the timer service/ - * daemon task out of the Blocked state. If calling xTimerChangePeriodFromISR() - * causes the timer service/daemon task to leave the Blocked state, and the - * timer service/daemon task has a priority equal to or greater than the - * currently executing task (the task that was interrupted), then - * *pxHigherPriorityTaskWoken will get set to pdTRUE internally within the - * xTimerChangePeriodFromISR() function. If xTimerChangePeriodFromISR() sets - * this value to pdTRUE then a context switch should be performed before the - * interrupt exits. - * - * @return pdFAIL will be returned if the command to change the timers period - * could not be sent to the timer command queue. pdPASS will be returned if the - * command was successfully sent to the timer command queue. When the command - * is actually processed will depend on the priority of the timer service/daemon - * task relative to other tasks in the system. The timer service/daemon task - * priority is set by the configTIMER_TASK_PRIORITY configuration constant. - * - * Example usage: - * @verbatim - * // This scenario assumes xTimer has already been created and started. When - * // an interrupt occurs, the period of xTimer should be changed to 500ms. - * - * // The interrupt service routine that changes the period of xTimer. - * void vAnExampleInterruptServiceRoutine( void ) - * { - * BaseType_t xHigherPriorityTaskWoken = pdFALSE; - * - * // The interrupt has occurred - change the period of xTimer to 500ms. - * // xHigherPriorityTaskWoken was set to pdFALSE where it was defined - * // (within this function). As this is an interrupt service routine, only - * // FreeRTOS API functions that end in "FromISR" can be used. - * if( xTimerChangePeriodFromISR( xTimer, &xHigherPriorityTaskWoken ) != pdPASS ) - * { - * // The command to change the timers period was not executed - * // successfully. Take appropriate action here. - * } - * - * // If xHigherPriorityTaskWoken equals pdTRUE, then a context switch - * // should be performed. The syntax required to perform a context switch - * // from inside an ISR varies from port to port, and from compiler to - * // compiler. Inspect the demos for the port you are using to find the - * // actual syntax required. - * if( xHigherPriorityTaskWoken != pdFALSE ) - * { - * // Call the interrupt safe yield function here (actual function - * // depends on the FreeRTOS port being used). - * } - * } - * @endverbatim - */ -#define xTimerChangePeriodFromISR( xTimer, xNewPeriod, pxHigherPriorityTaskWoken ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_CHANGE_PERIOD_FROM_ISR, ( xNewPeriod ), ( pxHigherPriorityTaskWoken ), 0U ) - -/** - * BaseType_t xTimerResetFromISR( TimerHandle_t xTimer, - * BaseType_t *pxHigherPriorityTaskWoken ); - * - * A version of xTimerReset() that can be called from an interrupt service - * routine. - * - * @param xTimer The handle of the timer that is to be started, reset, or - * restarted. - * - * @param pxHigherPriorityTaskWoken The timer service/daemon task spends most - * of its time in the Blocked state, waiting for messages to arrive on the timer - * command queue. Calling xTimerResetFromISR() writes a message to the timer - * command queue, so has the potential to transition the timer service/daemon - * task out of the Blocked state. If calling xTimerResetFromISR() causes the - * timer service/daemon task to leave the Blocked state, and the timer service/ - * daemon task has a priority equal to or greater than the currently executing - * task (the task that was interrupted), then *pxHigherPriorityTaskWoken will - * get set to pdTRUE internally within the xTimerResetFromISR() function. If - * xTimerResetFromISR() sets this value to pdTRUE then a context switch should - * be performed before the interrupt exits. - * - * @return pdFAIL will be returned if the reset command could not be sent to - * the timer command queue. pdPASS will be returned if the command was - * successfully sent to the timer command queue. When the command is actually - * processed will depend on the priority of the timer service/daemon task - * relative to other tasks in the system, although the timers expiry time is - * relative to when xTimerResetFromISR() is actually called. The timer service/daemon - * task priority is set by the configTIMER_TASK_PRIORITY configuration constant. - * - * Example usage: - * @verbatim - * // This scenario assumes xBacklightTimer has already been created. When a - * // key is pressed, an LCD back-light is switched on. If 5 seconds pass - * // without a key being pressed, then the LCD back-light is switched off. In - * // this case, the timer is a one-shot timer, and unlike the example given for - * // the xTimerReset() function, the key press event handler is an interrupt - * // service routine. - * - * // The callback function assigned to the one-shot timer. In this case the - * // parameter is not used. - * void vBacklightTimerCallback( TimerHandle_t pxTimer ) - * { - * // The timer expired, therefore 5 seconds must have passed since a key - * // was pressed. Switch off the LCD back-light. - * vSetBacklightState( BACKLIGHT_OFF ); - * } - * - * // The key press interrupt service routine. - * void vKeyPressEventInterruptHandler( void ) - * { - * BaseType_t xHigherPriorityTaskWoken = pdFALSE; - * - * // Ensure the LCD back-light is on, then reset the timer that is - * // responsible for turning the back-light off after 5 seconds of - * // key inactivity. This is an interrupt service routine so can only - * // call FreeRTOS API functions that end in "FromISR". - * vSetBacklightState( BACKLIGHT_ON ); - * - * // xTimerStartFromISR() or xTimerResetFromISR() could be called here - * // as both cause the timer to re-calculate its expiry time. - * // xHigherPriorityTaskWoken was initialised to pdFALSE when it was - * // declared (in this function). - * if( xTimerResetFromISR( xBacklightTimer, &xHigherPriorityTaskWoken ) != pdPASS ) - * { - * // The reset command was not executed successfully. Take appropriate - * // action here. - * } - * - * // Perform the rest of the key processing here. - * - * // If xHigherPriorityTaskWoken equals pdTRUE, then a context switch - * // should be performed. The syntax required to perform a context switch - * // from inside an ISR varies from port to port, and from compiler to - * // compiler. Inspect the demos for the port you are using to find the - * // actual syntax required. - * if( xHigherPriorityTaskWoken != pdFALSE ) - * { - * // Call the interrupt safe yield function here (actual function - * // depends on the FreeRTOS port being used). - * } - * } - * @endverbatim - */ -#define xTimerResetFromISR( xTimer, pxHigherPriorityTaskWoken ) xTimerGenericCommand( ( xTimer ), tmrCOMMAND_RESET_FROM_ISR, ( xTaskGetTickCountFromISR() ), ( pxHigherPriorityTaskWoken ), 0U ) - - -/** - * BaseType_t xTimerPendFunctionCallFromISR( PendedFunction_t xFunctionToPend, - * void *pvParameter1, - * uint32_t ulParameter2, - * BaseType_t *pxHigherPriorityTaskWoken ); - * - * - * Used from application interrupt service routines to defer the execution of a - * function to the RTOS daemon task (the timer service task, hence this function - * is implemented in timers.c and is prefixed with 'Timer'). - * - * Ideally an interrupt service routine (ISR) is kept as short as possible, but - * sometimes an ISR either has a lot of processing to do, or needs to perform - * processing that is not deterministic. In these cases - * xTimerPendFunctionCallFromISR() can be used to defer processing of a function - * to the RTOS daemon task. - * - * A mechanism is provided that allows the interrupt to return directly to the - * task that will subsequently execute the pended callback function. This - * allows the callback function to execute contiguously in time with the - * interrupt - just as if the callback had executed in the interrupt itself. - * - * @param xFunctionToPend The function to execute from the timer service/ - * daemon task. The function must conform to the PendedFunction_t - * prototype. - * - * @param pvParameter1 The value of the callback function's first parameter. - * The parameter has a void * type to allow it to be used to pass any type. - * For example, unsigned longs can be cast to a void *, or the void * can be - * used to point to a structure. - * - * @param ulParameter2 The value of the callback function's second parameter. - * - * @param pxHigherPriorityTaskWoken As mentioned above, calling this function - * will result in a message being sent to the timer daemon task. If the - * priority of the timer daemon task (which is set using - * configTIMER_TASK_PRIORITY in FreeRTOSConfig.h) is higher than the priority of - * the currently running task (the task the interrupt interrupted) then - * *pxHigherPriorityTaskWoken will be set to pdTRUE within - * xTimerPendFunctionCallFromISR(), indicating that a context switch should be - * requested before the interrupt exits. For that reason - * *pxHigherPriorityTaskWoken must be initialised to pdFALSE. See the - * example code below. - * - * @return pdPASS is returned if the message was successfully sent to the - * timer daemon task, otherwise pdFALSE is returned. - * - * Example usage: - * @verbatim - * - * // The callback function that will execute in the context of the daemon task. - * // Note callback functions must all use this same prototype. - * void vProcessInterface( void *pvParameter1, uint32_t ulParameter2 ) - * { - * BaseType_t xInterfaceToService; - * - * // The interface that requires servicing is passed in the second - * // parameter. The first parameter is not used in this case. - * xInterfaceToService = ( BaseType_t ) ulParameter2; - * - * // ...Perform the processing here... - * } - * - * // An ISR that receives data packets from multiple interfaces - * void vAnISR( void ) - * { - * BaseType_t xInterfaceToService, xHigherPriorityTaskWoken; - * - * // Query the hardware to determine which interface needs processing. - * xInterfaceToService = prvCheckInterfaces(); - * - * // The actual processing is to be deferred to a task. Request the - * // vProcessInterface() callback function is executed, passing in the - * // number of the interface that needs processing. The interface to - * // service is passed in the second parameter. The first parameter is - * // not used in this case. - * xHigherPriorityTaskWoken = pdFALSE; - * xTimerPendFunctionCallFromISR( vProcessInterface, NULL, ( uint32_t ) xInterfaceToService, &xHigherPriorityTaskWoken ); - * - * // If xHigherPriorityTaskWoken is now set to pdTRUE then a context - * // switch should be requested. The macro used is port specific and will - * // be either portYIELD_FROM_ISR() or portEND_SWITCHING_ISR() - refer to - * // the documentation page for the port being used. - * portYIELD_FROM_ISR( xHigherPriorityTaskWoken ); - * - * } - * @endverbatim - */ -BaseType_t xTimerPendFunctionCallFromISR( PendedFunction_t xFunctionToPend, void *pvParameter1, uint32_t ulParameter2, BaseType_t *pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION; - - /** - * BaseType_t xTimerPendFunctionCall( PendedFunction_t xFunctionToPend, - * void *pvParameter1, - * uint32_t ulParameter2, - * TickType_t xTicksToWait ); - * - * - * Used to defer the execution of a function to the RTOS daemon task (the timer - * service task, hence this function is implemented in timers.c and is prefixed - * with 'Timer'). - * - * @param xFunctionToPend The function to execute from the timer service/ - * daemon task. The function must conform to the PendedFunction_t - * prototype. - * - * @param pvParameter1 The value of the callback function's first parameter. - * The parameter has a void * type to allow it to be used to pass any type. - * For example, unsigned longs can be cast to a void *, or the void * can be - * used to point to a structure. - * - * @param ulParameter2 The value of the callback function's second parameter. - * - * @param xTicksToWait Calling this function will result in a message being - * sent to the timer daemon task on a queue. xTicksToWait is the amount of - * time the calling task should remain in the Blocked state (so not using any - * processing time) for space to become available on the timer queue if the - * queue is found to be full. - * - * @return pdPASS is returned if the message was successfully sent to the - * timer daemon task, otherwise pdFALSE is returned. - * - */ -BaseType_t xTimerPendFunctionCall( PendedFunction_t xFunctionToPend, void *pvParameter1, uint32_t ulParameter2, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; - -/** - * const char * const pcTimerGetName( TimerHandle_t xTimer ); - * - * Returns the name that was assigned to a timer when the timer was created. - * - * @param xTimer The handle of the timer being queried. - * - * @return The name assigned to the timer specified by the xTimer parameter. - */ -const char * pcTimerGetName( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ - -/** - * void vTimerSetReloadMode( TimerHandle_t xTimer, const UBaseType_t uxAutoReload ); - * - * Updates a timer to be either an auto-reload timer, in which case the timer - * automatically resets itself each time it expires, or a one-shot timer, in - * which case the timer will only expire once unless it is manually restarted. - * - * @param xTimer The handle of the timer being updated. - * - * @param uxAutoReload If uxAutoReload is set to pdTRUE then the timer will - * expire repeatedly with a frequency set by the timer's period (see the - * xTimerPeriodInTicks parameter of the xTimerCreate() API function). If - * uxAutoReload is set to pdFALSE then the timer will be a one-shot timer and - * enter the dormant state after it expires. - */ -void vTimerSetReloadMode( TimerHandle_t xTimer, const UBaseType_t uxAutoReload ) PRIVILEGED_FUNCTION; - -/** -* UBaseType_t uxTimerGetReloadMode( TimerHandle_t xTimer ); -* -* Queries a timer to determine if it is an auto-reload timer, in which case the timer -* automatically resets itself each time it expires, or a one-shot timer, in -* which case the timer will only expire once unless it is manually restarted. -* -* @param xTimer The handle of the timer being queried. -* -* @return If the timer is an auto-reload timer then pdTRUE is returned, otherwise -* pdFALSE is returned. -*/ -UBaseType_t uxTimerGetReloadMode( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION; - -/** - * TickType_t xTimerGetPeriod( TimerHandle_t xTimer ); - * - * Returns the period of a timer. - * - * @param xTimer The handle of the timer being queried. - * - * @return The period of the timer in ticks. - */ -TickType_t xTimerGetPeriod( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION; - -/** -* TickType_t xTimerGetExpiryTime( TimerHandle_t xTimer ); -* -* Returns the time in ticks at which the timer will expire. If this is less -* than the current tick count then the expiry time has overflowed from the -* current time. -* -* @param xTimer The handle of the timer being queried. -* -* @return If the timer is running then the time in ticks at which the timer -* will next expire is returned. If the timer is not running then the return -* value is undefined. -*/ -TickType_t xTimerGetExpiryTime( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION; - -/* - * Functions beyond this part are not part of the public API and are intended - * for use by the kernel only. - */ -BaseType_t xTimerCreateTimerTask( void ) PRIVILEGED_FUNCTION; -BaseType_t xTimerGenericCommand( TimerHandle_t xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t * const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; - -#if( configUSE_TRACE_FACILITY == 1 ) - void vTimerSetTimerNumber( TimerHandle_t xTimer, UBaseType_t uxTimerNumber ) PRIVILEGED_FUNCTION; - UBaseType_t uxTimerGetTimerNumber( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION; -#endif - -#ifdef __cplusplus -} -#endif -#endif /* TIMERS_H */ - - - diff --git a/Middlewares/Third_Party/FreeRTOS/Source/list.c b/Middlewares/Third_Party/FreeRTOS/Source/list.c deleted file mode 100644 index 7618ee8..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/list.c +++ /dev/null @@ -1,198 +0,0 @@ -/* - * FreeRTOS Kernel V10.3.1 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - - -#include -#include "FreeRTOS.h" -#include "list.h" - -/*----------------------------------------------------------- - * PUBLIC LIST API documented in list.h - *----------------------------------------------------------*/ - -void vListInitialise( List_t * const pxList ) -{ - /* 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. */ - - /* 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; - - /* 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. */ - 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. */ - - pxList->uxNumberOfItems = ( UBaseType_t ) 0U; - - /* 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 ); -} -/*-----------------------------------------------------------*/ - -void vListInitialiseItem( ListItem_t * const pxItem ) -{ - /* Make sure the list item is not recorded as being on a list. */ - pxItem->pxContainer = NULL; - - /* 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 ); -} -/*-----------------------------------------------------------*/ - -void vListInsertEnd( List_t * const pxList, ListItem_t * const pxNewListItem ) -{ -ListItem_t * const pxIndex = pxList->pxIndex; - - /* Only effective when configASSERT() is also defined, these tests may catch - the list data structures being overwritten in memory. They will not catch - data errors caused by incorrect configuration or use of FreeRTOS. */ - listTEST_LIST_INTEGRITY( pxList ); - 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; - pxNewListItem->pxPrevious = pxIndex->pxPrevious; - - /* Only used during decision coverage testing. */ - mtCOVERAGE_TEST_DELAY(); - - pxIndex->pxPrevious->pxNext = pxNewListItem; - pxIndex->pxPrevious = pxNewListItem; - - /* Remember which list the item is in. */ - pxNewListItem->pxContainer = pxList; - - ( pxList->uxNumberOfItems )++; -} -/*-----------------------------------------------------------*/ - -void vListInsert( List_t * const pxList, ListItem_t * const pxNewListItem ) -{ -ListItem_t *pxIterator; -const TickType_t xValueOfInsertion = pxNewListItem->xItemValue; - - /* Only effective when configASSERT() is also defined, these tests may catch - the list data structures being overwritten in memory. They will not catch - data errors caused by incorrect configuration or use of FreeRTOS. */ - listTEST_LIST_INTEGRITY( pxList ); - listTEST_LIST_ITEM_INTEGRITY( pxNewListItem ); - - /* Insert the new list item into the list, sorted in xItemValue order. - - If the list already contains a list item with the same item value then the - 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 ) - { - pxIterator = pxList->xListEnd.pxPrevious; - } - else - { - /* *** NOTE *********************************************************** - If you find your application is crashing here then likely causes are - listed below. In addition see https://www.freertos.org/FAQHelp.html for - more tips, and ensure configASSERT() is defined! - https://www.freertos.org/a00110.html#configASSERT - - 1) Stack overflow - - see https://www.freertos.org/Stacks-and-stack-overflow-checking.html - 2) Incorrect interrupt priority assignment, especially on Cortex-M - parts where numerically high priority values denote low actual - interrupt priorities, which can seem counter intuitive. See - https://www.freertos.org/RTOS-Cortex-M3-M4.html and the definition - of configMAX_SYSCALL_INTERRUPT_PRIORITY on - https://www.freertos.org/a00110.html - 3) Calling an API function from within a critical section or when - the scheduler is suspended, or calling an API function that does - not end in "FromISR" from an interrupt. - 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. */ - { - /* There is nothing to do here, just iterating to the wanted - insertion position. */ - } - } - - pxNewListItem->pxNext = pxIterator->pxNext; - pxNewListItem->pxNext->pxPrevious = pxNewListItem; - pxNewListItem->pxPrevious = pxIterator; - pxIterator->pxNext = pxNewListItem; - - /* Remember which list the item is in. This allows fast removal of the - item later. */ - pxNewListItem->pxContainer = pxList; - - ( pxList->uxNumberOfItems )++; -} -/*-----------------------------------------------------------*/ - -UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove ) -{ -/* The list item knows which list it is in. Obtain the list from the list -item. */ -List_t * const pxList = pxItemToRemove->pxContainer; - - pxItemToRemove->pxNext->pxPrevious = pxItemToRemove->pxPrevious; - pxItemToRemove->pxPrevious->pxNext = pxItemToRemove->pxNext; - - /* Only used during decision coverage testing. */ - mtCOVERAGE_TEST_DELAY(); - - /* Make sure the index is left pointing to a valid item. */ - if( pxList->pxIndex == pxItemToRemove ) - { - pxList->pxIndex = pxItemToRemove->pxPrevious; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - pxItemToRemove->pxContainer = NULL; - ( pxList->uxNumberOfItems )--; - - return pxList->uxNumberOfItems; -} -/*-----------------------------------------------------------*/ - diff --git a/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c b/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c deleted file mode 100644 index 89a912c..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c +++ /dev/null @@ -1,775 +0,0 @@ -/* - * FreeRTOS Kernel V10.3.1 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - -/*----------------------------------------------------------- - * Implementation of functions defined in portable.h for the ARM CM4F port. - *----------------------------------------------------------*/ - -/* Scheduler includes. */ -#include "FreeRTOS.h" -#include "task.h" - -#ifndef __VFP_FP__ - #error This port can only be used when the project options are configured to enable hardware floating point support. -#endif - -#ifndef configSYSTICK_CLOCK_HZ - #define configSYSTICK_CLOCK_HZ configCPU_CLOCK_HZ - /* Ensure the SysTick is clocked at the same frequency as the core. */ - #define portNVIC_SYSTICK_CLK_BIT ( 1UL << 2UL ) -#else - /* The way the SysTick is clocked is not modified in case it is not the same - as the core. */ - #define portNVIC_SYSTICK_CLK_BIT ( 0 ) -#endif - -/* Constants required to manipulate the core. Registers first... */ -#define portNVIC_SYSTICK_CTRL_REG ( * ( ( volatile uint32_t * ) 0xe000e010 ) ) -#define portNVIC_SYSTICK_LOAD_REG ( * ( ( volatile uint32_t * ) 0xe000e014 ) ) -#define portNVIC_SYSTICK_CURRENT_VALUE_REG ( * ( ( volatile uint32_t * ) 0xe000e018 ) ) -#define portNVIC_SYSPRI2_REG ( * ( ( volatile uint32_t * ) 0xe000ed20 ) ) -/* ...then bits in the registers. */ -#define portNVIC_SYSTICK_INT_BIT ( 1UL << 1UL ) -#define portNVIC_SYSTICK_ENABLE_BIT ( 1UL << 0UL ) -#define portNVIC_SYSTICK_COUNT_FLAG_BIT ( 1UL << 16UL ) -#define portNVIC_PENDSVCLEAR_BIT ( 1UL << 27UL ) -#define portNVIC_PEND_SYSTICK_CLEAR_BIT ( 1UL << 25UL ) - -/* Constants used to detect a Cortex-M7 r0p1 core, which should use the ARM_CM7 -r0p1 port. */ -#define portCPUID ( * ( ( volatile uint32_t * ) 0xE000ed00 ) ) -#define portCORTEX_M7_r0p1_ID ( 0x410FC271UL ) -#define portCORTEX_M7_r0p0_ID ( 0x410FC270UL ) - -#define portNVIC_PENDSV_PRI ( ( ( uint32_t ) configKERNEL_INTERRUPT_PRIORITY ) << 16UL ) -#define portNVIC_SYSTICK_PRI ( ( ( uint32_t ) configKERNEL_INTERRUPT_PRIORITY ) << 24UL ) - -/* Constants required to check the validity of an interrupt priority. */ -#define portFIRST_USER_INTERRUPT_NUMBER ( 16 ) -#define portNVIC_IP_REGISTERS_OFFSET_16 ( 0xE000E3F0 ) -#define portAIRCR_REG ( * ( ( volatile uint32_t * ) 0xE000ED0C ) ) -#define portMAX_8_BIT_VALUE ( ( uint8_t ) 0xff ) -#define portTOP_BIT_OF_BYTE ( ( uint8_t ) 0x80 ) -#define portMAX_PRIGROUP_BITS ( ( uint8_t ) 7 ) -#define portPRIORITY_GROUP_MASK ( 0x07UL << 8UL ) -#define portPRIGROUP_SHIFT ( 8UL ) - -/* Masks off all bits but the VECTACTIVE bits in the ICSR register. */ -#define portVECTACTIVE_MASK ( 0xFFUL ) - -/* Constants required to manipulate the VFP. */ -#define portFPCCR ( ( volatile uint32_t * ) 0xe000ef34 ) /* Floating point context control register. */ -#define portASPEN_AND_LSPEN_BITS ( 0x3UL << 30UL ) - -/* Constants required to set up the initial stack. */ -#define portINITIAL_XPSR ( 0x01000000 ) -#define portINITIAL_EXC_RETURN ( 0xfffffffd ) - -/* The systick is a 24-bit counter. */ -#define portMAX_24_BIT_NUMBER ( 0xffffffUL ) - -/* For strict compliance with the Cortex-M spec the task start address should -have bit-0 clear, as it is loaded into the PC on exit from an ISR. */ -#define portSTART_ADDRESS_MASK ( ( StackType_t ) 0xfffffffeUL ) - -/* A fiddle factor to estimate the number of SysTick counts that would have -occurred while the SysTick counter is stopped during tickless idle -calculations. */ -#define portMISSED_COUNTS_FACTOR ( 45UL ) - -/* Let the user override the pre-loading of the initial LR with the address of -prvTaskExitError() in case it messes up unwinding of the stack in the -debugger. */ -#ifdef configTASK_RETURN_ADDRESS - #define portTASK_RETURN_ADDRESS configTASK_RETURN_ADDRESS -#else - #define portTASK_RETURN_ADDRESS prvTaskExitError -#endif - -/* - * Setup the timer to generate the tick interrupts. The implementation in this - * file is weak to allow application writers to change the timer used to - * generate the tick interrupt. - */ -void vPortSetupTimerInterrupt( void ); - -/* - * Exception handlers. - */ -void xPortPendSVHandler( void ) __attribute__ (( naked )); -void xPortSysTickHandler( void ); -void vPortSVCHandler( void ) __attribute__ (( naked )); - -/* - * Start first task is a separate function so it can be tested in isolation. - */ -static void prvPortStartFirstTask( void ) __attribute__ (( naked )); - -/* - * Function to enable the VFP. - */ -static void vPortEnableVFP( void ) __attribute__ (( naked )); - -/* - * Used to catch tasks that attempt to return from their implementing function. - */ -static void prvTaskExitError( void ); - -/*-----------------------------------------------------------*/ - -/* Each task maintains its own interrupt status in the critical nesting -variable. */ -static UBaseType_t uxCriticalNesting = 0xaaaaaaaa; - -/* - * The number of SysTick increments that make up one tick period. - */ -#if( configUSE_TICKLESS_IDLE == 1 ) - static uint32_t ulTimerCountsForOneTick = 0; -#endif /* configUSE_TICKLESS_IDLE */ - -/* - * The maximum number of tick periods that can be suppressed is limited by the - * 24 bit resolution of the SysTick timer. - */ -#if( configUSE_TICKLESS_IDLE == 1 ) - static uint32_t xMaximumPossibleSuppressedTicks = 0; -#endif /* configUSE_TICKLESS_IDLE */ - -/* - * Compensate for the CPU cycles that pass while the SysTick is stopped (low - * power functionality only. - */ -#if( configUSE_TICKLESS_IDLE == 1 ) - static uint32_t ulStoppedTimerCompensation = 0; -#endif /* configUSE_TICKLESS_IDLE */ - -/* - * Used by the portASSERT_IF_INTERRUPT_PRIORITY_INVALID() macro to ensure - * FreeRTOS API functions are not called from interrupts that have been assigned - * a priority above configMAX_SYSCALL_INTERRUPT_PRIORITY. - */ -#if( configASSERT_DEFINED == 1 ) - static uint8_t ucMaxSysCallPriority = 0; - static uint32_t ulMaxPRIGROUPValue = 0; - static const volatile uint8_t * const pcInterruptPriorityRegisters = ( const volatile uint8_t * const ) portNVIC_IP_REGISTERS_OFFSET_16; -#endif /* configASSERT_DEFINED */ - -/*-----------------------------------------------------------*/ - -/* - * See header file for description. - */ -StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters ) -{ - /* 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--; - - *pxTopOfStack = portINITIAL_XPSR; /* xPSR */ - pxTopOfStack--; - *pxTopOfStack = ( ( StackType_t ) pxCode ) & portSTART_ADDRESS_MASK; /* PC */ - pxTopOfStack--; - *pxTopOfStack = ( StackType_t ) portTASK_RETURN_ADDRESS; /* LR */ - - /* Save code space by skipping register initialisation. */ - pxTopOfStack -= 5; /* R12, R3, R2 and R1. */ - *pxTopOfStack = ( StackType_t ) pvParameters; /* R0 */ - - /* A save method is being used that requires each task to maintain its - own exec return value. */ - pxTopOfStack--; - *pxTopOfStack = portINITIAL_EXC_RETURN; - - pxTopOfStack -= 8; /* R11, R10, R9, R8, R7, R6, R5 and R4. */ - - return pxTopOfStack; -} -/*-----------------------------------------------------------*/ - -static void prvTaskExitError( void ) -{ -volatile uint32_t ulDummy = 0; - - /* A function that implements a task must not exit or attempt to return to - 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 ); - portDISABLE_INTERRUPTS(); - while( ulDummy == 0 ) - { - /* This file calls prvTaskExitError() after the scheduler has been - started to remove a compiler warning about the function being defined - but never called. ulDummy is used purely to quieten other warnings - 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. */ - } -} -/*-----------------------------------------------------------*/ - -void vPortSVCHandler( void ) -{ - __asm volatile ( - " ldr r3, pxCurrentTCBConst2 \n" /* Restore the context. */ - " ldr r1, [r3] \n" /* Use pxCurrentTCBConst to get the pxCurrentTCB address. */ - " ldr r0, [r1] \n" /* The first item in pxCurrentTCB is the task top of stack. */ - " ldmia r0!, {r4-r11, r14} \n" /* Pop the registers that are not automatically saved on exception entry and the critical nesting count. */ - " msr psp, r0 \n" /* Restore the task stack pointer. */ - " isb \n" - " mov r0, #0 \n" - " msr basepri, r0 \n" - " bx r14 \n" - " \n" - " .align 4 \n" - "pxCurrentTCBConst2: .word pxCurrentTCB \n" - ); -} -/*-----------------------------------------------------------*/ - -static void prvPortStartFirstTask( void ) -{ - /* 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( - " ldr r0, =0xE000ED08 \n" /* Use the NVIC offset register to locate the stack. */ - " ldr r0, [r0] \n" - " ldr r0, [r0] \n" - " msr msp, r0 \n" /* Set the msp back to the start of the stack. */ - " mov r0, #0 \n" /* Clear the bit that indicates the FPU is in use, see comment above. */ - " msr control, r0 \n" - " cpsie i \n" /* Globally enable interrupts. */ - " cpsie f \n" - " dsb \n" - " isb \n" - " svc 0 \n" /* System call to start first task. */ - " nop \n" - ); -} -/*-----------------------------------------------------------*/ - -/* - * See header file for description. - */ -BaseType_t xPortStartScheduler( void ) -{ - /* configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to 0. - See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html */ - configASSERT( configMAX_SYSCALL_INTERRUPT_PRIORITY ); - - /* This port can be used on all revisions of the Cortex-M7 core other than - the r0p1 parts. r0p1 parts should use the port from the - /source/portable/GCC/ARM_CM7/r0p1 directory. */ - configASSERT( portCPUID != portCORTEX_M7_r0p1_ID ); - configASSERT( portCPUID != portCORTEX_M7_r0p0_ID ); - - #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 ); - volatile uint8_t ucMaxPriorityValue; - - /* Determine the maximum priority from which ISR safe FreeRTOS API - 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; - - /* Determine the number of priority bits available. First write to all - possible bits. */ - *pucFirstUserPriorityRegister = portMAX_8_BIT_VALUE; - - /* Read the value back to see how many bits stuck. */ - ucMaxPriorityValue = *pucFirstUserPriorityRegister; - - /* Use the same mask on the maximum system call priority. */ - ucMaxSysCallPriority = configMAX_SYSCALL_INTERRUPT_PRIORITY & ucMaxPriorityValue; - - /* Calculate the maximum acceptable priority group value for the number - of bits read back. */ - ulMaxPRIGROUPValue = portMAX_PRIGROUP_BITS; - while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE ) - { - ulMaxPRIGROUPValue--; - ucMaxPriorityValue <<= ( uint8_t ) 0x01; - } - - #ifdef __NVIC_PRIO_BITS - { - /* Check the CMSIS configuration that defines the number of - priority bits matches the number of priority bits actually queried - from the hardware. */ - configASSERT( ( portMAX_PRIGROUP_BITS - ulMaxPRIGROUPValue ) == __NVIC_PRIO_BITS ); - } - #endif - - #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 ); - } - #endif - - /* Shift the priority group value back to its position within the AIRCR - register. */ - ulMaxPRIGROUPValue <<= portPRIGROUP_SHIFT; - ulMaxPRIGROUPValue &= portPRIORITY_GROUP_MASK; - - /* Restore the clobbered interrupt priority register to its original - value. */ - *pucFirstUserPriorityRegister = ulOriginalPriority; - } - #endif /* conifgASSERT_DEFINED */ - - /* Make PendSV and SysTick the lowest priority interrupts. */ - portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI; - portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI; - - /* Start the timer that generates the tick ISR. Interrupts are disabled - here already. */ - vPortSetupTimerInterrupt(); - - /* Initialise the critical nesting count ready for the first task. */ - uxCriticalNesting = 0; - - /* Ensure the VFP is enabled - it should be anyway. */ - vPortEnableVFP(); - - /* Lazy save always. */ - *( portFPCCR ) |= portASPEN_AND_LSPEN_BITS; - - /* Start the first task. */ - prvPortStartFirstTask(); - - /* Should never get here as the tasks will now be executing! Call the task - 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(); - prvTaskExitError(); - - /* Should not get here! */ - return 0; -} -/*-----------------------------------------------------------*/ - -void vPortEndScheduler( void ) -{ - /* Not implemented in ports where there is nothing to return to. - Artificially force an assert. */ - configASSERT( uxCriticalNesting == 1000UL ); -} -/*-----------------------------------------------------------*/ - -void vPortEnterCritical( void ) -{ - portDISABLE_INTERRUPTS(); - uxCriticalNesting++; - - /* 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 ) - { - configASSERT( ( portNVIC_INT_CTRL_REG & portVECTACTIVE_MASK ) == 0 ); - } -} -/*-----------------------------------------------------------*/ - -void vPortExitCritical( void ) -{ - configASSERT( uxCriticalNesting ); - uxCriticalNesting--; - if( uxCriticalNesting == 0 ) - { - portENABLE_INTERRUPTS(); - } -} -/*-----------------------------------------------------------*/ - -void xPortPendSVHandler( void ) -{ - /* This is a naked function. */ - - __asm volatile - ( - " mrs r0, psp \n" - " isb \n" - " \n" - " ldr r3, pxCurrentTCBConst \n" /* Get the location of the current TCB. */ - " ldr r2, [r3] \n" - " \n" - " tst r14, #0x10 \n" /* Is the task using the FPU context? If so, push high vfp registers. */ - " it eq \n" - " vstmdbeq r0!, {s16-s31} \n" - " \n" - " stmdb r0!, {r4-r11, r14} \n" /* Save the core registers. */ - " str r0, [r2] \n" /* Save the new top of stack into the first member of the TCB. */ - " \n" - " stmdb sp!, {r0, r3} \n" - " mov r0, %0 \n" - " msr basepri, r0 \n" - " dsb \n" - " isb \n" - " bl vTaskSwitchContext \n" - " mov r0, #0 \n" - " msr basepri, r0 \n" - " ldmia sp!, {r0, r3} \n" - " \n" - " ldr r1, [r3] \n" /* The first item in pxCurrentTCB is the task top of stack. */ - " ldr r0, [r1] \n" - " \n" - " ldmia r0!, {r4-r11, r14} \n" /* Pop the core registers. */ - " \n" - " tst r14, #0x10 \n" /* Is the task using the FPU context? If so, pop the high vfp registers too. */ - " it eq \n" - " vldmiaeq r0!, {s16-s31} \n" - " \n" - " msr psp, r0 \n" - " isb \n" - " \n" - #ifdef WORKAROUND_PMU_CM001 /* XMC4000 specific errata workaround. */ - #if WORKAROUND_PMU_CM001 == 1 - " push { r14 } \n" - " pop { pc } \n" - #endif - #endif - " \n" - " bx r14 \n" - " \n" - " .align 4 \n" - "pxCurrentTCBConst: .word pxCurrentTCB \n" - ::"i"(configMAX_SYSCALL_INTERRUPT_PRIORITY) - ); -} -/*-----------------------------------------------------------*/ - -void xPortSysTickHandler( void ) -{ - /* The SysTick runs at the lowest interrupt priority, so when this interrupt - executes all interrupts must be unmasked. There is therefore no need to - save and then restore the interrupt mask value as its value is already - known. */ - portDISABLE_INTERRUPTS(); - { - /* Increment the RTOS tick. */ - if( xTaskIncrementTick() != pdFALSE ) - { - /* A context switch is required. Context switching is performed in - the PendSV interrupt. Pend the PendSV interrupt. */ - portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT; - } - } - portENABLE_INTERRUPTS(); -} -/*-----------------------------------------------------------*/ - -#if( configUSE_TICKLESS_IDLE == 1 ) - - __attribute__((weak)) void vPortSuppressTicksAndSleep( TickType_t xExpectedIdleTime ) - { - uint32_t ulReloadValue, ulCompleteTickPeriods, ulCompletedSysTickDecrements; - TickType_t xModifiableIdleTime; - - /* Make sure the SysTick reload value does not overflow the counter. */ - if( xExpectedIdleTime > xMaximumPossibleSuppressedTicks ) - { - xExpectedIdleTime = xMaximumPossibleSuppressedTicks; - } - - /* Stop the SysTick momentarily. The time the SysTick is stopped for - is accounted for as best it can be, but using the tickless mode will - inevitably result in some tiny drift of the time maintained by the - kernel with respect to calendar time. */ - portNVIC_SYSTICK_CTRL_REG &= ~portNVIC_SYSTICK_ENABLE_BIT; - - /* Calculate the reload value required to wait xExpectedIdleTime - tick periods. -1 is used because this code will execute part way - through one of the tick periods. */ - ulReloadValue = portNVIC_SYSTICK_CURRENT_VALUE_REG + ( ulTimerCountsForOneTick * ( xExpectedIdleTime - 1UL ) ); - if( ulReloadValue > ulStoppedTimerCompensation ) - { - ulReloadValue -= ulStoppedTimerCompensation; - } - - /* Enter a critical section but don't use the taskENTER_CRITICAL() - method as that will mask interrupts that should exit sleep mode. */ - __asm volatile( "cpsid i" ::: "memory" ); - __asm volatile( "dsb" ); - __asm volatile( "isb" ); - - /* If a context switch is pending or a task is waiting for the scheduler - to be unsuspended then abandon the low power entry. */ - if( eTaskConfirmSleepModeStatus() == eAbortSleep ) - { - /* Restart from whatever is left in the count register to complete - this tick period. */ - portNVIC_SYSTICK_LOAD_REG = portNVIC_SYSTICK_CURRENT_VALUE_REG; - - /* Restart SysTick. */ - portNVIC_SYSTICK_CTRL_REG |= portNVIC_SYSTICK_ENABLE_BIT; - - /* Reset the reload register to the value required for normal tick - periods. */ - portNVIC_SYSTICK_LOAD_REG = ulTimerCountsForOneTick - 1UL; - - /* Re-enable interrupts - see comments above the cpsid instruction() - above. */ - __asm volatile( "cpsie i" ::: "memory" ); - } - else - { - /* Set the new reload value. */ - portNVIC_SYSTICK_LOAD_REG = ulReloadValue; - - /* Clear the SysTick count flag and set the count value back to - zero. */ - portNVIC_SYSTICK_CURRENT_VALUE_REG = 0UL; - - /* Restart SysTick. */ - portNVIC_SYSTICK_CTRL_REG |= portNVIC_SYSTICK_ENABLE_BIT; - - /* Sleep until something happens. configPRE_SLEEP_PROCESSING() can - set its parameter to 0 to indicate that its implementation contains - its own wait for interrupt or wait for event instruction, and so wfi - should not be executed again. However, the original expected idle - time variable must remain unmodified, so a copy is taken. */ - xModifiableIdleTime = xExpectedIdleTime; - configPRE_SLEEP_PROCESSING( xModifiableIdleTime ); - if( xModifiableIdleTime > 0 ) - { - __asm volatile( "dsb" ::: "memory" ); - __asm volatile( "wfi" ); - __asm volatile( "isb" ); - } - configPOST_SLEEP_PROCESSING( xExpectedIdleTime ); - - /* Re-enable interrupts to allow the interrupt that brought the MCU - out of sleep mode to execute immediately. see comments above - __disable_interrupt() call above. */ - __asm volatile( "cpsie i" ::: "memory" ); - __asm volatile( "dsb" ); - __asm volatile( "isb" ); - - /* Disable interrupts again because the clock is about to be stopped - and interrupts that execute while the clock is stopped will increase - any slippage between the time maintained by the RTOS and calendar - time. */ - __asm volatile( "cpsid i" ::: "memory" ); - __asm volatile( "dsb" ); - __asm volatile( "isb" ); - - /* Disable the SysTick clock without reading the - portNVIC_SYSTICK_CTRL_REG register to ensure the - portNVIC_SYSTICK_COUNT_FLAG_BIT is not cleared if it is set. Again, - the time the SysTick is stopped for is accounted for as best it can - be, but using the tickless mode will inevitably result in some tiny - drift of the time maintained by the kernel with respect to calendar - time*/ - portNVIC_SYSTICK_CTRL_REG = ( portNVIC_SYSTICK_CLK_BIT | portNVIC_SYSTICK_INT_BIT ); - - /* Determine if the SysTick clock has already counted to zero and - been set back to the current reload value (the reload back being - correct for the entire expected idle time) or if the SysTick is yet - to count to zero (in which case an interrupt other than the SysTick - must have brought the system out of sleep mode). */ - if( ( portNVIC_SYSTICK_CTRL_REG & portNVIC_SYSTICK_COUNT_FLAG_BIT ) != 0 ) - { - uint32_t ulCalculatedLoadValue; - - /* The tick interrupt is already pending, and the SysTick count - reloaded with ulReloadValue. Reset the - portNVIC_SYSTICK_LOAD_REG with whatever remains of this tick - period. */ - ulCalculatedLoadValue = ( ulTimerCountsForOneTick - 1UL ) - ( ulReloadValue - portNVIC_SYSTICK_CURRENT_VALUE_REG ); - - /* Don't allow a tiny value, or values that have somehow - underflowed because the post sleep hook did something - that took too long. */ - if( ( ulCalculatedLoadValue < ulStoppedTimerCompensation ) || ( ulCalculatedLoadValue > ulTimerCountsForOneTick ) ) - { - ulCalculatedLoadValue = ( ulTimerCountsForOneTick - 1UL ); - } - - portNVIC_SYSTICK_LOAD_REG = ulCalculatedLoadValue; - - /* As the pending tick will be processed as soon as this - function exits, the tick value maintained by the tick is stepped - forward by one less than the time spent waiting. */ - ulCompleteTickPeriods = xExpectedIdleTime - 1UL; - } - else - { - /* Something other than the tick interrupt ended the sleep. - Work out how long the sleep lasted rounded to complete tick - periods (not the ulReload value which accounted for part - ticks). */ - ulCompletedSysTickDecrements = ( xExpectedIdleTime * ulTimerCountsForOneTick ) - portNVIC_SYSTICK_CURRENT_VALUE_REG; - - /* How many complete tick periods passed while the processor - was waiting? */ - ulCompleteTickPeriods = ulCompletedSysTickDecrements / ulTimerCountsForOneTick; - - /* The reload value is set to whatever fraction of a single tick - period remains. */ - portNVIC_SYSTICK_LOAD_REG = ( ( ulCompleteTickPeriods + 1UL ) * ulTimerCountsForOneTick ) - ulCompletedSysTickDecrements; - } - - /* Restart SysTick so it runs from portNVIC_SYSTICK_LOAD_REG - again, then set portNVIC_SYSTICK_LOAD_REG back to its standard - value. */ - portNVIC_SYSTICK_CURRENT_VALUE_REG = 0UL; - portNVIC_SYSTICK_CTRL_REG |= portNVIC_SYSTICK_ENABLE_BIT; - vTaskStepTick( ulCompleteTickPeriods ); - portNVIC_SYSTICK_LOAD_REG = ulTimerCountsForOneTick - 1UL; - - /* Exit with interrupts enabled. */ - __asm volatile( "cpsie i" ::: "memory" ); - } - } - -#endif /* #if configUSE_TICKLESS_IDLE */ -/*-----------------------------------------------------------*/ - -/* - * Setup the systick timer to generate the tick interrupts at the required - * frequency. - */ -__attribute__(( weak )) void vPortSetupTimerInterrupt( void ) -{ - /* Calculate the constants required to configure the tick interrupt. */ - #if( configUSE_TICKLESS_IDLE == 1 ) - { - ulTimerCountsForOneTick = ( configSYSTICK_CLOCK_HZ / configTICK_RATE_HZ ); - xMaximumPossibleSuppressedTicks = portMAX_24_BIT_NUMBER / ulTimerCountsForOneTick; - ulStoppedTimerCompensation = portMISSED_COUNTS_FACTOR / ( configCPU_CLOCK_HZ / configSYSTICK_CLOCK_HZ ); - } - #endif /* configUSE_TICKLESS_IDLE */ - - /* Stop and clear the SysTick. */ - portNVIC_SYSTICK_CTRL_REG = 0UL; - portNVIC_SYSTICK_CURRENT_VALUE_REG = 0UL; - - /* Configure SysTick to interrupt at the requested rate. */ - portNVIC_SYSTICK_LOAD_REG = ( configSYSTICK_CLOCK_HZ / configTICK_RATE_HZ ) - 1UL; - portNVIC_SYSTICK_CTRL_REG = ( portNVIC_SYSTICK_CLK_BIT | portNVIC_SYSTICK_INT_BIT | portNVIC_SYSTICK_ENABLE_BIT ); -} -/*-----------------------------------------------------------*/ - -/* This is a naked function. */ -static void vPortEnableVFP( void ) -{ - __asm volatile - ( - " ldr.w r0, =0xE000ED88 \n" /* The FPU enable bits are in the CPACR. */ - " ldr r1, [r0] \n" - " \n" - " orr r1, r1, #( 0xf << 20 ) \n" /* Enable CP10 and CP11 coprocessors, then save back. */ - " str r1, [r0] \n" - " bx r14 " - ); -} -/*-----------------------------------------------------------*/ - -#if( configASSERT_DEFINED == 1 ) - - void vPortValidateInterruptPriority( void ) - { - uint32_t ulCurrentInterrupt; - uint8_t ucCurrentPriority; - - /* Obtain the number of the currently executing interrupt. */ - __asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) :: "memory" ); - - /* Is the interrupt number a user defined interrupt? */ - if( ulCurrentInterrupt >= portFIRST_USER_INTERRUPT_NUMBER ) - { - /* Look up the interrupt's priority. */ - ucCurrentPriority = pcInterruptPriorityRegisters[ ulCurrentInterrupt ]; - - /* The following assertion will fail if a service routine (ISR) for - an interrupt that has been assigned a priority above - configMAX_SYSCALL_INTERRUPT_PRIORITY calls an ISR safe FreeRTOS API - function. ISR safe FreeRTOS API functions must *only* be called - from interrupts that have been assigned a priority at or below - configMAX_SYSCALL_INTERRUPT_PRIORITY. - - Numerically low interrupt priority numbers represent logically high - interrupt priorities, therefore the priority of the interrupt must - be set to a value equal to or numerically *higher* than - configMAX_SYSCALL_INTERRUPT_PRIORITY. - - Interrupts that use the FreeRTOS API must not be left at their - default priority of zero as that is the highest possible priority, - which is guaranteed to be above configMAX_SYSCALL_INTERRUPT_PRIORITY, - and therefore also guaranteed to be invalid. - - FreeRTOS maintains separate thread and ISR API functions to ensure - 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 ); - } - - /* Priority grouping: The interrupt controller (NVIC) allows the bits - that define each interrupt's priority to be split between bits that - define the interrupt's pre-emption priority bits and bits that define - the interrupt's sub-priority. For simplicity all bits must be defined - to be pre-emption priority bits. The following assertion will fail if - this is not the case (if some bits represent a sub-priority). - - If the application only uses CMSIS libraries for interrupt - 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 ); - } - -#endif /* configASSERT_DEFINED */ - - diff --git a/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h b/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h deleted file mode 100644 index d0a566a..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h +++ /dev/null @@ -1,243 +0,0 @@ -/* - * FreeRTOS Kernel V10.3.1 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - - -#ifndef PORTMACRO_H -#define PORTMACRO_H - -#ifdef __cplusplus -extern "C" { -#endif - -/*----------------------------------------------------------- - * Port specific definitions. - * - * The settings in this file configure FreeRTOS correctly for the - * given hardware and compiler. - * - * These settings should not be altered. - *----------------------------------------------------------- - */ - -/* Type definitions. */ -#define portCHAR char -#define portFLOAT float -#define portDOUBLE double -#define portLONG long -#define portSHORT short -#define portSTACK_TYPE uint32_t -#define portBASE_TYPE long - -typedef portSTACK_TYPE StackType_t; -typedef long BaseType_t; -typedef unsigned long UBaseType_t; - -#if( configUSE_16_BIT_TICKS == 1 ) - typedef uint16_t TickType_t; - #define portMAX_DELAY ( TickType_t ) 0xffff -#else - typedef uint32_t TickType_t; - #define portMAX_DELAY ( TickType_t ) 0xffffffffUL - - /* 32-bit tick type on a 32-bit architecture, so reads of the tick count do - not need to be guarded with a critical section. */ - #define portTICK_TYPE_IS_ATOMIC 1 -#endif -/*-----------------------------------------------------------*/ - -/* Architecture specifics. */ -#define portSTACK_GROWTH ( -1 ) -#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ ) -#define portBYTE_ALIGNMENT 8 -/*-----------------------------------------------------------*/ - -/* Scheduler utilities. */ -#define portYIELD() \ -{ \ - /* Set a PendSV to request a context switch. */ \ - portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT; \ - \ - /* Barriers are normally not required but do ensure the code is completely \ - within the specified behaviour for the architecture. */ \ - __asm volatile( "dsb" ::: "memory" ); \ - __asm volatile( "isb" ); \ -} - -#define portNVIC_INT_CTRL_REG ( * ( ( volatile uint32_t * ) 0xe000ed04 ) ) -#define portNVIC_PENDSVSET_BIT ( 1UL << 28UL ) -#define portEND_SWITCHING_ISR( xSwitchRequired ) if( xSwitchRequired != pdFALSE ) portYIELD() -#define portYIELD_FROM_ISR( x ) portEND_SWITCHING_ISR( x ) -/*-----------------------------------------------------------*/ - -/* Critical section management. */ -extern void vPortEnterCritical( void ); -extern void vPortExitCritical( void ); -#define portSET_INTERRUPT_MASK_FROM_ISR() ulPortRaiseBASEPRI() -#define portCLEAR_INTERRUPT_MASK_FROM_ISR(x) vPortSetBASEPRI(x) -#define portDISABLE_INTERRUPTS() vPortRaiseBASEPRI() -#define portENABLE_INTERRUPTS() vPortSetBASEPRI(0) -#define portENTER_CRITICAL() vPortEnterCritical() -#define portEXIT_CRITICAL() vPortExitCritical() - -/*-----------------------------------------------------------*/ - -/* Task function macros as described on the FreeRTOS.org WEB site. These are -not necessary for to use this port. They are defined so the common demo files -(which build with all the ports) will build. */ -#define portTASK_FUNCTION_PROTO( vFunction, pvParameters ) void vFunction( void *pvParameters ) -#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void *pvParameters ) -/*-----------------------------------------------------------*/ - -/* Tickless idle/low power functionality. */ -#ifndef portSUPPRESS_TICKS_AND_SLEEP - extern void vPortSuppressTicksAndSleep( TickType_t xExpectedIdleTime ); - #define portSUPPRESS_TICKS_AND_SLEEP( xExpectedIdleTime ) vPortSuppressTicksAndSleep( xExpectedIdleTime ) -#endif -/*-----------------------------------------------------------*/ - -/* Architecture specific optimisations. */ -#ifndef configUSE_PORT_OPTIMISED_TASK_SELECTION - #define configUSE_PORT_OPTIMISED_TASK_SELECTION 1 -#endif - -#if configUSE_PORT_OPTIMISED_TASK_SELECTION == 1 - - /* Generic helper function. */ - __attribute__( ( always_inline ) ) static inline uint8_t ucPortCountLeadingZeros( uint32_t ulBitmap ) - { - uint8_t ucReturn; - - __asm volatile ( "clz %0, %1" : "=r" ( ucReturn ) : "r" ( ulBitmap ) : "memory" ); - return ucReturn; - } - - /* Check the configuration. */ - #if( configMAX_PRIORITIES > 32 ) - #error configUSE_PORT_OPTIMISED_TASK_SELECTION can only be set to 1 when configMAX_PRIORITIES is less than or equal to 32. It is very rare that a system requires more than 10 to 15 difference priorities as tasks that share a priority will time slice. - #endif - - /* Store/clear the ready priorities in a bit map. */ - #define portRECORD_READY_PRIORITY( uxPriority, uxReadyPriorities ) ( uxReadyPriorities ) |= ( 1UL << ( uxPriority ) ) - #define portRESET_READY_PRIORITY( uxPriority, uxReadyPriorities ) ( uxReadyPriorities ) &= ~( 1UL << ( uxPriority ) ) - - /*-----------------------------------------------------------*/ - - #define portGET_HIGHEST_PRIORITY( uxTopPriority, uxReadyPriorities ) uxTopPriority = ( 31UL - ( uint32_t ) ucPortCountLeadingZeros( ( uxReadyPriorities ) ) ) - -#endif /* configUSE_PORT_OPTIMISED_TASK_SELECTION */ - -/*-----------------------------------------------------------*/ - -#ifdef configASSERT - void vPortValidateInterruptPriority( void ); - #define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority() -#endif - -/* portNOP() is not required by this port. */ -#define portNOP() - -#define portINLINE __inline - -#ifndef portFORCE_INLINE - #define portFORCE_INLINE inline __attribute__(( always_inline)) -#endif - -portFORCE_INLINE static BaseType_t xPortIsInsideInterrupt( void ) -{ -uint32_t ulCurrentInterrupt; -BaseType_t xReturn; - - /* Obtain the number of the currently executing interrupt. */ - __asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) :: "memory" ); - - if( ulCurrentInterrupt == 0 ) - { - xReturn = pdFALSE; - } - else - { - xReturn = pdTRUE; - } - - return xReturn; -} - -/*-----------------------------------------------------------*/ - -portFORCE_INLINE static void vPortRaiseBASEPRI( void ) -{ -uint32_t ulNewBASEPRI; - - __asm volatile - ( - " mov %0, %1 \n" \ - " msr basepri, %0 \n" \ - " isb \n" \ - " dsb \n" \ - :"=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory" - ); -} - -/*-----------------------------------------------------------*/ - -portFORCE_INLINE static uint32_t ulPortRaiseBASEPRI( void ) -{ -uint32_t ulOriginalBASEPRI, ulNewBASEPRI; - - __asm volatile - ( - " mrs %0, basepri \n" \ - " mov %1, %2 \n" \ - " msr basepri, %1 \n" \ - " isb \n" \ - " dsb \n" \ - :"=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; -} -/*-----------------------------------------------------------*/ - -portFORCE_INLINE static void vPortSetBASEPRI( uint32_t ulNewMaskValue ) -{ - __asm volatile - ( - " msr basepri, %0 " :: "r" ( ulNewMaskValue ) : "memory" - ); -} -/*-----------------------------------------------------------*/ - -#define portMEMORY_BARRIER() __asm volatile( "" ::: "memory" ) - -#ifdef __cplusplus -} -#endif - -#endif /* PORTMACRO_H */ - diff --git a/Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c b/Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c deleted file mode 100644 index eaf443f..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c +++ /dev/null @@ -1,492 +0,0 @@ -/* - * FreeRTOS Kernel V10.3.1 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - -/* - * A sample implementation of pvPortMalloc() and vPortFree() that combines - * (coalescences) adjacent memory blocks as they are freed, and in so doing - * limits memory fragmentation. - * - * See heap_1.c, heap_2.c and heap_3.c for alternative implementations, and the - * memory management pages of http://www.FreeRTOS.org for more information. - */ -#include - -/* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining -all the API functions to use the MPU wrappers. That should only be done when -task.h is included from an application file. */ -#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE - -#include "FreeRTOS.h" -#include "task.h" - -#undef MPU_WRAPPERS_INCLUDED_FROM_API_FILE - -#if( configSUPPORT_DYNAMIC_ALLOCATION == 0 ) - #error This file must not be used if configSUPPORT_DYNAMIC_ALLOCATION is 0 -#endif - -/* Block sizes must not get too small. */ -#define heapMINIMUM_BLOCK_SIZE ( ( size_t ) ( xHeapStructSize << 1 ) ) - -/* Assumes 8bit bytes! */ -#define heapBITS_PER_BYTE ( ( size_t ) 8 ) - -/* Allocate the memory for the heap. */ -#if( configAPPLICATION_ALLOCATED_HEAP == 1 ) - /* The application writer has already defined the array used for the RTOS - heap - probably so it can be placed in a special segment or address. */ - extern uint8_t ucHeap[ configTOTAL_HEAP_SIZE ]; -#else - static uint8_t ucHeap[ configTOTAL_HEAP_SIZE ]; -#endif /* configAPPLICATION_ALLOCATED_HEAP */ - -/* Define the linked list structure. This is used to link free blocks in order -of their memory address. */ -typedef struct A_BLOCK_LINK -{ - struct A_BLOCK_LINK *pxNextFreeBlock; /*<< The next free block in the list. */ - size_t xBlockSize; /*<< The size of the free block. */ -} BlockLink_t; - -/*-----------------------------------------------------------*/ - -/* - * Inserts a block of memory that is being freed into the correct position in - * the list of free memory blocks. The block being freed will be merged with - * the block in front it and/or the block behind it if the memory blocks are - * adjacent to each other. - */ -static void prvInsertBlockIntoFreeList( BlockLink_t *pxBlockToInsert ); - -/* - * Called automatically to setup the required heap structures the first time - * pvPortMalloc() is called. - */ -static void prvHeapInit( void ); - -/*-----------------------------------------------------------*/ - -/* The size of the structure placed at the beginning of each allocated memory -block must by correctly byte aligned. */ -static const size_t xHeapStructSize = ( sizeof( BlockLink_t ) + ( ( size_t ) ( portBYTE_ALIGNMENT - 1 ) ) ) & ~( ( size_t ) portBYTE_ALIGNMENT_MASK ); - -/* Create a couple of list links to mark the start and end of the list. */ -static BlockLink_t xStart, *pxEnd = NULL; - -/* Keeps track of the number of calls to allocate and free memory as well as the -number of free bytes remaining, but says nothing about fragmentation. */ -static size_t xFreeBytesRemaining = 0U; -static size_t xMinimumEverFreeBytesRemaining = 0U; -static size_t xNumberOfSuccessfulAllocations = 0; -static size_t xNumberOfSuccessfulFrees = 0; - -/* Gets set to the top bit of an size_t type. When this bit in the xBlockSize -member of an BlockLink_t structure is set then the block belongs to the -application. When the bit is free the block is still part of the free heap -space. */ -static size_t xBlockAllocatedBit = 0; - -/*-----------------------------------------------------------*/ - -void *pvPortMalloc( size_t xWantedSize ) -{ -BlockLink_t *pxBlock, *pxPreviousBlock, *pxNewBlockLink; -void *pvReturn = NULL; - - vTaskSuspendAll(); - { - /* If this is the first call to malloc then the heap will require - initialisation to setup the list of free blocks. */ - if( pxEnd == NULL ) - { - prvHeapInit(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - /* 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 ) - { - /* The wanted size is increased so it can contain a BlockLink_t - structure in addition to the requested amount of bytes. */ - if( xWantedSize > 0 ) - { - xWantedSize += xHeapStructSize; - - /* Ensure that blocks are always aligned to the required number - of bytes. */ - if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 ) - { - /* Byte alignment required. */ - xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) ); - configASSERT( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) == 0 ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - if( ( xWantedSize > 0 ) && ( xWantedSize <= xFreeBytesRemaining ) ) - { - /* Traverse the list from the start (lowest address) block until - one of adequate size is found. */ - pxPreviousBlock = &xStart; - pxBlock = xStart.pxNextFreeBlock; - while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) ) - { - pxPreviousBlock = pxBlock; - pxBlock = pxBlock->pxNextFreeBlock; - } - - /* If the end marker was reached then a block of adequate size - was not found. */ - if( pxBlock != pxEnd ) - { - /* Return the memory space pointed to - jumping over the - BlockLink_t structure at its start. */ - pvReturn = ( void * ) ( ( ( uint8_t * ) pxPreviousBlock->pxNextFreeBlock ) + xHeapStructSize ); - - /* This block is being returned for use so must be taken out - of the list of free blocks. */ - pxPreviousBlock->pxNextFreeBlock = pxBlock->pxNextFreeBlock; - - /* If the block is larger than required it can be split into - two. */ - if( ( pxBlock->xBlockSize - xWantedSize ) > heapMINIMUM_BLOCK_SIZE ) - { - /* 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 ); - configASSERT( ( ( ( size_t ) pxNewBlockLink ) & portBYTE_ALIGNMENT_MASK ) == 0 ); - - /* Calculate the sizes of two blocks split from the - single block. */ - pxNewBlockLink->xBlockSize = pxBlock->xBlockSize - xWantedSize; - pxBlock->xBlockSize = xWantedSize; - - /* Insert the new block into the list of free blocks. */ - prvInsertBlockIntoFreeList( pxNewBlockLink ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - xFreeBytesRemaining -= pxBlock->xBlockSize; - - if( xFreeBytesRemaining < xMinimumEverFreeBytesRemaining ) - { - xMinimumEverFreeBytesRemaining = xFreeBytesRemaining; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - /* The block is being returned - it is allocated and owned - by the application and has no "next" block. */ - pxBlock->xBlockSize |= xBlockAllocatedBit; - pxBlock->pxNextFreeBlock = NULL; - xNumberOfSuccessfulAllocations++; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - traceMALLOC( pvReturn, xWantedSize ); - } - ( void ) xTaskResumeAll(); - - #if( configUSE_MALLOC_FAILED_HOOK == 1 ) - { - if( pvReturn == NULL ) - { - extern void vApplicationMallocFailedHook( void ); - vApplicationMallocFailedHook(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - #endif - - configASSERT( ( ( ( size_t ) pvReturn ) & ( size_t ) portBYTE_ALIGNMENT_MASK ) == 0 ); - return pvReturn; -} -/*-----------------------------------------------------------*/ - -void vPortFree( void *pv ) -{ -uint8_t *puc = ( uint8_t * ) pv; -BlockLink_t *pxLink; - - if( pv != NULL ) - { - /* The memory being freed will have an BlockLink_t structure immediately - before it. */ - puc -= xHeapStructSize; - - /* This casting is to keep the compiler from issuing warnings. */ - pxLink = ( void * ) puc; - - /* Check the block is actually allocated. */ - configASSERT( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 ); - configASSERT( pxLink->pxNextFreeBlock == NULL ); - - if( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 ) - { - if( pxLink->pxNextFreeBlock == NULL ) - { - /* The block is being returned to the heap - it is no longer - allocated. */ - pxLink->xBlockSize &= ~xBlockAllocatedBit; - - vTaskSuspendAll(); - { - /* Add this block to the list of free blocks. */ - xFreeBytesRemaining += pxLink->xBlockSize; - traceFREE( pv, pxLink->xBlockSize ); - prvInsertBlockIntoFreeList( ( ( BlockLink_t * ) pxLink ) ); - xNumberOfSuccessfulFrees++; - } - ( void ) xTaskResumeAll(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } -} -/*-----------------------------------------------------------*/ - -size_t xPortGetFreeHeapSize( void ) -{ - return xFreeBytesRemaining; -} -/*-----------------------------------------------------------*/ - -size_t xPortGetMinimumEverFreeHeapSize( void ) -{ - return xMinimumEverFreeBytesRemaining; -} -/*-----------------------------------------------------------*/ - -void vPortInitialiseBlocks( void ) -{ - /* This just exists to keep the linker quiet. */ -} -/*-----------------------------------------------------------*/ - -static void prvHeapInit( void ) -{ -BlockLink_t *pxFirstFreeBlock; -uint8_t *pucAlignedHeap; -size_t uxAddress; -size_t xTotalHeapSize = configTOTAL_HEAP_SIZE; - - /* Ensure the heap starts on a correctly aligned boundary. */ - uxAddress = ( size_t ) ucHeap; - - if( ( uxAddress & portBYTE_ALIGNMENT_MASK ) != 0 ) - { - uxAddress += ( portBYTE_ALIGNMENT - 1 ); - uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK ); - xTotalHeapSize -= uxAddress - ( size_t ) ucHeap; - } - - pucAlignedHeap = ( uint8_t * ) uxAddress; - - /* 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; - xStart.xBlockSize = ( size_t ) 0; - - /* 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; - uxAddress -= xHeapStructSize; - uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK ); - pxEnd = ( void * ) uxAddress; - pxEnd->xBlockSize = 0; - pxEnd->pxNextFreeBlock = NULL; - - /* 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; - pxFirstFreeBlock->xBlockSize = uxAddress - ( size_t ) pxFirstFreeBlock; - pxFirstFreeBlock->pxNextFreeBlock = pxEnd; - - /* Only one block exists - and it covers the entire usable heap space. */ - xMinimumEverFreeBytesRemaining = pxFirstFreeBlock->xBlockSize; - xFreeBytesRemaining = pxFirstFreeBlock->xBlockSize; - - /* Work out the position of the top bit in a size_t variable. */ - xBlockAllocatedBit = ( ( size_t ) 1 ) << ( ( sizeof( size_t ) * heapBITS_PER_BYTE ) - 1 ); -} -/*-----------------------------------------------------------*/ - -static void prvInsertBlockIntoFreeList( BlockLink_t *pxBlockToInsert ) -{ -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 ) - { - /* 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; - if( ( puc + pxIterator->xBlockSize ) == ( uint8_t * ) pxBlockToInsert ) - { - pxIterator->xBlockSize += pxBlockToInsert->xBlockSize; - pxBlockToInsert = pxIterator; - } - else - { - 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; - if( ( puc + pxBlockToInsert->xBlockSize ) == ( uint8_t * ) pxIterator->pxNextFreeBlock ) - { - if( pxIterator->pxNextFreeBlock != pxEnd ) - { - /* Form one big block from the two blocks. */ - pxBlockToInsert->xBlockSize += pxIterator->pxNextFreeBlock->xBlockSize; - pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock->pxNextFreeBlock; - } - else - { - pxBlockToInsert->pxNextFreeBlock = pxEnd; - } - } - else - { - pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock; - } - - /* 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 ) - { - pxIterator->pxNextFreeBlock = pxBlockToInsert; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } -} -/*-----------------------------------------------------------*/ - -void vPortGetHeapStats( HeapStats_t *pxHeapStats ) -{ -BlockLink_t *pxBlock; -size_t xBlocks = 0, xMaxSize = 0, xMinSize = portMAX_DELAY; /* portMAX_DELAY used as a portable way of getting the maximum value. */ - - vTaskSuspendAll(); - { - pxBlock = xStart.pxNextFreeBlock; - - /* pxBlock will be NULL if the heap has not been initialised. The heap - is initialised automatically when the first allocation is made. */ - if( pxBlock != NULL ) - { - do - { - /* Increment the number of blocks and record the largest block seen - so far. */ - xBlocks++; - - if( pxBlock->xBlockSize > xMaxSize ) - { - xMaxSize = pxBlock->xBlockSize; - } - - if( pxBlock->xBlockSize < xMinSize ) - { - xMinSize = pxBlock->xBlockSize; - } - - /* Move to the next block in the chain until the last block is - reached. */ - pxBlock = pxBlock->pxNextFreeBlock; - } while( pxBlock != pxEnd ); - } - } - xTaskResumeAll(); - - pxHeapStats->xSizeOfLargestFreeBlockInBytes = xMaxSize; - pxHeapStats->xSizeOfSmallestFreeBlockInBytes = xMinSize; - pxHeapStats->xNumberOfFreeBlocks = xBlocks; - - taskENTER_CRITICAL(); - { - pxHeapStats->xAvailableHeapSpaceInBytes = xFreeBytesRemaining; - pxHeapStats->xNumberOfSuccessfulAllocations = xNumberOfSuccessfulAllocations; - pxHeapStats->xNumberOfSuccessfulFrees = xNumberOfSuccessfulFrees; - pxHeapStats->xMinimumEverFreeBytesRemaining = xMinimumEverFreeBytesRemaining; - } - taskEXIT_CRITICAL(); -} - diff --git a/Middlewares/Third_Party/FreeRTOS/Source/queue.c b/Middlewares/Third_Party/FreeRTOS/Source/queue.c deleted file mode 100644 index b3203b8..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/queue.c +++ /dev/null @@ -1,2945 +0,0 @@ -/* - * FreeRTOS Kernel V10.3.1 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - -#include -#include - -/* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining -all the API functions to use the MPU wrappers. That should only be done when -task.h is included from an application file. */ -#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE - -#include "FreeRTOS.h" -#include "task.h" -#include "queue.h" - -#if ( configUSE_CO_ROUTINES == 1 ) - #include "croutine.h" -#endif - -/* Lint e9021, e961 and e750 are suppressed as a MISRA exception justified -because the MPU ports require MPU_WRAPPERS_INCLUDED_FROM_API_FILE to be defined -for the header files above, but not in this file, in order to generate the -correct privileged Vs unprivileged linkage and placement. */ -#undef MPU_WRAPPERS_INCLUDED_FROM_API_FILE /*lint !e961 !e750 !e9021. */ - - -/* Constants used with the cRxLock and cTxLock structure members. */ -#define queueUNLOCKED ( ( int8_t ) -1 ) -#define queueLOCKED_UNMODIFIED ( ( int8_t ) 0 ) - -/* When the Queue_t structure is used to represent a base queue its pcHead and -pcTail members are used as pointers into the queue storage area. When the -Queue_t structure is used to represent a mutex pcHead and pcTail pointers are -not necessary, and the pcHead pointer is set to NULL to indicate that the -structure instead holds a pointer to the mutex holder (if any). Map alternative -names to the pcHead and structure member to ensure the readability of the code -is maintained. The QueuePointers_t and SemaphoreData_t types are used to form -a union as their usage is mutually exclusive dependent on what the queue is -being used for. */ -#define uxQueueType pcHead -#define queueQUEUE_IS_MUTEX NULL - -typedef struct QueuePointers -{ - int8_t *pcTail; /*< Points to the byte at the end of the queue storage area. Once more byte is allocated than necessary to store the queue items, this is used as a marker. */ - int8_t *pcReadFrom; /*< Points to the last place that a queued item was read from when the structure is used as a queue. */ -} QueuePointers_t; - -typedef struct SemaphoreData -{ - TaskHandle_t xMutexHolder; /*< The handle of the task that holds the mutex. */ - UBaseType_t uxRecursiveCallCount;/*< Maintains a count of the number of times a recursive mutex has been recursively 'taken' when the structure is used as a mutex. */ -} SemaphoreData_t; - -/* Semaphores do not actually store or copy data, so have an item size of -zero. */ -#define queueSEMAPHORE_QUEUE_ITEM_LENGTH ( ( UBaseType_t ) 0 ) -#define queueMUTEX_GIVE_BLOCK_TIME ( ( TickType_t ) 0U ) - -#if( configUSE_PREEMPTION == 0 ) - /* If the cooperative scheduler is being used then a yield should not be - performed just because a higher priority task has been woken. */ - #define queueYIELD_IF_USING_PREEMPTION() -#else - #define queueYIELD_IF_USING_PREEMPTION() portYIELD_WITHIN_API() -#endif - -/* - * Definition of the queue used by the scheduler. - * Items are queued by copy, not reference. See the following link for the - * rationale: https://www.freertos.org/Embedded-RTOS-Queues.html - */ -typedef struct QueueDefinition /* The old naming convention is used to prevent breaking kernel aware debuggers. */ -{ - int8_t *pcHead; /*< Points to the beginning of the queue storage area. */ - int8_t *pcWriteTo; /*< Points to the free next place in the storage area. */ - - union - { - QueuePointers_t xQueue; /*< Data required exclusively when this structure is used as a queue. */ - SemaphoreData_t xSemaphore; /*< Data required exclusively when this structure is used as a semaphore. */ - } u; - - List_t xTasksWaitingToSend; /*< List of tasks that are blocked waiting to post onto this queue. Stored in priority order. */ - List_t xTasksWaitingToReceive; /*< List of tasks that are blocked waiting to read from this queue. Stored in priority order. */ - - volatile UBaseType_t uxMessagesWaiting;/*< The number of items currently in the queue. */ - UBaseType_t uxLength; /*< The length of the queue defined as the number of items it will hold, not the number of bytes. */ - UBaseType_t uxItemSize; /*< The size of each items that the queue will hold. */ - - volatile int8_t cRxLock; /*< Stores the number of items received from the queue (removed from the queue) while the queue was locked. Set to queueUNLOCKED when the queue is not locked. */ - volatile int8_t cTxLock; /*< Stores the number of items transmitted to the queue (added to the queue) while the queue was locked. Set to queueUNLOCKED when the queue is not locked. */ - - #if( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) - uint8_t ucStaticallyAllocated; /*< Set to pdTRUE if the memory used by the queue was statically allocated to ensure no attempt is made to free the memory. */ - #endif - - #if ( configUSE_QUEUE_SETS == 1 ) - struct QueueDefinition *pxQueueSetContainer; - #endif - - #if ( configUSE_TRACE_FACILITY == 1 ) - UBaseType_t uxQueueNumber; - uint8_t ucQueueType; - #endif - -} xQUEUE; - -/* The old xQUEUE name is maintained above then typedefed to the new Queue_t -name below to enable the use of older kernel aware debuggers. */ -typedef xQUEUE Queue_t; - -/*-----------------------------------------------------------*/ - -/* - * The queue registry is just a means for kernel aware debuggers to locate - * queue structures. It has no other purpose so is an optional component. - */ -#if ( configQUEUE_REGISTRY_SIZE > 0 ) - - /* The type stored within the queue registry array. This allows a name - to be assigned to each queue making kernel aware debugging a little - more user friendly. */ - typedef struct QUEUE_REGISTRY_ITEM - { - const char *pcQueueName; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ - QueueHandle_t xHandle; - } xQueueRegistryItem; - - /* The old xQueueRegistryItem name is maintained above then typedefed to the - new xQueueRegistryItem name below to enable the use of older kernel aware - debuggers. */ - typedef xQueueRegistryItem QueueRegistryItem_t; - - /* The queue registry is simply an array of QueueRegistryItem_t structures. - The pcQueueName member of a structure being NULL is indicative of the - array position being vacant. */ - PRIVILEGED_DATA QueueRegistryItem_t xQueueRegistry[ configQUEUE_REGISTRY_SIZE ]; - -#endif /* configQUEUE_REGISTRY_SIZE */ - -/* - * Unlocks a queue locked by a call to prvLockQueue. Locking a queue does not - * prevent an ISR from adding or removing items to the queue, but does prevent - * an ISR from removing tasks from the queue event lists. If an ISR finds a - * queue is locked it will instead increment the appropriate queue lock count - * to indicate that a task may require unblocking. When the queue in unlocked - * these lock counts are inspected, and the appropriate action taken. - */ -static void prvUnlockQueue( Queue_t * const pxQueue ) PRIVILEGED_FUNCTION; - -/* - * Uses a critical section to determine if there is any data in a queue. - * - * @return pdTRUE if the queue contains no items, otherwise pdFALSE. - */ -static BaseType_t prvIsQueueEmpty( const Queue_t *pxQueue ) PRIVILEGED_FUNCTION; - -/* - * Uses a critical section to determine if there is any space in a queue. - * - * @return pdTRUE if there is no space, otherwise pdFALSE; - */ -static BaseType_t prvIsQueueFull( const Queue_t *pxQueue ) PRIVILEGED_FUNCTION; - -/* - * Copies an item into the queue, either at the front of the queue or the - * back of the queue. - */ -static BaseType_t prvCopyDataToQueue( Queue_t * const pxQueue, const void *pvItemToQueue, const BaseType_t xPosition ) PRIVILEGED_FUNCTION; - -/* - * Copies an item out of a queue. - */ -static void prvCopyDataFromQueue( Queue_t * const pxQueue, void * const pvBuffer ) PRIVILEGED_FUNCTION; - -#if ( configUSE_QUEUE_SETS == 1 ) - /* - * Checks to see if a queue is a member of a queue set, and if so, notifies - * the queue set that the queue contains data. - */ - static BaseType_t prvNotifyQueueSetContainer( const Queue_t * const pxQueue ) PRIVILEGED_FUNCTION; -#endif - -/* - * Called after a Queue_t structure has been allocated either statically or - * dynamically to fill in the structure's members. - */ -static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, const uint8_t ucQueueType, Queue_t *pxNewQueue ) PRIVILEGED_FUNCTION; - -/* - * Mutexes are a special type of queue. When a mutex is created, first the - * queue is created, then prvInitialiseMutex() is called to configure the queue - * as a mutex. - */ -#if( configUSE_MUTEXES == 1 ) - static void prvInitialiseMutex( Queue_t *pxNewQueue ) PRIVILEGED_FUNCTION; -#endif - -#if( configUSE_MUTEXES == 1 ) - /* - * If a task waiting for a mutex causes the mutex holder to inherit a - * 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. This function returns - * that priority. - */ - static UBaseType_t prvGetDisinheritPriorityAfterTimeout( const Queue_t * const pxQueue ) PRIVILEGED_FUNCTION; -#endif -/*-----------------------------------------------------------*/ - -/* - * Macro to mark a queue as locked. Locking a queue prevents an ISR from - * accessing the queue event lists. - */ -#define prvLockQueue( pxQueue ) \ - taskENTER_CRITICAL(); \ - { \ - if( ( pxQueue )->cRxLock == queueUNLOCKED ) \ - { \ - ( pxQueue )->cRxLock = queueLOCKED_UNMODIFIED; \ - } \ - if( ( pxQueue )->cTxLock == queueUNLOCKED ) \ - { \ - ( pxQueue )->cTxLock = queueLOCKED_UNMODIFIED; \ - } \ - } \ - taskEXIT_CRITICAL() -/*-----------------------------------------------------------*/ - -BaseType_t xQueueGenericReset( QueueHandle_t xQueue, BaseType_t xNewQueue ) -{ -Queue_t * const pxQueue = xQueue; - - configASSERT( pxQueue ); - - taskENTER_CRITICAL(); - { - pxQueue->u.xQueue.pcTail = pxQueue->pcHead + ( pxQueue->uxLength * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */ - pxQueue->uxMessagesWaiting = ( UBaseType_t ) 0U; - pxQueue->pcWriteTo = pxQueue->pcHead; - 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. */ - pxQueue->cRxLock = queueUNLOCKED; - pxQueue->cTxLock = queueUNLOCKED; - - if( xNewQueue == pdFALSE ) - { - /* 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 ) - { - if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE ) - { - queueYIELD_IF_USING_PREEMPTION(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - /* Ensure the event queues start in the correct state. */ - vListInitialise( &( pxQueue->xTasksWaitingToSend ) ); - vListInitialise( &( pxQueue->xTasksWaitingToReceive ) ); - } - } - taskEXIT_CRITICAL(); - - /* A value is returned for calling semantic consistency with previous - versions. */ - return pdPASS; -} -/*-----------------------------------------------------------*/ - -#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 ) - { - Queue_t *pxNewQueue; - - configASSERT( uxQueueLength > ( UBaseType_t ) 0 ); - - /* The StaticQueue_t structure and the queue storage area must be - supplied. */ - configASSERT( pxStaticQueue != NULL ); - - /* 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 ) ) ); - configASSERT( !( ( pucQueueStorage == NULL ) && ( uxItemSize != 0 ) ) ); - - #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 ); - configASSERT( xSize == sizeof( Queue_t ) ); - ( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */ - } - #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. */ - - if( pxNewQueue != NULL ) - { - #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; - } - #endif /* configSUPPORT_DYNAMIC_ALLOCATION */ - - prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue ); - } - else - { - traceQUEUE_CREATE_FAILED( ucQueueType ); - mtCOVERAGE_TEST_MARKER(); - } - - return pxNewQueue; - } - -#endif /* configSUPPORT_STATIC_ALLOCATION */ -/*-----------------------------------------------------------*/ - -#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) - - QueueHandle_t xQueueGenericCreate( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, const uint8_t ucQueueType ) - { - Queue_t *pxNewQueue; - size_t xQueueSizeInBytes; - uint8_t *pucQueueStorage; - - configASSERT( uxQueueLength > ( UBaseType_t ) 0 ); - - /* Allocate enough space to hold the maximum number of items that - can be in the queue at any time. It is valid for uxItemSize to be - zero in the case the queue is used as a semaphore. */ - xQueueSizeInBytes = ( size_t ) ( uxQueueLength * uxItemSize ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */ - - /* Allocate the queue and storage area. Justification for MISRA - deviation as follows: pvPortMalloc() always ensures returned memory - blocks are aligned per the requirements of the MCU stack. In this case - pvPortMalloc() must return a pointer that is guaranteed to meet the - 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. */ - - if( pxNewQueue != NULL ) - { - /* Jump past the queue structure to find the location of the queue - storage area. */ - pucQueueStorage = ( uint8_t * ) pxNewQueue; - pucQueueStorage += sizeof( Queue_t ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */ - - #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; - } - #endif /* configSUPPORT_STATIC_ALLOCATION */ - - prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue ); - } - else - { - traceQUEUE_CREATE_FAILED( ucQueueType ); - mtCOVERAGE_TEST_MARKER(); - } - - return pxNewQueue; - } - -#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 ) -{ - /* Remove compiler warnings about unused parameters should - configUSE_TRACE_FACILITY not be set to 1. */ - ( void ) ucQueueType; - - if( uxItemSize == ( UBaseType_t ) 0 ) - { - /* 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; - } - else - { - /* Set the head to the start of the queue storage area. */ - pxNewQueue->pcHead = ( int8_t * ) pucQueueStorage; - } - - /* Initialise the queue members as described where the queue type is - defined. */ - pxNewQueue->uxLength = uxQueueLength; - pxNewQueue->uxItemSize = uxItemSize; - ( void ) xQueueGenericReset( pxNewQueue, pdTRUE ); - - #if ( configUSE_TRACE_FACILITY == 1 ) - { - pxNewQueue->ucQueueType = ucQueueType; - } - #endif /* configUSE_TRACE_FACILITY */ - - #if( configUSE_QUEUE_SETS == 1 ) - { - pxNewQueue->pxQueueSetContainer = NULL; - } - #endif /* configUSE_QUEUE_SETS */ - - traceQUEUE_CREATE( pxNewQueue ); -} -/*-----------------------------------------------------------*/ - -#if( configUSE_MUTEXES == 1 ) - - static void prvInitialiseMutex( Queue_t *pxNewQueue ) - { - if( pxNewQueue != NULL ) - { - /* 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; - pxNewQueue->uxQueueType = queueQUEUE_IS_MUTEX; - - /* In case this is a recursive mutex. */ - pxNewQueue->u.xSemaphore.uxRecursiveCallCount = 0; - - traceCREATE_MUTEX( pxNewQueue ); - - /* Start with the semaphore in the expected state. */ - ( void ) xQueueGenericSend( pxNewQueue, NULL, ( TickType_t ) 0U, queueSEND_TO_BACK ); - } - else - { - traceCREATE_MUTEX_FAILED(); - } - } - -#endif /* configUSE_MUTEXES */ -/*-----------------------------------------------------------*/ - -#if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) - - QueueHandle_t xQueueCreateMutex( const uint8_t ucQueueType ) - { - QueueHandle_t xNewQueue; - const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0; - - xNewQueue = xQueueGenericCreate( uxMutexLength, uxMutexSize, ucQueueType ); - prvInitialiseMutex( ( Queue_t * ) xNewQueue ); - - return xNewQueue; - } - -#endif /* configUSE_MUTEXES */ -/*-----------------------------------------------------------*/ - -#if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) ) - - QueueHandle_t xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t *pxStaticQueue ) - { - QueueHandle_t xNewQueue; - const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0; - - /* Prevent compiler warnings about unused parameters if - configUSE_TRACE_FACILITY does not equal 1. */ - ( void ) ucQueueType; - - xNewQueue = xQueueGenericCreateStatic( uxMutexLength, uxMutexSize, NULL, pxStaticQueue, ucQueueType ); - prvInitialiseMutex( ( Queue_t * ) xNewQueue ); - - return xNewQueue; - } - -#endif /* configUSE_MUTEXES */ -/*-----------------------------------------------------------*/ - -#if ( ( configUSE_MUTEXES == 1 ) && ( INCLUDE_xSemaphoreGetMutexHolder == 1 ) ) - - TaskHandle_t xQueueGetMutexHolder( QueueHandle_t xSemaphore ) - { - TaskHandle_t pxReturn; - Queue_t * const pxSemaphore = ( Queue_t * ) xSemaphore; - - /* This function is called by xSemaphoreGetMutexHolder(), and should not - be called directly. Note: This is a good way of determining if the - calling task is the mutex holder, but not a good way of determining the - identity of the mutex holder, as the holder may change between the - following critical section exiting and the function returning. */ - taskENTER_CRITICAL(); - { - if( pxSemaphore->uxQueueType == queueQUEUE_IS_MUTEX ) - { - pxReturn = pxSemaphore->u.xSemaphore.xMutexHolder; - } - else - { - pxReturn = NULL; - } - } - taskEXIT_CRITICAL(); - - return pxReturn; - } /*lint !e818 xSemaphore cannot be a pointer to const because it is a typedef. */ - -#endif -/*-----------------------------------------------------------*/ - -#if ( ( configUSE_MUTEXES == 1 ) && ( INCLUDE_xSemaphoreGetMutexHolder == 1 ) ) - - TaskHandle_t xQueueGetMutexHolderFromISR( QueueHandle_t xSemaphore ) - { - TaskHandle_t pxReturn; - - configASSERT( xSemaphore ); - - /* Mutexes cannot be used in interrupt service routines, so the mutex - holder should not change in an ISR, and therefore a critical section is - not required here. */ - if( ( ( Queue_t * ) xSemaphore )->uxQueueType == queueQUEUE_IS_MUTEX ) - { - pxReturn = ( ( Queue_t * ) xSemaphore )->u.xSemaphore.xMutexHolder; - } - else - { - pxReturn = NULL; - } - - return pxReturn; - } /*lint !e818 xSemaphore cannot be a pointer to const because it is a typedef. */ - -#endif -/*-----------------------------------------------------------*/ - -#if ( configUSE_RECURSIVE_MUTEXES == 1 ) - - BaseType_t xQueueGiveMutexRecursive( QueueHandle_t xMutex ) - { - BaseType_t xReturn; - Queue_t * const pxMutex = ( Queue_t * ) xMutex; - - configASSERT( pxMutex ); - - /* If this is the task that holds the mutex then xMutexHolder will not - change outside of this task. If this task does not hold the mutex then - pxMutexHolder can never coincidentally equal the tasks handle, and as - this is the only condition we are interested in it does not matter if - pxMutexHolder is accessed simultaneously by another task. Therefore no - mutual exclusion is required to test the pxMutexHolder variable. */ - if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() ) - { - traceGIVE_MUTEX_RECURSIVE( pxMutex ); - - /* uxRecursiveCallCount cannot be zero if xMutexHolder is equal to - the task handle, therefore no underflow check is required. Also, - uxRecursiveCallCount is only modified by the mutex holder, and as - there can only be one, no mutual exclusion is required to modify the - uxRecursiveCallCount member. */ - ( pxMutex->u.xSemaphore.uxRecursiveCallCount )--; - - /* Has the recursive call count unwound to 0? */ - if( pxMutex->u.xSemaphore.uxRecursiveCallCount == ( UBaseType_t ) 0 ) - { - /* Return the mutex. This will automatically unblock any other - task that might be waiting to access the mutex. */ - ( void ) xQueueGenericSend( pxMutex, NULL, queueMUTEX_GIVE_BLOCK_TIME, queueSEND_TO_BACK ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - xReturn = pdPASS; - } - else - { - /* The mutex cannot be given because the calling task is not the - holder. */ - xReturn = pdFAIL; - - traceGIVE_MUTEX_RECURSIVE_FAILED( pxMutex ); - } - - return xReturn; - } - -#endif /* configUSE_RECURSIVE_MUTEXES */ -/*-----------------------------------------------------------*/ - -#if ( configUSE_RECURSIVE_MUTEXES == 1 ) - - BaseType_t xQueueTakeMutexRecursive( QueueHandle_t xMutex, TickType_t xTicksToWait ) - { - BaseType_t xReturn; - Queue_t * const pxMutex = ( Queue_t * ) xMutex; - - configASSERT( pxMutex ); - - /* Comments regarding mutual exclusion as per those within - xQueueGiveMutexRecursive(). */ - - traceTAKE_MUTEX_RECURSIVE( pxMutex ); - - if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() ) - { - ( pxMutex->u.xSemaphore.uxRecursiveCallCount )++; - xReturn = pdPASS; - } - else - { - xReturn = xQueueSemaphoreTake( pxMutex, xTicksToWait ); - - /* pdPASS will only be returned if the mutex was successfully - obtained. The calling task may have entered the Blocked state - before reaching here. */ - if( xReturn != pdFAIL ) - { - ( pxMutex->u.xSemaphore.uxRecursiveCallCount )++; - } - else - { - traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex ); - } - } - - return xReturn; - } - -#endif /* configUSE_RECURSIVE_MUTEXES */ -/*-----------------------------------------------------------*/ - -#if( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) ) - - QueueHandle_t xQueueCreateCountingSemaphoreStatic( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount, StaticQueue_t *pxStaticQueue ) - { - QueueHandle_t xHandle; - - configASSERT( uxMaxCount != 0 ); - configASSERT( uxInitialCount <= uxMaxCount ); - - xHandle = xQueueGenericCreateStatic( uxMaxCount, queueSEMAPHORE_QUEUE_ITEM_LENGTH, NULL, pxStaticQueue, queueQUEUE_TYPE_COUNTING_SEMAPHORE ); - - if( xHandle != NULL ) - { - ( ( Queue_t * ) xHandle )->uxMessagesWaiting = uxInitialCount; - - traceCREATE_COUNTING_SEMAPHORE(); - } - else - { - traceCREATE_COUNTING_SEMAPHORE_FAILED(); - } - - return xHandle; - } - -#endif /* ( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) */ -/*-----------------------------------------------------------*/ - -#if( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) - - QueueHandle_t xQueueCreateCountingSemaphore( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount ) - { - QueueHandle_t xHandle; - - configASSERT( uxMaxCount != 0 ); - configASSERT( uxInitialCount <= uxMaxCount ); - - xHandle = xQueueGenericCreate( uxMaxCount, queueSEMAPHORE_QUEUE_ITEM_LENGTH, queueQUEUE_TYPE_COUNTING_SEMAPHORE ); - - if( xHandle != NULL ) - { - ( ( Queue_t * ) xHandle )->uxMessagesWaiting = uxInitialCount; - - traceCREATE_COUNTING_SEMAPHORE(); - } - else - { - traceCREATE_COUNTING_SEMAPHORE_FAILED(); - } - - return xHandle; - } - -#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 ) -{ -BaseType_t xEntryTimeSet = pdFALSE, xYieldRequired; -TimeOut_t xTimeOut; -Queue_t * const pxQueue = xQueue; - - configASSERT( pxQueue ); - configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) ); - configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) ); - #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) - { - configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) ); - } - #endif - - - /*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(); - { - /* 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 ) ) - { - traceQUEUE_SEND( pxQueue ); - - #if ( configUSE_QUEUE_SETS == 1 ) - { - const UBaseType_t uxPreviousMessagesWaiting = pxQueue->uxMessagesWaiting; - - xYieldRequired = prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition ); - - if( pxQueue->pxQueueSetContainer != NULL ) - { - if( ( xCopyPosition == queueOVERWRITE ) && ( uxPreviousMessagesWaiting != ( UBaseType_t ) 0 ) ) - { - /* Do not notify the queue set as an existing item - was overwritten in the queue so the number of items - in the queue has not changed. */ - mtCOVERAGE_TEST_MARKER(); - } - else if( prvNotifyQueueSetContainer( pxQueue ) != pdFALSE ) - { - /* The queue is a member of a queue set, and posting - to the queue set caused a higher priority task to - unblock. A context switch is required. */ - queueYIELD_IF_USING_PREEMPTION(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - /* If there was a task waiting for data to arrive on the - queue then unblock it now. */ - if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE ) - { - if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) - { - /* 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(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else if( xYieldRequired != pdFALSE ) - { - /* 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(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - } - #else /* configUSE_QUEUE_SETS */ - { - xYieldRequired = prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition ); - - /* If there was a task waiting for data to arrive on the - queue then unblock it now. */ - if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE ) - { - if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) - { - /* 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(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else if( xYieldRequired != pdFALSE ) - { - /* 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(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - #endif /* configUSE_QUEUE_SETS */ - - taskEXIT_CRITICAL(); - return pdPASS; - } - else - { - if( xTicksToWait == ( TickType_t ) 0 ) - { - /* The queue was full and no block time is specified (or - the block time has expired) so leave now. */ - taskEXIT_CRITICAL(); - - /* Return to the original privilege level before exiting - the function. */ - traceQUEUE_SEND_FAILED( pxQueue ); - return errQUEUE_FULL; - } - else if( xEntryTimeSet == pdFALSE ) - { - /* The queue was full and a block time was specified so - configure the timeout structure. */ - vTaskInternalSetTimeOutState( &xTimeOut ); - xEntryTimeSet = pdTRUE; - } - else - { - /* Entry time was already set. */ - mtCOVERAGE_TEST_MARKER(); - } - } - } - taskEXIT_CRITICAL(); - - /* Interrupts and other tasks can send to and receive from the queue - now the critical section has been exited. */ - - vTaskSuspendAll(); - prvLockQueue( pxQueue ); - - /* Update the timeout state to see if it has expired yet. */ - if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE ) - { - if( prvIsQueueFull( pxQueue ) != pdFALSE ) - { - traceBLOCKING_ON_QUEUE_SEND( pxQueue ); - vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToSend ), xTicksToWait ); - - /* 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 ); - - /* 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 ) - { - portYIELD_WITHIN_API(); - } - } - else - { - /* Try again. */ - prvUnlockQueue( pxQueue ); - ( void ) xTaskResumeAll(); - } - } - else - { - /* The timeout has expired. */ - prvUnlockQueue( pxQueue ); - ( void ) xTaskResumeAll(); - - traceQUEUE_SEND_FAILED( pxQueue ); - return errQUEUE_FULL; - } - } /*lint -restore */ -} -/*-----------------------------------------------------------*/ - -BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue, const void * const pvItemToQueue, BaseType_t * const pxHigherPriorityTaskWoken, const BaseType_t xCopyPosition ) -{ -BaseType_t xReturn; -UBaseType_t uxSavedInterruptStatus; -Queue_t * const pxQueue = xQueue; - - configASSERT( pxQueue ); - configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) ); - configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) ); - - /* RTOS ports that support interrupt nesting have the concept of a maximum - system call (or maximum API call) interrupt priority. Interrupts that are - above the maximum system call priority are kept permanently enabled, even - when the RTOS kernel is in a critical section, but cannot make any calls to - FreeRTOS API functions. If configASSERT() is defined in FreeRTOSConfig.h - then portASSERT_IF_INTERRUPT_PRIORITY_INVALID() will result in an assertion - failure if a FreeRTOS API function is called from an interrupt that has been - assigned a priority above the configured maximum system call priority. - Only FreeRTOS functions that end in FromISR can be called from interrupts - 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(); - - /* 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(); - { - if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) ) - { - const int8_t cTxLock = pxQueue->cTxLock; - const UBaseType_t uxPreviousMessagesWaiting = pxQueue->uxMessagesWaiting; - - traceQUEUE_SEND_FROM_ISR( pxQueue ); - - /* 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 ); - - /* The event list is not altered if the queue is locked. This will - be done when the queue is unlocked later. */ - if( cTxLock == queueUNLOCKED ) - { - #if ( configUSE_QUEUE_SETS == 1 ) - { - if( pxQueue->pxQueueSetContainer != NULL ) - { - if( ( xCopyPosition == queueOVERWRITE ) && ( uxPreviousMessagesWaiting != ( UBaseType_t ) 0 ) ) - { - /* Do not notify the queue set as an existing item - was overwritten in the queue so the number of items - in the queue has not changed. */ - mtCOVERAGE_TEST_MARKER(); - } - else if( prvNotifyQueueSetContainer( pxQueue ) != pdFALSE ) - { - /* The queue is a member of a queue set, and posting - to the queue set caused a higher priority task to - unblock. A context switch is required. */ - if( pxHigherPriorityTaskWoken != NULL ) - { - *pxHigherPriorityTaskWoken = pdTRUE; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE ) - { - if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) - { - /* The task waiting has a higher priority so - record that a context switch is required. */ - if( pxHigherPriorityTaskWoken != NULL ) - { - *pxHigherPriorityTaskWoken = pdTRUE; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - } - #else /* configUSE_QUEUE_SETS */ - { - if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE ) - { - if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) - { - /* The task waiting has a higher priority so record that a - context switch is required. */ - if( pxHigherPriorityTaskWoken != NULL ) - { - *pxHigherPriorityTaskWoken = pdTRUE; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - /* Not used in this path. */ - ( void ) uxPreviousMessagesWaiting; - } - #endif /* configUSE_QUEUE_SETS */ - } - 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 ); - } - - xReturn = pdPASS; - } - else - { - traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue ); - xReturn = errQUEUE_FULL; - } - } - portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); - - return xReturn; -} -/*-----------------------------------------------------------*/ - -BaseType_t xQueueGiveFromISR( QueueHandle_t xQueue, BaseType_t * const pxHigherPriorityTaskWoken ) -{ -BaseType_t xReturn; -UBaseType_t uxSavedInterruptStatus; -Queue_t * const pxQueue = xQueue; - - /* Similar to xQueueGenericSendFromISR() but used with semaphores where the - 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 ); - - /* xQueueGenericSendFromISR() should be used instead of xQueueGiveFromISR() - if the item size is not 0. */ - configASSERT( pxQueue->uxItemSize == 0 ); - - /* 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 ) ) ); - - /* RTOS ports that support interrupt nesting have the concept of a maximum - system call (or maximum API call) interrupt priority. Interrupts that are - above the maximum system call priority are kept permanently enabled, even - when the RTOS kernel is in a critical section, but cannot make any calls to - FreeRTOS API functions. If configASSERT() is defined in FreeRTOSConfig.h - then portASSERT_IF_INTERRUPT_PRIORITY_INVALID() will result in an assertion - failure if a FreeRTOS API function is called from an interrupt that has been - assigned a priority above the configured maximum system call priority. - Only FreeRTOS functions that end in FromISR can be called from interrupts - 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(); - - uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR(); - { - const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting; - - /* 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 ) - { - const int8_t cTxLock = pxQueue->cTxLock; - - traceQUEUE_SEND_FROM_ISR( pxQueue ); - - /* A task can only have an inherited priority if it is a mutex - 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; - - /* The event list is not altered if the queue is locked. This will - be done when the queue is unlocked later. */ - if( cTxLock == queueUNLOCKED ) - { - #if ( configUSE_QUEUE_SETS == 1 ) - { - if( pxQueue->pxQueueSetContainer != NULL ) - { - if( prvNotifyQueueSetContainer( pxQueue ) != pdFALSE ) - { - /* The semaphore is a member of a queue set, and - posting to the queue set caused a higher priority - task to unblock. A context switch is required. */ - if( pxHigherPriorityTaskWoken != NULL ) - { - *pxHigherPriorityTaskWoken = pdTRUE; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE ) - { - if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) - { - /* The task waiting has a higher priority so - record that a context switch is required. */ - if( pxHigherPriorityTaskWoken != NULL ) - { - *pxHigherPriorityTaskWoken = pdTRUE; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - } - #else /* configUSE_QUEUE_SETS */ - { - if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE ) - { - if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) - { - /* The task waiting has a higher priority so record that a - context switch is required. */ - if( pxHigherPriorityTaskWoken != NULL ) - { - *pxHigherPriorityTaskWoken = pdTRUE; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - #endif /* configUSE_QUEUE_SETS */ - } - 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 ); - } - - xReturn = pdPASS; - } - else - { - traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue ); - xReturn = errQUEUE_FULL; - } - } - portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); - - return xReturn; -} -/*-----------------------------------------------------------*/ - -BaseType_t xQueueReceive( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait ) -{ -BaseType_t xEntryTimeSet = pdFALSE; -TimeOut_t xTimeOut; -Queue_t * const pxQueue = xQueue; - - /* Check the pointer is not NULL. */ - configASSERT( ( pxQueue ) ); - - /* 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 ) ) ); - - /* Cannot block if the scheduler is suspended. */ - #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) - { - configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) ); - } - #endif - - - /*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(); - { - const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting; - - /* 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 ) - { - /* Data available, remove one item. */ - prvCopyDataFromQueue( pxQueue, pvBuffer ); - traceQUEUE_RECEIVE( pxQueue ); - pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1; - - /* 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 ) - { - if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE ) - { - queueYIELD_IF_USING_PREEMPTION(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - taskEXIT_CRITICAL(); - return pdPASS; - } - else - { - if( xTicksToWait == ( TickType_t ) 0 ) - { - /* The queue was empty and no block time is specified (or - the block time has expired) so leave now. */ - taskEXIT_CRITICAL(); - traceQUEUE_RECEIVE_FAILED( pxQueue ); - return errQUEUE_EMPTY; - } - else if( xEntryTimeSet == pdFALSE ) - { - /* The queue was empty and a block time was specified so - configure the timeout structure. */ - vTaskInternalSetTimeOutState( &xTimeOut ); - xEntryTimeSet = pdTRUE; - } - else - { - /* Entry time was already set. */ - mtCOVERAGE_TEST_MARKER(); - } - } - } - taskEXIT_CRITICAL(); - - /* Interrupts and other tasks can send to and receive from the queue - now the critical section has been exited. */ - - vTaskSuspendAll(); - prvLockQueue( pxQueue ); - - /* Update the timeout state to see if it has expired yet. */ - if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE ) - { - /* 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 ) - { - traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue ); - vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait ); - prvUnlockQueue( pxQueue ); - if( xTaskResumeAll() == pdFALSE ) - { - portYIELD_WITHIN_API(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - /* The queue contains data again. Loop back to try and read the - data. */ - prvUnlockQueue( pxQueue ); - ( void ) xTaskResumeAll(); - } - } - else - { - /* Timed out. If there is no data in the queue exit, otherwise loop - back and attempt to read the data. */ - prvUnlockQueue( pxQueue ); - ( void ) xTaskResumeAll(); - - if( prvIsQueueEmpty( pxQueue ) != pdFALSE ) - { - traceQUEUE_RECEIVE_FAILED( pxQueue ); - return errQUEUE_EMPTY; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - } /*lint -restore */ -} -/*-----------------------------------------------------------*/ - -BaseType_t xQueueSemaphoreTake( QueueHandle_t xQueue, TickType_t xTicksToWait ) -{ -BaseType_t xEntryTimeSet = pdFALSE; -TimeOut_t xTimeOut; -Queue_t * const pxQueue = xQueue; - -#if( configUSE_MUTEXES == 1 ) - BaseType_t xInheritanceOccurred = pdFALSE; -#endif - - /* Check the queue pointer is not NULL. */ - configASSERT( ( pxQueue ) ); - - /* Check this really is a semaphore, in which case the item size will be - 0. */ - configASSERT( pxQueue->uxItemSize == 0 ); - - /* Cannot block if the scheduler is suspended. */ - #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) - { - configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) ); - } - #endif - - - /*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(); - { - /* 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; - - /* 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 ) - { - 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; - - #if ( configUSE_MUTEXES == 1 ) - { - if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX ) - { - /* Record the information required to implement - priority inheritance should it become necessary. */ - pxQueue->u.xSemaphore.xMutexHolder = pvTaskIncrementMutexHeldCount(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - #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 ) - { - if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE ) - { - queueYIELD_IF_USING_PREEMPTION(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - taskEXIT_CRITICAL(); - return pdPASS; - } - else - { - if( xTicksToWait == ( TickType_t ) 0 ) - { - /* 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 ); - } - #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(); - traceQUEUE_RECEIVE_FAILED( pxQueue ); - return errQUEUE_EMPTY; - } - else if( xEntryTimeSet == pdFALSE ) - { - /* The semaphore count was 0 and a block time was specified - so configure the timeout structure ready to block. */ - vTaskInternalSetTimeOutState( &xTimeOut ); - xEntryTimeSet = pdTRUE; - } - else - { - /* Entry time was already set. */ - mtCOVERAGE_TEST_MARKER(); - } - } - } - taskEXIT_CRITICAL(); - - /* Interrupts and other tasks can give to and take from the semaphore - now the critical section has been exited. */ - - vTaskSuspendAll(); - prvLockQueue( pxQueue ); - - /* Update the timeout state to see if it has expired yet. */ - if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE ) - { - /* 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 ) - { - traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue ); - - #if ( configUSE_MUTEXES == 1 ) - { - if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX ) - { - taskENTER_CRITICAL(); - { - xInheritanceOccurred = xTaskPriorityInherit( pxQueue->u.xSemaphore.xMutexHolder ); - } - taskEXIT_CRITICAL(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - #endif - - vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait ); - prvUnlockQueue( pxQueue ); - if( xTaskResumeAll() == pdFALSE ) - { - portYIELD_WITHIN_API(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - /* There was no timeout and the semaphore count was not 0, so - attempt to take the semaphore again. */ - prvUnlockQueue( pxQueue ); - ( void ) xTaskResumeAll(); - } - } - else - { - /* Timed out. */ - prvUnlockQueue( pxQueue ); - ( void ) xTaskResumeAll(); - - /* 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 ) - { - #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 ) - { - taskENTER_CRITICAL(); - { - UBaseType_t uxHighestWaitingPriority; - - /* 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 ); - vTaskPriorityDisinheritAfterTimeout( pxQueue->u.xSemaphore.xMutexHolder, uxHighestWaitingPriority ); - } - taskEXIT_CRITICAL(); - } - } - #endif /* configUSE_MUTEXES */ - - traceQUEUE_RECEIVE_FAILED( pxQueue ); - return errQUEUE_EMPTY; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - } /*lint -restore */ -} -/*-----------------------------------------------------------*/ - -BaseType_t xQueuePeek( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait ) -{ -BaseType_t xEntryTimeSet = pdFALSE; -TimeOut_t xTimeOut; -int8_t *pcOriginalReadPosition; -Queue_t * const pxQueue = xQueue; - - /* Check the pointer is not NULL. */ - configASSERT( ( pxQueue ) ); - - /* 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 ) ) ); - - /* Cannot block if the scheduler is suspended. */ - #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) - { - configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) ); - } - #endif - - - /*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(); - { - const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting; - - /* 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 ) - { - /* Remember the read position so it can be reset after the data - is read from the queue as this function is only peeking the - data, not removing it. */ - pcOriginalReadPosition = pxQueue->u.xQueue.pcReadFrom; - - prvCopyDataFromQueue( pxQueue, pvBuffer ); - traceQUEUE_PEEK( pxQueue ); - - /* The data is not being removed, so reset the read pointer. */ - pxQueue->u.xQueue.pcReadFrom = pcOriginalReadPosition; - - /* The data is being left in the queue, so see if there are - any other tasks waiting for the data. */ - if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE ) - { - if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) - { - /* The task waiting has a higher priority than this task. */ - queueYIELD_IF_USING_PREEMPTION(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - taskEXIT_CRITICAL(); - return pdPASS; - } - else - { - if( xTicksToWait == ( TickType_t ) 0 ) - { - /* The queue was empty and no block time is specified (or - the block time has expired) so leave now. */ - taskEXIT_CRITICAL(); - traceQUEUE_PEEK_FAILED( pxQueue ); - return errQUEUE_EMPTY; - } - else if( xEntryTimeSet == pdFALSE ) - { - /* The queue was empty and a block time was specified so - configure the timeout structure ready to enter the blocked - state. */ - vTaskInternalSetTimeOutState( &xTimeOut ); - xEntryTimeSet = pdTRUE; - } - else - { - /* Entry time was already set. */ - mtCOVERAGE_TEST_MARKER(); - } - } - } - taskEXIT_CRITICAL(); - - /* Interrupts and other tasks can send to and receive from the queue - now the critical section has been exited. */ - - vTaskSuspendAll(); - prvLockQueue( pxQueue ); - - /* Update the timeout state to see if it has expired yet. */ - if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE ) - { - /* Timeout has not expired yet, check to see if there is data in the - queue now, and if not enter the Blocked state to wait for data. */ - if( prvIsQueueEmpty( pxQueue ) != pdFALSE ) - { - traceBLOCKING_ON_QUEUE_PEEK( pxQueue ); - vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait ); - prvUnlockQueue( pxQueue ); - if( xTaskResumeAll() == pdFALSE ) - { - portYIELD_WITHIN_API(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - /* There is data in the queue now, so don't enter the blocked - state, instead return to try and obtain the data. */ - prvUnlockQueue( pxQueue ); - ( void ) xTaskResumeAll(); - } - } - else - { - /* The timeout has expired. If there is still no data in the queue - exit, otherwise go back and try to read the data again. */ - prvUnlockQueue( pxQueue ); - ( void ) xTaskResumeAll(); - - if( prvIsQueueEmpty( pxQueue ) != pdFALSE ) - { - traceQUEUE_PEEK_FAILED( pxQueue ); - return errQUEUE_EMPTY; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - } /*lint -restore */ -} -/*-----------------------------------------------------------*/ - -BaseType_t xQueueReceiveFromISR( QueueHandle_t xQueue, void * const pvBuffer, BaseType_t * const pxHigherPriorityTaskWoken ) -{ -BaseType_t xReturn; -UBaseType_t uxSavedInterruptStatus; -Queue_t * const pxQueue = xQueue; - - configASSERT( pxQueue ); - configASSERT( !( ( pvBuffer == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) ); - - /* RTOS ports that support interrupt nesting have the concept of a maximum - system call (or maximum API call) interrupt priority. Interrupts that are - above the maximum system call priority are kept permanently enabled, even - when the RTOS kernel is in a critical section, but cannot make any calls to - FreeRTOS API functions. If configASSERT() is defined in FreeRTOSConfig.h - then portASSERT_IF_INTERRUPT_PRIORITY_INVALID() will result in an assertion - failure if a FreeRTOS API function is called from an interrupt that has been - assigned a priority above the configured maximum system call priority. - Only FreeRTOS functions that end in FromISR can be called from interrupts - 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(); - - uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR(); - { - const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting; - - /* Cannot block in an ISR, so check there is data available. */ - if( uxMessagesWaiting > ( UBaseType_t ) 0 ) - { - const int8_t cRxLock = pxQueue->cRxLock; - - traceQUEUE_RECEIVE_FROM_ISR( pxQueue ); - - prvCopyDataFromQueue( pxQueue, pvBuffer ); - pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1; - - /* 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 ) - { - if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE ) - { - if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE ) - { - /* The task waiting has a higher priority than us so - force a context switch. */ - if( pxHigherPriorityTaskWoken != NULL ) - { - *pxHigherPriorityTaskWoken = pdTRUE; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - 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 ); - } - - xReturn = pdPASS; - } - else - { - xReturn = pdFAIL; - traceQUEUE_RECEIVE_FROM_ISR_FAILED( pxQueue ); - } - } - portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); - - return xReturn; -} -/*-----------------------------------------------------------*/ - -BaseType_t xQueuePeekFromISR( QueueHandle_t xQueue, void * const pvBuffer ) -{ -BaseType_t xReturn; -UBaseType_t uxSavedInterruptStatus; -int8_t *pcOriginalReadPosition; -Queue_t * const pxQueue = xQueue; - - configASSERT( pxQueue ); - configASSERT( !( ( pvBuffer == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) ); - configASSERT( pxQueue->uxItemSize != 0 ); /* Can't peek a semaphore. */ - - /* RTOS ports that support interrupt nesting have the concept of a maximum - system call (or maximum API call) interrupt priority. Interrupts that are - above the maximum system call priority are kept permanently enabled, even - when the RTOS kernel is in a critical section, but cannot make any calls to - FreeRTOS API functions. If configASSERT() is defined in FreeRTOSConfig.h - then portASSERT_IF_INTERRUPT_PRIORITY_INVALID() will result in an assertion - failure if a FreeRTOS API function is called from an interrupt that has been - assigned a priority above the configured maximum system call priority. - Only FreeRTOS functions that end in FromISR can be called from interrupts - 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(); - - uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR(); - { - /* Cannot block in an ISR, so check there is data available. */ - if( pxQueue->uxMessagesWaiting > ( UBaseType_t ) 0 ) - { - traceQUEUE_PEEK_FROM_ISR( pxQueue ); - - /* Remember the read position so it can be reset as nothing is - actually being removed from the queue. */ - pcOriginalReadPosition = pxQueue->u.xQueue.pcReadFrom; - prvCopyDataFromQueue( pxQueue, pvBuffer ); - pxQueue->u.xQueue.pcReadFrom = pcOriginalReadPosition; - - xReturn = pdPASS; - } - else - { - xReturn = pdFAIL; - traceQUEUE_PEEK_FROM_ISR_FAILED( pxQueue ); - } - } - portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); - - return xReturn; -} -/*-----------------------------------------------------------*/ - -UBaseType_t uxQueueMessagesWaiting( const QueueHandle_t xQueue ) -{ -UBaseType_t uxReturn; - - configASSERT( xQueue ); - - taskENTER_CRITICAL(); - { - uxReturn = ( ( Queue_t * ) xQueue )->uxMessagesWaiting; - } - taskEXIT_CRITICAL(); - - return uxReturn; -} /*lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer. */ -/*-----------------------------------------------------------*/ - -UBaseType_t uxQueueSpacesAvailable( const QueueHandle_t xQueue ) -{ -UBaseType_t uxReturn; -Queue_t * const pxQueue = xQueue; - - configASSERT( pxQueue ); - - taskENTER_CRITICAL(); - { - uxReturn = pxQueue->uxLength - pxQueue->uxMessagesWaiting; - } - taskEXIT_CRITICAL(); - - return uxReturn; -} /*lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer. */ -/*-----------------------------------------------------------*/ - -UBaseType_t uxQueueMessagesWaitingFromISR( const QueueHandle_t xQueue ) -{ -UBaseType_t uxReturn; -Queue_t * const pxQueue = xQueue; - - configASSERT( pxQueue ); - uxReturn = pxQueue->uxMessagesWaiting; - - return uxReturn; -} /*lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer. */ -/*-----------------------------------------------------------*/ - -void vQueueDelete( QueueHandle_t xQueue ) -{ -Queue_t * const pxQueue = xQueue; - - configASSERT( pxQueue ); - traceQUEUE_DELETE( pxQueue ); - - #if ( configQUEUE_REGISTRY_SIZE > 0 ) - { - vQueueUnregisterQueue( pxQueue ); - } - #endif - - #if( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 0 ) ) - { - /* The queue can only have been allocated dynamically - free it - again. */ - vPortFree( pxQueue ); - } - #elif( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) ) - { - /* The queue could have been allocated statically or dynamically, so - check before attempting to free the memory. */ - if( pxQueue->ucStaticallyAllocated == ( uint8_t ) pdFALSE ) - { - vPortFree( pxQueue ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - #else - { - /* The queue must have been statically allocated, so is not going to be - deleted. Avoid compiler warnings about the unused parameter. */ - ( void ) pxQueue; - } - #endif /* configSUPPORT_DYNAMIC_ALLOCATION */ -} -/*-----------------------------------------------------------*/ - -#if ( configUSE_TRACE_FACILITY == 1 ) - - UBaseType_t uxQueueGetQueueNumber( QueueHandle_t xQueue ) - { - return ( ( Queue_t * ) xQueue )->uxQueueNumber; - } - -#endif /* configUSE_TRACE_FACILITY */ -/*-----------------------------------------------------------*/ - -#if ( configUSE_TRACE_FACILITY == 1 ) - - void vQueueSetQueueNumber( QueueHandle_t xQueue, UBaseType_t uxQueueNumber ) - { - ( ( Queue_t * ) xQueue )->uxQueueNumber = uxQueueNumber; - } - -#endif /* configUSE_TRACE_FACILITY */ -/*-----------------------------------------------------------*/ - -#if ( configUSE_TRACE_FACILITY == 1 ) - - uint8_t ucQueueGetQueueType( QueueHandle_t xQueue ) - { - return ( ( Queue_t * ) xQueue )->ucQueueType; - } - -#endif /* configUSE_TRACE_FACILITY */ -/*-----------------------------------------------------------*/ - -#if( configUSE_MUTEXES == 1 ) - - static UBaseType_t prvGetDisinheritPriorityAfterTimeout( const Queue_t * const pxQueue ) - { - UBaseType_t uxHighestPriorityOfWaitingTasks; - - /* If a task waiting for a mutex causes the mutex holder to inherit a - 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 ) - { - uxHighestPriorityOfWaitingTasks = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) listGET_ITEM_VALUE_OF_HEAD_ENTRY( &( pxQueue->xTasksWaitingToReceive ) ); - } - else - { - uxHighestPriorityOfWaitingTasks = tskIDLE_PRIORITY; - } - - return uxHighestPriorityOfWaitingTasks; - } - -#endif /* configUSE_MUTEXES */ -/*-----------------------------------------------------------*/ - -static BaseType_t prvCopyDataToQueue( Queue_t * const pxQueue, const void *pvItemToQueue, const BaseType_t xPosition ) -{ -BaseType_t xReturn = pdFALSE; -UBaseType_t uxMessagesWaiting; - - /* This function is called from a critical section. */ - - uxMessagesWaiting = pxQueue->uxMessagesWaiting; - - if( pxQueue->uxItemSize == ( UBaseType_t ) 0 ) - { - #if ( configUSE_MUTEXES == 1 ) - { - if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX ) - { - /* The mutex is no longer being held. */ - xReturn = xTaskPriorityDisinherit( pxQueue->u.xSemaphore.xMutexHolder ); - pxQueue->u.xSemaphore.xMutexHolder = NULL; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - #endif /* configUSE_MUTEXES */ - } - else if( xPosition == queueSEND_TO_BACK ) - { - ( 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. */ - 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. */ - if( pxQueue->pcWriteTo >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */ - { - pxQueue->pcWriteTo = pxQueue->pcHead; - } - else - { - 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. */ - pxQueue->u.xQueue.pcReadFrom -= pxQueue->uxItemSize; - if( pxQueue->u.xQueue.pcReadFrom < pxQueue->pcHead ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */ - { - pxQueue->u.xQueue.pcReadFrom = ( pxQueue->u.xQueue.pcTail - pxQueue->uxItemSize ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - if( xPosition == queueOVERWRITE ) - { - if( uxMessagesWaiting > ( UBaseType_t ) 0 ) - { - /* 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; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - - pxQueue->uxMessagesWaiting = uxMessagesWaiting + ( UBaseType_t ) 1; - - return xReturn; -} -/*-----------------------------------------------------------*/ - -static void prvCopyDataFromQueue( Queue_t * const pxQueue, void * const pvBuffer ) -{ - if( pxQueue->uxItemSize != ( UBaseType_t ) 0 ) - { - 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. */ - if( pxQueue->u.xQueue.pcReadFrom >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as use of the relational operator is the cleanest solutions. */ - { - pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead; - } - 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. */ - } -} -/*-----------------------------------------------------------*/ - -static void prvUnlockQueue( Queue_t * const pxQueue ) -{ - /* THIS FUNCTION MUST BE CALLED WITH THE SCHEDULER SUSPENDED. */ - - /* 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(); - { - int8_t cTxLock = pxQueue->cTxLock; - - /* See if data was added to the queue while it was locked. */ - while( cTxLock > queueLOCKED_UNMODIFIED ) - { - /* Data was posted while the queue was locked. Are any tasks - blocked waiting for data to become available? */ - #if ( configUSE_QUEUE_SETS == 1 ) - { - if( pxQueue->pxQueueSetContainer != NULL ) - { - if( prvNotifyQueueSetContainer( pxQueue ) != pdFALSE ) - { - /* The queue is a member of a queue set, and posting to - the queue set caused a higher priority task to unblock. - A context switch is required. */ - vTaskMissedYield(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - /* 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 ) - { - if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) - { - /* The task waiting has a higher priority so record that a - context switch is required. */ - vTaskMissedYield(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - break; - } - } - } - #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 ) - { - if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) - { - /* The task waiting has a higher priority so record that - a context switch is required. */ - vTaskMissedYield(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - break; - } - } - #endif /* configUSE_QUEUE_SETS */ - - --cTxLock; - } - - pxQueue->cTxLock = queueUNLOCKED; - } - taskEXIT_CRITICAL(); - - /* Do the same for the Rx lock. */ - taskENTER_CRITICAL(); - { - int8_t cRxLock = pxQueue->cRxLock; - - while( cRxLock > queueLOCKED_UNMODIFIED ) - { - if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE ) - { - if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE ) - { - vTaskMissedYield(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - --cRxLock; - } - else - { - break; - } - } - - pxQueue->cRxLock = queueUNLOCKED; - } - taskEXIT_CRITICAL(); -} -/*-----------------------------------------------------------*/ - -static BaseType_t prvIsQueueEmpty( const Queue_t *pxQueue ) -{ -BaseType_t xReturn; - - taskENTER_CRITICAL(); - { - if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0 ) - { - xReturn = pdTRUE; - } - else - { - xReturn = pdFALSE; - } - } - taskEXIT_CRITICAL(); - - return xReturn; -} -/*-----------------------------------------------------------*/ - -BaseType_t xQueueIsQueueEmptyFromISR( const QueueHandle_t xQueue ) -{ -BaseType_t xReturn; -Queue_t * const pxQueue = xQueue; - - configASSERT( pxQueue ); - if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0 ) - { - xReturn = pdTRUE; - } - else - { - xReturn = pdFALSE; - } - - return xReturn; -} /*lint !e818 xQueue could not be pointer to const because it is a typedef. */ -/*-----------------------------------------------------------*/ - -static BaseType_t prvIsQueueFull( const Queue_t *pxQueue ) -{ -BaseType_t xReturn; - - taskENTER_CRITICAL(); - { - if( pxQueue->uxMessagesWaiting == pxQueue->uxLength ) - { - xReturn = pdTRUE; - } - else - { - xReturn = pdFALSE; - } - } - taskEXIT_CRITICAL(); - - return xReturn; -} -/*-----------------------------------------------------------*/ - -BaseType_t xQueueIsQueueFullFromISR( const QueueHandle_t xQueue ) -{ -BaseType_t xReturn; -Queue_t * const pxQueue = xQueue; - - configASSERT( pxQueue ); - if( pxQueue->uxMessagesWaiting == pxQueue->uxLength ) - { - xReturn = pdTRUE; - } - else - { - xReturn = pdFALSE; - } - - return xReturn; -} /*lint !e818 xQueue could not be pointer to const because it is a typedef. */ -/*-----------------------------------------------------------*/ - -#if ( configUSE_CO_ROUTINES == 1 ) - - BaseType_t xQueueCRSend( QueueHandle_t xQueue, const void *pvItemToQueue, TickType_t xTicksToWait ) - { - BaseType_t xReturn; - Queue_t * const pxQueue = xQueue; - - /* If the queue is already full we may have to block. A critical section - is required to prevent an interrupt removing something from the queue - between the check to see if the queue is full and blocking on the queue. */ - portDISABLE_INTERRUPTS(); - { - if( prvIsQueueFull( pxQueue ) != pdFALSE ) - { - /* The queue is full - do we want to block or just leave without - posting? */ - if( xTicksToWait > ( TickType_t ) 0 ) - { - /* As this is called from a coroutine we cannot block directly, but - return indicating that we need to block. */ - vCoRoutineAddToDelayedList( xTicksToWait, &( pxQueue->xTasksWaitingToSend ) ); - portENABLE_INTERRUPTS(); - return errQUEUE_BLOCKED; - } - else - { - portENABLE_INTERRUPTS(); - return errQUEUE_FULL; - } - } - } - portENABLE_INTERRUPTS(); - - portDISABLE_INTERRUPTS(); - { - if( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) - { - /* There is room in the queue, copy the data into the queue. */ - prvCopyDataToQueue( pxQueue, pvItemToQueue, queueSEND_TO_BACK ); - xReturn = pdPASS; - - /* Were any co-routines waiting for data to become available? */ - if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE ) - { - /* In this instance the co-routine could be placed directly - into the ready list as we are within a critical section. - Instead the same pending ready list mechanism is used as if - the event were caused from within an interrupt. */ - if( xCoRoutineRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) - { - /* The co-routine waiting has a higher priority so record - that a yield might be appropriate. */ - xReturn = errQUEUE_YIELD; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - xReturn = errQUEUE_FULL; - } - } - portENABLE_INTERRUPTS(); - - return xReturn; - } - -#endif /* configUSE_CO_ROUTINES */ -/*-----------------------------------------------------------*/ - -#if ( configUSE_CO_ROUTINES == 1 ) - - BaseType_t xQueueCRReceive( QueueHandle_t xQueue, void *pvBuffer, TickType_t xTicksToWait ) - { - BaseType_t xReturn; - Queue_t * const pxQueue = xQueue; - - /* If the queue is already empty we may have to block. A critical section - is required to prevent an interrupt adding something to the queue - between the check to see if the queue is empty and blocking on the queue. */ - portDISABLE_INTERRUPTS(); - { - if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0 ) - { - /* There are no messages in the queue, do we want to block or just - leave with nothing? */ - if( xTicksToWait > ( TickType_t ) 0 ) - { - /* As this is a co-routine we cannot block directly, but return - indicating that we need to block. */ - vCoRoutineAddToDelayedList( xTicksToWait, &( pxQueue->xTasksWaitingToReceive ) ); - portENABLE_INTERRUPTS(); - return errQUEUE_BLOCKED; - } - else - { - portENABLE_INTERRUPTS(); - return errQUEUE_FULL; - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - portENABLE_INTERRUPTS(); - - portDISABLE_INTERRUPTS(); - { - if( pxQueue->uxMessagesWaiting > ( UBaseType_t ) 0 ) - { - /* Data is available from the queue. */ - pxQueue->u.xQueue.pcReadFrom += pxQueue->uxItemSize; - if( pxQueue->u.xQueue.pcReadFrom >= pxQueue->u.xQueue.pcTail ) - { - pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - --( pxQueue->uxMessagesWaiting ); - ( void ) memcpy( ( void * ) pvBuffer, ( void * ) pxQueue->u.xQueue.pcReadFrom, ( unsigned ) pxQueue->uxItemSize ); - - xReturn = pdPASS; - - /* Were any co-routines waiting for space to become available? */ - if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE ) - { - /* In this instance the co-routine could be placed directly - into the ready list as we are within a critical section. - Instead the same pending ready list mechanism is used as if - the event were caused from within an interrupt. */ - if( xCoRoutineRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE ) - { - xReturn = errQUEUE_YIELD; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - xReturn = pdFAIL; - } - } - portENABLE_INTERRUPTS(); - - return xReturn; - } - -#endif /* configUSE_CO_ROUTINES */ -/*-----------------------------------------------------------*/ - -#if ( configUSE_CO_ROUTINES == 1 ) - - BaseType_t xQueueCRSendFromISR( QueueHandle_t xQueue, const void *pvItemToQueue, BaseType_t xCoRoutinePreviouslyWoken ) - { - Queue_t * const pxQueue = xQueue; - - /* Cannot block within an ISR so if there is no space on the queue then - exit without doing anything. */ - if( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) - { - prvCopyDataToQueue( pxQueue, pvItemToQueue, queueSEND_TO_BACK ); - - /* We only want to wake one co-routine per ISR, so check that a - co-routine has not already been woken. */ - if( xCoRoutinePreviouslyWoken == pdFALSE ) - { - if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE ) - { - if( xCoRoutineRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) - { - return pdTRUE; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - return xCoRoutinePreviouslyWoken; - } - -#endif /* configUSE_CO_ROUTINES */ -/*-----------------------------------------------------------*/ - -#if ( configUSE_CO_ROUTINES == 1 ) - - BaseType_t xQueueCRReceiveFromISR( QueueHandle_t xQueue, void *pvBuffer, BaseType_t *pxCoRoutineWoken ) - { - BaseType_t xReturn; - Queue_t * const pxQueue = xQueue; - - /* We cannot block from an ISR, so check there is data available. If - not then just leave without doing anything. */ - if( pxQueue->uxMessagesWaiting > ( UBaseType_t ) 0 ) - { - /* Copy the data from the queue. */ - pxQueue->u.xQueue.pcReadFrom += pxQueue->uxItemSize; - if( pxQueue->u.xQueue.pcReadFrom >= pxQueue->u.xQueue.pcTail ) - { - pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - --( pxQueue->uxMessagesWaiting ); - ( void ) memcpy( ( void * ) pvBuffer, ( void * ) pxQueue->u.xQueue.pcReadFrom, ( unsigned ) pxQueue->uxItemSize ); - - if( ( *pxCoRoutineWoken ) == pdFALSE ) - { - if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE ) - { - if( xCoRoutineRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE ) - { - *pxCoRoutineWoken = pdTRUE; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - xReturn = pdPASS; - } - else - { - xReturn = pdFAIL; - } - - return xReturn; - } - -#endif /* configUSE_CO_ROUTINES */ -/*-----------------------------------------------------------*/ - -#if ( configQUEUE_REGISTRY_SIZE > 0 ) - - void vQueueAddToRegistry( QueueHandle_t xQueue, const char *pcQueueName ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ - { - UBaseType_t ux; - - /* See if there is an empty space in the registry. A NULL name denotes - a free slot. */ - for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ ) - { - if( xQueueRegistry[ ux ].pcQueueName == NULL ) - { - /* Store the information on this queue. */ - xQueueRegistry[ ux ].pcQueueName = pcQueueName; - xQueueRegistry[ ux ].xHandle = xQueue; - - traceQUEUE_REGISTRY_ADD( xQueue, pcQueueName ); - break; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - } - -#endif /* configQUEUE_REGISTRY_SIZE */ -/*-----------------------------------------------------------*/ - -#if ( configQUEUE_REGISTRY_SIZE > 0 ) - - const char *pcQueueGetName( QueueHandle_t xQueue ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ - { - UBaseType_t ux; - const char *pcReturn = NULL; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ - - /* Note there is nothing here to protect against another task adding or - removing entries from the registry while it is being searched. */ - for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ ) - { - if( xQueueRegistry[ ux ].xHandle == xQueue ) - { - pcReturn = xQueueRegistry[ ux ].pcQueueName; - break; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - - return pcReturn; - } /*lint !e818 xQueue cannot be a pointer to const because it is a typedef. */ - -#endif /* configQUEUE_REGISTRY_SIZE */ -/*-----------------------------------------------------------*/ - -#if ( configQUEUE_REGISTRY_SIZE > 0 ) - - void vQueueUnregisterQueue( QueueHandle_t xQueue ) - { - UBaseType_t ux; - - /* See if the handle of the queue being unregistered in actually in the - registry. */ - for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ ) - { - if( xQueueRegistry[ ux ].xHandle == xQueue ) - { - /* Set the name to NULL to show that this slot if free again. */ - xQueueRegistry[ ux ].pcQueueName = NULL; - - /* Set the handle to NULL to ensure the same queue handle cannot - appear in the registry twice if it is added, removed, then - added again. */ - xQueueRegistry[ ux ].xHandle = ( QueueHandle_t ) 0; - break; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - - } /*lint !e818 xQueue could not be pointer to const because it is a typedef. */ - -#endif /* configQUEUE_REGISTRY_SIZE */ -/*-----------------------------------------------------------*/ - -#if ( configUSE_TIMERS == 1 ) - - void vQueueWaitForMessageRestricted( QueueHandle_t xQueue, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely ) - { - Queue_t * const pxQueue = xQueue; - - /* This function should not be called by application code hence the - 'Restricted' in its name. It is not part of the public API. It is - designed for use by kernel code, and has special calling requirements. - It can result in vListInsert() being called on a list that can only - possibly ever have one item in it, so the list will be fast, but even - so it should be called with the scheduler locked and not from a critical - section. */ - - /* Only do anything if there are no messages in the queue. This function - will not actually cause the task to block, just place it on a blocked - list. It will not block until the scheduler is unlocked - at which - time a yield will be performed. If an item is added to the queue while - the queue is locked, and the calling task blocks on the queue, then the - calling task will be immediately unblocked when the queue is unlocked. */ - prvLockQueue( pxQueue ); - if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0U ) - { - /* There is nothing in the queue, block for the specified period. */ - vTaskPlaceOnEventListRestricted( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait, xWaitIndefinitely ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - prvUnlockQueue( pxQueue ); - } - -#endif /* configUSE_TIMERS */ -/*-----------------------------------------------------------*/ - -#if( ( configUSE_QUEUE_SETS == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) - - QueueSetHandle_t xQueueCreateSet( const UBaseType_t uxEventQueueLength ) - { - QueueSetHandle_t pxQueue; - - pxQueue = xQueueGenericCreate( uxEventQueueLength, ( UBaseType_t ) sizeof( Queue_t * ), queueQUEUE_TYPE_SET ); - - return pxQueue; - } - -#endif /* configUSE_QUEUE_SETS */ -/*-----------------------------------------------------------*/ - -#if ( configUSE_QUEUE_SETS == 1 ) - - BaseType_t xQueueAddToSet( QueueSetMemberHandle_t xQueueOrSemaphore, QueueSetHandle_t xQueueSet ) - { - BaseType_t xReturn; - - taskENTER_CRITICAL(); - { - if( ( ( Queue_t * ) xQueueOrSemaphore )->pxQueueSetContainer != NULL ) - { - /* Cannot add a queue/semaphore to more than one queue set. */ - xReturn = pdFAIL; - } - else if( ( ( Queue_t * ) xQueueOrSemaphore )->uxMessagesWaiting != ( UBaseType_t ) 0 ) - { - /* Cannot add a queue/semaphore to a queue set if there are already - items in the queue/semaphore. */ - xReturn = pdFAIL; - } - else - { - ( ( Queue_t * ) xQueueOrSemaphore )->pxQueueSetContainer = xQueueSet; - xReturn = pdPASS; - } - } - taskEXIT_CRITICAL(); - - return xReturn; - } - -#endif /* configUSE_QUEUE_SETS */ -/*-----------------------------------------------------------*/ - -#if ( configUSE_QUEUE_SETS == 1 ) - - BaseType_t xQueueRemoveFromSet( QueueSetMemberHandle_t xQueueOrSemaphore, QueueSetHandle_t xQueueSet ) - { - BaseType_t xReturn; - Queue_t * const pxQueueOrSemaphore = ( Queue_t * ) xQueueOrSemaphore; - - if( pxQueueOrSemaphore->pxQueueSetContainer != xQueueSet ) - { - /* The queue was not a member of the set. */ - xReturn = pdFAIL; - } - else if( pxQueueOrSemaphore->uxMessagesWaiting != ( UBaseType_t ) 0 ) - { - /* It is dangerous to remove a queue from a set when the queue is - not empty because the queue set will still hold pending events for - the queue. */ - xReturn = pdFAIL; - } - else - { - taskENTER_CRITICAL(); - { - /* The queue is no longer contained in the set. */ - pxQueueOrSemaphore->pxQueueSetContainer = NULL; - } - taskEXIT_CRITICAL(); - xReturn = pdPASS; - } - - return xReturn; - } /*lint !e818 xQueueSet could not be declared as pointing to const as it is a typedef. */ - -#endif /* configUSE_QUEUE_SETS */ -/*-----------------------------------------------------------*/ - -#if ( configUSE_QUEUE_SETS == 1 ) - - QueueSetMemberHandle_t xQueueSelectFromSet( QueueSetHandle_t xQueueSet, TickType_t const xTicksToWait ) - { - QueueSetMemberHandle_t xReturn = NULL; - - ( void ) xQueueReceive( ( QueueHandle_t ) xQueueSet, &xReturn, xTicksToWait ); /*lint !e961 Casting from one typedef to another is not redundant. */ - return xReturn; - } - -#endif /* configUSE_QUEUE_SETS */ -/*-----------------------------------------------------------*/ - -#if ( configUSE_QUEUE_SETS == 1 ) - - QueueSetMemberHandle_t xQueueSelectFromSetFromISR( QueueSetHandle_t xQueueSet ) - { - QueueSetMemberHandle_t xReturn = NULL; - - ( void ) xQueueReceiveFromISR( ( QueueHandle_t ) xQueueSet, &xReturn, NULL ); /*lint !e961 Casting from one typedef to another is not redundant. */ - return xReturn; - } - -#endif /* configUSE_QUEUE_SETS */ -/*-----------------------------------------------------------*/ - -#if ( configUSE_QUEUE_SETS == 1 ) - - static BaseType_t prvNotifyQueueSetContainer( const Queue_t * const pxQueue ) - { - Queue_t *pxQueueSetContainer = pxQueue->pxQueueSetContainer; - BaseType_t xReturn = pdFALSE; - - /* This function must be called form a critical section. */ - - configASSERT( pxQueueSetContainer ); - configASSERT( pxQueueSetContainer->uxMessagesWaiting < pxQueueSetContainer->uxLength ); - - if( pxQueueSetContainer->uxMessagesWaiting < pxQueueSetContainer->uxLength ) - { - const int8_t cTxLock = pxQueueSetContainer->cTxLock; - - traceQUEUE_SEND( pxQueueSetContainer ); - - /* The data copied is the handle of the queue that contains data. */ - xReturn = prvCopyDataToQueue( pxQueueSetContainer, &pxQueue, queueSEND_TO_BACK ); - - if( cTxLock == queueUNLOCKED ) - { - if( listLIST_IS_EMPTY( &( pxQueueSetContainer->xTasksWaitingToReceive ) ) == pdFALSE ) - { - if( xTaskRemoveFromEventList( &( pxQueueSetContainer->xTasksWaitingToReceive ) ) != pdFALSE ) - { - /* The task waiting has a higher priority. */ - xReturn = pdTRUE; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - pxQueueSetContainer->cTxLock = ( int8_t ) ( cTxLock + 1 ); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - return xReturn; - } - -#endif /* configUSE_QUEUE_SETS */ - - - - - - - - - - - - diff --git a/Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c b/Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c deleted file mode 100644 index 7ad5d54..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c +++ /dev/null @@ -1,1263 +0,0 @@ -/* - * FreeRTOS Kernel V10.3.1 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - -/* Standard includes. */ -#include -#include - -/* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining -all the API functions to use the MPU wrappers. That should only be done when -task.h is included from an application file. */ -#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE - -/* FreeRTOS includes. */ -#include "FreeRTOS.h" -#include "task.h" -#include "stream_buffer.h" - -#if( configUSE_TASK_NOTIFICATIONS != 1 ) - #error configUSE_TASK_NOTIFICATIONS must be set to 1 to build stream_buffer.c -#endif - -/* Lint e961, e9021 and e750 are suppressed as a MISRA exception justified -because the MPU ports require MPU_WRAPPERS_INCLUDED_FROM_API_FILE to be defined -for the header files above, but not in this file, in order to generate the -correct privileged Vs unprivileged linkage and placement. */ -#undef MPU_WRAPPERS_INCLUDED_FROM_API_FILE /*lint !e961 !e750 !e9021. */ - -/* If the user has not provided application specific Rx notification macros, -or #defined the notification macros away, them provide default implementations -that uses task notifications. */ -/*lint -save -e9026 Function like macros allowed and needed here so they can be overidden. */ -#ifndef sbRECEIVE_COMPLETED - #define sbRECEIVE_COMPLETED( pxStreamBuffer ) \ - vTaskSuspendAll(); \ - { \ - if( ( pxStreamBuffer )->xTaskWaitingToSend != NULL ) \ - { \ - ( void ) xTaskNotify( ( pxStreamBuffer )->xTaskWaitingToSend, \ - ( uint32_t ) 0, \ - eNoAction ); \ - ( pxStreamBuffer )->xTaskWaitingToSend = NULL; \ - } \ - } \ - ( void ) xTaskResumeAll(); -#endif /* sbRECEIVE_COMPLETED */ - -#ifndef sbRECEIVE_COMPLETED_FROM_ISR - #define sbRECEIVE_COMPLETED_FROM_ISR( pxStreamBuffer, \ - pxHigherPriorityTaskWoken ) \ - { \ - UBaseType_t uxSavedInterruptStatus; \ - \ - uxSavedInterruptStatus = ( UBaseType_t ) portSET_INTERRUPT_MASK_FROM_ISR(); \ - { \ - if( ( pxStreamBuffer )->xTaskWaitingToSend != NULL ) \ - { \ - ( void ) xTaskNotifyFromISR( ( pxStreamBuffer )->xTaskWaitingToSend, \ - ( uint32_t ) 0, \ - eNoAction, \ - pxHigherPriorityTaskWoken ); \ - ( pxStreamBuffer )->xTaskWaitingToSend = NULL; \ - } \ - } \ - portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); \ - } -#endif /* sbRECEIVE_COMPLETED_FROM_ISR */ - -/* If the user has not provided an application specific Tx notification macro, -or #defined the notification macro away, them provide a default implementation -that uses task notifications. */ -#ifndef sbSEND_COMPLETED - #define sbSEND_COMPLETED( pxStreamBuffer ) \ - vTaskSuspendAll(); \ - { \ - if( ( pxStreamBuffer )->xTaskWaitingToReceive != NULL ) \ - { \ - ( void ) xTaskNotify( ( pxStreamBuffer )->xTaskWaitingToReceive, \ - ( uint32_t ) 0, \ - eNoAction ); \ - ( pxStreamBuffer )->xTaskWaitingToReceive = NULL; \ - } \ - } \ - ( void ) xTaskResumeAll(); -#endif /* sbSEND_COMPLETED */ - -#ifndef sbSEND_COMPLETE_FROM_ISR - #define sbSEND_COMPLETE_FROM_ISR( pxStreamBuffer, pxHigherPriorityTaskWoken ) \ - { \ - UBaseType_t uxSavedInterruptStatus; \ - \ - uxSavedInterruptStatus = ( UBaseType_t ) portSET_INTERRUPT_MASK_FROM_ISR(); \ - { \ - if( ( pxStreamBuffer )->xTaskWaitingToReceive != NULL ) \ - { \ - ( void ) xTaskNotifyFromISR( ( pxStreamBuffer )->xTaskWaitingToReceive, \ - ( uint32_t ) 0, \ - eNoAction, \ - pxHigherPriorityTaskWoken ); \ - ( pxStreamBuffer )->xTaskWaitingToReceive = NULL; \ - } \ - } \ - portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); \ - } -#endif /* sbSEND_COMPLETE_FROM_ISR */ -/*lint -restore (9026) */ - -/* The number of bytes used to hold the length of a message in the buffer. */ -#define sbBYTES_TO_STORE_MESSAGE_LENGTH ( sizeof( configMESSAGE_BUFFER_LENGTH_TYPE ) ) - -/* Bits stored in the ucFlags field of the stream buffer. */ -#define sbFLAGS_IS_MESSAGE_BUFFER ( ( uint8_t ) 1 ) /* Set if the stream buffer was created as a message buffer, in which case it holds discrete messages rather than a stream. */ -#define sbFLAGS_IS_STATICALLY_ALLOCATED ( ( uint8_t ) 2 ) /* Set if the stream buffer was created using statically allocated memory. */ - -/*-----------------------------------------------------------*/ - -/* Structure that hold state information on the buffer. */ -typedef struct StreamBufferDef_t /*lint !e9058 Style convention uses tag. */ -{ - volatile size_t xTail; /* Index to the next item to read within the buffer. */ - volatile size_t xHead; /* Index to the next item to write within the buffer. */ - size_t xLength; /* The length of the buffer pointed to by pucBuffer. */ - size_t xTriggerLevelBytes; /* The number of bytes that must be in the stream buffer before a task that is waiting for data is unblocked. */ - volatile TaskHandle_t xTaskWaitingToReceive; /* Holds the handle of a task waiting for data, or NULL if no tasks are waiting. */ - volatile TaskHandle_t xTaskWaitingToSend; /* Holds the handle of a task waiting to send data to a message buffer that is full. */ - uint8_t *pucBuffer; /* Points to the buffer itself - that is - the RAM that stores the data passed through the buffer. */ - uint8_t ucFlags; - - #if ( configUSE_TRACE_FACILITY == 1 ) - UBaseType_t uxStreamBufferNumber; /* Used for tracing purposes. */ - #endif -} StreamBuffer_t; - -/* - * The number of bytes available to be read from the buffer. - */ -static size_t prvBytesInBuffer( const StreamBuffer_t * const pxStreamBuffer ) PRIVILEGED_FUNCTION; - -/* - * Add xCount bytes from pucData into the pxStreamBuffer message buffer. - * Returns the number of bytes written, which will either equal xCount in the - * success case, or 0 if there was not enough space in the buffer (in which case - * no data is written into the buffer). - */ -static size_t prvWriteBytesToBuffer( StreamBuffer_t * const pxStreamBuffer, const uint8_t *pucData, size_t xCount ) PRIVILEGED_FUNCTION; - -/* - * If the stream buffer is being used as a message buffer, then reads an entire - * message out of the buffer. If the stream buffer is being used as a stream - * buffer then read as many bytes as possible from the buffer. - * prvReadBytesFromBuffer() is called to actually extract the bytes from the - * buffer's data storage area. - */ -static size_t prvReadMessageFromBuffer( StreamBuffer_t *pxStreamBuffer, - void *pvRxData, - size_t xBufferLengthBytes, - size_t xBytesAvailable, - size_t xBytesToStoreMessageLength ) PRIVILEGED_FUNCTION; - -/* - * If the stream buffer is being used as a message buffer, then writes an entire - * message to the buffer. If the stream buffer is being used as a stream - * buffer then write as many bytes as possible to the buffer. - * prvWriteBytestoBuffer() is called to actually send the bytes to the buffer's - * data storage area. - */ -static size_t prvWriteMessageToBuffer( StreamBuffer_t * const pxStreamBuffer, - const void * pvTxData, - size_t xDataLengthBytes, - size_t xSpace, - size_t xRequiredSpace ) PRIVILEGED_FUNCTION; - -/* - * Read xMaxCount bytes from the pxStreamBuffer message buffer and write them - * to pucData. - */ -static size_t prvReadBytesFromBuffer( StreamBuffer_t *pxStreamBuffer, - uint8_t *pucData, - size_t xMaxCount, - size_t xBytesAvailable ) PRIVILEGED_FUNCTION; - -/* - * Called by both pxStreamBufferCreate() and pxStreamBufferCreateStatic() to - * initialise the members of the newly created stream buffer structure. - */ -static void prvInitialiseNewStreamBuffer( StreamBuffer_t * const pxStreamBuffer, - uint8_t * const pucBuffer, - size_t xBufferSizeBytes, - size_t xTriggerLevelBytes, - uint8_t ucFlags ) PRIVILEGED_FUNCTION; - -/*-----------------------------------------------------------*/ - -#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) - - StreamBufferHandle_t xStreamBufferGenericCreate( size_t xBufferSizeBytes, size_t xTriggerLevelBytes, BaseType_t xIsMessageBuffer ) - { - uint8_t *pucAllocatedMemory; - uint8_t ucFlags; - - /* In case the stream buffer is going to be used as a message buffer - (that is, it will hold discrete messages with a little meta data that - says how big the next message is) check the buffer will be large enough - to hold at least one message. */ - if( xIsMessageBuffer == pdTRUE ) - { - /* Is a message buffer but not statically allocated. */ - ucFlags = sbFLAGS_IS_MESSAGE_BUFFER; - configASSERT( xBufferSizeBytes > sbBYTES_TO_STORE_MESSAGE_LENGTH ); - } - else - { - /* Not a message buffer and not statically allocated. */ - ucFlags = 0; - configASSERT( xBufferSizeBytes > 0 ); - } - configASSERT( xTriggerLevelBytes <= xBufferSizeBytes ); - - /* A trigger level of 0 would cause a waiting task to unblock even when - the buffer was empty. */ - if( xTriggerLevelBytes == ( size_t ) 0 ) - { - xTriggerLevelBytes = ( size_t ) 1; - } - - /* A stream buffer requires a StreamBuffer_t structure and a buffer. - Both are allocated in a single call to pvPortMalloc(). The - StreamBuffer_t structure is placed at the start of the allocated memory - and the buffer follows immediately after. The requested size is - incremented so the free space is returned as the user would expect - - this is a quirk of the implementation that means otherwise the free - space would be reported as one byte smaller than would be logically - expected. */ - xBufferSizeBytes++; - pucAllocatedMemory = ( uint8_t * ) pvPortMalloc( xBufferSizeBytes + sizeof( StreamBuffer_t ) ); /*lint !e9079 malloc() only returns void*. */ - - if( pucAllocatedMemory != NULL ) - { - prvInitialiseNewStreamBuffer( ( StreamBuffer_t * ) pucAllocatedMemory, /* Structure at the start of the allocated memory. */ /*lint !e9087 Safe cast as allocated memory is aligned. */ /*lint !e826 Area is not too small and alignment is guaranteed provided malloc() behaves as expected and returns aligned buffer. */ - pucAllocatedMemory + sizeof( StreamBuffer_t ), /* Storage area follows. */ /*lint !e9016 Indexing past structure valid for uint8_t pointer, also storage area has no alignment requirement. */ - xBufferSizeBytes, - xTriggerLevelBytes, - ucFlags ); - - traceSTREAM_BUFFER_CREATE( ( ( StreamBuffer_t * ) pucAllocatedMemory ), xIsMessageBuffer ); - } - else - { - traceSTREAM_BUFFER_CREATE_FAILED( xIsMessageBuffer ); - } - - return ( StreamBufferHandle_t ) pucAllocatedMemory; /*lint !e9087 !e826 Safe cast as allocated memory is aligned. */ - } - -#endif /* configSUPPORT_DYNAMIC_ALLOCATION */ -/*-----------------------------------------------------------*/ - -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) - - StreamBufferHandle_t xStreamBufferGenericCreateStatic( size_t xBufferSizeBytes, - size_t xTriggerLevelBytes, - BaseType_t xIsMessageBuffer, - uint8_t * const pucStreamBufferStorageArea, - StaticStreamBuffer_t * const pxStaticStreamBuffer ) - { - StreamBuffer_t * const pxStreamBuffer = ( StreamBuffer_t * ) pxStaticStreamBuffer; /*lint !e740 !e9087 Safe cast as StaticStreamBuffer_t is opaque Streambuffer_t. */ - StreamBufferHandle_t xReturn; - uint8_t ucFlags; - - configASSERT( pucStreamBufferStorageArea ); - configASSERT( pxStaticStreamBuffer ); - configASSERT( xTriggerLevelBytes <= xBufferSizeBytes ); - - /* A trigger level of 0 would cause a waiting task to unblock even when - the buffer was empty. */ - if( xTriggerLevelBytes == ( size_t ) 0 ) - { - xTriggerLevelBytes = ( size_t ) 1; - } - - if( xIsMessageBuffer != pdFALSE ) - { - /* Statically allocated message buffer. */ - ucFlags = sbFLAGS_IS_MESSAGE_BUFFER | sbFLAGS_IS_STATICALLY_ALLOCATED; - } - else - { - /* Statically allocated stream buffer. */ - ucFlags = sbFLAGS_IS_STATICALLY_ALLOCATED; - } - - /* In case the stream buffer is going to be used as a message buffer - (that is, it will hold discrete messages with a little meta data that - says how big the next message is) check the buffer will be large enough - to hold at least one message. */ - configASSERT( xBufferSizeBytes > sbBYTES_TO_STORE_MESSAGE_LENGTH ); - - #if( configASSERT_DEFINED == 1 ) - { - /* Sanity check that the size of the structure used to declare a - variable of type StaticStreamBuffer_t equals the size of the real - message buffer structure. */ - volatile size_t xSize = sizeof( StaticStreamBuffer_t ); - configASSERT( xSize == sizeof( StreamBuffer_t ) ); - } /*lint !e529 xSize is referenced is configASSERT() is defined. */ - #endif /* configASSERT_DEFINED */ - - if( ( pucStreamBufferStorageArea != NULL ) && ( pxStaticStreamBuffer != NULL ) ) - { - prvInitialiseNewStreamBuffer( pxStreamBuffer, - pucStreamBufferStorageArea, - xBufferSizeBytes, - xTriggerLevelBytes, - ucFlags ); - - /* Remember this was statically allocated in case it is ever deleted - again. */ - pxStreamBuffer->ucFlags |= sbFLAGS_IS_STATICALLY_ALLOCATED; - - traceSTREAM_BUFFER_CREATE( pxStreamBuffer, xIsMessageBuffer ); - - xReturn = ( StreamBufferHandle_t ) pxStaticStreamBuffer; /*lint !e9087 Data hiding requires cast to opaque type. */ - } - else - { - xReturn = NULL; - traceSTREAM_BUFFER_CREATE_STATIC_FAILED( xReturn, xIsMessageBuffer ); - } - - return xReturn; - } - -#endif /* ( configSUPPORT_STATIC_ALLOCATION == 1 ) */ -/*-----------------------------------------------------------*/ - -void vStreamBufferDelete( StreamBufferHandle_t xStreamBuffer ) -{ -StreamBuffer_t * pxStreamBuffer = xStreamBuffer; - - configASSERT( pxStreamBuffer ); - - traceSTREAM_BUFFER_DELETE( xStreamBuffer ); - - if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_STATICALLY_ALLOCATED ) == ( uint8_t ) pdFALSE ) - { - #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) - { - /* Both the structure and the buffer were allocated using a single call - to pvPortMalloc(), hence only one call to vPortFree() is required. */ - vPortFree( ( void * ) pxStreamBuffer ); /*lint !e9087 Standard free() semantics require void *, plus pxStreamBuffer was allocated by pvPortMalloc(). */ - } - #else - { - /* Should not be possible to get here, ucFlags must be corrupt. - Force an assert. */ - configASSERT( xStreamBuffer == ( StreamBufferHandle_t ) ~0 ); - } - #endif - } - else - { - /* The structure and buffer were not allocated dynamically and cannot be - freed - just scrub the structure so future use will assert. */ - ( void ) memset( pxStreamBuffer, 0x00, sizeof( StreamBuffer_t ) ); - } -} -/*-----------------------------------------------------------*/ - -BaseType_t xStreamBufferReset( StreamBufferHandle_t xStreamBuffer ) -{ -StreamBuffer_t * const pxStreamBuffer = xStreamBuffer; -BaseType_t xReturn = pdFAIL; - -#if( configUSE_TRACE_FACILITY == 1 ) - UBaseType_t uxStreamBufferNumber; -#endif - - configASSERT( pxStreamBuffer ); - - #if( configUSE_TRACE_FACILITY == 1 ) - { - /* Store the stream buffer number so it can be restored after the - reset. */ - uxStreamBufferNumber = pxStreamBuffer->uxStreamBufferNumber; - } - #endif - - /* Can only reset a message buffer if there are no tasks blocked on it. */ - taskENTER_CRITICAL(); - { - if( pxStreamBuffer->xTaskWaitingToReceive == NULL ) - { - if( pxStreamBuffer->xTaskWaitingToSend == NULL ) - { - prvInitialiseNewStreamBuffer( pxStreamBuffer, - pxStreamBuffer->pucBuffer, - pxStreamBuffer->xLength, - pxStreamBuffer->xTriggerLevelBytes, - pxStreamBuffer->ucFlags ); - xReturn = pdPASS; - - #if( configUSE_TRACE_FACILITY == 1 ) - { - pxStreamBuffer->uxStreamBufferNumber = uxStreamBufferNumber; - } - #endif - - traceSTREAM_BUFFER_RESET( xStreamBuffer ); - } - } - } - taskEXIT_CRITICAL(); - - return xReturn; -} -/*-----------------------------------------------------------*/ - -BaseType_t xStreamBufferSetTriggerLevel( StreamBufferHandle_t xStreamBuffer, size_t xTriggerLevel ) -{ -StreamBuffer_t * const pxStreamBuffer = xStreamBuffer; -BaseType_t xReturn; - - configASSERT( pxStreamBuffer ); - - /* It is not valid for the trigger level to be 0. */ - if( xTriggerLevel == ( size_t ) 0 ) - { - xTriggerLevel = ( size_t ) 1; - } - - /* The trigger level is the number of bytes that must be in the stream - buffer before a task that is waiting for data is unblocked. */ - if( xTriggerLevel <= pxStreamBuffer->xLength ) - { - pxStreamBuffer->xTriggerLevelBytes = xTriggerLevel; - xReturn = pdPASS; - } - else - { - xReturn = pdFALSE; - } - - return xReturn; -} -/*-----------------------------------------------------------*/ - -size_t xStreamBufferSpacesAvailable( StreamBufferHandle_t xStreamBuffer ) -{ -const StreamBuffer_t * const pxStreamBuffer = xStreamBuffer; -size_t xSpace; - - configASSERT( pxStreamBuffer ); - - xSpace = pxStreamBuffer->xLength + pxStreamBuffer->xTail; - xSpace -= pxStreamBuffer->xHead; - xSpace -= ( size_t ) 1; - - if( xSpace >= pxStreamBuffer->xLength ) - { - xSpace -= pxStreamBuffer->xLength; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - return xSpace; -} -/*-----------------------------------------------------------*/ - -size_t xStreamBufferBytesAvailable( StreamBufferHandle_t xStreamBuffer ) -{ -const StreamBuffer_t * const pxStreamBuffer = xStreamBuffer; -size_t xReturn; - - configASSERT( pxStreamBuffer ); - - xReturn = prvBytesInBuffer( pxStreamBuffer ); - return xReturn; -} -/*-----------------------------------------------------------*/ - -size_t xStreamBufferSend( StreamBufferHandle_t xStreamBuffer, - const void *pvTxData, - size_t xDataLengthBytes, - TickType_t xTicksToWait ) -{ -StreamBuffer_t * const pxStreamBuffer = xStreamBuffer; -size_t xReturn, xSpace = 0; -size_t xRequiredSpace = xDataLengthBytes; -TimeOut_t xTimeOut; - - configASSERT( pvTxData ); - configASSERT( pxStreamBuffer ); - - /* This send function is used to write to both message buffers and stream - buffers. If this is a message buffer then the space needed must be - increased by the amount of bytes needed to store the length of the - message. */ - if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_t ) 0 ) - { - xRequiredSpace += sbBYTES_TO_STORE_MESSAGE_LENGTH; - - /* Overflow? */ - configASSERT( xRequiredSpace > xDataLengthBytes ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - if( xTicksToWait != ( TickType_t ) 0 ) - { - vTaskSetTimeOutState( &xTimeOut ); - - do - { - /* Wait until the required number of bytes are free in the message - buffer. */ - taskENTER_CRITICAL(); - { - xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer ); - - if( xSpace < xRequiredSpace ) - { - /* Clear notification state as going to wait for space. */ - ( void ) xTaskNotifyStateClear( NULL ); - - /* Should only be one writer. */ - configASSERT( pxStreamBuffer->xTaskWaitingToSend == NULL ); - pxStreamBuffer->xTaskWaitingToSend = xTaskGetCurrentTaskHandle(); - } - else - { - taskEXIT_CRITICAL(); - break; - } - } - taskEXIT_CRITICAL(); - - traceBLOCKING_ON_STREAM_BUFFER_SEND( xStreamBuffer ); - ( void ) xTaskNotifyWait( ( uint32_t ) 0, ( uint32_t ) 0, NULL, xTicksToWait ); - pxStreamBuffer->xTaskWaitingToSend = NULL; - - } while( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - if( xSpace == ( size_t ) 0 ) - { - xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - xReturn = prvWriteMessageToBuffer( pxStreamBuffer, pvTxData, xDataLengthBytes, xSpace, xRequiredSpace ); - - if( xReturn > ( size_t ) 0 ) - { - traceSTREAM_BUFFER_SEND( xStreamBuffer, xReturn ); - - /* Was a task waiting for the data? */ - if( prvBytesInBuffer( pxStreamBuffer ) >= pxStreamBuffer->xTriggerLevelBytes ) - { - sbSEND_COMPLETED( pxStreamBuffer ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - traceSTREAM_BUFFER_SEND_FAILED( xStreamBuffer ); - } - - return xReturn; -} -/*-----------------------------------------------------------*/ - -size_t xStreamBufferSendFromISR( StreamBufferHandle_t xStreamBuffer, - const void *pvTxData, - size_t xDataLengthBytes, - BaseType_t * const pxHigherPriorityTaskWoken ) -{ -StreamBuffer_t * const pxStreamBuffer = xStreamBuffer; -size_t xReturn, xSpace; -size_t xRequiredSpace = xDataLengthBytes; - - configASSERT( pvTxData ); - configASSERT( pxStreamBuffer ); - - /* This send function is used to write to both message buffers and stream - buffers. If this is a message buffer then the space needed must be - increased by the amount of bytes needed to store the length of the - message. */ - if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_t ) 0 ) - { - xRequiredSpace += sbBYTES_TO_STORE_MESSAGE_LENGTH; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer ); - xReturn = prvWriteMessageToBuffer( pxStreamBuffer, pvTxData, xDataLengthBytes, xSpace, xRequiredSpace ); - - if( xReturn > ( size_t ) 0 ) - { - /* Was a task waiting for the data? */ - if( prvBytesInBuffer( pxStreamBuffer ) >= pxStreamBuffer->xTriggerLevelBytes ) - { - sbSEND_COMPLETE_FROM_ISR( pxStreamBuffer, pxHigherPriorityTaskWoken ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - traceSTREAM_BUFFER_SEND_FROM_ISR( xStreamBuffer, xReturn ); - - return xReturn; -} -/*-----------------------------------------------------------*/ - -static size_t prvWriteMessageToBuffer( StreamBuffer_t * const pxStreamBuffer, - const void * pvTxData, - size_t xDataLengthBytes, - size_t xSpace, - size_t xRequiredSpace ) -{ - BaseType_t xShouldWrite; - size_t xReturn; - - if( xSpace == ( size_t ) 0 ) - { - /* Doesn't matter if this is a stream buffer or a message buffer, there - is no space to write. */ - xShouldWrite = pdFALSE; - } - else if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) == ( uint8_t ) 0 ) - { - /* This is a stream buffer, as opposed to a message buffer, so writing a - stream of bytes rather than discrete messages. Write as many bytes as - possible. */ - xShouldWrite = pdTRUE; - xDataLengthBytes = configMIN( xDataLengthBytes, xSpace ); - } - else if( xSpace >= xRequiredSpace ) - { - /* This is a message buffer, as opposed to a stream buffer, and there - is enough space to write both the message length and the message itself - into the buffer. Start by writing the length of the data, the data - itself will be written later in this function. */ - xShouldWrite = pdTRUE; - ( void ) prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) &( xDataLengthBytes ), sbBYTES_TO_STORE_MESSAGE_LENGTH ); - } - else - { - /* There is space available, but not enough space. */ - xShouldWrite = pdFALSE; - } - - if( xShouldWrite != pdFALSE ) - { - /* Writes the data itself. */ - xReturn = prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) pvTxData, xDataLengthBytes ); /*lint !e9079 Storage buffer is implemented as uint8_t for ease of sizing, alighment and access. */ - } - else - { - xReturn = 0; - } - - return xReturn; -} -/*-----------------------------------------------------------*/ - -size_t xStreamBufferReceive( StreamBufferHandle_t xStreamBuffer, - void *pvRxData, - size_t xBufferLengthBytes, - TickType_t xTicksToWait ) -{ -StreamBuffer_t * const pxStreamBuffer = xStreamBuffer; -size_t xReceivedLength = 0, xBytesAvailable, xBytesToStoreMessageLength; - - configASSERT( pvRxData ); - configASSERT( pxStreamBuffer ); - - /* This receive function is used by both message buffers, which store - discrete messages, and stream buffers, which store a continuous stream of - bytes. Discrete messages include an additional - sbBYTES_TO_STORE_MESSAGE_LENGTH bytes that hold the length of the - message. */ - if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_t ) 0 ) - { - xBytesToStoreMessageLength = sbBYTES_TO_STORE_MESSAGE_LENGTH; - } - else - { - xBytesToStoreMessageLength = 0; - } - - if( xTicksToWait != ( TickType_t ) 0 ) - { - /* Checking if there is data and clearing the notification state must be - performed atomically. */ - taskENTER_CRITICAL(); - { - xBytesAvailable = prvBytesInBuffer( pxStreamBuffer ); - - /* If this function was invoked by a message buffer read then - xBytesToStoreMessageLength holds the number of bytes used to hold - the length of the next discrete message. If this function was - invoked by a stream buffer read then xBytesToStoreMessageLength will - be 0. */ - if( xBytesAvailable <= xBytesToStoreMessageLength ) - { - /* Clear notification state as going to wait for data. */ - ( void ) xTaskNotifyStateClear( NULL ); - - /* Should only be one reader. */ - configASSERT( pxStreamBuffer->xTaskWaitingToReceive == NULL ); - pxStreamBuffer->xTaskWaitingToReceive = xTaskGetCurrentTaskHandle(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - taskEXIT_CRITICAL(); - - if( xBytesAvailable <= xBytesToStoreMessageLength ) - { - /* Wait for data to be available. */ - traceBLOCKING_ON_STREAM_BUFFER_RECEIVE( xStreamBuffer ); - ( void ) xTaskNotifyWait( ( uint32_t ) 0, ( uint32_t ) 0, NULL, xTicksToWait ); - pxStreamBuffer->xTaskWaitingToReceive = NULL; - - /* Recheck the data available after blocking. */ - xBytesAvailable = prvBytesInBuffer( pxStreamBuffer ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - xBytesAvailable = prvBytesInBuffer( pxStreamBuffer ); - } - - /* Whether receiving a discrete message (where xBytesToStoreMessageLength - holds the number of bytes used to store the message length) or a stream of - bytes (where xBytesToStoreMessageLength is zero), the number of bytes - available must be greater than xBytesToStoreMessageLength to be able to - read bytes from the buffer. */ - if( xBytesAvailable > xBytesToStoreMessageLength ) - { - xReceivedLength = prvReadMessageFromBuffer( pxStreamBuffer, pvRxData, xBufferLengthBytes, xBytesAvailable, xBytesToStoreMessageLength ); - - /* Was a task waiting for space in the buffer? */ - if( xReceivedLength != ( size_t ) 0 ) - { - traceSTREAM_BUFFER_RECEIVE( xStreamBuffer, xReceivedLength ); - sbRECEIVE_COMPLETED( pxStreamBuffer ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - traceSTREAM_BUFFER_RECEIVE_FAILED( xStreamBuffer ); - mtCOVERAGE_TEST_MARKER(); - } - - return xReceivedLength; -} -/*-----------------------------------------------------------*/ - -size_t xStreamBufferNextMessageLengthBytes( StreamBufferHandle_t xStreamBuffer ) -{ -StreamBuffer_t * const pxStreamBuffer = xStreamBuffer; -size_t xReturn, xBytesAvailable, xOriginalTail; -configMESSAGE_BUFFER_LENGTH_TYPE xTempReturn; - - configASSERT( pxStreamBuffer ); - - /* Ensure the stream buffer is being used as a message buffer. */ - if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_t ) 0 ) - { - xBytesAvailable = prvBytesInBuffer( pxStreamBuffer ); - if( xBytesAvailable > sbBYTES_TO_STORE_MESSAGE_LENGTH ) - { - /* The number of bytes available is greater than the number of bytes - required to hold the length of the next message, so another message - is available. Return its length without removing the length bytes - from the buffer. A copy of the tail is stored so the buffer can be - returned to its prior state as the message is not actually being - removed from the buffer. */ - xOriginalTail = pxStreamBuffer->xTail; - ( void ) prvReadBytesFromBuffer( pxStreamBuffer, ( uint8_t * ) &xTempReturn, sbBYTES_TO_STORE_MESSAGE_LENGTH, xBytesAvailable ); - xReturn = ( size_t ) xTempReturn; - pxStreamBuffer->xTail = xOriginalTail; - } - else - { - /* The minimum amount of bytes in a message buffer is - ( sbBYTES_TO_STORE_MESSAGE_LENGTH + 1 ), so if xBytesAvailable is - less than sbBYTES_TO_STORE_MESSAGE_LENGTH the only other valid - value is 0. */ - configASSERT( xBytesAvailable == 0 ); - xReturn = 0; - } - } - else - { - xReturn = 0; - } - - return xReturn; -} -/*-----------------------------------------------------------*/ - -size_t xStreamBufferReceiveFromISR( StreamBufferHandle_t xStreamBuffer, - void *pvRxData, - size_t xBufferLengthBytes, - BaseType_t * const pxHigherPriorityTaskWoken ) -{ -StreamBuffer_t * const pxStreamBuffer = xStreamBuffer; -size_t xReceivedLength = 0, xBytesAvailable, xBytesToStoreMessageLength; - - configASSERT( pvRxData ); - configASSERT( pxStreamBuffer ); - - /* This receive function is used by both message buffers, which store - discrete messages, and stream buffers, which store a continuous stream of - bytes. Discrete messages include an additional - sbBYTES_TO_STORE_MESSAGE_LENGTH bytes that hold the length of the - message. */ - if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_t ) 0 ) - { - xBytesToStoreMessageLength = sbBYTES_TO_STORE_MESSAGE_LENGTH; - } - else - { - xBytesToStoreMessageLength = 0; - } - - xBytesAvailable = prvBytesInBuffer( pxStreamBuffer ); - - /* Whether receiving a discrete message (where xBytesToStoreMessageLength - holds the number of bytes used to store the message length) or a stream of - bytes (where xBytesToStoreMessageLength is zero), the number of bytes - available must be greater than xBytesToStoreMessageLength to be able to - read bytes from the buffer. */ - if( xBytesAvailable > xBytesToStoreMessageLength ) - { - xReceivedLength = prvReadMessageFromBuffer( pxStreamBuffer, pvRxData, xBufferLengthBytes, xBytesAvailable, xBytesToStoreMessageLength ); - - /* Was a task waiting for space in the buffer? */ - if( xReceivedLength != ( size_t ) 0 ) - { - sbRECEIVE_COMPLETED_FROM_ISR( pxStreamBuffer, pxHigherPriorityTaskWoken ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - traceSTREAM_BUFFER_RECEIVE_FROM_ISR( xStreamBuffer, xReceivedLength ); - - return xReceivedLength; -} -/*-----------------------------------------------------------*/ - -static size_t prvReadMessageFromBuffer( StreamBuffer_t *pxStreamBuffer, - void *pvRxData, - size_t xBufferLengthBytes, - size_t xBytesAvailable, - size_t xBytesToStoreMessageLength ) -{ -size_t xOriginalTail, xReceivedLength, xNextMessageLength; -configMESSAGE_BUFFER_LENGTH_TYPE xTempNextMessageLength; - - if( xBytesToStoreMessageLength != ( size_t ) 0 ) - { - /* A discrete message is being received. First receive the length - of the message. A copy of the tail is stored so the buffer can be - returned to its prior state if the length of the message is too - large for the provided buffer. */ - xOriginalTail = pxStreamBuffer->xTail; - ( void ) prvReadBytesFromBuffer( pxStreamBuffer, ( uint8_t * ) &xTempNextMessageLength, xBytesToStoreMessageLength, xBytesAvailable ); - xNextMessageLength = ( size_t ) xTempNextMessageLength; - - /* Reduce the number of bytes available by the number of bytes just - read out. */ - xBytesAvailable -= xBytesToStoreMessageLength; - - /* Check there is enough space in the buffer provided by the - user. */ - if( xNextMessageLength > xBufferLengthBytes ) - { - /* The user has provided insufficient space to read the message - so return the buffer to its previous state (so the length of - the message is in the buffer again). */ - pxStreamBuffer->xTail = xOriginalTail; - xNextMessageLength = 0; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - /* A stream of bytes is being received (as opposed to a discrete - message), so read as many bytes as possible. */ - xNextMessageLength = xBufferLengthBytes; - } - - /* Read the actual data. */ - xReceivedLength = prvReadBytesFromBuffer( pxStreamBuffer, ( uint8_t * ) pvRxData, xNextMessageLength, xBytesAvailable ); /*lint !e9079 Data storage area is implemented as uint8_t array for ease of sizing, indexing and alignment. */ - - return xReceivedLength; -} -/*-----------------------------------------------------------*/ - -BaseType_t xStreamBufferIsEmpty( StreamBufferHandle_t xStreamBuffer ) -{ -const StreamBuffer_t * const pxStreamBuffer = xStreamBuffer; -BaseType_t xReturn; -size_t xTail; - - configASSERT( pxStreamBuffer ); - - /* True if no bytes are available. */ - xTail = pxStreamBuffer->xTail; - if( pxStreamBuffer->xHead == xTail ) - { - xReturn = pdTRUE; - } - else - { - xReturn = pdFALSE; - } - - return xReturn; -} -/*-----------------------------------------------------------*/ - -BaseType_t xStreamBufferIsFull( StreamBufferHandle_t xStreamBuffer ) -{ -BaseType_t xReturn; -size_t xBytesToStoreMessageLength; -const StreamBuffer_t * const pxStreamBuffer = xStreamBuffer; - - configASSERT( pxStreamBuffer ); - - /* This generic version of the receive function is used by both message - buffers, which store discrete messages, and stream buffers, which store a - continuous stream of bytes. Discrete messages include an additional - sbBYTES_TO_STORE_MESSAGE_LENGTH bytes that hold the length of the message. */ - if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_t ) 0 ) - { - xBytesToStoreMessageLength = sbBYTES_TO_STORE_MESSAGE_LENGTH; - } - else - { - xBytesToStoreMessageLength = 0; - } - - /* True if the available space equals zero. */ - if( xStreamBufferSpacesAvailable( xStreamBuffer ) <= xBytesToStoreMessageLength ) - { - xReturn = pdTRUE; - } - else - { - xReturn = pdFALSE; - } - - return xReturn; -} -/*-----------------------------------------------------------*/ - -BaseType_t xStreamBufferSendCompletedFromISR( StreamBufferHandle_t xStreamBuffer, BaseType_t *pxHigherPriorityTaskWoken ) -{ -StreamBuffer_t * const pxStreamBuffer = xStreamBuffer; -BaseType_t xReturn; -UBaseType_t uxSavedInterruptStatus; - - configASSERT( pxStreamBuffer ); - - uxSavedInterruptStatus = ( UBaseType_t ) portSET_INTERRUPT_MASK_FROM_ISR(); - { - if( ( pxStreamBuffer )->xTaskWaitingToReceive != NULL ) - { - ( void ) xTaskNotifyFromISR( ( pxStreamBuffer )->xTaskWaitingToReceive, - ( uint32_t ) 0, - eNoAction, - pxHigherPriorityTaskWoken ); - ( pxStreamBuffer )->xTaskWaitingToReceive = NULL; - xReturn = pdTRUE; - } - else - { - xReturn = pdFALSE; - } - } - portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); - - return xReturn; -} -/*-----------------------------------------------------------*/ - -BaseType_t xStreamBufferReceiveCompletedFromISR( StreamBufferHandle_t xStreamBuffer, BaseType_t *pxHigherPriorityTaskWoken ) -{ -StreamBuffer_t * const pxStreamBuffer = xStreamBuffer; -BaseType_t xReturn; -UBaseType_t uxSavedInterruptStatus; - - configASSERT( pxStreamBuffer ); - - uxSavedInterruptStatus = ( UBaseType_t ) portSET_INTERRUPT_MASK_FROM_ISR(); - { - if( ( pxStreamBuffer )->xTaskWaitingToSend != NULL ) - { - ( void ) xTaskNotifyFromISR( ( pxStreamBuffer )->xTaskWaitingToSend, - ( uint32_t ) 0, - eNoAction, - pxHigherPriorityTaskWoken ); - ( pxStreamBuffer )->xTaskWaitingToSend = NULL; - xReturn = pdTRUE; - } - else - { - xReturn = pdFALSE; - } - } - portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); - - return xReturn; -} -/*-----------------------------------------------------------*/ - -static size_t prvWriteBytesToBuffer( StreamBuffer_t * const pxStreamBuffer, const uint8_t *pucData, size_t xCount ) -{ -size_t xNextHead, xFirstLength; - - configASSERT( xCount > ( size_t ) 0 ); - - xNextHead = pxStreamBuffer->xHead; - - /* Calculate the number of bytes that can be added in the first write - - which may be less than the total number of bytes that need to be added if - the buffer will wrap back to the beginning. */ - xFirstLength = configMIN( pxStreamBuffer->xLength - xNextHead, xCount ); - - /* Write as many bytes as can be written in the first write. */ - configASSERT( ( xNextHead + xFirstLength ) <= pxStreamBuffer->xLength ); - ( void ) memcpy( ( void* ) ( &( pxStreamBuffer->pucBuffer[ xNextHead ] ) ), ( const void * ) pucData, xFirstLength ); /*lint !e9087 memcpy() requires void *. */ - - /* If the number of bytes written was less than the number that could be - written in the first write... */ - if( xCount > xFirstLength ) - { - /* ...then write the remaining bytes to the start of the buffer. */ - configASSERT( ( xCount - xFirstLength ) <= pxStreamBuffer->xLength ); - ( void ) memcpy( ( void * ) pxStreamBuffer->pucBuffer, ( const void * ) &( pucData[ xFirstLength ] ), xCount - xFirstLength ); /*lint !e9087 memcpy() requires void *. */ - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - xNextHead += xCount; - if( xNextHead >= pxStreamBuffer->xLength ) - { - xNextHead -= pxStreamBuffer->xLength; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - pxStreamBuffer->xHead = xNextHead; - - return xCount; -} -/*-----------------------------------------------------------*/ - -static size_t prvReadBytesFromBuffer( StreamBuffer_t *pxStreamBuffer, uint8_t *pucData, size_t xMaxCount, size_t xBytesAvailable ) -{ -size_t xCount, xFirstLength, xNextTail; - - /* Use the minimum of the wanted bytes and the available bytes. */ - xCount = configMIN( xBytesAvailable, xMaxCount ); - - if( xCount > ( size_t ) 0 ) - { - xNextTail = pxStreamBuffer->xTail; - - /* Calculate the number of bytes that can be read - which may be - less than the number wanted if the data wraps around to the start of - the buffer. */ - xFirstLength = configMIN( pxStreamBuffer->xLength - xNextTail, xCount ); - - /* Obtain the number of bytes it is possible to obtain in the first - read. Asserts check bounds of read and write. */ - configASSERT( xFirstLength <= xMaxCount ); - configASSERT( ( xNextTail + xFirstLength ) <= pxStreamBuffer->xLength ); - ( void ) memcpy( ( void * ) pucData, ( const void * ) &( pxStreamBuffer->pucBuffer[ xNextTail ] ), xFirstLength ); /*lint !e9087 memcpy() requires void *. */ - - /* If the total number of wanted bytes is greater than the number - that could be read in the first read... */ - if( xCount > xFirstLength ) - { - /*...then read the remaining bytes from the start of the buffer. */ - configASSERT( xCount <= xMaxCount ); - ( void ) memcpy( ( void * ) &( pucData[ xFirstLength ] ), ( void * ) ( pxStreamBuffer->pucBuffer ), xCount - xFirstLength ); /*lint !e9087 memcpy() requires void *. */ - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - /* Move the tail pointer to effectively remove the data read from - the buffer. */ - xNextTail += xCount; - - if( xNextTail >= pxStreamBuffer->xLength ) - { - xNextTail -= pxStreamBuffer->xLength; - } - - pxStreamBuffer->xTail = xNextTail; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - return xCount; -} -/*-----------------------------------------------------------*/ - -static size_t prvBytesInBuffer( const StreamBuffer_t * const pxStreamBuffer ) -{ -/* Returns the distance between xTail and xHead. */ -size_t xCount; - - xCount = pxStreamBuffer->xLength + pxStreamBuffer->xHead; - xCount -= pxStreamBuffer->xTail; - if ( xCount >= pxStreamBuffer->xLength ) - { - xCount -= pxStreamBuffer->xLength; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - return xCount; -} -/*-----------------------------------------------------------*/ - -static void prvInitialiseNewStreamBuffer( StreamBuffer_t * const pxStreamBuffer, - uint8_t * const pucBuffer, - size_t xBufferSizeBytes, - size_t xTriggerLevelBytes, - uint8_t ucFlags ) -{ - /* Assert here is deliberately writing to the entire buffer to ensure it can - be written to without generating exceptions, and is setting the buffer to a - known value to assist in development/debugging. */ - #if( configASSERT_DEFINED == 1 ) - { - /* The value written just has to be identifiable when looking at the - memory. Don't use 0xA5 as that is the stack fill value and could - result in confusion as to what is actually being observed. */ - const BaseType_t xWriteValue = 0x55; - configASSERT( memset( pucBuffer, ( int ) xWriteValue, xBufferSizeBytes ) == pucBuffer ); - } /*lint !e529 !e438 xWriteValue is only used if configASSERT() is defined. */ - #endif - - ( void ) memset( ( void * ) pxStreamBuffer, 0x00, sizeof( StreamBuffer_t ) ); /*lint !e9087 memset() requires void *. */ - pxStreamBuffer->pucBuffer = pucBuffer; - pxStreamBuffer->xLength = xBufferSizeBytes; - pxStreamBuffer->xTriggerLevelBytes = xTriggerLevelBytes; - pxStreamBuffer->ucFlags = ucFlags; -} - -#if ( configUSE_TRACE_FACILITY == 1 ) - - UBaseType_t uxStreamBufferGetStreamBufferNumber( StreamBufferHandle_t xStreamBuffer ) - { - return xStreamBuffer->uxStreamBufferNumber; - } - -#endif /* configUSE_TRACE_FACILITY */ -/*-----------------------------------------------------------*/ - -#if ( configUSE_TRACE_FACILITY == 1 ) - - void vStreamBufferSetStreamBufferNumber( StreamBufferHandle_t xStreamBuffer, UBaseType_t uxStreamBufferNumber ) - { - xStreamBuffer->uxStreamBufferNumber = uxStreamBufferNumber; - } - -#endif /* configUSE_TRACE_FACILITY */ -/*-----------------------------------------------------------*/ - -#if ( configUSE_TRACE_FACILITY == 1 ) - - uint8_t ucStreamBufferGetStreamBufferType( StreamBufferHandle_t xStreamBuffer ) - { - return ( xStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ); - } - -#endif /* configUSE_TRACE_FACILITY */ -/*-----------------------------------------------------------*/ diff --git a/Middlewares/Third_Party/FreeRTOS/Source/tasks.c b/Middlewares/Third_Party/FreeRTOS/Source/tasks.c deleted file mode 100644 index f6a6a9b..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/tasks.c +++ /dev/null @@ -1,5310 +0,0 @@ -/* - * FreeRTOS Kernel V10.3.1 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - -/* Standard includes. */ -#include -#include - -/* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining -all the API functions to use the MPU wrappers. That should only be done when -task.h is included from an application file. */ -#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE - -/* FreeRTOS includes. */ -#include "FreeRTOS.h" -#include "task.h" -#include "timers.h" -#include "stack_macros.h" - -/* Lint e9021, e961 and e750 are suppressed as a MISRA exception justified -because the MPU ports require MPU_WRAPPERS_INCLUDED_FROM_API_FILE to be defined -for the header files above, but not in this file, in order to generate the -correct privileged Vs unprivileged linkage and placement. */ -#undef MPU_WRAPPERS_INCLUDED_FROM_API_FILE /*lint !e961 !e750 !e9021. */ - -/* Set configUSE_STATS_FORMATTING_FUNCTIONS to 2 to include the stats formatting -functions but without including stdio.h here. */ -#if ( configUSE_STATS_FORMATTING_FUNCTIONS == 1 ) - /* At the bottom of this file are two optional functions that can be used - to generate human readable text from the raw data generated by the - uxTaskGetSystemState() function. Note the formatting functions are provided - for convenience only, and are NOT considered part of the kernel. */ - #include -#endif /* configUSE_STATS_FORMATTING_FUNCTIONS == 1 ) */ - -#if( configUSE_PREEMPTION == 0 ) - /* If the cooperative scheduler is being used then a yield should not be - performed just because a higher priority task has been woken. */ - #define taskYIELD_IF_USING_PREEMPTION() -#else - #define taskYIELD_IF_USING_PREEMPTION() portYIELD_WITHIN_API() -#endif - -/* Values that can be assigned to the ucNotifyState member of the TCB. */ -#define taskNOT_WAITING_NOTIFICATION ( ( uint8_t ) 0 ) -#define taskWAITING_NOTIFICATION ( ( uint8_t ) 1 ) -#define taskNOTIFICATION_RECEIVED ( ( uint8_t ) 2 ) - -/* - * The value used to fill the stack of a task when the task is created. This - * is used purely for checking the high water mark for tasks. - */ -#define tskSTACK_FILL_BYTE ( 0xa5U ) - -/* Bits used to recored how a task's stack and TCB were allocated. */ -#define tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB ( ( uint8_t ) 0 ) -#define tskSTATICALLY_ALLOCATED_STACK_ONLY ( ( uint8_t ) 1 ) -#define tskSTATICALLY_ALLOCATED_STACK_AND_TCB ( ( uint8_t ) 2 ) - -/* If any of the following are set then task stacks are filled with a known -value so the high water mark can be determined. If none of the following are -set then don't fill the stack so there is no unnecessary dependency on memset. */ -#if( ( configCHECK_FOR_STACK_OVERFLOW > 1 ) || ( configUSE_TRACE_FACILITY == 1 ) || ( INCLUDE_uxTaskGetStackHighWaterMark == 1 ) || ( INCLUDE_uxTaskGetStackHighWaterMark2 == 1 ) ) - #define tskSET_NEW_STACKS_TO_KNOWN_VALUE 1 -#else - #define tskSET_NEW_STACKS_TO_KNOWN_VALUE 0 -#endif - -/* - * Macros used by vListTask to indicate which state a task is in. - */ -#define tskRUNNING_CHAR ( 'X' ) -#define tskBLOCKED_CHAR ( 'B' ) -#define tskREADY_CHAR ( 'R' ) -#define tskDELETED_CHAR ( 'D' ) -#define tskSUSPENDED_CHAR ( 'S' ) - -/* - * Some kernel aware debuggers require the data the debugger needs access to be - * global, rather than file scope. - */ -#ifdef portREMOVE_STATIC_QUALIFIER - #define static -#endif - -/* The name allocated to the Idle task. This can be overridden by defining -configIDLE_TASK_NAME in FreeRTOSConfig.h. */ -#ifndef configIDLE_TASK_NAME - #define configIDLE_TASK_NAME "IDLE" -#endif - -#if ( configUSE_PORT_OPTIMISED_TASK_SELECTION == 0 ) - - /* If configUSE_PORT_OPTIMISED_TASK_SELECTION is 0 then task selection is - performed in a generic way that is not optimised to any particular - microcontroller architecture. */ - - /* uxTopReadyPriority holds the priority of the highest priority ready - state task. */ - #define taskRECORD_READY_PRIORITY( uxPriority ) \ - { \ - if( ( uxPriority ) > uxTopReadyPriority ) \ - { \ - uxTopReadyPriority = ( uxPriority ); \ - } \ - } /* taskRECORD_READY_PRIORITY */ - - /*-----------------------------------------------------------*/ - - #define taskSELECT_HIGHEST_PRIORITY_TASK() \ - { \ - UBaseType_t uxTopPriority = uxTopReadyPriority; \ - \ - /* Find the highest priority queue that contains ready tasks. */ \ - while( listLIST_IS_EMPTY( &( pxReadyTasksLists[ uxTopPriority ] ) ) ) \ - { \ - configASSERT( uxTopPriority ); \ - --uxTopPriority; \ - } \ - \ - /* listGET_OWNER_OF_NEXT_ENTRY indexes through the list, so the tasks of \ - the same priority get an equal share of the processor time. */ \ - listGET_OWNER_OF_NEXT_ENTRY( pxCurrentTCB, &( pxReadyTasksLists[ uxTopPriority ] ) ); \ - uxTopReadyPriority = uxTopPriority; \ - } /* taskSELECT_HIGHEST_PRIORITY_TASK */ - - /*-----------------------------------------------------------*/ - - /* Define away taskRESET_READY_PRIORITY() and portRESET_READY_PRIORITY() as - they are only required when a port optimised method of task selection is - being used. */ - #define taskRESET_READY_PRIORITY( uxPriority ) - #define portRESET_READY_PRIORITY( uxPriority, uxTopReadyPriority ) - -#else /* configUSE_PORT_OPTIMISED_TASK_SELECTION */ - - /* If configUSE_PORT_OPTIMISED_TASK_SELECTION is 1 then task selection is - performed in a way that is tailored to the particular microcontroller - architecture being used. */ - - /* A port optimised version is provided. Call the port defined macros. */ - #define taskRECORD_READY_PRIORITY( uxPriority ) portRECORD_READY_PRIORITY( uxPriority, uxTopReadyPriority ) - - /*-----------------------------------------------------------*/ - - #define taskSELECT_HIGHEST_PRIORITY_TASK() \ - { \ - UBaseType_t uxTopPriority; \ - \ - /* Find the highest priority list that contains ready tasks. */ \ - portGET_HIGHEST_PRIORITY( uxTopPriority, uxTopReadyPriority ); \ - configASSERT( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ uxTopPriority ] ) ) > 0 ); \ - listGET_OWNER_OF_NEXT_ENTRY( pxCurrentTCB, &( pxReadyTasksLists[ uxTopPriority ] ) ); \ - } /* taskSELECT_HIGHEST_PRIORITY_TASK() */ - - /*-----------------------------------------------------------*/ - - /* A port optimised version is provided, call it only if the TCB being reset - is being referenced from a ready list. If it is referenced from a delayed - or suspended list then it won't be in a ready list. */ - #define taskRESET_READY_PRIORITY( uxPriority ) \ - { \ - if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ ( uxPriority ) ] ) ) == ( UBaseType_t ) 0 ) \ - { \ - portRESET_READY_PRIORITY( ( uxPriority ), ( uxTopReadyPriority ) ); \ - } \ - } - -#endif /* configUSE_PORT_OPTIMISED_TASK_SELECTION */ - -/*-----------------------------------------------------------*/ - -/* pxDelayedTaskList and pxOverflowDelayedTaskList are switched when the tick -count overflows. */ -#define taskSWITCH_DELAYED_LISTS() \ -{ \ - List_t *pxTemp; \ - \ - /* The delayed tasks list should be empty when the lists are switched. */ \ - configASSERT( ( listLIST_IS_EMPTY( pxDelayedTaskList ) ) ); \ - \ - pxTemp = pxDelayedTaskList; \ - pxDelayedTaskList = pxOverflowDelayedTaskList; \ - pxOverflowDelayedTaskList = pxTemp; \ - xNumOfOverflows++; \ - prvResetNextTaskUnblockTime(); \ -} - -/*-----------------------------------------------------------*/ - -/* - * Place the task represented by pxTCB into the appropriate ready list for - * the task. It is inserted at the end of the list. - */ -#define prvAddTaskToReadyList( pxTCB ) \ - traceMOVED_TASK_TO_READY_STATE( pxTCB ); \ - taskRECORD_READY_PRIORITY( ( pxTCB )->uxPriority ); \ - vListInsertEnd( &( pxReadyTasksLists[ ( pxTCB )->uxPriority ] ), &( ( pxTCB )->xStateListItem ) ); \ - tracePOST_MOVED_TASK_TO_READY_STATE( pxTCB ) -/*-----------------------------------------------------------*/ - -/* - * Several functions take an TaskHandle_t parameter that can optionally be NULL, - * where NULL is used to indicate that the handle of the currently executing - * task should be used in place of the parameter. This macro simply checks to - * see if the parameter is NULL and returns a pointer to the appropriate TCB. - */ -#define prvGetTCBFromHandle( pxHandle ) ( ( ( pxHandle ) == NULL ) ? pxCurrentTCB : ( pxHandle ) ) - -/* The item value of the event list item is normally used to hold the priority -of the task to which it belongs (coded to allow it to be held in reverse -priority order). However, it is occasionally borrowed for other purposes. It -is important its value is not updated due to a task priority change while it is -being used for another purpose. The following bit definition is used to inform -the scheduler that the value should not be changed - in which case it is the -responsibility of whichever module is using the value to ensure it gets set back -to its original value when it is released. */ -#if( configUSE_16_BIT_TICKS == 1 ) - #define taskEVENT_LIST_ITEM_VALUE_IN_USE 0x8000U -#else - #define taskEVENT_LIST_ITEM_VALUE_IN_USE 0x80000000UL -#endif - -/* - * Task control block. A task control block (TCB) is allocated for each task, - * and stores task state information, including a pointer to the task's context - * (the task's run time environment, including register values) - */ -typedef struct tskTaskControlBlock /* The old naming convention is used to prevent breaking kernel aware debuggers. */ -{ - volatile StackType_t *pxTopOfStack; /*< Points to the location of the last item placed on the tasks stack. THIS MUST BE THE FIRST MEMBER OF THE TCB STRUCT. */ - - #if ( portUSING_MPU_WRAPPERS == 1 ) - xMPU_SETTINGS xMPUSettings; /*< The MPU settings are defined as part of the port layer. THIS MUST BE THE SECOND MEMBER OF THE TCB STRUCT. */ - #endif - - ListItem_t xStateListItem; /*< The list that the state list item of a task is reference from denotes the state of that task (Ready, Blocked, Suspended ). */ - ListItem_t xEventListItem; /*< Used to reference a task from an event list. */ - UBaseType_t uxPriority; /*< The priority of the task. 0 is the lowest priority. */ - StackType_t *pxStack; /*< Points to the start of the stack. */ - char pcTaskName[ configMAX_TASK_NAME_LEN ];/*< Descriptive name given to the task when created. Facilitates debugging only. */ /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ - - #if ( ( portSTACK_GROWTH > 0 ) || ( configRECORD_STACK_HIGH_ADDRESS == 1 ) ) - StackType_t *pxEndOfStack; /*< Points to the highest valid address for the stack. */ - #endif - - #if ( portCRITICAL_NESTING_IN_TCB == 1 ) - UBaseType_t uxCriticalNesting; /*< Holds the critical section nesting depth for ports that do not maintain their own count in the port layer. */ - #endif - - #if ( configUSE_TRACE_FACILITY == 1 ) - UBaseType_t uxTCBNumber; /*< Stores a number that increments each time a TCB is created. It allows debuggers to determine when a task has been deleted and then recreated. */ - UBaseType_t uxTaskNumber; /*< Stores a number specifically for use by third party trace code. */ - #endif - - #if ( configUSE_MUTEXES == 1 ) - UBaseType_t uxBasePriority; /*< The priority last assigned to the task - used by the priority inheritance mechanism. */ - UBaseType_t uxMutexesHeld; - #endif - - #if ( configUSE_APPLICATION_TASK_TAG == 1 ) - TaskHookFunction_t pxTaskTag; - #endif - - #if( configNUM_THREAD_LOCAL_STORAGE_POINTERS > 0 ) - void *pvThreadLocalStoragePointers[ configNUM_THREAD_LOCAL_STORAGE_POINTERS ]; - #endif - - #if( configGENERATE_RUN_TIME_STATS == 1 ) - uint32_t ulRunTimeCounter; /*< Stores the amount of time the task has spent in the Running state. */ - #endif - - #if ( configUSE_NEWLIB_REENTRANT == 1 ) - /* Allocate a Newlib reent structure that is specific to this task. - Note Newlib support has been included by popular demand, but is not - used by the FreeRTOS maintainers themselves. FreeRTOS is not - responsible for resulting newlib operation. User must be familiar with - newlib and must provide system-wide implementations of the necessary - stubs. Be warned that (at the time of writing) the current newlib design - implements a system-wide malloc() that must be provided with locks. - - See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html - for additional information. */ - struct _reent xNewLib_reent; - #endif - - #if( configUSE_TASK_NOTIFICATIONS == 1 ) - volatile uint32_t ulNotifiedValue; - volatile uint8_t ucNotifyState; - #endif - - /* See the comments in FreeRTOS.h with the definition of - tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE. */ - #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */ - uint8_t ucStaticallyAllocated; /*< Set to pdTRUE if the task is a statically allocated to ensure no attempt is made to free the memory. */ - #endif - - #if( INCLUDE_xTaskAbortDelay == 1 ) - uint8_t ucDelayAborted; - #endif - - #if( configUSE_POSIX_ERRNO == 1 ) - int iTaskErrno; - #endif - -} tskTCB; - -/* The old tskTCB name is maintained above then typedefed to the new TCB_t name -below to enable the use of older kernel aware debuggers. */ -typedef tskTCB TCB_t; - -/*lint -save -e956 A manual analysis and inspection has been used to determine -which static variables must be declared volatile. */ -PRIVILEGED_DATA TCB_t * volatile pxCurrentTCB = NULL; - -/* Lists for ready and blocked tasks. -------------------- -xDelayedTaskList1 and xDelayedTaskList2 could be move to function scople but -doing so breaks some kernel aware debuggers and debuggers that rely on removing -the static qualifier. */ -PRIVILEGED_DATA static List_t pxReadyTasksLists[ configMAX_PRIORITIES ];/*< Prioritised ready tasks. */ -PRIVILEGED_DATA static List_t xDelayedTaskList1; /*< Delayed tasks. */ -PRIVILEGED_DATA static List_t xDelayedTaskList2; /*< Delayed tasks (two lists are used - one for delays that have overflowed the current tick count. */ -PRIVILEGED_DATA static List_t * volatile pxDelayedTaskList; /*< Points to the delayed task list currently being used. */ -PRIVILEGED_DATA static List_t * volatile pxOverflowDelayedTaskList; /*< Points to the delayed task list currently being used to hold tasks that have overflowed the current tick count. */ -PRIVILEGED_DATA static List_t xPendingReadyList; /*< Tasks that have been readied while the scheduler was suspended. They will be moved to the ready list when the scheduler is resumed. */ - -#if( INCLUDE_vTaskDelete == 1 ) - - PRIVILEGED_DATA static List_t xTasksWaitingTermination; /*< Tasks that have been deleted - but their memory not yet freed. */ - PRIVILEGED_DATA static volatile UBaseType_t uxDeletedTasksWaitingCleanUp = ( UBaseType_t ) 0U; - -#endif - -#if ( INCLUDE_vTaskSuspend == 1 ) - - PRIVILEGED_DATA static List_t xSuspendedTaskList; /*< Tasks that are currently suspended. */ - -#endif - -/* Global POSIX errno. Its value is changed upon context switching to match -the errno of the currently running task. */ -#if ( configUSE_POSIX_ERRNO == 1 ) - int FreeRTOS_errno = 0; -#endif - -/* Other file private variables. --------------------------------*/ -PRIVILEGED_DATA static volatile UBaseType_t uxCurrentNumberOfTasks = ( UBaseType_t ) 0U; -PRIVILEGED_DATA static volatile TickType_t xTickCount = ( TickType_t ) configINITIAL_TICK_COUNT; -PRIVILEGED_DATA static volatile UBaseType_t uxTopReadyPriority = tskIDLE_PRIORITY; -PRIVILEGED_DATA static volatile BaseType_t xSchedulerRunning = pdFALSE; -PRIVILEGED_DATA static volatile TickType_t xPendedTicks = ( TickType_t ) 0U; -PRIVILEGED_DATA static volatile BaseType_t xYieldPending = pdFALSE; -PRIVILEGED_DATA static volatile BaseType_t xNumOfOverflows = ( BaseType_t ) 0; -PRIVILEGED_DATA static UBaseType_t uxTaskNumber = ( UBaseType_t ) 0U; -PRIVILEGED_DATA static volatile TickType_t xNextTaskUnblockTime = ( TickType_t ) 0U; /* Initialised to portMAX_DELAY before the scheduler starts. */ -PRIVILEGED_DATA static TaskHandle_t xIdleTaskHandle = NULL; /*< Holds the handle of the idle task. The idle task is created automatically when the scheduler is started. */ - -/* Context switches are held pending while the scheduler is suspended. Also, -interrupts must not manipulate the xStateListItem of a TCB, or any of the -lists the xStateListItem can be referenced from, if the scheduler is suspended. -If an interrupt needs to unblock a task while the scheduler is suspended then it -moves the task's event list item into the xPendingReadyList, ready for the -kernel to move the task from the pending ready list into the real ready list -when the scheduler is unsuspended. The pending ready list itself can only be -accessed from a critical section. */ -PRIVILEGED_DATA static volatile UBaseType_t uxSchedulerSuspended = ( UBaseType_t ) pdFALSE; - -#if ( configGENERATE_RUN_TIME_STATS == 1 ) - - /* Do not move these variables to function scope as doing so prevents the - code working with debuggers that need to remove the static qualifier. */ - PRIVILEGED_DATA static uint32_t ulTaskSwitchedInTime = 0UL; /*< Holds the value of a timer/counter the last time a task was switched in. */ - PRIVILEGED_DATA static uint32_t ulTotalRunTime = 0UL; /*< Holds the total amount of execution time as defined by the run time counter clock. */ - -#endif - -/*lint -restore */ - -/*-----------------------------------------------------------*/ - -/* Callback function prototypes. --------------------------*/ -#if( configCHECK_FOR_STACK_OVERFLOW > 0 ) - - extern void vApplicationStackOverflowHook( TaskHandle_t xTask, char *pcTaskName ); - -#endif - -#if( configUSE_TICK_HOOK > 0 ) - - extern void vApplicationTickHook( void ); /*lint !e526 Symbol not defined as it is an application callback. */ - -#endif - -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) - - extern void vApplicationGetIdleTaskMemory( StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize ); /*lint !e526 Symbol not defined as it is an application callback. */ - -#endif - -/* File private functions. --------------------------------*/ - -/** - * Utility task that simply returns pdTRUE if the task referenced by xTask is - * currently in the Suspended state, or pdFALSE if the task referenced by xTask - * is in any other state. - */ -#if ( INCLUDE_vTaskSuspend == 1 ) - - static BaseType_t prvTaskIsTaskSuspended( const TaskHandle_t xTask ) PRIVILEGED_FUNCTION; - -#endif /* INCLUDE_vTaskSuspend */ - -/* - * Utility to ready all the lists used by the scheduler. This is called - * automatically upon the creation of the first task. - */ -static void prvInitialiseTaskLists( void ) PRIVILEGED_FUNCTION; - -/* - * The idle task, which as all tasks is implemented as a never ending loop. - * The idle task is automatically created and added to the ready lists upon - * creation of the first user task. - * - * The portTASK_FUNCTION_PROTO() macro is used to allow port/compiler specific - * language extensions. The equivalent prototype for this function is: - * - * void prvIdleTask( void *pvParameters ); - * - */ -static portTASK_FUNCTION_PROTO( prvIdleTask, pvParameters ); - -/* - * Utility to free all memory allocated by the scheduler to hold a TCB, - * including the stack pointed to by the TCB. - * - * This does not free memory allocated by the task itself (i.e. memory - * allocated by calls to pvPortMalloc from within the tasks application code). - */ -#if ( INCLUDE_vTaskDelete == 1 ) - - static void prvDeleteTCB( TCB_t *pxTCB ) PRIVILEGED_FUNCTION; - -#endif - -/* - * Used only by the idle task. This checks to see if anything has been placed - * in the list of tasks waiting to be deleted. If so the task is cleaned up - * and its TCB deleted. - */ -static void prvCheckTasksWaitingTermination( void ) PRIVILEGED_FUNCTION; - -/* - * The currently executing task is entering the Blocked state. Add the task to - * either the current or the overflow delayed task list. - */ -static void prvAddCurrentTaskToDelayedList( TickType_t xTicksToWait, const BaseType_t xCanBlockIndefinitely ) PRIVILEGED_FUNCTION; - -/* - * Fills an TaskStatus_t structure with information on each task that is - * referenced from the pxList list (which may be a ready list, a delayed list, - * a suspended list, etc.). - * - * THIS FUNCTION IS INTENDED FOR DEBUGGING ONLY, AND SHOULD NOT BE CALLED FROM - * NORMAL APPLICATION CODE. - */ -#if ( configUSE_TRACE_FACILITY == 1 ) - - static UBaseType_t prvListTasksWithinSingleList( TaskStatus_t *pxTaskStatusArray, List_t *pxList, eTaskState eState ) PRIVILEGED_FUNCTION; - -#endif - -/* - * Searches pxList for a task with name pcNameToQuery - returning a handle to - * the task if it is found, or NULL if the task is not found. - */ -#if ( INCLUDE_xTaskGetHandle == 1 ) - - static TCB_t *prvSearchForNameWithinSingleList( List_t *pxList, const char pcNameToQuery[] ) PRIVILEGED_FUNCTION; - -#endif - -/* - * When a task is created, the stack of the task is filled with a known value. - * This function determines the 'high water mark' of the task stack by - * determining how much of the stack remains at the original preset value. - */ -#if ( ( configUSE_TRACE_FACILITY == 1 ) || ( INCLUDE_uxTaskGetStackHighWaterMark == 1 ) || ( INCLUDE_uxTaskGetStackHighWaterMark2 == 1 ) ) - - static configSTACK_DEPTH_TYPE prvTaskCheckFreeStackSpace( const uint8_t * pucStackByte ) PRIVILEGED_FUNCTION; - -#endif - -/* - * Return the amount of time, in ticks, that will pass before the kernel will - * next move a task from the Blocked state to the Running state. - * - * This conditional compilation should use inequality to 0, not equality to 1. - * This is to ensure portSUPPRESS_TICKS_AND_SLEEP() can be called when user - * defined low power mode implementations require configUSE_TICKLESS_IDLE to be - * set to a value other than 1. - */ -#if ( configUSE_TICKLESS_IDLE != 0 ) - - static TickType_t prvGetExpectedIdleTime( void ) PRIVILEGED_FUNCTION; - -#endif - -/* - * Set xNextTaskUnblockTime to the time at which the next Blocked state task - * will exit the Blocked state. - */ -static void prvResetNextTaskUnblockTime( void ); - -#if ( ( configUSE_TRACE_FACILITY == 1 ) && ( configUSE_STATS_FORMATTING_FUNCTIONS > 0 ) ) - - /* - * Helper function used to pad task names with spaces when printing out - * human readable tables of task information. - */ - static char *prvWriteNameToBuffer( char *pcBuffer, const char *pcTaskName ) PRIVILEGED_FUNCTION; - -#endif - -/* - * Called after a Task_t structure has been allocated either statically or - * dynamically to fill in the structure's members. - */ -static void prvInitialiseNewTask( TaskFunction_t pxTaskCode, - const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ - const uint32_t ulStackDepth, - void * const pvParameters, - UBaseType_t uxPriority, - TaskHandle_t * const pxCreatedTask, - TCB_t *pxNewTCB, - const MemoryRegion_t * const xRegions ) PRIVILEGED_FUNCTION; - -/* - * Called after a new task has been created and initialised to place the task - * under the control of the scheduler. - */ -static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB ) PRIVILEGED_FUNCTION; - -/* - * freertos_tasks_c_additions_init() should only be called if the user definable - * macro FREERTOS_TASKS_C_ADDITIONS_INIT() is defined, as that is the only macro - * called by the function. - */ -#ifdef FREERTOS_TASKS_C_ADDITIONS_INIT - - static void freertos_tasks_c_additions_init( void ) PRIVILEGED_FUNCTION; - -#endif - -/*-----------------------------------------------------------*/ - -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) - - TaskHandle_t xTaskCreateStatic( TaskFunction_t pxTaskCode, - const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ - const uint32_t ulStackDepth, - void * const pvParameters, - UBaseType_t uxPriority, - StackType_t * const puxStackBuffer, - StaticTask_t * const pxTaskBuffer ) - { - TCB_t *pxNewTCB; - TaskHandle_t xReturn; - - configASSERT( puxStackBuffer != NULL ); - configASSERT( pxTaskBuffer != NULL ); - - #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 ); - configASSERT( xSize == sizeof( TCB_t ) ); - ( void ) xSize; /* Prevent lint warning when configASSERT() is not used. */ - } - #endif /* configASSERT_DEFINED */ - - - if( ( pxTaskBuffer != NULL ) && ( puxStackBuffer != NULL ) ) - { - /* 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. */ - pxNewTCB->pxStack = ( StackType_t * ) puxStackBuffer; - - #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; - } - #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */ - - prvInitialiseNewTask( pxTaskCode, pcName, ulStackDepth, pvParameters, uxPriority, &xReturn, pxNewTCB, NULL ); - prvAddNewTaskToReadyList( pxNewTCB ); - } - else - { - xReturn = NULL; - } - - return xReturn; - } - -#endif /* SUPPORT_STATIC_ALLOCATION */ -/*-----------------------------------------------------------*/ - -#if( ( portUSING_MPU_WRAPPERS == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) ) - - BaseType_t xTaskCreateRestrictedStatic( const TaskParameters_t * const pxTaskDefinition, TaskHandle_t *pxCreatedTask ) - { - TCB_t *pxNewTCB; - BaseType_t xReturn = errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY; - - configASSERT( pxTaskDefinition->puxStackBuffer != NULL ); - configASSERT( pxTaskDefinition->pxTaskBuffer != NULL ); - - if( ( pxTaskDefinition->puxStackBuffer != NULL ) && ( pxTaskDefinition->pxTaskBuffer != NULL ) ) - { - /* Allocate space for the TCB. Where the memory comes from depends - on the implementation of the port malloc function and whether or - not static allocation is being used. */ - pxNewTCB = ( TCB_t * ) pxTaskDefinition->pxTaskBuffer; - - /* Store the stack location in the TCB. */ - pxNewTCB->pxStack = pxTaskDefinition->puxStackBuffer; - - #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) - { - /* 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; - } - #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */ - - prvInitialiseNewTask( pxTaskDefinition->pvTaskCode, - pxTaskDefinition->pcName, - ( uint32_t ) pxTaskDefinition->usStackDepth, - pxTaskDefinition->pvParameters, - pxTaskDefinition->uxPriority, - pxCreatedTask, pxNewTCB, - pxTaskDefinition->xRegions ); - - prvAddNewTaskToReadyList( pxNewTCB ); - xReturn = pdPASS; - } - - return xReturn; - } - -#endif /* ( portUSING_MPU_WRAPPERS == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) */ -/*-----------------------------------------------------------*/ - -#if( ( portUSING_MPU_WRAPPERS == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) - - BaseType_t xTaskCreateRestricted( const TaskParameters_t * const pxTaskDefinition, TaskHandle_t *pxCreatedTask ) - { - TCB_t *pxNewTCB; - BaseType_t xReturn = errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY; - - configASSERT( pxTaskDefinition->puxStackBuffer ); - - if( pxTaskDefinition->puxStackBuffer != NULL ) - { - /* Allocate space for the TCB. Where the memory comes from depends - on the implementation of the port malloc function and whether or - not static allocation is being used. */ - pxNewTCB = ( TCB_t * ) pvPortMalloc( sizeof( TCB_t ) ); - - if( pxNewTCB != NULL ) - { - /* Store the stack location in the TCB. */ - pxNewTCB->pxStack = pxTaskDefinition->puxStackBuffer; - - #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) - { - /* Tasks can be created statically or dynamically, so note - this task had a statically allocated stack in case it is - later deleted. The TCB was allocated dynamically. */ - pxNewTCB->ucStaticallyAllocated = tskSTATICALLY_ALLOCATED_STACK_ONLY; - } - #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */ - - prvInitialiseNewTask( pxTaskDefinition->pvTaskCode, - pxTaskDefinition->pcName, - ( uint32_t ) pxTaskDefinition->usStackDepth, - pxTaskDefinition->pvParameters, - pxTaskDefinition->uxPriority, - pxCreatedTask, pxNewTCB, - pxTaskDefinition->xRegions ); - - prvAddNewTaskToReadyList( pxNewTCB ); - xReturn = pdPASS; - } - } - - return xReturn; - } - -#endif /* portUSING_MPU_WRAPPERS */ -/*-----------------------------------------------------------*/ - -#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) - - BaseType_t xTaskCreate( TaskFunction_t pxTaskCode, - 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 ) - { - TCB_t *pxNewTCB; - BaseType_t xReturn; - - /* If the stack grows down then allocate the stack then the TCB so the stack - does not grow into the TCB. Likewise if the stack grows up then allocate - the TCB then the stack. */ - #if( portSTACK_GROWTH > 0 ) - { - /* Allocate space for the TCB. Where the memory comes from depends on - the implementation of the port malloc function and whether or not static - allocation is being used. */ - pxNewTCB = ( TCB_t * ) pvPortMalloc( sizeof( TCB_t ) ); - - if( pxNewTCB != NULL ) - { - /* Allocate space for the stack used by the task being created. - The base of the stack memory stored in the TCB so the task can - be deleted later if required. */ - pxNewTCB->pxStack = ( StackType_t * ) pvPortMalloc( ( ( ( size_t ) usStackDepth ) * sizeof( StackType_t ) ) ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */ - - if( pxNewTCB->pxStack == NULL ) - { - /* Could not allocate the stack. Delete the allocated TCB. */ - vPortFree( pxNewTCB ); - pxNewTCB = NULL; - } - } - } - #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. */ - - if( pxStack != NULL ) - { - /* 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. */ - - if( pxNewTCB != NULL ) - { - /* Store the stack location in the TCB. */ - pxNewTCB->pxStack = pxStack; - } - else - { - /* The stack cannot be used as the TCB was not created. Free - it again. */ - vPortFree( pxStack ); - } - } - else - { - pxNewTCB = NULL; - } - } - #endif /* portSTACK_GROWTH */ - - if( pxNewTCB != NULL ) - { - #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; - } - #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */ - - prvInitialiseNewTask( pxTaskCode, pcName, ( uint32_t ) usStackDepth, pvParameters, uxPriority, pxCreatedTask, pxNewTCB, NULL ); - prvAddNewTaskToReadyList( pxNewTCB ); - xReturn = pdPASS; - } - else - { - xReturn = errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY; - } - - return xReturn; - } - -#endif /* configSUPPORT_DYNAMIC_ALLOCATION */ -/*-----------------------------------------------------------*/ - -static void prvInitialiseNewTask( TaskFunction_t pxTaskCode, - const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ - const uint32_t ulStackDepth, - void * const pvParameters, - UBaseType_t uxPriority, - TaskHandle_t * const pxCreatedTask, - TCB_t *pxNewTCB, - const MemoryRegion_t * const xRegions ) -{ -StackType_t *pxTopOfStack; -UBaseType_t x; - - #if( portUSING_MPU_WRAPPERS == 1 ) - /* Should the task be created in privileged mode? */ - BaseType_t xRunPrivileged; - if( ( uxPriority & portPRIVILEGE_BIT ) != 0U ) - { - xRunPrivileged = pdTRUE; - } - else - { - xRunPrivileged = pdFALSE; - } - uxPriority &= ~portPRIVILEGE_BIT; - #endif /* portUSING_MPU_WRAPPERS == 1 */ - - /* 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 ) ); - } - #endif /* tskSET_NEW_STACKS_TO_KNOWN_VALUE */ - - /* Calculate the top of stack address. This depends on whether the stack - 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 ] ); - 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(). */ - - /* Check the alignment of the calculated top of stack is correct. */ - configASSERT( ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack & ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) == 0UL ) ); - - #if( configRECORD_STACK_HIGH_ADDRESS == 1 ) - { - /* Also record the stack's high address, which may assist - debugging. */ - pxNewTCB->pxEndOfStack = pxTopOfStack; - } - #endif /* configRECORD_STACK_HIGH_ADDRESS */ - } - #else /* portSTACK_GROWTH */ - { - pxTopOfStack = pxNewTCB->pxStack; - - /* Check the alignment of the stack buffer is correct. */ - configASSERT( ( ( ( portPOINTER_SIZE_TYPE ) pxNewTCB->pxStack & ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) == 0UL ) ); - - /* The other extreme of the stack space is required if stack checking is - performed. */ - pxNewTCB->pxEndOfStack = pxNewTCB->pxStack + ( ulStackDepth - ( uint32_t ) 1 ); - } - #endif /* portSTACK_GROWTH */ - - /* Store the task name in the TCB. */ - if( pcName != NULL ) - { - for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ ) - { - pxNewTCB->pcTaskName[ x ] = pcName[ x ]; - - /* 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 ) - { - break; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - - /* 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'; - } - 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; - } - - /* 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 ) - { - uxPriority = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) 1U; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - pxNewTCB->uxPriority = uxPriority; - #if ( configUSE_MUTEXES == 1 ) - { - pxNewTCB->uxBasePriority = uxPriority; - pxNewTCB->uxMutexesHeld = 0; - } - #endif /* configUSE_MUTEXES */ - - vListInitialiseItem( &( pxNewTCB->xStateListItem ) ); - vListInitialiseItem( &( pxNewTCB->xEventListItem ) ); - - /* 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 ); - - /* 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. */ - listSET_LIST_ITEM_OWNER( &( pxNewTCB->xEventListItem ), pxNewTCB ); - - #if ( portCRITICAL_NESTING_IN_TCB == 1 ) - { - pxNewTCB->uxCriticalNesting = ( UBaseType_t ) 0U; - } - #endif /* portCRITICAL_NESTING_IN_TCB */ - - #if ( configUSE_APPLICATION_TASK_TAG == 1 ) - { - pxNewTCB->pxTaskTag = NULL; - } - #endif /* configUSE_APPLICATION_TASK_TAG */ - - #if ( configGENERATE_RUN_TIME_STATS == 1 ) - { - pxNewTCB->ulRunTimeCounter = 0UL; - } - #endif /* configGENERATE_RUN_TIME_STATS */ - - #if ( portUSING_MPU_WRAPPERS == 1 ) - { - vPortStoreTaskMPUSettings( &( pxNewTCB->xMPUSettings ), xRegions, pxNewTCB->pxStack, ulStackDepth ); - } - #else - { - /* Avoid compiler warning about unreferenced parameter. */ - ( void ) xRegions; - } - #endif - - #if( configNUM_THREAD_LOCAL_STORAGE_POINTERS != 0 ) - { - for( x = 0; x < ( UBaseType_t ) configNUM_THREAD_LOCAL_STORAGE_POINTERS; x++ ) - { - pxNewTCB->pvThreadLocalStoragePointers[ x ] = NULL; - } - } - #endif - - #if ( configUSE_TASK_NOTIFICATIONS == 1 ) - { - pxNewTCB->ulNotifiedValue = 0; - pxNewTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION; - } - #endif - - #if ( configUSE_NEWLIB_REENTRANT == 1 ) - { - /* Initialise this task's Newlib reent structure. - See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html - for additional information. */ - _REENT_INIT_PTR( ( &( pxNewTCB->xNewLib_reent ) ) ); - } - #endif - - #if( INCLUDE_xTaskAbortDelay == 1 ) - { - pxNewTCB->ucDelayAborted = pdFALSE; - } - #endif - - /* Initialize the TCB stack to look as if the task was already running, - but had been interrupted by the scheduler. The return address is set - to the start of the task function. Once the stack has been initialised - the top of stack variable is updated. */ - #if( portUSING_MPU_WRAPPERS == 1 ) - { - /* If the port has capability to detect stack overflow, - pass the stack end address to the stack initialization - function as well. */ - #if( portHAS_STACK_OVERFLOW_CHECKING == 1 ) - { - #if( portSTACK_GROWTH < 0 ) - { - pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxNewTCB->pxStack, pxTaskCode, pvParameters, xRunPrivileged ); - } - #else /* portSTACK_GROWTH */ - { - pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxNewTCB->pxEndOfStack, pxTaskCode, pvParameters, xRunPrivileged ); - } - #endif /* portSTACK_GROWTH */ - } - #else /* portHAS_STACK_OVERFLOW_CHECKING */ - { - pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxTaskCode, pvParameters, xRunPrivileged ); - } - #endif /* portHAS_STACK_OVERFLOW_CHECKING */ - } - #else /* portUSING_MPU_WRAPPERS */ - { - /* If the port has capability to detect stack overflow, - pass the stack end address to the stack initialization - function as well. */ - #if( portHAS_STACK_OVERFLOW_CHECKING == 1 ) - { - #if( portSTACK_GROWTH < 0 ) - { - pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxNewTCB->pxStack, pxTaskCode, pvParameters ); - } - #else /* portSTACK_GROWTH */ - { - pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxNewTCB->pxEndOfStack, pxTaskCode, pvParameters ); - } - #endif /* portSTACK_GROWTH */ - } - #else /* portHAS_STACK_OVERFLOW_CHECKING */ - { - pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxTaskCode, pvParameters ); - } - #endif /* portHAS_STACK_OVERFLOW_CHECKING */ - } - #endif /* portUSING_MPU_WRAPPERS */ - - if( pxCreatedTask != NULL ) - { - /* 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; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } -} -/*-----------------------------------------------------------*/ - -static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB ) -{ - /* Ensure interrupts don't access the task lists while the lists are being - updated. */ - taskENTER_CRITICAL(); - { - uxCurrentNumberOfTasks++; - if( pxCurrentTCB == NULL ) - { - /* There are no other tasks, or all the other tasks are in - the suspended state - make this the current task. */ - pxCurrentTCB = pxNewTCB; - - if( uxCurrentNumberOfTasks == ( UBaseType_t ) 1 ) - { - /* 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(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - 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 ) - { - if( pxCurrentTCB->uxPriority <= pxNewTCB->uxPriority ) - { - pxCurrentTCB = pxNewTCB; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - - uxTaskNumber++; - - #if ( configUSE_TRACE_FACILITY == 1 ) - { - /* Add a counter into the TCB for tracing only. */ - pxNewTCB->uxTCBNumber = uxTaskNumber; - } - #endif /* configUSE_TRACE_FACILITY */ - traceTASK_CREATE( pxNewTCB ); - - prvAddTaskToReadyList( pxNewTCB ); - - portSETUP_TCB( pxNewTCB ); - } - taskEXIT_CRITICAL(); - - if( xSchedulerRunning != pdFALSE ) - { - /* If the created task is of a higher priority than the current task - then it should run now. */ - if( pxCurrentTCB->uxPriority < pxNewTCB->uxPriority ) - { - taskYIELD_IF_USING_PREEMPTION(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } -} -/*-----------------------------------------------------------*/ - -#if ( INCLUDE_vTaskDelete == 1 ) - - void vTaskDelete( TaskHandle_t xTaskToDelete ) - { - TCB_t *pxTCB; - - taskENTER_CRITICAL(); - { - /* If null is passed in here then it is the calling task that is - being deleted. */ - pxTCB = prvGetTCBFromHandle( xTaskToDelete ); - - /* Remove task from the ready/delayed list. */ - if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 ) - { - taskRESET_READY_PRIORITY( pxTCB->uxPriority ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - /* Is the task waiting on an event also? */ - if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL ) - { - ( void ) uxListRemove( &( pxTCB->xEventListItem ) ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - /* Increment the uxTaskNumber also so kernel aware debuggers can - detect that the task lists need re-generating. This is done before - portPRE_TASK_DELETE_HOOK() as in the Windows port that macro will - not return. */ - uxTaskNumber++; - - if( pxTCB == pxCurrentTCB ) - { - /* A task is deleting itself. This cannot complete within the - task itself, as a context switch to another task is required. - Place the task in the termination list. The idle task will - check the termination list and free up any memory allocated by - the scheduler for the TCB and stack of the deleted task. */ - vListInsertEnd( &xTasksWaitingTermination, &( pxTCB->xStateListItem ) ); - - /* Increment the ucTasksDeleted variable so the idle task knows - there is a task that has been deleted and that it should therefore - check the xTasksWaitingTermination list. */ - ++uxDeletedTasksWaitingCleanUp; - - /* Call the delete hook before portPRE_TASK_DELETE_HOOK() as - portPRE_TASK_DELETE_HOOK() does not return in the Win32 port. */ - traceTASK_DELETE( pxTCB ); - - /* The pre-delete hook is primarily for the Windows simulator, - in which Windows specific clean up operations are performed, - after which it is not possible to yield away from this task - - hence xYieldPending is used to latch that a context switch is - required. */ - portPRE_TASK_DELETE_HOOK( pxTCB, &xYieldPending ); - } - else - { - --uxCurrentNumberOfTasks; - traceTASK_DELETE( pxTCB ); - prvDeleteTCB( pxTCB ); - - /* Reset the next expected unblock time in case it referred to - the task that has just been deleted. */ - prvResetNextTaskUnblockTime(); - } - } - taskEXIT_CRITICAL(); - - /* Force a reschedule if it is the currently running task that has just - been deleted. */ - if( xSchedulerRunning != pdFALSE ) - { - if( pxTCB == pxCurrentTCB ) - { - configASSERT( uxSchedulerSuspended == 0 ); - portYIELD_WITHIN_API(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - } - -#endif /* INCLUDE_vTaskDelete */ -/*-----------------------------------------------------------*/ - -#if ( INCLUDE_vTaskDelayUntil == 1 ) - - void vTaskDelayUntil( TickType_t * const pxPreviousWakeTime, const TickType_t xTimeIncrement ) - { - TickType_t xTimeToWake; - BaseType_t xAlreadyYielded, xShouldDelay = pdFALSE; - - configASSERT( pxPreviousWakeTime ); - configASSERT( ( xTimeIncrement > 0U ) ); - configASSERT( uxSchedulerSuspended == 0 ); - - vTaskSuspendAll(); - { - /* Minor optimisation. The tick count cannot change in this - block. */ - const TickType_t xConstTickCount = xTickCount; - - /* Generate the tick time at which the task wants to wake. */ - xTimeToWake = *pxPreviousWakeTime + xTimeIncrement; - - if( xConstTickCount < *pxPreviousWakeTime ) - { - /* 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 ) ) - { - xShouldDelay = pdTRUE; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - 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 ) ) - { - xShouldDelay = pdTRUE; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - - /* Update the wake time ready for the next call. */ - *pxPreviousWakeTime = xTimeToWake; - - if( xShouldDelay != pdFALSE ) - { - traceTASK_DELAY_UNTIL( xTimeToWake ); - - /* prvAddCurrentTaskToDelayedList() needs the block time, not - the time to wake, so subtract the current tick count. */ - prvAddCurrentTaskToDelayedList( xTimeToWake - xConstTickCount, pdFALSE ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - xAlreadyYielded = xTaskResumeAll(); - - /* Force a reschedule if xTaskResumeAll has not already done so, we may - have put ourselves to sleep. */ - if( xAlreadyYielded == pdFALSE ) - { - portYIELD_WITHIN_API(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - -#endif /* INCLUDE_vTaskDelayUntil */ -/*-----------------------------------------------------------*/ - -#if ( INCLUDE_vTaskDelay == 1 ) - - void vTaskDelay( const TickType_t xTicksToDelay ) - { - BaseType_t xAlreadyYielded = pdFALSE; - - /* A delay time of zero just forces a reschedule. */ - if( xTicksToDelay > ( TickType_t ) 0U ) - { - configASSERT( uxSchedulerSuspended == 0 ); - vTaskSuspendAll(); - { - traceTASK_DELAY(); - - /* A task that is removed from the event list while the - scheduler is suspended will not get placed in the ready - 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 ); - } - xAlreadyYielded = xTaskResumeAll(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - /* Force a reschedule if xTaskResumeAll has not already done so, we may - have put ourselves to sleep. */ - if( xAlreadyYielded == pdFALSE ) - { - portYIELD_WITHIN_API(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - -#endif /* INCLUDE_vTaskDelay */ -/*-----------------------------------------------------------*/ - -#if( ( INCLUDE_eTaskGetState == 1 ) || ( configUSE_TRACE_FACILITY == 1 ) || ( INCLUDE_xTaskAbortDelay == 1 ) ) - - eTaskState eTaskGetState( TaskHandle_t xTask ) - { - eTaskState eReturn; - List_t const * pxStateList, *pxDelayedList, *pxOverflowedDelayedList; - const TCB_t * const pxTCB = xTask; - - configASSERT( pxTCB ); - - if( pxTCB == pxCurrentTCB ) - { - /* The task calling this function is querying its own state. */ - eReturn = eRunning; - } - else - { - taskENTER_CRITICAL(); - { - pxStateList = listLIST_ITEM_CONTAINER( &( pxTCB->xStateListItem ) ); - pxDelayedList = pxDelayedTaskList; - pxOverflowedDelayedList = pxOverflowDelayedTaskList; - } - taskEXIT_CRITICAL(); - - if( ( pxStateList == pxDelayedList ) || ( pxStateList == pxOverflowedDelayedList ) ) - { - /* The task being queried is referenced from one of the Blocked - lists. */ - eReturn = eBlocked; - } - - #if ( INCLUDE_vTaskSuspend == 1 ) - else if( pxStateList == &xSuspendedTaskList ) - { - /* The task being queried is referenced from the suspended - list. Is it genuinely suspended or is it blocked - indefinitely? */ - if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL ) - { - #if( configUSE_TASK_NOTIFICATIONS == 1 ) - { - /* The task does not appear on the event list item of - and of the RTOS objects, but could still be in the - blocked state if it is waiting on its notification - rather than waiting on an object. */ - if( pxTCB->ucNotifyState == taskWAITING_NOTIFICATION ) - { - eReturn = eBlocked; - } - else - { - eReturn = eSuspended; - } - } - #else - { - eReturn = eSuspended; - } - #endif - } - else - { - eReturn = eBlocked; - } - } - #endif - - #if ( INCLUDE_vTaskDelete == 1 ) - else if( ( pxStateList == &xTasksWaitingTermination ) || ( pxStateList == NULL ) ) - { - /* The task being queried is referenced from the deleted - tasks list, or it is not referenced from any lists at - all. */ - eReturn = eDeleted; - } - #endif - - else /*lint !e525 Negative indentation is intended to make use of pre-processor clearer. */ - { - /* If the task is not in any other state, it must be in the - Ready (including pending ready) state. */ - eReturn = eReady; - } - } - - return eReturn; - } /*lint !e818 xTask cannot be a pointer to const because it is a typedef. */ - -#endif /* INCLUDE_eTaskGetState */ -/*-----------------------------------------------------------*/ - -#if ( INCLUDE_uxTaskPriorityGet == 1 ) - - UBaseType_t uxTaskPriorityGet( const TaskHandle_t xTask ) - { - TCB_t const *pxTCB; - UBaseType_t uxReturn; - - taskENTER_CRITICAL(); - { - /* If null is passed in here then it is the priority of the task - that called uxTaskPriorityGet() that is being queried. */ - pxTCB = prvGetTCBFromHandle( xTask ); - uxReturn = pxTCB->uxPriority; - } - taskEXIT_CRITICAL(); - - return uxReturn; - } - -#endif /* INCLUDE_uxTaskPriorityGet */ -/*-----------------------------------------------------------*/ - -#if ( INCLUDE_uxTaskPriorityGet == 1 ) - - UBaseType_t uxTaskPriorityGetFromISR( const TaskHandle_t xTask ) - { - TCB_t const *pxTCB; - UBaseType_t uxReturn, uxSavedInterruptState; - - /* RTOS ports that support interrupt nesting have the concept of a - maximum system call (or maximum API call) interrupt priority. - Interrupts that are above the maximum system call priority are keep - permanently enabled, even when the RTOS kernel is in a critical section, - but cannot make any calls to FreeRTOS API functions. If configASSERT() - is defined in FreeRTOSConfig.h then - portASSERT_IF_INTERRUPT_PRIORITY_INVALID() will result in an assertion - failure if a FreeRTOS API function is called from an interrupt that has - been assigned a priority above the configured maximum system call - priority. Only FreeRTOS functions that end in FromISR can be called - from interrupts 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(); - - uxSavedInterruptState = portSET_INTERRUPT_MASK_FROM_ISR(); - { - /* If null is passed in here then it is the priority of the calling - task that is being queried. */ - pxTCB = prvGetTCBFromHandle( xTask ); - uxReturn = pxTCB->uxPriority; - } - portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptState ); - - return uxReturn; - } - -#endif /* INCLUDE_uxTaskPriorityGet */ -/*-----------------------------------------------------------*/ - -#if ( INCLUDE_vTaskPrioritySet == 1 ) - - void vTaskPrioritySet( TaskHandle_t xTask, UBaseType_t uxNewPriority ) - { - TCB_t *pxTCB; - UBaseType_t uxCurrentBasePriority, uxPriorityUsedOnEntry; - BaseType_t xYieldRequired = pdFALSE; - - configASSERT( ( uxNewPriority < configMAX_PRIORITIES ) ); - - /* Ensure the new priority is valid. */ - if( uxNewPriority >= ( UBaseType_t ) configMAX_PRIORITIES ) - { - uxNewPriority = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) 1U; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - taskENTER_CRITICAL(); - { - /* If null is passed in here then it is the priority of the calling - task that is being changed. */ - pxTCB = prvGetTCBFromHandle( xTask ); - - traceTASK_PRIORITY_SET( pxTCB, uxNewPriority ); - - #if ( configUSE_MUTEXES == 1 ) - { - uxCurrentBasePriority = pxTCB->uxBasePriority; - } - #else - { - uxCurrentBasePriority = pxTCB->uxPriority; - } - #endif - - if( uxCurrentBasePriority != uxNewPriority ) - { - /* The priority change may have readied a task of higher - priority than the calling task. */ - if( uxNewPriority > uxCurrentBasePriority ) - { - if( pxTCB != pxCurrentTCB ) - { - /* The priority of a task other than the currently - running task is being raised. Is the priority being - raised above that of the running task? */ - if( uxNewPriority >= pxCurrentTCB->uxPriority ) - { - xYieldRequired = pdTRUE; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - /* The priority of the running task is being raised, - but the running task must already be the highest - priority task able to run so no yield is required. */ - } - } - else if( pxTCB == pxCurrentTCB ) - { - /* Setting the priority of the running task down means - there may now be another task of higher priority that - is ready to execute. */ - xYieldRequired = pdTRUE; - } - else - { - /* Setting the priority of any other task down does not - require a yield as the running task must be above the - new priority of the task being modified. */ - } - - /* Remember the ready list the task might be referenced from - before its uxPriority member is changed so the - taskRESET_READY_PRIORITY() macro can function correctly. */ - uxPriorityUsedOnEntry = pxTCB->uxPriority; - - #if ( configUSE_MUTEXES == 1 ) - { - /* Only change the priority being used if the task is not - currently using an inherited priority. */ - if( pxTCB->uxBasePriority == pxTCB->uxPriority ) - { - pxTCB->uxPriority = uxNewPriority; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - /* The base priority gets set whatever. */ - pxTCB->uxBasePriority = uxNewPriority; - } - #else - { - pxTCB->uxPriority = uxNewPriority; - } - #endif - - /* 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 ) - { - listSET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ), ( ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) uxNewPriority ) ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */ - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - /* If the task is in the blocked or suspended list we need do - nothing more than change its priority variable. However, if - the task is in a ready list it needs to be removed and placed - in the list appropriate to its new priority. */ - if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ uxPriorityUsedOnEntry ] ), &( pxTCB->xStateListItem ) ) != pdFALSE ) - { - /* The task is currently in its ready list - remove before - adding it to it's new ready list. As we are in a critical - section we can do this even if the scheduler is suspended. */ - if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 ) - { - /* It is known that the task is in its ready list so - there is no need to check again and the port level - reset macro can be called directly. */ - portRESET_READY_PRIORITY( uxPriorityUsedOnEntry, uxTopReadyPriority ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - prvAddTaskToReadyList( pxTCB ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - if( xYieldRequired != pdFALSE ) - { - taskYIELD_IF_USING_PREEMPTION(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - /* Remove compiler warning about unused variables when the port - optimised task selection is not being used. */ - ( void ) uxPriorityUsedOnEntry; - } - } - taskEXIT_CRITICAL(); - } - -#endif /* INCLUDE_vTaskPrioritySet */ -/*-----------------------------------------------------------*/ - -#if ( INCLUDE_vTaskSuspend == 1 ) - - void vTaskSuspend( TaskHandle_t xTaskToSuspend ) - { - TCB_t *pxTCB; - - taskENTER_CRITICAL(); - { - /* If null is passed in here then it is the running task that is - being suspended. */ - pxTCB = prvGetTCBFromHandle( xTaskToSuspend ); - - traceTASK_SUSPEND( pxTCB ); - - /* Remove task from the ready/delayed list and place in the - suspended list. */ - if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 ) - { - taskRESET_READY_PRIORITY( pxTCB->uxPriority ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - /* Is the task waiting on an event also? */ - if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL ) - { - ( void ) uxListRemove( &( pxTCB->xEventListItem ) ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - vListInsertEnd( &xSuspendedTaskList, &( pxTCB->xStateListItem ) ); - - #if( configUSE_TASK_NOTIFICATIONS == 1 ) - { - if( pxTCB->ucNotifyState == taskWAITING_NOTIFICATION ) - { - /* The task was blocked to wait for a notification, but is - now suspended, so no notification was received. */ - pxTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION; - } - } - #endif - } - taskEXIT_CRITICAL(); - - if( xSchedulerRunning != pdFALSE ) - { - /* Reset the next expected unblock time in case it referred to the - task that is now in the Suspended state. */ - taskENTER_CRITICAL(); - { - prvResetNextTaskUnblockTime(); - } - taskEXIT_CRITICAL(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - if( pxTCB == pxCurrentTCB ) - { - if( xSchedulerRunning != pdFALSE ) - { - /* The current task has just been suspended. */ - configASSERT( uxSchedulerSuspended == 0 ); - portYIELD_WITHIN_API(); - } - else - { - /* The scheduler is not running, but the task that was pointed - to by pxCurrentTCB has just been suspended and pxCurrentTCB - must be adjusted to point to a different task. */ - if( listCURRENT_LIST_LENGTH( &xSuspendedTaskList ) == uxCurrentNumberOfTasks ) /*lint !e931 Right has no side effect, just volatile. */ - { - /* No other tasks are ready, so set pxCurrentTCB back to - NULL so when the next task is created pxCurrentTCB will - be set to point to it no matter what its relative priority - is. */ - pxCurrentTCB = NULL; - } - else - { - vTaskSwitchContext(); - } - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - -#endif /* INCLUDE_vTaskSuspend */ -/*-----------------------------------------------------------*/ - -#if ( INCLUDE_vTaskSuspend == 1 ) - - static BaseType_t prvTaskIsTaskSuspended( const TaskHandle_t xTask ) - { - BaseType_t xReturn = pdFALSE; - const TCB_t * const pxTCB = xTask; - - /* Accesses xPendingReadyList so must be called from a critical - section. */ - - /* It does not make sense to check if the calling task is suspended. */ - configASSERT( xTask ); - - /* Is the task being resumed actually in the suspended list? */ - if( listIS_CONTAINED_WITHIN( &xSuspendedTaskList, &( pxTCB->xStateListItem ) ) != pdFALSE ) - { - /* Has the task already been resumed from within an ISR? */ - if( listIS_CONTAINED_WITHIN( &xPendingReadyList, &( pxTCB->xEventListItem ) ) == pdFALSE ) - { - /* Is it in the suspended list because it is in the Suspended - state, or because is is blocked with no timeout? */ - if( listIS_CONTAINED_WITHIN( NULL, &( pxTCB->xEventListItem ) ) != pdFALSE ) /*lint !e961. The cast is only redundant when NULL is used. */ - { - xReturn = pdTRUE; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - return xReturn; - } /*lint !e818 xTask cannot be a pointer to const because it is a typedef. */ - -#endif /* INCLUDE_vTaskSuspend */ -/*-----------------------------------------------------------*/ - -#if ( INCLUDE_vTaskSuspend == 1 ) - - void vTaskResume( TaskHandle_t xTaskToResume ) - { - TCB_t * const pxTCB = xTaskToResume; - - /* It does not make sense to resume the calling task. */ - configASSERT( xTaskToResume ); - - /* The parameter cannot be NULL as it is impossible to resume the - currently executing task. */ - if( ( pxTCB != pxCurrentTCB ) && ( pxTCB != NULL ) ) - { - taskENTER_CRITICAL(); - { - if( prvTaskIsTaskSuspended( pxTCB ) != pdFALSE ) - { - traceTASK_RESUME( pxTCB ); - - /* The ready list can be accessed even if the scheduler is - suspended because this is inside a critical section. */ - ( void ) uxListRemove( &( pxTCB->xStateListItem ) ); - prvAddTaskToReadyList( pxTCB ); - - /* A higher priority task may have just been resumed. */ - if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority ) - { - /* This yield may not cause the task just resumed to run, - but will leave the lists in the correct state for the - next yield. */ - taskYIELD_IF_USING_PREEMPTION(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - taskEXIT_CRITICAL(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - -#endif /* INCLUDE_vTaskSuspend */ - -/*-----------------------------------------------------------*/ - -#if ( ( INCLUDE_xTaskResumeFromISR == 1 ) && ( INCLUDE_vTaskSuspend == 1 ) ) - - BaseType_t xTaskResumeFromISR( TaskHandle_t xTaskToResume ) - { - BaseType_t xYieldRequired = pdFALSE; - TCB_t * const pxTCB = xTaskToResume; - UBaseType_t uxSavedInterruptStatus; - - configASSERT( xTaskToResume ); - - /* RTOS ports that support interrupt nesting have the concept of a - maximum system call (or maximum API call) interrupt priority. - Interrupts that are above the maximum system call priority are keep - permanently enabled, even when the RTOS kernel is in a critical section, - but cannot make any calls to FreeRTOS API functions. If configASSERT() - is defined in FreeRTOSConfig.h then - portASSERT_IF_INTERRUPT_PRIORITY_INVALID() will result in an assertion - failure if a FreeRTOS API function is called from an interrupt that has - been assigned a priority above the configured maximum system call - priority. Only FreeRTOS functions that end in FromISR can be called - from interrupts 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(); - - uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR(); - { - if( prvTaskIsTaskSuspended( pxTCB ) != pdFALSE ) - { - traceTASK_RESUME_FROM_ISR( pxTCB ); - - /* Check the ready lists can be accessed. */ - if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE ) - { - /* Ready lists can be accessed so move the task from the - suspended list to the ready list directly. */ - if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority ) - { - xYieldRequired = pdTRUE; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - ( void ) uxListRemove( &( pxTCB->xStateListItem ) ); - prvAddTaskToReadyList( pxTCB ); - } - else - { - /* The delayed or ready lists cannot be accessed so the task - is held in the pending ready list until the scheduler is - unsuspended. */ - vListInsertEnd( &( xPendingReadyList ), &( pxTCB->xEventListItem ) ); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); - - return xYieldRequired; - } - -#endif /* ( ( INCLUDE_xTaskResumeFromISR == 1 ) && ( INCLUDE_vTaskSuspend == 1 ) ) */ -/*-----------------------------------------------------------*/ - -void vTaskStartScheduler( void ) -{ -BaseType_t xReturn; - - /* Add the idle task at the lowest priority. */ - #if( configSUPPORT_STATIC_ALLOCATION == 1 ) - { - StaticTask_t *pxIdleTaskTCBBuffer = NULL; - StackType_t *pxIdleTaskStackBuffer = NULL; - 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 ); - xIdleTaskHandle = xTaskCreateStatic( prvIdleTask, - configIDLE_TASK_NAME, - ulIdleTaskStackSize, - ( 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 ) - { - xReturn = pdPASS; - } - else - { - xReturn = pdFAIL; - } - } - #else - { - /* The Idle task is being created using dynamically allocated RAM. */ - xReturn = xTaskCreate( prvIdleTask, - configIDLE_TASK_NAME, - configMINIMAL_STACK_SIZE, - ( void * ) NULL, - portPRIVILEGE_BIT, /* In effect ( tskIDLE_PRIORITY | portPRIVILEGE_BIT ), but tskIDLE_PRIORITY is zero. */ - &xIdleTaskHandle ); /*lint !e961 MISRA exception, justified as it is not a redundant explicit cast to all supported compilers. */ - } - #endif /* configSUPPORT_STATIC_ALLOCATION */ - - #if ( configUSE_TIMERS == 1 ) - { - if( xReturn == pdPASS ) - { - xReturn = xTimerCreateTimerTask(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - #endif /* configUSE_TIMERS */ - - if( xReturn == pdPASS ) - { - /* freertos_tasks_c_additions_init() should only be called if the user - definable macro FREERTOS_TASKS_C_ADDITIONS_INIT() is defined, as that is - the only macro called by the function. */ - #ifdef FREERTOS_TASKS_C_ADDITIONS_INIT - { - freertos_tasks_c_additions_init(); - } - #endif - - /* Interrupts are turned off here, to ensure a tick does not occur - before or during the call to xPortStartScheduler(). The stacks of - the created tasks contain a status word with interrupts switched on - so interrupts will automatically get re-enabled when the first task - starts to run. */ - portDISABLE_INTERRUPTS(); - - #if ( configUSE_NEWLIB_REENTRANT == 1 ) - { - /* Switch Newlib's _impure_ptr variable to point to the _reent - structure specific to the task that will run first. - See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html - for additional information. */ - _impure_ptr = &( pxCurrentTCB->xNewLib_reent ); - } - #endif /* configUSE_NEWLIB_REENTRANT */ - - xNextTaskUnblockTime = portMAX_DELAY; - xSchedulerRunning = pdTRUE; - xTickCount = ( TickType_t ) configINITIAL_TICK_COUNT; - - /* If configGENERATE_RUN_TIME_STATS is defined then the following - macro must be defined to configure the timer/counter used to generate - the run time counter time base. NOTE: If configGENERATE_RUN_TIME_STATS - is set to 0 and the following line fails to build then ensure you do not - have portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() defined in your - FreeRTOSConfig.h file. */ - portCONFIGURE_TIMER_FOR_RUN_TIME_STATS(); - - traceTASK_SWITCHED_IN(); - - /* Setting up the timer tick is hardware specific and thus in the - portable interface. */ - if( xPortStartScheduler() != pdFALSE ) - { - /* Should not reach here as if the scheduler is running the - function will not return. */ - } - else - { - /* Should only reach here if a task calls xTaskEndScheduler(). */ - } - } - else - { - /* This line will only be reached if the kernel could not be started, - because there was not enough FreeRTOS heap to create the idle task - or the timer task. */ - configASSERT( xReturn != errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY ); - } - - /* Prevent compiler warnings if INCLUDE_xTaskGetIdleTaskHandle is set to 0, - meaning xIdleTaskHandle is not used anywhere else. */ - ( void ) xIdleTaskHandle; -} -/*-----------------------------------------------------------*/ - -void vTaskEndScheduler( void ) -{ - /* Stop the scheduler interrupts and call the portable scheduler end - routine so the original ISRs can be restored if necessary. The port - layer must ensure interrupts enable bit is left in the correct state. */ - portDISABLE_INTERRUPTS(); - xSchedulerRunning = pdFALSE; - vPortEndScheduler(); -} -/*----------------------------------------------------------*/ - -void vTaskSuspendAll( void ) -{ - /* 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 */ - - /* portSOFRWARE_BARRIER() is only implemented for emulated/simulated ports that - do not otherwise exhibit real time behaviour. */ - portSOFTWARE_BARRIER(); - - /* The scheduler is suspended if uxSchedulerSuspended is non-zero. An increment - is used to allow calls to vTaskSuspendAll() to nest. */ - ++uxSchedulerSuspended; - - /* Enforces ordering for ports and optimised compilers that may otherwise place - the above increment elsewhere. */ - portMEMORY_BARRIER(); -} -/*----------------------------------------------------------*/ - -#if ( configUSE_TICKLESS_IDLE != 0 ) - - static TickType_t prvGetExpectedIdleTime( void ) - { - TickType_t xReturn; - UBaseType_t uxHigherPriorityReadyTasks = pdFALSE; - - /* uxHigherPriorityReadyTasks takes care of the case where - configUSE_PREEMPTION is 0, so there may be tasks above the idle priority - task that are in the Ready state, even though the idle task is - running. */ - #if( configUSE_PORT_OPTIMISED_TASK_SELECTION == 0 ) - { - if( uxTopReadyPriority > tskIDLE_PRIORITY ) - { - uxHigherPriorityReadyTasks = pdTRUE; - } - } - #else - { - const UBaseType_t uxLeastSignificantBit = ( UBaseType_t ) 0x01; - - /* When port optimised task selection is used the uxTopReadyPriority - variable is used as a bit map. If bits other than the least - significant bit are set then there are tasks that have a priority - above the idle priority that are in the Ready state. This takes - care of the case where the co-operative scheduler is in use. */ - if( uxTopReadyPriority > uxLeastSignificantBit ) - { - uxHigherPriorityReadyTasks = pdTRUE; - } - } - #endif - - if( pxCurrentTCB->uxPriority > tskIDLE_PRIORITY ) - { - xReturn = 0; - } - else if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ tskIDLE_PRIORITY ] ) ) > 1 ) - { - /* There are other idle priority tasks in the ready state. If - time slicing is used then the very next tick interrupt must be - processed. */ - xReturn = 0; - } - else if( uxHigherPriorityReadyTasks != pdFALSE ) - { - /* There are tasks in the Ready state that have a priority above the - idle priority. This path can only be reached if - configUSE_PREEMPTION is 0. */ - xReturn = 0; - } - else - { - xReturn = xNextTaskUnblockTime - xTickCount; - } - - return xReturn; - } - -#endif /* configUSE_TICKLESS_IDLE */ -/*----------------------------------------------------------*/ - -BaseType_t xTaskResumeAll( void ) -{ -TCB_t *pxTCB = NULL; -BaseType_t xAlreadyYielded = pdFALSE; - - /* If uxSchedulerSuspended is zero then this function does not match a - previous call to vTaskSuspendAll(). */ - configASSERT( uxSchedulerSuspended ); - - /* 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(); - { - --uxSchedulerSuspended; - - if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE ) - { - if( uxCurrentNumberOfTasks > ( UBaseType_t ) 0U ) - { - /* Move any readied tasks from the pending list into the - appropriate ready list. */ - while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE ) - { - 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. */ - ( void ) uxListRemove( &( pxTCB->xEventListItem ) ); - ( void ) uxListRemove( &( pxTCB->xStateListItem ) ); - prvAddTaskToReadyList( pxTCB ); - - /* If the moved task has a priority higher than the current - task then a yield must be performed. */ - if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority ) - { - xYieldPending = pdTRUE; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - - if( pxTCB != NULL ) - { - /* A task was unblocked while the scheduler was suspended, - 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(); - } - - /* 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. */ - { - TickType_t xPendedCounts = xPendedTicks; /* Non-volatile copy. */ - - if( xPendedCounts > ( TickType_t ) 0U ) - { - do - { - if( xTaskIncrementTick() != pdFALSE ) - { - xYieldPending = pdTRUE; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - --xPendedCounts; - } while( xPendedCounts > ( TickType_t ) 0U ); - - xPendedTicks = 0; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - - if( xYieldPending != pdFALSE ) - { - #if( configUSE_PREEMPTION != 0 ) - { - xAlreadyYielded = pdTRUE; - } - #endif - taskYIELD_IF_USING_PREEMPTION(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - taskEXIT_CRITICAL(); - - return xAlreadyYielded; -} -/*-----------------------------------------------------------*/ - -TickType_t xTaskGetTickCount( void ) -{ -TickType_t xTicks; - - /* Critical section required if running on a 16 bit processor. */ - portTICK_TYPE_ENTER_CRITICAL(); - { - xTicks = xTickCount; - } - portTICK_TYPE_EXIT_CRITICAL(); - - return xTicks; -} -/*-----------------------------------------------------------*/ - -TickType_t xTaskGetTickCountFromISR( void ) -{ -TickType_t xReturn; -UBaseType_t uxSavedInterruptStatus; - - /* RTOS ports that support interrupt nesting have the concept of a maximum - system call (or maximum API call) interrupt priority. Interrupts that are - above the maximum system call priority are kept permanently enabled, even - when the RTOS kernel is in a critical section, but cannot make any calls to - FreeRTOS API functions. If configASSERT() is defined in FreeRTOSConfig.h - then portASSERT_IF_INTERRUPT_PRIORITY_INVALID() will result in an assertion - failure if a FreeRTOS API function is called from an interrupt that has been - assigned a priority above the configured maximum system call priority. - Only FreeRTOS functions that end in FromISR can be called from interrupts - 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(); - - uxSavedInterruptStatus = portTICK_TYPE_SET_INTERRUPT_MASK_FROM_ISR(); - { - xReturn = xTickCount; - } - portTICK_TYPE_CLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); - - return xReturn; -} -/*-----------------------------------------------------------*/ - -UBaseType_t uxTaskGetNumberOfTasks( void ) -{ - /* A critical section is not required because the variables are of type - BaseType_t. */ - return uxCurrentNumberOfTasks; -} -/*-----------------------------------------------------------*/ - -char *pcTaskGetName( TaskHandle_t xTaskToQuery ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ -{ -TCB_t *pxTCB; - - /* If null is passed in here then the name of the calling task is being - queried. */ - pxTCB = prvGetTCBFromHandle( xTaskToQuery ); - configASSERT( pxTCB ); - return &( pxTCB->pcTaskName[ 0 ] ); -} -/*-----------------------------------------------------------*/ - -#if ( INCLUDE_xTaskGetHandle == 1 ) - - static TCB_t *prvSearchForNameWithinSingleList( List_t *pxList, const char pcNameToQuery[] ) - { - TCB_t *pxNextTCB, *pxFirstTCB, *pxReturn = NULL; - UBaseType_t x; - char cNextChar; - BaseType_t xBreakLoop; - - /* This function is called with the scheduler suspended. */ - - if( listCURRENT_LIST_LENGTH( pxList ) > ( UBaseType_t ) 0 ) - { - listGET_OWNER_OF_NEXT_ENTRY( pxFirstTCB, pxList ); /*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. */ - - do - { - listGET_OWNER_OF_NEXT_ENTRY( pxNextTCB, pxList ); /*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. */ - - /* Check each character in the name looking for a match or - mismatch. */ - xBreakLoop = pdFALSE; - for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ ) - { - cNextChar = pxNextTCB->pcTaskName[ x ]; - - if( cNextChar != pcNameToQuery[ x ] ) - { - /* Characters didn't match. */ - xBreakLoop = pdTRUE; - } - else if( cNextChar == ( char ) 0x00 ) - { - /* Both strings terminated, a match must have been - found. */ - pxReturn = pxNextTCB; - xBreakLoop = pdTRUE; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - if( xBreakLoop != pdFALSE ) - { - break; - } - } - - if( pxReturn != NULL ) - { - /* The handle has been found. */ - break; - } - - } while( pxNextTCB != pxFirstTCB ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - return pxReturn; - } - -#endif /* INCLUDE_xTaskGetHandle */ -/*-----------------------------------------------------------*/ - -#if ( INCLUDE_xTaskGetHandle == 1 ) - - TaskHandle_t xTaskGetHandle( const char *pcNameToQuery ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ - { - UBaseType_t uxQueue = configMAX_PRIORITIES; - TCB_t* pxTCB; - - /* Task names will be truncated to configMAX_TASK_NAME_LEN - 1 bytes. */ - configASSERT( strlen( pcNameToQuery ) < configMAX_TASK_NAME_LEN ); - - vTaskSuspendAll(); - { - /* Search the ready lists. */ - do - { - uxQueue--; - pxTCB = prvSearchForNameWithinSingleList( ( List_t * ) &( pxReadyTasksLists[ uxQueue ] ), pcNameToQuery ); - - if( pxTCB != NULL ) - { - /* Found the handle. */ - break; - } - - } while( uxQueue > ( UBaseType_t ) tskIDLE_PRIORITY ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */ - - /* Search the delayed lists. */ - if( pxTCB == NULL ) - { - pxTCB = prvSearchForNameWithinSingleList( ( List_t * ) pxDelayedTaskList, pcNameToQuery ); - } - - if( pxTCB == NULL ) - { - pxTCB = prvSearchForNameWithinSingleList( ( List_t * ) pxOverflowDelayedTaskList, pcNameToQuery ); - } - - #if ( INCLUDE_vTaskSuspend == 1 ) - { - if( pxTCB == NULL ) - { - /* Search the suspended list. */ - pxTCB = prvSearchForNameWithinSingleList( &xSuspendedTaskList, pcNameToQuery ); - } - } - #endif - - #if( INCLUDE_vTaskDelete == 1 ) - { - if( pxTCB == NULL ) - { - /* Search the deleted list. */ - pxTCB = prvSearchForNameWithinSingleList( &xTasksWaitingTermination, pcNameToQuery ); - } - } - #endif - } - ( void ) xTaskResumeAll(); - - return pxTCB; - } - -#endif /* INCLUDE_xTaskGetHandle */ -/*-----------------------------------------------------------*/ - -#if ( configUSE_TRACE_FACILITY == 1 ) - - UBaseType_t uxTaskGetSystemState( TaskStatus_t * const pxTaskStatusArray, const UBaseType_t uxArraySize, uint32_t * const pulTotalRunTime ) - { - UBaseType_t uxTask = 0, uxQueue = configMAX_PRIORITIES; - - vTaskSuspendAll(); - { - /* Is there a space in the array for each task in the system? */ - if( uxArraySize >= uxCurrentNumberOfTasks ) - { - /* Fill in an TaskStatus_t structure with information on each - task in the Ready state. */ - do - { - uxQueue--; - uxTask += prvListTasksWithinSingleList( &( pxTaskStatusArray[ uxTask ] ), &( pxReadyTasksLists[ uxQueue ] ), eReady ); - - } while( uxQueue > ( UBaseType_t ) tskIDLE_PRIORITY ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */ - - /* Fill in an TaskStatus_t structure with information on each - task in the Blocked state. */ - uxTask += prvListTasksWithinSingleList( &( pxTaskStatusArray[ uxTask ] ), ( List_t * ) pxDelayedTaskList, eBlocked ); - uxTask += prvListTasksWithinSingleList( &( pxTaskStatusArray[ uxTask ] ), ( List_t * ) pxOverflowDelayedTaskList, eBlocked ); - - #if( INCLUDE_vTaskDelete == 1 ) - { - /* Fill in an TaskStatus_t structure with information on - each task that has been deleted but not yet cleaned up. */ - uxTask += prvListTasksWithinSingleList( &( pxTaskStatusArray[ uxTask ] ), &xTasksWaitingTermination, eDeleted ); - } - #endif - - #if ( INCLUDE_vTaskSuspend == 1 ) - { - /* Fill in an TaskStatus_t structure with information on - each task in the Suspended state. */ - uxTask += prvListTasksWithinSingleList( &( pxTaskStatusArray[ uxTask ] ), &xSuspendedTaskList, eSuspended ); - } - #endif - - #if ( configGENERATE_RUN_TIME_STATS == 1) - { - if( pulTotalRunTime != NULL ) - { - #ifdef portALT_GET_RUN_TIME_COUNTER_VALUE - portALT_GET_RUN_TIME_COUNTER_VALUE( ( *pulTotalRunTime ) ); - #else - *pulTotalRunTime = portGET_RUN_TIME_COUNTER_VALUE(); - #endif - } - } - #else - { - if( pulTotalRunTime != NULL ) - { - *pulTotalRunTime = 0; - } - } - #endif - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - ( void ) xTaskResumeAll(); - - return uxTask; - } - -#endif /* configUSE_TRACE_FACILITY */ -/*----------------------------------------------------------*/ - -#if ( INCLUDE_xTaskGetIdleTaskHandle == 1 ) - - TaskHandle_t xTaskGetIdleTaskHandle( void ) - { - /* If xTaskGetIdleTaskHandle() is called before the scheduler has been - started, then xIdleTaskHandle will be NULL. */ - configASSERT( ( xIdleTaskHandle != NULL ) ); - return xIdleTaskHandle; - } - -#endif /* INCLUDE_xTaskGetIdleTaskHandle */ -/*----------------------------------------------------------*/ - -/* This conditional compilation should use inequality to 0, not equality to 1. -This is to ensure vTaskStepTick() is available when user defined low power mode -implementations require configUSE_TICKLESS_IDLE to be set to a value other than -1. */ -#if ( configUSE_TICKLESS_IDLE != 0 ) - - void vTaskStepTick( const TickType_t xTicksToJump ) - { - /* Correct the tick count value after a period during which the tick - was suppressed. Note this does *not* call the tick hook function for - each stepped tick. */ - configASSERT( ( xTickCount + xTicksToJump ) <= xNextTaskUnblockTime ); - xTickCount += xTicksToJump; - traceINCREASE_TICK_COUNT( xTicksToJump ); - } - -#endif /* configUSE_TICKLESS_IDLE */ -/*----------------------------------------------------------*/ - -BaseType_t xTaskCatchUpTicks( TickType_t xTicksToCatchUp ) -{ -BaseType_t xYieldRequired = pdFALSE; - - /* Must not be called with the scheduler suspended as the implementation - relies on xPendedTicks being wound down to 0 in xTaskResumeAll(). */ - configASSERT( uxSchedulerSuspended == 0 ); - - /* Use xPendedTicks to mimic xTicksToCatchUp number of ticks occurring when - the scheduler is suspended so the ticks are executed in xTaskResumeAll(). */ - vTaskSuspendAll(); - xPendedTicks += xTicksToCatchUp; - xYieldRequired = xTaskResumeAll(); - - return xYieldRequired; -} -/*----------------------------------------------------------*/ - -#if ( INCLUDE_xTaskAbortDelay == 1 ) - - BaseType_t xTaskAbortDelay( TaskHandle_t xTask ) - { - TCB_t *pxTCB = xTask; - BaseType_t xReturn; - - configASSERT( pxTCB ); - - vTaskSuspendAll(); - { - /* A task can only be prematurely removed from the Blocked state if - it is actually in the Blocked state. */ - if( eTaskGetState( xTask ) == eBlocked ) - { - xReturn = pdPASS; - - /* Remove the reference to the task from the blocked list. An - interrupt won't touch the xStateListItem because the - scheduler is suspended. */ - ( void ) uxListRemove( &( pxTCB->xStateListItem ) ); - - /* Is the task waiting on an event also? If so remove it from - the event list too. Interrupts can touch the event list item, - even though the scheduler is suspended, so a critical section - is used. */ - taskENTER_CRITICAL(); - { - if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL ) - { - ( void ) uxListRemove( &( pxTCB->xEventListItem ) ); - - /* This lets the task know it was forcibly removed from the - blocked state so it should not re-evaluate its block time and - then block again. */ - pxTCB->ucDelayAborted = pdTRUE; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - taskEXIT_CRITICAL(); - - /* Place the unblocked task into the appropriate ready list. */ - prvAddTaskToReadyList( pxTCB ); - - /* A task being unblocked cannot cause an immediate context - switch if preemption is turned off. */ - #if ( configUSE_PREEMPTION == 1 ) - { - /* 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 ) - { - /* Pend the yield to be performed when the scheduler - is unsuspended. */ - xYieldPending = pdTRUE; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - #endif /* configUSE_PREEMPTION */ - } - else - { - xReturn = pdFAIL; - } - } - ( void ) xTaskResumeAll(); - - return xReturn; - } - -#endif /* INCLUDE_xTaskAbortDelay */ -/*----------------------------------------------------------*/ - -BaseType_t xTaskIncrementTick( void ) -{ -TCB_t * pxTCB; -TickType_t xItemValue; -BaseType_t xSwitchRequired = pdFALSE; - - /* 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 ) - { - /* Minor optimisation. The tick count cannot change in this - block. */ - const TickType_t xConstTickCount = xTickCount + ( TickType_t ) 1; - - /* Increment the RTOS tick, switching the delayed and overflowed - delayed lists if it wraps to 0. */ - xTickCount = xConstTickCount; - - if( xConstTickCount == ( TickType_t ) 0U ) /*lint !e774 'if' does not always evaluate to false as it is looking for an overflow. */ - { - taskSWITCH_DELAYED_LISTS(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - /* 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 ) - { - for( ;; ) - { - if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE ) - { - /* 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. */ - break; - } - else - { - /* 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. */ - xItemValue = listGET_LIST_ITEM_VALUE( &( pxTCB->xStateListItem ) ); - - if( xConstTickCount < xItemValue ) - { - /* 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; - break; /*lint !e9011 Code structure here is deedmed easier to understand with multiple breaks. */ - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - /* It is time to remove the item from the Blocked state. */ - ( void ) uxListRemove( &( pxTCB->xStateListItem ) ); - - /* Is the task waiting on an event also? If so remove - it from the event list. */ - if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL ) - { - ( void ) uxListRemove( &( pxTCB->xEventListItem ) ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - /* Place the unblocked task into the appropriate ready - list. */ - prvAddTaskToReadyList( pxTCB ); - - /* A task being unblocked cannot cause an immediate - context switch if preemption is turned off. */ - #if ( configUSE_PREEMPTION == 1 ) - { - /* 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 ) - { - xSwitchRequired = pdTRUE; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - #endif /* configUSE_PREEMPTION */ - } - } - } - - /* 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 ) - { - xSwitchRequired = pdTRUE; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - #endif /* ( ( configUSE_PREEMPTION == 1 ) && ( configUSE_TIME_SLICING == 1 ) ) */ - - #if ( configUSE_TICK_HOOK == 1 ) - { - /* Guard against the tick hook being called when the pended tick - count is being unwound (when the scheduler is being unlocked). */ - if( xPendedTicks == ( TickType_t ) 0 ) - { - vApplicationTickHook(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - #endif /* configUSE_TICK_HOOK */ - - #if ( configUSE_PREEMPTION == 1 ) - { - if( xYieldPending != pdFALSE ) - { - xSwitchRequired = pdTRUE; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - #endif /* configUSE_PREEMPTION */ - } - else - { - ++xPendedTicks; - - /* The tick hook gets called at regular intervals, even if the - scheduler is locked. */ - #if ( configUSE_TICK_HOOK == 1 ) - { - vApplicationTickHook(); - } - #endif - } - - return xSwitchRequired; -} -/*-----------------------------------------------------------*/ - -#if ( configUSE_APPLICATION_TASK_TAG == 1 ) - - void vTaskSetApplicationTaskTag( TaskHandle_t xTask, TaskHookFunction_t pxHookFunction ) - { - TCB_t *xTCB; - - /* If xTask is NULL then it is the task hook of the calling task that is - getting set. */ - if( xTask == NULL ) - { - xTCB = ( TCB_t * ) pxCurrentTCB; - } - else - { - xTCB = xTask; - } - - /* Save the hook function in the TCB. A critical section is required as - the value can be accessed from an interrupt. */ - taskENTER_CRITICAL(); - { - xTCB->pxTaskTag = pxHookFunction; - } - taskEXIT_CRITICAL(); - } - -#endif /* configUSE_APPLICATION_TASK_TAG */ -/*-----------------------------------------------------------*/ - -#if ( configUSE_APPLICATION_TASK_TAG == 1 ) - - TaskHookFunction_t xTaskGetApplicationTaskTag( TaskHandle_t xTask ) - { - TCB_t *pxTCB; - TaskHookFunction_t xReturn; - - /* If xTask is NULL then set the calling task's hook. */ - pxTCB = prvGetTCBFromHandle( xTask ); - - /* Save the hook function in the TCB. A critical section is required as - the value can be accessed from an interrupt. */ - taskENTER_CRITICAL(); - { - xReturn = pxTCB->pxTaskTag; - } - taskEXIT_CRITICAL(); - - return xReturn; - } - -#endif /* configUSE_APPLICATION_TASK_TAG */ -/*-----------------------------------------------------------*/ - -#if ( configUSE_APPLICATION_TASK_TAG == 1 ) - - TaskHookFunction_t xTaskGetApplicationTaskTagFromISR( TaskHandle_t xTask ) - { - TCB_t *pxTCB; - TaskHookFunction_t xReturn; - UBaseType_t uxSavedInterruptStatus; - - /* If xTask is NULL then set the calling task's hook. */ - pxTCB = prvGetTCBFromHandle( xTask ); - - /* Save the hook function in the TCB. A critical section is required as - the value can be accessed from an interrupt. */ - uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR(); - { - xReturn = pxTCB->pxTaskTag; - } - portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); - - return xReturn; - } - -#endif /* configUSE_APPLICATION_TASK_TAG */ -/*-----------------------------------------------------------*/ - -#if ( configUSE_APPLICATION_TASK_TAG == 1 ) - - BaseType_t xTaskCallApplicationTaskHook( TaskHandle_t xTask, void *pvParameter ) - { - TCB_t *xTCB; - BaseType_t xReturn; - - /* If xTask is NULL then we are calling our own task hook. */ - if( xTask == NULL ) - { - xTCB = pxCurrentTCB; - } - else - { - xTCB = xTask; - } - - if( xTCB->pxTaskTag != NULL ) - { - xReturn = xTCB->pxTaskTag( pvParameter ); - } - else - { - xReturn = pdFAIL; - } - - return xReturn; - } - -#endif /* configUSE_APPLICATION_TASK_TAG */ -/*-----------------------------------------------------------*/ - -void vTaskSwitchContext( void ) -{ - if( uxSchedulerSuspended != ( UBaseType_t ) pdFALSE ) - { - /* The scheduler is currently suspended - do not allow a context - switch. */ - xYieldPending = pdTRUE; - } - else - { - xYieldPending = pdFALSE; - traceTASK_SWITCHED_OUT(); - - #if ( configGENERATE_RUN_TIME_STATS == 1 ) - { - #ifdef portALT_GET_RUN_TIME_COUNTER_VALUE - portALT_GET_RUN_TIME_COUNTER_VALUE( ulTotalRunTime ); - #else - ulTotalRunTime = portGET_RUN_TIME_COUNTER_VALUE(); - #endif - - /* Add the amount of time the task has been running to the - accumulated time so far. The time the task started running was - stored in ulTaskSwitchedInTime. Note that there is no overflow - protection here so count values are only valid until the timer - overflows. The guard against negative values is to protect - against suspect run time stat counter implementations - which - are provided by the application, not the kernel. */ - if( ulTotalRunTime > ulTaskSwitchedInTime ) - { - pxCurrentTCB->ulRunTimeCounter += ( ulTotalRunTime - ulTaskSwitchedInTime ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - ulTaskSwitchedInTime = ulTotalRunTime; - } - #endif /* configGENERATE_RUN_TIME_STATS */ - - /* Check for stack overflow, if configured. */ - taskCHECK_FOR_STACK_OVERFLOW(); - - /* Before the currently running task is switched out, save its errno. */ - #if( configUSE_POSIX_ERRNO == 1 ) - { - pxCurrentTCB->iTaskErrno = FreeRTOS_errno; - } - #endif - - /* Select a new task to run using either the generic C or port - optimised asm code. */ - 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. */ - traceTASK_SWITCHED_IN(); - - /* After the new task is switched in, update the global errno. */ - #if( configUSE_POSIX_ERRNO == 1 ) - { - FreeRTOS_errno = pxCurrentTCB->iTaskErrno; - } - #endif - - #if ( configUSE_NEWLIB_REENTRANT == 1 ) - { - /* Switch Newlib's _impure_ptr variable to point to the _reent - structure specific to this task. - See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html - for additional information. */ - _impure_ptr = &( pxCurrentTCB->xNewLib_reent ); - } - #endif /* configUSE_NEWLIB_REENTRANT */ - } -} -/*-----------------------------------------------------------*/ - -void vTaskPlaceOnEventList( List_t * const pxEventList, const TickType_t xTicksToWait ) -{ - configASSERT( pxEventList ); - - /* THIS FUNCTION MUST BE CALLED WITH EITHER INTERRUPTS DISABLED OR THE - SCHEDULER SUSPENDED AND THE QUEUE BEING ACCESSED LOCKED. */ - - /* 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 ) ); - - prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE ); -} -/*-----------------------------------------------------------*/ - -void vTaskPlaceOnUnorderedEventList( List_t * pxEventList, const TickType_t xItemValue, const TickType_t xTicksToWait ) -{ - configASSERT( pxEventList ); - - /* THIS FUNCTION MUST BE CALLED WITH THE SCHEDULER SUSPENDED. It is used by - the event groups implementation. */ - configASSERT( uxSchedulerSuspended != 0 ); - - /* Store the item value in the event list item. It is safe to access the - event list item here as interrupts won't access the event list item of a - task that is not in the Blocked state. */ - listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xEventListItem ), xItemValue | taskEVENT_LIST_ITEM_VALUE_IN_USE ); - - /* Place the event list item of the TCB at the end of the appropriate event - list. It is safe to access the event list here because it is part of an - event group implementation - and interrupts don't access event groups - directly (instead they access them indirectly by pending function calls to - the task level). */ - vListInsertEnd( pxEventList, &( pxCurrentTCB->xEventListItem ) ); - - prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE ); -} -/*-----------------------------------------------------------*/ - -#if( configUSE_TIMERS == 1 ) - - void vTaskPlaceOnEventListRestricted( List_t * const pxEventList, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely ) - { - configASSERT( pxEventList ); - - /* This function should not be called by application code hence the - 'Restricted' in its name. It is not part of the public API. It is - designed for use by kernel code, and has special calling requirements - - it should be called with the scheduler suspended. */ - - - /* Place the event list item of the TCB in the appropriate event list. - In this case it is assume that this is the only task that is going to - be waiting on this event list, so the faster vListInsertEnd() function - can be used in place of vListInsert. */ - vListInsertEnd( pxEventList, &( pxCurrentTCB->xEventListItem ) ); - - /* If the task should block indefinitely then set the block time to a - value that will be recognised as an indefinite delay inside the - prvAddCurrentTaskToDelayedList() function. */ - if( xWaitIndefinitely != pdFALSE ) - { - xTicksToWait = portMAX_DELAY; - } - - traceTASK_DELAY_UNTIL( ( xTickCount + xTicksToWait ) ); - prvAddCurrentTaskToDelayedList( xTicksToWait, xWaitIndefinitely ); - } - -#endif /* configUSE_TIMERS */ -/*-----------------------------------------------------------*/ - -BaseType_t xTaskRemoveFromEventList( const List_t * const pxEventList ) -{ -TCB_t *pxUnblockedTCB; -BaseType_t xReturn; - - /* THIS FUNCTION MUST BE CALLED FROM A CRITICAL SECTION. It can also be - called from a critical section within an ISR. */ - - /* The event list is sorted in priority order, so the first in the list can - be removed as it is known to be the highest priority. Remove the TCB from - the delayed list, and add it to the ready list. - - If an event is for a queue that is locked then this function will never - 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. */ - configASSERT( pxUnblockedTCB ); - ( void ) uxListRemove( &( pxUnblockedTCB->xEventListItem ) ); - - if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE ) - { - ( void ) uxListRemove( &( pxUnblockedTCB->xStateListItem ) ); - prvAddTaskToReadyList( pxUnblockedTCB ); - - #if( configUSE_TICKLESS_IDLE != 0 ) - { - /* If a task is blocked on a kernel object then xNextTaskUnblockTime - might be set to the blocked task's time out time. If the task is - unblocked for a reason other than a timeout xNextTaskUnblockTime is - normally left unchanged, because it is automatically reset to a new - value when the tick count equals xNextTaskUnblockTime. However if - tickless idling is used it might be more important to enter sleep mode - at the earliest possible time - so reset xNextTaskUnblockTime here to - ensure it is updated at the earliest possible time. */ - prvResetNextTaskUnblockTime(); - } - #endif - } - else - { - /* The delayed and ready lists cannot be accessed, so hold this task - pending until the scheduler is resumed. */ - vListInsertEnd( &( xPendingReadyList ), &( pxUnblockedTCB->xEventListItem ) ); - } - - if( pxUnblockedTCB->uxPriority > pxCurrentTCB->uxPriority ) - { - /* 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; - - /* Mark that a yield is pending in case the user is not using the - "xHigherPriorityTaskWoken" parameter to an ISR safe FreeRTOS function. */ - xYieldPending = pdTRUE; - } - else - { - xReturn = pdFALSE; - } - - return xReturn; -} -/*-----------------------------------------------------------*/ - -void vTaskRemoveFromUnorderedEventList( ListItem_t * pxEventListItem, const TickType_t xItemValue ) -{ -TCB_t *pxUnblockedTCB; - - /* THIS FUNCTION MUST BE CALLED WITH THE SCHEDULER SUSPENDED. It is used by - the event flags implementation. */ - configASSERT( uxSchedulerSuspended != pdFALSE ); - - /* Store the new item value in the event list. */ - listSET_LIST_ITEM_VALUE( pxEventListItem, xItemValue | taskEVENT_LIST_ITEM_VALUE_IN_USE ); - - /* Remove the event list form the event flag. Interrupts do not access - event flags. */ - pxUnblockedTCB = listGET_LIST_ITEM_OWNER( pxEventListItem ); /*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. */ - configASSERT( pxUnblockedTCB ); - ( void ) uxListRemove( pxEventListItem ); - - #if( configUSE_TICKLESS_IDLE != 0 ) - { - /* If a task is blocked on a kernel object then xNextTaskUnblockTime - might be set to the blocked task's time out time. If the task is - unblocked for a reason other than a timeout xNextTaskUnblockTime is - normally left unchanged, because it is automatically reset to a new - value when the tick count equals xNextTaskUnblockTime. However if - tickless idling is used it might be more important to enter sleep mode - at the earliest possible time - so reset xNextTaskUnblockTime here to - ensure it is updated at the earliest possible time. */ - prvResetNextTaskUnblockTime(); - } - #endif - - /* Remove the task from the delayed list and add it to the ready list. The - scheduler is suspended so interrupts will not be accessing the ready - lists. */ - ( void ) uxListRemove( &( pxUnblockedTCB->xStateListItem ) ); - prvAddTaskToReadyList( pxUnblockedTCB ); - - if( pxUnblockedTCB->uxPriority > pxCurrentTCB->uxPriority ) - { - /* The unblocked task has a priority above that of the calling task, so - a context switch is required. This function is called with the - scheduler suspended so xYieldPending is set so the context switch - occurs immediately that the scheduler is resumed (unsuspended). */ - xYieldPending = pdTRUE; - } -} -/*-----------------------------------------------------------*/ - -void vTaskSetTimeOutState( TimeOut_t * const pxTimeOut ) -{ - configASSERT( pxTimeOut ); - taskENTER_CRITICAL(); - { - pxTimeOut->xOverflowCount = xNumOfOverflows; - pxTimeOut->xTimeOnEntering = xTickCount; - } - taskEXIT_CRITICAL(); -} -/*-----------------------------------------------------------*/ - -void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut ) -{ - /* For internal use only as it does not use a critical section. */ - pxTimeOut->xOverflowCount = xNumOfOverflows; - pxTimeOut->xTimeOnEntering = xTickCount; -} -/*-----------------------------------------------------------*/ - -BaseType_t xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait ) -{ -BaseType_t xReturn; - - configASSERT( pxTimeOut ); - configASSERT( pxTicksToWait ); - - taskENTER_CRITICAL(); - { - /* Minor optimisation. The tick count cannot change in this block. */ - const TickType_t xConstTickCount = xTickCount; - const TickType_t xElapsedTime = xConstTickCount - pxTimeOut->xTimeOnEntering; - - #if( INCLUDE_xTaskAbortDelay == 1 ) - if( pxCurrentTCB->ucDelayAborted != ( uint8_t ) pdFALSE ) - { - /* The delay was aborted, which is not the same as a time out, - but has the same result. */ - pxCurrentTCB->ucDelayAborted = pdFALSE; - xReturn = pdTRUE; - } - else - #endif - - #if ( INCLUDE_vTaskSuspend == 1 ) - if( *pxTicksToWait == portMAX_DELAY ) - { - /* 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; - } - else - #endif - - if( ( xNumOfOverflows != pxTimeOut->xOverflowCount ) && ( xConstTickCount >= pxTimeOut->xTimeOnEntering ) ) /*lint !e525 Indentation preferred as is to make code within pre-processor directives clearer. */ - { - /* 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; - } - else if( xElapsedTime < *pxTicksToWait ) /*lint !e961 Explicit casting is only redundant with some compilers, whereas others require it to prevent integer conversion errors. */ - { - /* Not a genuine timeout. Adjust parameters for time remaining. */ - *pxTicksToWait -= xElapsedTime; - vTaskInternalSetTimeOutState( pxTimeOut ); - xReturn = pdFALSE; - } - else - { - *pxTicksToWait = 0; - xReturn = pdTRUE; - } - } - taskEXIT_CRITICAL(); - - return xReturn; -} -/*-----------------------------------------------------------*/ - -void vTaskMissedYield( void ) -{ - xYieldPending = pdTRUE; -} -/*-----------------------------------------------------------*/ - -#if ( configUSE_TRACE_FACILITY == 1 ) - - UBaseType_t uxTaskGetTaskNumber( TaskHandle_t xTask ) - { - UBaseType_t uxReturn; - TCB_t const *pxTCB; - - if( xTask != NULL ) - { - pxTCB = xTask; - uxReturn = pxTCB->uxTaskNumber; - } - else - { - uxReturn = 0U; - } - - return uxReturn; - } - -#endif /* configUSE_TRACE_FACILITY */ -/*-----------------------------------------------------------*/ - -#if ( configUSE_TRACE_FACILITY == 1 ) - - void vTaskSetTaskNumber( TaskHandle_t xTask, const UBaseType_t uxHandle ) - { - TCB_t * pxTCB; - - if( xTask != NULL ) - { - pxTCB = xTask; - pxTCB->uxTaskNumber = uxHandle; - } - } - -#endif /* configUSE_TRACE_FACILITY */ - -/* - * ----------------------------------------------------------- - * The Idle task. - * ---------------------------------------------------------- - * - * The portTASK_FUNCTION() macro is used to allow port/compiler specific - * language extensions. The equivalent prototype for this function is: - * - * void prvIdleTask( void *pvParameters ); - * - */ -static portTASK_FUNCTION( prvIdleTask, pvParameters ) -{ - /* Stop warnings. */ - ( void ) pvParameters; - - /** THIS IS THE RTOS IDLE TASK - WHICH IS CREATED AUTOMATICALLY WHEN THE - SCHEDULER IS STARTED. **/ - - /* In case a task that has a secure context deletes itself, in which case - the idle task is responsible for deleting the task's secure context, if - any. */ - portALLOCATE_SECURE_CONTEXT( configMINIMAL_SECURE_STACK_SIZE ); - - 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(); - - #if ( configUSE_PREEMPTION == 0 ) - { - /* If we are not using preemption we keep forcing a task switch to - see if any other task has become available. If we are using - preemption we don't need to do this as any task becoming available - will automatically get the processor anyway. */ - taskYIELD(); - } - #endif /* configUSE_PREEMPTION */ - - #if ( ( configUSE_PREEMPTION == 1 ) && ( configIDLE_SHOULD_YIELD == 1 ) ) - { - /* When using preemption tasks of equal priority will be - timesliced. If a task that is sharing the idle priority is ready - to run then the idle task should yield before the end of the - timeslice. - - 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 ) - { - taskYIELD(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - #endif /* ( ( configUSE_PREEMPTION == 1 ) && ( configIDLE_SHOULD_YIELD == 1 ) ) */ - - #if ( configUSE_IDLE_HOOK == 1 ) - { - extern void vApplicationIdleHook( void ); - - /* 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(); - } - #endif /* configUSE_IDLE_HOOK */ - - /* This conditional compilation should use inequality to 0, not equality - to 1. This is to ensure portSUPPRESS_TICKS_AND_SLEEP() is called when - user defined low power mode implementations require - configUSE_TICKLESS_IDLE to be set to a value other than 1. */ - #if ( configUSE_TICKLESS_IDLE != 0 ) - { - TickType_t xExpectedIdleTime; - - /* It is not desirable to suspend then resume the scheduler on - each iteration of the idle task. Therefore, a preliminary - test of the expected idle time is performed without the - scheduler suspended. The result here is not necessarily - valid. */ - xExpectedIdleTime = prvGetExpectedIdleTime(); - - if( xExpectedIdleTime >= configEXPECTED_IDLE_TIME_BEFORE_SLEEP ) - { - vTaskSuspendAll(); - { - /* Now the scheduler is suspended, the expected idle - time can be sampled again, and this time its value can - be used. */ - configASSERT( xNextTaskUnblockTime >= xTickCount ); - xExpectedIdleTime = prvGetExpectedIdleTime(); - - /* Define the following macro to set xExpectedIdleTime to 0 - if the application does not want - portSUPPRESS_TICKS_AND_SLEEP() to be called. */ - configPRE_SUPPRESS_TICKS_AND_SLEEP_PROCESSING( xExpectedIdleTime ); - - if( xExpectedIdleTime >= configEXPECTED_IDLE_TIME_BEFORE_SLEEP ) - { - traceLOW_POWER_IDLE_BEGIN(); - portSUPPRESS_TICKS_AND_SLEEP( xExpectedIdleTime ); - traceLOW_POWER_IDLE_END(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - ( void ) xTaskResumeAll(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - #endif /* configUSE_TICKLESS_IDLE */ - } -} -/*-----------------------------------------------------------*/ - -#if( configUSE_TICKLESS_IDLE != 0 ) - - eSleepModeStatus eTaskConfirmSleepModeStatus( void ) - { - /* The idle task exists in addition to the application tasks. */ - const UBaseType_t uxNonApplicationTasks = 1; - eSleepModeStatus eReturn = eStandardSleep; - - /* This function must be called from a critical section. */ - - if( listCURRENT_LIST_LENGTH( &xPendingReadyList ) != 0 ) - { - /* A task was made ready while the scheduler was suspended. */ - eReturn = eAbortSleep; - } - else if( xYieldPending != pdFALSE ) - { - /* A yield was pended while the scheduler was suspended. */ - eReturn = eAbortSleep; - } - else - { - /* If all the tasks are in the suspended list (which might mean they - have an infinite block time rather than actually being suspended) - then it is safe to turn all clocks off and just wait for external - interrupts. */ - if( listCURRENT_LIST_LENGTH( &xSuspendedTaskList ) == ( uxCurrentNumberOfTasks - uxNonApplicationTasks ) ) - { - eReturn = eNoTasksWaitingTimeout; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - - return eReturn; - } - -#endif /* configUSE_TICKLESS_IDLE */ -/*-----------------------------------------------------------*/ - -#if ( configNUM_THREAD_LOCAL_STORAGE_POINTERS != 0 ) - - void vTaskSetThreadLocalStoragePointer( TaskHandle_t xTaskToSet, BaseType_t xIndex, void *pvValue ) - { - TCB_t *pxTCB; - - if( xIndex < configNUM_THREAD_LOCAL_STORAGE_POINTERS ) - { - pxTCB = prvGetTCBFromHandle( xTaskToSet ); - configASSERT( pxTCB != NULL ); - pxTCB->pvThreadLocalStoragePointers[ xIndex ] = pvValue; - } - } - -#endif /* configNUM_THREAD_LOCAL_STORAGE_POINTERS */ -/*-----------------------------------------------------------*/ - -#if ( configNUM_THREAD_LOCAL_STORAGE_POINTERS != 0 ) - - void *pvTaskGetThreadLocalStoragePointer( TaskHandle_t xTaskToQuery, BaseType_t xIndex ) - { - void *pvReturn = NULL; - TCB_t *pxTCB; - - if( xIndex < configNUM_THREAD_LOCAL_STORAGE_POINTERS ) - { - pxTCB = prvGetTCBFromHandle( xTaskToQuery ); - pvReturn = pxTCB->pvThreadLocalStoragePointers[ xIndex ]; - } - else - { - pvReturn = NULL; - } - - return pvReturn; - } - -#endif /* configNUM_THREAD_LOCAL_STORAGE_POINTERS */ -/*-----------------------------------------------------------*/ - -#if ( portUSING_MPU_WRAPPERS == 1 ) - - void vTaskAllocateMPURegions( TaskHandle_t xTaskToModify, const MemoryRegion_t * const xRegions ) - { - TCB_t *pxTCB; - - /* If null is passed in here then we are modifying the MPU settings of - the calling task. */ - pxTCB = prvGetTCBFromHandle( xTaskToModify ); - - vPortStoreTaskMPUSettings( &( pxTCB->xMPUSettings ), xRegions, NULL, 0 ); - } - -#endif /* portUSING_MPU_WRAPPERS */ -/*-----------------------------------------------------------*/ - -static void prvInitialiseTaskLists( void ) -{ -UBaseType_t uxPriority; - - for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ ) - { - vListInitialise( &( pxReadyTasksLists[ uxPriority ] ) ); - } - - vListInitialise( &xDelayedTaskList1 ); - vListInitialise( &xDelayedTaskList2 ); - vListInitialise( &xPendingReadyList ); - - #if ( INCLUDE_vTaskDelete == 1 ) - { - vListInitialise( &xTasksWaitingTermination ); - } - #endif /* INCLUDE_vTaskDelete */ - - #if ( INCLUDE_vTaskSuspend == 1 ) - { - vListInitialise( &xSuspendedTaskList ); - } - #endif /* INCLUDE_vTaskSuspend */ - - /* Start with pxDelayedTaskList using list1 and the pxOverflowDelayedTaskList - using list2. */ - pxDelayedTaskList = &xDelayedTaskList1; - pxOverflowDelayedTaskList = &xDelayedTaskList2; -} -/*-----------------------------------------------------------*/ - -static void prvCheckTasksWaitingTermination( void ) -{ - - /** THIS FUNCTION IS CALLED FROM THE RTOS IDLE TASK **/ - - #if ( INCLUDE_vTaskDelete == 1 ) - { - TCB_t *pxTCB; - - /* uxDeletedTasksWaitingCleanUp is used to prevent taskENTER_CRITICAL() - being called too often in the idle task. */ - while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U ) - { - taskENTER_CRITICAL(); - { - 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. */ - ( void ) uxListRemove( &( pxTCB->xStateListItem ) ); - --uxCurrentNumberOfTasks; - --uxDeletedTasksWaitingCleanUp; - } - taskEXIT_CRITICAL(); - - prvDeleteTCB( pxTCB ); - } - } - #endif /* INCLUDE_vTaskDelete */ -} -/*-----------------------------------------------------------*/ - -#if( configUSE_TRACE_FACILITY == 1 ) - - void vTaskGetInfo( TaskHandle_t xTask, TaskStatus_t *pxTaskStatus, BaseType_t xGetFreeStackSpace, eTaskState eState ) - { - TCB_t *pxTCB; - - /* xTask is NULL then get the state of the calling task. */ - pxTCB = prvGetTCBFromHandle( xTask ); - - pxTaskStatus->xHandle = ( TaskHandle_t ) pxTCB; - pxTaskStatus->pcTaskName = ( const char * ) &( pxTCB->pcTaskName [ 0 ] ); - pxTaskStatus->uxCurrentPriority = pxTCB->uxPriority; - pxTaskStatus->pxStackBase = pxTCB->pxStack; - pxTaskStatus->xTaskNumber = pxTCB->uxTCBNumber; - - #if ( configUSE_MUTEXES == 1 ) - { - pxTaskStatus->uxBasePriority = pxTCB->uxBasePriority; - } - #else - { - pxTaskStatus->uxBasePriority = 0; - } - #endif - - #if ( configGENERATE_RUN_TIME_STATS == 1 ) - { - pxTaskStatus->ulRunTimeCounter = pxTCB->ulRunTimeCounter; - } - #else - { - pxTaskStatus->ulRunTimeCounter = 0; - } - #endif - - /* Obtaining the task state is a little fiddly, so is only done if the - value of eState passed into this function is eInvalid - otherwise the - state is just set to whatever is passed in. */ - if( eState != eInvalid ) - { - if( pxTCB == pxCurrentTCB ) - { - pxTaskStatus->eCurrentState = eRunning; - } - else - { - pxTaskStatus->eCurrentState = eState; - - #if ( INCLUDE_vTaskSuspend == 1 ) - { - /* If the task is in the suspended list then there is a - chance it is actually just blocked indefinitely - so really - it should be reported as being in the Blocked state. */ - if( eState == eSuspended ) - { - vTaskSuspendAll(); - { - if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL ) - { - pxTaskStatus->eCurrentState = eBlocked; - } - } - ( void ) xTaskResumeAll(); - } - } - #endif /* INCLUDE_vTaskSuspend */ - } - } - else - { - pxTaskStatus->eCurrentState = eTaskGetState( pxTCB ); - } - - /* Obtaining the stack space takes some time, so the xGetFreeStackSpace - parameter is provided to allow it to be skipped. */ - if( xGetFreeStackSpace != pdFALSE ) - { - #if ( portSTACK_GROWTH > 0 ) - { - pxTaskStatus->usStackHighWaterMark = prvTaskCheckFreeStackSpace( ( uint8_t * ) pxTCB->pxEndOfStack ); - } - #else - { - pxTaskStatus->usStackHighWaterMark = prvTaskCheckFreeStackSpace( ( uint8_t * ) pxTCB->pxStack ); - } - #endif - } - else - { - pxTaskStatus->usStackHighWaterMark = 0; - } - } - -#endif /* configUSE_TRACE_FACILITY */ -/*-----------------------------------------------------------*/ - -#if ( configUSE_TRACE_FACILITY == 1 ) - - static UBaseType_t prvListTasksWithinSingleList( TaskStatus_t *pxTaskStatusArray, List_t *pxList, eTaskState eState ) - { - configLIST_VOLATILE TCB_t *pxNextTCB, *pxFirstTCB; - UBaseType_t uxTask = 0; - - if( listCURRENT_LIST_LENGTH( pxList ) > ( UBaseType_t ) 0 ) - { - listGET_OWNER_OF_NEXT_ENTRY( pxFirstTCB, pxList ); /*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. */ - - /* Populate an TaskStatus_t structure within the - pxTaskStatusArray array for each task that is referenced from - pxList. See the definition of TaskStatus_t in task.h for the - meaning of each TaskStatus_t structure member. */ - do - { - listGET_OWNER_OF_NEXT_ENTRY( pxNextTCB, pxList ); /*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. */ - vTaskGetInfo( ( TaskHandle_t ) pxNextTCB, &( pxTaskStatusArray[ uxTask ] ), pdTRUE, eState ); - uxTask++; - } while( pxNextTCB != pxFirstTCB ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - return uxTask; - } - -#endif /* configUSE_TRACE_FACILITY */ -/*-----------------------------------------------------------*/ - -#if ( ( configUSE_TRACE_FACILITY == 1 ) || ( INCLUDE_uxTaskGetStackHighWaterMark == 1 ) || ( INCLUDE_uxTaskGetStackHighWaterMark2 == 1 ) ) - - static configSTACK_DEPTH_TYPE prvTaskCheckFreeStackSpace( const uint8_t * pucStackByte ) - { - uint32_t ulCount = 0U; - - while( *pucStackByte == ( uint8_t ) tskSTACK_FILL_BYTE ) - { - pucStackByte -= portSTACK_GROWTH; - ulCount++; - } - - ulCount /= ( uint32_t ) sizeof( StackType_t ); /*lint !e961 Casting is not redundant on smaller architectures. */ - - return ( configSTACK_DEPTH_TYPE ) ulCount; - } - -#endif /* ( ( configUSE_TRACE_FACILITY == 1 ) || ( INCLUDE_uxTaskGetStackHighWaterMark == 1 ) || ( INCLUDE_uxTaskGetStackHighWaterMark2 == 1 ) ) */ -/*-----------------------------------------------------------*/ - -#if ( INCLUDE_uxTaskGetStackHighWaterMark2 == 1 ) - - /* uxTaskGetStackHighWaterMark() and uxTaskGetStackHighWaterMark2() are the - same except for their return type. Using configSTACK_DEPTH_TYPE allows the - user to determine the return type. It gets around the problem of the value - overflowing on 8-bit types without breaking backward compatibility for - applications that expect an 8-bit return type. */ - configSTACK_DEPTH_TYPE uxTaskGetStackHighWaterMark2( TaskHandle_t xTask ) - { - TCB_t *pxTCB; - uint8_t *pucEndOfStack; - configSTACK_DEPTH_TYPE uxReturn; - - /* uxTaskGetStackHighWaterMark() and uxTaskGetStackHighWaterMark2() are - the same except for their return type. Using configSTACK_DEPTH_TYPE - allows the user to determine the return type. It gets around the - problem of the value overflowing on 8-bit types without breaking - backward compatibility for applications that expect an 8-bit return - type. */ - - pxTCB = prvGetTCBFromHandle( xTask ); - - #if portSTACK_GROWTH < 0 - { - pucEndOfStack = ( uint8_t * ) pxTCB->pxStack; - } - #else - { - pucEndOfStack = ( uint8_t * ) pxTCB->pxEndOfStack; - } - #endif - - uxReturn = prvTaskCheckFreeStackSpace( pucEndOfStack ); - - return uxReturn; - } - -#endif /* INCLUDE_uxTaskGetStackHighWaterMark2 */ -/*-----------------------------------------------------------*/ - -#if ( INCLUDE_uxTaskGetStackHighWaterMark == 1 ) - - UBaseType_t uxTaskGetStackHighWaterMark( TaskHandle_t xTask ) - { - TCB_t *pxTCB; - uint8_t *pucEndOfStack; - UBaseType_t uxReturn; - - pxTCB = prvGetTCBFromHandle( xTask ); - - #if portSTACK_GROWTH < 0 - { - pucEndOfStack = ( uint8_t * ) pxTCB->pxStack; - } - #else - { - pucEndOfStack = ( uint8_t * ) pxTCB->pxEndOfStack; - } - #endif - - uxReturn = ( UBaseType_t ) prvTaskCheckFreeStackSpace( pucEndOfStack ); - - return uxReturn; - } - -#endif /* INCLUDE_uxTaskGetStackHighWaterMark */ -/*-----------------------------------------------------------*/ - -#if ( INCLUDE_vTaskDelete == 1 ) - - static void prvDeleteTCB( TCB_t *pxTCB ) - { - /* This call is required specifically for the TriCore port. It must be - above the vPortFree() calls. The call is also used by ports/demos that - want to allocate and clean RAM statically. */ - portCLEAN_UP_TCB( pxTCB ); - - /* Free up the memory allocated by the scheduler for the task. It is up - to the task to free any memory allocated at the application level. - See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html - for additional information. */ - #if ( configUSE_NEWLIB_REENTRANT == 1 ) - { - _reclaim_reent( &( pxTCB->xNewLib_reent ) ); - } - #endif /* configUSE_NEWLIB_REENTRANT */ - - #if( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 0 ) && ( portUSING_MPU_WRAPPERS == 0 ) ) - { - /* The task can only have been allocated dynamically - free both - the stack and TCB. */ - vPortFree( pxTCB->pxStack ); - vPortFree( pxTCB ); - } - #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 ) - { - /* Both the stack and TCB were allocated dynamically, so both - must be freed. */ - vPortFree( pxTCB->pxStack ); - vPortFree( pxTCB ); - } - else if( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_ONLY ) - { - /* Only the stack was statically allocated, so the TCB is the - only memory that must be freed. */ - vPortFree( pxTCB ); - } - else - { - /* Neither the stack nor the TCB were allocated dynamically, so - nothing needs to be freed. */ - configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB ); - mtCOVERAGE_TEST_MARKER(); - } - } - #endif /* configSUPPORT_DYNAMIC_ALLOCATION */ - } - -#endif /* INCLUDE_vTaskDelete */ -/*-----------------------------------------------------------*/ - -static void prvResetNextTaskUnblockTime( void ) -{ -TCB_t *pxTCB; - - if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE ) - { - /* 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; - } - else - { - /* The new current 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 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 ) ); - } -} -/*-----------------------------------------------------------*/ - -#if ( ( INCLUDE_xTaskGetCurrentTaskHandle == 1 ) || ( configUSE_MUTEXES == 1 ) ) - - TaskHandle_t xTaskGetCurrentTaskHandle( void ) - { - TaskHandle_t xReturn; - - /* A critical section is not required as this is not called from - an interrupt and the current TCB will always be the same for any - individual execution thread. */ - xReturn = pxCurrentTCB; - - return xReturn; - } - -#endif /* ( ( INCLUDE_xTaskGetCurrentTaskHandle == 1 ) || ( configUSE_MUTEXES == 1 ) ) */ -/*-----------------------------------------------------------*/ - -#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) - - BaseType_t xTaskGetSchedulerState( void ) - { - BaseType_t xReturn; - - if( xSchedulerRunning == pdFALSE ) - { - xReturn = taskSCHEDULER_NOT_STARTED; - } - else - { - if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE ) - { - xReturn = taskSCHEDULER_RUNNING; - } - else - { - xReturn = taskSCHEDULER_SUSPENDED; - } - } - - return xReturn; - } - -#endif /* ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) */ -/*-----------------------------------------------------------*/ - -#if ( configUSE_MUTEXES == 1 ) - - BaseType_t xTaskPriorityInherit( TaskHandle_t const pxMutexHolder ) - { - TCB_t * const pxMutexHolderTCB = pxMutexHolder; - BaseType_t xReturn = pdFALSE; - - /* 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 ) - { - /* 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 ) - { - /* 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 ) - { - 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. */ - } - else - { - 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 ) - { - if( uxListRemove( &( pxMutexHolderTCB->xStateListItem ) ) == ( UBaseType_t ) 0 ) - { - /* It is known that the task is in its ready list so - there is no need to check again and the port level - reset macro can be called directly. */ - portRESET_READY_PRIORITY( pxMutexHolderTCB->uxPriority, uxTopReadyPriority ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - /* Inherit the priority before being moved into the new list. */ - pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority; - prvAddTaskToReadyList( pxMutexHolderTCB ); - } - else - { - /* Just inherit the priority. */ - pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority; - } - - traceTASK_PRIORITY_INHERIT( pxMutexHolderTCB, pxCurrentTCB->uxPriority ); - - /* Inheritance occurred. */ - xReturn = pdTRUE; - } - else - { - if( pxMutexHolderTCB->uxBasePriority < pxCurrentTCB->uxPriority ) - { - /* The base priority of the mutex holder is lower than the - priority of the task attempting to take the mutex, but the - 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; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - return xReturn; - } - -#endif /* configUSE_MUTEXES */ -/*-----------------------------------------------------------*/ - -#if ( configUSE_MUTEXES == 1 ) - - BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder ) - { - TCB_t * const pxTCB = pxMutexHolder; - BaseType_t xReturn = pdFALSE; - - if( pxMutexHolder != NULL ) - { - /* 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 ); - configASSERT( pxTCB->uxMutexesHeld ); - ( pxTCB->uxMutexesHeld )--; - - /* Has the holder of the mutex inherited the priority of another - task? */ - if( pxTCB->uxPriority != pxTCB->uxBasePriority ) - { - /* Only disinherit if no other mutexes are held. */ - if( pxTCB->uxMutexesHeld == ( UBaseType_t ) 0 ) - { - /* 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/delayed list. */ - if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 ) - { - taskRESET_READY_PRIORITY( pxTCB->uxPriority ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - /* Disinherit the priority before adding the task into the - new ready list. */ - traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority ); - pxTCB->uxPriority = pxTCB->uxBasePriority; - - /* 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. */ - prvAddTaskToReadyList( pxTCB ); - - /* Return true to indicate that a context switch is required. - This is only actually required in the corner case whereby - multiple mutexes were held and the mutexes were given back - 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; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - return xReturn; - } - -#endif /* configUSE_MUTEXES */ -/*-----------------------------------------------------------*/ - -#if ( configUSE_MUTEXES == 1 ) - - void vTaskPriorityDisinheritAfterTimeout( TaskHandle_t const pxMutexHolder, UBaseType_t uxHighestPriorityWaitingTask ) - { - TCB_t * const pxTCB = pxMutexHolder; - UBaseType_t uxPriorityUsedOnEntry, uxPriorityToUse; - const UBaseType_t uxOnlyOneMutexHeld = ( UBaseType_t ) 1; - - if( pxMutexHolder != NULL ) - { - /* If pxMutexHolder is not NULL then the holder must hold at least - one mutex. */ - configASSERT( pxTCB->uxMutexesHeld ); - - /* 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 ) - { - uxPriorityToUse = uxHighestPriorityWaitingTask; - } - else - { - uxPriorityToUse = pxTCB->uxBasePriority; - } - - /* Does the priority need to change? */ - if( pxTCB->uxPriority != uxPriorityToUse ) - { - /* 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 ) - { - /* 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 ); - - /* Disinherit the priority, remembering the previous - priority to facilitate determining the subject task's - state. */ - traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority ); - uxPriorityUsedOnEntry = pxTCB->uxPriority; - pxTCB->uxPriority = uxPriorityToUse; - - /* 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 ) - { - 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. */ - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - /* If the running task is not the task that holds the mutex - 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 ) - { - if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 ) - { - /* It is known that the task is in its ready list so - there is no need to check again and the port level - reset macro can be called directly. */ - portRESET_READY_PRIORITY( pxTCB->uxPriority, uxTopReadyPriority ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - prvAddTaskToReadyList( pxTCB ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - -#endif /* configUSE_MUTEXES */ -/*-----------------------------------------------------------*/ - -#if ( portCRITICAL_NESTING_IN_TCB == 1 ) - - void vTaskEnterCritical( void ) - { - portDISABLE_INTERRUPTS(); - - if( xSchedulerRunning != pdFALSE ) - { - ( pxCurrentTCB->uxCriticalNesting )++; - - /* 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( pxCurrentTCB->uxCriticalNesting == 1 ) - { - portASSERT_IF_IN_ISR(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - -#endif /* portCRITICAL_NESTING_IN_TCB */ -/*-----------------------------------------------------------*/ - -#if ( portCRITICAL_NESTING_IN_TCB == 1 ) - - void vTaskExitCritical( void ) - { - if( xSchedulerRunning != pdFALSE ) - { - if( pxCurrentTCB->uxCriticalNesting > 0U ) - { - ( pxCurrentTCB->uxCriticalNesting )--; - - if( pxCurrentTCB->uxCriticalNesting == 0U ) - { - portENABLE_INTERRUPTS(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - -#endif /* portCRITICAL_NESTING_IN_TCB */ -/*-----------------------------------------------------------*/ - -#if ( ( configUSE_TRACE_FACILITY == 1 ) && ( configUSE_STATS_FORMATTING_FUNCTIONS > 0 ) ) - - static char *prvWriteNameToBuffer( char *pcBuffer, const char *pcTaskName ) - { - size_t x; - - /* Start by copying the entire string. */ - strcpy( pcBuffer, pcTaskName ); - - /* Pad the end of the string with spaces to ensure columns line up when - printed out. */ - for( x = strlen( pcBuffer ); x < ( size_t ) ( configMAX_TASK_NAME_LEN - 1 ); x++ ) - { - pcBuffer[ x ] = ' '; - } - - /* Terminate. */ - pcBuffer[ x ] = ( char ) 0x00; - - /* Return the new end of string. */ - return &( pcBuffer[ x ] ); - } - -#endif /* ( configUSE_TRACE_FACILITY == 1 ) && ( configUSE_STATS_FORMATTING_FUNCTIONS > 0 ) */ -/*-----------------------------------------------------------*/ - -#if ( ( configUSE_TRACE_FACILITY == 1 ) && ( configUSE_STATS_FORMATTING_FUNCTIONS > 0 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) - - void vTaskList( char * pcWriteBuffer ) - { - TaskStatus_t *pxTaskStatusArray; - UBaseType_t uxArraySize, x; - char cStatus; - - /* - * PLEASE NOTE: - * - * This function is provided for convenience only, and is used by many - * of the demo applications. Do not consider it to be part of the - * scheduler. - * - * vTaskList() calls uxTaskGetSystemState(), then formats part of the - * uxTaskGetSystemState() output into a human readable table that - * displays task names, states and stack usage. - * - * vTaskList() has a dependency on the sprintf() C library function that - * might bloat the code size, use a lot of stack, and provide different - * results on different platforms. An alternative, tiny, third party, - * and limited functionality implementation of sprintf() is provided in - * many of the FreeRTOS/Demo sub-directories in a file called - * printf-stdarg.c (note printf-stdarg.c does not provide a full - * snprintf() implementation!). - * - * It is recommended that production systems call uxTaskGetSystemState() - * directly to get access to raw stats data, rather than indirectly - * through a call to vTaskList(). - */ - - - /* Make sure the write buffer does not contain a string. */ - *pcWriteBuffer = ( char ) 0x00; - - /* Take a snapshot of the number of tasks in case it changes while this - function is executing. */ - uxArraySize = uxCurrentNumberOfTasks; - - /* Allocate an array index for each task. NOTE! if - configSUPPORT_DYNAMIC_ALLOCATION is set to 0 then pvPortMalloc() will - equate to NULL. */ - pxTaskStatusArray = pvPortMalloc( uxCurrentNumberOfTasks * sizeof( TaskStatus_t ) ); /*lint !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack and this allocation allocates a struct that has the alignment requirements of a pointer. */ - - if( pxTaskStatusArray != NULL ) - { - /* Generate the (binary) data. */ - uxArraySize = uxTaskGetSystemState( pxTaskStatusArray, uxArraySize, NULL ); - - /* Create a human readable table from the binary data. */ - for( x = 0; x < uxArraySize; x++ ) - { - switch( pxTaskStatusArray[ x ].eCurrentState ) - { - case eRunning: cStatus = tskRUNNING_CHAR; - break; - - case eReady: cStatus = tskREADY_CHAR; - break; - - case eBlocked: cStatus = tskBLOCKED_CHAR; - break; - - case eSuspended: cStatus = tskSUSPENDED_CHAR; - break; - - case eDeleted: cStatus = tskDELETED_CHAR; - break; - - case eInvalid: /* Fall through. */ - default: /* Should not get here, but it is included - to prevent static checking errors. */ - cStatus = ( char ) 0x00; - break; - } - - /* Write the task name to the string, padding with spaces so it - can be printed in tabular form more easily. */ - pcWriteBuffer = prvWriteNameToBuffer( pcWriteBuffer, pxTaskStatusArray[ x ].pcTaskName ); - - /* Write the rest of the string. */ - sprintf( pcWriteBuffer, "\t%c\t%u\t%u\t%u\r\n", cStatus, ( unsigned int ) pxTaskStatusArray[ x ].uxCurrentPriority, ( unsigned int ) pxTaskStatusArray[ x ].usStackHighWaterMark, ( unsigned int ) pxTaskStatusArray[ x ].xTaskNumber ); /*lint !e586 sprintf() allowed as this is compiled with many compilers and this is a utility function only - not part of the core kernel implementation. */ - pcWriteBuffer += strlen( pcWriteBuffer ); /*lint !e9016 Pointer arithmetic ok on char pointers especially as in this case where it best denotes the intent of the code. */ - } - - /* Free the array again. NOTE! If configSUPPORT_DYNAMIC_ALLOCATION - is 0 then vPortFree() will be #defined to nothing. */ - vPortFree( pxTaskStatusArray ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - -#endif /* ( ( configUSE_TRACE_FACILITY == 1 ) && ( configUSE_STATS_FORMATTING_FUNCTIONS > 0 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) */ -/*----------------------------------------------------------*/ - -#if ( ( configGENERATE_RUN_TIME_STATS == 1 ) && ( configUSE_STATS_FORMATTING_FUNCTIONS > 0 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) - - void vTaskGetRunTimeStats( char *pcWriteBuffer ) - { - TaskStatus_t *pxTaskStatusArray; - UBaseType_t uxArraySize, x; - uint32_t ulTotalTime, ulStatsAsPercentage; - - #if( configUSE_TRACE_FACILITY != 1 ) - { - #error configUSE_TRACE_FACILITY must also be set to 1 in FreeRTOSConfig.h to use vTaskGetRunTimeStats(). - } - #endif - - /* - * PLEASE NOTE: - * - * This function is provided for convenience only, and is used by many - * of the demo applications. Do not consider it to be part of the - * scheduler. - * - * vTaskGetRunTimeStats() calls uxTaskGetSystemState(), then formats part - * of the uxTaskGetSystemState() output into a human readable table that - * displays the amount of time each task has spent in the Running state - * in both absolute and percentage terms. - * - * vTaskGetRunTimeStats() has a dependency on the sprintf() C library - * function that might bloat the code size, use a lot of stack, and - * provide different results on different platforms. An alternative, - * tiny, third party, and limited functionality implementation of - * sprintf() is provided in many of the FreeRTOS/Demo sub-directories in - * a file called printf-stdarg.c (note printf-stdarg.c does not provide - * a full snprintf() implementation!). - * - * It is recommended that production systems call uxTaskGetSystemState() - * directly to get access to raw stats data, rather than indirectly - * through a call to vTaskGetRunTimeStats(). - */ - - /* Make sure the write buffer does not contain a string. */ - *pcWriteBuffer = ( char ) 0x00; - - /* Take a snapshot of the number of tasks in case it changes while this - function is executing. */ - uxArraySize = uxCurrentNumberOfTasks; - - /* Allocate an array index for each task. NOTE! If - configSUPPORT_DYNAMIC_ALLOCATION is set to 0 then pvPortMalloc() will - equate to NULL. */ - pxTaskStatusArray = pvPortMalloc( uxCurrentNumberOfTasks * sizeof( TaskStatus_t ) ); /*lint !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack and this allocation allocates a struct that has the alignment requirements of a pointer. */ - - if( pxTaskStatusArray != NULL ) - { - /* Generate the (binary) data. */ - uxArraySize = uxTaskGetSystemState( pxTaskStatusArray, uxArraySize, &ulTotalTime ); - - /* For percentage calculations. */ - ulTotalTime /= 100UL; - - /* Avoid divide by zero errors. */ - if( ulTotalTime > 0UL ) - { - /* Create a human readable table from the binary data. */ - for( x = 0; x < uxArraySize; x++ ) - { - /* What percentage of the total run time has the task used? - This will always be rounded down to the nearest integer. - ulTotalRunTimeDiv100 has already been divided by 100. */ - ulStatsAsPercentage = pxTaskStatusArray[ x ].ulRunTimeCounter / ulTotalTime; - - /* Write the task name to the string, padding with - spaces so it can be printed in tabular form more - easily. */ - pcWriteBuffer = prvWriteNameToBuffer( pcWriteBuffer, pxTaskStatusArray[ x ].pcTaskName ); - - if( ulStatsAsPercentage > 0UL ) - { - #ifdef portLU_PRINTF_SPECIFIER_REQUIRED - { - sprintf( pcWriteBuffer, "\t%lu\t\t%lu%%\r\n", pxTaskStatusArray[ x ].ulRunTimeCounter, ulStatsAsPercentage ); - } - #else - { - /* sizeof( int ) == sizeof( long ) so a smaller - printf() library can be used. */ - sprintf( pcWriteBuffer, "\t%u\t\t%u%%\r\n", ( unsigned int ) pxTaskStatusArray[ x ].ulRunTimeCounter, ( unsigned int ) ulStatsAsPercentage ); /*lint !e586 sprintf() allowed as this is compiled with many compilers and this is a utility function only - not part of the core kernel implementation. */ - } - #endif - } - else - { - /* If the percentage is zero here then the task has - consumed less than 1% of the total run time. */ - #ifdef portLU_PRINTF_SPECIFIER_REQUIRED - { - sprintf( pcWriteBuffer, "\t%lu\t\t<1%%\r\n", pxTaskStatusArray[ x ].ulRunTimeCounter ); - } - #else - { - /* sizeof( int ) == sizeof( long ) so a smaller - printf() library can be used. */ - sprintf( pcWriteBuffer, "\t%u\t\t<1%%\r\n", ( unsigned int ) pxTaskStatusArray[ x ].ulRunTimeCounter ); /*lint !e586 sprintf() allowed as this is compiled with many compilers and this is a utility function only - not part of the core kernel implementation. */ - } - #endif - } - - pcWriteBuffer += strlen( pcWriteBuffer ); /*lint !e9016 Pointer arithmetic ok on char pointers especially as in this case where it best denotes the intent of the code. */ - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - /* Free the array again. NOTE! If configSUPPORT_DYNAMIC_ALLOCATION - is 0 then vPortFree() will be #defined to nothing. */ - vPortFree( pxTaskStatusArray ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - -#endif /* ( ( configGENERATE_RUN_TIME_STATS == 1 ) && ( configUSE_STATS_FORMATTING_FUNCTIONS > 0 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) ) */ -/*-----------------------------------------------------------*/ - -TickType_t uxTaskResetEventItemValue( void ) -{ -TickType_t uxReturn; - - uxReturn = listGET_LIST_ITEM_VALUE( &( pxCurrentTCB->xEventListItem ) ); - - /* Reset the event list item to its normal value - so it can be used with - queues and semaphores. */ - listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xEventListItem ), ( ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) pxCurrentTCB->uxPriority ) ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */ - - return uxReturn; -} -/*-----------------------------------------------------------*/ - -#if ( configUSE_MUTEXES == 1 ) - - TaskHandle_t pvTaskIncrementMutexHeldCount( void ) - { - /* If xSemaphoreCreateMutex() is called before any tasks have been created - then pxCurrentTCB will be NULL. */ - if( pxCurrentTCB != NULL ) - { - ( pxCurrentTCB->uxMutexesHeld )++; - } - - return pxCurrentTCB; - } - -#endif /* configUSE_MUTEXES */ -/*-----------------------------------------------------------*/ - -#if( configUSE_TASK_NOTIFICATIONS == 1 ) - - uint32_t ulTaskNotifyTake( BaseType_t xClearCountOnExit, TickType_t xTicksToWait ) - { - uint32_t ulReturn; - - taskENTER_CRITICAL(); - { - /* Only block if the notification count is not already non-zero. */ - if( pxCurrentTCB->ulNotifiedValue == 0UL ) - { - /* Mark this task as waiting for a notification. */ - pxCurrentTCB->ucNotifyState = taskWAITING_NOTIFICATION; - - if( xTicksToWait > ( TickType_t ) 0 ) - { - prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE ); - traceTASK_NOTIFY_TAKE_BLOCK(); - - /* All ports are written to allow a yield in a critical - section (some will yield immediately, others wait until the - critical section exits) - but it is not something that - application code should ever do. */ - portYIELD_WITHIN_API(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - taskEXIT_CRITICAL(); - - taskENTER_CRITICAL(); - { - traceTASK_NOTIFY_TAKE(); - ulReturn = pxCurrentTCB->ulNotifiedValue; - - if( ulReturn != 0UL ) - { - if( xClearCountOnExit != pdFALSE ) - { - pxCurrentTCB->ulNotifiedValue = 0UL; - } - else - { - pxCurrentTCB->ulNotifiedValue = ulReturn - ( uint32_t ) 1; - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - pxCurrentTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION; - } - taskEXIT_CRITICAL(); - - return ulReturn; - } - -#endif /* configUSE_TASK_NOTIFICATIONS */ -/*-----------------------------------------------------------*/ - -#if( configUSE_TASK_NOTIFICATIONS == 1 ) - - BaseType_t xTaskNotifyWait( uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t *pulNotificationValue, TickType_t xTicksToWait ) - { - BaseType_t xReturn; - - taskENTER_CRITICAL(); - { - /* Only block if a notification is not already pending. */ - if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED ) - { - /* Clear bits in the task's notification value as bits may get - set by the notifying task or interrupt. This can be used to - clear the value to zero. */ - pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnEntry; - - /* Mark this task as waiting for a notification. */ - pxCurrentTCB->ucNotifyState = taskWAITING_NOTIFICATION; - - if( xTicksToWait > ( TickType_t ) 0 ) - { - prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE ); - traceTASK_NOTIFY_WAIT_BLOCK(); - - /* All ports are written to allow a yield in a critical - section (some will yield immediately, others wait until the - critical section exits) - but it is not something that - application code should ever do. */ - portYIELD_WITHIN_API(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - taskEXIT_CRITICAL(); - - taskENTER_CRITICAL(); - { - traceTASK_NOTIFY_WAIT(); - - if( pulNotificationValue != NULL ) - { - /* Output the current notification value, which may or may not - have changed. */ - *pulNotificationValue = pxCurrentTCB->ulNotifiedValue; - } - - /* If ucNotifyValue is set then either the task never entered the - blocked state (because a notification was already pending) or the - task unblocked because of a notification. Otherwise the task - unblocked because of a timeout. */ - if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED ) - { - /* A notification was not received. */ - xReturn = pdFALSE; - } - else - { - /* A notification was already pending or a notification was - received while the task was waiting. */ - pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnExit; - xReturn = pdTRUE; - } - - pxCurrentTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION; - } - taskEXIT_CRITICAL(); - - return xReturn; - } - -#endif /* configUSE_TASK_NOTIFICATIONS */ -/*-----------------------------------------------------------*/ - -#if( configUSE_TASK_NOTIFICATIONS == 1 ) - - BaseType_t xTaskGenericNotify( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue ) - { - TCB_t * pxTCB; - BaseType_t xReturn = pdPASS; - uint8_t ucOriginalNotifyState; - - configASSERT( xTaskToNotify ); - pxTCB = xTaskToNotify; - - taskENTER_CRITICAL(); - { - if( pulPreviousNotificationValue != NULL ) - { - *pulPreviousNotificationValue = pxTCB->ulNotifiedValue; - } - - ucOriginalNotifyState = pxTCB->ucNotifyState; - - pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED; - - switch( eAction ) - { - case eSetBits : - pxTCB->ulNotifiedValue |= ulValue; - break; - - case eIncrement : - ( pxTCB->ulNotifiedValue )++; - break; - - case eSetValueWithOverwrite : - pxTCB->ulNotifiedValue = ulValue; - break; - - case eSetValueWithoutOverwrite : - if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED ) - { - pxTCB->ulNotifiedValue = ulValue; - } - else - { - /* The value could not be written to the task. */ - xReturn = pdFAIL; - } - break; - - case eNoAction: - /* The task is being notified without its notify value being - updated. */ - break; - - default: - /* Should not get here if all enums are handled. - Artificially force an assert by testing a value the - compiler can't assume is const. */ - configASSERT( pxTCB->ulNotifiedValue == ~0UL ); - - break; - } - - traceTASK_NOTIFY(); - - /* If the task is in the blocked state specifically to wait for a - notification then unblock it now. */ - if( ucOriginalNotifyState == taskWAITING_NOTIFICATION ) - { - ( void ) uxListRemove( &( pxTCB->xStateListItem ) ); - prvAddTaskToReadyList( pxTCB ); - - /* The task should not have been on an event list. */ - configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL ); - - #if( configUSE_TICKLESS_IDLE != 0 ) - { - /* If a task is blocked waiting for a notification then - xNextTaskUnblockTime might be set to the blocked task's time - out time. If the task is unblocked for a reason other than - a timeout xNextTaskUnblockTime is normally left unchanged, - because it will automatically get reset to a new value when - the tick count equals xNextTaskUnblockTime. However if - tickless idling is used it might be more important to enter - sleep mode at the earliest possible time - so reset - xNextTaskUnblockTime here to ensure it is updated at the - earliest possible time. */ - prvResetNextTaskUnblockTime(); - } - #endif - - if( pxTCB->uxPriority > pxCurrentTCB->uxPriority ) - { - /* The notified task has a priority above the currently - executing task so a yield is required. */ - taskYIELD_IF_USING_PREEMPTION(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - taskEXIT_CRITICAL(); - - return xReturn; - } - -#endif /* configUSE_TASK_NOTIFICATIONS */ -/*-----------------------------------------------------------*/ - -#if( configUSE_TASK_NOTIFICATIONS == 1 ) - - BaseType_t xTaskGenericNotifyFromISR( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue, BaseType_t *pxHigherPriorityTaskWoken ) - { - TCB_t * pxTCB; - uint8_t ucOriginalNotifyState; - BaseType_t xReturn = pdPASS; - UBaseType_t uxSavedInterruptStatus; - - configASSERT( xTaskToNotify ); - - /* RTOS ports that support interrupt nesting have the concept of a - maximum system call (or maximum API call) interrupt priority. - Interrupts that are above the maximum system call priority are keep - permanently enabled, even when the RTOS kernel is in a critical section, - but cannot make any calls to FreeRTOS API functions. If configASSERT() - is defined in FreeRTOSConfig.h then - portASSERT_IF_INTERRUPT_PRIORITY_INVALID() will result in an assertion - failure if a FreeRTOS API function is called from an interrupt that has - been assigned a priority above the configured maximum system call - priority. Only FreeRTOS functions that end in FromISR can be called - from interrupts 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(); - - pxTCB = xTaskToNotify; - - uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR(); - { - if( pulPreviousNotificationValue != NULL ) - { - *pulPreviousNotificationValue = pxTCB->ulNotifiedValue; - } - - ucOriginalNotifyState = pxTCB->ucNotifyState; - pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED; - - switch( eAction ) - { - case eSetBits : - pxTCB->ulNotifiedValue |= ulValue; - break; - - case eIncrement : - ( pxTCB->ulNotifiedValue )++; - break; - - case eSetValueWithOverwrite : - pxTCB->ulNotifiedValue = ulValue; - break; - - case eSetValueWithoutOverwrite : - if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED ) - { - pxTCB->ulNotifiedValue = ulValue; - } - else - { - /* The value could not be written to the task. */ - xReturn = pdFAIL; - } - break; - - case eNoAction : - /* The task is being notified without its notify value being - updated. */ - break; - - default: - /* Should not get here if all enums are handled. - Artificially force an assert by testing a value the - compiler can't assume is const. */ - configASSERT( pxTCB->ulNotifiedValue == ~0UL ); - break; - } - - traceTASK_NOTIFY_FROM_ISR(); - - /* If the task is in the blocked state specifically to wait for a - notification then unblock it now. */ - if( ucOriginalNotifyState == taskWAITING_NOTIFICATION ) - { - /* The task should not have been on an event list. */ - configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL ); - - if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE ) - { - ( void ) uxListRemove( &( pxTCB->xStateListItem ) ); - prvAddTaskToReadyList( pxTCB ); - } - else - { - /* The delayed and ready lists cannot be accessed, so hold - this task pending until the scheduler is resumed. */ - vListInsertEnd( &( xPendingReadyList ), &( pxTCB->xEventListItem ) ); - } - - if( pxTCB->uxPriority > pxCurrentTCB->uxPriority ) - { - /* The notified task has a priority above the currently - executing task so a yield is required. */ - if( pxHigherPriorityTaskWoken != NULL ) - { - *pxHigherPriorityTaskWoken = pdTRUE; - } - - /* Mark that a yield is pending in case the user is not - using the "xHigherPriorityTaskWoken" parameter to an ISR - safe FreeRTOS function. */ - xYieldPending = pdTRUE; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - } - portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); - - return xReturn; - } - -#endif /* configUSE_TASK_NOTIFICATIONS */ -/*-----------------------------------------------------------*/ - -#if( configUSE_TASK_NOTIFICATIONS == 1 ) - - void vTaskNotifyGiveFromISR( TaskHandle_t xTaskToNotify, BaseType_t *pxHigherPriorityTaskWoken ) - { - TCB_t * pxTCB; - uint8_t ucOriginalNotifyState; - UBaseType_t uxSavedInterruptStatus; - - configASSERT( xTaskToNotify ); - - /* RTOS ports that support interrupt nesting have the concept of a - maximum system call (or maximum API call) interrupt priority. - Interrupts that are above the maximum system call priority are keep - permanently enabled, even when the RTOS kernel is in a critical section, - but cannot make any calls to FreeRTOS API functions. If configASSERT() - is defined in FreeRTOSConfig.h then - portASSERT_IF_INTERRUPT_PRIORITY_INVALID() will result in an assertion - failure if a FreeRTOS API function is called from an interrupt that has - been assigned a priority above the configured maximum system call - priority. Only FreeRTOS functions that end in FromISR can be called - from interrupts 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(); - - pxTCB = xTaskToNotify; - - uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR(); - { - ucOriginalNotifyState = pxTCB->ucNotifyState; - pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED; - - /* 'Giving' is equivalent to incrementing a count in a counting - semaphore. */ - ( pxTCB->ulNotifiedValue )++; - - traceTASK_NOTIFY_GIVE_FROM_ISR(); - - /* If the task is in the blocked state specifically to wait for a - notification then unblock it now. */ - if( ucOriginalNotifyState == taskWAITING_NOTIFICATION ) - { - /* The task should not have been on an event list. */ - configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL ); - - if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE ) - { - ( void ) uxListRemove( &( pxTCB->xStateListItem ) ); - prvAddTaskToReadyList( pxTCB ); - } - else - { - /* The delayed and ready lists cannot be accessed, so hold - this task pending until the scheduler is resumed. */ - vListInsertEnd( &( xPendingReadyList ), &( pxTCB->xEventListItem ) ); - } - - if( pxTCB->uxPriority > pxCurrentTCB->uxPriority ) - { - /* The notified task has a priority above the currently - executing task so a yield is required. */ - if( pxHigherPriorityTaskWoken != NULL ) - { - *pxHigherPriorityTaskWoken = pdTRUE; - } - - /* Mark that a yield is pending in case the user is not - using the "xHigherPriorityTaskWoken" parameter in an ISR - safe FreeRTOS function. */ - xYieldPending = pdTRUE; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - } - portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); - } - -#endif /* configUSE_TASK_NOTIFICATIONS */ -/*-----------------------------------------------------------*/ - -#if( configUSE_TASK_NOTIFICATIONS == 1 ) - - BaseType_t xTaskNotifyStateClear( TaskHandle_t xTask ) - { - TCB_t *pxTCB; - BaseType_t xReturn; - - /* If null is passed in here then it is the calling task that is having - its notification state cleared. */ - pxTCB = prvGetTCBFromHandle( xTask ); - - taskENTER_CRITICAL(); - { - if( pxTCB->ucNotifyState == taskNOTIFICATION_RECEIVED ) - { - pxTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION; - xReturn = pdPASS; - } - else - { - xReturn = pdFAIL; - } - } - taskEXIT_CRITICAL(); - - return xReturn; - } - -#endif /* configUSE_TASK_NOTIFICATIONS */ -/*-----------------------------------------------------------*/ - -#if( configUSE_TASK_NOTIFICATIONS == 1 ) - - uint32_t ulTaskNotifyValueClear( TaskHandle_t xTask, uint32_t ulBitsToClear ) - { - TCB_t *pxTCB; - uint32_t ulReturn; - - /* If null is passed in here then it is the calling task that is having - its notification state cleared. */ - pxTCB = prvGetTCBFromHandle( xTask ); - - taskENTER_CRITICAL(); - { - /* Return the notification as it was before the bits were cleared, - then clear the bit mask. */ - ulReturn = pxCurrentTCB->ulNotifiedValue; - pxTCB->ulNotifiedValue &= ~ulBitsToClear; - } - taskEXIT_CRITICAL(); - - return ulReturn; - } - -#endif /* configUSE_TASK_NOTIFICATIONS */ -/*-----------------------------------------------------------*/ - -#if( ( configGENERATE_RUN_TIME_STATS == 1 ) && ( INCLUDE_xTaskGetIdleTaskHandle == 1 ) ) - - uint32_t ulTaskGetIdleRunTimeCounter( void ) - { - return xIdleTaskHandle->ulRunTimeCounter; - } - -#endif -/*-----------------------------------------------------------*/ - -static void prvAddCurrentTaskToDelayedList( TickType_t xTicksToWait, const BaseType_t xCanBlockIndefinitely ) -{ -TickType_t xTimeToWake; -const TickType_t xConstTickCount = xTickCount; - - #if( INCLUDE_xTaskAbortDelay == 1 ) - { - /* About to enter a delayed list, so ensure the ucDelayAborted flag is - reset to pdFALSE so it can be detected as having been set to pdTRUE - when the task leaves the Blocked state. */ - pxCurrentTCB->ucDelayAborted = pdFALSE; - } - #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 ) - { - /* 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. */ - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - #if ( INCLUDE_vTaskSuspend == 1 ) - { - if( ( xTicksToWait == portMAX_DELAY ) && ( xCanBlockIndefinitely != pdFALSE ) ) - { - /* 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 ) ); - } - else - { - /* Calculate the time at which the task should be woken if the event - does not occur. This may overflow but this doesn't matter, the - kernel will manage it correctly. */ - xTimeToWake = xConstTickCount + xTicksToWait; - - /* The list item will be inserted in wake time order. */ - listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xStateListItem ), xTimeToWake ); - - if( xTimeToWake < xConstTickCount ) - { - /* Wake time has overflowed. Place this item in the overflow - list. */ - vListInsert( pxOverflowDelayedTaskList, &( pxCurrentTCB->xStateListItem ) ); - } - else - { - /* The wake time has not overflowed, so the current block list - is used. */ - vListInsert( pxDelayedTaskList, &( pxCurrentTCB->xStateListItem ) ); - - /* If the task entering the blocked state was placed at the - head of the list of blocked tasks then xNextTaskUnblockTime - needs to be updated too. */ - if( xTimeToWake < xNextTaskUnblockTime ) - { - xNextTaskUnblockTime = xTimeToWake; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - } - } - #else /* INCLUDE_vTaskSuspend */ - { - /* Calculate the time at which the task should be woken if the event - does not occur. This may overflow but this doesn't matter, the kernel - will manage it correctly. */ - xTimeToWake = xConstTickCount + xTicksToWait; - - /* The list item will be inserted in wake time order. */ - listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xStateListItem ), xTimeToWake ); - - if( xTimeToWake < xConstTickCount ) - { - /* Wake time has overflowed. Place this item in the overflow list. */ - vListInsert( pxOverflowDelayedTaskList, &( pxCurrentTCB->xStateListItem ) ); - } - else - { - /* The wake time has not overflowed, so the current block list is used. */ - vListInsert( pxDelayedTaskList, &( pxCurrentTCB->xStateListItem ) ); - - /* If the task entering the blocked state was placed at the head of the - list of blocked tasks then xNextTaskUnblockTime needs to be updated - too. */ - if( xTimeToWake < xNextTaskUnblockTime ) - { - xNextTaskUnblockTime = xTimeToWake; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - - /* Avoid compiler warning when INCLUDE_vTaskSuspend is not 1. */ - ( void ) xCanBlockIndefinitely; - } - #endif /* INCLUDE_vTaskSuspend */ -} - -/* Code below here allows additional code to be inserted into this source file, -especially where access to file scope functions and data is needed (for example -when performing module tests). */ - -#ifdef FREERTOS_MODULE_TEST - #include "tasks_test_access_functions.h" -#endif - - -#if( configINCLUDE_FREERTOS_TASK_C_ADDITIONS_H == 1 ) - - #include "freertos_tasks_c_additions.h" - - #ifdef FREERTOS_TASKS_C_ADDITIONS_INIT - static void freertos_tasks_c_additions_init( void ) - { - FREERTOS_TASKS_C_ADDITIONS_INIT(); - } - #endif - -#endif - - diff --git a/Middlewares/Third_Party/FreeRTOS/Source/timers.c b/Middlewares/Third_Party/FreeRTOS/Source/timers.c deleted file mode 100644 index 00200b8..0000000 --- a/Middlewares/Third_Party/FreeRTOS/Source/timers.c +++ /dev/null @@ -1,1127 +0,0 @@ -/* - * FreeRTOS Kernel V10.3.1 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - -/* Standard includes. */ -#include - -/* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining -all the API functions to use the MPU wrappers. That should only be done when -task.h is included from an application file. */ -#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE - -#include "FreeRTOS.h" -#include "task.h" -#include "queue.h" -#include "timers.h" - -#if ( INCLUDE_xTimerPendFunctionCall == 1 ) && ( configUSE_TIMERS == 0 ) - #error configUSE_TIMERS must be set to 1 to make the xTimerPendFunctionCall() function available. -#endif - -/* Lint e9021, e961 and e750 are suppressed as a MISRA exception justified -because the MPU ports require MPU_WRAPPERS_INCLUDED_FROM_API_FILE to be defined -for the header files above, but not in this file, in order to generate the -correct privileged Vs unprivileged linkage and placement. */ -#undef MPU_WRAPPERS_INCLUDED_FROM_API_FILE /*lint !e9021 !e961 !e750. */ - - -/* This entire source file will be skipped if the application is not configured -to include software timer functionality. This #if is closed at the very bottom -of this file. If you want to include software timer functionality then ensure -configUSE_TIMERS is set to 1 in FreeRTOSConfig.h. */ -#if ( configUSE_TIMERS == 1 ) - -/* Misc definitions. */ -#define tmrNO_DELAY ( TickType_t ) 0U - -/* The name assigned to the timer service task. This can be overridden by -defining trmTIMER_SERVICE_TASK_NAME in FreeRTOSConfig.h. */ -#ifndef configTIMER_SERVICE_TASK_NAME - #define configTIMER_SERVICE_TASK_NAME "Tmr Svc" -#endif - -/* Bit definitions used in the ucStatus member of a timer structure. */ -#define tmrSTATUS_IS_ACTIVE ( ( uint8_t ) 0x01 ) -#define tmrSTATUS_IS_STATICALLY_ALLOCATED ( ( uint8_t ) 0x02 ) -#define tmrSTATUS_IS_AUTORELOAD ( ( uint8_t ) 0x04 ) - -/* The definition of the timers themselves. */ -typedef struct tmrTimerControl /* The old naming convention is used to prevent breaking kernel aware debuggers. */ -{ - const char *pcTimerName; /*<< Text name. This is not used by the kernel, it is included simply to make debugging easier. */ /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ - ListItem_t xTimerListItem; /*<< Standard linked list item as used by all kernel features for event management. */ - TickType_t xTimerPeriodInTicks;/*<< How quickly and often the timer expires. */ - void *pvTimerID; /*<< An ID to identify the timer. This allows the timer to be identified when the same callback is used for multiple timers. */ - TimerCallbackFunction_t pxCallbackFunction; /*<< The function that will be called when the timer expires. */ - #if( configUSE_TRACE_FACILITY == 1 ) - UBaseType_t uxTimerNumber; /*<< An ID assigned by trace tools such as FreeRTOS+Trace */ - #endif - uint8_t ucStatus; /*<< Holds bits to say if the timer was statically allocated or not, and if it is active or not. */ -} xTIMER; - -/* The old xTIMER name is maintained above then typedefed to the new Timer_t -name below to enable the use of older kernel aware debuggers. */ -typedef xTIMER Timer_t; - -/* The definition of messages that can be sent and received on the timer queue. -Two types of message can be queued - messages that manipulate a software timer, -and messages that request the execution of a non-timer related callback. The -two message types are defined in two separate structures, xTimerParametersType -and xCallbackParametersType respectively. */ -typedef struct tmrTimerParameters -{ - TickType_t xMessageValue; /*<< An optional value used by a subset of commands, for example, when changing the period of a timer. */ - Timer_t * pxTimer; /*<< The timer to which the command will be applied. */ -} TimerParameter_t; - - -typedef struct tmrCallbackParameters -{ - PendedFunction_t pxCallbackFunction; /* << The callback function to execute. */ - void *pvParameter1; /* << The value that will be used as the callback functions first parameter. */ - uint32_t ulParameter2; /* << The value that will be used as the callback functions second parameter. */ -} CallbackParameters_t; - -/* The structure that contains the two message types, along with an identifier -that is used to determine which message type is valid. */ -typedef struct tmrTimerQueueMessage -{ - BaseType_t xMessageID; /*<< The command being sent to the timer service task. */ - union - { - TimerParameter_t xTimerParameters; - - /* Don't include xCallbackParameters if it is not going to be used as - it makes the structure (and therefore the timer queue) larger. */ - #if ( INCLUDE_xTimerPendFunctionCall == 1 ) - CallbackParameters_t xCallbackParameters; - #endif /* INCLUDE_xTimerPendFunctionCall */ - } u; -} DaemonTaskMessage_t; - -/*lint -save -e956 A manual analysis and inspection has been used to determine -which static variables must be declared volatile. */ - -/* The list in which active timers are stored. Timers are referenced in expire -time order, with the nearest expiry time at the front of the list. Only the -timer service task is allowed to access these lists. -xActiveTimerList1 and xActiveTimerList2 could be at function scope but that -breaks some kernel aware debuggers, and debuggers that reply on removing the -static qualifier. */ -PRIVILEGED_DATA static List_t xActiveTimerList1; -PRIVILEGED_DATA static List_t xActiveTimerList2; -PRIVILEGED_DATA static List_t *pxCurrentTimerList; -PRIVILEGED_DATA static List_t *pxOverflowTimerList; - -/* A queue that is used to send commands to the timer service task. */ -PRIVILEGED_DATA static QueueHandle_t xTimerQueue = NULL; -PRIVILEGED_DATA static TaskHandle_t xTimerTaskHandle = NULL; - -/*lint -restore */ - -/*-----------------------------------------------------------*/ - -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) - - /* If static allocation is supported then the application must provide the - following callback function - which enables the application to optionally - provide the memory that will be used by the timer task as the task's stack - and TCB. */ - extern void vApplicationGetTimerTaskMemory( StaticTask_t **ppxTimerTaskTCBBuffer, StackType_t **ppxTimerTaskStackBuffer, uint32_t *pulTimerTaskStackSize ); - -#endif - -/* - * Initialise the infrastructure used by the timer service task if it has not - * been initialised already. - */ -static void prvCheckForValidListAndQueue( void ) PRIVILEGED_FUNCTION; - -/* - * The timer service task (daemon). Timer functionality is controlled by this - * task. Other tasks communicate with the timer service task using the - * xTimerQueue queue. - */ -static portTASK_FUNCTION_PROTO( prvTimerTask, pvParameters ) PRIVILEGED_FUNCTION; - -/* - * Called by the timer service task to interpret and process a command it - * received on the timer queue. - */ -static void prvProcessReceivedCommands( void ) PRIVILEGED_FUNCTION; - -/* - * Insert the timer into either xActiveTimerList1, or xActiveTimerList2, - * depending on if the expire time causes a timer counter overflow. - */ -static BaseType_t prvInsertTimerInActiveList( Timer_t * const pxTimer, const TickType_t xNextExpiryTime, const TickType_t xTimeNow, const TickType_t xCommandTime ) PRIVILEGED_FUNCTION; - -/* - * An active timer has reached its expire time. Reload the timer if it is an - * auto-reload timer, then call its callback. - */ -static void prvProcessExpiredTimer( const TickType_t xNextExpireTime, const TickType_t xTimeNow ) PRIVILEGED_FUNCTION; - -/* - * The tick count has overflowed. Switch the timer lists after ensuring the - * current timer list does not still reference some timers. - */ -static void prvSwitchTimerLists( void ) PRIVILEGED_FUNCTION; - -/* - * Obtain the current tick count, setting *pxTimerListsWereSwitched to pdTRUE - * if a tick count overflow occurred since prvSampleTimeNow() was last called. - */ -static TickType_t prvSampleTimeNow( BaseType_t * const pxTimerListsWereSwitched ) PRIVILEGED_FUNCTION; - -/* - * If the timer list contains any active timers then return the expire time of - * the timer that will expire first and set *pxListWasEmpty to false. If the - * timer list does not contain any timers then return 0 and set *pxListWasEmpty - * to pdTRUE. - */ -static TickType_t prvGetNextExpireTime( BaseType_t * const pxListWasEmpty ) PRIVILEGED_FUNCTION; - -/* - * If a timer has expired, process it. Otherwise, block the timer service task - * until either a timer does expire or a command is received. - */ -static void prvProcessTimerOrBlockTask( const TickType_t xNextExpireTime, BaseType_t xListWasEmpty ) PRIVILEGED_FUNCTION; - -/* - * Called after a Timer_t structure has been allocated either statically or - * dynamically to fill in the structure's members. - */ -static void prvInitialiseNewTimer( const char * const pcTimerName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ - const TickType_t xTimerPeriodInTicks, - const UBaseType_t uxAutoReload, - void * const pvTimerID, - TimerCallbackFunction_t pxCallbackFunction, - Timer_t *pxNewTimer ) PRIVILEGED_FUNCTION; -/*-----------------------------------------------------------*/ - -BaseType_t xTimerCreateTimerTask( void ) -{ -BaseType_t xReturn = pdFAIL; - - /* This function is called when the scheduler is started if - configUSE_TIMERS is set to 1. Check that the infrastructure used by the - timer service task has been created/initialised. If timers have already - been created then the initialisation will already have been performed. */ - prvCheckForValidListAndQueue(); - - if( xTimerQueue != NULL ) - { - #if( configSUPPORT_STATIC_ALLOCATION == 1 ) - { - StaticTask_t *pxTimerTaskTCBBuffer = NULL; - StackType_t *pxTimerTaskStackBuffer = NULL; - uint32_t ulTimerTaskStackSize; - - vApplicationGetTimerTaskMemory( &pxTimerTaskTCBBuffer, &pxTimerTaskStackBuffer, &ulTimerTaskStackSize ); - xTimerTaskHandle = xTaskCreateStatic( prvTimerTask, - configTIMER_SERVICE_TASK_NAME, - ulTimerTaskStackSize, - NULL, - ( ( UBaseType_t ) configTIMER_TASK_PRIORITY ) | portPRIVILEGE_BIT, - pxTimerTaskStackBuffer, - pxTimerTaskTCBBuffer ); - - if( xTimerTaskHandle != NULL ) - { - xReturn = pdPASS; - } - } - #else - { - xReturn = xTaskCreate( prvTimerTask, - configTIMER_SERVICE_TASK_NAME, - configTIMER_TASK_STACK_DEPTH, - NULL, - ( ( UBaseType_t ) configTIMER_TASK_PRIORITY ) | portPRIVILEGE_BIT, - &xTimerTaskHandle ); - } - #endif /* configSUPPORT_STATIC_ALLOCATION */ - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - configASSERT( xReturn ); - return xReturn; -} -/*-----------------------------------------------------------*/ - -#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) - - TimerHandle_t xTimerCreate( const char * const pcTimerName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ - const TickType_t xTimerPeriodInTicks, - const UBaseType_t uxAutoReload, - void * const pvTimerID, - TimerCallbackFunction_t pxCallbackFunction ) - { - Timer_t *pxNewTimer; - - pxNewTimer = ( Timer_t * ) pvPortMalloc( sizeof( Timer_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 Timer_t is always a pointer to the timer's mame. */ - - if( pxNewTimer != NULL ) - { - /* Status is thus far zero as the timer is not created statically - and has not been started. The auto-reload bit may get set in - prvInitialiseNewTimer. */ - pxNewTimer->ucStatus = 0x00; - prvInitialiseNewTimer( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxNewTimer ); - } - - return pxNewTimer; - } - -#endif /* configSUPPORT_DYNAMIC_ALLOCATION */ -/*-----------------------------------------------------------*/ - -#if( configSUPPORT_STATIC_ALLOCATION == 1 ) - - TimerHandle_t xTimerCreateStatic( const char * const pcTimerName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ - const TickType_t xTimerPeriodInTicks, - const UBaseType_t uxAutoReload, - void * const pvTimerID, - TimerCallbackFunction_t pxCallbackFunction, - StaticTimer_t *pxTimerBuffer ) - { - Timer_t *pxNewTimer; - - #if( configASSERT_DEFINED == 1 ) - { - /* Sanity check that the size of the structure used to declare a - variable of type StaticTimer_t equals the size of the real timer - structure. */ - volatile size_t xSize = sizeof( StaticTimer_t ); - configASSERT( xSize == sizeof( Timer_t ) ); - ( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */ - } - #endif /* configASSERT_DEFINED */ - - /* A pointer to a StaticTimer_t structure MUST be provided, use it. */ - configASSERT( pxTimerBuffer ); - pxNewTimer = ( Timer_t * ) pxTimerBuffer; /*lint !e740 !e9087 StaticTimer_t is a pointer to a Timer_t, so guaranteed to be aligned and sized correctly (checked by an assert()), so this is safe. */ - - if( pxNewTimer != NULL ) - { - /* Timers can be created statically or dynamically so note this - timer was created statically in case it is later deleted. The - auto-reload bit may get set in prvInitialiseNewTimer(). */ - pxNewTimer->ucStatus = tmrSTATUS_IS_STATICALLY_ALLOCATED; - - prvInitialiseNewTimer( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxNewTimer ); - } - - return pxNewTimer; - } - -#endif /* configSUPPORT_STATIC_ALLOCATION */ -/*-----------------------------------------------------------*/ - -static void prvInitialiseNewTimer( const char * const pcTimerName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ - const TickType_t xTimerPeriodInTicks, - const UBaseType_t uxAutoReload, - void * const pvTimerID, - TimerCallbackFunction_t pxCallbackFunction, - Timer_t *pxNewTimer ) -{ - /* 0 is not a valid value for xTimerPeriodInTicks. */ - configASSERT( ( xTimerPeriodInTicks > 0 ) ); - - if( pxNewTimer != NULL ) - { - /* Ensure the infrastructure used by the timer service task has been - created/initialised. */ - prvCheckForValidListAndQueue(); - - /* Initialise the timer structure members using the function - parameters. */ - pxNewTimer->pcTimerName = pcTimerName; - pxNewTimer->xTimerPeriodInTicks = xTimerPeriodInTicks; - pxNewTimer->pvTimerID = pvTimerID; - pxNewTimer->pxCallbackFunction = pxCallbackFunction; - vListInitialiseItem( &( pxNewTimer->xTimerListItem ) ); - if( uxAutoReload != pdFALSE ) - { - pxNewTimer->ucStatus |= tmrSTATUS_IS_AUTORELOAD; - } - traceTIMER_CREATE( pxNewTimer ); - } -} -/*-----------------------------------------------------------*/ - -BaseType_t xTimerGenericCommand( TimerHandle_t xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t * const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait ) -{ -BaseType_t xReturn = pdFAIL; -DaemonTaskMessage_t xMessage; - - configASSERT( xTimer ); - - /* Send a message to the timer service task to perform a particular action - on a particular timer definition. */ - if( xTimerQueue != NULL ) - { - /* Send a command to the timer service task to start the xTimer timer. */ - xMessage.xMessageID = xCommandID; - xMessage.u.xTimerParameters.xMessageValue = xOptionalValue; - xMessage.u.xTimerParameters.pxTimer = xTimer; - - if( xCommandID < tmrFIRST_FROM_ISR_COMMAND ) - { - if( xTaskGetSchedulerState() == taskSCHEDULER_RUNNING ) - { - xReturn = xQueueSendToBack( xTimerQueue, &xMessage, xTicksToWait ); - } - else - { - xReturn = xQueueSendToBack( xTimerQueue, &xMessage, tmrNO_DELAY ); - } - } - else - { - xReturn = xQueueSendToBackFromISR( xTimerQueue, &xMessage, pxHigherPriorityTaskWoken ); - } - - traceTIMER_COMMAND_SEND( xTimer, xCommandID, xOptionalValue, xReturn ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - return xReturn; -} -/*-----------------------------------------------------------*/ - -TaskHandle_t xTimerGetTimerDaemonTaskHandle( void ) -{ - /* If xTimerGetTimerDaemonTaskHandle() is called before the scheduler has been - started, then xTimerTaskHandle will be NULL. */ - configASSERT( ( xTimerTaskHandle != NULL ) ); - return xTimerTaskHandle; -} -/*-----------------------------------------------------------*/ - -TickType_t xTimerGetPeriod( TimerHandle_t xTimer ) -{ -Timer_t *pxTimer = xTimer; - - configASSERT( xTimer ); - return pxTimer->xTimerPeriodInTicks; -} -/*-----------------------------------------------------------*/ - -void vTimerSetReloadMode( TimerHandle_t xTimer, const UBaseType_t uxAutoReload ) -{ -Timer_t * pxTimer = xTimer; - - configASSERT( xTimer ); - taskENTER_CRITICAL(); - { - if( uxAutoReload != pdFALSE ) - { - pxTimer->ucStatus |= tmrSTATUS_IS_AUTORELOAD; - } - else - { - pxTimer->ucStatus &= ~tmrSTATUS_IS_AUTORELOAD; - } - } - taskEXIT_CRITICAL(); -} -/*-----------------------------------------------------------*/ - -UBaseType_t uxTimerGetReloadMode( TimerHandle_t xTimer ) -{ -Timer_t * pxTimer = xTimer; -UBaseType_t uxReturn; - - configASSERT( xTimer ); - taskENTER_CRITICAL(); - { - if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) == 0 ) - { - /* Not an auto-reload timer. */ - uxReturn = ( UBaseType_t ) pdFALSE; - } - else - { - /* Is an auto-reload timer. */ - uxReturn = ( UBaseType_t ) pdTRUE; - } - } - taskEXIT_CRITICAL(); - - return uxReturn; -} -/*-----------------------------------------------------------*/ - -TickType_t xTimerGetExpiryTime( TimerHandle_t xTimer ) -{ -Timer_t * pxTimer = xTimer; -TickType_t xReturn; - - configASSERT( xTimer ); - xReturn = listGET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ) ); - return xReturn; -} -/*-----------------------------------------------------------*/ - -const char * pcTimerGetName( TimerHandle_t xTimer ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ -{ -Timer_t *pxTimer = xTimer; - - configASSERT( xTimer ); - return pxTimer->pcTimerName; -} -/*-----------------------------------------------------------*/ - -static void prvProcessExpiredTimer( const TickType_t xNextExpireTime, const TickType_t xTimeNow ) -{ -BaseType_t xResult; -Timer_t * const pxTimer = ( Timer_t * ) listGET_OWNER_OF_HEAD_ENTRY( pxCurrentTimerList ); /*lint !e9087 !e9079 void * is used as this macro is used with tasks and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */ - - /* Remove the timer from the list of active timers. A check has already - been performed to ensure the list is not empty. */ - ( void ) uxListRemove( &( pxTimer->xTimerListItem ) ); - traceTIMER_EXPIRED( pxTimer ); - - /* If the timer is an auto-reload timer then calculate the next - expiry time and re-insert the timer in the list of active timers. */ - if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 ) - { - /* The timer is inserted into a list using a time relative to anything - other than the current time. It will therefore be inserted into the - correct list relative to the time this task thinks it is now. */ - if( prvInsertTimerInActiveList( pxTimer, ( xNextExpireTime + pxTimer->xTimerPeriodInTicks ), xTimeNow, xNextExpireTime ) != pdFALSE ) - { - /* The timer expired before it was added to the active timer - list. Reload it now. */ - xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY ); - configASSERT( xResult ); - ( void ) xResult; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE; - mtCOVERAGE_TEST_MARKER(); - } - - /* Call the timer callback. */ - pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer ); -} -/*-----------------------------------------------------------*/ - -static portTASK_FUNCTION( prvTimerTask, pvParameters ) -{ -TickType_t xNextExpireTime; -BaseType_t xListWasEmpty; - - /* Just to avoid compiler warnings. */ - ( void ) pvParameters; - - #if( configUSE_DAEMON_TASK_STARTUP_HOOK == 1 ) - { - extern void vApplicationDaemonTaskStartupHook( void ); - - /* Allow the application writer to execute some code in the context of - this task at the point the task starts executing. This is useful if the - application includes initialisation code that would benefit from - executing after the scheduler has been started. */ - vApplicationDaemonTaskStartupHook(); - } - #endif /* configUSE_DAEMON_TASK_STARTUP_HOOK */ - - for( ;; ) - { - /* Query the timers list to see if it contains any timers, and if so, - obtain the time at which the next timer will expire. */ - xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty ); - - /* If a timer has expired, process it. Otherwise, block this task - until either a timer does expire, or a command is received. */ - prvProcessTimerOrBlockTask( xNextExpireTime, xListWasEmpty ); - - /* Empty the command queue. */ - prvProcessReceivedCommands(); - } -} -/*-----------------------------------------------------------*/ - -static void prvProcessTimerOrBlockTask( const TickType_t xNextExpireTime, BaseType_t xListWasEmpty ) -{ -TickType_t xTimeNow; -BaseType_t xTimerListsWereSwitched; - - vTaskSuspendAll(); - { - /* Obtain the time now to make an assessment as to whether the timer - has expired or not. If obtaining the time causes the lists to switch - then don't process this timer as any timers that remained in the list - when the lists were switched will have been processed within the - prvSampleTimeNow() function. */ - xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched ); - if( xTimerListsWereSwitched == pdFALSE ) - { - /* The tick count has not overflowed, has the timer expired? */ - if( ( xListWasEmpty == pdFALSE ) && ( xNextExpireTime <= xTimeNow ) ) - { - ( void ) xTaskResumeAll(); - prvProcessExpiredTimer( xNextExpireTime, xTimeNow ); - } - else - { - /* The tick count has not overflowed, and the next expire - time has not been reached yet. This task should therefore - block to wait for the next expire time or a command to be - received - whichever comes first. The following line cannot - be reached unless xNextExpireTime > xTimeNow, except in the - case when the current timer list is empty. */ - if( xListWasEmpty != pdFALSE ) - { - /* The current timer list is empty - is the overflow list - also empty? */ - xListWasEmpty = listLIST_IS_EMPTY( pxOverflowTimerList ); - } - - vQueueWaitForMessageRestricted( xTimerQueue, ( xNextExpireTime - xTimeNow ), xListWasEmpty ); - - if( xTaskResumeAll() == pdFALSE ) - { - /* Yield to wait for either a command to arrive, or the - block time to expire. If a command arrived between the - critical section being exited and this yield then the yield - will not cause the task to block. */ - portYIELD_WITHIN_API(); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - } - else - { - ( void ) xTaskResumeAll(); - } - } -} -/*-----------------------------------------------------------*/ - -static TickType_t prvGetNextExpireTime( BaseType_t * const pxListWasEmpty ) -{ -TickType_t xNextExpireTime; - - /* Timers are listed in expiry time order, with the head of the list - referencing the task that will expire first. Obtain the time at which - the timer with the nearest expiry time will expire. If there are no - active timers then just set the next expire time to 0. That will cause - this task to unblock when the tick count overflows, at which point the - timer lists will be switched and the next expiry time can be - re-assessed. */ - *pxListWasEmpty = listLIST_IS_EMPTY( pxCurrentTimerList ); - if( *pxListWasEmpty == pdFALSE ) - { - xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList ); - } - else - { - /* Ensure the task unblocks when the tick count rolls over. */ - xNextExpireTime = ( TickType_t ) 0U; - } - - return xNextExpireTime; -} -/*-----------------------------------------------------------*/ - -static TickType_t prvSampleTimeNow( BaseType_t * const pxTimerListsWereSwitched ) -{ -TickType_t xTimeNow; -PRIVILEGED_DATA static TickType_t xLastTime = ( TickType_t ) 0U; /*lint !e956 Variable is only accessible to one task. */ - - xTimeNow = xTaskGetTickCount(); - - if( xTimeNow < xLastTime ) - { - prvSwitchTimerLists(); - *pxTimerListsWereSwitched = pdTRUE; - } - else - { - *pxTimerListsWereSwitched = pdFALSE; - } - - xLastTime = xTimeNow; - - return xTimeNow; -} -/*-----------------------------------------------------------*/ - -static BaseType_t prvInsertTimerInActiveList( Timer_t * const pxTimer, const TickType_t xNextExpiryTime, const TickType_t xTimeNow, const TickType_t xCommandTime ) -{ -BaseType_t xProcessTimerNow = pdFALSE; - - listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xNextExpiryTime ); - listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer ); - - if( xNextExpiryTime <= xTimeNow ) - { - /* Has the expiry time elapsed between the command to start/reset a - timer was issued, and the time the command was processed? */ - if( ( ( TickType_t ) ( xTimeNow - xCommandTime ) ) >= pxTimer->xTimerPeriodInTicks ) /*lint !e961 MISRA exception as the casts are only redundant for some ports. */ - { - /* The time between a command being issued and the command being - processed actually exceeds the timers period. */ - xProcessTimerNow = pdTRUE; - } - else - { - vListInsert( pxOverflowTimerList, &( pxTimer->xTimerListItem ) ); - } - } - else - { - if( ( xTimeNow < xCommandTime ) && ( xNextExpiryTime >= xCommandTime ) ) - { - /* If, since the command was issued, the tick count has overflowed - but the expiry time has not, then the timer must have already passed - its expiry time and should be processed immediately. */ - xProcessTimerNow = pdTRUE; - } - else - { - vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) ); - } - } - - return xProcessTimerNow; -} -/*-----------------------------------------------------------*/ - -static void prvProcessReceivedCommands( void ) -{ -DaemonTaskMessage_t xMessage; -Timer_t *pxTimer; -BaseType_t xTimerListsWereSwitched, xResult; -TickType_t xTimeNow; - - while( xQueueReceive( xTimerQueue, &xMessage, tmrNO_DELAY ) != pdFAIL ) /*lint !e603 xMessage does not have to be initialised as it is passed out, not in, and it is not used unless xQueueReceive() returns pdTRUE. */ - { - #if ( INCLUDE_xTimerPendFunctionCall == 1 ) - { - /* Negative commands are pended function calls rather than timer - commands. */ - if( xMessage.xMessageID < ( BaseType_t ) 0 ) - { - const CallbackParameters_t * const pxCallback = &( xMessage.u.xCallbackParameters ); - - /* The timer uses the xCallbackParameters member to request a - callback be executed. Check the callback is not NULL. */ - configASSERT( pxCallback ); - - /* Call the function. */ - pxCallback->pxCallbackFunction( pxCallback->pvParameter1, pxCallback->ulParameter2 ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - #endif /* INCLUDE_xTimerPendFunctionCall */ - - /* Commands that are positive are timer commands rather than pended - function calls. */ - if( xMessage.xMessageID >= ( BaseType_t ) 0 ) - { - /* The messages uses the xTimerParameters member to work on a - software timer. */ - pxTimer = xMessage.u.xTimerParameters.pxTimer; - - if( listIS_CONTAINED_WITHIN( NULL, &( pxTimer->xTimerListItem ) ) == pdFALSE ) /*lint !e961. The cast is only redundant when NULL is passed into the macro. */ - { - /* The timer is in a list, remove it. */ - ( void ) uxListRemove( &( pxTimer->xTimerListItem ) ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - - traceTIMER_COMMAND_RECEIVED( pxTimer, xMessage.xMessageID, xMessage.u.xTimerParameters.xMessageValue ); - - /* In this case the xTimerListsWereSwitched parameter is not used, but - it must be present in the function call. prvSampleTimeNow() must be - called after the message is received from xTimerQueue so there is no - possibility of a higher priority task adding a message to the message - queue with a time that is ahead of the timer daemon task (because it - pre-empted the timer daemon task after the xTimeNow value was set). */ - xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched ); - - switch( xMessage.xMessageID ) - { - case tmrCOMMAND_START : - case tmrCOMMAND_START_FROM_ISR : - case tmrCOMMAND_RESET : - case tmrCOMMAND_RESET_FROM_ISR : - case tmrCOMMAND_START_DONT_TRACE : - /* Start or restart a timer. */ - pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE; - if( prvInsertTimerInActiveList( pxTimer, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, xTimeNow, xMessage.u.xTimerParameters.xMessageValue ) != pdFALSE ) - { - /* The timer expired before it was added to the active - timer list. Process it now. */ - pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer ); - traceTIMER_EXPIRED( pxTimer ); - - if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 ) - { - xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, NULL, tmrNO_DELAY ); - configASSERT( xResult ); - ( void ) xResult; - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - break; - - case tmrCOMMAND_STOP : - case tmrCOMMAND_STOP_FROM_ISR : - /* The timer has already been removed from the active list. */ - pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE; - break; - - case tmrCOMMAND_CHANGE_PERIOD : - case tmrCOMMAND_CHANGE_PERIOD_FROM_ISR : - pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE; - pxTimer->xTimerPeriodInTicks = xMessage.u.xTimerParameters.xMessageValue; - configASSERT( ( pxTimer->xTimerPeriodInTicks > 0 ) ); - - /* The new period does not really have a reference, and can - be longer or shorter than the old one. The command time is - therefore set to the current time, and as the period cannot - be zero the next expiry time can only be in the future, - meaning (unlike for the xTimerStart() case above) there is - no fail case that needs to be handled here. */ - ( void ) prvInsertTimerInActiveList( pxTimer, ( xTimeNow + pxTimer->xTimerPeriodInTicks ), xTimeNow, xTimeNow ); - break; - - case tmrCOMMAND_DELETE : - #if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) - { - /* The timer has already been removed from the active list, - just free up the memory if the memory was dynamically - allocated. */ - if( ( pxTimer->ucStatus & tmrSTATUS_IS_STATICALLY_ALLOCATED ) == ( uint8_t ) 0 ) - { - vPortFree( pxTimer ); - } - else - { - pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE; - } - } - #else - { - /* If dynamic allocation is not enabled, the memory - could not have been dynamically allocated. So there is - no need to free the memory - just mark the timer as - "not active". */ - pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE; - } - #endif /* configSUPPORT_DYNAMIC_ALLOCATION */ - break; - - default : - /* Don't expect to get here. */ - break; - } - } - } -} -/*-----------------------------------------------------------*/ - -static void prvSwitchTimerLists( void ) -{ -TickType_t xNextExpireTime, xReloadTime; -List_t *pxTemp; -Timer_t *pxTimer; -BaseType_t xResult; - - /* The tick count has overflowed. The timer lists must be switched. - If there are any timers still referenced from the current timer list - then they must have expired and should be processed before the lists - are switched. */ - while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE ) - { - xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList ); - - /* Remove the timer from the list. */ - pxTimer = ( Timer_t * ) listGET_OWNER_OF_HEAD_ENTRY( pxCurrentTimerList ); /*lint !e9087 !e9079 void * is used as this macro is used with tasks and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */ - ( void ) uxListRemove( &( pxTimer->xTimerListItem ) ); - traceTIMER_EXPIRED( pxTimer ); - - /* Execute its callback, then send a command to restart the timer if - it is an auto-reload timer. It cannot be restarted here as the lists - have not yet been switched. */ - pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer ); - - if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 ) - { - /* Calculate the reload value, and if the reload value results in - the timer going into the same timer list then it has already expired - and the timer should be re-inserted into the current list so it is - processed again within this loop. Otherwise a command should be sent - to restart the timer to ensure it is only inserted into a list after - the lists have been swapped. */ - xReloadTime = ( xNextExpireTime + pxTimer->xTimerPeriodInTicks ); - if( xReloadTime > xNextExpireTime ) - { - listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xReloadTime ); - listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer ); - vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) ); - } - else - { - xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY ); - configASSERT( xResult ); - ( void ) xResult; - } - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - - pxTemp = pxCurrentTimerList; - pxCurrentTimerList = pxOverflowTimerList; - pxOverflowTimerList = pxTemp; -} -/*-----------------------------------------------------------*/ - -static void prvCheckForValidListAndQueue( void ) -{ - /* Check that the list from which active timers are referenced, and the - queue used to communicate with the timer service, have been - initialised. */ - taskENTER_CRITICAL(); - { - if( xTimerQueue == NULL ) - { - vListInitialise( &xActiveTimerList1 ); - vListInitialise( &xActiveTimerList2 ); - pxCurrentTimerList = &xActiveTimerList1; - pxOverflowTimerList = &xActiveTimerList2; - - #if( configSUPPORT_STATIC_ALLOCATION == 1 ) - { - /* The timer queue is allocated statically in case - configSUPPORT_DYNAMIC_ALLOCATION is 0. */ - static StaticQueue_t xStaticTimerQueue; /*lint !e956 Ok to declare in this manner to prevent additional conditional compilation guards in other locations. */ - static uint8_t ucStaticTimerQueueStorage[ ( size_t ) configTIMER_QUEUE_LENGTH * sizeof( DaemonTaskMessage_t ) ]; /*lint !e956 Ok to declare in this manner to prevent additional conditional compilation guards in other locations. */ - - xTimerQueue = xQueueCreateStatic( ( UBaseType_t ) configTIMER_QUEUE_LENGTH, ( UBaseType_t ) sizeof( DaemonTaskMessage_t ), &( ucStaticTimerQueueStorage[ 0 ] ), &xStaticTimerQueue ); - } - #else - { - xTimerQueue = xQueueCreate( ( UBaseType_t ) configTIMER_QUEUE_LENGTH, sizeof( DaemonTaskMessage_t ) ); - } - #endif - - #if ( configQUEUE_REGISTRY_SIZE > 0 ) - { - if( xTimerQueue != NULL ) - { - vQueueAddToRegistry( xTimerQueue, "TmrQ" ); - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - #endif /* configQUEUE_REGISTRY_SIZE */ - } - else - { - mtCOVERAGE_TEST_MARKER(); - } - } - taskEXIT_CRITICAL(); -} -/*-----------------------------------------------------------*/ - -BaseType_t xTimerIsTimerActive( TimerHandle_t xTimer ) -{ -BaseType_t xReturn; -Timer_t *pxTimer = xTimer; - - configASSERT( xTimer ); - - /* Is the timer in the list of active timers? */ - taskENTER_CRITICAL(); - { - if( ( pxTimer->ucStatus & tmrSTATUS_IS_ACTIVE ) == 0 ) - { - xReturn = pdFALSE; - } - else - { - xReturn = pdTRUE; - } - } - taskEXIT_CRITICAL(); - - return xReturn; -} /*lint !e818 Can't be pointer to const due to the typedef. */ -/*-----------------------------------------------------------*/ - -void *pvTimerGetTimerID( const TimerHandle_t xTimer ) -{ -Timer_t * const pxTimer = xTimer; -void *pvReturn; - - configASSERT( xTimer ); - - taskENTER_CRITICAL(); - { - pvReturn = pxTimer->pvTimerID; - } - taskEXIT_CRITICAL(); - - return pvReturn; -} -/*-----------------------------------------------------------*/ - -void vTimerSetTimerID( TimerHandle_t xTimer, void *pvNewID ) -{ -Timer_t * const pxTimer = xTimer; - - configASSERT( xTimer ); - - taskENTER_CRITICAL(); - { - pxTimer->pvTimerID = pvNewID; - } - taskEXIT_CRITICAL(); -} -/*-----------------------------------------------------------*/ - -#if( INCLUDE_xTimerPendFunctionCall == 1 ) - - BaseType_t xTimerPendFunctionCallFromISR( PendedFunction_t xFunctionToPend, void *pvParameter1, uint32_t ulParameter2, BaseType_t *pxHigherPriorityTaskWoken ) - { - DaemonTaskMessage_t xMessage; - BaseType_t xReturn; - - /* Complete the message with the function parameters and post it to the - daemon task. */ - xMessage.xMessageID = tmrCOMMAND_EXECUTE_CALLBACK_FROM_ISR; - xMessage.u.xCallbackParameters.pxCallbackFunction = xFunctionToPend; - xMessage.u.xCallbackParameters.pvParameter1 = pvParameter1; - xMessage.u.xCallbackParameters.ulParameter2 = ulParameter2; - - xReturn = xQueueSendFromISR( xTimerQueue, &xMessage, pxHigherPriorityTaskWoken ); - - tracePEND_FUNC_CALL_FROM_ISR( xFunctionToPend, pvParameter1, ulParameter2, xReturn ); - - return xReturn; - } - -#endif /* INCLUDE_xTimerPendFunctionCall */ -/*-----------------------------------------------------------*/ - -#if( INCLUDE_xTimerPendFunctionCall == 1 ) - - BaseType_t xTimerPendFunctionCall( PendedFunction_t xFunctionToPend, void *pvParameter1, uint32_t ulParameter2, TickType_t xTicksToWait ) - { - DaemonTaskMessage_t xMessage; - BaseType_t xReturn; - - /* This function can only be called after a timer has been created or - after the scheduler has been started because, until then, the timer - queue does not exist. */ - configASSERT( xTimerQueue ); - - /* Complete the message with the function parameters and post it to the - daemon task. */ - xMessage.xMessageID = tmrCOMMAND_EXECUTE_CALLBACK; - xMessage.u.xCallbackParameters.pxCallbackFunction = xFunctionToPend; - xMessage.u.xCallbackParameters.pvParameter1 = pvParameter1; - xMessage.u.xCallbackParameters.ulParameter2 = ulParameter2; - - xReturn = xQueueSendToBack( xTimerQueue, &xMessage, xTicksToWait ); - - tracePEND_FUNC_CALL( xFunctionToPend, pvParameter1, ulParameter2, xReturn ); - - return xReturn; - } - -#endif /* INCLUDE_xTimerPendFunctionCall */ -/*-----------------------------------------------------------*/ - -#if ( configUSE_TRACE_FACILITY == 1 ) - - UBaseType_t uxTimerGetTimerNumber( TimerHandle_t xTimer ) - { - return ( ( Timer_t * ) xTimer )->uxTimerNumber; - } - -#endif /* configUSE_TRACE_FACILITY */ -/*-----------------------------------------------------------*/ - -#if ( configUSE_TRACE_FACILITY == 1 ) - - void vTimerSetTimerNumber( TimerHandle_t xTimer, UBaseType_t uxTimerNumber ) - { - ( ( Timer_t * ) xTimer )->uxTimerNumber = uxTimerNumber; - } - -#endif /* configUSE_TRACE_FACILITY */ -/*-----------------------------------------------------------*/ - -/* This entire source file will be skipped if the application is not configured -to include software timer functionality. If you want to include software timer -functionality then ensure configUSE_TIMERS is set to 1 in FreeRTOSConfig.h. */ -#endif /* configUSE_TIMERS == 1 */ - - - diff --git a/Middlewares/Third_Party/LwIP/src/api/api_lib.c b/Middlewares/Third_Party/LwIP/src/api/api_lib.c deleted file mode 100644 index e03b8b7..0000000 --- a/Middlewares/Third_Party/LwIP/src/api/api_lib.c +++ /dev/null @@ -1,1367 +0,0 @@ -/** - * @file - * Sequential API External module - * - * @defgroup netconn Netconn API - * @ingroup sequential_api - * Thread-safe, to be called from non-TCPIP threads only. - * TX/RX handling based on @ref netbuf (containing @ref pbuf) - * to avoid copying data around. - * - * @defgroup netconn_common Common functions - * @ingroup netconn - * For use with TCP and UDP - * - * @defgroup netconn_tcp TCP only - * @ingroup netconn - * TCP only functions - * - * @defgroup netconn_udp UDP only - * @ingroup netconn - * UDP only functions - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - */ - -/* This is the part of the API that is linked with - the application */ - -#include "lwip/opt.h" - -#if LWIP_NETCONN /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/api.h" -#include "lwip/memp.h" - -#include "lwip/ip.h" -#include "lwip/raw.h" -#include "lwip/udp.h" -#include "lwip/priv/api_msg.h" -#include "lwip/priv/tcp_priv.h" -#include "lwip/priv/tcpip_priv.h" - -#ifdef LWIP_HOOK_FILENAME -#include LWIP_HOOK_FILENAME -#endif - -#include - -#define API_MSG_VAR_REF(name) API_VAR_REF(name) -#define API_MSG_VAR_DECLARE(name) API_VAR_DECLARE(struct api_msg, name) -#define API_MSG_VAR_ALLOC(name) API_VAR_ALLOC(struct api_msg, MEMP_API_MSG, name, ERR_MEM) -#define API_MSG_VAR_ALLOC_RETURN_NULL(name) API_VAR_ALLOC(struct api_msg, MEMP_API_MSG, name, NULL) -#define API_MSG_VAR_FREE(name) API_VAR_FREE(MEMP_API_MSG, name) - -#if TCP_LISTEN_BACKLOG -/* need to allocate API message for accept so empty message pool does not result in event loss - * see bug #47512: MPU_COMPATIBLE may fail on empty pool */ -#define API_MSG_VAR_ALLOC_ACCEPT(msg) API_MSG_VAR_ALLOC(msg) -#define API_MSG_VAR_FREE_ACCEPT(msg) API_MSG_VAR_FREE(msg) -#else /* TCP_LISTEN_BACKLOG */ -#define API_MSG_VAR_ALLOC_ACCEPT(msg) -#define API_MSG_VAR_FREE_ACCEPT(msg) -#endif /* TCP_LISTEN_BACKLOG */ - -#if LWIP_NETCONN_FULLDUPLEX -#define NETCONN_RECVMBOX_WAITABLE(conn) (sys_mbox_valid(&(conn)->recvmbox) && (((conn)->flags & NETCONN_FLAG_MBOXINVALID) == 0)) -#define NETCONN_ACCEPTMBOX_WAITABLE(conn) (sys_mbox_valid(&(conn)->acceptmbox) && (((conn)->flags & (NETCONN_FLAG_MBOXCLOSED|NETCONN_FLAG_MBOXINVALID)) == 0)) -#define NETCONN_MBOX_WAITING_INC(conn) SYS_ARCH_INC(conn->mbox_threads_waiting, 1) -#define NETCONN_MBOX_WAITING_DEC(conn) SYS_ARCH_DEC(conn->mbox_threads_waiting, 1) -#else /* LWIP_NETCONN_FULLDUPLEX */ -#define NETCONN_RECVMBOX_WAITABLE(conn) sys_mbox_valid(&(conn)->recvmbox) -#define NETCONN_ACCEPTMBOX_WAITABLE(conn) (sys_mbox_valid(&(conn)->acceptmbox) && (((conn)->flags & NETCONN_FLAG_MBOXCLOSED) == 0)) -#define NETCONN_MBOX_WAITING_INC(conn) -#define NETCONN_MBOX_WAITING_DEC(conn) -#endif /* LWIP_NETCONN_FULLDUPLEX */ - -static err_t netconn_close_shutdown(struct netconn *conn, u8_t how); - -/** - * Call the lower part of a netconn_* function - * This function is then running in the thread context - * of tcpip_thread and has exclusive access to lwIP core code. - * - * @param fn function to call - * @param apimsg a struct containing the function to call and its parameters - * @return ERR_OK if the function was called, another err_t if not - */ -static err_t -netconn_apimsg(tcpip_callback_fn fn, struct api_msg *apimsg) -{ - err_t err; - -#ifdef LWIP_DEBUG - /* catch functions that don't set err */ - apimsg->err = ERR_VAL; -#endif /* LWIP_DEBUG */ - -#if LWIP_NETCONN_SEM_PER_THREAD - apimsg->op_completed_sem = LWIP_NETCONN_THREAD_SEM_GET(); -#endif /* LWIP_NETCONN_SEM_PER_THREAD */ - - err = tcpip_send_msg_wait_sem(fn, apimsg, LWIP_API_MSG_SEM(apimsg)); - if (err == ERR_OK) { - return apimsg->err; - } - return err; -} - -/** - * Create a new netconn (of a specific type) that has a callback function. - * The corresponding pcb is also created. - * - * @param t the type of 'connection' to create (@see enum netconn_type) - * @param proto the IP protocol for RAW IP pcbs - * @param callback a function to call on status changes (RX available, TX'ed) - * @return a newly allocated struct netconn or - * NULL on memory error - */ -struct netconn * -netconn_new_with_proto_and_callback(enum netconn_type t, u8_t proto, netconn_callback callback) -{ - struct netconn *conn; - API_MSG_VAR_DECLARE(msg); - API_MSG_VAR_ALLOC_RETURN_NULL(msg); - - conn = netconn_alloc(t, callback); - if (conn != NULL) { - err_t err; - - API_MSG_VAR_REF(msg).msg.n.proto = proto; - API_MSG_VAR_REF(msg).conn = conn; - err = netconn_apimsg(lwip_netconn_do_newconn, &API_MSG_VAR_REF(msg)); - if (err != ERR_OK) { - LWIP_ASSERT("freeing conn without freeing pcb", conn->pcb.tcp == NULL); - LWIP_ASSERT("conn has no recvmbox", sys_mbox_valid(&conn->recvmbox)); -#if LWIP_TCP - LWIP_ASSERT("conn->acceptmbox shouldn't exist", !sys_mbox_valid(&conn->acceptmbox)); -#endif /* LWIP_TCP */ -#if !LWIP_NETCONN_SEM_PER_THREAD - LWIP_ASSERT("conn has no op_completed", sys_sem_valid(&conn->op_completed)); - sys_sem_free(&conn->op_completed); -#endif /* !LWIP_NETCONN_SEM_PER_THREAD */ - sys_mbox_free(&conn->recvmbox); - memp_free(MEMP_NETCONN, conn); - API_MSG_VAR_FREE(msg); - return NULL; - } - } - API_MSG_VAR_FREE(msg); - return conn; -} - -/** - * @ingroup netconn_common - * Close a netconn 'connection' and free all its resources but not the netconn itself. - * UDP and RAW connection are completely closed, TCP pcbs might still be in a waitstate - * after this returns. - * - * @param conn the netconn to delete - * @return ERR_OK if the connection was deleted - */ -err_t -netconn_prepare_delete(struct netconn *conn) -{ - err_t err; - API_MSG_VAR_DECLARE(msg); - - /* No ASSERT here because possible to get a (conn == NULL) if we got an accept error */ - if (conn == NULL) { - return ERR_OK; - } - - API_MSG_VAR_ALLOC(msg); - API_MSG_VAR_REF(msg).conn = conn; -#if LWIP_SO_SNDTIMEO || LWIP_SO_LINGER - /* get the time we started, which is later compared to - sys_now() + conn->send_timeout */ - API_MSG_VAR_REF(msg).msg.sd.time_started = sys_now(); -#else /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */ -#if LWIP_TCP - API_MSG_VAR_REF(msg).msg.sd.polls_left = - ((LWIP_TCP_CLOSE_TIMEOUT_MS_DEFAULT + TCP_SLOW_INTERVAL - 1) / TCP_SLOW_INTERVAL) + 1; -#endif /* LWIP_TCP */ -#endif /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */ - err = netconn_apimsg(lwip_netconn_do_delconn, &API_MSG_VAR_REF(msg)); - API_MSG_VAR_FREE(msg); - - if (err != ERR_OK) { - return err; - } - return ERR_OK; -} - -/** - * @ingroup netconn_common - * Close a netconn 'connection' and free its resources. - * UDP and RAW connection are completely closed, TCP pcbs might still be in a waitstate - * after this returns. - * - * @param conn the netconn to delete - * @return ERR_OK if the connection was deleted - */ -err_t -netconn_delete(struct netconn *conn) -{ - err_t err; - - /* No ASSERT here because possible to get a (conn == NULL) if we got an accept error */ - if (conn == NULL) { - return ERR_OK; - } - -#if LWIP_NETCONN_FULLDUPLEX - if (conn->flags & NETCONN_FLAG_MBOXINVALID) { - /* Already called netconn_prepare_delete() before */ - err = ERR_OK; - } else -#endif /* LWIP_NETCONN_FULLDUPLEX */ - { - err = netconn_prepare_delete(conn); - } - if (err == ERR_OK) { - netconn_free(conn); - } - return err; -} - -/** - * Get the local or remote IP address and port of a netconn. - * For RAW netconns, this returns the protocol instead of a port! - * - * @param conn the netconn to query - * @param addr a pointer to which to save the IP address - * @param port a pointer to which to save the port (or protocol for RAW) - * @param local 1 to get the local IP address, 0 to get the remote one - * @return ERR_CONN for invalid connections - * ERR_OK if the information was retrieved - */ -err_t -netconn_getaddr(struct netconn *conn, ip_addr_t *addr, u16_t *port, u8_t local) -{ - API_MSG_VAR_DECLARE(msg); - err_t err; - - LWIP_ERROR("netconn_getaddr: invalid conn", (conn != NULL), return ERR_ARG;); - LWIP_ERROR("netconn_getaddr: invalid addr", (addr != NULL), return ERR_ARG;); - LWIP_ERROR("netconn_getaddr: invalid port", (port != NULL), return ERR_ARG;); - - API_MSG_VAR_ALLOC(msg); - API_MSG_VAR_REF(msg).conn = conn; - API_MSG_VAR_REF(msg).msg.ad.local = local; -#if LWIP_MPU_COMPATIBLE - err = netconn_apimsg(lwip_netconn_do_getaddr, &API_MSG_VAR_REF(msg)); - *addr = msg->msg.ad.ipaddr; - *port = msg->msg.ad.port; -#else /* LWIP_MPU_COMPATIBLE */ - msg.msg.ad.ipaddr = addr; - msg.msg.ad.port = port; - err = netconn_apimsg(lwip_netconn_do_getaddr, &msg); -#endif /* LWIP_MPU_COMPATIBLE */ - API_MSG_VAR_FREE(msg); - - return err; -} - -/** - * @ingroup netconn_common - * Bind a netconn to a specific local IP address and port. - * Binding one netconn twice might not always be checked correctly! - * - * @param conn the netconn to bind - * @param addr the local IP address to bind the netconn to - * (use IP4_ADDR_ANY/IP6_ADDR_ANY to bind to all addresses) - * @param port the local port to bind the netconn to (not used for RAW) - * @return ERR_OK if bound, any other err_t on failure - */ -err_t -netconn_bind(struct netconn *conn, const ip_addr_t *addr, u16_t port) -{ - API_MSG_VAR_DECLARE(msg); - err_t err; - - LWIP_ERROR("netconn_bind: invalid conn", (conn != NULL), return ERR_ARG;); - -#if LWIP_IPV4 - /* Don't propagate NULL pointer (IP_ADDR_ANY alias) to subsequent functions */ - if (addr == NULL) { - addr = IP4_ADDR_ANY; - } -#endif /* LWIP_IPV4 */ - -#if LWIP_IPV4 && LWIP_IPV6 - /* "Socket API like" dual-stack support: If IP to bind to is IP6_ADDR_ANY, - * and NETCONN_FLAG_IPV6_V6ONLY is 0, use IP_ANY_TYPE to bind - */ - if ((netconn_get_ipv6only(conn) == 0) && - ip_addr_cmp(addr, IP6_ADDR_ANY)) { - addr = IP_ANY_TYPE; - } -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - - API_MSG_VAR_ALLOC(msg); - API_MSG_VAR_REF(msg).conn = conn; - API_MSG_VAR_REF(msg).msg.bc.ipaddr = API_MSG_VAR_REF(addr); - API_MSG_VAR_REF(msg).msg.bc.port = port; - err = netconn_apimsg(lwip_netconn_do_bind, &API_MSG_VAR_REF(msg)); - API_MSG_VAR_FREE(msg); - - return err; -} - -/** - * @ingroup netconn_common - * Bind a netconn to a specific interface and port. - * Binding one netconn twice might not always be checked correctly! - * - * @param conn the netconn to bind - * @param if_idx the local interface index to bind the netconn to - * @return ERR_OK if bound, any other err_t on failure - */ -err_t -netconn_bind_if(struct netconn *conn, u8_t if_idx) -{ - API_MSG_VAR_DECLARE(msg); - err_t err; - - LWIP_ERROR("netconn_bind_if: invalid conn", (conn != NULL), return ERR_ARG;); - - API_MSG_VAR_ALLOC(msg); - API_MSG_VAR_REF(msg).conn = conn; - API_MSG_VAR_REF(msg).msg.bc.if_idx = if_idx; - err = netconn_apimsg(lwip_netconn_do_bind_if, &API_MSG_VAR_REF(msg)); - API_MSG_VAR_FREE(msg); - - return err; -} - -/** - * @ingroup netconn_common - * Connect a netconn to a specific remote IP address and port. - * - * @param conn the netconn to connect - * @param addr the remote IP address to connect to - * @param port the remote port to connect to (no used for RAW) - * @return ERR_OK if connected, return value of tcp_/udp_/raw_connect otherwise - */ -err_t -netconn_connect(struct netconn *conn, const ip_addr_t *addr, u16_t port) -{ - API_MSG_VAR_DECLARE(msg); - err_t err; - - LWIP_ERROR("netconn_connect: invalid conn", (conn != NULL), return ERR_ARG;); - -#if LWIP_IPV4 - /* Don't propagate NULL pointer (IP_ADDR_ANY alias) to subsequent functions */ - if (addr == NULL) { - addr = IP4_ADDR_ANY; - } -#endif /* LWIP_IPV4 */ - - API_MSG_VAR_ALLOC(msg); - API_MSG_VAR_REF(msg).conn = conn; - API_MSG_VAR_REF(msg).msg.bc.ipaddr = API_MSG_VAR_REF(addr); - API_MSG_VAR_REF(msg).msg.bc.port = port; - err = netconn_apimsg(lwip_netconn_do_connect, &API_MSG_VAR_REF(msg)); - API_MSG_VAR_FREE(msg); - - return err; -} - -/** - * @ingroup netconn_udp - * Disconnect a netconn from its current peer (only valid for UDP netconns). - * - * @param conn the netconn to disconnect - * @return See @ref err_t - */ -err_t -netconn_disconnect(struct netconn *conn) -{ - API_MSG_VAR_DECLARE(msg); - err_t err; - - LWIP_ERROR("netconn_disconnect: invalid conn", (conn != NULL), return ERR_ARG;); - - API_MSG_VAR_ALLOC(msg); - API_MSG_VAR_REF(msg).conn = conn; - err = netconn_apimsg(lwip_netconn_do_disconnect, &API_MSG_VAR_REF(msg)); - API_MSG_VAR_FREE(msg); - - return err; -} - -/** - * @ingroup netconn_tcp - * Set a TCP netconn into listen mode - * - * @param conn the tcp netconn to set to listen mode - * @param backlog the listen backlog, only used if TCP_LISTEN_BACKLOG==1 - * @return ERR_OK if the netconn was set to listen (UDP and RAW netconns - * don't return any error (yet?)) - */ -err_t -netconn_listen_with_backlog(struct netconn *conn, u8_t backlog) -{ -#if LWIP_TCP - API_MSG_VAR_DECLARE(msg); - err_t err; - - /* This does no harm. If TCP_LISTEN_BACKLOG is off, backlog is unused. */ - LWIP_UNUSED_ARG(backlog); - - LWIP_ERROR("netconn_listen: invalid conn", (conn != NULL), return ERR_ARG;); - - API_MSG_VAR_ALLOC(msg); - API_MSG_VAR_REF(msg).conn = conn; -#if TCP_LISTEN_BACKLOG - API_MSG_VAR_REF(msg).msg.lb.backlog = backlog; -#endif /* TCP_LISTEN_BACKLOG */ - err = netconn_apimsg(lwip_netconn_do_listen, &API_MSG_VAR_REF(msg)); - API_MSG_VAR_FREE(msg); - - return err; -#else /* LWIP_TCP */ - LWIP_UNUSED_ARG(conn); - LWIP_UNUSED_ARG(backlog); - return ERR_ARG; -#endif /* LWIP_TCP */ -} - -/** - * @ingroup netconn_tcp - * Accept a new connection on a TCP listening netconn. - * - * @param conn the TCP listen netconn - * @param new_conn pointer where the new connection is stored - * @return ERR_OK if a new connection has been received or an error - * code otherwise - */ -err_t -netconn_accept(struct netconn *conn, struct netconn **new_conn) -{ -#if LWIP_TCP - err_t err; - void *accept_ptr; - struct netconn *newconn; -#if TCP_LISTEN_BACKLOG - API_MSG_VAR_DECLARE(msg); -#endif /* TCP_LISTEN_BACKLOG */ - - LWIP_ERROR("netconn_accept: invalid pointer", (new_conn != NULL), return ERR_ARG;); - *new_conn = NULL; - LWIP_ERROR("netconn_accept: invalid conn", (conn != NULL), return ERR_ARG;); - - /* NOTE: Although the opengroup spec says a pending error shall be returned to - send/recv/getsockopt(SO_ERROR) only, we return it for listening - connections also, to handle embedded-system errors */ - err = netconn_err(conn); - if (err != ERR_OK) { - /* return pending error */ - return err; - } - if (!NETCONN_ACCEPTMBOX_WAITABLE(conn)) { - /* don't accept if closed: this might block the application task - waiting on acceptmbox forever! */ - return ERR_CLSD; - } - - API_MSG_VAR_ALLOC_ACCEPT(msg); - - NETCONN_MBOX_WAITING_INC(conn); - if (netconn_is_nonblocking(conn)) { - if (sys_arch_mbox_tryfetch(&conn->acceptmbox, &accept_ptr) == SYS_ARCH_TIMEOUT) { - API_MSG_VAR_FREE_ACCEPT(msg); - NETCONN_MBOX_WAITING_DEC(conn); - return ERR_WOULDBLOCK; - } - } else { -#if LWIP_SO_RCVTIMEO - if (sys_arch_mbox_fetch(&conn->acceptmbox, &accept_ptr, conn->recv_timeout) == SYS_ARCH_TIMEOUT) { - API_MSG_VAR_FREE_ACCEPT(msg); - NETCONN_MBOX_WAITING_DEC(conn); - return ERR_TIMEOUT; - } -#else - sys_arch_mbox_fetch(&conn->acceptmbox, &accept_ptr, 0); -#endif /* LWIP_SO_RCVTIMEO*/ - } - NETCONN_MBOX_WAITING_DEC(conn); -#if LWIP_NETCONN_FULLDUPLEX - if (conn->flags & NETCONN_FLAG_MBOXINVALID) { - if (lwip_netconn_is_deallocated_msg(accept_ptr)) { - /* the netconn has been closed from another thread */ - API_MSG_VAR_FREE_ACCEPT(msg); - return ERR_CONN; - } - } -#endif - - /* Register event with callback */ - API_EVENT(conn, NETCONN_EVT_RCVMINUS, 0); - - if (lwip_netconn_is_err_msg(accept_ptr, &err)) { - /* a connection has been aborted: e.g. out of pcbs or out of netconns during accept */ - API_MSG_VAR_FREE_ACCEPT(msg); - return err; - } - if (accept_ptr == NULL) { - /* connection has been aborted */ - API_MSG_VAR_FREE_ACCEPT(msg); - return ERR_CLSD; - } - newconn = (struct netconn *)accept_ptr; -#if TCP_LISTEN_BACKLOG - /* Let the stack know that we have accepted the connection. */ - API_MSG_VAR_REF(msg).conn = newconn; - /* don't care for the return value of lwip_netconn_do_recv */ - netconn_apimsg(lwip_netconn_do_accepted, &API_MSG_VAR_REF(msg)); - API_MSG_VAR_FREE(msg); -#endif /* TCP_LISTEN_BACKLOG */ - - *new_conn = newconn; - /* don't set conn->last_err: it's only ERR_OK, anyway */ - return ERR_OK; -#else /* LWIP_TCP */ - LWIP_UNUSED_ARG(conn); - LWIP_UNUSED_ARG(new_conn); - return ERR_ARG; -#endif /* LWIP_TCP */ -} - -/** - * @ingroup netconn_common - * Receive data: actual implementation that doesn't care whether pbuf or netbuf - * is received (this is internal, it's just here for describing common errors) - * - * @param conn the netconn from which to receive data - * @param new_buf pointer where a new pbuf/netbuf is stored when received data - * @param apiflags flags that control function behaviour. For now only: - * - NETCONN_DONTBLOCK: only read data that is available now, don't wait for more data - * @return ERR_OK if data has been received, an error code otherwise (timeout, - * memory error or another error) - * ERR_CONN if not connected - * ERR_CLSD if TCP connection has been closed - * ERR_WOULDBLOCK if the netconn is nonblocking but would block to wait for data - * ERR_TIMEOUT if the netconn has a receive timeout and no data was received - */ -static err_t -netconn_recv_data(struct netconn *conn, void **new_buf, u8_t apiflags) -{ - void *buf = NULL; - u16_t len; - - LWIP_ERROR("netconn_recv: invalid pointer", (new_buf != NULL), return ERR_ARG;); - *new_buf = NULL; - LWIP_ERROR("netconn_recv: invalid conn", (conn != NULL), return ERR_ARG;); - - if (!NETCONN_RECVMBOX_WAITABLE(conn)) { - err_t err = netconn_err(conn); - if (err != ERR_OK) { - /* return pending error */ - return err; - } - return ERR_CONN; - } - - NETCONN_MBOX_WAITING_INC(conn); - if (netconn_is_nonblocking(conn) || (apiflags & NETCONN_DONTBLOCK) || - (conn->flags & NETCONN_FLAG_MBOXCLOSED) || (conn->pending_err != ERR_OK)) { - if (sys_arch_mbox_tryfetch(&conn->recvmbox, &buf) == SYS_ARCH_TIMEOUT) { - err_t err; - NETCONN_MBOX_WAITING_DEC(conn); - err = netconn_err(conn); - if (err != ERR_OK) { - /* return pending error */ - return err; - } - if (conn->flags & NETCONN_FLAG_MBOXCLOSED) { - return ERR_CONN; - } - return ERR_WOULDBLOCK; - } - } else { -#if LWIP_SO_RCVTIMEO - if (sys_arch_mbox_fetch(&conn->recvmbox, &buf, conn->recv_timeout) == SYS_ARCH_TIMEOUT) { - NETCONN_MBOX_WAITING_DEC(conn); - return ERR_TIMEOUT; - } -#else - sys_arch_mbox_fetch(&conn->recvmbox, &buf, 0); -#endif /* LWIP_SO_RCVTIMEO*/ - } - NETCONN_MBOX_WAITING_DEC(conn); -#if LWIP_NETCONN_FULLDUPLEX - if (conn->flags & NETCONN_FLAG_MBOXINVALID) { - if (lwip_netconn_is_deallocated_msg(buf)) { - /* the netconn has been closed from another thread */ - API_MSG_VAR_FREE_ACCEPT(msg); - return ERR_CONN; - } - } -#endif - -#if LWIP_TCP -#if (LWIP_UDP || LWIP_RAW) - if (NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP) -#endif /* (LWIP_UDP || LWIP_RAW) */ - { - err_t err; - /* Check if this is an error message or a pbuf */ - if (lwip_netconn_is_err_msg(buf, &err)) { - /* new_buf has been zeroed above already */ - if (err == ERR_CLSD) { - /* connection closed translates to ERR_OK with *new_buf == NULL */ - return ERR_OK; - } - return err; - } - len = ((struct pbuf *)buf)->tot_len; - } -#endif /* LWIP_TCP */ -#if LWIP_TCP && (LWIP_UDP || LWIP_RAW) - else -#endif /* LWIP_TCP && (LWIP_UDP || LWIP_RAW) */ -#if (LWIP_UDP || LWIP_RAW) - { - LWIP_ASSERT("buf != NULL", buf != NULL); - len = netbuf_len((struct netbuf *)buf); - } -#endif /* (LWIP_UDP || LWIP_RAW) */ - -#if LWIP_SO_RCVBUF - SYS_ARCH_DEC(conn->recv_avail, len); -#endif /* LWIP_SO_RCVBUF */ - /* Register event with callback */ - API_EVENT(conn, NETCONN_EVT_RCVMINUS, len); - - LWIP_DEBUGF(API_LIB_DEBUG, ("netconn_recv_data: received %p, len=%"U16_F"\n", buf, len)); - - *new_buf = buf; - /* don't set conn->last_err: it's only ERR_OK, anyway */ - return ERR_OK; -} - -#if LWIP_TCP -static err_t -netconn_tcp_recvd_msg(struct netconn *conn, size_t len, struct api_msg *msg) -{ - LWIP_ERROR("netconn_recv_tcp_pbuf: invalid conn", (conn != NULL) && - NETCONNTYPE_GROUP(netconn_type(conn)) == NETCONN_TCP, return ERR_ARG;); - - msg->conn = conn; - msg->msg.r.len = len; - - return netconn_apimsg(lwip_netconn_do_recv, msg); -} - -err_t -netconn_tcp_recvd(struct netconn *conn, size_t len) -{ - err_t err; - API_MSG_VAR_DECLARE(msg); - LWIP_ERROR("netconn_recv_tcp_pbuf: invalid conn", (conn != NULL) && - NETCONNTYPE_GROUP(netconn_type(conn)) == NETCONN_TCP, return ERR_ARG;); - - API_MSG_VAR_ALLOC(msg); - err = netconn_tcp_recvd_msg(conn, len, &API_VAR_REF(msg)); - API_MSG_VAR_FREE(msg); - return err; -} - -static err_t -netconn_recv_data_tcp(struct netconn *conn, struct pbuf **new_buf, u8_t apiflags) -{ - err_t err; - struct pbuf *buf; - API_MSG_VAR_DECLARE(msg); -#if LWIP_MPU_COMPATIBLE - msg = NULL; -#endif - - if (!NETCONN_RECVMBOX_WAITABLE(conn)) { - /* This only happens when calling this function more than once *after* receiving FIN */ - return ERR_CONN; - } - if (netconn_is_flag_set(conn, NETCONN_FIN_RX_PENDING)) { - netconn_clear_flags(conn, NETCONN_FIN_RX_PENDING); - goto handle_fin; - } - - if (!(apiflags & NETCONN_NOAUTORCVD)) { - /* need to allocate API message here so empty message pool does not result in event loss - * see bug #47512: MPU_COMPATIBLE may fail on empty pool */ - API_MSG_VAR_ALLOC(msg); - } - - err = netconn_recv_data(conn, (void **)new_buf, apiflags); - if (err != ERR_OK) { - if (!(apiflags & NETCONN_NOAUTORCVD)) { - API_MSG_VAR_FREE(msg); - } - return err; - } - buf = *new_buf; - if (!(apiflags & NETCONN_NOAUTORCVD)) { - /* Let the stack know that we have taken the data. */ - u16_t len = buf ? buf->tot_len : 1; - /* don't care for the return value of lwip_netconn_do_recv */ - /* @todo: this should really be fixed, e.g. by retrying in poll on error */ - netconn_tcp_recvd_msg(conn, len, &API_VAR_REF(msg)); - API_MSG_VAR_FREE(msg); - } - - /* If we are closed, we indicate that we no longer wish to use the socket */ - if (buf == NULL) { - if (apiflags & NETCONN_NOFIN) { - /* received a FIN but the caller cannot handle it right now: - re-enqueue it and return "no data" */ - netconn_set_flags(conn, NETCONN_FIN_RX_PENDING); - return ERR_WOULDBLOCK; - } else { -handle_fin: - API_EVENT(conn, NETCONN_EVT_RCVMINUS, 0); - if (conn->pcb.ip == NULL) { - /* race condition: RST during recv */ - err = netconn_err(conn); - if (err != ERR_OK) { - return err; - } - return ERR_RST; - } - /* RX side is closed, so deallocate the recvmbox */ - netconn_close_shutdown(conn, NETCONN_SHUT_RD); - /* Don' store ERR_CLSD as conn->err since we are only half-closed */ - return ERR_CLSD; - } - } - return err; -} - -/** - * @ingroup netconn_tcp - * Receive data (in form of a pbuf) from a TCP netconn - * - * @param conn the netconn from which to receive data - * @param new_buf pointer where a new pbuf is stored when received data - * @return ERR_OK if data has been received, an error code otherwise (timeout, - * memory error or another error, @see netconn_recv_data) - * ERR_ARG if conn is not a TCP netconn - */ -err_t -netconn_recv_tcp_pbuf(struct netconn *conn, struct pbuf **new_buf) -{ - LWIP_ERROR("netconn_recv_tcp_pbuf: invalid conn", (conn != NULL) && - NETCONNTYPE_GROUP(netconn_type(conn)) == NETCONN_TCP, return ERR_ARG;); - - return netconn_recv_data_tcp(conn, new_buf, 0); -} - -/** - * @ingroup netconn_tcp - * Receive data (in form of a pbuf) from a TCP netconn - * - * @param conn the netconn from which to receive data - * @param new_buf pointer where a new pbuf is stored when received data - * @param apiflags flags that control function behaviour. For now only: - * - NETCONN_DONTBLOCK: only read data that is available now, don't wait for more data - * @return ERR_OK if data has been received, an error code otherwise (timeout, - * memory error or another error, @see netconn_recv_data) - * ERR_ARG if conn is not a TCP netconn - */ -err_t -netconn_recv_tcp_pbuf_flags(struct netconn *conn, struct pbuf **new_buf, u8_t apiflags) -{ - LWIP_ERROR("netconn_recv_tcp_pbuf: invalid conn", (conn != NULL) && - NETCONNTYPE_GROUP(netconn_type(conn)) == NETCONN_TCP, return ERR_ARG;); - - return netconn_recv_data_tcp(conn, new_buf, apiflags); -} -#endif /* LWIP_TCP */ - -/** - * Receive data (in form of a netbuf) from a UDP or RAW netconn - * - * @param conn the netconn from which to receive data - * @param new_buf pointer where a new netbuf is stored when received data - * @return ERR_OK if data has been received, an error code otherwise (timeout, - * memory error or another error) - * ERR_ARG if conn is not a UDP/RAW netconn - */ -err_t -netconn_recv_udp_raw_netbuf(struct netconn *conn, struct netbuf **new_buf) -{ - LWIP_ERROR("netconn_recv_udp_raw_netbuf: invalid conn", (conn != NULL) && - NETCONNTYPE_GROUP(netconn_type(conn)) != NETCONN_TCP, return ERR_ARG;); - - return netconn_recv_data(conn, (void **)new_buf, 0); -} - -/** - * Receive data (in form of a netbuf) from a UDP or RAW netconn - * - * @param conn the netconn from which to receive data - * @param new_buf pointer where a new netbuf is stored when received data - * @param apiflags flags that control function behaviour. For now only: - * - NETCONN_DONTBLOCK: only read data that is available now, don't wait for more data - * @return ERR_OK if data has been received, an error code otherwise (timeout, - * memory error or another error) - * ERR_ARG if conn is not a UDP/RAW netconn - */ -err_t -netconn_recv_udp_raw_netbuf_flags(struct netconn *conn, struct netbuf **new_buf, u8_t apiflags) -{ - LWIP_ERROR("netconn_recv_udp_raw_netbuf: invalid conn", (conn != NULL) && - NETCONNTYPE_GROUP(netconn_type(conn)) != NETCONN_TCP, return ERR_ARG;); - - return netconn_recv_data(conn, (void **)new_buf, apiflags); -} - -/** - * @ingroup netconn_common - * Receive data (in form of a netbuf containing a packet buffer) from a netconn - * - * @param conn the netconn from which to receive data - * @param new_buf pointer where a new netbuf is stored when received data - * @return ERR_OK if data has been received, an error code otherwise (timeout, - * memory error or another error) - */ -err_t -netconn_recv(struct netconn *conn, struct netbuf **new_buf) -{ -#if LWIP_TCP - struct netbuf *buf = NULL; - err_t err; -#endif /* LWIP_TCP */ - - LWIP_ERROR("netconn_recv: invalid pointer", (new_buf != NULL), return ERR_ARG;); - *new_buf = NULL; - LWIP_ERROR("netconn_recv: invalid conn", (conn != NULL), return ERR_ARG;); - -#if LWIP_TCP -#if (LWIP_UDP || LWIP_RAW) - if (NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP) -#endif /* (LWIP_UDP || LWIP_RAW) */ - { - struct pbuf *p = NULL; - /* This is not a listening netconn, since recvmbox is set */ - - buf = (struct netbuf *)memp_malloc(MEMP_NETBUF); - if (buf == NULL) { - return ERR_MEM; - } - - err = netconn_recv_data_tcp(conn, &p, 0); - if (err != ERR_OK) { - memp_free(MEMP_NETBUF, buf); - return err; - } - LWIP_ASSERT("p != NULL", p != NULL); - - buf->p = p; - buf->ptr = p; - buf->port = 0; - ip_addr_set_zero(&buf->addr); - *new_buf = buf; - /* don't set conn->last_err: it's only ERR_OK, anyway */ - return ERR_OK; - } -#endif /* LWIP_TCP */ -#if LWIP_TCP && (LWIP_UDP || LWIP_RAW) - else -#endif /* LWIP_TCP && (LWIP_UDP || LWIP_RAW) */ - { -#if (LWIP_UDP || LWIP_RAW) - return netconn_recv_data(conn, (void **)new_buf, 0); -#endif /* (LWIP_UDP || LWIP_RAW) */ - } -} - -/** - * @ingroup netconn_udp - * Send data (in form of a netbuf) to a specific remote IP address and port. - * Only to be used for UDP and RAW netconns (not TCP). - * - * @param conn the netconn over which to send data - * @param buf a netbuf containing the data to send - * @param addr the remote IP address to which to send the data - * @param port the remote port to which to send the data - * @return ERR_OK if data was sent, any other err_t on error - */ -err_t -netconn_sendto(struct netconn *conn, struct netbuf *buf, const ip_addr_t *addr, u16_t port) -{ - if (buf != NULL) { - ip_addr_set(&buf->addr, addr); - buf->port = port; - return netconn_send(conn, buf); - } - return ERR_VAL; -} - -/** - * @ingroup netconn_udp - * Send data over a UDP or RAW netconn (that is already connected). - * - * @param conn the UDP or RAW netconn over which to send data - * @param buf a netbuf containing the data to send - * @return ERR_OK if data was sent, any other err_t on error - */ -err_t -netconn_send(struct netconn *conn, struct netbuf *buf) -{ - API_MSG_VAR_DECLARE(msg); - err_t err; - - LWIP_ERROR("netconn_send: invalid conn", (conn != NULL), return ERR_ARG;); - - LWIP_DEBUGF(API_LIB_DEBUG, ("netconn_send: sending %"U16_F" bytes\n", buf->p->tot_len)); - - API_MSG_VAR_ALLOC(msg); - API_MSG_VAR_REF(msg).conn = conn; - API_MSG_VAR_REF(msg).msg.b = buf; - err = netconn_apimsg(lwip_netconn_do_send, &API_MSG_VAR_REF(msg)); - API_MSG_VAR_FREE(msg); - - return err; -} - -/** - * @ingroup netconn_tcp - * Send data over a TCP netconn. - * - * @param conn the TCP netconn over which to send data - * @param dataptr pointer to the application buffer that contains the data to send - * @param size size of the application data to send - * @param apiflags combination of following flags : - * - NETCONN_COPY: data will be copied into memory belonging to the stack - * - NETCONN_MORE: for TCP connection, PSH flag will be set on last segment sent - * - NETCONN_DONTBLOCK: only write the data if all data can be written at once - * @param bytes_written pointer to a location that receives the number of written bytes - * @return ERR_OK if data was sent, any other err_t on error - */ -err_t -netconn_write_partly(struct netconn *conn, const void *dataptr, size_t size, - u8_t apiflags, size_t *bytes_written) -{ - struct netvector vector; - vector.ptr = dataptr; - vector.len = size; - return netconn_write_vectors_partly(conn, &vector, 1, apiflags, bytes_written); -} - -/** - * Send vectorized data atomically over a TCP netconn. - * - * @param conn the TCP netconn over which to send data - * @param vectors array of vectors containing data to send - * @param vectorcnt number of vectors in the array - * @param apiflags combination of following flags : - * - NETCONN_COPY: data will be copied into memory belonging to the stack - * - NETCONN_MORE: for TCP connection, PSH flag will be set on last segment sent - * - NETCONN_DONTBLOCK: only write the data if all data can be written at once - * @param bytes_written pointer to a location that receives the number of written bytes - * @return ERR_OK if data was sent, any other err_t on error - */ -err_t -netconn_write_vectors_partly(struct netconn *conn, struct netvector *vectors, u16_t vectorcnt, - u8_t apiflags, size_t *bytes_written) -{ - API_MSG_VAR_DECLARE(msg); - err_t err; - u8_t dontblock; - size_t size; - int i; - - LWIP_ERROR("netconn_write: invalid conn", (conn != NULL), return ERR_ARG;); - LWIP_ERROR("netconn_write: invalid conn->type", (NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP), return ERR_VAL;); - dontblock = netconn_is_nonblocking(conn) || (apiflags & NETCONN_DONTBLOCK); -#if LWIP_SO_SNDTIMEO - if (conn->send_timeout != 0) { - dontblock = 1; - } -#endif /* LWIP_SO_SNDTIMEO */ - if (dontblock && !bytes_written) { - /* This implies netconn_write() cannot be used for non-blocking send, since - it has no way to return the number of bytes written. */ - return ERR_VAL; - } - - /* sum up the total size */ - size = 0; - for (i = 0; i < vectorcnt; i++) { - size += vectors[i].len; - if (size < vectors[i].len) { - /* overflow */ - return ERR_VAL; - } - } - if (size == 0) { - return ERR_OK; - } else if (size > SSIZE_MAX) { - ssize_t limited; - /* this is required by the socket layer (cannot send full size_t range) */ - if (!bytes_written) { - return ERR_VAL; - } - /* limit the amount of data to send */ - limited = SSIZE_MAX; - size = (size_t)limited; - } - - API_MSG_VAR_ALLOC(msg); - /* non-blocking write sends as much */ - API_MSG_VAR_REF(msg).conn = conn; - API_MSG_VAR_REF(msg).msg.w.vector = vectors; - API_MSG_VAR_REF(msg).msg.w.vector_cnt = vectorcnt; - API_MSG_VAR_REF(msg).msg.w.vector_off = 0; - API_MSG_VAR_REF(msg).msg.w.apiflags = apiflags; - API_MSG_VAR_REF(msg).msg.w.len = size; - API_MSG_VAR_REF(msg).msg.w.offset = 0; -#if LWIP_SO_SNDTIMEO - if (conn->send_timeout != 0) { - /* get the time we started, which is later compared to - sys_now() + conn->send_timeout */ - API_MSG_VAR_REF(msg).msg.w.time_started = sys_now(); - } else { - API_MSG_VAR_REF(msg).msg.w.time_started = 0; - } -#endif /* LWIP_SO_SNDTIMEO */ - - /* For locking the core: this _can_ be delayed on low memory/low send buffer, - but if it is, this is done inside api_msg.c:do_write(), so we can use the - non-blocking version here. */ - err = netconn_apimsg(lwip_netconn_do_write, &API_MSG_VAR_REF(msg)); - if (err == ERR_OK) { - if (bytes_written != NULL) { - *bytes_written = API_MSG_VAR_REF(msg).msg.w.offset; - } - /* for blocking, check all requested bytes were written, NOTE: send_timeout is - treated as dontblock (see dontblock assignment above) */ - if (!dontblock) { - LWIP_ASSERT("do_write failed to write all bytes", API_MSG_VAR_REF(msg).msg.w.offset == size); - } - } - API_MSG_VAR_FREE(msg); - - return err; -} - -/** - * @ingroup netconn_tcp - * Close or shutdown a TCP netconn (doesn't delete it). - * - * @param conn the TCP netconn to close or shutdown - * @param how fully close or only shutdown one side? - * @return ERR_OK if the netconn was closed, any other err_t on error - */ -static err_t -netconn_close_shutdown(struct netconn *conn, u8_t how) -{ - API_MSG_VAR_DECLARE(msg); - err_t err; - LWIP_UNUSED_ARG(how); - - LWIP_ERROR("netconn_close: invalid conn", (conn != NULL), return ERR_ARG;); - - API_MSG_VAR_ALLOC(msg); - API_MSG_VAR_REF(msg).conn = conn; -#if LWIP_TCP - /* shutting down both ends is the same as closing */ - API_MSG_VAR_REF(msg).msg.sd.shut = how; -#if LWIP_SO_SNDTIMEO || LWIP_SO_LINGER - /* get the time we started, which is later compared to - sys_now() + conn->send_timeout */ - API_MSG_VAR_REF(msg).msg.sd.time_started = sys_now(); -#else /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */ - API_MSG_VAR_REF(msg).msg.sd.polls_left = - ((LWIP_TCP_CLOSE_TIMEOUT_MS_DEFAULT + TCP_SLOW_INTERVAL - 1) / TCP_SLOW_INTERVAL) + 1; -#endif /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */ -#endif /* LWIP_TCP */ - err = netconn_apimsg(lwip_netconn_do_close, &API_MSG_VAR_REF(msg)); - API_MSG_VAR_FREE(msg); - - return err; -} - -/** - * @ingroup netconn_tcp - * Close a TCP netconn (doesn't delete it). - * - * @param conn the TCP netconn to close - * @return ERR_OK if the netconn was closed, any other err_t on error - */ -err_t -netconn_close(struct netconn *conn) -{ - /* shutting down both ends is the same as closing */ - return netconn_close_shutdown(conn, NETCONN_SHUT_RDWR); -} - -/** - * @ingroup netconn_common - * Get and reset pending error on a netconn - * - * @param conn the netconn to get the error from - * @return and pending error or ERR_OK if no error was pending - */ -err_t -netconn_err(struct netconn *conn) -{ - err_t err; - SYS_ARCH_DECL_PROTECT(lev); - if (conn == NULL) { - return ERR_OK; - } - SYS_ARCH_PROTECT(lev); - err = conn->pending_err; - conn->pending_err = ERR_OK; - SYS_ARCH_UNPROTECT(lev); - return err; -} - -/** - * @ingroup netconn_tcp - * Shut down one or both sides of a TCP netconn (doesn't delete it). - * - * @param conn the TCP netconn to shut down - * @param shut_rx shut down the RX side (no more read possible after this) - * @param shut_tx shut down the TX side (no more write possible after this) - * @return ERR_OK if the netconn was closed, any other err_t on error - */ -err_t -netconn_shutdown(struct netconn *conn, u8_t shut_rx, u8_t shut_tx) -{ - return netconn_close_shutdown(conn, (u8_t)((shut_rx ? NETCONN_SHUT_RD : 0) | (shut_tx ? NETCONN_SHUT_WR : 0))); -} - -#if LWIP_IGMP || (LWIP_IPV6 && LWIP_IPV6_MLD) -/** - * @ingroup netconn_udp - * Join multicast groups for UDP netconns. - * - * @param conn the UDP netconn for which to change multicast addresses - * @param multiaddr IP address of the multicast group to join or leave - * @param netif_addr the IP address of the network interface on which to send - * the igmp message - * @param join_or_leave flag whether to send a join- or leave-message - * @return ERR_OK if the action was taken, any err_t on error - */ -err_t -netconn_join_leave_group(struct netconn *conn, - const ip_addr_t *multiaddr, - const ip_addr_t *netif_addr, - enum netconn_igmp join_or_leave) -{ - API_MSG_VAR_DECLARE(msg); - err_t err; - - LWIP_ERROR("netconn_join_leave_group: invalid conn", (conn != NULL), return ERR_ARG;); - - API_MSG_VAR_ALLOC(msg); - -#if LWIP_IPV4 - /* Don't propagate NULL pointer (IP_ADDR_ANY alias) to subsequent functions */ - if (multiaddr == NULL) { - multiaddr = IP4_ADDR_ANY; - } - if (netif_addr == NULL) { - netif_addr = IP4_ADDR_ANY; - } -#endif /* LWIP_IPV4 */ - - API_MSG_VAR_REF(msg).conn = conn; - API_MSG_VAR_REF(msg).msg.jl.multiaddr = API_MSG_VAR_REF(multiaddr); - API_MSG_VAR_REF(msg).msg.jl.netif_addr = API_MSG_VAR_REF(netif_addr); - API_MSG_VAR_REF(msg).msg.jl.join_or_leave = join_or_leave; - err = netconn_apimsg(lwip_netconn_do_join_leave_group, &API_MSG_VAR_REF(msg)); - API_MSG_VAR_FREE(msg); - - return err; -} -/** - * @ingroup netconn_udp - * Join multicast groups for UDP netconns. - * - * @param conn the UDP netconn for which to change multicast addresses - * @param multiaddr IP address of the multicast group to join or leave - * @param if_idx the index of the netif - * @param join_or_leave flag whether to send a join- or leave-message - * @return ERR_OK if the action was taken, any err_t on error - */ -err_t -netconn_join_leave_group_netif(struct netconn *conn, - const ip_addr_t *multiaddr, - u8_t if_idx, - enum netconn_igmp join_or_leave) -{ - API_MSG_VAR_DECLARE(msg); - err_t err; - - LWIP_ERROR("netconn_join_leave_group: invalid conn", (conn != NULL), return ERR_ARG;); - - API_MSG_VAR_ALLOC(msg); - -#if LWIP_IPV4 - /* Don't propagate NULL pointer (IP_ADDR_ANY alias) to subsequent functions */ - if (multiaddr == NULL) { - multiaddr = IP4_ADDR_ANY; - } - if (if_idx == NETIF_NO_INDEX) { - return ERR_IF; - } -#endif /* LWIP_IPV4 */ - - API_MSG_VAR_REF(msg).conn = conn; - API_MSG_VAR_REF(msg).msg.jl.multiaddr = API_MSG_VAR_REF(multiaddr); - API_MSG_VAR_REF(msg).msg.jl.if_idx = if_idx; - API_MSG_VAR_REF(msg).msg.jl.join_or_leave = join_or_leave; - err = netconn_apimsg(lwip_netconn_do_join_leave_group_netif, &API_MSG_VAR_REF(msg)); - API_MSG_VAR_FREE(msg); - - return err; -} -#endif /* LWIP_IGMP || (LWIP_IPV6 && LWIP_IPV6_MLD) */ - -#if LWIP_DNS -/** - * @ingroup netconn_common - * Execute a DNS query, only one IP address is returned - * - * @param name a string representation of the DNS host name to query - * @param addr a preallocated ip_addr_t where to store the resolved IP address - * @param dns_addrtype IP address type (IPv4 / IPv6) - * @return ERR_OK: resolving succeeded - * ERR_MEM: memory error, try again later - * ERR_ARG: dns client not initialized or invalid hostname - * ERR_VAL: dns server response was invalid - */ -#if LWIP_IPV4 && LWIP_IPV6 -err_t -netconn_gethostbyname_addrtype(const char *name, ip_addr_t *addr, u8_t dns_addrtype) -#else -err_t -netconn_gethostbyname(const char *name, ip_addr_t *addr) -#endif -{ - API_VAR_DECLARE(struct dns_api_msg, msg); -#if !LWIP_MPU_COMPATIBLE - sys_sem_t sem; -#endif /* LWIP_MPU_COMPATIBLE */ - err_t err; - err_t cberr; - - LWIP_ERROR("netconn_gethostbyname: invalid name", (name != NULL), return ERR_ARG;); - LWIP_ERROR("netconn_gethostbyname: invalid addr", (addr != NULL), return ERR_ARG;); -#if LWIP_MPU_COMPATIBLE - if (strlen(name) >= DNS_MAX_NAME_LENGTH) { - return ERR_ARG; - } -#endif - -#ifdef LWIP_HOOK_NETCONN_EXTERNAL_RESOLVE -#if LWIP_IPV4 && LWIP_IPV6 - if (LWIP_HOOK_NETCONN_EXTERNAL_RESOLVE(name, addr, dns_addrtype, &err)) { -#else - if (LWIP_HOOK_NETCONN_EXTERNAL_RESOLVE(name, addr, NETCONN_DNS_DEFAULT, &err)) { -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - return err; - } -#endif /* LWIP_HOOK_NETCONN_EXTERNAL_RESOLVE */ - - API_VAR_ALLOC(struct dns_api_msg, MEMP_DNS_API_MSG, msg, ERR_MEM); -#if LWIP_MPU_COMPATIBLE - strncpy(API_VAR_REF(msg).name, name, DNS_MAX_NAME_LENGTH - 1); - API_VAR_REF(msg).name[DNS_MAX_NAME_LENGTH - 1] = 0; -#else /* LWIP_MPU_COMPATIBLE */ - msg.err = &err; - msg.sem = &sem; - API_VAR_REF(msg).addr = API_VAR_REF(addr); - API_VAR_REF(msg).name = name; -#endif /* LWIP_MPU_COMPATIBLE */ -#if LWIP_IPV4 && LWIP_IPV6 - API_VAR_REF(msg).dns_addrtype = dns_addrtype; -#endif /* LWIP_IPV4 && LWIP_IPV6 */ -#if LWIP_NETCONN_SEM_PER_THREAD - API_VAR_REF(msg).sem = LWIP_NETCONN_THREAD_SEM_GET(); -#else /* LWIP_NETCONN_SEM_PER_THREAD*/ - err = sys_sem_new(API_EXPR_REF(API_VAR_REF(msg).sem), 0); - if (err != ERR_OK) { - API_VAR_FREE(MEMP_DNS_API_MSG, msg); - return err; - } -#endif /* LWIP_NETCONN_SEM_PER_THREAD */ - - cberr = tcpip_send_msg_wait_sem(lwip_netconn_do_gethostbyname, &API_VAR_REF(msg), API_EXPR_REF(API_VAR_REF(msg).sem)); -#if !LWIP_NETCONN_SEM_PER_THREAD - sys_sem_free(API_EXPR_REF(API_VAR_REF(msg).sem)); -#endif /* !LWIP_NETCONN_SEM_PER_THREAD */ - if (cberr != ERR_OK) { - API_VAR_FREE(MEMP_DNS_API_MSG, msg); - return cberr; - } - -#if LWIP_MPU_COMPATIBLE - *addr = msg->addr; - err = msg->err; -#endif /* LWIP_MPU_COMPATIBLE */ - - API_VAR_FREE(MEMP_DNS_API_MSG, msg); - return err; -} -#endif /* LWIP_DNS*/ - -#if LWIP_NETCONN_SEM_PER_THREAD -void -netconn_thread_init(void) -{ - sys_sem_t *sem = LWIP_NETCONN_THREAD_SEM_GET(); - if ((sem == NULL) || !sys_sem_valid(sem)) { - /* call alloc only once */ - LWIP_NETCONN_THREAD_SEM_ALLOC(); - LWIP_ASSERT("LWIP_NETCONN_THREAD_SEM_ALLOC() failed", sys_sem_valid(LWIP_NETCONN_THREAD_SEM_GET())); - } -} - -void -netconn_thread_cleanup(void) -{ - sys_sem_t *sem = LWIP_NETCONN_THREAD_SEM_GET(); - if ((sem != NULL) && sys_sem_valid(sem)) { - /* call free only once */ - LWIP_NETCONN_THREAD_SEM_FREE(); - } -} -#endif /* LWIP_NETCONN_SEM_PER_THREAD */ - -#endif /* LWIP_NETCONN */ diff --git a/Middlewares/Third_Party/LwIP/src/api/api_msg.c b/Middlewares/Third_Party/LwIP/src/api/api_msg.c deleted file mode 100644 index 3953102..0000000 --- a/Middlewares/Third_Party/LwIP/src/api/api_msg.c +++ /dev/null @@ -1,2173 +0,0 @@ -/** - * @file - * Sequential API Internal module - * - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -#include "lwip/opt.h" - -#if LWIP_NETCONN /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/priv/api_msg.h" - -#include "lwip/ip.h" -#include "lwip/ip_addr.h" -#include "lwip/udp.h" -#include "lwip/tcp.h" -#include "lwip/raw.h" - -#include "lwip/memp.h" -#include "lwip/igmp.h" -#include "lwip/dns.h" -#include "lwip/mld6.h" -#include "lwip/priv/tcpip_priv.h" - -#include - -/* netconns are polled once per second (e.g. continue write on memory error) */ -#define NETCONN_TCP_POLL_INTERVAL 2 - -#define SET_NONBLOCKING_CONNECT(conn, val) do { if (val) { \ - netconn_set_flags(conn, NETCONN_FLAG_IN_NONBLOCKING_CONNECT); \ -} else { \ - netconn_clear_flags(conn, NETCONN_FLAG_IN_NONBLOCKING_CONNECT); }} while(0) -#define IN_NONBLOCKING_CONNECT(conn) netconn_is_flag_set(conn, NETCONN_FLAG_IN_NONBLOCKING_CONNECT) - -#if LWIP_NETCONN_FULLDUPLEX -#define NETCONN_MBOX_VALID(conn, mbox) (sys_mbox_valid(mbox) && ((conn->flags & NETCONN_FLAG_MBOXINVALID) == 0)) -#else -#define NETCONN_MBOX_VALID(conn, mbox) sys_mbox_valid(mbox) -#endif - -/* forward declarations */ -#if LWIP_TCP -#if LWIP_TCPIP_CORE_LOCKING -#define WRITE_DELAYED , 1 -#define WRITE_DELAYED_PARAM , u8_t delayed -#else /* LWIP_TCPIP_CORE_LOCKING */ -#define WRITE_DELAYED -#define WRITE_DELAYED_PARAM -#endif /* LWIP_TCPIP_CORE_LOCKING */ -static err_t lwip_netconn_do_writemore(struct netconn *conn WRITE_DELAYED_PARAM); -static err_t lwip_netconn_do_close_internal(struct netconn *conn WRITE_DELAYED_PARAM); -#endif - -static void netconn_drain(struct netconn *conn); - -#if LWIP_TCPIP_CORE_LOCKING -#define TCPIP_APIMSG_ACK(m) -#else /* LWIP_TCPIP_CORE_LOCKING */ -#define TCPIP_APIMSG_ACK(m) do { sys_sem_signal(LWIP_API_MSG_SEM(m)); } while(0) -#endif /* LWIP_TCPIP_CORE_LOCKING */ - -#if LWIP_NETCONN_FULLDUPLEX -const u8_t netconn_deleted = 0; - -int -lwip_netconn_is_deallocated_msg(void *msg) -{ - if (msg == &netconn_deleted) { - return 1; - } - return 0; -} -#endif /* LWIP_NETCONN_FULLDUPLEX */ - -#if LWIP_TCP -const u8_t netconn_aborted = 0; -const u8_t netconn_reset = 0; -const u8_t netconn_closed = 0; - -/** Translate an error to a unique void* passed via an mbox */ -static void * -lwip_netconn_err_to_msg(err_t err) -{ - switch (err) { - case ERR_ABRT: - return LWIP_CONST_CAST(void *, &netconn_aborted); - case ERR_RST: - return LWIP_CONST_CAST(void *, &netconn_reset); - case ERR_CLSD: - return LWIP_CONST_CAST(void *, &netconn_closed); - default: - LWIP_ASSERT("unhandled error", err == ERR_OK); - return NULL; - } -} - -int -lwip_netconn_is_err_msg(void *msg, err_t *err) -{ - LWIP_ASSERT("err != NULL", err != NULL); - - if (msg == &netconn_aborted) { - *err = ERR_ABRT; - return 1; - } else if (msg == &netconn_reset) { - *err = ERR_RST; - return 1; - } else if (msg == &netconn_closed) { - *err = ERR_CLSD; - return 1; - } - return 0; -} -#endif /* LWIP_TCP */ - - -#if LWIP_RAW -/** - * Receive callback function for RAW netconns. - * Doesn't 'eat' the packet, only copies it and sends it to - * conn->recvmbox - * - * @see raw.h (struct raw_pcb.recv) for parameters and return value - */ -static u8_t -recv_raw(void *arg, struct raw_pcb *pcb, struct pbuf *p, - const ip_addr_t *addr) -{ - struct pbuf *q; - struct netbuf *buf; - struct netconn *conn; - - LWIP_UNUSED_ARG(addr); - conn = (struct netconn *)arg; - - if ((conn != NULL) && NETCONN_MBOX_VALID(conn, &conn->recvmbox)) { -#if LWIP_SO_RCVBUF - int recv_avail; - SYS_ARCH_GET(conn->recv_avail, recv_avail); - if ((recv_avail + (int)(p->tot_len)) > conn->recv_bufsize) { - return 0; - } -#endif /* LWIP_SO_RCVBUF */ - /* copy the whole packet into new pbufs */ - q = pbuf_clone(PBUF_RAW, PBUF_RAM, p); - if (q != NULL) { - u16_t len; - buf = (struct netbuf *)memp_malloc(MEMP_NETBUF); - if (buf == NULL) { - pbuf_free(q); - return 0; - } - - buf->p = q; - buf->ptr = q; - ip_addr_copy(buf->addr, *ip_current_src_addr()); - buf->port = pcb->protocol; - - len = q->tot_len; - if (sys_mbox_trypost(&conn->recvmbox, buf) != ERR_OK) { - netbuf_delete(buf); - return 0; - } else { -#if LWIP_SO_RCVBUF - SYS_ARCH_INC(conn->recv_avail, len); -#endif /* LWIP_SO_RCVBUF */ - /* Register event with callback */ - API_EVENT(conn, NETCONN_EVT_RCVPLUS, len); - } - } - } - - return 0; /* do not eat the packet */ -} -#endif /* LWIP_RAW*/ - -#if LWIP_UDP -/** - * Receive callback function for UDP netconns. - * Posts the packet to conn->recvmbox or deletes it on memory error. - * - * @see udp.h (struct udp_pcb.recv) for parameters - */ -static void -recv_udp(void *arg, struct udp_pcb *pcb, struct pbuf *p, - const ip_addr_t *addr, u16_t port) -{ - struct netbuf *buf; - struct netconn *conn; - u16_t len; -#if LWIP_SO_RCVBUF - int recv_avail; -#endif /* LWIP_SO_RCVBUF */ - - LWIP_UNUSED_ARG(pcb); /* only used for asserts... */ - LWIP_ASSERT("recv_udp must have a pcb argument", pcb != NULL); - LWIP_ASSERT("recv_udp must have an argument", arg != NULL); - conn = (struct netconn *)arg; - - if (conn == NULL) { - pbuf_free(p); - return; - } - - LWIP_ASSERT("recv_udp: recv for wrong pcb!", conn->pcb.udp == pcb); - -#if LWIP_SO_RCVBUF - SYS_ARCH_GET(conn->recv_avail, recv_avail); - if (!NETCONN_MBOX_VALID(conn, &conn->recvmbox) || - ((recv_avail + (int)(p->tot_len)) > conn->recv_bufsize)) { -#else /* LWIP_SO_RCVBUF */ - if (!NETCONN_MBOX_VALID(conn, &conn->recvmbox)) { -#endif /* LWIP_SO_RCVBUF */ - pbuf_free(p); - return; - } - - buf = (struct netbuf *)memp_malloc(MEMP_NETBUF); - if (buf == NULL) { - pbuf_free(p); - return; - } else { - buf->p = p; - buf->ptr = p; - ip_addr_set(&buf->addr, addr); - buf->port = port; -#if LWIP_NETBUF_RECVINFO - if (conn->flags & NETCONN_FLAG_PKTINFO) { - /* get the UDP header - always in the first pbuf, ensured by udp_input */ - const struct udp_hdr *udphdr = (const struct udp_hdr *)ip_next_header_ptr(); - buf->flags = NETBUF_FLAG_DESTADDR; - ip_addr_set(&buf->toaddr, ip_current_dest_addr()); - buf->toport_chksum = udphdr->dest; - } -#endif /* LWIP_NETBUF_RECVINFO */ - } - - len = p->tot_len; - if (sys_mbox_trypost(&conn->recvmbox, buf) != ERR_OK) { - netbuf_delete(buf); - return; - } else { -#if LWIP_SO_RCVBUF - SYS_ARCH_INC(conn->recv_avail, len); -#endif /* LWIP_SO_RCVBUF */ - /* Register event with callback */ - API_EVENT(conn, NETCONN_EVT_RCVPLUS, len); - } -} -#endif /* LWIP_UDP */ - -#if LWIP_TCP -/** - * Receive callback function for TCP netconns. - * Posts the packet to conn->recvmbox, but doesn't delete it on errors. - * - * @see tcp.h (struct tcp_pcb.recv) for parameters and return value - */ -static err_t -recv_tcp(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err) -{ - struct netconn *conn; - u16_t len; - void *msg; - - LWIP_UNUSED_ARG(pcb); - LWIP_ASSERT("recv_tcp must have a pcb argument", pcb != NULL); - LWIP_ASSERT("recv_tcp must have an argument", arg != NULL); - LWIP_ASSERT("err != ERR_OK unhandled", err == ERR_OK); - LWIP_UNUSED_ARG(err); /* for LWIP_NOASSERT */ - conn = (struct netconn *)arg; - - if (conn == NULL) { - return ERR_VAL; - } - LWIP_ASSERT("recv_tcp: recv for wrong pcb!", conn->pcb.tcp == pcb); - - if (!NETCONN_MBOX_VALID(conn, &conn->recvmbox)) { - /* recvmbox already deleted */ - if (p != NULL) { - tcp_recved(pcb, p->tot_len); - pbuf_free(p); - } - return ERR_OK; - } - /* Unlike for UDP or RAW pcbs, don't check for available space - using recv_avail since that could break the connection - (data is already ACKed) */ - - if (p != NULL) { - msg = p; - len = p->tot_len; - } else { - msg = LWIP_CONST_CAST(void *, &netconn_closed); - len = 0; - } - - if (sys_mbox_trypost(&conn->recvmbox, msg) != ERR_OK) { - /* don't deallocate p: it is presented to us later again from tcp_fasttmr! */ - return ERR_MEM; - } else { -#if LWIP_SO_RCVBUF - SYS_ARCH_INC(conn->recv_avail, len); -#endif /* LWIP_SO_RCVBUF */ - /* Register event with callback */ - API_EVENT(conn, NETCONN_EVT_RCVPLUS, len); - } - - return ERR_OK; -} - -/** - * Poll callback function for TCP netconns. - * Wakes up an application thread that waits for a connection to close - * or data to be sent. The application thread then takes the - * appropriate action to go on. - * - * Signals the conn->sem. - * netconn_close waits for conn->sem if closing failed. - * - * @see tcp.h (struct tcp_pcb.poll) for parameters and return value - */ -static err_t -poll_tcp(void *arg, struct tcp_pcb *pcb) -{ - struct netconn *conn = (struct netconn *)arg; - - LWIP_UNUSED_ARG(pcb); - LWIP_ASSERT("conn != NULL", (conn != NULL)); - - if (conn->state == NETCONN_WRITE) { - lwip_netconn_do_writemore(conn WRITE_DELAYED); - } else if (conn->state == NETCONN_CLOSE) { -#if !LWIP_SO_SNDTIMEO && !LWIP_SO_LINGER - if (conn->current_msg && conn->current_msg->msg.sd.polls_left) { - conn->current_msg->msg.sd.polls_left--; - } -#endif /* !LWIP_SO_SNDTIMEO && !LWIP_SO_LINGER */ - lwip_netconn_do_close_internal(conn WRITE_DELAYED); - } - /* @todo: implement connect timeout here? */ - - /* Did a nonblocking write fail before? Then check available write-space. */ - if (conn->flags & NETCONN_FLAG_CHECK_WRITESPACE) { - /* If the queued byte- or pbuf-count drops below the configured low-water limit, - let select mark this pcb as writable again. */ - if ((conn->pcb.tcp != NULL) && (tcp_sndbuf(conn->pcb.tcp) > TCP_SNDLOWAT) && - (tcp_sndqueuelen(conn->pcb.tcp) < TCP_SNDQUEUELOWAT)) { - netconn_clear_flags(conn, NETCONN_FLAG_CHECK_WRITESPACE); - API_EVENT(conn, NETCONN_EVT_SENDPLUS, 0); - } - } - - return ERR_OK; -} - -/** - * Sent callback function for TCP netconns. - * Signals the conn->sem and calls API_EVENT. - * netconn_write waits for conn->sem if send buffer is low. - * - * @see tcp.h (struct tcp_pcb.sent) for parameters and return value - */ -static err_t -sent_tcp(void *arg, struct tcp_pcb *pcb, u16_t len) -{ - struct netconn *conn = (struct netconn *)arg; - - LWIP_UNUSED_ARG(pcb); - LWIP_ASSERT("conn != NULL", (conn != NULL)); - - if (conn) { - if (conn->state == NETCONN_WRITE) { - lwip_netconn_do_writemore(conn WRITE_DELAYED); - } else if (conn->state == NETCONN_CLOSE) { - lwip_netconn_do_close_internal(conn WRITE_DELAYED); - } - - /* If the queued byte- or pbuf-count drops below the configured low-water limit, - let select mark this pcb as writable again. */ - if ((conn->pcb.tcp != NULL) && (tcp_sndbuf(conn->pcb.tcp) > TCP_SNDLOWAT) && - (tcp_sndqueuelen(conn->pcb.tcp) < TCP_SNDQUEUELOWAT)) { - netconn_clear_flags(conn, NETCONN_FLAG_CHECK_WRITESPACE); - API_EVENT(conn, NETCONN_EVT_SENDPLUS, len); - } - } - - return ERR_OK; -} - -/** - * Error callback function for TCP netconns. - * Signals conn->sem, posts to all conn mboxes and calls API_EVENT. - * The application thread has then to decide what to do. - * - * @see tcp.h (struct tcp_pcb.err) for parameters - */ -static void -err_tcp(void *arg, err_t err) -{ - struct netconn *conn; - enum netconn_state old_state; - void *mbox_msg; - SYS_ARCH_DECL_PROTECT(lev); - - conn = (struct netconn *)arg; - LWIP_ASSERT("conn != NULL", (conn != NULL)); - - SYS_ARCH_PROTECT(lev); - - /* when err is called, the pcb is deallocated, so delete the reference */ - conn->pcb.tcp = NULL; - /* store pending error */ - conn->pending_err = err; - /* prevent application threads from blocking on 'recvmbox'/'acceptmbox' */ - conn->flags |= NETCONN_FLAG_MBOXCLOSED; - - /* reset conn->state now before waking up other threads */ - old_state = conn->state; - conn->state = NETCONN_NONE; - - SYS_ARCH_UNPROTECT(lev); - - /* Notify the user layer about a connection error. Used to signal select. */ - API_EVENT(conn, NETCONN_EVT_ERROR, 0); - /* Try to release selects pending on 'read' or 'write', too. - They will get an error if they actually try to read or write. */ - API_EVENT(conn, NETCONN_EVT_RCVPLUS, 0); - API_EVENT(conn, NETCONN_EVT_SENDPLUS, 0); - - mbox_msg = lwip_netconn_err_to_msg(err); - /* pass error message to recvmbox to wake up pending recv */ - if (NETCONN_MBOX_VALID(conn, &conn->recvmbox)) { - /* use trypost to prevent deadlock */ - sys_mbox_trypost(&conn->recvmbox, mbox_msg); - } - /* pass error message to acceptmbox to wake up pending accept */ - if (NETCONN_MBOX_VALID(conn, &conn->acceptmbox)) { - /* use trypost to preven deadlock */ - sys_mbox_trypost(&conn->acceptmbox, mbox_msg); - } - - if ((old_state == NETCONN_WRITE) || (old_state == NETCONN_CLOSE) || - (old_state == NETCONN_CONNECT)) { - /* calling lwip_netconn_do_writemore/lwip_netconn_do_close_internal is not necessary - since the pcb has already been deleted! */ - int was_nonblocking_connect = IN_NONBLOCKING_CONNECT(conn); - SET_NONBLOCKING_CONNECT(conn, 0); - - if (!was_nonblocking_connect) { - sys_sem_t *op_completed_sem; - /* set error return code */ - LWIP_ASSERT("conn->current_msg != NULL", conn->current_msg != NULL); - if (old_state == NETCONN_CLOSE) { - /* let close succeed: the connection is closed after all... */ - conn->current_msg->err = ERR_OK; - } else { - /* Write and connect fail */ - conn->current_msg->err = err; - } - op_completed_sem = LWIP_API_MSG_SEM(conn->current_msg); - LWIP_ASSERT("inavlid op_completed_sem", sys_sem_valid(op_completed_sem)); - conn->current_msg = NULL; - /* wake up the waiting task */ - sys_sem_signal(op_completed_sem); - } else { - /* @todo: test what happens for error on nonblocking connect */ - } - } else { - LWIP_ASSERT("conn->current_msg == NULL", conn->current_msg == NULL); - } -} - -/** - * Setup a tcp_pcb with the correct callback function pointers - * and their arguments. - * - * @param conn the TCP netconn to setup - */ -static void -setup_tcp(struct netconn *conn) -{ - struct tcp_pcb *pcb; - - pcb = conn->pcb.tcp; - tcp_arg(pcb, conn); - tcp_recv(pcb, recv_tcp); - tcp_sent(pcb, sent_tcp); - tcp_poll(pcb, poll_tcp, NETCONN_TCP_POLL_INTERVAL); - tcp_err(pcb, err_tcp); -} - -/** - * Accept callback function for TCP netconns. - * Allocates a new netconn and posts that to conn->acceptmbox. - * - * @see tcp.h (struct tcp_pcb_listen.accept) for parameters and return value - */ -static err_t -accept_function(void *arg, struct tcp_pcb *newpcb, err_t err) -{ - struct netconn *newconn; - struct netconn *conn = (struct netconn *)arg; - - if (conn == NULL) { - return ERR_VAL; - } - if (!NETCONN_MBOX_VALID(conn, &conn->acceptmbox)) { - LWIP_DEBUGF(API_MSG_DEBUG, ("accept_function: acceptmbox already deleted\n")); - return ERR_VAL; - } - - if (newpcb == NULL) { - /* out-of-pcbs during connect: pass on this error to the application */ - if (sys_mbox_trypost(&conn->acceptmbox, lwip_netconn_err_to_msg(ERR_ABRT)) == ERR_OK) { - /* Register event with callback */ - API_EVENT(conn, NETCONN_EVT_RCVPLUS, 0); - } - return ERR_VAL; - } - LWIP_ASSERT("expect newpcb == NULL or err == ERR_OK", err == ERR_OK); - LWIP_UNUSED_ARG(err); /* for LWIP_NOASSERT */ - - LWIP_DEBUGF(API_MSG_DEBUG, ("accept_function: newpcb->state: %s\n", tcp_debug_state_str(newpcb->state))); - - /* We have to set the callback here even though - * the new socket is unknown. newconn->socket is marked as -1. */ - newconn = netconn_alloc(conn->type, conn->callback); - if (newconn == NULL) { - /* outof netconns: pass on this error to the application */ - if (sys_mbox_trypost(&conn->acceptmbox, lwip_netconn_err_to_msg(ERR_ABRT)) == ERR_OK) { - /* Register event with callback */ - API_EVENT(conn, NETCONN_EVT_RCVPLUS, 0); - } - return ERR_MEM; - } - newconn->pcb.tcp = newpcb; - setup_tcp(newconn); - - /* handle backlog counter */ - tcp_backlog_delayed(newpcb); - - if (sys_mbox_trypost(&conn->acceptmbox, newconn) != ERR_OK) { - /* When returning != ERR_OK, the pcb is aborted in tcp_process(), - so do nothing here! */ - /* remove all references to this netconn from the pcb */ - struct tcp_pcb *pcb = newconn->pcb.tcp; - tcp_arg(pcb, NULL); - tcp_recv(pcb, NULL); - tcp_sent(pcb, NULL); - tcp_poll(pcb, NULL, 0); - tcp_err(pcb, NULL); - /* remove reference from to the pcb from this netconn */ - newconn->pcb.tcp = NULL; - /* no need to drain since we know the recvmbox is empty. */ - sys_mbox_free(&newconn->recvmbox); - sys_mbox_set_invalid(&newconn->recvmbox); - netconn_free(newconn); - return ERR_MEM; - } else { - /* Register event with callback */ - API_EVENT(conn, NETCONN_EVT_RCVPLUS, 0); - } - - return ERR_OK; -} -#endif /* LWIP_TCP */ - -/** - * Create a new pcb of a specific type. - * Called from lwip_netconn_do_newconn(). - * - * @param msg the api_msg describing the connection type - */ -static void -pcb_new(struct api_msg *msg) -{ - enum lwip_ip_addr_type iptype = IPADDR_TYPE_V4; - - LWIP_ASSERT("pcb_new: pcb already allocated", msg->conn->pcb.tcp == NULL); - -#if LWIP_IPV6 && LWIP_IPV4 - /* IPv6: Dual-stack by default, unless netconn_set_ipv6only() is called */ - if (NETCONNTYPE_ISIPV6(netconn_type(msg->conn))) { - iptype = IPADDR_TYPE_ANY; - } -#endif - - /* Allocate a PCB for this connection */ - switch (NETCONNTYPE_GROUP(msg->conn->type)) { -#if LWIP_RAW - case NETCONN_RAW: - msg->conn->pcb.raw = raw_new_ip_type(iptype, msg->msg.n.proto); - if (msg->conn->pcb.raw != NULL) { -#if LWIP_IPV6 - /* ICMPv6 packets should always have checksum calculated by the stack as per RFC 3542 chapter 3.1 */ - if (NETCONNTYPE_ISIPV6(msg->conn->type) && msg->conn->pcb.raw->protocol == IP6_NEXTH_ICMP6) { - msg->conn->pcb.raw->chksum_reqd = 1; - msg->conn->pcb.raw->chksum_offset = 2; - } -#endif /* LWIP_IPV6 */ - raw_recv(msg->conn->pcb.raw, recv_raw, msg->conn); - } - break; -#endif /* LWIP_RAW */ -#if LWIP_UDP - case NETCONN_UDP: - msg->conn->pcb.udp = udp_new_ip_type(iptype); - if (msg->conn->pcb.udp != NULL) { -#if LWIP_UDPLITE - if (NETCONNTYPE_ISUDPLITE(msg->conn->type)) { - udp_setflags(msg->conn->pcb.udp, UDP_FLAGS_UDPLITE); - } -#endif /* LWIP_UDPLITE */ - if (NETCONNTYPE_ISUDPNOCHKSUM(msg->conn->type)) { - udp_setflags(msg->conn->pcb.udp, UDP_FLAGS_NOCHKSUM); - } - udp_recv(msg->conn->pcb.udp, recv_udp, msg->conn); - } - break; -#endif /* LWIP_UDP */ -#if LWIP_TCP - case NETCONN_TCP: - msg->conn->pcb.tcp = tcp_new_ip_type(iptype); - if (msg->conn->pcb.tcp != NULL) { - setup_tcp(msg->conn); - } - break; -#endif /* LWIP_TCP */ - default: - /* Unsupported netconn type, e.g. protocol disabled */ - msg->err = ERR_VAL; - return; - } - if (msg->conn->pcb.ip == NULL) { - msg->err = ERR_MEM; - } -} - -/** - * Create a new pcb of a specific type inside a netconn. - * Called from netconn_new_with_proto_and_callback. - * - * @param m the api_msg describing the connection type - */ -void -lwip_netconn_do_newconn(void *m) -{ - struct api_msg *msg = (struct api_msg *)m; - - msg->err = ERR_OK; - if (msg->conn->pcb.tcp == NULL) { - pcb_new(msg); - } - /* Else? This "new" connection already has a PCB allocated. */ - /* Is this an error condition? Should it be deleted? */ - /* We currently just are happy and return. */ - - TCPIP_APIMSG_ACK(msg); -} - -/** - * Create a new netconn (of a specific type) that has a callback function. - * The corresponding pcb is NOT created! - * - * @param t the type of 'connection' to create (@see enum netconn_type) - * @param callback a function to call on status changes (RX available, TX'ed) - * @return a newly allocated struct netconn or - * NULL on memory error - */ -struct netconn * -netconn_alloc(enum netconn_type t, netconn_callback callback) -{ - struct netconn *conn; - int size; - u8_t init_flags = 0; - - conn = (struct netconn *)memp_malloc(MEMP_NETCONN); - if (conn == NULL) { - return NULL; - } - - conn->pending_err = ERR_OK; - conn->type = t; - conn->pcb.tcp = NULL; - - /* If all sizes are the same, every compiler should optimize this switch to nothing */ - switch (NETCONNTYPE_GROUP(t)) { -#if LWIP_RAW - case NETCONN_RAW: - size = DEFAULT_RAW_RECVMBOX_SIZE; - break; -#endif /* LWIP_RAW */ -#if LWIP_UDP - case NETCONN_UDP: - size = DEFAULT_UDP_RECVMBOX_SIZE; -#if LWIP_NETBUF_RECVINFO - init_flags |= NETCONN_FLAG_PKTINFO; -#endif /* LWIP_NETBUF_RECVINFO */ - break; -#endif /* LWIP_UDP */ -#if LWIP_TCP - case NETCONN_TCP: - size = DEFAULT_TCP_RECVMBOX_SIZE; - break; -#endif /* LWIP_TCP */ - default: - LWIP_ASSERT("netconn_alloc: undefined netconn_type", 0); - goto free_and_return; - } - - if (sys_mbox_new(&conn->recvmbox, size) != ERR_OK) { - goto free_and_return; - } -#if !LWIP_NETCONN_SEM_PER_THREAD - if (sys_sem_new(&conn->op_completed, 0) != ERR_OK) { - sys_mbox_free(&conn->recvmbox); - goto free_and_return; - } -#endif - -#if LWIP_TCP - sys_mbox_set_invalid(&conn->acceptmbox); -#endif - conn->state = NETCONN_NONE; -#if LWIP_SOCKET - /* initialize socket to -1 since 0 is a valid socket */ - conn->socket = -1; -#endif /* LWIP_SOCKET */ - conn->callback = callback; -#if LWIP_TCP - conn->current_msg = NULL; -#endif /* LWIP_TCP */ -#if LWIP_SO_SNDTIMEO - conn->send_timeout = 0; -#endif /* LWIP_SO_SNDTIMEO */ -#if LWIP_SO_RCVTIMEO - conn->recv_timeout = 0; -#endif /* LWIP_SO_RCVTIMEO */ -#if LWIP_SO_RCVBUF - conn->recv_bufsize = RECV_BUFSIZE_DEFAULT; - conn->recv_avail = 0; -#endif /* LWIP_SO_RCVBUF */ -#if LWIP_SO_LINGER - conn->linger = -1; -#endif /* LWIP_SO_LINGER */ - conn->flags = init_flags; - return conn; -free_and_return: - memp_free(MEMP_NETCONN, conn); - return NULL; -} - -/** - * Delete a netconn and all its resources. - * The pcb is NOT freed (since we might not be in the right thread context do this). - * - * @param conn the netconn to free - */ -void -netconn_free(struct netconn *conn) -{ - LWIP_ASSERT("PCB must be deallocated outside this function", conn->pcb.tcp == NULL); - -#if LWIP_NETCONN_FULLDUPLEX - /* in fullduplex, netconn is drained here */ - netconn_drain(conn); -#endif /* LWIP_NETCONN_FULLDUPLEX */ - - LWIP_ASSERT("recvmbox must be deallocated before calling this function", - !sys_mbox_valid(&conn->recvmbox)); -#if LWIP_TCP - LWIP_ASSERT("acceptmbox must be deallocated before calling this function", - !sys_mbox_valid(&conn->acceptmbox)); -#endif /* LWIP_TCP */ - -#if !LWIP_NETCONN_SEM_PER_THREAD - sys_sem_free(&conn->op_completed); - sys_sem_set_invalid(&conn->op_completed); -#endif - - memp_free(MEMP_NETCONN, conn); -} - -/** - * Delete rcvmbox and acceptmbox of a netconn and free the left-over data in - * these mboxes - * - * @param conn the netconn to free - * @bytes_drained bytes drained from recvmbox - * @accepts_drained pending connections drained from acceptmbox - */ -static void -netconn_drain(struct netconn *conn) -{ - void *mem; - - /* This runs when mbox and netconn are marked as closed, - so we don't need to lock against rx packets */ -#if LWIP_NETCONN_FULLDUPLEX - LWIP_ASSERT("netconn marked closed", conn->flags & NETCONN_FLAG_MBOXINVALID); -#endif /* LWIP_NETCONN_FULLDUPLEX */ - - /* Delete and drain the recvmbox. */ - if (sys_mbox_valid(&conn->recvmbox)) { - while (sys_mbox_tryfetch(&conn->recvmbox, &mem) != SYS_MBOX_EMPTY) { -#if LWIP_NETCONN_FULLDUPLEX - if (!lwip_netconn_is_deallocated_msg(mem)) -#endif /* LWIP_NETCONN_FULLDUPLEX */ - { -#if LWIP_TCP - if (NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP) { - err_t err; - if (!lwip_netconn_is_err_msg(mem, &err)) { - pbuf_free((struct pbuf *)mem); - } - } else -#endif /* LWIP_TCP */ - { - netbuf_delete((struct netbuf *)mem); - } - } - } - sys_mbox_free(&conn->recvmbox); - sys_mbox_set_invalid(&conn->recvmbox); - } - - /* Delete and drain the acceptmbox. */ -#if LWIP_TCP - if (sys_mbox_valid(&conn->acceptmbox)) { - while (sys_mbox_tryfetch(&conn->acceptmbox, &mem) != SYS_MBOX_EMPTY) { -#if LWIP_NETCONN_FULLDUPLEX - if (!lwip_netconn_is_deallocated_msg(mem)) -#endif /* LWIP_NETCONN_FULLDUPLEX */ - { - err_t err; - if (!lwip_netconn_is_err_msg(mem, &err)) { - struct netconn *newconn = (struct netconn *)mem; - /* Only tcp pcbs have an acceptmbox, so no need to check conn->type */ - /* pcb might be set to NULL already by err_tcp() */ - /* drain recvmbox */ - netconn_drain(newconn); - if (newconn->pcb.tcp != NULL) { - tcp_abort(newconn->pcb.tcp); - newconn->pcb.tcp = NULL; - } - netconn_free(newconn); - } - } - } - sys_mbox_free(&conn->acceptmbox); - sys_mbox_set_invalid(&conn->acceptmbox); - } -#endif /* LWIP_TCP */ -} - -#if LWIP_NETCONN_FULLDUPLEX -static void -netconn_mark_mbox_invalid(struct netconn *conn) -{ - int i, num_waiting; - void *msg = LWIP_CONST_CAST(void *, &netconn_deleted); - - /* Prevent new calls/threads from reading from the mbox */ - conn->flags |= NETCONN_FLAG_MBOXINVALID; - - SYS_ARCH_LOCKED(num_waiting = conn->mbox_threads_waiting); - for (i = 0; i < num_waiting; i++) { - if (sys_mbox_valid_val(conn->recvmbox)) { - sys_mbox_trypost(&conn->recvmbox, msg); - } else { - sys_mbox_trypost(&conn->acceptmbox, msg); - } - } -} -#endif /* LWIP_NETCONN_FULLDUPLEX */ - -#if LWIP_TCP -/** - * Internal helper function to close a TCP netconn: since this sometimes - * doesn't work at the first attempt, this function is called from multiple - * places. - * - * @param conn the TCP netconn to close - */ -static err_t -lwip_netconn_do_close_internal(struct netconn *conn WRITE_DELAYED_PARAM) -{ - err_t err; - u8_t shut, shut_rx, shut_tx, shut_close; - u8_t close_finished = 0; - struct tcp_pcb *tpcb; -#if LWIP_SO_LINGER - u8_t linger_wait_required = 0; -#endif /* LWIP_SO_LINGER */ - - LWIP_ASSERT("invalid conn", (conn != NULL)); - LWIP_ASSERT("this is for tcp netconns only", (NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP)); - LWIP_ASSERT("conn must be in state NETCONN_CLOSE", (conn->state == NETCONN_CLOSE)); - LWIP_ASSERT("pcb already closed", (conn->pcb.tcp != NULL)); - LWIP_ASSERT("conn->current_msg != NULL", conn->current_msg != NULL); - - tpcb = conn->pcb.tcp; - shut = conn->current_msg->msg.sd.shut; - shut_rx = shut & NETCONN_SHUT_RD; - shut_tx = shut & NETCONN_SHUT_WR; - /* shutting down both ends is the same as closing - (also if RD or WR side was shut down before already) */ - if (shut == NETCONN_SHUT_RDWR) { - shut_close = 1; - } else if (shut_rx && - ((tpcb->state == FIN_WAIT_1) || - (tpcb->state == FIN_WAIT_2) || - (tpcb->state == CLOSING))) { - shut_close = 1; - } else if (shut_tx && ((tpcb->flags & TF_RXCLOSED) != 0)) { - shut_close = 1; - } else { - shut_close = 0; - } - - /* Set back some callback pointers */ - if (shut_close) { - tcp_arg(tpcb, NULL); - } - if (tpcb->state == LISTEN) { - tcp_accept(tpcb, NULL); - } else { - /* some callbacks have to be reset if tcp_close is not successful */ - if (shut_rx) { - tcp_recv(tpcb, NULL); - tcp_accept(tpcb, NULL); - } - if (shut_tx) { - tcp_sent(tpcb, NULL); - } - if (shut_close) { - tcp_poll(tpcb, NULL, 0); - tcp_err(tpcb, NULL); - } - } - /* Try to close the connection */ - if (shut_close) { -#if LWIP_SO_LINGER - /* check linger possibilites before calling tcp_close */ - err = ERR_OK; - /* linger enabled/required at all? (i.e. is there untransmitted data left?) */ - if ((conn->linger >= 0) && (conn->pcb.tcp->unsent || conn->pcb.tcp->unacked)) { - if ((conn->linger == 0)) { - /* data left but linger prevents waiting */ - tcp_abort(tpcb); - tpcb = NULL; - } else if (conn->linger > 0) { - /* data left and linger says we should wait */ - if (netconn_is_nonblocking(conn)) { - /* data left on a nonblocking netconn -> cannot linger */ - err = ERR_WOULDBLOCK; - } else if ((s32_t)(sys_now() - conn->current_msg->msg.sd.time_started) >= - (conn->linger * 1000)) { - /* data left but linger timeout has expired (this happens on further - calls to this function through poll_tcp */ - tcp_abort(tpcb); - tpcb = NULL; - } else { - /* data left -> need to wait for ACK after successful close */ - linger_wait_required = 1; - } - } - } - if ((err == ERR_OK) && (tpcb != NULL)) -#endif /* LWIP_SO_LINGER */ - { - err = tcp_close(tpcb); - } - } else { - err = tcp_shutdown(tpcb, shut_rx, shut_tx); - } - if (err == ERR_OK) { - close_finished = 1; -#if LWIP_SO_LINGER - if (linger_wait_required) { - /* wait for ACK of all unsent/unacked data by just getting called again */ - close_finished = 0; - err = ERR_INPROGRESS; - } -#endif /* LWIP_SO_LINGER */ - } else { - if (err == ERR_MEM) { - /* Closing failed because of memory shortage, try again later. Even for - nonblocking netconns, we have to wait since no standard socket application - is prepared for close failing because of resource shortage. - Check the timeout: this is kind of an lwip addition to the standard sockets: - we wait for some time when failing to allocate a segment for the FIN */ -#if LWIP_SO_SNDTIMEO || LWIP_SO_LINGER - s32_t close_timeout = LWIP_TCP_CLOSE_TIMEOUT_MS_DEFAULT; -#if LWIP_SO_SNDTIMEO - if (conn->send_timeout > 0) { - close_timeout = conn->send_timeout; - } -#endif /* LWIP_SO_SNDTIMEO */ -#if LWIP_SO_LINGER - if (conn->linger >= 0) { - /* use linger timeout (seconds) */ - close_timeout = conn->linger * 1000U; - } -#endif - if ((s32_t)(sys_now() - conn->current_msg->msg.sd.time_started) >= close_timeout) { -#else /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */ - if (conn->current_msg->msg.sd.polls_left == 0) { -#endif /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */ - close_finished = 1; - if (shut_close) { - /* in this case, we want to RST the connection */ - tcp_abort(tpcb); - err = ERR_OK; - } - } - } else { - /* Closing failed for a non-memory error: give up */ - close_finished = 1; - } - } - if (close_finished) { - /* Closing done (succeeded, non-memory error, nonblocking error or timeout) */ - sys_sem_t *op_completed_sem = LWIP_API_MSG_SEM(conn->current_msg); - conn->current_msg->err = err; - conn->current_msg = NULL; - conn->state = NETCONN_NONE; - if (err == ERR_OK) { - if (shut_close) { - /* Set back some callback pointers as conn is going away */ - conn->pcb.tcp = NULL; - /* Trigger select() in socket layer. Make sure everybody notices activity - on the connection, error first! */ - API_EVENT(conn, NETCONN_EVT_ERROR, 0); - } - if (shut_rx) { - API_EVENT(conn, NETCONN_EVT_RCVPLUS, 0); - } - if (shut_tx) { - API_EVENT(conn, NETCONN_EVT_SENDPLUS, 0); - } - } -#if LWIP_TCPIP_CORE_LOCKING - if (delayed) -#endif - { - /* wake up the application task */ - sys_sem_signal(op_completed_sem); - } - return ERR_OK; - } - if (!close_finished) { - /* Closing failed and we want to wait: restore some of the callbacks */ - /* Closing of listen pcb will never fail! */ - LWIP_ASSERT("Closing a listen pcb may not fail!", (tpcb->state != LISTEN)); - if (shut_tx) { - tcp_sent(tpcb, sent_tcp); - } - /* when waiting for close, set up poll interval to 500ms */ - tcp_poll(tpcb, poll_tcp, 1); - tcp_err(tpcb, err_tcp); - tcp_arg(tpcb, conn); - /* don't restore recv callback: we don't want to receive any more data */ - } - /* If closing didn't succeed, we get called again either - from poll_tcp or from sent_tcp */ - LWIP_ASSERT("err != ERR_OK", err != ERR_OK); - return err; -} -#endif /* LWIP_TCP */ - -/** - * Delete the pcb inside a netconn. - * Called from netconn_delete. - * - * @param m the api_msg pointing to the connection - */ -void -lwip_netconn_do_delconn(void *m) -{ - struct api_msg *msg = (struct api_msg *)m; - - enum netconn_state state = msg->conn->state; - LWIP_ASSERT("netconn state error", /* this only happens for TCP netconns */ - (state == NETCONN_NONE) || (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_TCP)); -#if LWIP_NETCONN_FULLDUPLEX - /* In full duplex mode, blocking write/connect is aborted with ERR_CLSD */ - if (state != NETCONN_NONE) { - if ((state == NETCONN_WRITE) || - ((state == NETCONN_CONNECT) && !IN_NONBLOCKING_CONNECT(msg->conn))) { - /* close requested, abort running write/connect */ - sys_sem_t *op_completed_sem; - LWIP_ASSERT("msg->conn->current_msg != NULL", msg->conn->current_msg != NULL); - op_completed_sem = LWIP_API_MSG_SEM(msg->conn->current_msg); - msg->conn->current_msg->err = ERR_CLSD; - msg->conn->current_msg = NULL; - msg->conn->state = NETCONN_NONE; - sys_sem_signal(op_completed_sem); - } - } -#else /* LWIP_NETCONN_FULLDUPLEX */ - if (((state != NETCONN_NONE) && - (state != NETCONN_LISTEN) && - (state != NETCONN_CONNECT)) || - ((state == NETCONN_CONNECT) && !IN_NONBLOCKING_CONNECT(msg->conn))) { - /* This means either a blocking write or blocking connect is running - (nonblocking write returns and sets state to NONE) */ - msg->err = ERR_INPROGRESS; - } else -#endif /* LWIP_NETCONN_FULLDUPLEX */ - { - LWIP_ASSERT("blocking connect in progress", - (state != NETCONN_CONNECT) || IN_NONBLOCKING_CONNECT(msg->conn)); - msg->err = ERR_OK; -#if LWIP_NETCONN_FULLDUPLEX - /* Mark mboxes invalid */ - netconn_mark_mbox_invalid(msg->conn); -#else /* LWIP_NETCONN_FULLDUPLEX */ - netconn_drain(msg->conn); -#endif /* LWIP_NETCONN_FULLDUPLEX */ - - if (msg->conn->pcb.tcp != NULL) { - - switch (NETCONNTYPE_GROUP(msg->conn->type)) { -#if LWIP_RAW - case NETCONN_RAW: - raw_remove(msg->conn->pcb.raw); - break; -#endif /* LWIP_RAW */ -#if LWIP_UDP - case NETCONN_UDP: - msg->conn->pcb.udp->recv_arg = NULL; - udp_remove(msg->conn->pcb.udp); - break; -#endif /* LWIP_UDP */ -#if LWIP_TCP - case NETCONN_TCP: - LWIP_ASSERT("already writing or closing", msg->conn->current_msg == NULL); - msg->conn->state = NETCONN_CLOSE; - msg->msg.sd.shut = NETCONN_SHUT_RDWR; - msg->conn->current_msg = msg; -#if LWIP_TCPIP_CORE_LOCKING - if (lwip_netconn_do_close_internal(msg->conn, 0) != ERR_OK) { - LWIP_ASSERT("state!", msg->conn->state == NETCONN_CLOSE); - UNLOCK_TCPIP_CORE(); - sys_arch_sem_wait(LWIP_API_MSG_SEM(msg), 0); - LOCK_TCPIP_CORE(); - LWIP_ASSERT("state!", msg->conn->state == NETCONN_NONE); - } -#else /* LWIP_TCPIP_CORE_LOCKING */ - lwip_netconn_do_close_internal(msg->conn); -#endif /* LWIP_TCPIP_CORE_LOCKING */ - /* API_EVENT is called inside lwip_netconn_do_close_internal, before releasing - the application thread, so we can return at this point! */ - return; -#endif /* LWIP_TCP */ - default: - break; - } - msg->conn->pcb.tcp = NULL; - } - /* tcp netconns don't come here! */ - - /* @todo: this lets select make the socket readable and writable, - which is wrong! errfd instead? */ - API_EVENT(msg->conn, NETCONN_EVT_RCVPLUS, 0); - API_EVENT(msg->conn, NETCONN_EVT_SENDPLUS, 0); - } - if (sys_sem_valid(LWIP_API_MSG_SEM(msg))) { - TCPIP_APIMSG_ACK(msg); - } -} - -/** - * Bind a pcb contained in a netconn - * Called from netconn_bind. - * - * @param m the api_msg pointing to the connection and containing - * the IP address and port to bind to - */ -void -lwip_netconn_do_bind(void *m) -{ - struct api_msg *msg = (struct api_msg *)m; - err_t err; - - if (msg->conn->pcb.tcp != NULL) { - switch (NETCONNTYPE_GROUP(msg->conn->type)) { -#if LWIP_RAW - case NETCONN_RAW: - err = raw_bind(msg->conn->pcb.raw, API_EXPR_REF(msg->msg.bc.ipaddr)); - break; -#endif /* LWIP_RAW */ -#if LWIP_UDP - case NETCONN_UDP: - err = udp_bind(msg->conn->pcb.udp, API_EXPR_REF(msg->msg.bc.ipaddr), msg->msg.bc.port); - break; -#endif /* LWIP_UDP */ -#if LWIP_TCP - case NETCONN_TCP: - err = tcp_bind(msg->conn->pcb.tcp, API_EXPR_REF(msg->msg.bc.ipaddr), msg->msg.bc.port); - break; -#endif /* LWIP_TCP */ - default: - err = ERR_VAL; - break; - } - } else { - err = ERR_VAL; - } - msg->err = err; - TCPIP_APIMSG_ACK(msg); -} -/** - * Bind a pcb contained in a netconn to an interface - * Called from netconn_bind_if. - * - * @param m the api_msg pointing to the connection and containing - * the IP address and port to bind to - */ -void -lwip_netconn_do_bind_if(void *m) -{ - struct netif *netif; - struct api_msg *msg = (struct api_msg *)m; - err_t err; - - netif = netif_get_by_index(msg->msg.bc.if_idx); - - if ((netif != NULL) && (msg->conn->pcb.tcp != NULL)) { - err = ERR_OK; - switch (NETCONNTYPE_GROUP(msg->conn->type)) { -#if LWIP_RAW - case NETCONN_RAW: - raw_bind_netif(msg->conn->pcb.raw, netif); - break; -#endif /* LWIP_RAW */ -#if LWIP_UDP - case NETCONN_UDP: - udp_bind_netif(msg->conn->pcb.udp, netif); - break; -#endif /* LWIP_UDP */ -#if LWIP_TCP - case NETCONN_TCP: - tcp_bind_netif(msg->conn->pcb.tcp, netif); - break; -#endif /* LWIP_TCP */ - default: - err = ERR_VAL; - break; - } - } else { - err = ERR_VAL; - } - msg->err = err; - TCPIP_APIMSG_ACK(msg); -} - -#if LWIP_TCP -/** - * TCP callback function if a connection (opened by tcp_connect/lwip_netconn_do_connect) has - * been established (or reset by the remote host). - * - * @see tcp.h (struct tcp_pcb.connected) for parameters and return values - */ -static err_t -lwip_netconn_do_connected(void *arg, struct tcp_pcb *pcb, err_t err) -{ - struct netconn *conn; - int was_blocking; - sys_sem_t *op_completed_sem = NULL; - - LWIP_UNUSED_ARG(pcb); - - conn = (struct netconn *)arg; - - if (conn == NULL) { - return ERR_VAL; - } - - LWIP_ASSERT("conn->state == NETCONN_CONNECT", conn->state == NETCONN_CONNECT); - LWIP_ASSERT("(conn->current_msg != NULL) || conn->in_non_blocking_connect", - (conn->current_msg != NULL) || IN_NONBLOCKING_CONNECT(conn)); - - if (conn->current_msg != NULL) { - conn->current_msg->err = err; - op_completed_sem = LWIP_API_MSG_SEM(conn->current_msg); - } - if ((NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP) && (err == ERR_OK)) { - setup_tcp(conn); - } - was_blocking = !IN_NONBLOCKING_CONNECT(conn); - SET_NONBLOCKING_CONNECT(conn, 0); - LWIP_ASSERT("blocking connect state error", - (was_blocking && op_completed_sem != NULL) || - (!was_blocking && op_completed_sem == NULL)); - conn->current_msg = NULL; - conn->state = NETCONN_NONE; - API_EVENT(conn, NETCONN_EVT_SENDPLUS, 0); - - if (was_blocking) { - sys_sem_signal(op_completed_sem); - } - return ERR_OK; -} -#endif /* LWIP_TCP */ - -/** - * Connect a pcb contained inside a netconn - * Called from netconn_connect. - * - * @param m the api_msg pointing to the connection and containing - * the IP address and port to connect to - */ -void -lwip_netconn_do_connect(void *m) -{ - struct api_msg *msg = (struct api_msg *)m; - err_t err; - - if (msg->conn->pcb.tcp == NULL) { - /* This may happen when calling netconn_connect() a second time */ - err = ERR_CLSD; - } else { - switch (NETCONNTYPE_GROUP(msg->conn->type)) { -#if LWIP_RAW - case NETCONN_RAW: - err = raw_connect(msg->conn->pcb.raw, API_EXPR_REF(msg->msg.bc.ipaddr)); - break; -#endif /* LWIP_RAW */ -#if LWIP_UDP - case NETCONN_UDP: - err = udp_connect(msg->conn->pcb.udp, API_EXPR_REF(msg->msg.bc.ipaddr), msg->msg.bc.port); - break; -#endif /* LWIP_UDP */ -#if LWIP_TCP - case NETCONN_TCP: - /* Prevent connect while doing any other action. */ - if (msg->conn->state == NETCONN_CONNECT) { - err = ERR_ALREADY; - } else if (msg->conn->state != NETCONN_NONE) { - err = ERR_ISCONN; - } else { - setup_tcp(msg->conn); - err = tcp_connect(msg->conn->pcb.tcp, API_EXPR_REF(msg->msg.bc.ipaddr), - msg->msg.bc.port, lwip_netconn_do_connected); - if (err == ERR_OK) { - u8_t non_blocking = netconn_is_nonblocking(msg->conn); - msg->conn->state = NETCONN_CONNECT; - SET_NONBLOCKING_CONNECT(msg->conn, non_blocking); - if (non_blocking) { - err = ERR_INPROGRESS; - } else { - msg->conn->current_msg = msg; - /* sys_sem_signal() is called from lwip_netconn_do_connected (or err_tcp()), - when the connection is established! */ -#if LWIP_TCPIP_CORE_LOCKING - LWIP_ASSERT("state!", msg->conn->state == NETCONN_CONNECT); - UNLOCK_TCPIP_CORE(); - sys_arch_sem_wait(LWIP_API_MSG_SEM(msg), 0); - LOCK_TCPIP_CORE(); - LWIP_ASSERT("state!", msg->conn->state != NETCONN_CONNECT); -#endif /* LWIP_TCPIP_CORE_LOCKING */ - return; - } - } - } - break; -#endif /* LWIP_TCP */ - default: - LWIP_ERROR("Invalid netconn type", 0, do { - err = ERR_VAL; - } while (0)); - break; - } - } - msg->err = err; - /* For all other protocols, netconn_connect() calls netconn_apimsg(), - so use TCPIP_APIMSG_ACK() here. */ - TCPIP_APIMSG_ACK(msg); -} - -/** - * Disconnect a pcb contained inside a netconn - * Only used for UDP netconns. - * Called from netconn_disconnect. - * - * @param m the api_msg pointing to the connection to disconnect - */ -void -lwip_netconn_do_disconnect(void *m) -{ - struct api_msg *msg = (struct api_msg *)m; - -#if LWIP_UDP - if (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_UDP) { - udp_disconnect(msg->conn->pcb.udp); - msg->err = ERR_OK; - } else -#endif /* LWIP_UDP */ - { - msg->err = ERR_VAL; - } - TCPIP_APIMSG_ACK(msg); -} - -#if LWIP_TCP -/** - * Set a TCP pcb contained in a netconn into listen mode - * Called from netconn_listen. - * - * @param m the api_msg pointing to the connection - */ -void -lwip_netconn_do_listen(void *m) -{ - struct api_msg *msg = (struct api_msg *)m; - err_t err; - - if (msg->conn->pcb.tcp != NULL) { - if (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_TCP) { - if (msg->conn->state == NETCONN_NONE) { - struct tcp_pcb *lpcb; - if (msg->conn->pcb.tcp->state != CLOSED) { - /* connection is not closed, cannot listen */ - err = ERR_VAL; - } else { - u8_t backlog; -#if TCP_LISTEN_BACKLOG - backlog = msg->msg.lb.backlog; -#else /* TCP_LISTEN_BACKLOG */ - backlog = TCP_DEFAULT_LISTEN_BACKLOG; -#endif /* TCP_LISTEN_BACKLOG */ -#if LWIP_IPV4 && LWIP_IPV6 - /* "Socket API like" dual-stack support: If IP to listen to is IP6_ADDR_ANY, - * and NETCONN_FLAG_IPV6_V6ONLY is NOT set, use IP_ANY_TYPE to listen - */ - if (ip_addr_cmp(&msg->conn->pcb.ip->local_ip, IP6_ADDR_ANY) && - (netconn_get_ipv6only(msg->conn) == 0)) { - /* change PCB type to IPADDR_TYPE_ANY */ - IP_SET_TYPE_VAL(msg->conn->pcb.tcp->local_ip, IPADDR_TYPE_ANY); - IP_SET_TYPE_VAL(msg->conn->pcb.tcp->remote_ip, IPADDR_TYPE_ANY); - } -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - - lpcb = tcp_listen_with_backlog_and_err(msg->conn->pcb.tcp, backlog, &err); - - if (lpcb == NULL) { - /* in this case, the old pcb is still allocated */ - } else { - /* delete the recvmbox and allocate the acceptmbox */ - if (sys_mbox_valid(&msg->conn->recvmbox)) { - /** @todo: should we drain the recvmbox here? */ - sys_mbox_free(&msg->conn->recvmbox); - sys_mbox_set_invalid(&msg->conn->recvmbox); - } - err = ERR_OK; - if (!sys_mbox_valid(&msg->conn->acceptmbox)) { - err = sys_mbox_new(&msg->conn->acceptmbox, DEFAULT_ACCEPTMBOX_SIZE); - } - if (err == ERR_OK) { - msg->conn->state = NETCONN_LISTEN; - msg->conn->pcb.tcp = lpcb; - tcp_arg(msg->conn->pcb.tcp, msg->conn); - tcp_accept(msg->conn->pcb.tcp, accept_function); - } else { - /* since the old pcb is already deallocated, free lpcb now */ - tcp_close(lpcb); - msg->conn->pcb.tcp = NULL; - } - } - } - } else if (msg->conn->state == NETCONN_LISTEN) { - /* already listening, allow updating of the backlog */ - err = ERR_OK; - tcp_backlog_set(msg->conn->pcb.tcp, msg->msg.lb.backlog); - } else { - err = ERR_CONN; - } - } else { - err = ERR_ARG; - } - } else { - err = ERR_CONN; - } - msg->err = err; - TCPIP_APIMSG_ACK(msg); -} -#endif /* LWIP_TCP */ - -/** - * Send some data on a RAW or UDP pcb contained in a netconn - * Called from netconn_send - * - * @param m the api_msg pointing to the connection - */ -void -lwip_netconn_do_send(void *m) -{ - struct api_msg *msg = (struct api_msg *)m; - - err_t err = netconn_err(msg->conn); - if (err == ERR_OK) { - if (msg->conn->pcb.tcp != NULL) { - switch (NETCONNTYPE_GROUP(msg->conn->type)) { -#if LWIP_RAW - case NETCONN_RAW: - if (ip_addr_isany(&msg->msg.b->addr) || IP_IS_ANY_TYPE_VAL(msg->msg.b->addr)) { - err = raw_send(msg->conn->pcb.raw, msg->msg.b->p); - } else { - err = raw_sendto(msg->conn->pcb.raw, msg->msg.b->p, &msg->msg.b->addr); - } - break; -#endif -#if LWIP_UDP - case NETCONN_UDP: -#if LWIP_CHECKSUM_ON_COPY - if (ip_addr_isany(&msg->msg.b->addr) || IP_IS_ANY_TYPE_VAL(msg->msg.b->addr)) { - err = udp_send_chksum(msg->conn->pcb.udp, msg->msg.b->p, - msg->msg.b->flags & NETBUF_FLAG_CHKSUM, msg->msg.b->toport_chksum); - } else { - err = udp_sendto_chksum(msg->conn->pcb.udp, msg->msg.b->p, - &msg->msg.b->addr, msg->msg.b->port, - msg->msg.b->flags & NETBUF_FLAG_CHKSUM, msg->msg.b->toport_chksum); - } -#else /* LWIP_CHECKSUM_ON_COPY */ - if (ip_addr_isany_val(msg->msg.b->addr) || IP_IS_ANY_TYPE_VAL(msg->msg.b->addr)) { - err = udp_send(msg->conn->pcb.udp, msg->msg.b->p); - } else { - err = udp_sendto(msg->conn->pcb.udp, msg->msg.b->p, &msg->msg.b->addr, msg->msg.b->port); - } -#endif /* LWIP_CHECKSUM_ON_COPY */ - break; -#endif /* LWIP_UDP */ - default: - err = ERR_CONN; - break; - } - } else { - err = ERR_CONN; - } - } - msg->err = err; - TCPIP_APIMSG_ACK(msg); -} - -#if LWIP_TCP -/** - * Indicate data has been received from a TCP pcb contained in a netconn - * Called from netconn_recv - * - * @param m the api_msg pointing to the connection - */ -void -lwip_netconn_do_recv(void *m) -{ - struct api_msg *msg = (struct api_msg *)m; - - msg->err = ERR_OK; - if (msg->conn->pcb.tcp != NULL) { - if (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_TCP) { - size_t remaining = msg->msg.r.len; - do { - u16_t recved = (u16_t)((remaining > 0xffff) ? 0xffff : remaining); - tcp_recved(msg->conn->pcb.tcp, recved); - remaining -= recved; - } while (remaining != 0); - } - } - TCPIP_APIMSG_ACK(msg); -} - -#if TCP_LISTEN_BACKLOG -/** Indicate that a TCP pcb has been accepted - * Called from netconn_accept - * - * @param m the api_msg pointing to the connection - */ -void -lwip_netconn_do_accepted(void *m) -{ - struct api_msg *msg = (struct api_msg *)m; - - msg->err = ERR_OK; - if (msg->conn->pcb.tcp != NULL) { - if (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_TCP) { - tcp_backlog_accepted(msg->conn->pcb.tcp); - } - } - TCPIP_APIMSG_ACK(msg); -} -#endif /* TCP_LISTEN_BACKLOG */ - -/** - * See if more data needs to be written from a previous call to netconn_write. - * Called initially from lwip_netconn_do_write. If the first call can't send all data - * (because of low memory or empty send-buffer), this function is called again - * from sent_tcp() or poll_tcp() to send more data. If all data is sent, the - * blocking application thread (waiting in netconn_write) is released. - * - * @param conn netconn (that is currently in state NETCONN_WRITE) to process - * @return ERR_OK - * ERR_MEM if LWIP_TCPIP_CORE_LOCKING=1 and sending hasn't yet finished - */ -static err_t -lwip_netconn_do_writemore(struct netconn *conn WRITE_DELAYED_PARAM) -{ - err_t err; - const void *dataptr; - u16_t len, available; - u8_t write_finished = 0; - size_t diff; - u8_t dontblock; - u8_t apiflags; - u8_t write_more; - - LWIP_ASSERT("conn != NULL", conn != NULL); - LWIP_ASSERT("conn->state == NETCONN_WRITE", (conn->state == NETCONN_WRITE)); - LWIP_ASSERT("conn->current_msg != NULL", conn->current_msg != NULL); - LWIP_ASSERT("conn->pcb.tcp != NULL", conn->pcb.tcp != NULL); - LWIP_ASSERT("conn->current_msg->msg.w.offset < conn->current_msg->msg.w.len", - conn->current_msg->msg.w.offset < conn->current_msg->msg.w.len); - LWIP_ASSERT("conn->current_msg->msg.w.vector_cnt > 0", conn->current_msg->msg.w.vector_cnt > 0); - - apiflags = conn->current_msg->msg.w.apiflags; - dontblock = netconn_is_nonblocking(conn) || (apiflags & NETCONN_DONTBLOCK); - -#if LWIP_SO_SNDTIMEO - if ((conn->send_timeout != 0) && - ((s32_t)(sys_now() - conn->current_msg->msg.w.time_started) >= conn->send_timeout)) { - write_finished = 1; - if (conn->current_msg->msg.w.offset == 0) { - /* nothing has been written */ - err = ERR_WOULDBLOCK; - } else { - /* partial write */ - err = ERR_OK; - } - } else -#endif /* LWIP_SO_SNDTIMEO */ - { - do { - dataptr = (const u8_t *)conn->current_msg->msg.w.vector->ptr + conn->current_msg->msg.w.vector_off; - diff = conn->current_msg->msg.w.vector->len - conn->current_msg->msg.w.vector_off; - if (diff > 0xffffUL) { /* max_u16_t */ - len = 0xffff; - apiflags |= TCP_WRITE_FLAG_MORE; - } else { - len = (u16_t)diff; - } - available = tcp_sndbuf(conn->pcb.tcp); - if (available < len) { - /* don't try to write more than sendbuf */ - len = available; - if (dontblock) { - if (!len) { - /* set error according to partial write or not */ - err = (conn->current_msg->msg.w.offset == 0) ? ERR_WOULDBLOCK : ERR_OK; - goto err_mem; - } - } else { - apiflags |= TCP_WRITE_FLAG_MORE; - } - } - LWIP_ASSERT("lwip_netconn_do_writemore: invalid length!", - ((conn->current_msg->msg.w.vector_off + len) <= conn->current_msg->msg.w.vector->len)); - /* we should loop around for more sending in the following cases: - 1) We couldn't finish the current vector because of 16-bit size limitations. - tcp_write() and tcp_sndbuf() both are limited to 16-bit sizes - 2) We are sending the remainder of the current vector and have more */ - if ((len == 0xffff && diff > 0xffffUL) || - (len == (u16_t)diff && conn->current_msg->msg.w.vector_cnt > 1)) { - write_more = 1; - apiflags |= TCP_WRITE_FLAG_MORE; - } else { - write_more = 0; - } - err = tcp_write(conn->pcb.tcp, dataptr, len, apiflags); - if (err == ERR_OK) { - conn->current_msg->msg.w.offset += len; - conn->current_msg->msg.w.vector_off += len; - /* check if current vector is finished */ - if (conn->current_msg->msg.w.vector_off == conn->current_msg->msg.w.vector->len) { - conn->current_msg->msg.w.vector_cnt--; - /* if we have additional vectors, move on to them */ - if (conn->current_msg->msg.w.vector_cnt > 0) { - conn->current_msg->msg.w.vector++; - conn->current_msg->msg.w.vector_off = 0; - } - } - } - } while (write_more && err == ERR_OK); - /* if OK or memory error, check available space */ - if ((err == ERR_OK) || (err == ERR_MEM)) { -err_mem: - if (dontblock && (conn->current_msg->msg.w.offset < conn->current_msg->msg.w.len)) { - /* non-blocking write did not write everything: mark the pcb non-writable - and let poll_tcp check writable space to mark the pcb writable again */ - API_EVENT(conn, NETCONN_EVT_SENDMINUS, 0); - conn->flags |= NETCONN_FLAG_CHECK_WRITESPACE; - } else if ((tcp_sndbuf(conn->pcb.tcp) <= TCP_SNDLOWAT) || - (tcp_sndqueuelen(conn->pcb.tcp) >= TCP_SNDQUEUELOWAT)) { - /* The queued byte- or pbuf-count exceeds the configured low-water limit, - let select mark this pcb as non-writable. */ - API_EVENT(conn, NETCONN_EVT_SENDMINUS, 0); - } - } - - if (err == ERR_OK) { - err_t out_err; - if ((conn->current_msg->msg.w.offset == conn->current_msg->msg.w.len) || dontblock) { - /* return sent length (caller reads length from msg.w.offset) */ - write_finished = 1; - } - out_err = tcp_output(conn->pcb.tcp); - if (out_err == ERR_RTE) { - /* If tcp_output fails because no route is found, - don't try writing any more but return the error - to the application thread. */ - err = out_err; - write_finished = 1; - } - } else if (err == ERR_MEM) { - /* If ERR_MEM, we wait for sent_tcp or poll_tcp to be called. - For blocking sockets, we do NOT return to the application - thread, since ERR_MEM is only a temporary error! Non-blocking - will remain non-writable until sent_tcp/poll_tcp is called */ - - /* tcp_write returned ERR_MEM, try tcp_output anyway */ - err_t out_err = tcp_output(conn->pcb.tcp); - if (out_err == ERR_RTE) { - /* If tcp_output fails because no route is found, - don't try writing any more but return the error - to the application thread. */ - err = out_err; - write_finished = 1; - } else if (dontblock) { - /* non-blocking write is done on ERR_MEM, set error according - to partial write or not */ - err = (conn->current_msg->msg.w.offset == 0) ? ERR_WOULDBLOCK : ERR_OK; - write_finished = 1; - } - } else { - /* On errors != ERR_MEM, we don't try writing any more but return - the error to the application thread. */ - write_finished = 1; - } - } - if (write_finished) { - /* everything was written: set back connection state - and back to application task */ - sys_sem_t *op_completed_sem = LWIP_API_MSG_SEM(conn->current_msg); - conn->current_msg->err = err; - conn->current_msg = NULL; - conn->state = NETCONN_NONE; -#if LWIP_TCPIP_CORE_LOCKING - if (delayed) -#endif - { - sys_sem_signal(op_completed_sem); - } - } -#if LWIP_TCPIP_CORE_LOCKING - else { - return ERR_MEM; - } -#endif - return ERR_OK; -} -#endif /* LWIP_TCP */ - -/** - * Send some data on a TCP pcb contained in a netconn - * Called from netconn_write - * - * @param m the api_msg pointing to the connection - */ -void -lwip_netconn_do_write(void *m) -{ - struct api_msg *msg = (struct api_msg *)m; - - err_t err = netconn_err(msg->conn); - if (err == ERR_OK) { - if (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_TCP) { -#if LWIP_TCP - if (msg->conn->state != NETCONN_NONE) { - /* netconn is connecting, closing or in blocking write */ - err = ERR_INPROGRESS; - } else if (msg->conn->pcb.tcp != NULL) { - msg->conn->state = NETCONN_WRITE; - /* set all the variables used by lwip_netconn_do_writemore */ - LWIP_ASSERT("already writing or closing", msg->conn->current_msg == NULL); - LWIP_ASSERT("msg->msg.w.len != 0", msg->msg.w.len != 0); - msg->conn->current_msg = msg; -#if LWIP_TCPIP_CORE_LOCKING - if (lwip_netconn_do_writemore(msg->conn, 0) != ERR_OK) { - LWIP_ASSERT("state!", msg->conn->state == NETCONN_WRITE); - UNLOCK_TCPIP_CORE(); - sys_arch_sem_wait(LWIP_API_MSG_SEM(msg), 0); - LOCK_TCPIP_CORE(); - LWIP_ASSERT("state!", msg->conn->state != NETCONN_WRITE); - } -#else /* LWIP_TCPIP_CORE_LOCKING */ - lwip_netconn_do_writemore(msg->conn); -#endif /* LWIP_TCPIP_CORE_LOCKING */ - /* for both cases: if lwip_netconn_do_writemore was called, don't ACK the APIMSG - since lwip_netconn_do_writemore ACKs it! */ - return; - } else { - err = ERR_CONN; - } -#else /* LWIP_TCP */ - err = ERR_VAL; -#endif /* LWIP_TCP */ -#if (LWIP_UDP || LWIP_RAW) - } else { - err = ERR_VAL; -#endif /* (LWIP_UDP || LWIP_RAW) */ - } - } - msg->err = err; - TCPIP_APIMSG_ACK(msg); -} - -/** - * Return a connection's local or remote address - * Called from netconn_getaddr - * - * @param m the api_msg pointing to the connection - */ -void -lwip_netconn_do_getaddr(void *m) -{ - struct api_msg *msg = (struct api_msg *)m; - - if (msg->conn->pcb.ip != NULL) { - if (msg->msg.ad.local) { - ip_addr_copy(API_EXPR_DEREF(msg->msg.ad.ipaddr), - msg->conn->pcb.ip->local_ip); - } else { - ip_addr_copy(API_EXPR_DEREF(msg->msg.ad.ipaddr), - msg->conn->pcb.ip->remote_ip); - } - - msg->err = ERR_OK; - switch (NETCONNTYPE_GROUP(msg->conn->type)) { -#if LWIP_RAW - case NETCONN_RAW: - if (msg->msg.ad.local) { - API_EXPR_DEREF(msg->msg.ad.port) = msg->conn->pcb.raw->protocol; - } else { - /* return an error as connecting is only a helper for upper layers */ - msg->err = ERR_CONN; - } - break; -#endif /* LWIP_RAW */ -#if LWIP_UDP - case NETCONN_UDP: - if (msg->msg.ad.local) { - API_EXPR_DEREF(msg->msg.ad.port) = msg->conn->pcb.udp->local_port; - } else { - if ((msg->conn->pcb.udp->flags & UDP_FLAGS_CONNECTED) == 0) { - msg->err = ERR_CONN; - } else { - API_EXPR_DEREF(msg->msg.ad.port) = msg->conn->pcb.udp->remote_port; - } - } - break; -#endif /* LWIP_UDP */ -#if LWIP_TCP - case NETCONN_TCP: - if ((msg->msg.ad.local == 0) && - ((msg->conn->pcb.tcp->state == CLOSED) || (msg->conn->pcb.tcp->state == LISTEN))) { - /* pcb is not connected and remote name is requested */ - msg->err = ERR_CONN; - } else { - API_EXPR_DEREF(msg->msg.ad.port) = (msg->msg.ad.local ? msg->conn->pcb.tcp->local_port : msg->conn->pcb.tcp->remote_port); - } - break; -#endif /* LWIP_TCP */ - default: - LWIP_ASSERT("invalid netconn_type", 0); - break; - } - } else { - msg->err = ERR_CONN; - } - TCPIP_APIMSG_ACK(msg); -} - -/** - * Close or half-shutdown a TCP pcb contained in a netconn - * Called from netconn_close - * In contrast to closing sockets, the netconn is not deallocated. - * - * @param m the api_msg pointing to the connection - */ -void -lwip_netconn_do_close(void *m) -{ - struct api_msg *msg = (struct api_msg *)m; - -#if LWIP_TCP - enum netconn_state state = msg->conn->state; - /* First check if this is a TCP netconn and if it is in a correct state - (LISTEN doesn't support half shutdown) */ - if ((msg->conn->pcb.tcp != NULL) && - (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_TCP) && - ((msg->msg.sd.shut == NETCONN_SHUT_RDWR) || (state != NETCONN_LISTEN))) { - /* Check if we are in a connected state */ - if (state == NETCONN_CONNECT) { - /* TCP connect in progress: cannot shutdown */ - msg->err = ERR_CONN; - } else if (state == NETCONN_WRITE) { -#if LWIP_NETCONN_FULLDUPLEX - if (msg->msg.sd.shut & NETCONN_SHUT_WR) { - /* close requested, abort running write */ - sys_sem_t *write_completed_sem; - LWIP_ASSERT("msg->conn->current_msg != NULL", msg->conn->current_msg != NULL); - write_completed_sem = LWIP_API_MSG_SEM(msg->conn->current_msg); - msg->conn->current_msg->err = ERR_CLSD; - msg->conn->current_msg = NULL; - msg->conn->state = NETCONN_NONE; - state = NETCONN_NONE; - sys_sem_signal(write_completed_sem); - } else { - LWIP_ASSERT("msg->msg.sd.shut == NETCONN_SHUT_RD", msg->msg.sd.shut == NETCONN_SHUT_RD); - /* In this case, let the write continue and do not interfere with - conn->current_msg or conn->state! */ - msg->err = tcp_shutdown(msg->conn->pcb.tcp, 1, 0); - } - } - if (state == NETCONN_NONE) { -#else /* LWIP_NETCONN_FULLDUPLEX */ - msg->err = ERR_INPROGRESS; - } else { -#endif /* LWIP_NETCONN_FULLDUPLEX */ - if (msg->msg.sd.shut & NETCONN_SHUT_RD) { -#if LWIP_NETCONN_FULLDUPLEX - /* Mark mboxes invalid */ - netconn_mark_mbox_invalid(msg->conn); -#else /* LWIP_NETCONN_FULLDUPLEX */ - netconn_drain(msg->conn); -#endif /* LWIP_NETCONN_FULLDUPLEX */ - } - LWIP_ASSERT("already writing or closing", msg->conn->current_msg == NULL); - msg->conn->state = NETCONN_CLOSE; - msg->conn->current_msg = msg; -#if LWIP_TCPIP_CORE_LOCKING - if (lwip_netconn_do_close_internal(msg->conn, 0) != ERR_OK) { - LWIP_ASSERT("state!", msg->conn->state == NETCONN_CLOSE); - UNLOCK_TCPIP_CORE(); - sys_arch_sem_wait(LWIP_API_MSG_SEM(msg), 0); - LOCK_TCPIP_CORE(); - LWIP_ASSERT("state!", msg->conn->state == NETCONN_NONE); - } -#else /* LWIP_TCPIP_CORE_LOCKING */ - lwip_netconn_do_close_internal(msg->conn); -#endif /* LWIP_TCPIP_CORE_LOCKING */ - /* for tcp netconns, lwip_netconn_do_close_internal ACKs the message */ - return; - } - } else -#endif /* LWIP_TCP */ - { - msg->err = ERR_CONN; - } - TCPIP_APIMSG_ACK(msg); -} - -#if LWIP_IGMP || (LWIP_IPV6 && LWIP_IPV6_MLD) -/** - * Join multicast groups for UDP netconns. - * Called from netconn_join_leave_group - * - * @param m the api_msg pointing to the connection - */ -void -lwip_netconn_do_join_leave_group(void *m) -{ - struct api_msg *msg = (struct api_msg *)m; - - msg->err = ERR_CONN; - if (msg->conn->pcb.tcp != NULL) { - if (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_UDP) { -#if LWIP_UDP -#if LWIP_IPV6 && LWIP_IPV6_MLD - if (NETCONNTYPE_ISIPV6(msg->conn->type)) { - if (msg->msg.jl.join_or_leave == NETCONN_JOIN) { - msg->err = mld6_joingroup(ip_2_ip6(API_EXPR_REF(msg->msg.jl.netif_addr)), - ip_2_ip6(API_EXPR_REF(msg->msg.jl.multiaddr))); - } else { - msg->err = mld6_leavegroup(ip_2_ip6(API_EXPR_REF(msg->msg.jl.netif_addr)), - ip_2_ip6(API_EXPR_REF(msg->msg.jl.multiaddr))); - } - } else -#endif /* LWIP_IPV6 && LWIP_IPV6_MLD */ - { -#if LWIP_IGMP - if (msg->msg.jl.join_or_leave == NETCONN_JOIN) { - msg->err = igmp_joingroup(ip_2_ip4(API_EXPR_REF(msg->msg.jl.netif_addr)), - ip_2_ip4(API_EXPR_REF(msg->msg.jl.multiaddr))); - } else { - msg->err = igmp_leavegroup(ip_2_ip4(API_EXPR_REF(msg->msg.jl.netif_addr)), - ip_2_ip4(API_EXPR_REF(msg->msg.jl.multiaddr))); - } -#endif /* LWIP_IGMP */ - } -#endif /* LWIP_UDP */ -#if (LWIP_TCP || LWIP_RAW) - } else { - msg->err = ERR_VAL; -#endif /* (LWIP_TCP || LWIP_RAW) */ - } - } - TCPIP_APIMSG_ACK(msg); -} -/** - * Join multicast groups for UDP netconns. - * Called from netconn_join_leave_group_netif - * - * @param m the api_msg pointing to the connection - */ -void -lwip_netconn_do_join_leave_group_netif(void *m) -{ - struct api_msg *msg = (struct api_msg *)m; - struct netif *netif; - - netif = netif_get_by_index(msg->msg.jl.if_idx); - if (netif == NULL) { - msg->err = ERR_IF; - goto done; - } - - msg->err = ERR_CONN; - if (msg->conn->pcb.tcp != NULL) { - if (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_UDP) { -#if LWIP_UDP -#if LWIP_IPV6 && LWIP_IPV6_MLD - if (NETCONNTYPE_ISIPV6(msg->conn->type)) { - if (msg->msg.jl.join_or_leave == NETCONN_JOIN) { - msg->err = mld6_joingroup_netif(netif, - ip_2_ip6(API_EXPR_REF(msg->msg.jl.multiaddr))); - } else { - msg->err = mld6_leavegroup_netif(netif, - ip_2_ip6(API_EXPR_REF(msg->msg.jl.multiaddr))); - } - } else -#endif /* LWIP_IPV6 && LWIP_IPV6_MLD */ - { -#if LWIP_IGMP - if (msg->msg.jl.join_or_leave == NETCONN_JOIN) { - msg->err = igmp_joingroup_netif(netif, - ip_2_ip4(API_EXPR_REF(msg->msg.jl.multiaddr))); - } else { - msg->err = igmp_leavegroup_netif(netif, - ip_2_ip4(API_EXPR_REF(msg->msg.jl.multiaddr))); - } -#endif /* LWIP_IGMP */ - } -#endif /* LWIP_UDP */ -#if (LWIP_TCP || LWIP_RAW) - } else { - msg->err = ERR_VAL; -#endif /* (LWIP_TCP || LWIP_RAW) */ - } - } - -done: - TCPIP_APIMSG_ACK(msg); -} -#endif /* LWIP_IGMP || (LWIP_IPV6 && LWIP_IPV6_MLD) */ - -#if LWIP_DNS -/** - * Callback function that is called when DNS name is resolved - * (or on timeout). A waiting application thread is waked up by - * signaling the semaphore. - */ -static void -lwip_netconn_do_dns_found(const char *name, const ip_addr_t *ipaddr, void *arg) -{ - struct dns_api_msg *msg = (struct dns_api_msg *)arg; - - /* we trust the internal implementation to be correct :-) */ - LWIP_UNUSED_ARG(name); - - if (ipaddr == NULL) { - /* timeout or memory error */ - API_EXPR_DEREF(msg->err) = ERR_VAL; - } else { - /* address was resolved */ - API_EXPR_DEREF(msg->err) = ERR_OK; - API_EXPR_DEREF(msg->addr) = *ipaddr; - } - /* wake up the application task waiting in netconn_gethostbyname */ - sys_sem_signal(API_EXPR_REF_SEM(msg->sem)); -} - -/** - * Execute a DNS query - * Called from netconn_gethostbyname - * - * @param arg the dns_api_msg pointing to the query - */ -void -lwip_netconn_do_gethostbyname(void *arg) -{ - struct dns_api_msg *msg = (struct dns_api_msg *)arg; - u8_t addrtype = -#if LWIP_IPV4 && LWIP_IPV6 - msg->dns_addrtype; -#else - LWIP_DNS_ADDRTYPE_DEFAULT; -#endif - - API_EXPR_DEREF(msg->err) = dns_gethostbyname_addrtype(msg->name, - API_EXPR_REF(msg->addr), lwip_netconn_do_dns_found, msg, addrtype); -#if LWIP_TCPIP_CORE_LOCKING - /* For core locking, only block if we need to wait for answer/timeout */ - if (API_EXPR_DEREF(msg->err) == ERR_INPROGRESS) { - UNLOCK_TCPIP_CORE(); - sys_sem_wait(API_EXPR_REF_SEM(msg->sem)); - LOCK_TCPIP_CORE(); - LWIP_ASSERT("do_gethostbyname still in progress!!", API_EXPR_DEREF(msg->err) != ERR_INPROGRESS); - } -#else /* LWIP_TCPIP_CORE_LOCKING */ - if (API_EXPR_DEREF(msg->err) != ERR_INPROGRESS) { - /* on error or immediate success, wake up the application - * task waiting in netconn_gethostbyname */ - sys_sem_signal(API_EXPR_REF_SEM(msg->sem)); - } -#endif /* LWIP_TCPIP_CORE_LOCKING */ -} -#endif /* LWIP_DNS */ - -#endif /* LWIP_NETCONN */ diff --git a/Middlewares/Third_Party/LwIP/src/api/err.c b/Middlewares/Third_Party/LwIP/src/api/err.c deleted file mode 100644 index dd2b62d..0000000 --- a/Middlewares/Third_Party/LwIP/src/api/err.c +++ /dev/null @@ -1,115 +0,0 @@ -/** - * @file - * Error Management module - * - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -#include "lwip/err.h" -#include "lwip/def.h" -#include "lwip/sys.h" - -#include "lwip/errno.h" - -#if !NO_SYS -/** Table to quickly map an lwIP error (err_t) to a socket error - * by using -err as an index */ -static const int err_to_errno_table[] = { - 0, /* ERR_OK 0 No error, everything OK. */ - ENOMEM, /* ERR_MEM -1 Out of memory error. */ - ENOBUFS, /* ERR_BUF -2 Buffer error. */ - EWOULDBLOCK, /* ERR_TIMEOUT -3 Timeout */ - EHOSTUNREACH, /* ERR_RTE -4 Routing problem. */ - EINPROGRESS, /* ERR_INPROGRESS -5 Operation in progress */ - EINVAL, /* ERR_VAL -6 Illegal value. */ - EWOULDBLOCK, /* ERR_WOULDBLOCK -7 Operation would block. */ - EADDRINUSE, /* ERR_USE -8 Address in use. */ - EALREADY, /* ERR_ALREADY -9 Already connecting. */ - EISCONN, /* ERR_ISCONN -10 Conn already established.*/ - ENOTCONN, /* ERR_CONN -11 Not connected. */ - -1, /* ERR_IF -12 Low-level netif error */ - ECONNABORTED, /* ERR_ABRT -13 Connection aborted. */ - ECONNRESET, /* ERR_RST -14 Connection reset. */ - ENOTCONN, /* ERR_CLSD -15 Connection closed. */ - EIO /* ERR_ARG -16 Illegal argument. */ -}; - -int -err_to_errno(err_t err) -{ - if ((err > 0) || (-err >= (err_t)LWIP_ARRAYSIZE(err_to_errno_table))) { - return EIO; - } - return err_to_errno_table[-err]; -} -#endif /* !NO_SYS */ - -#ifdef LWIP_DEBUG - -static const char *err_strerr[] = { - "Ok.", /* ERR_OK 0 */ - "Out of memory error.", /* ERR_MEM -1 */ - "Buffer error.", /* ERR_BUF -2 */ - "Timeout.", /* ERR_TIMEOUT -3 */ - "Routing problem.", /* ERR_RTE -4 */ - "Operation in progress.", /* ERR_INPROGRESS -5 */ - "Illegal value.", /* ERR_VAL -6 */ - "Operation would block.", /* ERR_WOULDBLOCK -7 */ - "Address in use.", /* ERR_USE -8 */ - "Already connecting.", /* ERR_ALREADY -9 */ - "Already connected.", /* ERR_ISCONN -10 */ - "Not connected.", /* ERR_CONN -11 */ - "Low-level netif error.", /* ERR_IF -12 */ - "Connection aborted.", /* ERR_ABRT -13 */ - "Connection reset.", /* ERR_RST -14 */ - "Connection closed.", /* ERR_CLSD -15 */ - "Illegal argument." /* ERR_ARG -16 */ -}; - -/** - * Convert an lwip internal error to a string representation. - * - * @param err an lwip internal err_t - * @return a string representation for err - */ -const char * -lwip_strerr(err_t err) -{ - if ((err > 0) || (-err >= (err_t)LWIP_ARRAYSIZE(err_strerr))) { - return "Unknown error."; - } - return err_strerr[-err]; -} - -#endif /* LWIP_DEBUG */ diff --git a/Middlewares/Third_Party/LwIP/src/api/if_api.c b/Middlewares/Third_Party/LwIP/src/api/if_api.c deleted file mode 100644 index 8e094d0..0000000 --- a/Middlewares/Third_Party/LwIP/src/api/if_api.c +++ /dev/null @@ -1,102 +0,0 @@ -/** - * @file - * Interface Identification APIs from: - * RFC 3493: Basic Socket Interface Extensions for IPv6 - * Section 4: Interface Identification - * - * @defgroup if_api Interface Identification API - * @ingroup socket - */ - -/* - * Copyright (c) 2017 Joel Cunningham, Garmin International, Inc. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Joel Cunningham - * - */ -#include "lwip/opt.h" - -#if LWIP_SOCKET - -#include "lwip/errno.h" -#include "lwip/if_api.h" -#include "lwip/netifapi.h" -#include "lwip/priv/sockets_priv.h" - -/** - * @ingroup if_api - * Maps an interface index to its corresponding name. - * @param ifindex interface index - * @param ifname shall point to a buffer of at least {IF_NAMESIZE} bytes - * @return If ifindex is an interface index, then the function shall return the - * value supplied in ifname, which points to a buffer now containing the interface name. - * Otherwise, the function shall return a NULL pointer. - */ -char * -lwip_if_indextoname(unsigned int ifindex, char *ifname) -{ -#if LWIP_NETIF_API - if (ifindex <= 0xff) { - err_t err = netifapi_netif_index_to_name((u8_t)ifindex, ifname); - if (!err && ifname[0] != '\0') { - return ifname; - } - } -#else /* LWIP_NETIF_API */ - LWIP_UNUSED_ARG(ifindex); - LWIP_UNUSED_ARG(ifname); -#endif /* LWIP_NETIF_API */ - set_errno(ENXIO); - return NULL; -} - -/** - * @ingroup if_api - * Returs the interface index corresponding to name ifname. - * @param ifname Interface name - * @return The corresponding index if ifname is the name of an interface; - * otherwise, zero. - */ -unsigned int -lwip_if_nametoindex(const char *ifname) -{ -#if LWIP_NETIF_API - err_t err; - u8_t idx; - - err = netifapi_netif_name_to_index(ifname, &idx); - if (!err) { - return idx; - } -#else /* LWIP_NETIF_API */ - LWIP_UNUSED_ARG(ifname); -#endif /* LWIP_NETIF_API */ - return 0; /* invalid index */ -} - -#endif /* LWIP_SOCKET */ diff --git a/Middlewares/Third_Party/LwIP/src/api/netbuf.c b/Middlewares/Third_Party/LwIP/src/api/netbuf.c deleted file mode 100644 index 3b910de..0000000 --- a/Middlewares/Third_Party/LwIP/src/api/netbuf.c +++ /dev/null @@ -1,250 +0,0 @@ -/** - * @file - * Network buffer management - * - * @defgroup netbuf Network buffers - * @ingroup netconn - * Network buffer descriptor for @ref netconn. Based on @ref pbuf internally - * to avoid copying data around.\n - * Buffers must not be shared accross multiple threads, all functions except - * netbuf_new() and netbuf_delete() are not thread-safe. - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -#include "lwip/opt.h" - -#if LWIP_NETCONN /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/netbuf.h" -#include "lwip/memp.h" - -#include - -/** - * @ingroup netbuf - * Create (allocate) and initialize a new netbuf. - * The netbuf doesn't yet contain a packet buffer! - * - * @return a pointer to a new netbuf - * NULL on lack of memory - */ -struct -netbuf *netbuf_new(void) -{ - struct netbuf *buf; - - buf = (struct netbuf *)memp_malloc(MEMP_NETBUF); - if (buf != NULL) { - memset(buf, 0, sizeof(struct netbuf)); - } - return buf; -} - -/** - * @ingroup netbuf - * Deallocate a netbuf allocated by netbuf_new(). - * - * @param buf pointer to a netbuf allocated by netbuf_new() - */ -void -netbuf_delete(struct netbuf *buf) -{ - if (buf != NULL) { - if (buf->p != NULL) { - pbuf_free(buf->p); - buf->p = buf->ptr = NULL; - } - memp_free(MEMP_NETBUF, buf); - } -} - -/** - * @ingroup netbuf - * Allocate memory for a packet buffer for a given netbuf. - * - * @param buf the netbuf for which to allocate a packet buffer - * @param size the size of the packet buffer to allocate - * @return pointer to the allocated memory - * NULL if no memory could be allocated - */ -void * -netbuf_alloc(struct netbuf *buf, u16_t size) -{ - LWIP_ERROR("netbuf_alloc: invalid buf", (buf != NULL), return NULL;); - - /* Deallocate any previously allocated memory. */ - if (buf->p != NULL) { - pbuf_free(buf->p); - } - buf->p = pbuf_alloc(PBUF_TRANSPORT, size, PBUF_RAM); - if (buf->p == NULL) { - return NULL; - } - LWIP_ASSERT("check that first pbuf can hold size", - (buf->p->len >= size)); - buf->ptr = buf->p; - return buf->p->payload; -} - -/** - * @ingroup netbuf - * Free the packet buffer included in a netbuf - * - * @param buf pointer to the netbuf which contains the packet buffer to free - */ -void -netbuf_free(struct netbuf *buf) -{ - LWIP_ERROR("netbuf_free: invalid buf", (buf != NULL), return;); - if (buf->p != NULL) { - pbuf_free(buf->p); - } - buf->p = buf->ptr = NULL; -#if LWIP_CHECKSUM_ON_COPY - buf->flags = 0; - buf->toport_chksum = 0; -#endif /* LWIP_CHECKSUM_ON_COPY */ -} - -/** - * @ingroup netbuf - * Let a netbuf reference existing (non-volatile) data. - * - * @param buf netbuf which should reference the data - * @param dataptr pointer to the data to reference - * @param size size of the data - * @return ERR_OK if data is referenced - * ERR_MEM if data couldn't be referenced due to lack of memory - */ -err_t -netbuf_ref(struct netbuf *buf, const void *dataptr, u16_t size) -{ - LWIP_ERROR("netbuf_ref: invalid buf", (buf != NULL), return ERR_ARG;); - if (buf->p != NULL) { - pbuf_free(buf->p); - } - buf->p = pbuf_alloc(PBUF_TRANSPORT, 0, PBUF_REF); - if (buf->p == NULL) { - buf->ptr = NULL; - return ERR_MEM; - } - ((struct pbuf_rom *)buf->p)->payload = dataptr; - buf->p->len = buf->p->tot_len = size; - buf->ptr = buf->p; - return ERR_OK; -} - -/** - * @ingroup netbuf - * Chain one netbuf to another (@see pbuf_chain) - * - * @param head the first netbuf - * @param tail netbuf to chain after head, freed by this function, may not be reference after returning - */ -void -netbuf_chain(struct netbuf *head, struct netbuf *tail) -{ - LWIP_ERROR("netbuf_chain: invalid head", (head != NULL), return;); - LWIP_ERROR("netbuf_chain: invalid tail", (tail != NULL), return;); - pbuf_cat(head->p, tail->p); - head->ptr = head->p; - memp_free(MEMP_NETBUF, tail); -} - -/** - * @ingroup netbuf - * Get the data pointer and length of the data inside a netbuf. - * - * @param buf netbuf to get the data from - * @param dataptr pointer to a void pointer where to store the data pointer - * @param len pointer to an u16_t where the length of the data is stored - * @return ERR_OK if the information was retrieved, - * ERR_BUF on error. - */ -err_t -netbuf_data(struct netbuf *buf, void **dataptr, u16_t *len) -{ - LWIP_ERROR("netbuf_data: invalid buf", (buf != NULL), return ERR_ARG;); - LWIP_ERROR("netbuf_data: invalid dataptr", (dataptr != NULL), return ERR_ARG;); - LWIP_ERROR("netbuf_data: invalid len", (len != NULL), return ERR_ARG;); - - if (buf->ptr == NULL) { - return ERR_BUF; - } - *dataptr = buf->ptr->payload; - *len = buf->ptr->len; - return ERR_OK; -} - -/** - * @ingroup netbuf - * Move the current data pointer of a packet buffer contained in a netbuf - * to the next part. - * The packet buffer itself is not modified. - * - * @param buf the netbuf to modify - * @return -1 if there is no next part - * 1 if moved to the next part but now there is no next part - * 0 if moved to the next part and there are still more parts - */ -s8_t -netbuf_next(struct netbuf *buf) -{ - LWIP_ERROR("netbuf_next: invalid buf", (buf != NULL), return -1;); - if (buf->ptr->next == NULL) { - return -1; - } - buf->ptr = buf->ptr->next; - if (buf->ptr->next == NULL) { - return 1; - } - return 0; -} - -/** - * @ingroup netbuf - * Move the current data pointer of a packet buffer contained in a netbuf - * to the beginning of the packet. - * The packet buffer itself is not modified. - * - * @param buf the netbuf to modify - */ -void -netbuf_first(struct netbuf *buf) -{ - LWIP_ERROR("netbuf_first: invalid buf", (buf != NULL), return;); - buf->ptr = buf->p; -} - -#endif /* LWIP_NETCONN */ diff --git a/Middlewares/Third_Party/LwIP/src/api/netdb.c b/Middlewares/Third_Party/LwIP/src/api/netdb.c deleted file mode 100644 index 8771425..0000000 --- a/Middlewares/Third_Party/LwIP/src/api/netdb.c +++ /dev/null @@ -1,414 +0,0 @@ -/** - * @file - * API functions for name resolving - * - * @defgroup netdbapi NETDB API - * @ingroup socket - */ - -/* - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Simon Goldschmidt - * - */ - -#include "lwip/netdb.h" - -#if LWIP_DNS && LWIP_SOCKET - -#include "lwip/err.h" -#include "lwip/mem.h" -#include "lwip/memp.h" -#include "lwip/ip_addr.h" -#include "lwip/api.h" -#include "lwip/dns.h" - -#include /* memset */ -#include /* atoi */ - -/** helper struct for gethostbyname_r to access the char* buffer */ -struct gethostbyname_r_helper { - ip_addr_t *addr_list[2]; - ip_addr_t addr; - char *aliases; -}; - -/** h_errno is exported in netdb.h for access by applications. */ -#if LWIP_DNS_API_DECLARE_H_ERRNO -int h_errno; -#endif /* LWIP_DNS_API_DECLARE_H_ERRNO */ - -/** define "hostent" variables storage: 0 if we use a static (but unprotected) - * set of variables for lwip_gethostbyname, 1 if we use a local storage */ -#ifndef LWIP_DNS_API_HOSTENT_STORAGE -#define LWIP_DNS_API_HOSTENT_STORAGE 0 -#endif - -/** define "hostent" variables storage */ -#if LWIP_DNS_API_HOSTENT_STORAGE -#define HOSTENT_STORAGE -#else -#define HOSTENT_STORAGE static -#endif /* LWIP_DNS_API_STATIC_HOSTENT */ - -/** - * Returns an entry containing addresses of address family AF_INET - * for the host with name name. - * Due to dns_gethostbyname limitations, only one address is returned. - * - * @param name the hostname to resolve - * @return an entry containing addresses of address family AF_INET - * for the host with name name - */ -struct hostent * -lwip_gethostbyname(const char *name) -{ - err_t err; - ip_addr_t addr; - - /* buffer variables for lwip_gethostbyname() */ - HOSTENT_STORAGE struct hostent s_hostent; - HOSTENT_STORAGE char *s_aliases; - HOSTENT_STORAGE ip_addr_t s_hostent_addr; - HOSTENT_STORAGE ip_addr_t *s_phostent_addr[2]; - HOSTENT_STORAGE char s_hostname[DNS_MAX_NAME_LENGTH + 1]; - - /* query host IP address */ - err = netconn_gethostbyname(name, &addr); - if (err != ERR_OK) { - LWIP_DEBUGF(DNS_DEBUG, ("lwip_gethostbyname(%s) failed, err=%d\n", name, err)); - h_errno = HOST_NOT_FOUND; - return NULL; - } - - /* fill hostent */ - s_hostent_addr = addr; - s_phostent_addr[0] = &s_hostent_addr; - s_phostent_addr[1] = NULL; - strncpy(s_hostname, name, DNS_MAX_NAME_LENGTH); - s_hostname[DNS_MAX_NAME_LENGTH] = 0; - s_hostent.h_name = s_hostname; - s_aliases = NULL; - s_hostent.h_aliases = &s_aliases; - s_hostent.h_addrtype = AF_INET; - s_hostent.h_length = sizeof(ip_addr_t); - s_hostent.h_addr_list = (char **)&s_phostent_addr; - -#if DNS_DEBUG - /* dump hostent */ - LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_name == %s\n", s_hostent.h_name)); - LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_aliases == %p\n", (void *)s_hostent.h_aliases)); - /* h_aliases are always empty */ - LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_addrtype == %d\n", s_hostent.h_addrtype)); - LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_length == %d\n", s_hostent.h_length)); - LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_addr_list == %p\n", (void *)s_hostent.h_addr_list)); - if (s_hostent.h_addr_list != NULL) { - u8_t idx; - for (idx = 0; s_hostent.h_addr_list[idx]; idx++) { - LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_addr_list[%i] == %p\n", idx, s_hostent.h_addr_list[idx])); - LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_addr_list[%i]-> == %s\n", idx, ipaddr_ntoa((ip_addr_t *)s_hostent.h_addr_list[idx]))); - } - } -#endif /* DNS_DEBUG */ - -#if LWIP_DNS_API_HOSTENT_STORAGE - /* this function should return the "per-thread" hostent after copy from s_hostent */ - return sys_thread_hostent(&s_hostent); -#else - return &s_hostent; -#endif /* LWIP_DNS_API_HOSTENT_STORAGE */ -} - -/** - * Thread-safe variant of lwip_gethostbyname: instead of using a static - * buffer, this function takes buffer and errno pointers as arguments - * and uses these for the result. - * - * @param name the hostname to resolve - * @param ret pre-allocated struct where to store the result - * @param buf pre-allocated buffer where to store additional data - * @param buflen the size of buf - * @param result pointer to a hostent pointer that is set to ret on success - * and set to zero on error - * @param h_errnop pointer to an int where to store errors (instead of modifying - * the global h_errno) - * @return 0 on success, non-zero on error, additional error information - * is stored in *h_errnop instead of h_errno to be thread-safe - */ -int -lwip_gethostbyname_r(const char *name, struct hostent *ret, char *buf, - size_t buflen, struct hostent **result, int *h_errnop) -{ - err_t err; - struct gethostbyname_r_helper *h; - char *hostname; - size_t namelen; - int lh_errno; - - if (h_errnop == NULL) { - /* ensure h_errnop is never NULL */ - h_errnop = &lh_errno; - } - - if (result == NULL) { - /* not all arguments given */ - *h_errnop = EINVAL; - return -1; - } - /* first thing to do: set *result to nothing */ - *result = NULL; - if ((name == NULL) || (ret == NULL) || (buf == NULL)) { - /* not all arguments given */ - *h_errnop = EINVAL; - return -1; - } - - namelen = strlen(name); - if (buflen < (sizeof(struct gethostbyname_r_helper) + LWIP_MEM_ALIGN_BUFFER(namelen + 1))) { - /* buf can't hold the data needed + a copy of name */ - *h_errnop = ERANGE; - return -1; - } - - h = (struct gethostbyname_r_helper *)LWIP_MEM_ALIGN(buf); - hostname = ((char *)h) + sizeof(struct gethostbyname_r_helper); - - /* query host IP address */ - err = netconn_gethostbyname(name, &h->addr); - if (err != ERR_OK) { - LWIP_DEBUGF(DNS_DEBUG, ("lwip_gethostbyname(%s) failed, err=%d\n", name, err)); - *h_errnop = HOST_NOT_FOUND; - return -1; - } - - /* copy the hostname into buf */ - MEMCPY(hostname, name, namelen); - hostname[namelen] = 0; - - /* fill hostent */ - h->addr_list[0] = &h->addr; - h->addr_list[1] = NULL; - h->aliases = NULL; - ret->h_name = hostname; - ret->h_aliases = &h->aliases; - ret->h_addrtype = AF_INET; - ret->h_length = sizeof(ip_addr_t); - ret->h_addr_list = (char **)&h->addr_list; - - /* set result != NULL */ - *result = ret; - - /* return success */ - return 0; -} - -/** - * Frees one or more addrinfo structures returned by getaddrinfo(), along with - * any additional storage associated with those structures. If the ai_next field - * of the structure is not null, the entire list of structures is freed. - * - * @param ai struct addrinfo to free - */ -void -lwip_freeaddrinfo(struct addrinfo *ai) -{ - struct addrinfo *next; - - while (ai != NULL) { - next = ai->ai_next; - memp_free(MEMP_NETDB, ai); - ai = next; - } -} - -/** - * Translates the name of a service location (for example, a host name) and/or - * a service name and returns a set of socket addresses and associated - * information to be used in creating a socket with which to address the - * specified service. - * Memory for the result is allocated internally and must be freed by calling - * lwip_freeaddrinfo()! - * - * Due to a limitation in dns_gethostbyname, only the first address of a - * host is returned. - * Also, service names are not supported (only port numbers)! - * - * @param nodename descriptive name or address string of the host - * (may be NULL -> local address) - * @param servname port number as string of NULL - * @param hints structure containing input values that set socktype and protocol - * @param res pointer to a pointer where to store the result (set to NULL on failure) - * @return 0 on success, non-zero on failure - * - * @todo: implement AI_V4MAPPED, AI_ADDRCONFIG - */ -int -lwip_getaddrinfo(const char *nodename, const char *servname, - const struct addrinfo *hints, struct addrinfo **res) -{ - err_t err; - ip_addr_t addr; - struct addrinfo *ai; - struct sockaddr_storage *sa = NULL; - int port_nr = 0; - size_t total_size; - size_t namelen = 0; - int ai_family; - - if (res == NULL) { - return EAI_FAIL; - } - *res = NULL; - if ((nodename == NULL) && (servname == NULL)) { - return EAI_NONAME; - } - - if (hints != NULL) { - ai_family = hints->ai_family; - if ((ai_family != AF_UNSPEC) -#if LWIP_IPV4 - && (ai_family != AF_INET) -#endif /* LWIP_IPV4 */ -#if LWIP_IPV6 - && (ai_family != AF_INET6) -#endif /* LWIP_IPV6 */ - ) { - return EAI_FAMILY; - } - } else { - ai_family = AF_UNSPEC; - } - - if (servname != NULL) { - /* service name specified: convert to port number - * @todo?: currently, only ASCII integers (port numbers) are supported (AI_NUMERICSERV)! */ - port_nr = atoi(servname); - if ((port_nr <= 0) || (port_nr > 0xffff)) { - return EAI_SERVICE; - } - } - - if (nodename != NULL) { - /* service location specified, try to resolve */ - if ((hints != NULL) && (hints->ai_flags & AI_NUMERICHOST)) { - /* no DNS lookup, just parse for an address string */ - if (!ipaddr_aton(nodename, &addr)) { - return EAI_NONAME; - } -#if LWIP_IPV4 && LWIP_IPV6 - if ((IP_IS_V6_VAL(addr) && ai_family == AF_INET) || - (IP_IS_V4_VAL(addr) && ai_family == AF_INET6)) { - return EAI_NONAME; - } -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - } else { -#if LWIP_IPV4 && LWIP_IPV6 - /* AF_UNSPEC: prefer IPv4 */ - u8_t type = NETCONN_DNS_IPV4_IPV6; - if (ai_family == AF_INET) { - type = NETCONN_DNS_IPV4; - } else if (ai_family == AF_INET6) { - type = NETCONN_DNS_IPV6; - } -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - err = netconn_gethostbyname_addrtype(nodename, &addr, type); - if (err != ERR_OK) { - return EAI_FAIL; - } - } - } else { - /* service location specified, use loopback address */ - if ((hints != NULL) && (hints->ai_flags & AI_PASSIVE)) { - ip_addr_set_any_val(ai_family == AF_INET6, addr); - } else { - ip_addr_set_loopback_val(ai_family == AF_INET6, addr); - } - } - - total_size = sizeof(struct addrinfo) + sizeof(struct sockaddr_storage); - if (nodename != NULL) { - namelen = strlen(nodename); - if (namelen > DNS_MAX_NAME_LENGTH) { - /* invalid name length */ - return EAI_FAIL; - } - LWIP_ASSERT("namelen is too long", total_size + namelen + 1 > total_size); - total_size += namelen + 1; - } - /* If this fails, please report to lwip-devel! :-) */ - LWIP_ASSERT("total_size <= NETDB_ELEM_SIZE: please report this!", - total_size <= NETDB_ELEM_SIZE); - ai = (struct addrinfo *)memp_malloc(MEMP_NETDB); - if (ai == NULL) { - return EAI_MEMORY; - } - memset(ai, 0, total_size); - /* cast through void* to get rid of alignment warnings */ - sa = (struct sockaddr_storage *)(void *)((u8_t *)ai + sizeof(struct addrinfo)); - if (IP_IS_V6_VAL(addr)) { -#if LWIP_IPV6 - struct sockaddr_in6 *sa6 = (struct sockaddr_in6 *)sa; - /* set up sockaddr */ - inet6_addr_from_ip6addr(&sa6->sin6_addr, ip_2_ip6(&addr)); - sa6->sin6_family = AF_INET6; - sa6->sin6_len = sizeof(struct sockaddr_in6); - sa6->sin6_port = lwip_htons((u16_t)port_nr); - sa6->sin6_scope_id = ip6_addr_zone(ip_2_ip6(&addr)); - ai->ai_family = AF_INET6; -#endif /* LWIP_IPV6 */ - } else { -#if LWIP_IPV4 - struct sockaddr_in *sa4 = (struct sockaddr_in *)sa; - /* set up sockaddr */ - inet_addr_from_ip4addr(&sa4->sin_addr, ip_2_ip4(&addr)); - sa4->sin_family = AF_INET; - sa4->sin_len = sizeof(struct sockaddr_in); - sa4->sin_port = lwip_htons((u16_t)port_nr); - ai->ai_family = AF_INET; -#endif /* LWIP_IPV4 */ - } - - /* set up addrinfo */ - if (hints != NULL) { - /* copy socktype & protocol from hints if specified */ - ai->ai_socktype = hints->ai_socktype; - ai->ai_protocol = hints->ai_protocol; - } - if (nodename != NULL) { - /* copy nodename to canonname if specified */ - ai->ai_canonname = ((char *)ai + sizeof(struct addrinfo) + sizeof(struct sockaddr_storage)); - MEMCPY(ai->ai_canonname, nodename, namelen); - ai->ai_canonname[namelen] = 0; - } - ai->ai_addrlen = sizeof(struct sockaddr_storage); - ai->ai_addr = (struct sockaddr *)sa; - - *res = ai; - - return 0; -} - -#endif /* LWIP_DNS && LWIP_SOCKET */ diff --git a/Middlewares/Third_Party/LwIP/src/api/netifapi.c b/Middlewares/Third_Party/LwIP/src/api/netifapi.c deleted file mode 100644 index 25957cd..0000000 --- a/Middlewares/Third_Party/LwIP/src/api/netifapi.c +++ /dev/null @@ -1,380 +0,0 @@ -/** - * @file - * Network Interface Sequential API module - * - * @defgroup netifapi NETIF API - * @ingroup sequential_api - * Thread-safe functions to be called from non-TCPIP threads - * - * @defgroup netifapi_netif NETIF related - * @ingroup netifapi - * To be called from non-TCPIP threads - */ - -/* - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - */ - -#include "lwip/opt.h" - -#if LWIP_NETIF_API /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/etharp.h" -#include "lwip/netifapi.h" -#include "lwip/memp.h" -#include "lwip/priv/tcpip_priv.h" - -#include /* strncpy */ - -#define NETIFAPI_VAR_REF(name) API_VAR_REF(name) -#define NETIFAPI_VAR_DECLARE(name) API_VAR_DECLARE(struct netifapi_msg, name) -#define NETIFAPI_VAR_ALLOC(name) API_VAR_ALLOC(struct netifapi_msg, MEMP_NETIFAPI_MSG, name, ERR_MEM) -#define NETIFAPI_VAR_FREE(name) API_VAR_FREE(MEMP_NETIFAPI_MSG, name) - -/** - * Call netif_add() inside the tcpip_thread context. - */ -static err_t -netifapi_do_netif_add(struct tcpip_api_call_data *m) -{ - /* cast through void* to silence alignment warnings. - * We know it works because the structs have been instantiated as struct netifapi_msg */ - struct netifapi_msg *msg = (struct netifapi_msg *)(void *)m; - - if (!netif_add( msg->netif, -#if LWIP_IPV4 - API_EXPR_REF(msg->msg.add.ipaddr), - API_EXPR_REF(msg->msg.add.netmask), - API_EXPR_REF(msg->msg.add.gw), -#endif /* LWIP_IPV4 */ - msg->msg.add.state, - msg->msg.add.init, - msg->msg.add.input)) { - return ERR_IF; - } else { - return ERR_OK; - } -} - -#if LWIP_IPV4 -/** - * Call netif_set_addr() inside the tcpip_thread context. - */ -static err_t -netifapi_do_netif_set_addr(struct tcpip_api_call_data *m) -{ - /* cast through void* to silence alignment warnings. - * We know it works because the structs have been instantiated as struct netifapi_msg */ - struct netifapi_msg *msg = (struct netifapi_msg *)(void *)m; - - netif_set_addr( msg->netif, - API_EXPR_REF(msg->msg.add.ipaddr), - API_EXPR_REF(msg->msg.add.netmask), - API_EXPR_REF(msg->msg.add.gw)); - return ERR_OK; -} -#endif /* LWIP_IPV4 */ - -/** -* Call netif_name_to_index() inside the tcpip_thread context. -*/ -static err_t -netifapi_do_name_to_index(struct tcpip_api_call_data *m) -{ - /* cast through void* to silence alignment warnings. - * We know it works because the structs have been instantiated as struct netifapi_msg */ - struct netifapi_msg *msg = (struct netifapi_msg *)(void *)m; - - msg->msg.ifs.index = netif_name_to_index(msg->msg.ifs.name); - return ERR_OK; -} - -/** -* Call netif_index_to_name() inside the tcpip_thread context. -*/ -static err_t -netifapi_do_index_to_name(struct tcpip_api_call_data *m) -{ - /* cast through void* to silence alignment warnings. - * We know it works because the structs have been instantiated as struct netifapi_msg */ - struct netifapi_msg *msg = (struct netifapi_msg *)(void *)m; - - if (!netif_index_to_name(msg->msg.ifs.index, msg->msg.ifs.name)) { - /* return failure via empty name */ - msg->msg.ifs.name[0] = '\0'; - } - return ERR_OK; -} - -/** - * Call the "errtfunc" (or the "voidfunc" if "errtfunc" is NULL) inside the - * tcpip_thread context. - */ -static err_t -netifapi_do_netif_common(struct tcpip_api_call_data *m) -{ - /* cast through void* to silence alignment warnings. - * We know it works because the structs have been instantiated as struct netifapi_msg */ - struct netifapi_msg *msg = (struct netifapi_msg *)(void *)m; - - if (msg->msg.common.errtfunc != NULL) { - return msg->msg.common.errtfunc(msg->netif); - } else { - msg->msg.common.voidfunc(msg->netif); - return ERR_OK; - } -} - -#if LWIP_ARP && LWIP_IPV4 -/** - * @ingroup netifapi_arp - * Add or update an entry in the ARP cache. - * For an update, ipaddr is used to find the cache entry. - * - * @param ipaddr IPv4 address of cache entry - * @param ethaddr hardware address mapped to ipaddr - * @param type type of ARP cache entry - * @return ERR_OK: entry added/updated, else error from err_t - */ -err_t -netifapi_arp_add(const ip4_addr_t *ipaddr, struct eth_addr *ethaddr, enum netifapi_arp_entry type) -{ - err_t err; - - /* We only support permanent entries currently */ - LWIP_UNUSED_ARG(type); - -#if ETHARP_SUPPORT_STATIC_ENTRIES && LWIP_TCPIP_CORE_LOCKING - LOCK_TCPIP_CORE(); - err = etharp_add_static_entry(ipaddr, ethaddr); - UNLOCK_TCPIP_CORE(); -#else - /* @todo add new vars to struct netifapi_msg and create a 'do' func */ - LWIP_UNUSED_ARG(ipaddr); - LWIP_UNUSED_ARG(ethaddr); - err = ERR_VAL; -#endif /* ETHARP_SUPPORT_STATIC_ENTRIES && LWIP_TCPIP_CORE_LOCKING */ - - return err; -} - -/** - * @ingroup netifapi_arp - * Remove an entry in the ARP cache identified by ipaddr - * - * @param ipaddr IPv4 address of cache entry - * @param type type of ARP cache entry - * @return ERR_OK: entry removed, else error from err_t - */ -err_t -netifapi_arp_remove(const ip4_addr_t *ipaddr, enum netifapi_arp_entry type) -{ - err_t err; - - /* We only support permanent entries currently */ - LWIP_UNUSED_ARG(type); - -#if ETHARP_SUPPORT_STATIC_ENTRIES && LWIP_TCPIP_CORE_LOCKING - LOCK_TCPIP_CORE(); - err = etharp_remove_static_entry(ipaddr); - UNLOCK_TCPIP_CORE(); -#else - /* @todo add new vars to struct netifapi_msg and create a 'do' func */ - LWIP_UNUSED_ARG(ipaddr); - err = ERR_VAL; -#endif /* ETHARP_SUPPORT_STATIC_ENTRIES && LWIP_TCPIP_CORE_LOCKING */ - - return err; -} -#endif /* LWIP_ARP && LWIP_IPV4 */ - -/** - * @ingroup netifapi_netif - * Call netif_add() in a thread-safe way by running that function inside the - * tcpip_thread context. - * - * @note for params @see netif_add() - */ -err_t -netifapi_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) -{ - err_t err; - NETIFAPI_VAR_DECLARE(msg); - NETIFAPI_VAR_ALLOC(msg); - -#if LWIP_IPV4 - if (ipaddr == NULL) { - ipaddr = IP4_ADDR_ANY4; - } - if (netmask == NULL) { - netmask = IP4_ADDR_ANY4; - } - if (gw == NULL) { - gw = IP4_ADDR_ANY4; - } -#endif /* LWIP_IPV4 */ - - NETIFAPI_VAR_REF(msg).netif = netif; -#if LWIP_IPV4 - NETIFAPI_VAR_REF(msg).msg.add.ipaddr = NETIFAPI_VAR_REF(ipaddr); - NETIFAPI_VAR_REF(msg).msg.add.netmask = NETIFAPI_VAR_REF(netmask); - NETIFAPI_VAR_REF(msg).msg.add.gw = NETIFAPI_VAR_REF(gw); -#endif /* LWIP_IPV4 */ - NETIFAPI_VAR_REF(msg).msg.add.state = state; - NETIFAPI_VAR_REF(msg).msg.add.init = init; - NETIFAPI_VAR_REF(msg).msg.add.input = input; - err = tcpip_api_call(netifapi_do_netif_add, &API_VAR_REF(msg).call); - NETIFAPI_VAR_FREE(msg); - return err; -} - -#if LWIP_IPV4 -/** - * @ingroup netifapi_netif - * Call netif_set_addr() in a thread-safe way by running that function inside the - * tcpip_thread context. - * - * @note for params @see netif_set_addr() - */ -err_t -netifapi_netif_set_addr(struct netif *netif, - const ip4_addr_t *ipaddr, - const ip4_addr_t *netmask, - const ip4_addr_t *gw) -{ - err_t err; - NETIFAPI_VAR_DECLARE(msg); - NETIFAPI_VAR_ALLOC(msg); - - if (ipaddr == NULL) { - ipaddr = IP4_ADDR_ANY4; - } - if (netmask == NULL) { - netmask = IP4_ADDR_ANY4; - } - if (gw == NULL) { - gw = IP4_ADDR_ANY4; - } - - NETIFAPI_VAR_REF(msg).netif = netif; - NETIFAPI_VAR_REF(msg).msg.add.ipaddr = NETIFAPI_VAR_REF(ipaddr); - NETIFAPI_VAR_REF(msg).msg.add.netmask = NETIFAPI_VAR_REF(netmask); - NETIFAPI_VAR_REF(msg).msg.add.gw = NETIFAPI_VAR_REF(gw); - err = tcpip_api_call(netifapi_do_netif_set_addr, &API_VAR_REF(msg).call); - NETIFAPI_VAR_FREE(msg); - return err; -} -#endif /* LWIP_IPV4 */ - -/** - * call the "errtfunc" (or the "voidfunc" if "errtfunc" is NULL) in a thread-safe - * way by running that function inside the tcpip_thread context. - * - * @note use only for functions where there is only "netif" parameter. - */ -err_t -netifapi_netif_common(struct netif *netif, netifapi_void_fn voidfunc, - netifapi_errt_fn errtfunc) -{ - err_t err; - NETIFAPI_VAR_DECLARE(msg); - NETIFAPI_VAR_ALLOC(msg); - - NETIFAPI_VAR_REF(msg).netif = netif; - NETIFAPI_VAR_REF(msg).msg.common.voidfunc = voidfunc; - NETIFAPI_VAR_REF(msg).msg.common.errtfunc = errtfunc; - err = tcpip_api_call(netifapi_do_netif_common, &API_VAR_REF(msg).call); - NETIFAPI_VAR_FREE(msg); - return err; -} - -/** -* @ingroup netifapi_netif -* Call netif_name_to_index() in a thread-safe way by running that function inside the -* tcpip_thread context. -* -* @param name the interface name of the netif -* @param idx output index of the found netif -*/ -err_t -netifapi_netif_name_to_index(const char *name, u8_t *idx) -{ - err_t err; - NETIFAPI_VAR_DECLARE(msg); - NETIFAPI_VAR_ALLOC(msg); - - *idx = 0; - -#if LWIP_MPU_COMPATIBLE - strncpy(NETIFAPI_VAR_REF(msg).msg.ifs.name, name, NETIF_NAMESIZE - 1); - NETIFAPI_VAR_REF(msg).msg.ifs.name[NETIF_NAMESIZE - 1] = '\0'; -#else - NETIFAPI_VAR_REF(msg).msg.ifs.name = LWIP_CONST_CAST(char *, name); -#endif /* LWIP_MPU_COMPATIBLE */ - err = tcpip_api_call(netifapi_do_name_to_index, &API_VAR_REF(msg).call); - if (!err) { - *idx = NETIFAPI_VAR_REF(msg).msg.ifs.index; - } - NETIFAPI_VAR_FREE(msg); - return err; -} - -/** -* @ingroup netifapi_netif -* Call netif_index_to_name() in a thread-safe way by running that function inside the -* tcpip_thread context. -* -* @param idx the interface index of the netif -* @param name output name of the found netif, empty '\0' string if netif not found. -* name should be of at least NETIF_NAMESIZE bytes -*/ -err_t -netifapi_netif_index_to_name(u8_t idx, char *name) -{ - err_t err; - NETIFAPI_VAR_DECLARE(msg); - NETIFAPI_VAR_ALLOC(msg); - - NETIFAPI_VAR_REF(msg).msg.ifs.index = idx; -#if !LWIP_MPU_COMPATIBLE - NETIFAPI_VAR_REF(msg).msg.ifs.name = name; -#endif /* LWIP_MPU_COMPATIBLE */ - err = tcpip_api_call(netifapi_do_index_to_name, &API_VAR_REF(msg).call); -#if LWIP_MPU_COMPATIBLE - if (!err) { - strncpy(name, NETIFAPI_VAR_REF(msg).msg.ifs.name, NETIF_NAMESIZE - 1); - name[NETIF_NAMESIZE - 1] = '\0'; - } -#endif /* LWIP_MPU_COMPATIBLE */ - NETIFAPI_VAR_FREE(msg); - return err; -} - -#endif /* LWIP_NETIF_API */ diff --git a/Middlewares/Third_Party/LwIP/src/api/sockets.c b/Middlewares/Third_Party/LwIP/src/api/sockets.c deleted file mode 100644 index cb7df91..0000000 --- a/Middlewares/Third_Party/LwIP/src/api/sockets.c +++ /dev/null @@ -1,4160 +0,0 @@ -/** - * @file - * Sockets BSD-Like API module - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - * Improved by Marc Boucher and David Haas - * - */ - -#include "lwip/opt.h" - -#if LWIP_SOCKET /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/sockets.h" -#include "lwip/priv/sockets_priv.h" -#include "lwip/api.h" -#include "lwip/igmp.h" -#include "lwip/inet.h" -#include "lwip/tcp.h" -#include "lwip/raw.h" -#include "lwip/udp.h" -#include "lwip/memp.h" -#include "lwip/pbuf.h" -#include "lwip/netif.h" -#include "lwip/priv/tcpip_priv.h" -#include "lwip/mld6.h" -#if LWIP_CHECKSUM_ON_COPY -#include "lwip/inet_chksum.h" -#endif - -#if LWIP_COMPAT_SOCKETS == 2 && LWIP_POSIX_SOCKETS_IO_NAMES -#include -#endif - -#include - -#ifdef LWIP_HOOK_FILENAME -#include LWIP_HOOK_FILENAME -#endif - -/* If the netconn API is not required publicly, then we include the necessary - files here to get the implementation */ -#if !LWIP_NETCONN -#undef LWIP_NETCONN -#define LWIP_NETCONN 1 -#include "api_msg.c" -#include "api_lib.c" -#include "netbuf.c" -#undef LWIP_NETCONN -#define LWIP_NETCONN 0 -#endif - -#define API_SELECT_CB_VAR_REF(name) API_VAR_REF(name) -#define API_SELECT_CB_VAR_DECLARE(name) API_VAR_DECLARE(struct lwip_select_cb, name) -#define API_SELECT_CB_VAR_ALLOC(name, retblock) API_VAR_ALLOC_EXT(struct lwip_select_cb, MEMP_SELECT_CB, name, retblock) -#define API_SELECT_CB_VAR_FREE(name) API_VAR_FREE(MEMP_SELECT_CB, name) - -#if LWIP_IPV4 -#define IP4ADDR_PORT_TO_SOCKADDR(sin, ipaddr, port) do { \ - (sin)->sin_len = sizeof(struct sockaddr_in); \ - (sin)->sin_family = AF_INET; \ - (sin)->sin_port = lwip_htons((port)); \ - inet_addr_from_ip4addr(&(sin)->sin_addr, ipaddr); \ - memset((sin)->sin_zero, 0, SIN_ZERO_LEN); }while(0) -#define SOCKADDR4_TO_IP4ADDR_PORT(sin, ipaddr, port) do { \ - inet_addr_to_ip4addr(ip_2_ip4(ipaddr), &((sin)->sin_addr)); \ - (port) = lwip_ntohs((sin)->sin_port); }while(0) -#endif /* LWIP_IPV4 */ - -#if LWIP_IPV6 -#define IP6ADDR_PORT_TO_SOCKADDR(sin6, ipaddr, port) do { \ - (sin6)->sin6_len = sizeof(struct sockaddr_in6); \ - (sin6)->sin6_family = AF_INET6; \ - (sin6)->sin6_port = lwip_htons((port)); \ - (sin6)->sin6_flowinfo = 0; \ - inet6_addr_from_ip6addr(&(sin6)->sin6_addr, ipaddr); \ - (sin6)->sin6_scope_id = ip6_addr_zone(ipaddr); }while(0) -#define SOCKADDR6_TO_IP6ADDR_PORT(sin6, ipaddr, port) do { \ - inet6_addr_to_ip6addr(ip_2_ip6(ipaddr), &((sin6)->sin6_addr)); \ - if (ip6_addr_has_scope(ip_2_ip6(ipaddr), IP6_UNKNOWN)) { \ - ip6_addr_set_zone(ip_2_ip6(ipaddr), (u8_t)((sin6)->sin6_scope_id)); \ - } \ - (port) = lwip_ntohs((sin6)->sin6_port); }while(0) -#endif /* LWIP_IPV6 */ - -#if LWIP_IPV4 && LWIP_IPV6 -static void sockaddr_to_ipaddr_port(const struct sockaddr *sockaddr, ip_addr_t *ipaddr, u16_t *port); - -#define IS_SOCK_ADDR_LEN_VALID(namelen) (((namelen) == sizeof(struct sockaddr_in)) || \ - ((namelen) == sizeof(struct sockaddr_in6))) -#define IS_SOCK_ADDR_TYPE_VALID(name) (((name)->sa_family == AF_INET) || \ - ((name)->sa_family == AF_INET6)) -#define SOCK_ADDR_TYPE_MATCH(name, sock) \ - ((((name)->sa_family == AF_INET) && !(NETCONNTYPE_ISIPV6((sock)->conn->type))) || \ - (((name)->sa_family == AF_INET6) && (NETCONNTYPE_ISIPV6((sock)->conn->type)))) -#define IPADDR_PORT_TO_SOCKADDR(sockaddr, ipaddr, port) do { \ - if (IP_IS_ANY_TYPE_VAL(*ipaddr) || IP_IS_V6_VAL(*ipaddr)) { \ - IP6ADDR_PORT_TO_SOCKADDR((struct sockaddr_in6*)(void*)(sockaddr), ip_2_ip6(ipaddr), port); \ - } else { \ - IP4ADDR_PORT_TO_SOCKADDR((struct sockaddr_in*)(void*)(sockaddr), ip_2_ip4(ipaddr), port); \ - } } while(0) -#define SOCKADDR_TO_IPADDR_PORT(sockaddr, ipaddr, port) sockaddr_to_ipaddr_port(sockaddr, ipaddr, &(port)) -#define DOMAIN_TO_NETCONN_TYPE(domain, type) (((domain) == AF_INET) ? \ - (type) : (enum netconn_type)((type) | NETCONN_TYPE_IPV6)) -#elif LWIP_IPV6 /* LWIP_IPV4 && LWIP_IPV6 */ -#define IS_SOCK_ADDR_LEN_VALID(namelen) ((namelen) == sizeof(struct sockaddr_in6)) -#define IS_SOCK_ADDR_TYPE_VALID(name) ((name)->sa_family == AF_INET6) -#define SOCK_ADDR_TYPE_MATCH(name, sock) 1 -#define IPADDR_PORT_TO_SOCKADDR(sockaddr, ipaddr, port) \ - IP6ADDR_PORT_TO_SOCKADDR((struct sockaddr_in6*)(void*)(sockaddr), ip_2_ip6(ipaddr), port) -#define SOCKADDR_TO_IPADDR_PORT(sockaddr, ipaddr, port) \ - SOCKADDR6_TO_IP6ADDR_PORT((const struct sockaddr_in6*)(const void*)(sockaddr), ipaddr, port) -#define DOMAIN_TO_NETCONN_TYPE(domain, netconn_type) (netconn_type) -#else /*-> LWIP_IPV4: LWIP_IPV4 && LWIP_IPV6 */ -#define IS_SOCK_ADDR_LEN_VALID(namelen) ((namelen) == sizeof(struct sockaddr_in)) -#define IS_SOCK_ADDR_TYPE_VALID(name) ((name)->sa_family == AF_INET) -#define SOCK_ADDR_TYPE_MATCH(name, sock) 1 -#define IPADDR_PORT_TO_SOCKADDR(sockaddr, ipaddr, port) \ - IP4ADDR_PORT_TO_SOCKADDR((struct sockaddr_in*)(void*)(sockaddr), ip_2_ip4(ipaddr), port) -#define SOCKADDR_TO_IPADDR_PORT(sockaddr, ipaddr, port) \ - SOCKADDR4_TO_IP4ADDR_PORT((const struct sockaddr_in*)(const void*)(sockaddr), ipaddr, port) -#define DOMAIN_TO_NETCONN_TYPE(domain, netconn_type) (netconn_type) -#endif /* LWIP_IPV6 */ - -#define IS_SOCK_ADDR_TYPE_VALID_OR_UNSPEC(name) (((name)->sa_family == AF_UNSPEC) || \ - IS_SOCK_ADDR_TYPE_VALID(name)) -#define SOCK_ADDR_TYPE_MATCH_OR_UNSPEC(name, sock) (((name)->sa_family == AF_UNSPEC) || \ - SOCK_ADDR_TYPE_MATCH(name, sock)) -#define IS_SOCK_ADDR_ALIGNED(name) ((((mem_ptr_t)(name)) % 4) == 0) - - -#define LWIP_SOCKOPT_CHECK_OPTLEN(sock, optlen, opttype) do { if ((optlen) < sizeof(opttype)) { done_socket(sock); return EINVAL; }}while(0) -#define LWIP_SOCKOPT_CHECK_OPTLEN_CONN(sock, optlen, opttype) do { \ - LWIP_SOCKOPT_CHECK_OPTLEN(sock, optlen, opttype); \ - if ((sock)->conn == NULL) { done_socket(sock); return EINVAL; } }while(0) -#define LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB(sock, optlen, opttype) do { \ - LWIP_SOCKOPT_CHECK_OPTLEN(sock, optlen, opttype); \ - if (((sock)->conn == NULL) || ((sock)->conn->pcb.tcp == NULL)) { done_socket(sock); return EINVAL; } }while(0) -#define LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB_TYPE(sock, optlen, opttype, netconntype) do { \ - LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB(sock, optlen, opttype); \ - if (NETCONNTYPE_GROUP(netconn_type((sock)->conn)) != netconntype) { done_socket(sock); return ENOPROTOOPT; } }while(0) - - -#define LWIP_SETGETSOCKOPT_DATA_VAR_REF(name) API_VAR_REF(name) -#define LWIP_SETGETSOCKOPT_DATA_VAR_DECLARE(name) API_VAR_DECLARE(struct lwip_setgetsockopt_data, name) -#define LWIP_SETGETSOCKOPT_DATA_VAR_FREE(name) API_VAR_FREE(MEMP_SOCKET_SETGETSOCKOPT_DATA, name) -#if LWIP_MPU_COMPATIBLE -#define LWIP_SETGETSOCKOPT_DATA_VAR_ALLOC(name, sock) do { \ - name = (struct lwip_setgetsockopt_data *)memp_malloc(MEMP_SOCKET_SETGETSOCKOPT_DATA); \ - if (name == NULL) { \ - sock_set_errno(sock, ENOMEM); \ - done_socket(sock); \ - return -1; \ - } }while(0) -#else /* LWIP_MPU_COMPATIBLE */ -#define LWIP_SETGETSOCKOPT_DATA_VAR_ALLOC(name, sock) -#endif /* LWIP_MPU_COMPATIBLE */ - -#if LWIP_SO_SNDRCVTIMEO_NONSTANDARD -#define LWIP_SO_SNDRCVTIMEO_OPTTYPE int -#define LWIP_SO_SNDRCVTIMEO_SET(optval, val) (*(int *)(optval) = (val)) -#define LWIP_SO_SNDRCVTIMEO_GET_MS(optval) ((long)*(const int*)(optval)) -#else -#define LWIP_SO_SNDRCVTIMEO_OPTTYPE struct timeval -#define LWIP_SO_SNDRCVTIMEO_SET(optval, val) do { \ - u32_t loc = (val); \ - ((struct timeval *)(optval))->tv_sec = (long)((loc) / 1000U); \ - ((struct timeval *)(optval))->tv_usec = (long)(((loc) % 1000U) * 1000U); }while(0) -#define LWIP_SO_SNDRCVTIMEO_GET_MS(optval) ((((const struct timeval *)(optval))->tv_sec * 1000) + (((const struct timeval *)(optval))->tv_usec / 1000)) -#endif - - -/** A struct sockaddr replacement that has the same alignment as sockaddr_in/ - * sockaddr_in6 if instantiated. - */ -union sockaddr_aligned { - struct sockaddr sa; -#if LWIP_IPV6 - struct sockaddr_in6 sin6; -#endif /* LWIP_IPV6 */ -#if LWIP_IPV4 - struct sockaddr_in sin; -#endif /* LWIP_IPV4 */ -}; - -/* Define the number of IPv4 multicast memberships, default is one per socket */ -#ifndef LWIP_SOCKET_MAX_MEMBERSHIPS -#define LWIP_SOCKET_MAX_MEMBERSHIPS NUM_SOCKETS -#endif - -#if LWIP_IGMP -/* This is to keep track of IP_ADD_MEMBERSHIP calls to drop the membership when - a socket is closed */ -struct lwip_socket_multicast_pair { - /** the socket */ - struct lwip_sock *sock; - /** the interface address */ - ip4_addr_t if_addr; - /** the group address */ - ip4_addr_t multi_addr; -}; - -static struct lwip_socket_multicast_pair socket_ipv4_multicast_memberships[LWIP_SOCKET_MAX_MEMBERSHIPS]; - -static int lwip_socket_register_membership(int s, const ip4_addr_t *if_addr, const ip4_addr_t *multi_addr); -static void lwip_socket_unregister_membership(int s, const ip4_addr_t *if_addr, const ip4_addr_t *multi_addr); -static void lwip_socket_drop_registered_memberships(int s); -#endif /* LWIP_IGMP */ - -#if LWIP_IPV6_MLD -/* This is to keep track of IP_JOIN_GROUP calls to drop the membership when - a socket is closed */ -struct lwip_socket_multicast_mld6_pair { - /** the socket */ - struct lwip_sock *sock; - /** the interface index */ - u8_t if_idx; - /** the group address */ - ip6_addr_t multi_addr; -}; - -static struct lwip_socket_multicast_mld6_pair socket_ipv6_multicast_memberships[LWIP_SOCKET_MAX_MEMBERSHIPS]; - -static int lwip_socket_register_mld6_membership(int s, unsigned int if_idx, const ip6_addr_t *multi_addr); -static void lwip_socket_unregister_mld6_membership(int s, unsigned int if_idx, const ip6_addr_t *multi_addr); -static void lwip_socket_drop_registered_mld6_memberships(int s); -#endif /* LWIP_IPV6_MLD */ - -/** The global array of available sockets */ -static struct lwip_sock sockets[NUM_SOCKETS]; - -#if LWIP_SOCKET_SELECT || LWIP_SOCKET_POLL -#if LWIP_TCPIP_CORE_LOCKING -/* protect the select_cb_list using core lock */ -#define LWIP_SOCKET_SELECT_DECL_PROTECT(lev) -#define LWIP_SOCKET_SELECT_PROTECT(lev) LOCK_TCPIP_CORE() -#define LWIP_SOCKET_SELECT_UNPROTECT(lev) UNLOCK_TCPIP_CORE() -#else /* LWIP_TCPIP_CORE_LOCKING */ -/* protect the select_cb_list using SYS_LIGHTWEIGHT_PROT */ -#define LWIP_SOCKET_SELECT_DECL_PROTECT(lev) SYS_ARCH_DECL_PROTECT(lev) -#define LWIP_SOCKET_SELECT_PROTECT(lev) SYS_ARCH_PROTECT(lev) -#define LWIP_SOCKET_SELECT_UNPROTECT(lev) SYS_ARCH_UNPROTECT(lev) -/** This counter is increased from lwip_select when the list is changed - and checked in select_check_waiters to see if it has changed. */ -static volatile int select_cb_ctr; -#endif /* LWIP_TCPIP_CORE_LOCKING */ -/** The global list of tasks waiting for select */ -static struct lwip_select_cb *select_cb_list; -#endif /* LWIP_SOCKET_SELECT || LWIP_SOCKET_POLL */ - -#define sock_set_errno(sk, e) do { \ - const int sockerr = (e); \ - set_errno(sockerr); \ -} while (0) - -/* Forward declaration of some functions */ -#if LWIP_SOCKET_SELECT || LWIP_SOCKET_POLL -static void event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len); -#define DEFAULT_SOCKET_EVENTCB event_callback -static void select_check_waiters(int s, int has_recvevent, int has_sendevent, int has_errevent); -#else -#define DEFAULT_SOCKET_EVENTCB NULL -#endif -#if !LWIP_TCPIP_CORE_LOCKING -static void lwip_getsockopt_callback(void *arg); -static void lwip_setsockopt_callback(void *arg); -#endif -static int lwip_getsockopt_impl(int s, int level, int optname, void *optval, socklen_t *optlen); -static int lwip_setsockopt_impl(int s, int level, int optname, const void *optval, socklen_t optlen); -static int free_socket_locked(struct lwip_sock *sock, int is_tcp, struct netconn **conn, - union lwip_sock_lastdata *lastdata); -static void free_socket_free_elements(int is_tcp, struct netconn *conn, union lwip_sock_lastdata *lastdata); - -#if LWIP_IPV4 && LWIP_IPV6 -static void -sockaddr_to_ipaddr_port(const struct sockaddr *sockaddr, ip_addr_t *ipaddr, u16_t *port) -{ - if ((sockaddr->sa_family) == AF_INET6) { - SOCKADDR6_TO_IP6ADDR_PORT((const struct sockaddr_in6 *)(const void *)(sockaddr), ipaddr, *port); - ipaddr->type = IPADDR_TYPE_V6; - } else { - SOCKADDR4_TO_IP4ADDR_PORT((const struct sockaddr_in *)(const void *)(sockaddr), ipaddr, *port); - ipaddr->type = IPADDR_TYPE_V4; - } -} -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - -/** LWIP_NETCONN_SEM_PER_THREAD==1: initialize thread-local semaphore */ -void -lwip_socket_thread_init(void) -{ - netconn_thread_init(); -} - -/** LWIP_NETCONN_SEM_PER_THREAD==1: destroy thread-local semaphore */ -void -lwip_socket_thread_cleanup(void) -{ - netconn_thread_cleanup(); -} - -#if LWIP_NETCONN_FULLDUPLEX -/* Thread-safe increment of sock->fd_used, with overflow check */ -static int -sock_inc_used(struct lwip_sock *sock) -{ - int ret; - SYS_ARCH_DECL_PROTECT(lev); - - LWIP_ASSERT("sock != NULL", sock != NULL); - - SYS_ARCH_PROTECT(lev); - if (sock->fd_free_pending) { - /* prevent new usage of this socket if free is pending */ - ret = 0; - } else { - ++sock->fd_used; - ret = 1; - LWIP_ASSERT("sock->fd_used != 0", sock->fd_used != 0); - } - SYS_ARCH_UNPROTECT(lev); - return ret; -} - -/* Like sock_inc_used(), but called under SYS_ARCH_PROTECT lock. */ -static int -sock_inc_used_locked(struct lwip_sock *sock) -{ - LWIP_ASSERT("sock != NULL", sock != NULL); - - if (sock->fd_free_pending) { - LWIP_ASSERT("sock->fd_used != 0", sock->fd_used != 0); - return 0; - } - - ++sock->fd_used; - LWIP_ASSERT("sock->fd_used != 0", sock->fd_used != 0); - return 1; -} - -/* In full-duplex mode,sock->fd_used != 0 prevents a socket descriptor from being - * released (and possibly reused) when used from more than one thread - * (e.g. read-while-write or close-while-write, etc) - * This function is called at the end of functions using (try)get_socket*(). - */ -static void -done_socket(struct lwip_sock *sock) -{ - int freed = 0; - int is_tcp = 0; - struct netconn *conn = NULL; - union lwip_sock_lastdata lastdata; - SYS_ARCH_DECL_PROTECT(lev); - LWIP_ASSERT("sock != NULL", sock != NULL); - - SYS_ARCH_PROTECT(lev); - LWIP_ASSERT("sock->fd_used > 0", sock->fd_used > 0); - if (--sock->fd_used == 0) { - if (sock->fd_free_pending) { - /* free the socket */ - sock->fd_used = 1; - is_tcp = sock->fd_free_pending & LWIP_SOCK_FD_FREE_TCP; - freed = free_socket_locked(sock, is_tcp, &conn, &lastdata); - } - } - SYS_ARCH_UNPROTECT(lev); - - if (freed) { - free_socket_free_elements(is_tcp, conn, &lastdata); - } -} - -#else /* LWIP_NETCONN_FULLDUPLEX */ -#define sock_inc_used(sock) 1 -#define sock_inc_used_locked(sock) 1 -#define done_socket(sock) -#endif /* LWIP_NETCONN_FULLDUPLEX */ - -/* Translate a socket 'int' into a pointer (only fails if the index is invalid) */ -static struct lwip_sock * -tryget_socket_unconn_nouse(int fd) -{ - int s = fd - LWIP_SOCKET_OFFSET; - if ((s < 0) || (s >= NUM_SOCKETS)) { - LWIP_DEBUGF(SOCKETS_DEBUG, ("tryget_socket_unconn(%d): invalid\n", fd)); - return NULL; - } - return &sockets[s]; -} - -struct lwip_sock * -lwip_socket_dbg_get_socket(int fd) -{ - return tryget_socket_unconn_nouse(fd); -} - -/* Translate a socket 'int' into a pointer (only fails if the index is invalid) */ -static struct lwip_sock * -tryget_socket_unconn(int fd) -{ - struct lwip_sock *ret = tryget_socket_unconn_nouse(fd); - if (ret != NULL) { - if (!sock_inc_used(ret)) { - return NULL; - } - } - return ret; -} - -/* Like tryget_socket_unconn(), but called under SYS_ARCH_PROTECT lock. */ -static struct lwip_sock * -tryget_socket_unconn_locked(int fd) -{ - struct lwip_sock *ret = tryget_socket_unconn_nouse(fd); - if (ret != NULL) { - if (!sock_inc_used_locked(ret)) { - return NULL; - } - } - return ret; -} - -/** - * Same as get_socket but doesn't set errno - * - * @param fd externally used socket index - * @return struct lwip_sock for the socket or NULL if not found - */ -static struct lwip_sock * -tryget_socket(int fd) -{ - struct lwip_sock *sock = tryget_socket_unconn(fd); - if (sock != NULL) { - if (sock->conn) { - return sock; - } - done_socket(sock); - } - return NULL; -} - -/** - * Map a externally used socket index to the internal socket representation. - * - * @param fd externally used socket index - * @return struct lwip_sock for the socket or NULL if not found - */ -static struct lwip_sock * -get_socket(int fd) -{ - struct lwip_sock *sock = tryget_socket(fd); - if (!sock) { - if ((fd < LWIP_SOCKET_OFFSET) || (fd >= (LWIP_SOCKET_OFFSET + NUM_SOCKETS))) { - LWIP_DEBUGF(SOCKETS_DEBUG, ("get_socket(%d): invalid\n", fd)); - } - set_errno(EBADF); - return NULL; - } - return sock; -} - -/** - * Allocate a new socket for a given netconn. - * - * @param newconn the netconn for which to allocate a socket - * @param accepted 1 if socket has been created by accept(), - * 0 if socket has been created by socket() - * @return the index of the new socket; -1 on error - */ -static int -alloc_socket(struct netconn *newconn, int accepted) -{ - int i; - SYS_ARCH_DECL_PROTECT(lev); - LWIP_UNUSED_ARG(accepted); - - /* allocate a new socket identifier */ - for (i = 0; i < NUM_SOCKETS; ++i) { - /* Protect socket array */ - SYS_ARCH_PROTECT(lev); - if (!sockets[i].conn) { -#if LWIP_NETCONN_FULLDUPLEX - if (sockets[i].fd_used) { - SYS_ARCH_UNPROTECT(lev); - continue; - } - sockets[i].fd_used = 1; - sockets[i].fd_free_pending = 0; -#endif - sockets[i].conn = newconn; - /* The socket is not yet known to anyone, so no need to protect - after having marked it as used. */ - SYS_ARCH_UNPROTECT(lev); - sockets[i].lastdata.pbuf = NULL; -#if LWIP_SOCKET_SELECT || LWIP_SOCKET_POLL - LWIP_ASSERT("sockets[i].select_waiting == 0", sockets[i].select_waiting == 0); - sockets[i].rcvevent = 0; - /* TCP sendbuf is empty, but the socket is not yet writable until connected - * (unless it has been created by accept()). */ - sockets[i].sendevent = (NETCONNTYPE_GROUP(newconn->type) == NETCONN_TCP ? (accepted != 0) : 1); - sockets[i].errevent = 0; -#endif /* LWIP_SOCKET_SELECT || LWIP_SOCKET_POLL */ - return i + LWIP_SOCKET_OFFSET; - } - SYS_ARCH_UNPROTECT(lev); - } - return -1; -} - -/** Free a socket (under lock) - * - * @param sock the socket to free - * @param is_tcp != 0 for TCP sockets, used to free lastdata - * @param conn the socekt's netconn is stored here, must be freed externally - * @param lastdata lastdata is stored here, must be freed externally - */ -static int -free_socket_locked(struct lwip_sock *sock, int is_tcp, struct netconn **conn, - union lwip_sock_lastdata *lastdata) -{ -#if LWIP_NETCONN_FULLDUPLEX - LWIP_ASSERT("sock->fd_used > 0", sock->fd_used > 0); - sock->fd_used--; - if (sock->fd_used > 0) { - sock->fd_free_pending = LWIP_SOCK_FD_FREE_FREE | (is_tcp ? LWIP_SOCK_FD_FREE_TCP : 0); - return 0; - } -#else /* LWIP_NETCONN_FULLDUPLEX */ - LWIP_UNUSED_ARG(is_tcp); -#endif /* LWIP_NETCONN_FULLDUPLEX */ - - *lastdata = sock->lastdata; - sock->lastdata.pbuf = NULL; - *conn = sock->conn; - sock->conn = NULL; - return 1; -} - -/** Free a socket's leftover members. - */ -static void -free_socket_free_elements(int is_tcp, struct netconn *conn, union lwip_sock_lastdata *lastdata) -{ - if (lastdata->pbuf != NULL) { - if (is_tcp) { - pbuf_free(lastdata->pbuf); - } else { - netbuf_delete(lastdata->netbuf); - } - } - if (conn != NULL) { - /* netconn_prepare_delete() has already been called, here we only free the conn */ - netconn_delete(conn); - } -} - -/** Free a socket. The socket's netconn must have been - * delete before! - * - * @param sock the socket to free - * @param is_tcp != 0 for TCP sockets, used to free lastdata - */ -static void -free_socket(struct lwip_sock *sock, int is_tcp) -{ - int freed; - struct netconn *conn; - union lwip_sock_lastdata lastdata; - SYS_ARCH_DECL_PROTECT(lev); - - /* Protect socket array */ - SYS_ARCH_PROTECT(lev); - - freed = free_socket_locked(sock, is_tcp, &conn, &lastdata); - SYS_ARCH_UNPROTECT(lev); - /* don't use 'sock' after this line, as another task might have allocated it */ - - if (freed) { - free_socket_free_elements(is_tcp, conn, &lastdata); - } -} - -/* Below this, the well-known socket functions are implemented. - * Use google.com or opengroup.org to get a good description :-) - * - * Exceptions are documented! - */ - -int -lwip_accept(int s, struct sockaddr *addr, socklen_t *addrlen) -{ - struct lwip_sock *sock, *nsock; - struct netconn *newconn; - ip_addr_t naddr; - u16_t port = 0; - int newsock; - err_t err; - int recvevent; - SYS_ARCH_DECL_PROTECT(lev); - - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_accept(%d)...\n", s)); - sock = get_socket(s); - if (!sock) { - return -1; - } - - /* wait for a new connection */ - err = netconn_accept(sock->conn, &newconn); - if (err != ERR_OK) { - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_accept(%d): netconn_acept failed, err=%d\n", s, err)); - if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) != NETCONN_TCP) { - sock_set_errno(sock, EOPNOTSUPP); - } else if (err == ERR_CLSD) { - sock_set_errno(sock, EINVAL); - } else { - sock_set_errno(sock, err_to_errno(err)); - } - done_socket(sock); - return -1; - } - LWIP_ASSERT("newconn != NULL", newconn != NULL); - - newsock = alloc_socket(newconn, 1); - if (newsock == -1) { - netconn_delete(newconn); - sock_set_errno(sock, ENFILE); - done_socket(sock); - return -1; - } - LWIP_ASSERT("invalid socket index", (newsock >= LWIP_SOCKET_OFFSET) && (newsock < NUM_SOCKETS + LWIP_SOCKET_OFFSET)); - nsock = &sockets[newsock - LWIP_SOCKET_OFFSET]; - - /* See event_callback: If data comes in right away after an accept, even - * though the server task might not have created a new socket yet. - * In that case, newconn->socket is counted down (newconn->socket--), - * so nsock->rcvevent is >= 1 here! - */ - SYS_ARCH_PROTECT(lev); - recvevent = (s16_t)(-1 - newconn->socket); - newconn->socket = newsock; - SYS_ARCH_UNPROTECT(lev); - - if (newconn->callback) { - LOCK_TCPIP_CORE(); - while (recvevent > 0) { - recvevent--; - newconn->callback(newconn, NETCONN_EVT_RCVPLUS, 0); - } - UNLOCK_TCPIP_CORE(); - } - - /* Note that POSIX only requires us to check addr is non-NULL. addrlen must - * not be NULL if addr is valid. - */ - if ((addr != NULL) && (addrlen != NULL)) { - union sockaddr_aligned tempaddr; - /* get the IP address and port of the remote host */ - err = netconn_peer(newconn, &naddr, &port); - if (err != ERR_OK) { - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_accept(%d): netconn_peer failed, err=%d\n", s, err)); - netconn_delete(newconn); - free_socket(nsock, 1); - sock_set_errno(sock, err_to_errno(err)); - done_socket(sock); - return -1; - } - - IPADDR_PORT_TO_SOCKADDR(&tempaddr, &naddr, port); - if (*addrlen > tempaddr.sa.sa_len) { - *addrlen = tempaddr.sa.sa_len; - } - MEMCPY(addr, &tempaddr, *addrlen); - - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_accept(%d) returning new sock=%d addr=", s, newsock)); - ip_addr_debug_print_val(SOCKETS_DEBUG, naddr); - LWIP_DEBUGF(SOCKETS_DEBUG, (" port=%"U16_F"\n", port)); - } else { - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_accept(%d) returning new sock=%d", s, newsock)); - } - - sock_set_errno(sock, 0); - done_socket(sock); - done_socket(nsock); - return newsock; -} - -int -lwip_bind(int s, const struct sockaddr *name, socklen_t namelen) -{ - struct lwip_sock *sock; - ip_addr_t local_addr; - u16_t local_port; - err_t err; - - sock = get_socket(s); - if (!sock) { - return -1; - } - - if (!SOCK_ADDR_TYPE_MATCH(name, sock)) { - /* sockaddr does not match socket type (IPv4/IPv6) */ - sock_set_errno(sock, err_to_errno(ERR_VAL)); - done_socket(sock); - return -1; - } - - /* check size, family and alignment of 'name' */ - LWIP_ERROR("lwip_bind: invalid address", (IS_SOCK_ADDR_LEN_VALID(namelen) && - IS_SOCK_ADDR_TYPE_VALID(name) && IS_SOCK_ADDR_ALIGNED(name)), - sock_set_errno(sock, err_to_errno(ERR_ARG)); done_socket(sock); return -1;); - LWIP_UNUSED_ARG(namelen); - - SOCKADDR_TO_IPADDR_PORT(name, &local_addr, local_port); - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_bind(%d, addr=", s)); - ip_addr_debug_print_val(SOCKETS_DEBUG, local_addr); - LWIP_DEBUGF(SOCKETS_DEBUG, (" port=%"U16_F")\n", local_port)); - -#if LWIP_IPV4 && LWIP_IPV6 - /* Dual-stack: Unmap IPv4 mapped IPv6 addresses */ - if (IP_IS_V6_VAL(local_addr) && ip6_addr_isipv4mappedipv6(ip_2_ip6(&local_addr))) { - unmap_ipv4_mapped_ipv6(ip_2_ip4(&local_addr), ip_2_ip6(&local_addr)); - IP_SET_TYPE_VAL(local_addr, IPADDR_TYPE_V4); - } -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - - err = netconn_bind(sock->conn, &local_addr, local_port); - - if (err != ERR_OK) { - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_bind(%d) failed, err=%d\n", s, err)); - sock_set_errno(sock, err_to_errno(err)); - done_socket(sock); - return -1; - } - - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_bind(%d) succeeded\n", s)); - sock_set_errno(sock, 0); - done_socket(sock); - return 0; -} - -int -lwip_close(int s) -{ - struct lwip_sock *sock; - int is_tcp = 0; - err_t err; - - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_close(%d)\n", s)); - - sock = get_socket(s); - if (!sock) { - return -1; - } - - if (sock->conn != NULL) { - is_tcp = NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP; - } else { - LWIP_ASSERT("sock->lastdata == NULL", sock->lastdata.pbuf == NULL); - } - -#if LWIP_IGMP - /* drop all possibly joined IGMP memberships */ - lwip_socket_drop_registered_memberships(s); -#endif /* LWIP_IGMP */ -#if LWIP_IPV6_MLD - /* drop all possibly joined MLD6 memberships */ - lwip_socket_drop_registered_mld6_memberships(s); -#endif /* LWIP_IPV6_MLD */ - - err = netconn_prepare_delete(sock->conn); - if (err != ERR_OK) { - sock_set_errno(sock, err_to_errno(err)); - done_socket(sock); - return -1; - } - - free_socket(sock, is_tcp); - set_errno(0); - return 0; -} - -int -lwip_connect(int s, const struct sockaddr *name, socklen_t namelen) -{ - struct lwip_sock *sock; - err_t err; - - sock = get_socket(s); - if (!sock) { - return -1; - } - - if (!SOCK_ADDR_TYPE_MATCH_OR_UNSPEC(name, sock)) { - /* sockaddr does not match socket type (IPv4/IPv6) */ - sock_set_errno(sock, err_to_errno(ERR_VAL)); - done_socket(sock); - return -1; - } - - LWIP_UNUSED_ARG(namelen); - if (name->sa_family == AF_UNSPEC) { - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_connect(%d, AF_UNSPEC)\n", s)); - err = netconn_disconnect(sock->conn); - } else { - ip_addr_t remote_addr; - u16_t remote_port; - - /* check size, family and alignment of 'name' */ - LWIP_ERROR("lwip_connect: invalid address", IS_SOCK_ADDR_LEN_VALID(namelen) && - IS_SOCK_ADDR_TYPE_VALID_OR_UNSPEC(name) && IS_SOCK_ADDR_ALIGNED(name), - sock_set_errno(sock, err_to_errno(ERR_ARG)); done_socket(sock); return -1;); - - SOCKADDR_TO_IPADDR_PORT(name, &remote_addr, remote_port); - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_connect(%d, addr=", s)); - ip_addr_debug_print_val(SOCKETS_DEBUG, remote_addr); - LWIP_DEBUGF(SOCKETS_DEBUG, (" port=%"U16_F")\n", remote_port)); - -#if LWIP_IPV4 && LWIP_IPV6 - /* Dual-stack: Unmap IPv4 mapped IPv6 addresses */ - if (IP_IS_V6_VAL(remote_addr) && ip6_addr_isipv4mappedipv6(ip_2_ip6(&remote_addr))) { - unmap_ipv4_mapped_ipv6(ip_2_ip4(&remote_addr), ip_2_ip6(&remote_addr)); - IP_SET_TYPE_VAL(remote_addr, IPADDR_TYPE_V4); - } -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - - err = netconn_connect(sock->conn, &remote_addr, remote_port); - } - - if (err != ERR_OK) { - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_connect(%d) failed, err=%d\n", s, err)); - sock_set_errno(sock, err_to_errno(err)); - done_socket(sock); - return -1; - } - - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_connect(%d) succeeded\n", s)); - sock_set_errno(sock, 0); - done_socket(sock); - return 0; -} - -/** - * Set a socket into listen mode. - * The socket may not have been used for another connection previously. - * - * @param s the socket to set to listening mode - * @param backlog (ATTENTION: needs TCP_LISTEN_BACKLOG=1) - * @return 0 on success, non-zero on failure - */ -int -lwip_listen(int s, int backlog) -{ - struct lwip_sock *sock; - err_t err; - - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_listen(%d, backlog=%d)\n", s, backlog)); - - sock = get_socket(s); - if (!sock) { - return -1; - } - - /* limit the "backlog" parameter to fit in an u8_t */ - backlog = LWIP_MIN(LWIP_MAX(backlog, 0), 0xff); - - err = netconn_listen_with_backlog(sock->conn, (u8_t)backlog); - - if (err != ERR_OK) { - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_listen(%d) failed, err=%d\n", s, err)); - if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) != NETCONN_TCP) { - sock_set_errno(sock, EOPNOTSUPP); - } else { - sock_set_errno(sock, err_to_errno(err)); - } - done_socket(sock); - return -1; - } - - sock_set_errno(sock, 0); - done_socket(sock); - return 0; -} - -#if LWIP_TCP -/* Helper function to loop over receiving pbufs from netconn - * until "len" bytes are received or we're otherwise done. - * Keeps sock->lastdata for peeking or partly copying. - */ -static ssize_t -lwip_recv_tcp(struct lwip_sock *sock, void *mem, size_t len, int flags) -{ - u8_t apiflags = NETCONN_NOAUTORCVD; - ssize_t recvd = 0; - ssize_t recv_left = (len <= SSIZE_MAX) ? (ssize_t)len : SSIZE_MAX; - - LWIP_ASSERT("no socket given", sock != NULL); - LWIP_ASSERT("this should be checked internally", NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP); - - if (flags & MSG_DONTWAIT) { - apiflags |= NETCONN_DONTBLOCK; - } - - do { - struct pbuf *p; - err_t err; - u16_t copylen; - - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: top while sock->lastdata=%p\n", (void *)sock->lastdata.pbuf)); - /* Check if there is data left from the last recv operation. */ - if (sock->lastdata.pbuf) { - p = sock->lastdata.pbuf; - } else { - /* No data was left from the previous operation, so we try to get - some from the network. */ - err = netconn_recv_tcp_pbuf_flags(sock->conn, &p, apiflags); - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: netconn_recv err=%d, pbuf=%p\n", - err, (void *)p)); - - if (err != ERR_OK) { - if (recvd > 0) { - /* already received data, return that (this trusts in getting the same error from - netconn layer again next time netconn_recv is called) */ - goto lwip_recv_tcp_done; - } - /* We should really do some error checking here. */ - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: p == NULL, error is \"%s\"!\n", - lwip_strerr(err))); - sock_set_errno(sock, err_to_errno(err)); - if (err == ERR_CLSD) { - return 0; - } else { - return -1; - } - } - LWIP_ASSERT("p != NULL", p != NULL); - sock->lastdata.pbuf = p; - } - - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: buflen=%"U16_F" recv_left=%d off=%d\n", - p->tot_len, (int)recv_left, (int)recvd)); - - if (recv_left > p->tot_len) { - copylen = p->tot_len; - } else { - copylen = (u16_t)recv_left; - } - if (recvd + copylen < recvd) { - /* overflow */ - copylen = (u16_t)(SSIZE_MAX - recvd); - } - - /* copy the contents of the received buffer into - the supplied memory pointer mem */ - pbuf_copy_partial(p, (u8_t *)mem + recvd, copylen, 0); - - recvd += copylen; - - /* TCP combines multiple pbufs for one recv */ - LWIP_ASSERT("invalid copylen, len would underflow", recv_left >= copylen); - recv_left -= copylen; - - /* Unless we peek the incoming message... */ - if ((flags & MSG_PEEK) == 0) { - /* ... check if there is data left in the pbuf */ - LWIP_ASSERT("invalid copylen", p->tot_len >= copylen); - if (p->tot_len - copylen > 0) { - /* If so, it should be saved in the sock structure for the next recv call. - We store the pbuf but hide/free the consumed data: */ - sock->lastdata.pbuf = pbuf_free_header(p, copylen); - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: lastdata now pbuf=%p\n", (void *)sock->lastdata.pbuf)); - } else { - sock->lastdata.pbuf = NULL; - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: deleting pbuf=%p\n", (void *)p)); - pbuf_free(p); - } - } - /* once we have some data to return, only add more if we don't need to wait */ - apiflags |= NETCONN_DONTBLOCK | NETCONN_NOFIN; - /* @todo: do we need to support peeking more than one pbuf? */ - } while ((recv_left > 0) && !(flags & MSG_PEEK)); -lwip_recv_tcp_done: - if ((recvd > 0) && !(flags & MSG_PEEK)) { - /* ensure window update after copying all data */ - netconn_tcp_recvd(sock->conn, (size_t)recvd); - } - sock_set_errno(sock, 0); - return recvd; -} -#endif - -/* Convert a netbuf's address data to struct sockaddr */ -static int -lwip_sock_make_addr(struct netconn *conn, ip_addr_t *fromaddr, u16_t port, - struct sockaddr *from, socklen_t *fromlen) -{ - int truncated = 0; - union sockaddr_aligned saddr; - - LWIP_UNUSED_ARG(conn); - - LWIP_ASSERT("fromaddr != NULL", fromaddr != NULL); - LWIP_ASSERT("from != NULL", from != NULL); - LWIP_ASSERT("fromlen != NULL", fromlen != NULL); - -#if LWIP_IPV4 && LWIP_IPV6 - /* Dual-stack: Map IPv4 addresses to IPv4 mapped IPv6 */ - if (NETCONNTYPE_ISIPV6(netconn_type(conn)) && IP_IS_V4(fromaddr)) { - ip4_2_ipv4_mapped_ipv6(ip_2_ip6(fromaddr), ip_2_ip4(fromaddr)); - IP_SET_TYPE(fromaddr, IPADDR_TYPE_V6); - } -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - - IPADDR_PORT_TO_SOCKADDR(&saddr, fromaddr, port); - if (*fromlen < saddr.sa.sa_len) { - truncated = 1; - } else if (*fromlen > saddr.sa.sa_len) { - *fromlen = saddr.sa.sa_len; - } - MEMCPY(from, &saddr, *fromlen); - return truncated; -} - -#if LWIP_TCP -/* Helper function to get a tcp socket's remote address info */ -static int -lwip_recv_tcp_from(struct lwip_sock *sock, struct sockaddr *from, socklen_t *fromlen, const char *dbg_fn, int dbg_s, ssize_t dbg_ret) -{ - if (sock == NULL) { - return 0; - } - LWIP_UNUSED_ARG(dbg_fn); - LWIP_UNUSED_ARG(dbg_s); - LWIP_UNUSED_ARG(dbg_ret); - -#if !SOCKETS_DEBUG - if (from && fromlen) -#endif /* !SOCKETS_DEBUG */ - { - /* get remote addr/port from tcp_pcb */ - u16_t port; - ip_addr_t tmpaddr; - netconn_getaddr(sock->conn, &tmpaddr, &port, 0); - LWIP_DEBUGF(SOCKETS_DEBUG, ("%s(%d): addr=", dbg_fn, dbg_s)); - ip_addr_debug_print_val(SOCKETS_DEBUG, tmpaddr); - LWIP_DEBUGF(SOCKETS_DEBUG, (" port=%"U16_F" len=%d\n", port, (int)dbg_ret)); - if (from && fromlen) { - return lwip_sock_make_addr(sock->conn, &tmpaddr, port, from, fromlen); - } - } - return 0; -} -#endif - -/* Helper function to receive a netbuf from a udp or raw netconn. - * Keeps sock->lastdata for peeking. - */ -static err_t -lwip_recvfrom_udp_raw(struct lwip_sock *sock, int flags, struct msghdr *msg, u16_t *datagram_len, int dbg_s) -{ - struct netbuf *buf; - u8_t apiflags; - err_t err; - u16_t buflen, copylen, copied; - int i; - - LWIP_UNUSED_ARG(dbg_s); - LWIP_ERROR("lwip_recvfrom_udp_raw: invalid arguments", (msg->msg_iov != NULL) || (msg->msg_iovlen <= 0), return ERR_ARG;); - - if (flags & MSG_DONTWAIT) { - apiflags = NETCONN_DONTBLOCK; - } else { - apiflags = 0; - } - - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom_udp_raw[UDP/RAW]: top sock->lastdata=%p\n", (void *)sock->lastdata.netbuf)); - /* Check if there is data left from the last recv operation. */ - buf = sock->lastdata.netbuf; - if (buf == NULL) { - /* No data was left from the previous operation, so we try to get - some from the network. */ - err = netconn_recv_udp_raw_netbuf_flags(sock->conn, &buf, apiflags); - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom_udp_raw[UDP/RAW]: netconn_recv err=%d, netbuf=%p\n", - err, (void *)buf)); - - if (err != ERR_OK) { - return err; - } - LWIP_ASSERT("buf != NULL", buf != NULL); - sock->lastdata.netbuf = buf; - } - buflen = buf->p->tot_len; - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom_udp_raw: buflen=%"U16_F"\n", buflen)); - - copied = 0; - /* copy the pbuf payload into the iovs */ - for (i = 0; (i < msg->msg_iovlen) && (copied < buflen); i++) { - u16_t len_left = (u16_t)(buflen - copied); - if (msg->msg_iov[i].iov_len > len_left) { - copylen = len_left; - } else { - copylen = (u16_t)msg->msg_iov[i].iov_len; - } - - /* copy the contents of the received buffer into - the supplied memory buffer */ - pbuf_copy_partial(buf->p, (u8_t *)msg->msg_iov[i].iov_base, copylen, copied); - copied = (u16_t)(copied + copylen); - } - - /* Check to see from where the data was.*/ -#if !SOCKETS_DEBUG - if (msg->msg_name && msg->msg_namelen) -#endif /* !SOCKETS_DEBUG */ - { - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom_udp_raw(%d): addr=", dbg_s)); - ip_addr_debug_print_val(SOCKETS_DEBUG, *netbuf_fromaddr(buf)); - LWIP_DEBUGF(SOCKETS_DEBUG, (" port=%"U16_F" len=%d\n", netbuf_fromport(buf), copied)); - if (msg->msg_name && msg->msg_namelen) { - lwip_sock_make_addr(sock->conn, netbuf_fromaddr(buf), netbuf_fromport(buf), - (struct sockaddr *)msg->msg_name, &msg->msg_namelen); - } - } - - /* Initialize flag output */ - msg->msg_flags = 0; - - if (msg->msg_control) { - u8_t wrote_msg = 0; -#if LWIP_NETBUF_RECVINFO - /* Check if packet info was recorded */ - if (buf->flags & NETBUF_FLAG_DESTADDR) { - if (IP_IS_V4(&buf->toaddr)) { -#if LWIP_IPV4 - if (msg->msg_controllen >= CMSG_SPACE(sizeof(struct in_pktinfo))) { - struct cmsghdr *chdr = CMSG_FIRSTHDR(msg); /* This will always return a header!! */ - struct in_pktinfo *pkti = (struct in_pktinfo *)CMSG_DATA(chdr); - chdr->cmsg_level = IPPROTO_IP; - chdr->cmsg_type = IP_PKTINFO; - chdr->cmsg_len = CMSG_LEN(sizeof(struct in_pktinfo)); - pkti->ipi_ifindex = buf->p->if_idx; - inet_addr_from_ip4addr(&pkti->ipi_addr, ip_2_ip4(netbuf_destaddr(buf))); - msg->msg_controllen = CMSG_SPACE(sizeof(struct in_pktinfo)); - wrote_msg = 1; - } else { - msg->msg_flags |= MSG_CTRUNC; - } -#endif /* LWIP_IPV4 */ - } - } -#endif /* LWIP_NETBUF_RECVINFO */ - - if (!wrote_msg) { - msg->msg_controllen = 0; - } - } - - /* If we don't peek the incoming message: zero lastdata pointer and free the netbuf */ - if ((flags & MSG_PEEK) == 0) { - sock->lastdata.netbuf = NULL; - netbuf_delete(buf); - } - if (datagram_len) { - *datagram_len = buflen; - } - return ERR_OK; -} - -ssize_t -lwip_recvfrom(int s, void *mem, size_t len, int flags, - struct sockaddr *from, socklen_t *fromlen) -{ - struct lwip_sock *sock; - ssize_t ret; - - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom(%d, %p, %"SZT_F", 0x%x, ..)\n", s, mem, len, flags)); - sock = get_socket(s); - if (!sock) { - return -1; - } -#if LWIP_TCP - if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP) { - ret = lwip_recv_tcp(sock, mem, len, flags); - lwip_recv_tcp_from(sock, from, fromlen, "lwip_recvfrom", s, ret); - done_socket(sock); - return ret; - } else -#endif - { - u16_t datagram_len = 0; - struct iovec vec; - struct msghdr msg; - err_t err; - vec.iov_base = mem; - vec.iov_len = len; - msg.msg_control = NULL; - msg.msg_controllen = 0; - msg.msg_flags = 0; - msg.msg_iov = &vec; - msg.msg_iovlen = 1; - msg.msg_name = from; - msg.msg_namelen = (fromlen ? *fromlen : 0); - err = lwip_recvfrom_udp_raw(sock, flags, &msg, &datagram_len, s); - if (err != ERR_OK) { - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom[UDP/RAW](%d): buf == NULL, error is \"%s\"!\n", - s, lwip_strerr(err))); - sock_set_errno(sock, err_to_errno(err)); - done_socket(sock); - return -1; - } - ret = (ssize_t)LWIP_MIN(LWIP_MIN(len, datagram_len), SSIZE_MAX); - if (fromlen) { - *fromlen = msg.msg_namelen; - } - } - - sock_set_errno(sock, 0); - done_socket(sock); - return ret; -} - -ssize_t -lwip_read(int s, void *mem, size_t len) -{ - return lwip_recvfrom(s, mem, len, 0, NULL, NULL); -} - -ssize_t -lwip_readv(int s, const struct iovec *iov, int iovcnt) -{ - struct msghdr msg; - - msg.msg_name = NULL; - msg.msg_namelen = 0; - /* Hack: we have to cast via number to cast from 'const' pointer to non-const. - Blame the opengroup standard for this inconsistency. */ - msg.msg_iov = LWIP_CONST_CAST(struct iovec *, iov); - msg.msg_iovlen = iovcnt; - msg.msg_control = NULL; - msg.msg_controllen = 0; - msg.msg_flags = 0; - return lwip_recvmsg(s, &msg, 0); -} - -ssize_t -lwip_recv(int s, void *mem, size_t len, int flags) -{ - return lwip_recvfrom(s, mem, len, flags, NULL, NULL); -} - -ssize_t -lwip_recvmsg(int s, struct msghdr *message, int flags) -{ - struct lwip_sock *sock; - int i; - ssize_t buflen; - - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvmsg(%d, message=%p, flags=0x%x)\n", s, (void *)message, flags)); - LWIP_ERROR("lwip_recvmsg: invalid message pointer", message != NULL, return ERR_ARG;); - LWIP_ERROR("lwip_recvmsg: unsupported flags", (flags & ~(MSG_PEEK|MSG_DONTWAIT)) == 0, - set_errno(EOPNOTSUPP); return -1;); - - if ((message->msg_iovlen <= 0) || (message->msg_iovlen > IOV_MAX)) { - set_errno(EMSGSIZE); - return -1; - } - - sock = get_socket(s); - if (!sock) { - return -1; - } - - /* check for valid vectors */ - buflen = 0; - for (i = 0; i < message->msg_iovlen; i++) { - if ((message->msg_iov[i].iov_base == NULL) || ((ssize_t)message->msg_iov[i].iov_len <= 0) || - ((size_t)(ssize_t)message->msg_iov[i].iov_len != message->msg_iov[i].iov_len) || - ((ssize_t)(buflen + (ssize_t)message->msg_iov[i].iov_len) <= 0)) { - sock_set_errno(sock, err_to_errno(ERR_VAL)); - done_socket(sock); - return -1; - } - buflen = (ssize_t)(buflen + (ssize_t)message->msg_iov[i].iov_len); - } - - if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP) { -#if LWIP_TCP - int recv_flags = flags; - message->msg_flags = 0; - /* recv the data */ - buflen = 0; - for (i = 0; i < message->msg_iovlen; i++) { - /* try to receive into this vector's buffer */ - ssize_t recvd_local = lwip_recv_tcp(sock, message->msg_iov[i].iov_base, message->msg_iov[i].iov_len, recv_flags); - if (recvd_local > 0) { - /* sum up received bytes */ - buflen += recvd_local; - } - if ((recvd_local < 0) || (recvd_local < (int)message->msg_iov[i].iov_len) || - (flags & MSG_PEEK)) { - /* returned prematurely (or peeking, which might actually be limitated to the first iov) */ - if (buflen <= 0) { - /* nothing received at all, propagate the error */ - buflen = recvd_local; - } - break; - } - /* pass MSG_DONTWAIT to lwip_recv_tcp() to prevent waiting for more data */ - recv_flags |= MSG_DONTWAIT; - } - if (buflen > 0) { - /* reset socket error since we have received something */ - sock_set_errno(sock, 0); - } - /* " If the socket is connected, the msg_name and msg_namelen members shall be ignored." */ - done_socket(sock); - return buflen; -#else /* LWIP_TCP */ - sock_set_errno(sock, err_to_errno(ERR_ARG)); - done_socket(sock); - return -1; -#endif /* LWIP_TCP */ - } - /* else, UDP and RAW NETCONNs */ -#if LWIP_UDP || LWIP_RAW - { - u16_t datagram_len = 0; - err_t err; - err = lwip_recvfrom_udp_raw(sock, flags, message, &datagram_len, s); - if (err != ERR_OK) { - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvmsg[UDP/RAW](%d): buf == NULL, error is \"%s\"!\n", - s, lwip_strerr(err))); - sock_set_errno(sock, err_to_errno(err)); - done_socket(sock); - return -1; - } - if (datagram_len > buflen) { - message->msg_flags |= MSG_TRUNC; - } - - sock_set_errno(sock, 0); - done_socket(sock); - return (int)datagram_len; - } -#else /* LWIP_UDP || LWIP_RAW */ - sock_set_errno(sock, err_to_errno(ERR_ARG)); - done_socket(sock); - return -1; -#endif /* LWIP_UDP || LWIP_RAW */ -} - -ssize_t -lwip_send(int s, const void *data, size_t size, int flags) -{ - struct lwip_sock *sock; - err_t err; - u8_t write_flags; - size_t written; - - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_send(%d, data=%p, size=%"SZT_F", flags=0x%x)\n", - s, data, size, flags)); - - sock = get_socket(s); - if (!sock) { - return -1; - } - - if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) != NETCONN_TCP) { -#if (LWIP_UDP || LWIP_RAW) - done_socket(sock); - return lwip_sendto(s, data, size, flags, NULL, 0); -#else /* (LWIP_UDP || LWIP_RAW) */ - sock_set_errno(sock, err_to_errno(ERR_ARG)); - done_socket(sock); - return -1; -#endif /* (LWIP_UDP || LWIP_RAW) */ - } - - write_flags = (u8_t)(NETCONN_COPY | - ((flags & MSG_MORE) ? NETCONN_MORE : 0) | - ((flags & MSG_DONTWAIT) ? NETCONN_DONTBLOCK : 0)); - written = 0; - err = netconn_write_partly(sock->conn, data, size, write_flags, &written); - - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_send(%d) err=%d written=%"SZT_F"\n", s, err, written)); - sock_set_errno(sock, err_to_errno(err)); - done_socket(sock); - /* casting 'written' to ssize_t is OK here since the netconn API limits it to SSIZE_MAX */ - return (err == ERR_OK ? (ssize_t)written : -1); -} - -ssize_t -lwip_sendmsg(int s, const struct msghdr *msg, int flags) -{ - struct lwip_sock *sock; -#if LWIP_TCP - u8_t write_flags; - size_t written; -#endif - err_t err = ERR_OK; - - sock = get_socket(s); - if (!sock) { - return -1; - } - - LWIP_ERROR("lwip_sendmsg: invalid msghdr", msg != NULL, - sock_set_errno(sock, err_to_errno(ERR_ARG)); done_socket(sock); return -1;); - LWIP_ERROR("lwip_sendmsg: invalid msghdr iov", msg->msg_iov != NULL, - sock_set_errno(sock, err_to_errno(ERR_ARG)); done_socket(sock); return -1;); - LWIP_ERROR("lwip_sendmsg: maximum iovs exceeded", (msg->msg_iovlen > 0) && (msg->msg_iovlen <= IOV_MAX), - sock_set_errno(sock, EMSGSIZE); done_socket(sock); return -1;); - LWIP_ERROR("lwip_sendmsg: unsupported flags", (flags & ~(MSG_DONTWAIT | MSG_MORE)) == 0, - sock_set_errno(sock, EOPNOTSUPP); done_socket(sock); return -1;); - - LWIP_UNUSED_ARG(msg->msg_control); - LWIP_UNUSED_ARG(msg->msg_controllen); - LWIP_UNUSED_ARG(msg->msg_flags); - - if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP) { -#if LWIP_TCP - write_flags = (u8_t)(NETCONN_COPY | - ((flags & MSG_MORE) ? NETCONN_MORE : 0) | - ((flags & MSG_DONTWAIT) ? NETCONN_DONTBLOCK : 0)); - - written = 0; - err = netconn_write_vectors_partly(sock->conn, (struct netvector *)msg->msg_iov, (u16_t)msg->msg_iovlen, write_flags, &written); - sock_set_errno(sock, err_to_errno(err)); - done_socket(sock); - /* casting 'written' to ssize_t is OK here since the netconn API limits it to SSIZE_MAX */ - return (err == ERR_OK ? (ssize_t)written : -1); -#else /* LWIP_TCP */ - sock_set_errno(sock, err_to_errno(ERR_ARG)); - done_socket(sock); - return -1; -#endif /* LWIP_TCP */ - } - /* else, UDP and RAW NETCONNs */ -#if LWIP_UDP || LWIP_RAW - { - struct netbuf chain_buf; - int i; - ssize_t size = 0; - - LWIP_UNUSED_ARG(flags); - LWIP_ERROR("lwip_sendmsg: invalid msghdr name", (((msg->msg_name == NULL) && (msg->msg_namelen == 0)) || - IS_SOCK_ADDR_LEN_VALID(msg->msg_namelen)), - sock_set_errno(sock, err_to_errno(ERR_ARG)); done_socket(sock); return -1;); - - /* initialize chain buffer with destination */ - memset(&chain_buf, 0, sizeof(struct netbuf)); - if (msg->msg_name) { - u16_t remote_port; - SOCKADDR_TO_IPADDR_PORT((const struct sockaddr *)msg->msg_name, &chain_buf.addr, remote_port); - netbuf_fromport(&chain_buf) = remote_port; - } -#if LWIP_NETIF_TX_SINGLE_PBUF - for (i = 0; i < msg->msg_iovlen; i++) { - size += msg->msg_iov[i].iov_len; - if ((msg->msg_iov[i].iov_len > INT_MAX) || (size < (int)msg->msg_iov[i].iov_len)) { - /* overflow */ - goto sendmsg_emsgsize; - } - } - if (size > 0xFFFF) { - /* overflow */ - goto sendmsg_emsgsize; - } - /* Allocate a new netbuf and copy the data into it. */ - if (netbuf_alloc(&chain_buf, (u16_t)size) == NULL) { - err = ERR_MEM; - } else { - /* flatten the IO vectors */ - size_t offset = 0; - for (i = 0; i < msg->msg_iovlen; i++) { - MEMCPY(&((u8_t *)chain_buf.p->payload)[offset], msg->msg_iov[i].iov_base, msg->msg_iov[i].iov_len); - offset += msg->msg_iov[i].iov_len; - } -#if LWIP_CHECKSUM_ON_COPY - { - /* This can be improved by using LWIP_CHKSUM_COPY() and aggregating the checksum for each IO vector */ - u16_t chksum = ~inet_chksum_pbuf(chain_buf.p); - netbuf_set_chksum(&chain_buf, chksum); - } -#endif /* LWIP_CHECKSUM_ON_COPY */ - err = ERR_OK; - } -#else /* LWIP_NETIF_TX_SINGLE_PBUF */ - /* create a chained netbuf from the IO vectors. NOTE: we assemble a pbuf chain - manually to avoid having to allocate, chain, and delete a netbuf for each iov */ - for (i = 0; i < msg->msg_iovlen; i++) { - struct pbuf *p; - if (msg->msg_iov[i].iov_len > 0xFFFF) { - /* overflow */ - goto sendmsg_emsgsize; - } - p = pbuf_alloc(PBUF_TRANSPORT, 0, PBUF_REF); - if (p == NULL) { - err = ERR_MEM; /* let netbuf_delete() cleanup chain_buf */ - break; - } - p->payload = msg->msg_iov[i].iov_base; - p->len = p->tot_len = (u16_t)msg->msg_iov[i].iov_len; - /* netbuf empty, add new pbuf */ - if (chain_buf.p == NULL) { - chain_buf.p = chain_buf.ptr = p; - /* add pbuf to existing pbuf chain */ - } else { - if (chain_buf.p->tot_len + p->len > 0xffff) { - /* overflow */ - pbuf_free(p); - goto sendmsg_emsgsize; - } - pbuf_cat(chain_buf.p, p); - } - } - /* save size of total chain */ - if (err == ERR_OK) { - size = netbuf_len(&chain_buf); - } -#endif /* LWIP_NETIF_TX_SINGLE_PBUF */ - - if (err == ERR_OK) { -#if LWIP_IPV4 && LWIP_IPV6 - /* Dual-stack: Unmap IPv4 mapped IPv6 addresses */ - if (IP_IS_V6_VAL(chain_buf.addr) && ip6_addr_isipv4mappedipv6(ip_2_ip6(&chain_buf.addr))) { - unmap_ipv4_mapped_ipv6(ip_2_ip4(&chain_buf.addr), ip_2_ip6(&chain_buf.addr)); - IP_SET_TYPE_VAL(chain_buf.addr, IPADDR_TYPE_V4); - } -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - - /* send the data */ - err = netconn_send(sock->conn, &chain_buf); - } - - /* deallocated the buffer */ - netbuf_free(&chain_buf); - - sock_set_errno(sock, err_to_errno(err)); - done_socket(sock); - return (err == ERR_OK ? size : -1); -sendmsg_emsgsize: - sock_set_errno(sock, EMSGSIZE); - netbuf_free(&chain_buf); - done_socket(sock); - return -1; - } -#else /* LWIP_UDP || LWIP_RAW */ - sock_set_errno(sock, err_to_errno(ERR_ARG)); - done_socket(sock); - return -1; -#endif /* LWIP_UDP || LWIP_RAW */ -} - -ssize_t -lwip_sendto(int s, const void *data, size_t size, int flags, - const struct sockaddr *to, socklen_t tolen) -{ - struct lwip_sock *sock; - err_t err; - u16_t short_size; - u16_t remote_port; - struct netbuf buf; - - sock = get_socket(s); - if (!sock) { - return -1; - } - - if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP) { -#if LWIP_TCP - done_socket(sock); - return lwip_send(s, data, size, flags); -#else /* LWIP_TCP */ - LWIP_UNUSED_ARG(flags); - sock_set_errno(sock, err_to_errno(ERR_ARG)); - done_socket(sock); - return -1; -#endif /* LWIP_TCP */ - } - - if (size > LWIP_MIN(0xFFFF, SSIZE_MAX)) { - /* cannot fit into one datagram (at least for us) */ - sock_set_errno(sock, EMSGSIZE); - done_socket(sock); - return -1; - } - short_size = (u16_t)size; - LWIP_ERROR("lwip_sendto: invalid address", (((to == NULL) && (tolen == 0)) || - (IS_SOCK_ADDR_LEN_VALID(tolen) && - ((to != NULL) && (IS_SOCK_ADDR_TYPE_VALID(to) && IS_SOCK_ADDR_ALIGNED(to))))), - sock_set_errno(sock, err_to_errno(ERR_ARG)); done_socket(sock); return -1;); - LWIP_UNUSED_ARG(tolen); - - /* initialize a buffer */ - buf.p = buf.ptr = NULL; -#if LWIP_CHECKSUM_ON_COPY - buf.flags = 0; -#endif /* LWIP_CHECKSUM_ON_COPY */ - if (to) { - SOCKADDR_TO_IPADDR_PORT(to, &buf.addr, remote_port); - } else { - remote_port = 0; - ip_addr_set_any(NETCONNTYPE_ISIPV6(netconn_type(sock->conn)), &buf.addr); - } - netbuf_fromport(&buf) = remote_port; - - - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_sendto(%d, data=%p, short_size=%"U16_F", flags=0x%x to=", - s, data, short_size, flags)); - ip_addr_debug_print_val(SOCKETS_DEBUG, buf.addr); - LWIP_DEBUGF(SOCKETS_DEBUG, (" port=%"U16_F"\n", remote_port)); - - /* make the buffer point to the data that should be sent */ -#if LWIP_NETIF_TX_SINGLE_PBUF - /* Allocate a new netbuf and copy the data into it. */ - if (netbuf_alloc(&buf, short_size) == NULL) { - err = ERR_MEM; - } else { -#if LWIP_CHECKSUM_ON_COPY - if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) != NETCONN_RAW) { - u16_t chksum = LWIP_CHKSUM_COPY(buf.p->payload, data, short_size); - netbuf_set_chksum(&buf, chksum); - } else -#endif /* LWIP_CHECKSUM_ON_COPY */ - { - MEMCPY(buf.p->payload, data, short_size); - } - err = ERR_OK; - } -#else /* LWIP_NETIF_TX_SINGLE_PBUF */ - err = netbuf_ref(&buf, data, short_size); -#endif /* LWIP_NETIF_TX_SINGLE_PBUF */ - if (err == ERR_OK) { -#if LWIP_IPV4 && LWIP_IPV6 - /* Dual-stack: Unmap IPv4 mapped IPv6 addresses */ - if (IP_IS_V6_VAL(buf.addr) && ip6_addr_isipv4mappedipv6(ip_2_ip6(&buf.addr))) { - unmap_ipv4_mapped_ipv6(ip_2_ip4(&buf.addr), ip_2_ip6(&buf.addr)); - IP_SET_TYPE_VAL(buf.addr, IPADDR_TYPE_V4); - } -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - - /* send the data */ - err = netconn_send(sock->conn, &buf); - } - - /* deallocated the buffer */ - netbuf_free(&buf); - - sock_set_errno(sock, err_to_errno(err)); - done_socket(sock); - return (err == ERR_OK ? short_size : -1); -} - -int -lwip_socket(int domain, int type, int protocol) -{ - struct netconn *conn; - int i; - - LWIP_UNUSED_ARG(domain); /* @todo: check this */ - - /* create a netconn */ - switch (type) { - case SOCK_RAW: - conn = netconn_new_with_proto_and_callback(DOMAIN_TO_NETCONN_TYPE(domain, NETCONN_RAW), - (u8_t)protocol, DEFAULT_SOCKET_EVENTCB); - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_socket(%s, SOCK_RAW, %d) = ", - domain == PF_INET ? "PF_INET" : "UNKNOWN", protocol)); - break; - case SOCK_DGRAM: - conn = netconn_new_with_callback(DOMAIN_TO_NETCONN_TYPE(domain, - ((protocol == IPPROTO_UDPLITE) ? NETCONN_UDPLITE : NETCONN_UDP)), - DEFAULT_SOCKET_EVENTCB); - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_socket(%s, SOCK_DGRAM, %d) = ", - domain == PF_INET ? "PF_INET" : "UNKNOWN", protocol)); -#if LWIP_NETBUF_RECVINFO - if (conn) { - /* netconn layer enables pktinfo by default, sockets default to off */ - conn->flags &= ~NETCONN_FLAG_PKTINFO; - } -#endif /* LWIP_NETBUF_RECVINFO */ - break; - case SOCK_STREAM: - conn = netconn_new_with_callback(DOMAIN_TO_NETCONN_TYPE(domain, NETCONN_TCP), DEFAULT_SOCKET_EVENTCB); - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_socket(%s, SOCK_STREAM, %d) = ", - domain == PF_INET ? "PF_INET" : "UNKNOWN", protocol)); - break; - default: - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_socket(%d, %d/UNKNOWN, %d) = -1\n", - domain, type, protocol)); - set_errno(EINVAL); - return -1; - } - - if (!conn) { - LWIP_DEBUGF(SOCKETS_DEBUG, ("-1 / ENOBUFS (could not create netconn)\n")); - set_errno(ENOBUFS); - return -1; - } - - i = alloc_socket(conn, 0); - - if (i == -1) { - netconn_delete(conn); - set_errno(ENFILE); - return -1; - } - conn->socket = i; - done_socket(&sockets[i - LWIP_SOCKET_OFFSET]); - LWIP_DEBUGF(SOCKETS_DEBUG, ("%d\n", i)); - set_errno(0); - return i; -} - -ssize_t -lwip_write(int s, const void *data, size_t size) -{ - return lwip_send(s, data, size, 0); -} - -ssize_t -lwip_writev(int s, const struct iovec *iov, int iovcnt) -{ - struct msghdr msg; - - msg.msg_name = NULL; - msg.msg_namelen = 0; - /* Hack: we have to cast via number to cast from 'const' pointer to non-const. - Blame the opengroup standard for this inconsistency. */ - msg.msg_iov = LWIP_CONST_CAST(struct iovec *, iov); - msg.msg_iovlen = iovcnt; - msg.msg_control = NULL; - msg.msg_controllen = 0; - msg.msg_flags = 0; - return lwip_sendmsg(s, &msg, 0); -} - -#if LWIP_SOCKET_SELECT || LWIP_SOCKET_POLL -/* Add select_cb to select_cb_list. */ -static void -lwip_link_select_cb(struct lwip_select_cb *select_cb) -{ - LWIP_SOCKET_SELECT_DECL_PROTECT(lev); - - /* Protect the select_cb_list */ - LWIP_SOCKET_SELECT_PROTECT(lev); - - /* Put this select_cb on top of list */ - select_cb->next = select_cb_list; - if (select_cb_list != NULL) { - select_cb_list->prev = select_cb; - } - select_cb_list = select_cb; -#if !LWIP_TCPIP_CORE_LOCKING - /* Increasing this counter tells select_check_waiters that the list has changed. */ - select_cb_ctr++; -#endif - - /* Now we can safely unprotect */ - LWIP_SOCKET_SELECT_UNPROTECT(lev); -} - -/* Remove select_cb from select_cb_list. */ -static void -lwip_unlink_select_cb(struct lwip_select_cb *select_cb) -{ - LWIP_SOCKET_SELECT_DECL_PROTECT(lev); - - /* Take us off the list */ - LWIP_SOCKET_SELECT_PROTECT(lev); - if (select_cb->next != NULL) { - select_cb->next->prev = select_cb->prev; - } - if (select_cb_list == select_cb) { - LWIP_ASSERT("select_cb->prev == NULL", select_cb->prev == NULL); - select_cb_list = select_cb->next; - } else { - LWIP_ASSERT("select_cb->prev != NULL", select_cb->prev != NULL); - select_cb->prev->next = select_cb->next; - } -#if !LWIP_TCPIP_CORE_LOCKING - /* Increasing this counter tells select_check_waiters that the list has changed. */ - select_cb_ctr++; -#endif - LWIP_SOCKET_SELECT_UNPROTECT(lev); -} -#endif /* LWIP_SOCKET_SELECT || LWIP_SOCKET_POLL */ - -#if LWIP_SOCKET_SELECT -/** - * Go through the readset and writeset lists and see which socket of the sockets - * set in the sets has events. On return, readset, writeset and exceptset have - * the sockets enabled that had events. - * - * @param maxfdp1 the highest socket index in the sets - * @param readset_in set of sockets to check for read events - * @param writeset_in set of sockets to check for write events - * @param exceptset_in set of sockets to check for error events - * @param readset_out set of sockets that had read events - * @param writeset_out set of sockets that had write events - * @param exceptset_out set os sockets that had error events - * @return number of sockets that had events (read/write/exception) (>= 0) - */ -static int -lwip_selscan(int maxfdp1, fd_set *readset_in, fd_set *writeset_in, fd_set *exceptset_in, - fd_set *readset_out, fd_set *writeset_out, fd_set *exceptset_out) -{ - int i, nready = 0; - fd_set lreadset, lwriteset, lexceptset; - struct lwip_sock *sock; - SYS_ARCH_DECL_PROTECT(lev); - - FD_ZERO(&lreadset); - FD_ZERO(&lwriteset); - FD_ZERO(&lexceptset); - - /* Go through each socket in each list to count number of sockets which - currently match */ - for (i = LWIP_SOCKET_OFFSET; i < maxfdp1; i++) { - /* if this FD is not in the set, continue */ - if (!(readset_in && FD_ISSET(i, readset_in)) && - !(writeset_in && FD_ISSET(i, writeset_in)) && - !(exceptset_in && FD_ISSET(i, exceptset_in))) { - continue; - } - /* First get the socket's status (protected)... */ - SYS_ARCH_PROTECT(lev); - sock = tryget_socket_unconn_locked(i); - if (sock != NULL) { - void *lastdata = sock->lastdata.pbuf; - s16_t rcvevent = sock->rcvevent; - u16_t sendevent = sock->sendevent; - u16_t errevent = sock->errevent; - SYS_ARCH_UNPROTECT(lev); - - /* ... then examine it: */ - /* See if netconn of this socket is ready for read */ - if (readset_in && FD_ISSET(i, readset_in) && ((lastdata != NULL) || (rcvevent > 0))) { - FD_SET(i, &lreadset); - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_selscan: fd=%d ready for reading\n", i)); - nready++; - } - /* See if netconn of this socket is ready for write */ - if (writeset_in && FD_ISSET(i, writeset_in) && (sendevent != 0)) { - FD_SET(i, &lwriteset); - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_selscan: fd=%d ready for writing\n", i)); - nready++; - } - /* See if netconn of this socket had an error */ - if (exceptset_in && FD_ISSET(i, exceptset_in) && (errevent != 0)) { - FD_SET(i, &lexceptset); - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_selscan: fd=%d ready for exception\n", i)); - nready++; - } - done_socket(sock); - } else { - SYS_ARCH_UNPROTECT(lev); - /* no a valid open socket */ - return -1; - } - } - /* copy local sets to the ones provided as arguments */ - *readset_out = lreadset; - *writeset_out = lwriteset; - *exceptset_out = lexceptset; - - LWIP_ASSERT("nready >= 0", nready >= 0); - return nready; -} - -#if LWIP_NETCONN_FULLDUPLEX -/* Mark all of the set sockets in one of the three fdsets passed to select as used. - * All sockets are marked (and later unmarked), whether they are open or not. - * This is OK as lwip_selscan aborts select when non-open sockets are found. - */ -static void -lwip_select_inc_sockets_used_set(int maxfdp, fd_set *fdset, fd_set *used_sockets) -{ - SYS_ARCH_DECL_PROTECT(lev); - if (fdset) { - int i; - for (i = LWIP_SOCKET_OFFSET; i < maxfdp; i++) { - /* if this FD is in the set, lock it (unless already done) */ - if (FD_ISSET(i, fdset) && !FD_ISSET(i, used_sockets)) { - struct lwip_sock *sock; - SYS_ARCH_PROTECT(lev); - sock = tryget_socket_unconn_locked(i); - if (sock != NULL) { - /* leave the socket used until released by lwip_select_dec_sockets_used */ - FD_SET(i, used_sockets); - } - SYS_ARCH_UNPROTECT(lev); - } - } - } -} - -/* Mark all sockets passed to select as used to prevent them from being freed - * from other threads while select is running. - * Marked sockets are added to 'used_sockets' to mark them only once an be able - * to unmark them correctly. - */ -static void -lwip_select_inc_sockets_used(int maxfdp, fd_set *fdset1, fd_set *fdset2, fd_set *fdset3, fd_set *used_sockets) -{ - FD_ZERO(used_sockets); - lwip_select_inc_sockets_used_set(maxfdp, fdset1, used_sockets); - lwip_select_inc_sockets_used_set(maxfdp, fdset2, used_sockets); - lwip_select_inc_sockets_used_set(maxfdp, fdset3, used_sockets); -} - -/* Let go all sockets that were marked as used when starting select */ -static void -lwip_select_dec_sockets_used(int maxfdp, fd_set *used_sockets) -{ - int i; - for (i = LWIP_SOCKET_OFFSET; i < maxfdp; i++) { - /* if this FD is not in the set, continue */ - if (FD_ISSET(i, used_sockets)) { - struct lwip_sock *sock = tryget_socket_unconn_nouse(i); - LWIP_ASSERT("socket gone at the end of select", sock != NULL); - if (sock != NULL) { - done_socket(sock); - } - } - } -} -#else /* LWIP_NETCONN_FULLDUPLEX */ -#define lwip_select_inc_sockets_used(maxfdp1, readset, writeset, exceptset, used_sockets) -#define lwip_select_dec_sockets_used(maxfdp1, used_sockets) -#endif /* LWIP_NETCONN_FULLDUPLEX */ - -int -lwip_select(int maxfdp1, fd_set *readset, fd_set *writeset, fd_set *exceptset, - struct timeval *timeout) -{ - u32_t waitres = 0; - int nready; - fd_set lreadset, lwriteset, lexceptset; - u32_t msectimeout; - int i; - int maxfdp2; -#if LWIP_NETCONN_SEM_PER_THREAD - int waited = 0; -#endif -#if LWIP_NETCONN_FULLDUPLEX - fd_set used_sockets; -#endif - SYS_ARCH_DECL_PROTECT(lev); - - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_select(%d, %p, %p, %p, tvsec=%"S32_F" tvusec=%"S32_F")\n", - maxfdp1, (void *)readset, (void *) writeset, (void *) exceptset, - timeout ? (s32_t)timeout->tv_sec : (s32_t) - 1, - timeout ? (s32_t)timeout->tv_usec : (s32_t) - 1)); - - if ((maxfdp1 < 0) || (maxfdp1 > LWIP_SELECT_MAXNFDS)) { - set_errno(EINVAL); - return -1; - } - - lwip_select_inc_sockets_used(maxfdp1, readset, writeset, exceptset, &used_sockets); - - /* Go through each socket in each list to count number of sockets which - currently match */ - nready = lwip_selscan(maxfdp1, readset, writeset, exceptset, &lreadset, &lwriteset, &lexceptset); - - if (nready < 0) { - /* one of the sockets in one of the fd_sets was invalid */ - set_errno(EBADF); - lwip_select_dec_sockets_used(maxfdp1, &used_sockets); - return -1; - } else if (nready > 0) { - /* one or more sockets are set, no need to wait */ - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_select: nready=%d\n", nready)); - } else { - /* If we don't have any current events, then suspend if we are supposed to */ - if (timeout && timeout->tv_sec == 0 && timeout->tv_usec == 0) { - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_select: no timeout, returning 0\n")); - /* This is OK as the local fdsets are empty and nready is zero, - or we would have returned earlier. */ - } else { - /* None ready: add our semaphore to list: - We don't actually need any dynamic memory. Our entry on the - list is only valid while we are in this function, so it's ok - to use local variables (unless we're running in MPU compatible - mode). */ - API_SELECT_CB_VAR_DECLARE(select_cb); - API_SELECT_CB_VAR_ALLOC(select_cb, set_errno(ENOMEM); lwip_select_dec_sockets_used(maxfdp1, &used_sockets); return -1); - memset(&API_SELECT_CB_VAR_REF(select_cb), 0, sizeof(struct lwip_select_cb)); - - API_SELECT_CB_VAR_REF(select_cb).readset = readset; - API_SELECT_CB_VAR_REF(select_cb).writeset = writeset; - API_SELECT_CB_VAR_REF(select_cb).exceptset = exceptset; -#if LWIP_NETCONN_SEM_PER_THREAD - API_SELECT_CB_VAR_REF(select_cb).sem = LWIP_NETCONN_THREAD_SEM_GET(); -#else /* LWIP_NETCONN_SEM_PER_THREAD */ - if (sys_sem_new(&API_SELECT_CB_VAR_REF(select_cb).sem, 0) != ERR_OK) { - /* failed to create semaphore */ - set_errno(ENOMEM); - lwip_select_dec_sockets_used(maxfdp1, &used_sockets); - API_SELECT_CB_VAR_FREE(select_cb); - return -1; - } -#endif /* LWIP_NETCONN_SEM_PER_THREAD */ - - lwip_link_select_cb(&API_SELECT_CB_VAR_REF(select_cb)); - - /* Increase select_waiting for each socket we are interested in */ - maxfdp2 = maxfdp1; - for (i = LWIP_SOCKET_OFFSET; i < maxfdp1; i++) { - if ((readset && FD_ISSET(i, readset)) || - (writeset && FD_ISSET(i, writeset)) || - (exceptset && FD_ISSET(i, exceptset))) { - struct lwip_sock *sock; - SYS_ARCH_PROTECT(lev); - sock = tryget_socket_unconn_locked(i); - if (sock != NULL) { - sock->select_waiting++; - if (sock->select_waiting == 0) { - /* overflow - too many threads waiting */ - sock->select_waiting--; - nready = -1; - maxfdp2 = i; - SYS_ARCH_UNPROTECT(lev); - done_socket(sock); - set_errno(EBUSY); - break; - } - SYS_ARCH_UNPROTECT(lev); - done_socket(sock); - } else { - /* Not a valid socket */ - nready = -1; - maxfdp2 = i; - SYS_ARCH_UNPROTECT(lev); - set_errno(EBADF); - break; - } - } - } - - if (nready >= 0) { - /* Call lwip_selscan again: there could have been events between - the last scan (without us on the list) and putting us on the list! */ - nready = lwip_selscan(maxfdp1, readset, writeset, exceptset, &lreadset, &lwriteset, &lexceptset); - if (!nready) { - /* Still none ready, just wait to be woken */ - if (timeout == 0) { - /* Wait forever */ - msectimeout = 0; - } else { - long msecs_long = ((timeout->tv_sec * 1000) + ((timeout->tv_usec + 500) / 1000)); - if (msecs_long <= 0) { - /* Wait 1ms at least (0 means wait forever) */ - msectimeout = 1; - } else { - msectimeout = (u32_t)msecs_long; - } - } - - waitres = sys_arch_sem_wait(SELECT_SEM_PTR(API_SELECT_CB_VAR_REF(select_cb).sem), msectimeout); -#if LWIP_NETCONN_SEM_PER_THREAD - waited = 1; -#endif - } - } - - /* Decrease select_waiting for each socket we are interested in */ - for (i = LWIP_SOCKET_OFFSET; i < maxfdp2; i++) { - if ((readset && FD_ISSET(i, readset)) || - (writeset && FD_ISSET(i, writeset)) || - (exceptset && FD_ISSET(i, exceptset))) { - struct lwip_sock *sock; - SYS_ARCH_PROTECT(lev); - sock = tryget_socket_unconn_locked(i); - if (sock != NULL) { - /* for now, handle select_waiting==0... */ - LWIP_ASSERT("sock->select_waiting > 0", sock->select_waiting > 0); - if (sock->select_waiting > 0) { - sock->select_waiting--; - } - SYS_ARCH_UNPROTECT(lev); - done_socket(sock); - } else { - SYS_ARCH_UNPROTECT(lev); - /* Not a valid socket */ - nready = -1; - set_errno(EBADF); - } - } - } - - lwip_unlink_select_cb(&API_SELECT_CB_VAR_REF(select_cb)); - -#if LWIP_NETCONN_SEM_PER_THREAD - if (API_SELECT_CB_VAR_REF(select_cb).sem_signalled && (!waited || (waitres == SYS_ARCH_TIMEOUT))) { - /* don't leave the thread-local semaphore signalled */ - sys_arch_sem_wait(API_SELECT_CB_VAR_REF(select_cb).sem, 1); - } -#else /* LWIP_NETCONN_SEM_PER_THREAD */ - sys_sem_free(&API_SELECT_CB_VAR_REF(select_cb).sem); -#endif /* LWIP_NETCONN_SEM_PER_THREAD */ - API_SELECT_CB_VAR_FREE(select_cb); - - if (nready < 0) { - /* This happens when a socket got closed while waiting */ - lwip_select_dec_sockets_used(maxfdp1, &used_sockets); - return -1; - } - - if (waitres == SYS_ARCH_TIMEOUT) { - /* Timeout */ - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_select: timeout expired\n")); - /* This is OK as the local fdsets are empty and nready is zero, - or we would have returned earlier. */ - } else { - /* See what's set now after waiting */ - nready = lwip_selscan(maxfdp1, readset, writeset, exceptset, &lreadset, &lwriteset, &lexceptset); - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_select: nready=%d\n", nready)); - } - } - } - - lwip_select_dec_sockets_used(maxfdp1, &used_sockets); - set_errno(0); - if (readset) { - *readset = lreadset; - } - if (writeset) { - *writeset = lwriteset; - } - if (exceptset) { - *exceptset = lexceptset; - } - return nready; -} -#endif /* LWIP_SOCKET_SELECT */ - -#if LWIP_SOCKET_POLL -/** Options for the lwip_pollscan function. */ -enum lwip_pollscan_opts -{ - /** Clear revents in each struct pollfd. */ - LWIP_POLLSCAN_CLEAR = 1, - - /** Increment select_waiting in each struct lwip_sock. */ - LWIP_POLLSCAN_INC_WAIT = 2, - - /** Decrement select_waiting in each struct lwip_sock. */ - LWIP_POLLSCAN_DEC_WAIT = 4 -}; - -/** - * Update revents in each struct pollfd. - * Optionally update select_waiting in struct lwip_sock. - * - * @param fds array of structures to update - * @param nfds number of structures in fds - * @param opts what to update and how - * @return number of structures that have revents != 0 - */ -static int -lwip_pollscan(struct pollfd *fds, nfds_t nfds, enum lwip_pollscan_opts opts) -{ - int nready = 0; - nfds_t fdi; - struct lwip_sock *sock; - SYS_ARCH_DECL_PROTECT(lev); - - /* Go through each struct pollfd in the array. */ - for (fdi = 0; fdi < nfds; fdi++) { - if ((opts & LWIP_POLLSCAN_CLEAR) != 0) { - fds[fdi].revents = 0; - } - - /* Negative fd means the caller wants us to ignore this struct. - POLLNVAL means we already detected that the fd is invalid; - if another thread has since opened a new socket with that fd, - we must not use that socket. */ - if (fds[fdi].fd >= 0 && (fds[fdi].revents & POLLNVAL) == 0) { - /* First get the socket's status (protected)... */ - SYS_ARCH_PROTECT(lev); - sock = tryget_socket_unconn_locked(fds[fdi].fd); - if (sock != NULL) { - void* lastdata = sock->lastdata.pbuf; - s16_t rcvevent = sock->rcvevent; - u16_t sendevent = sock->sendevent; - u16_t errevent = sock->errevent; - - if ((opts & LWIP_POLLSCAN_INC_WAIT) != 0) { - sock->select_waiting++; - if (sock->select_waiting == 0) { - /* overflow - too many threads waiting */ - sock->select_waiting--; - nready = -1; - SYS_ARCH_UNPROTECT(lev); - done_socket(sock); - break; - } - } else if ((opts & LWIP_POLLSCAN_DEC_WAIT) != 0) { - /* for now, handle select_waiting==0... */ - LWIP_ASSERT("sock->select_waiting > 0", sock->select_waiting > 0); - if (sock->select_waiting > 0) { - sock->select_waiting--; - } - } - SYS_ARCH_UNPROTECT(lev); - done_socket(sock); - - /* ... then examine it: */ - /* See if netconn of this socket is ready for read */ - if ((fds[fdi].events & POLLIN) != 0 && ((lastdata != NULL) || (rcvevent > 0))) { - fds[fdi].revents |= POLLIN; - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_pollscan: fd=%d ready for reading\n", fds[fdi].fd)); - } - /* See if netconn of this socket is ready for write */ - if ((fds[fdi].events & POLLOUT) != 0 && (sendevent != 0)) { - fds[fdi].revents |= POLLOUT; - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_pollscan: fd=%d ready for writing\n", fds[fdi].fd)); - } - /* See if netconn of this socket had an error */ - if (errevent != 0) { - /* POLLERR is output only. */ - fds[fdi].revents |= POLLERR; - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_pollscan: fd=%d ready for exception\n", fds[fdi].fd)); - } - } else { - /* Not a valid socket */ - SYS_ARCH_UNPROTECT(lev); - /* POLLNVAL is output only. */ - fds[fdi].revents |= POLLNVAL; - return -1; - } - } - - /* Will return the number of structures that have events, - not the number of events. */ - if (fds[fdi].revents != 0) { - nready++; - } - } - - LWIP_ASSERT("nready >= 0", nready >= 0); - return nready; -} - -#if LWIP_NETCONN_FULLDUPLEX -/* Mark all sockets as used. - * - * All sockets are marked (and later unmarked), whether they are open or not. - * This is OK as lwip_pollscan aborts select when non-open sockets are found. - */ -static void -lwip_poll_inc_sockets_used(struct pollfd *fds, nfds_t nfds) -{ - nfds_t fdi; - - if(fds) { - /* Go through each struct pollfd in the array. */ - for (fdi = 0; fdi < nfds; fdi++) { - /* Increase the reference counter */ - tryget_socket_unconn(fds[fdi].fd); - } - } -} - -/* Let go all sockets that were marked as used when starting poll */ -static void -lwip_poll_dec_sockets_used(struct pollfd *fds, nfds_t nfds) -{ - nfds_t fdi; - - if(fds) { - /* Go through each struct pollfd in the array. */ - for (fdi = 0; fdi < nfds; fdi++) { - struct lwip_sock *sock = tryget_socket_unconn_nouse(fds[fdi].fd); - if (sock != NULL) { - done_socket(sock); - } - } - } -} -#else /* LWIP_NETCONN_FULLDUPLEX */ -#define lwip_poll_inc_sockets_used(fds, nfds) -#define lwip_poll_dec_sockets_used(fds, nfds) -#endif /* LWIP_NETCONN_FULLDUPLEX */ - -int -lwip_poll(struct pollfd *fds, nfds_t nfds, int timeout) -{ - u32_t waitres = 0; - int nready; - u32_t msectimeout; -#if LWIP_NETCONN_SEM_PER_THREAD - int waited = 0; -#endif - - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_poll(%p, %d, %d)\n", - (void*)fds, (int)nfds, timeout)); - LWIP_ERROR("lwip_poll: invalid fds", ((fds != NULL && nfds > 0) || (fds == NULL && nfds == 0)), - set_errno(EINVAL); return -1;); - - lwip_poll_inc_sockets_used(fds, nfds); - - /* Go through each struct pollfd to count number of structures - which currently match */ - nready = lwip_pollscan(fds, nfds, LWIP_POLLSCAN_CLEAR); - - if (nready < 0) { - lwip_poll_dec_sockets_used(fds, nfds); - return -1; - } - - /* If we don't have any current events, then suspend if we are supposed to */ - if (!nready) { - API_SELECT_CB_VAR_DECLARE(select_cb); - - if (timeout == 0) { - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_poll: no timeout, returning 0\n")); - goto return_success; - } - API_SELECT_CB_VAR_ALLOC(select_cb, set_errno(EAGAIN); lwip_poll_dec_sockets_used(fds, nfds); return -1); - memset(&API_SELECT_CB_VAR_REF(select_cb), 0, sizeof(struct lwip_select_cb)); - - /* None ready: add our semaphore to list: - We don't actually need any dynamic memory. Our entry on the - list is only valid while we are in this function, so it's ok - to use local variables. */ - - API_SELECT_CB_VAR_REF(select_cb).poll_fds = fds; - API_SELECT_CB_VAR_REF(select_cb).poll_nfds = nfds; -#if LWIP_NETCONN_SEM_PER_THREAD - API_SELECT_CB_VAR_REF(select_cb).sem = LWIP_NETCONN_THREAD_SEM_GET(); -#else /* LWIP_NETCONN_SEM_PER_THREAD */ - if (sys_sem_new(&API_SELECT_CB_VAR_REF(select_cb).sem, 0) != ERR_OK) { - /* failed to create semaphore */ - set_errno(EAGAIN); - lwip_poll_dec_sockets_used(fds, nfds); - API_SELECT_CB_VAR_FREE(select_cb); - return -1; - } -#endif /* LWIP_NETCONN_SEM_PER_THREAD */ - - lwip_link_select_cb(&API_SELECT_CB_VAR_REF(select_cb)); - - /* Increase select_waiting for each socket we are interested in. - Also, check for events again: there could have been events between - the last scan (without us on the list) and putting us on the list! */ - nready = lwip_pollscan(fds, nfds, LWIP_POLLSCAN_INC_WAIT); - - if (!nready) { - /* Still none ready, just wait to be woken */ - if (timeout < 0) { - /* Wait forever */ - msectimeout = 0; - } else { - /* timeout == 0 would have been handled earlier. */ - LWIP_ASSERT("timeout > 0", timeout > 0); - msectimeout = timeout; - } - waitres = sys_arch_sem_wait(SELECT_SEM_PTR(API_SELECT_CB_VAR_REF(select_cb).sem), msectimeout); -#if LWIP_NETCONN_SEM_PER_THREAD - waited = 1; -#endif - } - - /* Decrease select_waiting for each socket we are interested in, - and check which events occurred while we waited. */ - nready = lwip_pollscan(fds, nfds, LWIP_POLLSCAN_DEC_WAIT); - - lwip_unlink_select_cb(&API_SELECT_CB_VAR_REF(select_cb)); - -#if LWIP_NETCONN_SEM_PER_THREAD - if (select_cb.sem_signalled && (!waited || (waitres == SYS_ARCH_TIMEOUT))) { - /* don't leave the thread-local semaphore signalled */ - sys_arch_sem_wait(API_SELECT_CB_VAR_REF(select_cb).sem, 1); - } -#else /* LWIP_NETCONN_SEM_PER_THREAD */ - sys_sem_free(&API_SELECT_CB_VAR_REF(select_cb).sem); -#endif /* LWIP_NETCONN_SEM_PER_THREAD */ - API_SELECT_CB_VAR_FREE(select_cb); - - if (nready < 0) { - /* This happens when a socket got closed while waiting */ - lwip_poll_dec_sockets_used(fds, nfds); - return -1; - } - - if (waitres == SYS_ARCH_TIMEOUT) { - /* Timeout */ - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_poll: timeout expired\n")); - goto return_success; - } - } - - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_poll: nready=%d\n", nready)); -return_success: - lwip_poll_dec_sockets_used(fds, nfds); - set_errno(0); - return nready; -} - -/** - * Check whether event_callback should wake up a thread waiting in - * lwip_poll. - */ -static int -lwip_poll_should_wake(const struct lwip_select_cb *scb, int fd, int has_recvevent, int has_sendevent, int has_errevent) -{ - nfds_t fdi; - for (fdi = 0; fdi < scb->poll_nfds; fdi++) { - const struct pollfd *pollfd = &scb->poll_fds[fdi]; - if (pollfd->fd == fd) { - /* Do not update pollfd->revents right here; - that would be a data race because lwip_pollscan - accesses revents without protecting. */ - if (has_recvevent && (pollfd->events & POLLIN) != 0) { - return 1; - } - if (has_sendevent && (pollfd->events & POLLOUT) != 0) { - return 1; - } - if (has_errevent) { - /* POLLERR is output only. */ - return 1; - } - } - } - return 0; -} -#endif /* LWIP_SOCKET_POLL */ - -#if LWIP_SOCKET_SELECT || LWIP_SOCKET_POLL -/** - * Callback registered in the netconn layer for each socket-netconn. - * Processes recvevent (data available) and wakes up tasks waiting for select. - * - * @note for LWIP_TCPIP_CORE_LOCKING any caller of this function - * must have the core lock held when signaling the following events - * as they might cause select_list_cb to be checked: - * NETCONN_EVT_RCVPLUS - * NETCONN_EVT_SENDPLUS - * NETCONN_EVT_ERROR - * This requirement will be asserted in select_check_waiters() - */ -static void -event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len) -{ - int s, check_waiters; - struct lwip_sock *sock; - SYS_ARCH_DECL_PROTECT(lev); - - LWIP_UNUSED_ARG(len); - - /* Get socket */ - if (conn) { - s = conn->socket; - if (s < 0) { - /* Data comes in right away after an accept, even though - * the server task might not have created a new socket yet. - * Just count down (or up) if that's the case and we - * will use the data later. Note that only receive events - * can happen before the new socket is set up. */ - SYS_ARCH_PROTECT(lev); - if (conn->socket < 0) { - if (evt == NETCONN_EVT_RCVPLUS) { - /* conn->socket is -1 on initialization - lwip_accept adjusts sock->recvevent if conn->socket < -1 */ - conn->socket--; - } - SYS_ARCH_UNPROTECT(lev); - return; - } - s = conn->socket; - SYS_ARCH_UNPROTECT(lev); - } - - sock = get_socket(s); - if (!sock) { - return; - } - } else { - return; - } - - check_waiters = 1; - SYS_ARCH_PROTECT(lev); - /* Set event as required */ - switch (evt) { - case NETCONN_EVT_RCVPLUS: - sock->rcvevent++; - if (sock->rcvevent > 1) { - check_waiters = 0; - } - break; - case NETCONN_EVT_RCVMINUS: - sock->rcvevent--; - check_waiters = 0; - break; - case NETCONN_EVT_SENDPLUS: - if (sock->sendevent) { - check_waiters = 0; - } - sock->sendevent = 1; - break; - case NETCONN_EVT_SENDMINUS: - sock->sendevent = 0; - check_waiters = 0; - break; - case NETCONN_EVT_ERROR: - sock->errevent = 1; - break; - default: - LWIP_ASSERT("unknown event", 0); - break; - } - - if (sock->select_waiting && check_waiters) { - /* Save which events are active */ - int has_recvevent, has_sendevent, has_errevent; - has_recvevent = sock->rcvevent > 0; - has_sendevent = sock->sendevent != 0; - has_errevent = sock->errevent != 0; - SYS_ARCH_UNPROTECT(lev); - /* Check any select calls waiting on this socket */ - select_check_waiters(s, has_recvevent, has_sendevent, has_errevent); - } else { - SYS_ARCH_UNPROTECT(lev); - } - done_socket(sock); -} - -/** - * Check if any select waiters are waiting on this socket and its events - * - * @note on synchronization of select_cb_list: - * LWIP_TCPIP_CORE_LOCKING: the select_cb_list must only be accessed while holding - * the core lock. We do a single pass through the list and signal any waiters. - * Core lock should already be held when calling here!!!! - - * !LWIP_TCPIP_CORE_LOCKING: we use SYS_ARCH_PROTECT but unlock on each iteration - * of the loop, thus creating a possibility where a thread could modify the - * select_cb_list during our UNPROTECT/PROTECT. We use a generational counter to - * detect this change and restart the list walk. The list is expected to be small - */ -static void select_check_waiters(int s, int has_recvevent, int has_sendevent, int has_errevent) -{ - struct lwip_select_cb *scb; -#if !LWIP_TCPIP_CORE_LOCKING - int last_select_cb_ctr; - SYS_ARCH_DECL_PROTECT(lev); -#endif /* !LWIP_TCPIP_CORE_LOCKING */ - - LWIP_ASSERT_CORE_LOCKED(); - -#if !LWIP_TCPIP_CORE_LOCKING - SYS_ARCH_PROTECT(lev); -again: - /* remember the state of select_cb_list to detect changes */ - last_select_cb_ctr = select_cb_ctr; -#endif /* !LWIP_TCPIP_CORE_LOCKING */ - for (scb = select_cb_list; scb != NULL; scb = scb->next) { - if (scb->sem_signalled == 0) { - /* semaphore not signalled yet */ - int do_signal = 0; -#if LWIP_SOCKET_POLL - if (scb->poll_fds != NULL) { - do_signal = lwip_poll_should_wake(scb, s, has_recvevent, has_sendevent, has_errevent); - } -#endif /* LWIP_SOCKET_POLL */ -#if LWIP_SOCKET_SELECT && LWIP_SOCKET_POLL - else -#endif /* LWIP_SOCKET_SELECT && LWIP_SOCKET_POLL */ -#if LWIP_SOCKET_SELECT - { - /* Test this select call for our socket */ - if (has_recvevent) { - if (scb->readset && FD_ISSET(s, scb->readset)) { - do_signal = 1; - } - } - if (has_sendevent) { - if (!do_signal && scb->writeset && FD_ISSET(s, scb->writeset)) { - do_signal = 1; - } - } - if (has_errevent) { - if (!do_signal && scb->exceptset && FD_ISSET(s, scb->exceptset)) { - do_signal = 1; - } - } - } -#endif /* LWIP_SOCKET_SELECT */ - if (do_signal) { - scb->sem_signalled = 1; - /* For !LWIP_TCPIP_CORE_LOCKING, we don't call SYS_ARCH_UNPROTECT() before signaling - the semaphore, as this might lead to the select thread taking itself off the list, - invalidating the semaphore. */ - sys_sem_signal(SELECT_SEM_PTR(scb->sem)); - } - } -#if LWIP_TCPIP_CORE_LOCKING - } -#else - /* unlock interrupts with each step */ - SYS_ARCH_UNPROTECT(lev); - /* this makes sure interrupt protection time is short */ - SYS_ARCH_PROTECT(lev); - if (last_select_cb_ctr != select_cb_ctr) { - /* someone has changed select_cb_list, restart at the beginning */ - goto again; - } - /* remember the state of select_cb_list to detect changes */ - last_select_cb_ctr = select_cb_ctr; - } - SYS_ARCH_UNPROTECT(lev); -#endif -} -#endif /* LWIP_SOCKET_SELECT || LWIP_SOCKET_POLL */ - -/** - * Close one end of a full-duplex connection. - */ -int -lwip_shutdown(int s, int how) -{ - struct lwip_sock *sock; - err_t err; - u8_t shut_rx = 0, shut_tx = 0; - - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_shutdown(%d, how=%d)\n", s, how)); - - sock = get_socket(s); - if (!sock) { - return -1; - } - - if (sock->conn != NULL) { - if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) != NETCONN_TCP) { - sock_set_errno(sock, EOPNOTSUPP); - done_socket(sock); - return -1; - } - } else { - sock_set_errno(sock, ENOTCONN); - done_socket(sock); - return -1; - } - - if (how == SHUT_RD) { - shut_rx = 1; - } else if (how == SHUT_WR) { - shut_tx = 1; - } else if (how == SHUT_RDWR) { - shut_rx = 1; - shut_tx = 1; - } else { - sock_set_errno(sock, EINVAL); - done_socket(sock); - return -1; - } - err = netconn_shutdown(sock->conn, shut_rx, shut_tx); - - sock_set_errno(sock, err_to_errno(err)); - done_socket(sock); - return (err == ERR_OK ? 0 : -1); -} - -static int -lwip_getaddrname(int s, struct sockaddr *name, socklen_t *namelen, u8_t local) -{ - struct lwip_sock *sock; - union sockaddr_aligned saddr; - ip_addr_t naddr; - u16_t port; - err_t err; - - sock = get_socket(s); - if (!sock) { - return -1; - } - - /* get the IP address and port */ - err = netconn_getaddr(sock->conn, &naddr, &port, local); - if (err != ERR_OK) { - sock_set_errno(sock, err_to_errno(err)); - done_socket(sock); - return -1; - } - -#if LWIP_IPV4 && LWIP_IPV6 - /* Dual-stack: Map IPv4 addresses to IPv4 mapped IPv6 */ - if (NETCONNTYPE_ISIPV6(netconn_type(sock->conn)) && - IP_IS_V4_VAL(naddr)) { - ip4_2_ipv4_mapped_ipv6(ip_2_ip6(&naddr), ip_2_ip4(&naddr)); - IP_SET_TYPE_VAL(naddr, IPADDR_TYPE_V6); - } -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - - IPADDR_PORT_TO_SOCKADDR(&saddr, &naddr, port); - - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getaddrname(%d, addr=", s)); - ip_addr_debug_print_val(SOCKETS_DEBUG, naddr); - LWIP_DEBUGF(SOCKETS_DEBUG, (" port=%"U16_F")\n", port)); - - if (*namelen > saddr.sa.sa_len) { - *namelen = saddr.sa.sa_len; - } - MEMCPY(name, &saddr, *namelen); - - sock_set_errno(sock, 0); - done_socket(sock); - return 0; -} - -int -lwip_getpeername(int s, struct sockaddr *name, socklen_t *namelen) -{ - return lwip_getaddrname(s, name, namelen, 0); -} - -int -lwip_getsockname(int s, struct sockaddr *name, socklen_t *namelen) -{ - return lwip_getaddrname(s, name, namelen, 1); -} - -int -lwip_getsockopt(int s, int level, int optname, void *optval, socklen_t *optlen) -{ - int err; - struct lwip_sock *sock = get_socket(s); -#if !LWIP_TCPIP_CORE_LOCKING - err_t cberr; - LWIP_SETGETSOCKOPT_DATA_VAR_DECLARE(data); -#endif /* !LWIP_TCPIP_CORE_LOCKING */ - - if (!sock) { - return -1; - } - - if ((NULL == optval) || (NULL == optlen)) { - sock_set_errno(sock, EFAULT); - done_socket(sock); - return -1; - } - -#if LWIP_TCPIP_CORE_LOCKING - /* core-locking can just call the -impl function */ - LOCK_TCPIP_CORE(); - err = lwip_getsockopt_impl(s, level, optname, optval, optlen); - UNLOCK_TCPIP_CORE(); - -#else /* LWIP_TCPIP_CORE_LOCKING */ - -#if LWIP_MPU_COMPATIBLE - /* MPU_COMPATIBLE copies the optval data, so check for max size here */ - if (*optlen > LWIP_SETGETSOCKOPT_MAXOPTLEN) { - sock_set_errno(sock, ENOBUFS); - done_socket(sock); - return -1; - } -#endif /* LWIP_MPU_COMPATIBLE */ - - LWIP_SETGETSOCKOPT_DATA_VAR_ALLOC(data, sock); - LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).s = s; - LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).level = level; - LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).optname = optname; - LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).optlen = *optlen; -#if !LWIP_MPU_COMPATIBLE - LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).optval.p = optval; -#endif /* !LWIP_MPU_COMPATIBLE */ - LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).err = 0; -#if LWIP_NETCONN_SEM_PER_THREAD - LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).completed_sem = LWIP_NETCONN_THREAD_SEM_GET(); -#else - LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).completed_sem = &sock->conn->op_completed; -#endif - cberr = tcpip_callback(lwip_getsockopt_callback, &LWIP_SETGETSOCKOPT_DATA_VAR_REF(data)); - if (cberr != ERR_OK) { - LWIP_SETGETSOCKOPT_DATA_VAR_FREE(data); - sock_set_errno(sock, err_to_errno(cberr)); - done_socket(sock); - return -1; - } - sys_arch_sem_wait((sys_sem_t *)(LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).completed_sem), 0); - - /* write back optlen and optval */ - *optlen = LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).optlen; -#if LWIP_MPU_COMPATIBLE - MEMCPY(optval, LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).optval, - LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).optlen); -#endif /* LWIP_MPU_COMPATIBLE */ - - /* maybe lwip_getsockopt_internal has changed err */ - err = LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).err; - LWIP_SETGETSOCKOPT_DATA_VAR_FREE(data); -#endif /* LWIP_TCPIP_CORE_LOCKING */ - - sock_set_errno(sock, err); - done_socket(sock); - return err ? -1 : 0; -} - -#if !LWIP_TCPIP_CORE_LOCKING -/** lwip_getsockopt_callback: only used without CORE_LOCKING - * to get into the tcpip_thread - */ -static void -lwip_getsockopt_callback(void *arg) -{ - struct lwip_setgetsockopt_data *data; - LWIP_ASSERT("arg != NULL", arg != NULL); - data = (struct lwip_setgetsockopt_data *)arg; - - data->err = lwip_getsockopt_impl(data->s, data->level, data->optname, -#if LWIP_MPU_COMPATIBLE - data->optval, -#else /* LWIP_MPU_COMPATIBLE */ - data->optval.p, -#endif /* LWIP_MPU_COMPATIBLE */ - &data->optlen); - - sys_sem_signal((sys_sem_t *)(data->completed_sem)); -} -#endif /* LWIP_TCPIP_CORE_LOCKING */ - -static int -lwip_sockopt_to_ipopt(int optname) -{ - /* Map SO_* values to our internal SOF_* values - * We should not rely on #defines in socket.h - * being in sync with ip.h. - */ - switch (optname) { - case SO_BROADCAST: - return SOF_BROADCAST; - case SO_KEEPALIVE: - return SOF_KEEPALIVE; - case SO_REUSEADDR: - return SOF_REUSEADDR; - default: - LWIP_ASSERT("Unknown socket option", 0); - return 0; - } -} - -/** lwip_getsockopt_impl: the actual implementation of getsockopt: - * same argument as lwip_getsockopt, either called directly or through callback - */ -static int -lwip_getsockopt_impl(int s, int level, int optname, void *optval, socklen_t *optlen) -{ - int err = 0; - struct lwip_sock *sock = tryget_socket(s); - if (!sock) { - return EBADF; - } - -#ifdef LWIP_HOOK_SOCKETS_GETSOCKOPT - if (LWIP_HOOK_SOCKETS_GETSOCKOPT(s, sock, level, optname, optval, optlen, &err)) { - return err; - } -#endif - - switch (level) { - - /* Level: SOL_SOCKET */ - case SOL_SOCKET: - switch (optname) { - -#if LWIP_TCP - case SO_ACCEPTCONN: - LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB(sock, *optlen, int); - if (NETCONNTYPE_GROUP(sock->conn->type) != NETCONN_TCP) { - done_socket(sock); - return ENOPROTOOPT; - } - if ((sock->conn->pcb.tcp != NULL) && (sock->conn->pcb.tcp->state == LISTEN)) { - *(int *)optval = 1; - } else { - *(int *)optval = 0; - } - break; -#endif /* LWIP_TCP */ - - /* The option flags */ - case SO_BROADCAST: - case SO_KEEPALIVE: -#if SO_REUSE - case SO_REUSEADDR: -#endif /* SO_REUSE */ - if ((optname == SO_BROADCAST) && - (NETCONNTYPE_GROUP(sock->conn->type) != NETCONN_UDP)) { - done_socket(sock); - return ENOPROTOOPT; - } - - optname = lwip_sockopt_to_ipopt(optname); - - LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB(sock, *optlen, int); - *(int *)optval = ip_get_option(sock->conn->pcb.ip, optname); - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getsockopt(%d, SOL_SOCKET, optname=0x%x, ..) = %s\n", - s, optname, (*(int *)optval ? "on" : "off"))); - break; - - case SO_TYPE: - LWIP_SOCKOPT_CHECK_OPTLEN_CONN(sock, *optlen, int); - switch (NETCONNTYPE_GROUP(netconn_type(sock->conn))) { - case NETCONN_RAW: - *(int *)optval = SOCK_RAW; - break; - case NETCONN_TCP: - *(int *)optval = SOCK_STREAM; - break; - case NETCONN_UDP: - *(int *)optval = SOCK_DGRAM; - break; - default: /* unrecognized socket type */ - *(int *)optval = netconn_type(sock->conn); - LWIP_DEBUGF(SOCKETS_DEBUG, - ("lwip_getsockopt(%d, SOL_SOCKET, SO_TYPE): unrecognized socket type %d\n", - s, *(int *)optval)); - } /* switch (netconn_type(sock->conn)) */ - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getsockopt(%d, SOL_SOCKET, SO_TYPE) = %d\n", - s, *(int *)optval)); - break; - - case SO_ERROR: - LWIP_SOCKOPT_CHECK_OPTLEN(sock, *optlen, int); - *(int *)optval = err_to_errno(netconn_err(sock->conn)); - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getsockopt(%d, SOL_SOCKET, SO_ERROR) = %d\n", - s, *(int *)optval)); - break; - -#if LWIP_SO_SNDTIMEO - case SO_SNDTIMEO: - LWIP_SOCKOPT_CHECK_OPTLEN_CONN(sock, *optlen, LWIP_SO_SNDRCVTIMEO_OPTTYPE); - LWIP_SO_SNDRCVTIMEO_SET(optval, netconn_get_sendtimeout(sock->conn)); - break; -#endif /* LWIP_SO_SNDTIMEO */ -#if LWIP_SO_RCVTIMEO - case SO_RCVTIMEO: - LWIP_SOCKOPT_CHECK_OPTLEN_CONN(sock, *optlen, LWIP_SO_SNDRCVTIMEO_OPTTYPE); - LWIP_SO_SNDRCVTIMEO_SET(optval, netconn_get_recvtimeout(sock->conn)); - break; -#endif /* LWIP_SO_RCVTIMEO */ -#if LWIP_SO_RCVBUF - case SO_RCVBUF: - LWIP_SOCKOPT_CHECK_OPTLEN_CONN(sock, *optlen, int); - *(int *)optval = netconn_get_recvbufsize(sock->conn); - break; -#endif /* LWIP_SO_RCVBUF */ -#if LWIP_SO_LINGER - case SO_LINGER: { - s16_t conn_linger; - struct linger *linger = (struct linger *)optval; - LWIP_SOCKOPT_CHECK_OPTLEN_CONN(sock, *optlen, struct linger); - conn_linger = sock->conn->linger; - if (conn_linger >= 0) { - linger->l_onoff = 1; - linger->l_linger = (int)conn_linger; - } else { - linger->l_onoff = 0; - linger->l_linger = 0; - } - } - break; -#endif /* LWIP_SO_LINGER */ -#if LWIP_UDP - case SO_NO_CHECK: - LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB_TYPE(sock, *optlen, int, NETCONN_UDP); -#if LWIP_UDPLITE - if (udp_is_flag_set(sock->conn->pcb.udp, UDP_FLAGS_UDPLITE)) { - /* this flag is only available for UDP, not for UDP lite */ - done_socket(sock); - return EAFNOSUPPORT; - } -#endif /* LWIP_UDPLITE */ - *(int *)optval = udp_is_flag_set(sock->conn->pcb.udp, UDP_FLAGS_NOCHKSUM) ? 1 : 0; - break; -#endif /* LWIP_UDP*/ - default: - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getsockopt(%d, SOL_SOCKET, UNIMPL: optname=0x%x, ..)\n", - s, optname)); - err = ENOPROTOOPT; - break; - } /* switch (optname) */ - break; - - /* Level: IPPROTO_IP */ - case IPPROTO_IP: - switch (optname) { - case IP_TTL: - LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB(sock, *optlen, int); - *(int *)optval = sock->conn->pcb.ip->ttl; - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getsockopt(%d, IPPROTO_IP, IP_TTL) = %d\n", - s, *(int *)optval)); - break; - case IP_TOS: - LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB(sock, *optlen, int); - *(int *)optval = sock->conn->pcb.ip->tos; - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getsockopt(%d, IPPROTO_IP, IP_TOS) = %d\n", - s, *(int *)optval)); - break; -#if LWIP_IPV4 && LWIP_MULTICAST_TX_OPTIONS && LWIP_UDP - case IP_MULTICAST_TTL: - LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB(sock, *optlen, u8_t); - if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) != NETCONN_UDP) { - done_socket(sock); - return ENOPROTOOPT; - } - *(u8_t *)optval = udp_get_multicast_ttl(sock->conn->pcb.udp); - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getsockopt(%d, IPPROTO_IP, IP_MULTICAST_TTL) = %d\n", - s, *(int *)optval)); - break; - case IP_MULTICAST_IF: - LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB(sock, *optlen, struct in_addr); - if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) != NETCONN_UDP) { - done_socket(sock); - return ENOPROTOOPT; - } - inet_addr_from_ip4addr((struct in_addr *)optval, udp_get_multicast_netif_addr(sock->conn->pcb.udp)); - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getsockopt(%d, IPPROTO_IP, IP_MULTICAST_IF) = 0x%"X32_F"\n", - s, *(u32_t *)optval)); - break; - case IP_MULTICAST_LOOP: - LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB(sock, *optlen, u8_t); - if ((sock->conn->pcb.udp->flags & UDP_FLAGS_MULTICAST_LOOP) != 0) { - *(u8_t *)optval = 1; - } else { - *(u8_t *)optval = 0; - } - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getsockopt(%d, IPPROTO_IP, IP_MULTICAST_LOOP) = %d\n", - s, *(int *)optval)); - break; -#endif /* LWIP_IPV4 && LWIP_MULTICAST_TX_OPTIONS && LWIP_UDP */ - default: - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getsockopt(%d, IPPROTO_IP, UNIMPL: optname=0x%x, ..)\n", - s, optname)); - err = ENOPROTOOPT; - break; - } /* switch (optname) */ - break; - -#if LWIP_TCP - /* Level: IPPROTO_TCP */ - case IPPROTO_TCP: - /* Special case: all IPPROTO_TCP option take an int */ - LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB_TYPE(sock, *optlen, int, NETCONN_TCP); - if (sock->conn->pcb.tcp->state == LISTEN) { - done_socket(sock); - return EINVAL; - } - switch (optname) { - case TCP_NODELAY: - *(int *)optval = tcp_nagle_disabled(sock->conn->pcb.tcp); - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getsockopt(%d, IPPROTO_TCP, TCP_NODELAY) = %s\n", - s, (*(int *)optval) ? "on" : "off") ); - break; - case TCP_KEEPALIVE: - *(int *)optval = (int)sock->conn->pcb.tcp->keep_idle; - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getsockopt(%d, IPPROTO_TCP, TCP_KEEPALIVE) = %d\n", - s, *(int *)optval)); - break; - -#if LWIP_TCP_KEEPALIVE - case TCP_KEEPIDLE: - *(int *)optval = (int)(sock->conn->pcb.tcp->keep_idle / 1000); - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getsockopt(%d, IPPROTO_TCP, TCP_KEEPIDLE) = %d\n", - s, *(int *)optval)); - break; - case TCP_KEEPINTVL: - *(int *)optval = (int)(sock->conn->pcb.tcp->keep_intvl / 1000); - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getsockopt(%d, IPPROTO_TCP, TCP_KEEPINTVL) = %d\n", - s, *(int *)optval)); - break; - case TCP_KEEPCNT: - *(int *)optval = (int)sock->conn->pcb.tcp->keep_cnt; - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getsockopt(%d, IPPROTO_TCP, TCP_KEEPCNT) = %d\n", - s, *(int *)optval)); - break; -#endif /* LWIP_TCP_KEEPALIVE */ - default: - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getsockopt(%d, IPPROTO_TCP, UNIMPL: optname=0x%x, ..)\n", - s, optname)); - err = ENOPROTOOPT; - break; - } /* switch (optname) */ - break; -#endif /* LWIP_TCP */ - -#if LWIP_IPV6 - /* Level: IPPROTO_IPV6 */ - case IPPROTO_IPV6: - switch (optname) { - case IPV6_V6ONLY: - LWIP_SOCKOPT_CHECK_OPTLEN_CONN(sock, *optlen, int); - *(int *)optval = (netconn_get_ipv6only(sock->conn) ? 1 : 0); - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getsockopt(%d, IPPROTO_IPV6, IPV6_V6ONLY) = %d\n", - s, *(int *)optval)); - break; - default: - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getsockopt(%d, IPPROTO_IPV6, UNIMPL: optname=0x%x, ..)\n", - s, optname)); - err = ENOPROTOOPT; - break; - } /* switch (optname) */ - break; -#endif /* LWIP_IPV6 */ - -#if LWIP_UDP && LWIP_UDPLITE - /* Level: IPPROTO_UDPLITE */ - case IPPROTO_UDPLITE: - /* Special case: all IPPROTO_UDPLITE option take an int */ - LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB(sock, *optlen, int); - /* If this is no UDP lite socket, ignore any options. */ - if (!NETCONNTYPE_ISUDPLITE(netconn_type(sock->conn))) { - done_socket(sock); - return ENOPROTOOPT; - } - switch (optname) { - case UDPLITE_SEND_CSCOV: - *(int *)optval = sock->conn->pcb.udp->chksum_len_tx; - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getsockopt(%d, IPPROTO_UDPLITE, UDPLITE_SEND_CSCOV) = %d\n", - s, (*(int *)optval)) ); - break; - case UDPLITE_RECV_CSCOV: - *(int *)optval = sock->conn->pcb.udp->chksum_len_rx; - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getsockopt(%d, IPPROTO_UDPLITE, UDPLITE_RECV_CSCOV) = %d\n", - s, (*(int *)optval)) ); - break; - default: - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getsockopt(%d, IPPROTO_UDPLITE, UNIMPL: optname=0x%x, ..)\n", - s, optname)); - err = ENOPROTOOPT; - break; - } /* switch (optname) */ - break; -#endif /* LWIP_UDP */ - /* Level: IPPROTO_RAW */ - case IPPROTO_RAW: - switch (optname) { -#if LWIP_IPV6 && LWIP_RAW - case IPV6_CHECKSUM: - LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB_TYPE(sock, *optlen, int, NETCONN_RAW); - if (sock->conn->pcb.raw->chksum_reqd == 0) { - *(int *)optval = -1; - } else { - *(int *)optval = sock->conn->pcb.raw->chksum_offset; - } - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getsockopt(%d, IPPROTO_RAW, IPV6_CHECKSUM) = %d\n", - s, (*(int *)optval)) ); - break; -#endif /* LWIP_IPV6 && LWIP_RAW */ - default: - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getsockopt(%d, IPPROTO_RAW, UNIMPL: optname=0x%x, ..)\n", - s, optname)); - err = ENOPROTOOPT; - break; - } /* switch (optname) */ - break; - default: - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getsockopt(%d, level=0x%x, UNIMPL: optname=0x%x, ..)\n", - s, level, optname)); - err = ENOPROTOOPT; - break; - } /* switch (level) */ - - done_socket(sock); - return err; -} - -int -lwip_setsockopt(int s, int level, int optname, const void *optval, socklen_t optlen) -{ - int err = 0; - struct lwip_sock *sock = get_socket(s); -#if !LWIP_TCPIP_CORE_LOCKING - err_t cberr; - LWIP_SETGETSOCKOPT_DATA_VAR_DECLARE(data); -#endif /* !LWIP_TCPIP_CORE_LOCKING */ - - if (!sock) { - return -1; - } - - if (NULL == optval) { - sock_set_errno(sock, EFAULT); - done_socket(sock); - return -1; - } - -#if LWIP_TCPIP_CORE_LOCKING - /* core-locking can just call the -impl function */ - LOCK_TCPIP_CORE(); - err = lwip_setsockopt_impl(s, level, optname, optval, optlen); - UNLOCK_TCPIP_CORE(); - -#else /* LWIP_TCPIP_CORE_LOCKING */ - -#if LWIP_MPU_COMPATIBLE - /* MPU_COMPATIBLE copies the optval data, so check for max size here */ - if (optlen > LWIP_SETGETSOCKOPT_MAXOPTLEN) { - sock_set_errno(sock, ENOBUFS); - done_socket(sock); - return -1; - } -#endif /* LWIP_MPU_COMPATIBLE */ - - LWIP_SETGETSOCKOPT_DATA_VAR_ALLOC(data, sock); - LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).s = s; - LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).level = level; - LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).optname = optname; - LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).optlen = optlen; -#if LWIP_MPU_COMPATIBLE - MEMCPY(LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).optval, optval, optlen); -#else /* LWIP_MPU_COMPATIBLE */ - LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).optval.pc = (const void *)optval; -#endif /* LWIP_MPU_COMPATIBLE */ - LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).err = 0; -#if LWIP_NETCONN_SEM_PER_THREAD - LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).completed_sem = LWIP_NETCONN_THREAD_SEM_GET(); -#else - LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).completed_sem = &sock->conn->op_completed; -#endif - cberr = tcpip_callback(lwip_setsockopt_callback, &LWIP_SETGETSOCKOPT_DATA_VAR_REF(data)); - if (cberr != ERR_OK) { - LWIP_SETGETSOCKOPT_DATA_VAR_FREE(data); - sock_set_errno(sock, err_to_errno(cberr)); - done_socket(sock); - return -1; - } - sys_arch_sem_wait((sys_sem_t *)(LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).completed_sem), 0); - - /* maybe lwip_getsockopt_internal has changed err */ - err = LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).err; - LWIP_SETGETSOCKOPT_DATA_VAR_FREE(data); -#endif /* LWIP_TCPIP_CORE_LOCKING */ - - sock_set_errno(sock, err); - done_socket(sock); - return err ? -1 : 0; -} - -#if !LWIP_TCPIP_CORE_LOCKING -/** lwip_setsockopt_callback: only used without CORE_LOCKING - * to get into the tcpip_thread - */ -static void -lwip_setsockopt_callback(void *arg) -{ - struct lwip_setgetsockopt_data *data; - LWIP_ASSERT("arg != NULL", arg != NULL); - data = (struct lwip_setgetsockopt_data *)arg; - - data->err = lwip_setsockopt_impl(data->s, data->level, data->optname, -#if LWIP_MPU_COMPATIBLE - data->optval, -#else /* LWIP_MPU_COMPATIBLE */ - data->optval.pc, -#endif /* LWIP_MPU_COMPATIBLE */ - data->optlen); - - sys_sem_signal((sys_sem_t *)(data->completed_sem)); -} -#endif /* LWIP_TCPIP_CORE_LOCKING */ - -/** lwip_setsockopt_impl: the actual implementation of setsockopt: - * same argument as lwip_setsockopt, either called directly or through callback - */ -static int -lwip_setsockopt_impl(int s, int level, int optname, const void *optval, socklen_t optlen) -{ - int err = 0; - struct lwip_sock *sock = tryget_socket(s); - if (!sock) { - return EBADF; - } - -#ifdef LWIP_HOOK_SOCKETS_SETSOCKOPT - if (LWIP_HOOK_SOCKETS_SETSOCKOPT(s, sock, level, optname, optval, optlen, &err)) { - return err; - } -#endif - - switch (level) { - - /* Level: SOL_SOCKET */ - case SOL_SOCKET: - switch (optname) { - - /* SO_ACCEPTCONN is get-only */ - - /* The option flags */ - case SO_BROADCAST: - case SO_KEEPALIVE: -#if SO_REUSE - case SO_REUSEADDR: -#endif /* SO_REUSE */ - if ((optname == SO_BROADCAST) && - (NETCONNTYPE_GROUP(sock->conn->type) != NETCONN_UDP)) { - done_socket(sock); - return ENOPROTOOPT; - } - - optname = lwip_sockopt_to_ipopt(optname); - - LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB(sock, optlen, int); - if (*(const int *)optval) { - ip_set_option(sock->conn->pcb.ip, optname); - } else { - ip_reset_option(sock->conn->pcb.ip, optname); - } - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_setsockopt(%d, SOL_SOCKET, optname=0x%x, ..) -> %s\n", - s, optname, (*(const int *)optval ? "on" : "off"))); - break; - - /* SO_TYPE is get-only */ - /* SO_ERROR is get-only */ - -#if LWIP_SO_SNDTIMEO - case SO_SNDTIMEO: { - long ms_long; - LWIP_SOCKOPT_CHECK_OPTLEN_CONN(sock, optlen, LWIP_SO_SNDRCVTIMEO_OPTTYPE); - ms_long = LWIP_SO_SNDRCVTIMEO_GET_MS(optval); - if (ms_long < 0) { - done_socket(sock); - return EINVAL; - } - netconn_set_sendtimeout(sock->conn, ms_long); - break; - } -#endif /* LWIP_SO_SNDTIMEO */ -#if LWIP_SO_RCVTIMEO - case SO_RCVTIMEO: { - long ms_long; - LWIP_SOCKOPT_CHECK_OPTLEN_CONN(sock, optlen, LWIP_SO_SNDRCVTIMEO_OPTTYPE); - ms_long = LWIP_SO_SNDRCVTIMEO_GET_MS(optval); - if (ms_long < 0) { - done_socket(sock); - return EINVAL; - } - netconn_set_recvtimeout(sock->conn, (u32_t)ms_long); - break; - } -#endif /* LWIP_SO_RCVTIMEO */ -#if LWIP_SO_RCVBUF - case SO_RCVBUF: - LWIP_SOCKOPT_CHECK_OPTLEN_CONN(sock, optlen, int); - netconn_set_recvbufsize(sock->conn, *(const int *)optval); - break; -#endif /* LWIP_SO_RCVBUF */ -#if LWIP_SO_LINGER - case SO_LINGER: { - const struct linger *linger = (const struct linger *)optval; - LWIP_SOCKOPT_CHECK_OPTLEN_CONN(sock, optlen, struct linger); - if (linger->l_onoff) { - int lingersec = linger->l_linger; - if (lingersec < 0) { - done_socket(sock); - return EINVAL; - } - if (lingersec > 0xFFFF) { - lingersec = 0xFFFF; - } - sock->conn->linger = (s16_t)lingersec; - } else { - sock->conn->linger = -1; - } - } - break; -#endif /* LWIP_SO_LINGER */ -#if LWIP_UDP - case SO_NO_CHECK: - LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB_TYPE(sock, optlen, int, NETCONN_UDP); -#if LWIP_UDPLITE - if (udp_is_flag_set(sock->conn->pcb.udp, UDP_FLAGS_UDPLITE)) { - /* this flag is only available for UDP, not for UDP lite */ - done_socket(sock); - return EAFNOSUPPORT; - } -#endif /* LWIP_UDPLITE */ - if (*(const int *)optval) { - udp_set_flags(sock->conn->pcb.udp, UDP_FLAGS_NOCHKSUM); - } else { - udp_clear_flags(sock->conn->pcb.udp, UDP_FLAGS_NOCHKSUM); - } - break; -#endif /* LWIP_UDP */ - case SO_BINDTODEVICE: { - const struct ifreq *iface; - struct netif *n = NULL; - - LWIP_SOCKOPT_CHECK_OPTLEN_CONN(sock, optlen, struct ifreq); - - iface = (const struct ifreq *)optval; - if (iface->ifr_name[0] != 0) { - n = netif_find(iface->ifr_name); - if (n == NULL) { - done_socket(sock); - return ENODEV; - } - } - - switch (NETCONNTYPE_GROUP(netconn_type(sock->conn))) { -#if LWIP_TCP - case NETCONN_TCP: - tcp_bind_netif(sock->conn->pcb.tcp, n); - break; -#endif -#if LWIP_UDP - case NETCONN_UDP: - udp_bind_netif(sock->conn->pcb.udp, n); - break; -#endif -#if LWIP_RAW - case NETCONN_RAW: - raw_bind_netif(sock->conn->pcb.raw, n); - break; -#endif - default: - LWIP_ASSERT("Unhandled netconn type in SO_BINDTODEVICE", 0); - break; - } - } - break; - default: - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_setsockopt(%d, SOL_SOCKET, UNIMPL: optname=0x%x, ..)\n", - s, optname)); - err = ENOPROTOOPT; - break; - } /* switch (optname) */ - break; - - /* Level: IPPROTO_IP */ - case IPPROTO_IP: - switch (optname) { - case IP_TTL: - LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB(sock, optlen, int); - sock->conn->pcb.ip->ttl = (u8_t)(*(const int *)optval); - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_setsockopt(%d, IPPROTO_IP, IP_TTL, ..) -> %d\n", - s, sock->conn->pcb.ip->ttl)); - break; - case IP_TOS: - LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB(sock, optlen, int); - sock->conn->pcb.ip->tos = (u8_t)(*(const int *)optval); - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_setsockopt(%d, IPPROTO_IP, IP_TOS, ..)-> %d\n", - s, sock->conn->pcb.ip->tos)); - break; -#if LWIP_NETBUF_RECVINFO - case IP_PKTINFO: - LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB_TYPE(sock, optlen, int, NETCONN_UDP); - if (*(const int *)optval) { - sock->conn->flags |= NETCONN_FLAG_PKTINFO; - } else { - sock->conn->flags &= ~NETCONN_FLAG_PKTINFO; - } - break; -#endif /* LWIP_NETBUF_RECVINFO */ -#if LWIP_IPV4 && LWIP_MULTICAST_TX_OPTIONS && LWIP_UDP - case IP_MULTICAST_TTL: - LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB_TYPE(sock, optlen, u8_t, NETCONN_UDP); - udp_set_multicast_ttl(sock->conn->pcb.udp, (u8_t)(*(const u8_t *)optval)); - break; - case IP_MULTICAST_IF: { - ip4_addr_t if_addr; - LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB_TYPE(sock, optlen, struct in_addr, NETCONN_UDP); - inet_addr_to_ip4addr(&if_addr, (const struct in_addr *)optval); - udp_set_multicast_netif_addr(sock->conn->pcb.udp, &if_addr); - } - break; - case IP_MULTICAST_LOOP: - LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB_TYPE(sock, optlen, u8_t, NETCONN_UDP); - if (*(const u8_t *)optval) { - udp_set_flags(sock->conn->pcb.udp, UDP_FLAGS_MULTICAST_LOOP); - } else { - udp_clear_flags(sock->conn->pcb.udp, UDP_FLAGS_MULTICAST_LOOP); - } - break; -#endif /* LWIP_IPV4 && LWIP_MULTICAST_TX_OPTIONS && LWIP_UDP */ -#if LWIP_IGMP - case IP_ADD_MEMBERSHIP: - case IP_DROP_MEMBERSHIP: { - /* If this is a TCP or a RAW socket, ignore these options. */ - err_t igmp_err; - const struct ip_mreq *imr = (const struct ip_mreq *)optval; - ip4_addr_t if_addr; - ip4_addr_t multi_addr; - LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB_TYPE(sock, optlen, struct ip_mreq, NETCONN_UDP); - inet_addr_to_ip4addr(&if_addr, &imr->imr_interface); - inet_addr_to_ip4addr(&multi_addr, &imr->imr_multiaddr); - if (optname == IP_ADD_MEMBERSHIP) { - if (!lwip_socket_register_membership(s, &if_addr, &multi_addr)) { - /* cannot track membership (out of memory) */ - err = ENOMEM; - igmp_err = ERR_OK; - } else { - igmp_err = igmp_joingroup(&if_addr, &multi_addr); - } - } else { - igmp_err = igmp_leavegroup(&if_addr, &multi_addr); - lwip_socket_unregister_membership(s, &if_addr, &multi_addr); - } - if (igmp_err != ERR_OK) { - err = EADDRNOTAVAIL; - } - } - break; -#endif /* LWIP_IGMP */ - default: - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_setsockopt(%d, IPPROTO_IP, UNIMPL: optname=0x%x, ..)\n", - s, optname)); - err = ENOPROTOOPT; - break; - } /* switch (optname) */ - break; - -#if LWIP_TCP - /* Level: IPPROTO_TCP */ - case IPPROTO_TCP: - /* Special case: all IPPROTO_TCP option take an int */ - LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB_TYPE(sock, optlen, int, NETCONN_TCP); - if (sock->conn->pcb.tcp->state == LISTEN) { - done_socket(sock); - return EINVAL; - } - switch (optname) { - case TCP_NODELAY: - if (*(const int *)optval) { - tcp_nagle_disable(sock->conn->pcb.tcp); - } else { - tcp_nagle_enable(sock->conn->pcb.tcp); - } - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_setsockopt(%d, IPPROTO_TCP, TCP_NODELAY) -> %s\n", - s, (*(const int *)optval) ? "on" : "off") ); - break; - case TCP_KEEPALIVE: - sock->conn->pcb.tcp->keep_idle = (u32_t)(*(const int *)optval); - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_setsockopt(%d, IPPROTO_TCP, TCP_KEEPALIVE) -> %"U32_F"\n", - s, sock->conn->pcb.tcp->keep_idle)); - break; - -#if LWIP_TCP_KEEPALIVE - case TCP_KEEPIDLE: - sock->conn->pcb.tcp->keep_idle = 1000 * (u32_t)(*(const int *)optval); - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_setsockopt(%d, IPPROTO_TCP, TCP_KEEPIDLE) -> %"U32_F"\n", - s, sock->conn->pcb.tcp->keep_idle)); - break; - case TCP_KEEPINTVL: - sock->conn->pcb.tcp->keep_intvl = 1000 * (u32_t)(*(const int *)optval); - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_setsockopt(%d, IPPROTO_TCP, TCP_KEEPINTVL) -> %"U32_F"\n", - s, sock->conn->pcb.tcp->keep_intvl)); - break; - case TCP_KEEPCNT: - sock->conn->pcb.tcp->keep_cnt = (u32_t)(*(const int *)optval); - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_setsockopt(%d, IPPROTO_TCP, TCP_KEEPCNT) -> %"U32_F"\n", - s, sock->conn->pcb.tcp->keep_cnt)); - break; -#endif /* LWIP_TCP_KEEPALIVE */ - default: - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_setsockopt(%d, IPPROTO_TCP, UNIMPL: optname=0x%x, ..)\n", - s, optname)); - err = ENOPROTOOPT; - break; - } /* switch (optname) */ - break; -#endif /* LWIP_TCP*/ - -#if LWIP_IPV6 - /* Level: IPPROTO_IPV6 */ - case IPPROTO_IPV6: - switch (optname) { - case IPV6_V6ONLY: - LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB(sock, optlen, int); - if (*(const int *)optval) { - netconn_set_ipv6only(sock->conn, 1); - } else { - netconn_set_ipv6only(sock->conn, 0); - } - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_setsockopt(%d, IPPROTO_IPV6, IPV6_V6ONLY, ..) -> %d\n", - s, (netconn_get_ipv6only(sock->conn) ? 1 : 0))); - break; -#if LWIP_IPV6_MLD - case IPV6_JOIN_GROUP: - case IPV6_LEAVE_GROUP: { - /* If this is a TCP or a RAW socket, ignore these options. */ - err_t mld6_err; - struct netif *netif; - ip6_addr_t multi_addr; - const struct ipv6_mreq *imr = (const struct ipv6_mreq *)optval; - LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB_TYPE(sock, optlen, struct ipv6_mreq, NETCONN_UDP); - inet6_addr_to_ip6addr(&multi_addr, &imr->ipv6mr_multiaddr); - LWIP_ASSERT("Invalid netif index", imr->ipv6mr_interface <= 0xFFu); - netif = netif_get_by_index((u8_t)imr->ipv6mr_interface); - if (netif == NULL) { - err = EADDRNOTAVAIL; - break; - } - - if (optname == IPV6_JOIN_GROUP) { - if (!lwip_socket_register_mld6_membership(s, imr->ipv6mr_interface, &multi_addr)) { - /* cannot track membership (out of memory) */ - err = ENOMEM; - mld6_err = ERR_OK; - } else { - mld6_err = mld6_joingroup_netif(netif, &multi_addr); - } - } else { - mld6_err = mld6_leavegroup_netif(netif, &multi_addr); - lwip_socket_unregister_mld6_membership(s, imr->ipv6mr_interface, &multi_addr); - } - if (mld6_err != ERR_OK) { - err = EADDRNOTAVAIL; - } - } - break; -#endif /* LWIP_IPV6_MLD */ - default: - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_setsockopt(%d, IPPROTO_IPV6, UNIMPL: optname=0x%x, ..)\n", - s, optname)); - err = ENOPROTOOPT; - break; - } /* switch (optname) */ - break; -#endif /* LWIP_IPV6 */ - -#if LWIP_UDP && LWIP_UDPLITE - /* Level: IPPROTO_UDPLITE */ - case IPPROTO_UDPLITE: - /* Special case: all IPPROTO_UDPLITE option take an int */ - LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB(sock, optlen, int); - /* If this is no UDP lite socket, ignore any options. */ - if (!NETCONNTYPE_ISUDPLITE(netconn_type(sock->conn))) { - done_socket(sock); - return ENOPROTOOPT; - } - switch (optname) { - case UDPLITE_SEND_CSCOV: - if ((*(const int *)optval != 0) && ((*(const int *)optval < 8) || (*(const int *)optval > 0xffff))) { - /* don't allow illegal values! */ - sock->conn->pcb.udp->chksum_len_tx = 8; - } else { - sock->conn->pcb.udp->chksum_len_tx = (u16_t) * (const int *)optval; - } - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_setsockopt(%d, IPPROTO_UDPLITE, UDPLITE_SEND_CSCOV) -> %d\n", - s, (*(const int *)optval)) ); - break; - case UDPLITE_RECV_CSCOV: - if ((*(const int *)optval != 0) && ((*(const int *)optval < 8) || (*(const int *)optval > 0xffff))) { - /* don't allow illegal values! */ - sock->conn->pcb.udp->chksum_len_rx = 8; - } else { - sock->conn->pcb.udp->chksum_len_rx = (u16_t) * (const int *)optval; - } - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_setsockopt(%d, IPPROTO_UDPLITE, UDPLITE_RECV_CSCOV) -> %d\n", - s, (*(const int *)optval)) ); - break; - default: - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_setsockopt(%d, IPPROTO_UDPLITE, UNIMPL: optname=0x%x, ..)\n", - s, optname)); - err = ENOPROTOOPT; - break; - } /* switch (optname) */ - break; -#endif /* LWIP_UDP */ - /* Level: IPPROTO_RAW */ - case IPPROTO_RAW: - switch (optname) { -#if LWIP_IPV6 && LWIP_RAW - case IPV6_CHECKSUM: - /* It should not be possible to disable the checksum generation with ICMPv6 - * as per RFC 3542 chapter 3.1 */ - if (sock->conn->pcb.raw->protocol == IPPROTO_ICMPV6) { - done_socket(sock); - return EINVAL; - } - - LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB_TYPE(sock, optlen, int, NETCONN_RAW); - if (*(const int *)optval < 0) { - sock->conn->pcb.raw->chksum_reqd = 0; - } else if (*(const int *)optval & 1) { - /* Per RFC3542, odd offsets are not allowed */ - done_socket(sock); - return EINVAL; - } else { - sock->conn->pcb.raw->chksum_reqd = 1; - sock->conn->pcb.raw->chksum_offset = (u16_t) * (const int *)optval; - } - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_setsockopt(%d, IPPROTO_RAW, IPV6_CHECKSUM, ..) -> %d\n", - s, sock->conn->pcb.raw->chksum_reqd)); - break; -#endif /* LWIP_IPV6 && LWIP_RAW */ - default: - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_setsockopt(%d, IPPROTO_RAW, UNIMPL: optname=0x%x, ..)\n", - s, optname)); - err = ENOPROTOOPT; - break; - } /* switch (optname) */ - break; - default: - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_setsockopt(%d, level=0x%x, UNIMPL: optname=0x%x, ..)\n", - s, level, optname)); - err = ENOPROTOOPT; - break; - } /* switch (level) */ - - done_socket(sock); - return err; -} - -int -lwip_ioctl(int s, long cmd, void *argp) -{ - struct lwip_sock *sock = get_socket(s); - u8_t val; -#if LWIP_SO_RCVBUF - int recv_avail; -#endif /* LWIP_SO_RCVBUF */ - - if (!sock) { - return -1; - } - - switch (cmd) { -#if LWIP_SO_RCVBUF || LWIP_FIONREAD_LINUXMODE - case FIONREAD: - if (!argp) { - sock_set_errno(sock, EINVAL); - done_socket(sock); - return -1; - } -#if LWIP_FIONREAD_LINUXMODE - if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) != NETCONN_TCP) { - struct netbuf *nb; - if (sock->lastdata.netbuf) { - nb = sock->lastdata.netbuf; - *((int *)argp) = nb->p->tot_len; - } else { - struct netbuf *rxbuf; - err_t err = netconn_recv_udp_raw_netbuf_flags(sock->conn, &rxbuf, NETCONN_DONTBLOCK); - if (err != ERR_OK) { - *((int *)argp) = 0; - } else { - sock->lastdata.netbuf = rxbuf; - *((int *)argp) = rxbuf->p->tot_len; - } - } - done_socket(sock); - return 0; - } -#endif /* LWIP_FIONREAD_LINUXMODE */ - -#if LWIP_SO_RCVBUF - /* we come here if either LWIP_FIONREAD_LINUXMODE==0 or this is a TCP socket */ - SYS_ARCH_GET(sock->conn->recv_avail, recv_avail); - if (recv_avail < 0) { - recv_avail = 0; - } - - /* Check if there is data left from the last recv operation. /maq 041215 */ - if (sock->lastdata.netbuf) { - if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP) { - recv_avail += sock->lastdata.pbuf->tot_len; - } else { - recv_avail += sock->lastdata.netbuf->p->tot_len; - } - } - *((int *)argp) = recv_avail; - - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_ioctl(%d, FIONREAD, %p) = %"U16_F"\n", s, argp, *((u16_t *)argp))); - sock_set_errno(sock, 0); - done_socket(sock); - return 0; -#else /* LWIP_SO_RCVBUF */ - break; -#endif /* LWIP_SO_RCVBUF */ -#endif /* LWIP_SO_RCVBUF || LWIP_FIONREAD_LINUXMODE */ - - case (long)FIONBIO: - val = 0; - if (argp && *(int *)argp) { - val = 1; - } - netconn_set_nonblocking(sock->conn, val); - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_ioctl(%d, FIONBIO, %d)\n", s, val)); - sock_set_errno(sock, 0); - done_socket(sock); - return 0; - - default: - break; - } /* switch (cmd) */ - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_ioctl(%d, UNIMPL: 0x%lx, %p)\n", s, cmd, argp)); - sock_set_errno(sock, ENOSYS); /* not yet implemented */ - done_socket(sock); - return -1; -} - -/** A minimal implementation of fcntl. - * Currently only the commands F_GETFL and F_SETFL are implemented. - * The flag O_NONBLOCK and access modes are supported for F_GETFL, only - * the flag O_NONBLOCK is implemented for F_SETFL. - */ -int -lwip_fcntl(int s, int cmd, int val) -{ - struct lwip_sock *sock = get_socket(s); - int ret = -1; - int op_mode = 0; - - if (!sock) { - return -1; - } - - switch (cmd) { - case F_GETFL: - ret = netconn_is_nonblocking(sock->conn) ? O_NONBLOCK : 0; - sock_set_errno(sock, 0); - - if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP) { -#if LWIP_TCPIP_CORE_LOCKING - LOCK_TCPIP_CORE(); -#else - SYS_ARCH_DECL_PROTECT(lev); - /* the proper thing to do here would be to get into the tcpip_thread, - but locking should be OK as well since we only *read* some flags */ - SYS_ARCH_PROTECT(lev); -#endif -#if LWIP_TCP - if (sock->conn->pcb.tcp) { - if (!(sock->conn->pcb.tcp->flags & TF_RXCLOSED)) { - op_mode |= O_RDONLY; - } - if (!(sock->conn->pcb.tcp->flags & TF_FIN)) { - op_mode |= O_WRONLY; - } - } -#endif -#if LWIP_TCPIP_CORE_LOCKING - UNLOCK_TCPIP_CORE(); -#else - SYS_ARCH_UNPROTECT(lev); -#endif - } else { - op_mode |= O_RDWR; - } - - /* ensure O_RDWR for (O_RDONLY|O_WRONLY) != O_RDWR cases */ - ret |= (op_mode == (O_RDONLY | O_WRONLY)) ? O_RDWR : op_mode; - - break; - case F_SETFL: - /* Bits corresponding to the file access mode and the file creation flags [..] that are set in arg shall be ignored */ - val &= ~(O_RDONLY | O_WRONLY | O_RDWR); - if ((val & ~O_NONBLOCK) == 0) { - /* only O_NONBLOCK, all other bits are zero */ - netconn_set_nonblocking(sock->conn, val & O_NONBLOCK); - ret = 0; - sock_set_errno(sock, 0); - } else { - sock_set_errno(sock, ENOSYS); /* not yet implemented */ - } - break; - default: - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_fcntl(%d, UNIMPL: %d, %d)\n", s, cmd, val)); - sock_set_errno(sock, ENOSYS); /* not yet implemented */ - break; - } - done_socket(sock); - return ret; -} - -#if LWIP_COMPAT_SOCKETS == 2 && LWIP_POSIX_SOCKETS_IO_NAMES -int -fcntl(int s, int cmd, ...) -{ - va_list ap; - int val; - - va_start(ap, cmd); - val = va_arg(ap, int); - va_end(ap); - return lwip_fcntl(s, cmd, val); -} -#endif - -const char * -lwip_inet_ntop(int af, const void *src, char *dst, socklen_t size) -{ - const char *ret = NULL; - int size_int = (int)size; - if (size_int < 0) { - set_errno(ENOSPC); - return NULL; - } - switch (af) { -#if LWIP_IPV4 - case AF_INET: - ret = ip4addr_ntoa_r((const ip4_addr_t *)src, dst, size_int); - if (ret == NULL) { - set_errno(ENOSPC); - } - break; -#endif -#if LWIP_IPV6 - case AF_INET6: - ret = ip6addr_ntoa_r((const ip6_addr_t *)src, dst, size_int); - if (ret == NULL) { - set_errno(ENOSPC); - } - break; -#endif - default: - set_errno(EAFNOSUPPORT); - break; - } - return ret; -} - -int -lwip_inet_pton(int af, const char *src, void *dst) -{ - int err; - switch (af) { -#if LWIP_IPV4 - case AF_INET: - err = ip4addr_aton(src, (ip4_addr_t *)dst); - break; -#endif -#if LWIP_IPV6 - case AF_INET6: { - /* convert into temporary variable since ip6_addr_t might be larger - than in6_addr when scopes are enabled */ - ip6_addr_t addr; - err = ip6addr_aton(src, &addr); - if (err) { - memcpy(dst, &addr.addr, sizeof(addr.addr)); - } - break; - } -#endif - default: - err = -1; - set_errno(EAFNOSUPPORT); - break; - } - return err; -} - -#if LWIP_IGMP -/** Register a new IGMP membership. On socket close, the membership is dropped automatically. - * - * ATTENTION: this function is called from tcpip_thread (or under CORE_LOCK). - * - * @return 1 on success, 0 on failure - */ -static int -lwip_socket_register_membership(int s, const ip4_addr_t *if_addr, const ip4_addr_t *multi_addr) -{ - struct lwip_sock *sock = get_socket(s); - int i; - - if (!sock) { - return 0; - } - - for (i = 0; i < LWIP_SOCKET_MAX_MEMBERSHIPS; i++) { - if (socket_ipv4_multicast_memberships[i].sock == NULL) { - socket_ipv4_multicast_memberships[i].sock = sock; - ip4_addr_copy(socket_ipv4_multicast_memberships[i].if_addr, *if_addr); - ip4_addr_copy(socket_ipv4_multicast_memberships[i].multi_addr, *multi_addr); - done_socket(sock); - return 1; - } - } - done_socket(sock); - return 0; -} - -/** Unregister a previously registered membership. This prevents dropping the membership - * on socket close. - * - * ATTENTION: this function is called from tcpip_thread (or under CORE_LOCK). - */ -static void -lwip_socket_unregister_membership(int s, const ip4_addr_t *if_addr, const ip4_addr_t *multi_addr) -{ - struct lwip_sock *sock = get_socket(s); - int i; - - if (!sock) { - return; - } - - for (i = 0; i < LWIP_SOCKET_MAX_MEMBERSHIPS; i++) { - if ((socket_ipv4_multicast_memberships[i].sock == sock) && - ip4_addr_cmp(&socket_ipv4_multicast_memberships[i].if_addr, if_addr) && - ip4_addr_cmp(&socket_ipv4_multicast_memberships[i].multi_addr, multi_addr)) { - socket_ipv4_multicast_memberships[i].sock = NULL; - ip4_addr_set_zero(&socket_ipv4_multicast_memberships[i].if_addr); - ip4_addr_set_zero(&socket_ipv4_multicast_memberships[i].multi_addr); - break; - } - } - done_socket(sock); -} - -/** Drop all memberships of a socket that were not dropped explicitly via setsockopt. - * - * ATTENTION: this function is NOT called from tcpip_thread (or under CORE_LOCK). - */ -static void -lwip_socket_drop_registered_memberships(int s) -{ - struct lwip_sock *sock = get_socket(s); - int i; - - if (!sock) { - return; - } - - for (i = 0; i < LWIP_SOCKET_MAX_MEMBERSHIPS; i++) { - if (socket_ipv4_multicast_memberships[i].sock == sock) { - ip_addr_t multi_addr, if_addr; - ip_addr_copy_from_ip4(multi_addr, socket_ipv4_multicast_memberships[i].multi_addr); - ip_addr_copy_from_ip4(if_addr, socket_ipv4_multicast_memberships[i].if_addr); - socket_ipv4_multicast_memberships[i].sock = NULL; - ip4_addr_set_zero(&socket_ipv4_multicast_memberships[i].if_addr); - ip4_addr_set_zero(&socket_ipv4_multicast_memberships[i].multi_addr); - - netconn_join_leave_group(sock->conn, &multi_addr, &if_addr, NETCONN_LEAVE); - } - } - done_socket(sock); -} -#endif /* LWIP_IGMP */ - -#if LWIP_IPV6_MLD -/** Register a new MLD6 membership. On socket close, the membership is dropped automatically. - * - * ATTENTION: this function is called from tcpip_thread (or under CORE_LOCK). - * - * @return 1 on success, 0 on failure - */ -static int -lwip_socket_register_mld6_membership(int s, unsigned int if_idx, const ip6_addr_t *multi_addr) -{ - struct lwip_sock *sock = get_socket(s); - int i; - - if (!sock) { - return 0; - } - - for (i = 0; i < LWIP_SOCKET_MAX_MEMBERSHIPS; i++) { - if (socket_ipv6_multicast_memberships[i].sock == NULL) { - socket_ipv6_multicast_memberships[i].sock = sock; - socket_ipv6_multicast_memberships[i].if_idx = (u8_t)if_idx; - ip6_addr_copy(socket_ipv6_multicast_memberships[i].multi_addr, *multi_addr); - done_socket(sock); - return 1; - } - } - done_socket(sock); - return 0; -} - -/** Unregister a previously registered MLD6 membership. This prevents dropping the membership - * on socket close. - * - * ATTENTION: this function is called from tcpip_thread (or under CORE_LOCK). - */ -static void -lwip_socket_unregister_mld6_membership(int s, unsigned int if_idx, const ip6_addr_t *multi_addr) -{ - struct lwip_sock *sock = get_socket(s); - int i; - - if (!sock) { - return; - } - - for (i = 0; i < LWIP_SOCKET_MAX_MEMBERSHIPS; i++) { - if ((socket_ipv6_multicast_memberships[i].sock == sock) && - (socket_ipv6_multicast_memberships[i].if_idx == if_idx) && - ip6_addr_cmp(&socket_ipv6_multicast_memberships[i].multi_addr, multi_addr)) { - socket_ipv6_multicast_memberships[i].sock = NULL; - socket_ipv6_multicast_memberships[i].if_idx = NETIF_NO_INDEX; - ip6_addr_set_zero(&socket_ipv6_multicast_memberships[i].multi_addr); - break; - } - } - done_socket(sock); -} - -/** Drop all MLD6 memberships of a socket that were not dropped explicitly via setsockopt. - * - * ATTENTION: this function is NOT called from tcpip_thread (or under CORE_LOCK). - */ -static void -lwip_socket_drop_registered_mld6_memberships(int s) -{ - struct lwip_sock *sock = get_socket(s); - int i; - - if (!sock) { - return; - } - - for (i = 0; i < LWIP_SOCKET_MAX_MEMBERSHIPS; i++) { - if (socket_ipv6_multicast_memberships[i].sock == sock) { - ip_addr_t multi_addr; - u8_t if_idx; - - ip_addr_copy_from_ip6(multi_addr, socket_ipv6_multicast_memberships[i].multi_addr); - if_idx = socket_ipv6_multicast_memberships[i].if_idx; - - socket_ipv6_multicast_memberships[i].sock = NULL; - socket_ipv6_multicast_memberships[i].if_idx = NETIF_NO_INDEX; - ip6_addr_set_zero(&socket_ipv6_multicast_memberships[i].multi_addr); - - netconn_join_leave_group_netif(sock->conn, &multi_addr, if_idx, NETCONN_LEAVE); - } - } - done_socket(sock); -} -#endif /* LWIP_IPV6_MLD */ - -#endif /* LWIP_SOCKET */ diff --git a/Middlewares/Third_Party/LwIP/src/api/tcpip.c b/Middlewares/Third_Party/LwIP/src/api/tcpip.c deleted file mode 100644 index 743553a..0000000 --- a/Middlewares/Third_Party/LwIP/src/api/tcpip.c +++ /dev/null @@ -1,658 +0,0 @@ -/** - * @file - * Sequential API Main thread module - * - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -#include "lwip/opt.h" - -#if !NO_SYS /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/priv/tcpip_priv.h" -#include "lwip/sys.h" -#include "lwip/memp.h" -#include "lwip/mem.h" -#include "lwip/init.h" -#include "lwip/ip.h" -#include "lwip/pbuf.h" -#include "lwip/etharp.h" -#include "netif/ethernet.h" - -#define TCPIP_MSG_VAR_REF(name) API_VAR_REF(name) -#define TCPIP_MSG_VAR_DECLARE(name) API_VAR_DECLARE(struct tcpip_msg, name) -#define TCPIP_MSG_VAR_ALLOC(name) API_VAR_ALLOC(struct tcpip_msg, MEMP_TCPIP_MSG_API, name, ERR_MEM) -#define TCPIP_MSG_VAR_FREE(name) API_VAR_FREE(MEMP_TCPIP_MSG_API, name) - -/* global variables */ -static tcpip_init_done_fn tcpip_init_done; -static void *tcpip_init_done_arg; -static sys_mbox_t tcpip_mbox; - -#if LWIP_TCPIP_CORE_LOCKING -/** The global semaphore to lock the stack. */ -sys_mutex_t lock_tcpip_core; -#endif /* LWIP_TCPIP_CORE_LOCKING */ - -static void tcpip_thread_handle_msg(struct tcpip_msg *msg); - -#if !LWIP_TIMERS -/* wait for a message with timers disabled (e.g. pass a timer-check trigger into tcpip_thread) */ -#define TCPIP_MBOX_FETCH(mbox, msg) sys_mbox_fetch(mbox, msg) -#else /* !LWIP_TIMERS */ -/* wait for a message, timeouts are processed while waiting */ -#define TCPIP_MBOX_FETCH(mbox, msg) tcpip_timeouts_mbox_fetch(mbox, msg) -/** - * Wait (forever) for a message to arrive in an mbox. - * While waiting, timeouts are processed. - * - * @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) -{ - u32_t sleeptime, res; - -again: - LWIP_ASSERT_CORE_LOCKED(); - - sleeptime = sys_timeouts_sleeptime(); - if (sleeptime == SYS_TIMEOUTS_SLEEPTIME_INFINITE) { - UNLOCK_TCPIP_CORE(); - sys_arch_mbox_fetch(mbox, msg, 0); - LOCK_TCPIP_CORE(); - return; - } else if (sleeptime == 0) { - sys_check_timeouts(); - /* We try again to fetch a message from the mbox. */ - goto again; - } - - UNLOCK_TCPIP_CORE(); - res = sys_arch_mbox_fetch(mbox, msg, sleeptime); - LOCK_TCPIP_CORE(); - if (res == SYS_ARCH_TIMEOUT) { - /* If a SYS_ARCH_TIMEOUT value is returned, a timeout occurred - before a message could be fetched. */ - sys_check_timeouts(); - /* We try again to fetch a message from the mbox. */ - goto again; - } -} -#endif /* !LWIP_TIMERS */ - -/** - * The main lwIP thread. This thread has exclusive access to lwIP core functions - * (unless access to them is not locked). Other threads communicate with this - * thread using message boxes. - * - * It also starts all the timers to make sure they are running in the right - * thread context. - * - * @param arg unused argument - */ -static void -tcpip_thread(void *arg) -{ - struct tcpip_msg *msg; - LWIP_UNUSED_ARG(arg); - - LWIP_MARK_TCPIP_THREAD(); - - LOCK_TCPIP_CORE(); - if (tcpip_init_done != NULL) { - tcpip_init_done(tcpip_init_done_arg); - } - - while (1) { /* MAIN Loop */ - LWIP_TCPIP_THREAD_ALIVE(); - /* wait for a message, timeouts are processed while waiting */ - TCPIP_MBOX_FETCH(&tcpip_mbox, (void **)&msg); - if (msg == NULL) { - LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: invalid message: NULL\n")); - LWIP_ASSERT("tcpip_thread: invalid message", 0); - continue; - } - tcpip_thread_handle_msg(msg); - } -} - -/* 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) -{ - switch (msg->type) { -#if !LWIP_TCPIP_CORE_LOCKING - case TCPIP_MSG_API: - LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: API message %p\n", (void *)msg)); - msg->msg.api_msg.function(msg->msg.api_msg.msg); - break; - case TCPIP_MSG_API_CALL: - LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: API CALL message %p\n", (void *)msg)); - msg->msg.api_call.arg->err = msg->msg.api_call.function(msg->msg.api_call.arg); - sys_sem_signal(msg->msg.api_call.sem); - break; -#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) { - pbuf_free(msg->msg.inp.p); - } - memp_free(MEMP_TCPIP_MSG_INPKT, msg); - break; -#endif /* !LWIP_TCPIP_CORE_LOCKING_INPUT */ - -#if LWIP_TCPIP_TIMEOUT && LWIP_TIMERS - case TCPIP_MSG_TIMEOUT: - LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: TIMEOUT %p\n", (void *)msg)); - sys_timeout(msg->msg.tmo.msecs, msg->msg.tmo.h, msg->msg.tmo.arg); - memp_free(MEMP_TCPIP_MSG_API, msg); - break; - case TCPIP_MSG_UNTIMEOUT: - LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: UNTIMEOUT %p\n", (void *)msg)); - sys_untimeout(msg->msg.tmo.h, msg->msg.tmo.arg); - memp_free(MEMP_TCPIP_MSG_API, msg); - 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); - memp_free(MEMP_TCPIP_MSG_API, msg); - break; - - 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); - break; - - default: - LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: invalid message: %d\n", msg->type)); - LWIP_ASSERT("tcpip_thread: invalid message", 0); - break; - } -} - -#ifdef TCPIP_THREAD_TEST -/** Work on queued items in single-threaded test mode */ -int -tcpip_thread_poll_one(void) -{ - int ret = 0; - struct tcpip_msg *msg; - - if (sys_arch_mbox_tryfetch(&tcpip_mbox, (void **)&msg) != SYS_ARCH_TIMEOUT) { - LOCK_TCPIP_CORE(); - if (msg != NULL) { - tcpip_thread_handle_msg(msg); - ret = 1; - } - UNLOCK_TCPIP_CORE(); - } - return ret; -} -#endif - -/** - * Pass a received packet to tcpip_thread for input processing - * - * @param p the received packet - * @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) -{ -#if LWIP_TCPIP_CORE_LOCKING_INPUT - err_t ret; - LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_inpkt: PACKET %p/%p\n", (void *)p, (void *)inp)); - LOCK_TCPIP_CORE(); - ret = input_fn(p, inp); - 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)); - - msg = (struct tcpip_msg *)memp_malloc(MEMP_TCPIP_MSG_INPKT); - if (msg == NULL) { - return ERR_MEM; - } - - msg->type = TCPIP_MSG_INPKT; - msg->msg.inp.p = p; - msg->msg.inp.netif = inp; - msg->msg.inp.input_fn = input_fn; - if (sys_mbox_trypost(&tcpip_mbox, msg) != ERR_OK) { - memp_free(MEMP_TCPIP_MSG_INPKT, msg); - return ERR_MEM; - } - return ERR_OK; -#endif /* LWIP_TCPIP_CORE_LOCKING_INPUT */ -} - -/** - * @ingroup lwip_os - * Pass a received packet to tcpip_thread for input processing with - * ethernet_input or ip_input. Don't call directly, pass to netif_add() - * and call netif->input(). - * - * @param p the received packet, p->payload pointing to the Ethernet header or - * to an IP header (if inp doesn't have NETIF_FLAG_ETHARP or - * 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) -{ -#if LWIP_ETHERNET - if (inp->flags & (NETIF_FLAG_ETHARP | NETIF_FLAG_ETHERNET)) { - return tcpip_inpkt(p, inp, ethernet_input); - } else -#endif /* LWIP_ETHERNET */ - return tcpip_inpkt(p, inp, ip_input); -} - -/** - * @ingroup lwip_os - * Call a specific function in the thread context of - * tcpip_thread for easy access synchronization. - * A function called in that way may access lwIP core code - * without fearing concurrent access. - * Blocks until the request is posted. - * Must not be called from interrupt context! - * - * @param function the function to call - * @param ctx parameter passed to f - * @return ERR_OK if the function was called, another err_t if not - * - * @see tcpip_try_callback - */ -err_t -tcpip_callback(tcpip_callback_fn function, void *ctx) -{ - struct tcpip_msg *msg; - - LWIP_ASSERT("Invalid mbox", sys_mbox_valid_val(tcpip_mbox)); - - msg = (struct tcpip_msg *)memp_malloc(MEMP_TCPIP_MSG_API); - if (msg == NULL) { - return ERR_MEM; - } - - msg->type = TCPIP_MSG_CALLBACK; - msg->msg.cb.function = function; - msg->msg.cb.ctx = ctx; - - sys_mbox_post(&tcpip_mbox, msg); - return ERR_OK; -} - -/** - * @ingroup lwip_os - * Call a specific function in the thread context of - * tcpip_thread for easy access synchronization. - * A function called in that way may access lwIP core code - * without fearing concurrent access. - * Does NOT block when the request cannot be posted because the - * tcpip_mbox is full, but returns ERR_MEM instead. - * Can be called from interrupt context. - * - * @param function the function to call - * @param ctx parameter passed to f - * @return ERR_OK if the function was called, another err_t if not - * - * @see tcpip_callback - */ -err_t -tcpip_try_callback(tcpip_callback_fn function, void *ctx) -{ - struct tcpip_msg *msg; - - LWIP_ASSERT("Invalid mbox", sys_mbox_valid_val(tcpip_mbox)); - - msg = (struct tcpip_msg *)memp_malloc(MEMP_TCPIP_MSG_API); - if (msg == NULL) { - return ERR_MEM; - } - - msg->type = TCPIP_MSG_CALLBACK; - msg->msg.cb.function = function; - msg->msg.cb.ctx = ctx; - - if (sys_mbox_trypost(&tcpip_mbox, msg) != ERR_OK) { - memp_free(MEMP_TCPIP_MSG_API, msg); - return ERR_MEM; - } - return ERR_OK; -} - -#if LWIP_TCPIP_TIMEOUT && LWIP_TIMERS -/** - * call sys_timeout in tcpip_thread - * - * @param msecs time in milliseconds for timeout - * @param h function to be called on timeout - * @param arg argument to pass to timeout function h - * @return ERR_MEM on memory error, ERR_OK otherwise - */ -err_t -tcpip_timeout(u32_t msecs, sys_timeout_handler h, void *arg) -{ - struct tcpip_msg *msg; - - LWIP_ASSERT("Invalid mbox", sys_mbox_valid_val(tcpip_mbox)); - - msg = (struct tcpip_msg *)memp_malloc(MEMP_TCPIP_MSG_API); - if (msg == NULL) { - return ERR_MEM; - } - - msg->type = TCPIP_MSG_TIMEOUT; - msg->msg.tmo.msecs = msecs; - msg->msg.tmo.h = h; - msg->msg.tmo.arg = arg; - sys_mbox_post(&tcpip_mbox, msg); - return ERR_OK; -} - -/** - * call sys_untimeout in tcpip_thread - * - * @param h function to be called on timeout - * @param arg argument to pass to timeout function h - * @return ERR_MEM on memory error, ERR_OK otherwise - */ -err_t -tcpip_untimeout(sys_timeout_handler h, void *arg) -{ - struct tcpip_msg *msg; - - LWIP_ASSERT("Invalid mbox", sys_mbox_valid_val(tcpip_mbox)); - - msg = (struct tcpip_msg *)memp_malloc(MEMP_TCPIP_MSG_API); - if (msg == NULL) { - return ERR_MEM; - } - - msg->type = TCPIP_MSG_UNTIMEOUT; - msg->msg.tmo.h = h; - msg->msg.tmo.arg = arg; - sys_mbox_post(&tcpip_mbox, msg); - return ERR_OK; -} -#endif /* LWIP_TCPIP_TIMEOUT && LWIP_TIMERS */ - - -/** - * Sends a message to TCPIP thread to call a function. Caller thread blocks on - * on a provided semaphore, which ist NOT automatically signalled by TCPIP thread, - * this has to be done by the user. - * It is recommended to use LWIP_TCPIP_CORE_LOCKING since this is the way - * with least runtime overhead. - * - * @param fn function to be called from TCPIP thread - * @param apimsg argument to API function - * @param sem semaphore to wait on - * @return ERR_OK if the function was called, another err_t if not - */ -err_t -tcpip_send_msg_wait_sem(tcpip_callback_fn fn, void *apimsg, sys_sem_t *sem) -{ -#if LWIP_TCPIP_CORE_LOCKING - LWIP_UNUSED_ARG(sem); - LOCK_TCPIP_CORE(); - fn(apimsg); - UNLOCK_TCPIP_CORE(); - return ERR_OK; -#else /* LWIP_TCPIP_CORE_LOCKING */ - TCPIP_MSG_VAR_DECLARE(msg); - - LWIP_ASSERT("semaphore not initialized", sys_sem_valid(sem)); - LWIP_ASSERT("Invalid mbox", sys_mbox_valid_val(tcpip_mbox)); - - TCPIP_MSG_VAR_ALLOC(msg); - TCPIP_MSG_VAR_REF(msg).type = TCPIP_MSG_API; - TCPIP_MSG_VAR_REF(msg).msg.api_msg.function = fn; - TCPIP_MSG_VAR_REF(msg).msg.api_msg.msg = apimsg; - sys_mbox_post(&tcpip_mbox, &TCPIP_MSG_VAR_REF(msg)); - sys_arch_sem_wait(sem, 0); - TCPIP_MSG_VAR_FREE(msg); - return ERR_OK; -#endif /* LWIP_TCPIP_CORE_LOCKING */ -} - -/** - * Synchronously calls function in TCPIP thread and waits for its completion. - * It is recommended to use LWIP_TCPIP_CORE_LOCKING (preferred) or - * LWIP_NETCONN_SEM_PER_THREAD. - * If not, a semaphore is created and destroyed on every call which is usually - * an expensive/slow operation. - * @param fn Function to call - * @param call Call parameters - * @return Return value from tcpip_api_call_fn - */ -err_t -tcpip_api_call(tcpip_api_call_fn fn, struct tcpip_api_call_data *call) -{ -#if LWIP_TCPIP_CORE_LOCKING - err_t err; - LOCK_TCPIP_CORE(); - err = fn(call); - UNLOCK_TCPIP_CORE(); - return err; -#else /* LWIP_TCPIP_CORE_LOCKING */ - TCPIP_MSG_VAR_DECLARE(msg); - -#if !LWIP_NETCONN_SEM_PER_THREAD - err_t err = sys_sem_new(&call->sem, 0); - if (err != ERR_OK) { - return err; - } -#endif /* LWIP_NETCONN_SEM_PER_THREAD */ - - LWIP_ASSERT("Invalid mbox", sys_mbox_valid_val(tcpip_mbox)); - - TCPIP_MSG_VAR_ALLOC(msg); - TCPIP_MSG_VAR_REF(msg).type = TCPIP_MSG_API_CALL; - TCPIP_MSG_VAR_REF(msg).msg.api_call.arg = call; - TCPIP_MSG_VAR_REF(msg).msg.api_call.function = fn; -#if LWIP_NETCONN_SEM_PER_THREAD - TCPIP_MSG_VAR_REF(msg).msg.api_call.sem = LWIP_NETCONN_THREAD_SEM_GET(); -#else /* LWIP_NETCONN_SEM_PER_THREAD */ - TCPIP_MSG_VAR_REF(msg).msg.api_call.sem = &call->sem; -#endif /* LWIP_NETCONN_SEM_PER_THREAD */ - sys_mbox_post(&tcpip_mbox, &TCPIP_MSG_VAR_REF(msg)); - sys_arch_sem_wait(TCPIP_MSG_VAR_REF(msg).msg.api_call.sem, 0); - TCPIP_MSG_VAR_FREE(msg); - -#if !LWIP_NETCONN_SEM_PER_THREAD - sys_sem_free(&call->sem); -#endif /* LWIP_NETCONN_SEM_PER_THREAD */ - - return call->err; -#endif /* LWIP_TCPIP_CORE_LOCKING */ -} - -/** - * @ingroup lwip_os - * Allocate a structure for a static callback message and initialize it. - * The message has a special type such that lwIP never frees it. - * This is intended to be used to send "static" messages from interrupt context, - * e.g. the message is allocated once and posted several times from an IRQ - * using tcpip_callbackmsg_trycallback(). - * Example usage: Trigger execution of an ethernet IRQ DPC routine in lwIP thread context. - * - * @param function the function to call - * @param ctx parameter passed to function - * @return a struct pointer to pass to tcpip_callbackmsg_trycallback(). - * - * @see tcpip_callbackmsg_trycallback() - * @see tcpip_callbackmsg_delete() - */ -struct tcpip_callback_msg * -tcpip_callbackmsg_new(tcpip_callback_fn function, void *ctx) -{ - struct tcpip_msg *msg = (struct tcpip_msg *)memp_malloc(MEMP_TCPIP_MSG_API); - if (msg == NULL) { - return NULL; - } - msg->type = TCPIP_MSG_CALLBACK_STATIC; - msg->msg.cb.function = function; - msg->msg.cb.ctx = ctx; - return (struct tcpip_callback_msg *)msg; -} - -/** - * @ingroup lwip_os - * Free a callback message allocated by tcpip_callbackmsg_new(). - * - * @param msg the message to free - * - * @see tcpip_callbackmsg_new() - */ -void -tcpip_callbackmsg_delete(struct tcpip_callback_msg *msg) -{ - memp_free(MEMP_TCPIP_MSG_API, msg); -} - -/** - * @ingroup lwip_os - * Try to post a callback-message to the tcpip_thread tcpip_mbox. - * - * @param msg pointer to the message to post - * @return sys_mbox_trypost() return code - * - * @see tcpip_callbackmsg_new() - */ -err_t -tcpip_callbackmsg_trycallback(struct tcpip_callback_msg *msg) -{ - LWIP_ASSERT("Invalid mbox", sys_mbox_valid_val(tcpip_mbox)); - return sys_mbox_trypost(&tcpip_mbox, msg); -} - -/** - * @ingroup lwip_os - * Try to post a callback-message to the tcpip_thread mbox. - * Same as @ref tcpip_callbackmsg_trycallback but calls sys_mbox_trypost_fromisr(), - * mainly to help FreeRTOS, where calls differ between task level and ISR level. - * - * @param msg pointer to the message to post - * @return sys_mbox_trypost_fromisr() return code (without change, so this - * knowledge can be used to e.g. propagate "bool needs_scheduling") - * - * @see tcpip_callbackmsg_new() - */ -err_t -tcpip_callbackmsg_trycallback_fromisr(struct tcpip_callback_msg *msg) -{ - LWIP_ASSERT("Invalid mbox", sys_mbox_valid_val(tcpip_mbox)); - return sys_mbox_trypost_fromisr(&tcpip_mbox, msg); -} - -/** - * @ingroup lwip_os - * Initialize this module: - * - initialize all sub modules - * - start the tcpip_thread - * - * @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) -{ - lwip_init(); - - tcpip_init_done = initfunc; - tcpip_init_done_arg = arg; - if (sys_mbox_new(&tcpip_mbox, TCPIP_MBOX_SIZE) != ERR_OK) { - LWIP_ASSERT("failed to create tcpip_thread mbox", 0); - } -#if LWIP_TCPIP_CORE_LOCKING - if (sys_mutex_new(&lock_tcpip_core) != ERR_OK) { - LWIP_ASSERT("failed to create lock_tcpip_core", 0); - } -#endif /* LWIP_TCPIP_CORE_LOCKING */ - - sys_thread_new(TCPIP_THREAD_NAME, tcpip_thread, NULL, TCPIP_THREAD_STACKSIZE, TCPIP_THREAD_PRIO); -} - -/** - * Simple callback function used with tcpip_callback to free a pbuf - * (pbuf_free has a wrong signature for tcpip_callback) - * - * @param p The pbuf (chain) to be dereferenced. - */ -static void -pbuf_free_int(void *p) -{ - struct pbuf *q = (struct pbuf *)p; - pbuf_free(q); -} - -/** - * A simple wrapper function that allows you to free a pbuf from interrupt context. - * - * @param p The pbuf (chain) to be dereferenced. - * @return ERR_OK if callback could be enqueued, an err_t if not - */ -err_t -pbuf_free_callback(struct pbuf *p) -{ - return tcpip_try_callback(pbuf_free_int, p); -} - -/** - * A simple wrapper function that allows you to free heap memory from - * interrupt context. - * - * @param m the heap memory to free - * @return ERR_OK if callback could be enqueued, an err_t if not - */ -err_t -mem_free_callback(void *m) -{ - return tcpip_try_callback(mem_free, m); -} - -#endif /* !NO_SYS */ diff --git a/Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c b/Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c deleted file mode 100644 index 269f4a4..0000000 --- a/Middlewares/Third_Party/LwIP/src/apps/mqtt/mqtt.c +++ /dev/null @@ -1,1463 +0,0 @@ -/** - * @file - * MQTT client - * - * @defgroup mqtt MQTT client - * @ingroup apps - * @verbinclude mqtt_client.txt - */ - -/* - * Copyright (c) 2016 Erik Andersson - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack - * - * Author: Erik Andersson - * - * - * @todo: - * - Handle large outgoing payloads for PUBLISH messages - * - Fix restriction of a single topic in each (UN)SUBSCRIBE message (protocol has support for multiple topics) - * - Add support for legacy MQTT protocol version - * - * Please coordinate changes and requests with Erik Andersson - * Erik Andersson - * - */ -#include "lwip/apps/mqtt.h" -#include "lwip/apps/mqtt_priv.h" -#include "lwip/timeouts.h" -#include "lwip/ip_addr.h" -#include "lwip/mem.h" -#include "lwip/err.h" -#include "lwip/pbuf.h" -#include "lwip/altcp.h" -#include "lwip/altcp_tcp.h" -#include "lwip/altcp_tls.h" -#include - -#if LWIP_TCP && LWIP_CALLBACK_API - -/** - * MQTT_DEBUG: Default is off. - */ -#if !defined MQTT_DEBUG || defined __DOXYGEN__ -#define MQTT_DEBUG LWIP_DBG_OFF -#endif - -#define MQTT_DEBUG_TRACE (MQTT_DEBUG | LWIP_DBG_TRACE) -#define MQTT_DEBUG_STATE (MQTT_DEBUG | LWIP_DBG_STATE) -#define MQTT_DEBUG_WARN (MQTT_DEBUG | LWIP_DBG_LEVEL_WARNING) -#define MQTT_DEBUG_WARN_STATE (MQTT_DEBUG | LWIP_DBG_LEVEL_WARNING | LWIP_DBG_STATE) -#define MQTT_DEBUG_SERIOUS (MQTT_DEBUG | LWIP_DBG_LEVEL_SERIOUS) - - - -/** - * MQTT client connection states - */ -enum { - TCP_DISCONNECTED, - TCP_CONNECTING, - MQTT_CONNECTING, - MQTT_CONNECTED -}; - -/** - * MQTT control message types - */ -enum mqtt_message_type { - MQTT_MSG_TYPE_CONNECT = 1, - MQTT_MSG_TYPE_CONNACK = 2, - MQTT_MSG_TYPE_PUBLISH = 3, - MQTT_MSG_TYPE_PUBACK = 4, - MQTT_MSG_TYPE_PUBREC = 5, - MQTT_MSG_TYPE_PUBREL = 6, - MQTT_MSG_TYPE_PUBCOMP = 7, - MQTT_MSG_TYPE_SUBSCRIBE = 8, - MQTT_MSG_TYPE_SUBACK = 9, - MQTT_MSG_TYPE_UNSUBSCRIBE = 10, - MQTT_MSG_TYPE_UNSUBACK = 11, - MQTT_MSG_TYPE_PINGREQ = 12, - MQTT_MSG_TYPE_PINGRESP = 13, - MQTT_MSG_TYPE_DISCONNECT = 14 -}; - -/** Helpers to extract control packet type and qos from first byte in fixed header */ -#define MQTT_CTL_PACKET_TYPE(fixed_hdr_byte0) ((fixed_hdr_byte0 & 0xf0) >> 4) -#define MQTT_CTL_PACKET_QOS(fixed_hdr_byte0) ((fixed_hdr_byte0 & 0x6) >> 1) - -/** - * MQTT connect flags, only used in CONNECT message - */ -enum mqtt_connect_flag { - MQTT_CONNECT_FLAG_USERNAME = 1 << 7, - MQTT_CONNECT_FLAG_PASSWORD = 1 << 6, - MQTT_CONNECT_FLAG_WILL_RETAIN = 1 << 5, - MQTT_CONNECT_FLAG_WILL = 1 << 2, - MQTT_CONNECT_FLAG_CLEAN_SESSION = 1 << 1 -}; - - -static void mqtt_cyclic_timer(void *arg); - -#if defined(LWIP_DEBUG) -static const char *const mqtt_message_type_str[15] = { - "UNDEFINED", - "CONNECT", - "CONNACK", - "PUBLISH", - "PUBACK", - "PUBREC", - "PUBREL", - "PUBCOMP", - "SUBSCRIBE", - "SUBACK", - "UNSUBSCRIBE", - "UNSUBACK", - "PINGREQ", - "PINGRESP", - "DISCONNECT" -}; - -/** - * Message type value to string - * @param msg_type see enum mqtt_message_type - * - * @return Control message type text string - */ -static const char * -mqtt_msg_type_to_str(u8_t msg_type) -{ - if (msg_type >= LWIP_ARRAYSIZE(mqtt_message_type_str)) { - msg_type = 0; - } - return mqtt_message_type_str[msg_type]; -} - -#endif - - -/** - * Generate MQTT packet identifier - * @param client MQTT client - * @return New packet identifier, range 1 to 65535 - */ -static u16_t -msg_generate_packet_id(mqtt_client_t *client) -{ - client->pkt_id_seq++; - if (client->pkt_id_seq == 0) { - client->pkt_id_seq++; - } - return client->pkt_id_seq; -} - -/*--------------------------------------------------------------------------------------------------------------------- */ -/* Output ring buffer */ - -/** Add single item to ring buffer */ -static void -mqtt_ringbuf_put(struct mqtt_ringbuf_t *rb, u8_t item) -{ - rb->buf[rb->put] = item; - rb->put++; - if (rb->put >= MQTT_OUTPUT_RINGBUF_SIZE) { - rb->put = 0; - } -} - -/** Return pointer to ring buffer get position */ -static u8_t * -mqtt_ringbuf_get_ptr(struct mqtt_ringbuf_t *rb) -{ - return &rb->buf[rb->get]; -} - -static void -mqtt_ringbuf_advance_get_idx(struct mqtt_ringbuf_t *rb, u16_t len) -{ - LWIP_ASSERT("mqtt_ringbuf_advance_get_idx: len < MQTT_OUTPUT_RINGBUF_SIZE", len < MQTT_OUTPUT_RINGBUF_SIZE); - - rb->get += len; - if (rb->get >= MQTT_OUTPUT_RINGBUF_SIZE) { - rb->get = rb->get - MQTT_OUTPUT_RINGBUF_SIZE; - } -} - -/** Return number of bytes in ring buffer */ -static u16_t -mqtt_ringbuf_len(struct mqtt_ringbuf_t *rb) -{ - u32_t len = rb->put - rb->get; - if (len > 0xFFFF) { - len += MQTT_OUTPUT_RINGBUF_SIZE; - } - return (u16_t)len; -} - -/** Return number of bytes free in ring buffer */ -#define mqtt_ringbuf_free(rb) (MQTT_OUTPUT_RINGBUF_SIZE - mqtt_ringbuf_len(rb)) - -/** Return number of bytes possible to read without wrapping around */ -#define mqtt_ringbuf_linear_read_length(rb) LWIP_MIN(mqtt_ringbuf_len(rb), (MQTT_OUTPUT_RINGBUF_SIZE - (rb)->get)) - -/** - * Try send as many bytes as possible from output ring buffer - * @param rb Output ring buffer - * @param tpcb TCP connection handle - */ -static void -mqtt_output_send(struct mqtt_ringbuf_t *rb, struct altcp_pcb *tpcb) -{ - err_t err; - u8_t wrap = 0; - u16_t ringbuf_lin_len = mqtt_ringbuf_linear_read_length(rb); - u16_t send_len = altcp_sndbuf(tpcb); - LWIP_ASSERT("mqtt_output_send: tpcb != NULL", tpcb != NULL); - - if (send_len == 0 || ringbuf_lin_len == 0) { - return; - } - - LWIP_DEBUGF(MQTT_DEBUG_TRACE, ("mqtt_output_send: tcp_sndbuf: %d bytes, ringbuf_linear_available: %d, get %d, put %d\n", - send_len, ringbuf_lin_len, rb->get, rb->put)); - - if (send_len > ringbuf_lin_len) { - /* Space in TCP output buffer is larger than available in ring buffer linear portion */ - send_len = ringbuf_lin_len; - /* Wrap around if more data in ring buffer after linear portion */ - wrap = (mqtt_ringbuf_len(rb) > ringbuf_lin_len); - } - err = altcp_write(tpcb, mqtt_ringbuf_get_ptr(rb), send_len, TCP_WRITE_FLAG_COPY | (wrap ? TCP_WRITE_FLAG_MORE : 0)); - if ((err == ERR_OK) && wrap) { - mqtt_ringbuf_advance_get_idx(rb, send_len); - /* Use the lesser one of ring buffer linear length and TCP send buffer size */ - send_len = LWIP_MIN(altcp_sndbuf(tpcb), mqtt_ringbuf_linear_read_length(rb)); - err = altcp_write(tpcb, mqtt_ringbuf_get_ptr(rb), send_len, TCP_WRITE_FLAG_COPY); - } - - if (err == ERR_OK) { - mqtt_ringbuf_advance_get_idx(rb, send_len); - /* Flush */ - altcp_output(tpcb); - } else { - LWIP_DEBUGF(MQTT_DEBUG_WARN, ("mqtt_output_send: Send failed with err %d (\"%s\")\n", err, lwip_strerr(err))); - } -} - - - -/*--------------------------------------------------------------------------------------------------------------------- */ -/* Request queue */ - -/** - * Create request item - * @param r_objs Pointer to request objects - * @param r_objs_len Number of array entries - * @param pkt_id Packet identifier of request - * @param cb Packet callback to call when requests lifetime ends - * @param arg Parameter following callback - * @return Request or NULL if failed to create - */ -static struct mqtt_request_t * -mqtt_create_request(struct mqtt_request_t *r_objs, size_t r_objs_len, u16_t pkt_id, mqtt_request_cb_t cb, void *arg) -{ - struct mqtt_request_t *r = NULL; - u8_t n; - LWIP_ASSERT("mqtt_create_request: r_objs != NULL", r_objs != NULL); - for (n = 0; n < r_objs_len; n++) { - /* Item point to itself if not in use */ - if (r_objs[n].next == &r_objs[n]) { - r = &r_objs[n]; - r->next = NULL; - r->cb = cb; - r->arg = arg; - r->pkt_id = pkt_id; - break; - } - } - return r; -} - - -/** - * Append request to pending request queue - * @param tail Pointer to request queue tail pointer - * @param r Request to append - */ -static void -mqtt_append_request(struct mqtt_request_t **tail, struct mqtt_request_t *r) -{ - struct mqtt_request_t *head = NULL; - s16_t time_before = 0; - struct mqtt_request_t *iter; - - LWIP_ASSERT("mqtt_append_request: tail != NULL", tail != NULL); - - /* Iterate trough queue to find head, and count total timeout time */ - for (iter = *tail; iter != NULL; iter = iter->next) { - time_before += iter->timeout_diff; - head = iter; - } - - LWIP_ASSERT("mqtt_append_request: time_before <= MQTT_REQ_TIMEOUT", time_before <= MQTT_REQ_TIMEOUT); - r->timeout_diff = MQTT_REQ_TIMEOUT - time_before; - if (head == NULL) { - *tail = r; - } else { - head->next = r; - } -} - - -/** - * Delete request item - * @param r Request item to delete - */ -static void -mqtt_delete_request(struct mqtt_request_t *r) -{ - if (r != NULL) { - r->next = r; - } -} - -/** - * Remove a request item with a specific packet identifier from request queue - * @param tail Pointer to request queue tail pointer - * @param pkt_id Packet identifier of request to take - * @return Request item if found, NULL if not - */ -static struct mqtt_request_t * -mqtt_take_request(struct mqtt_request_t **tail, u16_t pkt_id) -{ - struct mqtt_request_t *iter = NULL, *prev = NULL; - LWIP_ASSERT("mqtt_take_request: tail != NULL", tail != NULL); - /* Search all request for pkt_id */ - for (iter = *tail; iter != NULL; iter = iter->next) { - if (iter->pkt_id == pkt_id) { - break; - } - prev = iter; - } - - /* If request was found */ - if (iter != NULL) { - /* unchain */ - if (prev == NULL) { - *tail = iter->next; - } else { - prev->next = iter->next; - } - /* If exists, add remaining timeout time for the request to next */ - if (iter->next != NULL) { - iter->next->timeout_diff += iter->timeout_diff; - } - iter->next = NULL; - } - return iter; -} - -/** - * Handle requests timeout - * @param tail Pointer to request queue tail pointer - * @param t Time since last call in seconds - */ -static void -mqtt_request_time_elapsed(struct mqtt_request_t **tail, u8_t t) -{ - struct mqtt_request_t *r; - LWIP_ASSERT("mqtt_request_time_elapsed: tail != NULL", tail != NULL); - r = *tail; - while (t > 0 && r != NULL) { - if (t >= r->timeout_diff) { - t -= (u8_t)r->timeout_diff; - /* Unchain */ - *tail = r->next; - /* Notify upper layer about timeout */ - if (r->cb != NULL) { - r->cb(r->arg, ERR_TIMEOUT); - } - mqtt_delete_request(r); - /* Tail might be be modified in callback, so re-read it in every iteration */ - r = *(struct mqtt_request_t *const volatile *)tail; - } else { - r->timeout_diff -= t; - t = 0; - } - } -} - -/** - * Free all request items - * @param tail Pointer to request queue tail pointer - */ -static void -mqtt_clear_requests(struct mqtt_request_t **tail) -{ - struct mqtt_request_t *iter, *next; - LWIP_ASSERT("mqtt_clear_requests: tail != NULL", tail != NULL); - for (iter = *tail; iter != NULL; iter = next) { - next = iter->next; - mqtt_delete_request(iter); - } - *tail = NULL; -} -/** - * Initialize all request items - * @param r_objs Pointer to request objects - * @param r_objs_len Number of array entries - */ -static void -mqtt_init_requests(struct mqtt_request_t *r_objs, size_t r_objs_len) -{ - u8_t n; - LWIP_ASSERT("mqtt_init_requests: r_objs != NULL", r_objs != NULL); - for (n = 0; n < r_objs_len; n++) { - /* Item pointing to itself indicates unused */ - r_objs[n].next = &r_objs[n]; - } -} - -/*--------------------------------------------------------------------------------------------------------------------- */ -/* Output message build helpers */ - - -static void -mqtt_output_append_u8(struct mqtt_ringbuf_t *rb, u8_t value) -{ - mqtt_ringbuf_put(rb, value); -} - -static -void mqtt_output_append_u16(struct mqtt_ringbuf_t *rb, u16_t value) -{ - mqtt_ringbuf_put(rb, value >> 8); - mqtt_ringbuf_put(rb, value & 0xff); -} - -static void -mqtt_output_append_buf(struct mqtt_ringbuf_t *rb, const void *data, u16_t length) -{ - u16_t n; - for (n = 0; n < length; n++) { - mqtt_ringbuf_put(rb, ((const u8_t *)data)[n]); - } -} - -static void -mqtt_output_append_string(struct mqtt_ringbuf_t *rb, const char *str, u16_t length) -{ - u16_t n; - mqtt_ringbuf_put(rb, length >> 8); - mqtt_ringbuf_put(rb, length & 0xff); - for (n = 0; n < length; n++) { - mqtt_ringbuf_put(rb, str[n]); - } -} - -/** - * Append fixed header - * @param rb Output ring buffer - * @param msg_type see enum mqtt_message_type - * @param fdup MQTT DUP flag - * @param fqos MQTT QoS field - * @param fretain MQTT retain flag - * @param r_length Remaining length after fixed header - */ - -static void -mqtt_output_append_fixed_header(struct mqtt_ringbuf_t *rb, u8_t msg_type, u8_t fdup, - u8_t fqos, u8_t fretain, u16_t r_length) -{ - /* Start with control byte */ - mqtt_output_append_u8(rb, (((msg_type & 0x0f) << 4) | ((fdup & 1) << 3) | ((fqos & 3) << 1) | (fretain & 1))); - /* Encode remaining length field */ - do { - mqtt_output_append_u8(rb, (r_length & 0x7f) | (r_length >= 128 ? 0x80 : 0)); - r_length >>= 7; - } while (r_length > 0); -} - - -/** - * Check output buffer space - * @param rb Output ring buffer - * @param r_length Remaining length after fixed header - * @return 1 if message will fit, 0 if not enough buffer space - */ -static u8_t -mqtt_output_check_space(struct mqtt_ringbuf_t *rb, u16_t r_length) -{ - /* Start with length of type byte + remaining length */ - u16_t total_len = 1 + r_length; - - LWIP_ASSERT("mqtt_output_check_space: rb != NULL", rb != NULL); - - /* Calculate number of required bytes to contain the remaining bytes field and add to total*/ - do { - total_len++; - r_length >>= 7; - } while (r_length > 0); - - return (total_len <= mqtt_ringbuf_free(rb)); -} - - -/** - * Close connection to server - * @param client MQTT client - * @param reason Reason for disconnection - */ -static void -mqtt_close(mqtt_client_t *client, mqtt_connection_status_t reason) -{ - LWIP_ASSERT("mqtt_close: client != NULL", client != NULL); - - /* Bring down TCP connection if not already done */ - if (client->conn != NULL) { - err_t res; - altcp_recv(client->conn, NULL); - altcp_err(client->conn, NULL); - altcp_sent(client->conn, NULL); - res = altcp_close(client->conn); - if (res != ERR_OK) { - altcp_abort(client->conn); - LWIP_DEBUGF(MQTT_DEBUG_TRACE, ("mqtt_close: Close err=%s\n", lwip_strerr(res))); - } - client->conn = NULL; - } - - /* Remove all pending requests */ - mqtt_clear_requests(&client->pend_req_queue); - /* Stop cyclic timer */ - sys_untimeout(mqtt_cyclic_timer, client); - - /* Notify upper layer of disconnection if changed state */ - if (client->conn_state != TCP_DISCONNECTED) { - - client->conn_state = TCP_DISCONNECTED; - if (client->connect_cb != NULL) { - client->connect_cb(client, client->connect_arg, reason); - } - } -} - - -/** - * Interval timer, called every MQTT_CYCLIC_TIMER_INTERVAL seconds in MQTT_CONNECTING and MQTT_CONNECTED states - * @param arg MQTT client - */ -static void -mqtt_cyclic_timer(void *arg) -{ - u8_t restart_timer = 1; - mqtt_client_t *client = (mqtt_client_t *)arg; - LWIP_ASSERT("mqtt_cyclic_timer: client != NULL", client != NULL); - - if (client->conn_state == MQTT_CONNECTING) { - client->cyclic_tick++; - if ((client->cyclic_tick * MQTT_CYCLIC_TIMER_INTERVAL) >= MQTT_CONNECT_TIMOUT) { - LWIP_DEBUGF(MQTT_DEBUG_TRACE, ("mqtt_cyclic_timer: CONNECT attempt to server timed out\n")); - /* Disconnect TCP */ - mqtt_close(client, MQTT_CONNECT_TIMEOUT); - restart_timer = 0; - } - } else if (client->conn_state == MQTT_CONNECTED) { - /* Handle timeout for pending requests */ - mqtt_request_time_elapsed(&client->pend_req_queue, MQTT_CYCLIC_TIMER_INTERVAL); - - /* keep_alive > 0 means keep alive functionality shall be used */ - if (client->keep_alive > 0) { - - client->server_watchdog++; - /* If reception from server has been idle for 1.5*keep_alive time, server is considered unresponsive */ - if ((client->server_watchdog * MQTT_CYCLIC_TIMER_INTERVAL) > (client->keep_alive + client->keep_alive / 2)) { - LWIP_DEBUGF(MQTT_DEBUG_WARN, ("mqtt_cyclic_timer: Server incoming keep-alive timeout\n")); - mqtt_close(client, MQTT_CONNECT_TIMEOUT); - restart_timer = 0; - } - - /* If time for a keep alive message to be sent, transmission has been idle for keep_alive time */ - if ((client->cyclic_tick * MQTT_CYCLIC_TIMER_INTERVAL) >= client->keep_alive) { - LWIP_DEBUGF(MQTT_DEBUG_TRACE, ("mqtt_cyclic_timer: Sending keep-alive message to server\n")); - if (mqtt_output_check_space(&client->output, 0) != 0) { - mqtt_output_append_fixed_header(&client->output, MQTT_MSG_TYPE_PINGREQ, 0, 0, 0, 0); - client->cyclic_tick = 0; - } - } else { - client->cyclic_tick++; - } - } - } else { - LWIP_DEBUGF(MQTT_DEBUG_WARN, ("mqtt_cyclic_timer: Timer should not be running in state %d\n", client->conn_state)); - restart_timer = 0; - } - if (restart_timer) { - sys_timeout(MQTT_CYCLIC_TIMER_INTERVAL * 1000, mqtt_cyclic_timer, arg); - } -} - - -/** - * Send PUBACK, PUBREC or PUBREL response message - * @param client MQTT client - * @param msg PUBACK, PUBREC or PUBREL - * @param pkt_id Packet identifier - * @param qos QoS value - * @return ERR_OK if successful, ERR_MEM if out of memory - */ -static err_t -pub_ack_rec_rel_response(mqtt_client_t *client, u8_t msg, u16_t pkt_id, u8_t qos) -{ - err_t err = ERR_OK; - if (mqtt_output_check_space(&client->output, 2)) { - mqtt_output_append_fixed_header(&client->output, msg, 0, qos, 0, 2); - mqtt_output_append_u16(&client->output, pkt_id); - mqtt_output_send(&client->output, client->conn); - } else { - LWIP_DEBUGF(MQTT_DEBUG_TRACE, ("pub_ack_rec_rel_response: OOM creating response: %s with pkt_id: %d\n", - mqtt_msg_type_to_str(msg), pkt_id)); - err = ERR_MEM; - } - return err; -} - -/** - * Subscribe response from server - * @param r Matching request - * @param result Result code from server - */ -static void -mqtt_incomming_suback(struct mqtt_request_t *r, u8_t result) -{ - if (r->cb != NULL) { - r->cb(r->arg, result < 3 ? ERR_OK : ERR_ABRT); - } -} - - -/** - * Complete MQTT message received or buffer full - * @param client MQTT client - * @param fixed_hdr_idx header index - * @param length length received part - * @param remaining_length Remaining length of complete message - */ -static mqtt_connection_status_t -mqtt_message_received(mqtt_client_t *client, u8_t fixed_hdr_idx, u16_t length, u32_t remaining_length) -{ - mqtt_connection_status_t res = MQTT_CONNECT_ACCEPTED; - - u8_t *var_hdr_payload = client->rx_buffer + fixed_hdr_idx; - size_t var_hdr_payload_bufsize = sizeof(client->rx_buffer) - fixed_hdr_idx; - - /* Control packet type */ - u8_t pkt_type = MQTT_CTL_PACKET_TYPE(client->rx_buffer[0]); - u16_t pkt_id = 0; - - LWIP_ASSERT("client->msg_idx < MQTT_VAR_HEADER_BUFFER_LEN", client->msg_idx < MQTT_VAR_HEADER_BUFFER_LEN); - LWIP_ASSERT("fixed_hdr_idx <= client->msg_idx", fixed_hdr_idx <= client->msg_idx); - LWIP_ERROR("buffer length mismatch", fixed_hdr_idx + length <= MQTT_VAR_HEADER_BUFFER_LEN, - return MQTT_CONNECT_DISCONNECTED); - - if (pkt_type == MQTT_MSG_TYPE_CONNACK) { - if (client->conn_state == MQTT_CONNECTING) { - if (length < 2) { - LWIP_DEBUGF(MQTT_DEBUG_WARN,( "mqtt_message_received: Received short CONNACK message\n")); - goto out_disconnect; - } - /* Get result code from CONNACK */ - res = (mqtt_connection_status_t)var_hdr_payload[1]; - LWIP_DEBUGF(MQTT_DEBUG_TRACE, ("mqtt_message_received: Connect response code %d\n", res)); - if (res == MQTT_CONNECT_ACCEPTED) { - /* Reset cyclic_tick when changing to connected state */ - client->cyclic_tick = 0; - client->conn_state = MQTT_CONNECTED; - /* Notify upper layer */ - if (client->connect_cb != 0) { - client->connect_cb(client, client->connect_arg, res); - } - } - } else { - LWIP_DEBUGF(MQTT_DEBUG_WARN, ("mqtt_message_received: Received CONNACK in connected state\n")); - } - } else if (pkt_type == MQTT_MSG_TYPE_PINGRESP) { - LWIP_DEBUGF(MQTT_DEBUG_TRACE, ( "mqtt_message_received: Received PINGRESP from server\n")); - - } else if (pkt_type == MQTT_MSG_TYPE_PUBLISH) { - u16_t payload_offset = 0; - u16_t payload_length = length; - u8_t qos = MQTT_CTL_PACKET_QOS(client->rx_buffer[0]); - - if (client->msg_idx <= MQTT_VAR_HEADER_BUFFER_LEN) { - /* Should have topic and pkt id*/ - u8_t *topic; - u16_t after_topic; - u8_t bkp; - u16_t topic_len; - u16_t qos_len = (qos ? 2U : 0U); - if (length < 2 + qos_len) { - LWIP_DEBUGF(MQTT_DEBUG_WARN,( "mqtt_message_received: Received short PUBLISH packet\n")); - goto out_disconnect; - } - topic_len = var_hdr_payload[0]; - topic_len = (topic_len << 8) + (u16_t)(var_hdr_payload[1]); - if ((topic_len > length - (2 + qos_len)) || - (topic_len > var_hdr_payload_bufsize - (2 + qos_len))) { - LWIP_DEBUGF(MQTT_DEBUG_WARN,( "mqtt_message_received: Received short PUBLISH packet (topic)\n")); - goto out_disconnect; - } - - topic = var_hdr_payload + 2; - after_topic = 2 + topic_len; - /* Check buffer length, add one byte even for QoS 0 so that zero termination will fit */ - if ((after_topic + (qos ? 2U : 1U)) > var_hdr_payload_bufsize) { - LWIP_DEBUGF(MQTT_DEBUG_WARN, ("mqtt_message_received: Receive buffer can not fit topic + pkt_id\n")); - goto out_disconnect; - } - - /* id for QoS 1 and 2 */ - if (qos > 0) { - if (length < after_topic + 2U) { - LWIP_DEBUGF(MQTT_DEBUG_WARN,( "mqtt_message_received: Received short PUBLISH packet (after_topic)\n")); - goto out_disconnect; - } - client->inpub_pkt_id = ((u16_t)var_hdr_payload[after_topic] << 8) + (u16_t)var_hdr_payload[after_topic + 1]; - after_topic += 2; - } else { - client->inpub_pkt_id = 0; - } - /* Take backup of byte after topic */ - bkp = topic[topic_len]; - /* Zero terminate string */ - topic[topic_len] = 0; - /* Payload data remaining in receive buffer */ - payload_length = length - after_topic; - payload_offset = after_topic; - - LWIP_DEBUGF(MQTT_DEBUG_TRACE, ("mqtt_incomming_publish: Received message with QoS %d at topic: %s, payload length %"U32_F"\n", - qos, topic, remaining_length + payload_length)); - if (client->pub_cb != NULL) { - client->pub_cb(client->inpub_arg, (const char *)topic, remaining_length + payload_length); - } - /* Restore byte after topic */ - topic[topic_len] = bkp; - } - if (payload_length > 0 || remaining_length == 0) { - if (length < (size_t)(payload_offset + payload_length)) { - LWIP_DEBUGF(MQTT_DEBUG_WARN,( "mqtt_message_received: Received short packet (payload)\n")); - goto out_disconnect; - } - client->data_cb(client->inpub_arg, var_hdr_payload + payload_offset, payload_length, remaining_length == 0 ? MQTT_DATA_FLAG_LAST : 0); - /* Reply if QoS > 0 */ - if (remaining_length == 0 && qos > 0) { - /* Send PUBACK for QoS 1 or PUBREC for QoS 2 */ - u8_t resp_msg = (qos == 1) ? MQTT_MSG_TYPE_PUBACK : MQTT_MSG_TYPE_PUBREC; - LWIP_DEBUGF(MQTT_DEBUG_TRACE, ("mqtt_incomming_publish: Sending publish response: %s with pkt_id: %d\n", - mqtt_msg_type_to_str(resp_msg), client->inpub_pkt_id)); - pub_ack_rec_rel_response(client, resp_msg, client->inpub_pkt_id, 0); - } - } - } else { - /* Get packet identifier */ - pkt_id = (u16_t)var_hdr_payload[0] << 8; - pkt_id |= (u16_t)var_hdr_payload[1]; - if (pkt_id == 0) { - LWIP_DEBUGF(MQTT_DEBUG_WARN, ("mqtt_message_received: Got message with illegal packet identifier: 0\n")); - goto out_disconnect; - } - if (pkt_type == MQTT_MSG_TYPE_PUBREC) { - LWIP_DEBUGF(MQTT_DEBUG_TRACE, ("mqtt_message_received: PUBREC, sending PUBREL with pkt_id: %d\n", pkt_id)); - pub_ack_rec_rel_response(client, MQTT_MSG_TYPE_PUBREL, pkt_id, 1); - - } else if (pkt_type == MQTT_MSG_TYPE_PUBREL) { - LWIP_DEBUGF(MQTT_DEBUG_TRACE, ("mqtt_message_received: PUBREL, sending PUBCOMP response with pkt_id: %d\n", pkt_id)); - pub_ack_rec_rel_response(client, MQTT_MSG_TYPE_PUBCOMP, pkt_id, 0); - - } else if (pkt_type == MQTT_MSG_TYPE_SUBACK || pkt_type == MQTT_MSG_TYPE_UNSUBACK || - pkt_type == MQTT_MSG_TYPE_PUBCOMP || pkt_type == MQTT_MSG_TYPE_PUBACK) { - struct mqtt_request_t *r = mqtt_take_request(&client->pend_req_queue, pkt_id); - if (r != NULL) { - LWIP_DEBUGF(MQTT_DEBUG_TRACE, ("mqtt_message_received: %s response with id %d\n", mqtt_msg_type_to_str(pkt_type), pkt_id)); - if (pkt_type == MQTT_MSG_TYPE_SUBACK) { - if (length < 3) { - LWIP_DEBUGF(MQTT_DEBUG_WARN, ("mqtt_message_received: To small SUBACK packet\n")); - goto out_disconnect; - } else { - mqtt_incomming_suback(r, var_hdr_payload[2]); - } - } else if (r->cb != NULL) { - r->cb(r->arg, ERR_OK); - } - mqtt_delete_request(r); - } else { - LWIP_DEBUGF(MQTT_DEBUG_WARN, ( "mqtt_message_received: Received %s reply, with wrong pkt_id: %d\n", mqtt_msg_type_to_str(pkt_type), pkt_id)); - } - } else { - LWIP_DEBUGF(MQTT_DEBUG_WARN, ( "mqtt_message_received: Received unknown message type: %d\n", pkt_type)); - goto out_disconnect; - } - } - return res; -out_disconnect: - return MQTT_CONNECT_DISCONNECTED; -} - - -/** - * MQTT incoming message parser - * @param client MQTT client - * @param p PBUF chain of received data - * @return Connection status - */ -static mqtt_connection_status_t -mqtt_parse_incoming(mqtt_client_t *client, struct pbuf *p) -{ - u16_t in_offset = 0; - u32_t msg_rem_len = 0; - u8_t fixed_hdr_idx = 0; - u8_t b = 0; - - while (p->tot_len > in_offset) { - /* We ALWAYS parse the header here first. Even if the header was not - included in this segment, we re-parse it here by buffering it in - client->rx_buffer. client->msg_idx keeps track of this. */ - if ((fixed_hdr_idx < 2) || ((b & 0x80) != 0)) { - - if (fixed_hdr_idx < client->msg_idx) { - /* parse header from old pbuf (buffered in client->rx_buffer) */ - b = client->rx_buffer[fixed_hdr_idx]; - } else { - /* parse header from this pbuf and save it in client->rx_buffer in case - it comes in segmented */ - b = pbuf_get_at(p, in_offset++); - client->rx_buffer[client->msg_idx++] = b; - } - fixed_hdr_idx++; - - if (fixed_hdr_idx >= 2) { - /* fixed header contains at least 2 bytes but can contain more, depending on - 'remaining length'. All bytes but the last of this have 0x80 set to - indicate more bytes are coming. */ - msg_rem_len |= (u32_t)(b & 0x7f) << ((fixed_hdr_idx - 2) * 7); - if ((b & 0x80) == 0) { - /* fixed header is done */ - LWIP_DEBUGF(MQTT_DEBUG_TRACE, ("mqtt_parse_incoming: Remaining length after fixed header: %"U32_F"\n", msg_rem_len)); - if (msg_rem_len == 0) { - /* Complete message with no extra headers of payload received */ - mqtt_message_received(client, fixed_hdr_idx, 0, 0); - client->msg_idx = 0; - fixed_hdr_idx = 0; - } else { - /* Bytes remaining in message (changes remaining length if this is - not the first segment of this message) */ - msg_rem_len = (msg_rem_len + fixed_hdr_idx) - client->msg_idx; - } - } - } - } else { - /* Fixed header has been parsed, parse variable header */ - u16_t cpy_len, cpy_start, buffer_space; - - cpy_start = (client->msg_idx - fixed_hdr_idx) % (MQTT_VAR_HEADER_BUFFER_LEN - fixed_hdr_idx) + fixed_hdr_idx; - - /* Allow to copy the lesser one of available length in input data or bytes remaining in message */ - cpy_len = (u16_t)LWIP_MIN((u16_t)(p->tot_len - in_offset), msg_rem_len); - - /* Limit to available space in buffer */ - buffer_space = MQTT_VAR_HEADER_BUFFER_LEN - cpy_start; - if (cpy_len > buffer_space) { - cpy_len = buffer_space; - } - pbuf_copy_partial(p, client->rx_buffer + cpy_start, cpy_len, in_offset); - - /* Advance get and put indexes */ - client->msg_idx += cpy_len; - in_offset += cpy_len; - msg_rem_len -= cpy_len; - - LWIP_DEBUGF(MQTT_DEBUG_TRACE, ("mqtt_parse_incoming: msg_idx: %"U32_F", cpy_len: %"U16_F", remaining %"U32_F"\n", client->msg_idx, cpy_len, msg_rem_len)); - if ((msg_rem_len == 0) || (cpy_len == buffer_space)) { - /* Whole message received or buffer is full */ - mqtt_connection_status_t res = mqtt_message_received(client, fixed_hdr_idx, (cpy_start + cpy_len) - fixed_hdr_idx, msg_rem_len); - if (res != MQTT_CONNECT_ACCEPTED) { - return res; - } - if (msg_rem_len == 0) { - /* Reset parser state */ - client->msg_idx = 0; - /* msg_tot_len = 0; */ - fixed_hdr_idx = 0; - } - } - } - } - return MQTT_CONNECT_ACCEPTED; -} - - -/** - * TCP received callback function. @see tcp_recv_fn - * @param arg MQTT client - * @param p PBUF chain of received data - * @param err Passed as return value if not ERR_OK - * @return ERR_OK or err passed into callback - */ -static err_t -mqtt_tcp_recv_cb(void *arg, struct altcp_pcb *pcb, struct pbuf *p, err_t err) -{ - mqtt_client_t *client = (mqtt_client_t *)arg; - LWIP_ASSERT("mqtt_tcp_recv_cb: client != NULL", client != NULL); - LWIP_ASSERT("mqtt_tcp_recv_cb: client->conn == pcb", client->conn == pcb); - - if (p == NULL) { - LWIP_DEBUGF(MQTT_DEBUG_TRACE, ("mqtt_tcp_recv_cb: Recv pbuf=NULL, remote has closed connection\n")); - mqtt_close(client, MQTT_CONNECT_DISCONNECTED); - } else { - mqtt_connection_status_t res; - if (err != ERR_OK) { - LWIP_DEBUGF(MQTT_DEBUG_WARN, ("mqtt_tcp_recv_cb: Recv err=%d\n", err)); - pbuf_free(p); - return err; - } - - /* Tell remote that data has been received */ - altcp_recved(pcb, p->tot_len); - res = mqtt_parse_incoming(client, p); - pbuf_free(p); - - if (res != MQTT_CONNECT_ACCEPTED) { - mqtt_close(client, res); - } - /* If keep alive functionality is used */ - if (client->keep_alive != 0) { - /* Reset server alive watchdog */ - client->server_watchdog = 0; - } - - } - return ERR_OK; -} - - -/** - * TCP data sent callback function. @see tcp_sent_fn - * @param arg MQTT client - * @param tpcb TCP connection handle - * @param len Number of bytes sent - * @return ERR_OK - */ -static err_t -mqtt_tcp_sent_cb(void *arg, struct altcp_pcb *tpcb, u16_t len) -{ - mqtt_client_t *client = (mqtt_client_t *)arg; - - LWIP_UNUSED_ARG(tpcb); - LWIP_UNUSED_ARG(len); - - if (client->conn_state == MQTT_CONNECTED) { - struct mqtt_request_t *r; - - /* Reset keep-alive send timer and server watchdog */ - client->cyclic_tick = 0; - client->server_watchdog = 0; - /* QoS 0 publish has no response from server, so call its callbacks here */ - while ((r = mqtt_take_request(&client->pend_req_queue, 0)) != NULL) { - LWIP_DEBUGF(MQTT_DEBUG_TRACE, ("mqtt_tcp_sent_cb: Calling QoS 0 publish complete callback\n")); - if (r->cb != NULL) { - r->cb(r->arg, ERR_OK); - } - mqtt_delete_request(r); - } - /* Try send any remaining buffers from output queue */ - mqtt_output_send(&client->output, client->conn); - } - return ERR_OK; -} - -/** - * TCP error callback function. @see tcp_err_fn - * @param arg MQTT client - * @param err Error encountered - */ -static void -mqtt_tcp_err_cb(void *arg, err_t err) -{ - mqtt_client_t *client = (mqtt_client_t *)arg; - LWIP_UNUSED_ARG(err); /* only used for debug output */ - LWIP_DEBUGF(MQTT_DEBUG_TRACE, ("mqtt_tcp_err_cb: TCP error callback: error %d, arg: %p\n", err, arg)); - LWIP_ASSERT("mqtt_tcp_err_cb: client != NULL", client != NULL); - /* Set conn to null before calling close as pcb is already deallocated*/ - client->conn = 0; - mqtt_close(client, MQTT_CONNECT_DISCONNECTED); -} - -/** - * TCP poll callback function. @see tcp_poll_fn - * @param arg MQTT client - * @param tpcb TCP connection handle - * @return err ERR_OK - */ -static err_t -mqtt_tcp_poll_cb(void *arg, struct altcp_pcb *tpcb) -{ - mqtt_client_t *client = (mqtt_client_t *)arg; - if (client->conn_state == MQTT_CONNECTED) { - /* Try send any remaining buffers from output queue */ - mqtt_output_send(&client->output, tpcb); - } - return ERR_OK; -} - -/** - * TCP connect callback function. @see tcp_connected_fn - * @param arg MQTT client - * @param err Always ERR_OK, mqtt_tcp_err_cb is called in case of error - * @return ERR_OK - */ -static err_t -mqtt_tcp_connect_cb(void *arg, struct altcp_pcb *tpcb, err_t err) -{ - mqtt_client_t *client = (mqtt_client_t *)arg; - - if (err != ERR_OK) { - LWIP_DEBUGF(MQTT_DEBUG_WARN, ("mqtt_tcp_connect_cb: TCP connect error %d\n", err)); - return err; - } - - /* Initiate receiver state */ - client->msg_idx = 0; - - /* Setup TCP callbacks */ - altcp_recv(tpcb, mqtt_tcp_recv_cb); - altcp_sent(tpcb, mqtt_tcp_sent_cb); - altcp_poll(tpcb, mqtt_tcp_poll_cb, 2); - - LWIP_DEBUGF(MQTT_DEBUG_TRACE, ("mqtt_tcp_connect_cb: TCP connection established to server\n")); - /* Enter MQTT connect state */ - client->conn_state = MQTT_CONNECTING; - - /* Start cyclic timer */ - sys_timeout(MQTT_CYCLIC_TIMER_INTERVAL * 1000, mqtt_cyclic_timer, client); - client->cyclic_tick = 0; - - /* Start transmission from output queue, connect message is the first one out*/ - mqtt_output_send(&client->output, client->conn); - - return ERR_OK; -} - - - -/*---------------------------------------------------------------------------------------------------- */ -/* Public API */ - - -/** - * @ingroup mqtt - * MQTT publish function. - * @param client MQTT client - * @param topic Publish topic string - * @param payload Data to publish (NULL is allowed) - * @param payload_length Length of payload (0 is allowed) - * @param qos Quality of service, 0 1 or 2 - * @param retain MQTT retain flag - * @param cb Callback to call when publish is complete or has timed out - * @param arg User supplied argument to publish callback - * @return ERR_OK if successful - * ERR_CONN if client is disconnected - * ERR_MEM if short on memory - */ -err_t -mqtt_publish(mqtt_client_t *client, const char *topic, const void *payload, u16_t payload_length, u8_t qos, u8_t retain, - mqtt_request_cb_t cb, void *arg) -{ - struct mqtt_request_t *r; - u16_t pkt_id; - size_t topic_strlen; - size_t total_len; - u16_t topic_len; - u16_t remaining_length; - - LWIP_ASSERT_CORE_LOCKED(); - LWIP_ASSERT("mqtt_publish: client != NULL", client); - LWIP_ASSERT("mqtt_publish: topic != NULL", topic); - LWIP_ERROR("mqtt_publish: TCP disconnected", (client->conn_state != TCP_DISCONNECTED), return ERR_CONN); - - topic_strlen = strlen(topic); - LWIP_ERROR("mqtt_publish: topic length overflow", (topic_strlen <= (0xFFFF - 2)), return ERR_ARG); - topic_len = (u16_t)topic_strlen; - total_len = 2 + topic_len + payload_length; - - if (qos > 0) { - total_len += 2; - /* Generate pkt_id id for QoS1 and 2 */ - pkt_id = msg_generate_packet_id(client); - } else { - /* Use reserved value pkt_id 0 for QoS 0 in request handle */ - pkt_id = 0; - } - LWIP_ERROR("mqtt_publish: total length overflow", (total_len <= 0xFFFF), return ERR_ARG); - remaining_length = (u16_t)total_len; - - LWIP_DEBUGF(MQTT_DEBUG_TRACE, ("mqtt_publish: Publish with payload length %d to topic \"%s\"\n", payload_length, topic)); - - r = mqtt_create_request(client->req_list, LWIP_ARRAYSIZE(client->req_list), pkt_id, cb, arg); - if (r == NULL) { - return ERR_MEM; - } - - if (mqtt_output_check_space(&client->output, remaining_length) == 0) { - mqtt_delete_request(r); - return ERR_MEM; - } - /* Append fixed header */ - mqtt_output_append_fixed_header(&client->output, MQTT_MSG_TYPE_PUBLISH, 0, qos, retain, remaining_length); - - /* Append Topic */ - mqtt_output_append_string(&client->output, topic, topic_len); - - /* Append packet if for QoS 1 and 2*/ - if (qos > 0) { - mqtt_output_append_u16(&client->output, pkt_id); - } - - /* Append optional publish payload */ - if ((payload != NULL) && (payload_length > 0)) { - mqtt_output_append_buf(&client->output, payload, payload_length); - } - - mqtt_append_request(&client->pend_req_queue, r); - mqtt_output_send(&client->output, client->conn); - return ERR_OK; -} - - -/** - * @ingroup mqtt - * MQTT subscribe/unsubscribe function. - * @param client MQTT client - * @param topic topic to subscribe to - * @param qos Quality of service, 0 1 or 2 (only used for subscribe) - * @param cb Callback to call when subscribe/unsubscribe reponse is received - * @param arg User supplied argument to publish callback - * @param sub 1 for subscribe, 0 for unsubscribe - * @return ERR_OK if successful, @see err_t enum for other results - */ -err_t -mqtt_sub_unsub(mqtt_client_t *client, const char *topic, u8_t qos, mqtt_request_cb_t cb, void *arg, u8_t sub) -{ - size_t topic_strlen; - size_t total_len; - u16_t topic_len; - u16_t remaining_length; - u16_t pkt_id; - struct mqtt_request_t *r; - - LWIP_ASSERT_CORE_LOCKED(); - LWIP_ASSERT("mqtt_sub_unsub: client != NULL", client); - LWIP_ASSERT("mqtt_sub_unsub: topic != NULL", topic); - - topic_strlen = strlen(topic); - LWIP_ERROR("mqtt_sub_unsub: topic length overflow", (topic_strlen <= (0xFFFF - 2)), return ERR_ARG); - topic_len = (u16_t)topic_strlen; - /* Topic string, pkt_id, qos for subscribe */ - total_len = topic_len + 2 + 2 + (sub != 0); - LWIP_ERROR("mqtt_sub_unsub: total length overflow", (total_len <= 0xFFFF), return ERR_ARG); - remaining_length = (u16_t)total_len; - - LWIP_ASSERT("mqtt_sub_unsub: qos < 3", qos < 3); - if (client->conn_state == TCP_DISCONNECTED) { - LWIP_DEBUGF(MQTT_DEBUG_WARN, ("mqtt_sub_unsub: Can not (un)subscribe in disconnected state\n")); - return ERR_CONN; - } - - pkt_id = msg_generate_packet_id(client); - r = mqtt_create_request(client->req_list, LWIP_ARRAYSIZE(client->req_list), pkt_id, cb, arg); - if (r == NULL) { - return ERR_MEM; - } - - if (mqtt_output_check_space(&client->output, remaining_length) == 0) { - mqtt_delete_request(r); - return ERR_MEM; - } - - LWIP_DEBUGF(MQTT_DEBUG_TRACE, ("mqtt_sub_unsub: Client (un)subscribe to topic \"%s\", id: %d\n", topic, pkt_id)); - - mqtt_output_append_fixed_header(&client->output, sub ? MQTT_MSG_TYPE_SUBSCRIBE : MQTT_MSG_TYPE_UNSUBSCRIBE, 0, 1, 0, remaining_length); - /* Packet id */ - mqtt_output_append_u16(&client->output, pkt_id); - /* Topic */ - mqtt_output_append_string(&client->output, topic, topic_len); - /* QoS */ - if (sub != 0) { - mqtt_output_append_u8(&client->output, LWIP_MIN(qos, 2)); - } - - mqtt_append_request(&client->pend_req_queue, r); - mqtt_output_send(&client->output, client->conn); - return ERR_OK; -} - - -/** - * @ingroup mqtt - * Set callback to handle incoming publish requests from server - * @param client MQTT client - * @param pub_cb Callback invoked when publish starts, contain topic and total length of payload - * @param data_cb Callback for each fragment of payload that arrives - * @param arg User supplied argument to both callbacks - */ -void -mqtt_set_inpub_callback(mqtt_client_t *client, mqtt_incoming_publish_cb_t pub_cb, - mqtt_incoming_data_cb_t data_cb, void *arg) -{ - LWIP_ASSERT_CORE_LOCKED(); - LWIP_ASSERT("mqtt_set_inpub_callback: client != NULL", client != NULL); - client->data_cb = data_cb; - client->pub_cb = pub_cb; - client->inpub_arg = arg; -} - -/** - * @ingroup mqtt - * Create a new MQTT client instance - * @return Pointer to instance on success, NULL otherwise - */ -mqtt_client_t * -mqtt_client_new(void) -{ - LWIP_ASSERT_CORE_LOCKED(); - return (mqtt_client_t *)mem_calloc(1, sizeof(mqtt_client_t)); -} - -/** - * @ingroup mqtt - * Free MQTT client instance - * @param client Pointer to instance to be freed - */ -void -mqtt_client_free(mqtt_client_t *client) -{ - mem_free(client); -} - -/** - * @ingroup mqtt - * Connect to MQTT server - * @param client MQTT client - * @param ip_addr Server IP - * @param port Server port - * @param cb Connection state change callback - * @param arg User supplied argument to connection callback - * @param client_info Client identification and connection options - * @return ERR_OK if successful, @see err_t enum for other results - */ -err_t -mqtt_client_connect(mqtt_client_t *client, const ip_addr_t *ip_addr, u16_t port, mqtt_connection_cb_t cb, void *arg, - const struct mqtt_connect_client_info_t *client_info) -{ - err_t err; - size_t len; - u16_t client_id_length; - /* Length is the sum of 2+"MQTT", protocol level, flags and keep alive */ - u16_t remaining_length = 2 + 4 + 1 + 1 + 2; - u8_t flags = 0, will_topic_len = 0, will_msg_len = 0; - u16_t client_user_len = 0, client_pass_len = 0; - - LWIP_ASSERT_CORE_LOCKED(); - LWIP_ASSERT("mqtt_client_connect: client != NULL", client != NULL); - LWIP_ASSERT("mqtt_client_connect: ip_addr != NULL", ip_addr != NULL); - LWIP_ASSERT("mqtt_client_connect: client_info != NULL", client_info != NULL); - LWIP_ASSERT("mqtt_client_connect: client_info->client_id != NULL", client_info->client_id != NULL); - - if (client->conn_state != TCP_DISCONNECTED) { - LWIP_DEBUGF(MQTT_DEBUG_WARN, ("mqtt_client_connect: Already connected\n")); - return ERR_ISCONN; - } - - /* Wipe clean */ - memset(client, 0, sizeof(mqtt_client_t)); - client->connect_arg = arg; - client->connect_cb = cb; - client->keep_alive = client_info->keep_alive; - mqtt_init_requests(client->req_list, LWIP_ARRAYSIZE(client->req_list)); - - /* Build connect message */ - if (client_info->will_topic != NULL && client_info->will_msg != NULL) { - flags |= MQTT_CONNECT_FLAG_WILL; - flags |= (client_info->will_qos & 3) << 3; - if (client_info->will_retain) { - flags |= MQTT_CONNECT_FLAG_WILL_RETAIN; - } - len = strlen(client_info->will_topic); - LWIP_ERROR("mqtt_client_connect: client_info->will_topic length overflow", len <= 0xFF, return ERR_VAL); - LWIP_ERROR("mqtt_client_connect: client_info->will_topic length must be > 0", len > 0, return ERR_VAL); - will_topic_len = (u8_t)len; - len = strlen(client_info->will_msg); - LWIP_ERROR("mqtt_client_connect: client_info->will_msg length overflow", len <= 0xFF, return ERR_VAL); - will_msg_len = (u8_t)len; - len = remaining_length + 2 + will_topic_len + 2 + will_msg_len; - LWIP_ERROR("mqtt_client_connect: remaining_length overflow", len <= 0xFFFF, return ERR_VAL); - remaining_length = (u16_t)len; - } - if (client_info->client_user != NULL) { - flags |= MQTT_CONNECT_FLAG_USERNAME; - len = strlen(client_info->client_user); - LWIP_ERROR("mqtt_client_connect: client_info->client_user length overflow", len <= 0xFFFF, return ERR_VAL); - LWIP_ERROR("mqtt_client_connect: client_info->client_user length must be > 0", len > 0, return ERR_VAL); - client_user_len = (u16_t)len; - len = remaining_length + 2 + client_user_len; - LWIP_ERROR("mqtt_client_connect: remaining_length overflow", len <= 0xFFFF, return ERR_VAL); - remaining_length = (u16_t)len; - } - if (client_info->client_pass != NULL) { - flags |= MQTT_CONNECT_FLAG_PASSWORD; - len = strlen(client_info->client_pass); - LWIP_ERROR("mqtt_client_connect: client_info->client_pass length overflow", len <= 0xFFFF, return ERR_VAL); - LWIP_ERROR("mqtt_client_connect: client_info->client_pass length must be > 0", len > 0, return ERR_VAL); - client_pass_len = (u16_t)len; - len = remaining_length + 2 + client_pass_len; - LWIP_ERROR("mqtt_client_connect: remaining_length overflow", len <= 0xFFFF, return ERR_VAL); - remaining_length = (u16_t)len; - } - - /* Don't complicate things, always connect using clean session */ - flags |= MQTT_CONNECT_FLAG_CLEAN_SESSION; - - len = strlen(client_info->client_id); - LWIP_ERROR("mqtt_client_connect: client_info->client_id length overflow", len <= 0xFFFF, return ERR_VAL); - client_id_length = (u16_t)len; - len = remaining_length + 2 + client_id_length; - LWIP_ERROR("mqtt_client_connect: remaining_length overflow", len <= 0xFFFF, return ERR_VAL); - remaining_length = (u16_t)len; - - if (mqtt_output_check_space(&client->output, remaining_length) == 0) { - return ERR_MEM; - } - -#if LWIP_ALTCP && LWIP_ALTCP_TLS - if (client_info->tls_config) { - client->conn = altcp_tls_new(client_info->tls_config, IP_GET_TYPE(ip_addr)); - } else -#endif - { - client->conn = altcp_tcp_new_ip_type(IP_GET_TYPE(ip_addr)); - } - if (client->conn == NULL) { - return ERR_MEM; - } - - /* Set arg pointer for callbacks */ - altcp_arg(client->conn, client); - /* Any local address, pick random local port number */ - err = altcp_bind(client->conn, IP_ADDR_ANY, 0); - if (err != ERR_OK) { - LWIP_DEBUGF(MQTT_DEBUG_WARN, ("mqtt_client_connect: Error binding to local ip/port, %d\n", err)); - goto tcp_fail; - } - LWIP_DEBUGF(MQTT_DEBUG_TRACE, ("mqtt_client_connect: Connecting to host: %s at port:%"U16_F"\n", ipaddr_ntoa(ip_addr), port)); - - /* Connect to server */ - err = altcp_connect(client->conn, ip_addr, port, mqtt_tcp_connect_cb); - if (err != ERR_OK) { - LWIP_DEBUGF(MQTT_DEBUG_TRACE, ("mqtt_client_connect: Error connecting to remote ip/port, %d\n", err)); - goto tcp_fail; - } - /* Set error callback */ - altcp_err(client->conn, mqtt_tcp_err_cb); - client->conn_state = TCP_CONNECTING; - - /* Append fixed header */ - mqtt_output_append_fixed_header(&client->output, MQTT_MSG_TYPE_CONNECT, 0, 0, 0, remaining_length); - /* Append Protocol string */ - mqtt_output_append_string(&client->output, "MQTT", 4); - /* Append Protocol level */ - mqtt_output_append_u8(&client->output, 4); - /* Append connect flags */ - mqtt_output_append_u8(&client->output, flags); - /* Append keep-alive */ - mqtt_output_append_u16(&client->output, client_info->keep_alive); - /* Append client id */ - mqtt_output_append_string(&client->output, client_info->client_id, client_id_length); - /* Append will message if used */ - if ((flags & MQTT_CONNECT_FLAG_WILL) != 0) { - mqtt_output_append_string(&client->output, client_info->will_topic, will_topic_len); - mqtt_output_append_string(&client->output, client_info->will_msg, will_msg_len); - } - /* Append user name if given */ - if ((flags & MQTT_CONNECT_FLAG_USERNAME) != 0) { - mqtt_output_append_string(&client->output, client_info->client_user, client_user_len); - } - /* Append password if given */ - if ((flags & MQTT_CONNECT_FLAG_PASSWORD) != 0) { - mqtt_output_append_string(&client->output, client_info->client_pass, client_pass_len); - } - return ERR_OK; - -tcp_fail: - altcp_abort(client->conn); - client->conn = NULL; - return err; -} - - -/** - * @ingroup mqtt - * Disconnect from MQTT server - * @param client MQTT client - */ -void -mqtt_disconnect(mqtt_client_t *client) -{ - LWIP_ASSERT_CORE_LOCKED(); - LWIP_ASSERT("mqtt_disconnect: client != NULL", client); - /* If connection in not already closed */ - if (client->conn_state != TCP_DISCONNECTED) { - /* Set conn_state before calling mqtt_close to prevent callback from being called */ - client->conn_state = TCP_DISCONNECTED; - mqtt_close(client, (mqtt_connection_status_t)0); - } -} - -/** - * @ingroup mqtt - * Check connection with server - * @param client MQTT client - * @return 1 if connected to server, 0 otherwise - */ -u8_t -mqtt_client_is_connected(mqtt_client_t *client) -{ - LWIP_ASSERT_CORE_LOCKED(); - LWIP_ASSERT("mqtt_client_is_connected: client != NULL", client); - return client->conn_state == MQTT_CONNECTED; -} - -#endif /* LWIP_TCP && LWIP_CALLBACK_API */ diff --git a/Middlewares/Third_Party/LwIP/src/core/altcp.c b/Middlewares/Third_Party/LwIP/src/core/altcp.c deleted file mode 100644 index d46d6cd..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/altcp.c +++ /dev/null @@ -1,681 +0,0 @@ -/** - * @file - * @defgroup altcp Application layered TCP Functions - * @ingroup altcp_api - * - * This file contains the common functions for altcp to work. - * For more details see @ref altcp_api. - */ - -/** - * @defgroup altcp_api Application layered TCP Introduction - * @ingroup callbackstyle_api - * - * Overview - * -------- - * altcp (application layered TCP connection API; to be used from TCPIP thread) - * is an abstraction layer that prevents applications linking hard against the - * @ref tcp.h functions while providing the same functionality. It is used to - * e.g. add SSL/TLS (see LWIP_ALTCP_TLS) or proxy-connect support to an application - * written for the tcp callback API without that application knowing the - * protocol details. - * - * * This interface mimics the tcp callback API to the application while preventing - * direct linking (much like virtual functions). - * * This way, an application can make use of other application layer protocols - * on top of TCP without knowing the details (e.g. TLS, proxy connection). - * * This is achieved by simply including "lwip/altcp.h" instead of "lwip/tcp.h", - * replacing "struct tcp_pcb" with "struct altcp_pcb" and prefixing all functions - * with "altcp_" instead of "tcp_". - * - * With altcp support disabled (LWIP_ALTCP==0), applications written against the - * altcp API can still be compiled but are directly linked against the tcp.h - * callback API and then cannot use layered protocols. To minimize code changes - * in this case, the use of altcp_allocators is strongly suggested. - * - * Usage - * ----- - * To make use of this API from an existing tcp raw API application: - * * Include "lwip/altcp.h" instead of "lwip/tcp.h" - * * Replace "struct tcp_pcb" with "struct altcp_pcb" - * * Prefix all called tcp API functions with "altcp_" instead of "tcp_" to link - * against the altcp functions - * * @ref altcp_new (and @ref altcp_new_ip_type/@ref altcp_new_ip6) take - * an @ref altcp_allocator_t as an argument, whereas the original tcp API - * functions take no arguments. - * * An @ref altcp_allocator_t allocator is an object that holds a pointer to an - * allocator object and a corresponding state (e.g. for TLS, the corresponding - * state may hold certificates or keys). This way, the application does not - * even need to know if it uses TLS or pure TCP, this is handled at runtime - * by passing a specific allocator. - * * An application can alternatively bind hard to the altcp_tls API by calling - * @ref altcp_tls_new or @ref altcp_tls_wrap. - * * The TLS layer is not directly implemented by lwIP, but a port to mbedTLS is - * provided. - * * Another altcp layer is proxy-connect to use TLS behind a HTTP proxy (see - * @ref altcp_proxyconnect.h) - * - * altcp_allocator_t - * ----------------- - * An altcp allocator is created by the application by combining an allocator - * callback function and a corresponding state, e.g.:\code{.c} - * static const unsigned char cert[] = {0x2D, ... (see mbedTLS doc for how to create this)}; - * struct altcp_tls_config * conf = altcp_tls_create_config_client(cert, sizeof(cert)); - * altcp_allocator_t tls_allocator = { - * altcp_tls_alloc, conf - * }; - * \endcode - * - * - * struct altcp_tls_config - * ----------------------- - * The struct altcp_tls_config holds state that is needed to create new TLS client - * or server connections (e.g. certificates and private keys). - * - * It is not defined by lwIP itself but by the TLS port (e.g. altcp_tls to mbedTLS - * adaption). However, the parameters used to create it are defined in @ref - * altcp_tls.h (see @ref altcp_tls_create_config_server_privkey_cert for servers - * and @ref altcp_tls_create_config_client/@ref altcp_tls_create_config_client_2wayauth - * for clients). - * - * For mbedTLS, ensure that certificates can be parsed by 'mbedtls_x509_crt_parse()' and - * private keys can be parsed by 'mbedtls_pk_parse_key()'. - */ - -/* - * Copyright (c) 2017 Simon Goldschmidt - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Simon Goldschmidt - * - */ - -#include "lwip/opt.h" - -#if LWIP_ALTCP /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/altcp.h" -#include "lwip/priv/altcp_priv.h" -#include "lwip/altcp_tcp.h" -#include "lwip/tcp.h" -#include "lwip/mem.h" - -#include - -extern const struct altcp_functions altcp_tcp_functions; - -/** - * For altcp layer implementations only: allocate a new struct altcp_pcb from the pool - * and zero the memory - */ -struct altcp_pcb * -altcp_alloc(void) -{ - struct altcp_pcb *ret = (struct altcp_pcb *)memp_malloc(MEMP_ALTCP_PCB); - if (ret != NULL) { - memset(ret, 0, sizeof(struct altcp_pcb)); - } - return ret; -} - -/** - * For altcp layer implementations only: return a struct altcp_pcb to the pool - */ -void -altcp_free(struct altcp_pcb *conn) -{ - if (conn) { - if (conn->fns && conn->fns->dealloc) { - conn->fns->dealloc(conn); - } - memp_free(MEMP_ALTCP_PCB, conn); - } -} - -/** - * @ingroup altcp - * altcp_new_ip6: @ref altcp_new for IPv6 - */ -struct altcp_pcb * -altcp_new_ip6(altcp_allocator_t *allocator) -{ - return altcp_new_ip_type(allocator, IPADDR_TYPE_V6); -} - -/** - * @ingroup altcp - * altcp_new: @ref altcp_new for IPv4 - */ -struct altcp_pcb * -altcp_new(altcp_allocator_t *allocator) -{ - return altcp_new_ip_type(allocator, IPADDR_TYPE_V4); -} - -/** - * @ingroup altcp - * altcp_new_ip_type: called by applications to allocate a new pcb with the help of an - * allocator function. - * - * @param allocator allocator function and argument - * @param ip_type IP version of the pcb (@ref lwip_ip_addr_type) - * @return a new altcp_pcb or NULL on error - */ -struct altcp_pcb * -altcp_new_ip_type(altcp_allocator_t *allocator, u8_t ip_type) -{ - struct altcp_pcb *conn; - if (allocator == NULL) { - /* no allocator given, create a simple TCP connection */ - return altcp_tcp_new_ip_type(ip_type); - } - if (allocator->alloc == NULL) { - /* illegal allocator */ - return NULL; - } - conn = allocator->alloc(allocator->arg, ip_type); - if (conn == NULL) { - /* allocation failed */ - return NULL; - } - return conn; -} - -/** - * @ingroup altcp - * @see tcp_arg() - */ -void -altcp_arg(struct altcp_pcb *conn, void *arg) -{ - if (conn) { - conn->arg = arg; - } -} - -/** - * @ingroup altcp - * @see tcp_accept() - */ -void -altcp_accept(struct altcp_pcb *conn, altcp_accept_fn accept) -{ - if (conn != NULL) { - conn->accept = accept; - } -} - -/** - * @ingroup altcp - * @see tcp_recv() - */ -void -altcp_recv(struct altcp_pcb *conn, altcp_recv_fn recv) -{ - if (conn) { - conn->recv = recv; - } -} - -/** - * @ingroup altcp - * @see tcp_sent() - */ -void -altcp_sent(struct altcp_pcb *conn, altcp_sent_fn sent) -{ - if (conn) { - conn->sent = sent; - } -} - -/** - * @ingroup altcp - * @see tcp_poll() - */ -void -altcp_poll(struct altcp_pcb *conn, altcp_poll_fn poll, u8_t interval) -{ - if (conn) { - conn->poll = poll; - conn->pollinterval = interval; - if (conn->fns && conn->fns->set_poll) { - conn->fns->set_poll(conn, interval); - } - } -} - -/** - * @ingroup altcp - * @see tcp_err() - */ -void -altcp_err(struct altcp_pcb *conn, altcp_err_fn err) -{ - if (conn) { - conn->err = err; - } -} - -/* Generic functions calling the "virtual" ones */ - -/** - * @ingroup altcp - * @see tcp_recved() - */ -void -altcp_recved(struct altcp_pcb *conn, u16_t len) -{ - if (conn && conn->fns && conn->fns->recved) { - conn->fns->recved(conn, len); - } -} - -/** - * @ingroup altcp - * @see tcp_bind() - */ -err_t -altcp_bind(struct altcp_pcb *conn, const ip_addr_t *ipaddr, u16_t port) -{ - if (conn && conn->fns && conn->fns->bind) { - return conn->fns->bind(conn, ipaddr, port); - } - return ERR_VAL; -} - -/** - * @ingroup altcp - * @see tcp_connect() - */ -err_t -altcp_connect(struct altcp_pcb *conn, const ip_addr_t *ipaddr, u16_t port, altcp_connected_fn connected) -{ - if (conn && conn->fns && conn->fns->connect) { - return conn->fns->connect(conn, ipaddr, port, connected); - } - return ERR_VAL; -} - -/** - * @ingroup altcp - * @see tcp_listen_with_backlog_and_err() - */ -struct altcp_pcb * -altcp_listen_with_backlog_and_err(struct altcp_pcb *conn, u8_t backlog, err_t *err) -{ - if (conn && conn->fns && conn->fns->listen) { - return conn->fns->listen(conn, backlog, err); - } - return NULL; -} - -/** - * @ingroup altcp - * @see tcp_abort() - */ -void -altcp_abort(struct altcp_pcb *conn) -{ - if (conn && conn->fns && conn->fns->abort) { - conn->fns->abort(conn); - } -} - -/** - * @ingroup altcp - * @see tcp_close() - */ -err_t -altcp_close(struct altcp_pcb *conn) -{ - if (conn && conn->fns && conn->fns->close) { - return conn->fns->close(conn); - } - return ERR_VAL; -} - -/** - * @ingroup altcp - * @see tcp_shutdown() - */ -err_t -altcp_shutdown(struct altcp_pcb *conn, int shut_rx, int shut_tx) -{ - if (conn && conn->fns && conn->fns->shutdown) { - return conn->fns->shutdown(conn, shut_rx, shut_tx); - } - return ERR_VAL; -} - -/** - * @ingroup altcp - * @see tcp_write() - */ -err_t -altcp_write(struct altcp_pcb *conn, const void *dataptr, u16_t len, u8_t apiflags) -{ - if (conn && conn->fns && conn->fns->write) { - return conn->fns->write(conn, dataptr, len, apiflags); - } - return ERR_VAL; -} - -/** - * @ingroup altcp - * @see tcp_output() - */ -err_t -altcp_output(struct altcp_pcb *conn) -{ - if (conn && conn->fns && conn->fns->output) { - return conn->fns->output(conn); - } - return ERR_VAL; -} - -/** - * @ingroup altcp - * @see tcp_mss() - */ -u16_t -altcp_mss(struct altcp_pcb *conn) -{ - if (conn && conn->fns && conn->fns->mss) { - return conn->fns->mss(conn); - } - return 0; -} - -/** - * @ingroup altcp - * @see tcp_sndbuf() - */ -u16_t -altcp_sndbuf(struct altcp_pcb *conn) -{ - if (conn && conn->fns && conn->fns->sndbuf) { - return conn->fns->sndbuf(conn); - } - return 0; -} - -/** - * @ingroup altcp - * @see tcp_sndqueuelen() - */ -u16_t -altcp_sndqueuelen(struct altcp_pcb *conn) -{ - if (conn && conn->fns && conn->fns->sndqueuelen) { - return conn->fns->sndqueuelen(conn); - } - return 0; -} - -void -altcp_nagle_disable(struct altcp_pcb *conn) -{ - if (conn && conn->fns && conn->fns->nagle_disable) { - conn->fns->nagle_disable(conn); - } -} - -void -altcp_nagle_enable(struct altcp_pcb *conn) -{ - if (conn && conn->fns && conn->fns->nagle_enable) { - conn->fns->nagle_enable(conn); - } -} - -int -altcp_nagle_disabled(struct altcp_pcb *conn) -{ - if (conn && conn->fns && conn->fns->nagle_disabled) { - return conn->fns->nagle_disabled(conn); - } - return 0; -} - -/** - * @ingroup altcp - * @see tcp_setprio() - */ -void -altcp_setprio(struct altcp_pcb *conn, u8_t prio) -{ - if (conn && conn->fns && conn->fns->setprio) { - conn->fns->setprio(conn, prio); - } -} - -err_t -altcp_get_tcp_addrinfo(struct altcp_pcb *conn, int local, ip_addr_t *addr, u16_t *port) -{ - if (conn && conn->fns && conn->fns->addrinfo) { - return conn->fns->addrinfo(conn, local, addr, port); - } - return ERR_VAL; -} - -ip_addr_t * -altcp_get_ip(struct altcp_pcb *conn, int local) -{ - if (conn && conn->fns && conn->fns->getip) { - return conn->fns->getip(conn, local); - } - return NULL; -} - -u16_t -altcp_get_port(struct altcp_pcb *conn, int local) -{ - if (conn && conn->fns && conn->fns->getport) { - return conn->fns->getport(conn, local); - } - return 0; -} - -#ifdef LWIP_DEBUG -enum tcp_state -altcp_dbg_get_tcp_state(struct altcp_pcb *conn) -{ - if (conn && conn->fns && conn->fns->dbg_get_tcp_state) { - return conn->fns->dbg_get_tcp_state(conn); - } - return CLOSED; -} -#endif - -/* Default implementations for the "virtual" functions */ - -void -altcp_default_set_poll(struct altcp_pcb *conn, u8_t interval) -{ - if (conn && conn->inner_conn) { - altcp_poll(conn->inner_conn, conn->poll, interval); - } -} - -void -altcp_default_recved(struct altcp_pcb *conn, u16_t len) -{ - if (conn && conn->inner_conn) { - altcp_recved(conn->inner_conn, len); - } -} - -err_t -altcp_default_bind(struct altcp_pcb *conn, const ip_addr_t *ipaddr, u16_t port) -{ - if (conn && conn->inner_conn) { - return altcp_bind(conn->inner_conn, ipaddr, port); - } - return ERR_VAL; -} - -err_t -altcp_default_shutdown(struct altcp_pcb *conn, int shut_rx, int shut_tx) -{ - if (conn) { - if (shut_rx && shut_tx && conn->fns && conn->fns->close) { - /* default shutdown for both sides is close */ - return conn->fns->close(conn); - } - if (conn->inner_conn) { - return altcp_shutdown(conn->inner_conn, shut_rx, shut_tx); - } - } - return ERR_VAL; -} - -err_t -altcp_default_write(struct altcp_pcb *conn, const void *dataptr, u16_t len, u8_t apiflags) -{ - if (conn && conn->inner_conn) { - return altcp_write(conn->inner_conn, dataptr, len, apiflags); - } - return ERR_VAL; -} - -err_t -altcp_default_output(struct altcp_pcb *conn) -{ - if (conn && conn->inner_conn) { - return altcp_output(conn->inner_conn); - } - return ERR_VAL; -} - -u16_t -altcp_default_mss(struct altcp_pcb *conn) -{ - if (conn && conn->inner_conn) { - return altcp_mss(conn->inner_conn); - } - return 0; -} - -u16_t -altcp_default_sndbuf(struct altcp_pcb *conn) -{ - if (conn && conn->inner_conn) { - return altcp_sndbuf(conn->inner_conn); - } - return 0; -} - -u16_t -altcp_default_sndqueuelen(struct altcp_pcb *conn) -{ - if (conn && conn->inner_conn) { - return altcp_sndqueuelen(conn->inner_conn); - } - return 0; -} - -void -altcp_default_nagle_disable(struct altcp_pcb *conn) -{ - if (conn && conn->inner_conn) { - altcp_nagle_disable(conn->inner_conn); - } -} - -void -altcp_default_nagle_enable(struct altcp_pcb *conn) -{ - if (conn && conn->inner_conn) { - altcp_nagle_enable(conn->inner_conn); - } -} - -int -altcp_default_nagle_disabled(struct altcp_pcb *conn) -{ - if (conn && conn->inner_conn) { - return altcp_nagle_disabled(conn->inner_conn); - } - return 0; -} - -void -altcp_default_setprio(struct altcp_pcb *conn, u8_t prio) -{ - if (conn && conn->inner_conn) { - altcp_setprio(conn->inner_conn, prio); - } -} - -void -altcp_default_dealloc(struct altcp_pcb *conn) -{ - LWIP_UNUSED_ARG(conn); - /* nothing to do */ -} - -err_t -altcp_default_get_tcp_addrinfo(struct altcp_pcb *conn, int local, ip_addr_t *addr, u16_t *port) -{ - if (conn && conn->inner_conn) { - return altcp_get_tcp_addrinfo(conn->inner_conn, local, addr, port); - } - return ERR_VAL; -} - -ip_addr_t * -altcp_default_get_ip(struct altcp_pcb *conn, int local) -{ - if (conn && conn->inner_conn) { - return altcp_get_ip(conn->inner_conn, local); - } - return NULL; -} - -u16_t -altcp_default_get_port(struct altcp_pcb *conn, int local) -{ - if (conn && conn->inner_conn) { - return altcp_get_port(conn->inner_conn, local); - } - return 0; -} - -#ifdef LWIP_DEBUG -enum tcp_state -altcp_default_dbg_get_tcp_state(struct altcp_pcb *conn) -{ - if (conn && conn->inner_conn) { - return altcp_dbg_get_tcp_state(conn->inner_conn); - } - return CLOSED; -} -#endif - - -#endif /* LWIP_ALTCP */ diff --git a/Middlewares/Third_Party/LwIP/src/core/altcp_alloc.c b/Middlewares/Third_Party/LwIP/src/core/altcp_alloc.c deleted file mode 100644 index cd619bc..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/altcp_alloc.c +++ /dev/null @@ -1,87 +0,0 @@ -/** - * @file - * Application layered TCP connection API (to be used from TCPIP thread)\n - * This interface mimics the tcp callback API to the application while preventing - * direct linking (much like virtual functions). - * This way, an application can make use of other application layer protocols - * on top of TCP without knowing the details (e.g. TLS, proxy connection). - * - * This file contains allocation implementation that combine several layers. - */ - -/* - * Copyright (c) 2017 Simon Goldschmidt - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Simon Goldschmidt - * - */ - -#include "lwip/opt.h" - -#if LWIP_ALTCP /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/altcp.h" -#include "lwip/altcp_tcp.h" -#include "lwip/altcp_tls.h" -#include "lwip/priv/altcp_priv.h" -#include "lwip/mem.h" - -#include - -#if LWIP_ALTCP_TLS - -/** This standard allocator function creates an altcp pcb for - * TLS over TCP */ -struct altcp_pcb * -altcp_tls_new(struct altcp_tls_config *config, u8_t ip_type) -{ - struct altcp_pcb *inner_conn, *ret; - LWIP_UNUSED_ARG(ip_type); - - inner_conn = altcp_tcp_new_ip_type(ip_type); - if (inner_conn == NULL) { - return NULL; - } - ret = altcp_tls_wrap(config, inner_conn); - if (ret == NULL) { - altcp_close(inner_conn); - } - return ret; -} - -/** This standard allocator function creates an altcp pcb for - * TLS over TCP */ -struct altcp_pcb * -altcp_tls_alloc(void *arg, u8_t ip_type) -{ - return altcp_tls_new((struct altcp_tls_config *)arg, ip_type); -} - -#endif /* LWIP_ALTCP_TLS */ - -#endif /* LWIP_ALTCP */ diff --git a/Middlewares/Third_Party/LwIP/src/core/altcp_tcp.c b/Middlewares/Third_Party/LwIP/src/core/altcp_tcp.c deleted file mode 100644 index b715f04..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/altcp_tcp.c +++ /dev/null @@ -1,543 +0,0 @@ -/** - * @file - * Application layered TCP connection API (to be used from TCPIP thread)\n - * This interface mimics the tcp callback API to the application while preventing - * direct linking (much like virtual functions). - * This way, an application can make use of other application layer protocols - * on top of TCP without knowing the details (e.g. TLS, proxy connection). - * - * This file contains the base implementation calling into tcp. - */ - -/* - * Copyright (c) 2017 Simon Goldschmidt - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Simon Goldschmidt - * - */ - -#include "lwip/opt.h" - -#if LWIP_ALTCP /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/altcp.h" -#include "lwip/altcp_tcp.h" -#include "lwip/priv/altcp_priv.h" -#include "lwip/tcp.h" -#include "lwip/mem.h" - -#include - -#define ALTCP_TCP_ASSERT_CONN(conn) do { \ - LWIP_ASSERT("conn->inner_conn == NULL", (conn)->inner_conn == NULL); \ - LWIP_UNUSED_ARG(conn); /* for LWIP_NOASSERT */ } while(0) -#define ALTCP_TCP_ASSERT_CONN_PCB(conn, tpcb) do { \ - LWIP_ASSERT("pcb mismatch", (conn)->state == tpcb); \ - LWIP_UNUSED_ARG(tpcb); /* for LWIP_NOASSERT */ \ - ALTCP_TCP_ASSERT_CONN(conn); } while(0) - - -/* Variable prototype, the actual declaration is at the end of this file - since it contains pointers to static functions declared here */ -extern const struct altcp_functions altcp_tcp_functions; - -static void altcp_tcp_setup(struct altcp_pcb *conn, struct tcp_pcb *tpcb); - -/* callback functions for TCP */ -static err_t -altcp_tcp_accept(void *arg, struct tcp_pcb *new_tpcb, err_t err) -{ - struct altcp_pcb *listen_conn = (struct altcp_pcb *)arg; - if (listen_conn && listen_conn->accept) { - /* create a new altcp_conn to pass to the next 'accept' callback */ - struct altcp_pcb *new_conn = altcp_alloc(); - if (new_conn == NULL) { - return ERR_MEM; - } - altcp_tcp_setup(new_conn, new_tpcb); - return listen_conn->accept(listen_conn->arg, new_conn, err); - } - return ERR_ARG; -} - -static err_t -altcp_tcp_connected(void *arg, struct tcp_pcb *tpcb, err_t err) -{ - struct altcp_pcb *conn = (struct altcp_pcb *)arg; - if (conn) { - ALTCP_TCP_ASSERT_CONN_PCB(conn, tpcb); - if (conn->connected) { - return conn->connected(conn->arg, conn, err); - } - } - return ERR_OK; -} - -static err_t -altcp_tcp_recv(void *arg, struct tcp_pcb *tpcb, struct pbuf *p, err_t err) -{ - struct altcp_pcb *conn = (struct altcp_pcb *)arg; - if (conn) { - ALTCP_TCP_ASSERT_CONN_PCB(conn, tpcb); - if (conn->recv) { - return conn->recv(conn->arg, conn, p, err); - } - } - if (p != NULL) { - /* prevent memory leaks */ - pbuf_free(p); - } - return ERR_OK; -} - -static err_t -altcp_tcp_sent(void *arg, struct tcp_pcb *tpcb, u16_t len) -{ - struct altcp_pcb *conn = (struct altcp_pcb *)arg; - if (conn) { - ALTCP_TCP_ASSERT_CONN_PCB(conn, tpcb); - if (conn->sent) { - return conn->sent(conn->arg, conn, len); - } - } - return ERR_OK; -} - -static err_t -altcp_tcp_poll(void *arg, struct tcp_pcb *tpcb) -{ - struct altcp_pcb *conn = (struct altcp_pcb *)arg; - if (conn) { - ALTCP_TCP_ASSERT_CONN_PCB(conn, tpcb); - if (conn->poll) { - return conn->poll(conn->arg, conn); - } - } - return ERR_OK; -} - -static void -altcp_tcp_err(void *arg, err_t err) -{ - struct altcp_pcb *conn = (struct altcp_pcb *)arg; - if (conn) { - conn->state = NULL; /* already freed */ - if (conn->err) { - conn->err(conn->arg, err); - } - altcp_free(conn); - } -} - -/* setup functions */ - -static void -altcp_tcp_remove_callbacks(struct tcp_pcb *tpcb) -{ - tcp_arg(tpcb, NULL); - tcp_recv(tpcb, NULL); - tcp_sent(tpcb, NULL); - tcp_err(tpcb, NULL); - tcp_poll(tpcb, NULL, tpcb->pollinterval); -} - -static void -altcp_tcp_setup_callbacks(struct altcp_pcb *conn, struct tcp_pcb *tpcb) -{ - tcp_arg(tpcb, conn); - tcp_recv(tpcb, altcp_tcp_recv); - tcp_sent(tpcb, altcp_tcp_sent); - tcp_err(tpcb, altcp_tcp_err); - /* tcp_poll is set when interval is set by application */ - /* listen is set totally different :-) */ -} - -static void -altcp_tcp_setup(struct altcp_pcb *conn, struct tcp_pcb *tpcb) -{ - altcp_tcp_setup_callbacks(conn, tpcb); - conn->state = tpcb; - conn->fns = &altcp_tcp_functions; -} - -struct altcp_pcb * -altcp_tcp_new_ip_type(u8_t ip_type) -{ - /* Allocate the tcp pcb first to invoke the priority handling code - if we're out of pcbs */ - struct tcp_pcb *tpcb = tcp_new_ip_type(ip_type); - if (tpcb != NULL) { - struct altcp_pcb *ret = altcp_alloc(); - if (ret != NULL) { - altcp_tcp_setup(ret, tpcb); - return ret; - } else { - /* altcp_pcb allocation failed -> free the tcp_pcb too */ - tcp_close(tpcb); - } - } - return NULL; -} - -/** altcp_tcp allocator function fitting to @ref altcp_allocator_t / @ref altcp_new. -* -* arg pointer is not used for TCP. -*/ -struct altcp_pcb * -altcp_tcp_alloc(void *arg, u8_t ip_type) -{ - LWIP_UNUSED_ARG(arg); - return altcp_tcp_new_ip_type(ip_type); -} - -struct altcp_pcb * -altcp_tcp_wrap(struct tcp_pcb *tpcb) -{ - if (tpcb != NULL) { - struct altcp_pcb *ret = altcp_alloc(); - if (ret != NULL) { - altcp_tcp_setup(ret, tpcb); - return ret; - } - } - return NULL; -} - - -/* "virtual" functions calling into tcp */ -static void -altcp_tcp_set_poll(struct altcp_pcb *conn, u8_t interval) -{ - if (conn != NULL) { - struct tcp_pcb *pcb = (struct tcp_pcb *)conn->state; - ALTCP_TCP_ASSERT_CONN(conn); - tcp_poll(pcb, altcp_tcp_poll, interval); - } -} - -static void -altcp_tcp_recved(struct altcp_pcb *conn, u16_t len) -{ - if (conn != NULL) { - struct tcp_pcb *pcb = (struct tcp_pcb *)conn->state; - ALTCP_TCP_ASSERT_CONN(conn); - tcp_recved(pcb, len); - } -} - -static err_t -altcp_tcp_bind(struct altcp_pcb *conn, const ip_addr_t *ipaddr, u16_t port) -{ - struct tcp_pcb *pcb; - if (conn == NULL) { - return ERR_VAL; - } - ALTCP_TCP_ASSERT_CONN(conn); - pcb = (struct tcp_pcb *)conn->state; - return tcp_bind(pcb, ipaddr, port); -} - -static err_t -altcp_tcp_connect(struct altcp_pcb *conn, const ip_addr_t *ipaddr, u16_t port, altcp_connected_fn connected) -{ - struct tcp_pcb *pcb; - if (conn == NULL) { - return ERR_VAL; - } - ALTCP_TCP_ASSERT_CONN(conn); - conn->connected = connected; - pcb = (struct tcp_pcb *)conn->state; - return tcp_connect(pcb, ipaddr, port, altcp_tcp_connected); -} - -static struct altcp_pcb * -altcp_tcp_listen(struct altcp_pcb *conn, u8_t backlog, err_t *err) -{ - struct tcp_pcb *pcb; - struct tcp_pcb *lpcb; - if (conn == NULL) { - return NULL; - } - ALTCP_TCP_ASSERT_CONN(conn); - pcb = (struct tcp_pcb *)conn->state; - lpcb = tcp_listen_with_backlog_and_err(pcb, backlog, err); - if (lpcb != NULL) { - conn->state = lpcb; - tcp_accept(lpcb, altcp_tcp_accept); - return conn; - } - return NULL; -} - -static void -altcp_tcp_abort(struct altcp_pcb *conn) -{ - if (conn != NULL) { - struct tcp_pcb *pcb = (struct tcp_pcb *)conn->state; - ALTCP_TCP_ASSERT_CONN(conn); - if (pcb) { - tcp_abort(pcb); - } - } -} - -static err_t -altcp_tcp_close(struct altcp_pcb *conn) -{ - struct tcp_pcb *pcb; - if (conn == NULL) { - return ERR_VAL; - } - ALTCP_TCP_ASSERT_CONN(conn); - pcb = (struct tcp_pcb *)conn->state; - if (pcb) { - err_t err; - tcp_poll_fn oldpoll = pcb->poll; - altcp_tcp_remove_callbacks(pcb); - err = tcp_close(pcb); - if (err != ERR_OK) { - /* not closed, set up all callbacks again */ - altcp_tcp_setup_callbacks(conn, pcb); - /* poll callback is not included in the above */ - tcp_poll(pcb, oldpoll, pcb->pollinterval); - return err; - } - conn->state = NULL; /* unsafe to reference pcb after tcp_close(). */ - } - altcp_free(conn); - return ERR_OK; -} - -static err_t -altcp_tcp_shutdown(struct altcp_pcb *conn, int shut_rx, int shut_tx) -{ - struct tcp_pcb *pcb; - if (conn == NULL) { - return ERR_VAL; - } - ALTCP_TCP_ASSERT_CONN(conn); - pcb = (struct tcp_pcb *)conn->state; - return tcp_shutdown(pcb, shut_rx, shut_tx); -} - -static err_t -altcp_tcp_write(struct altcp_pcb *conn, const void *dataptr, u16_t len, u8_t apiflags) -{ - struct tcp_pcb *pcb; - if (conn == NULL) { - return ERR_VAL; - } - ALTCP_TCP_ASSERT_CONN(conn); - pcb = (struct tcp_pcb *)conn->state; - return tcp_write(pcb, dataptr, len, apiflags); -} - -static err_t -altcp_tcp_output(struct altcp_pcb *conn) -{ - struct tcp_pcb *pcb; - if (conn == NULL) { - return ERR_VAL; - } - ALTCP_TCP_ASSERT_CONN(conn); - pcb = (struct tcp_pcb *)conn->state; - return tcp_output(pcb); -} - -static u16_t -altcp_tcp_mss(struct altcp_pcb *conn) -{ - struct tcp_pcb *pcb; - if (conn == NULL) { - return 0; - } - ALTCP_TCP_ASSERT_CONN(conn); - pcb = (struct tcp_pcb *)conn->state; - return tcp_mss(pcb); -} - -static u16_t -altcp_tcp_sndbuf(struct altcp_pcb *conn) -{ - struct tcp_pcb *pcb; - if (conn == NULL) { - return 0; - } - ALTCP_TCP_ASSERT_CONN(conn); - pcb = (struct tcp_pcb *)conn->state; - return tcp_sndbuf(pcb); -} - -static u16_t -altcp_tcp_sndqueuelen(struct altcp_pcb *conn) -{ - struct tcp_pcb *pcb; - if (conn == NULL) { - return 0; - } - ALTCP_TCP_ASSERT_CONN(conn); - pcb = (struct tcp_pcb *)conn->state; - return tcp_sndqueuelen(pcb); -} - -static void -altcp_tcp_nagle_disable(struct altcp_pcb *conn) -{ - if (conn && conn->state) { - struct tcp_pcb *pcb = (struct tcp_pcb *)conn->state; - ALTCP_TCP_ASSERT_CONN(conn); - tcp_nagle_disable(pcb); - } -} - -static void -altcp_tcp_nagle_enable(struct altcp_pcb *conn) -{ - if (conn && conn->state) { - struct tcp_pcb *pcb = (struct tcp_pcb *)conn->state; - ALTCP_TCP_ASSERT_CONN(conn); - tcp_nagle_enable(pcb); - } -} - -static int -altcp_tcp_nagle_disabled(struct altcp_pcb *conn) -{ - if (conn && conn->state) { - struct tcp_pcb *pcb = (struct tcp_pcb *)conn->state; - ALTCP_TCP_ASSERT_CONN(conn); - return tcp_nagle_disabled(pcb); - } - return 0; -} - -static void -altcp_tcp_setprio(struct altcp_pcb *conn, u8_t prio) -{ - if (conn != NULL) { - struct tcp_pcb *pcb = (struct tcp_pcb *)conn->state; - ALTCP_TCP_ASSERT_CONN(conn); - tcp_setprio(pcb, prio); - } -} - -static void -altcp_tcp_dealloc(struct altcp_pcb *conn) -{ - LWIP_UNUSED_ARG(conn); - ALTCP_TCP_ASSERT_CONN(conn); - /* no private state to clean up */ -} - -static err_t -altcp_tcp_get_tcp_addrinfo(struct altcp_pcb *conn, int local, ip_addr_t *addr, u16_t *port) -{ - if (conn) { - struct tcp_pcb *pcb = (struct tcp_pcb *)conn->state; - ALTCP_TCP_ASSERT_CONN(conn); - return tcp_tcp_get_tcp_addrinfo(pcb, local, addr, port); - } - return ERR_VAL; -} - -static ip_addr_t * -altcp_tcp_get_ip(struct altcp_pcb *conn, int local) -{ - if (conn) { - struct tcp_pcb *pcb = (struct tcp_pcb *)conn->state; - ALTCP_TCP_ASSERT_CONN(conn); - if (pcb) { - if (local) { - return &pcb->local_ip; - } else { - return &pcb->remote_ip; - } - } - } - return NULL; -} - -static u16_t -altcp_tcp_get_port(struct altcp_pcb *conn, int local) -{ - if (conn) { - struct tcp_pcb *pcb = (struct tcp_pcb *)conn->state; - ALTCP_TCP_ASSERT_CONN(conn); - if (pcb) { - if (local) { - return pcb->local_port; - } else { - return pcb->remote_port; - } - } - } - return 0; -} - -#ifdef LWIP_DEBUG -static enum tcp_state -altcp_tcp_dbg_get_tcp_state(struct altcp_pcb *conn) -{ - if (conn) { - struct tcp_pcb *pcb = (struct tcp_pcb *)conn->state; - ALTCP_TCP_ASSERT_CONN(conn); - if (pcb) { - return pcb->state; - } - } - return CLOSED; -} -#endif -const struct altcp_functions altcp_tcp_functions = { - altcp_tcp_set_poll, - altcp_tcp_recved, - altcp_tcp_bind, - altcp_tcp_connect, - altcp_tcp_listen, - altcp_tcp_abort, - altcp_tcp_close, - altcp_tcp_shutdown, - altcp_tcp_write, - altcp_tcp_output, - altcp_tcp_mss, - altcp_tcp_sndbuf, - altcp_tcp_sndqueuelen, - altcp_tcp_nagle_disable, - altcp_tcp_nagle_enable, - altcp_tcp_nagle_disabled, - altcp_tcp_setprio, - altcp_tcp_dealloc, - altcp_tcp_get_tcp_addrinfo, - altcp_tcp_get_ip, - altcp_tcp_get_port -#ifdef LWIP_DEBUG - , altcp_tcp_dbg_get_tcp_state -#endif -}; - -#endif /* LWIP_ALTCP */ diff --git a/Middlewares/Third_Party/LwIP/src/core/def.c b/Middlewares/Third_Party/LwIP/src/core/def.c deleted file mode 100644 index 9da36fe..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/def.c +++ /dev/null @@ -1,240 +0,0 @@ -/** - * @file - * Common functions used throughout the stack. - * - * These are reference implementations of the byte swapping functions. - * Again with the aim of being simple, correct and fully portable. - * Byte swapping is the second thing you would want to optimize. You will - * need to port it to your architecture and in your cc.h: - * - * \#define lwip_htons(x) your_htons - * \#define lwip_htonl(x) your_htonl - * - * Note lwip_ntohs() and lwip_ntohl() are merely references to the htonx counterparts. - * - * If you \#define them to htons() and htonl(), you should - * \#define LWIP_DONT_PROVIDE_BYTEORDER_FUNCTIONS to prevent lwIP from - * defining htonx/ntohx compatibility macros. - - * @defgroup sys_nonstandard Non-standard functions - * @ingroup sys_layer - * lwIP provides default implementations for non-standard functions. - * These can be mapped to OS functions to reduce code footprint if desired. - * All defines related to this section must not be placed in lwipopts.h, - * but in arch/cc.h! - * These options cannot be \#defined in lwipopts.h since they are not options - * of lwIP itself, but options of the lwIP port to your system. - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Simon Goldschmidt - * - */ - -#include "lwip/opt.h" -#include "lwip/def.h" - -#include - -#if BYTE_ORDER == LITTLE_ENDIAN - -#if !defined(lwip_htons) -/** - * Convert an u16_t from host- to network byte order. - * - * @param n u16_t in host byte order - * @return n in network byte order - */ -u16_t -lwip_htons(u16_t n) -{ - return PP_HTONS(n); -} -#endif /* lwip_htons */ - -#if !defined(lwip_htonl) -/** - * Convert an u32_t from host- to network byte order. - * - * @param n u32_t in host byte order - * @return n in network byte order - */ -u32_t -lwip_htonl(u32_t n) -{ - return PP_HTONL(n); -} -#endif /* lwip_htonl */ - -#endif /* BYTE_ORDER == LITTLE_ENDIAN */ - -#ifndef lwip_strnstr -/** - * @ingroup sys_nonstandard - * lwIP default implementation for strnstr() non-standard function. - * This can be \#defined to strnstr() depending on your platform port. - */ -char * -lwip_strnstr(const char *buffer, const char *token, size_t n) -{ - const char *p; - size_t tokenlen = strlen(token); - if (tokenlen == 0) { - return LWIP_CONST_CAST(char *, buffer); - } - for (p = buffer; *p && (p + tokenlen <= buffer + n); p++) { - if ((*p == *token) && (strncmp(p, token, tokenlen) == 0)) { - return LWIP_CONST_CAST(char *, p); - } - } - return NULL; -} -#endif - -#ifndef lwip_stricmp -/** - * @ingroup sys_nonstandard - * lwIP default implementation for stricmp() non-standard function. - * This can be \#defined to stricmp() depending on your platform port. - */ -int -lwip_stricmp(const char *str1, const char *str2) -{ - char c1, c2; - - do { - c1 = *str1++; - c2 = *str2++; - if (c1 != c2) { - char c1_upc = c1 | 0x20; - if ((c1_upc >= 'a') && (c1_upc <= 'z')) { - /* characters are not equal an one is in the alphabet range: - downcase both chars and check again */ - char c2_upc = c2 | 0x20; - if (c1_upc != c2_upc) { - /* still not equal */ - /* don't care for < or > */ - return 1; - } - } else { - /* characters are not equal but none is in the alphabet range */ - return 1; - } - } - } while (c1 != 0); - return 0; -} -#endif - -#ifndef lwip_strnicmp -/** - * @ingroup sys_nonstandard - * lwIP default implementation for strnicmp() non-standard function. - * This can be \#defined to strnicmp() depending on your platform port. - */ -int -lwip_strnicmp(const char *str1, const char *str2, size_t len) -{ - char c1, c2; - - do { - c1 = *str1++; - c2 = *str2++; - if (c1 != c2) { - char c1_upc = c1 | 0x20; - if ((c1_upc >= 'a') && (c1_upc <= 'z')) { - /* characters are not equal an one is in the alphabet range: - downcase both chars and check again */ - char c2_upc = c2 | 0x20; - if (c1_upc != c2_upc) { - /* still not equal */ - /* don't care for < or > */ - return 1; - } - } else { - /* characters are not equal but none is in the alphabet range */ - return 1; - } - } - len--; - } while ((len != 0) && (c1 != 0)); - return 0; -} -#endif - -#ifndef lwip_itoa -/** - * @ingroup sys_nonstandard - * lwIP default implementation for itoa() non-standard function. - * This can be \#defined to itoa() or snprintf(result, bufsize, "%d", number) depending on your platform port. - */ -void -lwip_itoa(char *result, size_t bufsize, int number) -{ - char *res = result; - char *tmp = result + bufsize - 1; - int n = (number >= 0) ? number : -number; - - /* handle invalid bufsize */ - if (bufsize < 2) { - if (bufsize == 1) { - *result = 0; - } - return; - } - - /* First, add sign */ - if (number < 0) { - *res++ = '-'; - } - /* Then create the string from the end and stop if buffer full, - and ensure output string is zero terminated */ - *tmp = 0; - while ((n != 0) && (tmp > res)) { - char val = (char)('0' + (n % 10)); - tmp--; - *tmp = val; - n = n / 10; - } - if (n) { - /* buffer is too small */ - *result = 0; - return; - } - if (*tmp == 0) { - /* Nothing added? */ - *res++ = '0'; - *res++ = 0; - return; - } - /* move from temporary buffer to output buffer (sign is not moved) */ - memmove(res, tmp, (size_t)((result + bufsize) - tmp)); -} -#endif diff --git a/Middlewares/Third_Party/LwIP/src/core/dns.c b/Middlewares/Third_Party/LwIP/src/core/dns.c deleted file mode 100644 index 9d2f61e..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/dns.c +++ /dev/null @@ -1,1631 +0,0 @@ -/** - * @file - * DNS - host name to IP address resolver. - * - * @defgroup dns DNS - * @ingroup callbackstyle_api - * - * Implements a DNS host name to IP address resolver. - * - * The lwIP DNS resolver functions are used to lookup a host name and - * map it to a numerical IP address. It maintains a list of resolved - * hostnames that can be queried with the dns_lookup() function. - * New hostnames can be resolved using the dns_query() function. - * - * The lwIP version of the resolver also adds a non-blocking version of - * gethostbyname() that will work with a raw API application. This function - * checks for an IP address string first and converts it if it is valid. - * gethostbyname() then does a dns_lookup() to see if the name is - * already in the table. If so, the IP is returned. If not, a query is - * issued and the function returns with a ERR_INPROGRESS status. The app - * using the dns client must then go into a waiting state. - * - * Once a hostname has been resolved (or found to be non-existent), - * the resolver code calls a specified callback function (which - * must be implemented by the module that uses the resolver). - * - * Multicast DNS queries are supported for names ending on ".local". - * However, only "One-Shot Multicast DNS Queries" are supported (RFC 6762 - * chapter 5.1), this is not a fully compliant implementation of continuous - * mDNS querying! - * - * All functions must be called from TCPIP thread. - * - * @see DNS_MAX_SERVERS - * @see LWIP_DHCP_MAX_DNS_SERVERS - * @see @ref netconn_common for thread-safe access. - */ - -/* - * Port to lwIP from uIP - * by Jim Pettinato April 2007 - * - * security fixes and more by Simon Goldschmidt - * - * uIP version Copyright (c) 2002-2003, Adam Dunkels. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote - * products derived from this software without specific prior - * written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/*----------------------------------------------------------------------------- - * RFC 1035 - Domain names - implementation and specification - * RFC 2181 - Clarifications to the DNS Specification - *----------------------------------------------------------------------------*/ - -/** @todo: define good default values (rfc compliance) */ -/** @todo: improve answer parsing, more checkings... */ -/** @todo: check RFC1035 - 7.3. Processing responses */ -/** @todo: one-shot mDNS: dual-stack fallback to another IP version */ - -/*----------------------------------------------------------------------------- - * Includes - *----------------------------------------------------------------------------*/ - -#include "lwip/opt.h" - -#if LWIP_DNS /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/def.h" -#include "lwip/udp.h" -#include "lwip/mem.h" -#include "lwip/memp.h" -#include "lwip/dns.h" -#include "lwip/prot/dns.h" - -#include - -/** Random generator function to create random TXIDs and source ports for queries */ -#ifndef DNS_RAND_TXID -#if ((LWIP_DNS_SECURE & LWIP_DNS_SECURE_RAND_XID) != 0) -#define DNS_RAND_TXID LWIP_RAND -#else -static u16_t dns_txid; -#define DNS_RAND_TXID() (++dns_txid) -#endif -#endif - -/** Limits the source port to be >= 1024 by default */ -#ifndef DNS_PORT_ALLOWED -#define DNS_PORT_ALLOWED(port) ((port) >= 1024) -#endif - -/** DNS resource record max. TTL (one week as default) */ -#ifndef DNS_MAX_TTL -#define DNS_MAX_TTL 604800 -#elif DNS_MAX_TTL > 0x7FFFFFFF -#error DNS_MAX_TTL must be a positive 32-bit value -#endif - -#if DNS_TABLE_SIZE > 255 -#error DNS_TABLE_SIZE must fit into an u8_t -#endif -#if DNS_MAX_SERVERS > 255 -#error DNS_MAX_SERVERS must fit into an u8_t -#endif - -/* The number of parallel requests (i.e. calls to dns_gethostbyname - * that cannot be answered from the DNS table. - * This is set to the table size by default. - */ -#if ((LWIP_DNS_SECURE & LWIP_DNS_SECURE_NO_MULTIPLE_OUTSTANDING) != 0) -#ifndef DNS_MAX_REQUESTS -#define DNS_MAX_REQUESTS DNS_TABLE_SIZE -#else -#if DNS_MAX_REQUESTS > 255 -#error DNS_MAX_REQUESTS must fit into an u8_t -#endif -#endif -#else -/* In this configuration, both arrays have to have the same size and are used - * like one entry (used/free) */ -#define DNS_MAX_REQUESTS DNS_TABLE_SIZE -#endif - -/* The number of UDP source ports used in parallel */ -#if ((LWIP_DNS_SECURE & LWIP_DNS_SECURE_RAND_SRC_PORT) != 0) -#ifndef DNS_MAX_SOURCE_PORTS -#define DNS_MAX_SOURCE_PORTS DNS_MAX_REQUESTS -#else -#if DNS_MAX_SOURCE_PORTS > 255 -#error DNS_MAX_SOURCE_PORTS must fit into an u8_t -#endif -#endif -#else -#ifdef DNS_MAX_SOURCE_PORTS -#undef DNS_MAX_SOURCE_PORTS -#endif -#define DNS_MAX_SOURCE_PORTS 1 -#endif - -#if LWIP_IPV4 && LWIP_IPV6 -#define LWIP_DNS_ADDRTYPE_IS_IPV6(t) (((t) == LWIP_DNS_ADDRTYPE_IPV6_IPV4) || ((t) == LWIP_DNS_ADDRTYPE_IPV6)) -#define LWIP_DNS_ADDRTYPE_MATCH_IP(t, ip) (IP_IS_V6_VAL(ip) ? LWIP_DNS_ADDRTYPE_IS_IPV6(t) : (!LWIP_DNS_ADDRTYPE_IS_IPV6(t))) -#define LWIP_DNS_ADDRTYPE_ARG(x) , x -#define LWIP_DNS_ADDRTYPE_ARG_OR_ZERO(x) x -#define LWIP_DNS_SET_ADDRTYPE(x, y) do { x = y; } while(0) -#else -#if LWIP_IPV6 -#define LWIP_DNS_ADDRTYPE_IS_IPV6(t) 1 -#else -#define LWIP_DNS_ADDRTYPE_IS_IPV6(t) 0 -#endif -#define LWIP_DNS_ADDRTYPE_MATCH_IP(t, ip) 1 -#define LWIP_DNS_ADDRTYPE_ARG(x) -#define LWIP_DNS_ADDRTYPE_ARG_OR_ZERO(x) 0 -#define LWIP_DNS_SET_ADDRTYPE(x, y) -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - -#if LWIP_DNS_SUPPORT_MDNS_QUERIES -#define LWIP_DNS_ISMDNS_ARG(x) , x -#else -#define LWIP_DNS_ISMDNS_ARG(x) -#endif - -/** DNS query message structure. - No packing needed: only used locally on the stack. */ -struct dns_query { - /* DNS query record starts with either a domain name or a pointer - to a name already present somewhere in the packet. */ - u16_t type; - u16_t cls; -}; -#define SIZEOF_DNS_QUERY 4 - -/** DNS answer message structure. - No packing needed: only used locally on the stack. */ -struct dns_answer { - /* DNS answer record starts with either a domain name or a pointer - to a name already present somewhere in the packet. */ - u16_t type; - u16_t cls; - u32_t ttl; - u16_t len; -}; -#define SIZEOF_DNS_ANSWER 10 -/* maximum allowed size for the struct due to non-packed */ -#define SIZEOF_DNS_ANSWER_ASSERT 12 - -/* DNS table entry states */ -typedef enum { - DNS_STATE_UNUSED = 0, - DNS_STATE_NEW = 1, - DNS_STATE_ASKING = 2, - DNS_STATE_DONE = 3 -} dns_state_enum_t; - -/** DNS table entry */ -struct dns_table_entry { - u32_t ttl; - ip_addr_t ipaddr; - u16_t txid; - u8_t state; - u8_t server_idx; - u8_t tmr; - u8_t retries; - u8_t seqno; -#if ((LWIP_DNS_SECURE & LWIP_DNS_SECURE_RAND_SRC_PORT) != 0) - u8_t pcb_idx; -#endif - char name[DNS_MAX_NAME_LENGTH]; -#if LWIP_IPV4 && LWIP_IPV6 - u8_t reqaddrtype; -#endif /* LWIP_IPV4 && LWIP_IPV6 */ -#if LWIP_DNS_SUPPORT_MDNS_QUERIES - u8_t is_mdns; -#endif -}; - -/** DNS request table entry: used when dns_gehostbyname cannot answer the - * request from the DNS table */ -struct dns_req_entry { - /* pointer to callback on DNS query done */ - dns_found_callback found; - /* argument passed to the callback function */ - void *arg; -#if ((LWIP_DNS_SECURE & LWIP_DNS_SECURE_NO_MULTIPLE_OUTSTANDING) != 0) - u8_t dns_table_idx; -#endif -#if LWIP_IPV4 && LWIP_IPV6 - u8_t reqaddrtype; -#endif /* LWIP_IPV4 && LWIP_IPV6 */ -}; - -#if DNS_LOCAL_HOSTLIST - -#if DNS_LOCAL_HOSTLIST_IS_DYNAMIC -/** Local host-list. For hostnames in this list, no - * external name resolution is performed */ -static struct local_hostlist_entry *local_hostlist_dynamic; -#else /* DNS_LOCAL_HOSTLIST_IS_DYNAMIC */ - -/** Defining this allows the local_hostlist_static to be placed in a different - * linker section (e.g. FLASH) */ -#ifndef DNS_LOCAL_HOSTLIST_STORAGE_PRE -#define DNS_LOCAL_HOSTLIST_STORAGE_PRE static -#endif /* DNS_LOCAL_HOSTLIST_STORAGE_PRE */ -/** Defining this allows the local_hostlist_static to be placed in a different - * linker section (e.g. FLASH) */ -#ifndef DNS_LOCAL_HOSTLIST_STORAGE_POST -#define DNS_LOCAL_HOSTLIST_STORAGE_POST -#endif /* DNS_LOCAL_HOSTLIST_STORAGE_POST */ -DNS_LOCAL_HOSTLIST_STORAGE_PRE struct local_hostlist_entry local_hostlist_static[] - DNS_LOCAL_HOSTLIST_STORAGE_POST = DNS_LOCAL_HOSTLIST_INIT; - -#endif /* DNS_LOCAL_HOSTLIST_IS_DYNAMIC */ - -static void dns_init_local(void); -static err_t dns_lookup_local(const char *hostname, ip_addr_t *addr LWIP_DNS_ADDRTYPE_ARG(u8_t dns_addrtype)); -#endif /* DNS_LOCAL_HOSTLIST */ - - -/* forward declarations */ -static void dns_recv(void *s, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port); -static void dns_check_entries(void); -static void dns_call_found(u8_t idx, ip_addr_t *addr); - -/*----------------------------------------------------------------------------- - * Globals - *----------------------------------------------------------------------------*/ - -/* DNS variables */ -static struct udp_pcb *dns_pcbs[DNS_MAX_SOURCE_PORTS]; -#if ((LWIP_DNS_SECURE & LWIP_DNS_SECURE_RAND_SRC_PORT) != 0) -static u8_t dns_last_pcb_idx; -#endif -static u8_t dns_seqno; -static struct dns_table_entry dns_table[DNS_TABLE_SIZE]; -static struct dns_req_entry dns_requests[DNS_MAX_REQUESTS]; -static ip_addr_t dns_servers[DNS_MAX_SERVERS]; - -#if LWIP_IPV4 -const ip_addr_t dns_mquery_v4group = DNS_MQUERY_IPV4_GROUP_INIT; -#endif /* LWIP_IPV4 */ -#if LWIP_IPV6 -const ip_addr_t dns_mquery_v6group = DNS_MQUERY_IPV6_GROUP_INIT; -#endif /* LWIP_IPV6 */ - -/** - * Initialize the resolver: set up the UDP pcb and configure the default server - * (if DNS_SERVER_ADDRESS is set). - */ -void -dns_init(void) -{ -#ifdef DNS_SERVER_ADDRESS - /* initialize default DNS server address */ - ip_addr_t dnsserver; - DNS_SERVER_ADDRESS(&dnsserver); - dns_setserver(0, &dnsserver); -#endif /* DNS_SERVER_ADDRESS */ - - LWIP_ASSERT("sanity check SIZEOF_DNS_QUERY", - sizeof(struct dns_query) == SIZEOF_DNS_QUERY); - LWIP_ASSERT("sanity check SIZEOF_DNS_ANSWER", - sizeof(struct dns_answer) <= SIZEOF_DNS_ANSWER_ASSERT); - - LWIP_DEBUGF(DNS_DEBUG, ("dns_init: initializing\n")); - - /* if dns client not yet initialized... */ -#if ((LWIP_DNS_SECURE & LWIP_DNS_SECURE_RAND_SRC_PORT) == 0) - if (dns_pcbs[0] == NULL) { - dns_pcbs[0] = udp_new_ip_type(IPADDR_TYPE_ANY); - LWIP_ASSERT("dns_pcbs[0] != NULL", dns_pcbs[0] != NULL); - - /* initialize DNS table not needed (initialized to zero since it is a - * global variable) */ - LWIP_ASSERT("For implicit initialization to work, DNS_STATE_UNUSED needs to be 0", - DNS_STATE_UNUSED == 0); - - /* initialize DNS client */ - udp_bind(dns_pcbs[0], IP_ANY_TYPE, 0); - udp_recv(dns_pcbs[0], dns_recv, NULL); - } -#endif - -#if DNS_LOCAL_HOSTLIST - dns_init_local(); -#endif -} - -/** - * @ingroup dns - * Initialize one of the DNS servers. - * - * @param numdns the index of the DNS server to set must be < DNS_MAX_SERVERS - * @param dnsserver IP address of the DNS server to set - */ -void -dns_setserver(u8_t numdns, const ip_addr_t *dnsserver) -{ - if (numdns < DNS_MAX_SERVERS) { - if (dnsserver != NULL) { - dns_servers[numdns] = (*dnsserver); - } else { - dns_servers[numdns] = *IP_ADDR_ANY; - } - } -} - -/** - * @ingroup dns - * Obtain one of the currently configured DNS server. - * - * @param numdns the index of the DNS server - * @return IP address of the indexed DNS server or "ip_addr_any" if the DNS - * server has not been configured. - */ -const ip_addr_t * -dns_getserver(u8_t numdns) -{ - if (numdns < DNS_MAX_SERVERS) { - return &dns_servers[numdns]; - } else { - return IP_ADDR_ANY; - } -} - -/** - * The DNS resolver client timer - handle retries and timeouts and should - * be called every DNS_TMR_INTERVAL milliseconds (every second by default). - */ -void -dns_tmr(void) -{ - LWIP_DEBUGF(DNS_DEBUG, ("dns_tmr: dns_check_entries\n")); - dns_check_entries(); -} - -#if DNS_LOCAL_HOSTLIST -static void -dns_init_local(void) -{ -#if DNS_LOCAL_HOSTLIST_IS_DYNAMIC && defined(DNS_LOCAL_HOSTLIST_INIT) - size_t i; - struct local_hostlist_entry *entry; - /* Dynamic: copy entries from DNS_LOCAL_HOSTLIST_INIT to list */ - struct local_hostlist_entry local_hostlist_init[] = DNS_LOCAL_HOSTLIST_INIT; - size_t namelen; - for (i = 0; i < LWIP_ARRAYSIZE(local_hostlist_init); i++) { - struct local_hostlist_entry *init_entry = &local_hostlist_init[i]; - LWIP_ASSERT("invalid host name (NULL)", init_entry->name != NULL); - namelen = strlen(init_entry->name); - LWIP_ASSERT("namelen <= DNS_LOCAL_HOSTLIST_MAX_NAMELEN", namelen <= DNS_LOCAL_HOSTLIST_MAX_NAMELEN); - entry = (struct local_hostlist_entry *)memp_malloc(MEMP_LOCALHOSTLIST); - LWIP_ASSERT("mem-error in dns_init_local", entry != NULL); - if (entry != NULL) { - char *entry_name = (char *)entry + sizeof(struct local_hostlist_entry); - MEMCPY(entry_name, init_entry->name, namelen); - entry_name[namelen] = 0; - entry->name = entry_name; - entry->addr = init_entry->addr; - entry->next = local_hostlist_dynamic; - local_hostlist_dynamic = entry; - } - } -#endif /* DNS_LOCAL_HOSTLIST_IS_DYNAMIC && defined(DNS_LOCAL_HOSTLIST_INIT) */ -} - -/** - * @ingroup dns - * Iterate the local host-list for a hostname. - * - * @param iterator_fn a function that is called for every entry in the local host-list - * @param iterator_arg 3rd argument passed to iterator_fn - * @return the number of entries in the local host-list - */ -size_t -dns_local_iterate(dns_found_callback iterator_fn, void *iterator_arg) -{ - size_t i; -#if DNS_LOCAL_HOSTLIST_IS_DYNAMIC - struct local_hostlist_entry *entry = local_hostlist_dynamic; - i = 0; - while (entry != NULL) { - if (iterator_fn != NULL) { - iterator_fn(entry->name, &entry->addr, iterator_arg); - } - i++; - entry = entry->next; - } -#else /* DNS_LOCAL_HOSTLIST_IS_DYNAMIC */ - for (i = 0; i < LWIP_ARRAYSIZE(local_hostlist_static); i++) { - if (iterator_fn != NULL) { - iterator_fn(local_hostlist_static[i].name, &local_hostlist_static[i].addr, iterator_arg); - } - } -#endif /* DNS_LOCAL_HOSTLIST_IS_DYNAMIC */ - return i; -} - -/** - * @ingroup dns - * Scans the local host-list for a hostname. - * - * @param hostname Hostname to look for in the local host-list - * @param addr the first IP address for the hostname in the local host-list or - * IPADDR_NONE if not found. - * @param dns_addrtype - LWIP_DNS_ADDRTYPE_IPV4_IPV6: try to resolve IPv4 (ATTENTION: no fallback here!) - * - LWIP_DNS_ADDRTYPE_IPV6_IPV4: try to resolve IPv6 (ATTENTION: no fallback here!) - * - LWIP_DNS_ADDRTYPE_IPV4: try to resolve IPv4 only - * - LWIP_DNS_ADDRTYPE_IPV6: try to resolve IPv6 only - * @return ERR_OK if found, ERR_ARG if not found - */ -err_t -dns_local_lookup(const char *hostname, ip_addr_t *addr, u8_t dns_addrtype) -{ - LWIP_UNUSED_ARG(dns_addrtype); - return dns_lookup_local(hostname, addr LWIP_DNS_ADDRTYPE_ARG(dns_addrtype)); -} - -/* Internal implementation for dns_local_lookup and dns_lookup */ -static err_t -dns_lookup_local(const char *hostname, ip_addr_t *addr LWIP_DNS_ADDRTYPE_ARG(u8_t dns_addrtype)) -{ -#if DNS_LOCAL_HOSTLIST_IS_DYNAMIC - struct local_hostlist_entry *entry = local_hostlist_dynamic; - while (entry != NULL) { - if ((lwip_stricmp(entry->name, hostname) == 0) && - LWIP_DNS_ADDRTYPE_MATCH_IP(dns_addrtype, entry->addr)) { - if (addr) { - ip_addr_copy(*addr, entry->addr); - } - return ERR_OK; - } - entry = entry->next; - } -#else /* DNS_LOCAL_HOSTLIST_IS_DYNAMIC */ - size_t i; - for (i = 0; i < LWIP_ARRAYSIZE(local_hostlist_static); i++) { - if ((lwip_stricmp(local_hostlist_static[i].name, hostname) == 0) && - LWIP_DNS_ADDRTYPE_MATCH_IP(dns_addrtype, local_hostlist_static[i].addr)) { - if (addr) { - ip_addr_copy(*addr, local_hostlist_static[i].addr); - } - return ERR_OK; - } - } -#endif /* DNS_LOCAL_HOSTLIST_IS_DYNAMIC */ - return ERR_ARG; -} - -#if DNS_LOCAL_HOSTLIST_IS_DYNAMIC -/** - * @ingroup dns - * Remove all entries from the local host-list for a specific hostname - * and/or IP address - * - * @param hostname hostname for which entries shall be removed from the local - * host-list - * @param addr address for which entries shall be removed from the local host-list - * @return the number of removed entries - */ -int -dns_local_removehost(const char *hostname, const ip_addr_t *addr) -{ - int removed = 0; - struct local_hostlist_entry *entry = local_hostlist_dynamic; - struct local_hostlist_entry *last_entry = NULL; - while (entry != NULL) { - if (((hostname == NULL) || !lwip_stricmp(entry->name, hostname)) && - ((addr == NULL) || ip_addr_cmp(&entry->addr, addr))) { - struct local_hostlist_entry *free_entry; - if (last_entry != NULL) { - last_entry->next = entry->next; - } else { - local_hostlist_dynamic = entry->next; - } - free_entry = entry; - entry = entry->next; - memp_free(MEMP_LOCALHOSTLIST, free_entry); - removed++; - } else { - last_entry = entry; - entry = entry->next; - } - } - return removed; -} - -/** - * @ingroup dns - * Add a hostname/IP address pair to the local host-list. - * Duplicates are not checked. - * - * @param hostname hostname of the new entry - * @param addr IP address of the new entry - * @return ERR_OK if succeeded or ERR_MEM on memory error - */ -err_t -dns_local_addhost(const char *hostname, const ip_addr_t *addr) -{ - struct local_hostlist_entry *entry; - size_t namelen; - char *entry_name; - LWIP_ASSERT("invalid host name (NULL)", hostname != NULL); - namelen = strlen(hostname); - LWIP_ASSERT("namelen <= DNS_LOCAL_HOSTLIST_MAX_NAMELEN", namelen <= DNS_LOCAL_HOSTLIST_MAX_NAMELEN); - entry = (struct local_hostlist_entry *)memp_malloc(MEMP_LOCALHOSTLIST); - if (entry == NULL) { - return ERR_MEM; - } - entry_name = (char *)entry + sizeof(struct local_hostlist_entry); - MEMCPY(entry_name, hostname, namelen); - entry_name[namelen] = 0; - entry->name = entry_name; - ip_addr_copy(entry->addr, *addr); - entry->next = local_hostlist_dynamic; - local_hostlist_dynamic = entry; - return ERR_OK; -} -#endif /* DNS_LOCAL_HOSTLIST_IS_DYNAMIC*/ -#endif /* DNS_LOCAL_HOSTLIST */ - -/** - * @ingroup dns - * Look up a hostname in the array of known hostnames. - * - * @note This function only looks in the internal array of known - * hostnames, it does not send out a query for the hostname if none - * was found. The function dns_enqueue() can be used to send a query - * for a hostname. - * - * @param name the hostname to look up - * @param addr the hostname's IP address, as u32_t (instead of ip_addr_t to - * better check for failure: != IPADDR_NONE) or IPADDR_NONE if the hostname - * was not found in the cached dns_table. - * @return ERR_OK if found, ERR_ARG if not found - */ -static err_t -dns_lookup(const char *name, ip_addr_t *addr LWIP_DNS_ADDRTYPE_ARG(u8_t dns_addrtype)) -{ - u8_t i; -#if DNS_LOCAL_HOSTLIST - if (dns_lookup_local(name, addr LWIP_DNS_ADDRTYPE_ARG(dns_addrtype)) == ERR_OK) { - return ERR_OK; - } -#endif /* DNS_LOCAL_HOSTLIST */ -#ifdef DNS_LOOKUP_LOCAL_EXTERN - if (DNS_LOOKUP_LOCAL_EXTERN(name, addr, LWIP_DNS_ADDRTYPE_ARG_OR_ZERO(dns_addrtype)) == ERR_OK) { - return ERR_OK; - } -#endif /* DNS_LOOKUP_LOCAL_EXTERN */ - - /* Walk through name list, return entry if found. If not, return NULL. */ - for (i = 0; i < DNS_TABLE_SIZE; ++i) { - if ((dns_table[i].state == DNS_STATE_DONE) && - (lwip_strnicmp(name, dns_table[i].name, sizeof(dns_table[i].name)) == 0) && - LWIP_DNS_ADDRTYPE_MATCH_IP(dns_addrtype, dns_table[i].ipaddr)) { - LWIP_DEBUGF(DNS_DEBUG, ("dns_lookup: \"%s\": found = ", name)); - ip_addr_debug_print_val(DNS_DEBUG, dns_table[i].ipaddr); - LWIP_DEBUGF(DNS_DEBUG, ("\n")); - if (addr) { - ip_addr_copy(*addr, dns_table[i].ipaddr); - } - return ERR_OK; - } - } - - return ERR_ARG; -} - -/** - * Compare the "dotted" name "query" with the encoded name "response" - * to make sure an answer from the DNS server matches the current dns_table - * entry (otherwise, answers might arrive late for hostname not on the list - * any more). - * - * For now, this function compares case-insensitive to cope with all kinds of - * servers. This also means that "dns 0x20 bit encoding" must be checked - * externally, if we want to implement it. - * Currently, the request is sent exactly as passed in by he user request. - * - * @param query hostname (not encoded) from the dns_table - * @param p pbuf containing the encoded hostname in the DNS response - * @param start_offset offset into p where the name starts - * @return 0xFFFF: names differ, other: names equal -> offset behind name - */ -static u16_t -dns_compare_name(const char *query, struct pbuf *p, u16_t start_offset) -{ - int n; - u16_t response_offset = start_offset; - - do { - n = pbuf_try_get_at(p, response_offset); - if ((n < 0) || (response_offset == 0xFFFF)) { - /* error or overflow */ - return 0xFFFF; - } - response_offset++; - /** @see RFC 1035 - 4.1.4. Message compression */ - if ((n & 0xc0) == 0xc0) { - /* Compressed name: cannot be equal since we don't send them */ - return 0xFFFF; - } else { - /* Not compressed name */ - while (n > 0) { - int c = pbuf_try_get_at(p, response_offset); - if (c < 0) { - return 0xFFFF; - } - if (lwip_tolower((*query)) != lwip_tolower((u8_t)c)) { - return 0xFFFF; - } - if (response_offset == 0xFFFF) { - /* would overflow */ - return 0xFFFF; - } - response_offset++; - ++query; - --n; - } - ++query; - } - n = pbuf_try_get_at(p, response_offset); - if (n < 0) { - return 0xFFFF; - } - } while (n != 0); - - if (response_offset == 0xFFFF) { - /* would overflow */ - return 0xFFFF; - } - return (u16_t)(response_offset + 1); -} - -/** - * Walk through a compact encoded DNS name and return the end of the name. - * - * @param p pbuf containing the name - * @param query_idx start index into p pointing to encoded DNS name in the DNS server response - * @return index to end of the name - */ -static u16_t -dns_skip_name(struct pbuf *p, u16_t query_idx) -{ - int n; - u16_t offset = query_idx; - - do { - n = pbuf_try_get_at(p, offset++); - if ((n < 0) || (offset == 0)) { - return 0xFFFF; - } - /** @see RFC 1035 - 4.1.4. Message compression */ - if ((n & 0xc0) == 0xc0) { - /* Compressed name: since we only want to skip it (not check it), stop here */ - break; - } else { - /* Not compressed name */ - if (offset + n >= p->tot_len) { - return 0xFFFF; - } - offset = (u16_t)(offset + n); - } - n = pbuf_try_get_at(p, offset); - if (n < 0) { - return 0xFFFF; - } - } while (n != 0); - - if (offset == 0xFFFF) { - return 0xFFFF; - } - return (u16_t)(offset + 1); -} - -/** - * Send a DNS query packet. - * - * @param idx the DNS table entry index for which to send a request - * @return ERR_OK if packet is sent; an err_t indicating the problem otherwise - */ -static err_t -dns_send(u8_t idx) -{ - err_t err; - struct dns_hdr hdr; - struct dns_query qry; - struct pbuf *p; - u16_t query_idx, copy_len; - const char *hostname, *hostname_part; - u8_t n; - u8_t pcb_idx; - struct dns_table_entry *entry = &dns_table[idx]; - - LWIP_DEBUGF(DNS_DEBUG, ("dns_send: dns_servers[%"U16_F"] \"%s\": request\n", - (u16_t)(entry->server_idx), entry->name)); - LWIP_ASSERT("dns server out of array", entry->server_idx < DNS_MAX_SERVERS); - if (ip_addr_isany_val(dns_servers[entry->server_idx]) -#if LWIP_DNS_SUPPORT_MDNS_QUERIES - && !entry->is_mdns -#endif - ) { - /* DNS server not valid anymore, e.g. PPP netif has been shut down */ - /* call specified callback function if provided */ - dns_call_found(idx, NULL); - /* flush this entry */ - entry->state = DNS_STATE_UNUSED; - return ERR_OK; - } - - /* if here, we have either a new query or a retry on a previous query to process */ - p = pbuf_alloc(PBUF_TRANSPORT, (u16_t)(SIZEOF_DNS_HDR + strlen(entry->name) + 2 + - SIZEOF_DNS_QUERY), PBUF_RAM); - if (p != NULL) { - const ip_addr_t *dst; - u16_t dst_port; - /* fill dns header */ - memset(&hdr, 0, SIZEOF_DNS_HDR); - hdr.id = lwip_htons(entry->txid); - hdr.flags1 = DNS_FLAG1_RD; - hdr.numquestions = PP_HTONS(1); - pbuf_take(p, &hdr, SIZEOF_DNS_HDR); - hostname = entry->name; - --hostname; - - /* convert hostname into suitable query format. */ - query_idx = SIZEOF_DNS_HDR; - do { - ++hostname; - hostname_part = hostname; - for (n = 0; *hostname != '.' && *hostname != 0; ++hostname) { - ++n; - } - copy_len = (u16_t)(hostname - hostname_part); - if (query_idx + n + 1 > 0xFFFF) { - /* u16_t overflow */ - goto overflow_return; - } - pbuf_put_at(p, query_idx, n); - pbuf_take_at(p, hostname_part, copy_len, (u16_t)(query_idx + 1)); - query_idx = (u16_t)(query_idx + n + 1); - } while (*hostname != 0); - pbuf_put_at(p, query_idx, 0); - query_idx++; - - /* fill dns query */ - if (LWIP_DNS_ADDRTYPE_IS_IPV6(entry->reqaddrtype)) { - qry.type = PP_HTONS(DNS_RRTYPE_AAAA); - } else { - qry.type = PP_HTONS(DNS_RRTYPE_A); - } - qry.cls = PP_HTONS(DNS_RRCLASS_IN); - pbuf_take_at(p, &qry, SIZEOF_DNS_QUERY, query_idx); - -#if ((LWIP_DNS_SECURE & LWIP_DNS_SECURE_RAND_SRC_PORT) != 0) - pcb_idx = entry->pcb_idx; -#else - pcb_idx = 0; -#endif - /* send dns packet */ - LWIP_DEBUGF(DNS_DEBUG, ("sending DNS request ID %d for name \"%s\" to server %d\r\n", - entry->txid, entry->name, entry->server_idx)); -#if LWIP_DNS_SUPPORT_MDNS_QUERIES - if (entry->is_mdns) { - dst_port = DNS_MQUERY_PORT; -#if LWIP_IPV6 - if (LWIP_DNS_ADDRTYPE_IS_IPV6(entry->reqaddrtype)) { - dst = &dns_mquery_v6group; - } -#endif -#if LWIP_IPV4 && LWIP_IPV6 - else -#endif -#if LWIP_IPV4 - { - dst = &dns_mquery_v4group; - } -#endif - } else -#endif /* LWIP_DNS_SUPPORT_MDNS_QUERIES */ - { - dst_port = DNS_SERVER_PORT; - dst = &dns_servers[entry->server_idx]; - } - err = udp_sendto(dns_pcbs[pcb_idx], p, dst, dst_port); - - /* free pbuf */ - pbuf_free(p); - } else { - err = ERR_MEM; - } - - return err; -overflow_return: - pbuf_free(p); - return ERR_VAL; -} - -#if ((LWIP_DNS_SECURE & LWIP_DNS_SECURE_RAND_SRC_PORT) != 0) -static struct udp_pcb * -dns_alloc_random_port(void) -{ - err_t err; - struct udp_pcb *pcb; - - pcb = udp_new_ip_type(IPADDR_TYPE_ANY); - if (pcb == NULL) { - /* out of memory, have to reuse an existing pcb */ - return NULL; - } - do { - u16_t port = (u16_t)DNS_RAND_TXID(); - if (DNS_PORT_ALLOWED(port)) { - err = udp_bind(pcb, IP_ANY_TYPE, port); - } else { - /* this port is not allowed, try again */ - err = ERR_USE; - } - } while (err == ERR_USE); - if (err != ERR_OK) { - udp_remove(pcb); - return NULL; - } - udp_recv(pcb, dns_recv, NULL); - return pcb; -} - -/** - * dns_alloc_pcb() - allocates a new pcb (or reuses an existing one) to be used - * for sending a request - * - * @return an index into dns_pcbs - */ -static u8_t -dns_alloc_pcb(void) -{ - u8_t i; - u8_t idx; - - for (i = 0; i < DNS_MAX_SOURCE_PORTS; i++) { - if (dns_pcbs[i] == NULL) { - break; - } - } - if (i < DNS_MAX_SOURCE_PORTS) { - dns_pcbs[i] = dns_alloc_random_port(); - if (dns_pcbs[i] != NULL) { - /* succeeded */ - dns_last_pcb_idx = i; - return i; - } - } - /* if we come here, creating a new UDP pcb failed, so we have to use - an already existing one (so overflow is no issue) */ - for (i = 0, idx = (u8_t)(dns_last_pcb_idx + 1); i < DNS_MAX_SOURCE_PORTS; i++, idx++) { - if (idx >= DNS_MAX_SOURCE_PORTS) { - idx = 0; - } - if (dns_pcbs[idx] != NULL) { - dns_last_pcb_idx = idx; - return idx; - } - } - return DNS_MAX_SOURCE_PORTS; -} -#endif /* ((LWIP_DNS_SECURE & LWIP_DNS_SECURE_RAND_SRC_PORT) != 0) */ - -/** - * dns_call_found() - call the found callback and check if there are duplicate - * entries for the given hostname. If there are any, their found callback will - * be called and they will be removed. - * - * @param idx dns table index of the entry that is resolved or removed - * @param addr IP address for the hostname (or NULL on error or memory shortage) - */ -static void -dns_call_found(u8_t idx, ip_addr_t *addr) -{ -#if ((LWIP_DNS_SECURE & (LWIP_DNS_SECURE_NO_MULTIPLE_OUTSTANDING | LWIP_DNS_SECURE_RAND_SRC_PORT)) != 0) - u8_t i; -#endif - -#if LWIP_IPV4 && LWIP_IPV6 - if (addr != NULL) { - /* check that address type matches the request and adapt the table entry */ - if (IP_IS_V6_VAL(*addr)) { - LWIP_ASSERT("invalid response", LWIP_DNS_ADDRTYPE_IS_IPV6(dns_table[idx].reqaddrtype)); - dns_table[idx].reqaddrtype = LWIP_DNS_ADDRTYPE_IPV6; - } else { - LWIP_ASSERT("invalid response", !LWIP_DNS_ADDRTYPE_IS_IPV6(dns_table[idx].reqaddrtype)); - dns_table[idx].reqaddrtype = LWIP_DNS_ADDRTYPE_IPV4; - } - } -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - -#if ((LWIP_DNS_SECURE & LWIP_DNS_SECURE_NO_MULTIPLE_OUTSTANDING) != 0) - for (i = 0; i < DNS_MAX_REQUESTS; i++) { - if (dns_requests[i].found && (dns_requests[i].dns_table_idx == idx)) { - (*dns_requests[i].found)(dns_table[idx].name, addr, dns_requests[i].arg); - /* flush this entry */ - dns_requests[i].found = NULL; - } - } -#else - if (dns_requests[idx].found) { - (*dns_requests[idx].found)(dns_table[idx].name, addr, dns_requests[idx].arg); - } - dns_requests[idx].found = NULL; -#endif -#if ((LWIP_DNS_SECURE & LWIP_DNS_SECURE_RAND_SRC_PORT) != 0) - /* close the pcb used unless other request are using it */ - for (i = 0; i < DNS_MAX_REQUESTS; i++) { - if (i == idx) { - continue; /* only check other requests */ - } - if (dns_table[i].state == DNS_STATE_ASKING) { - if (dns_table[i].pcb_idx == dns_table[idx].pcb_idx) { - /* another request is still using the same pcb */ - dns_table[idx].pcb_idx = DNS_MAX_SOURCE_PORTS; - break; - } - } - } - if (dns_table[idx].pcb_idx < DNS_MAX_SOURCE_PORTS) { - /* if we come here, the pcb is not used any more and can be removed */ - udp_remove(dns_pcbs[dns_table[idx].pcb_idx]); - dns_pcbs[dns_table[idx].pcb_idx] = NULL; - dns_table[idx].pcb_idx = DNS_MAX_SOURCE_PORTS; - } -#endif -} - -/* Create a query transmission ID that is unique for all outstanding queries */ -static u16_t -dns_create_txid(void) -{ - u16_t txid; - u8_t i; - -again: - txid = (u16_t)DNS_RAND_TXID(); - - /* check whether the ID is unique */ - for (i = 0; i < DNS_TABLE_SIZE; i++) { - if ((dns_table[i].state == DNS_STATE_ASKING) && - (dns_table[i].txid == txid)) { - /* ID already used by another pending query */ - goto again; - } - } - - return txid; -} - -/** - * Check whether there are other backup DNS servers available to try - */ -static u8_t -dns_backupserver_available(struct dns_table_entry *pentry) -{ - u8_t ret = 0; - - if (pentry) { - if ((pentry->server_idx + 1 < DNS_MAX_SERVERS) && !ip_addr_isany_val(dns_servers[pentry->server_idx + 1])) { - ret = 1; - } - } - - return ret; -} - -/** - * dns_check_entry() - see if entry has not yet been queried and, if so, sends out a query. - * Check an entry in the dns_table: - * - send out query for new entries - * - retry old pending entries on timeout (also with different servers) - * - remove completed entries from the table if their TTL has expired - * - * @param i index of the dns_table entry to check - */ -static void -dns_check_entry(u8_t i) -{ - err_t err; - struct dns_table_entry *entry = &dns_table[i]; - - LWIP_ASSERT("array index out of bounds", i < DNS_TABLE_SIZE); - - switch (entry->state) { - case DNS_STATE_NEW: - /* initialize new entry */ - entry->txid = dns_create_txid(); - entry->state = DNS_STATE_ASKING; - entry->server_idx = 0; - entry->tmr = 1; - entry->retries = 0; - - /* send DNS packet for this entry */ - err = dns_send(i); - if (err != ERR_OK) { - LWIP_DEBUGF(DNS_DEBUG | LWIP_DBG_LEVEL_WARNING, - ("dns_send returned error: %s\n", lwip_strerr(err))); - } - break; - case DNS_STATE_ASKING: - if (--entry->tmr == 0) { - if (++entry->retries == DNS_MAX_RETRIES) { - if (dns_backupserver_available(entry) -#if LWIP_DNS_SUPPORT_MDNS_QUERIES - && !entry->is_mdns -#endif /* LWIP_DNS_SUPPORT_MDNS_QUERIES */ - ) { - /* change of server */ - entry->server_idx++; - entry->tmr = 1; - entry->retries = 0; - } else { - LWIP_DEBUGF(DNS_DEBUG, ("dns_check_entry: \"%s\": timeout\n", entry->name)); - /* call specified callback function if provided */ - dns_call_found(i, NULL); - /* flush this entry */ - entry->state = DNS_STATE_UNUSED; - break; - } - } else { - /* wait longer for the next retry */ - entry->tmr = entry->retries; - } - - /* send DNS packet for this entry */ - err = dns_send(i); - if (err != ERR_OK) { - LWIP_DEBUGF(DNS_DEBUG | LWIP_DBG_LEVEL_WARNING, - ("dns_send returned error: %s\n", lwip_strerr(err))); - } - } - break; - case DNS_STATE_DONE: - /* if the time to live is nul */ - if ((entry->ttl == 0) || (--entry->ttl == 0)) { - LWIP_DEBUGF(DNS_DEBUG, ("dns_check_entry: \"%s\": flush\n", entry->name)); - /* flush this entry, there cannot be any related pending entries in this state */ - entry->state = DNS_STATE_UNUSED; - } - break; - case DNS_STATE_UNUSED: - /* nothing to do */ - break; - default: - LWIP_ASSERT("unknown dns_table entry state:", 0); - break; - } -} - -/** - * Call dns_check_entry for each entry in dns_table - check all entries. - */ -static void -dns_check_entries(void) -{ - u8_t i; - - for (i = 0; i < DNS_TABLE_SIZE; ++i) { - dns_check_entry(i); - } -} - -/** - * Save TTL and call dns_call_found for correct response. - */ -static void -dns_correct_response(u8_t idx, u32_t ttl) -{ - struct dns_table_entry *entry = &dns_table[idx]; - - entry->state = DNS_STATE_DONE; - - LWIP_DEBUGF(DNS_DEBUG, ("dns_recv: \"%s\": response = ", entry->name)); - ip_addr_debug_print_val(DNS_DEBUG, entry->ipaddr); - LWIP_DEBUGF(DNS_DEBUG, ("\n")); - - /* read the answer resource record's TTL, and maximize it if needed */ - entry->ttl = ttl; - if (entry->ttl > DNS_MAX_TTL) { - entry->ttl = DNS_MAX_TTL; - } - dns_call_found(idx, &entry->ipaddr); - - if (entry->ttl == 0) { - /* RFC 883, page 29: "Zero values are - interpreted to mean that the RR can only be used for the - transaction in progress, and should not be cached." - -> flush this entry now */ - /* entry reused during callback? */ - if (entry->state == DNS_STATE_DONE) { - entry->state = DNS_STATE_UNUSED; - } - } -} - -/** - * Receive input function for DNS response packets arriving for the dns UDP pcb. - */ -static void -dns_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port) -{ - u8_t i; - u16_t txid; - u16_t res_idx; - struct dns_hdr hdr; - struct dns_answer ans; - struct dns_query qry; - u16_t nquestions, nanswers; - - LWIP_UNUSED_ARG(arg); - LWIP_UNUSED_ARG(pcb); - LWIP_UNUSED_ARG(port); - - /* is the dns message big enough ? */ - if (p->tot_len < (SIZEOF_DNS_HDR + SIZEOF_DNS_QUERY)) { - LWIP_DEBUGF(DNS_DEBUG, ("dns_recv: pbuf too small\n")); - /* free pbuf and return */ - goto ignore_packet; - } - - /* copy dns payload inside static buffer for processing */ - if (pbuf_copy_partial(p, &hdr, SIZEOF_DNS_HDR, 0) == SIZEOF_DNS_HDR) { - /* Match the ID in the DNS header with the name table. */ - txid = lwip_htons(hdr.id); - for (i = 0; i < DNS_TABLE_SIZE; i++) { - struct dns_table_entry *entry = &dns_table[i]; - if ((entry->state == DNS_STATE_ASKING) && - (entry->txid == txid)) { - - /* We only care about the question(s) and the answers. The authrr - and the extrarr are simply discarded. */ - nquestions = lwip_htons(hdr.numquestions); - nanswers = lwip_htons(hdr.numanswers); - - /* Check for correct response. */ - if ((hdr.flags1 & DNS_FLAG1_RESPONSE) == 0) { - LWIP_DEBUGF(DNS_DEBUG, ("dns_recv: \"%s\": not a response\n", entry->name)); - goto ignore_packet; /* ignore this packet */ - } - if (nquestions != 1) { - LWIP_DEBUGF(DNS_DEBUG, ("dns_recv: \"%s\": response not match to query\n", entry->name)); - goto ignore_packet; /* ignore this packet */ - } - -#if LWIP_DNS_SUPPORT_MDNS_QUERIES - if (!entry->is_mdns) -#endif /* LWIP_DNS_SUPPORT_MDNS_QUERIES */ - { - /* Check whether response comes from the same network address to which the - question was sent. (RFC 5452) */ - if (!ip_addr_cmp(addr, &dns_servers[entry->server_idx])) { - goto ignore_packet; /* ignore this packet */ - } - } - - /* Check if the name in the "question" part match with the name in the entry and - skip it if equal. */ - res_idx = dns_compare_name(entry->name, p, SIZEOF_DNS_HDR); - if (res_idx == 0xFFFF) { - LWIP_DEBUGF(DNS_DEBUG, ("dns_recv: \"%s\": response not match to query\n", entry->name)); - goto ignore_packet; /* ignore this packet */ - } - - /* check if "question" part matches the request */ - if (pbuf_copy_partial(p, &qry, SIZEOF_DNS_QUERY, res_idx) != SIZEOF_DNS_QUERY) { - goto ignore_packet; /* ignore this packet */ - } - if ((qry.cls != PP_HTONS(DNS_RRCLASS_IN)) || - (LWIP_DNS_ADDRTYPE_IS_IPV6(entry->reqaddrtype) && (qry.type != PP_HTONS(DNS_RRTYPE_AAAA))) || - (!LWIP_DNS_ADDRTYPE_IS_IPV6(entry->reqaddrtype) && (qry.type != PP_HTONS(DNS_RRTYPE_A)))) { - LWIP_DEBUGF(DNS_DEBUG, ("dns_recv: \"%s\": response not match to query\n", entry->name)); - goto ignore_packet; /* ignore this packet */ - } - /* skip the rest of the "question" part */ - if (res_idx + SIZEOF_DNS_QUERY > 0xFFFF) { - goto ignore_packet; - } - res_idx = (u16_t)(res_idx + SIZEOF_DNS_QUERY); - - /* Check for error. If so, call callback to inform. */ - if (hdr.flags2 & DNS_FLAG2_ERR_MASK) { - LWIP_DEBUGF(DNS_DEBUG, ("dns_recv: \"%s\": error in flags\n", entry->name)); - - /* if there is another backup DNS server to try - * then don't stop the DNS request - */ - if (dns_backupserver_available(entry)) { - /* avoid retrying the same server */ - entry->retries = DNS_MAX_RETRIES-1; - entry->tmr = 1; - - /* contact next available server for this entry */ - dns_check_entry(i); - - goto ignore_packet; - } - } else { - while ((nanswers > 0) && (res_idx < p->tot_len)) { - /* skip answer resource record's host name */ - res_idx = dns_skip_name(p, res_idx); - if (res_idx == 0xFFFF) { - goto ignore_packet; /* ignore this packet */ - } - - /* Check for IP address type and Internet class. Others are discarded. */ - if (pbuf_copy_partial(p, &ans, SIZEOF_DNS_ANSWER, res_idx) != SIZEOF_DNS_ANSWER) { - goto ignore_packet; /* ignore this packet */ - } - if (res_idx + SIZEOF_DNS_ANSWER > 0xFFFF) { - goto ignore_packet; - } - res_idx = (u16_t)(res_idx + SIZEOF_DNS_ANSWER); - - if (ans.cls == PP_HTONS(DNS_RRCLASS_IN)) { -#if LWIP_IPV4 - if ((ans.type == PP_HTONS(DNS_RRTYPE_A)) && (ans.len == PP_HTONS(sizeof(ip4_addr_t)))) { -#if LWIP_IPV4 && LWIP_IPV6 - if (!LWIP_DNS_ADDRTYPE_IS_IPV6(entry->reqaddrtype)) -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - { - ip4_addr_t ip4addr; - /* read the IP address after answer resource record's header */ - if (pbuf_copy_partial(p, &ip4addr, sizeof(ip4_addr_t), res_idx) != sizeof(ip4_addr_t)) { - goto ignore_packet; /* ignore this packet */ - } - ip_addr_copy_from_ip4(dns_table[i].ipaddr, ip4addr); - pbuf_free(p); - /* handle correct response */ - dns_correct_response(i, lwip_ntohl(ans.ttl)); - return; - } - } -#endif /* LWIP_IPV4 */ -#if LWIP_IPV6 - if ((ans.type == PP_HTONS(DNS_RRTYPE_AAAA)) && (ans.len == PP_HTONS(sizeof(ip6_addr_p_t)))) { -#if LWIP_IPV4 && LWIP_IPV6 - if (LWIP_DNS_ADDRTYPE_IS_IPV6(entry->reqaddrtype)) -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - { - ip6_addr_p_t ip6addr; - /* read the IP address after answer resource record's header */ - if (pbuf_copy_partial(p, &ip6addr, sizeof(ip6_addr_p_t), res_idx) != sizeof(ip6_addr_p_t)) { - goto ignore_packet; /* ignore this packet */ - } - /* @todo: scope ip6addr? Might be required for link-local addresses at least? */ - ip_addr_copy_from_ip6_packed(dns_table[i].ipaddr, ip6addr); - pbuf_free(p); - /* handle correct response */ - dns_correct_response(i, lwip_ntohl(ans.ttl)); - return; - } - } -#endif /* LWIP_IPV6 */ - } - /* skip this answer */ - if ((int)(res_idx + lwip_htons(ans.len)) > 0xFFFF) { - goto ignore_packet; /* ignore this packet */ - } - res_idx = (u16_t)(res_idx + lwip_htons(ans.len)); - --nanswers; - } -#if LWIP_IPV4 && LWIP_IPV6 - if ((entry->reqaddrtype == LWIP_DNS_ADDRTYPE_IPV4_IPV6) || - (entry->reqaddrtype == LWIP_DNS_ADDRTYPE_IPV6_IPV4)) { - if (entry->reqaddrtype == LWIP_DNS_ADDRTYPE_IPV4_IPV6) { - /* IPv4 failed, try IPv6 */ - dns_table[i].reqaddrtype = LWIP_DNS_ADDRTYPE_IPV6; - } else { - /* IPv6 failed, try IPv4 */ - dns_table[i].reqaddrtype = LWIP_DNS_ADDRTYPE_IPV4; - } - pbuf_free(p); - dns_table[i].state = DNS_STATE_NEW; - dns_check_entry(i); - return; - } -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - LWIP_DEBUGF(DNS_DEBUG, ("dns_recv: \"%s\": error in response\n", entry->name)); - } - /* call callback to indicate error, clean up memory and return */ - pbuf_free(p); - dns_call_found(i, NULL); - dns_table[i].state = DNS_STATE_UNUSED; - return; - } - } - } - -ignore_packet: - /* deallocate memory and return */ - pbuf_free(p); - return; -} - -/** - * Queues a new hostname to resolve and sends out a DNS query for that hostname - * - * @param name the hostname that is to be queried - * @param hostnamelen length of the hostname - * @param found a callback function to be called on success, failure or timeout - * @param callback_arg argument to pass to the callback function - * @return err_t return code. - */ -static err_t -dns_enqueue(const char *name, size_t hostnamelen, dns_found_callback found, - void *callback_arg LWIP_DNS_ADDRTYPE_ARG(u8_t dns_addrtype) LWIP_DNS_ISMDNS_ARG(u8_t is_mdns)) -{ - u8_t i; - u8_t lseq, lseqi; - struct dns_table_entry *entry = NULL; - size_t namelen; - struct dns_req_entry *req; - -#if ((LWIP_DNS_SECURE & LWIP_DNS_SECURE_NO_MULTIPLE_OUTSTANDING) != 0) - u8_t r; - /* check for duplicate entries */ - for (i = 0; i < DNS_TABLE_SIZE; i++) { - if ((dns_table[i].state == DNS_STATE_ASKING) && - (lwip_strnicmp(name, dns_table[i].name, sizeof(dns_table[i].name)) == 0)) { -#if LWIP_IPV4 && LWIP_IPV6 - if (dns_table[i].reqaddrtype != dns_addrtype) { - /* requested address types don't match - this can lead to 2 concurrent requests, but mixing the address types - for the same host should not be that common */ - continue; - } -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - /* this is a duplicate entry, find a free request entry */ - for (r = 0; r < DNS_MAX_REQUESTS; r++) { - if (dns_requests[r].found == 0) { - dns_requests[r].found = found; - dns_requests[r].arg = callback_arg; - dns_requests[r].dns_table_idx = i; - LWIP_DNS_SET_ADDRTYPE(dns_requests[r].reqaddrtype, dns_addrtype); - LWIP_DEBUGF(DNS_DEBUG, ("dns_enqueue: \"%s\": duplicate request\n", name)); - return ERR_INPROGRESS; - } - } - } - } - /* no duplicate entries found */ -#endif - - /* search an unused entry, or the oldest one */ - lseq = 0; - lseqi = DNS_TABLE_SIZE; - for (i = 0; i < DNS_TABLE_SIZE; ++i) { - entry = &dns_table[i]; - /* is it an unused entry ? */ - if (entry->state == DNS_STATE_UNUSED) { - break; - } - /* check if this is the oldest completed entry */ - if (entry->state == DNS_STATE_DONE) { - u8_t age = (u8_t)(dns_seqno - entry->seqno); - if (age > lseq) { - lseq = age; - lseqi = i; - } - } - } - - /* if we don't have found an unused entry, use the oldest completed one */ - if (i == DNS_TABLE_SIZE) { - if ((lseqi >= DNS_TABLE_SIZE) || (dns_table[lseqi].state != DNS_STATE_DONE)) { - /* no entry can be used now, table is full */ - LWIP_DEBUGF(DNS_DEBUG, ("dns_enqueue: \"%s\": DNS entries table is full\n", name)); - return ERR_MEM; - } else { - /* use the oldest completed one */ - i = lseqi; - entry = &dns_table[i]; - } - } - -#if ((LWIP_DNS_SECURE & LWIP_DNS_SECURE_NO_MULTIPLE_OUTSTANDING) != 0) - /* find a free request entry */ - req = NULL; - for (r = 0; r < DNS_MAX_REQUESTS; r++) { - if (dns_requests[r].found == NULL) { - req = &dns_requests[r]; - break; - } - } - if (req == NULL) { - /* no request entry can be used now, table is full */ - LWIP_DEBUGF(DNS_DEBUG, ("dns_enqueue: \"%s\": DNS request entries table is full\n", name)); - return ERR_MEM; - } - req->dns_table_idx = i; -#else - /* in this configuration, the entry index is the same as the request index */ - req = &dns_requests[i]; -#endif - - /* use this entry */ - LWIP_DEBUGF(DNS_DEBUG, ("dns_enqueue: \"%s\": use DNS entry %"U16_F"\n", name, (u16_t)(i))); - - /* fill the entry */ - entry->state = DNS_STATE_NEW; - entry->seqno = dns_seqno; - LWIP_DNS_SET_ADDRTYPE(entry->reqaddrtype, dns_addrtype); - LWIP_DNS_SET_ADDRTYPE(req->reqaddrtype, dns_addrtype); - req->found = found; - req->arg = callback_arg; - namelen = LWIP_MIN(hostnamelen, DNS_MAX_NAME_LENGTH - 1); - MEMCPY(entry->name, name, namelen); - entry->name[namelen] = 0; - -#if ((LWIP_DNS_SECURE & LWIP_DNS_SECURE_RAND_SRC_PORT) != 0) - entry->pcb_idx = dns_alloc_pcb(); - if (entry->pcb_idx >= DNS_MAX_SOURCE_PORTS) { - /* failed to get a UDP pcb */ - LWIP_DEBUGF(DNS_DEBUG, ("dns_enqueue: \"%s\": failed to allocate a pcb\n", name)); - entry->state = DNS_STATE_UNUSED; - req->found = NULL; - return ERR_MEM; - } - LWIP_DEBUGF(DNS_DEBUG, ("dns_enqueue: \"%s\": use DNS pcb %"U16_F"\n", name, (u16_t)(entry->pcb_idx))); -#endif - -#if LWIP_DNS_SUPPORT_MDNS_QUERIES - entry->is_mdns = is_mdns; -#endif - - dns_seqno++; - - /* force to send query without waiting timer */ - dns_check_entry(i); - - /* dns query is enqueued */ - return ERR_INPROGRESS; -} - -/** - * @ingroup dns - * Resolve a hostname (string) into an IP address. - * NON-BLOCKING callback version for use with raw API!!! - * - * Returns immediately with one of err_t return codes: - * - ERR_OK if hostname is a valid IP address string or the host - * name is already in the local names table. - * - ERR_INPROGRESS enqueue a request to be sent to the DNS server - * for resolution if no errors are present. - * - ERR_ARG: dns client not initialized or invalid hostname - * - * @param hostname the hostname that is to be queried - * @param addr pointer to a ip_addr_t where to store the address if it is already - * cached in the dns_table (only valid if ERR_OK is returned!) - * @param found a callback function to be called on success, failure or timeout (only if - * ERR_INPROGRESS is returned!) - * @param callback_arg argument to pass to the callback function - * @return a err_t return code. - */ -err_t -dns_gethostbyname(const char *hostname, ip_addr_t *addr, dns_found_callback found, - void *callback_arg) -{ - return dns_gethostbyname_addrtype(hostname, addr, found, callback_arg, LWIP_DNS_ADDRTYPE_DEFAULT); -} - -/** - * @ingroup dns - * Like dns_gethostbyname, but returned address type can be controlled: - * @param hostname the hostname that is to be queried - * @param addr pointer to a ip_addr_t where to store the address if it is already - * cached in the dns_table (only valid if ERR_OK is returned!) - * @param found a callback function to be called on success, failure or timeout (only if - * ERR_INPROGRESS is returned!) - * @param callback_arg argument to pass to the callback function - * @param dns_addrtype - LWIP_DNS_ADDRTYPE_IPV4_IPV6: try to resolve IPv4 first, try IPv6 if IPv4 fails only - * - LWIP_DNS_ADDRTYPE_IPV6_IPV4: try to resolve IPv6 first, try IPv4 if IPv6 fails only - * - LWIP_DNS_ADDRTYPE_IPV4: try to resolve IPv4 only - * - LWIP_DNS_ADDRTYPE_IPV6: try to resolve IPv6 only - */ -err_t -dns_gethostbyname_addrtype(const char *hostname, ip_addr_t *addr, dns_found_callback found, - void *callback_arg, u8_t dns_addrtype) -{ - size_t hostnamelen; -#if LWIP_DNS_SUPPORT_MDNS_QUERIES - u8_t is_mdns; -#endif - /* not initialized or no valid server yet, or invalid addr pointer - * or invalid hostname or invalid hostname length */ - if ((addr == NULL) || - (!hostname) || (!hostname[0])) { - return ERR_ARG; - } -#if ((LWIP_DNS_SECURE & LWIP_DNS_SECURE_RAND_SRC_PORT) == 0) - if (dns_pcbs[0] == NULL) { - return ERR_ARG; - } -#endif - hostnamelen = strlen(hostname); - if (hostnamelen >= DNS_MAX_NAME_LENGTH) { - LWIP_DEBUGF(DNS_DEBUG, ("dns_gethostbyname: name too long to resolve")); - return ERR_ARG; - } - - -#if LWIP_HAVE_LOOPIF - if (strcmp(hostname, "localhost") == 0) { - ip_addr_set_loopback(LWIP_DNS_ADDRTYPE_IS_IPV6(dns_addrtype), addr); - return ERR_OK; - } -#endif /* LWIP_HAVE_LOOPIF */ - - /* host name already in octet notation? set ip addr and return ERR_OK */ - if (ipaddr_aton(hostname, addr)) { -#if LWIP_IPV4 && LWIP_IPV6 - if ((IP_IS_V6(addr) && (dns_addrtype != LWIP_DNS_ADDRTYPE_IPV4)) || - (IP_IS_V4(addr) && (dns_addrtype != LWIP_DNS_ADDRTYPE_IPV6))) -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - { - return ERR_OK; - } - } - /* already have this address cached? */ - if (dns_lookup(hostname, addr LWIP_DNS_ADDRTYPE_ARG(dns_addrtype)) == ERR_OK) { - return ERR_OK; - } -#if LWIP_IPV4 && LWIP_IPV6 - if ((dns_addrtype == LWIP_DNS_ADDRTYPE_IPV4_IPV6) || (dns_addrtype == LWIP_DNS_ADDRTYPE_IPV6_IPV4)) { - /* fallback to 2nd IP type and try again to lookup */ - u8_t fallback; - if (dns_addrtype == LWIP_DNS_ADDRTYPE_IPV4_IPV6) { - fallback = LWIP_DNS_ADDRTYPE_IPV6; - } else { - fallback = LWIP_DNS_ADDRTYPE_IPV4; - } - if (dns_lookup(hostname, addr LWIP_DNS_ADDRTYPE_ARG(fallback)) == ERR_OK) { - return ERR_OK; - } - } -#else /* LWIP_IPV4 && LWIP_IPV6 */ - LWIP_UNUSED_ARG(dns_addrtype); -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - -#if LWIP_DNS_SUPPORT_MDNS_QUERIES - if (strstr(hostname, ".local") == &hostname[hostnamelen] - 6) { - is_mdns = 1; - } else { - is_mdns = 0; - } - - if (!is_mdns) -#endif /* LWIP_DNS_SUPPORT_MDNS_QUERIES */ - { - /* prevent calling found callback if no server is set, return error instead */ - if (ip_addr_isany_val(dns_servers[0])) { - return ERR_VAL; - } - } - - /* queue query with specified callback */ - return dns_enqueue(hostname, hostnamelen, found, callback_arg LWIP_DNS_ADDRTYPE_ARG(dns_addrtype) - LWIP_DNS_ISMDNS_ARG(is_mdns)); -} - -#endif /* LWIP_DNS */ diff --git a/Middlewares/Third_Party/LwIP/src/core/inet_chksum.c b/Middlewares/Third_Party/LwIP/src/core/inet_chksum.c deleted file mode 100644 index 818c68f..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/inet_chksum.c +++ /dev/null @@ -1,608 +0,0 @@ -/** - * @file - * Internet checksum functions.\n - * - * These are some reference implementations of the checksum algorithm, with the - * aim of being simple, correct and fully portable. Checksumming is the - * first thing you would want to optimize for your platform. If you create - * your own version, link it in and in your cc.h put: - * - * \#define LWIP_CHKSUM your_checksum_routine - * - * Or you can select from the implementations below by defining - * LWIP_CHKSUM_ALGORITHM to 1, 2 or 3. - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -#include "lwip/opt.h" - -#include "lwip/inet_chksum.h" -#include "lwip/def.h" -#include "lwip/ip_addr.h" - -#include - -#ifndef LWIP_CHKSUM -# define LWIP_CHKSUM lwip_standard_chksum -# ifndef LWIP_CHKSUM_ALGORITHM -# define LWIP_CHKSUM_ALGORITHM 2 -# endif -u16_t lwip_standard_chksum(const void *dataptr, int len); -#endif -/* If none set: */ -#ifndef LWIP_CHKSUM_ALGORITHM -# define LWIP_CHKSUM_ALGORITHM 0 -#endif - -#if (LWIP_CHKSUM_ALGORITHM == 1) /* Version #1 */ -/** - * lwip checksum - * - * @param dataptr points to start of data to be summed at any boundary - * @param len length of data to be summed - * @return host order (!) lwip checksum (non-inverted Internet sum) - * - * @note accumulator size limits summable length to 64k - * @note host endianess is irrelevant (p3 RFC1071) - */ -u16_t -lwip_standard_chksum(const void *dataptr, int len) -{ - u32_t acc; - u16_t src; - const u8_t *octetptr; - - acc = 0; - /* dataptr may be at odd or even addresses */ - octetptr = (const u8_t *)dataptr; - while (len > 1) { - /* declare first octet as most significant - thus assume network order, ignoring host order */ - src = (*octetptr) << 8; - octetptr++; - /* declare second octet as least significant */ - src |= (*octetptr); - octetptr++; - acc += src; - len -= 2; - } - if (len > 0) { - /* accumulate remaining octet */ - src = (*octetptr) << 8; - acc += src; - } - /* add deferred carry bits */ - acc = (acc >> 16) + (acc & 0x0000ffffUL); - if ((acc & 0xffff0000UL) != 0) { - acc = (acc >> 16) + (acc & 0x0000ffffUL); - } - /* This maybe a little confusing: reorder sum using lwip_htons() - instead of lwip_ntohs() since it has a little less call overhead. - The caller must invert bits for Internet sum ! */ - return lwip_htons((u16_t)acc); -} -#endif - -#if (LWIP_CHKSUM_ALGORITHM == 2) /* Alternative version #2 */ -/* - * Curt McDowell - * Broadcom Corp. - * csm@broadcom.com - * - * IP checksum two bytes at a time with support for - * unaligned buffer. - * Works for len up to and including 0x20000. - * by Curt McDowell, Broadcom Corp. 12/08/2005 - * - * @param dataptr points to start of data to be summed at any boundary - * @param len length of data to be summed - * @return host order (!) lwip checksum (non-inverted Internet sum) - */ -u16_t -lwip_standard_chksum(const void *dataptr, int len) -{ - const u8_t *pb = (const u8_t *)dataptr; - const u16_t *ps; - u16_t t = 0; - u32_t sum = 0; - int odd = ((mem_ptr_t)pb & 1); - - /* Get aligned to u16_t */ - if (odd && len > 0) { - ((u8_t *)&t)[1] = *pb++; - len--; - } - - /* Add the bulk of the data */ - ps = (const u16_t *)(const void *)pb; - while (len > 1) { - sum += *ps++; - len -= 2; - } - - /* Consume left-over byte, if any */ - if (len > 0) { - ((u8_t *)&t)[0] = *(const u8_t *)ps; - } - - /* Add end bytes */ - sum += t; - - /* Fold 32-bit sum to 16 bits - calling this twice is probably faster than if statements... */ - sum = FOLD_U32T(sum); - sum = FOLD_U32T(sum); - - /* Swap if alignment was odd */ - if (odd) { - sum = SWAP_BYTES_IN_WORD(sum); - } - - return (u16_t)sum; -} -#endif - -#if (LWIP_CHKSUM_ALGORITHM == 3) /* Alternative version #3 */ -/** - * An optimized checksum routine. Basically, it uses loop-unrolling on - * the checksum loop, treating the head and tail bytes specially, whereas - * the inner loop acts on 8 bytes at a time. - * - * @arg start of buffer to be checksummed. May be an odd byte address. - * @len number of bytes in the buffer to be checksummed. - * @return host order (!) lwip checksum (non-inverted Internet sum) - * - * by Curt McDowell, Broadcom Corp. December 8th, 2005 - */ -u16_t -lwip_standard_chksum(const void *dataptr, int len) -{ - const u8_t *pb = (const u8_t *)dataptr; - const u16_t *ps; - u16_t t = 0; - const u32_t *pl; - u32_t sum = 0, tmp; - /* starts at odd byte address? */ - int odd = ((mem_ptr_t)pb & 1); - - if (odd && len > 0) { - ((u8_t *)&t)[1] = *pb++; - len--; - } - - ps = (const u16_t *)(const void *)pb; - - if (((mem_ptr_t)ps & 3) && len > 1) { - sum += *ps++; - len -= 2; - } - - pl = (const u32_t *)(const void *)ps; - - while (len > 7) { - tmp = sum + *pl++; /* ping */ - if (tmp < sum) { - tmp++; /* add back carry */ - } - - sum = tmp + *pl++; /* pong */ - if (sum < tmp) { - sum++; /* add back carry */ - } - - len -= 8; - } - - /* make room in upper bits */ - sum = FOLD_U32T(sum); - - ps = (const u16_t *)pl; - - /* 16-bit aligned word remaining? */ - while (len > 1) { - sum += *ps++; - len -= 2; - } - - /* dangling tail byte remaining? */ - if (len > 0) { /* include odd byte */ - ((u8_t *)&t)[0] = *(const u8_t *)ps; - } - - sum += t; /* add end bytes */ - - /* Fold 32-bit sum to 16 bits - calling this twice is probably faster than if statements... */ - sum = FOLD_U32T(sum); - sum = FOLD_U32T(sum); - - if (odd) { - sum = SWAP_BYTES_IN_WORD(sum); - } - - return (u16_t)sum; -} -#endif - -/** Parts of the pseudo checksum which are common to IPv4 and IPv6 */ -static u16_t -inet_cksum_pseudo_base(struct pbuf *p, u8_t proto, u16_t proto_len, u32_t acc) -{ - struct pbuf *q; - int swapped = 0; - - /* iterate through all pbuf in chain */ - for (q = p; q != NULL; q = q->next) { - LWIP_DEBUGF(INET_DEBUG, ("inet_chksum_pseudo(): checksumming pbuf %p (has next %p) \n", - (void *)q, (void *)q->next)); - acc += LWIP_CHKSUM(q->payload, q->len); - /*LWIP_DEBUGF(INET_DEBUG, ("inet_chksum_pseudo(): unwrapped lwip_chksum()=%"X32_F" \n", acc));*/ - /* just executing this next line is probably faster that the if statement needed - to check whether we really need to execute it, and does no harm */ - acc = FOLD_U32T(acc); - if (q->len % 2 != 0) { - swapped = !swapped; - acc = SWAP_BYTES_IN_WORD(acc); - } - /*LWIP_DEBUGF(INET_DEBUG, ("inet_chksum_pseudo(): wrapped lwip_chksum()=%"X32_F" \n", acc));*/ - } - - if (swapped) { - acc = SWAP_BYTES_IN_WORD(acc); - } - - acc += (u32_t)lwip_htons((u16_t)proto); - acc += (u32_t)lwip_htons(proto_len); - - /* Fold 32-bit sum to 16 bits - calling this twice is probably faster than if statements... */ - acc = FOLD_U32T(acc); - acc = FOLD_U32T(acc); - LWIP_DEBUGF(INET_DEBUG, ("inet_chksum_pseudo(): pbuf chain lwip_chksum()=%"X32_F"\n", acc)); - return (u16_t)~(acc & 0xffffUL); -} - -#if LWIP_IPV4 -/* inet_chksum_pseudo: - * - * Calculates the IPv4 pseudo Internet checksum used by TCP and UDP for a pbuf chain. - * IP addresses are expected to be in network byte order. - * - * @param p chain of pbufs over that a checksum should be calculated (ip data part) - * @param src source ip address (used for checksum of pseudo header) - * @param dst destination ip address (used for checksum of pseudo header) - * @param proto ip protocol (used for checksum of pseudo header) - * @param proto_len length of the ip data part (used for checksum of pseudo header) - * @return checksum (as u16_t) to be saved directly in the protocol header - */ -u16_t -inet_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, - const ip4_addr_t *src, const ip4_addr_t *dest) -{ - u32_t acc; - u32_t addr; - - addr = ip4_addr_get_u32(src); - acc = (addr & 0xffffUL); - acc = (u32_t)(acc + ((addr >> 16) & 0xffffUL)); - addr = ip4_addr_get_u32(dest); - acc = (u32_t)(acc + (addr & 0xffffUL)); - acc = (u32_t)(acc + ((addr >> 16) & 0xffffUL)); - /* fold down to 16 bits */ - acc = FOLD_U32T(acc); - acc = FOLD_U32T(acc); - - return inet_cksum_pseudo_base(p, proto, proto_len, acc); -} -#endif /* LWIP_IPV4 */ - -#if LWIP_IPV6 -/** - * Calculates the checksum with IPv6 pseudo header used by TCP and UDP for a pbuf chain. - * IPv6 addresses are expected to be in network byte order. - * - * @param p chain of pbufs over that a checksum should be calculated (ip data part) - * @param proto ipv6 protocol/next header (used for checksum of pseudo header) - * @param proto_len length of the ipv6 payload (used for checksum of pseudo header) - * @param src source ipv6 address (used for checksum of pseudo header) - * @param dest destination ipv6 address (used for checksum of pseudo header) - * @return checksum (as u16_t) to be saved directly in the protocol header - */ -u16_t -ip6_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, - const ip6_addr_t *src, const ip6_addr_t *dest) -{ - u32_t acc = 0; - u32_t addr; - u8_t addr_part; - - for (addr_part = 0; addr_part < 4; addr_part++) { - addr = src->addr[addr_part]; - acc = (u32_t)(acc + (addr & 0xffffUL)); - acc = (u32_t)(acc + ((addr >> 16) & 0xffffUL)); - addr = dest->addr[addr_part]; - acc = (u32_t)(acc + (addr & 0xffffUL)); - acc = (u32_t)(acc + ((addr >> 16) & 0xffffUL)); - } - /* fold down to 16 bits */ - acc = FOLD_U32T(acc); - acc = FOLD_U32T(acc); - - return inet_cksum_pseudo_base(p, proto, proto_len, acc); -} -#endif /* LWIP_IPV6 */ - -/* ip_chksum_pseudo: - * - * Calculates the IPv4 or IPv6 pseudo Internet checksum used by TCP and UDP for a pbuf chain. - * IP addresses are expected to be in network byte order. - * - * @param p chain of pbufs over that a checksum should be calculated (ip data part) - * @param src source ip address (used for checksum of pseudo header) - * @param dst destination ip address (used for checksum of pseudo header) - * @param proto ip protocol (used for checksum of pseudo header) - * @param proto_len length of the ip data part (used for checksum of pseudo header) - * @return checksum (as u16_t) to be saved directly in the protocol header - */ -u16_t -ip_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, - const ip_addr_t *src, const ip_addr_t *dest) -{ -#if LWIP_IPV6 - if (IP_IS_V6(dest)) { - return ip6_chksum_pseudo(p, proto, proto_len, ip_2_ip6(src), ip_2_ip6(dest)); - } -#endif /* LWIP_IPV6 */ -#if LWIP_IPV4 && LWIP_IPV6 - else -#endif /* LWIP_IPV4 && LWIP_IPV6 */ -#if LWIP_IPV4 - { - return inet_chksum_pseudo(p, proto, proto_len, ip_2_ip4(src), ip_2_ip4(dest)); - } -#endif /* LWIP_IPV4 */ -} - -/** Parts of the pseudo checksum which are common to IPv4 and IPv6 */ -static u16_t -inet_cksum_pseudo_partial_base(struct pbuf *p, u8_t proto, u16_t proto_len, - u16_t chksum_len, u32_t acc) -{ - struct pbuf *q; - int swapped = 0; - u16_t chklen; - - /* iterate through all pbuf in chain */ - for (q = p; (q != NULL) && (chksum_len > 0); q = q->next) { - LWIP_DEBUGF(INET_DEBUG, ("inet_chksum_pseudo(): checksumming pbuf %p (has next %p) \n", - (void *)q, (void *)q->next)); - chklen = q->len; - if (chklen > chksum_len) { - chklen = chksum_len; - } - acc += LWIP_CHKSUM(q->payload, chklen); - chksum_len = (u16_t)(chksum_len - chklen); - LWIP_ASSERT("delete me", chksum_len < 0x7fff); - /*LWIP_DEBUGF(INET_DEBUG, ("inet_chksum_pseudo(): unwrapped lwip_chksum()=%"X32_F" \n", acc));*/ - /* fold the upper bit down */ - acc = FOLD_U32T(acc); - if (q->len % 2 != 0) { - swapped = !swapped; - acc = SWAP_BYTES_IN_WORD(acc); - } - /*LWIP_DEBUGF(INET_DEBUG, ("inet_chksum_pseudo(): wrapped lwip_chksum()=%"X32_F" \n", acc));*/ - } - - if (swapped) { - acc = SWAP_BYTES_IN_WORD(acc); - } - - acc += (u32_t)lwip_htons((u16_t)proto); - acc += (u32_t)lwip_htons(proto_len); - - /* Fold 32-bit sum to 16 bits - calling this twice is probably faster than if statements... */ - acc = FOLD_U32T(acc); - acc = FOLD_U32T(acc); - LWIP_DEBUGF(INET_DEBUG, ("inet_chksum_pseudo(): pbuf chain lwip_chksum()=%"X32_F"\n", acc)); - return (u16_t)~(acc & 0xffffUL); -} - -#if LWIP_IPV4 -/* inet_chksum_pseudo_partial: - * - * Calculates the IPv4 pseudo Internet checksum used by TCP and UDP for a pbuf chain. - * IP addresses are expected to be in network byte order. - * - * @param p chain of pbufs over that a checksum should be calculated (ip data part) - * @param src source ip address (used for checksum of pseudo header) - * @param dst destination ip address (used for checksum of pseudo header) - * @param proto ip protocol (used for checksum of pseudo header) - * @param proto_len length of the ip data part (used for checksum of pseudo header) - * @return checksum (as u16_t) to be saved directly in the protocol header - */ -u16_t -inet_chksum_pseudo_partial(struct pbuf *p, u8_t proto, u16_t proto_len, - u16_t chksum_len, const ip4_addr_t *src, const ip4_addr_t *dest) -{ - u32_t acc; - u32_t addr; - - addr = ip4_addr_get_u32(src); - acc = (addr & 0xffffUL); - acc = (u32_t)(acc + ((addr >> 16) & 0xffffUL)); - addr = ip4_addr_get_u32(dest); - acc = (u32_t)(acc + (addr & 0xffffUL)); - acc = (u32_t)(acc + ((addr >> 16) & 0xffffUL)); - /* fold down to 16 bits */ - acc = FOLD_U32T(acc); - acc = FOLD_U32T(acc); - - return inet_cksum_pseudo_partial_base(p, proto, proto_len, chksum_len, acc); -} -#endif /* LWIP_IPV4 */ - -#if LWIP_IPV6 -/** - * Calculates the checksum with IPv6 pseudo header used by TCP and UDP for a pbuf chain. - * IPv6 addresses are expected to be in network byte order. Will only compute for a - * portion of the payload. - * - * @param p chain of pbufs over that a checksum should be calculated (ip data part) - * @param proto ipv6 protocol/next header (used for checksum of pseudo header) - * @param proto_len length of the ipv6 payload (used for checksum of pseudo header) - * @param chksum_len number of payload bytes used to compute chksum - * @param src source ipv6 address (used for checksum of pseudo header) - * @param dest destination ipv6 address (used for checksum of pseudo header) - * @return checksum (as u16_t) to be saved directly in the protocol header - */ -u16_t -ip6_chksum_pseudo_partial(struct pbuf *p, u8_t proto, u16_t proto_len, - u16_t chksum_len, const ip6_addr_t *src, const ip6_addr_t *dest) -{ - u32_t acc = 0; - u32_t addr; - u8_t addr_part; - - for (addr_part = 0; addr_part < 4; addr_part++) { - addr = src->addr[addr_part]; - acc = (u32_t)(acc + (addr & 0xffffUL)); - acc = (u32_t)(acc + ((addr >> 16) & 0xffffUL)); - addr = dest->addr[addr_part]; - acc = (u32_t)(acc + (addr & 0xffffUL)); - acc = (u32_t)(acc + ((addr >> 16) & 0xffffUL)); - } - /* fold down to 16 bits */ - acc = FOLD_U32T(acc); - acc = FOLD_U32T(acc); - - return inet_cksum_pseudo_partial_base(p, proto, proto_len, chksum_len, acc); -} -#endif /* LWIP_IPV6 */ - -/* ip_chksum_pseudo_partial: - * - * Calculates the IPv4 or IPv6 pseudo Internet checksum used by TCP and UDP for a pbuf chain. - * - * @param p chain of pbufs over that a checksum should be calculated (ip data part) - * @param src source ip address (used for checksum of pseudo header) - * @param dst destination ip address (used for checksum of pseudo header) - * @param proto ip protocol (used for checksum of pseudo header) - * @param proto_len length of the ip data part (used for checksum of pseudo header) - * @return checksum (as u16_t) to be saved directly in the protocol header - */ -u16_t -ip_chksum_pseudo_partial(struct pbuf *p, u8_t proto, u16_t proto_len, - u16_t chksum_len, const ip_addr_t *src, const ip_addr_t *dest) -{ -#if LWIP_IPV6 - if (IP_IS_V6(dest)) { - return ip6_chksum_pseudo_partial(p, proto, proto_len, chksum_len, ip_2_ip6(src), ip_2_ip6(dest)); - } -#endif /* LWIP_IPV6 */ -#if LWIP_IPV4 && LWIP_IPV6 - else -#endif /* LWIP_IPV4 && LWIP_IPV6 */ -#if LWIP_IPV4 - { - return inet_chksum_pseudo_partial(p, proto, proto_len, chksum_len, ip_2_ip4(src), ip_2_ip4(dest)); - } -#endif /* LWIP_IPV4 */ -} - -/* inet_chksum: - * - * Calculates the Internet checksum over a portion of memory. Used primarily for IP - * and ICMP. - * - * @param dataptr start of the buffer to calculate the checksum (no alignment needed) - * @param len length of the buffer to calculate the checksum - * @return checksum (as u16_t) to be saved directly in the protocol header - */ - -u16_t -inet_chksum(const void *dataptr, u16_t len) -{ - return (u16_t)~(unsigned int)LWIP_CHKSUM(dataptr, len); -} - -/** - * Calculate a checksum over a chain of pbufs (without pseudo-header, much like - * inet_chksum only pbufs are used). - * - * @param p pbuf chain over that the checksum should be calculated - * @return checksum (as u16_t) to be saved directly in the protocol header - */ -u16_t -inet_chksum_pbuf(struct pbuf *p) -{ - u32_t acc; - struct pbuf *q; - int swapped = 0; - - acc = 0; - for (q = p; q != NULL; q = q->next) { - acc += LWIP_CHKSUM(q->payload, q->len); - acc = FOLD_U32T(acc); - if (q->len % 2 != 0) { - swapped = !swapped; - acc = SWAP_BYTES_IN_WORD(acc); - } - } - - if (swapped) { - acc = SWAP_BYTES_IN_WORD(acc); - } - return (u16_t)~(acc & 0xffffUL); -} - -/* These are some implementations for LWIP_CHKSUM_COPY, which copies data - * like MEMCPY but generates a checksum at the same time. Since this is a - * performance-sensitive function, you might want to create your own version - * in assembly targeted at your hardware by defining it in lwipopts.h: - * #define LWIP_CHKSUM_COPY(dst, src, len) your_chksum_copy(dst, src, len) - */ - -#if (LWIP_CHKSUM_COPY_ALGORITHM == 1) /* Version #1 */ -/** Safe but slow: first call MEMCPY, then call LWIP_CHKSUM. - * For architectures with big caches, data might still be in cache when - * generating the checksum after copying. - */ -u16_t -lwip_chksum_copy(void *dst, const void *src, u16_t len) -{ - MEMCPY(dst, src, len); - return LWIP_CHKSUM(dst, len); -} -#endif /* (LWIP_CHKSUM_COPY_ALGORITHM == 1) */ diff --git a/Middlewares/Third_Party/LwIP/src/core/init.c b/Middlewares/Third_Party/LwIP/src/core/init.c deleted file mode 100644 index b3737a3..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/init.c +++ /dev/null @@ -1,380 +0,0 @@ -/** - * @file - * Modules initialization - * - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - */ - -#include "lwip/opt.h" - -#include "lwip/init.h" -#include "lwip/stats.h" -#include "lwip/sys.h" -#include "lwip/mem.h" -#include "lwip/memp.h" -#include "lwip/pbuf.h" -#include "lwip/netif.h" -#include "lwip/sockets.h" -#include "lwip/ip.h" -#include "lwip/raw.h" -#include "lwip/udp.h" -#include "lwip/priv/tcp_priv.h" -#include "lwip/igmp.h" -#include "lwip/dns.h" -#include "lwip/timeouts.h" -#include "lwip/etharp.h" -#include "lwip/ip6.h" -#include "lwip/nd6.h" -#include "lwip/mld6.h" -#include "lwip/api.h" - -#include "netif/ppp/ppp_opts.h" -#include "netif/ppp/ppp_impl.h" - -#ifndef LWIP_SKIP_PACKING_CHECK - -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct packed_struct_test { - PACK_STRUCT_FLD_8(u8_t dummy1); - PACK_STRUCT_FIELD(u32_t dummy2); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif -#define PACKED_STRUCT_TEST_EXPECTED_SIZE 5 - -#endif - -/* Compile-time sanity checks for configuration errors. - * These can be done independently of LWIP_DEBUG, without penalty. - */ -#ifndef BYTE_ORDER -#error "BYTE_ORDER is not defined, you have to define it in your cc.h" -#endif -#if (!IP_SOF_BROADCAST && IP_SOF_BROADCAST_RECV) -#error "If you want to use broadcast filter per pcb on recv operations, you have to define IP_SOF_BROADCAST=1 in your lwipopts.h" -#endif -#if (!LWIP_UDP && LWIP_UDPLITE) -#error "If you want to use UDP Lite, you have to define LWIP_UDP=1 in your lwipopts.h" -#endif -#if (!LWIP_UDP && LWIP_DHCP) -#error "If you want to use DHCP, you have to define LWIP_UDP=1 in your lwipopts.h" -#endif -#if (!LWIP_UDP && !LWIP_RAW && LWIP_MULTICAST_TX_OPTIONS) -#error "If you want to use LWIP_MULTICAST_TX_OPTIONS, you have to define LWIP_UDP=1 and/or LWIP_RAW=1 in your lwipopts.h" -#endif -#if (!LWIP_UDP && LWIP_DNS) -#error "If you want to use DNS, you have to define LWIP_UDP=1 in your lwipopts.h" -#endif -#if !MEMP_MEM_MALLOC /* MEMP_NUM_* checks are disabled when not using the pool allocator */ -#if (LWIP_ARP && ARP_QUEUEING && (MEMP_NUM_ARP_QUEUE<=0)) -#error "If you want to use ARP Queueing, you have to define MEMP_NUM_ARP_QUEUE>=1 in your lwipopts.h" -#endif -#if (LWIP_RAW && (MEMP_NUM_RAW_PCB<=0)) -#error "If you want to use RAW, you have to define MEMP_NUM_RAW_PCB>=1 in your lwipopts.h" -#endif -#if (LWIP_UDP && (MEMP_NUM_UDP_PCB<=0)) -#error "If you want to use UDP, you have to define MEMP_NUM_UDP_PCB>=1 in your lwipopts.h" -#endif -#if (LWIP_TCP && (MEMP_NUM_TCP_PCB<=0)) -#error "If you want to use TCP, you have to define MEMP_NUM_TCP_PCB>=1 in your lwipopts.h" -#endif -#if (LWIP_IGMP && (MEMP_NUM_IGMP_GROUP<=1)) -#error "If you want to use IGMP, you have to define MEMP_NUM_IGMP_GROUP>1 in your lwipopts.h" -#endif -#if (LWIP_IGMP && !LWIP_MULTICAST_TX_OPTIONS) -#error "If you want to use IGMP, you have to define LWIP_MULTICAST_TX_OPTIONS==1 in your lwipopts.h" -#endif -#if (LWIP_IGMP && !LWIP_IPV4) -#error "IGMP needs LWIP_IPV4 enabled in your lwipopts.h" -#endif -#if ((LWIP_NETCONN || LWIP_SOCKET) && (MEMP_NUM_TCPIP_MSG_API<=0)) -#error "If you want to use Sequential API, you have to define MEMP_NUM_TCPIP_MSG_API>=1 in your lwipopts.h" -#endif -/* There must be sufficient timeouts, taking into account requirements of the subsystems. */ -#if LWIP_TIMERS && (MEMP_NUM_SYS_TIMEOUT < LWIP_NUM_SYS_TIMEOUT_INTERNAL) -#error "MEMP_NUM_SYS_TIMEOUT is too low to accomodate all required timeouts" -#endif -#if (IP_REASSEMBLY && (MEMP_NUM_REASSDATA > IP_REASS_MAX_PBUFS)) -#error "MEMP_NUM_REASSDATA > IP_REASS_MAX_PBUFS doesn't make sense since each struct ip_reassdata must hold 2 pbufs at least!" -#endif -#endif /* !MEMP_MEM_MALLOC */ -#if LWIP_WND_SCALE -#if (LWIP_TCP && (TCP_WND > 0xffffffff)) -#error "If you want to use TCP, TCP_WND must fit in an u32_t, so, you have to reduce it in your lwipopts.h" -#endif -#if (LWIP_TCP && (TCP_RCV_SCALE > 14)) -#error "The maximum valid window scale value is 14!" -#endif -#if (LWIP_TCP && (TCP_WND > (0xFFFFU << TCP_RCV_SCALE))) -#error "TCP_WND is bigger than the configured LWIP_WND_SCALE allows!" -#endif -#if (LWIP_TCP && ((TCP_WND >> TCP_RCV_SCALE) == 0)) -#error "TCP_WND is too small for the configured LWIP_WND_SCALE (results in zero window)!" -#endif -#else /* LWIP_WND_SCALE */ -#if (LWIP_TCP && (TCP_WND > 0xffff)) -#error "If you want to use TCP, TCP_WND must fit in an u16_t, so, you have to reduce it in your lwipopts.h (or enable window scaling)" -#endif -#endif /* LWIP_WND_SCALE */ -#if (LWIP_TCP && (TCP_SND_QUEUELEN > 0xffff)) -#error "If you want to use TCP, TCP_SND_QUEUELEN must fit in an u16_t, so, you have to reduce it in your lwipopts.h" -#endif -#if (LWIP_TCP && (TCP_SND_QUEUELEN < 2)) -#error "TCP_SND_QUEUELEN must be at least 2 for no-copy TCP writes to work" -#endif -#if (LWIP_TCP && ((TCP_MAXRTX > 12) || (TCP_SYNMAXRTX > 12))) -#error "If you want to use TCP, TCP_MAXRTX and TCP_SYNMAXRTX must less or equal to 12 (due to tcp_backoff table), so, you have to reduce them in your lwipopts.h" -#endif -#if (LWIP_TCP && TCP_LISTEN_BACKLOG && ((TCP_DEFAULT_LISTEN_BACKLOG < 0) || (TCP_DEFAULT_LISTEN_BACKLOG > 0xff))) -#error "If you want to use TCP backlog, TCP_DEFAULT_LISTEN_BACKLOG must fit into an u8_t" -#endif -#if (LWIP_TCP && LWIP_TCP_SACK_OUT && !TCP_QUEUE_OOSEQ) -#error "To use LWIP_TCP_SACK_OUT, TCP_QUEUE_OOSEQ needs to be enabled" -#endif -#if (LWIP_TCP && LWIP_TCP_SACK_OUT && (LWIP_TCP_MAX_SACK_NUM < 1)) -#error "LWIP_TCP_MAX_SACK_NUM must be greater than 0" -#endif -#if (LWIP_NETIF_API && (NO_SYS==1)) -#error "If you want to use NETIF API, you have to define NO_SYS=0 in your lwipopts.h" -#endif -#if ((LWIP_SOCKET || LWIP_NETCONN) && (NO_SYS==1)) -#error "If you want to use Sequential API, you have to define NO_SYS=0 in your lwipopts.h" -#endif -#if (LWIP_PPP_API && (NO_SYS==1)) -#error "If you want to use PPP API, you have to define NO_SYS=0 in your lwipopts.h" -#endif -#if (LWIP_PPP_API && (PPP_SUPPORT==0)) -#error "If you want to use PPP API, you have to enable PPP_SUPPORT in your lwipopts.h" -#endif -#if (((!LWIP_DHCP) || (!LWIP_AUTOIP)) && LWIP_DHCP_AUTOIP_COOP) -#error "If you want to use DHCP/AUTOIP cooperation mode, you have to define LWIP_DHCP=1 and LWIP_AUTOIP=1 in your lwipopts.h" -#endif -#if (((!LWIP_DHCP) || (!LWIP_ARP)) && DHCP_DOES_ARP_CHECK) -#error "If you want to use DHCP ARP checking, you have to define LWIP_DHCP=1 and LWIP_ARP=1 in your lwipopts.h" -#endif -#if (!LWIP_ARP && LWIP_AUTOIP) -#error "If you want to use AUTOIP, you have to define LWIP_ARP=1 in your lwipopts.h" -#endif -#if (LWIP_TCP && ((LWIP_EVENT_API && LWIP_CALLBACK_API) || (!LWIP_EVENT_API && !LWIP_CALLBACK_API))) -#error "One and exactly one of LWIP_EVENT_API and LWIP_CALLBACK_API has to be enabled in your lwipopts.h" -#endif -#if (LWIP_ALTCP && LWIP_EVENT_API) -#error "The application layered tcp API does not work with LWIP_EVENT_API" -#endif -#if (MEM_LIBC_MALLOC && MEM_USE_POOLS) -#error "MEM_LIBC_MALLOC and MEM_USE_POOLS may not both be simultaneously enabled in your lwipopts.h" -#endif -#if (MEM_USE_POOLS && !MEMP_USE_CUSTOM_POOLS) -#error "MEM_USE_POOLS requires custom pools (MEMP_USE_CUSTOM_POOLS) to be enabled in your lwipopts.h" -#endif -#if (PBUF_POOL_BUFSIZE <= MEM_ALIGNMENT) -#error "PBUF_POOL_BUFSIZE must be greater than MEM_ALIGNMENT or the offset may take the full first pbuf" -#endif -#if (DNS_LOCAL_HOSTLIST && !DNS_LOCAL_HOSTLIST_IS_DYNAMIC && !(defined(DNS_LOCAL_HOSTLIST_INIT))) -#error "you have to define define DNS_LOCAL_HOSTLIST_INIT {{'host1', 0x123}, {'host2', 0x234}} to initialize DNS_LOCAL_HOSTLIST" -#endif -#if PPP_SUPPORT && !PPPOS_SUPPORT && !PPPOE_SUPPORT && !PPPOL2TP_SUPPORT -#error "PPP_SUPPORT needs at least one of PPPOS_SUPPORT, PPPOE_SUPPORT or PPPOL2TP_SUPPORT turned on" -#endif -#if PPP_SUPPORT && !PPP_IPV4_SUPPORT && !PPP_IPV6_SUPPORT -#error "PPP_SUPPORT needs PPP_IPV4_SUPPORT and/or PPP_IPV6_SUPPORT turned on" -#endif -#if PPP_SUPPORT && PPP_IPV4_SUPPORT && !LWIP_IPV4 -#error "PPP_IPV4_SUPPORT needs LWIP_IPV4 turned on" -#endif -#if PPP_SUPPORT && PPP_IPV6_SUPPORT && !LWIP_IPV6 -#error "PPP_IPV6_SUPPORT needs LWIP_IPV6 turned on" -#endif -#if !LWIP_ETHERNET && (LWIP_ARP || PPPOE_SUPPORT) -#error "LWIP_ETHERNET needs to be turned on for LWIP_ARP or PPPOE_SUPPORT" -#endif -#if LWIP_TCPIP_CORE_LOCKING_INPUT && !LWIP_TCPIP_CORE_LOCKING -#error "When using LWIP_TCPIP_CORE_LOCKING_INPUT, LWIP_TCPIP_CORE_LOCKING must be enabled, too" -#endif -#if LWIP_TCP && LWIP_NETIF_TX_SINGLE_PBUF && !TCP_OVERSIZE -#error "LWIP_NETIF_TX_SINGLE_PBUF needs TCP_OVERSIZE enabled to create single-pbuf TCP packets" -#endif -#if LWIP_NETCONN && LWIP_TCP -#if NETCONN_COPY != TCP_WRITE_FLAG_COPY -#error "NETCONN_COPY != TCP_WRITE_FLAG_COPY" -#endif -#if NETCONN_MORE != TCP_WRITE_FLAG_MORE -#error "NETCONN_MORE != TCP_WRITE_FLAG_MORE" -#endif -#endif /* LWIP_NETCONN && LWIP_TCP */ -#if LWIP_SOCKET -#endif /* LWIP_SOCKET */ - - -/* Compile-time checks for deprecated options. - */ -#ifdef MEMP_NUM_TCPIP_MSG -#error "MEMP_NUM_TCPIP_MSG option is deprecated. Remove it from your lwipopts.h." -#endif -#ifdef TCP_REXMIT_DEBUG -#error "TCP_REXMIT_DEBUG option is deprecated. Remove it from your lwipopts.h." -#endif -#ifdef RAW_STATS -#error "RAW_STATS option is deprecated. Remove it from your lwipopts.h." -#endif -#ifdef ETHARP_QUEUE_FIRST -#error "ETHARP_QUEUE_FIRST option is deprecated. Remove it from your lwipopts.h." -#endif -#ifdef ETHARP_ALWAYS_INSERT -#error "ETHARP_ALWAYS_INSERT option is deprecated. Remove it from your lwipopts.h." -#endif -#if !NO_SYS && LWIP_TCPIP_CORE_LOCKING && LWIP_COMPAT_MUTEX && !defined(LWIP_COMPAT_MUTEX_ALLOWED) -#error "LWIP_COMPAT_MUTEX cannot prevent priority inversion. It is recommended to implement priority-aware mutexes. (Define LWIP_COMPAT_MUTEX_ALLOWED to disable this error.)" -#endif - -#ifndef LWIP_DISABLE_TCP_SANITY_CHECKS -#define LWIP_DISABLE_TCP_SANITY_CHECKS 0 -#endif -#ifndef LWIP_DISABLE_MEMP_SANITY_CHECKS -#define LWIP_DISABLE_MEMP_SANITY_CHECKS 0 -#endif - -/* MEMP sanity checks */ -#if MEMP_MEM_MALLOC -#if !LWIP_DISABLE_MEMP_SANITY_CHECKS -#if LWIP_NETCONN || LWIP_SOCKET -#if !MEMP_NUM_NETCONN && LWIP_SOCKET -#error "lwip_sanity_check: WARNING: MEMP_NUM_NETCONN cannot be 0 when using sockets!" -#endif -#else /* MEMP_MEM_MALLOC */ -#if MEMP_NUM_NETCONN > (MEMP_NUM_TCP_PCB+MEMP_NUM_TCP_PCB_LISTEN+MEMP_NUM_UDP_PCB+MEMP_NUM_RAW_PCB) -#error "lwip_sanity_check: WARNING: MEMP_NUM_NETCONN should be less than the sum of MEMP_NUM_{TCP,RAW,UDP}_PCB+MEMP_NUM_TCP_PCB_LISTEN. If you know what you are doing, define LWIP_DISABLE_MEMP_SANITY_CHECKS to 1 to disable this error." -#endif -#endif /* LWIP_NETCONN || LWIP_SOCKET */ -#endif /* !LWIP_DISABLE_MEMP_SANITY_CHECKS */ -#if MEM_USE_POOLS -#error "MEMP_MEM_MALLOC and MEM_USE_POOLS cannot be enabled at the same time" -#endif -#ifdef LWIP_HOOK_MEMP_AVAILABLE -#error "LWIP_HOOK_MEMP_AVAILABLE doesn't make sense with MEMP_MEM_MALLOC" -#endif -#endif /* MEMP_MEM_MALLOC */ - -/* TCP sanity checks */ -#if !LWIP_DISABLE_TCP_SANITY_CHECKS -#if LWIP_TCP -#if !MEMP_MEM_MALLOC && (MEMP_NUM_TCP_SEG < TCP_SND_QUEUELEN) -#error "lwip_sanity_check: WARNING: MEMP_NUM_TCP_SEG should be at least as big as TCP_SND_QUEUELEN. If you know what you are doing, define LWIP_DISABLE_TCP_SANITY_CHECKS to 1 to disable this error." -#endif -#if TCP_SND_BUF < (2 * TCP_MSS) -#error "lwip_sanity_check: WARNING: TCP_SND_BUF must be at least as much as (2 * TCP_MSS) for things to work smoothly. If you know what you are doing, define LWIP_DISABLE_TCP_SANITY_CHECKS to 1 to disable this error." -#endif -#if TCP_SND_QUEUELEN < (2 * (TCP_SND_BUF / TCP_MSS)) -#error "lwip_sanity_check: WARNING: TCP_SND_QUEUELEN must be at least as much as (2 * TCP_SND_BUF/TCP_MSS) for things to work. If you know what you are doing, define LWIP_DISABLE_TCP_SANITY_CHECKS to 1 to disable this error." -#endif -#if TCP_SNDLOWAT >= TCP_SND_BUF -#error "lwip_sanity_check: WARNING: TCP_SNDLOWAT must be less than TCP_SND_BUF. If you know what you are doing, define LWIP_DISABLE_TCP_SANITY_CHECKS to 1 to disable this error." -#endif -#if TCP_SNDLOWAT >= (0xFFFF - (4 * TCP_MSS)) -#error "lwip_sanity_check: WARNING: TCP_SNDLOWAT must at least be 4*MSS below u16_t overflow!" -#endif -#if TCP_SNDQUEUELOWAT >= TCP_SND_QUEUELEN -#error "lwip_sanity_check: WARNING: TCP_SNDQUEUELOWAT must be less than TCP_SND_QUEUELEN. If you know what you are doing, define LWIP_DISABLE_TCP_SANITY_CHECKS to 1 to disable this error." -#endif -#if !MEMP_MEM_MALLOC && PBUF_POOL_SIZE && (PBUF_POOL_BUFSIZE <= (PBUF_LINK_ENCAPSULATION_HLEN + PBUF_LINK_HLEN + PBUF_IP_HLEN + PBUF_TRANSPORT_HLEN)) -#error "lwip_sanity_check: WARNING: PBUF_POOL_BUFSIZE does not provide enough space for protocol headers. If you know what you are doing, define LWIP_DISABLE_TCP_SANITY_CHECKS to 1 to disable this error." -#endif -#if !MEMP_MEM_MALLOC && PBUF_POOL_SIZE && (TCP_WND > (PBUF_POOL_SIZE * (PBUF_POOL_BUFSIZE - (PBUF_LINK_ENCAPSULATION_HLEN + PBUF_LINK_HLEN + PBUF_IP_HLEN + PBUF_TRANSPORT_HLEN)))) -#error "lwip_sanity_check: WARNING: TCP_WND is larger than space provided by PBUF_POOL_SIZE * (PBUF_POOL_BUFSIZE - protocol headers). If you know what you are doing, define LWIP_DISABLE_TCP_SANITY_CHECKS to 1 to disable this error." -#endif -#if TCP_WND < TCP_MSS -#error "lwip_sanity_check: WARNING: TCP_WND is smaller than MSS. If you know what you are doing, define LWIP_DISABLE_TCP_SANITY_CHECKS to 1 to disable this error." -#endif -#endif /* LWIP_TCP */ -#endif /* !LWIP_DISABLE_TCP_SANITY_CHECKS */ - -/** - * @ingroup lwip_nosys - * Initialize all modules. - * Use this in NO_SYS mode. Use tcpip_init() otherwise. - */ -void -lwip_init(void) -{ -#ifndef LWIP_SKIP_CONST_CHECK - int a = 0; - LWIP_UNUSED_ARG(a); - LWIP_ASSERT("LWIP_CONST_CAST not implemented correctly. Check your lwIP port.", LWIP_CONST_CAST(void *, &a) == &a); -#endif -#ifndef LWIP_SKIP_PACKING_CHECK - LWIP_ASSERT("Struct packing not implemented correctly. Check your lwIP port.", sizeof(struct packed_struct_test) == PACKED_STRUCT_TEST_EXPECTED_SIZE); -#endif - - /* Modules initialization */ - stats_init(); -#if !NO_SYS - sys_init(); -#endif /* !NO_SYS */ - mem_init(); - memp_init(); - pbuf_init(); - netif_init(); -#if LWIP_IPV4 - ip_init(); -#if LWIP_ARP - etharp_init(); -#endif /* LWIP_ARP */ -#endif /* LWIP_IPV4 */ -#if LWIP_RAW - raw_init(); -#endif /* LWIP_RAW */ -#if LWIP_UDP - udp_init(); -#endif /* LWIP_UDP */ -#if LWIP_TCP - tcp_init(); -#endif /* LWIP_TCP */ -#if LWIP_IGMP - igmp_init(); -#endif /* LWIP_IGMP */ -#if LWIP_DNS - dns_init(); -#endif /* LWIP_DNS */ -#if PPP_SUPPORT - ppp_init(); -#endif - -#if LWIP_TIMERS - sys_timeouts_init(); -#endif /* LWIP_TIMERS */ -} diff --git a/Middlewares/Third_Party/LwIP/src/core/ip.c b/Middlewares/Third_Party/LwIP/src/core/ip.c deleted file mode 100644 index 18514cf..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/ip.c +++ /dev/null @@ -1,167 +0,0 @@ -/** - * @file - * Common IPv4 and IPv6 code - * - * @defgroup ip IP - * @ingroup callbackstyle_api - * - * @defgroup ip4 IPv4 - * @ingroup ip - * - * @defgroup ip6 IPv6 - * @ingroup ip - * - * @defgroup ipaddr IP address handling - * @ingroup infrastructure - * - * @defgroup ip4addr IPv4 only - * @ingroup ipaddr - * - * @defgroup ip6addr IPv6 only - * @ingroup ipaddr - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -#include "lwip/opt.h" - -#if LWIP_IPV4 || LWIP_IPV6 - -#include "lwip/ip_addr.h" -#include "lwip/ip.h" - -/** Global data for both IPv4 and IPv6 */ -struct ip_globals ip_data; - -#if LWIP_IPV4 && LWIP_IPV6 - -const ip_addr_t ip_addr_any_type = IPADDR_ANY_TYPE_INIT; - -/** - * @ingroup ipaddr - * Convert numeric IP address (both versions) into ASCII representation. - * returns ptr to static buffer; not reentrant! - * - * @param addr ip address in network order to convert - * @return pointer to a global static (!) buffer that holds the ASCII - * representation of addr - */ -char *ipaddr_ntoa(const ip_addr_t *addr) -{ - if (addr == NULL) { - return NULL; - } - if (IP_IS_V6(addr)) { - return ip6addr_ntoa(ip_2_ip6(addr)); - } else { - return ip4addr_ntoa(ip_2_ip4(addr)); - } -} - -/** - * @ingroup ipaddr - * Same as ipaddr_ntoa, but reentrant since a user-supplied buffer is used. - * - * @param addr ip address in network order to convert - * @param buf target buffer where the string is stored - * @param buflen length of buf - * @return either pointer to buf which now holds the ASCII - * representation of addr or NULL if buf was too small - */ -char *ipaddr_ntoa_r(const ip_addr_t *addr, char *buf, int buflen) -{ - if (addr == NULL) { - return NULL; - } - if (IP_IS_V6(addr)) { - return ip6addr_ntoa_r(ip_2_ip6(addr), buf, buflen); - } else { - return ip4addr_ntoa_r(ip_2_ip4(addr), buf, buflen); - } -} - -/** - * @ingroup ipaddr - * Convert IP address string (both versions) to numeric. - * The version is auto-detected from the string. - * - * @param cp IP address string to convert - * @param addr conversion result is stored here - * @return 1 on success, 0 on error - */ -int -ipaddr_aton(const char *cp, ip_addr_t *addr) -{ - if (cp != NULL) { - const char *c; - for (c = cp; *c != 0; c++) { - if (*c == ':') { - /* contains a colon: IPv6 address */ - if (addr) { - IP_SET_TYPE_VAL(*addr, IPADDR_TYPE_V6); - } - return ip6addr_aton(cp, ip_2_ip6(addr)); - } else if (*c == '.') { - /* contains a dot: IPv4 address */ - break; - } - } - /* call ip4addr_aton as fallback or if IPv4 was found */ - if (addr) { - IP_SET_TYPE_VAL(*addr, IPADDR_TYPE_V4); - } - return ip4addr_aton(cp, ip_2_ip4(addr)); - } - return 0; -} - -/** - * @ingroup lwip_nosys - * If both IP versions are enabled, this function can dispatch packets to the correct one. - * Don't call directly, pass to netif_add() and call netif->input(). - */ -err_t -ip_input(struct pbuf *p, struct netif *inp) -{ - if (p != NULL) { - if (IP_HDR_GET_VERSION(p->payload) == 6) { - return ip6_input(p, inp); - } - return ip4_input(p, inp); - } - return ERR_VAL; -} - -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - -#endif /* LWIP_IPV4 || LWIP_IPV6 */ diff --git a/Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.c b/Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.c deleted file mode 100644 index 9f7139b..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/ipv4/autoip.c +++ /dev/null @@ -1,527 +0,0 @@ -/** - * @file - * AutoIP Automatic LinkLocal IP Configuration - * - * This is a AutoIP implementation for the lwIP TCP/IP stack. It aims to conform - * with RFC 3927. - * - * @defgroup autoip AUTOIP - * @ingroup ip4 - * AUTOIP related functions - * USAGE: - * - * define @ref LWIP_AUTOIP 1 in your lwipopts.h - * Options: - * AUTOIP_TMR_INTERVAL msecs, - * I recommend a value of 100. The value must divide 1000 with a remainder almost 0. - * Possible values are 1000, 500, 333, 250, 200, 166, 142, 125, 111, 100 .... - * - * Without DHCP: - * - Call autoip_start() after netif_add(). - * - * With DHCP: - * - define @ref LWIP_DHCP_AUTOIP_COOP 1 in your lwipopts.h. - * - Configure your DHCP Client. - * - * @see netifapi_autoip - */ - -/* - * - * Copyright (c) 2007 Dominik Spies - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * Author: Dominik Spies - */ - -#include "lwip/opt.h" - -#if LWIP_IPV4 && LWIP_AUTOIP /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/mem.h" -/* #include "lwip/udp.h" */ -#include "lwip/ip_addr.h" -#include "lwip/netif.h" -#include "lwip/autoip.h" -#include "lwip/etharp.h" -#include "lwip/prot/autoip.h" - -#include - -/** Pseudo random macro based on netif informations. - * You could use "rand()" from the C Library if you define LWIP_AUTOIP_RAND in lwipopts.h */ -#ifndef LWIP_AUTOIP_RAND -#define LWIP_AUTOIP_RAND(netif) ( (((u32_t)((netif->hwaddr[5]) & 0xff) << 24) | \ - ((u32_t)((netif->hwaddr[3]) & 0xff) << 16) | \ - ((u32_t)((netif->hwaddr[2]) & 0xff) << 8) | \ - ((u32_t)((netif->hwaddr[4]) & 0xff))) + \ - (netif_autoip_data(netif)? netif_autoip_data(netif)->tried_llipaddr : 0)) -#endif /* LWIP_AUTOIP_RAND */ - -/** - * Macro that generates the initial IP address to be tried by AUTOIP. - * If you want to override this, define it to something else in lwipopts.h. - */ -#ifndef LWIP_AUTOIP_CREATE_SEED_ADDR -#define LWIP_AUTOIP_CREATE_SEED_ADDR(netif) \ - lwip_htonl(AUTOIP_RANGE_START + ((u32_t)(((u8_t)(netif->hwaddr[4])) | \ - ((u32_t)((u8_t)(netif->hwaddr[5]))) << 8))) -#endif /* LWIP_AUTOIP_CREATE_SEED_ADDR */ - -/* static functions */ -static err_t autoip_arp_announce(struct netif *netif); -static void autoip_start_probing(struct netif *netif); - -/** - * @ingroup autoip - * Set a statically allocated struct autoip to work with. - * Using this prevents autoip_start to allocate it using mem_malloc. - * - * @param netif the netif for which to set the struct autoip - * @param autoip (uninitialised) autoip struct allocated by the application - */ -void -autoip_set_struct(struct netif *netif, struct autoip *autoip) -{ - LWIP_ASSERT_CORE_LOCKED(); - LWIP_ASSERT("netif != NULL", netif != NULL); - LWIP_ASSERT("autoip != NULL", autoip != NULL); - LWIP_ASSERT("netif already has a struct autoip set", - netif_autoip_data(netif) == NULL); - - /* clear data structure */ - memset(autoip, 0, sizeof(struct autoip)); - /* autoip->state = AUTOIP_STATE_OFF; */ - netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_AUTOIP, autoip); -} - -/** Restart AutoIP client and check the next address (conflict detected) - * - * @param netif The netif under AutoIP control - */ -static void -autoip_restart(struct netif *netif) -{ - struct autoip *autoip = netif_autoip_data(netif); - autoip->tried_llipaddr++; - autoip_start(netif); -} - -/** - * Handle a IP address conflict after an ARP conflict detection - */ -static void -autoip_handle_arp_conflict(struct netif *netif) -{ - struct autoip *autoip = netif_autoip_data(netif); - - /* RFC3927, 2.5 "Conflict Detection and Defense" allows two options where - a) means retreat on the first conflict and - b) allows to keep an already configured address when having only one - conflict in 10 seconds - We use option b) since it helps to improve the chance that one of the two - conflicting hosts may be able to retain its address. */ - - if (autoip->lastconflict > 0) { - /* retreat, there was a conflicting ARP in the last DEFEND_INTERVAL seconds */ - LWIP_DEBUGF(AUTOIP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, - ("autoip_handle_arp_conflict(): we are defending, but in DEFEND_INTERVAL, retreating\n")); - - /* Active TCP sessions are aborted when removing the ip addresss */ - autoip_restart(netif); - } else { - LWIP_DEBUGF(AUTOIP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, - ("autoip_handle_arp_conflict(): we are defend, send ARP Announce\n")); - autoip_arp_announce(netif); - autoip->lastconflict = DEFEND_INTERVAL * AUTOIP_TICKS_PER_SECOND; - } -} - -/** - * Create an IP-Address out of range 169.254.1.0 to 169.254.254.255 - * - * @param netif network interface on which create the IP-Address - * @param ipaddr ip address to initialize - */ -static void -autoip_create_addr(struct netif *netif, ip4_addr_t *ipaddr) -{ - struct autoip *autoip = netif_autoip_data(netif); - - /* Here we create an IP-Address out of range 169.254.1.0 to 169.254.254.255 - * compliant to RFC 3927 Section 2.1 - * We have 254 * 256 possibilities */ - - u32_t addr = lwip_ntohl(LWIP_AUTOIP_CREATE_SEED_ADDR(netif)); - addr += autoip->tried_llipaddr; - addr = AUTOIP_NET | (addr & 0xffff); - /* Now, 169.254.0.0 <= addr <= 169.254.255.255 */ - - if (addr < AUTOIP_RANGE_START) { - addr += AUTOIP_RANGE_END - AUTOIP_RANGE_START + 1; - } - if (addr > AUTOIP_RANGE_END) { - addr -= AUTOIP_RANGE_END - AUTOIP_RANGE_START + 1; - } - LWIP_ASSERT("AUTOIP address not in range", (addr >= AUTOIP_RANGE_START) && - (addr <= AUTOIP_RANGE_END)); - ip4_addr_set_u32(ipaddr, lwip_htonl(addr)); - - LWIP_DEBUGF(AUTOIP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, - ("autoip_create_addr(): tried_llipaddr=%"U16_F", %"U16_F".%"U16_F".%"U16_F".%"U16_F"\n", - (u16_t)(autoip->tried_llipaddr), ip4_addr1_16(ipaddr), ip4_addr2_16(ipaddr), - ip4_addr3_16(ipaddr), ip4_addr4_16(ipaddr))); -} - -/** - * Sends an ARP probe from a network interface - * - * @param netif network interface used to send the probe - */ -static err_t -autoip_arp_probe(struct netif *netif) -{ - struct autoip *autoip = netif_autoip_data(netif); - /* this works because netif->ip_addr is ANY */ - return etharp_request(netif, &autoip->llipaddr); -} - -/** - * Sends an ARP announce from a network interface - * - * @param netif network interface used to send the announce - */ -static err_t -autoip_arp_announce(struct netif *netif) -{ - return etharp_gratuitous(netif); -} - -/** - * Configure interface for use with current LL IP-Address - * - * @param netif network interface to configure with current LL IP-Address - */ -static err_t -autoip_bind(struct netif *netif) -{ - struct autoip *autoip = netif_autoip_data(netif); - ip4_addr_t sn_mask, gw_addr; - - LWIP_DEBUGF(AUTOIP_DEBUG | LWIP_DBG_TRACE, - ("autoip_bind(netif=%p) %c%c%"U16_F" %"U16_F".%"U16_F".%"U16_F".%"U16_F"\n", - (void *)netif, netif->name[0], netif->name[1], (u16_t)netif->num, - ip4_addr1_16(&autoip->llipaddr), ip4_addr2_16(&autoip->llipaddr), - ip4_addr3_16(&autoip->llipaddr), ip4_addr4_16(&autoip->llipaddr))); - - IP4_ADDR(&sn_mask, 255, 255, 0, 0); - IP4_ADDR(&gw_addr, 0, 0, 0, 0); - - netif_set_addr(netif, &autoip->llipaddr, &sn_mask, &gw_addr); - /* interface is used by routing now that an address is set */ - - return ERR_OK; -} - -/** - * @ingroup autoip - * Start AutoIP client - * - * @param netif network interface on which start the AutoIP client - */ -err_t -autoip_start(struct netif *netif) -{ - struct autoip *autoip = netif_autoip_data(netif); - err_t result = ERR_OK; - - LWIP_ASSERT_CORE_LOCKED(); - LWIP_ERROR("netif is not up, old style port?", netif_is_up(netif), return ERR_ARG;); - - /* Set IP-Address, Netmask and Gateway to 0 to make sure that - * ARP Packets are formed correctly - */ - netif_set_addr(netif, IP4_ADDR_ANY4, IP4_ADDR_ANY4, IP4_ADDR_ANY4); - - LWIP_DEBUGF(AUTOIP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, - ("autoip_start(netif=%p) %c%c%"U16_F"\n", (void *)netif, netif->name[0], - netif->name[1], (u16_t)netif->num)); - if (autoip == NULL) { - /* no AutoIP client attached yet? */ - LWIP_DEBUGF(AUTOIP_DEBUG | LWIP_DBG_TRACE, - ("autoip_start(): starting new AUTOIP client\n")); - autoip = (struct autoip *)mem_calloc(1, sizeof(struct autoip)); - if (autoip == NULL) { - LWIP_DEBUGF(AUTOIP_DEBUG | LWIP_DBG_TRACE, - ("autoip_start(): could not allocate autoip\n")); - return ERR_MEM; - } - /* store this AutoIP client in the netif */ - netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_AUTOIP, autoip); - LWIP_DEBUGF(AUTOIP_DEBUG | LWIP_DBG_TRACE, ("autoip_start(): allocated autoip")); - } else { - autoip->state = AUTOIP_STATE_OFF; - autoip->ttw = 0; - autoip->sent_num = 0; - ip4_addr_set_zero(&autoip->llipaddr); - autoip->lastconflict = 0; - } - - autoip_create_addr(netif, &(autoip->llipaddr)); - autoip_start_probing(netif); - - return result; -} - -static void -autoip_start_probing(struct netif *netif) -{ - struct autoip *autoip = netif_autoip_data(netif); - - autoip->state = AUTOIP_STATE_PROBING; - autoip->sent_num = 0; - LWIP_DEBUGF(AUTOIP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, - ("autoip_start_probing(): changing state to PROBING: %"U16_F".%"U16_F".%"U16_F".%"U16_F"\n", - ip4_addr1_16(&autoip->llipaddr), ip4_addr2_16(&autoip->llipaddr), - ip4_addr3_16(&autoip->llipaddr), ip4_addr4_16(&autoip->llipaddr))); - - /* time to wait to first probe, this is randomly - * chosen out of 0 to PROBE_WAIT seconds. - * compliant to RFC 3927 Section 2.2.1 - */ - autoip->ttw = (u16_t)(LWIP_AUTOIP_RAND(netif) % (PROBE_WAIT * AUTOIP_TICKS_PER_SECOND)); - - /* - * if we tried more then MAX_CONFLICTS we must limit our rate for - * acquiring and probing address - * compliant to RFC 3927 Section 2.2.1 - */ - if (autoip->tried_llipaddr > MAX_CONFLICTS) { - autoip->ttw = RATE_LIMIT_INTERVAL * AUTOIP_TICKS_PER_SECOND; - } -} - -/** - * Handle a possible change in the network configuration. - * - * If there is an AutoIP address configured, take the interface down - * and begin probing with the same address. - */ -void -autoip_network_changed(struct netif *netif) -{ - struct autoip *autoip = netif_autoip_data(netif); - - if (autoip && (autoip->state != AUTOIP_STATE_OFF)) { - autoip_start_probing(netif); - } -} - -/** - * @ingroup autoip - * Stop AutoIP client - * - * @param netif network interface on which stop the AutoIP client - */ -err_t -autoip_stop(struct netif *netif) -{ - struct autoip *autoip = netif_autoip_data(netif); - - LWIP_ASSERT_CORE_LOCKED(); - if (autoip != NULL) { - autoip->state = AUTOIP_STATE_OFF; - if (ip4_addr_islinklocal(netif_ip4_addr(netif))) { - netif_set_addr(netif, IP4_ADDR_ANY4, IP4_ADDR_ANY4, IP4_ADDR_ANY4); - } - } - return ERR_OK; -} - -/** - * Has to be called in loop every AUTOIP_TMR_INTERVAL milliseconds - */ -void -autoip_tmr(void) -{ - struct netif *netif; - /* loop through netif's */ - NETIF_FOREACH(netif) { - struct autoip *autoip = netif_autoip_data(netif); - /* only act on AutoIP configured interfaces */ - if (autoip != NULL) { - if (autoip->lastconflict > 0) { - autoip->lastconflict--; - } - - LWIP_DEBUGF(AUTOIP_DEBUG | LWIP_DBG_TRACE, - ("autoip_tmr() AutoIP-State: %"U16_F", ttw=%"U16_F"\n", - (u16_t)(autoip->state), autoip->ttw)); - - if (autoip->ttw > 0) { - autoip->ttw--; - } - - switch (autoip->state) { - case AUTOIP_STATE_PROBING: - if (autoip->ttw == 0) { - if (autoip->sent_num >= PROBE_NUM) { - /* Switch to ANNOUNCING: now we can bind to an IP address and use it */ - autoip->state = AUTOIP_STATE_ANNOUNCING; - autoip_bind(netif); - /* autoip_bind() calls netif_set_addr(): this triggers a gratuitous ARP - which counts as an announcement */ - autoip->sent_num = 1; - autoip->ttw = ANNOUNCE_WAIT * AUTOIP_TICKS_PER_SECOND; - LWIP_DEBUGF(AUTOIP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, - ("autoip_tmr(): changing state to ANNOUNCING: %"U16_F".%"U16_F".%"U16_F".%"U16_F"\n", - ip4_addr1_16(&autoip->llipaddr), ip4_addr2_16(&autoip->llipaddr), - ip4_addr3_16(&autoip->llipaddr), ip4_addr4_16(&autoip->llipaddr))); - } else { - autoip_arp_probe(netif); - LWIP_DEBUGF(AUTOIP_DEBUG | LWIP_DBG_TRACE, ("autoip_tmr() PROBING Sent Probe\n")); - autoip->sent_num++; - if (autoip->sent_num == PROBE_NUM) { - /* calculate time to wait to for announce */ - autoip->ttw = ANNOUNCE_WAIT * AUTOIP_TICKS_PER_SECOND; - } else { - /* calculate time to wait to next probe */ - autoip->ttw = (u16_t)((LWIP_AUTOIP_RAND(netif) % - ((PROBE_MAX - PROBE_MIN) * AUTOIP_TICKS_PER_SECOND) ) + - PROBE_MIN * AUTOIP_TICKS_PER_SECOND); - } - } - } - break; - - case AUTOIP_STATE_ANNOUNCING: - if (autoip->ttw == 0) { - autoip_arp_announce(netif); - LWIP_DEBUGF(AUTOIP_DEBUG | LWIP_DBG_TRACE, ("autoip_tmr() ANNOUNCING Sent Announce\n")); - autoip->ttw = ANNOUNCE_INTERVAL * AUTOIP_TICKS_PER_SECOND; - autoip->sent_num++; - - if (autoip->sent_num >= ANNOUNCE_NUM) { - autoip->state = AUTOIP_STATE_BOUND; - autoip->sent_num = 0; - autoip->ttw = 0; - LWIP_DEBUGF(AUTOIP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, - ("autoip_tmr(): changing state to BOUND: %"U16_F".%"U16_F".%"U16_F".%"U16_F"\n", - ip4_addr1_16(&autoip->llipaddr), ip4_addr2_16(&autoip->llipaddr), - ip4_addr3_16(&autoip->llipaddr), ip4_addr4_16(&autoip->llipaddr))); - } - } - break; - - default: - /* nothing to do in other states */ - break; - } - } - } -} - -/** - * Handles every incoming ARP Packet, called by etharp_input(). - * - * @param netif network interface to use for autoip processing - * @param hdr Incoming ARP packet - */ -void -autoip_arp_reply(struct netif *netif, struct etharp_hdr *hdr) -{ - struct autoip *autoip = netif_autoip_data(netif); - - LWIP_DEBUGF(AUTOIP_DEBUG | LWIP_DBG_TRACE, ("autoip_arp_reply()\n")); - if ((autoip != NULL) && (autoip->state != AUTOIP_STATE_OFF)) { - /* when ip.src == llipaddr && hw.src != netif->hwaddr - * - * when probing ip.dst == llipaddr && hw.src != netif->hwaddr - * we have a conflict and must solve it - */ - ip4_addr_t sipaddr, dipaddr; - struct eth_addr netifaddr; - SMEMCPY(netifaddr.addr, netif->hwaddr, ETH_HWADDR_LEN); - - /* 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); - IPADDR_WORDALIGNED_COPY_TO_IP4_ADDR_T(&dipaddr, &hdr->dipaddr); - - if (autoip->state == AUTOIP_STATE_PROBING) { - /* RFC 3927 Section 2.2.1: - * from beginning to after ANNOUNCE_WAIT - * seconds we have a conflict if - * ip.src == llipaddr OR - * ip.dst == llipaddr && hw.src != own hwaddr - */ - if ((ip4_addr_cmp(&sipaddr, &autoip->llipaddr)) || - (ip4_addr_isany_val(sipaddr) && - ip4_addr_cmp(&dipaddr, &autoip->llipaddr) && - !eth_addr_cmp(&netifaddr, &hdr->shwaddr))) { - LWIP_DEBUGF(AUTOIP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE | LWIP_DBG_LEVEL_WARNING, - ("autoip_arp_reply(): Probe Conflict detected\n")); - autoip_restart(netif); - } - } else { - /* RFC 3927 Section 2.5: - * in any state we have a conflict if - * ip.src == llipaddr && hw.src != own hwaddr - */ - if (ip4_addr_cmp(&sipaddr, &autoip->llipaddr) && - !eth_addr_cmp(&netifaddr, &hdr->shwaddr)) { - LWIP_DEBUGF(AUTOIP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE | LWIP_DBG_LEVEL_WARNING, - ("autoip_arp_reply(): Conflicting ARP-Packet detected\n")); - autoip_handle_arp_conflict(netif); - } - } - } -} - -/** check if AutoIP supplied netif->ip_addr - * - * @param netif the netif to check - * @return 1 if AutoIP supplied netif->ip_addr (state BOUND or ANNOUNCING), - * 0 otherwise - */ -u8_t -autoip_supplied_address(const struct netif *netif) -{ - if ((netif != NULL) && (netif_autoip_data(netif) != NULL)) { - struct autoip *autoip = netif_autoip_data(netif); - return (autoip->state == AUTOIP_STATE_BOUND) || (autoip->state == AUTOIP_STATE_ANNOUNCING); - } - return 0; -} - -u8_t -autoip_accept_packet(struct netif *netif, const ip4_addr_t *addr) -{ - struct autoip *autoip = netif_autoip_data(netif); - return (autoip != NULL) && ip4_addr_cmp(addr, &(autoip->llipaddr)); -} - -#endif /* LWIP_IPV4 && LWIP_AUTOIP */ diff --git a/Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.c b/Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.c deleted file mode 100644 index 534574f..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.c +++ /dev/null @@ -1,1990 +0,0 @@ -/** - * @file - * Dynamic Host Configuration Protocol client - * - * @defgroup dhcp4 DHCPv4 - * @ingroup ip4 - * DHCP (IPv4) related functions - * This is a DHCP client for the lwIP TCP/IP stack. It aims to conform - * with RFC 2131 and RFC 2132. - * - * @todo: - * - Support for interfaces other than Ethernet (SLIP, PPP, ...) - * - * Options: - * @ref DHCP_COARSE_TIMER_SECS (recommended 60 which is a minute) - * @ref DHCP_FINE_TIMER_MSECS (recommended 500 which equals TCP coarse timer) - * - * dhcp_start() starts a DHCP client instance which - * configures the interface by obtaining an IP address lease and maintaining it. - * - * Use dhcp_release() to end the lease and use dhcp_stop() - * to remove the DHCP client. - * - * @see LWIP_HOOK_DHCP_APPEND_OPTIONS - * @see LWIP_HOOK_DHCP_PARSE_OPTION - * - * @see netifapi_dhcp4 - */ - -/* - * Copyright (c) 2001-2004 Leon Woestenberg - * Copyright (c) 2001-2004 Axon Digital Design B.V., The Netherlands. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * The Swedish Institute of Computer Science and Adam Dunkels - * are specifically granted permission to redistribute this - * source code. - * - * Author: Leon Woestenberg - * - */ - -#include "lwip/opt.h" - -#if LWIP_IPV4 && LWIP_DHCP /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/stats.h" -#include "lwip/mem.h" -#include "lwip/udp.h" -#include "lwip/ip_addr.h" -#include "lwip/netif.h" -#include "lwip/def.h" -#include "lwip/dhcp.h" -#include "lwip/autoip.h" -#include "lwip/dns.h" -#include "lwip/etharp.h" -#include "lwip/prot/dhcp.h" -#include "lwip/prot/iana.h" - -#include - -#ifdef LWIP_HOOK_FILENAME -#include LWIP_HOOK_FILENAME -#endif -#ifndef LWIP_HOOK_DHCP_APPEND_OPTIONS -#define LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, state, msg, msg_type, options_len_ptr) -#endif -#ifndef LWIP_HOOK_DHCP_PARSE_OPTION -#define LWIP_HOOK_DHCP_PARSE_OPTION(netif, dhcp, state, msg, msg_type, option, len, pbuf, offset) do { LWIP_UNUSED_ARG(msg); } while(0) -#endif - -/** DHCP_CREATE_RAND_XID: if this is set to 1, the xid is created using - * LWIP_RAND() (this overrides DHCP_GLOBAL_XID) - */ -#ifndef DHCP_CREATE_RAND_XID -#define DHCP_CREATE_RAND_XID 1 -#endif - -/** Default for DHCP_GLOBAL_XID is 0xABCD0000 - * This can be changed by defining DHCP_GLOBAL_XID and DHCP_GLOBAL_XID_HEADER, e.g. - * \#define DHCP_GLOBAL_XID_HEADER "stdlib.h" - * \#define DHCP_GLOBAL_XID rand() - */ -#ifdef DHCP_GLOBAL_XID_HEADER -#include DHCP_GLOBAL_XID_HEADER /* include optional starting XID generation prototypes */ -#endif - -/** DHCP_OPTION_MAX_MSG_SIZE is set to the MTU - * MTU is checked to be big enough in dhcp_start */ -#define DHCP_MAX_MSG_LEN(netif) (netif->mtu) -#define DHCP_MAX_MSG_LEN_MIN_REQUIRED 576 -/** Minimum length for reply before packet is parsed */ -#define DHCP_MIN_REPLY_LEN 44 - -#define REBOOT_TRIES 2 - -#if LWIP_DNS && LWIP_DHCP_MAX_DNS_SERVERS -#if DNS_MAX_SERVERS > LWIP_DHCP_MAX_DNS_SERVERS -#define LWIP_DHCP_PROVIDE_DNS_SERVERS LWIP_DHCP_MAX_DNS_SERVERS -#else -#define LWIP_DHCP_PROVIDE_DNS_SERVERS DNS_MAX_SERVERS -#endif -#else -#define LWIP_DHCP_PROVIDE_DNS_SERVERS 0 -#endif - -/** Option handling: options are parsed in dhcp_parse_reply - * and saved in an array where other functions can load them from. - * This might be moved into the struct dhcp (not necessarily since - * lwIP is single-threaded and the array is only used while in recv - * callback). */ -enum dhcp_option_idx { - DHCP_OPTION_IDX_OVERLOAD = 0, - DHCP_OPTION_IDX_MSG_TYPE, - DHCP_OPTION_IDX_SERVER_ID, - DHCP_OPTION_IDX_LEASE_TIME, - DHCP_OPTION_IDX_T1, - DHCP_OPTION_IDX_T2, - DHCP_OPTION_IDX_SUBNET_MASK, - DHCP_OPTION_IDX_ROUTER, -#if LWIP_DHCP_PROVIDE_DNS_SERVERS - DHCP_OPTION_IDX_DNS_SERVER, - DHCP_OPTION_IDX_DNS_SERVER_LAST = DHCP_OPTION_IDX_DNS_SERVER + LWIP_DHCP_PROVIDE_DNS_SERVERS - 1, -#endif /* LWIP_DHCP_PROVIDE_DNS_SERVERS */ -#if LWIP_DHCP_GET_NTP_SRV - DHCP_OPTION_IDX_NTP_SERVER, - DHCP_OPTION_IDX_NTP_SERVER_LAST = DHCP_OPTION_IDX_NTP_SERVER + LWIP_DHCP_MAX_NTP_SERVERS - 1, -#endif /* LWIP_DHCP_GET_NTP_SRV */ - DHCP_OPTION_IDX_MAX -}; - -/** Holds the decoded option values, only valid while in dhcp_recv. - @todo: move this into struct dhcp? */ -u32_t dhcp_rx_options_val[DHCP_OPTION_IDX_MAX]; -/** Holds a flag which option was received and is contained in dhcp_rx_options_val, - only valid while in dhcp_recv. - @todo: move this into struct dhcp? */ -u8_t dhcp_rx_options_given[DHCP_OPTION_IDX_MAX]; - -static u8_t dhcp_discover_request_options[] = { - DHCP_OPTION_SUBNET_MASK, - DHCP_OPTION_ROUTER, - DHCP_OPTION_BROADCAST -#if LWIP_DHCP_PROVIDE_DNS_SERVERS - , DHCP_OPTION_DNS_SERVER -#endif /* LWIP_DHCP_PROVIDE_DNS_SERVERS */ -#if LWIP_DHCP_GET_NTP_SRV - , DHCP_OPTION_NTP -#endif /* LWIP_DHCP_GET_NTP_SRV */ -}; - -#ifdef DHCP_GLOBAL_XID -static u32_t xid; -static u8_t xid_initialised; -#endif /* DHCP_GLOBAL_XID */ - -#define dhcp_option_given(dhcp, idx) (dhcp_rx_options_given[idx] != 0) -#define dhcp_got_option(dhcp, idx) (dhcp_rx_options_given[idx] = 1) -#define dhcp_clear_option(dhcp, idx) (dhcp_rx_options_given[idx] = 0) -#define dhcp_clear_all_options(dhcp) (memset(dhcp_rx_options_given, 0, sizeof(dhcp_rx_options_given))) -#define dhcp_get_option_value(dhcp, idx) (dhcp_rx_options_val[idx]) -#define dhcp_set_option_value(dhcp, idx, val) (dhcp_rx_options_val[idx] = (val)) - -static struct udp_pcb *dhcp_pcb; -static u8_t dhcp_pcb_refcount; - -/* DHCP client state machine functions */ -static err_t dhcp_discover(struct netif *netif); -static err_t dhcp_select(struct netif *netif); -static void dhcp_bind(struct netif *netif); -#if DHCP_DOES_ARP_CHECK -static err_t dhcp_decline(struct netif *netif); -#endif /* DHCP_DOES_ARP_CHECK */ -static err_t dhcp_rebind(struct netif *netif); -static err_t dhcp_reboot(struct netif *netif); -static void dhcp_set_state(struct dhcp *dhcp, u8_t new_state); - -/* receive, unfold, parse and free incoming messages */ -static void dhcp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port); - -/* set the DHCP timers */ -static void dhcp_timeout(struct netif *netif); -static void dhcp_t1_timeout(struct netif *netif); -static void dhcp_t2_timeout(struct netif *netif); - -/* build outgoing messages */ -/* create a DHCP message, fill in common headers */ -static struct pbuf *dhcp_create_msg(struct netif *netif, struct dhcp *dhcp, u8_t message_type, u16_t *options_out_len); -/* add a DHCP option (type, then length in bytes) */ -static u16_t dhcp_option(u16_t options_out_len, u8_t *options, u8_t option_type, u8_t option_len); -/* add option values */ -static u16_t dhcp_option_byte(u16_t options_out_len, u8_t *options, u8_t value); -static u16_t dhcp_option_short(u16_t options_out_len, u8_t *options, u16_t value); -static u16_t dhcp_option_long(u16_t options_out_len, u8_t *options, u32_t value); -#if LWIP_NETIF_HOSTNAME -static u16_t dhcp_option_hostname(u16_t options_out_len, u8_t *options, struct netif *netif); -#endif /* LWIP_NETIF_HOSTNAME */ -/* always add the DHCP options trailer to end and pad */ -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) -{ - if (dhcp_pcb_refcount == 0) { - LWIP_ASSERT("dhcp_inc_pcb_refcount(): memory leak", dhcp_pcb == NULL); - - /* allocate UDP PCB */ - dhcp_pcb = udp_new(); - - if (dhcp_pcb == NULL) { - return ERR_MEM; - } - - ip_set_option(dhcp_pcb, SOF_BROADCAST); - - /* 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); - udp_connect(dhcp_pcb, IP4_ADDR_ANY, LWIP_IANA_PORT_DHCP_SERVER); - udp_recv(dhcp_pcb, dhcp_recv, NULL); - } - - dhcp_pcb_refcount++; - - return ERR_OK; -} - -/** Free DHCP PCB if the last netif stops using it */ -static void -dhcp_dec_pcb_refcount(void) -{ - LWIP_ASSERT("dhcp_pcb_refcount(): refcount error", (dhcp_pcb_refcount > 0)); - dhcp_pcb_refcount--; - - if (dhcp_pcb_refcount == 0) { - udp_remove(dhcp_pcb); - dhcp_pcb = NULL; - } -} - -/** - * Back-off the DHCP client (because of a received NAK response). - * - * Back-off the DHCP client because of a received NAK. Receiving a - * NAK means the client asked for something non-sensible, for - * example when it tries to renew a lease obtained on another network. - * - * We clear any existing set IP address and restart DHCP negotiation - * afresh (as per RFC2131 3.2.3). - * - * @param netif the netif under DHCP control - */ -static void -dhcp_handle_nak(struct netif *netif) -{ - struct dhcp *dhcp = netif_dhcp_data(netif); - - 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); - /* 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); - /* We can immediately restart discovery */ - dhcp_discover(netif); -} - -#if DHCP_DOES_ARP_CHECK -/** - * Checks if the offered IP address is already in use. - * - * It does so by sending an ARP request for the offered address and - * entering CHECKING state. If no ARP reply is received within a small - * interval, the address is assumed to be free for use by us. - * - * @param netif the netif under DHCP control - */ -static void -dhcp_check(struct netif *netif) -{ - struct dhcp *dhcp = netif_dhcp_data(netif); - 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); - /* 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); - 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) { - dhcp->tries++; - } - msecs = 500; - dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS); - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_check(): set request timeout %"U16_F" msecs\n", msecs)); -} -#endif /* DHCP_DOES_ARP_CHECK */ - -/** - * Remember the configuration offered by a DHCP server. - * - * @param netif the netif under DHCP control - */ -static void -dhcp_handle_offer(struct netif *netif, struct dhcp_msg *msg_in) -{ - struct dhcp *dhcp = netif_dhcp_data(netif); - - 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)) { - dhcp->request_timeout = 0; /* stop timer */ - - ip_addr_set_ip4_u32(&dhcp->server_ip_addr, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_SERVER_ID))); - 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); - 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); - } 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)); - } -} - -/** - * Select a DHCP server offer out of all offers. - * - * Simply select the first offer received. - * - * @param netif the netif under DHCP control - * @return lwIP specific error (see error.h) - */ -static err_t -dhcp_select(struct netif *netif) -{ - struct dhcp *dhcp; - err_t result; - 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;); - dhcp = netif_dhcp_data(netif); - LWIP_ERROR("dhcp_select: dhcp != NULL", (dhcp != NULL), return ERR_VAL;); - - 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); - - /* create and initialize the DHCP message header */ - p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len); - if (p_out != NULL) { - struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload; - options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN); - options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif)); - - /* MUST request the offered IP address */ - options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_REQUESTED_IP, 4); - options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(&dhcp->offered_ip_addr))); - - options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_SERVER_ID, 4); - 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)))); - - options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options)); - for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { - options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]); - } - -#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); - - /* 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); - pbuf_free(p_out); - 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; - } - if (dhcp->tries < 255) { - dhcp->tries++; - } - msecs = (u16_t)((dhcp->tries < 6 ? 1 << dhcp->tries : 60) * 1000); - dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS); - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_select(): set request timeout %"U16_F" msecs\n", msecs)); - return result; -} - -/** - * 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) -{ - struct netif *netif; - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_coarse_tmr()\n")); - /* iterate through all network interfaces */ - NETIF_FOREACH(netif) { - /* only act on DHCP configured interfaces */ - struct dhcp *dhcp = netif_dhcp_data(netif); - if ((dhcp != NULL) && (dhcp->state != DHCP_STATE_OFF)) { - /* compare lease time to expire timeout */ - if (dhcp->t0_timeout && (++dhcp->lease_used == dhcp->t0_timeout)) { - 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); - dhcp_start(netif); - /* timer is active (non zero), and triggers (zeroes) now? */ - } else if (dhcp->t2_rebind_time && (dhcp->t2_rebind_time-- == 1)) { - 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); - /* timer is active (non zero), and triggers (zeroes) now */ - } else if (dhcp->t1_renew_time && (dhcp->t1_renew_time-- == 1)) { - 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); - } - } - } -} - -/** - * DHCP transaction timeout handling (this function must be called every 500ms, - * see @ref DHCP_FINE_TIMER_MSECS). - * - * 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) -{ - struct netif *netif; - /* loop through netif's */ - NETIF_FOREACH(netif) { - struct dhcp *dhcp = netif_dhcp_data(netif); - /* only act on DHCP configured interfaces */ - if (dhcp != NULL) { - /* timer is active (non zero), and is about to trigger now */ - if (dhcp->request_timeout > 1) { - dhcp->request_timeout--; - } else if (dhcp->request_timeout == 1) { - dhcp->request_timeout--; - /* { 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); - } - } - } -} - -/** - * A DHCP negotiation transaction, or ARP request, has timed out. - * - * The timer that was started with the DHCP or ARP request has - * timed out, indicating no response was received in time. - * - * @param netif the netif under DHCP control - */ -static void -dhcp_timeout(struct netif *netif) -{ - struct dhcp *dhcp = netif_dhcp_data(netif); - - 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)) { - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_timeout(): restarting discovery\n")); - dhcp_discover(netif); - /* receiving the requested lease timed out */ - } else if (dhcp->state == DHCP_STATE_REQUESTING) { - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_timeout(): REQUESTING, DHCP request timed out\n")); - if (dhcp->tries <= 5) { - dhcp_select(netif); - } else { - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_timeout(): REQUESTING, releasing, restarting\n")); - dhcp_release_and_stop(netif); - dhcp_start(netif); - } -#if DHCP_DOES_ARP_CHECK - /* received no ARP reply for the offered address (which is good) */ - } else if (dhcp->state == DHCP_STATE_CHECKING) { - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_timeout(): CHECKING, ARP request timed out\n")); - if (dhcp->tries <= 1) { - dhcp_check(netif); - /* no ARP replies on the offered address, - looks like the IP address is indeed free */ - } else { - /* bind the interface to the offered address */ - dhcp_bind(netif); - } -#endif /* DHCP_DOES_ARP_CHECK */ - } else if (dhcp->state == DHCP_STATE_REBOOTING) { - if (dhcp->tries < REBOOT_TRIES) { - dhcp_reboot(netif); - } else { - dhcp_discover(netif); - } - } -} - -/** - * The renewal period has timed out. - * - * @param netif the netif under DHCP control - */ -static void -dhcp_t1_timeout(struct netif *netif) -{ - struct dhcp *dhcp = netif_dhcp_data(netif); - - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_t1_timeout()\n")); - if ((dhcp->state == DHCP_STATE_REQUESTING) || (dhcp->state == DHCP_STATE_BOUND) || - (dhcp->state == DHCP_STATE_RENEWING)) { - /* just retry to renew - note that the rebind timer (t2) will - * 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); - /* Calculate next timeout */ - if (((dhcp->t2_timeout - dhcp->lease_used) / 2) >= ((60 + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS)) { - dhcp->t1_renew_time = (u16_t)((dhcp->t2_timeout - dhcp->lease_used) / 2); - } - } -} - -/** - * The rebind period has timed out. - * - * @param netif the netif under DHCP control - */ -static void -dhcp_t2_timeout(struct netif *netif) -{ - struct dhcp *dhcp = netif_dhcp_data(netif); - - 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) || - (dhcp->state == DHCP_STATE_RENEWING) || (dhcp->state == DHCP_STATE_REBINDING)) { - /* 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); - /* Calculate next timeout */ - if (((dhcp->t0_timeout - dhcp->lease_used) / 2) >= ((60 + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS)) { - dhcp->t2_rebind_time = (u16_t)((dhcp->t0_timeout - dhcp->lease_used) / 2); - } - } -} - -/** - * Handle a DHCP ACK packet - * - * @param netif the netif under DHCP control - */ -static void -dhcp_handle_ack(struct netif *netif, struct dhcp_msg *msg_in) -{ - struct dhcp *dhcp = netif_dhcp_data(netif); - -#if LWIP_DHCP_PROVIDE_DNS_SERVERS || LWIP_DHCP_GET_NTP_SRV - u8_t n; -#endif /* LWIP_DHCP_PROVIDE_DNS_SERVERS || LWIP_DHCP_GET_NTP_SRV */ -#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); - ip4_addr_set_zero(&dhcp->offered_gw_addr); -#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)) { - /* remember offered lease time */ - dhcp->offered_t0_lease = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_LEASE_TIME); - } - /* renewal period given? */ - if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_T1)) { - /* remember given renewal period */ - dhcp->offered_t1_renew = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_T1); - } else { - /* calculate safe periods for renewal */ - dhcp->offered_t1_renew = dhcp->offered_t0_lease / 2; - } - - /* renewal period given? */ - if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_T2)) { - /* remember given rebind period */ - dhcp->offered_t2_rebind = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_T2); - } else { - /* calculate safe periods for rebinding (offered_t0_lease * 0.875 -> 87.5%)*/ - dhcp->offered_t2_rebind = (dhcp->offered_t0_lease * 7U) / 8U; - } - - /* (y)our internet address */ - ip4_addr_copy(dhcp->offered_ip_addr, msg_in->yiaddr); - -#if LWIP_DHCP_BOOTP_FILE - /* copy boot server address, - 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)) { - /* remember given subnet mask */ - ip4_addr_set_u32(&dhcp->offered_sn_mask, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_SUBNET_MASK))); - dhcp->subnet_mask_given = 1; - } else { - dhcp->subnet_mask_given = 0; - } - - /* gateway router */ - if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_ROUTER)) { - ip4_addr_set_u32(&dhcp->offered_gw_addr, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_ROUTER))); - } - -#if LWIP_DHCP_GET_NTP_SRV - /* NTP servers */ - for (n = 0; (n < LWIP_DHCP_MAX_NTP_SERVERS) && dhcp_option_given(dhcp, DHCP_OPTION_IDX_NTP_SERVER + n); n++) { - ip4_addr_set_u32(&ntp_server_addrs[n], lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_NTP_SERVER + n))); - } - dhcp_set_ntp_servers(n, ntp_server_addrs); -#endif /* LWIP_DHCP_GET_NTP_SRV */ - -#if LWIP_DHCP_PROVIDE_DNS_SERVERS - /* DNS servers */ - for (n = 0; (n < LWIP_DHCP_PROVIDE_DNS_SERVERS) && dhcp_option_given(dhcp, DHCP_OPTION_IDX_DNS_SERVER + n); n++) { - 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 */ -} - -/** - * @ingroup dhcp4 - * Set a statically allocated struct dhcp to work with. - * Using this prevents dhcp_start to allocate it using mem_malloc. - * - * @param netif the netif for which to set the struct dhcp - * @param dhcp (uninitialised) dhcp struct allocated by the application - */ -void -dhcp_set_struct(struct netif *netif, struct dhcp *dhcp) -{ - LWIP_ASSERT_CORE_LOCKED(); - LWIP_ASSERT("netif != NULL", netif != NULL); - LWIP_ASSERT("dhcp != NULL", dhcp != NULL); - LWIP_ASSERT("netif already has a struct dhcp set", netif_dhcp_data(netif) == NULL); - - /* clear data structure */ - memset(dhcp, 0, sizeof(struct dhcp)); - /* dhcp_set_state(&dhcp, DHCP_STATE_OFF); */ - netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP, dhcp); -} - -/** - * @ingroup dhcp4 - * Removes a struct dhcp from a netif. - * - * ATTENTION: Only use this when not using dhcp_set_struct() to allocate the - * struct dhcp since the memory is passed back to the heap. - * - * @param netif the netif from which to remove the struct dhcp - */ -void dhcp_cleanup(struct netif *netif) -{ - LWIP_ASSERT_CORE_LOCKED(); - LWIP_ASSERT("netif != NULL", netif != NULL); - - if (netif_dhcp_data(netif) != NULL) { - mem_free(netif_dhcp_data(netif)); - netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP, NULL); - } -} - -/** - * @ingroup dhcp4 - * Start DHCP negotiation for a network interface. - * - * If no DHCP client instance was attached to this interface, - * a new client is created first. If a DHCP client instance - * was already present, it restarts negotiation. - * - * @param netif The lwIP network interface - * @return lwIP error code - * - ERR_OK - No error - * - ERR_MEM - Out of memory - */ -err_t -dhcp_start(struct netif *netif) -{ - struct dhcp *dhcp; - err_t result; - - LWIP_ASSERT_CORE_LOCKED(); - LWIP_ERROR("netif != NULL", (netif != NULL), return ERR_ARG;); - LWIP_ERROR("netif is not up, old style port?", netif_is_up(netif), return ERR_ARG;); - dhcp = netif_dhcp_data(netif); - 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) { - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): Cannot use this netif with DHCP: MTU is too small\n")); - return ERR_MEM; - } - - /* no DHCP client attached yet? */ - if (dhcp == NULL) { - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): mallocing new DHCP client\n")); - dhcp = (struct dhcp *)mem_malloc(sizeof(struct dhcp)); - if (dhcp == NULL) { - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): could not allocate dhcp\n")); - return ERR_MEM; - } - - /* store this dhcp client in the netif */ - netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP, dhcp); - 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) { - dhcp_dec_pcb_refcount(); /* free DHCP PCB if not needed any more */ - } - /* dhcp is cleared below, no need to reset flag*/ - } - - /* clear data structure */ - memset(dhcp, 0, sizeof(struct dhcp)); - /* 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 */ - return ERR_MEM; - } - dhcp->pcb_allocated = 1; - - if (!netif_is_link_up(netif)) { - /* set state INIT and wait for dhcp_network_changed() to call dhcp_discover() */ - dhcp_set_state(dhcp, DHCP_STATE_INIT); - return ERR_OK; - } - - /* (re)start the DHCP negotiation */ - result = dhcp_discover(netif); - if (result != ERR_OK) { - /* free resources allocated above */ - dhcp_release_and_stop(netif); - return ERR_MEM; - } - return result; -} - -/** - * @ingroup dhcp4 - * Inform a DHCP server of our manual configuration. - * - * This informs DHCP servers of our fixed IP address configuration - * by sending an INFORM message. It does not involve DHCP address - * configuration, it is just here to be nice to the network. - * - * @param netif The lwIP network interface - */ -void -dhcp_inform(struct netif *netif) -{ - struct dhcp dhcp; - struct pbuf *p_out; - u16_t options_out_len; - - LWIP_ASSERT_CORE_LOCKED(); - LWIP_ERROR("netif != NULL", (netif != NULL), return;); - - if (dhcp_inc_pcb_refcount() != ERR_OK) { /* ensure DHCP PCB is allocated */ - return; - } - - memset(&dhcp, 0, sizeof(struct dhcp)); - dhcp_set_state(&dhcp, DHCP_STATE_INFORMING); - - /* create and initialize the DHCP message header */ - p_out = dhcp_create_msg(netif, &dhcp, DHCP_INFORM, &options_out_len); - if (p_out != NULL) { - struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload; - options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN); - options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif)); - - LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, &dhcp, DHCP_STATE_INFORMING, msg_out, DHCP_INFORM, &options_out_len); - dhcp_option_trailer(options_out_len, msg_out->options, p_out); - - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_inform: INFORMING\n")); - - udp_sendto_if(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif); - - pbuf_free(p_out); - } else { - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_inform: could not allocate DHCP request\n")); - } - - dhcp_dec_pcb_refcount(); /* delete DHCP PCB if not needed any more */ -} - -/** Handle a possible change in the network configuration. - * - * This enters the REBOOTING state to verify that the currently bound - * address is still valid. - */ -void -dhcp_network_changed(struct netif *netif) -{ - struct dhcp *dhcp = netif_dhcp_data(netif); - - if (!dhcp) { - return; - } - switch (dhcp->state) { - case DHCP_STATE_REBINDING: - case DHCP_STATE_RENEWING: - case DHCP_STATE_BOUND: - case DHCP_STATE_REBOOTING: - dhcp->tries = 0; - dhcp_reboot(netif); - break; - case DHCP_STATE_OFF: - /* stay off */ - break; - default: - LWIP_ASSERT("invalid dhcp->state", dhcp->state <= DHCP_STATE_BACKING_OFF); - /* INIT/REQUESTING/CHECKING/BACKING_OFF restart with new 'rid' because the - state changes, SELECTING: continue with current 'rid' as we stay in the - same state */ -#if LWIP_DHCP_AUTOIP_COOP - if (dhcp->autoip_coop_state == DHCP_AUTOIP_COOP_STATE_ON) { - 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; - dhcp_discover(netif); - break; - } -} - -#if DHCP_DOES_ARP_CHECK -/** - * Match an ARP reply with the offered IP address: - * check whether the offered IP address is not in use using ARP - * - * @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) -{ - struct dhcp *dhcp; - - LWIP_ERROR("netif != NULL", (netif != NULL), return;); - dhcp = netif_dhcp_data(netif); - 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)) { - 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)) { - /* 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); - } - } -} - -/** - * Decline an offered lease. - * - * Tell the DHCP server we do not accept the offered address. - * One reason to decline the lease is when we find out the address - * is already in use by another host (through ARP). - * - * @param netif the netif under DHCP control - */ -static err_t -dhcp_decline(struct netif *netif) -{ - struct dhcp *dhcp = netif_dhcp_data(netif); - err_t result; - 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); - /* create and initialize the DHCP message header */ - p_out = dhcp_create_msg(netif, dhcp, DHCP_DECLINE, &options_out_len); - if (p_out != NULL) { - struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload; - options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_REQUESTED_IP, 4); - options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(&dhcp->offered_ip_addr))); - - 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); - - /* 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); - pbuf_free(p_out); - 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; - } - if (dhcp->tries < 255) { - dhcp->tries++; - } - msecs = 10 * 1000; - dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS); - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_decline(): set request timeout %"U16_F" msecs\n", msecs)); - return result; -} -#endif /* DHCP_DOES_ARP_CHECK */ - - -/** - * Start the DHCP process, discover a DHCP server. - * - * @param netif the netif under DHCP control - */ -static err_t -dhcp_discover(struct netif *netif) -{ - struct dhcp *dhcp = netif_dhcp_data(netif); - err_t result = ERR_OK; - u16_t msecs; - u8_t i; - 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); - dhcp_set_state(dhcp, DHCP_STATE_SELECTING); - /* create and initialize the DHCP message header */ - p_out = dhcp_create_msg(netif, dhcp, DHCP_DISCOVER, &options_out_len); - if (p_out != NULL) { - struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload; - 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); - options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif)); - - options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options)); - for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { - options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]); - } - 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); - - 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); - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_discover: deleting()ing\n")); - pbuf_free(p_out); - 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) { - dhcp->tries++; - } -#if LWIP_DHCP_AUTOIP_COOP - 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); - dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS); - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_discover(): set request timeout %"U16_F" msecs\n", msecs)); - return result; -} - - -/** - * Bind the interface to the offered IP address. - * - * @param netif network interface to bind to the offered address - */ -static void -dhcp_bind(struct netif *netif) -{ - u32_t timeout; - struct dhcp *dhcp; - ip4_addr_t sn_mask, gw_addr; - LWIP_ERROR("dhcp_bind: netif != NULL", (netif != NULL), return;); - dhcp = netif_dhcp_data(netif); - LWIP_ERROR("dhcp_bind: dhcp != NULL", (dhcp != NULL), return;); - 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; - - if (dhcp->offered_t0_lease != 0xffffffffUL) { - /* 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; - if (timeout > 0xffff) { - timeout = 0xffff; - } - dhcp->t0_timeout = (u16_t)timeout; - if (dhcp->t0_timeout == 0) { - dhcp->t0_timeout = 1; - } - 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) { - /* 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; - if (timeout > 0xffff) { - timeout = 0xffff; - } - dhcp->t1_timeout = (u16_t)timeout; - if (dhcp->t1_timeout == 0) { - dhcp->t1_timeout = 1; - } - 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; - } - /* set renewal period timer */ - if (dhcp->offered_t2_rebind != 0xffffffffUL) { - 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; - if (timeout > 0xffff) { - timeout = 0xffff; - } - dhcp->t2_timeout = (u16_t)timeout; - if (dhcp->t2_timeout == 0) { - dhcp->t2_timeout = 1; - } - 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; - } - - /* 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)) { - dhcp->t1_timeout = 0; - } - - if (dhcp->subnet_mask_given) { - /* copy offered network mask */ - ip4_addr_copy(sn_mask, dhcp->offered_sn_mask); - } else { - /* subnet mask not given, choose a safe subnet mask given the network class */ - u8_t first_octet = ip4_addr1(&dhcp->offered_ip_addr); - if (first_octet <= 127) { - ip4_addr_set_u32(&sn_mask, PP_HTONL(0xff000000UL)); - } else if (first_octet >= 192) { - ip4_addr_set_u32(&sn_mask, PP_HTONL(0xffffff00UL)); - } else { - ip4_addr_set_u32(&sn_mask, PP_HTONL(0xffff0000UL)); - } - } - - ip4_addr_copy(gw_addr, dhcp->offered_gw_addr); - /* gateway address not given? */ - if (ip4_addr_isany_val(gw_addr)) { - /* copy network address */ - ip4_addr_get_network(&gw_addr, &dhcp->offered_ip_addr, &sn_mask); - /* use first host address on network as gateway */ - ip4_addr_set_u32(&gw_addr, ip4_addr_get_u32(&gw_addr) | PP_HTONL(0x00000001UL)); - } - -#if LWIP_DHCP_AUTOIP_COOP - if (dhcp->autoip_coop_state == DHCP_AUTOIP_COOP_STATE_ON) { - autoip_stop(netif); - dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_OFF; - } -#endif /* LWIP_DHCP_AUTOIP_COOP */ - - 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); - - netif_set_addr(netif, &dhcp->offered_ip_addr, &sn_mask, &gw_addr); - /* interface is used by routing now that an address is set */ -} - -/** - * @ingroup dhcp4 - * Renew an existing DHCP lease at the involved DHCP server. - * - * @param netif network interface which must renew its lease - */ -err_t -dhcp_renew(struct netif *netif) -{ - struct dhcp *dhcp = netif_dhcp_data(netif); - err_t result; - u16_t msecs; - u8_t i; - 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); - - /* create and initialize the DHCP message header */ - p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len); - if (p_out != NULL) { - struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload; - options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN); - options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif)); - - options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options)); - for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { - options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]); - } - -#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); - - result = udp_sendto_if(dhcp_pcb, p_out, &dhcp->server_ip_addr, LWIP_IANA_PORT_DHCP_SERVER, netif); - pbuf_free(p_out); - - 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; - } - if (dhcp->tries < 255) { - dhcp->tries++; - } - /* back-off on retries, but to a maximum of 20 seconds */ - msecs = (u16_t)(dhcp->tries < 10 ? dhcp->tries * 2000 : 20 * 1000); - dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS); - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_renew(): set request timeout %"U16_F" msecs\n", msecs)); - return result; -} - -/** - * Rebind with a DHCP server for an existing DHCP lease. - * - * @param netif network interface which must rebind with a DHCP server - */ -static err_t -dhcp_rebind(struct netif *netif) -{ - struct dhcp *dhcp = netif_dhcp_data(netif); - err_t result; - u16_t msecs; - 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); - - /* create and initialize the DHCP message header */ - p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len); - if (p_out != NULL) { - struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload; - options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN); - options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif)); - - options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options)); - for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { - options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]); - } - -#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); - - /* broadcast to server */ - result = udp_sendto_if(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif); - pbuf_free(p_out); - 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; - } - if (dhcp->tries < 255) { - dhcp->tries++; - } - msecs = (u16_t)(dhcp->tries < 10 ? dhcp->tries * 1000 : 10 * 1000); - dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS); - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_rebind(): set request timeout %"U16_F" msecs\n", msecs)); - return result; -} - -/** - * Enter REBOOTING state to verify an existing lease - * - * @param netif network interface which must reboot - */ -static err_t -dhcp_reboot(struct netif *netif) -{ - struct dhcp *dhcp = netif_dhcp_data(netif); - err_t result; - u16_t msecs; - 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); - - /* create and initialize the DHCP message header */ - p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len); - if (p_out != NULL) { - struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload; - options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN); - options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN_MIN_REQUIRED); - - options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_REQUESTED_IP, 4); - options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(&dhcp->offered_ip_addr))); - - options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options)); - for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { - options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]); - } - -#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); - - /* broadcast to server */ - result = udp_sendto_if(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif); - pbuf_free(p_out); - 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; - } - if (dhcp->tries < 255) { - dhcp->tries++; - } - msecs = (u16_t)(dhcp->tries < 10 ? dhcp->tries * 1000 : 10 * 1000); - dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS); - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_reboot(): set request timeout %"U16_F" msecs\n", msecs)); - return result; -} - -/** - * @ingroup dhcp4 - * Release a DHCP lease and stop DHCP statemachine (and AUTOIP if LWIP_DHCP_AUTOIP_COOP). - * - * @param netif network interface - */ -void -dhcp_release_and_stop(struct netif *netif) -{ - struct dhcp *dhcp = netif_dhcp_data(netif); - 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) { - return; - } - - /* already off? -> nothing to do */ - if (dhcp->state == DHCP_STATE_OFF) { - return; - } - - ip_addr_copy(server_ip_addr, dhcp->server_ip_addr); - - /* clean old DHCP offer */ - ip_addr_set_zero_ip4(&dhcp->server_ip_addr); - ip4_addr_set_zero(&dhcp->offered_ip_addr); - ip4_addr_set_zero(&dhcp->offered_sn_mask); - ip4_addr_set_zero(&dhcp->offered_gw_addr); -#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; - dhcp->t1_renew_time = dhcp->t2_rebind_time = dhcp->lease_used = dhcp->t0_timeout = 0; - - /* send release message when current IP was assigned via DHCP */ - if (dhcp_supplied_address(netif)) { - /* 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); - if (p_out != NULL) { - struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload; - options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_SERVER_ID, 4); - options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(ip_2_ip4(&server_ip_addr)))); - - 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); - - udp_sendto_if(dhcp_pcb, p_out, &server_ip_addr, LWIP_IANA_PORT_DHCP_SERVER, netif); - pbuf_free(p_out); - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_release: RELEASED, DHCP_STATE_OFF\n")); - } else { - /* sending release failed, but that's not a problem since the correct behaviour of dhcp does not rely on release */ - 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); - -#if LWIP_DHCP_AUTOIP_COOP - if (dhcp->autoip_coop_state == DHCP_AUTOIP_COOP_STATE_ON) { - autoip_stop(netif); - dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_OFF; - } -#endif /* LWIP_DHCP_AUTOIP_COOP */ - - dhcp_set_state(dhcp, DHCP_STATE_OFF); - - if (dhcp->pcb_allocated != 0) { - dhcp_dec_pcb_refcount(); /* free DHCP PCB if not needed any more */ - dhcp->pcb_allocated = 0; - } -} - -/** - * @ingroup dhcp4 - * This function calls dhcp_release_and_stop() internally. - * @deprecated Use dhcp_release_and_stop() instead. - */ -err_t -dhcp_release(struct netif *netif) -{ - dhcp_release_and_stop(netif); - return ERR_OK; -} - -/** - * @ingroup dhcp4 - * This function calls dhcp_release_and_stop() internally. - * @deprecated Use dhcp_release_and_stop() instead. - */ -void -dhcp_stop(struct netif *netif) -{ - dhcp_release_and_stop(netif); -} - -/* - * Set the DHCP state of a DHCP client. - * - * If the state changed, reset the number of tries. - */ -static void -dhcp_set_state(struct dhcp *dhcp, u8_t new_state) -{ - if (new_state != dhcp->state) { - dhcp->state = new_state; - dhcp->tries = 0; - dhcp->request_timeout = 0; - } -} - -/* - * Concatenate an option type and length field to the outgoing - * DHCP message. - * - */ -static u16_t -dhcp_option(u16_t options_out_len, u8_t *options, u8_t option_type, u8_t option_len) -{ - LWIP_ASSERT("dhcp_option: options_out_len + 2 + option_len <= DHCP_OPTIONS_LEN", options_out_len + 2U + option_len <= DHCP_OPTIONS_LEN); - options[options_out_len++] = option_type; - options[options_out_len++] = option_len; - return options_out_len; -} -/* - * 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) -{ - LWIP_ASSERT("dhcp_option_byte: options_out_len < DHCP_OPTIONS_LEN", options_out_len < DHCP_OPTIONS_LEN); - options[options_out_len++] = value; - return options_out_len; -} - -static u16_t -dhcp_option_short(u16_t options_out_len, u8_t *options, u16_t value) -{ - LWIP_ASSERT("dhcp_option_short: options_out_len + 2 <= DHCP_OPTIONS_LEN", options_out_len + 2U <= DHCP_OPTIONS_LEN); - options[options_out_len++] = (u8_t)((value & 0xff00U) >> 8); - options[options_out_len++] = (u8_t) (value & 0x00ffU); - return options_out_len; -} - -static u16_t -dhcp_option_long(u16_t options_out_len, u8_t *options, u32_t value) -{ - LWIP_ASSERT("dhcp_option_long: options_out_len + 4 <= DHCP_OPTIONS_LEN", options_out_len + 4U <= DHCP_OPTIONS_LEN); - options[options_out_len++] = (u8_t)((value & 0xff000000UL) >> 24); - options[options_out_len++] = (u8_t)((value & 0x00ff0000UL) >> 16); - options[options_out_len++] = (u8_t)((value & 0x0000ff00UL) >> 8); - options[options_out_len++] = (u8_t)((value & 0x000000ffUL)); - return options_out_len; -} - -#if LWIP_NETIF_HOSTNAME -static u16_t -dhcp_option_hostname(u16_t options_out_len, u8_t *options, struct netif *netif) -{ - if (netif->hostname != NULL) { - size_t namelen = strlen(netif->hostname); - if (namelen > 0) { - size_t len; - const char *p = netif->hostname; - /* Shrink len to available bytes (need 2 bytes for OPTION_HOSTNAME - and 1 byte for trailer) */ - size_t available = DHCP_OPTIONS_LEN - options_out_len - 3; - LWIP_ASSERT("DHCP: hostname is too long!", namelen <= available); - len = LWIP_MIN(namelen, available); - LWIP_ASSERT("DHCP: hostname is too long!", len <= 0xFF); - options_out_len = dhcp_option(options_out_len, options, DHCP_OPTION_HOSTNAME, (u8_t)len); - while (len--) { - options_out_len = dhcp_option_byte(options_out_len, options, *p++); - } - } - } - return options_out_len; -} -#endif /* LWIP_NETIF_HOSTNAME */ - -/** - * Extract the DHCP message and the DHCP options. - * - * Extract the DHCP message and the DHCP options, each into a contiguous - * piece of memory. As a DHCP message is variable sized by its options, - * and also allows overriding some fields for options, the easy approach - * is to first unfold the options into a contiguous piece of memory, and - * use that further on. - * - */ -static err_t -dhcp_parse_reply(struct pbuf *p, struct dhcp *dhcp) -{ - u8_t *options; - 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; - int parse_sname_as_options = 0; - struct dhcp_msg *msg_in; -#if LWIP_DHCP_BOOTP_FILE - int file_overloaded = 0; -#endif - - LWIP_UNUSED_ARG(dhcp); - - /* clear received options */ - dhcp_clear_all_options(dhcp); - /* check that beginning of dhcp_msg (up to and including chaddr) is in first pbuf */ - if (p->len < DHCP_SNAME_OFS) { - return ERR_BUF; - } - msg_in = (struct dhcp_msg *)p->payload; -#if LWIP_DHCP_BOOTP_FILE - /* clear boot file name */ - dhcp->boot_file_name[0] = 0; -#endif /* LWIP_DHCP_BOOTP_FILE */ - - /* parse options */ - - /* start with options field */ - options_idx = DHCP_OPTIONS_OFS; - /* parse options to the end of the received packet */ - options_idx_max = p->tot_len; -again: - q = p; - while ((q != NULL) && (options_idx >= q->len)) { - options_idx = (u16_t)(options_idx - q->len); - options_idx_max = (u16_t)(options_idx_max - q->len); - q = q->next; - } - if (q == NULL) { - return ERR_BUF; - } - offset = options_idx; - offset_max = options_idx_max; - options = (u8_t *)q->payload; - /* 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)) { - u8_t op = options[offset]; - u8_t len; - u8_t decode_len = 0; - int decode_idx = -1; - u16_t val_offset = (u16_t)(offset + 2); - if (val_offset < offset) { - /* overflow */ - return ERR_BUF; - } - /* len byte might be in the next pbuf */ - if ((offset + 1) < q->len) { - len = options[offset + 1]; - } else { - len = (q->next != NULL ? ((u8_t *)q->next->payload)[0] : 0); - } - /* LWIP_DEBUGF(DHCP_DEBUG, ("msg_offset=%"U16_F", q->len=%"U16_F, msg_offset, q->len)); */ - decode_len = len; - switch (op) { - /* case(DHCP_OPTION_END): handled above */ - case (DHCP_OPTION_PAD): - /* special option: no len encoded */ - decode_len = len = 0; - /* will be increased below */ - break; - case (DHCP_OPTION_SUBNET_MASK): - LWIP_ERROR("len == 4", len == 4, return ERR_VAL;); - decode_idx = DHCP_OPTION_IDX_SUBNET_MASK; - break; - case (DHCP_OPTION_ROUTER): - decode_len = 4; /* only copy the first given router */ - LWIP_ERROR("len >= decode_len", len >= decode_len, return ERR_VAL;); - decode_idx = DHCP_OPTION_IDX_ROUTER; - break; -#if LWIP_DHCP_PROVIDE_DNS_SERVERS - case (DHCP_OPTION_DNS_SERVER): - /* special case: there might be more than one server */ - LWIP_ERROR("len %% 4 == 0", len % 4 == 0, return ERR_VAL;); - /* limit number of DNS servers */ - decode_len = LWIP_MIN(len, 4 * DNS_MAX_SERVERS); - 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;); - decode_idx = DHCP_OPTION_IDX_LEASE_TIME; - break; -#if LWIP_DHCP_GET_NTP_SRV - case (DHCP_OPTION_NTP): - /* special case: there might be more than one server */ - LWIP_ERROR("len %% 4 == 0", len % 4 == 0, return ERR_VAL;); - /* limit number of NTP servers */ - decode_len = LWIP_MIN(len, 4 * LWIP_DHCP_MAX_NTP_SERVERS); - 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;); - /* 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;); - decode_idx = DHCP_OPTION_IDX_OVERLOAD; - break; - case (DHCP_OPTION_MESSAGE_TYPE): - LWIP_ERROR("len == 1", len == 1, return ERR_VAL;); - decode_idx = DHCP_OPTION_IDX_MSG_TYPE; - break; - case (DHCP_OPTION_SERVER_ID): - LWIP_ERROR("len == 4", len == 4, return ERR_VAL;); - decode_idx = DHCP_OPTION_IDX_SERVER_ID; - break; - case (DHCP_OPTION_T1): - LWIP_ERROR("len == 4", len == 4, return ERR_VAL;); - decode_idx = DHCP_OPTION_IDX_T1; - break; - case (DHCP_OPTION_T2): - LWIP_ERROR("len == 4", len == 4, return ERR_VAL;); - decode_idx = DHCP_OPTION_IDX_T2; - break; - default: - decode_len = 0; - 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; - } - if (op == DHCP_OPTION_PAD) { - offset++; - } else { - if (offset + len + 2 > 0xFFFF) { - /* overflow */ - return ERR_BUF; - } - offset = (u16_t)(offset + len + 2); - if (decode_len > 0) { - u32_t value = 0; - u16_t copy_len; -decode_next: - LWIP_ASSERT("check decode_idx", decode_idx >= 0 && decode_idx < DHCP_OPTION_IDX_MAX); - if (!dhcp_option_given(dhcp, decode_idx)) { - copy_len = LWIP_MIN(decode_len, 4); - if (pbuf_copy_partial(q, &value, copy_len, val_offset) != copy_len) { - return ERR_BUF; - } - if (decode_len > 4) { - /* decode more than one u32_t */ - u16_t next_val_offset; - LWIP_ERROR("decode_len %% 4 == 0", decode_len % 4 == 0, return ERR_VAL;); - dhcp_got_option(dhcp, decode_idx); - dhcp_set_option_value(dhcp, decode_idx, lwip_htonl(value)); - decode_len = (u8_t)(decode_len - 4); - next_val_offset = (u16_t)(val_offset + 4); - if (next_val_offset < val_offset) { - /* overflow */ - return ERR_BUF; - } - val_offset = next_val_offset; - decode_idx++; - goto decode_next; - } else if (decode_len == 4) { - value = lwip_ntohl(value); - } else { - LWIP_ERROR("invalid decode_len", decode_len == 1, return ERR_VAL;); - value = ((u8_t *)&value)[0]; - } - dhcp_got_option(dhcp, decode_idx); - dhcp_set_option_value(dhcp, decode_idx, value); - } - } - } - if (offset >= q->len) { - offset = (u16_t)(offset - q->len); - offset_max = (u16_t)(offset_max - q->len); - if (offset < offset_max) { - q = q->next; - LWIP_ERROR("next pbuf was null", q != NULL, return ERR_VAL;); - options = (u8_t *)q->payload; - } else { - /* We've run out of bytes, probably no end marker. Don't proceed. */ - return ERR_BUF; - } - } - } - /* is this an overloaded message? */ - if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_OVERLOAD)) { - u32_t overload = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_OVERLOAD); - dhcp_clear_option(dhcp, DHCP_OPTION_IDX_OVERLOAD); - if (overload == DHCP_OVERLOAD_FILE) { - parse_file_as_options = 1; - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("overloaded file field\n")); - } else if (overload == DHCP_OVERLOAD_SNAME) { - parse_sname_as_options = 1; - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("overloaded sname field\n")); - } else if (overload == DHCP_OVERLOAD_SNAME_FILE) { - parse_sname_as_options = 1; - parse_file_as_options = 1; - 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) { - /* if both are overloaded, parse file first and then sname (RFC 2131 ch. 4.1) */ - parse_file_as_options = 0; - options_idx = DHCP_FILE_OFS; - options_idx_max = DHCP_FILE_OFS + DHCP_FILE_LEN; -#if LWIP_DHCP_BOOTP_FILE - file_overloaded = 1; -#endif - goto again; - } else if (parse_sname_as_options) { - parse_sname_as_options = 0; - options_idx = DHCP_SNAME_OFS; - options_idx_max = DHCP_SNAME_OFS + DHCP_SNAME_LEN; - goto again; - } -#if LWIP_DHCP_BOOTP_FILE - if (!file_overloaded) { - /* only do this for ACK messages */ - if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_MSG_TYPE) && - (dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_MSG_TYPE) == DHCP_ACK)) - /* copy bootp file name, don't care for sname (server hostname) */ - if (pbuf_copy_partial(p, dhcp->boot_file_name, DHCP_FILE_LEN-1, DHCP_FILE_OFS) != (DHCP_FILE_LEN-1)) { - return ERR_BUF; - } - /* 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; -} - -/** - * 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) -{ - struct netif *netif = ip_current_input_netif(); - struct dhcp *dhcp = netif_dhcp_data(netif); - struct dhcp_msg *reply_msg = (struct dhcp_msg *)p->payload; - u8_t msg_type; - u8_t i; - 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)) { - goto free_pbuf_and_return; - } - - LWIP_ASSERT("invalid server address type", IP_IS_V4(addr)); - - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_recv(pbuf = %p) from DHCP server %"U16_F".%"U16_F".%"U16_F".%"U16_F" port %"U16_F"\n", (void *)p, - ip4_addr1_16(ip_2_ip4(addr)), ip4_addr2_16(ip_2_ip4(addr)), ip4_addr3_16(ip_2_ip4(addr)), ip4_addr4_16(ip_2_ip4(addr)), port)); - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("pbuf->len = %"U16_F"\n", p->len)); - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("pbuf->tot_len = %"U16_F"\n", p->tot_len)); - /* prevent warnings about unused arguments */ - LWIP_UNUSED_ARG(pcb); - LWIP_UNUSED_ARG(addr); - LWIP_UNUSED_ARG(port); - - if (p->len < DHCP_MIN_REPLY_LEN) { - 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) { - 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++) { - if (netif->hwaddr[i] != reply_msg->chaddr[i]) { - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, - ("netif->hwaddr[%"U16_F"]==%02"X16_F" != reply_msg->chaddr[%"U16_F"]==%02"X16_F"\n", - (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) { - 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) { - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, - ("problem unfolding DHCP message - too short on memory?\n")); - 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)) { - 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; - /* read DHCP message type */ - msg_type = (u8_t)dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_MSG_TYPE); - /* message type is DHCP ACK? */ - if (msg_type == DHCP_ACK) { - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("DHCP_ACK received\n")); - /* in requesting state? */ - if (dhcp->state == DHCP_STATE_REQUESTING) { - dhcp_handle_ack(netif, msg_in); -#if DHCP_DOES_ARP_CHECK - if ((netif->flags & NETIF_FLAG_ETHARP) != 0) { - /* check if the acknowledged lease address is already in use */ - dhcp_check(netif); - } else { - /* bind interface to the acknowledged lease address */ - dhcp_bind(netif); - } -#else - /* 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) || - (dhcp->state == DHCP_STATE_RENEWING)) { - dhcp_handle_ack(netif, msg_in); - dhcp_bind(netif); - } - } - /* received a DHCP_NAK in appropriate state? */ - else if ((msg_type == DHCP_NAK) && - ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REQUESTING) || - (dhcp->state == DHCP_STATE_REBINDING) || (dhcp->state == DHCP_STATE_RENEWING ))) { - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("DHCP_NAK received\n")); - dhcp_handle_nak(netif); - } - /* received a DHCP_OFFER in DHCP_STATE_SELECTING state? */ - else if ((msg_type == DHCP_OFFER) && (dhcp->state == DHCP_STATE_SELECTING)) { - 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); - } - -free_pbuf_and_return: - pbuf_free(p); -} - -/** - * Create a DHCP request, fill in common headers - * - * @param netif the netif under DHCP control - * @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) -{ - u16_t i; - struct pbuf *p_out; - struct dhcp_msg *msg_out; - u16_t options_out_len_loc; - -#ifndef DHCP_GLOBAL_XID - /** default global transaction identifier starting value (easy to match - * with a packet analyser). We simply increment for each new request. - * Predefine DHCP_GLOBAL_XID to a better value or a function call to generate one - * at runtime, any supporting function prototypes can be defined in DHCP_GLOBAL_XID_HEADER */ -#if DHCP_CREATE_RAND_XID && defined(LWIP_RAND) - static u32_t xid; -#else /* DHCP_CREATE_RAND_XID && defined(LWIP_RAND) */ - static u32_t xid = 0xABCD0000; -#endif /* DHCP_CREATE_RAND_XID && defined(LWIP_RAND) */ -#else - if (!xid_initialised) { - xid = DHCP_GLOBAL_XID; - xid_initialised = !xid_initialised; - } -#endif - LWIP_ERROR("dhcp_create_msg: netif != NULL", (netif != NULL), return NULL;); - LWIP_ERROR("dhcp_create_msg: dhcp != NULL", (dhcp != NULL), return NULL;); - p_out = pbuf_alloc(PBUF_TRANSPORT, sizeof(struct dhcp_msg), PBUF_RAM); - if (p_out == NULL) { - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, - ("dhcp_create_msg(): could not allocate pbuf\n")); - return NULL; - } - LWIP_ASSERT("dhcp_create_msg: check that first pbuf can hold struct dhcp_msg", - (p_out->len >= sizeof(struct dhcp_msg))); - - /* DHCP_REQUEST should reuse 'xid' from DHCPOFFER */ - if ((message_type != DHCP_REQUEST) || (dhcp->state == DHCP_STATE_REBOOTING)) { - /* reuse transaction identifier in retransmissions */ - if (dhcp->tries == 0) { -#if DHCP_CREATE_RAND_XID && defined(LWIP_RAND) - xid = LWIP_RAND(); -#else /* DHCP_CREATE_RAND_XID && defined(LWIP_RAND) */ - xid++; -#endif /* DHCP_CREATE_RAND_XID && defined(LWIP_RAND) */ - } - dhcp->xid = xid; - } - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, - ("transaction id xid(%"X32_F")\n", xid)); - - msg_out = (struct dhcp_msg *)p_out->payload; - memset(msg_out, 0, sizeof(struct dhcp_msg)); - - msg_out->op = DHCP_BOOTREQUEST; - /* @todo: make link layer independent */ - msg_out->htype = LWIP_IANA_HWTYPE_ETHERNET; - msg_out->hlen = netif->hwaddr_len; - msg_out->xid = lwip_htonl(dhcp->xid); - /* 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) || - ((message_type == DHCP_REQUEST) && /* DHCP_STATE_BOUND not used for sending! */ - ((dhcp->state == DHCP_STATE_RENEWING) || dhcp->state == DHCP_STATE_REBINDING))) { - ip4_addr_copy(msg_out->ciaddr, *netif_ip4_addr(netif)); - } - for (i = 0; i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) { - /* copy netif hardware address (padded with zeroes through memset already) */ - msg_out->chaddr[i] = netif->hwaddr[i]; - } - msg_out->cookie = PP_HTONL(DHCP_MAGIC_COOKIE); - /* Add option MESSAGE_TYPE */ - options_out_len_loc = dhcp_option(0, msg_out->options, DHCP_OPTION_MESSAGE_TYPE, DHCP_OPTION_MESSAGE_TYPE_LEN); - options_out_len_loc = dhcp_option_byte(options_out_len_loc, msg_out->options, message_type); - if (options_out_len) { - *options_out_len = options_out_len_loc; - } - return p_out; -} - -/** - * Add a DHCP message trailer - * - * 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) -{ - options[options_out_len++] = DHCP_OPTION_END; - /* packet is too small, or not 4 byte aligned? */ - while (((options_out_len < DHCP_MIN_OPTIONS_LEN) || (options_out_len & 3)) && - (options_out_len < DHCP_OPTIONS_LEN)) { - /* add a fill/padding byte */ - options[options_out_len++] = 0; - } - /* shrink the pbuf to the actual content length */ - pbuf_realloc(p_out, (u16_t)(sizeof(struct dhcp_msg) - DHCP_OPTIONS_LEN + options_out_len)); -} - -/** check if DHCP supplied netif->ip_addr - * - * @param netif the netif to check - * @return 1 if DHCP supplied netif->ip_addr (states BOUND or RENEWING), - * 0 otherwise - */ -u8_t -dhcp_supplied_address(const struct netif *netif) -{ - if ((netif != NULL) && (netif_dhcp_data(netif) != NULL)) { - struct dhcp *dhcp = netif_dhcp_data(netif); - return (dhcp->state == DHCP_STATE_BOUND) || (dhcp->state == DHCP_STATE_RENEWING) || - (dhcp->state == DHCP_STATE_REBINDING); - } - return 0; -} - -#endif /* LWIP_IPV4 && LWIP_DHCP */ diff --git a/Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c b/Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c deleted file mode 100644 index 442aac0..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.c +++ /dev/null @@ -1,1204 +0,0 @@ -/** - * @file - * Address Resolution Protocol module for IP over Ethernet - * - * Functionally, ARP is divided into two parts. The first maps an IP address - * to a physical address when sending a packet, and the second part answers - * requests from other machines for our physical address. - * - * This implementation complies with RFC 826 (Ethernet ARP). It supports - * Gratuitious ARP from RFC3220 (IP Mobility Support for IPv4) section 4.6 - * if an interface calls etharp_gratuitous(our_netif) upon address change. - */ - -/* - * Copyright (c) 2001-2003 Swedish Institute of Computer Science. - * Copyright (c) 2003-2004 Leon Woestenberg - * Copyright (c) 2003-2004 Axon Digital Design B.V., The Netherlands. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - */ - -#include "lwip/opt.h" - -#if LWIP_IPV4 && LWIP_ARP /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/etharp.h" -#include "lwip/stats.h" -#include "lwip/snmp.h" -#include "lwip/dhcp.h" -#include "lwip/autoip.h" -#include "lwip/prot/iana.h" -#include "netif/ethernet.h" - -#include - -#ifdef LWIP_HOOK_FILENAME -#include LWIP_HOOK_FILENAME -#endif - -/** Re-request a used ARP entry 1 minute before it would expire to prevent - * breaking a steadily used connection because the ARP entry timed out. */ -#define ARP_AGE_REREQUEST_USED_UNICAST (ARP_MAXAGE - 30) -#define ARP_AGE_REREQUEST_USED_BROADCAST (ARP_MAXAGE - 15) - -/** the time an ARP entry stays pending after first request, - * for ARP_TMR_INTERVAL = 1000, this is - * 10 seconds. - * - * @internal Keep this number at least 2, otherwise it might - * run out instantly if the timeout occurs directly after a request. - */ -#define ARP_MAXPENDING 5 - -/** ARP states */ -enum etharp_state { - ETHARP_STATE_EMPTY = 0, - ETHARP_STATE_PENDING, - ETHARP_STATE_STABLE, - ETHARP_STATE_STABLE_REREQUESTING_1, - ETHARP_STATE_STABLE_REREQUESTING_2 -#if ETHARP_SUPPORT_STATIC_ENTRIES - , ETHARP_STATE_STATIC -#endif /* ETHARP_SUPPORT_STATIC_ENTRIES */ -}; - -struct etharp_entry { -#if ARP_QUEUEING - /** Pointer to queue of pending outgoing packets on this ARP entry. */ - struct etharp_q_entry *q; -#else /* ARP_QUEUEING */ - /** Pointer to a single pending outgoing packet on this ARP entry. */ - struct pbuf *q; -#endif /* ARP_QUEUEING */ - ip4_addr_t ipaddr; - struct netif *netif; - struct eth_addr ethaddr; - u16_t ctime; - u8_t state; -}; - -static struct etharp_entry arp_table[ARP_TABLE_SIZE]; - -#if !LWIP_NETIF_HWADDRHINT -static netif_addr_idx_t etharp_cached_entry; -#endif /* !LWIP_NETIF_HWADDRHINT */ - -/** Try hard to create a new entry - we want the IP address to appear in - the cache (even if this means removing an active entry or so). */ -#define ETHARP_FLAG_TRY_HARD 1 -#define ETHARP_FLAG_FIND_ONLY 2 -#if ETHARP_SUPPORT_STATIC_ENTRIES -#define ETHARP_FLAG_STATIC_ENTRY 4 -#endif /* ETHARP_SUPPORT_STATIC_ENTRIES */ - -#if LWIP_NETIF_HWADDRHINT -#define ETHARP_SET_ADDRHINT(netif, addrhint) do { if (((netif) != NULL) && ((netif)->hints != NULL)) { \ - (netif)->hints->addr_hint = (addrhint); }} while(0) -#else /* LWIP_NETIF_HWADDRHINT */ -#define ETHARP_SET_ADDRHINT(netif, addrhint) (etharp_cached_entry = (addrhint)) -#endif /* LWIP_NETIF_HWADDRHINT */ - - -/* Check for maximum ARP_TABLE_SIZE */ -#if (ARP_TABLE_SIZE > NETIF_ADDR_IDX_MAX) -#error "ARP_TABLE_SIZE must fit in an s16_t, you have to reduce it in your lwipopts.h" -#endif - - -static err_t etharp_request_dst(struct netif *netif, const ip4_addr_t *ipaddr, const struct eth_addr *hw_dst_addr); -static err_t 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); - -#if ARP_QUEUEING -/** - * Free a complete queue of etharp entries - * - * @param q a qeueue of etharp_q_entry's to free - */ -static void -free_etharp_q(struct etharp_q_entry *q) -{ - struct etharp_q_entry *r; - LWIP_ASSERT("q != NULL", q != NULL); - while (q) { - r = q; - q = q->next; - LWIP_ASSERT("r->p != NULL", (r->p != NULL)); - pbuf_free(r->p); - memp_free(MEMP_ARP_QUEUE, r); - } -} -#else /* ARP_QUEUEING */ - -/** Compatibility define: free the queued pbuf */ -#define free_etharp_q(q) pbuf_free(q) - -#endif /* ARP_QUEUEING */ - -/** Clean up ARP table entries */ -static void -etharp_free_entry(int i) -{ - /* 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) { - /* 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); - arp_table[i].q = NULL; - } - /* recycle entry for re-use */ - arp_table[i].state = ETHARP_STATE_EMPTY; -#ifdef LWIP_DEBUG - /* for debugging, clean out the complete entry */ - 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 */ -} - -/** - * Clears expired entries in the ARP table. - * - * 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) -{ - int i; - - LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_timer\n")); - /* remove expired entries from the ARP table */ - for (i = 0; i < ARP_TABLE_SIZE; ++i) { - u8_t state = arp_table[i].state; - if (state != ETHARP_STATE_EMPTY -#if ETHARP_SUPPORT_STATIC_ENTRIES - && (state != ETHARP_STATE_STATIC) -#endif /* ETHARP_SUPPORT_STATIC_ENTRIES */ - ) { - arp_table[i].ctime++; - if ((arp_table[i].ctime >= ARP_MAXAGE) || - ((arp_table[i].state == ETHARP_STATE_PENDING) && - (arp_table[i].ctime >= ARP_MAXPENDING))) { - /* 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); - } else if (arp_table[i].state == ETHARP_STATE_STABLE_REREQUESTING_1) { - /* Don't send more than one request every 2 seconds. */ - arp_table[i].state = ETHARP_STATE_STABLE_REREQUESTING_2; - } else if (arp_table[i].state == ETHARP_STATE_STABLE_REREQUESTING_2) { - /* Reset state to stable, so that the next transmitted packet will - re-send an ARP request. */ - arp_table[i].state = ETHARP_STATE_STABLE; - } else if (arp_table[i].state == ETHARP_STATE_PENDING) { - /* still pending, resend an ARP query */ - etharp_request(arp_table[i].netif, &arp_table[i].ipaddr); - } - } - } -} - -/** - * Search the ARP table for a matching or new entry. - * - * If an IP address is given, return a pending or stable ARP entry that matches - * the address. If no match is found, create a new entry with this address set, - * but in state ETHARP_EMPTY. The caller must check and possibly change the - * state of the returned entry. - * - * If ipaddr is NULL, return a initialized new entry in state ETHARP_EMPTY. - * - * In all cases, attempt to create new entries from an empty entry. If no - * empty entries are available and ETHARP_FLAG_TRY_HARD flag is set, recycle - * old entries. Heuristic choose the least important entry for recycling. - * - * @param ipaddr IP address to find in ARP cache, or to add if not found. - * @param flags See @ref etharp_state - * @param netif netif related to this address (used for NETIF_HWADDRHINT) - * - * @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) -{ - s16_t old_pending = ARP_TABLE_SIZE, old_stable = ARP_TABLE_SIZE; - s16_t empty = ARP_TABLE_SIZE; - s16_t i = 0; - /* oldest entry with packets on queue */ - s16_t old_queue = ARP_TABLE_SIZE; - /* its age */ - u16_t age_queue = 0, age_pending = 0, age_stable = 0; - - LWIP_UNUSED_ARG(netif); - - /** - * a) do a search through the cache, remember candidates - * b) select candidate entry - * c) create new entry - */ - - /* a) in a single search sweep, do all of this - * 1) remember the first empty entry (if any) - * 2) remember the oldest stable entry (if any) - * 3) remember the oldest pending entry without queued packets (if any) - * 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) { - u8_t state = arp_table[i].state; - /* no empty entry found yet and now we do find one? */ - if ((empty == ARP_TABLE_SIZE) && (state == ETHARP_STATE_EMPTY)) { - LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_find_entry: found empty entry %d\n", (int)i)); - /* remember first empty entry */ - empty = i; - } else if (state != ETHARP_STATE_EMPTY) { - LWIP_ASSERT("state == ETHARP_STATE_PENDING || state >= ETHARP_STATE_STABLE", - 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) -#if ETHARP_TABLE_MATCH_NETIF - && ((netif == NULL) || (netif == arp_table[i].netif)) -#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; - } - /* pending entry? */ - if (state == ETHARP_STATE_PENDING) { - /* pending with queued packets? */ - if (arp_table[i].q != NULL) { - if (arp_table[i].ctime >= age_queue) { - old_queue = i; - age_queue = arp_table[i].ctime; - } - } else - /* pending without queued packets? */ - { - if (arp_table[i].ctime >= age_pending) { - old_pending = i; - age_pending = arp_table[i].ctime; - } - } - /* stable entry? */ - } else if (state >= ETHARP_STATE_STABLE) { -#if ETHARP_SUPPORT_STATIC_ENTRIES - /* 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) { - old_stable = i; - age_stable = arp_table[i].ctime; - } - } - } - } - } - /* { we have no match } => try to create a new entry */ - - /* don't create new entry, only search? */ - if (((flags & ETHARP_FLAG_FIND_ONLY) != 0) || - /* or no empty entry found and not allowed to recycle? */ - ((empty == ARP_TABLE_SIZE) && ((flags & ETHARP_FLAG_TRY_HARD) == 0))) { - 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; - } - - /* b) choose the least destructive entry to recycle: - * 1) empty entry - * 2) oldest stable entry - * 3) oldest pending entry without queued packets - * 4) oldest pending entry with queued packets - * - * { ETHARP_FLAG_TRY_HARD is set at this point } - */ - - /* 1) empty entry available? */ - if (empty < ARP_TABLE_SIZE) { - i = empty; - 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) { - /* recycle oldest stable*/ - i = old_stable; - 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); - /* 3) found recyclable pending entry without queued packets? */ - } else if (old_pending < ARP_TABLE_SIZE) { - /* recycle oldest pending */ - i = old_pending; - 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) { - /* recycle oldest pending (queued packets are free in etharp_free_entry) */ - i = old_queue; - 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; - } - - /* { empty or recyclable entry found } */ - LWIP_ASSERT("i < ARP_TABLE_SIZE", i < ARP_TABLE_SIZE); - etharp_free_entry(i); - } - - LWIP_ASSERT("i < ARP_TABLE_SIZE", i < ARP_TABLE_SIZE); - LWIP_ASSERT("arp_table[i].state == ETHARP_STATE_EMPTY", - arp_table[i].state == ETHARP_STATE_EMPTY); - - /* IP address given? */ - if (ipaddr != NULL) { - /* set IP address */ - ip4_addr_copy(arp_table[i].ipaddr, *ipaddr); - } - arp_table[i].ctime = 0; -#if ETHARP_TABLE_MATCH_NETIF - arp_table[i].netif = netif; -#endif /* ETHARP_TABLE_MATCH_NETIF */ - return (s16_t)i; -} - -/** - * Update (or insert) a IP/MAC address pair in the ARP cache. - * - * If a pending entry is resolved, any queued packets will be sent - * at this point. - * - * @param netif netif related to this entry (used for NETIF_ADDRHINT) - * @param ipaddr IP address of the inserted ARP entry. - * @param ethaddr Ethernet address of the inserted ARP entry. - * @param flags See @ref etharp_state - * - * @return - * - ERR_OK Successfully updated ARP cache. - * - ERR_MEM If we could not add a new ARP entry when ETHARP_FLAG_TRY_HARD was set. - * - ERR_ARG Non-unicast address given, those will not appear in ARP cache. - * - * @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) -{ - s16_t i; - LWIP_ASSERT("netif->hwaddr_len == ETH_HWADDR_LEN", netif->hwaddr_len == ETH_HWADDR_LEN); - 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) || - ip4_addr_isbroadcast(ipaddr, netif) || - ip4_addr_ismulticast(ipaddr)) { - 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; - } - /* find or create ARP entry */ - i = etharp_find_entry(ipaddr, flags, netif); - /* bail out if no entry could be found */ - if (i < 0) { - return (err_t)i; - } - -#if ETHARP_SUPPORT_STATIC_ENTRIES - if (flags & ETHARP_FLAG_STATIC_ENTRY) { - /* record static type */ - arp_table[i].state = ETHARP_STATE_STATIC; - } else if (arp_table[i].state == ETHARP_STATE_STATIC) { - /* found entry is a static type, don't overwrite it */ - return ERR_VAL; - } else -#endif /* ETHARP_SUPPORT_STATIC_ENTRIES */ - { - /* mark it stable */ - arp_table[i].state = ETHARP_STATE_STABLE; - } - - /* record network interface */ - arp_table[i].netif = netif; - /* 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); - /* reset time stamp */ - arp_table[i].ctime = 0; - /* this is where we will send out queued packets! */ -#if ARP_QUEUEING - while (arp_table[i].q != NULL) { - struct pbuf *p; - /* remember remainder of queue */ - struct etharp_q_entry *q = arp_table[i].q; - /* pop first item off the queue */ - arp_table[i].q = q->next; - /* 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) { - struct pbuf *p = arp_table[i].q; - arp_table[i].q = NULL; -#endif /* ARP_QUEUEING */ - /* send the queued IP packet */ - ethernet_output(netif, p, (struct eth_addr *)(netif->hwaddr), ethaddr, ETHTYPE_IP); - /* free the queued IP packet */ - pbuf_free(p); - } - return ERR_OK; -} - -#if ETHARP_SUPPORT_STATIC_ENTRIES -/** Add a new static entry to the ARP table. If an entry exists for the - * specified IP address, this entry is overwritten. - * If packets are queued for the specified IP address, they are sent out. - * - * @param ipaddr IP address for the new static entry - * @param ethaddr ethernet address for the new static entry - * @return See return values of etharp_add_static_entry - */ -err_t -etharp_add_static_entry(const ip4_addr_t *ipaddr, struct eth_addr *ethaddr) -{ - struct netif *netif; - LWIP_ASSERT_CORE_LOCKED(); - LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_add_static_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])); - - netif = ip4_route(ipaddr); - if (netif == NULL) { - return ERR_RTE; - } - - return etharp_update_arp_entry(netif, ipaddr, ethaddr, ETHARP_FLAG_TRY_HARD | ETHARP_FLAG_STATIC_ENTRY); -} - -/** Remove a static entry from the ARP table previously added with a call to - * etharp_add_static_entry. - * - * @param ipaddr IP address of the static entry to remove - * @return ERR_OK: entry removed - * ERR_MEM: entry wasn't found - * ERR_ARG: entry wasn't a static entry but a dynamic one - */ -err_t -etharp_remove_static_entry(const ip4_addr_t *ipaddr) -{ - s16_t i; - LWIP_ASSERT_CORE_LOCKED(); - LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_remove_static_entry: %"U16_F".%"U16_F".%"U16_F".%"U16_F"\n", - ip4_addr1_16(ipaddr), ip4_addr2_16(ipaddr), ip4_addr3_16(ipaddr), ip4_addr4_16(ipaddr))); - - /* find or create ARP entry */ - i = etharp_find_entry(ipaddr, ETHARP_FLAG_FIND_ONLY, NULL); - /* bail out if no entry could be found */ - if (i < 0) { - return (err_t)i; - } - - if (arp_table[i].state != ETHARP_STATE_STATIC) { - /* entry wasn't a static entry, cannot remove it */ - return ERR_ARG; - } - /* entry found, free it */ - etharp_free_entry(i); - return ERR_OK; -} -#endif /* ETHARP_SUPPORT_STATIC_ENTRIES */ - -/** - * Remove all ARP table entries of the specified netif. - * - * @param netif points to a network interface - */ -void -etharp_cleanup_netif(struct netif *netif) -{ - int i; - - for (i = 0; i < ARP_TABLE_SIZE; ++i) { - u8_t state = arp_table[i].state; - if ((state != ETHARP_STATE_EMPTY) && (arp_table[i].netif == netif)) { - etharp_free_entry(i); - } - } -} - -/** - * Finds (stable) ethernet/IP address pair from ARP table - * using interface and IP address index. - * @note the addresses in the ARP table are in network order! - * - * @param netif points to interface index - * @param ipaddr points to the (network order) IP address index - * @param eth_ret points to return pointer - * @param ip_ret points to return pointer - * @return table index if found, -1 otherwise - */ -ssize_t -etharp_find_addr(struct netif *netif, const ip4_addr_t *ipaddr, - struct eth_addr **eth_ret, const ip4_addr_t **ip_ret) -{ - s16_t i; - - LWIP_ASSERT("eth_ret != NULL && ip_ret != NULL", - eth_ret != NULL && ip_ret != NULL); - - LWIP_UNUSED_ARG(netif); - - i = etharp_find_entry(ipaddr, ETHARP_FLAG_FIND_ONLY, netif); - if ((i >= 0) && (arp_table[i].state >= ETHARP_STATE_STABLE)) { - *eth_ret = &arp_table[i].ethaddr; - *ip_ret = &arp_table[i].ipaddr; - return i; - } - return -1; -} - -/** - * Possibility to iterate over stable ARP table entries - * - * @param i entry number, 0 to ARP_TABLE_SIZE - * @param ipaddr return value: IP address - * @param netif return value: points to interface - * @param eth_ret return value: ETH address - * @return 1 on valid index, 0 otherwise - */ -int -etharp_get_entry(size_t i, ip4_addr_t **ipaddr, struct netif **netif, struct eth_addr **eth_ret) -{ - LWIP_ASSERT("ipaddr != NULL", ipaddr != NULL); - LWIP_ASSERT("netif != NULL", netif != NULL); - LWIP_ASSERT("eth_ret != NULL", eth_ret != NULL); - - if ((i < ARP_TABLE_SIZE) && (arp_table[i].state >= ETHARP_STATE_STABLE)) { - *ipaddr = &arp_table[i].ipaddr; - *netif = arp_table[i].netif; - *eth_ret = &arp_table[i].ethaddr; - return 1; - } else { - return 0; - } -} - -/** - * Responds to ARP requests to us. Upon ARP replies to us, add entry to cache - * send out queued IP packets. Updates cache with snooped address pairs. - * - * Should be called for incoming ARP packets. The pbuf in the argument - * is freed by this function. - * - * @param p The ARP packet that arrived on netif. Is freed by this function. - * @param netif The lwIP network interface on which the ARP packet pbuf arrived. - * - * @see pbuf_free() - */ -void -etharp_input(struct pbuf *p, struct netif *netif) -{ - struct etharp_hdr *hdr; - /* these are aligned properly, whereas the ARP header fields might not be */ - ip4_addr_t sipaddr, dipaddr; - u8_t for_us; - - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("netif != NULL", (netif != NULL), return;); - - hdr = (struct etharp_hdr *)p->payload; - - /* RFC 826 "Packet Reception": */ - if ((hdr->hwtype != PP_HTONS(LWIP_IANA_HWTYPE_ETHERNET)) || - (hdr->hwlen != ETH_HWADDR_LEN) || - (hdr->protolen != sizeof(ip4_addr_t)) || - (hdr->proto != PP_HTONS(ETHTYPE_IP))) { - 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); - return; - } - ETHARP_STATS_INC(etharp.recv); - -#if LWIP_AUTOIP - /* We have to check if a host already has configured our random - * created link local address and continuously check if there is - * a host with this IP-address so we can detect collisions */ - 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); - IPADDR_WORDALIGNED_COPY_TO_IP4_ADDR_T(&dipaddr, &hdr->dipaddr); - - /* this interface is not configured? */ - if (ip4_addr_isany_val(*netif_ip4_addr(netif))) { - for_us = 0; - } else { - /* ARP packet directed to us? */ - for_us = (u8_t)ip4_addr_cmp(&dipaddr, netif_ip4_addr(netif)); - } - - /* 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), - for_us ? ETHARP_FLAG_TRY_HARD : ETHARP_FLAG_FIND_ONLY); - - /* now act on the message itself */ - switch (hdr->opcode) { - /* ARP request? */ - case PP_HTONS(ARP_REQUEST): - /* ARP request. If it asked for our address, we send out a - * reply. In any case, we time-stamp any existing ARP entry, - * and possibly send out an IP packet that was queued on it. */ - - LWIP_DEBUGF (ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_input: incoming ARP request\n")); - /* ARP request for our address? */ - if (for_us) { - /* send ARP response */ - etharp_raw(netif, - (struct eth_addr *)netif->hwaddr, &hdr->shwaddr, - (struct eth_addr *)netif->hwaddr, netif_ip4_addr(netif), - &hdr->shwaddr, &sipaddr, - ARP_REPLY); - /* we are not configured? */ - } else if (ip4_addr_isany_val(*netif_ip4_addr(netif))) { - /* { for_us == 0 and netif->ip_addr.addr == 0 } */ - LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_input: we are unconfigured, ARP request ignored.\n")); - /* request was not directed to us */ - } else { - /* { for_us == 0 and netif->ip_addr.addr != 0 } */ - LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_input: ARP request was not for us.\n")); - } - break; - case PP_HTONS(ARP_REPLY): - /* ARP reply. We already updated the ARP cache earlier. */ - LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_input: incoming ARP reply\n")); -#if (LWIP_DHCP && DHCP_DOES_ARP_CHECK) - /* DHCP wants to know about ARP replies from any host with an - * IP address also offered to us by the DHCP server. We do not - * want to take a duplicate IP address on a single network. - * @todo How should we handle redundant (fail-over) interfaces? */ - dhcp_arp_reply(netif, &sipaddr); -#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; - } - /* free ARP packet */ - pbuf_free(p); -} - -/** 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) -{ - LWIP_ASSERT("arp_table[arp_idx].state >= ETHARP_STATE_STABLE", - 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) { - if (arp_table[arp_idx].ctime >= ARP_AGE_REREQUEST_USED_BROADCAST) { - /* issue a standard request using broadcast */ - if (etharp_request(netif, &arp_table[arp_idx].ipaddr) == ERR_OK) { - arp_table[arp_idx].state = ETHARP_STATE_STABLE_REREQUESTING_1; - } - } else if (arp_table[arp_idx].ctime >= ARP_AGE_REREQUEST_USED_UNICAST) { - /* 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) { - arp_table[arp_idx].state = ETHARP_STATE_STABLE_REREQUESTING_1; - } - } - } - - return ethernet_output(netif, q, (struct eth_addr *)(netif->hwaddr), &arp_table[arp_idx].ethaddr, ETHTYPE_IP); -} - -/** - * Resolve and fill-in Ethernet address header for outgoing IP packet. - * - * For IP multicast and broadcast, corresponding Ethernet addresses - * are selected and the packet is transmitted on the link. - * - * For unicast addresses, the packet is submitted to etharp_query(). In - * case the IP address is outside the local network, the IP address of - * the gateway is used. - * - * @param netif The lwIP network interface which the IP packet will be sent on. - * @param q The pbuf(s) containing the IP packet to be sent. - * @param ipaddr The IP address of the packet destination. - * - * @return - * - 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) -{ - const struct eth_addr *dest; - struct eth_addr mcastaddr; - const ip4_addr_t *dst_addr = ipaddr; - - LWIP_ASSERT_CORE_LOCKED(); - LWIP_ASSERT("netif != NULL", netif != NULL); - LWIP_ASSERT("q != NULL", q != NULL); - LWIP_ASSERT("ipaddr != NULL", ipaddr != NULL); - - /* 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)) { - /* broadcast on Ethernet also */ - dest = (const struct eth_addr *)ðbroadcast; - /* multicast destination IP address? */ - } else if (ip4_addr_ismulticast(ipaddr)) { - /* Hash IP multicast address to MAC address.*/ - mcastaddr.addr[0] = LL_IP4_MULTICAST_ADDR_0; - mcastaddr.addr[1] = LL_IP4_MULTICAST_ADDR_1; - mcastaddr.addr[2] = LL_IP4_MULTICAST_ADDR_2; - mcastaddr.addr[3] = ip4_addr2(ipaddr) & 0x7f; - mcastaddr.addr[4] = ip4_addr3(ipaddr); - mcastaddr.addr[5] = ip4_addr4(ipaddr); - /* destination Ethernet address is multicast */ - dest = &mcastaddr; - /* 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)) && - !ip4_addr_islinklocal(ipaddr)) { -#if LWIP_AUTOIP - struct ip_hdr *iphdr = LWIP_ALIGNMENT_CAST(struct ip_hdr *, q->payload); - /* According to RFC 3297, chapter 2.6.2 (Forwarding Rules), a packet with - a link-local source address must always be "directly to its destination - on the same physical link. The host MUST NOT send the packet to any - router for forwarding". */ - if (!ip4_addr_islinklocal(&iphdr->src)) -#endif /* LWIP_AUTOIP */ - { -#ifdef LWIP_HOOK_ETHARP_GET_GW - /* For advanced routing, a single default gateway might not be enough, so get - the IP address of the gateway to handle the current destination address. */ - 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))) { - /* send to hardware address of default gateway IP address */ - dst_addr = netif_ip4_gw(netif); - /* no default gateway available */ - } else { - /* no route to destination error (default gateway missing) */ - return ERR_RTE; - } - } - } - } -#if LWIP_NETIF_HWADDRHINT - 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) && -#if ETHARP_TABLE_MATCH_NETIF - (arp_table[etharp_cached_entry].netif == netif) && -#endif - (ip4_addr_cmp(dst_addr, &arp_table[etharp_cached_entry].ipaddr))) { - /* 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); - } -#if LWIP_NETIF_HWADDRHINT - } - } -#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++) { - if ((arp_table[i].state >= ETHARP_STATE_STABLE) && -#if ETHARP_TABLE_MATCH_NETIF - (arp_table[i].netif == netif) && -#endif - (ip4_addr_cmp(dst_addr, &arp_table[i].ipaddr))) { - /* found an existing, stable entry */ - ETHARP_SET_ADDRHINT(netif, i); - return etharp_output_to_arp_index(netif, q, i); - } - } - /* no stable entry found, use the (slower) query function: - queue on destination Ethernet address belonging to ipaddr */ - return etharp_query(netif, dst_addr, q); - } - - /* 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); -} - -/** - * Send an ARP request for the given IP address and/or queue a packet. - * - * If the IP address was not yet in the cache, a pending ARP cache entry - * is added and an ARP request is sent for the given address. The packet - * is queued on this entry. - * - * If the IP address was already pending in the cache, a new ARP request - * is sent for the given address. The packet is queued on this entry. - * - * If the IP address was already stable in the cache, and a packet is - * given, it is directly sent and no ARP request is sent out. - * - * If the IP address was already stable in the cache, and no packet is - * given, an ARP request is sent out. - * - * @param netif The lwIP network interface on which ipaddr - * must be queried for. - * @param ipaddr The IP address to be resolved. - * @param q If non-NULL, a pbuf that must be delivered to the IP address. - * q is not freed by this function. - * - * @note q must only be ONE packet, not a packet queue! - * - * @return - * - ERR_BUF Could not make room for Ethernet header. - * - ERR_MEM Hardware address unknown, and no more ARP entries available - * to query for address or queue the packet. - * - ERR_MEM Could not queue packet due to memory shortage. - * - ERR_RTE No route to destination (no gateway to external networks). - * - 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) -{ - struct eth_addr *srcaddr = (struct eth_addr *)netif->hwaddr; - err_t result = ERR_MEM; - int is_new_entry = 0; - s16_t i_err; - netif_addr_idx_t i; - - /* non-unicast address? */ - if (ip4_addr_isbroadcast(ipaddr, netif) || - ip4_addr_ismulticast(ipaddr) || - ip4_addr_isany(ipaddr)) { - LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: will not add non-unicast IP address to ARP cache\n")); - return ERR_ARG; - } - - /* find entry in ARP cache, ask to create entry if queueing packet */ - i_err = etharp_find_entry(ipaddr, ETHARP_FLAG_TRY_HARD, netif); - - /* could not find or create entry? */ - if (i_err < 0) { - 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; - } - LWIP_ASSERT("type overflow", (size_t)i_err < NETIF_ADDR_IDX_MAX); - i = (netif_addr_idx_t)i_err; - - /* mark a fresh entry as pending (we just sent a request) */ - if (arp_table[i].state == ETHARP_STATE_EMPTY) { - is_new_entry = 1; - arp_table[i].state = ETHARP_STATE_PENDING; - /* record network interface for re-sending arp request in etharp_tmr */ - arp_table[i].netif = netif; - } - - /* { i is either a STABLE or (new or existing) PENDING entry } */ - LWIP_ASSERT("arp_table[i].state == PENDING or STABLE", - ((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)) { - /* try to resolve it; send out ARP request */ - result = etharp_request(netif, ipaddr); - if (result != ERR_OK) { - /* 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) { - return result; - } - } - - /* packet given? */ - LWIP_ASSERT("q != NULL", q != NULL); - /* stable entry? */ - if (arp_table[i].state >= ETHARP_STATE_STABLE) { - /* we have a valid IP->Ethernet address mapping */ - ETHARP_SET_ADDRHINT(netif, i); - /* send the packet */ - result = ethernet_output(netif, q, srcaddr, &(arp_table[i].ethaddr), ETHTYPE_IP); - /* pending entry? (either just created or already pending */ - } else if (arp_table[i].state == ETHARP_STATE_PENDING) { - /* entry is still pending, queue the given packet 'q' */ - struct pbuf *p; - int copy_needed = 0; - /* 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; - while (p) { - LWIP_ASSERT("no packet queues allowed!", (p->len != p->tot_len) || (p->next == 0)); - if (PBUF_NEEDS_COPY(p)) { - copy_needed = 1; - break; - } - p = p->next; - } - if (copy_needed) { - /* copy the whole packet into new pbufs */ - p = pbuf_clone(PBUF_LINK, PBUF_RAM, q); - } else { - /* referencing the old pbuf is enough */ - p = q; - pbuf_ref(p); - } - /* packet could be taken over? */ - if (p != NULL) { - /* queue packet ... */ -#if ARP_QUEUEING - struct etharp_q_entry *new_entry; - /* allocate a new arp queue entry */ - new_entry = (struct etharp_q_entry *)memp_malloc(MEMP_ARP_QUEUE); - if (new_entry != NULL) { - unsigned int qlen = 0; - new_entry->next = 0; - new_entry->p = p; - if (arp_table[i].q != NULL) { - /* queue was already existent, append the new entry to the end */ - struct etharp_q_entry *r; - r = arp_table[i].q; - qlen++; - while (r->next != NULL) { - r = r->next; - qlen++; - } - r->next = new_entry; - } else { - /* queue did not exist, first item in queue */ - arp_table[i].q = new_entry; - } -#if ARP_QUEUE_LEN - if (qlen >= ARP_QUEUE_LEN) { - struct etharp_q_entry *old; - old = arp_table[i].q; - arp_table[i].q = arp_table[i].q->next; - pbuf_free(old->p); - memp_free(MEMP_ARP_QUEUE, old); - } -#endif - LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: queued packet %p on ARP entry %"U16_F"\n", (void *)q, i)); - result = ERR_OK; - } else { - /* the pool MEMP_ARP_QUEUE is empty */ - pbuf_free(p); - 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) { - 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); - } - arp_table[i].q = p; - result = ERR_OK; - 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; - } - } - return result; -} - -/** - * Send a raw ARP packet (opcode and all addresses can be modified) - * - * @param netif the lwip network interface on which to send the ARP packet - * @param ethsrc_addr the source MAC address for the ethernet header - * @param ethdst_addr the destination MAC address for the ethernet header - * @param hwsrc_addr the source MAC address for the ARP protocol header - * @param ipsrc_addr the source IP address for the ARP protocol header - * @param hwdst_addr the destination MAC address for the ARP protocol header - * @param ipdst_addr the destination IP address for the ARP protocol header - * @param opcode the type of the ARP packet - * @return ERR_OK if the ARP packet has been sent - * ERR_MEM if the ARP packet couldn't be allocated - * any other err_t on failure - */ -static err_t -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) -{ - struct pbuf *p; - err_t result = ERR_OK; - struct etharp_hdr *hdr; - - LWIP_ASSERT("netif != NULL", netif != NULL); - - /* allocate a pbuf for the outgoing ARP request packet */ - p = pbuf_alloc(PBUF_LINK, SIZEOF_ETHARP_HDR, PBUF_RAM); - /* could allocate a pbuf for an ARP request? */ - if (p == NULL) { - 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; - } - LWIP_ASSERT("check that first pbuf can hold struct etharp_hdr", - (p->len >= SIZEOF_ETHARP_HDR)); - - hdr = (struct etharp_hdr *)p->payload; - LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_raw: sending raw ARP packet.\n")); - hdr->opcode = lwip_htons(opcode); - - LWIP_ASSERT("netif->hwaddr_len must be the same as ETH_HWADDR_LEN for etharp!", - (netif->hwaddr_len == ETH_HWADDR_LEN)); - - /* Write the ARP MAC-Addresses */ - SMEMCPY(&hdr->shwaddr, hwsrc_addr, ETH_HWADDR_LEN); - SMEMCPY(&hdr->dhwaddr, hwdst_addr, ETH_HWADDR_LEN); - /* 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); - IPADDR_WORDALIGNED_COPY_FROM_IP4_ADDR_T(&hdr->dipaddr, ipdst_addr); - - hdr->hwtype = PP_HTONS(LWIP_IANA_HWTYPE_ETHERNET); - hdr->proto = PP_HTONS(ETHTYPE_IP); - /* set hwlen and protolen */ - hdr->hwlen = ETH_HWADDR_LEN; - hdr->protolen = sizeof(ip4_addr_t); - - /* send ARP query */ -#if LWIP_AUTOIP - /* If we are using Link-Local, all ARP packets that contain a Link-Local - * 'sender IP address' MUST be sent using link-layer broadcast instead of - * link-layer unicast. (See RFC3927 Section 2.5, last paragraph) */ - 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); - } - - ETHARP_STATS_INC(etharp.xmit); - /* free ARP query packet */ - pbuf_free(p); - p = NULL; - /* could not allocate pbuf for ARP request */ - - return result; -} - -/** - * Send an ARP request packet asking for ipaddr to a specific eth address. - * Used to send unicast request to refresh the ARP table just before an entry - * times out - * - * @param netif the lwip network interface on which to send the request - * @param ipaddr the IP address for which to ask - * @param hw_dst_addr the ethernet address to send this packet to - * @return ERR_OK if the request has been sent - * 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) -{ - return etharp_raw(netif, (struct eth_addr *)netif->hwaddr, hw_dst_addr, - (struct eth_addr *)netif->hwaddr, netif_ip4_addr(netif), ðzero, - ipaddr, ARP_REQUEST); -} - -/** - * Send an ARP request packet asking for ipaddr. - * - * @param netif the lwip network interface on which to send the request - * @param ipaddr the IP address for which to ask - * @return ERR_OK if the request has been sent - * 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) -{ - LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_request: sending ARP request.\n")); - return etharp_request_dst(netif, ipaddr, ðbroadcast); -} - -#endif /* LWIP_IPV4 && LWIP_ARP */ diff --git a/Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.c b/Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.c deleted file mode 100644 index a462ccd..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.c +++ /dev/null @@ -1,404 +0,0 @@ -/** - * @file - * ICMP - Internet Control Message Protocol - * - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -/* Some ICMP messages should be passed to the transport protocols. This - is not implemented. */ - -#include "lwip/opt.h" - -#if LWIP_IPV4 && LWIP_ICMP /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/icmp.h" -#include "lwip/inet_chksum.h" -#include "lwip/ip.h" -#include "lwip/def.h" -#include "lwip/stats.h" - -#include - -#ifdef LWIP_HOOK_FILENAME -#include LWIP_HOOK_FILENAME -#endif - -/** Small optimization: set to 0 if incoming PBUF_POOL pbuf always can be - * used to modify and send a response packet (and to 1 if this is not the case, - * e.g. when link header is stripped off when receiving) */ -#ifndef LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN -#define LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN 1 -#endif /* LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN */ - -/* The amount of data from the original packet to return in a dest-unreachable */ -#define ICMP_DEST_UNREACH_DATASIZE 8 - -static void icmp_send_response(struct pbuf *p, u8_t type, u8_t code); - -/** - * Processes ICMP input packets, called from ip_input(). - * - * Currently only processes icmp echo requests and sends - * out the echo response. - * - * @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) -{ - u8_t type; -#ifdef LWIP_DEBUG - u8_t code; -#endif /* LWIP_DEBUG */ - struct icmp_echo_hdr *iecho; - const struct ip_hdr *iphdr_in; - u16_t hlen; - const ip4_addr_t *src; - - ICMP_STATS_INC(icmp.recv); - MIB2_STATS_INC(mib2.icmpinmsgs); - - iphdr_in = ip4_current_header(); - hlen = IPH_HL_BYTES(iphdr_in); - if (hlen < IP_HLEN) { - LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: short IP header (%"S16_F" bytes) received\n", hlen)); - goto lenerr; - } - if (p->len < sizeof(u16_t) * 2) { - LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: short ICMP (%"U16_F" bytes) received\n", p->tot_len)); - goto lenerr; - } - - type = *((u8_t *)p->payload); -#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) { - case ICMP_ER: - /* This is OK, echo reply might have been parsed by a raw PCB - (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(); - /* multicast destination address? */ - if (ip4_addr_ismulticast(ip4_current_dest_addr())) { -#if LWIP_MULTICAST_PING - /* For multicast, use address of receiving interface as source address */ - src = netif_ip4_addr(inp); -#else /* LWIP_MULTICAST_PING */ - 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())) { -#if LWIP_BROADCAST_PING - /* For broadcast, use address of receiving interface as source address */ - src = netif_ip4_addr(inp); -#else /* LWIP_BROADCAST_PING */ - 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)) { - LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: bad ICMP echo received\n")); - goto lenerr; - } -#if CHECKSUM_CHECK_ICMP - IF__NETIF_CHECKSUM_ENABLED(inp, NETIF_CHECKSUM_CHECK_ICMP) { - if (inet_chksum_pbuf(p) != 0) { - LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: checksum failed for received ICMP echo\n")); - pbuf_free(p); - ICMP_STATS_INC(icmp.chkerr); - MIB2_STATS_INC(mib2.icmpinerrors); - return; - } - } -#endif -#if LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN - if (pbuf_add_header(p, hlen + PBUF_LINK_HLEN + PBUF_LINK_ENCAPSULATION_HLEN)) { - /* 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); - if (alloc_len < p->tot_len) { - 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); - if (r == NULL) { - LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: allocating new pbuf failed\n")); - goto icmperr; - } - if (r->len < hlen + sizeof(struct icmp_echo_hdr)) { - LWIP_DEBUGF(ICMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("first pbuf cannot hold the ICMP header")); - pbuf_free(r); - goto icmperr; - } - /* copy the ip header */ - MEMCPY(r->payload, iphdr_in, hlen); - /* switch r->payload back to icmp header (cannot fail) */ - if (pbuf_remove_header(r, hlen)) { - LWIP_ASSERT("icmp_input: moving r->payload to icmp header failed\n", 0); - pbuf_free(r); - goto icmperr; - } - /* copy the rest of the packet without ip header */ - if (pbuf_copy(r, p) != ERR_OK) { - LWIP_DEBUGF(ICMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("icmp_input: copying to new pbuf failed")); - pbuf_free(r); - goto icmperr; - } - /* free the original p */ - pbuf_free(p); - /* we now have an identical copy of p that has room for link headers */ - p = r; - } else { - /* restore p->payload to point to icmp header (cannot fail) */ - if (pbuf_remove_header(p, hlen + PBUF_LINK_HLEN + PBUF_LINK_ENCAPSULATION_HLEN)) { - LWIP_ASSERT("icmp_input: restoring original p->payload failed\n", 0); - goto icmperr; - } - } -#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; - if (pbuf_add_header(p, hlen)) { - 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; - ip4_addr_copy(iphdr->src, *src); - ip4_addr_copy(iphdr->dest, *ip4_current_src_addr()); - ICMPH_TYPE_SET(iecho, ICMP_ER); -#if CHECKSUM_GEN_ICMP - IF__NETIF_CHECKSUM_ENABLED(inp, NETIF_CHECKSUM_GEN_ICMP) { - /* adjust the checksum */ - if (iecho->chksum > PP_HTONS(0xffffU - (ICMP_ECHO << 8))) { - iecho->chksum = (u16_t)(iecho->chksum + PP_HTONS((u16_t)(ICMP_ECHO << 8)) + 1); - } else { - iecho->chksum = (u16_t)(iecho->chksum + PP_HTONS(ICMP_ECHO << 8)); - } - } -#if LWIP_CHECKSUM_CTRL_PER_NETIF - else { - iecho->chksum = 0; - } -#endif /* LWIP_CHECKSUM_CTRL_PER_NETIF */ -#else /* CHECKSUM_GEN_ICMP */ - iecho->chksum = 0; -#endif /* CHECKSUM_GEN_ICMP */ - - /* Set the correct TTL and recalculate the header checksum. */ - IPH_TTL_SET(iphdr, ICMP_TTL); - IPH_CHKSUM_SET(iphdr, 0); -#if CHECKSUM_GEN_IP - IF__NETIF_CHECKSUM_ENABLED(inp, NETIF_CHECKSUM_GEN_IP) { - IPH_CHKSUM_SET(iphdr, inet_chksum(iphdr, hlen)); - } -#endif /* CHECKSUM_GEN_IP */ - - ICMP_STATS_INC(icmp.xmit); - /* increase number of messages attempted to send */ - 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, - 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; - default: - if (type == ICMP_DUR) { - MIB2_STATS_INC(mib2.icmpindestunreachs); - } else if (type == ICMP_TE) { - MIB2_STATS_INC(mib2.icmpintimeexcds); - } else if (type == ICMP_PP) { - MIB2_STATS_INC(mib2.icmpinparmprobs); - } else if (type == ICMP_SQ) { - MIB2_STATS_INC(mib2.icmpinsrcquenchs); - } else if (type == ICMP_RD) { - MIB2_STATS_INC(mib2.icmpinredirects); - } else if (type == ICMP_TS) { - MIB2_STATS_INC(mib2.icmpintimestamps); - } else if (type == ICMP_TSR) { - MIB2_STATS_INC(mib2.icmpintimestampreps); - } else if (type == ICMP_AM) { - MIB2_STATS_INC(mib2.icmpinaddrmasks); - } else if (type == ICMP_AMR) { - MIB2_STATS_INC(mib2.icmpinaddrmaskreps); - } - 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); - return; -lenerr: - pbuf_free(p); - ICMP_STATS_INC(icmp.lenerr); - MIB2_STATS_INC(mib2.icmpinerrors); - return; -#if LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN || !LWIP_MULTICAST_PING || !LWIP_BROADCAST_PING -icmperr: - pbuf_free(p); - ICMP_STATS_INC(icmp.err); - MIB2_STATS_INC(mib2.icmpinerrors); - return; -#endif /* LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN || !LWIP_MULTICAST_PING || !LWIP_BROADCAST_PING */ -} - -/** - * Send an icmp 'destination unreachable' packet, called from ip_input() if - * the transport layer protocol is unknown and from udp_input() if the local - * port is not bound. - * - * @param p the input packet for which the 'unreachable' should be sent, - * 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) -{ - MIB2_STATS_INC(mib2.icmpoutdestunreachs); - icmp_send_response(p, ICMP_DUR, t); -} - -#if IP_FORWARD || IP_REASSEMBLY -/** - * Send a 'time exceeded' packet, called from ip_forward() if TTL is 0. - * - * @param p the input packet for which the 'time exceeded' should be sent, - * 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) -{ - MIB2_STATS_INC(mib2.icmpouttimeexcds); - icmp_send_response(p, ICMP_TE, t); -} - -#endif /* IP_FORWARD || IP_REASSEMBLY */ - -/** - * Send an icmp packet in response to an incoming packet. - * - * @param p the input packet for which the 'unreachable' should be sent, - * p->payload pointing to the IP header - * @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) -{ - struct pbuf *q; - struct ip_hdr *iphdr; - /* we can use the echo header here */ - struct icmp_echo_hdr *icmphdr; - ip4_addr_t iphdr_src; - struct netif *netif; - - /* 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, - PBUF_RAM); - if (q == NULL) { - 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", - (q->len >= (sizeof(struct icmp_echo_hdr) + IP_HLEN + ICMP_DEST_UNREACH_DATASIZE))); - - iphdr = (struct ip_hdr *)p->payload; - LWIP_DEBUGF(ICMP_DEBUG, ("icmp_time_exceeded from ")); - 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; - icmphdr->type = type; - icmphdr->code = code; - icmphdr->id = 0; - icmphdr->seqno = 0; - - /* copy fields from original packet */ - SMEMCPY((u8_t *)q->payload + sizeof(struct icmp_echo_hdr), (u8_t *)p->payload, - IP_HLEN + ICMP_DEST_UNREACH_DATASIZE); - - ip4_addr_copy(iphdr_src, iphdr->src); -#ifdef LWIP_HOOK_IP4_ROUTE_SRC - { - 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); -#endif - if (netif != NULL) { - /* calculate checksum */ - icmphdr->chksum = 0; -#if CHECKSUM_GEN_ICMP - 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); - } - pbuf_free(q); -} - -#endif /* LWIP_IPV4 && LWIP_ICMP */ diff --git a/Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.c b/Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.c deleted file mode 100644 index b655aa3..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/ipv4/igmp.c +++ /dev/null @@ -1,801 +0,0 @@ -/** - * @file - * IGMP - Internet Group Management Protocol - * - * @defgroup igmp IGMP - * @ingroup ip4 - * To be called from TCPIP thread - */ - -/* - * Copyright (c) 2002 CITEL Technologies Ltd. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of CITEL Technologies Ltd nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY CITEL TECHNOLOGIES AND CONTRIBUTORS ``AS IS'' - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CITEL TECHNOLOGIES OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * This file is a contribution to the lwIP TCP/IP stack. - * The Swedish Institute of Computer Science and Adam Dunkels - * are specifically granted permission to redistribute this - * source code. -*/ - -/*------------------------------------------------------------- -Note 1) -Although the rfc requires V1 AND V2 capability -we will only support v2 since now V1 is very old (August 1989) -V1 can be added if required - -a debug print and statistic have been implemented to -show this up. -------------------------------------------------------------- -------------------------------------------------------------- -Note 2) -A query for a specific group address (as opposed to ALLHOSTS) -has now been implemented as I am unsure if it is required - -a debug print and statistic have been implemented to -show this up. -------------------------------------------------------------- -------------------------------------------------------------- -Note 3) -The router alert rfc 2113 is implemented in outgoing packets -but not checked rigorously incoming -------------------------------------------------------------- -Steve Reynolds -------------------------------------------------------------*/ - -/*----------------------------------------------------------------------------- - * RFC 988 - Host extensions for IP multicasting - V0 - * RFC 1054 - Host extensions for IP multicasting - - * RFC 1112 - Host extensions for IP multicasting - V1 - * RFC 2236 - Internet Group Management Protocol, Version 2 - V2 <- this code is based on this RFC (it's the "de facto" standard) - * RFC 3376 - Internet Group Management Protocol, Version 3 - V3 - * RFC 4604 - Using Internet Group Management Protocol Version 3... - V3+ - * RFC 2113 - IP Router Alert Option - - *----------------------------------------------------------------------------*/ - -/*----------------------------------------------------------------------------- - * Includes - *----------------------------------------------------------------------------*/ - -#include "lwip/opt.h" - -#if LWIP_IPV4 && LWIP_IGMP /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/igmp.h" -#include "lwip/debug.h" -#include "lwip/def.h" -#include "lwip/mem.h" -#include "lwip/ip.h" -#include "lwip/inet_chksum.h" -#include "lwip/netif.h" -#include "lwip/stats.h" -#include "lwip/prot/igmp.h" - -#include - -static struct igmp_group *igmp_lookup_group(struct netif *ifp, const ip4_addr_t *addr); -static err_t igmp_remove_group(struct netif *netif, struct igmp_group *group); -static void igmp_timeout(struct netif *netif, struct igmp_group *group); -static void igmp_start_timer(struct igmp_group *group, u8_t max_time); -static void igmp_delaying_member(struct igmp_group *group, u8_t maxresp); -static err_t igmp_ip_output_if(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, struct netif *netif); -static void igmp_send(struct netif *netif, struct igmp_group *group, u8_t type); - -static ip4_addr_t allsystems; -static ip4_addr_t allrouters; - -/** - * Initialize the IGMP module - */ -void -igmp_init(void) -{ - LWIP_DEBUGF(IGMP_DEBUG, ("igmp_init: initializing\n")); - - IP4_ADDR(&allsystems, 224, 0, 0, 1); - IP4_ADDR(&allrouters, 224, 0, 0, 2); -} - -/** - * Start IGMP processing on interface - * - * @param netif network interface on which start IGMP processing - */ -err_t -igmp_start(struct netif *netif) -{ - struct igmp_group *group; - - LWIP_DEBUGF(IGMP_DEBUG, ("igmp_start: starting IGMP processing on if %p\n", (void *)netif)); - - group = igmp_lookup_group(netif, &allsystems); - - if (group != NULL) { - group->group_state = IGMP_GROUP_IDLE_MEMBER; - group->use++; - - /* Allow the igmp messages at the MAC level */ - if (netif->igmp_mac_filter != NULL) { - LWIP_DEBUGF(IGMP_DEBUG, ("igmp_start: igmp_mac_filter(ADD ")); - ip4_addr_debug_print_val(IGMP_DEBUG, allsystems); - LWIP_DEBUGF(IGMP_DEBUG, (") on if %p\n", (void *)netif)); - netif->igmp_mac_filter(netif, &allsystems, NETIF_ADD_MAC_FILTER); - } - - return ERR_OK; - } - - return ERR_MEM; -} - -/** - * Stop IGMP processing on interface - * - * @param netif network interface on which stop IGMP processing - */ -err_t -igmp_stop(struct netif *netif) -{ - struct igmp_group *group = netif_igmp_data(netif); - - netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_IGMP, NULL); - - while (group != NULL) { - struct igmp_group *next = group->next; /* avoid use-after-free below */ - - /* disable the group at the MAC level */ - if (netif->igmp_mac_filter != NULL) { - LWIP_DEBUGF(IGMP_DEBUG, ("igmp_stop: igmp_mac_filter(DEL ")); - ip4_addr_debug_print_val(IGMP_DEBUG, group->group_address); - LWIP_DEBUGF(IGMP_DEBUG, (") on if %p\n", (void *)netif)); - netif->igmp_mac_filter(netif, &(group->group_address), NETIF_DEL_MAC_FILTER); - } - - /* free group */ - memp_free(MEMP_IGMP_GROUP, group); - - /* move to "next" */ - group = next; - } - return ERR_OK; -} - -/** - * Report IGMP memberships for this interface - * - * @param netif network interface on which report IGMP memberships - */ -void -igmp_report_groups(struct netif *netif) -{ - struct igmp_group *group = netif_igmp_data(netif); - - LWIP_DEBUGF(IGMP_DEBUG, ("igmp_report_groups: sending IGMP reports on if %p\n", (void *)netif)); - - /* Skip the first group in the list, it is always the allsystems group added in igmp_start() */ - if (group != NULL) { - group = group->next; - } - - while (group != NULL) { - igmp_delaying_member(group, IGMP_JOIN_DELAYING_MEMBER_TMR); - group = group->next; - } -} - -/** - * Search for a group in the netif's igmp group list - * - * @param ifp the network interface for which to look - * @param addr the group ip address to search for - * @return a struct igmp_group* if the group has been found, - * NULL if the group wasn't found. - */ -struct igmp_group * -igmp_lookfor_group(struct netif *ifp, const ip4_addr_t *addr) -{ - struct igmp_group *group = netif_igmp_data(ifp); - - while (group != NULL) { - if (ip4_addr_cmp(&(group->group_address), addr)) { - return group; - } - group = group->next; - } - - /* to be clearer, we return NULL here instead of - * 'group' (which is also NULL at this point). - */ - return NULL; -} - -/** - * Search for a specific igmp group and create a new one if not found- - * - * @param ifp the network interface for which to look - * @param addr the group ip address to search - * @return a struct igmp_group*, - * NULL on memory error. - */ -static struct igmp_group * -igmp_lookup_group(struct netif *ifp, const ip4_addr_t *addr) -{ - struct igmp_group *group; - struct igmp_group *list_head = netif_igmp_data(ifp); - - /* Search if the group already exists */ - group = igmp_lookfor_group(ifp, addr); - if (group != NULL) { - /* Group already exists. */ - return group; - } - - /* Group doesn't exist yet, create a new one */ - group = (struct igmp_group *)memp_malloc(MEMP_IGMP_GROUP); - if (group != NULL) { - ip4_addr_set(&(group->group_address), addr); - group->timer = 0; /* Not running */ - group->group_state = IGMP_GROUP_NON_MEMBER; - group->last_reporter_flag = 0; - group->use = 0; - - /* Ensure allsystems group is always first in list */ - if (list_head == NULL) { - /* this is the first entry in linked list */ - LWIP_ASSERT("igmp_lookup_group: first group must be allsystems", - (ip4_addr_cmp(addr, &allsystems) != 0)); - group->next = NULL; - netif_set_client_data(ifp, LWIP_NETIF_CLIENT_DATA_INDEX_IGMP, group); - } else { - /* append _after_ first entry */ - LWIP_ASSERT("igmp_lookup_group: all except first group must not be allsystems", - (ip4_addr_cmp(addr, &allsystems) == 0)); - group->next = list_head->next; - list_head->next = group; - } - } - - LWIP_DEBUGF(IGMP_DEBUG, ("igmp_lookup_group: %sallocated a new group with address ", (group ? "" : "impossible to "))); - ip4_addr_debug_print(IGMP_DEBUG, addr); - LWIP_DEBUGF(IGMP_DEBUG, (" on if %p\n", (void *)ifp)); - - return group; -} - -/** - * Remove a group from netif's igmp group list, but don't free it yet - * - * @param group the group to remove from the netif's igmp group list - * @return ERR_OK if group was removed from the list, an err_t otherwise - */ -static err_t -igmp_remove_group(struct netif *netif, struct igmp_group *group) -{ - err_t err = ERR_OK; - struct igmp_group *tmp_group; - - /* Skip the first group in the list, it is always the allsystems group added in igmp_start() */ - for (tmp_group = netif_igmp_data(netif); tmp_group != NULL; tmp_group = tmp_group->next) { - if (tmp_group->next == group) { - tmp_group->next = group->next; - break; - } - } - /* Group not found in netif's igmp group list */ - if (tmp_group == NULL) { - err = ERR_ARG; - } - - return err; -} - -/** - * Called from ip_input() if a new IGMP packet is received. - * - * @param p received igmp packet, p->payload pointing to the igmp header - * @param inp network interface on which the packet was received - * @param dest destination ip address of the igmp packet - */ -void -igmp_input(struct pbuf *p, struct netif *inp, const ip4_addr_t *dest) -{ - struct igmp_msg *igmp; - struct igmp_group *group; - struct igmp_group *groupref; - - IGMP_STATS_INC(igmp.recv); - - /* Note that the length CAN be greater than 8 but only 8 are used - All are included in the checksum */ - if (p->len < IGMP_MINLEN) { - pbuf_free(p); - IGMP_STATS_INC(igmp.lenerr); - LWIP_DEBUGF(IGMP_DEBUG, ("igmp_input: length error\n")); - return; - } - - LWIP_DEBUGF(IGMP_DEBUG, ("igmp_input: message from ")); - ip4_addr_debug_print_val(IGMP_DEBUG, ip4_current_header()->src); - LWIP_DEBUGF(IGMP_DEBUG, (" to address ")); - ip4_addr_debug_print_val(IGMP_DEBUG, ip4_current_header()->dest); - LWIP_DEBUGF(IGMP_DEBUG, (" on if %p\n", (void *)inp)); - - /* Now calculate and check the checksum */ - igmp = (struct igmp_msg *)p->payload; - if (inet_chksum(igmp, p->len)) { - pbuf_free(p); - IGMP_STATS_INC(igmp.chkerr); - LWIP_DEBUGF(IGMP_DEBUG, ("igmp_input: checksum error\n")); - return; - } - - /* Packet is ok so find an existing group */ - group = igmp_lookfor_group(inp, dest); /* use the destination IP address of incoming packet */ - - /* If group can be found or create... */ - if (!group) { - pbuf_free(p); - IGMP_STATS_INC(igmp.drop); - LWIP_DEBUGF(IGMP_DEBUG, ("igmp_input: IGMP frame not for us\n")); - return; - } - - /* NOW ACT ON THE INCOMING MESSAGE TYPE... */ - switch (igmp->igmp_msgtype) { - case IGMP_MEMB_QUERY: - /* IGMP_MEMB_QUERY to the "all systems" address ? */ - if ((ip4_addr_cmp(dest, &allsystems)) && ip4_addr_isany(&igmp->igmp_group_address)) { - /* THIS IS THE GENERAL QUERY */ - LWIP_DEBUGF(IGMP_DEBUG, ("igmp_input: General IGMP_MEMB_QUERY on \"ALL SYSTEMS\" address (224.0.0.1) [igmp_maxresp=%i]\n", (int)(igmp->igmp_maxresp))); - - if (igmp->igmp_maxresp == 0) { - IGMP_STATS_INC(igmp.rx_v1); - LWIP_DEBUGF(IGMP_DEBUG, ("igmp_input: got an all hosts query with time== 0 - this is V1 and not implemented - treat as v2\n")); - igmp->igmp_maxresp = IGMP_V1_DELAYING_MEMBER_TMR; - } else { - IGMP_STATS_INC(igmp.rx_general); - } - - groupref = netif_igmp_data(inp); - - /* Do not send messages on the all systems group address! */ - /* Skip the first group in the list, it is always the allsystems group added in igmp_start() */ - if (groupref != NULL) { - groupref = groupref->next; - } - - while (groupref) { - igmp_delaying_member(groupref, igmp->igmp_maxresp); - groupref = groupref->next; - } - } else { - /* IGMP_MEMB_QUERY to a specific group ? */ - if (!ip4_addr_isany(&igmp->igmp_group_address)) { - LWIP_DEBUGF(IGMP_DEBUG, ("igmp_input: IGMP_MEMB_QUERY to a specific group ")); - ip4_addr_debug_print_val(IGMP_DEBUG, igmp->igmp_group_address); - if (ip4_addr_cmp(dest, &allsystems)) { - ip4_addr_t groupaddr; - LWIP_DEBUGF(IGMP_DEBUG, (" using \"ALL SYSTEMS\" address (224.0.0.1) [igmp_maxresp=%i]\n", (int)(igmp->igmp_maxresp))); - /* we first need to re-look for the group since we used dest last time */ - ip4_addr_copy(groupaddr, igmp->igmp_group_address); - group = igmp_lookfor_group(inp, &groupaddr); - } else { - LWIP_DEBUGF(IGMP_DEBUG, (" with the group address as destination [igmp_maxresp=%i]\n", (int)(igmp->igmp_maxresp))); - } - - if (group != NULL) { - IGMP_STATS_INC(igmp.rx_group); - igmp_delaying_member(group, igmp->igmp_maxresp); - } else { - IGMP_STATS_INC(igmp.drop); - } - } else { - IGMP_STATS_INC(igmp.proterr); - } - } - break; - case IGMP_V2_MEMB_REPORT: - LWIP_DEBUGF(IGMP_DEBUG, ("igmp_input: IGMP_V2_MEMB_REPORT\n")); - IGMP_STATS_INC(igmp.rx_report); - if (group->group_state == IGMP_GROUP_DELAYING_MEMBER) { - /* This is on a specific group we have already looked up */ - group->timer = 0; /* stopped */ - group->group_state = IGMP_GROUP_IDLE_MEMBER; - group->last_reporter_flag = 0; - } - break; - default: - LWIP_DEBUGF(IGMP_DEBUG, ("igmp_input: unexpected msg %d in state %d on group %p on if %p\n", - igmp->igmp_msgtype, group->group_state, (void *)&group, (void *)inp)); - IGMP_STATS_INC(igmp.proterr); - break; - } - - pbuf_free(p); - return; -} - -/** - * @ingroup igmp - * Join a group on one network interface. - * - * @param ifaddr ip address of the network interface which should join a new group - * @param groupaddr the ip address of the group which to join - * @return ERR_OK if group was joined on the netif(s), an err_t otherwise - */ -err_t -igmp_joingroup(const ip4_addr_t *ifaddr, const ip4_addr_t *groupaddr) -{ - err_t err = ERR_VAL; /* no matching interface */ - struct netif *netif; - - LWIP_ASSERT_CORE_LOCKED(); - - /* make sure it is multicast address */ - LWIP_ERROR("igmp_joingroup: attempt to join non-multicast address", ip4_addr_ismulticast(groupaddr), return ERR_VAL;); - LWIP_ERROR("igmp_joingroup: attempt to join allsystems address", (!ip4_addr_cmp(groupaddr, &allsystems)), return ERR_VAL;); - - /* loop through netif's */ - NETIF_FOREACH(netif) { - /* Should we join this interface ? */ - if ((netif->flags & NETIF_FLAG_IGMP) && ((ip4_addr_isany(ifaddr) || ip4_addr_cmp(netif_ip4_addr(netif), ifaddr)))) { - err = igmp_joingroup_netif(netif, groupaddr); - if (err != ERR_OK) { - /* Return an error even if some network interfaces are joined */ - /** @todo undo any other netif already joined */ - return err; - } - } - } - - return err; -} - -/** - * @ingroup igmp - * Join a group on one network interface. - * - * @param netif the network interface which should join a new group - * @param groupaddr the ip address of the group which to join - * @return ERR_OK if group was joined on the netif, an err_t otherwise - */ -err_t -igmp_joingroup_netif(struct netif *netif, const ip4_addr_t *groupaddr) -{ - struct igmp_group *group; - - LWIP_ASSERT_CORE_LOCKED(); - - /* make sure it is multicast address */ - LWIP_ERROR("igmp_joingroup_netif: attempt to join non-multicast address", ip4_addr_ismulticast(groupaddr), return ERR_VAL;); - LWIP_ERROR("igmp_joingroup_netif: attempt to join allsystems address", (!ip4_addr_cmp(groupaddr, &allsystems)), return ERR_VAL;); - - /* make sure it is an igmp-enabled netif */ - LWIP_ERROR("igmp_joingroup_netif: attempt to join on non-IGMP netif", netif->flags & NETIF_FLAG_IGMP, return ERR_VAL;); - - /* find group or create a new one if not found */ - group = igmp_lookup_group(netif, groupaddr); - - if (group != NULL) { - /* This should create a new group, check the state to make sure */ - if (group->group_state != IGMP_GROUP_NON_MEMBER) { - LWIP_DEBUGF(IGMP_DEBUG, ("igmp_joingroup_netif: join to group not in state IGMP_GROUP_NON_MEMBER\n")); - } else { - /* OK - it was new group */ - LWIP_DEBUGF(IGMP_DEBUG, ("igmp_joingroup_netif: join to new group: ")); - ip4_addr_debug_print(IGMP_DEBUG, groupaddr); - LWIP_DEBUGF(IGMP_DEBUG, ("\n")); - - /* If first use of the group, allow the group at the MAC level */ - if ((group->use == 0) && (netif->igmp_mac_filter != NULL)) { - LWIP_DEBUGF(IGMP_DEBUG, ("igmp_joingroup_netif: igmp_mac_filter(ADD ")); - ip4_addr_debug_print(IGMP_DEBUG, groupaddr); - LWIP_DEBUGF(IGMP_DEBUG, (") on if %p\n", (void *)netif)); - netif->igmp_mac_filter(netif, groupaddr, NETIF_ADD_MAC_FILTER); - } - - IGMP_STATS_INC(igmp.tx_join); - igmp_send(netif, group, IGMP_V2_MEMB_REPORT); - - igmp_start_timer(group, IGMP_JOIN_DELAYING_MEMBER_TMR); - - /* Need to work out where this timer comes from */ - group->group_state = IGMP_GROUP_DELAYING_MEMBER; - } - /* Increment group use */ - group->use++; - /* Join on this interface */ - return ERR_OK; - } else { - LWIP_DEBUGF(IGMP_DEBUG, ("igmp_joingroup_netif: Not enough memory to join to group\n")); - return ERR_MEM; - } -} - -/** - * @ingroup igmp - * Leave a group on one network interface. - * - * @param ifaddr ip address of the network interface which should leave a group - * @param groupaddr the ip address of the group which to leave - * @return ERR_OK if group was left on the netif(s), an err_t otherwise - */ -err_t -igmp_leavegroup(const ip4_addr_t *ifaddr, const ip4_addr_t *groupaddr) -{ - err_t err = ERR_VAL; /* no matching interface */ - struct netif *netif; - - LWIP_ASSERT_CORE_LOCKED(); - - /* make sure it is multicast address */ - LWIP_ERROR("igmp_leavegroup: attempt to leave non-multicast address", ip4_addr_ismulticast(groupaddr), return ERR_VAL;); - LWIP_ERROR("igmp_leavegroup: attempt to leave allsystems address", (!ip4_addr_cmp(groupaddr, &allsystems)), return ERR_VAL;); - - /* loop through netif's */ - NETIF_FOREACH(netif) { - /* Should we leave this interface ? */ - if ((netif->flags & NETIF_FLAG_IGMP) && ((ip4_addr_isany(ifaddr) || ip4_addr_cmp(netif_ip4_addr(netif), ifaddr)))) { - err_t res = igmp_leavegroup_netif(netif, groupaddr); - if (err != ERR_OK) { - /* Store this result if we have not yet gotten a success */ - err = res; - } - } - } - - return err; -} - -/** - * @ingroup igmp - * Leave a group on one network interface. - * - * @param netif the network interface which should leave a group - * @param groupaddr the ip address of the group which to leave - * @return ERR_OK if group was left on the netif, an err_t otherwise - */ -err_t -igmp_leavegroup_netif(struct netif *netif, const ip4_addr_t *groupaddr) -{ - struct igmp_group *group; - - LWIP_ASSERT_CORE_LOCKED(); - - /* make sure it is multicast address */ - LWIP_ERROR("igmp_leavegroup_netif: attempt to leave non-multicast address", ip4_addr_ismulticast(groupaddr), return ERR_VAL;); - LWIP_ERROR("igmp_leavegroup_netif: attempt to leave allsystems address", (!ip4_addr_cmp(groupaddr, &allsystems)), return ERR_VAL;); - - /* make sure it is an igmp-enabled netif */ - LWIP_ERROR("igmp_leavegroup_netif: attempt to leave on non-IGMP netif", netif->flags & NETIF_FLAG_IGMP, return ERR_VAL;); - - /* find group */ - group = igmp_lookfor_group(netif, groupaddr); - - if (group != NULL) { - /* Only send a leave if the flag is set according to the state diagram */ - LWIP_DEBUGF(IGMP_DEBUG, ("igmp_leavegroup_netif: Leaving group: ")); - ip4_addr_debug_print(IGMP_DEBUG, groupaddr); - LWIP_DEBUGF(IGMP_DEBUG, ("\n")); - - /* If there is no other use of the group */ - if (group->use <= 1) { - /* Remove the group from the list */ - igmp_remove_group(netif, group); - - /* If we are the last reporter for this group */ - if (group->last_reporter_flag) { - LWIP_DEBUGF(IGMP_DEBUG, ("igmp_leavegroup_netif: sending leaving group\n")); - IGMP_STATS_INC(igmp.tx_leave); - igmp_send(netif, group, IGMP_LEAVE_GROUP); - } - - /* Disable the group at the MAC level */ - if (netif->igmp_mac_filter != NULL) { - LWIP_DEBUGF(IGMP_DEBUG, ("igmp_leavegroup_netif: igmp_mac_filter(DEL ")); - ip4_addr_debug_print(IGMP_DEBUG, groupaddr); - LWIP_DEBUGF(IGMP_DEBUG, (") on if %p\n", (void *)netif)); - netif->igmp_mac_filter(netif, groupaddr, NETIF_DEL_MAC_FILTER); - } - - /* Free group struct */ - memp_free(MEMP_IGMP_GROUP, group); - } else { - /* Decrement group use */ - group->use--; - } - return ERR_OK; - } else { - LWIP_DEBUGF(IGMP_DEBUG, ("igmp_leavegroup_netif: not member of group\n")); - return ERR_VAL; - } -} - -/** - * The igmp timer function (both for NO_SYS=1 and =0) - * Should be called every IGMP_TMR_INTERVAL milliseconds (100 ms is default). - */ -void -igmp_tmr(void) -{ - struct netif *netif; - - NETIF_FOREACH(netif) { - struct igmp_group *group = netif_igmp_data(netif); - - while (group != NULL) { - if (group->timer > 0) { - group->timer--; - if (group->timer == 0) { - igmp_timeout(netif, group); - } - } - group = group->next; - } - } -} - -/** - * Called if a timeout for one group is reached. - * Sends a report for this group. - * - * @param group an igmp_group for which a timeout is reached - */ -static void -igmp_timeout(struct netif *netif, struct igmp_group *group) -{ - /* If the state is IGMP_GROUP_DELAYING_MEMBER then we send a report for this group - (unless it is the allsystems group) */ - if ((group->group_state == IGMP_GROUP_DELAYING_MEMBER) && - (!(ip4_addr_cmp(&(group->group_address), &allsystems)))) { - LWIP_DEBUGF(IGMP_DEBUG, ("igmp_timeout: report membership for group with address ")); - ip4_addr_debug_print_val(IGMP_DEBUG, group->group_address); - LWIP_DEBUGF(IGMP_DEBUG, (" on if %p\n", (void *)netif)); - - group->group_state = IGMP_GROUP_IDLE_MEMBER; - - IGMP_STATS_INC(igmp.tx_report); - igmp_send(netif, group, IGMP_V2_MEMB_REPORT); - } -} - -/** - * Start a timer for an igmp group - * - * @param group the igmp_group for which to start a timer - * @param max_time the time in multiples of IGMP_TMR_INTERVAL (decrease with - * every call to igmp_tmr()) - */ -static void -igmp_start_timer(struct igmp_group *group, u8_t max_time) -{ -#ifdef LWIP_RAND - group->timer = (u16_t)(max_time > 2 ? (LWIP_RAND() % max_time) : 1); -#else /* LWIP_RAND */ - /* ATTENTION: use this only if absolutely necessary! */ - group->timer = max_time / 2; -#endif /* LWIP_RAND */ - - if (group->timer == 0) { - group->timer = 1; - } -} - -/** - * Delaying membership report for a group if necessary - * - * @param group the igmp_group for which "delaying" membership report - * @param maxresp query delay - */ -static void -igmp_delaying_member(struct igmp_group *group, u8_t maxresp) -{ - if ((group->group_state == IGMP_GROUP_IDLE_MEMBER) || - ((group->group_state == IGMP_GROUP_DELAYING_MEMBER) && - ((group->timer == 0) || (maxresp < group->timer)))) { - igmp_start_timer(group, maxresp); - group->group_state = IGMP_GROUP_DELAYING_MEMBER; - } -} - - -/** - * Sends an IP packet on a network interface. This function constructs the IP header - * and calculates the IP header checksum. If the source IP address is NULL, - * the IP address of the outgoing network interface is filled in as source address. - * - * @param p the packet to send (p->payload points to the data, e.g. next - protocol header; if dest == LWIP_IP_HDRINCL, p already includes an - IP header and p->payload points to that IP header) - * @param src the source IP address to send from (if src == IP4_ADDR_ANY, the - * IP address of the netif used to send is used as source address) - * @param dest the destination IP address to send the packet to - * @param netif the netif on which to send this packet - * @return ERR_OK if the packet was sent OK - * ERR_BUF if p doesn't have enough space for IP/LINK headers - * returns errors returned by netif->output - */ -static err_t -igmp_ip_output_if(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, struct netif *netif) -{ - /* This is the "router alert" option */ - u16_t ra[2]; - ra[0] = PP_HTONS(ROUTER_ALERT); - ra[1] = 0x0000; /* Router shall examine packet */ - IGMP_STATS_INC(igmp.xmit); - return ip4_output_if_opt(p, src, dest, IGMP_TTL, 0, IP_PROTO_IGMP, netif, ra, ROUTER_ALERTLEN); -} - -/** - * Send an igmp packet to a specific group. - * - * @param group the group to which to send the packet - * @param type the type of igmp packet to send - */ -static void -igmp_send(struct netif *netif, struct igmp_group *group, u8_t type) -{ - struct pbuf *p = NULL; - struct igmp_msg *igmp = NULL; - ip4_addr_t src = *IP4_ADDR_ANY4; - ip4_addr_t *dest = NULL; - - /* IP header + "router alert" option + IGMP header */ - p = pbuf_alloc(PBUF_TRANSPORT, IGMP_MINLEN, PBUF_RAM); - - if (p) { - igmp = (struct igmp_msg *)p->payload; - LWIP_ASSERT("igmp_send: check that first pbuf can hold struct igmp_msg", - (p->len >= sizeof(struct igmp_msg))); - ip4_addr_copy(src, *netif_ip4_addr(netif)); - - if (type == IGMP_V2_MEMB_REPORT) { - dest = &(group->group_address); - ip4_addr_copy(igmp->igmp_group_address, group->group_address); - group->last_reporter_flag = 1; /* Remember we were the last to report */ - } else { - if (type == IGMP_LEAVE_GROUP) { - dest = &allrouters; - ip4_addr_copy(igmp->igmp_group_address, group->group_address); - } - } - - if ((type == IGMP_V2_MEMB_REPORT) || (type == IGMP_LEAVE_GROUP)) { - igmp->igmp_msgtype = type; - igmp->igmp_maxresp = 0; - igmp->igmp_checksum = 0; - igmp->igmp_checksum = inet_chksum(igmp, IGMP_MINLEN); - - igmp_ip_output_if(p, &src, dest, netif); - } - - pbuf_free(p); - } else { - LWIP_DEBUGF(IGMP_DEBUG, ("igmp_send: not enough memory for igmp_send\n")); - IGMP_STATS_INC(igmp.memerr); - } -} - -#endif /* LWIP_IPV4 && LWIP_IGMP */ diff --git a/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.c b/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.c deleted file mode 100644 index 26c26a9..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.c +++ /dev/null @@ -1,1132 +0,0 @@ -/** - * @file - * This is the IPv4 layer implementation for incoming and outgoing IP traffic. - * - * @see ip_frag.c - * - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -#include "lwip/opt.h" - -#if LWIP_IPV4 - -#include "lwip/ip.h" -#include "lwip/def.h" -#include "lwip/mem.h" -#include "lwip/ip4_frag.h" -#include "lwip/inet_chksum.h" -#include "lwip/netif.h" -#include "lwip/icmp.h" -#include "lwip/igmp.h" -#include "lwip/priv/raw_priv.h" -#include "lwip/udp.h" -#include "lwip/priv/tcp_priv.h" -#include "lwip/autoip.h" -#include "lwip/stats.h" -#include "lwip/prot/iana.h" - -#include - -#ifdef LWIP_HOOK_FILENAME -#include LWIP_HOOK_FILENAME -#endif - -/** Set this to 0 in the rare case of wanting to call an extra function to - * generate the IP checksum (in contrast to calculating it on-the-fly). */ -#ifndef LWIP_INLINE_IP_CHKSUM -#if LWIP_CHECKSUM_CTRL_PER_NETIF -#define LWIP_INLINE_IP_CHKSUM 0 -#else /* LWIP_CHECKSUM_CTRL_PER_NETIF */ -#define LWIP_INLINE_IP_CHKSUM 1 -#endif /* LWIP_CHECKSUM_CTRL_PER_NETIF */ -#endif - -#if LWIP_INLINE_IP_CHKSUM && CHECKSUM_GEN_IP -#define CHECKSUM_GEN_IP_INLINE 1 -#else -#define CHECKSUM_GEN_IP_INLINE 0 -#endif - -#if LWIP_DHCP || defined(LWIP_IP_ACCEPT_UDP_PORT) -#define IP_ACCEPT_LINK_LAYER_ADDRESSING 1 - -/** Some defines for DHCP to let link-layer-addressed packets through while the - * netif is down. - * To use this in your own application/protocol, define LWIP_IP_ACCEPT_UDP_PORT(port) - * to return 1 if the port is accepted and 0 if the port is not accepted. - */ -#if LWIP_DHCP && defined(LWIP_IP_ACCEPT_UDP_PORT) -/* accept DHCP client port and custom port */ -#define IP_ACCEPT_LINK_LAYER_ADDRESSED_PORT(port) (((port) == PP_NTOHS(LWIP_IANA_PORT_DHCP_CLIENT)) \ - || (LWIP_IP_ACCEPT_UDP_PORT(port))) -#elif defined(LWIP_IP_ACCEPT_UDP_PORT) /* LWIP_DHCP && defined(LWIP_IP_ACCEPT_UDP_PORT) */ -/* accept custom port only */ -#define IP_ACCEPT_LINK_LAYER_ADDRESSED_PORT(port) (LWIP_IP_ACCEPT_UDP_PORT(port)) -#else /* LWIP_DHCP && defined(LWIP_IP_ACCEPT_UDP_PORT) */ -/* accept DHCP client port only */ -#define IP_ACCEPT_LINK_LAYER_ADDRESSED_PORT(port) ((port) == PP_NTOHS(LWIP_IANA_PORT_DHCP_CLIENT)) -#endif /* LWIP_DHCP && defined(LWIP_IP_ACCEPT_UDP_PORT) */ - -#else /* LWIP_DHCP */ -#define IP_ACCEPT_LINK_LAYER_ADDRESSING 0 -#endif /* LWIP_DHCP */ - -/** The IP header ID of the next outgoing IP packet */ -static u16_t ip_id; - -#if LWIP_MULTICAST_TX_OPTIONS -/** The default netif used for multicast */ -static struct netif *ip4_default_multicast_netif; - -/** - * @ingroup ip4 - * Set a default netif for IPv4 multicast. */ -void -ip4_set_default_multicast_netif(struct netif *default_multicast_netif) -{ - ip4_default_multicast_netif = default_multicast_netif; -} -#endif /* LWIP_MULTICAST_TX_OPTIONS */ - -#ifdef LWIP_HOOK_IP4_ROUTE_SRC -/** - * Source based IPv4 routing must be fully implemented in - * LWIP_HOOK_IP4_ROUTE_SRC(). This function only provides the parameters. - */ -struct netif * -ip4_route_src(const ip4_addr_t *src, const ip4_addr_t *dest) -{ - if (src != NULL) { - /* when src==NULL, the hook is called from ip4_route(dest) */ - struct netif *netif = LWIP_HOOK_IP4_ROUTE_SRC(src, dest); - if (netif != NULL) { - return netif; - } - } - return ip4_route(dest); -} -#endif /* LWIP_HOOK_IP4_ROUTE_SRC */ - -/** - * Finds the appropriate network interface for a given IP address. It - * searches the list of network interfaces linearly. A match is found - * if the masked IP address of the network interface equals the masked - * IP address given to the function. - * - * @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) -{ -#if !LWIP_SINGLE_NETIF - struct netif *netif; - - LWIP_ASSERT_CORE_LOCKED(); - -#if LWIP_MULTICAST_TX_OPTIONS - /* Use administratively selected interface for multicast by default */ - if (ip4_addr_ismulticast(dest) && ip4_default_multicast_netif) { - return ip4_default_multicast_netif; - } -#endif /* LWIP_MULTICAST_TX_OPTIONS */ - - /* 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) { - /* 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))) { - /* network mask matches? */ - if (ip4_addr_netcmp(dest, netif_ip4_addr(netif), netif_ip4_netmask(netif))) { - /* return netif on which to forward IP packet */ - return netif; - } - /* 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))) { - /* return netif on which to forward IP packet */ - return netif; - } - } - } - -#if LWIP_NETIF_LOOPBACK && !LWIP_HAVE_LOOPIF - /* loopif is disabled, looopback traffic is passed through any netif */ - if (ip4_addr_isloopback(dest)) { - /* don't check for link on loopback traffic */ - if (netif_default != NULL && netif_is_up(netif_default)) { - return netif_default; - } - /* default netif is not up, just use any netif for loopback traffic */ - NETIF_FOREACH(netif) { - if (netif_is_up(netif)) { - return netif; - } - } - return NULL; - } -#endif /* LWIP_NETIF_LOOPBACK && !LWIP_HAVE_LOOPIF */ - -#ifdef LWIP_HOOK_IP4_ROUTE_SRC - netif = LWIP_HOOK_IP4_ROUTE_SRC(NULL, dest); - if (netif != NULL) { - return netif; - } -#elif defined(LWIP_HOOK_IP4_ROUTE) - netif = LWIP_HOOK_IP4_ROUTE(dest); - if (netif != NULL) { - return netif; - } -#endif -#endif /* !LWIP_SINGLE_NETIF */ - - if ((netif_default == NULL) || !netif_is_up(netif_default) || !netif_is_link_up(netif_default) || - ip4_addr_isany_val(*netif_ip4_addr(netif_default)) || ip4_addr_isloopback(dest)) { - /* No matching netif found and default netif is not usable. - 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; - } - - return netif_default; -} - -#if IP_FORWARD -/** - * Determine whether an IP address is in a reserved set of addresses - * that may not be forwarded, or whether datagrams to that destination - * may be forwarded. - * @param p the packet to forward - * @return 1: can forward 0: discard - */ -static int -ip4_canforward(struct pbuf *p) -{ - u32_t addr = lwip_htonl(ip4_addr_get_u32(ip4_current_dest_addr())); - -#ifdef LWIP_HOOK_IP4_CANFORWARD - int ret = LWIP_HOOK_IP4_CANFORWARD(p, addr); - if (ret >= 0) { - return ret; - } -#endif /* LWIP_HOOK_IP4_CANFORWARD */ - - if (p->flags & PBUF_FLAG_LLBCAST) { - /* don't route link-layer broadcasts */ - return 0; - } - if ((p->flags & PBUF_FLAG_LLMCAST) || IP_MULTICAST(addr)) { - /* don't route link-layer multicasts (use LWIP_HOOK_IP4_CANFORWARD instead) */ - return 0; - } - if (IP_EXPERIMENTAL(addr)) { - return 0; - } - if (IP_CLASSA(addr)) { - u32_t net = addr & IP_CLASSA_NET; - if ((net == 0) || (net == ((u32_t)IP_LOOPBACKNET << IP_CLASSA_NSHIFT))) { - /* don't route loopback packets */ - return 0; - } - } - return 1; -} - -/** - * Forwards an IP packet. It finds an appropriate route for the - * packet, decrements the TTL value of the packet, adjusts the - * checksum and outputs the packet on the appropriate interface. - * - * @param p the packet to forward (p->payload points to IP header) - * @param iphdr the IP header of the input packet - * @param inp the netif on which this packet was received - */ -static void -ip4_forward(struct pbuf *p, struct ip_hdr *iphdr, struct netif *inp) -{ - struct netif *netif; - - PERF_START; - LWIP_UNUSED_ARG(inp); - - if (!ip4_canforward(p)) { - goto return_noroute; - } - - /* RFC3927 2.7: do not forward link-local addresses */ - if (ip4_addr_islinklocal(ip4_current_dest_addr())) { - LWIP_DEBUGF(IP_DEBUG, ("ip4_forward: not forwarding LLA %"U16_F".%"U16_F".%"U16_F".%"U16_F"\n", - ip4_addr1_16(ip4_current_dest_addr()), ip4_addr2_16(ip4_current_dest_addr()), - ip4_addr3_16(ip4_current_dest_addr()), ip4_addr4_16(ip4_current_dest_addr()))); - goto return_noroute; - } - - /* Find network interface where to forward this IP packet to. */ - netif = ip4_route_src(ip4_current_src_addr(), ip4_current_dest_addr()); - if (netif == NULL) { - LWIP_DEBUGF(IP_DEBUG, ("ip4_forward: no forwarding route for %"U16_F".%"U16_F".%"U16_F".%"U16_F" found\n", - ip4_addr1_16(ip4_current_dest_addr()), ip4_addr2_16(ip4_current_dest_addr()), - ip4_addr3_16(ip4_current_dest_addr()), ip4_addr4_16(ip4_current_dest_addr()))); - /* @todo: send ICMP_DUR_NET? */ - goto return_noroute; - } -#if !IP_FORWARD_ALLOW_TX_ON_RX_NETIF - /* Do not forward packets onto the same network interface on which - * they arrived. */ - if (netif == inp) { - LWIP_DEBUGF(IP_DEBUG, ("ip4_forward: not bouncing packets back on incoming interface.\n")); - goto return_noroute; - } -#endif /* IP_FORWARD_ALLOW_TX_ON_RX_NETIF */ - - /* decrement TTL */ - IPH_TTL_SET(iphdr, IPH_TTL(iphdr) - 1); - /* send ICMP if TTL == 0 */ - if (IPH_TTL(iphdr) == 0) { - MIB2_STATS_INC(mib2.ipinhdrerrors); -#if LWIP_ICMP - /* Don't send ICMP messages in response to ICMP messages */ - if (IPH_PROTO(iphdr) != IP_PROTO_ICMP) { - icmp_time_exceeded(p, ICMP_TE_TTL); - } -#endif /* LWIP_ICMP */ - return; - } - - /* Incrementally update the IP checksum. */ - if (IPH_CHKSUM(iphdr) >= PP_HTONS(0xffffU - 0x100)) { - IPH_CHKSUM_SET(iphdr, (u16_t)(IPH_CHKSUM(iphdr) + PP_HTONS(0x100) + 1)); - } else { - IPH_CHKSUM_SET(iphdr, (u16_t)(IPH_CHKSUM(iphdr) + PP_HTONS(0x100))); - } - - LWIP_DEBUGF(IP_DEBUG, ("ip4_forward: forwarding packet to %"U16_F".%"U16_F".%"U16_F".%"U16_F"\n", - ip4_addr1_16(ip4_current_dest_addr()), ip4_addr2_16(ip4_current_dest_addr()), - ip4_addr3_16(ip4_current_dest_addr()), ip4_addr4_16(ip4_current_dest_addr()))); - - IP_STATS_INC(ip.fw); - MIB2_STATS_INC(mib2.ipforwdatagrams); - IP_STATS_INC(ip.xmit); - - PERF_STOP("ip4_forward"); - /* don't fragment if interface has mtu set to 0 [loopif] */ - if (netif->mtu && (p->tot_len > netif->mtu)) { - if ((IPH_OFFSET(iphdr) & PP_NTOHS(IP_DF)) == 0) { -#if IP_FRAG - ip4_frag(p, netif, ip4_current_dest_addr()); -#else /* IP_FRAG */ - /* @todo: send ICMP Destination Unreachable code 13 "Communication administratively prohibited"? */ -#endif /* IP_FRAG */ - } else { -#if LWIP_ICMP - /* send ICMP Destination Unreachable code 4: "Fragmentation Needed and DF Set" */ - icmp_dest_unreach(p, ICMP_DUR_FRAG); -#endif /* LWIP_ICMP */ - } - return; - } - /* transmit pbuf on chosen interface */ - netif->output(netif, p, ip4_current_dest_addr()); - return; -return_noroute: - MIB2_STATS_INC(mib2.ipoutnoroutes); -} -#endif /* IP_FORWARD */ - -/** Return true if the current input packet should be accepted on this netif */ -static int -ip4_input_accept(struct netif *netif) -{ - LWIP_DEBUGF(IP_DEBUG, ("ip_input: iphdr->dest 0x%"X32_F" netif->ip_addr 0x%"X32_F" (0x%"X32_F", 0x%"X32_F", 0x%"X32_F")\n", - ip4_addr_get_u32(ip4_current_dest_addr()), ip4_addr_get_u32(netif_ip4_addr(netif)), - 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)))) { - /* unicast to this interface address? */ - if (ip4_addr_cmp(ip4_current_dest_addr(), netif_ip4_addr(netif)) || - /* or broadcast on this interface network address? */ - ip4_addr_isbroadcast(ip4_current_dest_addr(), netif) -#if LWIP_NETIF_LOOPBACK && !LWIP_HAVE_LOOPIF - || (ip4_addr_get_u32(ip4_current_dest_addr()) == PP_HTONL(IPADDR_LOOPBACK)) -#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; - } -#if LWIP_AUTOIP - /* connections to link-local addresses must persist after changing - the netif's address (RFC3927 ch. 1.9) */ - if (autoip_accept_packet(netif, ip4_current_dest_addr())) { - LWIP_DEBUGF(IP_DEBUG, ("ip4_input: LLA packet accepted on interface %c%c\n", - netif->name[0], netif->name[1])); - /* accept on this netif */ - return 1; - } -#endif /* LWIP_AUTOIP */ - } - return 0; -} - -/** - * This function is called by the network interface device driver when - * an IP packet is received. The function does the basic checks of the - * IP header such as packet size being at least larger than the header - * size etc. If the packet was not destined for us, the packet is - * forwarded (using ip_forward). The IP checksum is always checked. - * - * Finally, the packet is sent to the upper layer protocol input function. - * - * @param p the received IP packet (p->payload points to IP header) - * @param inp the netif on which this packet was received - * @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) -{ - 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; -#endif /* IP_ACCEPT_LINK_LAYER_ADDRESSING || LWIP_IGMP */ -#if LWIP_RAW - raw_input_state_t raw_status; -#endif /* LWIP_RAW */ - - LWIP_ASSERT_CORE_LOCKED(); - - IP_STATS_INC(ip.recv); - MIB2_STATS_INC(mib2.ipinreceives); - - /* identify the IP header */ - iphdr = (struct ip_hdr *)p->payload; - if (IPH_V(iphdr) != 4) { - 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); - IP_STATS_INC(ip.err); - IP_STATS_INC(ip.drop); - MIB2_STATS_INC(mib2.ipinhdrerrors); - return ERR_OK; - } - -#ifdef LWIP_HOOK_IP4_INPUT - if (LWIP_HOOK_IP4_INPUT(p, inp)) { - /* the packet has been eaten */ - return ERR_OK; - } -#endif - - /* obtain IP header length in bytes */ - iphdr_hlen = IPH_HL_BYTES(iphdr); - /* obtain ip length in bytes */ - iphdr_len = lwip_ntohs(IPH_LEN(iphdr)); - - /* Trim pbuf. This is especially required for packets < 60 bytes. */ - if (iphdr_len < p->tot_len) { - pbuf_realloc(p, iphdr_len); - } - - /* 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)) { - if (iphdr_hlen < IP_HLEN) { - LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, - ("ip4_input: short IP header (%"U16_F" bytes) received, IP packet dropped\n", iphdr_hlen)); - } - if (iphdr_hlen > p->len) { - LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, - ("IP header (len %"U16_F") does not fit in first pbuf (len %"U16_F"), IP packet dropped.\n", - iphdr_hlen, p->len)); - } - if (iphdr_len > p->tot_len) { - 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); - IP_STATS_INC(ip.lenerr); - IP_STATS_INC(ip.drop); - MIB2_STATS_INC(mib2.ipindiscards); - return ERR_OK; - } - - /* verify checksum */ -#if CHECKSUM_CHECK_IP - IF__NETIF_CHECKSUM_ENABLED(inp, NETIF_CHECKSUM_CHECK_IP) { - if (inet_chksum(iphdr, iphdr_hlen) != 0) { - - LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, - ("Checksum (0x%"X16_F") failed, IP packet dropped.\n", inet_chksum(iphdr, iphdr_hlen))); - ip4_debug_print(p); - pbuf_free(p); - IP_STATS_INC(ip.chkerr); - IP_STATS_INC(ip.drop); - MIB2_STATS_INC(mib2.ipinhdrerrors); - return ERR_OK; - } - } -#endif - - /* copy IP addresses to aligned ip_addr_t */ - ip_addr_copy_from_ip4(ip_data.current_iphdr_dest, iphdr->dest); - ip_addr_copy_from_ip4(ip_data.current_iphdr_src, iphdr->src); - - /* match packet against an interface, i.e. is this packet for us? */ - if (ip4_addr_ismulticast(ip4_current_dest_addr())) { -#if LWIP_IGMP - if ((inp->flags & NETIF_FLAG_IGMP) && (igmp_lookfor_group(inp, ip4_current_dest_addr()))) { - /* IGMP snooping switches need 0.0.0.0 to be allowed as source address (RFC 4541) */ - ip4_addr_t allsystems; - IP4_ADDR(&allsystems, 224, 0, 0, 1); - if (ip4_addr_cmp(ip4_current_dest_addr(), &allsystems) && - ip4_addr_isany(ip4_current_src_addr())) { - check_ip_src = 0; - } - netif = inp; - } else { - netif = NULL; - } -#else /* LWIP_IGMP */ - if ((netif_is_up(inp)) && (!ip4_addr_isany_val(*netif_ip4_addr(inp)))) { - netif = inp; - } else { - netif = NULL; - } -#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)) { - netif = inp; - } else { - netif = NULL; -#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())) -#endif /* !LWIP_NETIF_LOOPBACK || LWIP_HAVE_LOOPIF */ - { -#if !LWIP_SINGLE_NETIF - NETIF_FOREACH(netif) { - if (netif == inp) { - /* we checked that before already */ - continue; - } - if (ip4_input_accept(netif)) { - break; - } - } -#endif /* !LWIP_SINGLE_NETIF */ - } - } - } - -#if IP_ACCEPT_LINK_LAYER_ADDRESSING - /* Pass DHCP messages regardless of destination address. DHCP traffic is addressed - * using link layer addressing (such as Ethernet MAC) so we must not filter on IP. - * According to RFC 1542 section 3.1.1, referred by RFC 2131). - * - * 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) { - /* remote port is DHCP server? */ - if (IPH_PROTO(iphdr) == IP_PROTO_UDP) { - const struct udp_hdr *udphdr = (const struct udp_hdr *)((const u8_t *)iphdr + iphdr_hlen); - 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)) { - LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_TRACE, ("ip4_input: DHCP packet accepted.\n")); - netif = inp; - check_ip_src = 0; - } - } - } -#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 -#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()) -#endif /* IP_ACCEPT_LINK_LAYER_ADDRESSING */ - ) -#endif /* LWIP_IGMP || IP_ACCEPT_LINK_LAYER_ADDRESSING */ - { - if ((ip4_addr_isbroadcast(ip4_current_src_addr(), inp)) || - (ip4_addr_ismulticast(ip4_current_src_addr()))) { - /* 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); - IP_STATS_INC(ip.drop); - MIB2_STATS_INC(mib2.ipinaddrerrors); - MIB2_STATS_INC(mib2.ipindiscards); - return ERR_OK; - } - } - - /* packet not for us? */ - if (netif == NULL) { - /* packet not for us, route or discard */ - LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_TRACE, ("ip4_input: packet not for us.\n")); -#if IP_FORWARD - /* non-broadcast packet? */ - if (!ip4_addr_isbroadcast(ip4_current_dest_addr(), inp)) { - /* try to forward IP packet on (other) interfaces */ - ip4_forward(p, (struct ip_hdr *)p->payload, inp); - } else -#endif /* IP_FORWARD */ - { - IP_STATS_INC(ip.drop); - MIB2_STATS_INC(mib2.ipinaddrerrors); - MIB2_STATS_INC(mib2.ipindiscards); - } - pbuf_free(p); - return ERR_OK; - } - /* packet consists of multiple fragments? */ - if ((IPH_OFFSET(iphdr) & PP_HTONS(IP_OFFMASK | IP_MF)) != 0) { -#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); - /* packet not fully reassembled yet? */ - if (p == NULL) { - return ERR_OK; - } - iphdr = (const struct ip_hdr *)p->payload; -#else /* IP_REASSEMBLY == 0, no packet fragment reassembly code present */ - pbuf_free(p); - LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("IP packet dropped since it was fragmented (0x%"X16_F") (while IP_REASSEMBLY == 0).\n", - lwip_ntohs(IPH_OFFSET(iphdr)))); - IP_STATS_INC(ip.opterr); - IP_STATS_INC(ip.drop); - /* unsupported protocol feature */ - MIB2_STATS_INC(mib2.ipinunknownprotos); - return ERR_OK; -#endif /* IP_REASSEMBLY */ - } - -#if IP_OPTIONS_ALLOWED == 0 /* no support for IP options in the IP header? */ - -#if LWIP_IGMP - /* there is an extra "router alert" option in IGMP messages which we allow for but do not police */ - if ((iphdr_hlen > IP_HLEN) && (IPH_PROTO(iphdr) != IP_PROTO_IGMP)) { -#else - if (iphdr_hlen > IP_HLEN) { -#endif /* LWIP_IGMP */ - LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("IP packet dropped since there were IP options (while IP_OPTIONS_ALLOWED == 0).\n")); - pbuf_free(p); - IP_STATS_INC(ip.opterr); - IP_STATS_INC(ip.drop); - /* unsupported protocol feature */ - MIB2_STATS_INC(mib2.ipinunknownprotos); - return ERR_OK; - } -#endif /* IP_OPTIONS_ALLOWED == 0 */ - - /* 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; - ip_data.current_input_netif = inp; - ip_data.current_ip4_header = iphdr; - ip_data.current_ip_header_tot_len = IPH_HL_BYTES(iphdr); - -#if LWIP_RAW - /* 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. */ - - switch (IPH_PROTO(iphdr)) { -#if LWIP_UDP - case IP_PROTO_UDP: -#if LWIP_UDPLITE - case IP_PROTO_UDPLITE: -#endif /* LWIP_UDPLITE */ - MIB2_STATS_INC(mib2.ipindelivers); - udp_input(p, inp); - break; -#endif /* LWIP_UDP */ -#if LWIP_TCP - case IP_PROTO_TCP: - MIB2_STATS_INC(mib2.ipindelivers); - tcp_input(p, inp); - break; -#endif /* LWIP_TCP */ -#if LWIP_ICMP - case IP_PROTO_ICMP: - MIB2_STATS_INC(mib2.ipindelivers); - icmp_input(p, inp); - break; -#endif /* LWIP_ICMP */ -#if LWIP_IGMP - case IP_PROTO_IGMP: - igmp_input(p, inp, ip4_current_dest_addr()); - break; -#endif /* LWIP_IGMP */ - default: -#if LWIP_RAW - if (raw_status == RAW_INPUT_DELIVERED) { - MIB2_STATS_INC(mib2.ipindelivers); - } 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) && - !ip4_addr_ismulticast(ip4_current_dest_addr())) { - pbuf_header_force(p, (s16_t)iphdr_hlen); /* Move to ip header, no check necessary. */ - icmp_dest_unreach(p, ICMP_DUR_PROTO); - } -#endif /* LWIP_ICMP */ - - LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("Unsupported transport protocol %"U16_F"\n", (u16_t)IPH_PROTO(iphdr))); - - IP_STATS_INC(ip.proterr); - IP_STATS_INC(ip.drop); - MIB2_STATS_INC(mib2.ipinunknownprotos); - } - pbuf_free(p); - break; - } - } - - /* @todo: this is not really necessary... */ - ip_data.current_netif = NULL; - ip_data.current_input_netif = NULL; - ip_data.current_ip4_header = NULL; - ip_data.current_ip_header_tot_len = 0; - ip4_addr_set_any(ip4_current_src_addr()); - ip4_addr_set_any(ip4_current_dest_addr()); - - return ERR_OK; -} - -/** - * Sends an IP packet on a network interface. This function constructs - * the IP header and calculates the IP header checksum. If the source - * IP address is NULL, the IP address of the outgoing network - * interface is filled in as source address. - * If the destination IP address is LWIP_IP_HDRINCL, p is assumed to already - * include an IP header and p->payload points to it instead of the data. - * - * @param p the packet to send (p->payload points to the data, e.g. next - protocol header; if dest == LWIP_IP_HDRINCL, p already includes an - IP header and p->payload points to that IP header) - * @param src the source IP address to send from (if src == IP4_ADDR_ANY, the - * IP address of the netif used to send is used as source address) - * @param dest the destination IP address to send the packet to - * @param ttl the TTL value to be set in the IP header - * @param tos the TOS value to be set in the IP header - * @param proto the PROTOCOL to be set in the IP header - * @param netif the netif on which to send this packet - * @return ERR_OK if the packet was sent OK - * ERR_BUF if p doesn't have enough space for IP/LINK headers - * returns errors returned by netif->output - * - * @note ip_id: RFC791 "some host may be able to simply use - * unique identifiers independent of destination" - */ -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) -{ -#if IP_OPTIONS_SEND - return ip4_output_if_opt(p, src, dest, ttl, tos, proto, netif, NULL, 0); -} - -/** - * Same as ip_output_if() but with the possibility to include IP options: - * - * @ param ip_options pointer to the IP options, copied into the IP header - * @ param optlen length of ip_options - */ -err_t -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; - if (dest != LWIP_IP_HDRINCL) { - if (ip4_addr_isany(src)) { - src_used = netif_ip4_addr(netif); - } - } - -#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); -#endif /* IP_OPTIONS_SEND */ -} - -/** - * Same as ip_output_if() but 'src' address is not replaced by netif address - * when it is 'any'. - */ -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) -{ -#if IP_OPTIONS_SEND - return ip4_output_if_opt_src(p, src, dest, ttl, tos, proto, netif, NULL, 0); -} - -/** - * Same as ip_output_if_opt() but 'src' address is not replaced by netif address - * when it is 'any'. - */ -err_t -ip4_output_if_opt_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, void *ip_options, - u16_t optlen) -{ -#endif /* IP_OPTIONS_SEND */ - struct ip_hdr *iphdr; - ip4_addr_t dest_addr; -#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); - - MIB2_STATS_INC(mib2.ipoutrequests); - - /* Should the IP header be generated or is it already included in p? */ - if (dest != LWIP_IP_HDRINCL) { - u16_t ip_hlen = IP_HLEN; -#if IP_OPTIONS_SEND - u16_t optlen_aligned = 0; - if (optlen != 0) { -#if CHECKSUM_GEN_IP_INLINE - int i; -#endif /* CHECKSUM_GEN_IP_INLINE */ - if (optlen > (IP_HLEN_MAX - IP_HLEN)) { - /* optlen too long */ - LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("ip4_output_if_opt: optlen too long\n")); - IP_STATS_INC(ip.err); - MIB2_STATS_INC(mib2.ipoutdiscards); - return ERR_VAL; - } - /* round up to a multiple of 4 */ - optlen_aligned = (u16_t)((optlen + 3) & ~3); - ip_hlen = (u16_t)(ip_hlen + optlen_aligned); - /* First write in the IP options */ - if (pbuf_add_header(p, optlen_aligned)) { - LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("ip4_output_if_opt: not enough room for IP options in pbuf\n")); - IP_STATS_INC(ip.err); - MIB2_STATS_INC(mib2.ipoutdiscards); - return ERR_BUF; - } - MEMCPY(p->payload, ip_options, optlen); - if (optlen < optlen_aligned) { - /* zero the remaining bytes */ - memset(((char *)p->payload) + optlen, 0, (size_t)(optlen_aligned - optlen)); - } -#if CHECKSUM_GEN_IP_INLINE - for (i = 0; i < optlen_aligned / 2; i++) { - chk_sum += ((u16_t *)p->payload)[i]; - } -#endif /* CHECKSUM_GEN_IP_INLINE */ - } -#endif /* IP_OPTIONS_SEND */ - /* generate IP header */ - if (pbuf_add_header(p, IP_HLEN)) { - 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; - } - - iphdr = (struct ip_hdr *)p->payload; - LWIP_ASSERT("check that first pbuf can hold struct ip_hdr", - (p->len >= sizeof(struct ip_hdr))); - - IPH_TTL_SET(iphdr, ttl); - IPH_PROTO_SET(iphdr, proto); -#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); -#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); - IPH_TOS_SET(iphdr, tos); -#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)); -#if CHECKSUM_GEN_IP_INLINE - chk_sum += iphdr->_len; -#endif /* CHECKSUM_GEN_IP_INLINE */ - IPH_OFFSET_SET(iphdr, 0); - IPH_ID_SET(iphdr, lwip_htons(ip_id)); -#if CHECKSUM_GEN_IP_INLINE - chk_sum += iphdr->_id; -#endif /* CHECKSUM_GEN_IP_INLINE */ - ++ip_id; - - if (src == NULL) { - ip4_addr_copy(iphdr->src, *IP4_ADDR_ANY4); - } else { - /* src cannot be NULL here */ - ip4_addr_copy(iphdr->src, *src); - } - -#if CHECKSUM_GEN_IP_INLINE - chk_sum += ip4_addr_get_u32(&iphdr->src) & 0xFFFF; - chk_sum += ip4_addr_get_u32(&iphdr->src) >> 16; - chk_sum = (chk_sum >> 16) + (chk_sum & 0xFFFF); - chk_sum = (chk_sum >> 16) + chk_sum; - chk_sum = ~chk_sum; - IF__NETIF_CHECKSUM_ENABLED(netif, NETIF_CHECKSUM_GEN_IP) { - iphdr->_chksum = (u16_t)chk_sum; /* network order */ - } -#if LWIP_CHECKSUM_CTRL_PER_NETIF - else { - IPH_CHKSUM_SET(iphdr, 0); - } -#endif /* LWIP_CHECKSUM_CTRL_PER_NETIF*/ -#else /* CHECKSUM_GEN_IP_INLINE */ - IPH_CHKSUM_SET(iphdr, 0); -#if CHECKSUM_GEN_IP - IF__NETIF_CHECKSUM_ENABLED(netif, NETIF_CHECKSUM_GEN_IP) { - IPH_CHKSUM_SET(iphdr, inet_chksum(iphdr, ip_hlen)); - } -#endif /* CHECKSUM_GEN_IP */ -#endif /* CHECKSUM_GEN_IP_INLINE */ - } else { - /* IP header already included in p */ - if (p->len < IP_HLEN) { - 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; - } - iphdr = (struct ip_hdr *)p->payload; - ip4_addr_copy(dest_addr, iphdr->dest); - dest = &dest_addr; - } - - IP_STATS_INC(ip.xmit); - - LWIP_DEBUGF(IP_DEBUG, ("ip4_output_if: %c%c%"U16_F"\n", netif->name[0], netif->name[1], (u16_t)netif->num)); - ip4_debug_print(p); - -#if ENABLE_LOOPBACK - if (ip4_addr_cmp(dest, netif_ip4_addr(netif)) -#if !LWIP_HAVE_LOOPIF - || ip4_addr_isloopback(dest) -#endif /* !LWIP_HAVE_LOOPIF */ - ) { - /* Packet to self, enqueue it for loopback */ - LWIP_DEBUGF(IP_DEBUG, ("netif_loop_output()")); - return netif_loop_output(netif, p); - } -#if LWIP_MULTICAST_TX_OPTIONS - if ((p->flags & PBUF_FLAG_MCASTLOOP) != 0) { - netif_loop_output(netif, p); - } -#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)) { - return ip4_frag(p, netif, dest); - } -#endif /* IP_FRAG */ - - LWIP_DEBUGF(IP_DEBUG, ("ip4_output_if: call netif->output()\n")); - return netif->output(netif, p, dest); -} - -/** - * Simple interface to ip_output_if. It finds the outgoing network - * interface and calls upon ip_output_if to do the actual work. - * - * @param p the packet to send (p->payload points to the data, e.g. next - protocol header; if dest == LWIP_IP_HDRINCL, p already includes an - IP header and p->payload points to that IP header) - * @param src the source IP address to send from (if src == IP4_ADDR_ANY, the - * IP address of the netif used to send is used as source address) - * @param dest the destination IP address to send the packet to - * @param ttl the TTL value to be set in the IP header - * @param tos the TOS value to be set in the IP header - * @param proto the PROTOCOL to be set in the IP header - * - * @return ERR_RTE if no route is found - * see ip_output_if() for more return values - */ -err_t -ip4_output(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; - - LWIP_IP_CHECK_PBUF_REF_COUNT_FOR_TX(p); - - if ((netif = ip4_route_src(src, dest)) == NULL) { - LWIP_DEBUGF(IP_DEBUG, ("ip4_output: 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); - return ERR_RTE; - } - - return ip4_output_if(p, src, dest, ttl, tos, proto, netif); -} - -#if LWIP_NETIF_USE_HINTS -/** Like ip_output, but takes and addr_hint pointer that is passed on to netif->addr_hint - * before calling ip_output_if. - * - * @param p the packet to send (p->payload points to the data, e.g. next - protocol header; if dest == LWIP_IP_HDRINCL, p already includes an - IP header and p->payload points to that IP header) - * @param src the source IP address to send from (if src == IP4_ADDR_ANY, the - * IP address of the netif used to send is used as source address) - * @param dest the destination IP address to send the packet to - * @param ttl the TTL value to be set in the IP header - * @param tos the TOS value to be set in the IP header - * @param proto the PROTOCOL to be set in the IP header - * @param netif_hint netif output hint pointer set to netif->hint before - * calling ip_output_if() - * - * @return ERR_RTE if no route is found - * see ip_output_if() for more return values - */ -err_t -ip4_output_hinted(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, - u8_t ttl, u8_t tos, u8_t proto, struct netif_hint *netif_hint) -{ - struct netif *netif; - err_t err; - - LWIP_IP_CHECK_PBUF_REF_COUNT_FOR_TX(p); - - if ((netif = ip4_route_src(src, dest)) == NULL) { - LWIP_DEBUGF(IP_DEBUG, ("ip4_output: 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); - return ERR_RTE; - } - - NETIF_SET_HINTS(netif, netif_hint); - err = ip4_output_if(p, src, dest, ttl, tos, proto, netif); - NETIF_RESET_HINTS(netif); - - return err; -} -#endif /* LWIP_NETIF_USE_HINTS*/ - -#if IP_DEBUG -/* Print an IP header by using LWIP_DEBUGF - * @param p an IP packet, p->payload pointing to the IP header - */ -void -ip4_debug_print(struct pbuf *p) -{ - struct ip_hdr *iphdr = (struct ip_hdr *)p->payload; - - LWIP_DEBUGF(IP_DEBUG, ("IP header:\n")); - LWIP_DEBUGF(IP_DEBUG, ("+-------------------------------+\n")); - LWIP_DEBUGF(IP_DEBUG, ("|%2"S16_F" |%2"S16_F" | 0x%02"X16_F" | %5"U16_F" | (v, hl, tos, len)\n", - (u16_t)IPH_V(iphdr), - (u16_t)IPH_HL(iphdr), - (u16_t)IPH_TOS(iphdr), - lwip_ntohs(IPH_LEN(iphdr)))); - LWIP_DEBUGF(IP_DEBUG, ("+-------------------------------+\n")); - LWIP_DEBUGF(IP_DEBUG, ("| %5"U16_F" |%"U16_F"%"U16_F"%"U16_F"| %4"U16_F" | (id, flags, offset)\n", - lwip_ntohs(IPH_ID(iphdr)), - (u16_t)(lwip_ntohs(IPH_OFFSET(iphdr)) >> 15 & 1), - (u16_t)(lwip_ntohs(IPH_OFFSET(iphdr)) >> 14 & 1), - (u16_t)(lwip_ntohs(IPH_OFFSET(iphdr)) >> 13 & 1), - (u16_t)(lwip_ntohs(IPH_OFFSET(iphdr)) & IP_OFFMASK))); - LWIP_DEBUGF(IP_DEBUG, ("+-------------------------------+\n")); - LWIP_DEBUGF(IP_DEBUG, ("| %3"U16_F" | %3"U16_F" | 0x%04"X16_F" | (ttl, proto, chksum)\n", - (u16_t)IPH_TTL(iphdr), - (u16_t)IPH_PROTO(iphdr), - lwip_ntohs(IPH_CHKSUM(iphdr)))); - LWIP_DEBUGF(IP_DEBUG, ("+-------------------------------+\n")); - LWIP_DEBUGF(IP_DEBUG, ("| %3"U16_F" | %3"U16_F" | %3"U16_F" | %3"U16_F" | (src)\n", - ip4_addr1_16_val(iphdr->src), - ip4_addr2_16_val(iphdr->src), - ip4_addr3_16_val(iphdr->src), - ip4_addr4_16_val(iphdr->src))); - LWIP_DEBUGF(IP_DEBUG, ("+-------------------------------+\n")); - LWIP_DEBUGF(IP_DEBUG, ("| %3"U16_F" | %3"U16_F" | %3"U16_F" | %3"U16_F" | (dest)\n", - ip4_addr1_16_val(iphdr->dest), - ip4_addr2_16_val(iphdr->dest), - ip4_addr3_16_val(iphdr->dest), - ip4_addr4_16_val(iphdr->dest))); - LWIP_DEBUGF(IP_DEBUG, ("+-------------------------------+\n")); -} -#endif /* IP_DEBUG */ - -#endif /* LWIP_IPV4 */ diff --git a/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.c b/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.c deleted file mode 100644 index 33204d1..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.c +++ /dev/null @@ -1,321 +0,0 @@ -/** - * @file - * This is the IPv4 address tools implementation. - * - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -#include "lwip/opt.h" - -#if LWIP_IPV4 - -#include "lwip/ip_addr.h" -#include "lwip/netif.h" - -/* used by IP4_ADDR_ANY and IP_ADDR_BROADCAST in ip_addr.h */ -const ip_addr_t ip_addr_any = IPADDR4_INIT(IPADDR_ANY); -const ip_addr_t ip_addr_broadcast = IPADDR4_INIT(IPADDR_BROADCAST); - -/** - * Determine if an address is a broadcast address on a network interface - * - * @param addr address to be checked - * @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) -{ - ip4_addr_t ipaddr; - ip4_addr_set_u32(&ipaddr, addr); - - /* all ones (broadcast) or all zeroes (old skool broadcast) */ - if ((~addr == IPADDR_ANY) || - (addr == IPADDR_ANY)) { - return 1; - /* no broadcast support on this network interface? */ - } else if ((netif->flags & NETIF_FLAG_BROADCAST) == 0) { - /* the given address cannot be a broadcast address - * nor can we check against any broadcast addresses */ - return 0; - /* address matches network interface address exactly? => no broadcast */ - } else if (addr == ip4_addr_get_u32(netif_ip4_addr(netif))) { - return 0; - /* on the same (sub) network... */ - } else if (ip4_addr_netcmp(&ipaddr, netif_ip4_addr(netif), netif_ip4_netmask(netif)) - /* ...and host identifier bits are all ones? =>... */ - && ((addr & ~ip4_addr_get_u32(netif_ip4_netmask(netif))) == - (IPADDR_BROADCAST & ~ip4_addr_get_u32(netif_ip4_netmask(netif))))) { - /* => network broadcast address */ - return 1; - } else { - return 0; - } -} - -/** Checks if a netmask is valid (starting with ones, then only zeros) - * - * @param netmask the IPv4 netmask to check (in network byte order!) - * @return 1 if the netmask is valid, 0 if it is not - */ -u8_t -ip4_addr_netmask_valid(u32_t netmask) -{ - u32_t mask; - u32_t nm_hostorder = lwip_htonl(netmask); - - /* first, check for the first zero */ - for (mask = 1UL << 31 ; mask != 0; mask >>= 1) { - if ((nm_hostorder & mask) == 0) { - break; - } - } - /* then check that there is no one */ - for (; mask != 0; mask >>= 1) { - if ((nm_hostorder & mask) != 0) { - /* there is a one after the first zero -> invalid */ - return 0; - } - } - /* no one after the first zero -> valid */ - return 1; -} - -/** - * Ascii internet address interpretation routine. - * The value returned is in network order. - * - * @param cp IP address in ascii representation (e.g. "127.0.0.1") - * @return ip address in network order - */ -u32_t -ipaddr_addr(const char *cp) -{ - ip4_addr_t val; - - if (ip4addr_aton(cp, &val)) { - return ip4_addr_get_u32(&val); - } - return (IPADDR_NONE); -} - -/** - * Check whether "cp" is a valid ascii representation - * of an Internet address and convert to a binary address. - * Returns 1 if the address is valid, 0 if not. - * This replaces inet_addr, the return value from which - * cannot distinguish between failure and a local broadcast address. - * - * @param cp IP address in ascii representation (e.g. "127.0.0.1") - * @param addr pointer to which to save the ip address in network order - * @return 1 if cp could be converted to addr, 0 on failure - */ -int -ip4addr_aton(const char *cp, ip4_addr_t *addr) -{ - u32_t val; - u8_t base; - char c; - u32_t parts[4]; - u32_t *pp = parts; - - c = *cp; - for (;;) { - /* - * Collect number up to ``.''. - * Values are specified as for C: - * 0x=hex, 0=octal, 1-9=decimal. - */ - if (!lwip_isdigit(c)) { - return 0; - } - val = 0; - base = 10; - if (c == '0') { - c = *++cp; - if (c == 'x' || c == 'X') { - base = 16; - c = *++cp; - } else { - base = 8; - } - } - for (;;) { - if (lwip_isdigit(c)) { - val = (val * base) + (u32_t)(c - '0'); - c = *++cp; - } else if (base == 16 && lwip_isxdigit(c)) { - val = (val << 4) | (u32_t)(c + 10 - (lwip_islower(c) ? 'a' : 'A')); - c = *++cp; - } else { - break; - } - } - if (c == '.') { - /* - * Internet format: - * a.b.c.d - * a.b.c (with c treated as 16 bits) - * a.b (with b treated as 24 bits) - */ - if (pp >= parts + 3) { - return 0; - } - *pp++ = val; - c = *++cp; - } else { - break; - } - } - /* - * Check for trailing characters. - */ - if (c != '\0' && !lwip_isspace(c)) { - return 0; - } - /* - * Concoct the address according to - * the number of parts specified. - */ - switch (pp - parts + 1) { - - case 0: - return 0; /* initial nondigit */ - - case 1: /* a -- 32 bits */ - break; - - case 2: /* a.b -- 8.24 bits */ - if (val > 0xffffffUL) { - return 0; - } - if (parts[0] > 0xff) { - return 0; - } - val |= parts[0] << 24; - break; - - case 3: /* a.b.c -- 8.8.16 bits */ - if (val > 0xffff) { - return 0; - } - if ((parts[0] > 0xff) || (parts[1] > 0xff)) { - return 0; - } - val |= (parts[0] << 24) | (parts[1] << 16); - break; - - case 4: /* a.b.c.d -- 8.8.8.8 bits */ - if (val > 0xff) { - return 0; - } - if ((parts[0] > 0xff) || (parts[1] > 0xff) || (parts[2] > 0xff)) { - return 0; - } - val |= (parts[0] << 24) | (parts[1] << 16) | (parts[2] << 8); - break; - default: - LWIP_ASSERT("unhandled", 0); - break; - } - if (addr) { - ip4_addr_set_u32(addr, lwip_htonl(val)); - } - return 1; -} - -/** - * Convert numeric IP address into decimal dotted ASCII representation. - * returns ptr to static buffer; not reentrant! - * - * @param addr ip address in network order to convert - * @return pointer to a global static (!) buffer that holds the ASCII - * representation of addr - */ -char * -ip4addr_ntoa(const ip4_addr_t *addr) -{ - static char str[IP4ADDR_STRLEN_MAX]; - return ip4addr_ntoa_r(addr, str, IP4ADDR_STRLEN_MAX); -} - -/** - * Same as ip4addr_ntoa, but reentrant since a user-supplied buffer is used. - * - * @param addr ip address in network order to convert - * @param buf target buffer where the string is stored - * @param buflen length of buf - * @return either pointer to buf which now holds the ASCII - * representation of addr or NULL if buf was too small - */ -char * -ip4addr_ntoa_r(const ip4_addr_t *addr, char *buf, int buflen) -{ - u32_t s_addr; - char inv[3]; - char *rp; - u8_t *ap; - u8_t rem; - u8_t n; - u8_t i; - int len = 0; - - s_addr = ip4_addr_get_u32(addr); - - rp = buf; - ap = (u8_t *)&s_addr; - for (n = 0; n < 4; n++) { - i = 0; - do { - rem = *ap % (u8_t)10; - *ap /= (u8_t)10; - inv[i++] = (char)('0' + rem); - } while (*ap); - while (i--) { - if (len++ >= buflen) { - return NULL; - } - *rp++ = inv[i]; - } - if (len++ >= buflen) { - return NULL; - } - *rp++ = '.'; - ap++; - } - *--rp = 0; - return buf; -} - -#endif /* LWIP_IPV4 */ diff --git a/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.c b/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.c deleted file mode 100644 index a445530..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.c +++ /dev/null @@ -1,894 +0,0 @@ -/** - * @file - * This is the IPv4 packet segmentation and reassembly implementation. - * - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Jani Monoses - * Simon Goldschmidt - * original reassembly code by Adam Dunkels - * - */ - -#include "lwip/opt.h" - -#if LWIP_IPV4 - -#include "lwip/ip4_frag.h" -#include "lwip/def.h" -#include "lwip/inet_chksum.h" -#include "lwip/netif.h" -#include "lwip/stats.h" -#include "lwip/icmp.h" - -#include - -#if IP_REASSEMBLY -/** - * The IP reassembly code currently has the following limitations: - * - IP header options are not supported - * - fragments must not overlap (e.g. due to different routes), - * currently, overlapping or duplicate fragments are thrown away - * if IP_REASS_CHECK_OVERLAP=1 (the default)! - * - * @todo: work with IP header options - */ - -/** Setting this to 0, you can turn off checking the fragments for overlapping - * regions. The code gets a little smaller. Only use this if you know that - * overlapping won't occur on your network! */ -#ifndef IP_REASS_CHECK_OVERLAP -#define IP_REASS_CHECK_OVERLAP 1 -#endif /* IP_REASS_CHECK_OVERLAP */ - -/** Set to 0 to prevent freeing the oldest datagram when the reassembly buffer is - * full (IP_REASS_MAX_PBUFS pbufs are enqueued). The code gets a little smaller. - * Datagrams will be freed by timeout only. Especially useful when MEMP_NUM_REASSDATA - * is set to 1, so one datagram can be reassembled at a time, only. */ -#ifndef IP_REASS_FREE_OLDEST -#define IP_REASS_FREE_OLDEST 1 -#endif /* IP_REASS_FREE_OLDEST */ - -#define IP_REASS_FLAG_LASTFRAG 0x01 - -#define IP_REASS_VALIDATE_TELEGRAM_FINISHED 1 -#define IP_REASS_VALIDATE_PBUF_QUEUED 0 -#define IP_REASS_VALIDATE_PBUF_DROPPED -1 - -/** This is a helper struct which holds the starting - * offset and the ending offset of this fragment to - * easily chain the fragments. - * It has the same packing requirements as the IP header, since it replaces - * the IP header in memory in incoming fragments (after copying it) to keep - * track of the various fragments. (-> If the IP header doesn't need packing, - * this struct doesn't need packing, too.) - */ -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct ip_reass_helper { - PACK_STRUCT_FIELD(struct pbuf *next_pbuf); - PACK_STRUCT_FIELD(u16_t start); - PACK_STRUCT_FIELD(u16_t end); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -#define IP_ADDRESSES_AND_ID_MATCH(iphdrA, iphdrB) \ - (ip4_addr_cmp(&(iphdrA)->src, &(iphdrB)->src) && \ - ip4_addr_cmp(&(iphdrA)->dest, &(iphdrB)->dest) && \ - IPH_ID(iphdrA) == IPH_ID(iphdrB)) ? 1 : 0 - -/* global variables */ -static struct ip_reassdata *reassdatagrams; -static u16_t ip_reass_pbufcount; - -/* function prototypes */ -static void ip_reass_dequeue_datagram(struct ip_reassdata *ipr, struct ip_reassdata *prev); -static int ip_reass_free_complete_datagram(struct ip_reassdata *ipr, struct ip_reassdata *prev); - -/** - * Reassembly timer base function - * for both NO_SYS == 0 and 1 (!). - * - * Should be called every 1000 msec (defined by IP_TMR_INTERVAL). - */ -void -ip_reass_tmr(void) -{ - struct ip_reassdata *r, *prev = NULL; - - r = reassdatagrams; - while (r != NULL) { - /* Decrement the timer. Once it reaches 0, - * clean up the incomplete fragment assembly */ - if (r->timer > 0) { - r->timer--; - LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_tmr: timer dec %"U16_F"\n", (u16_t)r->timer)); - prev = r; - r = r->next; - } else { - /* reassembly timed out */ - struct ip_reassdata *tmp; - LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_tmr: timer timed out\n")); - tmp = r; - /* get the next pointer before freeing */ - r = r->next; - /* free the helper struct and all enqueued pbufs */ - ip_reass_free_complete_datagram(tmp, prev); - } - } -} - -/** - * Free a datagram (struct ip_reassdata) and all its pbufs. - * Updates the total count of enqueued pbufs (ip_reass_pbufcount), - * SNMP counters and sends an ICMP time exceeded packet. - * - * @param ipr datagram to free - * @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) -{ - u16_t pbufs_freed = 0; - u16_t clen; - struct pbuf *p; - struct ip_reass_helper *iprh; - - LWIP_ASSERT("prev != ipr", prev != ipr); - if (prev != NULL) { - LWIP_ASSERT("prev->next == ipr", prev->next == ipr); - } - - MIB2_STATS_INC(mib2.ipreasmfails); -#if LWIP_ICMP - iprh = (struct ip_reass_helper *)ipr->p->payload; - if (iprh->start == 0) { - /* The first fragment was received, send ICMP time exceeded. */ - /* First, de-queue the first pbuf from r->p. */ - p = ipr->p; - ipr->p = iprh->next_pbuf; - /* Then, copy the original header into it. */ - SMEMCPY(p->payload, &ipr->iphdr, IP_HLEN); - icmp_time_exceeded(p, ICMP_TE_FRAG); - clen = pbuf_clen(p); - LWIP_ASSERT("pbufs_freed + clen <= 0xffff", pbufs_freed + clen <= 0xffff); - pbufs_freed = (u16_t)(pbufs_freed + clen); - pbuf_free(p); - } -#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; - while (p != NULL) { - struct pbuf *pcur; - iprh = (struct ip_reass_helper *)p->payload; - pcur = p; - /* get the next pointer before freeing */ - p = iprh->next_pbuf; - clen = pbuf_clen(pcur); - LWIP_ASSERT("pbufs_freed + clen <= 0xffff", pbufs_freed + clen <= 0xffff); - pbufs_freed = (u16_t)(pbufs_freed + clen); - pbuf_free(pcur); - } - /* Then, unchain the struct ip_reassdata from the list and free it. */ - ip_reass_dequeue_datagram(ipr, prev); - LWIP_ASSERT("ip_reass_pbufcount >= pbufs_freed", ip_reass_pbufcount >= pbufs_freed); - ip_reass_pbufcount = (u16_t)(ip_reass_pbufcount - pbufs_freed); - - return pbufs_freed; -} - -#if IP_REASS_FREE_OLDEST -/** - * Free the oldest datagram to make room for enqueueing new fragments. - * The datagram 'fraghdr' belongs to is not freed! - * - * @param fraghdr IP header of the current fragment - * @param pbufs_needed number of pbufs needed to enqueue - * (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) -{ - /* @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; - 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; - prev = NULL; - oldest_prev = NULL; - other_datagrams = 0; - r = reassdatagrams; - while (r != NULL) { - if (!IP_ADDRESSES_AND_ID_MATCH(&r->iphdr, fraghdr)) { - /* Not the same datagram as fraghdr */ - other_datagrams++; - if (oldest == NULL) { - oldest = r; - oldest_prev = prev; - } else if (r->timer <= oldest->timer) { - /* older than the previous oldest */ - oldest = r; - oldest_prev = prev; - } - } - if (r->next != NULL) { - prev = r; - } - r = r->next; - } - if (oldest != NULL) { - pbufs_freed_current = ip_reass_free_complete_datagram(oldest, oldest_prev); - pbufs_freed += pbufs_freed_current; - } - } while ((pbufs_freed < pbufs_needed) && (other_datagrams > 1)); - return pbufs_freed; -} -#endif /* IP_REASS_FREE_OLDEST */ - -/** - * Enqueues a new fragment into the fragment queue - * @param fraghdr points to the new fragments IP hdr - * @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) -{ - struct ip_reassdata *ipr; -#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); - if (ipr == NULL) { -#if IP_REASS_FREE_OLDEST - if (ip_reass_remove_oldest_datagram(fraghdr, clen) >= clen) { - ipr = (struct ip_reassdata *)memp_malloc(MEMP_REASSDATA); - } - if (ipr == NULL) -#endif /* IP_REASS_FREE_OLDEST */ - { - IPFRAG_STATS_INC(ip_frag.memerr); - LWIP_DEBUGF(IP_REASS_DEBUG, ("Failed to alloc reassdata struct\n")); - return NULL; - } - } - memset(ipr, 0, sizeof(struct ip_reassdata)); - ipr->timer = IP_REASS_MAXAGE; - - /* enqueue the new structure to the front of the list */ - ipr->next = reassdatagrams; - reassdatagrams = ipr; - /* copy the ip header for later tests and input */ - /* @todo: no ip options supported? */ - SMEMCPY(&(ipr->iphdr), fraghdr, IP_HLEN); - return ipr; -} - -/** - * 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) -{ - /* dequeue the reass struct */ - if (reassdatagrams == ipr) { - /* it was the first in the list */ - reassdatagrams = ipr->next; - } else { - /* it wasn't the first, so it must have a valid 'prev' */ - LWIP_ASSERT("sanity check linked list", prev != NULL); - prev->next = ipr->next; - } - - /* now we can free the ip_reassdata struct */ - memp_free(MEMP_REASSDATA, ipr); -} - -/** - * Chain a new pbuf into the pbuf list that composes the datagram. The pbuf list - * will grow over time as new pbufs are rx. - * Also checks that the datagram passes basic continuity checks (if the last - * fragment was received at least once). - * @param ipr points to the reassembly state - * @param new_p points to the pbuf for the current fragment - * @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) -{ - struct ip_reass_helper *iprh, *iprh_tmp, *iprh_prev = NULL; - struct pbuf *q; - u16_t offset, len; - u8_t hlen; - struct ip_hdr *fraghdr; - int valid = 1; - - /* Extract length and fragment offset from current fragment */ - fraghdr = (struct ip_hdr *)new_p->payload; - len = lwip_ntohs(IPH_LEN(fraghdr)); - hlen = IPH_HL_BYTES(fraghdr); - if (hlen > len) { - /* invalid datagram */ - return IP_REASS_VALIDATE_PBUF_DROPPED; - } - len = (u16_t)(len - hlen); - offset = IPH_OFFSET_BYTES(fraghdr); - - /* 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; - iprh->next_pbuf = NULL; - iprh->start = offset; - iprh->end = (u16_t)(offset + len); - if (iprh->end < offset) { - /* u16_t overflow, cannot handle this */ - return IP_REASS_VALIDATE_PBUF_DROPPED; - } - - /* 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;) { - iprh_tmp = (struct ip_reass_helper *)q->payload; - if (iprh->start < iprh_tmp->start) { - /* the new pbuf should be inserted before this */ - iprh->next_pbuf = q; - if (iprh_prev != NULL) { - /* not the fragment with the lowest offset */ -#if IP_REASS_CHECK_OVERLAP - if ((iprh->start < iprh_prev->end) || (iprh->end > iprh_tmp->start)) { - /* fragment overlaps with previous or following, throw away */ - return IP_REASS_VALIDATE_PBUF_DROPPED; - } -#endif /* IP_REASS_CHECK_OVERLAP */ - iprh_prev->next_pbuf = new_p; - if (iprh_prev->end != iprh->start) { - /* There is a fragment missing between the current - * and the previous fragment */ - valid = 0; - } - } else { -#if IP_REASS_CHECK_OVERLAP - if (iprh->end > iprh_tmp->start) { - /* fragment overlaps with following, throw away */ - return IP_REASS_VALIDATE_PBUF_DROPPED; - } -#endif /* IP_REASS_CHECK_OVERLAP */ - /* fragment with the lowest offset */ - ipr->p = new_p; - } - break; - } else if (iprh->start == iprh_tmp->start) { - /* received the same datagram twice: no need to keep the datagram */ - return IP_REASS_VALIDATE_PBUF_DROPPED; -#if IP_REASS_CHECK_OVERLAP - } else if (iprh->start < iprh_tmp->end) { - /* overlap: no need to keep the new datagram */ - return IP_REASS_VALIDATE_PBUF_DROPPED; -#endif /* IP_REASS_CHECK_OVERLAP */ - } else { - /* Check if the fragments received so far have no holes. */ - if (iprh_prev != NULL) { - if (iprh_prev->end != iprh_tmp->start) { - /* There is a fragment missing between the current - * and the previous fragment */ - valid = 0; - } - } - } - q = iprh_tmp->next_pbuf; - iprh_prev = iprh_tmp; - } - - /* If q is NULL, then we made it to the end of the list. Determine what to do now */ - if (q == NULL) { - if (iprh_prev != NULL) { - /* 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); -#endif /* IP_REASS_CHECK_OVERLAP */ - iprh_prev->next_pbuf = new_p; - if (iprh_prev->end != iprh->start) { - valid = 0; - } - } else { -#if IP_REASS_CHECK_OVERLAP - LWIP_ASSERT("no previous fragment, this must be the first fragment!", - ipr->p == NULL); -#endif /* IP_REASS_CHECK_OVERLAP */ - /* this is the first fragment we ever received for this ip datagram */ - ipr->p = new_p; - } - } - - /* At this point, the validation part begins: */ - /* If we already received the last fragment */ - if (is_last || ((ipr->flags & IP_REASS_FLAG_LASTFRAG) != 0)) { - /* and had no holes so far */ - if (valid) { - /* 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)) { - valid = 0; - } else { - /* and check that there are no holes after this datagram */ - iprh_prev = iprh; - q = iprh->next_pbuf; - while (q != NULL) { - iprh = (struct ip_reass_helper *)q->payload; - if (iprh_prev->end != iprh->start) { - valid = 0; - break; - } - iprh_prev = iprh; - q = iprh->next_pbuf; - } - /* if still valid, all fragments are received - * (because to the MF==0 already arrived */ - if (valid) { - LWIP_ASSERT("sanity check", ipr->p != NULL); - LWIP_ASSERT("sanity check", - ((struct ip_reass_helper *)ipr->p->payload) != iprh); - LWIP_ASSERT("validate_datagram:next_pbuf!=NULL", - iprh->next_pbuf == NULL); - } - } - } - /* 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; - } - /* If we come here, not all fragments were received, yet! */ - return IP_REASS_VALIDATE_PBUF_QUEUED; /* not yet valid! */ -} - -/** - * Reassembles incoming IP fragments into an IP datagram. - * - * @param p points to a pbuf chain of the fragment - * @return NULL if reassembly is incomplete, ? otherwise - */ -struct pbuf * -ip4_reass(struct pbuf *p) -{ - struct pbuf *r; - struct ip_hdr *fraghdr; - struct ip_reassdata *ipr; - struct ip_reass_helper *iprh; - u16_t offset, len, clen; - u8_t hlen; - int valid; - int is_last; - - IPFRAG_STATS_INC(ip_frag.recv); - MIB2_STATS_INC(mib2.ipreasmreqds); - - fraghdr = (struct ip_hdr *)p->payload; - - if (IPH_HL_BYTES(fraghdr) != IP_HLEN) { - 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); - len = lwip_ntohs(IPH_LEN(fraghdr)); - hlen = IPH_HL_BYTES(fraghdr); - if (hlen > len) { - /* invalid datagram */ - goto nullreturn; - } - len = (u16_t)(len - hlen); - - /* Check if we are allowed to enqueue more datagrams. */ - clen = pbuf_clen(p); - if ((ip_reass_pbufcount + clen) > IP_REASS_MAX_PBUFS) { -#if IP_REASS_FREE_OLDEST - if (!ip_reass_remove_oldest_datagram(fraghdr, clen) || - ((ip_reass_pbufcount + clen) > IP_REASS_MAX_PBUFS)) -#endif /* IP_REASS_FREE_OLDEST */ - { - /* No datagram could be freed and still too many pbufs enqueued */ - LWIP_DEBUGF(IP_REASS_DEBUG, ("ip4_reass: Overflow condition: pbufct=%d, clen=%d, MAX=%d\n", - ip_reass_pbufcount, clen, IP_REASS_MAX_PBUFS)); - IPFRAG_STATS_INC(ip_frag.memerr); - /* @todo: send ICMP time exceeded here? */ - /* drop this pbuf */ - goto nullreturn; - } - } - - /* 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) { - /* 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)) { - 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; - } - } - - if (ipr == NULL) { - /* Enqueue a new datagram into the datagram queue */ - ipr = ip_reass_enqueue_new_datagram(fraghdr, clen); - /* Bail if unable to enqueue */ - if (ipr == NULL) { - goto nullreturn; - } - } else { - if (((lwip_ntohs(IPH_OFFSET(fraghdr)) & IP_OFFMASK) == 0) && - ((lwip_ntohs(IPH_OFFSET(&ipr->iphdr)) & IP_OFFMASK) != 0)) { - /* 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); - } - } - - /* 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; - if (is_last) { - u16_t datagram_len = (u16_t)(offset + len); - if ((datagram_len < offset) || (datagram_len > (0xFFFF - IP_HLEN))) { - /* u16_t overflow, cannot handle this */ - 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); - if (valid == IP_REASS_VALIDATE_PBUF_DROPPED) { - goto nullreturn_ipr; - } - /* 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); - if (is_last) { - u16_t datagram_len = (u16_t)(offset + len); - ipr->datagram_len = datagram_len; - ipr->flags |= IP_REASS_FLAG_LASTFRAG; - 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) { - 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); - - /* save the second pbuf before copying the header over the pointer */ - r = ((struct ip_reass_helper *)ipr->p->payload)->next_pbuf; - - /* copy the original ip header back to the first pbuf */ - fraghdr = (struct ip_hdr *)(ipr->p->payload); - SMEMCPY(fraghdr, &ipr->iphdr, IP_HLEN); - IPH_LEN_SET(fraghdr, lwip_htons(datagram_len)); - IPH_OFFSET_SET(fraghdr, 0); - IPH_CHKSUM_SET(fraghdr, 0); - /* @todo: do we need to set/calculate the correct checksum? */ -#if CHECKSUM_GEN_IP - 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; - - /* chain together the pbufs contained within the reass_data list. */ - while (r != NULL) { - iprh = (struct ip_reass_helper *)r->payload; - - /* hide the ip header for every succeeding fragment */ - pbuf_remove_header(r, IP_HLEN); - pbuf_cat(p, r); - r = iprh->next_pbuf; - } - - /* find the previous entry in the linked list */ - if (ipr == reassdatagrams) { - ipr_prev = NULL; - } else { - for (ipr_prev = reassdatagrams; ipr_prev != NULL; ipr_prev = ipr_prev->next) { - if (ipr_prev->next == ipr) { - break; - } - } - } - - /* release the sources allocate for the fragment queue entry */ - ip_reass_dequeue_datagram(ipr, ipr_prev); - - /* and adjust the number of pbufs currently queued for reassembly. */ - clen = pbuf_clen(p); - LWIP_ASSERT("ip_reass_pbufcount >= clen", ip_reass_pbufcount >= clen); - ip_reass_pbufcount = (u16_t)(ip_reass_pbufcount - clen); - - MIB2_STATS_INC(mib2.ipreasmoks); - - /* Return the pbuf chain */ - return p; - } - /* the datagram is not (yet?) reassembled completely */ - LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_pbufcount: %d out\n", ip_reass_pbufcount)); - return NULL; - -nullreturn_ipr: - LWIP_ASSERT("ipr != NULL", ipr != NULL); - if (ipr->p == NULL) { - /* dropped pbuf after creating a new datagram entry: remove the entry, too */ - LWIP_ASSERT("not firstalthough just enqueued", ipr == reassdatagrams); - ip_reass_dequeue_datagram(ipr, NULL); - } - -nullreturn: - LWIP_DEBUGF(IP_REASS_DEBUG, ("ip4_reass: nullreturn\n")); - IPFRAG_STATS_INC(ip_frag.drop); - pbuf_free(p); - return NULL; -} -#endif /* IP_REASSEMBLY */ - -#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) -{ - return (struct pbuf_custom_ref *)memp_malloc(MEMP_FRAG_PBUF); -} - -/** Free a struct pbuf_custom_ref */ -static void -ip_frag_free_pbuf_custom_ref(struct pbuf_custom_ref *p) -{ - LWIP_ASSERT("p != NULL", p != NULL); - memp_free(MEMP_FRAG_PBUF, p); -} - -/** Free-callback function to free a 'struct pbuf_custom_ref', called by - * pbuf_free. */ -static void -ipfrag_free_pbuf_custom(struct pbuf *p) -{ - struct pbuf_custom_ref *pcr = (struct pbuf_custom_ref *)p; - LWIP_ASSERT("pcr != NULL", pcr != NULL); - LWIP_ASSERT("pcr == p", (void *)pcr == (void *)p); - if (pcr->original != NULL) { - pbuf_free(pcr->original); - } - ip_frag_free_pbuf_custom_ref(pcr); -} -#endif /* !LWIP_NETIF_TX_SINGLE_PBUF */ - -/** - * Fragment an IP datagram if too large for the netif. - * - * Chop the datagram in MTU sized chunks and send them in order - * by pointing PBUF_REFs into p. - * - * @param p ip packet to send - * @param netif the netif on which to send - * @param dest destination ip address to which to send - * - * @return ERR_OK if sent successfully, err_t otherwise - */ -err_t -ip4_frag(struct pbuf *p, struct netif *netif, const ip4_addr_t *dest) -{ - struct pbuf *rambuf; -#if !LWIP_NETIF_TX_SINGLE_PBUF - struct pbuf *newpbuf; - u16_t newpbuflen = 0; - 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); - u16_t left, fragsize; - u16_t ofo; - int last; - u16_t poff = IP_HLEN; - u16_t tmp; - int mf_set; - - original_iphdr = (struct ip_hdr *)p->payload; - iphdr = original_iphdr; - if (IPH_HL_BYTES(iphdr) != IP_HLEN) { - /* ip4_frag() does not support IP options */ - return ERR_VAL; - } - LWIP_ERROR("ip4_frag(): pbuf too short", p->len >= IP_HLEN, return ERR_VAL); - - /* Save original offset */ - tmp = lwip_ntohs(IPH_OFFSET(iphdr)); - ofo = tmp & IP_OFFMASK; - /* already fragmented? if so, the last fragment we create must have MF, too */ - mf_set = tmp & IP_MF; - - left = (u16_t)(p->tot_len - IP_HLEN); - - while (left) { - /* Fill this fragment */ - fragsize = LWIP_MIN(left, (u16_t)(nfb * 8)); - -#if LWIP_NETIF_TX_SINGLE_PBUF - rambuf = pbuf_alloc(PBUF_IP, fragsize, PBUF_RAM); - if (rambuf == NULL) { - goto memerr; - } - LWIP_ASSERT("this needs a pbuf in one piece!", - (rambuf->len == rambuf->tot_len) && (rambuf->next == NULL)); - poff += pbuf_copy_partial(p, rambuf->payload, fragsize, poff); - /* make room for the IP header */ - if (pbuf_add_header(rambuf, IP_HLEN)) { - pbuf_free(rambuf); - goto memerr; - } - /* fill in the IP header */ - SMEMCPY(rambuf->payload, original_iphdr, IP_HLEN); - iphdr = (struct ip_hdr *)rambuf->payload; -#else /* LWIP_NETIF_TX_SINGLE_PBUF */ - /* 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); - if (rambuf == NULL) { - goto memerr; - } - LWIP_ASSERT("this needs a pbuf in one piece!", - (rambuf->len >= (IP_HLEN))); - SMEMCPY(rambuf->payload, original_iphdr, IP_HLEN); - iphdr = (struct ip_hdr *)rambuf->payload; - - left_to_copy = fragsize; - while (left_to_copy) { - struct pbuf_custom_ref *pcr; - u16_t plen = (u16_t)(p->len - poff); - LWIP_ASSERT("p->len >= poff", p->len >= poff); - newpbuflen = LWIP_MIN(left_to_copy, plen); - /* Is this pbuf already empty? */ - if (!newpbuflen) { - poff = 0; - p = p->next; - continue; - } - pcr = ip_frag_alloc_pbuf_custom_ref(); - if (pcr == NULL) { - pbuf_free(rambuf); - goto memerr; - } - /* Mirror this pbuf, although we might not need all of it. */ - newpbuf = pbuf_alloced_custom(PBUF_RAW, newpbuflen, PBUF_REF, &pcr->pc, - (u8_t *)p->payload + poff, newpbuflen); - if (newpbuf == NULL) { - ip_frag_free_pbuf_custom_ref(pcr); - pbuf_free(rambuf); - goto memerr; - } - pbuf_ref(p); - pcr->original = p; - pcr->pc.custom_free_function = ipfrag_free_pbuf_custom; - - /* 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); - left_to_copy = (u16_t)(left_to_copy - newpbuflen); - if (left_to_copy) { - poff = 0; - p = p->next; - } - } - poff = (u16_t)(poff + newpbuflen); -#endif /* LWIP_NETIF_TX_SINGLE_PBUF */ - - /* Correct header */ - last = (left <= netif->mtu - IP_HLEN); - - /* Set new offset and MF flag */ - tmp = (IP_OFFMASK & (ofo)); - if (!last || mf_set) { - /* the last fragment has MF set if the input frame had it */ - tmp = tmp | IP_MF; - } - IPH_OFFSET_SET(iphdr, lwip_htons(tmp)); - IPH_LEN_SET(iphdr, lwip_htons((u16_t)(fragsize + IP_HLEN))); - IPH_CHKSUM_SET(iphdr, 0); -#if CHECKSUM_GEN_IP - IF__NETIF_CHECKSUM_ENABLED(netif, NETIF_CHECKSUM_GEN_IP) { - IPH_CHKSUM_SET(iphdr, inet_chksum(iphdr, IP_HLEN)); - } -#endif /* CHECKSUM_GEN_IP */ - - /* No need for separate header pbuf - we allowed room for it in rambuf - * when allocated. - */ - netif->output(netif, rambuf, dest); - IPFRAG_STATS_INC(ip_frag.xmit); - - /* Unfortunately we can't reuse rambuf - the hardware may still be - * using the buffer. Instead we free it (and the ensuing chain) and - * 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); - left = (u16_t)(left - fragsize); - ofo = (u16_t)(ofo + nfb); - } - MIB2_STATS_INC(mib2.ipfragoks); - return ERR_OK; -memerr: - MIB2_STATS_INC(mib2.ipfragfails); - return ERR_MEM; -} -#endif /* IP_FRAG */ - -#endif /* LWIP_IPV4 */ diff --git a/Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.c b/Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.c deleted file mode 100644 index 7cf98a5..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/ipv6/dhcp6.c +++ /dev/null @@ -1,812 +0,0 @@ -/** - * @file - * - * @defgroup dhcp6 DHCPv6 - * @ingroup ip6 - * DHCPv6 client: IPv6 address autoconfiguration as per - * RFC 3315 (stateful DHCPv6) and - * RFC 3736 (stateless DHCPv6). - * - * For now, only stateless DHCPv6 is implemented! - * - * TODO: - * - enable/disable API to not always start when RA is received - * - stateful DHCPv6 (for now, only stateless DHCPv6 for DNS and NTP servers works) - * - create Client Identifier? - * - only start requests if a valid local address is available on the netif - * - only start information requests if required (not for every RA) - * - * dhcp6_enable_stateful() enables stateful DHCPv6 for a netif (stateless disabled)\n - * dhcp6_enable_stateless() enables stateless DHCPv6 for a netif (stateful disabled)\n - * dhcp6_disable() disable DHCPv6 for a netif - * - * When enabled, requests are only issued after receipt of RA with the - * corresponding bits set. - */ - -/* - * Copyright (c) 2018 Simon Goldschmidt - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Simon Goldschmidt - */ - -#include "lwip/opt.h" - -#if LWIP_IPV6 && LWIP_IPV6_DHCP6 /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/dhcp6.h" -#include "lwip/prot/dhcp6.h" -#include "lwip/def.h" -#include "lwip/udp.h" -#include "lwip/dns.h" - -#include - -#ifdef LWIP_HOOK_FILENAME -#include LWIP_HOOK_FILENAME -#endif -#ifndef LWIP_HOOK_DHCP6_APPEND_OPTIONS -#define LWIP_HOOK_DHCP6_APPEND_OPTIONS(netif, dhcp6, state, msg, msg_type, options_len_ptr, max_len) -#endif -#ifndef LWIP_HOOK_DHCP6_PARSE_OPTION -#define LWIP_HOOK_DHCP6_PARSE_OPTION(netif, dhcp6, state, msg, msg_type, option, len, pbuf, offset) do { LWIP_UNUSED_ARG(msg); } while(0) -#endif - -#if LWIP_DNS && LWIP_DHCP6_MAX_DNS_SERVERS -#if DNS_MAX_SERVERS > LWIP_DHCP6_MAX_DNS_SERVERS -#define LWIP_DHCP6_PROVIDE_DNS_SERVERS LWIP_DHCP6_MAX_DNS_SERVERS -#else -#define LWIP_DHCP6_PROVIDE_DNS_SERVERS DNS_MAX_SERVERS -#endif -#else -#define LWIP_DHCP6_PROVIDE_DNS_SERVERS 0 -#endif - - -/** Option handling: options are parsed in dhcp6_parse_reply - * and saved in an array where other functions can load them from. - * This might be moved into the struct dhcp6 (not necessarily since - * lwIP is single-threaded and the array is only used while in recv - * callback). */ -enum dhcp6_option_idx { - DHCP6_OPTION_IDX_CLI_ID = 0, - DHCP6_OPTION_IDX_SERVER_ID, -#if LWIP_DHCP6_PROVIDE_DNS_SERVERS - DHCP6_OPTION_IDX_DNS_SERVER, - DHCP6_OPTION_IDX_DOMAIN_LIST, -#endif /* LWIP_DHCP_PROVIDE_DNS_SERVERS */ -#if LWIP_DHCP6_GET_NTP_SRV - DHCP6_OPTION_IDX_NTP_SERVER, -#endif /* LWIP_DHCP_GET_NTP_SRV */ - DHCP6_OPTION_IDX_MAX -}; - -struct dhcp6_option_info { - u8_t option_given; - u16_t val_start; - u16_t val_length; -}; - -/** Holds the decoded option info, only valid while in dhcp6_recv. */ -struct dhcp6_option_info dhcp6_rx_options[DHCP6_OPTION_IDX_MAX]; - -#define dhcp6_option_given(dhcp6, idx) (dhcp6_rx_options[idx].option_given != 0) -#define dhcp6_got_option(dhcp6, idx) (dhcp6_rx_options[idx].option_given = 1) -#define dhcp6_clear_option(dhcp6, idx) (dhcp6_rx_options[idx].option_given = 0) -#define dhcp6_clear_all_options(dhcp6) (memset(dhcp6_rx_options, 0, sizeof(dhcp6_rx_options))) -#define dhcp6_get_option_start(dhcp6, idx) (dhcp6_rx_options[idx].val_start) -#define dhcp6_get_option_length(dhcp6, idx) (dhcp6_rx_options[idx].val_length) -#define dhcp6_set_option(dhcp6, idx, start, len) do { dhcp6_rx_options[idx].val_start = (start); dhcp6_rx_options[idx].val_length = (len); }while(0) - - -const ip_addr_t dhcp6_All_DHCP6_Relay_Agents_and_Servers = IPADDR6_INIT_HOST(0xFF020000, 0, 0, 0x00010002); -const ip_addr_t dhcp6_All_DHCP6_Servers = IPADDR6_INIT_HOST(0xFF020000, 0, 0, 0x00010003); - -static struct udp_pcb *dhcp6_pcb; -static u8_t dhcp6_pcb_refcount; - - -/* receive, unfold, parse and free incoming messages */ -static void dhcp6_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port); - -/** Ensure DHCP PCB is allocated and bound */ -static err_t -dhcp6_inc_pcb_refcount(void) -{ - if (dhcp6_pcb_refcount == 0) { - LWIP_ASSERT("dhcp6_inc_pcb_refcount(): memory leak", dhcp6_pcb == NULL); - - /* allocate UDP PCB */ - dhcp6_pcb = udp_new_ip6(); - - if (dhcp6_pcb == NULL) { - return ERR_MEM; - } - - ip_set_option(dhcp6_pcb, SOF_BROADCAST); - - /* set up local and remote port for the pcb -> listen on all interfaces on all src/dest IPs */ - udp_bind(dhcp6_pcb, IP6_ADDR_ANY, DHCP6_CLIENT_PORT); - udp_recv(dhcp6_pcb, dhcp6_recv, NULL); - } - - dhcp6_pcb_refcount++; - - return ERR_OK; -} - -/** Free DHCP PCB if the last netif stops using it */ -static void -dhcp6_dec_pcb_refcount(void) -{ - LWIP_ASSERT("dhcp6_pcb_refcount(): refcount error", (dhcp6_pcb_refcount > 0)); - dhcp6_pcb_refcount--; - - if (dhcp6_pcb_refcount == 0) { - udp_remove(dhcp6_pcb); - dhcp6_pcb = NULL; - } -} - -/** - * @ingroup dhcp6 - * Set a statically allocated struct dhcp6 to work with. - * Using this prevents dhcp6_start to allocate it using mem_malloc. - * - * @param netif the netif for which to set the struct dhcp - * @param dhcp6 (uninitialised) dhcp6 struct allocated by the application - */ -void -dhcp6_set_struct(struct netif *netif, struct dhcp6 *dhcp6) -{ - LWIP_ASSERT("netif != NULL", netif != NULL); - LWIP_ASSERT("dhcp6 != NULL", dhcp6 != NULL); - LWIP_ASSERT("netif already has a struct dhcp6 set", netif_dhcp6_data(netif) == NULL); - - /* clear data structure */ - memset(dhcp6, 0, sizeof(struct dhcp6)); - /* dhcp6_set_state(&dhcp, DHCP6_STATE_OFF); */ - netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP6, dhcp6); -} - -/** - * @ingroup dhcp6 - * Removes a struct dhcp6 from a netif. - * - * ATTENTION: Only use this when not using dhcp6_set_struct() to allocate the - * struct dhcp6 since the memory is passed back to the heap. - * - * @param netif the netif from which to remove the struct dhcp - */ -void dhcp6_cleanup(struct netif *netif) -{ - LWIP_ASSERT("netif != NULL", netif != NULL); - - if (netif_dhcp6_data(netif) != NULL) { - mem_free(netif_dhcp6_data(netif)); - netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP6, NULL); - } -} - -static struct dhcp6* -dhcp6_get_struct(struct netif *netif, const char *dbg_requester) -{ - struct dhcp6 *dhcp6 = netif_dhcp6_data(netif); - if (dhcp6 == NULL) { - LWIP_DEBUGF(DHCP6_DEBUG | LWIP_DBG_TRACE, ("%s: mallocing new DHCPv6 client\n", dbg_requester)); - dhcp6 = (struct dhcp6 *)mem_malloc(sizeof(struct dhcp6)); - if (dhcp6 == NULL) { - LWIP_DEBUGF(DHCP6_DEBUG | LWIP_DBG_TRACE, ("%s: could not allocate dhcp6\n", dbg_requester)); - return NULL; - } - - /* clear data structure, this implies DHCP6_STATE_OFF */ - memset(dhcp6, 0, sizeof(struct dhcp6)); - /* store this dhcp6 client in the netif */ - netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP6, dhcp6); - } else { - /* already has DHCP6 client attached */ - LWIP_DEBUGF(DHCP6_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("%s: using existing DHCPv6 client\n", dbg_requester)); - } - - if (!dhcp6->pcb_allocated) { - if (dhcp6_inc_pcb_refcount() != ERR_OK) { /* ensure DHCP6 PCB is allocated */ - mem_free(dhcp6); - netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP6, NULL); - return NULL; - } - LWIP_DEBUGF(DHCP6_DEBUG | LWIP_DBG_TRACE, ("%s: allocated dhcp6", dbg_requester)); - dhcp6->pcb_allocated = 1; - } - return dhcp6; -} - -/* - * Set the DHCPv6 state - * If the state changed, reset the number of tries. - */ -static void -dhcp6_set_state(struct dhcp6 *dhcp6, u8_t new_state, const char *dbg_caller) -{ - LWIP_DEBUGF(DHCP6_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("DHCPv6 state: %d -> %d (%s)\n", - dhcp6->state, new_state, dbg_caller)); - if (new_state != dhcp6->state) { - dhcp6->state = new_state; - dhcp6->tries = 0; - dhcp6->request_timeout = 0; - } -} - -static int -dhcp6_stateless_enabled(struct dhcp6 *dhcp6) -{ - if ((dhcp6->state == DHCP6_STATE_STATELESS_IDLE) || - (dhcp6->state == DHCP6_STATE_REQUESTING_CONFIG)) { - return 1; - } - return 0; -} - -/*static int -dhcp6_stateful_enabled(struct dhcp6 *dhcp6) -{ - if (dhcp6->state == DHCP6_STATE_OFF) { - return 0; - } - if (dhcp6_stateless_enabled(dhcp6)) { - return 0; - } - return 1; -}*/ - -/** - * @ingroup dhcp6 - * Enable stateful DHCPv6 on this netif - * Requests are sent on receipt of an RA message with the - * ND6_RA_FLAG_MANAGED_ADDR_CONFIG flag set. - * - * A struct dhcp6 will be allocated for this netif if not - * set via @ref dhcp6_set_struct before. - * - * @todo: stateful DHCPv6 not supported, yet - */ -err_t -dhcp6_enable_stateful(struct netif *netif) -{ - LWIP_UNUSED_ARG(netif); - LWIP_DEBUGF(DHCP6_DEBUG | LWIP_DBG_TRACE, ("stateful dhcp6 not implemented yet")); - return ERR_VAL; -} - -/** - * @ingroup dhcp6 - * Enable stateless DHCPv6 on this netif - * Requests are sent on receipt of an RA message with the - * ND6_RA_FLAG_OTHER_CONFIG flag set. - * - * A struct dhcp6 will be allocated for this netif if not - * set via @ref dhcp6_set_struct before. - */ -err_t -dhcp6_enable_stateless(struct netif *netif) -{ - struct dhcp6 *dhcp6; - - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp6_enable_stateless(netif=%p) %c%c%"U16_F"\n", (void *)netif, netif->name[0], netif->name[1], (u16_t)netif->num)); - - dhcp6 = dhcp6_get_struct(netif, "dhcp6_enable_stateless()"); - if (dhcp6 == NULL) { - return ERR_MEM; - } - if (dhcp6_stateless_enabled(dhcp6)) { - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp6_enable_stateless(): stateless DHCPv6 already enabled")); - return ERR_OK; - } else if (dhcp6->state != DHCP6_STATE_OFF) { - /* stateful running */ - /* @todo: stop stateful once it is implemented */ - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp6_enable_stateless(): switching from stateful to stateless DHCPv6")); - } - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp6_enable_stateless(): stateless DHCPv6 enabled\n")); - dhcp6_set_state(dhcp6, DHCP6_STATE_STATELESS_IDLE, "dhcp6_enable_stateless"); - return ERR_OK; -} - -/** - * @ingroup dhcp6 - * Disable stateful or stateless DHCPv6 on this netif - * Requests are sent on receipt of an RA message with the - * ND6_RA_FLAG_OTHER_CONFIG flag set. - */ -void -dhcp6_disable(struct netif *netif) -{ - struct dhcp6 *dhcp6; - - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp6_disable(netif=%p) %c%c%"U16_F"\n", (void *)netif, netif->name[0], netif->name[1], (u16_t)netif->num)); - - dhcp6 = netif_dhcp6_data(netif); - if (dhcp6 != NULL) { - if (dhcp6->state != DHCP6_STATE_OFF) { - LWIP_DEBUGF(DHCP6_DEBUG | LWIP_DBG_TRACE, ("dhcp6_disable(): DHCPv6 disabled (old state: %s)\n", - (dhcp6_stateless_enabled(dhcp6) ? "stateless" : "stateful"))); - dhcp6_set_state(dhcp6, DHCP6_STATE_OFF, "dhcp6_disable"); - if (dhcp6->pcb_allocated != 0) { - dhcp6_dec_pcb_refcount(); /* free DHCPv6 PCB if not needed any more */ - dhcp6->pcb_allocated = 0; - } - } - } -} - -/** - * Create a DHCPv6 request, fill in common headers - * - * @param netif the netif under DHCPv6 control - * @param dhcp6 dhcp6 control struct - * @param message_type message type of the request - * @param opt_len_alloc option length to allocate - * @param options_out_len option length on exit - * @return a pbuf for the message - */ -static struct pbuf * -dhcp6_create_msg(struct netif *netif, struct dhcp6 *dhcp6, u8_t message_type, - u16_t opt_len_alloc, u16_t *options_out_len) -{ - struct pbuf *p_out; - struct dhcp6_msg *msg_out; - - LWIP_ERROR("dhcp6_create_msg: netif != NULL", (netif != NULL), return NULL;); - LWIP_ERROR("dhcp6_create_msg: dhcp6 != NULL", (dhcp6 != NULL), return NULL;); - p_out = pbuf_alloc(PBUF_TRANSPORT, sizeof(struct dhcp6_msg) + opt_len_alloc, PBUF_RAM); - if (p_out == NULL) { - LWIP_DEBUGF(DHCP6_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, - ("dhcp6_create_msg(): could not allocate pbuf\n")); - return NULL; - } - LWIP_ASSERT("dhcp6_create_msg: check that first pbuf can hold struct dhcp6_msg", - (p_out->len >= sizeof(struct dhcp6_msg) + opt_len_alloc)); - - /* @todo: limit new xid for certain message types? */ - /* reuse transaction identifier in retransmissions */ - if (dhcp6->tries == 0) { - dhcp6->xid = LWIP_RAND() & 0xFFFFFF; - } - - LWIP_DEBUGF(DHCP6_DEBUG | LWIP_DBG_TRACE, - ("transaction id xid(%"X32_F")\n", dhcp6->xid)); - - msg_out = (struct dhcp6_msg *)p_out->payload; - memset(msg_out, 0, sizeof(struct dhcp6_msg) + opt_len_alloc); - - msg_out->msgtype = message_type; - msg_out->transaction_id[0] = (u8_t)(dhcp6->xid >> 16); - msg_out->transaction_id[1] = (u8_t)(dhcp6->xid >> 8); - msg_out->transaction_id[2] = (u8_t)dhcp6->xid; - *options_out_len = 0; - return p_out; -} - -static u16_t -dhcp6_option_short(u16_t options_out_len, u8_t *options, u16_t value) -{ - options[options_out_len++] = (u8_t)((value & 0xff00U) >> 8); - options[options_out_len++] = (u8_t) (value & 0x00ffU); - return options_out_len; -} - -static u16_t -dhcp6_option_optionrequest(u16_t options_out_len, u8_t *options, const u16_t *req_options, - u16_t num_req_options, u16_t max_len) -{ - size_t i; - u16_t ret; - - LWIP_ASSERT("dhcp6_option_optionrequest: options_out_len + sizeof(struct dhcp6_msg) + addlen <= max_len", - sizeof(struct dhcp6_msg) + options_out_len + 4U + (2U * num_req_options) <= max_len); - LWIP_UNUSED_ARG(max_len); - - ret = dhcp6_option_short(options_out_len, options, DHCP6_OPTION_ORO); - ret = dhcp6_option_short(ret, options, 2 * num_req_options); - for (i = 0; i < num_req_options; i++) { - ret = dhcp6_option_short(ret, options, req_options[i]); - } - return ret; -} - -/* All options are added, shrink the pbuf to the required size */ -static void -dhcp6_msg_finalize(u16_t options_out_len, struct pbuf *p_out) -{ - /* shrink the pbuf to the actual content length */ - pbuf_realloc(p_out, (u16_t)(sizeof(struct dhcp6_msg) + options_out_len)); -} - - -#if LWIP_IPV6_DHCP6_STATELESS -static void -dhcp6_information_request(struct netif *netif, struct dhcp6 *dhcp6) -{ - const u16_t requested_options[] = {DHCP6_OPTION_DNS_SERVERS, DHCP6_OPTION_DOMAIN_LIST, DHCP6_OPTION_SNTP_SERVERS}; - u16_t msecs; - struct pbuf *p_out; - u16_t options_out_len; - LWIP_DEBUGF(DHCP6_DEBUG | LWIP_DBG_TRACE, ("dhcp6_information_request()\n")); - /* create and initialize the DHCP message header */ - p_out = dhcp6_create_msg(netif, dhcp6, DHCP6_INFOREQUEST, 4 + sizeof(requested_options), &options_out_len); - if (p_out != NULL) { - err_t err; - struct dhcp6_msg *msg_out = (struct dhcp6_msg *)p_out->payload; - u8_t *options = (u8_t *)(msg_out + 1); - LWIP_DEBUGF(DHCP6_DEBUG | LWIP_DBG_TRACE, ("dhcp6_information_request: making request\n")); - - options_out_len = dhcp6_option_optionrequest(options_out_len, options, requested_options, - LWIP_ARRAYSIZE(requested_options), p_out->len); - LWIP_HOOK_DHCP6_APPEND_OPTIONS(netif, dhcp6, DHCP6_STATE_REQUESTING_CONFIG, msg_out, - DHCP6_INFOREQUEST, options_out_len, p_out->len); - dhcp6_msg_finalize(options_out_len, p_out); - - err = udp_sendto_if(dhcp6_pcb, p_out, &dhcp6_All_DHCP6_Relay_Agents_and_Servers, DHCP6_SERVER_PORT, netif); - pbuf_free(p_out); - LWIP_DEBUGF(DHCP6_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp6_information_request: INFOREQUESTING -> %d\n", (int)err)); - LWIP_UNUSED_ARG(err); - } else { - LWIP_DEBUGF(DHCP6_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp6_information_request: could not allocate DHCP6 request\n")); - } - dhcp6_set_state(dhcp6, DHCP6_STATE_REQUESTING_CONFIG, "dhcp6_information_request"); - if (dhcp6->tries < 255) { - dhcp6->tries++; - } - msecs = (u16_t)((dhcp6->tries < 6 ? 1 << dhcp6->tries : 60) * 1000); - dhcp6->request_timeout = (u16_t)((msecs + DHCP6_TIMER_MSECS - 1) / DHCP6_TIMER_MSECS); - LWIP_DEBUGF(DHCP6_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp6_information_request(): set request timeout %"U16_F" msecs\n", msecs)); -} - -static err_t -dhcp6_request_config(struct netif *netif, struct dhcp6 *dhcp6) -{ - /* stateless mode enabled and no request running? */ - if (dhcp6->state == DHCP6_STATE_STATELESS_IDLE) { - /* send Information-request and wait for answer; setup receive timeout */ - dhcp6_information_request(netif, dhcp6); - } - - return ERR_OK; -} - -static void -dhcp6_abort_config_request(struct dhcp6 *dhcp6) -{ - if (dhcp6->state == DHCP6_STATE_REQUESTING_CONFIG) { - /* abort running request */ - dhcp6_set_state(dhcp6, DHCP6_STATE_STATELESS_IDLE, "dhcp6_abort_config_request"); - } -} - -/* Handle a REPLY to INFOREQUEST - * This parses DNS and NTP server addresses from the reply. - */ -static void -dhcp6_handle_config_reply(struct netif *netif, struct pbuf *p_msg_in) -{ - struct dhcp6 *dhcp6 = netif_dhcp6_data(netif); - - LWIP_UNUSED_ARG(dhcp6); - LWIP_UNUSED_ARG(p_msg_in); - -#if LWIP_DHCP6_PROVIDE_DNS_SERVERS - if (dhcp6_option_given(dhcp6, DHCP6_OPTION_IDX_DNS_SERVER)) { - ip_addr_t dns_addr; - ip6_addr_t *dns_addr6; - u16_t op_start = dhcp6_get_option_start(dhcp6, DHCP6_OPTION_IDX_DNS_SERVER); - u16_t op_len = dhcp6_get_option_length(dhcp6, DHCP6_OPTION_IDX_DNS_SERVER); - u16_t idx; - u8_t n; - - memset(&dns_addr, 0, sizeof(dns_addr)); - dns_addr6 = ip_2_ip6(&dns_addr); - for (n = 0, idx = op_start; (idx < op_start + op_len) && (n < LWIP_DHCP6_PROVIDE_DNS_SERVERS); - n++, idx += sizeof(struct ip6_addr_packed)) { - u16_t copied = pbuf_copy_partial(p_msg_in, dns_addr6, sizeof(struct ip6_addr_packed), idx); - if (copied != sizeof(struct ip6_addr_packed)) { - /* pbuf length mismatch */ - return; - } - ip6_addr_assign_zone(dns_addr6, IP6_UNKNOWN, netif); - /* @todo: do we need a different offset than DHCP(v4)? */ - dns_setserver(n, &dns_addr); - } - } - /* @ todo: parse and set Domain Search List */ -#endif /* LWIP_DHCP6_PROVIDE_DNS_SERVERS */ - -#if LWIP_DHCP6_GET_NTP_SRV - if (dhcp6_option_given(dhcp6, DHCP6_OPTION_IDX_NTP_SERVER)) { - ip_addr_t ntp_server_addrs[LWIP_DHCP6_MAX_NTP_SERVERS]; - u16_t op_start = dhcp6_get_option_start(dhcp6, DHCP6_OPTION_IDX_NTP_SERVER); - u16_t op_len = dhcp6_get_option_length(dhcp6, DHCP6_OPTION_IDX_NTP_SERVER); - u16_t idx; - u8_t n; - - for (n = 0, idx = op_start; (idx < op_start + op_len) && (n < LWIP_DHCP6_MAX_NTP_SERVERS); - n++, idx += sizeof(struct ip6_addr_packed)) { - u16_t copied; - ip6_addr_t *ntp_addr6 = ip_2_ip6(&ntp_server_addrs[n]); - ip_addr_set_zero_ip6(&ntp_server_addrs[n]); - copied = pbuf_copy_partial(p_msg_in, ntp_addr6, sizeof(struct ip6_addr_packed), idx); - if (copied != sizeof(struct ip6_addr_packed)) { - /* pbuf length mismatch */ - return; - } - ip6_addr_assign_zone(ntp_addr6, IP6_UNKNOWN, netif); - } - dhcp6_set_ntp_servers(n, ntp_server_addrs); - } -#endif /* LWIP_DHCP6_GET_NTP_SRV */ -} -#endif /* LWIP_IPV6_DHCP6_STATELESS */ - -/** This function is called from nd6 module when an RA messsage is received - * It triggers DHCPv6 requests (if enabled). - */ -void -dhcp6_nd6_ra_trigger(struct netif *netif, u8_t managed_addr_config, u8_t other_config) -{ - struct dhcp6 *dhcp6; - - LWIP_ASSERT("netif != NULL", netif != NULL); - dhcp6 = netif_dhcp6_data(netif); - - LWIP_UNUSED_ARG(managed_addr_config); - LWIP_UNUSED_ARG(other_config); - LWIP_UNUSED_ARG(dhcp6); - -#if LWIP_IPV6_DHCP6_STATELESS - if (dhcp6 != NULL) { - if (dhcp6_stateless_enabled(dhcp6)) { - if (other_config) { - dhcp6_request_config(netif, dhcp6); - } else { - dhcp6_abort_config_request(dhcp6); - } - } - } -#endif /* LWIP_IPV6_DHCP6_STATELESS */ -} - -/** - * Parse the DHCPv6 message and extract the DHCPv6 options. - * - * Extract the DHCPv6 options (offset + length) so that we can later easily - * check for them or extract the contents. - */ -static err_t -dhcp6_parse_reply(struct pbuf *p, struct dhcp6 *dhcp6) -{ - u16_t offset; - u16_t offset_max; - u16_t options_idx; - struct dhcp6_msg *msg_in; - - LWIP_UNUSED_ARG(dhcp6); - - /* clear received options */ - dhcp6_clear_all_options(dhcp6); - msg_in = (struct dhcp6_msg *)p->payload; - - /* parse options */ - - options_idx = sizeof(struct dhcp6_msg); - /* parse options to the end of the received packet */ - offset_max = p->tot_len; - - offset = options_idx; - /* at least 4 byte to read? */ - while ((offset + 4 <= offset_max)) { - u8_t op_len_buf[4]; - u8_t *op_len; - u16_t op; - u16_t len; - u16_t val_offset = (u16_t)(offset + 4); - if (val_offset < offset) { - /* overflow */ - return ERR_BUF; - } - /* copy option + length, might be split accross pbufs */ - op_len = (u8_t *)pbuf_get_contiguous(p, op_len_buf, 4, 4, offset); - if (op_len == NULL) { - /* failed to get option and length */ - return ERR_VAL; - } - op = (op_len[0] << 8) | op_len[1]; - len = (op_len[2] << 8) | op_len[3]; - offset = val_offset + len; - if (offset < val_offset) { - /* overflow */ - return ERR_BUF; - } - - switch (op) { - case (DHCP6_OPTION_CLIENTID): - dhcp6_got_option(dhcp6, DHCP6_OPTION_IDX_CLI_ID); - dhcp6_set_option(dhcp6, DHCP6_OPTION_IDX_CLI_ID, val_offset, len); - break; - case (DHCP6_OPTION_SERVERID): - dhcp6_got_option(dhcp6, DHCP6_OPTION_IDX_SERVER_ID); - dhcp6_set_option(dhcp6, DHCP6_OPTION_IDX_SERVER_ID, val_offset, len); - break; -#if LWIP_DHCP6_PROVIDE_DNS_SERVERS - case (DHCP6_OPTION_DNS_SERVERS): - dhcp6_got_option(dhcp6, DHCP6_OPTION_IDX_DNS_SERVER); - dhcp6_set_option(dhcp6, DHCP6_OPTION_IDX_DNS_SERVER, val_offset, len); - break; - case (DHCP6_OPTION_DOMAIN_LIST): - dhcp6_got_option(dhcp6, DHCP6_OPTION_IDX_DOMAIN_LIST); - dhcp6_set_option(dhcp6, DHCP6_OPTION_IDX_DOMAIN_LIST, val_offset, len); - break; -#endif /* LWIP_DHCP6_PROVIDE_DNS_SERVERS */ -#if LWIP_DHCP6_GET_NTP_SRV - case (DHCP6_OPTION_SNTP_SERVERS): - dhcp6_got_option(dhcp6, DHCP6_OPTION_IDX_NTP_SERVER); - dhcp6_set_option(dhcp6, DHCP6_OPTION_IDX_NTP_SERVER, val_offset, len); - break; -#endif /* LWIP_DHCP6_GET_NTP_SRV*/ - default: - LWIP_DEBUGF(DHCP6_DEBUG, ("skipping option %"U16_F" in options\n", op)); - LWIP_HOOK_DHCP6_PARSE_OPTION(ip_current_netif(), dhcp6, dhcp6->state, msg_in, - msg_in->msgtype, op, len, q, val_offset); - break; - } - } - return ERR_OK; -} - -static void -dhcp6_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port) -{ - struct netif *netif = ip_current_input_netif(); - struct dhcp6 *dhcp6 = netif_dhcp6_data(netif); - struct dhcp6_msg *reply_msg = (struct dhcp6_msg *)p->payload; - u8_t msg_type; - u32_t xid; - - LWIP_UNUSED_ARG(arg); - - /* Caught DHCPv6 message from netif that does not have DHCPv6 enabled? -> not interested */ - if ((dhcp6 == NULL) || (dhcp6->pcb_allocated == 0)) { - goto free_pbuf_and_return; - } - - LWIP_ERROR("invalid server address type", IP_IS_V6(addr), goto free_pbuf_and_return;); - - LWIP_DEBUGF(DHCP6_DEBUG | LWIP_DBG_TRACE, ("dhcp6_recv(pbuf = %p) from DHCPv6 server %s port %"U16_F"\n", (void *)p, - ipaddr_ntoa(addr), port)); - LWIP_DEBUGF(DHCP6_DEBUG | LWIP_DBG_TRACE, ("pbuf->len = %"U16_F"\n", p->len)); - LWIP_DEBUGF(DHCP6_DEBUG | LWIP_DBG_TRACE, ("pbuf->tot_len = %"U16_F"\n", p->tot_len)); - /* prevent warnings about unused arguments */ - LWIP_UNUSED_ARG(pcb); - LWIP_UNUSED_ARG(addr); - LWIP_UNUSED_ARG(port); - - if (p->len < sizeof(struct dhcp6_msg)) { - LWIP_DEBUGF(DHCP6_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("DHCPv6 reply message or pbuf too short\n")); - goto free_pbuf_and_return; - } - - /* match transaction ID against what we expected */ - xid = reply_msg->transaction_id[0] << 16; - xid |= reply_msg->transaction_id[1] << 8; - xid |= reply_msg->transaction_id[2]; - if (xid != dhcp6->xid) { - LWIP_DEBUGF(DHCP6_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, - ("transaction id mismatch reply_msg->xid(%"X32_F")!= dhcp6->xid(%"X32_F")\n", xid, dhcp6->xid)); - goto free_pbuf_and_return; - } - /* option fields could be unfold? */ - if (dhcp6_parse_reply(p, dhcp6) != ERR_OK) { - LWIP_DEBUGF(DHCP6_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, - ("problem unfolding DHCPv6 message - too short on memory?\n")); - goto free_pbuf_and_return; - } - - /* read DHCP message type */ - msg_type = reply_msg->msgtype; - /* message type is DHCP6 REPLY? */ - if (msg_type == DHCP6_REPLY) { - LWIP_DEBUGF(DHCP6_DEBUG | LWIP_DBG_TRACE, ("DHCP6_REPLY received\n")); -#if LWIP_IPV6_DHCP6_STATELESS - /* in info-requesting state? */ - if (dhcp6->state == DHCP6_STATE_REQUESTING_CONFIG) { - dhcp6_set_state(dhcp6, DHCP6_STATE_STATELESS_IDLE, "dhcp6_recv"); - dhcp6_handle_config_reply(netif, p); - } else -#endif /* LWIP_IPV6_DHCP6_STATELESS */ - { - /* @todo: handle reply in other states? */ - } - } else { - /* @todo: handle other message types */ - } - -free_pbuf_and_return: - pbuf_free(p); -} - -/** - * A DHCPv6 request has timed out. - * - * The timer that was started with the DHCPv6 request has - * timed out, indicating no response was received in time. - */ -static void -dhcp6_timeout(struct netif *netif, struct dhcp6 *dhcp6) -{ - LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp6_timeout()\n")); - - LWIP_UNUSED_ARG(netif); - LWIP_UNUSED_ARG(dhcp6); - -#if LWIP_IPV6_DHCP6_STATELESS - /* back-off period has passed, or server selection timed out */ - if (dhcp6->state == DHCP6_STATE_REQUESTING_CONFIG) { - LWIP_DEBUGF(DHCP6_DEBUG | LWIP_DBG_TRACE, ("dhcp6_timeout(): retrying information request\n")); - dhcp6_information_request(netif, dhcp6); - } -#endif /* LWIP_IPV6_DHCP6_STATELESS */ -} - -/** - * DHCPv6 timeout handling (this function must be called every 500ms, - * see @ref DHCP6_TIMER_MSECS). - * - * A DHCPv6 server is expected to respond within a short period of time. - * This timer checks whether an outstanding DHCPv6 request is timed out. - */ -void -dhcp6_tmr(void) -{ - struct netif *netif; - /* loop through netif's */ - NETIF_FOREACH(netif) { - struct dhcp6 *dhcp6 = netif_dhcp6_data(netif); - /* only act on DHCPv6 configured interfaces */ - if (dhcp6 != NULL) { - /* timer is active (non zero), and is about to trigger now */ - if (dhcp6->request_timeout > 1) { - dhcp6->request_timeout--; - } else if (dhcp6->request_timeout == 1) { - dhcp6->request_timeout--; - /* { dhcp6->request_timeout == 0 } */ - LWIP_DEBUGF(DHCP6_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp6_tmr(): request timeout\n")); - /* this client's request timeout triggered */ - dhcp6_timeout(netif, dhcp6); - } - } - } -} - -#endif /* LWIP_IPV6 && LWIP_IPV6_DHCP6 */ diff --git a/Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.c b/Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.c deleted file mode 100644 index fec8b28..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/ipv6/ethip6.c +++ /dev/null @@ -1,123 +0,0 @@ -/** - * @file - * - * Ethernet output for IPv6. Uses ND tables for link-layer addressing. - */ - -/* - * Copyright (c) 2010 Inico Technologies Ltd. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Ivan Delamer - * - * - * Please coordinate changes and requests with Ivan Delamer - * - */ - -#include "lwip/opt.h" - -#if LWIP_IPV6 && LWIP_ETHERNET - -#include "lwip/ethip6.h" -#include "lwip/nd6.h" -#include "lwip/pbuf.h" -#include "lwip/ip6.h" -#include "lwip/ip6_addr.h" -#include "lwip/inet_chksum.h" -#include "lwip/netif.h" -#include "lwip/icmp6.h" -#include "lwip/prot/ethernet.h" -#include "netif/ethernet.h" - -#include - -/** - * Resolve and fill-in Ethernet address header for outgoing IPv6 packet. - * - * For IPv6 multicast, corresponding Ethernet addresses - * are selected and the packet is transmitted on the link. - * - * For unicast addresses, ask the ND6 module what to do. It will either let us - * send the the packet right away, or queue the packet for later itself, unless - * an error occurs. - * - * @todo anycast addresses - * - * @param netif The lwIP network interface which the IP packet will be sent on. - * @param q The pbuf(s) containing the IP packet to be sent. - * @param ip6addr The IP address of the packet destination. - * - * @return - * - ERR_OK or the return value of @ref nd6_get_next_hop_addr_or_queue. - */ -err_t -ethip6_output(struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr) -{ - struct eth_addr dest; - const u8_t *hwaddr; - err_t result; - - LWIP_ASSERT_CORE_LOCKED(); - - /* The destination IP address must be properly zoned from here on down. */ - IP6_ADDR_ZONECHECK_NETIF(ip6addr, netif); - - /* multicast destination IP address? */ - if (ip6_addr_ismulticast(ip6addr)) { - /* Hash IP multicast address to MAC address.*/ - dest.addr[0] = 0x33; - dest.addr[1] = 0x33; - dest.addr[2] = ((const u8_t *)(&(ip6addr->addr[3])))[0]; - dest.addr[3] = ((const u8_t *)(&(ip6addr->addr[3])))[1]; - dest.addr[4] = ((const u8_t *)(&(ip6addr->addr[3])))[2]; - dest.addr[5] = ((const u8_t *)(&(ip6addr->addr[3])))[3]; - - /* Send out. */ - return ethernet_output(netif, q, (const struct eth_addr*)(netif->hwaddr), &dest, ETHTYPE_IPV6); - } - - /* We have a unicast destination IP address */ - /* @todo anycast? */ - - /* Ask ND6 what to do with the packet. */ - result = nd6_get_next_hop_addr_or_queue(netif, q, ip6addr, &hwaddr); - if (result != ERR_OK) { - return result; - } - - /* If no hardware address is returned, nd6 has queued the packet for later. */ - if (hwaddr == NULL) { - return ERR_OK; - } - - /* Send out the packet using the returned hardware address. */ - SMEMCPY(dest.addr, hwaddr, 6); - return ethernet_output(netif, q, (const struct eth_addr*)(netif->hwaddr), &dest, ETHTYPE_IPV6); -} - -#endif /* LWIP_IPV6 && LWIP_ETHERNET */ diff --git a/Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.c b/Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.c deleted file mode 100644 index 167738a..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/ipv6/icmp6.c +++ /dev/null @@ -1,425 +0,0 @@ -/** - * @file - * - * IPv6 version of ICMP, as per RFC 4443. - */ - -/* - * Copyright (c) 2010 Inico Technologies Ltd. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Ivan Delamer - * - * - * Please coordinate changes and requests with Ivan Delamer - * - */ - -#include "lwip/opt.h" - -#if LWIP_ICMP6 && LWIP_IPV6 /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/icmp6.h" -#include "lwip/prot/icmp6.h" -#include "lwip/ip6.h" -#include "lwip/ip6_addr.h" -#include "lwip/inet_chksum.h" -#include "lwip/pbuf.h" -#include "lwip/netif.h" -#include "lwip/nd6.h" -#include "lwip/mld6.h" -#include "lwip/ip.h" -#include "lwip/stats.h" - -#include - -#if LWIP_ICMP6_DATASIZE == 0 -#undef LWIP_ICMP6_DATASIZE -#define LWIP_ICMP6_DATASIZE 8 -#endif - -/* Forward declarations */ -static void icmp6_send_response(struct pbuf *p, u8_t code, u32_t data, u8_t type); -static void icmp6_send_response_with_addrs(struct pbuf *p, u8_t code, u32_t data, - u8_t type, const ip6_addr_t *src_addr, const ip6_addr_t *dest_addr); -static void icmp6_send_response_with_addrs_and_netif(struct pbuf *p, u8_t code, u32_t data, - u8_t type, const ip6_addr_t *src_addr, const ip6_addr_t *dest_addr, struct netif *netif); - - -/** - * Process an input ICMPv6 message. Called by ip6_input. - * - * Will generate a reply for echo requests. Other messages are forwarded - * to nd6_input, or mld6_input. - * - * @param p the mld packet, p->payload pointing to the icmpv6 header - * @param inp the netif on which this packet was received - */ -void -icmp6_input(struct pbuf *p, struct netif *inp) -{ - struct icmp6_hdr *icmp6hdr; - struct pbuf *r; - const ip6_addr_t *reply_src; - - ICMP6_STATS_INC(icmp6.recv); - - /* Check that ICMPv6 header fits in payload */ - if (p->len < sizeof(struct icmp6_hdr)) { - /* drop short packets */ - pbuf_free(p); - ICMP6_STATS_INC(icmp6.lenerr); - ICMP6_STATS_INC(icmp6.drop); - return; - } - - icmp6hdr = (struct icmp6_hdr *)p->payload; - -#if CHECKSUM_CHECK_ICMP6 - IF__NETIF_CHECKSUM_ENABLED(inp, NETIF_CHECKSUM_CHECK_ICMP6) { - if (ip6_chksum_pseudo(p, IP6_NEXTH_ICMP6, p->tot_len, ip6_current_src_addr(), - ip6_current_dest_addr()) != 0) { - /* Checksum failed */ - pbuf_free(p); - ICMP6_STATS_INC(icmp6.chkerr); - ICMP6_STATS_INC(icmp6.drop); - return; - } - } -#endif /* CHECKSUM_CHECK_ICMP6 */ - - switch (icmp6hdr->type) { - case ICMP6_TYPE_NA: /* Neighbor advertisement */ - case ICMP6_TYPE_NS: /* Neighbor solicitation */ - case ICMP6_TYPE_RA: /* Router advertisement */ - case ICMP6_TYPE_RD: /* Redirect */ - case ICMP6_TYPE_PTB: /* Packet too big */ - nd6_input(p, inp); - return; - case ICMP6_TYPE_RS: -#if LWIP_IPV6_FORWARD - /* @todo implement router functionality */ -#endif - break; -#if LWIP_IPV6_MLD - case ICMP6_TYPE_MLQ: - case ICMP6_TYPE_MLR: - case ICMP6_TYPE_MLD: - mld6_input(p, inp); - return; -#endif - case ICMP6_TYPE_EREQ: -#if !LWIP_MULTICAST_PING - /* multicast destination address? */ - if (ip6_addr_ismulticast(ip6_current_dest_addr())) { - /* drop */ - pbuf_free(p); - ICMP6_STATS_INC(icmp6.drop); - return; - } -#endif /* LWIP_MULTICAST_PING */ - - /* Allocate reply. */ - r = pbuf_alloc(PBUF_IP, p->tot_len, PBUF_RAM); - if (r == NULL) { - /* drop */ - pbuf_free(p); - ICMP6_STATS_INC(icmp6.memerr); - return; - } - - /* Copy echo request. */ - if (pbuf_copy(r, p) != ERR_OK) { - /* drop */ - pbuf_free(p); - pbuf_free(r); - ICMP6_STATS_INC(icmp6.err); - return; - } - - /* Determine reply source IPv6 address. */ -#if LWIP_MULTICAST_PING - if (ip6_addr_ismulticast(ip6_current_dest_addr())) { - reply_src = ip_2_ip6(ip6_select_source_address(inp, ip6_current_src_addr())); - if (reply_src == NULL) { - /* drop */ - pbuf_free(p); - pbuf_free(r); - ICMP6_STATS_INC(icmp6.rterr); - return; - } - } - else -#endif /* LWIP_MULTICAST_PING */ - { - reply_src = ip6_current_dest_addr(); - } - - /* Set fields in reply. */ - ((struct icmp6_echo_hdr *)(r->payload))->type = ICMP6_TYPE_EREP; - ((struct icmp6_echo_hdr *)(r->payload))->chksum = 0; -#if CHECKSUM_GEN_ICMP6 - IF__NETIF_CHECKSUM_ENABLED(inp, NETIF_CHECKSUM_GEN_ICMP6) { - ((struct icmp6_echo_hdr *)(r->payload))->chksum = ip6_chksum_pseudo(r, - IP6_NEXTH_ICMP6, r->tot_len, reply_src, ip6_current_src_addr()); - } -#endif /* CHECKSUM_GEN_ICMP6 */ - - /* Send reply. */ - ICMP6_STATS_INC(icmp6.xmit); - ip6_output_if(r, reply_src, ip6_current_src_addr(), - LWIP_ICMP6_HL, 0, IP6_NEXTH_ICMP6, inp); - pbuf_free(r); - - break; - default: - ICMP6_STATS_INC(icmp6.proterr); - ICMP6_STATS_INC(icmp6.drop); - break; - } - - pbuf_free(p); -} - - -/** - * Send an icmpv6 'destination unreachable' packet. - * - * This function must be used only in direct response to a packet that is being - * received right now. Otherwise, address zones would be lost. - * - * @param p the input packet for which the 'unreachable' should be sent, - * p->payload pointing to the IPv6 header - * @param c ICMPv6 code for the unreachable type - */ -void -icmp6_dest_unreach(struct pbuf *p, enum icmp6_dur_code c) -{ - icmp6_send_response(p, c, 0, ICMP6_TYPE_DUR); -} - -/** - * Send an icmpv6 'packet too big' packet. - * - * This function must be used only in direct response to a packet that is being - * received right now. Otherwise, address zones would be lost. - * - * @param p the input packet for which the 'packet too big' should be sent, - * p->payload pointing to the IPv6 header - * @param mtu the maximum mtu that we can accept - */ -void -icmp6_packet_too_big(struct pbuf *p, u32_t mtu) -{ - icmp6_send_response(p, 0, mtu, ICMP6_TYPE_PTB); -} - -/** - * Send an icmpv6 'time exceeded' packet. - * - * This function must be used only in direct response to a packet that is being - * received right now. Otherwise, address zones would be lost. - * - * @param p the input packet for which the 'time exceeded' should be sent, - * p->payload pointing to the IPv6 header - * @param c ICMPv6 code for the time exceeded type - */ -void -icmp6_time_exceeded(struct pbuf *p, enum icmp6_te_code c) -{ - icmp6_send_response(p, c, 0, ICMP6_TYPE_TE); -} - -/** - * Send an icmpv6 'time exceeded' packet, with explicit source and destination - * addresses. - * - * This function may be used to send a response sometime after receiving the - * packet for which this response is meant. The provided source and destination - * addresses are used primarily to retain their zone information. - * - * @param p the input packet for which the 'time exceeded' should be sent, - * p->payload pointing to the IPv6 header - * @param c ICMPv6 code for the time exceeded type - * @param src_addr source address of the original packet, with zone information - * @param dest_addr destination address of the original packet, with zone - * information - */ -void -icmp6_time_exceeded_with_addrs(struct pbuf *p, enum icmp6_te_code c, - const ip6_addr_t *src_addr, const ip6_addr_t *dest_addr) -{ - icmp6_send_response_with_addrs(p, c, 0, ICMP6_TYPE_TE, src_addr, dest_addr); -} - -/** - * Send an icmpv6 'parameter problem' packet. - * - * This function must be used only in direct response to a packet that is being - * received right now. Otherwise, address zones would be lost and the calculated - * offset would be wrong (calculated against ip6_current_header()). - * - * @param p the input packet for which the 'param problem' should be sent, - * p->payload pointing to the IP header - * @param c ICMPv6 code for the param problem type - * @param pointer the pointer to the byte where the parameter is found - */ -void -icmp6_param_problem(struct pbuf *p, enum icmp6_pp_code c, const void *pointer) -{ - u32_t pointer_u32 = (u32_t)((const u8_t *)pointer - (const u8_t *)ip6_current_header()); - icmp6_send_response(p, c, pointer_u32, ICMP6_TYPE_PP); -} - -/** - * Send an ICMPv6 packet in response to an incoming packet. - * The packet is sent *to* ip_current_src_addr() on ip_current_netif(). - * - * @param p the input packet for which the response should be sent, - * p->payload pointing to the IPv6 header - * @param code Code of the ICMPv6 header - * @param data Additional 32-bit parameter in the ICMPv6 header - * @param type Type of the ICMPv6 header - */ -static void -icmp6_send_response(struct pbuf *p, u8_t code, u32_t data, u8_t type) -{ - const struct ip6_addr *reply_src, *reply_dest; - struct netif *netif = ip_current_netif(); - - LWIP_ASSERT("icmpv6 packet not a direct response", netif != NULL); - reply_dest = ip6_current_src_addr(); - - /* Select an address to use as source. */ - reply_src = ip_2_ip6(ip6_select_source_address(netif, reply_dest)); - if (reply_src == NULL) { - ICMP6_STATS_INC(icmp6.rterr); - return; - } - icmp6_send_response_with_addrs_and_netif(p, code, data, type, reply_src, reply_dest, netif); -} - -/** - * Send an ICMPv6 packet in response to an incoming packet. - * - * Call this function if the packet is NOT sent as a direct response to an - * incoming packet, but rather sometime later (e.g. for a fragment reassembly - * timeout). The caller must provide the zoned source and destination addresses - * from the original packet with the src_addr and dest_addr parameters. The - * reason for this approach is that while the addresses themselves are part of - * the original packet, their zone information is not, thus possibly resulting - * in a link-local response being sent over the wrong link. - * - * @param p the input packet for which the response should be sent, - * p->payload pointing to the IPv6 header - * @param code Code of the ICMPv6 header - * @param data Additional 32-bit parameter in the ICMPv6 header - * @param type Type of the ICMPv6 header - * @param src_addr original source address - * @param dest_addr original destination address - */ -static void -icmp6_send_response_with_addrs(struct pbuf *p, u8_t code, u32_t data, u8_t type, - const ip6_addr_t *src_addr, const ip6_addr_t *dest_addr) -{ - const struct ip6_addr *reply_src, *reply_dest; - struct netif *netif; - - /* Get the destination address and netif for this ICMP message. */ - LWIP_ASSERT("must provide both source and destination", src_addr != NULL); - LWIP_ASSERT("must provide both source and destination", dest_addr != NULL); - - /* Special case, as ip6_current_xxx is either NULL, or points - to a different packet than the one that expired. */ - IP6_ADDR_ZONECHECK(src_addr); - IP6_ADDR_ZONECHECK(dest_addr); - /* Swap source and destination for the reply. */ - reply_dest = src_addr; - reply_src = dest_addr; - netif = ip6_route(reply_src, reply_dest); - if (netif == NULL) { - ICMP6_STATS_INC(icmp6.rterr); - return; - } - icmp6_send_response_with_addrs_and_netif(p, code, data, type, reply_src, - reply_dest, netif); -} - -/** - * Send an ICMPv6 packet (with srd/dst address and netif given). - * - * @param p the input packet for which the response should be sent, - * p->payload pointing to the IPv6 header - * @param code Code of the ICMPv6 header - * @param data Additional 32-bit parameter in the ICMPv6 header - * @param type Type of the ICMPv6 header - * @param reply_src source address of the packet to send - * @param reply_dest destination address of the packet to send - * @param netif netif to send the packet - */ -static void -icmp6_send_response_with_addrs_and_netif(struct pbuf *p, u8_t code, u32_t data, u8_t type, - const ip6_addr_t *reply_src, const ip6_addr_t *reply_dest, struct netif *netif) -{ - struct pbuf *q; - struct icmp6_hdr *icmp6hdr; - - /* ICMPv6 header + IPv6 header + data */ - q = pbuf_alloc(PBUF_IP, sizeof(struct icmp6_hdr) + IP6_HLEN + LWIP_ICMP6_DATASIZE, - PBUF_RAM); - if (q == NULL) { - LWIP_DEBUGF(ICMP_DEBUG, ("icmp_time_exceeded: failed to allocate pbuf for ICMPv6 packet.\n")); - ICMP6_STATS_INC(icmp6.memerr); - return; - } - LWIP_ASSERT("check that first pbuf can hold icmp 6message", - (q->len >= (sizeof(struct icmp6_hdr) + IP6_HLEN + LWIP_ICMP6_DATASIZE))); - - icmp6hdr = (struct icmp6_hdr *)q->payload; - icmp6hdr->type = type; - icmp6hdr->code = code; - icmp6hdr->data = lwip_htonl(data); - - /* copy fields from original packet */ - SMEMCPY((u8_t *)q->payload + sizeof(struct icmp6_hdr), (u8_t *)p->payload, - IP6_HLEN + LWIP_ICMP6_DATASIZE); - - /* calculate checksum */ - icmp6hdr->chksum = 0; -#if CHECKSUM_GEN_ICMP6 - IF__NETIF_CHECKSUM_ENABLED(netif, NETIF_CHECKSUM_GEN_ICMP6) { - icmp6hdr->chksum = ip6_chksum_pseudo(q, IP6_NEXTH_ICMP6, q->tot_len, - reply_src, reply_dest); - } -#endif /* CHECKSUM_GEN_ICMP6 */ - - ICMP6_STATS_INC(icmp6.xmit); - ip6_output_if(q, reply_src, reply_dest, LWIP_ICMP6_HL, 0, IP6_NEXTH_ICMP6, netif); - pbuf_free(q); -} - -#endif /* LWIP_ICMP6 && LWIP_IPV6 */ diff --git a/Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.c b/Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.c deleted file mode 100644 index d9a992c..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/ipv6/inet6.c +++ /dev/null @@ -1,53 +0,0 @@ -/** - * @file - * - * INET v6 addresses. - */ - -/* - * Copyright (c) 2010 Inico Technologies Ltd. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Ivan Delamer - * - * - * Please coordinate changes and requests with Ivan Delamer - * - */ - -#include "lwip/opt.h" - -#if LWIP_IPV6 && LWIP_SOCKET /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/def.h" -#include "lwip/inet.h" - -/** This variable is initialized by the system to contain the wildcard IPv6 address. - */ -const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT; - -#endif /* LWIP_IPV6 */ diff --git a/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.c b/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.c deleted file mode 100644 index eda11dc..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6.c +++ /dev/null @@ -1,1492 +0,0 @@ -/** - * @file - * - * IPv6 layer. - */ - -/* - * Copyright (c) 2010 Inico Technologies Ltd. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Ivan Delamer - * - * - * Please coordinate changes and requests with Ivan Delamer - * - */ - -#include "lwip/opt.h" - -#if LWIP_IPV6 /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/def.h" -#include "lwip/mem.h" -#include "lwip/netif.h" -#include "lwip/ip.h" -#include "lwip/ip6.h" -#include "lwip/ip6_addr.h" -#include "lwip/ip6_frag.h" -#include "lwip/icmp6.h" -#include "lwip/priv/raw_priv.h" -#include "lwip/udp.h" -#include "lwip/priv/tcp_priv.h" -#include "lwip/dhcp6.h" -#include "lwip/nd6.h" -#include "lwip/mld6.h" -#include "lwip/debug.h" -#include "lwip/stats.h" - -#ifdef LWIP_HOOK_FILENAME -#include LWIP_HOOK_FILENAME -#endif - -/** - * Finds the appropriate network interface for a given IPv6 address. It tries to select - * a netif following a sequence of heuristics: - * 1) if there is only 1 netif, return it - * 2) if the destination is a zoned address, match its zone to a netif - * 3) if the either the source or destination address is a scoped address, - * match the source address's zone (if set) or address (if not) to a netif - * 4) tries to match the destination subnet to a configured address - * 5) tries to find a router-announced route - * 6) tries to match the (unscoped) source address to the netif - * 7) returns the default netif, if configured - * - * Note that each of the two given addresses may or may not be properly zoned. - * - * @param src the source IPv6 address, if known - * @param dest the destination IPv6 address for which to find the route - * @return the netif on which to send to reach dest - */ -struct netif * -ip6_route(const ip6_addr_t *src, const ip6_addr_t *dest) -{ -#if LWIP_SINGLE_NETIF - LWIP_UNUSED_ARG(src); - LWIP_UNUSED_ARG(dest); -#else /* LWIP_SINGLE_NETIF */ - struct netif *netif; - s8_t i; - - LWIP_ASSERT_CORE_LOCKED(); - - /* If single netif configuration, fast return. */ - if ((netif_list != NULL) && (netif_list->next == NULL)) { - if (!netif_is_up(netif_list) || !netif_is_link_up(netif_list) || - (ip6_addr_has_zone(dest) && !ip6_addr_test_zone(dest, netif_list))) { - return NULL; - } - return netif_list; - } - -#if LWIP_IPV6_SCOPES - /* Special processing for zoned destination addresses. This includes link- - * local unicast addresses and interface/link-local multicast addresses. Use - * the zone to find a matching netif. If the address is not zoned, then there - * is technically no "wrong" netif to choose, and we leave routing to other - * rules; in most cases this should be the scoped-source rule below. */ - if (ip6_addr_has_zone(dest)) { - IP6_ADDR_ZONECHECK(dest); - /* Find a netif based on the zone. For custom mappings, one zone may map - * to multiple netifs, so find one that can actually send a packet. */ - NETIF_FOREACH(netif) { - if (ip6_addr_test_zone(dest, netif) && - netif_is_up(netif) && netif_is_link_up(netif)) { - return netif; - } - } - /* No matching netif found. Do no try to route to a different netif, - * as that would be a zone violation, resulting in any packets sent to - * that netif being dropped on output. */ - return NULL; - } -#endif /* LWIP_IPV6_SCOPES */ - - /* Special processing for scoped source and destination addresses. If we get - * here, the destination address does not have a zone, so either way we need - * to look at the source address, which may or may not have a zone. If it - * does, the zone is restrictive: there is (typically) only one matching - * netif for it, and we should avoid routing to any other netif as that would - * result in guaranteed zone violations. For scoped source addresses that do - * not have a zone, use (only) a netif that has that source address locally - * assigned. This case also applies to the loopback source address, which has - * an implied link-local scope. If only the destination address is scoped - * (but, again, not zoned), we still want to use only the source address to - * determine its zone because that's most likely what the user/application - * wants, regardless of whether the source address is scoped. Finally, some - * of this story also applies if scoping is disabled altogether. */ -#if LWIP_IPV6_SCOPES - if (ip6_addr_has_scope(dest, IP6_UNKNOWN) || - ip6_addr_has_scope(src, IP6_UNICAST) || -#else /* LWIP_IPV6_SCOPES */ - if (ip6_addr_islinklocal(dest) || ip6_addr_ismulticast_iflocal(dest) || - ip6_addr_ismulticast_linklocal(dest) || ip6_addr_islinklocal(src) || -#endif /* LWIP_IPV6_SCOPES */ - ip6_addr_isloopback(src)) { -#if LWIP_IPV6_SCOPES - if (ip6_addr_has_zone(src)) { - /* Find a netif matching the source zone (relatively cheap). */ - NETIF_FOREACH(netif) { - if (netif_is_up(netif) && netif_is_link_up(netif) && - ip6_addr_test_zone(src, netif)) { - return netif; - } - } - } else -#endif /* LWIP_IPV6_SCOPES */ - { - /* Find a netif matching the source address (relatively expensive). */ - NETIF_FOREACH(netif) { - if (!netif_is_up(netif) || !netif_is_link_up(netif)) { - continue; - } - for (i = 0; i < LWIP_IPV6_NUM_ADDRESSES; i++) { - if (ip6_addr_isvalid(netif_ip6_addr_state(netif, i)) && - ip6_addr_cmp_zoneless(src, netif_ip6_addr(netif, i))) { - return netif; - } - } - } - } - /* Again, do not use any other netif in this case, as that could result in - * zone boundary violations. */ - return NULL; - } - - /* We come here only if neither source nor destination is scoped. */ - IP6_ADDR_ZONECHECK(src); - -#ifdef LWIP_HOOK_IP6_ROUTE - netif = LWIP_HOOK_IP6_ROUTE(src, dest); - if (netif != NULL) { - return netif; - } -#endif - - /* See if the destination subnet matches a configured address. In accordance - * with RFC 5942, dynamically configured addresses do not have an implied - * local subnet, and thus should be considered /128 assignments. However, as - * such, the destination address may still match a local address, and so we - * still need to check for exact matches here. By (lwIP) policy, statically - * configured addresses do always have an implied local /64 subnet. */ - NETIF_FOREACH(netif) { - if (!netif_is_up(netif) || !netif_is_link_up(netif)) { - continue; - } - for (i = 0; i < LWIP_IPV6_NUM_ADDRESSES; i++) { - if (ip6_addr_isvalid(netif_ip6_addr_state(netif, i)) && - ip6_addr_netcmp(dest, netif_ip6_addr(netif, i)) && - (netif_ip6_addr_isstatic(netif, i) || - ip6_addr_nethostcmp(dest, netif_ip6_addr(netif, i)))) { - return netif; - } - } - } - - /* Get the netif for a suitable router-announced route. */ - netif = nd6_find_route(dest); - if (netif != NULL) { - return netif; - } - - /* Try with the netif that matches the source address. Given the earlier rule - * for scoped source addresses, this applies to unscoped addresses only. */ - if (!ip6_addr_isany(src)) { - NETIF_FOREACH(netif) { - if (!netif_is_up(netif) || !netif_is_link_up(netif)) { - continue; - } - for (i = 0; i < LWIP_IPV6_NUM_ADDRESSES; i++) { - if (ip6_addr_isvalid(netif_ip6_addr_state(netif, i)) && - ip6_addr_cmp(src, netif_ip6_addr(netif, i))) { - return netif; - } - } - } - } - -#if LWIP_NETIF_LOOPBACK && !LWIP_HAVE_LOOPIF - /* loopif is disabled, loopback traffic is passed through any netif */ - if (ip6_addr_isloopback(dest)) { - /* don't check for link on loopback traffic */ - if (netif_default != NULL && netif_is_up(netif_default)) { - return netif_default; - } - /* default netif is not up, just use any netif for loopback traffic */ - NETIF_FOREACH(netif) { - if (netif_is_up(netif)) { - return netif; - } - } - return NULL; - } -#endif /* LWIP_NETIF_LOOPBACK && !LWIP_HAVE_LOOPIF */ -#endif /* !LWIP_SINGLE_NETIF */ - - /* no matching netif found, use default netif, if up */ - if ((netif_default == NULL) || !netif_is_up(netif_default) || !netif_is_link_up(netif_default)) { - return NULL; - } - return netif_default; -} - -/** - * @ingroup ip6 - * Select the best IPv6 source address for a given destination IPv6 address. - * - * This implementation follows RFC 6724 Sec. 5 to the following extent: - * - Rules 1, 2, 3: fully implemented - * - Rules 4, 5, 5.5: not applicable - * - Rule 6: not implemented - * - Rule 7: not applicable - * - Rule 8: limited to "prefer /64 subnet match over non-match" - * - * For Rule 2, we deliberately deviate from RFC 6724 Sec. 3.1 by considering - * ULAs to be of smaller scope than global addresses, to avoid that a preferred - * ULA is picked over a deprecated global address when given a global address - * as destination, as that would likely result in broken two-way communication. - * - * As long as temporary addresses are not supported (as used in Rule 7), a - * proper implementation of Rule 8 would obviate the need to implement Rule 6. - * - * @param netif the netif on which to send a packet - * @param dest the destination we are trying to reach (possibly not properly - * zoned) - * @return the most suitable source address to use, or NULL if no suitable - * source address is found - */ -const ip_addr_t * -ip6_select_source_address(struct netif *netif, const ip6_addr_t *dest) -{ - const ip_addr_t *best_addr; - const ip6_addr_t *cand_addr; - s8_t dest_scope, cand_scope; - s8_t best_scope = IP6_MULTICAST_SCOPE_RESERVED; - u8_t i, cand_pref, cand_bits; - u8_t best_pref = 0; - u8_t best_bits = 0; - - /* Start by determining the scope of the given destination address. These - * tests are hopefully (roughly) in order of likeliness to match. */ - if (ip6_addr_isglobal(dest)) { - dest_scope = IP6_MULTICAST_SCOPE_GLOBAL; - } else if (ip6_addr_islinklocal(dest) || ip6_addr_isloopback(dest)) { - dest_scope = IP6_MULTICAST_SCOPE_LINK_LOCAL; - } else if (ip6_addr_isuniquelocal(dest)) { - dest_scope = IP6_MULTICAST_SCOPE_ORGANIZATION_LOCAL; - } else if (ip6_addr_ismulticast(dest)) { - dest_scope = ip6_addr_multicast_scope(dest); - } else if (ip6_addr_issitelocal(dest)) { - dest_scope = IP6_MULTICAST_SCOPE_SITE_LOCAL; - } else { - /* no match, consider scope global */ - dest_scope = IP6_MULTICAST_SCOPE_GLOBAL; - } - - best_addr = NULL; - - for (i = 0; i < LWIP_IPV6_NUM_ADDRESSES; i++) { - /* Consider only valid (= preferred and deprecated) addresses. */ - if (!ip6_addr_isvalid(netif_ip6_addr_state(netif, i))) { - continue; - } - /* Determine the scope of this candidate address. Same ordering idea. */ - cand_addr = netif_ip6_addr(netif, i); - if (ip6_addr_isglobal(cand_addr)) { - cand_scope = IP6_MULTICAST_SCOPE_GLOBAL; - } else if (ip6_addr_islinklocal(cand_addr)) { - cand_scope = IP6_MULTICAST_SCOPE_LINK_LOCAL; - } else if (ip6_addr_isuniquelocal(cand_addr)) { - cand_scope = IP6_MULTICAST_SCOPE_ORGANIZATION_LOCAL; - } else if (ip6_addr_issitelocal(cand_addr)) { - cand_scope = IP6_MULTICAST_SCOPE_SITE_LOCAL; - } else { - /* no match, treat as low-priority global scope */ - cand_scope = IP6_MULTICAST_SCOPE_RESERVEDF; - } - cand_pref = ip6_addr_ispreferred(netif_ip6_addr_state(netif, i)); - /* @todo compute the actual common bits, for longest matching prefix. */ - /* We cannot count on the destination address having a proper zone - * assignment, so do not compare zones in this case. */ - cand_bits = ip6_addr_netcmp_zoneless(cand_addr, dest); /* just 1 or 0 for now */ - if (cand_bits && ip6_addr_nethostcmp(cand_addr, dest)) { - return netif_ip_addr6(netif, i); /* Rule 1 */ - } - if ((best_addr == NULL) || /* no alternative yet */ - ((cand_scope < best_scope) && (cand_scope >= dest_scope)) || - ((cand_scope > best_scope) && (best_scope < dest_scope)) || /* Rule 2 */ - ((cand_scope == best_scope) && ((cand_pref > best_pref) || /* Rule 3 */ - ((cand_pref == best_pref) && (cand_bits > best_bits))))) { /* Rule 8 */ - /* We found a new "winning" candidate. */ - best_addr = netif_ip_addr6(netif, i); - best_scope = cand_scope; - best_pref = cand_pref; - best_bits = cand_bits; - } - } - - return best_addr; /* may be NULL */ -} - -#if LWIP_IPV6_FORWARD -/** - * Forwards an IPv6 packet. It finds an appropriate route for the - * packet, decrements the HL value of the packet, and outputs - * the packet on the appropriate interface. - * - * @param p the packet to forward (p->payload points to IP header) - * @param iphdr the IPv6 header of the input packet - * @param inp the netif on which this packet was received - */ -static void -ip6_forward(struct pbuf *p, struct ip6_hdr *iphdr, struct netif *inp) -{ - struct netif *netif; - - /* do not forward link-local or loopback addresses */ - if (ip6_addr_islinklocal(ip6_current_dest_addr()) || - ip6_addr_isloopback(ip6_current_dest_addr())) { - LWIP_DEBUGF(IP6_DEBUG, ("ip6_forward: not forwarding link-local address.\n")); - IP6_STATS_INC(ip6.rterr); - IP6_STATS_INC(ip6.drop); - return; - } - - /* Find network interface where to forward this IP packet to. */ - netif = ip6_route(IP6_ADDR_ANY6, ip6_current_dest_addr()); - if (netif == NULL) { - LWIP_DEBUGF(IP6_DEBUG, ("ip6_forward: no route for %"X16_F":%"X16_F":%"X16_F":%"X16_F":%"X16_F":%"X16_F":%"X16_F":%"X16_F"\n", - IP6_ADDR_BLOCK1(ip6_current_dest_addr()), - IP6_ADDR_BLOCK2(ip6_current_dest_addr()), - IP6_ADDR_BLOCK3(ip6_current_dest_addr()), - IP6_ADDR_BLOCK4(ip6_current_dest_addr()), - IP6_ADDR_BLOCK5(ip6_current_dest_addr()), - IP6_ADDR_BLOCK6(ip6_current_dest_addr()), - IP6_ADDR_BLOCK7(ip6_current_dest_addr()), - IP6_ADDR_BLOCK8(ip6_current_dest_addr()))); -#if LWIP_ICMP6 - /* Don't send ICMP messages in response to ICMP messages */ - if (IP6H_NEXTH(iphdr) != IP6_NEXTH_ICMP6) { - icmp6_dest_unreach(p, ICMP6_DUR_NO_ROUTE); - } -#endif /* LWIP_ICMP6 */ - IP6_STATS_INC(ip6.rterr); - IP6_STATS_INC(ip6.drop); - return; - } -#if LWIP_IPV6_SCOPES - /* Do not forward packets with a zoned (e.g., link-local) source address - * outside of their zone. We determined the zone a bit earlier, so we know - * that the address is properly zoned here, so we can safely use has_zone. - * Also skip packets with a loopback source address (link-local implied). */ - if ((ip6_addr_has_zone(ip6_current_src_addr()) && - !ip6_addr_test_zone(ip6_current_src_addr(), netif)) || - ip6_addr_isloopback(ip6_current_src_addr())) { - LWIP_DEBUGF(IP6_DEBUG, ("ip6_forward: not forwarding packet beyond its source address zone.\n")); - IP6_STATS_INC(ip6.rterr); - IP6_STATS_INC(ip6.drop); - return; - } -#endif /* LWIP_IPV6_SCOPES */ - /* Do not forward packets onto the same network interface on which - * they arrived. */ - if (netif == inp) { - LWIP_DEBUGF(IP6_DEBUG, ("ip6_forward: not bouncing packets back on incoming interface.\n")); - IP6_STATS_INC(ip6.rterr); - IP6_STATS_INC(ip6.drop); - return; - } - - /* decrement HL */ - IP6H_HOPLIM_SET(iphdr, IP6H_HOPLIM(iphdr) - 1); - /* send ICMP6 if HL == 0 */ - if (IP6H_HOPLIM(iphdr) == 0) { -#if LWIP_ICMP6 - /* Don't send ICMP messages in response to ICMP messages */ - if (IP6H_NEXTH(iphdr) != IP6_NEXTH_ICMP6) { - icmp6_time_exceeded(p, ICMP6_TE_HL); - } -#endif /* LWIP_ICMP6 */ - IP6_STATS_INC(ip6.drop); - return; - } - - if (netif->mtu && (p->tot_len > netif->mtu)) { -#if LWIP_ICMP6 - /* Don't send ICMP messages in response to ICMP messages */ - if (IP6H_NEXTH(iphdr) != IP6_NEXTH_ICMP6) { - icmp6_packet_too_big(p, netif->mtu); - } -#endif /* LWIP_ICMP6 */ - IP6_STATS_INC(ip6.drop); - return; - } - - LWIP_DEBUGF(IP6_DEBUG, ("ip6_forward: forwarding packet to %"X16_F":%"X16_F":%"X16_F":%"X16_F":%"X16_F":%"X16_F":%"X16_F":%"X16_F"\n", - IP6_ADDR_BLOCK1(ip6_current_dest_addr()), - IP6_ADDR_BLOCK2(ip6_current_dest_addr()), - IP6_ADDR_BLOCK3(ip6_current_dest_addr()), - IP6_ADDR_BLOCK4(ip6_current_dest_addr()), - IP6_ADDR_BLOCK5(ip6_current_dest_addr()), - IP6_ADDR_BLOCK6(ip6_current_dest_addr()), - IP6_ADDR_BLOCK7(ip6_current_dest_addr()), - IP6_ADDR_BLOCK8(ip6_current_dest_addr()))); - - /* transmit pbuf on chosen interface */ - netif->output_ip6(netif, p, ip6_current_dest_addr()); - IP6_STATS_INC(ip6.fw); - IP6_STATS_INC(ip6.xmit); - return; -} -#endif /* LWIP_IPV6_FORWARD */ - -/** Return true if the current input packet should be accepted on this netif */ -static int -ip6_input_accept(struct netif *netif) -{ - /* interface is up? */ - if (netif_is_up(netif)) { - u8_t i; - /* unicast to this interface address? address configured? */ - /* If custom scopes are used, the destination zone will be tested as - * part of the local-address comparison, but we need to test the source - * scope as well (e.g., is this interface on the same link?). */ - for (i = 0; i < LWIP_IPV6_NUM_ADDRESSES; i++) { - if (ip6_addr_isvalid(netif_ip6_addr_state(netif, i)) && - ip6_addr_cmp(ip6_current_dest_addr(), netif_ip6_addr(netif, i)) -#if IPV6_CUSTOM_SCOPES - && (!ip6_addr_has_zone(ip6_current_src_addr()) || - ip6_addr_test_zone(ip6_current_src_addr(), netif)) -#endif /* IPV6_CUSTOM_SCOPES */ - ) { - /* accept on this netif */ - return 1; - } - } - } - return 0; -} - -/** - * This function is called by the network interface device driver when - * an IPv6 packet is received. The function does the basic checks of the - * IP header such as packet size being at least larger than the header - * size etc. If the packet was not destined for us, the packet is - * forwarded (using ip6_forward). - * - * Finally, the packet is sent to the upper layer protocol input function. - * - * @param p the received IPv6 packet (p->payload points to IPv6 header) - * @param inp the netif on which this packet was received - * @return ERR_OK if the packet was processed (could return ERR_* if it wasn't - * processed, but currently always returns ERR_OK) - */ -err_t -ip6_input(struct pbuf *p, struct netif *inp) -{ - struct ip6_hdr *ip6hdr; - struct netif *netif; - const u8_t *nexth; - u16_t hlen, hlen_tot; /* the current header length */ -#if 0 /*IP_ACCEPT_LINK_LAYER_ADDRESSING*/ - @todo - int check_ip_src=1; -#endif /* IP_ACCEPT_LINK_LAYER_ADDRESSING */ -#if LWIP_RAW - raw_input_state_t raw_status; -#endif /* LWIP_RAW */ - - LWIP_ASSERT_CORE_LOCKED(); - - IP6_STATS_INC(ip6.recv); - - /* identify the IP header */ - ip6hdr = (struct ip6_hdr *)p->payload; - if (IP6H_V(ip6hdr) != 6) { - LWIP_DEBUGF(IP6_DEBUG | LWIP_DBG_LEVEL_WARNING, ("IPv6 packet dropped due to bad version number %"U32_F"\n", - IP6H_V(ip6hdr))); - pbuf_free(p); - IP6_STATS_INC(ip6.err); - IP6_STATS_INC(ip6.drop); - return ERR_OK; - } - -#ifdef LWIP_HOOK_IP6_INPUT - if (LWIP_HOOK_IP6_INPUT(p, inp)) { - /* the packet has been eaten */ - return ERR_OK; - } -#endif - - /* header length exceeds first pbuf length, or ip length exceeds total pbuf length? */ - if ((IP6_HLEN > p->len) || (IP6H_PLEN(ip6hdr) > (p->tot_len - IP6_HLEN))) { - if (IP6_HLEN > p->len) { - LWIP_DEBUGF(IP6_DEBUG | LWIP_DBG_LEVEL_SERIOUS, - ("IPv6 header (len %"U16_F") does not fit in first pbuf (len %"U16_F"), IP packet dropped.\n", - (u16_t)IP6_HLEN, p->len)); - } - if ((IP6H_PLEN(ip6hdr) + IP6_HLEN) > p->tot_len) { - LWIP_DEBUGF(IP6_DEBUG | LWIP_DBG_LEVEL_SERIOUS, - ("IPv6 (plen %"U16_F") is longer than pbuf (len %"U16_F"), IP packet dropped.\n", - (u16_t)(IP6H_PLEN(ip6hdr) + IP6_HLEN), p->tot_len)); - } - /* free (drop) packet pbufs */ - pbuf_free(p); - IP6_STATS_INC(ip6.lenerr); - IP6_STATS_INC(ip6.drop); - return ERR_OK; - } - - /* Trim pbuf. This should have been done at the netif layer, - * but we'll do it anyway just to be sure that its done. */ - pbuf_realloc(p, (u16_t)(IP6_HLEN + IP6H_PLEN(ip6hdr))); - - /* copy IP addresses to aligned ip6_addr_t */ - ip_addr_copy_from_ip6_packed(ip_data.current_iphdr_dest, ip6hdr->dest); - ip_addr_copy_from_ip6_packed(ip_data.current_iphdr_src, ip6hdr->src); - - /* Don't accept virtual IPv4 mapped IPv6 addresses. - * Don't accept multicast source addresses. */ - if (ip6_addr_isipv4mappedipv6(ip_2_ip6(&ip_data.current_iphdr_dest)) || - ip6_addr_isipv4mappedipv6(ip_2_ip6(&ip_data.current_iphdr_src)) || - ip6_addr_ismulticast(ip_2_ip6(&ip_data.current_iphdr_src))) { - /* free (drop) packet pbufs */ - pbuf_free(p); - IP6_STATS_INC(ip6.err); - IP6_STATS_INC(ip6.drop); - return ERR_OK; - } - - /* Set the appropriate zone identifier on the addresses. */ - ip6_addr_assign_zone(ip_2_ip6(&ip_data.current_iphdr_dest), IP6_UNKNOWN, inp); - ip6_addr_assign_zone(ip_2_ip6(&ip_data.current_iphdr_src), IP6_UNICAST, inp); - - /* current header pointer. */ - ip_data.current_ip6_header = ip6hdr; - - /* In netif, used in case we need to send ICMPv6 packets back. */ - ip_data.current_netif = inp; - ip_data.current_input_netif = inp; - - /* match packet against an interface, i.e. is this packet for us? */ - if (ip6_addr_ismulticast(ip6_current_dest_addr())) { - /* Always joined to multicast if-local and link-local all-nodes group. */ - if (ip6_addr_isallnodes_iflocal(ip6_current_dest_addr()) || - ip6_addr_isallnodes_linklocal(ip6_current_dest_addr())) { - netif = inp; - } -#if LWIP_IPV6_MLD - else if (mld6_lookfor_group(inp, ip6_current_dest_addr())) { - netif = inp; - } -#else /* LWIP_IPV6_MLD */ - else if (ip6_addr_issolicitednode(ip6_current_dest_addr())) { - u8_t i; - /* Filter solicited node packets when MLD is not enabled - * (for Neighbor discovery). */ - netif = NULL; - for (i = 0; i < LWIP_IPV6_NUM_ADDRESSES; i++) { - if (ip6_addr_isvalid(netif_ip6_addr_state(inp, i)) && - ip6_addr_cmp_solicitednode(ip6_current_dest_addr(), netif_ip6_addr(inp, i))) { - netif = inp; - LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: solicited node packet accepted on interface %c%c\n", - netif->name[0], netif->name[1])); - break; - } - } - } -#endif /* LWIP_IPV6_MLD */ - else { - netif = NULL; - } - } else { - /* start trying with inp. if that's not acceptable, start walking the - list of configured netifs. */ - if (ip6_input_accept(inp)) { - netif = inp; - } else { - netif = NULL; -#if !IPV6_CUSTOM_SCOPES - /* Shortcut: stop looking for other interfaces if either the source or - * the destination has a scope constrained to this interface. Custom - * scopes may break the 1:1 link/interface mapping, however. */ - if (ip6_addr_islinklocal(ip6_current_dest_addr()) || - ip6_addr_islinklocal(ip6_current_src_addr())) { - goto netif_found; - } -#endif /* !IPV6_CUSTOM_SCOPES */ -#if !LWIP_NETIF_LOOPBACK || LWIP_HAVE_LOOPIF - /* The loopback address is to be considered link-local. Packets to it - * should be dropped on other interfaces, as per RFC 4291 Sec. 2.5.3. - * Its implied scope means packets *from* the loopback address should - * not be accepted on other interfaces, either. These requirements - * cannot be implemented in the case that loopback traffic is sent - * across a non-loopback interface, however. */ - if (ip6_addr_isloopback(ip6_current_dest_addr()) || - ip6_addr_isloopback(ip6_current_src_addr())) { - goto netif_found; - } -#endif /* !LWIP_NETIF_LOOPBACK || LWIP_HAVE_LOOPIF */ -#if !LWIP_SINGLE_NETIF - NETIF_FOREACH(netif) { - if (netif == inp) { - /* we checked that before already */ - continue; - } - if (ip6_input_accept(netif)) { - break; - } - } -#endif /* !LWIP_SINGLE_NETIF */ - } -netif_found: - LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: packet accepted on interface %c%c\n", - netif ? netif->name[0] : 'X', netif? netif->name[1] : 'X')); - } - - /* "::" packet source address? (used in duplicate address detection) */ - if (ip6_addr_isany(ip6_current_src_addr()) && - (!ip6_addr_issolicitednode(ip6_current_dest_addr()))) { - /* packet source is not valid */ - /* free (drop) packet pbufs */ - LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: packet with src ANY_ADDRESS dropped\n")); - pbuf_free(p); - IP6_STATS_INC(ip6.drop); - goto ip6_input_cleanup; - } - - /* packet not for us? */ - if (netif == NULL) { - /* packet not for us, route or discard */ - LWIP_DEBUGF(IP6_DEBUG | LWIP_DBG_TRACE, ("ip6_input: packet not for us.\n")); -#if LWIP_IPV6_FORWARD - /* non-multicast packet? */ - if (!ip6_addr_ismulticast(ip6_current_dest_addr())) { - /* try to forward IP packet on (other) interfaces */ - ip6_forward(p, ip6hdr, inp); - } -#endif /* LWIP_IPV6_FORWARD */ - pbuf_free(p); - goto ip6_input_cleanup; - } - - /* current netif pointer. */ - ip_data.current_netif = netif; - - /* Save next header type. */ - nexth = &IP6H_NEXTH(ip6hdr); - - /* Init header length. */ - hlen = hlen_tot = IP6_HLEN; - - /* Move to payload. */ - pbuf_remove_header(p, IP6_HLEN); - - /* Process known option extension headers, if present. */ - while (*nexth != IP6_NEXTH_NONE) - { - switch (*nexth) { - case IP6_NEXTH_HOPBYHOP: - { - s32_t opt_offset; - struct ip6_hbh_hdr *hbh_hdr; - struct ip6_opt_hdr *opt_hdr; - LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: packet with Hop-by-Hop options header\n")); - - /* Get and check the header length, while staying in packet bounds. */ - hbh_hdr = (struct ip6_hbh_hdr *)p->payload; - - /* Get next header type. */ - nexth = &IP6_HBH_NEXTH(hbh_hdr); - - /* Get the header length. */ - hlen = (u16_t)(8 * (1 + hbh_hdr->_hlen)); - - if ((p->len < 8) || (hlen > p->len)) { - LWIP_DEBUGF(IP6_DEBUG | LWIP_DBG_LEVEL_SERIOUS, - ("IPv6 options header (hlen %"U16_F") does not fit in first pbuf (len %"U16_F"), IPv6 packet dropped.\n", - hlen, p->len)); - /* free (drop) packet pbufs */ - pbuf_free(p); - IP6_STATS_INC(ip6.lenerr); - IP6_STATS_INC(ip6.drop); - goto ip6_input_cleanup; - } - - hlen_tot = (u16_t)(hlen_tot + hlen); - - /* The extended option header starts right after Hop-by-Hop header. */ - opt_offset = IP6_HBH_HLEN; - while (opt_offset < hlen) - { - s32_t opt_dlen = 0; - - opt_hdr = (struct ip6_opt_hdr *)((u8_t *)hbh_hdr + opt_offset); - - switch (IP6_OPT_TYPE(opt_hdr)) { - /* @todo: process IPV6 Hop-by-Hop option data */ - case IP6_PAD1_OPTION: - /* PAD1 option doesn't have length and value field */ - opt_dlen = -1; - break; - case IP6_PADN_OPTION: - opt_dlen = IP6_OPT_DLEN(opt_hdr); - break; - case IP6_ROUTER_ALERT_OPTION: - opt_dlen = IP6_OPT_DLEN(opt_hdr); - break; - case IP6_JUMBO_OPTION: - opt_dlen = IP6_OPT_DLEN(opt_hdr); - break; - default: - /* Check 2 MSB of Hop-by-Hop header type. */ - switch (IP6_OPT_TYPE_ACTION(opt_hdr)) { - case 1: - /* Discard the packet. */ - LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: packet with invalid Hop-by-Hop option type dropped.\n")); - pbuf_free(p); - IP6_STATS_INC(ip6.drop); - goto ip6_input_cleanup; - case 2: - /* Send ICMP Parameter Problem */ - icmp6_param_problem(p, ICMP6_PP_OPTION, opt_hdr); - LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: packet with invalid Hop-by-Hop option type dropped.\n")); - pbuf_free(p); - IP6_STATS_INC(ip6.drop); - goto ip6_input_cleanup; - case 3: - /* Send ICMP Parameter Problem if destination address is not a multicast address */ - if (!ip6_addr_ismulticast(ip6_current_dest_addr())) { - icmp6_param_problem(p, ICMP6_PP_OPTION, opt_hdr); - } - LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: packet with invalid Hop-by-Hop option type dropped.\n")); - pbuf_free(p); - IP6_STATS_INC(ip6.drop); - goto ip6_input_cleanup; - default: - /* Skip over this option. */ - opt_dlen = IP6_OPT_DLEN(opt_hdr); - break; - } - break; - } - - /* Adjust the offset to move to the next extended option header */ - opt_offset = opt_offset + IP6_OPT_HLEN + opt_dlen; - } - pbuf_remove_header(p, hlen); - break; - } - case IP6_NEXTH_DESTOPTS: - { - s32_t opt_offset; - struct ip6_dest_hdr *dest_hdr; - struct ip6_opt_hdr *opt_hdr; - LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: packet with Destination options header\n")); - - dest_hdr = (struct ip6_dest_hdr *)p->payload; - - /* Get next header type. */ - nexth = &IP6_DEST_NEXTH(dest_hdr); - - /* Get the header length. */ - hlen = 8 * (1 + dest_hdr->_hlen); - if ((p->len < 8) || (hlen > p->len)) { - LWIP_DEBUGF(IP6_DEBUG | LWIP_DBG_LEVEL_SERIOUS, - ("IPv6 options header (hlen %"U16_F") does not fit in first pbuf (len %"U16_F"), IPv6 packet dropped.\n", - hlen, p->len)); - /* free (drop) packet pbufs */ - pbuf_free(p); - IP6_STATS_INC(ip6.lenerr); - IP6_STATS_INC(ip6.drop); - goto ip6_input_cleanup; - } - - hlen_tot = (u16_t)(hlen_tot + hlen); - - /* The extended option header starts right after Destination header. */ - opt_offset = IP6_DEST_HLEN; - while (opt_offset < hlen) - { - s32_t opt_dlen = 0; - - opt_hdr = (struct ip6_opt_hdr *)((u8_t *)dest_hdr + opt_offset); - - switch (IP6_OPT_TYPE(opt_hdr)) - { - /* @todo: process IPV6 Destination option data */ - case IP6_PAD1_OPTION: - /* PAD1 option deosn't have length and value field */ - opt_dlen = -1; - break; - case IP6_PADN_OPTION: - opt_dlen = IP6_OPT_DLEN(opt_hdr); - break; - case IP6_ROUTER_ALERT_OPTION: - opt_dlen = IP6_OPT_DLEN(opt_hdr); - break; - case IP6_JUMBO_OPTION: - opt_dlen = IP6_OPT_DLEN(opt_hdr); - break; - case IP6_HOME_ADDRESS_OPTION: - opt_dlen = IP6_OPT_DLEN(opt_hdr); - break; - default: - /* Check 2 MSB of Destination header type. */ - switch (IP6_OPT_TYPE_ACTION(opt_hdr)) - { - case 1: - /* Discard the packet. */ - LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: packet with invalid destination option type dropped.\n")); - pbuf_free(p); - IP6_STATS_INC(ip6.drop); - goto ip6_input_cleanup; - case 2: - /* Send ICMP Parameter Problem */ - icmp6_param_problem(p, ICMP6_PP_OPTION, opt_hdr); - LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: packet with invalid destination option type dropped.\n")); - pbuf_free(p); - IP6_STATS_INC(ip6.drop); - goto ip6_input_cleanup; - case 3: - /* Send ICMP Parameter Problem if destination address is not a multicast address */ - if (!ip6_addr_ismulticast(ip6_current_dest_addr())) { - icmp6_param_problem(p, ICMP6_PP_OPTION, opt_hdr); - } - LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: packet with invalid destination option type dropped.\n")); - pbuf_free(p); - IP6_STATS_INC(ip6.drop); - goto ip6_input_cleanup; - default: - /* Skip over this option. */ - opt_dlen = IP6_OPT_DLEN(opt_hdr); - break; - } - break; - } - - /* Adjust the offset to move to the next extended option header */ - opt_offset = opt_offset + IP6_OPT_HLEN + opt_dlen; - } - - pbuf_remove_header(p, hlen); - break; - } - case IP6_NEXTH_ROUTING: - { - struct ip6_rout_hdr *rout_hdr; - LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: packet with Routing header\n")); - - rout_hdr = (struct ip6_rout_hdr *)p->payload; - - /* Get next header type. */ - nexth = &IP6_ROUT_NEXTH(rout_hdr); - - /* Get the header length. */ - hlen = 8 * (1 + rout_hdr->_hlen); - - if ((p->len < 8) || (hlen > p->len)) { - LWIP_DEBUGF(IP6_DEBUG | LWIP_DBG_LEVEL_SERIOUS, - ("IPv6 options header (hlen %"U16_F") does not fit in first pbuf (len %"U16_F"), IPv6 packet dropped.\n", - hlen, p->len)); - /* free (drop) packet pbufs */ - pbuf_free(p); - IP6_STATS_INC(ip6.lenerr); - IP6_STATS_INC(ip6.drop); - goto ip6_input_cleanup; - } - - /* Skip over this header. */ - hlen_tot = (u16_t)(hlen_tot + hlen); - - /* if segment left value is 0 in routing header, ignore the option */ - if (IP6_ROUT_SEG_LEFT(rout_hdr)) { - /* The length field of routing option header must be even */ - if (rout_hdr->_hlen & 0x1) { - /* Discard and send parameter field error */ - icmp6_param_problem(p, ICMP6_PP_FIELD, &rout_hdr->_hlen); - LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: packet with invalid routing type dropped\n")); - pbuf_free(p); - IP6_STATS_INC(ip6.drop); - goto ip6_input_cleanup; - } - - switch (IP6_ROUT_TYPE(rout_hdr)) - { - /* TODO: process routing by the type */ - case IP6_ROUT_TYPE2: - break; - case IP6_ROUT_RPL: - break; - default: - /* Discard unrecognized routing type and send parameter field error */ - icmp6_param_problem(p, ICMP6_PP_FIELD, &IP6_ROUT_TYPE(rout_hdr)); - LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: packet with invalid routing type dropped\n")); - pbuf_free(p); - IP6_STATS_INC(ip6.drop); - goto ip6_input_cleanup; - } - } - - pbuf_remove_header(p, hlen); - break; - } - case IP6_NEXTH_FRAGMENT: - { - struct ip6_frag_hdr *frag_hdr; - LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: packet with Fragment header\n")); - - frag_hdr = (struct ip6_frag_hdr *)p->payload; - - /* Get next header type. */ - nexth = &IP6_FRAG_NEXTH(frag_hdr); - - /* Fragment Header length. */ - hlen = 8; - - /* Make sure this header fits in current pbuf. */ - if (hlen > p->len) { - LWIP_DEBUGF(IP6_DEBUG | LWIP_DBG_LEVEL_SERIOUS, - ("IPv6 options header (hlen %"U16_F") does not fit in first pbuf (len %"U16_F"), IPv6 packet dropped.\n", - hlen, p->len)); - /* free (drop) packet pbufs */ - pbuf_free(p); - IP6_FRAG_STATS_INC(ip6_frag.lenerr); - IP6_FRAG_STATS_INC(ip6_frag.drop); - goto ip6_input_cleanup; - } - - hlen_tot = (u16_t)(hlen_tot + hlen); - - /* check payload length is multiple of 8 octets when mbit is set */ - if (IP6_FRAG_MBIT(frag_hdr) && (IP6H_PLEN(ip6hdr) & 0x7)) { - /* ipv6 payload length is not multiple of 8 octets */ - icmp6_param_problem(p, ICMP6_PP_FIELD, LWIP_PACKED_CAST(const void *, &ip6hdr->_plen)); - LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: packet with invalid payload length dropped\n")); - pbuf_free(p); - IP6_STATS_INC(ip6.drop); - goto ip6_input_cleanup; - } - - /* Offset == 0 and more_fragments == 0? */ - if ((frag_hdr->_fragment_offset & - PP_HTONS(IP6_FRAG_OFFSET_MASK | IP6_FRAG_MORE_FLAG)) == 0) { - /* This is a 1-fragment packet. Skip this header and continue. */ - pbuf_remove_header(p, hlen); - } else { -#if LWIP_IPV6_REASS - /* reassemble the packet */ - ip_data.current_ip_header_tot_len = hlen_tot; - p = ip6_reass(p); - /* packet not fully reassembled yet? */ - if (p == NULL) { - goto ip6_input_cleanup; - } - - /* Returned p point to IPv6 header. - * Update all our variables and pointers and continue. */ - ip6hdr = (struct ip6_hdr *)p->payload; - nexth = &IP6H_NEXTH(ip6hdr); - hlen = hlen_tot = IP6_HLEN; - pbuf_remove_header(p, IP6_HLEN); - -#else /* LWIP_IPV6_REASS */ - /* free (drop) packet pbufs */ - LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: packet with Fragment header dropped (with LWIP_IPV6_REASS==0)\n")); - pbuf_free(p); - IP6_STATS_INC(ip6.opterr); - IP6_STATS_INC(ip6.drop); - goto ip6_input_cleanup; -#endif /* LWIP_IPV6_REASS */ - } - break; - } - default: - goto options_done; - } - - if (*nexth == IP6_NEXTH_HOPBYHOP) { - /* Hop-by-Hop header comes only as a first option */ - icmp6_param_problem(p, ICMP6_PP_HEADER, nexth); - LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: packet with Hop-by-Hop options header dropped (only valid as a first option)\n")); - pbuf_free(p); - IP6_STATS_INC(ip6.drop); - goto ip6_input_cleanup; - } - } - -options_done: - - /* send to upper layers */ - LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: \n")); - ip6_debug_print(p); - LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: p->len %"U16_F" p->tot_len %"U16_F"\n", p->len, p->tot_len)); - - ip_data.current_ip_header_tot_len = hlen_tot; - -#if LWIP_RAW - /* p points to IPv6 header again for raw_input. */ - pbuf_add_header_force(p, hlen_tot); - /* raw input did not eat the packet? */ - raw_status = raw_input(p, inp); - if (raw_status != RAW_INPUT_EATEN) - { - /* Point to payload. */ - pbuf_remove_header(p, hlen_tot); -#else /* LWIP_RAW */ - { -#endif /* LWIP_RAW */ - switch (*nexth) { - case IP6_NEXTH_NONE: - pbuf_free(p); - break; -#if LWIP_UDP - case IP6_NEXTH_UDP: -#if LWIP_UDPLITE - case IP6_NEXTH_UDPLITE: -#endif /* LWIP_UDPLITE */ - udp_input(p, inp); - break; -#endif /* LWIP_UDP */ -#if LWIP_TCP - case IP6_NEXTH_TCP: - tcp_input(p, inp); - break; -#endif /* LWIP_TCP */ -#if LWIP_ICMP6 - case IP6_NEXTH_ICMP6: - icmp6_input(p, inp); - break; -#endif /* LWIP_ICMP */ - default: -#if LWIP_RAW - if (raw_status == RAW_INPUT_DELIVERED) { - /* @todo: ipv6 mib in-delivers? */ - } else -#endif /* LWIP_RAW */ - { -#if LWIP_ICMP6 - /* p points to IPv6 header again for raw_input. */ - pbuf_add_header_force(p, hlen_tot); - /* send ICMP parameter problem unless it was a multicast or ICMPv6 */ - if ((!ip6_addr_ismulticast(ip6_current_dest_addr())) && - (IP6H_NEXTH(ip6hdr) != IP6_NEXTH_ICMP6)) { - icmp6_param_problem(p, ICMP6_PP_HEADER, nexth); - } -#endif /* LWIP_ICMP */ - LWIP_DEBUGF(IP6_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("ip6_input: Unsupported transport protocol %"U16_F"\n", (u16_t)IP6H_NEXTH(ip6hdr))); - IP6_STATS_INC(ip6.proterr); - IP6_STATS_INC(ip6.drop); - } - pbuf_free(p); - break; - } - } - -ip6_input_cleanup: - ip_data.current_netif = NULL; - ip_data.current_input_netif = NULL; - ip_data.current_ip6_header = NULL; - ip_data.current_ip_header_tot_len = 0; - ip6_addr_set_zero(ip6_current_src_addr()); - ip6_addr_set_zero(ip6_current_dest_addr()); - - return ERR_OK; -} - - -/** - * Sends an IPv6 packet on a network interface. This function constructs - * the IPv6 header. If the source IPv6 address is NULL, the IPv6 "ANY" address is - * used as source (usually during network startup). If the source IPv6 address it - * IP6_ADDR_ANY, the most appropriate IPv6 address of the outgoing network - * interface is filled in as source address. If the destination IPv6 address is - * LWIP_IP_HDRINCL, p is assumed to already include an IPv6 header and - * p->payload points to it instead of the data. - * - * @param p the packet to send (p->payload points to the data, e.g. next - protocol header; if dest == LWIP_IP_HDRINCL, p already includes an - IPv6 header and p->payload points to that IPv6 header) - * @param src the source IPv6 address to send from (if src == IP6_ADDR_ANY, an - * IP address of the netif is selected and used as source address. - * if src == NULL, IP6_ADDR_ANY is used as source) (src is possibly not - * properly zoned) - * @param dest the destination IPv6 address to send the packet to (possibly not - * properly zoned) - * @param hl the Hop Limit value to be set in the IPv6 header - * @param tc the Traffic Class value to be set in the IPv6 header - * @param nexth the Next Header to be set in the IPv6 header - * @param netif the netif on which to send this packet - * @return ERR_OK if the packet was sent OK - * ERR_BUF if p doesn't have enough space for IPv6/LINK headers - * returns errors returned by netif->output_ip6 - */ -err_t -ip6_output_if(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest, - u8_t hl, u8_t tc, - u8_t nexth, struct netif *netif) -{ - const ip6_addr_t *src_used = src; - if (dest != LWIP_IP_HDRINCL) { - if (src != NULL && ip6_addr_isany(src)) { - src_used = ip_2_ip6(ip6_select_source_address(netif, dest)); - if ((src_used == NULL) || ip6_addr_isany(src_used)) { - /* No appropriate source address was found for this packet. */ - LWIP_DEBUGF(IP6_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("ip6_output: No suitable source address for packet.\n")); - IP6_STATS_INC(ip6.rterr); - return ERR_RTE; - } - } - } - return ip6_output_if_src(p, src_used, dest, hl, tc, nexth, netif); -} - -/** - * Same as ip6_output_if() but 'src' address is not replaced by netif address - * when it is 'any'. - */ -err_t -ip6_output_if_src(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest, - u8_t hl, u8_t tc, - u8_t nexth, struct netif *netif) -{ - struct ip6_hdr *ip6hdr; - ip6_addr_t dest_addr; - - LWIP_ASSERT_CORE_LOCKED(); - LWIP_IP_CHECK_PBUF_REF_COUNT_FOR_TX(p); - - /* Should the IPv6 header be generated or is it already included in p? */ - if (dest != LWIP_IP_HDRINCL) { -#if LWIP_IPV6_SCOPES - /* If the destination address is scoped but lacks a zone, add a zone now, - * based on the outgoing interface. The lower layers (e.g., nd6) absolutely - * require addresses to be properly zoned for correctness. In some cases, - * earlier attempts will have been made to add a zone to the destination, - * but this function is the only one that is called in all (other) cases, - * so we must do this here. */ - if (ip6_addr_lacks_zone(dest, IP6_UNKNOWN)) { - ip6_addr_copy(dest_addr, *dest); - ip6_addr_assign_zone(&dest_addr, IP6_UNKNOWN, netif); - dest = &dest_addr; - } -#endif /* LWIP_IPV6_SCOPES */ - - /* generate IPv6 header */ - if (pbuf_add_header(p, IP6_HLEN)) { - LWIP_DEBUGF(IP6_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("ip6_output: not enough room for IPv6 header in pbuf\n")); - IP6_STATS_INC(ip6.err); - return ERR_BUF; - } - - ip6hdr = (struct ip6_hdr *)p->payload; - LWIP_ASSERT("check that first pbuf can hold struct ip6_hdr", - (p->len >= sizeof(struct ip6_hdr))); - - IP6H_HOPLIM_SET(ip6hdr, hl); - IP6H_NEXTH_SET(ip6hdr, nexth); - - /* dest cannot be NULL here */ - ip6_addr_copy_to_packed(ip6hdr->dest, *dest); - - IP6H_VTCFL_SET(ip6hdr, 6, tc, 0); - IP6H_PLEN_SET(ip6hdr, (u16_t)(p->tot_len - IP6_HLEN)); - - if (src == NULL) { - src = IP6_ADDR_ANY6; - } - /* src cannot be NULL here */ - ip6_addr_copy_to_packed(ip6hdr->src, *src); - - } else { - /* IP header already included in p */ - ip6hdr = (struct ip6_hdr *)p->payload; - ip6_addr_copy_from_packed(dest_addr, ip6hdr->dest); - ip6_addr_assign_zone(&dest_addr, IP6_UNKNOWN, netif); - dest = &dest_addr; - } - - IP6_STATS_INC(ip6.xmit); - - LWIP_DEBUGF(IP6_DEBUG, ("ip6_output_if: %c%c%"U16_F"\n", netif->name[0], netif->name[1], (u16_t)netif->num)); - ip6_debug_print(p); - -#if ENABLE_LOOPBACK - { - int i; -#if !LWIP_HAVE_LOOPIF - if (ip6_addr_isloopback(dest)) { - return netif_loop_output(netif, p); - } -#endif /* !LWIP_HAVE_LOOPIF */ - for (i = 0; i < LWIP_IPV6_NUM_ADDRESSES; i++) { - if (ip6_addr_isvalid(netif_ip6_addr_state(netif, i)) && - ip6_addr_cmp(dest, netif_ip6_addr(netif, i))) { - /* Packet to self, enqueue it for loopback */ - LWIP_DEBUGF(IP6_DEBUG, ("netif_loop_output()\n")); - return netif_loop_output(netif, p); - } - } - } -#if LWIP_MULTICAST_TX_OPTIONS - if ((p->flags & PBUF_FLAG_MCASTLOOP) != 0) { - netif_loop_output(netif, p); - } -#endif /* LWIP_MULTICAST_TX_OPTIONS */ -#endif /* ENABLE_LOOPBACK */ -#if LWIP_IPV6_FRAG - /* don't fragment if interface has mtu set to 0 [loopif] */ - if (netif_mtu6(netif) && (p->tot_len > nd6_get_destination_mtu(dest, netif))) { - return ip6_frag(p, netif, dest); - } -#endif /* LWIP_IPV6_FRAG */ - - LWIP_DEBUGF(IP6_DEBUG, ("netif->output_ip6()\n")); - return netif->output_ip6(netif, p, dest); -} - -/** - * Simple interface to ip6_output_if. It finds the outgoing network - * interface and calls upon ip6_output_if to do the actual work. - * - * @param p the packet to send (p->payload points to the data, e.g. next - protocol header; if dest == LWIP_IP_HDRINCL, p already includes an - IPv6 header and p->payload points to that IPv6 header) - * @param src the source IPv6 address to send from (if src == IP6_ADDR_ANY, an - * IP address of the netif is selected and used as source address. - * if src == NULL, IP6_ADDR_ANY is used as source) - * @param dest the destination IPv6 address to send the packet to - * @param hl the Hop Limit value to be set in the IPv6 header - * @param tc the Traffic Class value to be set in the IPv6 header - * @param nexth the Next Header to be set in the IPv6 header - * - * @return ERR_RTE if no route is found - * see ip_output_if() for more return values - */ -err_t -ip6_output(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest, - u8_t hl, u8_t tc, u8_t nexth) -{ - struct netif *netif; - struct ip6_hdr *ip6hdr; - ip6_addr_t src_addr, dest_addr; - - LWIP_IP_CHECK_PBUF_REF_COUNT_FOR_TX(p); - - if (dest != LWIP_IP_HDRINCL) { - netif = ip6_route(src, dest); - } else { - /* IP header included in p, read addresses. */ - ip6hdr = (struct ip6_hdr *)p->payload; - ip6_addr_copy_from_packed(src_addr, ip6hdr->src); - ip6_addr_copy_from_packed(dest_addr, ip6hdr->dest); - netif = ip6_route(&src_addr, &dest_addr); - } - - if (netif == NULL) { - LWIP_DEBUGF(IP6_DEBUG, ("ip6_output: no route for %"X16_F":%"X16_F":%"X16_F":%"X16_F":%"X16_F":%"X16_F":%"X16_F":%"X16_F"\n", - IP6_ADDR_BLOCK1(dest), - IP6_ADDR_BLOCK2(dest), - IP6_ADDR_BLOCK3(dest), - IP6_ADDR_BLOCK4(dest), - IP6_ADDR_BLOCK5(dest), - IP6_ADDR_BLOCK6(dest), - IP6_ADDR_BLOCK7(dest), - IP6_ADDR_BLOCK8(dest))); - IP6_STATS_INC(ip6.rterr); - return ERR_RTE; - } - - return ip6_output_if(p, src, dest, hl, tc, nexth, netif); -} - - -#if LWIP_NETIF_USE_HINTS -/** Like ip6_output, but takes and addr_hint pointer that is passed on to netif->addr_hint - * before calling ip6_output_if. - * - * @param p the packet to send (p->payload points to the data, e.g. next - protocol header; if dest == LWIP_IP_HDRINCL, p already includes an - IPv6 header and p->payload points to that IPv6 header) - * @param src the source IPv6 address to send from (if src == IP6_ADDR_ANY, an - * IP address of the netif is selected and used as source address. - * if src == NULL, IP6_ADDR_ANY is used as source) - * @param dest the destination IPv6 address to send the packet to - * @param hl the Hop Limit value to be set in the IPv6 header - * @param tc the Traffic Class value to be set in the IPv6 header - * @param nexth the Next Header to be set in the IPv6 header - * @param netif_hint netif output hint pointer set to netif->hint before - * calling ip_output_if() - * - * @return ERR_RTE if no route is found - * see ip_output_if() for more return values - */ -err_t -ip6_output_hinted(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest, - u8_t hl, u8_t tc, u8_t nexth, struct netif_hint *netif_hint) -{ - struct netif *netif; - struct ip6_hdr *ip6hdr; - ip6_addr_t src_addr, dest_addr; - err_t err; - - LWIP_IP_CHECK_PBUF_REF_COUNT_FOR_TX(p); - - if (dest != LWIP_IP_HDRINCL) { - netif = ip6_route(src, dest); - } else { - /* IP header included in p, read addresses. */ - ip6hdr = (struct ip6_hdr *)p->payload; - ip6_addr_copy_from_packed(src_addr, ip6hdr->src); - ip6_addr_copy_from_packed(dest_addr, ip6hdr->dest); - netif = ip6_route(&src_addr, &dest_addr); - } - - if (netif == NULL) { - LWIP_DEBUGF(IP6_DEBUG, ("ip6_output: no route for %"X16_F":%"X16_F":%"X16_F":%"X16_F":%"X16_F":%"X16_F":%"X16_F":%"X16_F"\n", - IP6_ADDR_BLOCK1(dest), - IP6_ADDR_BLOCK2(dest), - IP6_ADDR_BLOCK3(dest), - IP6_ADDR_BLOCK4(dest), - IP6_ADDR_BLOCK5(dest), - IP6_ADDR_BLOCK6(dest), - IP6_ADDR_BLOCK7(dest), - IP6_ADDR_BLOCK8(dest))); - IP6_STATS_INC(ip6.rterr); - return ERR_RTE; - } - - NETIF_SET_HINTS(netif, netif_hint); - err = ip6_output_if(p, src, dest, hl, tc, nexth, netif); - NETIF_RESET_HINTS(netif); - - return err; -} -#endif /* LWIP_NETIF_USE_HINTS*/ - -#if LWIP_IPV6_MLD -/** - * Add a hop-by-hop options header with a router alert option and padding. - * - * Used by MLD when sending a Multicast listener report/done message. - * - * @param p the packet to which we will prepend the options header - * @param nexth the next header protocol number (e.g. IP6_NEXTH_ICMP6) - * @param value the value of the router alert option data (e.g. IP6_ROUTER_ALERT_VALUE_MLD) - * @return ERR_OK if hop-by-hop header was added, ERR_* otherwise - */ -err_t -ip6_options_add_hbh_ra(struct pbuf *p, u8_t nexth, u8_t value) -{ - u8_t *opt_data; - u32_t offset = 0; - struct ip6_hbh_hdr *hbh_hdr; - struct ip6_opt_hdr *opt_hdr; - - /* fixed 4 bytes for router alert option and 2 bytes padding */ - const u8_t hlen = (sizeof(struct ip6_opt_hdr) * 2) + IP6_ROUTER_ALERT_DLEN; - /* Move pointer to make room for hop-by-hop options header. */ - if (pbuf_add_header(p, sizeof(struct ip6_hbh_hdr) + hlen)) { - LWIP_DEBUGF(IP6_DEBUG, ("ip6_options: no space for options header\n")); - IP6_STATS_INC(ip6.err); - return ERR_BUF; - } - - /* Set fields of Hop-by-Hop header */ - hbh_hdr = (struct ip6_hbh_hdr *)p->payload; - IP6_HBH_NEXTH(hbh_hdr) = nexth; - hbh_hdr->_hlen = 0; - offset = IP6_HBH_HLEN; - - /* Set router alert options to Hop-by-Hop extended option header */ - opt_hdr = (struct ip6_opt_hdr *)((u8_t *)hbh_hdr + offset); - IP6_OPT_TYPE(opt_hdr) = IP6_ROUTER_ALERT_OPTION; - IP6_OPT_DLEN(opt_hdr) = IP6_ROUTER_ALERT_DLEN; - offset += IP6_OPT_HLEN; - - /* Set router alert option data */ - opt_data = (u8_t *)hbh_hdr + offset; - opt_data[0] = value; - opt_data[1] = 0; - offset += IP6_OPT_DLEN(opt_hdr); - - /* add 2 bytes padding to make 8 bytes Hop-by-Hop header length */ - opt_hdr = (struct ip6_opt_hdr *)((u8_t *)hbh_hdr + offset); - IP6_OPT_TYPE(opt_hdr) = IP6_PADN_OPTION; - IP6_OPT_DLEN(opt_hdr) = 0; - - return ERR_OK; -} -#endif /* LWIP_IPV6_MLD */ - -#if IP6_DEBUG -/* Print an IPv6 header by using LWIP_DEBUGF - * @param p an IPv6 packet, p->payload pointing to the IPv6 header - */ -void -ip6_debug_print(struct pbuf *p) -{ - struct ip6_hdr *ip6hdr = (struct ip6_hdr *)p->payload; - - LWIP_DEBUGF(IP6_DEBUG, ("IPv6 header:\n")); - LWIP_DEBUGF(IP6_DEBUG, ("+-------------------------------+\n")); - LWIP_DEBUGF(IP6_DEBUG, ("| %2"U16_F" | %3"U16_F" | %7"U32_F" | (ver, class, flow)\n", - IP6H_V(ip6hdr), - IP6H_TC(ip6hdr), - IP6H_FL(ip6hdr))); - LWIP_DEBUGF(IP6_DEBUG, ("+-------------------------------+\n")); - LWIP_DEBUGF(IP6_DEBUG, ("| %5"U16_F" | %3"U16_F" | %3"U16_F" | (plen, nexth, hopl)\n", - IP6H_PLEN(ip6hdr), - IP6H_NEXTH(ip6hdr), - IP6H_HOPLIM(ip6hdr))); - LWIP_DEBUGF(IP6_DEBUG, ("+-------------------------------+\n")); - LWIP_DEBUGF(IP6_DEBUG, ("| %4"X32_F" | %4"X32_F" | %4"X32_F" | %4"X32_F" | (src)\n", - IP6_ADDR_BLOCK1(&(ip6hdr->src)), - IP6_ADDR_BLOCK2(&(ip6hdr->src)), - IP6_ADDR_BLOCK3(&(ip6hdr->src)), - IP6_ADDR_BLOCK4(&(ip6hdr->src)))); - LWIP_DEBUGF(IP6_DEBUG, ("| %4"X32_F" | %4"X32_F" | %4"X32_F" | %4"X32_F" |\n", - IP6_ADDR_BLOCK5(&(ip6hdr->src)), - IP6_ADDR_BLOCK6(&(ip6hdr->src)), - IP6_ADDR_BLOCK7(&(ip6hdr->src)), - IP6_ADDR_BLOCK8(&(ip6hdr->src)))); - LWIP_DEBUGF(IP6_DEBUG, ("+-------------------------------+\n")); - LWIP_DEBUGF(IP6_DEBUG, ("| %4"X32_F" | %4"X32_F" | %4"X32_F" | %4"X32_F" | (dest)\n", - IP6_ADDR_BLOCK1(&(ip6hdr->dest)), - IP6_ADDR_BLOCK2(&(ip6hdr->dest)), - IP6_ADDR_BLOCK3(&(ip6hdr->dest)), - IP6_ADDR_BLOCK4(&(ip6hdr->dest)))); - LWIP_DEBUGF(IP6_DEBUG, ("| %4"X32_F" | %4"X32_F" | %4"X32_F" | %4"X32_F" |\n", - IP6_ADDR_BLOCK5(&(ip6hdr->dest)), - IP6_ADDR_BLOCK6(&(ip6hdr->dest)), - IP6_ADDR_BLOCK7(&(ip6hdr->dest)), - IP6_ADDR_BLOCK8(&(ip6hdr->dest)))); - LWIP_DEBUGF(IP6_DEBUG, ("+-------------------------------+\n")); -} -#endif /* IP6_DEBUG */ - -#endif /* LWIP_IPV6 */ diff --git a/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.c b/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.c deleted file mode 100644 index 687c02f..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_addr.c +++ /dev/null @@ -1,343 +0,0 @@ -/** - * @file - * - * IPv6 addresses. - */ - -/* - * Copyright (c) 2010 Inico Technologies Ltd. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Ivan Delamer - * - * Functions for handling IPv6 addresses. - * - * Please coordinate changes and requests with Ivan Delamer - * - */ - -#include "lwip/opt.h" - -#if LWIP_IPV6 /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/ip_addr.h" -#include "lwip/def.h" - -#include - -#if LWIP_IPV4 -#include "lwip/ip4_addr.h" /* for ip6addr_aton to handle IPv4-mapped addresses */ -#endif /* LWIP_IPV4 */ - -/* used by IP6_ADDR_ANY(6) in ip6_addr.h */ -const ip_addr_t ip6_addr_any = IPADDR6_INIT(0ul, 0ul, 0ul, 0ul); - -#define lwip_xchar(i) ((char)((i) < 10 ? '0' + (i) : 'A' + (i) - 10)) - -/** - * Check whether "cp" is a valid ascii representation - * of an IPv6 address and convert to a binary address. - * Returns 1 if the address is valid, 0 if not. - * - * @param cp IPv6 address in ascii representation (e.g. "FF01::1") - * @param addr pointer to which to save the ip address in network order - * @return 1 if cp could be converted to addr, 0 on failure - */ -int -ip6addr_aton(const char *cp, ip6_addr_t *addr) -{ - u32_t addr_index, zero_blocks, current_block_index, current_block_value; - const char *s; -#if LWIP_IPV4 - int check_ipv4_mapped = 0; -#endif /* LWIP_IPV4 */ - - /* Count the number of colons, to count the number of blocks in a "::" sequence - zero_blocks may be 1 even if there are no :: sequences */ - zero_blocks = 8; - for (s = cp; *s != 0; s++) { - if (*s == ':') { - zero_blocks--; -#if LWIP_IPV4 - } else if (*s == '.') { - if ((zero_blocks == 5) ||(zero_blocks == 2)) { - check_ipv4_mapped = 1; - /* last block could be the start of an IPv4 address */ - zero_blocks--; - } else { - /* invalid format */ - return 0; - } - break; -#endif /* LWIP_IPV4 */ - } else if (!lwip_isxdigit(*s)) { - break; - } - } - - /* parse each block */ - addr_index = 0; - current_block_index = 0; - current_block_value = 0; - for (s = cp; *s != 0; s++) { - if (*s == ':') { - if (addr) { - if (current_block_index & 0x1) { - addr->addr[addr_index++] |= current_block_value; - } - else { - addr->addr[addr_index] = current_block_value << 16; - } - } - current_block_index++; -#if LWIP_IPV4 - if (check_ipv4_mapped) { - if (current_block_index == 6) { - ip4_addr_t ip4; - int ret = ip4addr_aton(s + 1, &ip4); - if (ret) { - if (addr) { - addr->addr[3] = lwip_htonl(ip4.addr); - current_block_index++; - goto fix_byte_order_and_return; - } - return 1; - } - } - } -#endif /* LWIP_IPV4 */ - current_block_value = 0; - if (current_block_index > 7) { - /* address too long! */ - return 0; - } - if (s[1] == ':') { - if (s[2] == ':') { - /* invalid format: three successive colons */ - return 0; - } - s++; - /* "::" found, set zeros */ - while (zero_blocks > 0) { - zero_blocks--; - if (current_block_index & 0x1) { - addr_index++; - } else { - if (addr) { - addr->addr[addr_index] = 0; - } - } - current_block_index++; - if (current_block_index > 7) { - /* address too long! */ - return 0; - } - } - } - } else if (lwip_isxdigit(*s)) { - /* add current digit */ - current_block_value = (current_block_value << 4) + - (lwip_isdigit(*s) ? (u32_t)(*s - '0') : - (u32_t)(10 + (lwip_islower(*s) ? *s - 'a' : *s - 'A'))); - } else { - /* unexpected digit, space? CRLF? */ - break; - } - } - - if (addr) { - if (current_block_index & 0x1) { - addr->addr[addr_index++] |= current_block_value; - } - else { - addr->addr[addr_index] = current_block_value << 16; - } -#if LWIP_IPV4 -fix_byte_order_and_return: -#endif - /* convert to network byte order. */ - for (addr_index = 0; addr_index < 4; addr_index++) { - addr->addr[addr_index] = lwip_htonl(addr->addr[addr_index]); - } - - ip6_addr_clear_zone(addr); - } - - if (current_block_index != 7) { - return 0; - } - - return 1; -} - -/** - * Convert numeric IPv6 address into ASCII representation. - * returns ptr to static buffer; not reentrant! - * - * @param addr ip6 address in network order to convert - * @return pointer to a global static (!) buffer that holds the ASCII - * representation of addr - */ -char * -ip6addr_ntoa(const ip6_addr_t *addr) -{ - static char str[40]; - return ip6addr_ntoa_r(addr, str, 40); -} - -/** - * Same as ipaddr_ntoa, but reentrant since a user-supplied buffer is used. - * - * @param addr ip6 address in network order to convert - * @param buf target buffer where the string is stored - * @param buflen length of buf - * @return either pointer to buf which now holds the ASCII - * representation of addr or NULL if buf was too small - */ -char * -ip6addr_ntoa_r(const ip6_addr_t *addr, char *buf, int buflen) -{ - u32_t current_block_index, current_block_value, next_block_value; - s32_t i; - u8_t zero_flag, empty_block_flag; - -#if LWIP_IPV4 - if (ip6_addr_isipv4mappedipv6(addr)) { - /* This is an IPv4 mapped address */ - ip4_addr_t addr4; - char *ret; -#define IP4MAPPED_HEADER "::FFFF:" - char *buf_ip4 = buf + sizeof(IP4MAPPED_HEADER) - 1; - int buflen_ip4 = buflen - sizeof(IP4MAPPED_HEADER) + 1; - if (buflen < (int)sizeof(IP4MAPPED_HEADER)) { - return NULL; - } - memcpy(buf, IP4MAPPED_HEADER, sizeof(IP4MAPPED_HEADER)); - addr4.addr = addr->addr[3]; - ret = ip4addr_ntoa_r(&addr4, buf_ip4, buflen_ip4); - if (ret != buf_ip4) { - return NULL; - } - return buf; - } -#endif /* LWIP_IPV4 */ - i = 0; - empty_block_flag = 0; /* used to indicate a zero chain for "::' */ - - for (current_block_index = 0; current_block_index < 8; current_block_index++) { - /* get the current 16-bit block */ - current_block_value = lwip_htonl(addr->addr[current_block_index >> 1]); - if ((current_block_index & 0x1) == 0) { - current_block_value = current_block_value >> 16; - } - current_block_value &= 0xffff; - - /* Check for empty block. */ - if (current_block_value == 0) { - if (current_block_index == 7 && empty_block_flag == 1) { - /* special case, we must render a ':' for the last block. */ - buf[i++] = ':'; - if (i >= buflen) { - return NULL; - } - break; - } - if (empty_block_flag == 0) { - /* generate empty block "::", but only if more than one contiguous zero block, - * according to current formatting suggestions RFC 5952. */ - next_block_value = lwip_htonl(addr->addr[(current_block_index + 1) >> 1]); - if ((current_block_index & 0x1) == 0x01) { - next_block_value = next_block_value >> 16; - } - next_block_value &= 0xffff; - if (next_block_value == 0) { - empty_block_flag = 1; - buf[i++] = ':'; - if (i >= buflen) { - return NULL; - } - continue; /* move on to next block. */ - } - } else if (empty_block_flag == 1) { - /* move on to next block. */ - continue; - } - } else if (empty_block_flag == 1) { - /* Set this flag value so we don't produce multiple empty blocks. */ - empty_block_flag = 2; - } - - if (current_block_index > 0) { - buf[i++] = ':'; - if (i >= buflen) { - return NULL; - } - } - - if ((current_block_value & 0xf000) == 0) { - zero_flag = 1; - } else { - buf[i++] = lwip_xchar(((current_block_value & 0xf000) >> 12)); - zero_flag = 0; - if (i >= buflen) { - return NULL; - } - } - - if (((current_block_value & 0xf00) == 0) && (zero_flag)) { - /* do nothing */ - } else { - buf[i++] = lwip_xchar(((current_block_value & 0xf00) >> 8)); - zero_flag = 0; - if (i >= buflen) { - return NULL; - } - } - - if (((current_block_value & 0xf0) == 0) && (zero_flag)) { - /* do nothing */ - } - else { - buf[i++] = lwip_xchar(((current_block_value & 0xf0) >> 4)); - zero_flag = 0; - if (i >= buflen) { - return NULL; - } - } - - buf[i++] = lwip_xchar((current_block_value & 0xf)); - if (i >= buflen) { - return NULL; - } - } - - buf[i] = 0; - - return buf; -} - -#endif /* LWIP_IPV6 */ diff --git a/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.c b/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.c deleted file mode 100644 index d6c5d22..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/ipv6/ip6_frag.c +++ /dev/null @@ -1,862 +0,0 @@ -/** - * @file - * - * IPv6 fragmentation and reassembly. - */ - -/* - * Copyright (c) 2010 Inico Technologies Ltd. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Ivan Delamer - * - * - * Please coordinate changes and requests with Ivan Delamer - * - */ - -#include "lwip/opt.h" -#include "lwip/ip6_frag.h" -#include "lwip/ip6.h" -#include "lwip/icmp6.h" -#include "lwip/nd6.h" -#include "lwip/ip.h" - -#include "lwip/pbuf.h" -#include "lwip/memp.h" -#include "lwip/stats.h" - -#include - -#if LWIP_IPV6 && LWIP_IPV6_REASS /* don't build if not configured for use in lwipopts.h */ - - -/** Setting this to 0, you can turn off checking the fragments for overlapping - * regions. The code gets a little smaller. Only use this if you know that - * overlapping won't occur on your network! */ -#ifndef IP_REASS_CHECK_OVERLAP -#define IP_REASS_CHECK_OVERLAP 1 -#endif /* IP_REASS_CHECK_OVERLAP */ - -/** Set to 0 to prevent freeing the oldest datagram when the reassembly buffer is - * full (IP_REASS_MAX_PBUFS pbufs are enqueued). The code gets a little smaller. - * Datagrams will be freed by timeout only. Especially useful when MEMP_NUM_REASSDATA - * is set to 1, so one datagram can be reassembled at a time, only. */ -#ifndef IP_REASS_FREE_OLDEST -#define IP_REASS_FREE_OLDEST 1 -#endif /* IP_REASS_FREE_OLDEST */ - -#if IPV6_FRAG_COPYHEADER -/* The number of bytes we need to "borrow" from (i.e., overwrite in) the header - * that precedes the fragment header for reassembly pruposes. */ -#define IPV6_FRAG_REQROOM ((s16_t)(sizeof(struct ip6_reass_helper) - IP6_FRAG_HLEN)) -#endif - -#define IP_REASS_FLAG_LASTFRAG 0x01 - -/** This is a helper struct which holds the starting - * offset and the ending offset of this fragment to - * easily chain the fragments. - * It has the same packing requirements as the IPv6 header, since it replaces - * the Fragment Header in memory in incoming fragments to keep - * track of the various fragments. - */ -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct ip6_reass_helper { - PACK_STRUCT_FIELD(struct pbuf *next_pbuf); - PACK_STRUCT_FIELD(u16_t start); - PACK_STRUCT_FIELD(u16_t end); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -/* static variables */ -static struct ip6_reassdata *reassdatagrams; -static u16_t ip6_reass_pbufcount; - -/* Forward declarations. */ -static void ip6_reass_free_complete_datagram(struct ip6_reassdata *ipr); -#if IP_REASS_FREE_OLDEST -static void ip6_reass_remove_oldest_datagram(struct ip6_reassdata *ipr, int pbufs_needed); -#endif /* IP_REASS_FREE_OLDEST */ - -void -ip6_reass_tmr(void) -{ - struct ip6_reassdata *r, *tmp; - -#if !IPV6_FRAG_COPYHEADER - LWIP_ASSERT("sizeof(struct ip6_reass_helper) <= IP6_FRAG_HLEN, set IPV6_FRAG_COPYHEADER to 1", - sizeof(struct ip6_reass_helper) <= IP6_FRAG_HLEN); -#endif /* !IPV6_FRAG_COPYHEADER */ - - r = reassdatagrams; - while (r != NULL) { - /* Decrement the timer. Once it reaches 0, - * clean up the incomplete fragment assembly */ - if (r->timer > 0) { - r->timer--; - r = r->next; - } else { - /* reassembly timed out */ - tmp = r; - /* get the next pointer before freeing */ - r = r->next; - /* free the helper struct and all enqueued pbufs */ - ip6_reass_free_complete_datagram(tmp); - } - } -} - -/** - * Free a datagram (struct ip6_reassdata) and all its pbufs. - * Updates the total count of enqueued pbufs (ip6_reass_pbufcount), - * sends an ICMP time exceeded packet. - * - * @param ipr datagram to free - */ -static void -ip6_reass_free_complete_datagram(struct ip6_reassdata *ipr) -{ - struct ip6_reassdata *prev; - u16_t pbufs_freed = 0; - u16_t clen; - struct pbuf *p; - struct ip6_reass_helper *iprh; - -#if LWIP_ICMP6 - iprh = (struct ip6_reass_helper *)ipr->p->payload; - if (iprh->start == 0) { - /* The first fragment was received, send ICMP time exceeded. */ - /* First, de-queue the first pbuf from r->p. */ - p = ipr->p; - ipr->p = iprh->next_pbuf; - /* Restore the part that we've overwritten with our helper structure, or we - * might send garbage (and disclose a pointer) in the ICMPv6 reply. */ - MEMCPY(p->payload, ipr->orig_hdr, sizeof(iprh)); - /* Then, move back to the original ipv6 header (we are now pointing to Fragment header). - This cannot fail since we already checked when receiving this fragment. */ - if (pbuf_header_force(p, (s16_t)((u8_t*)p->payload - (u8_t*)ipr->iphdr))) { - LWIP_ASSERT("ip6_reass_free: moving p->payload to ip6 header failed\n", 0); - } - else { - /* Reconstruct the zoned source and destination addresses, so that we do - * not end up sending the ICMP response over the wrong link. */ - ip6_addr_t src_addr, dest_addr; - ip6_addr_copy_from_packed(src_addr, IPV6_FRAG_SRC(ipr)); - ip6_addr_set_zone(&src_addr, ipr->src_zone); - ip6_addr_copy_from_packed(dest_addr, IPV6_FRAG_DEST(ipr)); - ip6_addr_set_zone(&dest_addr, ipr->dest_zone); - /* Send the actual ICMP response. */ - icmp6_time_exceeded_with_addrs(p, ICMP6_TE_FRAG, &src_addr, &dest_addr); - } - clen = pbuf_clen(p); - LWIP_ASSERT("pbufs_freed + clen <= 0xffff", pbufs_freed + clen <= 0xffff); - pbufs_freed = (u16_t)(pbufs_freed + clen); - pbuf_free(p); - } -#endif /* LWIP_ICMP6 */ - - /* First, free all received pbufs. The individual pbufs need to be released - separately as they have not yet been chained */ - p = ipr->p; - while (p != NULL) { - struct pbuf *pcur; - iprh = (struct ip6_reass_helper *)p->payload; - pcur = p; - /* get the next pointer before freeing */ - p = iprh->next_pbuf; - clen = pbuf_clen(pcur); - LWIP_ASSERT("pbufs_freed + clen <= 0xffff", pbufs_freed + clen <= 0xffff); - pbufs_freed = (u16_t)(pbufs_freed + clen); - pbuf_free(pcur); - } - - /* Then, unchain the struct ip6_reassdata from the list and free it. */ - if (ipr == reassdatagrams) { - reassdatagrams = ipr->next; - } else { - prev = reassdatagrams; - while (prev != NULL) { - if (prev->next == ipr) { - break; - } - prev = prev->next; - } - if (prev != NULL) { - prev->next = ipr->next; - } - } - memp_free(MEMP_IP6_REASSDATA, ipr); - - /* Finally, update number of pbufs in reassembly queue */ - LWIP_ASSERT("ip_reass_pbufcount >= clen", ip6_reass_pbufcount >= pbufs_freed); - ip6_reass_pbufcount = (u16_t)(ip6_reass_pbufcount - pbufs_freed); -} - -#if IP_REASS_FREE_OLDEST -/** - * Free the oldest datagram to make room for enqueueing new fragments. - * The datagram ipr is not freed! - * - * @param ipr ip6_reassdata for the current fragment - * @param pbufs_needed number of pbufs needed to enqueue - * (used for freeing other datagrams if not enough space) - */ -static void -ip6_reass_remove_oldest_datagram(struct ip6_reassdata *ipr, int pbufs_needed) -{ - struct ip6_reassdata *r, *oldest; - - /* Free datagrams until being allowed to enqueue 'pbufs_needed' pbufs, - * but don't free the current datagram! */ - do { - r = oldest = reassdatagrams; - while (r != NULL) { - if (r != ipr) { - if (r->timer <= oldest->timer) { - /* older than the previous oldest */ - oldest = r; - } - } - r = r->next; - } - if (oldest == ipr) { - /* nothing to free, ipr is the only element on the list */ - return; - } - if (oldest != NULL) { - ip6_reass_free_complete_datagram(oldest); - } - } while (((ip6_reass_pbufcount + pbufs_needed) > IP_REASS_MAX_PBUFS) && (reassdatagrams != NULL)); -} -#endif /* IP_REASS_FREE_OLDEST */ - -/** - * Reassembles incoming IPv6 fragments into an IPv6 datagram. - * - * @param p points to the IPv6 Fragment Header - * @return NULL if reassembly is incomplete, pbuf pointing to - * IPv6 Header if reassembly is complete - */ -struct pbuf * -ip6_reass(struct pbuf *p) -{ - struct ip6_reassdata *ipr, *ipr_prev; - struct ip6_reass_helper *iprh, *iprh_tmp, *iprh_prev=NULL; - struct ip6_frag_hdr *frag_hdr; - u16_t offset, len, start, end; - ptrdiff_t hdrdiff; - u16_t clen; - u8_t valid = 1; - struct pbuf *q, *next_pbuf; - - IP6_FRAG_STATS_INC(ip6_frag.recv); - - /* ip6_frag_hdr must be in the first pbuf, not chained. Checked by caller. */ - LWIP_ASSERT("IPv6 fragment header does not fit in first pbuf", - p->len >= sizeof(struct ip6_frag_hdr)); - - frag_hdr = (struct ip6_frag_hdr *) p->payload; - - clen = pbuf_clen(p); - - offset = lwip_ntohs(frag_hdr->_fragment_offset); - - /* Calculate fragment length from IPv6 payload length. - * Adjust for headers before Fragment Header. - * And finally adjust by Fragment Header length. */ - len = lwip_ntohs(ip6_current_header()->_plen); - hdrdiff = (u8_t*)p->payload - (const u8_t*)ip6_current_header(); - LWIP_ASSERT("not a valid pbuf (ip6_input check missing?)", hdrdiff <= 0xFFFF); - LWIP_ASSERT("not a valid pbuf (ip6_input check missing?)", hdrdiff >= IP6_HLEN); - hdrdiff -= IP6_HLEN; - hdrdiff += IP6_FRAG_HLEN; - if (hdrdiff > len) { - IP6_FRAG_STATS_INC(ip6_frag.proterr); - goto nullreturn; - } - len = (u16_t)(len - hdrdiff); - start = (offset & IP6_FRAG_OFFSET_MASK); - if (start > (0xFFFF - len)) { - /* u16_t overflow, cannot handle this */ - IP6_FRAG_STATS_INC(ip6_frag.proterr); - goto nullreturn; - } - - /* 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_prev = NULL; ipr != NULL; ipr = ipr->next) { - /* 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 ((frag_hdr->_identification == ipr->identification) && - ip6_addr_cmp_packed(ip6_current_src_addr(), &(IPV6_FRAG_SRC(ipr)), ipr->src_zone) && - ip6_addr_cmp_packed(ip6_current_dest_addr(), &(IPV6_FRAG_DEST(ipr)), ipr->dest_zone)) { - IP6_FRAG_STATS_INC(ip6_frag.cachehit); - break; - } - ipr_prev = ipr; - } - - if (ipr == NULL) { - /* Enqueue a new datagram into the datagram queue */ - ipr = (struct ip6_reassdata *)memp_malloc(MEMP_IP6_REASSDATA); - if (ipr == NULL) { -#if IP_REASS_FREE_OLDEST - /* Make room and try again. */ - ip6_reass_remove_oldest_datagram(ipr, clen); - ipr = (struct ip6_reassdata *)memp_malloc(MEMP_IP6_REASSDATA); - if (ipr != NULL) { - /* re-search ipr_prev since it might have been removed */ - for (ipr_prev = reassdatagrams; ipr_prev != NULL; ipr_prev = ipr_prev->next) { - if (ipr_prev->next == ipr) { - break; - } - } - } else -#endif /* IP_REASS_FREE_OLDEST */ - { - IP6_FRAG_STATS_INC(ip6_frag.memerr); - goto nullreturn; - } - } - - memset(ipr, 0, sizeof(struct ip6_reassdata)); - ipr->timer = IPV6_REASS_MAXAGE; - - /* enqueue the new structure to the front of the list */ - ipr->next = reassdatagrams; - reassdatagrams = ipr; - - /* Use the current IPv6 header for src/dest address reference. - * Eventually, we will replace it when we get the first fragment - * (it might be this one, in any case, it is done later). */ - /* need to use the none-const pointer here: */ - ipr->iphdr = ip_data.current_ip6_header; -#if IPV6_FRAG_COPYHEADER - MEMCPY(&ipr->src, &ip6_current_header()->src, sizeof(ipr->src)); - MEMCPY(&ipr->dest, &ip6_current_header()->dest, sizeof(ipr->dest)); -#endif /* IPV6_FRAG_COPYHEADER */ -#if LWIP_IPV6_SCOPES - /* Also store the address zone information. - * @todo It is possible that due to netif destruction and recreation, the - * stored zones end up resolving to a different interface. In that case, we - * risk sending a "time exceeded" ICMP response over the wrong link. - * Ideally, netif destruction would clean up matching pending reassembly - * structures, but custom zone mappings would make that non-trivial. */ - ipr->src_zone = ip6_addr_zone(ip6_current_src_addr()); - ipr->dest_zone = ip6_addr_zone(ip6_current_dest_addr()); -#endif /* LWIP_IPV6_SCOPES */ - /* copy the fragmented packet id. */ - ipr->identification = frag_hdr->_identification; - - /* copy the nexth field */ - ipr->nexth = frag_hdr->_nexth; - } - - /* Check if we are allowed to enqueue more datagrams. */ - if ((ip6_reass_pbufcount + clen) > IP_REASS_MAX_PBUFS) { -#if IP_REASS_FREE_OLDEST - ip6_reass_remove_oldest_datagram(ipr, clen); - if ((ip6_reass_pbufcount + clen) <= IP_REASS_MAX_PBUFS) { - /* re-search ipr_prev since it might have been removed */ - for (ipr_prev = reassdatagrams; ipr_prev != NULL; ipr_prev = ipr_prev->next) { - if (ipr_prev->next == ipr) { - break; - } - } - } else -#endif /* IP_REASS_FREE_OLDEST */ - { - /* @todo: send ICMPv6 time exceeded here? */ - /* drop this pbuf */ - IP6_FRAG_STATS_INC(ip6_frag.memerr); - goto nullreturn; - } - } - - /* Overwrite Fragment Header with our own helper struct. */ -#if IPV6_FRAG_COPYHEADER - if (IPV6_FRAG_REQROOM > 0) { - /* Make room for struct ip6_reass_helper (only required if sizeof(void*) > 4). - This cannot fail since we already checked when receiving this fragment. */ - u8_t hdrerr = pbuf_header_force(p, IPV6_FRAG_REQROOM); - LWIP_UNUSED_ARG(hdrerr); /* in case of LWIP_NOASSERT */ - LWIP_ASSERT("no room for struct ip6_reass_helper", hdrerr == 0); - } -#else /* IPV6_FRAG_COPYHEADER */ - LWIP_ASSERT("sizeof(struct ip6_reass_helper) <= IP6_FRAG_HLEN, set IPV6_FRAG_COPYHEADER to 1", - sizeof(struct ip6_reass_helper) <= IP6_FRAG_HLEN); -#endif /* IPV6_FRAG_COPYHEADER */ - - /* Prepare the pointer to the helper structure, and its initial values. - * Do not yet write to the structure itself, as we still have to make a - * backup of the original data, and we should not do that until we know for - * sure that we are going to add this packet to the list. */ - iprh = (struct ip6_reass_helper *)p->payload; - next_pbuf = NULL; - end = (u16_t)(start + len); - - /* find the right place to insert this pbuf */ - /* Iterate through until we either get to the end of the list (append), - * or we find on with a larger offset (insert). */ - for (q = ipr->p; q != NULL;) { - iprh_tmp = (struct ip6_reass_helper*)q->payload; - if (start < iprh_tmp->start) { -#if IP_REASS_CHECK_OVERLAP - if (end > iprh_tmp->start) { - /* fragment overlaps with following, throw away */ - IP6_FRAG_STATS_INC(ip6_frag.proterr); - goto nullreturn; - } - if (iprh_prev != NULL) { - if (start < iprh_prev->end) { - /* fragment overlaps with previous, throw away */ - IP6_FRAG_STATS_INC(ip6_frag.proterr); - goto nullreturn; - } - } -#endif /* IP_REASS_CHECK_OVERLAP */ - /* the new pbuf should be inserted before this */ - next_pbuf = q; - if (iprh_prev != NULL) { - /* not the fragment with the lowest offset */ - iprh_prev->next_pbuf = p; - } else { - /* fragment with the lowest offset */ - ipr->p = p; - } - break; - } else if (start == iprh_tmp->start) { - /* received the same datagram twice: no need to keep the datagram */ - goto nullreturn; -#if IP_REASS_CHECK_OVERLAP - } else if (start < iprh_tmp->end) { - /* overlap: no need to keep the new datagram */ - IP6_FRAG_STATS_INC(ip6_frag.proterr); - goto nullreturn; -#endif /* IP_REASS_CHECK_OVERLAP */ - } else { - /* Check if the fragments received so far have no gaps. */ - if (iprh_prev != NULL) { - if (iprh_prev->end != iprh_tmp->start) { - /* There is a fragment missing between the current - * and the previous fragment */ - valid = 0; - } - } - } - q = iprh_tmp->next_pbuf; - iprh_prev = iprh_tmp; - } - - /* If q is NULL, then we made it to the end of the list. Determine what to do now */ - if (q == NULL) { - if (iprh_prev != NULL) { - /* 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 <= start); -#endif /* IP_REASS_CHECK_OVERLAP */ - iprh_prev->next_pbuf = p; - if (iprh_prev->end != start) { - valid = 0; - } - } else { -#if IP_REASS_CHECK_OVERLAP - LWIP_ASSERT("no previous fragment, this must be the first fragment!", - ipr->p == NULL); -#endif /* IP_REASS_CHECK_OVERLAP */ - /* this is the first fragment we ever received for this ip datagram */ - ipr->p = p; - } - } - - /* 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 */ - ip6_reass_pbufcount = (u16_t)(ip6_reass_pbufcount + clen); - - /* Remember IPv6 header if this is the first fragment. */ - if (start == 0) { - /* need to use the none-const pointer here: */ - ipr->iphdr = ip_data.current_ip6_header; - /* Make a backup of the part of the packet data that we are about to - * overwrite, so that we can restore the original later. */ - MEMCPY(ipr->orig_hdr, p->payload, sizeof(*iprh)); - /* For IPV6_FRAG_COPYHEADER there is no need to copy src/dst again, as they - * will be the same as they were. With LWIP_IPV6_SCOPES, the same applies - * to the source/destination zones. */ - } - /* Only after the backup do we get to fill in the actual helper structure. */ - iprh->next_pbuf = next_pbuf; - iprh->start = start; - iprh->end = end; - - /* If this is the last fragment, calculate total packet length. */ - if ((offset & IP6_FRAG_MORE_FLAG) == 0) { - ipr->datagram_len = iprh->end; - } - - /* Additional validity tests: we have received first and last fragment. */ - iprh_tmp = (struct ip6_reass_helper*)ipr->p->payload; - if (iprh_tmp->start != 0) { - valid = 0; - } - if (ipr->datagram_len == 0) { - valid = 0; - } - - /* Final validity test: no gaps between current and last fragment. */ - iprh_prev = iprh; - q = iprh->next_pbuf; - while ((q != NULL) && valid) { - iprh = (struct ip6_reass_helper*)q->payload; - if (iprh_prev->end != iprh->start) { - valid = 0; - break; - } - iprh_prev = iprh; - q = iprh->next_pbuf; - } - - if (valid) { - /* All fragments have been received */ - struct ip6_hdr* iphdr_ptr; - - /* chain together the pbufs contained within the ip6_reassdata list. */ - iprh = (struct ip6_reass_helper*) ipr->p->payload; - while (iprh != NULL) { - next_pbuf = iprh->next_pbuf; - if (next_pbuf != NULL) { - /* Save next helper struct (will be hidden in next step). */ - iprh_tmp = (struct ip6_reass_helper*)next_pbuf->payload; - - /* hide the fragment header for every succeeding fragment */ - pbuf_remove_header(next_pbuf, IP6_FRAG_HLEN); -#if IPV6_FRAG_COPYHEADER - if (IPV6_FRAG_REQROOM > 0) { - /* hide the extra bytes borrowed from ip6_hdr for struct ip6_reass_helper */ - u8_t hdrerr = pbuf_remove_header(next_pbuf, IPV6_FRAG_REQROOM); - LWIP_UNUSED_ARG(hdrerr); /* in case of LWIP_NOASSERT */ - LWIP_ASSERT("no room for struct ip6_reass_helper", hdrerr == 0); - } -#endif - pbuf_cat(ipr->p, next_pbuf); - } - else { - iprh_tmp = NULL; - } - - iprh = iprh_tmp; - } - - /* Get the first pbuf. */ - p = ipr->p; - -#if IPV6_FRAG_COPYHEADER - if (IPV6_FRAG_REQROOM > 0) { - u8_t hdrerr; - /* Restore (only) the bytes that we overwrote beyond the fragment header. - * Those bytes may belong to either the IPv6 header or an extension - * header placed before the fragment header. */ - MEMCPY(p->payload, ipr->orig_hdr, IPV6_FRAG_REQROOM); - /* get back room for struct ip6_reass_helper (only required if sizeof(void*) > 4) */ - hdrerr = pbuf_remove_header(p, IPV6_FRAG_REQROOM); - LWIP_UNUSED_ARG(hdrerr); /* in case of LWIP_NOASSERT */ - LWIP_ASSERT("no room for struct ip6_reass_helper", hdrerr == 0); - } -#endif - - /* We need to get rid of the fragment header itself, which is somewhere in - * the middle of the packet (but still in the first pbuf of the chain). - * Getting rid of the header is required by RFC 2460 Sec. 4.5 and necessary - * in order to be able to reassemble packets that are close to full size - * (i.e., around 65535 bytes). We simply move up all the headers before the - * fragment header, including the IPv6 header, and adjust the payload start - * accordingly. This works because all these headers are in the first pbuf - * of the chain, and because the caller adjusts all its pointers on - * successful reassembly. */ - MEMMOVE((u8_t*)ipr->iphdr + sizeof(struct ip6_frag_hdr), ipr->iphdr, - (size_t)((u8_t*)p->payload - (u8_t*)ipr->iphdr)); - - /* This is where the IPv6 header is now. */ - iphdr_ptr = (struct ip6_hdr*)((u8_t*)ipr->iphdr + - sizeof(struct ip6_frag_hdr)); - - /* Adjust datagram length by adding header lengths. */ - ipr->datagram_len = (u16_t)(ipr->datagram_len + ((u8_t*)p->payload - (u8_t*)iphdr_ptr) - - IP6_HLEN); - - /* Set payload length in ip header. */ - iphdr_ptr->_plen = lwip_htons(ipr->datagram_len); - - /* With the fragment header gone, we now need to adjust the next-header - * field of whatever header was originally before it. Since the packet made - * it through the original header processing routines at least up to the - * fragment header, we do not need any further sanity checks here. */ - if (IP6H_NEXTH(iphdr_ptr) == IP6_NEXTH_FRAGMENT) { - iphdr_ptr->_nexth = ipr->nexth; - } else { - u8_t *ptr = (u8_t *)iphdr_ptr + IP6_HLEN; - while (*ptr != IP6_NEXTH_FRAGMENT) { - ptr += 8 * (1 + ptr[1]); - } - *ptr = ipr->nexth; - } - - /* release the resources allocated for the fragment queue entry */ - if (reassdatagrams == ipr) { - /* it was the first in the list */ - reassdatagrams = ipr->next; - } else { - /* it wasn't the first, so it must have a valid 'prev' */ - LWIP_ASSERT("sanity check linked list", ipr_prev != NULL); - ipr_prev->next = ipr->next; - } - memp_free(MEMP_IP6_REASSDATA, ipr); - - /* adjust the number of pbufs currently queued for reassembly. */ - clen = pbuf_clen(p); - LWIP_ASSERT("ip6_reass_pbufcount >= clen", ip6_reass_pbufcount >= clen); - ip6_reass_pbufcount = (u16_t)(ip6_reass_pbufcount - clen); - - /* Move pbuf back to IPv6 header. This should never fail. */ - if (pbuf_header_force(p, (s16_t)((u8_t*)p->payload - (u8_t*)iphdr_ptr))) { - LWIP_ASSERT("ip6_reass: moving p->payload to ip6 header failed\n", 0); - pbuf_free(p); - return NULL; - } - - /* Return the pbuf chain */ - return p; - } - /* the datagram is not (yet?) reassembled completely */ - return NULL; - -nullreturn: - IP6_FRAG_STATS_INC(ip6_frag.drop); - pbuf_free(p); - return NULL; -} - -#endif /* LWIP_IPV6 && LWIP_IPV6_REASS */ - -#if LWIP_IPV6 && LWIP_IPV6_FRAG - -#if !LWIP_NETIF_TX_SINGLE_PBUF -/** Allocate a new struct pbuf_custom_ref */ -static struct pbuf_custom_ref* -ip6_frag_alloc_pbuf_custom_ref(void) -{ - return (struct pbuf_custom_ref*)memp_malloc(MEMP_FRAG_PBUF); -} - -/** Free a struct pbuf_custom_ref */ -static void -ip6_frag_free_pbuf_custom_ref(struct pbuf_custom_ref* p) -{ - LWIP_ASSERT("p != NULL", p != NULL); - memp_free(MEMP_FRAG_PBUF, p); -} - -/** Free-callback function to free a 'struct pbuf_custom_ref', called by - * pbuf_free. */ -static void -ip6_frag_free_pbuf_custom(struct pbuf *p) -{ - struct pbuf_custom_ref *pcr = (struct pbuf_custom_ref*)p; - LWIP_ASSERT("pcr != NULL", pcr != NULL); - LWIP_ASSERT("pcr == p", (void*)pcr == (void*)p); - if (pcr->original != NULL) { - pbuf_free(pcr->original); - } - ip6_frag_free_pbuf_custom_ref(pcr); -} -#endif /* !LWIP_NETIF_TX_SINGLE_PBUF */ - -/** - * Fragment an IPv6 datagram if too large for the netif or path MTU. - * - * Chop the datagram in MTU sized chunks and send them in order - * by pointing PBUF_REFs into p - * - * @param p ipv6 packet to send - * @param netif the netif on which to send - * @param dest destination ipv6 address to which to send - * - * @return ERR_OK if sent successfully, err_t otherwise - */ -err_t -ip6_frag(struct pbuf *p, struct netif *netif, const ip6_addr_t *dest) -{ - struct ip6_hdr *original_ip6hdr; - struct ip6_hdr *ip6hdr; - struct ip6_frag_hdr *frag_hdr; - struct pbuf *rambuf; -#if !LWIP_NETIF_TX_SINGLE_PBUF - struct pbuf *newpbuf; - u16_t newpbuflen = 0; - u16_t left_to_copy; -#endif - static u32_t identification; - u16_t left, cop; - const u16_t mtu = nd6_get_destination_mtu(dest, netif); - const u16_t nfb = (u16_t)((mtu - (IP6_HLEN + IP6_FRAG_HLEN)) & IP6_FRAG_OFFSET_MASK); - u16_t fragment_offset = 0; - u16_t last; - u16_t poff = IP6_HLEN; - - identification++; - - original_ip6hdr = (struct ip6_hdr *)p->payload; - - /* @todo we assume there are no options in the unfragmentable part (IPv6 header). */ - LWIP_ASSERT("p->tot_len >= IP6_HLEN", p->tot_len >= IP6_HLEN); - left = (u16_t)(p->tot_len - IP6_HLEN); - - while (left) { - last = (left <= nfb); - - /* Fill this fragment */ - cop = last ? left : nfb; - -#if LWIP_NETIF_TX_SINGLE_PBUF - rambuf = pbuf_alloc(PBUF_IP, cop + IP6_FRAG_HLEN, PBUF_RAM); - if (rambuf == NULL) { - IP6_FRAG_STATS_INC(ip6_frag.memerr); - return ERR_MEM; - } - LWIP_ASSERT("this needs a pbuf in one piece!", - (rambuf->len == rambuf->tot_len) && (rambuf->next == NULL)); - poff += pbuf_copy_partial(p, (u8_t*)rambuf->payload + IP6_FRAG_HLEN, cop, poff); - /* make room for the IP header */ - if (pbuf_add_header(rambuf, IP6_HLEN)) { - pbuf_free(rambuf); - IP6_FRAG_STATS_INC(ip6_frag.memerr); - return ERR_MEM; - } - /* fill in the IP header */ - SMEMCPY(rambuf->payload, original_ip6hdr, IP6_HLEN); - ip6hdr = (struct ip6_hdr *)rambuf->payload; - frag_hdr = (struct ip6_frag_hdr *)((u8_t*)rambuf->payload + IP6_HLEN); -#else - /* When not using a static buffer, create a chain of pbufs. - * The first will be a PBUF_RAM holding the link, IPv6, and Fragment 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, IP6_HLEN + IP6_FRAG_HLEN, PBUF_RAM); - if (rambuf == NULL) { - IP6_FRAG_STATS_INC(ip6_frag.memerr); - return ERR_MEM; - } - LWIP_ASSERT("this needs a pbuf in one piece!", - (p->len >= (IP6_HLEN))); - SMEMCPY(rambuf->payload, original_ip6hdr, IP6_HLEN); - ip6hdr = (struct ip6_hdr *)rambuf->payload; - frag_hdr = (struct ip6_frag_hdr *)((u8_t*)rambuf->payload + IP6_HLEN); - - /* Can just adjust p directly for needed offset. */ - p->payload = (u8_t *)p->payload + poff; - p->len = (u16_t)(p->len - poff); - p->tot_len = (u16_t)(p->tot_len - poff); - - left_to_copy = cop; - while (left_to_copy) { - struct pbuf_custom_ref *pcr; - newpbuflen = (left_to_copy < p->len) ? left_to_copy : p->len; - /* Is this pbuf already empty? */ - if (!newpbuflen) { - p = p->next; - continue; - } - pcr = ip6_frag_alloc_pbuf_custom_ref(); - if (pcr == NULL) { - pbuf_free(rambuf); - IP6_FRAG_STATS_INC(ip6_frag.memerr); - return ERR_MEM; - } - /* Mirror this pbuf, although we might not need all of it. */ - newpbuf = pbuf_alloced_custom(PBUF_RAW, newpbuflen, PBUF_REF, &pcr->pc, p->payload, newpbuflen); - if (newpbuf == NULL) { - ip6_frag_free_pbuf_custom_ref(pcr); - pbuf_free(rambuf); - IP6_FRAG_STATS_INC(ip6_frag.memerr); - return ERR_MEM; - } - pbuf_ref(p); - pcr->original = p; - pcr->pc.custom_free_function = ip6_frag_free_pbuf_custom; - - /* 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); - left_to_copy = (u16_t)(left_to_copy - newpbuflen); - if (left_to_copy) { - p = p->next; - } - } - poff = newpbuflen; -#endif /* LWIP_NETIF_TX_SINGLE_PBUF */ - - /* Set headers */ - frag_hdr->_nexth = original_ip6hdr->_nexth; - frag_hdr->reserved = 0; - frag_hdr->_fragment_offset = lwip_htons((u16_t)((fragment_offset & IP6_FRAG_OFFSET_MASK) | (last ? 0 : IP6_FRAG_MORE_FLAG))); - frag_hdr->_identification = lwip_htonl(identification); - - IP6H_NEXTH_SET(ip6hdr, IP6_NEXTH_FRAGMENT); - IP6H_PLEN_SET(ip6hdr, (u16_t)(cop + IP6_FRAG_HLEN)); - - /* No need for separate header pbuf - we allowed room for it in rambuf - * when allocated. - */ - IP6_FRAG_STATS_INC(ip6_frag.xmit); - netif->output_ip6(netif, rambuf, dest); - - /* Unfortunately we can't reuse rambuf - the hardware may still be - * using the buffer. Instead we free it (and the ensuing chain) and - * 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); - left = (u16_t)(left - cop); - fragment_offset = (u16_t)(fragment_offset + cop); - } - return ERR_OK; -} - -#endif /* LWIP_IPV6 && LWIP_IPV6_FRAG */ diff --git a/Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.c b/Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.c deleted file mode 100644 index 6387d46..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/ipv6/mld6.c +++ /dev/null @@ -1,626 +0,0 @@ -/** - * @file - * Multicast listener discovery - * - * @defgroup mld6 MLD6 - * @ingroup ip6 - * Multicast listener discovery for IPv6. Aims to be compliant with RFC 2710. - * No support for MLDv2.\n - * Note: The allnodes (ff01::1, ff02::1) group is assumed be received by your - * netif since it must always be received for correct IPv6 operation (e.g. SLAAC). - * Ensure the netif filters are configured accordingly!\n - * The netif flags also need NETIF_FLAG_MLD6 flag set to enable MLD6 on a - * netif ("netif->flags |= NETIF_FLAG_MLD6;").\n - * To be called from TCPIP thread. - */ - -/* - * Copyright (c) 2010 Inico Technologies Ltd. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Ivan Delamer - * - * - * Please coordinate changes and requests with Ivan Delamer - * - */ - -/* Based on igmp.c implementation of igmp v2 protocol */ - -#include "lwip/opt.h" - -#if LWIP_IPV6 && LWIP_IPV6_MLD /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/mld6.h" -#include "lwip/prot/mld6.h" -#include "lwip/icmp6.h" -#include "lwip/ip6.h" -#include "lwip/ip6_addr.h" -#include "lwip/ip.h" -#include "lwip/inet_chksum.h" -#include "lwip/pbuf.h" -#include "lwip/netif.h" -#include "lwip/memp.h" -#include "lwip/stats.h" - -#include - - -/* - * MLD constants - */ -#define MLD6_HL 1 -#define MLD6_JOIN_DELAYING_MEMBER_TMR_MS (500) - -#define MLD6_GROUP_NON_MEMBER 0 -#define MLD6_GROUP_DELAYING_MEMBER 1 -#define MLD6_GROUP_IDLE_MEMBER 2 - -/* Forward declarations. */ -static struct mld_group *mld6_new_group(struct netif *ifp, const ip6_addr_t *addr); -static err_t mld6_remove_group(struct netif *netif, struct mld_group *group); -static void mld6_delayed_report(struct mld_group *group, u16_t maxresp); -static void mld6_send(struct netif *netif, struct mld_group *group, u8_t type); - - -/** - * Stop MLD processing on interface - * - * @param netif network interface on which stop MLD processing - */ -err_t -mld6_stop(struct netif *netif) -{ - struct mld_group *group = netif_mld6_data(netif); - - netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_MLD6, NULL); - - while (group != NULL) { - struct mld_group *next = group->next; /* avoid use-after-free below */ - - /* disable the group at the MAC level */ - if (netif->mld_mac_filter != NULL) { - netif->mld_mac_filter(netif, &(group->group_address), NETIF_DEL_MAC_FILTER); - } - - /* free group */ - memp_free(MEMP_MLD6_GROUP, group); - - /* move to "next" */ - group = next; - } - return ERR_OK; -} - -/** - * Report MLD memberships for this interface - * - * @param netif network interface on which report MLD memberships - */ -void -mld6_report_groups(struct netif *netif) -{ - struct mld_group *group = netif_mld6_data(netif); - - while (group != NULL) { - mld6_delayed_report(group, MLD6_JOIN_DELAYING_MEMBER_TMR_MS); - group = group->next; - } -} - -/** - * Search for a group that is joined on a netif - * - * @param ifp the network interface for which to look - * @param addr the group ipv6 address to search for - * @return a struct mld_group* if the group has been found, - * NULL if the group wasn't found. - */ -struct mld_group * -mld6_lookfor_group(struct netif *ifp, const ip6_addr_t *addr) -{ - struct mld_group *group = netif_mld6_data(ifp); - - while (group != NULL) { - if (ip6_addr_cmp(&(group->group_address), addr)) { - return group; - } - group = group->next; - } - - return NULL; -} - - -/** - * create a new group - * - * @param ifp the network interface for which to create - * @param addr the new group ipv6 - * @return a struct mld_group*, - * NULL on memory error. - */ -static struct mld_group * -mld6_new_group(struct netif *ifp, const ip6_addr_t *addr) -{ - struct mld_group *group; - - group = (struct mld_group *)memp_malloc(MEMP_MLD6_GROUP); - if (group != NULL) { - ip6_addr_set(&(group->group_address), addr); - group->timer = 0; /* Not running */ - group->group_state = MLD6_GROUP_IDLE_MEMBER; - group->last_reporter_flag = 0; - group->use = 0; - group->next = netif_mld6_data(ifp); - - netif_set_client_data(ifp, LWIP_NETIF_CLIENT_DATA_INDEX_MLD6, group); - } - - return group; -} - -/** - * Remove a group from the mld_group_list, but do not free it yet - * - * @param group the group to remove - * @return ERR_OK if group was removed from the list, an err_t otherwise - */ -static err_t -mld6_remove_group(struct netif *netif, struct mld_group *group) -{ - err_t err = ERR_OK; - - /* Is it the first group? */ - if (netif_mld6_data(netif) == group) { - netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_MLD6, group->next); - } else { - /* look for group further down the list */ - struct mld_group *tmpGroup; - for (tmpGroup = netif_mld6_data(netif); tmpGroup != NULL; tmpGroup = tmpGroup->next) { - if (tmpGroup->next == group) { - tmpGroup->next = group->next; - break; - } - } - /* Group not find group */ - if (tmpGroup == NULL) { - err = ERR_ARG; - } - } - - return err; -} - - -/** - * Process an input MLD message. Called by icmp6_input. - * - * @param p the mld packet, p->payload pointing to the icmpv6 header - * @param inp the netif on which this packet was received - */ -void -mld6_input(struct pbuf *p, struct netif *inp) -{ - struct mld_header *mld_hdr; - struct mld_group *group; - - MLD6_STATS_INC(mld6.recv); - - /* Check that mld header fits in packet. */ - if (p->len < sizeof(struct mld_header)) { - /* @todo debug message */ - pbuf_free(p); - MLD6_STATS_INC(mld6.lenerr); - MLD6_STATS_INC(mld6.drop); - return; - } - - mld_hdr = (struct mld_header *)p->payload; - - switch (mld_hdr->type) { - case ICMP6_TYPE_MLQ: /* Multicast listener query. */ - /* Is it a general query? */ - if (ip6_addr_isallnodes_linklocal(ip6_current_dest_addr()) && - ip6_addr_isany(&(mld_hdr->multicast_address))) { - MLD6_STATS_INC(mld6.rx_general); - /* Report all groups, except all nodes group, and if-local groups. */ - group = netif_mld6_data(inp); - while (group != NULL) { - if ((!(ip6_addr_ismulticast_iflocal(&(group->group_address)))) && - (!(ip6_addr_isallnodes_linklocal(&(group->group_address))))) { - mld6_delayed_report(group, mld_hdr->max_resp_delay); - } - group = group->next; - } - } else { - /* Have we joined this group? - * We use IP6 destination address to have a memory aligned copy. - * mld_hdr->multicast_address should be the same. */ - MLD6_STATS_INC(mld6.rx_group); - group = mld6_lookfor_group(inp, ip6_current_dest_addr()); - if (group != NULL) { - /* Schedule a report. */ - mld6_delayed_report(group, mld_hdr->max_resp_delay); - } - } - break; /* ICMP6_TYPE_MLQ */ - case ICMP6_TYPE_MLR: /* Multicast listener report. */ - /* Have we joined this group? - * We use IP6 destination address to have a memory aligned copy. - * mld_hdr->multicast_address should be the same. */ - MLD6_STATS_INC(mld6.rx_report); - group = mld6_lookfor_group(inp, ip6_current_dest_addr()); - if (group != NULL) { - /* If we are waiting to report, cancel it. */ - if (group->group_state == MLD6_GROUP_DELAYING_MEMBER) { - group->timer = 0; /* stopped */ - group->group_state = MLD6_GROUP_IDLE_MEMBER; - group->last_reporter_flag = 0; - } - } - break; /* ICMP6_TYPE_MLR */ - case ICMP6_TYPE_MLD: /* Multicast listener done. */ - /* Do nothing, router will query us. */ - break; /* ICMP6_TYPE_MLD */ - default: - MLD6_STATS_INC(mld6.proterr); - MLD6_STATS_INC(mld6.drop); - break; - } - - pbuf_free(p); -} - -/** - * @ingroup mld6 - * Join a group on one or all network interfaces. - * - * If the group is to be joined on all interfaces, the given group address must - * not have a zone set (i.e., it must have its zone index set to IP6_NO_ZONE). - * If the group is to be joined on one particular interface, the given group - * address may or may not have a zone set. - * - * @param srcaddr ipv6 address (zoned) of the network interface which should - * join a new group. If IP6_ADDR_ANY6, join on all netifs - * @param groupaddr the ipv6 address of the group to join (possibly but not - * necessarily zoned) - * @return ERR_OK if group was joined on the netif(s), an err_t otherwise - */ -err_t -mld6_joingroup(const ip6_addr_t *srcaddr, const ip6_addr_t *groupaddr) -{ - err_t err = ERR_VAL; /* no matching interface */ - struct netif *netif; - - LWIP_ASSERT_CORE_LOCKED(); - - /* loop through netif's */ - NETIF_FOREACH(netif) { - /* Should we join this interface ? */ - if (ip6_addr_isany(srcaddr) || - netif_get_ip6_addr_match(netif, srcaddr) >= 0) { - err = mld6_joingroup_netif(netif, groupaddr); - if (err != ERR_OK) { - return err; - } - } - } - - return err; -} - -/** - * @ingroup mld6 - * Join a group on a network interface. - * - * @param netif the network interface which should join a new group. - * @param groupaddr the ipv6 address of the group to join (possibly but not - * necessarily zoned) - * @return ERR_OK if group was joined on the netif, an err_t otherwise - */ -err_t -mld6_joingroup_netif(struct netif *netif, const ip6_addr_t *groupaddr) -{ - struct mld_group *group; -#if LWIP_IPV6_SCOPES - ip6_addr_t ip6addr; - - /* If the address has a particular scope but no zone set, use the netif to - * set one now. Within the mld6 module, all addresses are properly zoned. */ - if (ip6_addr_lacks_zone(groupaddr, IP6_MULTICAST)) { - ip6_addr_set(&ip6addr, groupaddr); - ip6_addr_assign_zone(&ip6addr, IP6_MULTICAST, netif); - groupaddr = &ip6addr; - } - IP6_ADDR_ZONECHECK_NETIF(groupaddr, netif); -#endif /* LWIP_IPV6_SCOPES */ - - LWIP_ASSERT_CORE_LOCKED(); - - /* find group or create a new one if not found */ - group = mld6_lookfor_group(netif, groupaddr); - - if (group == NULL) { - /* Joining a new group. Create a new group entry. */ - group = mld6_new_group(netif, groupaddr); - if (group == NULL) { - return ERR_MEM; - } - - /* Activate this address on the MAC layer. */ - if (netif->mld_mac_filter != NULL) { - netif->mld_mac_filter(netif, groupaddr, NETIF_ADD_MAC_FILTER); - } - - /* Report our membership. */ - MLD6_STATS_INC(mld6.tx_report); - mld6_send(netif, group, ICMP6_TYPE_MLR); - mld6_delayed_report(group, MLD6_JOIN_DELAYING_MEMBER_TMR_MS); - } - - /* Increment group use */ - group->use++; - return ERR_OK; -} - -/** - * @ingroup mld6 - * Leave a group on a network interface. - * - * Zoning of address follows the same rules as @ref mld6_joingroup. - * - * @param srcaddr ipv6 address (zoned) of the network interface which should - * leave the group. If IP6_ADDR_ANY6, leave on all netifs - * @param groupaddr the ipv6 address of the group to leave (possibly, but not - * necessarily zoned) - * @return ERR_OK if group was left on the netif(s), an err_t otherwise - */ -err_t -mld6_leavegroup(const ip6_addr_t *srcaddr, const ip6_addr_t *groupaddr) -{ - err_t err = ERR_VAL; /* no matching interface */ - struct netif *netif; - - LWIP_ASSERT_CORE_LOCKED(); - - /* loop through netif's */ - NETIF_FOREACH(netif) { - /* Should we leave this interface ? */ - if (ip6_addr_isany(srcaddr) || - netif_get_ip6_addr_match(netif, srcaddr) >= 0) { - err_t res = mld6_leavegroup_netif(netif, groupaddr); - if (err != ERR_OK) { - /* Store this result if we have not yet gotten a success */ - err = res; - } - } - } - - return err; -} - -/** - * @ingroup mld6 - * Leave a group on a network interface. - * - * @param netif the network interface which should leave the group. - * @param groupaddr the ipv6 address of the group to leave (possibly, but not - * necessarily zoned) - * @return ERR_OK if group was left on the netif, an err_t otherwise - */ -err_t -mld6_leavegroup_netif(struct netif *netif, const ip6_addr_t *groupaddr) -{ - struct mld_group *group; -#if LWIP_IPV6_SCOPES - ip6_addr_t ip6addr; - - if (ip6_addr_lacks_zone(groupaddr, IP6_MULTICAST)) { - ip6_addr_set(&ip6addr, groupaddr); - ip6_addr_assign_zone(&ip6addr, IP6_MULTICAST, netif); - groupaddr = &ip6addr; - } - IP6_ADDR_ZONECHECK_NETIF(groupaddr, netif); -#endif /* LWIP_IPV6_SCOPES */ - - LWIP_ASSERT_CORE_LOCKED(); - - /* find group */ - group = mld6_lookfor_group(netif, groupaddr); - - if (group != NULL) { - /* Leave if there is no other use of the group */ - if (group->use <= 1) { - /* Remove the group from the list */ - mld6_remove_group(netif, group); - - /* If we are the last reporter for this group */ - if (group->last_reporter_flag) { - MLD6_STATS_INC(mld6.tx_leave); - mld6_send(netif, group, ICMP6_TYPE_MLD); - } - - /* Disable the group at the MAC level */ - if (netif->mld_mac_filter != NULL) { - netif->mld_mac_filter(netif, groupaddr, NETIF_DEL_MAC_FILTER); - } - - /* free group struct */ - memp_free(MEMP_MLD6_GROUP, group); - } else { - /* Decrement group use */ - group->use--; - } - - /* Left group */ - return ERR_OK; - } - - /* Group not found */ - return ERR_VAL; -} - - -/** - * Periodic timer for mld processing. Must be called every - * MLD6_TMR_INTERVAL milliseconds (100). - * - * When a delaying member expires, a membership report is sent. - */ -void -mld6_tmr(void) -{ - struct netif *netif; - - NETIF_FOREACH(netif) { - struct mld_group *group = netif_mld6_data(netif); - - while (group != NULL) { - if (group->timer > 0) { - group->timer--; - if (group->timer == 0) { - /* If the state is MLD6_GROUP_DELAYING_MEMBER then we send a report for this group */ - if (group->group_state == MLD6_GROUP_DELAYING_MEMBER) { - MLD6_STATS_INC(mld6.tx_report); - mld6_send(netif, group, ICMP6_TYPE_MLR); - group->group_state = MLD6_GROUP_IDLE_MEMBER; - } - } - } - group = group->next; - } - } -} - -/** - * Schedule a delayed membership report for a group - * - * @param group the mld_group for which "delaying" membership report - * should be sent - * @param maxresp_in the max resp delay provided in the query - */ -static void -mld6_delayed_report(struct mld_group *group, u16_t maxresp_in) -{ - /* Convert maxresp from milliseconds to tmr ticks */ - u16_t maxresp = maxresp_in / MLD6_TMR_INTERVAL; - if (maxresp == 0) { - maxresp = 1; - } - -#ifdef LWIP_RAND - /* Randomize maxresp. (if LWIP_RAND is supported) */ - maxresp = (u16_t)(LWIP_RAND() % maxresp); - if (maxresp == 0) { - maxresp = 1; - } -#endif /* LWIP_RAND */ - - /* Apply timer value if no report has been scheduled already. */ - if ((group->group_state == MLD6_GROUP_IDLE_MEMBER) || - ((group->group_state == MLD6_GROUP_DELAYING_MEMBER) && - ((group->timer == 0) || (maxresp < group->timer)))) { - group->timer = maxresp; - group->group_state = MLD6_GROUP_DELAYING_MEMBER; - } -} - -/** - * Send a MLD message (report or done). - * - * An IPv6 hop-by-hop options header with a router alert option - * is prepended. - * - * @param group the group to report or quit - * @param type ICMP6_TYPE_MLR (report) or ICMP6_TYPE_MLD (done) - */ -static void -mld6_send(struct netif *netif, struct mld_group *group, u8_t type) -{ - struct mld_header *mld_hdr; - struct pbuf *p; - const ip6_addr_t *src_addr; - - /* Allocate a packet. Size is MLD header + IPv6 Hop-by-hop options header. */ - p = pbuf_alloc(PBUF_IP, sizeof(struct mld_header) + MLD6_HBH_HLEN, PBUF_RAM); - if (p == NULL) { - MLD6_STATS_INC(mld6.memerr); - return; - } - - /* Move to make room for Hop-by-hop options header. */ - if (pbuf_remove_header(p, MLD6_HBH_HLEN)) { - pbuf_free(p); - MLD6_STATS_INC(mld6.lenerr); - return; - } - - /* Select our source address. */ - if (!ip6_addr_isvalid(netif_ip6_addr_state(netif, 0))) { - /* This is a special case, when we are performing duplicate address detection. - * We must join the multicast group, but we don't have a valid address yet. */ - src_addr = IP6_ADDR_ANY6; - } else { - /* Use link-local address as source address. */ - src_addr = netif_ip6_addr(netif, 0); - } - - /* MLD message header pointer. */ - mld_hdr = (struct mld_header *)p->payload; - - /* Set fields. */ - mld_hdr->type = type; - mld_hdr->code = 0; - mld_hdr->chksum = 0; - mld_hdr->max_resp_delay = 0; - mld_hdr->reserved = 0; - ip6_addr_copy_to_packed(mld_hdr->multicast_address, group->group_address); - -#if CHECKSUM_GEN_ICMP6 - IF__NETIF_CHECKSUM_ENABLED(netif, NETIF_CHECKSUM_GEN_ICMP6) { - mld_hdr->chksum = ip6_chksum_pseudo(p, IP6_NEXTH_ICMP6, p->len, - src_addr, &(group->group_address)); - } -#endif /* CHECKSUM_GEN_ICMP6 */ - - /* Add hop-by-hop headers options: router alert with MLD value. */ - ip6_options_add_hbh_ra(p, IP6_NEXTH_ICMP6, IP6_ROUTER_ALERT_VALUE_MLD); - - if (type == ICMP6_TYPE_MLR) { - /* Remember we were the last to report */ - group->last_reporter_flag = 1; - } - - /* Send the packet out. */ - MLD6_STATS_INC(mld6.xmit); - ip6_output_if(p, (ip6_addr_isany(src_addr)) ? NULL : src_addr, &(group->group_address), - MLD6_HL, 0, IP6_NEXTH_HOPBYHOP, netif); - pbuf_free(p); -} - -#endif /* LWIP_IPV6 */ diff --git a/Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.c b/Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.c deleted file mode 100644 index db0c132..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.c +++ /dev/null @@ -1,2434 +0,0 @@ -/** - * @file - * - * Neighbor discovery and stateless address autoconfiguration for IPv6. - * Aims to be compliant with RFC 4861 (Neighbor discovery) and RFC 4862 - * (Address autoconfiguration). - */ - -/* - * Copyright (c) 2010 Inico Technologies Ltd. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Ivan Delamer - * - * - * Please coordinate changes and requests with Ivan Delamer - * - */ - -#include "lwip/opt.h" - -#if LWIP_IPV6 /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/nd6.h" -#include "lwip/priv/nd6_priv.h" -#include "lwip/prot/nd6.h" -#include "lwip/prot/icmp6.h" -#include "lwip/pbuf.h" -#include "lwip/mem.h" -#include "lwip/memp.h" -#include "lwip/ip6.h" -#include "lwip/ip6_addr.h" -#include "lwip/inet_chksum.h" -#include "lwip/netif.h" -#include "lwip/icmp6.h" -#include "lwip/mld6.h" -#include "lwip/dhcp6.h" -#include "lwip/ip.h" -#include "lwip/stats.h" -#include "lwip/dns.h" - -#include - -#ifdef LWIP_HOOK_FILENAME -#include LWIP_HOOK_FILENAME -#endif - -#if LWIP_IPV6_DUP_DETECT_ATTEMPTS > IP6_ADDR_TENTATIVE_COUNT_MASK -#error LWIP_IPV6_DUP_DETECT_ATTEMPTS > IP6_ADDR_TENTATIVE_COUNT_MASK -#endif - -/* Router tables. */ -struct nd6_neighbor_cache_entry neighbor_cache[LWIP_ND6_NUM_NEIGHBORS]; -struct nd6_destination_cache_entry destination_cache[LWIP_ND6_NUM_DESTINATIONS]; -struct nd6_prefix_list_entry prefix_list[LWIP_ND6_NUM_PREFIXES]; -struct nd6_router_list_entry default_router_list[LWIP_ND6_NUM_ROUTERS]; - -/* Default values, can be updated by a RA message. */ -u32_t reachable_time = LWIP_ND6_REACHABLE_TIME; -u32_t retrans_timer = LWIP_ND6_RETRANS_TIMER; /* @todo implement this value in timer */ - -/* Index for cache entries. */ -static u8_t nd6_cached_neighbor_index; -static netif_addr_idx_t nd6_cached_destination_index; - -/* Multicast address holder. */ -static ip6_addr_t multicast_address; - -static u8_t nd6_tmr_rs_reduction; - -/* Static buffer to parse RA packet options */ -union ra_options { - struct lladdr_option lladdr; - struct mtu_option mtu; - struct prefix_option prefix; -#if LWIP_ND6_RDNSS_MAX_DNS_SERVERS - struct rdnss_option rdnss; -#endif -}; -static union ra_options nd6_ra_buffer; - -/* Forward declarations. */ -static s8_t nd6_find_neighbor_cache_entry(const ip6_addr_t *ip6addr); -static s8_t nd6_new_neighbor_cache_entry(void); -static void nd6_free_neighbor_cache_entry(s8_t i); -static s16_t nd6_find_destination_cache_entry(const ip6_addr_t *ip6addr); -static s16_t nd6_new_destination_cache_entry(void); -static int nd6_is_prefix_in_netif(const ip6_addr_t *ip6addr, struct netif *netif); -static s8_t nd6_select_router(const ip6_addr_t *ip6addr, struct netif *netif); -static s8_t nd6_get_router(const ip6_addr_t *router_addr, struct netif *netif); -static s8_t nd6_new_router(const ip6_addr_t *router_addr, struct netif *netif); -static s8_t nd6_get_onlink_prefix(const ip6_addr_t *prefix, struct netif *netif); -static s8_t nd6_new_onlink_prefix(const ip6_addr_t *prefix, struct netif *netif); -static s8_t nd6_get_next_hop_entry(const ip6_addr_t *ip6addr, struct netif *netif); -static err_t nd6_queue_packet(s8_t neighbor_index, struct pbuf *q); - -#define ND6_SEND_FLAG_MULTICAST_DEST 0x01 -#define ND6_SEND_FLAG_ALLNODES_DEST 0x02 -#define ND6_SEND_FLAG_ANY_SRC 0x04 -static void nd6_send_ns(struct netif *netif, const ip6_addr_t *target_addr, u8_t flags); -static void nd6_send_na(struct netif *netif, const ip6_addr_t *target_addr, u8_t flags); -static void nd6_send_neighbor_cache_probe(struct nd6_neighbor_cache_entry *entry, u8_t flags); -#if LWIP_IPV6_SEND_ROUTER_SOLICIT -static err_t nd6_send_rs(struct netif *netif); -#endif /* LWIP_IPV6_SEND_ROUTER_SOLICIT */ - -#if LWIP_ND6_QUEUEING -static void nd6_free_q(struct nd6_q_entry *q); -#else /* LWIP_ND6_QUEUEING */ -#define nd6_free_q(q) pbuf_free(q) -#endif /* LWIP_ND6_QUEUEING */ -static void nd6_send_q(s8_t i); - - -/** - * A local address has been determined to be a duplicate. Take the appropriate - * action(s) on the address and the interface as a whole. - * - * @param netif the netif that owns the address - * @param addr_idx the index of the address detected to be a duplicate - */ -static void -nd6_duplicate_addr_detected(struct netif *netif, s8_t addr_idx) -{ - - /* Mark the address as duplicate, but leave its lifetimes alone. If this was - * a manually assigned address, it will remain in existence as duplicate, and - * as such be unusable for any practical purposes until manual intervention. - * If this was an autogenerated address, the address will follow normal - * expiration rules, and thus disappear once its valid lifetime expires. */ - netif_ip6_addr_set_state(netif, addr_idx, IP6_ADDR_DUPLICATED); - -#if LWIP_IPV6_AUTOCONFIG - /* If the affected address was the link-local address that we use to generate - * all other addresses, then we should not continue to use those derived - * addresses either, so mark them as duplicate as well. For autoconfig-only - * setups, this will make the interface effectively unusable, approaching the - * intention of RFC 4862 Sec. 5.4.5. @todo implement the full requirements */ - if (addr_idx == 0) { - s8_t i; - for (i = 1; i < LWIP_IPV6_NUM_ADDRESSES; i++) { - if (!ip6_addr_isinvalid(netif_ip6_addr_state(netif, i)) && - !netif_ip6_addr_isstatic(netif, i)) { - netif_ip6_addr_set_state(netif, i, IP6_ADDR_DUPLICATED); - } - } - } -#endif /* LWIP_IPV6_AUTOCONFIG */ -} - -#if LWIP_IPV6_AUTOCONFIG -/** - * We received a router advertisement that contains a prefix with the - * autoconfiguration flag set. Add or update an associated autogenerated - * address. - * - * @param netif the netif on which the router advertisement arrived - * @param prefix_opt a pointer to the prefix option data - * @param prefix_addr an aligned copy of the prefix address - */ -static void -nd6_process_autoconfig_prefix(struct netif *netif, - struct prefix_option *prefix_opt, const ip6_addr_t *prefix_addr) -{ - ip6_addr_t ip6addr; - u32_t valid_life, pref_life; - u8_t addr_state; - s8_t i, free_idx; - - /* The caller already checks RFC 4862 Sec. 5.5.3 points (a) and (b). We do - * the rest, starting with checks for (c) and (d) here. */ - valid_life = lwip_htonl(prefix_opt->valid_lifetime); - pref_life = lwip_htonl(prefix_opt->preferred_lifetime); - if (pref_life > valid_life || prefix_opt->prefix_length != 64) { - return; /* silently ignore this prefix for autoconfiguration purposes */ - } - - /* If an autogenerated address already exists for this prefix, update its - * lifetimes. An address is considered autogenerated if 1) it is not static - * (i.e., manually assigned), and 2) there is an advertised autoconfiguration - * prefix for it (the one we are processing here). This does not necessarily - * exclude the possibility that the address was actually assigned by, say, - * DHCPv6. If that distinction becomes important in the future, more state - * must be kept. As explained elsewhere we also update lifetimes of tentative - * and duplicate addresses. Skip address slot 0 (the link-local address). */ - for (i = 1; i < LWIP_IPV6_NUM_ADDRESSES; i++) { - addr_state = netif_ip6_addr_state(netif, i); - if (!ip6_addr_isinvalid(addr_state) && !netif_ip6_addr_isstatic(netif, i) && - ip6_addr_netcmp(prefix_addr, netif_ip6_addr(netif, i))) { - /* Update the valid lifetime, as per RFC 4862 Sec. 5.5.3 point (e). - * The valid lifetime will never drop to zero as a result of this. */ - u32_t remaining_life = netif_ip6_addr_valid_life(netif, i); - if (valid_life > ND6_2HRS || valid_life > remaining_life) { - netif_ip6_addr_set_valid_life(netif, i, valid_life); - } else if (remaining_life > ND6_2HRS) { - netif_ip6_addr_set_valid_life(netif, i, ND6_2HRS); - } - LWIP_ASSERT("bad valid lifetime", !netif_ip6_addr_isstatic(netif, i)); - /* Update the preferred lifetime. No bounds checks are needed here. In - * rare cases the advertisement may un-deprecate the address, though. - * Deprecation is left to the timer code where it is handled anyway. */ - if (pref_life > 0 && addr_state == IP6_ADDR_DEPRECATED) { - netif_ip6_addr_set_state(netif, i, IP6_ADDR_PREFERRED); - } - netif_ip6_addr_set_pref_life(netif, i, pref_life); - return; /* there should be at most one matching address */ - } - } - - /* No autogenerated address exists for this prefix yet. See if we can add a - * new one. However, if IPv6 autoconfiguration is administratively disabled, - * do not generate new addresses, but do keep updating lifetimes for existing - * addresses. Also, when adding new addresses, we must protect explicitly - * against a valid lifetime of zero, because again, we use that as a special - * value. The generated address would otherwise expire immediately anyway. - * Finally, the original link-local address must be usable at all. We start - * creating addresses even if the link-local address is still in tentative - * state though, and deal with the fallout of that upon DAD collision. */ - addr_state = netif_ip6_addr_state(netif, 0); - if (!netif->ip6_autoconfig_enabled || valid_life == IP6_ADDR_LIFE_STATIC || - ip6_addr_isinvalid(addr_state) || ip6_addr_isduplicated(addr_state)) { - return; - } - - /* Construct the new address that we intend to use, and then see if that - * address really does not exist. It might have been added manually, after - * all. As a side effect, find a free slot. Note that we cannot use - * netif_add_ip6_address() here, as it would return ERR_OK if the address - * already did exist, resulting in that address being given lifetimes. */ - IP6_ADDR(&ip6addr, prefix_addr->addr[0], prefix_addr->addr[1], - netif_ip6_addr(netif, 0)->addr[2], netif_ip6_addr(netif, 0)->addr[3]); - ip6_addr_assign_zone(&ip6addr, IP6_UNICAST, netif); - - free_idx = 0; - for (i = 1; i < LWIP_IPV6_NUM_ADDRESSES; i++) { - if (!ip6_addr_isinvalid(netif_ip6_addr_state(netif, i))) { - if (ip6_addr_cmp(&ip6addr, netif_ip6_addr(netif, i))) { - return; /* formed address already exists */ - } - } else if (free_idx == 0) { - free_idx = i; - } - } - if (free_idx == 0) { - return; /* no address slots available, try again on next advertisement */ - } - - /* Assign the new address to the interface. */ - ip_addr_copy_from_ip6(netif->ip6_addr[free_idx], ip6addr); - netif_ip6_addr_set_valid_life(netif, free_idx, valid_life); - netif_ip6_addr_set_pref_life(netif, free_idx, pref_life); - netif_ip6_addr_set_state(netif, free_idx, IP6_ADDR_TENTATIVE); -} -#endif /* LWIP_IPV6_AUTOCONFIG */ - -/** - * Process an incoming neighbor discovery message - * - * @param p the nd packet, p->payload pointing to the icmpv6 header - * @param inp the netif on which this packet was received - */ -void -nd6_input(struct pbuf *p, struct netif *inp) -{ - u8_t msg_type; - s8_t i; - s16_t dest_idx; - - ND6_STATS_INC(nd6.recv); - - msg_type = *((u8_t *)p->payload); - switch (msg_type) { - case ICMP6_TYPE_NA: /* Neighbor Advertisement. */ - { - struct na_header *na_hdr; - struct lladdr_option *lladdr_opt; - ip6_addr_t target_address; - - /* Check that na header fits in packet. */ - if (p->len < (sizeof(struct na_header))) { - /* @todo debug message */ - pbuf_free(p); - ND6_STATS_INC(nd6.lenerr); - ND6_STATS_INC(nd6.drop); - return; - } - - na_hdr = (struct na_header *)p->payload; - - /* Create an aligned, zoned copy of the target address. */ - ip6_addr_copy_from_packed(target_address, na_hdr->target_address); - ip6_addr_assign_zone(&target_address, IP6_UNICAST, inp); - - /* Check a subset of the other RFC 4861 Sec. 7.1.2 requirements. */ - if (IP6H_HOPLIM(ip6_current_header()) != ND6_HOPLIM || na_hdr->code != 0 || - ip6_addr_ismulticast(&target_address)) { - pbuf_free(p); - ND6_STATS_INC(nd6.proterr); - ND6_STATS_INC(nd6.drop); - return; - } - - /* @todo RFC MUST: if IP destination is multicast, Solicited flag is zero */ - /* @todo RFC MUST: all included options have a length greater than zero */ - - /* Unsolicited NA?*/ - if (ip6_addr_ismulticast(ip6_current_dest_addr())) { - /* This is an unsolicited NA. - * link-layer changed? - * part of DAD mechanism? */ - -#if LWIP_IPV6_DUP_DETECT_ATTEMPTS - /* If the target address matches this netif, it is a DAD response. */ - for (i = 0; i < LWIP_IPV6_NUM_ADDRESSES; i++) { - if (!ip6_addr_isinvalid(netif_ip6_addr_state(inp, i)) && - !ip6_addr_isduplicated(netif_ip6_addr_state(inp, i)) && - ip6_addr_cmp(&target_address, netif_ip6_addr(inp, i))) { - /* We are using a duplicate address. */ - nd6_duplicate_addr_detected(inp, i); - - pbuf_free(p); - return; - } - } -#endif /* LWIP_IPV6_DUP_DETECT_ATTEMPTS */ - - /* Check that link-layer address option also fits in packet. */ - if (p->len < (sizeof(struct na_header) + 2)) { - /* @todo debug message */ - pbuf_free(p); - ND6_STATS_INC(nd6.lenerr); - ND6_STATS_INC(nd6.drop); - return; - } - - lladdr_opt = (struct lladdr_option *)((u8_t*)p->payload + sizeof(struct na_header)); - - if (p->len < (sizeof(struct na_header) + (lladdr_opt->length << 3))) { - /* @todo debug message */ - pbuf_free(p); - ND6_STATS_INC(nd6.lenerr); - ND6_STATS_INC(nd6.drop); - return; - } - - /* This is an unsolicited NA, most likely there was a LLADDR change. */ - i = nd6_find_neighbor_cache_entry(&target_address); - if (i >= 0) { - if (na_hdr->flags & ND6_FLAG_OVERRIDE) { - MEMCPY(neighbor_cache[i].lladdr, lladdr_opt->addr, inp->hwaddr_len); - } - } - } else { - /* This is a solicited NA. - * neighbor address resolution response? - * neighbor unreachability detection response? */ - - /* Find the cache entry corresponding to this na. */ - i = nd6_find_neighbor_cache_entry(&target_address); - if (i < 0) { - /* We no longer care about this target address. drop it. */ - pbuf_free(p); - return; - } - - /* Update cache entry. */ - if ((na_hdr->flags & ND6_FLAG_OVERRIDE) || - (neighbor_cache[i].state == ND6_INCOMPLETE)) { - /* Check that link-layer address option also fits in packet. */ - if (p->len < (sizeof(struct na_header) + 2)) { - /* @todo debug message */ - pbuf_free(p); - ND6_STATS_INC(nd6.lenerr); - ND6_STATS_INC(nd6.drop); - return; - } - - lladdr_opt = (struct lladdr_option *)((u8_t*)p->payload + sizeof(struct na_header)); - - if (p->len < (sizeof(struct na_header) + (lladdr_opt->length << 3))) { - /* @todo debug message */ - pbuf_free(p); - ND6_STATS_INC(nd6.lenerr); - ND6_STATS_INC(nd6.drop); - return; - } - - MEMCPY(neighbor_cache[i].lladdr, lladdr_opt->addr, inp->hwaddr_len); - } - - neighbor_cache[i].netif = inp; - neighbor_cache[i].state = ND6_REACHABLE; - neighbor_cache[i].counter.reachable_time = reachable_time; - - /* Send queued packets, if any. */ - if (neighbor_cache[i].q != NULL) { - nd6_send_q(i); - } - } - - break; /* ICMP6_TYPE_NA */ - } - case ICMP6_TYPE_NS: /* Neighbor solicitation. */ - { - struct ns_header *ns_hdr; - struct lladdr_option *lladdr_opt; - ip6_addr_t target_address; - u8_t accepted; - - /* Check that ns header fits in packet. */ - if (p->len < sizeof(struct ns_header)) { - /* @todo debug message */ - pbuf_free(p); - ND6_STATS_INC(nd6.lenerr); - ND6_STATS_INC(nd6.drop); - return; - } - - ns_hdr = (struct ns_header *)p->payload; - - /* Create an aligned, zoned copy of the target address. */ - ip6_addr_copy_from_packed(target_address, ns_hdr->target_address); - ip6_addr_assign_zone(&target_address, IP6_UNICAST, inp); - - /* Check a subset of the other RFC 4861 Sec. 7.1.1 requirements. */ - if (IP6H_HOPLIM(ip6_current_header()) != ND6_HOPLIM || ns_hdr->code != 0 || - ip6_addr_ismulticast(&target_address)) { - pbuf_free(p); - ND6_STATS_INC(nd6.proterr); - ND6_STATS_INC(nd6.drop); - return; - } - - /* @todo RFC MUST: all included options have a length greater than zero */ - /* @todo RFC MUST: if IP source is 'any', destination is solicited-node multicast address */ - /* @todo RFC MUST: if IP source is 'any', there is no source LL address option */ - - /* Check if there is a link-layer address provided. Only point to it if in this buffer. */ - if (p->len >= (sizeof(struct ns_header) + 2)) { - lladdr_opt = (struct lladdr_option *)((u8_t*)p->payload + sizeof(struct ns_header)); - if (p->len < (sizeof(struct ns_header) + (lladdr_opt->length << 3))) { - lladdr_opt = NULL; - } - } else { - lladdr_opt = NULL; - } - - /* Check if the target address is configured on the receiving netif. */ - accepted = 0; - for (i = 0; i < LWIP_IPV6_NUM_ADDRESSES; ++i) { - if ((ip6_addr_isvalid(netif_ip6_addr_state(inp, i)) || - (ip6_addr_istentative(netif_ip6_addr_state(inp, i)) && - ip6_addr_isany(ip6_current_src_addr()))) && - ip6_addr_cmp(&target_address, netif_ip6_addr(inp, i))) { - accepted = 1; - break; - } - } - - /* NS not for us? */ - if (!accepted) { - pbuf_free(p); - return; - } - - /* Check for ANY address in src (DAD algorithm). */ - if (ip6_addr_isany(ip6_current_src_addr())) { - /* Sender is validating this address. */ - for (i = 0; i < LWIP_IPV6_NUM_ADDRESSES; ++i) { - if (!ip6_addr_isinvalid(netif_ip6_addr_state(inp, i)) && - ip6_addr_cmp(&target_address, netif_ip6_addr(inp, i))) { - /* Send a NA back so that the sender does not use this address. */ - nd6_send_na(inp, netif_ip6_addr(inp, i), ND6_FLAG_OVERRIDE | ND6_SEND_FLAG_ALLNODES_DEST); - if (ip6_addr_istentative(netif_ip6_addr_state(inp, i))) { - /* We shouldn't use this address either. */ - nd6_duplicate_addr_detected(inp, i); - } - } - } - } else { - /* Sender is trying to resolve our address. */ - /* Verify that they included their own link-layer address. */ - if (lladdr_opt == NULL) { - /* Not a valid message. */ - pbuf_free(p); - ND6_STATS_INC(nd6.proterr); - ND6_STATS_INC(nd6.drop); - return; - } - - i = nd6_find_neighbor_cache_entry(ip6_current_src_addr()); - if (i>= 0) { - /* We already have a record for the solicitor. */ - if (neighbor_cache[i].state == ND6_INCOMPLETE) { - neighbor_cache[i].netif = inp; - MEMCPY(neighbor_cache[i].lladdr, lladdr_opt->addr, inp->hwaddr_len); - - /* Delay probe in case we get confirmation of reachability from upper layer (TCP). */ - neighbor_cache[i].state = ND6_DELAY; - neighbor_cache[i].counter.delay_time = LWIP_ND6_DELAY_FIRST_PROBE_TIME / ND6_TMR_INTERVAL; - } - } else { - /* Add their IPv6 address and link-layer address to neighbor cache. - * We will need it at least to send a unicast NA message, but most - * likely we will also be communicating with this node soon. */ - i = nd6_new_neighbor_cache_entry(); - if (i < 0) { - /* We couldn't assign a cache entry for this neighbor. - * we won't be able to reply. drop it. */ - pbuf_free(p); - ND6_STATS_INC(nd6.memerr); - return; - } - neighbor_cache[i].netif = inp; - MEMCPY(neighbor_cache[i].lladdr, lladdr_opt->addr, inp->hwaddr_len); - ip6_addr_set(&(neighbor_cache[i].next_hop_address), ip6_current_src_addr()); - - /* Receiving a message does not prove reachability: only in one direction. - * Delay probe in case we get confirmation of reachability from upper layer (TCP). */ - neighbor_cache[i].state = ND6_DELAY; - neighbor_cache[i].counter.delay_time = LWIP_ND6_DELAY_FIRST_PROBE_TIME / ND6_TMR_INTERVAL; - } - - /* Send back a NA for us. Allocate the reply pbuf. */ - nd6_send_na(inp, &target_address, ND6_FLAG_SOLICITED | ND6_FLAG_OVERRIDE); - } - - break; /* ICMP6_TYPE_NS */ - } - case ICMP6_TYPE_RA: /* Router Advertisement. */ - { - struct ra_header *ra_hdr; - u8_t *buffer; /* Used to copy options. */ - u16_t offset; -#if LWIP_ND6_RDNSS_MAX_DNS_SERVERS - /* There can be multiple RDNSS options per RA */ - u8_t rdnss_server_idx = 0; -#endif /* LWIP_ND6_RDNSS_MAX_DNS_SERVERS */ - - /* Check that RA header fits in packet. */ - if (p->len < sizeof(struct ra_header)) { - /* @todo debug message */ - pbuf_free(p); - ND6_STATS_INC(nd6.lenerr); - ND6_STATS_INC(nd6.drop); - return; - } - - ra_hdr = (struct ra_header *)p->payload; - - /* Check a subset of the other RFC 4861 Sec. 6.1.2 requirements. */ - if (!ip6_addr_islinklocal(ip6_current_src_addr()) || - IP6H_HOPLIM(ip6_current_header()) != ND6_HOPLIM || ra_hdr->code != 0) { - pbuf_free(p); - ND6_STATS_INC(nd6.proterr); - ND6_STATS_INC(nd6.drop); - return; - } - - /* @todo RFC MUST: all included options have a length greater than zero */ - - /* If we are sending RS messages, stop. */ -#if LWIP_IPV6_SEND_ROUTER_SOLICIT - /* ensure at least one solicitation is sent (see RFC 4861, ch. 6.3.7) */ - if ((inp->rs_count < LWIP_ND6_MAX_MULTICAST_SOLICIT) || - (nd6_send_rs(inp) == ERR_OK)) { - inp->rs_count = 0; - } else { - inp->rs_count = 1; - } -#endif /* LWIP_IPV6_SEND_ROUTER_SOLICIT */ - - /* Get the matching default router entry. */ - i = nd6_get_router(ip6_current_src_addr(), inp); - if (i < 0) { - /* Create a new router entry. */ - i = nd6_new_router(ip6_current_src_addr(), inp); - } - - if (i < 0) { - /* Could not create a new router entry. */ - pbuf_free(p); - ND6_STATS_INC(nd6.memerr); - return; - } - - /* Re-set invalidation timer. */ - default_router_list[i].invalidation_timer = lwip_htons(ra_hdr->router_lifetime); - - /* Re-set default timer values. */ -#if LWIP_ND6_ALLOW_RA_UPDATES - if (ra_hdr->retrans_timer > 0) { - retrans_timer = lwip_htonl(ra_hdr->retrans_timer); - } - if (ra_hdr->reachable_time > 0) { - reachable_time = lwip_htonl(ra_hdr->reachable_time); - } -#endif /* LWIP_ND6_ALLOW_RA_UPDATES */ - - /* @todo set default hop limit... */ - /* ra_hdr->current_hop_limit;*/ - - /* Update flags in local entry (incl. preference). */ - default_router_list[i].flags = ra_hdr->flags; - -#if LWIP_IPV6_DHCP6 - /* Trigger DHCPv6 if enabled */ - dhcp6_nd6_ra_trigger(inp, ra_hdr->flags & ND6_RA_FLAG_MANAGED_ADDR_CONFIG, - ra_hdr->flags & ND6_RA_FLAG_OTHER_CONFIG); -#endif - - /* Offset to options. */ - offset = sizeof(struct ra_header); - - /* Process each option. */ - while ((p->tot_len - offset) >= 2) { - u8_t option_type; - u16_t option_len; - int option_len8 = pbuf_try_get_at(p, offset + 1); - if (option_len8 <= 0) { - /* read beyond end or zero length */ - goto lenerr_drop_free_return; - } - option_len = ((u8_t)option_len8) << 3; - if (option_len > p->tot_len - offset) { - /* short packet (option does not fit in) */ - goto lenerr_drop_free_return; - } - if (p->len == p->tot_len) { - /* no need to copy from contiguous pbuf */ - buffer = &((u8_t*)p->payload)[offset]; - } else { - /* check if this option fits into our buffer */ - if (option_len > sizeof(nd6_ra_buffer)) { - option_type = pbuf_get_at(p, offset); - /* invalid option length */ - if (option_type != ND6_OPTION_TYPE_RDNSS) { - goto lenerr_drop_free_return; - } - /* we allow RDNSS option to be longer - we'll just drop some servers */ - option_len = sizeof(nd6_ra_buffer); - } - buffer = (u8_t*)&nd6_ra_buffer; - option_len = pbuf_copy_partial(p, &nd6_ra_buffer, option_len, offset); - } - option_type = buffer[0]; - switch (option_type) { - case ND6_OPTION_TYPE_SOURCE_LLADDR: - { - struct lladdr_option *lladdr_opt; - if (option_len < sizeof(struct lladdr_option)) { - goto lenerr_drop_free_return; - } - lladdr_opt = (struct lladdr_option *)buffer; - if ((default_router_list[i].neighbor_entry != NULL) && - (default_router_list[i].neighbor_entry->state == ND6_INCOMPLETE)) { - SMEMCPY(default_router_list[i].neighbor_entry->lladdr, lladdr_opt->addr, inp->hwaddr_len); - default_router_list[i].neighbor_entry->state = ND6_REACHABLE; - default_router_list[i].neighbor_entry->counter.reachable_time = reachable_time; - } - break; - } - case ND6_OPTION_TYPE_MTU: - { - struct mtu_option *mtu_opt; - u32_t mtu32; - if (option_len < sizeof(struct mtu_option)) { - goto lenerr_drop_free_return; - } - mtu_opt = (struct mtu_option *)buffer; - mtu32 = lwip_htonl(mtu_opt->mtu); - if ((mtu32 >= 1280) && (mtu32 <= 0xffff)) { -#if LWIP_ND6_ALLOW_RA_UPDATES - if (inp->mtu) { - /* don't set the mtu for IPv6 higher than the netif driver supports */ - inp->mtu6 = LWIP_MIN(inp->mtu, (u16_t)mtu32); - } else { - inp->mtu6 = (u16_t)mtu32; - } -#endif /* LWIP_ND6_ALLOW_RA_UPDATES */ - } - break; - } - case ND6_OPTION_TYPE_PREFIX_INFO: - { - struct prefix_option *prefix_opt; - ip6_addr_t prefix_addr; - if (option_len < sizeof(struct prefix_option)) { - goto lenerr_drop_free_return; - } - - prefix_opt = (struct prefix_option *)buffer; - - /* Get a memory-aligned copy of the prefix. */ - ip6_addr_copy_from_packed(prefix_addr, prefix_opt->prefix); - ip6_addr_assign_zone(&prefix_addr, IP6_UNICAST, inp); - - if (!ip6_addr_islinklocal(&prefix_addr)) { - if ((prefix_opt->flags & ND6_PREFIX_FLAG_ON_LINK) && - (prefix_opt->prefix_length == 64)) { - /* Add to on-link prefix list. */ - u32_t valid_life; - s8_t prefix; - - valid_life = lwip_htonl(prefix_opt->valid_lifetime); - - /* find cache entry for this prefix. */ - prefix = nd6_get_onlink_prefix(&prefix_addr, inp); - if (prefix < 0 && valid_life > 0) { - /* Create a new cache entry. */ - prefix = nd6_new_onlink_prefix(&prefix_addr, inp); - } - if (prefix >= 0) { - prefix_list[prefix].invalidation_timer = valid_life; - } - } -#if LWIP_IPV6_AUTOCONFIG - if (prefix_opt->flags & ND6_PREFIX_FLAG_AUTONOMOUS) { - /* Perform processing for autoconfiguration. */ - nd6_process_autoconfig_prefix(inp, prefix_opt, &prefix_addr); - } -#endif /* LWIP_IPV6_AUTOCONFIG */ - } - - break; - } - case ND6_OPTION_TYPE_ROUTE_INFO: - /* @todo implement preferred routes. - struct route_option * route_opt; - route_opt = (struct route_option *)buffer;*/ - - break; -#if LWIP_ND6_RDNSS_MAX_DNS_SERVERS - case ND6_OPTION_TYPE_RDNSS: - { - u8_t num, n; - u16_t copy_offset = offset + SIZEOF_RDNSS_OPTION_BASE; - struct rdnss_option * rdnss_opt; - if (option_len < SIZEOF_RDNSS_OPTION_BASE) { - goto lenerr_drop_free_return; - } - - rdnss_opt = (struct rdnss_option *)buffer; - num = (rdnss_opt->length - 1) / 2; - for (n = 0; (rdnss_server_idx < DNS_MAX_SERVERS) && (n < num); n++) { - ip_addr_t rdnss_address; - - /* Copy directly from pbuf to get an aligned, zoned copy of the prefix. */ - if (pbuf_copy_partial(p, &rdnss_address, sizeof(ip6_addr_p_t), copy_offset) == sizeof(ip6_addr_p_t)) { - IP_SET_TYPE_VAL(rdnss_address, IPADDR_TYPE_V6); - ip6_addr_assign_zone(ip_2_ip6(&rdnss_address), IP6_UNKNOWN, inp); - - if (htonl(rdnss_opt->lifetime) > 0) { - /* TODO implement Lifetime > 0 */ - dns_setserver(rdnss_server_idx++, &rdnss_address); - } else { - /* TODO implement DNS removal in dns.c */ - u8_t s; - for (s = 0; s < DNS_MAX_SERVERS; s++) { - const ip_addr_t *addr = dns_getserver(s); - if(ip_addr_cmp(addr, &rdnss_address)) { - dns_setserver(s, NULL); - } - } - } - } - } - break; - } -#endif /* LWIP_ND6_RDNSS_MAX_DNS_SERVERS */ - default: - /* Unrecognized option, abort. */ - ND6_STATS_INC(nd6.proterr); - break; - } - /* option length is checked earlier to be non-zero to make sure loop ends */ - offset += 8 * (u8_t)option_len8; - } - - break; /* ICMP6_TYPE_RA */ - } - case ICMP6_TYPE_RD: /* Redirect */ - { - struct redirect_header *redir_hdr; - struct lladdr_option *lladdr_opt; - ip6_addr_t destination_address, target_address; - - /* Check that Redir header fits in packet. */ - if (p->len < sizeof(struct redirect_header)) { - /* @todo debug message */ - pbuf_free(p); - ND6_STATS_INC(nd6.lenerr); - ND6_STATS_INC(nd6.drop); - return; - } - - redir_hdr = (struct redirect_header *)p->payload; - - /* Create an aligned, zoned copy of the destination address. */ - ip6_addr_copy_from_packed(destination_address, redir_hdr->destination_address); - ip6_addr_assign_zone(&destination_address, IP6_UNICAST, inp); - - /* Check a subset of the other RFC 4861 Sec. 8.1 requirements. */ - if (!ip6_addr_islinklocal(ip6_current_src_addr()) || - IP6H_HOPLIM(ip6_current_header()) != ND6_HOPLIM || - redir_hdr->code != 0 || ip6_addr_ismulticast(&destination_address)) { - pbuf_free(p); - ND6_STATS_INC(nd6.proterr); - ND6_STATS_INC(nd6.drop); - return; - } - - /* @todo RFC MUST: IP source address equals first-hop router for destination_address */ - /* @todo RFC MUST: ICMP target address is either link-local address or same as destination_address */ - /* @todo RFC MUST: all included options have a length greater than zero */ - - if (p->len >= (sizeof(struct redirect_header) + 2)) { - lladdr_opt = (struct lladdr_option *)((u8_t*)p->payload + sizeof(struct redirect_header)); - if (p->len < (sizeof(struct redirect_header) + (lladdr_opt->length << 3))) { - lladdr_opt = NULL; - } - } else { - lladdr_opt = NULL; - } - - /* Find dest address in cache */ - dest_idx = nd6_find_destination_cache_entry(&destination_address); - if (dest_idx < 0) { - /* Destination not in cache, drop packet. */ - pbuf_free(p); - return; - } - - /* Create an aligned, zoned copy of the target address. */ - ip6_addr_copy_from_packed(target_address, redir_hdr->target_address); - ip6_addr_assign_zone(&target_address, IP6_UNICAST, inp); - - /* Set the new target address. */ - ip6_addr_copy(destination_cache[dest_idx].next_hop_addr, target_address); - - /* If Link-layer address of other router is given, try to add to neighbor cache. */ - if (lladdr_opt != NULL) { - if (lladdr_opt->type == ND6_OPTION_TYPE_TARGET_LLADDR) { - i = nd6_find_neighbor_cache_entry(&target_address); - if (i < 0) { - i = nd6_new_neighbor_cache_entry(); - if (i >= 0) { - neighbor_cache[i].netif = inp; - MEMCPY(neighbor_cache[i].lladdr, lladdr_opt->addr, inp->hwaddr_len); - ip6_addr_copy(neighbor_cache[i].next_hop_address, target_address); - - /* Receiving a message does not prove reachability: only in one direction. - * Delay probe in case we get confirmation of reachability from upper layer (TCP). */ - neighbor_cache[i].state = ND6_DELAY; - neighbor_cache[i].counter.delay_time = LWIP_ND6_DELAY_FIRST_PROBE_TIME / ND6_TMR_INTERVAL; - } - } - if (i >= 0) { - if (neighbor_cache[i].state == ND6_INCOMPLETE) { - MEMCPY(neighbor_cache[i].lladdr, lladdr_opt->addr, inp->hwaddr_len); - /* Receiving a message does not prove reachability: only in one direction. - * Delay probe in case we get confirmation of reachability from upper layer (TCP). */ - neighbor_cache[i].state = ND6_DELAY; - neighbor_cache[i].counter.delay_time = LWIP_ND6_DELAY_FIRST_PROBE_TIME / ND6_TMR_INTERVAL; - } - } - } - } - break; /* ICMP6_TYPE_RD */ - } - case ICMP6_TYPE_PTB: /* Packet too big */ - { - struct icmp6_hdr *icmp6hdr; /* Packet too big message */ - struct ip6_hdr *ip6hdr; /* IPv6 header of the packet which caused the error */ - u32_t pmtu; - ip6_addr_t destination_address; - - /* Check that ICMPv6 header + IPv6 header fit in payload */ - if (p->len < (sizeof(struct icmp6_hdr) + IP6_HLEN)) { - /* drop short packets */ - pbuf_free(p); - ND6_STATS_INC(nd6.lenerr); - ND6_STATS_INC(nd6.drop); - return; - } - - icmp6hdr = (struct icmp6_hdr *)p->payload; - ip6hdr = (struct ip6_hdr *)((u8_t*)p->payload + sizeof(struct icmp6_hdr)); - - /* Create an aligned, zoned copy of the destination address. */ - ip6_addr_copy_from_packed(destination_address, ip6hdr->dest); - ip6_addr_assign_zone(&destination_address, IP6_UNKNOWN, inp); - - /* Look for entry in destination cache. */ - dest_idx = nd6_find_destination_cache_entry(&destination_address); - if (dest_idx < 0) { - /* Destination not in cache, drop packet. */ - pbuf_free(p); - return; - } - - /* Change the Path MTU. */ - pmtu = lwip_htonl(icmp6hdr->data); - destination_cache[dest_idx].pmtu = (u16_t)LWIP_MIN(pmtu, 0xFFFF); - - break; /* ICMP6_TYPE_PTB */ - } - - default: - ND6_STATS_INC(nd6.proterr); - ND6_STATS_INC(nd6.drop); - break; /* default */ - } - - pbuf_free(p); - return; -lenerr_drop_free_return: - ND6_STATS_INC(nd6.lenerr); - ND6_STATS_INC(nd6.drop); - pbuf_free(p); -} - - -/** - * Periodic timer for Neighbor discovery functions: - * - * - Update neighbor reachability states - * - Update destination cache entries age - * - Update invalidation timers of default routers and on-link prefixes - * - Update lifetimes of our addresses - * - Perform duplicate address detection (DAD) for our addresses - * - Send router solicitations - */ -void -nd6_tmr(void) -{ - s8_t i; - struct netif *netif; - - /* Process neighbor entries. */ - for (i = 0; i < LWIP_ND6_NUM_NEIGHBORS; i++) { - switch (neighbor_cache[i].state) { - case ND6_INCOMPLETE: - if ((neighbor_cache[i].counter.probes_sent >= LWIP_ND6_MAX_MULTICAST_SOLICIT) && - (!neighbor_cache[i].isrouter)) { - /* Retries exceeded. */ - nd6_free_neighbor_cache_entry(i); - } else { - /* Send a NS for this entry. */ - neighbor_cache[i].counter.probes_sent++; - nd6_send_neighbor_cache_probe(&neighbor_cache[i], ND6_SEND_FLAG_MULTICAST_DEST); - } - break; - case ND6_REACHABLE: - /* Send queued packets, if any are left. Should have been sent already. */ - if (neighbor_cache[i].q != NULL) { - nd6_send_q(i); - } - if (neighbor_cache[i].counter.reachable_time <= ND6_TMR_INTERVAL) { - /* Change to stale state. */ - neighbor_cache[i].state = ND6_STALE; - neighbor_cache[i].counter.stale_time = 0; - } else { - neighbor_cache[i].counter.reachable_time -= ND6_TMR_INTERVAL; - } - break; - case ND6_STALE: - neighbor_cache[i].counter.stale_time++; - break; - case ND6_DELAY: - if (neighbor_cache[i].counter.delay_time <= 1) { - /* Change to PROBE state. */ - neighbor_cache[i].state = ND6_PROBE; - neighbor_cache[i].counter.probes_sent = 0; - } else { - neighbor_cache[i].counter.delay_time--; - } - break; - case ND6_PROBE: - if ((neighbor_cache[i].counter.probes_sent >= LWIP_ND6_MAX_MULTICAST_SOLICIT) && - (!neighbor_cache[i].isrouter)) { - /* Retries exceeded. */ - nd6_free_neighbor_cache_entry(i); - } else { - /* Send a NS for this entry. */ - neighbor_cache[i].counter.probes_sent++; - nd6_send_neighbor_cache_probe(&neighbor_cache[i], 0); - } - break; - case ND6_NO_ENTRY: - default: - /* Do nothing. */ - break; - } - } - - /* Process destination entries. */ - for (i = 0; i < LWIP_ND6_NUM_DESTINATIONS; i++) { - destination_cache[i].age++; - } - - /* Process router entries. */ - for (i = 0; i < LWIP_ND6_NUM_ROUTERS; i++) { - if (default_router_list[i].neighbor_entry != NULL) { - /* Active entry. */ - if (default_router_list[i].invalidation_timer <= ND6_TMR_INTERVAL / 1000) { - /* No more than 1 second remaining. Clear this entry. Also clear any of - * its destination cache entries, as per RFC 4861 Sec. 5.3 and 6.3.5. */ - s8_t j; - for (j = 0; j < LWIP_ND6_NUM_DESTINATIONS; j++) { - if (ip6_addr_cmp(&destination_cache[j].next_hop_addr, - &default_router_list[i].neighbor_entry->next_hop_address)) { - ip6_addr_set_any(&destination_cache[j].destination_addr); - } - } - default_router_list[i].neighbor_entry->isrouter = 0; - default_router_list[i].neighbor_entry = NULL; - default_router_list[i].invalidation_timer = 0; - default_router_list[i].flags = 0; - } else { - default_router_list[i].invalidation_timer -= ND6_TMR_INTERVAL / 1000; - } - } - } - - /* Process prefix entries. */ - for (i = 0; i < LWIP_ND6_NUM_PREFIXES; i++) { - if (prefix_list[i].netif != NULL) { - if (prefix_list[i].invalidation_timer <= ND6_TMR_INTERVAL / 1000) { - /* Entry timed out, remove it */ - prefix_list[i].invalidation_timer = 0; - prefix_list[i].netif = NULL; - } else { - prefix_list[i].invalidation_timer -= ND6_TMR_INTERVAL / 1000; - } - } - } - - /* Process our own addresses, updating address lifetimes and/or DAD state. */ - NETIF_FOREACH(netif) { - for (i = 0; i < LWIP_IPV6_NUM_ADDRESSES; ++i) { - u8_t addr_state; -#if LWIP_IPV6_ADDRESS_LIFETIMES - /* Step 1: update address lifetimes (valid and preferred). */ - addr_state = netif_ip6_addr_state(netif, i); - /* RFC 4862 is not entirely clear as to whether address lifetimes affect - * tentative addresses, and is even less clear as to what should happen - * with duplicate addresses. We choose to track and update lifetimes for - * both those types, although for different reasons: - * - for tentative addresses, the line of thought of Sec. 5.7 combined - * with the potentially long period that an address may be in tentative - * state (due to the interface being down) suggests that lifetimes - * should be independent of external factors which would include DAD; - * - for duplicate addresses, retiring them early could result in a new - * but unwanted attempt at marking them as valid, while retiring them - * late/never could clog up address slots on the netif. - * As a result, we may end up expiring addresses of either type here. - */ - if (!ip6_addr_isinvalid(addr_state) && - !netif_ip6_addr_isstatic(netif, i)) { - u32_t life = netif_ip6_addr_valid_life(netif, i); - if (life <= ND6_TMR_INTERVAL / 1000) { - /* The address has expired. */ - netif_ip6_addr_set_valid_life(netif, i, 0); - netif_ip6_addr_set_pref_life(netif, i, 0); - netif_ip6_addr_set_state(netif, i, IP6_ADDR_INVALID); - } else { - if (!ip6_addr_life_isinfinite(life)) { - life -= ND6_TMR_INTERVAL / 1000; - LWIP_ASSERT("bad valid lifetime", life != IP6_ADDR_LIFE_STATIC); - netif_ip6_addr_set_valid_life(netif, i, life); - } - /* The address is still here. Update the preferred lifetime too. */ - life = netif_ip6_addr_pref_life(netif, i); - if (life <= ND6_TMR_INTERVAL / 1000) { - /* This case must also trigger if 'life' was already zero, so as to - * deal correctly with advertised preferred-lifetime reductions. */ - netif_ip6_addr_set_pref_life(netif, i, 0); - if (addr_state == IP6_ADDR_PREFERRED) - netif_ip6_addr_set_state(netif, i, IP6_ADDR_DEPRECATED); - } else if (!ip6_addr_life_isinfinite(life)) { - life -= ND6_TMR_INTERVAL / 1000; - netif_ip6_addr_set_pref_life(netif, i, life); - } - } - } - /* The address state may now have changed, so reobtain it next. */ -#endif /* LWIP_IPV6_ADDRESS_LIFETIMES */ - /* Step 2: update DAD state. */ - addr_state = netif_ip6_addr_state(netif, i); - if (ip6_addr_istentative(addr_state)) { - if ((addr_state & IP6_ADDR_TENTATIVE_COUNT_MASK) >= LWIP_IPV6_DUP_DETECT_ATTEMPTS) { - /* No NA received in response. Mark address as valid. For dynamic - * addresses with an expired preferred lifetime, the state is set to - * deprecated right away. That should almost never happen, though. */ - addr_state = IP6_ADDR_PREFERRED; -#if LWIP_IPV6_ADDRESS_LIFETIMES - if (!netif_ip6_addr_isstatic(netif, i) && - netif_ip6_addr_pref_life(netif, i) == 0) { - addr_state = IP6_ADDR_DEPRECATED; - } -#endif /* LWIP_IPV6_ADDRESS_LIFETIMES */ - netif_ip6_addr_set_state(netif, i, addr_state); - } else if (netif_is_up(netif) && netif_is_link_up(netif)) { - /* tentative: set next state by increasing by one */ - netif_ip6_addr_set_state(netif, i, addr_state + 1); - /* Send a NS for this address. Use the unspecified address as source - * address in all cases (RFC 4862 Sec. 5.4.2), not in the least - * because as it is, we only consider multicast replies for DAD. */ - nd6_send_ns(netif, netif_ip6_addr(netif, i), - ND6_SEND_FLAG_MULTICAST_DEST | ND6_SEND_FLAG_ANY_SRC); - } - } - } - } - -#if LWIP_IPV6_SEND_ROUTER_SOLICIT - /* Send router solicitation messages, if necessary. */ - if (!nd6_tmr_rs_reduction) { - nd6_tmr_rs_reduction = (ND6_RTR_SOLICITATION_INTERVAL / ND6_TMR_INTERVAL) - 1; - NETIF_FOREACH(netif) { - if ((netif->rs_count > 0) && netif_is_up(netif) && - netif_is_link_up(netif) && - !ip6_addr_isinvalid(netif_ip6_addr_state(netif, 0)) && - !ip6_addr_isduplicated(netif_ip6_addr_state(netif, 0))) { - if (nd6_send_rs(netif) == ERR_OK) { - netif->rs_count--; - } - } - } - } else { - nd6_tmr_rs_reduction--; - } -#endif /* LWIP_IPV6_SEND_ROUTER_SOLICIT */ - -} - -/** Send a neighbor solicitation message for a specific neighbor cache entry - * - * @param entry the neightbor cache entry for wich to send the message - * @param flags one of ND6_SEND_FLAG_* - */ -static void -nd6_send_neighbor_cache_probe(struct nd6_neighbor_cache_entry *entry, u8_t flags) -{ - nd6_send_ns(entry->netif, &entry->next_hop_address, flags); -} - -/** - * Send a neighbor solicitation message - * - * @param netif the netif on which to send the message - * @param target_addr the IPv6 target address for the ND message - * @param flags one of ND6_SEND_FLAG_* - */ -static void -nd6_send_ns(struct netif *netif, const ip6_addr_t *target_addr, u8_t flags) -{ - struct ns_header *ns_hdr; - struct pbuf *p; - const ip6_addr_t *src_addr; - u16_t lladdr_opt_len; - - LWIP_ASSERT("target address is required", target_addr != NULL); - - if (!(flags & ND6_SEND_FLAG_ANY_SRC) && - ip6_addr_isvalid(netif_ip6_addr_state(netif,0))) { - /* Use link-local address as source address. */ - src_addr = netif_ip6_addr(netif, 0); - /* calculate option length (in 8-byte-blocks) */ - lladdr_opt_len = ((netif->hwaddr_len + 2) + 7) >> 3; - } else { - src_addr = IP6_ADDR_ANY6; - /* Option "MUST NOT be included when the source IP address is the unspecified address." */ - lladdr_opt_len = 0; - } - - /* Allocate a packet. */ - p = pbuf_alloc(PBUF_IP, sizeof(struct ns_header) + (lladdr_opt_len << 3), PBUF_RAM); - if (p == NULL) { - ND6_STATS_INC(nd6.memerr); - return; - } - - /* Set fields. */ - ns_hdr = (struct ns_header *)p->payload; - - ns_hdr->type = ICMP6_TYPE_NS; - ns_hdr->code = 0; - ns_hdr->chksum = 0; - ns_hdr->reserved = 0; - ip6_addr_copy_to_packed(ns_hdr->target_address, *target_addr); - - if (lladdr_opt_len != 0) { - struct lladdr_option *lladdr_opt = (struct lladdr_option *)((u8_t*)p->payload + sizeof(struct ns_header)); - lladdr_opt->type = ND6_OPTION_TYPE_SOURCE_LLADDR; - lladdr_opt->length = (u8_t)lladdr_opt_len; - SMEMCPY(lladdr_opt->addr, netif->hwaddr, netif->hwaddr_len); - } - - /* Generate the solicited node address for the target address. */ - if (flags & ND6_SEND_FLAG_MULTICAST_DEST) { - ip6_addr_set_solicitednode(&multicast_address, target_addr->addr[3]); - ip6_addr_assign_zone(&multicast_address, IP6_MULTICAST, netif); - target_addr = &multicast_address; - } - -#if CHECKSUM_GEN_ICMP6 - IF__NETIF_CHECKSUM_ENABLED(netif, NETIF_CHECKSUM_GEN_ICMP6) { - ns_hdr->chksum = ip6_chksum_pseudo(p, IP6_NEXTH_ICMP6, p->len, src_addr, - target_addr); - } -#endif /* CHECKSUM_GEN_ICMP6 */ - - /* Send the packet out. */ - ND6_STATS_INC(nd6.xmit); - ip6_output_if(p, (src_addr == IP6_ADDR_ANY6) ? NULL : src_addr, target_addr, - ND6_HOPLIM, 0, IP6_NEXTH_ICMP6, netif); - pbuf_free(p); -} - -/** - * Send a neighbor advertisement message - * - * @param netif the netif on which to send the message - * @param target_addr the IPv6 target address for the ND message - * @param flags one of ND6_SEND_FLAG_* - */ -static void -nd6_send_na(struct netif *netif, const ip6_addr_t *target_addr, u8_t flags) -{ - struct na_header *na_hdr; - struct lladdr_option *lladdr_opt; - struct pbuf *p; - const ip6_addr_t *src_addr; - const ip6_addr_t *dest_addr; - u16_t lladdr_opt_len; - - LWIP_ASSERT("target address is required", target_addr != NULL); - - /* Use link-local address as source address. */ - /* src_addr = netif_ip6_addr(netif, 0); */ - /* Use target address as source address. */ - src_addr = target_addr; - - /* Allocate a packet. */ - lladdr_opt_len = ((netif->hwaddr_len + 2) >> 3) + (((netif->hwaddr_len + 2) & 0x07) ? 1 : 0); - p = pbuf_alloc(PBUF_IP, sizeof(struct na_header) + (lladdr_opt_len << 3), PBUF_RAM); - if (p == NULL) { - ND6_STATS_INC(nd6.memerr); - return; - } - - /* Set fields. */ - na_hdr = (struct na_header *)p->payload; - lladdr_opt = (struct lladdr_option *)((u8_t*)p->payload + sizeof(struct na_header)); - - na_hdr->type = ICMP6_TYPE_NA; - na_hdr->code = 0; - na_hdr->chksum = 0; - na_hdr->flags = flags & 0xf0; - na_hdr->reserved[0] = 0; - na_hdr->reserved[1] = 0; - na_hdr->reserved[2] = 0; - ip6_addr_copy_to_packed(na_hdr->target_address, *target_addr); - - lladdr_opt->type = ND6_OPTION_TYPE_TARGET_LLADDR; - lladdr_opt->length = (u8_t)lladdr_opt_len; - SMEMCPY(lladdr_opt->addr, netif->hwaddr, netif->hwaddr_len); - - /* Generate the solicited node address for the target address. */ - if (flags & ND6_SEND_FLAG_MULTICAST_DEST) { - ip6_addr_set_solicitednode(&multicast_address, target_addr->addr[3]); - ip6_addr_assign_zone(&multicast_address, IP6_MULTICAST, netif); - dest_addr = &multicast_address; - } else if (flags & ND6_SEND_FLAG_ALLNODES_DEST) { - ip6_addr_set_allnodes_linklocal(&multicast_address); - ip6_addr_assign_zone(&multicast_address, IP6_MULTICAST, netif); - dest_addr = &multicast_address; - } else { - dest_addr = ip6_current_src_addr(); - } - -#if CHECKSUM_GEN_ICMP6 - IF__NETIF_CHECKSUM_ENABLED(netif, NETIF_CHECKSUM_GEN_ICMP6) { - na_hdr->chksum = ip6_chksum_pseudo(p, IP6_NEXTH_ICMP6, p->len, src_addr, - dest_addr); - } -#endif /* CHECKSUM_GEN_ICMP6 */ - - /* Send the packet out. */ - ND6_STATS_INC(nd6.xmit); - ip6_output_if(p, src_addr, dest_addr, - ND6_HOPLIM, 0, IP6_NEXTH_ICMP6, netif); - pbuf_free(p); -} - -#if LWIP_IPV6_SEND_ROUTER_SOLICIT -/** - * Send a router solicitation message - * - * @param netif the netif on which to send the message - */ -static err_t -nd6_send_rs(struct netif *netif) -{ - struct rs_header *rs_hdr; - struct lladdr_option *lladdr_opt; - struct pbuf *p; - const ip6_addr_t *src_addr; - err_t err; - u16_t lladdr_opt_len = 0; - - /* Link-local source address, or unspecified address? */ - if (ip6_addr_isvalid(netif_ip6_addr_state(netif, 0))) { - src_addr = netif_ip6_addr(netif, 0); - } else { - src_addr = IP6_ADDR_ANY6; - } - - /* Generate the all routers target address. */ - ip6_addr_set_allrouters_linklocal(&multicast_address); - ip6_addr_assign_zone(&multicast_address, IP6_MULTICAST, netif); - - /* Allocate a packet. */ - if (src_addr != IP6_ADDR_ANY6) { - lladdr_opt_len = ((netif->hwaddr_len + 2) >> 3) + (((netif->hwaddr_len + 2) & 0x07) ? 1 : 0); - } - p = pbuf_alloc(PBUF_IP, sizeof(struct rs_header) + (lladdr_opt_len << 3), PBUF_RAM); - if (p == NULL) { - ND6_STATS_INC(nd6.memerr); - return ERR_BUF; - } - - /* Set fields. */ - rs_hdr = (struct rs_header *)p->payload; - - rs_hdr->type = ICMP6_TYPE_RS; - rs_hdr->code = 0; - rs_hdr->chksum = 0; - rs_hdr->reserved = 0; - - if (src_addr != IP6_ADDR_ANY6) { - /* Include our hw address. */ - lladdr_opt = (struct lladdr_option *)((u8_t*)p->payload + sizeof(struct rs_header)); - lladdr_opt->type = ND6_OPTION_TYPE_SOURCE_LLADDR; - lladdr_opt->length = (u8_t)lladdr_opt_len; - SMEMCPY(lladdr_opt->addr, netif->hwaddr, netif->hwaddr_len); - } - -#if CHECKSUM_GEN_ICMP6 - IF__NETIF_CHECKSUM_ENABLED(netif, NETIF_CHECKSUM_GEN_ICMP6) { - rs_hdr->chksum = ip6_chksum_pseudo(p, IP6_NEXTH_ICMP6, p->len, src_addr, - &multicast_address); - } -#endif /* CHECKSUM_GEN_ICMP6 */ - - /* Send the packet out. */ - ND6_STATS_INC(nd6.xmit); - - err = ip6_output_if(p, (src_addr == IP6_ADDR_ANY6) ? NULL : src_addr, &multicast_address, - ND6_HOPLIM, 0, IP6_NEXTH_ICMP6, netif); - pbuf_free(p); - - return err; -} -#endif /* LWIP_IPV6_SEND_ROUTER_SOLICIT */ - -/** - * Search for a neighbor cache entry - * - * @param ip6addr the IPv6 address of the neighbor - * @return The neighbor cache entry index that matched, -1 if no - * entry is found - */ -static s8_t -nd6_find_neighbor_cache_entry(const ip6_addr_t *ip6addr) -{ - s8_t i; - for (i = 0; i < LWIP_ND6_NUM_NEIGHBORS; i++) { - if (ip6_addr_cmp(ip6addr, &(neighbor_cache[i].next_hop_address))) { - return i; - } - } - return -1; -} - -/** - * Create a new neighbor cache entry. - * - * If no unused entry is found, will try to recycle an old entry - * according to ad-hoc "age" heuristic. - * - * @return The neighbor cache entry index that was created, -1 if no - * entry could be created - */ -static s8_t -nd6_new_neighbor_cache_entry(void) -{ - s8_t i; - s8_t j; - u32_t time; - - - /* First, try to find an empty entry. */ - for (i = 0; i < LWIP_ND6_NUM_NEIGHBORS; i++) { - if (neighbor_cache[i].state == ND6_NO_ENTRY) { - return i; - } - } - - /* We need to recycle an entry. in general, do not recycle if it is a router. */ - - /* Next, try to find a Stale entry. */ - for (i = 0; i < LWIP_ND6_NUM_NEIGHBORS; i++) { - if ((neighbor_cache[i].state == ND6_STALE) && - (!neighbor_cache[i].isrouter)) { - nd6_free_neighbor_cache_entry(i); - return i; - } - } - - /* Next, try to find a Probe entry. */ - for (i = 0; i < LWIP_ND6_NUM_NEIGHBORS; i++) { - if ((neighbor_cache[i].state == ND6_PROBE) && - (!neighbor_cache[i].isrouter)) { - nd6_free_neighbor_cache_entry(i); - return i; - } - } - - /* Next, try to find a Delayed entry. */ - for (i = 0; i < LWIP_ND6_NUM_NEIGHBORS; i++) { - if ((neighbor_cache[i].state == ND6_DELAY) && - (!neighbor_cache[i].isrouter)) { - nd6_free_neighbor_cache_entry(i); - return i; - } - } - - /* Next, try to find the oldest reachable entry. */ - time = 0xfffffffful; - j = -1; - for (i = 0; i < LWIP_ND6_NUM_NEIGHBORS; i++) { - if ((neighbor_cache[i].state == ND6_REACHABLE) && - (!neighbor_cache[i].isrouter)) { - if (neighbor_cache[i].counter.reachable_time < time) { - j = i; - time = neighbor_cache[i].counter.reachable_time; - } - } - } - if (j >= 0) { - nd6_free_neighbor_cache_entry(j); - return j; - } - - /* Next, find oldest incomplete entry without queued packets. */ - time = 0; - j = -1; - for (i = 0; i < LWIP_ND6_NUM_NEIGHBORS; i++) { - if ( - (neighbor_cache[i].q == NULL) && - (neighbor_cache[i].state == ND6_INCOMPLETE) && - (!neighbor_cache[i].isrouter)) { - if (neighbor_cache[i].counter.probes_sent >= time) { - j = i; - time = neighbor_cache[i].counter.probes_sent; - } - } - } - if (j >= 0) { - nd6_free_neighbor_cache_entry(j); - return j; - } - - /* Next, find oldest incomplete entry with queued packets. */ - time = 0; - j = -1; - for (i = 0; i < LWIP_ND6_NUM_NEIGHBORS; i++) { - if ((neighbor_cache[i].state == ND6_INCOMPLETE) && - (!neighbor_cache[i].isrouter)) { - if (neighbor_cache[i].counter.probes_sent >= time) { - j = i; - time = neighbor_cache[i].counter.probes_sent; - } - } - } - if (j >= 0) { - nd6_free_neighbor_cache_entry(j); - return j; - } - - /* No more entries to try. */ - return -1; -} - -/** - * Will free any resources associated with a neighbor cache - * entry, and will mark it as unused. - * - * @param i the neighbor cache entry index to free - */ -static void -nd6_free_neighbor_cache_entry(s8_t i) -{ - if ((i < 0) || (i >= LWIP_ND6_NUM_NEIGHBORS)) { - return; - } - if (neighbor_cache[i].isrouter) { - /* isrouter needs to be cleared before deleting a neighbor cache entry */ - return; - } - - /* Free any queued packets. */ - if (neighbor_cache[i].q != NULL) { - nd6_free_q(neighbor_cache[i].q); - neighbor_cache[i].q = NULL; - } - - neighbor_cache[i].state = ND6_NO_ENTRY; - neighbor_cache[i].isrouter = 0; - neighbor_cache[i].netif = NULL; - neighbor_cache[i].counter.reachable_time = 0; - ip6_addr_set_zero(&(neighbor_cache[i].next_hop_address)); -} - -/** - * Search for a destination cache entry - * - * @param ip6addr the IPv6 address of the destination - * @return The destination cache entry index that matched, -1 if no - * entry is found - */ -static s16_t -nd6_find_destination_cache_entry(const ip6_addr_t *ip6addr) -{ - s16_t i; - - IP6_ADDR_ZONECHECK(ip6addr); - - for (i = 0; i < LWIP_ND6_NUM_DESTINATIONS; i++) { - if (ip6_addr_cmp(ip6addr, &(destination_cache[i].destination_addr))) { - return i; - } - } - return -1; -} - -/** - * Create a new destination cache entry. If no unused entry is found, - * will recycle oldest entry. - * - * @return The destination cache entry index that was created, -1 if no - * entry was created - */ -static s16_t -nd6_new_destination_cache_entry(void) -{ - s16_t i, j; - u32_t age; - - /* Find an empty entry. */ - for (i = 0; i < LWIP_ND6_NUM_DESTINATIONS; i++) { - if (ip6_addr_isany(&(destination_cache[i].destination_addr))) { - return i; - } - } - - /* Find oldest entry. */ - age = 0; - j = LWIP_ND6_NUM_DESTINATIONS - 1; - for (i = 0; i < LWIP_ND6_NUM_DESTINATIONS; i++) { - if (destination_cache[i].age > age) { - j = i; - } - } - - return j; -} - -/** - * Clear the destination cache. - * - * This operation may be necessary for consistency in the light of changing - * local addresses and/or use of the gateway hook. - */ -void -nd6_clear_destination_cache(void) -{ - int i; - - for (i = 0; i < LWIP_ND6_NUM_DESTINATIONS; i++) { - ip6_addr_set_any(&destination_cache[i].destination_addr); - } -} - -/** - * Determine whether an address matches an on-link prefix or the subnet of a - * statically assigned address. - * - * @param ip6addr the IPv6 address to match - * @return 1 if the address is on-link, 0 otherwise - */ -static int -nd6_is_prefix_in_netif(const ip6_addr_t *ip6addr, struct netif *netif) -{ - s8_t i; - - /* Check to see if the address matches an on-link prefix. */ - for (i = 0; i < LWIP_ND6_NUM_PREFIXES; i++) { - if ((prefix_list[i].netif == netif) && - (prefix_list[i].invalidation_timer > 0) && - ip6_addr_netcmp(ip6addr, &(prefix_list[i].prefix))) { - return 1; - } - } - /* Check to see if address prefix matches a manually configured (= static) - * address. Static addresses have an implied /64 subnet assignment. Dynamic - * addresses (from autoconfiguration) have no implied subnet assignment, and - * are thus effectively /128 assignments. See RFC 5942 for more on this. */ - for (i = 0; i < LWIP_IPV6_NUM_ADDRESSES; i++) { - if (ip6_addr_isvalid(netif_ip6_addr_state(netif, i)) && - netif_ip6_addr_isstatic(netif, i) && - ip6_addr_netcmp(ip6addr, netif_ip6_addr(netif, i))) { - return 1; - } - } - return 0; -} - -/** - * Select a default router for a destination. - * - * This function is used both for routing and for finding a next-hop target for - * a packet. In the former case, the given netif is NULL, and the returned - * router entry must be for a netif suitable for sending packets (up, link up). - * In the latter case, the given netif is not NULL and restricts router choice. - * - * @param ip6addr the destination address - * @param netif the netif for the outgoing packet, if known - * @return the default router entry index, or -1 if no suitable - * router is found - */ -static s8_t -nd6_select_router(const ip6_addr_t *ip6addr, struct netif *netif) -{ - struct netif *router_netif; - s8_t i, j, valid_router; - static s8_t last_router; - - LWIP_UNUSED_ARG(ip6addr); /* @todo match preferred routes!! (must implement ND6_OPTION_TYPE_ROUTE_INFO) */ - - /* @todo: implement default router preference */ - - /* Look for valid routers. A reachable router is preferred. */ - valid_router = -1; - for (i = 0; i < LWIP_ND6_NUM_ROUTERS; i++) { - /* Is the router netif both set and apppropriate? */ - if (default_router_list[i].neighbor_entry != NULL) { - router_netif = default_router_list[i].neighbor_entry->netif; - if ((router_netif != NULL) && (netif != NULL ? netif == router_netif : - (netif_is_up(router_netif) && netif_is_link_up(router_netif)))) { - /* Is the router valid, i.e., reachable or probably reachable as per - * RFC 4861 Sec. 6.3.6? Note that we will never return a router that - * has no neighbor cache entry, due to the netif association tests. */ - if (default_router_list[i].neighbor_entry->state != ND6_INCOMPLETE) { - /* Is the router known to be reachable? */ - if (default_router_list[i].neighbor_entry->state == ND6_REACHABLE) { - return i; /* valid and reachable - done! */ - } else if (valid_router < 0) { - valid_router = i; /* valid but not known to be reachable */ - } - } - } - } - } - if (valid_router >= 0) { - return valid_router; - } - - /* Look for any router for which we have any information at all. */ - /* last_router is used for round-robin selection of incomplete routers, as - * recommended in RFC 4861 Sec. 6.3.6 point (2). Advance only when picking a - * route, to select the same router as next-hop target in the common case. */ - if ((netif == NULL) && (++last_router >= LWIP_ND6_NUM_ROUTERS)) { - last_router = 0; - } - i = last_router; - for (j = 0; j < LWIP_ND6_NUM_ROUTERS; j++) { - if (default_router_list[i].neighbor_entry != NULL) { - router_netif = default_router_list[i].neighbor_entry->netif; - if ((router_netif != NULL) && (netif != NULL ? netif == router_netif : - (netif_is_up(router_netif) && netif_is_link_up(router_netif)))) { - return i; - } - } - if (++i >= LWIP_ND6_NUM_ROUTERS) { - i = 0; - } - } - - /* no suitable router found. */ - return -1; -} - -/** - * Find a router-announced route to the given destination. This route may be - * based on an on-link prefix or a default router. - * - * If a suitable route is found, the returned netif is guaranteed to be in a - * suitable state (up, link up) to be used for packet transmission. - * - * @param ip6addr the destination IPv6 address - * @return the netif to use for the destination, or NULL if none found - */ -struct netif * -nd6_find_route(const ip6_addr_t *ip6addr) -{ - struct netif *netif; - s8_t i; - - /* @todo decide if it makes sense to check the destination cache first */ - - /* Check if there is a matching on-link prefix. There may be multiple - * matches. Pick the first one that is associated with a suitable netif. */ - for (i = 0; i < LWIP_ND6_NUM_PREFIXES; ++i) { - netif = prefix_list[i].netif; - if ((netif != NULL) && ip6_addr_netcmp(&prefix_list[i].prefix, ip6addr) && - netif_is_up(netif) && netif_is_link_up(netif)) { - return netif; - } - } - - /* No on-link prefix match. Find a router that can forward the packet. */ - i = nd6_select_router(ip6addr, NULL); - if (i >= 0) { - LWIP_ASSERT("selected router must have a neighbor entry", - default_router_list[i].neighbor_entry != NULL); - return default_router_list[i].neighbor_entry->netif; - } - - return NULL; -} - -/** - * Find an entry for a default router. - * - * @param router_addr the IPv6 address of the router - * @param netif the netif on which the router is found, if known - * @return the index of the router entry, or -1 if not found - */ -static s8_t -nd6_get_router(const ip6_addr_t *router_addr, struct netif *netif) -{ - s8_t i; - - IP6_ADDR_ZONECHECK_NETIF(router_addr, netif); - - /* Look for router. */ - for (i = 0; i < LWIP_ND6_NUM_ROUTERS; i++) { - if ((default_router_list[i].neighbor_entry != NULL) && - ((netif != NULL) ? netif == default_router_list[i].neighbor_entry->netif : 1) && - ip6_addr_cmp(router_addr, &(default_router_list[i].neighbor_entry->next_hop_address))) { - return i; - } - } - - /* router not found. */ - return -1; -} - -/** - * Create a new entry for a default router. - * - * @param router_addr the IPv6 address of the router - * @param netif the netif on which the router is connected, if known - * @return the index on the router table, or -1 if could not be created - */ -static s8_t -nd6_new_router(const ip6_addr_t *router_addr, struct netif *netif) -{ - s8_t router_index; - s8_t free_router_index; - s8_t neighbor_index; - - IP6_ADDR_ZONECHECK_NETIF(router_addr, netif); - - /* Do we have a neighbor entry for this router? */ - neighbor_index = nd6_find_neighbor_cache_entry(router_addr); - if (neighbor_index < 0) { - /* Create a neighbor entry for this router. */ - neighbor_index = nd6_new_neighbor_cache_entry(); - if (neighbor_index < 0) { - /* Could not create neighbor entry for this router. */ - return -1; - } - ip6_addr_set(&(neighbor_cache[neighbor_index].next_hop_address), router_addr); - neighbor_cache[neighbor_index].netif = netif; - neighbor_cache[neighbor_index].q = NULL; - neighbor_cache[neighbor_index].state = ND6_INCOMPLETE; - neighbor_cache[neighbor_index].counter.probes_sent = 1; - nd6_send_neighbor_cache_probe(&neighbor_cache[neighbor_index], ND6_SEND_FLAG_MULTICAST_DEST); - } - - /* Mark neighbor as router. */ - neighbor_cache[neighbor_index].isrouter = 1; - - /* Look for empty entry. */ - free_router_index = LWIP_ND6_NUM_ROUTERS; - for (router_index = LWIP_ND6_NUM_ROUTERS - 1; router_index >= 0; router_index--) { - /* check if router already exists (this is a special case for 2 netifs on the same subnet - - e.g. wifi and cable) */ - if(default_router_list[router_index].neighbor_entry == &(neighbor_cache[neighbor_index])){ - return router_index; - } - if (default_router_list[router_index].neighbor_entry == NULL) { - /* remember lowest free index to create a new entry */ - free_router_index = router_index; - } - } - if (free_router_index < LWIP_ND6_NUM_ROUTERS) { - default_router_list[free_router_index].neighbor_entry = &(neighbor_cache[neighbor_index]); - return free_router_index; - } - - /* Could not create a router entry. */ - - /* Mark neighbor entry as not-router. Entry might be useful as neighbor still. */ - neighbor_cache[neighbor_index].isrouter = 0; - - /* router not found. */ - return -1; -} - -/** - * Find the cached entry for an on-link prefix. - * - * @param prefix the IPv6 prefix that is on-link - * @param netif the netif on which the prefix is on-link - * @return the index on the prefix table, or -1 if not found - */ -static s8_t -nd6_get_onlink_prefix(const ip6_addr_t *prefix, struct netif *netif) -{ - s8_t i; - - /* Look for prefix in list. */ - for (i = 0; i < LWIP_ND6_NUM_PREFIXES; ++i) { - if ((ip6_addr_netcmp(&(prefix_list[i].prefix), prefix)) && - (prefix_list[i].netif == netif)) { - return i; - } - } - - /* Entry not available. */ - return -1; -} - -/** - * Creates a new entry for an on-link prefix. - * - * @param prefix the IPv6 prefix that is on-link - * @param netif the netif on which the prefix is on-link - * @return the index on the prefix table, or -1 if not created - */ -static s8_t -nd6_new_onlink_prefix(const ip6_addr_t *prefix, struct netif *netif) -{ - s8_t i; - - /* Create new entry. */ - for (i = 0; i < LWIP_ND6_NUM_PREFIXES; ++i) { - if ((prefix_list[i].netif == NULL) || - (prefix_list[i].invalidation_timer == 0)) { - /* Found empty prefix entry. */ - prefix_list[i].netif = netif; - ip6_addr_set(&(prefix_list[i].prefix), prefix); - return i; - } - } - - /* Entry not available. */ - return -1; -} - -/** - * Determine the next hop for a destination. Will determine if the - * destination is on-link, else a suitable on-link router is selected. - * - * The last entry index is cached for fast entry search. - * - * @param ip6addr the destination address - * @param netif the netif on which the packet will be sent - * @return the neighbor cache entry for the next hop, ERR_RTE if no - * suitable next hop was found, ERR_MEM if no cache entry - * could be created - */ -static s8_t -nd6_get_next_hop_entry(const ip6_addr_t *ip6addr, struct netif *netif) -{ -#ifdef LWIP_HOOK_ND6_GET_GW - const ip6_addr_t *next_hop_addr; -#endif /* LWIP_HOOK_ND6_GET_GW */ - s8_t i; - s16_t dst_idx; - - IP6_ADDR_ZONECHECK_NETIF(ip6addr, netif); - -#if LWIP_NETIF_HWADDRHINT - if (netif->hints != NULL) { - /* per-pcb cached entry was given */ - netif_addr_idx_t addr_hint = netif->hints->addr_hint; - if (addr_hint < LWIP_ND6_NUM_DESTINATIONS) { - nd6_cached_destination_index = addr_hint; - } - } -#endif /* LWIP_NETIF_HWADDRHINT */ - - /* Look for ip6addr in destination cache. */ - if (ip6_addr_cmp(ip6addr, &(destination_cache[nd6_cached_destination_index].destination_addr))) { - /* the cached entry index is the right one! */ - /* do nothing. */ - ND6_STATS_INC(nd6.cachehit); - } else { - /* Search destination cache. */ - dst_idx = nd6_find_destination_cache_entry(ip6addr); - if (dst_idx >= 0) { - /* found destination entry. make it our new cached index. */ - LWIP_ASSERT("type overflow", (size_t)dst_idx < NETIF_ADDR_IDX_MAX); - nd6_cached_destination_index = (netif_addr_idx_t)dst_idx; - } else { - /* Not found. Create a new destination entry. */ - dst_idx = nd6_new_destination_cache_entry(); - if (dst_idx >= 0) { - /* got new destination entry. make it our new cached index. */ - LWIP_ASSERT("type overflow", (size_t)dst_idx < NETIF_ADDR_IDX_MAX); - nd6_cached_destination_index = (netif_addr_idx_t)dst_idx; - } else { - /* Could not create a destination cache entry. */ - return ERR_MEM; - } - - /* Copy dest address to destination cache. */ - ip6_addr_set(&(destination_cache[nd6_cached_destination_index].destination_addr), ip6addr); - - /* Now find the next hop. is it a neighbor? */ - if (ip6_addr_islinklocal(ip6addr) || - nd6_is_prefix_in_netif(ip6addr, netif)) { - /* Destination in local link. */ - destination_cache[nd6_cached_destination_index].pmtu = netif_mtu6(netif); - ip6_addr_copy(destination_cache[nd6_cached_destination_index].next_hop_addr, destination_cache[nd6_cached_destination_index].destination_addr); -#ifdef LWIP_HOOK_ND6_GET_GW - } else if ((next_hop_addr = LWIP_HOOK_ND6_GET_GW(netif, ip6addr)) != NULL) { - /* Next hop for destination provided by hook function. */ - destination_cache[nd6_cached_destination_index].pmtu = netif->mtu; - ip6_addr_set(&destination_cache[nd6_cached_destination_index].next_hop_addr, next_hop_addr); -#endif /* LWIP_HOOK_ND6_GET_GW */ - } else { - /* We need to select a router. */ - i = nd6_select_router(ip6addr, netif); - if (i < 0) { - /* No router found. */ - ip6_addr_set_any(&(destination_cache[nd6_cached_destination_index].destination_addr)); - return ERR_RTE; - } - destination_cache[nd6_cached_destination_index].pmtu = netif_mtu6(netif); /* Start with netif mtu, correct through ICMPv6 if necessary */ - ip6_addr_copy(destination_cache[nd6_cached_destination_index].next_hop_addr, default_router_list[i].neighbor_entry->next_hop_address); - } - } - } - -#if LWIP_NETIF_HWADDRHINT - if (netif->hints != NULL) { - /* per-pcb cached entry was given */ - netif->hints->addr_hint = nd6_cached_destination_index; - } -#endif /* LWIP_NETIF_HWADDRHINT */ - - /* Look in neighbor cache for the next-hop address. */ - if (ip6_addr_cmp(&(destination_cache[nd6_cached_destination_index].next_hop_addr), - &(neighbor_cache[nd6_cached_neighbor_index].next_hop_address))) { - /* Cache hit. */ - /* Do nothing. */ - ND6_STATS_INC(nd6.cachehit); - } else { - i = nd6_find_neighbor_cache_entry(&(destination_cache[nd6_cached_destination_index].next_hop_addr)); - if (i >= 0) { - /* Found a matching record, make it new cached entry. */ - nd6_cached_neighbor_index = i; - } else { - /* Neighbor not in cache. Make a new entry. */ - i = nd6_new_neighbor_cache_entry(); - if (i >= 0) { - /* got new neighbor entry. make it our new cached index. */ - nd6_cached_neighbor_index = i; - } else { - /* Could not create a neighbor cache entry. */ - return ERR_MEM; - } - - /* Initialize fields. */ - ip6_addr_copy(neighbor_cache[i].next_hop_address, - destination_cache[nd6_cached_destination_index].next_hop_addr); - neighbor_cache[i].isrouter = 0; - neighbor_cache[i].netif = netif; - neighbor_cache[i].state = ND6_INCOMPLETE; - neighbor_cache[i].counter.probes_sent = 1; - nd6_send_neighbor_cache_probe(&neighbor_cache[i], ND6_SEND_FLAG_MULTICAST_DEST); - } - } - - /* Reset this destination's age. */ - destination_cache[nd6_cached_destination_index].age = 0; - - return nd6_cached_neighbor_index; -} - -/** - * Queue a packet for a neighbor. - * - * @param neighbor_index the index in the neighbor cache table - * @param q packet to be queued - * @return ERR_OK if succeeded, ERR_MEM if out of memory - */ -static err_t -nd6_queue_packet(s8_t neighbor_index, struct pbuf *q) -{ - err_t result = ERR_MEM; - struct pbuf *p; - int copy_needed = 0; -#if LWIP_ND6_QUEUEING - struct nd6_q_entry *new_entry, *r; -#endif /* LWIP_ND6_QUEUEING */ - - if ((neighbor_index < 0) || (neighbor_index >= LWIP_ND6_NUM_NEIGHBORS)) { - return ERR_ARG; - } - - /* IF q includes a pbuf that must be copied, we have to copy the whole chain - * into a new PBUF_RAM. See the definition of PBUF_NEEDS_COPY for details. */ - p = q; - while (p) { - if (PBUF_NEEDS_COPY(p)) { - copy_needed = 1; - break; - } - p = p->next; - } - if (copy_needed) { - /* copy the whole packet into new pbufs */ - p = pbuf_clone(PBUF_LINK, PBUF_RAM, q); - while ((p == NULL) && (neighbor_cache[neighbor_index].q != NULL)) { - /* Free oldest packet (as per RFC recommendation) */ -#if LWIP_ND6_QUEUEING - r = neighbor_cache[neighbor_index].q; - neighbor_cache[neighbor_index].q = r->next; - r->next = NULL; - nd6_free_q(r); -#else /* LWIP_ND6_QUEUEING */ - pbuf_free(neighbor_cache[neighbor_index].q); - neighbor_cache[neighbor_index].q = NULL; -#endif /* LWIP_ND6_QUEUEING */ - p = pbuf_clone(PBUF_LINK, PBUF_RAM, q); - } - } else { - /* referencing the old pbuf is enough */ - p = q; - pbuf_ref(p); - } - /* packet was copied/ref'd? */ - if (p != NULL) { - /* queue packet ... */ -#if LWIP_ND6_QUEUEING - /* allocate a new nd6 queue entry */ - new_entry = (struct nd6_q_entry *)memp_malloc(MEMP_ND6_QUEUE); - if ((new_entry == NULL) && (neighbor_cache[neighbor_index].q != NULL)) { - /* Free oldest packet (as per RFC recommendation) */ - r = neighbor_cache[neighbor_index].q; - neighbor_cache[neighbor_index].q = r->next; - r->next = NULL; - nd6_free_q(r); - new_entry = (struct nd6_q_entry *)memp_malloc(MEMP_ND6_QUEUE); - } - if (new_entry != NULL) { - new_entry->next = NULL; - new_entry->p = p; - if (neighbor_cache[neighbor_index].q != NULL) { - /* queue was already existent, append the new entry to the end */ - r = neighbor_cache[neighbor_index].q; - while (r->next != NULL) { - r = r->next; - } - r->next = new_entry; - } else { - /* queue did not exist, first item in queue */ - neighbor_cache[neighbor_index].q = new_entry; - } - LWIP_DEBUGF(LWIP_DBG_TRACE, ("ipv6: queued packet %p on neighbor entry %"S16_F"\n", (void *)p, (s16_t)neighbor_index)); - result = ERR_OK; - } else { - /* the pool MEMP_ND6_QUEUE is empty */ - pbuf_free(p); - LWIP_DEBUGF(LWIP_DBG_TRACE, ("ipv6: could not queue a copy of packet %p (out of memory)\n", (void *)p)); - /* { result == ERR_MEM } through initialization */ - } -#else /* LWIP_ND6_QUEUEING */ - /* Queue a single packet. If an older packet is already queued, free it as per RFC. */ - if (neighbor_cache[neighbor_index].q != NULL) { - pbuf_free(neighbor_cache[neighbor_index].q); - } - neighbor_cache[neighbor_index].q = p; - LWIP_DEBUGF(LWIP_DBG_TRACE, ("ipv6: queued packet %p on neighbor entry %"S16_F"\n", (void *)p, (s16_t)neighbor_index)); - result = ERR_OK; -#endif /* LWIP_ND6_QUEUEING */ - } else { - LWIP_DEBUGF(LWIP_DBG_TRACE, ("ipv6: could not queue a copy of packet %p (out of memory)\n", (void *)q)); - /* { result == ERR_MEM } through initialization */ - } - - return result; -} - -#if LWIP_ND6_QUEUEING -/** - * Free a complete queue of nd6 q entries - * - * @param q a queue of nd6_q_entry to free - */ -static void -nd6_free_q(struct nd6_q_entry *q) -{ - struct nd6_q_entry *r; - LWIP_ASSERT("q != NULL", q != NULL); - LWIP_ASSERT("q->p != NULL", q->p != NULL); - while (q) { - r = q; - q = q->next; - LWIP_ASSERT("r->p != NULL", (r->p != NULL)); - pbuf_free(r->p); - memp_free(MEMP_ND6_QUEUE, r); - } -} -#endif /* LWIP_ND6_QUEUEING */ - -/** - * Send queued packets for a neighbor - * - * @param i the neighbor to send packets to - */ -static void -nd6_send_q(s8_t i) -{ - struct ip6_hdr *ip6hdr; - ip6_addr_t dest; -#if LWIP_ND6_QUEUEING - struct nd6_q_entry *q; -#endif /* LWIP_ND6_QUEUEING */ - - if ((i < 0) || (i >= LWIP_ND6_NUM_NEIGHBORS)) { - return; - } - -#if LWIP_ND6_QUEUEING - while (neighbor_cache[i].q != NULL) { - /* remember first in queue */ - q = neighbor_cache[i].q; - /* pop first item off the queue */ - neighbor_cache[i].q = q->next; - /* Get ipv6 header. */ - ip6hdr = (struct ip6_hdr *)(q->p->payload); - /* Create an aligned copy. */ - ip6_addr_copy_from_packed(dest, ip6hdr->dest); - /* Restore the zone, if applicable. */ - ip6_addr_assign_zone(&dest, IP6_UNKNOWN, neighbor_cache[i].netif); - /* send the queued IPv6 packet */ - (neighbor_cache[i].netif)->output_ip6(neighbor_cache[i].netif, q->p, &dest); - /* free the queued IP packet */ - pbuf_free(q->p); - /* now queue entry can be freed */ - memp_free(MEMP_ND6_QUEUE, q); - } -#else /* LWIP_ND6_QUEUEING */ - if (neighbor_cache[i].q != NULL) { - /* Get ipv6 header. */ - ip6hdr = (struct ip6_hdr *)(neighbor_cache[i].q->payload); - /* Create an aligned copy. */ - ip6_addr_copy_from_packed(dest, ip6hdr->dest); - /* Restore the zone, if applicable. */ - ip6_addr_assign_zone(&dest, IP6_UNKNOWN, neighbor_cache[i].netif); - /* send the queued IPv6 packet */ - (neighbor_cache[i].netif)->output_ip6(neighbor_cache[i].netif, neighbor_cache[i].q, &dest); - /* free the queued IP packet */ - pbuf_free(neighbor_cache[i].q); - neighbor_cache[i].q = NULL; - } -#endif /* LWIP_ND6_QUEUEING */ -} - -/** - * A packet is to be transmitted to a specific IPv6 destination on a specific - * interface. Check if we can find the hardware address of the next hop to use - * for the packet. If so, give the hardware address to the caller, which should - * use it to send the packet right away. Otherwise, enqueue the packet for - * later transmission while looking up the hardware address, if possible. - * - * As such, this function returns one of three different possible results: - * - * - ERR_OK with a non-NULL 'hwaddrp': the caller should send the packet now. - * - ERR_OK with a NULL 'hwaddrp': the packet has been enqueued for later. - * - not ERR_OK: something went wrong; forward the error upward in the stack. - * - * @param netif The lwIP network interface on which the IP packet will be sent. - * @param q The pbuf(s) containing the IP packet to be sent. - * @param ip6addr The destination IPv6 address of the packet. - * @param hwaddrp On success, filled with a pointer to a HW address or NULL (meaning - * the packet has been queued). - * @return - * - ERR_OK on success, ERR_RTE if no route was found for the packet, - * or ERR_MEM if low memory conditions prohibit sending the packet at all. - */ -err_t -nd6_get_next_hop_addr_or_queue(struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr, const u8_t **hwaddrp) -{ - s8_t i; - - /* Get next hop record. */ - i = nd6_get_next_hop_entry(ip6addr, netif); - if (i < 0) { - /* failed to get a next hop neighbor record. */ - return i; - } - - /* Now that we have a destination record, send or queue the packet. */ - if (neighbor_cache[i].state == ND6_STALE) { - /* Switch to delay state. */ - neighbor_cache[i].state = ND6_DELAY; - neighbor_cache[i].counter.delay_time = LWIP_ND6_DELAY_FIRST_PROBE_TIME / ND6_TMR_INTERVAL; - } - /* @todo should we send or queue if PROBE? send for now, to let unicast NS pass. */ - if ((neighbor_cache[i].state == ND6_REACHABLE) || - (neighbor_cache[i].state == ND6_DELAY) || - (neighbor_cache[i].state == ND6_PROBE)) { - - /* Tell the caller to send out the packet now. */ - *hwaddrp = neighbor_cache[i].lladdr; - return ERR_OK; - } - - /* We should queue packet on this interface. */ - *hwaddrp = NULL; - return nd6_queue_packet(i, q); -} - - -/** - * Get the Path MTU for a destination. - * - * @param ip6addr the destination address - * @param netif the netif on which the packet will be sent - * @return the Path MTU, if known, or the netif default MTU - */ -u16_t -nd6_get_destination_mtu(const ip6_addr_t *ip6addr, struct netif *netif) -{ - s16_t i; - - i = nd6_find_destination_cache_entry(ip6addr); - if (i >= 0) { - if (destination_cache[i].pmtu > 0) { - return destination_cache[i].pmtu; - } - } - - if (netif != NULL) { - return netif_mtu6(netif); - } - - return 1280; /* Minimum MTU */ -} - - -#if LWIP_ND6_TCP_REACHABILITY_HINTS -/** - * Provide the Neighbor discovery process with a hint that a - * destination is reachable. Called by tcp_receive when ACKs are - * received or sent (as per RFC). This is useful to avoid sending - * NS messages every 30 seconds. - * - * @param ip6addr the destination address which is know to be reachable - * by an upper layer protocol (TCP) - */ -void -nd6_reachability_hint(const ip6_addr_t *ip6addr) -{ - s8_t i; - s16_t dst_idx; - - /* Find destination in cache. */ - if (ip6_addr_cmp(ip6addr, &(destination_cache[nd6_cached_destination_index].destination_addr))) { - dst_idx = nd6_cached_destination_index; - ND6_STATS_INC(nd6.cachehit); - } else { - dst_idx = nd6_find_destination_cache_entry(ip6addr); - } - if (dst_idx < 0) { - return; - } - - /* Find next hop neighbor in cache. */ - if (ip6_addr_cmp(&(destination_cache[dst_idx].next_hop_addr), &(neighbor_cache[nd6_cached_neighbor_index].next_hop_address))) { - i = nd6_cached_neighbor_index; - ND6_STATS_INC(nd6.cachehit); - } else { - i = nd6_find_neighbor_cache_entry(&(destination_cache[dst_idx].next_hop_addr)); - } - if (i < 0) { - return; - } - - /* For safety: don't set as reachable if we don't have a LL address yet. Misuse protection. */ - if (neighbor_cache[i].state == ND6_INCOMPLETE || neighbor_cache[i].state == ND6_NO_ENTRY) { - return; - } - - /* Set reachability state. */ - neighbor_cache[i].state = ND6_REACHABLE; - neighbor_cache[i].counter.reachable_time = reachable_time; -} -#endif /* LWIP_ND6_TCP_REACHABILITY_HINTS */ - -/** - * Remove all prefix, neighbor_cache and router entries of the specified netif. - * - * @param netif points to a network interface - */ -void -nd6_cleanup_netif(struct netif *netif) -{ - u8_t i; - s8_t router_index; - for (i = 0; i < LWIP_ND6_NUM_PREFIXES; i++) { - if (prefix_list[i].netif == netif) { - prefix_list[i].netif = NULL; - } - } - for (i = 0; i < LWIP_ND6_NUM_NEIGHBORS; i++) { - if (neighbor_cache[i].netif == netif) { - for (router_index = 0; router_index < LWIP_ND6_NUM_ROUTERS; router_index++) { - if (default_router_list[router_index].neighbor_entry == &neighbor_cache[i]) { - default_router_list[router_index].neighbor_entry = NULL; - default_router_list[router_index].flags = 0; - } - } - neighbor_cache[i].isrouter = 0; - nd6_free_neighbor_cache_entry(i); - } - } - /* Clear the destination cache, since many entries may now have become - * invalid for one of several reasons. As destination cache entries have no - * netif association, use a sledgehammer approach (this can be improved). */ - nd6_clear_destination_cache(); -} - -#if LWIP_IPV6_MLD -/** - * The state of a local IPv6 address entry is about to change. If needed, join - * or leave the solicited-node multicast group for the address. - * - * @param netif The netif that owns the address. - * @param addr_idx The index of the address. - * @param new_state The new (IP6_ADDR_) state for the address. - */ -void -nd6_adjust_mld_membership(struct netif *netif, s8_t addr_idx, u8_t new_state) -{ - u8_t old_state, old_member, new_member; - - old_state = netif_ip6_addr_state(netif, addr_idx); - - /* Determine whether we were, and should be, a member of the solicited-node - * multicast group for this address. For tentative addresses, the group is - * not joined until the address enters the TENTATIVE_1 (or VALID) state. */ - old_member = (old_state != IP6_ADDR_INVALID && old_state != IP6_ADDR_DUPLICATED && old_state != IP6_ADDR_TENTATIVE); - new_member = (new_state != IP6_ADDR_INVALID && new_state != IP6_ADDR_DUPLICATED && new_state != IP6_ADDR_TENTATIVE); - - if (old_member != new_member) { - ip6_addr_set_solicitednode(&multicast_address, netif_ip6_addr(netif, addr_idx)->addr[3]); - ip6_addr_assign_zone(&multicast_address, IP6_MULTICAST, netif); - - if (new_member) { - mld6_joingroup_netif(netif, &multicast_address); - } else { - mld6_leavegroup_netif(netif, &multicast_address); - } - } -} -#endif /* LWIP_IPV6_MLD */ - -/** Netif was added, set up, or reconnected (link up) */ -void -nd6_restart_netif(struct netif *netif) -{ -#if LWIP_IPV6_SEND_ROUTER_SOLICIT - /* Send Router Solicitation messages (see RFC 4861, ch. 6.3.7). */ - netif->rs_count = LWIP_ND6_MAX_MULTICAST_SOLICIT; -#endif /* LWIP_IPV6_SEND_ROUTER_SOLICIT */ -} - -#endif /* LWIP_IPV6 */ diff --git a/Middlewares/Third_Party/LwIP/src/core/mem.c b/Middlewares/Third_Party/LwIP/src/core/mem.c deleted file mode 100644 index 315fb3c..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/mem.c +++ /dev/null @@ -1,1017 +0,0 @@ -/** - * @file - * Dynamic memory manager - * - * This is a lightweight replacement for the standard C library malloc(). - * - * If you want to use the standard C library malloc() instead, define - * MEM_LIBC_MALLOC to 1 in your lwipopts.h - * - * To let mem_malloc() use pools (prevents fragmentation and is much faster than - * a heap but might waste some memory), define MEM_USE_POOLS to 1, define - * MEMP_USE_CUSTOM_POOLS to 1 and create a file "lwippools.h" that includes a list - * of pools like this (more pools can be added between _START and _END): - * - * Define three pools with sizes 256, 512, and 1512 bytes - * LWIP_MALLOC_MEMPOOL_START - * LWIP_MALLOC_MEMPOOL(20, 256) - * LWIP_MALLOC_MEMPOOL(10, 512) - * LWIP_MALLOC_MEMPOOL(5, 1512) - * LWIP_MALLOC_MEMPOOL_END - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * Simon Goldschmidt - * - */ - -#include "lwip/opt.h" -#include "lwip/mem.h" -#include "lwip/def.h" -#include "lwip/sys.h" -#include "lwip/stats.h" -#include "lwip/err.h" - -#include - -#if MEM_LIBC_MALLOC -#include /* for malloc()/free() */ -#endif - -/* This is overridable for tests only... */ -#ifndef LWIP_MEM_ILLEGAL_FREE -#define LWIP_MEM_ILLEGAL_FREE(msg) LWIP_ASSERT(msg, 0) -#endif - -#define MEM_STATS_INC_LOCKED(x) SYS_ARCH_LOCKED(MEM_STATS_INC(x)) -#define MEM_STATS_INC_USED_LOCKED(x, y) SYS_ARCH_LOCKED(MEM_STATS_INC_USED(x, y)) -#define MEM_STATS_DEC_USED_LOCKED(x, y) SYS_ARCH_LOCKED(MEM_STATS_DEC_USED(x, y)) - -#if MEM_OVERFLOW_CHECK -#define MEM_SANITY_OFFSET MEM_SANITY_REGION_BEFORE_ALIGNED -#define MEM_SANITY_OVERHEAD (MEM_SANITY_REGION_BEFORE_ALIGNED + MEM_SANITY_REGION_AFTER_ALIGNED) -#else -#define MEM_SANITY_OFFSET 0 -#define MEM_SANITY_OVERHEAD 0 -#endif - -#if MEM_OVERFLOW_CHECK || MEMP_OVERFLOW_CHECK -/** - * Check if a mep element was victim of an overflow or underflow - * (e.g. the restricted area after/before it has been altered) - * - * @param p the mem element to check - * @param size allocated size of the element - * @param descr1 description of the element source shown on error - * @param descr2 description of the element source shown on error - */ -void -mem_overflow_check_raw(void *p, size_t size, const char *descr1, const char *descr2) -{ -#if MEM_SANITY_REGION_AFTER_ALIGNED || MEM_SANITY_REGION_BEFORE_ALIGNED - u16_t k; - u8_t *m; - -#if MEM_SANITY_REGION_AFTER_ALIGNED > 0 - m = (u8_t *)p + size; - for (k = 0; k < MEM_SANITY_REGION_AFTER_ALIGNED; k++) { - if (m[k] != 0xcd) { - char errstr[128]; - snprintf(errstr, sizeof(errstr), "detected mem overflow in %s%s", descr1, descr2); - LWIP_ASSERT(errstr, 0); - } - } -#endif /* MEM_SANITY_REGION_AFTER_ALIGNED > 0 */ - -#if MEM_SANITY_REGION_BEFORE_ALIGNED > 0 - m = (u8_t *)p - MEM_SANITY_REGION_BEFORE_ALIGNED; - for (k = 0; k < MEM_SANITY_REGION_BEFORE_ALIGNED; k++) { - if (m[k] != 0xcd) { - char errstr[128]; - snprintf(errstr, sizeof(errstr), "detected mem underflow in %s%s", descr1, descr2); - LWIP_ASSERT(errstr, 0); - } - } -#endif /* MEM_SANITY_REGION_BEFORE_ALIGNED > 0 */ -#else - LWIP_UNUSED_ARG(p); - LWIP_UNUSED_ARG(desc); - LWIP_UNUSED_ARG(descr); -#endif -} - -/** - * Initialize the restricted area of a mem element. - */ -void -mem_overflow_init_raw(void *p, size_t size) -{ -#if MEM_SANITY_REGION_BEFORE_ALIGNED > 0 || MEM_SANITY_REGION_AFTER_ALIGNED > 0 - u8_t *m; -#if MEM_SANITY_REGION_BEFORE_ALIGNED > 0 - m = (u8_t *)p - MEM_SANITY_REGION_BEFORE_ALIGNED; - memset(m, 0xcd, MEM_SANITY_REGION_BEFORE_ALIGNED); -#endif -#if MEM_SANITY_REGION_AFTER_ALIGNED > 0 - m = (u8_t *)p + size; - memset(m, 0xcd, MEM_SANITY_REGION_AFTER_ALIGNED); -#endif -#else /* MEM_SANITY_REGION_BEFORE_ALIGNED > 0 || MEM_SANITY_REGION_AFTER_ALIGNED > 0 */ - LWIP_UNUSED_ARG(p); - LWIP_UNUSED_ARG(desc); -#endif /* MEM_SANITY_REGION_BEFORE_ALIGNED > 0 || MEM_SANITY_REGION_AFTER_ALIGNED > 0 */ -} -#endif /* MEM_OVERFLOW_CHECK || MEMP_OVERFLOW_CHECK */ - -#if MEM_LIBC_MALLOC || MEM_USE_POOLS - -/** mem_init is not used when using pools instead of a heap or using - * C library malloc(). - */ -void -mem_init(void) -{ -} - -/** mem_trim is not used when using pools instead of a heap or using - * C library malloc(): we can't free part of a pool element and the stack - * support mem_trim() to return a different pointer - */ -void * -mem_trim(void *mem, mem_size_t size) -{ - LWIP_UNUSED_ARG(size); - return mem; -} -#endif /* MEM_LIBC_MALLOC || MEM_USE_POOLS */ - -#if MEM_LIBC_MALLOC -/* lwIP heap implemented using C library malloc() */ - -/* in case C library malloc() needs extra protection, - * allow these defines to be overridden. - */ -#ifndef mem_clib_free -#define mem_clib_free free -#endif -#ifndef mem_clib_malloc -#define mem_clib_malloc malloc -#endif -#ifndef mem_clib_calloc -#define mem_clib_calloc calloc -#endif - -#if LWIP_STATS && MEM_STATS -#define MEM_LIBC_STATSHELPER_SIZE LWIP_MEM_ALIGN_SIZE(sizeof(mem_size_t)) -#else -#define MEM_LIBC_STATSHELPER_SIZE 0 -#endif - -/** - * Allocate a block of memory with a minimum of 'size' bytes. - * - * @param size is the minimum size of the requested block in bytes. - * @return pointer to allocated memory or NULL if no free memory was found. - * - * Note that the returned value must always be aligned (as defined by MEM_ALIGNMENT). - */ -void * -mem_malloc(mem_size_t size) -{ - void *ret = mem_clib_malloc(size + MEM_LIBC_STATSHELPER_SIZE); - if (ret == NULL) { - MEM_STATS_INC_LOCKED(err); - } else { - LWIP_ASSERT("malloc() must return aligned memory", LWIP_MEM_ALIGN(ret) == ret); -#if LWIP_STATS && MEM_STATS - *(mem_size_t *)ret = size; - ret = (u8_t *)ret + MEM_LIBC_STATSHELPER_SIZE; - MEM_STATS_INC_USED_LOCKED(used, size); -#endif - } - return ret; -} - -/** Put memory back on the heap - * - * @param rmem is the pointer as returned by a previous call to mem_malloc() - */ -void -mem_free(void *rmem) -{ - LWIP_ASSERT("rmem != NULL", (rmem != NULL)); - LWIP_ASSERT("rmem == MEM_ALIGN(rmem)", (rmem == LWIP_MEM_ALIGN(rmem))); -#if LWIP_STATS && MEM_STATS - rmem = (u8_t *)rmem - MEM_LIBC_STATSHELPER_SIZE; - MEM_STATS_DEC_USED_LOCKED(used, *(mem_size_t *)rmem); -#endif - mem_clib_free(rmem); -} - -#elif MEM_USE_POOLS - -/* lwIP heap implemented with different sized pools */ - -/** - * Allocate memory: determine the smallest pool that is big enough - * to contain an element of 'size' and get an element from that pool. - * - * @param size the size in bytes of the memory needed - * @return a pointer to the allocated memory or NULL if the pool is empty - */ -void * -mem_malloc(mem_size_t size) -{ - void *ret; - struct memp_malloc_helper *element = NULL; - memp_t poolnr; - mem_size_t required_size = size + LWIP_MEM_ALIGN_SIZE(sizeof(struct memp_malloc_helper)); - - for (poolnr = MEMP_POOL_FIRST; poolnr <= MEMP_POOL_LAST; poolnr = (memp_t)(poolnr + 1)) { - /* is this pool big enough to hold an element of the required size - plus a struct memp_malloc_helper that saves the pool this element came from? */ - if (required_size <= memp_pools[poolnr]->size) { - element = (struct memp_malloc_helper *)memp_malloc(poolnr); - if (element == NULL) { - /* No need to DEBUGF or ASSERT: This error is already taken care of in memp.c */ -#if MEM_USE_POOLS_TRY_BIGGER_POOL - /** Try a bigger pool if this one is empty! */ - if (poolnr < MEMP_POOL_LAST) { - continue; - } -#endif /* MEM_USE_POOLS_TRY_BIGGER_POOL */ - MEM_STATS_INC_LOCKED(err); - return NULL; - } - break; - } - } - if (poolnr > MEMP_POOL_LAST) { - LWIP_ASSERT("mem_malloc(): no pool is that big!", 0); - MEM_STATS_INC_LOCKED(err); - return NULL; - } - - /* save the pool number this element came from */ - element->poolnr = poolnr; - /* and return a pointer to the memory directly after the struct memp_malloc_helper */ - ret = (u8_t *)element + LWIP_MEM_ALIGN_SIZE(sizeof(struct memp_malloc_helper)); - -#if MEMP_OVERFLOW_CHECK || (LWIP_STATS && MEM_STATS) - /* truncating to u16_t is safe because struct memp_desc::size is u16_t */ - element->size = (u16_t)size; - MEM_STATS_INC_USED_LOCKED(used, element->size); -#endif /* MEMP_OVERFLOW_CHECK || (LWIP_STATS && MEM_STATS) */ -#if MEMP_OVERFLOW_CHECK - /* initialize unused memory (diff between requested size and selected pool's size) */ - memset((u8_t *)ret + size, 0xcd, memp_pools[poolnr]->size - size); -#endif /* MEMP_OVERFLOW_CHECK */ - return ret; -} - -/** - * Free memory previously allocated by mem_malloc. Loads the pool number - * and calls memp_free with that pool number to put the element back into - * its pool - * - * @param rmem the memory element to free - */ -void -mem_free(void *rmem) -{ - struct memp_malloc_helper *hmem; - - LWIP_ASSERT("rmem != NULL", (rmem != NULL)); - LWIP_ASSERT("rmem == MEM_ALIGN(rmem)", (rmem == LWIP_MEM_ALIGN(rmem))); - - /* get the original struct memp_malloc_helper */ - /* cast through void* to get rid of alignment warnings */ - hmem = (struct memp_malloc_helper *)(void *)((u8_t *)rmem - LWIP_MEM_ALIGN_SIZE(sizeof(struct memp_malloc_helper))); - - LWIP_ASSERT("hmem != NULL", (hmem != NULL)); - LWIP_ASSERT("hmem == MEM_ALIGN(hmem)", (hmem == LWIP_MEM_ALIGN(hmem))); - LWIP_ASSERT("hmem->poolnr < MEMP_MAX", (hmem->poolnr < MEMP_MAX)); - - MEM_STATS_DEC_USED_LOCKED(used, hmem->size); -#if MEMP_OVERFLOW_CHECK - { - u16_t i; - LWIP_ASSERT("MEM_USE_POOLS: invalid chunk size", - hmem->size <= memp_pools[hmem->poolnr]->size); - /* check that unused memory remained untouched (diff between requested size and selected pool's size) */ - for (i = hmem->size; i < memp_pools[hmem->poolnr]->size; i++) { - u8_t data = *((u8_t *)rmem + i); - LWIP_ASSERT("MEM_USE_POOLS: mem overflow detected", data == 0xcd); - } - } -#endif /* MEMP_OVERFLOW_CHECK */ - - /* and put it in the pool we saved earlier */ - memp_free(hmem->poolnr, hmem); -} - -#else /* MEM_USE_POOLS */ -/* lwIP replacement for your libc malloc() */ - -/** - * The heap is made up as a list of structs of this type. - * This does not have to be aligned since for getting its size, - * we only use the macro SIZEOF_STRUCT_MEM, which automatically aligns. - */ -struct mem { - /** index (-> ram[next]) of the next struct */ - mem_size_t next; - /** index (-> ram[prev]) of the previous struct */ - mem_size_t prev; - /** 1: this area is used; 0: this area is unused */ - u8_t used; -#if MEM_OVERFLOW_CHECK - /** this keeps track of the user allocation size for guard checks */ - mem_size_t user_size; -#endif -}; - -/** All allocated blocks will be MIN_SIZE bytes big, at least! - * MIN_SIZE can be overridden to suit your needs. Smaller values save space, - * larger values could prevent too small blocks to fragment the RAM too much. */ -#ifndef MIN_SIZE -#define MIN_SIZE 12 -#endif /* MIN_SIZE */ -/* some alignment macros: we define them here for better source code layout */ -#define MIN_SIZE_ALIGNED LWIP_MEM_ALIGN_SIZE(MIN_SIZE) -#define SIZEOF_STRUCT_MEM LWIP_MEM_ALIGN_SIZE(sizeof(struct mem)) -#define MEM_SIZE_ALIGNED LWIP_MEM_ALIGN_SIZE(MEM_SIZE) - -/** If you want to relocate the heap to external memory, simply define - * LWIP_RAM_HEAP_POINTER as a void-pointer to that location. - * If so, make sure the memory at that location is big enough (see below on - * how that space is calculated). */ -#ifndef LWIP_RAM_HEAP_POINTER -/** the heap. we need one struct mem at the end and some room for alignment */ -LWIP_DECLARE_MEMORY_ALIGNED(ram_heap, MEM_SIZE_ALIGNED + (2U * SIZEOF_STRUCT_MEM)); -#define LWIP_RAM_HEAP_POINTER ram_heap -#endif /* LWIP_RAM_HEAP_POINTER */ - -/** pointer to the heap (ram_heap): for alignment, ram is now a pointer instead of an array */ -static u8_t *ram; -/** the last entry, always unused! */ -static struct mem *ram_end; - -/** concurrent access protection */ -#if !NO_SYS -static sys_mutex_t mem_mutex; -#endif - -#if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT - -static volatile u8_t mem_free_count; - -/* Allow mem_free from other (e.g. interrupt) context */ -#define LWIP_MEM_FREE_DECL_PROTECT() SYS_ARCH_DECL_PROTECT(lev_free) -#define LWIP_MEM_FREE_PROTECT() SYS_ARCH_PROTECT(lev_free) -#define LWIP_MEM_FREE_UNPROTECT() SYS_ARCH_UNPROTECT(lev_free) -#define LWIP_MEM_ALLOC_DECL_PROTECT() SYS_ARCH_DECL_PROTECT(lev_alloc) -#define LWIP_MEM_ALLOC_PROTECT() SYS_ARCH_PROTECT(lev_alloc) -#define LWIP_MEM_ALLOC_UNPROTECT() SYS_ARCH_UNPROTECT(lev_alloc) -#define LWIP_MEM_LFREE_VOLATILE volatile - -#else /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */ - -/* Protect the heap only by using a mutex */ -#define LWIP_MEM_FREE_DECL_PROTECT() -#define LWIP_MEM_FREE_PROTECT() sys_mutex_lock(&mem_mutex) -#define LWIP_MEM_FREE_UNPROTECT() sys_mutex_unlock(&mem_mutex) -/* mem_malloc is protected using mutex AND LWIP_MEM_ALLOC_PROTECT */ -#define LWIP_MEM_ALLOC_DECL_PROTECT() -#define LWIP_MEM_ALLOC_PROTECT() -#define LWIP_MEM_ALLOC_UNPROTECT() -#define LWIP_MEM_LFREE_VOLATILE - -#endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */ - -/** pointer to the lowest free block, this is used for faster search */ -static struct mem * LWIP_MEM_LFREE_VOLATILE lfree; - -#if MEM_SANITY_CHECK -static void mem_sanity(void); -#define MEM_SANITY() mem_sanity() -#else -#define MEM_SANITY() -#endif - -#if MEM_OVERFLOW_CHECK -static void -mem_overflow_init_element(struct mem *mem, mem_size_t user_size) -{ - void *p = (u8_t *)mem + SIZEOF_STRUCT_MEM + MEM_SANITY_OFFSET; - mem->user_size = user_size; - mem_overflow_init_raw(p, user_size); -} - -static void -mem_overflow_check_element(struct mem *mem) -{ - void *p = (u8_t *)mem + SIZEOF_STRUCT_MEM + MEM_SANITY_OFFSET; - mem_overflow_check_raw(p, mem->user_size, "heap", ""); -} -#else /* MEM_OVERFLOW_CHECK */ -#define mem_overflow_init_element(mem, size) -#define mem_overflow_check_element(mem) -#endif /* MEM_OVERFLOW_CHECK */ - -static struct mem * -ptr_to_mem(mem_size_t ptr) -{ - return (struct mem *)(void *)&ram[ptr]; -} - -static mem_size_t -mem_to_ptr(void *mem) -{ - return (mem_size_t)((u8_t *)mem - ram); -} - -/** - * "Plug holes" by combining adjacent empty struct mems. - * After this function is through, there should not exist - * one empty struct mem pointing to another empty struct mem. - * - * @param mem this points to a struct mem which just has been freed - * @internal this function is only called by mem_free() and mem_trim() - * - * This assumes access to the heap is protected by the calling function - * already. - */ -static void -plug_holes(struct mem *mem) -{ - struct mem *nmem; - struct mem *pmem; - - LWIP_ASSERT("plug_holes: mem >= ram", (u8_t *)mem >= ram); - LWIP_ASSERT("plug_holes: mem < ram_end", (u8_t *)mem < (u8_t *)ram_end); - LWIP_ASSERT("plug_holes: mem->used == 0", mem->used == 0); - - /* plug hole forward */ - LWIP_ASSERT("plug_holes: mem->next <= MEM_SIZE_ALIGNED", mem->next <= MEM_SIZE_ALIGNED); - - nmem = ptr_to_mem(mem->next); - if (mem != nmem && nmem->used == 0 && (u8_t *)nmem != (u8_t *)ram_end) { - /* if mem->next is unused and not end of ram, combine mem and mem->next */ - if (lfree == nmem) { - lfree = mem; - } - mem->next = nmem->next; - if (nmem->next != MEM_SIZE_ALIGNED) { - ptr_to_mem(nmem->next)->prev = mem_to_ptr(mem); - } - } - - /* plug hole backward */ - pmem = ptr_to_mem(mem->prev); - if (pmem != mem && pmem->used == 0) { - /* if mem->prev is unused, combine mem and mem->prev */ - if (lfree == mem) { - lfree = pmem; - } - pmem->next = mem->next; - if (mem->next != MEM_SIZE_ALIGNED) { - ptr_to_mem(mem->next)->prev = mem_to_ptr(pmem); - } - } -} - -/** - * Zero the heap and initialize start, end and lowest-free - */ -void -mem_init(void) -{ - struct mem *mem; - - 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); - /* initialize the start of the heap */ - mem = (struct mem *)(void *)ram; - mem->next = MEM_SIZE_ALIGNED; - mem->prev = 0; - mem->used = 0; - /* initialize the end of the heap */ - ram_end = ptr_to_mem(MEM_SIZE_ALIGNED); - ram_end->used = 1; - ram_end->next = MEM_SIZE_ALIGNED; - ram_end->prev = MEM_SIZE_ALIGNED; - MEM_SANITY(); - - /* initialize the lowest-free pointer to the start of the heap */ - lfree = (struct mem *)(void *)ram; - - MEM_STATS_AVAIL(avail, MEM_SIZE_ALIGNED); - - if (sys_mutex_new(&mem_mutex) != ERR_OK) { - LWIP_ASSERT("failed to create mem_mutex", 0); - } -} - -/* Check if a struct mem is correctly linked. - * If not, double-free is a possible reason. - */ -static int -mem_link_valid(struct mem *mem) -{ - struct mem *nmem, *pmem; - mem_size_t rmem_idx; - rmem_idx = mem_to_ptr(mem); - nmem = ptr_to_mem(mem->next); - pmem = ptr_to_mem(mem->prev); - if ((mem->next > MEM_SIZE_ALIGNED) || (mem->prev > MEM_SIZE_ALIGNED) || - ((mem->prev != rmem_idx) && (pmem->next != rmem_idx)) || - ((nmem != ram_end) && (nmem->prev != rmem_idx))) { - return 0; - } - return 1; -} - -#if MEM_SANITY_CHECK -static void -mem_sanity(void) -{ - struct mem *mem; - u8_t last_used; - - /* begin with first element here */ - mem = (struct mem *)ram; - LWIP_ASSERT("heap element used valid", (mem->used == 0) || (mem->used == 1)); - last_used = mem->used; - LWIP_ASSERT("heap element prev ptr valid", mem->prev == 0); - LWIP_ASSERT("heap element next ptr valid", mem->next <= MEM_SIZE_ALIGNED); - LWIP_ASSERT("heap element next ptr aligned", LWIP_MEM_ALIGN(ptr_to_mem(mem->next) == ptr_to_mem(mem->next))); - - /* check all elements before the end of the heap */ - for (mem = ptr_to_mem(mem->next); - ((u8_t *)mem > ram) && (mem < ram_end); - mem = ptr_to_mem(mem->next)) { - LWIP_ASSERT("heap element aligned", LWIP_MEM_ALIGN(mem) == mem); - LWIP_ASSERT("heap element prev ptr valid", mem->prev <= MEM_SIZE_ALIGNED); - LWIP_ASSERT("heap element next ptr valid", mem->next <= MEM_SIZE_ALIGNED); - LWIP_ASSERT("heap element prev ptr aligned", LWIP_MEM_ALIGN(ptr_to_mem(mem->prev) == ptr_to_mem(mem->prev))); - LWIP_ASSERT("heap element next ptr aligned", LWIP_MEM_ALIGN(ptr_to_mem(mem->next) == ptr_to_mem(mem->next))); - - if (last_used == 0) { - /* 2 unused elements in a row? */ - LWIP_ASSERT("heap element unused?", mem->used == 1); - } else { - LWIP_ASSERT("heap element unused member", (mem->used == 0) || (mem->used == 1)); - } - - LWIP_ASSERT("heap element link valid", mem_link_valid(mem)); - - /* used/unused altering */ - last_used = mem->used; - } - LWIP_ASSERT("heap end ptr sanity", mem == ptr_to_mem(MEM_SIZE_ALIGNED)); - LWIP_ASSERT("heap element used valid", mem->used == 1); - LWIP_ASSERT("heap element prev ptr valid", mem->prev == MEM_SIZE_ALIGNED); - LWIP_ASSERT("heap element next ptr valid", mem->next == MEM_SIZE_ALIGNED); -} -#endif /* MEM_SANITY_CHECK */ - -/** - * Put a struct mem back on the heap - * - * @param rmem is the data portion of a struct mem as returned by a previous - * call to mem_malloc() - */ -void -mem_free(void *rmem) -{ - struct mem *mem; - LWIP_MEM_FREE_DECL_PROTECT(); - - if (rmem == NULL) { - 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) { - LWIP_MEM_ILLEGAL_FREE("mem_free: sanity check alignment"); - 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); - return; - } - - /* 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)); - - if ((u8_t *)mem < ram || (u8_t *)rmem + MIN_SIZE_ALIGNED > (u8_t *)ram_end) { - LWIP_MEM_ILLEGAL_FREE("mem_free: illegal memory"); - LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: illegal memory\n")); - /* protect mem stats from concurrent access */ - MEM_STATS_INC_LOCKED(illegal); - return; - } -#if MEM_OVERFLOW_CHECK - mem_overflow_check_element(mem); -#endif - /* protect the heap from concurrent access */ - LWIP_MEM_FREE_PROTECT(); - /* mem has to be in a used state */ - if (!mem->used) { - LWIP_MEM_ILLEGAL_FREE("mem_free: illegal memory: double free"); - LWIP_MEM_FREE_UNPROTECT(); - 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); - return; - } - - if (!mem_link_valid(mem)) { - LWIP_MEM_ILLEGAL_FREE("mem_free: illegal memory: non-linked: double free"); - LWIP_MEM_FREE_UNPROTECT(); - 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); - return; - } - - /* mem is now unused. */ - mem->used = 0; - - if (mem < lfree) { - /* the newly freed struct is now the lowest */ - lfree = mem; - } - - 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); - 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(); -} - -/** - * Shrink memory returned by mem_malloc(). - * - * @param rmem pointer to memory allocated by mem_malloc the is to be shrinked - * @param new_size required size after shrinking (needs to be smaller than or - * equal to the previous size) - * @return for compatibility reasons: is always == rmem, at the moment - * 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) -{ - mem_size_t size, newsize; - mem_size_t ptr, ptr2; - struct mem *mem, *mem2; - /* 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); - if (newsize < MIN_SIZE_ALIGNED) { - /* every data block must be at least MIN_SIZE_ALIGNED long */ - newsize = MIN_SIZE_ALIGNED; - } -#if MEM_OVERFLOW_CHECK - newsize += MEM_SANITY_REGION_BEFORE_ALIGNED + MEM_SANITY_REGION_AFTER_ALIGNED; -#endif - if ((newsize > MEM_SIZE_ALIGNED) || (newsize < new_size)) { - return NULL; - } - - LWIP_ASSERT("mem_trim: legal memory", (u8_t *)rmem >= (u8_t *)ram && - (u8_t *)rmem < (u8_t *)ram_end); - - if ((u8_t *)rmem < (u8_t *)ram || (u8_t *)rmem >= (u8_t *)ram_end) { - LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_trim: illegal memory\n")); - /* protect mem stats from concurrent access */ - MEM_STATS_INC_LOCKED(illegal); - return rmem; - } - /* 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)); -#if MEM_OVERFLOW_CHECK - mem_overflow_check_element(mem); -#endif - /* ... and its offset pointer */ - ptr = mem_to_ptr(mem); - - size = (mem_size_t)((mem_size_t)(mem->next - ptr) - (SIZEOF_STRUCT_MEM + MEM_SANITY_OVERHEAD)); - LWIP_ASSERT("mem_trim can only shrink memory", newsize <= size); - if (newsize > size) { - /* not supported */ - return NULL; - } - if (newsize == size) { - /* No change in size, simply return */ - return rmem; - } - - /* protect the heap from concurrent access */ - LWIP_MEM_FREE_PROTECT(); - - mem2 = ptr_to_mem(mem->next); - if (mem2->used == 0) { - /* 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); - /* remember the old next pointer */ - next = mem2->next; - /* create new struct mem which is moved directly after the shrinked mem */ - ptr2 = (mem_size_t)(ptr + SIZEOF_STRUCT_MEM + newsize); - if (lfree == mem2) { - lfree = ptr_to_mem(ptr2); - } - mem2 = ptr_to_mem(ptr2); - mem2->used = 0; - /* restore the next pointer */ - mem2->next = next; - /* link it back to mem */ - mem2->prev = ptr; - /* link mem to it */ - mem->next = ptr2; - /* 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) { - ptr_to_mem(mem2->next)->prev = ptr2; - } - 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) { - /* Next struct is used but there's room for another struct mem with - * at least MIN_SIZE_ALIGNED of data. - * 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); - LWIP_ASSERT("invalid next ptr", mem->next != MEM_SIZE_ALIGNED); - mem2 = ptr_to_mem(ptr2); - if (mem2 < lfree) { - lfree = mem2; - } - mem2->used = 0; - mem2->next = mem->next; - mem2->prev = ptr; - mem->next = ptr2; - if (mem2->next != MEM_SIZE_ALIGNED) { - ptr_to_mem(mem2->next)->prev = ptr2; - } - MEM_STATS_DEC_USED(used, (size - newsize)); - /* the original mem->next is used, so no need to plug holes! */ - } - /* else { - next struct mem is used but size between mem and mem2 is not big enough - to create another struct mem - -> don't do anyhting. - -> the remaining space stays unused since it is too small - } */ -#if MEM_OVERFLOW_CHECK - mem_overflow_init_element(mem, new_size); -#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(); - return rmem; -} - -/** - * Allocate a block of memory with a minimum of 'size' bytes. - * - * @param size_in is the minimum size of the requested block in bytes. - * @return pointer to allocated memory or NULL if no free memory was found. - * - * Note that the returned value will always be aligned (as defined by MEM_ALIGNMENT). - */ -void * -mem_malloc(mem_size_t size_in) -{ - mem_size_t ptr, ptr2, size; - struct mem *mem, *mem2; -#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) { - return NULL; - } - - /* 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); - if (size < MIN_SIZE_ALIGNED) { - /* every data block must be at least MIN_SIZE_ALIGNED long */ - size = MIN_SIZE_ALIGNED; - } -#if MEM_OVERFLOW_CHECK - size += MEM_SANITY_REGION_BEFORE_ALIGNED + MEM_SANITY_REGION_AFTER_ALIGNED; -#endif - if ((size > MEM_SIZE_ALIGNED) || (size < size_in)) { - return NULL; - } - - /* protect the heap from concurrent access */ - sys_mutex_lock(&mem_mutex); - LWIP_MEM_ALLOC_PROTECT(); -#if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT - /* run as long as a mem_free disturbed mem_malloc or mem_trim */ - do { - local_mem_free_count = 0; -#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; - ptr = ptr_to_mem(ptr)->next) { - mem = ptr_to_mem(ptr); -#if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT - mem_free_count = 0; - LWIP_MEM_ALLOC_UNPROTECT(); - /* allow mem_free or mem_trim to run */ - LWIP_MEM_ALLOC_PROTECT(); - if (mem_free_count != 0) { - /* If mem_free or mem_trim have run, we have to restart since they - could have altered our current struct mem. */ - local_mem_free_count = 1; - break; - } -#endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */ - - if ((!mem->used) && - (mem->next - (ptr + SIZEOF_STRUCT_MEM)) >= size) { - /* 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)) { - /* (in addition to the above, we test if another struct mem (SIZEOF_STRUCT_MEM) containing - * at least MIN_SIZE_ALIGNED of data also fits in the 'user data space' of 'mem') - * -> split large block, create empty remainder, - * remainder must be large enough to contain MIN_SIZE_ALIGNED data: if - * mem->next - (ptr + (2*SIZEOF_STRUCT_MEM)) == size, - * 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); - LWIP_ASSERT("invalid next ptr",ptr2 != MEM_SIZE_ALIGNED); - /* create mem2 struct */ - mem2 = ptr_to_mem(ptr2); - mem2->used = 0; - mem2->next = mem->next; - mem2->prev = ptr; - /* and insert it between mem and mem->next */ - mem->next = ptr2; - mem->used = 1; - - if (mem2->next != MEM_SIZE_ALIGNED) { - ptr_to_mem(mem2->next)->prev = ptr2; - } - MEM_STATS_INC_USED(used, (size + SIZEOF_STRUCT_MEM)); - } else { - /* (a mem2 struct does no fit into the user data space of mem and mem->next will always - * be used at this point: if not we have 2 unused structs in a row, plug_holes should have - * 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; - 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) { - struct mem *cur = lfree; - /* Find next free block after mem and update lowest free pointer */ - while (cur->used && cur != ram_end) { -#if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT - mem_free_count = 0; - LWIP_MEM_ALLOC_UNPROTECT(); - /* prevent high interrupt latency... */ - LWIP_MEM_ALLOC_PROTECT(); - if (mem_free_count != 0) { - /* 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); - } - lfree = cur; - LWIP_ASSERT("mem_malloc: !lfree->used", ((lfree == ram_end) || (!lfree->used))); - } - LWIP_MEM_ALLOC_UNPROTECT(); - sys_mutex_unlock(&mem_mutex); - LWIP_ASSERT("mem_malloc: allocated memory not above ram_end.", - (mem_ptr_t)mem + SIZEOF_STRUCT_MEM + size <= (mem_ptr_t)ram_end); - LWIP_ASSERT("mem_malloc: allocated memory properly aligned.", - ((mem_ptr_t)mem + SIZEOF_STRUCT_MEM) % MEM_ALIGNMENT == 0); - LWIP_ASSERT("mem_malloc: sanity check alignment", - (((mem_ptr_t)mem) & (MEM_ALIGNMENT - 1)) == 0); - -#if MEM_OVERFLOW_CHECK - mem_overflow_init_element(mem, size_in); -#endif - MEM_SANITY(); - return (u8_t *)mem + SIZEOF_STRUCT_MEM + MEM_SANITY_OFFSET; - } - } -#if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT - /* 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); - LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("mem_malloc: could not allocate %"S16_F" bytes\n", (s16_t)size)); - return NULL; -} - -#endif /* MEM_USE_POOLS */ - -#if MEM_LIBC_MALLOC && (!LWIP_STATS || !MEM_STATS) -void * -mem_calloc(mem_size_t count, mem_size_t size) -{ - return mem_clib_calloc(count, size); -} - -#else /* MEM_LIBC_MALLOC && (!LWIP_STATS || !MEM_STATS) */ -/** - * Contiguously allocates enough space for count objects that are size bytes - * of memory each and returns a pointer to the allocated memory. - * - * The allocated memory is filled with bytes of value zero. - * - * @param count number of objects to allocate - * @param size size of the objects to allocate - * @return pointer to allocated memory / NULL pointer if there is an error - */ -void * -mem_calloc(mem_size_t count, mem_size_t size) -{ - void *p; - size_t alloc_size = (size_t)count * (size_t)size; - - if ((size_t)(mem_size_t)alloc_size != alloc_size) { - LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("mem_calloc: could not allocate %"SZT_F" bytes\n", alloc_size)); - return NULL; - } - - /* allocate 'count' objects of size 'size' */ - p = mem_malloc((mem_size_t)alloc_size); - if (p) { - /* zero the memory */ - memset(p, 0, alloc_size); - } - return p; -} -#endif /* MEM_LIBC_MALLOC && (!LWIP_STATS || !MEM_STATS) */ diff --git a/Middlewares/Third_Party/LwIP/src/core/memp.c b/Middlewares/Third_Party/LwIP/src/core/memp.c deleted file mode 100644 index 352ce5a..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/memp.c +++ /dev/null @@ -1,447 +0,0 @@ -/** - * @file - * Dynamic pool memory manager - * - * lwIP has dedicated pools for many structures (netconn, protocol control blocks, - * packet buffers, ...). All these pools are managed here. - * - * @defgroup mempool Memory pools - * @ingroup infrastructure - * Custom memory pools - - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -#include "lwip/opt.h" - -#include "lwip/memp.h" -#include "lwip/sys.h" -#include "lwip/stats.h" - -#include - -/* Make sure we include everything we need for size calculation required by memp_std.h */ -#include "lwip/pbuf.h" -#include "lwip/raw.h" -#include "lwip/udp.h" -#include "lwip/tcp.h" -#include "lwip/priv/tcp_priv.h" -#include "lwip/altcp.h" -#include "lwip/ip4_frag.h" -#include "lwip/netbuf.h" -#include "lwip/api.h" -#include "lwip/priv/tcpip_priv.h" -#include "lwip/priv/api_msg.h" -#include "lwip/priv/sockets_priv.h" -#include "lwip/etharp.h" -#include "lwip/igmp.h" -#include "lwip/timeouts.h" -/* needed by default MEMP_NUM_SYS_TIMEOUT */ -#include "netif/ppp/ppp_opts.h" -#include "lwip/netdb.h" -#include "lwip/dns.h" -#include "lwip/priv/nd6_priv.h" -#include "lwip/ip6_frag.h" -#include "lwip/mld6.h" - -#define LWIP_MEMPOOL(name,num,size,desc) LWIP_MEMPOOL_DECLARE(name,num,size,desc) -#include "lwip/priv/memp_std.h" - -const struct memp_desc *const memp_pools[MEMP_MAX] = { -#define LWIP_MEMPOOL(name,num,size,desc) &memp_ ## name, -#include "lwip/priv/memp_std.h" -}; - -#ifdef LWIP_HOOK_FILENAME -#include LWIP_HOOK_FILENAME -#endif - -#if MEMP_MEM_MALLOC && MEMP_OVERFLOW_CHECK >= 2 -#undef MEMP_OVERFLOW_CHECK -/* MEMP_OVERFLOW_CHECK >= 2 does not work with MEMP_MEM_MALLOC, use 1 instead */ -#define MEMP_OVERFLOW_CHECK 1 -#endif - -#if MEMP_SANITY_CHECK && !MEMP_MEM_MALLOC -/** - * Check that memp-lists don't form a circle, using "Floyd's cycle-finding algorithm". - */ -static int -memp_sanity(const struct memp_desc *desc) -{ - struct memp *t, *h; - - t = *desc->tab; - if (t != NULL) { - for (h = t->next; (t != NULL) && (h != NULL); t = t->next, - h = ((h->next != NULL) ? h->next->next : NULL)) { - if (t == h) { - return 0; - } - } - } - - return 1; -} -#endif /* MEMP_SANITY_CHECK && !MEMP_MEM_MALLOC */ - -#if MEMP_OVERFLOW_CHECK -/** - * Check if a memp element was victim of an overflow or underflow - * (e.g. the restricted area after/before it has been altered) - * - * @param p the memp element to check - * @param desc the pool p comes from - */ -static void -memp_overflow_check_element(struct memp *p, const struct memp_desc *desc) -{ - mem_overflow_check_raw((u8_t *)p + MEMP_SIZE, desc->size, "pool ", desc->desc); -} - -/** - * Initialize the restricted area of on memp element. - */ -static void -memp_overflow_init_element(struct memp *p, const struct memp_desc *desc) -{ - mem_overflow_init_raw((u8_t *)p + MEMP_SIZE, desc->size); -} - -#if MEMP_OVERFLOW_CHECK >= 2 -/** - * Do an overflow check for all elements in every pool. - * - * @see memp_overflow_check_element for a description of the check - */ -static void -memp_overflow_check_all(void) -{ - u16_t i, j; - struct memp *p; - SYS_ARCH_DECL_PROTECT(old_level); - SYS_ARCH_PROTECT(old_level); - - for (i = 0; i < MEMP_MAX; ++i) { - p = (struct memp *)LWIP_MEM_ALIGN(memp_pools[i]->base); - for (j = 0; j < memp_pools[i]->num; ++j) { - memp_overflow_check_element(p, memp_pools[i]); - p = LWIP_ALIGNMENT_CAST(struct memp *, ((u8_t *)p + MEMP_SIZE + memp_pools[i]->size + MEM_SANITY_REGION_AFTER_ALIGNED)); - } - } - SYS_ARCH_UNPROTECT(old_level); -} -#endif /* MEMP_OVERFLOW_CHECK >= 2 */ -#endif /* MEMP_OVERFLOW_CHECK */ - -/** - * Initialize custom memory pool. - * Related functions: memp_malloc_pool, memp_free_pool - * - * @param desc pool to initialize - */ -void -memp_init_pool(const struct memp_desc *desc) -{ -#if MEMP_MEM_MALLOC - LWIP_UNUSED_ARG(desc); -#else - int i; - struct memp *memp; - - *desc->tab = NULL; - memp = (struct memp *)LWIP_MEM_ALIGN(desc->base); -#if MEMP_MEM_INIT - /* force memset on pool memory */ - memset(memp, 0, (size_t)desc->num * (MEMP_SIZE + desc->size -#if MEMP_OVERFLOW_CHECK - + MEM_SANITY_REGION_AFTER_ALIGNED -#endif - )); -#endif - /* create a linked list of memp elements */ - for (i = 0; i < desc->num; ++i) { - memp->next = *desc->tab; - *desc->tab = memp; -#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 -#if MEMP_OVERFLOW_CHECK - + MEM_SANITY_REGION_AFTER_ALIGNED -#endif - ); - } -#if MEMP_STATS - desc->stats->avail = desc->num; -#endif /* MEMP_STATS */ -#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) */ -} - -/** - * Initializes lwIP built-in pools. - * Related functions: memp_malloc, memp_free - * - * Carves out memp_memory into linked lists for each pool-type. - */ -void -memp_init(void) -{ - u16_t i; - - /* for every pool: */ - for (i = 0; i < LWIP_ARRAYSIZE(memp_pools); i++) { - memp_init_pool(memp_pools[i]); - -#if LWIP_STATS && MEMP_STATS - lwip_stats.memp[i] = memp_pools[i]->stats; -#endif - } - -#if MEMP_OVERFLOW_CHECK >= 2 - /* check everything a first time to see if it worked */ - memp_overflow_check_all(); -#endif /* MEMP_OVERFLOW_CHECK >= 2 */ -} - -static void * -#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 -{ - struct memp *memp; - SYS_ARCH_DECL_PROTECT(old_level); - -#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); - - memp = *desc->tab; -#endif /* MEMP_MEM_MALLOC */ - - if (memp != NULL) { -#if !MEMP_MEM_MALLOC -#if MEMP_OVERFLOW_CHECK == 1 - memp_overflow_check_element(memp, desc); -#endif /* MEMP_OVERFLOW_CHECK */ - - *desc->tab = memp->next; -#if MEMP_OVERFLOW_CHECK - memp->next = NULL; -#endif /* MEMP_OVERFLOW_CHECK */ -#endif /* !MEMP_MEM_MALLOC */ -#if MEMP_OVERFLOW_CHECK - memp->file = file; - 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", - ((mem_ptr_t)memp % MEM_ALIGNMENT) == 0); -#if MEMP_STATS - desc->stats->used++; - if (desc->stats->used > desc->stats->max) { - desc->stats->max = desc->stats->used; - } -#endif - SYS_ARCH_UNPROTECT(old_level); - /* cast through u8_t* to get rid of alignment warnings */ - return ((u8_t *)memp + MEMP_SIZE); - } else { -#if MEMP_STATS - desc->stats->err++; -#endif - SYS_ARCH_UNPROTECT(old_level); - LWIP_DEBUGF(MEMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("memp_malloc: out of memory in pool %s\n", desc->desc)); - } - - return NULL; -} - -/** - * Get an element from a custom pool. - * - * @param desc the pool to get an element from - * - * @return a pointer to the allocated memory or a NULL pointer on error - */ -void * -#if !MEMP_OVERFLOW_CHECK -memp_malloc_pool(const struct memp_desc *desc) -#else -memp_malloc_pool_fn(const struct memp_desc *desc, const char *file, const int line) -#endif -{ - LWIP_ASSERT("invalid pool desc", desc != NULL); - if (desc == NULL) { - return NULL; - } - -#if !MEMP_OVERFLOW_CHECK - return do_memp_malloc_pool(desc); -#else - return do_memp_malloc_pool_fn(desc, file, line); -#endif -} - -/** - * Get an element from a specific pool. - * - * @param type the pool to get an element from - * - * @return a pointer to the allocated memory or a NULL pointer on error - */ -void * -#if !MEMP_OVERFLOW_CHECK -memp_malloc(memp_t type) -#else -memp_malloc_fn(memp_t type, const char *file, const int line) -#endif -{ - void *memp; - LWIP_ERROR("memp_malloc: type < MEMP_MAX", (type < MEMP_MAX), return NULL;); - -#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]); -#else - memp = do_memp_malloc_pool_fn(memp_pools[type], file, line); -#endif - - return memp; -} - -static void -do_memp_free_pool(const struct memp_desc *desc, void *mem) -{ - struct memp *memp; - SYS_ARCH_DECL_PROTECT(old_level); - - LWIP_ASSERT("memp_free: mem properly aligned", - ((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); - - SYS_ARCH_PROTECT(old_level); - -#if MEMP_OVERFLOW_CHECK == 1 - memp_overflow_check_element(memp, desc); -#endif /* MEMP_OVERFLOW_CHECK */ - -#if MEMP_STATS - desc->stats->used--; -#endif - -#if MEMP_MEM_MALLOC - LWIP_UNUSED_ARG(desc); - SYS_ARCH_UNPROTECT(old_level); - mem_free(memp); -#else /* MEMP_MEM_MALLOC */ - memp->next = *desc->tab; - *desc->tab = memp; - -#if MEMP_SANITY_CHECK - LWIP_ASSERT("memp sanity", memp_sanity(desc)); -#endif /* MEMP_SANITY_CHECK */ - - SYS_ARCH_UNPROTECT(old_level); -#endif /* !MEMP_MEM_MALLOC */ -} - -/** - * Put a custom pool element back into its pool. - * - * @param desc the pool where to put mem - * @param mem the memp element to free - */ -void -memp_free_pool(const struct memp_desc *desc, void *mem) -{ - LWIP_ASSERT("invalid pool desc", desc != NULL); - if ((desc == NULL) || (mem == NULL)) { - return; - } - - do_memp_free_pool(desc, mem); -} - -/** - * Put an element back into its pool. - * - * @param type the pool where to put mem - * @param mem the memp element to free - */ -void -memp_free(memp_t type, void *mem) -{ -#ifdef LWIP_HOOK_MEMP_AVAILABLE - struct memp *old_first; -#endif - - LWIP_ERROR("memp_free: type < MEMP_MAX", (type < MEMP_MAX), return;); - - if (mem == NULL) { - return; - } - -#if MEMP_OVERFLOW_CHECK >= 2 - memp_overflow_check_all(); -#endif /* MEMP_OVERFLOW_CHECK >= 2 */ - -#ifdef LWIP_HOOK_MEMP_AVAILABLE - old_first = *memp_pools[type]->tab; -#endif - - do_memp_free_pool(memp_pools[type], mem); - -#ifdef LWIP_HOOK_MEMP_AVAILABLE - if (old_first == NULL) { - LWIP_HOOK_MEMP_AVAILABLE(type); - } -#endif -} diff --git a/Middlewares/Third_Party/LwIP/src/core/netif.c b/Middlewares/Third_Party/LwIP/src/core/netif.c deleted file mode 100644 index 15200a2..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/netif.c +++ /dev/null @@ -1,1795 +0,0 @@ -/** - * @file - * lwIP network interface abstraction - * - * @defgroup netif Network interface (NETIF) - * @ingroup callbackstyle_api - * - * @defgroup netif_ip4 IPv4 address handling - * @ingroup netif - * - * @defgroup netif_ip6 IPv6 address handling - * @ingroup netif - * - * @defgroup netif_cd Client data handling - * Store data (void*) on a netif for application usage. - * @see @ref LWIP_NUM_NETIF_CLIENT_DATA - * @ingroup netif - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - */ - -#include "lwip/opt.h" - -#include /* memset */ -#include /* atoi */ - -#include "lwip/def.h" -#include "lwip/ip_addr.h" -#include "lwip/ip6_addr.h" -#include "lwip/netif.h" -#include "lwip/priv/tcp_priv.h" -#include "lwip/udp.h" -#include "lwip/priv/raw_priv.h" -#include "lwip/snmp.h" -#include "lwip/igmp.h" -#include "lwip/etharp.h" -#include "lwip/stats.h" -#include "lwip/sys.h" -#include "lwip/ip.h" -#if ENABLE_LOOPBACK -#if LWIP_NETIF_LOOPBACK_MULTITHREADING -#include "lwip/tcpip.h" -#endif /* LWIP_NETIF_LOOPBACK_MULTITHREADING */ -#endif /* ENABLE_LOOPBACK */ - -#include "netif/ethernet.h" - -#if LWIP_AUTOIP -#include "lwip/autoip.h" -#endif /* LWIP_AUTOIP */ -#if LWIP_DHCP -#include "lwip/dhcp.h" -#endif /* LWIP_DHCP */ -#if LWIP_IPV6_DHCP6 -#include "lwip/dhcp6.h" -#endif /* LWIP_IPV6_DHCP6 */ -#if LWIP_IPV6_MLD -#include "lwip/mld6.h" -#endif /* LWIP_IPV6_MLD */ -#if LWIP_IPV6 -#include "lwip/nd6.h" -#endif - -#if LWIP_NETIF_STATUS_CALLBACK -#define NETIF_STATUS_CALLBACK(n) do{ if (n->status_callback) { (n->status_callback)(n); }}while(0) -#else -#define NETIF_STATUS_CALLBACK(n) -#endif /* LWIP_NETIF_STATUS_CALLBACK */ - -#if LWIP_NETIF_LINK_CALLBACK -#define NETIF_LINK_CALLBACK(n) do{ if (n->link_callback) { (n->link_callback)(n); }}while(0) -#else -#define NETIF_LINK_CALLBACK(n) -#endif /* LWIP_NETIF_LINK_CALLBACK */ - -#if LWIP_NETIF_EXT_STATUS_CALLBACK -static netif_ext_callback_t *ext_callback; -#endif - -#if !LWIP_SINGLE_NETIF -struct netif *netif_list; -#endif /* !LWIP_SINGLE_NETIF */ -struct netif *netif_default; - -#define netif_index_to_num(index) ((index) - 1) -static u8_t netif_num; - -#if LWIP_NUM_NETIF_CLIENT_DATA > 0 -static u8_t netif_client_id; -#endif - -#define NETIF_REPORT_TYPE_IPV4 0x01 -#define NETIF_REPORT_TYPE_IPV6 0x02 -static void netif_issue_reports(struct netif *netif, u8_t report_type); - -#if LWIP_IPV6 -static err_t netif_null_output_ip6(struct netif *netif, struct pbuf *p, const ip6_addr_t *ipaddr); -#endif /* LWIP_IPV6 */ -#if LWIP_IPV4 -static err_t netif_null_output_ip4(struct netif *netif, struct pbuf *p, const ip4_addr_t *ipaddr); -#endif /* LWIP_IPV4 */ - -#if LWIP_HAVE_LOOPIF -#if LWIP_IPV4 -static err_t netif_loop_output_ipv4(struct netif *netif, struct pbuf *p, const ip4_addr_t *addr); -#endif -#if LWIP_IPV6 -static err_t netif_loop_output_ipv6(struct netif *netif, struct pbuf *p, const ip6_addr_t *addr); -#endif - - -static struct netif loop_netif; - -/** - * Initialize a lwip network interface structure for a loopback interface - * - * @param netif the lwip network interface structure for this loopif - * @return ERR_OK if the loopif is initialized - * ERR_MEM if private data couldn't be allocated - */ -static err_t -netif_loopif_init(struct netif *netif) -{ - LWIP_ASSERT("netif_loopif_init: invalid netif", netif != NULL); - - /* initialize the snmp variables and counters inside the struct netif - * ifSpeed: no assumption can be made! - */ - MIB2_INIT_NETIF(netif, snmp_ifType_softwareLoopback, 0); - - netif->name[0] = 'l'; - netif->name[1] = 'o'; -#if LWIP_IPV4 - netif->output = netif_loop_output_ipv4; -#endif -#if LWIP_IPV6 - netif->output_ip6 = netif_loop_output_ipv6; -#endif -#if LWIP_LOOPIF_MULTICAST - netif_set_flags(netif, NETIF_FLAG_IGMP); -#endif - NETIF_SET_CHECKSUM_CTRL(netif, NETIF_CHECKSUM_DISABLE_ALL); - return ERR_OK; -} -#endif /* LWIP_HAVE_LOOPIF */ - -void -netif_init(void) -{ -#if LWIP_HAVE_LOOPIF -#if LWIP_IPV4 -#define LOOPIF_ADDRINIT &loop_ipaddr, &loop_netmask, &loop_gw, - ip4_addr_t loop_ipaddr, loop_netmask, loop_gw; - IP4_ADDR(&loop_gw, 127, 0, 0, 1); - IP4_ADDR(&loop_ipaddr, 127, 0, 0, 1); - IP4_ADDR(&loop_netmask, 255, 0, 0, 0); -#else /* LWIP_IPV4 */ -#define LOOPIF_ADDRINIT -#endif /* LWIP_IPV4 */ - -#if NO_SYS - netif_add(&loop_netif, LOOPIF_ADDRINIT NULL, netif_loopif_init, ip_input); -#else /* NO_SYS */ - netif_add(&loop_netif, LOOPIF_ADDRINIT NULL, netif_loopif_init, tcpip_input); -#endif /* NO_SYS */ - -#if LWIP_IPV6 - IP_ADDR6_HOST(loop_netif.ip6_addr, 0, 0, 0, 0x00000001UL); - loop_netif.ip6_addr_state[0] = IP6_ADDR_VALID; -#endif /* LWIP_IPV6 */ - - netif_set_link_up(&loop_netif); - netif_set_up(&loop_netif); - -#endif /* LWIP_HAVE_LOOPIF */ -} - -/** - * @ingroup lwip_nosys - * Forwards a received packet for input processing with - * ethernet_input() or ip_input() depending on netif flags. - * Don't call directly, pass to netif_add() and call - * netif->input(). - * Only works if the netif driver correctly sets - * NETIF_FLAG_ETHARP and/or NETIF_FLAG_ETHERNET flag! - */ -err_t -netif_input(struct pbuf *p, struct netif *inp) -{ - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ASSERT("netif_input: invalid pbuf", p != NULL); - LWIP_ASSERT("netif_input: invalid netif", inp != NULL); - -#if LWIP_ETHERNET - if (inp->flags & (NETIF_FLAG_ETHARP | NETIF_FLAG_ETHERNET)) { - return ethernet_input(p, inp); - } else -#endif /* LWIP_ETHERNET */ - return ip_input(p, inp); -} - -/** - * @ingroup netif - * Add a network interface to the list of lwIP netifs. - * - * Same as @ref netif_add but without IPv4 addresses - */ -struct netif * -netif_add_noaddr(struct netif *netif, void *state, netif_init_fn init, netif_input_fn input) -{ - return netif_add(netif, -#if LWIP_IPV4 - NULL, NULL, NULL, -#endif /* LWIP_IPV4*/ - state, init, input); -} - -/** - * @ingroup netif - * Add a network interface to the list of lwIP netifs. - * - * @param netif a pre-allocated netif structure - * @param ipaddr IP address for the new netif - * @param netmask network mask for the new netif - * @param gw default gateway IP address for the new netif - * @param state opaque data passed to the new netif - * @param init callback function that initializes the interface - * @param input callback function that is called to pass - * ingress packets up in the protocol layer stack.\n - * It is recommended to use a function that passes the input directly - * to the stack (netif_input(), NO_SYS=1 mode) or via sending a - * message to TCPIP thread (tcpip_input(), NO_SYS=0 mode).\n - * These functions use netif flags NETIF_FLAG_ETHARP and NETIF_FLAG_ETHERNET - * to decide whether to forward to ethernet_input() or ip_input(). - * In other words, the functions only work when the netif - * driver is implemented correctly!\n - * Most members of struct netif should be be initialized by the - * netif init function = netif driver (init parameter of this function).\n - * IPv6: Don't forget to call netif_create_ip6_linklocal_address() after - * setting the MAC address in struct netif.hwaddr - * (IPv6 requires a link-local address). - * - * @return netif, or NULL if failed. - */ -struct netif * -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) -{ -#if LWIP_IPV6 - s8_t i; -#endif - - LWIP_ASSERT_CORE_LOCKED(); - -#if LWIP_SINGLE_NETIF - if (netif_default != NULL) { - LWIP_ASSERT("single netif already set", 0); - return NULL; - } -#endif - - LWIP_ERROR("netif_add: invalid netif", netif != NULL, return NULL); - LWIP_ERROR("netif_add: No init function given", init != NULL, return NULL); - -#if LWIP_IPV4 - if (ipaddr == NULL) { - ipaddr = ip_2_ip4(IP4_ADDR_ANY); - } - if (netmask == NULL) { - netmask = ip_2_ip4(IP4_ADDR_ANY); - } - if (gw == NULL) { - gw = ip_2_ip4(IP4_ADDR_ANY); - } - - /* reset new interface configuration state */ - ip_addr_set_zero_ip4(&netif->ip_addr); - ip_addr_set_zero_ip4(&netif->netmask); - ip_addr_set_zero_ip4(&netif->gw); - netif->output = netif_null_output_ip4; -#endif /* LWIP_IPV4 */ -#if LWIP_IPV6 - for (i = 0; i < LWIP_IPV6_NUM_ADDRESSES; i++) { - ip_addr_set_zero_ip6(&netif->ip6_addr[i]); - netif->ip6_addr_state[i] = IP6_ADDR_INVALID; -#if LWIP_IPV6_ADDRESS_LIFETIMES - netif->ip6_addr_valid_life[i] = IP6_ADDR_LIFE_STATIC; - netif->ip6_addr_pref_life[i] = IP6_ADDR_LIFE_STATIC; -#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; - netif->flags = 0; -#ifdef netif_get_client_data - memset(netif->client_data, 0, sizeof(netif->client_data)); -#endif /* LWIP_NUM_NETIF_CLIENT_DATA */ -#if LWIP_IPV6 -#if LWIP_IPV6_AUTOCONFIG - /* IPv6 address autoconfiguration not enabled by default */ - netif->ip6_autoconfig_enabled = 0; -#endif /* LWIP_IPV6_AUTOCONFIG */ - nd6_restart_netif(netif); -#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; -#endif /* LWIP_NETIF_LINK_CALLBACK */ -#if LWIP_IGMP - netif->igmp_mac_filter = NULL; -#endif /* LWIP_IGMP */ -#if LWIP_IPV6 && LWIP_IPV6_MLD - netif->mld_mac_filter = NULL; -#endif /* LWIP_IPV6 && LWIP_IPV6_MLD */ -#if ENABLE_LOOPBACK - netif->loop_first = NULL; - netif->loop_last = NULL; -#endif /* ENABLE_LOOPBACK */ - - /* remember netif specific state information data */ - netif->state = state; - netif->num = netif_num; - netif->input = input; - - NETIF_RESET_HINTS(netif); -#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); -#endif /* LWIP_IPV4 */ - - /* call user specified initialization function for netif */ - if (init(netif) != ERR_OK) { - return NULL; - } -#if LWIP_IPV6 && LWIP_ND6_ALLOW_RA_UPDATES - /* Initialize the MTU for IPv6 to the one set by the netif driver. - This can be updated later by RA. */ - netif->mtu6 = netif->mtu; -#endif /* LWIP_IPV6 && LWIP_ND6_ALLOW_RA_UPDATES */ - -#if !LWIP_SINGLE_NETIF - /* Assign a unique netif number in the range [0..254], so that (num+1) can - serve as an interface index that fits in a u8_t. - We assume that the new netif has not yet been added to the list here. - This algorithm is O(n^2), but that should be OK for lwIP. - */ - { - struct netif *netif2; - int num_netifs; - do { - if (netif->num == 255) { - netif->num = 0; - } - num_netifs = 0; - for (netif2 = netif_list; netif2 != NULL; netif2 = netif2->next) { - LWIP_ASSERT("netif already added", netif2 != netif); - num_netifs++; - LWIP_ASSERT("too many netifs, max. supported number is 255", num_netifs <= 255); - if (netif2->num == netif->num) { - netif->num++; - break; - } - } - } while (netif2 != NULL); - } - if (netif->num == 254) { - netif_num = 0; - } else { - netif_num = (u8_t)(netif->num + 1); - } - - /* add this netif to the list */ - netif->next = netif_list; - netif_list = netif; -#endif /* "LWIP_SINGLE_NETIF */ - mib2_netif_added(netif); - -#if LWIP_IGMP - /* start IGMP processing */ - if (netif->flags & NETIF_FLAG_IGMP) { - igmp_start(netif); - } -#endif /* LWIP_IGMP */ - - LWIP_DEBUGF(NETIF_DEBUG, ("netif: added interface %c%c IP", - netif->name[0], netif->name[1])); -#if LWIP_IPV4 - LWIP_DEBUGF(NETIF_DEBUG, (" addr ")); - ip4_addr_debug_print(NETIF_DEBUG, ipaddr); - LWIP_DEBUGF(NETIF_DEBUG, (" netmask ")); - ip4_addr_debug_print(NETIF_DEBUG, netmask); - LWIP_DEBUGF(NETIF_DEBUG, (" gw ")); - ip4_addr_debug_print(NETIF_DEBUG, gw); -#endif /* LWIP_IPV4 */ - LWIP_DEBUGF(NETIF_DEBUG, ("\n")); - - netif_invoke_ext_callback(netif, LWIP_NSC_NETIF_ADDED, NULL); - - return netif; -} - -static void -netif_do_ip_addr_changed(const ip_addr_t *old_addr, const ip_addr_t *new_addr) -{ -#if LWIP_TCP - tcp_netif_ip_addr_changed(old_addr, new_addr); -#endif /* LWIP_TCP */ -#if LWIP_UDP - udp_netif_ip_addr_changed(old_addr, new_addr); -#endif /* LWIP_UDP */ -#if LWIP_RAW - raw_netif_ip_addr_changed(old_addr, new_addr); -#endif /* LWIP_RAW */ -} - -#if LWIP_IPV4 -static int -netif_do_set_ipaddr(struct netif *netif, const ip4_addr_t *ipaddr, ip_addr_t *old_addr) -{ - LWIP_ASSERT("invalid pointer", ipaddr != NULL); - LWIP_ASSERT("invalid pointer", old_addr != NULL); - - /* address is actually being changed? */ - if (ip4_addr_cmp(ipaddr, netif_ip4_addr(netif)) == 0) { - ip_addr_t new_addr; - *ip_2_ip4(&new_addr) = *ipaddr; - IP_SET_TYPE_VAL(new_addr, IPADDR_TYPE_V4); - - ip_addr_copy(*old_addr, *netif_ip_addr4(netif)); - - LWIP_DEBUGF(NETIF_DEBUG | LWIP_DBG_STATE, ("netif_set_ipaddr: netif address being changed\n")); - netif_do_ip_addr_changed(old_addr, &new_addr); - - 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); - 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); - - NETIF_STATUS_CALLBACK(netif); - return 1; /* address changed */ - } - return 0; /* address unchanged */ -} - -/** - * @ingroup netif_ip4 - * Change the IP address of a network interface - * - * @param netif the network interface to change - * @param ipaddr the new IP address - * - * @note call netif_set_addr() if you also want to change netmask and - * default gateway - */ -void -netif_set_ipaddr(struct netif *netif, const ip4_addr_t *ipaddr) -{ - ip_addr_t old_addr; - - LWIP_ERROR("netif_set_ipaddr: invalid netif", netif != NULL, return); - - /* Don't propagate NULL pointer (IPv4 ANY) to subsequent functions */ - if (ipaddr == NULL) { - ipaddr = IP4_ADDR_ANY4; - } - - LWIP_ASSERT_CORE_LOCKED(); - - if (netif_do_set_ipaddr(netif, ipaddr, &old_addr)) { -#if LWIP_NETIF_EXT_STATUS_CALLBACK - netif_ext_callback_args_t args; - args.ipv4_changed.old_address = &old_addr; - netif_invoke_ext_callback(netif, LWIP_NSC_IPV4_ADDRESS_CHANGED, &args); -#endif - } -} - -static int -netif_do_set_netmask(struct netif *netif, const ip4_addr_t *netmask, ip_addr_t *old_nm) -{ - /* address is actually being changed? */ - if (ip4_addr_cmp(netmask, netif_ip4_netmask(netif)) == 0) { -#if LWIP_NETIF_EXT_STATUS_CALLBACK - LWIP_ASSERT("invalid pointer", old_nm != NULL); - ip_addr_copy(*old_nm, *netif_ip_netmask4(netif)); -#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); - IP_SET_TYPE_VAL(netif->netmask, IPADDR_TYPE_V4); - mib2_add_route_ip4(0, netif); - LWIP_DEBUGF(NETIF_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("netif: netmask of interface %c%c set to %"U16_F".%"U16_F".%"U16_F".%"U16_F"\n", - 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 */ - } - return 0; /* netmask unchanged */ -} - -/** - * @ingroup netif_ip4 - * Change the netmask of a network interface - * - * @param netif the network interface to change - * @param netmask the new netmask - * - * @note call netif_set_addr() if you also want to change ip address and - * default gateway - */ -void -netif_set_netmask(struct netif *netif, const ip4_addr_t *netmask) -{ -#if LWIP_NETIF_EXT_STATUS_CALLBACK - ip_addr_t old_nm_val; - ip_addr_t *old_nm = &old_nm_val; -#else - ip_addr_t *old_nm = NULL; -#endif - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("netif_set_netmask: invalid netif", netif != NULL, return); - - /* Don't propagate NULL pointer (IPv4 ANY) to subsequent functions */ - if (netmask == NULL) { - netmask = IP4_ADDR_ANY4; - } - - if (netif_do_set_netmask(netif, netmask, old_nm)) { -#if LWIP_NETIF_EXT_STATUS_CALLBACK - netif_ext_callback_args_t args; - args.ipv4_changed.old_netmask = old_nm; - netif_invoke_ext_callback(netif, LWIP_NSC_IPV4_NETMASK_CHANGED, &args); -#endif - } -} - -static int -netif_do_set_gw(struct netif *netif, const ip4_addr_t *gw, ip_addr_t *old_gw) -{ - /* address is actually being changed? */ - if (ip4_addr_cmp(gw, netif_ip4_gw(netif)) == 0) { -#if LWIP_NETIF_EXT_STATUS_CALLBACK - LWIP_ASSERT("invalid pointer", old_gw != NULL); - 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); - IP_SET_TYPE_VAL(netif->gw, IPADDR_TYPE_V4); - LWIP_DEBUGF(NETIF_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("netif: GW address of interface %c%c set to %"U16_F".%"U16_F".%"U16_F".%"U16_F"\n", - 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 */ - } - return 0; /* gateway unchanged */ -} - -/** - * @ingroup netif_ip4 - * Change the default gateway for a network interface - * - * @param netif the network interface to change - * @param gw the new default gateway - * - * @note call netif_set_addr() if you also want to change ip address and netmask - */ -void -netif_set_gw(struct netif *netif, const ip4_addr_t *gw) -{ -#if LWIP_NETIF_EXT_STATUS_CALLBACK - ip_addr_t old_gw_val; - ip_addr_t *old_gw = &old_gw_val; -#else - ip_addr_t *old_gw = NULL; -#endif - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("netif_set_gw: invalid netif", netif != NULL, return); - - /* Don't propagate NULL pointer (IPv4 ANY) to subsequent functions */ - if (gw == NULL) { - gw = IP4_ADDR_ANY4; - } - - if (netif_do_set_gw(netif, gw, old_gw)) { -#if LWIP_NETIF_EXT_STATUS_CALLBACK - netif_ext_callback_args_t args; - args.ipv4_changed.old_gw = old_gw; - netif_invoke_ext_callback(netif, LWIP_NSC_IPV4_GATEWAY_CHANGED, &args); -#endif - } -} - -/** - * @ingroup netif_ip4 - * Change IP address configuration for a network interface (including netmask - * and default gateway). - * - * @param netif the network interface to change - * @param ipaddr the new IP address - * @param netmask the new netmask - * @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) -{ -#if LWIP_NETIF_EXT_STATUS_CALLBACK - netif_nsc_reason_t change_reason = LWIP_NSC_NONE; - netif_ext_callback_args_t cb_args; - 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; - ip_addr_t *old_gw = NULL; -#endif - ip_addr_t old_addr; - int remove; - - LWIP_ASSERT_CORE_LOCKED(); - - /* Don't propagate NULL pointer (IPv4 ANY) to subsequent functions */ - if (ipaddr == NULL) { - ipaddr = IP4_ADDR_ANY4; - } - if (netmask == NULL) { - netmask = IP4_ADDR_ANY4; - } - if (gw == NULL) { - gw = IP4_ADDR_ANY4; - } - - remove = ip4_addr_isany(ipaddr); - if (remove) { - /* 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)) { -#if LWIP_NETIF_EXT_STATUS_CALLBACK - 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)) { -#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)) { -#if LWIP_NETIF_EXT_STATUS_CALLBACK - change_reason |= LWIP_NSC_IPV4_GATEWAY_CHANGED; - cb_args.ipv4_changed.old_gw = old_gw; -#endif - } - if (!remove) { - /* set ipaddr last to ensure netmask/gw have been set when status callback is called */ - if (netif_do_set_ipaddr(netif, ipaddr, &old_addr)) { -#if LWIP_NETIF_EXT_STATUS_CALLBACK - change_reason |= LWIP_NSC_IPV4_ADDRESS_CHANGED; - cb_args.ipv4_changed.old_address = &old_addr; -#endif - } - } - -#if LWIP_NETIF_EXT_STATUS_CALLBACK - if (change_reason != LWIP_NSC_NONE) { - change_reason |= LWIP_NSC_IPV4_SETTINGS_CHANGED; - netif_invoke_ext_callback(netif, change_reason, &cb_args); - } -#endif -} -#endif /* LWIP_IPV4*/ - -/** - * @ingroup netif - * Remove a network interface from the list of lwIP netifs. - * - * @param netif the network interface to remove - */ -void -netif_remove(struct netif *netif) -{ -#if LWIP_IPV6 - int i; -#endif - - LWIP_ASSERT_CORE_LOCKED(); - - if (netif == NULL) { - return; - } - - netif_invoke_ext_callback(netif, LWIP_NSC_NETIF_REMOVED, NULL); - -#if LWIP_IPV4 - if (!ip4_addr_isany_val(*netif_ip4_addr(netif))) { - netif_do_ip_addr_changed(netif_ip_addr4(netif), NULL); - } - -#if LWIP_IGMP - /* stop IGMP processing */ - if (netif->flags & NETIF_FLAG_IGMP) { - igmp_stop(netif); - } -#endif /* LWIP_IGMP */ -#endif /* LWIP_IPV4*/ - -#if LWIP_IPV6 - for (i = 0; i < LWIP_IPV6_NUM_ADDRESSES; i++) { - if (ip6_addr_isvalid(netif_ip6_addr_state(netif, i))) { - netif_do_ip_addr_changed(netif_ip_addr6(netif, i), NULL); - } - } -#if LWIP_IPV6_MLD - /* stop MLD processing */ - mld6_stop(netif); -#endif /* LWIP_IPV6_MLD */ -#endif /* LWIP_IPV6 */ - if (netif_is_up(netif)) { - /* set netif down before removing (call callback function) */ - netif_set_down(netif); - } - - mib2_remove_ip4(netif); - - /* this netif is default? */ - if (netif_default == netif) { - /* reset default netif */ - netif_set_default(NULL); - } -#if !LWIP_SINGLE_NETIF - /* is it the first netif? */ - if (netif_list == netif) { - netif_list = netif->next; - } else { - /* look for netif further down the list */ - struct netif *tmp_netif; - NETIF_FOREACH(tmp_netif) { - if (tmp_netif->next == netif) { - tmp_netif->next = netif->next; - break; - } - } - if (tmp_netif == NULL) { - return; /* netif is not on the list */ - } - } -#endif /* !LWIP_SINGLE_NETIF */ - mib2_netif_removed(netif); -#if LWIP_NETIF_REMOVE_CALLBACK - if (netif->remove_callback) { - netif->remove_callback(netif); - } -#endif /* LWIP_NETIF_REMOVE_CALLBACK */ - LWIP_DEBUGF( NETIF_DEBUG, ("netif_remove: removed netif\n") ); -} - -/** - * @ingroup netif - * Set a network interface as the default network interface - * (used to output all packets for which no specific route is found) - * - * @param netif the default network interface - */ -void -netif_set_default(struct netif *netif) -{ - LWIP_ASSERT_CORE_LOCKED(); - - if (netif == NULL) { - /* remove default route */ - mib2_remove_route_ip4(1, netif); - } else { - /* install default route */ - mib2_add_route_ip4(1, netif); - } - netif_default = netif; - LWIP_DEBUGF(NETIF_DEBUG, ("netif: setting default interface %c%c\n", - netif ? netif->name[0] : '\'', netif ? netif->name[1] : '\'')); -} - -/** - * @ingroup netif - * Bring an interface up, available for processing - * traffic. - */ -void -netif_set_up(struct netif *netif) -{ - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("netif_set_up: invalid netif", netif != NULL, return); - - if (!(netif->flags & NETIF_FLAG_UP)) { - netif_set_flags(netif, NETIF_FLAG_UP); - - MIB2_COPY_SYSUPTIME_TO(&netif->ts); - - NETIF_STATUS_CALLBACK(netif); - -#if LWIP_NETIF_EXT_STATUS_CALLBACK - { - netif_ext_callback_args_t args; - 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); -#if LWIP_IPV6 - nd6_restart_netif(netif); -#endif /* LWIP_IPV6 */ - } -} - -/** 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) -{ - LWIP_ASSERT("netif_issue_reports: invalid netif", netif != NULL); - - /* Only send reports when both link and admin states are up */ - if (!(netif->flags & NETIF_FLAG_LINK_UP) || - !(netif->flags & NETIF_FLAG_UP)) { - return; - } - -#if LWIP_IPV4 - if ((report_type & NETIF_REPORT_TYPE_IPV4) && - !ip4_addr_isany_val(*netif_ip4_addr(netif))) { -#if LWIP_ARP - /* For Ethernet network interfaces, we would like to send a "gratuitous ARP" */ - if (netif->flags & (NETIF_FLAG_ETHARP)) { - etharp_gratuitous(netif); - } -#endif /* LWIP_ARP */ - -#if LWIP_IGMP - /* resend IGMP memberships */ - if (netif->flags & NETIF_FLAG_IGMP) { - igmp_report_groups(netif); - } -#endif /* LWIP_IGMP */ - } -#endif /* LWIP_IPV4 */ - -#if LWIP_IPV6 - if (report_type & NETIF_REPORT_TYPE_IPV6) { -#if LWIP_IPV6_MLD - /* send mld memberships */ - mld6_report_groups(netif); -#endif /* LWIP_IPV6_MLD */ - } -#endif /* LWIP_IPV6 */ -} - -/** - * @ingroup netif - * Bring an interface down, disabling any traffic processing. - */ -void -netif_set_down(struct netif *netif) -{ - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("netif_set_down: invalid netif", netif != NULL, return); - - if (netif->flags & NETIF_FLAG_UP) { -#if LWIP_NETIF_EXT_STATUS_CALLBACK - { - netif_ext_callback_args_t args; - args.status_changed.state = 0; - netif_invoke_ext_callback(netif, LWIP_NSC_STATUS_CHANGED, &args); - } -#endif - - netif_clear_flags(netif, NETIF_FLAG_UP); - MIB2_COPY_SYSUPTIME_TO(&netif->ts); - -#if LWIP_IPV4 && LWIP_ARP - if (netif->flags & NETIF_FLAG_ETHARP) { - etharp_cleanup_netif(netif); - } -#endif /* LWIP_IPV4 && LWIP_ARP */ - -#if LWIP_IPV6 - nd6_cleanup_netif(netif); -#endif /* LWIP_IPV6 */ - - NETIF_STATUS_CALLBACK(netif); - } -} - -#if LWIP_NETIF_STATUS_CALLBACK -/** - * @ingroup netif - * Set callback to be called when interface is brought up/down or address is changed while up - */ -void -netif_set_status_callback(struct netif *netif, netif_status_callback_fn status_callback) -{ - LWIP_ASSERT_CORE_LOCKED(); - - if (netif) { - netif->status_callback = status_callback; - } -} -#endif /* LWIP_NETIF_STATUS_CALLBACK */ - -#if LWIP_NETIF_REMOVE_CALLBACK -/** - * @ingroup netif - * Set callback to be called when the interface has been removed - */ -void -netif_set_remove_callback(struct netif *netif, netif_status_callback_fn remove_callback) -{ - LWIP_ASSERT_CORE_LOCKED(); - - if (netif) { - netif->remove_callback = remove_callback; - } -} -#endif /* LWIP_NETIF_REMOVE_CALLBACK */ - -/** - * @ingroup netif - * Called by a driver when its link goes up - */ -void -netif_set_link_up(struct netif *netif) -{ - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("netif_set_link_up: invalid netif", netif != NULL, return); - - if (!(netif->flags & NETIF_FLAG_LINK_UP)) { - netif_set_flags(netif, NETIF_FLAG_LINK_UP); - -#if LWIP_DHCP - dhcp_network_changed(netif); -#endif /* LWIP_DHCP */ - -#if LWIP_AUTOIP - autoip_network_changed(netif); -#endif /* LWIP_AUTOIP */ - - netif_issue_reports(netif, NETIF_REPORT_TYPE_IPV4 | NETIF_REPORT_TYPE_IPV6); -#if LWIP_IPV6 - nd6_restart_netif(netif); -#endif /* LWIP_IPV6 */ - - NETIF_LINK_CALLBACK(netif); -#if LWIP_NETIF_EXT_STATUS_CALLBACK - { - netif_ext_callback_args_t args; - args.link_changed.state = 1; - netif_invoke_ext_callback(netif, LWIP_NSC_LINK_CHANGED, &args); - } -#endif - } -} - -/** - * @ingroup netif - * Called by a driver when its link goes down - */ -void -netif_set_link_down(struct netif *netif) -{ - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("netif_set_link_down: invalid netif", netif != NULL, return); - - if (netif->flags & NETIF_FLAG_LINK_UP) { - netif_clear_flags(netif, NETIF_FLAG_LINK_UP); - NETIF_LINK_CALLBACK(netif); -#if LWIP_NETIF_EXT_STATUS_CALLBACK - { - netif_ext_callback_args_t args; - args.link_changed.state = 0; - netif_invoke_ext_callback(netif, LWIP_NSC_LINK_CHANGED, &args); - } -#endif - } -} - -#if LWIP_NETIF_LINK_CALLBACK -/** - * @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) -{ - LWIP_ASSERT_CORE_LOCKED(); - - if (netif) { - netif->link_callback = link_callback; - } -} -#endif /* LWIP_NETIF_LINK_CALLBACK */ - -#if ENABLE_LOOPBACK -/** - * @ingroup netif - * Send an IP packet to be received on the same netif (loopif-like). - * The pbuf is simply copied and handed back to netif->input. - * In multithreaded mode, this is done directly since netif->input must put - * the packet on a queue. - * In callback mode, the packet is put on an internal queue and is fed to - * netif->input by netif_poll(). - * - * @param netif the lwip network interface structure - * @param p the (IP) packet to 'send' - * @return ERR_OK if the packet has been sent - * ERR_MEM if the pbuf used to copy the packet couldn't be allocated - */ -err_t -netif_loop_output(struct netif *netif, struct pbuf *p) -{ - struct pbuf *r; - err_t err; - struct pbuf *last; -#if LWIP_LOOPBACK_MAX_PBUFS - u16_t clen = 0; -#endif /* LWIP_LOOPBACK_MAX_PBUFS */ - /* If we have a loopif, SNMP counters are adjusted for it, - * if not they are adjusted for 'netif'. */ -#if MIB2_STATS -#if LWIP_HAVE_LOOPIF - struct netif *stats_if = &loop_netif; -#else /* LWIP_HAVE_LOOPIF */ - struct netif *stats_if = netif; -#endif /* LWIP_HAVE_LOOPIF */ -#endif /* MIB2_STATS */ -#if LWIP_NETIF_LOOPBACK_MULTITHREADING - u8_t schedule_poll = 0; -#endif /* LWIP_NETIF_LOOPBACK_MULTITHREADING */ - SYS_ARCH_DECL_PROTECT(lev); - - LWIP_ASSERT("netif_loop_output: invalid netif", netif != NULL); - LWIP_ASSERT("netif_loop_output: invalid pbuf", p != NULL); - - /* Allocate a new pbuf */ - r = pbuf_alloc(PBUF_LINK, p->tot_len, PBUF_RAM); - if (r == NULL) { - LINK_STATS_INC(link.memerr); - LINK_STATS_INC(link.drop); - MIB2_STATS_NETIF_INC(stats_if, ifoutdiscards); - return ERR_MEM; - } -#if LWIP_LOOPBACK_MAX_PBUFS - clen = pbuf_clen(r); - /* check for overflow or too many pbuf on queue */ - if (((netif->loop_cnt_current + clen) < netif->loop_cnt_current) || - ((netif->loop_cnt_current + clen) > LWIP_MIN(LWIP_LOOPBACK_MAX_PBUFS, 0xFFFF))) { - pbuf_free(r); - LINK_STATS_INC(link.memerr); - LINK_STATS_INC(link.drop); - MIB2_STATS_NETIF_INC(stats_if, ifoutdiscards); - return ERR_MEM; - } - netif->loop_cnt_current = (u16_t)(netif->loop_cnt_current + clen); -#endif /* LWIP_LOOPBACK_MAX_PBUFS */ - - /* Copy the whole pbuf queue p into the single pbuf r */ - if ((err = pbuf_copy(r, p)) != ERR_OK) { - pbuf_free(r); - LINK_STATS_INC(link.memerr); - LINK_STATS_INC(link.drop); - MIB2_STATS_NETIF_INC(stats_if, ifoutdiscards); - return err; - } - - /* Put the packet on a linked list which gets emptied through calling - netif_poll(). */ - - /* let last point to the last pbuf in chain r */ - for (last = r; last->next != NULL; last = last->next) { - /* nothing to do here, just get to the last pbuf */ - } - - SYS_ARCH_PROTECT(lev); - if (netif->loop_first != NULL) { - LWIP_ASSERT("if first != NULL, last must also be != NULL", netif->loop_last != NULL); - netif->loop_last->next = r; - netif->loop_last = last; - } else { - netif->loop_first = r; - netif->loop_last = last; -#if LWIP_NETIF_LOOPBACK_MULTITHREADING - /* No existing packets queued, schedule poll */ - schedule_poll = 1; -#endif /* LWIP_NETIF_LOOPBACK_MULTITHREADING */ - } - SYS_ARCH_UNPROTECT(lev); - - LINK_STATS_INC(link.xmit); - MIB2_STATS_NETIF_ADD(stats_if, ifoutoctets, p->tot_len); - MIB2_STATS_NETIF_INC(stats_if, ifoutucastpkts); - -#if LWIP_NETIF_LOOPBACK_MULTITHREADING - /* For multithreading environment, schedule a call to netif_poll */ - if (schedule_poll) { - tcpip_try_callback((tcpip_callback_fn)netif_poll, netif); - } -#endif /* LWIP_NETIF_LOOPBACK_MULTITHREADING */ - - return ERR_OK; -} - -#if LWIP_HAVE_LOOPIF -#if LWIP_IPV4 -static err_t -netif_loop_output_ipv4(struct netif *netif, struct pbuf *p, const ip4_addr_t *addr) -{ - LWIP_UNUSED_ARG(addr); - return netif_loop_output(netif, p); -} -#endif /* LWIP_IPV4 */ - -#if LWIP_IPV6 -static err_t -netif_loop_output_ipv6(struct netif *netif, struct pbuf *p, const ip6_addr_t *addr) -{ - LWIP_UNUSED_ARG(addr); - return netif_loop_output(netif, p); -} -#endif /* LWIP_IPV6 */ -#endif /* LWIP_HAVE_LOOPIF */ - - -/** - * Call netif_poll() in the main loop of your application. This is to prevent - * reentering non-reentrant functions like tcp_input(). Packets passed to - * netif_loop_output() are put on a list that is passed to netif->input() by - * netif_poll(). - */ -void -netif_poll(struct netif *netif) -{ - /* If we have a loopif, SNMP counters are adjusted for it, - * if not they are adjusted for 'netif'. */ -#if MIB2_STATS -#if LWIP_HAVE_LOOPIF - struct netif *stats_if = &loop_netif; -#else /* LWIP_HAVE_LOOPIF */ - struct netif *stats_if = netif; -#endif /* LWIP_HAVE_LOOPIF */ -#endif /* MIB2_STATS */ - SYS_ARCH_DECL_PROTECT(lev); - - LWIP_ASSERT("netif_poll: invalid netif", netif != NULL); - - /* Get a packet from the list. With SYS_LIGHTWEIGHT_PROT=1, this is protected */ - SYS_ARCH_PROTECT(lev); - while (netif->loop_first != NULL) { - struct pbuf *in, *in_end; -#if LWIP_LOOPBACK_MAX_PBUFS - u8_t clen = 1; -#endif /* LWIP_LOOPBACK_MAX_PBUFS */ - - in = in_end = netif->loop_first; - while (in_end->len != in_end->tot_len) { - LWIP_ASSERT("bogus pbuf: len != tot_len but next == NULL!", in_end->next != NULL); - in_end = in_end->next; -#if LWIP_LOOPBACK_MAX_PBUFS - clen++; -#endif /* LWIP_LOOPBACK_MAX_PBUFS */ - } -#if LWIP_LOOPBACK_MAX_PBUFS - /* adjust the number of pbufs on queue */ - LWIP_ASSERT("netif->loop_cnt_current underflow", - ((netif->loop_cnt_current - clen) < netif->loop_cnt_current)); - netif->loop_cnt_current = (u16_t)(netif->loop_cnt_current - clen); -#endif /* LWIP_LOOPBACK_MAX_PBUFS */ - - /* 'in_end' now points to the last pbuf from 'in' */ - if (in_end == netif->loop_last) { - /* this was the last pbuf in the list */ - netif->loop_first = netif->loop_last = NULL; - } else { - /* pop the pbuf off the list */ - netif->loop_first = in_end->next; - LWIP_ASSERT("should not be null since first != last!", netif->loop_first != NULL); - } - /* De-queue the pbuf from its successors on the 'loop_' list. */ - in_end->next = NULL; - SYS_ARCH_UNPROTECT(lev); - - in->if_idx = netif_get_index(netif); - - LINK_STATS_INC(link.recv); - MIB2_STATS_NETIF_ADD(stats_if, ifinoctets, in->tot_len); - MIB2_STATS_NETIF_INC(stats_if, ifinucastpkts); - /* loopback packets are always IP packets! */ - if (ip_input(in, netif) != ERR_OK) { - pbuf_free(in); - } - SYS_ARCH_PROTECT(lev); - } - SYS_ARCH_UNPROTECT(lev); -} - -#if !LWIP_NETIF_LOOPBACK_MULTITHREADING -/** - * Calls netif_poll() for every netif on the netif_list. - */ -void -netif_poll_all(void) -{ - struct netif *netif; - /* loop through netifs */ - NETIF_FOREACH(netif) { - netif_poll(netif); - } -} -#endif /* !LWIP_NETIF_LOOPBACK_MULTITHREADING */ -#endif /* ENABLE_LOOPBACK */ - -#if LWIP_NUM_NETIF_CLIENT_DATA > 0 -/** - * @ingroup netif_cd - * Allocate an index to store data in client_data member of struct netif. - * Returned value is an index in mentioned array. - * @see LWIP_NUM_NETIF_CLIENT_DATA - */ -u8_t -netif_alloc_client_data_id(void) -{ - u8_t result = netif_client_id; - netif_client_id++; - - LWIP_ASSERT_CORE_LOCKED(); - -#if LWIP_NUM_NETIF_CLIENT_DATA > 256 -#error LWIP_NUM_NETIF_CLIENT_DATA must be <= 256 -#endif - LWIP_ASSERT("Increase LWIP_NUM_NETIF_CLIENT_DATA in lwipopts.h", result < LWIP_NUM_NETIF_CLIENT_DATA); - return (u8_t)(result + LWIP_NETIF_CLIENT_DATA_INDEX_MAX); -} -#endif - -#if LWIP_IPV6 -/** - * @ingroup netif_ip6 - * Change an IPv6 address of a network interface - * - * @param netif the network interface to change - * @param addr_idx index of the IPv6 address - * @param addr6 the new IPv6 address - * - * @note call netif_ip6_addr_set_state() to set the address valid/temptative - */ -void -netif_ip6_addr_set(struct netif *netif, s8_t addr_idx, const ip6_addr_t *addr6) -{ - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ASSERT("netif_ip6_addr_set: invalid netif", netif != NULL); - LWIP_ASSERT("netif_ip6_addr_set: invalid addr6", addr6 != NULL); - - netif_ip6_addr_set_parts(netif, addr_idx, addr6->addr[0], addr6->addr[1], - addr6->addr[2], addr6->addr[3]); -} - -/* - * Change an IPv6 address of a network interface (internal version taking 4 * u32_t) - * - * @param netif the network interface to change - * @param addr_idx index of the IPv6 address - * @param i0 word0 of the new IPv6 address - * @param i1 word1 of the new IPv6 address - * @param i2 word2 of the new IPv6 address - * @param i3 word3 of the new IPv6 address - */ -void -netif_ip6_addr_set_parts(struct netif *netif, s8_t addr_idx, u32_t i0, u32_t i1, u32_t i2, u32_t i3) -{ - ip_addr_t old_addr; - ip_addr_t new_ipaddr; - LWIP_ASSERT_CORE_LOCKED(); - LWIP_ASSERT("netif != NULL", netif != NULL); - LWIP_ASSERT("invalid index", addr_idx < LWIP_IPV6_NUM_ADDRESSES); - - ip6_addr_copy(*ip_2_ip6(&old_addr), *netif_ip6_addr(netif, addr_idx)); - IP_SET_TYPE_VAL(old_addr, IPADDR_TYPE_V6); - - /* address is actually being changed? */ - if ((ip_2_ip6(&old_addr)->addr[0] != i0) || (ip_2_ip6(&old_addr)->addr[1] != i1) || - (ip_2_ip6(&old_addr)->addr[2] != i2) || (ip_2_ip6(&old_addr)->addr[3] != i3)) { - LWIP_DEBUGF(NETIF_DEBUG | LWIP_DBG_STATE, ("netif_ip6_addr_set: netif address being changed\n")); - - IP_ADDR6(&new_ipaddr, i0, i1, i2, i3); - ip6_addr_assign_zone(ip_2_ip6(&new_ipaddr), IP6_UNICAST, netif); - - if (ip6_addr_isvalid(netif_ip6_addr_state(netif, addr_idx))) { - netif_do_ip_addr_changed(netif_ip_addr6(netif, addr_idx), &new_ipaddr); - } - /* @todo: remove/readd mib2 ip6 entries? */ - - ip_addr_copy(netif->ip6_addr[addr_idx], new_ipaddr); - - if (ip6_addr_isvalid(netif_ip6_addr_state(netif, addr_idx))) { - netif_issue_reports(netif, NETIF_REPORT_TYPE_IPV6); - NETIF_STATUS_CALLBACK(netif); - } - -#if LWIP_NETIF_EXT_STATUS_CALLBACK - { - netif_ext_callback_args_t args; - args.ipv6_set.addr_index = addr_idx; - args.ipv6_set.old_address = &old_addr; - netif_invoke_ext_callback(netif, LWIP_NSC_IPV6_SET, &args); - } -#endif - } - - LWIP_DEBUGF(NETIF_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("netif: IPv6 address %d of interface %c%c set to %s/0x%"X8_F"\n", - addr_idx, netif->name[0], netif->name[1], ip6addr_ntoa(netif_ip6_addr(netif, addr_idx)), - netif_ip6_addr_state(netif, addr_idx))); -} - -/** - * @ingroup netif_ip6 - * Change the state of an IPv6 address of a network interface - * (INVALID, TEMPTATIVE, PREFERRED, DEPRECATED, where TEMPTATIVE - * includes the number of checks done, see ip6_addr.h) - * - * @param netif the network interface to change - * @param addr_idx index of the IPv6 address - * @param state the new IPv6 address state - */ -void -netif_ip6_addr_set_state(struct netif *netif, s8_t addr_idx, u8_t state) -{ - u8_t old_state; - LWIP_ASSERT_CORE_LOCKED(); - LWIP_ASSERT("netif != NULL", netif != NULL); - LWIP_ASSERT("invalid index", addr_idx < LWIP_IPV6_NUM_ADDRESSES); - - old_state = netif_ip6_addr_state(netif, addr_idx); - /* state is actually being changed? */ - if (old_state != state) { - u8_t old_valid = old_state & IP6_ADDR_VALID; - u8_t new_valid = state & IP6_ADDR_VALID; - LWIP_DEBUGF(NETIF_DEBUG | LWIP_DBG_STATE, ("netif_ip6_addr_set_state: netif address state being changed\n")); - -#if LWIP_IPV6_MLD - /* Reevaluate solicited-node multicast group membership. */ - if (netif->flags & NETIF_FLAG_MLD6) { - nd6_adjust_mld_membership(netif, addr_idx, state); - } -#endif /* LWIP_IPV6_MLD */ - - if (old_valid && !new_valid) { - /* address about to be removed by setting invalid */ - netif_do_ip_addr_changed(netif_ip_addr6(netif, addr_idx), NULL); - /* @todo: remove mib2 ip6 entries? */ - } - netif->ip6_addr_state[addr_idx] = state; - - if (!old_valid && new_valid) { - /* address added by setting valid */ - /* This is a good moment to check that the address is properly zoned. */ - IP6_ADDR_ZONECHECK_NETIF(netif_ip6_addr(netif, addr_idx), netif); - /* @todo: add mib2 ip6 entries? */ - netif_issue_reports(netif, NETIF_REPORT_TYPE_IPV6); - } - if ((old_state & ~IP6_ADDR_TENTATIVE_COUNT_MASK) != - (state & ~IP6_ADDR_TENTATIVE_COUNT_MASK)) { - /* address state has changed -> call the callback function */ - NETIF_STATUS_CALLBACK(netif); - } - -#if LWIP_NETIF_EXT_STATUS_CALLBACK - { - netif_ext_callback_args_t args; - args.ipv6_addr_state_changed.addr_index = addr_idx; - args.ipv6_addr_state_changed.old_state = old_state; - args.ipv6_addr_state_changed.address = netif_ip_addr6(netif, addr_idx); - netif_invoke_ext_callback(netif, LWIP_NSC_IPV6_ADDR_STATE_CHANGED, &args); - } -#endif - } - LWIP_DEBUGF(NETIF_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("netif: IPv6 address %d of interface %c%c set to %s/0x%"X8_F"\n", - addr_idx, netif->name[0], netif->name[1], ip6addr_ntoa(netif_ip6_addr(netif, addr_idx)), - netif_ip6_addr_state(netif, addr_idx))); -} - -/** - * Checks if a specific local address is present on the netif and returns its - * index. Depending on its state, it may or may not be assigned to the - * interface (as per RFC terminology). - * - * The given address may or may not be zoned (i.e., have a zone index other - * than IP6_NO_ZONE). If the address is zoned, it must have the correct zone - * for the given netif, or no match will be found. - * - * @param netif the netif to check - * @param ip6addr the IPv6 address to find - * @return >= 0: address found, this is its index - * -1: address not found on this netif - */ -s8_t -netif_get_ip6_addr_match(struct netif *netif, const ip6_addr_t *ip6addr) -{ - s8_t i; - - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ASSERT("netif_get_ip6_addr_match: invalid netif", netif != NULL); - LWIP_ASSERT("netif_get_ip6_addr_match: invalid ip6addr", ip6addr != NULL); - -#if LWIP_IPV6_SCOPES - if (ip6_addr_has_zone(ip6addr) && !ip6_addr_test_zone(ip6addr, netif)) { - return -1; /* wrong zone, no match */ - } -#endif /* LWIP_IPV6_SCOPES */ - - for (i = 0; i < LWIP_IPV6_NUM_ADDRESSES; i++) { - if (!ip6_addr_isinvalid(netif_ip6_addr_state(netif, i)) && - ip6_addr_cmp_zoneless(netif_ip6_addr(netif, i), ip6addr)) { - return i; - } - } - return -1; -} - -/** - * @ingroup netif_ip6 - * Create a link-local IPv6 address on a netif (stored in slot 0) - * - * @param netif the netif to create the address on - * @param from_mac_48bit if != 0, assume hwadr is a 48-bit MAC address (std conversion) - * if == 0, use hwaddr directly as interface ID - */ -void -netif_create_ip6_linklocal_address(struct netif *netif, u8_t from_mac_48bit) -{ - u8_t i, addr_index; - - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ASSERT("netif_create_ip6_linklocal_address: invalid netif", netif != NULL); - - /* Link-local prefix. */ - ip_2_ip6(&netif->ip6_addr[0])->addr[0] = PP_HTONL(0xfe800000ul); - ip_2_ip6(&netif->ip6_addr[0])->addr[1] = 0; - - /* Generate interface ID. */ - if (from_mac_48bit) { - /* Assume hwaddr is a 48-bit IEEE 802 MAC. Convert to EUI-64 address. Complement Group bit. */ - ip_2_ip6(&netif->ip6_addr[0])->addr[2] = lwip_htonl((((u32_t)(netif->hwaddr[0] ^ 0x02)) << 24) | - ((u32_t)(netif->hwaddr[1]) << 16) | - ((u32_t)(netif->hwaddr[2]) << 8) | - (0xff)); - ip_2_ip6(&netif->ip6_addr[0])->addr[3] = lwip_htonl((u32_t)(0xfeul << 24) | - ((u32_t)(netif->hwaddr[3]) << 16) | - ((u32_t)(netif->hwaddr[4]) << 8) | - (netif->hwaddr[5])); - } else { - /* Use hwaddr directly as interface ID. */ - ip_2_ip6(&netif->ip6_addr[0])->addr[2] = 0; - ip_2_ip6(&netif->ip6_addr[0])->addr[3] = 0; - - addr_index = 3; - for (i = 0; (i < 8) && (i < netif->hwaddr_len); i++) { - if (i == 4) { - addr_index--; - } - ip_2_ip6(&netif->ip6_addr[0])->addr[addr_index] |= lwip_htonl(((u32_t)(netif->hwaddr[netif->hwaddr_len - i - 1])) << (8 * (i & 0x03))); - } - } - - /* Set a link-local zone. Even though the zone is implied by the owning - * netif, setting the zone anyway has two important conceptual advantages: - * 1) it avoids the need for a ton of exceptions in internal code, allowing - * e.g. ip6_addr_cmp() to be used on local addresses; - * 2) the properly zoned address is visible externally, e.g. when any outside - * code enumerates available addresses or uses one to bind a socket. - * Any external code unaware of address scoping is likely to just ignore the - * zone field, so this should not create any compatibility problems. */ - ip6_addr_assign_zone(ip_2_ip6(&netif->ip6_addr[0]), IP6_UNICAST, netif); - - /* Set address state. */ -#if LWIP_IPV6_DUP_DETECT_ATTEMPTS - /* Will perform duplicate address detection (DAD). */ - netif_ip6_addr_set_state(netif, 0, IP6_ADDR_TENTATIVE); -#else - /* Consider address valid. */ - netif_ip6_addr_set_state(netif, 0, IP6_ADDR_PREFERRED); -#endif /* LWIP_IPV6_AUTOCONFIG */ -} - -/** - * @ingroup netif_ip6 - * This function allows for the easy addition of a new IPv6 address to an interface. - * It takes care of finding an empty slot and then sets the address tentative - * (to make sure that all the subsequent processing happens). - * - * @param netif netif to add the address on - * @param ip6addr address to add - * @param chosen_idx if != NULL, the chosen IPv6 address index will be stored here - */ -err_t -netif_add_ip6_address(struct netif *netif, const ip6_addr_t *ip6addr, s8_t *chosen_idx) -{ - s8_t i; - - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ASSERT("netif_add_ip6_address: invalid netif", netif != NULL); - LWIP_ASSERT("netif_add_ip6_address: invalid ip6addr", ip6addr != NULL); - - i = netif_get_ip6_addr_match(netif, ip6addr); - if (i >= 0) { - /* Address already added */ - if (chosen_idx != NULL) { - *chosen_idx = i; - } - return ERR_OK; - } - - /* Find a free slot. The first one is reserved for link-local addresses. */ - for (i = ip6_addr_islinklocal(ip6addr) ? 0 : 1; i < LWIP_IPV6_NUM_ADDRESSES; i++) { - if (ip6_addr_isinvalid(netif_ip6_addr_state(netif, i))) { - ip_addr_copy_from_ip6(netif->ip6_addr[i], *ip6addr); - ip6_addr_assign_zone(ip_2_ip6(&netif->ip6_addr[i]), IP6_UNICAST, netif); - netif_ip6_addr_set_state(netif, i, IP6_ADDR_TENTATIVE); - if (chosen_idx != NULL) { - *chosen_idx = i; - } - return ERR_OK; - } - } - - if (chosen_idx != NULL) { - *chosen_idx = -1; - } - return ERR_VAL; -} - -/** Dummy IPv6 output function for netifs not supporting IPv6 - */ -static err_t -netif_null_output_ip6(struct netif *netif, struct pbuf *p, const ip6_addr_t *ipaddr) -{ - LWIP_UNUSED_ARG(netif); - LWIP_UNUSED_ARG(p); - LWIP_UNUSED_ARG(ipaddr); - - return ERR_IF; -} -#endif /* LWIP_IPV6 */ - -#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) -{ - LWIP_UNUSED_ARG(netif); - LWIP_UNUSED_ARG(p); - LWIP_UNUSED_ARG(ipaddr); - - return ERR_IF; -} -#endif /* LWIP_IPV4 */ - -/** -* @ingroup netif -* Return the interface index for the netif with name -* or NETIF_NO_INDEX if not found/on error -* -* @param name the name of the netif -*/ -u8_t -netif_name_to_index(const char *name) -{ - struct netif *netif = netif_find(name); - if (netif != NULL) { - return netif_get_index(netif); - } - /* No name found, return invalid index */ - return NETIF_NO_INDEX; -} - -/** -* @ingroup netif -* Return the interface name for the netif matching index -* or NULL if not found/on error -* -* @param idx the interface index of the netif -* @param name char buffer of at least NETIF_NAMESIZE bytes -*/ -char * -netif_index_to_name(u8_t idx, char *name) -{ - struct netif *netif = netif_get_by_index(idx); - - if (netif != NULL) { - name[0] = netif->name[0]; - name[1] = netif->name[1]; - lwip_itoa(&name[2], NETIF_NAMESIZE - 2, netif_index_to_num(idx)); - return name; - } - return NULL; -} - -/** -* @ingroup netif -* Return the interface for the netif index -* -* @param idx index of netif to find -*/ -struct netif * -netif_get_by_index(u8_t idx) -{ - struct netif *netif; - - LWIP_ASSERT_CORE_LOCKED(); - - if (idx != NETIF_NO_INDEX) { - NETIF_FOREACH(netif) { - if (idx == netif_get_index(netif)) { - return netif; /* found! */ - } - } - } - - return NULL; -} - -/** - * @ingroup netif - * Find a network interface by searching for its name - * - * @param name the name of the netif (like netif->name) plus concatenated number - * in ascii representation (e.g. 'en0') - */ -struct netif * -netif_find(const char *name) -{ - struct netif *netif; - u8_t num; - - LWIP_ASSERT_CORE_LOCKED(); - - if (name == NULL) { - return NULL; - } - - num = (u8_t)atoi(&name[2]); - - NETIF_FOREACH(netif) { - if (num == netif->num && - name[0] == netif->name[0] && - name[1] == netif->name[1]) { - LWIP_DEBUGF(NETIF_DEBUG, ("netif_find: found %c%c\n", name[0], name[1])); - return netif; - } - } - LWIP_DEBUGF(NETIF_DEBUG, ("netif_find: didn't find %c%c\n", name[0], name[1])); - return NULL; -} - -#if LWIP_NETIF_EXT_STATUS_CALLBACK -/** - * @ingroup netif - * Add extended netif events listener - * @param callback pointer to listener structure - * @param fn callback function - */ -void -netif_add_ext_callback(netif_ext_callback_t *callback, netif_ext_callback_fn fn) -{ - LWIP_ASSERT_CORE_LOCKED(); - LWIP_ASSERT("callback must be != NULL", callback != NULL); - LWIP_ASSERT("fn must be != NULL", fn != NULL); - - callback->callback_fn = fn; - callback->next = ext_callback; - ext_callback = callback; -} - -/** - * @ingroup netif - * Remove extended netif events listener - * @param callback pointer to listener structure - */ -void -netif_remove_ext_callback(netif_ext_callback_t* callback) -{ - netif_ext_callback_t *last, *iter; - - LWIP_ASSERT_CORE_LOCKED(); - LWIP_ASSERT("callback must be != NULL", callback != NULL); - - if (ext_callback == NULL) { - return; - } - - if (callback == ext_callback) { - ext_callback = ext_callback->next; - } else { - last = ext_callback; - for (iter = ext_callback->next; iter != NULL; last = iter, iter = iter->next) { - if (iter == callback) { - LWIP_ASSERT("last != NULL", last != NULL); - last->next = callback->next; - callback->next = NULL; - return; - } - } - } -} - -/** - * Invoke extended netif status event - * @param netif netif that is affected by change - * @param reason change reason - * @param args depends on reason, see reason description - */ -void -netif_invoke_ext_callback(struct netif *netif, netif_nsc_reason_t reason, const netif_ext_callback_args_t *args) -{ - netif_ext_callback_t *callback = ext_callback; - - LWIP_ASSERT("netif must be != NULL", netif != NULL); - - while (callback != NULL) { - callback->callback_fn(netif, reason, args); - callback = callback->next; - } -} -#endif /* LWIP_NETIF_EXT_STATUS_CALLBACK */ diff --git a/Middlewares/Third_Party/LwIP/src/core/pbuf.c b/Middlewares/Third_Party/LwIP/src/core/pbuf.c deleted file mode 100644 index a209e0c..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/pbuf.c +++ /dev/null @@ -1,1514 +0,0 @@ -/** - * @file - * Packet buffer management - */ - -/** - * @defgroup pbuf Packet buffers (PBUF) - * @ingroup infrastructure - * - * Packets are built from the pbuf data structure. It supports dynamic - * memory allocation for packet contents or can reference externally - * managed packet contents both in RAM and ROM. Quick allocation for - * incoming packets is provided through pools with fixed sized pbufs. - * - * A packet may span over multiple pbufs, chained as a singly linked - * list. This is called a "pbuf chain". - * - * Multiple packets may be queued, also using this singly linked list. - * This is called a "packet queue". - * - * So, a packet queue consists of one or more pbuf chains, each of - * which consist of one or more pbufs. CURRENTLY, PACKET QUEUES ARE - * NOT SUPPORTED!!! Use helper structs to queue multiple packets. - * - * The differences between a pbuf chain and a packet queue are very - * precise but subtle. - * - * The last pbuf of a packet has a ->tot_len field that equals the - * ->len field. It can be found by traversing the list. If the last - * pbuf of a packet has a ->next field other than NULL, more packets - * are on the queue. - * - * Therefore, looping through a pbuf of a single packet, has an - * loop end condition (tot_len == p->len), NOT (next == NULL). - * - * Example of custom pbuf usage: @ref zerocopyrx - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -#include "lwip/opt.h" - -#include "lwip/pbuf.h" -#include "lwip/stats.h" -#include "lwip/def.h" -#include "lwip/mem.h" -#include "lwip/memp.h" -#include "lwip/sys.h" -#include "lwip/netif.h" -#if LWIP_TCP && TCP_QUEUE_OOSEQ -#include "lwip/priv/tcp_priv.h" -#endif -#if LWIP_CHECKSUM_ON_COPY -#include "lwip/inet_chksum.h" -#endif - -#include - -#define SIZEOF_STRUCT_PBUF LWIP_MEM_ALIGN_SIZE(sizeof(struct pbuf)) -/* Since the pool is created in memp, PBUF_POOL_BUFSIZE will be automatically - aligned there. Therefore, PBUF_POOL_BUFSIZE_ALIGNED can be used here. */ -#define PBUF_POOL_BUFSIZE_ALIGNED LWIP_MEM_ALIGN_SIZE(PBUF_POOL_BUFSIZE) - -static const struct pbuf * -pbuf_skip_const(const struct pbuf *in, u16_t in_offset, u16_t *out_offset); - -#if !LWIP_TCP || !TCP_QUEUE_OOSEQ || !PBUF_POOL_FREE_OOSEQ -#define PBUF_POOL_IS_EMPTY() -#else /* !LWIP_TCP || !TCP_QUEUE_OOSEQ || !PBUF_POOL_FREE_OOSEQ */ - -#if !NO_SYS -#ifndef PBUF_POOL_FREE_OOSEQ_QUEUE_CALL -#include "lwip/tcpip.h" -#define PBUF_POOL_FREE_OOSEQ_QUEUE_CALL() do { \ - if (tcpip_try_callback(pbuf_free_ooseq_callback, NULL) != ERR_OK) { \ - SYS_ARCH_PROTECT(old_level); \ - pbuf_free_ooseq_pending = 0; \ - SYS_ARCH_UNPROTECT(old_level); \ - } } while(0) -#endif /* PBUF_POOL_FREE_OOSEQ_QUEUE_CALL */ -#endif /* !NO_SYS */ - -volatile u8_t pbuf_free_ooseq_pending; -#define PBUF_POOL_IS_EMPTY() pbuf_pool_is_empty() - -/** - * Attempt to reclaim some memory from queued out-of-sequence TCP segments - * if we run out of pool pbufs. It's better to give priority to new packets - * if we're running out. - * - * This must be done in the correct thread context therefore this function - * can only be used with NO_SYS=0 and through tcpip_callback. - */ -#if !NO_SYS -static -#endif /* !NO_SYS */ -void -pbuf_free_ooseq(void) -{ - struct tcp_pcb *pcb; - SYS_ARCH_SET(pbuf_free_ooseq_pending, 0); - - for (pcb = tcp_active_pcbs; NULL != pcb; pcb = pcb->next) { - if (pcb->ooseq != NULL) { - /** 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); - return; - } - } -} - -#if !NO_SYS -/** - * Just a callback function for tcpip_callback() that calls pbuf_free_ooseq(). - */ -static void -pbuf_free_ooseq_callback(void *arg) -{ - LWIP_UNUSED_ARG(arg); - pbuf_free_ooseq(); -} -#endif /* !NO_SYS */ - -/** Queue a call to pbuf_free_ooseq if not already queued. */ -static void -pbuf_pool_is_empty(void) -{ -#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); - queued = pbuf_free_ooseq_pending; - pbuf_free_ooseq_pending = 1; - SYS_ARCH_UNPROTECT(old_level); - - if (!queued) { - /* queue a call to pbuf_free_ooseq if not already queued */ - PBUF_POOL_FREE_OOSEQ_QUEUE_CALL(); - } -#endif /* PBUF_POOL_FREE_OOSEQ_QUEUE_CALL */ -} -#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) -{ - p->next = NULL; - p->payload = payload; - p->tot_len = tot_len; - p->len = len; - p->type_internal = (u8_t)type; - p->flags = flags; - p->ref = 1; - p->if_idx = NETIF_NO_INDEX; -} - -/** - * @ingroup pbuf - * Allocates a pbuf of the given type (possibly a chain for PBUF_POOL type). - * - * The actual memory allocated for the pbuf is determined by the - * layer at which the pbuf is allocated and the requested size - * (from the size parameter). - * - * @param layer header size - * @param length size of the pbuf's payload - * @param type this parameter decides how and where the pbuf - * should be allocated as follows: - * - * - PBUF_RAM: buffer memory for pbuf is allocated as one large - * chunk. This includes protocol headers as well. - * - PBUF_ROM: no buffer memory is allocated for the pbuf, even for - * protocol headers. Additional headers must be prepended - * by allocating another pbuf and chain in to the front of - * the ROM pbuf. It is assumed that the memory used is really - * similar to ROM in that it is immutable and will not be - * changed. Memory which is dynamic should generally not - * be attached to PBUF_ROM pbufs. Use PBUF_REF instead. - * - PBUF_REF: no buffer memory is allocated for the pbuf, even for - * protocol headers. It is assumed that the pbuf is only - * being used in a single thread. If the pbuf gets queued, - * then pbuf_take should be called to copy the buffer. - * - PBUF_POOL: the pbuf is allocated as a pbuf chain, with pbufs from - * the pbuf pool that is allocated during pbuf_init(). - * - * @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) -{ - struct pbuf *p; - u16_t offset = (u16_t)layer; - LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_alloc(length=%"U16_F")\n", length)); - - switch (type) { - case PBUF_REF: /* fall through */ - case PBUF_ROM: - p = pbuf_alloc_reference(NULL, length, type); - break; - case PBUF_POOL: { - struct pbuf *q, *last; - u16_t rem_len; /* remaining length */ - p = NULL; - last = NULL; - rem_len = length; - do { - u16_t qlen; - q = (struct pbuf *)memp_malloc(MEMP_PBUF_POOL); - if (q == NULL) { - PBUF_POOL_IS_EMPTY(); - /* free chain so far allocated */ - if (p) { - pbuf_free(p); - } - /* bail out unsuccessfully */ - return NULL; - } - qlen = LWIP_MIN(rem_len, (u16_t)(PBUF_POOL_BUFSIZE_ALIGNED - LWIP_MEM_ALIGN_SIZE(offset))); - pbuf_init_alloced_pbuf(q, LWIP_MEM_ALIGN((void *)((u8_t *)q + SIZEOF_STRUCT_PBUF + offset)), - rem_len, qlen, type, 0); - LWIP_ASSERT("pbuf_alloc: pbuf q->payload properly aligned", - ((mem_ptr_t)q->payload % MEM_ALIGNMENT) == 0); - LWIP_ASSERT("PBUF_POOL_BUFSIZE must be bigger than MEM_ALIGNMENT", - (PBUF_POOL_BUFSIZE_ALIGNED - LWIP_MEM_ALIGN_SIZE(offset)) > 0 ); - if (p == NULL) { - /* allocated head of pbuf chain (into p) */ - p = q; - } else { - /* make previous pbuf point to this pbuf */ - last->next = q; - } - last = q; - rem_len = (u16_t)(rem_len - qlen); - offset = 0; - } while (rem_len > 0); - break; - } - case PBUF_RAM: { - u16_t payload_len = (u16_t)(LWIP_MEM_ALIGN_SIZE(offset) + LWIP_MEM_ALIGN_SIZE(length)); - mem_size_t alloc_len = (mem_size_t)(LWIP_MEM_ALIGN_SIZE(SIZEOF_STRUCT_PBUF) + payload_len); - - /* bug #50040: Check for integer overflow when calculating alloc_len */ - if ((payload_len < LWIP_MEM_ALIGN_SIZE(length)) || - (alloc_len < LWIP_MEM_ALIGN_SIZE(length))) { - return NULL; - } - - /* If pbuf is to be allocated in RAM, allocate memory for it. */ - p = (struct pbuf *)mem_malloc(alloc_len); - if (p == NULL) { - return NULL; - } - pbuf_init_alloced_pbuf(p, LWIP_MEM_ALIGN((void *)((u8_t *)p + SIZEOF_STRUCT_PBUF + offset)), - length, length, type, 0); - LWIP_ASSERT("pbuf_alloc: pbuf->payload properly aligned", - ((mem_ptr_t)p->payload % MEM_ALIGNMENT) == 0); - break; - } - default: - LWIP_ASSERT("pbuf_alloc: erroneous type", 0); - return NULL; - } - LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_alloc(length=%"U16_F") == %p\n", length, (void *)p)); - return p; -} - -/** - * @ingroup pbuf - * Allocates a pbuf for referenced data. - * Referenced data can be volatile (PBUF_REF) or long-lived (PBUF_ROM). - * - * The actual memory allocated for the pbuf is determined by the - * layer at which the pbuf is allocated and the requested size - * (from the size parameter). - * - * @param payload referenced payload - * @param length size of the pbuf's payload - * @param type this parameter decides how and where the pbuf - * should be allocated as follows: - * - * - PBUF_ROM: It is assumed that the memory used is really - * similar to ROM in that it is immutable and will not be - * changed. Memory which is dynamic should generally not - * be attached to PBUF_ROM pbufs. Use PBUF_REF instead. - * - PBUF_REF: It is assumed that the pbuf is only - * being used in a single thread. If the pbuf gets queued, - * then pbuf_take should be called to copy the buffer. - * - * @return the allocated pbuf. - */ -struct pbuf * -pbuf_alloc_reference(void *payload, u16_t length, pbuf_type type) -{ - struct pbuf *p; - LWIP_ASSERT("invalid pbuf_type", (type == PBUF_REF) || (type == PBUF_ROM)); - /* only allocate memory for the pbuf structure */ - p = (struct pbuf *)memp_malloc(MEMP_PBUF); - if (p == NULL) { - 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; - } - pbuf_init_alloced_pbuf(p, payload, length, length, type, 0); - return p; -} - - -#if LWIP_SUPPORT_CUSTOM_PBUF -/** - * @ingroup pbuf - * Initialize a custom pbuf (already allocated). - * Example of custom pbuf usage: @ref zerocopyrx - * - * @param l header size - * @param length size of the pbuf's payload - * @param type type of the pbuf (only used to treat the pbuf accordingly, as - * this function allocates no memory) - * @param p pointer to the custom pbuf to initialize (already allocated) - * @param payload_mem pointer to the buffer that is used for payload and headers, - * must be at least big enough to hold 'length' plus the header size, - * may be NULL if set later. - * ATTENTION: The caller is responsible for correct alignment of this buffer!! - * @param payload_mem_len the size of the 'payload_mem' buffer, must be at least - * 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) -{ - u16_t offset = (u16_t)l; - 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) { - LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_LEVEL_WARNING, ("pbuf_alloced_custom(length=%"U16_F") buffer too short\n", length)); - return NULL; - } - - if (payload_mem != NULL) { - payload = (u8_t *)payload_mem + LWIP_MEM_ALIGN_SIZE(offset); - } else { - payload = NULL; - } - pbuf_init_alloced_pbuf(&p->pbuf, payload, length, length, type, PBUF_FLAG_IS_CUSTOM); - return &p->pbuf; -} -#endif /* LWIP_SUPPORT_CUSTOM_PBUF */ - -/** - * @ingroup pbuf - * Shrink a pbuf chain to a desired length. - * - * @param p pbuf to shrink. - * @param new_len desired new length of pbuf chain - * - * Depending on the desired length, the first few pbufs in a chain might - * be skipped and left unchanged. The new last pbuf in the chain will be - * resized, and any remaining pbufs will be freed. - * - * @note If the pbuf is ROM/REF, only the ->tot_len and ->len fields are adjusted. - * @note May not be called on a packet queue. - * - * @note Despite its name, pbuf_realloc cannot grow the size of a pbuf (chain). - */ -void -pbuf_realloc(struct pbuf *p, u16_t new_len) -{ - struct pbuf *q; - u16_t rem_len; /* remaining length */ - u16_t shrink; - - LWIP_ASSERT("pbuf_realloc: p != NULL", p != NULL); - - /* desired length larger than current length? */ - if (new_len >= p->tot_len) { - /* enlarging not yet supported */ - 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); - - /* first, step over any pbufs that should remain in the chain */ - rem_len = new_len; - q = p; - /* should this pbuf be kept? */ - while (rem_len > q->len) { - /* decrease remaining length by pbuf length */ - rem_len = (u16_t)(rem_len - q->len); - /* decrease total length indicator */ - q->tot_len = (u16_t)(q->tot_len - shrink); - /* proceed to next pbuf in chain */ - q = q->next; - LWIP_ASSERT("pbuf_realloc: q != NULL", q != NULL); - } - /* 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) -#if LWIP_SUPPORT_CUSTOM_PBUF - && ((q->flags & PBUF_FLAG_IS_CUSTOM) == 0) -#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)); - LWIP_ASSERT("mem_trim returned q == NULL", q != NULL); - } - /* adjust length fields for new last pbuf */ - q->len = rem_len; - q->tot_len = q->len; - - /* any remaining pbufs in chain? */ - if (q->next != NULL) { - /* free remaining pbufs in chain */ - pbuf_free(q->next); - } - /* q is last packet in chain */ - q->next = NULL; - -} - -/** - * Adjusts the payload pointer to reveal headers in the payload. - * @see pbuf_add_header. - * - * @param p pbuf to change the header size. - * @param header_size_increment Number of bytes to increment header size. - * @param force Allow 'header_size_increment > 0' for PBUF_REF/PBUF_ROM types - * - * @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) -{ - u16_t type_internal; - void *payload; - u16_t increment_magnitude; - - LWIP_ASSERT("p != NULL", p != NULL); - if ((p == NULL) || (header_size_increment > 0xFFFF)) { - return 1; - } - if (header_size_increment == 0) { - return 0; - } - - increment_magnitude = (u16_t)header_size_increment; - /* Do not allow tot_len to wrap as a result. */ - if ((u16_t)(increment_magnitude + p->tot_len) < increment_magnitude) { - return 1; - } - - type_internal = p->type_internal; - - /* pbuf types containing payloads? */ - if (type_internal & PBUF_TYPE_FLAG_STRUCT_DATA_CONTIGUOUS) { - /* set new payload pointer */ - payload = (u8_t *)p->payload - header_size_increment; - /* boundary check fails? */ - if ((u8_t *)payload < (u8_t *)p + SIZEOF_STRUCT_PBUF) { - 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; - } - /* pbuf types referring to external payloads? */ - } else { - /* hide a header in the payload? */ - if (force) { - payload = (u8_t *)p->payload - header_size_increment; - } else { - /* cannot expand payload to front (yet!) - * bail out unsuccessfully */ - return 1; - } - } - 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; - p->len = (u16_t)(p->len + increment_magnitude); - p->tot_len = (u16_t)(p->tot_len + increment_magnitude); - - - return 0; -} - -/** - * Adjusts the payload pointer to reveal headers in the payload. - * - * Adjusts the ->payload pointer so that space for a header - * appears in the pbuf payload. - * - * The ->payload, ->tot_len and ->len fields are adjusted. - * - * @param p pbuf to change the header size. - * @param header_size_increment Number of bytes to increment header size which - * increases the size of the pbuf. New space is on the front. - * If header_size_increment is 0, this function does nothing and returns successful. - * - * PBUF_ROM and PBUF_REF type buffers cannot have their sizes increased, so - * the call will fail. A check is made that the increase in header size does - * not move the payload pointer in front of the start of the buffer. - * - * @return non-zero on failure, zero on success. - * - */ -u8_t -pbuf_add_header(struct pbuf *p, size_t header_size_increment) -{ - return pbuf_add_header_impl(p, header_size_increment, 0); -} - -/** - * Same as @ref pbuf_add_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_add_header_force(struct pbuf *p, size_t header_size_increment) -{ - return pbuf_add_header_impl(p, header_size_increment, 1); -} - -/** - * Adjusts the payload pointer to hide headers in the payload. - * - * Adjusts the ->payload pointer so that space for a header - * disappears in the pbuf payload. - * - * The ->payload, ->tot_len and ->len fields are adjusted. - * - * @param p pbuf to change the header size. - * @param header_size_decrement Number of bytes to decrement header size which - * decreases the size of the pbuf. - * If header_size_decrement is 0, this function does nothing and returns successful. - * @return non-zero on failure, zero on success. - * - */ -u8_t -pbuf_remove_header(struct pbuf *p, size_t header_size_decrement) -{ - void *payload; - u16_t increment_magnitude; - - LWIP_ASSERT("p != NULL", p != NULL); - if ((p == NULL) || (header_size_decrement > 0xFFFF)) { - return 1; - } - if (header_size_decrement == 0) { - return 0; - } - - increment_magnitude = (u16_t)header_size_decrement; - /* 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;); - - /* remember current payload pointer */ - payload = p->payload; - 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; - /* modify pbuf length fields */ - p->len = (u16_t)(p->len - increment_magnitude); - p->tot_len = (u16_t)(p->tot_len - increment_magnitude); - - 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; -} - -static u8_t -pbuf_header_impl(struct pbuf *p, s16_t header_size_increment, u8_t force) -{ - if (header_size_increment < 0) { - return pbuf_remove_header(p, (size_t) - header_size_increment); - } else { - return pbuf_add_header_impl(p, (size_t)header_size_increment, force); - } -} - -/** - * Adjusts the payload pointer to hide or reveal headers in the payload. - * - * Adjusts the ->payload pointer so that space for a header - * (dis)appears in the pbuf payload. - * - * The ->payload, ->tot_len and ->len fields are adjusted. - * - * @param p pbuf to change the header size. - * @param header_size_increment Number of bytes to increment header size which - * increases the size of the pbuf. New space is on the front. - * (Using a negative value decreases the header size.) - * If header_size_increment is 0, this function does nothing and returns successful. - * - * PBUF_ROM and PBUF_REF type buffers cannot have their sizes increased, so - * the call will fail. A check is made that the increase in header size does - * not move the payload pointer in front of the start of the buffer. - * @return non-zero on failure, zero on success. - * - */ -u8_t -pbuf_header(struct pbuf *p, s16_t header_size_increment) -{ - return pbuf_header_impl(p, header_size_increment, 0); -} - -/** - * 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) -{ - return pbuf_header_impl(p, header_size_increment, 1); -} - -/** Similar to pbuf_header(-size) but de-refs header pbufs for (size >= p->len) - * - * @param q pbufs to operate on - * @param size The number of bytes to remove from the beginning of the pbuf list. - * While size >= p->len, pbufs are freed. - * ATTENTION: this is the opposite direction as @ref pbuf_header, but - * takes an u16_t not s16_t! - * @return the new head pbuf - */ -struct pbuf * -pbuf_free_header(struct pbuf *q, u16_t size) -{ - struct pbuf *p = q; - u16_t free_left = size; - while (free_left && p) { - if (free_left >= p->len) { - struct pbuf *f = p; - free_left = (u16_t)(free_left - p->len); - p = p->next; - f->next = 0; - pbuf_free(f); - } else { - pbuf_remove_header(p, free_left); - free_left = 0; - } - } - return p; -} - -/** - * @ingroup pbuf - * Dereference a pbuf chain or queue and deallocate any no-longer-used - * pbufs at the head of this chain or queue. - * - * Decrements the pbuf reference count. If it reaches zero, the pbuf is - * deallocated. - * - * For a pbuf chain, this is repeated for each pbuf in the chain, - * up to the first pbuf which has a non-zero reference count after - * decrementing. So, when all reference counts are one, the whole - * chain is free'd. - * - * @param p The pbuf (chain) to be dereferenced. - * - * @return the number of pbufs that were de-allocated - * from the head of the chain. - * - * @note MUST NOT be called on a packet queue (Not verified to work yet). - * @note the reference counter of a pbuf equals the number of pointers - * that refer to the pbuf (or into the pbuf). - * - * @internal examples: - * - * Assuming existing chains a->b->c with the following reference - * counts, calling pbuf_free(a) results in: - * - * 1->2->3 becomes ...1->3 - * 3->3->3 becomes 2->3->3 - * 1->1->2 becomes ......1 - * 2->1->1 becomes 1->1->1 - * 1->1->1 becomes ....... - * - */ -u8_t -pbuf_free(struct pbuf *p) -{ - u8_t alloc_src; - struct pbuf *q; - u8_t count; - - if (p == NULL) { - LWIP_ASSERT("p != NULL", p != NULL); - /* 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; - } - LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free(%p)\n", (void *)p)); - - PERF_START; - - count = 0; - /* de-allocate all consecutive pbufs from the head of the chain that - * obtain a zero reference count after decrementing*/ - while (p != NULL) { - 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); - /* all pbufs in a chain are referenced at least once */ - LWIP_ASSERT("pbuf_free: p->ref > 0", p->ref > 0); - /* decrease reference count (number of pointers to pbuf) */ - ref = --(p->ref); - SYS_ARCH_UNPROTECT(old_level); - /* this pbuf is no longer referenced to? */ - if (ref == 0) { - /* remember next pbuf in chain for next iteration */ - q = p->next; - LWIP_DEBUGF( PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free: deallocating %p\n", (void *)p)); - alloc_src = pbuf_get_allocsrc(p); -#if LWIP_SUPPORT_CUSTOM_PBUF - /* is this a custom pbuf? */ - if ((p->flags & PBUF_FLAG_IS_CUSTOM) != 0) { - struct pbuf_custom *pc = (struct pbuf_custom *)p; - LWIP_ASSERT("pc->custom_free_function != NULL", pc->custom_free_function != NULL); - pc->custom_free_function(p); - } 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) { - memp_free(MEMP_PBUF_POOL, p); - /* is this a ROM or RAM referencing pbuf? */ - } else if (alloc_src == PBUF_TYPE_ALLOC_SRC_MASK_STD_MEMP_PBUF) { - memp_free(MEMP_PBUF, p); - /* type == PBUF_RAM */ - } else if (alloc_src == PBUF_TYPE_ALLOC_SRC_MASK_STD_HEAP) { - mem_free(p); - } else { - /* @todo: support freeing other types */ - LWIP_ASSERT("invalid pbuf type", 0); - } - } - count++; - /* proceed to next pbuf */ - p = q; - /* 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; - } - } - PERF_STOP("pbuf_free"); - /* return number of de-allocated pbufs */ - return count; -} - -/** - * Count number of pbufs in a chain - * - * @param p first pbuf of chain - * @return the number of pbufs in a chain - */ -u16_t -pbuf_clen(const struct pbuf *p) -{ - u16_t len; - - len = 0; - while (p != NULL) { - ++len; - p = p->next; - } - return len; -} - -/** - * @ingroup pbuf - * Increment the reference count of the pbuf. - * - * @param p pbuf to increase reference counter of - * - */ -void -pbuf_ref(struct pbuf *p) -{ - /* pbuf given? */ - if (p != NULL) { - SYS_ARCH_SET(p->ref, (LWIP_PBUF_REF_T)(p->ref + 1)); - LWIP_ASSERT("pbuf ref overflow", p->ref > 0); - } -} - -/** - * @ingroup pbuf - * Concatenate two pbufs (each may be a pbuf chain) and take over - * the caller's reference of the tail pbuf. - * - * @note The caller MAY NOT reference the tail pbuf afterwards. - * Use pbuf_chain() for that purpose. - * - * This function explicitly does not check for tot_len overflow to prevent - * failing to queue too long pbufs. This can produce invalid pbufs, so - * handle with care! - * - * @see pbuf_chain() - */ -void -pbuf_cat(struct pbuf *h, struct pbuf *t) -{ - struct pbuf *p; - - LWIP_ERROR("(h != NULL) && (t != NULL) (programmer violates API)", - ((h != NULL) && (t != NULL)), return;); - - /* proceed to last pbuf of chain */ - for (p = h; p->next != NULL; p = p->next) { - /* add total length of second chain to all totals of first chain */ - p->tot_len = (u16_t)(p->tot_len + t->tot_len); - } - /* { 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); - LWIP_ASSERT("p->next == NULL", p->next == NULL); - /* add total length of second chain to last pbuf total of first chain */ - p->tot_len = (u16_t)(p->tot_len + t->tot_len); - /* chain last pbuf of head (p) with first of tail (t) */ - p->next = t; - /* 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. - */ -} - -/** - * @ingroup pbuf - * Chain two pbufs (or pbuf chains) together. - * - * The caller MUST call pbuf_free(t) once it has stopped - * using it. Use pbuf_cat() instead if you no longer use t. - * - * @param h head pbuf (chain) - * @param t tail pbuf (chain) - * @note The pbufs MUST belong to the same packet. - * @note MAY NOT be called on a packet queue. - * - * The ->tot_len fields of all pbufs of the head chain are adjusted. - * The ->next field of the last pbuf of the head chain is adjusted. - * The ->ref field of the first pbuf of the tail chain is adjusted. - * - */ -void -pbuf_chain(struct pbuf *h, struct pbuf *t) -{ - pbuf_cat(h, t); - /* t is now referenced by h */ - pbuf_ref(t); - LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_chain: %p references %p\n", (void *)h, (void *)t)); -} - -/** - * Dechains the first pbuf from its succeeding pbufs in the chain. - * - * Makes p->tot_len field equal to p->len. - * @param p pbuf to dechain - * @return remainder of the pbuf chain, or NULL if it was de-allocated. - * @note May not be called on a packet queue. - */ -struct pbuf * -pbuf_dechain(struct pbuf *p) -{ - struct pbuf *q; - u8_t tail_gone = 1; - /* tail */ - q = p->next; - /* pbuf has successor in chain? */ - if (q != NULL) { - /* assert tot_len invariant: (p->tot_len == p->len + (p->next? p->next->tot_len: 0) */ - LWIP_ASSERT("p->tot_len == p->len + q->tot_len", q->tot_len == p->tot_len - p->len); - /* enforce invariant if assertion is disabled */ - q->tot_len = (u16_t)(p->tot_len - p->len); - /* decouple pbuf from remainder */ - p->next = NULL; - /* total length of pbuf p is its own length only */ - p->tot_len = p->len; - /* q is no longer referenced by p, free it */ - LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_dechain: unreferencing %p\n", (void *)q)); - tail_gone = pbuf_free(q); - if (tail_gone > 0) { - LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, - ("pbuf_dechain: deallocated %p (as it is no longer referenced)\n", (void *)q)); - } - /* return remaining tail or NULL if deallocated */ - } - /* assert tot_len invariant: (p->tot_len == p->len + (p->next? p->next->tot_len: 0) */ - LWIP_ASSERT("p->tot_len == p->len", p->tot_len == p->len); - return ((tail_gone > 0) ? NULL : q); -} - -/** - * @ingroup pbuf - * Create PBUF_RAM copies of pbufs. - * - * Used to queue packets on behalf of the lwIP stack, such as - * ARP based queueing. - * - * @note You MUST explicitly use p = pbuf_take(p); - * - * @note Only one packet is copied, no packet queue! - * - * @param p_to pbuf destination of the copy - * @param p_from pbuf source of the copy - * - * @return ERR_OK if pbuf was copied - * 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) -{ - size_t offset_to = 0, offset_from = 0, len; - - 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) && - (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)) { - /* complete current p_from fits into current p_to */ - len = p_from->len - offset_from; - } else { - /* current p_from does not fit into current p_to */ - len = p_to->len - offset_to; - } - MEMCPY((u8_t *)p_to->payload + offset_to, (u8_t *)p_from->payload + offset_from, len); - offset_to += len; - offset_from += len; - LWIP_ASSERT("offset_to <= p_to->len", offset_to <= p_to->len); - LWIP_ASSERT("offset_from <= p_from->len", offset_from <= p_from->len); - if (offset_from >= p_from->len) { - /* on to next p_from (if any) */ - offset_from = 0; - p_from = p_from->next; - } - if (offset_to == p_to->len) { - /* on to next p_to (if any) */ - offset_to = 0; - p_to = p_to->next; - LWIP_ERROR("p_to != NULL", (p_to != NULL) || (p_from == NULL), return ERR_ARG;); - } - - if ((p_from != NULL) && (p_from->len == p_from->tot_len)) { - /* don't copy more than one packet! */ - LWIP_ERROR("pbuf_copy() does not allow packet queues!", - (p_from->next == NULL), return ERR_VAL;); - } - if ((p_to != NULL) && (p_to->len == p_to->tot_len)) { - /* don't copy more than one packet! */ - LWIP_ERROR("pbuf_copy() does not allow packet queues!", - (p_to->next == NULL), return ERR_VAL;); - } - } while (p_from); - LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_copy: end of chain reached.\n")); - return ERR_OK; -} - -/** - * @ingroup pbuf - * Copy (part of) the contents of a packet buffer - * to an application supplied buffer. - * - * @param buf the pbuf from which to copy data - * @param dataptr the application supplied buffer - * @param len length of data to copy (dataptr must be big enough). No more - * than buf->tot_len will be copied, irrespective of len - * @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) -{ - const struct pbuf *p; - u16_t left = 0; - u16_t buf_copy_len; - u16_t copied_total = 0; - - LWIP_ERROR("pbuf_copy_partial: invalid buf", (buf != NULL), return 0;); - LWIP_ERROR("pbuf_copy_partial: invalid dataptr", (dataptr != NULL), return 0;); - - /* 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) { - if ((offset != 0) && (offset >= p->len)) { - /* don't copy from this buffer -> on to the next */ - offset = (u16_t)(offset - p->len); - } else { - /* copy from this buffer. maybe only partially. */ - buf_copy_len = (u16_t)(p->len - offset); - if (buf_copy_len > len) { - buf_copy_len = len; - } - /* copy the necessary parts of the buffer */ - MEMCPY(&((char *)dataptr)[left], &((char *)p->payload)[offset], buf_copy_len); - copied_total = (u16_t)(copied_total + buf_copy_len); - left = (u16_t)(left + buf_copy_len); - len = (u16_t)(len - buf_copy_len); - offset = 0; - } - } - return copied_total; -} - -/** - * @ingroup pbuf - * Get part of a pbuf's payload as contiguous memory. The returned memory is - * either a pointer into the pbuf's payload or, if split over multiple pbufs, - * a copy into the user-supplied buffer. - * - * @param p the pbuf from which to copy data - * @param buffer the application supplied buffer - * @param bufsize size of the application supplied buffer - * @param len length of data to copy (dataptr must be big enough). No more - * than buf->tot_len will be copied, irrespective of len - * @param offset offset into the packet buffer from where to begin copying len bytes - * @return the number of bytes copied, or 0 on failure - */ -void * -pbuf_get_contiguous(const struct pbuf *p, void *buffer, size_t bufsize, u16_t len, u16_t offset) -{ - const struct pbuf *q; - u16_t out_offset; - - LWIP_ERROR("pbuf_get_contiguous: invalid buf", (p != NULL), return NULL;); - LWIP_ERROR("pbuf_get_contiguous: invalid dataptr", (buffer != NULL), return NULL;); - LWIP_ERROR("pbuf_get_contiguous: invalid dataptr", (bufsize >= len), return NULL;); - - q = pbuf_skip_const(p, offset, &out_offset); - if (q != NULL) { - if (q->len >= (out_offset + len)) { - /* all data in this pbuf, return zero-copy */ - return (u8_t *)q->payload + out_offset; - } - /* need to copy */ - if (pbuf_copy_partial(q, buffer, len, out_offset) != len) { - /* copying failed: pbuf is too short */ - return NULL; - } - return buffer; - } - /* pbuf is too short (offset does not fit in) */ - return NULL; -} - -#if LWIP_TCP && TCP_QUEUE_OOSEQ && LWIP_WND_SCALE -/** - * This method modifies a 'pbuf chain', so that its total length is - * smaller than 64K. The remainder of the original pbuf chain is stored - * in *rest. - * This function never creates new pbufs, but splits an existing chain - * in two parts. The tot_len of the modified packet queue will likely be - * smaller than 64K. - * 'packet queues' are not supported by this function. - * - * @param p the pbuf queue to be split - * @param rest pointer to store the remainder (after the first 64K) - */ -void pbuf_split_64k(struct pbuf *p, struct pbuf **rest) -{ - *rest = NULL; - if ((p != NULL) && (p->next != NULL)) { - u16_t tot_len_front = p->len; - struct pbuf *i = p; - struct pbuf *r = p->next; - - /* continue until the total length (summed up as u16_t) overflows */ - while ((r != NULL) && ((u16_t)(tot_len_front + r->len) >= tot_len_front)) { - tot_len_front = (u16_t)(tot_len_front + r->len); - i = r; - r = r->next; - } - /* i now points to last packet of the first segment. Set next - pointer to NULL */ - i->next = NULL; - - if (r != NULL) { - /* Update the tot_len field in the first part */ - for (i = p; i != NULL; i = i->next) { - i->tot_len = (u16_t)(i->tot_len - r->tot_len); - LWIP_ASSERT("tot_len/len mismatch in last pbuf", - (i->next != NULL) || (i->tot_len == i->len)); - } - if (p->flags & PBUF_FLAG_TCP_FIN) { - r->flags |= PBUF_FLAG_TCP_FIN; - } - - /* tot_len field in rest does not need modifications */ - /* reference counters do not need modifications */ - *rest = r; - } - } -} -#endif /* LWIP_TCP && TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ - -/* Actual implementation of pbuf_skip() but returning const pointer... */ -static const struct pbuf * -pbuf_skip_const(const struct pbuf *in, u16_t in_offset, u16_t *out_offset) -{ - u16_t offset_left = in_offset; - const struct pbuf *q = in; - - /* get the correct pbuf */ - while ((q != NULL) && (q->len <= offset_left)) { - offset_left = (u16_t)(offset_left - q->len); - q = q->next; - } - if (out_offset != NULL) { - *out_offset = offset_left; - } - return q; -} - -/** - * @ingroup pbuf - * Skip a number of bytes at the start of a pbuf - * - * @param in input pbuf - * @param in_offset offset to skip - * @param out_offset resulting offset in the returned pbuf - * @return the pbuf in the queue where the offset is - */ -struct pbuf * -pbuf_skip(struct pbuf *in, u16_t in_offset, u16_t *out_offset) -{ - const struct pbuf *out = pbuf_skip_const(in, in_offset, out_offset); - return LWIP_CONST_CAST(struct pbuf *, out); -} - -/** - * @ingroup pbuf - * Copy application supplied data into a pbuf. - * This function can only be used to copy the equivalent of buf->tot_len data. - * - * @param buf pbuf to fill with data - * @param dataptr application supplied data buffer - * @param len length of the application supplied data buffer - * - * @return ERR_OK if successful, ERR_MEM if the pbuf is not big enough - */ -err_t -pbuf_take(struct pbuf *buf, const void *dataptr, u16_t len) -{ - struct pbuf *p; - size_t buf_copy_len; - size_t total_copy_len = len; - size_t copied_total = 0; - - LWIP_ERROR("pbuf_take: invalid buf", (buf != NULL), return ERR_ARG;); - LWIP_ERROR("pbuf_take: invalid dataptr", (dataptr != NULL), return ERR_ARG;); - LWIP_ERROR("pbuf_take: buf not large enough", (buf->tot_len >= len), return ERR_MEM;); - - if ((buf == NULL) || (dataptr == NULL) || (buf->tot_len < len)) { - return ERR_ARG; - } - - /* Note some systems use byte copy if dataptr or one of the pbuf payload pointers are unaligned. */ - for (p = buf; total_copy_len != 0; p = p->next) { - LWIP_ASSERT("pbuf_take: invalid pbuf", p != NULL); - buf_copy_len = total_copy_len; - if (buf_copy_len > p->len) { - /* this pbuf cannot hold all remaining data */ - buf_copy_len = p->len; - } - /* copy the necessary parts of the buffer */ - MEMCPY(p->payload, &((const char *)dataptr)[copied_total], buf_copy_len); - total_copy_len -= buf_copy_len; - copied_total += buf_copy_len; - } - LWIP_ASSERT("did not copy all data", total_copy_len == 0 && copied_total == len); - return ERR_OK; -} - -/** - * @ingroup pbuf - * Same as pbuf_take() but puts data at an offset - * - * @param buf pbuf to fill with data - * @param dataptr application supplied data buffer - * @param len length of the application supplied data buffer - * @param offset offset in pbuf where to copy dataptr to - * - * @return ERR_OK if successful, ERR_MEM if the pbuf is not big enough - */ -err_t -pbuf_take_at(struct pbuf *buf, const void *dataptr, u16_t len, u16_t offset) -{ - u16_t target_offset; - struct pbuf *q = pbuf_skip(buf, offset, &target_offset); - - /* return requested data if pbuf is OK */ - if ((q != NULL) && (q->tot_len >= target_offset + len)) { - u16_t remaining_len = len; - const u8_t *src_ptr = (const u8_t *)dataptr; - /* copy the part that goes into the first pbuf */ - u16_t first_copy_len; - LWIP_ASSERT("check pbuf_skip result", target_offset < q->len); - first_copy_len = (u16_t)LWIP_MIN(q->len - target_offset, len); - MEMCPY(((u8_t *)q->payload) + target_offset, dataptr, first_copy_len); - remaining_len = (u16_t)(remaining_len - first_copy_len); - src_ptr += first_copy_len; - if (remaining_len > 0) { - return pbuf_take(q->next, src_ptr, remaining_len); - } - return ERR_OK; - } - return ERR_MEM; -} - -/** - * @ingroup pbuf - * Creates a single pbuf out of a queue of pbufs. - * - * @remark: Either the source pbuf 'p' is freed by this function or the original - * pbuf 'p' is returned, therefore the caller has to check the result! - * - * @param p the source pbuf - * @param layer pbuf_layer of the new pbuf - * - * @return a new, single pbuf (p->next is NULL) - * or the old pbuf if allocation fails - */ -struct pbuf * -pbuf_coalesce(struct pbuf *p, pbuf_layer layer) -{ - struct pbuf *q; - if (p->next == NULL) { - return p; - } - q = pbuf_clone(layer, PBUF_RAM, p); - if (q == NULL) { - /* @todo: what do we do now? */ - return p; - } - pbuf_free(p); - return q; -} - -/** - * @ingroup pbuf - * Allocates a new pbuf of same length (via pbuf_alloc()) and copies the source - * pbuf into this new pbuf (using pbuf_copy()). - * - * @param layer pbuf_layer of the new pbuf - * @param type this parameter decides how and where the pbuf should be allocated - * (@see pbuf_alloc()) - * @param p the source pbuf - * - * @return a new pbuf or NULL if allocation fails - */ -struct pbuf * -pbuf_clone(pbuf_layer layer, pbuf_type type, struct pbuf *p) -{ - struct pbuf *q; - err_t err; - q = pbuf_alloc(layer, p->tot_len, type); - if (q == NULL) { - return NULL; - } - err = pbuf_copy(q, p); - LWIP_UNUSED_ARG(err); /* in case of LWIP_NOASSERT */ - LWIP_ASSERT("pbuf_copy failed", err == ERR_OK); - return q; -} - -#if LWIP_CHECKSUM_ON_COPY -/** - * Copies data into a single pbuf (*not* into a pbuf queue!) and updates - * the checksum while copying - * - * @param p the pbuf to copy data into - * @param start_offset offset of p->payload where to copy the data to - * @param dataptr data to copy into the pbuf - * @param len length of data to copy into the pbuf - * @param chksum pointer to the checksum which is updated - * @return ERR_OK if successful, another error if the data does not fit - * within the (first) pbuf (no pbuf queues!) - */ -err_t -pbuf_fill_chksum(struct pbuf *p, u16_t start_offset, const void *dataptr, - u16_t len, u16_t *chksum) -{ - u32_t acc; - u16_t copy_chksum; - char *dst_ptr; - LWIP_ASSERT("p != NULL", p != NULL); - LWIP_ASSERT("dataptr != NULL", dataptr != NULL); - LWIP_ASSERT("chksum != NULL", chksum != NULL); - LWIP_ASSERT("len != 0", len != 0); - - if ((start_offset >= p->len) || (start_offset + len > p->len)) { - return ERR_ARG; - } - - dst_ptr = ((char *)p->payload) + start_offset; - copy_chksum = LWIP_CHKSUM_COPY(dst_ptr, dataptr, len); - if ((start_offset & 1) != 0) { - copy_chksum = SWAP_BYTES_IN_WORD(copy_chksum); - } - acc = *chksum; - acc += copy_chksum; - *chksum = FOLD_U32T(acc); - return ERR_OK; -} -#endif /* LWIP_CHECKSUM_ON_COPY */ - -/** - * @ingroup pbuf - * Get one byte from the specified position in a pbuf - * WARNING: returns zero for offset >= p->tot_len - * - * @param p pbuf to parse - * @param offset offset into p of the byte to return - * @return byte at an offset into p OR ZERO IF 'offset' >= p->tot_len - */ -u8_t -pbuf_get_at(const struct pbuf *p, u16_t offset) -{ - int ret = pbuf_try_get_at(p, offset); - if (ret >= 0) { - return (u8_t)ret; - } - return 0; -} - -/** - * @ingroup pbuf - * Get one byte from the specified position in a pbuf - * - * @param p pbuf to parse - * @param offset offset into p of the byte to return - * @return byte at an offset into p [0..0xFF] OR negative if 'offset' >= p->tot_len - */ -int -pbuf_try_get_at(const struct pbuf *p, u16_t offset) -{ - u16_t q_idx; - const struct pbuf *q = pbuf_skip_const(p, offset, &q_idx); - - /* return requested data if pbuf is OK */ - if ((q != NULL) && (q->len > q_idx)) { - return ((u8_t *)q->payload)[q_idx]; - } - return -1; -} - -/** - * @ingroup pbuf - * Put one byte to the specified position in a pbuf - * WARNING: silently ignores offset >= p->tot_len - * - * @param p pbuf to fill - * @param offset offset into p of the byte to write - * @param data byte to write at an offset into p - */ -void -pbuf_put_at(struct pbuf *p, u16_t offset, u8_t data) -{ - u16_t q_idx; - struct pbuf *q = pbuf_skip(p, offset, &q_idx); - - /* write requested data if pbuf is OK */ - if ((q != NULL) && (q->len > q_idx)) { - ((u8_t *)q->payload)[q_idx] = data; - } -} - -/** - * @ingroup pbuf - * Compare pbuf contents at specified offset with memory s2, both of length n - * - * @param p pbuf to compare - * @param offset offset into p at which to start comparing - * @param s2 buffer to compare - * @param n length of buffer to compare - * @return zero if equal, nonzero otherwise - * (0xffff if p is too short, diffoffset+1 otherwise) - */ -u16_t -pbuf_memcmp(const struct pbuf *p, u16_t offset, const void *s2, u16_t n) -{ - u16_t start = offset; - const struct pbuf *q = p; - u16_t i; - - /* pbuf long enough to perform check? */ - if (p->tot_len < (offset + n)) { - return 0xffff; - } - - /* get the correct pbuf from chain. We know it succeeds because of p->tot_len check above. */ - while ((q != NULL) && (q->len <= start)) { - start = (u16_t)(start - q->len); - q = q->next; - } - - /* return requested data if pbuf is OK */ - for (i = 0; i < n; i++) { - /* We know pbuf_get_at() succeeds because of p->tot_len check above. */ - u8_t a = pbuf_get_at(q, (u16_t)(start + i)); - u8_t b = ((const u8_t *)s2)[i]; - if (a != b) { - return (u16_t)LWIP_MIN(i + 1, 0xFFFF); - } - } - return 0; -} - -/** - * @ingroup pbuf - * Find occurrence of mem (with length mem_len) in pbuf p, starting at offset - * start_offset. - * - * @param p pbuf to search, maximum length is 0xFFFE since 0xFFFF is used as - * return value 'not found' - * @param mem search for the contents of this buffer - * @param mem_len length of 'mem' - * @param start_offset offset into p at which to start searching - * @return 0xFFFF if substr was not found in p or the index where it was found - */ -u16_t -pbuf_memfind(const struct pbuf *p, const void *mem, u16_t mem_len, u16_t start_offset) -{ - u16_t i; - u16_t max_cmp_start = (u16_t)(p->tot_len - mem_len); - if (p->tot_len >= mem_len + start_offset) { - for (i = start_offset; i <= max_cmp_start; i++) { - u16_t plus = pbuf_memcmp(p, i, mem, mem_len); - if (plus == 0) { - return i; - } - } - } - return 0xFFFF; -} - -/** - * Find occurrence of substr with length substr_len in pbuf p, start at offset - * start_offset - * WARNING: in contrast to strstr(), this one does not stop at the first \0 in - * the pbuf/source string! - * - * @param p pbuf to search, maximum length is 0xFFFE since 0xFFFF is used as - * return value 'not found' - * @param substr string to search for in p, maximum length is 0xFFFE - * @return 0xFFFF if substr was not found in p or the index where it was found - */ -u16_t -pbuf_strstr(const struct pbuf *p, const char *substr) -{ - size_t substr_len; - if ((substr == NULL) || (substr[0] == 0) || (p->tot_len == 0xFFFF)) { - return 0xFFFF; - } - substr_len = strlen(substr); - if (substr_len >= 0xFFFF) { - return 0xFFFF; - } - return pbuf_memfind(p, substr, (u16_t)substr_len, 0); -} diff --git a/Middlewares/Third_Party/LwIP/src/core/raw.c b/Middlewares/Third_Party/LwIP/src/core/raw.c deleted file mode 100644 index 3b34544..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/raw.c +++ /dev/null @@ -1,671 +0,0 @@ -/** - * @file - * Implementation of raw protocol PCBs for low-level handling of - * different types of protocols besides (or overriding) those - * already available in lwIP.\n - * See also @ref raw_raw - * - * @defgroup raw_raw RAW - * @ingroup callbackstyle_api - * Implementation of raw protocol PCBs for low-level handling of - * different types of protocols besides (or overriding) those - * already available in lwIP.\n - * @see @ref api - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -#include "lwip/opt.h" - -#if LWIP_RAW /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/def.h" -#include "lwip/memp.h" -#include "lwip/ip_addr.h" -#include "lwip/netif.h" -#include "lwip/raw.h" -#include "lwip/priv/raw_priv.h" -#include "lwip/stats.h" -#include "lwip/ip6.h" -#include "lwip/ip6_addr.h" -#include "lwip/inet_chksum.h" - -#include - -/** The list of RAW PCBs */ -static struct raw_pcb *raw_pcbs; - -static u8_t -raw_input_local_match(struct raw_pcb *pcb, u8_t broadcast) -{ - LWIP_UNUSED_ARG(broadcast); /* in IPv6 only case */ - - /* check if PCB is bound to specific netif */ - if ((pcb->netif_idx != NETIF_NO_INDEX) && - (pcb->netif_idx != netif_get_index(ip_data.current_input_netif))) { - return 0; - } - -#if LWIP_IPV4 && LWIP_IPV6 - /* Dual-stack: PCBs listening to any IP type also listen to any IP address */ - if (IP_IS_ANY_TYPE_VAL(pcb->local_ip)) { -#if IP_SOF_BROADCAST_RECV - if ((broadcast != 0) && !ip_get_option(pcb, SOF_BROADCAST)) { - return 0; - } -#endif /* IP_SOF_BROADCAST_RECV */ - return 1; - } -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - - /* 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: receive all broadcasts - * Note: broadcast variable can only be 1 if it is an IPv4 broadcast */ - if (broadcast != 0) { -#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))) { - return 1; - } - } - } else -#endif /* LWIP_IPV4 */ - /* Handle IPv4 and IPv6: catch all or exact match */ - if (ip_addr_isany(&pcb->local_ip) || - ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) { - return 1; - } - } - - return 0; -} - -/** - * Determine if in incoming IP packet is covered by a RAW PCB - * and if so, pass it to a user-provided receive callback function. - * - * Given an incoming IP datagram (as a chain of pbufs) this function - * finds a corresponding RAW PCB and calls the corresponding receive - * callback function. - * - * @param p pbuf to be demultiplexed to a RAW PCB. - * @param inp network interface on which the datagram was received. - * @return - 1 if the packet has been eaten by a RAW PCB receive - * callback function. The caller MAY NOT not reference the - * packet any longer, and MAY NOT call pbuf_free(). - * @return - 0 if packet is not eaten (pbuf is still referenced by the - * caller). - * - */ -raw_input_state_t -raw_input(struct pbuf *p, struct netif *inp) -{ - struct raw_pcb *pcb, *prev; - s16_t proto; - raw_input_state_t ret = RAW_INPUT_NONE; - u8_t broadcast = ip_addr_isbroadcast(ip_current_dest_addr(), ip_current_netif()); - - LWIP_UNUSED_ARG(inp); - -#if LWIP_IPV6 -#if LWIP_IPV4 - if (IP_HDR_GET_VERSION(p->payload) == 6) -#endif /* LWIP_IPV4 */ - { - struct ip6_hdr *ip6hdr = (struct ip6_hdr *)p->payload; - proto = IP6H_NEXTH(ip6hdr); - } -#if LWIP_IPV4 - else -#endif /* LWIP_IPV4 */ -#endif /* LWIP_IPV6 */ -#if LWIP_IPV4 - { - proto = IPH_PROTO((struct ip_hdr *)p->payload); - } -#endif /* LWIP_IPV4 */ - - prev = NULL; - pcb = raw_pcbs; - /* loop through all raw pcbs until the packet is eaten by one */ - /* this allows multiple pcbs to match against the packet by design */ - while (pcb != NULL) { - if ((pcb->protocol == proto) && raw_input_local_match(pcb, broadcast) && - (((pcb->flags & RAW_FLAGS_CONNECTED) == 0) || - ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()))) { - /* receive callback function available? */ - if (pcb->recv != NULL) { - u8_t eaten; -#ifndef LWIP_NOASSERT - void *old_payload = p->payload; -#endif - ret = RAW_INPUT_DELIVERED; - /* the receive callback function did not eat the packet? */ - eaten = pcb->recv(pcb->recv_arg, pcb, p, ip_current_src_addr()); - if (eaten != 0) { - /* receive function ate the packet */ - p = NULL; - if (prev != NULL) { - /* move the pcb to the front of raw_pcbs so that is - found faster next time */ - prev->next = pcb->next; - pcb->next = raw_pcbs; - raw_pcbs = pcb; - } - return RAW_INPUT_EATEN; - } else { - /* sanity-check that the receive callback did not alter the pbuf */ - LWIP_ASSERT("raw pcb recv callback altered pbuf payload pointer without eating packet", - p->payload == old_payload); - } - } - /* no receive callback function was set for this raw PCB */ - } - /* drop the packet */ - prev = pcb; - pcb = pcb->next; - } - return ret; -} - -/** - * @ingroup raw_raw - * Bind a RAW PCB. - * - * @param pcb RAW PCB to be bound with a local address ipaddr. - * @param ipaddr local IP address to bind with. Use IP4_ADDR_ANY to - * bind to all local interfaces. - * - * @return lwIP error code. - * - ERR_OK. Successful. No error occurred. - * - ERR_USE. The specified IP address is already bound to by - * another RAW PCB. - * - * @see raw_disconnect() - */ -err_t -raw_bind(struct raw_pcb *pcb, const ip_addr_t *ipaddr) -{ - LWIP_ASSERT_CORE_LOCKED(); - if ((pcb == NULL) || (ipaddr == NULL)) { - return ERR_VAL; - } - ip_addr_set_ipaddr(&pcb->local_ip, ipaddr); -#if LWIP_IPV6 && LWIP_IPV6_SCOPES - /* If the given IP address should have a zone but doesn't, assign one now. - * This is legacy support: scope-aware callers should always provide properly - * zoned source addresses. */ - if (IP_IS_V6(&pcb->local_ip) && - ip6_addr_lacks_zone(ip_2_ip6(&pcb->local_ip), IP6_UNKNOWN)) { - ip6_addr_select_zone(ip_2_ip6(&pcb->local_ip), ip_2_ip6(&pcb->local_ip)); - } -#endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */ - return ERR_OK; -} - -/** - * @ingroup raw_raw - * Bind an RAW PCB to a specific netif. - * After calling this function, all packets received via this PCB - * are guaranteed to have come in via the specified netif, and all - * outgoing packets will go out via the specified netif. - * - * @param pcb RAW PCB to be bound with netif. - * @param netif netif to bind to. Can be NULL. - * - * @see raw_disconnect() - */ -void -raw_bind_netif(struct raw_pcb *pcb, const struct netif *netif) -{ - LWIP_ASSERT_CORE_LOCKED(); - if (netif != NULL) { - pcb->netif_idx = netif_get_index(netif); - } else { - pcb->netif_idx = NETIF_NO_INDEX; - } -} - -/** - * @ingroup raw_raw - * Connect an RAW PCB. This function is required by upper layers - * of lwip. Using the raw api you could use raw_sendto() instead - * - * This will associate the RAW PCB with the remote address. - * - * @param pcb RAW PCB to be connected with remote address ipaddr and port. - * @param ipaddr remote IP address to connect with. - * - * @return lwIP error code - * - * @see raw_disconnect() and raw_sendto() - */ -err_t -raw_connect(struct raw_pcb *pcb, const ip_addr_t *ipaddr) -{ - LWIP_ASSERT_CORE_LOCKED(); - if ((pcb == NULL) || (ipaddr == NULL)) { - return ERR_VAL; - } - ip_addr_set_ipaddr(&pcb->remote_ip, ipaddr); -#if LWIP_IPV6 && LWIP_IPV6_SCOPES - /* If the given IP address should have a zone but doesn't, assign one now, - * using the bound address to make a more informed decision when possible. */ - if (IP_IS_V6(&pcb->remote_ip) && - 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 */ - raw_set_flags(pcb, RAW_FLAGS_CONNECTED); - return ERR_OK; -} - -/** - * @ingroup raw_raw - * Disconnect a RAW PCB. - * - * @param pcb the raw pcb to disconnect. - */ -void -raw_disconnect(struct raw_pcb *pcb) -{ - LWIP_ASSERT_CORE_LOCKED(); - /* reset remote address association */ -#if LWIP_IPV4 && LWIP_IPV6 - if (IP_IS_ANY_TYPE_VAL(pcb->local_ip)) { - ip_addr_copy(pcb->remote_ip, *IP_ANY_TYPE); - } else { -#endif - ip_addr_set_any(IP_IS_V6_VAL(pcb->remote_ip), &pcb->remote_ip); -#if LWIP_IPV4 && LWIP_IPV6 - } -#endif - pcb->netif_idx = NETIF_NO_INDEX; - /* mark PCB as unconnected */ - raw_clear_flags(pcb, RAW_FLAGS_CONNECTED); -} - -/** - * @ingroup raw_raw - * Set the callback function for received packets that match the - * raw PCB's protocol and binding. - * - * The callback function MUST either - * - eat the packet by calling pbuf_free() and returning non-zero. The - * packet will not be passed to other raw PCBs or other protocol layers. - * - not free the packet, and return zero. The packet will be matched - * against further PCBs and/or forwarded to another protocol layers. - */ -void -raw_recv(struct raw_pcb *pcb, raw_recv_fn recv, void *recv_arg) -{ - LWIP_ASSERT_CORE_LOCKED(); - /* remember recv() callback and user data */ - pcb->recv = recv; - pcb->recv_arg = recv_arg; -} - -/** - * @ingroup raw_raw - * Send the raw IP packet to the given address. An IP header will be prepended - * to the packet, unless the RAW_FLAGS_HDRINCL flag is set on the PCB. In that - * case, the packet must include an IP header, which will then be sent as is. - * - * @param pcb the raw pcb which to send - * @param p the IP payload to send - * @param ipaddr the destination address of the IP packet - * - */ -err_t -raw_sendto(struct raw_pcb *pcb, struct pbuf *p, const ip_addr_t *ipaddr) -{ - struct netif *netif; - const ip_addr_t *src_ip; - - if ((pcb == NULL) || (ipaddr == NULL) || !IP_ADDR_PCB_VERSION_MATCH(pcb, ipaddr)) { - return ERR_VAL; - } - - LWIP_DEBUGF(RAW_DEBUG | LWIP_DBG_TRACE, ("raw_sendto\n")); - - if (pcb->netif_idx != NETIF_NO_INDEX) { - netif = netif_get_by_index(pcb->netif_idx); - } else { -#if LWIP_MULTICAST_TX_OPTIONS - netif = NULL; - if (ip_addr_ismulticast(ipaddr)) { - /* For multicast-destined packets, use the user-provided interface index to - * determine the outgoing interface, if an interface index is set and a - * matching netif can be found. Otherwise, fall back to regular routing. */ - netif = netif_get_by_index(pcb->mcast_ifindex); - } - - if (netif == NULL) -#endif /* LWIP_MULTICAST_TX_OPTIONS */ - { - netif = ip_route(&pcb->local_ip, ipaddr); - } - } - - if (netif == NULL) { - LWIP_DEBUGF(RAW_DEBUG | LWIP_DBG_LEVEL_WARNING, ("raw_sendto: No route to ")); - ip_addr_debug_print(RAW_DEBUG | LWIP_DBG_LEVEL_WARNING, ipaddr); - return ERR_RTE; - } - - if (ip_addr_isany(&pcb->local_ip) || ip_addr_ismulticast(&pcb->local_ip)) { - /* use outgoing network interface IP address as source address */ - src_ip = ip_netif_get_local_ip(netif, ipaddr); -#if LWIP_IPV6 - if (src_ip == NULL) { - return ERR_RTE; - } -#endif /* LWIP_IPV6 */ - } else { - /* use RAW PCB local IP address as source address */ - src_ip = &pcb->local_ip; - } - - return raw_sendto_if_src(pcb, p, ipaddr, netif, src_ip); -} - -/** - * @ingroup raw_raw - * Send the raw IP packet to the given address, using a particular outgoing - * netif and source IP address. An IP header will be prepended to the packet, - * unless the RAW_FLAGS_HDRINCL flag is set on the PCB. In that case, the - * packet must include an IP header, which will then be sent as is. - * - * @param pcb RAW PCB used to send the data - * @param p chain of pbufs to be sent - * @param dst_ip destination IP address - * @param netif the netif used for sending - * @param src_ip source IP address - */ -err_t -raw_sendto_if_src(struct raw_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip, - struct netif *netif, const ip_addr_t *src_ip) -{ - err_t err; - struct pbuf *q; /* q will be sent down the stack */ - u16_t header_size; - u8_t ttl; - - LWIP_ASSERT_CORE_LOCKED(); - - if ((pcb == NULL) || (dst_ip == NULL) || (netif == NULL) || (src_ip == NULL) || - !IP_ADDR_PCB_VERSION_MATCH(pcb, src_ip) || !IP_ADDR_PCB_VERSION_MATCH(pcb, dst_ip)) { - return ERR_VAL; - } - - header_size = ( -#if LWIP_IPV4 && LWIP_IPV6 - IP_IS_V6(dst_ip) ? IP6_HLEN : IP_HLEN); -#elif LWIP_IPV4 - IP_HLEN); -#else - IP6_HLEN); -#endif - - /* Handle the HDRINCL option as an exception: none of the code below applies - * to this case, and sending the packet needs to be done differently too. */ - if (pcb->flags & RAW_FLAGS_HDRINCL) { - /* A full header *must* be present in the first pbuf of the chain, as the - * output routines may access its fields directly. */ - if (p->len < header_size) { - return ERR_VAL; - } - /* @todo multicast loop support, if at all desired for this scenario.. */ - NETIF_SET_HINTS(netif, &pcb->netif_hints); - err = ip_output_if_hdrincl(p, src_ip, dst_ip, netif); - NETIF_RESET_HINTS(netif); - return err; - } - - /* packet too large to add an IP header without causing an overflow? */ - if ((u16_t)(p->tot_len + header_size) < p->tot_len) { - return ERR_MEM; - } - /* not enough space to add an IP header to first pbuf in given p chain? */ - if (pbuf_add_header(p, header_size)) { - /* allocate header in new pbuf */ - q = pbuf_alloc(PBUF_IP, 0, PBUF_RAM); - /* new header pbuf could not be allocated? */ - if (q == NULL) { - LWIP_DEBUGF(RAW_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("raw_sendto: could not allocate header\n")); - return ERR_MEM; - } - if (p->tot_len != 0) { - /* chain header q in front of given pbuf p */ - pbuf_chain(q, p); - } - /* { first pbuf q points to header pbuf } */ - LWIP_DEBUGF(RAW_DEBUG, ("raw_sendto: added header pbuf %p before given pbuf %p\n", (void *)q, (void *)p)); - } else { - /* first pbuf q equals given pbuf */ - q = p; - if (pbuf_remove_header(q, header_size)) { - LWIP_ASSERT("Can't restore header we just removed!", 0); - return ERR_MEM; - } - } - -#if IP_SOF_BROADCAST - if (IP_IS_V4(dst_ip)) { - /* broadcast filter? */ - if (!ip_get_option(pcb, SOF_BROADCAST) && ip_addr_isbroadcast(dst_ip, netif)) { - LWIP_DEBUGF(RAW_DEBUG | LWIP_DBG_LEVEL_WARNING, ("raw_sendto: SOF_BROADCAST not enabled on pcb %p\n", (void *)pcb)); - /* free any temporary header pbuf allocated by pbuf_header() */ - if (q != p) { - pbuf_free(q); - } - return ERR_VAL; - } - } -#endif /* IP_SOF_BROADCAST */ - - /* Multicast Loop? */ -#if LWIP_MULTICAST_TX_OPTIONS - if (((pcb->flags & RAW_FLAGS_MULTICAST_LOOP) != 0) && ip_addr_ismulticast(dst_ip)) { - q->flags |= PBUF_FLAG_MCASTLOOP; - } -#endif /* LWIP_MULTICAST_TX_OPTIONS */ - -#if LWIP_IPV6 - /* If requested, based on the IPV6_CHECKSUM socket option per RFC3542, - compute the checksum and update the checksum in the payload. */ - if (IP_IS_V6(dst_ip) && pcb->chksum_reqd) { - u16_t chksum = ip6_chksum_pseudo(p, pcb->protocol, p->tot_len, ip_2_ip6(src_ip), ip_2_ip6(dst_ip)); - LWIP_ASSERT("Checksum must fit into first pbuf", p->len >= (pcb->chksum_offset + 2)); - SMEMCPY(((u8_t *)p->payload) + pcb->chksum_offset, &chksum, sizeof(u16_t)); - } -#endif - - /* Determine TTL to use */ -#if LWIP_MULTICAST_TX_OPTIONS - ttl = (ip_addr_ismulticast(dst_ip) ? raw_get_multicast_ttl(pcb) : pcb->ttl); -#else /* LWIP_MULTICAST_TX_OPTIONS */ - ttl = pcb->ttl; -#endif /* LWIP_MULTICAST_TX_OPTIONS */ - - NETIF_SET_HINTS(netif, &pcb->netif_hints); - err = ip_output_if(q, src_ip, dst_ip, ttl, pcb->tos, pcb->protocol, netif); - NETIF_RESET_HINTS(netif); - - /* did we chain a header earlier? */ - if (q != p) { - /* free the header */ - pbuf_free(q); - } - return err; -} - -/** - * @ingroup raw_raw - * Send the raw IP packet to the address given by raw_connect() - * - * @param pcb the raw pcb which to send - * @param p the IP payload to send - * - */ -err_t -raw_send(struct raw_pcb *pcb, struct pbuf *p) -{ - return raw_sendto(pcb, p, &pcb->remote_ip); -} - -/** - * @ingroup raw_raw - * Remove an RAW PCB. - * - * @param pcb RAW PCB to be removed. The PCB is removed from the list of - * RAW PCB's and the data structure is freed from memory. - * - * @see raw_new() - */ -void -raw_remove(struct raw_pcb *pcb) -{ - struct raw_pcb *pcb2; - LWIP_ASSERT_CORE_LOCKED(); - /* pcb to be removed is first in list? */ - if (raw_pcbs == pcb) { - /* make list start at 2nd pcb */ - raw_pcbs = raw_pcbs->next; - /* pcb not 1st in list */ - } else { - for (pcb2 = raw_pcbs; pcb2 != NULL; pcb2 = pcb2->next) { - /* find pcb in raw_pcbs list */ - if (pcb2->next != NULL && pcb2->next == pcb) { - /* remove pcb from list */ - pcb2->next = pcb->next; - break; - } - } - } - memp_free(MEMP_RAW_PCB, pcb); -} - -/** - * @ingroup raw_raw - * Create a RAW PCB. - * - * @return The RAW PCB which was created. NULL if the PCB data structure - * could not be allocated. - * - * @param proto the protocol number of the IPs payload (e.g. IP_PROTO_ICMP) - * - * @see raw_remove() - */ -struct raw_pcb * -raw_new(u8_t proto) -{ - struct raw_pcb *pcb; - - LWIP_DEBUGF(RAW_DEBUG | LWIP_DBG_TRACE, ("raw_new\n")); - LWIP_ASSERT_CORE_LOCKED(); - - pcb = (struct raw_pcb *)memp_malloc(MEMP_RAW_PCB); - /* could allocate RAW PCB? */ - if (pcb != NULL) { - /* initialize PCB to all zeroes */ - memset(pcb, 0, sizeof(struct raw_pcb)); - pcb->protocol = proto; - pcb->ttl = RAW_TTL; -#if LWIP_MULTICAST_TX_OPTIONS - raw_set_multicast_ttl(pcb, RAW_TTL); -#endif /* LWIP_MULTICAST_TX_OPTIONS */ - pcb->next = raw_pcbs; - raw_pcbs = pcb; - } - return pcb; -} - -/** - * @ingroup raw_raw - * Create a RAW PCB for specific IP type. - * - * @return The RAW PCB which was created. NULL if the PCB data structure - * could not be allocated. - * - * @param type IP address type, see @ref lwip_ip_addr_type definitions. - * If you want to listen to IPv4 and IPv6 (dual-stack) packets, - * supply @ref IPADDR_TYPE_ANY as argument and bind to @ref IP_ANY_TYPE. - * @param proto the protocol number (next header) of the IPv6 packet payload - * (e.g. IP6_NEXTH_ICMP6) - * - * @see raw_remove() - */ -struct raw_pcb * -raw_new_ip_type(u8_t type, u8_t proto) -{ - struct raw_pcb *pcb; - LWIP_ASSERT_CORE_LOCKED(); - pcb = raw_new(proto); -#if LWIP_IPV4 && LWIP_IPV6 - if (pcb != NULL) { - IP_SET_TYPE_VAL(pcb->local_ip, type); - IP_SET_TYPE_VAL(pcb->remote_ip, type); - } -#else /* LWIP_IPV4 && LWIP_IPV6 */ - LWIP_UNUSED_ARG(type); -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - return pcb; -} - -/** This function is called from netif.c when address is changed - * - * @param old_addr IP address of the netif before change - * @param new_addr IP address of the netif after change - */ -void raw_netif_ip_addr_changed(const ip_addr_t *old_addr, const ip_addr_t *new_addr) -{ - struct raw_pcb *rpcb; - - if (!ip_addr_isany(old_addr) && !ip_addr_isany(new_addr)) { - for (rpcb = raw_pcbs; rpcb != NULL; rpcb = rpcb->next) { - /* PCB bound to current local interface address? */ - if (ip_addr_cmp(&rpcb->local_ip, old_addr)) { - /* The PCB is bound to the old ipaddr and - * is set to bound to the new one instead */ - ip_addr_copy(rpcb->local_ip, *new_addr); - } - } - } -} - -#endif /* LWIP_RAW */ diff --git a/Middlewares/Third_Party/LwIP/src/core/stats.c b/Middlewares/Third_Party/LwIP/src/core/stats.c deleted file mode 100644 index 34e9b27..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/stats.c +++ /dev/null @@ -1,169 +0,0 @@ -/** - * @file - * Statistics module - * - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -#include "lwip/opt.h" - -#if LWIP_STATS /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/def.h" -#include "lwip/stats.h" -#include "lwip/mem.h" -#include "lwip/debug.h" - -#include - -struct stats_ lwip_stats; - -void -stats_init(void) -{ -#ifdef LWIP_DEBUG -#if MEM_STATS - lwip_stats.mem.name = "MEM"; -#endif /* MEM_STATS */ -#endif /* LWIP_DEBUG */ -} - -#if LWIP_STATS_DISPLAY -void -stats_display_proto(struct stats_proto *proto, const char *name) -{ - LWIP_PLATFORM_DIAG(("\n%s\n\t", name)); - LWIP_PLATFORM_DIAG(("xmit: %"STAT_COUNTER_F"\n\t", proto->xmit)); - LWIP_PLATFORM_DIAG(("recv: %"STAT_COUNTER_F"\n\t", proto->recv)); - LWIP_PLATFORM_DIAG(("fw: %"STAT_COUNTER_F"\n\t", proto->fw)); - LWIP_PLATFORM_DIAG(("drop: %"STAT_COUNTER_F"\n\t", proto->drop)); - LWIP_PLATFORM_DIAG(("chkerr: %"STAT_COUNTER_F"\n\t", proto->chkerr)); - LWIP_PLATFORM_DIAG(("lenerr: %"STAT_COUNTER_F"\n\t", proto->lenerr)); - LWIP_PLATFORM_DIAG(("memerr: %"STAT_COUNTER_F"\n\t", proto->memerr)); - LWIP_PLATFORM_DIAG(("rterr: %"STAT_COUNTER_F"\n\t", proto->rterr)); - LWIP_PLATFORM_DIAG(("proterr: %"STAT_COUNTER_F"\n\t", proto->proterr)); - LWIP_PLATFORM_DIAG(("opterr: %"STAT_COUNTER_F"\n\t", proto->opterr)); - LWIP_PLATFORM_DIAG(("err: %"STAT_COUNTER_F"\n\t", proto->err)); - LWIP_PLATFORM_DIAG(("cachehit: %"STAT_COUNTER_F"\n", proto->cachehit)); -} - -#if IGMP_STATS || MLD6_STATS -void -stats_display_igmp(struct stats_igmp *igmp, const char *name) -{ - LWIP_PLATFORM_DIAG(("\n%s\n\t", name)); - LWIP_PLATFORM_DIAG(("xmit: %"STAT_COUNTER_F"\n\t", igmp->xmit)); - LWIP_PLATFORM_DIAG(("recv: %"STAT_COUNTER_F"\n\t", igmp->recv)); - LWIP_PLATFORM_DIAG(("drop: %"STAT_COUNTER_F"\n\t", igmp->drop)); - LWIP_PLATFORM_DIAG(("chkerr: %"STAT_COUNTER_F"\n\t", igmp->chkerr)); - LWIP_PLATFORM_DIAG(("lenerr: %"STAT_COUNTER_F"\n\t", igmp->lenerr)); - LWIP_PLATFORM_DIAG(("memerr: %"STAT_COUNTER_F"\n\t", igmp->memerr)); - LWIP_PLATFORM_DIAG(("proterr: %"STAT_COUNTER_F"\n\t", igmp->proterr)); - LWIP_PLATFORM_DIAG(("rx_v1: %"STAT_COUNTER_F"\n\t", igmp->rx_v1)); - LWIP_PLATFORM_DIAG(("rx_group: %"STAT_COUNTER_F"\n\t", igmp->rx_group)); - LWIP_PLATFORM_DIAG(("rx_general: %"STAT_COUNTER_F"\n\t", igmp->rx_general)); - LWIP_PLATFORM_DIAG(("rx_report: %"STAT_COUNTER_F"\n\t", igmp->rx_report)); - LWIP_PLATFORM_DIAG(("tx_join: %"STAT_COUNTER_F"\n\t", igmp->tx_join)); - LWIP_PLATFORM_DIAG(("tx_leave: %"STAT_COUNTER_F"\n\t", igmp->tx_leave)); - LWIP_PLATFORM_DIAG(("tx_report: %"STAT_COUNTER_F"\n", igmp->tx_report)); -} -#endif /* IGMP_STATS || MLD6_STATS */ - -#if MEM_STATS || MEMP_STATS -void -stats_display_mem(struct stats_mem *mem, const char *name) -{ - LWIP_PLATFORM_DIAG(("\nMEM %s\n\t", name)); - LWIP_PLATFORM_DIAG(("avail: %"MEM_SIZE_F"\n\t", mem->avail)); - LWIP_PLATFORM_DIAG(("used: %"MEM_SIZE_F"\n\t", mem->used)); - LWIP_PLATFORM_DIAG(("max: %"MEM_SIZE_F"\n\t", mem->max)); - LWIP_PLATFORM_DIAG(("err: %"STAT_COUNTER_F"\n", mem->err)); -} - -#if MEMP_STATS -void -stats_display_memp(struct stats_mem *mem, int idx) -{ - if (idx < MEMP_MAX) { - stats_display_mem(mem, mem->name); - } -} -#endif /* MEMP_STATS */ -#endif /* MEM_STATS || MEMP_STATS */ - -#if SYS_STATS -void -stats_display_sys(struct stats_sys *sys) -{ - LWIP_PLATFORM_DIAG(("\nSYS\n\t")); - LWIP_PLATFORM_DIAG(("sem.used: %"STAT_COUNTER_F"\n\t", sys->sem.used)); - LWIP_PLATFORM_DIAG(("sem.max: %"STAT_COUNTER_F"\n\t", sys->sem.max)); - LWIP_PLATFORM_DIAG(("sem.err: %"STAT_COUNTER_F"\n\t", sys->sem.err)); - LWIP_PLATFORM_DIAG(("mutex.used: %"STAT_COUNTER_F"\n\t", sys->mutex.used)); - LWIP_PLATFORM_DIAG(("mutex.max: %"STAT_COUNTER_F"\n\t", sys->mutex.max)); - LWIP_PLATFORM_DIAG(("mutex.err: %"STAT_COUNTER_F"\n\t", sys->mutex.err)); - LWIP_PLATFORM_DIAG(("mbox.used: %"STAT_COUNTER_F"\n\t", sys->mbox.used)); - LWIP_PLATFORM_DIAG(("mbox.max: %"STAT_COUNTER_F"\n\t", sys->mbox.max)); - LWIP_PLATFORM_DIAG(("mbox.err: %"STAT_COUNTER_F"\n", sys->mbox.err)); -} -#endif /* SYS_STATS */ - -void -stats_display(void) -{ - s16_t i; - - LINK_STATS_DISPLAY(); - ETHARP_STATS_DISPLAY(); - IPFRAG_STATS_DISPLAY(); - IP6_FRAG_STATS_DISPLAY(); - IP_STATS_DISPLAY(); - ND6_STATS_DISPLAY(); - IP6_STATS_DISPLAY(); - IGMP_STATS_DISPLAY(); - MLD6_STATS_DISPLAY(); - ICMP_STATS_DISPLAY(); - ICMP6_STATS_DISPLAY(); - UDP_STATS_DISPLAY(); - TCP_STATS_DISPLAY(); - MEM_STATS_DISPLAY(); - for (i = 0; i < MEMP_MAX; i++) { - MEMP_STATS_DISPLAY(i); - } - SYS_STATS_DISPLAY(); -} -#endif /* LWIP_STATS_DISPLAY */ - -#endif /* LWIP_STATS */ - diff --git a/Middlewares/Third_Party/LwIP/src/core/sys.c b/Middlewares/Third_Party/LwIP/src/core/sys.c deleted file mode 100644 index 5f08352..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/sys.c +++ /dev/null @@ -1,148 +0,0 @@ -/** - * @file - * lwIP Operating System abstraction - * - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -/** - * @defgroup sys_layer Porting (system abstraction layer) - * @ingroup lwip - * - * @defgroup sys_os OS abstraction layer - * @ingroup sys_layer - * No need to implement functions in this section in NO_SYS mode. - * The OS-specific code should be implemented in arch/sys_arch.h - * and sys_arch.c of your port. - * - * The operating system emulation layer provides a common interface - * between the lwIP code and the underlying operating system kernel. The - * general idea is that porting lwIP to new architectures requires only - * small changes to a few header files and a new sys_arch - * implementation. It is also possible to do a sys_arch implementation - * that does not rely on any underlying operating system. - * - * The sys_arch provides semaphores, mailboxes and mutexes to lwIP. For the full - * lwIP functionality, multiple threads support can be implemented in the - * sys_arch, but this is not required for the basic lwIP - * functionality. Timer scheduling is implemented in lwIP, but can be implemented - * by the sys_arch port (LWIP_TIMERS_CUSTOM==1). - * - * In addition to the source file providing the functionality of sys_arch, - * the OS emulation layer must provide several header files defining - * macros used throughout lwip. The files required and the macros they - * must define are listed below the sys_arch description. - * - * Since lwIP 1.4.0, semaphore, mutexes and mailbox functions are prototyped in a way that - * allows both using pointers or actual OS structures to be used. This way, memory - * required for such types can be either allocated in place (globally or on the - * stack) or on the heap (allocated internally in the "*_new()" functions). - * - * Note: - * ----- - * Be careful with using mem_malloc() in sys_arch. When malloc() refers to - * mem_malloc() you can run into a circular function call problem. In mem.c - * mem_init() tries to allocate a semaphore using mem_malloc, which of course - * can't be performed when sys_arch uses mem_malloc. - * - * @defgroup sys_sem Semaphores - * @ingroup sys_os - * Semaphores can be either counting or binary - lwIP works with both - * kinds. - * Semaphores are represented by the type "sys_sem_t" which is typedef'd - * in the sys_arch.h file. Mailboxes are equivalently represented by the - * type "sys_mbox_t". Mutexes are represented by the type "sys_mutex_t". - * lwIP does not place any restrictions on how these types are represented - * internally. - * - * @defgroup sys_mutex Mutexes - * @ingroup sys_os - * Mutexes are recommended to correctly handle priority inversion, - * especially if you use LWIP_CORE_LOCKING . - * - * @defgroup sys_mbox Mailboxes - * @ingroup sys_os - * Mailboxes should be implemented as a queue which allows multiple messages - * to be posted (implementing as a rendez-vous point where only one message can be - * posted at a time can have a highly negative impact on performance). A message - * in a mailbox is just a pointer, nothing more. - * - * @defgroup sys_time Time - * @ingroup sys_layer - * - * @defgroup sys_prot Critical sections - * @ingroup sys_layer - * Used to protect short regions of code against concurrent access. - * - Your system is a bare-metal system (probably with an RTOS) - * and interrupts are under your control: - * Implement this as LockInterrupts() / UnlockInterrupts() - * - Your system uses an RTOS with deferred interrupt handling from a - * worker thread: Implement as a global mutex or lock/unlock scheduler - * - Your system uses a high-level OS with e.g. POSIX signals: - * Implement as a global mutex - * - * @defgroup sys_misc Misc - * @ingroup sys_os - */ - -#include "lwip/opt.h" - -#include "lwip/sys.h" - -/* Most of the functions defined in sys.h must be implemented in the - * architecture-dependent file sys_arch.c */ - -#if !NO_SYS - -#ifndef sys_msleep -/** - * Sleep for some ms. Timeouts are NOT processed while sleeping. - * - * @param ms number of milliseconds to sleep - */ -void -sys_msleep(u32_t ms) -{ - if (ms > 0) { - sys_sem_t delaysem; - err_t err = sys_sem_new(&delaysem, 0); - if (err == ERR_OK) { - sys_arch_sem_wait(&delaysem, ms); - sys_sem_free(&delaysem); - } - } -} -#endif /* sys_msleep */ - -#endif /* !NO_SYS */ diff --git a/Middlewares/Third_Party/LwIP/src/core/tcp.c b/Middlewares/Third_Party/LwIP/src/core/tcp.c deleted file mode 100644 index bd7d64e..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/tcp.c +++ /dev/null @@ -1,2686 +0,0 @@ -/** - * @file - * Transmission Control Protocol for IP - * See also @ref tcp_raw - * - * @defgroup tcp_raw TCP - * @ingroup callbackstyle_api - * Transmission Control Protocol for IP\n - * @see @ref api - * - * Common functions for the TCP implementation, such as functions - * for manipulating the data structures and the TCP timer functions. TCP functions - * related to input and output is found in tcp_in.c and tcp_out.c respectively.\n - * - * TCP connection setup - * -------------------- - * The functions used for setting up connections is similar to that of - * the sequential API and of the BSD socket API. A new TCP connection - * identifier (i.e., a protocol control block - PCB) is created with the - * tcp_new() function. This PCB can then be either set to listen for new - * incoming connections or be explicitly connected to another host. - * - tcp_new() - * - tcp_bind() - * - tcp_listen() and tcp_listen_with_backlog() - * - tcp_accept() - * - tcp_connect() - * - * Sending TCP data - * ---------------- - * TCP data is sent by enqueueing the data with a call to tcp_write() and - * triggering to send by calling tcp_output(). When the data is successfully - * transmitted to the remote host, the application will be notified with a - * call to a specified callback function. - * - tcp_write() - * - tcp_output() - * - tcp_sent() - * - * Receiving TCP data - * ------------------ - * TCP data reception is callback based - an application specified - * callback function is called when new data arrives. When the - * application has taken the data, it has to call the tcp_recved() - * function to indicate that TCP can advertise increase the receive - * window. - * - tcp_recv() - * - tcp_recved() - * - * Application polling - * ------------------- - * When a connection is idle (i.e., no data is either transmitted or - * received), lwIP will repeatedly poll the application by calling a - * specified callback function. This can be used either as a watchdog - * timer for killing connections that have stayed idle for too long, or - * as a method of waiting for memory to become available. For instance, - * if a call to tcp_write() has failed because memory wasn't available, - * the application may use the polling functionality to call tcp_write() - * again when the connection has been idle for a while. - * - tcp_poll() - * - * Closing and aborting connections - * -------------------------------- - * - tcp_close() - * - tcp_abort() - * - tcp_err() - * - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -#include "lwip/opt.h" - -#if LWIP_TCP /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/def.h" -#include "lwip/mem.h" -#include "lwip/memp.h" -#include "lwip/tcp.h" -#include "lwip/priv/tcp_priv.h" -#include "lwip/debug.h" -#include "lwip/stats.h" -#include "lwip/ip6.h" -#include "lwip/ip6_addr.h" -#include "lwip/nd6.h" - -#include - -#ifdef LWIP_HOOK_FILENAME -#include LWIP_HOOK_FILENAME -#endif - -#ifndef TCP_LOCAL_PORT_RANGE_START -/* From http://www.iana.org/assignments/port-numbers: - "The Dynamic and/or Private Ports are those from 49152 through 65535" */ -#define TCP_LOCAL_PORT_RANGE_START 0xc000 -#define TCP_LOCAL_PORT_RANGE_END 0xffff -#define TCP_ENSURE_LOCAL_PORT_RANGE(port) ((u16_t)(((port) & (u16_t)~TCP_LOCAL_PORT_RANGE_START) + TCP_LOCAL_PORT_RANGE_START)) -#endif - -#if LWIP_TCP_KEEPALIVE -#define TCP_KEEP_DUR(pcb) ((pcb)->keep_cnt * (pcb)->keep_intvl) -#define TCP_KEEP_INTVL(pcb) ((pcb)->keep_intvl) -#else /* LWIP_TCP_KEEPALIVE */ -#define TCP_KEEP_DUR(pcb) TCP_MAXIDLE -#define TCP_KEEP_INTVL(pcb) TCP_KEEPINTVL_DEFAULT -#endif /* LWIP_TCP_KEEPALIVE */ - -/* As initial send MSS, we use TCP_MSS but limit it to 536. */ -#if TCP_MSS > 536 -#define INITIAL_MSS 536 -#else -#define INITIAL_MSS TCP_MSS -#endif - -static const char *const tcp_state_str[] = { - "CLOSED", - "LISTEN", - "SYN_SENT", - "SYN_RCVD", - "ESTABLISHED", - "FIN_WAIT_1", - "FIN_WAIT_2", - "CLOSE_WAIT", - "CLOSING", - "LAST_ACK", - "TIME_WAIT" -}; - -/* last local TCP port */ -static u16_t tcp_port = TCP_LOCAL_PORT_RANGE_START; - -/* Incremented every coarse grained timer shot (typically every 500 ms). */ -u32_t tcp_ticks; -static const u8_t tcp_backoff[13] = -{ 1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7}; -/* Times per slowtmr hits */ -static const u8_t tcp_persist_backoff[7] = { 3, 6, 12, 24, 48, 96, 120 }; - -/* The TCP PCB lists. */ - -/** List of all TCP PCBs bound but not yet (connected || listening) */ -struct tcp_pcb *tcp_bound_pcbs; -/** List of all TCP PCBs in LISTEN state */ -union tcp_listen_pcbs_t tcp_listen_pcbs; -/** List of all TCP PCBs that are in a state in which - * they accept or send data. */ -struct tcp_pcb *tcp_active_pcbs; -/** List of all TCP PCBs in TIME-WAIT state */ -struct tcp_pcb *tcp_tw_pcbs; - -/** An array with all (non-temporary) PCB lists, mainly used for smaller code size */ -struct tcp_pcb **const tcp_pcb_lists[] = {&tcp_listen_pcbs.pcbs, &tcp_bound_pcbs, - &tcp_active_pcbs, &tcp_tw_pcbs -}; - -u8_t tcp_active_pcbs_changed; - -/** Timer counter to handle calling slow-timer from tcp_tmr() */ -static u8_t tcp_timer; -static u8_t tcp_timer_ctr; -static u16_t tcp_new_port(void); - -static err_t tcp_close_shutdown_fin(struct tcp_pcb *pcb); -#if LWIP_TCP_PCB_NUM_EXT_ARGS -static void tcp_ext_arg_invoke_callbacks_destroyed(struct tcp_pcb_ext_args *ext_args); -#endif - -/** - * Initialize this module. - */ -void -tcp_init(void) -{ -#ifdef LWIP_RAND - tcp_port = TCP_ENSURE_LOCAL_PORT_RANGE(LWIP_RAND()); -#endif /* LWIP_RAND */ -} - -/** Free a tcp pcb */ -void -tcp_free(struct tcp_pcb *pcb) -{ - LWIP_ASSERT("tcp_free: LISTEN", pcb->state != LISTEN); -#if LWIP_TCP_PCB_NUM_EXT_ARGS - tcp_ext_arg_invoke_callbacks_destroyed(pcb->ext_args); -#endif - memp_free(MEMP_TCP_PCB, pcb); -} - -/** Free a tcp listen pcb */ -static void -tcp_free_listen(struct tcp_pcb *pcb) -{ - LWIP_ASSERT("tcp_free_listen: !LISTEN", pcb->state != LISTEN); -#if LWIP_TCP_PCB_NUM_EXT_ARGS - tcp_ext_arg_invoke_callbacks_destroyed(pcb->ext_args); -#endif - memp_free(MEMP_TCP_PCB_LISTEN, pcb); -} - -/** - * Called periodically to dispatch TCP timers. - */ -void -tcp_tmr(void) -{ - /* Call tcp_fasttmr() every 250 ms */ - tcp_fasttmr(); - - if (++tcp_timer & 1) { - /* Call tcp_slowtmr() every 500 ms, i.e., every other timer - tcp_tmr() is called. */ - tcp_slowtmr(); - } -} - -#if LWIP_CALLBACK_API || TCP_LISTEN_BACKLOG -/** 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) -{ - struct tcp_pcb *pcb; - - LWIP_ASSERT("tcp_remove_listener: invalid listener", lpcb != NULL); - - for (pcb = list; pcb != NULL; pcb = pcb->next) { - if (pcb->listener == lpcb) { - pcb->listener = NULL; - } - } -} -#endif - -/** 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) -{ -#if LWIP_CALLBACK_API || TCP_LISTEN_BACKLOG - size_t i; - LWIP_ASSERT("pcb != NULL", pcb != NULL); - LWIP_ASSERT("pcb->state == LISTEN", pcb->state == LISTEN); - for (i = 1; i < LWIP_ARRAYSIZE(tcp_pcb_lists); i++) { - tcp_remove_listener(*tcp_pcb_lists[i], (struct tcp_pcb_listen *)pcb); - } -#endif - LWIP_UNUSED_ARG(pcb); -} - -#if TCP_LISTEN_BACKLOG -/** @ingroup tcp_raw - * Delay accepting a connection in respect to the listen backlog: - * the number of outstanding connections is increased until - * tcp_backlog_accepted() is called. - * - * ATTENTION: the caller is responsible for calling tcp_backlog_accepted() - * or else the backlog feature will get out of sync! - * - * @param pcb the connection pcb which is not fully accepted yet - */ -void -tcp_backlog_delayed(struct tcp_pcb *pcb) -{ - LWIP_ASSERT("pcb != NULL", pcb != NULL); - LWIP_ASSERT_CORE_LOCKED(); - if ((pcb->flags & TF_BACKLOGPEND) == 0) { - if (pcb->listener != NULL) { - pcb->listener->accepts_pending++; - LWIP_ASSERT("accepts_pending != 0", pcb->listener->accepts_pending != 0); - tcp_set_flags(pcb, TF_BACKLOGPEND); - } - } -} - -/** @ingroup tcp_raw - * A delayed-accept a connection is accepted (or closed/aborted): decreases - * the number of outstanding connections after calling tcp_backlog_delayed(). - * - * ATTENTION: the caller is responsible for calling tcp_backlog_accepted() - * or else the backlog feature will get out of sync! - * - * @param pcb the connection pcb which is now fully accepted (or closed/aborted) - */ -void -tcp_backlog_accepted(struct tcp_pcb *pcb) -{ - LWIP_ASSERT("pcb != NULL", pcb != NULL); - LWIP_ASSERT_CORE_LOCKED(); - if ((pcb->flags & TF_BACKLOGPEND) != 0) { - if (pcb->listener != NULL) { - LWIP_ASSERT("accepts_pending != 0", pcb->listener->accepts_pending != 0); - pcb->listener->accepts_pending--; - tcp_clear_flags(pcb, TF_BACKLOGPEND); - } - } -} -#endif /* TCP_LISTEN_BACKLOG */ - -/** - * Closes the TX side of a connection held by the PCB. - * For tcp_close(), a RST is sent if the application didn't receive all data - * (tcp_recved() not called for all data passed to recv callback). - * - * Listening pcbs are freed and may not be referenced any more. - * Connection pcbs are freed if not yet connected and may not be referenced - * any more. If a connection is established (at least SYN received or in - * a closing state), the connection is closed, and put in a closing state. - * The pcb is then automatically freed in tcp_slowtmr(). It is therefore - * unsafe to reference it. - * - * @param pcb the tcp_pcb to close - * @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) -{ - LWIP_ASSERT("tcp_close_shutdown: invalid pcb", pcb != NULL); - - if (rst_on_unacked_data && ((pcb->state == ESTABLISHED) || (pcb->state == CLOSE_WAIT))) { - if ((pcb->refused_data != NULL) || (pcb->rcv_wnd != TCP_WND_MAX(pcb))) { - /* 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); - - /* 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, - pcb->local_port, pcb->remote_port); - - tcp_pcb_purge(pcb); - TCP_RMV_ACTIVE(pcb); - /* Deallocate the pcb since we already sent a RST for it */ - if (tcp_input_pcb == pcb) { - /* prevent using a deallocated pcb: free it from tcp_input later */ - tcp_trigger_input_pcb_close(); - } else { - tcp_free(pcb); - } - return ERR_OK; - } - } - - /* - 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) { - case CLOSED: - /* Closing a pcb in the CLOSED state might seem erroneous, - * however, it is in this state once allocated and as yet unused - * 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) { - TCP_RMV(&tcp_bound_pcbs, pcb); - } - tcp_free(pcb); - break; - case LISTEN: - tcp_listen_closed(pcb); - tcp_pcb_remove(&tcp_listen_pcbs.pcbs, pcb); - tcp_free_listen(pcb); - break; - case SYN_SENT: - TCP_PCB_REMOVE_ACTIVE(pcb); - tcp_free(pcb); - MIB2_STATS_INC(mib2.tcpattemptfails); - break; - default: - return tcp_close_shutdown_fin(pcb); - } - return ERR_OK; -} - -static err_t -tcp_close_shutdown_fin(struct tcp_pcb *pcb) -{ - err_t err; - LWIP_ASSERT("pcb != NULL", pcb != NULL); - - switch (pcb->state) { - case SYN_RCVD: - err = tcp_send_fin(pcb); - if (err == ERR_OK) { - tcp_backlog_accepted(pcb); - MIB2_STATS_INC(mib2.tcpattemptfails); - pcb->state = FIN_WAIT_1; - } - break; - case ESTABLISHED: - err = tcp_send_fin(pcb); - if (err == ERR_OK) { - MIB2_STATS_INC(mib2.tcpestabresets); - pcb->state = FIN_WAIT_1; - } - break; - case CLOSE_WAIT: - err = tcp_send_fin(pcb); - if (err == ERR_OK) { - MIB2_STATS_INC(mib2.tcpestabresets); - pcb->state = LAST_ACK; - } - break; - default: - /* Has already been closed, do nothing. */ - return ERR_OK; - } - - if (err == ERR_OK) { - /* 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); - } else if (err == ERR_MEM) { - /* Mark this pcb for closing. Closing is retried from tcp_tmr. */ - tcp_set_flags(pcb, TF_CLOSEPEND); - /* 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; - } - return err; -} - -/** - * @ingroup tcp_raw - * Closes the connection held by the PCB. - * - * Listening pcbs are freed and may not be referenced any more. - * Connection pcbs are freed if not yet connected and may not be referenced - * any more. If a connection is established (at least SYN received or in - * a closing state), the connection is closed, and put in a closing state. - * The pcb is then automatically freed in tcp_slowtmr(). It is therefore - * unsafe to reference it (unless an error is returned). - * - * The function may return ERR_MEM if no memory - * was available for closing the connection. If so, the application - * should wait and try again either by using the acknowledgment - * callback or the polling functionality. If the close succeeds, the - * function returns ERR_OK. - * - * @param pcb the tcp_pcb to close - * @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) -{ - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("tcp_close: invalid pcb", pcb != NULL, return ERR_ARG); - LWIP_DEBUGF(TCP_DEBUG, ("tcp_close: closing in ")); - - tcp_debug_print_state(pcb->state); - - if (pcb->state != LISTEN) { - /* Set a flag not to receive any more data... */ - tcp_set_flags(pcb, TF_RXCLOSED); - } - /* ... and close */ - return tcp_close_shutdown(pcb, 1); -} - -/** - * @ingroup tcp_raw - * Causes all or part of a full-duplex connection of this PCB to be shut down. - * This doesn't deallocate the PCB unless shutting down both sides! - * Shutting down both sides is the same as calling tcp_close, so if it succeds - * (i.e. returns ER_OK), the PCB must not be referenced any more! - * - * @param pcb PCB to shutdown - * @param shut_rx shut down receive side if this is != 0 - * @param shut_tx shut down send side if this is != 0 - * @return ERR_OK if shutdown succeeded (or the PCB has already been shut down) - * another err_t on error. - */ -err_t -tcp_shutdown(struct tcp_pcb *pcb, int shut_rx, int shut_tx) -{ - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("tcp_shutdown: invalid pcb", pcb != NULL, return ERR_ARG); - - if (pcb->state == LISTEN) { - return ERR_CONN; - } - if (shut_rx) { - /* shut down the receive side: set a flag not to receive any more data... */ - tcp_set_flags(pcb, TF_RXCLOSED); - if (shut_tx) { - /* shutting down the tx AND rx side is the same as closing for the raw API */ - return tcp_close_shutdown(pcb, 1); - } - /* ... and free buffered data */ - if (pcb->refused_data != NULL) { - pbuf_free(pcb->refused_data); - pcb->refused_data = NULL; - } - } - if (shut_tx) { - /* This can't happen twice since if it succeeds, the pcb's state is changed. - Only close in these states as the others directly deallocate the PCB */ - switch (pcb->state) { - case SYN_RCVD: - case ESTABLISHED: - case CLOSE_WAIT: - return tcp_close_shutdown(pcb, (u8_t)shut_rx); - default: - /* Not (yet?) connected, cannot shutdown the TX side as that would bring us - into CLOSED state, where the PCB is deallocated. */ - return ERR_CONN; - } - } - return ERR_OK; -} - -/** - * Abandons a connection and optionally sends a RST to the remote - * host. Deletes the local protocol control block. This is done when - * a connection is killed because of shortage of memory. - * - * @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) -{ - u32_t seqno, ackno; -#if LWIP_CALLBACK_API - tcp_err_fn errf; -#endif /* LWIP_CALLBACK_API */ - void *errf_arg; - - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("tcp_abandon: invalid pcb", pcb != NULL, return); - - /* pcb->state LISTEN not allowed here */ - LWIP_ASSERT("don't call tcp_abort/tcp_abandon for listen-pcbs", - 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) { - tcp_pcb_remove(&tcp_tw_pcbs, pcb); - tcp_free(pcb); - } else { - int send_rst = 0; - u16_t local_port = 0; - enum tcp_state last_state; - seqno = pcb->snd_nxt; - ackno = pcb->rcv_nxt; -#if LWIP_CALLBACK_API - errf = pcb->errf; -#endif /* LWIP_CALLBACK_API */ - errf_arg = pcb->callback_arg; - if (pcb->state == CLOSED) { - if (pcb->local_port != 0) { - /* bound, not yet opened */ - TCP_RMV(&tcp_bound_pcbs, pcb); - } - } else { - send_rst = reset; - local_port = pcb->local_port; - TCP_PCB_REMOVE_ACTIVE(pcb); - } - if (pcb->unacked != NULL) { - tcp_segs_free(pcb->unacked); - } - if (pcb->unsent != NULL) { - tcp_segs_free(pcb->unsent); - } -#if TCP_QUEUE_OOSEQ - if (pcb->ooseq != NULL) { - tcp_segs_free(pcb->ooseq); - } -#endif /* TCP_QUEUE_OOSEQ */ - tcp_backlog_accepted(pcb); - if (send_rst) { - 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); - } - last_state = pcb->state; - tcp_free(pcb); - TCP_EVENT_ERR(last_state, errf, errf_arg, ERR_ABRT); - } -} - -/** - * @ingroup tcp_raw - * Aborts the connection by sending a RST (reset) segment to the remote - * host. The pcb is deallocated. This function never fails. - * - * ATTENTION: When calling this from one of the TCP callbacks, make - * sure you always return ERR_ABRT (and never return ERR_ABRT otherwise - * or you will risk accessing deallocated memory or memory leaks! - * - * @param pcb the tcp pcb to abort - */ -void -tcp_abort(struct tcp_pcb *pcb) -{ - tcp_abandon(pcb, 1); -} - -/** - * @ingroup tcp_raw - * Binds the connection to a local port number and IP address. If the - * IP address is not given (i.e., ipaddr == IP_ANY_TYPE), the connection is - * bound to all local IP addresses. - * If another connection is bound to the same port, the function will - * return ERR_USE, otherwise ERR_OK is returned. - * - * @param pcb the tcp_pcb to bind (no check is done whether this pcb is - * already bound!) - * @param ipaddr the local ip address to bind to (use IPx_ADDR_ANY to bind - * to any local address - * @param port the local port to bind to - * @return ERR_USE if the port is already in use - * ERR_VAL if bind failed because the PCB is not in a valid state - * ERR_OK if bound - */ -err_t -tcp_bind(struct tcp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port) -{ - int i; - int max_pcb_list = NUM_TCP_PCB_LISTS; - struct tcp_pcb *cpcb; -#if LWIP_IPV6 && LWIP_IPV6_SCOPES - ip_addr_t zoned_ipaddr; -#endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */ - - LWIP_ASSERT_CORE_LOCKED(); - -#if LWIP_IPV4 - /* Don't propagate NULL pointer (IPv4 ANY) to subsequent functions */ - if (ipaddr == NULL) { - ipaddr = IP4_ADDR_ANY; - } -#else /* LWIP_IPV4 */ - LWIP_ERROR("tcp_bind: invalid ipaddr", ipaddr != NULL, return ERR_ARG); -#endif /* LWIP_IPV4 */ - - LWIP_ERROR("tcp_bind: invalid pcb", pcb != NULL, return ERR_ARG); - - LWIP_ERROR("tcp_bind: can only bind in state CLOSED", pcb->state == CLOSED, return ERR_VAL); - -#if SO_REUSE - /* Unless the REUSEADDR flag is set, - we have to check the pcbs in TIME-WAIT state, also. - We do not dump TIME_WAIT pcb's; they can still be matched by incoming - packets using both local and remote IP addresses and ports to distinguish. - */ - if (ip_get_option(pcb, SOF_REUSEADDR)) { - max_pcb_list = NUM_TCP_PCB_LISTS_NO_TIME_WAIT; - } -#endif /* SO_REUSE */ - -#if LWIP_IPV6 && LWIP_IPV6_SCOPES - /* If the given IP address should have a zone but doesn't, assign one now. - * This is legacy support: scope-aware callers should always provide properly - * zoned source addresses. Do the zone selection before the address-in-use - * check below; as such we have to make a temporary copy of the address. */ - if (IP_IS_V6(ipaddr) && ip6_addr_lacks_zone(ip_2_ip6(ipaddr), IP6_UNICAST)) { - ip_addr_copy(zoned_ipaddr, *ipaddr); - ip6_addr_select_zone(ip_2_ip6(&zoned_ipaddr), ip_2_ip6(&zoned_ipaddr)); - ipaddr = &zoned_ipaddr; - } -#endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */ - - if (port == 0) { - port = tcp_new_port(); - if (port == 0) { - return ERR_BUF; - } - } else { - /* Check if the address already is in use (on all lists) */ - for (i = 0; i < max_pcb_list; i++) { - for (cpcb = *tcp_pcb_lists[i]; cpcb != NULL; cpcb = cpcb->next) { - if (cpcb->local_port == port) { -#if SO_REUSE - /* Omit checking for the same port if both pcbs have REUSEADDR set. - For SO_REUSEADDR, the duplicate-check for a 5-tuple is done in - tcp_connect. */ - if (!ip_get_option(pcb, SOF_REUSEADDR) || - !ip_get_option(cpcb, SOF_REUSEADDR)) -#endif /* SO_REUSE */ - { - /* @todo: check accept_any_ip_version */ - if ((IP_IS_V6(ipaddr) == IP_IS_V6_VAL(cpcb->local_ip)) && - (ip_addr_isany(&cpcb->local_ip) || - ip_addr_isany(ipaddr) || - ip_addr_cmp(&cpcb->local_ip, ipaddr))) { - return ERR_USE; - } - } - } - } - } - } - - if (!ip_addr_isany(ipaddr) -#if LWIP_IPV4 && LWIP_IPV6 - || (IP_GET_TYPE(ipaddr) != IP_GET_TYPE(&pcb->local_ip)) -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - ) { - ip_addr_set(&pcb->local_ip, ipaddr); - } - pcb->local_port = port; - TCP_REG(&tcp_bound_pcbs, pcb); - LWIP_DEBUGF(TCP_DEBUG, ("tcp_bind: bind to port %"U16_F"\n", port)); - return ERR_OK; -} - -/** - * @ingroup tcp_raw - * Binds the connection to a netif and IP address. - * After calling this function, all packets received via this PCB - * are guaranteed to have come in via the specified netif, and all - * outgoing packets will go out via the specified netif. - * - * @param pcb the tcp_pcb to bind. - * @param netif the netif to bind to. Can be NULL. - */ -void -tcp_bind_netif(struct tcp_pcb *pcb, const struct netif *netif) -{ - LWIP_ASSERT_CORE_LOCKED(); - if (netif != NULL) { - pcb->netif_idx = netif_get_index(netif); - } else { - pcb->netif_idx = NETIF_NO_INDEX; - } -} - -#if LWIP_CALLBACK_API -/** - * Default accept callback if no accept callback is specified by the user. - */ -static err_t -tcp_accept_null(void *arg, struct tcp_pcb *pcb, err_t err) -{ - LWIP_UNUSED_ARG(arg); - LWIP_UNUSED_ARG(err); - - LWIP_ASSERT("tcp_accept_null: invalid pcb", pcb != NULL); - - tcp_abort(pcb); - - return ERR_ABRT; -} -#endif /* LWIP_CALLBACK_API */ - -/** - * @ingroup tcp_raw - * Set the state of the connection to be LISTEN, which means that it - * is able to accept incoming connections. The protocol control block - * is reallocated in order to consume less memory. Setting the - * connection to LISTEN is an irreversible process. - * When an incoming connection is accepted, the function specified with - * the tcp_accept() function will be called. The pcb has to be bound - * to a local port with the tcp_bind() function. - * - * The tcp_listen() function returns a new connection identifier, and - * the one passed as an argument to the function will be - * deallocated. The reason for this behavior is that less memory is - * needed for a connection that is listening, so tcp_listen() will - * reclaim the memory needed for the original connection and allocate a - * new smaller memory block for the listening connection. - * - * tcp_listen() may return NULL if no memory was available for the - * listening connection. If so, the memory associated with the pcb - * passed as an argument to tcp_listen() will not be deallocated. - * - * The backlog limits the number of outstanding connections - * in the listen queue to the value specified by the backlog argument. - * To use it, your need to set TCP_LISTEN_BACKLOG=1 in your lwipopts.h. - * - * @param pcb the original tcp_pcb - * @param backlog the incoming connections queue limit - * @return tcp_pcb used for listening, consumes less memory. - * - * @note The original tcp_pcb is freed. This function therefore has to be - * called like this: - * tpcb = tcp_listen_with_backlog(tpcb, backlog); - */ -struct tcp_pcb * -tcp_listen_with_backlog(struct tcp_pcb *pcb, u8_t backlog) -{ - LWIP_ASSERT_CORE_LOCKED(); - return tcp_listen_with_backlog_and_err(pcb, backlog, NULL); -} - -/** - * @ingroup tcp_raw - * Set the state of the connection to be LISTEN, which means that it - * is able to accept incoming connections. The protocol control block - * is reallocated in order to consume less memory. Setting the - * connection to LISTEN is an irreversible process. - * - * @param pcb the original tcp_pcb - * @param backlog the incoming connections queue limit - * @param err when NULL is returned, this contains the error reason - * @return tcp_pcb used for listening, consumes less memory. - * - * @note The original tcp_pcb is freed. This function therefore has to be - * called like this: - * tpcb = tcp_listen_with_backlog_and_err(tpcb, backlog, &err); - */ -struct tcp_pcb * -tcp_listen_with_backlog_and_err(struct tcp_pcb *pcb, u8_t backlog, err_t *err) -{ - struct tcp_pcb_listen *lpcb = NULL; - err_t res; - - LWIP_UNUSED_ARG(backlog); - - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("tcp_listen_with_backlog_and_err: invalid pcb", pcb != NULL, res = ERR_ARG; goto done); - LWIP_ERROR("tcp_listen_with_backlog_and_err: pcb already connected", pcb->state == CLOSED, res = ERR_CLSD; goto done); - - /* already listening? */ - if (pcb->state == LISTEN) { - lpcb = (struct tcp_pcb_listen *)pcb; - res = ERR_ALREADY; - goto done; - } -#if SO_REUSE - if (ip_get_option(pcb, SOF_REUSEADDR)) { - /* Since SOF_REUSEADDR allows reusing a local address before the pcb's usage - is declared (listen-/connection-pcb), we have to make sure now that - this port is only used once for every local IP. */ - for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) { - if ((lpcb->local_port == pcb->local_port) && - ip_addr_cmp(&lpcb->local_ip, &pcb->local_ip)) { - /* this address/port is already used */ - lpcb = NULL; - res = ERR_USE; - goto done; - } - } - } -#endif /* SO_REUSE */ - lpcb = (struct tcp_pcb_listen *)memp_malloc(MEMP_TCP_PCB_LISTEN); - if (lpcb == NULL) { - res = ERR_MEM; - goto done; - } - lpcb->callback_arg = pcb->callback_arg; - lpcb->local_port = pcb->local_port; - lpcb->state = LISTEN; - lpcb->prio = pcb->prio; - lpcb->so_options = pcb->so_options; - lpcb->netif_idx = NETIF_NO_INDEX; - lpcb->ttl = pcb->ttl; - lpcb->tos = pcb->tos; -#if LWIP_IPV4 && LWIP_IPV6 - IP_SET_TYPE_VAL(lpcb->remote_ip, pcb->local_ip.type); -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - ip_addr_copy(lpcb->local_ip, pcb->local_ip); - if (pcb->local_port != 0) { - TCP_RMV(&tcp_bound_pcbs, pcb); - } -#if LWIP_TCP_PCB_NUM_EXT_ARGS - /* copy over ext_args to listening pcb */ - memcpy(&lpcb->ext_args, &pcb->ext_args, sizeof(pcb->ext_args)); -#endif - tcp_free(pcb); -#if LWIP_CALLBACK_API - lpcb->accept = tcp_accept_null; -#endif /* LWIP_CALLBACK_API */ -#if TCP_LISTEN_BACKLOG - lpcb->accepts_pending = 0; - tcp_backlog_set(lpcb, backlog); -#endif /* TCP_LISTEN_BACKLOG */ - TCP_REG(&tcp_listen_pcbs.pcbs, (struct tcp_pcb *)lpcb); - res = ERR_OK; -done: - if (err != NULL) { - *err = res; - } - return (struct tcp_pcb *)lpcb; -} - -/** - * Update the state that tracks the available window space to advertise. - * - * 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) -{ - u32_t new_right_edge; - - LWIP_ASSERT("tcp_update_rcv_ann_wnd: invalid pcb", pcb != NULL); - new_right_edge = pcb->rcv_nxt + pcb->rcv_wnd; - - if (TCP_SEQ_GEQ(new_right_edge, pcb->rcv_ann_right_edge + LWIP_MIN((TCP_WND / 2), pcb->mss))) { - /* we can advertise more window */ - pcb->rcv_ann_wnd = pcb->rcv_wnd; - return new_right_edge - pcb->rcv_ann_right_edge; - } else { - if (TCP_SEQ_GT(pcb->rcv_nxt, pcb->rcv_ann_right_edge)) { - /* 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; - } else { - /* keep the right edge of window constant */ - u32_t new_rcv_ann_wnd = pcb->rcv_ann_right_edge - pcb->rcv_nxt; -#if !LWIP_WND_SCALE - LWIP_ASSERT("new_rcv_ann_wnd <= 0xffff", new_rcv_ann_wnd <= 0xffff); -#endif - pcb->rcv_ann_wnd = (tcpwnd_size_t)new_rcv_ann_wnd; - } - return 0; - } -} - -/** - * @ingroup tcp_raw - * This function should be called by the application when it has - * processed the data. The purpose is to advertise a larger window - * when the data has been processed. - * - * @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) -{ - u32_t wnd_inflation; - tcpwnd_size_t rcv_wnd; - - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("tcp_recved: invalid pcb", pcb != NULL, return); - - /* pcb->state LISTEN not allowed here */ - LWIP_ASSERT("don't call tcp_recved for listen-pcbs", - pcb->state != LISTEN); - - rcv_wnd = (tcpwnd_size_t)(pcb->rcv_wnd + len); - if ((rcv_wnd > TCP_WND_MAX(pcb)) || (rcv_wnd < pcb->rcv_wnd)) { - /* 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); - } else { - pcb->rcv_wnd = rcv_wnd; - } - - wnd_inflation = tcp_update_rcv_ann_wnd(pcb); - - /* 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) { - tcp_ack_now(pcb); - tcp_output(pcb); - } - - 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))); -} - -/** - * Allocate a new local TCP port. - * - * @return a new (free) local TCP port number - */ -static u16_t -tcp_new_port(void) -{ - u8_t i; - u16_t n = 0; - struct tcp_pcb *pcb; - -again: - tcp_port++; - if (tcp_port == TCP_LOCAL_PORT_RANGE_END) { - tcp_port = TCP_LOCAL_PORT_RANGE_START; - } - /* Check all PCB lists. */ - for (i = 0; i < NUM_TCP_PCB_LISTS; i++) { - for (pcb = *tcp_pcb_lists[i]; pcb != NULL; pcb = pcb->next) { - if (pcb->local_port == tcp_port) { - n++; - if (n > (TCP_LOCAL_PORT_RANGE_END - TCP_LOCAL_PORT_RANGE_START)) { - return 0; - } - goto again; - } - } - } - return tcp_port; -} - -/** - * @ingroup tcp_raw - * Connects to another host. The function given as the "connected" - * argument will be called when the connection has been established. - * Sets up the pcb to connect to the remote host and sends the - * initial SYN segment which opens the connection. - * - * The tcp_connect() function returns immediately; it does not wait for - * the connection to be properly setup. Instead, it will call the - * function specified as the fourth argument (the "connected" argument) - * when the connection is established. If the connection could not be - * properly established, either because the other host refused the - * connection or because the other host didn't answer, the "err" - * callback function of this pcb (registered with tcp_err, see below) - * will be called. - * - * The tcp_connect() function can return ERR_MEM if no memory is - * available for enqueueing the SYN segment. If the SYN indeed was - * enqueued successfully, the tcp_connect() function returns ERR_OK. - * - * @param pcb the tcp_pcb used to establish the connection - * @param ipaddr the remote ip address to connect to - * @param port the remote tcp port to connect to - * @param connected callback function to call when connected (on error, - the err calback will be called) - * @return ERR_VAL if invalid arguments are given - * ERR_OK if connect request has been sent - * other err_t values if connect request couldn't be sent - */ -err_t -tcp_connect(struct tcp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port, - tcp_connected_fn connected) -{ - struct netif *netif = NULL; - err_t ret; - u32_t iss; - u16_t old_local_port; - - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("tcp_connect: invalid pcb", pcb != NULL, return ERR_ARG); - LWIP_ERROR("tcp_connect: invalid ipaddr", ipaddr != NULL, return ERR_ARG); - - LWIP_ERROR("tcp_connect: can only connect from state CLOSED", pcb->state == CLOSED, return ERR_ISCONN); - - LWIP_DEBUGF(TCP_DEBUG, ("tcp_connect to port %"U16_F"\n", port)); - ip_addr_set(&pcb->remote_ip, ipaddr); - pcb->remote_port = port; - - if (pcb->netif_idx != NETIF_NO_INDEX) { - netif = netif_get_by_index(pcb->netif_idx); - } else { - /* check if we have a route to the remote host */ - netif = ip_route(&pcb->local_ip, &pcb->remote_ip); - } - if (netif == NULL) { - /* Don't even try to send a SYN packet if we have no route since that will fail. */ - return ERR_RTE; - } - - /* check if local IP has been assigned to pcb, if not, get one */ - if (ip_addr_isany(&pcb->local_ip)) { - const ip_addr_t *local_ip = ip_netif_get_local_ip(netif, ipaddr); - if (local_ip == NULL) { - return ERR_RTE; - } - ip_addr_copy(pcb->local_ip, *local_ip); - } - -#if LWIP_IPV6 && LWIP_IPV6_SCOPES - /* If the given IP address should have a zone but doesn't, assign one now. - * Given that we already have the target netif, this is easy and cheap. */ - if (IP_IS_V6(&pcb->remote_ip) && - ip6_addr_lacks_zone(ip_2_ip6(&pcb->remote_ip), IP6_UNICAST)) { - ip6_addr_assign_zone(ip_2_ip6(&pcb->remote_ip), IP6_UNICAST, netif); - } -#endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */ - - old_local_port = pcb->local_port; - if (pcb->local_port == 0) { - pcb->local_port = tcp_new_port(); - if (pcb->local_port == 0) { - return ERR_BUF; - } - } else { -#if SO_REUSE - if (ip_get_option(pcb, SOF_REUSEADDR)) { - /* Since SOF_REUSEADDR allows reusing a local address, we have to make sure - now that the 5-tuple is unique. */ - struct tcp_pcb *cpcb; - int i; - /* Don't check listen- and bound-PCBs, check active- and TIME-WAIT PCBs. */ - for (i = 2; i < NUM_TCP_PCB_LISTS; i++) { - for (cpcb = *tcp_pcb_lists[i]; cpcb != NULL; cpcb = cpcb->next) { - if ((cpcb->local_port == pcb->local_port) && - (cpcb->remote_port == port) && - ip_addr_cmp(&cpcb->local_ip, &pcb->local_ip) && - ip_addr_cmp(&cpcb->remote_ip, ipaddr)) { - /* linux returns EISCONN here, but ERR_USE should be OK for us */ - return ERR_USE; - } - } - } - } -#endif /* SO_REUSE */ - } - - iss = tcp_next_iss(pcb); - pcb->rcv_nxt = 0; - pcb->snd_nxt = iss; - pcb->lastack = iss - 1; - pcb->snd_wl2 = iss - 1; - pcb->snd_lbb = iss - 1; - /* 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); - pcb->rcv_ann_right_edge = pcb->rcv_nxt; - pcb->snd_wnd = TCP_WND; - /* 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; -#if TCP_CALCULATE_EFF_SEND_MSS - pcb->mss = tcp_eff_send_mss_netif(pcb->mss, netif, &pcb->remote_ip); -#endif /* TCP_CALCULATE_EFF_SEND_MSS */ - pcb->cwnd = 1; -#if LWIP_CALLBACK_API - pcb->connected = connected; -#else /* LWIP_CALLBACK_API */ - LWIP_UNUSED_ARG(connected); -#endif /* LWIP_CALLBACK_API */ - - /* Send a SYN together with the MSS option. */ - ret = tcp_enqueue_flags(pcb, TCP_SYN); - if (ret == ERR_OK) { - /* SYN segment was enqueued, changed the pcbs state now */ - pcb->state = SYN_SENT; - if (old_local_port != 0) { - TCP_RMV(&tcp_bound_pcbs, pcb); - } - TCP_REG_ACTIVE(pcb); - MIB2_STATS_INC(mib2.tcpactiveopens); - - tcp_output(pcb); - } - return ret; -} - -/** - * Called every 500 ms and implements the retransmission timer and the timer that - * removes PCBs that have been in TIME-WAIT for enough time. It also increments - * various timers such as the inactivity timer in each PCB. - * - * Automatically called from tcp_tmr(). - */ -void -tcp_slowtmr(void) -{ - struct tcp_pcb *pcb, *prev; - 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; - - ++tcp_ticks; - ++tcp_timer_ctr; - -tcp_slowtmr_start: - /* Steps through all of the active PCBs. */ - prev = NULL; - pcb = tcp_active_pcbs; - if (pcb == NULL) { - LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: no active pcbs\n")); - } - while (pcb != NULL) { - LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: processing active pcb\n")); - LWIP_ASSERT("tcp_slowtmr: active pcb->state != CLOSED\n", pcb->state != CLOSED); - LWIP_ASSERT("tcp_slowtmr: active pcb->state != LISTEN\n", pcb->state != LISTEN); - LWIP_ASSERT("tcp_slowtmr: active pcb->state != TIME-WAIT\n", pcb->state != TIME_WAIT); - if (pcb->last_timer == tcp_timer_ctr) { - /* skip this pcb, we have already processed it */ - prev = pcb; - pcb = pcb->next; - continue; - } - pcb->last_timer = tcp_timer_ctr; - - pcb_remove = 0; - pcb_reset = 0; - - if (pcb->state == SYN_SENT && pcb->nrtx >= TCP_SYNMAXRTX) { - ++pcb_remove; - LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: max SYN retries reached\n")); - } else if (pcb->nrtx >= TCP_MAXRTX) { - ++pcb_remove; - LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: max DATA retries reached\n")); - } else { - if (pcb->persist_backoff > 0) { - LWIP_ASSERT("tcp_slowtimr: persist ticking with in-flight data", pcb->unacked == NULL); - LWIP_ASSERT("tcp_slowtimr: persist ticking with empty send buffer", pcb->unsent != NULL); - if (pcb->persist_probe >= TCP_MAXRTX) { - ++pcb_remove; /* max probes reached */ - } else { - u8_t backoff_cnt = tcp_persist_backoff[pcb->persist_backoff - 1]; - if (pcb->persist_cnt < backoff_cnt) { - pcb->persist_cnt++; - } - if (pcb->persist_cnt >= backoff_cnt) { - int next_slot = 1; /* increment timer to next slot */ - /* If snd_wnd is zero, send 1 byte probes */ - if (pcb->snd_wnd == 0) { - if (tcp_zero_window_probe(pcb) != ERR_OK) { - next_slot = 0; /* try probe again with current slot */ - } - /* 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) { - if (tcp_output(pcb) == ERR_OK) { - /* sending will cancel persist timer, else retry with current slot */ - next_slot = 0; - } - } - } - if (next_slot) { - pcb->persist_cnt = 0; - if (pcb->persist_backoff < sizeof(tcp_persist_backoff)) { - pcb->persist_backoff++; - } - } - } - } - } else { - /* Increase the retransmission timer if it is running */ - if ((pcb->rtime >= 0) && (pcb->rtime < 0x7FFF)) { - ++pcb->rtime; - } - - if (pcb->rtime >= pcb->rto) { - /* Time for a retransmission. */ - LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_slowtmr: rtime %"S16_F - " 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))) { - /* Double retransmission time-out unless we are trying to - * connect to somebody (i.e., we are in SYN_SENT). */ - if (pcb->state != SYN_SENT) { - u8_t backoff_idx = LWIP_MIN(pcb->nrtx, sizeof(tcp_backoff) - 1); - int calc_rto = ((pcb->sa >> 3) + pcb->sv) << tcp_backoff[backoff_idx]; - pcb->rto = (s16_t)LWIP_MIN(calc_rto, 0x7FFF); - } - - /* Reset the retransmission timer. */ - pcb->rtime = 0; - - /* Reduce congestion window and ssthresh. */ - eff_wnd = LWIP_MIN(pcb->cwnd, pcb->snd_wnd); - pcb->ssthresh = eff_wnd >> 1; - if (pcb->ssthresh < (tcpwnd_size_t)(pcb->mss << 1)) { - pcb->ssthresh = (tcpwnd_size_t)(pcb->mss << 1); - } - pcb->cwnd = pcb->mss; - LWIP_DEBUGF(TCP_CWND_DEBUG, ("tcp_slowtmr: cwnd %"TCPWNDSIZE_F - " ssthresh %"TCPWNDSIZE_F"\n", - pcb->cwnd, pcb->ssthresh)); - pcb->bytes_acked = 0; - - /* The following needs to be called AFTER cwnd is set to one - mss - STJ */ - tcp_rexmit_rto_commit(pcb); - } - } - } - } - /* Check if this PCB has stayed too long in FIN-WAIT-2 */ - if (pcb->state == FIN_WAIT_2) { - /* If this PCB is in FIN_WAIT_2 because of SHUT_WR don't let it time out. */ - if (pcb->flags & TF_RXCLOSED) { - /* PCB was fully closed (either through close() or SHUT_RDWR): - normal FIN-WAIT timeout handling. */ - if ((u32_t)(tcp_ticks - pcb->tmr) > - TCP_FIN_WAIT_TIMEOUT / TCP_SLOW_INTERVAL) { - ++pcb_remove; - LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: removing pcb stuck in FIN-WAIT-2\n")); - } - } - } - - /* Check if KEEPALIVE should be sent */ - if (ip_get_option(pcb, SOF_KEEPALIVE) && - ((pcb->state == ESTABLISHED) || - (pcb->state == CLOSE_WAIT))) { - if ((u32_t)(tcp_ticks - pcb->tmr) > - (pcb->keep_idle + TCP_KEEP_DUR(pcb)) / TCP_SLOW_INTERVAL) { - 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; - ++pcb_reset; - } else if ((u32_t)(tcp_ticks - pcb->tmr) > - (pcb->keep_idle + pcb->keep_cnt_sent * TCP_KEEP_INTVL(pcb)) - / TCP_SLOW_INTERVAL) { - err = tcp_keepalive(pcb); - if (err == ERR_OK) { - pcb->keep_cnt_sent++; - } - } - } - - /* 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 && - (tcp_ticks - pcb->tmr >= (u32_t)pcb->rto * TCP_OOSEQ_TIMEOUT)) { - LWIP_DEBUGF(TCP_CWND_DEBUG, ("tcp_slowtmr: dropping OOSEQ queued data\n")); - tcp_free_ooseq(pcb); - } -#endif /* TCP_QUEUE_OOSEQ */ - - /* Check if this PCB has stayed too long in SYN-RCVD */ - if (pcb->state == SYN_RCVD) { - if ((u32_t)(tcp_ticks - pcb->tmr) > - TCP_SYN_RCVD_TIMEOUT / TCP_SLOW_INTERVAL) { - ++pcb_remove; - 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) { - if ((u32_t)(tcp_ticks - pcb->tmr) > 2 * TCP_MSL / TCP_SLOW_INTERVAL) { - ++pcb_remove; - LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: removing pcb stuck in LAST-ACK\n")); - } - } - - /* If the PCB should be removed, do it. */ - if (pcb_remove) { - struct tcp_pcb *pcb2; -#if LWIP_CALLBACK_API - tcp_err_fn err_fn = pcb->errf; -#endif /* LWIP_CALLBACK_API */ - void *err_arg; - enum tcp_state last_state; - tcp_pcb_purge(pcb); - /* Remove PCB from tcp_active_pcbs list. */ - if (prev != NULL) { - LWIP_ASSERT("tcp_slowtmr: middle tcp != tcp_active_pcbs", pcb != tcp_active_pcbs); - prev->next = pcb->next; - } else { - /* This PCB was the first. */ - LWIP_ASSERT("tcp_slowtmr: first pcb == tcp_active_pcbs", tcp_active_pcbs == pcb); - tcp_active_pcbs = pcb->next; - } - - if (pcb_reset) { - tcp_rst(pcb, pcb->snd_nxt, pcb->rcv_nxt, &pcb->local_ip, &pcb->remote_ip, - pcb->local_port, pcb->remote_port); - } - - err_arg = pcb->callback_arg; - last_state = pcb->state; - pcb2 = pcb; - pcb = pcb->next; - tcp_free(pcb2); - - tcp_active_pcbs_changed = 0; - TCP_EVENT_ERR(last_state, err_fn, err_arg, ERR_ABRT); - if (tcp_active_pcbs_changed) { - goto tcp_slowtmr_start; - } - } else { - /* get the 'next' element now and work with 'prev' below (in case of abort) */ - prev = pcb; - pcb = pcb->next; - - /* We check if we should poll the connection. */ - ++prev->polltmr; - if (prev->polltmr >= prev->pollinterval) { - prev->polltmr = 0; - LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: polling application\n")); - tcp_active_pcbs_changed = 0; - TCP_EVENT_POLL(prev, err); - if (tcp_active_pcbs_changed) { - goto tcp_slowtmr_start; - } - /* if err == ERR_ABRT, 'prev' is already deallocated */ - if (err == ERR_OK) { - tcp_output(prev); - } - } - } - } - - - /* Steps through all of the TIME-WAIT PCBs. */ - prev = NULL; - pcb = tcp_tw_pcbs; - while (pcb != NULL) { - LWIP_ASSERT("tcp_slowtmr: TIME-WAIT pcb->state == TIME-WAIT", pcb->state == TIME_WAIT); - pcb_remove = 0; - - /* Check if this PCB has stayed long enough in TIME-WAIT */ - if ((u32_t)(tcp_ticks - pcb->tmr) > 2 * TCP_MSL / TCP_SLOW_INTERVAL) { - ++pcb_remove; - } - - /* If the PCB should be removed, do it. */ - if (pcb_remove) { - struct tcp_pcb *pcb2; - tcp_pcb_purge(pcb); - /* Remove PCB from tcp_tw_pcbs list. */ - if (prev != NULL) { - LWIP_ASSERT("tcp_slowtmr: middle tcp != tcp_tw_pcbs", pcb != tcp_tw_pcbs); - prev->next = pcb->next; - } else { - /* This PCB was the first. */ - LWIP_ASSERT("tcp_slowtmr: first pcb == tcp_tw_pcbs", tcp_tw_pcbs == pcb); - tcp_tw_pcbs = pcb->next; - } - pcb2 = pcb; - pcb = pcb->next; - tcp_free(pcb2); - } else { - prev = pcb; - pcb = pcb->next; - } - } -} - -/** - * Is called every TCP_FAST_INTERVAL (250 ms) and process data previously - * "refused" by upper layer (application) and sends delayed ACKs or pending FINs. - * - * Automatically called from tcp_tmr(). - */ -void -tcp_fasttmr(void) -{ - struct tcp_pcb *pcb; - - ++tcp_timer_ctr; - -tcp_fasttmr_start: - pcb = tcp_active_pcbs; - - while (pcb != NULL) { - if (pcb->last_timer != tcp_timer_ctr) { - struct tcp_pcb *next; - pcb->last_timer = tcp_timer_ctr; - /* send delayed ACKs */ - if (pcb->flags & TF_ACK_DELAY) { - LWIP_DEBUGF(TCP_DEBUG, ("tcp_fasttmr: delayed ACK\n")); - tcp_ack_now(pcb); - tcp_output(pcb); - tcp_clear_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW); - } - /* send pending FIN */ - if (pcb->flags & TF_CLOSEPEND) { - LWIP_DEBUGF(TCP_DEBUG, ("tcp_fasttmr: pending FIN\n")); - tcp_clear_flags(pcb, TF_CLOSEPEND); - tcp_close_shutdown_fin(pcb); - } - - next = pcb->next; - - /* If there is data which was previously "refused" by upper layer */ - if (pcb->refused_data != NULL) { - tcp_active_pcbs_changed = 0; - tcp_process_refused_data(pcb); - if (tcp_active_pcbs_changed) { - /* application callback has changed the pcb list: restart the loop */ - goto tcp_fasttmr_start; - } - } - pcb = next; - } else { - pcb = pcb->next; - } - } -} - -/** Call tcp_output for all active pcbs that have TF_NAGLEMEMERR set */ -void -tcp_txnow(void) -{ - struct tcp_pcb *pcb; - - for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) { - if (pcb->flags & TF_NAGLEMEMERR) { - tcp_output(pcb); - } - } -} - -/** Pass pcb->refused_data to the recv callback */ -err_t -tcp_process_refused_data(struct tcp_pcb *pcb) -{ -#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); - -#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; - /* set pcb->refused_data to NULL in case the callback frees it and then - closes the pcb */ - struct pbuf *refused_data = pcb->refused_data; -#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; -#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); - if (err == ERR_OK) { - /* did refused_data include a FIN? */ - if ((refused_flags & PBUF_FLAG_TCP_FIN) -#if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE - && (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)) { - pcb->rcv_wnd++; - } - TCP_EVENT_CLOSED(pcb, err); - if (err == ERR_ABRT) { - return ERR_ABRT; - } - } - } else if (err == ERR_ABRT) { - /* 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; - } else { - /* data is still refused, pbuf is still valid (go on for ACK-only packets) */ -#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; - return ERR_INPROGRESS; - } - } - return ERR_OK; -} - -/** - * Deallocates a list of TCP segments (tcp_seg structures). - * - * @param seg tcp_seg list of TCP segments to free - */ -void -tcp_segs_free(struct tcp_seg *seg) -{ - while (seg != NULL) { - struct tcp_seg *next = seg->next; - tcp_seg_free(seg); - seg = next; - } -} - -/** - * Frees a TCP segment (tcp_seg structure). - * - * @param seg single tcp_seg to free - */ -void -tcp_seg_free(struct tcp_seg *seg) -{ - if (seg != NULL) { - if (seg->p != NULL) { - pbuf_free(seg->p); -#if TCP_DEBUG - seg->p = NULL; -#endif /* TCP_DEBUG */ - } - memp_free(MEMP_TCP_SEG, seg); - } -} - -/** - * @ingroup tcp - * Sets the priority of a connection. - * - * @param pcb the tcp_pcb to manipulate - * @param prio new priority - */ -void -tcp_setprio(struct tcp_pcb *pcb, u8_t prio) -{ - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("tcp_setprio: invalid pcb", pcb != NULL, return); - - pcb->prio = prio; -} - -#if TCP_QUEUE_OOSEQ -/** - * Returns a copy of the given TCP segment. - * The pbuf and data are not copied, only the pointers - * - * @param seg the old tcp_seg - * @return a copy of seg - */ -struct tcp_seg * -tcp_seg_copy(struct tcp_seg *seg) -{ - struct tcp_seg *cseg; - - LWIP_ASSERT("tcp_seg_copy: invalid seg", seg != NULL); - - cseg = (struct tcp_seg *)memp_malloc(MEMP_TCP_SEG); - if (cseg == NULL) { - return NULL; - } - SMEMCPY((u8_t *)cseg, (const u8_t *)seg, sizeof(struct tcp_seg)); - pbuf_ref(cseg->p); - return cseg; -} -#endif /* TCP_QUEUE_OOSEQ */ - -#if LWIP_CALLBACK_API -/** - * 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) -{ - LWIP_UNUSED_ARG(arg); - - LWIP_ERROR("tcp_recv_null: invalid pcb", pcb != NULL, return ERR_ARG); - - if (p != NULL) { - tcp_recved(pcb, p->tot_len); - pbuf_free(p); - } else if (err == ERR_OK) { - return tcp_close(pcb); - } - return ERR_OK; -} -#endif /* LWIP_CALLBACK_API */ - -/** - * Kills the oldest active connection that has a lower priority than 'prio'. - * - * @param prio minimum priority - */ -static void -tcp_kill_prio(u8_t prio) -{ - struct tcp_pcb *pcb, *inactive; - u32_t inactivity; - u8_t mprio; - - mprio = LWIP_MIN(TCP_PRIO_MAX, prio); - - /* 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) { - return; - } - - /* 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--; - - inactivity = 0; - inactive = NULL; - for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) { - /* lower prio is always a kill candidate */ - if ((pcb->prio < mprio) || - /* longer inactivity is also a kill candidate */ - ((pcb->prio == mprio) && ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity))) { - inactivity = tcp_ticks - pcb->tmr; - inactive = pcb; - mprio = pcb->prio; - } - } - if (inactive != NULL) { - LWIP_DEBUGF(TCP_DEBUG, ("tcp_kill_prio: killing oldest PCB %p (%"S32_F")\n", - (void *)inactive, inactivity)); - tcp_abort(inactive); - } -} - -/** - * 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) -{ - struct tcp_pcb *pcb, *inactive; - u32_t inactivity; - - LWIP_ASSERT("invalid state", (state == CLOSING) || (state == LAST_ACK)); - - inactivity = 0; - inactive = NULL; - /* 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) { - if (pcb->state == state) { - if ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity) { - inactivity = tcp_ticks - pcb->tmr; - inactive = pcb; - } - } - } - if (inactive != NULL) { - 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); - } -} - -/** - * 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) -{ - struct tcp_pcb *pcb, *inactive; - u32_t inactivity; - - inactivity = 0; - inactive = NULL; - /* Go through the list of TIME_WAIT pcbs and get the oldest pcb. */ - for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) { - if ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity) { - inactivity = tcp_ticks - pcb->tmr; - inactive = pcb; - } - } - if (inactive != NULL) { - LWIP_DEBUGF(TCP_DEBUG, ("tcp_kill_timewait: killing oldest TIME-WAIT PCB %p (%"S32_F")\n", - (void *)inactive, inactivity)); - tcp_abort(inactive); - } -} - -/* Called when allocating a pcb fails. - * In this case, we want to handle all pcbs that want to close first: if we can - * 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) -{ - struct tcp_pcb *pcb = tcp_active_pcbs; - - while (pcb != NULL) { - struct tcp_pcb *next = pcb->next; - /* send pending FIN */ - if (pcb->flags & TF_CLOSEPEND) { - LWIP_DEBUGF(TCP_DEBUG, ("tcp_handle_closepend: pending FIN\n")); - tcp_clear_flags(pcb, TF_CLOSEPEND); - tcp_close_shutdown_fin(pcb); - } - pcb = next; - } -} - -/** - * Allocate a new tcp_pcb structure. - * - * @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) -{ - struct tcp_pcb *pcb; - - LWIP_ASSERT_CORE_LOCKED(); - - pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB); - if (pcb == NULL) { - /* Try to send FIN for all pcbs stuck in TF_CLOSEPEND first */ - tcp_handle_closepend(); - - /* Try killing oldest connection in TIME-WAIT. */ - LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing off oldest TIME-WAIT connection\n")); - tcp_kill_timewait(); - /* Try to allocate a tcp_pcb again. */ - pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB); - if (pcb == NULL) { - /* 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); - /* Try to allocate a tcp_pcb again. */ - pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB); - if (pcb == NULL) { - /* Try killing oldest connection in CLOSING. */ - LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing off oldest CLOSING connection\n")); - tcp_kill_state(CLOSING); - /* Try to allocate a tcp_pcb again. */ - pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB); - if (pcb == NULL) { - /* 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); - /* Try to allocate a tcp_pcb again. */ - pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB); - if (pcb != NULL) { - /* adjust err stats: memp_malloc failed multiple times before */ - MEMP_STATS_DEC(err, MEMP_TCP_PCB); - } - } - if (pcb != NULL) { - /* adjust err stats: memp_malloc failed multiple times before */ - MEMP_STATS_DEC(err, MEMP_TCP_PCB); - } - } - if (pcb != NULL) { - /* adjust err stats: memp_malloc failed multiple times before */ - MEMP_STATS_DEC(err, MEMP_TCP_PCB); - } - } - if (pcb != NULL) { - /* adjust err stats: memp_malloc failed above */ - MEMP_STATS_DEC(err, MEMP_TCP_PCB); - } - } - if (pcb != NULL) { - /* zero out the whole pcb, so there is no need to initialize members to zero */ - memset(pcb, 0, sizeof(struct tcp_pcb)); - pcb->prio = prio; - pcb->snd_buf = TCP_SND_BUF; - /* 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); - pcb->ttl = TCP_TTL; - /* 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; - pcb->rto = 3000 / TCP_SLOW_INTERVAL; - pcb->sv = 3000 / TCP_SLOW_INTERVAL; - pcb->rtime = -1; - pcb->cwnd = 1; - pcb->tmr = tcp_ticks; - pcb->last_timer = tcp_timer_ctr; - - /* RFC 5681 recommends setting ssthresh abritrarily high and gives an example - 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; - -#if LWIP_CALLBACK_API - pcb->recv = tcp_recv_null; -#endif /* LWIP_CALLBACK_API */ - - /* Init KEEPALIVE timer */ - pcb->keep_idle = TCP_KEEPIDLE_DEFAULT; - -#if LWIP_TCP_KEEPALIVE - pcb->keep_intvl = TCP_KEEPINTVL_DEFAULT; - pcb->keep_cnt = TCP_KEEPCNT_DEFAULT; -#endif /* LWIP_TCP_KEEPALIVE */ - } - return pcb; -} - -/** - * @ingroup tcp_raw - * Creates a new TCP protocol control block but doesn't place it on - * any of the TCP PCB lists. - * The pcb is not put on any list until binding using tcp_bind(). - * If memory is not available for creating the new pcb, NULL is returned. - * - * @internal: Maybe there should be a idle TCP PCB list where these - * PCBs are put on. Port reservation using tcp_bind() is implemented but - * allocated pcbs that are not bound can't be killed automatically if wanting - * to allocate a pcb with higher prio (@see tcp_kill_prio()) - * - * @return a new tcp_pcb that initially is in state CLOSED - */ -struct tcp_pcb * -tcp_new(void) -{ - return tcp_alloc(TCP_PRIO_NORMAL); -} - -/** - * @ingroup tcp_raw - * Creates a new TCP protocol control block but doesn't - * place it on any of the TCP PCB lists. - * The pcb is not put on any list until binding using tcp_bind(). - * - * @param type IP address type, see @ref lwip_ip_addr_type definitions. - * If you want to listen to IPv4 and IPv6 (dual-stack) connections, - * supply @ref IPADDR_TYPE_ANY as argument and bind to @ref IP_ANY_TYPE. - * @return a new tcp_pcb that initially is in state CLOSED - */ -struct tcp_pcb * -tcp_new_ip_type(u8_t type) -{ - struct tcp_pcb *pcb; - pcb = tcp_alloc(TCP_PRIO_NORMAL); -#if LWIP_IPV4 && LWIP_IPV6 - if (pcb != NULL) { - IP_SET_TYPE_VAL(pcb->local_ip, type); - IP_SET_TYPE_VAL(pcb->remote_ip, type); - } -#else - LWIP_UNUSED_ARG(type); -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - return pcb; -} - -/** - * @ingroup tcp_raw - * Specifies the program specific state that should be passed to all - * other callback functions. The "pcb" argument is the current TCP - * connection control block, and the "arg" argument is the argument - * that will be passed to the callbacks. - * - * @param pcb tcp_pcb to set the callback argument - * @param arg void pointer argument to pass to callback functions - */ -void -tcp_arg(struct tcp_pcb *pcb, void *arg) -{ - LWIP_ASSERT_CORE_LOCKED(); - /* This function is allowed to be called for both listen pcbs and - connection pcbs. */ - if (pcb != NULL) { - pcb->callback_arg = arg; - } -} -#if LWIP_CALLBACK_API - -/** - * @ingroup tcp_raw - * Sets the callback function that will be called when new data - * arrives. The callback function will be passed a NULL pbuf to - * indicate that the remote host has closed the connection. If the - * callback function returns ERR_OK or ERR_ABRT it must have - * freed the pbuf, otherwise it must not have freed it. - * - * @param pcb tcp_pcb to set the recv callback - * @param recv callback function to call for this pcb when data is received - */ -void -tcp_recv(struct tcp_pcb *pcb, tcp_recv_fn recv) -{ - LWIP_ASSERT_CORE_LOCKED(); - if (pcb != NULL) { - LWIP_ASSERT("invalid socket state for recv callback", pcb->state != LISTEN); - pcb->recv = recv; - } -} - -/** - * @ingroup tcp_raw - * Specifies the callback function that should be called when data has - * successfully been received (i.e., acknowledged) by the remote - * host. The len argument passed to the callback function gives the - * amount bytes that was acknowledged by the last acknowledgment. - * - * @param pcb tcp_pcb to set the sent callback - * @param sent callback function to call for this pcb when data is successfully sent - */ -void -tcp_sent(struct tcp_pcb *pcb, tcp_sent_fn sent) -{ - LWIP_ASSERT_CORE_LOCKED(); - if (pcb != NULL) { - LWIP_ASSERT("invalid socket state for sent callback", pcb->state != LISTEN); - pcb->sent = sent; - } -} - -/** - * @ingroup tcp_raw - * Used to specify the function that should be called when a fatal error - * has occurred on the connection. - * - * If a connection is aborted because of an error, the application is - * alerted of this event by the err callback. Errors that might abort a - * connection are when there is a shortage of memory. The callback - * function to be called is set using the tcp_err() function. - * - * @note The corresponding pcb is already freed when this callback is called! - * - * @param pcb tcp_pcb to set the err callback - * @param err callback function to call for this pcb when a fatal error - * has occurred on the connection - */ -void -tcp_err(struct tcp_pcb *pcb, tcp_err_fn err) -{ - LWIP_ASSERT_CORE_LOCKED(); - if (pcb != NULL) { - LWIP_ASSERT("invalid socket state for err callback", pcb->state != LISTEN); - pcb->errf = err; - } -} - -/** - * @ingroup tcp_raw - * Used for specifying the function that should be called when a - * LISTENing connection has been connected to another host. - * - * @param pcb tcp_pcb to set the accept callback - * @param accept callback function to call for this pcb when LISTENing - * connection has been connected to another host - */ -void -tcp_accept(struct tcp_pcb *pcb, tcp_accept_fn accept) -{ - LWIP_ASSERT_CORE_LOCKED(); - if ((pcb != NULL) && (pcb->state == LISTEN)) { - struct tcp_pcb_listen *lpcb = (struct tcp_pcb_listen *)pcb; - lpcb->accept = accept; - } -} -#endif /* LWIP_CALLBACK_API */ - - -/** - * @ingroup tcp_raw - * Specifies the polling interval and the callback function that should - * be called to poll the application. The interval is specified in - * number of TCP coarse grained timer shots, which typically occurs - * twice a second. An interval of 10 means that the application would - * be polled every 5 seconds. - * - * When a connection is idle (i.e., no data is either transmitted or - * received), lwIP will repeatedly poll the application by calling a - * specified callback function. This can be used either as a watchdog - * timer for killing connections that have stayed idle for too long, or - * as a method of waiting for memory to become available. For instance, - * if a call to tcp_write() has failed because memory wasn't available, - * the application may use the polling functionality to call tcp_write() - * again when the connection has been idle for a while. - */ -void -tcp_poll(struct tcp_pcb *pcb, tcp_poll_fn poll, u8_t interval) -{ - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("tcp_poll: invalid pcb", pcb != NULL, return); - LWIP_ASSERT("invalid socket state for poll", pcb->state != LISTEN); - -#if LWIP_CALLBACK_API - pcb->poll = poll; -#else /* LWIP_CALLBACK_API */ - LWIP_UNUSED_ARG(poll); -#endif /* LWIP_CALLBACK_API */ - pcb->pollinterval = interval; -} - -/** - * Purges a TCP PCB. Removes any buffered data and frees the buffer memory - * (pcb->ooseq, pcb->unsent and pcb->unacked are freed). - * - * @param pcb tcp_pcb to purge. The pcb itself is not deallocated! - */ -void -tcp_pcb_purge(struct tcp_pcb *pcb) -{ - LWIP_ERROR("tcp_pcb_purge: invalid pcb", pcb != NULL, return); - - if (pcb->state != CLOSED && - pcb->state != TIME_WAIT && - pcb->state != LISTEN) { - - LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge\n")); - - tcp_backlog_accepted(pcb); - - if (pcb->refused_data != NULL) { - LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: data left on ->refused_data\n")); - pbuf_free(pcb->refused_data); - pcb->refused_data = NULL; - } - if (pcb->unsent != NULL) { - LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: not all data sent\n")); - } - if (pcb->unacked != NULL) { - LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: data left on ->unacked\n")); - } -#if TCP_QUEUE_OOSEQ - if (pcb->ooseq != NULL) { - LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: data left on ->ooseq\n")); - tcp_free_ooseq(pcb); - } -#endif /* TCP_QUEUE_OOSEQ */ - - /* Stop the retransmission timer as it will expect data on unacked - queue if it fires */ - pcb->rtime = -1; - - tcp_segs_free(pcb->unsent); - tcp_segs_free(pcb->unacked); - pcb->unacked = pcb->unsent = NULL; -#if TCP_OVERSIZE - pcb->unsent_oversize = 0; -#endif /* TCP_OVERSIZE */ - } -} - -/** - * Purges the PCB and removes it from a PCB list. Any delayed ACKs are sent first. - * - * @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) -{ - LWIP_ASSERT("tcp_pcb_remove: invalid pcb", pcb != NULL); - LWIP_ASSERT("tcp_pcb_remove: invalid pcblist", pcblist != NULL); - - TCP_RMV(pcblist, pcb); - - tcp_pcb_purge(pcb); - - /* if there is an outstanding delayed ACKs, send it */ - if ((pcb->state != TIME_WAIT) && - (pcb->state != LISTEN) && - (pcb->flags & TF_ACK_DELAY)) { - tcp_ack_now(pcb); - tcp_output(pcb); - } - - if (pcb->state != LISTEN) { - LWIP_ASSERT("unsent segments leaking", pcb->unsent == NULL); - LWIP_ASSERT("unacked segments leaking", pcb->unacked == NULL); -#if TCP_QUEUE_OOSEQ - LWIP_ASSERT("ooseq segments leaking", pcb->ooseq == NULL); -#endif /* TCP_QUEUE_OOSEQ */ - } - - pcb->state = CLOSED; - /* reset the local port to prevent the pcb from being 'bound' */ - pcb->local_port = 0; - - LWIP_ASSERT("tcp_pcb_remove: tcp_pcbs_sane()", tcp_pcbs_sane()); -} - -/** - * Calculates a new initial sequence number for new connections. - * - * @return u32_t pseudo random sequence number - */ -u32_t -tcp_next_iss(struct tcp_pcb *pcb) -{ -#ifdef LWIP_HOOK_TCP_ISN - 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); - LWIP_UNUSED_ARG(pcb); - - iss += tcp_ticks; /* XXX */ - return iss; -#endif /* LWIP_HOOK_TCP_ISN */ -} - -#if TCP_CALCULATE_EFF_SEND_MSS -/** - * Calculates the effective send mss that can be used for a specific IP address - * 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) -{ - 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); - -#if LWIP_IPV6 -#if LWIP_IPV4 - if (IP_IS_V6(dest)) -#endif /* LWIP_IPV4 */ - { - /* First look in destination cache, to see if there is a Path MTU. */ - mtu = nd6_get_destination_mtu(ip_2_ip6(dest), outif); - } -#if LWIP_IPV4 - else -#endif /* LWIP_IPV4 */ -#endif /* LWIP_IPV6 */ -#if LWIP_IPV4 - { - if (outif == NULL) { - return sendmss; - } - mtu = outif->mtu; - } -#endif /* LWIP_IPV4 */ - - if (mtu != 0) { - u16_t offset; -#if LWIP_IPV6 -#if LWIP_IPV4 - if (IP_IS_V6(dest)) -#endif /* LWIP_IPV4 */ - { - offset = IP6_HLEN + TCP_HLEN; - } -#if LWIP_IPV4 - else -#endif /* LWIP_IPV4 */ -#endif /* LWIP_IPV6 */ -#if LWIP_IPV4 - { - offset = IP_HLEN + TCP_HLEN; - } -#endif /* LWIP_IPV4 */ - mss_s = (mtu > offset) ? (u16_t)(mtu - offset) : 0; - /* 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); - } - return sendmss; -} -#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) -{ - struct tcp_pcb *pcb; - pcb = pcb_list; - - LWIP_ASSERT("tcp_netif_ip_addr_changed_pcblist: invalid old_addr", old_addr != NULL); - - while (pcb != NULL) { - /* PCB bound to current local interface address? */ - if (ip_addr_cmp(&pcb->local_ip, old_addr) -#if LWIP_AUTOIP - /* 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; - LWIP_DEBUGF(NETIF_DEBUG | LWIP_DBG_STATE, ("netif_set_ipaddr: aborting TCP pcb %p\n", (void *)pcb)); - tcp_abort(pcb); - pcb = next; - } else { - pcb = pcb->next; - } - } -} - -/** This function is called from netif.c when address is changed or netif is removed - * - * @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) -{ - struct tcp_pcb_listen *lpcb; - - if (!ip_addr_isany(old_addr)) { - tcp_netif_ip_addr_changed_pcblist(old_addr, tcp_active_pcbs); - tcp_netif_ip_addr_changed_pcblist(old_addr, tcp_bound_pcbs); - - if (!ip_addr_isany(new_addr)) { - /* PCB bound to current local interface address? */ - for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) { - /* PCB bound to current local interface address? */ - if (ip_addr_cmp(&lpcb->local_ip, old_addr)) { - /* 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); - } - } - } - } -} - -const char * -tcp_debug_state_str(enum tcp_state s) -{ - return tcp_state_str[s]; -} - -err_t -tcp_tcp_get_tcp_addrinfo(struct tcp_pcb *pcb, int local, ip_addr_t *addr, u16_t *port) -{ - if (pcb) { - if (local) { - if (addr) { - *addr = pcb->local_ip; - } - if (port) { - *port = pcb->local_port; - } - } else { - if (addr) { - *addr = pcb->remote_ip; - } - if (port) { - *port = pcb->remote_port; - } - } - return ERR_OK; - } - return ERR_VAL; -} - -#if TCP_QUEUE_OOSEQ -/* Free all ooseq pbufs (and possibly reset SACK state) */ -void -tcp_free_ooseq(struct tcp_pcb *pcb) -{ - if (pcb->ooseq) { - tcp_segs_free(pcb->ooseq); - pcb->ooseq = NULL; -#if LWIP_TCP_SACK_OUT - memset(pcb->rcv_sacks, 0, sizeof(pcb->rcv_sacks)); -#endif /* LWIP_TCP_SACK_OUT */ - } -} -#endif /* TCP_QUEUE_OOSEQ */ - -#if TCP_DEBUG || TCP_INPUT_DEBUG || TCP_OUTPUT_DEBUG -/** - * Print a tcp header for debugging purposes. - * - * @param tcphdr pointer to a struct tcp_hdr - */ -void -tcp_debug_print(struct tcp_hdr *tcphdr) -{ - LWIP_DEBUGF(TCP_DEBUG, ("TCP header:\n")); - LWIP_DEBUGF(TCP_DEBUG, ("+-------------------------------+\n")); - LWIP_DEBUGF(TCP_DEBUG, ("| %5"U16_F" | %5"U16_F" | (src port, dest port)\n", - lwip_ntohs(tcphdr->src), lwip_ntohs(tcphdr->dest))); - LWIP_DEBUGF(TCP_DEBUG, ("+-------------------------------+\n")); - LWIP_DEBUGF(TCP_DEBUG, ("| %010"U32_F" | (seq no)\n", - lwip_ntohl(tcphdr->seqno))); - LWIP_DEBUGF(TCP_DEBUG, ("+-------------------------------+\n")); - LWIP_DEBUGF(TCP_DEBUG, ("| %010"U32_F" | (ack no)\n", - lwip_ntohl(tcphdr->ackno))); - LWIP_DEBUGF(TCP_DEBUG, ("+-------------------------------+\n")); - LWIP_DEBUGF(TCP_DEBUG, ("| %2"U16_F" | |%"U16_F"%"U16_F"%"U16_F"%"U16_F"%"U16_F"%"U16_F"| %5"U16_F" | (hdrlen, flags (", - TCPH_HDRLEN(tcphdr), - (u16_t)(TCPH_FLAGS(tcphdr) >> 5 & 1), - (u16_t)(TCPH_FLAGS(tcphdr) >> 4 & 1), - (u16_t)(TCPH_FLAGS(tcphdr) >> 3 & 1), - (u16_t)(TCPH_FLAGS(tcphdr) >> 2 & 1), - (u16_t)(TCPH_FLAGS(tcphdr) >> 1 & 1), - (u16_t)(TCPH_FLAGS(tcphdr) & 1), - lwip_ntohs(tcphdr->wnd))); - tcp_debug_print_flags(TCPH_FLAGS(tcphdr)); - LWIP_DEBUGF(TCP_DEBUG, ("), win)\n")); - LWIP_DEBUGF(TCP_DEBUG, ("+-------------------------------+\n")); - LWIP_DEBUGF(TCP_DEBUG, ("| 0x%04"X16_F" | %5"U16_F" | (chksum, urgp)\n", - lwip_ntohs(tcphdr->chksum), lwip_ntohs(tcphdr->urgp))); - LWIP_DEBUGF(TCP_DEBUG, ("+-------------------------------+\n")); -} - -/** - * Print a tcp state for debugging purposes. - * - * @param s enum tcp_state to print - */ -void -tcp_debug_print_state(enum tcp_state s) -{ - LWIP_DEBUGF(TCP_DEBUG, ("State: %s\n", tcp_state_str[s])); -} - -/** - * Print tcp flags for debugging purposes. - * - * @param flags tcp flags, all active flags are printed - */ -void -tcp_debug_print_flags(u8_t flags) -{ - if (flags & TCP_FIN) { - LWIP_DEBUGF(TCP_DEBUG, ("FIN ")); - } - if (flags & TCP_SYN) { - LWIP_DEBUGF(TCP_DEBUG, ("SYN ")); - } - if (flags & TCP_RST) { - LWIP_DEBUGF(TCP_DEBUG, ("RST ")); - } - if (flags & TCP_PSH) { - LWIP_DEBUGF(TCP_DEBUG, ("PSH ")); - } - if (flags & TCP_ACK) { - LWIP_DEBUGF(TCP_DEBUG, ("ACK ")); - } - if (flags & TCP_URG) { - LWIP_DEBUGF(TCP_DEBUG, ("URG ")); - } - if (flags & TCP_ECE) { - LWIP_DEBUGF(TCP_DEBUG, ("ECE ")); - } - if (flags & TCP_CWR) { - LWIP_DEBUGF(TCP_DEBUG, ("CWR ")); - } - LWIP_DEBUGF(TCP_DEBUG, ("\n")); -} - -/** - * Print all tcp_pcbs in every list for debugging purposes. - */ -void -tcp_debug_print_pcbs(void) -{ - struct tcp_pcb *pcb; - struct tcp_pcb_listen *pcbl; - - LWIP_DEBUGF(TCP_DEBUG, ("Active PCB states:\n")); - for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) { - LWIP_DEBUGF(TCP_DEBUG, ("Local port %"U16_F", foreign port %"U16_F" snd_nxt %"U32_F" rcv_nxt %"U32_F" ", - pcb->local_port, pcb->remote_port, - pcb->snd_nxt, pcb->rcv_nxt)); - tcp_debug_print_state(pcb->state); - } - - LWIP_DEBUGF(TCP_DEBUG, ("Listen PCB states:\n")); - for (pcbl = tcp_listen_pcbs.listen_pcbs; pcbl != NULL; pcbl = pcbl->next) { - LWIP_DEBUGF(TCP_DEBUG, ("Local port %"U16_F" ", pcbl->local_port)); - tcp_debug_print_state(pcbl->state); - } - - LWIP_DEBUGF(TCP_DEBUG, ("TIME-WAIT PCB states:\n")); - for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) { - LWIP_DEBUGF(TCP_DEBUG, ("Local port %"U16_F", foreign port %"U16_F" snd_nxt %"U32_F" rcv_nxt %"U32_F" ", - pcb->local_port, pcb->remote_port, - pcb->snd_nxt, pcb->rcv_nxt)); - tcp_debug_print_state(pcb->state); - } -} - -/** - * Check state consistency of the tcp_pcb lists. - */ -s16_t -tcp_pcbs_sane(void) -{ - struct tcp_pcb *pcb; - for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) { - LWIP_ASSERT("tcp_pcbs_sane: active pcb->state != CLOSED", pcb->state != CLOSED); - LWIP_ASSERT("tcp_pcbs_sane: active pcb->state != LISTEN", pcb->state != LISTEN); - LWIP_ASSERT("tcp_pcbs_sane: active pcb->state != TIME-WAIT", pcb->state != TIME_WAIT); - } - for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) { - LWIP_ASSERT("tcp_pcbs_sane: tw pcb->state == TIME-WAIT", pcb->state == TIME_WAIT); - } - return 1; -} -#endif /* TCP_DEBUG */ - -#if LWIP_TCP_PCB_NUM_EXT_ARGS -/** - * @defgroup tcp_raw_extargs ext arguments - * @ingroup tcp_raw - * Additional data storage per tcp pcb\n - * @see @ref tcp_raw - * - * When LWIP_TCP_PCB_NUM_EXT_ARGS is > 0, every tcp pcb (including listen pcb) - * includes a number of additional argument entries in an array. - * - * To support memory management, in addition to a 'void *', callbacks can be - * provided to manage transition from listening pcbs to connections and to - * deallocate memory when a pcb is deallocated (see struct @ref tcp_ext_arg_callbacks). - * - * After allocating this index, use @ref tcp_ext_arg_set and @ref tcp_ext_arg_get - * to store and load arguments from this index for a given pcb. - */ - -static u8_t tcp_ext_arg_id; - -/** - * @ingroup tcp_raw_extargs - * Allocate an index to store data in ext_args member of struct tcp_pcb. - * Returned value is an index in mentioned array. - * The index is *global* over all pcbs! - * - * When @ref LWIP_TCP_PCB_NUM_EXT_ARGS is > 0, every tcp pcb (including listen pcb) - * includes a number of additional argument entries in an array. - * - * To support memory management, in addition to a 'void *', callbacks can be - * provided to manage transition from listening pcbs to connections and to - * deallocate memory when a pcb is deallocated (see struct @ref tcp_ext_arg_callbacks). - * - * After allocating this index, use @ref tcp_ext_arg_set and @ref tcp_ext_arg_get - * to store and load arguments from this index for a given pcb. - * - * @return a unique index into struct tcp_pcb.ext_args - */ -u8_t -tcp_ext_arg_alloc_id(void) -{ - u8_t result = tcp_ext_arg_id; - tcp_ext_arg_id++; - - LWIP_ASSERT_CORE_LOCKED(); - -#if LWIP_TCP_PCB_NUM_EXT_ARGS >= 255 -#error LWIP_TCP_PCB_NUM_EXT_ARGS -#endif - LWIP_ASSERT("Increase LWIP_TCP_PCB_NUM_EXT_ARGS in lwipopts.h", result < LWIP_TCP_PCB_NUM_EXT_ARGS); - return result; -} - -/** - * @ingroup tcp_raw_extargs - * Set callbacks for a given index of ext_args on the specified pcb. - * - * @param pcb tcp_pcb for which to set the callback - * @param id ext_args index to set (allocated via @ref tcp_ext_arg_alloc_id) - * @param callbacks callback table (const since it is referenced, not copied!) - */ -void -tcp_ext_arg_set_callbacks(struct tcp_pcb *pcb, uint8_t id, const struct tcp_ext_arg_callbacks * const callbacks) -{ - LWIP_ASSERT("pcb != NULL", pcb != NULL); - LWIP_ASSERT("id < LWIP_TCP_PCB_NUM_EXT_ARGS", id < LWIP_TCP_PCB_NUM_EXT_ARGS); - LWIP_ASSERT("callbacks != NULL", callbacks != NULL); - - LWIP_ASSERT_CORE_LOCKED(); - - pcb->ext_args[id].callbacks = callbacks; -} - -/** - * @ingroup tcp_raw_extargs - * Set data for a given index of ext_args on the specified pcb. - * - * @param pcb tcp_pcb for which to set the data - * @param id ext_args index to set (allocated via @ref tcp_ext_arg_alloc_id) - * @param arg data pointer to set - */ -void tcp_ext_arg_set(struct tcp_pcb *pcb, uint8_t id, void *arg) -{ - LWIP_ASSERT("pcb != NULL", pcb != NULL); - LWIP_ASSERT("id < LWIP_TCP_PCB_NUM_EXT_ARGS", id < LWIP_TCP_PCB_NUM_EXT_ARGS); - - LWIP_ASSERT_CORE_LOCKED(); - - pcb->ext_args[id].data = arg; -} - -/** - * @ingroup tcp_raw_extargs - * Set data for a given index of ext_args on the specified pcb. - * - * @param pcb tcp_pcb for which to set the data - * @param id ext_args index to set (allocated via @ref tcp_ext_arg_alloc_id) - * @return data pointer at the given index - */ -void *tcp_ext_arg_get(const struct tcp_pcb *pcb, uint8_t id) -{ - LWIP_ASSERT("pcb != NULL", pcb != NULL); - LWIP_ASSERT("id < LWIP_TCP_PCB_NUM_EXT_ARGS", id < LWIP_TCP_PCB_NUM_EXT_ARGS); - - LWIP_ASSERT_CORE_LOCKED(); - - return pcb->ext_args[id].data; -} - -/** This function calls the "destroy" callback for all ext_args once a pcb is - * freed. - */ -static void -tcp_ext_arg_invoke_callbacks_destroyed(struct tcp_pcb_ext_args *ext_args) -{ - int i; - LWIP_ASSERT("ext_args != NULL", ext_args != NULL); - - for (i = 0; i < LWIP_TCP_PCB_NUM_EXT_ARGS; i++) { - if (ext_args[i].callbacks != NULL) { - if (ext_args[i].callbacks->destroy != NULL) { - ext_args[i].callbacks->destroy((u8_t)i, ext_args[i].data); - } - } - } -} - -/** This function calls the "passive_open" callback for all ext_args if a connection - * is in the process of being accepted. This is called just after the SYN is - * received and before a SYN/ACK is sent, to allow to modify the very first - * segment sent even on passive open. Naturally, the "accepted" callback of the - * pcb has not been called yet! - */ -err_t -tcp_ext_arg_invoke_callbacks_passive_open(struct tcp_pcb_listen *lpcb, struct tcp_pcb *cpcb) -{ - int i; - LWIP_ASSERT("lpcb != NULL", lpcb != NULL); - LWIP_ASSERT("cpcb != NULL", cpcb != NULL); - - for (i = 0; i < LWIP_TCP_PCB_NUM_EXT_ARGS; i++) { - if (lpcb->ext_args[i].callbacks != NULL) { - if (lpcb->ext_args[i].callbacks->passive_open != NULL) { - err_t err = lpcb->ext_args[i].callbacks->passive_open((u8_t)i, lpcb, cpcb); - if (err != ERR_OK) { - return err; - } - } - } - } - return ERR_OK; -} -#endif /* LWIP_TCP_PCB_NUM_EXT_ARGS */ - -#endif /* LWIP_TCP */ diff --git a/Middlewares/Third_Party/LwIP/src/core/tcp_in.c b/Middlewares/Third_Party/LwIP/src/core/tcp_in.c deleted file mode 100644 index 428a6f4..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/tcp_in.c +++ /dev/null @@ -1,2178 +0,0 @@ -/** - * @file - * Transmission Control Protocol, incoming traffic - * - * The input processing functions of the TCP layer. - * - * These functions are generally called in the order (ip_input() ->) - * tcp_input() -> * tcp_process() -> tcp_receive() (-> application). - * - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -#include "lwip/opt.h" - -#if LWIP_TCP /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/priv/tcp_priv.h" -#include "lwip/def.h" -#include "lwip/ip_addr.h" -#include "lwip/netif.h" -#include "lwip/mem.h" -#include "lwip/memp.h" -#include "lwip/inet_chksum.h" -#include "lwip/stats.h" -#include "lwip/ip6.h" -#include "lwip/ip6_addr.h" -#if LWIP_ND6_TCP_REACHABILITY_HINTS -#include "lwip/nd6.h" -#endif /* LWIP_ND6_TCP_REACHABILITY_HINTS */ - -#include - -#ifdef LWIP_HOOK_FILENAME -#include LWIP_HOOK_FILENAME -#endif - -/** Initial CWND calculation as defined RFC 2581 */ -#define LWIP_TCP_CALC_INITIAL_CWND(mss) ((tcpwnd_size_t)LWIP_MIN((4U * (mss)), LWIP_MAX((2U * (mss)), 4380U))) - -/* These variables are global to all functions involved in the input - processing of TCP segments. They are set by the tcp_input() - function. */ -static struct tcp_seg inseg; -static struct tcp_hdr *tcphdr; -static u16_t tcphdr_optlen; -static u16_t tcphdr_opt1len; -static u8_t *tcphdr_opt2; -static u16_t tcp_optidx; -static u32_t seqno, ackno; -static tcpwnd_size_t recv_acked; -static u16_t tcplen; -static u8_t flags; - -static u8_t recv_flags; -static struct pbuf *recv_data; - -struct tcp_pcb *tcp_input_pcb; - -/* Forward declarations. */ -static err_t tcp_process(struct tcp_pcb *pcb); -static void tcp_receive(struct tcp_pcb *pcb); -static void tcp_parseopt(struct tcp_pcb *pcb); - -static void tcp_listen_input(struct tcp_pcb_listen *pcb); -static void tcp_timewait_input(struct tcp_pcb *pcb); - -static int tcp_input_delayed_close(struct tcp_pcb *pcb); - -#if LWIP_TCP_SACK_OUT -static void tcp_add_sack(struct tcp_pcb *pcb, u32_t left, u32_t right); -static void tcp_remove_sacks_lt(struct tcp_pcb *pcb, u32_t seq); -#if defined(TCP_OOSEQ_BYTES_LIMIT) || defined(TCP_OOSEQ_PBUFS_LIMIT) -static void tcp_remove_sacks_gt(struct tcp_pcb *pcb, u32_t seq); -#endif /* TCP_OOSEQ_BYTES_LIMIT || TCP_OOSEQ_PBUFS_LIMIT */ -#endif /* LWIP_TCP_SACK_OUT */ - -/** - * The initial input processing of TCP. It verifies the TCP header, demultiplexes - * the segment between the PCBs and passes it on to tcp_process(), which implements - * the TCP finite state machine. This function is called by the IP layer (in - * ip_input()). - * - * @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) -{ - struct tcp_pcb *pcb, *prev; - struct tcp_pcb_listen *lpcb; -#if SO_REUSE - struct tcp_pcb *lpcb_prev = NULL; - struct tcp_pcb_listen *lpcb_any = NULL; -#endif /* SO_REUSE */ - u8_t hdrlen_bytes; - err_t err; - - LWIP_UNUSED_ARG(inp); - LWIP_ASSERT_CORE_LOCKED(); - LWIP_ASSERT("tcp_input: invalid pbuf", p != NULL); - - PERF_START; - - TCP_STATS_INC(tcp.recv); - MIB2_STATS_INC(mib2.tcpinsegs); - - tcphdr = (struct tcp_hdr *)p->payload; - -#if TCP_INPUT_DEBUG - tcp_debug_print(tcphdr); -#endif - - /* Check that TCP header fits in payload */ - if (p->len < TCP_HLEN) { - /* drop short packets */ - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_input: short packet (%"U16_F" bytes) discarded\n", p->tot_len)); - 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()) || - ip_addr_ismulticast(ip_current_dest_addr())) { - TCP_STATS_INC(tcp.proterr); - goto dropped; - } - -#if CHECKSUM_CHECK_TCP - IF__NETIF_CHECKSUM_ENABLED(inp, NETIF_CHECKSUM_CHECK_TCP) { - /* Verify TCP checksum. */ - u16_t chksum = ip_chksum_pseudo(p, IP_PROTO_TCP, p->tot_len, - ip_current_src_addr(), ip_current_dest_addr()); - if (chksum != 0) { - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_input: packet discarded due to failing checksum 0x%04"X16_F"\n", - chksum)); - tcp_debug_print(tcphdr); - TCP_STATS_INC(tcp.chkerr); - goto dropped; - } - } -#endif /* CHECKSUM_CHECK_TCP */ - - /* sanity-check header length */ - hdrlen_bytes = TCPH_HDRLEN_BYTES(tcphdr); - if ((hdrlen_bytes < TCP_HLEN) || (hdrlen_bytes > p->tot_len)) { - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_input: invalid header length (%"U16_F")\n", (u16_t)hdrlen_bytes)); - TCP_STATS_INC(tcp.lenerr); - 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); - tcphdr_opt2 = NULL; - if (p->len >= hdrlen_bytes) { - /* all options are in the first pbuf */ - tcphdr_opt1len = tcphdr_optlen; - pbuf_remove_header(p, hdrlen_bytes); /* cannot fail */ - } 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); - - /* advance over the TCP header (cannot fail) */ - pbuf_remove_header(p, TCP_HLEN); - - /* determine how long the first and second parts of the options are */ - tcphdr_opt1len = p->len; - opt2len = (u16_t)(tcphdr_optlen - tcphdr_opt1len); - - /* 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); - - /* check that the options fit in the second pbuf */ - if (opt2len > p->next->len) { - /* drop short packets */ - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_input: options overflow second pbuf (%"U16_F" bytes)\n", p->next->len)); - TCP_STATS_INC(tcp.lenerr); - goto dropped; - } - - /* remember the pointer to the second part of the options */ - tcphdr_opt2 = (u8_t *)p->next->payload; - - /* 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); - p->tot_len = (u16_t)(p->tot_len - opt2len); - - LWIP_ASSERT("p->len == 0", p->len == 0); - LWIP_ASSERT("p->tot_len == p->next->tot_len", p->tot_len == p->next->tot_len); - } - - /* Convert fields in TCP header to host byte order. */ - tcphdr->src = lwip_ntohs(tcphdr->src); - tcphdr->dest = lwip_ntohs(tcphdr->dest); - seqno = tcphdr->seqno = lwip_ntohl(tcphdr->seqno); - ackno = tcphdr->ackno = lwip_ntohl(tcphdr->ackno); - tcphdr->wnd = lwip_ntohs(tcphdr->wnd); - - flags = TCPH_FLAGS(tcphdr); - tcplen = p->tot_len; - if (flags & (TCP_FIN | TCP_SYN)) { - tcplen++; - if (tcplen < p->tot_len) { - /* u16_t overflow, cannot handle this */ - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_input: length u16_t overflow, cannot handle this\n")); - TCP_STATS_INC(tcp.lenerr); - goto dropped; - } - } - - /* Demultiplex an incoming segment. First, we check if it is destined - for an active connection. */ - prev = NULL; - - for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) { - LWIP_ASSERT("tcp_input: active pcb->state != CLOSED", pcb->state != CLOSED); - LWIP_ASSERT("tcp_input: active pcb->state != TIME-WAIT", pcb->state != TIME_WAIT); - LWIP_ASSERT("tcp_input: active pcb->state != LISTEN", pcb->state != LISTEN); - - /* check if PCB is bound to specific netif */ - if ((pcb->netif_idx != NETIF_NO_INDEX) && - (pcb->netif_idx != netif_get_index(ip_data.current_input_netif))) { - prev = pcb; - continue; - } - - if (pcb->remote_port == tcphdr->src && - pcb->local_port == tcphdr->dest && - ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) && - ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) { - /* 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); - if (prev != NULL) { - prev->next = pcb->next; - pcb->next = tcp_active_pcbs; - tcp_active_pcbs = pcb; - } else { - TCP_STATS_INC(tcp.cachehit); - } - LWIP_ASSERT("tcp_input: pcb->next != pcb (after cache)", pcb->next != pcb); - break; - } - prev = pcb; - } - - if (pcb == NULL) { - /* 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) { - LWIP_ASSERT("tcp_input: TIME-WAIT pcb->state == TIME-WAIT", pcb->state == TIME_WAIT); - - /* check if PCB is bound to specific netif */ - if ((pcb->netif_idx != NETIF_NO_INDEX) && - (pcb->netif_idx != netif_get_index(ip_data.current_input_netif))) { - continue; - } - - if (pcb->remote_port == tcphdr->src && - pcb->local_port == tcphdr->dest && - ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) && - ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) { - /* We don't really care enough to move this PCB to the front - of the list since we are not very likely to receive that - many segments for connections in TIME-WAIT. */ - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_input: packed for TIME_WAITing connection.\n")); -#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); - } - pbuf_free(p); - return; - } - } - - /* Finally, if we still did not get a match, we check all PCBs that - are LISTENing for incoming connections. */ - prev = NULL; - for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) { - /* check if PCB is bound to specific netif */ - if ((lpcb->netif_idx != NETIF_NO_INDEX) && - (lpcb->netif_idx != netif_get_index(ip_data.current_input_netif))) { - prev = (struct tcp_pcb *)lpcb; - continue; - } - - if (lpcb->local_port == tcphdr->dest) { - if (IP_IS_ANY_TYPE_VAL(lpcb->local_ip)) { - /* found an ANY TYPE (IPv4/IPv6) match */ -#if SO_REUSE - lpcb_any = lpcb; - 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())) { - /* found an exact match */ - break; - } else if (ip_addr_isany(&lpcb->local_ip)) { - /* found an ANY-match */ -#if SO_REUSE - lpcb_any = lpcb; - lpcb_prev = prev; -#else /* SO_REUSE */ - break; -#endif /* SO_REUSE */ - } - } - } - prev = (struct tcp_pcb *)lpcb; - } -#if SO_REUSE - /* first try specific local IP */ - if (lpcb == NULL) { - /* only pass to ANY if no specific local IP has been found */ - lpcb = lpcb_any; - prev = lpcb_prev; - } -#endif /* SO_REUSE */ - if (lpcb != NULL) { - /* 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) { - ((struct tcp_pcb_listen *)prev)->next = lpcb->next; - /* our successor is the remainder of the listening list */ - lpcb->next = tcp_listen_pcbs.listen_pcbs; - /* put this listening pcb at the head of the listening list */ - tcp_listen_pcbs.listen_pcbs = lpcb; - } else { - TCP_STATS_INC(tcp.cachehit); - } - - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_input: packed for LISTENing connection.\n")); -#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); - } - pbuf_free(p); - return; - } - } - -#if TCP_INPUT_DEBUG - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("+-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags ")); - tcp_debug_print_flags(TCPH_FLAGS(tcphdr)); - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n")); -#endif /* TCP_INPUT_DEBUG */ - - -#ifdef LWIP_HOOK_TCP_INPACKET_PCB - if ((pcb != NULL) && LWIP_HOOK_TCP_INPACKET_PCB(pcb, tcphdr, tcphdr_optlen, - tcphdr_opt1len, tcphdr_opt2, p) != ERR_OK) { - pbuf_free(p); - return; - } -#endif - if (pcb != NULL) { - /* The incoming segment belongs to a connection. */ -#if TCP_INPUT_DEBUG - tcp_debug_print_state(pcb->state); -#endif /* TCP_INPUT_DEBUG */ - - /* Set up a tcp_seg structure. */ - inseg.next = NULL; - inseg.len = p->tot_len; - inseg.p = p; - inseg.tcphdr = tcphdr; - - recv_data = NULL; - recv_flags = 0; - recv_acked = 0; - - if (flags & TCP_PSH) { - p->flags |= PBUF_FLAG_PUSH; - } - - /* If there is data which was previously "refused" by upper layer */ - if (pcb->refused_data != NULL) { - if ((tcp_process_refused_data(pcb) == ERR_ABRT) || - ((pcb->refused_data != NULL) && (tcplen > 0))) { - /* pcb has been aborted or refused data is still refused and the new - segment contains data */ - if (pcb->rcv_ann_wnd == 0) { - /* this is a zero-window probe, we respond to it with current RCV.NXT - and drop the data segment */ - tcp_send_empty_ack(pcb); - } - TCP_STATS_INC(tcp.drop); - MIB2_STATS_INC(mib2.tcpinerrs); - goto aborted; - } - } - tcp_input_pcb = pcb; - err = tcp_process(pcb); - /* 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) { - if (recv_flags & TF_RESET) { - /* 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); - tcp_pcb_remove(&tcp_active_pcbs, pcb); - tcp_free(pcb); - } else { - err = ERR_OK; - /* 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) { - u16_t acked16; -#if LWIP_WND_SCALE - /* recv_acked is u32_t but the sent callback only takes a u16_t, - so we might have to call it multiple times. */ - u32_t acked = recv_acked; - while (acked > 0) { - acked16 = (u16_t)LWIP_MIN(acked, 0xffffu); - acked -= acked16; -#else - { - acked16 = recv_acked; -#endif - TCP_EVENT_SENT(pcb, (u16_t)acked16, err); - if (err == ERR_ABRT) { - goto aborted; - } - } - recv_acked = 0; - } - if (tcp_input_delayed_close(pcb)) { - goto aborted; - } -#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) { -#endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ - - LWIP_ASSERT("pcb->refused_data == NULL", pcb->refused_data == NULL); - if (pcb->flags & TF_RXCLOSED) { - /* received data although already closed -> abort (send RST) to - notify the remote host that not all data has been processed */ - pbuf_free(recv_data); -#if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE - if (rest != NULL) { - pbuf_free(rest); - } -#endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ - tcp_abort(pcb); - goto aborted; - } - - /* Notify application that data has been received. */ - TCP_EVENT_RECV(pcb, recv_data, ERR_OK, err); - if (err == ERR_ABRT) { -#if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE - if (rest != NULL) { - pbuf_free(rest); - } -#endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ - goto aborted; - } - - /* If the upper layer can't receive this data, store it */ - if (err != ERR_OK) { -#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; - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_input: keep incoming packet, because pcb is \"full\"\n")); -#if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE - break; - } else { - /* Upper layer received the data, go on with the rest if > 64K */ - recv_data = rest; -#endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ - } - } - - /* If a FIN segment was received, we call the callback - function with a NULL buffer to indicate EOF. */ - if (recv_flags & TF_GOT_FIN) { - if (pcb->refused_data != NULL) { - /* Delay this if we have refused data. */ - pcb->refused_data->flags |= PBUF_FLAG_TCP_FIN; - } 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)) { - pcb->rcv_wnd++; - } - TCP_EVENT_CLOSED(pcb, err); - if (err == ERR_ABRT) { - goto aborted; - } - } - } - - tcp_input_pcb = NULL; - if (tcp_input_delayed_close(pcb)) { - goto aborted; - } - /* Try to send something out. */ - tcp_output(pcb); -#if TCP_INPUT_DEBUG -#if TCP_DEBUG - tcp_debug_print_state(pcb->state); -#endif /* TCP_DEBUG */ -#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: - tcp_input_pcb = NULL; - recv_data = NULL; - - /* give up our reference to inseg.p */ - if (inseg.p != NULL) { - pbuf_free(inseg.p); - inseg.p = NULL; - } - } else { - /* If no matching PCB was found, send a TCP RST (reset) to the - sender. */ - LWIP_DEBUGF(TCP_RST_DEBUG, ("tcp_input: no PCB match found, resetting.\n")); - if (!(TCPH_FLAGS(tcphdr) & TCP_RST)) { - TCP_STATS_INC(tcp.proterr); - TCP_STATS_INC(tcp.drop); - tcp_rst(NULL, ackno, seqno + tcplen, ip_current_dest_addr(), - ip_current_src_addr(), tcphdr->dest, tcphdr->src); - } - pbuf_free(p); - } - - LWIP_ASSERT("tcp_input: tcp_pcbs_sane()", tcp_pcbs_sane()); - PERF_STOP("tcp_input"); - return; -dropped: - TCP_STATS_INC(tcp.drop); - MIB2_STATS_INC(mib2.tcpinerrs); - pbuf_free(p); -} - -/** Called from tcp_input to check for TF_CLOSED flag. This results in closing - * and deallocating a pcb at the correct place to ensure noone references it - * any more. - * @returns 1 if the pcb has been closed and deallocated, 0 otherwise - */ -static int -tcp_input_delayed_close(struct tcp_pcb *pcb) -{ - LWIP_ASSERT("tcp_input_delayed_close: invalid pcb", pcb != NULL); - - if (recv_flags & TF_CLOSED) { - /* The connection has been closed and we will deallocate the - PCB. */ - if (!(pcb->flags & TF_RXCLOSED)) { - /* 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); - } - tcp_pcb_remove(&tcp_active_pcbs, pcb); - tcp_free(pcb); - return 1; - } - return 0; -} - -/** - * Called by tcp_input() when a segment arrives for a listening - * connection (from tcp_input()). - * - * @param pcb the tcp_pcb_listen for which a segment arrived - * - * @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) -{ - struct tcp_pcb *npcb; - u32_t iss; - err_t rc; - - if (flags & TCP_RST) { - /* An incoming RST should be ignored. Return. */ - return; - } - - LWIP_ASSERT("tcp_listen_input: invalid pcb", pcb != NULL); - - /* In the LISTEN state, we check for incoming SYN segments, - creates a new PCB, and responds with a SYN|ACK. */ - if (flags & TCP_ACK) { - /* 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(), - ip_current_src_addr(), tcphdr->dest, tcphdr->src); - } else if (flags & TCP_SYN) { - LWIP_DEBUGF(TCP_DEBUG, ("TCP connection request %"U16_F" -> %"U16_F".\n", tcphdr->src, tcphdr->dest)); -#if TCP_LISTEN_BACKLOG - if (pcb->accepts_pending >= pcb->backlog) { - LWIP_DEBUGF(TCP_DEBUG, ("tcp_listen_input: listen backlog exceeded for port %"U16_F"\n", tcphdr->dest)); - return; - } -#endif /* TCP_LISTEN_BACKLOG */ - npcb = tcp_alloc(pcb->prio); - /* If a new PCB could not be created (probably due to lack of memory), - we don't do anything, but rely on the sender will retransmit the - SYN at a time when we have more memory available. */ - if (npcb == NULL) { - err_t err; - LWIP_DEBUGF(TCP_DEBUG, ("tcp_listen_input: could not allocate PCB\n")); - TCP_STATS_INC(tcp.memerr); - TCP_EVENT_ACCEPT(pcb, NULL, pcb->callback_arg, ERR_MEM, err); - LWIP_UNUSED_ARG(err); /* err not useful here */ - return; - } -#if TCP_LISTEN_BACKLOG - pcb->accepts_pending++; - tcp_set_flags(npcb, TF_BACKLOGPEND); -#endif /* TCP_LISTEN_BACKLOG */ - /* Set up the new PCB. */ - ip_addr_copy(npcb->local_ip, *ip_current_dest_addr()); - ip_addr_copy(npcb->remote_ip, *ip_current_src_addr()); - npcb->local_port = pcb->local_port; - npcb->remote_port = tcphdr->src; - npcb->state = SYN_RCVD; - npcb->rcv_nxt = seqno + 1; - npcb->rcv_ann_right_edge = npcb->rcv_nxt; - iss = tcp_next_iss(npcb); - npcb->snd_wl2 = iss; - npcb->snd_nxt = iss; - npcb->lastack = iss; - npcb->snd_lbb = iss; - npcb->snd_wl1 = seqno - 1;/* initialise to seqno-1 to force window update */ - npcb->callback_arg = pcb->callback_arg; -#if LWIP_CALLBACK_API || TCP_LISTEN_BACKLOG - npcb->listener = pcb; -#endif /* LWIP_CALLBACK_API || TCP_LISTEN_BACKLOG */ - /* inherit socket options */ - npcb->so_options = pcb->so_options & SOF_INHERITED; - npcb->netif_idx = pcb->netif_idx; - /* Register the new PCB so that we can begin receiving segments - for it. */ - TCP_REG_ACTIVE(npcb); - - /* Parse any options in the SYN. */ - tcp_parseopt(npcb); - npcb->snd_wnd = tcphdr->wnd; - npcb->snd_wnd_max = npcb->snd_wnd; - -#if TCP_CALCULATE_EFF_SEND_MSS - npcb->mss = tcp_eff_send_mss(npcb->mss, &npcb->local_ip, &npcb->remote_ip); -#endif /* TCP_CALCULATE_EFF_SEND_MSS */ - - MIB2_STATS_INC(mib2.tcppassiveopens); - -#if LWIP_TCP_PCB_NUM_EXT_ARGS - if (tcp_ext_arg_invoke_callbacks_passive_open(pcb, npcb) != ERR_OK) { - tcp_abandon(npcb, 0); - return; - } -#endif - - /* Send a SYN|ACK together with the MSS option. */ - rc = tcp_enqueue_flags(npcb, TCP_SYN | TCP_ACK); - if (rc != ERR_OK) { - tcp_abandon(npcb, 0); - return; - } - tcp_output(npcb); - } - return; -} - -/** - * Called by tcp_input() when a segment arrives for a connection in - * TIME_WAIT. - * - * @param pcb the tcp_pcb for which a segment arrived - * - * @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) -{ - /* 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) { - return; - } - - LWIP_ASSERT("tcp_timewait_input: invalid pcb", pcb != NULL); - - /* - fourth, check the SYN bit, */ - if (flags & TCP_SYN) { - /* 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)) { - /* If the SYN is in the window it is an error, send a reset */ - tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - ip_current_src_addr(), tcphdr->dest, tcphdr->src); - return; - } - } else if (flags & TCP_FIN) { - /* - eighth, check the FIN bit: Remain in the TIME-WAIT state. - Restart the 2 MSL time-wait timeout.*/ - pcb->tmr = tcp_ticks; - } - - if ((tcplen > 0)) { - /* Acknowledge data, FIN or out-of-window SYN */ - tcp_ack_now(pcb); - tcp_output(pcb); - } - return; -} - -/** - * Implements the TCP state machine. Called by tcp_input. In some - * states tcp_receive() is called to receive data. The tcp_seg - * argument will be freed by the caller (tcp_input()) unless the - * recv_data pointer in the pcb is set. - * - * @param pcb the tcp_pcb for which a segment arrived - * - * @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) -{ - struct tcp_seg *rseg; - u8_t acceptable = 0; - err_t err; - - err = ERR_OK; - - LWIP_ASSERT("tcp_process: invalid pcb", pcb != NULL); - - /* Process incoming RST segments. */ - if (flags & TCP_RST) { - /* First, determine if the reset is acceptable. */ - if (pcb->state == SYN_SENT) { - /* "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) { - acceptable = 1; - } - } else { - /* "In all states except SYN-SENT, all reset (RST) segments are validated - by checking their SEQ-fields." */ - if (seqno == pcb->rcv_nxt) { - acceptable = 1; - } else if (TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt, - 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); - } - } - - if (acceptable) { - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_process: Connection RESET\n")); - LWIP_ASSERT("tcp_input: pcb->state != CLOSED", pcb->state != CLOSED); - recv_flags |= TF_RESET; - tcp_clear_flags(pcb, TF_ACK_DELAY); - return ERR_RST; - } 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; - } - } - - if ((flags & TCP_SYN) && (pcb->state != SYN_SENT && pcb->state != SYN_RCVD)) { - /* Cope with new connection attempt after remote end crashed */ - tcp_ack_now(pcb); - return ERR_OK; - } - - if ((pcb->flags & TF_RXCLOSED) == 0) { - /* Update the PCB (in)activity timer unless rx is closed (see tcp_shutdown) */ - pcb->tmr = tcp_ticks; - } - pcb->keep_cnt_sent = 0; - pcb->persist_probe = 0; - - tcp_parseopt(pcb); - - /* Do different things depending on the TCP state. */ - switch (pcb->state) { - 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) - && (ackno == pcb->lastack + 1)) { - pcb->rcv_nxt = seqno + 1; - pcb->rcv_ann_right_edge = pcb->rcv_nxt; - pcb->lastack = ackno; - pcb->snd_wnd = tcphdr->wnd; - pcb->snd_wnd_max = pcb->snd_wnd; - pcb->snd_wl1 = seqno - 1; /* initialise to seqno - 1 to force window update */ - pcb->state = ESTABLISHED; - -#if TCP_CALCULATE_EFF_SEND_MSS - pcb->mss = tcp_eff_send_mss(pcb->mss, &pcb->local_ip, &pcb->remote_ip); -#endif /* TCP_CALCULATE_EFF_SEND_MSS */ - - pcb->cwnd = LWIP_TCP_CALC_INITIAL_CWND(pcb->mss); - 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)); - --pcb->snd_queuelen; - LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_process: SYN-SENT --queuelen %"TCPWNDSIZE_F"\n", (tcpwnd_size_t)pcb->snd_queuelen)); - rseg = pcb->unacked; - if (rseg == NULL) { - /* might happen if tcp_output fails in tcp_rexmit_rto() - in which case the segment is on the unsent list */ - rseg = pcb->unsent; - LWIP_ASSERT("no segment to free", rseg != NULL); - pcb->unsent = rseg->next; - } else { - pcb->unacked = rseg->next; - } - tcp_seg_free(rseg); - - /* If there's nothing left to acknowledge, stop the retransmit - timer, otherwise reset it to start again */ - if (pcb->unacked == NULL) { - pcb->rtime = -1; - } else { - pcb->rtime = 0; - pcb->nrtx = 0; - } - - /* Call the user specified function to call when successfully - * connected. */ - TCP_EVENT_CONNECTED(pcb, ERR_OK, err); - if (err == ERR_ABRT) { - return ERR_ABRT; - } - tcp_ack_now(pcb); - } - /* received ACK? possibly a half-open connection */ - else if (flags & TCP_ACK) { - /* send a RST to bring the other side in a non-synchronized state. */ - tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - ip_current_src_addr(), tcphdr->dest, tcphdr->src); - /* Resend SYN immediately (don't wait for rto timeout) to establish - connection faster, but do not send more SYNs than we otherwise would - have, or we might get caught in a loop on loopback interfaces. */ - if (pcb->nrtx < TCP_SYNMAXRTX) { - pcb->rtime = 0; - tcp_rexmit_rto(pcb); - } - } - break; - case SYN_RCVD: - if (flags & TCP_ACK) { - /* expected ACK number? */ - if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) { - pcb->state = ESTABLISHED; - 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) { - /* listen pcb might be closed by now */ - err = ERR_VAL; - } else -#endif /* LWIP_CALLBACK_API || TCP_LISTEN_BACKLOG */ - { -#if LWIP_CALLBACK_API - LWIP_ASSERT("pcb->listener->accept != NULL", pcb->listener->accept != NULL); -#endif - tcp_backlog_accepted(pcb); - /* Call the accept function. */ - TCP_EVENT_ACCEPT(pcb->listener, pcb, pcb->callback_arg, ERR_OK, err); - } - if (err != ERR_OK) { - /* If the accept function returns with an error, we abort - * the connection. */ - /* Already aborted? */ - if (err != ERR_ABRT) { - tcp_abort(pcb); - } - return ERR_ABRT; - } - /* If there was any data contained within this ACK, - * we'd better pass it on to the application as well. */ - tcp_receive(pcb); - - /* Prevent ACK for SYN to generate a sent event */ - if (recv_acked != 0) { - recv_acked--; - } - - pcb->cwnd = LWIP_TCP_CALC_INITIAL_CWND(pcb->mss); - 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) { - tcp_ack_now(pcb); - pcb->state = CLOSE_WAIT; - } - } else { - /* incorrect ACK number, send RST */ - tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - ip_current_src_addr(), tcphdr->dest, tcphdr->src); - } - } 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; - case CLOSE_WAIT: - /* FALLTHROUGH */ - case ESTABLISHED: - tcp_receive(pcb); - if (recv_flags & TF_GOT_FIN) { /* passive close */ - tcp_ack_now(pcb); - pcb->state = CLOSE_WAIT; - } - break; - case FIN_WAIT_1: - tcp_receive(pcb); - if (recv_flags & TF_GOT_FIN) { - if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) && - pcb->unsent == NULL) { - 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); - tcp_pcb_purge(pcb); - TCP_RMV_ACTIVE(pcb); - pcb->state = TIME_WAIT; - TCP_REG(&tcp_tw_pcbs, pcb); - } else { - tcp_ack_now(pcb); - pcb->state = CLOSING; - } - } else if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) && - pcb->unsent == NULL) { - pcb->state = FIN_WAIT_2; - } - break; - case FIN_WAIT_2: - tcp_receive(pcb); - if (recv_flags & TF_GOT_FIN) { - 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); - tcp_pcb_purge(pcb); - TCP_RMV_ACTIVE(pcb); - pcb->state = TIME_WAIT; - TCP_REG(&tcp_tw_pcbs, pcb); - } - break; - case CLOSING: - tcp_receive(pcb); - if ((flags & TCP_ACK) && ackno == pcb->snd_nxt && pcb->unsent == NULL) { - LWIP_DEBUGF(TCP_DEBUG, ("TCP connection closed: CLOSING %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest)); - tcp_pcb_purge(pcb); - TCP_RMV_ACTIVE(pcb); - pcb->state = TIME_WAIT; - TCP_REG(&tcp_tw_pcbs, pcb); - } - break; - case LAST_ACK: - tcp_receive(pcb); - if ((flags & TCP_ACK) && ackno == pcb->snd_nxt && pcb->unsent == NULL) { - 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; - } - break; - default: - break; - } - return ERR_OK; -} - -#if TCP_QUEUE_OOSEQ -/** - * Insert segment into the list (segments covered with new one will be deleted) - * - * Called from tcp_receive() - */ -static void -tcp_oos_insert_segment(struct tcp_seg *cseg, struct tcp_seg *next) -{ - struct tcp_seg *old_seg; - - LWIP_ASSERT("tcp_oos_insert_segment: invalid cseg", cseg != NULL); - - if (TCPH_FLAGS(cseg->tcphdr) & TCP_FIN) { - /* received segment overlaps all following segments */ - tcp_segs_free(next); - next = NULL; - } else { - /* delete some following segments - 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) { - TCPH_SET_FLAG(cseg->tcphdr, TCP_FIN); - } - old_seg = next; - next = next->next; - tcp_seg_free(old_seg); - } - if (next && - TCP_SEQ_GT(seqno + cseg->len, next->tcphdr->seqno)) { - /* We need to trim the incoming segment. */ - cseg->len = (u16_t)(next->tcphdr->seqno - seqno); - pbuf_realloc(cseg->p, cseg->len); - } - } - cseg->next = next; -} -#endif /* TCP_QUEUE_OOSEQ */ - -/** 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) -{ - struct tcp_seg *next; - u16_t clen; - - LWIP_UNUSED_ARG(dbg_list_name); - LWIP_UNUSED_ARG(dbg_other_seg_list); - - while (seg_list != NULL && - TCP_SEQ_LEQ(lwip_ntohl(seg_list->tcphdr->seqno) + - TCP_TCPLEN(seg_list), ackno)) { - 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; - seg_list = seg_list->next; - - clen = pbuf_clen(next->p); - 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)); - - pcb->snd_queuelen = (u16_t)(pcb->snd_queuelen - clen); - recv_acked = (tcpwnd_size_t)(recv_acked + next->len); - tcp_seg_free(next); - - 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) { - LWIP_ASSERT("tcp_receive: valid queue length", - seg_list != NULL || dbg_other_seg_list != NULL); - } - } - return seg_list; -} - -/** - * Called by tcp_process. Checks if the given segment is an ACK for outstanding - * data, and if so frees the memory of the buffered data. Next, it places the - * segment on any of the receive queues (pcb->recved or pcb->ooseq). If the segment - * is buffered, the pbuf is referenced by pbuf_ref so that it will not be freed until - * it has been removed from the buffer. - * - * If the incoming segment constitutes an ACK for a segment that was used for RTT - * estimation, the RTT is estimated here as well. - * - * Called from tcp_process(). - */ -static void -tcp_receive(struct tcp_pcb *pcb) -{ - s16_t m; - u32_t right_wnd_edge; - int found_dupack = 0; - - LWIP_ASSERT("tcp_receive: invalid pcb", pcb != NULL); - LWIP_ASSERT("tcp_receive: wrong state", pcb->state >= ESTABLISHED); - - if (flags & TCP_ACK) { - right_wnd_edge = pcb->snd_wnd + pcb->snd_wl2; - - /* Update window. */ - if (TCP_SEQ_LT(pcb->snd_wl1, seqno) || - (pcb->snd_wl1 == seqno && TCP_SEQ_LT(pcb->snd_wl2, ackno)) || - (pcb->snd_wl2 == ackno && (u32_t)SND_WND_SCALE(pcb, tcphdr->wnd) > pcb->snd_wnd)) { - pcb->snd_wnd = SND_WND_SCALE(pcb, tcphdr->wnd); - /* 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) { - pcb->snd_wnd_max = pcb->snd_wnd; - } - pcb->snd_wl1 = seqno; - pcb->snd_wl2 = ackno; - LWIP_DEBUGF(TCP_WND_DEBUG, ("tcp_receive: window update %"TCPWNDSIZE_F"\n", pcb->snd_wnd)); -#if TCP_WND_DEBUG - } else { - if (pcb->snd_wnd != (tcpwnd_size_t)SND_WND_SCALE(pcb, tcphdr->wnd)) { - LWIP_DEBUGF(TCP_WND_DEBUG, - ("tcp_receive: no window update lastack %"U32_F" ackno %" - U32_F" wl1 %"U32_F" seqno %"U32_F" wl2 %"U32_F"\n", - pcb->lastack, ackno, pcb->snd_wl1, seqno, pcb->snd_wl2)); - } -#endif /* TCP_WND_DEBUG */ - } - - /* (From Stevens TCP/IP Illustrated Vol II, p970.) Its only a - * duplicate ack if: - * 1) It doesn't ACK new data - * 2) length of received packet is zero (i.e. no payload) - * 3) the advertised window hasn't changed - * 4) There is outstanding unacknowledged data (retransmission timer running) - * 5) The ACK is == biggest ACK sequence number so far seen (snd_una) - * - * If it passes all five, should process as a dupack: - * a) dupacks < 3: do nothing - * b) dupacks == 3: fast retransmit - * c) dupacks > 3: increase cwnd - * - * If it only passes 1-3, should reset dupack counter (and add to - * stats, which we don't do in lwIP) - * - * If it only passes 1, should reset dupack counter - * - */ - - /* Clause 1 */ - if (TCP_SEQ_LEQ(ackno, pcb->lastack)) { - /* Clause 2 */ - if (tcplen == 0) { - /* Clause 3 */ - if (pcb->snd_wl2 + pcb->snd_wnd == right_wnd_edge) { - /* Clause 4 */ - if (pcb->rtime >= 0) { - /* Clause 5 */ - if (pcb->lastack == ackno) { - found_dupack = 1; - if ((u8_t)(pcb->dupacks + 1) > pcb->dupacks) { - ++pcb->dupacks; - } - if (pcb->dupacks > 3) { - /* Inflate the congestion window */ - TCP_WND_INC(pcb->cwnd, pcb->mss); - } - if (pcb->dupacks >= 3) { - /* Do fast retransmit (checked via TF_INFR, not via dupacks count) */ - tcp_rexmit_fast(pcb); - } - } - } - } - } - /* If Clause (1) or more is true, but not a duplicate ack, reset - * count of consecutive duplicate acks */ - if (!found_dupack) { - pcb->dupacks = 0; - } - } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) { - /* We come here when the ACK acknowledges new data. */ - 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) { - tcp_clear_flags(pcb, TF_INFR); - pcb->cwnd = pcb->ssthresh; - pcb->bytes_acked = 0; - } - - /* Reset the number of retransmissions. */ - pcb->nrtx = 0; - - /* Reset the retransmission time-out. */ - pcb->rto = (s16_t)((pcb->sa >> 3) + pcb->sv); - - /* Record how much data this ACK acks */ - acked = (tcpwnd_size_t)(ackno - pcb->lastack); - - /* Reset the fast retransmit variables. */ - pcb->dupacks = 0; - pcb->lastack = ackno; - - /* Update the congestion control variables (cwnd and - ssthresh). */ - if (pcb->state >= ESTABLISHED) { - if (pcb->cwnd < pcb->ssthresh) { - tcpwnd_size_t increase; - /* limit to 1 SMSS segment during period following RTO */ - u8_t num_seg = (pcb->flags & TF_RTO) ? 1 : 2; - /* RFC 3465, section 2.2 Slow Start */ - increase = LWIP_MIN(acked, (tcpwnd_size_t)(num_seg * pcb->mss)); - TCP_WND_INC(pcb->cwnd, increase); - 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); - if (pcb->bytes_acked >= pcb->cwnd) { - pcb->bytes_acked = (tcpwnd_size_t)(pcb->bytes_acked - pcb->cwnd); - TCP_WND_INC(pcb->cwnd, pcb->mss); - } - LWIP_DEBUGF(TCP_CWND_DEBUG, ("tcp_receive: congestion avoidance cwnd %"TCPWNDSIZE_F"\n", pcb->cwnd)); - } - } - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: ACK for %"U32_F", unacked->seqno %"U32_F":%"U32_F"\n", - ackno, - pcb->unacked != NULL ? - lwip_ntohl(pcb->unacked->tcphdr->seqno) : 0, - 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); - /* We go through the ->unsent list to see if any of the segments - 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); - - /* If there's nothing left to acknowledge, stop the retransmit - timer, otherwise reset it to start again */ - if (pcb->unacked == NULL) { - pcb->rtime = -1; - } else { - pcb->rtime = 0; - } - - pcb->polltmr = 0; - -#if TCP_OVERSIZE - if (pcb->unsent == NULL) { - pcb->unsent_oversize = 0; - } -#endif /* TCP_OVERSIZE */ - -#if LWIP_IPV6 && LWIP_ND6_TCP_REACHABILITY_HINTS - if (ip_current_is_v6()) { - /* 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); - /* check if this ACK ends our retransmission of in-flight data */ - if (pcb->flags & TF_RTO) { - /* 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) { - if ((pcb->unsent == NULL) || - (TCP_SEQ_LEQ(pcb->rto_end, lwip_ntohl(pcb->unsent->tcphdr->seqno)))) { - tcp_clear_flags(pcb, TF_RTO); - } - } else if (TCP_SEQ_LEQ(pcb->rto_end, lwip_ntohl(pcb->unacked->tcphdr->seqno))) { - tcp_clear_flags(pcb, TF_RTO); - } - } - /* End of ACK for new data processing. */ - } else { - /* Out of sequence ACK, didn't really ack anything */ - tcp_send_empty_ack(pcb); - } - - LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_receive: pcb->rttest %"U32_F" rtseq %"U32_F" ackno %"U32_F"\n", - 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)) { - /* 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); - - 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)); - pcb->sa = (s16_t)(pcb->sa + m); - if (m < 0) { - m = (s16_t) - m; - } - m = (s16_t)(m - (pcb->sv >> 2)); - pcb->sv = (s16_t)(pcb->sv + m); - pcb->rto = (s16_t)((pcb->sa >> 3) + pcb->sv); - - 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; - } - } - - /* 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)) { - /* This code basically does three things: - - +) If the incoming segment contains data that is the next - in-sequence data, this data is passed to the application. This - might involve trimming the first edge of the data. The rcv_nxt - variable and the advertised window are adjusted. - - +) If the incoming segment has data that is above the next - sequence number expected (->rcv_nxt), the segment is placed on - the ->ooseq queue. This is done by finding the appropriate - place in the ->ooseq queue (which is ordered by sequence - number) and trim the segment in both ends if needed. An - immediate ACK is sent to indicate that we received an - out-of-sequence segment. - - +) Finally, we check if the first segment on the ->ooseq queue - now is in sequence (i.e., if rcv_nxt >= ooseq->seqno). If - rcv_nxt > ooseq->seqno, we must trim the first edge of the - segment on ->ooseq before we adjust rcv_nxt. The data in the - segments that are now on sequence are chained onto the - incoming segment so that we only need to call the application - once. - */ - - /* First, we check if we must trim the first edge. We have to do - 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)) { - /* Trimming the first edge is done by pushing the payload - pointer in the pbuf downwards. This is somewhat tricky since - we do not want to discard the full contents of the pbuf up to - the new starting point of the data since we have to keep the - TCP header which is present in the first pbuf in the chain. - - What is done is really quite a nasty hack: the first pbuf in - the pbuf chain is pointed to by inseg.p. Since we need to be - able to deallocate the whole pbuf, we cannot change this - inseg.p pointer to point to any of the later pbufs in the - chain. Instead, we point the ->payload pointer in the first - pbuf to data in one of the later pbufs. We also set the - inseg.data pointer to point to the right place. This way, the - ->p pointer will still point to the first pbuf, but the - ->p->payload pointer will point to data in another pbuf. - - 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; - u32_t off32 = pcb->rcv_nxt - seqno; - u16_t new_tot_len, off; - LWIP_ASSERT("inseg.p != NULL", inseg.p); - LWIP_ASSERT("insane offset!", (off32 < 0xffff)); - off = (u16_t)off32; - LWIP_ASSERT("pbuf too short!", (((s32_t)inseg.p->tot_len) >= off)); - inseg.len -= off; - new_tot_len = (u16_t)(inseg.p->tot_len - off); - while (p->len < off) { - off -= p->len; - /* all pbufs up to and including this one have len==0, so tot_len is equal */ - p->tot_len = new_tot_len; - p->len = 0; - p = p->next; - } - /* cannot fail... */ - pbuf_remove_header(p, off); - inseg.tcphdr->seqno = seqno = pcb->rcv_nxt; - } else { - if (TCP_SEQ_LT(seqno, pcb->rcv_nxt)) { - /* 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); - } - } - - /* 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, - pcb->rcv_nxt + pcb->rcv_wnd - 1)) { - if (pcb->rcv_nxt == seqno) { - /* 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); - - if (tcplen > pcb->rcv_wnd) { - 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) { - /* 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); - } - /* Adjust length of segment to fit in the window. */ - TCPWND_CHECK16(pcb->rcv_wnd); - inseg.len = (u16_t)pcb->rcv_wnd; - if (TCPH_FLAGS(inseg.tcphdr) & TCP_SYN) { - inseg.len -= 1; - } - pbuf_realloc(inseg.p, inseg.len); - tcplen = TCP_TCPLEN(&inseg); - LWIP_ASSERT("tcp_receive: segment not trimmed correctly to rcv_wnd\n", - (seqno + tcplen) == (pcb->rcv_nxt + pcb->rcv_wnd)); - } -#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) { - if (TCPH_FLAGS(inseg.tcphdr) & TCP_FIN) { - 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) { - struct tcp_seg *old_ooseq = pcb->ooseq; - pcb->ooseq = pcb->ooseq->next; - tcp_seg_free(old_ooseq); - } - } else { - struct tcp_seg *next = pcb->ooseq; - /* Remove all segments on ooseq that are covered by inseg already. - * FIN is copied from ooseq to inseg if present. */ - while (next && - 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 && - (TCPH_FLAGS(inseg.tcphdr) & TCP_SYN) == 0) { - TCPH_SET_FLAG(inseg.tcphdr, TCP_FIN); - tcplen = TCP_TCPLEN(&inseg); - } - tmp = next; - next = next->next; - tcp_seg_free(tmp); - } - /* Now trim right side of inseg if it overlaps with the first - * segment on ooseq */ - if (next && - TCP_SEQ_GT(seqno + tcplen, - next->tcphdr->seqno)) { - /* inseg cannot have FIN here (already processed above) */ - inseg.len = (u16_t)(next->tcphdr->seqno - seqno); - if (TCPH_FLAGS(inseg.tcphdr) & TCP_SYN) { - inseg.len -= 1; - } - pbuf_realloc(inseg.p, inseg.len); - tcplen = TCP_TCPLEN(&inseg); - LWIP_ASSERT("tcp_receive: segment not trimmed correctly to ooseq queue\n", - (seqno + tcplen) == next->tcphdr->seqno); - } - pcb->ooseq = next; - } - } -#endif /* TCP_QUEUE_OOSEQ */ - - pcb->rcv_nxt = seqno + tcplen; - - /* Update the receiver's (our) window. */ - LWIP_ASSERT("tcp_receive: tcplen > rcv_wnd\n", pcb->rcv_wnd >= tcplen); - pcb->rcv_wnd -= tcplen; - - tcp_update_rcv_ann_wnd(pcb); - - /* If there is data in the segment, we make preparations to - pass this up to the application. The ->recv_data variable - is used for holding the pbuf that goes to the - application. The code for reassembling out-of-sequence data - 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) { - recv_data = inseg.p; - /* 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; - } - if (TCPH_FLAGS(inseg.tcphdr) & TCP_FIN) { - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: received FIN.\n")); - recv_flags |= TF_GOT_FIN; - } - -#if TCP_QUEUE_OOSEQ - /* We now check if we have segments on the ->ooseq queue that - are now in sequence. */ - while (pcb->ooseq != NULL && - pcb->ooseq->tcphdr->seqno == pcb->rcv_nxt) { - - struct tcp_seg *cseg = pcb->ooseq; - seqno = pcb->ooseq->tcphdr->seqno; - - pcb->rcv_nxt += TCP_TCPLEN(cseg); - LWIP_ASSERT("tcp_receive: ooseq tcplen > rcv_wnd\n", - pcb->rcv_wnd >= TCP_TCPLEN(cseg)); - pcb->rcv_wnd -= TCP_TCPLEN(cseg); - - tcp_update_rcv_ann_wnd(pcb); - - if (cseg->p->tot_len > 0) { - /* 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) { - pbuf_cat(recv_data, cseg->p); - } else { - recv_data = cseg->p; - } - cseg->p = NULL; - } - if (TCPH_FLAGS(cseg->tcphdr) & TCP_FIN) { - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: dequeued FIN.\n")); - recv_flags |= TF_GOT_FIN; - if (pcb->state == ESTABLISHED) { /* force passive close or we can move to active close */ - pcb->state = CLOSE_WAIT; - } - } - - pcb->ooseq = cseg->next; - tcp_seg_free(cseg); - } -#if LWIP_TCP_SACK_OUT - if (pcb->flags & TF_SACK) { - if (pcb->ooseq != NULL) { - /* Some segments may have been removed from ooseq, let's remove all SACKs that - describe anything before the new beginning of that list. */ - tcp_remove_sacks_lt(pcb, pcb->ooseq->tcphdr->seqno); - } else if (LWIP_TCP_SACK_VALID(pcb, 0)) { - /* ooseq has been cleared. Nothing to SACK */ - memset(pcb->rcv_sacks, 0, sizeof(pcb->rcv_sacks)); - } - } -#endif /* LWIP_TCP_SACK_OUT */ -#endif /* TCP_QUEUE_OOSEQ */ - - - /* Acknowledge the segment(s). */ - tcp_ack(pcb); - -#if LWIP_TCP_SACK_OUT - if (LWIP_TCP_SACK_VALID(pcb, 0)) { - /* Normally the ACK for the data received could be piggy-backed on a data packet, - but lwIP currently does not support including SACKs in data packets. So we force - it to respond with an empty ACK packet (only if there is at least one SACK to be sent). - NOTE: tcp_send_empty_ack() on success clears the ACK flags (set by tcp_ack()) */ - tcp_send_empty_ack(pcb); - } -#endif /* LWIP_TCP_SACK_OUT */ - -#if LWIP_IPV6 && LWIP_ND6_TCP_REACHABILITY_HINTS - if (ip_current_is_v6()) { - /* Inform neighbor reachability of forward progress. */ - nd6_reachability_hint(ip6_current_src_addr()); - } -#endif /* LWIP_IPV6 && LWIP_ND6_TCP_REACHABILITY_HINTS*/ - - } 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) { - pcb->ooseq = tcp_seg_copy(&inseg); -#if LWIP_TCP_SACK_OUT - if (pcb->flags & TF_SACK) { - /* All the SACKs should be invalid, so we can simply store the most recent one: */ - pcb->rcv_sacks[0].left = seqno; - pcb->rcv_sacks[0].right = seqno + inseg.len; - } -#endif /* LWIP_TCP_SACK_OUT */ - } else { - /* If the queue is not empty, we walk through the queue and - try to find a place where the sequence number of the - incoming segment is between the sequence numbers of the - previous and the next segment on the ->ooseq queue. That is - the place where we put the incoming segment. If needed, we - trim the second edges of the previous and the incoming - segment so that it will fit into the sequence. - - If the incoming segment has the same sequence number as a - segment on the ->ooseq queue, we discard the segment that - contains less data. */ - -#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; - for (next = pcb->ooseq; next != NULL; next = next->next) { - if (seqno == next->tcphdr->seqno) { - /* 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) { - /* 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); - if (cseg != NULL) { - if (prev != NULL) { - prev->next = cseg; - } else { - pcb->ooseq = cseg; - } - tcp_oos_insert_segment(cseg, next); - } - break; - } else { - /* Either the lengths are the same or the incoming - segment was smaller than the old one; in either - case, we ditch the incoming segment. */ - break; - } - } else { - if (prev == NULL) { - if (TCP_SEQ_LT(seqno, next->tcphdr->seqno)) { - /* 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); - if (cseg != NULL) { - pcb->ooseq = cseg; - tcp_oos_insert_segment(cseg, next); - } - break; - } - } 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)) { - /* 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); - if (cseg != NULL) { - if (TCP_SEQ_GT(prev->tcphdr->seqno + prev->len, seqno)) { - /* We need to trim the prev segment. */ - prev->len = (u16_t)(seqno - prev->tcphdr->seqno); - pbuf_realloc(prev->p, prev->len); - } - prev->next = cseg; - tcp_oos_insert_segment(cseg, next); - } - break; - } - } - -#if LWIP_TCP_SACK_OUT - /* The new segment goes after the 'next' one. If there is a "hole" in sequence numbers - between 'prev' and the beginning of 'next', we want to move sackbeg. */ - if (prev != NULL && prev->tcphdr->seqno + prev->len != next->tcphdr->seqno) { - sackbeg = next->tcphdr->seqno; - } -#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; - - /* 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 && - TCP_SEQ_GT(seqno, next->tcphdr->seqno)) { - if (TCPH_FLAGS(next->tcphdr) & TCP_FIN) { - /* segment "next" already contains all data */ - break; - } - next->next = tcp_seg_copy(&inseg); - if (next->next != NULL) { - if (TCP_SEQ_GT(next->tcphdr->seqno + next->len, seqno)) { - /* We need to trim the last segment. */ - next->len = (u16_t)(seqno - next->tcphdr->seqno); - pbuf_realloc(next->p, next->len); - } - /* 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)) { - 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) { - /* 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); - } - /* Adjust length of segment to fit in the window. */ - next->next->len = (u16_t)(pcb->rcv_nxt + pcb->rcv_wnd - seqno); - pbuf_realloc(next->next->p, next->next->len); - tcplen = TCP_TCPLEN(next->next); - LWIP_ASSERT("tcp_receive: segment not trimmed correctly to rcv_wnd\n", - (seqno + tcplen) == (pcb->rcv_nxt + pcb->rcv_wnd)); - } - } - break; - } - } - } - -#if LWIP_TCP_SACK_OUT - if (pcb->flags & TF_SACK) { - if (prev == NULL) { - /* The new segment is at the beginning. sackbeg should already be set properly. - We need to find the right edge. */ - next = pcb->ooseq; - } else if (prev->next != NULL) { - /* The new segment was added after 'prev'. If there is a "hole" between 'prev' and 'prev->next', - we need to move sackbeg. After that we should find the right edge. */ - next = prev->next; - if (prev->tcphdr->seqno + prev->len != next->tcphdr->seqno) { - sackbeg = next->tcphdr->seqno; - } - } else { - next = NULL; - } - if (next != NULL) { - u32_t sackend = next->tcphdr->seqno; - for ( ; (next != NULL) && (sackend == next->tcphdr->seqno); next = next->next) { - sackend += next->len; - } - tcp_add_sack(pcb, sackbeg, sackend); - } - } -#endif /* LWIP_TCP_SACK_OUT */ - } -#if defined(TCP_OOSEQ_BYTES_LIMIT) || defined(TCP_OOSEQ_PBUFS_LIMIT) - { - /* Check that the data on ooseq doesn't exceed one of the limits - and throw away everything above that limit. */ -#ifdef TCP_OOSEQ_BYTES_LIMIT - const u32_t ooseq_max_blen = TCP_OOSEQ_BYTES_LIMIT(pcb); - u32_t ooseq_blen = 0; -#endif -#ifdef TCP_OOSEQ_PBUFS_LIMIT - const u16_t ooseq_max_qlen = TCP_OOSEQ_PBUFS_LIMIT(pcb); - u16_t ooseq_qlen = 0; -#endif - struct tcp_seg *next, *prev = NULL; - for (next = pcb->ooseq; next != NULL; prev = next, next = next->next) { - struct pbuf *p = next->p; - int stop_here = 0; -#ifdef TCP_OOSEQ_BYTES_LIMIT - ooseq_blen += p->tot_len; - if (ooseq_blen > ooseq_max_blen) { - stop_here = 1; - } -#endif -#ifdef TCP_OOSEQ_PBUFS_LIMIT - ooseq_qlen += pbuf_clen(p); - if (ooseq_qlen > ooseq_max_qlen) { - stop_here = 1; - } -#endif - if (stop_here) { -#if LWIP_TCP_SACK_OUT - if (pcb->flags & TF_SACK) { - /* Let's remove all SACKs from next's seqno up. */ - tcp_remove_sacks_gt(pcb, next->tcphdr->seqno); - } -#endif /* LWIP_TCP_SACK_OUT */ - /* too much ooseq data, dump this and everything after it */ - tcp_segs_free(next); - if (prev == NULL) { - /* first ooseq segment is too much, dump the whole queue */ - pcb->ooseq = NULL; - } else { - /* just dump 'next' and everything after it */ - prev->next = NULL; - } - break; - } - } - } -#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); - } - } else { - /* The incoming segment is not within the window. */ - tcp_send_empty_ack(pcb); - } - } 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)) { - tcp_ack_now(pcb); - } - } -} - -static u8_t -tcp_get_next_optbyte(void) -{ - u16_t optidx = tcp_optidx++; - if ((tcphdr_opt2 == NULL) || (optidx < tcphdr_opt1len)) { - u8_t *opts = (u8_t *)tcphdr + TCP_HLEN; - return opts[optidx]; - } else { - u8_t idx = (u8_t)(optidx - tcphdr_opt1len); - return tcphdr_opt2[idx]; - } -} - -/** - * Parses the options contained in the incoming segment. - * - * Called from tcp_listen_input() and tcp_process(). - * Currently, only the MSS option is supported! - * - * @param pcb the tcp_pcb for which a segment arrived - */ -static void -tcp_parseopt(struct tcp_pcb *pcb) -{ - u8_t data; - u16_t mss; -#if LWIP_TCP_TIMESTAMPS - u32_t tsval; -#endif - - LWIP_ASSERT("tcp_parseopt: invalid pcb", pcb != NULL); - - /* Parse the TCP MSS option, if present. */ - if (tcphdr_optlen != 0) { - for (tcp_optidx = 0; tcp_optidx < tcphdr_optlen; ) { - u8_t opt = tcp_get_next_optbyte(); - switch (opt) { - case LWIP_TCP_OPT_EOL: - /* End of options. */ - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: EOL\n")); - return; - case LWIP_TCP_OPT_NOP: - /* 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) { - /* 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); - mss |= tcp_get_next_optbyte(); - /* Limit the mss to the configured TCP_MSS and prevent division by zero */ - pcb->mss = ((mss > TCP_MSS) || (mss == 0)) ? TCP_MSS : mss; - break; -#if LWIP_WND_SCALE - case LWIP_TCP_OPT_WS: - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: WND_SCALE\n")); - if (tcp_get_next_optbyte() != LWIP_TCP_OPT_LEN_WS || (tcp_optidx - 2 + LWIP_TCP_OPT_LEN_WS) > tcphdr_optlen) { - /* Bad length */ - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: bad length\n")); - return; - } - /* An WND_SCALE option with the right option length. */ - data = tcp_get_next_optbyte(); - /* If syn was received with wnd scale option, - activate wnd scale opt, but only if this is not a retransmission */ - if ((flags & TCP_SYN) && !(pcb->flags & TF_WND_SCALE)) { - pcb->snd_scale = data; - if (pcb->snd_scale > 14U) { - pcb->snd_scale = 14U; - } - pcb->rcv_scale = TCP_RCV_SCALE; - tcp_set_flags(pcb, TF_WND_SCALE); - /* window scaling is enabled, we can use the full receive window */ - LWIP_ASSERT("window not at default value", pcb->rcv_wnd == TCPWND_MIN16(TCP_WND)); - LWIP_ASSERT("window not at default value", pcb->rcv_ann_wnd == TCPWND_MIN16(TCP_WND)); - pcb->rcv_wnd = pcb->rcv_ann_wnd = TCP_WND; - } - break; -#endif /* LWIP_WND_SCALE */ -#if LWIP_TCP_TIMESTAMPS - case LWIP_TCP_OPT_TS: - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: TS\n")); - if (tcp_get_next_optbyte() != LWIP_TCP_OPT_LEN_TS || (tcp_optidx - 2 + LWIP_TCP_OPT_LEN_TS) > tcphdr_optlen) { - /* Bad length */ - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: bad length\n")); - return; - } - /* TCP timestamp option with valid length */ - tsval = tcp_get_next_optbyte(); - tsval |= (tcp_get_next_optbyte() << 8); - tsval |= (tcp_get_next_optbyte() << 16); - tsval |= (tcp_get_next_optbyte() << 24); - if (flags & TCP_SYN) { - pcb->ts_recent = lwip_ntohl(tsval); - /* Enable sending timestamps in every segment now that we know - the remote host supports it. */ - tcp_set_flags(pcb, TF_TIMESTAMP); - } else if (TCP_SEQ_BETWEEN(pcb->ts_lastacksent, seqno, seqno + tcplen)) { - pcb->ts_recent = lwip_ntohl(tsval); - } - /* Advance to next option (6 bytes already read) */ - tcp_optidx += LWIP_TCP_OPT_LEN_TS - 6; - break; -#endif /* LWIP_TCP_TIMESTAMPS */ -#if LWIP_TCP_SACK_OUT - case LWIP_TCP_OPT_SACK_PERM: - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: SACK_PERM\n")); - if (tcp_get_next_optbyte() != LWIP_TCP_OPT_LEN_SACK_PERM || (tcp_optidx - 2 + LWIP_TCP_OPT_LEN_SACK_PERM) > tcphdr_optlen) { - /* Bad length */ - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: bad length\n")); - return; - } - /* TCP SACK_PERM option with valid length */ - if (flags & TCP_SYN) { - /* We only set it if we receive it in a SYN (or SYN+ACK) packet */ - tcp_set_flags(pcb, TF_SACK); - } - break; -#endif /* LWIP_TCP_SACK_OUT */ - default: - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: other\n")); - data = tcp_get_next_optbyte(); - if (data < 2) { - LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: bad length\n")); - /* If the length field is zero, the options are malformed - 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; - } - } - } -} - -void -tcp_trigger_input_pcb_close(void) -{ - recv_flags |= TF_CLOSED; -} - -#if LWIP_TCP_SACK_OUT -/** - * Called by tcp_receive() to add new SACK entry. - * - * The new SACK entry will be placed at the beginning of rcv_sacks[], as the newest one. - * Existing SACK entries will be "pushed back", to preserve their order. - * This is the behavior described in RFC 2018, section 4. - * - * @param pcb the tcp_pcb for which a segment arrived - * @param left the left side of the SACK (the first sequence number) - * @param right the right side of the SACK (the first sequence number past this SACK) - */ -static void -tcp_add_sack(struct tcp_pcb *pcb, u32_t left, u32_t right) -{ - u8_t i; - u8_t unused_idx; - - if ((pcb->flags & TF_SACK) == 0 || !TCP_SEQ_LT(left, right)) { - return; - } - - /* First, let's remove all SACKs that are no longer needed (because they overlap with the newest one), - while moving all other SACKs forward. - We run this loop for all entries, until we find the first invalid one. - There is no point checking after that. */ - for (i = unused_idx = 0; (i < LWIP_TCP_MAX_SACK_NUM) && LWIP_TCP_SACK_VALID(pcb, i); ++i) { - /* We only want to use SACK at [i] if it doesn't overlap with left:right range. - It does not overlap if its right side is before the newly added SACK, - or if its left side is after the newly added SACK. - NOTE: The equality should not really happen, but it doesn't hurt. */ - if (TCP_SEQ_LEQ(pcb->rcv_sacks[i].right, left) || TCP_SEQ_LEQ(right, pcb->rcv_sacks[i].left)) { - if (unused_idx != i) { - /* We don't need to copy if it's already in the right spot */ - pcb->rcv_sacks[unused_idx] = pcb->rcv_sacks[i]; - } - ++unused_idx; - } - } - - /* Now 'unused_idx' is the index of the first invalid SACK entry, - anywhere between 0 (no valid entries) and LWIP_TCP_MAX_SACK_NUM (all entries are valid). - We want to clear this and all following SACKs. - However, we will be adding another one in the front (and shifting everything else back). - So let's just iterate from the back, and set each entry to the one to the left if it's valid, - or to 0 if it is not. */ - for (i = LWIP_TCP_MAX_SACK_NUM - 1; i > 0; --i) { - /* [i] is the index we are setting, and the value should be at index [i-1], - or 0 if that index is unused (>= unused_idx). */ - if (i - 1 >= unused_idx) { - /* [i-1] is unused. Let's clear [i]. */ - pcb->rcv_sacks[i].left = pcb->rcv_sacks[i].right = 0; - } else { - pcb->rcv_sacks[i] = pcb->rcv_sacks[i - 1]; - } - } - - /* And now we can store the newest SACK */ - pcb->rcv_sacks[0].left = left; - pcb->rcv_sacks[0].right = right; -} - -/** - * Called to remove a range of SACKs. - * - * SACK entries will be removed or adjusted to not acknowledge any sequence - * numbers that are less than 'seq' passed. It not only invalidates entries, - * but also moves all entries that are still valid to the beginning. - * - * @param pcb the tcp_pcb to modify - * @param seq the lowest sequence number to keep in SACK entries - */ -static void -tcp_remove_sacks_lt(struct tcp_pcb *pcb, u32_t seq) -{ - u8_t i; - u8_t unused_idx; - - /* We run this loop for all entries, until we find the first invalid one. - There is no point checking after that. */ - for (i = unused_idx = 0; (i < LWIP_TCP_MAX_SACK_NUM) && LWIP_TCP_SACK_VALID(pcb, i); ++i) { - /* We only want to use SACK at index [i] if its right side is > 'seq'. */ - if (TCP_SEQ_GT(pcb->rcv_sacks[i].right, seq)) { - if (unused_idx != i) { - /* We only copy it if it's not in the right spot already. */ - pcb->rcv_sacks[unused_idx] = pcb->rcv_sacks[i]; - } - /* NOTE: It is possible that its left side is < 'seq', in which case we should adjust it. */ - if (TCP_SEQ_LT(pcb->rcv_sacks[unused_idx].left, seq)) { - pcb->rcv_sacks[unused_idx].left = seq; - } - ++unused_idx; - } - } - - /* We also need to invalidate everything from 'unused_idx' till the end */ - for (i = unused_idx; i < LWIP_TCP_MAX_SACK_NUM; ++i) { - pcb->rcv_sacks[i].left = pcb->rcv_sacks[i].right = 0; - } -} - -#if defined(TCP_OOSEQ_BYTES_LIMIT) || defined(TCP_OOSEQ_PBUFS_LIMIT) -/** - * Called to remove a range of SACKs. - * - * SACK entries will be removed or adjusted to not acknowledge any sequence - * numbers that are greater than (or equal to) 'seq' passed. It not only invalidates entries, - * but also moves all entries that are still valid to the beginning. - * - * @param pcb the tcp_pcb to modify - * @param seq the highest sequence number to keep in SACK entries - */ -static void -tcp_remove_sacks_gt(struct tcp_pcb *pcb, u32_t seq) -{ - u8_t i; - u8_t unused_idx; - - /* We run this loop for all entries, until we find the first invalid one. - There is no point checking after that. */ - for (i = unused_idx = 0; (i < LWIP_TCP_MAX_SACK_NUM) && LWIP_TCP_SACK_VALID(pcb, i); ++i) { - /* We only want to use SACK at index [i] if its left side is < 'seq'. */ - if (TCP_SEQ_LT(pcb->rcv_sacks[i].left, seq)) { - if (unused_idx != i) { - /* We only copy it if it's not in the right spot already. */ - pcb->rcv_sacks[unused_idx] = pcb->rcv_sacks[i]; - } - /* NOTE: It is possible that its right side is > 'seq', in which case we should adjust it. */ - if (TCP_SEQ_GT(pcb->rcv_sacks[unused_idx].right, seq)) { - pcb->rcv_sacks[unused_idx].right = seq; - } - ++unused_idx; - } - } - - /* We also need to invalidate everything from 'unused_idx' till the end */ - for (i = unused_idx; i < LWIP_TCP_MAX_SACK_NUM; ++i) { - pcb->rcv_sacks[i].left = pcb->rcv_sacks[i].right = 0; - } -} -#endif /* TCP_OOSEQ_BYTES_LIMIT || TCP_OOSEQ_PBUFS_LIMIT */ - -#endif /* LWIP_TCP_SACK_OUT */ - -#endif /* LWIP_TCP */ diff --git a/Middlewares/Third_Party/LwIP/src/core/tcp_out.c b/Middlewares/Third_Party/LwIP/src/core/tcp_out.c deleted file mode 100644 index 724df10..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/tcp_out.c +++ /dev/null @@ -1,2190 +0,0 @@ -/** - * @file - * Transmission Control Protocol, outgoing traffic - * - * The output functions of TCP. - * - * There are two distinct ways for TCP segments to get sent: - * - queued data: these are segments transferring data or segments containing - * SYN or FIN (which both count as one sequence number). They are created as - * struct @ref pbuf together with a struct tcp_seg and enqueue to the - * unsent list of the pcb. They are sent by tcp_output: - * - @ref tcp_write : creates data segments - * - @ref tcp_split_unsent_seg : splits a data segment - * - @ref tcp_enqueue_flags : creates SYN-only or FIN-only segments - * - @ref tcp_output / tcp_output_segment : finalize the tcp header - * (e.g. sequence numbers, options, checksum) and output to IP - * - the various tcp_rexmit functions shuffle around segments between the - * unsent an unacked lists to retransmit them - * - tcp_create_segment and tcp_pbuf_prealloc allocate pbuf and - * segment for these functions - * - direct send: these segments don't contain data but control the connection - * behaviour. They are created as pbuf only and sent directly without - * enqueueing them: - * - @ref tcp_send_empty_ack sends an ACK-only segment - * - @ref tcp_rst sends a RST segment - * - @ref tcp_keepalive sends a keepalive segment - * - @ref tcp_zero_window_probe sends a window probe segment - * - tcp_output_alloc_header allocates a header-only pbuf for these functions - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -#include "lwip/opt.h" - -#if LWIP_TCP /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/priv/tcp_priv.h" -#include "lwip/def.h" -#include "lwip/mem.h" -#include "lwip/memp.h" -#include "lwip/ip_addr.h" -#include "lwip/netif.h" -#include "lwip/inet_chksum.h" -#include "lwip/stats.h" -#include "lwip/ip6.h" -#include "lwip/ip6_addr.h" -#if LWIP_TCP_TIMESTAMPS -#include "lwip/sys.h" -#endif - -#include - -#ifdef LWIP_HOOK_FILENAME -#include LWIP_HOOK_FILENAME -#endif - -/* Allow to add custom TCP header options by defining this hook */ -#ifdef LWIP_HOOK_TCP_OUT_TCPOPT_LENGTH -#define LWIP_TCP_OPT_LENGTH_SEGMENT(flags, pcb) LWIP_HOOK_TCP_OUT_TCPOPT_LENGTH(pcb, LWIP_TCP_OPT_LENGTH(flags)) -#else -#define LWIP_TCP_OPT_LENGTH_SEGMENT(flags, pcb) LWIP_TCP_OPT_LENGTH(flags) -#endif - -/* Define some copy-macros for checksum-on-copy so that the code looks - nicer by preventing too many ifdef's. */ -#if TCP_CHECKSUM_ON_COPY -#define TCP_DATA_COPY(dst, src, len, seg) do { \ - tcp_seg_add_chksum(LWIP_CHKSUM_COPY(dst, src, len), \ - len, &seg->chksum, &seg->chksum_swapped); \ - seg->flags |= TF_SEG_DATA_CHECKSUMMED; } while(0) -#define TCP_DATA_COPY2(dst, src, len, chksum, chksum_swapped) \ - tcp_seg_add_chksum(LWIP_CHKSUM_COPY(dst, src, len), len, chksum, chksum_swapped); -#else /* TCP_CHECKSUM_ON_COPY*/ -#define TCP_DATA_COPY(dst, src, len, seg) MEMCPY(dst, src, len) -#define TCP_DATA_COPY2(dst, src, len, chksum, chksum_swapped) MEMCPY(dst, src, len) -#endif /* TCP_CHECKSUM_ON_COPY*/ - -/** Define this to 1 for an extra check that the output checksum is valid - * (usefule when the checksum is generated by the application, not the stack) */ -#ifndef TCP_CHECKSUM_ON_COPY_SANITY_CHECK -#define TCP_CHECKSUM_ON_COPY_SANITY_CHECK 0 -#endif -/* Allow to override the failure of sanity check from warning to e.g. hard failure */ -#if TCP_CHECKSUM_ON_COPY_SANITY_CHECK -#ifndef TCP_CHECKSUM_ON_COPY_SANITY_CHECK_FAIL -#define TCP_CHECKSUM_ON_COPY_SANITY_CHECK_FAIL(msg) LWIP_DEBUGF(TCP_DEBUG | LWIP_DBG_LEVEL_WARNING, msg) -#endif -#endif - -#if TCP_OVERSIZE -/** The size of segment pbufs created when TCP_OVERSIZE is enabled */ -#ifndef TCP_OVERSIZE_CALC_LENGTH -#define TCP_OVERSIZE_CALC_LENGTH(length) ((length) + TCP_OVERSIZE) -#endif -#endif - -/* Forward declarations.*/ -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) -{ - LWIP_UNUSED_ARG(src); /* in case IPv4-only and source-based routing is disabled */ - - if ((pcb != NULL) && (pcb->netif_idx != NETIF_NO_INDEX)) { - return netif_get_by_index(pcb->netif_idx); - } else { - return ip_route(src, dst); - } -} - -/** - * Create a TCP segment with prefilled header. - * - * Called by @ref tcp_write, @ref tcp_enqueue_flags and @ref tcp_split_unsent_seg - * - * @param pcb Protocol control block for the TCP connection. - * @param p pbuf that is used to hold the TCP header. - * @param hdrflags TCP flags for header. - * @param seqno TCP sequence number of this packet - * @param optflags options to include in TCP header - * @return a new tcp_seg pointing to p, or NULL. - * 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) -{ - struct tcp_seg *seg; - u8_t optlen; - - LWIP_ASSERT("tcp_create_segment: invalid pcb", pcb != NULL); - LWIP_ASSERT("tcp_create_segment: invalid pbuf", p != NULL); - - optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb); - - if ((seg = (struct tcp_seg *)memp_malloc(MEMP_TCP_SEG)) == NULL) { - LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_create_segment: no memory.\n")); - pbuf_free(p); - return NULL; - } - seg->flags = optflags; - seg->next = NULL; - seg->p = p; - LWIP_ASSERT("p->tot_len >= optlen", p->tot_len >= optlen); - seg->len = p->tot_len - optlen; -#if TCP_OVERSIZE_DBGCHECK - seg->oversize_left = 0; -#endif /* TCP_OVERSIZE_DBGCHECK */ -#if TCP_CHECKSUM_ON_COPY - seg->chksum = 0; - seg->chksum_swapped = 0; - /* check optflags */ - 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)) { - 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); - return NULL; - } - seg->tcphdr = (struct tcp_hdr *)seg->p->payload; - seg->tcphdr->src = lwip_htons(pcb->local_port); - seg->tcphdr->dest = lwip_htons(pcb->remote_port); - seg->tcphdr->seqno = lwip_htonl(seqno); - /* ackno is set in tcp_output */ - TCPH_HDRLEN_FLAGS_SET(seg->tcphdr, (5 + optlen / 4), hdrflags); - /* wnd and chksum are set in tcp_output */ - seg->tcphdr->urgp = 0; - return seg; -} - -/** - * Allocate a PBUF_RAM pbuf, perhaps with extra space at the end. - * - * This function is like pbuf_alloc(layer, length, PBUF_RAM) except - * there may be extra bytes available at the end. - * - * Called by @ref tcp_write - * - * @param layer flag to define header size. - * @param length size of the pbuf's payload. - * @param max_length maximum usable size of payload+oversize. - * @param oversize pointer to a u16_t that will receive the number of usable tail bytes. - * @param pcb The TCP connection that will enqueue the pbuf. - * @param apiflags API flags given to tcp_write. - * @param first_seg true when this pbuf will be used in the first enqueued segment. - */ -#if TCP_OVERSIZE -static struct pbuf * -tcp_pbuf_prealloc(pbuf_layer layer, u16_t length, u16_t max_length, - u16_t *oversize, const struct tcp_pcb *pcb, u8_t apiflags, - u8_t first_seg) -{ - struct pbuf *p; - u16_t alloc = length; - - LWIP_ASSERT("tcp_pbuf_prealloc: invalid oversize", oversize != NULL); - LWIP_ASSERT("tcp_pbuf_prealloc: invalid pcb", pcb != NULL); - -#if LWIP_NETIF_TX_SINGLE_PBUF - LWIP_UNUSED_ARG(max_length); - LWIP_UNUSED_ARG(pcb); - LWIP_UNUSED_ARG(apiflags); - LWIP_UNUSED_ARG(first_seg); - alloc = max_length; -#else /* LWIP_NETIF_TX_SINGLE_PBUF */ - if (length < max_length) { - /* Should we allocate an oversized pbuf, or just the minimum - * length required? If tcp_write is going to be called again - * before this segment is transmitted, we want the oversized - * buffer. If the segment will be transmitted immediately, we can - * save memory by allocating only length. We use a simple - * heuristic based on the following information: - * - * Did the user set TCP_WRITE_FLAG_MORE? - * - * Will the Nagle algorithm defer transmission of this segment? - */ - if ((apiflags & TCP_WRITE_FLAG_MORE) || - (!(pcb->flags & TF_NODELAY) && - (!first_seg || - pcb->unsent != NULL || - pcb->unacked != NULL))) { - alloc = LWIP_MIN(max_length, LWIP_MEM_ALIGN_SIZE(TCP_OVERSIZE_CALC_LENGTH(length))); - } - } -#endif /* LWIP_NETIF_TX_SINGLE_PBUF */ - p = pbuf_alloc(layer, alloc, PBUF_RAM); - if (p == NULL) { - return NULL; - } - LWIP_ASSERT("need unchained pbuf", p->next == NULL); - *oversize = p->len - length; - /* trim p->len to the currently used size */ - p->len = p->tot_len = length; - return p; -} -#else /* TCP_OVERSIZE */ -#define tcp_pbuf_prealloc(layer, length, mx, os, pcb, api, fst) pbuf_alloc((layer), (length), PBUF_RAM) -#endif /* TCP_OVERSIZE */ - -#if TCP_CHECKSUM_ON_COPY -/** Add a checksum of newly added data to the segment. - * - * Called by tcp_write and tcp_split_unsent_seg. - */ -static void -tcp_seg_add_chksum(u16_t chksum, u16_t len, u16_t *seg_chksum, - u8_t *seg_chksum_swapped) -{ - u32_t helper; - /* add chksum to old chksum and fold to u16_t */ - helper = chksum + *seg_chksum; - chksum = FOLD_U32T(helper); - if ((len & 1) != 0) { - *seg_chksum_swapped = 1 - *seg_chksum_swapped; - chksum = SWAP_BYTES_IN_WORD(chksum); - } - *seg_chksum = chksum; -} -#endif /* TCP_CHECKSUM_ON_COPY */ - -/** Checks if tcp_write is allowed or not (checks state, snd_buf and snd_queuelen). - * - * @param pcb the tcp pcb to check for - * @param len length of data to send (checked agains snd_buf) - * @return ERR_OK if tcp_write is allowed to proceed, another err_t otherwise - */ -static err_t -tcp_write_checks(struct tcp_pcb *pcb, u16_t len) -{ - LWIP_ASSERT("tcp_write_checks: invalid pcb", pcb != NULL); - - /* connection is in invalid state for data transmission? */ - if ((pcb->state != ESTABLISHED) && - (pcb->state != CLOSE_WAIT) && - (pcb->state != SYN_SENT) && - (pcb->state != SYN_RCVD)) { - LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_STATE | LWIP_DBG_LEVEL_SEVERE, ("tcp_write() called in invalid state\n")); - return ERR_CONN; - } else if (len == 0) { - return ERR_OK; - } - - /* fail on too much data */ - if (len > pcb->snd_buf) { - LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("tcp_write: too much data (len=%"U16_F" > snd_buf=%"TCPWNDSIZE_F")\n", - len, pcb->snd_buf)); - tcp_set_flags(pcb, TF_NAGLEMEMERR); - return ERR_MEM; - } - - LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_write: queuelen: %"TCPWNDSIZE_F"\n", (tcpwnd_size_t)pcb->snd_queuelen)); - - /* If total number of pbufs on the unsent/unacked queues exceeds the - * configured maximum, return an error */ - /* check for configured max queuelen and possible overflow */ - if (pcb->snd_queuelen >= LWIP_MIN(TCP_SND_QUEUELEN, (TCP_SNDQUEUELEN_OVERFLOW + 1))) { - LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("tcp_write: too long queue %"U16_F" (max %"U16_F")\n", - pcb->snd_queuelen, (u16_t)TCP_SND_QUEUELEN)); - TCP_STATS_INC(tcp.memerr); - tcp_set_flags(pcb, TF_NAGLEMEMERR); - return ERR_MEM; - } - if (pcb->snd_queuelen != 0) { - LWIP_ASSERT("tcp_write: pbufs on queue => at least one queue non-empty", - pcb->unacked != NULL || pcb->unsent != NULL); - } else { - LWIP_ASSERT("tcp_write: no pbufs on queue => both queues empty", - pcb->unacked == NULL && pcb->unsent == NULL); - } - return ERR_OK; -} - -/** - * @ingroup tcp_raw - * Write data for sending (but does not send it immediately). - * - * It waits in the expectation of more data being sent soon (as - * it can send them more efficiently by combining them together). - * To prompt the system to send data now, call tcp_output() after - * calling tcp_write(). - * - * This function enqueues the data pointed to by the argument dataptr. The length of - * the data is passed as the len parameter. The apiflags can be one or more of: - * - TCP_WRITE_FLAG_COPY: indicates whether the new memory should be allocated - * for the data to be copied into. If this flag is not given, no new memory - * should be allocated and the data should only be referenced by pointer. This - * also means that the memory behind dataptr must not change until the data is - * ACKed by the remote host - * - TCP_WRITE_FLAG_MORE: indicates that more data follows. If this is omitted, - * the PSH flag is set in the last segment created by this call to tcp_write. - * If this flag is given, the PSH flag is not set. - * - * The tcp_write() function will fail and return ERR_MEM if the length - * of the data exceeds the current send buffer size or if the length of - * the queue of outgoing segment is larger than the upper limit defined - * in lwipopts.h. The number of bytes available in the output queue can - * be retrieved with the tcp_sndbuf() function. - * - * The proper way to use this function is to call the function with at - * most tcp_sndbuf() bytes of data. If the function returns ERR_MEM, - * the application should wait until some of the currently enqueued - * data has been successfully received by the other host and try again. - * - * @param pcb Protocol control block for the TCP connection to enqueue data for. - * @param arg Pointer to the data to be enqueued for sending. - * @param len Data length in bytes - * @param apiflags combination of following flags : - * - TCP_WRITE_FLAG_COPY (0x01) data will be copied into memory belonging to the stack - * - TCP_WRITE_FLAG_MORE (0x02) for TCP connection, PSH flag will not be set on last segment sent, - * @return ERR_OK if enqueued, another err_t on error - */ -err_t -tcp_write(struct tcp_pcb *pcb, const void *arg, u16_t len, u8_t apiflags) -{ - struct pbuf *concat_p = NULL; - struct tcp_seg *last_unsent = NULL, *seg = NULL, *prev_seg = NULL, *queue = NULL; - u16_t pos = 0; /* position in 'arg' data */ - u16_t queuelen; - u8_t optlen; - u8_t optflags = 0; -#if TCP_OVERSIZE - u16_t oversize = 0; - u16_t oversize_used = 0; -#if TCP_OVERSIZE_DBGCHECK - u16_t oversize_add = 0; -#endif /* TCP_OVERSIZE_DBGCHECK*/ -#endif /* TCP_OVERSIZE */ - u16_t extendlen = 0; -#if TCP_CHECKSUM_ON_COPY - u16_t concat_chksum = 0; - u8_t concat_chksum_swapped = 0; - u16_t concat_chksummed = 0; -#endif /* TCP_CHECKSUM_ON_COPY */ - err_t err; - u16_t mss_local; - - LWIP_ERROR("tcp_write: invalid pcb", pcb != NULL, return ERR_ARG); - - /* don't allocate segments bigger than half the maximum window we ever received */ - mss_local = LWIP_MIN(pcb->mss, TCPWND_MIN16(pcb->snd_wnd_max / 2)); - mss_local = mss_local ? mss_local : pcb->mss; - - LWIP_ASSERT_CORE_LOCKED(); - -#if LWIP_NETIF_TX_SINGLE_PBUF - /* Always copy to try to create single pbufs for TX */ - apiflags |= TCP_WRITE_FLAG_COPY; -#endif /* LWIP_NETIF_TX_SINGLE_PBUF */ - - LWIP_DEBUGF(TCP_OUTPUT_DEBUG, ("tcp_write(pcb=%p, data=%p, len=%"U16_F", apiflags=%"U16_F")\n", - (void *)pcb, arg, len, (u16_t)apiflags)); - LWIP_ERROR("tcp_write: arg == NULL (programmer violates API)", - arg != NULL, return ERR_ARG;); - - err = tcp_write_checks(pcb, len); - if (err != ERR_OK) { - return err; - } - queuelen = pcb->snd_queuelen; - -#if LWIP_TCP_TIMESTAMPS - if ((pcb->flags & TF_TIMESTAMP)) { - /* Make sure the timestamp option is only included in data segments if we - agreed about it with the remote host. */ - optflags = TF_SEG_OPTS_TS; - optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(TF_SEG_OPTS_TS, pcb); - /* ensure that segments can hold at least one data byte... */ - mss_local = LWIP_MAX(mss_local, LWIP_TCP_OPT_LEN_TS + 1); - } else -#endif /* LWIP_TCP_TIMESTAMPS */ - { - optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb); - } - - - /* - * TCP segmentation is done in three phases with increasing complexity: - * - * 1. Copy data directly into an oversized pbuf. - * 2. Chain a new pbuf to the end of pcb->unsent. - * 3. Create new segments. - * - * We may run out of memory at any point. In that case we must - * return ERR_MEM and not change anything in pcb. Therefore, all - * changes are recorded in local variables and committed at the end - * of the function. Some pcb fields are maintained in local copies: - * - * queuelen = pcb->snd_queuelen - * oversize = pcb->unsent_oversize - * - * These variables are set consistently by the phases: - * - * seg points to the last segment tampered with. - * - * pos records progress as data is segmented. - */ - - /* Find the tail of the unsent queue. */ - if (pcb->unsent != NULL) { - u16_t space; - u16_t unsent_optlen; - - /* @todo: this could be sped up by keeping last_unsent in the pcb */ - for (last_unsent = pcb->unsent; last_unsent->next != NULL; - last_unsent = last_unsent->next); - - /* Usable space at the end of the last unsent segment */ - unsent_optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(last_unsent->flags, pcb); - LWIP_ASSERT("mss_local is too small", mss_local >= last_unsent->len + unsent_optlen); - space = mss_local - (last_unsent->len + unsent_optlen); - - /* - * Phase 1: Copy data directly into an oversized pbuf. - * - * The number of bytes copied is recorded in the oversize_used - * variable. The actual copying is done at the bottom of the - * function. - */ -#if TCP_OVERSIZE -#if TCP_OVERSIZE_DBGCHECK - /* check that pcb->unsent_oversize matches last_unsent->oversize_left */ - LWIP_ASSERT("unsent_oversize mismatch (pcb vs. last_unsent)", - pcb->unsent_oversize == last_unsent->oversize_left); -#endif /* TCP_OVERSIZE_DBGCHECK */ - oversize = pcb->unsent_oversize; - if (oversize > 0) { - LWIP_ASSERT("inconsistent oversize vs. space", oversize <= space); - seg = last_unsent; - oversize_used = LWIP_MIN(space, LWIP_MIN(oversize, len)); - pos += oversize_used; - oversize -= oversize_used; - space -= oversize_used; - } - /* now we are either finished or oversize is zero */ - LWIP_ASSERT("inconsistent oversize vs. len", (oversize == 0) || (pos == len)); -#endif /* TCP_OVERSIZE */ - -#if !LWIP_NETIF_TX_SINGLE_PBUF - /* - * Phase 2: Chain a new pbuf to the end of pcb->unsent. - * - * As an exception when NOT copying the data, if the given data buffer - * directly follows the last unsent data buffer in memory, extend the last - * ROM pbuf reference to the buffer, thus saving a ROM pbuf allocation. - * - * We don't extend segments containing SYN/FIN flags or options - * (len==0). The new pbuf is kept in concat_p and pbuf_cat'ed at - * the end. - * - * This phase is skipped for LWIP_NETIF_TX_SINGLE_PBUF as we could only execute - * it after rexmit puts a segment from unacked to unsent and at this point, - * oversize info is lost. - */ - if ((pos < len) && (space > 0) && (last_unsent->len > 0)) { - u16_t seglen = LWIP_MIN(space, len - pos); - seg = last_unsent; - - /* Create a pbuf with a copy or reference to seglen bytes. We - * can use PBUF_RAW here since the data appears in the middle of - * a segment. A header will never be prepended. */ - if (apiflags & TCP_WRITE_FLAG_COPY) { - /* Data is copied */ - if ((concat_p = tcp_pbuf_prealloc(PBUF_RAW, seglen, space, &oversize, pcb, apiflags, 1)) == NULL) { - LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, - ("tcp_write : could not allocate memory for pbuf copy size %"U16_F"\n", - seglen)); - goto memerr; - } -#if TCP_OVERSIZE_DBGCHECK - oversize_add = oversize; -#endif /* TCP_OVERSIZE_DBGCHECK */ - TCP_DATA_COPY2(concat_p->payload, (const u8_t *)arg + pos, seglen, &concat_chksum, &concat_chksum_swapped); -#if TCP_CHECKSUM_ON_COPY - concat_chksummed += seglen; -#endif /* TCP_CHECKSUM_ON_COPY */ - queuelen += pbuf_clen(concat_p); - } else { - /* Data is not copied */ - /* If the last unsent pbuf is of type PBUF_ROM, try to extend it. */ - struct pbuf *p; - for (p = last_unsent->p; p->next != NULL; p = p->next); - if (((p->type_internal & (PBUF_TYPE_FLAG_STRUCT_DATA_CONTIGUOUS | PBUF_TYPE_FLAG_DATA_VOLATILE)) == 0) && - (const u8_t *)p->payload + p->len == (const u8_t *)arg) { - LWIP_ASSERT("tcp_write: ROM pbufs cannot be oversized", pos == 0); - extendlen = seglen; - } else { - if ((concat_p = pbuf_alloc(PBUF_RAW, seglen, PBUF_ROM)) == NULL) { - LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, - ("tcp_write: could not allocate memory for zero-copy pbuf\n")); - goto memerr; - } - /* reference the non-volatile payload data */ - ((struct pbuf_rom *)concat_p)->payload = (const u8_t *)arg + pos; - queuelen += pbuf_clen(concat_p); - } -#if TCP_CHECKSUM_ON_COPY - /* calculate the checksum of nocopy-data */ - tcp_seg_add_chksum(~inet_chksum((const u8_t *)arg + pos, seglen), seglen, - &concat_chksum, &concat_chksum_swapped); - concat_chksummed += seglen; -#endif /* TCP_CHECKSUM_ON_COPY */ - } - - pos += seglen; - } -#endif /* !LWIP_NETIF_TX_SINGLE_PBUF */ - } else { -#if TCP_OVERSIZE - LWIP_ASSERT("unsent_oversize mismatch (pcb->unsent is NULL)", - pcb->unsent_oversize == 0); -#endif /* TCP_OVERSIZE */ - } - - /* - * Phase 3: Create new segments. - * - * The new segments are chained together in the local 'queue' - * variable, ready to be appended to pcb->unsent. - */ - while (pos < len) { - struct pbuf *p; - u16_t left = len - pos; - u16_t max_len = mss_local - optlen; - u16_t seglen = LWIP_MIN(left, max_len); -#if TCP_CHECKSUM_ON_COPY - u16_t chksum = 0; - u8_t chksum_swapped = 0; -#endif /* TCP_CHECKSUM_ON_COPY */ - - if (apiflags & TCP_WRITE_FLAG_COPY) { - /* If copy is set, memory should be allocated and data copied - * into pbuf */ - if ((p = tcp_pbuf_prealloc(PBUF_TRANSPORT, seglen + optlen, mss_local, &oversize, pcb, apiflags, queue == NULL)) == NULL) { - LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_write : could not allocate memory for pbuf copy size %"U16_F"\n", seglen)); - goto memerr; - } - LWIP_ASSERT("tcp_write: check that first pbuf can hold the complete seglen", - (p->len >= seglen)); - TCP_DATA_COPY2((char *)p->payload + optlen, (const u8_t *)arg + pos, seglen, &chksum, &chksum_swapped); - } else { - /* Copy is not set: First allocate a pbuf for holding the data. - * Since the referenced data is available at least until it is - * sent out on the link (as it has to be ACKed by the remote - * party) we can safely use PBUF_ROM instead of PBUF_REF here. - */ - struct pbuf *p2; -#if TCP_OVERSIZE - LWIP_ASSERT("oversize == 0", oversize == 0); -#endif /* TCP_OVERSIZE */ - if ((p2 = pbuf_alloc(PBUF_TRANSPORT, seglen, PBUF_ROM)) == NULL) { - LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_write: could not allocate memory for zero-copy pbuf\n")); - goto memerr; - } -#if TCP_CHECKSUM_ON_COPY - /* calculate the checksum of nocopy-data */ - chksum = ~inet_chksum((const u8_t *)arg + pos, seglen); - if (seglen & 1) { - chksum_swapped = 1; - chksum = SWAP_BYTES_IN_WORD(chksum); - } -#endif /* TCP_CHECKSUM_ON_COPY */ - /* reference the non-volatile payload data */ - ((struct pbuf_rom *)p2)->payload = (const u8_t *)arg + pos; - - /* Second, allocate a pbuf for the headers. */ - if ((p = pbuf_alloc(PBUF_TRANSPORT, optlen, PBUF_RAM)) == NULL) { - /* If allocation fails, we have to deallocate the data pbuf as - * well. */ - pbuf_free(p2); - LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_write: could not allocate memory for header pbuf\n")); - goto memerr; - } - /* Concatenate the headers and data pbufs together. */ - pbuf_cat(p/*header*/, p2/*data*/); - } - - queuelen += pbuf_clen(p); - - /* Now that there are more segments queued, we check again if the - * length of the queue exceeds the configured maximum or - * overflows. */ - if (queuelen > LWIP_MIN(TCP_SND_QUEUELEN, TCP_SNDQUEUELEN_OVERFLOW)) { - LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_write: queue too long %"U16_F" (%d)\n", - queuelen, (int)TCP_SND_QUEUELEN)); - pbuf_free(p); - goto memerr; - } - - if ((seg = tcp_create_segment(pcb, p, 0, pcb->snd_lbb + pos, optflags)) == NULL) { - goto memerr; - } -#if TCP_OVERSIZE_DBGCHECK - seg->oversize_left = oversize; -#endif /* TCP_OVERSIZE_DBGCHECK */ -#if TCP_CHECKSUM_ON_COPY - seg->chksum = chksum; - seg->chksum_swapped = chksum_swapped; - seg->flags |= TF_SEG_DATA_CHECKSUMMED; -#endif /* TCP_CHECKSUM_ON_COPY */ - - /* first segment of to-be-queued data? */ - if (queue == NULL) { - queue = seg; - } else { - /* Attach the segment to the end of the queued segments */ - LWIP_ASSERT("prev_seg != NULL", prev_seg != NULL); - prev_seg->next = seg; - } - /* remember last segment of to-be-queued data for next iteration */ - prev_seg = seg; - - LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_TRACE, ("tcp_write: queueing %"U32_F":%"U32_F"\n", - lwip_ntohl(seg->tcphdr->seqno), - lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg))); - - pos += seglen; - } - - /* - * All three segmentation phases were successful. We can commit the - * transaction. - */ -#if TCP_OVERSIZE_DBGCHECK - if ((last_unsent != NULL) && (oversize_add != 0)) { - last_unsent->oversize_left += oversize_add; - } -#endif /* TCP_OVERSIZE_DBGCHECK */ - - /* - * Phase 1: If data has been added to the preallocated tail of - * last_unsent, we update the length fields of the pbuf chain. - */ -#if TCP_OVERSIZE - if (oversize_used > 0) { - struct pbuf *p; - /* Bump tot_len of whole chain, len of tail */ - for (p = last_unsent->p; p; p = p->next) { - p->tot_len += oversize_used; - if (p->next == NULL) { - TCP_DATA_COPY((char *)p->payload + p->len, arg, oversize_used, last_unsent); - p->len += oversize_used; - } - } - last_unsent->len += oversize_used; -#if TCP_OVERSIZE_DBGCHECK - LWIP_ASSERT("last_unsent->oversize_left >= oversize_used", - last_unsent->oversize_left >= oversize_used); - last_unsent->oversize_left -= oversize_used; -#endif /* TCP_OVERSIZE_DBGCHECK */ - } - pcb->unsent_oversize = oversize; -#endif /* TCP_OVERSIZE */ - - /* - * Phase 2: concat_p can be concatenated onto last_unsent->p, unless we - * determined that the last ROM pbuf can be extended to include the new data. - */ - if (concat_p != NULL) { - LWIP_ASSERT("tcp_write: cannot concatenate when pcb->unsent is empty", - (last_unsent != NULL)); - pbuf_cat(last_unsent->p, concat_p); - last_unsent->len += concat_p->tot_len; - } else if (extendlen > 0) { - struct pbuf *p; - LWIP_ASSERT("tcp_write: extension of reference requires reference", - last_unsent != NULL && last_unsent->p != NULL); - for (p = last_unsent->p; p->next != NULL; p = p->next) { - p->tot_len += extendlen; - } - p->tot_len += extendlen; - p->len += extendlen; - last_unsent->len += extendlen; - } - -#if TCP_CHECKSUM_ON_COPY - if (concat_chksummed) { - LWIP_ASSERT("tcp_write: concat checksum needs concatenated data", - concat_p != NULL || extendlen > 0); - /*if concat checksumm swapped - swap it back */ - if (concat_chksum_swapped) { - concat_chksum = SWAP_BYTES_IN_WORD(concat_chksum); - } - tcp_seg_add_chksum(concat_chksum, concat_chksummed, &last_unsent->chksum, - &last_unsent->chksum_swapped); - last_unsent->flags |= TF_SEG_DATA_CHECKSUMMED; - } -#endif /* TCP_CHECKSUM_ON_COPY */ - - /* - * Phase 3: Append queue to pcb->unsent. Queue may be NULL, but that - * is harmless - */ - if (last_unsent == NULL) { - pcb->unsent = queue; - } else { - last_unsent->next = queue; - } - - /* - * Finally update the pcb state. - */ - pcb->snd_lbb += len; - pcb->snd_buf -= len; - pcb->snd_queuelen = queuelen; - - LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_write: %"S16_F" (after enqueued)\n", - pcb->snd_queuelen)); - if (pcb->snd_queuelen != 0) { - LWIP_ASSERT("tcp_write: valid queue length", - pcb->unacked != NULL || pcb->unsent != NULL); - } - - /* Set the PSH flag in the last segment that we enqueued. */ - if (seg != NULL && seg->tcphdr != NULL && ((apiflags & TCP_WRITE_FLAG_MORE) == 0)) { - TCPH_SET_FLAG(seg->tcphdr, TCP_PSH); - } - - return ERR_OK; -memerr: - tcp_set_flags(pcb, TF_NAGLEMEMERR); - TCP_STATS_INC(tcp.memerr); - - if (concat_p != NULL) { - pbuf_free(concat_p); - } - if (queue != NULL) { - tcp_segs_free(queue); - } - if (pcb->snd_queuelen != 0) { - LWIP_ASSERT("tcp_write: valid queue length", pcb->unacked != NULL || - pcb->unsent != NULL); - } - LWIP_DEBUGF(TCP_QLEN_DEBUG | LWIP_DBG_STATE, ("tcp_write: %"S16_F" (with mem err)\n", pcb->snd_queuelen)); - return ERR_MEM; -} - -/** - * Split segment on the head of the unsent queue. If return is not - * ERR_OK, existing head remains intact - * - * The split is accomplished by creating a new TCP segment and pbuf - * which holds the remainder payload after the split. The original - * pbuf is trimmed to new length. This allows splitting of read-only - * pbufs - * - * @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) -{ - struct tcp_seg *seg = NULL, *useg = NULL; - struct pbuf *p = NULL; - u8_t optlen; - u8_t optflags; - u8_t split_flags; - u8_t remainder_flags; - u16_t remainder; - u16_t offset; -#if TCP_CHECKSUM_ON_COPY - 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); - - useg = pcb->unsent; - if (useg == NULL) { - return ERR_MEM; - } - - if (split == 0) { - LWIP_ASSERT("Can't split segment into length 0", 0); - return ERR_VAL; - } - - if (useg->len <= split) { - return ERR_OK; - } - - LWIP_ASSERT("split <= mss", split <= pcb->mss); - LWIP_ASSERT("useg->len > 0", useg->len > 0); - - /* We should check that we don't exceed TCP_SND_QUEUELEN but we need - * 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; -#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); - remainder = useg->len - split; - - /* Create new pbuf for the remainder of the split */ - p = pbuf_alloc(PBUF_TRANSPORT, remainder + optlen, PBUF_RAM); - if (p == NULL) { - LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, - ("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; - /* 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) { - LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, - ("tcp_split_unsent_seg: could not copy pbuf remainder %u\n", remainder)); - goto memerr; - } -#if TCP_CHECKSUM_ON_COPY - /* calculate the checksum on remainder data */ - tcp_seg_add_chksum(~inet_chksum((const u8_t *)p->payload + optlen, remainder), remainder, - &chksum, &chksum_swapped); -#endif /* TCP_CHECKSUM_ON_COPY */ - - /* Options are created when calling tcp_output() */ - - /* Migrate flags from original segment */ - split_flags = TCPH_FLAGS(useg->tcphdr); - remainder_flags = 0; /* ACK added in tcp_output() */ - - if (split_flags & TCP_PSH) { - split_flags &= ~TCP_PSH; - remainder_flags |= TCP_PSH; - } - if (split_flags & TCP_FIN) { - split_flags &= ~TCP_FIN; - remainder_flags |= TCP_FIN; - } - /* 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); - if (seg == NULL) { - LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, - ("tcp_split_unsent_seg: could not create new TCP segment\n")); - goto memerr; - } - -#if TCP_CHECKSUM_ON_COPY - seg->chksum = chksum; - 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); - - /* 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); - useg->len -= remainder; - TCPH_SET_FLAG(useg->tcphdr, split_flags); -#if TCP_OVERSIZE_DBGCHECK - /* 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); - -#if TCP_CHECKSUM_ON_COPY - /* The checksum on the split segment is now incorrect. We need to re-run it over the split */ - useg->chksum = 0; - useg->chksum_swapped = 0; - q = useg->p; - offset = q->tot_len - useg->len; /* Offset due to exposed headers */ - - /* Advance to the pbuf where the offset ends */ - while (q != NULL && offset > q->len) { - offset -= q->len; - q = q->next; - } - LWIP_ASSERT("Found start of payload pbuf", q != NULL); - /* Checksum the first payload pbuf accounting for offset, then other pbufs are all payload */ - for (; q != NULL; offset = 0, q = q->next) { - tcp_seg_add_chksum(~inet_chksum((const u8_t *)q->payload + offset, q->len - offset), q->len - offset, - &useg->chksum, &useg->chksum_swapped); - } -#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); - - /* Finally insert remainder into queue after split (which stays head) */ - seg->next = useg->next; - useg->next = seg; - -#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) { - pcb->unsent_oversize = 0; - } -#endif /* TCP_OVERSIZE */ - - return ERR_OK; -memerr: - TCP_STATS_INC(tcp.memerr); - - LWIP_ASSERT("seg == NULL", seg == NULL); - if (p != NULL) { - pbuf_free(p); - } - - return ERR_MEM; -} - -/** - * Called by tcp_close() to send a segment including FIN flag but not data. - * This FIN may be added to an existing segment or a new, otherwise empty - * segment is enqueued. - * - * @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) -{ - LWIP_ASSERT("tcp_send_fin: invalid pcb", pcb != NULL); - - /* first, try to add the fin to the last unsent segment */ - if (pcb->unsent != NULL) { - struct tcp_seg *last_unsent; - for (last_unsent = pcb->unsent; last_unsent->next != NULL; - last_unsent = last_unsent->next); - - if ((TCPH_FLAGS(last_unsent->tcphdr) & (TCP_SYN | TCP_FIN | TCP_RST)) == 0) { - /* no SYN/FIN/RST flag in the header, we can add the FIN flag */ - TCPH_SET_FLAG(last_unsent->tcphdr, TCP_FIN); - tcp_set_flags(pcb, TF_FIN); - return ERR_OK; - } - } - /* no data, no length, flags, copy=1, no optdata */ - return tcp_enqueue_flags(pcb, TCP_FIN); -} - -/** - * Enqueue SYN or FIN for transmission. - * - * Called by @ref tcp_connect, tcp_listen_input, and @ref tcp_close - * (via @ref tcp_send_fin) - * - * @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) -{ - struct pbuf *p; - struct tcp_seg *seg; - u8_t optflags = 0; - u8_t optlen = 0; - - 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)", - (flags & (TCP_SYN | TCP_FIN)) != 0); - LWIP_ASSERT("tcp_enqueue_flags: invalid pcb", pcb != NULL); - - /* 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) { - optflags = TF_SEG_OPTS_MSS; -#if LWIP_WND_SCALE - if ((pcb->state != SYN_RCVD) || (pcb->flags & TF_WND_SCALE)) { - /* In a (sent in state SYN_RCVD), the window scale option may only - be sent if we received a window scale option from the remote host. */ - optflags |= TF_SEG_OPTS_WND_SCALE; - } -#endif /* LWIP_WND_SCALE */ -#if LWIP_TCP_SACK_OUT - if ((pcb->state != SYN_RCVD) || (pcb->flags & TF_SACK)) { - /* In a (sent in state SYN_RCVD), the SACK_PERM option may only - be sent if we received a SACK_PERM option from the remote host. */ - optflags |= TF_SEG_OPTS_SACK_PERM; - } -#endif /* LWIP_TCP_SACK_OUT */ - } -#if LWIP_TCP_TIMESTAMPS - if ((pcb->flags & TF_TIMESTAMP) || ((flags & TCP_SYN) && (pcb->state != SYN_RCVD))) { - /* 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); - - /* Allocate pbuf with room for TCP header + options */ - if ((p = pbuf_alloc(PBUF_TRANSPORT, optlen, PBUF_RAM)) == NULL) { - tcp_set_flags(pcb, TF_NAGLEMEMERR); - TCP_STATS_INC(tcp.memerr); - return ERR_MEM; - } - LWIP_ASSERT("tcp_enqueue_flags: check that first pbuf can hold optlen", - (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) { - tcp_set_flags(pcb, TF_NAGLEMEMERR); - TCP_STATS_INC(tcp.memerr); - return ERR_MEM; - } - LWIP_ASSERT("seg->tcphdr not aligned", ((mem_ptr_t)seg->tcphdr % LWIP_MIN(MEM_ALIGNMENT, 4)) == 0); - LWIP_ASSERT("tcp_enqueue_flags: invalid segment length", seg->len == 0); - - LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_TRACE, - ("tcp_enqueue_flags: queueing %"U32_F":%"U32_F" (0x%"X16_F")\n", - 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) { - pcb->unsent = seg; - } else { - struct tcp_seg *useg; - for (useg = pcb->unsent; useg->next != NULL; useg = useg->next); - useg->next = seg; - } -#if TCP_OVERSIZE - /* The new unsent tail has no space */ - pcb->unsent_oversize = 0; -#endif /* TCP_OVERSIZE */ - - /* SYN and FIN bump the sequence number */ - if ((flags & TCP_SYN) || (flags & TCP_FIN)) { - pcb->snd_lbb++; - /* optlen does not influence snd_buf */ - } - if (flags & TCP_FIN) { - tcp_set_flags(pcb, TF_FIN); - } - - /* update number of segments on the queues */ - pcb->snd_queuelen += pbuf_clen(seg->p); - LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_enqueue_flags: %"S16_F" (after enqueued)\n", pcb->snd_queuelen)); - if (pcb->snd_queuelen != 0) { - LWIP_ASSERT("tcp_enqueue_flags: invalid queue length", - pcb->unacked != NULL || pcb->unsent != NULL); - } - - return ERR_OK; -} - -#if LWIP_TCP_TIMESTAMPS -/* Build a timestamp option (12 bytes long) at the specified options pointer) - * - * @param pcb tcp_pcb - * @param opts option pointer where to store the timestamp option - */ -static void -tcp_build_timestamp_option(const struct tcp_pcb *pcb, u32_t *opts) -{ - LWIP_ASSERT("tcp_build_timestamp_option: invalid pcb", pcb != NULL); - - /* Pad with two NOP options to make everything nicely aligned */ - opts[0] = PP_HTONL(0x0101080A); - opts[1] = lwip_htonl(sys_now()); - opts[2] = lwip_htonl(pcb->ts_recent); -} -#endif - -#if LWIP_TCP_SACK_OUT -/** - * Calculates the number of SACK entries that should be generated. - * It takes into account whether TF_SACK flag is set, - * the number of SACK entries in tcp_pcb that are valid, - * as well as the available options size. - * - * @param pcb tcp_pcb - * @param optlen the length of other TCP options (in bytes) - * @return the number of SACK ranges that can be used - */ -static u8_t -tcp_get_num_sacks(const struct tcp_pcb *pcb, u8_t optlen) -{ - u8_t num_sacks = 0; - - LWIP_ASSERT("tcp_get_num_sacks: invalid pcb", pcb != NULL); - - if (pcb->flags & TF_SACK) { - u8_t i; - - /* The first SACK takes up 12 bytes (it includes SACK header and two NOP options), - each additional one - 8 bytes. */ - optlen += 12; - - /* Max options size = 40, number of SACK array entries = LWIP_TCP_MAX_SACK_NUM */ - for (i = 0; (i < LWIP_TCP_MAX_SACK_NUM) && (optlen <= TCP_MAX_OPTION_BYTES) && - LWIP_TCP_SACK_VALID(pcb, i); ++i) { - ++num_sacks; - optlen += 8; - } - } - - return num_sacks; -} - -/** Build a SACK option (12 or more bytes long) at the specified options pointer) - * - * @param pcb tcp_pcb - * @param opts option pointer where to store the SACK option - * @param num_sacks the number of SACKs to store - */ -static void -tcp_build_sack_option(const struct tcp_pcb *pcb, u32_t *opts, u8_t num_sacks) -{ - u8_t i; - - LWIP_ASSERT("tcp_build_sack_option: invalid pcb", pcb != NULL); - LWIP_ASSERT("tcp_build_sack_option: invalid opts", opts != NULL); - - /* Pad with two NOP options to make everything nicely aligned. - We add the length (of just the SACK option, not the NOPs in front of it), - which is 2B of header, plus 8B for each SACK. */ - *(opts++) = PP_HTONL(0x01010500 + 2 + num_sacks * 8); - - for (i = 0; i < num_sacks; ++i) { - *(opts++) = lwip_htonl(pcb->rcv_sacks[i].left); - *(opts++) = lwip_htonl(pcb->rcv_sacks[i].right); - } -} - -#endif - -#if LWIP_WND_SCALE -/** Build a window scale option (3 bytes long) at the specified options pointer) - * - * @param opts option pointer where to store the window scale option - */ -static void -tcp_build_wnd_scale_option(u32_t *opts) -{ - LWIP_ASSERT("tcp_build_wnd_scale_option: invalid opts", opts != NULL); - - /* Pad with one NOP option to make everything nicely aligned */ - opts[0] = PP_HTONL(0x01030300 | TCP_RCV_SCALE); -} -#endif - -/** - * @ingroup tcp_raw - * Find out what we can send and send it - * - * @param pcb Protocol control block for the TCP connection to send data - * @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) -{ - struct tcp_seg *seg, *useg; - u32_t wnd, snd_nxt; - err_t err; - struct netif *netif; -#if TCP_CWND_DEBUG - s16_t i = 0; -#endif /* TCP_CWND_DEBUG */ - - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ASSERT("tcp_output: invalid pcb", pcb != NULL); - /* pcb->state LISTEN not allowed here */ - LWIP_ASSERT("don't call tcp_output for listen-pcbs", - pcb->state != LISTEN); - - /* 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) { - return ERR_OK; - } - - wnd = LWIP_MIN(pcb->snd_wnd, pcb->cwnd); - - seg = pcb->unsent; - - if (seg == NULL) { - LWIP_DEBUGF(TCP_OUTPUT_DEBUG, ("tcp_output: nothing to send (%p)\n", - (void *)pcb->unsent)); - LWIP_DEBUGF(TCP_CWND_DEBUG, ("tcp_output: snd_wnd %"TCPWNDSIZE_F - ", cwnd %"TCPWNDSIZE_F", wnd %"U32_F - ", 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) { - return tcp_send_empty_ack(pcb); - } - /* nothing to send: shortcut out of here */ - goto output_done; - } else { - LWIP_DEBUGF(TCP_CWND_DEBUG, - ("tcp_output: snd_wnd %"TCPWNDSIZE_F", cwnd %"TCPWNDSIZE_F", wnd %"U32_F - ", effwnd %"U32_F", seq %"U32_F", ack %"U32_F"\n", - 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); - if (netif == NULL) { - return ERR_RTE; - } - - /* If we don't have a local IP address, we get one from netif */ - if (ip_addr_isany(&pcb->local_ip)) { - const ip_addr_t *local_ip = ip_netif_get_local_ip(netif, &pcb->remote_ip); - if (local_ip == NULL) { - return ERR_RTE; - } - ip_addr_copy(pcb->local_ip, *local_ip); - } - - /* Handle the current segment not fitting within the window */ - if (lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len > wnd) { - /* We need to start the persistent timer when the next unsent segment does not fit - * 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) { - pcb->persist_cnt = 0; - pcb->persist_backoff = 1; - pcb->persist_probe = 0; - } - /* We need an ACK, but can't send data now, so send an empty ACK */ - if (pcb->flags & TF_ACK_NOW) { - return tcp_send_empty_ack(pcb); - } - goto output_done; - } - /* Stop persist timer, above conditions are not active */ - pcb->persist_backoff = 0; - - /* useg should point to last segment on unacked queue */ - useg = pcb->unacked; - if (useg != NULL) { - for (; useg->next != NULL; useg = useg->next); - } - /* data available and window allows it to be sent? */ - while (seg != NULL && - lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len <= wnd) { - LWIP_ASSERT("RST not expected here!", - (TCPH_FLAGS(seg->tcphdr) & TCP_RST) == 0); - /* Stop sending if the nagle algorithm would prevent it - * Don't stop: - * - 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) && - ((pcb->flags & (TF_NAGLEMEMERR | TF_FIN)) == 0)) { - break; - } -#if TCP_CWND_DEBUG - LWIP_DEBUGF(TCP_CWND_DEBUG, ("tcp_output: snd_wnd %"TCPWNDSIZE_F", cwnd %"TCPWNDSIZE_F", wnd %"U32_F", effwnd %"U32_F", seq %"U32_F", ack %"U32_F", i %"S16_F"\n", - pcb->snd_wnd, pcb->cwnd, wnd, - lwip_ntohl(seg->tcphdr->seqno) + seg->len - - pcb->lastack, - lwip_ntohl(seg->tcphdr->seqno), pcb->lastack, i)); - ++i; -#endif /* TCP_CWND_DEBUG */ - - if (pcb->state != SYN_SENT) { - TCPH_SET_FLAG(seg->tcphdr, TCP_ACK); - } - - err = tcp_output_segment(seg, pcb, netif); - if (err != ERR_OK) { - /* segment could not be sent, for whatever reason */ - tcp_set_flags(pcb, TF_NAGLEMEMERR); - return err; - } -#if TCP_OVERSIZE_DBGCHECK - seg->oversize_left = 0; -#endif /* TCP_OVERSIZE_DBGCHECK */ - pcb->unsent = seg->next; - if (pcb->state != SYN_SENT) { - tcp_clear_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW); - } - snd_nxt = lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg); - if (TCP_SEQ_LT(pcb->snd_nxt, snd_nxt)) { - pcb->snd_nxt = snd_nxt; - } - /* put segment on unacknowledged list if length > 0 */ - if (TCP_TCPLEN(seg) > 0) { - seg->next = NULL; - /* unacked list is empty? */ - if (pcb->unacked == NULL) { - pcb->unacked = seg; - useg = seg; - /* 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))) { - /* add segment to before tail of unacked list, keeping the list sorted */ - struct tcp_seg **cur_seg = &(pcb->unacked); - while (*cur_seg && - TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) { - cur_seg = &((*cur_seg)->next ); - } - seg->next = (*cur_seg); - (*cur_seg) = seg; - } else { - /* add segment to tail of unacked list */ - useg->next = seg; - useg = useg->next; - } - } - /* do not queue empty segments on the unacked list */ - } else { - tcp_seg_free(seg); - } - seg = pcb->unsent; - } -#if TCP_OVERSIZE - if (pcb->unsent == NULL) { - /* last unsent has been removed, reset unsent_oversize */ - pcb->unsent_oversize = 0; - } -#endif /* TCP_OVERSIZE */ - -output_done: - tcp_clear_flags(pcb, TF_NAGLEMEMERR); - return ERR_OK; -} - -/** Check if a segment's pbufs are used by someone else than TCP. - * This can happen on retransmission if the pbuf of this segment is still - * referenced by the netif driver due to deferred transmission. - * This is the case (only!) if someone down the TX call path called - * pbuf_ref() on one of the pbufs! - * - * @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) -{ - LWIP_ASSERT("tcp_output_segment_busy: invalid seg", seg != NULL); - - /* 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) { - /* other reference found */ - return 1; - } - /* no other references found */ - return 0; -} - -/** - * Called by tcp_output() to actually send a TCP segment over IP. - * - * @param seg the tcp_seg to send - * @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) -{ - err_t err; - u16_t len; - u32_t *opts; -#if TCP_CHECKSUM_ON_COPY - int seg_chksum_was_swapped = 0; -#endif - - LWIP_ASSERT("tcp_output_segment: invalid seg", seg != NULL); - LWIP_ASSERT("tcp_output_segment: invalid pcb", pcb != NULL); - LWIP_ASSERT("tcp_output_segment: invalid netif", netif != NULL); - - if (tcp_output_segment_busy(seg)) { - /* 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; - } - - /* The TCP header has already been constructed, but the ackno and - wnd fields remain. */ - seg->tcphdr->ackno = lwip_htonl(pcb->rcv_nxt); - - /* advertise our receive window size in this TCP segment */ -#if LWIP_WND_SCALE - if (seg->flags & TF_SEG_OPTS_WND_SCALE) { - /* The Window field in a SYN segment itself (the only type where we send - 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))); - } - - pcb->rcv_ann_right_edge = pcb->rcv_nxt + pcb->rcv_ann_wnd; - - /* 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); - if (seg->flags & TF_SEG_OPTS_MSS) { - u16_t mss; -#if TCP_CALCULATE_EFF_SEND_MSS - mss = tcp_eff_send_mss_netif(TCP_MSS, netif, &pcb->remote_ip); -#else /* TCP_CALCULATE_EFF_SEND_MSS */ - mss = TCP_MSS; -#endif /* TCP_CALCULATE_EFF_SEND_MSS */ - *opts = TCP_BUILD_MSS_OPTION(mss); - opts += 1; - } -#if LWIP_TCP_TIMESTAMPS - pcb->ts_lastacksent = pcb->rcv_nxt; - - if (seg->flags & TF_SEG_OPTS_TS) { - tcp_build_timestamp_option(pcb, opts); - opts += 3; - } -#endif -#if LWIP_WND_SCALE - if (seg->flags & TF_SEG_OPTS_WND_SCALE) { - tcp_build_wnd_scale_option(opts); - opts += 1; - } -#endif -#if LWIP_TCP_SACK_OUT - if (seg->flags & TF_SEG_OPTS_SACK_PERM) { - /* Pad with two NOP options to make everything nicely aligned - * NOTE: When we send both timestamp and SACK_PERM options, - * we could use the first two NOPs before the timestamp to store SACK_PERM option, - * but that would complicate the code. - */ - *(opts++) = PP_HTONL(0x01010402); - } -#endif - - /* Set retransmission timer running if it is not currently enabled - This must be set before checking the route. */ - if (pcb->rtime < 0) { - pcb->rtime = 0; - } - - if (pcb->rttest == 0) { - pcb->rttest = tcp_ticks; - pcb->rtseq = lwip_ntohl(seg->tcphdr->seqno); - - LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_output_segment: rtseq %"U32_F"\n", pcb->rtseq)); - } - 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); - if (len == 0) { - /** Exclude retransmitted segments from this count. */ - MIB2_STATS_INC(mib2.tcpoutsegs); - } - - seg->p->len -= len; - seg->p->tot_len -= len; - - seg->p->payload = seg->tcphdr; - - seg->tcphdr->chksum = 0; - -#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)); - -#if CHECKSUM_GEN_TCP - IF__NETIF_CHECKSUM_ENABLED(netif, NETIF_CHECKSUM_GEN_TCP) { -#if TCP_CHECKSUM_ON_COPY - u32_t acc; -#if TCP_CHECKSUM_ON_COPY_SANITY_CHECK - u16_t chksum_slow = ip_chksum_pseudo(seg->p, IP_PROTO_TCP, - seg->p->tot_len, &pcb->local_ip, &pcb->remote_ip); -#endif /* TCP_CHECKSUM_ON_COPY_SANITY_CHECK */ - if ((seg->flags & TF_SEG_DATA_CHECKSUMMED) == 0) { - LWIP_ASSERT("data included but not checksummed", - seg->p->tot_len == TCPH_HDRLEN_BYTES(seg->tcphdr)); - } - - /* rebuild TCP header checksum (TCP header changes for retransmissions!) */ - acc = ip_chksum_pseudo_partial(seg->p, IP_PROTO_TCP, - seg->p->tot_len, TCPH_HDRLEN_BYTES(seg->tcphdr), &pcb->local_ip, &pcb->remote_ip); - /* add payload checksum */ - if (seg->chksum_swapped) { - seg_chksum_was_swapped = 1; - seg->chksum = SWAP_BYTES_IN_WORD(seg->chksum); - seg->chksum_swapped = 0; - } - acc = (u16_t)~acc + seg->chksum; - seg->tcphdr->chksum = (u16_t)~FOLD_U32T(acc); -#if TCP_CHECKSUM_ON_COPY_SANITY_CHECK - if (chksum_slow != seg->tcphdr->chksum) { - TCP_CHECKSUM_ON_COPY_SANITY_CHECK_FAIL( - ("tcp_output_segment: calculated checksum is %"X16_F" instead of %"X16_F"\n", - seg->tcphdr->chksum, chksum_slow)); - seg->tcphdr->chksum = chksum_slow; - } -#endif /* TCP_CHECKSUM_ON_COPY_SANITY_CHECK */ -#else /* TCP_CHECKSUM_ON_COPY */ - seg->tcphdr->chksum = ip_chksum_pseudo(seg->p, IP_PROTO_TCP, - seg->p->tot_len, &pcb->local_ip, &pcb->remote_ip); -#endif /* TCP_CHECKSUM_ON_COPY */ - } -#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, - pcb->tos, IP_PROTO_TCP, netif); - NETIF_RESET_HINTS(netif); - -#if TCP_CHECKSUM_ON_COPY - if (seg_chksum_was_swapped) { - /* if data is added to this segment later, chksum needs to be swapped, - so restore this now */ - seg->chksum = SWAP_BYTES_IN_WORD(seg->chksum); - seg->chksum_swapped = 1; - } -#endif - - return err; -} - -/** - * Requeue all unacked segments for retransmission - * - * Called by tcp_slowtmr() for slow retransmission. - * - * @param pcb the tcp_pcb for which to re-enqueue all unacked segments - */ -err_t -tcp_rexmit_rto_prepare(struct tcp_pcb *pcb) -{ - struct tcp_seg *seg; - - LWIP_ASSERT("tcp_rexmit_rto_prepare: invalid pcb", pcb != NULL); - - if (pcb->unacked == NULL) { - return ERR_VAL; - } - - /* 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) { - if (tcp_output_segment_busy(seg)) { - LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_rexmit_rto: segment busy\n")); - return ERR_VAL; - } - } - if (tcp_output_segment_busy(seg)) { - LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_rexmit_rto: segment busy\n")); - return ERR_VAL; - } - /* concatenate unsent queue after unacked queue */ - seg->next = pcb->unsent; -#if TCP_OVERSIZE_DBGCHECK - /* if last unsent changed, we need to update unsent_oversize */ - 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; - /* unacked queue is now empty */ - pcb->unacked = NULL; - - /* Mark RTO in-progress */ - tcp_set_flags(pcb, TF_RTO); - /* Record the next byte following retransmit */ - pcb->rto_end = lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg); - /* Don't take any RTT measurements after retransmitting. */ - pcb->rttest = 0; - - return ERR_OK; -} - -/** - * Requeue all unacked segments for retransmission - * - * Called by tcp_slowtmr() for slow retransmission. - * - * @param pcb the tcp_pcb for which to re-enqueue all unacked segments - */ -void -tcp_rexmit_rto_commit(struct tcp_pcb *pcb) -{ - LWIP_ASSERT("tcp_rexmit_rto_commit: invalid pcb", pcb != NULL); - - /* increment number of retransmissions */ - if (pcb->nrtx < 0xFF) { - ++pcb->nrtx; - } - /* Do the actual retransmission */ - tcp_output(pcb); -} - -/** - * Requeue all unacked segments for retransmission - * - * Called by tcp_process() only, tcp_slowtmr() needs to do some things between - * "prepare" and "commit". - * - * @param pcb the tcp_pcb for which to re-enqueue all unacked segments - */ -void -tcp_rexmit_rto(struct tcp_pcb *pcb) -{ - LWIP_ASSERT("tcp_rexmit_rto: invalid pcb", pcb != NULL); - - if (tcp_rexmit_rto_prepare(pcb) == ERR_OK) { - tcp_rexmit_rto_commit(pcb); - } -} - -/** - * Requeue the first unacked segment for retransmission - * - * Called by tcp_receive() for fast retransmit. - * - * @param pcb the tcp_pcb for which to retransmit the first unacked segment - */ -err_t -tcp_rexmit(struct tcp_pcb *pcb) -{ - struct tcp_seg *seg; - struct tcp_seg **cur_seg; - - LWIP_ASSERT("tcp_rexmit: invalid pcb", pcb != NULL); - - if (pcb->unacked == NULL) { - return ERR_VAL; - } - - seg = pcb->unacked; - - /* Give up if the segment is still referenced by the netif driver - due to deferred transmission. */ - if (tcp_output_segment_busy(seg)) { - LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_rexmit busy\n")); - return ERR_VAL; - } - - /* Move the first unacked segment to the unsent queue */ - /* Keep the unsent queue sorted. */ - pcb->unacked = seg->next; - - cur_seg = &(pcb->unsent); - while (*cur_seg && - TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) { - cur_seg = &((*cur_seg)->next ); - } - seg->next = *cur_seg; - *cur_seg = seg; -#if TCP_OVERSIZE - if (seg->next == NULL) { - /* the retransmitted segment is last in unsent, so reset unsent_oversize */ - pcb->unsent_oversize = 0; - } -#endif /* TCP_OVERSIZE */ - - if (pcb->nrtx < 0xFF) { - ++pcb->nrtx; - } - - /* Don't take any rtt measurements after retransmitting. */ - pcb->rttest = 0; - - /* 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; -} - - -/** - * Handle retransmission after three dupacks received - * - * @param pcb the tcp_pcb for which to retransmit the first unacked segment - */ -void -tcp_rexmit_fast(struct tcp_pcb *pcb) -{ - LWIP_ASSERT("tcp_rexmit_fast: invalid pcb", pcb != NULL); - - if (pcb->unacked != NULL && !(pcb->flags & TF_INFR)) { - /* This is fast retransmit. Retransmit the first unacked segment. */ - 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) { - /* 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; - - /* The minimum value for ssthresh should be 2 MSS */ - if (pcb->ssthresh < (2U * pcb->mss)) { - 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; - } - - pcb->cwnd = pcb->ssthresh + 3 * pcb->mss; - tcp_set_flags(pcb, TF_INFR); - - /* Reset the retransmission timer to prevent immediate rto retransmissions */ - pcb->rtime = 0; - } - } -} - -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) -{ - struct tcp_hdr *tcphdr; - struct pbuf *p; - - p = pbuf_alloc(PBUF_IP, TCP_HLEN + optlen + datalen, PBUF_RAM); - if (p != NULL) { - LWIP_ASSERT("check that first pbuf can hold struct tcp_hdr", - (p->len >= TCP_HLEN + optlen)); - tcphdr = (struct tcp_hdr *)p->payload; - tcphdr->src = lwip_htons(src_port); - tcphdr->dest = lwip_htons(dst_port); - tcphdr->seqno = seqno_be; - tcphdr->ackno = lwip_htonl(ackno); - TCPH_HDRLEN_FLAGS_SET(tcphdr, (5 + optlen / 4), flags); - tcphdr->wnd = lwip_htons(wnd); - tcphdr->chksum = 0; - tcphdr->urgp = 0; - } - return p; -} - -/** Allocate a pbuf and create a tcphdr at p->payload, used for output - * functions other than the default tcp_output -> tcp_output_segment - * (e.g. tcp_send_empty_ack, etc.) - * - * @param pcb tcp pcb for which to send a packet (used to initialize tcp_hdr) - * @param optlen length of header-options - * @param datalen length of tcp data to reserve in pbuf - * @param seqno_be seqno in network byte order (big-endian) - * @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 */) -{ - struct pbuf *p; - - LWIP_ASSERT("tcp_output_alloc_header: invalid pcb", pcb != NULL); - - p = tcp_output_alloc_header_common(pcb->rcv_nxt, optlen, datalen, - seqno_be, pcb->local_port, pcb->remote_port, TCP_ACK, - TCPWND_MIN16(RCV_WND_SCALE(pcb, pcb->rcv_ann_wnd))); - if (p != NULL) { - /* If we're sending a packet, update the announced right window edge */ - pcb->rcv_ann_right_edge = pcb->rcv_nxt + pcb->rcv_ann_wnd; - } - return p; -} - -/* 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) -{ - struct tcp_hdr *tcphdr; - u32_t *opts; - u16_t sacks_len = 0; - - LWIP_ASSERT("tcp_output_fill_options: invalid pbuf", p != NULL); - - tcphdr = (struct tcp_hdr *)p->payload; - opts = (u32_t *)(void *)(tcphdr + 1); - - /* NB. MSS and window scale options are only sent on SYNs, so ignore them here */ - -#if LWIP_TCP_TIMESTAMPS - if (optflags & TF_SEG_OPTS_TS) { - tcp_build_timestamp_option(pcb, opts); - opts += 3; - } -#endif - -#if LWIP_TCP_SACK_OUT - if (pcb && (num_sacks > 0)) { - tcp_build_sack_option(pcb, opts, num_sacks); - /* 1 word for SACKs header (including 2xNOP), and 2 words for each SACK */ - sacks_len = 1 + num_sacks * 2; - opts += sacks_len; - } -#else - LWIP_UNUSED_ARG(num_sacks); -#endif - -#ifdef LWIP_HOOK_TCP_OUT_ADD_TCPOPTS - 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)); - LWIP_UNUSED_ARG(optflags); /* for LWIP_NOASSERT */ - LWIP_UNUSED_ARG(opts); /* for LWIP_NOASSERT */ -} - -/** Output a control segment pbuf to IP. - * - * Called from tcp_rst, tcp_send_empty_ack, tcp_keepalive and tcp_zero_window_probe, - * this function combines selecting a netif for transmission, generating the tcp - * 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) -{ - err_t err; - struct netif *netif; - - LWIP_ASSERT("tcp_output_control_segment: invalid pbuf", p != NULL); - - netif = tcp_route(pcb, src, dst); - if (netif == NULL) { - err = ERR_RTE; - } else { - u8_t ttl, tos; -#if CHECKSUM_GEN_TCP - IF__NETIF_CHECKSUM_ENABLED(netif, NETIF_CHECKSUM_GEN_TCP) { - 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) { - NETIF_SET_HINTS(netif, LWIP_CONST_CAST(struct netif_hint*, &(pcb->netif_hints))); - ttl = pcb->ttl; - tos = pcb->tos; - } else { - /* Send output with hardcoded TTL/HL since we have no access to the pcb */ - ttl = TCP_TTL; - tos = 0; - } - TCP_STATS_INC(tcp.xmit); - err = ip_output_if(p, src, dst, ttl, tos, IP_PROTO_TCP, netif); - NETIF_RESET_HINTS(netif); - } - pbuf_free(p); - return err; -} - -/** - * Send a TCP RESET packet (empty segment with RST flag set) either to - * abort a connection or to show that there is no matching local connection - * for a received segment. - * - * Called by tcp_abort() (to abort a local connection), tcp_input() (if no - * matching local pcb was found), tcp_listen_input() (if incoming segment - * has ACK flag set) and tcp_process() (received segment in the wrong state) - * - * Since a RST segment is in most cases not sent for an active connection, - * tcp_rst() has a number of arguments that are taken from a tcp_pcb for - * most other segment output functions. - * - * @param pcb TCP pcb (may be NULL if no pcb is available) - * @param seqno the sequence number to use for the outgoing segment - * @param ackno the acknowledge number to use for the outgoing segment - * @param local_ip the local IP address to send the segment from - * @param remote_ip the remote IP address to send the segment to - * @param local_port the local TCP port to send the segment from - * @param remote_port the remote TCP port to send the segment to - */ -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) -{ - struct pbuf *p; - u16_t wnd; - u8_t optlen; - - LWIP_ASSERT("tcp_rst: invalid local_ip", local_ip != NULL); - LWIP_ASSERT("tcp_rst: invalid remote_ip", remote_ip != NULL); - - optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb); - -#if LWIP_WND_SCALE - wnd = PP_HTONS(((TCP_WND >> TCP_RCV_SCALE) & 0xFFFF)); -#else - wnd = PP_HTONS(TCP_WND); -#endif - - p = tcp_output_alloc_header_common(ackno, optlen, 0, lwip_htonl(seqno), local_port, - remote_port, TCP_RST | TCP_ACK, wnd); - if (p == NULL) { - LWIP_DEBUGF(TCP_DEBUG, ("tcp_rst: could not allocate memory for pbuf\n")); - return; - } - tcp_output_fill_options(pcb, p, 0, optlen); - - MIB2_STATS_INC(mib2.tcpoutrsts); - - tcp_output_control_segment(pcb, p, local_ip, remote_ip); - LWIP_DEBUGF(TCP_RST_DEBUG, ("tcp_rst: seqno %"U32_F" ackno %"U32_F".\n", seqno, ackno)); -} - -/** - * Send an ACK without data. - * - * @param pcb Protocol control block for the TCP connection to send the ACK - */ -err_t -tcp_send_empty_ack(struct tcp_pcb *pcb) -{ - err_t err; - struct pbuf *p; - u8_t optlen, optflags = 0; - u8_t num_sacks = 0; - - LWIP_ASSERT("tcp_send_empty_ack: invalid pcb", pcb != NULL); - -#if LWIP_TCP_TIMESTAMPS - if (pcb->flags & TF_TIMESTAMP) { - optflags = TF_SEG_OPTS_TS; - } -#endif - optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb); - -#if LWIP_TCP_SACK_OUT - /* For now, SACKs are only sent with empty ACKs */ - 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)); - if (p == NULL) { - /* let tcp_fasttmr retry sending this ACK */ - tcp_set_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW); - LWIP_DEBUGF(TCP_OUTPUT_DEBUG, ("tcp_output: (ACK) could not allocate pbuf\n")); - return ERR_BUF; - } - tcp_output_fill_options(pcb, p, optflags, num_sacks); - -#if LWIP_TCP_TIMESTAMPS - 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); - if (err != ERR_OK) { - /* let tcp_fasttmr retry sending this ACK */ - tcp_set_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW); - } else { - /* remove ACK flags from the PCB, as we sent an empty ACK now */ - tcp_clear_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW); - } - - return err; -} - -/** - * Send keepalive packets to keep a connection active although - * no data is sent over it. - * - * Called by tcp_slowtmr() - * - * @param pcb the tcp_pcb for which to send a keepalive packet - */ -err_t -tcp_keepalive(struct tcp_pcb *pcb) -{ - err_t err; - struct pbuf *p; - u8_t optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb); - - LWIP_ASSERT("tcp_keepalive: invalid pcb", pcb != NULL); - - LWIP_DEBUGF(TCP_DEBUG, ("tcp_keepalive: sending KEEPALIVE probe to ")); - ip_addr_debug_print_val(TCP_DEBUG, pcb->remote_ip); - 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)); - if (p == NULL) { - LWIP_DEBUGF(TCP_DEBUG, - ("tcp_keepalive: could not allocate memory for pbuf\n")); - return ERR_MEM; - } - tcp_output_fill_options(pcb, p, 0, optlen); - err = tcp_output_control_segment(pcb, p, &pcb->local_ip, &pcb->remote_ip); - - 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; -} - -/** - * Send persist timer zero-window probes to keep a connection active - * when a window update is lost. - * - * Called by tcp_slowtmr() - * - * @param pcb the tcp_pcb for which to send a zero-window probe packet - */ -err_t -tcp_zero_window_probe(struct tcp_pcb *pcb) -{ - err_t err; - struct pbuf *p; - 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); - - LWIP_ASSERT("tcp_zero_window_probe: invalid pcb", pcb != NULL); - - LWIP_DEBUGF(TCP_DEBUG, ("tcp_zero_window_probe: sending ZERO WINDOW probe to ")); - ip_addr_debug_print_val(TCP_DEBUG, pcb->remote_ip); - LWIP_DEBUGF(TCP_DEBUG, ("\n")); - - LWIP_DEBUGF(TCP_DEBUG, - ("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; - if (seg == NULL) { - /* Not expected, persist timer should be off when the send buffer is empty */ - return ERR_OK; - } - - /* 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) { - ++pcb->persist_probe; - } - - is_fin = ((TCPH_FLAGS(seg->tcphdr) & TCP_FIN) != 0) && (seg->len == 0); - /* we want to send one seqno: either FIN or data (no options) */ - len = is_fin ? 0 : 1; - - p = tcp_output_alloc_header(pcb, optlen, len, seg->tcphdr->seqno); - if (p == NULL) { - LWIP_DEBUGF(TCP_DEBUG, ("tcp_zero_window_probe: no memory for pbuf\n")); - return ERR_MEM; - } - tcphdr = (struct tcp_hdr *)p->payload; - - if (is_fin) { - /* FIN segment, no data */ - TCPH_FLAGS_SET(tcphdr, TCP_ACK | TCP_FIN); - } else { - /* Data segment, copy in one byte from the head of the unacked queue */ - char *d = ((char *)p->payload + TCP_HLEN); - /* 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); - } - - /* The byte may be acknowledged without the window being opened. */ - snd_nxt = lwip_ntohl(seg->tcphdr->seqno) + 1; - if (TCP_SEQ_LT(pcb->snd_nxt, snd_nxt)) { - pcb->snd_nxt = snd_nxt; - } - tcp_output_fill_options(pcb, p, 0, optlen); - - err = tcp_output_control_segment(pcb, p, &pcb->local_ip, &pcb->remote_ip); - - 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; -} -#endif /* LWIP_TCP */ diff --git a/Middlewares/Third_Party/LwIP/src/core/timeouts.c b/Middlewares/Third_Party/LwIP/src/core/timeouts.c deleted file mode 100644 index f37acfe..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/timeouts.c +++ /dev/null @@ -1,451 +0,0 @@ -/** - * @file - * Stack-internal timers implementation. - * This file includes timer callbacks for stack-internal timers as well as - * functions to set up or stop timers and check for expired timers. - * - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * Simon Goldschmidt - * - */ - -#include "lwip/opt.h" - -#include "lwip/timeouts.h" -#include "lwip/priv/tcp_priv.h" - -#include "lwip/def.h" -#include "lwip/memp.h" -#include "lwip/priv/tcpip_priv.h" - -#include "lwip/ip4_frag.h" -#include "lwip/etharp.h" -#include "lwip/dhcp.h" -#include "lwip/autoip.h" -#include "lwip/igmp.h" -#include "lwip/dns.h" -#include "lwip/nd6.h" -#include "lwip/ip6_frag.h" -#include "lwip/mld6.h" -#include "lwip/dhcp6.h" -#include "lwip/sys.h" -#include "lwip/pbuf.h" - -#if LWIP_DEBUG_TIMERNAMES -#define HANDLER(x) x, #x -#else /* LWIP_DEBUG_TIMERNAMES */ -#define HANDLER(x) x -#endif /* LWIP_DEBUG_TIMERNAMES */ - -#define LWIP_MAX_TIMEOUT 0x7fffffff - -/* Check if timer's expiry time is greater than time and care about u32_t wraparounds */ -#define TIME_LESS_THAN(t, compare_to) ( (((u32_t)((t)-(compare_to))) > LWIP_MAX_TIMEOUT) ? 1 : 0 ) - -/** This array contains all stack-internal cyclic timers. To get the number of - * timers, use LWIP_ARRAYSIZE() */ -const struct lwip_cyclic_timer lwip_cyclic_timers[] = { -#if LWIP_TCP - /* The TCP timer is a special case: it does not have to run always and - is triggered to start from TCP using tcp_timer_needed() */ - {TCP_TMR_INTERVAL, HANDLER(tcp_tmr)}, -#endif /* LWIP_TCP */ -#if LWIP_IPV4 -#if IP_REASSEMBLY - {IP_TMR_INTERVAL, HANDLER(ip_reass_tmr)}, -#endif /* IP_REASSEMBLY */ -#if LWIP_ARP - {ARP_TMR_INTERVAL, HANDLER(etharp_tmr)}, -#endif /* LWIP_ARP */ -#if LWIP_DHCP - {DHCP_COARSE_TIMER_MSECS, HANDLER(dhcp_coarse_tmr)}, - {DHCP_FINE_TIMER_MSECS, HANDLER(dhcp_fine_tmr)}, -#endif /* LWIP_DHCP */ -#if LWIP_AUTOIP - {AUTOIP_TMR_INTERVAL, HANDLER(autoip_tmr)}, -#endif /* LWIP_AUTOIP */ -#if LWIP_IGMP - {IGMP_TMR_INTERVAL, HANDLER(igmp_tmr)}, -#endif /* LWIP_IGMP */ -#endif /* LWIP_IPV4 */ -#if LWIP_DNS - {DNS_TMR_INTERVAL, HANDLER(dns_tmr)}, -#endif /* LWIP_DNS */ -#if LWIP_IPV6 - {ND6_TMR_INTERVAL, HANDLER(nd6_tmr)}, -#if LWIP_IPV6_REASS - {IP6_REASS_TMR_INTERVAL, HANDLER(ip6_reass_tmr)}, -#endif /* LWIP_IPV6_REASS */ -#if LWIP_IPV6_MLD - {MLD6_TMR_INTERVAL, HANDLER(mld6_tmr)}, -#endif /* LWIP_IPV6_MLD */ -#if LWIP_IPV6_DHCP6 - {DHCP6_TIMER_MSECS, HANDLER(dhcp6_tmr)}, -#endif /* LWIP_IPV6_DHCP6 */ -#endif /* LWIP_IPV6 */ -}; -const int lwip_num_cyclic_timers = LWIP_ARRAYSIZE(lwip_cyclic_timers); - -#if LWIP_TIMERS && !LWIP_TIMERS_CUSTOM - -/** The one and only timeout list */ -static struct sys_timeo *next_timeout; - -static u32_t current_timeout_due_time; - -#if LWIP_TESTMODE -struct sys_timeo** -sys_timeouts_get_next_timeout(void) -{ - return &next_timeout; -} -#endif - -#if LWIP_TCP -/** global variable that shows if the tcp timer is currently scheduled or not */ -static int tcpip_tcp_timer_active; - -/** - * Timer callback function that calls tcp_tmr() and reschedules itself. - * - * @param arg unused argument - */ -static void -tcpip_tcp_timer(void *arg) -{ - LWIP_UNUSED_ARG(arg); - - /* call TCP timer handler */ - tcp_tmr(); - /* timer still needed? */ - if (tcp_active_pcbs || tcp_tw_pcbs) { - /* restart timer */ - sys_timeout(TCP_TMR_INTERVAL, tcpip_tcp_timer, NULL); - } else { - /* disable timer */ - tcpip_tcp_timer_active = 0; - } -} - -/** - * Called from TCP_REG when registering a new PCB: - * the reason is to have the TCP timer only running when - * there are active (or time-wait) PCBs. - */ -void -tcp_timer_needed(void) -{ - LWIP_ASSERT_CORE_LOCKED(); - - /* timer is off but needed again? */ - if (!tcpip_tcp_timer_active && (tcp_active_pcbs || tcp_tw_pcbs)) { - /* enable and start timer */ - tcpip_tcp_timer_active = 1; - sys_timeout(TCP_TMR_INTERVAL, tcpip_tcp_timer, NULL); - } -} -#endif /* LWIP_TCP */ - -static void -#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 -{ - struct sys_timeo *timeout, *t; - - timeout = (struct sys_timeo *)memp_malloc(MEMP_SYS_TIMEOUT); - if (timeout == NULL) { - LWIP_ASSERT("sys_timeout: timeout != NULL, pool MEMP_SYS_TIMEOUT is empty", timeout != NULL); - return; - } - - timeout->next = NULL; - timeout->h = handler; - timeout->arg = arg; - timeout->time = abs_time; - -#if LWIP_DEBUG_TIMERNAMES - 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) { - next_timeout = timeout; - return; - } - if (TIME_LESS_THAN(timeout->time, next_timeout->time)) { - timeout->next = next_timeout; - next_timeout = timeout; - } else { - for (t = next_timeout; t != NULL; t = t->next) { - if ((t->next == NULL) || TIME_LESS_THAN(timeout->time, t->next->time)) { - timeout->next = t->next; - t->next = timeout; - break; - } - } - } -} - -/** - * Timer callback function that calls cyclic->handler() and reschedules itself. - * - * @param arg unused argument - */ -#if !LWIP_TESTMODE -static -#endif -void -lwip_cyclic_timer(void *arg) -{ - u32_t now; - u32_t next_timeout_time; - const struct lwip_cyclic_timer *cyclic = (const struct lwip_cyclic_timer *)arg; - -#if LWIP_DEBUG_TIMERNAMES - LWIP_DEBUGF(TIMERS_DEBUG, ("tcpip: %s()\n", cyclic->handler_name)); -#endif - cyclic->handler(); - - now = sys_now(); - next_timeout_time = (u32_t)(current_timeout_due_time + cyclic->interval_ms); /* overflow handled by TIME_LESS_THAN macro */ - if (TIME_LESS_THAN(next_timeout_time, now)) { - /* 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); -#endif - - } else { - /* correct cyclic interval with handler execution delay and sys_check_timeouts jitter */ -#if LWIP_DEBUG_TIMERNAMES - 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 - } -} - -/** Initialize this module */ -void sys_timeouts_init(void) -{ - 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++) { - /* 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])); - } -} - -/** - * Create a one-shot timer (aka timeout). Timeouts are processed in the - * following cases: - * - while waiting for a message using sys_timeouts_mbox_fetch() - * - by calling sys_check_timeouts() (NO_SYS==1 only) - * - * @param msecs time in milliseconds after that the timer should expire - * @param handler callback function to call when msecs have elapsed - * @param arg argument to pass to the callback function - */ -#if LWIP_DEBUG_TIMERNAMES -void -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 */ -{ - 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)); - - next_timeout_time = (u32_t)(sys_now() + msecs); /* overflow handled by TIME_LESS_THAN macro */ - -#if LWIP_DEBUG_TIMERNAMES - sys_timeout_abs(next_timeout_time, handler, arg, handler_name); -#else - sys_timeout_abs(next_timeout_time, handler, arg); -#endif -} - -/** - * Go through timeout list (for this task only) and remove the first matching - * entry (subsequent entries remain untouched), even though the timeout has not - * triggered yet. - * - * @param handler callback function that would be called by the timeout - * @param arg callback argument that would be passed to handler -*/ -void -sys_untimeout(sys_timeout_handler handler, void *arg) -{ - struct sys_timeo *prev_t, *t; - - LWIP_ASSERT_CORE_LOCKED(); - - if (next_timeout == NULL) { - return; - } - - for (t = next_timeout, prev_t = NULL; t != NULL; prev_t = t, t = t->next) { - if ((t->h == handler) && (t->arg == arg)) { - /* We have a match */ - /* Unlink from previous in list */ - if (prev_t == NULL) { - next_timeout = t->next; - } else { - prev_t->next = t->next; - } - memp_free(MEMP_SYS_TIMEOUT, t); - return; - } - } - return; -} - -/** - * @ingroup lwip_nosys - * Handle timeouts for NO_SYS==1 (i.e. without using - * tcpip_thread/sys_timeouts_mbox_fetch(). Uses sys_now() to call timeout - * handler functions when timeouts expire. - * - * Must be called periodically from your main loop. - */ -void -sys_check_timeouts(void) -{ - u32_t now; - - LWIP_ASSERT_CORE_LOCKED(); - - /* Process only timers expired at the start of the function. */ - now = sys_now(); - - do { - struct sys_timeo *tmptimeout; - sys_timeout_handler handler; - void *arg; - - PBUF_CHECK_FREE_OOSEQ(); - - tmptimeout = next_timeout; - if (tmptimeout == NULL) { - return; - } - - if (TIME_LESS_THAN(now, tmptimeout->time)) { - return; - } - - /* Timeout has expired */ - next_timeout = tmptimeout->next; - handler = tmptimeout->h; - arg = tmptimeout->arg; - current_timeout_due_time = tmptimeout->time; -#if LWIP_DEBUG_TIMERNAMES - 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); - if (handler != NULL) { - handler(arg); - } - LWIP_TCPIP_THREAD_ALIVE(); - - /* Repeat until all expired timers have been called */ - } while (1); -} - -/** Rebase the timeout times to the current time. - * This is necessary if sys_check_timeouts() hasn't been called for a long - * time (e.g. while saving energy) to prevent all timer functions of that - * period being called. - */ -void -sys_restart_timeouts(void) -{ - u32_t now; - u32_t base; - struct sys_timeo *t; - - if (next_timeout == NULL) { - return; - } - - now = sys_now(); - base = next_timeout->time; - - for (t = next_timeout; t != NULL; t = t->next) { - t->time = (t->time - base) + now; - } -} - -/** Return the time left before the next timeout is due. If no timeouts are - * enqueued, returns 0xffffffff - */ -u32_t -sys_timeouts_sleeptime(void) -{ - u32_t now; - - LWIP_ASSERT_CORE_LOCKED(); - - if (next_timeout == NULL) { - return SYS_TIMEOUTS_SLEEPTIME_INFINITE; - } - now = sys_now(); - if (TIME_LESS_THAN(next_timeout->time, now)) { - return 0; - } else { - u32_t ret = (u32_t)(next_timeout->time - now); - LWIP_ASSERT("invalid sleeptime", ret <= LWIP_MAX_TIMEOUT); - return ret; - } -} - -#else /* LWIP_TIMERS && !LWIP_TIMERS_CUSTOM */ -/* Satisfy the TCP code which calls this function */ -void -tcp_timer_needed(void) -{ -} -#endif /* LWIP_TIMERS && !LWIP_TIMERS_CUSTOM */ diff --git a/Middlewares/Third_Party/LwIP/src/core/udp.c b/Middlewares/Third_Party/LwIP/src/core/udp.c deleted file mode 100644 index 9d2cb4a..0000000 --- a/Middlewares/Third_Party/LwIP/src/core/udp.c +++ /dev/null @@ -1,1314 +0,0 @@ -/** - * @file - * User Datagram Protocol module\n - * The code for the User Datagram Protocol UDP & UDPLite (RFC 3828).\n - * See also @ref udp_raw - * - * @defgroup udp_raw UDP - * @ingroup callbackstyle_api - * User Datagram Protocol module\n - * @see @ref api - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -/* @todo Check the use of '(struct udp_pcb).chksum_len_rx'! - */ - -#include "lwip/opt.h" - -#if LWIP_UDP /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/udp.h" -#include "lwip/def.h" -#include "lwip/memp.h" -#include "lwip/inet_chksum.h" -#include "lwip/ip_addr.h" -#include "lwip/ip6.h" -#include "lwip/ip6_addr.h" -#include "lwip/netif.h" -#include "lwip/icmp.h" -#include "lwip/icmp6.h" -#include "lwip/stats.h" -#include "lwip/snmp.h" -#include "lwip/dhcp.h" - -#include - -#ifndef UDP_LOCAL_PORT_RANGE_START -/* From http://www.iana.org/assignments/port-numbers: - "The Dynamic and/or Private Ports are those from 49152 through 65535" */ -#define UDP_LOCAL_PORT_RANGE_START 0xc000 -#define UDP_LOCAL_PORT_RANGE_END 0xffff -#define UDP_ENSURE_LOCAL_PORT_RANGE(port) ((u16_t)(((port) & (u16_t)~UDP_LOCAL_PORT_RANGE_START) + UDP_LOCAL_PORT_RANGE_START)) -#endif - -/* last local UDP port */ -static u16_t udp_port = UDP_LOCAL_PORT_RANGE_START; - -/* The list of UDP PCBs */ -/* exported in udp.h (was static) */ -struct udp_pcb *udp_pcbs; - -/** - * Initialize this module. - */ -void -udp_init(void) -{ -#ifdef LWIP_RAND - udp_port = UDP_ENSURE_LOCAL_PORT_RANGE(LWIP_RAND()); -#endif /* LWIP_RAND */ -} - -/** - * Allocate a new local UDP port. - * - * @return a new (free) local UDP port number - */ -static u16_t -udp_new_port(void) -{ - u16_t n = 0; - struct udp_pcb *pcb; - -again: - if (udp_port++ == UDP_LOCAL_PORT_RANGE_END) { - udp_port = UDP_LOCAL_PORT_RANGE_START; - } - /* Check all PCBs. */ - for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) { - if (pcb->local_port == udp_port) { - if (++n > (UDP_LOCAL_PORT_RANGE_END - UDP_LOCAL_PORT_RANGE_START)) { - return 0; - } - goto again; - } - } - return udp_port; -} - -/** Common code to see if the current input packet matches the pcb - * (current input packet is accessed via ip(4/6)_current_* macros) - * - * @param pcb pcb to check - * @param inp network interface on which the datagram was received (only used for IPv4) - * @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) -{ - 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); - LWIP_ASSERT("udp_input_local_match: invalid netif", inp != NULL); - - /* check if PCB is bound to specific netif */ - if ((pcb->netif_idx != NETIF_NO_INDEX) && - (pcb->netif_idx != netif_get_index(ip_data.current_input_netif))) { - return 0; - } - - /* Dual-stack: PCBs listening to any IP type also listen to any IP address */ - if (IP_IS_ANY_TYPE_VAL(pcb->local_ip)) { -#if LWIP_IPV4 && IP_SOF_BROADCAST_RECV - if ((broadcast != 0) && !ip_get_option(pcb, SOF_BROADCAST)) { - return 0; - } -#endif /* LWIP_IPV4 && IP_SOF_BROADCAST_RECV */ - return 1; - } - - /* 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) { -#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)) || - ((ip4_current_dest_addr()->addr == IPADDR_BROADCAST)) || - ip4_addr_netcmp(ip_2_ip4(&pcb->local_ip), ip4_current_dest_addr(), netif_ip4_netmask(inp))) { - return 1; - } - } - } 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())) { - return 1; - } - } - - return 0; -} - -/** - * Process an incoming UDP datagram. - * - * Given an incoming UDP datagram (as a chain of pbufs) this function - * finds a corresponding UDP PCB and hands over the pbuf to the pcbs - * recv function. If no pcb is found or the datagram is incorrect, the - * pbuf is freed. - * - * @param p pbuf to be demultiplexed to a UDP PCB (p->payload pointing to the UDP header) - * @param inp network interface on which the datagram was received. - * - */ -void -udp_input(struct pbuf *p, struct netif *inp) -{ - 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; - - LWIP_UNUSED_ARG(inp); - - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ASSERT("udp_input: invalid pbuf", p != NULL); - LWIP_ASSERT("udp_input: invalid netif", inp != NULL); - - PERF_START; - - UDP_STATS_INC(udp.recv); - - /* Check minimum length (UDP header) */ - if (p->len < UDP_HLEN) { - /* drop short packets */ - 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); - goto end; - } - - udphdr = (struct udp_hdr *)p->payload; - - /* is broadcast packet ? */ - broadcast = ip_addr_isbroadcast(ip_current_dest_addr(), ip_current_netif()); - - 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); - dest = lwip_ntohs(udphdr->dest); - - udp_debug_print(udphdr); - - /* print the UDP source and destination */ - LWIP_DEBUGF(UDP_DEBUG, ("udp (")); - 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; - prev = NULL; - uncon_pcb = NULL; - /* 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) { - /* print the PCB local and remote address */ - LWIP_DEBUGF(UDP_DEBUG, ("pcb (")); - ip_addr_debug_print_val(UDP_DEBUG, pcb->local_ip); - 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) && - (udp_input_local_match(pcb, inp, broadcast) != 0)) { - if ((pcb->flags & UDP_FLAGS_CONNECTED) == 0) { - if (uncon_pcb == NULL) { - /* the first unconnected matching PCB */ - uncon_pcb = pcb; -#if LWIP_IPV4 - } else if (broadcast && ip4_current_dest_addr()->addr == IPADDR_BROADCAST) { - /* 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))) { - /* 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))) { - /* better match */ - uncon_pcb = pcb; - } - } -#endif /* LWIP_IPV4 */ - } -#if SO_REUSE - else if (!ip_addr_isany(&pcb->local_ip)) { - /* prefer specific IPs over catch-all */ - uncon_pcb = pcb; - } -#endif /* SO_REUSE */ - } - - /* compare PCB remote addr+port to UDP source addr+port */ - if ((pcb->remote_port == src) && - (ip_addr_isany_val(pcb->remote_ip) || - ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()))) { - /* the first fully matching PCB */ - if (prev != NULL) { - /* move the pcb to the front of udp_pcbs so that is - found faster next time */ - prev->next = pcb->next; - pcb->next = udp_pcbs; - udp_pcbs = pcb; - } else { - UDP_STATS_INC(udp.cachehit); - } - break; - } - } - - prev = pcb; - } - /* no fully matching pcb found? then look for an unconnected pcb */ - if (pcb == NULL) { - pcb = uncon_pcb; - } - - /* Check checksum if this is a match or if it was directed at us. */ - if (pcb != NULL) { - for_us = 1; - } else { -#if LWIP_IPV6 - if (ip_current_is_v6()) { - 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()); - } -#endif /* LWIP_IPV4 */ - } - - if (for_us) { - LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, ("udp_input: calculating checksum\n")); -#if CHECKSUM_CHECK_UDP - IF__NETIF_CHECKSUM_ENABLED(inp, NETIF_CHECKSUM_CHECK_UDP) { -#if LWIP_UDPLITE - if (ip_current_header_proto() == IP_PROTO_UDPLITE) { - /* Do the UDP Lite checksum */ - u16_t chklen = lwip_ntohs(udphdr->len); - if (chklen < sizeof(struct udp_hdr)) { - if (chklen == 0) { - /* For UDP-Lite, checksum length of 0 means checksum - over the complete packet (See RFC 3828 chap. 3.1) */ - chklen = p->tot_len; - } else { - /* At least the UDP-Lite header must be covered by the - checksum! (Again, see RFC 3828 chap. 3.1) */ - goto chkerr; - } - } - if (ip_chksum_pseudo_partial(p, IP_PROTO_UDPLITE, - p->tot_len, chklen, - ip_current_src_addr(), ip_current_dest_addr()) != 0) { - goto chkerr; - } - } else -#endif /* LWIP_UDPLITE */ - { - if (udphdr->chksum != 0) { - if (ip_chksum_pseudo(p, IP_PROTO_UDP, p->tot_len, - ip_current_src_addr(), - ip_current_dest_addr()) != 0) { - goto chkerr; - } - } - } - } -#endif /* CHECKSUM_CHECK_UDP */ - if (pbuf_remove_header(p, UDP_HLEN)) { - /* Can we cope with this failing? Just assert for now */ - LWIP_ASSERT("pbuf_remove_header failed\n", 0); - UDP_STATS_INC(udp.drop); - MIB2_STATS_INC(mib2.udpinerrors); - pbuf_free(p); - goto end; - } - - if (pcb != NULL) { - MIB2_STATS_INC(mib2.udpindatagrams); -#if SO_REUSE && SO_REUSE_RXTOALL - if (ip_get_option(pcb, SOF_REUSEADDR) && - (broadcast || ip_addr_ismulticast(ip_current_dest_addr()))) { - /* pass broadcast- or multicast packets to all multicast pcbs - if SOF_REUSEADDR is set on the first match */ - struct udp_pcb *mpcb; - for (mpcb = udp_pcbs; mpcb != NULL; mpcb = mpcb->next) { - if (mpcb != pcb) { - /* compare PCB local addr+port to UDP destination addr+port */ - if ((mpcb->local_port == dest) && - (udp_input_local_match(mpcb, inp, broadcast) != 0)) { - /* pass a copy of the packet to all local matches */ - if (mpcb->recv != NULL) { - struct pbuf *q; - q = pbuf_clone(PBUF_RAW, PBUF_POOL, p); - if (q != NULL) { - mpcb->recv(mpcb->recv_arg, mpcb, q, ip_current_src_addr(), src); - } - } - } - } - } - } -#endif /* SO_REUSE && SO_REUSE_RXTOALL */ - /* callback */ - if (pcb->recv != NULL) { - /* now the recv function is responsible for freeing p */ - pcb->recv(pcb->recv_arg, pcb, p, ip_current_src_addr(), src); - } else { - /* no recv function registered? then we have to free the pbuf! */ - pbuf_free(p); - goto end; - } - } else { - LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, ("udp_input: not for us.\n")); - -#if LWIP_ICMP || LWIP_ICMP6 - /* No match was found, send ICMP destination port unreachable unless - destination address was broadcast/multicast. */ - if (!broadcast && !ip_addr_ismulticast(ip_current_dest_addr())) { - /* move payload pointer back to ip header */ - pbuf_header_force(p, (s16_t)(ip_current_header_tot_len() + UDP_HLEN)); - icmp_port_unreach(ip_current_is_v6(), p); - } -#endif /* LWIP_ICMP || LWIP_ICMP6 */ - UDP_STATS_INC(udp.proterr); - UDP_STATS_INC(udp.drop); - MIB2_STATS_INC(mib2.udpnoports); - pbuf_free(p); - } - } else { - pbuf_free(p); - } -end: - PERF_STOP("udp_input"); - return; -#if CHECKSUM_CHECK_UDP -chkerr: - LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, - ("udp_input: UDP (or UDP Lite) datagram discarded due to failing checksum\n")); - UDP_STATS_INC(udp.chkerr); - UDP_STATS_INC(udp.drop); - MIB2_STATS_INC(mib2.udpinerrors); - pbuf_free(p); - PERF_STOP("udp_input"); -#endif /* CHECKSUM_CHECK_UDP */ -} - -/** - * @ingroup udp_raw - * Sends the pbuf p using UDP. The pbuf is not deallocated. - * - * - * @param pcb UDP PCB used to send the data. - * @param p chain of pbuf's to be sent. - * - * The datagram will be sent to the current remote_ip & remote_port - * stored in pcb. If the pcb is not bound to a port, it will - * automatically be bound to a random port. - * - * @return lwIP error code. - * - ERR_OK. Successful. No error occurred. - * - ERR_MEM. Out of memory. - * - ERR_RTE. Could not find route to destination address. - * - ERR_VAL. No PCB or PCB is dual-stack - * - More errors could be returned by lower protocol layers. - * - * @see udp_disconnect() udp_sendto() - */ -err_t -udp_send(struct udp_pcb *pcb, struct pbuf *p) -{ - LWIP_ERROR("udp_send: invalid pcb", pcb != NULL, return ERR_ARG); - LWIP_ERROR("udp_send: invalid pbuf", p != NULL, return ERR_ARG); - - if (IP_IS_ANY_TYPE_VAL(pcb->remote_ip)) { - return ERR_VAL; - } - - /* send to the packet using remote ip and port stored in the pcb */ - return udp_sendto(pcb, p, &pcb->remote_ip, pcb->remote_port); -} - -#if LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP -/** @ingroup udp_raw - * Same as udp_send() but with checksum - */ -err_t -udp_send_chksum(struct udp_pcb *pcb, struct pbuf *p, - u8_t have_chksum, u16_t chksum) -{ - LWIP_ERROR("udp_send_chksum: invalid pcb", pcb != NULL, return ERR_ARG); - LWIP_ERROR("udp_send_chksum: invalid pbuf", p != NULL, return ERR_ARG); - - if (IP_IS_ANY_TYPE_VAL(pcb->remote_ip)) { - return ERR_VAL; - } - - /* send to the packet using remote ip and port stored in the pcb */ - return udp_sendto_chksum(pcb, p, &pcb->remote_ip, pcb->remote_port, - have_chksum, chksum); -} -#endif /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */ - -/** - * @ingroup udp_raw - * Send data to a specified address using UDP. - * - * @param pcb UDP PCB used to send the data. - * @param p chain of pbuf's to be sent. - * @param dst_ip Destination IP address. - * @param dst_port Destination UDP port. - * - * dst_ip & dst_port are expected to be in the same byte order as in the pcb. - * - * If the PCB already has a remote address association, it will - * be restored after the data is sent. - * - * @return lwIP error code (@see udp_send for possible error codes) - * - * @see udp_disconnect() udp_send() - */ -err_t -udp_sendto(struct udp_pcb *pcb, struct pbuf *p, - const ip_addr_t *dst_ip, u16_t dst_port) -{ -#if LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP - return udp_sendto_chksum(pcb, p, dst_ip, dst_port, 0, 0); -} - -/** @ingroup udp_raw - * Same as udp_sendto(), but with checksum */ -err_t -udp_sendto_chksum(struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip, - u16_t dst_port, u8_t have_chksum, u16_t chksum) -{ -#endif /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */ - struct netif *netif; - - LWIP_ERROR("udp_sendto: invalid pcb", pcb != NULL, return ERR_ARG); - LWIP_ERROR("udp_sendto: invalid pbuf", p != NULL, return ERR_ARG); - LWIP_ERROR("udp_sendto: invalid dst_ip", dst_ip != NULL, return ERR_ARG); - - if (!IP_ADDR_PCB_VERSION_MATCH(pcb, dst_ip)) { - return ERR_VAL; - } - - LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, ("udp_send\n")); - - if (pcb->netif_idx != NETIF_NO_INDEX) { - netif = netif_get_by_index(pcb->netif_idx); - } else { -#if LWIP_MULTICAST_TX_OPTIONS - netif = NULL; - if (ip_addr_ismulticast(dst_ip)) { - /* For IPv6, the interface to use for packets with a multicast destination - * is specified using an interface index. The same approach may be used for - * IPv4 as well, in which case it overrides the IPv4 multicast override - * address below. Here we have to look up the netif by going through the - * list, but by doing so we skip a route lookup. If the interface index has - * gone stale, we fall through and do the regular route lookup after all. */ - if (pcb->mcast_ifindex != NETIF_NO_INDEX) { - netif = netif_get_by_index(pcb->mcast_ifindex); - } -#if LWIP_IPV4 - else -#if LWIP_IPV6 - if (IP_IS_V4(dst_ip)) -#endif /* LWIP_IPV6 */ - { - /* IPv4 does not use source-based routing by default, so we use an - administratively selected interface for multicast by default. - However, this can be overridden by setting an interface address - in pcb->mcast_ip4 that is used for routing. If this routing lookup - fails, we try regular routing as though no override was set. */ - if (!ip4_addr_isany_val(pcb->mcast_ip4) && - !ip4_addr_cmp(&pcb->mcast_ip4, IP4_ADDR_BROADCAST)) { - netif = ip4_route_src(ip_2_ip4(&pcb->local_ip), &pcb->mcast_ip4); - } - } -#endif /* LWIP_IPV4 */ - } - - if (netif == NULL) -#endif /* LWIP_MULTICAST_TX_OPTIONS */ - { - /* find the outgoing network interface for this packet */ - netif = ip_route(&pcb->local_ip, dst_ip); - } - } - - /* no outgoing network interface could be found? */ - if (netif == NULL) { - LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("udp_send: No route to ")); - ip_addr_debug_print(UDP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, dst_ip); - LWIP_DEBUGF(UDP_DEBUG, ("\n")); - UDP_STATS_INC(udp.rterr); - return ERR_RTE; - } -#if LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP - return udp_sendto_if_chksum(pcb, p, dst_ip, dst_port, netif, have_chksum, chksum); -#else /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */ - return udp_sendto_if(pcb, p, dst_ip, dst_port, netif); -#endif /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */ -} - -/** - * @ingroup udp_raw - * Send data to a specified address using UDP. - * The netif used for sending can be specified. - * - * This function exists mainly for DHCP, to be able to send UDP packets - * on a netif that is still down. - * - * @param pcb UDP PCB used to send the data. - * @param p chain of pbuf's to be sent. - * @param dst_ip Destination IP address. - * @param dst_port Destination UDP port. - * @param netif the netif used for sending. - * - * dst_ip & dst_port are expected to be in the same byte order as in the pcb. - * - * @return lwIP error code (@see udp_send for possible error codes) - * - * @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) -{ -#if LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP - return udp_sendto_if_chksum(pcb, p, dst_ip, dst_port, netif, 0, 0); -} - -/** Same as udp_sendto_if(), but with checksum */ -err_t -udp_sendto_if_chksum(struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip, - u16_t dst_port, struct netif *netif, u8_t have_chksum, - 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); - LWIP_ERROR("udp_sendto_if: invalid pbuf", p != NULL, return ERR_ARG); - LWIP_ERROR("udp_sendto_if: invalid dst_ip", dst_ip != NULL, return ERR_ARG); - LWIP_ERROR("udp_sendto_if: invalid netif", netif != NULL, return ERR_ARG); - - if (!IP_ADDR_PCB_VERSION_MATCH(pcb, dst_ip)) { - return ERR_VAL; - } - - /* PCB local address is IP_ANY_ADDR or multicast? */ -#if LWIP_IPV6 - if (IP_IS_V6(dst_ip)) { - if (ip6_addr_isany(ip_2_ip6(&pcb->local_ip)) || - ip6_addr_ismulticast(ip_2_ip6(&pcb->local_ip))) { - src_ip = ip6_select_source_address(netif, ip_2_ip6(dst_ip)); - if (src_ip == NULL) { - /* No suitable source address was found. */ - return ERR_RTE; - } - } else { - /* use UDP PCB local IPv6 address as source address, if still valid. */ - if (netif_get_ip6_addr_match(netif, ip_2_ip6(&pcb->local_ip)) < 0) { - /* Address isn't valid anymore. */ - return ERR_RTE; - } - src_ip = &pcb->local_ip; - } - } -#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)) || - ip4_addr_ismulticast(ip_2_ip4(&pcb->local_ip))) { - /* if the local_ip is any or multicast - * use the outgoing network interface IP address as source address */ - src_ip = netif_ip_addr4(netif); - } 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))) { - /* local_ip doesn't match, drop the packet */ - return ERR_RTE; - } - /* use UDP PCB local IP address as source address */ - src_ip = &pcb->local_ip; - } -#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); -#endif /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */ -} - -/** @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) -{ -#if LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP - return udp_sendto_if_src_chksum(pcb, p, dst_ip, dst_port, netif, 0, 0, src_ip); -} - -/** Same as udp_sendto_if_src(), but with checksum */ -err_t -udp_sendto_if_src_chksum(struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip, - u16_t dst_port, struct netif *netif, u8_t have_chksum, - u16_t chksum, const ip_addr_t *src_ip) -{ -#endif /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */ - struct udp_hdr *udphdr; - err_t err; - struct pbuf *q; /* q will be sent down the stack */ - u8_t ip_proto; - u8_t ttl; - - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("udp_sendto_if_src: invalid pcb", pcb != NULL, return ERR_ARG); - LWIP_ERROR("udp_sendto_if_src: invalid pbuf", p != NULL, return ERR_ARG); - LWIP_ERROR("udp_sendto_if_src: invalid dst_ip", dst_ip != NULL, return ERR_ARG); - LWIP_ERROR("udp_sendto_if_src: invalid src_ip", src_ip != NULL, return ERR_ARG); - LWIP_ERROR("udp_sendto_if_src: invalid netif", netif != NULL, return ERR_ARG); - - if (!IP_ADDR_PCB_VERSION_MATCH(pcb, src_ip) || - !IP_ADDR_PCB_VERSION_MATCH(pcb, dst_ip)) { - return ERR_VAL; - } - -#if LWIP_IPV4 && IP_SOF_BROADCAST - /* broadcast filter? */ - if (!ip_get_option(pcb, SOF_BROADCAST) && -#if LWIP_IPV6 - IP_IS_V4(dst_ip) && -#endif /* LWIP_IPV6 */ - ip_addr_isbroadcast(dst_ip, netif)) { - LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, - ("udp_sendto_if: SOF_BROADCAST not enabled on pcb %p\n", (void *)pcb)); - 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) { - 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); - if (err != ERR_OK) { - LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("udp_send: forced port bind failed\n")); - return err; - } - } - - /* packet too large to add a UDP header without causing an overflow? */ - if ((u16_t)(p->tot_len + UDP_HLEN) < p->tot_len) { - return ERR_MEM; - } - /* not enough space to add an UDP header to first pbuf in given p chain? */ - if (pbuf_add_header(p, UDP_HLEN)) { - /* allocate header in a separate new pbuf */ - q = pbuf_alloc(PBUF_IP, UDP_HLEN, PBUF_RAM); - /* new header pbuf could not be allocated? */ - if (q == NULL) { - LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("udp_send: could not allocate header\n")); - return ERR_MEM; - } - if (p->tot_len != 0) { - /* chain header q in front of given pbuf p (only if p contains data) */ - pbuf_chain(q, p); - } - /* first pbuf q points to header pbuf */ - 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; - 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", - (q->len >= sizeof(struct udp_hdr))); - /* q now represents the packet to be sent */ - udphdr = (struct udp_hdr *)q->payload; - udphdr->src = lwip_htons(pcb->local_port); - udphdr->dest = lwip_htons(dst_port); - /* in UDP, 0 checksum means 'no checksum' */ - udphdr->chksum = 0x0000; - - /* Multicast Loop? */ -#if LWIP_MULTICAST_TX_OPTIONS - if (((pcb->flags & UDP_FLAGS_MULTICAST_LOOP) != 0) && ip_addr_ismulticast(dst_ip)) { - q->flags |= PBUF_FLAG_MCASTLOOP; - } -#endif /* LWIP_MULTICAST_TX_OPTIONS */ - - LWIP_DEBUGF(UDP_DEBUG, ("udp_send: sending datagram of length %"U16_F"\n", q->tot_len)); - -#if LWIP_UDPLITE - /* UDP Lite protocol? */ - if (pcb->flags & UDP_FLAGS_UDPLITE) { - u16_t chklen, chklen_hdr; - LWIP_DEBUGF(UDP_DEBUG, ("udp_send: UDP LITE packet length %"U16_F"\n", q->tot_len)); - /* set UDP message length in UDP header */ - chklen_hdr = chklen = pcb->chksum_len_tx; - if ((chklen < sizeof(struct udp_hdr)) || (chklen > q->tot_len)) { - if (chklen != 0) { - LWIP_DEBUGF(UDP_DEBUG, ("udp_send: UDP LITE pcb->chksum_len is illegal: %"U16_F"\n", chklen)); - } - /* For UDP-Lite, checksum length of 0 means checksum - over the complete packet. (See RFC 3828 chap. 3.1) - At least the UDP-Lite header must be covered by the - checksum, therefore, if chksum_len has an illegal - value, we generate the checksum over the complete - packet to be safe. */ - chklen_hdr = 0; - chklen = q->tot_len; - } - udphdr->len = lwip_htons(chklen_hdr); - /* calculate checksum */ -#if CHECKSUM_GEN_UDP - IF__NETIF_CHECKSUM_ENABLED(netif, NETIF_CHECKSUM_GEN_UDP) { -#if LWIP_CHECKSUM_ON_COPY - if (have_chksum) { - chklen = UDP_HLEN; - } -#endif /* LWIP_CHECKSUM_ON_COPY */ - udphdr->chksum = ip_chksum_pseudo_partial(q, IP_PROTO_UDPLITE, - q->tot_len, chklen, src_ip, dst_ip); -#if LWIP_CHECKSUM_ON_COPY - if (have_chksum) { - u32_t acc; - acc = udphdr->chksum + (u16_t)~(chksum); - udphdr->chksum = FOLD_U32T(acc); - } -#endif /* LWIP_CHECKSUM_ON_COPY */ - - /* chksum zero must become 0xffff, as zero means 'no checksum' */ - if (udphdr->chksum == 0x0000) { - udphdr->chksum = 0xffff; - } - } -#endif /* CHECKSUM_GEN_UDP */ - - 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); - /* calculate checksum */ -#if CHECKSUM_GEN_UDP - IF__NETIF_CHECKSUM_ENABLED(netif, NETIF_CHECKSUM_GEN_UDP) { - /* Checksum is mandatory over IPv6. */ - if (IP_IS_V6(dst_ip) || (pcb->flags & UDP_FLAGS_NOCHKSUM) == 0) { - u16_t udpchksum; -#if LWIP_CHECKSUM_ON_COPY - if (have_chksum) { - u32_t acc; - udpchksum = ip_chksum_pseudo_partial(q, IP_PROTO_UDP, - q->tot_len, UDP_HLEN, src_ip, dst_ip); - acc = udpchksum + (u16_t)~(chksum); - udpchksum = FOLD_U32T(acc); - } else -#endif /* LWIP_CHECKSUM_ON_COPY */ - { - udpchksum = ip_chksum_pseudo(q, IP_PROTO_UDP, q->tot_len, - src_ip, dst_ip); - } - - /* chksum zero must become 0xffff, as zero means 'no checksum' */ - if (udpchksum == 0x0000) { - udpchksum = 0xffff; - } - udphdr->chksum = udpchksum; - } - } -#endif /* CHECKSUM_GEN_UDP */ - ip_proto = IP_PROTO_UDP; - } - - /* 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; -#endif /* LWIP_MULTICAST_TX_OPTIONS */ - - 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); - NETIF_RESET_HINTS(netif); - - /* @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) { - /* free the header pbuf */ - pbuf_free(q); - q = NULL; - /* p is still referenced by the caller, and will live on */ - } - - UDP_STATS_INC(udp.xmit); - return err; -} - -/** - * @ingroup udp_raw - * Bind an UDP PCB. - * - * @param pcb UDP PCB to be bound with a local address ipaddr and port. - * @param ipaddr local IP address to bind with. Use IP_ANY_TYPE to - * bind to all local interfaces. - * @param port local UDP port to bind with. Use 0 to automatically bind - * to a random port between UDP_LOCAL_PORT_RANGE_START and - * UDP_LOCAL_PORT_RANGE_END. - * - * ipaddr & port are expected to be in the same byte order as in the pcb. - * - * @return lwIP error code. - * - ERR_OK. Successful. No error occurred. - * - ERR_USE. The specified ipaddr and port are already bound to by - * another UDP PCB. - * - * @see udp_disconnect() - */ -err_t -udp_bind(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port) -{ - struct udp_pcb *ipcb; - u8_t rebind; -#if LWIP_IPV6 && LWIP_IPV6_SCOPES - ip_addr_t zoned_ipaddr; -#endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */ - - LWIP_ASSERT_CORE_LOCKED(); - -#if LWIP_IPV4 - /* Don't propagate NULL pointer (IPv4 ANY) to subsequent functions */ - if (ipaddr == NULL) { - ipaddr = IP4_ADDR_ANY; - } -#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); - - 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; - /* Check for double bind and rebind of the same pcb */ - for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) { - /* is this UDP PCB already on active list? */ - if (pcb == ipcb) { - rebind = 1; - break; - } - } - -#if LWIP_IPV6 && LWIP_IPV6_SCOPES - /* If the given IP address should have a zone but doesn't, assign one now. - * This is legacy support: scope-aware callers should always provide properly - * zoned source addresses. Do the zone selection before the address-in-use - * check below; as such we have to make a temporary copy of the address. */ - if (IP_IS_V6(ipaddr) && ip6_addr_lacks_zone(ip_2_ip6(ipaddr), IP6_UNKNOWN)) { - ip_addr_copy(zoned_ipaddr, *ipaddr); - ip6_addr_select_zone(ip_2_ip6(&zoned_ipaddr), ip_2_ip6(&zoned_ipaddr)); - ipaddr = &zoned_ipaddr; - } -#endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */ - - /* no port specified? */ - if (port == 0) { - port = udp_new_port(); - if (port == 0) { - /* no more ports available in local range */ - LWIP_DEBUGF(UDP_DEBUG, ("udp_bind: out of free UDP ports\n")); - return ERR_USE; - } - } else { - for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) { - if (pcb != ipcb) { - /* By default, we don't allow to bind to a port that any other udp - PCB is already bound to, unless *all* PCBs with that port have tha - REUSEADDR flag set. */ -#if SO_REUSE - 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) && - /* IP address matches or any IP used? */ - (ip_addr_cmp(&ipcb->local_ip, ipaddr) || ip_addr_isany(ipaddr) || - ip_addr_isany(&ipcb->local_ip))) { - /* 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; - } - } - } - } - } - - ip_addr_set_ipaddr(&pcb->local_ip, ipaddr); - - pcb->local_port = port; - mib2_udp_bind(pcb); - /* pcb not active yet? */ - if (rebind == 0) { - /* place the PCB on the active list if not already there */ - pcb->next = udp_pcbs; - udp_pcbs = pcb; - } - 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; -} - -/** - * @ingroup udp_raw - * Bind an UDP PCB to a specific netif. - * After calling this function, all packets received via this PCB - * are guaranteed to have come in via the specified netif, and all - * outgoing packets will go out via the specified netif. - * - * @param pcb UDP PCB to be bound. - * @param netif netif to bind udp pcb to. Can be NULL. - * - * @see udp_disconnect() - */ -void -udp_bind_netif(struct udp_pcb *pcb, const struct netif *netif) -{ - LWIP_ASSERT_CORE_LOCKED(); - - if (netif != NULL) { - pcb->netif_idx = netif_get_index(netif); - } else { - pcb->netif_idx = NETIF_NO_INDEX; - } -} - -/** - * @ingroup udp_raw - * Sets the remote end of the pcb. This function does not generate any - * network traffic, but only sets the remote address of the pcb. - * - * @param pcb UDP PCB to be connected with remote address ipaddr and port. - * @param ipaddr remote IP address to connect with. - * @param port remote UDP port to connect with. - * - * @return lwIP error code - * - * ipaddr & port are expected to be in the same byte order as in the pcb. - * - * The udp pcb is bound to a random local port if not already bound. - * - * @see udp_disconnect() - */ -err_t -udp_connect(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port) -{ - struct udp_pcb *ipcb; - - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("udp_connect: invalid pcb", pcb != NULL, return ERR_ARG); - LWIP_ERROR("udp_connect: invalid ipaddr", ipaddr != NULL, return ERR_ARG); - - if (pcb->local_port == 0) { - err_t err = udp_bind(pcb, &pcb->local_ip, pcb->local_port); - if (err != ERR_OK) { - return err; - } - } - - ip_addr_set_ipaddr(&pcb->remote_ip, ipaddr); -#if LWIP_IPV6 && LWIP_IPV6_SCOPES - /* If the given IP address should have a zone but doesn't, assign one now, - * using the bound address to make a more informed decision when possible. */ - if (IP_IS_V6(&pcb->remote_ip) && - 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; - pcb->flags |= UDP_FLAGS_CONNECTED; - - LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("udp_connect: connected to ")); - 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) { - if (pcb == ipcb) { - /* already on the list, just return */ - return ERR_OK; - } - } - /* PCB not yet on the list, add PCB now */ - pcb->next = udp_pcbs; - udp_pcbs = pcb; - return ERR_OK; -} - -/** - * @ingroup udp_raw - * Remove the remote end of the pcb. This function does not generate - * any network traffic, but only removes the remote address of the pcb. - * - * @param pcb the udp pcb to disconnect. - */ -void -udp_disconnect(struct udp_pcb *pcb) -{ - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("udp_disconnect: invalid pcb", pcb != NULL, return); - - /* reset remote address association */ -#if LWIP_IPV4 && LWIP_IPV6 - if (IP_IS_ANY_TYPE_VAL(pcb->local_ip)) { - ip_addr_copy(pcb->remote_ip, *IP_ANY_TYPE); - } else { -#endif - ip_addr_set_any(IP_IS_V6_VAL(pcb->remote_ip), &pcb->remote_ip); -#if LWIP_IPV4 && LWIP_IPV6 - } -#endif - pcb->remote_port = 0; - pcb->netif_idx = NETIF_NO_INDEX; - /* mark PCB as unconnected */ - udp_clear_flags(pcb, UDP_FLAGS_CONNECTED); -} - -/** - * @ingroup udp_raw - * Set a receive callback for a UDP PCB. - * This callback will be called when receiving a datagram for the pcb. - * - * @param pcb the pcb for which to set the recv callback - * @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) -{ - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("udp_recv: invalid pcb", pcb != NULL, return); - - /* remember recv() callback and user data */ - pcb->recv = recv; - pcb->recv_arg = recv_arg; -} - -/** - * @ingroup udp_raw - * Removes and deallocates the pcb. - * - * @param pcb UDP PCB to be removed. The PCB is removed from the list of - * UDP PCB's and the data structure is freed from memory. - * - * @see udp_new() - */ -void -udp_remove(struct udp_pcb *pcb) -{ - struct udp_pcb *pcb2; - - LWIP_ASSERT_CORE_LOCKED(); - - LWIP_ERROR("udp_remove: invalid pcb", pcb != NULL, return); - - mib2_udp_unbind(pcb); - /* pcb to be removed is first in list? */ - if (udp_pcbs == pcb) { - /* make list start at 2nd pcb */ - udp_pcbs = udp_pcbs->next; - /* pcb not 1st in list */ - } else { - for (pcb2 = udp_pcbs; pcb2 != NULL; pcb2 = pcb2->next) { - /* find pcb in udp_pcbs list */ - if (pcb2->next != NULL && pcb2->next == pcb) { - /* remove pcb from list */ - pcb2->next = pcb->next; - break; - } - } - } - memp_free(MEMP_UDP_PCB, pcb); -} - -/** - * @ingroup udp_raw - * Creates a new UDP pcb which can be used for UDP communication. The - * pcb is not active until it has either been bound to a local address - * or connected to a remote address. - * - * @return The UDP PCB which was created. NULL if the PCB data structure - * could not be allocated. - * - * @see udp_remove() - */ -struct udp_pcb * -udp_new(void) -{ - struct udp_pcb *pcb; - - LWIP_ASSERT_CORE_LOCKED(); - - pcb = (struct udp_pcb *)memp_malloc(MEMP_UDP_PCB); - /* could allocate UDP PCB? */ - if (pcb != NULL) { - /* 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)); - pcb->ttl = UDP_TTL; -#if LWIP_MULTICAST_TX_OPTIONS - udp_set_multicast_ttl(pcb, UDP_TTL); -#endif /* LWIP_MULTICAST_TX_OPTIONS */ - } - return pcb; -} - -/** - * @ingroup udp_raw - * Create a UDP PCB for specific IP type. - * The pcb is not active until it has either been bound to a local address - * or connected to a remote address. - * - * @param type IP address type, see @ref lwip_ip_addr_type definitions. - * If you want to listen to IPv4 and IPv6 (dual-stack) packets, - * supply @ref IPADDR_TYPE_ANY as argument and bind to @ref IP_ANY_TYPE. - * @return The UDP PCB which was created. NULL if the PCB data structure - * could not be allocated. - * - * @see udp_remove() - */ -struct udp_pcb * -udp_new_ip_type(u8_t type) -{ - struct udp_pcb *pcb; - - LWIP_ASSERT_CORE_LOCKED(); - - pcb = udp_new(); -#if LWIP_IPV4 && LWIP_IPV6 - if (pcb != NULL) { - IP_SET_TYPE_VAL(pcb->local_ip, type); - IP_SET_TYPE_VAL(pcb->remote_ip, type); - } -#else - LWIP_UNUSED_ARG(type); -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - return pcb; -} - -/** This function is called from netif.c when address is changed - * - * @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) -{ - struct udp_pcb *upcb; - - if (!ip_addr_isany(old_addr) && !ip_addr_isany(new_addr)) { - for (upcb = udp_pcbs; upcb != NULL; upcb = upcb->next) { - /* PCB bound to current local interface address? */ - if (ip_addr_cmp(&upcb->local_ip, old_addr)) { - /* 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); - } - } - } -} - -#if UDP_DEBUG -/** - * Print UDP header information for debug purposes. - * - * @param udphdr pointer to the udp header in memory. - */ -void -udp_debug_print(struct udp_hdr *udphdr) -{ - LWIP_DEBUGF(UDP_DEBUG, ("UDP header:\n")); - LWIP_DEBUGF(UDP_DEBUG, ("+-------------------------------+\n")); - LWIP_DEBUGF(UDP_DEBUG, ("| %5"U16_F" | %5"U16_F" | (src port, dest port)\n", - lwip_ntohs(udphdr->src), lwip_ntohs(udphdr->dest))); - LWIP_DEBUGF(UDP_DEBUG, ("+-------------------------------+\n")); - LWIP_DEBUGF(UDP_DEBUG, ("| %5"U16_F" | 0x%04"X16_F" | (len, chksum)\n", - lwip_ntohs(udphdr->len), lwip_ntohs(udphdr->chksum))); - LWIP_DEBUGF(UDP_DEBUG, ("+-------------------------------+\n")); -} -#endif /* UDP_DEBUG */ - -#endif /* LWIP_UDP */ diff --git a/Middlewares/Third_Party/LwIP/src/include/compat/posix/arpa/inet.h b/Middlewares/Third_Party/LwIP/src/include/compat/posix/arpa/inet.h deleted file mode 100644 index 0ed9baf..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/compat/posix/arpa/inet.h +++ /dev/null @@ -1,33 +0,0 @@ -/** - * @file - * This file is a posix wrapper for lwip/sockets.h. - */ - -/* - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - */ - -#include "lwip/sockets.h" diff --git a/Middlewares/Third_Party/LwIP/src/include/compat/posix/net/if.h b/Middlewares/Third_Party/LwIP/src/include/compat/posix/net/if.h deleted file mode 100644 index 6b8e63a..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/compat/posix/net/if.h +++ /dev/null @@ -1,36 +0,0 @@ -/** - * @file - * This file is a posix wrapper for lwip/if_api.h. - */ - -/* - * Copyright (c) 2017 Joel Cunningham, Garmin International, Inc. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - */ - -#include "lwip/if_api.h" diff --git a/Middlewares/Third_Party/LwIP/src/include/compat/posix/netdb.h b/Middlewares/Third_Party/LwIP/src/include/compat/posix/netdb.h deleted file mode 100644 index 12d4c7f..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/compat/posix/netdb.h +++ /dev/null @@ -1,33 +0,0 @@ -/** - * @file - * This file is a posix wrapper for lwip/netdb.h. - */ - -/* - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - */ - -#include "lwip/netdb.h" diff --git a/Middlewares/Third_Party/LwIP/src/include/compat/posix/sys/socket.h b/Middlewares/Third_Party/LwIP/src/include/compat/posix/sys/socket.h deleted file mode 100644 index 0ed9baf..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/compat/posix/sys/socket.h +++ /dev/null @@ -1,33 +0,0 @@ -/** - * @file - * This file is a posix wrapper for lwip/sockets.h. - */ - -/* - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - */ - -#include "lwip/sockets.h" diff --git a/Middlewares/Third_Party/LwIP/src/include/compat/stdc/errno.h b/Middlewares/Third_Party/LwIP/src/include/compat/stdc/errno.h deleted file mode 100644 index 98a9aec..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/compat/stdc/errno.h +++ /dev/null @@ -1,33 +0,0 @@ -/** - * @file - * This file is a posix/stdc wrapper for lwip/errno.h. - */ - -/* - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - */ - -#include "lwip/errno.h" diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/altcp.h b/Middlewares/Third_Party/LwIP/src/include/lwip/altcp.h deleted file mode 100644 index 97abc54..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/altcp.h +++ /dev/null @@ -1,201 +0,0 @@ -/** - * @file - * Application layered TCP connection API (to be used from TCPIP thread)\n - * - * This file contains the generic API. - * For more details see @ref altcp_api. - */ - -/* - * Copyright (c) 2017 Simon Goldschmidt - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Simon Goldschmidt - * - */ -#ifndef LWIP_HDR_ALTCP_H -#define LWIP_HDR_ALTCP_H - -#include "lwip/opt.h" - -#if LWIP_ALTCP /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/tcpbase.h" -#include "lwip/err.h" -#include "lwip/pbuf.h" -#include "lwip/ip_addr.h" - -#ifdef __cplusplus -extern "C" { -#endif - -struct altcp_pcb; -struct altcp_functions; - -typedef err_t (*altcp_accept_fn)(void *arg, struct altcp_pcb *new_conn, err_t err); -typedef err_t (*altcp_connected_fn)(void *arg, struct altcp_pcb *conn, err_t err); -typedef err_t (*altcp_recv_fn)(void *arg, struct altcp_pcb *conn, struct pbuf *p, err_t err); -typedef err_t (*altcp_sent_fn)(void *arg, struct altcp_pcb *conn, u16_t len); -typedef err_t (*altcp_poll_fn)(void *arg, struct altcp_pcb *conn); -typedef void (*altcp_err_fn)(void *arg, err_t err); - -typedef struct altcp_pcb* (*altcp_new_fn)(void *arg, u8_t ip_type); - -struct altcp_pcb { - const struct altcp_functions *fns; - struct altcp_pcb *inner_conn; - void *arg; - void *state; - /* application callbacks */ - altcp_accept_fn accept; - altcp_connected_fn connected; - altcp_recv_fn recv; - altcp_sent_fn sent; - altcp_poll_fn poll; - altcp_err_fn err; - u8_t pollinterval; -}; - -/** @ingroup altcp */ -typedef struct altcp_allocator_s { - /** Allocator function */ - altcp_new_fn alloc; - /** Argument to allocator function */ - void *arg; -} altcp_allocator_t; - -struct altcp_pcb *altcp_new(altcp_allocator_t *allocator); -struct altcp_pcb *altcp_new_ip6(altcp_allocator_t *allocator); -struct altcp_pcb *altcp_new_ip_type(altcp_allocator_t *allocator, u8_t ip_type); - -void altcp_arg(struct altcp_pcb *conn, void *arg); -void altcp_accept(struct altcp_pcb *conn, altcp_accept_fn accept); -void altcp_recv(struct altcp_pcb *conn, altcp_recv_fn recv); -void altcp_sent(struct altcp_pcb *conn, altcp_sent_fn sent); -void altcp_poll(struct altcp_pcb *conn, altcp_poll_fn poll, u8_t interval); -void altcp_err(struct altcp_pcb *conn, altcp_err_fn err); - -void altcp_recved(struct altcp_pcb *conn, u16_t len); -err_t altcp_bind(struct altcp_pcb *conn, const ip_addr_t *ipaddr, u16_t port); -err_t altcp_connect(struct altcp_pcb *conn, const ip_addr_t *ipaddr, u16_t port, altcp_connected_fn connected); - -/* return conn for source code compatibility to tcp callback API only */ -struct altcp_pcb *altcp_listen_with_backlog_and_err(struct altcp_pcb *conn, u8_t backlog, err_t *err); -#define altcp_listen_with_backlog(conn, backlog) altcp_listen_with_backlog_and_err(conn, backlog, NULL) -/** @ingroup altcp */ -#define altcp_listen(conn) altcp_listen_with_backlog_and_err(conn, TCP_DEFAULT_LISTEN_BACKLOG, NULL) - -void altcp_abort(struct altcp_pcb *conn); -err_t altcp_close(struct altcp_pcb *conn); -err_t altcp_shutdown(struct altcp_pcb *conn, int shut_rx, int shut_tx); - -err_t altcp_write(struct altcp_pcb *conn, const void *dataptr, u16_t len, u8_t apiflags); -err_t altcp_output(struct altcp_pcb *conn); - -u16_t altcp_mss(struct altcp_pcb *conn); -u16_t altcp_sndbuf(struct altcp_pcb *conn); -u16_t altcp_sndqueuelen(struct altcp_pcb *conn); -void altcp_nagle_disable(struct altcp_pcb *conn); -void altcp_nagle_enable(struct altcp_pcb *conn); -int altcp_nagle_disabled(struct altcp_pcb *conn); - -void altcp_setprio(struct altcp_pcb *conn, u8_t prio); - -err_t altcp_get_tcp_addrinfo(struct altcp_pcb *conn, int local, ip_addr_t *addr, u16_t *port); -ip_addr_t *altcp_get_ip(struct altcp_pcb *conn, int local); -u16_t altcp_get_port(struct altcp_pcb *conn, int local); - -#ifdef LWIP_DEBUG -enum tcp_state altcp_dbg_get_tcp_state(struct altcp_pcb *conn); -#endif - -#ifdef __cplusplus -} -#endif - -#else /* LWIP_ALTCP */ - -/* ALTCP disabled, define everything to link against tcp callback API (e.g. to get a small non-ssl httpd) */ - -#include "lwip/tcp.h" - -#define altcp_accept_fn tcp_accept_fn -#define altcp_connected_fn tcp_connected_fn -#define altcp_recv_fn tcp_recv_fn -#define altcp_sent_fn tcp_sent_fn -#define altcp_poll_fn tcp_poll_fn -#define altcp_err_fn tcp_err_fn - -#define altcp_pcb tcp_pcb -#define altcp_tcp_new_ip_type tcp_new_ip_type -#define altcp_tcp_new tcp_new -#define altcp_tcp_new_ip6 tcp_new_ip6 - -#define altcp_new(allocator) tcp_new() -#define altcp_new_ip6(allocator) tcp_new_ip6() -#define altcp_new_ip_type(allocator, ip_type) tcp_new_ip_type(ip_type) - -#define altcp_arg tcp_arg -#define altcp_accept tcp_accept -#define altcp_recv tcp_recv -#define altcp_sent tcp_sent -#define altcp_poll tcp_poll -#define altcp_err tcp_err - -#define altcp_recved tcp_recved -#define altcp_bind tcp_bind -#define altcp_connect tcp_connect - -#define altcp_listen_with_backlog_and_err tcp_listen_with_backlog_and_err -#define altcp_listen_with_backlog tcp_listen_with_backlog -#define altcp_listen tcp_listen - -#define altcp_abort tcp_abort -#define altcp_close tcp_close -#define altcp_shutdown tcp_shutdown - -#define altcp_write tcp_write -#define altcp_output tcp_output - -#define altcp_mss tcp_mss -#define altcp_sndbuf tcp_sndbuf -#define altcp_sndqueuelen tcp_sndqueuelen -#define altcp_nagle_disable tcp_nagle_disable -#define altcp_nagle_enable tcp_nagle_enable -#define altcp_nagle_disabled tcp_nagle_disabled -#define altcp_setprio tcp_setprio - -#define altcp_get_tcp_addrinfo tcp_get_tcp_addrinfo -#define altcp_get_ip(pcb, local) ((local) ? (&(pcb)->local_ip) : (&(pcb)->remote_ip)) - -#ifdef LWIP_DEBUG -#define altcp_dbg_get_tcp_state tcp_dbg_get_tcp_state -#endif - -#endif /* LWIP_ALTCP */ - -#endif /* LWIP_HDR_ALTCP_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/altcp_tcp.h b/Middlewares/Third_Party/LwIP/src/include/lwip/altcp_tcp.h deleted file mode 100644 index dbde584..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/altcp_tcp.h +++ /dev/null @@ -1,72 +0,0 @@ -/** - * @file - * Application layered TCP connection API (to be used from TCPIP thread)\n - * This interface mimics the tcp callback API to the application while preventing - * direct linking (much like virtual functions). - * This way, an application can make use of other application layer protocols - * on top of TCP without knowing the details (e.g. TLS, proxy connection). - * - * This file contains the base implementation calling into tcp. - */ - -/* - * Copyright (c) 2017 Simon Goldschmidt - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Simon Goldschmidt - * - */ -#ifndef LWIP_HDR_ALTCP_TCP_H -#define LWIP_HDR_ALTCP_TCP_H - -#include "lwip/opt.h" - -#if LWIP_ALTCP /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/altcp.h" - -#ifdef __cplusplus -extern "C" { -#endif - -struct altcp_pcb *altcp_tcp_new_ip_type(u8_t ip_type); - -#define altcp_tcp_new() altcp_tcp_new_ip_type(IPADDR_TYPE_V4) -#define altcp_tcp_new_ip6() altcp_tcp_new_ip_type(IPADDR_TYPE_V6) - -struct altcp_pcb *altcp_tcp_alloc(void *arg, u8_t ip_type); - -struct tcp_pcb; -struct altcp_pcb *altcp_tcp_wrap(struct tcp_pcb *tpcb); - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_ALTCP */ - -#endif /* LWIP_HDR_ALTCP_TCP_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/altcp_tls.h b/Middlewares/Third_Party/LwIP/src/include/lwip/altcp_tls.h deleted file mode 100644 index 7b17c60..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/altcp_tls.h +++ /dev/null @@ -1,117 +0,0 @@ -/** - * @file - * Application layered TCP/TLS connection API (to be used from TCPIP thread) - * - * @defgroup altcp_tls TLS layer - * @ingroup altcp - * This file contains function prototypes for a TLS layer. - * A port to ARM mbedtls is provided in the apps/ tree - * (LWIP_ALTCP_TLS_MBEDTLS option). - */ - -/* - * Copyright (c) 2017 Simon Goldschmidt - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Simon Goldschmidt - * - */ -#ifndef LWIP_HDR_ALTCP_TLS_H -#define LWIP_HDR_ALTCP_TLS_H - -#include "lwip/opt.h" - -#if LWIP_ALTCP /* don't build if not configured for use in lwipopts.h */ - -#if LWIP_ALTCP_TLS - -#include "lwip/altcp.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** @ingroup altcp_tls - * ALTCP_TLS configuration handle, content depends on port (e.g. mbedtls) - */ -struct altcp_tls_config; - -/** @ingroup altcp_tls - * Create an ALTCP_TLS server configuration handle - */ -struct altcp_tls_config *altcp_tls_create_config_server_privkey_cert(const u8_t *privkey, size_t privkey_len, - const u8_t *privkey_pass, size_t privkey_pass_len, - const u8_t *cert, size_t cert_len); - -/** @ingroup altcp_tls - * Create an ALTCP_TLS client configuration handle - */ -struct altcp_tls_config *altcp_tls_create_config_client(const u8_t *cert, size_t cert_len); - -/** @ingroup altcp_tls - * Create an ALTCP_TLS client configuration handle with two-way server/client authentication - */ -struct altcp_tls_config *altcp_tls_create_config_client_2wayauth(const u8_t *ca, size_t ca_len, const u8_t *privkey, size_t privkey_len, - const u8_t *privkey_pass, size_t privkey_pass_len, - const u8_t *cert, size_t cert_len); - -/** @ingroup altcp_tls - * Free an ALTCP_TLS configuration handle - */ -void altcp_tls_free_config(struct altcp_tls_config *conf); - -/** @ingroup altcp_tls - * Create new ALTCP_TLS layer wrapping an existing pcb as inner connection (e.g. TLS over TCP) - */ -struct altcp_pcb *altcp_tls_wrap(struct altcp_tls_config *config, struct altcp_pcb *inner_pcb); - -/** @ingroup altcp_tls - * Create new ALTCP_TLS pcb and its inner tcp pcb - */ -struct altcp_pcb *altcp_tls_new(struct altcp_tls_config *config, u8_t ip_type); - -/** @ingroup altcp_tls - * Create new ALTCP_TLS layer pcb and its inner tcp pcb. - * Same as @ref altcp_tls_new but this allocator function fits to - * @ref altcp_allocator_t / @ref altcp_new.\n - 'arg' must contain a struct altcp_tls_config *. - */ -struct altcp_pcb *altcp_tls_alloc(void *arg, u8_t ip_type); - -/** @ingroup altcp_tls - * Return pointer to internal TLS context so application can tweak it. - * Real type depends on port (e.g. mbedtls) - */ -void *altcp_tls_context(struct altcp_pcb *conn); - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_ALTCP_TLS */ -#endif /* LWIP_ALTCP */ -#endif /* LWIP_HDR_ALTCP_TLS_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/api.h b/Middlewares/Third_Party/LwIP/src/include/lwip/api.h deleted file mode 100644 index c2afaf2..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/api.h +++ /dev/null @@ -1,431 +0,0 @@ -/** - * @file - * netconn API (to be used from non-TCPIP threads) - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_API_H -#define LWIP_HDR_API_H - -#include "lwip/opt.h" - -#if LWIP_NETCONN || LWIP_SOCKET /* don't build if not configured for use in lwipopts.h */ -/* Note: Netconn API is always available when sockets are enabled - - * sockets are implemented on top of them */ - -#include "lwip/arch.h" -#include "lwip/netbuf.h" -#include "lwip/sys.h" -#include "lwip/ip_addr.h" -#include "lwip/err.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* Throughout this file, IP addresses and port numbers are expected to be in - * the same byte order as in the corresponding pcb. - */ - -/* Flags for netconn_write (u8_t) */ -#define NETCONN_NOFLAG 0x00 -#define NETCONN_NOCOPY 0x00 /* Only for source code compatibility */ -#define NETCONN_COPY 0x01 -#define NETCONN_MORE 0x02 -#define NETCONN_DONTBLOCK 0x04 -#define NETCONN_NOAUTORCVD 0x08 /* prevent netconn_recv_data_tcp() from updating the tcp window - must be done manually via netconn_tcp_recvd() */ -#define NETCONN_NOFIN 0x10 /* upper layer already received data, leave FIN in queue until called again */ - -/* Flags for struct netconn.flags (u8_t) */ -/** This netconn had an error, don't block on recvmbox/acceptmbox any more */ -#define NETCONN_FLAG_MBOXCLOSED 0x01 -/** Should this netconn avoid blocking? */ -#define NETCONN_FLAG_NON_BLOCKING 0x02 -/** Was the last connect action a non-blocking one? */ -#define NETCONN_FLAG_IN_NONBLOCKING_CONNECT 0x04 -#if LWIP_NETCONN_FULLDUPLEX - /** The mbox of this netconn is being deallocated, don't use it anymore */ -#define NETCONN_FLAG_MBOXINVALID 0x08 -#endif /* LWIP_NETCONN_FULLDUPLEX */ -/** If a nonblocking write has been rejected before, poll_tcp needs to - check if the netconn is writable again */ -#define NETCONN_FLAG_CHECK_WRITESPACE 0x10 -#if LWIP_IPV6 -/** If this flag is set then only IPv6 communication is allowed on the - netconn. As per RFC#3493 this features defaults to OFF allowing - dual-stack usage by default. */ -#define NETCONN_FLAG_IPV6_V6ONLY 0x20 -#endif /* LWIP_IPV6 */ -#if LWIP_NETBUF_RECVINFO -/** Received packet info will be recorded for this netconn */ -#define NETCONN_FLAG_PKTINFO 0x40 -#endif /* LWIP_NETBUF_RECVINFO */ -/** A FIN has been received but not passed to the application yet */ -#define NETCONN_FIN_RX_PENDING 0x80 - -/* Helpers to process several netconn_types by the same code */ -#define NETCONNTYPE_GROUP(t) ((t)&0xF0) -#define NETCONNTYPE_DATAGRAM(t) ((t)&0xE0) -#if LWIP_IPV6 -#define NETCONN_TYPE_IPV6 0x08 -#define NETCONNTYPE_ISIPV6(t) (((t)&NETCONN_TYPE_IPV6) != 0) -#define NETCONNTYPE_ISUDPLITE(t) (((t)&0xF3) == NETCONN_UDPLITE) -#define NETCONNTYPE_ISUDPNOCHKSUM(t) (((t)&0xF3) == NETCONN_UDPNOCHKSUM) -#else /* LWIP_IPV6 */ -#define NETCONNTYPE_ISIPV6(t) (0) -#define NETCONNTYPE_ISUDPLITE(t) ((t) == NETCONN_UDPLITE) -#define NETCONNTYPE_ISUDPNOCHKSUM(t) ((t) == NETCONN_UDPNOCHKSUM) -#endif /* LWIP_IPV6 */ - -/** @ingroup netconn_common - * Protocol family and type of the netconn - */ -enum netconn_type { - NETCONN_INVALID = 0, - /** TCP IPv4 */ - NETCONN_TCP = 0x10, -#if LWIP_IPV6 - /** TCP IPv6 */ - NETCONN_TCP_IPV6 = NETCONN_TCP | NETCONN_TYPE_IPV6 /* 0x18 */, -#endif /* LWIP_IPV6 */ - /** UDP IPv4 */ - NETCONN_UDP = 0x20, - /** UDP IPv4 lite */ - NETCONN_UDPLITE = 0x21, - /** UDP IPv4 no checksum */ - NETCONN_UDPNOCHKSUM = 0x22, - -#if LWIP_IPV6 - /** UDP IPv6 (dual-stack by default, unless you call @ref netconn_set_ipv6only) */ - NETCONN_UDP_IPV6 = NETCONN_UDP | NETCONN_TYPE_IPV6 /* 0x28 */, - /** UDP IPv6 lite (dual-stack by default, unless you call @ref netconn_set_ipv6only) */ - NETCONN_UDPLITE_IPV6 = NETCONN_UDPLITE | NETCONN_TYPE_IPV6 /* 0x29 */, - /** UDP IPv6 no checksum (dual-stack by default, unless you call @ref netconn_set_ipv6only) */ - NETCONN_UDPNOCHKSUM_IPV6 = NETCONN_UDPNOCHKSUM | NETCONN_TYPE_IPV6 /* 0x2a */, -#endif /* LWIP_IPV6 */ - - /** Raw connection IPv4 */ - NETCONN_RAW = 0x40 -#if LWIP_IPV6 - /** Raw connection IPv6 (dual-stack by default, unless you call @ref netconn_set_ipv6only) */ - , NETCONN_RAW_IPV6 = NETCONN_RAW | NETCONN_TYPE_IPV6 /* 0x48 */ -#endif /* LWIP_IPV6 */ -}; - -/** Current state of the netconn. Non-TCP netconns are always - * in state NETCONN_NONE! */ -enum netconn_state { - NETCONN_NONE, - NETCONN_WRITE, - NETCONN_LISTEN, - NETCONN_CONNECT, - NETCONN_CLOSE -}; - -/** Used to inform the callback function about changes - * - * Event explanation: - * - * In the netconn implementation, there are three ways to block a client: - * - * - accept mbox (sys_arch_mbox_fetch(&conn->acceptmbox, &accept_ptr, 0); in netconn_accept()) - * - receive mbox (sys_arch_mbox_fetch(&conn->recvmbox, &buf, 0); in netconn_recv_data()) - * - send queue is full (sys_arch_sem_wait(LWIP_API_MSG_SEM(msg), 0); in lwip_netconn_do_write()) - * - * The events have to be seen as events signaling the state of these mboxes/semaphores. For non-blocking - * connections, you need to know in advance whether a call to a netconn function call would block or not, - * and these events tell you about that. - * - * RCVPLUS events say: Safe to perform a potentially blocking call call once more. - * They are counted in sockets - three RCVPLUS events for accept mbox means you are safe - * to call netconn_accept 3 times without being blocked. - * Same thing for receive mbox. - * - * RCVMINUS events say: Your call to to a possibly blocking function is "acknowledged". - * Socket implementation decrements the counter. - * - * For TX, there is no need to count, its merely a flag. SENDPLUS means you may send something. - * SENDPLUS occurs when enough data was delivered to peer so netconn_send() can be called again. - * A SENDMINUS event occurs when the next call to a netconn_send() would be blocking. - */ -enum netconn_evt { - NETCONN_EVT_RCVPLUS, - NETCONN_EVT_RCVMINUS, - NETCONN_EVT_SENDPLUS, - NETCONN_EVT_SENDMINUS, - NETCONN_EVT_ERROR -}; - -#if LWIP_IGMP || (LWIP_IPV6 && LWIP_IPV6_MLD) -/** Used for netconn_join_leave_group() */ -enum netconn_igmp { - NETCONN_JOIN, - NETCONN_LEAVE -}; -#endif /* LWIP_IGMP || (LWIP_IPV6 && LWIP_IPV6_MLD) */ - -#if LWIP_DNS -/* Used for netconn_gethostbyname_addrtype(), these should match the DNS_ADDRTYPE defines in dns.h */ -#define NETCONN_DNS_DEFAULT NETCONN_DNS_IPV4_IPV6 -#define NETCONN_DNS_IPV4 0 -#define NETCONN_DNS_IPV6 1 -#define NETCONN_DNS_IPV4_IPV6 2 /* try to resolve IPv4 first, try IPv6 if IPv4 fails only */ -#define NETCONN_DNS_IPV6_IPV4 3 /* try to resolve IPv6 first, try IPv4 if IPv6 fails only */ -#endif /* LWIP_DNS */ - -/* forward-declare some structs to avoid to include their headers */ -struct ip_pcb; -struct tcp_pcb; -struct udp_pcb; -struct raw_pcb; -struct netconn; -struct api_msg; - -/** A callback prototype to inform about events for a netconn */ -typedef void (* netconn_callback)(struct netconn *, enum netconn_evt, u16_t len); - -/** A netconn descriptor */ -struct netconn { - /** type of the netconn (TCP, UDP or RAW) */ - enum netconn_type type; - /** current state of the netconn */ - enum netconn_state state; - /** the lwIP internal protocol control block */ - union { - struct ip_pcb *ip; - struct tcp_pcb *tcp; - struct udp_pcb *udp; - struct raw_pcb *raw; - } pcb; - /** the last asynchronous unreported error this netconn had */ - err_t pending_err; -#if !LWIP_NETCONN_SEM_PER_THREAD - /** sem that is used to synchronously execute functions in the core context */ - sys_sem_t op_completed; -#endif - /** mbox where received packets are stored until they are fetched - by the netconn application thread (can grow quite big) */ - sys_mbox_t recvmbox; -#if LWIP_TCP - /** mbox where new connections are stored until processed - by the application thread */ - sys_mbox_t acceptmbox; -#endif /* LWIP_TCP */ -#if LWIP_NETCONN_FULLDUPLEX - /** number of threads waiting on an mbox. This is required to unblock - all threads when closing while threads are waiting. */ - int mbox_threads_waiting; -#endif - /** only used for socket layer */ -#if LWIP_SOCKET - int socket; -#endif /* LWIP_SOCKET */ -#if LWIP_SO_SNDTIMEO - /** timeout to wait for sending data (which means enqueueing data for sending - in internal buffers) in milliseconds */ - s32_t send_timeout; -#endif /* LWIP_SO_RCVTIMEO */ -#if LWIP_SO_RCVTIMEO - /** timeout in milliseconds to wait for new data to be received - (or connections to arrive for listening netconns) */ - u32_t recv_timeout; -#endif /* LWIP_SO_RCVTIMEO */ -#if LWIP_SO_RCVBUF - /** maximum amount of bytes queued in recvmbox - not used for TCP: adjust TCP_WND instead! */ - int recv_bufsize; - /** number of bytes currently in recvmbox to be received, - tested against recv_bufsize to limit bytes on recvmbox - for UDP and RAW, used for FIONREAD */ - int recv_avail; -#endif /* LWIP_SO_RCVBUF */ -#if LWIP_SO_LINGER - /** values <0 mean linger is disabled, values > 0 are seconds to linger */ - s16_t linger; -#endif /* LWIP_SO_LINGER */ - /** flags holding more netconn-internal state, see NETCONN_FLAG_* defines */ - u8_t flags; -#if LWIP_TCP - /** TCP: when data passed to netconn_write doesn't fit into the send buffer, - this temporarily stores the message. - Also used during connect and close. */ - struct api_msg *current_msg; -#endif /* LWIP_TCP */ - /** A callback function that is informed about events for this netconn */ - netconn_callback callback; -}; - -/** This vector type is passed to @ref netconn_write_vectors_partly to send - * multiple buffers at once. - * ATTENTION: This type has to directly map struct iovec since one is casted - * into the other! - */ -struct netvector { - /** pointer to the application buffer that contains the data to send */ - const void *ptr; - /** size of the application data to send */ - size_t len; -}; - -/** Register an Network connection event */ -#define API_EVENT(c,e,l) if (c->callback) { \ - (*c->callback)(c, e, l); \ - } - -/* Network connection functions: */ - -/** @ingroup netconn_common - * Create new netconn connection - * @param t @ref netconn_type */ -#define netconn_new(t) netconn_new_with_proto_and_callback(t, 0, NULL) -#define netconn_new_with_callback(t, c) netconn_new_with_proto_and_callback(t, 0, c) -struct netconn *netconn_new_with_proto_and_callback(enum netconn_type t, u8_t proto, - netconn_callback callback); -err_t netconn_prepare_delete(struct netconn *conn); -err_t netconn_delete(struct netconn *conn); -/** Get the type of a netconn (as enum netconn_type). */ -#define netconn_type(conn) (conn->type) - -err_t netconn_getaddr(struct netconn *conn, ip_addr_t *addr, - u16_t *port, u8_t local); -/** @ingroup netconn_common */ -#define netconn_peer(c,i,p) netconn_getaddr(c,i,p,0) -/** @ingroup netconn_common */ -#define netconn_addr(c,i,p) netconn_getaddr(c,i,p,1) - -err_t netconn_bind(struct netconn *conn, const ip_addr_t *addr, u16_t port); -err_t netconn_bind_if(struct netconn *conn, u8_t if_idx); -err_t netconn_connect(struct netconn *conn, const ip_addr_t *addr, u16_t port); -err_t netconn_disconnect (struct netconn *conn); -err_t netconn_listen_with_backlog(struct netconn *conn, u8_t backlog); -/** @ingroup netconn_tcp */ -#define netconn_listen(conn) netconn_listen_with_backlog(conn, TCP_DEFAULT_LISTEN_BACKLOG) -err_t netconn_accept(struct netconn *conn, struct netconn **new_conn); -err_t netconn_recv(struct netconn *conn, struct netbuf **new_buf); -err_t netconn_recv_udp_raw_netbuf(struct netconn *conn, struct netbuf **new_buf); -err_t netconn_recv_udp_raw_netbuf_flags(struct netconn *conn, struct netbuf **new_buf, u8_t apiflags); -err_t netconn_recv_tcp_pbuf(struct netconn *conn, struct pbuf **new_buf); -err_t netconn_recv_tcp_pbuf_flags(struct netconn *conn, struct pbuf **new_buf, u8_t apiflags); -err_t netconn_tcp_recvd(struct netconn *conn, size_t len); -err_t netconn_sendto(struct netconn *conn, struct netbuf *buf, - const ip_addr_t *addr, u16_t port); -err_t netconn_send(struct netconn *conn, struct netbuf *buf); -err_t netconn_write_partly(struct netconn *conn, const void *dataptr, size_t size, - u8_t apiflags, size_t *bytes_written); -err_t netconn_write_vectors_partly(struct netconn *conn, struct netvector *vectors, u16_t vectorcnt, - u8_t apiflags, size_t *bytes_written); -/** @ingroup netconn_tcp */ -#define netconn_write(conn, dataptr, size, apiflags) \ - netconn_write_partly(conn, dataptr, size, apiflags, NULL) -err_t netconn_close(struct netconn *conn); -err_t netconn_shutdown(struct netconn *conn, u8_t shut_rx, u8_t shut_tx); - -#if LWIP_IGMP || (LWIP_IPV6 && LWIP_IPV6_MLD) -err_t netconn_join_leave_group(struct netconn *conn, const ip_addr_t *multiaddr, - const ip_addr_t *netif_addr, enum netconn_igmp join_or_leave); -err_t netconn_join_leave_group_netif(struct netconn *conn, const ip_addr_t *multiaddr, - u8_t if_idx, enum netconn_igmp join_or_leave); -#endif /* LWIP_IGMP || (LWIP_IPV6 && LWIP_IPV6_MLD) */ -#if LWIP_DNS -#if LWIP_IPV4 && LWIP_IPV6 -err_t netconn_gethostbyname_addrtype(const char *name, ip_addr_t *addr, u8_t dns_addrtype); -#define netconn_gethostbyname(name, addr) netconn_gethostbyname_addrtype(name, addr, NETCONN_DNS_DEFAULT) -#else /* LWIP_IPV4 && LWIP_IPV6 */ -err_t netconn_gethostbyname(const char *name, ip_addr_t *addr); -#define netconn_gethostbyname_addrtype(name, addr, dns_addrtype) netconn_gethostbyname(name, addr) -#endif /* LWIP_IPV4 && LWIP_IPV6 */ -#endif /* LWIP_DNS */ - -err_t netconn_err(struct netconn *conn); -#define netconn_recv_bufsize(conn) ((conn)->recv_bufsize) - -#define netconn_set_flags(conn, set_flags) do { (conn)->flags = (u8_t)((conn)->flags | (set_flags)); } while(0) -#define netconn_clear_flags(conn, clr_flags) do { (conn)->flags = (u8_t)((conn)->flags & (u8_t)(~(clr_flags) & 0xff)); } while(0) -#define netconn_is_flag_set(conn, flag) (((conn)->flags & (flag)) != 0) - -/** Set the blocking status of netconn calls (@todo: write/send is missing) */ -#define netconn_set_nonblocking(conn, val) do { if(val) { \ - netconn_set_flags(conn, NETCONN_FLAG_NON_BLOCKING); \ -} else { \ - netconn_clear_flags(conn, NETCONN_FLAG_NON_BLOCKING); }} while(0) -/** Get the blocking status of netconn calls (@todo: write/send is missing) */ -#define netconn_is_nonblocking(conn) (((conn)->flags & NETCONN_FLAG_NON_BLOCKING) != 0) - -#if LWIP_IPV6 -/** @ingroup netconn_common - * TCP: Set the IPv6 ONLY status of netconn calls (see NETCONN_FLAG_IPV6_V6ONLY) - */ -#define netconn_set_ipv6only(conn, val) do { if(val) { \ - netconn_set_flags(conn, NETCONN_FLAG_IPV6_V6ONLY); \ -} else { \ - netconn_clear_flags(conn, NETCONN_FLAG_IPV6_V6ONLY); }} while(0) -/** @ingroup netconn_common - * TCP: Get the IPv6 ONLY status of netconn calls (see NETCONN_FLAG_IPV6_V6ONLY) - */ -#define netconn_get_ipv6only(conn) (((conn)->flags & NETCONN_FLAG_IPV6_V6ONLY) != 0) -#endif /* LWIP_IPV6 */ - -#if LWIP_SO_SNDTIMEO -/** Set the send timeout in milliseconds */ -#define netconn_set_sendtimeout(conn, timeout) ((conn)->send_timeout = (timeout)) -/** Get the send timeout in milliseconds */ -#define netconn_get_sendtimeout(conn) ((conn)->send_timeout) -#endif /* LWIP_SO_SNDTIMEO */ -#if LWIP_SO_RCVTIMEO -/** Set the receive timeout in milliseconds */ -#define netconn_set_recvtimeout(conn, timeout) ((conn)->recv_timeout = (timeout)) -/** Get the receive timeout in milliseconds */ -#define netconn_get_recvtimeout(conn) ((conn)->recv_timeout) -#endif /* LWIP_SO_RCVTIMEO */ -#if LWIP_SO_RCVBUF -/** Set the receive buffer in bytes */ -#define netconn_set_recvbufsize(conn, recvbufsize) ((conn)->recv_bufsize = (recvbufsize)) -/** Get the receive buffer in bytes */ -#define netconn_get_recvbufsize(conn) ((conn)->recv_bufsize) -#endif /* LWIP_SO_RCVBUF*/ - -#if LWIP_NETCONN_SEM_PER_THREAD -void netconn_thread_init(void); -void netconn_thread_cleanup(void); -#else /* LWIP_NETCONN_SEM_PER_THREAD */ -#define netconn_thread_init() -#define netconn_thread_cleanup() -#endif /* LWIP_NETCONN_SEM_PER_THREAD */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_NETCONN || LWIP_SOCKET */ - -#endif /* LWIP_HDR_API_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/altcp_proxyconnect.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/altcp_proxyconnect.h deleted file mode 100644 index 65d3127..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/altcp_proxyconnect.h +++ /dev/null @@ -1,79 +0,0 @@ -/** - * @file - * Application layered TCP connection API that executes a proxy-connect. - * - * This file provides a starting layer that executes a proxy-connect e.g. to - * set up TLS connections through a http proxy. - */ - -/* - * Copyright (c) 2018 Simon Goldschmidt - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Simon Goldschmidt - * - */ - -#ifndef LWIP_HDR_APPS_ALTCP_PROXYCONNECT_H -#define LWIP_HDR_APPS_ALTCP_PROXYCONNECT_H - -#include "lwip/opt.h" - -#if LWIP_ALTCP /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/ip_addr.h" - -#ifdef __cplusplus -extern "C" { -#endif - -struct altcp_proxyconnect_config { - ip_addr_t proxy_addr; - u16_t proxy_port; -}; - - -struct altcp_pcb *altcp_proxyconnect_new(struct altcp_proxyconnect_config *config, struct altcp_pcb *inner_pcb); -struct altcp_pcb *altcp_proxyconnect_new_tcp(struct altcp_proxyconnect_config *config, u8_t ip_type); - -struct altcp_pcb *altcp_proxyconnect_alloc(void *arg, u8_t ip_type); - -#if LWIP_ALTCP_TLS -struct altcp_proxyconnect_tls_config { - struct altcp_proxyconnect_config proxy; - struct altcp_tls_config *tls_config; -}; - -struct altcp_pcb *altcp_proxyconnect_tls_alloc(void *arg, u8_t ip_type); -#endif /* LWIP_ALTCP_TLS */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_ALTCP */ -#endif /* LWIP_HDR_APPS_ALTCP_PROXYCONNECT_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/altcp_tls_mbedtls_opts.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/altcp_tls_mbedtls_opts.h deleted file mode 100644 index 36cddd9..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/altcp_tls_mbedtls_opts.h +++ /dev/null @@ -1,67 +0,0 @@ -/** - * @file - * Application layered TCP/TLS connection API (to be used from TCPIP thread) - * - * This file contains options for an mbedtls port of the TLS layer. - */ - -/* - * Copyright (c) 2017 Simon Goldschmidt - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Simon Goldschmidt - * - */ -#ifndef LWIP_HDR_ALTCP_TLS_OPTS_H -#define LWIP_HDR_ALTCP_TLS_OPTS_H - -#include "lwip/opt.h" - -#if LWIP_ALTCP /* don't build if not configured for use in lwipopts.h */ - -/** LWIP_ALTCP_TLS_MBEDTLS==1: use mbedTLS for TLS support for altcp API - * mbedtls include directory must be reachable via include search path - */ -#ifndef LWIP_ALTCP_TLS_MBEDTLS -#define LWIP_ALTCP_TLS_MBEDTLS 0 -#endif - -/** Configure debug level of this file */ -#ifndef ALTCP_MBEDTLS_DEBUG -#define ALTCP_MBEDTLS_DEBUG LWIP_DBG_OFF -#endif - -/** Set a session timeout in seconds for the basic session cache - * ATTENTION: Using a session cache can lower security by reusing keys! - */ -#ifndef ALTCP_MBEDTLS_SESSION_CACHE_TIMEOUT_SECONDS -#define ALTCP_MBEDTLS_SESSION_CACHE_TIMEOUT_SECONDS 0 -#endif - -#endif /* LWIP_ALTCP */ - -#endif /* LWIP_HDR_ALTCP_TLS_OPTS_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/fs.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/fs.h deleted file mode 100644 index 67b9a60..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/fs.h +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright (c) 2001-2003 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_APPS_FS_H -#define LWIP_HDR_APPS_FS_H - -#include "httpd_opts.h" -#include "lwip/err.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define FS_READ_EOF -1 -#define FS_READ_DELAYED -2 - -#if HTTPD_PRECALCULATED_CHECKSUM -struct fsdata_chksum { - u32_t offset; - u16_t chksum; - u16_t len; -}; -#endif /* HTTPD_PRECALCULATED_CHECKSUM */ - -#define FS_FILE_FLAGS_HEADER_INCLUDED 0x01 -#define FS_FILE_FLAGS_HEADER_PERSISTENT 0x02 -#define FS_FILE_FLAGS_HEADER_HTTPVER_1_1 0x04 -#define FS_FILE_FLAGS_SSI 0x08 - -/** Define FS_FILE_EXTENSION_T_DEFINED if you have typedef'ed to your private - * pointer type (defaults to 'void' so the default usage is 'void*') - */ -#ifndef FS_FILE_EXTENSION_T_DEFINED -typedef void fs_file_extension; -#endif - -struct fs_file { - const char *data; - int len; - int index; - /* pextension is free for implementations to hold private (extensional) - arbitrary data, e.g. holding some file state or file system handle */ - fs_file_extension *pextension; -#if HTTPD_PRECALCULATED_CHECKSUM - const struct fsdata_chksum *chksum; - u16_t chksum_count; -#endif /* HTTPD_PRECALCULATED_CHECKSUM */ - u8_t flags; -#if LWIP_HTTPD_CUSTOM_FILES - u8_t is_custom_file; -#endif /* LWIP_HTTPD_CUSTOM_FILES */ -#if LWIP_HTTPD_FILE_STATE - void *state; -#endif /* LWIP_HTTPD_FILE_STATE */ -}; - -#if LWIP_HTTPD_FS_ASYNC_READ -typedef void (*fs_wait_cb)(void *arg); -#endif /* LWIP_HTTPD_FS_ASYNC_READ */ - -err_t fs_open(struct fs_file *file, const char *name); -void fs_close(struct fs_file *file); -#if LWIP_HTTPD_DYNAMIC_FILE_READ -#if LWIP_HTTPD_FS_ASYNC_READ -int fs_read_async(struct fs_file *file, char *buffer, int count, fs_wait_cb callback_fn, void *callback_arg); -#else /* LWIP_HTTPD_FS_ASYNC_READ */ -int fs_read(struct fs_file *file, char *buffer, int count); -#endif /* LWIP_HTTPD_FS_ASYNC_READ */ -#endif /* LWIP_HTTPD_DYNAMIC_FILE_READ */ -#if LWIP_HTTPD_FS_ASYNC_READ -int fs_is_file_ready(struct fs_file *file, fs_wait_cb callback_fn, void *callback_arg); -#endif /* LWIP_HTTPD_FS_ASYNC_READ */ -int fs_bytes_left(struct fs_file *file); - -#if LWIP_HTTPD_FILE_STATE -/** This user-defined function is called when a file is opened. */ -void *fs_state_init(struct fs_file *file, const char *name); -/** This user-defined function is called when a file is closed. */ -void fs_state_free(struct fs_file *file, void *state); -#endif /* #if LWIP_HTTPD_FILE_STATE */ - -struct fsdata_file { - const struct fsdata_file *next; - const unsigned char *name; - const unsigned char *data; - int len; - u8_t flags; -#if HTTPD_PRECALCULATED_CHECKSUM - u16_t chksum_count; - const struct fsdata_chksum *chksum; -#endif /* HTTPD_PRECALCULATED_CHECKSUM */ -}; - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_APPS_FS_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/http_client.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/http_client.h deleted file mode 100644 index 8a06308..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/http_client.h +++ /dev/null @@ -1,160 +0,0 @@ -/** - * @file - * HTTP client - */ - -/* - * Copyright (c) 2018 Simon Goldschmidt - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Simon Goldschmidt - * - */ - -#ifndef LWIP_HDR_APPS_HTTP_CLIENT_H -#define LWIP_HDR_APPS_HTTP_CLIENT_H - -#include "lwip/opt.h" -#include "lwip/ip_addr.h" -#include "lwip/err.h" -#include "lwip/altcp.h" -#include "lwip/prot/iana.h" -#include "lwip/pbuf.h" - -#if LWIP_TCP && LWIP_CALLBACK_API - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @ingroup httpc - * HTTPC_HAVE_FILE_IO: define this to 1 to have functions dowloading directly - * to disk via fopen/fwrite. - * These functions are example implementations of the interface only. - */ -#ifndef LWIP_HTTPC_HAVE_FILE_IO -#define LWIP_HTTPC_HAVE_FILE_IO 0 -#endif - -/** - * @ingroup httpc - * The default TCP port used for HTTP - */ -#define HTTP_DEFAULT_PORT LWIP_IANA_PORT_HTTP - -/** - * @ingroup httpc - * HTTP client result codes - */ -typedef enum ehttpc_result { - /** File successfully received */ - HTTPC_RESULT_OK = 0, - /** Unknown error */ - HTTPC_RESULT_ERR_UNKNOWN = 1, - /** Connection to server failed */ - HTTPC_RESULT_ERR_CONNECT = 2, - /** Failed to resolve server hostname */ - HTTPC_RESULT_ERR_HOSTNAME = 3, - /** Connection unexpectedly closed by remote server */ - HTTPC_RESULT_ERR_CLOSED = 4, - /** Connection timed out (server didn't respond in time) */ - HTTPC_RESULT_ERR_TIMEOUT = 5, - /** Server responded with an error code */ - HTTPC_RESULT_ERR_SVR_RESP = 6, - /** Local memory error */ - HTTPC_RESULT_ERR_MEM = 7, - /** Local abort */ - HTTPC_RESULT_LOCAL_ABORT = 8, - /** Content length mismatch */ - HTTPC_RESULT_ERR_CONTENT_LEN = 9 -} httpc_result_t; - -typedef struct _httpc_state httpc_state_t; - -/** - * @ingroup httpc - * Prototype of a http client callback function - * - * @param arg argument specified when initiating the request - * @param httpc_result result of the http transfer (see enum httpc_result_t) - * @param rx_content_len number of bytes received (without headers) - * @param srv_res this contains the http status code received (if any) - * @param err an error returned by internal lwip functions, can help to specify - * the source of the error but must not necessarily be != ERR_OK - */ -typedef void (*httpc_result_fn)(void *arg, httpc_result_t httpc_result, u32_t rx_content_len, u32_t srv_res, err_t err); - -/** - * @ingroup httpc - * Prototype of http client callback: called when the headers are received - * - * @param connection http client connection - * @param arg argument specified when initiating the request - * @param hdr header pbuf(s) (may contain data also) - * @param hdr_len length of the heders in 'hdr' - * @param content_len content length as received in the headers (-1 if not received) - * @return if != ERR_OK is returned, the connection is aborted - */ -typedef err_t (*httpc_headers_done_fn)(httpc_state_t *connection, void *arg, struct pbuf *hdr, u16_t hdr_len, u32_t content_len); - -typedef struct _httpc_connection { - ip_addr_t proxy_addr; - u16_t proxy_port; - u8_t use_proxy; - /* @todo: add username:pass? */ - -#if LWIP_ALTCP - altcp_allocator_t *altcp_allocator; -#endif - - /* this callback is called when the transfer is finished (or aborted) */ - httpc_result_fn result_fn; - /* this callback is called after receiving the http headers - It can abort the connection by returning != ERR_OK */ - httpc_headers_done_fn headers_done_fn; -} httpc_connection_t; - -err_t httpc_get_file(const ip_addr_t* server_addr, u16_t port, const char* uri, const httpc_connection_t *settings, - altcp_recv_fn recv_fn, void* callback_arg, httpc_state_t **connection); -err_t httpc_get_file_dns(const char* server_name, u16_t port, const char* uri, const httpc_connection_t *settings, - altcp_recv_fn recv_fn, void* callback_arg, httpc_state_t **connection); - -#if LWIP_HTTPC_HAVE_FILE_IO -err_t httpc_get_file_to_disk(const ip_addr_t* server_addr, u16_t port, const char* uri, const httpc_connection_t *settings, - void* callback_arg, const char* local_file_name, httpc_state_t **connection); -err_t httpc_get_file_dns_to_disk(const char* server_name, u16_t port, const char* uri, const httpc_connection_t *settings, - void* callback_arg, const char* local_file_name, httpc_state_t **connection); -#endif /* LWIP_HTTPC_HAVE_FILE_IO */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_TCP && LWIP_CALLBACK_API */ - -#endif /* LWIP_HDR_APPS_HTTP_CLIENT_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/httpd.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/httpd.h deleted file mode 100644 index e872429..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/httpd.h +++ /dev/null @@ -1,255 +0,0 @@ -/** - * @file - * HTTP server - */ - -/* - * Copyright (c) 2001-2003 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - * This version of the file has been modified by Texas Instruments to offer - * simple server-side-include (SSI) and Common Gateway Interface (CGI) - * capability. - */ - -#ifndef LWIP_HDR_APPS_HTTPD_H -#define LWIP_HDR_APPS_HTTPD_H - -#include "httpd_opts.h" -#include "lwip/err.h" -#include "lwip/pbuf.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#if LWIP_HTTPD_CGI - -/** - * @ingroup httpd - * Function pointer for a CGI script handler. - * - * This function is called each time the HTTPD server is asked for a file - * whose name was previously registered as a CGI function using a call to - * http_set_cgi_handlers. The iIndex parameter provides the index of the - * CGI within the cgis array passed to http_set_cgi_handlers. Parameters - * pcParam and pcValue provide access to the parameters provided along with - * the URI. iNumParams provides a count of the entries in the pcParam and - * pcValue arrays. Each entry in the pcParam array contains the name of a - * parameter with the corresponding entry in the pcValue array containing the - * value for that parameter. Note that pcParam may contain multiple elements - * with the same name if, for example, a multi-selection list control is used - * in the form generating the data. - * - * The function should return a pointer to a character string which is the - * path and filename of the response that is to be sent to the connected - * browser, for example "/thanks.htm" or "/response/error.ssi". - * - * The maximum number of parameters that will be passed to this function via - * iNumParams is defined by LWIP_HTTPD_MAX_CGI_PARAMETERS. Any parameters in - * the incoming HTTP request above this number will be discarded. - * - * Requests intended for use by this CGI mechanism must be sent using the GET - * method (which encodes all parameters within the URI rather than in a block - * later in the request). Attempts to use the POST method will result in the - * request being ignored. - * - */ -typedef const char *(*tCGIHandler)(int iIndex, int iNumParams, char *pcParam[], - char *pcValue[]); - -/** - * @ingroup httpd - * Structure defining the base filename (URL) of a CGI and the associated - * function which is to be called when that URL is requested. - */ -typedef struct -{ - const char *pcCGIName; - tCGIHandler pfnCGIHandler; -} tCGI; - -void http_set_cgi_handlers(const tCGI *pCGIs, int iNumHandlers); - -#endif /* LWIP_HTTPD_CGI */ - -#if LWIP_HTTPD_CGI || LWIP_HTTPD_CGI_SSI - -#if LWIP_HTTPD_CGI_SSI -/* we have to prototype this struct here to make it available for the handler */ -struct fs_file; - -/** Define this generic CGI handler in your application. - * It is called once for every URI with parameters. - * The parameters can be stored to the object passed as connection_state, which - * is allocated to file->state via fs_state_init() from fs_open() or fs_open_custom(). - * Content creation via SSI or complete dynamic files can retrieve the CGI params from there. - */ -extern void httpd_cgi_handler(struct fs_file *file, const char* uri, int iNumParams, - char **pcParam, char **pcValue -#if defined(LWIP_HTTPD_FILE_STATE) && LWIP_HTTPD_FILE_STATE - , void *connection_state -#endif /* LWIP_HTTPD_FILE_STATE */ - ); -#endif /* LWIP_HTTPD_CGI_SSI */ - -#endif /* LWIP_HTTPD_CGI || LWIP_HTTPD_CGI_SSI */ - -#if LWIP_HTTPD_SSI - -/** - * @ingroup httpd - * Function pointer for the SSI tag handler callback. - * - * This function will be called each time the HTTPD server detects a tag of the - * form in files with extensions mentioned in the g_pcSSIExtensions - * array (currently .shtml, .shtm, .ssi, .xml, .json) where "name" appears as - * one of the tags supplied to http_set_ssi_handler in the tags array. The - * returned insert string, which will be appended after the the string - * "" in file sent back to the client, should be written to pointer - * pcInsert. iInsertLen contains the size of the buffer pointed to by - * pcInsert. The iIndex parameter provides the zero-based index of the tag as - * found in the tags array and identifies the tag that is to be processed. - * - * The handler returns the number of characters written to pcInsert excluding - * any terminating NULL or HTTPD_SSI_TAG_UNKNOWN when tag is not recognized. - * - * Note that the behavior of this SSI mechanism is somewhat different from the - * "normal" SSI processing as found in, for example, the Apache web server. In - * this case, the inserted text is appended following the SSI tag rather than - * replacing the tag entirely. This allows for an implementation that does not - * require significant additional buffering of output data yet which will still - * offer usable SSI functionality. One downside to this approach is when - * attempting to use SSI within JavaScript. The SSI tag is structured to - * resemble an HTML comment but this syntax does not constitute a comment - * within JavaScript and, hence, leaving the tag in place will result in - * problems in these cases. In order to avoid these problems, define - * LWIP_HTTPD_SSI_INCLUDE_TAG as zero in your lwip options file, or use JavaScript - * style block comments in the form / * # name * / (without the spaces). - */ -typedef u16_t (*tSSIHandler)( -#if LWIP_HTTPD_SSI_RAW - const char* ssi_tag_name, -#else /* LWIP_HTTPD_SSI_RAW */ - int iIndex, -#endif /* LWIP_HTTPD_SSI_RAW */ - char *pcInsert, int iInsertLen -#if LWIP_HTTPD_SSI_MULTIPART - , u16_t current_tag_part, u16_t *next_tag_part -#endif /* LWIP_HTTPD_SSI_MULTIPART */ -#if defined(LWIP_HTTPD_FILE_STATE) && LWIP_HTTPD_FILE_STATE - , void *connection_state -#endif /* LWIP_HTTPD_FILE_STATE */ - ); - -/** Set the SSI handler function - * (if LWIP_HTTPD_SSI_RAW==1, only the first argument is used) - */ -void http_set_ssi_handler(tSSIHandler pfnSSIHandler, - const char **ppcTags, int iNumTags); - -/** For LWIP_HTTPD_SSI_RAW==1, return this to indicate the tag is unknown. - * In this case, the webserver writes a warning into the page. - * You can also just return 0 to write nothing for unknown tags. - */ -#define HTTPD_SSI_TAG_UNKNOWN 0xFFFF - -#endif /* LWIP_HTTPD_SSI */ - -#if LWIP_HTTPD_SUPPORT_POST - -/* These functions must be implemented by the application */ - -/** - * @ingroup httpd - * Called when a POST request has been received. The application can decide - * whether to accept it or not. - * - * @param connection Unique connection identifier, valid until httpd_post_end - * is called. - * @param uri The HTTP header URI receiving the POST request. - * @param http_request The raw HTTP request (the first packet, normally). - * @param http_request_len Size of 'http_request'. - * @param content_len Content-Length from HTTP header. - * @param response_uri Filename of response file, to be filled when denying the - * request - * @param response_uri_len Size of the 'response_uri' buffer. - * @param post_auto_wnd Set this to 0 to let the callback code handle window - * updates by calling 'httpd_post_data_recved' (to throttle rx speed) - * default is 1 (httpd handles window updates automatically) - * @return ERR_OK: Accept the POST request, data may be passed in - * another err_t: Deny the POST request, send back 'bad request'. - */ -err_t httpd_post_begin(void *connection, const char *uri, const char *http_request, - u16_t http_request_len, int content_len, char *response_uri, - u16_t response_uri_len, u8_t *post_auto_wnd); - -/** - * @ingroup httpd - * Called for each pbuf of data that has been received for a POST. - * ATTENTION: The application is responsible for freeing the pbufs passed in! - * - * @param connection Unique connection identifier. - * @param p Received data. - * @return ERR_OK: Data accepted. - * another err_t: Data denied, http_post_get_response_uri will be called. - */ -err_t httpd_post_receive_data(void *connection, struct pbuf *p); - -/** - * @ingroup httpd - * Called when all data is received or when the connection is closed. - * The application must return the filename/URI of a file to send in response - * to this POST request. If the response_uri buffer is untouched, a 404 - * response is returned. - * - * @param connection Unique connection identifier. - * @param response_uri Filename of response file, to be filled when denying the request - * @param response_uri_len Size of the 'response_uri' buffer. - */ -void httpd_post_finished(void *connection, char *response_uri, u16_t response_uri_len); - -#if LWIP_HTTPD_POST_MANUAL_WND -void httpd_post_data_recved(void *connection, u16_t recved_len); -#endif /* LWIP_HTTPD_POST_MANUAL_WND */ - -#endif /* LWIP_HTTPD_SUPPORT_POST */ - -void httpd_init(void); - -#if HTTPD_ENABLE_HTTPS -struct altcp_tls_config; -void httpd_inits(struct altcp_tls_config *conf); -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_APPS_HTTPD_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/httpd_opts.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/httpd_opts.h deleted file mode 100644 index 8723961..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/httpd_opts.h +++ /dev/null @@ -1,396 +0,0 @@ -/** - * @file - * HTTP server options list - */ - -/* - * Copyright (c) 2001-2003 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - * This version of the file has been modified by Texas Instruments to offer - * simple server-side-include (SSI) and Common Gateway Interface (CGI) - * capability. - */ - -#ifndef LWIP_HDR_APPS_HTTPD_OPTS_H -#define LWIP_HDR_APPS_HTTPD_OPTS_H - -#include "lwip/opt.h" -#include "lwip/prot/iana.h" - -/** - * @defgroup httpd_opts Options - * @ingroup httpd - * @{ - */ - -/** Set this to 1 to support CGI (old style). - * - * This old style CGI support works by registering an array of URLs and - * associated CGI handler functions (@ref http_set_cgi_handlers). - * This list is scanned just before fs_open is called from request handling. - * The handler can return a new URL that is used internally by the httpd to - * load the returned page (passed to fs_open). - * - * Use this CGI type e.g. to execute specific actions and return a page that - * does not depend on the CGI parameters. - */ -#if !defined LWIP_HTTPD_CGI || defined __DOXYGEN__ -#define LWIP_HTTPD_CGI 0 -#endif - -/** Set this to 1 to support CGI (new style). - * - * This new style CGI support works by calling a global function - * (@ref tCGIHandler) for all URLs that are found. fs_open is called first - * and the URL can not be written by the CGI handler. Instead, this handler gets - * passed the http file state, an object where it can store information derived - * from the CGI URL or parameters. This file state is later passed to SSI, so - * the SSI code can return data depending on CGI input. - * - * Use this CGI handler if you want CGI information passed on to SSI. - */ -#if !defined LWIP_HTTPD_CGI_SSI || defined __DOXYGEN__ -#define LWIP_HTTPD_CGI_SSI 0 -#endif - -/** Set this to 1 to support SSI (Server-Side-Includes) - * - * In contrast to other http servers, this only calls a preregistered callback - * function (@see http_set_ssi_handler) for each tag (in the format of - * ) encountered in SSI-enabled pages. - * SSI-enabled pages must have one of the predefined SSI-enabled file extensions. - * All files with one of these extensions are parsed when sent. - * - * A downside of the current SSI implementation is that persistent connections - * don't work, as the file length is not known in advance (and httpd currently - * relies on the Content-Length header for persistent connections). - * - * To save memory, the maximum tag length is limited (@see LWIP_HTTPD_MAX_TAG_NAME_LEN). - * To save memory, the maximum insertion string length is limited (@see - * LWIP_HTTPD_MAX_TAG_INSERT_LEN). If this is not enought, @ref LWIP_HTTPD_SSI_MULTIPART - * can be used. - */ -#if !defined LWIP_HTTPD_SSI || defined __DOXYGEN__ -#define LWIP_HTTPD_SSI 0 -#endif - -/** Set this to 1 to implement an SSI tag handler callback that gets a const char* - * to the tag (instead of an index into a pre-registered array of known tags) - * If this is 0, the SSI handler callback function is only called pre-registered tags. - */ -#if !defined LWIP_HTTPD_SSI_RAW || defined __DOXYGEN__ -#define LWIP_HTTPD_SSI_RAW 0 -#endif - -/** Set this to 0 to prevent parsing the file extension at runtime to decide - * if a file should be scanned for SSI tags or not. - * Default is 1 (file extensions are checked using the g_pcSSIExtensions array) - * Set to 2 to override this runtime test function. - * - * This is enabled by default, but if you only use a newer version of makefsdata - * supporting the "-ssi" option, this info is already present in - */ -#if !defined LWIP_HTTPD_SSI_BY_FILE_EXTENSION || defined __DOXYGEN__ -#define LWIP_HTTPD_SSI_BY_FILE_EXTENSION 1 -#endif - -/** Set this to 1 to support HTTP POST */ -#if !defined LWIP_HTTPD_SUPPORT_POST || defined __DOXYGEN__ -#define LWIP_HTTPD_SUPPORT_POST 0 -#endif - -/* The maximum number of parameters that the CGI handler can be sent. */ -#if !defined LWIP_HTTPD_MAX_CGI_PARAMETERS || defined __DOXYGEN__ -#define LWIP_HTTPD_MAX_CGI_PARAMETERS 16 -#endif - -/** LWIP_HTTPD_SSI_MULTIPART==1: SSI handler function is called with 2 more - * arguments indicating a counter for insert string that are too long to be - * inserted at once: the SSI handler function must then set 'next_tag_part' - * which will be passed back to it in the next call. */ -#if !defined LWIP_HTTPD_SSI_MULTIPART || defined __DOXYGEN__ -#define LWIP_HTTPD_SSI_MULTIPART 0 -#endif - -/* The maximum length of the string comprising the SSI tag name - * ATTENTION: tags longer than this are ignored, not truncated! - */ -#if !defined LWIP_HTTPD_MAX_TAG_NAME_LEN || defined __DOXYGEN__ -#define LWIP_HTTPD_MAX_TAG_NAME_LEN 8 -#endif - -/* The maximum length of string that can be returned to replace any given tag - * If this buffer is not long enough, use LWIP_HTTPD_SSI_MULTIPART. - */ -#if !defined LWIP_HTTPD_MAX_TAG_INSERT_LEN || defined __DOXYGEN__ -#define LWIP_HTTPD_MAX_TAG_INSERT_LEN 192 -#endif - -#if !defined LWIP_HTTPD_POST_MANUAL_WND || defined __DOXYGEN__ -#define LWIP_HTTPD_POST_MANUAL_WND 0 -#endif - -/** This string is passed in the HTTP header as "Server: " */ -#if !defined HTTPD_SERVER_AGENT || defined __DOXYGEN__ -#define HTTPD_SERVER_AGENT "lwIP/" LWIP_VERSION_STRING " (http://savannah.nongnu.org/projects/lwip)" -#endif - -/** Set this to 1 if you want to include code that creates HTTP headers - * at runtime. Default is off: HTTP headers are then created statically - * by the makefsdata tool. Static headers mean smaller code size, but - * the (readonly) fsdata will grow a bit as every file includes the HTTP - * header. */ -#if !defined LWIP_HTTPD_DYNAMIC_HEADERS || defined __DOXYGEN__ -#define LWIP_HTTPD_DYNAMIC_HEADERS 0 -#endif - -#if !defined HTTPD_DEBUG || defined __DOXYGEN__ -#define HTTPD_DEBUG LWIP_DBG_OFF -#endif - -/** Set this to 1 to use a memp pool for allocating - * struct http_state instead of the heap. - * If enabled, you'll need to define MEMP_NUM_PARALLEL_HTTPD_CONNS - * (and MEMP_NUM_PARALLEL_HTTPD_SSI_CONNS for SSI) to set the size of - * the pool(s). - */ -#if !defined HTTPD_USE_MEM_POOL || defined __DOXYGEN__ -#define HTTPD_USE_MEM_POOL 0 -#endif - -/** The server port for HTTPD to use */ -#if !defined HTTPD_SERVER_PORT || defined __DOXYGEN__ -#define HTTPD_SERVER_PORT LWIP_IANA_PORT_HTTP -#endif - -/** The https server port for HTTPD to use */ -#if !defined HTTPD_SERVER_PORT_HTTPS || defined __DOXYGEN__ -#define HTTPD_SERVER_PORT_HTTPS LWIP_IANA_PORT_HTTPS -#endif - -/** Enable https support? */ -#if !defined HTTPD_ENABLE_HTTPS || defined __DOXYGEN__ -#define HTTPD_ENABLE_HTTPS 0 -#endif - -/** Maximum retries before the connection is aborted/closed. - * - number of times pcb->poll is called -> default is 4*500ms = 2s; - * - reset when pcb->sent is called - */ -#if !defined HTTPD_MAX_RETRIES || defined __DOXYGEN__ -#define HTTPD_MAX_RETRIES 4 -#endif - -/** The poll delay is X*500ms */ -#if !defined HTTPD_POLL_INTERVAL || defined __DOXYGEN__ -#define HTTPD_POLL_INTERVAL 4 -#endif - -/** Priority for tcp pcbs created by HTTPD (very low by default). - * Lower priorities get killed first when running out of memory. - */ -#if !defined HTTPD_TCP_PRIO || defined __DOXYGEN__ -#define HTTPD_TCP_PRIO TCP_PRIO_MIN -#endif - -/** Set this to 1 to enable timing each file sent */ -#if !defined LWIP_HTTPD_TIMING || defined __DOXYGEN__ -#define LWIP_HTTPD_TIMING 0 -#endif -/** Set this to 1 to enable timing each file sent */ -#if !defined HTTPD_DEBUG_TIMING || defined __DOXYGEN__ -#define HTTPD_DEBUG_TIMING LWIP_DBG_OFF -#endif - -/** Set this to one to show error pages when parsing a request fails instead - of simply closing the connection. */ -#if !defined LWIP_HTTPD_SUPPORT_EXTSTATUS || defined __DOXYGEN__ -#define LWIP_HTTPD_SUPPORT_EXTSTATUS 0 -#endif - -/** Set this to 0 to drop support for HTTP/0.9 clients (to save some bytes) */ -#if !defined LWIP_HTTPD_SUPPORT_V09 || defined __DOXYGEN__ -#define LWIP_HTTPD_SUPPORT_V09 1 -#endif - -/** Set this to 1 to enable HTTP/1.1 persistent connections. - * ATTENTION: If the generated file system includes HTTP headers, these must - * include the "Connection: keep-alive" header (pass argument "-11" to makefsdata). - */ -#if !defined LWIP_HTTPD_SUPPORT_11_KEEPALIVE || defined __DOXYGEN__ -#define LWIP_HTTPD_SUPPORT_11_KEEPALIVE 0 -#endif - -/** Set this to 1 to support HTTP request coming in in multiple packets/pbufs */ -#if !defined LWIP_HTTPD_SUPPORT_REQUESTLIST || defined __DOXYGEN__ -#define LWIP_HTTPD_SUPPORT_REQUESTLIST 1 -#endif - -#if LWIP_HTTPD_SUPPORT_REQUESTLIST -/** Number of rx pbufs to enqueue to parse an incoming request (up to the first - newline) */ -#if !defined LWIP_HTTPD_REQ_QUEUELEN || defined __DOXYGEN__ -#define LWIP_HTTPD_REQ_QUEUELEN 5 -#endif - -/** Number of (TCP payload-) bytes (in pbufs) to enqueue to parse and incoming - request (up to the first double-newline) */ -#if !defined LWIP_HTTPD_REQ_BUFSIZE || defined __DOXYGEN__ -#define LWIP_HTTPD_REQ_BUFSIZE LWIP_HTTPD_MAX_REQ_LENGTH -#endif - -/** Defines the maximum length of a HTTP request line (up to the first CRLF, - copied from pbuf into this a global buffer when pbuf- or packet-queues - are received - otherwise the input pbuf is used directly) */ -#if !defined LWIP_HTTPD_MAX_REQ_LENGTH || defined __DOXYGEN__ -#define LWIP_HTTPD_MAX_REQ_LENGTH LWIP_MIN(1023, (LWIP_HTTPD_REQ_QUEUELEN * PBUF_POOL_BUFSIZE)) -#endif -#endif /* LWIP_HTTPD_SUPPORT_REQUESTLIST */ - -/** This is the size of a static buffer used when URIs end with '/'. - * In this buffer, the directory requested is concatenated with all the - * configured default file names. - * Set to 0 to disable checking default filenames on non-root directories. - */ -#if !defined LWIP_HTTPD_MAX_REQUEST_URI_LEN || defined __DOXYGEN__ -#define LWIP_HTTPD_MAX_REQUEST_URI_LEN 63 -#endif - -/** Maximum length of the filename to send as response to a POST request, - * filled in by the application when a POST is finished. - */ -#if !defined LWIP_HTTPD_POST_MAX_RESPONSE_URI_LEN || defined __DOXYGEN__ -#define LWIP_HTTPD_POST_MAX_RESPONSE_URI_LEN 63 -#endif - -/** Set this to 0 to not send the SSI tag (default is on, so the tag will - * be sent in the HTML page */ -#if !defined LWIP_HTTPD_SSI_INCLUDE_TAG || defined __DOXYGEN__ -#define LWIP_HTTPD_SSI_INCLUDE_TAG 1 -#endif - -/** Set this to 1 to call tcp_abort when tcp_close fails with memory error. - * This can be used to prevent consuming all memory in situations where the - * HTTP server has low priority compared to other communication. */ -#if !defined LWIP_HTTPD_ABORT_ON_CLOSE_MEM_ERROR || defined __DOXYGEN__ -#define LWIP_HTTPD_ABORT_ON_CLOSE_MEM_ERROR 0 -#endif - -/** Set this to 1 to kill the oldest connection when running out of - * memory for 'struct http_state' or 'struct http_ssi_state'. - * ATTENTION: This puts all connections on a linked list, so may be kind of slow. - */ -#if !defined LWIP_HTTPD_KILL_OLD_ON_CONNECTIONS_EXCEEDED || defined __DOXYGEN__ -#define LWIP_HTTPD_KILL_OLD_ON_CONNECTIONS_EXCEEDED 0 -#endif - -/** Set this to 1 to send URIs without extension without headers - * (who uses this at all??) */ -#if !defined LWIP_HTTPD_OMIT_HEADER_FOR_EXTENSIONLESS_URI || defined __DOXYGEN__ -#define LWIP_HTTPD_OMIT_HEADER_FOR_EXTENSIONLESS_URI 0 -#endif - -/** Default: Tags are sent from struct http_state and are therefore volatile */ -#if !defined HTTP_IS_TAG_VOLATILE || defined __DOXYGEN__ -#define HTTP_IS_TAG_VOLATILE(ptr) TCP_WRITE_FLAG_COPY -#endif - -/* By default, the httpd is limited to send 2*pcb->mss to keep resource usage low - when http is not an important protocol in the device. */ -#if !defined HTTPD_LIMIT_SENDING_TO_2MSS || defined __DOXYGEN__ -#define HTTPD_LIMIT_SENDING_TO_2MSS 1 -#endif - -/* Define this to a function that returns the maximum amount of data to enqueue. - The function have this signature: u16_t fn(struct altcp_pcb* pcb); - The best place to define this is the hooks file (@see LWIP_HOOK_FILENAME) */ -#if !defined HTTPD_MAX_WRITE_LEN || defined __DOXYGEN__ -#if HTTPD_LIMIT_SENDING_TO_2MSS -#define HTTPD_MAX_WRITE_LEN(pcb) ((u16_t)(2 * altcp_mss(pcb))) -#endif -#endif - -/*------------------- FS OPTIONS -------------------*/ - -/** Set this to 1 and provide the functions: - * - "int fs_open_custom(struct fs_file *file, const char *name)" - * Called first for every opened file to allow opening files - * that are not included in fsdata(_custom).c - * - "void fs_close_custom(struct fs_file *file)" - * Called to free resources allocated by fs_open_custom(). - */ -#if !defined LWIP_HTTPD_CUSTOM_FILES || defined __DOXYGEN__ -#define LWIP_HTTPD_CUSTOM_FILES 0 -#endif - -/** Set this to 1 to support fs_read() to dynamically read file data. - * Without this (default=off), only one-block files are supported, - * and the contents must be ready after fs_open(). - */ -#if !defined LWIP_HTTPD_DYNAMIC_FILE_READ || defined __DOXYGEN__ -#define LWIP_HTTPD_DYNAMIC_FILE_READ 0 -#endif - -/** Set this to 1 to include an application state argument per file - * that is opened. This allows to keep a state per connection/file. - */ -#if !defined LWIP_HTTPD_FILE_STATE || defined __DOXYGEN__ -#define LWIP_HTTPD_FILE_STATE 0 -#endif - -/** HTTPD_PRECALCULATED_CHECKSUM==1: include precompiled checksums for - * predefined (MSS-sized) chunks of the files to prevent having to calculate - * the checksums at runtime. */ -#if !defined HTTPD_PRECALCULATED_CHECKSUM || defined __DOXYGEN__ -#define HTTPD_PRECALCULATED_CHECKSUM 0 -#endif - -/** LWIP_HTTPD_FS_ASYNC_READ==1: support asynchronous read operations - * (fs_read_async returns FS_READ_DELAYED and calls a callback when finished). - */ -#if !defined LWIP_HTTPD_FS_ASYNC_READ || defined __DOXYGEN__ -#define LWIP_HTTPD_FS_ASYNC_READ 0 -#endif - -/** Filename (including path) to use as FS data file */ -#if !defined HTTPD_FSDATA_FILE || defined __DOXYGEN__ -/* HTTPD_USE_CUSTOM_FSDATA: Compatibility with deprecated lwIP option */ -#if defined(HTTPD_USE_CUSTOM_FSDATA) && (HTTPD_USE_CUSTOM_FSDATA != 0) -#define HTTPD_FSDATA_FILE "fsdata_custom.c" -#else -#define HTTPD_FSDATA_FILE "fsdata.c" -#endif -#endif - -/** - * @} - */ - -#endif /* LWIP_HDR_APPS_HTTPD_OPTS_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/lwiperf.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/lwiperf.h deleted file mode 100644 index cc86e7f..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/lwiperf.h +++ /dev/null @@ -1,100 +0,0 @@ -/** - * @file - * lwIP iPerf server implementation - */ - -/* - * Copyright (c) 2014 Simon Goldschmidt - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Simon Goldschmidt - * - */ -#ifndef LWIP_HDR_APPS_LWIPERF_H -#define LWIP_HDR_APPS_LWIPERF_H - -#include "lwip/opt.h" -#include "lwip/ip_addr.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define LWIPERF_TCP_PORT_DEFAULT 5001 - -/** lwIPerf test results */ -enum lwiperf_report_type -{ - /** The server side test is done */ - LWIPERF_TCP_DONE_SERVER, - /** The client side test is done */ - LWIPERF_TCP_DONE_CLIENT, - /** Local error lead to test abort */ - LWIPERF_TCP_ABORTED_LOCAL, - /** Data check error lead to test abort */ - LWIPERF_TCP_ABORTED_LOCAL_DATAERROR, - /** Transmit error lead to test abort */ - LWIPERF_TCP_ABORTED_LOCAL_TXERROR, - /** Remote side aborted the test */ - LWIPERF_TCP_ABORTED_REMOTE -}; - -/** Control */ -enum lwiperf_client_type -{ - /** Unidirectional tx only test */ - LWIPERF_CLIENT, - /** Do a bidirectional test simultaneously */ - LWIPERF_DUAL, - /** Do a bidirectional test individually */ - LWIPERF_TRADEOFF -}; - -/** Prototype of a report function that is called when a session is finished. - This report function can show the test results. - @param report_type contains the test result */ -typedef void (*lwiperf_report_fn)(void *arg, enum lwiperf_report_type report_type, - const ip_addr_t* local_addr, u16_t local_port, const ip_addr_t* remote_addr, u16_t remote_port, - u32_t bytes_transferred, u32_t ms_duration, u32_t bandwidth_kbitpsec); - -void* lwiperf_start_tcp_server(const ip_addr_t* local_addr, u16_t local_port, - lwiperf_report_fn report_fn, void* report_arg); -void* lwiperf_start_tcp_server_default(lwiperf_report_fn report_fn, void* report_arg); -void* lwiperf_start_tcp_client(const ip_addr_t* remote_addr, u16_t remote_port, - enum lwiperf_client_type type, - lwiperf_report_fn report_fn, void* report_arg); -void* lwiperf_start_tcp_client_default(const ip_addr_t* remote_addr, - lwiperf_report_fn report_fn, void* report_arg); - -void lwiperf_abort(void* lwiperf_session); - - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_APPS_LWIPERF_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/mdns.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/mdns.h deleted file mode 100644 index 20d7ee2..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/mdns.h +++ /dev/null @@ -1,105 +0,0 @@ -/** - * @file - * MDNS responder - */ - - /* - * Copyright (c) 2015 Verisure Innovation AB - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Erik Ekman - * - */ - -#ifndef LWIP_HDR_APPS_MDNS_H -#define LWIP_HDR_APPS_MDNS_H - -#include "lwip/apps/mdns_opts.h" -#include "lwip/netif.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#if LWIP_MDNS_RESPONDER - -enum mdns_sd_proto { - DNSSD_PROTO_UDP = 0, - DNSSD_PROTO_TCP = 1 -}; - -#define MDNS_PROBING_CONFLICT 0 -#define MDNS_PROBING_SUCCESSFUL 1 - -#define MDNS_LABEL_MAXLEN 63 - -struct mdns_host; -struct mdns_service; - -/** Callback function to add text to a reply, called when generating the reply */ -typedef void (*service_get_txt_fn_t)(struct mdns_service *service, void *txt_userdata); - -/** Callback function to let application know the result of probing network for name - * uniqueness, called with result MDNS_PROBING_SUCCESSFUL if no other node claimed - * use for the name for the netif or a service and is safe to use, or MDNS_PROBING_CONFLICT - * if another node is already using it and mdns is disabled on this interface */ -typedef void (*mdns_name_result_cb_t)(struct netif* netif, u8_t result); - -void mdns_resp_init(void); - -void mdns_resp_register_name_result_cb(mdns_name_result_cb_t cb); - -err_t mdns_resp_add_netif(struct netif *netif, const char *hostname, u32_t dns_ttl); -err_t mdns_resp_remove_netif(struct netif *netif); -err_t mdns_resp_rename_netif(struct netif *netif, const char *hostname); - -s8_t mdns_resp_add_service(struct netif *netif, const char *name, const char *service, enum mdns_sd_proto proto, u16_t port, u32_t dns_ttl, service_get_txt_fn_t txt_fn, void *txt_userdata); -err_t mdns_resp_del_service(struct netif *netif, s8_t slot); -err_t mdns_resp_rename_service(struct netif *netif, s8_t slot, const char *name); - -err_t mdns_resp_add_service_txtitem(struct mdns_service *service, const char *txt, u8_t txt_len); - -void mdns_resp_restart(struct netif *netif); -void mdns_resp_announce(struct netif *netif); - -/** - * @ingroup mdns - * Announce IP settings have changed on netif. - * Call this in your callback registered by netif_set_status_callback(). - * No need to call this function when LWIP_NETIF_EXT_STATUS_CALLBACK==1, - * this handled automatically for you. - * @param netif The network interface where settings have changed. - */ -#define mdns_resp_netif_settings_changed(netif) mdns_resp_announce(netif) - -#endif /* LWIP_MDNS_RESPONDER */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_APPS_MDNS_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/mdns_opts.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/mdns_opts.h deleted file mode 100644 index 45f2c50..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/mdns_opts.h +++ /dev/null @@ -1,81 +0,0 @@ -/** - * @file - * MDNS responder - */ - - /* - * Copyright (c) 2015 Verisure Innovation AB - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Erik Ekman - * - */ - -#ifndef LWIP_HDR_APPS_MDNS_OPTS_H -#define LWIP_HDR_APPS_MDNS_OPTS_H - -#include "lwip/opt.h" - -/** - * @defgroup mdns_opts Options - * @ingroup mdns - * @{ - */ - -/** - * LWIP_MDNS_RESPONDER==1: Turn on multicast DNS module. UDP must be available for MDNS - * transport. IGMP is needed for IPv4 multicast. - */ -#ifndef LWIP_MDNS_RESPONDER -#define LWIP_MDNS_RESPONDER 0 -#endif /* LWIP_MDNS_RESPONDER */ - -/** The maximum number of services per netif */ -#ifndef MDNS_MAX_SERVICES -#define MDNS_MAX_SERVICES 1 -#endif - -/** MDNS_RESP_USENETIF_EXTCALLBACK==1: register an ext_callback on the netif - * to automatically restart probing/announcing on status or address change. - */ -#ifndef MDNS_RESP_USENETIF_EXTCALLBACK -#define MDNS_RESP_USENETIF_EXTCALLBACK LWIP_NETIF_EXT_STATUS_CALLBACK -#endif - -/** - * MDNS_DEBUG: Enable debugging for multicast DNS. - */ -#ifndef MDNS_DEBUG -#define MDNS_DEBUG LWIP_DBG_OFF -#endif - -/** - * @} - */ - -#endif /* LWIP_HDR_APPS_MDNS_OPTS_H */ - diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/mdns_priv.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/mdns_priv.h deleted file mode 100644 index 9635b5b..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/mdns_priv.h +++ /dev/null @@ -1,74 +0,0 @@ -/** - * @file - * MDNS responder private definitions - */ - - /* - * Copyright (c) 2015 Verisure Innovation AB - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Erik Ekman - * - */ -#ifndef LWIP_HDR_MDNS_PRIV_H -#define LWIP_HDR_MDNS_PRIV_H - -#include "lwip/apps/mdns_opts.h" -#include "lwip/pbuf.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#if LWIP_MDNS_RESPONDER - -/* Domain struct and methods - visible for unit tests */ - -#define MDNS_DOMAIN_MAXLEN 256 -#define MDNS_READNAME_ERROR 0xFFFF - -struct mdns_domain { - /* Encoded domain name */ - u8_t name[MDNS_DOMAIN_MAXLEN]; - /* Total length of domain name, including zero */ - u16_t length; - /* Set if compression of this domain is not allowed */ - u8_t skip_compression; -}; - -err_t mdns_domain_add_label(struct mdns_domain *domain, const char *label, u8_t len); -u16_t mdns_readname(struct pbuf *p, u16_t offset, struct mdns_domain *domain); -int mdns_domain_eq(struct mdns_domain *a, struct mdns_domain *b); -u16_t mdns_compress_domain(struct pbuf *pbuf, u16_t *offset, struct mdns_domain *domain); - -#endif /* LWIP_MDNS_RESPONDER */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_MDNS_PRIV_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/mqtt.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/mqtt.h deleted file mode 100644 index c2bb228..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/mqtt.h +++ /dev/null @@ -1,205 +0,0 @@ -/** - * @file - * MQTT client - */ - -/* - * Copyright (c) 2016 Erik Andersson - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Erik Andersson - * - */ -#ifndef LWIP_HDR_APPS_MQTT_CLIENT_H -#define LWIP_HDR_APPS_MQTT_CLIENT_H - -#include "lwip/apps/mqtt_opts.h" -#include "lwip/err.h" -#include "lwip/ip_addr.h" -#include "lwip/prot/iana.h" - -#ifdef __cplusplus -extern "C" { -#endif - -typedef struct mqtt_client_s mqtt_client_t; - -#if LWIP_ALTCP && LWIP_ALTCP_TLS -struct altcp_tls_config; -#endif - -/** @ingroup mqtt - * Default MQTT port (non-TLS) */ -#define MQTT_PORT LWIP_IANA_PORT_MQTT -/** @ingroup mqtt - * Default MQTT TLS port */ -#define MQTT_TLS_PORT LWIP_IANA_PORT_SECURE_MQTT - -/*---------------------------------------------------------------------------------------------- */ -/* Connection with server */ - -/** - * @ingroup mqtt - * Client information and connection parameters */ -struct mqtt_connect_client_info_t { - /** Client identifier, must be set by caller */ - const char *client_id; - /** User name, set to NULL if not used */ - const char* client_user; - /** Password, set to NULL if not used */ - const char* client_pass; - /** keep alive time in seconds, 0 to disable keep alive functionality*/ - u16_t keep_alive; - /** will topic, set to NULL if will is not to be used, - will_msg, will_qos and will retain are then ignored */ - const char* will_topic; - /** will_msg, see will_topic */ - const char* will_msg; - /** will_qos, see will_topic */ - u8_t will_qos; - /** will_retain, see will_topic */ - u8_t will_retain; -#if LWIP_ALTCP && LWIP_ALTCP_TLS - /** TLS configuration for secure connections */ - struct altcp_tls_config *tls_config; -#endif -}; - -/** - * @ingroup mqtt - * Connection status codes */ -typedef enum -{ - /** Accepted */ - MQTT_CONNECT_ACCEPTED = 0, - /** Refused protocol version */ - MQTT_CONNECT_REFUSED_PROTOCOL_VERSION = 1, - /** Refused identifier */ - MQTT_CONNECT_REFUSED_IDENTIFIER = 2, - /** Refused server */ - MQTT_CONNECT_REFUSED_SERVER = 3, - /** Refused user credentials */ - MQTT_CONNECT_REFUSED_USERNAME_PASS = 4, - /** Refused not authorized */ - MQTT_CONNECT_REFUSED_NOT_AUTHORIZED_ = 5, - /** Disconnected */ - MQTT_CONNECT_DISCONNECTED = 256, - /** Timeout */ - MQTT_CONNECT_TIMEOUT = 257 -} mqtt_connection_status_t; - -/** - * @ingroup mqtt - * Function prototype for mqtt connection status callback. Called when - * client has connected to the server after initiating a mqtt connection attempt by - * calling mqtt_client_connect() or when connection is closed by server or an error - * - * @param client MQTT client itself - * @param arg Additional argument to pass to the callback function - * @param status Connect result code or disconnection notification @see mqtt_connection_status_t - * - */ -typedef void (*mqtt_connection_cb_t)(mqtt_client_t *client, void *arg, mqtt_connection_status_t status); - - -/** - * @ingroup mqtt - * Data callback flags */ -enum { - /** Flag set when last fragment of data arrives in data callback */ - MQTT_DATA_FLAG_LAST = 1 -}; - -/** - * @ingroup mqtt - * Function prototype for MQTT incoming publish data callback function. Called when data - * arrives to a subscribed topic @see mqtt_subscribe - * - * @param arg Additional argument to pass to the callback function - * @param data User data, pointed object, data may not be referenced after callback return, - NULL is passed when all publish data are delivered - * @param len Length of publish data fragment - * @param flags MQTT_DATA_FLAG_LAST set when this call contains the last part of data from publish message - * - */ -typedef void (*mqtt_incoming_data_cb_t)(void *arg, const u8_t *data, u16_t len, u8_t flags); - - -/** - * @ingroup mqtt - * Function prototype for MQTT incoming publish function. Called when an incoming publish - * arrives to a subscribed topic @see mqtt_subscribe - * - * @param arg Additional argument to pass to the callback function - * @param topic Zero terminated Topic text string, topic may not be referenced after callback return - * @param tot_len Total length of publish data, if set to 0 (no publish payload) data callback will not be invoked - */ -typedef void (*mqtt_incoming_publish_cb_t)(void *arg, const char *topic, u32_t tot_len); - - -/** - * @ingroup mqtt - * Function prototype for mqtt request callback. Called when a subscribe, unsubscribe - * or publish request has completed - * @param arg Pointer to user data supplied when invoking request - * @param err ERR_OK on success - * ERR_TIMEOUT if no response was received within timeout, - * ERR_ABRT if (un)subscribe was denied - */ -typedef void (*mqtt_request_cb_t)(void *arg, err_t err); - - -err_t mqtt_client_connect(mqtt_client_t *client, const ip_addr_t *ipaddr, u16_t port, mqtt_connection_cb_t cb, void *arg, - const struct mqtt_connect_client_info_t *client_info); - -void mqtt_disconnect(mqtt_client_t *client); - -mqtt_client_t *mqtt_client_new(void); -void mqtt_client_free(mqtt_client_t* client); - -u8_t mqtt_client_is_connected(mqtt_client_t *client); - -void mqtt_set_inpub_callback(mqtt_client_t *client, mqtt_incoming_publish_cb_t, - mqtt_incoming_data_cb_t data_cb, void *arg); - -err_t mqtt_sub_unsub(mqtt_client_t *client, const char *topic, u8_t qos, mqtt_request_cb_t cb, void *arg, u8_t sub); - -/** @ingroup mqtt - *Subscribe to topic */ -#define mqtt_subscribe(client, topic, qos, cb, arg) mqtt_sub_unsub(client, topic, qos, cb, arg, 1) -/** @ingroup mqtt - * Unsubscribe to topic */ -#define mqtt_unsubscribe(client, topic, cb, arg) mqtt_sub_unsub(client, topic, 0, cb, arg, 0) - -err_t mqtt_publish(mqtt_client_t *client, const char *topic, const void *payload, u16_t payload_length, u8_t qos, u8_t retain, - mqtt_request_cb_t cb, void *arg); - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_APPS_MQTT_CLIENT_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/mqtt_opts.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/mqtt_opts.h deleted file mode 100644 index 4226d21..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/mqtt_opts.h +++ /dev/null @@ -1,103 +0,0 @@ -/** - * @file - * MQTT client options - */ - -/* - * Copyright (c) 2016 Erik Andersson - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Erik Andersson - * - */ -#ifndef LWIP_HDR_APPS_MQTT_OPTS_H -#define LWIP_HDR_APPS_MQTT_OPTS_H - -#include "lwip/opt.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @defgroup mqtt_opts Options - * @ingroup mqtt - * @{ - */ - -/** - * Output ring-buffer size, must be able to fit largest outgoing publish message topic+payloads - */ -#ifndef MQTT_OUTPUT_RINGBUF_SIZE -#define MQTT_OUTPUT_RINGBUF_SIZE 256 -#endif - -/** - * Number of bytes in receive buffer, must be at least the size of the longest incoming topic + 8 - * If one wants to avoid fragmented incoming publish, set length to max incoming topic length + max payload length + 8 - */ -#ifndef MQTT_VAR_HEADER_BUFFER_LEN -#define MQTT_VAR_HEADER_BUFFER_LEN 128 -#endif - -/** - * Maximum number of pending subscribe, unsubscribe and publish requests to server . - */ -#ifndef MQTT_REQ_MAX_IN_FLIGHT -#define MQTT_REQ_MAX_IN_FLIGHT 4 -#endif - -/** - * Seconds between each cyclic timer call. - */ -#ifndef MQTT_CYCLIC_TIMER_INTERVAL -#define MQTT_CYCLIC_TIMER_INTERVAL 5 -#endif - -/** - * Publish, subscribe and unsubscribe request timeout in seconds. - */ -#ifndef MQTT_REQ_TIMEOUT -#define MQTT_REQ_TIMEOUT 30 -#endif - -/** - * Seconds for MQTT connect response timeout after sending connect request - */ -#ifndef MQTT_CONNECT_TIMOUT -#define MQTT_CONNECT_TIMOUT 100 -#endif - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_APPS_MQTT_OPTS_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/mqtt_priv.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/mqtt_priv.h deleted file mode 100644 index b775913..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/mqtt_priv.h +++ /dev/null @@ -1,104 +0,0 @@ -/** - * @file - * MQTT client (private interface) - */ - -/* - * Copyright (c) 2016 Erik Andersson - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Erik Andersson - * - */ -#ifndef LWIP_HDR_APPS_MQTT_PRIV_H -#define LWIP_HDR_APPS_MQTT_PRIV_H - -#include "lwip/apps/mqtt.h" -#include "lwip/altcp.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** Pending request item, binds application callback to pending server requests */ -struct mqtt_request_t -{ - /** Next item in list, NULL means this is the last in chain, - next pointing at itself means request is unallocated */ - struct mqtt_request_t *next; - /** Callback to upper layer */ - mqtt_request_cb_t cb; - void *arg; - /** MQTT packet identifier */ - u16_t pkt_id; - /** Expire time relative to element before this */ - u16_t timeout_diff; -}; - -/** Ring buffer */ -struct mqtt_ringbuf_t { - u16_t put; - u16_t get; - u8_t buf[MQTT_OUTPUT_RINGBUF_SIZE]; -}; - -/** MQTT client */ -struct mqtt_client_s -{ - /** Timers and timeouts */ - u16_t cyclic_tick; - u16_t keep_alive; - u16_t server_watchdog; - /** Packet identifier generator*/ - u16_t pkt_id_seq; - /** Packet identifier of pending incoming publish */ - u16_t inpub_pkt_id; - /** Connection state */ - u8_t conn_state; - struct altcp_pcb *conn; - /** Connection callback */ - void *connect_arg; - mqtt_connection_cb_t connect_cb; - /** Pending requests to server */ - struct mqtt_request_t *pend_req_queue; - struct mqtt_request_t req_list[MQTT_REQ_MAX_IN_FLIGHT]; - void *inpub_arg; - /** Incoming data callback */ - mqtt_incoming_data_cb_t data_cb; - mqtt_incoming_publish_cb_t pub_cb; - /** Input */ - u32_t msg_idx; - u8_t rx_buffer[MQTT_VAR_HEADER_BUFFER_LEN]; - /** Output ring-buffer */ - struct mqtt_ringbuf_t output; -}; - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_APPS_MQTT_PRIV_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/netbiosns.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/netbiosns.h deleted file mode 100644 index a326d33..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/netbiosns.h +++ /dev/null @@ -1,51 +0,0 @@ -/** - * @file - * NETBIOS name service responder - */ - -/* - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - */ -#ifndef LWIP_HDR_APPS_NETBIOS_H -#define LWIP_HDR_APPS_NETBIOS_H - -#include "lwip/apps/netbiosns_opts.h" - -#ifdef __cplusplus -extern "C" { -#endif - -void netbiosns_init(void); -#ifndef NETBIOS_LWIP_NAME -void netbiosns_set_name(const char* hostname); -#endif -void netbiosns_stop(void); - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_APPS_NETBIOS_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/netbiosns_opts.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/netbiosns_opts.h deleted file mode 100644 index 1f51ab0..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/netbiosns_opts.h +++ /dev/null @@ -1,66 +0,0 @@ -/** - * @file - * NETBIOS name service responder options - */ - -/* - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - */ -#ifndef LWIP_HDR_APPS_NETBIOS_OPTS_H -#define LWIP_HDR_APPS_NETBIOS_OPTS_H - -#include "lwip/opt.h" - -/** - * @defgroup netbiosns_opts Options - * @ingroup netbiosns - * @{ - */ - -/** NetBIOS name of lwip device - * This must be uppercase until NETBIOS_STRCMP() is defined to a string - * comparision function that is case insensitive. - * If you want to use the netif's hostname, use this (with LWIP_NETIF_HOSTNAME): - * (ip_current_netif() != NULL ? ip_current_netif()->hostname != NULL ? ip_current_netif()->hostname : "" : "") - * - * If this is not defined, netbiosns_set_name() can be called at runtime to change the name. - */ -#ifdef __DOXYGEN__ -#define NETBIOS_LWIP_NAME "NETBIOSLWIPDEV" -#endif - -/** Respond to NetBIOS name queries - * Default is disabled - */ -#if !defined LWIP_NETBIOS_RESPOND_NAME_QUERY || defined __DOXYGEN__ -#define LWIP_NETBIOS_RESPOND_NAME_QUERY 0 -#endif - -/** - * @} - */ - -#endif /* LWIP_HDR_APPS_NETBIOS_OPTS_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/smtp.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/smtp.h deleted file mode 100644 index fb4a4a7..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/smtp.h +++ /dev/null @@ -1,128 +0,0 @@ -#ifndef LWIP_HDR_APPS_SMTP_H -#define LWIP_HDR_APPS_SMTP_H - -#ifdef __cplusplus -extern "C" { -#endif - -#include "lwip/apps/smtp_opts.h" -#include "lwip/err.h" -#include "lwip/prot/iana.h" - -/** The default TCP port used for SMTP */ -#define SMTP_DEFAULT_PORT LWIP_IANA_PORT_SMTP -/** The default TCP port used for SMTPS */ -#define SMTPS_DEFAULT_PORT LWIP_IANA_PORT_SMTPS - -/** Email successfully sent */ -#define SMTP_RESULT_OK 0 -/** Unknown error */ -#define SMTP_RESULT_ERR_UNKNOWN 1 -/** Connection to server failed */ -#define SMTP_RESULT_ERR_CONNECT 2 -/** Failed to resolve server hostname */ -#define SMTP_RESULT_ERR_HOSTNAME 3 -/** Connection unexpectedly closed by remote server */ -#define SMTP_RESULT_ERR_CLOSED 4 -/** Connection timed out (server didn't respond in time) */ -#define SMTP_RESULT_ERR_TIMEOUT 5 -/** Server responded with an unknown response code */ -#define SMTP_RESULT_ERR_SVR_RESP 6 -/** Out of resources locally */ -#define SMTP_RESULT_ERR_MEM 7 - -/** Prototype of an smtp callback function - * - * @param arg argument specified when initiating the email - * @param smtp_result result of the mail transfer (see defines SMTP_RESULT_*) - * @param srv_err if aborted by the server, this contains the error code received - * @param err an error returned by internal lwip functions, can help to specify - * the source of the error but must not necessarily be != ERR_OK - */ -typedef void (*smtp_result_fn)(void *arg, u8_t smtp_result, u16_t srv_err, err_t err); - -/** This structure is used as argument for smtp_send_mail_int(), - * which in turn can be used with tcpip_callback() to send mail - * from interrupt context, e.g. like this: - * struct smtp_send_request *req; (to be filled) - * tcpip_try_callback(smtp_send_mail_int, (void*)req); - * - * For member description, see parameter description of smtp_send_mail(). - * When using with tcpip_callback, this structure has to stay allocated - * (e.g. using mem_malloc/mem_free) until its 'callback_fn' is called. - */ -struct smtp_send_request { - const char *from; - const char* to; - const char* subject; - const char* body; - smtp_result_fn callback_fn; - void* callback_arg; - /** If this is != 0, data is *not* copied into an extra buffer - * but used from the pointers supplied in this struct. - * This means less memory usage, but data must stay untouched until - * the callback function is called. */ - u8_t static_data; -}; - - -#if SMTP_BODYDH - -#ifndef SMTP_BODYDH_BUFFER_SIZE -#define SMTP_BODYDH_BUFFER_SIZE 256 -#endif /* SMTP_BODYDH_BUFFER_SIZE */ - -struct smtp_bodydh { - u16_t state; - u16_t length; /* Length of content in buffer */ - char buffer[SMTP_BODYDH_BUFFER_SIZE]; /* buffer for generated content */ -#ifdef SMTP_BODYDH_USER_SIZE - u8_t user[SMTP_BODYDH_USER_SIZE]; -#endif /* SMTP_BODYDH_USER_SIZE */ -}; - -enum bdh_retvals_e { - BDH_DONE = 0, - BDH_WORKING -}; - -/** Prototype of an smtp body callback function - * It receives a struct smtp_bodydh, and a buffer to write data, - * must return BDH_WORKING to be called again and BDH_DONE when - * it has finished processing. This one tries to fill one TCP buffer with - * data, your function will be repeatedly called until that happens; so if you - * know you'll be taking too long to serve your request, pause once in a while - * by writing length=0 to avoid hogging system resources - * - * @param arg argument specified when initiating the email - * @param smtp_bodydh state handling + buffer structure - */ -typedef int (*smtp_bodycback_fn)(void *arg, struct smtp_bodydh *bodydh); - -err_t smtp_send_mail_bodycback(const char *from, const char* to, const char* subject, - smtp_bodycback_fn bodycback_fn, smtp_result_fn callback_fn, void* callback_arg); - -#endif /* SMTP_BODYDH */ - - -err_t smtp_set_server_addr(const char* server); -void smtp_set_server_port(u16_t port); -#if LWIP_ALTCP && LWIP_ALTCP_TLS -struct altcp_tls_config; -void smtp_set_tls_config(struct altcp_tls_config *tls_config); -#endif -err_t smtp_set_auth(const char* username, const char* pass); -err_t smtp_send_mail(const char *from, const char* to, const char* subject, const char* body, - smtp_result_fn callback_fn, void* callback_arg); -err_t smtp_send_mail_static(const char *from, const char* to, const char* subject, const char* body, - smtp_result_fn callback_fn, void* callback_arg); -void smtp_send_mail_int(void *arg); -#ifdef LWIP_DEBUG -const char* smtp_result_str(u8_t smtp_result); -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_APPS_SMTP_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/smtp_opts.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/smtp_opts.h deleted file mode 100644 index bc743f6..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/smtp_opts.h +++ /dev/null @@ -1,81 +0,0 @@ -#ifndef LWIP_HDR_APPS_SMTP_OPTS_H -#define LWIP_HDR_APPS_SMTP_OPTS_H - -#include "lwip/opt.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @defgroup smtp_opts Options - * @ingroup smtp - * - * @{ - */ - -/** Set this to 1 to enable data handler callback on BODY */ -#ifndef SMTP_BODYDH -#define SMTP_BODYDH 0 -#endif - -/** SMTP_DEBUG: Enable debugging for SNTP. */ -#ifndef SMTP_DEBUG -#define SMTP_DEBUG LWIP_DBG_OFF -#endif - -/** Maximum length reserved for server name including terminating 0 byte */ -#ifndef SMTP_MAX_SERVERNAME_LEN -#define SMTP_MAX_SERVERNAME_LEN 256 -#endif - -/** Maximum length reserved for username */ -#ifndef SMTP_MAX_USERNAME_LEN -#define SMTP_MAX_USERNAME_LEN 32 -#endif - -/** Maximum length reserved for password */ -#ifndef SMTP_MAX_PASS_LEN -#define SMTP_MAX_PASS_LEN 32 -#endif - -/** Set this to 0 if you know the authentication data will not change - * during the smtp session, which saves some heap space. */ -#ifndef SMTP_COPY_AUTHDATA -#define SMTP_COPY_AUTHDATA 1 -#endif - -/** Set this to 0 to save some code space if you know for sure that all data - * passed to this module conforms to the requirements in the SMTP RFC. - * WARNING: use this with care! - */ -#ifndef SMTP_CHECK_DATA -#define SMTP_CHECK_DATA 1 -#endif - -/** Set this to 1 to enable AUTH PLAIN support */ -#ifndef SMTP_SUPPORT_AUTH_PLAIN -#define SMTP_SUPPORT_AUTH_PLAIN 1 -#endif - -/** Set this to 1 to enable AUTH LOGIN support */ -#ifndef SMTP_SUPPORT_AUTH_LOGIN -#define SMTP_SUPPORT_AUTH_LOGIN 1 -#endif - -/* Memory allocation/deallocation can be overridden... */ -#ifndef SMTP_STATE_MALLOC -#define SMTP_STATE_MALLOC(size) mem_malloc(size) -#define SMTP_STATE_FREE(ptr) mem_free(ptr) -#endif - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* SMTP_OPTS_H */ - diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmp.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmp.h deleted file mode 100644 index a3f8eb1..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmp.h +++ /dev/null @@ -1,135 +0,0 @@ -/** - * @file - * SNMP server main API - start and basic configuration - */ - -/* - * Copyright (c) 2001, 2002 Leon Woestenberg - * Copyright (c) 2001, 2002 Axon Digital Design B.V., The Netherlands. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Leon Woestenberg - * Martin Hentschel - * - */ -#ifndef LWIP_HDR_APPS_SNMP_H -#define LWIP_HDR_APPS_SNMP_H - -#include "lwip/apps/snmp_opts.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#if LWIP_SNMP /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/err.h" -#include "lwip/apps/snmp_core.h" - -/** SNMP variable binding descriptor (publically needed for traps) */ -struct snmp_varbind -{ - /** pointer to next varbind, NULL for last in list */ - struct snmp_varbind *next; - /** pointer to previous varbind, NULL for first in list */ - struct snmp_varbind *prev; - - /** object identifier */ - struct snmp_obj_id oid; - - /** value ASN1 type */ - u8_t type; - /** object value length */ - u16_t value_len; - /** object value */ - void *value; -}; - -/** - * @ingroup snmp_core - * Agent setup, start listening to port 161. - */ -void snmp_init(void); -void snmp_set_mibs(const struct snmp_mib **mibs, u8_t num_mibs); - -void snmp_set_device_enterprise_oid(const struct snmp_obj_id* device_enterprise_oid); -const struct snmp_obj_id* snmp_get_device_enterprise_oid(void); - -void snmp_trap_dst_enable(u8_t dst_idx, u8_t enable); -void snmp_trap_dst_ip_set(u8_t dst_idx, const ip_addr_t *dst); - -/** Generic trap: cold start */ -#define SNMP_GENTRAP_COLDSTART 0 -/** Generic trap: warm start */ -#define SNMP_GENTRAP_WARMSTART 1 -/** Generic trap: link down */ -#define SNMP_GENTRAP_LINKDOWN 2 -/** Generic trap: link up */ -#define SNMP_GENTRAP_LINKUP 3 -/** Generic trap: authentication failure */ -#define SNMP_GENTRAP_AUTH_FAILURE 4 -/** Generic trap: EGP neighbor lost */ -#define SNMP_GENTRAP_EGP_NEIGHBOR_LOSS 5 -/** Generic trap: enterprise specific */ -#define SNMP_GENTRAP_ENTERPRISE_SPECIFIC 6 - -err_t snmp_send_trap_generic(s32_t generic_trap); -err_t snmp_send_trap_specific(s32_t specific_trap, struct snmp_varbind *varbinds); -err_t snmp_send_trap(const struct snmp_obj_id* oid, s32_t generic_trap, s32_t specific_trap, struct snmp_varbind *varbinds); - -#define SNMP_AUTH_TRAPS_DISABLED 0 -#define SNMP_AUTH_TRAPS_ENABLED 1 -void snmp_set_auth_traps_enabled(u8_t enable); -u8_t snmp_get_auth_traps_enabled(void); - -u8_t snmp_v1_enabled(void); -u8_t snmp_v2c_enabled(void); -u8_t snmp_v3_enabled(void); -void snmp_v1_enable(u8_t enable); -void snmp_v2c_enable(u8_t enable); -void snmp_v3_enable(u8_t enable); - -const char * snmp_get_community(void); -const char * snmp_get_community_write(void); -const char * snmp_get_community_trap(void); -void snmp_set_community(const char * const community); -void snmp_set_community_write(const char * const community); -void snmp_set_community_trap(const char * const community); - -void snmp_coldstart_trap(void); -void snmp_authfail_trap(void); - -typedef void (*snmp_write_callback_fct)(const u32_t* oid, u8_t oid_len, void* callback_arg); -void snmp_set_write_callback(snmp_write_callback_fct write_callback, void* callback_arg); - -#endif /* LWIP_SNMP */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_APPS_SNMP_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmp_core.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmp_core.h deleted file mode 100644 index 6021c72..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmp_core.h +++ /dev/null @@ -1,377 +0,0 @@ -/** - * @file - * SNMP core API for implementing MIBs - */ - -/* - * Copyright (c) 2006 Axon Digital Design B.V., The Netherlands. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * Author: Christiaan Simons - * Martin Hentschel - */ - -#ifndef LWIP_HDR_APPS_SNMP_CORE_H -#define LWIP_HDR_APPS_SNMP_CORE_H - -#include "lwip/apps/snmp_opts.h" - -#if LWIP_SNMP /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/ip_addr.h" -#include "lwip/err.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* basic ASN1 defines */ -#define SNMP_ASN1_CLASS_UNIVERSAL 0x00 -#define SNMP_ASN1_CLASS_APPLICATION 0x40 -#define SNMP_ASN1_CLASS_CONTEXT 0x80 -#define SNMP_ASN1_CLASS_PRIVATE 0xC0 - -#define SNMP_ASN1_CONTENTTYPE_PRIMITIVE 0x00 -#define SNMP_ASN1_CONTENTTYPE_CONSTRUCTED 0x20 - -/* universal tags (from ASN.1 spec.) */ -#define SNMP_ASN1_UNIVERSAL_END_OF_CONTENT 0 -#define SNMP_ASN1_UNIVERSAL_INTEGER 2 -#define SNMP_ASN1_UNIVERSAL_OCTET_STRING 4 -#define SNMP_ASN1_UNIVERSAL_NULL 5 -#define SNMP_ASN1_UNIVERSAL_OBJECT_ID 6 -#define SNMP_ASN1_UNIVERSAL_SEQUENCE_OF 16 - -/* application specific (SNMP) tags (from SNMPv2-SMI) */ -#define SNMP_ASN1_APPLICATION_IPADDR 0 /* [APPLICATION 0] IMPLICIT OCTET STRING (SIZE (4)) */ -#define SNMP_ASN1_APPLICATION_COUNTER 1 /* [APPLICATION 1] IMPLICIT INTEGER (0..4294967295) => u32_t */ -#define SNMP_ASN1_APPLICATION_GAUGE 2 /* [APPLICATION 2] IMPLICIT INTEGER (0..4294967295) => u32_t */ -#define SNMP_ASN1_APPLICATION_TIMETICKS 3 /* [APPLICATION 3] IMPLICIT INTEGER (0..4294967295) => u32_t */ -#define SNMP_ASN1_APPLICATION_OPAQUE 4 /* [APPLICATION 4] IMPLICIT OCTET STRING */ -#define SNMP_ASN1_APPLICATION_COUNTER64 6 /* [APPLICATION 6] IMPLICIT INTEGER (0..18446744073709551615) */ - -/* context specific (SNMP) tags (from RFC 1905) */ -#define SNMP_ASN1_CONTEXT_VARBIND_NO_SUCH_INSTANCE 1 - -/* full ASN1 type defines */ -#define SNMP_ASN1_TYPE_END_OF_CONTENT (SNMP_ASN1_CLASS_UNIVERSAL | SNMP_ASN1_CONTENTTYPE_PRIMITIVE | SNMP_ASN1_UNIVERSAL_END_OF_CONTENT) -#define SNMP_ASN1_TYPE_INTEGER (SNMP_ASN1_CLASS_UNIVERSAL | SNMP_ASN1_CONTENTTYPE_PRIMITIVE | SNMP_ASN1_UNIVERSAL_INTEGER) -#define SNMP_ASN1_TYPE_OCTET_STRING (SNMP_ASN1_CLASS_UNIVERSAL | SNMP_ASN1_CONTENTTYPE_PRIMITIVE | SNMP_ASN1_UNIVERSAL_OCTET_STRING) -#define SNMP_ASN1_TYPE_NULL (SNMP_ASN1_CLASS_UNIVERSAL | SNMP_ASN1_CONTENTTYPE_PRIMITIVE | SNMP_ASN1_UNIVERSAL_NULL) -#define SNMP_ASN1_TYPE_OBJECT_ID (SNMP_ASN1_CLASS_UNIVERSAL | SNMP_ASN1_CONTENTTYPE_PRIMITIVE | SNMP_ASN1_UNIVERSAL_OBJECT_ID) -#define SNMP_ASN1_TYPE_SEQUENCE (SNMP_ASN1_CLASS_UNIVERSAL | SNMP_ASN1_CONTENTTYPE_CONSTRUCTED | SNMP_ASN1_UNIVERSAL_SEQUENCE_OF) -#define SNMP_ASN1_TYPE_IPADDR (SNMP_ASN1_CLASS_APPLICATION | SNMP_ASN1_CONTENTTYPE_PRIMITIVE | SNMP_ASN1_APPLICATION_IPADDR) -#define SNMP_ASN1_TYPE_IPADDRESS SNMP_ASN1_TYPE_IPADDR -#define SNMP_ASN1_TYPE_COUNTER (SNMP_ASN1_CLASS_APPLICATION | SNMP_ASN1_CONTENTTYPE_PRIMITIVE | SNMP_ASN1_APPLICATION_COUNTER) -#define SNMP_ASN1_TYPE_COUNTER32 SNMP_ASN1_TYPE_COUNTER -#define SNMP_ASN1_TYPE_GAUGE (SNMP_ASN1_CLASS_APPLICATION | SNMP_ASN1_CONTENTTYPE_PRIMITIVE | SNMP_ASN1_APPLICATION_GAUGE) -#define SNMP_ASN1_TYPE_GAUGE32 SNMP_ASN1_TYPE_GAUGE -#define SNMP_ASN1_TYPE_UNSIGNED32 SNMP_ASN1_TYPE_GAUGE -#define SNMP_ASN1_TYPE_TIMETICKS (SNMP_ASN1_CLASS_APPLICATION | SNMP_ASN1_CONTENTTYPE_PRIMITIVE | SNMP_ASN1_APPLICATION_TIMETICKS) -#define SNMP_ASN1_TYPE_OPAQUE (SNMP_ASN1_CLASS_APPLICATION | SNMP_ASN1_CONTENTTYPE_PRIMITIVE | SNMP_ASN1_APPLICATION_OPAQUE) -#if LWIP_HAVE_INT64 -#define SNMP_ASN1_TYPE_COUNTER64 (SNMP_ASN1_CLASS_APPLICATION | SNMP_ASN1_CONTENTTYPE_PRIMITIVE | SNMP_ASN1_APPLICATION_COUNTER64) -#endif - -#define SNMP_VARBIND_EXCEPTION_OFFSET 0xF0 -#define SNMP_VARBIND_EXCEPTION_MASK 0x0F - -/** error codes predefined by SNMP prot. */ -typedef enum { - SNMP_ERR_NOERROR = 0, -/* -outdated v1 error codes. do not use anmore! -#define SNMP_ERR_NOSUCHNAME 2 use SNMP_ERR_NOSUCHINSTANCE instead -#define SNMP_ERR_BADVALUE 3 use SNMP_ERR_WRONGTYPE,SNMP_ERR_WRONGLENGTH,SNMP_ERR_WRONGENCODING or SNMP_ERR_WRONGVALUE instead -#define SNMP_ERR_READONLY 4 use SNMP_ERR_NOTWRITABLE instead -*/ - SNMP_ERR_GENERROR = 5, - SNMP_ERR_NOACCESS = 6, - SNMP_ERR_WRONGTYPE = 7, - SNMP_ERR_WRONGLENGTH = 8, - SNMP_ERR_WRONGENCODING = 9, - SNMP_ERR_WRONGVALUE = 10, - SNMP_ERR_NOCREATION = 11, - SNMP_ERR_INCONSISTENTVALUE = 12, - SNMP_ERR_RESOURCEUNAVAILABLE = 13, - SNMP_ERR_COMMITFAILED = 14, - SNMP_ERR_UNDOFAILED = 15, - SNMP_ERR_NOTWRITABLE = 17, - SNMP_ERR_INCONSISTENTNAME = 18, - - SNMP_ERR_NOSUCHINSTANCE = SNMP_VARBIND_EXCEPTION_OFFSET + SNMP_ASN1_CONTEXT_VARBIND_NO_SUCH_INSTANCE -} snmp_err_t; - -/** internal object identifier representation */ -struct snmp_obj_id -{ - u8_t len; - u32_t id[SNMP_MAX_OBJ_ID_LEN]; -}; - -struct snmp_obj_id_const_ref -{ - u8_t len; - const u32_t* id; -}; - -extern const struct snmp_obj_id_const_ref snmp_zero_dot_zero; /* administrative identifier from SNMPv2-SMI */ - -/** SNMP variant value, used as reference in struct snmp_node_instance and table implementation */ -union snmp_variant_value -{ - void* ptr; - const void* const_ptr; - u32_t u32; - s32_t s32; -#if LWIP_HAVE_INT64 - u64_t u64; -#endif -}; - - -/** -SNMP MIB node types - tree node is the only node the stack can process in order to walk the tree, - all other nodes are assumed to be leaf nodes. - This cannot be an enum because users may want to define their own node types. -*/ -#define SNMP_NODE_TREE 0x00 -/* predefined leaf node types */ -#define SNMP_NODE_SCALAR 0x01 -#define SNMP_NODE_SCALAR_ARRAY 0x02 -#define SNMP_NODE_TABLE 0x03 -#define SNMP_NODE_THREADSYNC 0x04 - -/** node "base class" layout, the mandatory fields for a node */ -struct snmp_node -{ - /** one out of SNMP_NODE_TREE or any leaf node type (like SNMP_NODE_SCALAR) */ - u8_t node_type; - /** the number assigned to this node which used as part of the full OID */ - u32_t oid; -}; - -/** SNMP node instance access types */ -typedef enum { - SNMP_NODE_INSTANCE_ACCESS_READ = 1, - SNMP_NODE_INSTANCE_ACCESS_WRITE = 2, - SNMP_NODE_INSTANCE_READ_ONLY = SNMP_NODE_INSTANCE_ACCESS_READ, - SNMP_NODE_INSTANCE_READ_WRITE = (SNMP_NODE_INSTANCE_ACCESS_READ | SNMP_NODE_INSTANCE_ACCESS_WRITE), - SNMP_NODE_INSTANCE_WRITE_ONLY = SNMP_NODE_INSTANCE_ACCESS_WRITE, - SNMP_NODE_INSTANCE_NOT_ACCESSIBLE = 0 -} snmp_access_t; - -struct snmp_node_instance; - -typedef s16_t (*node_instance_get_value_method)(struct snmp_node_instance*, void*); -typedef snmp_err_t (*node_instance_set_test_method)(struct snmp_node_instance*, u16_t, void*); -typedef snmp_err_t (*node_instance_set_value_method)(struct snmp_node_instance*, u16_t, void*); -typedef void (*node_instance_release_method)(struct snmp_node_instance*); - -#define SNMP_GET_VALUE_RAW_DATA 0x4000 /* do not use 0x8000 because return value of node_instance_get_value_method is signed16 and 0x8000 would be the signed bit */ - -/** SNMP node instance */ -struct snmp_node_instance -{ - /** prefilled with the node, get_instance() is called on; may be changed by user to any value to pass an arbitrary node between calls to get_instance() and get_value/test_value/set_value */ - const struct snmp_node* node; - /** prefilled with the instance id requested; for get_instance() this is the exact oid requested; for get_next_instance() this is the relative starting point, stack expects relative oid of next node here */ - struct snmp_obj_id instance_oid; - - /** ASN type for this object (see snmp_asn1.h for definitions) */ - u8_t asn1_type; - /** one out of instance access types defined above (SNMP_NODE_INSTANCE_READ_ONLY,...) */ - snmp_access_t access; - - /** returns object value for the given object identifier. Return values <0 to indicate an error */ - node_instance_get_value_method get_value; - /** tests length and/or range BEFORE setting */ - node_instance_set_test_method set_test; - /** sets object value, only called when set_test() was successful */ - node_instance_set_value_method set_value; - /** called in any case when the instance is not required anymore by stack (useful for freeing memory allocated in get_instance/get_next_instance methods) */ - node_instance_release_method release_instance; - - /** reference to pass arbitrary value between calls to get_instance() and get_value/test_value/set_value */ - union snmp_variant_value reference; - /** see reference (if reference is a pointer, the length of underlying data may be stored here or anything else) */ - u32_t reference_len; -}; - - -/** SNMP tree node */ -struct snmp_tree_node -{ - /** inherited "base class" members */ - struct snmp_node node; - u16_t subnode_count; - const struct snmp_node* const *subnodes; -}; - -#define SNMP_CREATE_TREE_NODE(oid, subnodes) \ - {{ SNMP_NODE_TREE, (oid) }, \ - (u16_t)LWIP_ARRAYSIZE(subnodes), (subnodes) } - -#define SNMP_CREATE_EMPTY_TREE_NODE(oid) \ - {{ SNMP_NODE_TREE, (oid) }, \ - 0, NULL } - -/** SNMP leaf node */ -struct snmp_leaf_node -{ - /** inherited "base class" members */ - struct snmp_node node; - snmp_err_t (*get_instance)(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance); - snmp_err_t (*get_next_instance)(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance); -}; - -/** represents a single mib with its base oid and root node */ -struct snmp_mib -{ - const u32_t *base_oid; - u8_t base_oid_len; - const struct snmp_node *root_node; -}; - -#define SNMP_MIB_CREATE(oid_list, root_node) { (oid_list), (u8_t)LWIP_ARRAYSIZE(oid_list), root_node } - -/** OID range structure */ -struct snmp_oid_range -{ - u32_t min; - u32_t max; -}; - -/** checks if incoming OID length and values are in allowed ranges */ -u8_t snmp_oid_in_range(const u32_t *oid_in, u8_t oid_len, const struct snmp_oid_range *oid_ranges, u8_t oid_ranges_len); - -typedef enum { - SNMP_NEXT_OID_STATUS_SUCCESS, - SNMP_NEXT_OID_STATUS_NO_MATCH, - SNMP_NEXT_OID_STATUS_BUF_TO_SMALL -} snmp_next_oid_status_t; - -/** state for next_oid_init / next_oid_check functions */ -struct snmp_next_oid_state -{ - const u32_t* start_oid; - u8_t start_oid_len; - - u32_t* next_oid; - u8_t next_oid_len; - u8_t next_oid_max_len; - - snmp_next_oid_status_t status; - void* reference; -}; - -void snmp_next_oid_init(struct snmp_next_oid_state *state, - const u32_t *start_oid, u8_t start_oid_len, - u32_t *next_oid_buf, u8_t next_oid_max_len); -u8_t snmp_next_oid_precheck(struct snmp_next_oid_state *state, const u32_t *oid, u8_t oid_len); -u8_t snmp_next_oid_check(struct snmp_next_oid_state *state, const u32_t *oid, u8_t oid_len, void* reference); - -void snmp_oid_assign(struct snmp_obj_id* target, const u32_t *oid, u8_t oid_len); -void snmp_oid_combine(struct snmp_obj_id* target, const u32_t *oid1, u8_t oid1_len, const u32_t *oid2, u8_t oid2_len); -void snmp_oid_prefix(struct snmp_obj_id* target, const u32_t *oid, u8_t oid_len); -void snmp_oid_append(struct snmp_obj_id* target, const u32_t *oid, u8_t oid_len); -u8_t snmp_oid_equal(const u32_t *oid1, u8_t oid1_len, const u32_t *oid2, u8_t oid2_len); -s8_t snmp_oid_compare(const u32_t *oid1, u8_t oid1_len, const u32_t *oid2, u8_t oid2_len); - -#if LWIP_IPV4 -u8_t snmp_oid_to_ip4(const u32_t *oid, ip4_addr_t *ip); -void snmp_ip4_to_oid(const ip4_addr_t *ip, u32_t *oid); -#endif /* LWIP_IPV4 */ -#if LWIP_IPV6 -u8_t snmp_oid_to_ip6(const u32_t *oid, ip6_addr_t *ip); -void snmp_ip6_to_oid(const ip6_addr_t *ip, u32_t *oid); -#endif /* LWIP_IPV6 */ -#if LWIP_IPV4 || LWIP_IPV6 -u8_t snmp_ip_to_oid(const ip_addr_t *ip, u32_t *oid); -u8_t snmp_ip_port_to_oid(const ip_addr_t *ip, u16_t port, u32_t *oid); - -u8_t snmp_oid_to_ip(const u32_t *oid, u8_t oid_len, ip_addr_t *ip); -u8_t snmp_oid_to_ip_port(const u32_t *oid, u8_t oid_len, ip_addr_t *ip, u16_t *port); -#endif /* LWIP_IPV4 || LWIP_IPV6 */ - -struct netif; -u8_t netif_to_num(const struct netif *netif); - -snmp_err_t snmp_set_test_ok(struct snmp_node_instance* instance, u16_t value_len, void* value); /* generic function which can be used if test is always successful */ - -err_t snmp_decode_bits(const u8_t *buf, u32_t buf_len, u32_t *bit_value); -err_t snmp_decode_truthvalue(const s32_t *asn1_value, u8_t *bool_value); -u8_t snmp_encode_bits(u8_t *buf, u32_t buf_len, u32_t bit_value, u8_t bit_count); -u8_t snmp_encode_truthvalue(s32_t *asn1_value, u32_t bool_value); - -struct snmp_statistics -{ - u32_t inpkts; - u32_t outpkts; - u32_t inbadversions; - u32_t inbadcommunitynames; - u32_t inbadcommunityuses; - u32_t inasnparseerrs; - u32_t intoobigs; - u32_t innosuchnames; - u32_t inbadvalues; - u32_t inreadonlys; - u32_t ingenerrs; - u32_t intotalreqvars; - u32_t intotalsetvars; - u32_t ingetrequests; - u32_t ingetnexts; - u32_t insetrequests; - u32_t ingetresponses; - u32_t intraps; - u32_t outtoobigs; - u32_t outnosuchnames; - u32_t outbadvalues; - u32_t outgenerrs; - u32_t outgetrequests; - u32_t outgetnexts; - u32_t outsetrequests; - u32_t outgetresponses; - u32_t outtraps; -#if LWIP_SNMP_V3 - u32_t unsupportedseclevels; - u32_t notintimewindows; - u32_t unknownusernames; - u32_t unknownengineids; - u32_t wrongdigests; - u32_t decryptionerrors; -#endif -}; - -extern struct snmp_statistics snmp_stats; - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_SNMP */ - -#endif /* LWIP_HDR_APPS_SNMP_CORE_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmp_mib2.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmp_mib2.h deleted file mode 100644 index 2f4a689..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmp_mib2.h +++ /dev/null @@ -1,78 +0,0 @@ -/** - * @file - * SNMP MIB2 API - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Dirk Ziegelmeier - * - */ -#ifndef LWIP_HDR_APPS_SNMP_MIB2_H -#define LWIP_HDR_APPS_SNMP_MIB2_H - -#include "lwip/apps/snmp_opts.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#if LWIP_SNMP /* don't build if not configured for use in lwipopts.h */ -#if SNMP_LWIP_MIB2 - -#include "lwip/apps/snmp_core.h" - -extern const struct snmp_mib mib2; - -#if SNMP_USE_NETCONN -#include "lwip/apps/snmp_threadsync.h" -void snmp_mib2_lwip_synchronizer(snmp_threadsync_called_fn fn, void* arg); -extern struct snmp_threadsync_instance snmp_mib2_lwip_locks; -#endif - -#ifndef SNMP_SYSSERVICES -#define SNMP_SYSSERVICES ((1 << 6) | (1 << 3) | ((IP_FORWARD) << 2)) -#endif - -void snmp_mib2_set_sysdescr(const u8_t* str, const u16_t* len); /* read-only be defintion */ -void snmp_mib2_set_syscontact(u8_t *ocstr, u16_t *ocstrlen, u16_t bufsize); -void snmp_mib2_set_syscontact_readonly(const u8_t *ocstr, const u16_t *ocstrlen); -void snmp_mib2_set_sysname(u8_t *ocstr, u16_t *ocstrlen, u16_t bufsize); -void snmp_mib2_set_sysname_readonly(const u8_t *ocstr, const u16_t *ocstrlen); -void snmp_mib2_set_syslocation(u8_t *ocstr, u16_t *ocstrlen, u16_t bufsize); -void snmp_mib2_set_syslocation_readonly(const u8_t *ocstr, const u16_t *ocstrlen); - -#endif /* SNMP_LWIP_MIB2 */ -#endif /* LWIP_SNMP */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_APPS_SNMP_MIB2_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmp_opts.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmp_opts.h deleted file mode 100644 index c892d22..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmp_opts.h +++ /dev/null @@ -1,297 +0,0 @@ -/** - * @file - * SNMP server options list - */ - -/* - * Copyright (c) 2015 Dirk Ziegelmeier - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Dirk Ziegelmeier - * - */ -#ifndef LWIP_HDR_SNMP_OPTS_H -#define LWIP_HDR_SNMP_OPTS_H - -#include "lwip/opt.h" - -/** - * @defgroup snmp_opts Options - * @ingroup snmp - * @{ - */ - -/** - * LWIP_SNMP==1: This enables the lwIP SNMP agent. UDP must be available - * for SNMP transport. - * If you want to use your own SNMP agent, leave this disabled. - * To integrate MIB2 of an external agent, you need to enable - * LWIP_MIB2_CALLBACKS and MIB2_STATS. This will give you the callbacks - * and statistics counters you need to get MIB2 working. - */ -#if !defined LWIP_SNMP || defined __DOXYGEN__ -#define LWIP_SNMP 0 -#endif - -/** - * SNMP_USE_NETCONN: Use netconn API instead of raw API. - * Makes SNMP agent run in a worker thread, so blocking operations - * can be done in MIB calls. - */ -#if !defined SNMP_USE_NETCONN || defined __DOXYGEN__ -#define SNMP_USE_NETCONN 0 -#endif - -/** - * SNMP_USE_RAW: Use raw API. - * SNMP agent does not run in a worker thread, so blocking operations - * should not be done in MIB calls. - */ -#if !defined SNMP_USE_RAW || defined __DOXYGEN__ -#define SNMP_USE_RAW 1 -#endif - -#if SNMP_USE_NETCONN && SNMP_USE_RAW -#error SNMP stack can use only one of the APIs {raw, netconn} -#endif - -#if LWIP_SNMP && !SNMP_USE_NETCONN && !SNMP_USE_RAW -#error SNMP stack needs a receive API and UDP {raw, netconn} -#endif - -#if SNMP_USE_NETCONN -/** - * SNMP_STACK_SIZE: Stack size of SNMP netconn worker thread - */ -#if !defined SNMP_STACK_SIZE || defined __DOXYGEN__ -#define SNMP_STACK_SIZE DEFAULT_THREAD_STACKSIZE -#endif - -/** - * SNMP_THREAD_PRIO: SNMP netconn worker thread priority - */ -#if !defined SNMP_THREAD_PRIO || defined __DOXYGEN__ -#define SNMP_THREAD_PRIO DEFAULT_THREAD_PRIO -#endif -#endif /* SNMP_USE_NETCONN */ - -/** - * SNMP_TRAP_DESTINATIONS: Number of trap destinations. At least one trap - * destination is required - */ -#if !defined SNMP_TRAP_DESTINATIONS || defined __DOXYGEN__ -#define SNMP_TRAP_DESTINATIONS 1 -#endif - -/** - * Only allow SNMP write actions that are 'safe' (e.g. disabling netifs is not - * a safe action and disabled when SNMP_SAFE_REQUESTS = 1). - * Unsafe requests are disabled by default! - */ -#if !defined SNMP_SAFE_REQUESTS || defined __DOXYGEN__ -#define SNMP_SAFE_REQUESTS 1 -#endif - -/** - * The maximum length of strings used. - */ -#if !defined SNMP_MAX_OCTET_STRING_LEN || defined __DOXYGEN__ -#define SNMP_MAX_OCTET_STRING_LEN 127 -#endif - -/** - * The maximum number of Sub ID's inside an object identifier. - * Indirectly this also limits the maximum depth of SNMP tree. - */ -#if !defined SNMP_MAX_OBJ_ID_LEN || defined __DOXYGEN__ -#define SNMP_MAX_OBJ_ID_LEN 50 -#endif - -#if !defined SNMP_MAX_VALUE_SIZE || defined __DOXYGEN__ -/** - * The minimum size of a value. - */ -#define SNMP_MIN_VALUE_SIZE (2 * sizeof(u32_t*)) /* size required to store the basic types (8 bytes for counter64) */ -/** - * The maximum size of a value. - */ -#define SNMP_MAX_VALUE_SIZE LWIP_MAX(LWIP_MAX((SNMP_MAX_OCTET_STRING_LEN), sizeof(u32_t)*(SNMP_MAX_OBJ_ID_LEN)), SNMP_MIN_VALUE_SIZE) -#endif - -/** - * The snmp read-access community. Used for write-access and traps, too - * unless SNMP_COMMUNITY_WRITE or SNMP_COMMUNITY_TRAP are enabled, respectively. - */ -#if !defined SNMP_COMMUNITY || defined __DOXYGEN__ -#define SNMP_COMMUNITY "public" -#endif - -/** - * The snmp write-access community. - * Set this community to "" in order to disallow any write access. - */ -#if !defined SNMP_COMMUNITY_WRITE || defined __DOXYGEN__ -#define SNMP_COMMUNITY_WRITE "private" -#endif - -/** - * The snmp community used for sending traps. - */ -#if !defined SNMP_COMMUNITY_TRAP || defined __DOXYGEN__ -#define SNMP_COMMUNITY_TRAP "public" -#endif - -/** - * The maximum length of community string. - * If community names shall be adjusted at runtime via snmp_set_community() calls, - * enter here the possible maximum length (+1 for terminating null character). - */ -#if !defined SNMP_MAX_COMMUNITY_STR_LEN || defined __DOXYGEN__ -#define SNMP_MAX_COMMUNITY_STR_LEN LWIP_MAX(LWIP_MAX(sizeof(SNMP_COMMUNITY), sizeof(SNMP_COMMUNITY_WRITE)), sizeof(SNMP_COMMUNITY_TRAP)) -#endif - -/** - * The OID identifiying the device. This may be the enterprise OID itself or any OID located below it in tree. - */ -#if !defined SNMP_DEVICE_ENTERPRISE_OID || defined __DOXYGEN__ -#define SNMP_LWIP_ENTERPRISE_OID 26381 -/** - * IANA assigned enterprise ID for lwIP is 26381 - * @see http://www.iana.org/assignments/enterprise-numbers - * - * @note this enterprise ID is assigned to the lwIP project, - * all object identifiers living under this ID are assigned - * by the lwIP maintainers! - * @note don't change this define, use snmp_set_device_enterprise_oid() - * - * If you need to create your own private MIB you'll need - * to apply for your own enterprise ID with IANA: - * http://www.iana.org/numbers.html - */ -#define SNMP_DEVICE_ENTERPRISE_OID {1, 3, 6, 1, 4, 1, SNMP_LWIP_ENTERPRISE_OID} -/** - * Length of SNMP_DEVICE_ENTERPRISE_OID - */ -#define SNMP_DEVICE_ENTERPRISE_OID_LEN 7 -#endif - -/** - * SNMP_DEBUG: Enable debugging for SNMP messages. - */ -#if !defined SNMP_DEBUG || defined __DOXYGEN__ -#define SNMP_DEBUG LWIP_DBG_OFF -#endif - -/** - * SNMP_MIB_DEBUG: Enable debugging for SNMP MIBs. - */ -#if !defined SNMP_MIB_DEBUG || defined __DOXYGEN__ -#define SNMP_MIB_DEBUG LWIP_DBG_OFF -#endif - -/** - * Indicates if the MIB2 implementation of LWIP SNMP stack is used. - */ -#if !defined SNMP_LWIP_MIB2 || defined __DOXYGEN__ -#define SNMP_LWIP_MIB2 LWIP_SNMP -#endif - -/** - * Value return for sysDesc field of MIB2. - */ -#if !defined SNMP_LWIP_MIB2_SYSDESC || defined __DOXYGEN__ -#define SNMP_LWIP_MIB2_SYSDESC "lwIP" -#endif - -/** - * Value return for sysName field of MIB2. - * To make sysName field settable, call snmp_mib2_set_sysname() to provide the necessary buffers. - */ -#if !defined SNMP_LWIP_MIB2_SYSNAME || defined __DOXYGEN__ -#define SNMP_LWIP_MIB2_SYSNAME "FQDN-unk" -#endif - -/** - * Value return for sysContact field of MIB2. - * To make sysContact field settable, call snmp_mib2_set_syscontact() to provide the necessary buffers. - */ -#if !defined SNMP_LWIP_MIB2_SYSCONTACT || defined __DOXYGEN__ -#define SNMP_LWIP_MIB2_SYSCONTACT "" -#endif - -/** - * Value return for sysLocation field of MIB2. - * To make sysLocation field settable, call snmp_mib2_set_syslocation() to provide the necessary buffers. - */ -#if !defined SNMP_LWIP_MIB2_SYSLOCATION || defined __DOXYGEN__ -#define SNMP_LWIP_MIB2_SYSLOCATION "" -#endif - -/** - * This value is used to limit the repetitions processed in GetBulk requests (value == 0 means no limitation). - * This may be useful to limit the load for a single request. - * According to SNMP RFC 1905 it is allowed to not return all requested variables from a GetBulk request if system load would be too high. - * so the effect is that the client will do more requests to gather all data. - * For the stack this could be useful in case that SNMP processing is done in TCP/IP thread. In this situation a request with many - * repetitions could block the thread for a longer time. Setting limit here will keep the stack more responsive. - */ -#if !defined SNMP_LWIP_GETBULK_MAX_REPETITIONS || defined __DOXYGEN__ -#define SNMP_LWIP_GETBULK_MAX_REPETITIONS 0 -#endif - -/** - * @} - */ - -/* - ------------------------------------ - ---------- SNMPv3 options ---------- - ------------------------------------ -*/ - -/** - * LWIP_SNMP_V3==1: This enables EXPERIMENTAL SNMPv3 support. LWIP_SNMP must - * also be enabled. - * THIS IS UNDER DEVELOPMENT AND SHOULD NOT BE ENABLED IN PRODUCTS. - */ -#ifndef LWIP_SNMP_V3 -#define LWIP_SNMP_V3 0 -#endif - -#ifndef LWIP_SNMP_V3_MBEDTLS -#define LWIP_SNMP_V3_MBEDTLS LWIP_SNMP_V3 -#endif - -#ifndef LWIP_SNMP_V3_CRYPTO -#define LWIP_SNMP_V3_CRYPTO LWIP_SNMP_V3_MBEDTLS -#endif - -#ifndef LWIP_SNMP_CONFIGURE_VERSIONS -#define LWIP_SNMP_CONFIGURE_VERSIONS 0 -#endif - -#endif /* LWIP_HDR_SNMP_OPTS_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmp_scalar.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmp_scalar.h deleted file mode 100644 index 40a060c..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmp_scalar.h +++ /dev/null @@ -1,113 +0,0 @@ -/** - * @file - * SNMP server MIB API to implement scalar nodes - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Martin Hentschel - * - */ - -#ifndef LWIP_HDR_APPS_SNMP_SCALAR_H -#define LWIP_HDR_APPS_SNMP_SCALAR_H - -#include "lwip/apps/snmp_opts.h" -#include "lwip/apps/snmp_core.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#if LWIP_SNMP /* don't build if not configured for use in lwipopts.h */ - -/** basic scalar node */ -struct snmp_scalar_node -{ - /** inherited "base class" members */ - struct snmp_leaf_node node; - u8_t asn1_type; - snmp_access_t access; - node_instance_get_value_method get_value; - node_instance_set_test_method set_test; - node_instance_set_value_method set_value; -}; - - -snmp_err_t snmp_scalar_get_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance); -snmp_err_t snmp_scalar_get_next_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance); - -#define SNMP_SCALAR_CREATE_NODE(oid, access, asn1_type, get_value_method, set_test_method, set_value_method) \ - {{{ SNMP_NODE_SCALAR, (oid) }, \ - snmp_scalar_get_instance, \ - snmp_scalar_get_next_instance }, \ - (asn1_type), (access), (get_value_method), (set_test_method), (set_value_method) } - -#define SNMP_SCALAR_CREATE_NODE_READONLY(oid, asn1_type, get_value_method) SNMP_SCALAR_CREATE_NODE(oid, SNMP_NODE_INSTANCE_READ_ONLY, asn1_type, get_value_method, NULL, NULL) - -/** scalar array node - a tree node which contains scalars only as children */ -struct snmp_scalar_array_node_def -{ - u32_t oid; - u8_t asn1_type; - snmp_access_t access; -}; - -typedef s16_t (*snmp_scalar_array_get_value_method)(const struct snmp_scalar_array_node_def*, void*); -typedef snmp_err_t (*snmp_scalar_array_set_test_method)(const struct snmp_scalar_array_node_def*, u16_t, void*); -typedef snmp_err_t (*snmp_scalar_array_set_value_method)(const struct snmp_scalar_array_node_def*, u16_t, void*); - -/** basic scalar array node */ -struct snmp_scalar_array_node -{ - /** inherited "base class" members */ - struct snmp_leaf_node node; - u16_t array_node_count; - const struct snmp_scalar_array_node_def* array_nodes; - snmp_scalar_array_get_value_method get_value; - snmp_scalar_array_set_test_method set_test; - snmp_scalar_array_set_value_method set_value; -}; - -snmp_err_t snmp_scalar_array_get_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance); -snmp_err_t snmp_scalar_array_get_next_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance); - -#define SNMP_SCALAR_CREATE_ARRAY_NODE(oid, array_nodes, get_value_method, set_test_method, set_value_method) \ - {{{ SNMP_NODE_SCALAR_ARRAY, (oid) }, \ - snmp_scalar_array_get_instance, \ - snmp_scalar_array_get_next_instance }, \ - (u16_t)LWIP_ARRAYSIZE(array_nodes), (array_nodes), (get_value_method), (set_test_method), (set_value_method) } - -#endif /* LWIP_SNMP */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_APPS_SNMP_SCALAR_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmp_snmpv2_framework.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmp_snmpv2_framework.h deleted file mode 100644 index 47409cc..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmp_snmpv2_framework.h +++ /dev/null @@ -1,32 +0,0 @@ -/* -Generated by LwipMibCompiler -*/ - -#ifndef LWIP_HDR_APPS_SNMP_FRAMEWORK_MIB_H -#define LWIP_HDR_APPS_SNMP_FRAMEWORK_MIB_H - -#include "lwip/apps/snmp_opts.h" -#if LWIP_SNMP - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - -#include "lwip/apps/snmp_core.h" - -extern const struct snmp_obj_id usmNoAuthProtocol; -extern const struct snmp_obj_id usmHMACMD5AuthProtocol; -extern const struct snmp_obj_id usmHMACSHAAuthProtocol; - -extern const struct snmp_obj_id usmNoPrivProtocol; -extern const struct snmp_obj_id usmDESPrivProtocol; -extern const struct snmp_obj_id usmAESPrivProtocol; - -extern const struct snmp_mib snmpframeworkmib; - -#ifdef __cplusplus -} -#endif /* __cplusplus */ - -#endif /* LWIP_SNMP */ -#endif /* LWIP_HDR_APPS_SNMP_FRAMEWORK_MIB_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmp_snmpv2_usm.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmp_snmpv2_usm.h deleted file mode 100644 index 88cfcd8..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmp_snmpv2_usm.h +++ /dev/null @@ -1,24 +0,0 @@ -/* -Generated by LwipMibCompiler -*/ - -#ifndef LWIP_HDR_APPS_SNMP_USER_BASED_SM_MIB_H -#define LWIP_HDR_APPS_SNMP_USER_BASED_SM_MIB_H - -#include "lwip/apps/snmp_opts.h" -#if LWIP_SNMP - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - -#include "lwip/apps/snmp_core.h" - -extern const struct snmp_mib snmpusmmib; - -#ifdef __cplusplus -} -#endif /* __cplusplus */ - -#endif /* LWIP_SNMP */ -#endif /* LWIP_HDR_APPS_SNMP_USER_BASED_SM_MIB_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmp_table.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmp_table.h deleted file mode 100644 index 4988b51..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmp_table.h +++ /dev/null @@ -1,134 +0,0 @@ -/** - * @file - * SNMP server MIB API to implement table nodes - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Martin Hentschel - * - */ - -#ifndef LWIP_HDR_APPS_SNMP_TABLE_H -#define LWIP_HDR_APPS_SNMP_TABLE_H - -#include "lwip/apps/snmp_opts.h" -#include "lwip/apps/snmp_core.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#if LWIP_SNMP /* don't build if not configured for use in lwipopts.h */ - -/** default (customizable) read/write table */ -struct snmp_table_col_def -{ - u32_t index; - u8_t asn1_type; - snmp_access_t access; -}; - -/** table node */ -struct snmp_table_node -{ - /** inherited "base class" members */ - struct snmp_leaf_node node; - u16_t column_count; - const struct snmp_table_col_def* columns; - snmp_err_t (*get_cell_instance)(const u32_t* column, const u32_t* row_oid, u8_t row_oid_len, struct snmp_node_instance* cell_instance); - snmp_err_t (*get_next_cell_instance)(const u32_t* column, struct snmp_obj_id* row_oid, struct snmp_node_instance* cell_instance); - /** returns object value for the given object identifier */ - node_instance_get_value_method get_value; - /** tests length and/or range BEFORE setting */ - node_instance_set_test_method set_test; - /** sets object value, only called when set_test() was successful */ - node_instance_set_value_method set_value; -}; - -snmp_err_t snmp_table_get_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance); -snmp_err_t snmp_table_get_next_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance); - -#define SNMP_TABLE_CREATE(oid, columns, get_cell_instance_method, get_next_cell_instance_method, get_value_method, set_test_method, set_value_method) \ - {{{ SNMP_NODE_TABLE, (oid) }, \ - snmp_table_get_instance, \ - snmp_table_get_next_instance }, \ - (u16_t)LWIP_ARRAYSIZE(columns), (columns), \ - (get_cell_instance_method), (get_next_cell_instance_method), \ - (get_value_method), (set_test_method), (set_value_method)} - -#define SNMP_TABLE_GET_COLUMN_FROM_OID(oid) ((oid)[1]) /* first array value is (fixed) row entry (fixed to 1) and 2nd value is column, follow3ed by instance */ - - -/** simple read-only table */ -typedef enum { - SNMP_VARIANT_VALUE_TYPE_U32, - SNMP_VARIANT_VALUE_TYPE_S32, - SNMP_VARIANT_VALUE_TYPE_PTR, - SNMP_VARIANT_VALUE_TYPE_CONST_PTR -} snmp_table_column_data_type_t; - -struct snmp_table_simple_col_def -{ - u32_t index; - u8_t asn1_type; - snmp_table_column_data_type_t data_type; /* depending of what union member is used to store the value*/ -}; - -/** simple read-only table node */ -struct snmp_table_simple_node -{ - /* inherited "base class" members */ - struct snmp_leaf_node node; - u16_t column_count; - const struct snmp_table_simple_col_def* columns; - snmp_err_t (*get_cell_value)(const u32_t* column, const u32_t* row_oid, u8_t row_oid_len, union snmp_variant_value* value, u32_t* value_len); - snmp_err_t (*get_next_cell_instance_and_value)(const u32_t* column, struct snmp_obj_id* row_oid, union snmp_variant_value* value, u32_t* value_len); -}; - -snmp_err_t snmp_table_simple_get_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance); -snmp_err_t snmp_table_simple_get_next_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance); - -#define SNMP_TABLE_CREATE_SIMPLE(oid, columns, get_cell_value_method, get_next_cell_instance_and_value_method) \ - {{{ SNMP_NODE_TABLE, (oid) }, \ - snmp_table_simple_get_instance, \ - snmp_table_simple_get_next_instance }, \ - (u16_t)LWIP_ARRAYSIZE(columns), (columns), (get_cell_value_method), (get_next_cell_instance_and_value_method) } - -s16_t snmp_table_extract_value_from_s32ref(struct snmp_node_instance* instance, void* value); -s16_t snmp_table_extract_value_from_u32ref(struct snmp_node_instance* instance, void* value); -s16_t snmp_table_extract_value_from_refconstptr(struct snmp_node_instance* instance, void* value); - -#endif /* LWIP_SNMP */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_APPS_SNMP_TABLE_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmp_threadsync.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmp_threadsync.h deleted file mode 100644 index a25dbf2..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmp_threadsync.h +++ /dev/null @@ -1,114 +0,0 @@ -/** - * @file - * SNMP server MIB API to implement thread synchronization - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Dirk Ziegelmeier - * - */ - -#ifndef LWIP_HDR_APPS_SNMP_THREADSYNC_H -#define LWIP_HDR_APPS_SNMP_THREADSYNC_H - -#include "lwip/apps/snmp_opts.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#if LWIP_SNMP /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/apps/snmp_core.h" -#include "lwip/sys.h" - -typedef void (*snmp_threadsync_called_fn)(void* arg); -typedef void (*snmp_threadsync_synchronizer_fn)(snmp_threadsync_called_fn fn, void* arg); - - -/** Thread sync runtime data. For internal usage only. */ -struct threadsync_data -{ - union { - snmp_err_t err; - s16_t s16; - } retval; - union { - const u32_t *root_oid; - void *value; - } arg1; - union { - u8_t root_oid_len; - u16_t len; - } arg2; - const struct snmp_threadsync_node *threadsync_node; - struct snmp_node_instance proxy_instance; -}; - -/** Thread sync instance. Needed EXCATLY once for every thread to be synced into. */ -struct snmp_threadsync_instance -{ - sys_sem_t sem; - sys_mutex_t sem_usage_mutex; - snmp_threadsync_synchronizer_fn sync_fn; - struct threadsync_data data; -}; - -/** SNMP thread sync proxy leaf node */ -struct snmp_threadsync_node -{ - /* inherited "base class" members */ - struct snmp_leaf_node node; - - const struct snmp_leaf_node *target; - struct snmp_threadsync_instance *instance; -}; - -snmp_err_t snmp_threadsync_get_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance); -snmp_err_t snmp_threadsync_get_next_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance); - -/** Create thread sync proxy node */ -#define SNMP_CREATE_THREAD_SYNC_NODE(oid, target_leaf_node, threadsync_instance) \ - {{{ SNMP_NODE_THREADSYNC, (oid) }, \ - snmp_threadsync_get_instance, \ - snmp_threadsync_get_next_instance }, \ - (target_leaf_node), \ - (threadsync_instance) } - -/** Create thread sync instance data */ -void snmp_threadsync_init(struct snmp_threadsync_instance *instance, snmp_threadsync_synchronizer_fn sync_fn); - -#endif /* LWIP_SNMP */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_APPS_SNMP_THREADSYNC_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmpv3.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmpv3.h deleted file mode 100644 index e0dda64..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/snmpv3.h +++ /dev/null @@ -1,114 +0,0 @@ -/** - * @file - * Additional SNMPv3 functionality RFC3414 and RFC3826. - */ - -/* - * Copyright (c) 2016 Elias Oenal. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * Author: Elias Oenal - */ - -#ifndef LWIP_HDR_APPS_SNMP_V3_H -#define LWIP_HDR_APPS_SNMP_V3_H - -#include "lwip/apps/snmp_opts.h" -#include "lwip/err.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#if LWIP_SNMP && LWIP_SNMP_V3 - -typedef enum -{ - SNMP_V3_AUTH_ALGO_INVAL = 0, - SNMP_V3_AUTH_ALGO_MD5 = 1, - SNMP_V3_AUTH_ALGO_SHA = 2 -} snmpv3_auth_algo_t; - -typedef enum -{ - SNMP_V3_PRIV_ALGO_INVAL = 0, - SNMP_V3_PRIV_ALGO_DES = 1, - SNMP_V3_PRIV_ALGO_AES = 2 -} snmpv3_priv_algo_t; - -typedef enum -{ - SNMP_V3_USER_STORAGETYPE_OTHER = 1, - SNMP_V3_USER_STORAGETYPE_VOLATILE = 2, - SNMP_V3_USER_STORAGETYPE_NONVOLATILE = 3, - SNMP_V3_USER_STORAGETYPE_PERMANENT = 4, - SNMP_V3_USER_STORAGETYPE_READONLY = 5 -} snmpv3_user_storagetype_t; - -/* - * The following callback functions must be implemented by the application. - * There is a dummy implementation in snmpv3_dummy.c. - */ - -void snmpv3_get_engine_id(const char **id, u8_t *len); -err_t snmpv3_set_engine_id(const char* id, u8_t len); - -u32_t snmpv3_get_engine_boots(void); -void snmpv3_set_engine_boots(u32_t boots); - -u32_t snmpv3_get_engine_time(void); -void snmpv3_reset_engine_time(void); - -err_t snmpv3_get_user(const char* username, snmpv3_auth_algo_t *auth_algo, u8_t *auth_key, snmpv3_priv_algo_t *priv_algo, u8_t *priv_key); -u8_t snmpv3_get_amount_of_users(void); -err_t snmpv3_get_user_storagetype(const char *username, snmpv3_user_storagetype_t *storagetype); -err_t snmpv3_get_username(char *username, u8_t index); - -/* The following functions are provided by the SNMPv3 agent */ - -void snmpv3_engine_id_changed(void); -s32_t snmpv3_get_engine_time_internal(void); - -void snmpv3_password_to_key_md5( - const u8_t *password, /* IN */ - size_t passwordlen, /* IN */ - const u8_t *engineID, /* IN - pointer to snmpEngineID */ - u8_t engineLength, /* IN - length of snmpEngineID */ - u8_t *key); /* OUT - pointer to caller 16-octet buffer */ - -void snmpv3_password_to_key_sha( - const u8_t *password, /* IN */ - size_t passwordlen, /* IN */ - const u8_t *engineID, /* IN - pointer to snmpEngineID */ - u8_t engineLength, /* IN - length of snmpEngineID */ - u8_t *key); /* OUT - pointer to caller 20-octet buffer */ - -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_APPS_SNMP_V3_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/sntp.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/sntp.h deleted file mode 100644 index 3c0f95f..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/sntp.h +++ /dev/null @@ -1,80 +0,0 @@ -/** - * @file - * SNTP client API - */ - -/* - * Copyright (c) 2007-2009 Frédéric Bernon, Simon Goldschmidt - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Frédéric Bernon, Simon Goldschmidt - * - */ -#ifndef LWIP_HDR_APPS_SNTP_H -#define LWIP_HDR_APPS_SNTP_H - -#include "lwip/apps/sntp_opts.h" -#include "lwip/ip_addr.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* SNTP operating modes: default is to poll using unicast. - The mode has to be set before calling sntp_init(). */ -#define SNTP_OPMODE_POLL 0 -#define SNTP_OPMODE_LISTENONLY 1 -void sntp_setoperatingmode(u8_t operating_mode); -u8_t sntp_getoperatingmode(void); - -void sntp_init(void); -void sntp_stop(void); -u8_t sntp_enabled(void); - -void sntp_setserver(u8_t idx, const ip_addr_t *addr); -const ip_addr_t* sntp_getserver(u8_t idx); - -#if SNTP_MONITOR_SERVER_REACHABILITY -u8_t sntp_getreachability(u8_t idx); -#endif /* SNTP_MONITOR_SERVER_REACHABILITY */ - -#if SNTP_SERVER_DNS -void sntp_setservername(u8_t idx, const char *server); -const char *sntp_getservername(u8_t idx); -#endif /* SNTP_SERVER_DNS */ - -#if SNTP_GET_SERVERS_FROM_DHCP -void sntp_servermode_dhcp(int set_servers_from_dhcp); -#else /* SNTP_GET_SERVERS_FROM_DHCP */ -#define sntp_servermode_dhcp(x) -#endif /* SNTP_GET_SERVERS_FROM_DHCP */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_APPS_SNTP_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/sntp_opts.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/sntp_opts.h deleted file mode 100644 index ed98040..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/sntp_opts.h +++ /dev/null @@ -1,209 +0,0 @@ -/** - * @file - * SNTP client options list - */ - -/* - * Copyright (c) 2007-2009 Frédéric Bernon, Simon Goldschmidt - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Frédéric Bernon, Simon Goldschmidt - * - */ -#ifndef LWIP_HDR_APPS_SNTP_OPTS_H -#define LWIP_HDR_APPS_SNTP_OPTS_H - -#include "lwip/opt.h" -#include "lwip/prot/iana.h" - -/** - * @defgroup sntp_opts Options - * @ingroup sntp - * @{ - */ - -/** SNTP macro to change system time in seconds - * Define SNTP_SET_SYSTEM_TIME_US(sec, us) to set the time in microseconds - * instead of this one if you need the additional precision. Alternatively, - * define SNTP_SET_SYSTEM_TIME_NTP(sec, frac) in order to work with native - * NTP timestamps instead. - */ -#if !defined SNTP_SET_SYSTEM_TIME || defined __DOXYGEN__ -#define SNTP_SET_SYSTEM_TIME(sec) LWIP_UNUSED_ARG(sec) -#endif - -/** The maximum number of SNTP servers that can be set */ -#if !defined SNTP_MAX_SERVERS || defined __DOXYGEN__ -#define SNTP_MAX_SERVERS LWIP_DHCP_MAX_NTP_SERVERS -#endif - -/** Set this to 1 to implement the callback function called by dhcp when - * NTP servers are received. */ -#if !defined SNTP_GET_SERVERS_FROM_DHCP || defined __DOXYGEN__ -#define SNTP_GET_SERVERS_FROM_DHCP LWIP_DHCP_GET_NTP_SRV -#endif - -/** Set this to 1 to support DNS names (or IP address strings) to set sntp servers - * One server address/name can be defined as default if SNTP_SERVER_DNS == 1: - * \#define SNTP_SERVER_ADDRESS "pool.ntp.org" - */ -#if !defined SNTP_SERVER_DNS || defined __DOXYGEN__ -#define SNTP_SERVER_DNS 0 -#endif - -/** - * SNTP_DEBUG: Enable debugging for SNTP. - */ -#if !defined SNTP_DEBUG || defined __DOXYGEN__ -#define SNTP_DEBUG LWIP_DBG_OFF -#endif - -/** SNTP server port */ -#if !defined SNTP_PORT || defined __DOXYGEN__ -#define SNTP_PORT LWIP_IANA_PORT_SNTP -#endif - -/** Sanity check: - * Define this to - * - 0 to turn off sanity checks (default; smaller code) - * - >= 1 to check address and port of the response packet to ensure the - * response comes from the server we sent the request to. - * - >= 2 to check returned Originate Timestamp against Transmit Timestamp - * sent to the server (to ensure response to older request). - * - >= 3 @todo: discard reply if any of the VN, Stratum, or Transmit Timestamp - * fields is 0 or the Mode field is not 4 (unicast) or 5 (broadcast). - * - >= 4 @todo: to check that the Root Delay and Root Dispersion fields are each - * greater than or equal to 0 and less than infinity, where infinity is - * currently a cozy number like one second. This check avoids using a - * server whose synchronization source has expired for a very long time. - */ -#if !defined SNTP_CHECK_RESPONSE || defined __DOXYGEN__ -#define SNTP_CHECK_RESPONSE 0 -#endif - -/** Enable round-trip delay compensation. - * Compensate for the round-trip delay by calculating the clock offset from - * the originate, receive, transmit and destination timestamps, as per RFC. - * - * The calculation requires compiler support for 64-bit integers. Also, either - * SNTP_SET_SYSTEM_TIME_US or SNTP_SET_SYSTEM_TIME_NTP has to be implemented - * for setting the system clock with sub-second precision. Likewise, either - * SNTP_GET_SYSTEM_TIME or SNTP_GET_SYSTEM_TIME_NTP needs to be implemented - * with sub-second precision. - * - * Although not strictly required, it makes sense to combine this option with - * SNTP_CHECK_RESPONSE >= 2 for sanity-checking of the received timestamps. - * Also, in order for the round-trip calculation to work, the difference - * between the local clock and the NTP server clock must not be larger than - * about 34 years. If that limit is exceeded, the implementation will fall back - * to setting the clock without compensation. In order to ensure that the local - * clock is always within the permitted range for compensation, even at first - * try, it may be necessary to store at least the current year in non-volatile - * memory. - */ -#if !defined SNTP_COMP_ROUNDTRIP || defined __DOXYGEN__ -#define SNTP_COMP_ROUNDTRIP 0 -#endif - -/** According to the RFC, this shall be a random delay - * between 1 and 5 minutes (in milliseconds) to prevent load peaks. - * This can be defined to a random generation function, - * which must return the delay in milliseconds as u32_t. - * Turned off by default. - */ -#if !defined SNTP_STARTUP_DELAY || defined __DOXYGEN__ -#ifdef LWIP_RAND -#define SNTP_STARTUP_DELAY 1 -#else -#define SNTP_STARTUP_DELAY 0 -#endif -#endif - -/** If you want the startup delay to be a function, define this - * to a function (including the brackets) and define SNTP_STARTUP_DELAY to 1. - */ -#if !defined SNTP_STARTUP_DELAY_FUNC || defined __DOXYGEN__ -#define SNTP_STARTUP_DELAY_FUNC (LWIP_RAND() % 5000) -#endif - -/** SNTP receive timeout - in milliseconds - * Also used as retry timeout - this shouldn't be too low. - * Default is 15 seconds. Must not be beolw 15 seconds by specification (i.e. 15000) - */ -#if !defined SNTP_RECV_TIMEOUT || defined __DOXYGEN__ -#define SNTP_RECV_TIMEOUT 15000 -#endif - -/** SNTP update delay - in milliseconds - * Default is 1 hour. Must not be beolw 60 seconds by specification (i.e. 60000) - */ -#if !defined SNTP_UPDATE_DELAY || defined __DOXYGEN__ -#define SNTP_UPDATE_DELAY 3600000 -#endif - -/** SNTP macro to get system time, used with SNTP_CHECK_RESPONSE >= 2 - * to send in request and compare in response. Also used for round-trip - * delay compensation if SNTP_COMP_ROUNDTRIP != 0. - * Alternatively, define SNTP_GET_SYSTEM_TIME_NTP(sec, frac) in order to - * work with native NTP timestamps instead. - */ -#if !defined SNTP_GET_SYSTEM_TIME || defined __DOXYGEN__ -#define SNTP_GET_SYSTEM_TIME(sec, us) do { (sec) = 0; (us) = 0; } while(0) -#endif - -/** Default retry timeout (in milliseconds) if the response - * received is invalid. - * This is doubled with each retry until SNTP_RETRY_TIMEOUT_MAX is reached. - */ -#if !defined SNTP_RETRY_TIMEOUT || defined __DOXYGEN__ -#define SNTP_RETRY_TIMEOUT SNTP_RECV_TIMEOUT -#endif - -/** Maximum retry timeout (in milliseconds). */ -#if !defined SNTP_RETRY_TIMEOUT_MAX || defined __DOXYGEN__ -#define SNTP_RETRY_TIMEOUT_MAX (SNTP_RETRY_TIMEOUT * 10) -#endif - -/** Increase retry timeout with every retry sent - * Default is on to conform to RFC. - */ -#if !defined SNTP_RETRY_TIMEOUT_EXP || defined __DOXYGEN__ -#define SNTP_RETRY_TIMEOUT_EXP 1 -#endif - -/** Keep a reachability shift register per server - * Default is on to conform to RFC. - */ -#if !defined SNTP_MONITOR_SERVER_REACHABILITY || defined __DOXYGEN__ -#define SNTP_MONITOR_SERVER_REACHABILITY 1 -#endif - -/** - * @} - */ - -#endif /* LWIP_HDR_APPS_SNTP_OPTS_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/tftp_opts.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/tftp_opts.h deleted file mode 100644 index 198f632..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/tftp_opts.h +++ /dev/null @@ -1,106 +0,0 @@ -/** - * - * @file tftp_opts.h - * - * @author Logan Gunthorpe - * - * @brief Trivial File Transfer Protocol (RFC 1350) implementation options - * - * Copyright (c) Deltatee Enterprises Ltd. 2013 - * All rights reserved. - * - */ - -/* - * Redistribution and use in source and binary forms, with or without - * modification,are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO - * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED - * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * Author: Logan Gunthorpe - * - */ - -#ifndef LWIP_HDR_APPS_TFTP_OPTS_H -#define LWIP_HDR_APPS_TFTP_OPTS_H - -#include "lwip/opt.h" -#include "lwip/prot/iana.h" - -/** - * @defgroup tftp_opts Options - * @ingroup tftp - * @{ - */ - -/** - * Enable TFTP debug messages - */ -#if !defined TFTP_DEBUG || defined __DOXYGEN__ -#define TFTP_DEBUG LWIP_DBG_OFF -#endif - -/** - * TFTP server port - */ -#if !defined TFTP_PORT || defined __DOXYGEN__ -#define TFTP_PORT LWIP_IANA_PORT_TFTP -#endif - -/** - * TFTP timeout - */ -#if !defined TFTP_TIMEOUT_MSECS || defined __DOXYGEN__ -#define TFTP_TIMEOUT_MSECS 10000 -#endif - -/** - * Max. number of retries when a file is read from server - */ -#if !defined TFTP_MAX_RETRIES || defined __DOXYGEN__ -#define TFTP_MAX_RETRIES 5 -#endif - -/** - * TFTP timer cyclic interval - */ -#if !defined TFTP_TIMER_MSECS || defined __DOXYGEN__ -#define TFTP_TIMER_MSECS (TFTP_TIMEOUT_MSECS / 10) -#endif - -/** - * Max. length of TFTP filename - */ -#if !defined TFTP_MAX_FILENAME_LEN || defined __DOXYGEN__ -#define TFTP_MAX_FILENAME_LEN 20 -#endif - -/** - * Max. length of TFTP mode - */ -#if !defined TFTP_MAX_MODE_LEN || defined __DOXYGEN__ -#define TFTP_MAX_MODE_LEN 7 -#endif - -/** - * @} - */ - -#endif /* LWIP_HDR_APPS_TFTP_OPTS_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/tftp_server.h b/Middlewares/Third_Party/LwIP/src/include/lwip/apps/tftp_server.h deleted file mode 100644 index 0a7fbee..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/apps/tftp_server.h +++ /dev/null @@ -1,95 +0,0 @@ -/** - * - * @file tftp_server.h - * - * @author Logan Gunthorpe - * - * @brief Trivial File Transfer Protocol (RFC 1350) - * - * Copyright (c) Deltatee Enterprises Ltd. 2013 - * All rights reserved. - * - */ - -/* - * Redistribution and use in source and binary forms, with or without - * modification,are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO - * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED - * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * Author: Logan Gunthorpe - * - */ - -#ifndef LWIP_HDR_APPS_TFTP_SERVER_H -#define LWIP_HDR_APPS_TFTP_SERVER_H - -#include "lwip/apps/tftp_opts.h" -#include "lwip/err.h" -#include "lwip/pbuf.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** @ingroup tftp - * TFTP context containing callback functions for TFTP transfers - */ -struct tftp_context { - /** - * Open file for read/write. - * @param fname Filename - * @param mode Mode string from TFTP RFC 1350 (netascii, octet, mail) - * @param write Flag indicating read (0) or write (!= 0) access - * @returns File handle supplied to other functions - */ - void* (*open)(const char* fname, const char* mode, u8_t write); - /** - * Close file handle - * @param handle File handle returned by open() - */ - void (*close)(void* handle); - /** - * Read from file - * @param handle File handle returned by open() - * @param buf Target buffer to copy read data to - * @param bytes Number of bytes to copy to buf - * @returns >= 0: Success; < 0: Error - */ - int (*read)(void* handle, void* buf, int bytes); - /** - * Write to file - * @param handle File handle returned by open() - * @param pbuf PBUF adjusted such that payload pointer points - * to the beginning of write data. In other words, - * TFTP headers are stripped off. - * @returns >= 0: Success; < 0: Error - */ - int (*write)(void* handle, struct pbuf* p); -}; - -err_t tftp_init(const struct tftp_context* ctx); -void tftp_cleanup(void); - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_APPS_TFTP_SERVER_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/arch.h b/Middlewares/Third_Party/LwIP/src/include/lwip/arch.h deleted file mode 100644 index 58dae33..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/arch.h +++ /dev/null @@ -1,393 +0,0 @@ -/** - * @file - * Support for different processor and compiler architectures - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_ARCH_H -#define LWIP_HDR_ARCH_H - -#ifndef LITTLE_ENDIAN -#define LITTLE_ENDIAN 1234 -#endif - -#ifndef BIG_ENDIAN -#define BIG_ENDIAN 4321 -#endif - -#include "arch/cc.h" - -/** - * @defgroup compiler_abstraction Compiler/platform abstraction - * @ingroup sys_layer - * All defines related to this section must not be placed in lwipopts.h, - * but in arch/cc.h! - * If the compiler does not provide memset() this file must include a - * definition of it, or include a file which defines it. - * These options cannot be \#defined in lwipopts.h since they are not options - * of lwIP itself, but options of the lwIP port to your system. - * @{ - */ - -/** Define the byte order of the system. - * Needed for conversion of network data to host byte order. - * Allowed values: LITTLE_ENDIAN and BIG_ENDIAN - */ -#ifndef BYTE_ORDER -#define BYTE_ORDER LITTLE_ENDIAN -#endif - -/** Define random number generator function of your system */ -#ifdef __DOXYGEN__ -#define LWIP_RAND() ((u32_t)rand()) -#endif - -/** Platform specific diagnostic output.\n - * Note the default implementation pulls in printf, which may - * in turn pull in a lot of standard libary code. In resource-constrained - * systems, this should be defined to something less resource-consuming. - */ -#ifndef LWIP_PLATFORM_DIAG -#define LWIP_PLATFORM_DIAG(x) do {printf x;} while(0) -#include -#include -#endif - -/** Platform specific assertion handling.\n - * Note the default implementation pulls in printf, fflush and abort, which may - * in turn pull in a lot of standard libary code. In resource-constrained - * systems, this should be defined to something less resource-consuming. - */ -#ifndef LWIP_PLATFORM_ASSERT -#define LWIP_PLATFORM_ASSERT(x) do {printf("Assertion \"%s\" failed at line %d in %s\n", \ - x, __LINE__, __FILE__); fflush(NULL); abort();} while(0) -#include -#include -#endif - -/** Define this to 1 in arch/cc.h of your port if you do not want to - * include stddef.h header to get size_t. You need to typedef size_t - * by yourself in this case. - */ -#ifndef LWIP_NO_STDDEF_H -#define LWIP_NO_STDDEF_H 0 -#endif - -#if !LWIP_NO_STDDEF_H -#include /* for size_t */ -#endif - -/** Define this to 1 in arch/cc.h of your port if your compiler does not provide - * the stdint.h header. You need to typedef the generic types listed in - * lwip/arch.h yourself in this case (u8_t, u16_t...). - */ -#ifndef LWIP_NO_STDINT_H -#define LWIP_NO_STDINT_H 0 -#endif - -/* Define generic types used in lwIP */ -#if !LWIP_NO_STDINT_H -#include -/* stdint.h is C99 which should also provide support for 64-bit integers */ -#if !defined(LWIP_HAVE_INT64) && defined(UINT64_MAX) -#define LWIP_HAVE_INT64 1 -#endif -typedef uint8_t u8_t; -typedef int8_t s8_t; -typedef uint16_t u16_t; -typedef int16_t s16_t; -typedef uint32_t u32_t; -typedef int32_t s32_t; -#if LWIP_HAVE_INT64 -typedef uint64_t u64_t; -typedef int64_t s64_t; -#endif -typedef uintptr_t mem_ptr_t; -#endif - -/** Define this to 1 in arch/cc.h of your port if your compiler does not provide - * the inttypes.h header. You need to define the format strings listed in - * lwip/arch.h yourself in this case (X8_F, U16_F...). - */ -#ifndef LWIP_NO_INTTYPES_H -#define LWIP_NO_INTTYPES_H 0 -#endif - -/* Define (sn)printf formatters for these lwIP types */ -#if !LWIP_NO_INTTYPES_H -#include -#ifndef X8_F -#define X8_F "02" PRIx8 -#endif -#ifndef U16_F -#define U16_F PRIu16 -#endif -#ifndef S16_F -#define S16_F PRId16 -#endif -#ifndef X16_F -#define X16_F PRIx16 -#endif -#ifndef U32_F -#define U32_F PRIu32 -#endif -#ifndef S32_F -#define S32_F PRId32 -#endif -#ifndef X32_F -#define X32_F PRIx32 -#endif -#ifndef SZT_F -#define SZT_F PRIuPTR -#endif -#endif - -/** Define this to 1 in arch/cc.h of your port if your compiler does not provide - * the limits.h header. You need to define the type limits yourself in this case - * (e.g. INT_MAX, SSIZE_MAX). - */ -#ifndef LWIP_NO_LIMITS_H -#define LWIP_NO_LIMITS_H 0 -#endif - -/* Include limits.h? */ -#if !LWIP_NO_LIMITS_H -#include -#endif - -/* Do we need to define ssize_t? This is a compatibility hack: - * Unfortunately, this type seems to be unavailable on some systems (even if - * sys/types or unistd.h are available). - * Being like that, we define it to 'int' if SSIZE_MAX is not defined. - */ -#ifdef SSIZE_MAX -/* If SSIZE_MAX is defined, unistd.h should provide the type as well */ -#ifndef LWIP_NO_UNISTD_H -#define LWIP_NO_UNISTD_H 0 -#endif -#if !LWIP_NO_UNISTD_H -#include -#endif -#else /* SSIZE_MAX */ -typedef int ssize_t; -#define SSIZE_MAX INT_MAX -#endif /* SSIZE_MAX */ - -/* some maximum values needed in lwip code */ -#define LWIP_UINT32_MAX 0xffffffff - -/** Define this to 1 in arch/cc.h of your port if your compiler does not provide - * the ctype.h header. If ctype.h is available, a few character functions - * are mapped to the appropriate functions (lwip_islower, lwip_isdigit...), if - * not, a private implementation is provided. - */ -#ifndef LWIP_NO_CTYPE_H -#define LWIP_NO_CTYPE_H 0 -#endif - -#if LWIP_NO_CTYPE_H -#define lwip_in_range(c, lo, up) ((u8_t)(c) >= (lo) && (u8_t)(c) <= (up)) -#define lwip_isdigit(c) lwip_in_range((c), '0', '9') -#define lwip_isxdigit(c) (lwip_isdigit(c) || lwip_in_range((c), 'a', 'f') || lwip_in_range((c), 'A', 'F')) -#define lwip_islower(c) lwip_in_range((c), 'a', 'z') -#define lwip_isspace(c) ((c) == ' ' || (c) == '\f' || (c) == '\n' || (c) == '\r' || (c) == '\t' || (c) == '\v') -#define lwip_isupper(c) lwip_in_range((c), 'A', 'Z') -#define lwip_tolower(c) (lwip_isupper(c) ? (c) - 'A' + 'a' : c) -#define lwip_toupper(c) (lwip_islower(c) ? (c) - 'a' + 'A' : c) -#else -#include -#define lwip_isdigit(c) isdigit((unsigned char)(c)) -#define lwip_isxdigit(c) isxdigit((unsigned char)(c)) -#define lwip_islower(c) islower((unsigned char)(c)) -#define lwip_isspace(c) isspace((unsigned char)(c)) -#define lwip_isupper(c) isupper((unsigned char)(c)) -#define lwip_tolower(c) tolower((unsigned char)(c)) -#define lwip_toupper(c) toupper((unsigned char)(c)) -#endif - -/** C++ const_cast(val) equivalent to remove constness from a value (GCC -Wcast-qual) */ -#ifndef LWIP_CONST_CAST -#define LWIP_CONST_CAST(target_type, val) ((target_type)((ptrdiff_t)val)) -#endif - -/** Get rid of alignment cast warnings (GCC -Wcast-align) */ -#ifndef LWIP_ALIGNMENT_CAST -#define LWIP_ALIGNMENT_CAST(target_type, val) LWIP_CONST_CAST(target_type, val) -#endif - -/** Get rid of warnings related to pointer-to-numeric and vice-versa casts, - * e.g. "conversion from 'u8_t' to 'void *' of greater size" - */ -#ifndef LWIP_PTR_NUMERIC_CAST -#define LWIP_PTR_NUMERIC_CAST(target_type, val) LWIP_CONST_CAST(target_type, val) -#endif - -/** Avoid warnings/errors related to implicitly casting away packed attributes by doing a explicit cast */ -#ifndef LWIP_PACKED_CAST -#define LWIP_PACKED_CAST(target_type, val) LWIP_CONST_CAST(target_type, val) -#endif - -/** Allocates a memory buffer of specified size that is of sufficient size to align - * its start address using LWIP_MEM_ALIGN. - * You can declare your own version here e.g. to enforce alignment without adding - * trailing padding bytes (see LWIP_MEM_ALIGN_BUFFER) or your own section placement - * requirements.\n - * e.g. if you use gcc and need 32 bit alignment:\n - * \#define LWIP_DECLARE_MEMORY_ALIGNED(variable_name, size) u8_t variable_name[size] \_\_attribute\_\_((aligned(4)))\n - * or more portable:\n - * \#define LWIP_DECLARE_MEMORY_ALIGNED(variable_name, size) u32_t variable_name[(size + sizeof(u32_t) - 1) / sizeof(u32_t)] - */ -#ifndef LWIP_DECLARE_MEMORY_ALIGNED -#define LWIP_DECLARE_MEMORY_ALIGNED(variable_name, size) u8_t variable_name[LWIP_MEM_ALIGN_BUFFER(size)] -#endif - -/** Calculate memory size for an aligned buffer - returns the next highest - * multiple of MEM_ALIGNMENT (e.g. LWIP_MEM_ALIGN_SIZE(3) and - * LWIP_MEM_ALIGN_SIZE(4) will both yield 4 for MEM_ALIGNMENT == 4). - */ -#ifndef LWIP_MEM_ALIGN_SIZE -#define LWIP_MEM_ALIGN_SIZE(size) (((size) + MEM_ALIGNMENT - 1U) & ~(MEM_ALIGNMENT-1U)) -#endif - -/** Calculate safe memory size for an aligned buffer when using an unaligned - * type as storage. This includes a safety-margin on (MEM_ALIGNMENT - 1) at the - * start (e.g. if buffer is u8_t[] and actual data will be u32_t*) - */ -#ifndef LWIP_MEM_ALIGN_BUFFER -#define LWIP_MEM_ALIGN_BUFFER(size) (((size) + MEM_ALIGNMENT - 1U)) -#endif - -/** Align a memory pointer to the alignment defined by MEM_ALIGNMENT - * so that ADDR % MEM_ALIGNMENT == 0 - */ -#ifndef LWIP_MEM_ALIGN -#define LWIP_MEM_ALIGN(addr) ((void *)(((mem_ptr_t)(addr) + MEM_ALIGNMENT - 1) & ~(mem_ptr_t)(MEM_ALIGNMENT-1))) -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -/** Packed structs support. - * Placed BEFORE declaration of a packed struct.\n - * For examples of packed struct declarations, see include/lwip/prot/ subfolder.\n - * A port to GCC/clang is included in lwIP, if you use these compilers there is nothing to do here. - */ -#ifndef PACK_STRUCT_BEGIN -#define PACK_STRUCT_BEGIN -#endif /* PACK_STRUCT_BEGIN */ - -/** Packed structs support. - * Placed AFTER declaration of a packed struct.\n - * For examples of packed struct declarations, see include/lwip/prot/ subfolder.\n - * A port to GCC/clang is included in lwIP, if you use these compilers there is nothing to do here. - */ -#ifndef PACK_STRUCT_END -#define PACK_STRUCT_END -#endif /* PACK_STRUCT_END */ - -/** Packed structs support. - * Placed between end of declaration of a packed struct and trailing semicolon.\n - * For examples of packed struct declarations, see include/lwip/prot/ subfolder.\n - * A port to GCC/clang is included in lwIP, if you use these compilers there is nothing to do here. - */ -#ifndef PACK_STRUCT_STRUCT -#if defined(__GNUC__) || defined(__clang__) -#define PACK_STRUCT_STRUCT __attribute__((packed)) -#else -#define PACK_STRUCT_STRUCT -#endif -#endif /* PACK_STRUCT_STRUCT */ - -/** Packed structs support. - * Wraps u32_t and u16_t members.\n - * For examples of packed struct declarations, see include/lwip/prot/ subfolder.\n - * A port to GCC/clang is included in lwIP, if you use these compilers there is nothing to do here. - */ -#ifndef PACK_STRUCT_FIELD -#define PACK_STRUCT_FIELD(x) x -#endif /* PACK_STRUCT_FIELD */ - -/** Packed structs support. - * Wraps u8_t members, where some compilers warn that packing is not necessary.\n - * For examples of packed struct declarations, see include/lwip/prot/ subfolder.\n - * A port to GCC/clang is included in lwIP, if you use these compilers there is nothing to do here. - */ -#ifndef PACK_STRUCT_FLD_8 -#define PACK_STRUCT_FLD_8(x) PACK_STRUCT_FIELD(x) -#endif /* PACK_STRUCT_FLD_8 */ - -/** Packed structs support. - * Wraps members that are packed structs themselves, where some compilers warn that packing is not necessary.\n - * For examples of packed struct declarations, see include/lwip/prot/ subfolder.\n - * A port to GCC/clang is included in lwIP, if you use these compilers there is nothing to do here. - */ -#ifndef PACK_STRUCT_FLD_S -#define PACK_STRUCT_FLD_S(x) PACK_STRUCT_FIELD(x) -#endif /* PACK_STRUCT_FLD_S */ - -/** PACK_STRUCT_USE_INCLUDES==1: Packed structs support using \#include files before and after struct to be packed.\n - * The file included BEFORE the struct is "arch/bpstruct.h".\n - * The file included AFTER the struct is "arch/epstruct.h".\n - * This can be used to implement struct packing on MS Visual C compilers, see - * the Win32 port in the lwIP contrib repository for reference. - * For examples of packed struct declarations, see include/lwip/prot/ subfolder.\n - * A port to GCC/clang is included in lwIP, if you use these compilers there is nothing to do here. - */ -#ifdef __DOXYGEN__ -#define PACK_STRUCT_USE_INCLUDES -#endif - -/** Eliminates compiler warning about unused arguments (GCC -Wextra -Wunused). */ -#ifndef LWIP_UNUSED_ARG -#define LWIP_UNUSED_ARG(x) (void)x -#endif /* LWIP_UNUSED_ARG */ - -/** LWIP_PROVIDE_ERRNO==1: Let lwIP provide ERRNO values and the 'errno' variable. - * If this is disabled, cc.h must either define 'errno', include , - * define LWIP_ERRNO_STDINCLUDE to get included or - * define LWIP_ERRNO_INCLUDE to or equivalent. - */ -#if defined __DOXYGEN__ -#define LWIP_PROVIDE_ERRNO -#endif - -/** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_ARCH_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/autoip.h b/Middlewares/Third_Party/LwIP/src/include/lwip/autoip.h deleted file mode 100644 index 1d85bcc..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/autoip.h +++ /dev/null @@ -1,99 +0,0 @@ -/** - * @file - * - * AutoIP Automatic LinkLocal IP Configuration - */ - -/* - * - * Copyright (c) 2007 Dominik Spies - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * Author: Dominik Spies - * - * This is a AutoIP implementation for the lwIP TCP/IP stack. It aims to conform - * with RFC 3927. - * - */ - -#ifndef LWIP_HDR_AUTOIP_H -#define LWIP_HDR_AUTOIP_H - -#include "lwip/opt.h" - -#if LWIP_IPV4 && LWIP_AUTOIP /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/netif.h" -/* #include "lwip/udp.h" */ -#include "lwip/etharp.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** AutoIP Timing */ -#define AUTOIP_TMR_INTERVAL 100 -#define AUTOIP_TICKS_PER_SECOND (1000 / AUTOIP_TMR_INTERVAL) - -/** AutoIP state information per netif */ -struct autoip -{ - /** the currently selected, probed, announced or used LL IP-Address */ - ip4_addr_t llipaddr; - /** current AutoIP state machine state */ - u8_t state; - /** sent number of probes or announces, dependent on state */ - u8_t sent_num; - /** ticks to wait, tick is AUTOIP_TMR_INTERVAL long */ - u16_t ttw; - /** ticks until a conflict can be solved by defending */ - u8_t lastconflict; - /** total number of probed/used Link Local IP-Addresses */ - u8_t tried_llipaddr; -}; - - -void autoip_set_struct(struct netif *netif, struct autoip *autoip); -/** Remove a struct autoip previously set to the netif using autoip_set_struct() */ -#define autoip_remove_struct(netif) do { (netif)->autoip = NULL; } while (0) -err_t autoip_start(struct netif *netif); -err_t autoip_stop(struct netif *netif); -void autoip_arp_reply(struct netif *netif, struct etharp_hdr *hdr); -void autoip_tmr(void); -void autoip_network_changed(struct netif *netif); -u8_t autoip_supplied_address(const struct netif *netif); - -/* for lwIP internal use by ip4.c */ -u8_t autoip_accept_packet(struct netif *netif, const ip4_addr_t *addr); - -#define netif_autoip_data(netif) ((struct autoip*)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_AUTOIP)) - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_IPV4 && LWIP_AUTOIP */ - -#endif /* LWIP_HDR_AUTOIP_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/debug.h b/Middlewares/Third_Party/LwIP/src/include/lwip/debug.h deleted file mode 100644 index baa6a40..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/debug.h +++ /dev/null @@ -1,161 +0,0 @@ -/** - * @file - * Debug messages infrastructure - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_DEBUG_H -#define LWIP_HDR_DEBUG_H - -#include "lwip/arch.h" -#include "lwip/opt.h" - -/** - * @defgroup debugging_levels LWIP_DBG_MIN_LEVEL and LWIP_DBG_TYPES_ON values - * @ingroup lwip_opts_debugmsg - * @{ - */ - -/** @name Debug level (LWIP_DBG_MIN_LEVEL) - * @{ - */ -/** Debug level: ALL messages*/ -#define LWIP_DBG_LEVEL_ALL 0x00 -/** Debug level: Warnings. bad checksums, dropped packets, ... */ -#define LWIP_DBG_LEVEL_WARNING 0x01 -/** Debug level: Serious. memory allocation failures, ... */ -#define LWIP_DBG_LEVEL_SERIOUS 0x02 -/** Debug level: Severe */ -#define LWIP_DBG_LEVEL_SEVERE 0x03 -/** - * @} - */ - -#define LWIP_DBG_MASK_LEVEL 0x03 -/* compatibility define only */ -#define LWIP_DBG_LEVEL_OFF LWIP_DBG_LEVEL_ALL - -/** @name Enable/disable debug messages completely (LWIP_DBG_TYPES_ON) - * @{ - */ -/** flag for LWIP_DEBUGF to enable that debug message */ -#define LWIP_DBG_ON 0x80U -/** flag for LWIP_DEBUGF to disable that debug message */ -#define LWIP_DBG_OFF 0x00U -/** - * @} - */ - -/** @name Debug message types (LWIP_DBG_TYPES_ON) - * @{ - */ -/** flag for LWIP_DEBUGF indicating a tracing message (to follow program flow) */ -#define LWIP_DBG_TRACE 0x40U -/** flag for LWIP_DEBUGF indicating a state debug message (to follow module states) */ -#define LWIP_DBG_STATE 0x20U -/** flag for LWIP_DEBUGF indicating newly added code, not thoroughly tested yet */ -#define LWIP_DBG_FRESH 0x10U -/** flag for LWIP_DEBUGF to halt after printing this debug message */ -#define LWIP_DBG_HALT 0x08U -/** - * @} - */ - -/** - * @} - */ - -/** - * @defgroup lwip_assertions Assertion handling - * @ingroup lwip_opts_debug - * @{ - */ -/** - * LWIP_NOASSERT: Disable LWIP_ASSERT checks: - * To disable assertions define LWIP_NOASSERT in arch/cc.h. - */ -#ifdef __DOXYGEN__ -#define LWIP_NOASSERT -#undef LWIP_NOASSERT -#endif -/** - * @} - */ - -#ifndef LWIP_NOASSERT -#define LWIP_ASSERT(message, assertion) do { if (!(assertion)) { \ - LWIP_PLATFORM_ASSERT(message); }} while(0) -#else /* LWIP_NOASSERT */ -#define LWIP_ASSERT(message, assertion) -#endif /* LWIP_NOASSERT */ - -#ifndef LWIP_ERROR -#ifndef LWIP_NOASSERT -#define LWIP_PLATFORM_ERROR(message) LWIP_PLATFORM_ASSERT(message) -#elif defined LWIP_DEBUG -#define LWIP_PLATFORM_ERROR(message) LWIP_PLATFORM_DIAG((message)) -#else -#define LWIP_PLATFORM_ERROR(message) -#endif - -/* if "expression" isn't true, then print "message" and execute "handler" expression */ -#define LWIP_ERROR(message, expression, handler) do { if (!(expression)) { \ - LWIP_PLATFORM_ERROR(message); handler;}} while(0) -#endif /* LWIP_ERROR */ - -/** Enable debug message printing, but only if debug message type is enabled - * AND is of correct type AND is at least LWIP_DBG_LEVEL. - */ -#ifdef __DOXYGEN__ -#define LWIP_DEBUG -#undef LWIP_DEBUG -#endif - -#ifdef LWIP_DEBUG -#define LWIP_DEBUGF(debug, message) do { \ - if ( \ - ((debug) & LWIP_DBG_ON) && \ - ((debug) & LWIP_DBG_TYPES_ON) && \ - ((s16_t)((debug) & LWIP_DBG_MASK_LEVEL) >= LWIP_DBG_MIN_LEVEL)) { \ - LWIP_PLATFORM_DIAG(message); \ - if ((debug) & LWIP_DBG_HALT) { \ - while(1); \ - } \ - } \ - } while(0) - -#else /* LWIP_DEBUG */ -#define LWIP_DEBUGF(debug, message) -#endif /* LWIP_DEBUG */ - -#endif /* LWIP_HDR_DEBUG_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/def.h b/Middlewares/Third_Party/LwIP/src/include/lwip/def.h deleted file mode 100644 index dfb266d..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/def.h +++ /dev/null @@ -1,152 +0,0 @@ -/** - * @file - * various utility macros - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -/** - * @defgroup perf Performance measurement - * @ingroup sys_layer - * All defines related to this section must not be placed in lwipopts.h, - * but in arch/perf.h! - * Measurement calls made throughout lwip, these can be defined to nothing. - * - PERF_START: start measuring something. - * - PERF_STOP(x): stop measuring something, and record the result. - */ - -#ifndef LWIP_HDR_DEF_H -#define LWIP_HDR_DEF_H - -/* arch.h might define NULL already */ -#include "lwip/arch.h" -#include "lwip/opt.h" -#if LWIP_PERF -#include "arch/perf.h" -#else /* LWIP_PERF */ -#define PERF_START /* null definition */ -#define PERF_STOP(x) /* null definition */ -#endif /* LWIP_PERF */ - -#ifdef __cplusplus -extern "C" { -#endif - -#define LWIP_MAX(x , y) (((x) > (y)) ? (x) : (y)) -#define LWIP_MIN(x , y) (((x) < (y)) ? (x) : (y)) - -/* Get the number of entries in an array ('x' must NOT be a pointer!) */ -#define LWIP_ARRAYSIZE(x) (sizeof(x)/sizeof((x)[0])) - -/** Create u32_t value from bytes */ -#define LWIP_MAKEU32(a,b,c,d) (((u32_t)((a) & 0xff) << 24) | \ - ((u32_t)((b) & 0xff) << 16) | \ - ((u32_t)((c) & 0xff) << 8) | \ - (u32_t)((d) & 0xff)) - -#ifndef NULL -#ifdef __cplusplus -#define NULL 0 -#else -#define NULL ((void *)0) -#endif -#endif - -#if BYTE_ORDER == BIG_ENDIAN -#define lwip_htons(x) ((u16_t)(x)) -#define lwip_ntohs(x) ((u16_t)(x)) -#define lwip_htonl(x) ((u32_t)(x)) -#define lwip_ntohl(x) ((u32_t)(x)) -#define PP_HTONS(x) ((u16_t)(x)) -#define PP_NTOHS(x) ((u16_t)(x)) -#define PP_HTONL(x) ((u32_t)(x)) -#define PP_NTOHL(x) ((u32_t)(x)) -#else /* BYTE_ORDER != BIG_ENDIAN */ -#ifndef lwip_htons -u16_t lwip_htons(u16_t x); -#endif -#define lwip_ntohs(x) lwip_htons(x) - -#ifndef lwip_htonl -u32_t lwip_htonl(u32_t x); -#endif -#define lwip_ntohl(x) lwip_htonl(x) - -/* These macros should be calculated by the preprocessor and are used - with compile-time constants only (so that there is no little-endian - overhead at runtime). */ -#define PP_HTONS(x) ((u16_t)((((x) & (u16_t)0x00ffU) << 8) | (((x) & (u16_t)0xff00U) >> 8))) -#define PP_NTOHS(x) PP_HTONS(x) -#define PP_HTONL(x) ((((x) & (u32_t)0x000000ffUL) << 24) | \ - (((x) & (u32_t)0x0000ff00UL) << 8) | \ - (((x) & (u32_t)0x00ff0000UL) >> 8) | \ - (((x) & (u32_t)0xff000000UL) >> 24)) -#define PP_NTOHL(x) PP_HTONL(x) -#endif /* BYTE_ORDER == BIG_ENDIAN */ - -/* Provide usual function names as macros for users, but this can be turned off */ -#ifndef LWIP_DONT_PROVIDE_BYTEORDER_FUNCTIONS -#define htons(x) lwip_htons(x) -#define ntohs(x) lwip_ntohs(x) -#define htonl(x) lwip_htonl(x) -#define ntohl(x) lwip_ntohl(x) -#endif - -/* Functions that are not available as standard implementations. - * In cc.h, you can #define these to implementations available on - * your platform to save some code bytes if you use these functions - * in your application, too. - */ - -#ifndef lwip_itoa -/* This can be #defined to itoa() or snprintf(result, bufsize, "%d", number) depending on your platform */ -void lwip_itoa(char* result, size_t bufsize, int number); -#endif -#ifndef lwip_strnicmp -/* This can be #defined to strnicmp() or strncasecmp() depending on your platform */ -int lwip_strnicmp(const char* str1, const char* str2, size_t len); -#endif -#ifndef lwip_stricmp -/* This can be #defined to stricmp() or strcasecmp() depending on your platform */ -int lwip_stricmp(const char* str1, const char* str2); -#endif -#ifndef lwip_strnstr -/* This can be #defined to strnstr() depending on your platform */ -char* lwip_strnstr(const char* buffer, const char* token, size_t n); -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_DEF_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/dhcp.h b/Middlewares/Third_Party/LwIP/src/include/lwip/dhcp.h deleted file mode 100644 index c78aa0b..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/dhcp.h +++ /dev/null @@ -1,139 +0,0 @@ -/** - * @file - * DHCP client API - */ - -/* - * Copyright (c) 2001-2004 Leon Woestenberg - * Copyright (c) 2001-2004 Axon Digital Design B.V., The Netherlands. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Leon Woestenberg - * - */ -#ifndef LWIP_HDR_DHCP_H -#define LWIP_HDR_DHCP_H - -#include "lwip/opt.h" - -#if LWIP_DHCP /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/netif.h" -#include "lwip/udp.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** period (in seconds) of the application calling dhcp_coarse_tmr() */ -#define DHCP_COARSE_TIMER_SECS 60 -/** period (in milliseconds) of the application calling dhcp_coarse_tmr() */ -#define DHCP_COARSE_TIMER_MSECS (DHCP_COARSE_TIMER_SECS * 1000UL) -/** period (in milliseconds) of the application calling dhcp_fine_tmr() */ -#define DHCP_FINE_TIMER_MSECS 500 - -#define DHCP_BOOT_FILE_LEN 128U - -/* AutoIP cooperation flags (struct dhcp.autoip_coop_state) */ -typedef enum { - DHCP_AUTOIP_COOP_STATE_OFF = 0, - DHCP_AUTOIP_COOP_STATE_ON = 1 -} dhcp_autoip_coop_state_enum_t; - -struct dhcp -{ - /** transaction identifier of last sent request */ - u32_t xid; - /** track PCB allocation state */ - u8_t pcb_allocated; - /** current DHCP state machine state */ - u8_t state; - /** retries of current request */ - u8_t tries; -#if LWIP_DHCP_AUTOIP_COOP - u8_t autoip_coop_state; -#endif - u8_t subnet_mask_given; - - u16_t request_timeout; /* #ticks with period DHCP_FINE_TIMER_SECS for request timeout */ - u16_t t1_timeout; /* #ticks with period DHCP_COARSE_TIMER_SECS for renewal time */ - u16_t t2_timeout; /* #ticks with period DHCP_COARSE_TIMER_SECS for rebind time */ - u16_t t1_renew_time; /* #ticks with period DHCP_COARSE_TIMER_SECS until next renew try */ - u16_t t2_rebind_time; /* #ticks with period DHCP_COARSE_TIMER_SECS until next rebind try */ - u16_t lease_used; /* #ticks with period DHCP_COARSE_TIMER_SECS since last received DHCP ack */ - u16_t t0_timeout; /* #ticks with period DHCP_COARSE_TIMER_SECS for lease time */ - ip_addr_t server_ip_addr; /* dhcp server address that offered this lease (ip_addr_t because passed to UDP) */ - ip4_addr_t offered_ip_addr; - ip4_addr_t offered_sn_mask; - ip4_addr_t offered_gw_addr; - - u32_t offered_t0_lease; /* lease period (in seconds) */ - u32_t offered_t1_renew; /* recommended renew time (usually 50% of lease period) */ - u32_t offered_t2_rebind; /* recommended rebind time (usually 87.5 of lease period) */ -#if LWIP_DHCP_BOOTP_FILE - ip4_addr_t offered_si_addr; - char boot_file_name[DHCP_BOOT_FILE_LEN]; -#endif /* LWIP_DHCP_BOOTPFILE */ -}; - - -void dhcp_set_struct(struct netif *netif, struct dhcp *dhcp); -/** Remove a struct dhcp previously set to the netif using dhcp_set_struct() */ -#define dhcp_remove_struct(netif) netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP, NULL) -void dhcp_cleanup(struct netif *netif); -err_t dhcp_start(struct netif *netif); -err_t dhcp_renew(struct netif *netif); -err_t dhcp_release(struct netif *netif); -void dhcp_stop(struct netif *netif); -void dhcp_release_and_stop(struct netif *netif); -void dhcp_inform(struct netif *netif); -void dhcp_network_changed(struct netif *netif); -#if DHCP_DOES_ARP_CHECK -void dhcp_arp_reply(struct netif *netif, const ip4_addr_t *addr); -#endif -u8_t dhcp_supplied_address(const struct netif *netif); -/* to be called every minute */ -void dhcp_coarse_tmr(void); -/* to be called every half second */ -void dhcp_fine_tmr(void); - -#if LWIP_DHCP_GET_NTP_SRV -/** This function must exist, in other to add offered NTP servers to - * the NTP (or SNTP) engine. - * See LWIP_DHCP_MAX_NTP_SERVERS */ -extern void dhcp_set_ntp_servers(u8_t num_ntp_servers, const ip4_addr_t* ntp_server_addrs); -#endif /* LWIP_DHCP_GET_NTP_SRV */ - -#define netif_dhcp_data(netif) ((struct dhcp*)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP)) - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_DHCP */ - -#endif /*LWIP_HDR_DHCP_H*/ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/dhcp6.h b/Middlewares/Third_Party/LwIP/src/include/lwip/dhcp6.h deleted file mode 100644 index 5cc4a01..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/dhcp6.h +++ /dev/null @@ -1,104 +0,0 @@ -/** - * @file - * - * DHCPv6 client: IPv6 address autoconfiguration as per - * RFC 3315 (stateful DHCPv6) and - * RFC 3736 (stateless DHCPv6). - */ - -/* - * Copyright (c) 2018 Simon Goldschmidt - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Simon Goldschmidt - */ - -#ifndef LWIP_HDR_IP6_DHCP6_H -#define LWIP_HDR_IP6_DHCP6_H - -#include "lwip/opt.h" - -#if LWIP_IPV6_DHCP6 /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/err.h" -#include "lwip/netif.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** period (in milliseconds) of the application calling dhcp6_tmr() */ -#define DHCP6_TIMER_MSECS 500 - -struct dhcp6 -{ - /** transaction identifier of last sent request */ - u32_t xid; - /** track PCB allocation state */ - u8_t pcb_allocated; - /** current DHCPv6 state machine state */ - u8_t state; - /** retries of current request */ - u8_t tries; - /** if request config is triggered while another action is active, this keeps track of it */ - u8_t request_config_pending; - /** #ticks with period DHCP6_TIMER_MSECS for request timeout */ - u16_t request_timeout; -#if LWIP_IPV6_DHCP6_STATEFUL - /* @todo: add more members here to keep track of stateful DHCPv6 data, like lease times */ -#endif /* LWIP_IPV6_DHCP6_STATEFUL */ -}; - -void dhcp6_set_struct(struct netif *netif, struct dhcp6 *dhcp6); -/** Remove a struct dhcp6 previously set to the netif using dhcp6_set_struct() */ -#define dhcp6_remove_struct(netif) netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP6, NULL) -void dhcp6_cleanup(struct netif *netif); - -err_t dhcp6_enable_stateful(struct netif *netif); -err_t dhcp6_enable_stateless(struct netif *netif); -void dhcp6_disable(struct netif *netif); - -void dhcp6_tmr(void); - -void dhcp6_nd6_ra_trigger(struct netif *netif, u8_t managed_addr_config, u8_t other_config); - -#if LWIP_DHCP6_GET_NTP_SRV -/** This function must exist, in other to add offered NTP servers to - * the NTP (or SNTP) engine. - * See LWIP_DHCP6_MAX_NTP_SERVERS */ -extern void dhcp6_set_ntp_servers(u8_t num_ntp_servers, const ip_addr_t* ntp_server_addrs); -#endif /* LWIP_DHCP6_GET_NTP_SRV */ - -#define netif_dhcp6_data(netif) ((struct dhcp6*)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP6)) - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_IPV6_DHCP6 */ - -#endif /* LWIP_HDR_IP6_DHCP6_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/dns.h b/Middlewares/Third_Party/LwIP/src/include/lwip/dns.h deleted file mode 100644 index 0913415..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/dns.h +++ /dev/null @@ -1,131 +0,0 @@ -/** - * @file - * DNS API - */ - -/** - * lwip DNS resolver header file. - - * Author: Jim Pettinato - * April 2007 - - * ported from uIP resolv.c Copyright (c) 2002-2003, Adam Dunkels. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote - * products derived from this software without specific prior - * written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef LWIP_HDR_DNS_H -#define LWIP_HDR_DNS_H - -#include "lwip/opt.h" - -#if LWIP_DNS - -#include "lwip/ip_addr.h" -#include "lwip/err.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** DNS timer period */ -#define DNS_TMR_INTERVAL 1000 - -/* DNS resolve types: */ -#define LWIP_DNS_ADDRTYPE_IPV4 0 -#define LWIP_DNS_ADDRTYPE_IPV6 1 -#define LWIP_DNS_ADDRTYPE_IPV4_IPV6 2 /* try to resolve IPv4 first, try IPv6 if IPv4 fails only */ -#define LWIP_DNS_ADDRTYPE_IPV6_IPV4 3 /* try to resolve IPv6 first, try IPv4 if IPv6 fails only */ -#if LWIP_IPV4 && LWIP_IPV6 -#ifndef LWIP_DNS_ADDRTYPE_DEFAULT -#define LWIP_DNS_ADDRTYPE_DEFAULT LWIP_DNS_ADDRTYPE_IPV4_IPV6 -#endif -#elif LWIP_IPV4 -#define LWIP_DNS_ADDRTYPE_DEFAULT LWIP_DNS_ADDRTYPE_IPV4 -#else -#define LWIP_DNS_ADDRTYPE_DEFAULT LWIP_DNS_ADDRTYPE_IPV6 -#endif - -#if DNS_LOCAL_HOSTLIST -/** struct used for local host-list */ -struct local_hostlist_entry { - /** static hostname */ - const char *name; - /** static host address in network byteorder */ - ip_addr_t addr; - struct local_hostlist_entry *next; -}; -#define DNS_LOCAL_HOSTLIST_ELEM(name, addr_init) {name, addr_init, NULL} -#if DNS_LOCAL_HOSTLIST_IS_DYNAMIC -#ifndef DNS_LOCAL_HOSTLIST_MAX_NAMELEN -#define DNS_LOCAL_HOSTLIST_MAX_NAMELEN DNS_MAX_NAME_LENGTH -#endif -#define LOCALHOSTLIST_ELEM_SIZE ((sizeof(struct local_hostlist_entry) + DNS_LOCAL_HOSTLIST_MAX_NAMELEN + 1)) -#endif /* DNS_LOCAL_HOSTLIST_IS_DYNAMIC */ -#endif /* DNS_LOCAL_HOSTLIST */ - -#if LWIP_IPV4 -extern const ip_addr_t dns_mquery_v4group; -#endif /* LWIP_IPV4 */ -#if LWIP_IPV6 -extern const ip_addr_t dns_mquery_v6group; -#endif /* LWIP_IPV6 */ - -/** Callback which is invoked when a hostname is found. - * A function of this type must be implemented by the application using the DNS resolver. - * @param name pointer to the name that was looked up. - * @param ipaddr pointer to an ip_addr_t containing the IP address of the hostname, - * or NULL if the name could not be found (or on any other error). - * @param callback_arg a user-specified callback argument passed to dns_gethostbyname -*/ -typedef void (*dns_found_callback)(const char *name, const ip_addr_t *ipaddr, void *callback_arg); - -void dns_init(void); -void dns_tmr(void); -void dns_setserver(u8_t numdns, const ip_addr_t *dnsserver); -const ip_addr_t* dns_getserver(u8_t numdns); -err_t dns_gethostbyname(const char *hostname, ip_addr_t *addr, - dns_found_callback found, void *callback_arg); -err_t dns_gethostbyname_addrtype(const char *hostname, ip_addr_t *addr, - dns_found_callback found, void *callback_arg, - u8_t dns_addrtype); - - -#if DNS_LOCAL_HOSTLIST -size_t dns_local_iterate(dns_found_callback iterator_fn, void *iterator_arg); -err_t dns_local_lookup(const char *hostname, ip_addr_t *addr, u8_t dns_addrtype); -#if DNS_LOCAL_HOSTLIST_IS_DYNAMIC -int dns_local_removehost(const char *hostname, const ip_addr_t *addr); -err_t dns_local_addhost(const char *hostname, const ip_addr_t *addr); -#endif /* DNS_LOCAL_HOSTLIST_IS_DYNAMIC */ -#endif /* DNS_LOCAL_HOSTLIST */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_DNS */ - -#endif /* LWIP_HDR_DNS_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/err.h b/Middlewares/Third_Party/LwIP/src/include/lwip/err.h deleted file mode 100644 index 887d9b3..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/err.h +++ /dev/null @@ -1,117 +0,0 @@ -/** - * @file - * lwIP Error codes - */ -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_ERR_H -#define LWIP_HDR_ERR_H - -#include "lwip/opt.h" -#include "lwip/arch.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @defgroup infrastructure_errors Error codes - * @ingroup infrastructure - * @{ - */ - -/** Definitions for error constants. */ -typedef enum { -/** No error, everything OK. */ - ERR_OK = 0, -/** Out of memory error. */ - ERR_MEM = -1, -/** Buffer error. */ - ERR_BUF = -2, -/** Timeout. */ - ERR_TIMEOUT = -3, -/** Routing problem. */ - ERR_RTE = -4, -/** Operation in progress */ - ERR_INPROGRESS = -5, -/** Illegal value. */ - ERR_VAL = -6, -/** Operation would block. */ - ERR_WOULDBLOCK = -7, -/** Address in use. */ - ERR_USE = -8, -/** Already connecting. */ - ERR_ALREADY = -9, -/** Conn already established.*/ - ERR_ISCONN = -10, -/** Not connected. */ - ERR_CONN = -11, -/** Low-level netif error */ - ERR_IF = -12, - -/** Connection aborted. */ - ERR_ABRT = -13, -/** Connection reset. */ - ERR_RST = -14, -/** Connection closed. */ - ERR_CLSD = -15, -/** Illegal argument. */ - ERR_ARG = -16 -} err_enum_t; - -/** Define LWIP_ERR_T in cc.h if you want to use - * a different type for your platform (must be signed). */ -#ifdef LWIP_ERR_T -typedef LWIP_ERR_T err_t; -#else /* LWIP_ERR_T */ -typedef s8_t err_t; -#endif /* LWIP_ERR_T*/ - -/** - * @} - */ - -#ifdef LWIP_DEBUG -extern const char *lwip_strerr(err_t err); -#else -#define lwip_strerr(x) "" -#endif /* LWIP_DEBUG */ - -#if !NO_SYS -int err_to_errno(err_t err); -#endif /* !NO_SYS */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_ERR_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/errno.h b/Middlewares/Third_Party/LwIP/src/include/lwip/errno.h deleted file mode 100644 index 48d6b53..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/errno.h +++ /dev/null @@ -1,198 +0,0 @@ -/** - * @file - * Posix Errno defines - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_ERRNO_H -#define LWIP_HDR_ERRNO_H - -#include "lwip/opt.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#ifdef LWIP_PROVIDE_ERRNO - -#define EPERM 1 /* Operation not permitted */ -#define ENOENT 2 /* No such file or directory */ -#define ESRCH 3 /* No such process */ -#define EINTR 4 /* Interrupted system call */ -#define EIO 5 /* I/O error */ -#define ENXIO 6 /* No such device or address */ -#define E2BIG 7 /* Arg list too long */ -#define ENOEXEC 8 /* Exec format error */ -#define EBADF 9 /* Bad file number */ -#define ECHILD 10 /* No child processes */ -#define EAGAIN 11 /* Try again */ -#define ENOMEM 12 /* Out of memory */ -#define EACCES 13 /* Permission denied */ -#define EFAULT 14 /* Bad address */ -#define ENOTBLK 15 /* Block device required */ -#define EBUSY 16 /* Device or resource busy */ -#define EEXIST 17 /* File exists */ -#define EXDEV 18 /* Cross-device link */ -#define ENODEV 19 /* No such device */ -#define ENOTDIR 20 /* Not a directory */ -#define EISDIR 21 /* Is a directory */ -#define EINVAL 22 /* Invalid argument */ -#define ENFILE 23 /* File table overflow */ -#define EMFILE 24 /* Too many open files */ -#define ENOTTY 25 /* Not a typewriter */ -#define ETXTBSY 26 /* Text file busy */ -#define EFBIG 27 /* File too large */ -#define ENOSPC 28 /* No space left on device */ -#define ESPIPE 29 /* Illegal seek */ -#define EROFS 30 /* Read-only file system */ -#define EMLINK 31 /* Too many links */ -#define EPIPE 32 /* Broken pipe */ -#define EDOM 33 /* Math argument out of domain of func */ -#define ERANGE 34 /* Math result not representable */ -#define EDEADLK 35 /* Resource deadlock would occur */ -#define ENAMETOOLONG 36 /* File name too long */ -#define ENOLCK 37 /* No record locks available */ -#define ENOSYS 38 /* Function not implemented */ -#define ENOTEMPTY 39 /* Directory not empty */ -#define ELOOP 40 /* Too many symbolic links encountered */ -#define EWOULDBLOCK EAGAIN /* Operation would block */ -#define ENOMSG 42 /* No message of desired type */ -#define EIDRM 43 /* Identifier removed */ -#define ECHRNG 44 /* Channel number out of range */ -#define EL2NSYNC 45 /* Level 2 not synchronized */ -#define EL3HLT 46 /* Level 3 halted */ -#define EL3RST 47 /* Level 3 reset */ -#define ELNRNG 48 /* Link number out of range */ -#define EUNATCH 49 /* Protocol driver not attached */ -#define ENOCSI 50 /* No CSI structure available */ -#define EL2HLT 51 /* Level 2 halted */ -#define EBADE 52 /* Invalid exchange */ -#define EBADR 53 /* Invalid request descriptor */ -#define EXFULL 54 /* Exchange full */ -#define ENOANO 55 /* No anode */ -#define EBADRQC 56 /* Invalid request code */ -#define EBADSLT 57 /* Invalid slot */ - -#define EDEADLOCK EDEADLK - -#define EBFONT 59 /* Bad font file format */ -#define ENOSTR 60 /* Device not a stream */ -#define ENODATA 61 /* No data available */ -#define ETIME 62 /* Timer expired */ -#define ENOSR 63 /* Out of streams resources */ -#define ENONET 64 /* Machine is not on the network */ -#define ENOPKG 65 /* Package not installed */ -#define EREMOTE 66 /* Object is remote */ -#define ENOLINK 67 /* Link has been severed */ -#define EADV 68 /* Advertise error */ -#define ESRMNT 69 /* Srmount error */ -#define ECOMM 70 /* Communication error on send */ -#define EPROTO 71 /* Protocol error */ -#define EMULTIHOP 72 /* Multihop attempted */ -#define EDOTDOT 73 /* RFS specific error */ -#define EBADMSG 74 /* Not a data message */ -#define EOVERFLOW 75 /* Value too large for defined data type */ -#define ENOTUNIQ 76 /* Name not unique on network */ -#define EBADFD 77 /* File descriptor in bad state */ -#define EREMCHG 78 /* Remote address changed */ -#define ELIBACC 79 /* Can not access a needed shared library */ -#define ELIBBAD 80 /* Accessing a corrupted shared library */ -#define ELIBSCN 81 /* .lib section in a.out corrupted */ -#define ELIBMAX 82 /* Attempting to link in too many shared libraries */ -#define ELIBEXEC 83 /* Cannot exec a shared library directly */ -#define EILSEQ 84 /* Illegal byte sequence */ -#define ERESTART 85 /* Interrupted system call should be restarted */ -#define ESTRPIPE 86 /* Streams pipe error */ -#define EUSERS 87 /* Too many users */ -#define ENOTSOCK 88 /* Socket operation on non-socket */ -#define EDESTADDRREQ 89 /* Destination address required */ -#define EMSGSIZE 90 /* Message too long */ -#define EPROTOTYPE 91 /* Protocol wrong type for socket */ -#define ENOPROTOOPT 92 /* Protocol not available */ -#define EPROTONOSUPPORT 93 /* Protocol not supported */ -#define ESOCKTNOSUPPORT 94 /* Socket type not supported */ -#define EOPNOTSUPP 95 /* Operation not supported on transport endpoint */ -#define EPFNOSUPPORT 96 /* Protocol family not supported */ -#define EAFNOSUPPORT 97 /* Address family not supported by protocol */ -#define EADDRINUSE 98 /* Address already in use */ -#define EADDRNOTAVAIL 99 /* Cannot assign requested address */ -#define ENETDOWN 100 /* Network is down */ -#define ENETUNREACH 101 /* Network is unreachable */ -#define ENETRESET 102 /* Network dropped connection because of reset */ -#define ECONNABORTED 103 /* Software caused connection abort */ -#define ECONNRESET 104 /* Connection reset by peer */ -#define ENOBUFS 105 /* No buffer space available */ -#define EISCONN 106 /* Transport endpoint is already connected */ -#define ENOTCONN 107 /* Transport endpoint is not connected */ -#define ESHUTDOWN 108 /* Cannot send after transport endpoint shutdown */ -#define ETOOMANYREFS 109 /* Too many references: cannot splice */ -#define ETIMEDOUT 110 /* Connection timed out */ -#define ECONNREFUSED 111 /* Connection refused */ -#define EHOSTDOWN 112 /* Host is down */ -#define EHOSTUNREACH 113 /* No route to host */ -#define EALREADY 114 /* Operation already in progress */ -#define EINPROGRESS 115 /* Operation now in progress */ -#define ESTALE 116 /* Stale NFS file handle */ -#define EUCLEAN 117 /* Structure needs cleaning */ -#define ENOTNAM 118 /* Not a XENIX named type file */ -#define ENAVAIL 119 /* No XENIX semaphores available */ -#define EISNAM 120 /* Is a named type file */ -#define EREMOTEIO 121 /* Remote I/O error */ -#define EDQUOT 122 /* Quota exceeded */ - -#define ENOMEDIUM 123 /* No medium found */ -#define EMEDIUMTYPE 124 /* Wrong medium type */ - -#ifndef errno -extern int errno; -#endif - -#else /* LWIP_PROVIDE_ERRNO */ - -/* Define LWIP_ERRNO_STDINCLUDE if you want to include here */ -#ifdef LWIP_ERRNO_STDINCLUDE -#include -#else /* LWIP_ERRNO_STDINCLUDE */ -/* Define LWIP_ERRNO_INCLUDE to an equivalent of to include the error defines here */ -#ifdef LWIP_ERRNO_INCLUDE -#include LWIP_ERRNO_INCLUDE -#endif /* LWIP_ERRNO_INCLUDE */ -#endif /* LWIP_ERRNO_STDINCLUDE */ - -#endif /* LWIP_PROVIDE_ERRNO */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_ERRNO_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/etharp.h b/Middlewares/Third_Party/LwIP/src/include/lwip/etharp.h deleted file mode 100644 index 2036b24..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/etharp.h +++ /dev/null @@ -1,105 +0,0 @@ -/** - * @file - * Ethernet output function - handles OUTGOING ethernet level traffic, implements - * ARP resolving. - * To be used in most low-level netif implementations - */ - -/* - * Copyright (c) 2001-2003 Swedish Institute of Computer Science. - * Copyright (c) 2003-2004 Leon Woestenberg - * Copyright (c) 2003-2004 Axon Digital Design B.V., The Netherlands. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -#ifndef LWIP_HDR_NETIF_ETHARP_H -#define LWIP_HDR_NETIF_ETHARP_H - -#include "lwip/opt.h" - -#if LWIP_ARP || LWIP_ETHERNET /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/pbuf.h" -#include "lwip/ip4_addr.h" -#include "lwip/netif.h" -#include "lwip/ip4.h" -#include "lwip/prot/ethernet.h" - -#if LWIP_IPV4 && LWIP_ARP /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/prot/etharp.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** 1 seconds period */ -#define ARP_TMR_INTERVAL 1000 - -#if ARP_QUEUEING -/** struct for queueing outgoing packets for unknown address - * defined here to be accessed by memp.h - */ -struct etharp_q_entry { - struct etharp_q_entry *next; - struct pbuf *p; -}; -#endif /* ARP_QUEUEING */ - -#define etharp_init() /* Compatibility define, no init needed. */ -void etharp_tmr(void); -ssize_t etharp_find_addr(struct netif *netif, const ip4_addr_t *ipaddr, - struct eth_addr **eth_ret, const ip4_addr_t **ip_ret); -int etharp_get_entry(size_t i, ip4_addr_t **ipaddr, struct netif **netif, struct eth_addr **eth_ret); -err_t etharp_output(struct netif *netif, struct pbuf *q, const ip4_addr_t *ipaddr); -err_t etharp_query(struct netif *netif, const ip4_addr_t *ipaddr, struct pbuf *q); -err_t etharp_request(struct netif *netif, const ip4_addr_t *ipaddr); -/** For Ethernet network interfaces, we might want to send "gratuitous ARP"; - * this is an ARP packet sent by a node in order to spontaneously cause other - * nodes to update an entry in their ARP cache. - * From RFC 3220 "IP Mobility Support for IPv4" section 4.6. */ -#define etharp_gratuitous(netif) etharp_request((netif), netif_ip4_addr(netif)) -void etharp_cleanup_netif(struct netif *netif); - -#if ETHARP_SUPPORT_STATIC_ENTRIES -err_t etharp_add_static_entry(const ip4_addr_t *ipaddr, struct eth_addr *ethaddr); -err_t etharp_remove_static_entry(const ip4_addr_t *ipaddr); -#endif /* ETHARP_SUPPORT_STATIC_ENTRIES */ - -void etharp_input(struct pbuf *p, struct netif *netif); - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_IPV4 && LWIP_ARP */ -#endif /* LWIP_ARP || LWIP_ETHERNET */ - -#endif /* LWIP_HDR_NETIF_ETHARP_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/ethip6.h b/Middlewares/Third_Party/LwIP/src/include/lwip/ethip6.h deleted file mode 100644 index 5e88dff..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/ethip6.h +++ /dev/null @@ -1,68 +0,0 @@ -/** - * @file - * - * Ethernet output for IPv6. Uses ND tables for link-layer addressing. - */ - -/* - * Copyright (c) 2010 Inico Technologies Ltd. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Ivan Delamer - * - * - * Please coordinate changes and requests with Ivan Delamer - * - */ - -#ifndef LWIP_HDR_ETHIP6_H -#define LWIP_HDR_ETHIP6_H - -#include "lwip/opt.h" - -#if LWIP_IPV6 && LWIP_ETHERNET /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/pbuf.h" -#include "lwip/ip6.h" -#include "lwip/ip6_addr.h" -#include "lwip/netif.h" - - -#ifdef __cplusplus -extern "C" { -#endif - - -err_t ethip6_output(struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr); - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_IPV6 && LWIP_ETHERNET */ - -#endif /* LWIP_HDR_ETHIP6_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h b/Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h deleted file mode 100644 index f5a31fd..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/icmp.h +++ /dev/null @@ -1,110 +0,0 @@ -/** - * @file - * ICMP API - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_ICMP_H -#define LWIP_HDR_ICMP_H - -#include "lwip/opt.h" -#include "lwip/pbuf.h" -#include "lwip/ip_addr.h" -#include "lwip/netif.h" -#include "lwip/prot/icmp.h" - -#if LWIP_IPV6 && LWIP_ICMP6 -#include "lwip/icmp6.h" -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -/** ICMP destination unreachable codes */ -enum icmp_dur_type { - /** net unreachable */ - ICMP_DUR_NET = 0, - /** host unreachable */ - ICMP_DUR_HOST = 1, - /** protocol unreachable */ - ICMP_DUR_PROTO = 2, - /** port unreachable */ - ICMP_DUR_PORT = 3, - /** fragmentation needed and DF set */ - ICMP_DUR_FRAG = 4, - /** source route failed */ - ICMP_DUR_SR = 5 -}; - -/** ICMP time exceeded codes */ -enum icmp_te_type { - /** time to live exceeded in transit */ - ICMP_TE_TTL = 0, - /** fragment reassembly time exceeded */ - ICMP_TE_FRAG = 1 -}; - -#if LWIP_IPV4 && LWIP_ICMP /* don't build if not configured for use in lwipopts.h */ - -void icmp_input(struct pbuf *p, struct netif *inp); -void icmp_dest_unreach(struct pbuf *p, enum icmp_dur_type t); -void icmp_time_exceeded(struct pbuf *p, enum icmp_te_type t); - -#endif /* LWIP_IPV4 && LWIP_ICMP */ - -#if LWIP_IPV4 && LWIP_IPV6 -#if LWIP_ICMP && LWIP_ICMP6 -#define icmp_port_unreach(isipv6, pbuf) ((isipv6) ? \ - icmp6_dest_unreach(pbuf, ICMP6_DUR_PORT) : \ - icmp_dest_unreach(pbuf, ICMP_DUR_PORT)) -#elif LWIP_ICMP -#define icmp_port_unreach(isipv6, pbuf) do{ if(!(isipv6)) { icmp_dest_unreach(pbuf, ICMP_DUR_PORT);}}while(0) -#elif LWIP_ICMP6 -#define icmp_port_unreach(isipv6, pbuf) do{ if(isipv6) { icmp6_dest_unreach(pbuf, ICMP6_DUR_PORT);}}while(0) -#else -#define icmp_port_unreach(isipv6, pbuf) -#endif -#elif LWIP_IPV6 && LWIP_ICMP6 -#define icmp_port_unreach(isipv6, pbuf) icmp6_dest_unreach(pbuf, ICMP6_DUR_PORT) -#elif LWIP_IPV4 && LWIP_ICMP -#define icmp_port_unreach(isipv6, pbuf) icmp_dest_unreach(pbuf, ICMP_DUR_PORT) -#else /* (LWIP_IPV6 && LWIP_ICMP6) || (LWIP_IPV4 && LWIP_ICMP) */ -#define icmp_port_unreach(isipv6, pbuf) -#endif /* (LWIP_IPV6 && LWIP_ICMP6) || (LWIP_IPV4 && LWIP_ICMP) LWIP_IPV4*/ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_ICMP_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/icmp6.h b/Middlewares/Third_Party/LwIP/src/include/lwip/icmp6.h deleted file mode 100644 index 0ccb789..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/icmp6.h +++ /dev/null @@ -1,72 +0,0 @@ -/** - * @file - * - * IPv6 version of ICMP, as per RFC 4443. - */ - -/* - * Copyright (c) 2010 Inico Technologies Ltd. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Ivan Delamer - * - * - * Please coordinate changes and requests with Ivan Delamer - * - */ -#ifndef LWIP_HDR_ICMP6_H -#define LWIP_HDR_ICMP6_H - -#include "lwip/opt.h" -#include "lwip/pbuf.h" -#include "lwip/ip6_addr.h" -#include "lwip/netif.h" -#include "lwip/prot/icmp6.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#if LWIP_ICMP6 && LWIP_IPV6 /* don't build if not configured for use in lwipopts.h */ - -void icmp6_input(struct pbuf *p, struct netif *inp); -void icmp6_dest_unreach(struct pbuf *p, enum icmp6_dur_code c); -void icmp6_packet_too_big(struct pbuf *p, u32_t mtu); -void icmp6_time_exceeded(struct pbuf *p, enum icmp6_te_code c); -void icmp6_time_exceeded_with_addrs(struct pbuf *p, enum icmp6_te_code c, - const ip6_addr_t *src_addr, const ip6_addr_t *dest_addr); -void icmp6_param_problem(struct pbuf *p, enum icmp6_pp_code c, const void *pointer); - -#endif /* LWIP_ICMP6 && LWIP_IPV6 */ - - -#ifdef __cplusplus -} -#endif - - -#endif /* LWIP_HDR_ICMP6_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/if_api.h b/Middlewares/Third_Party/LwIP/src/include/lwip/if_api.h deleted file mode 100644 index 39017ab..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/if_api.h +++ /dev/null @@ -1,68 +0,0 @@ -/** - * @file - * Interface Identification APIs from: - * RFC 3493: Basic Socket Interface Extensions for IPv6 - * Section 4: Interface Identification - */ - -/* - * Copyright (c) 2017 Joel Cunningham, Garmin International, Inc. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Joel Cunningham - * - */ -#ifndef LWIP_HDR_IF_H -#define LWIP_HDR_IF_H - -#include "lwip/opt.h" - -#if LWIP_SOCKET /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/netif.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define IF_NAMESIZE NETIF_NAMESIZE - -char * lwip_if_indextoname(unsigned int ifindex, char *ifname); -unsigned int lwip_if_nametoindex(const char *ifname); - -#if LWIP_COMPAT_SOCKETS -#define if_indextoname(ifindex, ifname) lwip_if_indextoname(ifindex,ifname) -#define if_nametoindex(ifname) lwip_if_nametoindex(ifname) -#endif /* LWIP_COMPAT_SOCKETS */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_SOCKET */ - -#endif /* LWIP_HDR_IF_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/igmp.h b/Middlewares/Third_Party/LwIP/src/include/lwip/igmp.h deleted file mode 100644 index ffd80e6..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/igmp.h +++ /dev/null @@ -1,115 +0,0 @@ -/** - * @file - * IGMP API - */ - -/* - * Copyright (c) 2002 CITEL Technologies Ltd. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of CITEL Technologies Ltd nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY CITEL TECHNOLOGIES AND CONTRIBUTORS ``AS IS'' - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL CITEL TECHNOLOGIES OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * This file is a contribution to the lwIP TCP/IP stack. - * The Swedish Institute of Computer Science and Adam Dunkels - * are specifically granted permission to redistribute this - * source code. -*/ - -#ifndef LWIP_HDR_IGMP_H -#define LWIP_HDR_IGMP_H - -#include "lwip/opt.h" -#include "lwip/ip_addr.h" -#include "lwip/netif.h" -#include "lwip/pbuf.h" - -#if LWIP_IPV4 && LWIP_IGMP /* don't build if not configured for use in lwipopts.h */ - -#ifdef __cplusplus -extern "C" { -#endif - -/* IGMP timer */ -#define IGMP_TMR_INTERVAL 100 /* Milliseconds */ -#define IGMP_V1_DELAYING_MEMBER_TMR (1000/IGMP_TMR_INTERVAL) -#define IGMP_JOIN_DELAYING_MEMBER_TMR (500 /IGMP_TMR_INTERVAL) - -/* Compatibility defines (don't use for new code) */ -#define IGMP_DEL_MAC_FILTER NETIF_DEL_MAC_FILTER -#define IGMP_ADD_MAC_FILTER NETIF_ADD_MAC_FILTER - -/** - * igmp group structure - there is - * a list of groups for each interface - * these should really be linked from the interface, but - * if we keep them separate we will not affect the lwip original code - * too much - * - * There will be a group for the all systems group address but this - * will not run the state machine as it is used to kick off reports - * from all the other groups - */ -struct igmp_group { - /** next link */ - struct igmp_group *next; - /** multicast address */ - ip4_addr_t group_address; - /** signifies we were the last person to report */ - u8_t last_reporter_flag; - /** current state of the group */ - u8_t group_state; - /** timer for reporting, negative is OFF */ - u16_t timer; - /** counter of simultaneous uses */ - u8_t use; -}; - -/* Prototypes */ -void igmp_init(void); -err_t igmp_start(struct netif *netif); -err_t igmp_stop(struct netif *netif); -void igmp_report_groups(struct netif *netif); -struct igmp_group *igmp_lookfor_group(struct netif *ifp, const ip4_addr_t *addr); -void igmp_input(struct pbuf *p, struct netif *inp, const ip4_addr_t *dest); -err_t igmp_joingroup(const ip4_addr_t *ifaddr, const ip4_addr_t *groupaddr); -err_t igmp_joingroup_netif(struct netif *netif, const ip4_addr_t *groupaddr); -err_t igmp_leavegroup(const ip4_addr_t *ifaddr, const ip4_addr_t *groupaddr); -err_t igmp_leavegroup_netif(struct netif *netif, const ip4_addr_t *groupaddr); -void igmp_tmr(void); - -/** @ingroup igmp - * Get list head of IGMP groups for netif. - * Note: The allsystems group IP is contained in the list as first entry. - * @see @ref netif_set_igmp_mac_filter() - */ -#define netif_igmp_data(netif) ((struct igmp_group *)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_IGMP)) - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_IPV4 && LWIP_IGMP */ - -#endif /* LWIP_HDR_IGMP_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/inet.h b/Middlewares/Third_Party/LwIP/src/include/lwip/inet.h deleted file mode 100644 index 2982a0f..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/inet.h +++ /dev/null @@ -1,169 +0,0 @@ -/** - * @file - * This file (together with sockets.h) aims to provide structs and functions from - * - arpa/inet.h - * - netinet/in.h - * - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_INET_H -#define LWIP_HDR_INET_H - -#include "lwip/opt.h" -#include "lwip/def.h" -#include "lwip/ip_addr.h" -#include "lwip/ip6_addr.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* If your port already typedef's in_addr_t, define IN_ADDR_T_DEFINED - to prevent this code from redefining it. */ -#if !defined(in_addr_t) && !defined(IN_ADDR_T_DEFINED) -typedef u32_t in_addr_t; -#endif - -struct in_addr { - in_addr_t s_addr; -}; - -struct in6_addr { - union { - u32_t u32_addr[4]; - u8_t u8_addr[16]; - } un; -#define s6_addr un.u8_addr -}; - -/** 255.255.255.255 */ -#define INADDR_NONE IPADDR_NONE -/** 127.0.0.1 */ -#define INADDR_LOOPBACK IPADDR_LOOPBACK -/** 0.0.0.0 */ -#define INADDR_ANY IPADDR_ANY -/** 255.255.255.255 */ -#define INADDR_BROADCAST IPADDR_BROADCAST - -/** This macro can be used to initialize a variable of type struct in6_addr - to the IPv6 wildcard address. */ -#define IN6ADDR_ANY_INIT {{{0,0,0,0}}} -/** This macro can be used to initialize a variable of type struct in6_addr - to the IPv6 loopback address. */ -#define IN6ADDR_LOOPBACK_INIT {{{0,0,0,PP_HTONL(1)}}} -/** This variable is initialized by the system to contain the wildcard IPv6 address. */ -extern const struct in6_addr in6addr_any; - -/* Definitions of the bits in an (IPv4) Internet address integer. - - On subnets, host and network parts are found according to - the subnet mask, not these masks. */ -#define IN_CLASSA(a) IP_CLASSA(a) -#define IN_CLASSA_NET IP_CLASSA_NET -#define IN_CLASSA_NSHIFT IP_CLASSA_NSHIFT -#define IN_CLASSA_HOST IP_CLASSA_HOST -#define IN_CLASSA_MAX IP_CLASSA_MAX - -#define IN_CLASSB(b) IP_CLASSB(b) -#define IN_CLASSB_NET IP_CLASSB_NET -#define IN_CLASSB_NSHIFT IP_CLASSB_NSHIFT -#define IN_CLASSB_HOST IP_CLASSB_HOST -#define IN_CLASSB_MAX IP_CLASSB_MAX - -#define IN_CLASSC(c) IP_CLASSC(c) -#define IN_CLASSC_NET IP_CLASSC_NET -#define IN_CLASSC_NSHIFT IP_CLASSC_NSHIFT -#define IN_CLASSC_HOST IP_CLASSC_HOST -#define IN_CLASSC_MAX IP_CLASSC_MAX - -#define IN_CLASSD(d) IP_CLASSD(d) -#define IN_CLASSD_NET IP_CLASSD_NET /* These ones aren't really */ -#define IN_CLASSD_NSHIFT IP_CLASSD_NSHIFT /* net and host fields, but */ -#define IN_CLASSD_HOST IP_CLASSD_HOST /* routing needn't know. */ -#define IN_CLASSD_MAX IP_CLASSD_MAX - -#define IN_MULTICAST(a) IP_MULTICAST(a) - -#define IN_EXPERIMENTAL(a) IP_EXPERIMENTAL(a) -#define IN_BADCLASS(a) IP_BADCLASS(a) - -#define IN_LOOPBACKNET IP_LOOPBACKNET - - -#ifndef INET_ADDRSTRLEN -#define INET_ADDRSTRLEN IP4ADDR_STRLEN_MAX -#endif -#if LWIP_IPV6 -#ifndef INET6_ADDRSTRLEN -#define INET6_ADDRSTRLEN IP6ADDR_STRLEN_MAX -#endif -#endif - -#if LWIP_IPV4 - -#define inet_addr_from_ip4addr(target_inaddr, source_ipaddr) ((target_inaddr)->s_addr = ip4_addr_get_u32(source_ipaddr)) -#define inet_addr_to_ip4addr(target_ipaddr, source_inaddr) (ip4_addr_set_u32(target_ipaddr, (source_inaddr)->s_addr)) - -/* directly map this to the lwip internal functions */ -#define inet_addr(cp) ipaddr_addr(cp) -#define inet_aton(cp, addr) ip4addr_aton(cp, (ip4_addr_t*)addr) -#define inet_ntoa(addr) ip4addr_ntoa((const ip4_addr_t*)&(addr)) -#define inet_ntoa_r(addr, buf, buflen) ip4addr_ntoa_r((const ip4_addr_t*)&(addr), buf, buflen) - -#endif /* LWIP_IPV4 */ - -#if LWIP_IPV6 -#define inet6_addr_from_ip6addr(target_in6addr, source_ip6addr) {(target_in6addr)->un.u32_addr[0] = (source_ip6addr)->addr[0]; \ - (target_in6addr)->un.u32_addr[1] = (source_ip6addr)->addr[1]; \ - (target_in6addr)->un.u32_addr[2] = (source_ip6addr)->addr[2]; \ - (target_in6addr)->un.u32_addr[3] = (source_ip6addr)->addr[3];} -#define inet6_addr_to_ip6addr(target_ip6addr, source_in6addr) {(target_ip6addr)->addr[0] = (source_in6addr)->un.u32_addr[0]; \ - (target_ip6addr)->addr[1] = (source_in6addr)->un.u32_addr[1]; \ - (target_ip6addr)->addr[2] = (source_in6addr)->un.u32_addr[2]; \ - (target_ip6addr)->addr[3] = (source_in6addr)->un.u32_addr[3]; \ - ip6_addr_clear_zone(target_ip6addr);} - -/* directly map this to the lwip internal functions */ -#define inet6_aton(cp, addr) ip6addr_aton(cp, (ip6_addr_t*)addr) -#define inet6_ntoa(addr) ip6addr_ntoa((const ip6_addr_t*)&(addr)) -#define inet6_ntoa_r(addr, buf, buflen) ip6addr_ntoa_r((const ip6_addr_t*)&(addr), buf, buflen) - -#endif /* LWIP_IPV6 */ - - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_INET_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/inet_chksum.h b/Middlewares/Third_Party/LwIP/src/include/lwip/inet_chksum.h deleted file mode 100644 index 76893ef..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/inet_chksum.h +++ /dev/null @@ -1,105 +0,0 @@ -/** - * @file - * IP checksum calculation functions - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_INET_CHKSUM_H -#define LWIP_HDR_INET_CHKSUM_H - -#include "lwip/opt.h" - -#include "lwip/pbuf.h" -#include "lwip/ip_addr.h" - -/** Swap the bytes in an u16_t: much like lwip_htons() for little-endian */ -#ifndef SWAP_BYTES_IN_WORD -#define SWAP_BYTES_IN_WORD(w) (((w) & 0xff) << 8) | (((w) & 0xff00) >> 8) -#endif /* SWAP_BYTES_IN_WORD */ - -/** Split an u32_t in two u16_ts and add them up */ -#ifndef FOLD_U32T -#define FOLD_U32T(u) ((u32_t)(((u) >> 16) + ((u) & 0x0000ffffUL))) -#endif - -#if LWIP_CHECKSUM_ON_COPY -/** Function-like macro: same as MEMCPY but returns the checksum of copied data - as u16_t */ -# ifndef LWIP_CHKSUM_COPY -# define LWIP_CHKSUM_COPY(dst, src, len) lwip_chksum_copy(dst, src, len) -# ifndef LWIP_CHKSUM_COPY_ALGORITHM -# define LWIP_CHKSUM_COPY_ALGORITHM 1 -# endif /* LWIP_CHKSUM_COPY_ALGORITHM */ -# else /* LWIP_CHKSUM_COPY */ -# define LWIP_CHKSUM_COPY_ALGORITHM 0 -# endif /* LWIP_CHKSUM_COPY */ -#else /* LWIP_CHECKSUM_ON_COPY */ -# define LWIP_CHKSUM_COPY_ALGORITHM 0 -#endif /* LWIP_CHECKSUM_ON_COPY */ - -#ifdef __cplusplus -extern "C" { -#endif - -u16_t inet_chksum(const void *dataptr, u16_t len); -u16_t inet_chksum_pbuf(struct pbuf *p); -#if LWIP_CHKSUM_COPY_ALGORITHM -u16_t lwip_chksum_copy(void *dst, const void *src, u16_t len); -#endif /* LWIP_CHKSUM_COPY_ALGORITHM */ - -#if LWIP_IPV4 -u16_t inet_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, - const ip4_addr_t *src, const ip4_addr_t *dest); -u16_t inet_chksum_pseudo_partial(struct pbuf *p, u8_t proto, - u16_t proto_len, u16_t chksum_len, const ip4_addr_t *src, const ip4_addr_t *dest); -#endif /* LWIP_IPV4 */ - -#if LWIP_IPV6 -u16_t ip6_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, - const ip6_addr_t *src, const ip6_addr_t *dest); -u16_t ip6_chksum_pseudo_partial(struct pbuf *p, u8_t proto, u16_t proto_len, - u16_t chksum_len, const ip6_addr_t *src, const ip6_addr_t *dest); -#endif /* LWIP_IPV6 */ - - -u16_t ip_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, - const ip_addr_t *src, const ip_addr_t *dest); -u16_t ip_chksum_pseudo_partial(struct pbuf *p, u8_t proto, u16_t proto_len, - u16_t chksum_len, const ip_addr_t *src, const ip_addr_t *dest); - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_INET_H */ - diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/init.h b/Middlewares/Third_Party/LwIP/src/include/lwip/init.h deleted file mode 100644 index a149be1..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/init.h +++ /dev/null @@ -1,100 +0,0 @@ -/** - * @file - * lwIP initialization API - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_INIT_H -#define LWIP_HDR_INIT_H - -#include "lwip/opt.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @defgroup lwip_version Version - * @ingroup lwip - * @{ - */ - -/** X.x.x: Major version of the stack */ -#define LWIP_VERSION_MAJOR 2 -/** x.X.x: Minor version of the stack */ -#define LWIP_VERSION_MINOR 1 -/** x.x.X: Revision of the stack */ -#define LWIP_VERSION_REVISION 2 -/** For release candidates, this is set to 1..254 - * For official releases, this is set to 255 (LWIP_RC_RELEASE) - * For development versions (Git), this is set to 0 (LWIP_RC_DEVELOPMENT) */ -#define LWIP_VERSION_RC LWIP_RC_RELEASE - -/** LWIP_VERSION_RC is set to LWIP_RC_RELEASE for official releases */ -#define LWIP_RC_RELEASE 255 -/** LWIP_VERSION_RC is set to LWIP_RC_DEVELOPMENT for Git versions */ -#define LWIP_RC_DEVELOPMENT 0 - -#define LWIP_VERSION_IS_RELEASE (LWIP_VERSION_RC == LWIP_RC_RELEASE) -#define LWIP_VERSION_IS_DEVELOPMENT (LWIP_VERSION_RC == LWIP_RC_DEVELOPMENT) -#define LWIP_VERSION_IS_RC ((LWIP_VERSION_RC != LWIP_RC_RELEASE) && (LWIP_VERSION_RC != LWIP_RC_DEVELOPMENT)) - -/* Some helper defines to get a version string */ -#define LWIP_VERSTR2(x) #x -#define LWIP_VERSTR(x) LWIP_VERSTR2(x) -#if LWIP_VERSION_IS_RELEASE -#define LWIP_VERSION_STRING_SUFFIX "" -#elif LWIP_VERSION_IS_DEVELOPMENT -#define LWIP_VERSION_STRING_SUFFIX "d" -#else -#define LWIP_VERSION_STRING_SUFFIX "rc" LWIP_VERSTR(LWIP_VERSION_RC) -#endif - -/** Provides the version of the stack */ -#define LWIP_VERSION ((LWIP_VERSION_MAJOR) << 24 | (LWIP_VERSION_MINOR) << 16 | \ - (LWIP_VERSION_REVISION) << 8 | (LWIP_VERSION_RC)) -/** Provides the version of the stack as string */ -#define LWIP_VERSION_STRING LWIP_VERSTR(LWIP_VERSION_MAJOR) "." LWIP_VERSTR(LWIP_VERSION_MINOR) "." LWIP_VERSTR(LWIP_VERSION_REVISION) LWIP_VERSION_STRING_SUFFIX - -/** - * @} - */ - -/* Modules initialization */ -void lwip_init(void); - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_INIT_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/ip.h b/Middlewares/Third_Party/LwIP/src/include/lwip/ip.h deleted file mode 100644 index 653c3b2..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/ip.h +++ /dev/null @@ -1,330 +0,0 @@ -/** - * @file - * IP API - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_IP_H -#define LWIP_HDR_IP_H - -#include "lwip/opt.h" - -#include "lwip/def.h" -#include "lwip/pbuf.h" -#include "lwip/ip_addr.h" -#include "lwip/err.h" -#include "lwip/netif.h" -#include "lwip/ip4.h" -#include "lwip/ip6.h" -#include "lwip/prot/ip.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* This is passed as the destination address to ip_output_if (not - to ip_output), meaning that an IP header already is constructed - in the pbuf. This is used when TCP retransmits. */ -#define LWIP_IP_HDRINCL NULL - -/** pbufs passed to IP must have a ref-count of 1 as their payload pointer - gets altered as the packet is passed down the stack */ -#ifndef LWIP_IP_CHECK_PBUF_REF_COUNT_FOR_TX -#define LWIP_IP_CHECK_PBUF_REF_COUNT_FOR_TX(p) LWIP_ASSERT("p->ref == 1", (p)->ref == 1) -#endif - -#if LWIP_NETIF_USE_HINTS -#define IP_PCB_NETIFHINT ;struct netif_hint netif_hints -#else /* LWIP_NETIF_USE_HINTS */ -#define IP_PCB_NETIFHINT -#endif /* LWIP_NETIF_USE_HINTS */ - -/** This is the common part of all PCB types. It needs to be at the - beginning of a PCB type definition. It is located here so that - changes to this common part are made in one location instead of - having to change all PCB structs. */ -#define IP_PCB \ - /* ip addresses in network byte order */ \ - ip_addr_t local_ip; \ - ip_addr_t remote_ip; \ - /* Bound netif index */ \ - u8_t netif_idx; \ - /* Socket options */ \ - u8_t so_options; \ - /* Type Of Service */ \ - u8_t tos; \ - /* Time To Live */ \ - u8_t ttl \ - /* link layer address resolution hint */ \ - IP_PCB_NETIFHINT - -struct ip_pcb { - /* Common members of all PCB types */ - IP_PCB; -}; - -/* - * Option flags per-socket. These are the same like SO_XXX in sockets.h - */ -#define SOF_REUSEADDR 0x04U /* allow local address reuse */ -#define SOF_KEEPALIVE 0x08U /* keep connections alive */ -#define SOF_BROADCAST 0x20U /* permit to send and to receive broadcast messages (see IP_SOF_BROADCAST option) */ - -/* These flags are inherited (e.g. from a listen-pcb to a connection-pcb): */ -#define SOF_INHERITED (SOF_REUSEADDR|SOF_KEEPALIVE) - -/** Global variables of this module, kept in a struct for efficient access using base+index. */ -struct ip_globals -{ - /** The interface that accepted the packet for the current callback invocation. */ - struct netif *current_netif; - /** The interface that received the packet for the current callback invocation. */ - struct netif *current_input_netif; -#if LWIP_IPV4 - /** Header of the input packet currently being processed. */ - const struct ip_hdr *current_ip4_header; -#endif /* LWIP_IPV4 */ -#if LWIP_IPV6 - /** Header of the input IPv6 packet currently being processed. */ - struct ip6_hdr *current_ip6_header; -#endif /* LWIP_IPV6 */ - /** Total header length of current_ip4/6_header (i.e. after this, the UDP/TCP header starts) */ - u16_t current_ip_header_tot_len; - /** Source IP address of current_header */ - ip_addr_t current_iphdr_src; - /** Destination IP address of current_header */ - ip_addr_t current_iphdr_dest; -}; -extern struct ip_globals ip_data; - - -/** Get the interface that accepted the current packet. - * This may or may not be the receiving netif, depending on your netif/network setup. - * This function must only be called from a receive callback (udp_recv, - * raw_recv, tcp_accept). It will return NULL otherwise. */ -#define ip_current_netif() (ip_data.current_netif) -/** Get the interface that received the current packet. - * This function must only be called from a receive callback (udp_recv, - * raw_recv, tcp_accept). It will return NULL otherwise. */ -#define ip_current_input_netif() (ip_data.current_input_netif) -/** Total header length of ip(6)_current_header() (i.e. after this, the UDP/TCP header starts) */ -#define ip_current_header_tot_len() (ip_data.current_ip_header_tot_len) -/** Source IP address of current_header */ -#define ip_current_src_addr() (&ip_data.current_iphdr_src) -/** Destination IP address of current_header */ -#define ip_current_dest_addr() (&ip_data.current_iphdr_dest) - -#if LWIP_IPV4 && LWIP_IPV6 -/** Get the IPv4 header of the current packet. - * This function must only be called from a receive callback (udp_recv, - * raw_recv, tcp_accept). It will return NULL otherwise. */ -#define ip4_current_header() ip_data.current_ip4_header -/** Get the IPv6 header of the current packet. - * This function must only be called from a receive callback (udp_recv, - * raw_recv, tcp_accept). It will return NULL otherwise. */ -#define ip6_current_header() ((const struct ip6_hdr*)(ip_data.current_ip6_header)) -/** Returns TRUE if the current IP input packet is IPv6, FALSE if it is IPv4 */ -#define ip_current_is_v6() (ip6_current_header() != NULL) -/** Source IPv6 address of current_header */ -#define ip6_current_src_addr() (ip_2_ip6(&ip_data.current_iphdr_src)) -/** Destination IPv6 address of current_header */ -#define ip6_current_dest_addr() (ip_2_ip6(&ip_data.current_iphdr_dest)) -/** Get the transport layer protocol */ -#define ip_current_header_proto() (ip_current_is_v6() ? \ - IP6H_NEXTH(ip6_current_header()) :\ - IPH_PROTO(ip4_current_header())) -/** Get the transport layer header */ -#define ip_next_header_ptr() ((const void*)((ip_current_is_v6() ? \ - (const u8_t*)ip6_current_header() : (const u8_t*)ip4_current_header()) + ip_current_header_tot_len())) - -/** Source IP4 address of current_header */ -#define ip4_current_src_addr() (ip_2_ip4(&ip_data.current_iphdr_src)) -/** Destination IP4 address of current_header */ -#define ip4_current_dest_addr() (ip_2_ip4(&ip_data.current_iphdr_dest)) - -#elif LWIP_IPV4 /* LWIP_IPV4 && LWIP_IPV6 */ - -/** Get the IPv4 header of the current packet. - * This function must only be called from a receive callback (udp_recv, - * raw_recv, tcp_accept). It will return NULL otherwise. */ -#define ip4_current_header() ip_data.current_ip4_header -/** Always returns FALSE when only supporting IPv4 only */ -#define ip_current_is_v6() 0 -/** Get the transport layer protocol */ -#define ip_current_header_proto() IPH_PROTO(ip4_current_header()) -/** Get the transport layer header */ -#define ip_next_header_ptr() ((const void*)((const u8_t*)ip4_current_header() + ip_current_header_tot_len())) -/** Source IP4 address of current_header */ -#define ip4_current_src_addr() (&ip_data.current_iphdr_src) -/** Destination IP4 address of current_header */ -#define ip4_current_dest_addr() (&ip_data.current_iphdr_dest) - -#elif LWIP_IPV6 /* LWIP_IPV4 && LWIP_IPV6 */ - -/** Get the IPv6 header of the current packet. - * This function must only be called from a receive callback (udp_recv, - * raw_recv, tcp_accept). It will return NULL otherwise. */ -#define ip6_current_header() ((const struct ip6_hdr*)(ip_data.current_ip6_header)) -/** Always returns TRUE when only supporting IPv6 only */ -#define ip_current_is_v6() 1 -/** Get the transport layer protocol */ -#define ip_current_header_proto() IP6H_NEXTH(ip6_current_header()) -/** Get the transport layer header */ -#define ip_next_header_ptr() ((const void*)(((const u8_t*)ip6_current_header()) + ip_current_header_tot_len())) -/** Source IP6 address of current_header */ -#define ip6_current_src_addr() (&ip_data.current_iphdr_src) -/** Destination IP6 address of current_header */ -#define ip6_current_dest_addr() (&ip_data.current_iphdr_dest) - -#endif /* LWIP_IPV6 */ - -/** Union source address of current_header */ -#define ip_current_src_addr() (&ip_data.current_iphdr_src) -/** Union destination address of current_header */ -#define ip_current_dest_addr() (&ip_data.current_iphdr_dest) - -/** Gets an IP pcb option (SOF_* flags) */ -#define ip_get_option(pcb, opt) ((pcb)->so_options & (opt)) -/** Sets an IP pcb option (SOF_* flags) */ -#define ip_set_option(pcb, opt) ((pcb)->so_options = (u8_t)((pcb)->so_options | (opt))) -/** Resets an IP pcb option (SOF_* flags) */ -#define ip_reset_option(pcb, opt) ((pcb)->so_options = (u8_t)((pcb)->so_options & ~(opt))) - -#if LWIP_IPV4 && LWIP_IPV6 -/** - * @ingroup ip - * Output IP packet, netif is selected by source address - */ -#define ip_output(p, src, dest, ttl, tos, proto) \ - (IP_IS_V6(dest) ? \ - ip6_output(p, ip_2_ip6(src), ip_2_ip6(dest), ttl, tos, proto) : \ - ip4_output(p, ip_2_ip4(src), ip_2_ip4(dest), ttl, tos, proto)) -/** - * @ingroup ip - * Output IP packet to specified interface - */ -#define ip_output_if(p, src, dest, ttl, tos, proto, netif) \ - (IP_IS_V6(dest) ? \ - ip6_output_if(p, ip_2_ip6(src), ip_2_ip6(dest), ttl, tos, proto, netif) : \ - ip4_output_if(p, ip_2_ip4(src), ip_2_ip4(dest), ttl, tos, proto, netif)) -/** - * @ingroup ip - * Output IP packet to interface specifying source address - */ -#define ip_output_if_src(p, src, dest, ttl, tos, proto, netif) \ - (IP_IS_V6(dest) ? \ - ip6_output_if_src(p, ip_2_ip6(src), ip_2_ip6(dest), ttl, tos, proto, netif) : \ - ip4_output_if_src(p, ip_2_ip4(src), ip_2_ip4(dest), ttl, tos, proto, netif)) -/** Output IP packet that already includes an IP header. */ -#define ip_output_if_hdrincl(p, src, dest, netif) \ - (IP_IS_V6(dest) ? \ - ip6_output_if(p, ip_2_ip6(src), LWIP_IP_HDRINCL, 0, 0, 0, netif) : \ - ip4_output_if(p, ip_2_ip4(src), LWIP_IP_HDRINCL, 0, 0, 0, netif)) -/** Output IP packet with netif_hint */ -#define ip_output_hinted(p, src, dest, ttl, tos, proto, netif_hint) \ - (IP_IS_V6(dest) ? \ - ip6_output_hinted(p, ip_2_ip6(src), ip_2_ip6(dest), ttl, tos, proto, netif_hint) : \ - ip4_output_hinted(p, ip_2_ip4(src), ip_2_ip4(dest), ttl, tos, proto, netif_hint)) -/** - * @ingroup ip - * Get netif for address combination. See \ref ip6_route and \ref ip4_route - */ -#define ip_route(src, dest) \ - (IP_IS_V6(dest) ? \ - ip6_route(ip_2_ip6(src), ip_2_ip6(dest)) : \ - ip4_route_src(ip_2_ip4(src), ip_2_ip4(dest))) -/** - * @ingroup ip - * Get netif for IP. - */ -#define ip_netif_get_local_ip(netif, dest) (IP_IS_V6(dest) ? \ - ip6_netif_get_local_ip(netif, ip_2_ip6(dest)) : \ - ip4_netif_get_local_ip(netif)) -#define ip_debug_print(is_ipv6, p) ((is_ipv6) ? ip6_debug_print(p) : ip4_debug_print(p)) - -err_t ip_input(struct pbuf *p, struct netif *inp); - -#elif LWIP_IPV4 /* LWIP_IPV4 && LWIP_IPV6 */ - -#define ip_output(p, src, dest, ttl, tos, proto) \ - ip4_output(p, src, dest, ttl, tos, proto) -#define ip_output_if(p, src, dest, ttl, tos, proto, netif) \ - ip4_output_if(p, src, dest, ttl, tos, proto, netif) -#define ip_output_if_src(p, src, dest, ttl, tos, proto, netif) \ - ip4_output_if_src(p, src, dest, ttl, tos, proto, netif) -#define ip_output_hinted(p, src, dest, ttl, tos, proto, netif_hint) \ - ip4_output_hinted(p, src, dest, ttl, tos, proto, netif_hint) -#define ip_output_if_hdrincl(p, src, dest, netif) \ - ip4_output_if(p, src, LWIP_IP_HDRINCL, 0, 0, 0, netif) -#define ip_route(src, dest) \ - ip4_route_src(src, dest) -#define ip_netif_get_local_ip(netif, dest) \ - ip4_netif_get_local_ip(netif) -#define ip_debug_print(is_ipv6, p) ip4_debug_print(p) - -#define ip_input ip4_input - -#elif LWIP_IPV6 /* LWIP_IPV4 && LWIP_IPV6 */ - -#define ip_output(p, src, dest, ttl, tos, proto) \ - ip6_output(p, src, dest, ttl, tos, proto) -#define ip_output_if(p, src, dest, ttl, tos, proto, netif) \ - ip6_output_if(p, src, dest, ttl, tos, proto, netif) -#define ip_output_if_src(p, src, dest, ttl, tos, proto, netif) \ - ip6_output_if_src(p, src, dest, ttl, tos, proto, netif) -#define ip_output_hinted(p, src, dest, ttl, tos, proto, netif_hint) \ - ip6_output_hinted(p, src, dest, ttl, tos, proto, netif_hint) -#define ip_output_if_hdrincl(p, src, dest, netif) \ - ip6_output_if(p, src, LWIP_IP_HDRINCL, 0, 0, 0, netif) -#define ip_route(src, dest) \ - ip6_route(src, dest) -#define ip_netif_get_local_ip(netif, dest) \ - ip6_netif_get_local_ip(netif, dest) -#define ip_debug_print(is_ipv6, p) ip6_debug_print(p) - -#define ip_input ip6_input - -#endif /* LWIP_IPV6 */ - -#define ip_route_get_local_ip(src, dest, netif, ipaddr) do { \ - (netif) = ip_route(src, dest); \ - (ipaddr) = ip_netif_get_local_ip(netif, dest); \ -}while(0) - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_IP_H */ - - diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h b/Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h deleted file mode 100644 index fd35a33..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/ip4.h +++ /dev/null @@ -1,111 +0,0 @@ -/** - * @file - * IPv4 API - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_IP4_H -#define LWIP_HDR_IP4_H - -#include "lwip/opt.h" - -#if LWIP_IPV4 - -#include "lwip/def.h" -#include "lwip/pbuf.h" -#include "lwip/ip4_addr.h" -#include "lwip/err.h" -#include "lwip/netif.h" -#include "lwip/prot/ip4.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#ifdef LWIP_HOOK_IP4_ROUTE_SRC -#define LWIP_IPV4_SRC_ROUTING 1 -#else -#define LWIP_IPV4_SRC_ROUTING 0 -#endif - -/** Currently, the function ip_output_if_opt() is only used with IGMP */ -#define IP_OPTIONS_SEND (LWIP_IPV4 && LWIP_IGMP) - -#define ip_init() /* Compatibility define, no init needed. */ -struct netif *ip4_route(const ip4_addr_t *dest); -#if LWIP_IPV4_SRC_ROUTING -struct netif *ip4_route_src(const ip4_addr_t *src, const ip4_addr_t *dest); -#else /* LWIP_IPV4_SRC_ROUTING */ -#define ip4_route_src(src, dest) ip4_route(dest) -#endif /* LWIP_IPV4_SRC_ROUTING */ -err_t ip4_input(struct pbuf *p, struct netif *inp); -err_t ip4_output(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, - u8_t ttl, u8_t tos, u8_t proto); -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); -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); -#if LWIP_NETIF_USE_HINTS -err_t ip4_output_hinted(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, - u8_t ttl, u8_t tos, u8_t proto, struct netif_hint *netif_hint); -#endif /* LWIP_NETIF_USE_HINTS */ -#if IP_OPTIONS_SEND -err_t 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); -err_t ip4_output_if_opt_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, void *ip_options, - u16_t optlen); -#endif /* IP_OPTIONS_SEND */ - -#if LWIP_MULTICAST_TX_OPTIONS -void ip4_set_default_multicast_netif(struct netif* default_multicast_netif); -#endif /* LWIP_MULTICAST_TX_OPTIONS */ - -#define ip4_netif_get_local_ip(netif) (((netif) != NULL) ? netif_ip_addr4(netif) : NULL) - -#if IP_DEBUG -void ip4_debug_print(struct pbuf *p); -#else -#define ip4_debug_print(p) -#endif /* IP_DEBUG */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_IPV4 */ - -#endif /* LWIP_HDR_IP_H */ - - diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h b/Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h deleted file mode 100644 index f244c4f..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/ip4_addr.h +++ /dev/null @@ -1,216 +0,0 @@ -/** - * @file - * IPv4 address API - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_IP4_ADDR_H -#define LWIP_HDR_IP4_ADDR_H - -#include "lwip/opt.h" -#include "lwip/def.h" - -#if LWIP_IPV4 - -#ifdef __cplusplus -extern "C" { -#endif - -/** This is the aligned version of ip4_addr_t, - used as local variable, on the stack, etc. */ -struct ip4_addr { - u32_t addr; -}; - -/** ip4_addr_t uses a struct for convenience only, so that the same defines can - * operate both on ip4_addr_t as well as on ip4_addr_p_t. */ -typedef struct ip4_addr ip4_addr_t; - -/* Forward declaration to not include netif.h */ -struct netif; - -/** 255.255.255.255 */ -#define IPADDR_NONE ((u32_t)0xffffffffUL) -/** 127.0.0.1 */ -#define IPADDR_LOOPBACK ((u32_t)0x7f000001UL) -/** 0.0.0.0 */ -#define IPADDR_ANY ((u32_t)0x00000000UL) -/** 255.255.255.255 */ -#define IPADDR_BROADCAST ((u32_t)0xffffffffUL) - -/* Definitions of the bits in an Internet address integer. - - On subnets, host and network parts are found according to - the subnet mask, not these masks. */ -#define IP_CLASSA(a) ((((u32_t)(a)) & 0x80000000UL) == 0) -#define IP_CLASSA_NET 0xff000000 -#define IP_CLASSA_NSHIFT 24 -#define IP_CLASSA_HOST (0xffffffff & ~IP_CLASSA_NET) -#define IP_CLASSA_MAX 128 - -#define IP_CLASSB(a) ((((u32_t)(a)) & 0xc0000000UL) == 0x80000000UL) -#define IP_CLASSB_NET 0xffff0000 -#define IP_CLASSB_NSHIFT 16 -#define IP_CLASSB_HOST (0xffffffff & ~IP_CLASSB_NET) -#define IP_CLASSB_MAX 65536 - -#define IP_CLASSC(a) ((((u32_t)(a)) & 0xe0000000UL) == 0xc0000000UL) -#define IP_CLASSC_NET 0xffffff00 -#define IP_CLASSC_NSHIFT 8 -#define IP_CLASSC_HOST (0xffffffff & ~IP_CLASSC_NET) - -#define IP_CLASSD(a) (((u32_t)(a) & 0xf0000000UL) == 0xe0000000UL) -#define IP_CLASSD_NET 0xf0000000 /* These ones aren't really */ -#define IP_CLASSD_NSHIFT 28 /* net and host fields, but */ -#define IP_CLASSD_HOST 0x0fffffff /* routing needn't know. */ -#define IP_MULTICAST(a) IP_CLASSD(a) - -#define IP_EXPERIMENTAL(a) (((u32_t)(a) & 0xf0000000UL) == 0xf0000000UL) -#define IP_BADCLASS(a) (((u32_t)(a) & 0xf0000000UL) == 0xf0000000UL) - -#define IP_LOOPBACKNET 127 /* official! */ - -/** Set an IP address given by the four byte-parts */ -#define IP4_ADDR(ipaddr, a,b,c,d) (ipaddr)->addr = PP_HTONL(LWIP_MAKEU32(a,b,c,d)) - -/** Copy IP address - faster than ip4_addr_set: no NULL check */ -#define ip4_addr_copy(dest, src) ((dest).addr = (src).addr) -/** Safely copy one IP address to another (src may be NULL) */ -#define ip4_addr_set(dest, src) ((dest)->addr = \ - ((src) == NULL ? 0 : \ - (src)->addr)) -/** Set complete address to zero */ -#define ip4_addr_set_zero(ipaddr) ((ipaddr)->addr = 0) -/** Set address to IPADDR_ANY (no need for lwip_htonl()) */ -#define ip4_addr_set_any(ipaddr) ((ipaddr)->addr = IPADDR_ANY) -/** Set address to loopback address */ -#define ip4_addr_set_loopback(ipaddr) ((ipaddr)->addr = PP_HTONL(IPADDR_LOOPBACK)) -/** Check if an address is in the loopback region */ -#define ip4_addr_isloopback(ipaddr) (((ipaddr)->addr & PP_HTONL(IP_CLASSA_NET)) == PP_HTONL(((u32_t)IP_LOOPBACKNET) << 24)) -/** Safely copy one IP address to another and change byte order - * from host- to network-order. */ -#define ip4_addr_set_hton(dest, src) ((dest)->addr = \ - ((src) == NULL ? 0:\ - lwip_htonl((src)->addr))) -/** IPv4 only: set the IP address given as an u32_t */ -#define ip4_addr_set_u32(dest_ipaddr, src_u32) ((dest_ipaddr)->addr = (src_u32)) -/** IPv4 only: get the IP address as an u32_t */ -#define ip4_addr_get_u32(src_ipaddr) ((src_ipaddr)->addr) - -/** Get the network address by combining host address with netmask */ -#define ip4_addr_get_network(target, host, netmask) do { ((target)->addr = ((host)->addr) & ((netmask)->addr)); } while(0) - -/** - * Determine if two address are on the same network. - * - * @arg addr1 IP address 1 - * @arg addr2 IP address 2 - * @arg mask network identifier mask - * @return !0 if the network identifiers of both address match - */ -#define ip4_addr_netcmp(addr1, addr2, mask) (((addr1)->addr & \ - (mask)->addr) == \ - ((addr2)->addr & \ - (mask)->addr)) -#define ip4_addr_cmp(addr1, addr2) ((addr1)->addr == (addr2)->addr) - -#define ip4_addr_isany_val(addr1) ((addr1).addr == IPADDR_ANY) -#define ip4_addr_isany(addr1) ((addr1) == NULL || ip4_addr_isany_val(*(addr1))) - -#define ip4_addr_isbroadcast(addr1, netif) ip4_addr_isbroadcast_u32((addr1)->addr, netif) -u8_t ip4_addr_isbroadcast_u32(u32_t addr, const struct netif *netif); - -#define ip_addr_netmask_valid(netmask) ip4_addr_netmask_valid((netmask)->addr) -u8_t ip4_addr_netmask_valid(u32_t netmask); - -#define ip4_addr_ismulticast(addr1) (((addr1)->addr & PP_HTONL(0xf0000000UL)) == PP_HTONL(0xe0000000UL)) - -#define ip4_addr_islinklocal(addr1) (((addr1)->addr & PP_HTONL(0xffff0000UL)) == PP_HTONL(0xa9fe0000UL)) - -#define ip4_addr_debug_print_parts(debug, a, b, c, d) \ - LWIP_DEBUGF(debug, ("%" U16_F ".%" U16_F ".%" U16_F ".%" U16_F, a, b, c, d)) -#define ip4_addr_debug_print(debug, ipaddr) \ - ip4_addr_debug_print_parts(debug, \ - (u16_t)((ipaddr) != NULL ? ip4_addr1_16(ipaddr) : 0), \ - (u16_t)((ipaddr) != NULL ? ip4_addr2_16(ipaddr) : 0), \ - (u16_t)((ipaddr) != NULL ? ip4_addr3_16(ipaddr) : 0), \ - (u16_t)((ipaddr) != NULL ? ip4_addr4_16(ipaddr) : 0)) -#define ip4_addr_debug_print_val(debug, ipaddr) \ - ip4_addr_debug_print_parts(debug, \ - ip4_addr1_16_val(ipaddr), \ - ip4_addr2_16_val(ipaddr), \ - ip4_addr3_16_val(ipaddr), \ - ip4_addr4_16_val(ipaddr)) - -/* Get one byte from the 4-byte address */ -#define ip4_addr_get_byte(ipaddr, idx) (((const u8_t*)(&(ipaddr)->addr))[idx]) -#define ip4_addr1(ipaddr) ip4_addr_get_byte(ipaddr, 0) -#define ip4_addr2(ipaddr) ip4_addr_get_byte(ipaddr, 1) -#define ip4_addr3(ipaddr) ip4_addr_get_byte(ipaddr, 2) -#define ip4_addr4(ipaddr) ip4_addr_get_byte(ipaddr, 3) -/* Get one byte from the 4-byte address, but argument is 'ip4_addr_t', - * not a pointer */ -#define ip4_addr_get_byte_val(ipaddr, idx) ((u8_t)(((ipaddr).addr >> (idx * 8)) & 0xff)) -#define ip4_addr1_val(ipaddr) ip4_addr_get_byte_val(ipaddr, 0) -#define ip4_addr2_val(ipaddr) ip4_addr_get_byte_val(ipaddr, 1) -#define ip4_addr3_val(ipaddr) ip4_addr_get_byte_val(ipaddr, 2) -#define ip4_addr4_val(ipaddr) ip4_addr_get_byte_val(ipaddr, 3) -/* These are cast to u16_t, with the intent that they are often arguments - * to printf using the U16_F format from cc.h. */ -#define ip4_addr1_16(ipaddr) ((u16_t)ip4_addr1(ipaddr)) -#define ip4_addr2_16(ipaddr) ((u16_t)ip4_addr2(ipaddr)) -#define ip4_addr3_16(ipaddr) ((u16_t)ip4_addr3(ipaddr)) -#define ip4_addr4_16(ipaddr) ((u16_t)ip4_addr4(ipaddr)) -#define ip4_addr1_16_val(ipaddr) ((u16_t)ip4_addr1_val(ipaddr)) -#define ip4_addr2_16_val(ipaddr) ((u16_t)ip4_addr2_val(ipaddr)) -#define ip4_addr3_16_val(ipaddr) ((u16_t)ip4_addr3_val(ipaddr)) -#define ip4_addr4_16_val(ipaddr) ((u16_t)ip4_addr4_val(ipaddr)) - -#define IP4ADDR_STRLEN_MAX 16 - -/** For backwards compatibility */ -#define ip_ntoa(ipaddr) ipaddr_ntoa(ipaddr) - -u32_t ipaddr_addr(const char *cp); -int ip4addr_aton(const char *cp, ip4_addr_t *addr); -/** returns ptr to static buffer; not reentrant! */ -char *ip4addr_ntoa(const ip4_addr_t *addr); -char *ip4addr_ntoa_r(const ip4_addr_t *addr, char *buf, int buflen); - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_IPV4 */ - -#endif /* LWIP_HDR_IP_ADDR_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/ip4_frag.h b/Middlewares/Third_Party/LwIP/src/include/lwip/ip4_frag.h deleted file mode 100644 index ed5bf14..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/ip4_frag.h +++ /dev/null @@ -1,100 +0,0 @@ -/** - * @file - * IP fragmentation/reassembly - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Jani Monoses - * - */ - -#ifndef LWIP_HDR_IP4_FRAG_H -#define LWIP_HDR_IP4_FRAG_H - -#include "lwip/opt.h" -#include "lwip/err.h" -#include "lwip/pbuf.h" -#include "lwip/netif.h" -#include "lwip/ip_addr.h" -#include "lwip/ip.h" - -#if LWIP_IPV4 - -#ifdef __cplusplus -extern "C" { -#endif - -#if IP_REASSEMBLY -/* The IP reassembly timer interval in milliseconds. */ -#define IP_TMR_INTERVAL 1000 - -/** IP reassembly helper struct. - * This is exported because memp needs to know the size. - */ -struct ip_reassdata { - struct ip_reassdata *next; - struct pbuf *p; - struct ip_hdr iphdr; - u16_t datagram_len; - u8_t flags; - u8_t timer; -}; - -void ip_reass_init(void); -void ip_reass_tmr(void); -struct pbuf * ip4_reass(struct pbuf *p); -#endif /* IP_REASSEMBLY */ - -#if IP_FRAG -#if !LWIP_NETIF_TX_SINGLE_PBUF -#ifndef LWIP_PBUF_CUSTOM_REF_DEFINED -#define LWIP_PBUF_CUSTOM_REF_DEFINED -/** A custom pbuf that holds a reference to another pbuf, which is freed - * when this custom pbuf is freed. This is used to create a custom PBUF_REF - * that points into the original pbuf. */ -struct pbuf_custom_ref { - /** 'base class' */ - struct pbuf_custom pc; - /** pointer to the original pbuf that is referenced */ - struct pbuf *original; -}; -#endif /* LWIP_PBUF_CUSTOM_REF_DEFINED */ -#endif /* !LWIP_NETIF_TX_SINGLE_PBUF */ - -err_t ip4_frag(struct pbuf *p, struct netif *netif, const ip4_addr_t *dest); -#endif /* IP_FRAG */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_IPV4 */ - -#endif /* LWIP_HDR_IP4_FRAG_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h b/Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h deleted file mode 100644 index f894e06..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/ip6.h +++ /dev/null @@ -1,93 +0,0 @@ -/** - * @file - * - * IPv6 layer. - */ - -/* - * Copyright (c) 2010 Inico Technologies Ltd. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Ivan Delamer - * - * - * Please coordinate changes and requests with Ivan Delamer - * - */ -#ifndef LWIP_HDR_IP6_H -#define LWIP_HDR_IP6_H - -#include "lwip/opt.h" - -#if LWIP_IPV6 /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/ip6_addr.h" -#include "lwip/prot/ip6.h" -#include "lwip/def.h" -#include "lwip/pbuf.h" -#include "lwip/netif.h" - -#include "lwip/err.h" - -#ifdef __cplusplus -extern "C" { -#endif - -struct netif *ip6_route(const ip6_addr_t *src, const ip6_addr_t *dest); -const ip_addr_t *ip6_select_source_address(struct netif *netif, const ip6_addr_t * dest); -err_t ip6_input(struct pbuf *p, struct netif *inp); -err_t ip6_output(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest, - u8_t hl, u8_t tc, u8_t nexth); -err_t ip6_output_if(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest, - u8_t hl, u8_t tc, u8_t nexth, struct netif *netif); -err_t ip6_output_if_src(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest, - u8_t hl, u8_t tc, u8_t nexth, struct netif *netif); -#if LWIP_NETIF_USE_HINTS -err_t ip6_output_hinted(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest, - u8_t hl, u8_t tc, u8_t nexth, struct netif_hint *netif_hint); -#endif /* LWIP_NETIF_USE_HINTS */ -#if LWIP_IPV6_MLD -err_t ip6_options_add_hbh_ra(struct pbuf * p, u8_t nexth, u8_t value); -#endif /* LWIP_IPV6_MLD */ - -#define ip6_netif_get_local_ip(netif, dest) (((netif) != NULL) ? \ - ip6_select_source_address(netif, dest) : NULL) - -#if IP6_DEBUG -void ip6_debug_print(struct pbuf *p); -#else -#define ip6_debug_print(p) -#endif /* IP6_DEBUG */ - - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_IPV6 */ - -#endif /* LWIP_HDR_IP6_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h b/Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h deleted file mode 100644 index 29c2a34..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/ip6_addr.h +++ /dev/null @@ -1,352 +0,0 @@ -/** - * @file - * - * IPv6 addresses. - */ - -/* - * Copyright (c) 2010 Inico Technologies Ltd. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Ivan Delamer - * - * Structs and macros for handling IPv6 addresses. - * - * Please coordinate changes and requests with Ivan Delamer - * - */ -#ifndef LWIP_HDR_IP6_ADDR_H -#define LWIP_HDR_IP6_ADDR_H - -#include "lwip/opt.h" -#include "def.h" - -#if LWIP_IPV6 /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/ip6_zone.h" - -#ifdef __cplusplus -extern "C" { -#endif - - -/** This is the aligned version of ip6_addr_t, - used as local variable, on the stack, etc. */ -struct ip6_addr { - u32_t addr[4]; -#if LWIP_IPV6_SCOPES - u8_t zone; -#endif /* LWIP_IPV6_SCOPES */ -}; - -/** IPv6 address */ -typedef struct ip6_addr ip6_addr_t; - -/** Set an IPv6 partial address given by byte-parts */ -#define IP6_ADDR_PART(ip6addr, index, a,b,c,d) \ - (ip6addr)->addr[index] = PP_HTONL(LWIP_MAKEU32(a,b,c,d)) - -/** Set a full IPv6 address by passing the 4 u32_t indices in network byte order - (use PP_HTONL() for constants) */ -#define IP6_ADDR(ip6addr, idx0, idx1, idx2, idx3) do { \ - (ip6addr)->addr[0] = idx0; \ - (ip6addr)->addr[1] = idx1; \ - (ip6addr)->addr[2] = idx2; \ - (ip6addr)->addr[3] = idx3; \ - ip6_addr_clear_zone(ip6addr); } while(0) - -/** Access address in 16-bit block */ -#define IP6_ADDR_BLOCK1(ip6addr) ((u16_t)((lwip_htonl((ip6addr)->addr[0]) >> 16) & 0xffff)) -/** Access address in 16-bit block */ -#define IP6_ADDR_BLOCK2(ip6addr) ((u16_t)((lwip_htonl((ip6addr)->addr[0])) & 0xffff)) -/** Access address in 16-bit block */ -#define IP6_ADDR_BLOCK3(ip6addr) ((u16_t)((lwip_htonl((ip6addr)->addr[1]) >> 16) & 0xffff)) -/** Access address in 16-bit block */ -#define IP6_ADDR_BLOCK4(ip6addr) ((u16_t)((lwip_htonl((ip6addr)->addr[1])) & 0xffff)) -/** Access address in 16-bit block */ -#define IP6_ADDR_BLOCK5(ip6addr) ((u16_t)((lwip_htonl((ip6addr)->addr[2]) >> 16) & 0xffff)) -/** Access address in 16-bit block */ -#define IP6_ADDR_BLOCK6(ip6addr) ((u16_t)((lwip_htonl((ip6addr)->addr[2])) & 0xffff)) -/** Access address in 16-bit block */ -#define IP6_ADDR_BLOCK7(ip6addr) ((u16_t)((lwip_htonl((ip6addr)->addr[3]) >> 16) & 0xffff)) -/** Access address in 16-bit block */ -#define IP6_ADDR_BLOCK8(ip6addr) ((u16_t)((lwip_htonl((ip6addr)->addr[3])) & 0xffff)) - -/** Copy IPv6 address - faster than ip6_addr_set: no NULL check */ -#define ip6_addr_copy(dest, src) do{(dest).addr[0] = (src).addr[0]; \ - (dest).addr[1] = (src).addr[1]; \ - (dest).addr[2] = (src).addr[2]; \ - (dest).addr[3] = (src).addr[3]; \ - ip6_addr_copy_zone((dest), (src)); }while(0) -/** Safely copy one IPv6 address to another (src may be NULL) */ -#define ip6_addr_set(dest, src) do{(dest)->addr[0] = (src) == NULL ? 0 : (src)->addr[0]; \ - (dest)->addr[1] = (src) == NULL ? 0 : (src)->addr[1]; \ - (dest)->addr[2] = (src) == NULL ? 0 : (src)->addr[2]; \ - (dest)->addr[3] = (src) == NULL ? 0 : (src)->addr[3]; \ - ip6_addr_set_zone((dest), (src) == NULL ? IP6_NO_ZONE : ip6_addr_zone(src)); }while(0) - -/** Copy packed IPv6 address to unpacked IPv6 address; zone is not set */ -#define ip6_addr_copy_from_packed(dest, src) do{(dest).addr[0] = (src).addr[0]; \ - (dest).addr[1] = (src).addr[1]; \ - (dest).addr[2] = (src).addr[2]; \ - (dest).addr[3] = (src).addr[3]; \ - ip6_addr_clear_zone(&dest); }while(0) - -/** Copy unpacked IPv6 address to packed IPv6 address; zone is lost */ -#define ip6_addr_copy_to_packed(dest, src) do{(dest).addr[0] = (src).addr[0]; \ - (dest).addr[1] = (src).addr[1]; \ - (dest).addr[2] = (src).addr[2]; \ - (dest).addr[3] = (src).addr[3]; }while(0) - -/** Set complete address to zero */ -#define ip6_addr_set_zero(ip6addr) do{(ip6addr)->addr[0] = 0; \ - (ip6addr)->addr[1] = 0; \ - (ip6addr)->addr[2] = 0; \ - (ip6addr)->addr[3] = 0; \ - ip6_addr_clear_zone(ip6addr);}while(0) - -/** Set address to ipv6 'any' (no need for lwip_htonl()) */ -#define ip6_addr_set_any(ip6addr) ip6_addr_set_zero(ip6addr) -/** Set address to ipv6 loopback address */ -#define ip6_addr_set_loopback(ip6addr) do{(ip6addr)->addr[0] = 0; \ - (ip6addr)->addr[1] = 0; \ - (ip6addr)->addr[2] = 0; \ - (ip6addr)->addr[3] = PP_HTONL(0x00000001UL); \ - ip6_addr_clear_zone(ip6addr);}while(0) -/** Safely copy one IPv6 address to another and change byte order - * from host- to network-order. */ -#define ip6_addr_set_hton(dest, src) do{(dest)->addr[0] = (src) == NULL ? 0 : lwip_htonl((src)->addr[0]); \ - (dest)->addr[1] = (src) == NULL ? 0 : lwip_htonl((src)->addr[1]); \ - (dest)->addr[2] = (src) == NULL ? 0 : lwip_htonl((src)->addr[2]); \ - (dest)->addr[3] = (src) == NULL ? 0 : lwip_htonl((src)->addr[3]); \ - ip6_addr_set_zone((dest), (src) == NULL ? IP6_NO_ZONE : ip6_addr_zone(src));}while(0) - - -/** Compare IPv6 networks, ignoring zone information. To be used sparingly! */ -#define ip6_addr_netcmp_zoneless(addr1, addr2) (((addr1)->addr[0] == (addr2)->addr[0]) && \ - ((addr1)->addr[1] == (addr2)->addr[1])) - -/** - * Determine if two IPv6 address are on the same network. - * - * @param addr1 IPv6 address 1 - * @param addr2 IPv6 address 2 - * @return 1 if the network identifiers of both address match, 0 if not - */ -#define ip6_addr_netcmp(addr1, addr2) (ip6_addr_netcmp_zoneless((addr1), (addr2)) && \ - ip6_addr_cmp_zone((addr1), (addr2))) - -/* Exact-host comparison *after* ip6_addr_netcmp() succeeded, for efficiency. */ -#define ip6_addr_nethostcmp(addr1, addr2) (((addr1)->addr[2] == (addr2)->addr[2]) && \ - ((addr1)->addr[3] == (addr2)->addr[3])) - -/** Compare IPv6 addresses, ignoring zone information. To be used sparingly! */ -#define ip6_addr_cmp_zoneless(addr1, addr2) (((addr1)->addr[0] == (addr2)->addr[0]) && \ - ((addr1)->addr[1] == (addr2)->addr[1]) && \ - ((addr1)->addr[2] == (addr2)->addr[2]) && \ - ((addr1)->addr[3] == (addr2)->addr[3])) -/** - * Determine if two IPv6 addresses are the same. In particular, the address - * part of both must be the same, and the zone must be compatible. - * - * @param addr1 IPv6 address 1 - * @param addr2 IPv6 address 2 - * @return 1 if the addresses are considered equal, 0 if not - */ -#define ip6_addr_cmp(addr1, addr2) (ip6_addr_cmp_zoneless((addr1), (addr2)) && \ - ip6_addr_cmp_zone((addr1), (addr2))) - -/** Compare IPv6 address to packed address and zone */ -#define ip6_addr_cmp_packed(ip6addr, paddr, zone_idx) (((ip6addr)->addr[0] == (paddr)->addr[0]) && \ - ((ip6addr)->addr[1] == (paddr)->addr[1]) && \ - ((ip6addr)->addr[2] == (paddr)->addr[2]) && \ - ((ip6addr)->addr[3] == (paddr)->addr[3]) && \ - ip6_addr_equals_zone((ip6addr), (zone_idx))) - -#define ip6_get_subnet_id(ip6addr) (lwip_htonl((ip6addr)->addr[2]) & 0x0000ffffUL) - -#define ip6_addr_isany_val(ip6addr) (((ip6addr).addr[0] == 0) && \ - ((ip6addr).addr[1] == 0) && \ - ((ip6addr).addr[2] == 0) && \ - ((ip6addr).addr[3] == 0)) -#define ip6_addr_isany(ip6addr) (((ip6addr) == NULL) || ip6_addr_isany_val(*(ip6addr))) - -#define ip6_addr_isloopback(ip6addr) (((ip6addr)->addr[0] == 0UL) && \ - ((ip6addr)->addr[1] == 0UL) && \ - ((ip6addr)->addr[2] == 0UL) && \ - ((ip6addr)->addr[3] == PP_HTONL(0x00000001UL))) - -#define ip6_addr_isglobal(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xe0000000UL)) == PP_HTONL(0x20000000UL)) - -#define ip6_addr_islinklocal(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xffc00000UL)) == PP_HTONL(0xfe800000UL)) - -#define ip6_addr_issitelocal(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xffc00000UL)) == PP_HTONL(0xfec00000UL)) - -#define ip6_addr_isuniquelocal(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xfe000000UL)) == PP_HTONL(0xfc000000UL)) - -#define ip6_addr_isipv4mappedipv6(ip6addr) (((ip6addr)->addr[0] == 0) && ((ip6addr)->addr[1] == 0) && (((ip6addr)->addr[2]) == PP_HTONL(0x0000FFFFUL))) - -#define ip6_addr_ismulticast(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xff000000UL)) == PP_HTONL(0xff000000UL)) -#define ip6_addr_multicast_transient_flag(ip6addr) ((ip6addr)->addr[0] & PP_HTONL(0x00100000UL)) -#define ip6_addr_multicast_prefix_flag(ip6addr) ((ip6addr)->addr[0] & PP_HTONL(0x00200000UL)) -#define ip6_addr_multicast_rendezvous_flag(ip6addr) ((ip6addr)->addr[0] & PP_HTONL(0x00400000UL)) -#define ip6_addr_multicast_scope(ip6addr) ((lwip_htonl((ip6addr)->addr[0]) >> 16) & 0xf) -#define IP6_MULTICAST_SCOPE_RESERVED 0x0 -#define IP6_MULTICAST_SCOPE_RESERVED0 0x0 -#define IP6_MULTICAST_SCOPE_INTERFACE_LOCAL 0x1 -#define IP6_MULTICAST_SCOPE_LINK_LOCAL 0x2 -#define IP6_MULTICAST_SCOPE_RESERVED3 0x3 -#define IP6_MULTICAST_SCOPE_ADMIN_LOCAL 0x4 -#define IP6_MULTICAST_SCOPE_SITE_LOCAL 0x5 -#define IP6_MULTICAST_SCOPE_ORGANIZATION_LOCAL 0x8 -#define IP6_MULTICAST_SCOPE_GLOBAL 0xe -#define IP6_MULTICAST_SCOPE_RESERVEDF 0xf -#define ip6_addr_ismulticast_iflocal(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xff8f0000UL)) == PP_HTONL(0xff010000UL)) -#define ip6_addr_ismulticast_linklocal(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xff8f0000UL)) == PP_HTONL(0xff020000UL)) -#define ip6_addr_ismulticast_adminlocal(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xff8f0000UL)) == PP_HTONL(0xff040000UL)) -#define ip6_addr_ismulticast_sitelocal(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xff8f0000UL)) == PP_HTONL(0xff050000UL)) -#define ip6_addr_ismulticast_orglocal(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xff8f0000UL)) == PP_HTONL(0xff080000UL)) -#define ip6_addr_ismulticast_global(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xff8f0000UL)) == PP_HTONL(0xff0e0000UL)) - -/* Scoping note: while interface-local and link-local multicast addresses do - * have a scope (i.e., they are meaningful only in the context of a particular - * interface), the following functions are not assigning or comparing zone - * indices. The reason for this is backward compatibility. Any call site that - * produces a non-global multicast address must assign a multicast address as - * appropriate itself. */ - -#define ip6_addr_isallnodes_iflocal(ip6addr) (((ip6addr)->addr[0] == PP_HTONL(0xff010000UL)) && \ - ((ip6addr)->addr[1] == 0UL) && \ - ((ip6addr)->addr[2] == 0UL) && \ - ((ip6addr)->addr[3] == PP_HTONL(0x00000001UL))) - -#define ip6_addr_isallnodes_linklocal(ip6addr) (((ip6addr)->addr[0] == PP_HTONL(0xff020000UL)) && \ - ((ip6addr)->addr[1] == 0UL) && \ - ((ip6addr)->addr[2] == 0UL) && \ - ((ip6addr)->addr[3] == PP_HTONL(0x00000001UL))) -#define ip6_addr_set_allnodes_linklocal(ip6addr) do{(ip6addr)->addr[0] = PP_HTONL(0xff020000UL); \ - (ip6addr)->addr[1] = 0; \ - (ip6addr)->addr[2] = 0; \ - (ip6addr)->addr[3] = PP_HTONL(0x00000001UL); \ - ip6_addr_clear_zone(ip6addr); }while(0) - -#define ip6_addr_isallrouters_linklocal(ip6addr) (((ip6addr)->addr[0] == PP_HTONL(0xff020000UL)) && \ - ((ip6addr)->addr[1] == 0UL) && \ - ((ip6addr)->addr[2] == 0UL) && \ - ((ip6addr)->addr[3] == PP_HTONL(0x00000002UL))) -#define ip6_addr_set_allrouters_linklocal(ip6addr) do{(ip6addr)->addr[0] = PP_HTONL(0xff020000UL); \ - (ip6addr)->addr[1] = 0; \ - (ip6addr)->addr[2] = 0; \ - (ip6addr)->addr[3] = PP_HTONL(0x00000002UL); \ - ip6_addr_clear_zone(ip6addr); }while(0) - -#define ip6_addr_issolicitednode(ip6addr) ( ((ip6addr)->addr[0] == PP_HTONL(0xff020000UL)) && \ - ((ip6addr)->addr[2] == PP_HTONL(0x00000001UL)) && \ - (((ip6addr)->addr[3] & PP_HTONL(0xff000000UL)) == PP_HTONL(0xff000000UL)) ) - -#define ip6_addr_set_solicitednode(ip6addr, if_id) do{(ip6addr)->addr[0] = PP_HTONL(0xff020000UL); \ - (ip6addr)->addr[1] = 0; \ - (ip6addr)->addr[2] = PP_HTONL(0x00000001UL); \ - (ip6addr)->addr[3] = (PP_HTONL(0xff000000UL) | (if_id)); \ - ip6_addr_clear_zone(ip6addr); }while(0) - -#define ip6_addr_cmp_solicitednode(ip6addr, sn_addr) (((ip6addr)->addr[0] == PP_HTONL(0xff020000UL)) && \ - ((ip6addr)->addr[1] == 0) && \ - ((ip6addr)->addr[2] == PP_HTONL(0x00000001UL)) && \ - ((ip6addr)->addr[3] == (PP_HTONL(0xff000000UL) | (sn_addr)->addr[3]))) - -/* IPv6 address states. */ -#define IP6_ADDR_INVALID 0x00 -#define IP6_ADDR_TENTATIVE 0x08 -#define IP6_ADDR_TENTATIVE_1 0x09 /* 1 probe sent */ -#define IP6_ADDR_TENTATIVE_2 0x0a /* 2 probes sent */ -#define IP6_ADDR_TENTATIVE_3 0x0b /* 3 probes sent */ -#define IP6_ADDR_TENTATIVE_4 0x0c /* 4 probes sent */ -#define IP6_ADDR_TENTATIVE_5 0x0d /* 5 probes sent */ -#define IP6_ADDR_TENTATIVE_6 0x0e /* 6 probes sent */ -#define IP6_ADDR_TENTATIVE_7 0x0f /* 7 probes sent */ -#define IP6_ADDR_VALID 0x10 /* This bit marks an address as valid (preferred or deprecated) */ -#define IP6_ADDR_PREFERRED 0x30 -#define IP6_ADDR_DEPRECATED 0x10 /* Same as VALID (valid but not preferred) */ -#define IP6_ADDR_DUPLICATED 0x40 /* Failed DAD test, not valid */ - -#define IP6_ADDR_TENTATIVE_COUNT_MASK 0x07 /* 1-7 probes sent */ - -#define ip6_addr_isinvalid(addr_state) (addr_state == IP6_ADDR_INVALID) -#define ip6_addr_istentative(addr_state) (addr_state & IP6_ADDR_TENTATIVE) -#define ip6_addr_isvalid(addr_state) (addr_state & IP6_ADDR_VALID) /* Include valid, preferred, and deprecated. */ -#define ip6_addr_ispreferred(addr_state) (addr_state == IP6_ADDR_PREFERRED) -#define ip6_addr_isdeprecated(addr_state) (addr_state == IP6_ADDR_DEPRECATED) -#define ip6_addr_isduplicated(addr_state) (addr_state == IP6_ADDR_DUPLICATED) - -#if LWIP_IPV6_ADDRESS_LIFETIMES -#define IP6_ADDR_LIFE_STATIC (0) -#define IP6_ADDR_LIFE_INFINITE (0xffffffffUL) -#define ip6_addr_life_isstatic(addr_life) ((addr_life) == IP6_ADDR_LIFE_STATIC) -#define ip6_addr_life_isinfinite(addr_life) ((addr_life) == IP6_ADDR_LIFE_INFINITE) -#endif /* LWIP_IPV6_ADDRESS_LIFETIMES */ - -#define ip6_addr_debug_print_parts(debug, a, b, c, d, e, f, g, h) \ - LWIP_DEBUGF(debug, ("%" X16_F ":%" X16_F ":%" X16_F ":%" X16_F ":%" X16_F ":%" X16_F ":%" X16_F ":%" X16_F, \ - a, b, c, d, e, f, g, h)) -#define ip6_addr_debug_print(debug, ipaddr) \ - ip6_addr_debug_print_parts(debug, \ - (u16_t)((ipaddr) != NULL ? IP6_ADDR_BLOCK1(ipaddr) : 0), \ - (u16_t)((ipaddr) != NULL ? IP6_ADDR_BLOCK2(ipaddr) : 0), \ - (u16_t)((ipaddr) != NULL ? IP6_ADDR_BLOCK3(ipaddr) : 0), \ - (u16_t)((ipaddr) != NULL ? IP6_ADDR_BLOCK4(ipaddr) : 0), \ - (u16_t)((ipaddr) != NULL ? IP6_ADDR_BLOCK5(ipaddr) : 0), \ - (u16_t)((ipaddr) != NULL ? IP6_ADDR_BLOCK6(ipaddr) : 0), \ - (u16_t)((ipaddr) != NULL ? IP6_ADDR_BLOCK7(ipaddr) : 0), \ - (u16_t)((ipaddr) != NULL ? IP6_ADDR_BLOCK8(ipaddr) : 0)) -#define ip6_addr_debug_print_val(debug, ipaddr) \ - ip6_addr_debug_print_parts(debug, \ - IP6_ADDR_BLOCK1(&(ipaddr)), \ - IP6_ADDR_BLOCK2(&(ipaddr)), \ - IP6_ADDR_BLOCK3(&(ipaddr)), \ - IP6_ADDR_BLOCK4(&(ipaddr)), \ - IP6_ADDR_BLOCK5(&(ipaddr)), \ - IP6_ADDR_BLOCK6(&(ipaddr)), \ - IP6_ADDR_BLOCK7(&(ipaddr)), \ - IP6_ADDR_BLOCK8(&(ipaddr))) - -#define IP6ADDR_STRLEN_MAX 46 - -int ip6addr_aton(const char *cp, ip6_addr_t *addr); -/** returns ptr to static buffer; not reentrant! */ -char *ip6addr_ntoa(const ip6_addr_t *addr); -char *ip6addr_ntoa_r(const ip6_addr_t *addr, char *buf, int buflen); - - - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_IPV6 */ - -#endif /* LWIP_HDR_IP6_ADDR_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/ip6_frag.h b/Middlewares/Third_Party/LwIP/src/include/lwip/ip6_frag.h deleted file mode 100644 index 87e0e86..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/ip6_frag.h +++ /dev/null @@ -1,144 +0,0 @@ -/** - * @file - * - * IPv6 fragmentation and reassembly. - */ - -/* - * Copyright (c) 2010 Inico Technologies Ltd. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Ivan Delamer - * - * - * Please coordinate changes and requests with Ivan Delamer - * - */ -#ifndef LWIP_HDR_IP6_FRAG_H -#define LWIP_HDR_IP6_FRAG_H - -#include "lwip/opt.h" -#include "lwip/pbuf.h" -#include "lwip/ip6_addr.h" -#include "lwip/ip6.h" -#include "lwip/netif.h" - -#ifdef __cplusplus -extern "C" { -#endif - - -#if LWIP_IPV6 && LWIP_IPV6_REASS /* don't build if not configured for use in lwipopts.h */ - -/** The IPv6 reassembly timer interval in milliseconds. */ -#define IP6_REASS_TMR_INTERVAL 1000 - -/** IP6_FRAG_COPYHEADER==1: for platforms where sizeof(void*) > 4, "struct - * ip6_reass_helper" is too large to be stored in the IPv6 fragment header, and - * will bleed into the header before it, which may be the IPv6 header or an - * extension header. This means that for each first fragment packet, we need to - * 1) make a copy of some IPv6 header fields (src+dest) that we need later on, - * just in case we do overwrite part of the IPv6 header, and 2) make a copy of - * the header data that we overwrote, so that we can restore it before either - * completing reassembly or sending an ICMPv6 reply. The last part is true even - * if this setting is disabled, but if it is enabled, we need to save a bit - * more data (up to the size of a pointer) because we overwrite more. */ -#ifndef IPV6_FRAG_COPYHEADER -#define IPV6_FRAG_COPYHEADER 0 -#endif - -/* With IPV6_FRAG_COPYHEADER==1, a helper structure may (or, depending on the - * presence of extensions, may not) overwrite part of the IP header. Therefore, - * we copy the fields that we need from the IP header for as long as the helper - * structure may still be in place. This is easier than temporarily restoring - * those fields in the IP header each time we need to perform checks on them. */ -#if IPV6_FRAG_COPYHEADER -#define IPV6_FRAG_SRC(ipr) ((ipr)->src) -#define IPV6_FRAG_DEST(ipr) ((ipr)->dest) -#else /* IPV6_FRAG_COPYHEADER */ -#define IPV6_FRAG_SRC(ipr) ((ipr)->iphdr->src) -#define IPV6_FRAG_DEST(ipr) ((ipr)->iphdr->dest) -#endif /* IPV6_FRAG_COPYHEADER */ - -/** IPv6 reassembly helper struct. - * This is exported because memp needs to know the size. - */ -struct ip6_reassdata { - struct ip6_reassdata *next; - struct pbuf *p; - struct ip6_hdr *iphdr; /* pointer to the first (original) IPv6 header */ -#if IPV6_FRAG_COPYHEADER - ip6_addr_p_t src; /* copy of the source address in the IP header */ - ip6_addr_p_t dest; /* copy of the destination address in the IP header */ - /* This buffer (for the part of the original header that we overwrite) will - * be slightly oversized, but we cannot compute the exact size from here. */ - u8_t orig_hdr[sizeof(struct ip6_frag_hdr) + sizeof(void*)]; -#else /* IPV6_FRAG_COPYHEADER */ - /* In this case we still need the buffer, for sending ICMPv6 replies. */ - u8_t orig_hdr[sizeof(struct ip6_frag_hdr)]; -#endif /* IPV6_FRAG_COPYHEADER */ - u32_t identification; - u16_t datagram_len; - u8_t nexth; - u8_t timer; -#if LWIP_IPV6_SCOPES - u8_t src_zone; /* zone of original packet's source address */ - u8_t dest_zone; /* zone of original packet's destination address */ -#endif /* LWIP_IPV6_SCOPES */ -}; - -#define ip6_reass_init() /* Compatibility define */ -void ip6_reass_tmr(void); -struct pbuf *ip6_reass(struct pbuf *p); - -#endif /* LWIP_IPV6 && LWIP_IPV6_REASS */ - -#if LWIP_IPV6 && LWIP_IPV6_FRAG /* don't build if not configured for use in lwipopts.h */ - -#ifndef LWIP_PBUF_CUSTOM_REF_DEFINED -#define LWIP_PBUF_CUSTOM_REF_DEFINED -/** A custom pbuf that holds a reference to another pbuf, which is freed - * when this custom pbuf is freed. This is used to create a custom PBUF_REF - * that points into the original pbuf. */ -struct pbuf_custom_ref { - /** 'base class' */ - struct pbuf_custom pc; - /** pointer to the original pbuf that is referenced */ - struct pbuf *original; -}; -#endif /* LWIP_PBUF_CUSTOM_REF_DEFINED */ - -err_t ip6_frag(struct pbuf *p, struct netif *netif, const ip6_addr_t *dest); - -#endif /* LWIP_IPV6 && LWIP_IPV6_FRAG */ - - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_IP6_FRAG_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/ip6_zone.h b/Middlewares/Third_Party/LwIP/src/include/lwip/ip6_zone.h deleted file mode 100644 index 525790e..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/ip6_zone.h +++ /dev/null @@ -1,304 +0,0 @@ -/** - * @file - * - * IPv6 address scopes, zones, and scoping policy. - * - * This header provides the means to implement support for IPv6 address scopes, - * as per RFC 4007. An address scope can be either global or more constrained. - * In lwIP, we say that an address "has a scope" or "is scoped" when its scope - * is constrained, in which case the address is meaningful only in a specific - * "zone." For unicast addresses, only link-local addresses have a scope; in - * that case, the scope is the link. For multicast addresses, there are various - * scopes defined by RFC 4007 and others. For any constrained scope, a system - * must establish a (potentially one-to-many) mapping between zones and local - * interfaces. For example, a link-local address is valid on only one link (its - * zone). That link may be attached to one or more local interfaces. The - * decisions on which scopes are constrained and the mapping between zones and - * interfaces is together what we refer to as the "scoping policy" - more on - * this in a bit. - * - * In lwIP, each IPv6 address has an associated zone index. This zone index may - * be set to "no zone" (IP6_NO_ZONE, 0) or an actual zone. We say that an - * address "has a zone" or "is zoned" when its zone index is *not* set to "no - * zone." In lwIP, in principle, each address should be "properly zoned," which - * means that if the address has a zone if and only if has a scope. As such, it - * is a rule that an unscoped (e.g., global) address must never have a zone. - * Even though one could argue that there is always one zone even for global - * scopes, this rule exists for implementation simplicity. Violation of the - * rule will trigger assertions or otherwise result in undesired behavior. - * - * Backward compatibility prevents us from requiring that applications always - * provide properly zoned addresses. We do enforce the rule that the in the - * lwIP link layer (everything below netif->output_ip6() and in particular ND6) - * *all* addresses are properly zoned. Thus, on the output paths down the - * stack, various places deal with the case of addresses that lack a zone. - * Some of them are best-effort for efficiency (e.g. the PCB bind and connect - * API calls' attempts to add missing zones); ultimately the IPv6 output - * handler (@ref ip6_output_if_src) will set a zone if necessary. - * - * Aside from dealing with scoped addresses lacking a zone, a proper IPv6 - * implementation must also ensure that a packet with a scoped source and/or - * destination address does not leave its zone. This is currently implemented - * in the input and forward functions. However, for output, these checks are - * deliberately omitted in order to keep the implementation lightweight. The - * routing algorithm in @ref ip6_route will take decisions such that it will - * not cause zone violations unless the application sets bad addresses, though. - * - * In terms of scoping policy, lwIP implements the default policy from RFC 4007 - * using macros in this file. This policy considers link-local unicast - * addresses and (only) interface-local and link-local multicast addresses as - * having a scope. For all these addresses, the zone is equal to the interface. - * As shown below in this file, it is possible to implement a custom policy. - */ - -/* - * Copyright (c) 2017 The MINIX 3 Project. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: David van Moolenbroek - * - */ -#ifndef LWIP_HDR_IP6_ZONE_H -#define LWIP_HDR_IP6_ZONE_H - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @defgroup ip6_zones IPv6 Zones - * @ingroup ip6 - * @{ - */ - -#if LWIP_IPV6 /* don't build if not configured for use in lwipopts.h */ - -/** Identifier for "no zone". */ -#define IP6_NO_ZONE 0 - -#if LWIP_IPV6_SCOPES - -/** Zone initializer for static IPv6 address initialization, including comma. */ -#define IPADDR6_ZONE_INIT , IP6_NO_ZONE - -/** Return the zone index of the given IPv6 address; possibly "no zone". */ -#define ip6_addr_zone(ip6addr) ((ip6addr)->zone) - -/** Does the given IPv6 address have a zone set? (0/1) */ -#define ip6_addr_has_zone(ip6addr) (ip6_addr_zone(ip6addr) != IP6_NO_ZONE) - -/** Set the zone field of an IPv6 address to a particular value. */ -#define ip6_addr_set_zone(ip6addr, zone_idx) ((ip6addr)->zone = (zone_idx)) - -/** Clear the zone field of an IPv6 address, setting it to "no zone". */ -#define ip6_addr_clear_zone(ip6addr) ((ip6addr)->zone = IP6_NO_ZONE) - -/** Copy the zone field from the second IPv6 address to the first one. */ -#define ip6_addr_copy_zone(ip6addr1, ip6addr2) ((ip6addr1).zone = (ip6addr2).zone) - -/** Is the zone field of the given IPv6 address equal to the given zone index? (0/1) */ -#define ip6_addr_equals_zone(ip6addr, zone_idx) ((ip6addr)->zone == (zone_idx)) - -/** Are the zone fields of the given IPv6 addresses equal? (0/1) - * This macro must only be used on IPv6 addresses of the same scope. */ -#define ip6_addr_cmp_zone(ip6addr1, ip6addr2) ((ip6addr1)->zone == (ip6addr2)->zone) - -/** Symbolic constants for the 'type' parameters in some of the macros. - * These exist for efficiency only, allowing the macros to avoid certain tests - * when the address is known not to be of a certain type. Dead code elimination - * will do the rest. IP6_MULTICAST is supported but currently not optimized. - * @see ip6_addr_has_scope, ip6_addr_assign_zone, ip6_addr_lacks_zone. - */ -enum lwip_ipv6_scope_type -{ - /** Unknown */ - IP6_UNKNOWN = 0, - /** Unicast */ - IP6_UNICAST = 1, - /** Multicast */ - IP6_MULTICAST = 2 -}; - -/** IPV6_CUSTOM_SCOPES: together, the following three macro definitions, - * @ref ip6_addr_has_scope, @ref ip6_addr_assign_zone, and - * @ref ip6_addr_test_zone, completely define the lwIP scoping policy. - * The definitions below implement the default policy from RFC 4007 Sec. 6. - * Should an implementation desire to implement a different policy, it can - * define IPV6_CUSTOM_SCOPES to 1 and supply its own definitions for the three - * macros instead. - */ -#ifndef IPV6_CUSTOM_SCOPES -#define IPV6_CUSTOM_SCOPES 0 -#endif /* !IPV6_CUSTOM_SCOPES */ - -#if !IPV6_CUSTOM_SCOPES - -/** - * Determine whether an IPv6 address has a constrained scope, and as such is - * meaningful only if accompanied by a zone index to identify the scope's zone. - * The given address type may be used to eliminate at compile time certain - * checks that will evaluate to false at run time anyway. - * - * This default implementation follows the default model of RFC 4007, where - * only interface-local and link-local scopes are defined. - * - * Even though the unicast loopback address does have an implied link-local - * scope, in this implementation it does not have an explicitly assigned zone - * index. As such it should not be tested for in this macro. - * - * @param ip6addr the IPv6 address (const); only its address part is examined. - * @param type address type; see @ref lwip_ipv6_scope_type. - * @return 1 if the address has a constrained scope, 0 if it does not. - */ -#define ip6_addr_has_scope(ip6addr, type) \ - (ip6_addr_islinklocal(ip6addr) || (((type) != IP6_UNICAST) && \ - (ip6_addr_ismulticast_iflocal(ip6addr) || \ - ip6_addr_ismulticast_linklocal(ip6addr)))) - -/** - * Assign a zone index to an IPv6 address, based on a network interface. If the - * given address has a scope, the assigned zone index is that scope's zone of - * the given netif; otherwise, the assigned zone index is "no zone". - * - * This default implementation follows the default model of RFC 4007, where - * only interface-local and link-local scopes are defined, and the zone index - * of both of those scopes always equals the index of the network interface. - * As such, this default implementation need not distinguish between different - * constrained scopes when assigning the zone. - * - * @param ip6addr the IPv6 address; its address part is examined, and its zone - * index is assigned. - * @param type address type; see @ref lwip_ipv6_scope_type. - * @param netif the network interface (const). - */ -#define ip6_addr_assign_zone(ip6addr, type, netif) \ - (ip6_addr_set_zone((ip6addr), \ - ip6_addr_has_scope((ip6addr), (type)) ? netif_get_index(netif) : 0)) - -/** - * Test whether an IPv6 address is "zone-compatible" with a network interface. - * That is, test whether the network interface is part of the zone associated - * with the address. For efficiency, this macro is only ever called if the - * given address is either scoped or zoned, and thus, it need not test this. - * If an address is scoped but not zoned, or zoned and not scoped, it is - * considered not zone-compatible with any netif. - * - * This default implementation follows the default model of RFC 4007, where - * only interface-local and link-local scopes are defined, and the zone index - * of both of those scopes always equals the index of the network interface. - * As such, there is always only one matching netif for a specific zone index, - * but all call sites of this macro currently support multiple matching netifs - * as well (at no additional expense in the common case). - * - * @param ip6addr the IPv6 address (const). - * @param netif the network interface (const). - * @return 1 if the address is scope-compatible with the netif, 0 if not. - */ -#define ip6_addr_test_zone(ip6addr, netif) \ - (ip6_addr_equals_zone((ip6addr), netif_get_index(netif))) - -#endif /* !IPV6_CUSTOM_SCOPES */ - -/** Does the given IPv6 address have a scope, and as such should also have a - * zone to be meaningful, but does not actually have a zone? (0/1) */ -#define ip6_addr_lacks_zone(ip6addr, type) \ - (!ip6_addr_has_zone(ip6addr) && ip6_addr_has_scope((ip6addr), (type))) - -/** - * Try to select a zone for a scoped address that does not yet have a zone. - * Called from PCB bind and connect routines, for two reasons: 1) to save on - * this (relatively expensive) selection for every individual packet route - * operation and 2) to allow the application to obtain the selected zone from - * the PCB as is customary for e.g. getsockname/getpeername BSD socket calls. - * - * Ideally, callers would always supply a properly zoned address, in which case - * this function would not be needed. It exists both for compatibility with the - * BSD socket API (which accepts zoneless destination addresses) and for - * backward compatibility with pre-scoping lwIP code. - * - * It may be impossible to select a zone, e.g. if there are no netifs. In that - * case, the address's zone field will be left as is. - * - * @param dest the IPv6 address for which to select and set a zone. - * @param src source IPv6 address (const); may be equal to dest. - */ -#define ip6_addr_select_zone(dest, src) do { struct netif *selected_netif; \ - selected_netif = ip6_route((src), (dest)); \ - if (selected_netif != NULL) { \ - ip6_addr_assign_zone((dest), IP6_UNKNOWN, selected_netif); \ - } } while (0) - -/** - * @} - */ - -#else /* LWIP_IPV6_SCOPES */ - -#define IPADDR6_ZONE_INIT -#define ip6_addr_zone(ip6addr) (IP6_NO_ZONE) -#define ip6_addr_has_zone(ip6addr) (0) -#define ip6_addr_set_zone(ip6addr, zone_idx) -#define ip6_addr_clear_zone(ip6addr) -#define ip6_addr_copy_zone(ip6addr1, ip6addr2) -#define ip6_addr_equals_zone(ip6addr, zone_idx) (1) -#define ip6_addr_cmp_zone(ip6addr1, ip6addr2) (1) -#define IPV6_CUSTOM_SCOPES 0 -#define ip6_addr_has_scope(ip6addr, type) (0) -#define ip6_addr_assign_zone(ip6addr, type, netif) -#define ip6_addr_test_zone(ip6addr, netif) (1) -#define ip6_addr_lacks_zone(ip6addr, type) (0) -#define ip6_addr_select_zone(ip6addr, src) - -#endif /* LWIP_IPV6_SCOPES */ - -#if LWIP_IPV6_SCOPES && LWIP_IPV6_SCOPES_DEBUG - -/** Verify that the given IPv6 address is properly zoned. */ -#define IP6_ADDR_ZONECHECK(ip6addr) LWIP_ASSERT("IPv6 zone check failed", \ - ip6_addr_has_scope(ip6addr, IP6_UNKNOWN) == ip6_addr_has_zone(ip6addr)) - -/** Verify that the given IPv6 address is properly zoned for the given netif. */ -#define IP6_ADDR_ZONECHECK_NETIF(ip6addr, netif) LWIP_ASSERT("IPv6 netif zone check failed", \ - ip6_addr_has_scope(ip6addr, IP6_UNKNOWN) ? \ - (ip6_addr_has_zone(ip6addr) && \ - (((netif) == NULL) || ip6_addr_test_zone((ip6addr), (netif)))) : \ - !ip6_addr_has_zone(ip6addr)) - -#else /* LWIP_IPV6_SCOPES && LWIP_IPV6_SCOPES_DEBUG */ - -#define IP6_ADDR_ZONECHECK(ip6addr) -#define IP6_ADDR_ZONECHECK_NETIF(ip6addr, netif) - -#endif /* LWIP_IPV6_SCOPES && LWIP_IPV6_SCOPES_DEBUG */ - -#endif /* LWIP_IPV6 */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_IP6_ZONE_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h b/Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h deleted file mode 100644 index 2f97770..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/ip_addr.h +++ /dev/null @@ -1,438 +0,0 @@ -/** - * @file - * IP address API (common IPv4 and IPv6) - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_IP_ADDR_H -#define LWIP_HDR_IP_ADDR_H - -#include "lwip/opt.h" -#include "lwip/def.h" - -#include "lwip/ip4_addr.h" -#include "lwip/ip6_addr.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** @ingroup ipaddr - * IP address types for use in ip_addr_t.type member. - * @see tcp_new_ip_type(), udp_new_ip_type(), raw_new_ip_type(). - */ -enum lwip_ip_addr_type { - /** IPv4 */ - IPADDR_TYPE_V4 = 0U, - /** IPv6 */ - IPADDR_TYPE_V6 = 6U, - /** IPv4+IPv6 ("dual-stack") */ - IPADDR_TYPE_ANY = 46U -}; - -#if LWIP_IPV4 && LWIP_IPV6 -/** - * @ingroup ipaddr - * A union struct for both IP version's addresses. - * ATTENTION: watch out for its size when adding IPv6 address scope! - */ -typedef struct ip_addr { - union { - ip6_addr_t ip6; - ip4_addr_t ip4; - } u_addr; - /** @ref lwip_ip_addr_type */ - u8_t type; -} ip_addr_t; - -extern const ip_addr_t ip_addr_any_type; - -/** @ingroup ip4addr */ -#define IPADDR4_INIT(u32val) { { { { u32val, 0ul, 0ul, 0ul } IPADDR6_ZONE_INIT } }, IPADDR_TYPE_V4 } -/** @ingroup ip4addr */ -#define IPADDR4_INIT_BYTES(a,b,c,d) IPADDR4_INIT(PP_HTONL(LWIP_MAKEU32(a,b,c,d))) - -/** @ingroup ip6addr */ -#define IPADDR6_INIT(a, b, c, d) { { { { a, b, c, d } IPADDR6_ZONE_INIT } }, IPADDR_TYPE_V6 } -/** @ingroup ip6addr */ -#define IPADDR6_INIT_HOST(a, b, c, d) { { { { PP_HTONL(a), PP_HTONL(b), PP_HTONL(c), PP_HTONL(d) } IPADDR6_ZONE_INIT } }, IPADDR_TYPE_V6 } - -/** @ingroup ipaddr */ -#define IP_IS_ANY_TYPE_VAL(ipaddr) (IP_GET_TYPE(&ipaddr) == IPADDR_TYPE_ANY) -/** @ingroup ipaddr */ -#define IPADDR_ANY_TYPE_INIT { { { { 0ul, 0ul, 0ul, 0ul } IPADDR6_ZONE_INIT } }, IPADDR_TYPE_ANY } - -/** @ingroup ip4addr */ -#define IP_IS_V4_VAL(ipaddr) (IP_GET_TYPE(&ipaddr) == IPADDR_TYPE_V4) -/** @ingroup ip6addr */ -#define IP_IS_V6_VAL(ipaddr) (IP_GET_TYPE(&ipaddr) == IPADDR_TYPE_V6) -/** @ingroup ip4addr */ -#define IP_IS_V4(ipaddr) (((ipaddr) == NULL) || IP_IS_V4_VAL(*(ipaddr))) -/** @ingroup ip6addr */ -#define IP_IS_V6(ipaddr) (((ipaddr) != NULL) && IP_IS_V6_VAL(*(ipaddr))) - -#define IP_SET_TYPE_VAL(ipaddr, iptype) do { (ipaddr).type = (iptype); }while(0) -#define IP_SET_TYPE(ipaddr, iptype) do { if((ipaddr) != NULL) { IP_SET_TYPE_VAL(*(ipaddr), iptype); }}while(0) -#define IP_GET_TYPE(ipaddr) ((ipaddr)->type) - -#define IP_ADDR_RAW_SIZE(ipaddr) (IP_GET_TYPE(&ipaddr) == IPADDR_TYPE_V4 ? sizeof(ip4_addr_t) : sizeof(ip6_addr_t)) - -#define IP_ADDR_PCB_VERSION_MATCH_EXACT(pcb, ipaddr) (IP_GET_TYPE(&pcb->local_ip) == IP_GET_TYPE(ipaddr)) -#define IP_ADDR_PCB_VERSION_MATCH(pcb, ipaddr) (IP_IS_ANY_TYPE_VAL(pcb->local_ip) || IP_ADDR_PCB_VERSION_MATCH_EXACT(pcb, ipaddr)) - -/** @ingroup ip6addr - * Convert generic ip address to specific protocol version - */ -#define ip_2_ip6(ipaddr) (&((ipaddr)->u_addr.ip6)) -/** @ingroup ip4addr - * Convert generic ip address to specific protocol version - */ -#define ip_2_ip4(ipaddr) (&((ipaddr)->u_addr.ip4)) - -/** @ingroup ip4addr */ -#define IP_ADDR4(ipaddr,a,b,c,d) do { IP4_ADDR(ip_2_ip4(ipaddr),a,b,c,d); \ - IP_SET_TYPE_VAL(*(ipaddr), IPADDR_TYPE_V4); } while(0) -/** @ingroup ip6addr */ -#define IP_ADDR6(ipaddr,i0,i1,i2,i3) do { IP6_ADDR(ip_2_ip6(ipaddr),i0,i1,i2,i3); \ - IP_SET_TYPE_VAL(*(ipaddr), IPADDR_TYPE_V6); } while(0) -/** @ingroup ip6addr */ -#define IP_ADDR6_HOST(ipaddr,i0,i1,i2,i3) IP_ADDR6(ipaddr,PP_HTONL(i0),PP_HTONL(i1),PP_HTONL(i2),PP_HTONL(i3)) - -#define ip_clear_no4(ipaddr) do { ip_2_ip6(ipaddr)->addr[1] = \ - ip_2_ip6(ipaddr)->addr[2] = \ - ip_2_ip6(ipaddr)->addr[3] = 0; \ - ip6_addr_clear_zone(ip_2_ip6(ipaddr)); }while(0) - -/** @ingroup ipaddr */ -#define ip_addr_copy(dest, src) do{ IP_SET_TYPE_VAL(dest, IP_GET_TYPE(&src)); if(IP_IS_V6_VAL(src)){ \ - ip6_addr_copy(*ip_2_ip6(&(dest)), *ip_2_ip6(&(src))); }else{ \ - ip4_addr_copy(*ip_2_ip4(&(dest)), *ip_2_ip4(&(src))); ip_clear_no4(&dest); }}while(0) -/** @ingroup ip6addr */ -#define ip_addr_copy_from_ip6(dest, src) do{ \ - ip6_addr_copy(*ip_2_ip6(&(dest)), src); IP_SET_TYPE_VAL(dest, IPADDR_TYPE_V6); }while(0) -/** @ingroup ip6addr */ -#define ip_addr_copy_from_ip6_packed(dest, src) do{ \ - ip6_addr_copy_from_packed(*ip_2_ip6(&(dest)), src); IP_SET_TYPE_VAL(dest, IPADDR_TYPE_V6); }while(0) -/** @ingroup ip4addr */ -#define ip_addr_copy_from_ip4(dest, src) do{ \ - ip4_addr_copy(*ip_2_ip4(&(dest)), src); IP_SET_TYPE_VAL(dest, IPADDR_TYPE_V4); ip_clear_no4(&dest); }while(0) -/** @ingroup ip4addr */ -#define ip_addr_set_ip4_u32(ipaddr, val) do{if(ipaddr){ip4_addr_set_u32(ip_2_ip4(ipaddr), val); \ - IP_SET_TYPE(ipaddr, IPADDR_TYPE_V4); ip_clear_no4(ipaddr); }}while(0) -/** @ingroup ip4addr */ -#define ip_addr_set_ip4_u32_val(ipaddr, val) do{ ip4_addr_set_u32(ip_2_ip4(&(ipaddr)), val); \ - IP_SET_TYPE_VAL(ipaddr, IPADDR_TYPE_V4); ip_clear_no4(&ipaddr); }while(0) -/** @ingroup ip4addr */ -#define ip_addr_get_ip4_u32(ipaddr) (((ipaddr) && IP_IS_V4(ipaddr)) ? \ - ip4_addr_get_u32(ip_2_ip4(ipaddr)) : 0) -/** @ingroup ipaddr */ -#define ip_addr_set(dest, src) do{ IP_SET_TYPE(dest, IP_GET_TYPE(src)); if(IP_IS_V6(src)){ \ - ip6_addr_set(ip_2_ip6(dest), ip_2_ip6(src)); }else{ \ - ip4_addr_set(ip_2_ip4(dest), ip_2_ip4(src)); ip_clear_no4(dest); }}while(0) -/** @ingroup ipaddr */ -#define ip_addr_set_ipaddr(dest, src) ip_addr_set(dest, src) -/** @ingroup ipaddr */ -#define ip_addr_set_zero(ipaddr) do{ \ - ip6_addr_set_zero(ip_2_ip6(ipaddr)); IP_SET_TYPE(ipaddr, 0); }while(0) -/** @ingroup ip5addr */ -#define ip_addr_set_zero_ip4(ipaddr) do{ \ - ip6_addr_set_zero(ip_2_ip6(ipaddr)); IP_SET_TYPE(ipaddr, IPADDR_TYPE_V4); }while(0) -/** @ingroup ip6addr */ -#define ip_addr_set_zero_ip6(ipaddr) do{ \ - ip6_addr_set_zero(ip_2_ip6(ipaddr)); IP_SET_TYPE(ipaddr, IPADDR_TYPE_V6); }while(0) -/** @ingroup ipaddr */ -#define ip_addr_set_any(is_ipv6, ipaddr) do{if(is_ipv6){ \ - ip6_addr_set_any(ip_2_ip6(ipaddr)); IP_SET_TYPE(ipaddr, IPADDR_TYPE_V6); }else{ \ - ip4_addr_set_any(ip_2_ip4(ipaddr)); IP_SET_TYPE(ipaddr, IPADDR_TYPE_V4); ip_clear_no4(ipaddr); }}while(0) -/** @ingroup ipaddr */ -#define ip_addr_set_any_val(is_ipv6, ipaddr) do{if(is_ipv6){ \ - ip6_addr_set_any(ip_2_ip6(&(ipaddr))); IP_SET_TYPE_VAL(ipaddr, IPADDR_TYPE_V6); }else{ \ - ip4_addr_set_any(ip_2_ip4(&(ipaddr))); IP_SET_TYPE_VAL(ipaddr, IPADDR_TYPE_V4); ip_clear_no4(&ipaddr); }}while(0) -/** @ingroup ipaddr */ -#define ip_addr_set_loopback(is_ipv6, ipaddr) do{if(is_ipv6){ \ - ip6_addr_set_loopback(ip_2_ip6(ipaddr)); IP_SET_TYPE(ipaddr, IPADDR_TYPE_V6); }else{ \ - ip4_addr_set_loopback(ip_2_ip4(ipaddr)); IP_SET_TYPE(ipaddr, IPADDR_TYPE_V4); ip_clear_no4(ipaddr); }}while(0) -/** @ingroup ipaddr */ -#define ip_addr_set_loopback_val(is_ipv6, ipaddr) do{if(is_ipv6){ \ - ip6_addr_set_loopback(ip_2_ip6(&(ipaddr))); IP_SET_TYPE_VAL(ipaddr, IPADDR_TYPE_V6); }else{ \ - ip4_addr_set_loopback(ip_2_ip4(&(ipaddr))); IP_SET_TYPE_VAL(ipaddr, IPADDR_TYPE_V4); ip_clear_no4(&ipaddr); }}while(0) -/** @ingroup ipaddr */ -#define ip_addr_set_hton(dest, src) do{if(IP_IS_V6(src)){ \ - ip6_addr_set_hton(ip_2_ip6(dest), ip_2_ip6(src)); IP_SET_TYPE(dest, IPADDR_TYPE_V6); }else{ \ - ip4_addr_set_hton(ip_2_ip4(dest), ip_2_ip4(src)); IP_SET_TYPE(dest, IPADDR_TYPE_V4); ip_clear_no4(ipaddr); }}while(0) -/** @ingroup ipaddr */ -#define ip_addr_get_network(target, host, netmask) do{if(IP_IS_V6(host)){ \ - ip4_addr_set_zero(ip_2_ip4(target)); IP_SET_TYPE(target, IPADDR_TYPE_V6); } else { \ - ip4_addr_get_network(ip_2_ip4(target), ip_2_ip4(host), ip_2_ip4(netmask)); IP_SET_TYPE(target, IPADDR_TYPE_V4); }}while(0) -/** @ingroup ipaddr */ -#define ip_addr_netcmp(addr1, addr2, mask) ((IP_IS_V6(addr1) && IP_IS_V6(addr2)) ? \ - 0 : \ - ip4_addr_netcmp(ip_2_ip4(addr1), ip_2_ip4(addr2), mask)) -/** @ingroup ipaddr */ -#define ip_addr_cmp(addr1, addr2) ((IP_GET_TYPE(addr1) != IP_GET_TYPE(addr2)) ? 0 : (IP_IS_V6_VAL(*(addr1)) ? \ - ip6_addr_cmp(ip_2_ip6(addr1), ip_2_ip6(addr2)) : \ - ip4_addr_cmp(ip_2_ip4(addr1), ip_2_ip4(addr2)))) -/** @ingroup ipaddr */ -#define ip_addr_cmp_zoneless(addr1, addr2) ((IP_GET_TYPE(addr1) != IP_GET_TYPE(addr2)) ? 0 : (IP_IS_V6_VAL(*(addr1)) ? \ - ip6_addr_cmp_zoneless(ip_2_ip6(addr1), ip_2_ip6(addr2)) : \ - ip4_addr_cmp(ip_2_ip4(addr1), ip_2_ip4(addr2)))) -/** @ingroup ipaddr */ -#define ip_addr_isany(ipaddr) (((ipaddr) == NULL) ? 1 : ((IP_IS_V6(ipaddr)) ? \ - ip6_addr_isany(ip_2_ip6(ipaddr)) : \ - ip4_addr_isany(ip_2_ip4(ipaddr)))) -/** @ingroup ipaddr */ -#define ip_addr_isany_val(ipaddr) ((IP_IS_V6_VAL(ipaddr)) ? \ - ip6_addr_isany_val(*ip_2_ip6(&(ipaddr))) : \ - ip4_addr_isany_val(*ip_2_ip4(&(ipaddr)))) -/** @ingroup ipaddr */ -#define ip_addr_isbroadcast(ipaddr, netif) ((IP_IS_V6(ipaddr)) ? \ - 0 : \ - ip4_addr_isbroadcast(ip_2_ip4(ipaddr), netif)) -/** @ingroup ipaddr */ -#define ip_addr_ismulticast(ipaddr) ((IP_IS_V6(ipaddr)) ? \ - ip6_addr_ismulticast(ip_2_ip6(ipaddr)) : \ - ip4_addr_ismulticast(ip_2_ip4(ipaddr))) -/** @ingroup ipaddr */ -#define ip_addr_isloopback(ipaddr) ((IP_IS_V6(ipaddr)) ? \ - ip6_addr_isloopback(ip_2_ip6(ipaddr)) : \ - ip4_addr_isloopback(ip_2_ip4(ipaddr))) -/** @ingroup ipaddr */ -#define ip_addr_islinklocal(ipaddr) ((IP_IS_V6(ipaddr)) ? \ - ip6_addr_islinklocal(ip_2_ip6(ipaddr)) : \ - ip4_addr_islinklocal(ip_2_ip4(ipaddr))) -#define ip_addr_debug_print(debug, ipaddr) do { if(IP_IS_V6(ipaddr)) { \ - ip6_addr_debug_print(debug, ip_2_ip6(ipaddr)); } else { \ - ip4_addr_debug_print(debug, ip_2_ip4(ipaddr)); }}while(0) -#define ip_addr_debug_print_val(debug, ipaddr) do { if(IP_IS_V6_VAL(ipaddr)) { \ - ip6_addr_debug_print_val(debug, *ip_2_ip6(&(ipaddr))); } else { \ - ip4_addr_debug_print_val(debug, *ip_2_ip4(&(ipaddr))); }}while(0) -char *ipaddr_ntoa(const ip_addr_t *addr); -char *ipaddr_ntoa_r(const ip_addr_t *addr, char *buf, int buflen); -int ipaddr_aton(const char *cp, ip_addr_t *addr); - -/** @ingroup ipaddr */ -#define IPADDR_STRLEN_MAX IP6ADDR_STRLEN_MAX - -/** @ingroup ipaddr */ -#define ip4_2_ipv4_mapped_ipv6(ip6addr, ip4addr) do { \ - (ip6addr)->addr[3] = (ip4addr)->addr; \ - (ip6addr)->addr[2] = PP_HTONL(0x0000FFFFUL); \ - (ip6addr)->addr[1] = 0; \ - (ip6addr)->addr[0] = 0; \ - ip6_addr_clear_zone(ip6addr); } while(0); - -/** @ingroup ipaddr */ -#define unmap_ipv4_mapped_ipv6(ip4addr, ip6addr) \ - (ip4addr)->addr = (ip6addr)->addr[3]; - -#define IP46_ADDR_ANY(type) (((type) == IPADDR_TYPE_V6)? IP6_ADDR_ANY : IP4_ADDR_ANY) - -#else /* LWIP_IPV4 && LWIP_IPV6 */ - -#define IP_ADDR_PCB_VERSION_MATCH(addr, pcb) 1 -#define IP_ADDR_PCB_VERSION_MATCH_EXACT(pcb, ipaddr) 1 - -#define ip_addr_set_any_val(is_ipv6, ipaddr) ip_addr_set_any(is_ipv6, &(ipaddr)) -#define ip_addr_set_loopback_val(is_ipv6, ipaddr) ip_addr_set_loopback(is_ipv6, &(ipaddr)) - -#if LWIP_IPV4 - -typedef ip4_addr_t ip_addr_t; -#define IPADDR4_INIT(u32val) { u32val } -#define IPADDR4_INIT_BYTES(a,b,c,d) IPADDR4_INIT(PP_HTONL(LWIP_MAKEU32(a,b,c,d))) -#define IP_IS_V4_VAL(ipaddr) 1 -#define IP_IS_V6_VAL(ipaddr) 0 -#define IP_IS_V4(ipaddr) 1 -#define IP_IS_V6(ipaddr) 0 -#define IP_IS_ANY_TYPE_VAL(ipaddr) 0 -#define IP_SET_TYPE_VAL(ipaddr, iptype) -#define IP_SET_TYPE(ipaddr, iptype) -#define IP_GET_TYPE(ipaddr) IPADDR_TYPE_V4 -#define IP_ADDR_RAW_SIZE(ipaddr) sizeof(ip4_addr_t) -#define ip_2_ip4(ipaddr) (ipaddr) -#define IP_ADDR4(ipaddr,a,b,c,d) IP4_ADDR(ipaddr,a,b,c,d) - -#define ip_addr_copy(dest, src) ip4_addr_copy(dest, src) -#define ip_addr_copy_from_ip4(dest, src) ip4_addr_copy(dest, src) -#define ip_addr_set_ip4_u32(ipaddr, val) ip4_addr_set_u32(ip_2_ip4(ipaddr), val) -#define ip_addr_set_ip4_u32_val(ipaddr, val) ip_addr_set_ip4_u32(&(ipaddr), val) -#define ip_addr_get_ip4_u32(ipaddr) ip4_addr_get_u32(ip_2_ip4(ipaddr)) -#define ip_addr_set(dest, src) ip4_addr_set(dest, src) -#define ip_addr_set_ipaddr(dest, src) ip4_addr_set(dest, src) -#define ip_addr_set_zero(ipaddr) ip4_addr_set_zero(ipaddr) -#define ip_addr_set_zero_ip4(ipaddr) ip4_addr_set_zero(ipaddr) -#define ip_addr_set_any(is_ipv6, ipaddr) ip4_addr_set_any(ipaddr) -#define ip_addr_set_loopback(is_ipv6, ipaddr) ip4_addr_set_loopback(ipaddr) -#define ip_addr_set_hton(dest, src) ip4_addr_set_hton(dest, src) -#define ip_addr_get_network(target, host, mask) ip4_addr_get_network(target, host, mask) -#define ip_addr_netcmp(addr1, addr2, mask) ip4_addr_netcmp(addr1, addr2, mask) -#define ip_addr_cmp(addr1, addr2) ip4_addr_cmp(addr1, addr2) -#define ip_addr_isany(ipaddr) ip4_addr_isany(ipaddr) -#define ip_addr_isany_val(ipaddr) ip4_addr_isany_val(ipaddr) -#define ip_addr_isloopback(ipaddr) ip4_addr_isloopback(ipaddr) -#define ip_addr_islinklocal(ipaddr) ip4_addr_islinklocal(ipaddr) -#define ip_addr_isbroadcast(addr, netif) ip4_addr_isbroadcast(addr, netif) -#define ip_addr_ismulticast(ipaddr) ip4_addr_ismulticast(ipaddr) -#define ip_addr_debug_print(debug, ipaddr) ip4_addr_debug_print(debug, ipaddr) -#define ip_addr_debug_print_val(debug, ipaddr) ip4_addr_debug_print_val(debug, ipaddr) -#define ipaddr_ntoa(ipaddr) ip4addr_ntoa(ipaddr) -#define ipaddr_ntoa_r(ipaddr, buf, buflen) ip4addr_ntoa_r(ipaddr, buf, buflen) -#define ipaddr_aton(cp, addr) ip4addr_aton(cp, addr) - -#define IPADDR_STRLEN_MAX IP4ADDR_STRLEN_MAX - -#define IP46_ADDR_ANY(type) (IP4_ADDR_ANY) - -#else /* LWIP_IPV4 */ - -typedef ip6_addr_t ip_addr_t; -#define IPADDR6_INIT(a, b, c, d) { { a, b, c, d } IPADDR6_ZONE_INIT } -#define IPADDR6_INIT_HOST(a, b, c, d) { { PP_HTONL(a), PP_HTONL(b), PP_HTONL(c), PP_HTONL(d) } IPADDR6_ZONE_INIT } -#define IP_IS_V4_VAL(ipaddr) 0 -#define IP_IS_V6_VAL(ipaddr) 1 -#define IP_IS_V4(ipaddr) 0 -#define IP_IS_V6(ipaddr) 1 -#define IP_IS_ANY_TYPE_VAL(ipaddr) 0 -#define IP_SET_TYPE_VAL(ipaddr, iptype) -#define IP_SET_TYPE(ipaddr, iptype) -#define IP_GET_TYPE(ipaddr) IPADDR_TYPE_V6 -#define IP_ADDR_RAW_SIZE(ipaddr) sizeof(ip6_addr_t) -#define ip_2_ip6(ipaddr) (ipaddr) -#define IP_ADDR6(ipaddr,i0,i1,i2,i3) IP6_ADDR(ipaddr,i0,i1,i2,i3) -#define IP_ADDR6_HOST(ipaddr,i0,i1,i2,i3) IP_ADDR6(ipaddr,PP_HTONL(i0),PP_HTONL(i1),PP_HTONL(i2),PP_HTONL(i3)) - -#define ip_addr_copy(dest, src) ip6_addr_copy(dest, src) -#define ip_addr_copy_from_ip6(dest, src) ip6_addr_copy(dest, src) -#define ip_addr_copy_from_ip6_packed(dest, src) ip6_addr_copy_from_packed(dest, src) -#define ip_addr_set(dest, src) ip6_addr_set(dest, src) -#define ip_addr_set_ipaddr(dest, src) ip6_addr_set(dest, src) -#define ip_addr_set_zero(ipaddr) ip6_addr_set_zero(ipaddr) -#define ip_addr_set_zero_ip6(ipaddr) ip6_addr_set_zero(ipaddr) -#define ip_addr_set_any(is_ipv6, ipaddr) ip6_addr_set_any(ipaddr) -#define ip_addr_set_loopback(is_ipv6, ipaddr) ip6_addr_set_loopback(ipaddr) -#define ip_addr_set_hton(dest, src) ip6_addr_set_hton(dest, src) -#define ip_addr_get_network(target, host, mask) ip6_addr_set_zero(target) -#define ip_addr_netcmp(addr1, addr2, mask) 0 -#define ip_addr_cmp(addr1, addr2) ip6_addr_cmp(addr1, addr2) -#define ip_addr_cmp_zoneless(addr1, addr2) ip6_addr_cmp_zoneless(addr1, addr2) -#define ip_addr_isany(ipaddr) ip6_addr_isany(ipaddr) -#define ip_addr_isany_val(ipaddr) ip6_addr_isany_val(ipaddr) -#define ip_addr_isloopback(ipaddr) ip6_addr_isloopback(ipaddr) -#define ip_addr_islinklocal(ipaddr) ip6_addr_islinklocal(ipaddr) -#define ip_addr_isbroadcast(addr, netif) 0 -#define ip_addr_ismulticast(ipaddr) ip6_addr_ismulticast(ipaddr) -#define ip_addr_debug_print(debug, ipaddr) ip6_addr_debug_print(debug, ipaddr) -#define ip_addr_debug_print_val(debug, ipaddr) ip6_addr_debug_print_val(debug, ipaddr) -#define ipaddr_ntoa(ipaddr) ip6addr_ntoa(ipaddr) -#define ipaddr_ntoa_r(ipaddr, buf, buflen) ip6addr_ntoa_r(ipaddr, buf, buflen) -#define ipaddr_aton(cp, addr) ip6addr_aton(cp, addr) - -#define IPADDR_STRLEN_MAX IP6ADDR_STRLEN_MAX - -#define IP46_ADDR_ANY(type) (IP6_ADDR_ANY) - -#endif /* LWIP_IPV4 */ -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - -#if LWIP_IPV4 - -extern const ip_addr_t ip_addr_any; -extern const ip_addr_t ip_addr_broadcast; - -/** - * @ingroup ip4addr - * Can be used as a fixed/const ip_addr_t - * for the IP wildcard. - * Defined to @ref IP4_ADDR_ANY when IPv4 is enabled. - * Defined to @ref IP6_ADDR_ANY in IPv6 only systems. - * Use this if you can handle IPv4 _AND_ IPv6 addresses. - * Use @ref IP4_ADDR_ANY or @ref IP6_ADDR_ANY when the IP - * type matters. - */ -#define IP_ADDR_ANY IP4_ADDR_ANY -/** - * @ingroup ip4addr - * Can be used as a fixed/const ip_addr_t - * for the IPv4 wildcard and the broadcast address - */ -#define IP4_ADDR_ANY (&ip_addr_any) -/** - * @ingroup ip4addr - * Can be used as a fixed/const ip4_addr_t - * for the wildcard and the broadcast address - */ -#define IP4_ADDR_ANY4 (ip_2_ip4(&ip_addr_any)) - -/** @ingroup ip4addr */ -#define IP_ADDR_BROADCAST (&ip_addr_broadcast) -/** @ingroup ip4addr */ -#define IP4_ADDR_BROADCAST (ip_2_ip4(&ip_addr_broadcast)) - -#endif /* LWIP_IPV4*/ - -#if LWIP_IPV6 - -extern const ip_addr_t ip6_addr_any; - -/** - * @ingroup ip6addr - * IP6_ADDR_ANY can be used as a fixed ip_addr_t - * for the IPv6 wildcard address - */ -#define IP6_ADDR_ANY (&ip6_addr_any) -/** - * @ingroup ip6addr - * IP6_ADDR_ANY6 can be used as a fixed ip6_addr_t - * for the IPv6 wildcard address - */ -#define IP6_ADDR_ANY6 (ip_2_ip6(&ip6_addr_any)) - -#if !LWIP_IPV4 -/** IPv6-only configurations */ -#define IP_ADDR_ANY IP6_ADDR_ANY -#endif /* !LWIP_IPV4 */ - -#endif - -#if LWIP_IPV4 && LWIP_IPV6 -/** @ingroup ipaddr */ -#define IP_ANY_TYPE (&ip_addr_any_type) -#else -#define IP_ANY_TYPE IP_ADDR_ANY -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_IP_ADDR_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/mem.h b/Middlewares/Third_Party/LwIP/src/include/lwip/mem.h deleted file mode 100644 index ff208d2..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/mem.h +++ /dev/null @@ -1,82 +0,0 @@ -/** - * @file - * Heap API - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_MEM_H -#define LWIP_HDR_MEM_H - -#include "lwip/opt.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#if MEM_LIBC_MALLOC - -#include "lwip/arch.h" - -typedef size_t mem_size_t; -#define MEM_SIZE_F SZT_F - -#elif MEM_USE_POOLS - -typedef u16_t mem_size_t; -#define MEM_SIZE_F U16_F - -#else - -/* MEM_SIZE would have to be aligned, but using 64000 here instead of - * 65535 leaves some room for alignment... - */ -#if MEM_SIZE > 64000L -typedef u32_t mem_size_t; -#define MEM_SIZE_F U32_F -#else -typedef u16_t mem_size_t; -#define MEM_SIZE_F U16_F -#endif /* MEM_SIZE > 64000 */ -#endif - -void mem_init(void); -void *mem_trim(void *mem, mem_size_t size); -void *mem_malloc(mem_size_t size); -void *mem_calloc(mem_size_t count, mem_size_t size); -void mem_free(void *mem); - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_MEM_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/memp.h b/Middlewares/Third_Party/LwIP/src/include/lwip/memp.h deleted file mode 100644 index 1630b26..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/memp.h +++ /dev/null @@ -1,155 +0,0 @@ -/** - * @file - * Memory pool API - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -#ifndef LWIP_HDR_MEMP_H -#define LWIP_HDR_MEMP_H - -#include "lwip/opt.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* run once with empty definition to handle all custom includes in lwippools.h */ -#define LWIP_MEMPOOL(name,num,size,desc) -#include "lwip/priv/memp_std.h" - -/** Create the list of all memory pools managed by memp. MEMP_MAX represents a NULL pool at the end */ -typedef enum { -#define LWIP_MEMPOOL(name,num,size,desc) MEMP_##name, -#include "lwip/priv/memp_std.h" - MEMP_MAX -} memp_t; - -#include "lwip/priv/memp_priv.h" -#include "lwip/stats.h" - -extern const struct memp_desc* const memp_pools[MEMP_MAX]; - -/** - * @ingroup mempool - * Declare prototype for private memory pool if it is used in multiple files - */ -#define LWIP_MEMPOOL_PROTOTYPE(name) extern const struct memp_desc memp_ ## name - -#if MEMP_MEM_MALLOC - -#define LWIP_MEMPOOL_DECLARE(name,num,size,desc) \ - LWIP_MEMPOOL_DECLARE_STATS_INSTANCE(memp_stats_ ## name) \ - const struct memp_desc memp_ ## name = { \ - DECLARE_LWIP_MEMPOOL_DESC(desc) \ - LWIP_MEMPOOL_DECLARE_STATS_REFERENCE(memp_stats_ ## name) \ - LWIP_MEM_ALIGN_SIZE(size) \ - }; - -#else /* MEMP_MEM_MALLOC */ - -/** - * @ingroup mempool - * Declare a private memory pool - * Private mempools example: - * .h: only when pool is used in multiple .c files: LWIP_MEMPOOL_PROTOTYPE(my_private_pool); - * .c: - * - in global variables section: LWIP_MEMPOOL_DECLARE(my_private_pool, 10, sizeof(foo), "Some description") - * - call ONCE before using pool (e.g. in some init() function): LWIP_MEMPOOL_INIT(my_private_pool); - * - allocate: void* my_new_mem = LWIP_MEMPOOL_ALLOC(my_private_pool); - * - free: LWIP_MEMPOOL_FREE(my_private_pool, my_new_mem); - * - * To relocate a pool, declare it as extern in cc.h. Example for GCC: - * extern u8_t \_\_attribute\_\_((section(".onchip_mem"))) memp_memory_my_private_pool_base[]; - */ -#define LWIP_MEMPOOL_DECLARE(name,num,size,desc) \ - LWIP_DECLARE_MEMORY_ALIGNED(memp_memory_ ## name ## _base, ((num) * (MEMP_SIZE + MEMP_ALIGN_SIZE(size)))); \ - \ - LWIP_MEMPOOL_DECLARE_STATS_INSTANCE(memp_stats_ ## name) \ - \ - static struct memp *memp_tab_ ## name; \ - \ - const struct memp_desc memp_ ## name = { \ - DECLARE_LWIP_MEMPOOL_DESC(desc) \ - LWIP_MEMPOOL_DECLARE_STATS_REFERENCE(memp_stats_ ## name) \ - LWIP_MEM_ALIGN_SIZE(size), \ - (num), \ - memp_memory_ ## name ## _base, \ - &memp_tab_ ## name \ - }; - -#endif /* MEMP_MEM_MALLOC */ - -/** - * @ingroup mempool - * Initialize a private memory pool - */ -#define LWIP_MEMPOOL_INIT(name) memp_init_pool(&memp_ ## name) -/** - * @ingroup mempool - * Allocate from a private memory pool - */ -#define LWIP_MEMPOOL_ALLOC(name) memp_malloc_pool(&memp_ ## name) -/** - * @ingroup mempool - * Free element from a private memory pool - */ -#define LWIP_MEMPOOL_FREE(name, x) memp_free_pool(&memp_ ## name, (x)) - -#if MEM_USE_POOLS -/** This structure is used to save the pool one element came from. - * This has to be defined here as it is required for pool size calculation. */ -struct memp_malloc_helper -{ - memp_t poolnr; -#if MEMP_OVERFLOW_CHECK || (LWIP_STATS && MEM_STATS) - u16_t size; -#endif /* MEMP_OVERFLOW_CHECK || (LWIP_STATS && MEM_STATS) */ -}; -#endif /* MEM_USE_POOLS */ - -void memp_init(void); - -#if MEMP_OVERFLOW_CHECK -void *memp_malloc_fn(memp_t type, const char* file, const int line); -#define memp_malloc(t) memp_malloc_fn((t), __FILE__, __LINE__) -#else -void *memp_malloc(memp_t type); -#endif -void memp_free(memp_t type, void *mem); - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_MEMP_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/mld6.h b/Middlewares/Third_Party/LwIP/src/include/lwip/mld6.h deleted file mode 100644 index 7fa0797..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/mld6.h +++ /dev/null @@ -1,99 +0,0 @@ -/** - * @file - * - * Multicast listener discovery for IPv6. Aims to be compliant with RFC 2710. - * No support for MLDv2. - */ - -/* - * Copyright (c) 2010 Inico Technologies Ltd. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Ivan Delamer - * - * - * Please coordinate changes and requests with Ivan Delamer - * - */ - -#ifndef LWIP_HDR_MLD6_H -#define LWIP_HDR_MLD6_H - -#include "lwip/opt.h" - -#if LWIP_IPV6_MLD && LWIP_IPV6 /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/pbuf.h" -#include "lwip/netif.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** MLD group */ -struct mld_group { - /** next link */ - struct mld_group *next; - /** multicast address */ - ip6_addr_t group_address; - /** signifies we were the last person to report */ - u8_t last_reporter_flag; - /** current state of the group */ - u8_t group_state; - /** timer for reporting */ - u16_t timer; - /** counter of simultaneous uses */ - u8_t use; -}; - -#define MLD6_TMR_INTERVAL 100 /* Milliseconds */ - -err_t mld6_stop(struct netif *netif); -void mld6_report_groups(struct netif *netif); -void mld6_tmr(void); -struct mld_group *mld6_lookfor_group(struct netif *ifp, const ip6_addr_t *addr); -void mld6_input(struct pbuf *p, struct netif *inp); -err_t mld6_joingroup(const ip6_addr_t *srcaddr, const ip6_addr_t *groupaddr); -err_t mld6_joingroup_netif(struct netif *netif, const ip6_addr_t *groupaddr); -err_t mld6_leavegroup(const ip6_addr_t *srcaddr, const ip6_addr_t *groupaddr); -err_t mld6_leavegroup_netif(struct netif *netif, const ip6_addr_t *groupaddr); - -/** @ingroup mld6 - * Get list head of MLD6 groups for netif. - * Note: The allnodes group IP is NOT in the list, since it must always - * be received for correct IPv6 operation. - * @see @ref netif_set_mld_mac_filter() - */ -#define netif_mld6_data(netif) ((struct mld_group *)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_MLD6)) - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_IPV6_MLD && LWIP_IPV6 */ - -#endif /* LWIP_HDR_MLD6_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/nd6.h b/Middlewares/Third_Party/LwIP/src/include/lwip/nd6.h deleted file mode 100644 index c30e624..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/nd6.h +++ /dev/null @@ -1,90 +0,0 @@ -/** - * @file - * - * Neighbor discovery and stateless address autoconfiguration for IPv6. - * Aims to be compliant with RFC 4861 (Neighbor discovery) and RFC 4862 - * (Address autoconfiguration). - */ - -/* - * Copyright (c) 2010 Inico Technologies Ltd. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Ivan Delamer - * - * - * Please coordinate changes and requests with Ivan Delamer - * - */ - -#ifndef LWIP_HDR_ND6_H -#define LWIP_HDR_ND6_H - -#include "lwip/opt.h" - -#if LWIP_IPV6 /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/ip6_addr.h" -#include "lwip/err.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** 1 second period */ -#define ND6_TMR_INTERVAL 1000 - -/** Router solicitations are sent in 4 second intervals (see RFC 4861, ch. 6.3.7) */ -#ifndef ND6_RTR_SOLICITATION_INTERVAL -#define ND6_RTR_SOLICITATION_INTERVAL 4000 -#endif - -struct pbuf; -struct netif; - -void nd6_tmr(void); -void nd6_input(struct pbuf *p, struct netif *inp); -void nd6_clear_destination_cache(void); -struct netif *nd6_find_route(const ip6_addr_t *ip6addr); -err_t nd6_get_next_hop_addr_or_queue(struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr, const u8_t **hwaddrp); -u16_t nd6_get_destination_mtu(const ip6_addr_t *ip6addr, struct netif *netif); -#if LWIP_ND6_TCP_REACHABILITY_HINTS -void nd6_reachability_hint(const ip6_addr_t *ip6addr); -#endif /* LWIP_ND6_TCP_REACHABILITY_HINTS */ -void nd6_cleanup_netif(struct netif *netif); -#if LWIP_IPV6_MLD -void nd6_adjust_mld_membership(struct netif *netif, s8_t addr_idx, u8_t new_state); -#endif /* LWIP_IPV6_MLD */ -void nd6_restart_netif(struct netif *netif); - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_IPV6 */ - -#endif /* LWIP_HDR_ND6_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/netbuf.h b/Middlewares/Third_Party/LwIP/src/include/lwip/netbuf.h deleted file mode 100644 index 42a911b..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/netbuf.h +++ /dev/null @@ -1,116 +0,0 @@ -/** - * @file - * netbuf API (for netconn API) - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_NETBUF_H -#define LWIP_HDR_NETBUF_H - -#include "lwip/opt.h" - -#if LWIP_NETCONN || LWIP_SOCKET /* don't build if not configured for use in lwipopts.h */ -/* Note: Netconn API is always available when sockets are enabled - - * sockets are implemented on top of them */ - -#include "lwip/pbuf.h" -#include "lwip/ip_addr.h" -#include "lwip/ip6_addr.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** This netbuf has dest-addr/port set */ -#define NETBUF_FLAG_DESTADDR 0x01 -/** This netbuf includes a checksum */ -#define NETBUF_FLAG_CHKSUM 0x02 - -/** "Network buffer" - contains data and addressing info */ -struct netbuf { - struct pbuf *p, *ptr; - ip_addr_t addr; - u16_t port; -#if LWIP_NETBUF_RECVINFO || LWIP_CHECKSUM_ON_COPY - u8_t flags; - u16_t toport_chksum; -#if LWIP_NETBUF_RECVINFO - ip_addr_t toaddr; -#endif /* LWIP_NETBUF_RECVINFO */ -#endif /* LWIP_NETBUF_RECVINFO || LWIP_CHECKSUM_ON_COPY */ -}; - -/* Network buffer functions: */ -struct netbuf * netbuf_new (void); -void netbuf_delete (struct netbuf *buf); -void * netbuf_alloc (struct netbuf *buf, u16_t size); -void netbuf_free (struct netbuf *buf); -err_t netbuf_ref (struct netbuf *buf, - const void *dataptr, u16_t size); -void netbuf_chain (struct netbuf *head, struct netbuf *tail); - -err_t netbuf_data (struct netbuf *buf, - void **dataptr, u16_t *len); -s8_t netbuf_next (struct netbuf *buf); -void netbuf_first (struct netbuf *buf); - - -#define netbuf_copy_partial(buf, dataptr, len, offset) \ - pbuf_copy_partial((buf)->p, (dataptr), (len), (offset)) -#define netbuf_copy(buf,dataptr,len) netbuf_copy_partial(buf, dataptr, len, 0) -#define netbuf_take(buf, dataptr, len) pbuf_take((buf)->p, dataptr, len) -#define netbuf_len(buf) ((buf)->p->tot_len) -#define netbuf_fromaddr(buf) (&((buf)->addr)) -#define netbuf_set_fromaddr(buf, fromaddr) ip_addr_set(&((buf)->addr), fromaddr) -#define netbuf_fromport(buf) ((buf)->port) -#if LWIP_NETBUF_RECVINFO -#define netbuf_destaddr(buf) (&((buf)->toaddr)) -#define netbuf_set_destaddr(buf, destaddr) ip_addr_set(&((buf)->toaddr), destaddr) -#if LWIP_CHECKSUM_ON_COPY -#define netbuf_destport(buf) (((buf)->flags & NETBUF_FLAG_DESTADDR) ? (buf)->toport_chksum : 0) -#else /* LWIP_CHECKSUM_ON_COPY */ -#define netbuf_destport(buf) ((buf)->toport_chksum) -#endif /* LWIP_CHECKSUM_ON_COPY */ -#endif /* LWIP_NETBUF_RECVINFO */ -#if LWIP_CHECKSUM_ON_COPY -#define netbuf_set_chksum(buf, chksum) do { (buf)->flags = NETBUF_FLAG_CHKSUM; \ - (buf)->toport_chksum = chksum; } while(0) -#endif /* LWIP_CHECKSUM_ON_COPY */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_NETCONN || LWIP_SOCKET */ - -#endif /* LWIP_HDR_NETBUF_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/netdb.h b/Middlewares/Third_Party/LwIP/src/include/lwip/netdb.h deleted file mode 100644 index d3d15df..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/netdb.h +++ /dev/null @@ -1,150 +0,0 @@ -/** - * @file - * NETDB API (sockets) - */ - -/* - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Simon Goldschmidt - * - */ -#ifndef LWIP_HDR_NETDB_H -#define LWIP_HDR_NETDB_H - -#include "lwip/opt.h" - -#if LWIP_DNS && LWIP_SOCKET - -#include "lwip/arch.h" -#include "lwip/inet.h" -#include "lwip/sockets.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* some rarely used options */ -#ifndef LWIP_DNS_API_DECLARE_H_ERRNO -#define LWIP_DNS_API_DECLARE_H_ERRNO 1 -#endif - -#ifndef LWIP_DNS_API_DEFINE_ERRORS -#define LWIP_DNS_API_DEFINE_ERRORS 1 -#endif - -#ifndef LWIP_DNS_API_DEFINE_FLAGS -#define LWIP_DNS_API_DEFINE_FLAGS 1 -#endif - -#ifndef LWIP_DNS_API_DECLARE_STRUCTS -#define LWIP_DNS_API_DECLARE_STRUCTS 1 -#endif - -#if LWIP_DNS_API_DEFINE_ERRORS -/** Errors used by the DNS API functions, h_errno can be one of them */ -#define EAI_NONAME 200 -#define EAI_SERVICE 201 -#define EAI_FAIL 202 -#define EAI_MEMORY 203 -#define EAI_FAMILY 204 - -#define HOST_NOT_FOUND 210 -#define NO_DATA 211 -#define NO_RECOVERY 212 -#define TRY_AGAIN 213 -#endif /* LWIP_DNS_API_DEFINE_ERRORS */ - -#if LWIP_DNS_API_DEFINE_FLAGS -/* input flags for struct addrinfo */ -#define AI_PASSIVE 0x01 -#define AI_CANONNAME 0x02 -#define AI_NUMERICHOST 0x04 -#define AI_NUMERICSERV 0x08 -#define AI_V4MAPPED 0x10 -#define AI_ALL 0x20 -#define AI_ADDRCONFIG 0x40 -#endif /* LWIP_DNS_API_DEFINE_FLAGS */ - -#if LWIP_DNS_API_DECLARE_STRUCTS -struct hostent { - char *h_name; /* Official name of the host. */ - char **h_aliases; /* A pointer to an array of pointers to alternative host names, - terminated by a null pointer. */ - int h_addrtype; /* Address type. */ - int h_length; /* The length, in bytes, of the address. */ - char **h_addr_list; /* A pointer to an array of pointers to network addresses (in - network byte order) for the host, terminated by a null pointer. */ -#define h_addr h_addr_list[0] /* for backward compatibility */ -}; - -struct addrinfo { - int ai_flags; /* Input flags. */ - int ai_family; /* Address family of socket. */ - int ai_socktype; /* Socket type. */ - int ai_protocol; /* Protocol of socket. */ - socklen_t ai_addrlen; /* Length of socket address. */ - struct sockaddr *ai_addr; /* Socket address of socket. */ - char *ai_canonname; /* Canonical name of service location. */ - struct addrinfo *ai_next; /* Pointer to next in list. */ -}; -#endif /* LWIP_DNS_API_DECLARE_STRUCTS */ - -#define NETDB_ELEM_SIZE (sizeof(struct addrinfo) + sizeof(struct sockaddr_storage) + DNS_MAX_NAME_LENGTH + 1) - -#if LWIP_DNS_API_DECLARE_H_ERRNO -/* application accessible error code set by the DNS API functions */ -extern int h_errno; -#endif /* LWIP_DNS_API_DECLARE_H_ERRNO*/ - -struct hostent *lwip_gethostbyname(const char *name); -int lwip_gethostbyname_r(const char *name, struct hostent *ret, char *buf, - size_t buflen, struct hostent **result, int *h_errnop); -void lwip_freeaddrinfo(struct addrinfo *ai); -int lwip_getaddrinfo(const char *nodename, - const char *servname, - const struct addrinfo *hints, - struct addrinfo **res); - -#if LWIP_COMPAT_SOCKETS -/** @ingroup netdbapi */ -#define gethostbyname(name) lwip_gethostbyname(name) -/** @ingroup netdbapi */ -#define gethostbyname_r(name, ret, buf, buflen, result, h_errnop) \ - lwip_gethostbyname_r(name, ret, buf, buflen, result, h_errnop) -/** @ingroup netdbapi */ -#define freeaddrinfo(addrinfo) lwip_freeaddrinfo(addrinfo) -/** @ingroup netdbapi */ -#define getaddrinfo(nodname, servname, hints, res) \ - lwip_getaddrinfo(nodname, servname, hints, res) -#endif /* LWIP_COMPAT_SOCKETS */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_DNS && LWIP_SOCKET */ - -#endif /* LWIP_HDR_NETDB_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/netif.h b/Middlewares/Third_Party/LwIP/src/include/lwip/netif.h deleted file mode 100644 index 911196a..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/netif.h +++ /dev/null @@ -1,669 +0,0 @@ -/** - * @file - * netif API (to be used from TCPIP thread) - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_NETIF_H -#define LWIP_HDR_NETIF_H - -#include "lwip/opt.h" - -#define ENABLE_LOOPBACK (LWIP_NETIF_LOOPBACK || LWIP_HAVE_LOOPIF) - -#include "lwip/err.h" - -#include "lwip/ip_addr.h" - -#include "lwip/def.h" -#include "lwip/pbuf.h" -#include "lwip/stats.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* Throughout this file, IP addresses are expected to be in - * the same byte order as in IP_PCB. */ - -/** Must be the maximum of all used hardware address lengths - across all types of interfaces in use. - This does not have to be changed, normally. */ -#ifndef NETIF_MAX_HWADDR_LEN -#define NETIF_MAX_HWADDR_LEN 6U -#endif - -/** The size of a fully constructed netif name which the - * netif can be identified by in APIs. Composed of - * 2 chars, 3 (max) digits, and 1 \0 - */ -#define NETIF_NAMESIZE 6 - -/** - * @defgroup netif_flags Flags - * @ingroup netif - * @{ - */ - -/** Whether the network interface is 'up'. This is - * a software flag used to control whether this network - * interface is enabled and processes traffic. - * It must be set by the startup code before this netif can be used - * (also for dhcp/autoip). - */ -#define NETIF_FLAG_UP 0x01U -/** If set, the netif has broadcast capability. - * Set by the netif driver in its init function. */ -#define NETIF_FLAG_BROADCAST 0x02U -/** If set, the interface has an active link - * (set by the network interface driver). - * Either set by the netif driver in its init function (if the link - * is up at that time) or at a later point once the link comes up - * (if link detection is supported by the hardware). */ -#define NETIF_FLAG_LINK_UP 0x04U -/** If set, the netif is an ethernet device using ARP. - * Set by the netif driver in its init function. - * Used to check input packet types and use of DHCP. */ -#define NETIF_FLAG_ETHARP 0x08U -/** If set, the netif is an ethernet device. It might not use - * ARP or TCP/IP if it is used for PPPoE only. - */ -#define NETIF_FLAG_ETHERNET 0x10U -/** If set, the netif has IGMP capability. - * Set by the netif driver in its init function. */ -#define NETIF_FLAG_IGMP 0x20U -/** If set, the netif has MLD6 capability. - * Set by the netif driver in its init function. */ -#define NETIF_FLAG_MLD6 0x40U - -/** - * @} - */ - -enum lwip_internal_netif_client_data_index -{ -#if LWIP_IPV4 -#if LWIP_DHCP - LWIP_NETIF_CLIENT_DATA_INDEX_DHCP, -#endif -#if LWIP_AUTOIP - LWIP_NETIF_CLIENT_DATA_INDEX_AUTOIP, -#endif -#if LWIP_IGMP - LWIP_NETIF_CLIENT_DATA_INDEX_IGMP, -#endif -#endif /* LWIP_IPV4 */ -#if LWIP_IPV6 -#if LWIP_IPV6_DHCP6 - LWIP_NETIF_CLIENT_DATA_INDEX_DHCP6, -#endif -#if LWIP_IPV6_MLD - LWIP_NETIF_CLIENT_DATA_INDEX_MLD6, -#endif -#endif /* LWIP_IPV6 */ - LWIP_NETIF_CLIENT_DATA_INDEX_MAX -}; - -#if LWIP_CHECKSUM_CTRL_PER_NETIF -#define NETIF_CHECKSUM_GEN_IP 0x0001 -#define NETIF_CHECKSUM_GEN_UDP 0x0002 -#define NETIF_CHECKSUM_GEN_TCP 0x0004 -#define NETIF_CHECKSUM_GEN_ICMP 0x0008 -#define NETIF_CHECKSUM_GEN_ICMP6 0x0010 -#define NETIF_CHECKSUM_CHECK_IP 0x0100 -#define NETIF_CHECKSUM_CHECK_UDP 0x0200 -#define NETIF_CHECKSUM_CHECK_TCP 0x0400 -#define NETIF_CHECKSUM_CHECK_ICMP 0x0800 -#define NETIF_CHECKSUM_CHECK_ICMP6 0x1000 -#define NETIF_CHECKSUM_ENABLE_ALL 0xFFFF -#define NETIF_CHECKSUM_DISABLE_ALL 0x0000 -#endif /* LWIP_CHECKSUM_CTRL_PER_NETIF */ - -struct netif; - -/** MAC Filter Actions, these are passed to a netif's igmp_mac_filter or - * mld_mac_filter callback function. */ -enum netif_mac_filter_action { - /** Delete a filter entry */ - NETIF_DEL_MAC_FILTER = 0, - /** Add a filter entry */ - NETIF_ADD_MAC_FILTER = 1 -}; - -/** Function prototype for netif init functions. Set up flags and output/linkoutput - * callback functions in this function. - * - * @param netif The netif to initialize - */ -typedef err_t (*netif_init_fn)(struct netif *netif); -/** Function prototype for netif->input functions. This function is saved as 'input' - * callback function in the netif struct. Call it when a packet has been received. - * - * @param p The received packet, copied into a pbuf - * @param inp The netif which received the packet - * @return ERR_OK if the packet was handled - * != ERR_OK is the packet was NOT handled, in this case, the caller has - * to free the pbuf - */ -typedef err_t (*netif_input_fn)(struct pbuf *p, struct netif *inp); - -#if LWIP_IPV4 -/** Function prototype for netif->output functions. Called by lwIP when a packet - * shall be sent. For ethernet netif, set this to 'etharp_output' and set - * 'linkoutput'. - * - * @param netif The netif which shall send a packet - * @param p The packet to send (p->payload points to IP header) - * @param ipaddr The IP address to which the packet shall be sent - */ -typedef err_t (*netif_output_fn)(struct netif *netif, struct pbuf *p, - const ip4_addr_t *ipaddr); -#endif /* LWIP_IPV4*/ - -#if LWIP_IPV6 -/** Function prototype for netif->output_ip6 functions. Called by lwIP when a packet - * shall be sent. For ethernet netif, set this to 'ethip6_output' and set - * 'linkoutput'. - * - * @param netif The netif which shall send a packet - * @param p The packet to send (p->payload points to IP header) - * @param ipaddr The IPv6 address to which the packet shall be sent - */ -typedef err_t (*netif_output_ip6_fn)(struct netif *netif, struct pbuf *p, - const ip6_addr_t *ipaddr); -#endif /* LWIP_IPV6 */ - -/** Function prototype for netif->linkoutput functions. Only used for ethernet - * netifs. This function is called by ARP when a packet shall be sent. - * - * @param netif The netif which shall send a packet - * @param p The packet to send (raw ethernet packet) - */ -typedef err_t (*netif_linkoutput_fn)(struct netif *netif, struct pbuf *p); -/** Function prototype for netif status- or link-callback functions. */ -typedef void (*netif_status_callback_fn)(struct netif *netif); -#if LWIP_IPV4 && LWIP_IGMP -/** Function prototype for netif igmp_mac_filter functions */ -typedef err_t (*netif_igmp_mac_filter_fn)(struct netif *netif, - const ip4_addr_t *group, enum netif_mac_filter_action action); -#endif /* LWIP_IPV4 && LWIP_IGMP */ -#if LWIP_IPV6 && LWIP_IPV6_MLD -/** Function prototype for netif mld_mac_filter functions */ -typedef err_t (*netif_mld_mac_filter_fn)(struct netif *netif, - const ip6_addr_t *group, enum netif_mac_filter_action action); -#endif /* LWIP_IPV6 && LWIP_IPV6_MLD */ - -#if LWIP_DHCP || LWIP_AUTOIP || LWIP_IGMP || LWIP_IPV6_MLD || LWIP_IPV6_DHCP6 || (LWIP_NUM_NETIF_CLIENT_DATA > 0) -#if LWIP_NUM_NETIF_CLIENT_DATA > 0 -u8_t netif_alloc_client_data_id(void); -#endif -/** @ingroup netif_cd - * Set client data. Obtain ID from netif_alloc_client_data_id(). - */ -#define netif_set_client_data(netif, id, data) netif_get_client_data(netif, id) = (data) -/** @ingroup netif_cd - * Get client data. Obtain ID from netif_alloc_client_data_id(). - */ -#define netif_get_client_data(netif, id) (netif)->client_data[(id)] -#endif - -#if (LWIP_IPV4 && LWIP_ARP && (ARP_TABLE_SIZE > 0x7f)) || (LWIP_IPV6 && (LWIP_ND6_NUM_DESTINATIONS > 0x7f)) -typedef u16_t netif_addr_idx_t; -#define NETIF_ADDR_IDX_MAX 0x7FFF -#else -typedef u8_t netif_addr_idx_t; -#define NETIF_ADDR_IDX_MAX 0x7F -#endif - -#if LWIP_NETIF_HWADDRHINT -#define LWIP_NETIF_USE_HINTS 1 -struct netif_hint { - netif_addr_idx_t addr_hint; -}; -#else /* LWIP_NETIF_HWADDRHINT */ -#define LWIP_NETIF_USE_HINTS 0 -#endif /* LWIP_NETIF_HWADDRHINT */ - -/** Generic data structure used for all lwIP network interfaces. - * The following fields should be filled in by the initialization - * function for the device driver: hwaddr_len, hwaddr[], mtu, flags */ -struct netif { -#if !LWIP_SINGLE_NETIF - /** pointer to next in linked list */ - struct netif *next; -#endif - -#if LWIP_IPV4 - /** IP address configuration in network byte order */ - ip_addr_t ip_addr; - ip_addr_t netmask; - ip_addr_t gw; -#endif /* LWIP_IPV4 */ -#if LWIP_IPV6 - /** Array of IPv6 addresses for this netif. */ - ip_addr_t ip6_addr[LWIP_IPV6_NUM_ADDRESSES]; - /** The state of each IPv6 address (Tentative, Preferred, etc). - * @see ip6_addr.h */ - u8_t ip6_addr_state[LWIP_IPV6_NUM_ADDRESSES]; -#if LWIP_IPV6_ADDRESS_LIFETIMES - /** Remaining valid and preferred lifetime of each IPv6 address, in seconds. - * For valid lifetimes, the special value of IP6_ADDR_LIFE_STATIC (0) - * indicates the address is static and has no lifetimes. */ - u32_t ip6_addr_valid_life[LWIP_IPV6_NUM_ADDRESSES]; - u32_t ip6_addr_pref_life[LWIP_IPV6_NUM_ADDRESSES]; -#endif /* LWIP_IPV6_ADDRESS_LIFETIMES */ -#endif /* LWIP_IPV6 */ - /** This function is called by the network device driver - * to pass a packet up the TCP/IP stack. */ - netif_input_fn input; -#if LWIP_IPV4 - /** This function is called by the IP module when it wants - * to send a packet on the interface. This function typically - * first resolves the hardware address, then sends the packet. - * For ethernet physical layer, this is usually etharp_output() */ - netif_output_fn output; -#endif /* LWIP_IPV4 */ - /** This function is called by ethernet_output() when it wants - * to send a packet on the interface. This function outputs - * the pbuf as-is on the link medium. */ - netif_linkoutput_fn linkoutput; -#if LWIP_IPV6 - /** This function is called by the IPv6 module when it wants - * to send a packet on the interface. This function typically - * first resolves the hardware address, then sends the packet. - * For ethernet physical layer, this is usually ethip6_output() */ - netif_output_ip6_fn output_ip6; -#endif /* LWIP_IPV6 */ -#if LWIP_NETIF_STATUS_CALLBACK - /** This function is called when the netif state is set to up or down - */ - netif_status_callback_fn status_callback; -#endif /* LWIP_NETIF_STATUS_CALLBACK */ -#if LWIP_NETIF_LINK_CALLBACK - /** This function is called when the netif link is set to up or down - */ - netif_status_callback_fn link_callback; -#endif /* LWIP_NETIF_LINK_CALLBACK */ -#if LWIP_NETIF_REMOVE_CALLBACK - /** This function is called when the netif has been removed */ - netif_status_callback_fn remove_callback; -#endif /* LWIP_NETIF_REMOVE_CALLBACK */ - /** This field can be set by the device driver and could point - * to state information for the device. */ - void *state; -#ifdef netif_get_client_data - void* client_data[LWIP_NETIF_CLIENT_DATA_INDEX_MAX + LWIP_NUM_NETIF_CLIENT_DATA]; -#endif -#if LWIP_NETIF_HOSTNAME - /* the hostname for this netif, NULL is a valid value */ - const char* hostname; -#endif /* LWIP_NETIF_HOSTNAME */ -#if LWIP_CHECKSUM_CTRL_PER_NETIF - u16_t chksum_flags; -#endif /* LWIP_CHECKSUM_CTRL_PER_NETIF*/ - /** maximum transfer unit (in bytes) */ - u16_t mtu; -#if LWIP_IPV6 && LWIP_ND6_ALLOW_RA_UPDATES - /** maximum transfer unit (in bytes), updated by RA */ - u16_t mtu6; -#endif /* LWIP_IPV6 && LWIP_ND6_ALLOW_RA_UPDATES */ - /** link level hardware address of this interface */ - u8_t hwaddr[NETIF_MAX_HWADDR_LEN]; - /** number of bytes used in hwaddr */ - u8_t hwaddr_len; - /** flags (@see @ref netif_flags) */ - u8_t flags; - /** descriptive abbreviation */ - char name[2]; - /** number of this interface. Used for @ref if_api and @ref netifapi_netif, - * as well as for IPv6 zones */ - u8_t num; -#if LWIP_IPV6_AUTOCONFIG - /** is this netif enabled for IPv6 autoconfiguration */ - u8_t ip6_autoconfig_enabled; -#endif /* LWIP_IPV6_AUTOCONFIG */ -#if LWIP_IPV6_SEND_ROUTER_SOLICIT - /** Number of Router Solicitation messages that remain to be sent. */ - u8_t rs_count; -#endif /* LWIP_IPV6_SEND_ROUTER_SOLICIT */ -#if MIB2_STATS - /** link type (from "snmp_ifType" enum from snmp_mib2.h) */ - u8_t link_type; - /** (estimate) link speed */ - u32_t link_speed; - /** timestamp at last change made (up/down) */ - u32_t ts; - /** counters */ - struct stats_mib2_netif_ctrs mib2_counters; -#endif /* MIB2_STATS */ -#if LWIP_IPV4 && LWIP_IGMP - /** This function could be called to add or delete an entry in the multicast - filter table of the ethernet MAC.*/ - netif_igmp_mac_filter_fn igmp_mac_filter; -#endif /* LWIP_IPV4 && LWIP_IGMP */ -#if LWIP_IPV6 && LWIP_IPV6_MLD - /** This function could be called to add or delete an entry in the IPv6 multicast - filter table of the ethernet MAC. */ - netif_mld_mac_filter_fn mld_mac_filter; -#endif /* LWIP_IPV6 && LWIP_IPV6_MLD */ -#if LWIP_NETIF_USE_HINTS - struct netif_hint *hints; -#endif /* LWIP_NETIF_USE_HINTS */ -#if ENABLE_LOOPBACK - /* List of packets to be queued for ourselves. */ - struct pbuf *loop_first; - struct pbuf *loop_last; -#if LWIP_LOOPBACK_MAX_PBUFS - u16_t loop_cnt_current; -#endif /* LWIP_LOOPBACK_MAX_PBUFS */ -#endif /* ENABLE_LOOPBACK */ -}; - -#if LWIP_CHECKSUM_CTRL_PER_NETIF -#define NETIF_SET_CHECKSUM_CTRL(netif, chksumflags) do { \ - (netif)->chksum_flags = chksumflags; } while(0) -#define IF__NETIF_CHECKSUM_ENABLED(netif, chksumflag) if (((netif) == NULL) || (((netif)->chksum_flags & (chksumflag)) != 0)) -#else /* LWIP_CHECKSUM_CTRL_PER_NETIF */ -#define NETIF_SET_CHECKSUM_CTRL(netif, chksumflags) -#define IF__NETIF_CHECKSUM_ENABLED(netif, chksumflag) -#endif /* LWIP_CHECKSUM_CTRL_PER_NETIF */ - -#if LWIP_SINGLE_NETIF -#define NETIF_FOREACH(netif) if (((netif) = netif_default) != NULL) -#else /* LWIP_SINGLE_NETIF */ -/** The list of network interfaces. */ -extern struct netif *netif_list; -#define NETIF_FOREACH(netif) for ((netif) = netif_list; (netif) != NULL; (netif) = (netif)->next) -#endif /* LWIP_SINGLE_NETIF */ -/** The default network interface. */ -extern struct netif *netif_default; - -void netif_init(void); - -struct netif *netif_add_noaddr(struct netif *netif, void *state, netif_init_fn init, netif_input_fn input); - -#if LWIP_IPV4 -struct netif *netif_add(struct netif *netif, - const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw, - void *state, netif_init_fn init, netif_input_fn input); -void netif_set_addr(struct netif *netif, const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, - const ip4_addr_t *gw); -#else /* LWIP_IPV4 */ -struct netif *netif_add(struct netif *netif, void *state, netif_init_fn init, netif_input_fn input); -#endif /* LWIP_IPV4 */ -void netif_remove(struct netif * netif); - -/* Returns a network interface given its name. The name is of the form - "et0", where the first two letters are the "name" field in the - netif structure, and the digit is in the num field in the same - structure. */ -struct netif *netif_find(const char *name); - -void netif_set_default(struct netif *netif); - -#if LWIP_IPV4 -void netif_set_ipaddr(struct netif *netif, const ip4_addr_t *ipaddr); -void netif_set_netmask(struct netif *netif, const ip4_addr_t *netmask); -void netif_set_gw(struct netif *netif, const ip4_addr_t *gw); -/** @ingroup netif_ip4 */ -#define netif_ip4_addr(netif) ((const ip4_addr_t*)ip_2_ip4(&((netif)->ip_addr))) -/** @ingroup netif_ip4 */ -#define netif_ip4_netmask(netif) ((const ip4_addr_t*)ip_2_ip4(&((netif)->netmask))) -/** @ingroup netif_ip4 */ -#define netif_ip4_gw(netif) ((const ip4_addr_t*)ip_2_ip4(&((netif)->gw))) -/** @ingroup netif_ip4 */ -#define netif_ip_addr4(netif) ((const ip_addr_t*)&((netif)->ip_addr)) -/** @ingroup netif_ip4 */ -#define netif_ip_netmask4(netif) ((const ip_addr_t*)&((netif)->netmask)) -/** @ingroup netif_ip4 */ -#define netif_ip_gw4(netif) ((const ip_addr_t*)&((netif)->gw)) -#endif /* LWIP_IPV4 */ - -#define netif_set_flags(netif, set_flags) do { (netif)->flags = (u8_t)((netif)->flags | (set_flags)); } while(0) -#define netif_clear_flags(netif, clr_flags) do { (netif)->flags = (u8_t)((netif)->flags & (u8_t)(~(clr_flags) & 0xff)); } while(0) -#define netif_is_flag_set(nefif, flag) (((netif)->flags & (flag)) != 0) - -void netif_set_up(struct netif *netif); -void netif_set_down(struct netif *netif); -/** @ingroup netif - * Ask if an interface is up - */ -#define netif_is_up(netif) (((netif)->flags & NETIF_FLAG_UP) ? (u8_t)1 : (u8_t)0) - -#if LWIP_NETIF_STATUS_CALLBACK -void netif_set_status_callback(struct netif *netif, netif_status_callback_fn status_callback); -#endif /* LWIP_NETIF_STATUS_CALLBACK */ -#if LWIP_NETIF_REMOVE_CALLBACK -void netif_set_remove_callback(struct netif *netif, netif_status_callback_fn remove_callback); -#endif /* LWIP_NETIF_REMOVE_CALLBACK */ - -void netif_set_link_up(struct netif *netif); -void netif_set_link_down(struct netif *netif); -/** Ask if a link is up */ -#define netif_is_link_up(netif) (((netif)->flags & NETIF_FLAG_LINK_UP) ? (u8_t)1 : (u8_t)0) - -#if LWIP_NETIF_LINK_CALLBACK -void netif_set_link_callback(struct netif *netif, netif_status_callback_fn link_callback); -#endif /* LWIP_NETIF_LINK_CALLBACK */ - -#if LWIP_NETIF_HOSTNAME -/** @ingroup netif */ -#define netif_set_hostname(netif, name) do { if((netif) != NULL) { (netif)->hostname = name; }}while(0) -/** @ingroup netif */ -#define netif_get_hostname(netif) (((netif) != NULL) ? ((netif)->hostname) : NULL) -#endif /* LWIP_NETIF_HOSTNAME */ - -#if LWIP_IGMP -/** @ingroup netif */ -#define netif_set_igmp_mac_filter(netif, function) do { if((netif) != NULL) { (netif)->igmp_mac_filter = function; }}while(0) -#define netif_get_igmp_mac_filter(netif) (((netif) != NULL) ? ((netif)->igmp_mac_filter) : NULL) -#endif /* LWIP_IGMP */ - -#if LWIP_IPV6 && LWIP_IPV6_MLD -/** @ingroup netif */ -#define netif_set_mld_mac_filter(netif, function) do { if((netif) != NULL) { (netif)->mld_mac_filter = function; }}while(0) -#define netif_get_mld_mac_filter(netif) (((netif) != NULL) ? ((netif)->mld_mac_filter) : NULL) -#define netif_mld_mac_filter(netif, addr, action) do { if((netif) && (netif)->mld_mac_filter) { (netif)->mld_mac_filter((netif), (addr), (action)); }}while(0) -#endif /* LWIP_IPV6 && LWIP_IPV6_MLD */ - -#if ENABLE_LOOPBACK -err_t netif_loop_output(struct netif *netif, struct pbuf *p); -void netif_poll(struct netif *netif); -#if !LWIP_NETIF_LOOPBACK_MULTITHREADING -void netif_poll_all(void); -#endif /* !LWIP_NETIF_LOOPBACK_MULTITHREADING */ -#endif /* ENABLE_LOOPBACK */ - -err_t netif_input(struct pbuf *p, struct netif *inp); - -#if LWIP_IPV6 -/** @ingroup netif_ip6 */ -#define netif_ip_addr6(netif, i) ((const ip_addr_t*)(&((netif)->ip6_addr[i]))) -/** @ingroup netif_ip6 */ -#define netif_ip6_addr(netif, i) ((const ip6_addr_t*)ip_2_ip6(&((netif)->ip6_addr[i]))) -void netif_ip6_addr_set(struct netif *netif, s8_t addr_idx, const ip6_addr_t *addr6); -void netif_ip6_addr_set_parts(struct netif *netif, s8_t addr_idx, u32_t i0, u32_t i1, u32_t i2, u32_t i3); -#define netif_ip6_addr_state(netif, i) ((netif)->ip6_addr_state[i]) -void netif_ip6_addr_set_state(struct netif* netif, s8_t addr_idx, u8_t state); -s8_t netif_get_ip6_addr_match(struct netif *netif, const ip6_addr_t *ip6addr); -void netif_create_ip6_linklocal_address(struct netif *netif, u8_t from_mac_48bit); -err_t netif_add_ip6_address(struct netif *netif, const ip6_addr_t *ip6addr, s8_t *chosen_idx); -#define netif_set_ip6_autoconfig_enabled(netif, action) do { if(netif) { (netif)->ip6_autoconfig_enabled = (action); }}while(0) -#if LWIP_IPV6_ADDRESS_LIFETIMES -#define netif_ip6_addr_valid_life(netif, i) \ - (((netif) != NULL) ? ((netif)->ip6_addr_valid_life[i]) : IP6_ADDR_LIFE_STATIC) -#define netif_ip6_addr_set_valid_life(netif, i, secs) \ - do { if (netif != NULL) { (netif)->ip6_addr_valid_life[i] = (secs); }} while (0) -#define netif_ip6_addr_pref_life(netif, i) \ - (((netif) != NULL) ? ((netif)->ip6_addr_pref_life[i]) : IP6_ADDR_LIFE_STATIC) -#define netif_ip6_addr_set_pref_life(netif, i, secs) \ - do { if (netif != NULL) { (netif)->ip6_addr_pref_life[i] = (secs); }} while (0) -#define netif_ip6_addr_isstatic(netif, i) \ - (netif_ip6_addr_valid_life((netif), (i)) == IP6_ADDR_LIFE_STATIC) -#else /* !LWIP_IPV6_ADDRESS_LIFETIMES */ -#define netif_ip6_addr_isstatic(netif, i) (1) /* all addresses are static */ -#endif /* !LWIP_IPV6_ADDRESS_LIFETIMES */ -#if LWIP_ND6_ALLOW_RA_UPDATES -#define netif_mtu6(netif) ((netif)->mtu6) -#else /* LWIP_ND6_ALLOW_RA_UPDATES */ -#define netif_mtu6(netif) ((netif)->mtu) -#endif /* LWIP_ND6_ALLOW_RA_UPDATES */ -#endif /* LWIP_IPV6 */ - -#if LWIP_NETIF_USE_HINTS -#define NETIF_SET_HINTS(netif, netifhint) (netif)->hints = (netifhint) -#define NETIF_RESET_HINTS(netif) (netif)->hints = NULL -#else /* LWIP_NETIF_USE_HINTS */ -#define NETIF_SET_HINTS(netif, netifhint) -#define NETIF_RESET_HINTS(netif) -#endif /* LWIP_NETIF_USE_HINTS */ - -u8_t netif_name_to_index(const char *name); -char * netif_index_to_name(u8_t idx, char *name); -struct netif* netif_get_by_index(u8_t idx); - -/* Interface indexes always start at 1 per RFC 3493, section 4, num starts at 0 (internal index is 0..254)*/ -#define netif_get_index(netif) ((u8_t)((netif)->num + 1)) -#define NETIF_NO_INDEX (0) - -/** - * @ingroup netif - * Extended netif status callback (NSC) reasons flags. - * May be extended in the future! - */ -typedef u16_t netif_nsc_reason_t; - -/* used for initialization only */ -#define LWIP_NSC_NONE 0x0000 -/** netif was added. arg: NULL. Called AFTER netif was added. */ -#define LWIP_NSC_NETIF_ADDED 0x0001 -/** netif was removed. arg: NULL. Called BEFORE netif is removed. */ -#define LWIP_NSC_NETIF_REMOVED 0x0002 -/** link changed */ -#define LWIP_NSC_LINK_CHANGED 0x0004 -/** netif administrative status changed.\n - * up is called AFTER netif is set up.\n - * down is called BEFORE the netif is actually set down. */ -#define LWIP_NSC_STATUS_CHANGED 0x0008 -/** IPv4 address has changed */ -#define LWIP_NSC_IPV4_ADDRESS_CHANGED 0x0010 -/** IPv4 gateway has changed */ -#define LWIP_NSC_IPV4_GATEWAY_CHANGED 0x0020 -/** IPv4 netmask has changed */ -#define LWIP_NSC_IPV4_NETMASK_CHANGED 0x0040 -/** called AFTER IPv4 address/gateway/netmask changes have been applied */ -#define LWIP_NSC_IPV4_SETTINGS_CHANGED 0x0080 -/** IPv6 address was added */ -#define LWIP_NSC_IPV6_SET 0x0100 -/** IPv6 address state has changed */ -#define LWIP_NSC_IPV6_ADDR_STATE_CHANGED 0x0200 - -/** @ingroup netif - * Argument supplied to netif_ext_callback_fn. - */ -typedef union -{ - /** Args to LWIP_NSC_LINK_CHANGED callback */ - struct link_changed_s - { - /** 1: up; 0: down */ - u8_t state; - } link_changed; - /** Args to LWIP_NSC_STATUS_CHANGED callback */ - struct status_changed_s - { - /** 1: up; 0: down */ - u8_t state; - } status_changed; - /** Args to LWIP_NSC_IPV4_ADDRESS_CHANGED|LWIP_NSC_IPV4_GATEWAY_CHANGED|LWIP_NSC_IPV4_NETMASK_CHANGED|LWIP_NSC_IPV4_SETTINGS_CHANGED callback */ - struct ipv4_changed_s - { - /** Old IPv4 address */ - const ip_addr_t* old_address; - const ip_addr_t* old_netmask; - const ip_addr_t* old_gw; - } ipv4_changed; - /** Args to LWIP_NSC_IPV6_SET callback */ - struct ipv6_set_s - { - /** Index of changed IPv6 address */ - s8_t addr_index; - /** Old IPv6 address */ - const ip_addr_t* old_address; - } ipv6_set; - /** Args to LWIP_NSC_IPV6_ADDR_STATE_CHANGED callback */ - struct ipv6_addr_state_changed_s - { - /** Index of affected IPv6 address */ - s8_t addr_index; - /** Old IPv6 address state */ - u8_t old_state; - /** Affected IPv6 address */ - const ip_addr_t* address; - } ipv6_addr_state_changed; -} netif_ext_callback_args_t; - -/** - * @ingroup netif - * Function used for extended netif status callbacks - * Note: When parsing reason argument, keep in mind that more reasons may be added in the future! - * @param netif netif that is affected by change - * @param reason change reason - * @param args depends on reason, see reason description - */ -typedef void (*netif_ext_callback_fn)(struct netif* netif, netif_nsc_reason_t reason, const netif_ext_callback_args_t* args); - -#if LWIP_NETIF_EXT_STATUS_CALLBACK -struct netif_ext_callback; -typedef struct netif_ext_callback -{ - netif_ext_callback_fn callback_fn; - struct netif_ext_callback* next; -} netif_ext_callback_t; - -#define NETIF_DECLARE_EXT_CALLBACK(name) static netif_ext_callback_t name; -void netif_add_ext_callback(netif_ext_callback_t* callback, netif_ext_callback_fn fn); -void netif_remove_ext_callback(netif_ext_callback_t* callback); -void netif_invoke_ext_callback(struct netif* netif, netif_nsc_reason_t reason, const netif_ext_callback_args_t* args); -#else -#define NETIF_DECLARE_EXT_CALLBACK(name) -#define netif_add_ext_callback(callback, fn) -#define netif_remove_ext_callback(callback) -#define netif_invoke_ext_callback(netif, reason, args) -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_NETIF_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/netifapi.h b/Middlewares/Third_Party/LwIP/src/include/lwip/netifapi.h deleted file mode 100644 index e063179..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/netifapi.h +++ /dev/null @@ -1,161 +0,0 @@ -/** - * @file - * netif API (to be used from non-TCPIP threads) - */ - -/* - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - */ -#ifndef LWIP_HDR_NETIFAPI_H -#define LWIP_HDR_NETIFAPI_H - -#include "lwip/opt.h" - -#if LWIP_NETIF_API /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/sys.h" -#include "lwip/netif.h" -#include "lwip/dhcp.h" -#include "lwip/autoip.h" -#include "lwip/priv/tcpip_priv.h" -#include "lwip/priv/api_msg.h" -#include "lwip/prot/ethernet.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* API for application */ -#if LWIP_ARP && LWIP_IPV4 -/* Used for netfiapi_arp_* APIs */ -enum netifapi_arp_entry { - NETIFAPI_ARP_PERM /* Permanent entry */ - /* Other entry types can be added here */ -}; - -/** @ingroup netifapi_arp */ -err_t netifapi_arp_add(const ip4_addr_t *ipaddr, struct eth_addr *ethaddr, enum netifapi_arp_entry type); -/** @ingroup netifapi_arp */ -err_t netifapi_arp_remove(const ip4_addr_t *ipaddr, enum netifapi_arp_entry type); -#endif /* LWIP_ARP && LWIP_IPV4 */ - -err_t netifapi_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); - -#if LWIP_IPV4 -err_t netifapi_netif_set_addr(struct netif *netif, const ip4_addr_t *ipaddr, - const ip4_addr_t *netmask, const ip4_addr_t *gw); -#endif /* LWIP_IPV4*/ - -err_t netifapi_netif_common(struct netif *netif, netifapi_void_fn voidfunc, - netifapi_errt_fn errtfunc); - -/** @ingroup netifapi_netif */ -err_t netifapi_netif_name_to_index(const char *name, u8_t *index); -/** @ingroup netifapi_netif */ -err_t netifapi_netif_index_to_name(u8_t index, char *name); - -/** @ingroup netifapi_netif - * @see netif_remove() - */ -#define netifapi_netif_remove(n) netifapi_netif_common(n, netif_remove, NULL) -/** @ingroup netifapi_netif - * @see netif_set_up() - */ -#define netifapi_netif_set_up(n) netifapi_netif_common(n, netif_set_up, NULL) -/** @ingroup netifapi_netif - * @see netif_set_down() - */ -#define netifapi_netif_set_down(n) netifapi_netif_common(n, netif_set_down, NULL) -/** @ingroup netifapi_netif - * @see netif_set_default() - */ -#define netifapi_netif_set_default(n) netifapi_netif_common(n, netif_set_default, NULL) -/** @ingroup netifapi_netif - * @see netif_set_link_up() - */ -#define netifapi_netif_set_link_up(n) netifapi_netif_common(n, netif_set_link_up, NULL) -/** @ingroup netifapi_netif - * @see netif_set_link_down() - */ -#define netifapi_netif_set_link_down(n) netifapi_netif_common(n, netif_set_link_down, NULL) - -/** - * @defgroup netifapi_dhcp4 DHCPv4 - * @ingroup netifapi - * To be called from non-TCPIP threads - */ -/** @ingroup netifapi_dhcp4 - * @see dhcp_start() - */ -#define netifapi_dhcp_start(n) netifapi_netif_common(n, NULL, dhcp_start) -/** - * @ingroup netifapi_dhcp4 - * @deprecated Use netifapi_dhcp_release_and_stop() instead. - */ -#define netifapi_dhcp_stop(n) netifapi_netif_common(n, dhcp_stop, NULL) -/** @ingroup netifapi_dhcp4 - * @see dhcp_inform() - */ -#define netifapi_dhcp_inform(n) netifapi_netif_common(n, dhcp_inform, NULL) -/** @ingroup netifapi_dhcp4 - * @see dhcp_renew() - */ -#define netifapi_dhcp_renew(n) netifapi_netif_common(n, NULL, dhcp_renew) -/** - * @ingroup netifapi_dhcp4 - * @deprecated Use netifapi_dhcp_release_and_stop() instead. - */ -#define netifapi_dhcp_release(n) netifapi_netif_common(n, NULL, dhcp_release) -/** @ingroup netifapi_dhcp4 - * @see dhcp_release_and_stop() - */ -#define netifapi_dhcp_release_and_stop(n) netifapi_netif_common(n, dhcp_release_and_stop, NULL) - -/** - * @defgroup netifapi_autoip AUTOIP - * @ingroup netifapi - * To be called from non-TCPIP threads - */ -/** @ingroup netifapi_autoip - * @see autoip_start() - */ -#define netifapi_autoip_start(n) netifapi_netif_common(n, NULL, autoip_start) -/** @ingroup netifapi_autoip - * @see autoip_stop() - */ -#define netifapi_autoip_stop(n) netifapi_netif_common(n, NULL, autoip_stop) - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_NETIF_API */ - -#endif /* LWIP_HDR_NETIFAPI_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/opt.h b/Middlewares/Third_Party/LwIP/src/include/lwip/opt.h deleted file mode 100644 index 82c420c..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/opt.h +++ /dev/null @@ -1,3519 +0,0 @@ -/** - * @file - * - * lwIP Options Configuration - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -/* - * NOTE: || defined __DOXYGEN__ is a workaround for doxygen bug - - * without this, doxygen does not see the actual #define - */ - -#if !defined LWIP_HDR_OPT_H -#define LWIP_HDR_OPT_H - -/* - * Include user defined options first. Anything not defined in these files - * will be set to standard values. Override anything you don't like! - */ -#include "lwipopts.h" -#include "lwip/debug.h" - -/** - * @defgroup lwip_opts Options (lwipopts.h) - * @ingroup lwip - * - * @defgroup lwip_opts_debug Debugging - * @ingroup lwip_opts - * - * @defgroup lwip_opts_infrastructure Infrastructure - * @ingroup lwip_opts - * - * @defgroup lwip_opts_callback Callback-style APIs - * @ingroup lwip_opts - * - * @defgroup lwip_opts_threadsafe_apis Thread-safe APIs - * @ingroup lwip_opts - */ - - /* - ------------------------------------ - -------------- NO SYS -------------- - ------------------------------------ -*/ -/** - * @defgroup lwip_opts_nosys NO_SYS - * @ingroup lwip_opts_infrastructure - * @{ - */ -/** - * NO_SYS==1: Use lwIP without OS-awareness (no thread, semaphores, mutexes or - * mboxes). This means threaded APIs cannot be used (socket, netconn, - * i.e. everything in the 'api' folder), only the callback-style raw API is - * available (and you have to watch out for yourself that you don't access - * lwIP functions/structures from more than one context at a time!) - */ -#if !defined NO_SYS || defined __DOXYGEN__ -#define NO_SYS 0 -#endif -/** - * @} - */ - -/** - * @defgroup lwip_opts_timers Timers - * @ingroup lwip_opts_infrastructure - * @{ - */ -/** - * LWIP_TIMERS==0: Drop support for sys_timeout and lwip-internal cyclic timers. - * (the array of lwip-internal cyclic timers is still provided) - * (check NO_SYS_NO_TIMERS for compatibility to old versions) - */ -#if !defined LWIP_TIMERS || defined __DOXYGEN__ -#ifdef NO_SYS_NO_TIMERS -#define LWIP_TIMERS (!NO_SYS || (NO_SYS && !NO_SYS_NO_TIMERS)) -#else -#define LWIP_TIMERS 1 -#endif -#endif - -/** - * LWIP_TIMERS_CUSTOM==1: Provide your own timer implementation. - * Function prototypes in timeouts.h and the array of lwip-internal cyclic timers - * are still included, but the implementation is not. The following functions - * will be required: sys_timeouts_init(), sys_timeout(), sys_untimeout(), - * sys_timeouts_mbox_fetch() - */ -#if !defined LWIP_TIMERS_CUSTOM || defined __DOXYGEN__ -#define LWIP_TIMERS_CUSTOM 0 -#endif -/** - * @} - */ - -/** - * @defgroup lwip_opts_memcpy memcpy - * @ingroup lwip_opts_infrastructure - * @{ - */ -/** - * MEMCPY: override this if you have a faster implementation at hand than the - * one included in your C library - */ -#if !defined MEMCPY || defined __DOXYGEN__ -#define MEMCPY(dst,src,len) memcpy(dst,src,len) -#endif - -/** - * SMEMCPY: override this with care! Some compilers (e.g. gcc) can inline a - * call to memcpy() if the length is known at compile time and is small. - */ -#if !defined SMEMCPY || defined __DOXYGEN__ -#define SMEMCPY(dst,src,len) memcpy(dst,src,len) -#endif - -/** - * MEMMOVE: override this if you have a faster implementation at hand than the - * one included in your C library. lwIP currently uses MEMMOVE only when IPv6 - * fragmentation support is enabled. - */ -#if !defined MEMMOVE || defined __DOXYGEN__ -#define MEMMOVE(dst,src,len) memmove(dst,src,len) -#endif -/** - * @} - */ - -/* - ------------------------------------ - ----------- Core locking ----------- - ------------------------------------ -*/ -/** - * @defgroup lwip_opts_lock Core locking and MPU - * @ingroup lwip_opts_infrastructure - * @{ - */ -/** - * LWIP_MPU_COMPATIBLE: enables special memory management mechanism - * which makes lwip able to work on MPU (Memory Protection Unit) system - * by not passing stack-pointers to other threads - * (this decreases performance as memory is allocated from pools instead - * of keeping it on the stack) - */ -#if !defined LWIP_MPU_COMPATIBLE || defined __DOXYGEN__ -#define LWIP_MPU_COMPATIBLE 0 -#endif - -/** - * LWIP_TCPIP_CORE_LOCKING - * Creates a global mutex that is held during TCPIP thread operations. - * Can be locked by client code to perform lwIP operations without changing - * into TCPIP thread using callbacks. See LOCK_TCPIP_CORE() and - * UNLOCK_TCPIP_CORE(). - * Your system should provide mutexes supporting priority inversion to use this. - */ -#if !defined LWIP_TCPIP_CORE_LOCKING || defined __DOXYGEN__ -#define LWIP_TCPIP_CORE_LOCKING 1 -#endif - -/** - * LWIP_TCPIP_CORE_LOCKING_INPUT: when LWIP_TCPIP_CORE_LOCKING is enabled, - * this lets tcpip_input() grab the mutex for input packets as well, - * instead of allocating a message and passing it to tcpip_thread. - * - * ATTENTION: this does not work when tcpip_input() is called from - * interrupt context! - */ -#if !defined LWIP_TCPIP_CORE_LOCKING_INPUT || defined __DOXYGEN__ -#define LWIP_TCPIP_CORE_LOCKING_INPUT 0 -#endif - -/** - * SYS_LIGHTWEIGHT_PROT==1: enable inter-task protection (and task-vs-interrupt - * protection) for certain critical regions during buffer allocation, deallocation - * and memory allocation and deallocation. - * ATTENTION: This is required when using lwIP from more than one context! If - * you disable this, you must be sure what you are doing! - */ -#if !defined SYS_LIGHTWEIGHT_PROT || defined __DOXYGEN__ -#define SYS_LIGHTWEIGHT_PROT 1 -#endif - -/** - * Macro/function to check whether lwIP's threading/locking - * requirements are satisfied during current function call. - * This macro usually calls a function that is implemented in the OS-dependent - * sys layer and performs the following checks: - * - Not in ISR (this should be checked for NO_SYS==1, too!) - * - If @ref LWIP_TCPIP_CORE_LOCKING = 1: TCPIP core lock is held - * - If @ref LWIP_TCPIP_CORE_LOCKING = 0: function is called from TCPIP thread - * @see @ref multithreading - */ -#if !defined LWIP_ASSERT_CORE_LOCKED || defined __DOXYGEN__ -#define LWIP_ASSERT_CORE_LOCKED() -#endif - -/** - * Called as first thing in the lwIP TCPIP thread. Can be used in conjunction - * with @ref LWIP_ASSERT_CORE_LOCKED to check core locking. - * @see @ref multithreading - */ -#if !defined LWIP_MARK_TCPIP_THREAD || defined __DOXYGEN__ -#define LWIP_MARK_TCPIP_THREAD() -#endif -/** - * @} - */ - -/* - ------------------------------------ - ---------- Memory options ---------- - ------------------------------------ -*/ -/** - * @defgroup lwip_opts_mem Heap and memory pools - * @ingroup lwip_opts_infrastructure - * @{ - */ -/** - * MEM_LIBC_MALLOC==1: Use malloc/free/realloc provided by your C-library - * instead of the lwip internal allocator. Can save code size if you - * already use it. - */ -#if !defined MEM_LIBC_MALLOC || defined __DOXYGEN__ -#define MEM_LIBC_MALLOC 0 -#endif - -/** - * MEMP_MEM_MALLOC==1: Use mem_malloc/mem_free instead of the lwip pool allocator. - * Especially useful with MEM_LIBC_MALLOC but handle with care regarding execution - * speed (heap alloc can be much slower than pool alloc) and usage from interrupts - * (especially if your netif driver allocates PBUF_POOL pbufs for received frames - * from interrupt)! - * ATTENTION: Currently, this uses the heap for ALL pools (also for private pools, - * not only for internal pools defined in memp_std.h)! - */ -#if !defined MEMP_MEM_MALLOC || defined __DOXYGEN__ -#define MEMP_MEM_MALLOC 0 -#endif - -/** - * MEMP_MEM_INIT==1: Force use of memset to initialize pool memory. - * Useful if pool are moved in uninitialized section of memory. This will ensure - * default values in pcbs struct are well initialized in all conditions. - */ -#if !defined MEMP_MEM_INIT || defined __DOXYGEN__ -#define MEMP_MEM_INIT 0 -#endif - -/** - * MEM_ALIGNMENT: should be set to the alignment of the CPU - * 4 byte alignment -> \#define MEM_ALIGNMENT 4 - * 2 byte alignment -> \#define MEM_ALIGNMENT 2 - */ -#if !defined MEM_ALIGNMENT || defined __DOXYGEN__ -#define MEM_ALIGNMENT 1 -#endif - -/** - * MEM_SIZE: the size of the heap memory. If the application will send - * a lot of data that needs to be copied, this should be set high. - */ -#if !defined MEM_SIZE || defined __DOXYGEN__ -#define MEM_SIZE 1600 -#endif - -/** - * MEMP_OVERFLOW_CHECK: memp overflow protection reserves a configurable - * amount of bytes before and after each memp element in every pool and fills - * it with a prominent default value. - * MEMP_OVERFLOW_CHECK == 0 no checking - * MEMP_OVERFLOW_CHECK == 1 checks each element when it is freed - * MEMP_OVERFLOW_CHECK >= 2 checks each element in every pool every time - * memp_malloc() or memp_free() is called (useful but slow!) - */ -#if !defined MEMP_OVERFLOW_CHECK || defined __DOXYGEN__ -#define MEMP_OVERFLOW_CHECK 0 -#endif - -/** - * MEMP_SANITY_CHECK==1: run a sanity check after each memp_free() to make - * sure that there are no cycles in the linked lists. - */ -#if !defined MEMP_SANITY_CHECK || defined __DOXYGEN__ -#define MEMP_SANITY_CHECK 0 -#endif - -/** - * MEM_OVERFLOW_CHECK: mem overflow protection reserves a configurable - * amount of bytes before and after each heap allocation chunk and fills - * it with a prominent default value. - * MEM_OVERFLOW_CHECK == 0 no checking - * MEM_OVERFLOW_CHECK == 1 checks each element when it is freed - * MEM_OVERFLOW_CHECK >= 2 checks all heap elements every time - * mem_malloc() or mem_free() is called (useful but slow!) - */ -#if !defined MEM_OVERFLOW_CHECK || defined __DOXYGEN__ -#define MEM_OVERFLOW_CHECK 0 -#endif - -/** - * MEM_SANITY_CHECK==1: run a sanity check after each mem_free() to make - * sure that the linked list of heap elements is not corrupted. - */ -#if !defined MEM_SANITY_CHECK || defined __DOXYGEN__ -#define MEM_SANITY_CHECK 0 -#endif - -/** - * MEM_USE_POOLS==1: Use an alternative to malloc() by allocating from a set - * of memory pools of various sizes. When mem_malloc is called, an element of - * the smallest pool that can provide the length needed is returned. - * To use this, MEMP_USE_CUSTOM_POOLS also has to be enabled. - */ -#if !defined MEM_USE_POOLS || defined __DOXYGEN__ -#define MEM_USE_POOLS 0 -#endif - -/** - * MEM_USE_POOLS_TRY_BIGGER_POOL==1: if one malloc-pool is empty, try the next - * bigger pool - WARNING: THIS MIGHT WASTE MEMORY but it can make a system more - * reliable. */ -#if !defined MEM_USE_POOLS_TRY_BIGGER_POOL || defined __DOXYGEN__ -#define MEM_USE_POOLS_TRY_BIGGER_POOL 0 -#endif - -/** - * MEMP_USE_CUSTOM_POOLS==1: whether to include a user file lwippools.h - * that defines additional pools beyond the "standard" ones required - * by lwIP. If you set this to 1, you must have lwippools.h in your - * include path somewhere. - */ -#if !defined MEMP_USE_CUSTOM_POOLS || defined __DOXYGEN__ -#define MEMP_USE_CUSTOM_POOLS 0 -#endif - -/** - * Set this to 1 if you want to free PBUF_RAM pbufs (or call mem_free()) from - * interrupt context (or another context that doesn't allow waiting for a - * semaphore). - * If set to 1, mem_malloc will be protected by a semaphore and SYS_ARCH_PROTECT, - * while mem_free will only use SYS_ARCH_PROTECT. mem_malloc SYS_ARCH_UNPROTECTs - * with each loop so that mem_free can run. - * - * ATTENTION: As you can see from the above description, this leads to dis-/ - * enabling interrupts often, which can be slow! Also, on low memory, mem_malloc - * can need longer. - * - * If you don't want that, at least for NO_SYS=0, you can still use the following - * functions to enqueue a deallocation call which then runs in the tcpip_thread - * context: - * - pbuf_free_callback(p); - * - mem_free_callback(m); - */ -#if !defined LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT || defined __DOXYGEN__ -#define LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT 0 -#endif -/** - * @} - */ - -/* - ------------------------------------------------ - ---------- Internal Memory Pool Sizes ---------- - ------------------------------------------------ -*/ -/** - * @defgroup lwip_opts_memp Internal memory pools - * @ingroup lwip_opts_infrastructure - * @{ - */ -/** - * MEMP_NUM_PBUF: the number of memp struct pbufs (used for PBUF_ROM and PBUF_REF). - * If the application sends a lot of data out of ROM (or other static memory), - * this should be set high. - */ -#if !defined MEMP_NUM_PBUF || defined __DOXYGEN__ -#define MEMP_NUM_PBUF 16 -#endif - -/** - * MEMP_NUM_RAW_PCB: Number of raw connection PCBs - * (requires the LWIP_RAW option) - */ -#if !defined MEMP_NUM_RAW_PCB || defined __DOXYGEN__ -#define MEMP_NUM_RAW_PCB 4 -#endif - -/** - * MEMP_NUM_UDP_PCB: the number of UDP protocol control blocks. One - * per active UDP "connection". - * (requires the LWIP_UDP option) - */ -#if !defined MEMP_NUM_UDP_PCB || defined __DOXYGEN__ -#define MEMP_NUM_UDP_PCB 4 -#endif - -/** - * MEMP_NUM_TCP_PCB: the number of simultaneously active TCP connections. - * (requires the LWIP_TCP option) - */ -#if !defined MEMP_NUM_TCP_PCB || defined __DOXYGEN__ -#define MEMP_NUM_TCP_PCB 5 -#endif - -/** - * MEMP_NUM_TCP_PCB_LISTEN: the number of listening TCP connections. - * (requires the LWIP_TCP option) - */ -#if !defined MEMP_NUM_TCP_PCB_LISTEN || defined __DOXYGEN__ -#define MEMP_NUM_TCP_PCB_LISTEN 8 -#endif - -/** - * MEMP_NUM_TCP_SEG: the number of simultaneously queued TCP segments. - * (requires the LWIP_TCP option) - */ -#if !defined MEMP_NUM_TCP_SEG || defined __DOXYGEN__ -#define MEMP_NUM_TCP_SEG 16 -#endif - -/** - * MEMP_NUM_ALTCP_PCB: the number of simultaneously active altcp layer pcbs. - * (requires the LWIP_ALTCP option) - * Connections with multiple layers require more than one altcp_pcb (e.g. TLS - * over TCP requires 2 altcp_pcbs, one for TLS and one for TCP). - */ -#if !defined MEMP_NUM_ALTCP_PCB || defined __DOXYGEN__ -#define MEMP_NUM_ALTCP_PCB MEMP_NUM_TCP_PCB -#endif - -/** - * MEMP_NUM_REASSDATA: the number of IP packets simultaneously queued for - * reassembly (whole packets, not fragments!) - */ -#if !defined MEMP_NUM_REASSDATA || defined __DOXYGEN__ -#define MEMP_NUM_REASSDATA 5 -#endif - -/** - * MEMP_NUM_FRAG_PBUF: the number of IP fragments simultaneously sent - * (fragments, not whole packets!). - * This is only used with LWIP_NETIF_TX_SINGLE_PBUF==0 and only has to be > 1 - * with DMA-enabled MACs where the packet is not yet sent when netif->output - * returns. - */ -#if !defined MEMP_NUM_FRAG_PBUF || defined __DOXYGEN__ -#define MEMP_NUM_FRAG_PBUF 15 -#endif - -/** - * MEMP_NUM_ARP_QUEUE: the number of simultaneously queued outgoing - * packets (pbufs) that are waiting for an ARP request (to resolve - * their destination address) to finish. - * (requires the ARP_QUEUEING option) - */ -#if !defined MEMP_NUM_ARP_QUEUE || defined __DOXYGEN__ -#define MEMP_NUM_ARP_QUEUE 30 -#endif - -/** - * MEMP_NUM_IGMP_GROUP: The number of multicast groups whose network interfaces - * can be members at the same time (one per netif - allsystems group -, plus one - * per netif membership). - * (requires the LWIP_IGMP option) - */ -#if !defined MEMP_NUM_IGMP_GROUP || defined __DOXYGEN__ -#define MEMP_NUM_IGMP_GROUP 8 -#endif - -/** - * The number of sys timeouts used by the core stack (not apps) - * The default number of timeouts is calculated here for all enabled modules. - */ -#define LWIP_NUM_SYS_TIMEOUT_INTERNAL (LWIP_TCP + IP_REASSEMBLY + LWIP_ARP + (2*LWIP_DHCP) + LWIP_AUTOIP + LWIP_IGMP + LWIP_DNS + PPP_NUM_TIMEOUTS + (LWIP_IPV6 * (1 + LWIP_IPV6_REASS + LWIP_IPV6_MLD))) - -/** - * MEMP_NUM_SYS_TIMEOUT: the number of simultaneously active timeouts. - * The default number of timeouts is calculated here for all enabled modules. - * The formula expects settings to be either '0' or '1'. - */ -#if !defined MEMP_NUM_SYS_TIMEOUT || defined __DOXYGEN__ -#define MEMP_NUM_SYS_TIMEOUT LWIP_NUM_SYS_TIMEOUT_INTERNAL -#endif - -/** - * MEMP_NUM_NETBUF: the number of struct netbufs. - * (only needed if you use the sequential API, like api_lib.c) - */ -#if !defined MEMP_NUM_NETBUF || defined __DOXYGEN__ -#define MEMP_NUM_NETBUF 2 -#endif - -/** - * MEMP_NUM_NETCONN: the number of struct netconns. - * (only needed if you use the sequential API, like api_lib.c) - */ -#if !defined MEMP_NUM_NETCONN || defined __DOXYGEN__ -#define MEMP_NUM_NETCONN 4 -#endif - -/** - * MEMP_NUM_SELECT_CB: the number of struct lwip_select_cb. - * (Only needed if you have LWIP_MPU_COMPATIBLE==1 and use the socket API. - * In that case, you need one per thread calling lwip_select.) - */ -#if !defined MEMP_NUM_SELECT_CB || defined __DOXYGEN__ -#define MEMP_NUM_SELECT_CB 4 -#endif - -/** - * MEMP_NUM_TCPIP_MSG_API: the number of struct tcpip_msg, which are used - * for callback/timeout API communication. - * (only needed if you use tcpip.c) - */ -#if !defined MEMP_NUM_TCPIP_MSG_API || defined __DOXYGEN__ -#define MEMP_NUM_TCPIP_MSG_API 8 -#endif - -/** - * MEMP_NUM_TCPIP_MSG_INPKT: the number of struct tcpip_msg, which are used - * for incoming packets. - * (only needed if you use tcpip.c) - */ -#if !defined MEMP_NUM_TCPIP_MSG_INPKT || defined __DOXYGEN__ -#define MEMP_NUM_TCPIP_MSG_INPKT 8 -#endif - -/** - * MEMP_NUM_NETDB: the number of concurrently running lwip_addrinfo() calls - * (before freeing the corresponding memory using lwip_freeaddrinfo()). - */ -#if !defined MEMP_NUM_NETDB || defined __DOXYGEN__ -#define MEMP_NUM_NETDB 1 -#endif - -/** - * MEMP_NUM_LOCALHOSTLIST: the number of host entries in the local host list - * if DNS_LOCAL_HOSTLIST_IS_DYNAMIC==1. - */ -#if !defined MEMP_NUM_LOCALHOSTLIST || defined __DOXYGEN__ -#define MEMP_NUM_LOCALHOSTLIST 1 -#endif - -/** - * PBUF_POOL_SIZE: the number of buffers in the pbuf pool. - */ -#if !defined PBUF_POOL_SIZE || defined __DOXYGEN__ -#define PBUF_POOL_SIZE 16 -#endif - -/** MEMP_NUM_API_MSG: the number of concurrently active calls to various - * socket, netconn, and tcpip functions - */ -#if !defined MEMP_NUM_API_MSG || defined __DOXYGEN__ -#define MEMP_NUM_API_MSG MEMP_NUM_TCPIP_MSG_API -#endif - -/** MEMP_NUM_DNS_API_MSG: the number of concurrently active calls to netconn_gethostbyname - */ -#if !defined MEMP_NUM_DNS_API_MSG || defined __DOXYGEN__ -#define MEMP_NUM_DNS_API_MSG MEMP_NUM_TCPIP_MSG_API -#endif - -/** MEMP_NUM_SOCKET_SETGETSOCKOPT_DATA: the number of concurrently active calls - * to getsockopt/setsockopt - */ -#if !defined MEMP_NUM_SOCKET_SETGETSOCKOPT_DATA || defined __DOXYGEN__ -#define MEMP_NUM_SOCKET_SETGETSOCKOPT_DATA MEMP_NUM_TCPIP_MSG_API -#endif - -/** MEMP_NUM_NETIFAPI_MSG: the number of concurrently active calls to the - * netifapi functions - */ -#if !defined MEMP_NUM_NETIFAPI_MSG || defined __DOXYGEN__ -#define MEMP_NUM_NETIFAPI_MSG MEMP_NUM_TCPIP_MSG_API -#endif -/** - * @} - */ - -/* - --------------------------------- - ---------- ARP options ---------- - --------------------------------- -*/ -/** - * @defgroup lwip_opts_arp ARP - * @ingroup lwip_opts_ipv4 - * @{ - */ -/** - * LWIP_ARP==1: Enable ARP functionality. - */ -#if !defined LWIP_ARP || defined __DOXYGEN__ -#define LWIP_ARP 1 -#endif - -/** - * ARP_TABLE_SIZE: Number of active MAC-IP address pairs cached. - */ -#if !defined ARP_TABLE_SIZE || defined __DOXYGEN__ -#define ARP_TABLE_SIZE 10 -#endif - -/** the time an ARP entry stays valid after its last update, - * for ARP_TMR_INTERVAL = 1000, this is - * (60 * 5) seconds = 5 minutes. - */ -#if !defined ARP_MAXAGE || defined __DOXYGEN__ -#define ARP_MAXAGE 300 -#endif - -/** - * ARP_QUEUEING==1: Multiple outgoing packets are queued during hardware address - * resolution. By default, only the most recent packet is queued per IP address. - * This is sufficient for most protocols and mainly reduces TCP connection - * startup time. Set this to 1 if you know your application sends more than one - * packet in a row to an IP address that is not in the ARP cache. - */ -#if !defined ARP_QUEUEING || defined __DOXYGEN__ -#define ARP_QUEUEING 0 -#endif - -/** The maximum number of packets which may be queued for each - * unresolved address by other network layers. Defaults to 3, 0 means disabled. - * Old packets are dropped, new packets are queued. - */ -#if !defined ARP_QUEUE_LEN || defined __DOXYGEN__ -#define ARP_QUEUE_LEN 3 -#endif - -/** - * ETHARP_SUPPORT_VLAN==1: support receiving and sending ethernet packets with - * VLAN header. See the description of LWIP_HOOK_VLAN_CHECK and - * LWIP_HOOK_VLAN_SET hooks to check/set VLAN headers. - * Additionally, you can define ETHARP_VLAN_CHECK to an u16_t VLAN ID to check. - * If ETHARP_VLAN_CHECK is defined, only VLAN-traffic for this VLAN is accepted. - * If ETHARP_VLAN_CHECK is not defined, all traffic is accepted. - * Alternatively, define a function/define ETHARP_VLAN_CHECK_FN(eth_hdr, vlan) - * that returns 1 to accept a packet or 0 to drop a packet. - */ -#if !defined ETHARP_SUPPORT_VLAN || defined __DOXYGEN__ -#define ETHARP_SUPPORT_VLAN 0 -#endif - -/** LWIP_ETHERNET==1: enable ethernet support even though ARP might be disabled - */ -#if !defined LWIP_ETHERNET || defined __DOXYGEN__ -#define LWIP_ETHERNET LWIP_ARP -#endif - -/** ETH_PAD_SIZE: number of bytes added before the ethernet header to ensure - * alignment of payload after that header. Since the header is 14 bytes long, - * without this padding e.g. addresses in the IP header will not be aligned - * on a 32-bit boundary, so setting this to 2 can speed up 32-bit-platforms. - */ -#if !defined ETH_PAD_SIZE || defined __DOXYGEN__ -#define ETH_PAD_SIZE 0 -#endif - -/** ETHARP_SUPPORT_STATIC_ENTRIES==1: enable code to support static ARP table - * entries (using etharp_add_static_entry/etharp_remove_static_entry). - */ -#if !defined ETHARP_SUPPORT_STATIC_ENTRIES || defined __DOXYGEN__ -#define ETHARP_SUPPORT_STATIC_ENTRIES 0 -#endif - -/** ETHARP_TABLE_MATCH_NETIF==1: Match netif for ARP table entries. - * If disabled, duplicate IP address on multiple netifs are not supported - * (but this should only occur for AutoIP). - */ -#if !defined ETHARP_TABLE_MATCH_NETIF || defined __DOXYGEN__ -#define ETHARP_TABLE_MATCH_NETIF !LWIP_SINGLE_NETIF -#endif -/** - * @} - */ - -/* - -------------------------------- - ---------- IP options ---------- - -------------------------------- -*/ -/** - * @defgroup lwip_opts_ipv4 IPv4 - * @ingroup lwip_opts - * @{ - */ -/** - * LWIP_IPV4==1: Enable IPv4 - */ -#if !defined LWIP_IPV4 || defined __DOXYGEN__ -#define LWIP_IPV4 1 -#endif - -/** - * IP_FORWARD==1: Enables the ability to forward IP packets across network - * interfaces. If you are going to run lwIP on a device with only one network - * interface, define this to 0. - */ -#if !defined IP_FORWARD || defined __DOXYGEN__ -#define IP_FORWARD 0 -#endif - -/** - * IP_REASSEMBLY==1: Reassemble incoming fragmented IP packets. Note that - * this option does not affect outgoing packet sizes, which can be controlled - * via IP_FRAG. - */ -#if !defined IP_REASSEMBLY || defined __DOXYGEN__ -#define IP_REASSEMBLY 1 -#endif - -/** - * IP_FRAG==1: Fragment outgoing IP packets if their size exceeds MTU. Note - * that this option does not affect incoming packet sizes, which can be - * controlled via IP_REASSEMBLY. - */ -#if !defined IP_FRAG || defined __DOXYGEN__ -#define IP_FRAG 1 -#endif - -#if !LWIP_IPV4 -/* disable IPv4 extensions when IPv4 is disabled */ -#undef IP_FORWARD -#define IP_FORWARD 0 -#undef IP_REASSEMBLY -#define IP_REASSEMBLY 0 -#undef IP_FRAG -#define IP_FRAG 0 -#endif /* !LWIP_IPV4 */ - -/** - * IP_OPTIONS_ALLOWED: Defines the behavior for IP options. - * IP_OPTIONS_ALLOWED==0: All packets with IP options are dropped. - * IP_OPTIONS_ALLOWED==1: IP options are allowed (but not parsed). - */ -#if !defined IP_OPTIONS_ALLOWED || defined __DOXYGEN__ -#define IP_OPTIONS_ALLOWED 1 -#endif - -/** - * IP_REASS_MAXAGE: Maximum time (in multiples of IP_TMR_INTERVAL - so seconds, normally) - * a fragmented IP packet waits for all fragments to arrive. If not all fragments arrived - * in this time, the whole packet is discarded. - */ -#if !defined IP_REASS_MAXAGE || defined __DOXYGEN__ -#define IP_REASS_MAXAGE 15 -#endif - -/** - * IP_REASS_MAX_PBUFS: Total maximum amount of pbufs waiting to be reassembled. - * Since the received pbufs are enqueued, be sure to configure - * PBUF_POOL_SIZE > IP_REASS_MAX_PBUFS so that the stack is still able to receive - * packets even if the maximum amount of fragments is enqueued for reassembly! - * When IPv4 *and* IPv6 are enabled, this even changes to - * (PBUF_POOL_SIZE > 2 * IP_REASS_MAX_PBUFS)! - */ -#if !defined IP_REASS_MAX_PBUFS || defined __DOXYGEN__ -#define IP_REASS_MAX_PBUFS 10 -#endif - -/** - * IP_DEFAULT_TTL: Default value for Time-To-Live used by transport layers. - */ -#if !defined IP_DEFAULT_TTL || defined __DOXYGEN__ -#define IP_DEFAULT_TTL 255 -#endif - -/** - * IP_SOF_BROADCAST=1: Use the SOF_BROADCAST field to enable broadcast - * filter per pcb on udp and raw send operations. To enable broadcast filter - * on recv operations, you also have to set IP_SOF_BROADCAST_RECV=1. - */ -#if !defined IP_SOF_BROADCAST || defined __DOXYGEN__ -#define IP_SOF_BROADCAST 0 -#endif - -/** - * IP_SOF_BROADCAST_RECV (requires IP_SOF_BROADCAST=1) enable the broadcast - * filter on recv operations. - */ -#if !defined IP_SOF_BROADCAST_RECV || defined __DOXYGEN__ -#define IP_SOF_BROADCAST_RECV 0 -#endif - -/** - * IP_FORWARD_ALLOW_TX_ON_RX_NETIF==1: allow ip_forward() to send packets back - * out on the netif where it was received. This should only be used for - * wireless networks. - * ATTENTION: When this is 1, make sure your netif driver correctly marks incoming - * link-layer-broadcast/multicast packets as such using the corresponding pbuf flags! - */ -#if !defined IP_FORWARD_ALLOW_TX_ON_RX_NETIF || defined __DOXYGEN__ -#define IP_FORWARD_ALLOW_TX_ON_RX_NETIF 0 -#endif -/** - * @} - */ - -/* - ---------------------------------- - ---------- ICMP options ---------- - ---------------------------------- -*/ -/** - * @defgroup lwip_opts_icmp ICMP - * @ingroup lwip_opts_ipv4 - * @{ - */ -/** - * LWIP_ICMP==1: Enable ICMP module inside the IP stack. - * Be careful, disable that make your product non-compliant to RFC1122 - */ -#if !defined LWIP_ICMP || defined __DOXYGEN__ -#define LWIP_ICMP 1 -#endif - -/** - * ICMP_TTL: Default value for Time-To-Live used by ICMP packets. - */ -#if !defined ICMP_TTL || defined __DOXYGEN__ -#define ICMP_TTL IP_DEFAULT_TTL -#endif - -/** - * LWIP_BROADCAST_PING==1: respond to broadcast pings (default is unicast only) - */ -#if !defined LWIP_BROADCAST_PING || defined __DOXYGEN__ -#define LWIP_BROADCAST_PING 0 -#endif - -/** - * LWIP_MULTICAST_PING==1: respond to multicast pings (default is unicast only) - */ -#if !defined LWIP_MULTICAST_PING || defined __DOXYGEN__ -#define LWIP_MULTICAST_PING 0 -#endif -/** - * @} - */ - -/* - --------------------------------- - ---------- RAW options ---------- - --------------------------------- -*/ -/** - * @defgroup lwip_opts_raw RAW - * @ingroup lwip_opts_callback - * @{ - */ -/** - * LWIP_RAW==1: Enable application layer to hook into the IP layer itself. - */ -#if !defined LWIP_RAW || defined __DOXYGEN__ -#define LWIP_RAW 0 -#endif - -/** - * LWIP_RAW==1: Enable application layer to hook into the IP layer itself. - */ -#if !defined RAW_TTL || defined __DOXYGEN__ -#define RAW_TTL IP_DEFAULT_TTL -#endif -/** - * @} - */ - -/* - ---------------------------------- - ---------- DHCP options ---------- - ---------------------------------- -*/ -/** - * @defgroup lwip_opts_dhcp DHCP - * @ingroup lwip_opts_ipv4 - * @{ - */ -/** - * LWIP_DHCP==1: Enable DHCP module. - */ -#if !defined LWIP_DHCP || defined __DOXYGEN__ -#define LWIP_DHCP 0 -#endif -#if !LWIP_IPV4 -/* disable DHCP when IPv4 is disabled */ -#undef LWIP_DHCP -#define LWIP_DHCP 0 -#endif /* !LWIP_IPV4 */ - -/** - * DHCP_DOES_ARP_CHECK==1: Do an ARP check on the offered address. - */ -#if !defined DHCP_DOES_ARP_CHECK || defined __DOXYGEN__ -#define DHCP_DOES_ARP_CHECK (LWIP_DHCP && LWIP_ARP) -#endif - -/** - * LWIP_DHCP_BOOTP_FILE==1: Store offered_si_addr and boot_file_name. - */ -#if !defined LWIP_DHCP_BOOTP_FILE || defined __DOXYGEN__ -#define LWIP_DHCP_BOOTP_FILE 0 -#endif - -/** - * LWIP_DHCP_GETS_NTP==1: Request NTP servers with discover/select. For each - * response packet, an callback is called, which has to be provided by the port: - * void dhcp_set_ntp_servers(u8_t num_ntp_servers, ip_addr_t* ntp_server_addrs); -*/ -#if !defined LWIP_DHCP_GET_NTP_SRV || defined __DOXYGEN__ -#define LWIP_DHCP_GET_NTP_SRV 0 -#endif - -/** - * The maximum of NTP servers requested - */ -#if !defined LWIP_DHCP_MAX_NTP_SERVERS || defined __DOXYGEN__ -#define LWIP_DHCP_MAX_NTP_SERVERS 1 -#endif - -/** - * LWIP_DHCP_MAX_DNS_SERVERS > 0: Request DNS servers with discover/select. - * DNS servers received in the response are passed to DNS via @ref dns_setserver() - * (up to the maximum limit defined here). - */ -#if !defined LWIP_DHCP_MAX_DNS_SERVERS || defined __DOXYGEN__ -#define LWIP_DHCP_MAX_DNS_SERVERS DNS_MAX_SERVERS -#endif -/** - * @} - */ - -/* - ------------------------------------ - ---------- AUTOIP options ---------- - ------------------------------------ -*/ -/** - * @defgroup lwip_opts_autoip AUTOIP - * @ingroup lwip_opts_ipv4 - * @{ - */ -/** - * LWIP_AUTOIP==1: Enable AUTOIP module. - */ -#if !defined LWIP_AUTOIP || defined __DOXYGEN__ -#define LWIP_AUTOIP 0 -#endif -#if !LWIP_IPV4 -/* disable AUTOIP when IPv4 is disabled */ -#undef LWIP_AUTOIP -#define LWIP_AUTOIP 0 -#endif /* !LWIP_IPV4 */ - -/** - * LWIP_DHCP_AUTOIP_COOP==1: Allow DHCP and AUTOIP to be both enabled on - * the same interface at the same time. - */ -#if !defined LWIP_DHCP_AUTOIP_COOP || defined __DOXYGEN__ -#define LWIP_DHCP_AUTOIP_COOP 0 -#endif - -/** - * LWIP_DHCP_AUTOIP_COOP_TRIES: Set to the number of DHCP DISCOVER probes - * that should be sent before falling back on AUTOIP (the DHCP client keeps - * running in this case). This can be set as low as 1 to get an AutoIP address - * very quickly, but you should be prepared to handle a changing IP address - * when DHCP overrides AutoIP. - */ -#if !defined LWIP_DHCP_AUTOIP_COOP_TRIES || defined __DOXYGEN__ -#define LWIP_DHCP_AUTOIP_COOP_TRIES 9 -#endif -/** - * @} - */ - -/* - ---------------------------------- - ----- SNMP MIB2 support ----- - ---------------------------------- -*/ -/** - * @defgroup lwip_opts_mib2 SNMP MIB2 callbacks - * @ingroup lwip_opts_infrastructure - * @{ - */ -/** - * LWIP_MIB2_CALLBACKS==1: Turn on SNMP MIB2 callbacks. - * Turn this on to get callbacks needed to implement MIB2. - * Usually MIB2_STATS should be enabled, too. - */ -#if !defined LWIP_MIB2_CALLBACKS || defined __DOXYGEN__ -#define LWIP_MIB2_CALLBACKS 0 -#endif -/** - * @} - */ - -/* - ---------------------------------- - -------- Multicast options ------- - ---------------------------------- -*/ -/** - * @defgroup lwip_opts_multicast Multicast - * @ingroup lwip_opts_infrastructure - * @{ - */ -/** - * LWIP_MULTICAST_TX_OPTIONS==1: Enable multicast TX support like the socket options - * IP_MULTICAST_TTL/IP_MULTICAST_IF/IP_MULTICAST_LOOP, as well as (currently only) - * core support for the corresponding IPv6 options. - */ -#if !defined LWIP_MULTICAST_TX_OPTIONS || defined __DOXYGEN__ -#define LWIP_MULTICAST_TX_OPTIONS ((LWIP_IGMP || LWIP_IPV6_MLD) && (LWIP_UDP || LWIP_RAW)) -#endif -/** - * @} - */ - -/* - ---------------------------------- - ---------- IGMP options ---------- - ---------------------------------- -*/ -/** - * @defgroup lwip_opts_igmp IGMP - * @ingroup lwip_opts_ipv4 - * @{ - */ -/** - * LWIP_IGMP==1: Turn on IGMP module. - */ -#if !defined LWIP_IGMP || defined __DOXYGEN__ -#define LWIP_IGMP 0 -#endif -#if !LWIP_IPV4 -#undef LWIP_IGMP -#define LWIP_IGMP 0 -#endif -/** - * @} - */ - -/* - ---------------------------------- - ---------- DNS options ----------- - ---------------------------------- -*/ -/** - * @defgroup lwip_opts_dns DNS - * @ingroup lwip_opts_callback - * @{ - */ -/** - * LWIP_DNS==1: Turn on DNS module. UDP must be available for DNS - * transport. - */ -#if !defined LWIP_DNS || defined __DOXYGEN__ -#define LWIP_DNS 0 -#endif - -/** DNS maximum number of entries to maintain locally. */ -#if !defined DNS_TABLE_SIZE || defined __DOXYGEN__ -#define DNS_TABLE_SIZE 4 -#endif - -/** DNS maximum host name length supported in the name table. */ -#if !defined DNS_MAX_NAME_LENGTH || defined __DOXYGEN__ -#define DNS_MAX_NAME_LENGTH 256 -#endif - -/** The maximum of DNS servers - * The first server can be initialized automatically by defining - * DNS_SERVER_ADDRESS(ipaddr), where 'ipaddr' is an 'ip_addr_t*' - */ -#if !defined DNS_MAX_SERVERS || defined __DOXYGEN__ -#define DNS_MAX_SERVERS 2 -#endif - -/** DNS maximum number of retries when asking for a name, before "timeout". */ -#if !defined DNS_MAX_RETRIES || defined __DOXYGEN__ -#define DNS_MAX_RETRIES 4 -#endif - -/** DNS do a name checking between the query and the response. */ -#if !defined DNS_DOES_NAME_CHECK || defined __DOXYGEN__ -#define DNS_DOES_NAME_CHECK 1 -#endif - -/** LWIP_DNS_SECURE: controls the security level of the DNS implementation - * Use all DNS security features by default. - * This is overridable but should only be needed by very small targets - * or when using against non standard DNS servers. */ -#if !defined LWIP_DNS_SECURE || defined __DOXYGEN__ -#define LWIP_DNS_SECURE (LWIP_DNS_SECURE_RAND_XID | LWIP_DNS_SECURE_NO_MULTIPLE_OUTSTANDING | LWIP_DNS_SECURE_RAND_SRC_PORT) -#endif - -/* A list of DNS security features follows */ -#define LWIP_DNS_SECURE_RAND_XID 1 -#define LWIP_DNS_SECURE_NO_MULTIPLE_OUTSTANDING 2 -#define LWIP_DNS_SECURE_RAND_SRC_PORT 4 - -/** DNS_LOCAL_HOSTLIST: Implements a local host-to-address list. If enabled, you have to define an initializer: - * \#define DNS_LOCAL_HOSTLIST_INIT {DNS_LOCAL_HOSTLIST_ELEM("host_ip4", IPADDR4_INIT_BYTES(1,2,3,4)), \ - * DNS_LOCAL_HOSTLIST_ELEM("host_ip6", IPADDR6_INIT_HOST(123, 234, 345, 456)} - * - * Instead, you can also use an external function: - * \#define DNS_LOOKUP_LOCAL_EXTERN(x) extern err_t my_lookup_function(const char *name, ip_addr_t *addr, u8_t dns_addrtype) - * that looks up the IP address and returns ERR_OK if found (LWIP_DNS_ADDRTYPE_xxx is passed in dns_addrtype). - */ -#if !defined DNS_LOCAL_HOSTLIST || defined __DOXYGEN__ -#define DNS_LOCAL_HOSTLIST 0 -#endif /* DNS_LOCAL_HOSTLIST */ - -/** If this is turned on, the local host-list can be dynamically changed - * at runtime. */ -#if !defined DNS_LOCAL_HOSTLIST_IS_DYNAMIC || defined __DOXYGEN__ -#define DNS_LOCAL_HOSTLIST_IS_DYNAMIC 0 -#endif /* DNS_LOCAL_HOSTLIST_IS_DYNAMIC */ - -/** Set this to 1 to enable querying ".local" names via mDNS - * using a One-Shot Multicast DNS Query */ -#if !defined LWIP_DNS_SUPPORT_MDNS_QUERIES || defined __DOXYGEN__ -#define LWIP_DNS_SUPPORT_MDNS_QUERIES 0 -#endif -/** - * @} - */ - -/* - --------------------------------- - ---------- UDP options ---------- - --------------------------------- -*/ -/** - * @defgroup lwip_opts_udp UDP - * @ingroup lwip_opts_callback - * @{ - */ -/** - * LWIP_UDP==1: Turn on UDP. - */ -#if !defined LWIP_UDP || defined __DOXYGEN__ -#define LWIP_UDP 1 -#endif - -/** - * LWIP_UDPLITE==1: Turn on UDP-Lite. (Requires LWIP_UDP) - */ -#if !defined LWIP_UDPLITE || defined __DOXYGEN__ -#define LWIP_UDPLITE 0 -#endif - -/** - * UDP_TTL: Default Time-To-Live value. - */ -#if !defined UDP_TTL || defined __DOXYGEN__ -#define UDP_TTL IP_DEFAULT_TTL -#endif - -/** - * LWIP_NETBUF_RECVINFO==1: append destination addr and port to every netbuf. - */ -#if !defined LWIP_NETBUF_RECVINFO || defined __DOXYGEN__ -#define LWIP_NETBUF_RECVINFO 0 -#endif -/** - * @} - */ - -/* - --------------------------------- - ---------- TCP options ---------- - --------------------------------- -*/ -/** - * @defgroup lwip_opts_tcp TCP - * @ingroup lwip_opts_callback - * @{ - */ -/** - * LWIP_TCP==1: Turn on TCP. - */ -#if !defined LWIP_TCP || defined __DOXYGEN__ -#define LWIP_TCP 1 -#endif - -/** - * TCP_TTL: Default Time-To-Live value. - */ -#if !defined TCP_TTL || defined __DOXYGEN__ -#define TCP_TTL IP_DEFAULT_TTL -#endif - -/** - * TCP_WND: The size of a TCP window. This must be at least - * (2 * TCP_MSS) for things to work well. - * ATTENTION: when using TCP_RCV_SCALE, TCP_WND is the total size - * with scaling applied. Maximum window value in the TCP header - * will be TCP_WND >> TCP_RCV_SCALE - */ -#if !defined TCP_WND || defined __DOXYGEN__ -#define TCP_WND (4 * TCP_MSS) -#endif - -/** - * TCP_MAXRTX: Maximum number of retransmissions of data segments. - */ -#if !defined TCP_MAXRTX || defined __DOXYGEN__ -#define TCP_MAXRTX 12 -#endif - -/** - * TCP_SYNMAXRTX: Maximum number of retransmissions of SYN segments. - */ -#if !defined TCP_SYNMAXRTX || defined __DOXYGEN__ -#define TCP_SYNMAXRTX 6 -#endif - -/** - * TCP_QUEUE_OOSEQ==1: TCP will queue segments that arrive out of order. - * Define to 0 if your device is low on memory. - */ -#if !defined TCP_QUEUE_OOSEQ || defined __DOXYGEN__ -#define TCP_QUEUE_OOSEQ LWIP_TCP -#endif - -/** - * LWIP_TCP_SACK_OUT==1: TCP will support sending selective acknowledgements (SACKs). - */ -#if !defined LWIP_TCP_SACK_OUT || defined __DOXYGEN__ -#define LWIP_TCP_SACK_OUT 0 -#endif - -/** - * LWIP_TCP_MAX_SACK_NUM: The maximum number of SACK values to include in TCP segments. - * Must be at least 1, but is only used if LWIP_TCP_SACK_OUT is enabled. - * NOTE: Even though we never send more than 3 or 4 SACK ranges in a single segment - * (depending on other options), setting this option to values greater than 4 is not pointless. - * This is basically the max number of SACK ranges we want to keep track of. - * As new data is delivered, some of the SACK ranges may be removed or merged. - * In that case some of those older SACK ranges may be used again. - * The amount of memory used to store SACK ranges is LWIP_TCP_MAX_SACK_NUM * 8 bytes for each TCP PCB. - */ -#if !defined LWIP_TCP_MAX_SACK_NUM || defined __DOXYGEN__ -#define LWIP_TCP_MAX_SACK_NUM 4 -#endif - -/** - * TCP_MSS: TCP Maximum segment size. (default is 536, a conservative default, - * you might want to increase this.) - * For the receive side, this MSS is advertised to the remote side - * when opening a connection. For the transmit size, this MSS sets - * an upper limit on the MSS advertised by the remote host. - */ -#if !defined TCP_MSS || defined __DOXYGEN__ -#define TCP_MSS 536 -#endif - -/** - * TCP_CALCULATE_EFF_SEND_MSS: "The maximum size of a segment that TCP really - * sends, the 'effective send MSS,' MUST be the smaller of the send MSS (which - * reflects the available reassembly buffer size at the remote host) and the - * largest size permitted by the IP layer" (RFC 1122) - * Setting this to 1 enables code that checks TCP_MSS against the MTU of the - * netif used for a connection and limits the MSS if it would be too big otherwise. - */ -#if !defined TCP_CALCULATE_EFF_SEND_MSS || defined __DOXYGEN__ -#define TCP_CALCULATE_EFF_SEND_MSS 1 -#endif - - -/** - * TCP_SND_BUF: TCP sender buffer space (bytes). - * To achieve good performance, this should be at least 2 * TCP_MSS. - */ -#if !defined TCP_SND_BUF || defined __DOXYGEN__ -#define TCP_SND_BUF (2 * TCP_MSS) -#endif - -/** - * TCP_SND_QUEUELEN: TCP sender buffer space (pbufs). This must be at least - * as much as (2 * TCP_SND_BUF/TCP_MSS) for things to work. - */ -#if !defined TCP_SND_QUEUELEN || defined __DOXYGEN__ -#define TCP_SND_QUEUELEN ((4 * (TCP_SND_BUF) + (TCP_MSS - 1))/(TCP_MSS)) -#endif - -/** - * TCP_SNDLOWAT: TCP writable space (bytes). This must be less than - * TCP_SND_BUF. It is the amount of space which must be available in the - * TCP snd_buf for select to return writable (combined with TCP_SNDQUEUELOWAT). - */ -#if !defined TCP_SNDLOWAT || defined __DOXYGEN__ -#define TCP_SNDLOWAT LWIP_MIN(LWIP_MAX(((TCP_SND_BUF)/2), (2 * TCP_MSS) + 1), (TCP_SND_BUF) - 1) -#endif - -/** - * TCP_SNDQUEUELOWAT: TCP writable bufs (pbuf count). This must be less - * than TCP_SND_QUEUELEN. If the number of pbufs queued on a pcb drops below - * this number, select returns writable (combined with TCP_SNDLOWAT). - */ -#if !defined TCP_SNDQUEUELOWAT || defined __DOXYGEN__ -#define TCP_SNDQUEUELOWAT LWIP_MAX(((TCP_SND_QUEUELEN)/2), 5) -#endif - -/** - * TCP_OOSEQ_MAX_BYTES: The default maximum number of bytes queued on ooseq per - * pcb if TCP_OOSEQ_BYTES_LIMIT is not defined. Default is 0 (no limit). - * Only valid for TCP_QUEUE_OOSEQ==1. - */ -#if !defined TCP_OOSEQ_MAX_BYTES || defined __DOXYGEN__ -#define TCP_OOSEQ_MAX_BYTES 0 -#endif - -/** - * TCP_OOSEQ_BYTES_LIMIT(pcb): Return the maximum number of bytes to be queued - * on ooseq per pcb, given the pcb. Only valid for TCP_QUEUE_OOSEQ==1 && - * TCP_OOSEQ_MAX_BYTES==1. - * Use this to override TCP_OOSEQ_MAX_BYTES to a dynamic value per pcb. - */ -#if !defined TCP_OOSEQ_BYTES_LIMIT -#if TCP_OOSEQ_MAX_BYTES -#define TCP_OOSEQ_BYTES_LIMIT(pcb) TCP_OOSEQ_MAX_BYTES -#elif defined __DOXYGEN__ -#define TCP_OOSEQ_BYTES_LIMIT(pcb) -#endif -#endif - -/** - * TCP_OOSEQ_MAX_PBUFS: The default maximum number of pbufs queued on ooseq per - * pcb if TCP_OOSEQ_BYTES_LIMIT is not defined. Default is 0 (no limit). - * Only valid for TCP_QUEUE_OOSEQ==1. - */ -#if !defined TCP_OOSEQ_MAX_PBUFS || defined __DOXYGEN__ -#define TCP_OOSEQ_MAX_PBUFS 0 -#endif - -/** - * TCP_OOSEQ_PBUFS_LIMIT(pcb): Return the maximum number of pbufs to be queued - * on ooseq per pcb, given the pcb. Only valid for TCP_QUEUE_OOSEQ==1 && - * TCP_OOSEQ_MAX_PBUFS==1. - * Use this to override TCP_OOSEQ_MAX_PBUFS to a dynamic value per pcb. - */ -#if !defined TCP_OOSEQ_PBUFS_LIMIT -#if TCP_OOSEQ_MAX_PBUFS -#define TCP_OOSEQ_PBUFS_LIMIT(pcb) TCP_OOSEQ_MAX_PBUFS -#elif defined __DOXYGEN__ -#define TCP_OOSEQ_PBUFS_LIMIT(pcb) -#endif -#endif - -/** - * TCP_LISTEN_BACKLOG: Enable the backlog option for tcp listen pcb. - */ -#if !defined TCP_LISTEN_BACKLOG || defined __DOXYGEN__ -#define TCP_LISTEN_BACKLOG 0 -#endif - -/** - * The maximum allowed backlog for TCP listen netconns. - * This backlog is used unless another is explicitly specified. - * 0xff is the maximum (u8_t). - */ -#if !defined TCP_DEFAULT_LISTEN_BACKLOG || defined __DOXYGEN__ -#define TCP_DEFAULT_LISTEN_BACKLOG 0xff -#endif - -/** - * TCP_OVERSIZE: The maximum number of bytes that tcp_write may - * allocate ahead of time in an attempt to create shorter pbuf chains - * for transmission. The meaningful range is 0 to TCP_MSS. Some - * suggested values are: - * - * 0: Disable oversized allocation. Each tcp_write() allocates a new - pbuf (old behaviour). - * 1: Allocate size-aligned pbufs with minimal excess. Use this if your - * scatter-gather DMA requires aligned fragments. - * 128: Limit the pbuf/memory overhead to 20%. - * TCP_MSS: Try to create unfragmented TCP packets. - * TCP_MSS/4: Try to create 4 fragments or less per TCP packet. - */ -#if !defined TCP_OVERSIZE || defined __DOXYGEN__ -#define TCP_OVERSIZE TCP_MSS -#endif - -/** - * LWIP_TCP_TIMESTAMPS==1: support the TCP timestamp option. - * The timestamp option is currently only used to help remote hosts, it is not - * really used locally. Therefore, it is only enabled when a TS option is - * received in the initial SYN packet from a remote host. - */ -#if !defined LWIP_TCP_TIMESTAMPS || defined __DOXYGEN__ -#define LWIP_TCP_TIMESTAMPS 0 -#endif - -/** - * TCP_WND_UPDATE_THRESHOLD: difference in window to trigger an - * explicit window update - */ -#if !defined TCP_WND_UPDATE_THRESHOLD || defined __DOXYGEN__ -#define TCP_WND_UPDATE_THRESHOLD LWIP_MIN((TCP_WND / 4), (TCP_MSS * 4)) -#endif - -/** - * LWIP_EVENT_API and LWIP_CALLBACK_API: Only one of these should be set to 1. - * LWIP_EVENT_API==1: The user defines lwip_tcp_event() to receive all - * events (accept, sent, etc) that happen in the system. - * LWIP_CALLBACK_API==1: The PCB callback function is called directly - * for the event. This is the default. - */ -#if !defined(LWIP_EVENT_API) && !defined(LWIP_CALLBACK_API) || defined __DOXYGEN__ -#define LWIP_EVENT_API 0 -#define LWIP_CALLBACK_API 1 -#else -#ifndef LWIP_EVENT_API -#define LWIP_EVENT_API 0 -#endif -#ifndef LWIP_CALLBACK_API -#define LWIP_CALLBACK_API 0 -#endif -#endif - -/** - * LWIP_WND_SCALE and TCP_RCV_SCALE: - * Set LWIP_WND_SCALE to 1 to enable window scaling. - * Set TCP_RCV_SCALE to the desired scaling factor (shift count in the - * range of [0..14]). - * When LWIP_WND_SCALE is enabled but TCP_RCV_SCALE is 0, we can use a large - * send window while having a small receive window only. - */ -#if !defined LWIP_WND_SCALE || defined __DOXYGEN__ -#define LWIP_WND_SCALE 0 -#define TCP_RCV_SCALE 0 -#endif - -/** - * LWIP_TCP_PCB_NUM_EXT_ARGS: - * When this is > 0, every tcp pcb (including listen pcb) includes a number of - * additional argument entries in an array (see tcp_ext_arg_alloc_id) - */ -#if !defined LWIP_TCP_PCB_NUM_EXT_ARGS || defined __DOXYGEN__ -#define LWIP_TCP_PCB_NUM_EXT_ARGS 0 -#endif - -/** LWIP_ALTCP==1: enable the altcp API. - * altcp is an abstraction layer that prevents applications linking against the - * tcp.h functions but provides the same functionality. It is used to e.g. add - * SSL/TLS or proxy-connect support to an application written for the tcp callback - * API without that application knowing the protocol details. - * - * With LWIP_ALTCP==0, applications written against the altcp API can still be - * compiled but are directly linked against the tcp.h callback API and then - * cannot use layered protocols. - * - * See @ref altcp_api - */ -#if !defined LWIP_ALTCP || defined __DOXYGEN__ -#define LWIP_ALTCP 0 -#endif - -/** LWIP_ALTCP_TLS==1: enable TLS support for altcp API. - * This needs a port of the functions in altcp_tls.h to a TLS library. - * A port to ARM mbedtls is provided with lwIP, see apps/altcp_tls/ directory - * and LWIP_ALTCP_TLS_MBEDTLS option. - */ -#if !defined LWIP_ALTCP_TLS || defined __DOXYGEN__ -#define LWIP_ALTCP_TLS 0 -#endif - -/** - * @} - */ - -/* - ---------------------------------- - ---------- Pbuf options ---------- - ---------------------------------- -*/ -/** - * @defgroup lwip_opts_pbuf PBUF - * @ingroup lwip_opts - * @{ - */ -/** - * PBUF_LINK_HLEN: the number of bytes that should be allocated for a - * link level header. The default is 14, the standard value for - * Ethernet. - */ -#if !defined PBUF_LINK_HLEN || defined __DOXYGEN__ -#if defined LWIP_HOOK_VLAN_SET && !defined __DOXYGEN__ -#define PBUF_LINK_HLEN (18 + ETH_PAD_SIZE) -#else /* LWIP_HOOK_VLAN_SET */ -#define PBUF_LINK_HLEN (14 + ETH_PAD_SIZE) -#endif /* LWIP_HOOK_VLAN_SET */ -#endif - -/** - * PBUF_LINK_ENCAPSULATION_HLEN: the number of bytes that should be allocated - * for an additional encapsulation header before ethernet headers (e.g. 802.11) - */ -#if !defined PBUF_LINK_ENCAPSULATION_HLEN || defined __DOXYGEN__ -#define PBUF_LINK_ENCAPSULATION_HLEN 0 -#endif - -/** - * PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. The default is - * designed to accommodate single full size TCP frame in one pbuf, including - * TCP_MSS, IP header, and link header. - */ -#if !defined PBUF_POOL_BUFSIZE || defined __DOXYGEN__ -#define PBUF_POOL_BUFSIZE LWIP_MEM_ALIGN_SIZE(TCP_MSS+40+PBUF_LINK_ENCAPSULATION_HLEN+PBUF_LINK_HLEN) -#endif - -/** - * LWIP_PBUF_REF_T: Refcount type in pbuf. - * Default width of u8_t can be increased if 255 refs are not enough for you. - */ -#if !defined LWIP_PBUF_REF_T || defined __DOXYGEN__ -#define LWIP_PBUF_REF_T u8_t -#endif -/** - * @} - */ - -/* - ------------------------------------------------ - ---------- Network Interfaces options ---------- - ------------------------------------------------ -*/ -/** - * @defgroup lwip_opts_netif NETIF - * @ingroup lwip_opts - * @{ - */ -/** - * LWIP_SINGLE_NETIF==1: use a single netif only. This is the common case for - * small real-life targets. Some code like routing etc. can be left out. - */ -#if !defined LWIP_SINGLE_NETIF || defined __DOXYGEN__ -#define LWIP_SINGLE_NETIF 0 -#endif - -/** - * LWIP_NETIF_HOSTNAME==1: use DHCP_OPTION_HOSTNAME with netif's hostname - * field. - */ -#if !defined LWIP_NETIF_HOSTNAME || defined __DOXYGEN__ -#define LWIP_NETIF_HOSTNAME 0 -#endif - -/** - * LWIP_NETIF_API==1: Support netif api (in netifapi.c) - */ -#if !defined LWIP_NETIF_API || defined __DOXYGEN__ -#define LWIP_NETIF_API 0 -#endif - -/** - * LWIP_NETIF_STATUS_CALLBACK==1: Support a callback function whenever an interface - * changes its up/down status (i.e., due to DHCP IP acquisition) - */ -#if !defined LWIP_NETIF_STATUS_CALLBACK || defined __DOXYGEN__ -#define LWIP_NETIF_STATUS_CALLBACK 0 -#endif - -/** - * LWIP_NETIF_EXT_STATUS_CALLBACK==1: Support an extended callback function - * for several netif related event that supports multiple subscribers. - * @see netif_ext_status_callback - */ -#if !defined LWIP_NETIF_EXT_STATUS_CALLBACK || defined __DOXYGEN__ -#define LWIP_NETIF_EXT_STATUS_CALLBACK 0 -#endif - -/** - * LWIP_NETIF_LINK_CALLBACK==1: Support a callback function from an interface - * whenever the link changes (i.e., link down) - */ -#if !defined LWIP_NETIF_LINK_CALLBACK || defined __DOXYGEN__ -#define LWIP_NETIF_LINK_CALLBACK 0 -#endif - -/** - * LWIP_NETIF_REMOVE_CALLBACK==1: Support a callback function that is called - * when a netif has been removed - */ -#if !defined LWIP_NETIF_REMOVE_CALLBACK || defined __DOXYGEN__ -#define LWIP_NETIF_REMOVE_CALLBACK 0 -#endif - -/** - * LWIP_NETIF_HWADDRHINT==1: Cache link-layer-address hints (e.g. table - * indices) in struct netif. TCP and UDP can make use of this to prevent - * scanning the ARP table for every sent packet. While this is faster for big - * ARP tables or many concurrent connections, it might be counterproductive - * if you have a tiny ARP table or if there never are concurrent connections. - */ -#if !defined LWIP_NETIF_HWADDRHINT || defined __DOXYGEN__ -#define LWIP_NETIF_HWADDRHINT 0 -#endif - -/** - * LWIP_NETIF_TX_SINGLE_PBUF: if this is set to 1, lwIP *tries* to put all data - * to be sent into one single pbuf. This is for compatibility with DMA-enabled - * MACs that do not support scatter-gather. - * Beware that this might involve CPU-memcpy before transmitting that would not - * be needed without this flag! Use this only if you need to! - * - * ATTENTION: a driver should *NOT* rely on getting single pbufs but check TX - * pbufs for being in one piece. If not, @ref pbuf_clone can be used to get - * a single pbuf: - * if (p->next != NULL) { - * struct pbuf *q = pbuf_clone(PBUF_RAW, PBUF_RAM, p); - * if (q == NULL) { - * return ERR_MEM; - * } - * p = q; ATTENTION: do NOT free the old 'p' as the ref belongs to the caller! - * } - */ -#if !defined LWIP_NETIF_TX_SINGLE_PBUF || defined __DOXYGEN__ -#define LWIP_NETIF_TX_SINGLE_PBUF 0 -#endif /* LWIP_NETIF_TX_SINGLE_PBUF */ - -/** - * LWIP_NUM_NETIF_CLIENT_DATA: Number of clients that may store - * data in client_data member array of struct netif (max. 256). - */ -#if !defined LWIP_NUM_NETIF_CLIENT_DATA || defined __DOXYGEN__ -#define LWIP_NUM_NETIF_CLIENT_DATA 0 -#endif -/** - * @} - */ - -/* - ------------------------------------ - ---------- LOOPIF options ---------- - ------------------------------------ -*/ -/** - * @defgroup lwip_opts_loop Loopback interface - * @ingroup lwip_opts_netif - * @{ - */ -/** - * LWIP_HAVE_LOOPIF==1: Support loop interface (127.0.0.1). - * This is only needed when no real netifs are available. If at least one other - * netif is available, loopback traffic uses this netif. - */ -#if !defined LWIP_HAVE_LOOPIF || defined __DOXYGEN__ -#define LWIP_HAVE_LOOPIF (LWIP_NETIF_LOOPBACK && !LWIP_SINGLE_NETIF) -#endif - -/** - * LWIP_LOOPIF_MULTICAST==1: Support multicast/IGMP on loop interface (127.0.0.1). - */ -#if !defined LWIP_LOOPIF_MULTICAST || defined __DOXYGEN__ -#define LWIP_LOOPIF_MULTICAST 0 -#endif - -/** - * LWIP_NETIF_LOOPBACK==1: Support sending packets with a destination IP - * address equal to the netif IP address, looping them back up the stack. - */ -#if !defined LWIP_NETIF_LOOPBACK || defined __DOXYGEN__ -#define LWIP_NETIF_LOOPBACK 0 -#endif - -/** - * LWIP_LOOPBACK_MAX_PBUFS: Maximum number of pbufs on queue for loopback - * sending for each netif (0 = disabled) - */ -#if !defined LWIP_LOOPBACK_MAX_PBUFS || defined __DOXYGEN__ -#define LWIP_LOOPBACK_MAX_PBUFS 0 -#endif - -/** - * LWIP_NETIF_LOOPBACK_MULTITHREADING: Indicates whether threading is enabled in - * the system, as netifs must change how they behave depending on this setting - * for the LWIP_NETIF_LOOPBACK option to work. - * Setting this is needed to avoid reentering non-reentrant functions like - * tcp_input(). - * LWIP_NETIF_LOOPBACK_MULTITHREADING==1: Indicates that the user is using a - * multithreaded environment like tcpip.c. In this case, netif->input() - * is called directly. - * LWIP_NETIF_LOOPBACK_MULTITHREADING==0: Indicates a polling (or NO_SYS) setup. - * The packets are put on a list and netif_poll() must be called in - * the main application loop. - */ -#if !defined LWIP_NETIF_LOOPBACK_MULTITHREADING || defined __DOXYGEN__ -#define LWIP_NETIF_LOOPBACK_MULTITHREADING (!NO_SYS) -#endif -/** - * @} - */ - -/* - ------------------------------------ - ---------- Thread options ---------- - ------------------------------------ -*/ -/** - * @defgroup lwip_opts_thread Threading - * @ingroup lwip_opts_infrastructure - * @{ - */ -/** - * TCPIP_THREAD_NAME: The name assigned to the main tcpip thread. - */ -#if !defined TCPIP_THREAD_NAME || defined __DOXYGEN__ -#define TCPIP_THREAD_NAME "tcpip_thread" -#endif - -/** - * TCPIP_THREAD_STACKSIZE: The stack size used by the main tcpip thread. - * The stack size value itself is platform-dependent, but is passed to - * sys_thread_new() when the thread is created. - */ -#if !defined TCPIP_THREAD_STACKSIZE || defined __DOXYGEN__ -#define TCPIP_THREAD_STACKSIZE 0 -#endif - -/** - * TCPIP_THREAD_PRIO: The priority assigned to the main tcpip thread. - * The priority value itself is platform-dependent, but is passed to - * sys_thread_new() when the thread is created. - */ -#if !defined TCPIP_THREAD_PRIO || defined __DOXYGEN__ -#define TCPIP_THREAD_PRIO 1 -#endif - -/** - * TCPIP_MBOX_SIZE: The mailbox size for the tcpip thread messages - * The queue size value itself is platform-dependent, but is passed to - * sys_mbox_new() when tcpip_init is called. - */ -#if !defined TCPIP_MBOX_SIZE || defined __DOXYGEN__ -#define TCPIP_MBOX_SIZE 0 -#endif - -/** - * Define this to something that triggers a watchdog. This is called from - * tcpip_thread after processing a message. - */ -#if !defined LWIP_TCPIP_THREAD_ALIVE || defined __DOXYGEN__ -#define LWIP_TCPIP_THREAD_ALIVE() -#endif - -/** - * SLIPIF_THREAD_NAME: The name assigned to the slipif_loop thread. - */ -#if !defined SLIPIF_THREAD_NAME || defined __DOXYGEN__ -#define SLIPIF_THREAD_NAME "slipif_loop" -#endif - -/** - * SLIP_THREAD_STACKSIZE: The stack size used by the slipif_loop thread. - * The stack size value itself is platform-dependent, but is passed to - * sys_thread_new() when the thread is created. - */ -#if !defined SLIPIF_THREAD_STACKSIZE || defined __DOXYGEN__ -#define SLIPIF_THREAD_STACKSIZE 0 -#endif - -/** - * SLIPIF_THREAD_PRIO: The priority assigned to the slipif_loop thread. - * The priority value itself is platform-dependent, but is passed to - * sys_thread_new() when the thread is created. - */ -#if !defined SLIPIF_THREAD_PRIO || defined __DOXYGEN__ -#define SLIPIF_THREAD_PRIO 1 -#endif - -/** - * DEFAULT_THREAD_NAME: The name assigned to any other lwIP thread. - */ -#if !defined DEFAULT_THREAD_NAME || defined __DOXYGEN__ -#define DEFAULT_THREAD_NAME "lwIP" -#endif - -/** - * DEFAULT_THREAD_STACKSIZE: The stack size used by any other lwIP thread. - * The stack size value itself is platform-dependent, but is passed to - * sys_thread_new() when the thread is created. - */ -#if !defined DEFAULT_THREAD_STACKSIZE || defined __DOXYGEN__ -#define DEFAULT_THREAD_STACKSIZE 0 -#endif - -/** - * DEFAULT_THREAD_PRIO: The priority assigned to any other lwIP thread. - * The priority value itself is platform-dependent, but is passed to - * sys_thread_new() when the thread is created. - */ -#if !defined DEFAULT_THREAD_PRIO || defined __DOXYGEN__ -#define DEFAULT_THREAD_PRIO 1 -#endif - -/** - * DEFAULT_RAW_RECVMBOX_SIZE: The mailbox size for the incoming packets on a - * NETCONN_RAW. The queue size value itself is platform-dependent, but is passed - * to sys_mbox_new() when the recvmbox is created. - */ -#if !defined DEFAULT_RAW_RECVMBOX_SIZE || defined __DOXYGEN__ -#define DEFAULT_RAW_RECVMBOX_SIZE 0 -#endif - -/** - * DEFAULT_UDP_RECVMBOX_SIZE: The mailbox size for the incoming packets on a - * NETCONN_UDP. The queue size value itself is platform-dependent, but is passed - * to sys_mbox_new() when the recvmbox is created. - */ -#if !defined DEFAULT_UDP_RECVMBOX_SIZE || defined __DOXYGEN__ -#define DEFAULT_UDP_RECVMBOX_SIZE 0 -#endif - -/** - * DEFAULT_TCP_RECVMBOX_SIZE: The mailbox size for the incoming packets on a - * NETCONN_TCP. The queue size value itself is platform-dependent, but is passed - * to sys_mbox_new() when the recvmbox is created. - */ -#if !defined DEFAULT_TCP_RECVMBOX_SIZE || defined __DOXYGEN__ -#define DEFAULT_TCP_RECVMBOX_SIZE 0 -#endif - -/** - * DEFAULT_ACCEPTMBOX_SIZE: The mailbox size for the incoming connections. - * The queue size value itself is platform-dependent, but is passed to - * sys_mbox_new() when the acceptmbox is created. - */ -#if !defined DEFAULT_ACCEPTMBOX_SIZE || defined __DOXYGEN__ -#define DEFAULT_ACCEPTMBOX_SIZE 0 -#endif -/** - * @} - */ - -/* - ---------------------------------------------- - ---------- Sequential layer options ---------- - ---------------------------------------------- -*/ -/** - * @defgroup lwip_opts_netconn Netconn - * @ingroup lwip_opts_threadsafe_apis - * @{ - */ -/** - * LWIP_NETCONN==1: Enable Netconn API (require to use api_lib.c) - */ -#if !defined LWIP_NETCONN || defined __DOXYGEN__ -#define LWIP_NETCONN 1 -#endif - -/** LWIP_TCPIP_TIMEOUT==1: Enable tcpip_timeout/tcpip_untimeout to create - * timers running in tcpip_thread from another thread. - */ -#if !defined LWIP_TCPIP_TIMEOUT || defined __DOXYGEN__ -#define LWIP_TCPIP_TIMEOUT 0 -#endif - -/** LWIP_NETCONN_SEM_PER_THREAD==1: Use one (thread-local) semaphore per - * thread calling socket/netconn functions instead of allocating one - * semaphore per netconn (and per select etc.) - * ATTENTION: a thread-local semaphore for API calls is needed: - * - LWIP_NETCONN_THREAD_SEM_GET() returning a sys_sem_t* - * - LWIP_NETCONN_THREAD_SEM_ALLOC() creating the semaphore - * - LWIP_NETCONN_THREAD_SEM_FREE() freeing the semaphore - * The latter 2 can be invoked up by calling netconn_thread_init()/netconn_thread_cleanup(). - * Ports may call these for threads created with sys_thread_new(). - */ -#if !defined LWIP_NETCONN_SEM_PER_THREAD || defined __DOXYGEN__ -#define LWIP_NETCONN_SEM_PER_THREAD 0 -#endif - -/** LWIP_NETCONN_FULLDUPLEX==1: Enable code that allows reading from one thread, - * writing from a 2nd thread and closing from a 3rd thread at the same time. - * ATTENTION: This is currently really alpha! Some requirements: - * - LWIP_NETCONN_SEM_PER_THREAD==1 is required to use one socket/netconn from - * multiple threads at once - * - sys_mbox_free() has to unblock receive tasks waiting on recvmbox/acceptmbox - * and prevent a task pending on this during/after deletion - */ -#if !defined LWIP_NETCONN_FULLDUPLEX || defined __DOXYGEN__ -#define LWIP_NETCONN_FULLDUPLEX 0 -#endif -/** - * @} - */ - -/* - ------------------------------------ - ---------- Socket options ---------- - ------------------------------------ -*/ -/** - * @defgroup lwip_opts_socket Sockets - * @ingroup lwip_opts_threadsafe_apis - * @{ - */ -/** - * LWIP_SOCKET==1: Enable Socket API (require to use sockets.c) - */ -#if !defined LWIP_SOCKET || defined __DOXYGEN__ -#define LWIP_SOCKET 1 -#endif - -/** - * LWIP_COMPAT_SOCKETS==1: Enable BSD-style sockets functions names through defines. - * LWIP_COMPAT_SOCKETS==2: Same as ==1 but correctly named functions are created. - * While this helps code completion, it might conflict with existing libraries. - * (only used if you use sockets.c) - */ -#if !defined LWIP_COMPAT_SOCKETS || defined __DOXYGEN__ -#define LWIP_COMPAT_SOCKETS 1 -#endif - -/** - * LWIP_POSIX_SOCKETS_IO_NAMES==1: Enable POSIX-style sockets functions names. - * Disable this option if you use a POSIX operating system that uses the same - * names (read, write & close). (only used if you use sockets.c) - */ -#if !defined LWIP_POSIX_SOCKETS_IO_NAMES || defined __DOXYGEN__ -#define LWIP_POSIX_SOCKETS_IO_NAMES 1 -#endif - -/** - * LWIP_SOCKET_OFFSET==n: Increases the file descriptor number created by LwIP with n. - * This can be useful when there are multiple APIs which create file descriptors. - * When they all start with a different offset and you won't make them overlap you can - * re implement read/write/close/ioctl/fnctl to send the requested action to the right - * library (sharing select will need more work though). - */ -#if !defined LWIP_SOCKET_OFFSET || defined __DOXYGEN__ -#define LWIP_SOCKET_OFFSET 0 -#endif - -/** - * LWIP_TCP_KEEPALIVE==1: Enable TCP_KEEPIDLE, TCP_KEEPINTVL and TCP_KEEPCNT - * options processing. Note that TCP_KEEPIDLE and TCP_KEEPINTVL have to be set - * in seconds. (does not require sockets.c, and will affect tcp.c) - */ -#if !defined LWIP_TCP_KEEPALIVE || defined __DOXYGEN__ -#define LWIP_TCP_KEEPALIVE 0 -#endif - -/** - * LWIP_SO_SNDTIMEO==1: Enable send timeout for sockets/netconns and - * SO_SNDTIMEO processing. - */ -#if !defined LWIP_SO_SNDTIMEO || defined __DOXYGEN__ -#define LWIP_SO_SNDTIMEO 0 -#endif - -/** - * LWIP_SO_RCVTIMEO==1: Enable receive timeout for sockets/netconns and - * SO_RCVTIMEO processing. - */ -#if !defined LWIP_SO_RCVTIMEO || defined __DOXYGEN__ -#define LWIP_SO_RCVTIMEO 0 -#endif - -/** - * LWIP_SO_SNDRCVTIMEO_NONSTANDARD==1: SO_RCVTIMEO/SO_SNDTIMEO take an int - * (milliseconds, much like winsock does) instead of a struct timeval (default). - */ -#if !defined LWIP_SO_SNDRCVTIMEO_NONSTANDARD || defined __DOXYGEN__ -#define LWIP_SO_SNDRCVTIMEO_NONSTANDARD 0 -#endif - -/** - * LWIP_SO_RCVBUF==1: Enable SO_RCVBUF processing. - */ -#if !defined LWIP_SO_RCVBUF || defined __DOXYGEN__ -#define LWIP_SO_RCVBUF 0 -#endif - -/** - * LWIP_SO_LINGER==1: Enable SO_LINGER processing. - */ -#if !defined LWIP_SO_LINGER || defined __DOXYGEN__ -#define LWIP_SO_LINGER 0 -#endif - -/** - * If LWIP_SO_RCVBUF is used, this is the default value for recv_bufsize. - */ -#if !defined RECV_BUFSIZE_DEFAULT || defined __DOXYGEN__ -#define RECV_BUFSIZE_DEFAULT INT_MAX -#endif - -/** - * By default, TCP socket/netconn close waits 20 seconds max to send the FIN - */ -#if !defined LWIP_TCP_CLOSE_TIMEOUT_MS_DEFAULT || defined __DOXYGEN__ -#define LWIP_TCP_CLOSE_TIMEOUT_MS_DEFAULT 20000 -#endif - -/** - * SO_REUSE==1: Enable SO_REUSEADDR option. - */ -#if !defined SO_REUSE || defined __DOXYGEN__ -#define SO_REUSE 0 -#endif - -/** - * SO_REUSE_RXTOALL==1: Pass a copy of incoming broadcast/multicast packets - * to all local matches if SO_REUSEADDR is turned on. - * WARNING: Adds a memcpy for every packet if passing to more than one pcb! - */ -#if !defined SO_REUSE_RXTOALL || defined __DOXYGEN__ -#define SO_REUSE_RXTOALL 0 -#endif - -/** - * LWIP_FIONREAD_LINUXMODE==0 (default): ioctl/FIONREAD returns the amount of - * pending data in the network buffer. This is the way windows does it. It's - * the default for lwIP since it is smaller. - * LWIP_FIONREAD_LINUXMODE==1: ioctl/FIONREAD returns the size of the next - * pending datagram in bytes. This is the way linux does it. This code is only - * here for compatibility. - */ -#if !defined LWIP_FIONREAD_LINUXMODE || defined __DOXYGEN__ -#define LWIP_FIONREAD_LINUXMODE 0 -#endif - -/** - * LWIP_SOCKET_SELECT==1 (default): enable select() for sockets (uses a netconn - * callback to keep track of events). - * This saves RAM (counters per socket) and code (netconn event callback), which - * should improve performance a bit). - */ -#if !defined LWIP_SOCKET_SELECT || defined __DOXYGEN__ -#define LWIP_SOCKET_SELECT 1 -#endif - -/** - * LWIP_SOCKET_POLL==1 (default): enable poll() for sockets (including - * struct pollfd, nfds_t, and constants) - */ -#if !defined LWIP_SOCKET_POLL || defined __DOXYGEN__ -#define LWIP_SOCKET_POLL 1 -#endif -/** - * @} - */ - -/* - ---------------------------------------- - ---------- Statistics options ---------- - ---------------------------------------- -*/ -/** - * @defgroup lwip_opts_stats Statistics - * @ingroup lwip_opts_debug - * @{ - */ -/** - * LWIP_STATS==1: Enable statistics collection in lwip_stats. - */ -#if !defined LWIP_STATS || defined __DOXYGEN__ -#define LWIP_STATS 1 -#endif - -#if LWIP_STATS - -/** - * LWIP_STATS_DISPLAY==1: Compile in the statistics output functions. - */ -#if !defined LWIP_STATS_DISPLAY || defined __DOXYGEN__ -#define LWIP_STATS_DISPLAY 0 -#endif - -/** - * LINK_STATS==1: Enable link stats. - */ -#if !defined LINK_STATS || defined __DOXYGEN__ -#define LINK_STATS 1 -#endif - -/** - * ETHARP_STATS==1: Enable etharp stats. - */ -#if !defined ETHARP_STATS || defined __DOXYGEN__ -#define ETHARP_STATS (LWIP_ARP) -#endif - -/** - * IP_STATS==1: Enable IP stats. - */ -#if !defined IP_STATS || defined __DOXYGEN__ -#define IP_STATS 1 -#endif - -/** - * IPFRAG_STATS==1: Enable IP fragmentation stats. Default is - * on if using either frag or reass. - */ -#if !defined IPFRAG_STATS || defined __DOXYGEN__ -#define IPFRAG_STATS (IP_REASSEMBLY || IP_FRAG) -#endif - -/** - * ICMP_STATS==1: Enable ICMP stats. - */ -#if !defined ICMP_STATS || defined __DOXYGEN__ -#define ICMP_STATS 1 -#endif - -/** - * IGMP_STATS==1: Enable IGMP stats. - */ -#if !defined IGMP_STATS || defined __DOXYGEN__ -#define IGMP_STATS (LWIP_IGMP) -#endif - -/** - * UDP_STATS==1: Enable UDP stats. Default is on if - * UDP enabled, otherwise off. - */ -#if !defined UDP_STATS || defined __DOXYGEN__ -#define UDP_STATS (LWIP_UDP) -#endif - -/** - * TCP_STATS==1: Enable TCP stats. Default is on if TCP - * enabled, otherwise off. - */ -#if !defined TCP_STATS || defined __DOXYGEN__ -#define TCP_STATS (LWIP_TCP) -#endif - -/** - * MEM_STATS==1: Enable mem.c stats. - */ -#if !defined MEM_STATS || defined __DOXYGEN__ -#define MEM_STATS ((MEM_LIBC_MALLOC == 0) && (MEM_USE_POOLS == 0)) -#endif - -/** - * MEMP_STATS==1: Enable memp.c pool stats. - */ -#if !defined MEMP_STATS || defined __DOXYGEN__ -#define MEMP_STATS (MEMP_MEM_MALLOC == 0) -#endif - -/** - * SYS_STATS==1: Enable system stats (sem and mbox counts, etc). - */ -#if !defined SYS_STATS || defined __DOXYGEN__ -#define SYS_STATS (NO_SYS == 0) -#endif - -/** - * IP6_STATS==1: Enable IPv6 stats. - */ -#if !defined IP6_STATS || defined __DOXYGEN__ -#define IP6_STATS (LWIP_IPV6) -#endif - -/** - * ICMP6_STATS==1: Enable ICMP for IPv6 stats. - */ -#if !defined ICMP6_STATS || defined __DOXYGEN__ -#define ICMP6_STATS (LWIP_IPV6 && LWIP_ICMP6) -#endif - -/** - * IP6_FRAG_STATS==1: Enable IPv6 fragmentation stats. - */ -#if !defined IP6_FRAG_STATS || defined __DOXYGEN__ -#define IP6_FRAG_STATS (LWIP_IPV6 && (LWIP_IPV6_FRAG || LWIP_IPV6_REASS)) -#endif - -/** - * MLD6_STATS==1: Enable MLD for IPv6 stats. - */ -#if !defined MLD6_STATS || defined __DOXYGEN__ -#define MLD6_STATS (LWIP_IPV6 && LWIP_IPV6_MLD) -#endif - -/** - * ND6_STATS==1: Enable Neighbor discovery for IPv6 stats. - */ -#if !defined ND6_STATS || defined __DOXYGEN__ -#define ND6_STATS (LWIP_IPV6) -#endif - -/** - * MIB2_STATS==1: Stats for SNMP MIB2. - */ -#if !defined MIB2_STATS || defined __DOXYGEN__ -#define MIB2_STATS 0 -#endif - -#else - -#define LINK_STATS 0 -#define ETHARP_STATS 0 -#define IP_STATS 0 -#define IPFRAG_STATS 0 -#define ICMP_STATS 0 -#define IGMP_STATS 0 -#define UDP_STATS 0 -#define TCP_STATS 0 -#define MEM_STATS 0 -#define MEMP_STATS 0 -#define SYS_STATS 0 -#define LWIP_STATS_DISPLAY 0 -#define IP6_STATS 0 -#define ICMP6_STATS 0 -#define IP6_FRAG_STATS 0 -#define MLD6_STATS 0 -#define ND6_STATS 0 -#define MIB2_STATS 0 - -#endif /* LWIP_STATS */ -/** - * @} - */ - -/* - -------------------------------------- - ---------- Checksum options ---------- - -------------------------------------- -*/ -/** - * @defgroup lwip_opts_checksum Checksum - * @ingroup lwip_opts_infrastructure - * @{ - */ -/** - * LWIP_CHECKSUM_CTRL_PER_NETIF==1: Checksum generation/check can be enabled/disabled - * per netif. - * ATTENTION: if enabled, the CHECKSUM_GEN_* and CHECKSUM_CHECK_* defines must be enabled! - */ -#if !defined LWIP_CHECKSUM_CTRL_PER_NETIF || defined __DOXYGEN__ -#define LWIP_CHECKSUM_CTRL_PER_NETIF 0 -#endif - -/** - * CHECKSUM_GEN_IP==1: Generate checksums in software for outgoing IP packets. - */ -#if !defined CHECKSUM_GEN_IP || defined __DOXYGEN__ -#define CHECKSUM_GEN_IP 1 -#endif - -/** - * CHECKSUM_GEN_UDP==1: Generate checksums in software for outgoing UDP packets. - */ -#if !defined CHECKSUM_GEN_UDP || defined __DOXYGEN__ -#define CHECKSUM_GEN_UDP 1 -#endif - -/** - * CHECKSUM_GEN_TCP==1: Generate checksums in software for outgoing TCP packets. - */ -#if !defined CHECKSUM_GEN_TCP || defined __DOXYGEN__ -#define CHECKSUM_GEN_TCP 1 -#endif - -/** - * CHECKSUM_GEN_ICMP==1: Generate checksums in software for outgoing ICMP packets. - */ -#if !defined CHECKSUM_GEN_ICMP || defined __DOXYGEN__ -#define CHECKSUM_GEN_ICMP 1 -#endif - -/** - * CHECKSUM_GEN_ICMP6==1: Generate checksums in software for outgoing ICMP6 packets. - */ -#if !defined CHECKSUM_GEN_ICMP6 || defined __DOXYGEN__ -#define CHECKSUM_GEN_ICMP6 1 -#endif - -/** - * CHECKSUM_CHECK_IP==1: Check checksums in software for incoming IP packets. - */ -#if !defined CHECKSUM_CHECK_IP || defined __DOXYGEN__ -#define CHECKSUM_CHECK_IP 1 -#endif - -/** - * CHECKSUM_CHECK_UDP==1: Check checksums in software for incoming UDP packets. - */ -#if !defined CHECKSUM_CHECK_UDP || defined __DOXYGEN__ -#define CHECKSUM_CHECK_UDP 1 -#endif - -/** - * CHECKSUM_CHECK_TCP==1: Check checksums in software for incoming TCP packets. - */ -#if !defined CHECKSUM_CHECK_TCP || defined __DOXYGEN__ -#define CHECKSUM_CHECK_TCP 1 -#endif - -/** - * CHECKSUM_CHECK_ICMP==1: Check checksums in software for incoming ICMP packets. - */ -#if !defined CHECKSUM_CHECK_ICMP || defined __DOXYGEN__ -#define CHECKSUM_CHECK_ICMP 1 -#endif - -/** - * CHECKSUM_CHECK_ICMP6==1: Check checksums in software for incoming ICMPv6 packets - */ -#if !defined CHECKSUM_CHECK_ICMP6 || defined __DOXYGEN__ -#define CHECKSUM_CHECK_ICMP6 1 -#endif - -/** - * LWIP_CHECKSUM_ON_COPY==1: Calculate checksum when copying data from - * application buffers to pbufs. - */ -#if !defined LWIP_CHECKSUM_ON_COPY || defined __DOXYGEN__ -#define LWIP_CHECKSUM_ON_COPY 0 -#endif -/** - * @} - */ - -/* - --------------------------------------- - ---------- IPv6 options --------------- - --------------------------------------- -*/ -/** - * @defgroup lwip_opts_ipv6 IPv6 - * @ingroup lwip_opts - * @{ - */ -/** - * LWIP_IPV6==1: Enable IPv6 - */ -#if !defined LWIP_IPV6 || defined __DOXYGEN__ -#define LWIP_IPV6 0 -#endif - -/** - * IPV6_REASS_MAXAGE: Maximum time (in multiples of IP6_REASS_TMR_INTERVAL - so seconds, normally) - * a fragmented IP packet waits for all fragments to arrive. If not all fragments arrived - * in this time, the whole packet is discarded. - */ -#if !defined IPV6_REASS_MAXAGE || defined __DOXYGEN__ -#define IPV6_REASS_MAXAGE 60 -#endif - -/** - * LWIP_IPV6_SCOPES==1: Enable support for IPv6 address scopes, ensuring that - * e.g. link-local addresses are really treated as link-local. Disable this - * setting only for single-interface configurations. - * All addresses that have a scope according to the default policy (link-local - * unicast addresses, interface-local and link-local multicast addresses) should - * now have a zone set on them before being passed to the core API, although - * lwIP will currently attempt to select a zone on the caller's behalf when - * necessary. Applications that directly assign IPv6 addresses to interfaces - * (which is NOT recommended) must now ensure that link-local addresses carry - * the netif's zone. See the new ip6_zone.h header file for more information and - * relevant macros. For now it is still possible to turn off scopes support - * through the new LWIP_IPV6_SCOPES option. When upgrading an implementation that - * uses the core API directly, it is highly recommended to enable - * LWIP_IPV6_SCOPES_DEBUG at least for a while, to ensure e.g. proper address - * initialization. - */ -#if !defined LWIP_IPV6_SCOPES || defined __DOXYGEN__ -#define LWIP_IPV6_SCOPES (LWIP_IPV6 && !LWIP_SINGLE_NETIF) -#endif - -/** - * LWIP_IPV6_SCOPES_DEBUG==1: Perform run-time checks to verify that addresses - * are properly zoned (see ip6_zone.h on what that means) where it matters. - * Enabling this setting is highly recommended when upgrading from an existing - * installation that is not yet scope-aware; otherwise it may be too expensive. - */ -#if !defined LWIP_IPV6_SCOPES_DEBUG || defined __DOXYGEN__ -#define LWIP_IPV6_SCOPES_DEBUG 0 -#endif - -/** - * LWIP_IPV6_NUM_ADDRESSES: Number of IPv6 addresses per netif. - */ -#if !defined LWIP_IPV6_NUM_ADDRESSES || defined __DOXYGEN__ -#define LWIP_IPV6_NUM_ADDRESSES 3 -#endif - -/** - * LWIP_IPV6_FORWARD==1: Forward IPv6 packets across netifs - */ -#if !defined LWIP_IPV6_FORWARD || defined __DOXYGEN__ -#define LWIP_IPV6_FORWARD 0 -#endif - -/** - * LWIP_IPV6_FRAG==1: Fragment outgoing IPv6 packets that are too big. - */ -#if !defined LWIP_IPV6_FRAG || defined __DOXYGEN__ -#define LWIP_IPV6_FRAG 1 -#endif - -/** - * LWIP_IPV6_REASS==1: reassemble incoming IPv6 packets that fragmented - */ -#if !defined LWIP_IPV6_REASS || defined __DOXYGEN__ -#define LWIP_IPV6_REASS LWIP_IPV6 -#endif - -/** - * LWIP_IPV6_SEND_ROUTER_SOLICIT==1: Send router solicitation messages during - * network startup. - */ -#if !defined LWIP_IPV6_SEND_ROUTER_SOLICIT || defined __DOXYGEN__ -#define LWIP_IPV6_SEND_ROUTER_SOLICIT 1 -#endif - -/** - * LWIP_IPV6_AUTOCONFIG==1: Enable stateless address autoconfiguration as per RFC 4862. - */ -#if !defined LWIP_IPV6_AUTOCONFIG || defined __DOXYGEN__ -#define LWIP_IPV6_AUTOCONFIG LWIP_IPV6 -#endif - -/** - * LWIP_IPV6_ADDRESS_LIFETIMES==1: Keep valid and preferred lifetimes for each - * IPv6 address. Required for LWIP_IPV6_AUTOCONFIG. May still be enabled - * otherwise, in which case the application may assign address lifetimes with - * the appropriate macros. Addresses with no lifetime are assumed to be static. - * If this option is disabled, all addresses are assumed to be static. - */ -#if !defined LWIP_IPV6_ADDRESS_LIFETIMES || defined __DOXYGEN__ -#define LWIP_IPV6_ADDRESS_LIFETIMES LWIP_IPV6_AUTOCONFIG -#endif - -/** - * LWIP_IPV6_DUP_DETECT_ATTEMPTS=[0..7]: Number of duplicate address detection attempts. - */ -#if !defined LWIP_IPV6_DUP_DETECT_ATTEMPTS || defined __DOXYGEN__ -#define LWIP_IPV6_DUP_DETECT_ATTEMPTS 1 -#endif -/** - * @} - */ - -/** - * @defgroup lwip_opts_icmp6 ICMP6 - * @ingroup lwip_opts_ipv6 - * @{ - */ -/** - * LWIP_ICMP6==1: Enable ICMPv6 (mandatory per RFC) - */ -#if !defined LWIP_ICMP6 || defined __DOXYGEN__ -#define LWIP_ICMP6 LWIP_IPV6 -#endif - -/** - * LWIP_ICMP6_DATASIZE: bytes from original packet to send back in - * ICMPv6 error messages. - */ -#if !defined LWIP_ICMP6_DATASIZE || defined __DOXYGEN__ -#define LWIP_ICMP6_DATASIZE 8 -#endif - -/** - * LWIP_ICMP6_HL: default hop limit for ICMPv6 messages - */ -#if !defined LWIP_ICMP6_HL || defined __DOXYGEN__ -#define LWIP_ICMP6_HL 255 -#endif -/** - * @} - */ - -/** - * @defgroup lwip_opts_mld6 Multicast listener discovery - * @ingroup lwip_opts_ipv6 - * @{ - */ -/** - * LWIP_IPV6_MLD==1: Enable multicast listener discovery protocol. - * If LWIP_IPV6 is enabled but this setting is disabled, the MAC layer must - * indiscriminately pass all inbound IPv6 multicast traffic to lwIP. - */ -#if !defined LWIP_IPV6_MLD || defined __DOXYGEN__ -#define LWIP_IPV6_MLD LWIP_IPV6 -#endif - -/** - * MEMP_NUM_MLD6_GROUP: Max number of IPv6 multicast groups that can be joined. - * There must be enough groups so that each netif can join the solicited-node - * multicast group for each of its local addresses, plus one for MDNS if - * applicable, plus any number of groups to be joined on UDP sockets. - */ -#if !defined MEMP_NUM_MLD6_GROUP || defined __DOXYGEN__ -#define MEMP_NUM_MLD6_GROUP 4 -#endif -/** - * @} - */ - -/** - * @defgroup lwip_opts_nd6 Neighbor discovery - * @ingroup lwip_opts_ipv6 - * @{ - */ -/** - * LWIP_ND6_QUEUEING==1: queue outgoing IPv6 packets while MAC address - * is being resolved. - */ -#if !defined LWIP_ND6_QUEUEING || defined __DOXYGEN__ -#define LWIP_ND6_QUEUEING LWIP_IPV6 -#endif - -/** - * MEMP_NUM_ND6_QUEUE: Max number of IPv6 packets to queue during MAC resolution. - */ -#if !defined MEMP_NUM_ND6_QUEUE || defined __DOXYGEN__ -#define MEMP_NUM_ND6_QUEUE 20 -#endif - -/** - * LWIP_ND6_NUM_NEIGHBORS: Number of entries in IPv6 neighbor cache - */ -#if !defined LWIP_ND6_NUM_NEIGHBORS || defined __DOXYGEN__ -#define LWIP_ND6_NUM_NEIGHBORS 10 -#endif - -/** - * LWIP_ND6_NUM_DESTINATIONS: number of entries in IPv6 destination cache - */ -#if !defined LWIP_ND6_NUM_DESTINATIONS || defined __DOXYGEN__ -#define LWIP_ND6_NUM_DESTINATIONS 10 -#endif - -/** - * LWIP_ND6_NUM_PREFIXES: number of entries in IPv6 on-link prefixes cache - */ -#if !defined LWIP_ND6_NUM_PREFIXES || defined __DOXYGEN__ -#define LWIP_ND6_NUM_PREFIXES 5 -#endif - -/** - * LWIP_ND6_NUM_ROUTERS: number of entries in IPv6 default router cache - */ -#if !defined LWIP_ND6_NUM_ROUTERS || defined __DOXYGEN__ -#define LWIP_ND6_NUM_ROUTERS 3 -#endif - -/** - * LWIP_ND6_MAX_MULTICAST_SOLICIT: max number of multicast solicit messages to send - * (neighbor solicit and router solicit) - */ -#if !defined LWIP_ND6_MAX_MULTICAST_SOLICIT || defined __DOXYGEN__ -#define LWIP_ND6_MAX_MULTICAST_SOLICIT 3 -#endif - -/** - * LWIP_ND6_MAX_UNICAST_SOLICIT: max number of unicast neighbor solicitation messages - * to send during neighbor reachability detection. - */ -#if !defined LWIP_ND6_MAX_UNICAST_SOLICIT || defined __DOXYGEN__ -#define LWIP_ND6_MAX_UNICAST_SOLICIT 3 -#endif - -/** - * Unused: See ND RFC (time in milliseconds). - */ -#if !defined LWIP_ND6_MAX_ANYCAST_DELAY_TIME || defined __DOXYGEN__ -#define LWIP_ND6_MAX_ANYCAST_DELAY_TIME 1000 -#endif - -/** - * Unused: See ND RFC - */ -#if !defined LWIP_ND6_MAX_NEIGHBOR_ADVERTISEMENT || defined __DOXYGEN__ -#define LWIP_ND6_MAX_NEIGHBOR_ADVERTISEMENT 3 -#endif - -/** - * LWIP_ND6_REACHABLE_TIME: default neighbor reachable time (in milliseconds). - * May be updated by router advertisement messages. - */ -#if !defined LWIP_ND6_REACHABLE_TIME || defined __DOXYGEN__ -#define LWIP_ND6_REACHABLE_TIME 30000 -#endif - -/** - * LWIP_ND6_RETRANS_TIMER: default retransmission timer for solicitation messages - */ -#if !defined LWIP_ND6_RETRANS_TIMER || defined __DOXYGEN__ -#define LWIP_ND6_RETRANS_TIMER 1000 -#endif - -/** - * LWIP_ND6_DELAY_FIRST_PROBE_TIME: Delay before first unicast neighbor solicitation - * message is sent, during neighbor reachability detection. - */ -#if !defined LWIP_ND6_DELAY_FIRST_PROBE_TIME || defined __DOXYGEN__ -#define LWIP_ND6_DELAY_FIRST_PROBE_TIME 5000 -#endif - -/** - * LWIP_ND6_ALLOW_RA_UPDATES==1: Allow Router Advertisement messages to update - * Reachable time and retransmission timers, and netif MTU. - */ -#if !defined LWIP_ND6_ALLOW_RA_UPDATES || defined __DOXYGEN__ -#define LWIP_ND6_ALLOW_RA_UPDATES 1 -#endif - -/** - * LWIP_ND6_TCP_REACHABILITY_HINTS==1: Allow TCP to provide Neighbor Discovery - * with reachability hints for connected destinations. This helps avoid sending - * unicast neighbor solicitation messages. - */ -#if !defined LWIP_ND6_TCP_REACHABILITY_HINTS || defined __DOXYGEN__ -#define LWIP_ND6_TCP_REACHABILITY_HINTS 1 -#endif - -/** - * LWIP_ND6_RDNSS_MAX_DNS_SERVERS > 0: Use IPv6 Router Advertisement Recursive - * DNS Server Option (as per RFC 6106) to copy a defined maximum number of DNS - * servers to the DNS module. - */ -#if !defined LWIP_ND6_RDNSS_MAX_DNS_SERVERS || defined __DOXYGEN__ -#define LWIP_ND6_RDNSS_MAX_DNS_SERVERS 0 -#endif -/** - * @} - */ - -/** - * @defgroup lwip_opts_dhcpv6 DHCPv6 - * @ingroup lwip_opts_ipv6 - * @{ - */ -/** - * LWIP_IPV6_DHCP6==1: enable DHCPv6 stateful/stateless address autoconfiguration. - */ -#if !defined LWIP_IPV6_DHCP6 || defined __DOXYGEN__ -#define LWIP_IPV6_DHCP6 0 -#endif - -/** - * LWIP_IPV6_DHCP6_STATEFUL==1: enable DHCPv6 stateful address autoconfiguration. - * (not supported, yet!) - */ -#if !defined LWIP_IPV6_DHCP6_STATEFUL || defined __DOXYGEN__ -#define LWIP_IPV6_DHCP6_STATEFUL 0 -#endif - -/** - * LWIP_IPV6_DHCP6_STATELESS==1: enable DHCPv6 stateless address autoconfiguration. - */ -#if !defined LWIP_IPV6_DHCP6_STATELESS || defined __DOXYGEN__ -#define LWIP_IPV6_DHCP6_STATELESS LWIP_IPV6_DHCP6 -#endif - -/** - * LWIP_DHCP6_GETS_NTP==1: Request NTP servers via DHCPv6. For each - * response packet, a callback is called, which has to be provided by the port: - * void dhcp6_set_ntp_servers(u8_t num_ntp_servers, ip_addr_t* ntp_server_addrs); -*/ -#if !defined LWIP_DHCP6_GET_NTP_SRV || defined __DOXYGEN__ -#define LWIP_DHCP6_GET_NTP_SRV 0 -#endif - -/** - * The maximum of NTP servers requested - */ -#if !defined LWIP_DHCP6_MAX_NTP_SERVERS || defined __DOXYGEN__ -#define LWIP_DHCP6_MAX_NTP_SERVERS 1 -#endif - -/** - * LWIP_DHCP6_MAX_DNS_SERVERS > 0: Request DNS servers via DHCPv6. - * DNS servers received in the response are passed to DNS via @ref dns_setserver() - * (up to the maximum limit defined here). - */ -#if !defined LWIP_DHCP6_MAX_DNS_SERVERS || defined __DOXYGEN__ -#define LWIP_DHCP6_MAX_DNS_SERVERS DNS_MAX_SERVERS -#endif -/** - * @} - */ - -/* - --------------------------------------- - ---------- Hook options --------------- - --------------------------------------- -*/ - -/** - * @defgroup lwip_opts_hooks Hooks - * @ingroup lwip_opts_infrastructure - * Hooks are undefined by default, define them to a function if you need them. - * @{ - */ - -/** - * LWIP_HOOK_FILENAME: Custom filename to \#include in files that provide hooks. - * Declare your hook function prototypes in there, you may also \#include all headers - * providing data types that are need in this file. - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_FILENAME "path/to/my/lwip_hooks.h" -#endif - -/** - * LWIP_HOOK_TCP_ISN: - * Hook for generation of the Initial Sequence Number (ISN) for a new TCP - * connection. The default lwIP ISN generation algorithm is very basic and may - * allow for TCP spoofing attacks. This hook provides the means to implement - * the standardized ISN generation algorithm from RFC 6528 (see contrib/adons/tcp_isn), - * or any other desired algorithm as a replacement. - * Called from tcp_connect() and tcp_listen_input() when an ISN is needed for - * a new TCP connection, if TCP support (@ref LWIP_TCP) is enabled.\n - * Signature:\code{.c} - * u32_t my_hook_tcp_isn(const ip_addr_t* local_ip, u16_t local_port, const ip_addr_t* remote_ip, u16_t remote_port); - * \endcode - * - it may be necessary to use "struct ip_addr" (ip4_addr, ip6_addr) instead of "ip_addr_t" in function declarations\n - * Arguments: - * - local_ip: pointer to the local IP address of the connection - * - local_port: local port number of the connection (host-byte order) - * - remote_ip: pointer to the remote IP address of the connection - * - remote_port: remote port number of the connection (host-byte order)\n - * Return value: - * - the 32-bit Initial Sequence Number to use for the new TCP connection. - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_TCP_ISN(local_ip, local_port, remote_ip, remote_port) -#endif - -/** - * LWIP_HOOK_TCP_INPACKET_PCB: - * Hook for intercepting incoming packets before they are passed to a pcb. This - * allows updating some state or even dropping a packet. - * Signature:\code{.c} - * err_t my_hook_tcp_inpkt(struct tcp_pcb *pcb, struct tcp_hdr *hdr, u16_t optlen, u16_t opt1len, u8_t *opt2, struct pbuf *p); - * \endcode - * Arguments: - * - pcb: tcp_pcb selected for input of this packet (ATTENTION: this may be - * struct tcp_pcb_listen if pcb->state == LISTEN) - * - hdr: pointer to tcp header (ATTENTION: tcp options may not be in one piece!) - * - optlen: tcp option length - * - opt1len: tcp option length 1st part - * - opt2: if this is != NULL, tcp options are split among 2 pbufs. In that case, - * options start at right after the tcp header ('(u8_t*)(hdr + 1)') for - * the first 'opt1len' bytes and the rest starts at 'opt2'. opt2len can - * be simply calculated: 'opt2len = optlen - opt1len;' - * - p: input packet, p->payload points to application data (that's why tcp hdr - * and options are passed in seperately) - * Return value: - * - ERR_OK: continue input of this packet as normal - * - != ERR_OK: drop this packet for input (don't continue input processing) - * - * ATTENTION: don't call any tcp api functions that might change tcp state (pcb - * state or any pcb lists) from this callback! - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_TCP_INPACKET_PCB(pcb, hdr, optlen, opt1len, opt2, p) -#endif - -/** - * LWIP_HOOK_TCP_OUT_TCPOPT_LENGTH: - * Hook for increasing the size of the options allocated with a tcp header. - * Together with LWIP_HOOK_TCP_OUT_ADD_TCPOPTS, this can be used to add custom - * options to outgoing tcp segments. - * Signature:\code{.c} - * u8_t my_hook_tcp_out_tcpopt_length(const struct tcp_pcb *pcb, u8_t internal_option_length); - * \endcode - * Arguments: - * - pcb: tcp_pcb that transmits (ATTENTION: this may be NULL or - * struct tcp_pcb_listen if pcb->state == LISTEN) - * - internal_option_length: tcp option length used by the stack internally - * Return value: - * - a number of bytes to allocate for tcp options (internal_option_length <= ret <= 40) - * - * ATTENTION: don't call any tcp api functions that might change tcp state (pcb - * state or any pcb lists) from this callback! - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_TCP_OUT_TCPOPT_LENGTH(pcb, internal_len) -#endif - -/** - * LWIP_HOOK_TCP_OUT_ADD_TCPOPTS: - * Hook for adding custom options to outgoing tcp segments. - * Space for these custom options has to be reserved via LWIP_HOOK_TCP_OUT_TCPOPT_LENGTH. - * Signature:\code{.c} - * u32_t *my_hook_tcp_out_add_tcpopts(struct pbuf *p, struct tcp_hdr *hdr, const struct tcp_pcb *pcb, u32_t *opts); - * \endcode - * Arguments: - * - p: output packet, p->payload pointing to tcp header, data follows - * - hdr: tcp header - * - pcb: tcp_pcb that transmits (ATTENTION: this may be NULL or - * struct tcp_pcb_listen if pcb->state == LISTEN) - * - opts: pointer where to add the custom options (there may already be options - * between the header and these) - * Return value: - * - pointer pointing directly after the inserted options - * - * ATTENTION: don't call any tcp api functions that might change tcp state (pcb - * state or any pcb lists) from this callback! - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_TCP_OUT_ADD_TCPOPTS(p, hdr, pcb, opts) -#endif - -/** - * LWIP_HOOK_IP4_INPUT(pbuf, input_netif): - * Called from ip_input() (IPv4) - * Signature:\code{.c} - * int my_hook(struct pbuf *pbuf, struct netif *input_netif); - * \endcode - * Arguments: - * - pbuf: received struct pbuf passed to ip_input() - * - input_netif: struct netif on which the packet has been received - * Return values: - * - 0: Hook has not consumed the packet, packet is processed as normal - * - != 0: Hook has consumed the packet. - * If the hook consumed the packet, 'pbuf' is in the responsibility of the hook - * (i.e. free it when done). - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_IP4_INPUT(pbuf, input_netif) -#endif - -/** - * LWIP_HOOK_IP4_ROUTE(dest): - * Called from ip_route() (IPv4) - * Signature:\code{.c} - * struct netif *my_hook(const ip4_addr_t *dest); - * \endcode - * Arguments: - * - dest: destination IPv4 address - * Returns values: - * - the destination netif - * - NULL if no destination netif is found. In that case, ip_route() continues as normal. - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_IP4_ROUTE() -#endif - -/** - * LWIP_HOOK_IP4_ROUTE_SRC(src, dest): - * Source-based routing for IPv4 - called from ip_route() (IPv4) - * Signature:\code{.c} - * struct netif *my_hook(const ip4_addr_t *src, const ip4_addr_t *dest); - * \endcode - * Arguments: - * - src: local/source IPv4 address - * - dest: destination IPv4 address - * Returns values: - * - the destination netif - * - NULL if no destination netif is found. In that case, ip_route() continues as normal. - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_IP4_ROUTE_SRC(src, dest) -#endif - -/** - * LWIP_HOOK_IP4_CANFORWARD(src, dest): - * Check if an IPv4 can be forwarded - called from: - * ip4_input() -> ip4_forward() -> ip4_canforward() (IPv4) - * - source address is available via ip4_current_src_addr() - * - calling an output function in this context (e.g. multicast router) is allowed - * Signature:\code{.c} - * int my_hook(struct pbuf *p, u32_t dest_addr_hostorder); - * \endcode - * Arguments: - * - p: packet to forward - * - dest: destination IPv4 address - * Returns values: - * - 1: forward - * - 0: don't forward - * - -1: no decision. In that case, ip4_canforward() continues as normal. - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_IP4_CANFORWARD(src, dest) -#endif - -/** - * LWIP_HOOK_ETHARP_GET_GW(netif, dest): - * Called from etharp_output() (IPv4) - * Signature:\code{.c} - * const ip4_addr_t *my_hook(struct netif *netif, const ip4_addr_t *dest); - * \endcode - * Arguments: - * - netif: the netif used for sending - * - dest: the destination IPv4 address - * Return values: - * - the IPv4 address of the gateway to handle the specified destination IPv4 address - * - NULL, in which case the netif's default gateway is used - * - * The returned address MUST be directly reachable on the specified netif! - * This function is meant to implement advanced IPv4 routing together with - * LWIP_HOOK_IP4_ROUTE(). The actual routing/gateway table implementation is - * not part of lwIP but can e.g. be hidden in the netif's state argument. -*/ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_ETHARP_GET_GW(netif, dest) -#endif - -/** - * LWIP_HOOK_IP6_INPUT(pbuf, input_netif): - * Called from ip6_input() (IPv6) - * Signature:\code{.c} - * int my_hook(struct pbuf *pbuf, struct netif *input_netif); - * \endcode - * Arguments: - * - pbuf: received struct pbuf passed to ip6_input() - * - input_netif: struct netif on which the packet has been received - * Return values: - * - 0: Hook has not consumed the packet, packet is processed as normal - * - != 0: Hook has consumed the packet. - * If the hook consumed the packet, 'pbuf' is in the responsibility of the hook - * (i.e. free it when done). - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_IP6_INPUT(pbuf, input_netif) -#endif - -/** - * LWIP_HOOK_IP6_ROUTE(src, dest): - * Called from ip_route() (IPv6) - * Signature:\code{.c} - * struct netif *my_hook(const ip6_addr_t *dest, const ip6_addr_t *src); - * \endcode - * Arguments: - * - src: source IPv6 address - * - dest: destination IPv6 address - * Return values: - * - the destination netif - * - NULL if no destination netif is found. In that case, ip6_route() continues as normal. - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_IP6_ROUTE(src, dest) -#endif - -/** - * LWIP_HOOK_ND6_GET_GW(netif, dest): - * Called from nd6_get_next_hop_entry() (IPv6) - * Signature:\code{.c} - * const ip6_addr_t *my_hook(struct netif *netif, const ip6_addr_t *dest); - * \endcode - * Arguments: - * - netif: the netif used for sending - * - dest: the destination IPv6 address - * Return values: - * - the IPv6 address of the next hop to handle the specified destination IPv6 address - * - NULL, in which case a NDP-discovered router is used instead - * - * The returned address MUST be directly reachable on the specified netif! - * This function is meant to implement advanced IPv6 routing together with - * LWIP_HOOK_IP6_ROUTE(). The actual routing/gateway table implementation is - * not part of lwIP but can e.g. be hidden in the netif's state argument. -*/ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_ND6_GET_GW(netif, dest) -#endif - -/** - * LWIP_HOOK_VLAN_CHECK(netif, eth_hdr, vlan_hdr): - * Called from ethernet_input() if VLAN support is enabled - * Signature:\code{.c} - * int my_hook(struct netif *netif, struct eth_hdr *eth_hdr, struct eth_vlan_hdr *vlan_hdr); - * \endcode - * Arguments: - * - netif: struct netif on which the packet has been received - * - eth_hdr: struct eth_hdr of the packet - * - vlan_hdr: struct eth_vlan_hdr of the packet - * Return values: - * - 0: Packet must be dropped. - * - != 0: Packet must be accepted. - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_VLAN_CHECK(netif, eth_hdr, vlan_hdr) -#endif - -/** - * LWIP_HOOK_VLAN_SET: - * Hook can be used to set prio_vid field of vlan_hdr. If you need to store data - * on per-netif basis to implement this callback, see @ref netif_cd. - * Called from ethernet_output() if VLAN support (@ref ETHARP_SUPPORT_VLAN) is enabled.\n - * Signature:\code{.c} - * s32_t my_hook_vlan_set(struct netif* netif, struct pbuf* pbuf, const struct eth_addr* src, const struct eth_addr* dst, u16_t eth_type);\n - * \endcode - * Arguments: - * - netif: struct netif that the packet will be sent through - * - p: struct pbuf packet to be sent - * - src: source eth address - * - dst: destination eth address - * - eth_type: ethernet type to packet to be sent\n - * - * - * Return values: - * - <0: Packet shall not contain VLAN header. - * - 0 <= return value <= 0xFFFF: Packet shall contain VLAN header. Return value is prio_vid in host byte order. - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_VLAN_SET(netif, p, src, dst, eth_type) -#endif - -/** - * LWIP_HOOK_MEMP_AVAILABLE(memp_t_type): - * Called from memp_free() when a memp pool was empty and an item is now available - * Signature:\code{.c} - * void my_hook(memp_t type); - * \endcode - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_MEMP_AVAILABLE(memp_t_type) -#endif - -/** - * LWIP_HOOK_UNKNOWN_ETH_PROTOCOL(pbuf, netif): - * Called from ethernet_input() when an unknown eth type is encountered. - * Signature:\code{.c} - * err_t my_hook(struct pbuf* pbuf, struct netif* netif); - * \endcode - * Arguments: - * - p: rx packet with unknown eth type - * - netif: netif on which the packet has been received - * Return values: - * - ERR_OK if packet is accepted (hook function now owns the pbuf) - * - any error code otherwise (pbuf is freed) - * - * Payload points to ethernet header! - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_UNKNOWN_ETH_PROTOCOL(pbuf, netif) -#endif - -/** - * LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, state, msg, msg_type, options_len_ptr): - * Called from various dhcp functions when sending a DHCP message. - * This hook is called just before the DHCP message trailer is added, so the - * options are at the end of a DHCP message. - * Signature:\code{.c} - * void my_hook(struct netif *netif, struct dhcp *dhcp, u8_t state, struct dhcp_msg *msg, - * u8_t msg_type, u16_t *options_len_ptr); - * \endcode - * Arguments: - * - netif: struct netif that the packet will be sent through - * - dhcp: struct dhcp on that netif - * - state: current dhcp state (dhcp_state_enum_t as an u8_t) - * - msg: struct dhcp_msg that will be sent - * - msg_type: dhcp message type to be sent (u8_t) - * - options_len_ptr: pointer to the current length of options in the dhcp_msg "msg" - * (must be increased when options are added!) - * - * Options need to appended like this: - * LWIP_ASSERT("dhcp option overflow", *options_len_ptr + option_len + 2 <= DHCP_OPTIONS_LEN); - * msg->options[(*options_len_ptr)++] = <option_number>; - * msg->options[(*options_len_ptr)++] = <option_len>; - * msg->options[(*options_len_ptr)++] = <option_bytes>; - * [...] - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, state, msg, msg_type, options_len_ptr) -#endif - -/** - * LWIP_HOOK_DHCP_PARSE_OPTION(netif, dhcp, state, msg, msg_type, option, len, pbuf, option_value_offset): - * Called from dhcp_parse_reply when receiving a DHCP message. - * This hook is called for every option in the received message that is not handled internally. - * Signature:\code{.c} - * void my_hook(struct netif *netif, struct dhcp *dhcp, u8_t state, struct dhcp_msg *msg, - * u8_t msg_type, u8_t option, u8_t option_len, struct pbuf *pbuf, u16_t option_value_offset); - * \endcode - * Arguments: - * - netif: struct netif that the packet will be sent through - * - dhcp: struct dhcp on that netif - * - state: current dhcp state (dhcp_state_enum_t as an u8_t) - * - msg: struct dhcp_msg that was received - * - msg_type: dhcp message type received (u8_t, ATTENTION: only valid after - * the message type option has been parsed!) - * - option: option value (u8_t) - * - len: option data length (u8_t) - * - pbuf: pbuf where option data is contained - * - option_value_offset: offset in pbuf where option data begins - * - * A nice way to get the option contents is pbuf_get_contiguous(): - * u8_t buf[32]; - * u8_t *ptr = (u8_t*)pbuf_get_contiguous(p, buf, sizeof(buf), LWIP_MIN(option_len, sizeof(buf)), offset); - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_DHCP_PARSE_OPTION(netif, dhcp, state, msg, msg_type, option, len, pbuf, offset) -#endif - -/** - * LWIP_HOOK_DHCP6_APPEND_OPTIONS(netif, dhcp6, state, msg, msg_type, options_len_ptr, max_len): - * Called from various dhcp6 functions when sending a DHCP6 message. - * This hook is called just before the DHCP6 message is sent, so the - * options are at the end of a DHCP6 message. - * Signature:\code{.c} - * void my_hook(struct netif *netif, struct dhcp6 *dhcp, u8_t state, struct dhcp6_msg *msg, - * u8_t msg_type, u16_t *options_len_ptr); - * \endcode - * Arguments: - * - netif: struct netif that the packet will be sent through - * - dhcp6: struct dhcp6 on that netif - * - state: current dhcp6 state (dhcp6_state_enum_t as an u8_t) - * - msg: struct dhcp6_msg that will be sent - * - msg_type: dhcp6 message type to be sent (u8_t) - * - options_len_ptr: pointer to the current length of options in the dhcp6_msg "msg" - * (must be increased when options are added!) - * - * Options need to appended like this: - * u8_t *options = (u8_t *)(msg + 1); - * LWIP_ASSERT("dhcp option overflow", sizeof(struct dhcp6_msg) + *options_len_ptr + newoptlen <= max_len); - * options[(*options_len_ptr)++] = <option_data>; - * [...] - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_DHCP6_APPEND_OPTIONS(netif, dhcp6, state, msg, msg_type, options_len_ptr, max_len) -#endif - -/** - * LWIP_HOOK_SOCKETS_SETSOCKOPT(s, sock, level, optname, optval, optlen, err) - * Called from socket API to implement setsockopt() for options not provided by lwIP. - * Core lock is held when this hook is called. - * Signature:\code{.c} - * int my_hook(int s, struct lwip_sock *sock, int level, int optname, const void *optval, socklen_t optlen, int *err) - * \endcode - * Arguments: - * - s: socket file descriptor - * - sock: internal socket descriptor (see lwip/priv/sockets_priv.h) - * - level: protocol level at which the option resides - * - optname: option to set - * - optval: value to set - * - optlen: size of optval - * - err: output error - * Return values: - * - 0: Hook has not consumed the option, code continues as normal (to internal options) - * - != 0: Hook has consumed the option, 'err' is returned - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_SOCKETS_SETSOCKOPT(s, sock, level, optname, optval, optlen, err) -#endif - -/** - * LWIP_HOOK_SOCKETS_GETSOCKOPT(s, sock, level, optname, optval, optlen, err) - * Called from socket API to implement getsockopt() for options not provided by lwIP. - * Core lock is held when this hook is called. - * Signature:\code{.c} - * int my_hook(int s, struct lwip_sock *sock, int level, int optname, void *optval, socklen_t *optlen, int *err) - * \endcode - * Arguments: - * - s: socket file descriptor - * - sock: internal socket descriptor (see lwip/priv/sockets_priv.h) - * - level: protocol level at which the option resides - * - optname: option to get - * - optval: value to get - * - optlen: size of optval - * - err: output error - * Return values: - * - 0: Hook has not consumed the option, code continues as normal (to internal options) - * - != 0: Hook has consumed the option, 'err' is returned - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_SOCKETS_GETSOCKOPT(s, sock, level, optname, optval, optlen, err) -#endif - -/** - * LWIP_HOOK_NETCONN_EXTERNAL_RESOLVE(name, addr, addrtype, err) - * Called from netconn APIs (not usable with callback apps) allowing an - * external DNS resolver (which uses sequential API) to handle the query. - * Signature:\code{.c} - * int my_hook(const char *name, ip_addr_t *addr, u8_t addrtype, err_t *err) - * \endcode - * Arguments: - * - name: hostname to resolve - * - addr: output host address - * - addrtype: type of address to query - * - err: output error - * Return values: - * - 0: Hook has not consumed hostname query, query continues into DNS module - * - != 0: Hook has consumed the query - * - * err must also be checked to determine if the hook consumed the query, but - * the query failed - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_NETCONN_EXTERNAL_RESOLVE(name, addr, addrtype, err) -#endif -/** - * @} - */ - -/* - --------------------------------------- - ---------- Debugging options ---------- - --------------------------------------- -*/ -/** - * @defgroup lwip_opts_debugmsg Debug messages - * @ingroup lwip_opts_debug - * @{ - */ -/** - * LWIP_DBG_MIN_LEVEL: After masking, the value of the debug is - * compared against this value. If it is smaller, then debugging - * messages are written. - * @see debugging_levels - */ -#if !defined LWIP_DBG_MIN_LEVEL || defined __DOXYGEN__ -#define LWIP_DBG_MIN_LEVEL LWIP_DBG_LEVEL_ALL -#endif - -/** - * LWIP_DBG_TYPES_ON: A mask that can be used to globally enable/disable - * debug messages of certain types. - * @see debugging_levels - */ -#if !defined LWIP_DBG_TYPES_ON || defined __DOXYGEN__ -#define LWIP_DBG_TYPES_ON LWIP_DBG_ON -#endif - -/** - * ETHARP_DEBUG: Enable debugging in etharp.c. - */ -#if !defined ETHARP_DEBUG || defined __DOXYGEN__ -#define ETHARP_DEBUG LWIP_DBG_OFF -#endif - -/** - * NETIF_DEBUG: Enable debugging in netif.c. - */ -#if !defined NETIF_DEBUG || defined __DOXYGEN__ -#define NETIF_DEBUG LWIP_DBG_OFF -#endif - -/** - * PBUF_DEBUG: Enable debugging in pbuf.c. - */ -#if !defined PBUF_DEBUG || defined __DOXYGEN__ -#define PBUF_DEBUG LWIP_DBG_OFF -#endif - -/** - * API_LIB_DEBUG: Enable debugging in api_lib.c. - */ -#if !defined API_LIB_DEBUG || defined __DOXYGEN__ -#define API_LIB_DEBUG LWIP_DBG_OFF -#endif - -/** - * API_MSG_DEBUG: Enable debugging in api_msg.c. - */ -#if !defined API_MSG_DEBUG || defined __DOXYGEN__ -#define API_MSG_DEBUG LWIP_DBG_OFF -#endif - -/** - * SOCKETS_DEBUG: Enable debugging in sockets.c. - */ -#if !defined SOCKETS_DEBUG || defined __DOXYGEN__ -#define SOCKETS_DEBUG LWIP_DBG_OFF -#endif - -/** - * ICMP_DEBUG: Enable debugging in icmp.c. - */ -#if !defined ICMP_DEBUG || defined __DOXYGEN__ -#define ICMP_DEBUG LWIP_DBG_OFF -#endif - -/** - * IGMP_DEBUG: Enable debugging in igmp.c. - */ -#if !defined IGMP_DEBUG || defined __DOXYGEN__ -#define IGMP_DEBUG LWIP_DBG_OFF -#endif - -/** - * INET_DEBUG: Enable debugging in inet.c. - */ -#if !defined INET_DEBUG || defined __DOXYGEN__ -#define INET_DEBUG LWIP_DBG_OFF -#endif - -/** - * IP_DEBUG: Enable debugging for IP. - */ -#if !defined IP_DEBUG || defined __DOXYGEN__ -#define IP_DEBUG LWIP_DBG_OFF -#endif - -/** - * IP_REASS_DEBUG: Enable debugging in ip_frag.c for both frag & reass. - */ -#if !defined IP_REASS_DEBUG || defined __DOXYGEN__ -#define IP_REASS_DEBUG LWIP_DBG_OFF -#endif - -/** - * RAW_DEBUG: Enable debugging in raw.c. - */ -#if !defined RAW_DEBUG || defined __DOXYGEN__ -#define RAW_DEBUG LWIP_DBG_OFF -#endif - -/** - * MEM_DEBUG: Enable debugging in mem.c. - */ -#if !defined MEM_DEBUG || defined __DOXYGEN__ -#define MEM_DEBUG LWIP_DBG_OFF -#endif - -/** - * MEMP_DEBUG: Enable debugging in memp.c. - */ -#if !defined MEMP_DEBUG || defined __DOXYGEN__ -#define MEMP_DEBUG LWIP_DBG_OFF -#endif - -/** - * SYS_DEBUG: Enable debugging in sys.c. - */ -#if !defined SYS_DEBUG || defined __DOXYGEN__ -#define SYS_DEBUG LWIP_DBG_OFF -#endif - -/** - * TIMERS_DEBUG: Enable debugging in timers.c. - */ -#if !defined TIMERS_DEBUG || defined __DOXYGEN__ -#define TIMERS_DEBUG LWIP_DBG_OFF -#endif - -/** - * TCP_DEBUG: Enable debugging for TCP. - */ -#if !defined TCP_DEBUG || defined __DOXYGEN__ -#define TCP_DEBUG LWIP_DBG_OFF -#endif - -/** - * TCP_INPUT_DEBUG: Enable debugging in tcp_in.c for incoming debug. - */ -#if !defined TCP_INPUT_DEBUG || defined __DOXYGEN__ -#define TCP_INPUT_DEBUG LWIP_DBG_OFF -#endif - -/** - * TCP_FR_DEBUG: Enable debugging in tcp_in.c for fast retransmit. - */ -#if !defined TCP_FR_DEBUG || defined __DOXYGEN__ -#define TCP_FR_DEBUG LWIP_DBG_OFF -#endif - -/** - * TCP_RTO_DEBUG: Enable debugging in TCP for retransmit - * timeout. - */ -#if !defined TCP_RTO_DEBUG || defined __DOXYGEN__ -#define TCP_RTO_DEBUG LWIP_DBG_OFF -#endif - -/** - * TCP_CWND_DEBUG: Enable debugging for TCP congestion window. - */ -#if !defined TCP_CWND_DEBUG || defined __DOXYGEN__ -#define TCP_CWND_DEBUG LWIP_DBG_OFF -#endif - -/** - * TCP_WND_DEBUG: Enable debugging in tcp_in.c for window updating. - */ -#if !defined TCP_WND_DEBUG || defined __DOXYGEN__ -#define TCP_WND_DEBUG LWIP_DBG_OFF -#endif - -/** - * TCP_OUTPUT_DEBUG: Enable debugging in tcp_out.c output functions. - */ -#if !defined TCP_OUTPUT_DEBUG || defined __DOXYGEN__ -#define TCP_OUTPUT_DEBUG LWIP_DBG_OFF -#endif - -/** - * TCP_RST_DEBUG: Enable debugging for TCP with the RST message. - */ -#if !defined TCP_RST_DEBUG || defined __DOXYGEN__ -#define TCP_RST_DEBUG LWIP_DBG_OFF -#endif - -/** - * TCP_QLEN_DEBUG: Enable debugging for TCP queue lengths. - */ -#if !defined TCP_QLEN_DEBUG || defined __DOXYGEN__ -#define TCP_QLEN_DEBUG LWIP_DBG_OFF -#endif - -/** - * UDP_DEBUG: Enable debugging in UDP. - */ -#if !defined UDP_DEBUG || defined __DOXYGEN__ -#define UDP_DEBUG LWIP_DBG_OFF -#endif - -/** - * TCPIP_DEBUG: Enable debugging in tcpip.c. - */ -#if !defined TCPIP_DEBUG || defined __DOXYGEN__ -#define TCPIP_DEBUG LWIP_DBG_OFF -#endif - -/** - * SLIP_DEBUG: Enable debugging in slipif.c. - */ -#if !defined SLIP_DEBUG || defined __DOXYGEN__ -#define SLIP_DEBUG LWIP_DBG_OFF -#endif - -/** - * DHCP_DEBUG: Enable debugging in dhcp.c. - */ -#if !defined DHCP_DEBUG || defined __DOXYGEN__ -#define DHCP_DEBUG LWIP_DBG_OFF -#endif - -/** - * AUTOIP_DEBUG: Enable debugging in autoip.c. - */ -#if !defined AUTOIP_DEBUG || defined __DOXYGEN__ -#define AUTOIP_DEBUG LWIP_DBG_OFF -#endif - -/** - * DNS_DEBUG: Enable debugging for DNS. - */ -#if !defined DNS_DEBUG || defined __DOXYGEN__ -#define DNS_DEBUG LWIP_DBG_OFF -#endif - -/** - * IP6_DEBUG: Enable debugging for IPv6. - */ -#if !defined IP6_DEBUG || defined __DOXYGEN__ -#define IP6_DEBUG LWIP_DBG_OFF -#endif - -/** - * DHCP6_DEBUG: Enable debugging in dhcp6.c. - */ -#if !defined DHCP6_DEBUG || defined __DOXYGEN__ -#define DHCP6_DEBUG LWIP_DBG_OFF -#endif -/** - * @} - */ - -/** - * LWIP_TESTMODE: Changes to make unit test possible - */ -#if !defined LWIP_TESTMODE -#define LWIP_TESTMODE 0 -#endif - -/* - -------------------------------------------------- - ---------- Performance tracking options ---------- - -------------------------------------------------- -*/ -/** - * @defgroup lwip_opts_perf Performance - * @ingroup lwip_opts_debug - * @{ - */ -/** - * LWIP_PERF: Enable performance testing for lwIP - * (if enabled, arch/perf.h is included) - */ -#if !defined LWIP_PERF || defined __DOXYGEN__ -#define LWIP_PERF 0 -#endif -/** - * @} - */ - -#endif /* LWIP_HDR_OPT_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h b/Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h deleted file mode 100644 index 82902a4..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/pbuf.h +++ /dev/null @@ -1,322 +0,0 @@ -/** - * @file - * pbuf API - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -#ifndef LWIP_HDR_PBUF_H -#define LWIP_HDR_PBUF_H - -#include "lwip/opt.h" -#include "lwip/err.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** LWIP_SUPPORT_CUSTOM_PBUF==1: Custom pbufs behave much like their pbuf type - * but they are allocated by external code (initialised by calling - * pbuf_alloced_custom()) and when pbuf_free gives up their last reference, they - * are freed by calling pbuf_custom->custom_free_function(). - * Currently, the pbuf_custom code is only needed for one specific configuration - * of IP_FRAG, unless required by external driver/application code. */ -#ifndef LWIP_SUPPORT_CUSTOM_PBUF -#define LWIP_SUPPORT_CUSTOM_PBUF ((IP_FRAG && !LWIP_NETIF_TX_SINGLE_PBUF) || (LWIP_IPV6 && LWIP_IPV6_FRAG)) -#endif - -/** @ingroup pbuf - * PBUF_NEEDS_COPY(p): return a boolean value indicating whether the given - * pbuf needs to be copied in order to be kept around beyond the current call - * stack without risking being corrupted. The default setting provides safety: - * it will make a copy iof any pbuf chain that does not consist entirely of - * PBUF_ROM type pbufs. For setups with zero-copy support, it may be redefined - * to evaluate to true in all cases, for example. However, doing so also has an - * effect on the application side: any buffers that are *not* copied must also - * *not* be reused by the application after passing them to lwIP. For example, - * when setting PBUF_NEEDS_COPY to (0), after using udp_send() with a PBUF_RAM - * pbuf, the application must free the pbuf immediately, rather than reusing it - * for other purposes. For more background information on this, see tasks #6735 - * and #7896, and bugs #11400 and #49914. */ -#ifndef PBUF_NEEDS_COPY -#define PBUF_NEEDS_COPY(p) ((p)->type_internal & PBUF_TYPE_FLAG_DATA_VOLATILE) -#endif /* PBUF_NEEDS_COPY */ - -/* @todo: We need a mechanism to prevent wasting memory in every pbuf - (TCP vs. UDP, IPv4 vs. IPv6: UDP/IPv4 packets may waste up to 28 bytes) */ - -#define PBUF_TRANSPORT_HLEN 20 -#if LWIP_IPV6 -#define PBUF_IP_HLEN 40 -#else -#define PBUF_IP_HLEN 20 -#endif - -/** - * @ingroup pbuf - * Enumeration of pbuf layers - */ -typedef enum { - /** Includes spare room for transport layer header, e.g. UDP header. - * Use this if you intend to pass the pbuf to functions like udp_send(). - */ - PBUF_TRANSPORT = PBUF_LINK_ENCAPSULATION_HLEN + PBUF_LINK_HLEN + PBUF_IP_HLEN + PBUF_TRANSPORT_HLEN, - /** Includes spare room for IP header. - * Use this if you intend to pass the pbuf to functions like raw_send(). - */ - PBUF_IP = PBUF_LINK_ENCAPSULATION_HLEN + PBUF_LINK_HLEN + PBUF_IP_HLEN, - /** Includes spare room for link layer header (ethernet header). - * Use this if you intend to pass the pbuf to functions like ethernet_output(). - * @see PBUF_LINK_HLEN - */ - PBUF_LINK = PBUF_LINK_ENCAPSULATION_HLEN + PBUF_LINK_HLEN, - /** Includes spare room for additional encapsulation header before ethernet - * headers (e.g. 802.11). - * Use this if you intend to pass the pbuf to functions like netif->linkoutput(). - * @see PBUF_LINK_ENCAPSULATION_HLEN - */ - PBUF_RAW_TX = PBUF_LINK_ENCAPSULATION_HLEN, - /** Use this for input packets in a netif driver when calling netif->input() - * in the most common case - ethernet-layer netif driver. */ - PBUF_RAW = 0 -} pbuf_layer; - - -/* Base flags for pbuf_type definitions: */ - -/** Indicates that the payload directly follows the struct pbuf. - * This makes @ref pbuf_header work in both directions. */ -#define PBUF_TYPE_FLAG_STRUCT_DATA_CONTIGUOUS 0x80 -/** Indicates the data stored in this pbuf can change. If this pbuf needs - * to be queued, it must be copied/duplicated. */ -#define PBUF_TYPE_FLAG_DATA_VOLATILE 0x40 -/** 4 bits are reserved for 16 allocation sources (e.g. heap, pool1, pool2, etc) - * Internally, we use: 0=heap, 1=MEMP_PBUF, 2=MEMP_PBUF_POOL -> 13 types free*/ -#define PBUF_TYPE_ALLOC_SRC_MASK 0x0F -/** Indicates this pbuf is used for RX (if not set, indicates use for TX). - * This information can be used to keep some spare RX buffers e.g. for - * receiving TCP ACKs to unblock a connection) */ -#define PBUF_ALLOC_FLAG_RX 0x0100 -/** Indicates the application needs the pbuf payload to be in one piece */ -#define PBUF_ALLOC_FLAG_DATA_CONTIGUOUS 0x0200 - -#define PBUF_TYPE_ALLOC_SRC_MASK_STD_HEAP 0x00 -#define PBUF_TYPE_ALLOC_SRC_MASK_STD_MEMP_PBUF 0x01 -#define PBUF_TYPE_ALLOC_SRC_MASK_STD_MEMP_PBUF_POOL 0x02 -/** First pbuf allocation type for applications */ -#define PBUF_TYPE_ALLOC_SRC_MASK_APP_MIN 0x03 -/** Last pbuf allocation type for applications */ -#define PBUF_TYPE_ALLOC_SRC_MASK_APP_MAX PBUF_TYPE_ALLOC_SRC_MASK - -/** - * @ingroup pbuf - * Enumeration of pbuf types - */ -typedef enum { - /** pbuf data is stored in RAM, used for TX mostly, struct pbuf and its payload - are allocated in one piece of contiguous memory (so the first payload byte - can be calculated from struct pbuf). - pbuf_alloc() allocates PBUF_RAM pbufs as unchained pbufs (although that might - change in future versions). - This should be used for all OUTGOING packets (TX).*/ - PBUF_RAM = (PBUF_ALLOC_FLAG_DATA_CONTIGUOUS | PBUF_TYPE_FLAG_STRUCT_DATA_CONTIGUOUS | PBUF_TYPE_ALLOC_SRC_MASK_STD_HEAP), - /** pbuf data is stored in ROM, i.e. struct pbuf and its payload are located in - totally different memory areas. Since it points to ROM, payload does not - have to be copied when queued for transmission. */ - PBUF_ROM = PBUF_TYPE_ALLOC_SRC_MASK_STD_MEMP_PBUF, - /** pbuf comes from the pbuf pool. Much like PBUF_ROM but payload might change - so it has to be duplicated when queued before transmitting, depending on - who has a 'ref' to it. */ - PBUF_REF = (PBUF_TYPE_FLAG_DATA_VOLATILE | PBUF_TYPE_ALLOC_SRC_MASK_STD_MEMP_PBUF), - /** pbuf payload refers to RAM. This one comes from a pool and should be used - for RX. Payload can be chained (scatter-gather RX) but like PBUF_RAM, struct - pbuf and its payload are allocated in one piece of contiguous memory (so - the first payload byte can be calculated from struct pbuf). - Don't use this for TX, if the pool becomes empty e.g. because of TCP queuing, - you are unable to receive TCP acks! */ - PBUF_POOL = (PBUF_ALLOC_FLAG_RX | PBUF_TYPE_FLAG_STRUCT_DATA_CONTIGUOUS | PBUF_TYPE_ALLOC_SRC_MASK_STD_MEMP_PBUF_POOL) -} pbuf_type; - - -/** indicates this packet's data should be immediately passed to the application */ -#define PBUF_FLAG_PUSH 0x01U -/** indicates this is a custom pbuf: pbuf_free calls pbuf_custom->custom_free_function() - when the last reference is released (plus custom PBUF_RAM cannot be trimmed) */ -#define PBUF_FLAG_IS_CUSTOM 0x02U -/** indicates this pbuf is UDP multicast to be looped back */ -#define PBUF_FLAG_MCASTLOOP 0x04U -/** indicates this pbuf was received as link-level broadcast */ -#define PBUF_FLAG_LLBCAST 0x08U -/** indicates this pbuf was received as link-level multicast */ -#define PBUF_FLAG_LLMCAST 0x10U -/** indicates this pbuf includes a TCP FIN flag */ -#define PBUF_FLAG_TCP_FIN 0x20U - -/** Main packet buffer struct */ -struct pbuf { - /** next pbuf in singly linked pbuf chain */ - struct pbuf *next; - - /** pointer to the actual data in the buffer */ - void *payload; - - /** - * total length of this buffer and all next buffers in chain - * belonging to the same packet. - * - * For non-queue packet chains this is the invariant: - * p->tot_len == p->len + (p->next? p->next->tot_len: 0) - */ - u16_t tot_len; - - /** length of this buffer */ - u16_t len; - - /** a bit field indicating pbuf type and allocation sources - (see PBUF_TYPE_FLAG_*, PBUF_ALLOC_FLAG_* and PBUF_TYPE_ALLOC_SRC_MASK) - */ - u8_t type_internal; - - /** misc flags */ - u8_t flags; - - /** - * the reference count always equals the number of pointers - * that refer to this pbuf. This can be pointers from an application, - * the stack itself, or pbuf->next pointers from a chain. - */ - LWIP_PBUF_REF_T ref; - - /** For incoming packets, this contains the input netif's index */ - u8_t if_idx; -}; - - -/** Helper struct for const-correctness only. - * The only meaning of this one is to provide a const payload pointer - * for PBUF_ROM type. - */ -struct pbuf_rom { - /** next pbuf in singly linked pbuf chain */ - struct pbuf *next; - - /** pointer to the actual data in the buffer */ - const void *payload; -}; - -#if LWIP_SUPPORT_CUSTOM_PBUF -/** Prototype for a function to free a custom pbuf */ -typedef void (*pbuf_free_custom_fn)(struct pbuf *p); - -/** A custom pbuf: like a pbuf, but following a function pointer to free it. */ -struct pbuf_custom { - /** The actual pbuf */ - struct pbuf pbuf; - /** This function is called when pbuf_free deallocates this pbuf(_custom) */ - pbuf_free_custom_fn custom_free_function; -}; -#endif /* LWIP_SUPPORT_CUSTOM_PBUF */ - -/** Define this to 0 to prevent freeing ooseq pbufs when the PBUF_POOL is empty */ -#ifndef PBUF_POOL_FREE_OOSEQ -#define PBUF_POOL_FREE_OOSEQ 1 -#endif /* PBUF_POOL_FREE_OOSEQ */ -#if LWIP_TCP && TCP_QUEUE_OOSEQ && NO_SYS && PBUF_POOL_FREE_OOSEQ -extern volatile u8_t pbuf_free_ooseq_pending; -void pbuf_free_ooseq(void); -/** When not using sys_check_timeouts(), call PBUF_CHECK_FREE_OOSEQ() - at regular intervals from main level to check if ooseq pbufs need to be - freed! */ -#define PBUF_CHECK_FREE_OOSEQ() do { if(pbuf_free_ooseq_pending) { \ - /* pbuf_alloc() reported PBUF_POOL to be empty -> try to free some \ - ooseq queued pbufs now */ \ - pbuf_free_ooseq(); }}while(0) -#else /* LWIP_TCP && TCP_QUEUE_OOSEQ && NO_SYS && PBUF_POOL_FREE_OOSEQ */ - /* Otherwise declare an empty PBUF_CHECK_FREE_OOSEQ */ - #define PBUF_CHECK_FREE_OOSEQ() -#endif /* LWIP_TCP && TCP_QUEUE_OOSEQ && NO_SYS && PBUF_POOL_FREE_OOSEQ*/ - -/* Initializes the pbuf module. This call is empty for now, but may not be in future. */ -#define pbuf_init() - -struct pbuf *pbuf_alloc(pbuf_layer l, u16_t length, pbuf_type type); -struct pbuf *pbuf_alloc_reference(void *payload, u16_t length, pbuf_type type); -#if LWIP_SUPPORT_CUSTOM_PBUF -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); -#endif /* LWIP_SUPPORT_CUSTOM_PBUF */ -void pbuf_realloc(struct pbuf *p, u16_t size); -#define pbuf_get_allocsrc(p) ((p)->type_internal & PBUF_TYPE_ALLOC_SRC_MASK) -#define pbuf_match_allocsrc(p, type) (pbuf_get_allocsrc(p) == ((type) & PBUF_TYPE_ALLOC_SRC_MASK)) -#define pbuf_match_type(p, type) pbuf_match_allocsrc(p, type) -u8_t pbuf_header(struct pbuf *p, s16_t header_size); -u8_t pbuf_header_force(struct pbuf *p, s16_t header_size); -u8_t pbuf_add_header(struct pbuf *p, size_t header_size_increment); -u8_t pbuf_add_header_force(struct pbuf *p, size_t header_size_increment); -u8_t pbuf_remove_header(struct pbuf *p, size_t header_size); -struct pbuf *pbuf_free_header(struct pbuf *q, u16_t size); -void pbuf_ref(struct pbuf *p); -u8_t pbuf_free(struct pbuf *p); -u16_t pbuf_clen(const struct pbuf *p); -void pbuf_cat(struct pbuf *head, struct pbuf *tail); -void pbuf_chain(struct pbuf *head, struct pbuf *tail); -struct pbuf *pbuf_dechain(struct pbuf *p); -err_t pbuf_copy(struct pbuf *p_to, const struct pbuf *p_from); -u16_t pbuf_copy_partial(const struct pbuf *p, void *dataptr, u16_t len, u16_t offset); -void *pbuf_get_contiguous(const struct pbuf *p, void *buffer, size_t bufsize, u16_t len, u16_t offset); -err_t pbuf_take(struct pbuf *buf, const void *dataptr, u16_t len); -err_t pbuf_take_at(struct pbuf *buf, const void *dataptr, u16_t len, u16_t offset); -struct pbuf *pbuf_skip(struct pbuf* in, u16_t in_offset, u16_t* out_offset); -struct pbuf *pbuf_coalesce(struct pbuf *p, pbuf_layer layer); -struct pbuf *pbuf_clone(pbuf_layer l, pbuf_type type, struct pbuf *p); -#if LWIP_CHECKSUM_ON_COPY -err_t pbuf_fill_chksum(struct pbuf *p, u16_t start_offset, const void *dataptr, - u16_t len, u16_t *chksum); -#endif /* LWIP_CHECKSUM_ON_COPY */ -#if LWIP_TCP && TCP_QUEUE_OOSEQ && LWIP_WND_SCALE -void pbuf_split_64k(struct pbuf *p, struct pbuf **rest); -#endif /* LWIP_TCP && TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ - -u8_t pbuf_get_at(const struct pbuf* p, u16_t offset); -int pbuf_try_get_at(const struct pbuf* p, u16_t offset); -void pbuf_put_at(struct pbuf* p, u16_t offset, u8_t data); -u16_t pbuf_memcmp(const struct pbuf* p, u16_t offset, const void* s2, u16_t n); -u16_t pbuf_memfind(const struct pbuf* p, const void* mem, u16_t mem_len, u16_t start_offset); -u16_t pbuf_strstr(const struct pbuf* p, const char* substr); - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_PBUF_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/priv/altcp_priv.h b/Middlewares/Third_Party/LwIP/src/include/lwip/priv/altcp_priv.h deleted file mode 100644 index 2d3b2fd..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/priv/altcp_priv.h +++ /dev/null @@ -1,146 +0,0 @@ -/** - * @file - * Application layered TCP connection API (to be used from TCPIP thread)\n - * This interface mimics the tcp callback API to the application while preventing - * direct linking (much like virtual functions). - * This way, an application can make use of other application layer protocols - * on top of TCP without knowing the details (e.g. TLS, proxy connection). - */ - -/* - * Copyright (c) 2017 Simon Goldschmidt - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Simon Goldschmidt - * - */ -#ifndef LWIP_HDR_ALTCP_PRIV_H -#define LWIP_HDR_ALTCP_PRIV_H - -#include "lwip/opt.h" - -#if LWIP_ALTCP /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/altcp.h" -#include "lwip/ip_addr.h" - -#ifdef __cplusplus -extern "C" { -#endif - -struct altcp_pcb *altcp_alloc(void); -void altcp_free(struct altcp_pcb *conn); - -/* Function prototypes for application layers */ -typedef void (*altcp_set_poll_fn)(struct altcp_pcb *conn, u8_t interval); -typedef void (*altcp_recved_fn)(struct altcp_pcb *conn, u16_t len); -typedef err_t (*altcp_bind_fn)(struct altcp_pcb *conn, const ip_addr_t *ipaddr, u16_t port); -typedef err_t (*altcp_connect_fn)(struct altcp_pcb *conn, const ip_addr_t *ipaddr, u16_t port, altcp_connected_fn connected); - -typedef struct altcp_pcb *(*altcp_listen_fn)(struct altcp_pcb *conn, u8_t backlog, err_t *err); - -typedef void (*altcp_abort_fn)(struct altcp_pcb *conn); -typedef err_t (*altcp_close_fn)(struct altcp_pcb *conn); -typedef err_t (*altcp_shutdown_fn)(struct altcp_pcb *conn, int shut_rx, int shut_tx); - -typedef err_t (*altcp_write_fn)(struct altcp_pcb *conn, const void *dataptr, u16_t len, u8_t apiflags); -typedef err_t (*altcp_output_fn)(struct altcp_pcb *conn); - -typedef u16_t (*altcp_mss_fn)(struct altcp_pcb *conn); -typedef u16_t (*altcp_sndbuf_fn)(struct altcp_pcb *conn); -typedef u16_t (*altcp_sndqueuelen_fn)(struct altcp_pcb *conn); -typedef void (*altcp_nagle_disable_fn)(struct altcp_pcb *conn); -typedef void (*altcp_nagle_enable_fn)(struct altcp_pcb *conn); -typedef int (*altcp_nagle_disabled_fn)(struct altcp_pcb *conn); - -typedef void (*altcp_setprio_fn)(struct altcp_pcb *conn, u8_t prio); - -typedef void (*altcp_dealloc_fn)(struct altcp_pcb *conn); - -typedef err_t (*altcp_get_tcp_addrinfo_fn)(struct altcp_pcb *conn, int local, ip_addr_t *addr, u16_t *port); -typedef ip_addr_t *(*altcp_get_ip_fn)(struct altcp_pcb *conn, int local); -typedef u16_t (*altcp_get_port_fn)(struct altcp_pcb *conn, int local); - -#ifdef LWIP_DEBUG -typedef enum tcp_state (*altcp_dbg_get_tcp_state_fn)(struct altcp_pcb *conn); -#endif - -struct altcp_functions { - altcp_set_poll_fn set_poll; - altcp_recved_fn recved; - altcp_bind_fn bind; - altcp_connect_fn connect; - altcp_listen_fn listen; - altcp_abort_fn abort; - altcp_close_fn close; - altcp_shutdown_fn shutdown; - altcp_write_fn write; - altcp_output_fn output; - altcp_mss_fn mss; - altcp_sndbuf_fn sndbuf; - altcp_sndqueuelen_fn sndqueuelen; - altcp_nagle_disable_fn nagle_disable; - altcp_nagle_enable_fn nagle_enable; - altcp_nagle_disabled_fn nagle_disabled; - altcp_setprio_fn setprio; - altcp_dealloc_fn dealloc; - altcp_get_tcp_addrinfo_fn addrinfo; - altcp_get_ip_fn getip; - altcp_get_port_fn getport; -#ifdef LWIP_DEBUG - altcp_dbg_get_tcp_state_fn dbg_get_tcp_state; -#endif -}; - -void altcp_default_set_poll(struct altcp_pcb *conn, u8_t interval); -void altcp_default_recved(struct altcp_pcb *conn, u16_t len); -err_t altcp_default_bind(struct altcp_pcb *conn, const ip_addr_t *ipaddr, u16_t port); -err_t altcp_default_shutdown(struct altcp_pcb *conn, int shut_rx, int shut_tx); -err_t altcp_default_write(struct altcp_pcb *conn, const void *dataptr, u16_t len, u8_t apiflags); -err_t altcp_default_output(struct altcp_pcb *conn); -u16_t altcp_default_mss(struct altcp_pcb *conn); -u16_t altcp_default_sndbuf(struct altcp_pcb *conn); -u16_t altcp_default_sndqueuelen(struct altcp_pcb *conn); -void altcp_default_nagle_disable(struct altcp_pcb *conn); -void altcp_default_nagle_enable(struct altcp_pcb *conn); -int altcp_default_nagle_disabled(struct altcp_pcb *conn); -void altcp_default_setprio(struct altcp_pcb *conn, u8_t prio); -void altcp_default_dealloc(struct altcp_pcb *conn); -err_t altcp_default_get_tcp_addrinfo(struct altcp_pcb *conn, int local, ip_addr_t *addr, u16_t *port); -ip_addr_t *altcp_default_get_ip(struct altcp_pcb *conn, int local); -u16_t altcp_default_get_port(struct altcp_pcb *conn, int local); -#ifdef LWIP_DEBUG -enum tcp_state altcp_default_dbg_get_tcp_state(struct altcp_pcb *conn); -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_ALTCP */ - -#endif /* LWIP_HDR_ALTCP_PRIV_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/priv/api_msg.h b/Middlewares/Third_Party/LwIP/src/include/lwip/priv/api_msg.h deleted file mode 100644 index 9e8ffc9..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/priv/api_msg.h +++ /dev/null @@ -1,272 +0,0 @@ -/** - * @file - * netconn API lwIP internal implementations (do not use in application code) - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_API_MSG_H -#define LWIP_HDR_API_MSG_H - -#include "lwip/opt.h" - -#include "lwip/arch.h" -#include "lwip/ip_addr.h" -#include "lwip/err.h" -#include "lwip/sys.h" -#include "lwip/igmp.h" -#include "lwip/api.h" -#include "lwip/priv/tcpip_priv.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#if LWIP_NETCONN || LWIP_SOCKET /* don't build if not configured for use in lwipopts.h */ -/* Note: Netconn API is always available when sockets are enabled - - * sockets are implemented on top of them */ - -#if LWIP_MPU_COMPATIBLE -#if LWIP_NETCONN_SEM_PER_THREAD -#define API_MSG_M_DEF_SEM(m) *m -#else -#define API_MSG_M_DEF_SEM(m) API_MSG_M_DEF(m) -#endif -#else /* LWIP_MPU_COMPATIBLE */ -#define API_MSG_M_DEF_SEM(m) API_MSG_M_DEF(m) -#endif /* LWIP_MPU_COMPATIBLE */ - -/* For the netconn API, these values are use as a bitmask! */ -#define NETCONN_SHUT_RD 1 -#define NETCONN_SHUT_WR 2 -#define NETCONN_SHUT_RDWR (NETCONN_SHUT_RD | NETCONN_SHUT_WR) - -/* IP addresses and port numbers are expected to be in - * the same byte order as in the corresponding pcb. - */ -/** This struct includes everything that is necessary to execute a function - for a netconn in another thread context (mainly used to process netconns - in the tcpip_thread context to be thread safe). */ -struct api_msg { - /** The netconn which to process - always needed: it includes the semaphore - which is used to block the application thread until the function finished. */ - struct netconn *conn; - /** The return value of the function executed in tcpip_thread. */ - err_t err; - /** Depending on the executed function, one of these union members is used */ - union { - /** used for lwip_netconn_do_send */ - struct netbuf *b; - /** used for lwip_netconn_do_newconn */ - struct { - u8_t proto; - } n; - /** used for lwip_netconn_do_bind and lwip_netconn_do_connect */ - struct { - API_MSG_M_DEF_C(ip_addr_t, ipaddr); - u16_t port; - u8_t if_idx; - } bc; - /** used for lwip_netconn_do_getaddr */ - struct { - ip_addr_t API_MSG_M_DEF(ipaddr); - u16_t API_MSG_M_DEF(port); - u8_t local; - } ad; - /** used for lwip_netconn_do_write */ - struct { - /** current vector to write */ - const struct netvector *vector; - /** number of unwritten vectors */ - u16_t vector_cnt; - /** offset into current vector */ - size_t vector_off; - /** total length across vectors */ - size_t len; - /** offset into total length/output of bytes written when err == ERR_OK */ - size_t offset; - u8_t apiflags; -#if LWIP_SO_SNDTIMEO - u32_t time_started; -#endif /* LWIP_SO_SNDTIMEO */ - } w; - /** used for lwip_netconn_do_recv */ - struct { - size_t len; - } r; -#if LWIP_TCP - /** used for lwip_netconn_do_close (/shutdown) */ - struct { - u8_t shut; -#if LWIP_SO_SNDTIMEO || LWIP_SO_LINGER - u32_t time_started; -#else /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */ - u8_t polls_left; -#endif /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */ - } sd; -#endif /* LWIP_TCP */ -#if LWIP_IGMP || (LWIP_IPV6 && LWIP_IPV6_MLD) - /** used for lwip_netconn_do_join_leave_group */ - struct { - API_MSG_M_DEF_C(ip_addr_t, multiaddr); - API_MSG_M_DEF_C(ip_addr_t, netif_addr); - u8_t if_idx; - enum netconn_igmp join_or_leave; - } jl; -#endif /* LWIP_IGMP || (LWIP_IPV6 && LWIP_IPV6_MLD) */ -#if TCP_LISTEN_BACKLOG - struct { - u8_t backlog; - } lb; -#endif /* TCP_LISTEN_BACKLOG */ - } msg; -#if LWIP_NETCONN_SEM_PER_THREAD - sys_sem_t* op_completed_sem; -#endif /* LWIP_NETCONN_SEM_PER_THREAD */ -}; - -#if LWIP_NETCONN_SEM_PER_THREAD -#define LWIP_API_MSG_SEM(msg) ((msg)->op_completed_sem) -#else /* LWIP_NETCONN_SEM_PER_THREAD */ -#define LWIP_API_MSG_SEM(msg) (&(msg)->conn->op_completed) -#endif /* LWIP_NETCONN_SEM_PER_THREAD */ - - -#if LWIP_DNS -/** As lwip_netconn_do_gethostbyname requires more arguments but doesn't require a netconn, - it has its own struct (to avoid struct api_msg getting bigger than necessary). - lwip_netconn_do_gethostbyname must be called using tcpip_callback instead of tcpip_apimsg - (see netconn_gethostbyname). */ -struct dns_api_msg { - /** Hostname to query or dotted IP address string */ -#if LWIP_MPU_COMPATIBLE - char name[DNS_MAX_NAME_LENGTH]; -#else /* LWIP_MPU_COMPATIBLE */ - const char *name; -#endif /* LWIP_MPU_COMPATIBLE */ - /** The resolved address is stored here */ - ip_addr_t API_MSG_M_DEF(addr); -#if LWIP_IPV4 && LWIP_IPV6 - /** Type of resolve call */ - u8_t dns_addrtype; -#endif /* LWIP_IPV4 && LWIP_IPV6 */ - /** This semaphore is posted when the name is resolved, the application thread - should wait on it. */ - sys_sem_t API_MSG_M_DEF_SEM(sem); - /** Errors are given back here */ - err_t API_MSG_M_DEF(err); -}; -#endif /* LWIP_DNS */ - -#if LWIP_NETCONN_FULLDUPLEX -int lwip_netconn_is_deallocated_msg(void *msg); -#endif -int lwip_netconn_is_err_msg(void *msg, err_t *err); -void lwip_netconn_do_newconn (void *m); -void lwip_netconn_do_delconn (void *m); -void lwip_netconn_do_bind (void *m); -void lwip_netconn_do_bind_if (void *m); -void lwip_netconn_do_connect (void *m); -void lwip_netconn_do_disconnect (void *m); -void lwip_netconn_do_listen (void *m); -void lwip_netconn_do_send (void *m); -void lwip_netconn_do_recv (void *m); -#if TCP_LISTEN_BACKLOG -void lwip_netconn_do_accepted (void *m); -#endif /* TCP_LISTEN_BACKLOG */ -void lwip_netconn_do_write (void *m); -void lwip_netconn_do_getaddr (void *m); -void lwip_netconn_do_close (void *m); -void lwip_netconn_do_shutdown (void *m); -#if LWIP_IGMP || (LWIP_IPV6 && LWIP_IPV6_MLD) -void lwip_netconn_do_join_leave_group(void *m); -void lwip_netconn_do_join_leave_group_netif(void *m); -#endif /* LWIP_IGMP || (LWIP_IPV6 && LWIP_IPV6_MLD) */ - -#if LWIP_DNS -void lwip_netconn_do_gethostbyname(void *arg); -#endif /* LWIP_DNS */ - -struct netconn* netconn_alloc(enum netconn_type t, netconn_callback callback); -void netconn_free(struct netconn *conn); - -#endif /* LWIP_NETCONN || LWIP_SOCKET */ - -#if LWIP_NETIF_API /* don't build if not configured for use in lwipopts.h */ - -/* netifapi related lwIP internal definitions */ - -#if LWIP_MPU_COMPATIBLE -#define NETIFAPI_IPADDR_DEF(type, m) type m -#else /* LWIP_MPU_COMPATIBLE */ -#define NETIFAPI_IPADDR_DEF(type, m) const type * m -#endif /* LWIP_MPU_COMPATIBLE */ - -typedef void (*netifapi_void_fn)(struct netif *netif); -typedef err_t (*netifapi_errt_fn)(struct netif *netif); - -struct netifapi_msg { - struct tcpip_api_call_data call; - struct netif *netif; - union { - struct { -#if LWIP_IPV4 - NETIFAPI_IPADDR_DEF(ip4_addr_t, ipaddr); - NETIFAPI_IPADDR_DEF(ip4_addr_t, netmask); - NETIFAPI_IPADDR_DEF(ip4_addr_t, gw); -#endif /* LWIP_IPV4 */ - void *state; - netif_init_fn init; - netif_input_fn input; - } add; - struct { - netifapi_void_fn voidfunc; - netifapi_errt_fn errtfunc; - } common; - struct { -#if LWIP_MPU_COMPATIBLE - char name[NETIF_NAMESIZE]; -#else /* LWIP_MPU_COMPATIBLE */ - char *name; -#endif /* LWIP_MPU_COMPATIBLE */ - u8_t index; - } ifs; - } msg; -}; - -#endif /* LWIP_NETIF_API */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_API_MSG_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h b/Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h deleted file mode 100644 index 8630d75..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/priv/mem_priv.h +++ /dev/null @@ -1,84 +0,0 @@ -/** - * @file - * lwIP internal memory implementations (do not use in application code) - */ - -/* - * Copyright (c) 2018 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Simon Goldschmidt - * - */ - -#ifndef LWIP_HDR_MEM_PRIV_H -#define LWIP_HDR_MEM_PRIV_H - -#include "lwip/opt.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#include "lwip/mem.h" - -#if MEM_OVERFLOW_CHECK || MEMP_OVERFLOW_CHECK -/* if MEM_OVERFLOW_CHECK or MEMP_OVERFLOW_CHECK is turned on, we reserve some - * bytes at the beginning and at the end of each element, initialize them as - * 0xcd and check them later. - * If MEM(P)_OVERFLOW_CHECK is >= 2, on every call to mem(p)_malloc or mem(p)_free, - * every single element in each pool/heap is checked! - * This is VERY SLOW but also very helpful. - * MEM_SANITY_REGION_BEFORE and MEM_SANITY_REGION_AFTER can be overridden in - * lwipopts.h to change the amount reserved for checking. */ -#ifndef MEM_SANITY_REGION_BEFORE -#define MEM_SANITY_REGION_BEFORE 16 -#endif /* MEM_SANITY_REGION_BEFORE*/ -#if MEM_SANITY_REGION_BEFORE > 0 -#define MEM_SANITY_REGION_BEFORE_ALIGNED LWIP_MEM_ALIGN_SIZE(MEM_SANITY_REGION_BEFORE) -#else -#define MEM_SANITY_REGION_BEFORE_ALIGNED 0 -#endif /* MEM_SANITY_REGION_BEFORE*/ -#ifndef MEM_SANITY_REGION_AFTER -#define MEM_SANITY_REGION_AFTER 16 -#endif /* MEM_SANITY_REGION_AFTER*/ -#if MEM_SANITY_REGION_AFTER > 0 -#define MEM_SANITY_REGION_AFTER_ALIGNED LWIP_MEM_ALIGN_SIZE(MEM_SANITY_REGION_AFTER) -#else -#define MEM_SANITY_REGION_AFTER_ALIGNED 0 -#endif /* MEM_SANITY_REGION_AFTER*/ - -void mem_overflow_init_raw(void *p, size_t size); -void mem_overflow_check_raw(void *p, size_t size, const char *descr1, const char *descr2); - -#endif /* MEM_OVERFLOW_CHECK || MEMP_OVERFLOW_CHECK */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_MEMP_PRIV_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h b/Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h deleted file mode 100644 index 1f14cb1..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_priv.h +++ /dev/null @@ -1,161 +0,0 @@ -/** - * @file - * memory pools lwIP internal implementations (do not use in application code) - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -#ifndef LWIP_HDR_MEMP_PRIV_H -#define LWIP_HDR_MEMP_PRIV_H - -#include "lwip/opt.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#include "lwip/mem.h" -#include "lwip/priv/mem_priv.h" - -#if MEMP_OVERFLOW_CHECK - - -/* MEMP_SIZE: save space for struct memp and for sanity check */ -#define MEMP_SIZE (LWIP_MEM_ALIGN_SIZE(sizeof(struct memp)) + MEM_SANITY_REGION_BEFORE_ALIGNED) -#define MEMP_ALIGN_SIZE(x) (LWIP_MEM_ALIGN_SIZE(x) + MEM_SANITY_REGION_AFTER_ALIGNED) - -#else /* MEMP_OVERFLOW_CHECK */ - -/* No sanity checks - * We don't need to preserve the struct memp while not allocated, so we - * can save a little space and set MEMP_SIZE to 0. - */ -#define MEMP_SIZE 0 -#define MEMP_ALIGN_SIZE(x) (LWIP_MEM_ALIGN_SIZE(x)) - -#endif /* MEMP_OVERFLOW_CHECK */ - -#if !MEMP_MEM_MALLOC || MEMP_OVERFLOW_CHECK -struct memp { - struct memp *next; -#if MEMP_OVERFLOW_CHECK - const char *file; - int line; -#endif /* MEMP_OVERFLOW_CHECK */ -}; -#endif /* !MEMP_MEM_MALLOC || MEMP_OVERFLOW_CHECK */ - -#if MEM_USE_POOLS && MEMP_USE_CUSTOM_POOLS -/* Use a helper type to get the start and end of the user "memory pools" for mem_malloc */ -typedef enum { - /* Get the first (via: - MEMP_POOL_HELPER_START = ((u8_t) 1*MEMP_POOL_A + 0*MEMP_POOL_B + 0*MEMP_POOL_C + 0)*/ - MEMP_POOL_HELPER_FIRST = ((u8_t) -#define LWIP_MEMPOOL(name,num,size,desc) -#define LWIP_MALLOC_MEMPOOL_START 1 -#define LWIP_MALLOC_MEMPOOL(num, size) * MEMP_POOL_##size + 0 -#define LWIP_MALLOC_MEMPOOL_END -#include "lwip/priv/memp_std.h" - ) , - /* Get the last (via: - MEMP_POOL_HELPER_END = ((u8_t) 0 + MEMP_POOL_A*0 + MEMP_POOL_B*0 + MEMP_POOL_C*1) */ - MEMP_POOL_HELPER_LAST = ((u8_t) -#define LWIP_MEMPOOL(name,num,size,desc) -#define LWIP_MALLOC_MEMPOOL_START -#define LWIP_MALLOC_MEMPOOL(num, size) 0 + MEMP_POOL_##size * -#define LWIP_MALLOC_MEMPOOL_END 1 -#include "lwip/priv/memp_std.h" - ) -} memp_pool_helper_t; - -/* The actual start and stop values are here (cast them over) - We use this helper type and these defines so we can avoid using const memp_t values */ -#define MEMP_POOL_FIRST ((memp_t) MEMP_POOL_HELPER_FIRST) -#define MEMP_POOL_LAST ((memp_t) MEMP_POOL_HELPER_LAST) -#endif /* MEM_USE_POOLS && MEMP_USE_CUSTOM_POOLS */ - -/** Memory pool descriptor */ -struct memp_desc { -#if defined(LWIP_DEBUG) || MEMP_OVERFLOW_CHECK || LWIP_STATS_DISPLAY - /** Textual description */ - const char *desc; -#endif /* LWIP_DEBUG || MEMP_OVERFLOW_CHECK || LWIP_STATS_DISPLAY */ -#if MEMP_STATS - /** Statistics */ - struct stats_mem *stats; -#endif - - /** Element size */ - u16_t size; - -#if !MEMP_MEM_MALLOC - /** Number of elements */ - u16_t num; - - /** Base address */ - u8_t *base; - - /** First free element of each pool. Elements form a linked list. */ - struct memp **tab; -#endif /* MEMP_MEM_MALLOC */ -}; - -#if defined(LWIP_DEBUG) || MEMP_OVERFLOW_CHECK || LWIP_STATS_DISPLAY -#define DECLARE_LWIP_MEMPOOL_DESC(desc) (desc), -#else -#define DECLARE_LWIP_MEMPOOL_DESC(desc) -#endif - -#if MEMP_STATS -#define LWIP_MEMPOOL_DECLARE_STATS_INSTANCE(name) static struct stats_mem name; -#define LWIP_MEMPOOL_DECLARE_STATS_REFERENCE(name) &name, -#else -#define LWIP_MEMPOOL_DECLARE_STATS_INSTANCE(name) -#define LWIP_MEMPOOL_DECLARE_STATS_REFERENCE(name) -#endif - -void memp_init_pool(const struct memp_desc *desc); - -#if MEMP_OVERFLOW_CHECK -void *memp_malloc_pool_fn(const struct memp_desc* desc, const char* file, const int line); -#define memp_malloc_pool(d) memp_malloc_pool_fn((d), __FILE__, __LINE__) -#else -void *memp_malloc_pool(const struct memp_desc *desc); -#endif -void memp_free_pool(const struct memp_desc* desc, void *mem); - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_MEMP_PRIV_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h b/Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h deleted file mode 100644 index 669ad4d..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/priv/memp_std.h +++ /dev/null @@ -1,153 +0,0 @@ -/** - * @file - * lwIP internal memory pools (do not use in application code) - * This file is deliberately included multiple times: once with empty - * definition of LWIP_MEMPOOL() to handle all includes and multiple times - * to build up various lists of mem pools. - */ - -/* - * SETUP: Make sure we define everything we will need. - * - * We have create three types of pools: - * 1) MEMPOOL - standard pools - * 2) MALLOC_MEMPOOL - to be used by mem_malloc in mem.c - * 3) PBUF_MEMPOOL - a mempool of pbuf's, so include space for the pbuf struct - * - * If the include'r doesn't require any special treatment of each of the types - * above, then will declare #2 & #3 to be just standard mempools. - */ -#ifndef LWIP_MALLOC_MEMPOOL -/* This treats "malloc pools" just like any other pool. - The pools are a little bigger to provide 'size' as the amount of user data. */ -#define LWIP_MALLOC_MEMPOOL(num, size) LWIP_MEMPOOL(POOL_##size, num, (size + LWIP_MEM_ALIGN_SIZE(sizeof(struct memp_malloc_helper))), "MALLOC_"#size) -#define LWIP_MALLOC_MEMPOOL_START -#define LWIP_MALLOC_MEMPOOL_END -#endif /* LWIP_MALLOC_MEMPOOL */ - -#ifndef LWIP_PBUF_MEMPOOL -/* This treats "pbuf pools" just like any other pool. - * Allocates buffers for a pbuf struct AND a payload size */ -#define LWIP_PBUF_MEMPOOL(name, num, payload, desc) LWIP_MEMPOOL(name, num, (LWIP_MEM_ALIGN_SIZE(sizeof(struct pbuf)) + LWIP_MEM_ALIGN_SIZE(payload)), desc) -#endif /* LWIP_PBUF_MEMPOOL */ - - -/* - * A list of internal pools used by LWIP. - * - * LWIP_MEMPOOL(pool_name, number_elements, element_size, pool_description) - * creates a pool name MEMP_pool_name. description is used in stats.c - */ -#if LWIP_RAW -LWIP_MEMPOOL(RAW_PCB, MEMP_NUM_RAW_PCB, sizeof(struct raw_pcb), "RAW_PCB") -#endif /* LWIP_RAW */ - -#if LWIP_UDP -LWIP_MEMPOOL(UDP_PCB, MEMP_NUM_UDP_PCB, sizeof(struct udp_pcb), "UDP_PCB") -#endif /* LWIP_UDP */ - -#if LWIP_TCP -LWIP_MEMPOOL(TCP_PCB, MEMP_NUM_TCP_PCB, sizeof(struct tcp_pcb), "TCP_PCB") -LWIP_MEMPOOL(TCP_PCB_LISTEN, MEMP_NUM_TCP_PCB_LISTEN, sizeof(struct tcp_pcb_listen), "TCP_PCB_LISTEN") -LWIP_MEMPOOL(TCP_SEG, MEMP_NUM_TCP_SEG, sizeof(struct tcp_seg), "TCP_SEG") -#endif /* LWIP_TCP */ - -#if LWIP_ALTCP && LWIP_TCP -LWIP_MEMPOOL(ALTCP_PCB, MEMP_NUM_ALTCP_PCB, sizeof(struct altcp_pcb), "ALTCP_PCB") -#endif /* LWIP_ALTCP && LWIP_TCP */ - -#if LWIP_IPV4 && IP_REASSEMBLY -LWIP_MEMPOOL(REASSDATA, MEMP_NUM_REASSDATA, sizeof(struct ip_reassdata), "REASSDATA") -#endif /* LWIP_IPV4 && IP_REASSEMBLY */ -#if (IP_FRAG && !LWIP_NETIF_TX_SINGLE_PBUF) || (LWIP_IPV6 && LWIP_IPV6_FRAG) -LWIP_MEMPOOL(FRAG_PBUF, MEMP_NUM_FRAG_PBUF, sizeof(struct pbuf_custom_ref),"FRAG_PBUF") -#endif /* IP_FRAG && !LWIP_NETIF_TX_SINGLE_PBUF || (LWIP_IPV6 && LWIP_IPV6_FRAG) */ - -#if LWIP_NETCONN || LWIP_SOCKET -LWIP_MEMPOOL(NETBUF, MEMP_NUM_NETBUF, sizeof(struct netbuf), "NETBUF") -LWIP_MEMPOOL(NETCONN, MEMP_NUM_NETCONN, sizeof(struct netconn), "NETCONN") -#endif /* LWIP_NETCONN || LWIP_SOCKET */ - -#if NO_SYS==0 -LWIP_MEMPOOL(TCPIP_MSG_API, MEMP_NUM_TCPIP_MSG_API, sizeof(struct tcpip_msg), "TCPIP_MSG_API") -#if LWIP_MPU_COMPATIBLE -LWIP_MEMPOOL(API_MSG, MEMP_NUM_API_MSG, sizeof(struct api_msg), "API_MSG") -#if LWIP_DNS -LWIP_MEMPOOL(DNS_API_MSG, MEMP_NUM_DNS_API_MSG, sizeof(struct dns_api_msg), "DNS_API_MSG") -#endif -#if LWIP_SOCKET && !LWIP_TCPIP_CORE_LOCKING -LWIP_MEMPOOL(SOCKET_SETGETSOCKOPT_DATA, MEMP_NUM_SOCKET_SETGETSOCKOPT_DATA, sizeof(struct lwip_setgetsockopt_data), "SOCKET_SETGETSOCKOPT_DATA") -#endif -#if LWIP_SOCKET && (LWIP_SOCKET_SELECT || LWIP_SOCKET_POLL) -LWIP_MEMPOOL(SELECT_CB, MEMP_NUM_SELECT_CB, sizeof(struct lwip_select_cb), "SELECT_CB") -#endif /* LWIP_SOCKET && (LWIP_SOCKET_SELECT || LWIP_SOCKET_POLL) */ -#if LWIP_NETIF_API -LWIP_MEMPOOL(NETIFAPI_MSG, MEMP_NUM_NETIFAPI_MSG, sizeof(struct netifapi_msg), "NETIFAPI_MSG") -#endif -#endif /* LWIP_MPU_COMPATIBLE */ -#if !LWIP_TCPIP_CORE_LOCKING_INPUT -LWIP_MEMPOOL(TCPIP_MSG_INPKT,MEMP_NUM_TCPIP_MSG_INPKT, sizeof(struct tcpip_msg), "TCPIP_MSG_INPKT") -#endif /* !LWIP_TCPIP_CORE_LOCKING_INPUT */ -#endif /* NO_SYS==0 */ - -#if LWIP_IPV4 && LWIP_ARP && ARP_QUEUEING -LWIP_MEMPOOL(ARP_QUEUE, MEMP_NUM_ARP_QUEUE, sizeof(struct etharp_q_entry), "ARP_QUEUE") -#endif /* LWIP_IPV4 && LWIP_ARP && ARP_QUEUEING */ - -#if LWIP_IGMP -LWIP_MEMPOOL(IGMP_GROUP, MEMP_NUM_IGMP_GROUP, sizeof(struct igmp_group), "IGMP_GROUP") -#endif /* LWIP_IGMP */ - -#if LWIP_TIMERS && !LWIP_TIMERS_CUSTOM -LWIP_MEMPOOL(SYS_TIMEOUT, MEMP_NUM_SYS_TIMEOUT, sizeof(struct sys_timeo), "SYS_TIMEOUT") -#endif /* LWIP_TIMERS && !LWIP_TIMERS_CUSTOM */ - -#if LWIP_DNS && LWIP_SOCKET -LWIP_MEMPOOL(NETDB, MEMP_NUM_NETDB, NETDB_ELEM_SIZE, "NETDB") -#endif /* LWIP_DNS && LWIP_SOCKET */ -#if LWIP_DNS && DNS_LOCAL_HOSTLIST && DNS_LOCAL_HOSTLIST_IS_DYNAMIC -LWIP_MEMPOOL(LOCALHOSTLIST, MEMP_NUM_LOCALHOSTLIST, LOCALHOSTLIST_ELEM_SIZE, "LOCALHOSTLIST") -#endif /* LWIP_DNS && DNS_LOCAL_HOSTLIST && DNS_LOCAL_HOSTLIST_IS_DYNAMIC */ - -#if LWIP_IPV6 && LWIP_ND6_QUEUEING -LWIP_MEMPOOL(ND6_QUEUE, MEMP_NUM_ND6_QUEUE, sizeof(struct nd6_q_entry), "ND6_QUEUE") -#endif /* LWIP_IPV6 && LWIP_ND6_QUEUEING */ - -#if LWIP_IPV6 && LWIP_IPV6_REASS -LWIP_MEMPOOL(IP6_REASSDATA, MEMP_NUM_REASSDATA, sizeof(struct ip6_reassdata), "IP6_REASSDATA") -#endif /* LWIP_IPV6 && LWIP_IPV6_REASS */ - -#if LWIP_IPV6 && LWIP_IPV6_MLD -LWIP_MEMPOOL(MLD6_GROUP, MEMP_NUM_MLD6_GROUP, sizeof(struct mld_group), "MLD6_GROUP") -#endif /* LWIP_IPV6 && LWIP_IPV6_MLD */ - - -/* - * A list of pools of pbuf's used by LWIP. - * - * LWIP_PBUF_MEMPOOL(pool_name, number_elements, pbuf_payload_size, pool_description) - * creates a pool name MEMP_pool_name. description is used in stats.c - * This allocates enough space for the pbuf struct and a payload. - * (Example: pbuf_payload_size=0 allocates only size for the struct) - */ -LWIP_MEMPOOL(PBUF, MEMP_NUM_PBUF, sizeof(struct pbuf), "PBUF_REF/ROM") -LWIP_PBUF_MEMPOOL(PBUF_POOL, PBUF_POOL_SIZE, PBUF_POOL_BUFSIZE, "PBUF_POOL") - - -/* - * Allow for user-defined pools; this must be explicitly set in lwipopts.h - * since the default is to NOT look for lwippools.h - */ -#if MEMP_USE_CUSTOM_POOLS -#include "lwippools.h" -#endif /* MEMP_USE_CUSTOM_POOLS */ - -/* - * REQUIRED CLEANUP: Clear up so we don't get "multiply defined" error later - * (#undef is ignored for something that is not defined) - */ -#undef LWIP_MEMPOOL -#undef LWIP_MALLOC_MEMPOOL -#undef LWIP_MALLOC_MEMPOOL_START -#undef LWIP_MALLOC_MEMPOOL_END -#undef LWIP_PBUF_MEMPOOL diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/priv/nd6_priv.h b/Middlewares/Third_Party/LwIP/src/include/lwip/priv/nd6_priv.h deleted file mode 100644 index cc3007d..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/priv/nd6_priv.h +++ /dev/null @@ -1,142 +0,0 @@ -/** - * @file - * - * Neighbor discovery and stateless address autoconfiguration for IPv6. - * Aims to be compliant with RFC 4861 (Neighbor discovery) and RFC 4862 - * (Address autoconfiguration). - */ - -/* - * Copyright (c) 2010 Inico Technologies Ltd. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Ivan Delamer - * - * - * Please coordinate changes and requests with Ivan Delamer - * - */ - -#ifndef LWIP_HDR_ND6_PRIV_H -#define LWIP_HDR_ND6_PRIV_H - -#include "lwip/opt.h" - -#if LWIP_IPV6 /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/pbuf.h" -#include "lwip/ip6_addr.h" -#include "lwip/netif.h" - - -#ifdef __cplusplus -extern "C" { -#endif - -#if LWIP_ND6_QUEUEING -/** struct for queueing outgoing packets for unknown address - * defined here to be accessed by memp.h - */ -struct nd6_q_entry { - struct nd6_q_entry *next; - struct pbuf *p; -}; -#endif /* LWIP_ND6_QUEUEING */ - -/** Struct for tables. */ -struct nd6_neighbor_cache_entry { - ip6_addr_t next_hop_address; - struct netif *netif; - u8_t lladdr[NETIF_MAX_HWADDR_LEN]; - /*u32_t pmtu;*/ -#if LWIP_ND6_QUEUEING - /** Pointer to queue of pending outgoing packets on this entry. */ - struct nd6_q_entry *q; -#else /* LWIP_ND6_QUEUEING */ - /** Pointer to a single pending outgoing packet on this entry. */ - struct pbuf *q; -#endif /* LWIP_ND6_QUEUEING */ - u8_t state; - u8_t isrouter; - union { - u32_t reachable_time; /* in seconds */ - u32_t delay_time; /* ticks (ND6_TMR_INTERVAL) */ - u32_t probes_sent; - u32_t stale_time; /* ticks (ND6_TMR_INTERVAL) */ - } counter; -}; - -struct nd6_destination_cache_entry { - ip6_addr_t destination_addr; - ip6_addr_t next_hop_addr; - u16_t pmtu; - u32_t age; -}; - -struct nd6_prefix_list_entry { - ip6_addr_t prefix; - struct netif *netif; - u32_t invalidation_timer; /* in seconds */ -}; - -struct nd6_router_list_entry { - struct nd6_neighbor_cache_entry *neighbor_entry; - u32_t invalidation_timer; /* in seconds */ - u8_t flags; -}; - -enum nd6_neighbor_cache_entry_state { - ND6_NO_ENTRY = 0, - ND6_INCOMPLETE, - ND6_REACHABLE, - ND6_STALE, - ND6_DELAY, - ND6_PROBE -}; - -#define ND6_HOPLIM 255 /* maximum hop limit, required in all ND packets */ - -#define ND6_2HRS 7200 /* two hours, expressed in number of seconds */ - -/* Router tables. */ -/* @todo make these static? and entries accessible through API? */ -extern struct nd6_neighbor_cache_entry neighbor_cache[]; -extern struct nd6_destination_cache_entry destination_cache[]; -extern struct nd6_prefix_list_entry prefix_list[]; -extern struct nd6_router_list_entry default_router_list[]; - -/* Default values, can be updated by a RA message. */ -extern u32_t reachable_time; -extern u32_t retrans_timer; - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_IPV6 */ - -#endif /* LWIP_HDR_ND6_PRIV_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/priv/raw_priv.h b/Middlewares/Third_Party/LwIP/src/include/lwip/priv/raw_priv.h deleted file mode 100644 index d4561d4..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/priv/raw_priv.h +++ /dev/null @@ -1,69 +0,0 @@ -/** - * @file - * raw API internal implementations (do not use in application code) - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_RAW_PRIV_H -#define LWIP_HDR_RAW_PRIV_H - -#include "lwip/opt.h" - -#if LWIP_RAW /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/raw.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** return codes for raw_input */ -typedef enum raw_input_state -{ - RAW_INPUT_NONE = 0, /* pbuf did not match any pcbs */ - RAW_INPUT_EATEN, /* pbuf handed off and delivered to pcb */ - RAW_INPUT_DELIVERED /* pbuf only delivered to pcb (pbuf can still be referenced) */ -} raw_input_state_t; - -/* The following functions are the lower layer interface to RAW. */ -raw_input_state_t raw_input(struct pbuf *p, struct netif *inp); - -void raw_netif_ip_addr_changed(const ip_addr_t* old_addr, const ip_addr_t* new_addr); - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_RAW */ - -#endif /* LWIP_HDR_RAW_PRIV_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/priv/sockets_priv.h b/Middlewares/Third_Party/LwIP/src/include/lwip/priv/sockets_priv.h deleted file mode 100644 index d8f9904..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/priv/sockets_priv.h +++ /dev/null @@ -1,175 +0,0 @@ -/** - * @file - * Sockets API internal implementations (do not use in application code) - */ - -/* - * Copyright (c) 2017 Joel Cunningham, Garmin International, Inc. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Joel Cunningham - * - */ -#ifndef LWIP_HDR_SOCKETS_PRIV_H -#define LWIP_HDR_SOCKETS_PRIV_H - -#include "lwip/opt.h" - -#if LWIP_SOCKET /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/err.h" -#include "lwip/sockets.h" -#include "lwip/sys.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define NUM_SOCKETS MEMP_NUM_NETCONN - -/** This is overridable for the rare case where more than 255 threads - * select on the same socket... - */ -#ifndef SELWAIT_T -#define SELWAIT_T u8_t -#endif - -union lwip_sock_lastdata { - struct netbuf *netbuf; - struct pbuf *pbuf; -}; - -/** Contains all internal pointers and states used for a socket */ -struct lwip_sock { - /** sockets currently are built on netconns, each socket has one netconn */ - struct netconn *conn; - /** data that was left from the previous read */ - union lwip_sock_lastdata lastdata; -#if LWIP_SOCKET_SELECT || LWIP_SOCKET_POLL - /** number of times data was received, set by event_callback(), - tested by the receive and select functions */ - s16_t rcvevent; - /** number of times data was ACKed (free send buffer), set by event_callback(), - tested by select */ - u16_t sendevent; - /** error happened for this socket, set by event_callback(), tested by select */ - u16_t errevent; - /** counter of how many threads are waiting for this socket using select */ - SELWAIT_T select_waiting; -#endif /* LWIP_SOCKET_SELECT || LWIP_SOCKET_POLL */ -#if LWIP_NETCONN_FULLDUPLEX - /* counter of how many threads are using a struct lwip_sock (not the 'int') */ - u8_t fd_used; - /* status of pending close/delete actions */ - u8_t fd_free_pending; -#define LWIP_SOCK_FD_FREE_TCP 1 -#define LWIP_SOCK_FD_FREE_FREE 2 -#endif -}; - -#ifndef set_errno -#define set_errno(err) do { if (err) { errno = (err); } } while(0) -#endif - -#if !LWIP_TCPIP_CORE_LOCKING -/** Maximum optlen used by setsockopt/getsockopt */ -#define LWIP_SETGETSOCKOPT_MAXOPTLEN LWIP_MAX(16, sizeof(struct ifreq)) - -/** This struct is used to pass data to the set/getsockopt_internal - * functions running in tcpip_thread context (only a void* is allowed) */ -struct lwip_setgetsockopt_data { - /** socket index for which to change options */ - int s; - /** level of the option to process */ - int level; - /** name of the option to process */ - int optname; - /** set: value to set the option to - * get: value of the option is stored here */ -#if LWIP_MPU_COMPATIBLE - u8_t optval[LWIP_SETGETSOCKOPT_MAXOPTLEN]; -#else - union { - void *p; - const void *pc; - } optval; -#endif - /** size of *optval */ - socklen_t optlen; - /** if an error occurs, it is temporarily stored here */ - int err; - /** semaphore to wake up the calling task */ - void* completed_sem; -}; -#endif /* !LWIP_TCPIP_CORE_LOCKING */ - -#ifdef __cplusplus -} -#endif - -struct lwip_sock* lwip_socket_dbg_get_socket(int fd); - -#if LWIP_SOCKET_SELECT || LWIP_SOCKET_POLL - -#if LWIP_NETCONN_SEM_PER_THREAD -#define SELECT_SEM_T sys_sem_t* -#define SELECT_SEM_PTR(sem) (sem) -#else /* LWIP_NETCONN_SEM_PER_THREAD */ -#define SELECT_SEM_T sys_sem_t -#define SELECT_SEM_PTR(sem) (&(sem)) -#endif /* LWIP_NETCONN_SEM_PER_THREAD */ - -/** Description for a task waiting in select */ -struct lwip_select_cb { - /** Pointer to the next waiting task */ - struct lwip_select_cb *next; - /** Pointer to the previous waiting task */ - struct lwip_select_cb *prev; -#if LWIP_SOCKET_SELECT - /** readset passed to select */ - fd_set *readset; - /** writeset passed to select */ - fd_set *writeset; - /** unimplemented: exceptset passed to select */ - fd_set *exceptset; -#endif /* LWIP_SOCKET_SELECT */ -#if LWIP_SOCKET_POLL - /** fds passed to poll; NULL if select */ - struct pollfd *poll_fds; - /** nfds passed to poll; 0 if select */ - nfds_t poll_nfds; -#endif /* LWIP_SOCKET_POLL */ - /** don't signal the same semaphore twice: set to 1 when signalled */ - int sem_signalled; - /** semaphore to wake up a task waiting for select */ - SELECT_SEM_T sem; -}; -#endif /* LWIP_SOCKET_SELECT || LWIP_SOCKET_POLL */ - -#endif /* LWIP_SOCKET */ - -#endif /* LWIP_HDR_SOCKETS_PRIV_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcp_priv.h b/Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcp_priv.h deleted file mode 100644 index 72f9126..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcp_priv.h +++ /dev/null @@ -1,523 +0,0 @@ -/** - * @file - * TCP internal implementations (do not use in application code) - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_TCP_PRIV_H -#define LWIP_HDR_TCP_PRIV_H - -#include "lwip/opt.h" - -#if LWIP_TCP /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/tcp.h" -#include "lwip/mem.h" -#include "lwip/pbuf.h" -#include "lwip/ip.h" -#include "lwip/icmp.h" -#include "lwip/err.h" -#include "lwip/ip6.h" -#include "lwip/ip6_addr.h" -#include "lwip/prot/tcp.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* Functions for interfacing with TCP: */ - -/* Lower layer interface to TCP: */ -void tcp_init (void); /* Initialize this module. */ -void tcp_tmr (void); /* Must be called every - TCP_TMR_INTERVAL - ms. (Typically 250 ms). */ -/* It is also possible to call these two functions at the right - intervals (instead of calling tcp_tmr()). */ -void tcp_slowtmr (void); -void tcp_fasttmr (void); - -/* Call this from a netif driver (watch out for threading issues!) that has - returned a memory error on transmit and now has free buffers to send more. - This iterates all active pcbs that had an error and tries to call - tcp_output, so use this with care as it might slow down the system. */ -void tcp_txnow (void); - -/* Only used by IP to pass a TCP segment to TCP: */ -void tcp_input (struct pbuf *p, struct netif *inp); -/* Used within the TCP code only: */ -struct tcp_pcb * tcp_alloc (u8_t prio); -void tcp_free (struct tcp_pcb *pcb); -void tcp_abandon (struct tcp_pcb *pcb, int reset); -err_t tcp_send_empty_ack(struct tcp_pcb *pcb); -err_t tcp_rexmit (struct tcp_pcb *pcb); -err_t tcp_rexmit_rto_prepare(struct tcp_pcb *pcb); -void tcp_rexmit_rto_commit(struct tcp_pcb *pcb); -void tcp_rexmit_rto (struct tcp_pcb *pcb); -void tcp_rexmit_fast (struct tcp_pcb *pcb); -u32_t tcp_update_rcv_ann_wnd(struct tcp_pcb *pcb); -err_t tcp_process_refused_data(struct tcp_pcb *pcb); - -/** - * This is the Nagle algorithm: try to combine user data to send as few TCP - * segments as possible. Only send if - * - no previously transmitted data on the connection remains unacknowledged or - * - the TF_NODELAY flag is set (nagle algorithm turned off for this pcb) or - * - the only unsent segment is at least pcb->mss bytes long (or there is more - * than one unsent segment - with lwIP, this can happen although unsent->len < mss) - * - or if we are in fast-retransmit (TF_INFR) - */ -#define tcp_do_output_nagle(tpcb) ((((tpcb)->unacked == NULL) || \ - ((tpcb)->flags & (TF_NODELAY | TF_INFR)) || \ - (((tpcb)->unsent != NULL) && (((tpcb)->unsent->next != NULL) || \ - ((tpcb)->unsent->len >= (tpcb)->mss))) || \ - ((tcp_sndbuf(tpcb) == 0) || (tcp_sndqueuelen(tpcb) >= TCP_SND_QUEUELEN)) \ - ) ? 1 : 0) -#define tcp_output_nagle(tpcb) (tcp_do_output_nagle(tpcb) ? tcp_output(tpcb) : ERR_OK) - - -#define TCP_SEQ_LT(a,b) ((s32_t)((u32_t)(a) - (u32_t)(b)) < 0) -#define TCP_SEQ_LEQ(a,b) ((s32_t)((u32_t)(a) - (u32_t)(b)) <= 0) -#define TCP_SEQ_GT(a,b) ((s32_t)((u32_t)(a) - (u32_t)(b)) > 0) -#define TCP_SEQ_GEQ(a,b) ((s32_t)((u32_t)(a) - (u32_t)(b)) >= 0) -/* is b<=a<=c? */ -#if 0 /* see bug #10548 */ -#define TCP_SEQ_BETWEEN(a,b,c) ((c)-(b) >= (a)-(b)) -#endif -#define TCP_SEQ_BETWEEN(a,b,c) (TCP_SEQ_GEQ(a,b) && TCP_SEQ_LEQ(a,c)) - -#ifndef TCP_TMR_INTERVAL -#define TCP_TMR_INTERVAL 250 /* The TCP timer interval in milliseconds. */ -#endif /* TCP_TMR_INTERVAL */ - -#ifndef TCP_FAST_INTERVAL -#define TCP_FAST_INTERVAL TCP_TMR_INTERVAL /* the fine grained timeout in milliseconds */ -#endif /* TCP_FAST_INTERVAL */ - -#ifndef TCP_SLOW_INTERVAL -#define TCP_SLOW_INTERVAL (2*TCP_TMR_INTERVAL) /* the coarse grained timeout in milliseconds */ -#endif /* TCP_SLOW_INTERVAL */ - -#define TCP_FIN_WAIT_TIMEOUT 20000 /* milliseconds */ -#define TCP_SYN_RCVD_TIMEOUT 20000 /* milliseconds */ - -#define TCP_OOSEQ_TIMEOUT 6U /* x RTO */ - -#ifndef TCP_MSL -#define TCP_MSL 60000UL /* The maximum segment lifetime in milliseconds */ -#endif - -/* Keepalive values, compliant with RFC 1122. Don't change this unless you know what you're doing */ -#ifndef TCP_KEEPIDLE_DEFAULT -#define TCP_KEEPIDLE_DEFAULT 7200000UL /* Default KEEPALIVE timer in milliseconds */ -#endif - -#ifndef TCP_KEEPINTVL_DEFAULT -#define TCP_KEEPINTVL_DEFAULT 75000UL /* Default Time between KEEPALIVE probes in milliseconds */ -#endif - -#ifndef TCP_KEEPCNT_DEFAULT -#define TCP_KEEPCNT_DEFAULT 9U /* Default Counter for KEEPALIVE probes */ -#endif - -#define TCP_MAXIDLE TCP_KEEPCNT_DEFAULT * TCP_KEEPINTVL_DEFAULT /* Maximum KEEPALIVE probe time */ - -#define TCP_TCPLEN(seg) ((seg)->len + (((TCPH_FLAGS((seg)->tcphdr) & (TCP_FIN | TCP_SYN)) != 0) ? 1U : 0U)) - -/** Flags used on input processing, not on pcb->flags -*/ -#define TF_RESET (u8_t)0x08U /* Connection was reset. */ -#define TF_CLOSED (u8_t)0x10U /* Connection was successfully closed. */ -#define TF_GOT_FIN (u8_t)0x20U /* Connection was closed by the remote end. */ - - -#if LWIP_EVENT_API - -#define TCP_EVENT_ACCEPT(lpcb,pcb,arg,err,ret) ret = lwip_tcp_event(arg, (pcb),\ - LWIP_EVENT_ACCEPT, NULL, 0, err) -#define TCP_EVENT_SENT(pcb,space,ret) ret = lwip_tcp_event((pcb)->callback_arg, (pcb),\ - LWIP_EVENT_SENT, NULL, space, ERR_OK) -#define TCP_EVENT_RECV(pcb,p,err,ret) ret = lwip_tcp_event((pcb)->callback_arg, (pcb),\ - LWIP_EVENT_RECV, (p), 0, (err)) -#define TCP_EVENT_CLOSED(pcb,ret) ret = lwip_tcp_event((pcb)->callback_arg, (pcb),\ - LWIP_EVENT_RECV, NULL, 0, ERR_OK) -#define TCP_EVENT_CONNECTED(pcb,err,ret) ret = lwip_tcp_event((pcb)->callback_arg, (pcb),\ - LWIP_EVENT_CONNECTED, NULL, 0, (err)) -#define TCP_EVENT_POLL(pcb,ret) do { if ((pcb)->state != SYN_RCVD) { \ - ret = lwip_tcp_event((pcb)->callback_arg, (pcb), LWIP_EVENT_POLL, NULL, 0, ERR_OK); \ - } else { \ - ret = ERR_ARG; } } while(0) -/* For event API, last state SYN_RCVD must be excluded here: the application - has not seen this pcb, yet! */ -#define TCP_EVENT_ERR(last_state,errf,arg,err) do { if (last_state != SYN_RCVD) { \ - lwip_tcp_event((arg), NULL, LWIP_EVENT_ERR, NULL, 0, (err)); } } while(0) - -#else /* LWIP_EVENT_API */ - -#define TCP_EVENT_ACCEPT(lpcb,pcb,arg,err,ret) \ - do { \ - if((lpcb)->accept != NULL) \ - (ret) = (lpcb)->accept((arg),(pcb),(err)); \ - else (ret) = ERR_ARG; \ - } while (0) - -#define TCP_EVENT_SENT(pcb,space,ret) \ - do { \ - if((pcb)->sent != NULL) \ - (ret) = (pcb)->sent((pcb)->callback_arg,(pcb),(space)); \ - else (ret) = ERR_OK; \ - } while (0) - -#define TCP_EVENT_RECV(pcb,p,err,ret) \ - do { \ - if((pcb)->recv != NULL) { \ - (ret) = (pcb)->recv((pcb)->callback_arg,(pcb),(p),(err));\ - } else { \ - (ret) = tcp_recv_null(NULL, (pcb), (p), (err)); \ - } \ - } while (0) - -#define TCP_EVENT_CLOSED(pcb,ret) \ - do { \ - if(((pcb)->recv != NULL)) { \ - (ret) = (pcb)->recv((pcb)->callback_arg,(pcb),NULL,ERR_OK);\ - } else { \ - (ret) = ERR_OK; \ - } \ - } while (0) - -#define TCP_EVENT_CONNECTED(pcb,err,ret) \ - do { \ - if((pcb)->connected != NULL) \ - (ret) = (pcb)->connected((pcb)->callback_arg,(pcb),(err)); \ - else (ret) = ERR_OK; \ - } while (0) - -#define TCP_EVENT_POLL(pcb,ret) \ - do { \ - if((pcb)->poll != NULL) \ - (ret) = (pcb)->poll((pcb)->callback_arg,(pcb)); \ - else (ret) = ERR_OK; \ - } while (0) - -#define TCP_EVENT_ERR(last_state,errf,arg,err) \ - do { \ - LWIP_UNUSED_ARG(last_state); \ - if((errf) != NULL) \ - (errf)((arg),(err)); \ - } while (0) - -#endif /* LWIP_EVENT_API */ - -/** Enabled extra-check for TCP_OVERSIZE if LWIP_DEBUG is enabled */ -#if TCP_OVERSIZE && defined(LWIP_DEBUG) -#define TCP_OVERSIZE_DBGCHECK 1 -#else -#define TCP_OVERSIZE_DBGCHECK 0 -#endif - -/** Don't generate checksum on copy if CHECKSUM_GEN_TCP is disabled */ -#define TCP_CHECKSUM_ON_COPY (LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_TCP) - -/* This structure represents a TCP segment on the unsent, unacked and ooseq queues */ -struct tcp_seg { - struct tcp_seg *next; /* used when putting segments on a queue */ - struct pbuf *p; /* buffer containing data + TCP header */ - u16_t len; /* the TCP length of this segment */ -#if TCP_OVERSIZE_DBGCHECK - u16_t oversize_left; /* Extra bytes available at the end of the last - pbuf in unsent (used for asserting vs. - tcp_pcb.unsent_oversize only) */ -#endif /* TCP_OVERSIZE_DBGCHECK */ -#if TCP_CHECKSUM_ON_COPY - u16_t chksum; - u8_t chksum_swapped; -#endif /* TCP_CHECKSUM_ON_COPY */ - u8_t flags; -#define TF_SEG_OPTS_MSS (u8_t)0x01U /* Include MSS option (only used in SYN segments) */ -#define TF_SEG_OPTS_TS (u8_t)0x02U /* Include timestamp option. */ -#define TF_SEG_DATA_CHECKSUMMED (u8_t)0x04U /* ALL data (not the header) is - checksummed into 'chksum' */ -#define TF_SEG_OPTS_WND_SCALE (u8_t)0x08U /* Include WND SCALE option (only used in SYN segments) */ -#define TF_SEG_OPTS_SACK_PERM (u8_t)0x10U /* Include SACK Permitted option (only used in SYN segments) */ - struct tcp_hdr *tcphdr; /* the TCP header */ -}; - -#define LWIP_TCP_OPT_EOL 0 -#define LWIP_TCP_OPT_NOP 1 -#define LWIP_TCP_OPT_MSS 2 -#define LWIP_TCP_OPT_WS 3 -#define LWIP_TCP_OPT_SACK_PERM 4 -#define LWIP_TCP_OPT_TS 8 - -#define LWIP_TCP_OPT_LEN_MSS 4 -#if LWIP_TCP_TIMESTAMPS -#define LWIP_TCP_OPT_LEN_TS 10 -#define LWIP_TCP_OPT_LEN_TS_OUT 12 /* aligned for output (includes NOP padding) */ -#else -#define LWIP_TCP_OPT_LEN_TS_OUT 0 -#endif -#if LWIP_WND_SCALE -#define LWIP_TCP_OPT_LEN_WS 3 -#define LWIP_TCP_OPT_LEN_WS_OUT 4 /* aligned for output (includes NOP padding) */ -#else -#define LWIP_TCP_OPT_LEN_WS_OUT 0 -#endif - -#if LWIP_TCP_SACK_OUT -#define LWIP_TCP_OPT_LEN_SACK_PERM 2 -#define LWIP_TCP_OPT_LEN_SACK_PERM_OUT 4 /* aligned for output (includes NOP padding) */ -#else -#define LWIP_TCP_OPT_LEN_SACK_PERM_OUT 0 -#endif - -#define LWIP_TCP_OPT_LENGTH(flags) \ - ((flags) & TF_SEG_OPTS_MSS ? LWIP_TCP_OPT_LEN_MSS : 0) + \ - ((flags) & TF_SEG_OPTS_TS ? LWIP_TCP_OPT_LEN_TS_OUT : 0) + \ - ((flags) & TF_SEG_OPTS_WND_SCALE ? LWIP_TCP_OPT_LEN_WS_OUT : 0) + \ - ((flags) & TF_SEG_OPTS_SACK_PERM ? LWIP_TCP_OPT_LEN_SACK_PERM_OUT : 0) - -/** This returns a TCP header option for MSS in an u32_t */ -#define TCP_BUILD_MSS_OPTION(mss) lwip_htonl(0x02040000 | ((mss) & 0xFFFF)) - -#if LWIP_WND_SCALE -#define TCPWNDSIZE_F U32_F -#define TCPWND_MAX 0xFFFFFFFFU -#define TCPWND_CHECK16(x) LWIP_ASSERT("window size > 0xFFFF", (x) <= 0xFFFF) -#define TCPWND_MIN16(x) ((u16_t)LWIP_MIN((x), 0xFFFF)) -#else /* LWIP_WND_SCALE */ -#define TCPWNDSIZE_F U16_F -#define TCPWND_MAX 0xFFFFU -#define TCPWND_CHECK16(x) -#define TCPWND_MIN16(x) x -#endif /* LWIP_WND_SCALE */ - -/* Global variables: */ -extern struct tcp_pcb *tcp_input_pcb; -extern u32_t tcp_ticks; -extern u8_t tcp_active_pcbs_changed; - -/* The TCP PCB lists. */ -union tcp_listen_pcbs_t { /* List of all TCP PCBs in LISTEN state. */ - struct tcp_pcb_listen *listen_pcbs; - struct tcp_pcb *pcbs; -}; -extern struct tcp_pcb *tcp_bound_pcbs; -extern union tcp_listen_pcbs_t tcp_listen_pcbs; -extern struct tcp_pcb *tcp_active_pcbs; /* List of all TCP PCBs that are in a - state in which they accept or send - data. */ -extern struct tcp_pcb *tcp_tw_pcbs; /* List of all TCP PCBs in TIME-WAIT. */ - -#define NUM_TCP_PCB_LISTS_NO_TIME_WAIT 3 -#define NUM_TCP_PCB_LISTS 4 -extern struct tcp_pcb ** const tcp_pcb_lists[NUM_TCP_PCB_LISTS]; - -/* Axioms about the above lists: - 1) Every TCP PCB that is not CLOSED is in one of the lists. - 2) A PCB is only in one of the lists. - 3) All PCBs in the tcp_listen_pcbs list is in LISTEN state. - 4) All PCBs in the tcp_tw_pcbs list is in TIME-WAIT state. -*/ -/* Define two macros, TCP_REG and TCP_RMV that registers a TCP PCB - with a PCB list or removes a PCB from a list, respectively. */ -#ifndef TCP_DEBUG_PCB_LISTS -#define TCP_DEBUG_PCB_LISTS 0 -#endif -#if TCP_DEBUG_PCB_LISTS -#define TCP_REG(pcbs, npcb) do {\ - struct tcp_pcb *tcp_tmp_pcb; \ - LWIP_DEBUGF(TCP_DEBUG, ("TCP_REG %p local port %"U16_F"\n", (void *)(npcb), (npcb)->local_port)); \ - for (tcp_tmp_pcb = *(pcbs); \ - tcp_tmp_pcb != NULL; \ - tcp_tmp_pcb = tcp_tmp_pcb->next) { \ - LWIP_ASSERT("TCP_REG: already registered\n", tcp_tmp_pcb != (npcb)); \ - } \ - LWIP_ASSERT("TCP_REG: pcb->state != CLOSED", ((pcbs) == &tcp_bound_pcbs) || ((npcb)->state != CLOSED)); \ - (npcb)->next = *(pcbs); \ - LWIP_ASSERT("TCP_REG: npcb->next != npcb", (npcb)->next != (npcb)); \ - *(pcbs) = (npcb); \ - LWIP_ASSERT("TCP_REG: tcp_pcbs sane", tcp_pcbs_sane()); \ - tcp_timer_needed(); \ - } while(0) -#define TCP_RMV(pcbs, npcb) do { \ - struct tcp_pcb *tcp_tmp_pcb; \ - LWIP_ASSERT("TCP_RMV: pcbs != NULL", *(pcbs) != NULL); \ - LWIP_DEBUGF(TCP_DEBUG, ("TCP_RMV: removing %p from %p\n", (void *)(npcb), (void *)(*(pcbs)))); \ - if(*(pcbs) == (npcb)) { \ - *(pcbs) = (*pcbs)->next; \ - } else for (tcp_tmp_pcb = *(pcbs); tcp_tmp_pcb != NULL; tcp_tmp_pcb = tcp_tmp_pcb->next) { \ - if(tcp_tmp_pcb->next == (npcb)) { \ - tcp_tmp_pcb->next = (npcb)->next; \ - break; \ - } \ - } \ - (npcb)->next = NULL; \ - LWIP_ASSERT("TCP_RMV: tcp_pcbs sane", tcp_pcbs_sane()); \ - LWIP_DEBUGF(TCP_DEBUG, ("TCP_RMV: removed %p from %p\n", (void *)(npcb), (void *)(*(pcbs)))); \ - } while(0) - -#else /* LWIP_DEBUG */ - -#define TCP_REG(pcbs, npcb) \ - do { \ - (npcb)->next = *pcbs; \ - *(pcbs) = (npcb); \ - tcp_timer_needed(); \ - } while (0) - -#define TCP_RMV(pcbs, npcb) \ - do { \ - if(*(pcbs) == (npcb)) { \ - (*(pcbs)) = (*pcbs)->next; \ - } \ - else { \ - struct tcp_pcb *tcp_tmp_pcb; \ - for (tcp_tmp_pcb = *pcbs; \ - tcp_tmp_pcb != NULL; \ - tcp_tmp_pcb = tcp_tmp_pcb->next) { \ - if(tcp_tmp_pcb->next == (npcb)) { \ - tcp_tmp_pcb->next = (npcb)->next; \ - break; \ - } \ - } \ - } \ - (npcb)->next = NULL; \ - } while(0) - -#endif /* LWIP_DEBUG */ - -#define TCP_REG_ACTIVE(npcb) \ - do { \ - TCP_REG(&tcp_active_pcbs, npcb); \ - tcp_active_pcbs_changed = 1; \ - } while (0) - -#define TCP_RMV_ACTIVE(npcb) \ - do { \ - TCP_RMV(&tcp_active_pcbs, npcb); \ - tcp_active_pcbs_changed = 1; \ - } while (0) - -#define TCP_PCB_REMOVE_ACTIVE(pcb) \ - do { \ - tcp_pcb_remove(&tcp_active_pcbs, pcb); \ - tcp_active_pcbs_changed = 1; \ - } while (0) - - -/* Internal functions: */ -struct tcp_pcb *tcp_pcb_copy(struct tcp_pcb *pcb); -void tcp_pcb_purge(struct tcp_pcb *pcb); -void tcp_pcb_remove(struct tcp_pcb **pcblist, struct tcp_pcb *pcb); - -void tcp_segs_free(struct tcp_seg *seg); -void tcp_seg_free(struct tcp_seg *seg); -struct tcp_seg *tcp_seg_copy(struct tcp_seg *seg); - -#define tcp_ack(pcb) \ - do { \ - if((pcb)->flags & TF_ACK_DELAY) { \ - tcp_clear_flags(pcb, TF_ACK_DELAY); \ - tcp_ack_now(pcb); \ - } \ - else { \ - tcp_set_flags(pcb, TF_ACK_DELAY); \ - } \ - } while (0) - -#define tcp_ack_now(pcb) \ - tcp_set_flags(pcb, TF_ACK_NOW) - -err_t tcp_send_fin(struct tcp_pcb *pcb); -err_t tcp_enqueue_flags(struct tcp_pcb *pcb, u8_t flags); - -void tcp_rexmit_seg(struct tcp_pcb *pcb, struct tcp_seg *seg); - -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); - -u32_t tcp_next_iss(struct tcp_pcb *pcb); - -err_t tcp_keepalive(struct tcp_pcb *pcb); -err_t tcp_split_unsent_seg(struct tcp_pcb *pcb, u16_t split); -err_t tcp_zero_window_probe(struct tcp_pcb *pcb); -void tcp_trigger_input_pcb_close(void); - -#if TCP_CALCULATE_EFF_SEND_MSS -u16_t tcp_eff_send_mss_netif(u16_t sendmss, struct netif *outif, - const ip_addr_t *dest); -#define tcp_eff_send_mss(sendmss, src, dest) \ - tcp_eff_send_mss_netif(sendmss, ip_route(src, dest), dest) -#endif /* TCP_CALCULATE_EFF_SEND_MSS */ - -#if LWIP_CALLBACK_API -err_t tcp_recv_null(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err); -#endif /* LWIP_CALLBACK_API */ - -#if TCP_DEBUG || TCP_INPUT_DEBUG || TCP_OUTPUT_DEBUG -void tcp_debug_print(struct tcp_hdr *tcphdr); -void tcp_debug_print_flags(u8_t flags); -void tcp_debug_print_state(enum tcp_state s); -void tcp_debug_print_pcbs(void); -s16_t tcp_pcbs_sane(void); -#else -# define tcp_debug_print(tcphdr) -# define tcp_debug_print_flags(flags) -# define tcp_debug_print_state(s) -# define tcp_debug_print_pcbs() -# define tcp_pcbs_sane() 1 -#endif /* TCP_DEBUG */ - -/** External function (implemented in timers.c), called when TCP detects - * that a timer is needed (i.e. active- or time-wait-pcb found). */ -void tcp_timer_needed(void); - -void tcp_netif_ip_addr_changed(const ip_addr_t* old_addr, const ip_addr_t* new_addr); - -#if TCP_QUEUE_OOSEQ -void tcp_free_ooseq(struct tcp_pcb *pcb); -#endif - -#if LWIP_TCP_PCB_NUM_EXT_ARGS -err_t tcp_ext_arg_invoke_callbacks_passive_open(struct tcp_pcb_listen *lpcb, struct tcp_pcb *cpcb); -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_TCP */ - -#endif /* LWIP_HDR_TCP_PRIV_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcpip_priv.h b/Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcpip_priv.h deleted file mode 100644 index 74be634..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/priv/tcpip_priv.h +++ /dev/null @@ -1,170 +0,0 @@ -/** - * @file - * TCPIP API internal implementations (do not use in application code) - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_TCPIP_PRIV_H -#define LWIP_HDR_TCPIP_PRIV_H - -#include "lwip/opt.h" - -#if !NO_SYS /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/tcpip.h" -#include "lwip/sys.h" -#include "lwip/timeouts.h" - -#ifdef __cplusplus -extern "C" { -#endif - -struct pbuf; -struct netif; - -#if LWIP_MPU_COMPATIBLE -#define API_VAR_REF(name) (*(name)) -#define API_VAR_DECLARE(type, name) type * name -#define API_VAR_ALLOC_EXT(type, pool, name, errorblock) do { \ - name = (type *)memp_malloc(pool); \ - if (name == NULL) { \ - errorblock; \ - } \ - } while(0) -#define API_VAR_ALLOC(type, pool, name, errorval) API_VAR_ALLOC_EXT(type, pool, name, return errorval) -#define API_VAR_ALLOC_POOL(type, pool, name, errorval) do { \ - name = (type *)LWIP_MEMPOOL_ALLOC(pool); \ - if (name == NULL) { \ - return errorval; \ - } \ - } while(0) -#define API_VAR_FREE(pool, name) memp_free(pool, name) -#define API_VAR_FREE_POOL(pool, name) LWIP_MEMPOOL_FREE(pool, name) -#define API_EXPR_REF(expr) (&(expr)) -#if LWIP_NETCONN_SEM_PER_THREAD -#define API_EXPR_REF_SEM(expr) (expr) -#else -#define API_EXPR_REF_SEM(expr) API_EXPR_REF(expr) -#endif -#define API_EXPR_DEREF(expr) expr -#define API_MSG_M_DEF(m) m -#define API_MSG_M_DEF_C(t, m) t m -#else /* LWIP_MPU_COMPATIBLE */ -#define API_VAR_REF(name) name -#define API_VAR_DECLARE(type, name) type name -#define API_VAR_ALLOC_EXT(type, pool, name, errorblock) -#define API_VAR_ALLOC(type, pool, name, errorval) -#define API_VAR_ALLOC_POOL(type, pool, name, errorval) -#define API_VAR_FREE(pool, name) -#define API_VAR_FREE_POOL(pool, name) -#define API_EXPR_REF(expr) expr -#define API_EXPR_REF_SEM(expr) API_EXPR_REF(expr) -#define API_EXPR_DEREF(expr) (*(expr)) -#define API_MSG_M_DEF(m) *m -#define API_MSG_M_DEF_C(t, m) const t * m -#endif /* LWIP_MPU_COMPATIBLE */ - -err_t tcpip_send_msg_wait_sem(tcpip_callback_fn fn, void *apimsg, sys_sem_t* sem); - -struct tcpip_api_call_data -{ -#if !LWIP_TCPIP_CORE_LOCKING - err_t err; -#if !LWIP_NETCONN_SEM_PER_THREAD - sys_sem_t sem; -#endif /* LWIP_NETCONN_SEM_PER_THREAD */ -#else /* !LWIP_TCPIP_CORE_LOCKING */ - u8_t dummy; /* avoid empty struct :-( */ -#endif /* !LWIP_TCPIP_CORE_LOCKING */ -}; -typedef err_t (*tcpip_api_call_fn)(struct tcpip_api_call_data* call); -err_t tcpip_api_call(tcpip_api_call_fn fn, struct tcpip_api_call_data *call); - -enum tcpip_msg_type { -#if !LWIP_TCPIP_CORE_LOCKING - TCPIP_MSG_API, - TCPIP_MSG_API_CALL, -#endif /* !LWIP_TCPIP_CORE_LOCKING */ -#if !LWIP_TCPIP_CORE_LOCKING_INPUT - TCPIP_MSG_INPKT, -#endif /* !LWIP_TCPIP_CORE_LOCKING_INPUT */ -#if LWIP_TCPIP_TIMEOUT && LWIP_TIMERS - TCPIP_MSG_TIMEOUT, - TCPIP_MSG_UNTIMEOUT, -#endif /* LWIP_TCPIP_TIMEOUT && LWIP_TIMERS */ - TCPIP_MSG_CALLBACK, - TCPIP_MSG_CALLBACK_STATIC -}; - -struct tcpip_msg { - enum tcpip_msg_type type; - union { -#if !LWIP_TCPIP_CORE_LOCKING - struct { - tcpip_callback_fn function; - void* msg; - } api_msg; - struct { - tcpip_api_call_fn function; - struct tcpip_api_call_data *arg; - sys_sem_t *sem; - } api_call; -#endif /* LWIP_TCPIP_CORE_LOCKING */ -#if !LWIP_TCPIP_CORE_LOCKING_INPUT - struct { - struct pbuf *p; - struct netif *netif; - netif_input_fn input_fn; - } inp; -#endif /* !LWIP_TCPIP_CORE_LOCKING_INPUT */ - struct { - tcpip_callback_fn function; - void *ctx; - } cb; -#if LWIP_TCPIP_TIMEOUT && LWIP_TIMERS - struct { - u32_t msecs; - sys_timeout_handler h; - void *arg; - } tmo; -#endif /* LWIP_TCPIP_TIMEOUT && LWIP_TIMERS */ - } msg; -}; - -#ifdef __cplusplus -} -#endif - -#endif /* !NO_SYS */ - -#endif /* LWIP_HDR_TCPIP_PRIV_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/autoip.h b/Middlewares/Third_Party/LwIP/src/include/lwip/prot/autoip.h deleted file mode 100644 index fd3af8a..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/autoip.h +++ /dev/null @@ -1,78 +0,0 @@ -/** - * @file - * AutoIP protocol definitions - */ - -/* - * - * Copyright (c) 2007 Dominik Spies - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * Author: Dominik Spies - * - * This is a AutoIP implementation for the lwIP TCP/IP stack. It aims to conform - * with RFC 3927. - * - */ - -#ifndef LWIP_HDR_PROT_AUTOIP_H -#define LWIP_HDR_PROT_AUTOIP_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* 169.254.0.0 */ -#define AUTOIP_NET 0xA9FE0000 -/* 169.254.1.0 */ -#define AUTOIP_RANGE_START (AUTOIP_NET | 0x0100) -/* 169.254.254.255 */ -#define AUTOIP_RANGE_END (AUTOIP_NET | 0xFEFF) - -/* RFC 3927 Constants */ -#define PROBE_WAIT 1 /* second (initial random delay) */ -#define PROBE_MIN 1 /* second (minimum delay till repeated probe) */ -#define PROBE_MAX 2 /* seconds (maximum delay till repeated probe) */ -#define PROBE_NUM 3 /* (number of probe packets) */ -#define ANNOUNCE_NUM 2 /* (number of announcement packets) */ -#define ANNOUNCE_INTERVAL 2 /* seconds (time between announcement packets) */ -#define ANNOUNCE_WAIT 2 /* seconds (delay before announcing) */ -#define MAX_CONFLICTS 10 /* (max conflicts before rate limiting) */ -#define RATE_LIMIT_INTERVAL 60 /* seconds (delay between successive attempts) */ -#define DEFEND_INTERVAL 10 /* seconds (min. wait between defensive ARPs) */ - -/* AutoIP client states */ -typedef enum { - AUTOIP_STATE_OFF = 0, - AUTOIP_STATE_PROBING = 1, - AUTOIP_STATE_ANNOUNCING = 2, - AUTOIP_STATE_BOUND = 3 -} autoip_state_enum_t; - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_PROT_AUTOIP_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/dhcp.h b/Middlewares/Third_Party/LwIP/src/include/lwip/prot/dhcp.h deleted file mode 100644 index ab18dca..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/dhcp.h +++ /dev/null @@ -1,178 +0,0 @@ -/** - * @file - * DHCP protocol definitions - */ - -/* - * Copyright (c) 2001-2004 Leon Woestenberg - * Copyright (c) 2001-2004 Axon Digital Design B.V., The Netherlands. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Leon Woestenberg - * - */ -#ifndef LWIP_HDR_PROT_DHCP_H -#define LWIP_HDR_PROT_DHCP_H - -#include "lwip/opt.h" -#include "lwip/arch.h" -#include "lwip/prot/ip4.h" - -#ifdef __cplusplus -extern "C" { -#endif - - /* DHCP message item offsets and length */ -#define DHCP_CHADDR_LEN 16U -#define DHCP_SNAME_OFS 44U -#define DHCP_SNAME_LEN 64U -#define DHCP_FILE_OFS 108U -#define DHCP_FILE_LEN 128U -#define DHCP_MSG_LEN 236U -#define DHCP_OPTIONS_OFS (DHCP_MSG_LEN + 4U) /* 4 byte: cookie */ - -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -/** minimum set of fields of any DHCP message */ -struct dhcp_msg -{ - PACK_STRUCT_FLD_8(u8_t op); - PACK_STRUCT_FLD_8(u8_t htype); - PACK_STRUCT_FLD_8(u8_t hlen); - PACK_STRUCT_FLD_8(u8_t hops); - PACK_STRUCT_FIELD(u32_t xid); - PACK_STRUCT_FIELD(u16_t secs); - PACK_STRUCT_FIELD(u16_t flags); - PACK_STRUCT_FLD_S(ip4_addr_p_t ciaddr); - PACK_STRUCT_FLD_S(ip4_addr_p_t yiaddr); - PACK_STRUCT_FLD_S(ip4_addr_p_t siaddr); - PACK_STRUCT_FLD_S(ip4_addr_p_t giaddr); - PACK_STRUCT_FLD_8(u8_t chaddr[DHCP_CHADDR_LEN]); - PACK_STRUCT_FLD_8(u8_t sname[DHCP_SNAME_LEN]); - PACK_STRUCT_FLD_8(u8_t file[DHCP_FILE_LEN]); - PACK_STRUCT_FIELD(u32_t cookie); -#define DHCP_MIN_OPTIONS_LEN 68U -/** make sure user does not configure this too small */ -#if ((defined(DHCP_OPTIONS_LEN)) && (DHCP_OPTIONS_LEN < DHCP_MIN_OPTIONS_LEN)) -# undef DHCP_OPTIONS_LEN -#endif -/** allow this to be configured in lwipopts.h, but not too small */ -#if (!defined(DHCP_OPTIONS_LEN)) -/** set this to be sufficient for your options in outgoing DHCP msgs */ -# define DHCP_OPTIONS_LEN DHCP_MIN_OPTIONS_LEN -#endif - PACK_STRUCT_FLD_8(u8_t options[DHCP_OPTIONS_LEN]); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - - -/* DHCP client states */ -typedef enum { - DHCP_STATE_OFF = 0, - DHCP_STATE_REQUESTING = 1, - DHCP_STATE_INIT = 2, - DHCP_STATE_REBOOTING = 3, - DHCP_STATE_REBINDING = 4, - DHCP_STATE_RENEWING = 5, - DHCP_STATE_SELECTING = 6, - DHCP_STATE_INFORMING = 7, - DHCP_STATE_CHECKING = 8, - DHCP_STATE_PERMANENT = 9, /* not yet implemented */ - DHCP_STATE_BOUND = 10, - DHCP_STATE_RELEASING = 11, /* not yet implemented */ - DHCP_STATE_BACKING_OFF = 12 -} dhcp_state_enum_t; - -/* DHCP op codes */ -#define DHCP_BOOTREQUEST 1 -#define DHCP_BOOTREPLY 2 - -/* DHCP message types */ -#define DHCP_DISCOVER 1 -#define DHCP_OFFER 2 -#define DHCP_REQUEST 3 -#define DHCP_DECLINE 4 -#define DHCP_ACK 5 -#define DHCP_NAK 6 -#define DHCP_RELEASE 7 -#define DHCP_INFORM 8 - -#define DHCP_MAGIC_COOKIE 0x63825363UL - -/* This is a list of options for BOOTP and DHCP, see RFC 2132 for descriptions */ - -/* BootP options */ -#define DHCP_OPTION_PAD 0 -#define DHCP_OPTION_SUBNET_MASK 1 /* RFC 2132 3.3 */ -#define DHCP_OPTION_ROUTER 3 -#define DHCP_OPTION_DNS_SERVER 6 -#define DHCP_OPTION_HOSTNAME 12 -#define DHCP_OPTION_IP_TTL 23 -#define DHCP_OPTION_MTU 26 -#define DHCP_OPTION_BROADCAST 28 -#define DHCP_OPTION_TCP_TTL 37 -#define DHCP_OPTION_NTP 42 -#define DHCP_OPTION_END 255 - -/* DHCP options */ -#define DHCP_OPTION_REQUESTED_IP 50 /* RFC 2132 9.1, requested IP address */ -#define DHCP_OPTION_LEASE_TIME 51 /* RFC 2132 9.2, time in seconds, in 4 bytes */ -#define DHCP_OPTION_OVERLOAD 52 /* RFC2132 9.3, use file and/or sname field for options */ - -#define DHCP_OPTION_MESSAGE_TYPE 53 /* RFC 2132 9.6, important for DHCP */ -#define DHCP_OPTION_MESSAGE_TYPE_LEN 1 - -#define DHCP_OPTION_SERVER_ID 54 /* RFC 2132 9.7, server IP address */ -#define DHCP_OPTION_PARAMETER_REQUEST_LIST 55 /* RFC 2132 9.8, requested option types */ - -#define DHCP_OPTION_MAX_MSG_SIZE 57 /* RFC 2132 9.10, message size accepted >= 576 */ -#define DHCP_OPTION_MAX_MSG_SIZE_LEN 2 - -#define DHCP_OPTION_T1 58 /* T1 renewal time */ -#define DHCP_OPTION_T2 59 /* T2 rebinding time */ -#define DHCP_OPTION_US 60 -#define DHCP_OPTION_CLIENT_ID 61 -#define DHCP_OPTION_TFTP_SERVERNAME 66 -#define DHCP_OPTION_BOOTFILE 67 - -/* possible combinations of overloading the file and sname fields with options */ -#define DHCP_OVERLOAD_NONE 0 -#define DHCP_OVERLOAD_FILE 1 -#define DHCP_OVERLOAD_SNAME 2 -#define DHCP_OVERLOAD_SNAME_FILE 3 - - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_PROT_DHCP_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/dhcp6.h b/Middlewares/Third_Party/LwIP/src/include/lwip/prot/dhcp6.h deleted file mode 100644 index 0754c91..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/dhcp6.h +++ /dev/null @@ -1,138 +0,0 @@ -/** - * @file - * DHCPv6 protocol definitions - */ - -/* - * Copyright (c) 2017 Simon Goldschmidt - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Simon Goldschmidt - * - */ -#ifndef LWIP_HDR_PROT_DHCP6_H -#define LWIP_HDR_PROT_DHCP6_H - -#include "lwip/opt.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define DHCP6_CLIENT_PORT 546 -#define DHCP6_SERVER_PORT 547 - - - /* DHCPv6 message item offsets and length */ -#define DHCP6_TRANSACTION_ID_LEN 3 - -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -/** minimum set of fields of any DHCPv6 message */ -struct dhcp6_msg -{ - PACK_STRUCT_FLD_8(u8_t msgtype); - PACK_STRUCT_FLD_8(u8_t transaction_id[DHCP6_TRANSACTION_ID_LEN]); - /* options follow */ -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - - -/* DHCP6 client states */ -typedef enum { - DHCP6_STATE_OFF = 0, - DHCP6_STATE_STATELESS_IDLE = 1, - DHCP6_STATE_REQUESTING_CONFIG = 2 -} dhcp6_state_enum_t; - -/* DHCPv6 message types */ -#define DHCP6_SOLICIT 1 -#define DHCP6_ADVERTISE 2 -#define DHCP6_REQUEST 3 -#define DHCP6_CONFIRM 4 -#define DHCP6_RENEW 5 -#define DHCP6_REBIND 6 -#define DHCP6_REPLY 7 -#define DHCP6_RELEASE 8 -#define DHCP6_DECLINE 9 -#define DHCP6_RECONFIGURE 10 -#define DHCP6_INFOREQUEST 11 -#define DHCP6_RELAYFORW 12 -#define DHCP6_RELAYREPL 13 -/* More message types see https://www.iana.org/assignments/dhcpv6-parameters/dhcpv6-parameters.xhtml */ - -/** DHCPv6 status codes */ -#define DHCP6_STATUS_SUCCESS 0 /* Success. */ -#define DHCP6_STATUS_UNSPECFAIL 1 /* Failure, reason unspecified; this status code is sent by either a client or a server to indicate a failure not explicitly specified in this document. */ -#define DHCP6_STATUS_NOADDRSAVAIL 2 /* Server has no addresses available to assign to the IA(s). */ -#define DHCP6_STATUS_NOBINDING 3 /* Client record (binding) unavailable. */ -#define DHCP6_STATUS_NOTONLINK 4 /* The prefix for the address is not appropriate for the link to which the client is attached. */ -#define DHCP6_STATUS_USEMULTICAST 5 /* Sent by a server to a client to force the client to send messages to the server using the All_DHCP_Relay_Agents_and_Servers address. */ -/* More status codes see https://www.iana.org/assignments/dhcpv6-parameters/dhcpv6-parameters.xhtml */ - -/** DHCPv6 DUID types */ -#define DHCP6_DUID_LLT 1 /* LLT: Link-layer Address Plus Time */ -#define DHCP6_DUID_EN 2 /* EN: Enterprise number */ -#define DHCP6_DUID_LL 3 /* LL: Link-layer Address */ -#define DHCP6_DUID_UUID 4 /* UUID (RFC 6355) */ - -/* DHCPv6 options */ -#define DHCP6_OPTION_CLIENTID 1 -#define DHCP6_OPTION_SERVERID 2 -#define DHCP6_OPTION_IA_NA 3 -#define DHCP6_OPTION_IA_TA 4 -#define DHCP6_OPTION_IAADDR 5 -#define DHCP6_OPTION_ORO 6 -#define DHCP6_OPTION_PREFERENCE 7 -#define DHCP6_OPTION_ELAPSED_TIME 8 -#define DHCP6_OPTION_RELAY_MSG 9 -#define DHCP6_OPTION_AUTH 11 -#define DHCP6_OPTION_UNICAST 12 -#define DHCP6_OPTION_STATUS_CODE 13 -#define DHCP6_OPTION_RAPID_COMMIT 14 -#define DHCP6_OPTION_USER_CLASS 15 -#define DHCP6_OPTION_VENDOR_CLASS 16 -#define DHCP6_OPTION_VENDOR_OPTS 17 -#define DHCP6_OPTION_INTERFACE_ID 18 -#define DHCP6_OPTION_RECONF_MSG 19 -#define DHCP6_OPTION_RECONF_ACCEPT 20 -/* More options see https://www.iana.org/assignments/dhcpv6-parameters/dhcpv6-parameters.xhtml */ -#define DHCP6_OPTION_DNS_SERVERS 23 /* RFC 3646 */ -#define DHCP6_OPTION_DOMAIN_LIST 24 /* RFC 3646 */ -#define DHCP6_OPTION_SNTP_SERVERS 31 /* RFC 4075 */ - - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_PROT_DHCP6_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/dns.h b/Middlewares/Third_Party/LwIP/src/include/lwip/prot/dns.h deleted file mode 100644 index 94782d6..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/dns.h +++ /dev/null @@ -1,140 +0,0 @@ -/** - * @file - * DNS - host name to IP address resolver. - */ - -/* - * Port to lwIP from uIP - * by Jim Pettinato April 2007 - * - * security fixes and more by Simon Goldschmidt - * - * uIP version Copyright (c) 2002-2003, Adam Dunkels. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote - * products derived from this software without specific prior - * written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef LWIP_HDR_PROT_DNS_H -#define LWIP_HDR_PROT_DNS_H - -#include "lwip/arch.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** DNS server port address */ -#ifndef DNS_SERVER_PORT -#define DNS_SERVER_PORT 53 -#endif - -/* DNS field TYPE used for "Resource Records" */ -#define DNS_RRTYPE_A 1 /* a host address */ -#define DNS_RRTYPE_NS 2 /* an authoritative name server */ -#define DNS_RRTYPE_MD 3 /* a mail destination (Obsolete - use MX) */ -#define DNS_RRTYPE_MF 4 /* a mail forwarder (Obsolete - use MX) */ -#define DNS_RRTYPE_CNAME 5 /* the canonical name for an alias */ -#define DNS_RRTYPE_SOA 6 /* marks the start of a zone of authority */ -#define DNS_RRTYPE_MB 7 /* a mailbox domain name (EXPERIMENTAL) */ -#define DNS_RRTYPE_MG 8 /* a mail group member (EXPERIMENTAL) */ -#define DNS_RRTYPE_MR 9 /* a mail rename domain name (EXPERIMENTAL) */ -#define DNS_RRTYPE_NULL 10 /* a null RR (EXPERIMENTAL) */ -#define DNS_RRTYPE_WKS 11 /* a well known service description */ -#define DNS_RRTYPE_PTR 12 /* a domain name pointer */ -#define DNS_RRTYPE_HINFO 13 /* host information */ -#define DNS_RRTYPE_MINFO 14 /* mailbox or mail list information */ -#define DNS_RRTYPE_MX 15 /* mail exchange */ -#define DNS_RRTYPE_TXT 16 /* text strings */ -#define DNS_RRTYPE_AAAA 28 /* IPv6 address */ -#define DNS_RRTYPE_SRV 33 /* service location */ -#define DNS_RRTYPE_ANY 255 /* any type */ - -/* DNS field CLASS used for "Resource Records" */ -#define DNS_RRCLASS_IN 1 /* the Internet */ -#define DNS_RRCLASS_CS 2 /* the CSNET class (Obsolete - used only for examples in some obsolete RFCs) */ -#define DNS_RRCLASS_CH 3 /* the CHAOS class */ -#define DNS_RRCLASS_HS 4 /* Hesiod [Dyer 87] */ -#define DNS_RRCLASS_ANY 255 /* any class */ -#define DNS_RRCLASS_FLUSH 0x800 /* Flush bit */ - -/* DNS protocol flags */ -#define DNS_FLAG1_RESPONSE 0x80 -#define DNS_FLAG1_OPCODE_STATUS 0x10 -#define DNS_FLAG1_OPCODE_INVERSE 0x08 -#define DNS_FLAG1_OPCODE_STANDARD 0x00 -#define DNS_FLAG1_AUTHORATIVE 0x04 -#define DNS_FLAG1_TRUNC 0x02 -#define DNS_FLAG1_RD 0x01 -#define DNS_FLAG2_RA 0x80 -#define DNS_FLAG2_ERR_MASK 0x0f -#define DNS_FLAG2_ERR_NONE 0x00 -#define DNS_FLAG2_ERR_NAME 0x03 - -#define DNS_HDR_GET_OPCODE(hdr) ((((hdr)->flags1) >> 3) & 0xF) - -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -/** DNS message header */ -struct dns_hdr { - PACK_STRUCT_FIELD(u16_t id); - PACK_STRUCT_FLD_8(u8_t flags1); - PACK_STRUCT_FLD_8(u8_t flags2); - PACK_STRUCT_FIELD(u16_t numquestions); - PACK_STRUCT_FIELD(u16_t numanswers); - PACK_STRUCT_FIELD(u16_t numauthrr); - PACK_STRUCT_FIELD(u16_t numextrarr); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif -#define SIZEOF_DNS_HDR 12 - - -/* Multicast DNS definitions */ - -/** UDP port for multicast DNS queries */ -#ifndef DNS_MQUERY_PORT -#define DNS_MQUERY_PORT 5353 -#endif - -/* IPv4 group for multicast DNS queries: 224.0.0.251 */ -#ifndef DNS_MQUERY_IPV4_GROUP_INIT -#define DNS_MQUERY_IPV4_GROUP_INIT IPADDR4_INIT_BYTES(224,0,0,251) -#endif - -/* IPv6 group for multicast DNS queries: FF02::FB */ -#ifndef DNS_MQUERY_IPV6_GROUP_INIT -#define DNS_MQUERY_IPV6_GROUP_INIT IPADDR6_INIT_HOST(0xFF020000,0,0,0xFB) -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_PROT_DNS_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/etharp.h b/Middlewares/Third_Party/LwIP/src/include/lwip/prot/etharp.h deleted file mode 100644 index 811c228..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/etharp.h +++ /dev/null @@ -1,114 +0,0 @@ -/** - * @file - * ARP protocol definitions - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_PROT_ETHARP_H -#define LWIP_HDR_PROT_ETHARP_H - -#include "lwip/arch.h" -#include "lwip/prot/ethernet.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#ifndef ETHARP_HWADDR_LEN -#define ETHARP_HWADDR_LEN ETH_HWADDR_LEN -#endif - -/** - * struct ip4_addr_wordaligned is used in the definition of the ARP packet format in - * order to support compilers that don't have structure packing. - */ -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct ip4_addr_wordaligned { - PACK_STRUCT_FIELD(u16_t addrw[2]); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -/** MEMCPY-like copying of IP addresses where addresses are known to be - * 16-bit-aligned if the port is correctly configured (so a port could define - * this to copying 2 u16_t's) - no NULL-pointer-checking needed. */ -#ifndef IPADDR_WORDALIGNED_COPY_TO_IP4_ADDR_T -#define IPADDR_WORDALIGNED_COPY_TO_IP4_ADDR_T(dest, src) SMEMCPY(dest, src, sizeof(ip4_addr_t)) -#endif - - /** MEMCPY-like copying of IP addresses where addresses are known to be - * 16-bit-aligned if the port is correctly configured (so a port could define - * this to copying 2 u16_t's) - no NULL-pointer-checking needed. */ -#ifndef IPADDR_WORDALIGNED_COPY_FROM_IP4_ADDR_T -#define IPADDR_WORDALIGNED_COPY_FROM_IP4_ADDR_T(dest, src) SMEMCPY(dest, src, sizeof(ip4_addr_t)) -#endif - -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -/** the ARP message, see RFC 826 ("Packet format") */ -struct etharp_hdr { - PACK_STRUCT_FIELD(u16_t hwtype); - PACK_STRUCT_FIELD(u16_t proto); - PACK_STRUCT_FLD_8(u8_t hwlen); - PACK_STRUCT_FLD_8(u8_t protolen); - PACK_STRUCT_FIELD(u16_t opcode); - PACK_STRUCT_FLD_S(struct eth_addr shwaddr); - PACK_STRUCT_FLD_S(struct ip4_addr_wordaligned sipaddr); - PACK_STRUCT_FLD_S(struct eth_addr dhwaddr); - PACK_STRUCT_FLD_S(struct ip4_addr_wordaligned dipaddr); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -#define SIZEOF_ETHARP_HDR 28 - -/* ARP message types (opcodes) */ -enum etharp_opcode { - ARP_REQUEST = 1, - ARP_REPLY = 2 -}; - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_PROT_ETHARP_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/ethernet.h b/Middlewares/Third_Party/LwIP/src/include/lwip/prot/ethernet.h deleted file mode 100644 index 309e574..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/ethernet.h +++ /dev/null @@ -1,125 +0,0 @@ -/** - * @file - * Ethernet protocol definitions - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_PROT_ETHERNET_H -#define LWIP_HDR_PROT_ETHERNET_H - -#include "lwip/arch.h" -#include "lwip/prot/ieee.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#ifndef ETH_HWADDR_LEN -#ifdef ETHARP_HWADDR_LEN -#define ETH_HWADDR_LEN ETHARP_HWADDR_LEN /* compatibility mode */ -#else -#define ETH_HWADDR_LEN 6 -#endif -#endif - -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -/** An Ethernet MAC address */ -struct eth_addr { - PACK_STRUCT_FLD_8(u8_t addr[ETH_HWADDR_LEN]); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -/** Initialize a struct eth_addr with its 6 bytes (takes care of correct braces) */ -#define ETH_ADDR(b0, b1, b2, b3, b4, b5) {{b0, b1, b2, b3, b4, b5}} - -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -/** Ethernet header */ -struct eth_hdr { -#if ETH_PAD_SIZE - PACK_STRUCT_FLD_8(u8_t padding[ETH_PAD_SIZE]); -#endif - PACK_STRUCT_FLD_S(struct eth_addr dest); - PACK_STRUCT_FLD_S(struct eth_addr src); - PACK_STRUCT_FIELD(u16_t type); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -#define SIZEOF_ETH_HDR (14 + ETH_PAD_SIZE) - -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -/** VLAN header inserted between ethernet header and payload - * if 'type' in ethernet header is ETHTYPE_VLAN. - * See IEEE802.Q */ -struct eth_vlan_hdr { - PACK_STRUCT_FIELD(u16_t prio_vid); - PACK_STRUCT_FIELD(u16_t tpid); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -#define SIZEOF_VLAN_HDR 4 -#define VLAN_ID(vlan_hdr) (lwip_htons((vlan_hdr)->prio_vid) & 0xFFF) - -/** The 24-bit IANA IPv4-multicast OUI is 01-00-5e: */ -#define LL_IP4_MULTICAST_ADDR_0 0x01 -#define LL_IP4_MULTICAST_ADDR_1 0x00 -#define LL_IP4_MULTICAST_ADDR_2 0x5e - -/** IPv6 multicast uses this prefix */ -#define LL_IP6_MULTICAST_ADDR_0 0x33 -#define LL_IP6_MULTICAST_ADDR_1 0x33 - -#define eth_addr_cmp(addr1, addr2) (memcmp((addr1)->addr, (addr2)->addr, ETH_HWADDR_LEN) == 0) - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_PROT_ETHERNET_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/iana.h b/Middlewares/Third_Party/LwIP/src/include/lwip/prot/iana.h deleted file mode 100644 index 32890cc..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/iana.h +++ /dev/null @@ -1,97 +0,0 @@ -/** - * @file - * IANA assigned numbers (RFC 1700 and successors) - * - * @defgroup iana IANA assigned numbers - * @ingroup infrastructure - */ - -/* - * Copyright (c) 2017 Dirk Ziegelmeier. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Dirk Ziegelmeier - * - */ - -#ifndef LWIP_HDR_PROT_IANA_H -#define LWIP_HDR_PROT_IANA_H - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @ingroup iana - * Hardware types - */ -enum lwip_iana_hwtype { - /** Ethernet */ - LWIP_IANA_HWTYPE_ETHERNET = 1 -}; - -/** - * @ingroup iana - * Port numbers - * https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.txt - */ -enum lwip_iana_port_number { - /** SMTP */ - LWIP_IANA_PORT_SMTP = 25, - /** DHCP server */ - LWIP_IANA_PORT_DHCP_SERVER = 67, - /** DHCP client */ - LWIP_IANA_PORT_DHCP_CLIENT = 68, - /** TFTP */ - LWIP_IANA_PORT_TFTP = 69, - /** HTTP */ - LWIP_IANA_PORT_HTTP = 80, - /** SNTP */ - LWIP_IANA_PORT_SNTP = 123, - /** NETBIOS */ - LWIP_IANA_PORT_NETBIOS = 137, - /** SNMP */ - LWIP_IANA_PORT_SNMP = 161, - /** SNMP traps */ - LWIP_IANA_PORT_SNMP_TRAP = 162, - /** HTTPS */ - LWIP_IANA_PORT_HTTPS = 443, - /** SMTPS */ - LWIP_IANA_PORT_SMTPS = 465, - /** MQTT */ - LWIP_IANA_PORT_MQTT = 1883, - /** MDNS */ - LWIP_IANA_PORT_MDNS = 5353, - /** Secure MQTT */ - LWIP_IANA_PORT_SECURE_MQTT = 8883 -}; - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_PROT_IANA_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h b/Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h deleted file mode 100644 index 7d19385..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp.h +++ /dev/null @@ -1,91 +0,0 @@ -/** - * @file - * ICMP protocol definitions - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_PROT_ICMP_H -#define LWIP_HDR_PROT_ICMP_H - -#include "lwip/arch.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define ICMP_ER 0 /* echo reply */ -#define ICMP_DUR 3 /* destination unreachable */ -#define ICMP_SQ 4 /* source quench */ -#define ICMP_RD 5 /* redirect */ -#define ICMP_ECHO 8 /* echo */ -#define ICMP_TE 11 /* time exceeded */ -#define ICMP_PP 12 /* parameter problem */ -#define ICMP_TS 13 /* timestamp */ -#define ICMP_TSR 14 /* timestamp reply */ -#define ICMP_IRQ 15 /* information request */ -#define ICMP_IR 16 /* information reply */ -#define ICMP_AM 17 /* address mask request */ -#define ICMP_AMR 18 /* address mask reply */ - -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -/** This is the standard ICMP header only that the u32_t data - * is split to two u16_t like ICMP echo needs it. - * This header is also used for other ICMP types that do not - * use the data part. - */ -PACK_STRUCT_BEGIN -struct icmp_echo_hdr { - PACK_STRUCT_FLD_8(u8_t type); - PACK_STRUCT_FLD_8(u8_t code); - PACK_STRUCT_FIELD(u16_t chksum); - PACK_STRUCT_FIELD(u16_t id); - PACK_STRUCT_FIELD(u16_t seqno); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -/* Compatibility defines, old versions used to combine type and code to an u16_t */ -#define ICMPH_TYPE(hdr) ((hdr)->type) -#define ICMPH_CODE(hdr) ((hdr)->code) -#define ICMPH_TYPE_SET(hdr, t) ((hdr)->type = (t)) -#define ICMPH_CODE_SET(hdr, c) ((hdr)->code = (c)) - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_PROT_ICMP_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp6.h b/Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp6.h deleted file mode 100644 index 3461120..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/icmp6.h +++ /dev/null @@ -1,170 +0,0 @@ -/** - * @file - * ICMP6 protocol definitions - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_PROT_ICMP6_H -#define LWIP_HDR_PROT_ICMP6_H - -#include "lwip/arch.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** ICMP type */ -enum icmp6_type { - /** Destination unreachable */ - ICMP6_TYPE_DUR = 1, - /** Packet too big */ - ICMP6_TYPE_PTB = 2, - /** Time exceeded */ - ICMP6_TYPE_TE = 3, - /** Parameter problem */ - ICMP6_TYPE_PP = 4, - /** Private experimentation */ - ICMP6_TYPE_PE1 = 100, - /** Private experimentation */ - ICMP6_TYPE_PE2 = 101, - /** Reserved for expansion of error messages */ - ICMP6_TYPE_RSV_ERR = 127, - - /** Echo request */ - ICMP6_TYPE_EREQ = 128, - /** Echo reply */ - ICMP6_TYPE_EREP = 129, - /** Multicast listener query */ - ICMP6_TYPE_MLQ = 130, - /** Multicast listener report */ - ICMP6_TYPE_MLR = 131, - /** Multicast listener done */ - ICMP6_TYPE_MLD = 132, - /** Router solicitation */ - ICMP6_TYPE_RS = 133, - /** Router advertisement */ - ICMP6_TYPE_RA = 134, - /** Neighbor solicitation */ - ICMP6_TYPE_NS = 135, - /** Neighbor advertisement */ - ICMP6_TYPE_NA = 136, - /** Redirect */ - ICMP6_TYPE_RD = 137, - /** Multicast router advertisement */ - ICMP6_TYPE_MRA = 151, - /** Multicast router solicitation */ - ICMP6_TYPE_MRS = 152, - /** Multicast router termination */ - ICMP6_TYPE_MRT = 153, - /** Private experimentation */ - ICMP6_TYPE_PE3 = 200, - /** Private experimentation */ - ICMP6_TYPE_PE4 = 201, - /** Reserved for expansion of informational messages */ - ICMP6_TYPE_RSV_INF = 255 -}; - -/** ICMP destination unreachable codes */ -enum icmp6_dur_code { - /** No route to destination */ - ICMP6_DUR_NO_ROUTE = 0, - /** Communication with destination administratively prohibited */ - ICMP6_DUR_PROHIBITED = 1, - /** Beyond scope of source address */ - ICMP6_DUR_SCOPE = 2, - /** Address unreachable */ - ICMP6_DUR_ADDRESS = 3, - /** Port unreachable */ - ICMP6_DUR_PORT = 4, - /** Source address failed ingress/egress policy */ - ICMP6_DUR_POLICY = 5, - /** Reject route to destination */ - ICMP6_DUR_REJECT_ROUTE = 6 -}; - -/** ICMP time exceeded codes */ -enum icmp6_te_code { - /** Hop limit exceeded in transit */ - ICMP6_TE_HL = 0, - /** Fragment reassembly time exceeded */ - ICMP6_TE_FRAG = 1 -}; - -/** ICMP parameter code */ -enum icmp6_pp_code { - /** Erroneous header field encountered */ - ICMP6_PP_FIELD = 0, - /** Unrecognized next header type encountered */ - ICMP6_PP_HEADER = 1, - /** Unrecognized IPv6 option encountered */ - ICMP6_PP_OPTION = 2 -}; - -/** This is the standard ICMP6 header. */ -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct icmp6_hdr { - PACK_STRUCT_FLD_8(u8_t type); - PACK_STRUCT_FLD_8(u8_t code); - PACK_STRUCT_FIELD(u16_t chksum); - PACK_STRUCT_FIELD(u32_t data); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -/** This is the ICMP6 header adapted for echo req/resp. */ -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct icmp6_echo_hdr { - PACK_STRUCT_FLD_8(u8_t type); - PACK_STRUCT_FLD_8(u8_t code); - PACK_STRUCT_FIELD(u16_t chksum); - PACK_STRUCT_FIELD(u16_t id); - PACK_STRUCT_FIELD(u16_t seqno); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_PROT_ICMP6_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/ieee.h b/Middlewares/Third_Party/LwIP/src/include/lwip/prot/ieee.h deleted file mode 100644 index abbb9e3..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/ieee.h +++ /dev/null @@ -1,91 +0,0 @@ -/** - * @file - * IEEE assigned numbers - * - * @defgroup ieee IEEE assigned numbers - * @ingroup infrastructure - */ - -/* - * Copyright (c) 2017 Dirk Ziegelmeier. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Dirk Ziegelmeier - * - */ - -#ifndef LWIP_HDR_PROT_IEEE_H -#define LWIP_HDR_PROT_IEEE_H - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @ingroup ieee - * A list of often ethtypes (although lwIP does not use all of them). - */ -enum lwip_ieee_eth_type { - /** Internet protocol v4 */ - ETHTYPE_IP = 0x0800U, - /** Address resolution protocol */ - ETHTYPE_ARP = 0x0806U, - /** Wake on lan */ - ETHTYPE_WOL = 0x0842U, - /** RARP */ - ETHTYPE_RARP = 0x8035U, - /** Virtual local area network */ - ETHTYPE_VLAN = 0x8100U, - /** Internet protocol v6 */ - ETHTYPE_IPV6 = 0x86DDU, - /** PPP Over Ethernet Discovery Stage */ - ETHTYPE_PPPOEDISC = 0x8863U, - /** PPP Over Ethernet Session Stage */ - ETHTYPE_PPPOE = 0x8864U, - /** Jumbo Frames */ - ETHTYPE_JUMBO = 0x8870U, - /** Process field network */ - ETHTYPE_PROFINET = 0x8892U, - /** Ethernet for control automation technology */ - ETHTYPE_ETHERCAT = 0x88A4U, - /** Link layer discovery protocol */ - ETHTYPE_LLDP = 0x88CCU, - /** Serial real-time communication system */ - ETHTYPE_SERCOS = 0x88CDU, - /** Media redundancy protocol */ - ETHTYPE_MRP = 0x88E3U, - /** Precision time protocol */ - ETHTYPE_PTP = 0x88F7U, - /** Q-in-Q, 802.1ad */ - ETHTYPE_QINQ = 0x9100U -}; - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_PROT_IEEE_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/igmp.h b/Middlewares/Third_Party/LwIP/src/include/lwip/prot/igmp.h deleted file mode 100644 index 46b81a9..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/igmp.h +++ /dev/null @@ -1,90 +0,0 @@ -/** - * @file - * IGMP protocol definitions - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_PROT_IGMP_H -#define LWIP_HDR_PROT_IGMP_H - -#include "lwip/arch.h" -#include "lwip/prot/ip4.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * IGMP constants - */ -#define IGMP_TTL 1 -#define IGMP_MINLEN 8 -#define ROUTER_ALERT 0x9404U -#define ROUTER_ALERTLEN 4 - -/* - * IGMP message types, including version number. - */ -#define IGMP_MEMB_QUERY 0x11 /* Membership query */ -#define IGMP_V1_MEMB_REPORT 0x12 /* Ver. 1 membership report */ -#define IGMP_V2_MEMB_REPORT 0x16 /* Ver. 2 membership report */ -#define IGMP_LEAVE_GROUP 0x17 /* Leave-group message */ - -/* Group membership states */ -#define IGMP_GROUP_NON_MEMBER 0 -#define IGMP_GROUP_DELAYING_MEMBER 1 -#define IGMP_GROUP_IDLE_MEMBER 2 - -/** - * IGMP packet format. - */ -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct igmp_msg { - PACK_STRUCT_FLD_8(u8_t igmp_msgtype); - PACK_STRUCT_FLD_8(u8_t igmp_maxresp); - PACK_STRUCT_FIELD(u16_t igmp_checksum); - PACK_STRUCT_FLD_S(ip4_addr_p_t igmp_group_address); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_PROT_IGMP_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h b/Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h deleted file mode 100644 index 223158f..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip.h +++ /dev/null @@ -1,59 +0,0 @@ -/** - * @file - * IP protocol definitions - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_PROT_IP_H -#define LWIP_HDR_PROT_IP_H - -#include "lwip/arch.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define IP_PROTO_ICMP 1 -#define IP_PROTO_IGMP 2 -#define IP_PROTO_UDP 17 -#define IP_PROTO_UDPLITE 136 -#define IP_PROTO_TCP 6 - -/** This operates on a void* by loading the first byte */ -#define IP_HDR_GET_VERSION(ptr) ((*(u8_t*)(ptr)) >> 4) - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_PROT_IP_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h b/Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h deleted file mode 100644 index 9347461..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip4.h +++ /dev/null @@ -1,131 +0,0 @@ -/** - * @file - * IPv4 protocol definitions - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_PROT_IP4_H -#define LWIP_HDR_PROT_IP4_H - -#include "lwip/arch.h" -#include "lwip/ip4_addr.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** This is the packed version of ip4_addr_t, - used in network headers that are itself packed */ -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct ip4_addr_packed { - PACK_STRUCT_FIELD(u32_t addr); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -typedef struct ip4_addr_packed ip4_addr_p_t; - -/* Size of the IPv4 header. Same as 'sizeof(struct ip_hdr)'. */ -#define IP_HLEN 20 -/* Maximum size of the IPv4 header with options. */ -#define IP_HLEN_MAX 60 - -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -/* The IPv4 header */ -struct ip_hdr { - /* version / header length */ - PACK_STRUCT_FLD_8(u8_t _v_hl); - /* type of service */ - PACK_STRUCT_FLD_8(u8_t _tos); - /* total length */ - PACK_STRUCT_FIELD(u16_t _len); - /* identification */ - PACK_STRUCT_FIELD(u16_t _id); - /* fragment offset field */ - PACK_STRUCT_FIELD(u16_t _offset); -#define IP_RF 0x8000U /* reserved fragment flag */ -#define IP_DF 0x4000U /* don't fragment flag */ -#define IP_MF 0x2000U /* more fragments flag */ -#define IP_OFFMASK 0x1fffU /* mask for fragmenting bits */ - /* time to live */ - PACK_STRUCT_FLD_8(u8_t _ttl); - /* protocol*/ - PACK_STRUCT_FLD_8(u8_t _proto); - /* checksum */ - PACK_STRUCT_FIELD(u16_t _chksum); - /* source and destination IP addresses */ - PACK_STRUCT_FLD_S(ip4_addr_p_t src); - PACK_STRUCT_FLD_S(ip4_addr_p_t dest); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -/* Macros to get struct ip_hdr fields: */ -#define IPH_V(hdr) ((hdr)->_v_hl >> 4) -#define IPH_HL(hdr) ((hdr)->_v_hl & 0x0f) -#define IPH_HL_BYTES(hdr) ((u8_t)(IPH_HL(hdr) * 4)) -#define IPH_TOS(hdr) ((hdr)->_tos) -#define IPH_LEN(hdr) ((hdr)->_len) -#define IPH_ID(hdr) ((hdr)->_id) -#define IPH_OFFSET(hdr) ((hdr)->_offset) -#define IPH_OFFSET_BYTES(hdr) ((u16_t)((lwip_ntohs(IPH_OFFSET(hdr)) & IP_OFFMASK) * 8U)) -#define IPH_TTL(hdr) ((hdr)->_ttl) -#define IPH_PROTO(hdr) ((hdr)->_proto) -#define IPH_CHKSUM(hdr) ((hdr)->_chksum) - -/* Macros to set struct ip_hdr fields: */ -#define IPH_VHL_SET(hdr, v, hl) (hdr)->_v_hl = (u8_t)((((v) << 4) | (hl))) -#define IPH_TOS_SET(hdr, tos) (hdr)->_tos = (tos) -#define IPH_LEN_SET(hdr, len) (hdr)->_len = (len) -#define IPH_ID_SET(hdr, id) (hdr)->_id = (id) -#define IPH_OFFSET_SET(hdr, off) (hdr)->_offset = (off) -#define IPH_TTL_SET(hdr, ttl) (hdr)->_ttl = (u8_t)(ttl) -#define IPH_PROTO_SET(hdr, proto) (hdr)->_proto = (u8_t)(proto) -#define IPH_CHKSUM_SET(hdr, chksum) (hdr)->_chksum = (chksum) - - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_PROT_IP4_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip6.h b/Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip6.h deleted file mode 100644 index 0f6de45..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/ip6.h +++ /dev/null @@ -1,233 +0,0 @@ -/** - * @file - * IPv6 protocol definitions - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_PROT_IP6_H -#define LWIP_HDR_PROT_IP6_H - -#include "lwip/arch.h" -#include "lwip/ip6_addr.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** This is the packed version of ip6_addr_t, - used in network headers that are itself packed */ -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct ip6_addr_packed { - PACK_STRUCT_FIELD(u32_t addr[4]); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif -typedef struct ip6_addr_packed ip6_addr_p_t; - -#define IP6_HLEN 40 - -#define IP6_NEXTH_HOPBYHOP 0 -#define IP6_NEXTH_TCP 6 -#define IP6_NEXTH_UDP 17 -#define IP6_NEXTH_ENCAPS 41 -#define IP6_NEXTH_ROUTING 43 -#define IP6_NEXTH_FRAGMENT 44 -#define IP6_NEXTH_ICMP6 58 -#define IP6_NEXTH_NONE 59 -#define IP6_NEXTH_DESTOPTS 60 -#define IP6_NEXTH_UDPLITE 136 - -/** The IPv6 header. */ -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct ip6_hdr { - /** version / traffic class / flow label */ - PACK_STRUCT_FIELD(u32_t _v_tc_fl); - /** payload length */ - PACK_STRUCT_FIELD(u16_t _plen); - /** next header */ - PACK_STRUCT_FLD_8(u8_t _nexth); - /** hop limit */ - PACK_STRUCT_FLD_8(u8_t _hoplim); - /** source and destination IP addresses */ - PACK_STRUCT_FLD_S(ip6_addr_p_t src); - PACK_STRUCT_FLD_S(ip6_addr_p_t dest); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif -#define IP6H_V(hdr) ((lwip_ntohl((hdr)->_v_tc_fl) >> 28) & 0x0f) -#define IP6H_TC(hdr) ((lwip_ntohl((hdr)->_v_tc_fl) >> 20) & 0xff) -#define IP6H_FL(hdr) (lwip_ntohl((hdr)->_v_tc_fl) & 0x000fffff) -#define IP6H_PLEN(hdr) (lwip_ntohs((hdr)->_plen)) -#define IP6H_NEXTH(hdr) ((hdr)->_nexth) -#define IP6H_NEXTH_P(hdr) ((u8_t *)(hdr) + 6) -#define IP6H_HOPLIM(hdr) ((hdr)->_hoplim) -#define IP6H_VTCFL_SET(hdr, v, tc, fl) (hdr)->_v_tc_fl = (lwip_htonl((((u32_t)(v)) << 28) | (((u32_t)(tc)) << 20) | (fl))) -#define IP6H_PLEN_SET(hdr, plen) (hdr)->_plen = lwip_htons(plen) -#define IP6H_NEXTH_SET(hdr, nexth) (hdr)->_nexth = (nexth) -#define IP6H_HOPLIM_SET(hdr, hl) (hdr)->_hoplim = (u8_t)(hl) - -/* ipv6 extended options header */ -#define IP6_PAD1_OPTION 0 -#define IP6_PADN_OPTION 1 -#define IP6_ROUTER_ALERT_OPTION 5 -#define IP6_JUMBO_OPTION 194 -#define IP6_HOME_ADDRESS_OPTION 201 -#define IP6_ROUTER_ALERT_DLEN 2 -#define IP6_ROUTER_ALERT_VALUE_MLD 0 - -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct ip6_opt_hdr { - /* router alert option type */ - PACK_STRUCT_FLD_8(u8_t _opt_type); - /* router alert option data len */ - PACK_STRUCT_FLD_8(u8_t _opt_dlen); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif -#define IP6_OPT_HLEN 2 -#define IP6_OPT_TYPE_ACTION(hdr) ((((hdr)->_opt_type) >> 6) & 0x3) -#define IP6_OPT_TYPE_CHANGE(hdr) ((((hdr)->_opt_type) >> 5) & 0x1) -#define IP6_OPT_TYPE(hdr) ((hdr)->_opt_type) -#define IP6_OPT_DLEN(hdr) ((hdr)->_opt_dlen) - -/* Hop-by-Hop header. */ -#define IP6_HBH_HLEN 2 - -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct ip6_hbh_hdr { - /* next header */ - PACK_STRUCT_FLD_8(u8_t _nexth); - /* header length in 8-octet units */ - PACK_STRUCT_FLD_8(u8_t _hlen); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif -#define IP6_HBH_NEXTH(hdr) ((hdr)->_nexth) - -/* Destination header. */ -#define IP6_DEST_HLEN 2 - -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct ip6_dest_hdr { - /* next header */ - PACK_STRUCT_FLD_8(u8_t _nexth); - /* header length in 8-octet units */ - PACK_STRUCT_FLD_8(u8_t _hlen); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif -#define IP6_DEST_NEXTH(hdr) ((hdr)->_nexth) - -/* Routing header */ -#define IP6_ROUT_TYPE2 2 -#define IP6_ROUT_RPL 3 - -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct ip6_rout_hdr { - /* next header */ - PACK_STRUCT_FLD_8(u8_t _nexth); - /* reserved */ - PACK_STRUCT_FLD_8(u8_t _hlen); - /* fragment offset */ - PACK_STRUCT_FIELD(u8_t _routing_type); - /* fragmented packet identification */ - PACK_STRUCT_FIELD(u8_t _segments_left); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif -#define IP6_ROUT_NEXTH(hdr) ((hdr)->_nexth) -#define IP6_ROUT_TYPE(hdr) ((hdr)->_routing_type) -#define IP6_ROUT_SEG_LEFT(hdr) ((hdr)->_segments_left) - -/* Fragment header. */ -#define IP6_FRAG_HLEN 8 -#define IP6_FRAG_OFFSET_MASK 0xfff8 -#define IP6_FRAG_MORE_FLAG 0x0001 - -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct ip6_frag_hdr { - /* next header */ - PACK_STRUCT_FLD_8(u8_t _nexth); - /* reserved */ - PACK_STRUCT_FLD_8(u8_t reserved); - /* fragment offset */ - PACK_STRUCT_FIELD(u16_t _fragment_offset); - /* fragmented packet identification */ - PACK_STRUCT_FIELD(u32_t _identification); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif -#define IP6_FRAG_NEXTH(hdr) ((hdr)->_nexth) -#define IP6_FRAG_MBIT(hdr) (lwip_ntohs((hdr)->_fragment_offset) & 0x1) -#define IP6_FRAG_ID(hdr) (lwip_ntohl((hdr)->_identification)) - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_PROT_IP6_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/mld6.h b/Middlewares/Third_Party/LwIP/src/include/lwip/prot/mld6.h deleted file mode 100644 index 71f1dcb..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/mld6.h +++ /dev/null @@ -1,71 +0,0 @@ -/** - * @file - * MLD6 protocol definitions - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_PROT_MLD6_H -#define LWIP_HDR_PROT_MLD6_H - -#include "lwip/arch.h" -#include "lwip/prot/ip6.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define MLD6_HBH_HLEN 8 -/** Multicast listener report/query/done message header. */ -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct mld_header { - PACK_STRUCT_FLD_8(u8_t type); - PACK_STRUCT_FLD_8(u8_t code); - PACK_STRUCT_FIELD(u16_t chksum); - PACK_STRUCT_FIELD(u16_t max_resp_delay); - PACK_STRUCT_FIELD(u16_t reserved); - PACK_STRUCT_FLD_S(ip6_addr_p_t multicast_address); - /* Options follow. */ -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_PROT_MLD6_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/nd6.h b/Middlewares/Third_Party/LwIP/src/include/lwip/prot/nd6.h deleted file mode 100644 index c270d07..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/nd6.h +++ /dev/null @@ -1,274 +0,0 @@ -/** - * @file - * ND6 protocol definitions - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_PROT_ND6_H -#define LWIP_HDR_PROT_ND6_H - -#include "lwip/arch.h" -#include "lwip/ip6_addr.h" -#include "lwip/prot/ip6.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** Neighbor solicitation message header. */ -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct ns_header { - PACK_STRUCT_FLD_8(u8_t type); - PACK_STRUCT_FLD_8(u8_t code); - PACK_STRUCT_FIELD(u16_t chksum); - PACK_STRUCT_FIELD(u32_t reserved); - PACK_STRUCT_FLD_S(ip6_addr_p_t target_address); - /* Options follow. */ -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -/** Neighbor advertisement message header. */ -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct na_header { - PACK_STRUCT_FLD_8(u8_t type); - PACK_STRUCT_FLD_8(u8_t code); - PACK_STRUCT_FIELD(u16_t chksum); - PACK_STRUCT_FLD_8(u8_t flags); - PACK_STRUCT_FLD_8(u8_t reserved[3]); - PACK_STRUCT_FLD_S(ip6_addr_p_t target_address); - /* Options follow. */ -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif -#define ND6_FLAG_ROUTER (0x80) -#define ND6_FLAG_SOLICITED (0x40) -#define ND6_FLAG_OVERRIDE (0x20) - -/** Router solicitation message header. */ -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct rs_header { - PACK_STRUCT_FLD_8(u8_t type); - PACK_STRUCT_FLD_8(u8_t code); - PACK_STRUCT_FIELD(u16_t chksum); - PACK_STRUCT_FIELD(u32_t reserved); - /* Options follow. */ -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -/** Router advertisement message header. */ -#define ND6_RA_FLAG_MANAGED_ADDR_CONFIG (0x80) -#define ND6_RA_FLAG_OTHER_CONFIG (0x40) -#define ND6_RA_FLAG_HOME_AGENT (0x20) -#define ND6_RA_PREFERENCE_MASK (0x18) -#define ND6_RA_PREFERENCE_HIGH (0x08) -#define ND6_RA_PREFERENCE_MEDIUM (0x00) -#define ND6_RA_PREFERENCE_LOW (0x18) -#define ND6_RA_PREFERENCE_DISABLED (0x10) -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct ra_header { - PACK_STRUCT_FLD_8(u8_t type); - PACK_STRUCT_FLD_8(u8_t code); - PACK_STRUCT_FIELD(u16_t chksum); - PACK_STRUCT_FLD_8(u8_t current_hop_limit); - PACK_STRUCT_FLD_8(u8_t flags); - PACK_STRUCT_FIELD(u16_t router_lifetime); - PACK_STRUCT_FIELD(u32_t reachable_time); - PACK_STRUCT_FIELD(u32_t retrans_timer); - /* Options follow. */ -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -/** Redirect message header. */ -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct redirect_header { - PACK_STRUCT_FLD_8(u8_t type); - PACK_STRUCT_FLD_8(u8_t code); - PACK_STRUCT_FIELD(u16_t chksum); - PACK_STRUCT_FIELD(u32_t reserved); - PACK_STRUCT_FLD_S(ip6_addr_p_t target_address); - PACK_STRUCT_FLD_S(ip6_addr_p_t destination_address); - /* Options follow. */ -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -/** Link-layer address option. */ -#define ND6_OPTION_TYPE_SOURCE_LLADDR (0x01) -#define ND6_OPTION_TYPE_TARGET_LLADDR (0x02) -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct lladdr_option { - PACK_STRUCT_FLD_8(u8_t type); - PACK_STRUCT_FLD_8(u8_t length); - PACK_STRUCT_FLD_8(u8_t addr[NETIF_MAX_HWADDR_LEN]); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -/** Prefix information option. */ -#define ND6_OPTION_TYPE_PREFIX_INFO (0x03) -#define ND6_PREFIX_FLAG_ON_LINK (0x80) -#define ND6_PREFIX_FLAG_AUTONOMOUS (0x40) -#define ND6_PREFIX_FLAG_ROUTER_ADDRESS (0x20) -#define ND6_PREFIX_FLAG_SITE_PREFIX (0x10) -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct prefix_option { - PACK_STRUCT_FLD_8(u8_t type); - PACK_STRUCT_FLD_8(u8_t length); - PACK_STRUCT_FLD_8(u8_t prefix_length); - PACK_STRUCT_FLD_8(u8_t flags); - PACK_STRUCT_FIELD(u32_t valid_lifetime); - PACK_STRUCT_FIELD(u32_t preferred_lifetime); - PACK_STRUCT_FLD_8(u8_t reserved2[3]); - PACK_STRUCT_FLD_8(u8_t site_prefix_length); - PACK_STRUCT_FLD_S(ip6_addr_p_t prefix); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -/** Redirected header option. */ -#define ND6_OPTION_TYPE_REDIR_HDR (0x04) -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct redirected_header_option { - PACK_STRUCT_FLD_8(u8_t type); - PACK_STRUCT_FLD_8(u8_t length); - PACK_STRUCT_FLD_8(u8_t reserved[6]); - /* Portion of redirected packet follows. */ - /* PACK_STRUCT_FLD_8(u8_t redirected[8]); */ -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -/** MTU option. */ -#define ND6_OPTION_TYPE_MTU (0x05) -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct mtu_option { - PACK_STRUCT_FLD_8(u8_t type); - PACK_STRUCT_FLD_8(u8_t length); - PACK_STRUCT_FIELD(u16_t reserved); - PACK_STRUCT_FIELD(u32_t mtu); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -/** Route information option. */ -#define ND6_OPTION_TYPE_ROUTE_INFO (24) -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct route_option { - PACK_STRUCT_FLD_8(u8_t type); - PACK_STRUCT_FLD_8(u8_t length); - PACK_STRUCT_FLD_8(u8_t prefix_length); - PACK_STRUCT_FLD_8(u8_t preference); - PACK_STRUCT_FIELD(u32_t route_lifetime); - PACK_STRUCT_FLD_S(ip6_addr_p_t prefix); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -/** Recursive DNS Server Option. */ -#define ND6_OPTION_TYPE_RDNSS (25) -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct rdnss_option { - PACK_STRUCT_FLD_8(u8_t type); - PACK_STRUCT_FLD_8(u8_t length); - PACK_STRUCT_FIELD(u16_t reserved); - PACK_STRUCT_FIELD(u32_t lifetime); - PACK_STRUCT_FLD_S(ip6_addr_p_t rdnss_address[1]); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -#define SIZEOF_RDNSS_OPTION_BASE 8 /* size without addresses */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_PROT_ND6_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/tcp.h b/Middlewares/Third_Party/LwIP/src/include/lwip/prot/tcp.h deleted file mode 100644 index c1d7de1..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/tcp.h +++ /dev/null @@ -1,100 +0,0 @@ -/** - * @file - * TCP protocol definitions - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_PROT_TCP_H -#define LWIP_HDR_PROT_TCP_H - -#include "lwip/arch.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* Length of the TCP header, excluding options. */ -#define TCP_HLEN 20 - -/* Fields are (of course) in network byte order. - * Some fields are converted to host byte order in tcp_input(). - */ -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct tcp_hdr { - PACK_STRUCT_FIELD(u16_t src); - PACK_STRUCT_FIELD(u16_t dest); - PACK_STRUCT_FIELD(u32_t seqno); - PACK_STRUCT_FIELD(u32_t ackno); - PACK_STRUCT_FIELD(u16_t _hdrlen_rsvd_flags); - PACK_STRUCT_FIELD(u16_t wnd); - PACK_STRUCT_FIELD(u16_t chksum); - PACK_STRUCT_FIELD(u16_t urgp); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -/* TCP header flags bits */ -#define TCP_FIN 0x01U -#define TCP_SYN 0x02U -#define TCP_RST 0x04U -#define TCP_PSH 0x08U -#define TCP_ACK 0x10U -#define TCP_URG 0x20U -#define TCP_ECE 0x40U -#define TCP_CWR 0x80U -/* Valid TCP header flags */ -#define TCP_FLAGS 0x3fU - -#define TCP_MAX_OPTION_BYTES 40 - -#define TCPH_HDRLEN(phdr) ((u16_t)(lwip_ntohs((phdr)->_hdrlen_rsvd_flags) >> 12)) -#define TCPH_HDRLEN_BYTES(phdr) ((u8_t)(TCPH_HDRLEN(phdr) << 2)) -#define TCPH_FLAGS(phdr) ((u8_t)((lwip_ntohs((phdr)->_hdrlen_rsvd_flags) & TCP_FLAGS))) - -#define TCPH_HDRLEN_SET(phdr, len) (phdr)->_hdrlen_rsvd_flags = lwip_htons(((len) << 12) | TCPH_FLAGS(phdr)) -#define TCPH_FLAGS_SET(phdr, flags) (phdr)->_hdrlen_rsvd_flags = (((phdr)->_hdrlen_rsvd_flags & PP_HTONS(~TCP_FLAGS)) | lwip_htons(flags)) -#define TCPH_HDRLEN_FLAGS_SET(phdr, len, flags) (phdr)->_hdrlen_rsvd_flags = (u16_t)(lwip_htons((u16_t)((len) << 12) | (flags))) - -#define TCPH_SET_FLAG(phdr, flags ) (phdr)->_hdrlen_rsvd_flags = ((phdr)->_hdrlen_rsvd_flags | lwip_htons(flags)) -#define TCPH_UNSET_FLAG(phdr, flags) (phdr)->_hdrlen_rsvd_flags = ((phdr)->_hdrlen_rsvd_flags & ~lwip_htons(flags)) - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_PROT_TCP_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/udp.h b/Middlewares/Third_Party/LwIP/src/include/lwip/prot/udp.h deleted file mode 100644 index 664f19a..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/prot/udp.h +++ /dev/null @@ -1,68 +0,0 @@ -/** - * @file - * UDP protocol definitions - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_PROT_UDP_H -#define LWIP_HDR_PROT_UDP_H - -#include "lwip/arch.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define UDP_HLEN 8 - -/* Fields are (of course) in network byte order. */ -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct udp_hdr { - PACK_STRUCT_FIELD(u16_t src); - PACK_STRUCT_FIELD(u16_t dest); /* src/dest UDP ports */ - PACK_STRUCT_FIELD(u16_t len); - PACK_STRUCT_FIELD(u16_t chksum); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_PROT_UDP_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/raw.h b/Middlewares/Third_Party/LwIP/src/include/lwip/raw.h deleted file mode 100644 index b129bd3..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/raw.h +++ /dev/null @@ -1,143 +0,0 @@ -/** - * @file - * raw API (to be used from TCPIP thread)\n - * See also @ref raw_raw - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_RAW_H -#define LWIP_HDR_RAW_H - -#include "lwip/opt.h" - -#if LWIP_RAW /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/pbuf.h" -#include "lwip/def.h" -#include "lwip/ip.h" -#include "lwip/ip_addr.h" -#include "lwip/ip6_addr.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define RAW_FLAGS_CONNECTED 0x01U -#define RAW_FLAGS_HDRINCL 0x02U -#define RAW_FLAGS_MULTICAST_LOOP 0x04U - -struct raw_pcb; - -/** Function prototype for raw pcb receive callback functions. - * @param arg user supplied argument (raw_pcb.recv_arg) - * @param pcb the raw_pcb which received data - * @param p the packet buffer that was received - * @param addr the remote IP address from which the packet was received - * @return 1 if the packet was 'eaten' (aka. deleted), - * 0 if the packet lives on - * If returning 1, the callback is responsible for freeing the pbuf - * if it's not used any more. - */ -typedef u8_t (*raw_recv_fn)(void *arg, struct raw_pcb *pcb, struct pbuf *p, - const ip_addr_t *addr); - -/** the RAW protocol control block */ -struct raw_pcb { - /* Common members of all PCB types */ - IP_PCB; - - struct raw_pcb *next; - - u8_t protocol; - u8_t flags; - -#if LWIP_MULTICAST_TX_OPTIONS - /** outgoing network interface for multicast packets, by interface index (if nonzero) */ - u8_t mcast_ifindex; - /** TTL for outgoing multicast packets */ - u8_t mcast_ttl; -#endif /* LWIP_MULTICAST_TX_OPTIONS */ - - /** receive callback function */ - raw_recv_fn recv; - /* user-supplied argument for the recv callback */ - void *recv_arg; -#if LWIP_IPV6 - /* fields for handling checksum computations as per RFC3542. */ - u16_t chksum_offset; - u8_t chksum_reqd; -#endif -}; - -/* The following functions is the application layer interface to the - RAW code. */ -struct raw_pcb * raw_new (u8_t proto); -struct raw_pcb * raw_new_ip_type(u8_t type, u8_t proto); -void raw_remove (struct raw_pcb *pcb); -err_t raw_bind (struct raw_pcb *pcb, const ip_addr_t *ipaddr); -void raw_bind_netif (struct raw_pcb *pcb, const struct netif *netif); -err_t raw_connect (struct raw_pcb *pcb, const ip_addr_t *ipaddr); -void raw_disconnect (struct raw_pcb *pcb); - -err_t raw_sendto (struct raw_pcb *pcb, struct pbuf *p, const ip_addr_t *ipaddr); -err_t raw_sendto_if_src(struct raw_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip, struct netif *netif, const ip_addr_t *src_ip); -err_t raw_send (struct raw_pcb *pcb, struct pbuf *p); - -void raw_recv (struct raw_pcb *pcb, raw_recv_fn recv, void *recv_arg); - -#define raw_flags(pcb) ((pcb)->flags) -#define raw_setflags(pcb,f) ((pcb)->flags = (f)) - -#define raw_set_flags(pcb, set_flags) do { (pcb)->flags = (u8_t)((pcb)->flags | (set_flags)); } while(0) -#define raw_clear_flags(pcb, clr_flags) do { (pcb)->flags = (u8_t)((pcb)->flags & (u8_t)(~(clr_flags) & 0xff)); } while(0) -#define raw_is_flag_set(pcb, flag) (((pcb)->flags & (flag)) != 0) - -#define raw_init() /* Compatibility define, no init needed. */ - -/* for compatibility with older implementation */ -#define raw_new_ip6(proto) raw_new_ip_type(IPADDR_TYPE_V6, proto) - -#if LWIP_MULTICAST_TX_OPTIONS -#define raw_set_multicast_netif_index(pcb, idx) ((pcb)->mcast_ifindex = (idx)) -#define raw_get_multicast_netif_index(pcb) ((pcb)->mcast_ifindex) -#define raw_set_multicast_ttl(pcb, value) ((pcb)->mcast_ttl = (value)) -#define raw_get_multicast_ttl(pcb) ((pcb)->mcast_ttl) -#endif /* LWIP_MULTICAST_TX_OPTIONS */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_RAW */ - -#endif /* LWIP_HDR_RAW_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/sio.h b/Middlewares/Third_Party/LwIP/src/include/lwip/sio.h deleted file mode 100644 index 7643e19..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/sio.h +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - */ - -/* - * This is the interface to the platform specific serial IO module - * It needs to be implemented by those platforms which need SLIP or PPP - */ - -#ifndef SIO_H -#define SIO_H - -#include "lwip/arch.h" -#include "lwip/opt.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* If you want to define sio_fd_t elsewhere or differently, - define this in your cc.h file. */ -#ifndef __sio_fd_t_defined -typedef void * sio_fd_t; -#endif - -/* The following functions can be defined to something else in your cc.h file - or be implemented in your custom sio.c file. */ - -#ifndef sio_open -/** - * Opens a serial device for communication. - * - * @param devnum device number - * @return handle to serial device if successful, NULL otherwise - */ -sio_fd_t sio_open(u8_t devnum); -#endif - -#ifndef sio_send -/** - * Sends a single character to the serial device. - * - * @param c character to send - * @param fd serial device handle - * - * @note This function will block until the character can be sent. - */ -void sio_send(u8_t c, sio_fd_t fd); -#endif - -#ifndef sio_recv -/** - * Receives a single character from the serial device. - * - * @param fd serial device handle - * - * @note This function will block until a character is received. - */ -u8_t sio_recv(sio_fd_t fd); -#endif - -#ifndef sio_read -/** - * Reads from the serial device. - * - * @param fd serial device handle - * @param data pointer to data buffer for receiving - * @param len maximum length (in bytes) of data to receive - * @return number of bytes actually received - may be 0 if aborted by sio_read_abort - * - * @note This function will block until data can be received. The blocking - * can be cancelled by calling sio_read_abort(). - */ -u32_t sio_read(sio_fd_t fd, u8_t *data, u32_t len); -#endif - -#ifndef sio_tryread -/** - * Tries to read from the serial device. Same as sio_read but returns - * immediately if no data is available and never blocks. - * - * @param fd serial device handle - * @param data pointer to data buffer for receiving - * @param len maximum length (in bytes) of data to receive - * @return number of bytes actually received - */ -u32_t sio_tryread(sio_fd_t fd, u8_t *data, u32_t len); -#endif - -#ifndef sio_write -/** - * Writes to the serial device. - * - * @param fd serial device handle - * @param data pointer to data to send - * @param len length (in bytes) of data to send - * @return number of bytes actually sent - * - * @note This function will block until all data can be sent. - */ -u32_t sio_write(sio_fd_t fd, u8_t *data, u32_t len); -#endif - -#ifndef sio_read_abort -/** - * Aborts a blocking sio_read() call. - * - * @param fd serial device handle - */ -void sio_read_abort(sio_fd_t fd); -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* SIO_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/snmp.h b/Middlewares/Third_Party/LwIP/src/include/lwip/snmp.h deleted file mode 100644 index 8704d0b..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/snmp.h +++ /dev/null @@ -1,213 +0,0 @@ -/** - * @file - * SNMP support API for implementing netifs and statitics for MIB2 - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Dirk Ziegelmeier - * - */ -#ifndef LWIP_HDR_SNMP_H -#define LWIP_HDR_SNMP_H - -#include "lwip/opt.h" -#include "lwip/ip_addr.h" - -#ifdef __cplusplus -extern "C" { -#endif - -struct udp_pcb; -struct netif; - -/** - * @defgroup netif_mib2 MIB2 statistics - * @ingroup netif - */ - -/* MIB2 statistics functions */ -#if MIB2_STATS /* don't build if not configured for use in lwipopts.h */ -/** - * @ingroup netif_mib2 - * @see RFC1213, "MIB-II, 6. Definitions" - */ -enum snmp_ifType { - snmp_ifType_other=1, /* none of the following */ - snmp_ifType_regular1822, - snmp_ifType_hdh1822, - snmp_ifType_ddn_x25, - snmp_ifType_rfc877_x25, - snmp_ifType_ethernet_csmacd, - snmp_ifType_iso88023_csmacd, - snmp_ifType_iso88024_tokenBus, - snmp_ifType_iso88025_tokenRing, - snmp_ifType_iso88026_man, - snmp_ifType_starLan, - snmp_ifType_proteon_10Mbit, - snmp_ifType_proteon_80Mbit, - snmp_ifType_hyperchannel, - snmp_ifType_fddi, - snmp_ifType_lapb, - snmp_ifType_sdlc, - snmp_ifType_ds1, /* T-1 */ - snmp_ifType_e1, /* european equiv. of T-1 */ - snmp_ifType_basicISDN, - snmp_ifType_primaryISDN, /* proprietary serial */ - snmp_ifType_propPointToPointSerial, - snmp_ifType_ppp, - snmp_ifType_softwareLoopback, - snmp_ifType_eon, /* CLNP over IP [11] */ - snmp_ifType_ethernet_3Mbit, - snmp_ifType_nsip, /* XNS over IP */ - snmp_ifType_slip, /* generic SLIP */ - snmp_ifType_ultra, /* ULTRA technologies */ - snmp_ifType_ds3, /* T-3 */ - snmp_ifType_sip, /* SMDS */ - snmp_ifType_frame_relay -}; - -/** This macro has a precision of ~49 days because sys_now returns u32_t. \#define your own if you want ~490 days. */ -#ifndef MIB2_COPY_SYSUPTIME_TO -#define MIB2_COPY_SYSUPTIME_TO(ptrToVal) (*(ptrToVal) = (sys_now() / 10)) -#endif - -/** - * @ingroup netif_mib2 - * Increment stats member for SNMP MIB2 stats (struct stats_mib2_netif_ctrs) - */ -#define MIB2_STATS_NETIF_INC(n, x) do { ++(n)->mib2_counters.x; } while(0) -/** - * @ingroup netif_mib2 - * Add value to stats member for SNMP MIB2 stats (struct stats_mib2_netif_ctrs) - */ -#define MIB2_STATS_NETIF_ADD(n, x, val) do { (n)->mib2_counters.x += (val); } while(0) - -/** - * @ingroup netif_mib2 - * Init MIB2 statistic counters in netif - * @param netif Netif to init - * @param type one of enum @ref snmp_ifType - * @param speed your link speed here (units: bits per second) - */ -#define MIB2_INIT_NETIF(netif, type, speed) do { \ - (netif)->link_type = (type); \ - (netif)->link_speed = (speed);\ - (netif)->ts = 0; \ - (netif)->mib2_counters.ifinoctets = 0; \ - (netif)->mib2_counters.ifinucastpkts = 0; \ - (netif)->mib2_counters.ifinnucastpkts = 0; \ - (netif)->mib2_counters.ifindiscards = 0; \ - (netif)->mib2_counters.ifinerrors = 0; \ - (netif)->mib2_counters.ifinunknownprotos = 0; \ - (netif)->mib2_counters.ifoutoctets = 0; \ - (netif)->mib2_counters.ifoutucastpkts = 0; \ - (netif)->mib2_counters.ifoutnucastpkts = 0; \ - (netif)->mib2_counters.ifoutdiscards = 0; \ - (netif)->mib2_counters.ifouterrors = 0; } while(0) -#else /* MIB2_STATS */ -#ifndef MIB2_COPY_SYSUPTIME_TO -#define MIB2_COPY_SYSUPTIME_TO(ptrToVal) -#endif -#define MIB2_INIT_NETIF(netif, type, speed) -#define MIB2_STATS_NETIF_INC(n, x) -#define MIB2_STATS_NETIF_ADD(n, x, val) -#endif /* MIB2_STATS */ - -/* LWIP MIB2 callbacks */ -#if LWIP_MIB2_CALLBACKS /* don't build if not configured for use in lwipopts.h */ -/* network interface */ -void mib2_netif_added(struct netif *ni); -void mib2_netif_removed(struct netif *ni); - -#if LWIP_IPV4 && LWIP_ARP -/* ARP (for atTable and ipNetToMediaTable) */ -void mib2_add_arp_entry(struct netif *ni, ip4_addr_t *ip); -void mib2_remove_arp_entry(struct netif *ni, ip4_addr_t *ip); -#else /* LWIP_IPV4 && LWIP_ARP */ -#define mib2_add_arp_entry(ni,ip) -#define mib2_remove_arp_entry(ni,ip) -#endif /* LWIP_IPV4 && LWIP_ARP */ - -/* IP */ -#if LWIP_IPV4 -void mib2_add_ip4(struct netif *ni); -void mib2_remove_ip4(struct netif *ni); -void mib2_add_route_ip4(u8_t dflt, struct netif *ni); -void mib2_remove_route_ip4(u8_t dflt, struct netif *ni); -#endif /* LWIP_IPV4 */ - -/* UDP */ -#if LWIP_UDP -void mib2_udp_bind(struct udp_pcb *pcb); -void mib2_udp_unbind(struct udp_pcb *pcb); -#endif /* LWIP_UDP */ - -#else /* LWIP_MIB2_CALLBACKS */ -/* LWIP_MIB2_CALLBACKS support not available */ -/* define everything to be empty */ - -/* network interface */ -#define mib2_netif_added(ni) -#define mib2_netif_removed(ni) - -/* ARP */ -#define mib2_add_arp_entry(ni,ip) -#define mib2_remove_arp_entry(ni,ip) - -/* IP */ -#define mib2_add_ip4(ni) -#define mib2_remove_ip4(ni) -#define mib2_add_route_ip4(dflt, ni) -#define mib2_remove_route_ip4(dflt, ni) - -/* UDP */ -#define mib2_udp_bind(pcb) -#define mib2_udp_unbind(pcb) -#endif /* LWIP_MIB2_CALLBACKS */ - -/* for source-code compatibility reasons only, can be removed (not used internally) */ -#define NETIF_INIT_SNMP MIB2_INIT_NETIF -#define snmp_add_ifinoctets(ni,value) MIB2_STATS_NETIF_ADD(ni, ifinoctets, value) -#define snmp_inc_ifinucastpkts(ni) MIB2_STATS_NETIF_INC(ni, ifinucastpkts) -#define snmp_inc_ifinnucastpkts(ni) MIB2_STATS_NETIF_INC(ni, ifinnucastpkts) -#define snmp_inc_ifindiscards(ni) MIB2_STATS_NETIF_INC(ni, ifindiscards) -#define snmp_inc_ifinerrors(ni) MIB2_STATS_NETIF_INC(ni, ifinerrors) -#define snmp_inc_ifinunknownprotos(ni) MIB2_STATS_NETIF_INC(ni, ifinunknownprotos) -#define snmp_add_ifoutoctets(ni,value) MIB2_STATS_NETIF_ADD(ni, ifoutoctets, value) -#define snmp_inc_ifoutucastpkts(ni) MIB2_STATS_NETIF_INC(ni, ifoutucastpkts) -#define snmp_inc_ifoutnucastpkts(ni) MIB2_STATS_NETIF_INC(ni, ifoutnucastpkts) -#define snmp_inc_ifoutdiscards(ni) MIB2_STATS_NETIF_INC(ni, ifoutdiscards) -#define snmp_inc_ifouterrors(ni) MIB2_STATS_NETIF_INC(ni, ifouterrors) - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_SNMP_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/sockets.h b/Middlewares/Third_Party/LwIP/src/include/lwip/sockets.h deleted file mode 100644 index d70d36c..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/sockets.h +++ /dev/null @@ -1,688 +0,0 @@ -/** - * @file - * Socket API (to be used from non-TCPIP threads) - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - - -#ifndef LWIP_HDR_SOCKETS_H -#define LWIP_HDR_SOCKETS_H - -#include "lwip/opt.h" - -#if LWIP_SOCKET /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/ip_addr.h" -#include "lwip/netif.h" -#include "lwip/err.h" -#include "lwip/inet.h" -#include "lwip/errno.h" - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* If your port already typedef's sa_family_t, define SA_FAMILY_T_DEFINED - to prevent this code from redefining it. */ -#if !defined(sa_family_t) && !defined(SA_FAMILY_T_DEFINED) -typedef u8_t sa_family_t; -#endif -/* If your port already typedef's in_port_t, define IN_PORT_T_DEFINED - to prevent this code from redefining it. */ -#if !defined(in_port_t) && !defined(IN_PORT_T_DEFINED) -typedef u16_t in_port_t; -#endif - -#if LWIP_IPV4 -/* members are in network byte order */ -struct sockaddr_in { - u8_t sin_len; - sa_family_t sin_family; - in_port_t sin_port; - struct in_addr sin_addr; -#define SIN_ZERO_LEN 8 - char sin_zero[SIN_ZERO_LEN]; -}; -#endif /* LWIP_IPV4 */ - -#if LWIP_IPV6 -struct sockaddr_in6 { - u8_t sin6_len; /* length of this structure */ - sa_family_t sin6_family; /* AF_INET6 */ - in_port_t sin6_port; /* Transport layer port # */ - u32_t sin6_flowinfo; /* IPv6 flow information */ - struct in6_addr sin6_addr; /* IPv6 address */ - u32_t sin6_scope_id; /* Set of interfaces for scope */ -}; -#endif /* LWIP_IPV6 */ - -struct sockaddr { - u8_t sa_len; - sa_family_t sa_family; - char sa_data[14]; -}; - -struct sockaddr_storage { - u8_t s2_len; - sa_family_t ss_family; - char s2_data1[2]; - u32_t s2_data2[3]; -#if LWIP_IPV6 - u32_t s2_data3[3]; -#endif /* LWIP_IPV6 */ -}; - -/* If your port already typedef's socklen_t, define SOCKLEN_T_DEFINED - to prevent this code from redefining it. */ -#if !defined(socklen_t) && !defined(SOCKLEN_T_DEFINED) -typedef u32_t socklen_t; -#endif - -#if !defined IOV_MAX -#define IOV_MAX 0xFFFF -#elif IOV_MAX > 0xFFFF -#error "IOV_MAX larger than supported by LwIP" -#endif /* IOV_MAX */ - -#if !defined(iovec) -struct iovec { - void *iov_base; - size_t iov_len; -}; -#endif - -struct msghdr { - void *msg_name; - socklen_t msg_namelen; - struct iovec *msg_iov; - int msg_iovlen; - void *msg_control; - socklen_t msg_controllen; - int msg_flags; -}; - -/* struct msghdr->msg_flags bit field values */ -#define MSG_TRUNC 0x04 -#define MSG_CTRUNC 0x08 - -/* RFC 3542, Section 20: Ancillary Data */ -struct cmsghdr { - socklen_t cmsg_len; /* number of bytes, including header */ - int cmsg_level; /* originating protocol */ - int cmsg_type; /* protocol-specific type */ -}; -/* Data section follows header and possible padding, typically referred to as - unsigned char cmsg_data[]; */ - -/* cmsg header/data alignment. NOTE: we align to native word size (double word -size on 16-bit arch) so structures are not placed at an unaligned address. -16-bit arch needs double word to ensure 32-bit alignment because socklen_t -could be 32 bits. If we ever have cmsg data with a 64-bit variable, alignment -will need to increase long long */ -#define ALIGN_H(size) (((size) + sizeof(long) - 1U) & ~(sizeof(long)-1U)) -#define ALIGN_D(size) ALIGN_H(size) - -#define CMSG_FIRSTHDR(mhdr) \ - ((mhdr)->msg_controllen >= sizeof(struct cmsghdr) ? \ - (struct cmsghdr *)(mhdr)->msg_control : \ - (struct cmsghdr *)NULL) - -#define CMSG_NXTHDR(mhdr, cmsg) \ - (((cmsg) == NULL) ? CMSG_FIRSTHDR(mhdr) : \ - (((u8_t *)(cmsg) + ALIGN_H((cmsg)->cmsg_len) \ - + ALIGN_D(sizeof(struct cmsghdr)) > \ - (u8_t *)((mhdr)->msg_control) + (mhdr)->msg_controllen) ? \ - (struct cmsghdr *)NULL : \ - (struct cmsghdr *)((void*)((u8_t *)(cmsg) + \ - ALIGN_H((cmsg)->cmsg_len))))) - -#define CMSG_DATA(cmsg) ((void*)((u8_t *)(cmsg) + \ - ALIGN_D(sizeof(struct cmsghdr)))) - -#define CMSG_SPACE(length) (ALIGN_D(sizeof(struct cmsghdr)) + \ - ALIGN_H(length)) - -#define CMSG_LEN(length) (ALIGN_D(sizeof(struct cmsghdr)) + \ - length) - -/* Set socket options argument */ -#define IFNAMSIZ NETIF_NAMESIZE -struct ifreq { - char ifr_name[IFNAMSIZ]; /* Interface name */ -}; - -/* Socket protocol types (TCP/UDP/RAW) */ -#define SOCK_STREAM 1 -#define SOCK_DGRAM 2 -#define SOCK_RAW 3 - -/* - * Option flags per-socket. These must match the SOF_ flags in ip.h (checked in init.c) - */ -#define SO_REUSEADDR 0x0004 /* Allow local address reuse */ -#define SO_KEEPALIVE 0x0008 /* keep connections alive */ -#define SO_BROADCAST 0x0020 /* permit to send and to receive broadcast messages (see IP_SOF_BROADCAST option) */ - - -/* - * Additional options, not kept in so_options. - */ -#define SO_DEBUG 0x0001 /* Unimplemented: turn on debugging info recording */ -#define SO_ACCEPTCONN 0x0002 /* socket has had listen() */ -#define SO_DONTROUTE 0x0010 /* Unimplemented: just use interface addresses */ -#define SO_USELOOPBACK 0x0040 /* Unimplemented: bypass hardware when possible */ -#define SO_LINGER 0x0080 /* linger on close if data present */ -#define SO_DONTLINGER ((int)(~SO_LINGER)) -#define SO_OOBINLINE 0x0100 /* Unimplemented: leave received OOB data in line */ -#define SO_REUSEPORT 0x0200 /* Unimplemented: allow local address & port reuse */ -#define SO_SNDBUF 0x1001 /* Unimplemented: send buffer size */ -#define SO_RCVBUF 0x1002 /* receive buffer size */ -#define SO_SNDLOWAT 0x1003 /* Unimplemented: send low-water mark */ -#define SO_RCVLOWAT 0x1004 /* Unimplemented: receive low-water mark */ -#define SO_SNDTIMEO 0x1005 /* send timeout */ -#define SO_RCVTIMEO 0x1006 /* receive timeout */ -#define SO_ERROR 0x1007 /* get error status and clear */ -#define SO_TYPE 0x1008 /* get socket type */ -#define SO_CONTIMEO 0x1009 /* Unimplemented: connect timeout */ -#define SO_NO_CHECK 0x100a /* don't create UDP checksum */ -#define SO_BINDTODEVICE 0x100b /* bind to device */ - -/* - * Structure used for manipulating linger option. - */ -struct linger { - int l_onoff; /* option on/off */ - int l_linger; /* linger time in seconds */ -}; - -/* - * Level number for (get/set)sockopt() to apply to socket itself. - */ -#define SOL_SOCKET 0xfff /* options for socket level */ - - -#define AF_UNSPEC 0 -#define AF_INET 2 -#if LWIP_IPV6 -#define AF_INET6 10 -#else /* LWIP_IPV6 */ -#define AF_INET6 AF_UNSPEC -#endif /* LWIP_IPV6 */ -#define PF_INET AF_INET -#define PF_INET6 AF_INET6 -#define PF_UNSPEC AF_UNSPEC - -#define IPPROTO_IP 0 -#define IPPROTO_ICMP 1 -#define IPPROTO_TCP 6 -#define IPPROTO_UDP 17 -#if LWIP_IPV6 -#define IPPROTO_IPV6 41 -#define IPPROTO_ICMPV6 58 -#endif /* LWIP_IPV6 */ -#define IPPROTO_UDPLITE 136 -#define IPPROTO_RAW 255 - -/* Flags we can use with send and recv. */ -#define MSG_PEEK 0x01 /* Peeks at an incoming message */ -#define MSG_WAITALL 0x02 /* Unimplemented: Requests that the function block until the full amount of data requested can be returned */ -#define MSG_OOB 0x04 /* Unimplemented: Requests out-of-band data. The significance and semantics of out-of-band data are protocol-specific */ -#define MSG_DONTWAIT 0x08 /* Nonblocking i/o for this operation only */ -#define MSG_MORE 0x10 /* Sender will send more */ -#define MSG_NOSIGNAL 0x20 /* Uninmplemented: Requests not to send the SIGPIPE signal if an attempt to send is made on a stream-oriented socket that is no longer connected. */ - - -/* - * Options for level IPPROTO_IP - */ -#define IP_TOS 1 -#define IP_TTL 2 -#define IP_PKTINFO 8 - -#if LWIP_TCP -/* - * Options for level IPPROTO_TCP - */ -#define TCP_NODELAY 0x01 /* don't delay send to coalesce packets */ -#define TCP_KEEPALIVE 0x02 /* send KEEPALIVE probes when idle for pcb->keep_idle milliseconds */ -#define TCP_KEEPIDLE 0x03 /* set pcb->keep_idle - Same as TCP_KEEPALIVE, but use seconds for get/setsockopt */ -#define TCP_KEEPINTVL 0x04 /* set pcb->keep_intvl - Use seconds for get/setsockopt */ -#define TCP_KEEPCNT 0x05 /* set pcb->keep_cnt - Use number of probes sent for get/setsockopt */ -#endif /* LWIP_TCP */ - -#if LWIP_IPV6 -/* - * Options for level IPPROTO_IPV6 - */ -#define IPV6_CHECKSUM 7 /* RFC3542: calculate and insert the ICMPv6 checksum for raw sockets. */ -#define IPV6_V6ONLY 27 /* RFC3493: boolean control to restrict AF_INET6 sockets to IPv6 communications only. */ -#endif /* LWIP_IPV6 */ - -#if LWIP_UDP && LWIP_UDPLITE -/* - * Options for level IPPROTO_UDPLITE - */ -#define UDPLITE_SEND_CSCOV 0x01 /* sender checksum coverage */ -#define UDPLITE_RECV_CSCOV 0x02 /* minimal receiver checksum coverage */ -#endif /* LWIP_UDP && LWIP_UDPLITE*/ - - -#if LWIP_MULTICAST_TX_OPTIONS -/* - * Options and types for UDP multicast traffic handling - */ -#define IP_MULTICAST_TTL 5 -#define IP_MULTICAST_IF 6 -#define IP_MULTICAST_LOOP 7 -#endif /* LWIP_MULTICAST_TX_OPTIONS */ - -#if LWIP_IGMP -/* - * Options and types related to multicast membership - */ -#define IP_ADD_MEMBERSHIP 3 -#define IP_DROP_MEMBERSHIP 4 - -typedef struct ip_mreq { - struct in_addr imr_multiaddr; /* IP multicast address of group */ - struct in_addr imr_interface; /* local IP address of interface */ -} ip_mreq; -#endif /* LWIP_IGMP */ - -#if LWIP_IPV4 -struct in_pktinfo { - unsigned int ipi_ifindex; /* Interface index */ - struct in_addr ipi_addr; /* Destination (from header) address */ -}; -#endif /* LWIP_IPV4 */ - -#if LWIP_IPV6_MLD -/* - * Options and types related to IPv6 multicast membership - */ -#define IPV6_JOIN_GROUP 12 -#define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP -#define IPV6_LEAVE_GROUP 13 -#define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP - -typedef struct ipv6_mreq { - struct in6_addr ipv6mr_multiaddr; /* IPv6 multicast addr */ - unsigned int ipv6mr_interface; /* interface index, or 0 */ -} ipv6_mreq; -#endif /* LWIP_IPV6_MLD */ - -/* - * The Type of Service provides an indication of the abstract - * parameters of the quality of service desired. These parameters are - * to be used to guide the selection of the actual service parameters - * when transmitting a datagram through a particular network. Several - * networks offer service precedence, which somehow treats high - * precedence traffic as more important than other traffic (generally - * by accepting only traffic above a certain precedence at time of high - * load). The major choice is a three way tradeoff between low-delay, - * high-reliability, and high-throughput. - * The use of the Delay, Throughput, and Reliability indications may - * increase the cost (in some sense) of the service. In many networks - * better performance for one of these parameters is coupled with worse - * performance on another. Except for very unusual cases at most two - * of these three indications should be set. - */ -#define IPTOS_TOS_MASK 0x1E -#define IPTOS_TOS(tos) ((tos) & IPTOS_TOS_MASK) -#define IPTOS_LOWDELAY 0x10 -#define IPTOS_THROUGHPUT 0x08 -#define IPTOS_RELIABILITY 0x04 -#define IPTOS_LOWCOST 0x02 -#define IPTOS_MINCOST IPTOS_LOWCOST - -/* - * The Network Control precedence designation is intended to be used - * within a network only. The actual use and control of that - * designation is up to each network. The Internetwork Control - * designation is intended for use by gateway control originators only. - * If the actual use of these precedence designations is of concern to - * a particular network, it is the responsibility of that network to - * control the access to, and use of, those precedence designations. - */ -#define IPTOS_PREC_MASK 0xe0 -#define IPTOS_PREC(tos) ((tos) & IPTOS_PREC_MASK) -#define IPTOS_PREC_NETCONTROL 0xe0 -#define IPTOS_PREC_INTERNETCONTROL 0xc0 -#define IPTOS_PREC_CRITIC_ECP 0xa0 -#define IPTOS_PREC_FLASHOVERRIDE 0x80 -#define IPTOS_PREC_FLASH 0x60 -#define IPTOS_PREC_IMMEDIATE 0x40 -#define IPTOS_PREC_PRIORITY 0x20 -#define IPTOS_PREC_ROUTINE 0x00 - - -/* - * Commands for ioctlsocket(), taken from the BSD file fcntl.h. - * lwip_ioctl only supports FIONREAD and FIONBIO, for now - * - * Ioctl's have the command encoded in the lower word, - * and the size of any in or out parameters in the upper - * word. The high 2 bits of the upper word are used - * to encode the in/out status of the parameter; for now - * we restrict parameters to at most 128 bytes. - */ -#if !defined(FIONREAD) || !defined(FIONBIO) -#define IOCPARM_MASK 0x7fU /* parameters must be < 128 bytes */ -#define IOC_VOID 0x20000000UL /* no parameters */ -#define IOC_OUT 0x40000000UL /* copy out parameters */ -#define IOC_IN 0x80000000UL /* copy in parameters */ -#define IOC_INOUT (IOC_IN|IOC_OUT) - /* 0x20000000 distinguishes new & - old ioctl's */ -#define _IO(x,y) ((long)(IOC_VOID|((x)<<8)|(y))) - -#define _IOR(x,y,t) ((long)(IOC_OUT|((sizeof(t)&IOCPARM_MASK)<<16)|((x)<<8)|(y))) - -#define _IOW(x,y,t) ((long)(IOC_IN|((sizeof(t)&IOCPARM_MASK)<<16)|((x)<<8)|(y))) -#endif /* !defined(FIONREAD) || !defined(FIONBIO) */ - -#ifndef FIONREAD -#define FIONREAD _IOR('f', 127, unsigned long) /* get # bytes to read */ -#endif -#ifndef FIONBIO -#define FIONBIO _IOW('f', 126, unsigned long) /* set/clear non-blocking i/o */ -#endif - -/* Socket I/O Controls: unimplemented */ -#ifndef SIOCSHIWAT -#define SIOCSHIWAT _IOW('s', 0, unsigned long) /* set high watermark */ -#define SIOCGHIWAT _IOR('s', 1, unsigned long) /* get high watermark */ -#define SIOCSLOWAT _IOW('s', 2, unsigned long) /* set low watermark */ -#define SIOCGLOWAT _IOR('s', 3, unsigned long) /* get low watermark */ -#define SIOCATMARK _IOR('s', 7, unsigned long) /* at oob mark? */ -#endif - -/* commands for fnctl */ -#ifndef F_GETFL -#define F_GETFL 3 -#endif -#ifndef F_SETFL -#define F_SETFL 4 -#endif - -/* File status flags and file access modes for fnctl, - these are bits in an int. */ -#ifndef O_NONBLOCK -#define O_NONBLOCK 1 /* nonblocking I/O */ -#endif -#ifndef O_NDELAY -#define O_NDELAY O_NONBLOCK /* same as O_NONBLOCK, for compatibility */ -#endif -#ifndef O_RDONLY -#define O_RDONLY 2 -#endif -#ifndef O_WRONLY -#define O_WRONLY 4 -#endif -#ifndef O_RDWR -#define O_RDWR (O_RDONLY|O_WRONLY) -#endif - -#ifndef SHUT_RD - #define SHUT_RD 0 - #define SHUT_WR 1 - #define SHUT_RDWR 2 -#endif - -/* FD_SET used for lwip_select */ -#ifndef FD_SET -#undef FD_SETSIZE -/* Make FD_SETSIZE match NUM_SOCKETS in socket.c */ -#define FD_SETSIZE MEMP_NUM_NETCONN -#define LWIP_SELECT_MAXNFDS (FD_SETSIZE + LWIP_SOCKET_OFFSET) -#define FDSETSAFESET(n, code) do { \ - if (((n) - LWIP_SOCKET_OFFSET < MEMP_NUM_NETCONN) && (((int)(n) - LWIP_SOCKET_OFFSET) >= 0)) { \ - code; }} while(0) -#define FDSETSAFEGET(n, code) (((n) - LWIP_SOCKET_OFFSET < MEMP_NUM_NETCONN) && (((int)(n) - LWIP_SOCKET_OFFSET) >= 0) ?\ - (code) : 0) -#define FD_SET(n, p) FDSETSAFESET(n, (p)->fd_bits[((n)-LWIP_SOCKET_OFFSET)/8] = (u8_t)((p)->fd_bits[((n)-LWIP_SOCKET_OFFSET)/8] | (1 << (((n)-LWIP_SOCKET_OFFSET) & 7)))) -#define FD_CLR(n, p) FDSETSAFESET(n, (p)->fd_bits[((n)-LWIP_SOCKET_OFFSET)/8] = (u8_t)((p)->fd_bits[((n)-LWIP_SOCKET_OFFSET)/8] & ~(1 << (((n)-LWIP_SOCKET_OFFSET) & 7)))) -#define FD_ISSET(n,p) FDSETSAFEGET(n, (p)->fd_bits[((n)-LWIP_SOCKET_OFFSET)/8] & (1 << (((n)-LWIP_SOCKET_OFFSET) & 7))) -#define FD_ZERO(p) memset((void*)(p), 0, sizeof(*(p))) - -typedef struct fd_set -{ - unsigned char fd_bits [(FD_SETSIZE+7)/8]; -} fd_set; - -#elif FD_SETSIZE < (LWIP_SOCKET_OFFSET + MEMP_NUM_NETCONN) -#error "external FD_SETSIZE too small for number of sockets" -#else -#define LWIP_SELECT_MAXNFDS FD_SETSIZE -#endif /* FD_SET */ - -/* poll-related defines and types */ -/* @todo: find a better way to guard the definition of these defines and types if already defined */ -#if !defined(POLLIN) && !defined(POLLOUT) -#define POLLIN 0x1 -#define POLLOUT 0x2 -#define POLLERR 0x4 -#define POLLNVAL 0x8 -/* Below values are unimplemented */ -#define POLLRDNORM 0x10 -#define POLLRDBAND 0x20 -#define POLLPRI 0x40 -#define POLLWRNORM 0x80 -#define POLLWRBAND 0x100 -#define POLLHUP 0x200 -typedef unsigned int nfds_t; -struct pollfd -{ - int fd; - short events; - short revents; -}; -#endif - -/** LWIP_TIMEVAL_PRIVATE: if you want to use the struct timeval provided - * by your system, set this to 0 and include in cc.h */ -#ifndef LWIP_TIMEVAL_PRIVATE -#define LWIP_TIMEVAL_PRIVATE 1 -#endif - -#if LWIP_TIMEVAL_PRIVATE -struct timeval { - long tv_sec; /* seconds */ - long tv_usec; /* and microseconds */ -}; -#endif /* LWIP_TIMEVAL_PRIVATE */ - -#define lwip_socket_init() /* Compatibility define, no init needed. */ -void lwip_socket_thread_init(void); /* LWIP_NETCONN_SEM_PER_THREAD==1: initialize thread-local semaphore */ -void lwip_socket_thread_cleanup(void); /* LWIP_NETCONN_SEM_PER_THREAD==1: destroy thread-local semaphore */ - -#if LWIP_COMPAT_SOCKETS == 2 -/* This helps code parsers/code completion by not having the COMPAT functions as defines */ -#define lwip_accept accept -#define lwip_bind bind -#define lwip_shutdown shutdown -#define lwip_getpeername getpeername -#define lwip_getsockname getsockname -#define lwip_setsockopt setsockopt -#define lwip_getsockopt getsockopt -#define lwip_close closesocket -#define lwip_connect connect -#define lwip_listen listen -#define lwip_recv recv -#define lwip_recvmsg recvmsg -#define lwip_recvfrom recvfrom -#define lwip_send send -#define lwip_sendmsg sendmsg -#define lwip_sendto sendto -#define lwip_socket socket -#if LWIP_SOCKET_SELECT -#define lwip_select select -#endif -#if LWIP_SOCKET_POLL -#define lwip_poll poll -#endif -#define lwip_ioctl ioctlsocket -#define lwip_inet_ntop inet_ntop -#define lwip_inet_pton inet_pton - -#if LWIP_POSIX_SOCKETS_IO_NAMES -#define lwip_read read -#define lwip_readv readv -#define lwip_write write -#define lwip_writev writev -#undef lwip_close -#define lwip_close close -#define closesocket(s) close(s) -int fcntl(int s, int cmd, ...); -#undef lwip_ioctl -#define lwip_ioctl ioctl -#define ioctlsocket ioctl -#endif /* LWIP_POSIX_SOCKETS_IO_NAMES */ -#endif /* LWIP_COMPAT_SOCKETS == 2 */ - -int lwip_accept(int s, struct sockaddr *addr, socklen_t *addrlen); -int lwip_bind(int s, const struct sockaddr *name, socklen_t namelen); -int lwip_shutdown(int s, int how); -int lwip_getpeername (int s, struct sockaddr *name, socklen_t *namelen); -int lwip_getsockname (int s, struct sockaddr *name, socklen_t *namelen); -int lwip_getsockopt (int s, int level, int optname, void *optval, socklen_t *optlen); -int lwip_setsockopt (int s, int level, int optname, const void *optval, socklen_t optlen); - int lwip_close(int s); -int lwip_connect(int s, const struct sockaddr *name, socklen_t namelen); -int lwip_listen(int s, int backlog); -ssize_t lwip_recv(int s, void *mem, size_t len, int flags); -ssize_t lwip_read(int s, void *mem, size_t len); -ssize_t lwip_readv(int s, const struct iovec *iov, int iovcnt); -ssize_t lwip_recvfrom(int s, void *mem, size_t len, int flags, - struct sockaddr *from, socklen_t *fromlen); -ssize_t lwip_recvmsg(int s, struct msghdr *message, int flags); -ssize_t lwip_send(int s, const void *dataptr, size_t size, int flags); -ssize_t lwip_sendmsg(int s, const struct msghdr *message, int flags); -ssize_t lwip_sendto(int s, const void *dataptr, size_t size, int flags, - const struct sockaddr *to, socklen_t tolen); -int lwip_socket(int domain, int type, int protocol); -ssize_t lwip_write(int s, const void *dataptr, size_t size); -ssize_t lwip_writev(int s, const struct iovec *iov, int iovcnt); -#if LWIP_SOCKET_SELECT -int lwip_select(int maxfdp1, fd_set *readset, fd_set *writeset, fd_set *exceptset, - struct timeval *timeout); -#endif -#if LWIP_SOCKET_POLL -int lwip_poll(struct pollfd *fds, nfds_t nfds, int timeout); -#endif -int lwip_ioctl(int s, long cmd, void *argp); -int lwip_fcntl(int s, int cmd, int val); -const char *lwip_inet_ntop(int af, const void *src, char *dst, socklen_t size); -int lwip_inet_pton(int af, const char *src, void *dst); - -#if LWIP_COMPAT_SOCKETS -#if LWIP_COMPAT_SOCKETS != 2 -/** @ingroup socket */ -#define accept(s,addr,addrlen) lwip_accept(s,addr,addrlen) -/** @ingroup socket */ -#define bind(s,name,namelen) lwip_bind(s,name,namelen) -/** @ingroup socket */ -#define shutdown(s,how) lwip_shutdown(s,how) -/** @ingroup socket */ -#define getpeername(s,name,namelen) lwip_getpeername(s,name,namelen) -/** @ingroup socket */ -#define getsockname(s,name,namelen) lwip_getsockname(s,name,namelen) -/** @ingroup socket */ -#define setsockopt(s,level,optname,opval,optlen) lwip_setsockopt(s,level,optname,opval,optlen) -/** @ingroup socket */ -#define getsockopt(s,level,optname,opval,optlen) lwip_getsockopt(s,level,optname,opval,optlen) -/** @ingroup socket */ -#define closesocket(s) lwip_close(s) -/** @ingroup socket */ -#define connect(s,name,namelen) lwip_connect(s,name,namelen) -/** @ingroup socket */ -#define listen(s,backlog) lwip_listen(s,backlog) -/** @ingroup socket */ -#define recv(s,mem,len,flags) lwip_recv(s,mem,len,flags) -/** @ingroup socket */ -#define recvmsg(s,message,flags) lwip_recvmsg(s,message,flags) -/** @ingroup socket */ -#define recvfrom(s,mem,len,flags,from,fromlen) lwip_recvfrom(s,mem,len,flags,from,fromlen) -/** @ingroup socket */ -#define send(s,dataptr,size,flags) lwip_send(s,dataptr,size,flags) -/** @ingroup socket */ -#define sendmsg(s,message,flags) lwip_sendmsg(s,message,flags) -/** @ingroup socket */ -#define sendto(s,dataptr,size,flags,to,tolen) lwip_sendto(s,dataptr,size,flags,to,tolen) -/** @ingroup socket */ -#define socket(domain,type,protocol) lwip_socket(domain,type,protocol) -#if LWIP_SOCKET_SELECT -/** @ingroup socket */ -#define select(maxfdp1,readset,writeset,exceptset,timeout) lwip_select(maxfdp1,readset,writeset,exceptset,timeout) -#endif -#if LWIP_SOCKET_POLL -/** @ingroup socket */ -#define poll(fds,nfds,timeout) lwip_poll(fds,nfds,timeout) -#endif -/** @ingroup socket */ -#define ioctlsocket(s,cmd,argp) lwip_ioctl(s,cmd,argp) -/** @ingroup socket */ -#define inet_ntop(af,src,dst,size) lwip_inet_ntop(af,src,dst,size) -/** @ingroup socket */ -#define inet_pton(af,src,dst) lwip_inet_pton(af,src,dst) - -#if LWIP_POSIX_SOCKETS_IO_NAMES -/** @ingroup socket */ -#define read(s,mem,len) lwip_read(s,mem,len) -/** @ingroup socket */ -#define readv(s,iov,iovcnt) lwip_readv(s,iov,iovcnt) -/** @ingroup socket */ -#define write(s,dataptr,len) lwip_write(s,dataptr,len) -/** @ingroup socket */ -#define writev(s,iov,iovcnt) lwip_writev(s,iov,iovcnt) -/** @ingroup socket */ -#define close(s) lwip_close(s) -/** @ingroup socket */ -#define fcntl(s,cmd,val) lwip_fcntl(s,cmd,val) -/** @ingroup socket */ -#define ioctl(s,cmd,argp) lwip_ioctl(s,cmd,argp) -#endif /* LWIP_POSIX_SOCKETS_IO_NAMES */ -#endif /* LWIP_COMPAT_SOCKETS != 2 */ - -#endif /* LWIP_COMPAT_SOCKETS */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_SOCKET */ - -#endif /* LWIP_HDR_SOCKETS_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/stats.h b/Middlewares/Third_Party/LwIP/src/include/lwip/stats.h deleted file mode 100644 index b570dba..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/stats.h +++ /dev/null @@ -1,491 +0,0 @@ -/** - * @file - * Statistics API (to be used from TCPIP thread) - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_STATS_H -#define LWIP_HDR_STATS_H - -#include "lwip/opt.h" - -#include "lwip/mem.h" -#include "lwip/memp.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#if LWIP_STATS - -#ifndef LWIP_STATS_LARGE -#define LWIP_STATS_LARGE 0 -#endif - -#if LWIP_STATS_LARGE -#define STAT_COUNTER u32_t -#define STAT_COUNTER_F U32_F -#else -#define STAT_COUNTER u16_t -#define STAT_COUNTER_F U16_F -#endif - -/** Protocol related stats */ -struct stats_proto { - STAT_COUNTER xmit; /* Transmitted packets. */ - STAT_COUNTER recv; /* Received packets. */ - STAT_COUNTER fw; /* Forwarded packets. */ - STAT_COUNTER drop; /* Dropped packets. */ - STAT_COUNTER chkerr; /* Checksum error. */ - STAT_COUNTER lenerr; /* Invalid length error. */ - STAT_COUNTER memerr; /* Out of memory error. */ - STAT_COUNTER rterr; /* Routing error. */ - STAT_COUNTER proterr; /* Protocol error. */ - STAT_COUNTER opterr; /* Error in options. */ - STAT_COUNTER err; /* Misc error. */ - STAT_COUNTER cachehit; -}; - -/** IGMP stats */ -struct stats_igmp { - STAT_COUNTER xmit; /* Transmitted packets. */ - STAT_COUNTER recv; /* Received packets. */ - STAT_COUNTER drop; /* Dropped packets. */ - STAT_COUNTER chkerr; /* Checksum error. */ - STAT_COUNTER lenerr; /* Invalid length error. */ - STAT_COUNTER memerr; /* Out of memory error. */ - STAT_COUNTER proterr; /* Protocol error. */ - STAT_COUNTER rx_v1; /* Received v1 frames. */ - STAT_COUNTER rx_group; /* Received group-specific queries. */ - STAT_COUNTER rx_general; /* Received general queries. */ - STAT_COUNTER rx_report; /* Received reports. */ - STAT_COUNTER tx_join; /* Sent joins. */ - STAT_COUNTER tx_leave; /* Sent leaves. */ - STAT_COUNTER tx_report; /* Sent reports. */ -}; - -/** Memory stats */ -struct stats_mem { -#if defined(LWIP_DEBUG) || LWIP_STATS_DISPLAY - const char *name; -#endif /* defined(LWIP_DEBUG) || LWIP_STATS_DISPLAY */ - STAT_COUNTER err; - mem_size_t avail; - mem_size_t used; - mem_size_t max; - STAT_COUNTER illegal; -}; - -/** System element stats */ -struct stats_syselem { - STAT_COUNTER used; - STAT_COUNTER max; - STAT_COUNTER err; -}; - -/** System stats */ -struct stats_sys { - struct stats_syselem sem; - struct stats_syselem mutex; - struct stats_syselem mbox; -}; - -/** SNMP MIB2 stats */ -struct stats_mib2 { - /* IP */ - u32_t ipinhdrerrors; - u32_t ipinaddrerrors; - u32_t ipinunknownprotos; - u32_t ipindiscards; - u32_t ipindelivers; - u32_t ipoutrequests; - u32_t ipoutdiscards; - u32_t ipoutnoroutes; - u32_t ipreasmoks; - u32_t ipreasmfails; - u32_t ipfragoks; - u32_t ipfragfails; - u32_t ipfragcreates; - u32_t ipreasmreqds; - u32_t ipforwdatagrams; - u32_t ipinreceives; - - /* TCP */ - u32_t tcpactiveopens; - u32_t tcppassiveopens; - u32_t tcpattemptfails; - u32_t tcpestabresets; - u32_t tcpoutsegs; - u32_t tcpretranssegs; - u32_t tcpinsegs; - u32_t tcpinerrs; - u32_t tcpoutrsts; - - /* UDP */ - u32_t udpindatagrams; - u32_t udpnoports; - u32_t udpinerrors; - u32_t udpoutdatagrams; - - /* ICMP */ - u32_t icmpinmsgs; - u32_t icmpinerrors; - u32_t icmpindestunreachs; - u32_t icmpintimeexcds; - u32_t icmpinparmprobs; - u32_t icmpinsrcquenchs; - u32_t icmpinredirects; - u32_t icmpinechos; - u32_t icmpinechoreps; - u32_t icmpintimestamps; - u32_t icmpintimestampreps; - u32_t icmpinaddrmasks; - u32_t icmpinaddrmaskreps; - u32_t icmpoutmsgs; - u32_t icmpouterrors; - u32_t icmpoutdestunreachs; - u32_t icmpouttimeexcds; - u32_t icmpoutechos; /* can be incremented by user application ('ping') */ - u32_t icmpoutechoreps; -}; - -/** - * @ingroup netif_mib2 - * SNMP MIB2 interface stats - */ -struct stats_mib2_netif_ctrs { - /** The total number of octets received on the interface, including framing characters */ - u32_t ifinoctets; - /** The number of packets, delivered by this sub-layer to a higher (sub-)layer, which were - * not addressed to a multicast or broadcast address at this sub-layer */ - u32_t ifinucastpkts; - /** The number of packets, delivered by this sub-layer to a higher (sub-)layer, which were - * addressed to a multicast or broadcast address at this sub-layer */ - u32_t ifinnucastpkts; - /** The number of inbound packets which were chosen to be discarded even though no errors had - * been detected to prevent their being deliverable to a higher-layer protocol. One possible - * reason for discarding such a packet could be to free up buffer space */ - u32_t ifindiscards; - /** For packet-oriented interfaces, the number of inbound packets that contained errors - * preventing them from being deliverable to a higher-layer protocol. For character- - * oriented or fixed-length interfaces, the number of inbound transmission units that - * contained errors preventing them from being deliverable to a higher-layer protocol. */ - u32_t ifinerrors; - /** For packet-oriented interfaces, the number of packets received via the interface which - * were discarded because of an unknown or unsupported protocol. For character-oriented - * or fixed-length interfaces that support protocol multiplexing the number of transmission - * units received via the interface which were discarded because of an unknown or unsupported - * protocol. For any interface that does not support protocol multiplexing, this counter will - * always be 0 */ - u32_t ifinunknownprotos; - /** The total number of octets transmitted out of the interface, including framing characters. */ - u32_t ifoutoctets; - /** The total number of packets that higher-level protocols requested be transmitted, and - * which were not addressed to a multicast or broadcast address at this sub-layer, including - * those that were discarded or not sent. */ - u32_t ifoutucastpkts; - /** The total number of packets that higher-level protocols requested be transmitted, and which - * were addressed to a multicast or broadcast address at this sub-layer, including - * those that were discarded or not sent. */ - u32_t ifoutnucastpkts; - /** The number of outbound packets which were chosen to be discarded even though no errors had - * been detected to prevent their being transmitted. One possible reason for discarding - * such a packet could be to free up buffer space. */ - u32_t ifoutdiscards; - /** For packet-oriented interfaces, the number of outbound packets that could not be transmitted - * because of errors. For character-oriented or fixed-length interfaces, the number of outbound - * transmission units that could not be transmitted because of errors. */ - u32_t ifouterrors; -}; - -/** lwIP stats container */ -struct stats_ { -#if LINK_STATS - /** Link level */ - struct stats_proto link; -#endif -#if ETHARP_STATS - /** ARP */ - struct stats_proto etharp; -#endif -#if IPFRAG_STATS - /** Fragmentation */ - struct stats_proto ip_frag; -#endif -#if IP_STATS - /** IP */ - struct stats_proto ip; -#endif -#if ICMP_STATS - /** ICMP */ - struct stats_proto icmp; -#endif -#if IGMP_STATS - /** IGMP */ - struct stats_igmp igmp; -#endif -#if UDP_STATS - /** UDP */ - struct stats_proto udp; -#endif -#if TCP_STATS - /** TCP */ - struct stats_proto tcp; -#endif -#if MEM_STATS - /** Heap */ - struct stats_mem mem; -#endif -#if MEMP_STATS - /** Internal memory pools */ - struct stats_mem *memp[MEMP_MAX]; -#endif -#if SYS_STATS - /** System */ - struct stats_sys sys; -#endif -#if IP6_STATS - /** IPv6 */ - struct stats_proto ip6; -#endif -#if ICMP6_STATS - /** ICMP6 */ - struct stats_proto icmp6; -#endif -#if IP6_FRAG_STATS - /** IPv6 fragmentation */ - struct stats_proto ip6_frag; -#endif -#if MLD6_STATS - /** Multicast listener discovery */ - struct stats_igmp mld6; -#endif -#if ND6_STATS - /** Neighbor discovery */ - struct stats_proto nd6; -#endif -#if MIB2_STATS - /** SNMP MIB2 */ - struct stats_mib2 mib2; -#endif -}; - -/** Global variable containing lwIP internal statistics. Add this to your debugger's watchlist. */ -extern struct stats_ lwip_stats; - -/** Init statistics */ -void stats_init(void); - -#define STATS_INC(x) ++lwip_stats.x -#define STATS_DEC(x) --lwip_stats.x -#define STATS_INC_USED(x, y, type) do { lwip_stats.x.used = (type)(lwip_stats.x.used + y); \ - if (lwip_stats.x.max < lwip_stats.x.used) { \ - lwip_stats.x.max = lwip_stats.x.used; \ - } \ - } while(0) -#define STATS_GET(x) lwip_stats.x -#else /* LWIP_STATS */ -#define stats_init() -#define STATS_INC(x) -#define STATS_DEC(x) -#define STATS_INC_USED(x, y, type) -#endif /* LWIP_STATS */ - -#if TCP_STATS -#define TCP_STATS_INC(x) STATS_INC(x) -#define TCP_STATS_DISPLAY() stats_display_proto(&lwip_stats.tcp, "TCP") -#else -#define TCP_STATS_INC(x) -#define TCP_STATS_DISPLAY() -#endif - -#if UDP_STATS -#define UDP_STATS_INC(x) STATS_INC(x) -#define UDP_STATS_DISPLAY() stats_display_proto(&lwip_stats.udp, "UDP") -#else -#define UDP_STATS_INC(x) -#define UDP_STATS_DISPLAY() -#endif - -#if ICMP_STATS -#define ICMP_STATS_INC(x) STATS_INC(x) -#define ICMP_STATS_DISPLAY() stats_display_proto(&lwip_stats.icmp, "ICMP") -#else -#define ICMP_STATS_INC(x) -#define ICMP_STATS_DISPLAY() -#endif - -#if IGMP_STATS -#define IGMP_STATS_INC(x) STATS_INC(x) -#define IGMP_STATS_DISPLAY() stats_display_igmp(&lwip_stats.igmp, "IGMP") -#else -#define IGMP_STATS_INC(x) -#define IGMP_STATS_DISPLAY() -#endif - -#if IP_STATS -#define IP_STATS_INC(x) STATS_INC(x) -#define IP_STATS_DISPLAY() stats_display_proto(&lwip_stats.ip, "IP") -#else -#define IP_STATS_INC(x) -#define IP_STATS_DISPLAY() -#endif - -#if IPFRAG_STATS -#define IPFRAG_STATS_INC(x) STATS_INC(x) -#define IPFRAG_STATS_DISPLAY() stats_display_proto(&lwip_stats.ip_frag, "IP_FRAG") -#else -#define IPFRAG_STATS_INC(x) -#define IPFRAG_STATS_DISPLAY() -#endif - -#if ETHARP_STATS -#define ETHARP_STATS_INC(x) STATS_INC(x) -#define ETHARP_STATS_DISPLAY() stats_display_proto(&lwip_stats.etharp, "ETHARP") -#else -#define ETHARP_STATS_INC(x) -#define ETHARP_STATS_DISPLAY() -#endif - -#if LINK_STATS -#define LINK_STATS_INC(x) STATS_INC(x) -#define LINK_STATS_DISPLAY() stats_display_proto(&lwip_stats.link, "LINK") -#else -#define LINK_STATS_INC(x) -#define LINK_STATS_DISPLAY() -#endif - -#if MEM_STATS -#define MEM_STATS_AVAIL(x, y) lwip_stats.mem.x = y -#define MEM_STATS_INC(x) STATS_INC(mem.x) -#define MEM_STATS_INC_USED(x, y) STATS_INC_USED(mem, y, mem_size_t) -#define MEM_STATS_DEC_USED(x, y) lwip_stats.mem.x = (mem_size_t)((lwip_stats.mem.x) - (y)) -#define MEM_STATS_DISPLAY() stats_display_mem(&lwip_stats.mem, "HEAP") -#else -#define MEM_STATS_AVAIL(x, y) -#define MEM_STATS_INC(x) -#define MEM_STATS_INC_USED(x, y) -#define MEM_STATS_DEC_USED(x, y) -#define MEM_STATS_DISPLAY() -#endif - - #if MEMP_STATS -#define MEMP_STATS_DEC(x, i) STATS_DEC(memp[i]->x) -#define MEMP_STATS_DISPLAY(i) stats_display_memp(lwip_stats.memp[i], i) -#define MEMP_STATS_GET(x, i) STATS_GET(memp[i]->x) - #else -#define MEMP_STATS_DEC(x, i) -#define MEMP_STATS_DISPLAY(i) -#define MEMP_STATS_GET(x, i) 0 -#endif - -#if SYS_STATS -#define SYS_STATS_INC(x) STATS_INC(sys.x) -#define SYS_STATS_DEC(x) STATS_DEC(sys.x) -#define SYS_STATS_INC_USED(x) STATS_INC_USED(sys.x, 1, STAT_COUNTER) -#define SYS_STATS_DISPLAY() stats_display_sys(&lwip_stats.sys) -#else -#define SYS_STATS_INC(x) -#define SYS_STATS_DEC(x) -#define SYS_STATS_INC_USED(x) -#define SYS_STATS_DISPLAY() -#endif - -#if IP6_STATS -#define IP6_STATS_INC(x) STATS_INC(x) -#define IP6_STATS_DISPLAY() stats_display_proto(&lwip_stats.ip6, "IPv6") -#else -#define IP6_STATS_INC(x) -#define IP6_STATS_DISPLAY() -#endif - -#if ICMP6_STATS -#define ICMP6_STATS_INC(x) STATS_INC(x) -#define ICMP6_STATS_DISPLAY() stats_display_proto(&lwip_stats.icmp6, "ICMPv6") -#else -#define ICMP6_STATS_INC(x) -#define ICMP6_STATS_DISPLAY() -#endif - -#if IP6_FRAG_STATS -#define IP6_FRAG_STATS_INC(x) STATS_INC(x) -#define IP6_FRAG_STATS_DISPLAY() stats_display_proto(&lwip_stats.ip6_frag, "IPv6 FRAG") -#else -#define IP6_FRAG_STATS_INC(x) -#define IP6_FRAG_STATS_DISPLAY() -#endif - -#if MLD6_STATS -#define MLD6_STATS_INC(x) STATS_INC(x) -#define MLD6_STATS_DISPLAY() stats_display_igmp(&lwip_stats.mld6, "MLDv1") -#else -#define MLD6_STATS_INC(x) -#define MLD6_STATS_DISPLAY() -#endif - -#if ND6_STATS -#define ND6_STATS_INC(x) STATS_INC(x) -#define ND6_STATS_DISPLAY() stats_display_proto(&lwip_stats.nd6, "ND") -#else -#define ND6_STATS_INC(x) -#define ND6_STATS_DISPLAY() -#endif - -#if MIB2_STATS -#define MIB2_STATS_INC(x) STATS_INC(x) -#else -#define MIB2_STATS_INC(x) -#endif - -/* Display of statistics */ -#if LWIP_STATS_DISPLAY -void stats_display(void); -void stats_display_proto(struct stats_proto *proto, const char *name); -void stats_display_igmp(struct stats_igmp *igmp, const char *name); -void stats_display_mem(struct stats_mem *mem, const char *name); -void stats_display_memp(struct stats_mem *mem, int index); -void stats_display_sys(struct stats_sys *sys); -#else /* LWIP_STATS_DISPLAY */ -#define stats_display() -#define stats_display_proto(proto, name) -#define stats_display_igmp(igmp, name) -#define stats_display_mem(mem, name) -#define stats_display_memp(mem, index) -#define stats_display_sys(sys) -#endif /* LWIP_STATS_DISPLAY */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_STATS_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/sys.h b/Middlewares/Third_Party/LwIP/src/include/lwip/sys.h deleted file mode 100644 index 168e465..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/sys.h +++ /dev/null @@ -1,560 +0,0 @@ -/** - * @file - * OS abstraction layer - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - */ - -#ifndef LWIP_HDR_SYS_H -#define LWIP_HDR_SYS_H - -#include "lwip/opt.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#if NO_SYS - -/* For a totally minimal and standalone system, we provide null - definitions of the sys_ functions. */ -typedef u8_t sys_sem_t; -typedef u8_t sys_mutex_t; -typedef u8_t sys_mbox_t; - -#define sys_sem_new(s, c) ERR_OK -#define sys_sem_signal(s) -#define sys_sem_wait(s) -#define sys_arch_sem_wait(s,t) -#define sys_sem_free(s) -#define sys_sem_valid(s) 0 -#define sys_sem_valid_val(s) 0 -#define sys_sem_set_invalid(s) -#define sys_sem_set_invalid_val(s) -#define sys_mutex_new(mu) ERR_OK -#define sys_mutex_lock(mu) -#define sys_mutex_unlock(mu) -#define sys_mutex_free(mu) -#define sys_mutex_valid(mu) 0 -#define sys_mutex_set_invalid(mu) -#define sys_mbox_new(m, s) ERR_OK -#define sys_mbox_fetch(m,d) -#define sys_mbox_tryfetch(m,d) -#define sys_mbox_post(m,d) -#define sys_mbox_trypost(m,d) -#define sys_mbox_free(m) -#define sys_mbox_valid(m) -#define sys_mbox_valid_val(m) -#define sys_mbox_set_invalid(m) -#define sys_mbox_set_invalid_val(m) - -#define sys_thread_new(n,t,a,s,p) - -#define sys_msleep(t) - -#else /* NO_SYS */ - -/** Return code for timeouts from sys_arch_mbox_fetch and sys_arch_sem_wait */ -#define SYS_ARCH_TIMEOUT 0xffffffffUL - -/** sys_mbox_tryfetch() returns SYS_MBOX_EMPTY if appropriate. - * For now we use the same magic value, but we allow this to change in future. - */ -#define SYS_MBOX_EMPTY SYS_ARCH_TIMEOUT - -#include "lwip/err.h" -#include "arch/sys_arch.h" - -/** Function prototype for thread functions */ -typedef void (*lwip_thread_fn)(void *arg); - -/* Function prototypes for functions to be implemented by platform ports - (in sys_arch.c) */ - -/* Mutex functions: */ - -/** Define LWIP_COMPAT_MUTEX if the port has no mutexes and binary semaphores - should be used instead */ -#ifndef LWIP_COMPAT_MUTEX -#define LWIP_COMPAT_MUTEX 0 -#endif - -#if LWIP_COMPAT_MUTEX -/* for old ports that don't have mutexes: define them to binary semaphores */ -#define sys_mutex_t sys_sem_t -#define sys_mutex_new(mutex) sys_sem_new(mutex, 1) -#define sys_mutex_lock(mutex) sys_sem_wait(mutex) -#define sys_mutex_unlock(mutex) sys_sem_signal(mutex) -#define sys_mutex_free(mutex) sys_sem_free(mutex) -#define sys_mutex_valid(mutex) sys_sem_valid(mutex) -#define sys_mutex_set_invalid(mutex) sys_sem_set_invalid(mutex) - -#else /* LWIP_COMPAT_MUTEX */ - -/** - * @ingroup sys_mutex - * Create a new mutex. - * Note that mutexes are expected to not be taken recursively by the lwIP code, - * so both implementation types (recursive or non-recursive) should work. - * The mutex is allocated to the memory that 'mutex' - * points to (which can be both a pointer or the actual OS structure). - * If the mutex has been created, ERR_OK should be returned. Returning any - * other error will provide a hint what went wrong, but except for assertions, - * no real error handling is implemented. - * - * @param mutex pointer to the mutex to create - * @return ERR_OK if successful, another err_t otherwise - */ -err_t sys_mutex_new(sys_mutex_t *mutex); -/** - * @ingroup sys_mutex - * Blocks the thread until the mutex can be grabbed. - * @param mutex the mutex to lock - */ -void sys_mutex_lock(sys_mutex_t *mutex); -/** - * @ingroup sys_mutex - * Releases the mutex previously locked through 'sys_mutex_lock()'. - * @param mutex the mutex to unlock - */ -void sys_mutex_unlock(sys_mutex_t *mutex); -/** - * @ingroup sys_mutex - * Deallocates a mutex. - * @param mutex the mutex to delete - */ -void sys_mutex_free(sys_mutex_t *mutex); -#ifndef sys_mutex_valid -/** - * @ingroup sys_mutex - * Returns 1 if the mutes is valid, 0 if it is not valid. - * When using pointers, a simple way is to check the pointer for != NULL. - * When directly using OS structures, implementing this may be more complex. - * This may also be a define, in which case the function is not prototyped. - */ -int sys_mutex_valid(sys_mutex_t *mutex); -#endif -#ifndef sys_mutex_set_invalid -/** - * @ingroup sys_mutex - * Invalidate a mutex so that sys_mutex_valid() returns 0. - * ATTENTION: This does NOT mean that the mutex shall be deallocated: - * sys_mutex_free() is always called before calling this function! - * This may also be a define, in which case the function is not prototyped. - */ -void sys_mutex_set_invalid(sys_mutex_t *mutex); -#endif -#endif /* LWIP_COMPAT_MUTEX */ - -/* Semaphore functions: */ - -/** - * @ingroup sys_sem - * Create a new semaphore - * Creates a new semaphore. The semaphore is allocated to the memory that 'sem' - * points to (which can be both a pointer or the actual OS structure). - * The "count" argument specifies the initial state of the semaphore (which is - * either 0 or 1). - * If the semaphore has been created, ERR_OK should be returned. Returning any - * other error will provide a hint what went wrong, but except for assertions, - * no real error handling is implemented. - * - * @param sem pointer to the semaphore to create - * @param count initial count of the semaphore - * @return ERR_OK if successful, another err_t otherwise - */ -err_t sys_sem_new(sys_sem_t *sem, u8_t count); -/** - * @ingroup sys_sem - * Signals a semaphore - * @param sem the semaphore to signal - */ -void sys_sem_signal(sys_sem_t *sem); -/** - * @ingroup sys_sem - * Blocks the thread while waiting for the semaphore to be signaled. If the - * "timeout" argument is non-zero, the thread should only be blocked for the - * specified time (measured in milliseconds). If the "timeout" argument is zero, - * the thread should be blocked until the semaphore is signalled. - * - * The return value is SYS_ARCH_TIMEOUT if the semaphore wasn't signaled within - * the specified time or any other value if it was signaled (with or without - * waiting). - * Notice that lwIP implements a function with a similar name, - * sys_sem_wait(), that uses the sys_arch_sem_wait() function. - * - * @param sem the semaphore to wait for - * @param timeout timeout in milliseconds to wait (0 = wait forever) - * @return SYS_ARCH_TIMEOUT on timeout, any other value on success - */ -u32_t sys_arch_sem_wait(sys_sem_t *sem, u32_t timeout); -/** - * @ingroup sys_sem - * Deallocates a semaphore. - * @param sem semaphore to delete - */ -void sys_sem_free(sys_sem_t *sem); -/** Wait for a semaphore - forever/no timeout */ -#define sys_sem_wait(sem) sys_arch_sem_wait(sem, 0) -#ifndef sys_sem_valid -/** - * @ingroup sys_sem - * Returns 1 if the semaphore is valid, 0 if it is not valid. - * When using pointers, a simple way is to check the pointer for != NULL. - * When directly using OS structures, implementing this may be more complex. - * This may also be a define, in which case the function is not prototyped. - */ -int sys_sem_valid(sys_sem_t *sem); -#endif -#ifndef sys_sem_set_invalid -/** - * @ingroup sys_sem - * Invalidate a semaphore so that sys_sem_valid() returns 0. - * ATTENTION: This does NOT mean that the semaphore shall be deallocated: - * sys_sem_free() is always called before calling this function! - * This may also be a define, in which case the function is not prototyped. - */ -void sys_sem_set_invalid(sys_sem_t *sem); -#endif -#ifndef sys_sem_valid_val -/** - * Same as sys_sem_valid() but taking a value, not a pointer - */ -#define sys_sem_valid_val(sem) sys_sem_valid(&(sem)) -#endif -#ifndef sys_sem_set_invalid_val -/** - * Same as sys_sem_set_invalid() but taking a value, not a pointer - */ -#define sys_sem_set_invalid_val(sem) sys_sem_set_invalid(&(sem)) -#endif - -#ifndef sys_msleep -/** - * @ingroup sys_misc - * Sleep for specified number of ms - */ -void sys_msleep(u32_t ms); /* only has a (close to) 1 ms resolution. */ -#endif - -/* Mailbox functions. */ - -/** - * @ingroup sys_mbox - * Creates an empty mailbox for maximum "size" elements. Elements stored - * in mailboxes are pointers. You have to define macros "_MBOX_SIZE" - * in your lwipopts.h, or ignore this parameter in your implementation - * and use a default size. - * If the mailbox has been created, ERR_OK should be returned. Returning any - * other error will provide a hint what went wrong, but except for assertions, - * no real error handling is implemented. - * - * @param mbox pointer to the mbox to create - * @param size (minimum) number of messages in this mbox - * @return ERR_OK if successful, another err_t otherwise - */ -err_t sys_mbox_new(sys_mbox_t *mbox, int size); -/** - * @ingroup sys_mbox - * Post a message to an mbox - may not fail - * -> blocks if full, only to be used from tasks NOT from ISR! - * - * @param mbox mbox to posts the message - * @param msg message to post (ATTENTION: can be NULL) - */ -void sys_mbox_post(sys_mbox_t *mbox, void *msg); -/** - * @ingroup sys_mbox - * Try to post a message to an mbox - may fail if full. - * Can be used from ISR (if the sys arch layer allows this). - * Returns ERR_MEM if it is full, else, ERR_OK if the "msg" is posted. - * - * @param mbox mbox to posts the message - * @param msg message to post (ATTENTION: can be NULL) - */ -err_t sys_mbox_trypost(sys_mbox_t *mbox, void *msg); -/** - * @ingroup sys_mbox - * Try to post a message to an mbox - may fail if full. - * To be be used from ISR. - * Returns ERR_MEM if it is full, else, ERR_OK if the "msg" is posted. - * - * @param mbox mbox to posts the message - * @param msg message to post (ATTENTION: can be NULL) - */ -err_t sys_mbox_trypost_fromisr(sys_mbox_t *mbox, void *msg); -/** - * @ingroup sys_mbox - * Blocks the thread until a message arrives in the mailbox, but does - * not block the thread longer than "timeout" milliseconds (similar to - * the sys_arch_sem_wait() function). If "timeout" is 0, the thread should - * be blocked until a message arrives. The "msg" argument is a result - * parameter that is set by the function (i.e., by doing "*msg = - * ptr"). The "msg" parameter maybe NULL to indicate that the message - * should be dropped. - * The return values are the same as for the sys_arch_sem_wait() function: - * SYS_ARCH_TIMEOUT if there was a timeout, any other value if a messages - * is received. - * - * Note that a function with a similar name, sys_mbox_fetch(), is - * implemented by lwIP. - * - * @param mbox mbox to get a message from - * @param msg pointer where the message is stored - * @param timeout maximum time (in milliseconds) to wait for a message (0 = wait forever) - * @return SYS_ARCH_TIMEOUT on timeout, any other value if a message has been received - */ -u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout); -/* Allow port to override with a macro, e.g. special timeout for sys_arch_mbox_fetch() */ -#ifndef sys_arch_mbox_tryfetch -/** - * @ingroup sys_mbox - * This is similar to sys_arch_mbox_fetch, however if a message is not - * present in the mailbox, it immediately returns with the code - * SYS_MBOX_EMPTY. On success 0 is returned. - * To allow for efficient implementations, this can be defined as a - * function-like macro in sys_arch.h instead of a normal function. For - * example, a naive implementation could be: - * \#define sys_arch_mbox_tryfetch(mbox,msg) sys_arch_mbox_fetch(mbox,msg,1) - * although this would introduce unnecessary delays. - * - * @param mbox mbox to get a message from - * @param msg pointer where the message is stored - * @return 0 (milliseconds) if a message has been received - * or SYS_MBOX_EMPTY if the mailbox is empty - */ -u32_t sys_arch_mbox_tryfetch(sys_mbox_t *mbox, void **msg); -#endif -/** - * For now, we map straight to sys_arch implementation. - */ -#define sys_mbox_tryfetch(mbox, msg) sys_arch_mbox_tryfetch(mbox, msg) -/** - * @ingroup sys_mbox - * Deallocates a mailbox. If there are messages still present in the - * mailbox when the mailbox is deallocated, it is an indication of a - * programming error in lwIP and the developer should be notified. - * - * @param mbox mbox to delete - */ -void sys_mbox_free(sys_mbox_t *mbox); -#define sys_mbox_fetch(mbox, msg) sys_arch_mbox_fetch(mbox, msg, 0) -#ifndef sys_mbox_valid -/** - * @ingroup sys_mbox - * Returns 1 if the mailbox is valid, 0 if it is not valid. - * When using pointers, a simple way is to check the pointer for != NULL. - * When directly using OS structures, implementing this may be more complex. - * This may also be a define, in which case the function is not prototyped. - */ -int sys_mbox_valid(sys_mbox_t *mbox); -#endif -#ifndef sys_mbox_set_invalid -/** - * @ingroup sys_mbox - * Invalidate a mailbox so that sys_mbox_valid() returns 0. - * ATTENTION: This does NOT mean that the mailbox shall be deallocated: - * sys_mbox_free() is always called before calling this function! - * This may also be a define, in which case the function is not prototyped. - */ -void sys_mbox_set_invalid(sys_mbox_t *mbox); -#endif -#ifndef sys_mbox_valid_val -/** - * Same as sys_mbox_valid() but taking a value, not a pointer - */ -#define sys_mbox_valid_val(mbox) sys_mbox_valid(&(mbox)) -#endif -#ifndef sys_mbox_set_invalid_val -/** - * Same as sys_mbox_set_invalid() but taking a value, not a pointer - */ -#define sys_mbox_set_invalid_val(mbox) sys_mbox_set_invalid(&(mbox)) -#endif - - -/** - * @ingroup sys_misc - * The only thread function: - * Starts a new thread named "name" with priority "prio" that will begin its - * execution in the function "thread()". The "arg" argument will be passed as an - * argument to the thread() function. The stack size to used for this thread is - * the "stacksize" parameter. The id of the new thread is returned. Both the id - * and the priority are system dependent. - * ATTENTION: although this function returns a value, it MUST NOT FAIL (ports have to assert this!) - * - * @param name human-readable name for the thread (used for debugging purposes) - * @param thread thread-function - * @param arg parameter passed to 'thread' - * @param stacksize stack size in bytes for the new thread (may be ignored by ports) - * @param prio priority of the new thread (may be ignored by ports) */ -sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread, void *arg, int stacksize, int prio); - -#endif /* NO_SYS */ - -/** - * @ingroup sys_misc - * sys_init() must be called before anything else. - * Initialize the sys_arch layer. - */ -void sys_init(void); - -#ifndef sys_jiffies -/** - * Ticks/jiffies since power up. - */ -u32_t sys_jiffies(void); -#endif - -/** - * @ingroup sys_time - * Returns the current time in milliseconds, - * may be the same as sys_jiffies or at least based on it. - * Don't care for wraparound, this is only used for time diffs. - * Not implementing this function means you cannot use some modules (e.g. TCP - * timestamps, internal timeouts for NO_SYS==1). - */ -u32_t sys_now(void); - -/* Critical Region Protection */ -/* These functions must be implemented in the sys_arch.c file. - In some implementations they can provide a more light-weight protection - mechanism than using semaphores. Otherwise semaphores can be used for - implementation */ -#ifndef SYS_ARCH_PROTECT -/** SYS_LIGHTWEIGHT_PROT - * define SYS_LIGHTWEIGHT_PROT in lwipopts.h if you want inter-task protection - * for certain critical regions during buffer allocation, deallocation and memory - * allocation and deallocation. - */ -#if SYS_LIGHTWEIGHT_PROT - -/** - * @ingroup sys_prot - * SYS_ARCH_DECL_PROTECT - * declare a protection variable. This macro will default to defining a variable of - * type sys_prot_t. If a particular port needs a different implementation, then - * this macro may be defined in sys_arch.h. - */ -#define SYS_ARCH_DECL_PROTECT(lev) sys_prot_t lev -/** - * @ingroup sys_prot - * SYS_ARCH_PROTECT - * Perform a "fast" protect. This could be implemented by - * disabling interrupts for an embedded system or by using a semaphore or - * mutex. The implementation should allow calling SYS_ARCH_PROTECT when - * already protected. The old protection level is returned in the variable - * "lev". This macro will default to calling the sys_arch_protect() function - * which should be implemented in sys_arch.c. If a particular port needs a - * different implementation, then this macro may be defined in sys_arch.h - */ -#define SYS_ARCH_PROTECT(lev) lev = sys_arch_protect() -/** - * @ingroup sys_prot - * SYS_ARCH_UNPROTECT - * Perform a "fast" set of the protection level to "lev". This could be - * implemented by setting the interrupt level to "lev" within the MACRO or by - * using a semaphore or mutex. This macro will default to calling the - * sys_arch_unprotect() function which should be implemented in - * sys_arch.c. If a particular port needs a different implementation, then - * this macro may be defined in sys_arch.h - */ -#define SYS_ARCH_UNPROTECT(lev) sys_arch_unprotect(lev) -sys_prot_t sys_arch_protect(void); -void sys_arch_unprotect(sys_prot_t pval); - -#else - -#define SYS_ARCH_DECL_PROTECT(lev) -#define SYS_ARCH_PROTECT(lev) -#define SYS_ARCH_UNPROTECT(lev) - -#endif /* SYS_LIGHTWEIGHT_PROT */ - -#endif /* SYS_ARCH_PROTECT */ - -/* - * Macros to set/get and increase/decrease variables in a thread-safe way. - * Use these for accessing variable that are used from more than one thread. - */ - -#ifndef SYS_ARCH_INC -#define SYS_ARCH_INC(var, val) do { \ - SYS_ARCH_DECL_PROTECT(old_level); \ - SYS_ARCH_PROTECT(old_level); \ - var += val; \ - SYS_ARCH_UNPROTECT(old_level); \ - } while(0) -#endif /* SYS_ARCH_INC */ - -#ifndef SYS_ARCH_DEC -#define SYS_ARCH_DEC(var, val) do { \ - SYS_ARCH_DECL_PROTECT(old_level); \ - SYS_ARCH_PROTECT(old_level); \ - var -= val; \ - SYS_ARCH_UNPROTECT(old_level); \ - } while(0) -#endif /* SYS_ARCH_DEC */ - -#ifndef SYS_ARCH_GET -#define SYS_ARCH_GET(var, ret) do { \ - SYS_ARCH_DECL_PROTECT(old_level); \ - SYS_ARCH_PROTECT(old_level); \ - ret = var; \ - SYS_ARCH_UNPROTECT(old_level); \ - } while(0) -#endif /* SYS_ARCH_GET */ - -#ifndef SYS_ARCH_SET -#define SYS_ARCH_SET(var, val) do { \ - SYS_ARCH_DECL_PROTECT(old_level); \ - SYS_ARCH_PROTECT(old_level); \ - var = val; \ - SYS_ARCH_UNPROTECT(old_level); \ - } while(0) -#endif /* SYS_ARCH_SET */ - -#ifndef SYS_ARCH_LOCKED -#define SYS_ARCH_LOCKED(code) do { \ - SYS_ARCH_DECL_PROTECT(old_level); \ - SYS_ARCH_PROTECT(old_level); \ - code; \ - SYS_ARCH_UNPROTECT(old_level); \ - } while(0) -#endif /* SYS_ARCH_LOCKED */ - - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_SYS_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h b/Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h deleted file mode 100644 index daf7599..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/tcp.h +++ /dev/null @@ -1,500 +0,0 @@ -/** - * @file - * TCP API (to be used from TCPIP thread)\n - * See also @ref tcp_raw - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_TCP_H -#define LWIP_HDR_TCP_H - -#include "lwip/opt.h" - -#if LWIP_TCP /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/tcpbase.h" -#include "lwip/mem.h" -#include "lwip/pbuf.h" -#include "lwip/ip.h" -#include "lwip/icmp.h" -#include "lwip/err.h" -#include "lwip/ip6.h" -#include "lwip/ip6_addr.h" - -#ifdef __cplusplus -extern "C" { -#endif - -struct tcp_pcb; -struct tcp_pcb_listen; - -/** Function prototype for tcp accept callback functions. Called when a new - * connection can be accepted on a listening pcb. - * - * @param arg Additional argument to pass to the callback function (@see tcp_arg()) - * @param newpcb The new connection pcb - * @param err An error code if there has been an error accepting. - * Only return ERR_ABRT if you have called tcp_abort from within the - * callback function! - */ -typedef err_t (*tcp_accept_fn)(void *arg, struct tcp_pcb *newpcb, err_t err); - -/** Function prototype for tcp receive callback functions. Called when data has - * been received. - * - * @param arg Additional argument to pass to the callback function (@see tcp_arg()) - * @param tpcb The connection pcb which received data - * @param p The received data (or NULL when the connection has been closed!) - * @param err An error code if there has been an error receiving - * Only return ERR_ABRT if you have called tcp_abort from within the - * callback function! - */ -typedef err_t (*tcp_recv_fn)(void *arg, struct tcp_pcb *tpcb, - struct pbuf *p, err_t err); - -/** Function prototype for tcp sent callback functions. Called when sent data has - * been acknowledged by the remote side. Use it to free corresponding resources. - * This also means that the pcb has now space available to send new data. - * - * @param arg Additional argument to pass to the callback function (@see tcp_arg()) - * @param tpcb The connection pcb for which data has been acknowledged - * @param len The amount of bytes acknowledged - * @return ERR_OK: try to send some data by calling tcp_output - * Only return ERR_ABRT if you have called tcp_abort from within the - * callback function! - */ -typedef err_t (*tcp_sent_fn)(void *arg, struct tcp_pcb *tpcb, - u16_t len); - -/** Function prototype for tcp poll callback functions. Called periodically as - * specified by @see tcp_poll. - * - * @param arg Additional argument to pass to the callback function (@see tcp_arg()) - * @param tpcb tcp pcb - * @return ERR_OK: try to send some data by calling tcp_output - * Only return ERR_ABRT if you have called tcp_abort from within the - * callback function! - */ -typedef err_t (*tcp_poll_fn)(void *arg, struct tcp_pcb *tpcb); - -/** Function prototype for tcp error callback functions. Called when the pcb - * receives a RST or is unexpectedly closed for any other reason. - * - * @note The corresponding pcb is already freed when this callback is called! - * - * @param arg Additional argument to pass to the callback function (@see tcp_arg()) - * @param err Error code to indicate why the pcb has been closed - * ERR_ABRT: aborted through tcp_abort or by a TCP timer - * ERR_RST: the connection was reset by the remote host - */ -typedef void (*tcp_err_fn)(void *arg, err_t err); - -/** Function prototype for tcp connected callback functions. Called when a pcb - * is connected to the remote side after initiating a connection attempt by - * calling tcp_connect(). - * - * @param arg Additional argument to pass to the callback function (@see tcp_arg()) - * @param tpcb The connection pcb which is connected - * @param err An unused error code, always ERR_OK currently ;-) @todo! - * Only return ERR_ABRT if you have called tcp_abort from within the - * callback function! - * - * @note When a connection attempt fails, the error callback is currently called! - */ -typedef err_t (*tcp_connected_fn)(void *arg, struct tcp_pcb *tpcb, err_t err); - -#if LWIP_WND_SCALE -#define RCV_WND_SCALE(pcb, wnd) (((wnd) >> (pcb)->rcv_scale)) -#define SND_WND_SCALE(pcb, wnd) (((wnd) << (pcb)->snd_scale)) -#define TCPWND16(x) ((u16_t)LWIP_MIN((x), 0xFFFF)) -#define TCP_WND_MAX(pcb) ((tcpwnd_size_t)(((pcb)->flags & TF_WND_SCALE) ? TCP_WND : TCPWND16(TCP_WND))) -#else -#define RCV_WND_SCALE(pcb, wnd) (wnd) -#define SND_WND_SCALE(pcb, wnd) (wnd) -#define TCPWND16(x) (x) -#define TCP_WND_MAX(pcb) TCP_WND -#endif -/* Increments a tcpwnd_size_t and holds at max value rather than rollover */ -#define TCP_WND_INC(wnd, inc) do { \ - if ((tcpwnd_size_t)(wnd + inc) >= wnd) { \ - wnd = (tcpwnd_size_t)(wnd + inc); \ - } else { \ - wnd = (tcpwnd_size_t)-1; \ - } \ - } while(0) - -#if LWIP_TCP_SACK_OUT -/** SACK ranges to include in ACK packets. - * SACK entry is invalid if left==right. */ -struct tcp_sack_range { - /** Left edge of the SACK: the first acknowledged sequence number. */ - u32_t left; - /** Right edge of the SACK: the last acknowledged sequence number +1 (so first NOT acknowledged). */ - u32_t right; -}; -#endif /* LWIP_TCP_SACK_OUT */ - -/** Function prototype for deallocation of arguments. Called *just before* the - * pcb is freed, so don't expect to be able to do anything with this pcb! - * - * @param id ext arg id (allocated via @ref tcp_ext_arg_alloc_id) - * @param data pointer to the data (set via @ref tcp_ext_arg_set before) - */ -typedef void (*tcp_extarg_callback_pcb_destroyed_fn)(u8_t id, void *data); - -/** Function prototype to transition arguments from a listening pcb to an accepted pcb - * - * @param id ext arg id (allocated via @ref tcp_ext_arg_alloc_id) - * @param lpcb the listening pcb accepting a connection - * @param cpcb the newly allocated connection pcb - * @return ERR_OK if OK, any error if connection should be dropped - */ -typedef err_t (*tcp_extarg_callback_passive_open_fn)(u8_t id, struct tcp_pcb_listen *lpcb, struct tcp_pcb *cpcb); - -/** A table of callback functions that is invoked for ext arguments */ -struct tcp_ext_arg_callbacks { - /** @ref tcp_extarg_callback_pcb_destroyed_fn */ - tcp_extarg_callback_pcb_destroyed_fn destroy; - /** @ref tcp_extarg_callback_passive_open_fn */ - tcp_extarg_callback_passive_open_fn passive_open; -}; - -#define LWIP_TCP_PCB_NUM_EXT_ARG_ID_INVALID 0xFF - -#if LWIP_TCP_PCB_NUM_EXT_ARGS -/* This is the structure for ext args in tcp pcbs (used as array) */ -struct tcp_pcb_ext_args { - const struct tcp_ext_arg_callbacks *callbacks; - void *data; -}; -/* This is a helper define to prevent zero size arrays if disabled */ -#define TCP_PCB_EXTARGS struct tcp_pcb_ext_args ext_args[LWIP_TCP_PCB_NUM_EXT_ARGS]; -#else -#define TCP_PCB_EXTARGS -#endif - -typedef u16_t tcpflags_t; -#define TCP_ALLFLAGS 0xffffU - -/** - * members common to struct tcp_pcb and struct tcp_listen_pcb - */ -#define TCP_PCB_COMMON(type) \ - type *next; /* for the linked list */ \ - void *callback_arg; \ - TCP_PCB_EXTARGS \ - enum tcp_state state; /* TCP state */ \ - u8_t prio; \ - /* ports are in host byte order */ \ - u16_t local_port - - -/** the TCP protocol control block for listening pcbs */ -struct tcp_pcb_listen { -/** Common members of all PCB types */ - IP_PCB; -/** Protocol specific PCB members */ - TCP_PCB_COMMON(struct tcp_pcb_listen); - -#if LWIP_CALLBACK_API - /* Function to call when a listener has been connected. */ - tcp_accept_fn accept; -#endif /* LWIP_CALLBACK_API */ - -#if TCP_LISTEN_BACKLOG - u8_t backlog; - u8_t accepts_pending; -#endif /* TCP_LISTEN_BACKLOG */ -}; - - -/** the TCP protocol control block */ -struct tcp_pcb { -/** common PCB members */ - IP_PCB; -/** protocol specific PCB members */ - TCP_PCB_COMMON(struct tcp_pcb); - - /* ports are in host byte order */ - u16_t remote_port; - - tcpflags_t flags; -#define TF_ACK_DELAY 0x01U /* Delayed ACK. */ -#define TF_ACK_NOW 0x02U /* Immediate ACK. */ -#define TF_INFR 0x04U /* In fast recovery. */ -#define TF_CLOSEPEND 0x08U /* If this is set, tcp_close failed to enqueue the FIN (retried in tcp_tmr) */ -#define TF_RXCLOSED 0x10U /* rx closed by tcp_shutdown */ -#define TF_FIN 0x20U /* Connection was closed locally (FIN segment enqueued). */ -#define TF_NODELAY 0x40U /* Disable Nagle algorithm */ -#define TF_NAGLEMEMERR 0x80U /* nagle enabled, memerr, try to output to prevent delayed ACK to happen */ -#if LWIP_WND_SCALE -#define TF_WND_SCALE 0x0100U /* Window Scale option enabled */ -#endif -#if TCP_LISTEN_BACKLOG -#define TF_BACKLOGPEND 0x0200U /* If this is set, a connection pcb has increased the backlog on its listener */ -#endif -#if LWIP_TCP_TIMESTAMPS -#define TF_TIMESTAMP 0x0400U /* Timestamp option enabled */ -#endif -#define TF_RTO 0x0800U /* RTO timer has fired, in-flight data moved to unsent and being retransmitted */ -#if LWIP_TCP_SACK_OUT -#define TF_SACK 0x1000U /* Selective ACKs enabled */ -#endif - - /* the rest of the fields are in host byte order - as we have to do some math with them */ - - /* Timers */ - u8_t polltmr, pollinterval; - u8_t last_timer; - u32_t tmr; - - /* receiver variables */ - u32_t rcv_nxt; /* next seqno expected */ - tcpwnd_size_t rcv_wnd; /* receiver window available */ - tcpwnd_size_t rcv_ann_wnd; /* receiver window to announce */ - u32_t rcv_ann_right_edge; /* announced right edge of window */ - -#if LWIP_TCP_SACK_OUT - /* SACK ranges to include in ACK packets (entry is invalid if left==right) */ - struct tcp_sack_range rcv_sacks[LWIP_TCP_MAX_SACK_NUM]; -#define LWIP_TCP_SACK_VALID(pcb, idx) ((pcb)->rcv_sacks[idx].left != (pcb)->rcv_sacks[idx].right) -#endif /* LWIP_TCP_SACK_OUT */ - - /* Retransmission timer. */ - s16_t rtime; - - u16_t mss; /* maximum segment size */ - - /* RTT (round trip time) estimation variables */ - u32_t rttest; /* RTT estimate in 500ms ticks */ - u32_t rtseq; /* sequence number being timed */ - s16_t sa, sv; /* @see "Congestion Avoidance and Control" by Van Jacobson and Karels */ - - s16_t rto; /* retransmission time-out (in ticks of TCP_SLOW_INTERVAL) */ - u8_t nrtx; /* number of retransmissions */ - - /* fast retransmit/recovery */ - u8_t dupacks; - u32_t lastack; /* Highest acknowledged seqno. */ - - /* congestion avoidance/control variables */ - tcpwnd_size_t cwnd; - tcpwnd_size_t ssthresh; - - /* first byte following last rto byte */ - u32_t rto_end; - - /* sender variables */ - u32_t snd_nxt; /* next new seqno to be sent */ - u32_t snd_wl1, snd_wl2; /* Sequence and acknowledgement numbers of last - window update. */ - u32_t snd_lbb; /* Sequence number of next byte to be buffered. */ - tcpwnd_size_t snd_wnd; /* sender window */ - tcpwnd_size_t snd_wnd_max; /* the maximum sender window announced by the remote host */ - - tcpwnd_size_t snd_buf; /* Available buffer space for sending (in bytes). */ -#define TCP_SNDQUEUELEN_OVERFLOW (0xffffU-3) - u16_t snd_queuelen; /* Number of pbufs currently in the send buffer. */ - -#if TCP_OVERSIZE - /* Extra bytes available at the end of the last pbuf in unsent. */ - u16_t unsent_oversize; -#endif /* TCP_OVERSIZE */ - - tcpwnd_size_t bytes_acked; - - /* These are ordered by sequence number: */ - struct tcp_seg *unsent; /* Unsent (queued) segments. */ - struct tcp_seg *unacked; /* Sent but unacknowledged segments. */ -#if TCP_QUEUE_OOSEQ - struct tcp_seg *ooseq; /* Received out of sequence segments. */ -#endif /* TCP_QUEUE_OOSEQ */ - - struct pbuf *refused_data; /* Data previously received but not yet taken by upper layer */ - -#if LWIP_CALLBACK_API || TCP_LISTEN_BACKLOG - struct tcp_pcb_listen* listener; -#endif /* LWIP_CALLBACK_API || TCP_LISTEN_BACKLOG */ - -#if LWIP_CALLBACK_API - /* Function to be called when more send buffer space is available. */ - tcp_sent_fn sent; - /* Function to be called when (in-sequence) data has arrived. */ - tcp_recv_fn recv; - /* Function to be called when a connection has been set up. */ - tcp_connected_fn connected; - /* Function which is called periodically. */ - tcp_poll_fn poll; - /* Function to be called whenever a fatal error occurs. */ - tcp_err_fn errf; -#endif /* LWIP_CALLBACK_API */ - -#if LWIP_TCP_TIMESTAMPS - u32_t ts_lastacksent; - u32_t ts_recent; -#endif /* LWIP_TCP_TIMESTAMPS */ - - /* idle time before KEEPALIVE is sent */ - u32_t keep_idle; -#if LWIP_TCP_KEEPALIVE - u32_t keep_intvl; - u32_t keep_cnt; -#endif /* LWIP_TCP_KEEPALIVE */ - - /* Persist timer counter */ - u8_t persist_cnt; - /* Persist timer back-off */ - u8_t persist_backoff; - /* Number of persist probes */ - u8_t persist_probe; - - /* KEEPALIVE counter */ - u8_t keep_cnt_sent; - -#if LWIP_WND_SCALE - u8_t snd_scale; - u8_t rcv_scale; -#endif -}; - -#if LWIP_EVENT_API - -enum lwip_event { - LWIP_EVENT_ACCEPT, - LWIP_EVENT_SENT, - LWIP_EVENT_RECV, - LWIP_EVENT_CONNECTED, - LWIP_EVENT_POLL, - LWIP_EVENT_ERR -}; - -err_t lwip_tcp_event(void *arg, struct tcp_pcb *pcb, - enum lwip_event, - struct pbuf *p, - u16_t size, - err_t err); - -#endif /* LWIP_EVENT_API */ - -/* Application program's interface: */ -struct tcp_pcb * tcp_new (void); -struct tcp_pcb * tcp_new_ip_type (u8_t type); - -void tcp_arg (struct tcp_pcb *pcb, void *arg); -#if LWIP_CALLBACK_API -void tcp_recv (struct tcp_pcb *pcb, tcp_recv_fn recv); -void tcp_sent (struct tcp_pcb *pcb, tcp_sent_fn sent); -void tcp_err (struct tcp_pcb *pcb, tcp_err_fn err); -void tcp_accept (struct tcp_pcb *pcb, tcp_accept_fn accept); -#endif /* LWIP_CALLBACK_API */ -void tcp_poll (struct tcp_pcb *pcb, tcp_poll_fn poll, u8_t interval); - -#define tcp_set_flags(pcb, set_flags) do { (pcb)->flags = (tcpflags_t)((pcb)->flags | (set_flags)); } while(0) -#define tcp_clear_flags(pcb, clr_flags) do { (pcb)->flags = (tcpflags_t)((pcb)->flags & (tcpflags_t)(~(clr_flags) & TCP_ALLFLAGS)); } while(0) -#define tcp_is_flag_set(pcb, flag) (((pcb)->flags & (flag)) != 0) - -#if LWIP_TCP_TIMESTAMPS -#define tcp_mss(pcb) (((pcb)->flags & TF_TIMESTAMP) ? ((pcb)->mss - 12) : (pcb)->mss) -#else /* LWIP_TCP_TIMESTAMPS */ -/** @ingroup tcp_raw */ -#define tcp_mss(pcb) ((pcb)->mss) -#endif /* LWIP_TCP_TIMESTAMPS */ -/** @ingroup tcp_raw */ -#define tcp_sndbuf(pcb) (TCPWND16((pcb)->snd_buf)) -/** @ingroup tcp_raw */ -#define tcp_sndqueuelen(pcb) ((pcb)->snd_queuelen) -/** @ingroup tcp_raw */ -#define tcp_nagle_disable(pcb) tcp_set_flags(pcb, TF_NODELAY) -/** @ingroup tcp_raw */ -#define tcp_nagle_enable(pcb) tcp_clear_flags(pcb, TF_NODELAY) -/** @ingroup tcp_raw */ -#define tcp_nagle_disabled(pcb) tcp_is_flag_set(pcb, TF_NODELAY) - -#if TCP_LISTEN_BACKLOG -#define tcp_backlog_set(pcb, new_backlog) do { \ - LWIP_ASSERT("pcb->state == LISTEN (called for wrong pcb?)", (pcb)->state == LISTEN); \ - ((struct tcp_pcb_listen *)(pcb))->backlog = ((new_backlog) ? (new_backlog) : 1); } while(0) -void tcp_backlog_delayed(struct tcp_pcb* pcb); -void tcp_backlog_accepted(struct tcp_pcb* pcb); -#else /* TCP_LISTEN_BACKLOG */ -#define tcp_backlog_set(pcb, new_backlog) -#define tcp_backlog_delayed(pcb) -#define tcp_backlog_accepted(pcb) -#endif /* TCP_LISTEN_BACKLOG */ -#define tcp_accepted(pcb) do { LWIP_UNUSED_ARG(pcb); } while(0) /* compatibility define, not needed any more */ - -void tcp_recved (struct tcp_pcb *pcb, u16_t len); -err_t tcp_bind (struct tcp_pcb *pcb, const ip_addr_t *ipaddr, - u16_t port); -void tcp_bind_netif(struct tcp_pcb *pcb, const struct netif *netif); -err_t tcp_connect (struct tcp_pcb *pcb, const ip_addr_t *ipaddr, - u16_t port, tcp_connected_fn connected); - -struct tcp_pcb * tcp_listen_with_backlog_and_err(struct tcp_pcb *pcb, u8_t backlog, err_t *err); -struct tcp_pcb * tcp_listen_with_backlog(struct tcp_pcb *pcb, u8_t backlog); -/** @ingroup tcp_raw */ -#define tcp_listen(pcb) tcp_listen_with_backlog(pcb, TCP_DEFAULT_LISTEN_BACKLOG) - -void tcp_abort (struct tcp_pcb *pcb); -err_t tcp_close (struct tcp_pcb *pcb); -err_t tcp_shutdown(struct tcp_pcb *pcb, int shut_rx, int shut_tx); - -err_t tcp_write (struct tcp_pcb *pcb, const void *dataptr, u16_t len, - u8_t apiflags); - -void tcp_setprio (struct tcp_pcb *pcb, u8_t prio); - -err_t tcp_output (struct tcp_pcb *pcb); - -err_t tcp_tcp_get_tcp_addrinfo(struct tcp_pcb *pcb, int local, ip_addr_t *addr, u16_t *port); - -#define tcp_dbg_get_tcp_state(pcb) ((pcb)->state) - -/* for compatibility with older implementation */ -#define tcp_new_ip6() tcp_new_ip_type(IPADDR_TYPE_V6) - -#if LWIP_TCP_PCB_NUM_EXT_ARGS -u8_t tcp_ext_arg_alloc_id(void); -void tcp_ext_arg_set_callbacks(struct tcp_pcb *pcb, uint8_t id, const struct tcp_ext_arg_callbacks * const callbacks); -void tcp_ext_arg_set(struct tcp_pcb *pcb, uint8_t id, void *arg); -void *tcp_ext_arg_get(const struct tcp_pcb *pcb, uint8_t id); -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_TCP */ - -#endif /* LWIP_HDR_TCP_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h b/Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h deleted file mode 100644 index 0023074..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/tcpbase.h +++ /dev/null @@ -1,88 +0,0 @@ -/** - * @file - * Base TCP API definitions shared by TCP and ALTCP\n - * See also @ref tcp_raw - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_TCPBASE_H -#define LWIP_HDR_TCPBASE_H - -#include "lwip/opt.h" - -#if LWIP_TCP /* don't build if not configured for use in lwipopts.h */ - -#ifdef __cplusplus -extern "C" { -#endif - - -#if LWIP_WND_SCALE -typedef u32_t tcpwnd_size_t; -#else -typedef u16_t tcpwnd_size_t; -#endif - -enum tcp_state { - CLOSED = 0, - LISTEN = 1, - SYN_SENT = 2, - SYN_RCVD = 3, - ESTABLISHED = 4, - FIN_WAIT_1 = 5, - FIN_WAIT_2 = 6, - CLOSE_WAIT = 7, - CLOSING = 8, - LAST_ACK = 9, - TIME_WAIT = 10 -}; -/* ATTENTION: this depends on state number ordering! */ -#define TCP_STATE_IS_CLOSING(state) ((state) >= FIN_WAIT_1) - -/* Flags for "apiflags" parameter in tcp_write */ -#define TCP_WRITE_FLAG_COPY 0x01 -#define TCP_WRITE_FLAG_MORE 0x02 - -#define TCP_PRIO_MIN 1 -#define TCP_PRIO_NORMAL 64 -#define TCP_PRIO_MAX 127 - -const char* tcp_debug_state_str(enum tcp_state s); - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_TCP */ - -#endif /* LWIP_HDR_TCPBASE_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/tcpip.h b/Middlewares/Third_Party/LwIP/src/include/lwip/tcpip.h deleted file mode 100644 index 0b8880a..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/tcpip.h +++ /dev/null @@ -1,113 +0,0 @@ -/** - * @file - * Functions to sync with TCPIP thread - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_TCPIP_H -#define LWIP_HDR_TCPIP_H - -#include "lwip/opt.h" - -#if !NO_SYS /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/err.h" -#include "lwip/timeouts.h" -#include "lwip/netif.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#if LWIP_TCPIP_CORE_LOCKING -/** The global semaphore to lock the stack. */ -extern sys_mutex_t lock_tcpip_core; -#if !defined LOCK_TCPIP_CORE || defined __DOXYGEN__ -/** Lock lwIP core mutex (needs @ref LWIP_TCPIP_CORE_LOCKING 1) */ -#define LOCK_TCPIP_CORE() sys_mutex_lock(&lock_tcpip_core) -/** Unlock lwIP core mutex (needs @ref LWIP_TCPIP_CORE_LOCKING 1) */ -#define UNLOCK_TCPIP_CORE() sys_mutex_unlock(&lock_tcpip_core) -#endif /* LOCK_TCPIP_CORE */ -#else /* LWIP_TCPIP_CORE_LOCKING */ -#define LOCK_TCPIP_CORE() -#define UNLOCK_TCPIP_CORE() -#endif /* LWIP_TCPIP_CORE_LOCKING */ - -struct pbuf; -struct netif; - -/** Function prototype for the init_done function passed to tcpip_init */ -typedef void (*tcpip_init_done_fn)(void *arg); -/** Function prototype for functions passed to tcpip_callback() */ -typedef void (*tcpip_callback_fn)(void *ctx); - -/* Forward declarations */ -struct tcpip_callback_msg; - -void tcpip_init(tcpip_init_done_fn tcpip_init_done, void *arg); - -err_t tcpip_inpkt(struct pbuf *p, struct netif *inp, netif_input_fn input_fn); -err_t tcpip_input(struct pbuf *p, struct netif *inp); - -err_t tcpip_try_callback(tcpip_callback_fn function, void *ctx); -err_t tcpip_callback(tcpip_callback_fn function, void *ctx); -/** @ingroup lwip_os - * @deprecated use tcpip_try_callback() or tcpip_callback() instead - */ -#define tcpip_callback_with_block(function, ctx, block) ((block != 0)? tcpip_callback(function, ctx) : tcpip_try_callback(function, ctx)) - -struct tcpip_callback_msg* tcpip_callbackmsg_new(tcpip_callback_fn function, void *ctx); -void tcpip_callbackmsg_delete(struct tcpip_callback_msg* msg); -err_t tcpip_callbackmsg_trycallback(struct tcpip_callback_msg* msg); -err_t tcpip_callbackmsg_trycallback_fromisr(struct tcpip_callback_msg* msg); - -/* free pbufs or heap memory from another context without blocking */ -err_t pbuf_free_callback(struct pbuf *p); -err_t mem_free_callback(void *m); - -#if LWIP_TCPIP_TIMEOUT && LWIP_TIMERS -err_t tcpip_timeout(u32_t msecs, sys_timeout_handler h, void *arg); -err_t tcpip_untimeout(sys_timeout_handler h, void *arg); -#endif /* LWIP_TCPIP_TIMEOUT && LWIP_TIMERS */ - -#ifdef TCPIP_THREAD_TEST -int tcpip_thread_poll_one(void); -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* !NO_SYS */ - -#endif /* LWIP_HDR_TCPIP_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h b/Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h deleted file mode 100644 index b601f9e..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/timeouts.h +++ /dev/null @@ -1,128 +0,0 @@ -/** - * @file - * Timer implementations - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * Simon Goldschmidt - * - */ -#ifndef LWIP_HDR_TIMEOUTS_H -#define LWIP_HDR_TIMEOUTS_H - -#include "lwip/opt.h" -#include "lwip/err.h" -#if !NO_SYS -#include "lwip/sys.h" -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -#ifndef LWIP_DEBUG_TIMERNAMES -#ifdef LWIP_DEBUG -#define LWIP_DEBUG_TIMERNAMES SYS_DEBUG -#else /* LWIP_DEBUG */ -#define LWIP_DEBUG_TIMERNAMES 0 -#endif /* LWIP_DEBUG*/ -#endif - -/** Returned by sys_timeouts_sleeptime() to indicate there is no timer, so we - * can sleep forever. - */ -#define SYS_TIMEOUTS_SLEEPTIME_INFINITE 0xFFFFFFFF - -/** Function prototype for a stack-internal timer function that has to be - * called at a defined interval */ -typedef void (* lwip_cyclic_timer_handler)(void); - -/** This struct contains information about a stack-internal timer function - that has to be called at a defined interval */ -struct lwip_cyclic_timer { - u32_t interval_ms; - lwip_cyclic_timer_handler handler; -#if LWIP_DEBUG_TIMERNAMES - const char* handler_name; -#endif /* LWIP_DEBUG_TIMERNAMES */ -}; - -/** This array contains all stack-internal cyclic timers. To get the number of - * timers, use lwip_num_cyclic_timers */ -extern const struct lwip_cyclic_timer lwip_cyclic_timers[]; -/** Array size of lwip_cyclic_timers[] */ -extern const int lwip_num_cyclic_timers; - -#if LWIP_TIMERS - -/** Function prototype for a timeout callback function. Register such a function - * using sys_timeout(). - * - * @param arg Additional argument to pass to the function - set up by sys_timeout() - */ -typedef void (* sys_timeout_handler)(void *arg); - -struct sys_timeo { - struct sys_timeo *next; - u32_t time; - sys_timeout_handler h; - void *arg; -#if LWIP_DEBUG_TIMERNAMES - const char* handler_name; -#endif /* LWIP_DEBUG_TIMERNAMES */ -}; - -void sys_timeouts_init(void); - -#if LWIP_DEBUG_TIMERNAMES -void sys_timeout_debug(u32_t msecs, sys_timeout_handler handler, void *arg, const char* handler_name); -#define sys_timeout(msecs, handler, arg) sys_timeout_debug(msecs, handler, arg, #handler) -#else /* LWIP_DEBUG_TIMERNAMES */ -void sys_timeout(u32_t msecs, sys_timeout_handler handler, void *arg); -#endif /* LWIP_DEBUG_TIMERNAMES */ - -void sys_untimeout(sys_timeout_handler handler, void *arg); -void sys_restart_timeouts(void); -void sys_check_timeouts(void); -u32_t sys_timeouts_sleeptime(void); - -#if LWIP_TESTMODE -struct sys_timeo** sys_timeouts_get_next_timeout(void); -void lwip_cyclic_timer(void *arg); -#endif - -#endif /* LWIP_TIMERS */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_TIMEOUTS_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/lwip/udp.h b/Middlewares/Third_Party/LwIP/src/include/lwip/udp.h deleted file mode 100644 index b1c78e5..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/lwip/udp.h +++ /dev/null @@ -1,195 +0,0 @@ -/** - * @file - * UDP API (to be used from TCPIP thread)\n - * See also @ref udp_raw - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_UDP_H -#define LWIP_HDR_UDP_H - -#include "lwip/opt.h" - -#if LWIP_UDP /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/pbuf.h" -#include "lwip/netif.h" -#include "lwip/ip_addr.h" -#include "lwip/ip.h" -#include "lwip/ip6_addr.h" -#include "lwip/prot/udp.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define UDP_FLAGS_NOCHKSUM 0x01U -#define UDP_FLAGS_UDPLITE 0x02U -#define UDP_FLAGS_CONNECTED 0x04U -#define UDP_FLAGS_MULTICAST_LOOP 0x08U - -struct udp_pcb; - -/** Function prototype for udp pcb receive callback functions - * addr and port are in same byte order as in the pcb - * The callback is responsible for freeing the pbuf - * if it's not used any more. - * - * ATTENTION: Be aware that 'addr' might point into the pbuf 'p' so freeing this pbuf - * can make 'addr' invalid, too. - * - * @param arg user supplied argument (udp_pcb.recv_arg) - * @param pcb the udp_pcb which received data - * @param p the packet buffer that was received - * @param addr the remote IP address from which the packet was received - * @param port the remote port from which the packet was received - */ -typedef void (*udp_recv_fn)(void *arg, struct udp_pcb *pcb, struct pbuf *p, - const ip_addr_t *addr, u16_t port); - -/** the UDP protocol control block */ -struct udp_pcb { -/** Common members of all PCB types */ - IP_PCB; - -/* Protocol specific PCB members */ - - struct udp_pcb *next; - - u8_t flags; - /** ports are in host byte order */ - u16_t local_port, remote_port; - -#if LWIP_MULTICAST_TX_OPTIONS -#if LWIP_IPV4 - /** outgoing network interface for multicast packets, by IPv4 address (if not 'any') */ - ip4_addr_t mcast_ip4; -#endif /* LWIP_IPV4 */ - /** outgoing network interface for multicast packets, by interface index (if nonzero) */ - u8_t mcast_ifindex; - /** TTL for outgoing multicast packets */ - u8_t mcast_ttl; -#endif /* LWIP_MULTICAST_TX_OPTIONS */ - -#if LWIP_UDPLITE - /** used for UDP_LITE only */ - u16_t chksum_len_rx, chksum_len_tx; -#endif /* LWIP_UDPLITE */ - - /** receive callback function */ - udp_recv_fn recv; - /** user-supplied argument for the recv callback */ - void *recv_arg; -}; -/* udp_pcbs export for external reference (e.g. SNMP agent) */ -extern struct udp_pcb *udp_pcbs; - -/* The following functions is the application layer interface to the - UDP code. */ -struct udp_pcb * udp_new (void); -struct udp_pcb * udp_new_ip_type(u8_t type); -void udp_remove (struct udp_pcb *pcb); -err_t udp_bind (struct udp_pcb *pcb, const ip_addr_t *ipaddr, - u16_t port); -void udp_bind_netif (struct udp_pcb *pcb, const struct netif* netif); -err_t udp_connect (struct udp_pcb *pcb, const ip_addr_t *ipaddr, - u16_t port); -void udp_disconnect (struct udp_pcb *pcb); -void udp_recv (struct udp_pcb *pcb, udp_recv_fn recv, - void *recv_arg); -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); -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); -err_t udp_sendto (struct udp_pcb *pcb, struct pbuf *p, - const ip_addr_t *dst_ip, u16_t dst_port); -err_t udp_send (struct udp_pcb *pcb, struct pbuf *p); - -#if LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP -err_t udp_sendto_if_chksum(struct udp_pcb *pcb, struct pbuf *p, - const ip_addr_t *dst_ip, u16_t dst_port, - struct netif *netif, u8_t have_chksum, - u16_t chksum); -err_t udp_sendto_chksum(struct udp_pcb *pcb, struct pbuf *p, - const ip_addr_t *dst_ip, u16_t dst_port, - u8_t have_chksum, u16_t chksum); -err_t udp_send_chksum(struct udp_pcb *pcb, struct pbuf *p, - u8_t have_chksum, u16_t chksum); -err_t udp_sendto_if_src_chksum(struct udp_pcb *pcb, struct pbuf *p, - const ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif, - u8_t have_chksum, u16_t chksum, const ip_addr_t *src_ip); -#endif /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */ - -#define udp_flags(pcb) ((pcb)->flags) -#define udp_setflags(pcb, f) ((pcb)->flags = (f)) - -#define udp_set_flags(pcb, set_flags) do { (pcb)->flags = (u8_t)((pcb)->flags | (set_flags)); } while(0) -#define udp_clear_flags(pcb, clr_flags) do { (pcb)->flags = (u8_t)((pcb)->flags & (u8_t)(~(clr_flags) & 0xff)); } while(0) -#define udp_is_flag_set(pcb, flag) (((pcb)->flags & (flag)) != 0) - -/* The following functions are the lower layer interface to UDP. */ -void udp_input (struct pbuf *p, struct netif *inp); - -void udp_init (void); - -/* for compatibility with older implementation */ -#define udp_new_ip6() udp_new_ip_type(IPADDR_TYPE_V6) - -#if LWIP_MULTICAST_TX_OPTIONS -#if LWIP_IPV4 -#define udp_set_multicast_netif_addr(pcb, ip4addr) ip4_addr_copy((pcb)->mcast_ip4, *(ip4addr)) -#define udp_get_multicast_netif_addr(pcb) (&(pcb)->mcast_ip4) -#endif /* LWIP_IPV4 */ -#define udp_set_multicast_netif_index(pcb, idx) ((pcb)->mcast_ifindex = (idx)) -#define udp_get_multicast_netif_index(pcb) ((pcb)->mcast_ifindex) -#define udp_set_multicast_ttl(pcb, value) ((pcb)->mcast_ttl = (value)) -#define udp_get_multicast_ttl(pcb) ((pcb)->mcast_ttl) -#endif /* LWIP_MULTICAST_TX_OPTIONS */ - -#if UDP_DEBUG -void udp_debug_print(struct udp_hdr *udphdr); -#else -#define udp_debug_print(udphdr) -#endif - -void udp_netif_ip_addr_changed(const ip_addr_t* old_addr, const ip_addr_t* new_addr); - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_UDP */ - -#endif /* LWIP_HDR_UDP_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/bridgeif.h b/Middlewares/Third_Party/LwIP/src/include/netif/bridgeif.h deleted file mode 100644 index f4f8cf1..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/bridgeif.h +++ /dev/null @@ -1,127 +0,0 @@ -/** - * @file - * lwIP netif implementing an IEEE 802.1D MAC Bridge - */ - -/* - * Copyright (c) 2017 Simon Goldschmidt. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Simon Goldschmidt - * - */ -#ifndef LWIP_HDR_NETIF_BRIDGEIF_H -#define LWIP_HDR_NETIF_BRIDGEIF_H - -#include "netif/bridgeif_opts.h" - -#include "lwip/err.h" -#include "lwip/prot/ethernet.h" - -#ifdef __cplusplus -extern "C" { -#endif - -struct netif; - -#if (BRIDGEIF_MAX_PORTS < 0) || (BRIDGEIF_MAX_PORTS >= 64) -#error BRIDGEIF_MAX_PORTS must be [1..63] -#elif BRIDGEIF_MAX_PORTS < 8 -typedef u8_t bridgeif_portmask_t; -#elif BRIDGEIF_MAX_PORTS < 16 -typedef u16_t bridgeif_portmask_t; -#elif BRIDGEIF_MAX_PORTS < 32 -typedef u32_t bridgeif_portmask_t; -#elif BRIDGEIF_MAX_PORTS < 64 -typedef u64_t bridgeif_portmask_t; -#endif - -#define BR_FLOOD ((bridgeif_portmask_t)-1) - -/** @ingroup bridgeif - * Initialisation data for @ref bridgeif_init. - * An instance of this type must be passed as parameter 'state' to @ref netif_add - * when the bridge is added. - */ -typedef struct bridgeif_initdata_s { - /** MAC address of the bridge (cannot use the netif's addresses) */ - struct eth_addr ethaddr; - /** Maximum number of ports in the bridge (ports are stored in an array, this - influences memory allocated for netif->state of the bridge netif). */ - u8_t max_ports; - /** Maximum number of dynamic/learning entries in the bridge's forwarding database. - In the default implementation, this controls memory consumption only. */ - u16_t max_fdb_dynamic_entries; - /** Maximum number of static forwarding entries. Influences memory consumption! */ - u16_t max_fdb_static_entries; -} bridgeif_initdata_t; - -/** @ingroup bridgeif - * Use this for constant initialization of a bridgeif_initdat_t - * (ethaddr must be passed as ETH_ADDR()) - */ -#define BRIDGEIF_INITDATA1(max_ports, max_fdb_dynamic_entries, max_fdb_static_entries, ethaddr) {ethaddr, max_ports, max_fdb_dynamic_entries, max_fdb_static_entries} -/** @ingroup bridgeif - * Use this for constant initialization of a bridgeif_initdat_t - * (each byte of ethaddr must be passed) - */ -#define BRIDGEIF_INITDATA2(max_ports, max_fdb_dynamic_entries, max_fdb_static_entries, e0, e1, e2, e3, e4, e5) {{e0, e1, e2, e3, e4, e5}, max_ports, max_fdb_dynamic_entries, max_fdb_static_entries} - -err_t bridgeif_init(struct netif *netif); -err_t bridgeif_add_port(struct netif *bridgeif, struct netif *portif); -err_t bridgeif_fdb_add(struct netif *bridgeif, const struct eth_addr *addr, bridgeif_portmask_t ports); -err_t bridgeif_fdb_remove(struct netif *bridgeif, const struct eth_addr *addr); - -/* FDB interface, can be replaced by own implementation */ -void bridgeif_fdb_update_src(void *fdb_ptr, struct eth_addr *src_addr, u8_t port_idx); -bridgeif_portmask_t bridgeif_fdb_get_dst_ports(void *fdb_ptr, struct eth_addr *dst_addr); -void* bridgeif_fdb_init(u16_t max_fdb_entries); - -#if BRIDGEIF_PORT_NETIFS_OUTPUT_DIRECT -#ifndef BRIDGEIF_DECL_PROTECT -/* define bridgeif protection to sys_arch_protect... */ -#include "lwip/sys.h" -#define BRIDGEIF_DECL_PROTECT(lev) SYS_ARCH_DECL_PROTECT(lev) -#define BRIDGEIF_READ_PROTECT(lev) SYS_ARCH_PROTECT(lev) -#define BRIDGEIF_READ_UNPROTECT(lev) SYS_ARCH_UNPROTECT(lev) -#define BRIDGEIF_WRITE_PROTECT(lev) -#define BRIDGEIF_WRITE_UNPROTECT(lev) -#endif -#else /* BRIDGEIF_PORT_NETIFS_OUTPUT_DIRECT */ -#include "lwip/tcpip.h" -#define BRIDGEIF_DECL_PROTECT(lev) -#define BRIDGEIF_READ_PROTECT(lev) -#define BRIDGEIF_READ_UNPROTECT(lev) -#define BRIDGEIF_WRITE_PROTECT(lev) -#define BRIDGEIF_WRITE_UNPROTECT(lev) -#endif /* BRIDGEIF_PORT_NETIFS_OUTPUT_DIRECT */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_NETIF_BRIDGEIF_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/bridgeif_opts.h b/Middlewares/Third_Party/LwIP/src/include/netif/bridgeif_opts.h deleted file mode 100644 index b85c301..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/bridgeif_opts.h +++ /dev/null @@ -1,90 +0,0 @@ -/** - * @file - * lwIP netif implementing an IEEE 802.1D MAC Bridge - */ - -/* - * Copyright (c) 2017 Simon Goldschmidt. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Simon Goldschmidt - * - */ - -#ifndef LWIP_HDR_NETIF_BRIDGEIF_OPTS_H -#define LWIP_HDR_NETIF_BRIDGEIF_OPTS_H - -#include "lwip/opt.h" - -/** - * @defgroup bridgeif_opts Options - * @ingroup bridgeif - * @{ - */ - -/** BRIDGEIF_PORT_NETIFS_OUTPUT_DIRECT==1: set port netif's 'input' function - * to call directly into bridgeif code and on top of that, directly call into - * the selected forwarding port's 'linkoutput' function. - * This means that the bridgeif input/output path is protected from concurrent access - * but as well, *all* bridge port netif's drivers must correctly handle concurrent access! - * == 0: get into tcpip_thread for every input packet (no multithreading) - * ATTENTION: as ==0 relies on tcpip.h, the default depends on NO_SYS setting - */ -#ifndef BRIDGEIF_PORT_NETIFS_OUTPUT_DIRECT -#define BRIDGEIF_PORT_NETIFS_OUTPUT_DIRECT NO_SYS -#endif - -/** BRIDGEIF_MAX_PORTS: this is used to create a typedef used for forwarding - * bit-fields: the number of bits required is this + 1 (for the internal/cpu port) - * (63 is the maximum, resulting in an u64_t for the bit mask) - * ATTENTION: this controls the maximum number of the implementation only! - * The max. number of ports per bridge must still be passed via netif_add parameter! - */ -#ifndef BRIDGEIF_MAX_PORTS -#define BRIDGEIF_MAX_PORTS 7 -#endif - -/** BRIDGEIF_DEBUG: Enable generic debugging in bridgeif.c. */ -#ifndef BRIDGEIF_DEBUG -#define BRIDGEIF_DEBUG LWIP_DBG_OFF -#endif - -/** BRIDGEIF_DEBUG: Enable FDB debugging in bridgeif.c. */ -#ifndef BRIDGEIF_FDB_DEBUG -#define BRIDGEIF_FDB_DEBUG LWIP_DBG_OFF -#endif - -/** BRIDGEIF_DEBUG: Enable forwarding debugging in bridgeif.c. */ -#ifndef BRIDGEIF_FW_DEBUG -#define BRIDGEIF_FW_DEBUG LWIP_DBG_OFF -#endif - -/** - * @} - */ - -#endif /* LWIP_HDR_NETIF_BRIDGEIF_OPTS_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/etharp.h b/Middlewares/Third_Party/LwIP/src/include/netif/etharp.h deleted file mode 100644 index b536fd2..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/etharp.h +++ /dev/null @@ -1,3 +0,0 @@ -/* ARP has been moved to core/ipv4, provide this #include for compatibility only */ -#include "lwip/etharp.h" -#include "netif/ethernet.h" diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/ethernet.h b/Middlewares/Third_Party/LwIP/src/include/netif/ethernet.h deleted file mode 100644 index 49649cb..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/ethernet.h +++ /dev/null @@ -1,77 +0,0 @@ -/** - * @file - * Ethernet input function - handles INCOMING ethernet level traffic - * To be used in most low-level netif implementations - */ - -/* - * Copyright (c) 2001-2003 Swedish Institute of Computer Science. - * Copyright (c) 2003-2004 Leon Woestenberg - * Copyright (c) 2003-2004 Axon Digital Design B.V., The Netherlands. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -#ifndef LWIP_HDR_NETIF_ETHERNET_H -#define LWIP_HDR_NETIF_ETHERNET_H - -#include "lwip/opt.h" - -#include "lwip/pbuf.h" -#include "lwip/netif.h" -#include "lwip/prot/ethernet.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#if LWIP_ARP || LWIP_ETHERNET - -/** Define this to 1 and define LWIP_ARP_FILTER_NETIF_FN(pbuf, netif, type) - * to a filter function that returns the correct netif when using multiple - * netifs on one hardware interface where the netif's low-level receive - * routine cannot decide for the correct netif (e.g. when mapping multiple - * IP addresses to one hardware interface). - */ -#ifndef LWIP_ARP_FILTER_NETIF -#define LWIP_ARP_FILTER_NETIF 0 -#endif - -err_t ethernet_input(struct pbuf *p, struct netif *netif); -err_t ethernet_output(struct netif* netif, struct pbuf* p, const struct eth_addr* src, const struct eth_addr* dst, u16_t eth_type); - -extern const struct eth_addr ethbroadcast, ethzero; - -#endif /* LWIP_ARP || LWIP_ETHERNET */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_NETIF_ETHERNET_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/ieee802154.h b/Middlewares/Third_Party/LwIP/src/include/netif/ieee802154.h deleted file mode 100644 index 54e019f..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/ieee802154.h +++ /dev/null @@ -1,112 +0,0 @@ -/** - * @file - * Definitions for IEEE 802.15.4 MAC frames - */ - -/* - * Copyright (c) 2018 Simon Goldschmidt. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Simon Goldschmidt - * - */ -#ifndef LWIP_HDR_NETIF_IEEE802154_H -#define LWIP_HDR_NETIF_IEEE802154_H - -#include "lwip/opt.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -/** General MAC frame format - * This shows the full featured header, mainly for documentation. - * Some fields are omitted or shortened to achieve frame compression. - */ -struct ieee_802154_hdr { - /** See IEEE_802154_FC_* defines */ - PACK_STRUCT_FIELD(u16_t frame_control); - /** Sequence number is omitted if IEEE_802154_FC_SEQNO_SUPPR is set in frame_control */ - PACK_STRUCT_FLD_8(u8_t sequence_number); - /** Destination PAN ID is omitted if Destination Addressing Mode is 0 */ - PACK_STRUCT_FIELD(u16_t destination_pan_id); - /** Destination Address is omitted if Destination Addressing Mode is 0 */ - PACK_STRUCT_FLD_8(u8_t destination_address[8]); - /** Source PAN ID is omitted if Source Addressing Mode is 0 - or if IEEE_802154_FC_PANID_COMPR is set in frame control*/ - PACK_STRUCT_FIELD(u16_t source_pan_id); - /** Source Address is omitted if Source Addressing Mode is 0 */ - PACK_STRUCT_FLD_8(u8_t source_address[8]); - /* The rest is variable */ -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -/* Addressing modes (2 bits) */ -#define IEEE_802154_ADDR_MODE_NO_ADDR 0x00 /* PAN ID and address fields are not present */ -#define IEEE_802154_ADDR_MODE_RESERVED 0x01 /* Reserved */ -#define IEEE_802154_ADDR_MODE_SHORT 0x02 /* Address field contains a short address (16 bit) */ -#define IEEE_802154_ADDR_MODE_EXT 0x03 /* Address field contains an extended address (64 bit) */ - -/* IEEE 802.15.4 Frame Control definitions (2 bytes; see IEEE 802.15.4-2015 ch. 7.2.1) */ -#define IEEE_802154_FC_FT_MASK 0x0007 /* bits 0..2: Frame Type */ -#define IEEE_802154_FC_FT_BEACON 0x00 -#define IEEE_802154_FC_FT_DATA 0x01 -#define IEEE_802154_FC_FT_ACK 0x02 -#define IEEE_802154_FC_FT_MAC_CMD 0x03 -#define IEEE_802154_FC_FT_RESERVED 0x04 -#define IEEE_802154_FC_FT_MULTIPURPOSE 0x05 -#define IEEE_802154_FC_FT_FRAG 0x06 -#define IEEE_802154_FC_FT_EXT 0x07 -#define IEEE_802154_FC_SEC_EN 0x0008 /* bit 3: Security Enabled */ -#define IEEE_802154_FC_FRAME_PEND 0x0010 /* bit 4: Frame Pending */ -#define IEEE_802154_FC_ACK_REQ 0x0020 /* bit 5: AR (ACK required) */ -#define IEEE_802154_FC_PANID_COMPR 0x0040 /* bit 6: PAN ID Compression (src and dst are equal, src PAN ID omitted) */ -#define IEEE_802154_FC_RESERVED 0x0080 -#define IEEE_802154_FC_SEQNO_SUPPR 0x0100 /* bit 8: Sequence Number Suppression */ -#define IEEE_802154_FC_IE_PRESENT 0x0200 /* bit 9: IE Present */ -#define IEEE_802154_FC_DST_ADDR_MODE_MASK 0x0c00 /* bits 10..11: Destination Addressing Mode */ -#define IEEE_802154_FC_DST_ADDR_MODE_NO_ADDR (IEEE_802154_ADDR_MODE_NO_ADDR << 10) -#define IEEE_802154_FC_DST_ADDR_MODE_SHORT (IEEE_802154_ADDR_MODE_SHORT << 10) -#define IEEE_802154_FC_DST_ADDR_MODE_EXT (IEEE_802154_ADDR_MODE_EXT << 10) -#define IEEE_802154_FC_FRAME_VERSION_MASK 0x3000 /* bits 12..13: Frame Version */ -#define IEEE_802154_FC_FRAME_VERSION_GET(x) (((x) & IEEE_802154_FC_FRAME_VERSION_MASK) >> 12) -#define IEEE_802154_FC_SRC_ADDR_MODE_MASK 0xc000 /* bits 14..15: Source Addressing Mode */ -#define IEEE_802154_FC_SRC_ADDR_MODE_SHORT (IEEE_802154_ADDR_MODE_SHORT << 14) -#define IEEE_802154_FC_SRC_ADDR_MODE_EXT (IEEE_802154_ADDR_MODE_EXT << 14) - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_NETIF_IEEE802154_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/lowpan6.h b/Middlewares/Third_Party/LwIP/src/include/netif/lowpan6.h deleted file mode 100644 index ecff24b..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/lowpan6.h +++ /dev/null @@ -1,89 +0,0 @@ -/** - * @file - * - * 6LowPAN output for IPv6. Uses ND tables for link-layer addressing. Fragments packets to 6LowPAN units. - */ - -/* - * Copyright (c) 2015 Inico Technologies Ltd. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Ivan Delamer - * - * - * Please coordinate changes and requests with Ivan Delamer - * - */ - -#ifndef LWIP_HDR_LOWPAN6_H -#define LWIP_HDR_LOWPAN6_H - -#include "netif/lowpan6_opts.h" - -#if LWIP_IPV6 - -#include "netif/lowpan6_common.h" -#include "lwip/pbuf.h" -#include "lwip/ip.h" -#include "lwip/ip_addr.h" -#include "lwip/netif.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** 1 second period for reassembly */ -#define LOWPAN6_TMR_INTERVAL 1000 - -void lowpan6_tmr(void); - -err_t lowpan6_set_context(u8_t idx, const ip6_addr_t * context); -err_t lowpan6_set_short_addr(u8_t addr_high, u8_t addr_low); - -#if LWIP_IPV4 -err_t lowpan4_output(struct netif *netif, struct pbuf *q, const ip4_addr_t *ipaddr); -#endif /* LWIP_IPV4 */ -err_t lowpan6_output(struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr); -err_t lowpan6_input(struct pbuf * p, struct netif *netif); -err_t lowpan6_if_init(struct netif *netif); - -/* pan_id in network byte order. */ -err_t lowpan6_set_pan_id(u16_t pan_id); - -u16_t lowpan6_calc_crc(const void *buf, u16_t len); - -#if !NO_SYS -err_t tcpip_6lowpan_input(struct pbuf *p, struct netif *inp); -#endif /* !NO_SYS */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_IPV6 */ - -#endif /* LWIP_HDR_LOWPAN6_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/lowpan6_ble.h b/Middlewares/Third_Party/LwIP/src/include/netif/lowpan6_ble.h deleted file mode 100644 index 01896a7..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/lowpan6_ble.h +++ /dev/null @@ -1,78 +0,0 @@ -/** - * @file - * 6LowPAN over BLE for IPv6 (RFC7668). - */ - -/* - * Copyright (c) 2017 Benjamin Aigner - * Copyright (c) 2015 Inico Technologies Ltd. , Author: Ivan Delamer - * - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * Author: Benjamin Aigner - * - * Based on the original 6lowpan implementation of lwIP ( @see 6lowpan.c) - */ - -#ifndef LWIP_HDR_LOWPAN6_BLE_H -#define LWIP_HDR_LOWPAN6_BLE_H - -#include "netif/lowpan6_opts.h" - -#if LWIP_IPV6 /* don't build if not configured for use in lwipopts.h */ - -#include "netif/lowpan6_common.h" -#include "lwip/pbuf.h" -#include "lwip/ip.h" -#include "lwip/ip_addr.h" -#include "lwip/netif.h" - -#ifdef __cplusplus -extern "C" { -#endif - -err_t rfc7668_output(struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr); -err_t rfc7668_input(struct pbuf * p, struct netif *netif); -err_t rfc7668_set_local_addr_eui64(struct netif *netif, const u8_t *local_addr, size_t local_addr_len); -err_t rfc7668_set_local_addr_mac48(struct netif *netif, const u8_t *local_addr, size_t local_addr_len, int is_public_addr); -err_t rfc7668_set_peer_addr_eui64(struct netif *netif, const u8_t *peer_addr, size_t peer_addr_len); -err_t rfc7668_set_peer_addr_mac48(struct netif *netif, const u8_t *peer_addr, size_t peer_addr_len, int is_public_addr); -err_t rfc7668_set_context(u8_t index, const ip6_addr_t * context); -err_t rfc7668_if_init(struct netif *netif); - -#if !NO_SYS -err_t tcpip_rfc7668_input(struct pbuf *p, struct netif *inp); -#endif - -void ble_addr_to_eui64(uint8_t *dst, const uint8_t *src, int public_addr); -void eui64_to_ble_addr(uint8_t *dst, const uint8_t *src); - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_IPV6 */ - -#endif /* LWIP_HDR_LOWPAN6_BLE_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/lowpan6_common.h b/Middlewares/Third_Party/LwIP/src/include/netif/lowpan6_common.h deleted file mode 100644 index 0dc13ab..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/lowpan6_common.h +++ /dev/null @@ -1,82 +0,0 @@ -/** - * @file - * - * Common 6LowPAN routines for IPv6. Uses ND tables for link-layer addressing. Fragments packets to 6LowPAN units. - */ - -/* - * Copyright (c) 2015 Inico Technologies Ltd. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Ivan Delamer - * - * - * Please coordinate changes and requests with Ivan Delamer - * - */ - -#ifndef LWIP_HDR_LOWPAN6_COMMON_H -#define LWIP_HDR_LOWPAN6_COMMON_H - -#include "netif/lowpan6_opts.h" - -#if LWIP_IPV6 /* don't build if IPv6 is disabled in lwipopts.h */ - -#include "lwip/pbuf.h" -#include "lwip/ip.h" -#include "lwip/ip6_addr.h" -#include "lwip/netif.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** Helper define for a link layer address, which can be encoded as 0, 2 or 8 bytes */ -struct lowpan6_link_addr { - /* encoded length of the address */ - u8_t addr_len; - /* address bytes */ - u8_t addr[8]; -}; - -s8_t lowpan6_get_address_mode(const ip6_addr_t *ip6addr, const struct lowpan6_link_addr *mac_addr); - -#if LWIP_6LOWPAN_IPHC -err_t lowpan6_compress_headers(struct netif *netif, u8_t *inbuf, size_t inbuf_size, u8_t *outbuf, size_t outbuf_size, - u8_t *lowpan6_header_len_out, u8_t *hidden_header_len_out, ip6_addr_t *lowpan6_contexts, - const struct lowpan6_link_addr *src, const struct lowpan6_link_addr *dst); -struct pbuf *lowpan6_decompress(struct pbuf *p, u16_t datagram_size, ip6_addr_t *lowpan6_contexts, - struct lowpan6_link_addr *src, struct lowpan6_link_addr *dest); -#endif /* LWIP_6LOWPAN_IPHC */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_IPV6 */ - -#endif /* LWIP_HDR_LOWPAN6_COMMON_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/lowpan6_opts.h b/Middlewares/Third_Party/LwIP/src/include/netif/lowpan6_opts.h deleted file mode 100644 index 17d46cd..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/lowpan6_opts.h +++ /dev/null @@ -1,122 +0,0 @@ -/** - * @file - * 6LowPAN options list - */ - -/* - * Copyright (c) 2015 Inico Technologies Ltd. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Ivan Delamer - * - * - * Please coordinate changes and requests with Ivan Delamer - * - */ - -#ifndef LWIP_HDR_LOWPAN6_OPTS_H -#define LWIP_HDR_LOWPAN6_OPTS_H - -#include "lwip/opt.h" - -/** LWIP_6LOWPAN_NUM_CONTEXTS: define the number of compression - * contexts per netif type - */ -#ifndef LWIP_6LOWPAN_NUM_CONTEXTS -#define LWIP_6LOWPAN_NUM_CONTEXTS 10 -#endif - -/** LWIP_6LOWPAN_INFER_SHORT_ADDRESS: set this to 0 to disable creating - * short addresses for matching addresses (debug only) - */ -#ifndef LWIP_6LOWPAN_INFER_SHORT_ADDRESS -#define LWIP_6LOWPAN_INFER_SHORT_ADDRESS 1 -#endif - -/** LWIP_6LOWPAN_IPHC: set this to 0 to disable IP header compression as per - * RFC 6282 (which is mandatory for BLE) - */ -#ifndef LWIP_6LOWPAN_IPHC -#define LWIP_6LOWPAN_IPHC 1 -#endif - -/** Set this to 1 if your IEEE 802.15.4 interface can calculate and check the - * CRC in hardware. This means TX packets get 2 zero bytes added on transmission - * which are to be filled with the CRC. - */ -#ifndef LWIP_6LOWPAN_802154_HW_CRC -#define LWIP_6LOWPAN_802154_HW_CRC 0 -#endif - -/** If LWIP_6LOWPAN_802154_HW_CRC==0, this can override the default slow - * implementation of the CRC used for 6LoWPAN over IEEE 802.15.4 (which uses - * a shift register). - */ -#ifndef LWIP_6LOWPAN_CALC_CRC -#define LWIP_6LOWPAN_CALC_CRC(buf, len) lowpan6_calc_crc(buf, len) -#endif - -/** Debug level for 6LoWPAN in general */ -#ifndef LWIP_LOWPAN6_DEBUG -#define LWIP_LOWPAN6_DEBUG LWIP_DBG_OFF -#endif - -/** Debug level for 6LoWPAN over IEEE 802.15.4 */ -#ifndef LWIP_LOWPAN6_802154_DEBUG -#define LWIP_LOWPAN6_802154_DEBUG LWIP_DBG_OFF -#endif - -/** LWIP_LOWPAN6_IP_COMPRESSED_DEBUG: enable compressed IP frame - * output debugging - */ -#ifndef LWIP_LOWPAN6_IP_COMPRESSED_DEBUG -#define LWIP_LOWPAN6_IP_COMPRESSED_DEBUG LWIP_DBG_OFF -#endif - -/** LWIP_LOWPAN6_DECOMPRESSION_DEBUG: enable decompression debug output - */ -#ifndef LWIP_LOWPAN6_DECOMPRESSION_DEBUG -#define LWIP_LOWPAN6_DECOMPRESSION_DEBUG LWIP_DBG_OFF -#endif - -/** LWIP_RFC7668_IP_UNCOMPRESSED_DEBUG: enable decompressed IP frame - * output debugging */ -#ifndef LWIP_RFC7668_IP_UNCOMPRESSED_DEBUG -#define LWIP_RFC7668_IP_UNCOMPRESSED_DEBUG LWIP_DBG_OFF -#endif - -/** LWIP_RFC7668_LINUX_WORKAROUND_PUBLIC_ADDRESS: - * Currently, the linux kernel driver for 6lowpan sets/clears a bit in - * the address, depending on the BD address (either public or not). - * Might not be RFC7668 conform, so you may select to do that (=1) or - * not (=0) */ -#ifndef LWIP_RFC7668_LINUX_WORKAROUND_PUBLIC_ADDRESS -#define LWIP_RFC7668_LINUX_WORKAROUND_PUBLIC_ADDRESS 1 -#endif - - -#endif /* LWIP_HDR_LOWPAN6_OPTS_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/ccp.h b/Middlewares/Third_Party/LwIP/src/include/netif/ppp/ccp.h deleted file mode 100644 index b228522..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/ccp.h +++ /dev/null @@ -1,164 +0,0 @@ -/* - * ccp.h - Definitions for PPP Compression Control Protocol. - * - * Copyright (c) 1994-2002 Paul Mackerras. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. The name(s) of the authors of this software must not be used to - * endorse or promote products derived from this software without - * prior written permission. - * - * 3. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Paul Mackerras - * ". - * - * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY - * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * $Id: ccp.h,v 1.12 2004/11/04 10:02:26 paulus Exp $ - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && CCP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#ifndef CCP_H -#define CCP_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * CCP codes. - */ - -#define CCP_CONFREQ 1 -#define CCP_CONFACK 2 -#define CCP_TERMREQ 5 -#define CCP_TERMACK 6 -#define CCP_RESETREQ 14 -#define CCP_RESETACK 15 - -/* - * Max # bytes for a CCP option - */ - -#define CCP_MAX_OPTION_LENGTH 32 - -/* - * Parts of a CCP packet. - */ - -#define CCP_CODE(dp) ((dp)[0]) -#define CCP_ID(dp) ((dp)[1]) -#define CCP_LENGTH(dp) (((dp)[2] << 8) + (dp)[3]) -#define CCP_HDRLEN 4 - -#define CCP_OPT_CODE(dp) ((dp)[0]) -#define CCP_OPT_LENGTH(dp) ((dp)[1]) -#define CCP_OPT_MINLEN 2 - -#if BSDCOMPRESS_SUPPORT -/* - * Definitions for BSD-Compress. - */ - -#define CI_BSD_COMPRESS 21 /* config. option for BSD-Compress */ -#define CILEN_BSD_COMPRESS 3 /* length of config. option */ - -/* Macros for handling the 3rd byte of the BSD-Compress config option. */ -#define BSD_NBITS(x) ((x) & 0x1F) /* number of bits requested */ -#define BSD_VERSION(x) ((x) >> 5) /* version of option format */ -#define BSD_CURRENT_VERSION 1 /* current version number */ -#define BSD_MAKE_OPT(v, n) (((v) << 5) | (n)) - -#define BSD_MIN_BITS 9 /* smallest code size supported */ -#define BSD_MAX_BITS 15 /* largest code size supported */ -#endif /* BSDCOMPRESS_SUPPORT */ - -#if DEFLATE_SUPPORT -/* - * Definitions for Deflate. - */ - -#define CI_DEFLATE 26 /* config option for Deflate */ -#define CI_DEFLATE_DRAFT 24 /* value used in original draft RFC */ -#define CILEN_DEFLATE 4 /* length of its config option */ - -#define DEFLATE_MIN_SIZE 9 -#define DEFLATE_MAX_SIZE 15 -#define DEFLATE_METHOD_VAL 8 -#define DEFLATE_SIZE(x) (((x) >> 4) + 8) -#define DEFLATE_METHOD(x) ((x) & 0x0F) -#define DEFLATE_MAKE_OPT(w) ((((w) - 8) << 4) + DEFLATE_METHOD_VAL) -#define DEFLATE_CHK_SEQUENCE 0 -#endif /* DEFLATE_SUPPORT */ - -#if MPPE_SUPPORT -/* - * Definitions for MPPE. - */ - -#define CI_MPPE 18 /* config option for MPPE */ -#define CILEN_MPPE 6 /* length of config option */ -#endif /* MPPE_SUPPORT */ - -#if PREDICTOR_SUPPORT -/* - * Definitions for other, as yet unsupported, compression methods. - */ - -#define CI_PREDICTOR_1 1 /* config option for Predictor-1 */ -#define CILEN_PREDICTOR_1 2 /* length of its config option */ -#define CI_PREDICTOR_2 2 /* config option for Predictor-2 */ -#define CILEN_PREDICTOR_2 2 /* length of its config option */ -#endif /* PREDICTOR_SUPPORT */ - -typedef struct ccp_options { -#if DEFLATE_SUPPORT - unsigned int deflate :1; /* do Deflate? */ - unsigned int deflate_correct :1; /* use correct code for deflate? */ - unsigned int deflate_draft :1; /* use draft RFC code for deflate? */ -#endif /* DEFLATE_SUPPORT */ -#if BSDCOMPRESS_SUPPORT - unsigned int bsd_compress :1; /* do BSD Compress? */ -#endif /* BSDCOMPRESS_SUPPORT */ -#if PREDICTOR_SUPPORT - unsigned int predictor_1 :1; /* do Predictor-1? */ - unsigned int predictor_2 :1; /* do Predictor-2? */ -#endif /* PREDICTOR_SUPPORT */ - -#if MPPE_SUPPORT - u8_t mppe; /* MPPE bitfield */ -#endif /* MPPE_SUPPORT */ -#if BSDCOMPRESS_SUPPORT - u_short bsd_bits; /* # bits/code for BSD Compress */ -#endif /* BSDCOMPRESS_SUPPORT */ -#if DEFLATE_SUPPORT - u_short deflate_size; /* lg(window size) for Deflate */ -#endif /* DEFLATE_SUPPORT */ - u8_t method; /* code for chosen compression method */ -} ccp_options; - -extern const struct protent ccp_protent; - -void ccp_resetrequest(ppp_pcb *pcb); /* Issue a reset-request. */ - -#ifdef __cplusplus -} -#endif - -#endif /* CCP_H */ -#endif /* PPP_SUPPORT && CCP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/chap-md5.h b/Middlewares/Third_Party/LwIP/src/include/netif/ppp/chap-md5.h deleted file mode 100644 index eb0269f..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/chap-md5.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * chap-md5.h - New CHAP/MD5 implementation. - * - * Copyright (c) 2003 Paul Mackerras. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. The name(s) of the authors of this software must not be used to - * endorse or promote products derived from this software without - * prior written permission. - * - * 3. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Paul Mackerras - * ". - * - * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY - * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && CHAP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -extern const struct chap_digest_type md5_digest; - -#endif /* PPP_SUPPORT && CHAP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/chap-new.h b/Middlewares/Third_Party/LwIP/src/include/netif/ppp/chap-new.h deleted file mode 100644 index 2d8cd9c..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/chap-new.h +++ /dev/null @@ -1,200 +0,0 @@ -/* - * chap-new.c - New CHAP implementation. - * - * Copyright (c) 2003 Paul Mackerras. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. The name(s) of the authors of this software must not be used to - * endorse or promote products derived from this software without - * prior written permission. - * - * 3. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Paul Mackerras - * ". - * - * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY - * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && CHAP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#ifndef CHAP_H -#define CHAP_H - -#include "ppp.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * CHAP packets begin with a standard header with code, id, len (2 bytes). - */ -#define CHAP_HDRLEN 4 - -/* - * Values for the code field. - */ -#define CHAP_CHALLENGE 1 -#define CHAP_RESPONSE 2 -#define CHAP_SUCCESS 3 -#define CHAP_FAILURE 4 - -/* - * CHAP digest codes. - */ -#define CHAP_MD5 5 -#if MSCHAP_SUPPORT -#define CHAP_MICROSOFT 0x80 -#define CHAP_MICROSOFT_V2 0x81 -#endif /* MSCHAP_SUPPORT */ - -/* - * Semi-arbitrary limits on challenge and response fields. - */ -#define MAX_CHALLENGE_LEN 64 -#define MAX_RESPONSE_LEN 64 - -/* - * These limits apply to challenge and response packets we send. - * The +4 is the +1 that we actually need rounded up. - */ -#define CHAL_MAX_PKTLEN (PPP_HDRLEN + CHAP_HDRLEN + 4 + MAX_CHALLENGE_LEN + MAXNAMELEN) -#define RESP_MAX_PKTLEN (PPP_HDRLEN + CHAP_HDRLEN + 4 + MAX_RESPONSE_LEN + MAXNAMELEN) - -/* bitmask of supported algorithms */ -#if MSCHAP_SUPPORT -#define MDTYPE_MICROSOFT_V2 0x1 -#define MDTYPE_MICROSOFT 0x2 -#endif /* MSCHAP_SUPPORT */ -#define MDTYPE_MD5 0x4 -#define MDTYPE_NONE 0 - -#if MSCHAP_SUPPORT -/* Return the digest alg. ID for the most preferred digest type. */ -#define CHAP_DIGEST(mdtype) \ - ((mdtype) & MDTYPE_MD5)? CHAP_MD5: \ - ((mdtype) & MDTYPE_MICROSOFT_V2)? CHAP_MICROSOFT_V2: \ - ((mdtype) & MDTYPE_MICROSOFT)? CHAP_MICROSOFT: \ - 0 -#else /* !MSCHAP_SUPPORT */ -#define CHAP_DIGEST(mdtype) \ - ((mdtype) & MDTYPE_MD5)? CHAP_MD5: \ - 0 -#endif /* MSCHAP_SUPPORT */ - -/* Return the bit flag (lsb set) for our most preferred digest type. */ -#define CHAP_MDTYPE(mdtype) ((mdtype) ^ ((mdtype) - 1)) & (mdtype) - -/* Return the bit flag for a given digest algorithm ID. */ -#if MSCHAP_SUPPORT -#define CHAP_MDTYPE_D(digest) \ - ((digest) == CHAP_MICROSOFT_V2)? MDTYPE_MICROSOFT_V2: \ - ((digest) == CHAP_MICROSOFT)? MDTYPE_MICROSOFT: \ - ((digest) == CHAP_MD5)? MDTYPE_MD5: \ - 0 -#else /* !MSCHAP_SUPPORT */ -#define CHAP_MDTYPE_D(digest) \ - ((digest) == CHAP_MD5)? MDTYPE_MD5: \ - 0 -#endif /* MSCHAP_SUPPORT */ - -/* Can we do the requested digest? */ -#if MSCHAP_SUPPORT -#define CHAP_CANDIGEST(mdtype, digest) \ - ((digest) == CHAP_MICROSOFT_V2)? (mdtype) & MDTYPE_MICROSOFT_V2: \ - ((digest) == CHAP_MICROSOFT)? (mdtype) & MDTYPE_MICROSOFT: \ - ((digest) == CHAP_MD5)? (mdtype) & MDTYPE_MD5: \ - 0 -#else /* !MSCHAP_SUPPORT */ -#define CHAP_CANDIGEST(mdtype, digest) \ - ((digest) == CHAP_MD5)? (mdtype) & MDTYPE_MD5: \ - 0 -#endif /* MSCHAP_SUPPORT */ - -/* - * The code for each digest type has to supply one of these. - */ -struct chap_digest_type { - int code; - -#if PPP_SERVER - /* - * Note: challenge and response arguments below are formatted as - * a length byte followed by the actual challenge/response data. - */ - void (*generate_challenge)(ppp_pcb *pcb, unsigned char *challenge); - int (*verify_response)(ppp_pcb *pcb, int id, const char *name, - const unsigned char *secret, int secret_len, - const unsigned char *challenge, const unsigned char *response, - char *message, int message_space); -#endif /* PPP_SERVER */ - void (*make_response)(ppp_pcb *pcb, unsigned char *response, int id, const char *our_name, - const unsigned char *challenge, const char *secret, int secret_len, - unsigned char *priv); - int (*check_success)(ppp_pcb *pcb, unsigned char *pkt, int len, unsigned char *priv); - void (*handle_failure)(ppp_pcb *pcb, unsigned char *pkt, int len); -}; - -/* - * Each interface is described by chap structure. - */ -#if CHAP_SUPPORT -typedef struct chap_client_state { - u8_t flags; - const char *name; - const struct chap_digest_type *digest; - unsigned char priv[64]; /* private area for digest's use */ -} chap_client_state; - -#if PPP_SERVER -typedef struct chap_server_state { - u8_t flags; - u8_t id; - const char *name; - const struct chap_digest_type *digest; - int challenge_xmits; - int challenge_pktlen; - unsigned char challenge[CHAL_MAX_PKTLEN]; -} chap_server_state; -#endif /* PPP_SERVER */ -#endif /* CHAP_SUPPORT */ - -#if 0 /* UNUSED */ -/* Hook for a plugin to validate CHAP challenge */ -extern int (*chap_verify_hook)(char *name, char *ourname, int id, - const struct chap_digest_type *digest, - unsigned char *challenge, unsigned char *response, - char *message, int message_space); -#endif /* UNUSED */ - -#if PPP_SERVER -/* Called by authentication code to start authenticating the peer. */ -extern void chap_auth_peer(ppp_pcb *pcb, const char *our_name, int digest_code); -#endif /* PPP_SERVER */ - -/* Called by auth. code to start authenticating us to the peer. */ -extern void chap_auth_with_peer(ppp_pcb *pcb, const char *our_name, int digest_code); - -/* Represents the CHAP protocol to the main pppd code */ -extern const struct protent chap_protent; - -#ifdef __cplusplus -} -#endif - -#endif /* CHAP_H */ -#endif /* PPP_SUPPORT && CHAP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/chap_ms.h b/Middlewares/Third_Party/LwIP/src/include/netif/ppp/chap_ms.h deleted file mode 100644 index 0795291..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/chap_ms.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * chap_ms.h - Challenge Handshake Authentication Protocol definitions. - * - * Copyright (c) 1995 Eric Rosenquist. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The name(s) of the authors of this software must not be used to - * endorse or promote products derived from this software without - * prior written permission. - * - * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY - * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * $Id: chap_ms.h,v 1.13 2004/11/15 22:13:26 paulus Exp $ - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && MSCHAP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#ifndef CHAPMS_INCLUDE -#define CHAPMS_INCLUDE - -extern const struct chap_digest_type chapms_digest; -extern const struct chap_digest_type chapms2_digest; - -#endif /* CHAPMS_INCLUDE */ - -#endif /* PPP_SUPPORT && MSCHAP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/eap.h b/Middlewares/Third_Party/LwIP/src/include/netif/ppp/eap.h deleted file mode 100644 index 3ee9aaf..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/eap.h +++ /dev/null @@ -1,169 +0,0 @@ -/* - * eap.h - Extensible Authentication Protocol for PPP (RFC 2284) - * - * Copyright (c) 2001 by Sun Microsystems, Inc. - * All rights reserved. - * - * Non-exclusive rights to redistribute, modify, translate, and use - * this software in source and binary forms, in whole or in part, is - * hereby granted, provided that the above copyright notice is - * duplicated in any source form, and that neither the name of the - * copyright holder nor the author is used to endorse or promote - * products derived from this software. - * - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED - * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. - * - * Original version by James Carlson - * - * $Id: eap.h,v 1.2 2003/06/11 23:56:26 paulus Exp $ - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && EAP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#ifndef PPP_EAP_H -#define PPP_EAP_H - -#include "ppp.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Packet header = Code, id, length. - */ -#define EAP_HEADERLEN 4 - - -/* EAP message codes. */ -#define EAP_REQUEST 1 -#define EAP_RESPONSE 2 -#define EAP_SUCCESS 3 -#define EAP_FAILURE 4 - -/* EAP types */ -#define EAPT_IDENTITY 1 -#define EAPT_NOTIFICATION 2 -#define EAPT_NAK 3 /* (response only) */ -#define EAPT_MD5CHAP 4 -#define EAPT_OTP 5 /* One-Time Password; RFC 1938 */ -#define EAPT_TOKEN 6 /* Generic Token Card */ -/* 7 and 8 are unassigned. */ -#define EAPT_RSA 9 /* RSA Public Key Authentication */ -#define EAPT_DSS 10 /* DSS Unilateral */ -#define EAPT_KEA 11 /* KEA */ -#define EAPT_KEA_VALIDATE 12 /* KEA-VALIDATE */ -#define EAPT_TLS 13 /* EAP-TLS */ -#define EAPT_DEFENDER 14 /* Defender Token (AXENT) */ -#define EAPT_W2K 15 /* Windows 2000 EAP */ -#define EAPT_ARCOT 16 /* Arcot Systems */ -#define EAPT_CISCOWIRELESS 17 /* Cisco Wireless */ -#define EAPT_NOKIACARD 18 /* Nokia IP smart card */ -#define EAPT_SRP 19 /* Secure Remote Password */ -/* 20 is deprecated */ - -/* EAP SRP-SHA1 Subtypes */ -#define EAPSRP_CHALLENGE 1 /* Request 1 - Challenge */ -#define EAPSRP_CKEY 1 /* Response 1 - Client Key */ -#define EAPSRP_SKEY 2 /* Request 2 - Server Key */ -#define EAPSRP_CVALIDATOR 2 /* Response 2 - Client Validator */ -#define EAPSRP_SVALIDATOR 3 /* Request 3 - Server Validator */ -#define EAPSRP_ACK 3 /* Response 3 - final ack */ -#define EAPSRP_LWRECHALLENGE 4 /* Req/resp 4 - Lightweight rechal */ - -#define SRPVAL_EBIT 0x00000001 /* Use shared key for ECP */ - -#define SRP_PSEUDO_ID "pseudo_" -#define SRP_PSEUDO_LEN 7 - -#define MD5_SIGNATURE_SIZE 16 -#define EAP_MIN_CHALLENGE_LENGTH 17 -#define EAP_MAX_CHALLENGE_LENGTH 24 -#define EAP_MIN_MAX_POWER_OF_TWO_CHALLENGE_LENGTH 3 /* 2^3-1 = 7, 17+7 = 24 */ - -#define EAP_STATES \ - "Initial", "Pending", "Closed", "Listen", "Identify", \ - "SRP1", "SRP2", "SRP3", "MD5Chall", "Open", "SRP4", "BadAuth" - -#define eap_client_active(pcb) ((pcb)->eap.es_client.ea_state == eapListen) -#if PPP_SERVER -#define eap_server_active(pcb) \ - ((pcb)->eap.es_server.ea_state >= eapIdentify && \ - (pcb)->eap.es_server.ea_state <= eapMD5Chall) -#endif /* PPP_SERVER */ - -/* - * Complete EAP state for one PPP session. - */ -enum eap_state_code { - eapInitial = 0, /* No EAP authentication yet requested */ - eapPending, /* Waiting for LCP (no timer) */ - eapClosed, /* Authentication not in use */ - eapListen, /* Client ready (and timer running) */ - eapIdentify, /* EAP Identify sent */ - eapSRP1, /* Sent EAP SRP-SHA1 Subtype 1 */ - eapSRP2, /* Sent EAP SRP-SHA1 Subtype 2 */ - eapSRP3, /* Sent EAP SRP-SHA1 Subtype 3 */ - eapMD5Chall, /* Sent MD5-Challenge */ - eapOpen, /* Completed authentication */ - eapSRP4, /* Sent EAP SRP-SHA1 Subtype 4 */ - eapBadAuth /* Failed authentication */ -}; - -struct eap_auth { - const char *ea_name; /* Our name */ - char ea_peer[MAXNAMELEN +1]; /* Peer's name */ - void *ea_session; /* Authentication library linkage */ - u_char *ea_skey; /* Shared encryption key */ - u_short ea_namelen; /* Length of our name */ - u_short ea_peerlen; /* Length of peer's name */ - enum eap_state_code ea_state; - u_char ea_id; /* Current id */ - u_char ea_requests; /* Number of Requests sent/received */ - u_char ea_responses; /* Number of Responses */ - u_char ea_type; /* One of EAPT_* */ - u32_t ea_keyflags; /* SRP shared key usage flags */ -}; - -#ifndef EAP_MAX_CHALLENGE_LENGTH -#define EAP_MAX_CHALLENGE_LENGTH 24 -#endif -typedef struct eap_state { - struct eap_auth es_client; /* Client (authenticatee) data */ -#if PPP_SERVER - struct eap_auth es_server; /* Server (authenticator) data */ -#endif /* PPP_SERVER */ - int es_savedtime; /* Saved timeout */ - int es_rechallenge; /* EAP rechallenge interval */ - int es_lwrechallenge; /* SRP lightweight rechallenge inter */ - u8_t es_usepseudo; /* Use SRP Pseudonym if offered one */ - int es_usedpseudo; /* Set if we already sent PN */ - int es_challen; /* Length of challenge string */ - u_char es_challenge[EAP_MAX_CHALLENGE_LENGTH]; -} eap_state; - -/* - * Timeouts. - */ -#if 0 /* moved to ppp_opts.h */ -#define EAP_DEFTIMEOUT 3 /* Timeout (seconds) for rexmit */ -#define EAP_DEFTRANSMITS 10 /* max # times to transmit */ -#define EAP_DEFREQTIME 20 /* Time to wait for peer request */ -#define EAP_DEFALLOWREQ 20 /* max # times to accept requests */ -#endif /* moved to ppp_opts.h */ - -void eap_authwithpeer(ppp_pcb *pcb, const char *localname); -void eap_authpeer(ppp_pcb *pcb, const char *localname); - -extern const struct protent eap_protent; - -#ifdef __cplusplus -} -#endif - -#endif /* PPP_EAP_H */ - -#endif /* PPP_SUPPORT && EAP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/ecp.h b/Middlewares/Third_Party/LwIP/src/include/netif/ppp/ecp.h deleted file mode 100644 index d8808c3..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/ecp.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * ecp.h - Definitions for PPP Encryption Control Protocol. - * - * Copyright (c) 2002 Google, Inc. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The name(s) of the authors of this software must not be used to - * endorse or promote products derived from this software without - * prior written permission. - * - * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY - * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * $Id: ecp.h,v 1.2 2003/01/10 07:12:36 fcusack Exp $ - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && ECP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#ifndef ECP_H -#define ECP_H - -#ifdef __cplusplus -extern "C" { -#endif - -typedef struct ecp_options { - bool required; /* Is ECP required? */ - unsigned enctype; /* Encryption type */ -} ecp_options; - -extern fsm ecp_fsm[]; -extern ecp_options ecp_wantoptions[]; -extern ecp_options ecp_gotoptions[]; -extern ecp_options ecp_allowoptions[]; -extern ecp_options ecp_hisoptions[]; - -extern const struct protent ecp_protent; - -#ifdef __cplusplus -} -#endif - -#endif /* ECP_H */ -#endif /* PPP_SUPPORT && ECP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/eui64.h b/Middlewares/Third_Party/LwIP/src/include/netif/ppp/eui64.h deleted file mode 100644 index 5adeb48..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/eui64.h +++ /dev/null @@ -1,102 +0,0 @@ -/* - * eui64.h - EUI64 routines for IPv6CP. - * - * Copyright (c) 1999 Tommi Komulainen. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The name(s) of the authors of this software must not be used to - * endorse or promote products derived from this software without - * prior written permission. - * - * 4. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Tommi Komulainen - * ". - * - * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY - * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * $Id: eui64.h,v 1.6 2002/12/04 23:03:32 paulus Exp $ -*/ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && PPP_IPV6_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#ifndef EUI64_H -#define EUI64_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * @todo: - * - * Maybe this should be done by processing struct in6_addr directly... - */ -typedef union -{ - u8_t e8[8]; - u16_t e16[4]; - u32_t e32[2]; -} eui64_t; - -#define eui64_iszero(e) (((e).e32[0] | (e).e32[1]) == 0) -#define eui64_equals(e, o) (((e).e32[0] == (o).e32[0]) && \ - ((e).e32[1] == (o).e32[1])) -#define eui64_zero(e) (e).e32[0] = (e).e32[1] = 0; - -#define eui64_copy(s, d) memcpy(&(d), &(s), sizeof(eui64_t)) - -#define eui64_magic(e) do { \ - (e).e32[0] = magic(); \ - (e).e32[1] = magic(); \ - (e).e8[0] &= ~2; \ - } while (0) -#define eui64_magic_nz(x) do { \ - eui64_magic(x); \ - } while (eui64_iszero(x)) -#define eui64_magic_ne(x, y) do { \ - eui64_magic(x); \ - } while (eui64_equals(x, y)) - -#define eui64_get(ll, cp) do { \ - eui64_copy((*cp), (ll)); \ - (cp) += sizeof(eui64_t); \ - } while (0) - -#define eui64_put(ll, cp) do { \ - eui64_copy((ll), (*cp)); \ - (cp) += sizeof(eui64_t); \ - } while (0) - -#define eui64_set32(e, l) do { \ - (e).e32[0] = 0; \ - (e).e32[1] = lwip_htonl(l); \ - } while (0) -#define eui64_setlo32(e, l) eui64_set32(e, l) - -char *eui64_ntoa(eui64_t); /* Returns ascii representation of id */ - -#ifdef __cplusplus -} -#endif - -#endif /* EUI64_H */ -#endif /* PPP_SUPPORT && PPP_IPV6_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/fsm.h b/Middlewares/Third_Party/LwIP/src/include/netif/ppp/fsm.h deleted file mode 100644 index 8dec700..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/fsm.h +++ /dev/null @@ -1,182 +0,0 @@ -/* - * fsm.h - {Link, IP} Control Protocol Finite State Machine definitions. - * - * Copyright (c) 1984-2000 Carnegie Mellon University. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The name "Carnegie Mellon University" must not be used to - * endorse or promote products derived from this software without - * prior written permission. For permission or any legal - * details, please contact - * Office of Technology Transfer - * Carnegie Mellon University - * 5000 Forbes Avenue - * Pittsburgh, PA 15213-3890 - * (412) 268-4387, fax: (412) 268-7395 - * tech-transfer@andrew.cmu.edu - * - * 4. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Computing Services - * at Carnegie Mellon University (http://www.cmu.edu/computing/)." - * - * CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE - * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * $Id: fsm.h,v 1.10 2004/11/13 02:28:15 paulus Exp $ - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#ifndef FSM_H -#define FSM_H - -#include "ppp.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Packet header = Code, id, length. - */ -#define HEADERLEN 4 - - -/* - * CP (LCP, IPCP, etc.) codes. - */ -#define CONFREQ 1 /* Configuration Request */ -#define CONFACK 2 /* Configuration Ack */ -#define CONFNAK 3 /* Configuration Nak */ -#define CONFREJ 4 /* Configuration Reject */ -#define TERMREQ 5 /* Termination Request */ -#define TERMACK 6 /* Termination Ack */ -#define CODEREJ 7 /* Code Reject */ - - -/* - * Each FSM is described by an fsm structure and fsm callbacks. - */ -typedef struct fsm { - ppp_pcb *pcb; /* PPP Interface */ - const struct fsm_callbacks *callbacks; /* Callback routines */ - const char *term_reason; /* Reason for closing protocol */ - u8_t seen_ack; /* Have received valid Ack/Nak/Rej to Req */ - /* -- This is our only flag, we might use u_int :1 if we have more flags */ - u16_t protocol; /* Data Link Layer Protocol field value */ - u8_t state; /* State */ - u8_t flags; /* Contains option bits */ - u8_t id; /* Current id */ - u8_t reqid; /* Current request id */ - u8_t retransmits; /* Number of retransmissions left */ - u8_t nakloops; /* Number of nak loops since last ack */ - u8_t rnakloops; /* Number of naks received */ - u8_t maxnakloops; /* Maximum number of nak loops tolerated - (necessary because IPCP require a custom large max nak loops value) */ - u8_t term_reason_len; /* Length of term_reason */ -} fsm; - - -typedef struct fsm_callbacks { - void (*resetci) /* Reset our Configuration Information */ - (fsm *); - int (*cilen) /* Length of our Configuration Information */ - (fsm *); - void (*addci) /* Add our Configuration Information */ - (fsm *, u_char *, int *); - int (*ackci) /* ACK our Configuration Information */ - (fsm *, u_char *, int); - int (*nakci) /* NAK our Configuration Information */ - (fsm *, u_char *, int, int); - int (*rejci) /* Reject our Configuration Information */ - (fsm *, u_char *, int); - int (*reqci) /* Request peer's Configuration Information */ - (fsm *, u_char *, int *, int); - void (*up) /* Called when fsm reaches PPP_FSM_OPENED state */ - (fsm *); - void (*down) /* Called when fsm leaves PPP_FSM_OPENED state */ - (fsm *); - void (*starting) /* Called when we want the lower layer */ - (fsm *); - void (*finished) /* Called when we don't want the lower layer */ - (fsm *); - void (*protreject) /* Called when Protocol-Reject received */ - (int); - void (*retransmit) /* Retransmission is necessary */ - (fsm *); - int (*extcode) /* Called when unknown code received */ - (fsm *, int, int, u_char *, int); - const char *proto_name; /* String name for protocol (for messages) */ -} fsm_callbacks; - - -/* - * Link states. - */ -#define PPP_FSM_INITIAL 0 /* Down, hasn't been opened */ -#define PPP_FSM_STARTING 1 /* Down, been opened */ -#define PPP_FSM_CLOSED 2 /* Up, hasn't been opened */ -#define PPP_FSM_STOPPED 3 /* Open, waiting for down event */ -#define PPP_FSM_CLOSING 4 /* Terminating the connection, not open */ -#define PPP_FSM_STOPPING 5 /* Terminating, but open */ -#define PPP_FSM_REQSENT 6 /* We've sent a Config Request */ -#define PPP_FSM_ACKRCVD 7 /* We've received a Config Ack */ -#define PPP_FSM_ACKSENT 8 /* We've sent a Config Ack */ -#define PPP_FSM_OPENED 9 /* Connection available */ - - -/* - * Flags - indicate options controlling FSM operation - */ -#define OPT_PASSIVE 1 /* Don't die if we don't get a response */ -#define OPT_RESTART 2 /* Treat 2nd OPEN as DOWN, UP */ -#define OPT_SILENT 4 /* Wait for peer to speak first */ - - -/* - * Timeouts. - */ -#if 0 /* moved to ppp_opts.h */ -#define DEFTIMEOUT 3 /* Timeout time in seconds */ -#define DEFMAXTERMREQS 2 /* Maximum Terminate-Request transmissions */ -#define DEFMAXCONFREQS 10 /* Maximum Configure-Request transmissions */ -#define DEFMAXNAKLOOPS 5 /* Maximum number of nak loops */ -#endif /* moved to ppp_opts.h */ - - -/* - * Prototypes - */ -void fsm_init(fsm *f); -void fsm_lowerup(fsm *f); -void fsm_lowerdown(fsm *f); -void fsm_open(fsm *f); -void fsm_close(fsm *f, const char *reason); -void fsm_input(fsm *f, u_char *inpacket, int l); -void fsm_protreject(fsm *f); -void fsm_sdata(fsm *f, u_char code, u_char id, const u_char *data, int datalen); - -#ifdef __cplusplus -} -#endif - -#endif /* FSM_H */ -#endif /* PPP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/ipcp.h b/Middlewares/Third_Party/LwIP/src/include/netif/ppp/ipcp.h deleted file mode 100644 index 32fdd1c..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/ipcp.h +++ /dev/null @@ -1,134 +0,0 @@ -/* - * ipcp.h - IP Control Protocol definitions. - * - * Copyright (c) 1984-2000 Carnegie Mellon University. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The name "Carnegie Mellon University" must not be used to - * endorse or promote products derived from this software without - * prior written permission. For permission or any legal - * details, please contact - * Office of Technology Transfer - * Carnegie Mellon University - * 5000 Forbes Avenue - * Pittsburgh, PA 15213-3890 - * (412) 268-4387, fax: (412) 268-7395 - * tech-transfer@andrew.cmu.edu - * - * 4. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Computing Services - * at Carnegie Mellon University (http://www.cmu.edu/computing/)." - * - * CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE - * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * $Id: ipcp.h,v 1.14 2002/12/04 23:03:32 paulus Exp $ - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && PPP_IPV4_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#ifndef IPCP_H -#define IPCP_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Options. - */ -#define CI_ADDRS 1 /* IP Addresses */ -#if VJ_SUPPORT -#define CI_COMPRESSTYPE 2 /* Compression Type */ -#endif /* VJ_SUPPORT */ -#define CI_ADDR 3 - -#if LWIP_DNS -#define CI_MS_DNS1 129 /* Primary DNS value */ -#define CI_MS_DNS2 131 /* Secondary DNS value */ -#endif /* LWIP_DNS */ -#if 0 /* UNUSED - WINS */ -#define CI_MS_WINS1 130 /* Primary WINS value */ -#define CI_MS_WINS2 132 /* Secondary WINS value */ -#endif /* UNUSED - WINS */ - -#if VJ_SUPPORT -#define MAX_STATES 16 /* from slcompress.h */ - -#define IPCP_VJMODE_OLD 1 /* "old" mode (option # = 0x0037) */ -#define IPCP_VJMODE_RFC1172 2 /* "old-rfc"mode (option # = 0x002d) */ -#define IPCP_VJMODE_RFC1332 3 /* "new-rfc"mode (option # = 0x002d, */ - /* maxslot and slot number compression) */ - -#define IPCP_VJ_COMP 0x002d /* current value for VJ compression option*/ -#define IPCP_VJ_COMP_OLD 0x0037 /* "old" (i.e, broken) value for VJ */ - /* compression option*/ -#endif /* VJ_SUPPORT */ - -typedef struct ipcp_options { - unsigned int neg_addr :1; /* Negotiate IP Address? */ - unsigned int old_addrs :1; /* Use old (IP-Addresses) option? */ - unsigned int req_addr :1; /* Ask peer to send IP address? */ -#if 0 /* UNUSED */ - unsigned int default_route :1; /* Assign default route through interface? */ - unsigned int replace_default_route :1; /* Replace default route through interface? */ -#endif /* UNUSED */ -#if 0 /* UNUSED - PROXY ARP */ - unsigned int proxy_arp :1; /* Make proxy ARP entry for peer? */ -#endif /* UNUSED - PROXY ARP */ -#if VJ_SUPPORT - unsigned int neg_vj :1; /* Van Jacobson Compression? */ - unsigned int old_vj :1; /* use old (short) form of VJ option? */ - unsigned int cflag :1; -#endif /* VJ_SUPPORT */ - unsigned int accept_local :1; /* accept peer's value for ouraddr */ - unsigned int accept_remote :1; /* accept peer's value for hisaddr */ -#if LWIP_DNS - unsigned int req_dns1 :1; /* Ask peer to send primary DNS address? */ - unsigned int req_dns2 :1; /* Ask peer to send secondary DNS address? */ -#endif /* LWIP_DNS */ - - u32_t ouraddr, hisaddr; /* Addresses in NETWORK BYTE ORDER */ -#if LWIP_DNS - u32_t dnsaddr[2]; /* Primary and secondary MS DNS entries */ -#endif /* LWIP_DNS */ -#if 0 /* UNUSED - WINS */ - u32_t winsaddr[2]; /* Primary and secondary MS WINS entries */ -#endif /* UNUSED - WINS */ - -#if VJ_SUPPORT - u16_t vj_protocol; /* protocol value to use in VJ option */ - u8_t maxslotindex; /* values for RFC1332 VJ compression neg. */ -#endif /* VJ_SUPPORT */ -} ipcp_options; - -#if 0 /* UNUSED, already defined by lwIP */ -char *ip_ntoa (u32_t); -#endif /* UNUSED, already defined by lwIP */ - -extern const struct protent ipcp_protent; - -#ifdef __cplusplus -} -#endif - -#endif /* IPCP_H */ -#endif /* PPP_SUPPORT && PPP_IPV4_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/ipv6cp.h b/Middlewares/Third_Party/LwIP/src/include/netif/ppp/ipv6cp.h deleted file mode 100644 index 9099973..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/ipv6cp.h +++ /dev/null @@ -1,191 +0,0 @@ -/* - * ipv6cp.h - PPP IPV6 Control Protocol. - * - * Copyright (c) 1999 Tommi Komulainen. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The name(s) of the authors of this software must not be used to - * endorse or promote products derived from this software without - * prior written permission. - * - * 4. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Tommi Komulainen - * ". - * - * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY - * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - */ - -/* Original version, based on RFC2023 : - - Copyright (c) 1995, 1996, 1997 Francis.Dupont@inria.fr, INRIA Rocquencourt, - Alain.Durand@imag.fr, IMAG, - Jean-Luc.Richier@imag.fr, IMAG-LSR. - - Copyright (c) 1998, 1999 Francis.Dupont@inria.fr, GIE DYADE, - Alain.Durand@imag.fr, IMAG, - Jean-Luc.Richier@imag.fr, IMAG-LSR. - - Ce travail a été fait au sein du GIE DYADE (Groupement d'Intérêt - Économique ayant pour membres BULL S.A. et l'INRIA). - - Ce logiciel informatique est disponible aux conditions - usuelles dans la recherche, c'est-à-dire qu'il peut - être utilisé, copié, modifié, distribué à l'unique - condition que ce texte soit conservé afin que - l'origine de ce logiciel soit reconnue. - - Le nom de l'Institut National de Recherche en Informatique - et en Automatique (INRIA), de l'IMAG, ou d'une personne morale - ou physique ayant participé à l'élaboration de ce logiciel ne peut - être utilisé sans son accord préalable explicite. - - Ce logiciel est fourni tel quel sans aucune garantie, - support ou responsabilité d'aucune sorte. - Ce logiciel est dérivé de sources d'origine - "University of California at Berkeley" et - "Digital Equipment Corporation" couvertes par des copyrights. - - L'Institut d'Informatique et de Mathématiques Appliquées de Grenoble (IMAG) - est une fédération d'unités mixtes de recherche du CNRS, de l'Institut National - Polytechnique de Grenoble et de l'Université Joseph Fourier regroupant - sept laboratoires dont le laboratoire Logiciels, Systèmes, Réseaux (LSR). - - This work has been done in the context of GIE DYADE (joint R & D venture - between BULL S.A. and INRIA). - - This software is available with usual "research" terms - with the aim of retain credits of the software. - Permission to use, copy, modify and distribute this software for any - purpose and without fee is hereby granted, provided that the above - copyright notice and this permission notice appear in all copies, - and the name of INRIA, IMAG, or any contributor not be used in advertising - or publicity pertaining to this material without the prior explicit - permission. The software is provided "as is" without any - warranties, support or liabilities of any kind. - This software is derived from source code from - "University of California at Berkeley" and - "Digital Equipment Corporation" protected by copyrights. - - Grenoble's Institute of Computer Science and Applied Mathematics (IMAG) - is a federation of seven research units funded by the CNRS, National - Polytechnic Institute of Grenoble and University Joseph Fourier. - The research unit in Software, Systems, Networks (LSR) is member of IMAG. -*/ - -/* - * Derived from : - * - * - * ipcp.h - IP Control Protocol definitions. - * - * Copyright (c) 1984-2000 Carnegie Mellon University. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The name "Carnegie Mellon University" must not be used to - * endorse or promote products derived from this software without - * prior written permission. For permission or any legal - * details, please contact - * Office of Technology Transfer - * Carnegie Mellon University - * 5000 Forbes Avenue - * Pittsburgh, PA 15213-3890 - * (412) 268-4387, fax: (412) 268-7395 - * tech-transfer@andrew.cmu.edu - * - * 4. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Computing Services - * at Carnegie Mellon University (http://www.cmu.edu/computing/)." - * - * CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE - * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * $Id: ipv6cp.h,v 1.7 2002/12/04 23:03:32 paulus Exp $ - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && PPP_IPV6_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#ifndef IPV6CP_H -#define IPV6CP_H - -#include "eui64.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Options. - */ -#define CI_IFACEID 1 /* Interface Identifier */ -#ifdef IPV6CP_COMP -#define CI_COMPRESSTYPE 2 /* Compression Type */ -#endif /* IPV6CP_COMP */ - -/* No compression types yet defined. - *#define IPV6CP_COMP 0x004f - */ -typedef struct ipv6cp_options { - unsigned int neg_ifaceid :1; /* Negotiate interface identifier? */ - unsigned int req_ifaceid :1; /* Ask peer to send interface identifier? */ - unsigned int accept_local :1; /* accept peer's value for iface id? */ - unsigned int opt_local :1; /* ourtoken set by option */ - unsigned int opt_remote :1; /* histoken set by option */ - unsigned int use_ip :1; /* use IP as interface identifier */ -#if 0 - unsigned int use_persistent :1; /* use uniquely persistent value for address */ -#endif -#ifdef IPV6CP_COMP - unsigned int neg_vj :1; /* Van Jacobson Compression? */ -#endif /* IPV6CP_COMP */ - -#ifdef IPV6CP_COMP - u_short vj_protocol; /* protocol value to use in VJ option */ -#endif /* IPV6CP_COMP */ - eui64_t ourid, hisid; /* Interface identifiers */ -} ipv6cp_options; - -extern const struct protent ipv6cp_protent; - -#ifdef __cplusplus -} -#endif - -#endif /* IPV6CP_H */ -#endif /* PPP_SUPPORT && PPP_IPV6_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/lcp.h b/Middlewares/Third_Party/LwIP/src/include/netif/ppp/lcp.h deleted file mode 100644 index 18ad1cb..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/lcp.h +++ /dev/null @@ -1,179 +0,0 @@ -/* - * lcp.h - Link Control Protocol definitions. - * - * Copyright (c) 1984-2000 Carnegie Mellon University. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The name "Carnegie Mellon University" must not be used to - * endorse or promote products derived from this software without - * prior written permission. For permission or any legal - * details, please contact - * Office of Technology Transfer - * Carnegie Mellon University - * 5000 Forbes Avenue - * Pittsburgh, PA 15213-3890 - * (412) 268-4387, fax: (412) 268-7395 - * tech-transfer@andrew.cmu.edu - * - * 4. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Computing Services - * at Carnegie Mellon University (http://www.cmu.edu/computing/)." - * - * CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE - * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * $Id: lcp.h,v 1.20 2004/11/14 22:53:42 carlsonj Exp $ - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#ifndef LCP_H -#define LCP_H - -#include "ppp.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Options. - */ -#define CI_VENDOR 0 /* Vendor Specific */ -#define CI_MRU 1 /* Maximum Receive Unit */ -#define CI_ASYNCMAP 2 /* Async Control Character Map */ -#define CI_AUTHTYPE 3 /* Authentication Type */ -#define CI_QUALITY 4 /* Quality Protocol */ -#define CI_MAGICNUMBER 5 /* Magic Number */ -#define CI_PCOMPRESSION 7 /* Protocol Field Compression */ -#define CI_ACCOMPRESSION 8 /* Address/Control Field Compression */ -#define CI_FCSALTERN 9 /* FCS-Alternatives */ -#define CI_SDP 10 /* Self-Describing-Pad */ -#define CI_NUMBERED 11 /* Numbered-Mode */ -#define CI_CALLBACK 13 /* callback */ -#define CI_MRRU 17 /* max reconstructed receive unit; multilink */ -#define CI_SSNHF 18 /* short sequence numbers for multilink */ -#define CI_EPDISC 19 /* endpoint discriminator */ -#define CI_MPPLUS 22 /* Multi-Link-Plus-Procedure */ -#define CI_LDISC 23 /* Link-Discriminator */ -#define CI_LCPAUTH 24 /* LCP Authentication */ -#define CI_COBS 25 /* Consistent Overhead Byte Stuffing */ -#define CI_PREFELIS 26 /* Prefix Elision */ -#define CI_MPHDRFMT 27 /* MP Header Format */ -#define CI_I18N 28 /* Internationalization */ -#define CI_SDL 29 /* Simple Data Link */ - -/* - * LCP-specific packet types (code numbers). - */ -#define PROTREJ 8 /* Protocol Reject */ -#define ECHOREQ 9 /* Echo Request */ -#define ECHOREP 10 /* Echo Reply */ -#define DISCREQ 11 /* Discard Request */ -#define IDENTIF 12 /* Identification */ -#define TIMEREM 13 /* Time Remaining */ - -/* Value used as data for CI_CALLBACK option */ -#define CBCP_OPT 6 /* Use callback control protocol */ - -#if 0 /* moved to ppp_opts.h */ -#define DEFMRU 1500 /* Try for this */ -#define MINMRU 128 /* No MRUs below this */ -#define MAXMRU 16384 /* Normally limit MRU to this */ -#endif /* moved to ppp_opts.h */ - -/* An endpoint discriminator, used with multilink. */ -#define MAX_ENDP_LEN 20 /* maximum length of discriminator value */ -struct epdisc { - unsigned char class_; /* -- The word "class" is reserved in C++. */ - unsigned char length; - unsigned char value[MAX_ENDP_LEN]; -}; - -/* - * The state of options is described by an lcp_options structure. - */ -typedef struct lcp_options { - unsigned int passive :1; /* Don't die if we don't get a response */ - unsigned int silent :1; /* Wait for the other end to start first */ -#if 0 /* UNUSED */ - unsigned int restart :1; /* Restart vs. exit after close */ -#endif /* UNUSED */ - unsigned int neg_mru :1; /* Negotiate the MRU? */ - unsigned int neg_asyncmap :1; /* Negotiate the async map? */ -#if PAP_SUPPORT - unsigned int neg_upap :1; /* Ask for UPAP authentication? */ -#endif /* PAP_SUPPORT */ -#if CHAP_SUPPORT - unsigned int neg_chap :1; /* Ask for CHAP authentication? */ -#endif /* CHAP_SUPPORT */ -#if EAP_SUPPORT - unsigned int neg_eap :1; /* Ask for EAP authentication? */ -#endif /* EAP_SUPPORT */ - unsigned int neg_magicnumber :1; /* Ask for magic number? */ - unsigned int neg_pcompression :1; /* HDLC Protocol Field Compression? */ - unsigned int neg_accompression :1; /* HDLC Address/Control Field Compression? */ -#if LQR_SUPPORT - unsigned int neg_lqr :1; /* Negotiate use of Link Quality Reports */ -#endif /* LQR_SUPPORT */ - unsigned int neg_cbcp :1; /* Negotiate use of CBCP */ -#ifdef HAVE_MULTILINK - unsigned int neg_mrru :1; /* negotiate multilink MRRU */ -#endif /* HAVE_MULTILINK */ - unsigned int neg_ssnhf :1; /* negotiate short sequence numbers */ - unsigned int neg_endpoint :1; /* negotiate endpoint discriminator */ - - u16_t mru; /* Value of MRU */ -#ifdef HAVE_MULTILINK - u16_t mrru; /* Value of MRRU, and multilink enable */ -#endif /* MULTILINK */ -#if CHAP_SUPPORT - u8_t chap_mdtype; /* which MD types (hashing algorithm) */ -#endif /* CHAP_SUPPORT */ - u32_t asyncmap; /* Value of async map */ - u32_t magicnumber; - u8_t numloops; /* Number of loops during magic number neg. */ -#if LQR_SUPPORT - u32_t lqr_period; /* Reporting period for LQR 1/100ths second */ -#endif /* LQR_SUPPORT */ - struct epdisc endpoint; /* endpoint discriminator */ -} lcp_options; - -void lcp_open(ppp_pcb *pcb); -void lcp_close(ppp_pcb *pcb, const char *reason); -void lcp_lowerup(ppp_pcb *pcb); -void lcp_lowerdown(ppp_pcb *pcb); -void lcp_sprotrej(ppp_pcb *pcb, u_char *p, int len); /* send protocol reject */ - -extern const struct protent lcp_protent; - -#if 0 /* moved to ppp_opts.h */ -/* Default number of times we receive our magic number from the peer - before deciding the link is looped-back. */ -#define DEFLOOPBACKFAIL 10 -#endif /* moved to ppp_opts.h */ - -#ifdef __cplusplus -} -#endif - -#endif /* LCP_H */ -#endif /* PPP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/magic.h b/Middlewares/Third_Party/LwIP/src/include/netif/ppp/magic.h deleted file mode 100644 index a165e18..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/magic.h +++ /dev/null @@ -1,130 +0,0 @@ -/* - * magic.h - PPP Magic Number definitions. - * - * Copyright (c) 1984-2000 Carnegie Mellon University. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The name "Carnegie Mellon University" must not be used to - * endorse or promote products derived from this software without - * prior written permission. For permission or any legal - * details, please contact - * Office of Technology Transfer - * Carnegie Mellon University - * 5000 Forbes Avenue - * Pittsburgh, PA 15213-3890 - * (412) 268-4387, fax: (412) 268-7395 - * tech-transfer@andrew.cmu.edu - * - * 4. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Computing Services - * at Carnegie Mellon University (http://www.cmu.edu/computing/)." - * - * CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE - * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * $Id: magic.h,v 1.5 2003/06/11 23:56:26 paulus Exp $ - */ -/***************************************************************************** -* randm.h - Random number generator header file. -* -* Copyright (c) 2003 by Marc Boucher, Services Informatiques (MBSI) inc. -* Copyright (c) 1998 Global Election Systems Inc. -* -* The authors hereby grant permission to use, copy, modify, distribute, -* and license this software and its documentation for any purpose, provided -* that existing copyright notices are retained in all copies and that this -* notice and the following disclaimer are included verbatim in any -* distributions. No written agreement, license, or royalty fee is required -* for any of the authorized uses. -* -* THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS *AS IS* AND ANY EXPRESS OR -* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -* IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT -* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -* -****************************************************************************** -* REVISION HISTORY -* -* 03-01-01 Marc Boucher -* Ported to lwIP. -* 98-05-29 Guy Lancaster , Global Election Systems Inc. -* Extracted from avos. -*****************************************************************************/ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#ifndef MAGIC_H -#define MAGIC_H - -#ifdef __cplusplus -extern "C" { -#endif - -/*********************** -*** PUBLIC FUNCTIONS *** -***********************/ - -/* - * Initialize the random number generator. - */ -void magic_init(void); - -/* - * Randomize our random seed value. To be called for truely random events - * such as user operations and network traffic. - */ -void magic_randomize(void); - -/* - * Return a new random number. - */ -u32_t magic(void); /* Returns the next magic number */ - -/* - * Fill buffer with random bytes - * - * Use the random pool to generate random data. This degrades to pseudo - * random when used faster than randomness is supplied using magic_churnrand(). - * Thus it's important to make sure that the results of this are not - * published directly because one could predict the next result to at - * least some degree. Also, it's important to get a good seed before - * the first use. - */ -void magic_random_bytes(unsigned char *buf, u32_t buf_len); - -/* - * Return a new random number between 0 and (2^pow)-1 included. - */ -u32_t magic_pow(u8_t pow); - -#ifdef __cplusplus -} -#endif - -#endif /* MAGIC_H */ - -#endif /* PPP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/mppe.h b/Middlewares/Third_Party/LwIP/src/include/netif/ppp/mppe.h deleted file mode 100644 index 5de1128..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/mppe.h +++ /dev/null @@ -1,181 +0,0 @@ -/* - * mppe.h - Definitions for MPPE - * - * Copyright (c) 2008 Paul Mackerras. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The name(s) of the authors of this software must not be used to - * endorse or promote products derived from this software without - * prior written permission. - * - * 4. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Paul Mackerras - * ". - * - * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY - * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && MPPE_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#ifndef MPPE_H -#define MPPE_H - -#include "netif/ppp/pppcrypt.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define MPPE_PAD 4 /* MPPE growth per frame */ -#define MPPE_MAX_KEY_LEN 16 /* largest key length (128-bit) */ - -/* option bits for ccp_options.mppe */ -#define MPPE_OPT_40 0x01 /* 40 bit */ -#define MPPE_OPT_128 0x02 /* 128 bit */ -#define MPPE_OPT_STATEFUL 0x04 /* stateful mode */ -/* unsupported opts */ -#define MPPE_OPT_56 0x08 /* 56 bit */ -#define MPPE_OPT_MPPC 0x10 /* MPPC compression */ -#define MPPE_OPT_D 0x20 /* Unknown */ -#define MPPE_OPT_UNSUPPORTED (MPPE_OPT_56|MPPE_OPT_MPPC|MPPE_OPT_D) -#define MPPE_OPT_UNKNOWN 0x40 /* Bits !defined in RFC 3078 were set */ - -/* - * This is not nice ... the alternative is a bitfield struct though. - * And unfortunately, we cannot share the same bits for the option - * names above since C and H are the same bit. We could do a u_int32 - * but then we have to do a lwip_htonl() all the time and/or we still need - * to know which octet is which. - */ -#define MPPE_C_BIT 0x01 /* MPPC */ -#define MPPE_D_BIT 0x10 /* Obsolete, usage unknown */ -#define MPPE_L_BIT 0x20 /* 40-bit */ -#define MPPE_S_BIT 0x40 /* 128-bit */ -#define MPPE_M_BIT 0x80 /* 56-bit, not supported */ -#define MPPE_H_BIT 0x01 /* Stateless (in a different byte) */ - -/* Does not include H bit; used for least significant octet only. */ -#define MPPE_ALL_BITS (MPPE_D_BIT|MPPE_L_BIT|MPPE_S_BIT|MPPE_M_BIT|MPPE_H_BIT) - -/* Build a CI from mppe opts (see RFC 3078) */ -#define MPPE_OPTS_TO_CI(opts, ci) \ - do { \ - u_char *ptr = ci; /* u_char[4] */ \ - \ - /* H bit */ \ - if (opts & MPPE_OPT_STATEFUL) \ - *ptr++ = 0x0; \ - else \ - *ptr++ = MPPE_H_BIT; \ - *ptr++ = 0; \ - *ptr++ = 0; \ - \ - /* S,L bits */ \ - *ptr = 0; \ - if (opts & MPPE_OPT_128) \ - *ptr |= MPPE_S_BIT; \ - if (opts & MPPE_OPT_40) \ - *ptr |= MPPE_L_BIT; \ - /* M,D,C bits not supported */ \ - } while (/* CONSTCOND */ 0) - -/* The reverse of the above */ -#define MPPE_CI_TO_OPTS(ci, opts) \ - do { \ - const u_char *ptr = ci; /* u_char[4] */ \ - \ - opts = 0; \ - \ - /* H bit */ \ - if (!(ptr[0] & MPPE_H_BIT)) \ - opts |= MPPE_OPT_STATEFUL; \ - \ - /* S,L bits */ \ - if (ptr[3] & MPPE_S_BIT) \ - opts |= MPPE_OPT_128; \ - if (ptr[3] & MPPE_L_BIT) \ - opts |= MPPE_OPT_40; \ - \ - /* M,D,C bits */ \ - if (ptr[3] & MPPE_M_BIT) \ - opts |= MPPE_OPT_56; \ - if (ptr[3] & MPPE_D_BIT) \ - opts |= MPPE_OPT_D; \ - if (ptr[3] & MPPE_C_BIT) \ - opts |= MPPE_OPT_MPPC; \ - \ - /* Other bits */ \ - if (ptr[0] & ~MPPE_H_BIT) \ - opts |= MPPE_OPT_UNKNOWN; \ - if (ptr[1] || ptr[2]) \ - opts |= MPPE_OPT_UNKNOWN; \ - if (ptr[3] & ~MPPE_ALL_BITS) \ - opts |= MPPE_OPT_UNKNOWN; \ - } while (/* CONSTCOND */ 0) - -/* Shared MPPE padding between MSCHAP and MPPE */ -#define SHA1_PAD_SIZE 40 - -static const u8_t mppe_sha1_pad1[SHA1_PAD_SIZE] = { - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 -}; -static const u8_t mppe_sha1_pad2[SHA1_PAD_SIZE] = { - 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, - 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, - 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, - 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2 -}; - -/* - * State for an MPPE (de)compressor. - */ -typedef struct ppp_mppe_state { - lwip_arc4_context arc4; - u8_t master_key[MPPE_MAX_KEY_LEN]; - u8_t session_key[MPPE_MAX_KEY_LEN]; - u8_t keylen; /* key length in bytes */ - /* NB: 128-bit == 16, 40-bit == 8! - * If we want to support 56-bit, the unit has to change to bits - */ - u8_t bits; /* MPPE control bits */ - u16_t ccount; /* 12-bit coherency count (seqno) */ - u16_t sanity_errors; /* take down LCP if too many */ - unsigned int stateful :1; /* stateful mode flag */ - unsigned int discard :1; /* stateful mode packet loss flag */ -} ppp_mppe_state; - -void mppe_set_key(ppp_pcb *pcb, ppp_mppe_state *state, u8_t *key); -void mppe_init(ppp_pcb *pcb, ppp_mppe_state *state, u8_t options); -void mppe_comp_reset(ppp_pcb *pcb, ppp_mppe_state *state); -err_t mppe_compress(ppp_pcb *pcb, ppp_mppe_state *state, struct pbuf **pb, u16_t protocol); -void mppe_decomp_reset(ppp_pcb *pcb, ppp_mppe_state *state); -err_t mppe_decompress(ppp_pcb *pcb, ppp_mppe_state *state, struct pbuf **pb); - -#ifdef __cplusplus -} -#endif - -#endif /* MPPE_H */ -#endif /* PPP_SUPPORT && MPPE_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp.h b/Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp.h deleted file mode 100644 index 3d73c36..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp.h +++ /dev/null @@ -1,698 +0,0 @@ -/***************************************************************************** -* ppp.h - Network Point to Point Protocol header file. -* -* Copyright (c) 2003 by Marc Boucher, Services Informatiques (MBSI) inc. -* portions Copyright (c) 1997 Global Election Systems Inc. -* -* The authors hereby grant permission to use, copy, modify, distribute, -* and license this software and its documentation for any purpose, provided -* that existing copyright notices are retained in all copies and that this -* notice and the following disclaimer are included verbatim in any -* distributions. No written agreement, license, or royalty fee is required -* for any of the authorized uses. -* -* THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS *AS IS* AND ANY EXPRESS OR -* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -* IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT -* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -* -****************************************************************************** -* REVISION HISTORY -* -* 03-01-01 Marc Boucher -* Ported to lwIP. -* 97-11-05 Guy Lancaster , Global Election Systems Inc. -* Original derived from BSD codes. -*****************************************************************************/ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#ifndef PPP_H -#define PPP_H - -#include "lwip/def.h" -#include "lwip/stats.h" -#include "lwip/mem.h" -#include "lwip/netif.h" -#include "lwip/sys.h" -#include "lwip/timeouts.h" -#if PPP_IPV6_SUPPORT -#include "lwip/ip6_addr.h" -#endif /* PPP_IPV6_SUPPORT */ - -#ifdef __cplusplus -extern "C" { -#endif - -/* Disable non-working or rarely used PPP feature, so rarely that we don't want to bloat ppp_opts.h with them */ -#ifndef PPP_OPTIONS -#define PPP_OPTIONS 0 -#endif - -#ifndef PPP_NOTIFY -#define PPP_NOTIFY 0 -#endif - -#ifndef PPP_REMOTENAME -#define PPP_REMOTENAME 0 -#endif - -#ifndef PPP_IDLETIMELIMIT -#define PPP_IDLETIMELIMIT 0 -#endif - -#ifndef PPP_LCP_ADAPTIVE -#define PPP_LCP_ADAPTIVE 0 -#endif - -#ifndef PPP_MAXCONNECT -#define PPP_MAXCONNECT 0 -#endif - -#ifndef PPP_ALLOWED_ADDRS -#define PPP_ALLOWED_ADDRS 0 -#endif - -#ifndef PPP_PROTOCOLNAME -#define PPP_PROTOCOLNAME 0 -#endif - -#ifndef PPP_STATS_SUPPORT -#define PPP_STATS_SUPPORT 0 -#endif - -#ifndef DEFLATE_SUPPORT -#define DEFLATE_SUPPORT 0 -#endif - -#ifndef BSDCOMPRESS_SUPPORT -#define BSDCOMPRESS_SUPPORT 0 -#endif - -#ifndef PREDICTOR_SUPPORT -#define PREDICTOR_SUPPORT 0 -#endif - -/************************* -*** PUBLIC DEFINITIONS *** -*************************/ - -/* - * The basic PPP frame. - */ -#define PPP_HDRLEN 4 /* octets for standard ppp header */ -#define PPP_FCSLEN 2 /* octets for FCS */ - -/* - * Values for phase. - */ -#define PPP_PHASE_DEAD 0 -#define PPP_PHASE_MASTER 1 -#define PPP_PHASE_HOLDOFF 2 -#define PPP_PHASE_INITIALIZE 3 -#define PPP_PHASE_SERIALCONN 4 -#define PPP_PHASE_DORMANT 5 -#define PPP_PHASE_ESTABLISH 6 -#define PPP_PHASE_AUTHENTICATE 7 -#define PPP_PHASE_CALLBACK 8 -#define PPP_PHASE_NETWORK 9 -#define PPP_PHASE_RUNNING 10 -#define PPP_PHASE_TERMINATE 11 -#define PPP_PHASE_DISCONNECT 12 - -/* Error codes. */ -#define PPPERR_NONE 0 /* No error. */ -#define PPPERR_PARAM 1 /* Invalid parameter. */ -#define PPPERR_OPEN 2 /* Unable to open PPP session. */ -#define PPPERR_DEVICE 3 /* Invalid I/O device for PPP. */ -#define PPPERR_ALLOC 4 /* Unable to allocate resources. */ -#define PPPERR_USER 5 /* User interrupt. */ -#define PPPERR_CONNECT 6 /* Connection lost. */ -#define PPPERR_AUTHFAIL 7 /* Failed authentication challenge. */ -#define PPPERR_PROTOCOL 8 /* Failed to meet protocol. */ -#define PPPERR_PEERDEAD 9 /* Connection timeout */ -#define PPPERR_IDLETIMEOUT 10 /* Idle Timeout */ -#define PPPERR_CONNECTTIME 11 /* Max connect time reached */ -#define PPPERR_LOOPBACK 12 /* Loopback detected */ - -/* Whether auth support is enabled at all */ -#define PPP_AUTH_SUPPORT (PAP_SUPPORT || CHAP_SUPPORT || EAP_SUPPORT) - -/************************ -*** PUBLIC DATA TYPES *** -************************/ - -/* - * Other headers require ppp_pcb definition for prototypes, but ppp_pcb - * require some structure definition from other headers as well, we are - * fixing the dependency loop here by declaring the ppp_pcb type then - * by including headers containing necessary struct definition for ppp_pcb - */ -typedef struct ppp_pcb_s ppp_pcb; - -/* Type definitions for BSD code. */ -#ifndef __u_char_defined -typedef unsigned long u_long; -typedef unsigned int u_int; -typedef unsigned short u_short; -typedef unsigned char u_char; -#endif - -#include "fsm.h" -#include "lcp.h" -#if CCP_SUPPORT -#include "ccp.h" -#endif /* CCP_SUPPORT */ -#if MPPE_SUPPORT -#include "mppe.h" -#endif /* MPPE_SUPPORT */ -#if PPP_IPV4_SUPPORT -#include "ipcp.h" -#endif /* PPP_IPV4_SUPPORT */ -#if PPP_IPV6_SUPPORT -#include "ipv6cp.h" -#endif /* PPP_IPV6_SUPPORT */ -#if PAP_SUPPORT -#include "upap.h" -#endif /* PAP_SUPPORT */ -#if CHAP_SUPPORT -#include "chap-new.h" -#endif /* CHAP_SUPPORT */ -#if EAP_SUPPORT -#include "eap.h" -#endif /* EAP_SUPPORT */ -#if VJ_SUPPORT -#include "vj.h" -#endif /* VJ_SUPPORT */ - -/* Link status callback function prototype */ -typedef void (*ppp_link_status_cb_fn)(ppp_pcb *pcb, int err_code, void *ctx); - -/* - * PPP configuration. - */ -typedef struct ppp_settings_s { - -#if PPP_SERVER && PPP_AUTH_SUPPORT - unsigned int auth_required :1; /* Peer is required to authenticate */ - unsigned int null_login :1; /* Username of "" and a password of "" are acceptable */ -#endif /* PPP_SERVER && PPP_AUTH_SUPPORT */ -#if PPP_REMOTENAME - unsigned int explicit_remote :1; /* remote_name specified with remotename opt */ -#endif /* PPP_REMOTENAME */ -#if PAP_SUPPORT - unsigned int refuse_pap :1; /* Don't proceed auth. with PAP */ -#endif /* PAP_SUPPORT */ -#if CHAP_SUPPORT - unsigned int refuse_chap :1; /* Don't proceed auth. with CHAP */ -#endif /* CHAP_SUPPORT */ -#if MSCHAP_SUPPORT - unsigned int refuse_mschap :1; /* Don't proceed auth. with MS-CHAP */ - unsigned int refuse_mschap_v2 :1; /* Don't proceed auth. with MS-CHAPv2 */ -#endif /* MSCHAP_SUPPORT */ -#if EAP_SUPPORT - unsigned int refuse_eap :1; /* Don't proceed auth. with EAP */ -#endif /* EAP_SUPPORT */ -#if LWIP_DNS - unsigned int usepeerdns :1; /* Ask peer for DNS adds */ -#endif /* LWIP_DNS */ - unsigned int persist :1; /* Persist mode, always try to open the connection */ -#if PRINTPKT_SUPPORT - unsigned int hide_password :1; /* Hide password in dumped packets */ -#endif /* PRINTPKT_SUPPORT */ - unsigned int noremoteip :1; /* Let him have no IP address */ - unsigned int lax_recv :1; /* accept control chars in asyncmap */ - unsigned int noendpoint :1; /* don't send/accept endpoint discriminator */ -#if PPP_LCP_ADAPTIVE - unsigned int lcp_echo_adaptive :1; /* request echo only if the link was idle */ -#endif /* PPP_LCP_ADAPTIVE */ -#if MPPE_SUPPORT - unsigned int require_mppe :1; /* Require MPPE (Microsoft Point to Point Encryption) */ - unsigned int refuse_mppe_40 :1; /* Allow MPPE 40-bit mode? */ - unsigned int refuse_mppe_128 :1; /* Allow MPPE 128-bit mode? */ - unsigned int refuse_mppe_stateful :1; /* Allow MPPE stateful mode? */ -#endif /* MPPE_SUPPORT */ - - u16_t listen_time; /* time to listen first (ms), waiting for peer to send LCP packet */ - -#if PPP_IDLETIMELIMIT - u16_t idle_time_limit; /* Disconnect if idle for this many seconds */ -#endif /* PPP_IDLETIMELIMIT */ -#if PPP_MAXCONNECT - u32_t maxconnect; /* Maximum connect time (seconds) */ -#endif /* PPP_MAXCONNECT */ - -#if PPP_AUTH_SUPPORT - /* auth data */ - const char *user; /* Username for PAP */ - const char *passwd; /* Password for PAP, secret for CHAP */ -#if PPP_REMOTENAME - char remote_name[MAXNAMELEN + 1]; /* Peer's name for authentication */ -#endif /* PPP_REMOTENAME */ - -#if PAP_SUPPORT - u8_t pap_timeout_time; /* Timeout (seconds) for auth-req retrans. */ - u8_t pap_max_transmits; /* Number of auth-reqs sent */ -#if PPP_SERVER - u8_t pap_req_timeout; /* Time to wait for auth-req from peer */ -#endif /* PPP_SERVER */ -#endif /* PAP_SUPPPORT */ - -#if CHAP_SUPPORT - u8_t chap_timeout_time; /* Timeout (seconds) for retransmitting req */ - u8_t chap_max_transmits; /* max # times to send challenge */ -#if PPP_SERVER - u8_t chap_rechallenge_time; /* Time to wait for auth-req from peer */ -#endif /* PPP_SERVER */ -#endif /* CHAP_SUPPPORT */ - -#if EAP_SUPPORT - u8_t eap_req_time; /* Time to wait (for retransmit/fail) */ - u8_t eap_allow_req; /* Max Requests allowed */ -#if PPP_SERVER - u8_t eap_timeout_time; /* Time to wait (for retransmit/fail) */ - u8_t eap_max_transmits; /* Max Requests allowed */ -#endif /* PPP_SERVER */ -#endif /* EAP_SUPPORT */ - -#endif /* PPP_AUTH_SUPPORT */ - - u8_t fsm_timeout_time; /* Timeout time in seconds */ - u8_t fsm_max_conf_req_transmits; /* Maximum Configure-Request transmissions */ - u8_t fsm_max_term_transmits; /* Maximum Terminate-Request transmissions */ - u8_t fsm_max_nak_loops; /* Maximum number of nak loops tolerated */ - - u8_t lcp_loopbackfail; /* Number of times we receive our magic number from the peer - before deciding the link is looped-back. */ - u8_t lcp_echo_interval; /* Interval between LCP echo-requests */ - u8_t lcp_echo_fails; /* Tolerance to unanswered echo-requests */ - -} ppp_settings; - -#if PPP_SERVER -struct ppp_addrs { -#if PPP_IPV4_SUPPORT - ip4_addr_t our_ipaddr, his_ipaddr, netmask; -#if LWIP_DNS - ip4_addr_t dns1, dns2; -#endif /* LWIP_DNS */ -#endif /* PPP_IPV4_SUPPORT */ -#if PPP_IPV6_SUPPORT - ip6_addr_t our6_ipaddr, his6_ipaddr; -#endif /* PPP_IPV6_SUPPORT */ -}; -#endif /* PPP_SERVER */ - -/* - * PPP interface control block. - */ -struct ppp_pcb_s { - ppp_settings settings; - const struct link_callbacks *link_cb; - void *link_ctx_cb; - void (*link_status_cb)(ppp_pcb *pcb, int err_code, void *ctx); /* Status change callback */ -#if PPP_NOTIFY_PHASE - void (*notify_phase_cb)(ppp_pcb *pcb, u8_t phase, void *ctx); /* Notify phase callback */ -#endif /* PPP_NOTIFY_PHASE */ - void *ctx_cb; /* Callbacks optional pointer */ - struct netif *netif; /* PPP interface */ - u8_t phase; /* where the link is at */ - u8_t err_code; /* Code indicating why interface is down. */ - - /* flags */ -#if PPP_IPV4_SUPPORT - unsigned int ask_for_local :1; /* request our address from peer */ - unsigned int ipcp_is_open :1; /* haven't called np_finished() */ - unsigned int ipcp_is_up :1; /* have called ipcp_up() */ - unsigned int if4_up :1; /* True when the IPv4 interface is up. */ -#if 0 /* UNUSED - PROXY ARP */ - unsigned int proxy_arp_set :1; /* Have created proxy arp entry */ -#endif /* UNUSED - PROXY ARP */ -#endif /* PPP_IPV4_SUPPORT */ -#if PPP_IPV6_SUPPORT - unsigned int ipv6cp_is_up :1; /* have called ip6cp_up() */ - unsigned int if6_up :1; /* True when the IPv6 interface is up. */ -#endif /* PPP_IPV6_SUPPORT */ - unsigned int lcp_echo_timer_running :1; /* set if a timer is running */ -#if VJ_SUPPORT - unsigned int vj_enabled :1; /* Flag indicating VJ compression enabled. */ -#endif /* VJ_SUPPORT */ -#if CCP_SUPPORT - unsigned int ccp_all_rejected :1; /* we rejected all peer's options */ -#endif /* CCP_SUPPORT */ -#if MPPE_SUPPORT - unsigned int mppe_keys_set :1; /* Have the MPPE keys been set? */ -#endif /* MPPE_SUPPORT */ - -#if PPP_AUTH_SUPPORT - /* auth data */ -#if PPP_SERVER && defined(HAVE_MULTILINK) - char peer_authname[MAXNAMELEN + 1]; /* The name by which the peer authenticated itself to us. */ -#endif /* PPP_SERVER && defined(HAVE_MULTILINK) */ - u16_t auth_pending; /* Records which authentication operations haven't completed yet. */ - u16_t auth_done; /* Records which authentication operations have been completed. */ - -#if PAP_SUPPORT - upap_state upap; /* PAP data */ -#endif /* PAP_SUPPORT */ - -#if CHAP_SUPPORT - chap_client_state chap_client; /* CHAP client data */ -#if PPP_SERVER - chap_server_state chap_server; /* CHAP server data */ -#endif /* PPP_SERVER */ -#endif /* CHAP_SUPPORT */ - -#if EAP_SUPPORT - eap_state eap; /* EAP data */ -#endif /* EAP_SUPPORT */ -#endif /* PPP_AUTH_SUPPORT */ - - fsm lcp_fsm; /* LCP fsm structure */ - lcp_options lcp_wantoptions; /* Options that we want to request */ - lcp_options lcp_gotoptions; /* Options that peer ack'd */ - lcp_options lcp_allowoptions; /* Options we allow peer to request */ - lcp_options lcp_hisoptions; /* Options that we ack'd */ - u16_t peer_mru; /* currently negotiated peer MRU */ - u8_t lcp_echos_pending; /* Number of outstanding echo msgs */ - u8_t lcp_echo_number; /* ID number of next echo frame */ - - u8_t num_np_open; /* Number of network protocols which we have opened. */ - u8_t num_np_up; /* Number of network protocols which have come up. */ - -#if VJ_SUPPORT - struct vjcompress vj_comp; /* Van Jacobson compression header. */ -#endif /* VJ_SUPPORT */ - -#if CCP_SUPPORT - fsm ccp_fsm; /* CCP fsm structure */ - ccp_options ccp_wantoptions; /* what to request the peer to use */ - ccp_options ccp_gotoptions; /* what the peer agreed to do */ - ccp_options ccp_allowoptions; /* what we'll agree to do */ - ccp_options ccp_hisoptions; /* what we agreed to do */ - u8_t ccp_localstate; /* Local state (mainly for handling reset-reqs and reset-acks). */ - u8_t ccp_receive_method; /* Method chosen on receive path */ - u8_t ccp_transmit_method; /* Method chosen on transmit path */ -#if MPPE_SUPPORT - ppp_mppe_state mppe_comp; /* MPPE "compressor" structure */ - ppp_mppe_state mppe_decomp; /* MPPE "decompressor" structure */ -#endif /* MPPE_SUPPORT */ -#endif /* CCP_SUPPORT */ - -#if PPP_IPV4_SUPPORT - fsm ipcp_fsm; /* IPCP fsm structure */ - ipcp_options ipcp_wantoptions; /* Options that we want to request */ - ipcp_options ipcp_gotoptions; /* Options that peer ack'd */ - ipcp_options ipcp_allowoptions; /* Options we allow peer to request */ - ipcp_options ipcp_hisoptions; /* Options that we ack'd */ -#endif /* PPP_IPV4_SUPPORT */ - -#if PPP_IPV6_SUPPORT - fsm ipv6cp_fsm; /* IPV6CP fsm structure */ - ipv6cp_options ipv6cp_wantoptions; /* Options that we want to request */ - ipv6cp_options ipv6cp_gotoptions; /* Options that peer ack'd */ - ipv6cp_options ipv6cp_allowoptions; /* Options we allow peer to request */ - ipv6cp_options ipv6cp_hisoptions; /* Options that we ack'd */ -#endif /* PPP_IPV6_SUPPORT */ -}; - -/************************ - *** PUBLIC FUNCTIONS *** - ************************/ - -/* - * WARNING: For multi-threads environment, all ppp_set_* functions most - * only be called while the PPP is in the dead phase (i.e. disconnected). - */ - -#if PPP_AUTH_SUPPORT -/* - * Set PPP authentication. - * - * Warning: Using PPPAUTHTYPE_ANY might have security consequences. - * RFC 1994 says: - * - * In practice, within or associated with each PPP server, there is a - * database which associates "user" names with authentication - * information ("secrets"). It is not anticipated that a particular - * named user would be authenticated by multiple methods. This would - * make the user vulnerable to attacks which negotiate the least secure - * method from among a set (such as PAP rather than CHAP). If the same - * secret was used, PAP would reveal the secret to be used later with - * CHAP. - * - * Instead, for each user name there should be an indication of exactly - * one method used to authenticate that user name. If a user needs to - * make use of different authentication methods under different - * circumstances, then distinct user names SHOULD be employed, each of - * which identifies exactly one authentication method. - * - * Default is none auth type, unset (NULL) user and passwd. - */ -#define PPPAUTHTYPE_NONE 0x00 -#define PPPAUTHTYPE_PAP 0x01 -#define PPPAUTHTYPE_CHAP 0x02 -#define PPPAUTHTYPE_MSCHAP 0x04 -#define PPPAUTHTYPE_MSCHAP_V2 0x08 -#define PPPAUTHTYPE_EAP 0x10 -#define PPPAUTHTYPE_ANY 0xff -void ppp_set_auth(ppp_pcb *pcb, u8_t authtype, const char *user, const char *passwd); - -/* - * If set, peer is required to authenticate. This is mostly necessary for PPP server support. - * - * Default is false. - */ -#define ppp_set_auth_required(ppp, boolval) (ppp->settings.auth_required = boolval) -#endif /* PPP_AUTH_SUPPORT */ - -#if PPP_IPV4_SUPPORT -/* - * Set PPP interface "our" and "his" IPv4 addresses. This is mostly necessary for PPP server - * support but it can also be used on a PPP link where each side choose its own IP address. - * - * Default is unset (0.0.0.0). - */ -#define ppp_set_ipcp_ouraddr(ppp, addr) do { ppp->ipcp_wantoptions.ouraddr = ip4_addr_get_u32(addr); \ - ppp->ask_for_local = ppp->ipcp_wantoptions.ouraddr != 0; } while(0) -#define ppp_set_ipcp_hisaddr(ppp, addr) (ppp->ipcp_wantoptions.hisaddr = ip4_addr_get_u32(addr)) -#if LWIP_DNS -/* - * Set DNS server addresses that are sent if the peer asks for them. This is mostly necessary - * for PPP server support. - * - * Default is unset (0.0.0.0). - */ -#define ppp_set_ipcp_dnsaddr(ppp, index, addr) (ppp->ipcp_allowoptions.dnsaddr[index] = ip4_addr_get_u32(addr)) - -/* - * If set, we ask the peer for up to 2 DNS server addresses. Received DNS server addresses are - * registered using the dns_setserver() function. - * - * Default is false. - */ -#define ppp_set_usepeerdns(ppp, boolval) (ppp->settings.usepeerdns = boolval) -#endif /* LWIP_DNS */ -#endif /* PPP_IPV4_SUPPORT */ - -#if MPPE_SUPPORT -/* Disable MPPE (Microsoft Point to Point Encryption). This parameter is exclusive. */ -#define PPP_MPPE_DISABLE 0x00 -/* Require the use of MPPE (Microsoft Point to Point Encryption). */ -#define PPP_MPPE_ENABLE 0x01 -/* Allow MPPE to use stateful mode. Stateless mode is still attempted first. */ -#define PPP_MPPE_ALLOW_STATEFUL 0x02 -/* Refuse the use of MPPE with 40-bit encryption. Conflict with PPP_MPPE_REFUSE_128. */ -#define PPP_MPPE_REFUSE_40 0x04 -/* Refuse the use of MPPE with 128-bit encryption. Conflict with PPP_MPPE_REFUSE_40. */ -#define PPP_MPPE_REFUSE_128 0x08 -/* - * Set MPPE configuration - * - * Default is disabled. - */ -void ppp_set_mppe(ppp_pcb *pcb, u8_t flags); -#endif /* MPPE_SUPPORT */ - -/* - * Wait for up to intval milliseconds for a valid PPP packet from the peer. - * At the end of this time, or when a valid PPP packet is received from the - * peer, we commence negotiation by sending our first LCP packet. - * - * Default is 0. - */ -#define ppp_set_listen_time(ppp, intval) (ppp->settings.listen_time = intval) - -/* - * If set, we will attempt to initiate a connection but if no reply is received from - * the peer, we will then just wait passively for a valid LCP packet from the peer. - * - * Default is false. - */ -#define ppp_set_passive(ppp, boolval) (ppp->lcp_wantoptions.passive = boolval) - -/* - * If set, we will not transmit LCP packets to initiate a connection until a valid - * LCP packet is received from the peer. This is what we usually call the server mode. - * - * Default is false. - */ -#define ppp_set_silent(ppp, boolval) (ppp->lcp_wantoptions.silent = boolval) - -/* - * If set, enable protocol field compression negotiation in both the receive and - * the transmit direction. - * - * Default is true. - */ -#define ppp_set_neg_pcomp(ppp, boolval) (ppp->lcp_wantoptions.neg_pcompression = \ - ppp->lcp_allowoptions.neg_pcompression = boolval) - -/* - * If set, enable Address/Control compression in both the receive and the transmit - * direction. - * - * Default is true. - */ -#define ppp_set_neg_accomp(ppp, boolval) (ppp->lcp_wantoptions.neg_accompression = \ - ppp->lcp_allowoptions.neg_accompression = boolval) - -/* - * If set, enable asyncmap negotiation. Otherwise forcing all control characters to - * be escaped for both the transmit and the receive direction. - * - * Default is true. - */ -#define ppp_set_neg_asyncmap(ppp, boolval) (ppp->lcp_wantoptions.neg_asyncmap = \ - ppp->lcp_allowoptions.neg_asyncmap = boolval) - -/* - * This option sets the Async-Control-Character-Map (ACCM) for this end of the link. - * The ACCM is a set of 32 bits, one for each of the ASCII control characters with - * values from 0 to 31, where a 1 bit indicates that the corresponding control - * character should not be used in PPP packets sent to this system. The map is - * an unsigned 32 bits integer where the least significant bit (00000001) represents - * character 0 and the most significant bit (80000000) represents character 31. - * We will then ask the peer to send these characters as a 2-byte escape sequence. - * - * Default is 0. - */ -#define ppp_set_asyncmap(ppp, intval) (ppp->lcp_wantoptions.asyncmap = intval) - -/* - * Set a PPP interface as the default network interface - * (used to output all packets for which no specific route is found). - */ -#define ppp_set_default(ppp) netif_set_default(ppp->netif) - -#if PPP_NOTIFY_PHASE -/* - * Set a PPP notify phase callback. - * - * This can be used for example to set a LED pattern depending on the - * current phase of the PPP session. - */ -typedef void (*ppp_notify_phase_cb_fn)(ppp_pcb *pcb, u8_t phase, void *ctx); -void ppp_set_notify_phase_callback(ppp_pcb *pcb, ppp_notify_phase_cb_fn notify_phase_cb); -#endif /* PPP_NOTIFY_PHASE */ - -/* - * Initiate a PPP connection. - * - * This can only be called if PPP is in the dead phase. - * - * Holdoff is the time to wait (in seconds) before initiating - * the connection. - * - * If this port connects to a modem, the modem connection must be - * established before calling this. - */ -err_t ppp_connect(ppp_pcb *pcb, u16_t holdoff); - -#if PPP_SERVER -/* - * Listen for an incoming PPP connection. - * - * This can only be called if PPP is in the dead phase. - * - * If this port connects to a modem, the modem connection must be - * established before calling this. - */ -err_t ppp_listen(ppp_pcb *pcb); -#endif /* PPP_SERVER */ - -/* - * Initiate the end of a PPP connection. - * Any outstanding packets in the queues are dropped. - * - * Setting nocarrier to 1 close the PPP connection without initiating the - * shutdown procedure. Always using nocarrier = 0 is still recommended, - * this is going to take a little longer time if your link is down, but - * is a safer choice for the PPP state machine. - * - * Return 0 on success, an error code on failure. - */ -err_t ppp_close(ppp_pcb *pcb, u8_t nocarrier); - -/* - * Release the control block. - * - * This can only be called if PPP is in the dead phase. - * - * You must use ppp_close() before if you wish to terminate - * an established PPP session. - * - * Return 0 on success, an error code on failure. - */ -err_t ppp_free(ppp_pcb *pcb); - -/* - * PPP IOCTL commands. - * - * Get the up status - 0 for down, non-zero for up. The argument must - * point to an int. - */ -#define PPPCTLG_UPSTATUS 0 - -/* - * Get the PPP error code. The argument must point to an int. - * Returns a PPPERR_* value. - */ -#define PPPCTLG_ERRCODE 1 - -/* - * Get the fd associated with a PPP over serial - */ -#define PPPCTLG_FD 2 - -/* - * Get and set parameters for the given connection. - * Return 0 on success, an error code on failure. - */ -err_t ppp_ioctl(ppp_pcb *pcb, u8_t cmd, void *arg); - -/* Get the PPP netif interface */ -#define ppp_netif(ppp) (ppp->netif) - -/* Set an lwIP-style status-callback for the selected PPP device */ -#define ppp_set_netif_statuscallback(ppp, status_cb) \ - netif_set_status_callback(ppp->netif, status_cb); - -/* Set an lwIP-style link-callback for the selected PPP device */ -#define ppp_set_netif_linkcallback(ppp, link_cb) \ - netif_set_link_callback(ppp->netif, link_cb); - -#ifdef __cplusplus -} -#endif - -#endif /* PPP_H */ - -#endif /* PPP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_impl.h b/Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_impl.h deleted file mode 100644 index 40843d5..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_impl.h +++ /dev/null @@ -1,722 +0,0 @@ -/***************************************************************************** -* ppp.h - Network Point to Point Protocol header file. -* -* Copyright (c) 2003 by Marc Boucher, Services Informatiques (MBSI) inc. -* portions Copyright (c) 1997 Global Election Systems Inc. -* -* The authors hereby grant permission to use, copy, modify, distribute, -* and license this software and its documentation for any purpose, provided -* that existing copyright notices are retained in all copies and that this -* notice and the following disclaimer are included verbatim in any -* distributions. No written agreement, license, or royalty fee is required -* for any of the authorized uses. -* -* THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS *AS IS* AND ANY EXPRESS OR -* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -* IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT -* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -* -****************************************************************************** -* REVISION HISTORY -* -* 03-01-01 Marc Boucher -* Ported to lwIP. -* 97-11-05 Guy Lancaster , Global Election Systems Inc. -* Original derived from BSD codes. -*****************************************************************************/ -#ifndef LWIP_HDR_PPP_IMPL_H -#define LWIP_HDR_PPP_IMPL_H - -#include "netif/ppp/ppp_opts.h" - -#if PPP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#ifdef PPP_INCLUDE_SETTINGS_HEADER -#include "ppp_settings.h" -#endif - -#include /* formats */ -#include -#include -#include /* strtol() */ - -#include "lwip/netif.h" -#include "lwip/def.h" -#include "lwip/timeouts.h" - -#include "ppp.h" -#include "pppdebug.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Memory used for control packets. - * - * PPP_CTRL_PBUF_MAX_SIZE is the amount of memory we allocate when we - * cannot figure out how much we are going to use before filling the buffer. - */ -#if PPP_USE_PBUF_RAM -#define PPP_CTRL_PBUF_TYPE PBUF_RAM -#define PPP_CTRL_PBUF_MAX_SIZE 512 -#else /* PPP_USE_PBUF_RAM */ -#define PPP_CTRL_PBUF_TYPE PBUF_POOL -#define PPP_CTRL_PBUF_MAX_SIZE PBUF_POOL_BUFSIZE -#endif /* PPP_USE_PBUF_RAM */ - -/* - * The basic PPP frame. - */ -#define PPP_ADDRESS(p) (((u_char *)(p))[0]) -#define PPP_CONTROL(p) (((u_char *)(p))[1]) -#define PPP_PROTOCOL(p) ((((u_char *)(p))[2] << 8) + ((u_char *)(p))[3]) - -/* - * Significant octet values. - */ -#define PPP_ALLSTATIONS 0xff /* All-Stations broadcast address */ -#define PPP_UI 0x03 /* Unnumbered Information */ -#define PPP_FLAG 0x7e /* Flag Sequence */ -#define PPP_ESCAPE 0x7d /* Asynchronous Control Escape */ -#define PPP_TRANS 0x20 /* Asynchronous transparency modifier */ - -/* - * Protocol field values. - */ -#define PPP_IP 0x21 /* Internet Protocol */ -#if 0 /* UNUSED */ -#define PPP_AT 0x29 /* AppleTalk Protocol */ -#define PPP_IPX 0x2b /* IPX protocol */ -#endif /* UNUSED */ -#if VJ_SUPPORT -#define PPP_VJC_COMP 0x2d /* VJ compressed TCP */ -#define PPP_VJC_UNCOMP 0x2f /* VJ uncompressed TCP */ -#endif /* VJ_SUPPORT */ -#if PPP_IPV6_SUPPORT -#define PPP_IPV6 0x57 /* Internet Protocol Version 6 */ -#endif /* PPP_IPV6_SUPPORT */ -#if CCP_SUPPORT -#define PPP_COMP 0xfd /* compressed packet */ -#endif /* CCP_SUPPORT */ -#define PPP_IPCP 0x8021 /* IP Control Protocol */ -#if 0 /* UNUSED */ -#define PPP_ATCP 0x8029 /* AppleTalk Control Protocol */ -#define PPP_IPXCP 0x802b /* IPX Control Protocol */ -#endif /* UNUSED */ -#if PPP_IPV6_SUPPORT -#define PPP_IPV6CP 0x8057 /* IPv6 Control Protocol */ -#endif /* PPP_IPV6_SUPPORT */ -#if CCP_SUPPORT -#define PPP_CCP 0x80fd /* Compression Control Protocol */ -#endif /* CCP_SUPPORT */ -#if ECP_SUPPORT -#define PPP_ECP 0x8053 /* Encryption Control Protocol */ -#endif /* ECP_SUPPORT */ -#define PPP_LCP 0xc021 /* Link Control Protocol */ -#if PAP_SUPPORT -#define PPP_PAP 0xc023 /* Password Authentication Protocol */ -#endif /* PAP_SUPPORT */ -#if LQR_SUPPORT -#define PPP_LQR 0xc025 /* Link Quality Report protocol */ -#endif /* LQR_SUPPORT */ -#if CHAP_SUPPORT -#define PPP_CHAP 0xc223 /* Cryptographic Handshake Auth. Protocol */ -#endif /* CHAP_SUPPORT */ -#if CBCP_SUPPORT -#define PPP_CBCP 0xc029 /* Callback Control Protocol */ -#endif /* CBCP_SUPPORT */ -#if EAP_SUPPORT -#define PPP_EAP 0xc227 /* Extensible Authentication Protocol */ -#endif /* EAP_SUPPORT */ - -/* - * The following struct gives the addresses of procedures to call - * for a particular lower link level protocol. - */ -struct link_callbacks { - /* Start a connection (e.g. Initiate discovery phase) */ - void (*connect) (ppp_pcb *pcb, void *ctx); -#if PPP_SERVER - /* Listen for an incoming connection (Passive mode) */ - void (*listen) (ppp_pcb *pcb, void *ctx); -#endif /* PPP_SERVER */ - /* End a connection (i.e. initiate disconnect phase) */ - void (*disconnect) (ppp_pcb *pcb, void *ctx); - /* Free lower protocol control block */ - err_t (*free) (ppp_pcb *pcb, void *ctx); - /* Write a pbuf to a ppp link, only used from PPP functions to send PPP packets. */ - err_t (*write)(ppp_pcb *pcb, void *ctx, struct pbuf *p); - /* Send a packet from lwIP core (IPv4 or IPv6) */ - err_t (*netif_output)(ppp_pcb *pcb, void *ctx, struct pbuf *p, u_short protocol); - /* configure the transmit-side characteristics of the PPP interface */ - void (*send_config)(ppp_pcb *pcb, void *ctx, u32_t accm, int pcomp, int accomp); - /* confire the receive-side characteristics of the PPP interface */ - void (*recv_config)(ppp_pcb *pcb, void *ctx, u32_t accm, int pcomp, int accomp); -}; - -/* - * What to do with network protocol (NP) packets. - */ -enum NPmode { - NPMODE_PASS, /* pass the packet through */ - NPMODE_DROP, /* silently drop the packet */ - NPMODE_ERROR, /* return an error */ - NPMODE_QUEUE /* save it up for later. */ -}; - -/* - * Statistics. - */ -#if PPP_STATS_SUPPORT -struct pppstat { - unsigned int ppp_ibytes; /* bytes received */ - unsigned int ppp_ipackets; /* packets received */ - unsigned int ppp_ierrors; /* receive errors */ - unsigned int ppp_obytes; /* bytes sent */ - unsigned int ppp_opackets; /* packets sent */ - unsigned int ppp_oerrors; /* transmit errors */ -}; - -#if VJ_SUPPORT -struct vjstat { - unsigned int vjs_packets; /* outbound packets */ - unsigned int vjs_compressed; /* outbound compressed packets */ - unsigned int vjs_searches; /* searches for connection state */ - unsigned int vjs_misses; /* times couldn't find conn. state */ - unsigned int vjs_uncompressedin; /* inbound uncompressed packets */ - unsigned int vjs_compressedin; /* inbound compressed packets */ - unsigned int vjs_errorin; /* inbound unknown type packets */ - unsigned int vjs_tossed; /* inbound packets tossed because of error */ -}; -#endif /* VJ_SUPPORT */ - -struct ppp_stats { - struct pppstat p; /* basic PPP statistics */ -#if VJ_SUPPORT - struct vjstat vj; /* VJ header compression statistics */ -#endif /* VJ_SUPPORT */ -}; - -#if CCP_SUPPORT -struct compstat { - unsigned int unc_bytes; /* total uncompressed bytes */ - unsigned int unc_packets; /* total uncompressed packets */ - unsigned int comp_bytes; /* compressed bytes */ - unsigned int comp_packets; /* compressed packets */ - unsigned int inc_bytes; /* incompressible bytes */ - unsigned int inc_packets; /* incompressible packets */ - unsigned int ratio; /* recent compression ratio << 8 */ -}; - -struct ppp_comp_stats { - struct compstat c; /* packet compression statistics */ - struct compstat d; /* packet decompression statistics */ -}; -#endif /* CCP_SUPPORT */ - -#endif /* PPP_STATS_SUPPORT */ - -#if PPP_IDLETIMELIMIT -/* - * The following structure records the time in seconds since - * the last NP packet was sent or received. - */ -struct ppp_idle { - time_t xmit_idle; /* time since last NP packet sent */ - time_t recv_idle; /* time since last NP packet received */ -}; -#endif /* PPP_IDLETIMELIMIT */ - -/* values for epdisc.class */ -#define EPD_NULL 0 /* null discriminator, no data */ -#define EPD_LOCAL 1 -#define EPD_IP 2 -#define EPD_MAC 3 -#define EPD_MAGIC 4 -#define EPD_PHONENUM 5 - -/* - * Global variables. - */ -#ifdef HAVE_MULTILINK -extern u8_t multilink; /* enable multilink operation */ -extern u8_t doing_multilink; -extern u8_t multilink_master; -extern u8_t bundle_eof; -extern u8_t bundle_terminating; -#endif - -#ifdef MAXOCTETS -extern unsigned int maxoctets; /* Maximum octetes per session (in bytes) */ -extern int maxoctets_dir; /* Direction : - 0 - in+out (default) - 1 - in - 2 - out - 3 - max(in,out) */ -extern int maxoctets_timeout; /* Timeout for check of octets limit */ -#define PPP_OCTETS_DIRECTION_SUM 0 -#define PPP_OCTETS_DIRECTION_IN 1 -#define PPP_OCTETS_DIRECTION_OUT 2 -#define PPP_OCTETS_DIRECTION_MAXOVERAL 3 -/* same as previos, but little different on RADIUS side */ -#define PPP_OCTETS_DIRECTION_MAXSESSION 4 -#endif - -/* Data input may be used by CCP and ECP, remove this entry - * from struct protent to save some flash - */ -#define PPP_DATAINPUT 0 - -/* - * The following struct gives the addresses of procedures to call - * for a particular protocol. - */ -struct protent { - u_short protocol; /* PPP protocol number */ - /* Initialization procedure */ - void (*init) (ppp_pcb *pcb); - /* Process a received packet */ - void (*input) (ppp_pcb *pcb, u_char *pkt, int len); - /* Process a received protocol-reject */ - void (*protrej) (ppp_pcb *pcb); - /* Lower layer has come up */ - void (*lowerup) (ppp_pcb *pcb); - /* Lower layer has gone down */ - void (*lowerdown) (ppp_pcb *pcb); - /* Open the protocol */ - void (*open) (ppp_pcb *pcb); - /* Close the protocol */ - void (*close) (ppp_pcb *pcb, const char *reason); -#if PRINTPKT_SUPPORT - /* Print a packet in readable form */ - int (*printpkt) (const u_char *pkt, int len, - void (*printer) (void *, const char *, ...), - void *arg); -#endif /* PRINTPKT_SUPPORT */ -#if PPP_DATAINPUT - /* Process a received data packet */ - void (*datainput) (ppp_pcb *pcb, u_char *pkt, int len); -#endif /* PPP_DATAINPUT */ -#if PRINTPKT_SUPPORT - const char *name; /* Text name of protocol */ - const char *data_name; /* Text name of corresponding data protocol */ -#endif /* PRINTPKT_SUPPORT */ -#if PPP_OPTIONS - option_t *options; /* List of command-line options */ - /* Check requested options, assign defaults */ - void (*check_options) (void); -#endif /* PPP_OPTIONS */ -#if DEMAND_SUPPORT - /* Configure interface for demand-dial */ - int (*demand_conf) (int unit); - /* Say whether to bring up link for this pkt */ - int (*active_pkt) (u_char *pkt, int len); -#endif /* DEMAND_SUPPORT */ -}; - -/* Table of pointers to supported protocols */ -extern const struct protent* const protocols[]; - - -/* Values for auth_pending, auth_done */ -#if PAP_SUPPORT -#define PAP_WITHPEER 0x1 -#define PAP_PEER 0x2 -#endif /* PAP_SUPPORT */ -#if CHAP_SUPPORT -#define CHAP_WITHPEER 0x4 -#define CHAP_PEER 0x8 -#endif /* CHAP_SUPPORT */ -#if EAP_SUPPORT -#define EAP_WITHPEER 0x10 -#define EAP_PEER 0x20 -#endif /* EAP_SUPPORT */ - -/* Values for auth_done only */ -#if CHAP_SUPPORT -#define CHAP_MD5_WITHPEER 0x40 -#define CHAP_MD5_PEER 0x80 -#if MSCHAP_SUPPORT -#define CHAP_MS_SHIFT 8 /* LSB position for MS auths */ -#define CHAP_MS_WITHPEER 0x100 -#define CHAP_MS_PEER 0x200 -#define CHAP_MS2_WITHPEER 0x400 -#define CHAP_MS2_PEER 0x800 -#endif /* MSCHAP_SUPPORT */ -#endif /* CHAP_SUPPORT */ - -/* Supported CHAP protocols */ -#if CHAP_SUPPORT - -#if MSCHAP_SUPPORT -#define CHAP_MDTYPE_SUPPORTED (MDTYPE_MICROSOFT_V2 | MDTYPE_MICROSOFT | MDTYPE_MD5) -#else /* MSCHAP_SUPPORT */ -#define CHAP_MDTYPE_SUPPORTED (MDTYPE_MD5) -#endif /* MSCHAP_SUPPORT */ - -#else /* CHAP_SUPPORT */ -#define CHAP_MDTYPE_SUPPORTED (MDTYPE_NONE) -#endif /* CHAP_SUPPORT */ - -#if PPP_STATS_SUPPORT -/* - * PPP statistics structure - */ -struct pppd_stats { - unsigned int bytes_in; - unsigned int bytes_out; - unsigned int pkts_in; - unsigned int pkts_out; -}; -#endif /* PPP_STATS_SUPPORT */ - - -/* - * PPP private functions - */ - - -/* - * Functions called from lwIP core. - */ - -/* initialize the PPP subsystem */ -int ppp_init(void); - -/* - * Functions called from PPP link protocols. - */ - -/* Create a new PPP control block */ -ppp_pcb *ppp_new(struct netif *pppif, const struct link_callbacks *callbacks, void *link_ctx_cb, - ppp_link_status_cb_fn link_status_cb, void *ctx_cb); - -/* Initiate LCP open request */ -void ppp_start(ppp_pcb *pcb); - -/* Called when link failed to setup */ -void ppp_link_failed(ppp_pcb *pcb); - -/* Called when link is normally down (i.e. it was asked to end) */ -void ppp_link_end(ppp_pcb *pcb); - -/* function called to process input packet */ -void ppp_input(ppp_pcb *pcb, struct pbuf *pb); - - -/* - * Functions called by PPP protocols. - */ - -/* function called by all PPP subsystems to send packets */ -err_t ppp_write(ppp_pcb *pcb, struct pbuf *p); - -/* functions called by auth.c link_terminated() */ -void ppp_link_terminated(ppp_pcb *pcb); - -void new_phase(ppp_pcb *pcb, int p); - -int ppp_send_config(ppp_pcb *pcb, int mtu, u32_t accm, int pcomp, int accomp); -int ppp_recv_config(ppp_pcb *pcb, int mru, u32_t accm, int pcomp, int accomp); - -#if PPP_IPV4_SUPPORT -int sifaddr(ppp_pcb *pcb, u32_t our_adr, u32_t his_adr, u32_t netmask); -int cifaddr(ppp_pcb *pcb, u32_t our_adr, u32_t his_adr); -#if 0 /* UNUSED - PROXY ARP */ -int sifproxyarp(ppp_pcb *pcb, u32_t his_adr); -int cifproxyarp(ppp_pcb *pcb, u32_t his_adr); -#endif /* UNUSED - PROXY ARP */ -#if LWIP_DNS -int sdns(ppp_pcb *pcb, u32_t ns1, u32_t ns2); -int cdns(ppp_pcb *pcb, u32_t ns1, u32_t ns2); -#endif /* LWIP_DNS */ -#if VJ_SUPPORT -int sifvjcomp(ppp_pcb *pcb, int vjcomp, int cidcomp, int maxcid); -#endif /* VJ_SUPPORT */ -int sifup(ppp_pcb *pcb); -int sifdown (ppp_pcb *pcb); -u32_t get_mask(u32_t addr); -#endif /* PPP_IPV4_SUPPORT */ - -#if PPP_IPV6_SUPPORT -int sif6addr(ppp_pcb *pcb, eui64_t our_eui64, eui64_t his_eui64); -int cif6addr(ppp_pcb *pcb, eui64_t our_eui64, eui64_t his_eui64); -int sif6up(ppp_pcb *pcb); -int sif6down (ppp_pcb *pcb); -#endif /* PPP_IPV6_SUPPORT */ - -#if DEMAND_SUPPORT -int sifnpmode(ppp_pcb *pcb, int proto, enum NPmode mode); -#endif /* DEMAND_SUPPORt */ - -void netif_set_mtu(ppp_pcb *pcb, int mtu); -int netif_get_mtu(ppp_pcb *pcb); - -#if CCP_SUPPORT -#if 0 /* unused */ -int ccp_test(ppp_pcb *pcb, u_char *opt_ptr, int opt_len, int for_transmit); -#endif /* unused */ -void ccp_set(ppp_pcb *pcb, u8_t isopen, u8_t isup, u8_t receive_method, u8_t transmit_method); -void ccp_reset_comp(ppp_pcb *pcb); -void ccp_reset_decomp(ppp_pcb *pcb); -#if 0 /* unused */ -int ccp_fatal_error(ppp_pcb *pcb); -#endif /* unused */ -#endif /* CCP_SUPPORT */ - -#if PPP_IDLETIMELIMIT -int get_idle_time(ppp_pcb *pcb, struct ppp_idle *ip); -#endif /* PPP_IDLETIMELIMIT */ - -#if DEMAND_SUPPORT -int get_loop_output(void); -#endif /* DEMAND_SUPPORT */ - -/* Optional protocol names list, to make our messages a little more informative. */ -#if PPP_PROTOCOLNAME -const char * protocol_name(int proto); -#endif /* PPP_PROTOCOLNAME */ - -/* Optional stats support, to get some statistics on the PPP interface */ -#if PPP_STATS_SUPPORT -void print_link_stats(void); /* Print stats, if available */ -void reset_link_stats(int u); /* Reset (init) stats when link goes up */ -void update_link_stats(int u); /* Get stats at link termination */ -#endif /* PPP_STATS_SUPPORT */ - - - -/* - * Inline versions of get/put char/short/long. - * Pointer is advanced; we assume that both arguments - * are lvalues and will already be in registers. - * cp MUST be u_char *. - */ -#define GETCHAR(c, cp) { \ - (c) = *(cp)++; \ -} -#define PUTCHAR(c, cp) { \ - *(cp)++ = (u_char) (c); \ -} -#define GETSHORT(s, cp) { \ - (s) = *(cp)++ << 8; \ - (s) |= *(cp)++; \ -} -#define PUTSHORT(s, cp) { \ - *(cp)++ = (u_char) ((s) >> 8); \ - *(cp)++ = (u_char) (s); \ -} -#define GETLONG(l, cp) { \ - (l) = *(cp)++ << 8; \ - (l) |= *(cp)++; (l) <<= 8; \ - (l) |= *(cp)++; (l) <<= 8; \ - (l) |= *(cp)++; \ -} -#define PUTLONG(l, cp) { \ - *(cp)++ = (u_char) ((l) >> 24); \ - *(cp)++ = (u_char) ((l) >> 16); \ - *(cp)++ = (u_char) ((l) >> 8); \ - *(cp)++ = (u_char) (l); \ -} - -#define INCPTR(n, cp) ((cp) += (n)) -#define DECPTR(n, cp) ((cp) -= (n)) - -/* - * System dependent definitions for user-level 4.3BSD UNIX implementation. - */ -#define TIMEOUT(f, a, t) do { sys_untimeout((f), (a)); sys_timeout((t)*1000, (f), (a)); } while(0) -#define TIMEOUTMS(f, a, t) do { sys_untimeout((f), (a)); sys_timeout((t), (f), (a)); } while(0) -#define UNTIMEOUT(f, a) sys_untimeout((f), (a)) - -#define BZERO(s, n) memset(s, 0, n) -#define BCMP(s1, s2, l) memcmp(s1, s2, l) - -#define PRINTMSG(m, l) { ppp_info("Remote message: %0.*v", l, m); } - -/* - * MAKEHEADER - Add Header fields to a packet. - */ -#define MAKEHEADER(p, t) { \ - PUTCHAR(PPP_ALLSTATIONS, p); \ - PUTCHAR(PPP_UI, p); \ - PUTSHORT(t, p); } - -/* Procedures exported from auth.c */ -void link_required(ppp_pcb *pcb); /* we are starting to use the link */ -void link_terminated(ppp_pcb *pcb); /* we are finished with the link */ -void link_down(ppp_pcb *pcb); /* the LCP layer has left the Opened state */ -void upper_layers_down(ppp_pcb *pcb); /* take all NCPs down */ -void link_established(ppp_pcb *pcb); /* the link is up; authenticate now */ -void start_networks(ppp_pcb *pcb); /* start all the network control protos */ -void continue_networks(ppp_pcb *pcb); /* start network [ip, etc] control protos */ -#if PPP_AUTH_SUPPORT -#if PPP_SERVER -int auth_check_passwd(ppp_pcb *pcb, char *auser, int userlen, char *apasswd, int passwdlen, const char **msg, int *msglen); - /* check the user name and passwd against configuration */ -void auth_peer_fail(ppp_pcb *pcb, int protocol); - /* peer failed to authenticate itself */ -void auth_peer_success(ppp_pcb *pcb, int protocol, int prot_flavor, const char *name, int namelen); - /* peer successfully authenticated itself */ -#endif /* PPP_SERVER */ -void auth_withpeer_fail(ppp_pcb *pcb, int protocol); - /* we failed to authenticate ourselves */ -void auth_withpeer_success(ppp_pcb *pcb, int protocol, int prot_flavor); - /* we successfully authenticated ourselves */ -#endif /* PPP_AUTH_SUPPORT */ -void np_up(ppp_pcb *pcb, int proto); /* a network protocol has come up */ -void np_down(ppp_pcb *pcb, int proto); /* a network protocol has gone down */ -void np_finished(ppp_pcb *pcb, int proto); /* a network protocol no longer needs link */ -#if PPP_AUTH_SUPPORT -int get_secret(ppp_pcb *pcb, const char *client, const char *server, char *secret, int *secret_len, int am_server); - /* get "secret" for chap */ -#endif /* PPP_AUTH_SUPPORT */ - -/* Procedures exported from ipcp.c */ -/* int parse_dotted_ip (char *, u32_t *); */ - -/* Procedures exported from demand.c */ -#if DEMAND_SUPPORT -void demand_conf (void); /* config interface(s) for demand-dial */ -void demand_block (void); /* set all NPs to queue up packets */ -void demand_unblock (void); /* set all NPs to pass packets */ -void demand_discard (void); /* set all NPs to discard packets */ -void demand_rexmit (int, u32_t); /* retransmit saved frames for an NP*/ -int loop_chars (unsigned char *, int); /* process chars from loopback */ -int loop_frame (unsigned char *, int); /* should we bring link up? */ -#endif /* DEMAND_SUPPORT */ - -/* Procedures exported from multilink.c */ -#ifdef HAVE_MULTILINK -void mp_check_options (void); /* Check multilink-related options */ -int mp_join_bundle (void); /* join our link to an appropriate bundle */ -void mp_exit_bundle (void); /* have disconnected our link from bundle */ -void mp_bundle_terminated (void); -char *epdisc_to_str (struct epdisc *); /* string from endpoint discrim. */ -int str_to_epdisc (struct epdisc *, char *); /* endpt disc. from str */ -#else -#define mp_bundle_terminated() /* nothing */ -#define mp_exit_bundle() /* nothing */ -#define doing_multilink 0 -#define multilink_master 0 -#endif - -/* Procedures exported from utils.c. */ -void ppp_print_string(const u_char *p, int len, void (*printer) (void *, const char *, ...), void *arg); /* Format a string for output */ -int ppp_slprintf(char *buf, int buflen, const char *fmt, ...); /* sprintf++ */ -int ppp_vslprintf(char *buf, int buflen, const char *fmt, va_list args); /* vsprintf++ */ -size_t ppp_strlcpy(char *dest, const char *src, size_t len); /* safe strcpy */ -size_t ppp_strlcat(char *dest, const char *src, size_t len); /* safe strncpy */ -void ppp_dbglog(const char *fmt, ...); /* log a debug message */ -void ppp_info(const char *fmt, ...); /* log an informational message */ -void ppp_notice(const char *fmt, ...); /* log a notice-level message */ -void ppp_warn(const char *fmt, ...); /* log a warning message */ -void ppp_error(const char *fmt, ...); /* log an error message */ -void ppp_fatal(const char *fmt, ...); /* log an error message and die(1) */ -#if PRINTPKT_SUPPORT -void ppp_dump_packet(ppp_pcb *pcb, const char *tag, unsigned char *p, int len); - /* dump packet to debug log if interesting */ -#endif /* PRINTPKT_SUPPORT */ - -/* - * Number of necessary timers analysis. - * - * PPP use at least one timer per each of its protocol, but not all protocols are - * active at the same time, thus the number of necessary timeouts is actually - * lower than enabled protocols. Here is the actual necessary timeouts based - * on code analysis. - * - * Note that many features analysed here are not working at all and are only - * there for a comprehensive analysis of necessary timers in order to prevent - * having to redo that each time we add a feature. - * - * Timer list - * - * | holdoff timeout - * | low level protocol timeout (PPPoE or PPPoL2P) - * | LCP delayed UP - * | LCP retransmit (FSM) - * | LCP Echo timer - * .| PAP or CHAP or EAP authentication - * . | ECP retransmit (FSM) - * . | CCP retransmit (FSM) when MPPE is enabled - * . | CCP retransmit (FSM) when MPPE is NOT enabled - * . | IPCP retransmit (FSM) - * . .| IP6CP retransmit (FSM) - * . . | Idle time limit - * . . | Max connect time - * . . | Max octets - * . . | CCP RACK timeout - * . . . - * PPP_PHASE_DEAD - * PPP_PHASE_HOLDOFF - * | . . . - * PPP_PHASE_INITIALIZE - * | . . . - * PPP_PHASE_ESTABLISH - * | . . . - * |. . . - * | . . - * PPP_PHASE_AUTHENTICATE - * | . . - * || . . - * PPP_PHASE_NETWORK - * | || . . - * | ||| . - * PPP_PHASE_RUNNING - * | .||||| - * | . |||| - * PPP_PHASE_TERMINATE - * | . |||| - * PPP_PHASE_NETWORK - * |. . - * PPP_PHASE_ESTABLISH - * PPP_PHASE_DISCONNECT - * PPP_PHASE_DEAD - * - * Alright, PPP basic retransmission and LCP Echo consume one timer. - * 1 - * - * If authentication is enabled one timer is necessary during authentication. - * 1 + PPP_AUTH_SUPPORT - * - * If ECP is enabled one timer is necessary before IPCP and/or IP6CP, one more - * is necessary if CCP is enabled (only with MPPE support but we don't care much - * up to this detail level). - * 1 + ECP_SUPPORT + CCP_SUPPORT - * - * If CCP is enabled it might consume a timer during IPCP or IP6CP, thus - * we might use IPCP, IP6CP and CCP timers simultaneously. - * 1 + PPP_IPV4_SUPPORT + PPP_IPV6_SUPPORT + CCP_SUPPORT - * - * When entering running phase, IPCP or IP6CP is still running. If idle time limit - * is enabled one more timer is necessary. Same for max connect time and max - * octets features. Furthermore CCP RACK might be used past this point. - * 1 + PPP_IPV4_SUPPORT + PPP_IPV6_SUPPORT -1 + PPP_IDLETIMELIMIT + PPP_MAXCONNECT + MAXOCTETS + CCP_SUPPORT - * - * IPv4 or IPv6 must be enabled, therefore we don't need to take care the authentication - * and the CCP + ECP case, thus reducing overall complexity. - * 1 + LWIP_MAX(PPP_IPV4_SUPPORT + PPP_IPV6_SUPPORT + CCP_SUPPORT, PPP_IPV4_SUPPORT + PPP_IPV6_SUPPORT -1 + PPP_IDLETIMELIMIT + PPP_MAXCONNECT + MAXOCTETS + CCP_SUPPORT) - * - * We don't support PPP_IDLETIMELIMIT + PPP_MAXCONNECT + MAXOCTETS features - * and adding those defines to ppp_opts.h just for having the value always - * defined to 0 isn't worth it. - * 1 + LWIP_MAX(PPP_IPV4_SUPPORT + PPP_IPV6_SUPPORT + CCP_SUPPORT, PPP_IPV4_SUPPORT + PPP_IPV6_SUPPORT -1 + CCP_SUPPORT) - * - * Thus, the following is enough for now. - * 1 + PPP_IPV4_SUPPORT + PPP_IPV6_SUPPORT + CCP_SUPPORT - */ - -#ifdef __cplusplus -} -#endif - -#endif /* PPP_SUPPORT */ -#endif /* LWIP_HDR_PPP_IMPL_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h b/Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h deleted file mode 100644 index 6702bec..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/ppp_opts.h +++ /dev/null @@ -1,610 +0,0 @@ -/* - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - */ - -#ifndef LWIP_PPP_OPTS_H -#define LWIP_PPP_OPTS_H - -#include "lwip/opt.h" - -/** - * PPP_SUPPORT==1: Enable PPP. - */ -#ifndef PPP_SUPPORT -#define PPP_SUPPORT 0 -#endif - -/** - * PPPOE_SUPPORT==1: Enable PPP Over Ethernet - */ -#ifndef PPPOE_SUPPORT -#define PPPOE_SUPPORT 0 -#endif - -/** - * PPPOL2TP_SUPPORT==1: Enable PPP Over L2TP - */ -#ifndef PPPOL2TP_SUPPORT -#define PPPOL2TP_SUPPORT 0 -#endif - -/** - * PPPOL2TP_AUTH_SUPPORT==1: Enable PPP Over L2TP Auth (enable MD5 support) - */ -#ifndef PPPOL2TP_AUTH_SUPPORT -#define PPPOL2TP_AUTH_SUPPORT PPPOL2TP_SUPPORT -#endif - -/** - * PPPOS_SUPPORT==1: Enable PPP Over Serial - */ -#ifndef PPPOS_SUPPORT -#define PPPOS_SUPPORT PPP_SUPPORT -#endif - -/** - * LWIP_PPP_API==1: Enable PPP API (in pppapi.c) - */ -#ifndef LWIP_PPP_API -#define LWIP_PPP_API (PPP_SUPPORT && (NO_SYS == 0)) -#endif - -#if PPP_SUPPORT - -/** - * MEMP_NUM_PPP_PCB: the number of simultaneously active PPP - * connections (requires the PPP_SUPPORT option) - */ -#ifndef MEMP_NUM_PPP_PCB -#define MEMP_NUM_PPP_PCB 1 -#endif - -/** - * PPP_NUM_TIMEOUTS_PER_PCB: the number of sys_timeouts running in parallel per - * ppp_pcb. See the detailed explanation at the end of ppp_impl.h about simultaneous - * timers analysis. - */ -#ifndef PPP_NUM_TIMEOUTS_PER_PCB -#define PPP_NUM_TIMEOUTS_PER_PCB (1 + PPP_IPV4_SUPPORT + PPP_IPV6_SUPPORT + CCP_SUPPORT) -#endif - -/* The number of sys_timeouts required for the PPP module */ -#define PPP_NUM_TIMEOUTS (PPP_SUPPORT * PPP_NUM_TIMEOUTS_PER_PCB * MEMP_NUM_PPP_PCB) - -/** - * MEMP_NUM_PPPOS_INTERFACES: the number of concurrently active PPPoS - * interfaces (only used with PPPOS_SUPPORT==1) - */ -#ifndef MEMP_NUM_PPPOS_INTERFACES -#define MEMP_NUM_PPPOS_INTERFACES MEMP_NUM_PPP_PCB -#endif - -/** - * MEMP_NUM_PPPOE_INTERFACES: the number of concurrently active PPPoE - * interfaces (only used with PPPOE_SUPPORT==1) - */ -#ifndef MEMP_NUM_PPPOE_INTERFACES -#define MEMP_NUM_PPPOE_INTERFACES 1 -#endif - -/** - * MEMP_NUM_PPPOL2TP_INTERFACES: the number of concurrently active PPPoL2TP - * interfaces (only used with PPPOL2TP_SUPPORT==1) - */ -#ifndef MEMP_NUM_PPPOL2TP_INTERFACES -#define MEMP_NUM_PPPOL2TP_INTERFACES 1 -#endif - -/** - * MEMP_NUM_PPP_API_MSG: Number of concurrent PPP API messages (in pppapi.c) - */ -#ifndef MEMP_NUM_PPP_API_MSG -#define MEMP_NUM_PPP_API_MSG 5 -#endif - -/** - * PPP_DEBUG: Enable debugging for PPP. - */ -#ifndef PPP_DEBUG -#define PPP_DEBUG LWIP_DBG_OFF -#endif - -/** - * PPP_INPROC_IRQ_SAFE==1 call pppos_input() using tcpip_callback(). - * - * Please read the "PPPoS input path" chapter in the PPP documentation about this option. - */ -#ifndef PPP_INPROC_IRQ_SAFE -#define PPP_INPROC_IRQ_SAFE 0 -#endif - -/** - * PRINTPKT_SUPPORT==1: Enable PPP print packet support - * - * Mandatory for debugging, it displays exchanged packet content in debug trace. - */ -#ifndef PRINTPKT_SUPPORT -#define PRINTPKT_SUPPORT 0 -#endif - -/** - * PPP_IPV4_SUPPORT==1: Enable PPP IPv4 support - */ -#ifndef PPP_IPV4_SUPPORT -#define PPP_IPV4_SUPPORT (LWIP_IPV4) -#endif - -/** - * PPP_IPV6_SUPPORT==1: Enable PPP IPv6 support - */ -#ifndef PPP_IPV6_SUPPORT -#define PPP_IPV6_SUPPORT (LWIP_IPV6) -#endif - -/** - * PPP_NOTIFY_PHASE==1: Support PPP notify phase support - * - * PPP notify phase support allows you to set a callback which is - * called on change of the internal PPP state machine. - * - * This can be used for example to set a LED pattern depending on the - * current phase of the PPP session. - */ -#ifndef PPP_NOTIFY_PHASE -#define PPP_NOTIFY_PHASE 0 -#endif - -/** - * pbuf_type PPP is using for LCP, PAP, CHAP, EAP, CCP, IPCP and IP6CP packets. - * - * Memory allocated must be single buffered for PPP to works, it requires pbuf - * that are not going to be chained when allocated. This requires setting - * PBUF_POOL_BUFSIZE to at least 512 bytes, which is quite huge for small systems. - * - * Setting PPP_USE_PBUF_RAM to 1 makes PPP use memory from heap where continuous - * buffers are required, allowing you to use a smaller PBUF_POOL_BUFSIZE. - */ -#ifndef PPP_USE_PBUF_RAM -#define PPP_USE_PBUF_RAM 0 -#endif - -/** - * PPP_FCS_TABLE: Keep a 256*2 byte table to speed up FCS calculation for PPPoS - */ -#ifndef PPP_FCS_TABLE -#define PPP_FCS_TABLE 1 -#endif - -/** - * PAP_SUPPORT==1: Support PAP. - */ -#ifndef PAP_SUPPORT -#define PAP_SUPPORT 0 -#endif - -/** - * CHAP_SUPPORT==1: Support CHAP. - */ -#ifndef CHAP_SUPPORT -#define CHAP_SUPPORT 0 -#endif - -/** - * MSCHAP_SUPPORT==1: Support MSCHAP. - */ -#ifndef MSCHAP_SUPPORT -#define MSCHAP_SUPPORT 0 -#endif -#if MSCHAP_SUPPORT -/* MSCHAP requires CHAP support */ -#undef CHAP_SUPPORT -#define CHAP_SUPPORT 1 -#endif /* MSCHAP_SUPPORT */ - -/** - * EAP_SUPPORT==1: Support EAP. - */ -#ifndef EAP_SUPPORT -#define EAP_SUPPORT 0 -#endif - -/** - * CCP_SUPPORT==1: Support CCP. - */ -#ifndef CCP_SUPPORT -#define CCP_SUPPORT 0 -#endif - -/** - * MPPE_SUPPORT==1: Support MPPE. - */ -#ifndef MPPE_SUPPORT -#define MPPE_SUPPORT 0 -#endif -#if MPPE_SUPPORT -/* MPPE requires CCP support */ -#undef CCP_SUPPORT -#define CCP_SUPPORT 1 -/* MPPE requires MSCHAP support */ -#undef MSCHAP_SUPPORT -#define MSCHAP_SUPPORT 1 -/* MSCHAP requires CHAP support */ -#undef CHAP_SUPPORT -#define CHAP_SUPPORT 1 -#endif /* MPPE_SUPPORT */ - -/** - * CBCP_SUPPORT==1: Support CBCP. CURRENTLY NOT SUPPORTED! DO NOT SET! - */ -#ifndef CBCP_SUPPORT -#define CBCP_SUPPORT 0 -#endif - -/** - * ECP_SUPPORT==1: Support ECP. CURRENTLY NOT SUPPORTED! DO NOT SET! - */ -#ifndef ECP_SUPPORT -#define ECP_SUPPORT 0 -#endif - -/** - * DEMAND_SUPPORT==1: Support dial on demand. CURRENTLY NOT SUPPORTED! DO NOT SET! - */ -#ifndef DEMAND_SUPPORT -#define DEMAND_SUPPORT 0 -#endif - -/** - * LQR_SUPPORT==1: Support Link Quality Report. Do nothing except exchanging some LCP packets. - */ -#ifndef LQR_SUPPORT -#define LQR_SUPPORT 0 -#endif - -/** - * PPP_SERVER==1: Enable PPP server support (waiting for incoming PPP session). - * - * Currently only supported for PPPoS. - */ -#ifndef PPP_SERVER -#define PPP_SERVER 0 -#endif - -#if PPP_SERVER -/* - * PPP_OUR_NAME: Our name for authentication purposes - */ -#ifndef PPP_OUR_NAME -#define PPP_OUR_NAME "lwIP" -#endif -#endif /* PPP_SERVER */ - -/** - * VJ_SUPPORT==1: Support VJ header compression. - */ -#ifndef VJ_SUPPORT -#define VJ_SUPPORT 1 -#endif -/* VJ compression is only supported for TCP over IPv4 over PPPoS. */ -#if !PPPOS_SUPPORT || !PPP_IPV4_SUPPORT || !LWIP_TCP -#undef VJ_SUPPORT -#define VJ_SUPPORT 0 -#endif /* !PPPOS_SUPPORT */ - -/** - * PPP_MD5_RANDM==1: Use MD5 for better randomness. - * Enabled by default if CHAP, EAP, or L2TP AUTH support is enabled. - */ -#ifndef PPP_MD5_RANDM -#define PPP_MD5_RANDM (CHAP_SUPPORT || EAP_SUPPORT || PPPOL2TP_AUTH_SUPPORT) -#endif - -/** - * PolarSSL embedded library - * - * - * lwIP contains some files fetched from the latest BSD release of - * the PolarSSL project (PolarSSL 0.10.1-bsd) for ciphers and encryption - * methods we need for lwIP PPP support. - * - * The PolarSSL files were cleaned to contain only the necessary struct - * fields and functions needed for lwIP. - * - * The PolarSSL API was not changed at all, so if you are already using - * PolarSSL you can choose to skip the compilation of the included PolarSSL - * library into lwIP. - * - * If you are not using the embedded copy you must include external - * libraries into your arch/cc.h port file. - * - * Beware of the stack requirements which can be a lot larger if you are not - * using our cleaned PolarSSL library. - */ - -/** - * LWIP_USE_EXTERNAL_POLARSSL: Use external PolarSSL library - */ -#ifndef LWIP_USE_EXTERNAL_POLARSSL -#define LWIP_USE_EXTERNAL_POLARSSL 0 -#endif - -/** - * LWIP_USE_EXTERNAL_MBEDTLS: Use external mbed TLS library - */ -#ifndef LWIP_USE_EXTERNAL_MBEDTLS -#define LWIP_USE_EXTERNAL_MBEDTLS 0 -#endif - -/* - * PPP Timeouts - */ - -/** - * FSM_DEFTIMEOUT: Timeout time in seconds - */ -#ifndef FSM_DEFTIMEOUT -#define FSM_DEFTIMEOUT 6 -#endif - -/** - * FSM_DEFMAXTERMREQS: Maximum Terminate-Request transmissions - */ -#ifndef FSM_DEFMAXTERMREQS -#define FSM_DEFMAXTERMREQS 2 -#endif - -/** - * FSM_DEFMAXCONFREQS: Maximum Configure-Request transmissions - */ -#ifndef FSM_DEFMAXCONFREQS -#define FSM_DEFMAXCONFREQS 10 -#endif - -/** - * FSM_DEFMAXNAKLOOPS: Maximum number of nak loops - */ -#ifndef FSM_DEFMAXNAKLOOPS -#define FSM_DEFMAXNAKLOOPS 5 -#endif - -/** - * UPAP_DEFTIMEOUT: Timeout (seconds) for retransmitting req - */ -#ifndef UPAP_DEFTIMEOUT -#define UPAP_DEFTIMEOUT 6 -#endif - -/** - * UPAP_DEFTRANSMITS: Maximum number of auth-reqs to send - */ -#ifndef UPAP_DEFTRANSMITS -#define UPAP_DEFTRANSMITS 10 -#endif - -#if PPP_SERVER -/** - * UPAP_DEFREQTIME: Time to wait for auth-req from peer - */ -#ifndef UPAP_DEFREQTIME -#define UPAP_DEFREQTIME 30 -#endif -#endif /* PPP_SERVER */ - -/** - * CHAP_DEFTIMEOUT: Timeout (seconds) for retransmitting req - */ -#ifndef CHAP_DEFTIMEOUT -#define CHAP_DEFTIMEOUT 6 -#endif - -/** - * CHAP_DEFTRANSMITS: max # times to send challenge - */ -#ifndef CHAP_DEFTRANSMITS -#define CHAP_DEFTRANSMITS 10 -#endif - -#if PPP_SERVER -/** - * CHAP_DEFRECHALLENGETIME: If this option is > 0, rechallenge the peer every n seconds - */ -#ifndef CHAP_DEFRECHALLENGETIME -#define CHAP_DEFRECHALLENGETIME 0 -#endif -#endif /* PPP_SERVER */ - -/** - * EAP_DEFREQTIME: Time to wait for peer request - */ -#ifndef EAP_DEFREQTIME -#define EAP_DEFREQTIME 6 -#endif - -/** - * EAP_DEFALLOWREQ: max # times to accept requests - */ -#ifndef EAP_DEFALLOWREQ -#define EAP_DEFALLOWREQ 10 -#endif - -#if PPP_SERVER -/** - * EAP_DEFTIMEOUT: Timeout (seconds) for rexmit - */ -#ifndef EAP_DEFTIMEOUT -#define EAP_DEFTIMEOUT 6 -#endif - -/** - * EAP_DEFTRANSMITS: max # times to transmit - */ -#ifndef EAP_DEFTRANSMITS -#define EAP_DEFTRANSMITS 10 -#endif -#endif /* PPP_SERVER */ - -/** - * LCP_DEFLOOPBACKFAIL: Default number of times we receive our magic number from the peer - * before deciding the link is looped-back. - */ -#ifndef LCP_DEFLOOPBACKFAIL -#define LCP_DEFLOOPBACKFAIL 10 -#endif - -/** - * LCP_ECHOINTERVAL: Interval in seconds between keepalive echo requests, 0 to disable. - */ -#ifndef LCP_ECHOINTERVAL -#define LCP_ECHOINTERVAL 0 -#endif - -/** - * LCP_MAXECHOFAILS: Number of unanswered echo requests before failure. - */ -#ifndef LCP_MAXECHOFAILS -#define LCP_MAXECHOFAILS 3 -#endif - -/** - * PPP_MAXIDLEFLAG: Max Xmit idle time (in ms) before resend flag char. - */ -#ifndef PPP_MAXIDLEFLAG -#define PPP_MAXIDLEFLAG 100 -#endif - -/** - * PPP Packet sizes - */ - -/** - * PPP_MRU: Default MRU - */ -#ifndef PPP_MRU -#define PPP_MRU 1500 -#endif - -/** - * PPP_DEFMRU: Default MRU to try - */ -#ifndef PPP_DEFMRU -#define PPP_DEFMRU 1500 -#endif - -/** - * PPP_MAXMRU: Normally limit MRU to this (pppd default = 16384) - */ -#ifndef PPP_MAXMRU -#define PPP_MAXMRU 1500 -#endif - -/** - * PPP_MINMRU: No MRUs below this - */ -#ifndef PPP_MINMRU -#define PPP_MINMRU 128 -#endif - -/** - * PPPOL2TP_DEFMRU: Default MTU and MRU for L2TP - * Default = 1500 - PPPoE(6) - PPP Protocol(2) - IPv4 header(20) - UDP Header(8) - * - L2TP Header(6) - HDLC Header(2) - PPP Protocol(2) - MPPE Header(2) - PPP Protocol(2) - */ -#if PPPOL2TP_SUPPORT -#ifndef PPPOL2TP_DEFMRU -#define PPPOL2TP_DEFMRU 1450 -#endif -#endif /* PPPOL2TP_SUPPORT */ - -/** - * MAXNAMELEN: max length of hostname or name for auth - */ -#ifndef MAXNAMELEN -#define MAXNAMELEN 256 -#endif - -/** - * MAXSECRETLEN: max length of password or secret - */ -#ifndef MAXSECRETLEN -#define MAXSECRETLEN 256 -#endif - -/* ------------------------------------------------------------------------- */ - -/* - * Build triggers for embedded PolarSSL - */ -#if !LWIP_USE_EXTERNAL_POLARSSL && !LWIP_USE_EXTERNAL_MBEDTLS - -/* CHAP, EAP, L2TP AUTH and MD5 Random require MD5 support */ -#if CHAP_SUPPORT || EAP_SUPPORT || PPPOL2TP_AUTH_SUPPORT || PPP_MD5_RANDM -#define LWIP_INCLUDED_POLARSSL_MD5 1 -#endif /* CHAP_SUPPORT || EAP_SUPPORT || PPPOL2TP_AUTH_SUPPORT || PPP_MD5_RANDM */ - -#if MSCHAP_SUPPORT - -/* MSCHAP require MD4 support */ -#define LWIP_INCLUDED_POLARSSL_MD4 1 -/* MSCHAP require SHA1 support */ -#define LWIP_INCLUDED_POLARSSL_SHA1 1 -/* MSCHAP require DES support */ -#define LWIP_INCLUDED_POLARSSL_DES 1 - -/* MS-CHAP support is required for MPPE */ -#if MPPE_SUPPORT -/* MPPE require ARC4 support */ -#define LWIP_INCLUDED_POLARSSL_ARC4 1 -#endif /* MPPE_SUPPORT */ - -#endif /* MSCHAP_SUPPORT */ - -#endif /* !LWIP_USE_EXTERNAL_POLARSSL && !LWIP_USE_EXTERNAL_MBEDTLS */ - -/* Default value if unset */ -#ifndef LWIP_INCLUDED_POLARSSL_MD4 -#define LWIP_INCLUDED_POLARSSL_MD4 0 -#endif /* LWIP_INCLUDED_POLARSSL_MD4 */ -#ifndef LWIP_INCLUDED_POLARSSL_MD5 -#define LWIP_INCLUDED_POLARSSL_MD5 0 -#endif /* LWIP_INCLUDED_POLARSSL_MD5 */ -#ifndef LWIP_INCLUDED_POLARSSL_SHA1 -#define LWIP_INCLUDED_POLARSSL_SHA1 0 -#endif /* LWIP_INCLUDED_POLARSSL_SHA1 */ -#ifndef LWIP_INCLUDED_POLARSSL_DES -#define LWIP_INCLUDED_POLARSSL_DES 0 -#endif /* LWIP_INCLUDED_POLARSSL_DES */ -#ifndef LWIP_INCLUDED_POLARSSL_ARC4 -#define LWIP_INCLUDED_POLARSSL_ARC4 0 -#endif /* LWIP_INCLUDED_POLARSSL_ARC4 */ - -#endif /* PPP_SUPPORT */ - -/* Default value if unset */ -#ifndef PPP_NUM_TIMEOUTS -#define PPP_NUM_TIMEOUTS 0 -#endif /* PPP_NUM_TIMEOUTS */ - -#endif /* LWIP_PPP_OPTS_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/pppapi.h b/Middlewares/Third_Party/LwIP/src/include/netif/ppp/pppapi.h deleted file mode 100644 index 913d93f..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/pppapi.h +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - */ - -#ifndef LWIP_PPPAPI_H -#define LWIP_PPPAPI_H - -#include "netif/ppp/ppp_opts.h" - -#if LWIP_PPP_API /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/sys.h" -#include "lwip/netif.h" -#include "lwip/priv/tcpip_priv.h" -#include "netif/ppp/ppp.h" -#if PPPOS_SUPPORT -#include "netif/ppp/pppos.h" -#endif /* PPPOS_SUPPORT */ - -#ifdef __cplusplus -extern "C" { -#endif - -struct pppapi_msg_msg { - ppp_pcb *ppp; - union { -#if PPP_NOTIFY_PHASE - struct { - ppp_notify_phase_cb_fn notify_phase_cb; - } setnotifyphasecb; -#endif /* PPP_NOTIFY_PHASE */ -#if PPPOS_SUPPORT - struct { - struct netif *pppif; - pppos_output_cb_fn output_cb; - ppp_link_status_cb_fn link_status_cb; - void *ctx_cb; - } serialcreate; -#endif /* PPPOS_SUPPORT */ -#if PPPOE_SUPPORT - struct { - struct netif *pppif; - struct netif *ethif; - const char *service_name; - const char *concentrator_name; - ppp_link_status_cb_fn link_status_cb; - void *ctx_cb; - } ethernetcreate; -#endif /* PPPOE_SUPPORT */ -#if PPPOL2TP_SUPPORT - struct { - struct netif *pppif; - struct netif *netif; - API_MSG_M_DEF_C(ip_addr_t, ipaddr); - u16_t port; -#if PPPOL2TP_AUTH_SUPPORT - const u8_t *secret; - u8_t secret_len; -#endif /* PPPOL2TP_AUTH_SUPPORT */ - ppp_link_status_cb_fn link_status_cb; - void *ctx_cb; - } l2tpcreate; -#endif /* PPPOL2TP_SUPPORT */ - struct { - u16_t holdoff; - } connect; - struct { - u8_t nocarrier; - } close; - struct { - u8_t cmd; - void *arg; - } ioctl; - } msg; -}; - -struct pppapi_msg { - struct tcpip_api_call_data call; - struct pppapi_msg_msg msg; -}; - -/* API for application */ -err_t pppapi_set_default(ppp_pcb *pcb); -#if PPP_NOTIFY_PHASE -err_t pppapi_set_notify_phase_callback(ppp_pcb *pcb, ppp_notify_phase_cb_fn notify_phase_cb); -#endif /* PPP_NOTIFY_PHASE */ -#if PPPOS_SUPPORT -ppp_pcb *pppapi_pppos_create(struct netif *pppif, pppos_output_cb_fn output_cb, ppp_link_status_cb_fn link_status_cb, void *ctx_cb); -#endif /* PPPOS_SUPPORT */ -#if PPPOE_SUPPORT -ppp_pcb *pppapi_pppoe_create(struct netif *pppif, struct netif *ethif, const char *service_name, - const char *concentrator_name, ppp_link_status_cb_fn link_status_cb, - void *ctx_cb); -#endif /* PPPOE_SUPPORT */ -#if PPPOL2TP_SUPPORT -ppp_pcb *pppapi_pppol2tp_create(struct netif *pppif, struct netif *netif, ip_addr_t *ipaddr, u16_t port, - const u8_t *secret, u8_t secret_len, - ppp_link_status_cb_fn link_status_cb, void *ctx_cb); -#endif /* PPPOL2TP_SUPPORT */ -err_t pppapi_connect(ppp_pcb *pcb, u16_t holdoff); -#if PPP_SERVER -err_t pppapi_listen(ppp_pcb *pcb); -#endif /* PPP_SERVER */ -err_t pppapi_close(ppp_pcb *pcb, u8_t nocarrier); -err_t pppapi_free(ppp_pcb *pcb); -err_t pppapi_ioctl(ppp_pcb *pcb, u8_t cmd, void *arg); - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_PPP_API */ - -#endif /* LWIP_PPPAPI_H */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/pppcrypt.h b/Middlewares/Third_Party/LwIP/src/include/netif/ppp/pppcrypt.h deleted file mode 100644 index c0230bb..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/pppcrypt.h +++ /dev/null @@ -1,144 +0,0 @@ -/* - * pppcrypt.c - PPP/DES linkage for MS-CHAP and EAP SRP-SHA1 - * - * Extracted from chap_ms.c by James Carlson. - * - * Copyright (c) 1995 Eric Rosenquist. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The name(s) of the authors of this software must not be used to - * endorse or promote products derived from this software without - * prior written permission. - * - * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY - * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -/* This header file is included in all PPP modules needing hashes and/or ciphers */ - -#ifndef PPPCRYPT_H -#define PPPCRYPT_H - -/* - * If included PolarSSL copy is not used, user is expected to include - * external libraries in arch/cc.h (which is included by lwip/arch.h). - */ -#include "lwip/arch.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Map hashes and ciphers functions to PolarSSL - */ -#if !LWIP_USE_EXTERNAL_MBEDTLS - -#include "netif/ppp/polarssl/md4.h" -#define lwip_md4_context md4_context -#define lwip_md4_init(context) -#define lwip_md4_starts md4_starts -#define lwip_md4_update md4_update -#define lwip_md4_finish md4_finish -#define lwip_md4_free(context) - -#include "netif/ppp/polarssl/md5.h" -#define lwip_md5_context md5_context -#define lwip_md5_init(context) -#define lwip_md5_starts md5_starts -#define lwip_md5_update md5_update -#define lwip_md5_finish md5_finish -#define lwip_md5_free(context) - -#include "netif/ppp/polarssl/sha1.h" -#define lwip_sha1_context sha1_context -#define lwip_sha1_init(context) -#define lwip_sha1_starts sha1_starts -#define lwip_sha1_update sha1_update -#define lwip_sha1_finish sha1_finish -#define lwip_sha1_free(context) - -#include "netif/ppp/polarssl/des.h" -#define lwip_des_context des_context -#define lwip_des_init(context) -#define lwip_des_setkey_enc des_setkey_enc -#define lwip_des_crypt_ecb des_crypt_ecb -#define lwip_des_free(context) - -#include "netif/ppp/polarssl/arc4.h" -#define lwip_arc4_context arc4_context -#define lwip_arc4_init(context) -#define lwip_arc4_setup arc4_setup -#define lwip_arc4_crypt arc4_crypt -#define lwip_arc4_free(context) - -#endif /* !LWIP_USE_EXTERNAL_MBEDTLS */ - -/* - * Map hashes and ciphers functions to mbed TLS - */ -#if LWIP_USE_EXTERNAL_MBEDTLS - -#define lwip_md4_context mbedtls_md4_context -#define lwip_md4_init mbedtls_md4_init -#define lwip_md4_starts mbedtls_md4_starts -#define lwip_md4_update mbedtls_md4_update -#define lwip_md4_finish mbedtls_md4_finish -#define lwip_md4_free mbedtls_md4_free - -#define lwip_md5_context mbedtls_md5_context -#define lwip_md5_init mbedtls_md5_init -#define lwip_md5_starts mbedtls_md5_starts -#define lwip_md5_update mbedtls_md5_update -#define lwip_md5_finish mbedtls_md5_finish -#define lwip_md5_free mbedtls_md5_free - -#define lwip_sha1_context mbedtls_sha1_context -#define lwip_sha1_init mbedtls_sha1_init -#define lwip_sha1_starts mbedtls_sha1_starts -#define lwip_sha1_update mbedtls_sha1_update -#define lwip_sha1_finish mbedtls_sha1_finish -#define lwip_sha1_free mbedtls_sha1_free - -#define lwip_des_context mbedtls_des_context -#define lwip_des_init mbedtls_des_init -#define lwip_des_setkey_enc mbedtls_des_setkey_enc -#define lwip_des_crypt_ecb mbedtls_des_crypt_ecb -#define lwip_des_free mbedtls_des_free - -#define lwip_arc4_context mbedtls_arc4_context -#define lwip_arc4_init mbedtls_arc4_init -#define lwip_arc4_setup mbedtls_arc4_setup -#define lwip_arc4_crypt(context, buffer, length) mbedtls_arc4_crypt(context, length, buffer, buffer) -#define lwip_arc4_free mbedtls_arc4_free - -#endif /* LWIP_USE_EXTERNAL_MBEDTLS */ - -void pppcrypt_56_to_64_bit_key(u_char *key, u_char *des_key); - -#ifdef __cplusplus -} -#endif - -#endif /* PPPCRYPT_H */ - -#endif /* PPP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/pppdebug.h b/Middlewares/Third_Party/LwIP/src/include/netif/ppp/pppdebug.h deleted file mode 100644 index 36ee4f9..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/pppdebug.h +++ /dev/null @@ -1,88 +0,0 @@ -/***************************************************************************** -* pppdebug.h - System debugging utilities. -* -* Copyright (c) 2003 by Marc Boucher, Services Informatiques (MBSI) inc. -* portions Copyright (c) 1998 Global Election Systems Inc. -* portions Copyright (c) 2001 by Cognizant Pty Ltd. -* -* The authors hereby grant permission to use, copy, modify, distribute, -* and license this software and its documentation for any purpose, provided -* that existing copyright notices are retained in all copies and that this -* notice and the following disclaimer are included verbatim in any -* distributions. No written agreement, license, or royalty fee is required -* for any of the authorized uses. -* -* THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS *AS IS* AND ANY EXPRESS OR -* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -* IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT -* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -* -****************************************************************************** -* REVISION HISTORY (please don't use tabs!) -* -* 03-01-01 Marc Boucher -* Ported to lwIP. -* 98-07-29 Guy Lancaster , Global Election Systems Inc. -* Original. -* -***************************************************************************** -*/ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#ifndef PPPDEBUG_H -#define PPPDEBUG_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* Trace levels. */ -#define LOG_CRITICAL (PPP_DEBUG | LWIP_DBG_LEVEL_SEVERE) -#define LOG_ERR (PPP_DEBUG | LWIP_DBG_LEVEL_SEVERE) -#define LOG_NOTICE (PPP_DEBUG | LWIP_DBG_LEVEL_WARNING) -#define LOG_WARNING (PPP_DEBUG | LWIP_DBG_LEVEL_WARNING) -#define LOG_INFO (PPP_DEBUG) -#define LOG_DETAIL (PPP_DEBUG) -#define LOG_DEBUG (PPP_DEBUG) - -#if PPP_DEBUG - -#define MAINDEBUG(a) LWIP_DEBUGF(LWIP_DBG_LEVEL_WARNING, a) -#define SYSDEBUG(a) LWIP_DEBUGF(LWIP_DBG_LEVEL_WARNING, a) -#define FSMDEBUG(a) LWIP_DEBUGF(LWIP_DBG_LEVEL_WARNING, a) -#define LCPDEBUG(a) LWIP_DEBUGF(LWIP_DBG_LEVEL_WARNING, a) -#define IPCPDEBUG(a) LWIP_DEBUGF(LWIP_DBG_LEVEL_WARNING, a) -#define IPV6CPDEBUG(a) LWIP_DEBUGF(LWIP_DBG_LEVEL_WARNING, a) -#define UPAPDEBUG(a) LWIP_DEBUGF(LWIP_DBG_LEVEL_WARNING, a) -#define CHAPDEBUG(a) LWIP_DEBUGF(LWIP_DBG_LEVEL_WARNING, a) -#define PPPDEBUG(a, b) LWIP_DEBUGF(a, b) - -#else /* PPP_DEBUG */ - -#define MAINDEBUG(a) -#define SYSDEBUG(a) -#define FSMDEBUG(a) -#define LCPDEBUG(a) -#define IPCPDEBUG(a) -#define IPV6CPDEBUG(a) -#define UPAPDEBUG(a) -#define CHAPDEBUG(a) -#define PPPDEBUG(a, b) - -#endif /* PPP_DEBUG */ - -#ifdef __cplusplus -} -#endif - -#endif /* PPPDEBUG_H */ - -#endif /* PPP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/pppoe.h b/Middlewares/Third_Party/LwIP/src/include/netif/ppp/pppoe.h deleted file mode 100644 index 08ab7ab..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/pppoe.h +++ /dev/null @@ -1,187 +0,0 @@ -/***************************************************************************** -* pppoe.h - PPP Over Ethernet implementation for lwIP. -* -* Copyright (c) 2006 by Marc Boucher, Services Informatiques (MBSI) inc. -* -* The authors hereby grant permission to use, copy, modify, distribute, -* and license this software and its documentation for any purpose, provided -* that existing copyright notices are retained in all copies and that this -* notice and the following disclaimer are included verbatim in any -* distributions. No written agreement, license, or royalty fee is required -* for any of the authorized uses. -* -* THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS *AS IS* AND ANY EXPRESS OR -* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -* IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT -* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -* -****************************************************************************** -* REVISION HISTORY -* -* 06-01-01 Marc Boucher -* Ported to lwIP. -*****************************************************************************/ - - - -/* based on NetBSD: if_pppoe.c,v 1.64 2006/01/31 23:50:15 martin Exp */ - -/*- - * Copyright (c) 2002 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Martin Husemann . - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the NetBSD - * Foundation, Inc. and its contributors. - * 4. Neither the name of The NetBSD Foundation nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS - * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && PPPOE_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#ifndef PPP_OE_H -#define PPP_OE_H - -#include "ppp.h" -#include "lwip/etharp.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct pppoehdr { - PACK_STRUCT_FLD_8(u8_t vertype); - PACK_STRUCT_FLD_8(u8_t code); - PACK_STRUCT_FIELD(u16_t session); - PACK_STRUCT_FIELD(u16_t plen); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct pppoetag { - PACK_STRUCT_FIELD(u16_t tag); - PACK_STRUCT_FIELD(u16_t len); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - - -#define PPPOE_STATE_INITIAL 0 -#define PPPOE_STATE_PADI_SENT 1 -#define PPPOE_STATE_PADR_SENT 2 -#define PPPOE_STATE_SESSION 3 -/* passive */ -#define PPPOE_STATE_PADO_SENT 1 - -#define PPPOE_HEADERLEN sizeof(struct pppoehdr) -#define PPPOE_VERTYPE 0x11 /* VER=1, TYPE = 1 */ - -#define PPPOE_TAG_EOL 0x0000 /* end of list */ -#define PPPOE_TAG_SNAME 0x0101 /* service name */ -#define PPPOE_TAG_ACNAME 0x0102 /* access concentrator name */ -#define PPPOE_TAG_HUNIQUE 0x0103 /* host unique */ -#define PPPOE_TAG_ACCOOKIE 0x0104 /* AC cookie */ -#define PPPOE_TAG_VENDOR 0x0105 /* vendor specific */ -#define PPPOE_TAG_RELAYSID 0x0110 /* relay session id */ -#define PPPOE_TAG_SNAME_ERR 0x0201 /* service name error */ -#define PPPOE_TAG_ACSYS_ERR 0x0202 /* AC system error */ -#define PPPOE_TAG_GENERIC_ERR 0x0203 /* gerneric error */ - -#define PPPOE_CODE_PADI 0x09 /* Active Discovery Initiation */ -#define PPPOE_CODE_PADO 0x07 /* Active Discovery Offer */ -#define PPPOE_CODE_PADR 0x19 /* Active Discovery Request */ -#define PPPOE_CODE_PADS 0x65 /* Active Discovery Session confirmation */ -#define PPPOE_CODE_PADT 0xA7 /* Active Discovery Terminate */ - -#ifndef PPPOE_MAX_AC_COOKIE_LEN -#define PPPOE_MAX_AC_COOKIE_LEN 64 -#endif - -struct pppoe_softc { - struct pppoe_softc *next; - struct netif *sc_ethif; /* ethernet interface we are using */ - ppp_pcb *pcb; /* PPP PCB */ - - struct eth_addr sc_dest; /* hardware address of concentrator */ - u16_t sc_session; /* PPPoE session id */ - u8_t sc_state; /* discovery phase or session connected */ - -#ifdef PPPOE_TODO - u8_t *sc_service_name; /* if != NULL: requested name of service */ - u8_t *sc_concentrator_name; /* if != NULL: requested concentrator id */ -#endif /* PPPOE_TODO */ - u8_t sc_ac_cookie[PPPOE_MAX_AC_COOKIE_LEN]; /* content of AC cookie we must echo back */ - u8_t sc_ac_cookie_len; /* length of cookie data */ -#ifdef PPPOE_SERVER - u8_t *sc_hunique; /* content of host unique we must echo back */ - u8_t sc_hunique_len; /* length of host unique */ -#endif - u8_t sc_padi_retried; /* number of PADI retries already done */ - u8_t sc_padr_retried; /* number of PADR retries already done */ -}; - - -#define pppoe_init() /* compatibility define, no initialization needed */ - -ppp_pcb *pppoe_create(struct netif *pppif, - struct netif *ethif, - const char *service_name, const char *concentrator_name, - ppp_link_status_cb_fn link_status_cb, void *ctx_cb); - -/* - * Functions called from lwIP - * DO NOT CALL FROM lwIP USER APPLICATION. - */ -void pppoe_disc_input(struct netif *netif, struct pbuf *p); -void pppoe_data_input(struct netif *netif, struct pbuf *p); - -#ifdef __cplusplus -} -#endif - -#endif /* PPP_OE_H */ - -#endif /* PPP_SUPPORT && PPPOE_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/pppol2tp.h b/Middlewares/Third_Party/LwIP/src/include/netif/ppp/pppol2tp.h deleted file mode 100644 index 1221ca1..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/pppol2tp.h +++ /dev/null @@ -1,209 +0,0 @@ -/** - * @file - * Network Point to Point Protocol over Layer 2 Tunneling Protocol header file. - * - */ - -/* - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && PPPOL2TP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#ifndef PPPOL2TP_H -#define PPPOL2TP_H - -#include "ppp.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* Timeout */ -#define PPPOL2TP_CONTROL_TIMEOUT (5*1000) /* base for quick timeout calculation */ -#define PPPOL2TP_SLOW_RETRY (60*1000) /* persistent retry interval */ - -#define PPPOL2TP_MAXSCCRQ 4 /* retry SCCRQ four times (quickly) */ -#define PPPOL2TP_MAXICRQ 4 /* retry IRCQ four times */ -#define PPPOL2TP_MAXICCN 4 /* retry ICCN four times */ - -/* L2TP header flags */ -#define PPPOL2TP_HEADERFLAG_CONTROL 0x8000 -#define PPPOL2TP_HEADERFLAG_LENGTH 0x4000 -#define PPPOL2TP_HEADERFLAG_SEQUENCE 0x0800 -#define PPPOL2TP_HEADERFLAG_OFFSET 0x0200 -#define PPPOL2TP_HEADERFLAG_PRIORITY 0x0100 -#define PPPOL2TP_HEADERFLAG_VERSION 0x0002 - -/* Mandatory bits for control: Control, Length, Sequence, Version 2 */ -#define PPPOL2TP_HEADERFLAG_CONTROL_MANDATORY (PPPOL2TP_HEADERFLAG_CONTROL|PPPOL2TP_HEADERFLAG_LENGTH|PPPOL2TP_HEADERFLAG_SEQUENCE|PPPOL2TP_HEADERFLAG_VERSION) -/* Forbidden bits for control: Offset, Priority */ -#define PPPOL2TP_HEADERFLAG_CONTROL_FORBIDDEN (PPPOL2TP_HEADERFLAG_OFFSET|PPPOL2TP_HEADERFLAG_PRIORITY) - -/* Mandatory bits for data: Version 2 */ -#define PPPOL2TP_HEADERFLAG_DATA_MANDATORY (PPPOL2TP_HEADERFLAG_VERSION) - -/* AVP (Attribute Value Pair) header */ -#define PPPOL2TP_AVPHEADERFLAG_MANDATORY 0x8000 -#define PPPOL2TP_AVPHEADERFLAG_HIDDEN 0x4000 -#define PPPOL2TP_AVPHEADERFLAG_LENGTHMASK 0x03ff - -/* -- AVP - Message type */ -#define PPPOL2TP_AVPTYPE_MESSAGE 0 /* Message type */ - -/* Control Connection Management */ -#define PPPOL2TP_MESSAGETYPE_SCCRQ 1 /* Start Control Connection Request */ -#define PPPOL2TP_MESSAGETYPE_SCCRP 2 /* Start Control Connection Reply */ -#define PPPOL2TP_MESSAGETYPE_SCCCN 3 /* Start Control Connection Connected */ -#define PPPOL2TP_MESSAGETYPE_STOPCCN 4 /* Stop Control Connection Notification */ -#define PPPOL2TP_MESSAGETYPE_HELLO 6 /* Hello */ -/* Call Management */ -#define PPPOL2TP_MESSAGETYPE_OCRQ 7 /* Outgoing Call Request */ -#define PPPOL2TP_MESSAGETYPE_OCRP 8 /* Outgoing Call Reply */ -#define PPPOL2TP_MESSAGETYPE_OCCN 9 /* Outgoing Call Connected */ -#define PPPOL2TP_MESSAGETYPE_ICRQ 10 /* Incoming Call Request */ -#define PPPOL2TP_MESSAGETYPE_ICRP 11 /* Incoming Call Reply */ -#define PPPOL2TP_MESSAGETYPE_ICCN 12 /* Incoming Call Connected */ -#define PPPOL2TP_MESSAGETYPE_CDN 14 /* Call Disconnect Notify */ -/* Error reporting */ -#define PPPOL2TP_MESSAGETYPE_WEN 15 /* WAN Error Notify */ -/* PPP Session Control */ -#define PPPOL2TP_MESSAGETYPE_SLI 16 /* Set Link Info */ - -/* -- AVP - Result code */ -#define PPPOL2TP_AVPTYPE_RESULTCODE 1 /* Result code */ -#define PPPOL2TP_RESULTCODE 1 /* General request to clear control connection */ - -/* -- AVP - Protocol version (!= L2TP Header version) */ -#define PPPOL2TP_AVPTYPE_VERSION 2 -#define PPPOL2TP_VERSION 0x0100 /* L2TP Protocol version 1, revision 0 */ - -/* -- AVP - Framing capabilities */ -#define PPPOL2TP_AVPTYPE_FRAMINGCAPABILITIES 3 /* Bearer capabilities */ -#define PPPOL2TP_FRAMINGCAPABILITIES 0x00000003 /* Async + Sync framing */ - -/* -- AVP - Bearer capabilities */ -#define PPPOL2TP_AVPTYPE_BEARERCAPABILITIES 4 /* Bearer capabilities */ -#define PPPOL2TP_BEARERCAPABILITIES 0x00000003 /* Analog + Digital Access */ - -/* -- AVP - Tie breaker */ -#define PPPOL2TP_AVPTYPE_TIEBREAKER 5 - -/* -- AVP - Host name */ -#define PPPOL2TP_AVPTYPE_HOSTNAME 7 /* Host name */ -#define PPPOL2TP_HOSTNAME "lwIP" /* FIXME: make it configurable */ - -/* -- AVP - Vendor name */ -#define PPPOL2TP_AVPTYPE_VENDORNAME 8 /* Vendor name */ -#define PPPOL2TP_VENDORNAME "lwIP" /* FIXME: make it configurable */ - -/* -- AVP - Assign tunnel ID */ -#define PPPOL2TP_AVPTYPE_TUNNELID 9 /* Assign Tunnel ID */ - -/* -- AVP - Receive window size */ -#define PPPOL2TP_AVPTYPE_RECEIVEWINDOWSIZE 10 /* Receive window size */ -#define PPPOL2TP_RECEIVEWINDOWSIZE 8 /* FIXME: make it configurable */ - -/* -- AVP - Challenge */ -#define PPPOL2TP_AVPTYPE_CHALLENGE 11 /* Challenge */ - -/* -- AVP - Cause code */ -#define PPPOL2TP_AVPTYPE_CAUSECODE 12 /* Cause code*/ - -/* -- AVP - Challenge response */ -#define PPPOL2TP_AVPTYPE_CHALLENGERESPONSE 13 /* Challenge response */ -#define PPPOL2TP_AVPTYPE_CHALLENGERESPONSE_SIZE 16 - -/* -- AVP - Assign session ID */ -#define PPPOL2TP_AVPTYPE_SESSIONID 14 /* Assign Session ID */ - -/* -- AVP - Call serial number */ -#define PPPOL2TP_AVPTYPE_CALLSERIALNUMBER 15 /* Call Serial Number */ - -/* -- AVP - Framing type */ -#define PPPOL2TP_AVPTYPE_FRAMINGTYPE 19 /* Framing Type */ -#define PPPOL2TP_FRAMINGTYPE 0x00000001 /* Sync framing */ - -/* -- AVP - TX Connect Speed */ -#define PPPOL2TP_AVPTYPE_TXCONNECTSPEED 24 /* TX Connect Speed */ -#define PPPOL2TP_TXCONNECTSPEED 100000000 /* Connect speed: 100 Mbits/s */ - -/* L2TP Session state */ -#define PPPOL2TP_STATE_INITIAL 0 -#define PPPOL2TP_STATE_SCCRQ_SENT 1 -#define PPPOL2TP_STATE_ICRQ_SENT 2 -#define PPPOL2TP_STATE_ICCN_SENT 3 -#define PPPOL2TP_STATE_DATA 4 - -#define PPPOL2TP_OUTPUT_DATA_HEADER_LEN 6 /* Our data header len */ - -/* - * PPPoL2TP interface control block. - */ -typedef struct pppol2tp_pcb_s pppol2tp_pcb; -struct pppol2tp_pcb_s { - ppp_pcb *ppp; /* PPP PCB */ - u8_t phase; /* L2TP phase */ - struct udp_pcb *udp; /* UDP L2TP Socket */ - struct netif *netif; /* Output interface, used as a default route */ - ip_addr_t remote_ip; /* LNS IP Address */ - u16_t remote_port; /* LNS port */ -#if PPPOL2TP_AUTH_SUPPORT - const u8_t *secret; /* Secret string */ - u8_t secret_len; /* Secret string length */ - u8_t secret_rv[16]; /* Random vector */ - u8_t challenge_hash[16]; /* Challenge response */ - u8_t send_challenge; /* Boolean whether the next sent packet should contains a challenge response */ -#endif /* PPPOL2TP_AUTH_SUPPORT */ - - u16_t tunnel_port; /* Tunnel port */ - u16_t our_ns; /* NS to peer */ - u16_t peer_nr; /* NR from peer */ - u16_t peer_ns; /* Expected NS from peer */ - u16_t source_tunnel_id; /* Tunnel ID assigned by peer */ - u16_t remote_tunnel_id; /* Tunnel ID assigned to peer */ - u16_t source_session_id; /* Session ID assigned by peer */ - u16_t remote_session_id; /* Session ID assigned to peer */ - - u8_t sccrq_retried; /* number of SCCRQ retries already done */ - u8_t icrq_retried; /* number of ICRQ retries already done */ - u8_t iccn_retried; /* number of ICCN retries already done */ -}; - - -/* Create a new L2TP session. */ -ppp_pcb *pppol2tp_create(struct netif *pppif, - struct netif *netif, const ip_addr_t *ipaddr, u16_t port, - const u8_t *secret, u8_t secret_len, - ppp_link_status_cb_fn link_status_cb, void *ctx_cb); - -#ifdef __cplusplus -} -#endif - -#endif /* PPPOL2TP_H */ -#endif /* PPP_SUPPORT && PPPOL2TP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/pppos.h b/Middlewares/Third_Party/LwIP/src/include/netif/ppp/pppos.h deleted file mode 100644 index 380a965..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/pppos.h +++ /dev/null @@ -1,126 +0,0 @@ -/** - * @file - * Network Point to Point Protocol over Serial header file. - * - */ - -/* - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && PPPOS_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#ifndef PPPOS_H -#define PPPOS_H - -#include "lwip/sys.h" - -#include "ppp.h" -#include "vj.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* PPP packet parser states. Current state indicates operation yet to be - * completed. */ -enum { - PDIDLE = 0, /* Idle state - waiting. */ - PDSTART, /* Process start flag. */ - PDADDRESS, /* Process address field. */ - PDCONTROL, /* Process control field. */ - PDPROTOCOL1, /* Process protocol field 1. */ - PDPROTOCOL2, /* Process protocol field 2. */ - PDDATA /* Process data byte. */ -}; - -/* PPPoS serial output callback function prototype */ -typedef u32_t (*pppos_output_cb_fn)(ppp_pcb *pcb, u8_t *data, u32_t len, void *ctx); - -/* - * Extended asyncmap - allows any character to be escaped. - */ -typedef u8_t ext_accm[32]; - -/* - * PPPoS interface control block. - */ -typedef struct pppos_pcb_s pppos_pcb; -struct pppos_pcb_s { - /* -- below are data that will NOT be cleared between two sessions */ - ppp_pcb *ppp; /* PPP PCB */ - pppos_output_cb_fn output_cb; /* PPP serial output callback */ - - /* -- below are data that will be cleared between two sessions - * - * last_xmit must be the first member of cleared members, because it is - * used to know which part must not be cleared. - */ - u32_t last_xmit; /* Time of last transmission. */ - ext_accm out_accm; /* Async-Ctl-Char-Map for output. */ - - /* flags */ - unsigned int open :1; /* Set if PPPoS is open */ - unsigned int pcomp :1; /* Does peer accept protocol compression? */ - unsigned int accomp :1; /* Does peer accept addr/ctl compression? */ - - /* PPPoS rx */ - ext_accm in_accm; /* Async-Ctl-Char-Map for input. */ - struct pbuf *in_head, *in_tail; /* The input packet. */ - u16_t in_protocol; /* The input protocol code. */ - u16_t in_fcs; /* Input Frame Check Sequence value. */ - u8_t in_state; /* The input process state. */ - u8_t in_escaped; /* Escape next character. */ -}; - -/* Create a new PPPoS session. */ -ppp_pcb *pppos_create(struct netif *pppif, pppos_output_cb_fn output_cb, - ppp_link_status_cb_fn link_status_cb, void *ctx_cb); - -#if !NO_SYS && !PPP_INPROC_IRQ_SAFE -/* Pass received raw characters to PPPoS to be decoded through lwIP TCPIP thread. */ -err_t pppos_input_tcpip(ppp_pcb *ppp, u8_t *s, int l); -#endif /* !NO_SYS && !PPP_INPROC_IRQ_SAFE */ - -/* PPP over Serial: this is the input function to be called for received data. */ -void pppos_input(ppp_pcb *ppp, u8_t* data, int len); - - -/* - * Functions called from lwIP - * DO NOT CALL FROM lwIP USER APPLICATION. - */ -#if !NO_SYS && !PPP_INPROC_IRQ_SAFE -err_t pppos_input_sys(struct pbuf *p, struct netif *inp); -#endif /* !NO_SYS && !PPP_INPROC_IRQ_SAFE */ - -#ifdef __cplusplus -} -#endif - -#endif /* PPPOS_H */ -#endif /* PPP_SUPPORT && PPPOL2TP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/upap.h b/Middlewares/Third_Party/LwIP/src/include/netif/ppp/upap.h deleted file mode 100644 index 540d981..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/upap.h +++ /dev/null @@ -1,131 +0,0 @@ -/* - * upap.h - User/Password Authentication Protocol definitions. - * - * Copyright (c) 1984-2000 Carnegie Mellon University. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The name "Carnegie Mellon University" must not be used to - * endorse or promote products derived from this software without - * prior written permission. For permission or any legal - * details, please contact - * Office of Technology Transfer - * Carnegie Mellon University - * 5000 Forbes Avenue - * Pittsburgh, PA 15213-3890 - * (412) 268-4387, fax: (412) 268-7395 - * tech-transfer@andrew.cmu.edu - * - * 4. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Computing Services - * at Carnegie Mellon University (http://www.cmu.edu/computing/)." - * - * CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE - * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * $Id: upap.h,v 1.8 2002/12/04 23:03:33 paulus Exp $ - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && PAP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#ifndef UPAP_H -#define UPAP_H - -#include "ppp.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Packet header = Code, id, length. - */ -#define UPAP_HEADERLEN 4 - - -/* - * UPAP codes. - */ -#define UPAP_AUTHREQ 1 /* Authenticate-Request */ -#define UPAP_AUTHACK 2 /* Authenticate-Ack */ -#define UPAP_AUTHNAK 3 /* Authenticate-Nak */ - - -/* - * Client states. - */ -#define UPAPCS_INITIAL 0 /* Connection down */ -#define UPAPCS_CLOSED 1 /* Connection up, haven't requested auth */ -#define UPAPCS_PENDING 2 /* Connection down, have requested auth */ -#define UPAPCS_AUTHREQ 3 /* We've sent an Authenticate-Request */ -#define UPAPCS_OPEN 4 /* We've received an Ack */ -#define UPAPCS_BADAUTH 5 /* We've received a Nak */ - -/* - * Server states. - */ -#define UPAPSS_INITIAL 0 /* Connection down */ -#define UPAPSS_CLOSED 1 /* Connection up, haven't requested auth */ -#define UPAPSS_PENDING 2 /* Connection down, have requested auth */ -#define UPAPSS_LISTEN 3 /* Listening for an Authenticate */ -#define UPAPSS_OPEN 4 /* We've sent an Ack */ -#define UPAPSS_BADAUTH 5 /* We've sent a Nak */ - - -/* - * Timeouts. - */ -#if 0 /* moved to ppp_opts.h */ -#define UPAP_DEFTIMEOUT 3 /* Timeout (seconds) for retransmitting req */ -#define UPAP_DEFREQTIME 30 /* Time to wait for auth-req from peer */ -#endif /* moved to ppp_opts.h */ - -/* - * Each interface is described by upap structure. - */ -#if PAP_SUPPORT -typedef struct upap_state { - const char *us_user; /* User */ - u8_t us_userlen; /* User length */ - const char *us_passwd; /* Password */ - u8_t us_passwdlen; /* Password length */ - u8_t us_clientstate; /* Client state */ -#if PPP_SERVER - u8_t us_serverstate; /* Server state */ -#endif /* PPP_SERVER */ - u8_t us_id; /* Current id */ - u8_t us_transmits; /* Number of auth-reqs sent */ -} upap_state; -#endif /* PAP_SUPPORT */ - - -void upap_authwithpeer(ppp_pcb *pcb, const char *user, const char *password); -#if PPP_SERVER -void upap_authpeer(ppp_pcb *pcb); -#endif /* PPP_SERVER */ - -extern const struct protent pap_protent; - -#ifdef __cplusplus -} -#endif - -#endif /* UPAP_H */ -#endif /* PPP_SUPPORT && PAP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/vj.h b/Middlewares/Third_Party/LwIP/src/include/netif/ppp/vj.h deleted file mode 100644 index 77d9976..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/ppp/vj.h +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Definitions for tcp compression routines. - * - * $Id: vj.h,v 1.7 2010/02/22 17:52:09 goldsimon Exp $ - * - * Copyright (c) 1989 Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms are permitted - * provided that the above copyright notice and this paragraph are - * duplicated in all such forms and that any documentation, - * advertising materials, and other materials related to such - * distribution and use acknowledge that the software was developed - * by the University of California, Berkeley. The name of the - * University may not be used to endorse or promote products derived - * from this software without specific prior written permission. - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED - * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. - * - * Van Jacobson (van@helios.ee.lbl.gov), Dec 31, 1989: - * - Initial distribution. - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && VJ_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#ifndef VJ_H -#define VJ_H - -#include "lwip/ip.h" -#include "lwip/priv/tcp_priv.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define MAX_SLOTS 16 /* must be > 2 and < 256 */ -#define MAX_HDR 128 - -/* - * Compressed packet format: - * - * The first octet contains the packet type (top 3 bits), TCP - * 'push' bit, and flags that indicate which of the 4 TCP sequence - * numbers have changed (bottom 5 bits). The next octet is a - * conversation number that associates a saved IP/TCP header with - * the compressed packet. The next two octets are the TCP checksum - * from the original datagram. The next 0 to 15 octets are - * sequence number changes, one change per bit set in the header - * (there may be no changes and there are two special cases where - * the receiver implicitly knows what changed -- see below). - * - * There are 5 numbers which can change (they are always inserted - * in the following order): TCP urgent pointer, window, - * acknowlegement, sequence number and IP ID. (The urgent pointer - * is different from the others in that its value is sent, not the - * change in value.) Since typical use of SLIP links is biased - * toward small packets (see comments on MTU/MSS below), changes - * use a variable length coding with one octet for numbers in the - * range 1 - 255 and 3 octets (0, MSB, LSB) for numbers in the - * range 256 - 65535 or 0. (If the change in sequence number or - * ack is more than 65535, an uncompressed packet is sent.) - */ - -/* - * Packet types (must not conflict with IP protocol version) - * - * The top nibble of the first octet is the packet type. There are - * three possible types: IP (not proto TCP or tcp with one of the - * control flags set); uncompressed TCP (a normal IP/TCP packet but - * with the 8-bit protocol field replaced by an 8-bit connection id -- - * this type of packet syncs the sender & receiver); and compressed - * TCP (described above). - * - * LSB of 4-bit field is TCP "PUSH" bit (a worthless anachronism) and - * is logically part of the 4-bit "changes" field that follows. Top - * three bits are actual packet type. For backward compatibility - * and in the interest of conserving bits, numbers are chosen so the - * IP protocol version number (4) which normally appears in this nibble - * means "IP packet". - */ - -/* packet types */ -#define TYPE_IP 0x40 -#define TYPE_UNCOMPRESSED_TCP 0x70 -#define TYPE_COMPRESSED_TCP 0x80 -#define TYPE_ERROR 0x00 - -/* Bits in first octet of compressed packet */ -#define NEW_C 0x40 /* flag bits for what changed in a packet */ -#define NEW_I 0x20 -#define NEW_S 0x08 -#define NEW_A 0x04 -#define NEW_W 0x02 -#define NEW_U 0x01 - -/* reserved, special-case values of above */ -#define SPECIAL_I (NEW_S|NEW_W|NEW_U) /* echoed interactive traffic */ -#define SPECIAL_D (NEW_S|NEW_A|NEW_W|NEW_U) /* unidirectional data */ -#define SPECIALS_MASK (NEW_S|NEW_A|NEW_W|NEW_U) - -#define TCP_PUSH_BIT 0x10 - - -/* - * "state" data for each active tcp conversation on the wire. This is - * basically a copy of the entire IP/TCP header from the last packet - * we saw from the conversation together with a small identifier - * the transmit & receive ends of the line use to locate saved header. - */ -struct cstate { - struct cstate *cs_next; /* next most recently used state (xmit only) */ - u16_t cs_hlen; /* size of hdr (receive only) */ - u8_t cs_id; /* connection # associated with this state */ - u8_t cs_filler; - union { - char csu_hdr[MAX_HDR]; - struct ip_hdr csu_ip; /* ip/tcp hdr from most recent packet */ - } vjcs_u; -}; -#define cs_ip vjcs_u.csu_ip -#define cs_hdr vjcs_u.csu_hdr - - -struct vjstat { - u32_t vjs_packets; /* outbound packets */ - u32_t vjs_compressed; /* outbound compressed packets */ - u32_t vjs_searches; /* searches for connection state */ - u32_t vjs_misses; /* times couldn't find conn. state */ - u32_t vjs_uncompressedin; /* inbound uncompressed packets */ - u32_t vjs_compressedin; /* inbound compressed packets */ - u32_t vjs_errorin; /* inbound unknown type packets */ - u32_t vjs_tossed; /* inbound packets tossed because of error */ -}; - -/* - * all the state data for one serial line (we need one of these per line). - */ -struct vjcompress { - struct cstate *last_cs; /* most recently used tstate */ - u8_t last_recv; /* last rcvd conn. id */ - u8_t last_xmit; /* last sent conn. id */ - u16_t flags; - u8_t maxSlotIndex; - u8_t compressSlot; /* Flag indicating OK to compress slot ID. */ -#if LINK_STATS - struct vjstat stats; -#endif - struct cstate tstate[MAX_SLOTS]; /* xmit connection states */ - struct cstate rstate[MAX_SLOTS]; /* receive connection states */ -}; - -/* flag values */ -#define VJF_TOSS 1U /* tossing rcvd frames because of input err */ - -extern void vj_compress_init (struct vjcompress *comp); -extern u8_t vj_compress_tcp (struct vjcompress *comp, struct pbuf **pb); -extern void vj_uncompress_err (struct vjcompress *comp); -extern int vj_uncompress_uncomp(struct pbuf *nb, struct vjcompress *comp); -extern int vj_uncompress_tcp (struct pbuf **nb, struct vjcompress *comp); - -#ifdef __cplusplus -} -#endif - -#endif /* VJ_H */ - -#endif /* PPP_SUPPORT && VJ_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/slipif.h b/Middlewares/Third_Party/LwIP/src/include/netif/slipif.h deleted file mode 100644 index 65ba31f..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/slipif.h +++ /dev/null @@ -1,87 +0,0 @@ -/** - * @file - * - * SLIP netif API - */ - -/* - * Copyright (c) 2001, Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the Institute nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef LWIP_HDR_NETIF_SLIPIF_H -#define LWIP_HDR_NETIF_SLIPIF_H - -#include "lwip/opt.h" -#include "lwip/netif.h" - -/** Set this to 1 to start a thread that blocks reading on the serial line - * (using sio_read()). - */ -#ifndef SLIP_USE_RX_THREAD -#define SLIP_USE_RX_THREAD !NO_SYS -#endif - -/** Set this to 1 to enable functions to pass in RX bytes from ISR context. - * If enabled, slipif_received_byte[s]() process incoming bytes and put assembled - * packets on a queue, which is fed into lwIP from slipif_poll(). - * If disabled, slipif_poll() polls the serial line (using sio_tryread()). - */ -#ifndef SLIP_RX_FROM_ISR -#define SLIP_RX_FROM_ISR 0 -#endif - -/** Set this to 1 (default for SLIP_RX_FROM_ISR) to queue incoming packets - * received by slipif_received_byte[s]() as long as PBUF_POOL pbufs are available. - * If disabled, packets will be dropped if more than one packet is received. - */ -#ifndef SLIP_RX_QUEUE -#define SLIP_RX_QUEUE SLIP_RX_FROM_ISR -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -err_t slipif_init(struct netif * netif); -void slipif_poll(struct netif *netif); -#if SLIP_RX_FROM_ISR -void slipif_process_rxqueue(struct netif *netif); -void slipif_received_byte(struct netif *netif, u8_t data); -void slipif_received_bytes(struct netif *netif, u8_t *data, u8_t len); -#endif /* SLIP_RX_FROM_ISR */ - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_HDR_NETIF_SLIPIF_H */ - diff --git a/Middlewares/Third_Party/LwIP/src/include/netif/zepif.h b/Middlewares/Third_Party/LwIP/src/include/netif/zepif.h deleted file mode 100644 index 2a801b4..0000000 --- a/Middlewares/Third_Party/LwIP/src/include/netif/zepif.h +++ /dev/null @@ -1,81 +0,0 @@ -/** - * @file - * - * A netif implementing the ZigBee Eencapsulation Protocol (ZEP). - * This is used to tunnel 6LowPAN over UDP. - */ - -/* - * Copyright (c) 2018 Simon Goldschmidt - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Simon Goldschmidt - * - */ - -#ifndef LWIP_HDR_ZEPIF_H -#define LWIP_HDR_ZEPIF_H - -#include "lwip/opt.h" -#include "netif/lowpan6.h" - -#if LWIP_IPV6 && LWIP_UDP /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/netif.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define ZEPIF_DEFAULT_UDP_PORT 17754 - -/** Pass this struct as 'state' to netif_add to control the behaviour - * of this netif. If NULL is passed, default behaviour is chosen */ -struct zepif_init { - /** The UDP port used to ZEP frames from (0 = default) */ - u16_t zep_src_udp_port; - /** The UDP port used to ZEP frames to (0 = default) */ - u16_t zep_dst_udp_port; - /** The IP address to sed ZEP frames from (NULL = ANY) */ - const ip_addr_t *zep_src_ip_addr; - /** The IP address to sed ZEP frames to (NULL = BROADCAST) */ - const ip_addr_t *zep_dst_ip_addr; - /** If != NULL, the udp pcb is bound to this netif */ - const struct netif *zep_netif; - /** MAC address of the 6LowPAN device */ - u8_t addr[6]; -}; - -err_t zepif_init(struct netif *netif); - -#ifdef __cplusplus -} -#endif - -#endif /* LWIP_IPV6 && LWIP_UDP */ - -#endif /* LWIP_HDR_ZEPIF_H */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/bridgeif.c b/Middlewares/Third_Party/LwIP/src/netif/bridgeif.c deleted file mode 100644 index 8a97bce..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/bridgeif.c +++ /dev/null @@ -1,563 +0,0 @@ -/** - * @file - * lwIP netif implementing an IEEE 802.1D MAC Bridge - */ - -/* - * Copyright (c) 2017 Simon Goldschmidt. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Simon Goldschmidt - * - */ - -/** - * @defgroup bridgeif IEEE 802.1D bridge - * @ingroup netifs - * This file implements an IEEE 802.1D bridge by using a multilayer netif approach - * (one hardware-independent netif for the bridge that uses hardware netifs for its ports). - * On transmit, the bridge selects the outgoing port(s). - * On receive, the port netif calls into the bridge (via its netif->input function) and - * the bridge selects the port(s) (and/or its netif->input function) to pass the received pbuf to. - * - * Usage: - * - add the port netifs just like you would when using them as dedicated netif without a bridge - * - only NETIF_FLAG_ETHARP/NETIF_FLAG_ETHERNET netifs are supported as bridge ports - * - add the bridge port netifs without IPv4 addresses (i.e. pass 'NULL, NULL, NULL') - * - don't add IPv6 addresses to the port netifs! - * - set up the bridge configuration in a global variable of type 'bridgeif_initdata_t' that contains - * - the MAC address of the bridge - * - some configuration options controlling the memory consumption (maximum number of ports - * and FDB entries) - * - e.g. for a bridge MAC address 00-01-02-03-04-05, 2 bridge ports, 1024 FDB entries + 16 static MAC entries: - * bridgeif_initdata_t mybridge_initdata = BRIDGEIF_INITDATA1(2, 1024, 16, ETH_ADDR(0, 1, 2, 3, 4, 5)); - * - add the bridge netif (with IPv4 config): - * struct netif bridge_netif; - * netif_add(&bridge_netif, &my_ip, &my_netmask, &my_gw, &mybridge_initdata, bridgeif_init, tcpip_input); - * NOTE: the passed 'input' function depends on BRIDGEIF_PORT_NETIFS_OUTPUT_DIRECT setting, - * which controls where the forwarding is done (netif low level input context vs. tcpip_thread) - * - set up all ports netifs and the bridge netif - * - * - When adding a port netif, NETIF_FLAG_ETHARP flag will be removed from a port - * to prevent ETHARP working on that port netif (we only want one IP per bridge not per port). - * - When adding a port netif, its input function is changed to call into the bridge. - * - * - * @todo: - * - compact static FDB entries (instead of walking the whole array) - * - add FDB query/read access - * - add FDB change callback (when learning or dropping auto-learned entries) - * - prefill FDB with MAC classes that should never be forwarded - * - multicast snooping? (and only forward group addresses to interested ports) - * - support removing ports - * - check SNMP integration - * - VLAN handling / trunk ports - * - priority handling? (although that largely depends on TX queue limitations and lwIP doesn't provide tx-done handling) - */ - -#include "netif/bridgeif.h" -#include "lwip/netif.h" -#include "lwip/sys.h" -#include "lwip/etharp.h" -#include "lwip/ethip6.h" -#include "lwip/snmp.h" -#include "lwip/timeouts.h" -#include - -#if LWIP_NUM_NETIF_CLIENT_DATA - -/* Define those to better describe your network interface. */ -#define IFNAME0 'b' -#define IFNAME1 'r' - -struct bridgeif_private_s; -typedef struct bridgeif_port_private_s { - struct bridgeif_private_s *bridge; - struct netif *port_netif; - u8_t port_num; -} bridgeif_port_t; - -typedef struct bridgeif_fdb_static_entry_s { - u8_t used; - bridgeif_portmask_t dst_ports; - struct eth_addr addr; -} bridgeif_fdb_static_entry_t; - -typedef struct bridgeif_private_s { - struct netif *netif; - struct eth_addr ethaddr; - u8_t max_ports; - u8_t num_ports; - bridgeif_port_t *ports; - u16_t max_fdbs_entries; - bridgeif_fdb_static_entry_t *fdbs; - u16_t max_fdbd_entries; - void *fdbd; -} bridgeif_private_t; - -/* netif data index to get the bridge on input */ -u8_t bridgeif_netif_client_id = 0xff; - -/** - * @ingroup bridgeif - * Add a static entry to the forwarding database. - * A static entry marks where frames to a specific eth address (unicast or group address) are - * forwarded. - * bits [0..(BRIDGEIF_MAX_PORTS-1)]: hw ports - * bit [BRIDGEIF_MAX_PORTS]: cpu port - * 0: drop - */ -err_t -bridgeif_fdb_add(struct netif *bridgeif, const struct eth_addr *addr, bridgeif_portmask_t ports) -{ - int i; - bridgeif_private_t *br; - BRIDGEIF_DECL_PROTECT(lev); - LWIP_ASSERT("invalid netif", bridgeif != NULL); - br = (bridgeif_private_t *)bridgeif->state; - LWIP_ASSERT("invalid state", br != NULL); - - BRIDGEIF_READ_PROTECT(lev); - for (i = 0; i < br->max_fdbs_entries; i++) { - if (!br->fdbs[i].used) { - BRIDGEIF_WRITE_PROTECT(lev); - if (!br->fdbs[i].used) { - br->fdbs[i].used = 1; - br->fdbs[i].dst_ports = ports; - memcpy(&br->fdbs[i].addr, addr, sizeof(struct eth_addr)); - BRIDGEIF_WRITE_UNPROTECT(lev); - BRIDGEIF_READ_UNPROTECT(lev); - return ERR_OK; - } - BRIDGEIF_WRITE_UNPROTECT(lev); - } - } - BRIDGEIF_READ_UNPROTECT(lev); - return ERR_MEM; -} - -/** - * @ingroup bridgeif - * Remove a static entry from the forwarding database - */ -err_t -bridgeif_fdb_remove(struct netif *bridgeif, const struct eth_addr *addr) -{ - int i; - bridgeif_private_t *br; - BRIDGEIF_DECL_PROTECT(lev); - LWIP_ASSERT("invalid netif", bridgeif != NULL); - br = (bridgeif_private_t *)bridgeif->state; - LWIP_ASSERT("invalid state", br != NULL); - - BRIDGEIF_READ_PROTECT(lev); - for (i = 0; i < br->max_fdbs_entries; i++) { - if (br->fdbs[i].used && !memcmp(&br->fdbs[i].addr, addr, sizeof(struct eth_addr))) { - BRIDGEIF_WRITE_PROTECT(lev); - if (br->fdbs[i].used && !memcmp(&br->fdbs[i].addr, addr, sizeof(struct eth_addr))) { - memset(&br->fdbs[i], 0, sizeof(bridgeif_fdb_static_entry_t)); - BRIDGEIF_WRITE_UNPROTECT(lev); - BRIDGEIF_READ_UNPROTECT(lev); - return ERR_OK; - } - BRIDGEIF_WRITE_UNPROTECT(lev); - } - } - BRIDGEIF_READ_UNPROTECT(lev); - return ERR_VAL; -} - -/** Get the forwarding port(s) (as bit mask) for the specified destination mac address */ -static bridgeif_portmask_t -bridgeif_find_dst_ports(bridgeif_private_t *br, struct eth_addr *dst_addr) -{ - int i; - BRIDGEIF_DECL_PROTECT(lev); - BRIDGEIF_READ_PROTECT(lev); - /* first check for static entries */ - for (i = 0; i < br->max_fdbs_entries; i++) { - if (br->fdbs[i].used) { - if (!memcmp(&br->fdbs[i].addr, dst_addr, sizeof(struct eth_addr))) { - bridgeif_portmask_t ret = br->fdbs[i].dst_ports; - BRIDGEIF_READ_UNPROTECT(lev); - return ret; - } - } - } - if (dst_addr->addr[0] & 1) { - /* no match found: flood remaining group address */ - BRIDGEIF_READ_UNPROTECT(lev); - return BR_FLOOD; - } - BRIDGEIF_READ_UNPROTECT(lev); - /* no match found: check dynamic fdb for port or fall back to flooding */ - return bridgeif_fdb_get_dst_ports(br->fdbd, dst_addr); -} - -/** Helper function to see if a destination mac belongs to the bridge - * (bridge netif or one of the port netifs), in which case the frame - * is sent to the cpu only. - */ -static int -bridgeif_is_local_mac(bridgeif_private_t *br, struct eth_addr *addr) -{ - int i; - BRIDGEIF_DECL_PROTECT(lev); - if (!memcmp(br->netif->hwaddr, addr, sizeof(struct eth_addr))) { - return 1; - } - BRIDGEIF_READ_PROTECT(lev); - for (i = 0; i < br->num_ports; i++) { - struct netif *portif = br->ports[i].port_netif; - if (portif != NULL) { - if (!memcmp(portif->hwaddr, addr, sizeof(struct eth_addr))) { - BRIDGEIF_READ_UNPROTECT(lev); - return 1; - } - } - } - BRIDGEIF_READ_UNPROTECT(lev); - return 0; -} - -/* Output helper function */ -static err_t -bridgeif_send_to_port(bridgeif_private_t *br, struct pbuf *p, u8_t dstport_idx) -{ - if (dstport_idx < BRIDGEIF_MAX_PORTS) { - /* possibly an external port */ - if (dstport_idx < br->max_ports) { - struct netif *portif = br->ports[dstport_idx].port_netif; - if ((portif != NULL) && (portif->linkoutput != NULL)) { - /* prevent sending out to rx port */ - if (netif_get_index(portif) != p->if_idx) { - if (netif_is_link_up(portif)) { - LWIP_DEBUGF(BRIDGEIF_FW_DEBUG, ("br -> flood(%p:%d) -> %d\n", (void *)p, p->if_idx, netif_get_index(portif))); - return portif->linkoutput(portif, p); - } - } - } - } - } else { - LWIP_ASSERT("invalid port index", dstport_idx == BRIDGEIF_MAX_PORTS); - } - return ERR_OK; -} - -/** Helper function to pass a pbuf to all ports marked in 'dstports' - */ -static err_t -bridgeif_send_to_ports(bridgeif_private_t *br, struct pbuf *p, bridgeif_portmask_t dstports) -{ - err_t err, ret_err = ERR_OK; - u8_t i; - bridgeif_portmask_t mask = 1; - BRIDGEIF_DECL_PROTECT(lev); - BRIDGEIF_READ_PROTECT(lev); - for (i = 0; i < BRIDGEIF_MAX_PORTS; i++, mask = (bridgeif_portmask_t)(mask << 1)) { - if (dstports & mask) { - err = bridgeif_send_to_port(br, p, i); - if (err != ERR_OK) { - ret_err = err; - } - } - } - BRIDGEIF_READ_UNPROTECT(lev); - return ret_err; -} - -/** Output function of the application port of the bridge (the one with an ip address). - * The forwarding port(s) where this pbuf is sent on is/are automatically selected - * from the FDB. - */ -static err_t -bridgeif_output(struct netif *netif, struct pbuf *p) -{ - err_t err; - bridgeif_private_t *br = (bridgeif_private_t *)netif->state; - struct eth_addr *dst = (struct eth_addr *)(p->payload); - - bridgeif_portmask_t dstports = bridgeif_find_dst_ports(br, dst); - err = bridgeif_send_to_ports(br, p, dstports); - - MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p->tot_len); - if (((u8_t *)p->payload)[0] & 1) { - /* broadcast or multicast packet*/ - MIB2_STATS_NETIF_INC(netif, ifoutnucastpkts); - } else { - /* unicast packet */ - MIB2_STATS_NETIF_INC(netif, ifoutucastpkts); - } - /* increase ifoutdiscards or ifouterrors on error */ - - LINK_STATS_INC(link.xmit); - - return err; -} - -/** The actual bridge input function. Port netif's input is changed to call - * here. This function decides where the frame is forwarded. - */ -static err_t -bridgeif_input(struct pbuf *p, struct netif *netif) -{ - u8_t rx_idx; - bridgeif_portmask_t dstports; - struct eth_addr *src, *dst; - bridgeif_private_t *br; - bridgeif_port_t *port; - if (p == NULL || netif == NULL) { - return ERR_VAL; - } - port = (bridgeif_port_t *)netif_get_client_data(netif, bridgeif_netif_client_id); - LWIP_ASSERT("port data not set", port != NULL); - if (port == NULL || port->bridge == NULL) { - return ERR_VAL; - } - br = (bridgeif_private_t *)port->bridge; - rx_idx = netif_get_index(netif); - /* store receive index in pbuf */ - p->if_idx = rx_idx; - - dst = (struct eth_addr *)p->payload; - src = (struct eth_addr *)(((u8_t *)p->payload) + sizeof(struct eth_addr)); - - if ((src->addr[0] & 1) == 0) { - /* update src for all non-group addresses */ - bridgeif_fdb_update_src(br->fdbd, src, port->port_num); - } - - if (dst->addr[0] & 1) { - /* group address -> flood + cpu? */ - dstports = bridgeif_find_dst_ports(br, dst); - bridgeif_send_to_ports(br, p, dstports); - if (dstports & (1 << BRIDGEIF_MAX_PORTS)) { - /* we pass the reference to ->input or have to free it */ - LWIP_DEBUGF(BRIDGEIF_FW_DEBUG, ("br -> input(%p)\n", (void *)p)); - if (br->netif->input(p, br->netif) != ERR_OK) { - pbuf_free(p); - } - } else { - /* all references done */ - pbuf_free(p); - } - /* always return ERR_OK here to prevent the caller freeing the pbuf */ - return ERR_OK; - } else { - /* is this for one of the local ports? */ - if (bridgeif_is_local_mac(br, dst)) { - /* yes, send to cpu port only */ - LWIP_DEBUGF(BRIDGEIF_FW_DEBUG, ("br -> input(%p)\n", (void *)p)); - return br->netif->input(p, br->netif); - } - - /* get dst port */ - dstports = bridgeif_find_dst_ports(br, dst); - bridgeif_send_to_ports(br, p, dstports); - /* no need to send to cpu, flooding is for external ports only */ - /* by this, we consumed the pbuf */ - pbuf_free(p); - /* always return ERR_OK here to prevent the caller freeing the pbuf */ - return ERR_OK; - } -} - -#if !BRIDGEIF_PORT_NETIFS_OUTPUT_DIRECT -/** Input function for port netifs used to synchronize into tcpip_thread. - */ -static err_t -bridgeif_tcpip_input(struct pbuf *p, struct netif *netif) -{ - return tcpip_inpkt(p, netif, bridgeif_input); -} -#endif /* BRIDGEIF_PORT_NETIFS_OUTPUT_DIRECT */ - -/** - * @ingroup bridgeif - * Initialization function passed to netif_add(). - * - * ATTENTION: A pointer to a @ref bridgeif_initdata_t must be passed as 'state' - * to @ref netif_add when adding the bridge. I supplies MAC address - * and controls memory allocation (number of ports, FDB size). - * - * @param netif the lwip network interface structure for this ethernetif - * @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 -bridgeif_init(struct netif *netif) -{ - bridgeif_initdata_t *init_data; - bridgeif_private_t *br; - size_t alloc_len_sizet; - mem_size_t alloc_len; - - LWIP_ASSERT("netif != NULL", (netif != NULL)); - LWIP_ASSERT("bridgeif needs an input callback", (netif->input != NULL)); -#if !BRIDGEIF_PORT_NETIFS_OUTPUT_DIRECT - if (netif->input == tcpip_input) { - LWIP_DEBUGF(BRIDGEIF_DEBUG | LWIP_DBG_ON, ("bridgeif does not need tcpip_input, use netif_input/ethernet_input instead")); - } -#endif - - if (bridgeif_netif_client_id == 0xFF) { - bridgeif_netif_client_id = netif_alloc_client_data_id(); - } - - init_data = (bridgeif_initdata_t *)netif->state; - LWIP_ASSERT("init_data != NULL", (init_data != NULL)); - LWIP_ASSERT("init_data->max_ports <= BRIDGEIF_MAX_PORTS", - init_data->max_ports <= BRIDGEIF_MAX_PORTS); - - alloc_len_sizet = sizeof(bridgeif_private_t) + (init_data->max_ports * sizeof(bridgeif_port_t) + (init_data->max_fdb_static_entries * sizeof(bridgeif_fdb_static_entry_t))); - alloc_len = (mem_size_t)alloc_len_sizet; - LWIP_ASSERT("alloc_len == alloc_len_sizet", alloc_len == alloc_len_sizet); - LWIP_DEBUGF(BRIDGEIF_DEBUG, ("bridgeif_init: allocating %d bytes for private data\n", (int)alloc_len)); - br = (bridgeif_private_t *)mem_calloc(1, alloc_len); - if (br == NULL) { - LWIP_DEBUGF(NETIF_DEBUG, ("bridgeif_init: out of memory\n")); - return ERR_MEM; - } - memcpy(&br->ethaddr, &init_data->ethaddr, sizeof(br->ethaddr)); - br->netif = netif; - - br->max_ports = init_data->max_ports; - br->ports = (bridgeif_port_t *)(br + 1); - - br->max_fdbs_entries = init_data->max_fdb_static_entries; - br->fdbs = (bridgeif_fdb_static_entry_t *)(((u8_t *)(br + 1)) + (init_data->max_ports * sizeof(bridgeif_port_t))); - - br->max_fdbd_entries = init_data->max_fdb_dynamic_entries; - br->fdbd = bridgeif_fdb_init(init_data->max_fdb_dynamic_entries); - if (br->fdbd == NULL) { - LWIP_DEBUGF(NETIF_DEBUG, ("bridgeif_init: out of memory in fdb_init\n")); - mem_free(br); - return ERR_MEM; - } - -#if LWIP_NETIF_HOSTNAME - /* Initialize interface hostname */ - netif->hostname = "lwip"; -#endif /* LWIP_NETIF_HOSTNAME */ - - /* - * Initialize the snmp variables and counters inside the struct netif. - * The last argument should be replaced with your link speed, in units - * of bits per second. - */ - MIB2_INIT_NETIF(netif, snmp_ifType_ethernet_csmacd, 0); - - netif->state = br; - netif->name[0] = IFNAME0; - netif->name[1] = IFNAME1; - /* We directly use etharp_output() here to save a function call. - * You can instead declare your own function an call etharp_output() - * from it if you have to do some checks before sending (e.g. if link - * is available...) */ -#if LWIP_IPV4 - netif->output = etharp_output; -#endif /* LWIP_IPV4 */ -#if LWIP_IPV6 - netif->output_ip6 = ethip6_output; -#endif /* LWIP_IPV6 */ - netif->linkoutput = bridgeif_output; - - /* set MAC hardware address length */ - netif->hwaddr_len = ETH_HWADDR_LEN; - - /* set MAC hardware address */ - memcpy(netif->hwaddr, &br->ethaddr, ETH_HWADDR_LEN); - - /* maximum transfer unit */ - netif->mtu = 1500; - - /* device capabilities */ - /* don't set NETIF_FLAG_ETHARP if this device is not an ethernet one */ - netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_ETHERNET | NETIF_FLAG_IGMP | NETIF_FLAG_MLD6 | NETIF_FLAG_LINK_UP; - -#if LWIP_IPV6 && LWIP_IPV6_MLD - /* - * For hardware/netifs that implement MAC filtering. - * All-nodes link-local is handled by default, so we must let the hardware know - * to allow multicast packets in. - * Should set mld_mac_filter previously. */ - if (netif->mld_mac_filter != NULL) { - ip6_addr_t ip6_allnodes_ll; - ip6_addr_set_allnodes_linklocal(&ip6_allnodes_ll); - netif->mld_mac_filter(netif, &ip6_allnodes_ll, NETIF_ADD_MAC_FILTER); - } -#endif /* LWIP_IPV6 && LWIP_IPV6_MLD */ - - return ERR_OK; -} - -/** - * @ingroup bridgeif - * Add a port to the bridge - */ -err_t -bridgeif_add_port(struct netif *bridgeif, struct netif *portif) -{ - bridgeif_private_t *br; - bridgeif_port_t *port; - - LWIP_ASSERT("bridgeif != NULL", bridgeif != NULL); - LWIP_ASSERT("bridgeif->state != NULL", bridgeif->state != NULL); - LWIP_ASSERT("portif != NULL", portif != NULL); - - if (!(portif->flags & NETIF_FLAG_ETHARP) || !(portif->flags & NETIF_FLAG_ETHERNET)) { - /* can only add ETHERNET/ETHARP interfaces */ - return ERR_VAL; - } - - br = (bridgeif_private_t *)bridgeif->state; - - if (br->num_ports >= br->max_ports) { - return ERR_VAL; - } - port = &br->ports[br->num_ports]; - port->port_netif = portif; - port->port_num = br->num_ports; - port->bridge = br; - br->num_ports++; - - /* let the port call us on input */ -#if BRIDGEIF_PORT_NETIFS_OUTPUT_DIRECT - portif->input = bridgeif_input; -#else - portif->input = bridgeif_tcpip_input; -#endif - /* store pointer to bridge in netif */ - netif_set_client_data(portif, bridgeif_netif_client_id, port); - /* remove ETHARP flag to prevent sending report events on netif-up */ - netif_clear_flags(portif, NETIF_FLAG_ETHARP); - - return ERR_OK; -} - -#endif /* LWIP_NUM_NETIF_CLIENT_DATA */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.c b/Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.c deleted file mode 100644 index 6739fc2..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/bridgeif_fdb.c +++ /dev/null @@ -1,212 +0,0 @@ -/** - * @file - * lwIP netif implementing an FDB for IEEE 802.1D MAC Bridge - */ - -/* - * Copyright (c) 2017 Simon Goldschmidt. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Simon Goldschmidt - * - */ - -/** - * @defgroup bridgeif_fdb FDB example code - * @ingroup bridgeif - * This file implements an example for an FDB (Forwarding DataBase) - */ - -#include "netif/bridgeif.h" -#include "lwip/sys.h" -#include "lwip/mem.h" -#include "lwip/timeouts.h" -#include - -#define BRIDGEIF_AGE_TIMER_MS 1000 - -#define BR_FDB_TIMEOUT_SEC (60*5) /* 5 minutes FDB timeout */ - -typedef struct bridgeif_dfdb_entry_s { - u8_t used; - u8_t port; - u32_t ts; - struct eth_addr addr; -} bridgeif_dfdb_entry_t; - -typedef struct bridgeif_dfdb_s { - u16_t max_fdb_entries; - bridgeif_dfdb_entry_t *fdb; -} bridgeif_dfdb_t; - -/** - * @ingroup bridgeif_fdb - * A real simple and slow implementation of an auto-learning forwarding database that - * remembers known src mac addresses to know which port to send frames destined for that - * mac address. - * - * ATTENTION: This is meant as an example only, in real-world use, you should - * provide a better implementation :-) - */ -void -bridgeif_fdb_update_src(void *fdb_ptr, struct eth_addr *src_addr, u8_t port_idx) -{ - int i; - bridgeif_dfdb_t *fdb = (bridgeif_dfdb_t *)fdb_ptr; - BRIDGEIF_DECL_PROTECT(lev); - BRIDGEIF_READ_PROTECT(lev); - for (i = 0; i < fdb->max_fdb_entries; i++) { - bridgeif_dfdb_entry_t *e = &fdb->fdb[i]; - if (e->used && e->ts) { - if (!memcmp(&e->addr, src_addr, sizeof(struct eth_addr))) { - LWIP_DEBUGF(BRIDGEIF_FDB_DEBUG, ("br: update src %02x:%02x:%02x:%02x:%02x:%02x (from %d) @ idx %d\n", - src_addr->addr[0], src_addr->addr[1], src_addr->addr[2], src_addr->addr[3], src_addr->addr[4], src_addr->addr[5], - port_idx, i)); - BRIDGEIF_WRITE_PROTECT(lev); - e->ts = BR_FDB_TIMEOUT_SEC; - e->port = port_idx; - BRIDGEIF_WRITE_UNPROTECT(lev); - BRIDGEIF_READ_UNPROTECT(lev); - return; - } - } - } - /* not found, allocate new entry from free */ - for (i = 0; i < fdb->max_fdb_entries; i++) { - bridgeif_dfdb_entry_t *e = &fdb->fdb[i]; - if (!e->used || !e->ts) { - BRIDGEIF_WRITE_PROTECT(lev); - /* check again when protected */ - if (!e->used || !e->ts) { - LWIP_DEBUGF(BRIDGEIF_FDB_DEBUG, ("br: create src %02x:%02x:%02x:%02x:%02x:%02x (from %d) @ idx %d\n", - src_addr->addr[0], src_addr->addr[1], src_addr->addr[2], src_addr->addr[3], src_addr->addr[4], src_addr->addr[5], - port_idx, i)); - memcpy(&e->addr, src_addr, sizeof(struct eth_addr)); - e->ts = BR_FDB_TIMEOUT_SEC; - e->port = port_idx; - e->used = 1; - BRIDGEIF_WRITE_UNPROTECT(lev); - BRIDGEIF_READ_UNPROTECT(lev); - return; - } - BRIDGEIF_WRITE_UNPROTECT(lev); - } - } - BRIDGEIF_READ_UNPROTECT(lev); - /* not found, no free entry -> flood */ -} - -/** - * @ingroup bridgeif_fdb - * Walk our list of auto-learnt fdb entries and return a port to forward or BR_FLOOD if unknown - */ -bridgeif_portmask_t -bridgeif_fdb_get_dst_ports(void *fdb_ptr, struct eth_addr *dst_addr) -{ - int i; - bridgeif_dfdb_t *fdb = (bridgeif_dfdb_t *)fdb_ptr; - BRIDGEIF_DECL_PROTECT(lev); - BRIDGEIF_READ_PROTECT(lev); - for (i = 0; i < fdb->max_fdb_entries; i++) { - bridgeif_dfdb_entry_t *e = &fdb->fdb[i]; - if (e->used && e->ts) { - if (!memcmp(&e->addr, dst_addr, sizeof(struct eth_addr))) { - bridgeif_portmask_t ret = (bridgeif_portmask_t)(1 << e->port); - BRIDGEIF_READ_UNPROTECT(lev); - return ret; - } - } - } - BRIDGEIF_READ_UNPROTECT(lev); - return BR_FLOOD; -} - -/** - * @ingroup bridgeif_fdb - * Aging implementation of our simple fdb - */ -static void -bridgeif_fdb_age_one_second(void *fdb_ptr) -{ - int i; - bridgeif_dfdb_t *fdb; - BRIDGEIF_DECL_PROTECT(lev); - - fdb = (bridgeif_dfdb_t *)fdb_ptr; - BRIDGEIF_READ_PROTECT(lev); - - for (i = 0; i < fdb->max_fdb_entries; i++) { - bridgeif_dfdb_entry_t *e = &fdb->fdb[i]; - if (e->used && e->ts) { - BRIDGEIF_WRITE_PROTECT(lev); - /* check again when protected */ - if (e->used && e->ts) { - if (--e->ts == 0) { - e->used = 0; - } - } - BRIDGEIF_WRITE_UNPROTECT(lev); - } - } - BRIDGEIF_READ_UNPROTECT(lev); -} - -/** Timer callback for fdb aging, called once per second */ -static void -bridgeif_age_tmr(void *arg) -{ - bridgeif_dfdb_t *fdb = (bridgeif_dfdb_t *)arg; - - LWIP_ASSERT("invalid arg", arg != NULL); - - bridgeif_fdb_age_one_second(fdb); - sys_timeout(BRIDGEIF_AGE_TIMER_MS, bridgeif_age_tmr, arg); -} - -/** - * @ingroup bridgeif_fdb - * Init our simple fdb list - */ -void * -bridgeif_fdb_init(u16_t max_fdb_entries) -{ - bridgeif_dfdb_t *fdb; - size_t alloc_len_sizet = sizeof(bridgeif_dfdb_t) + (max_fdb_entries * sizeof(bridgeif_dfdb_entry_t)); - mem_size_t alloc_len = (mem_size_t)alloc_len_sizet; - LWIP_ASSERT("alloc_len == alloc_len_sizet", alloc_len == alloc_len_sizet); - LWIP_DEBUGF(BRIDGEIF_DEBUG, ("bridgeif_fdb_init: allocating %d bytes for private FDB data\n", (int)alloc_len)); - fdb = (bridgeif_dfdb_t *)mem_calloc(1, alloc_len); - if (fdb == NULL) { - return NULL; - } - fdb->max_fdb_entries = max_fdb_entries; - fdb->fdb = (bridgeif_dfdb_entry_t *)(fdb + 1); - - sys_timeout(BRIDGEIF_AGE_TIMER_MS, bridgeif_age_tmr, fdb); - - return fdb; -} diff --git a/Middlewares/Third_Party/LwIP/src/netif/ethernet.c b/Middlewares/Third_Party/LwIP/src/netif/ethernet.c deleted file mode 100644 index dd171e2..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/ethernet.c +++ /dev/null @@ -1,321 +0,0 @@ -/** - * @file - * Ethernet common functions - * - * @defgroup ethernet Ethernet - * @ingroup callbackstyle_api - */ - -/* - * Copyright (c) 2001-2003 Swedish Institute of Computer Science. - * Copyright (c) 2003-2004 Leon Woestenberg - * Copyright (c) 2003-2004 Axon Digital Design B.V., The Netherlands. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - */ - -#include "lwip/opt.h" - -#if LWIP_ARP || LWIP_ETHERNET - -#include "netif/ethernet.h" -#include "lwip/def.h" -#include "lwip/stats.h" -#include "lwip/etharp.h" -#include "lwip/ip.h" -#include "lwip/snmp.h" - -#include - -#include "netif/ppp/ppp_opts.h" -#if PPPOE_SUPPORT -#include "netif/ppp/pppoe.h" -#endif /* PPPOE_SUPPORT */ - -#ifdef LWIP_HOOK_FILENAME -#include LWIP_HOOK_FILENAME -#endif - -const struct eth_addr ethbroadcast = {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff}}; -const struct eth_addr ethzero = {{0, 0, 0, 0, 0, 0}}; - -/** - * @ingroup lwip_nosys - * Process received ethernet frames. Using this function instead of directly - * calling ip_input and passing ARP frames through etharp in ethernetif_input, - * the ARP cache is protected from concurrent access.\n - * Don't call directly, pass to netif_add() and call netif->input(). - * - * @param p the received packet, p->payload pointing to the ethernet header - * @param netif the network interface on which the packet was received - * - * @see LWIP_HOOK_UNKNOWN_ETH_PROTOCOL - * @see ETHARP_SUPPORT_VLAN - * @see LWIP_HOOK_VLAN_CHECK - */ -err_t -ethernet_input(struct pbuf *p, struct netif *netif) -{ - struct eth_hdr *ethhdr; - u16_t type; -#if LWIP_ARP || ETHARP_SUPPORT_VLAN || LWIP_IPV6 - u16_t next_hdr_offset = SIZEOF_ETH_HDR; -#endif /* LWIP_ARP || ETHARP_SUPPORT_VLAN */ - - LWIP_ASSERT_CORE_LOCKED(); - - if (p->len <= SIZEOF_ETH_HDR) { - /* a packet with only an ethernet header (or less) is not valid for us */ - ETHARP_STATS_INC(etharp.proterr); - ETHARP_STATS_INC(etharp.drop); - MIB2_STATS_NETIF_INC(netif, ifinerrors); - goto free_and_return; - } - - if (p->if_idx == NETIF_NO_INDEX) { - p->if_idx = netif_get_index(netif); - } - - /* points to packet payload, which starts with an Ethernet header */ - ethhdr = (struct eth_hdr *)p->payload; - LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, - ("ethernet_input: dest:%"X8_F":%"X8_F":%"X8_F":%"X8_F":%"X8_F":%"X8_F", src:%"X8_F":%"X8_F":%"X8_F":%"X8_F":%"X8_F":%"X8_F", type:%"X16_F"\n", - (unsigned char)ethhdr->dest.addr[0], (unsigned char)ethhdr->dest.addr[1], (unsigned char)ethhdr->dest.addr[2], - (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; -#if ETHARP_SUPPORT_VLAN - if (type == PP_HTONS(ETHTYPE_VLAN)) { - struct eth_vlan_hdr *vlan = (struct eth_vlan_hdr *)(((char *)ethhdr) + SIZEOF_ETH_HDR); - next_hdr_offset = SIZEOF_ETH_HDR + SIZEOF_VLAN_HDR; - if (p->len <= SIZEOF_ETH_HDR + SIZEOF_VLAN_HDR) { - /* a packet with only an ethernet/vlan header (or less) is not valid for us */ - ETHARP_STATS_INC(etharp.proterr); - ETHARP_STATS_INC(etharp.drop); - MIB2_STATS_NETIF_INC(netif, ifinerrors); - goto free_and_return; - } -#if defined(LWIP_HOOK_VLAN_CHECK) || defined(ETHARP_VLAN_CHECK) || defined(ETHARP_VLAN_CHECK_FN) /* if not, allow all VLANs */ -#ifdef LWIP_HOOK_VLAN_CHECK - if (!LWIP_HOOK_VLAN_CHECK(netif, ethhdr, vlan)) { -#elif defined(ETHARP_VLAN_CHECK_FN) - if (!ETHARP_VLAN_CHECK_FN(ethhdr, vlan)) { -#elif defined(ETHARP_VLAN_CHECK) - if (VLAN_ID(vlan) != ETHARP_VLAN_CHECK) { -#endif - /* silently ignore this packet: not for our VLAN */ - pbuf_free(p); - return ERR_OK; - } -#endif /* defined(LWIP_HOOK_VLAN_CHECK) || defined(ETHARP_VLAN_CHECK) || defined(ETHARP_VLAN_CHECK_FN) */ - type = vlan->tpid; - } -#endif /* ETHARP_SUPPORT_VLAN */ - -#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) { - /* this might be a multicast or broadcast packet */ - if (ethhdr->dest.addr[0] == LL_IP4_MULTICAST_ADDR_0) { -#if LWIP_IPV4 - if ((ethhdr->dest.addr[1] == LL_IP4_MULTICAST_ADDR_1) && - (ethhdr->dest.addr[2] == LL_IP4_MULTICAST_ADDR_2)) { - /* mark the pbuf as link-layer multicast */ - p->flags |= PBUF_FLAG_LLMCAST; - } -#endif /* LWIP_IPV4 */ - } -#if LWIP_IPV6 - else if ((ethhdr->dest.addr[0] == LL_IP6_MULTICAST_ADDR_0) && - (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)) { - /* mark the pbuf as link-layer broadcast */ - p->flags |= PBUF_FLAG_LLBCAST; - } - } - - switch (type) { -#if LWIP_IPV4 && LWIP_ARP - /* IP packet? */ - case PP_HTONS(ETHTYPE_IP): - if (!(netif->flags & NETIF_FLAG_ETHARP)) { - goto free_and_return; - } - /* skip Ethernet header (min. size checked above) */ - if (pbuf_remove_header(p, next_hdr_offset)) { - LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, - ("ethernet_input: IPv4 packet dropped, too short (%"U16_F"/%"U16_F")\n", - p->tot_len, next_hdr_offset)); - LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("Can't move over header in packet")); - goto free_and_return; - } else { - /* pass to IP layer */ - ip4_input(p, netif); - } - break; - - case PP_HTONS(ETHTYPE_ARP): - if (!(netif->flags & NETIF_FLAG_ETHARP)) { - goto free_and_return; - } - /* skip Ethernet header (min. size checked above) */ - if (pbuf_remove_header(p, next_hdr_offset)) { - LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, - ("ethernet_input: ARP response packet dropped, too short (%"U16_F"/%"U16_F")\n", - p->tot_len, next_hdr_offset)); - LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("Can't move over header in packet")); - ETHARP_STATS_INC(etharp.lenerr); - ETHARP_STATS_INC(etharp.drop); - goto free_and_return; - } else { - /* pass p to ARP module */ - etharp_input(p, netif); - } - break; -#endif /* LWIP_IPV4 && LWIP_ARP */ -#if PPPOE_SUPPORT - case PP_HTONS(ETHTYPE_PPPOEDISC): /* PPP Over Ethernet Discovery Stage */ - pppoe_disc_input(netif, p); - break; - - case PP_HTONS(ETHTYPE_PPPOE): /* PPP Over Ethernet Session Stage */ - pppoe_data_input(netif, p); - break; -#endif /* PPPOE_SUPPORT */ - -#if LWIP_IPV6 - case PP_HTONS(ETHTYPE_IPV6): /* IPv6 */ - /* skip Ethernet header */ - if ((p->len < next_hdr_offset) || pbuf_remove_header(p, next_hdr_offset)) { - LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, - ("ethernet_input: IPv6 packet dropped, too short (%"U16_F"/%"U16_F")\n", - p->tot_len, next_hdr_offset)); - goto free_and_return; - } else { - /* pass to IPv6 layer */ - ip6_input(p, netif); - } - break; -#endif /* LWIP_IPV6 */ - - default: -#ifdef LWIP_HOOK_UNKNOWN_ETH_PROTOCOL - if (LWIP_HOOK_UNKNOWN_ETH_PROTOCOL(p, netif) == ERR_OK) { - break; - } -#endif - ETHARP_STATS_INC(etharp.proterr); - ETHARP_STATS_INC(etharp.drop); - MIB2_STATS_NETIF_INC(netif, ifinunknownprotos); - goto free_and_return; - } - - /* This means the pbuf is freed or consumed, - so the caller doesn't have to free it again */ - return ERR_OK; - -free_and_return: - pbuf_free(p); - return ERR_OK; -} - -/** - * @ingroup ethernet - * Send an ethernet packet on the network using netif->linkoutput(). - * The ethernet header is filled in before sending. - * - * @see LWIP_HOOK_VLAN_SET - * - * @param netif the lwIP network interface on which to send the packet - * @param p the packet to send. pbuf layer must be @ref PBUF_LINK. - * @param src the source MAC address to be copied into the ethernet header - * @param dst the destination MAC address to be copied into the ethernet header - * @param eth_type ethernet type (@ref lwip_ieee_eth_type) - * @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) { - struct eth_hdr *ethhdr; - u16_t eth_type_be = lwip_htons(eth_type); - -#if ETHARP_SUPPORT_VLAN && defined(LWIP_HOOK_VLAN_SET) - s32_t vlan_prio_vid = LWIP_HOOK_VLAN_SET(netif, p, src, dst, eth_type); - if (vlan_prio_vid >= 0) { - struct eth_vlan_hdr *vlanhdr; - - LWIP_ASSERT("prio_vid must be <= 0xFFFF", vlan_prio_vid <= 0xFFFF); - - if (pbuf_add_header(p, SIZEOF_ETH_HDR + SIZEOF_VLAN_HDR) != 0) { - goto pbuf_header_failed; - } - vlanhdr = (struct eth_vlan_hdr *)(((u8_t *)p->payload) + SIZEOF_ETH_HDR); - vlanhdr->tpid = eth_type_be; - vlanhdr->prio_vid = lwip_htons((u16_t)vlan_prio_vid); - - 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) { - goto pbuf_header_failed; - } - } - - LWIP_ASSERT_CORE_LOCKED(); - - ethhdr = (struct eth_hdr *)p->payload; - ethhdr->type = eth_type_be; - SMEMCPY(ðhdr->dest, dst, ETH_HWADDR_LEN); - SMEMCPY(ðhdr->src, src, ETH_HWADDR_LEN); - - LWIP_ASSERT("netif->hwaddr_len must be 6 for ethernet_output!", - (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); - -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; -} - -#endif /* LWIP_ARP || LWIP_ETHERNET */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/lowpan6.c b/Middlewares/Third_Party/LwIP/src/netif/lowpan6.c deleted file mode 100644 index 7f0d276..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/lowpan6.c +++ /dev/null @@ -1,920 +0,0 @@ -/** - * @file - * - * 6LowPAN output for IPv6. Uses ND tables for link-layer addressing. Fragments packets to 6LowPAN units. - * - * This implementation aims to conform to IEEE 802.15.4(-2015), RFC 4944 and RFC 6282. - * @todo: RFC 6775. - */ - -/* - * Copyright (c) 2015 Inico Technologies Ltd. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Ivan Delamer - * - * - * Please coordinate changes and requests with Ivan Delamer - * - */ - -/** - * @defgroup sixlowpan 6LoWPAN (RFC4944) - * @ingroup netifs - * 6LowPAN netif implementation - */ - -#include "netif/lowpan6.h" - -#if LWIP_IPV6 - -#include "lwip/ip.h" -#include "lwip/pbuf.h" -#include "lwip/ip_addr.h" -#include "lwip/netif.h" -#include "lwip/nd6.h" -#include "lwip/mem.h" -#include "lwip/udp.h" -#include "lwip/tcpip.h" -#include "lwip/snmp.h" -#include "netif/ieee802154.h" - -#include - -#if LWIP_6LOWPAN_802154_HW_CRC -#define LWIP_6LOWPAN_DO_CALC_CRC(buf, len) 0 -#else -#define LWIP_6LOWPAN_DO_CALC_CRC(buf, len) LWIP_6LOWPAN_CALC_CRC(buf, len) -#endif - -/** This is a helper struct for reassembly of fragments - * (IEEE 802.15.4 limits to 127 bytes) - */ -struct lowpan6_reass_helper { - struct lowpan6_reass_helper *next_packet; - struct pbuf *reass; - struct pbuf *frags; - u8_t timer; - struct lowpan6_link_addr sender_addr; - u16_t datagram_size; - u16_t datagram_tag; -}; - -/** This struct keeps track of per-netif state */ -struct lowpan6_ieee802154_data { - /** fragment reassembly list */ - struct lowpan6_reass_helper *reass_list; -#if LWIP_6LOWPAN_NUM_CONTEXTS > 0 - /** address context for compression */ - ip6_addr_t lowpan6_context[LWIP_6LOWPAN_NUM_CONTEXTS]; -#endif - /** Datagram Tag for fragmentation */ - u16_t tx_datagram_tag; - /** local PAN ID for IEEE 802.15.4 header */ - u16_t ieee_802154_pan_id; - /** Sequence Number for IEEE 802.15.4 transmission */ - u8_t tx_frame_seq_num; -}; - -/* Maximum frame size is 127 bytes minus CRC size */ -#define LOWPAN6_MAX_PAYLOAD (127 - 2) - -/** Currently, this state is global, since there's only one 6LoWPAN netif */ -static struct lowpan6_ieee802154_data lowpan6_data; - -#if LWIP_6LOWPAN_NUM_CONTEXTS > 0 -#define LWIP_6LOWPAN_CONTEXTS(netif) lowpan6_data.lowpan6_context -#else -#define LWIP_6LOWPAN_CONTEXTS(netif) NULL -#endif - -static const struct lowpan6_link_addr ieee_802154_broadcast = {2, {0xff, 0xff}}; - -#if LWIP_6LOWPAN_INFER_SHORT_ADDRESS -static struct lowpan6_link_addr short_mac_addr = {2, {0, 0}}; -#endif /* LWIP_6LOWPAN_INFER_SHORT_ADDRESS */ - -/* IEEE 802.15.4 specific functions: */ - -/** Write the IEEE 802.15.4 header that encapsulates the 6LoWPAN frame. - * Src and dst PAN IDs are filled with the ID set by @ref lowpan6_set_pan_id. - * - * Since the length is variable: - * @returns the header length - */ -static u8_t -lowpan6_write_iee802154_header(struct ieee_802154_hdr *hdr, const struct lowpan6_link_addr *src, - const struct lowpan6_link_addr *dst) -{ - u8_t ieee_header_len; - u8_t *buffer; - u8_t i; - u16_t fc; - - fc = IEEE_802154_FC_FT_DATA; /* send data packet (2003 frame version) */ - fc |= IEEE_802154_FC_PANID_COMPR; /* set PAN ID compression, for now src and dst PANs are equal */ - if (dst != &ieee_802154_broadcast) { - fc |= IEEE_802154_FC_ACK_REQ; /* data packet, no broadcast: ack required. */ - } - if (dst->addr_len == 2) { - fc |= IEEE_802154_FC_DST_ADDR_MODE_SHORT; - } else { - LWIP_ASSERT("invalid dst address length", dst->addr_len == 8); - fc |= IEEE_802154_FC_DST_ADDR_MODE_EXT; - } - if (src->addr_len == 2) { - fc |= IEEE_802154_FC_SRC_ADDR_MODE_SHORT; - } else { - LWIP_ASSERT("invalid src address length", src->addr_len == 8); - fc |= IEEE_802154_FC_SRC_ADDR_MODE_EXT; - } - hdr->frame_control = fc; - hdr->sequence_number = lowpan6_data.tx_frame_seq_num++; - hdr->destination_pan_id = lowpan6_data.ieee_802154_pan_id; /* pan id */ - - buffer = (u8_t *)hdr; - ieee_header_len = 5; - i = dst->addr_len; - /* reverse memcpy of dst addr */ - while (i-- > 0) { - buffer[ieee_header_len++] = dst->addr[i]; - } - /* Source PAN ID skipped due to PAN ID Compression */ - i = src->addr_len; - /* reverse memcpy of src addr */ - while (i-- > 0) { - buffer[ieee_header_len++] = src->addr[i]; - } - return ieee_header_len; -} - -/** Parse the IEEE 802.15.4 header from a pbuf. - * If successful, the header is hidden from the pbuf. - * - * PAN IDs and seuqence number are not checked - * - * @param p input pbuf, p->payload pointing at the IEEE 802.15.4 header - * @param src pointer to source address filled from the header - * @param dest pointer to destination address filled from the header - * @returns ERR_OK if successful - */ -static err_t -lowpan6_parse_iee802154_header(struct pbuf *p, struct lowpan6_link_addr *src, - struct lowpan6_link_addr *dest) -{ - u8_t *puc; - s8_t i; - u16_t frame_control, addr_mode; - u16_t datagram_offset; - - /* Parse IEEE 802.15.4 header */ - puc = (u8_t *)p->payload; - frame_control = puc[0] | (puc[1] << 8); - datagram_offset = 2; - if (frame_control & IEEE_802154_FC_SEQNO_SUPPR) { - if (IEEE_802154_FC_FRAME_VERSION_GET(frame_control) <= 1) { - /* sequence number suppressed, this is not valid for versions 0/1 */ - return ERR_VAL; - } - } else { - datagram_offset++; - } - datagram_offset += 2; /* Skip destination PAN ID */ - addr_mode = frame_control & IEEE_802154_FC_DST_ADDR_MODE_MASK; - if (addr_mode == IEEE_802154_FC_DST_ADDR_MODE_EXT) { - /* extended address (64 bit) */ - dest->addr_len = 8; - /* reverse memcpy: */ - for (i = 0; i < 8; i++) { - dest->addr[i] = puc[datagram_offset + 7 - i]; - } - datagram_offset += 8; - } else if (addr_mode == IEEE_802154_FC_DST_ADDR_MODE_SHORT) { - /* short address (16 bit) */ - dest->addr_len = 2; - /* reverse memcpy: */ - dest->addr[0] = puc[datagram_offset + 1]; - dest->addr[1] = puc[datagram_offset]; - datagram_offset += 2; - } else { - /* unsupported address mode (do we need "no address"?) */ - return ERR_VAL; - } - - if (!(frame_control & IEEE_802154_FC_PANID_COMPR)) { - /* No PAN ID compression, skip source PAN ID */ - datagram_offset += 2; - } - - addr_mode = frame_control & IEEE_802154_FC_SRC_ADDR_MODE_MASK; - if (addr_mode == IEEE_802154_FC_SRC_ADDR_MODE_EXT) { - /* extended address (64 bit) */ - src->addr_len = 8; - /* reverse memcpy: */ - for (i = 0; i < 8; i++) { - src->addr[i] = puc[datagram_offset + 7 - i]; - } - datagram_offset += 8; - } else if (addr_mode == IEEE_802154_FC_DST_ADDR_MODE_SHORT) { - /* short address (16 bit) */ - src->addr_len = 2; - src->addr[0] = puc[datagram_offset + 1]; - src->addr[1] = puc[datagram_offset]; - datagram_offset += 2; - } else { - /* unsupported address mode (do we need "no address"?) */ - return ERR_VAL; - } - - /* hide IEEE802.15.4 header. */ - if (pbuf_remove_header(p, datagram_offset)) { - return ERR_VAL; - } - return ERR_OK; -} - -/** Calculate the 16-bit CRC as required by IEEE 802.15.4 */ -u16_t -lowpan6_calc_crc(const void* buf, u16_t len) -{ -#define CCITT_POLY_16 0x8408U - u16_t i; - u8_t b; - u16_t crc = 0; - const u8_t* p = (const u8_t*)buf; - - for (i = 0; i < len; i++) { - u8_t data = *p; - for (b = 0U; b < 8U; b++) { - if (((data ^ crc) & 1) != 0) { - crc = (u16_t)((crc >> 1) ^ CCITT_POLY_16); - } else { - crc = (u16_t)(crc >> 1); - } - data = (u8_t)(data >> 1); - } - p++; - } - return crc; -} - -/* Fragmentation specific functions: */ - -static void -free_reass_datagram(struct lowpan6_reass_helper *lrh) -{ - if (lrh->reass) { - pbuf_free(lrh->reass); - } - if (lrh->frags) { - pbuf_free(lrh->frags); - } - mem_free(lrh); -} - -/** - * Removes a datagram from the reassembly queue. - **/ -static void -dequeue_datagram(struct lowpan6_reass_helper *lrh, struct lowpan6_reass_helper *prev) -{ - if (lowpan6_data.reass_list == lrh) { - lowpan6_data.reass_list = lowpan6_data.reass_list->next_packet; - } else { - /* it wasn't the first, so it must have a valid 'prev' */ - LWIP_ASSERT("sanity check linked list", prev != NULL); - prev->next_packet = lrh->next_packet; - } -} - -/** - * Periodic timer for 6LowPAN functions: - * - * - Remove incomplete/old packets - */ -void -lowpan6_tmr(void) -{ - struct lowpan6_reass_helper *lrh, *lrh_next, *lrh_prev = NULL; - - lrh = lowpan6_data.reass_list; - while (lrh != NULL) { - lrh_next = lrh->next_packet; - if ((--lrh->timer) == 0) { - dequeue_datagram(lrh, lrh_prev); - free_reass_datagram(lrh); - } else { - lrh_prev = lrh; - } - lrh = lrh_next; - } -} - -/* - * Encapsulates data into IEEE 802.15.4 frames. - * Fragments an IPv6 datagram into 6LowPAN units, which fit into IEEE 802.15.4 frames. - * If configured, will compress IPv6 and or UDP headers. - * */ -static err_t -lowpan6_frag(struct netif *netif, struct pbuf *p, const struct lowpan6_link_addr *src, const struct lowpan6_link_addr *dst) -{ - struct pbuf *p_frag; - u16_t frag_len, remaining_len, max_data_len; - u8_t *buffer; - u8_t ieee_header_len; - u8_t lowpan6_header_len; - u8_t hidden_header_len; - u16_t crc; - u16_t datagram_offset; - err_t err = ERR_IF; - - LWIP_ASSERT("lowpan6_frag: netif->linkoutput not set", netif->linkoutput != NULL); - - /* We'll use a dedicated pbuf for building 6LowPAN fragments. */ - p_frag = pbuf_alloc(PBUF_RAW, 127, PBUF_RAM); - if (p_frag == NULL) { - MIB2_STATS_NETIF_INC(netif, ifoutdiscards); - return ERR_MEM; - } - LWIP_ASSERT("this needs a pbuf in one piece", p_frag->len == p_frag->tot_len); - - /* Write IEEE 802.15.4 header. */ - buffer = (u8_t *)p_frag->payload; - ieee_header_len = lowpan6_write_iee802154_header((struct ieee_802154_hdr *)buffer, src, dst); - LWIP_ASSERT("ieee_header_len < p_frag->len", ieee_header_len < p_frag->len); - -#if LWIP_6LOWPAN_IPHC - /* Perform 6LowPAN IPv6 header compression according to RFC 6282 */ - /* do the header compression (this does NOT copy any non-compressed data) */ - err = lowpan6_compress_headers(netif, (u8_t *)p->payload, p->len, - &buffer[ieee_header_len], p_frag->len - ieee_header_len, &lowpan6_header_len, - &hidden_header_len, LWIP_6LOWPAN_CONTEXTS(netif), src, dst); - if (err != ERR_OK) { - MIB2_STATS_NETIF_INC(netif, ifoutdiscards); - pbuf_free(p_frag); - return err; - } - pbuf_remove_header(p, hidden_header_len); - -#else /* LWIP_6LOWPAN_IPHC */ - /* Send uncompressed IPv6 header with appropriate dispatch byte. */ - lowpan6_header_len = 1; - buffer[ieee_header_len] = 0x41; /* IPv6 dispatch */ -#endif /* LWIP_6LOWPAN_IPHC */ - - /* Calculate remaining packet length */ - remaining_len = p->tot_len; - - if (remaining_len > 0x7FF) { - MIB2_STATS_NETIF_INC(netif, ifoutdiscards); - /* datagram_size must fit into 11 bit */ - pbuf_free(p_frag); - return ERR_VAL; - } - - /* Fragment, or 1 packet? */ - max_data_len = LOWPAN6_MAX_PAYLOAD - ieee_header_len - lowpan6_header_len; - if (remaining_len > max_data_len) { - u16_t data_len; - /* We must move the 6LowPAN header to make room for the FRAG header. */ - memmove(&buffer[ieee_header_len + 4], &buffer[ieee_header_len], lowpan6_header_len); - - /* Now we need to fragment the packet. FRAG1 header first */ - buffer[ieee_header_len] = 0xc0 | (((p->tot_len + hidden_header_len) >> 8) & 0x7); - buffer[ieee_header_len + 1] = (p->tot_len + hidden_header_len) & 0xff; - - lowpan6_data.tx_datagram_tag++; - buffer[ieee_header_len + 2] = (lowpan6_data.tx_datagram_tag >> 8) & 0xff; - buffer[ieee_header_len + 3] = lowpan6_data.tx_datagram_tag & 0xff; - - /* Fragment follows. */ - data_len = (max_data_len - 4) & 0xf8; - frag_len = data_len + lowpan6_header_len; - - pbuf_copy_partial(p, buffer + ieee_header_len + lowpan6_header_len + 4, frag_len - lowpan6_header_len, 0); - remaining_len -= frag_len - lowpan6_header_len; - /* datagram offset holds the offset before compression */ - datagram_offset = frag_len - lowpan6_header_len + hidden_header_len; - LWIP_ASSERT("datagram offset must be a multiple of 8", (datagram_offset & 7) == 0); - - /* Calculate frame length */ - p_frag->len = p_frag->tot_len = ieee_header_len + 4 + frag_len + 2; /* add 2 bytes for crc*/ - - /* 2 bytes CRC */ - crc = LWIP_6LOWPAN_DO_CALC_CRC(p_frag->payload, p_frag->len - 2); - pbuf_take_at(p_frag, &crc, 2, p_frag->len - 2); - - /* send the packet */ - MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p_frag->tot_len); - LWIP_DEBUGF(LWIP_LOWPAN6_DEBUG | LWIP_DBG_TRACE, ("lowpan6_send: sending packet %p\n", (void *)p)); - err = netif->linkoutput(netif, p_frag); - - while ((remaining_len > 0) && (err == ERR_OK)) { - struct ieee_802154_hdr *hdr = (struct ieee_802154_hdr *)buffer; - /* new frame, new seq num for ACK */ - hdr->sequence_number = lowpan6_data.tx_frame_seq_num++; - - buffer[ieee_header_len] |= 0x20; /* Change FRAG1 to FRAGN */ - - LWIP_ASSERT("datagram offset must be a multiple of 8", (datagram_offset & 7) == 0); - buffer[ieee_header_len + 4] = (u8_t)(datagram_offset >> 3); /* datagram offset in FRAGN header (datagram_offset is max. 11 bit) */ - - frag_len = (127 - ieee_header_len - 5 - 2) & 0xf8; - if (frag_len > remaining_len) { - frag_len = remaining_len; - } - - pbuf_copy_partial(p, buffer + ieee_header_len + 5, frag_len, p->tot_len - remaining_len); - remaining_len -= frag_len; - datagram_offset += frag_len; - - /* Calculate frame length */ - p_frag->len = p_frag->tot_len = frag_len + 5 + ieee_header_len + 2; - - /* 2 bytes CRC */ - crc = LWIP_6LOWPAN_DO_CALC_CRC(p_frag->payload, p_frag->len - 2); - pbuf_take_at(p_frag, &crc, 2, p_frag->len - 2); - - /* send the packet */ - MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p_frag->tot_len); - LWIP_DEBUGF(LWIP_LOWPAN6_DEBUG | LWIP_DBG_TRACE, ("lowpan6_send: sending packet %p\n", (void *)p)); - err = netif->linkoutput(netif, p_frag); - } - } else { - /* It fits in one frame. */ - frag_len = remaining_len; - - /* Copy IPv6 packet */ - pbuf_copy_partial(p, buffer + ieee_header_len + lowpan6_header_len, frag_len, 0); - remaining_len = 0; - - /* Calculate frame length */ - p_frag->len = p_frag->tot_len = frag_len + lowpan6_header_len + ieee_header_len + 2; - LWIP_ASSERT("", p_frag->len <= 127); - - /* 2 bytes CRC */ - crc = LWIP_6LOWPAN_DO_CALC_CRC(p_frag->payload, p_frag->len - 2); - pbuf_take_at(p_frag, &crc, 2, p_frag->len - 2); - - /* send the packet */ - MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p_frag->tot_len); - LWIP_DEBUGF(LWIP_LOWPAN6_DEBUG | LWIP_DBG_TRACE, ("lowpan6_send: sending packet %p\n", (void *)p)); - err = netif->linkoutput(netif, p_frag); - } - - pbuf_free(p_frag); - - return err; -} - -/** - * @ingroup sixlowpan - * Set context - */ -err_t -lowpan6_set_context(u8_t idx, const ip6_addr_t *context) -{ -#if LWIP_6LOWPAN_NUM_CONTEXTS > 0 - if (idx >= LWIP_6LOWPAN_NUM_CONTEXTS) { - return ERR_ARG; - } - - IP6_ADDR_ZONECHECK(context); - - ip6_addr_set(&lowpan6_data.lowpan6_context[idx], context); - - return ERR_OK; -#else - LWIP_UNUSED_ARG(idx); - LWIP_UNUSED_ARG(context); - return ERR_ARG; -#endif -} - -#if LWIP_6LOWPAN_INFER_SHORT_ADDRESS -/** - * @ingroup sixlowpan - * Set short address - */ -err_t -lowpan6_set_short_addr(u8_t addr_high, u8_t addr_low) -{ - short_mac_addr.addr[0] = addr_high; - short_mac_addr.addr[1] = addr_low; - - return ERR_OK; -} -#endif /* LWIP_6LOWPAN_INFER_SHORT_ADDRESS */ - -/* Create IEEE 802.15.4 address from netif address */ -static err_t -lowpan6_hwaddr_to_addr(struct netif *netif, struct lowpan6_link_addr *addr) -{ - addr->addr_len = 8; - if (netif->hwaddr_len == 8) { - LWIP_ERROR("NETIF_MAX_HWADDR_LEN >= 8 required", sizeof(netif->hwaddr) >= 8, return ERR_VAL;); - SMEMCPY(addr->addr, netif->hwaddr, 8); - } else if (netif->hwaddr_len == 6) { - /* Copy from MAC-48 */ - SMEMCPY(addr->addr, netif->hwaddr, 3); - addr->addr[3] = addr->addr[4] = 0xff; - SMEMCPY(&addr->addr[5], &netif->hwaddr[3], 3); - } else { - /* Invalid address length, don't know how to convert this */ - return ERR_VAL; - } - return ERR_OK; -} - -/** - * @ingroup sixlowpan - * Resolve and fill-in IEEE 802.15.4 address header for outgoing IPv6 packet. - * - * Perform Header Compression and fragment if necessary. - * - * @param netif The lwIP network interface which the IP packet will be sent on. - * @param q The pbuf(s) containing the IP packet to be sent. - * @param ip6addr The IP address of the packet destination. - * - * @return err_t - */ -err_t -lowpan6_output(struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr) -{ - err_t result; - const u8_t *hwaddr; - struct lowpan6_link_addr src, dest; -#if LWIP_6LOWPAN_INFER_SHORT_ADDRESS - ip6_addr_t ip6_src; - struct ip6_hdr *ip6_hdr; -#endif /* LWIP_6LOWPAN_INFER_SHORT_ADDRESS */ - -#if LWIP_6LOWPAN_INFER_SHORT_ADDRESS - /* Check if we can compress source address (use aligned copy) */ - ip6_hdr = (struct ip6_hdr *)q->payload; - ip6_addr_copy_from_packed(ip6_src, ip6_hdr->src); - ip6_addr_assign_zone(&ip6_src, IP6_UNICAST, netif); - if (lowpan6_get_address_mode(&ip6_src, &short_mac_addr) == 3) { - src.addr_len = 2; - src.addr[0] = short_mac_addr.addr[0]; - src.addr[1] = short_mac_addr.addr[1]; - } else -#endif /* LWIP_6LOWPAN_INFER_SHORT_ADDRESS */ - { - result = lowpan6_hwaddr_to_addr(netif, &src); - if (result != ERR_OK) { - MIB2_STATS_NETIF_INC(netif, ifoutdiscards); - return result; - } - } - - /* multicast destination IP address? */ - if (ip6_addr_ismulticast(ip6addr)) { - MIB2_STATS_NETIF_INC(netif, ifoutnucastpkts); - /* We need to send to the broadcast address.*/ - return lowpan6_frag(netif, q, &src, &ieee_802154_broadcast); - } - - /* We have a unicast destination IP address */ - /* @todo anycast? */ - -#if LWIP_6LOWPAN_INFER_SHORT_ADDRESS - if (src.addr_len == 2) { - /* If source address was compressable to short_mac_addr, and dest has same subnet and - * is also compressable to 2-bytes, assume we can infer dest as a short address too. */ - dest.addr_len = 2; - dest.addr[0] = ((u8_t *)q->payload)[38]; - dest.addr[1] = ((u8_t *)q->payload)[39]; - if ((src.addr_len == 2) && (ip6_addr_netcmp_zoneless(&ip6_hdr->src, &ip6_hdr->dest)) && - (lowpan6_get_address_mode(ip6addr, &dest) == 3)) { - MIB2_STATS_NETIF_INC(netif, ifoutucastpkts); - return lowpan6_frag(netif, q, &src, &dest); - } - } -#endif /* LWIP_6LOWPAN_INFER_SHORT_ADDRESS */ - - /* Ask ND6 what to do with the packet. */ - result = nd6_get_next_hop_addr_or_queue(netif, q, ip6addr, &hwaddr); - if (result != ERR_OK) { - MIB2_STATS_NETIF_INC(netif, ifoutdiscards); - return result; - } - - /* If no hardware address is returned, nd6 has queued the packet for later. */ - if (hwaddr == NULL) { - return ERR_OK; - } - - /* Send out the packet using the returned hardware address. */ - dest.addr_len = netif->hwaddr_len; - /* XXX: Inferring the length of the source address from the destination address - * is not correct for IEEE 802.15.4, but currently we don't get this information - * from the neighbor cache */ - SMEMCPY(dest.addr, hwaddr, netif->hwaddr_len); - MIB2_STATS_NETIF_INC(netif, ifoutucastpkts); - return lowpan6_frag(netif, q, &src, &dest); -} -/** - * @ingroup sixlowpan - * NETIF input function: don't free the input pbuf when returning != ERR_OK! - */ -err_t -lowpan6_input(struct pbuf *p, struct netif *netif) -{ - u8_t *puc, b; - s8_t i; - struct lowpan6_link_addr src, dest; - u16_t datagram_size = 0; - u16_t datagram_offset, datagram_tag; - struct lowpan6_reass_helper *lrh, *lrh_next, *lrh_prev = NULL; - - if (p == NULL) { - return ERR_OK; - } - - MIB2_STATS_NETIF_ADD(netif, ifinoctets, p->tot_len); - - if (p->len != p->tot_len) { - /* for now, this needs a pbuf in one piece */ - goto lowpan6_input_discard; - } - - if (lowpan6_parse_iee802154_header(p, &src, &dest) != ERR_OK) { - goto lowpan6_input_discard; - } - - /* Check dispatch. */ - puc = (u8_t *)p->payload; - - b = *puc; - if ((b & 0xf8) == 0xc0) { - /* FRAG1 dispatch. add this packet to reassembly list. */ - datagram_size = ((u16_t)(puc[0] & 0x07) << 8) | (u16_t)puc[1]; - datagram_tag = ((u16_t)puc[2] << 8) | (u16_t)puc[3]; - - /* check for duplicate */ - lrh = lowpan6_data.reass_list; - while (lrh != NULL) { - uint8_t discard = 0; - lrh_next = lrh->next_packet; - if ((lrh->sender_addr.addr_len == src.addr_len) && - (memcmp(lrh->sender_addr.addr, src.addr, src.addr_len) == 0)) { - /* address match with packet in reassembly. */ - if ((datagram_tag == lrh->datagram_tag) && (datagram_size == lrh->datagram_size)) { - /* duplicate fragment. */ - goto lowpan6_input_discard; - } else { - /* We are receiving the start of a new datagram. Discard old one (incomplete). */ - discard = 1; - } - } - if (discard) { - dequeue_datagram(lrh, lrh_prev); - free_reass_datagram(lrh); - } else { - lrh_prev = lrh; - } - /* Check next datagram in queue. */ - lrh = lrh_next; - } - - pbuf_remove_header(p, 4); /* hide frag1 dispatch */ - - lrh = (struct lowpan6_reass_helper *) mem_malloc(sizeof(struct lowpan6_reass_helper)); - if (lrh == NULL) { - goto lowpan6_input_discard; - } - - lrh->sender_addr.addr_len = src.addr_len; - for (i = 0; i < src.addr_len; i++) { - lrh->sender_addr.addr[i] = src.addr[i]; - } - lrh->datagram_size = datagram_size; - lrh->datagram_tag = datagram_tag; - lrh->frags = NULL; - if (*(u8_t *)p->payload == 0x41) { - /* This is a complete IPv6 packet, just skip dispatch byte. */ - pbuf_remove_header(p, 1); /* hide dispatch byte. */ - lrh->reass = p; - } else if ((*(u8_t *)p->payload & 0xe0 ) == 0x60) { - lrh->reass = lowpan6_decompress(p, datagram_size, LWIP_6LOWPAN_CONTEXTS(netif), &src, &dest); - if (lrh->reass == NULL) { - /* decompression failed */ - mem_free(lrh); - goto lowpan6_input_discard; - } - } - /* TODO: handle the case where we already have FRAGN received */ - lrh->next_packet = lowpan6_data.reass_list; - lrh->timer = 2; - lowpan6_data.reass_list = lrh; - - return ERR_OK; - } else if ((b & 0xf8) == 0xe0) { - /* FRAGN dispatch, find packet being reassembled. */ - datagram_size = ((u16_t)(puc[0] & 0x07) << 8) | (u16_t)puc[1]; - datagram_tag = ((u16_t)puc[2] << 8) | (u16_t)puc[3]; - datagram_offset = (u16_t)puc[4] << 3; - pbuf_remove_header(p, 4); /* hide frag1 dispatch but keep datagram offset for reassembly */ - - for (lrh = lowpan6_data.reass_list; lrh != NULL; lrh_prev = lrh, lrh = lrh->next_packet) { - if ((lrh->sender_addr.addr_len == src.addr_len) && - (memcmp(lrh->sender_addr.addr, src.addr, src.addr_len) == 0) && - (datagram_tag == lrh->datagram_tag) && - (datagram_size == lrh->datagram_size)) { - break; - } - } - if (lrh == NULL) { - /* rogue fragment */ - goto lowpan6_input_discard; - } - /* Insert new pbuf into list of fragments. Each fragment is a pbuf, - this only works for unchained pbufs. */ - LWIP_ASSERT("p->next == NULL", p->next == NULL); - if (lrh->reass != NULL) { - /* FRAG1 already received, check this offset against first len */ - if (datagram_offset < lrh->reass->len) { - /* fragment overlap, discard old fragments */ - dequeue_datagram(lrh, lrh_prev); - free_reass_datagram(lrh); - goto lowpan6_input_discard; - } - } - if (lrh->frags == NULL) { - /* first FRAGN */ - lrh->frags = p; - } else { - /* find the correct place to insert */ - struct pbuf *q, *last; - u16_t new_frag_len = p->len - 1; /* p->len includes datagram_offset byte */ - for (q = lrh->frags, last = NULL; q != NULL; last = q, q = q->next) { - u16_t q_datagram_offset = ((u8_t *)q->payload)[0] << 3; - u16_t q_frag_len = q->len - 1; - if (datagram_offset < q_datagram_offset) { - if (datagram_offset + new_frag_len > q_datagram_offset) { - /* overlap, discard old fragments */ - dequeue_datagram(lrh, lrh_prev); - free_reass_datagram(lrh); - goto lowpan6_input_discard; - } - /* insert here */ - break; - } else if (datagram_offset == q_datagram_offset) { - if (q_frag_len != new_frag_len) { - /* fragment mismatch, discard old fragments */ - dequeue_datagram(lrh, lrh_prev); - free_reass_datagram(lrh); - goto lowpan6_input_discard; - } - /* duplicate, ignore */ - pbuf_free(p); - return ERR_OK; - } - } - /* insert fragment */ - if (last == NULL) { - lrh->frags = p; - } else { - last->next = p; - p->next = q; - } - } - /* check if all fragments were received */ - if (lrh->reass) { - u16_t offset = lrh->reass->len; - struct pbuf *q; - for (q = lrh->frags; q != NULL; q = q->next) { - u16_t q_datagram_offset = ((u8_t *)q->payload)[0] << 3; - if (q_datagram_offset != offset) { - /* not complete, wait for more fragments */ - return ERR_OK; - } - offset += q->len - 1; - } - if (offset == datagram_size) { - /* all fragments received, combine pbufs */ - u16_t datagram_left = datagram_size - lrh->reass->len; - for (q = lrh->frags; q != NULL; q = q->next) { - /* hide datagram_offset byte now */ - pbuf_remove_header(q, 1); - q->tot_len = datagram_left; - datagram_left -= q->len; - } - LWIP_ASSERT("datagram_left == 0", datagram_left == 0); - q = lrh->reass; - q->tot_len = datagram_size; - q->next = lrh->frags; - lrh->frags = NULL; - lrh->reass = NULL; - dequeue_datagram(lrh, lrh_prev); - mem_free(lrh); - - /* @todo: distinguish unicast/multicast */ - MIB2_STATS_NETIF_INC(netif, ifinucastpkts); - return ip6_input(q, netif); - } - } - /* pbuf enqueued, waiting for more fragments */ - return ERR_OK; - } else { - if (b == 0x41) { - /* This is a complete IPv6 packet, just skip dispatch byte. */ - pbuf_remove_header(p, 1); /* hide dispatch byte. */ - } else if ((b & 0xe0 ) == 0x60) { - /* IPv6 headers are compressed using IPHC. */ - p = lowpan6_decompress(p, datagram_size, LWIP_6LOWPAN_CONTEXTS(netif), &src, &dest); - if (p == NULL) { - MIB2_STATS_NETIF_INC(netif, ifindiscards); - return ERR_OK; - } - } else { - goto lowpan6_input_discard; - } - - /* @todo: distinguish unicast/multicast */ - MIB2_STATS_NETIF_INC(netif, ifinucastpkts); - - return ip6_input(p, netif); - } -lowpan6_input_discard: - MIB2_STATS_NETIF_INC(netif, ifindiscards); - pbuf_free(p); - /* always return ERR_OK here to prevent the caller freeing the pbuf */ - return ERR_OK; -} - -/** - * @ingroup sixlowpan - */ -err_t -lowpan6_if_init(struct netif *netif) -{ - netif->name[0] = 'L'; - netif->name[1] = '6'; - netif->output_ip6 = lowpan6_output; - - MIB2_INIT_NETIF(netif, snmp_ifType_other, 0); - - /* maximum transfer unit */ - netif->mtu = 1280; - - /* broadcast capability */ - netif->flags = NETIF_FLAG_BROADCAST /* | NETIF_FLAG_LOWPAN6 */; - - return ERR_OK; -} - -/** - * @ingroup sixlowpan - * Set PAN ID - */ -err_t -lowpan6_set_pan_id(u16_t pan_id) -{ - lowpan6_data.ieee_802154_pan_id = pan_id; - - return ERR_OK; -} - -#if !NO_SYS -/** - * @ingroup sixlowpan - * Pass a received packet to tcpip_thread for input processing - * - * @param p the received packet, p->payload pointing to the - * IEEE 802.15.4 header. - * @param inp the network interface on which the packet was received - */ -err_t -tcpip_6lowpan_input(struct pbuf *p, struct netif *inp) -{ - return tcpip_inpkt(p, inp, lowpan6_input); -} -#endif /* !NO_SYS */ - -#endif /* LWIP_IPV6 */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.c b/Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.c deleted file mode 100644 index d89816d..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/lowpan6_ble.c +++ /dev/null @@ -1,447 +0,0 @@ -/** - * @file - * 6LowPAN over BLE output for IPv6 (RFC7668). -*/ - -/* - * Copyright (c) 2017 Benjamin Aigner - * Copyright (c) 2015 Inico Technologies Ltd. , Author: Ivan Delamer - * - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * Author: Benjamin Aigner - * - * Based on the original 6lowpan implementation of lwIP ( @see 6lowpan.c) - */ - - -/** - * @defgroup rfc7668if 6LoWPAN over BLE (RFC7668) - * @ingroup netifs - * This file implements a RFC7668 implementation for 6LoWPAN over - * Bluetooth Low Energy. The specification is very similar to 6LoWPAN, - * so most of the code is re-used. - * Compared to 6LoWPAN, much functionality is already implemented in - * lower BLE layers (fragmenting, session management,...). - * - * Usage: - * - add this netif - * - don't add IPv4 addresses (no IPv4 support in RFC7668), pass 'NULL','NULL','NULL' - * - use the BLE to EUI64 conversation util to create an IPv6 link-local address from the BLE MAC (@ref ble_addr_to_eui64) - * - input function: @ref rfc7668_input - * - set the link output function, which transmits output data to an established L2CAP channel - * - If data arrives (HCI event "L2CAP_DATA_PACKET"): - * - allocate a @ref PBUF_RAW buffer - * - let the pbuf struct point to the incoming data or copy it to the buffer - * - call netif->input - * - * @todo: - * - further testing - * - support compression contexts - * - support multiple addresses - * - support multicast - * - support neighbor discovery - */ - - -#include "netif/lowpan6_ble.h" - -#if LWIP_IPV6 - -#include "lwip/ip.h" -#include "lwip/pbuf.h" -#include "lwip/ip_addr.h" -#include "lwip/netif.h" -#include "lwip/nd6.h" -#include "lwip/mem.h" -#include "lwip/udp.h" -#include "lwip/tcpip.h" -#include "lwip/snmp.h" - -#include - -#if LWIP_6LOWPAN_NUM_CONTEXTS > 0 -/** context memory, containing IPv6 addresses */ -static ip6_addr_t rfc7668_context[LWIP_6LOWPAN_NUM_CONTEXTS]; -#else -#define rfc7668_context NULL -#endif - -static struct lowpan6_link_addr rfc7668_local_addr; -static struct lowpan6_link_addr rfc7668_peer_addr; - -/** - * @ingroup rfc7668if - * convert BT address to EUI64 addr - * - * This method converts a Bluetooth MAC address to an EUI64 address, - * which is used within IPv6 communication - * - * @param dst IPv6 destination space - * @param src BLE MAC address source - * @param public_addr If the LWIP_RFC7668_LINUX_WORKAROUND_PUBLIC_ADDRESS - * option is set, bit 0x02 will be set if param=0 (no public addr); cleared otherwise - * - * @see LWIP_RFC7668_LINUX_WORKAROUND_PUBLIC_ADDRESS - */ -void -ble_addr_to_eui64(uint8_t *dst, const uint8_t *src, int public_addr) -{ - /* according to RFC7668 ch 3.2.2. */ - memcpy(dst, src, 3); - dst[3] = 0xFF; - dst[4] = 0xFE; - memcpy(&dst[5], &src[3], 3); -#if LWIP_RFC7668_LINUX_WORKAROUND_PUBLIC_ADDRESS - if(public_addr) { - dst[0] &= ~0x02; - } else { - dst[0] |= 0x02; - } -#else - LWIP_UNUSED_ARG(public_addr); -#endif -} - -/** - * @ingroup rfc7668if - * convert EUI64 address to Bluetooth MAC addr - * - * This method converts an EUI64 address to a Bluetooth MAC address, - * - * @param dst BLE MAC address destination - * @param src IPv6 source - * - */ -void -eui64_to_ble_addr(uint8_t *dst, const uint8_t *src) -{ - /* according to RFC7668 ch 3.2.2. */ - memcpy(dst,src,3); - memcpy(&dst[3],&src[5],3); -} - -/** Set an address used for stateful compression. - * This expects an address of 6 or 8 bytes. - */ -static err_t -rfc7668_set_addr(struct lowpan6_link_addr *addr, const u8_t *in_addr, size_t in_addr_len, int is_mac_48, int is_public_addr) -{ - if ((in_addr == NULL) || (addr == NULL)) { - return ERR_VAL; - } - if (is_mac_48) { - if (in_addr_len != 6) { - return ERR_VAL; - } - addr->addr_len = 8; - ble_addr_to_eui64(addr->addr, in_addr, is_public_addr); - } else { - if (in_addr_len != 8) { - return ERR_VAL; - } - addr->addr_len = 8; - memcpy(addr->addr, in_addr, 8); - } - return ERR_OK; -} - - -/** Set the local address used for stateful compression. - * This expects an address of 8 bytes. - */ -err_t -rfc7668_set_local_addr_eui64(struct netif *netif, const u8_t *local_addr, size_t local_addr_len) -{ - /* netif not used for now, the address is stored globally... */ - LWIP_UNUSED_ARG(netif); - return rfc7668_set_addr(&rfc7668_local_addr, local_addr, local_addr_len, 0, 0); -} - -/** Set the local address used for stateful compression. - * This expects an address of 6 bytes. - */ -err_t -rfc7668_set_local_addr_mac48(struct netif *netif, const u8_t *local_addr, size_t local_addr_len, int is_public_addr) -{ - /* netif not used for now, the address is stored globally... */ - LWIP_UNUSED_ARG(netif); - return rfc7668_set_addr(&rfc7668_local_addr, local_addr, local_addr_len, 1, is_public_addr); -} - -/** Set the peer address used for stateful compression. - * This expects an address of 8 bytes. - */ -err_t -rfc7668_set_peer_addr_eui64(struct netif *netif, const u8_t *peer_addr, size_t peer_addr_len) -{ - /* netif not used for now, the address is stored globally... */ - LWIP_UNUSED_ARG(netif); - return rfc7668_set_addr(&rfc7668_peer_addr, peer_addr, peer_addr_len, 0, 0); -} - -/** Set the peer address used for stateful compression. - * This expects an address of 6 bytes. - */ -err_t -rfc7668_set_peer_addr_mac48(struct netif *netif, const u8_t *peer_addr, size_t peer_addr_len, int is_public_addr) -{ - /* netif not used for now, the address is stored globally... */ - LWIP_UNUSED_ARG(netif); - return rfc7668_set_addr(&rfc7668_peer_addr, peer_addr, peer_addr_len, 1, is_public_addr); -} - -/** Encapsulate IPv6 frames for BLE transmission - * - * This method implements the IPv6 header compression: - * *) According to RFC6282 - * *) See Figure 2, contains base format of bit positions - * *) Fragmentation not necessary (done at L2CAP layer of BLE) - * @note Currently the pbuf allocation uses 256 bytes. If longer packets are used (possible due to MTU=1480Bytes), increase it here! - * - * @param p Pbuf struct, containing the payload data - * @param netif Output network interface. Should be of RFC7668 type - * - * @return Same as netif->output. - */ -static err_t -rfc7668_compress(struct netif *netif, struct pbuf *p) -{ - struct pbuf *p_frag; - u16_t remaining_len; - u8_t *buffer; - u8_t lowpan6_header_len; - u8_t hidden_header_len; - err_t err; - - LWIP_ASSERT("lowpan6_frag: netif->linkoutput not set", netif->linkoutput != NULL); - -#if LWIP_6LOWPAN_IPHC - - /* We'll use a dedicated pbuf for building BLE fragments. - * We'll over-allocate it by the bytes saved for header compression. - */ - p_frag = pbuf_alloc(PBUF_RAW, p->tot_len, PBUF_RAM); - if (p_frag == NULL) { - MIB2_STATS_NETIF_INC(netif, ifoutdiscards); - return ERR_MEM; - } - LWIP_ASSERT("this needs a pbuf in one piece", p_frag->len == p_frag->tot_len); - - /* Write IP6 header (with IPHC). */ - buffer = (u8_t*)p_frag->payload; - - err = lowpan6_compress_headers(netif, (u8_t *)p->payload, p->len, buffer, p_frag->len, - &lowpan6_header_len, &hidden_header_len, rfc7668_context, &rfc7668_local_addr, &rfc7668_peer_addr); - if (err != ERR_OK) { - MIB2_STATS_NETIF_INC(netif, ifoutdiscards); - pbuf_free(p_frag); - return err; - } - pbuf_remove_header(p, hidden_header_len); - - /* Calculate remaining packet length */ - remaining_len = p->tot_len; - - /* Copy IPv6 packet */ - pbuf_copy_partial(p, buffer + lowpan6_header_len, remaining_len, 0); - - /* Calculate frame length */ - p_frag->len = p_frag->tot_len = remaining_len + lowpan6_header_len; - - /* send the packet */ - MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p_frag->tot_len); - LWIP_DEBUGF(LWIP_LOWPAN6_DEBUG|LWIP_DBG_TRACE, ("rfc7668_output: sending packet %p\n", (void *)p)); - err = netif->linkoutput(netif, p_frag); - - pbuf_free(p_frag); - - return err; -#else /* LWIP_6LOWPAN_IPHC */ - /* 6LoWPAN over BLE requires IPHC! */ - return ERR_IF; -#endif/* LWIP_6LOWPAN_IPHC */ -} - -/** - * @ingroup rfc7668if - * Set context id IPv6 address - * - * Store one IPv6 address to a given context id. - * - * @param idx Context id - * @param context IPv6 addr for this context - * - * @return ERR_OK (if everything is fine), ERR_ARG (if the context id is out of range), ERR_VAL (if contexts disabled) - */ -err_t -rfc7668_set_context(u8_t idx, const ip6_addr_t *context) -{ -#if LWIP_6LOWPAN_NUM_CONTEXTS > 0 - /* check if the ID is possible */ - if (idx >= LWIP_6LOWPAN_NUM_CONTEXTS) { - return ERR_ARG; - } - /* copy IPv6 address to context storage */ - ip6_addr_set(&rfc7668_context[idx], context); - return ERR_OK; -#else - LWIP_UNUSED_ARG(idx); - LWIP_UNUSED_ARG(context); - return ERR_VAL; -#endif -} - -/** - * @ingroup rfc7668if - * Compress outgoing IPv6 packet and pass it on to netif->linkoutput - * - * @param netif The lwIP network interface which the IP packet will be sent on. - * @param q The pbuf(s) containing the IP packet to be sent. - * @param ip6addr The IP address of the packet destination. - * - * @return See rfc7668_compress - */ -err_t -rfc7668_output(struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr) -{ - /* dst ip6addr is not used here, we only have one peer */ - LWIP_UNUSED_ARG(ip6addr); - - return rfc7668_compress(netif, q); -} - -/** - * @ingroup rfc7668if - * Process a received raw payload from an L2CAP channel - * - * @param p the received packet, p->payload pointing to the - * IPv6 header (maybe compressed) - * @param netif the network interface on which the packet was received - * - * @return ERR_OK if everything was fine - */ -err_t -rfc7668_input(struct pbuf * p, struct netif *netif) -{ - u8_t * puc; - - MIB2_STATS_NETIF_ADD(netif, ifinoctets, p->tot_len); - - /* Load first header byte */ - puc = (u8_t*)p->payload; - - /* no IP header compression */ - if (*puc == 0x41) { - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("Completed packet, removing dispatch: 0x%2x \n", *puc)); - /* This is a complete IPv6 packet, just skip header byte. */ - pbuf_remove_header(p, 1); - /* IPHC header compression */ - } else if ((*puc & 0xe0 )== 0x60) { - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("Completed packet, decompress dispatch: 0x%2x \n", *puc)); - /* IPv6 headers are compressed using IPHC. */ - p = lowpan6_decompress(p, 0, rfc7668_context, &rfc7668_peer_addr, &rfc7668_local_addr); - /* if no pbuf is returned, handle as discarded packet */ - if (p == NULL) { - MIB2_STATS_NETIF_INC(netif, ifindiscards); - return ERR_OK; - } - /* invalid header byte, discard */ - } else { - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("Completed packet, discarding: 0x%2x \n", *puc)); - MIB2_STATS_NETIF_INC(netif, ifindiscards); - pbuf_free(p); - return ERR_OK; - } - /* @todo: distinguish unicast/multicast */ - MIB2_STATS_NETIF_INC(netif, ifinucastpkts); - -#if LWIP_RFC7668_IP_UNCOMPRESSED_DEBUG - { - u16_t i; - LWIP_DEBUGF(LWIP_RFC7668_IP_UNCOMPRESSED_DEBUG, ("IPv6 payload:\n")); - for (i = 0; i < p->len; i++) { - if ((i%4)==0) { - LWIP_DEBUGF(LWIP_RFC7668_IP_UNCOMPRESSED_DEBUG, ("\n")); - } - LWIP_DEBUGF(LWIP_RFC7668_IP_UNCOMPRESSED_DEBUG, ("%2X ", *((uint8_t *)p->payload+i))); - } - LWIP_DEBUGF(LWIP_RFC7668_IP_UNCOMPRESSED_DEBUG, ("\np->len: %d\n", p->len)); - } -#endif - /* pass data to ip6_input */ - return ip6_input(p, netif); -} - -/** - * @ingroup rfc7668if - * Initialize the netif - * - * No flags are used (broadcast not possible, not ethernet, ...) - * The shortname for this netif is "BT" - * - * @param netif the network interface to be initialized as RFC7668 netif - * - * @return ERR_OK if everything went fine - */ -err_t -rfc7668_if_init(struct netif *netif) -{ - netif->name[0] = 'b'; - netif->name[1] = 't'; - /* local function as IPv6 output */ - netif->output_ip6 = rfc7668_output; - - MIB2_INIT_NETIF(netif, snmp_ifType_other, 0); - - /* maximum transfer unit, set according to RFC7668 ch2.4 */ - netif->mtu = 1280; - - /* no flags set (no broadcast, ethernet,...)*/ - netif->flags = 0; - - /* everything fine */ - return ERR_OK; -} - -#if !NO_SYS -/** - * Pass a received packet to tcpip_thread for input processing - * - * @param p the received packet, p->payload pointing to the - * IEEE 802.15.4 header. - * @param inp the network interface on which the packet was received - * - * @return see @ref tcpip_inpkt, same return values - */ -err_t -tcpip_rfc7668_input(struct pbuf *p, struct netif *inp) -{ - /* send data to upper layer, return the result */ - return tcpip_inpkt(p, inp, rfc7668_input); -} -#endif /* !NO_SYS */ - -#endif /* LWIP_IPV6 */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.c b/Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.c deleted file mode 100644 index baea206..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.c +++ /dev/null @@ -1,841 +0,0 @@ -/** - * @file - * - * Common 6LowPAN routines for IPv6. Uses ND tables for link-layer addressing. Fragments packets to 6LowPAN units. - * - * This implementation aims to conform to IEEE 802.15.4(-2015), RFC 4944 and RFC 6282. - * @todo: RFC 6775. - */ - -/* - * Copyright (c) 2015 Inico Technologies Ltd. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Ivan Delamer - * - * - * Please coordinate changes and requests with Ivan Delamer - * - */ - -/** - * @defgroup sixlowpan 6LoWPAN (RFC4944) - * @ingroup netifs - * 6LowPAN netif implementation - */ - -#include "netif/lowpan6_common.h" - -#if LWIP_IPV6 - -#include "lwip/ip.h" -#include "lwip/pbuf.h" -#include "lwip/ip_addr.h" -#include "lwip/netif.h" -#include "lwip/udp.h" - -#include - -/* Determine compression mode for unicast address. */ -s8_t -lowpan6_get_address_mode(const ip6_addr_t *ip6addr, const struct lowpan6_link_addr *mac_addr) -{ - if (mac_addr->addr_len == 2) { - if ((ip6addr->addr[2] == (u32_t)PP_HTONL(0x000000ff)) && - ((ip6addr->addr[3] & PP_HTONL(0xffff0000)) == PP_NTOHL(0xfe000000))) { - if ((ip6addr->addr[3] & PP_HTONL(0x0000ffff)) == lwip_ntohl((mac_addr->addr[0] << 8) | mac_addr->addr[1])) { - return 3; - } - } - } else if (mac_addr->addr_len == 8) { - if ((ip6addr->addr[2] == lwip_ntohl(((mac_addr->addr[0] ^ 2) << 24) | (mac_addr->addr[1] << 16) | mac_addr->addr[2] << 8 | mac_addr->addr[3])) && - (ip6addr->addr[3] == lwip_ntohl((mac_addr->addr[4] << 24) | (mac_addr->addr[5] << 16) | mac_addr->addr[6] << 8 | mac_addr->addr[7]))) { - return 3; - } - } - - if ((ip6addr->addr[2] == PP_HTONL(0x000000ffUL)) && - ((ip6addr->addr[3] & PP_HTONL(0xffff0000)) == PP_NTOHL(0xfe000000UL))) { - return 2; - } - - return 1; -} - -#if LWIP_6LOWPAN_IPHC - -/* Determine compression mode for multicast address. */ -static s8_t -lowpan6_get_address_mode_mc(const ip6_addr_t *ip6addr) -{ - if ((ip6addr->addr[0] == PP_HTONL(0xff020000)) && - (ip6addr->addr[1] == 0) && - (ip6addr->addr[2] == 0) && - ((ip6addr->addr[3] & PP_HTONL(0xffffff00)) == 0)) { - return 3; - } else if (((ip6addr->addr[0] & PP_HTONL(0xff00ffff)) == PP_HTONL(0xff000000)) && - (ip6addr->addr[1] == 0)) { - if ((ip6addr->addr[2] == 0) && - ((ip6addr->addr[3] & PP_HTONL(0xff000000)) == 0)) { - return 2; - } else if ((ip6addr->addr[2] & PP_HTONL(0xffffff00)) == 0) { - return 1; - } - } - - return 0; -} - -#if LWIP_6LOWPAN_NUM_CONTEXTS > 0 -static s8_t -lowpan6_context_lookup(const ip6_addr_t *lowpan6_contexts, const ip6_addr_t *ip6addr) -{ - s8_t i; - - for (i = 0; i < LWIP_6LOWPAN_NUM_CONTEXTS; i++) { - if (ip6_addr_netcmp(&lowpan6_contexts[i], ip6addr)) { - return i; - } - } - return -1; -} -#endif /* LWIP_6LOWPAN_NUM_CONTEXTS > 0 */ - -/* - * Compress IPv6 and/or UDP headers. - * */ -err_t -lowpan6_compress_headers(struct netif *netif, u8_t *inbuf, size_t inbuf_size, u8_t *outbuf, size_t outbuf_size, - u8_t *lowpan6_header_len_out, u8_t *hidden_header_len_out, ip6_addr_t *lowpan6_contexts, - const struct lowpan6_link_addr *src, const struct lowpan6_link_addr *dst) -{ - u8_t *buffer, *inptr; - u8_t lowpan6_header_len; - u8_t hidden_header_len = 0; - s8_t i; - struct ip6_hdr *ip6hdr; - ip_addr_t ip6src, ip6dst; - - LWIP_ASSERT("netif != NULL", netif != NULL); - LWIP_ASSERT("inbuf != NULL", inbuf != NULL); - LWIP_ASSERT("outbuf != NULL", outbuf != NULL); - LWIP_ASSERT("lowpan6_header_len_out != NULL", lowpan6_header_len_out != NULL); - LWIP_ASSERT("hidden_header_len_out != NULL", hidden_header_len_out != NULL); - - /* Perform 6LowPAN IPv6 header compression according to RFC 6282 */ - buffer = outbuf; - inptr = inbuf; - - if (inbuf_size < IP6_HLEN) { - /* input buffer too short */ - return ERR_VAL; - } - if (outbuf_size < IP6_HLEN) { - /* output buffer too short for worst case */ - return ERR_MEM; - } - - /* Point to ip6 header and align copies of src/dest addresses. */ - ip6hdr = (struct ip6_hdr *)inptr; - ip_addr_copy_from_ip6_packed(ip6dst, ip6hdr->dest); - ip6_addr_assign_zone(ip_2_ip6(&ip6dst), IP6_UNKNOWN, netif); - ip_addr_copy_from_ip6_packed(ip6src, ip6hdr->src); - ip6_addr_assign_zone(ip_2_ip6(&ip6src), IP6_UNKNOWN, netif); - - /* Basic length of 6LowPAN header, set dispatch and clear fields. */ - lowpan6_header_len = 2; - buffer[0] = 0x60; - buffer[1] = 0; - - /* Determine whether there will be a Context Identifier Extension byte or not. - * If so, set it already. */ -#if LWIP_6LOWPAN_NUM_CONTEXTS > 0 - buffer[2] = 0; - - i = lowpan6_context_lookup(lowpan6_contexts, ip_2_ip6(&ip6src)); - if (i >= 0) { - /* Stateful source address compression. */ - buffer[1] |= 0x40; - buffer[2] |= (i & 0x0f) << 4; - } - - i = lowpan6_context_lookup(lowpan6_contexts, ip_2_ip6(&ip6dst)); - if (i >= 0) { - /* Stateful destination address compression. */ - buffer[1] |= 0x04; - buffer[2] |= i & 0x0f; - } - - if (buffer[2] != 0x00) { - /* Context identifier extension byte is appended. */ - buffer[1] |= 0x80; - lowpan6_header_len++; - } -#else /* LWIP_6LOWPAN_NUM_CONTEXTS > 0 */ - LWIP_UNUSED_ARG(lowpan6_contexts); -#endif /* LWIP_6LOWPAN_NUM_CONTEXTS > 0 */ - - /* Determine TF field: Traffic Class, Flow Label */ - if (IP6H_FL(ip6hdr) == 0) { - /* Flow label is elided. */ - buffer[0] |= 0x10; - if (IP6H_TC(ip6hdr) == 0) { - /* Traffic class (ECN+DSCP) elided too. */ - buffer[0] |= 0x08; - } else { - /* Traffic class (ECN+DSCP) appended. */ - buffer[lowpan6_header_len++] = IP6H_TC(ip6hdr); - } - } else { - if (((IP6H_TC(ip6hdr) & 0x3f) == 0)) { - /* DSCP portion of Traffic Class is elided, ECN and FL are appended (3 bytes) */ - buffer[0] |= 0x08; - - buffer[lowpan6_header_len] = IP6H_TC(ip6hdr) & 0xc0; - buffer[lowpan6_header_len++] |= (IP6H_FL(ip6hdr) >> 16) & 0x0f; - buffer[lowpan6_header_len++] = (IP6H_FL(ip6hdr) >> 8) & 0xff; - buffer[lowpan6_header_len++] = IP6H_FL(ip6hdr) & 0xff; - } else { - /* Traffic class and flow label are appended (4 bytes) */ - buffer[lowpan6_header_len++] = IP6H_TC(ip6hdr); - buffer[lowpan6_header_len++] = (IP6H_FL(ip6hdr) >> 16) & 0x0f; - buffer[lowpan6_header_len++] = (IP6H_FL(ip6hdr) >> 8) & 0xff; - buffer[lowpan6_header_len++] = IP6H_FL(ip6hdr) & 0xff; - } - } - - /* Compress NH? - * Only if UDP for now. @todo support other NH compression. */ - if (IP6H_NEXTH(ip6hdr) == IP6_NEXTH_UDP) { - buffer[0] |= 0x04; - } else { - /* append nexth. */ - buffer[lowpan6_header_len++] = IP6H_NEXTH(ip6hdr); - } - - /* Compress hop limit? */ - if (IP6H_HOPLIM(ip6hdr) == 255) { - buffer[0] |= 0x03; - } else if (IP6H_HOPLIM(ip6hdr) == 64) { - buffer[0] |= 0x02; - } else if (IP6H_HOPLIM(ip6hdr) == 1) { - buffer[0] |= 0x01; - } else { - /* append hop limit */ - buffer[lowpan6_header_len++] = IP6H_HOPLIM(ip6hdr); - } - - /* Compress source address */ - if (((buffer[1] & 0x40) != 0) || - (ip6_addr_islinklocal(ip_2_ip6(&ip6src)))) { - /* Context-based or link-local source address compression. */ - i = lowpan6_get_address_mode(ip_2_ip6(&ip6src), src); - buffer[1] |= (i & 0x03) << 4; - if (i == 1) { - MEMCPY(buffer + lowpan6_header_len, inptr + 16, 8); - lowpan6_header_len += 8; - } else if (i == 2) { - MEMCPY(buffer + lowpan6_header_len, inptr + 22, 2); - lowpan6_header_len += 2; - } - } else if (ip6_addr_isany(ip_2_ip6(&ip6src))) { - /* Special case: mark SAC and leave SAM=0 */ - buffer[1] |= 0x40; - } else { - /* Append full address. */ - MEMCPY(buffer + lowpan6_header_len, inptr + 8, 16); - lowpan6_header_len += 16; - } - - /* Compress destination address */ - if (ip6_addr_ismulticast(ip_2_ip6(&ip6dst))) { - /* @todo support stateful multicast address compression */ - - buffer[1] |= 0x08; - - i = lowpan6_get_address_mode_mc(ip_2_ip6(&ip6dst)); - buffer[1] |= i & 0x03; - if (i == 0) { - MEMCPY(buffer + lowpan6_header_len, inptr + 24, 16); - lowpan6_header_len += 16; - } else if (i == 1) { - buffer[lowpan6_header_len++] = inptr[25]; - MEMCPY(buffer + lowpan6_header_len, inptr + 35, 5); - lowpan6_header_len += 5; - } else if (i == 2) { - buffer[lowpan6_header_len++] = inptr[25]; - MEMCPY(buffer + lowpan6_header_len, inptr + 37, 3); - lowpan6_header_len += 3; - } else if (i == 3) { - buffer[lowpan6_header_len++] = (inptr)[39]; - } - } else if (((buffer[1] & 0x04) != 0) || - (ip6_addr_islinklocal(ip_2_ip6(&ip6dst)))) { - /* Context-based or link-local destination address compression. */ - i = lowpan6_get_address_mode(ip_2_ip6(&ip6dst), dst); - buffer[1] |= i & 0x03; - if (i == 1) { - MEMCPY(buffer + lowpan6_header_len, inptr + 32, 8); - lowpan6_header_len += 8; - } else if (i == 2) { - MEMCPY(buffer + lowpan6_header_len, inptr + 38, 2); - lowpan6_header_len += 2; - } - } else { - /* Append full address. */ - MEMCPY(buffer + lowpan6_header_len, inptr + 24, 16); - lowpan6_header_len += 16; - } - - /* Move to payload. */ - inptr += IP6_HLEN; - hidden_header_len += IP6_HLEN; - -#if LWIP_UDP - /* Compress UDP header? */ - if (IP6H_NEXTH(ip6hdr) == IP6_NEXTH_UDP) { - /* @todo support optional checksum compression */ - - if (inbuf_size < IP6_HLEN + UDP_HLEN) { - /* input buffer too short */ - return ERR_VAL; - } - if (outbuf_size < (size_t)(hidden_header_len + 7)) { - /* output buffer too short for worst case */ - return ERR_MEM; - } - - buffer[lowpan6_header_len] = 0xf0; - - /* determine port compression mode. */ - if ((inptr[0] == 0xf0) && ((inptr[1] & 0xf0) == 0xb0) && - (inptr[2] == 0xf0) && ((inptr[3] & 0xf0) == 0xb0)) { - /* Compress source and dest ports. */ - buffer[lowpan6_header_len++] |= 0x03; - buffer[lowpan6_header_len++] = ((inptr[1] & 0x0f) << 4) | (inptr[3] & 0x0f); - } else if (inptr[0] == 0xf0) { - /* Compress source port. */ - buffer[lowpan6_header_len++] |= 0x02; - buffer[lowpan6_header_len++] = inptr[1]; - buffer[lowpan6_header_len++] = inptr[2]; - buffer[lowpan6_header_len++] = inptr[3]; - } else if (inptr[2] == 0xf0) { - /* Compress dest port. */ - buffer[lowpan6_header_len++] |= 0x01; - buffer[lowpan6_header_len++] = inptr[0]; - buffer[lowpan6_header_len++] = inptr[1]; - buffer[lowpan6_header_len++] = inptr[3]; - } else { - /* append full ports. */ - lowpan6_header_len++; - buffer[lowpan6_header_len++] = inptr[0]; - buffer[lowpan6_header_len++] = inptr[1]; - buffer[lowpan6_header_len++] = inptr[2]; - buffer[lowpan6_header_len++] = inptr[3]; - } - - /* elide length and copy checksum */ - buffer[lowpan6_header_len++] = inptr[6]; - buffer[lowpan6_header_len++] = inptr[7]; - - hidden_header_len += UDP_HLEN; - } -#endif /* LWIP_UDP */ - - *lowpan6_header_len_out = lowpan6_header_len; - *hidden_header_len_out = hidden_header_len; - - return ERR_OK; -} - -/** Decompress IPv6 and UDP headers compressed according to RFC 6282 - * - * @param lowpan6_buffer compressed headers, first byte is the dispatch byte - * @param lowpan6_bufsize size of lowpan6_buffer (may include data after headers) - * @param decomp_buffer buffer where the decompressed headers are stored - * @param decomp_bufsize size of decomp_buffer - * @param hdr_size_comp returns the size of the compressed headers (skip to get to data) - * @param hdr_size_decomp returns the size of the decompressed headers (IPv6 + UDP) - * @param datagram_size datagram size from fragments or 0 if unfragmented - * @param compressed_size compressed datagram size (for unfragmented rx) - * @param lowpan6_contexts context addresses - * @param src source address of the outer layer, used for address compression - * @param dest destination address of the outer layer, used for address compression - * @return ERR_OK if decompression succeeded, an error otherwise - */ -static err_t -lowpan6_decompress_hdr(u8_t *lowpan6_buffer, size_t lowpan6_bufsize, - u8_t *decomp_buffer, size_t decomp_bufsize, - u16_t *hdr_size_comp, u16_t *hdr_size_decomp, - u16_t datagram_size, u16_t compressed_size, - ip6_addr_t *lowpan6_contexts, - struct lowpan6_link_addr *src, struct lowpan6_link_addr *dest) -{ - u16_t lowpan6_offset; - struct ip6_hdr *ip6hdr; - s8_t i; - u32_t header_temp; - u16_t ip6_offset = IP6_HLEN; - - LWIP_ASSERT("lowpan6_buffer != NULL", lowpan6_buffer != NULL); - LWIP_ASSERT("decomp_buffer != NULL", decomp_buffer != NULL); - LWIP_ASSERT("src != NULL", src != NULL); - LWIP_ASSERT("dest != NULL", dest != NULL); - LWIP_ASSERT("hdr_size_comp != NULL", hdr_size_comp != NULL); - LWIP_ASSERT("dehdr_size_decompst != NULL", hdr_size_decomp != NULL); - - ip6hdr = (struct ip6_hdr *)decomp_buffer; - if (decomp_bufsize < IP6_HLEN) { - return ERR_MEM; - } - - /* output the full compressed packet, if set in @see lowpan6_opts.h */ -#if LWIP_LOWPAN6_IP_COMPRESSED_DEBUG - { - u16_t j; - LWIP_DEBUGF(LWIP_LOWPAN6_IP_COMPRESSED_DEBUG, ("lowpan6_decompress_hdr: IP6 payload (compressed): \n")); - for (j = 0; j < lowpan6_bufsize; j++) { - if ((j % 4) == 0) { - LWIP_DEBUGF(LWIP_LOWPAN6_IP_COMPRESSED_DEBUG, ("\n")); - } - LWIP_DEBUGF(LWIP_LOWPAN6_IP_COMPRESSED_DEBUG, ("%2X ", lowpan6_buffer[j])); - } - LWIP_DEBUGF(LWIP_LOWPAN6_IP_COMPRESSED_DEBUG, ("\np->len: %d", lowpan6_bufsize)); - } -#endif - - /* offset for inline IP headers (RFC 6282 ch3)*/ - lowpan6_offset = 2; - /* if CID is set (context identifier), the context byte - * follows immediately after the header, so other IPHC fields are @+3 */ - if (lowpan6_buffer[1] & 0x80) { - lowpan6_offset++; - } - - /* Set IPv6 version, traffic class and flow label. (RFC6282, ch 3.1.1.)*/ - if ((lowpan6_buffer[0] & 0x18) == 0x00) { - header_temp = ((lowpan6_buffer[lowpan6_offset+1] & 0x0f) << 16) | \ - (lowpan6_buffer[lowpan6_offset + 2] << 8) | lowpan6_buffer[lowpan6_offset+3]; - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("TF: 00, ECN: 0x%2x, Flowlabel+DSCP: 0x%8X\n", \ - lowpan6_buffer[lowpan6_offset],header_temp)); - IP6H_VTCFL_SET(ip6hdr, 6, lowpan6_buffer[lowpan6_offset], header_temp); - /* increase offset, processed 4 bytes here: - * TF=00: ECN + DSCP + 4-bit Pad + Flow Label (4 bytes)*/ - lowpan6_offset += 4; - } else if ((lowpan6_buffer[0] & 0x18) == 0x08) { - header_temp = ((lowpan6_buffer[lowpan6_offset] & 0x0f) << 16) | (lowpan6_buffer[lowpan6_offset + 1] << 8) | lowpan6_buffer[lowpan6_offset+2]; - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("TF: 01, ECN: 0x%2x, Flowlabel: 0x%2X, DSCP ignored\n", \ - lowpan6_buffer[lowpan6_offset] & 0xc0,header_temp)); - IP6H_VTCFL_SET(ip6hdr, 6, lowpan6_buffer[lowpan6_offset] & 0xc0, header_temp); - /* increase offset, processed 3 bytes here: - * TF=01: ECN + 2-bit Pad + Flow Label (3 bytes), DSCP is elided.*/ - lowpan6_offset += 3; - } else if ((lowpan6_buffer[0] & 0x18) == 0x10) { - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("TF: 10, DCSP+ECN: 0x%2x, Flowlabel ignored\n", lowpan6_buffer[lowpan6_offset])); - IP6H_VTCFL_SET(ip6hdr, 6, lowpan6_buffer[lowpan6_offset],0); - /* increase offset, processed 1 byte here: - * ECN + DSCP (1 byte), Flow Label is elided.*/ - lowpan6_offset += 1; - } else if ((lowpan6_buffer[0] & 0x18) == 0x18) { - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("TF: 11, DCSP/ECN & Flowlabel ignored\n")); - /* don't increase offset, no bytes processed here */ - IP6H_VTCFL_SET(ip6hdr, 6, 0, 0); - } - - /* Set Next Header (NH) */ - if ((lowpan6_buffer[0] & 0x04) == 0x00) { - /* 0: full next header byte carried inline (increase offset)*/ - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("NH: 0x%2X\n", lowpan6_buffer[lowpan6_offset+1])); - IP6H_NEXTH_SET(ip6hdr, lowpan6_buffer[lowpan6_offset++]); - } else { - /* 1: NH compression, LOWPAN_NHC (RFC6282, ch 4.1) */ - /* We should fill this later with NHC decoding */ - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("NH: skipped, later done with NHC\n")); - IP6H_NEXTH_SET(ip6hdr, 0); - } - - /* Set Hop Limit, either carried inline or 3 different hops (1,64,255) */ - if ((lowpan6_buffer[0] & 0x03) == 0x00) { - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("Hops: full value: %d\n", lowpan6_buffer[lowpan6_offset+1])); - IP6H_HOPLIM_SET(ip6hdr, lowpan6_buffer[lowpan6_offset++]); - } else if ((lowpan6_buffer[0] & 0x03) == 0x01) { - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("Hops: compressed: 1\n")); - IP6H_HOPLIM_SET(ip6hdr, 1); - } else if ((lowpan6_buffer[0] & 0x03) == 0x02) { - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("Hops: compressed: 64\n")); - IP6H_HOPLIM_SET(ip6hdr, 64); - } else if ((lowpan6_buffer[0] & 0x03) == 0x03) { - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("Hops: compressed: 255\n")); - IP6H_HOPLIM_SET(ip6hdr, 255); - } - - /* Source address decoding. */ - if ((lowpan6_buffer[1] & 0x40) == 0x00) { - /* Source address compression (SAC) = 0 -> stateless compression */ - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("SAC == 0, no context byte\n")); - /* Stateless compression */ - if ((lowpan6_buffer[1] & 0x30) == 0x00) { - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("SAM == 00, no src compression, fetching 128bits inline\n")); - /* copy full address, increase offset by 16 Bytes */ - MEMCPY(&ip6hdr->src.addr[0], lowpan6_buffer + lowpan6_offset, 16); - lowpan6_offset += 16; - } else if ((lowpan6_buffer[1] & 0x30) == 0x10) { - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("SAM == 01, src compression, 64bits inline\n")); - /* set 64 bits to link local */ - ip6hdr->src.addr[0] = PP_HTONL(0xfe800000UL); - ip6hdr->src.addr[1] = 0; - /* copy 8 Bytes, increase offset */ - MEMCPY(&ip6hdr->src.addr[2], lowpan6_buffer + lowpan6_offset, 8); - lowpan6_offset += 8; - } else if ((lowpan6_buffer[1] & 0x30) == 0x20) { - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("SAM == 10, src compression, 16bits inline\n")); - /* set 96 bits to link local */ - ip6hdr->src.addr[0] = PP_HTONL(0xfe800000UL); - ip6hdr->src.addr[1] = 0; - ip6hdr->src.addr[2] = PP_HTONL(0x000000ffUL); - /* extract remaining 16bits from inline bytes, increase offset */ - ip6hdr->src.addr[3] = lwip_htonl(0xfe000000UL | (lowpan6_buffer[lowpan6_offset] << 8) | - lowpan6_buffer[lowpan6_offset + 1]); - lowpan6_offset += 2; - } else if ((lowpan6_buffer[1] & 0x30) == 0x30) { - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("SAM == 11, src compression, 0bits inline, using other headers\n")); - /* no information avalaible, using other layers, see RFC6282 ch 3.2.2 */ - ip6hdr->src.addr[0] = PP_HTONL(0xfe800000UL); - ip6hdr->src.addr[1] = 0; - if (src->addr_len == 2) { - ip6hdr->src.addr[2] = PP_HTONL(0x000000ffUL); - ip6hdr->src.addr[3] = lwip_htonl(0xfe000000UL | (src->addr[0] << 8) | src->addr[1]); - } else if (src->addr_len == 8) { - ip6hdr->src.addr[2] = lwip_htonl(((src->addr[0] ^ 2) << 24) | (src->addr[1] << 16) | - (src->addr[2] << 8) | src->addr[3]); - ip6hdr->src.addr[3] = lwip_htonl((src->addr[4] << 24) | (src->addr[5] << 16) | - (src->addr[6] << 8) | src->addr[7]); - } else { - /* invalid source address length */ - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("Invalid source address length\n")); - return ERR_VAL; - } - } - } else { - /* Source address compression (SAC) = 1 -> stateful/context-based compression */ - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("SAC == 1, additional context byte\n")); - if ((lowpan6_buffer[1] & 0x30) == 0x00) { - /* SAM=00, address=> :: (ANY) */ - ip6hdr->src.addr[0] = 0; - ip6hdr->src.addr[1] = 0; - ip6hdr->src.addr[2] = 0; - ip6hdr->src.addr[3] = 0; - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("SAM == 00, context compression, ANY (::)\n")); - } else { - /* Set prefix from context info */ - if (lowpan6_buffer[1] & 0x80) { - i = (lowpan6_buffer[2] >> 4) & 0x0f; - } else { - i = 0; - } - if (i >= LWIP_6LOWPAN_NUM_CONTEXTS) { - /* Error */ - return ERR_VAL; - } -#if LWIP_6LOWPAN_NUM_CONTEXTS > 0 - ip6hdr->src.addr[0] = lowpan6_contexts[i].addr[0]; - ip6hdr->src.addr[1] = lowpan6_contexts[i].addr[1]; - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("SAM == xx, context compression found @%d: %8X, %8X\n", (int)i, ip6hdr->src.addr[0], ip6hdr->src.addr[1])); -#else - LWIP_UNUSED_ARG(lowpan6_contexts); -#endif - } - - /* determine further address bits */ - if ((lowpan6_buffer[1] & 0x30) == 0x10) { - /* SAM=01, load additional 64bits */ - MEMCPY(&ip6hdr->src.addr[2], lowpan6_buffer + lowpan6_offset, 8); - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("SAM == 01, context compression, 64bits inline\n")); - lowpan6_offset += 8; - } else if ((lowpan6_buffer[1] & 0x30) == 0x20) { - /* SAM=01, load additional 16bits */ - ip6hdr->src.addr[2] = PP_HTONL(0x000000ffUL); - ip6hdr->src.addr[3] = lwip_htonl(0xfe000000UL | (lowpan6_buffer[lowpan6_offset] << 8) | lowpan6_buffer[lowpan6_offset + 1]); - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("SAM == 10, context compression, 16bits inline\n")); - lowpan6_offset += 2; - } else if ((lowpan6_buffer[1] & 0x30) == 0x30) { - /* SAM=11, address is fully elided, load from other layers */ - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("SAM == 11, context compression, 0bits inline, using other headers\n")); - if (src->addr_len == 2) { - ip6hdr->src.addr[2] = PP_HTONL(0x000000ffUL); - ip6hdr->src.addr[3] = lwip_htonl(0xfe000000UL | (src->addr[0] << 8) | src->addr[1]); - } else if (src->addr_len == 8) { - ip6hdr->src.addr[2] = lwip_htonl(((src->addr[0] ^ 2) << 24) | (src->addr[1] << 16) | (src->addr[2] << 8) | src->addr[3]); - ip6hdr->src.addr[3] = lwip_htonl((src->addr[4] << 24) | (src->addr[5] << 16) | (src->addr[6] << 8) | src->addr[7]); - } else { - /* invalid source address length */ - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("Invalid source address length\n")); - return ERR_VAL; - } - } - } - - /* Destination address decoding. */ - if (lowpan6_buffer[1] & 0x08) { - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("M=1: multicast\n")); - /* Multicast destination */ - if (lowpan6_buffer[1] & 0x04) { - LWIP_DEBUGF(LWIP_DBG_ON,("DAC == 1, context multicast: unsupported!!!\n")); - /* @todo support stateful multicast addressing */ - return ERR_VAL; - } - - if ((lowpan6_buffer[1] & 0x03) == 0x00) { - /* DAM = 00, copy full address (128bits) */ - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("DAM == 00, no dst compression, fetching 128bits inline\n")); - MEMCPY(&ip6hdr->dest.addr[0], lowpan6_buffer + lowpan6_offset, 16); - lowpan6_offset += 16; - } else if ((lowpan6_buffer[1] & 0x03) == 0x01) { - /* DAM = 01, copy 4 bytes (32bits) */ - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("DAM == 01, dst address form (48bits): ffXX::00XX:XXXX:XXXX\n")); - ip6hdr->dest.addr[0] = lwip_htonl(0xff000000UL | (lowpan6_buffer[lowpan6_offset++] << 16)); - ip6hdr->dest.addr[1] = 0; - ip6hdr->dest.addr[2] = lwip_htonl(lowpan6_buffer[lowpan6_offset++]); - ip6hdr->dest.addr[3] = lwip_htonl((lowpan6_buffer[lowpan6_offset] << 24) | (lowpan6_buffer[lowpan6_offset + 1] << 16) | (lowpan6_buffer[lowpan6_offset + 2] << 8) | lowpan6_buffer[lowpan6_offset + 3]); - lowpan6_offset += 4; - } else if ((lowpan6_buffer[1] & 0x03) == 0x02) { - /* DAM = 10, copy 3 bytes (24bits) */ - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("DAM == 10, dst address form (32bits): ffXX::00XX:XXXX\n")); - ip6hdr->dest.addr[0] = lwip_htonl(0xff000000UL | (lowpan6_buffer[lowpan6_offset++] << 16)); - ip6hdr->dest.addr[1] = 0; - ip6hdr->dest.addr[2] = 0; - ip6hdr->dest.addr[3] = lwip_htonl((lowpan6_buffer[lowpan6_offset] << 16) | (lowpan6_buffer[lowpan6_offset + 1] << 8) | lowpan6_buffer[lowpan6_offset + 2]); - lowpan6_offset += 3; - } else if ((lowpan6_buffer[1] & 0x03) == 0x03) { - /* DAM = 11, copy 1 byte (8bits) */ - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("DAM == 11, dst address form (8bits): ff02::00XX\n")); - ip6hdr->dest.addr[0] = PP_HTONL(0xff020000UL); - ip6hdr->dest.addr[1] = 0; - ip6hdr->dest.addr[2] = 0; - ip6hdr->dest.addr[3] = lwip_htonl(lowpan6_buffer[lowpan6_offset++]); - } - - } else { - /* no Multicast (M=0) */ - if (lowpan6_buffer[1] & 0x04) { - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("DAC == 1, stateful compression\n")); - /* Stateful destination compression */ - /* Set prefix from context info */ - if (lowpan6_buffer[1] & 0x80) { - i = lowpan6_buffer[2] & 0x0f; - } else { - i = 0; - } - if (i >= LWIP_6LOWPAN_NUM_CONTEXTS) { - /* Error */ - return ERR_VAL; - } -#if LWIP_6LOWPAN_NUM_CONTEXTS > 0 - ip6hdr->dest.addr[0] = lowpan6_contexts[i].addr[0]; - ip6hdr->dest.addr[1] = lowpan6_contexts[i].addr[1]; -#endif - } else { - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("DAC == 0, stateless compression, setting link local prefix\n")); - /* Link local address compression */ - ip6hdr->dest.addr[0] = PP_HTONL(0xfe800000UL); - ip6hdr->dest.addr[1] = 0; - } - - /* M=0, DAC=0, determining destination address length via DAM=xx */ - if ((lowpan6_buffer[1] & 0x03) == 0x00) { - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("DAM == 00, no dst compression, fetching 128bits inline")); - /* DAM=00, copy full address */ - MEMCPY(&ip6hdr->dest.addr[0], lowpan6_buffer + lowpan6_offset, 16); - lowpan6_offset += 16; - } else if ((lowpan6_buffer[1] & 0x03) == 0x01) { - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("DAM == 01, dst compression, 64bits inline\n")); - /* DAM=01, copy 64 inline bits, increase offset */ - MEMCPY(&ip6hdr->dest.addr[2], lowpan6_buffer + lowpan6_offset, 8); - lowpan6_offset += 8; - } else if ((lowpan6_buffer[1] & 0x03) == 0x02) { - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("DAM == 01, dst compression, 16bits inline\n")); - /* DAM=10, copy 16 inline bits, increase offset */ - ip6hdr->dest.addr[2] = PP_HTONL(0x000000ffUL); - ip6hdr->dest.addr[3] = lwip_htonl(0xfe000000UL | (lowpan6_buffer[lowpan6_offset] << 8) | lowpan6_buffer[lowpan6_offset + 1]); - lowpan6_offset += 2; - } else if ((lowpan6_buffer[1] & 0x03) == 0x03) { - /* DAM=11, no bits available, use other headers (not done here) */ - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG,("DAM == 01, dst compression, 0bits inline, using other headers\n")); - if (dest->addr_len == 2) { - ip6hdr->dest.addr[2] = PP_HTONL(0x000000ffUL); - ip6hdr->dest.addr[3] = lwip_htonl(0xfe000000UL | (dest->addr[0] << 8) | dest->addr[1]); - } else if (dest->addr_len == 8) { - ip6hdr->dest.addr[2] = lwip_htonl(((dest->addr[0] ^ 2) << 24) | (dest->addr[1] << 16) | dest->addr[2] << 8 | dest->addr[3]); - ip6hdr->dest.addr[3] = lwip_htonl((dest->addr[4] << 24) | (dest->addr[5] << 16) | dest->addr[6] << 8 | dest->addr[7]); - } else { - /* invalid destination address length */ - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("Invalid destination address length\n")); - return ERR_VAL; - } - } - } - - - /* Next Header Compression (NHC) decoding? */ - if (lowpan6_buffer[0] & 0x04) { - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("NHC decoding\n")); -#if LWIP_UDP - if ((lowpan6_buffer[lowpan6_offset] & 0xf8) == 0xf0) { - /* NHC: UDP */ - struct udp_hdr *udphdr; - LWIP_DEBUGF(LWIP_LOWPAN6_DECOMPRESSION_DEBUG, ("NHC: UDP\n")); - - /* UDP compression */ - IP6H_NEXTH_SET(ip6hdr, IP6_NEXTH_UDP); - udphdr = (struct udp_hdr *)((u8_t *)decomp_buffer + ip6_offset); - if (decomp_bufsize < IP6_HLEN + UDP_HLEN) { - return ERR_MEM; - } - - /* Checksum decompression */ - if (lowpan6_buffer[lowpan6_offset] & 0x04) { - /* @todo support checksum decompress */ - LWIP_DEBUGF(LWIP_DBG_ON, ("NHC: UDP chechsum decompression UNSUPPORTED\n")); - return ERR_VAL; - } - - /* Decompress ports, according to RFC4944 */ - i = lowpan6_buffer[lowpan6_offset++] & 0x03; - if (i == 0) { - udphdr->src = lwip_htons(lowpan6_buffer[lowpan6_offset] << 8 | lowpan6_buffer[lowpan6_offset + 1]); - udphdr->dest = lwip_htons(lowpan6_buffer[lowpan6_offset + 2] << 8 | lowpan6_buffer[lowpan6_offset + 3]); - lowpan6_offset += 4; - } else if (i == 0x01) { - udphdr->src = lwip_htons(lowpan6_buffer[lowpan6_offset] << 8 | lowpan6_buffer[lowpan6_offset + 1]); - udphdr->dest = lwip_htons(0xf000 | lowpan6_buffer[lowpan6_offset + 2]); - lowpan6_offset += 3; - } else if (i == 0x02) { - udphdr->src = lwip_htons(0xf000 | lowpan6_buffer[lowpan6_offset]); - udphdr->dest = lwip_htons(lowpan6_buffer[lowpan6_offset + 1] << 8 | lowpan6_buffer[lowpan6_offset + 2]); - lowpan6_offset += 3; - } else if (i == 0x03) { - udphdr->src = lwip_htons(0xf0b0 | ((lowpan6_buffer[lowpan6_offset] >> 4) & 0x0f)); - udphdr->dest = lwip_htons(0xf0b0 | (lowpan6_buffer[lowpan6_offset] & 0x0f)); - lowpan6_offset += 1; - } - - udphdr->chksum = lwip_htons(lowpan6_buffer[lowpan6_offset] << 8 | lowpan6_buffer[lowpan6_offset + 1]); - lowpan6_offset += 2; - ip6_offset += UDP_HLEN; - if (datagram_size == 0) { - datagram_size = compressed_size - lowpan6_offset + ip6_offset; - } - udphdr->len = lwip_htons(datagram_size - IP6_HLEN); - - } else -#endif /* LWIP_UDP */ - { - LWIP_DEBUGF(LWIP_DBG_ON,("NHC: unsupported protocol!\n")); - /* @todo support NHC other than UDP */ - return ERR_VAL; - } - } - if (datagram_size == 0) { - datagram_size = compressed_size - lowpan6_offset + ip6_offset; - } - /* Infer IPv6 payload length for header */ - IP6H_PLEN_SET(ip6hdr, datagram_size - IP6_HLEN); - - if (lowpan6_offset > lowpan6_bufsize) { - /* input buffer overflow */ - return ERR_VAL; - } - *hdr_size_comp = lowpan6_offset; - *hdr_size_decomp = ip6_offset; - - return ERR_OK; -} - -struct pbuf * -lowpan6_decompress(struct pbuf *p, u16_t datagram_size, ip6_addr_t *lowpan6_contexts, - struct lowpan6_link_addr *src, struct lowpan6_link_addr *dest) -{ - struct pbuf *q; - u16_t lowpan6_offset, ip6_offset; - err_t err; - -#if LWIP_UDP -#define UDP_HLEN_ALLOC UDP_HLEN -#else -#define UDP_HLEN_ALLOC 0 -#endif - - /* Allocate a buffer for decompression. This buffer will be too big and will be - trimmed once the final size is known. */ - q = pbuf_alloc(PBUF_IP, p->len + IP6_HLEN + UDP_HLEN_ALLOC, PBUF_POOL); - if (q == NULL) { - pbuf_free(p); - return NULL; - } - if (q->len < IP6_HLEN + UDP_HLEN_ALLOC) { - /* The headers need to fit into the first pbuf */ - pbuf_free(p); - pbuf_free(q); - return NULL; - } - - /* Decompress the IPv6 (and possibly UDP) header(s) into the new pbuf */ - err = lowpan6_decompress_hdr((u8_t *)p->payload, p->len, (u8_t *)q->payload, q->len, - &lowpan6_offset, &ip6_offset, datagram_size, p->tot_len, lowpan6_contexts, src, dest); - if (err != ERR_OK) { - pbuf_free(p); - pbuf_free(q); - return NULL; - } - - /* Now we copy leftover contents from p to q, so we have all L2 and L3 headers - (and L4?) in a single pbuf: */ - - /* Hide the compressed headers in p */ - pbuf_remove_header(p, lowpan6_offset); - /* Temporarily hide the headers in q... */ - pbuf_remove_header(q, ip6_offset); - /* ... copy the rest of p into q... */ - pbuf_copy(q, p); - /* ... and reveal the headers again... */ - pbuf_add_header_force(q, ip6_offset); - /* ... trim the pbuf to its correct size... */ - pbuf_realloc(q, ip6_offset + p->len); - /* ... and cat possibly remaining (data-only) pbufs */ - if (p->next != NULL) { - pbuf_cat(q, p->next); - } - /* the original (first) pbuf can now be freed */ - p->next = NULL; - pbuf_free(p); - - /* all done */ - return q; -} - -#endif /* LWIP_6LOWPAN_IPHC */ -#endif /* LWIP_IPV6 */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/ppp/auth.c b/Middlewares/Third_Party/LwIP/src/netif/ppp/auth.c deleted file mode 100644 index c8673ad..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/ppp/auth.c +++ /dev/null @@ -1,2510 +0,0 @@ -/* - * auth.c - PPP authentication and phase control. - * - * Copyright (c) 1993-2002 Paul Mackerras. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. The name(s) of the authors of this software must not be used to - * endorse or promote products derived from this software without - * prior written permission. - * - * 3. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Paul Mackerras - * ". - * - * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY - * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * Derived from main.c, which is: - * - * Copyright (c) 1984-2000 Carnegie Mellon University. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The name "Carnegie Mellon University" must not be used to - * endorse or promote products derived from this software without - * prior written permission. For permission or any legal - * details, please contact - * Office of Technology Transfer - * Carnegie Mellon University - * 5000 Forbes Avenue - * Pittsburgh, PA 15213-3890 - * (412) 268-4387, fax: (412) 268-7395 - * tech-transfer@andrew.cmu.edu - * - * 4. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Computing Services - * at Carnegie Mellon University (http://www.cmu.edu/computing/)." - * - * CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE - * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#if 0 /* UNUSED */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#if defined(_PATH_LASTLOG) && defined(__linux__) -#include -#endif - -#include -#include -#include - -#ifdef HAS_SHADOW -#include -#ifndef PW_PPP -#define PW_PPP PW_LOGIN -#endif -#endif - -#include -#endif /* UNUSED */ - -#include "netif/ppp/ppp_impl.h" - -#include "netif/ppp/fsm.h" -#include "netif/ppp/lcp.h" -#if CCP_SUPPORT -#include "netif/ppp/ccp.h" -#endif /* CCP_SUPPORT */ -#if ECP_SUPPORT -#include "netif/ppp/ecp.h" -#endif /* ECP_SUPPORT */ -#include "netif/ppp/ipcp.h" -#if PAP_SUPPORT -#include "netif/ppp/upap.h" -#endif /* PAP_SUPPORT */ -#if CHAP_SUPPORT -#include "netif/ppp/chap-new.h" -#endif /* CHAP_SUPPORT */ -#if EAP_SUPPORT -#include "netif/ppp/eap.h" -#endif /* EAP_SUPPORT */ -#if CBCP_SUPPORT -#include "netif/ppp/cbcp.h" -#endif - -#if 0 /* UNUSED */ -#include "session.h" -#endif /* UNUSED */ - -#if 0 /* UNUSED */ -/* Bits in scan_authfile return value */ -#define NONWILD_SERVER 1 -#define NONWILD_CLIENT 2 - -#define ISWILD(word) (word[0] == '*' && word[1] == 0) -#endif /* UNUSED */ - -#if 0 /* UNUSED */ -/* List of addresses which the peer may use. */ -static struct permitted_ip *addresses[NUM_PPP]; - -/* Wordlist giving addresses which the peer may use - without authenticating itself. */ -static struct wordlist *noauth_addrs; - -/* Remote telephone number, if available */ -char remote_number[MAXNAMELEN]; - -/* Wordlist giving remote telephone numbers which may connect. */ -static struct wordlist *permitted_numbers; - -/* Extra options to apply, from the secrets file entry for the peer. */ -static struct wordlist *extra_options; -#endif /* UNUSED */ - -#if 0 /* UNUSED */ -/* Set if we require authentication only because we have a default route. */ -static bool default_auth; - -/* Hook to enable a plugin to control the idle time limit */ -int (*idle_time_hook) (struct ppp_idle *) = NULL; - -/* Hook for a plugin to say whether we can possibly authenticate any peer */ -int (*pap_check_hook) (void) = NULL; - -/* Hook for a plugin to check the PAP user and password */ -int (*pap_auth_hook) (char *user, char *passwd, char **msgp, - struct wordlist **paddrs, - struct wordlist **popts) = NULL; - -/* Hook for a plugin to know about the PAP user logout */ -void (*pap_logout_hook) (void) = NULL; - -/* Hook for a plugin to get the PAP password for authenticating us */ -int (*pap_passwd_hook) (char *user, char *passwd) = NULL; - -/* Hook for a plugin to say if we can possibly authenticate a peer using CHAP */ -int (*chap_check_hook) (void) = NULL; - -/* Hook for a plugin to get the CHAP password for authenticating us */ -int (*chap_passwd_hook) (char *user, char *passwd) = NULL; - -/* Hook for a plugin to say whether it is OK if the peer - refuses to authenticate. */ -int (*null_auth_hook) (struct wordlist **paddrs, - struct wordlist **popts) = NULL; - -int (*allowed_address_hook) (u32_t addr) = NULL; -#endif /* UNUSED */ - -#ifdef HAVE_MULTILINK -/* Hook for plugin to hear when an interface joins a multilink bundle */ -void (*multilink_join_hook) (void) = NULL; -#endif - -#if PPP_NOTIFY -/* A notifier for when the peer has authenticated itself, - and we are proceeding to the network phase. */ -struct notifier *auth_up_notifier = NULL; - -/* A notifier for when the link goes down. */ -struct notifier *link_down_notifier = NULL; -#endif /* PPP_NOTIFY */ - -/* - * Option variables. - */ -#if 0 /* MOVED TO ppp_settings */ -bool uselogin = 0; /* Use /etc/passwd for checking PAP */ -bool session_mgmt = 0; /* Do session management (login records) */ -bool cryptpap = 0; /* Passwords in pap-secrets are encrypted */ -bool refuse_pap = 0; /* Don't wanna auth. ourselves with PAP */ -bool refuse_chap = 0; /* Don't wanna auth. ourselves with CHAP */ -bool refuse_eap = 0; /* Don't wanna auth. ourselves with EAP */ -#if MSCHAP_SUPPORT -bool refuse_mschap = 0; /* Don't wanna auth. ourselves with MS-CHAP */ -bool refuse_mschap_v2 = 0; /* Don't wanna auth. ourselves with MS-CHAPv2 */ -#else /* MSCHAP_SUPPORT */ -bool refuse_mschap = 1; /* Don't wanna auth. ourselves with MS-CHAP */ -bool refuse_mschap_v2 = 1; /* Don't wanna auth. ourselves with MS-CHAPv2 */ -#endif /* MSCHAP_SUPPORT */ -bool usehostname = 0; /* Use hostname for our_name */ -bool auth_required = 0; /* Always require authentication from peer */ -bool allow_any_ip = 0; /* Allow peer to use any IP address */ -bool explicit_remote = 0; /* User specified explicit remote name */ -bool explicit_user = 0; /* Set if "user" option supplied */ -bool explicit_passwd = 0; /* Set if "password" option supplied */ -char remote_name[MAXNAMELEN]; /* Peer's name for authentication */ -static char *uafname; /* name of most recent +ua file */ - -extern char *crypt (const char *, const char *); -#endif /* UNUSED */ -/* Prototypes for procedures local to this file. */ - -static void network_phase(ppp_pcb *pcb); -#if PPP_IDLETIMELIMIT -static void check_idle(void *arg); -#endif /* PPP_IDLETIMELIMIT */ -#if PPP_MAXCONNECT -static void connect_time_expired(void *arg); -#endif /* PPP_MAXCONNECT */ -#if 0 /* UNUSED */ -static int null_login (int); -/* static int get_pap_passwd (char *); */ -static int have_pap_secret (int *); -static int have_chap_secret (char *, char *, int, int *); -static int have_srp_secret (char *client, char *server, int need_ip, - int *lacks_ipp); -static int ip_addr_check (u32_t, struct permitted_ip *); -static int scan_authfile (FILE *, char *, char *, char *, - struct wordlist **, struct wordlist **, - char *, int); -static void free_wordlist (struct wordlist *); -static void set_allowed_addrs (int, struct wordlist *, struct wordlist *); -static int some_ip_ok (struct wordlist *); -static int setupapfile (char **); -static int privgroup (char **); -static int set_noauth_addr (char **); -static int set_permitted_number (char **); -static void check_access (FILE *, char *); -static int wordlist_count (struct wordlist *); -#endif /* UNUSED */ - -#ifdef MAXOCTETS -static void check_maxoctets (void *); -#endif - -#if PPP_OPTIONS -/* - * Authentication-related options. - */ -option_t auth_options[] = { - { "auth", o_bool, &auth_required, - "Require authentication from peer", OPT_PRIO | 1 }, - { "noauth", o_bool, &auth_required, - "Don't require peer to authenticate", OPT_PRIOSUB | OPT_PRIV, - &allow_any_ip }, - { "require-pap", o_bool, &lcp_wantoptions[0].neg_upap, - "Require PAP authentication from peer", - OPT_PRIOSUB | 1, &auth_required }, - { "+pap", o_bool, &lcp_wantoptions[0].neg_upap, - "Require PAP authentication from peer", - OPT_ALIAS | OPT_PRIOSUB | 1, &auth_required }, - { "require-chap", o_bool, &auth_required, - "Require CHAP authentication from peer", - OPT_PRIOSUB | OPT_A2OR | MDTYPE_MD5, - &lcp_wantoptions[0].chap_mdtype }, - { "+chap", o_bool, &auth_required, - "Require CHAP authentication from peer", - OPT_ALIAS | OPT_PRIOSUB | OPT_A2OR | MDTYPE_MD5, - &lcp_wantoptions[0].chap_mdtype }, -#if MSCHAP_SUPPORT - { "require-mschap", o_bool, &auth_required, - "Require MS-CHAP authentication from peer", - OPT_PRIOSUB | OPT_A2OR | MDTYPE_MICROSOFT, - &lcp_wantoptions[0].chap_mdtype }, - { "+mschap", o_bool, &auth_required, - "Require MS-CHAP authentication from peer", - OPT_ALIAS | OPT_PRIOSUB | OPT_A2OR | MDTYPE_MICROSOFT, - &lcp_wantoptions[0].chap_mdtype }, - { "require-mschap-v2", o_bool, &auth_required, - "Require MS-CHAPv2 authentication from peer", - OPT_PRIOSUB | OPT_A2OR | MDTYPE_MICROSOFT_V2, - &lcp_wantoptions[0].chap_mdtype }, - { "+mschap-v2", o_bool, &auth_required, - "Require MS-CHAPv2 authentication from peer", - OPT_ALIAS | OPT_PRIOSUB | OPT_A2OR | MDTYPE_MICROSOFT_V2, - &lcp_wantoptions[0].chap_mdtype }, -#endif /* MSCHAP_SUPPORT */ -#if 0 - { "refuse-pap", o_bool, &refuse_pap, - "Don't agree to auth to peer with PAP", 1 }, - { "-pap", o_bool, &refuse_pap, - "Don't allow PAP authentication with peer", OPT_ALIAS | 1 }, - { "refuse-chap", o_bool, &refuse_chap, - "Don't agree to auth to peer with CHAP", - OPT_A2CLRB | MDTYPE_MD5, - &lcp_allowoptions[0].chap_mdtype }, - { "-chap", o_bool, &refuse_chap, - "Don't allow CHAP authentication with peer", - OPT_ALIAS | OPT_A2CLRB | MDTYPE_MD5, - &lcp_allowoptions[0].chap_mdtype }, -#endif -#if MSCHAP_SUPPORT -#if 0 - { "refuse-mschap", o_bool, &refuse_mschap, - "Don't agree to auth to peer with MS-CHAP", - OPT_A2CLRB | MDTYPE_MICROSOFT, - &lcp_allowoptions[0].chap_mdtype }, - { "-mschap", o_bool, &refuse_mschap, - "Don't allow MS-CHAP authentication with peer", - OPT_ALIAS | OPT_A2CLRB | MDTYPE_MICROSOFT, - &lcp_allowoptions[0].chap_mdtype }, - { "refuse-mschap-v2", o_bool, &refuse_mschap_v2, - "Don't agree to auth to peer with MS-CHAPv2", - OPT_A2CLRB | MDTYPE_MICROSOFT_V2, - &lcp_allowoptions[0].chap_mdtype }, - { "-mschap-v2", o_bool, &refuse_mschap_v2, - "Don't allow MS-CHAPv2 authentication with peer", - OPT_ALIAS | OPT_A2CLRB | MDTYPE_MICROSOFT_V2, - &lcp_allowoptions[0].chap_mdtype }, -#endif -#endif /* MSCHAP_SUPPORT*/ -#if EAP_SUPPORT - { "require-eap", o_bool, &lcp_wantoptions[0].neg_eap, - "Require EAP authentication from peer", OPT_PRIOSUB | 1, - &auth_required }, -#if 0 - { "refuse-eap", o_bool, &refuse_eap, - "Don't agree to authenticate to peer with EAP", 1 }, -#endif -#endif /* EAP_SUPPORT */ - { "name", o_string, our_name, - "Set local name for authentication", - OPT_PRIO | OPT_PRIV | OPT_STATIC, NULL, MAXNAMELEN }, - - { "+ua", o_special, (void *)setupapfile, - "Get PAP user and password from file", - OPT_PRIO | OPT_A2STRVAL, &uafname }, - -#if 0 - { "user", o_string, user, - "Set name for auth with peer", OPT_PRIO | OPT_STATIC, - &explicit_user, MAXNAMELEN }, - - { "password", o_string, passwd, - "Password for authenticating us to the peer", - OPT_PRIO | OPT_STATIC | OPT_HIDE, - &explicit_passwd, MAXSECRETLEN }, -#endif - - { "usehostname", o_bool, &usehostname, - "Must use hostname for authentication", 1 }, - - { "remotename", o_string, remote_name, - "Set remote name for authentication", OPT_PRIO | OPT_STATIC, - &explicit_remote, MAXNAMELEN }, - - { "login", o_bool, &uselogin, - "Use system password database for PAP", OPT_A2COPY | 1 , - &session_mgmt }, - { "enable-session", o_bool, &session_mgmt, - "Enable session accounting for remote peers", OPT_PRIV | 1 }, - - { "papcrypt", o_bool, &cryptpap, - "PAP passwords are encrypted", 1 }, - - { "privgroup", o_special, (void *)privgroup, - "Allow group members to use privileged options", OPT_PRIV | OPT_A2LIST }, - - { "allow-ip", o_special, (void *)set_noauth_addr, - "Set IP address(es) which can be used without authentication", - OPT_PRIV | OPT_A2LIST }, - - { "remotenumber", o_string, remote_number, - "Set remote telephone number for authentication", OPT_PRIO | OPT_STATIC, - NULL, MAXNAMELEN }, - - { "allow-number", o_special, (void *)set_permitted_number, - "Set telephone number(s) which are allowed to connect", - OPT_PRIV | OPT_A2LIST }, - - { NULL } -}; -#endif /* PPP_OPTIONS */ - -#if 0 /* UNUSED */ -/* - * setupapfile - specifies UPAP info for authenticating with peer. - */ -static int -setupapfile(argv) - char **argv; -{ - FILE *ufile; - int l; - uid_t euid; - char u[MAXNAMELEN], p[MAXSECRETLEN]; - char *fname; - - lcp_allowoptions[0].neg_upap = 1; - - /* open user info file */ - fname = strdup(*argv); - if (fname == NULL) - novm("+ua file name"); - euid = geteuid(); - if (seteuid(getuid()) == -1) { - option_error("unable to reset uid before opening %s: %m", fname); - return 0; - } - ufile = fopen(fname, "r"); - if (seteuid(euid) == -1) - fatal("unable to regain privileges: %m"); - if (ufile == NULL) { - option_error("unable to open user login data file %s", fname); - return 0; - } - check_access(ufile, fname); - uafname = fname; - - /* get username */ - if (fgets(u, MAXNAMELEN - 1, ufile) == NULL - || fgets(p, MAXSECRETLEN - 1, ufile) == NULL) { - fclose(ufile); - option_error("unable to read user login data file %s", fname); - return 0; - } - fclose(ufile); - - /* get rid of newlines */ - l = strlen(u); - if (l > 0 && u[l-1] == '\n') - u[l-1] = 0; - l = strlen(p); - if (l > 0 && p[l-1] == '\n') - p[l-1] = 0; - - if (override_value("user", option_priority, fname)) { - strlcpy(ppp_settings.user, u, sizeof(ppp_settings.user)); - explicit_user = 1; - } - if (override_value("passwd", option_priority, fname)) { - strlcpy(ppp_settings.passwd, p, sizeof(ppp_settings.passwd)); - explicit_passwd = 1; - } - - return (1); -} - -/* - * privgroup - allow members of the group to have privileged access. - */ -static int -privgroup(argv) - char **argv; -{ - struct group *g; - int i; - - g = getgrnam(*argv); - if (g == 0) { - option_error("group %s is unknown", *argv); - return 0; - } - for (i = 0; i < ngroups; ++i) { - if (groups[i] == g->gr_gid) { - privileged = 1; - break; - } - } - return 1; -} - - -/* - * set_noauth_addr - set address(es) that can be used without authentication. - * Equivalent to specifying an entry like `"" * "" addr' in pap-secrets. - */ -static int -set_noauth_addr(argv) - char **argv; -{ - char *addr = *argv; - int l = strlen(addr) + 1; - struct wordlist *wp; - - wp = (struct wordlist *) malloc(sizeof(struct wordlist) + l); - if (wp == NULL) - novm("allow-ip argument"); - wp->word = (char *) (wp + 1); - wp->next = noauth_addrs; - MEMCPY(wp->word, addr, l); - noauth_addrs = wp; - return 1; -} - - -/* - * set_permitted_number - set remote telephone number(s) that may connect. - */ -static int -set_permitted_number(argv) - char **argv; -{ - char *number = *argv; - int l = strlen(number) + 1; - struct wordlist *wp; - - wp = (struct wordlist *) malloc(sizeof(struct wordlist) + l); - if (wp == NULL) - novm("allow-number argument"); - wp->word = (char *) (wp + 1); - wp->next = permitted_numbers; - MEMCPY(wp->word, number, l); - permitted_numbers = wp; - return 1; -} -#endif - -/* - * An Open on LCP has requested a change from Dead to Establish phase. - */ -void link_required(ppp_pcb *pcb) { - LWIP_UNUSED_ARG(pcb); -} - -#if 0 -/* - * Bring the link up to the point of being able to do ppp. - */ -void start_link(unit) - int unit; -{ - ppp_pcb *pcb = &ppp_pcb_list[unit]; - char *msg; - - status = EXIT_NEGOTIATION_FAILED; - new_phase(pcb, PPP_PHASE_SERIALCONN); - - hungup = 0; - devfd = the_channel->connect(); - msg = "Connect script failed"; - if (devfd < 0) - goto fail; - - /* set up the serial device as a ppp interface */ - /* - * N.B. we used to do tdb_writelock/tdb_writeunlock around this - * (from establish_ppp to set_ifunit). However, we won't be - * doing the set_ifunit in multilink mode, which is the only time - * we need the atomicity that the tdb_writelock/tdb_writeunlock - * gives us. Thus we don't need the tdb_writelock/tdb_writeunlock. - */ - fd_ppp = the_channel->establish_ppp(devfd); - msg = "ppp establishment failed"; - if (fd_ppp < 0) { - status = EXIT_FATAL_ERROR; - goto disconnect; - } - - if (!demand && ifunit >= 0) - set_ifunit(1); - - /* - * Start opening the connection and wait for - * incoming events (reply, timeout, etc.). - */ - if (ifunit >= 0) - ppp_notice("Connect: %s <--> %s", ifname, ppp_devnam); - else - ppp_notice("Starting negotiation on %s", ppp_devnam); - add_fd(fd_ppp); - - new_phase(pcb, PPP_PHASE_ESTABLISH); - - lcp_lowerup(pcb); - return; - - disconnect: - new_phase(pcb, PPP_PHASE_DISCONNECT); - if (the_channel->disconnect) - the_channel->disconnect(); - - fail: - new_phase(pcb, PPP_PHASE_DEAD); - if (the_channel->cleanup) - (*the_channel->cleanup)(); -} -#endif - -/* - * LCP has terminated the link; go to the Dead phase and take the - * physical layer down. - */ -void link_terminated(ppp_pcb *pcb) { - if (pcb->phase == PPP_PHASE_DEAD -#ifdef HAVE_MULTILINK - || pcb->phase == PPP_PHASE_MASTER -#endif /* HAVE_MULTILINK */ - ) - return; - new_phase(pcb, PPP_PHASE_DISCONNECT); - -#if 0 /* UNUSED */ - if (pap_logout_hook) { - pap_logout_hook(); - } - session_end(devnam); -#endif /* UNUSED */ - - if (!doing_multilink) { - ppp_notice("Connection terminated."); -#if PPP_STATS_SUPPORT - print_link_stats(); -#endif /* PPP_STATS_SUPPORT */ - } else - ppp_notice("Link terminated."); - - lcp_lowerdown(pcb); - - ppp_link_terminated(pcb); -#if 0 - /* - * Delete pid files before disestablishing ppp. Otherwise it - * can happen that another pppd gets the same unit and then - * we delete its pid file. - */ - if (!doing_multilink && !demand) - remove_pidfiles(); - - /* - * If we may want to bring the link up again, transfer - * the ppp unit back to the loopback. Set the - * real serial device back to its normal mode of operation. - */ - if (fd_ppp >= 0) { - remove_fd(fd_ppp); - clean_check(); - the_channel->disestablish_ppp(devfd); - if (doing_multilink) - mp_exit_bundle(); - fd_ppp = -1; - } - if (!hungup) - lcp_lowerdown(pcb); - if (!doing_multilink && !demand) - script_unsetenv("IFNAME"); - - /* - * Run disconnector script, if requested. - * XXX we may not be able to do this if the line has hung up! - */ - if (devfd >= 0 && the_channel->disconnect) { - the_channel->disconnect(); - devfd = -1; - } - if (the_channel->cleanup) - (*the_channel->cleanup)(); - - if (doing_multilink && multilink_master) { - if (!bundle_terminating) - new_phase(pcb, PPP_PHASE_MASTER); - else - mp_bundle_terminated(); - } else - new_phase(pcb, PPP_PHASE_DEAD); -#endif -} - -/* - * LCP has gone down; it will either die or try to re-establish. - */ -void link_down(ppp_pcb *pcb) { -#if PPP_NOTIFY - notify(link_down_notifier, 0); -#endif /* PPP_NOTIFY */ - - if (!doing_multilink) { - upper_layers_down(pcb); - if (pcb->phase != PPP_PHASE_DEAD -#ifdef HAVE_MULTILINK - && pcb->phase != PPP_PHASE_MASTER -#endif /* HAVE_MULTILINK */ - ) - new_phase(pcb, PPP_PHASE_ESTABLISH); - } - /* XXX if doing_multilink, should do something to stop - network-layer traffic on the link */ -} - -void upper_layers_down(ppp_pcb *pcb) { - int i; - const struct protent *protp; - - for (i = 0; (protp = protocols[i]) != NULL; ++i) { - if (protp->protocol != PPP_LCP && protp->lowerdown != NULL) - (*protp->lowerdown)(pcb); - if (protp->protocol < 0xC000 && protp->close != NULL) - (*protp->close)(pcb, "LCP down"); - } - pcb->num_np_open = 0; - pcb->num_np_up = 0; -} - -/* - * The link is established. - * Proceed to the Dead, Authenticate or Network phase as appropriate. - */ -void link_established(ppp_pcb *pcb) { -#if PPP_AUTH_SUPPORT - int auth; -#if PPP_SERVER -#if PAP_SUPPORT - lcp_options *wo = &pcb->lcp_wantoptions; -#endif /* PAP_SUPPORT */ - lcp_options *go = &pcb->lcp_gotoptions; -#endif /* PPP_SERVER */ - lcp_options *ho = &pcb->lcp_hisoptions; -#endif /* PPP_AUTH_SUPPORT */ - int i; - const struct protent *protp; - - /* - * Tell higher-level protocols that LCP is up. - */ - if (!doing_multilink) { - for (i = 0; (protp = protocols[i]) != NULL; ++i) - if (protp->protocol != PPP_LCP - && protp->lowerup != NULL) - (*protp->lowerup)(pcb); - } - -#if PPP_AUTH_SUPPORT -#if PPP_SERVER -#if PPP_ALLOWED_ADDRS - if (!auth_required && noauth_addrs != NULL) - set_allowed_addrs(unit, NULL, NULL); -#endif /* PPP_ALLOWED_ADDRS */ - - if (pcb->settings.auth_required && !(0 -#if PAP_SUPPORT - || go->neg_upap -#endif /* PAP_SUPPORT */ -#if CHAP_SUPPORT - || go->neg_chap -#endif /* CHAP_SUPPORT */ -#if EAP_SUPPORT - || go->neg_eap -#endif /* EAP_SUPPORT */ - )) { - -#if PPP_ALLOWED_ADDRS - /* - * We wanted the peer to authenticate itself, and it refused: - * if we have some address(es) it can use without auth, fine, - * otherwise treat it as though it authenticated with PAP using - * a username of "" and a password of "". If that's not OK, - * boot it out. - */ - if (noauth_addrs != NULL) { - set_allowed_addrs(unit, NULL, NULL); - } else -#endif /* PPP_ALLOWED_ADDRS */ - if (!pcb->settings.null_login -#if PAP_SUPPORT - || !wo->neg_upap -#endif /* PAP_SUPPORT */ - ) { - ppp_warn("peer refused to authenticate: terminating link"); -#if 0 /* UNUSED */ - status = EXIT_PEER_AUTH_FAILED; -#endif /* UNUSED */ - pcb->err_code = PPPERR_AUTHFAIL; - lcp_close(pcb, "peer refused to authenticate"); - return; - } - } -#endif /* PPP_SERVER */ - - new_phase(pcb, PPP_PHASE_AUTHENTICATE); - auth = 0; -#if PPP_SERVER -#if EAP_SUPPORT - if (go->neg_eap) { - eap_authpeer(pcb, PPP_OUR_NAME); - auth |= EAP_PEER; - } else -#endif /* EAP_SUPPORT */ -#if CHAP_SUPPORT - if (go->neg_chap) { - chap_auth_peer(pcb, PPP_OUR_NAME, CHAP_DIGEST(go->chap_mdtype)); - auth |= CHAP_PEER; - } else -#endif /* CHAP_SUPPORT */ -#if PAP_SUPPORT - if (go->neg_upap) { - upap_authpeer(pcb); - auth |= PAP_PEER; - } else -#endif /* PAP_SUPPORT */ - {} -#endif /* PPP_SERVER */ - -#if EAP_SUPPORT - if (ho->neg_eap) { - eap_authwithpeer(pcb, pcb->settings.user); - auth |= EAP_WITHPEER; - } else -#endif /* EAP_SUPPORT */ -#if CHAP_SUPPORT - if (ho->neg_chap) { - chap_auth_with_peer(pcb, pcb->settings.user, CHAP_DIGEST(ho->chap_mdtype)); - auth |= CHAP_WITHPEER; - } else -#endif /* CHAP_SUPPORT */ -#if PAP_SUPPORT - if (ho->neg_upap) { - upap_authwithpeer(pcb, pcb->settings.user, pcb->settings.passwd); - auth |= PAP_WITHPEER; - } else -#endif /* PAP_SUPPORT */ - {} - - pcb->auth_pending = auth; - pcb->auth_done = 0; - - if (!auth) -#endif /* PPP_AUTH_SUPPORT */ - network_phase(pcb); -} - -/* - * Proceed to the network phase. - */ -static void network_phase(ppp_pcb *pcb) { -#if CBCP_SUPPORT - ppp_pcb *pcb = &ppp_pcb_list[unit]; -#endif -#if 0 /* UNUSED */ - lcp_options *go = &lcp_gotoptions[unit]; -#endif /* UNUSED */ - -#if 0 /* UNUSED */ - /* Log calling number. */ - if (*remote_number) - ppp_notice("peer from calling number %q authorized", remote_number); -#endif /* UNUSED */ - -#if PPP_NOTIFY - /* - * If the peer had to authenticate, notify it now. - */ - if (0 -#if CHAP_SUPPORT - || go->neg_chap -#endif /* CHAP_SUPPORT */ -#if PAP_SUPPORT - || go->neg_upap -#endif /* PAP_SUPPORT */ -#if EAP_SUPPORT - || go->neg_eap -#endif /* EAP_SUPPORT */ - ) { - notify(auth_up_notifier, 0); - } -#endif /* PPP_NOTIFY */ - -#if CBCP_SUPPORT - /* - * If we negotiated callback, do it now. - */ - if (go->neg_cbcp) { - new_phase(pcb, PPP_PHASE_CALLBACK); - (*cbcp_protent.open)(pcb); - return; - } -#endif - -#if PPP_OPTIONS - /* - * Process extra options from the secrets file - */ - if (extra_options) { - options_from_list(extra_options, 1); - free_wordlist(extra_options); - extra_options = 0; - } -#endif /* PPP_OPTIONS */ - start_networks(pcb); -} - -void start_networks(ppp_pcb *pcb) { -#if CCP_SUPPORT || ECP_SUPPORT - int i; - const struct protent *protp; -#endif /* CCP_SUPPORT || ECP_SUPPORT */ - - new_phase(pcb, PPP_PHASE_NETWORK); - -#ifdef HAVE_MULTILINK - if (multilink) { - if (mp_join_bundle()) { - if (multilink_join_hook) - (*multilink_join_hook)(); - if (updetach && !nodetach) - detach(); - return; - } - } -#endif /* HAVE_MULTILINK */ - -#ifdef PPP_FILTER - if (!demand) - set_filters(&pass_filter, &active_filter); -#endif -#if CCP_SUPPORT || ECP_SUPPORT - /* Start CCP and ECP */ - for (i = 0; (protp = protocols[i]) != NULL; ++i) - if ( - (0 -#if ECP_SUPPORT - || protp->protocol == PPP_ECP -#endif /* ECP_SUPPORT */ -#if CCP_SUPPORT - || protp->protocol == PPP_CCP -#endif /* CCP_SUPPORT */ - ) - && protp->open != NULL) - (*protp->open)(pcb); -#endif /* CCP_SUPPORT || ECP_SUPPORT */ - - /* - * Bring up other network protocols iff encryption is not required. - */ - if (1 -#if ECP_SUPPORT - && !ecp_gotoptions[unit].required -#endif /* ECP_SUPPORT */ -#if MPPE_SUPPORT - && !pcb->ccp_gotoptions.mppe -#endif /* MPPE_SUPPORT */ - ) - continue_networks(pcb); -} - -void continue_networks(ppp_pcb *pcb) { - int i; - const struct protent *protp; - - /* - * Start the "real" network protocols. - */ - for (i = 0; (protp = protocols[i]) != NULL; ++i) - if (protp->protocol < 0xC000 -#if CCP_SUPPORT - && protp->protocol != PPP_CCP -#endif /* CCP_SUPPORT */ -#if ECP_SUPPORT - && protp->protocol != PPP_ECP -#endif /* ECP_SUPPORT */ - && protp->open != NULL) { - (*protp->open)(pcb); - ++pcb->num_np_open; - } - - if (pcb->num_np_open == 0) - /* nothing to do */ - lcp_close(pcb, "No network protocols running"); -} - -#if PPP_AUTH_SUPPORT -#if PPP_SERVER -/* - * auth_check_passwd - Check the user name and passwd against configuration. - * - * returns: - * 0: Authentication failed. - * 1: Authentication succeeded. - * In either case, msg points to an appropriate message and msglen to the message len. - */ -int auth_check_passwd(ppp_pcb *pcb, char *auser, int userlen, char *apasswd, int passwdlen, const char **msg, int *msglen) { - int secretuserlen; - int secretpasswdlen; - - if (pcb->settings.user && pcb->settings.passwd) { - secretuserlen = (int)strlen(pcb->settings.user); - secretpasswdlen = (int)strlen(pcb->settings.passwd); - if (secretuserlen == userlen - && secretpasswdlen == passwdlen - && !memcmp(auser, pcb->settings.user, userlen) - && !memcmp(apasswd, pcb->settings.passwd, passwdlen) ) { - *msg = "Login ok"; - *msglen = sizeof("Login ok")-1; - return 1; - } - } - - *msg = "Login incorrect"; - *msglen = sizeof("Login incorrect")-1; - return 0; -} - -/* - * The peer has failed to authenticate himself using `protocol'. - */ -void auth_peer_fail(ppp_pcb *pcb, int protocol) { - LWIP_UNUSED_ARG(protocol); - /* - * Authentication failure: take the link down - */ -#if 0 /* UNUSED */ - status = EXIT_PEER_AUTH_FAILED; -#endif /* UNUSED */ - pcb->err_code = PPPERR_AUTHFAIL; - lcp_close(pcb, "Authentication failed"); -} - -/* - * The peer has been successfully authenticated using `protocol'. - */ -void auth_peer_success(ppp_pcb *pcb, int protocol, int prot_flavor, const char *name, int namelen) { - int bit; -#ifndef HAVE_MULTILINK - LWIP_UNUSED_ARG(name); - LWIP_UNUSED_ARG(namelen); -#endif /* HAVE_MULTILINK */ - - switch (protocol) { -#if CHAP_SUPPORT - case PPP_CHAP: - bit = CHAP_PEER; - switch (prot_flavor) { - case CHAP_MD5: - bit |= CHAP_MD5_PEER; - break; -#if MSCHAP_SUPPORT - case CHAP_MICROSOFT: - bit |= CHAP_MS_PEER; - break; - case CHAP_MICROSOFT_V2: - bit |= CHAP_MS2_PEER; - break; -#endif /* MSCHAP_SUPPORT */ - default: - break; - } - break; -#endif /* CHAP_SUPPORT */ -#if PAP_SUPPORT - case PPP_PAP: - bit = PAP_PEER; - break; -#endif /* PAP_SUPPORT */ -#if EAP_SUPPORT - case PPP_EAP: - bit = EAP_PEER; - break; -#endif /* EAP_SUPPORT */ - default: - ppp_warn("auth_peer_success: unknown protocol %x", protocol); - return; - } - -#ifdef HAVE_MULTILINK - /* - * Save the authenticated name of the peer for later. - */ - if (namelen > (int)sizeof(pcb->peer_authname) - 1) - namelen = (int)sizeof(pcb->peer_authname) - 1; - MEMCPY(pcb->peer_authname, name, namelen); - pcb->peer_authname[namelen] = 0; -#endif /* HAVE_MULTILINK */ -#if 0 /* UNUSED */ - script_setenv("PEERNAME", , 0); -#endif /* UNUSED */ - - /* Save the authentication method for later. */ - pcb->auth_done |= bit; - - /* - * If there is no more authentication still to be done, - * proceed to the network (or callback) phase. - */ - if ((pcb->auth_pending &= ~bit) == 0) - network_phase(pcb); -} -#endif /* PPP_SERVER */ - -/* - * We have failed to authenticate ourselves to the peer using `protocol'. - */ -void auth_withpeer_fail(ppp_pcb *pcb, int protocol) { - LWIP_UNUSED_ARG(protocol); - /* - * We've failed to authenticate ourselves to our peer. - * - * Some servers keep sending CHAP challenges, but there - * is no point in persisting without any way to get updated - * authentication secrets. - * - * He'll probably take the link down, and there's not much - * we can do except wait for that. - */ - pcb->err_code = PPPERR_AUTHFAIL; - lcp_close(pcb, "Failed to authenticate ourselves to peer"); -} - -/* - * We have successfully authenticated ourselves with the peer using `protocol'. - */ -void auth_withpeer_success(ppp_pcb *pcb, int protocol, int prot_flavor) { - int bit; - const char *prot = ""; - - switch (protocol) { -#if CHAP_SUPPORT - case PPP_CHAP: - bit = CHAP_WITHPEER; - prot = "CHAP"; - switch (prot_flavor) { - case CHAP_MD5: - bit |= CHAP_MD5_WITHPEER; - break; -#if MSCHAP_SUPPORT - case CHAP_MICROSOFT: - bit |= CHAP_MS_WITHPEER; - break; - case CHAP_MICROSOFT_V2: - bit |= CHAP_MS2_WITHPEER; - break; -#endif /* MSCHAP_SUPPORT */ - default: - break; - } - break; -#endif /* CHAP_SUPPORT */ -#if PAP_SUPPORT - case PPP_PAP: - bit = PAP_WITHPEER; - prot = "PAP"; - break; -#endif /* PAP_SUPPORT */ -#if EAP_SUPPORT - case PPP_EAP: - bit = EAP_WITHPEER; - prot = "EAP"; - break; -#endif /* EAP_SUPPORT */ - default: - ppp_warn("auth_withpeer_success: unknown protocol %x", protocol); - bit = 0; - /* no break */ - } - - ppp_notice("%s authentication succeeded", prot); - - /* Save the authentication method for later. */ - pcb->auth_done |= bit; - - /* - * If there is no more authentication still being done, - * proceed to the network (or callback) phase. - */ - if ((pcb->auth_pending &= ~bit) == 0) - network_phase(pcb); -} -#endif /* PPP_AUTH_SUPPORT */ - - -/* - * np_up - a network protocol has come up. - */ -void np_up(ppp_pcb *pcb, int proto) { -#if PPP_IDLETIMELIMIT - int tlim; -#endif /* PPP_IDLETIMELIMIT */ - LWIP_UNUSED_ARG(proto); - - if (pcb->num_np_up == 0) { - /* - * At this point we consider that the link has come up successfully. - */ - new_phase(pcb, PPP_PHASE_RUNNING); - -#if PPP_IDLETIMELIMIT -#if 0 /* UNUSED */ - if (idle_time_hook != 0) - tlim = (*idle_time_hook)(NULL); - else -#endif /* UNUSED */ - tlim = pcb->settings.idle_time_limit; - if (tlim > 0) - TIMEOUT(check_idle, (void*)pcb, tlim); -#endif /* PPP_IDLETIMELIMIT */ - -#if PPP_MAXCONNECT - /* - * Set a timeout to close the connection once the maximum - * connect time has expired. - */ - if (pcb->settings.maxconnect > 0) - TIMEOUT(connect_time_expired, (void*)pcb, pcb->settings.maxconnect); -#endif /* PPP_MAXCONNECT */ - -#ifdef MAXOCTETS - if (maxoctets > 0) - TIMEOUT(check_maxoctets, NULL, maxoctets_timeout); -#endif - -#if 0 /* Unused */ - /* - * Detach now, if the updetach option was given. - */ - if (updetach && !nodetach) - detach(); -#endif /* Unused */ - } - ++pcb->num_np_up; -} - -/* - * np_down - a network protocol has gone down. - */ -void np_down(ppp_pcb *pcb, int proto) { - LWIP_UNUSED_ARG(proto); - if (--pcb->num_np_up == 0) { -#if PPP_IDLETIMELIMIT - UNTIMEOUT(check_idle, (void*)pcb); -#endif /* PPP_IDLETIMELIMIT */ -#if PPP_MAXCONNECT - UNTIMEOUT(connect_time_expired, NULL); -#endif /* PPP_MAXCONNECT */ -#ifdef MAXOCTETS - UNTIMEOUT(check_maxoctets, NULL); -#endif - new_phase(pcb, PPP_PHASE_NETWORK); - } -} - -/* - * np_finished - a network protocol has finished using the link. - */ -void np_finished(ppp_pcb *pcb, int proto) { - LWIP_UNUSED_ARG(proto); - if (--pcb->num_np_open <= 0) { - /* no further use for the link: shut up shop. */ - lcp_close(pcb, "No network protocols running"); - } -} - -#ifdef MAXOCTETS -static void -check_maxoctets(arg) - void *arg; -{ -#if PPP_STATS_SUPPORT - unsigned int used; - - update_link_stats(ifunit); - link_stats_valid=0; - - switch(maxoctets_dir) { - case PPP_OCTETS_DIRECTION_IN: - used = link_stats.bytes_in; - break; - case PPP_OCTETS_DIRECTION_OUT: - used = link_stats.bytes_out; - break; - case PPP_OCTETS_DIRECTION_MAXOVERAL: - case PPP_OCTETS_DIRECTION_MAXSESSION: - used = (link_stats.bytes_in > link_stats.bytes_out) ? link_stats.bytes_in : link_stats.bytes_out; - break; - default: - used = link_stats.bytes_in+link_stats.bytes_out; - break; - } - if (used > maxoctets) { - ppp_notice("Traffic limit reached. Limit: %u Used: %u", maxoctets, used); - status = EXIT_TRAFFIC_LIMIT; - lcp_close(pcb, "Traffic limit"); -#if 0 /* UNUSED */ - need_holdoff = 0; -#endif /* UNUSED */ - } else { - TIMEOUT(check_maxoctets, NULL, maxoctets_timeout); - } -#endif /* PPP_STATS_SUPPORT */ -} -#endif /* MAXOCTETS */ - -#if PPP_IDLETIMELIMIT -/* - * check_idle - check whether the link has been idle for long - * enough that we can shut it down. - */ -static void check_idle(void *arg) { - ppp_pcb *pcb = (ppp_pcb*)arg; - struct ppp_idle idle; - time_t itime; - int tlim; - - if (!get_idle_time(pcb, &idle)) - return; -#if 0 /* UNUSED */ - if (idle_time_hook != 0) { - tlim = idle_time_hook(&idle); - } else { -#endif /* UNUSED */ - itime = LWIP_MIN(idle.xmit_idle, idle.recv_idle); - tlim = pcb->settings.idle_time_limit - itime; -#if 0 /* UNUSED */ - } -#endif /* UNUSED */ - if (tlim <= 0) { - /* link is idle: shut it down. */ - ppp_notice("Terminating connection due to lack of activity."); - pcb->err_code = PPPERR_IDLETIMEOUT; - lcp_close(pcb, "Link inactive"); -#if 0 /* UNUSED */ - need_holdoff = 0; -#endif /* UNUSED */ - } else { - TIMEOUT(check_idle, (void*)pcb, tlim); - } -} -#endif /* PPP_IDLETIMELIMIT */ - -#if PPP_MAXCONNECT -/* - * connect_time_expired - log a message and close the connection. - */ -static void connect_time_expired(void *arg) { - ppp_pcb *pcb = (ppp_pcb*)arg; - ppp_info("Connect time expired"); - pcb->err_code = PPPERR_CONNECTTIME; - lcp_close(pcb, "Connect time expired"); /* Close connection */ -} -#endif /* PPP_MAXCONNECT */ - -#if PPP_OPTIONS -/* - * auth_check_options - called to check authentication options. - */ -void -auth_check_options() -{ - lcp_options *wo = &lcp_wantoptions[0]; - int can_auth; - int lacks_ip; - - /* Default our_name to hostname, and user to our_name */ - if (our_name[0] == 0 || usehostname) - strlcpy(our_name, hostname, sizeof(our_name)); - /* If a blank username was explicitly given as an option, trust - the user and don't use our_name */ - if (ppp_settings.user[0] == 0 && !explicit_user) - strlcpy(ppp_settings.user, our_name, sizeof(ppp_settings.user)); - - /* - * If we have a default route, require the peer to authenticate - * unless the noauth option was given or the real user is root. - */ - if (!auth_required && !allow_any_ip && have_route_to(0) && !privileged) { - auth_required = 1; - default_auth = 1; - } - -#if CHAP_SUPPORT - /* If we selected any CHAP flavors, we should probably negotiate it. :-) */ - if (wo->chap_mdtype) - wo->neg_chap = 1; -#endif /* CHAP_SUPPORT */ - - /* If authentication is required, ask peer for CHAP, PAP, or EAP. */ - if (auth_required) { - allow_any_ip = 0; - if (1 -#if CHAP_SUPPORT - && !wo->neg_chap -#endif /* CHAP_SUPPORT */ -#if PAP_SUPPORT - && !wo->neg_upap -#endif /* PAP_SUPPORT */ -#if EAP_SUPPORT - && !wo->neg_eap -#endif /* EAP_SUPPORT */ - ) { -#if CHAP_SUPPORT - wo->neg_chap = CHAP_MDTYPE_SUPPORTED != MDTYPE_NONE; - wo->chap_mdtype = CHAP_MDTYPE_SUPPORTED; -#endif /* CHAP_SUPPORT */ -#if PAP_SUPPORT - wo->neg_upap = 1; -#endif /* PAP_SUPPORT */ -#if EAP_SUPPORT - wo->neg_eap = 1; -#endif /* EAP_SUPPORT */ - } - } else { -#if CHAP_SUPPORT - wo->neg_chap = 0; - wo->chap_mdtype = MDTYPE_NONE; -#endif /* CHAP_SUPPORT */ -#if PAP_SUPPORT - wo->neg_upap = 0; -#endif /* PAP_SUPPORT */ -#if EAP_SUPPORT - wo->neg_eap = 0; -#endif /* EAP_SUPPORT */ - } - - /* - * Check whether we have appropriate secrets to use - * to authenticate the peer. Note that EAP can authenticate by way - * of a CHAP-like exchanges as well as SRP. - */ - lacks_ip = 0; -#if PAP_SUPPORT - can_auth = wo->neg_upap && (uselogin || have_pap_secret(&lacks_ip)); -#else - can_auth = 0; -#endif /* PAP_SUPPORT */ - if (!can_auth && (0 -#if CHAP_SUPPORT - || wo->neg_chap -#endif /* CHAP_SUPPORT */ -#if EAP_SUPPORT - || wo->neg_eap -#endif /* EAP_SUPPORT */ - )) { -#if CHAP_SUPPORT - can_auth = have_chap_secret((explicit_remote? remote_name: NULL), - our_name, 1, &lacks_ip); -#else - can_auth = 0; -#endif - } - if (!can_auth -#if EAP_SUPPORT - && wo->neg_eap -#endif /* EAP_SUPPORT */ - ) { - can_auth = have_srp_secret((explicit_remote? remote_name: NULL), - our_name, 1, &lacks_ip); - } - - if (auth_required && !can_auth && noauth_addrs == NULL) { - if (default_auth) { - option_error( -"By default the remote system is required to authenticate itself"); - option_error( -"(because this system has a default route to the internet)"); - } else if (explicit_remote) - option_error( -"The remote system (%s) is required to authenticate itself", - remote_name); - else - option_error( -"The remote system is required to authenticate itself"); - option_error( -"but I couldn't find any suitable secret (password) for it to use to do so."); - if (lacks_ip) - option_error( -"(None of the available passwords would let it use an IP address.)"); - - exit(1); - } - - /* - * Early check for remote number authorization. - */ - if (!auth_number()) { - ppp_warn("calling number %q is not authorized", remote_number); - exit(EXIT_CNID_AUTH_FAILED); - } -} -#endif /* PPP_OPTIONS */ - -#if 0 /* UNUSED */ -/* - * auth_reset - called when LCP is starting negotiations to recheck - * authentication options, i.e. whether we have appropriate secrets - * to use for authenticating ourselves and/or the peer. - */ -void -auth_reset(unit) - int unit; -{ - lcp_options *go = &lcp_gotoptions[unit]; - lcp_options *ao = &lcp_allowoptions[unit]; - int hadchap; - - hadchap = -1; - ao->neg_upap = !refuse_pap && (passwd[0] != 0 || get_pap_passwd(NULL)); - ao->neg_chap = (!refuse_chap || !refuse_mschap || !refuse_mschap_v2) - && (passwd[0] != 0 || - (hadchap = have_chap_secret(user, (explicit_remote? remote_name: - NULL), 0, NULL))); - ao->neg_eap = !refuse_eap && ( - passwd[0] != 0 || - (hadchap == 1 || (hadchap == -1 && have_chap_secret(user, - (explicit_remote? remote_name: NULL), 0, NULL))) || - have_srp_secret(user, (explicit_remote? remote_name: NULL), 0, NULL)); - - hadchap = -1; - if (go->neg_upap && !uselogin && !have_pap_secret(NULL)) - go->neg_upap = 0; - if (go->neg_chap) { - if (!(hadchap = have_chap_secret((explicit_remote? remote_name: NULL), - our_name, 1, NULL))) - go->neg_chap = 0; - } - if (go->neg_eap && - (hadchap == 0 || (hadchap == -1 && - !have_chap_secret((explicit_remote? remote_name: NULL), our_name, - 1, NULL))) && - !have_srp_secret((explicit_remote? remote_name: NULL), our_name, 1, - NULL)) - go->neg_eap = 0; -} - -/* - * check_passwd - Check the user name and passwd against the PAP secrets - * file. If requested, also check against the system password database, - * and login the user if OK. - * - * returns: - * UPAP_AUTHNAK: Authentication failed. - * UPAP_AUTHACK: Authentication succeeded. - * In either case, msg points to an appropriate message. - */ -int -check_passwd(unit, auser, userlen, apasswd, passwdlen, msg) - int unit; - char *auser; - int userlen; - char *apasswd; - int passwdlen; - char **msg; -{ - return UPAP_AUTHNAK; - int ret; - char *filename; - FILE *f; - struct wordlist *addrs = NULL, *opts = NULL; - char passwd[256], user[256]; - char secret[MAXWORDLEN]; - static int attempts = 0; - - /* - * Make copies of apasswd and auser, then null-terminate them. - * If there are unprintable characters in the password, make - * them visible. - */ - slprintf(ppp_settings.passwd, sizeof(ppp_settings.passwd), "%.*v", passwdlen, apasswd); - slprintf(ppp_settings.user, sizeof(ppp_settings.user), "%.*v", userlen, auser); - *msg = ""; - - /* - * Check if a plugin wants to handle this. - */ - if (pap_auth_hook) { - ret = (*pap_auth_hook)(ppp_settings.user, ppp_settings.passwd, msg, &addrs, &opts); - if (ret >= 0) { - /* note: set_allowed_addrs() saves opts (but not addrs): - don't free it! */ - if (ret) - set_allowed_addrs(unit, addrs, opts); - else if (opts != 0) - free_wordlist(opts); - if (addrs != 0) - free_wordlist(addrs); - BZERO(ppp_settings.passwd, sizeof(ppp_settings.passwd)); - return ret? UPAP_AUTHACK: UPAP_AUTHNAK; - } - } - - /* - * Open the file of pap secrets and scan for a suitable secret - * for authenticating this user. - */ - filename = _PATH_UPAPFILE; - addrs = opts = NULL; - ret = UPAP_AUTHNAK; - f = fopen(filename, "r"); - if (f == NULL) { - ppp_error("Can't open PAP password file %s: %m", filename); - - } else { - check_access(f, filename); - if (scan_authfile(f, ppp_settings.user, our_name, secret, &addrs, &opts, filename, 0) < 0) { - ppp_warn("no PAP secret found for %s", user); - } else { - /* - * If the secret is "@login", it means to check - * the password against the login database. - */ - int login_secret = strcmp(secret, "@login") == 0; - ret = UPAP_AUTHACK; - if (uselogin || login_secret) { - /* login option or secret is @login */ - if (session_full(ppp_settings.user, ppp_settings.passwd, devnam, msg) == 0) { - ret = UPAP_AUTHNAK; - } - } else if (session_mgmt) { - if (session_check(ppp_settings.user, NULL, devnam, NULL) == 0) { - ppp_warn("Peer %q failed PAP Session verification", user); - ret = UPAP_AUTHNAK; - } - } - if (secret[0] != 0 && !login_secret) { - /* password given in pap-secrets - must match */ - if ((cryptpap || strcmp(ppp_settings.passwd, secret) != 0) - && strcmp(crypt(ppp_settings.passwd, secret), secret) != 0) - ret = UPAP_AUTHNAK; - } - } - fclose(f); - } - - if (ret == UPAP_AUTHNAK) { - if (**msg == 0) - *msg = "Login incorrect"; - /* - * XXX can we ever get here more than once?? - * Frustrate passwd stealer programs. - * Allow 10 tries, but start backing off after 3 (stolen from login). - * On 10'th, drop the connection. - */ - if (attempts++ >= 10) { - ppp_warn("%d LOGIN FAILURES ON %s, %s", attempts, devnam, user); - lcp_close(pcb, "login failed"); - } - if (attempts > 3) - sleep((u_int) (attempts - 3) * 5); - if (opts != NULL) - free_wordlist(opts); - - } else { - attempts = 0; /* Reset count */ - if (**msg == 0) - *msg = "Login ok"; - set_allowed_addrs(unit, addrs, opts); - } - - if (addrs != NULL) - free_wordlist(addrs); - BZERO(ppp_settings.passwd, sizeof(ppp_settings.passwd)); - BZERO(secret, sizeof(secret)); - - return ret; -} - -/* - * null_login - Check if a username of "" and a password of "" are - * acceptable, and iff so, set the list of acceptable IP addresses - * and return 1. - */ -static int -null_login(unit) - int unit; -{ - char *filename; - FILE *f; - int i, ret; - struct wordlist *addrs, *opts; - char secret[MAXWORDLEN]; - - /* - * Check if a plugin wants to handle this. - */ - ret = -1; - if (null_auth_hook) - ret = (*null_auth_hook)(&addrs, &opts); - - /* - * Open the file of pap secrets and scan for a suitable secret. - */ - if (ret <= 0) { - filename = _PATH_UPAPFILE; - addrs = NULL; - f = fopen(filename, "r"); - if (f == NULL) - return 0; - check_access(f, filename); - - i = scan_authfile(f, "", our_name, secret, &addrs, &opts, filename, 0); - ret = i >= 0 && secret[0] == 0; - BZERO(secret, sizeof(secret)); - fclose(f); - } - - if (ret) - set_allowed_addrs(unit, addrs, opts); - else if (opts != 0) - free_wordlist(opts); - if (addrs != 0) - free_wordlist(addrs); - - return ret; -} - -/* - * get_pap_passwd - get a password for authenticating ourselves with - * our peer using PAP. Returns 1 on success, 0 if no suitable password - * could be found. - * Assumes passwd points to MAXSECRETLEN bytes of space (if non-null). - */ -static int -get_pap_passwd(passwd) - char *passwd; -{ - char *filename; - FILE *f; - int ret; - char secret[MAXWORDLEN]; - - /* - * Check whether a plugin wants to supply this. - */ - if (pap_passwd_hook) { - ret = (*pap_passwd_hook)(ppp_settings,user, ppp_settings.passwd); - if (ret >= 0) - return ret; - } - - filename = _PATH_UPAPFILE; - f = fopen(filename, "r"); - if (f == NULL) - return 0; - check_access(f, filename); - ret = scan_authfile(f, user, - (remote_name[0]? remote_name: NULL), - secret, NULL, NULL, filename, 0); - fclose(f); - if (ret < 0) - return 0; - if (passwd != NULL) - strlcpy(passwd, secret, MAXSECRETLEN); - BZERO(secret, sizeof(secret)); - return 1; -} - -/* - * have_pap_secret - check whether we have a PAP file with any - * secrets that we could possibly use for authenticating the peer. - */ -static int -have_pap_secret(lacks_ipp) - int *lacks_ipp; -{ - FILE *f; - int ret; - char *filename; - struct wordlist *addrs; - - /* let the plugin decide, if there is one */ - if (pap_check_hook) { - ret = (*pap_check_hook)(); - if (ret >= 0) - return ret; - } - - filename = _PATH_UPAPFILE; - f = fopen(filename, "r"); - if (f == NULL) - return 0; - - ret = scan_authfile(f, (explicit_remote? remote_name: NULL), our_name, - NULL, &addrs, NULL, filename, 0); - fclose(f); - if (ret >= 0 && !some_ip_ok(addrs)) { - if (lacks_ipp != 0) - *lacks_ipp = 1; - ret = -1; - } - if (addrs != 0) - free_wordlist(addrs); - - return ret >= 0; -} - -/* - * have_chap_secret - check whether we have a CHAP file with a - * secret that we could possibly use for authenticating `client' - * on `server'. Either can be the null string, meaning we don't - * know the identity yet. - */ -static int -have_chap_secret(client, server, need_ip, lacks_ipp) - char *client; - char *server; - int need_ip; - int *lacks_ipp; -{ - FILE *f; - int ret; - char *filename; - struct wordlist *addrs; - - if (chap_check_hook) { - ret = (*chap_check_hook)(); - if (ret >= 0) { - return ret; - } - } - - filename = _PATH_CHAPFILE; - f = fopen(filename, "r"); - if (f == NULL) - return 0; - - if (client != NULL && client[0] == 0) - client = NULL; - else if (server != NULL && server[0] == 0) - server = NULL; - - ret = scan_authfile(f, client, server, NULL, &addrs, NULL, filename, 0); - fclose(f); - if (ret >= 0 && need_ip && !some_ip_ok(addrs)) { - if (lacks_ipp != 0) - *lacks_ipp = 1; - ret = -1; - } - if (addrs != 0) - free_wordlist(addrs); - - return ret >= 0; -} - -/* - * have_srp_secret - check whether we have a SRP file with a - * secret that we could possibly use for authenticating `client' - * on `server'. Either can be the null string, meaning we don't - * know the identity yet. - */ -static int -have_srp_secret(client, server, need_ip, lacks_ipp) - char *client; - char *server; - int need_ip; - int *lacks_ipp; -{ - FILE *f; - int ret; - char *filename; - struct wordlist *addrs; - - filename = _PATH_SRPFILE; - f = fopen(filename, "r"); - if (f == NULL) - return 0; - - if (client != NULL && client[0] == 0) - client = NULL; - else if (server != NULL && server[0] == 0) - server = NULL; - - ret = scan_authfile(f, client, server, NULL, &addrs, NULL, filename, 0); - fclose(f); - if (ret >= 0 && need_ip && !some_ip_ok(addrs)) { - if (lacks_ipp != 0) - *lacks_ipp = 1; - ret = -1; - } - if (addrs != 0) - free_wordlist(addrs); - - return ret >= 0; -} -#endif /* UNUSED */ - -#if PPP_AUTH_SUPPORT -/* - * get_secret - open the CHAP secret file and return the secret - * for authenticating the given client on the given server. - * (We could be either client or server). - */ -int get_secret(ppp_pcb *pcb, const char *client, const char *server, char *secret, int *secret_len, int am_server) { - int len; - LWIP_UNUSED_ARG(server); - LWIP_UNUSED_ARG(am_server); - - if (!client || !client[0] || !pcb->settings.user || !pcb->settings.passwd || strcmp(client, pcb->settings.user)) { - return 0; - } - - len = (int)strlen(pcb->settings.passwd); - if (len > MAXSECRETLEN) { - ppp_error("Secret for %s on %s is too long", client, server); - len = MAXSECRETLEN; - } - - MEMCPY(secret, pcb->settings.passwd, len); - *secret_len = len; - return 1; - -#if 0 /* UNUSED */ - FILE *f; - int ret, len; - char *filename; - struct wordlist *addrs, *opts; - char secbuf[MAXWORDLEN]; - struct wordlist *addrs; - addrs = NULL; - - if (!am_server && ppp_settings.passwd[0] != 0) { - strlcpy(secbuf, ppp_settings.passwd, sizeof(secbuf)); - } else if (!am_server && chap_passwd_hook) { - if ( (*chap_passwd_hook)(client, secbuf) < 0) { - ppp_error("Unable to obtain CHAP password for %s on %s from plugin", - client, server); - return 0; - } - } else { - filename = _PATH_CHAPFILE; - addrs = NULL; - secbuf[0] = 0; - - f = fopen(filename, "r"); - if (f == NULL) { - ppp_error("Can't open chap secret file %s: %m", filename); - return 0; - } - check_access(f, filename); - - ret = scan_authfile(f, client, server, secbuf, &addrs, &opts, filename, 0); - fclose(f); - if (ret < 0) - return 0; - - if (am_server) - set_allowed_addrs(unit, addrs, opts); - else if (opts != 0) - free_wordlist(opts); - if (addrs != 0) - free_wordlist(addrs); - } - - len = strlen(secbuf); - if (len > MAXSECRETLEN) { - ppp_error("Secret for %s on %s is too long", client, server); - len = MAXSECRETLEN; - } - MEMCPY(secret, secbuf, len); - BZERO(secbuf, sizeof(secbuf)); - *secret_len = len; - - return 1; -#endif /* UNUSED */ -} -#endif /* PPP_AUTH_SUPPORT */ - - -#if 0 /* UNUSED */ -/* - * get_srp_secret - open the SRP secret file and return the secret - * for authenticating the given client on the given server. - * (We could be either client or server). - */ -int -get_srp_secret(unit, client, server, secret, am_server) - int unit; - char *client; - char *server; - char *secret; - int am_server; -{ - FILE *fp; - int ret; - char *filename; - struct wordlist *addrs, *opts; - - if (!am_server && ppp_settings.passwd[0] != '\0') { - strlcpy(secret, ppp_settings.passwd, MAXWORDLEN); - } else { - filename = _PATH_SRPFILE; - addrs = NULL; - - fp = fopen(filename, "r"); - if (fp == NULL) { - ppp_error("Can't open srp secret file %s: %m", filename); - return 0; - } - check_access(fp, filename); - - secret[0] = '\0'; - ret = scan_authfile(fp, client, server, secret, &addrs, &opts, - filename, am_server); - fclose(fp); - if (ret < 0) - return 0; - - if (am_server) - set_allowed_addrs(unit, addrs, opts); - else if (opts != NULL) - free_wordlist(opts); - if (addrs != NULL) - free_wordlist(addrs); - } - - return 1; -} - -/* - * set_allowed_addrs() - set the list of allowed addresses. - * Also looks for `--' indicating options to apply for this peer - * and leaves the following words in extra_options. - */ -static void -set_allowed_addrs(unit, addrs, opts) - int unit; - struct wordlist *addrs; - struct wordlist *opts; -{ - int n; - struct wordlist *ap, **plink; - struct permitted_ip *ip; - char *ptr_word, *ptr_mask; - struct hostent *hp; - struct netent *np; - u32_t a, mask, ah, offset; - struct ipcp_options *wo = &ipcp_wantoptions[unit]; - u32_t suggested_ip = 0; - - if (addresses[unit] != NULL) - free(addresses[unit]); - addresses[unit] = NULL; - if (extra_options != NULL) - free_wordlist(extra_options); - extra_options = opts; - - /* - * Count the number of IP addresses given. - */ - n = wordlist_count(addrs) + wordlist_count(noauth_addrs); - if (n == 0) - return; - ip = (struct permitted_ip *) malloc((n + 1) * sizeof(struct permitted_ip)); - if (ip == 0) - return; - - /* temporarily append the noauth_addrs list to addrs */ - for (plink = &addrs; *plink != NULL; plink = &(*plink)->next) - ; - *plink = noauth_addrs; - - n = 0; - for (ap = addrs; ap != NULL; ap = ap->next) { - /* "-" means no addresses authorized, "*" means any address allowed */ - ptr_word = ap->word; - if (strcmp(ptr_word, "-") == 0) - break; - if (strcmp(ptr_word, "*") == 0) { - ip[n].permit = 1; - ip[n].base = ip[n].mask = 0; - ++n; - break; - } - - ip[n].permit = 1; - if (*ptr_word == '!') { - ip[n].permit = 0; - ++ptr_word; - } - - mask = ~ (u32_t) 0; - offset = 0; - ptr_mask = strchr (ptr_word, '/'); - if (ptr_mask != NULL) { - int bit_count; - char *endp; - - bit_count = (int) strtol (ptr_mask+1, &endp, 10); - if (bit_count <= 0 || bit_count > 32) { - ppp_warn("invalid address length %v in auth. address list", - ptr_mask+1); - continue; - } - bit_count = 32 - bit_count; /* # bits in host part */ - if (*endp == '+') { - offset = ifunit + 1; - ++endp; - } - if (*endp != 0) { - ppp_warn("invalid address length syntax: %v", ptr_mask+1); - continue; - } - *ptr_mask = '\0'; - mask <<= bit_count; - } - - hp = gethostbyname(ptr_word); - if (hp != NULL && hp->h_addrtype == AF_INET) { - a = *(u32_t *)hp->h_addr; - } else { - np = getnetbyname (ptr_word); - if (np != NULL && np->n_addrtype == AF_INET) { - a = lwip_htonl ((u32_t)np->n_net); - if (ptr_mask == NULL) { - /* calculate appropriate mask for net */ - ah = lwip_ntohl(a); - if (IN_CLASSA(ah)) - mask = IN_CLASSA_NET; - else if (IN_CLASSB(ah)) - mask = IN_CLASSB_NET; - else if (IN_CLASSC(ah)) - mask = IN_CLASSC_NET; - } - } else { - a = inet_addr (ptr_word); - } - } - - if (ptr_mask != NULL) - *ptr_mask = '/'; - - if (a == (u32_t)-1L) { - ppp_warn("unknown host %s in auth. address list", ap->word); - continue; - } - if (offset != 0) { - if (offset >= ~mask) { - ppp_warn("interface unit %d too large for subnet %v", - ifunit, ptr_word); - continue; - } - a = lwip_htonl((lwip_ntohl(a) & mask) + offset); - mask = ~(u32_t)0; - } - ip[n].mask = lwip_htonl(mask); - ip[n].base = a & ip[n].mask; - ++n; - if (~mask == 0 && suggested_ip == 0) - suggested_ip = a; - } - *plink = NULL; - - ip[n].permit = 0; /* make the last entry forbid all addresses */ - ip[n].base = 0; /* to terminate the list */ - ip[n].mask = 0; - - addresses[unit] = ip; - - /* - * If the address given for the peer isn't authorized, or if - * the user hasn't given one, AND there is an authorized address - * which is a single host, then use that if we find one. - */ - if (suggested_ip != 0 - && (wo->hisaddr == 0 || !auth_ip_addr(unit, wo->hisaddr))) { - wo->hisaddr = suggested_ip; - /* - * Do we insist on this address? No, if there are other - * addresses authorized than the suggested one. - */ - if (n > 1) - wo->accept_remote = 1; - } -} - -/* - * auth_ip_addr - check whether the peer is authorized to use - * a given IP address. Returns 1 if authorized, 0 otherwise. - */ -int -auth_ip_addr(unit, addr) - int unit; - u32_t addr; -{ - int ok; - - /* don't allow loopback or multicast address */ - if (bad_ip_adrs(addr)) - return 0; - - if (allowed_address_hook) { - ok = allowed_address_hook(addr); - if (ok >= 0) return ok; - } - - if (addresses[unit] != NULL) { - ok = ip_addr_check(addr, addresses[unit]); - if (ok >= 0) - return ok; - } - - if (auth_required) - return 0; /* no addresses authorized */ - return allow_any_ip || privileged || !have_route_to(addr); -} - -static int -ip_addr_check(addr, addrs) - u32_t addr; - struct permitted_ip *addrs; -{ - for (; ; ++addrs) - if ((addr & addrs->mask) == addrs->base) - return addrs->permit; -} - -/* - * bad_ip_adrs - return 1 if the IP address is one we don't want - * to use, such as an address in the loopback net or a multicast address. - * addr is in network byte order. - */ -int -bad_ip_adrs(addr) - u32_t addr; -{ - addr = lwip_ntohl(addr); - return (addr >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET - || IN_MULTICAST(addr) || IN_BADCLASS(addr); -} - -/* - * some_ip_ok - check a wordlist to see if it authorizes any - * IP address(es). - */ -static int -some_ip_ok(addrs) - struct wordlist *addrs; -{ - for (; addrs != 0; addrs = addrs->next) { - if (addrs->word[0] == '-') - break; - if (addrs->word[0] != '!') - return 1; /* some IP address is allowed */ - } - return 0; -} - -/* - * auth_number - check whether the remote number is allowed to connect. - * Returns 1 if authorized, 0 otherwise. - */ -int -auth_number() -{ - struct wordlist *wp = permitted_numbers; - int l; - - /* Allow all if no authorization list. */ - if (!wp) - return 1; - - /* Allow if we have a match in the authorization list. */ - while (wp) { - /* trailing '*' wildcard */ - l = strlen(wp->word); - if ((wp->word)[l - 1] == '*') - l--; - if (!strncasecmp(wp->word, remote_number, l)) - return 1; - wp = wp->next; - } - - return 0; -} - -/* - * check_access - complain if a secret file has too-liberal permissions. - */ -static void -check_access(f, filename) - FILE *f; - char *filename; -{ - struct stat sbuf; - - if (fstat(fileno(f), &sbuf) < 0) { - ppp_warn("cannot stat secret file %s: %m", filename); - } else if ((sbuf.st_mode & (S_IRWXG | S_IRWXO)) != 0) { - ppp_warn("Warning - secret file %s has world and/or group access", - filename); - } -} - -/* - * scan_authfile - Scan an authorization file for a secret suitable - * for authenticating `client' on `server'. The return value is -1 - * if no secret is found, otherwise >= 0. The return value has - * NONWILD_CLIENT set if the secret didn't have "*" for the client, and - * NONWILD_SERVER set if the secret didn't have "*" for the server. - * Any following words on the line up to a "--" (i.e. address authorization - * info) are placed in a wordlist and returned in *addrs. Any - * following words (extra options) are placed in a wordlist and - * returned in *opts. - * We assume secret is NULL or points to MAXWORDLEN bytes of space. - * Flags are non-zero if we need two colons in the secret in order to - * match. - */ -static int -scan_authfile(f, client, server, secret, addrs, opts, filename, flags) - FILE *f; - char *client; - char *server; - char *secret; - struct wordlist **addrs; - struct wordlist **opts; - char *filename; - int flags; -{ - int newline, xxx; - int got_flag, best_flag; - FILE *sf; - struct wordlist *ap, *addr_list, *alist, **app; - char word[MAXWORDLEN]; - char atfile[MAXWORDLEN]; - char lsecret[MAXWORDLEN]; - char *cp; - - if (addrs != NULL) - *addrs = NULL; - if (opts != NULL) - *opts = NULL; - addr_list = NULL; - if (!getword(f, word, &newline, filename)) - return -1; /* file is empty??? */ - newline = 1; - best_flag = -1; - for (;;) { - /* - * Skip until we find a word at the start of a line. - */ - while (!newline && getword(f, word, &newline, filename)) - ; - if (!newline) - break; /* got to end of file */ - - /* - * Got a client - check if it's a match or a wildcard. - */ - got_flag = 0; - if (client != NULL && strcmp(word, client) != 0 && !ISWILD(word)) { - newline = 0; - continue; - } - if (!ISWILD(word)) - got_flag = NONWILD_CLIENT; - - /* - * Now get a server and check if it matches. - */ - if (!getword(f, word, &newline, filename)) - break; - if (newline) - continue; - if (!ISWILD(word)) { - if (server != NULL && strcmp(word, server) != 0) - continue; - got_flag |= NONWILD_SERVER; - } - - /* - * Got some sort of a match - see if it's better than what - * we have already. - */ - if (got_flag <= best_flag) - continue; - - /* - * Get the secret. - */ - if (!getword(f, word, &newline, filename)) - break; - if (newline) - continue; - - /* - * SRP-SHA1 authenticator should never be reading secrets from - * a file. (Authenticatee may, though.) - */ - if (flags && ((cp = strchr(word, ':')) == NULL || - strchr(cp + 1, ':') == NULL)) - continue; - - if (secret != NULL) { - /* - * Special syntax: @/pathname means read secret from file. - */ - if (word[0] == '@' && word[1] == '/') { - strlcpy(atfile, word+1, sizeof(atfile)); - if ((sf = fopen(atfile, "r")) == NULL) { - ppp_warn("can't open indirect secret file %s", atfile); - continue; - } - check_access(sf, atfile); - if (!getword(sf, word, &xxx, atfile)) { - ppp_warn("no secret in indirect secret file %s", atfile); - fclose(sf); - continue; - } - fclose(sf); - } - strlcpy(lsecret, word, sizeof(lsecret)); - } - - /* - * Now read address authorization info and make a wordlist. - */ - app = &alist; - for (;;) { - if (!getword(f, word, &newline, filename) || newline) - break; - ap = (struct wordlist *) - malloc(sizeof(struct wordlist) + strlen(word) + 1); - if (ap == NULL) - novm("authorized addresses"); - ap->word = (char *) (ap + 1); - strcpy(ap->word, word); - *app = ap; - app = &ap->next; - } - *app = NULL; - - /* - * This is the best so far; remember it. - */ - best_flag = got_flag; - if (addr_list) - free_wordlist(addr_list); - addr_list = alist; - if (secret != NULL) - strlcpy(secret, lsecret, MAXWORDLEN); - - if (!newline) - break; - } - - /* scan for a -- word indicating the start of options */ - for (app = &addr_list; (ap = *app) != NULL; app = &ap->next) - if (strcmp(ap->word, "--") == 0) - break; - /* ap = start of options */ - if (ap != NULL) { - ap = ap->next; /* first option */ - free(*app); /* free the "--" word */ - *app = NULL; /* terminate addr list */ - } - if (opts != NULL) - *opts = ap; - else if (ap != NULL) - free_wordlist(ap); - if (addrs != NULL) - *addrs = addr_list; - else if (addr_list != NULL) - free_wordlist(addr_list); - - return best_flag; -} - -/* - * wordlist_count - return the number of items in a wordlist - */ -static int -wordlist_count(wp) - struct wordlist *wp; -{ - int n; - - for (n = 0; wp != NULL; wp = wp->next) - ++n; - return n; -} - -/* - * free_wordlist - release memory allocated for a wordlist. - */ -static void -free_wordlist(wp) - struct wordlist *wp; -{ - struct wordlist *next; - - while (wp != NULL) { - next = wp->next; - free(wp); - wp = next; - } -} -#endif /* UNUSED */ - -#endif /* PPP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.c b/Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.c deleted file mode 100644 index f8519eb..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.c +++ /dev/null @@ -1,1740 +0,0 @@ -/* - * ccp.c - PPP Compression Control Protocol. - * - * Copyright (c) 1994-2002 Paul Mackerras. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. The name(s) of the authors of this software must not be used to - * endorse or promote products derived from this software without - * prior written permission. - * - * 3. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Paul Mackerras - * ". - * - * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY - * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && CCP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#include -#include - -#include "netif/ppp/ppp_impl.h" - -#include "netif/ppp/fsm.h" -#include "netif/ppp/ccp.h" - -#if MPPE_SUPPORT -#include "netif/ppp/lcp.h" /* lcp_close(), lcp_fsm */ -#include "netif/ppp/mppe.h" /* mppe_init() */ -#endif /* MPPE_SUPPORT */ - -/* - * Unfortunately there is a bug in zlib which means that using a - * size of 8 (window size = 256) for Deflate compression will cause - * buffer overruns and kernel crashes in the deflate module. - * Until this is fixed we only accept sizes in the range 9 .. 15. - * Thanks to James Carlson for pointing this out. - */ -#define DEFLATE_MIN_WORKS 9 - -/* - * Command-line options. - */ -#if PPP_OPTIONS -static int setbsdcomp (char **); -static int setdeflate (char **); -static char bsd_value[8]; -static char deflate_value[8]; - -/* - * Option variables. - */ -#if MPPE_SUPPORT -bool refuse_mppe_stateful = 1; /* Allow stateful mode? */ -#endif /* MPPE_SUPPORT */ - -static option_t ccp_option_list[] = { - { "noccp", o_bool, &ccp_protent.enabled_flag, - "Disable CCP negotiation" }, - { "-ccp", o_bool, &ccp_protent.enabled_flag, - "Disable CCP negotiation", OPT_ALIAS }, - - { "bsdcomp", o_special, (void *)setbsdcomp, - "Request BSD-Compress packet compression", - OPT_PRIO | OPT_A2STRVAL | OPT_STATIC, bsd_value }, - { "nobsdcomp", o_bool, &ccp_wantoptions[0].bsd_compress, - "don't allow BSD-Compress", OPT_PRIOSUB | OPT_A2CLR, - &ccp_allowoptions[0].bsd_compress }, - { "-bsdcomp", o_bool, &ccp_wantoptions[0].bsd_compress, - "don't allow BSD-Compress", OPT_ALIAS | OPT_PRIOSUB | OPT_A2CLR, - &ccp_allowoptions[0].bsd_compress }, - - { "deflate", o_special, (void *)setdeflate, - "request Deflate compression", - OPT_PRIO | OPT_A2STRVAL | OPT_STATIC, deflate_value }, - { "nodeflate", o_bool, &ccp_wantoptions[0].deflate, - "don't allow Deflate compression", OPT_PRIOSUB | OPT_A2CLR, - &ccp_allowoptions[0].deflate }, - { "-deflate", o_bool, &ccp_wantoptions[0].deflate, - "don't allow Deflate compression", OPT_ALIAS | OPT_PRIOSUB | OPT_A2CLR, - &ccp_allowoptions[0].deflate }, - - { "nodeflatedraft", o_bool, &ccp_wantoptions[0].deflate_draft, - "don't use draft deflate #", OPT_A2COPY, - &ccp_allowoptions[0].deflate_draft }, - - { "predictor1", o_bool, &ccp_wantoptions[0].predictor_1, - "request Predictor-1", OPT_PRIO | 1 }, - { "nopredictor1", o_bool, &ccp_wantoptions[0].predictor_1, - "don't allow Predictor-1", OPT_PRIOSUB | OPT_A2CLR, - &ccp_allowoptions[0].predictor_1 }, - { "-predictor1", o_bool, &ccp_wantoptions[0].predictor_1, - "don't allow Predictor-1", OPT_ALIAS | OPT_PRIOSUB | OPT_A2CLR, - &ccp_allowoptions[0].predictor_1 }, - -#if MPPE_SUPPORT - /* MPPE options are symmetrical ... we only set wantoptions here */ - { "require-mppe", o_bool, &ccp_wantoptions[0].mppe, - "require MPPE encryption", - OPT_PRIO | MPPE_OPT_40 | MPPE_OPT_128 }, - { "+mppe", o_bool, &ccp_wantoptions[0].mppe, - "require MPPE encryption", - OPT_ALIAS | OPT_PRIO | MPPE_OPT_40 | MPPE_OPT_128 }, - { "nomppe", o_bool, &ccp_wantoptions[0].mppe, - "don't allow MPPE encryption", OPT_PRIO }, - { "-mppe", o_bool, &ccp_wantoptions[0].mppe, - "don't allow MPPE encryption", OPT_ALIAS | OPT_PRIO }, - - /* We use ccp_allowoptions[0].mppe as a junk var ... it is reset later */ - { "require-mppe-40", o_bool, &ccp_allowoptions[0].mppe, - "require MPPE 40-bit encryption", OPT_PRIO | OPT_A2OR | MPPE_OPT_40, - &ccp_wantoptions[0].mppe }, - { "+mppe-40", o_bool, &ccp_allowoptions[0].mppe, - "require MPPE 40-bit encryption", OPT_PRIO | OPT_A2OR | MPPE_OPT_40, - &ccp_wantoptions[0].mppe }, - { "nomppe-40", o_bool, &ccp_allowoptions[0].mppe, - "don't allow MPPE 40-bit encryption", - OPT_PRIOSUB | OPT_A2CLRB | MPPE_OPT_40, &ccp_wantoptions[0].mppe }, - { "-mppe-40", o_bool, &ccp_allowoptions[0].mppe, - "don't allow MPPE 40-bit encryption", - OPT_ALIAS | OPT_PRIOSUB | OPT_A2CLRB | MPPE_OPT_40, - &ccp_wantoptions[0].mppe }, - - { "require-mppe-128", o_bool, &ccp_allowoptions[0].mppe, - "require MPPE 128-bit encryption", OPT_PRIO | OPT_A2OR | MPPE_OPT_128, - &ccp_wantoptions[0].mppe }, - { "+mppe-128", o_bool, &ccp_allowoptions[0].mppe, - "require MPPE 128-bit encryption", - OPT_ALIAS | OPT_PRIO | OPT_A2OR | MPPE_OPT_128, - &ccp_wantoptions[0].mppe }, - { "nomppe-128", o_bool, &ccp_allowoptions[0].mppe, - "don't allow MPPE 128-bit encryption", - OPT_PRIOSUB | OPT_A2CLRB | MPPE_OPT_128, &ccp_wantoptions[0].mppe }, - { "-mppe-128", o_bool, &ccp_allowoptions[0].mppe, - "don't allow MPPE 128-bit encryption", - OPT_ALIAS | OPT_PRIOSUB | OPT_A2CLRB | MPPE_OPT_128, - &ccp_wantoptions[0].mppe }, - - /* strange one; we always request stateless, but will we allow stateful? */ - { "mppe-stateful", o_bool, &refuse_mppe_stateful, - "allow MPPE stateful mode", OPT_PRIO }, - { "nomppe-stateful", o_bool, &refuse_mppe_stateful, - "disallow MPPE stateful mode", OPT_PRIO | 1 }, -#endif /* MPPE_SUPPORT */ - - { NULL } -}; -#endif /* PPP_OPTIONS */ - -/* - * Protocol entry points from main code. - */ -static void ccp_init(ppp_pcb *pcb); -static void ccp_open(ppp_pcb *pcb); -static void ccp_close(ppp_pcb *pcb, const char *reason); -static void ccp_lowerup(ppp_pcb *pcb); -static void ccp_lowerdown(ppp_pcb *pcb); -static void ccp_input(ppp_pcb *pcb, u_char *pkt, int len); -static void ccp_protrej(ppp_pcb *pcb); -#if PRINTPKT_SUPPORT -static int ccp_printpkt(const u_char *p, int plen, void (*printer) (void *, const char *, ...), void *arg); -#endif /* PRINTPKT_SUPPORT */ -#if PPP_DATAINPUT -static void ccp_datainput(ppp_pcb *pcb, u_char *pkt, int len); -#endif /* PPP_DATAINPUT */ - -const struct protent ccp_protent = { - PPP_CCP, - ccp_init, - ccp_input, - ccp_protrej, - ccp_lowerup, - ccp_lowerdown, - ccp_open, - ccp_close, -#if PRINTPKT_SUPPORT - ccp_printpkt, -#endif /* PRINTPKT_SUPPORT */ -#if PPP_DATAINPUT - ccp_datainput, -#endif /* PPP_DATAINPUT */ -#if PRINTPKT_SUPPORT - "CCP", - "Compressed", -#endif /* PRINTPKT_SUPPORT */ -#if PPP_OPTIONS - ccp_option_list, - NULL, -#endif /* PPP_OPTIONS */ -#if DEMAND_SUPPORT - NULL, - NULL -#endif /* DEMAND_SUPPORT */ -}; - -/* - * Callbacks for fsm code. - */ -static void ccp_resetci (fsm *); -static int ccp_cilen (fsm *); -static void ccp_addci (fsm *, u_char *, int *); -static int ccp_ackci (fsm *, u_char *, int); -static int ccp_nakci (fsm *, u_char *, int, int); -static int ccp_rejci (fsm *, u_char *, int); -static int ccp_reqci (fsm *, u_char *, int *, int); -static void ccp_up (fsm *); -static void ccp_down (fsm *); -static int ccp_extcode (fsm *, int, int, u_char *, int); -static void ccp_rack_timeout (void *); -static const char *method_name (ccp_options *, ccp_options *); - -static const fsm_callbacks ccp_callbacks = { - ccp_resetci, - ccp_cilen, - ccp_addci, - ccp_ackci, - ccp_nakci, - ccp_rejci, - ccp_reqci, - ccp_up, - ccp_down, - NULL, - NULL, - NULL, - NULL, - ccp_extcode, - "CCP" -}; - -/* - * Do we want / did we get any compression? - */ -static int ccp_anycompress(ccp_options *opt) { - return (0 -#if DEFLATE_SUPPORT - || (opt)->deflate -#endif /* DEFLATE_SUPPORT */ -#if BSDCOMPRESS_SUPPORT - || (opt)->bsd_compress -#endif /* BSDCOMPRESS_SUPPORT */ -#if PREDICTOR_SUPPORT - || (opt)->predictor_1 || (opt)->predictor_2 -#endif /* PREDICTOR_SUPPORT */ -#if MPPE_SUPPORT - || (opt)->mppe -#endif /* MPPE_SUPPORT */ - ); -} - -/* - * Local state (mainly for handling reset-reqs and reset-acks). - */ -#define RACK_PENDING 1 /* waiting for reset-ack */ -#define RREQ_REPEAT 2 /* send another reset-req if no reset-ack */ - -#define RACKTIMEOUT 1 /* second */ - -#if PPP_OPTIONS -/* - * Option parsing - */ -static int -setbsdcomp(argv) - char **argv; -{ - int rbits, abits; - char *str, *endp; - - str = *argv; - abits = rbits = strtol(str, &endp, 0); - if (endp != str && *endp == ',') { - str = endp + 1; - abits = strtol(str, &endp, 0); - } - if (*endp != 0 || endp == str) { - option_error("invalid parameter '%s' for bsdcomp option", *argv); - return 0; - } - if ((rbits != 0 && (rbits < BSD_MIN_BITS || rbits > BSD_MAX_BITS)) - || (abits != 0 && (abits < BSD_MIN_BITS || abits > BSD_MAX_BITS))) { - option_error("bsdcomp option values must be 0 or %d .. %d", - BSD_MIN_BITS, BSD_MAX_BITS); - return 0; - } - if (rbits > 0) { - ccp_wantoptions[0].bsd_compress = 1; - ccp_wantoptions[0].bsd_bits = rbits; - } else - ccp_wantoptions[0].bsd_compress = 0; - if (abits > 0) { - ccp_allowoptions[0].bsd_compress = 1; - ccp_allowoptions[0].bsd_bits = abits; - } else - ccp_allowoptions[0].bsd_compress = 0; - ppp_slprintf(bsd_value, sizeof(bsd_value), - rbits == abits? "%d": "%d,%d", rbits, abits); - - return 1; -} - -static int -setdeflate(argv) - char **argv; -{ - int rbits, abits; - char *str, *endp; - - str = *argv; - abits = rbits = strtol(str, &endp, 0); - if (endp != str && *endp == ',') { - str = endp + 1; - abits = strtol(str, &endp, 0); - } - if (*endp != 0 || endp == str) { - option_error("invalid parameter '%s' for deflate option", *argv); - return 0; - } - if ((rbits != 0 && (rbits < DEFLATE_MIN_SIZE || rbits > DEFLATE_MAX_SIZE)) - || (abits != 0 && (abits < DEFLATE_MIN_SIZE - || abits > DEFLATE_MAX_SIZE))) { - option_error("deflate option values must be 0 or %d .. %d", - DEFLATE_MIN_SIZE, DEFLATE_MAX_SIZE); - return 0; - } - if (rbits == DEFLATE_MIN_SIZE || abits == DEFLATE_MIN_SIZE) { - if (rbits == DEFLATE_MIN_SIZE) - rbits = DEFLATE_MIN_WORKS; - if (abits == DEFLATE_MIN_SIZE) - abits = DEFLATE_MIN_WORKS; - warn("deflate option value of %d changed to %d to avoid zlib bug", - DEFLATE_MIN_SIZE, DEFLATE_MIN_WORKS); - } - if (rbits > 0) { - ccp_wantoptions[0].deflate = 1; - ccp_wantoptions[0].deflate_size = rbits; - } else - ccp_wantoptions[0].deflate = 0; - if (abits > 0) { - ccp_allowoptions[0].deflate = 1; - ccp_allowoptions[0].deflate_size = abits; - } else - ccp_allowoptions[0].deflate = 0; - ppp_slprintf(deflate_value, sizeof(deflate_value), - rbits == abits? "%d": "%d,%d", rbits, abits); - - return 1; -} -#endif /* PPP_OPTIONS */ - -/* - * ccp_init - initialize CCP. - */ -static void ccp_init(ppp_pcb *pcb) { - fsm *f = &pcb->ccp_fsm; - - f->pcb = pcb; - f->protocol = PPP_CCP; - f->callbacks = &ccp_callbacks; - fsm_init(f); - -#if 0 /* Not necessary, everything is cleared in ppp_new() */ - memset(wo, 0, sizeof(*wo)); - memset(go, 0, sizeof(*go)); - memset(ao, 0, sizeof(*ao)); - memset(ho, 0, sizeof(*ho)); -#endif /* 0 */ - -#if DEFLATE_SUPPORT - wo->deflate = 1; - wo->deflate_size = DEFLATE_MAX_SIZE; - wo->deflate_correct = 1; - wo->deflate_draft = 1; - ao->deflate = 1; - ao->deflate_size = DEFLATE_MAX_SIZE; - ao->deflate_correct = 1; - ao->deflate_draft = 1; -#endif /* DEFLATE_SUPPORT */ - -#if BSDCOMPRESS_SUPPORT - wo->bsd_compress = 1; - wo->bsd_bits = BSD_MAX_BITS; - ao->bsd_compress = 1; - ao->bsd_bits = BSD_MAX_BITS; -#endif /* BSDCOMPRESS_SUPPORT */ - -#if PREDICTOR_SUPPORT - ao->predictor_1 = 1; -#endif /* PREDICTOR_SUPPORT */ -} - -/* - * ccp_open - CCP is allowed to come up. - */ -static void ccp_open(ppp_pcb *pcb) { - fsm *f = &pcb->ccp_fsm; - ccp_options *go = &pcb->ccp_gotoptions; - - if (f->state != PPP_FSM_OPENED) - ccp_set(pcb, 1, 0, 0, 0); - - /* - * Find out which compressors the kernel supports before - * deciding whether to open in silent mode. - */ - ccp_resetci(f); - if (!ccp_anycompress(go)) - f->flags |= OPT_SILENT; - - fsm_open(f); -} - -/* - * ccp_close - Terminate CCP. - */ -static void ccp_close(ppp_pcb *pcb, const char *reason) { - fsm *f = &pcb->ccp_fsm; - ccp_set(pcb, 0, 0, 0, 0); - fsm_close(f, reason); -} - -/* - * ccp_lowerup - we may now transmit CCP packets. - */ -static void ccp_lowerup(ppp_pcb *pcb) { - fsm *f = &pcb->ccp_fsm; - fsm_lowerup(f); -} - -/* - * ccp_lowerdown - we may not transmit CCP packets. - */ -static void ccp_lowerdown(ppp_pcb *pcb) { - fsm *f = &pcb->ccp_fsm; - fsm_lowerdown(f); -} - -/* - * ccp_input - process a received CCP packet. - */ -static void ccp_input(ppp_pcb *pcb, u_char *p, int len) { - fsm *f = &pcb->ccp_fsm; - ccp_options *go = &pcb->ccp_gotoptions; - int oldstate; - - /* - * Check for a terminate-request so we can print a message. - */ - oldstate = f->state; - fsm_input(f, p, len); - if (oldstate == PPP_FSM_OPENED && p[0] == TERMREQ && f->state != PPP_FSM_OPENED) { - ppp_notice("Compression disabled by peer."); -#if MPPE_SUPPORT - if (go->mppe) { - ppp_error("MPPE disabled, closing LCP"); - lcp_close(pcb, "MPPE disabled by peer"); - } -#endif /* MPPE_SUPPORT */ - } - - /* - * If we get a terminate-ack and we're not asking for compression, - * close CCP. - */ - if (oldstate == PPP_FSM_REQSENT && p[0] == TERMACK - && !ccp_anycompress(go)) - ccp_close(pcb, "No compression negotiated"); -} - -/* - * Handle a CCP-specific code. - */ -static int ccp_extcode(fsm *f, int code, int id, u_char *p, int len) { - ppp_pcb *pcb = f->pcb; - LWIP_UNUSED_ARG(p); - LWIP_UNUSED_ARG(len); - - switch (code) { - case CCP_RESETREQ: - if (f->state != PPP_FSM_OPENED) - break; - ccp_reset_comp(pcb); - /* send a reset-ack, which the transmitter will see and - reset its compression state. */ - fsm_sdata(f, CCP_RESETACK, id, NULL, 0); - break; - - case CCP_RESETACK: - if ((pcb->ccp_localstate & RACK_PENDING) && id == f->reqid) { - pcb->ccp_localstate &= ~(RACK_PENDING | RREQ_REPEAT); - UNTIMEOUT(ccp_rack_timeout, f); - ccp_reset_decomp(pcb); - } - break; - - default: - return 0; - } - - return 1; -} - -/* - * ccp_protrej - peer doesn't talk CCP. - */ -static void ccp_protrej(ppp_pcb *pcb) { - fsm *f = &pcb->ccp_fsm; -#if MPPE_SUPPORT - ccp_options *go = &pcb->ccp_gotoptions; -#endif /* MPPE_SUPPORT */ - - ccp_set(pcb, 0, 0, 0, 0); - fsm_lowerdown(f); - -#if MPPE_SUPPORT - if (go->mppe) { - ppp_error("MPPE required but peer negotiation failed"); - lcp_close(pcb, "MPPE required but peer negotiation failed"); - } -#endif /* MPPE_SUPPORT */ - -} - -/* - * ccp_resetci - initialize at start of negotiation. - */ -static void ccp_resetci(fsm *f) { - ppp_pcb *pcb = f->pcb; - ccp_options *go = &pcb->ccp_gotoptions; - ccp_options *wo = &pcb->ccp_wantoptions; -#if MPPE_SUPPORT - ccp_options *ao = &pcb->ccp_allowoptions; -#endif /* MPPE_SUPPORT */ -#if DEFLATE_SUPPORT || BSDCOMPRESS_SUPPORT || PREDICTOR_SUPPORT - u_char opt_buf[CCP_MAX_OPTION_LENGTH]; -#endif /* DEFLATE_SUPPORT || BSDCOMPRESS_SUPPORT || PREDICTOR_SUPPORT */ -#if DEFLATE_SUPPORT || BSDCOMPRESS_SUPPORT - int res; -#endif /* DEFLATE_SUPPORT || BSDCOMPRESS_SUPPORT */ - -#if MPPE_SUPPORT - if (pcb->settings.require_mppe) { - wo->mppe = ao->mppe = - (pcb->settings.refuse_mppe_40 ? 0 : MPPE_OPT_40) - | (pcb->settings.refuse_mppe_128 ? 0 : MPPE_OPT_128); - } -#endif /* MPPE_SUPPORT */ - - *go = *wo; - pcb->ccp_all_rejected = 0; - -#if MPPE_SUPPORT - if (go->mppe) { - int auth_mschap_bits = pcb->auth_done; - int numbits; - - /* - * Start with a basic sanity check: mschap[v2] auth must be in - * exactly one direction. RFC 3079 says that the keys are - * 'derived from the credentials of the peer that initiated the call', - * however the PPP protocol doesn't have such a concept, and pppd - * cannot get this info externally. Instead we do the best we can. - * NB: If MPPE is required, all other compression opts are invalid. - * So, we return right away if we can't do it. - */ - - /* Leave only the mschap auth bits set */ - auth_mschap_bits &= (CHAP_MS_WITHPEER | CHAP_MS_PEER | - CHAP_MS2_WITHPEER | CHAP_MS2_PEER); - /* Count the mschap auths */ - auth_mschap_bits >>= CHAP_MS_SHIFT; - numbits = 0; - do { - numbits += auth_mschap_bits & 1; - auth_mschap_bits >>= 1; - } while (auth_mschap_bits); - if (numbits > 1) { - ppp_error("MPPE required, but auth done in both directions."); - lcp_close(pcb, "MPPE required but not available"); - return; - } - if (!numbits) { - ppp_error("MPPE required, but MS-CHAP[v2] auth not performed."); - lcp_close(pcb, "MPPE required but not available"); - return; - } - - /* A plugin (eg radius) may not have obtained key material. */ - if (!pcb->mppe_keys_set) { - ppp_error("MPPE required, but keys are not available. " - "Possible plugin problem?"); - lcp_close(pcb, "MPPE required but not available"); - return; - } - - /* LM auth not supported for MPPE */ - if (pcb->auth_done & (CHAP_MS_WITHPEER | CHAP_MS_PEER)) { - /* This might be noise */ - if (go->mppe & MPPE_OPT_40) { - ppp_notice("Disabling 40-bit MPPE; MS-CHAP LM not supported"); - go->mppe &= ~MPPE_OPT_40; - wo->mppe &= ~MPPE_OPT_40; - } - } - - /* Last check: can we actually negotiate something? */ - if (!(go->mppe & (MPPE_OPT_40 | MPPE_OPT_128))) { - /* Could be misconfig, could be 40-bit disabled above. */ - ppp_error("MPPE required, but both 40-bit and 128-bit disabled."); - lcp_close(pcb, "MPPE required but not available"); - return; - } - - /* sync options */ - ao->mppe = go->mppe; - /* MPPE is not compatible with other compression types */ -#if BSDCOMPRESS_SUPPORT - ao->bsd_compress = go->bsd_compress = 0; -#endif /* BSDCOMPRESS_SUPPORT */ -#if PREDICTOR_SUPPORT - ao->predictor_1 = go->predictor_1 = 0; - ao->predictor_2 = go->predictor_2 = 0; -#endif /* PREDICTOR_SUPPORT */ -#if DEFLATE_SUPPORT - ao->deflate = go->deflate = 0; -#endif /* DEFLATE_SUPPORT */ - } -#endif /* MPPE_SUPPORT */ - - /* - * Check whether the kernel knows about the various - * compression methods we might request. - */ -#if BSDCOMPRESS_SUPPORT - /* FIXME: we don't need to test if BSD compress is available - * if BSDCOMPRESS_SUPPORT is set, it is. - */ - if (go->bsd_compress) { - opt_buf[0] = CI_BSD_COMPRESS; - opt_buf[1] = CILEN_BSD_COMPRESS; - for (;;) { - if (go->bsd_bits < BSD_MIN_BITS) { - go->bsd_compress = 0; - break; - } - opt_buf[2] = BSD_MAKE_OPT(BSD_CURRENT_VERSION, go->bsd_bits); - res = ccp_test(pcb, opt_buf, CILEN_BSD_COMPRESS, 0); - if (res > 0) { - break; - } else if (res < 0) { - go->bsd_compress = 0; - break; - } - go->bsd_bits--; - } - } -#endif /* BSDCOMPRESS_SUPPORT */ -#if DEFLATE_SUPPORT - /* FIXME: we don't need to test if deflate is available - * if DEFLATE_SUPPORT is set, it is. - */ - if (go->deflate) { - if (go->deflate_correct) { - opt_buf[0] = CI_DEFLATE; - opt_buf[1] = CILEN_DEFLATE; - opt_buf[3] = DEFLATE_CHK_SEQUENCE; - for (;;) { - if (go->deflate_size < DEFLATE_MIN_WORKS) { - go->deflate_correct = 0; - break; - } - opt_buf[2] = DEFLATE_MAKE_OPT(go->deflate_size); - res = ccp_test(pcb, opt_buf, CILEN_DEFLATE, 0); - if (res > 0) { - break; - } else if (res < 0) { - go->deflate_correct = 0; - break; - } - go->deflate_size--; - } - } - if (go->deflate_draft) { - opt_buf[0] = CI_DEFLATE_DRAFT; - opt_buf[1] = CILEN_DEFLATE; - opt_buf[3] = DEFLATE_CHK_SEQUENCE; - for (;;) { - if (go->deflate_size < DEFLATE_MIN_WORKS) { - go->deflate_draft = 0; - break; - } - opt_buf[2] = DEFLATE_MAKE_OPT(go->deflate_size); - res = ccp_test(pcb, opt_buf, CILEN_DEFLATE, 0); - if (res > 0) { - break; - } else if (res < 0) { - go->deflate_draft = 0; - break; - } - go->deflate_size--; - } - } - if (!go->deflate_correct && !go->deflate_draft) - go->deflate = 0; - } -#endif /* DEFLATE_SUPPORT */ -#if PREDICTOR_SUPPORT - /* FIXME: we don't need to test if predictor is available, - * if PREDICTOR_SUPPORT is set, it is. - */ - if (go->predictor_1) { - opt_buf[0] = CI_PREDICTOR_1; - opt_buf[1] = CILEN_PREDICTOR_1; - if (ccp_test(pcb, opt_buf, CILEN_PREDICTOR_1, 0) <= 0) - go->predictor_1 = 0; - } - if (go->predictor_2) { - opt_buf[0] = CI_PREDICTOR_2; - opt_buf[1] = CILEN_PREDICTOR_2; - if (ccp_test(pcb, opt_buf, CILEN_PREDICTOR_2, 0) <= 0) - go->predictor_2 = 0; - } -#endif /* PREDICTOR_SUPPORT */ -} - -/* - * ccp_cilen - Return total length of our configuration info. - */ -static int ccp_cilen(fsm *f) { - ppp_pcb *pcb = f->pcb; - ccp_options *go = &pcb->ccp_gotoptions; - - return 0 -#if BSDCOMPRESS_SUPPORT - + (go->bsd_compress? CILEN_BSD_COMPRESS: 0) -#endif /* BSDCOMPRESS_SUPPORT */ -#if DEFLATE_SUPPORT - + (go->deflate && go->deflate_correct? CILEN_DEFLATE: 0) - + (go->deflate && go->deflate_draft? CILEN_DEFLATE: 0) -#endif /* DEFLATE_SUPPORT */ -#if PREDICTOR_SUPPORT - + (go->predictor_1? CILEN_PREDICTOR_1: 0) - + (go->predictor_2? CILEN_PREDICTOR_2: 0) -#endif /* PREDICTOR_SUPPORT */ -#if MPPE_SUPPORT - + (go->mppe? CILEN_MPPE: 0) -#endif /* MPPE_SUPPORT */ - ; -} - -/* - * ccp_addci - put our requests in a packet. - */ -static void ccp_addci(fsm *f, u_char *p, int *lenp) { - ppp_pcb *pcb = f->pcb; - ccp_options *go = &pcb->ccp_gotoptions; - u_char *p0 = p; - - /* - * Add the compression types that we can receive, in decreasing - * preference order. - */ -#if MPPE_SUPPORT - if (go->mppe) { - p[0] = CI_MPPE; - p[1] = CILEN_MPPE; - MPPE_OPTS_TO_CI(go->mppe, &p[2]); - mppe_init(pcb, &pcb->mppe_decomp, go->mppe); - p += CILEN_MPPE; - } -#endif /* MPPE_SUPPORT */ -#if DEFLATE_SUPPORT - if (go->deflate) { - if (go->deflate_correct) { - p[0] = CI_DEFLATE; - p[1] = CILEN_DEFLATE; - p[2] = DEFLATE_MAKE_OPT(go->deflate_size); - p[3] = DEFLATE_CHK_SEQUENCE; - p += CILEN_DEFLATE; - } - if (go->deflate_draft) { - p[0] = CI_DEFLATE_DRAFT; - p[1] = CILEN_DEFLATE; - p[2] = p[2 - CILEN_DEFLATE]; - p[3] = DEFLATE_CHK_SEQUENCE; - p += CILEN_DEFLATE; - } - } -#endif /* DEFLATE_SUPPORT */ -#if BSDCOMPRESS_SUPPORT - if (go->bsd_compress) { - p[0] = CI_BSD_COMPRESS; - p[1] = CILEN_BSD_COMPRESS; - p[2] = BSD_MAKE_OPT(BSD_CURRENT_VERSION, go->bsd_bits); - p += CILEN_BSD_COMPRESS; - } -#endif /* BSDCOMPRESS_SUPPORT */ -#if PREDICTOR_SUPPORT - /* XXX Should Predictor 2 be preferable to Predictor 1? */ - if (go->predictor_1) { - p[0] = CI_PREDICTOR_1; - p[1] = CILEN_PREDICTOR_1; - p += CILEN_PREDICTOR_1; - } - if (go->predictor_2) { - p[0] = CI_PREDICTOR_2; - p[1] = CILEN_PREDICTOR_2; - p += CILEN_PREDICTOR_2; - } -#endif /* PREDICTOR_SUPPORT */ - - go->method = (p > p0)? p0[0]: 0; - - *lenp = p - p0; -} - -/* - * ccp_ackci - process a received configure-ack, and return - * 1 iff the packet was OK. - */ -static int ccp_ackci(fsm *f, u_char *p, int len) { - ppp_pcb *pcb = f->pcb; - ccp_options *go = &pcb->ccp_gotoptions; -#if BSDCOMPRESS_SUPPORT || PREDICTOR_SUPPORT - u_char *p0 = p; -#endif /* BSDCOMPRESS_SUPPORT || PREDICTOR_SUPPORT */ - -#if MPPE_SUPPORT - if (go->mppe) { - u_char opt_buf[CILEN_MPPE]; - - opt_buf[0] = CI_MPPE; - opt_buf[1] = CILEN_MPPE; - MPPE_OPTS_TO_CI(go->mppe, &opt_buf[2]); - if (len < CILEN_MPPE || memcmp(opt_buf, p, CILEN_MPPE)) - return 0; - p += CILEN_MPPE; - len -= CILEN_MPPE; - /* XXX Cope with first/fast ack */ - if (len == 0) - return 1; - } -#endif /* MPPE_SUPPORT */ -#if DEFLATE_SUPPORT - if (go->deflate) { - if (len < CILEN_DEFLATE - || p[0] != (go->deflate_correct? CI_DEFLATE: CI_DEFLATE_DRAFT) - || p[1] != CILEN_DEFLATE - || p[2] != DEFLATE_MAKE_OPT(go->deflate_size) - || p[3] != DEFLATE_CHK_SEQUENCE) - return 0; - p += CILEN_DEFLATE; - len -= CILEN_DEFLATE; - /* XXX Cope with first/fast ack */ - if (len == 0) - return 1; - if (go->deflate_correct && go->deflate_draft) { - if (len < CILEN_DEFLATE - || p[0] != CI_DEFLATE_DRAFT - || p[1] != CILEN_DEFLATE - || p[2] != DEFLATE_MAKE_OPT(go->deflate_size) - || p[3] != DEFLATE_CHK_SEQUENCE) - return 0; - p += CILEN_DEFLATE; - len -= CILEN_DEFLATE; - } - } -#endif /* DEFLATE_SUPPORT */ -#if BSDCOMPRESS_SUPPORT - if (go->bsd_compress) { - if (len < CILEN_BSD_COMPRESS - || p[0] != CI_BSD_COMPRESS || p[1] != CILEN_BSD_COMPRESS - || p[2] != BSD_MAKE_OPT(BSD_CURRENT_VERSION, go->bsd_bits)) - return 0; - p += CILEN_BSD_COMPRESS; - len -= CILEN_BSD_COMPRESS; - /* XXX Cope with first/fast ack */ - if (p == p0 && len == 0) - return 1; - } -#endif /* BSDCOMPRESS_SUPPORT */ -#if PREDICTOR_SUPPORT - if (go->predictor_1) { - if (len < CILEN_PREDICTOR_1 - || p[0] != CI_PREDICTOR_1 || p[1] != CILEN_PREDICTOR_1) - return 0; - p += CILEN_PREDICTOR_1; - len -= CILEN_PREDICTOR_1; - /* XXX Cope with first/fast ack */ - if (p == p0 && len == 0) - return 1; - } - if (go->predictor_2) { - if (len < CILEN_PREDICTOR_2 - || p[0] != CI_PREDICTOR_2 || p[1] != CILEN_PREDICTOR_2) - return 0; - p += CILEN_PREDICTOR_2; - len -= CILEN_PREDICTOR_2; - /* XXX Cope with first/fast ack */ - if (p == p0 && len == 0) - return 1; - } -#endif /* PREDICTOR_SUPPORT */ - - if (len != 0) - return 0; - return 1; -} - -/* - * ccp_nakci - process received configure-nak. - * Returns 1 iff the nak was OK. - */ -static int ccp_nakci(fsm *f, u_char *p, int len, int treat_as_reject) { - ppp_pcb *pcb = f->pcb; - ccp_options *go = &pcb->ccp_gotoptions; - ccp_options no; /* options we've seen already */ - ccp_options try_; /* options to ask for next time */ - LWIP_UNUSED_ARG(treat_as_reject); -#if !MPPE_SUPPORT && !DEFLATE_SUPPORT && !BSDCOMPRESS_SUPPORT - LWIP_UNUSED_ARG(p); - LWIP_UNUSED_ARG(len); -#endif /* !MPPE_SUPPORT && !DEFLATE_SUPPORT && !BSDCOMPRESS_SUPPORT */ - - memset(&no, 0, sizeof(no)); - try_ = *go; - -#if MPPE_SUPPORT - if (go->mppe && len >= CILEN_MPPE - && p[0] == CI_MPPE && p[1] == CILEN_MPPE) { - no.mppe = 1; - /* - * Peer wants us to use a different strength or other setting. - * Fail if we aren't willing to use his suggestion. - */ - MPPE_CI_TO_OPTS(&p[2], try_.mppe); - if ((try_.mppe & MPPE_OPT_STATEFUL) && pcb->settings.refuse_mppe_stateful) { - ppp_error("Refusing MPPE stateful mode offered by peer"); - try_.mppe = 0; - } else if (((go->mppe | MPPE_OPT_STATEFUL) & try_.mppe) != try_.mppe) { - /* Peer must have set options we didn't request (suggest) */ - try_.mppe = 0; - } - - if (!try_.mppe) { - ppp_error("MPPE required but peer negotiation failed"); - lcp_close(pcb, "MPPE required but peer negotiation failed"); - } - } -#endif /* MPPE_SUPPORT */ -#if DEFLATE_SUPPORT - if (go->deflate && len >= CILEN_DEFLATE - && p[0] == (go->deflate_correct? CI_DEFLATE: CI_DEFLATE_DRAFT) - && p[1] == CILEN_DEFLATE) { - no.deflate = 1; - /* - * Peer wants us to use a different code size or something. - * Stop asking for Deflate if we don't understand his suggestion. - */ - if (DEFLATE_METHOD(p[2]) != DEFLATE_METHOD_VAL - || DEFLATE_SIZE(p[2]) < DEFLATE_MIN_WORKS - || p[3] != DEFLATE_CHK_SEQUENCE) - try_.deflate = 0; - else if (DEFLATE_SIZE(p[2]) < go->deflate_size) - try_.deflate_size = DEFLATE_SIZE(p[2]); - p += CILEN_DEFLATE; - len -= CILEN_DEFLATE; - if (go->deflate_correct && go->deflate_draft - && len >= CILEN_DEFLATE && p[0] == CI_DEFLATE_DRAFT - && p[1] == CILEN_DEFLATE) { - p += CILEN_DEFLATE; - len -= CILEN_DEFLATE; - } - } -#endif /* DEFLATE_SUPPORT */ -#if BSDCOMPRESS_SUPPORT - if (go->bsd_compress && len >= CILEN_BSD_COMPRESS - && p[0] == CI_BSD_COMPRESS && p[1] == CILEN_BSD_COMPRESS) { - no.bsd_compress = 1; - /* - * Peer wants us to use a different number of bits - * or a different version. - */ - if (BSD_VERSION(p[2]) != BSD_CURRENT_VERSION) - try_.bsd_compress = 0; - else if (BSD_NBITS(p[2]) < go->bsd_bits) - try_.bsd_bits = BSD_NBITS(p[2]); - p += CILEN_BSD_COMPRESS; - len -= CILEN_BSD_COMPRESS; - } -#endif /* BSDCOMPRESS_SUPPORT */ - - /* - * Predictor-1 and 2 have no options, so they can't be Naked. - * - * There may be remaining options but we ignore them. - */ - - if (f->state != PPP_FSM_OPENED) - *go = try_; - return 1; -} - -/* - * ccp_rejci - reject some of our suggested compression methods. - */ -static int ccp_rejci(fsm *f, u_char *p, int len) { - ppp_pcb *pcb = f->pcb; - ccp_options *go = &pcb->ccp_gotoptions; - ccp_options try_; /* options to request next time */ - - try_ = *go; - - /* - * Cope with empty configure-rejects by ceasing to send - * configure-requests. - */ - if (len == 0 && pcb->ccp_all_rejected) - return -1; - -#if MPPE_SUPPORT - if (go->mppe && len >= CILEN_MPPE - && p[0] == CI_MPPE && p[1] == CILEN_MPPE) { - ppp_error("MPPE required but peer refused"); - lcp_close(pcb, "MPPE required but peer refused"); - p += CILEN_MPPE; - len -= CILEN_MPPE; - } -#endif /* MPPE_SUPPORT */ -#if DEFLATE_SUPPORT - if (go->deflate_correct && len >= CILEN_DEFLATE - && p[0] == CI_DEFLATE && p[1] == CILEN_DEFLATE) { - if (p[2] != DEFLATE_MAKE_OPT(go->deflate_size) - || p[3] != DEFLATE_CHK_SEQUENCE) - return 0; /* Rej is bad */ - try_.deflate_correct = 0; - p += CILEN_DEFLATE; - len -= CILEN_DEFLATE; - } - if (go->deflate_draft && len >= CILEN_DEFLATE - && p[0] == CI_DEFLATE_DRAFT && p[1] == CILEN_DEFLATE) { - if (p[2] != DEFLATE_MAKE_OPT(go->deflate_size) - || p[3] != DEFLATE_CHK_SEQUENCE) - return 0; /* Rej is bad */ - try_.deflate_draft = 0; - p += CILEN_DEFLATE; - len -= CILEN_DEFLATE; - } - if (!try_.deflate_correct && !try_.deflate_draft) - try_.deflate = 0; -#endif /* DEFLATE_SUPPORT */ -#if BSDCOMPRESS_SUPPORT - if (go->bsd_compress && len >= CILEN_BSD_COMPRESS - && p[0] == CI_BSD_COMPRESS && p[1] == CILEN_BSD_COMPRESS) { - if (p[2] != BSD_MAKE_OPT(BSD_CURRENT_VERSION, go->bsd_bits)) - return 0; - try_.bsd_compress = 0; - p += CILEN_BSD_COMPRESS; - len -= CILEN_BSD_COMPRESS; - } -#endif /* BSDCOMPRESS_SUPPORT */ -#if PREDICTOR_SUPPORT - if (go->predictor_1 && len >= CILEN_PREDICTOR_1 - && p[0] == CI_PREDICTOR_1 && p[1] == CILEN_PREDICTOR_1) { - try_.predictor_1 = 0; - p += CILEN_PREDICTOR_1; - len -= CILEN_PREDICTOR_1; - } - if (go->predictor_2 && len >= CILEN_PREDICTOR_2 - && p[0] == CI_PREDICTOR_2 && p[1] == CILEN_PREDICTOR_2) { - try_.predictor_2 = 0; - p += CILEN_PREDICTOR_2; - len -= CILEN_PREDICTOR_2; - } -#endif /* PREDICTOR_SUPPORT */ - - if (len != 0) - return 0; - - if (f->state != PPP_FSM_OPENED) - *go = try_; - - return 1; -} - -/* - * ccp_reqci - processed a received configure-request. - * Returns CONFACK, CONFNAK or CONFREJ and the packet modified - * appropriately. - */ -static int ccp_reqci(fsm *f, u_char *p, int *lenp, int dont_nak) { - ppp_pcb *pcb = f->pcb; - ccp_options *ho = &pcb->ccp_hisoptions; - ccp_options *ao = &pcb->ccp_allowoptions; - int ret, newret; -#if DEFLATE_SUPPORT || BSDCOMPRESS_SUPPORT - int res; - int nb; -#endif /* DEFLATE_SUPPORT || BSDCOMPRESS_SUPPORT */ - u_char *p0, *retp; - int len, clen, type; -#if MPPE_SUPPORT - u8_t rej_for_ci_mppe = 1; /* Are we rejecting based on a bad/missing */ - /* CI_MPPE, or due to other options? */ -#endif /* MPPE_SUPPORT */ - - ret = CONFACK; - retp = p0 = p; - len = *lenp; - - memset(ho, 0, sizeof(ccp_options)); - ho->method = (len > 0)? p[0]: 0; - - while (len > 0) { - newret = CONFACK; - if (len < 2 || p[1] < 2 || p[1] > len) { - /* length is bad */ - clen = len; - newret = CONFREJ; - - } else { - type = p[0]; - clen = p[1]; - - switch (type) { -#if MPPE_SUPPORT - case CI_MPPE: - if (!ao->mppe || clen != CILEN_MPPE) { - newret = CONFREJ; - break; - } - MPPE_CI_TO_OPTS(&p[2], ho->mppe); - - /* Nak if anything unsupported or unknown are set. */ - if (ho->mppe & MPPE_OPT_UNSUPPORTED) { - newret = CONFNAK; - ho->mppe &= ~MPPE_OPT_UNSUPPORTED; - } - if (ho->mppe & MPPE_OPT_UNKNOWN) { - newret = CONFNAK; - ho->mppe &= ~MPPE_OPT_UNKNOWN; - } - - /* Check state opt */ - if (ho->mppe & MPPE_OPT_STATEFUL) { - /* - * We can Nak and request stateless, but it's a - * lot easier to just assume the peer will request - * it if he can do it; stateful mode is bad over - * the Internet -- which is where we expect MPPE. - */ - if (pcb->settings.refuse_mppe_stateful) { - ppp_error("Refusing MPPE stateful mode offered by peer"); - newret = CONFREJ; - break; - } - } - - /* Find out which of {S,L} are set. */ - if ((ho->mppe & MPPE_OPT_128) - && (ho->mppe & MPPE_OPT_40)) { - /* Both are set, negotiate the strongest. */ - newret = CONFNAK; - if (ao->mppe & MPPE_OPT_128) - ho->mppe &= ~MPPE_OPT_40; - else if (ao->mppe & MPPE_OPT_40) - ho->mppe &= ~MPPE_OPT_128; - else { - newret = CONFREJ; - break; - } - } else if (ho->mppe & MPPE_OPT_128) { - if (!(ao->mppe & MPPE_OPT_128)) { - newret = CONFREJ; - break; - } - } else if (ho->mppe & MPPE_OPT_40) { - if (!(ao->mppe & MPPE_OPT_40)) { - newret = CONFREJ; - break; - } - } else { - /* Neither are set. */ - /* We cannot accept this. */ - newret = CONFNAK; - /* Give the peer our idea of what can be used, - so it can choose and confirm */ - ho->mppe = ao->mppe; - } - - /* rebuild the opts */ - MPPE_OPTS_TO_CI(ho->mppe, &p[2]); - if (newret == CONFACK) { - int mtu; - - mppe_init(pcb, &pcb->mppe_comp, ho->mppe); - /* - * We need to decrease the interface MTU by MPPE_PAD - * because MPPE frames **grow**. The kernel [must] - * allocate MPPE_PAD extra bytes in xmit buffers. - */ - mtu = netif_get_mtu(pcb); - if (mtu) - netif_set_mtu(pcb, mtu - MPPE_PAD); - else - newret = CONFREJ; - } - - /* - * We have accepted MPPE or are willing to negotiate - * MPPE parameters. A CONFREJ is due to subsequent - * (non-MPPE) processing. - */ - rej_for_ci_mppe = 0; - break; -#endif /* MPPE_SUPPORT */ -#if DEFLATE_SUPPORT - case CI_DEFLATE: - case CI_DEFLATE_DRAFT: - if (!ao->deflate || clen != CILEN_DEFLATE - || (!ao->deflate_correct && type == CI_DEFLATE) - || (!ao->deflate_draft && type == CI_DEFLATE_DRAFT)) { - newret = CONFREJ; - break; - } - - ho->deflate = 1; - ho->deflate_size = nb = DEFLATE_SIZE(p[2]); - if (DEFLATE_METHOD(p[2]) != DEFLATE_METHOD_VAL - || p[3] != DEFLATE_CHK_SEQUENCE - || nb > ao->deflate_size || nb < DEFLATE_MIN_WORKS) { - newret = CONFNAK; - if (!dont_nak) { - p[2] = DEFLATE_MAKE_OPT(ao->deflate_size); - p[3] = DEFLATE_CHK_SEQUENCE; - /* fall through to test this #bits below */ - } else - break; - } - - /* - * Check whether we can do Deflate with the window - * size they want. If the window is too big, reduce - * it until the kernel can cope and nak with that. - * We only check this for the first option. - */ - if (p == p0) { - for (;;) { - res = ccp_test(pcb, p, CILEN_DEFLATE, 1); - if (res > 0) - break; /* it's OK now */ - if (res < 0 || nb == DEFLATE_MIN_WORKS || dont_nak) { - newret = CONFREJ; - p[2] = DEFLATE_MAKE_OPT(ho->deflate_size); - break; - } - newret = CONFNAK; - --nb; - p[2] = DEFLATE_MAKE_OPT(nb); - } - } - break; -#endif /* DEFLATE_SUPPORT */ -#if BSDCOMPRESS_SUPPORT - case CI_BSD_COMPRESS: - if (!ao->bsd_compress || clen != CILEN_BSD_COMPRESS) { - newret = CONFREJ; - break; - } - - ho->bsd_compress = 1; - ho->bsd_bits = nb = BSD_NBITS(p[2]); - if (BSD_VERSION(p[2]) != BSD_CURRENT_VERSION - || nb > ao->bsd_bits || nb < BSD_MIN_BITS) { - newret = CONFNAK; - if (!dont_nak) { - p[2] = BSD_MAKE_OPT(BSD_CURRENT_VERSION, ao->bsd_bits); - /* fall through to test this #bits below */ - } else - break; - } - - /* - * Check whether we can do BSD-Compress with the code - * size they want. If the code size is too big, reduce - * it until the kernel can cope and nak with that. - * We only check this for the first option. - */ - if (p == p0) { - for (;;) { - res = ccp_test(pcb, p, CILEN_BSD_COMPRESS, 1); - if (res > 0) - break; - if (res < 0 || nb == BSD_MIN_BITS || dont_nak) { - newret = CONFREJ; - p[2] = BSD_MAKE_OPT(BSD_CURRENT_VERSION, - ho->bsd_bits); - break; - } - newret = CONFNAK; - --nb; - p[2] = BSD_MAKE_OPT(BSD_CURRENT_VERSION, nb); - } - } - break; -#endif /* BSDCOMPRESS_SUPPORT */ -#if PREDICTOR_SUPPORT - case CI_PREDICTOR_1: - if (!ao->predictor_1 || clen != CILEN_PREDICTOR_1) { - newret = CONFREJ; - break; - } - - ho->predictor_1 = 1; - if (p == p0 - && ccp_test(pcb, p, CILEN_PREDICTOR_1, 1) <= 0) { - newret = CONFREJ; - } - break; - - case CI_PREDICTOR_2: - if (!ao->predictor_2 || clen != CILEN_PREDICTOR_2) { - newret = CONFREJ; - break; - } - - ho->predictor_2 = 1; - if (p == p0 - && ccp_test(pcb, p, CILEN_PREDICTOR_2, 1) <= 0) { - newret = CONFREJ; - } - break; -#endif /* PREDICTOR_SUPPORT */ - - default: - newret = CONFREJ; - } - } - - if (newret == CONFNAK && dont_nak) - newret = CONFREJ; - if (!(newret == CONFACK || (newret == CONFNAK && ret == CONFREJ))) { - /* we're returning this option */ - if (newret == CONFREJ && ret == CONFNAK) - retp = p0; - ret = newret; - if (p != retp) - MEMCPY(retp, p, clen); - retp += clen; - } - - p += clen; - len -= clen; - } - - if (ret != CONFACK) { - if (ret == CONFREJ && *lenp == retp - p0) - pcb->ccp_all_rejected = 1; - else - *lenp = retp - p0; - } -#if MPPE_SUPPORT - if (ret == CONFREJ && ao->mppe && rej_for_ci_mppe) { - ppp_error("MPPE required but peer negotiation failed"); - lcp_close(pcb, "MPPE required but peer negotiation failed"); - } -#endif /* MPPE_SUPPORT */ - return ret; -} - -/* - * Make a string name for a compression method (or 2). - */ -static const char *method_name(ccp_options *opt, ccp_options *opt2) { - static char result[64]; -#if !DEFLATE_SUPPORT && !BSDCOMPRESS_SUPPORT - LWIP_UNUSED_ARG(opt2); -#endif /* !DEFLATE_SUPPORT && !BSDCOMPRESS_SUPPORT */ - - if (!ccp_anycompress(opt)) - return "(none)"; - switch (opt->method) { -#if MPPE_SUPPORT - case CI_MPPE: - { - char *p = result; - char *q = result + sizeof(result); /* 1 past result */ - - ppp_slprintf(p, q - p, "MPPE "); - p += 5; - if (opt->mppe & MPPE_OPT_128) { - ppp_slprintf(p, q - p, "128-bit "); - p += 8; - } - if (opt->mppe & MPPE_OPT_40) { - ppp_slprintf(p, q - p, "40-bit "); - p += 7; - } - if (opt->mppe & MPPE_OPT_STATEFUL) - ppp_slprintf(p, q - p, "stateful"); - else - ppp_slprintf(p, q - p, "stateless"); - - break; - } -#endif /* MPPE_SUPPORT */ -#if DEFLATE_SUPPORT - case CI_DEFLATE: - case CI_DEFLATE_DRAFT: - if (opt2 != NULL && opt2->deflate_size != opt->deflate_size) - ppp_slprintf(result, sizeof(result), "Deflate%s (%d/%d)", - (opt->method == CI_DEFLATE_DRAFT? "(old#)": ""), - opt->deflate_size, opt2->deflate_size); - else - ppp_slprintf(result, sizeof(result), "Deflate%s (%d)", - (opt->method == CI_DEFLATE_DRAFT? "(old#)": ""), - opt->deflate_size); - break; -#endif /* DEFLATE_SUPPORT */ -#if BSDCOMPRESS_SUPPORT - case CI_BSD_COMPRESS: - if (opt2 != NULL && opt2->bsd_bits != opt->bsd_bits) - ppp_slprintf(result, sizeof(result), "BSD-Compress (%d/%d)", - opt->bsd_bits, opt2->bsd_bits); - else - ppp_slprintf(result, sizeof(result), "BSD-Compress (%d)", - opt->bsd_bits); - break; -#endif /* BSDCOMPRESS_SUPPORT */ -#if PREDICTOR_SUPPORT - case CI_PREDICTOR_1: - return "Predictor 1"; - case CI_PREDICTOR_2: - return "Predictor 2"; -#endif /* PREDICTOR_SUPPORT */ - default: - ppp_slprintf(result, sizeof(result), "Method %d", opt->method); - } - return result; -} - -/* - * CCP has come up - inform the kernel driver and log a message. - */ -static void ccp_up(fsm *f) { - ppp_pcb *pcb = f->pcb; - ccp_options *go = &pcb->ccp_gotoptions; - ccp_options *ho = &pcb->ccp_hisoptions; - char method1[64]; - - ccp_set(pcb, 1, 1, go->method, ho->method); - if (ccp_anycompress(go)) { - if (ccp_anycompress(ho)) { - if (go->method == ho->method) { - ppp_notice("%s compression enabled", method_name(go, ho)); - } else { - ppp_strlcpy(method1, method_name(go, NULL), sizeof(method1)); - ppp_notice("%s / %s compression enabled", - method1, method_name(ho, NULL)); - } - } else - ppp_notice("%s receive compression enabled", method_name(go, NULL)); - } else if (ccp_anycompress(ho)) - ppp_notice("%s transmit compression enabled", method_name(ho, NULL)); -#if MPPE_SUPPORT - if (go->mppe) { - continue_networks(pcb); /* Bring up IP et al */ - } -#endif /* MPPE_SUPPORT */ -} - -/* - * CCP has gone down - inform the kernel driver. - */ -static void ccp_down(fsm *f) { - ppp_pcb *pcb = f->pcb; -#if MPPE_SUPPORT - ccp_options *go = &pcb->ccp_gotoptions; -#endif /* MPPE_SUPPORT */ - - if (pcb->ccp_localstate & RACK_PENDING) - UNTIMEOUT(ccp_rack_timeout, f); - pcb->ccp_localstate = 0; - ccp_set(pcb, 1, 0, 0, 0); -#if MPPE_SUPPORT - if (go->mppe) { - go->mppe = 0; - if (pcb->lcp_fsm.state == PPP_FSM_OPENED) { - /* If LCP is not already going down, make sure it does. */ - ppp_error("MPPE disabled"); - lcp_close(pcb, "MPPE disabled"); - } - } -#endif /* MPPE_SUPPORT */ -} - -#if PRINTPKT_SUPPORT -/* - * Print the contents of a CCP packet. - */ -static const char* const ccp_codenames[] = { - "ConfReq", "ConfAck", "ConfNak", "ConfRej", - "TermReq", "TermAck", "CodeRej", - NULL, NULL, NULL, NULL, NULL, NULL, - "ResetReq", "ResetAck", -}; - -static int ccp_printpkt(const u_char *p, int plen, void (*printer) (void *, const char *, ...), void *arg) { - const u_char *p0, *optend; - int code, id, len; - int optlen; - - p0 = p; - if (plen < HEADERLEN) - return 0; - code = p[0]; - id = p[1]; - len = (p[2] << 8) + p[3]; - if (len < HEADERLEN || len > plen) - return 0; - - if (code >= 1 && code <= (int)LWIP_ARRAYSIZE(ccp_codenames) && ccp_codenames[code-1] != NULL) - printer(arg, " %s", ccp_codenames[code-1]); - else - printer(arg, " code=0x%x", code); - printer(arg, " id=0x%x", id); - len -= HEADERLEN; - p += HEADERLEN; - - switch (code) { - case CONFREQ: - case CONFACK: - case CONFNAK: - case CONFREJ: - /* print list of possible compression methods */ - while (len >= 2) { - code = p[0]; - optlen = p[1]; - if (optlen < 2 || optlen > len) - break; - printer(arg, " <"); - len -= optlen; - optend = p + optlen; - switch (code) { -#if MPPE_SUPPORT - case CI_MPPE: - if (optlen >= CILEN_MPPE) { - u_char mppe_opts; - - MPPE_CI_TO_OPTS(&p[2], mppe_opts); - printer(arg, "mppe %s %s %s %s %s %s%s", - (p[2] & MPPE_H_BIT)? "+H": "-H", - (p[5] & MPPE_M_BIT)? "+M": "-M", - (p[5] & MPPE_S_BIT)? "+S": "-S", - (p[5] & MPPE_L_BIT)? "+L": "-L", - (p[5] & MPPE_D_BIT)? "+D": "-D", - (p[5] & MPPE_C_BIT)? "+C": "-C", - (mppe_opts & MPPE_OPT_UNKNOWN)? " +U": ""); - if (mppe_opts & MPPE_OPT_UNKNOWN) - printer(arg, " (%.2x %.2x %.2x %.2x)", - p[2], p[3], p[4], p[5]); - p += CILEN_MPPE; - } - break; -#endif /* MPPE_SUPPORT */ -#if DEFLATE_SUPPORT - case CI_DEFLATE: - case CI_DEFLATE_DRAFT: - if (optlen >= CILEN_DEFLATE) { - printer(arg, "deflate%s %d", - (code == CI_DEFLATE_DRAFT? "(old#)": ""), - DEFLATE_SIZE(p[2])); - if (DEFLATE_METHOD(p[2]) != DEFLATE_METHOD_VAL) - printer(arg, " method %d", DEFLATE_METHOD(p[2])); - if (p[3] != DEFLATE_CHK_SEQUENCE) - printer(arg, " check %d", p[3]); - p += CILEN_DEFLATE; - } - break; -#endif /* DEFLATE_SUPPORT */ -#if BSDCOMPRESS_SUPPORT - case CI_BSD_COMPRESS: - if (optlen >= CILEN_BSD_COMPRESS) { - printer(arg, "bsd v%d %d", BSD_VERSION(p[2]), - BSD_NBITS(p[2])); - p += CILEN_BSD_COMPRESS; - } - break; -#endif /* BSDCOMPRESS_SUPPORT */ -#if PREDICTOR_SUPPORT - case CI_PREDICTOR_1: - if (optlen >= CILEN_PREDICTOR_1) { - printer(arg, "predictor 1"); - p += CILEN_PREDICTOR_1; - } - break; - case CI_PREDICTOR_2: - if (optlen >= CILEN_PREDICTOR_2) { - printer(arg, "predictor 2"); - p += CILEN_PREDICTOR_2; - } - break; -#endif /* PREDICTOR_SUPPORT */ - default: - break; - } - while (p < optend) - printer(arg, " %.2x", *p++); - printer(arg, ">"); - } - break; - - case TERMACK: - case TERMREQ: - if (len > 0 && *p >= ' ' && *p < 0x7f) { - ppp_print_string(p, len, printer, arg); - p += len; - len = 0; - } - break; - default: - break; - } - - /* dump out the rest of the packet in hex */ - while (--len >= 0) - printer(arg, " %.2x", *p++); - - return p - p0; -} -#endif /* PRINTPKT_SUPPORT */ - -#if PPP_DATAINPUT -/* - * We have received a packet that the decompressor failed to - * decompress. Here we would expect to issue a reset-request, but - * Motorola has a patent on resetting the compressor as a result of - * detecting an error in the decompressed data after decompression. - * (See US patent 5,130,993; international patent publication number - * WO 91/10289; Australian patent 73296/91.) - * - * So we ask the kernel whether the error was detected after - * decompression; if it was, we take CCP down, thus disabling - * compression :-(, otherwise we issue the reset-request. - */ -static void ccp_datainput(ppp_pcb *pcb, u_char *pkt, int len) { - fsm *f; -#if MPPE_SUPPORT - ccp_options *go = &pcb->ccp_gotoptions; -#endif /* MPPE_SUPPORT */ - LWIP_UNUSED_ARG(pkt); - LWIP_UNUSED_ARG(len); - - f = &pcb->ccp_fsm; - if (f->state == PPP_FSM_OPENED) { - if (ccp_fatal_error(pcb)) { - /* - * Disable compression by taking CCP down. - */ - ppp_error("Lost compression sync: disabling compression"); - ccp_close(pcb, "Lost compression sync"); -#if MPPE_SUPPORT - /* - * If we were doing MPPE, we must also take the link down. - */ - if (go->mppe) { - ppp_error("Too many MPPE errors, closing LCP"); - lcp_close(pcb, "Too many MPPE errors"); - } -#endif /* MPPE_SUPPORT */ - } else { - /* - * Send a reset-request to reset the peer's compressor. - * We don't do that if we are still waiting for an - * acknowledgement to a previous reset-request. - */ - if (!(pcb->ccp_localstate & RACK_PENDING)) { - fsm_sdata(f, CCP_RESETREQ, f->reqid = ++f->id, NULL, 0); - TIMEOUT(ccp_rack_timeout, f, RACKTIMEOUT); - pcb->ccp_localstate |= RACK_PENDING; - } else - pcb->ccp_localstate |= RREQ_REPEAT; - } - } -} -#endif /* PPP_DATAINPUT */ - -/* - * We have received a packet that the decompressor failed to - * decompress. Issue a reset-request. - */ -void ccp_resetrequest(ppp_pcb *pcb) { - fsm *f = &pcb->ccp_fsm; - - if (f->state != PPP_FSM_OPENED) - return; - - /* - * Send a reset-request to reset the peer's compressor. - * We don't do that if we are still waiting for an - * acknowledgement to a previous reset-request. - */ - if (!(pcb->ccp_localstate & RACK_PENDING)) { - fsm_sdata(f, CCP_RESETREQ, f->reqid = ++f->id, NULL, 0); - TIMEOUT(ccp_rack_timeout, f, RACKTIMEOUT); - pcb->ccp_localstate |= RACK_PENDING; - } else - pcb->ccp_localstate |= RREQ_REPEAT; -} - -/* - * Timeout waiting for reset-ack. - */ -static void ccp_rack_timeout(void *arg) { - fsm *f = (fsm*)arg; - ppp_pcb *pcb = f->pcb; - - if (f->state == PPP_FSM_OPENED && (pcb->ccp_localstate & RREQ_REPEAT)) { - fsm_sdata(f, CCP_RESETREQ, f->reqid, NULL, 0); - TIMEOUT(ccp_rack_timeout, f, RACKTIMEOUT); - pcb->ccp_localstate &= ~RREQ_REPEAT; - } else - pcb->ccp_localstate &= ~RACK_PENDING; -} - -#endif /* PPP_SUPPORT && CCP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.c b/Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.c deleted file mode 100644 index 88f069f..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/ppp/chap-md5.c +++ /dev/null @@ -1,126 +0,0 @@ -/* - * chap-md5.c - New CHAP/MD5 implementation. - * - * Copyright (c) 2003 Paul Mackerras. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. The name(s) of the authors of this software must not be used to - * endorse or promote products derived from this software without - * prior written permission. - * - * 3. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Paul Mackerras - * ". - * - * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY - * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && CHAP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#if 0 /* UNUSED */ -#include -#include -#endif /* UNUSED */ - -#include "netif/ppp/ppp_impl.h" - -#include "netif/ppp/chap-new.h" -#include "netif/ppp/chap-md5.h" -#include "netif/ppp/magic.h" -#include "netif/ppp/pppcrypt.h" - -#define MD5_HASH_SIZE 16 -#define MD5_MIN_CHALLENGE 17 -#define MD5_MAX_CHALLENGE 24 -#define MD5_MIN_MAX_POWER_OF_TWO_CHALLENGE 3 /* 2^3-1 = 7, 17+7 = 24 */ - -#if PPP_SERVER -static void chap_md5_generate_challenge(ppp_pcb *pcb, unsigned char *cp) { - int clen; - LWIP_UNUSED_ARG(pcb); - - clen = MD5_MIN_CHALLENGE + magic_pow(MD5_MIN_MAX_POWER_OF_TWO_CHALLENGE); - *cp++ = clen; - magic_random_bytes(cp, clen); -} - -static int chap_md5_verify_response(ppp_pcb *pcb, int id, const char *name, - const unsigned char *secret, int secret_len, - const unsigned char *challenge, const unsigned char *response, - char *message, int message_space) { - lwip_md5_context ctx; - unsigned char idbyte = id; - unsigned char hash[MD5_HASH_SIZE]; - int challenge_len, response_len; - LWIP_UNUSED_ARG(name); - LWIP_UNUSED_ARG(pcb); - - challenge_len = *challenge++; - response_len = *response++; - if (response_len == MD5_HASH_SIZE) { - /* Generate hash of ID, secret, challenge */ - lwip_md5_init(&ctx); - lwip_md5_starts(&ctx); - lwip_md5_update(&ctx, &idbyte, 1); - lwip_md5_update(&ctx, secret, secret_len); - lwip_md5_update(&ctx, challenge, challenge_len); - lwip_md5_finish(&ctx, hash); - lwip_md5_free(&ctx); - - /* Test if our hash matches the peer's response */ - if (memcmp(hash, response, MD5_HASH_SIZE) == 0) { - ppp_slprintf(message, message_space, "Access granted"); - return 1; - } - } - ppp_slprintf(message, message_space, "Access denied"); - return 0; -} -#endif /* PPP_SERVER */ - -static void chap_md5_make_response(ppp_pcb *pcb, unsigned char *response, int id, const char *our_name, - const unsigned char *challenge, const char *secret, int secret_len, - unsigned char *private_) { - lwip_md5_context ctx; - unsigned char idbyte = id; - int challenge_len = *challenge++; - LWIP_UNUSED_ARG(our_name); - LWIP_UNUSED_ARG(private_); - LWIP_UNUSED_ARG(pcb); - - lwip_md5_init(&ctx); - lwip_md5_starts(&ctx); - lwip_md5_update(&ctx, &idbyte, 1); - lwip_md5_update(&ctx, (const u_char *)secret, secret_len); - lwip_md5_update(&ctx, challenge, challenge_len); - lwip_md5_finish(&ctx, &response[1]); - lwip_md5_free(&ctx); - response[0] = MD5_HASH_SIZE; -} - -const struct chap_digest_type md5_digest = { - CHAP_MD5, /* code */ -#if PPP_SERVER - chap_md5_generate_challenge, - chap_md5_verify_response, -#endif /* PPP_SERVER */ - chap_md5_make_response, - NULL, /* check_success */ - NULL, /* handle_failure */ -}; - -#endif /* PPP_SUPPORT && CHAP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.c b/Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.c deleted file mode 100644 index 485122d..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/ppp/chap-new.c +++ /dev/null @@ -1,677 +0,0 @@ -/* - * chap-new.c - New CHAP implementation. - * - * Copyright (c) 2003 Paul Mackerras. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. The name(s) of the authors of this software must not be used to - * endorse or promote products derived from this software without - * prior written permission. - * - * 3. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Paul Mackerras - * ". - * - * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY - * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && CHAP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#if 0 /* UNUSED */ -#include -#include -#endif /* UNUSED */ - -#include "netif/ppp/ppp_impl.h" - -#if 0 /* UNUSED */ -#include "session.h" -#endif /* UNUSED */ - -#include "netif/ppp/chap-new.h" -#include "netif/ppp/chap-md5.h" -#if MSCHAP_SUPPORT -#include "netif/ppp/chap_ms.h" -#endif -#include "netif/ppp/magic.h" - -#if 0 /* UNUSED */ -/* Hook for a plugin to validate CHAP challenge */ -int (*chap_verify_hook)(const char *name, const char *ourname, int id, - const struct chap_digest_type *digest, - const unsigned char *challenge, const unsigned char *response, - char *message, int message_space) = NULL; -#endif /* UNUSED */ - -#if PPP_OPTIONS -/* - * Command-line options. - */ -static option_t chap_option_list[] = { - { "chap-restart", o_int, &chap_timeout_time, - "Set timeout for CHAP", OPT_PRIO }, - { "chap-max-challenge", o_int, &pcb->settings.chap_max_transmits, - "Set max #xmits for challenge", OPT_PRIO }, - { "chap-interval", o_int, &pcb->settings.chap_rechallenge_time, - "Set interval for rechallenge", OPT_PRIO }, - { NULL } -}; -#endif /* PPP_OPTIONS */ - - -/* Values for flags in chap_client_state and chap_server_state */ -#define LOWERUP 1 -#define AUTH_STARTED 2 -#define AUTH_DONE 4 -#define AUTH_FAILED 8 -#define TIMEOUT_PENDING 0x10 -#define CHALLENGE_VALID 0x20 - -/* - * Prototypes. - */ -static void chap_init(ppp_pcb *pcb); -static void chap_lowerup(ppp_pcb *pcb); -static void chap_lowerdown(ppp_pcb *pcb); -#if PPP_SERVER -static void chap_timeout(void *arg); -static void chap_generate_challenge(ppp_pcb *pcb); -static void chap_handle_response(ppp_pcb *pcb, int code, - unsigned char *pkt, int len); -static int chap_verify_response(ppp_pcb *pcb, const char *name, const char *ourname, int id, - const struct chap_digest_type *digest, - const unsigned char *challenge, const unsigned char *response, - char *message, int message_space); -#endif /* PPP_SERVER */ -static void chap_respond(ppp_pcb *pcb, int id, - unsigned char *pkt, int len); -static void chap_handle_status(ppp_pcb *pcb, int code, int id, - unsigned char *pkt, int len); -static void chap_protrej(ppp_pcb *pcb); -static void chap_input(ppp_pcb *pcb, unsigned char *pkt, int pktlen); -#if PRINTPKT_SUPPORT -static int chap_print_pkt(const unsigned char *p, int plen, - void (*printer) (void *, const char *, ...), void *arg); -#endif /* PRINTPKT_SUPPORT */ - -/* List of digest types that we know about */ -static const struct chap_digest_type* const chap_digests[] = { - &md5_digest, -#if MSCHAP_SUPPORT - &chapms_digest, - &chapms2_digest, -#endif /* MSCHAP_SUPPORT */ - NULL -}; - -/* - * chap_init - reset to initial state. - */ -static void chap_init(ppp_pcb *pcb) { - LWIP_UNUSED_ARG(pcb); - -#if 0 /* Not necessary, everything is cleared in ppp_new() */ - memset(&pcb->chap_client, 0, sizeof(chap_client_state)); -#if PPP_SERVER - memset(&pcb->chap_server, 0, sizeof(chap_server_state)); -#endif /* PPP_SERVER */ -#endif /* 0 */ -} - -/* - * chap_lowerup - we can start doing stuff now. - */ -static void chap_lowerup(ppp_pcb *pcb) { - - pcb->chap_client.flags |= LOWERUP; -#if PPP_SERVER - pcb->chap_server.flags |= LOWERUP; - if (pcb->chap_server.flags & AUTH_STARTED) - chap_timeout(pcb); -#endif /* PPP_SERVER */ -} - -static void chap_lowerdown(ppp_pcb *pcb) { - - pcb->chap_client.flags = 0; -#if PPP_SERVER - if (pcb->chap_server.flags & TIMEOUT_PENDING) - UNTIMEOUT(chap_timeout, pcb); - pcb->chap_server.flags = 0; -#endif /* PPP_SERVER */ -} - -#if PPP_SERVER -/* - * chap_auth_peer - Start authenticating the peer. - * If the lower layer is already up, we start sending challenges, - * otherwise we wait for the lower layer to come up. - */ -void chap_auth_peer(ppp_pcb *pcb, const char *our_name, int digest_code) { - const struct chap_digest_type *dp; - int i; - - if (pcb->chap_server.flags & AUTH_STARTED) { - ppp_error("CHAP: peer authentication already started!"); - return; - } - for (i = 0; (dp = chap_digests[i]) != NULL; ++i) - if (dp->code == digest_code) - break; - if (dp == NULL) - ppp_fatal("CHAP digest 0x%x requested but not available", - digest_code); - - pcb->chap_server.digest = dp; - pcb->chap_server.name = our_name; - /* Start with a random ID value */ - pcb->chap_server.id = magic(); - pcb->chap_server.flags |= AUTH_STARTED; - if (pcb->chap_server.flags & LOWERUP) - chap_timeout(pcb); -} -#endif /* PPP_SERVER */ - -/* - * chap_auth_with_peer - Prepare to authenticate ourselves to the peer. - * There isn't much to do until we receive a challenge. - */ -void chap_auth_with_peer(ppp_pcb *pcb, const char *our_name, int digest_code) { - const struct chap_digest_type *dp; - int i; - - if(NULL == our_name) - return; - - if (pcb->chap_client.flags & AUTH_STARTED) { - ppp_error("CHAP: authentication with peer already started!"); - return; - } - for (i = 0; (dp = chap_digests[i]) != NULL; ++i) - if (dp->code == digest_code) - break; - - if (dp == NULL) - ppp_fatal("CHAP digest 0x%x requested but not available", - digest_code); - - pcb->chap_client.digest = dp; - pcb->chap_client.name = our_name; - pcb->chap_client.flags |= AUTH_STARTED; -} - -#if PPP_SERVER -/* - * chap_timeout - It's time to send another challenge to the peer. - * This could be either a retransmission of a previous challenge, - * or a new challenge to start re-authentication. - */ -static void chap_timeout(void *arg) { - ppp_pcb *pcb = (ppp_pcb*)arg; - struct pbuf *p; - - pcb->chap_server.flags &= ~TIMEOUT_PENDING; - if ((pcb->chap_server.flags & CHALLENGE_VALID) == 0) { - pcb->chap_server.challenge_xmits = 0; - chap_generate_challenge(pcb); - pcb->chap_server.flags |= CHALLENGE_VALID; - } else if (pcb->chap_server.challenge_xmits >= pcb->settings.chap_max_transmits) { - pcb->chap_server.flags &= ~CHALLENGE_VALID; - pcb->chap_server.flags |= AUTH_DONE | AUTH_FAILED; - auth_peer_fail(pcb, PPP_CHAP); - return; - } - - p = pbuf_alloc(PBUF_RAW, (u16_t)(pcb->chap_server.challenge_pktlen), PPP_CTRL_PBUF_TYPE); - if(NULL == p) - return; - if(p->tot_len != p->len) { - pbuf_free(p); - return; - } - MEMCPY(p->payload, pcb->chap_server.challenge, pcb->chap_server.challenge_pktlen); - ppp_write(pcb, p); - ++pcb->chap_server.challenge_xmits; - pcb->chap_server.flags |= TIMEOUT_PENDING; - TIMEOUT(chap_timeout, arg, pcb->settings.chap_timeout_time); -} - -/* - * chap_generate_challenge - generate a challenge string and format - * the challenge packet in pcb->chap_server.challenge_pkt. - */ -static void chap_generate_challenge(ppp_pcb *pcb) { - int clen = 1, nlen, len; - unsigned char *p; - - p = pcb->chap_server.challenge; - MAKEHEADER(p, PPP_CHAP); - p += CHAP_HDRLEN; - pcb->chap_server.digest->generate_challenge(pcb, p); - clen = *p; - nlen = strlen(pcb->chap_server.name); - memcpy(p + 1 + clen, pcb->chap_server.name, nlen); - - len = CHAP_HDRLEN + 1 + clen + nlen; - pcb->chap_server.challenge_pktlen = PPP_HDRLEN + len; - - p = pcb->chap_server.challenge + PPP_HDRLEN; - p[0] = CHAP_CHALLENGE; - p[1] = ++pcb->chap_server.id; - p[2] = len >> 8; - p[3] = len; -} - -/* - * chap_handle_response - check the response to our challenge. - */ -static void chap_handle_response(ppp_pcb *pcb, int id, - unsigned char *pkt, int len) { - int response_len, ok, mlen; - const unsigned char *response; - unsigned char *outp; - struct pbuf *p; - const char *name = NULL; /* initialized to shut gcc up */ -#if 0 /* UNUSED */ - int (*verifier)(const char *, const char *, int, const struct chap_digest_type *, - const unsigned char *, const unsigned char *, char *, int); -#endif /* UNUSED */ - char rname[MAXNAMELEN+1]; - char message[256]; - - if ((pcb->chap_server.flags & LOWERUP) == 0) - return; - if (id != pcb->chap_server.challenge[PPP_HDRLEN+1] || len < 2) - return; - if (pcb->chap_server.flags & CHALLENGE_VALID) { - response = pkt; - GETCHAR(response_len, pkt); - len -= response_len + 1; /* length of name */ - name = (char *)pkt + response_len; - if (len < 0) - return; - - if (pcb->chap_server.flags & TIMEOUT_PENDING) { - pcb->chap_server.flags &= ~TIMEOUT_PENDING; - UNTIMEOUT(chap_timeout, pcb); - } -#if PPP_REMOTENAME - if (pcb->settings.explicit_remote) { - name = pcb->remote_name; - } else -#endif /* PPP_REMOTENAME */ - { - /* Null terminate and clean remote name. */ - ppp_slprintf(rname, sizeof(rname), "%.*v", len, name); - name = rname; - } - -#if 0 /* UNUSED */ - if (chap_verify_hook) - verifier = chap_verify_hook; - else - verifier = chap_verify_response; - ok = (*verifier)(name, pcb->chap_server.name, id, pcb->chap_server.digest, - pcb->chap_server.challenge + PPP_HDRLEN + CHAP_HDRLEN, - response, pcb->chap_server.message, sizeof(pcb->chap_server.message)); -#endif /* UNUSED */ - ok = chap_verify_response(pcb, name, pcb->chap_server.name, id, pcb->chap_server.digest, - pcb->chap_server.challenge + PPP_HDRLEN + CHAP_HDRLEN, - response, message, sizeof(message)); -#if 0 /* UNUSED */ - if (!ok || !auth_number()) { -#endif /* UNUSED */ - if (!ok) { - pcb->chap_server.flags |= AUTH_FAILED; - ppp_warn("Peer %q failed CHAP authentication", name); - } - } else if ((pcb->chap_server.flags & AUTH_DONE) == 0) - return; - - /* send the response */ - mlen = strlen(message); - len = CHAP_HDRLEN + mlen; - p = pbuf_alloc(PBUF_RAW, (u16_t)(PPP_HDRLEN +len), PPP_CTRL_PBUF_TYPE); - if(NULL == p) - return; - if(p->tot_len != p->len) { - pbuf_free(p); - return; - } - - outp = (unsigned char *)p->payload; - MAKEHEADER(outp, PPP_CHAP); - - outp[0] = (pcb->chap_server.flags & AUTH_FAILED)? CHAP_FAILURE: CHAP_SUCCESS; - outp[1] = id; - outp[2] = len >> 8; - outp[3] = len; - if (mlen > 0) - memcpy(outp + CHAP_HDRLEN, message, mlen); - ppp_write(pcb, p); - - if (pcb->chap_server.flags & CHALLENGE_VALID) { - pcb->chap_server.flags &= ~CHALLENGE_VALID; - if (!(pcb->chap_server.flags & AUTH_DONE) && !(pcb->chap_server.flags & AUTH_FAILED)) { - -#if 0 /* UNUSED */ - /* - * Auth is OK, so now we need to check session restrictions - * to ensure everything is OK, but only if we used a - * plugin, and only if we're configured to check. This - * allows us to do PAM checks on PPP servers that - * authenticate against ActiveDirectory, and use AD for - * account info (like when using Winbind integrated with - * PAM). - */ - if (session_mgmt && - session_check(name, NULL, devnam, NULL) == 0) { - pcb->chap_server.flags |= AUTH_FAILED; - ppp_warn("Peer %q failed CHAP Session verification", name); - } -#endif /* UNUSED */ - - } - if (pcb->chap_server.flags & AUTH_FAILED) { - auth_peer_fail(pcb, PPP_CHAP); - } else { - if ((pcb->chap_server.flags & AUTH_DONE) == 0) - auth_peer_success(pcb, PPP_CHAP, - pcb->chap_server.digest->code, - name, strlen(name)); - if (pcb->settings.chap_rechallenge_time) { - pcb->chap_server.flags |= TIMEOUT_PENDING; - TIMEOUT(chap_timeout, pcb, - pcb->settings.chap_rechallenge_time); - } - } - pcb->chap_server.flags |= AUTH_DONE; - } -} - -/* - * chap_verify_response - check whether the peer's response matches - * what we think it should be. Returns 1 if it does (authentication - * succeeded), or 0 if it doesn't. - */ -static int chap_verify_response(ppp_pcb *pcb, const char *name, const char *ourname, int id, - const struct chap_digest_type *digest, - const unsigned char *challenge, const unsigned char *response, - char *message, int message_space) { - int ok; - unsigned char secret[MAXSECRETLEN]; - int secret_len; - - /* Get the secret that the peer is supposed to know */ - if (!get_secret(pcb, name, ourname, (char *)secret, &secret_len, 1)) { - ppp_error("No CHAP secret found for authenticating %q", name); - return 0; - } - ok = digest->verify_response(pcb, id, name, secret, secret_len, challenge, - response, message, message_space); - memset(secret, 0, sizeof(secret)); - - return ok; -} -#endif /* PPP_SERVER */ - -/* - * chap_respond - Generate and send a response to a challenge. - */ -static void chap_respond(ppp_pcb *pcb, int id, - unsigned char *pkt, int len) { - int clen, nlen; - int secret_len; - struct pbuf *p; - u_char *outp; - char rname[MAXNAMELEN+1]; - char secret[MAXSECRETLEN+1]; - - p = pbuf_alloc(PBUF_RAW, (u16_t)(RESP_MAX_PKTLEN), PPP_CTRL_PBUF_TYPE); - if(NULL == p) - return; - if(p->tot_len != p->len) { - pbuf_free(p); - return; - } - - if ((pcb->chap_client.flags & (LOWERUP | AUTH_STARTED)) != (LOWERUP | AUTH_STARTED)) - return; /* not ready */ - if (len < 2 || len < pkt[0] + 1) - return; /* too short */ - clen = pkt[0]; - nlen = len - (clen + 1); - - /* Null terminate and clean remote name. */ - ppp_slprintf(rname, sizeof(rname), "%.*v", nlen, pkt + clen + 1); - -#if PPP_REMOTENAME - /* Microsoft doesn't send their name back in the PPP packet */ - if (pcb->settings.explicit_remote || (pcb->settings.remote_name[0] != 0 && rname[0] == 0)) - strlcpy(rname, pcb->settings.remote_name, sizeof(rname)); -#endif /* PPP_REMOTENAME */ - - /* get secret for authenticating ourselves with the specified host */ - if (!get_secret(pcb, pcb->chap_client.name, rname, secret, &secret_len, 0)) { - secret_len = 0; /* assume null secret if can't find one */ - ppp_warn("No CHAP secret found for authenticating us to %q", rname); - } - - outp = (u_char*)p->payload; - MAKEHEADER(outp, PPP_CHAP); - outp += CHAP_HDRLEN; - - pcb->chap_client.digest->make_response(pcb, outp, id, pcb->chap_client.name, pkt, - secret, secret_len, pcb->chap_client.priv); - memset(secret, 0, secret_len); - - clen = *outp; - nlen = strlen(pcb->chap_client.name); - memcpy(outp + clen + 1, pcb->chap_client.name, nlen); - - outp = (u_char*)p->payload + PPP_HDRLEN; - len = CHAP_HDRLEN + clen + 1 + nlen; - outp[0] = CHAP_RESPONSE; - outp[1] = id; - outp[2] = len >> 8; - outp[3] = len; - - pbuf_realloc(p, PPP_HDRLEN + len); - ppp_write(pcb, p); -} - -static void chap_handle_status(ppp_pcb *pcb, int code, int id, - unsigned char *pkt, int len) { - const char *msg = NULL; - LWIP_UNUSED_ARG(id); - - if ((pcb->chap_client.flags & (AUTH_DONE|AUTH_STARTED|LOWERUP)) - != (AUTH_STARTED|LOWERUP)) - return; - pcb->chap_client.flags |= AUTH_DONE; - - if (code == CHAP_SUCCESS) { - /* used for MS-CHAP v2 mutual auth, yuck */ - if (pcb->chap_client.digest->check_success != NULL) { - if (!(*pcb->chap_client.digest->check_success)(pcb, pkt, len, pcb->chap_client.priv)) - code = CHAP_FAILURE; - } else - msg = "CHAP authentication succeeded"; - } else { - if (pcb->chap_client.digest->handle_failure != NULL) - (*pcb->chap_client.digest->handle_failure)(pcb, pkt, len); - else - msg = "CHAP authentication failed"; - } - if (msg) { - if (len > 0) - ppp_info("%s: %.*v", msg, len, pkt); - else - ppp_info("%s", msg); - } - if (code == CHAP_SUCCESS) - auth_withpeer_success(pcb, PPP_CHAP, pcb->chap_client.digest->code); - else { - pcb->chap_client.flags |= AUTH_FAILED; - ppp_error("CHAP authentication failed"); - auth_withpeer_fail(pcb, PPP_CHAP); - } -} - -static void chap_input(ppp_pcb *pcb, unsigned char *pkt, int pktlen) { - unsigned char code, id; - int len; - - if (pktlen < CHAP_HDRLEN) - return; - GETCHAR(code, pkt); - GETCHAR(id, pkt); - GETSHORT(len, pkt); - if (len < CHAP_HDRLEN || len > pktlen) - return; - len -= CHAP_HDRLEN; - - switch (code) { - case CHAP_CHALLENGE: - chap_respond(pcb, id, pkt, len); - break; -#if PPP_SERVER - case CHAP_RESPONSE: - chap_handle_response(pcb, id, pkt, len); - break; -#endif /* PPP_SERVER */ - case CHAP_FAILURE: - case CHAP_SUCCESS: - chap_handle_status(pcb, code, id, pkt, len); - break; - default: - break; - } -} - -static void chap_protrej(ppp_pcb *pcb) { - -#if PPP_SERVER - if (pcb->chap_server.flags & TIMEOUT_PENDING) { - pcb->chap_server.flags &= ~TIMEOUT_PENDING; - UNTIMEOUT(chap_timeout, pcb); - } - if (pcb->chap_server.flags & AUTH_STARTED) { - pcb->chap_server.flags = 0; - auth_peer_fail(pcb, PPP_CHAP); - } -#endif /* PPP_SERVER */ - if ((pcb->chap_client.flags & (AUTH_STARTED|AUTH_DONE)) == AUTH_STARTED) { - pcb->chap_client.flags &= ~AUTH_STARTED; - ppp_error("CHAP authentication failed due to protocol-reject"); - auth_withpeer_fail(pcb, PPP_CHAP); - } -} - -#if PRINTPKT_SUPPORT -/* - * chap_print_pkt - print the contents of a CHAP packet. - */ -static const char* const chap_code_names[] = { - "Challenge", "Response", "Success", "Failure" -}; - -static int chap_print_pkt(const unsigned char *p, int plen, - void (*printer) (void *, const char *, ...), void *arg) { - int code, id, len; - int clen, nlen; - unsigned char x; - - if (plen < CHAP_HDRLEN) - return 0; - GETCHAR(code, p); - GETCHAR(id, p); - GETSHORT(len, p); - if (len < CHAP_HDRLEN || len > plen) - return 0; - - if (code >= 1 && code <= (int)LWIP_ARRAYSIZE(chap_code_names)) - printer(arg, " %s", chap_code_names[code-1]); - else - printer(arg, " code=0x%x", code); - printer(arg, " id=0x%x", id); - len -= CHAP_HDRLEN; - switch (code) { - case CHAP_CHALLENGE: - case CHAP_RESPONSE: - if (len < 1) - break; - clen = p[0]; - if (len < clen + 1) - break; - ++p; - nlen = len - clen - 1; - printer(arg, " <"); - for (; clen > 0; --clen) { - GETCHAR(x, p); - printer(arg, "%.2x", x); - } - printer(arg, ">, name = "); - ppp_print_string(p, nlen, printer, arg); - break; - case CHAP_FAILURE: - case CHAP_SUCCESS: - printer(arg, " "); - ppp_print_string(p, len, printer, arg); - break; - default: - for (clen = len; clen > 0; --clen) { - GETCHAR(x, p); - printer(arg, " %.2x", x); - } - /* no break */ - } - - return len + CHAP_HDRLEN; -} -#endif /* PRINTPKT_SUPPORT */ - -const struct protent chap_protent = { - PPP_CHAP, - chap_init, - chap_input, - chap_protrej, - chap_lowerup, - chap_lowerdown, - NULL, /* open */ - NULL, /* close */ -#if PRINTPKT_SUPPORT - chap_print_pkt, -#endif /* PRINTPKT_SUPPORT */ -#if PPP_DATAINPUT - NULL, /* datainput */ -#endif /* PPP_DATAINPUT */ -#if PRINTPKT_SUPPORT - "CHAP", /* name */ - NULL, /* data_name */ -#endif /* PRINTPKT_SUPPORT */ -#if PPP_OPTIONS - chap_option_list, - NULL, /* check_options */ -#endif /* PPP_OPTIONS */ -#if DEMAND_SUPPORT - NULL, - NULL -#endif /* DEMAND_SUPPORT */ -}; - -#endif /* PPP_SUPPORT && CHAP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.c b/Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.c deleted file mode 100644 index 5a989c9..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/ppp/chap_ms.c +++ /dev/null @@ -1,962 +0,0 @@ -/* - * chap_ms.c - Microsoft MS-CHAP compatible implementation. - * - * Copyright (c) 1995 Eric Rosenquist. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The name(s) of the authors of this software must not be used to - * endorse or promote products derived from this software without - * prior written permission. - * - * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY - * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/* - * Modifications by Lauri Pesonen / lpesonen@clinet.fi, april 1997 - * - * Implemented LANManager type password response to MS-CHAP challenges. - * Now pppd provides both NT style and LANMan style blocks, and the - * prefered is set by option "ms-lanman". Default is to use NT. - * The hash text (StdText) was taken from Win95 RASAPI32.DLL. - * - * You should also use DOMAIN\\USERNAME as described in README.MSCHAP80 - */ - -/* - * Modifications by Frank Cusack, frank@google.com, March 2002. - * - * Implemented MS-CHAPv2 functionality, heavily based on sample - * implementation in RFC 2759. Implemented MPPE functionality, - * heavily based on sample implementation in RFC 3079. - * - * Copyright (c) 2002 Google, Inc. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The name(s) of the authors of this software must not be used to - * endorse or promote products derived from this software without - * prior written permission. - * - * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY - * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && MSCHAP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#if 0 /* UNUSED */ -#include -#include -#include -#include -#include -#include -#include -#endif /* UNUSED */ - -#include "netif/ppp/ppp_impl.h" - -#include "netif/ppp/chap-new.h" -#include "netif/ppp/chap_ms.h" -#include "netif/ppp/pppcrypt.h" -#include "netif/ppp/magic.h" -#if MPPE_SUPPORT -#include "netif/ppp/mppe.h" /* For mppe_sha1_pad*, mppe_set_key() */ -#endif /* MPPE_SUPPORT */ - -#define SHA1_SIGNATURE_SIZE 20 -#define MD4_SIGNATURE_SIZE 16 /* 16 bytes in a MD4 message digest */ -#define MAX_NT_PASSWORD 256 /* Max (Unicode) chars in an NT pass */ - -#define MS_CHAP_RESPONSE_LEN 49 /* Response length for MS-CHAP */ -#define MS_CHAP2_RESPONSE_LEN 49 /* Response length for MS-CHAPv2 */ -#define MS_AUTH_RESPONSE_LENGTH 40 /* MS-CHAPv2 authenticator response, */ - /* as ASCII */ - -/* Error codes for MS-CHAP failure messages. */ -#define MS_CHAP_ERROR_RESTRICTED_LOGON_HOURS 646 -#define MS_CHAP_ERROR_ACCT_DISABLED 647 -#define MS_CHAP_ERROR_PASSWD_EXPIRED 648 -#define MS_CHAP_ERROR_NO_DIALIN_PERMISSION 649 -#define MS_CHAP_ERROR_AUTHENTICATION_FAILURE 691 -#define MS_CHAP_ERROR_CHANGING_PASSWORD 709 - -/* - * Offsets within the response field for MS-CHAP - */ -#define MS_CHAP_LANMANRESP 0 -#define MS_CHAP_LANMANRESP_LEN 24 -#define MS_CHAP_NTRESP 24 -#define MS_CHAP_NTRESP_LEN 24 -#define MS_CHAP_USENT 48 - -/* - * Offsets within the response field for MS-CHAP2 - */ -#define MS_CHAP2_PEER_CHALLENGE 0 -#define MS_CHAP2_PEER_CHAL_LEN 16 -#define MS_CHAP2_RESERVED_LEN 8 -#define MS_CHAP2_NTRESP 24 -#define MS_CHAP2_NTRESP_LEN 24 -#define MS_CHAP2_FLAGS 48 - -#if MPPE_SUPPORT -#if 0 /* UNUSED */ -/* These values are the RADIUS attribute values--see RFC 2548. */ -#define MPPE_ENC_POL_ENC_ALLOWED 1 -#define MPPE_ENC_POL_ENC_REQUIRED 2 -#define MPPE_ENC_TYPES_RC4_40 2 -#define MPPE_ENC_TYPES_RC4_128 4 - -/* used by plugins (using above values) */ -extern void set_mppe_enc_types(int, int); -#endif /* UNUSED */ -#endif /* MPPE_SUPPORT */ - -/* Are we the authenticator or authenticatee? For MS-CHAPv2 key derivation. */ -#define MS_CHAP2_AUTHENTICATEE 0 -#define MS_CHAP2_AUTHENTICATOR 1 - -static void ascii2unicode (const char[], int, u_char[]); -static void NTPasswordHash (u_char *, int, u_char[MD4_SIGNATURE_SIZE]); -static void ChallengeResponse (const u_char *, const u_char *, u_char[24]); -static void ChallengeHash (const u_char[16], const u_char *, const char *, u_char[8]); -static void ChapMS_NT (const u_char *, const char *, int, u_char[24]); -static void ChapMS2_NT (const u_char *, const u_char[16], const char *, const char *, int, - u_char[24]); -static void GenerateAuthenticatorResponsePlain - (const char*, int, u_char[24], const u_char[16], const u_char *, - const char *, u_char[41]); -#ifdef MSLANMAN -static void ChapMS_LANMan (u_char *, char *, int, u_char *); -#endif - -static void GenerateAuthenticatorResponse(const u_char PasswordHashHash[MD4_SIGNATURE_SIZE], - u_char NTResponse[24], const u_char PeerChallenge[16], - const u_char *rchallenge, const char *username, - u_char authResponse[MS_AUTH_RESPONSE_LENGTH+1]); - -#if MPPE_SUPPORT -static void Set_Start_Key (ppp_pcb *pcb, const u_char *, const char *, int); -static void SetMasterKeys (ppp_pcb *pcb, const char *, int, u_char[24], int); -#endif /* MPPE_SUPPORT */ - -static void ChapMS (ppp_pcb *pcb, const u_char *, const char *, int, u_char *); -static void ChapMS2 (ppp_pcb *pcb, const u_char *, const u_char *, const char *, const char *, int, - u_char *, u_char[MS_AUTH_RESPONSE_LENGTH+1], int); - -#ifdef MSLANMAN -bool ms_lanman = 0; /* Use LanMan password instead of NT */ - /* Has meaning only with MS-CHAP challenges */ -#endif - -#if MPPE_SUPPORT -#ifdef DEBUGMPPEKEY -/* For MPPE debug */ -/* Use "[]|}{?/><,`!2&&(" (sans quotes) for RFC 3079 MS-CHAPv2 test value */ -static char *mschap_challenge = NULL; -/* Use "!@\#$%^&*()_+:3|~" (sans quotes, backslash is to escape #) for ... */ -static char *mschap2_peer_challenge = NULL; -#endif - -#include "netif/ppp/fsm.h" /* Need to poke MPPE options */ -#include "netif/ppp/ccp.h" -#endif /* MPPE_SUPPORT */ - -#if PPP_OPTIONS -/* - * Command-line options. - */ -static option_t chapms_option_list[] = { -#ifdef MSLANMAN - { "ms-lanman", o_bool, &ms_lanman, - "Use LanMan passwd when using MS-CHAP", 1 }, -#endif -#ifdef DEBUGMPPEKEY - { "mschap-challenge", o_string, &mschap_challenge, - "specify CHAP challenge" }, - { "mschap2-peer-challenge", o_string, &mschap2_peer_challenge, - "specify CHAP peer challenge" }, -#endif - { NULL } -}; -#endif /* PPP_OPTIONS */ - -#if PPP_SERVER -/* - * chapms_generate_challenge - generate a challenge for MS-CHAP. - * For MS-CHAP the challenge length is fixed at 8 bytes. - * The length goes in challenge[0] and the actual challenge starts - * at challenge[1]. - */ -static void chapms_generate_challenge(ppp_pcb *pcb, unsigned char *challenge) { - LWIP_UNUSED_ARG(pcb); - - *challenge++ = 8; -#ifdef DEBUGMPPEKEY - if (mschap_challenge && strlen(mschap_challenge) == 8) - memcpy(challenge, mschap_challenge, 8); - else -#endif - magic_random_bytes(challenge, 8); -} - -static void chapms2_generate_challenge(ppp_pcb *pcb, unsigned char *challenge) { - LWIP_UNUSED_ARG(pcb); - - *challenge++ = 16; -#ifdef DEBUGMPPEKEY - if (mschap_challenge && strlen(mschap_challenge) == 16) - memcpy(challenge, mschap_challenge, 16); - else -#endif - magic_random_bytes(challenge, 16); -} - -static int chapms_verify_response(ppp_pcb *pcb, int id, const char *name, - const unsigned char *secret, int secret_len, - const unsigned char *challenge, const unsigned char *response, - char *message, int message_space) { - unsigned char md[MS_CHAP_RESPONSE_LEN]; - int diff; - int challenge_len, response_len; - LWIP_UNUSED_ARG(id); - LWIP_UNUSED_ARG(name); - - challenge_len = *challenge++; /* skip length, is 8 */ - response_len = *response++; - if (response_len != MS_CHAP_RESPONSE_LEN) - goto bad; - -#ifndef MSLANMAN - if (!response[MS_CHAP_USENT]) { - /* Should really propagate this into the error packet. */ - ppp_notice("Peer request for LANMAN auth not supported"); - goto bad; - } -#endif - - /* Generate the expected response. */ - ChapMS(pcb, (const u_char *)challenge, (const char *)secret, secret_len, md); - -#ifdef MSLANMAN - /* Determine which part of response to verify against */ - if (!response[MS_CHAP_USENT]) - diff = memcmp(&response[MS_CHAP_LANMANRESP], - &md[MS_CHAP_LANMANRESP], MS_CHAP_LANMANRESP_LEN); - else -#endif - diff = memcmp(&response[MS_CHAP_NTRESP], &md[MS_CHAP_NTRESP], - MS_CHAP_NTRESP_LEN); - - if (diff == 0) { - ppp_slprintf(message, message_space, "Access granted"); - return 1; - } - - bad: - /* See comments below for MS-CHAP V2 */ - ppp_slprintf(message, message_space, "E=691 R=1 C=%0.*B V=0", - challenge_len, challenge); - return 0; -} - -static int chapms2_verify_response(ppp_pcb *pcb, int id, const char *name, - const unsigned char *secret, int secret_len, - const unsigned char *challenge, const unsigned char *response, - char *message, int message_space) { - unsigned char md[MS_CHAP2_RESPONSE_LEN]; - char saresponse[MS_AUTH_RESPONSE_LENGTH+1]; - int challenge_len, response_len; - LWIP_UNUSED_ARG(id); - - challenge_len = *challenge++; /* skip length, is 16 */ - response_len = *response++; - if (response_len != MS_CHAP2_RESPONSE_LEN) - goto bad; /* not even the right length */ - - /* Generate the expected response and our mutual auth. */ - ChapMS2(pcb, (const u_char*)challenge, (const u_char*)&response[MS_CHAP2_PEER_CHALLENGE], name, - (const char *)secret, secret_len, md, - (unsigned char *)saresponse, MS_CHAP2_AUTHENTICATOR); - - /* compare MDs and send the appropriate status */ - /* - * Per RFC 2759, success message must be formatted as - * "S= M=" - * where - * is the Authenticator Response (mutual auth) - * is a text message - * - * However, some versions of Windows (win98 tested) do not know - * about the M= part (required per RFC 2759) and flag - * it as an error (reported incorrectly as an encryption error - * to the user). Since the RFC requires it, and it can be - * useful information, we supply it if the peer is a conforming - * system. Luckily (?), win98 sets the Flags field to 0x04 - * (contrary to RFC requirements) so we can use that to - * distinguish between conforming and non-conforming systems. - * - * Special thanks to Alex Swiridov for - * help debugging this. - */ - if (memcmp(&md[MS_CHAP2_NTRESP], &response[MS_CHAP2_NTRESP], - MS_CHAP2_NTRESP_LEN) == 0) { - if (response[MS_CHAP2_FLAGS]) - ppp_slprintf(message, message_space, "S=%s", saresponse); - else - ppp_slprintf(message, message_space, "S=%s M=%s", - saresponse, "Access granted"); - return 1; - } - - bad: - /* - * Failure message must be formatted as - * "E=e R=r C=c V=v M=m" - * where - * e = error code (we use 691, ERROR_AUTHENTICATION_FAILURE) - * r = retry (we use 1, ok to retry) - * c = challenge to use for next response, we reuse previous - * v = Change Password version supported, we use 0 - * m = text message - * - * The M=m part is only for MS-CHAPv2. Neither win2k nor - * win98 (others untested) display the message to the user anyway. - * They also both ignore the E=e code. - * - * Note that it's safe to reuse the same challenge as we don't - * actually accept another response based on the error message - * (and no clients try to resend a response anyway). - * - * Basically, this whole bit is useless code, even the small - * implementation here is only because of overspecification. - */ - ppp_slprintf(message, message_space, "E=691 R=1 C=%0.*B V=0 M=%s", - challenge_len, challenge, "Access denied"); - return 0; -} -#endif /* PPP_SERVER */ - -static void chapms_make_response(ppp_pcb *pcb, unsigned char *response, int id, const char *our_name, - const unsigned char *challenge, const char *secret, int secret_len, - unsigned char *private_) { - LWIP_UNUSED_ARG(id); - LWIP_UNUSED_ARG(our_name); - LWIP_UNUSED_ARG(private_); - challenge++; /* skip length, should be 8 */ - *response++ = MS_CHAP_RESPONSE_LEN; - ChapMS(pcb, challenge, secret, secret_len, response); -} - -static void chapms2_make_response(ppp_pcb *pcb, unsigned char *response, int id, const char *our_name, - const unsigned char *challenge, const char *secret, int secret_len, - unsigned char *private_) { - LWIP_UNUSED_ARG(id); - challenge++; /* skip length, should be 16 */ - *response++ = MS_CHAP2_RESPONSE_LEN; - ChapMS2(pcb, challenge, -#ifdef DEBUGMPPEKEY - mschap2_peer_challenge, -#else - NULL, -#endif - our_name, secret, secret_len, response, private_, - MS_CHAP2_AUTHENTICATEE); -} - -static int chapms2_check_success(ppp_pcb *pcb, unsigned char *msg, int len, unsigned char *private_) { - LWIP_UNUSED_ARG(pcb); - - if ((len < MS_AUTH_RESPONSE_LENGTH + 2) || - strncmp((char *)msg, "S=", 2) != 0) { - /* Packet does not start with "S=" */ - ppp_error("MS-CHAPv2 Success packet is badly formed."); - return 0; - } - msg += 2; - len -= 2; - if (len < MS_AUTH_RESPONSE_LENGTH - || memcmp(msg, private_, MS_AUTH_RESPONSE_LENGTH)) { - /* Authenticator Response did not match expected. */ - ppp_error("MS-CHAPv2 mutual authentication failed."); - return 0; - } - /* Authenticator Response matches. */ - msg += MS_AUTH_RESPONSE_LENGTH; /* Eat it */ - len -= MS_AUTH_RESPONSE_LENGTH; - if ((len >= 3) && !strncmp((char *)msg, " M=", 3)) { - msg += 3; /* Eat the delimiter */ - } else if (len) { - /* Packet has extra text which does not begin " M=" */ - ppp_error("MS-CHAPv2 Success packet is badly formed."); - return 0; - } - return 1; -} - -static void chapms_handle_failure(ppp_pcb *pcb, unsigned char *inp, int len) { - int err; - const char *p; - char msg[64]; - LWIP_UNUSED_ARG(pcb); - - /* We want a null-terminated string for strxxx(). */ - len = LWIP_MIN(len, 63); - MEMCPY(msg, inp, len); - msg[len] = 0; - p = msg; - - /* - * Deal with MS-CHAP formatted failure messages; just print the - * M= part (if any). For MS-CHAP we're not really supposed - * to use M=, but it shouldn't hurt. See - * chapms[2]_verify_response. - */ - if (!strncmp(p, "E=", 2)) - err = strtol(p+2, NULL, 10); /* Remember the error code. */ - else - goto print_msg; /* Message is badly formatted. */ - - if (len && ((p = strstr(p, " M=")) != NULL)) { - /* M= field found. */ - p += 3; - } else { - /* No M=; use the error code. */ - switch (err) { - case MS_CHAP_ERROR_RESTRICTED_LOGON_HOURS: - p = "E=646 Restricted logon hours"; - break; - - case MS_CHAP_ERROR_ACCT_DISABLED: - p = "E=647 Account disabled"; - break; - - case MS_CHAP_ERROR_PASSWD_EXPIRED: - p = "E=648 Password expired"; - break; - - case MS_CHAP_ERROR_NO_DIALIN_PERMISSION: - p = "E=649 No dialin permission"; - break; - - case MS_CHAP_ERROR_AUTHENTICATION_FAILURE: - p = "E=691 Authentication failure"; - break; - - case MS_CHAP_ERROR_CHANGING_PASSWORD: - /* Should never see this, we don't support Change Password. */ - p = "E=709 Error changing password"; - break; - - default: - ppp_error("Unknown MS-CHAP authentication failure: %.*v", - len, inp); - return; - } - } -print_msg: - if (p != NULL) - ppp_error("MS-CHAP authentication failed: %v", p); -} - -static void ChallengeResponse(const u_char *challenge, - const u_char PasswordHash[MD4_SIGNATURE_SIZE], - u_char response[24]) { - u_char ZPasswordHash[21]; - lwip_des_context des; - u_char des_key[8]; - - BZERO(ZPasswordHash, sizeof(ZPasswordHash)); - MEMCPY(ZPasswordHash, PasswordHash, MD4_SIGNATURE_SIZE); - -#if 0 - dbglog("ChallengeResponse - ZPasswordHash %.*B", - sizeof(ZPasswordHash), ZPasswordHash); -#endif - - pppcrypt_56_to_64_bit_key(ZPasswordHash + 0, des_key); - lwip_des_init(&des); - lwip_des_setkey_enc(&des, des_key); - lwip_des_crypt_ecb(&des, challenge, response +0); - lwip_des_free(&des); - - pppcrypt_56_to_64_bit_key(ZPasswordHash + 7, des_key); - lwip_des_init(&des); - lwip_des_setkey_enc(&des, des_key); - lwip_des_crypt_ecb(&des, challenge, response +8); - lwip_des_free(&des); - - pppcrypt_56_to_64_bit_key(ZPasswordHash + 14, des_key); - lwip_des_init(&des); - lwip_des_setkey_enc(&des, des_key); - lwip_des_crypt_ecb(&des, challenge, response +16); - lwip_des_free(&des); - -#if 0 - dbglog("ChallengeResponse - response %.24B", response); -#endif -} - -static void ChallengeHash(const u_char PeerChallenge[16], const u_char *rchallenge, - const char *username, u_char Challenge[8]) { - lwip_sha1_context sha1Context; - u_char sha1Hash[SHA1_SIGNATURE_SIZE]; - const char *user; - - /* remove domain from "domain\username" */ - if ((user = strrchr(username, '\\')) != NULL) - ++user; - else - user = username; - - lwip_sha1_init(&sha1Context); - lwip_sha1_starts(&sha1Context); - lwip_sha1_update(&sha1Context, PeerChallenge, 16); - lwip_sha1_update(&sha1Context, rchallenge, 16); - lwip_sha1_update(&sha1Context, (const unsigned char*)user, strlen(user)); - lwip_sha1_finish(&sha1Context, sha1Hash); - lwip_sha1_free(&sha1Context); - - MEMCPY(Challenge, sha1Hash, 8); -} - -/* - * Convert the ASCII version of the password to Unicode. - * This implicitly supports 8-bit ISO8859/1 characters. - * This gives us the little-endian representation, which - * is assumed by all M$ CHAP RFCs. (Unicode byte ordering - * is machine-dependent.) - */ -static void ascii2unicode(const char ascii[], int ascii_len, u_char unicode[]) { - int i; - - BZERO(unicode, ascii_len * 2); - for (i = 0; i < ascii_len; i++) - unicode[i * 2] = (u_char) ascii[i]; -} - -static void NTPasswordHash(u_char *secret, int secret_len, u_char hash[MD4_SIGNATURE_SIZE]) { - lwip_md4_context md4Context; - - lwip_md4_init(&md4Context); - lwip_md4_starts(&md4Context); - lwip_md4_update(&md4Context, secret, secret_len); - lwip_md4_finish(&md4Context, hash); - lwip_md4_free(&md4Context); -} - -static void ChapMS_NT(const u_char *rchallenge, const char *secret, int secret_len, - u_char NTResponse[24]) { - u_char unicodePassword[MAX_NT_PASSWORD * 2]; - u_char PasswordHash[MD4_SIGNATURE_SIZE]; - - /* Hash the Unicode version of the secret (== password). */ - ascii2unicode(secret, secret_len, unicodePassword); - NTPasswordHash(unicodePassword, secret_len * 2, PasswordHash); - - ChallengeResponse(rchallenge, PasswordHash, NTResponse); -} - -static void ChapMS2_NT(const u_char *rchallenge, const u_char PeerChallenge[16], const char *username, - const char *secret, int secret_len, u_char NTResponse[24]) { - u_char unicodePassword[MAX_NT_PASSWORD * 2]; - u_char PasswordHash[MD4_SIGNATURE_SIZE]; - u_char Challenge[8]; - - ChallengeHash(PeerChallenge, rchallenge, username, Challenge); - - /* Hash the Unicode version of the secret (== password). */ - ascii2unicode(secret, secret_len, unicodePassword); - NTPasswordHash(unicodePassword, secret_len * 2, PasswordHash); - - ChallengeResponse(Challenge, PasswordHash, NTResponse); -} - -#ifdef MSLANMAN -static u_char *StdText = (u_char *)"KGS!@#$%"; /* key from rasapi32.dll */ - -static void ChapMS_LANMan(u_char *rchallenge, char *secret, int secret_len, - unsigned char *response) { - int i; - u_char UcasePassword[MAX_NT_PASSWORD]; /* max is actually 14 */ - u_char PasswordHash[MD4_SIGNATURE_SIZE]; - lwip_des_context des; - u_char des_key[8]; - - /* LANMan password is case insensitive */ - BZERO(UcasePassword, sizeof(UcasePassword)); - for (i = 0; i < secret_len; i++) - UcasePassword[i] = (u_char)toupper(secret[i]); - - pppcrypt_56_to_64_bit_key(UcasePassword +0, des_key); - lwip_des_init(&des); - lwip_des_setkey_enc(&des, des_key); - lwip_des_crypt_ecb(&des, StdText, PasswordHash +0); - lwip_des_free(&des); - - pppcrypt_56_to_64_bit_key(UcasePassword +7, des_key); - lwip_des_init(&des); - lwip_des_setkey_enc(&des, des_key); - lwip_des_crypt_ecb(&des, StdText, PasswordHash +8); - lwip_des_free(&des); - - ChallengeResponse(rchallenge, PasswordHash, &response[MS_CHAP_LANMANRESP]); -} -#endif - - -static void GenerateAuthenticatorResponse(const u_char PasswordHashHash[MD4_SIGNATURE_SIZE], - u_char NTResponse[24], const u_char PeerChallenge[16], - const u_char *rchallenge, const char *username, - u_char authResponse[MS_AUTH_RESPONSE_LENGTH+1]) { - /* - * "Magic" constants used in response generation, from RFC 2759. - */ - static const u_char Magic1[39] = /* "Magic server to client signing constant" */ - { 0x4D, 0x61, 0x67, 0x69, 0x63, 0x20, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x20, 0x74, 0x6F, 0x20, 0x63, 0x6C, 0x69, 0x65, - 0x6E, 0x74, 0x20, 0x73, 0x69, 0x67, 0x6E, 0x69, 0x6E, 0x67, - 0x20, 0x63, 0x6F, 0x6E, 0x73, 0x74, 0x61, 0x6E, 0x74 }; - static const u_char Magic2[41] = /* "Pad to make it do more than one iteration" */ - { 0x50, 0x61, 0x64, 0x20, 0x74, 0x6F, 0x20, 0x6D, 0x61, 0x6B, - 0x65, 0x20, 0x69, 0x74, 0x20, 0x64, 0x6F, 0x20, 0x6D, 0x6F, - 0x72, 0x65, 0x20, 0x74, 0x68, 0x61, 0x6E, 0x20, 0x6F, 0x6E, - 0x65, 0x20, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6F, - 0x6E }; - - int i; - lwip_sha1_context sha1Context; - u_char Digest[SHA1_SIGNATURE_SIZE]; - u_char Challenge[8]; - - lwip_sha1_init(&sha1Context); - lwip_sha1_starts(&sha1Context); - lwip_sha1_update(&sha1Context, PasswordHashHash, MD4_SIGNATURE_SIZE); - lwip_sha1_update(&sha1Context, NTResponse, 24); - lwip_sha1_update(&sha1Context, Magic1, sizeof(Magic1)); - lwip_sha1_finish(&sha1Context, Digest); - lwip_sha1_free(&sha1Context); - - ChallengeHash(PeerChallenge, rchallenge, username, Challenge); - - lwip_sha1_init(&sha1Context); - lwip_sha1_starts(&sha1Context); - lwip_sha1_update(&sha1Context, Digest, sizeof(Digest)); - lwip_sha1_update(&sha1Context, Challenge, sizeof(Challenge)); - lwip_sha1_update(&sha1Context, Magic2, sizeof(Magic2)); - lwip_sha1_finish(&sha1Context, Digest); - lwip_sha1_free(&sha1Context); - - /* Convert to ASCII hex string. */ - for (i = 0; i < LWIP_MAX((MS_AUTH_RESPONSE_LENGTH / 2), (int)sizeof(Digest)); i++) - sprintf((char *)&authResponse[i * 2], "%02X", Digest[i]); -} - - -static void GenerateAuthenticatorResponsePlain( - const char *secret, int secret_len, - u_char NTResponse[24], const u_char PeerChallenge[16], - const u_char *rchallenge, const char *username, - u_char authResponse[MS_AUTH_RESPONSE_LENGTH+1]) { - u_char unicodePassword[MAX_NT_PASSWORD * 2]; - u_char PasswordHash[MD4_SIGNATURE_SIZE]; - u_char PasswordHashHash[MD4_SIGNATURE_SIZE]; - - /* Hash (x2) the Unicode version of the secret (== password). */ - ascii2unicode(secret, secret_len, unicodePassword); - NTPasswordHash(unicodePassword, secret_len * 2, PasswordHash); - NTPasswordHash(PasswordHash, sizeof(PasswordHash), - PasswordHashHash); - - GenerateAuthenticatorResponse(PasswordHashHash, NTResponse, PeerChallenge, - rchallenge, username, authResponse); -} - - -#if MPPE_SUPPORT -/* - * Set mppe_xxxx_key from MS-CHAP credentials. (see RFC 3079) - */ -static void Set_Start_Key(ppp_pcb *pcb, const u_char *rchallenge, const char *secret, int secret_len) { - u_char unicodePassword[MAX_NT_PASSWORD * 2]; - u_char PasswordHash[MD4_SIGNATURE_SIZE]; - u_char PasswordHashHash[MD4_SIGNATURE_SIZE]; - lwip_sha1_context sha1Context; - u_char Digest[SHA1_SIGNATURE_SIZE]; /* >= MPPE_MAX_KEY_LEN */ - - /* Hash (x2) the Unicode version of the secret (== password). */ - ascii2unicode(secret, secret_len, unicodePassword); - NTPasswordHash(unicodePassword, secret_len * 2, PasswordHash); - NTPasswordHash(PasswordHash, sizeof(PasswordHash), PasswordHashHash); - - lwip_sha1_init(&sha1Context); - lwip_sha1_starts(&sha1Context); - lwip_sha1_update(&sha1Context, PasswordHashHash, MD4_SIGNATURE_SIZE); - lwip_sha1_update(&sha1Context, PasswordHashHash, MD4_SIGNATURE_SIZE); - lwip_sha1_update(&sha1Context, rchallenge, 8); - lwip_sha1_finish(&sha1Context, Digest); - lwip_sha1_free(&sha1Context); - - /* Same key in both directions. */ - mppe_set_key(pcb, &pcb->mppe_comp, Digest); - mppe_set_key(pcb, &pcb->mppe_decomp, Digest); - - pcb->mppe_keys_set = 1; -} - -/* - * Set mppe_xxxx_key from MS-CHAPv2 credentials. (see RFC 3079) - */ -static void SetMasterKeys(ppp_pcb *pcb, const char *secret, int secret_len, u_char NTResponse[24], int IsServer) { - u_char unicodePassword[MAX_NT_PASSWORD * 2]; - u_char PasswordHash[MD4_SIGNATURE_SIZE]; - u_char PasswordHashHash[MD4_SIGNATURE_SIZE]; - lwip_sha1_context sha1Context; - u_char MasterKey[SHA1_SIGNATURE_SIZE]; /* >= MPPE_MAX_KEY_LEN */ - u_char Digest[SHA1_SIGNATURE_SIZE]; /* >= MPPE_MAX_KEY_LEN */ - const u_char *s; - - /* "This is the MPPE Master Key" */ - static const u_char Magic1[27] = - { 0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x74, - 0x68, 0x65, 0x20, 0x4d, 0x50, 0x50, 0x45, 0x20, 0x4d, - 0x61, 0x73, 0x74, 0x65, 0x72, 0x20, 0x4b, 0x65, 0x79 }; - /* "On the client side, this is the send key; " - "on the server side, it is the receive key." */ - static const u_char Magic2[84] = - { 0x4f, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x69, - 0x65, 0x6e, 0x74, 0x20, 0x73, 0x69, 0x64, 0x65, 0x2c, 0x20, - 0x74, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x74, 0x68, - 0x65, 0x20, 0x73, 0x65, 0x6e, 0x64, 0x20, 0x6b, 0x65, 0x79, - 0x3b, 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x73, 0x69, 0x64, 0x65, - 0x2c, 0x20, 0x69, 0x74, 0x20, 0x69, 0x73, 0x20, 0x74, 0x68, - 0x65, 0x20, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x20, - 0x6b, 0x65, 0x79, 0x2e }; - /* "On the client side, this is the receive key; " - "on the server side, it is the send key." */ - static const u_char Magic3[84] = - { 0x4f, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6c, 0x69, - 0x65, 0x6e, 0x74, 0x20, 0x73, 0x69, 0x64, 0x65, 0x2c, 0x20, - 0x74, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x74, 0x68, - 0x65, 0x20, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x20, - 0x6b, 0x65, 0x79, 0x3b, 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, - 0x65, 0x20, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x73, - 0x69, 0x64, 0x65, 0x2c, 0x20, 0x69, 0x74, 0x20, 0x69, 0x73, - 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x65, 0x6e, 0x64, 0x20, - 0x6b, 0x65, 0x79, 0x2e }; - - /* Hash (x2) the Unicode version of the secret (== password). */ - ascii2unicode(secret, secret_len, unicodePassword); - NTPasswordHash(unicodePassword, secret_len * 2, PasswordHash); - NTPasswordHash(PasswordHash, sizeof(PasswordHash), PasswordHashHash); - - lwip_sha1_init(&sha1Context); - lwip_sha1_starts(&sha1Context); - lwip_sha1_update(&sha1Context, PasswordHashHash, MD4_SIGNATURE_SIZE); - lwip_sha1_update(&sha1Context, NTResponse, 24); - lwip_sha1_update(&sha1Context, Magic1, sizeof(Magic1)); - lwip_sha1_finish(&sha1Context, MasterKey); - lwip_sha1_free(&sha1Context); - - /* - * generate send key - */ - if (IsServer) - s = Magic3; - else - s = Magic2; - lwip_sha1_init(&sha1Context); - lwip_sha1_starts(&sha1Context); - lwip_sha1_update(&sha1Context, MasterKey, 16); - lwip_sha1_update(&sha1Context, mppe_sha1_pad1, SHA1_PAD_SIZE); - lwip_sha1_update(&sha1Context, s, 84); - lwip_sha1_update(&sha1Context, mppe_sha1_pad2, SHA1_PAD_SIZE); - lwip_sha1_finish(&sha1Context, Digest); - lwip_sha1_free(&sha1Context); - - mppe_set_key(pcb, &pcb->mppe_comp, Digest); - - /* - * generate recv key - */ - if (IsServer) - s = Magic2; - else - s = Magic3; - lwip_sha1_init(&sha1Context); - lwip_sha1_starts(&sha1Context); - lwip_sha1_update(&sha1Context, MasterKey, 16); - lwip_sha1_update(&sha1Context, mppe_sha1_pad1, SHA1_PAD_SIZE); - lwip_sha1_update(&sha1Context, s, 84); - lwip_sha1_update(&sha1Context, mppe_sha1_pad2, SHA1_PAD_SIZE); - lwip_sha1_finish(&sha1Context, Digest); - lwip_sha1_free(&sha1Context); - - mppe_set_key(pcb, &pcb->mppe_decomp, Digest); - - pcb->mppe_keys_set = 1; -} - -#endif /* MPPE_SUPPORT */ - - -static void ChapMS(ppp_pcb *pcb, const u_char *rchallenge, const char *secret, int secret_len, - unsigned char *response) { -#if !MPPE_SUPPORT - LWIP_UNUSED_ARG(pcb); -#endif /* !MPPE_SUPPORT */ - BZERO(response, MS_CHAP_RESPONSE_LEN); - - ChapMS_NT(rchallenge, secret, secret_len, &response[MS_CHAP_NTRESP]); - -#ifdef MSLANMAN - ChapMS_LANMan(rchallenge, secret, secret_len, - &response[MS_CHAP_LANMANRESP]); - - /* preferred method is set by option */ - response[MS_CHAP_USENT] = !ms_lanman; -#else - response[MS_CHAP_USENT] = 1; -#endif - -#if MPPE_SUPPORT - Set_Start_Key(pcb, rchallenge, secret, secret_len); -#endif /* MPPE_SUPPORT */ -} - - -/* - * If PeerChallenge is NULL, one is generated and the PeerChallenge - * field of response is filled in. Call this way when generating a response. - * If PeerChallenge is supplied, it is copied into the PeerChallenge field. - * Call this way when verifying a response (or debugging). - * Do not call with PeerChallenge = response. - * - * The PeerChallenge field of response is then used for calculation of the - * Authenticator Response. - */ -static void ChapMS2(ppp_pcb *pcb, const u_char *rchallenge, const u_char *PeerChallenge, - const char *user, const char *secret, int secret_len, unsigned char *response, - u_char authResponse[], int authenticator) { - /* ARGSUSED */ - LWIP_UNUSED_ARG(authenticator); -#if !MPPE_SUPPORT - LWIP_UNUSED_ARG(pcb); -#endif /* !MPPE_SUPPORT */ - - BZERO(response, MS_CHAP2_RESPONSE_LEN); - - /* Generate the Peer-Challenge if requested, or copy it if supplied. */ - if (!PeerChallenge) - magic_random_bytes(&response[MS_CHAP2_PEER_CHALLENGE], MS_CHAP2_PEER_CHAL_LEN); - else - MEMCPY(&response[MS_CHAP2_PEER_CHALLENGE], PeerChallenge, - MS_CHAP2_PEER_CHAL_LEN); - - /* Generate the NT-Response */ - ChapMS2_NT(rchallenge, &response[MS_CHAP2_PEER_CHALLENGE], user, - secret, secret_len, &response[MS_CHAP2_NTRESP]); - - /* Generate the Authenticator Response. */ - GenerateAuthenticatorResponsePlain(secret, secret_len, - &response[MS_CHAP2_NTRESP], - &response[MS_CHAP2_PEER_CHALLENGE], - rchallenge, user, authResponse); - -#if MPPE_SUPPORT - SetMasterKeys(pcb, secret, secret_len, - &response[MS_CHAP2_NTRESP], authenticator); -#endif /* MPPE_SUPPORT */ -} - -#if 0 /* UNUSED */ -#if MPPE_SUPPORT -/* - * Set MPPE options from plugins. - */ -void set_mppe_enc_types(int policy, int types) { - /* Early exit for unknown policies. */ - if (policy != MPPE_ENC_POL_ENC_ALLOWED || - policy != MPPE_ENC_POL_ENC_REQUIRED) - return; - - /* Don't modify MPPE if it's optional and wasn't already configured. */ - if (policy == MPPE_ENC_POL_ENC_ALLOWED && !ccp_wantoptions[0].mppe) - return; - - /* - * Disable undesirable encryption types. Note that we don't ENABLE - * any encryption types, to avoid overriding manual configuration. - */ - switch(types) { - case MPPE_ENC_TYPES_RC4_40: - ccp_wantoptions[0].mppe &= ~MPPE_OPT_128; /* disable 128-bit */ - break; - case MPPE_ENC_TYPES_RC4_128: - ccp_wantoptions[0].mppe &= ~MPPE_OPT_40; /* disable 40-bit */ - break; - default: - break; - } -} -#endif /* MPPE_SUPPORT */ -#endif /* UNUSED */ - -const struct chap_digest_type chapms_digest = { - CHAP_MICROSOFT, /* code */ -#if PPP_SERVER - chapms_generate_challenge, - chapms_verify_response, -#endif /* PPP_SERVER */ - chapms_make_response, - NULL, /* check_success */ - chapms_handle_failure, -}; - -const struct chap_digest_type chapms2_digest = { - CHAP_MICROSOFT_V2, /* code */ -#if PPP_SERVER - chapms2_generate_challenge, - chapms2_verify_response, -#endif /* PPP_SERVER */ - chapms2_make_response, - chapms2_check_success, - chapms_handle_failure, -}; - -#endif /* PPP_SUPPORT && MSCHAP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/ppp/demand.c b/Middlewares/Third_Party/LwIP/src/netif/ppp/demand.c deleted file mode 100644 index 26c6c30..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/ppp/demand.c +++ /dev/null @@ -1,465 +0,0 @@ -/* - * demand.c - Support routines for demand-dialling. - * - * Copyright (c) 1996-2002 Paul Mackerras. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. The name(s) of the authors of this software must not be used to - * endorse or promote products derived from this software without - * prior written permission. - * - * 3. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Paul Mackerras - * ". - * - * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY - * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && DEMAND_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#ifdef PPP_FILTER -#include -#endif - -#include "netif/ppp/ppp_impl.h" - -#include "netif/ppp/fsm.h" -#include "netif/ppp/ipcp.h" -#include "netif/ppp/lcp.h" - -char *frame; -int framelen; -int framemax; -int escape_flag; -int flush_flag; -int fcs; - -struct packet { - int length; - struct packet *next; - unsigned char data[1]; -}; - -struct packet *pend_q; -struct packet *pend_qtail; - -static int active_packet (unsigned char *, int); - -/* - * demand_conf - configure the interface for doing dial-on-demand. - */ -void -demand_conf() -{ - int i; - const struct protent *protp; - -/* framemax = lcp_allowoptions[0].mru; - if (framemax < PPP_MRU) */ - framemax = PPP_MRU; - framemax += PPP_HDRLEN + PPP_FCSLEN; - frame = malloc(framemax); - if (frame == NULL) - novm("demand frame"); - framelen = 0; - pend_q = NULL; - escape_flag = 0; - flush_flag = 0; - fcs = PPP_INITFCS; - - netif_set_mtu(pcb, LWIP_MIN(lcp_allowoptions[0].mru, PPP_MRU)); - if (ppp_send_config(pcb, PPP_MRU, (u32_t) 0, 0, 0) < 0 - || ppp_recv_config(pcb, PPP_MRU, (u32_t) 0, 0, 0) < 0) - fatal("Couldn't set up demand-dialled PPP interface: %m"); - -#ifdef PPP_FILTER - set_filters(&pass_filter, &active_filter); -#endif - - /* - * Call the demand_conf procedure for each protocol that's got one. - */ - for (i = 0; (protp = protocols[i]) != NULL; ++i) - if (protp->demand_conf != NULL) - ((*protp->demand_conf)(pcb)); -/* FIXME: find a way to die() here */ -#if 0 - if (!((*protp->demand_conf)(pcb))) - die(1); -#endif -} - - -/* - * demand_block - set each network protocol to block further packets. - */ -void -demand_block() -{ - int i; - const struct protent *protp; - - for (i = 0; (protp = protocols[i]) != NULL; ++i) - if (protp->demand_conf != NULL) - sifnpmode(pcb, protp->protocol & ~0x8000, NPMODE_QUEUE); - get_loop_output(); -} - -/* - * demand_discard - set each network protocol to discard packets - * with an error. - */ -void -demand_discard() -{ - struct packet *pkt, *nextpkt; - int i; - const struct protent *protp; - - for (i = 0; (protp = protocols[i]) != NULL; ++i) - if (protp->demand_conf != NULL) - sifnpmode(pcb, protp->protocol & ~0x8000, NPMODE_ERROR); - get_loop_output(); - - /* discard all saved packets */ - for (pkt = pend_q; pkt != NULL; pkt = nextpkt) { - nextpkt = pkt->next; - free(pkt); - } - pend_q = NULL; - framelen = 0; - flush_flag = 0; - escape_flag = 0; - fcs = PPP_INITFCS; -} - -/* - * demand_unblock - set each enabled network protocol to pass packets. - */ -void -demand_unblock() -{ - int i; - const struct protent *protp; - - for (i = 0; (protp = protocols[i]) != NULL; ++i) - if (protp->demand_conf != NULL) - sifnpmode(pcb, protp->protocol & ~0x8000, NPMODE_PASS); -} - -/* - * FCS lookup table as calculated by genfcstab. - */ -static u_short fcstab[256] = { - 0x0000, 0x1189, 0x2312, 0x329b, 0x4624, 0x57ad, 0x6536, 0x74bf, - 0x8c48, 0x9dc1, 0xaf5a, 0xbed3, 0xca6c, 0xdbe5, 0xe97e, 0xf8f7, - 0x1081, 0x0108, 0x3393, 0x221a, 0x56a5, 0x472c, 0x75b7, 0x643e, - 0x9cc9, 0x8d40, 0xbfdb, 0xae52, 0xdaed, 0xcb64, 0xf9ff, 0xe876, - 0x2102, 0x308b, 0x0210, 0x1399, 0x6726, 0x76af, 0x4434, 0x55bd, - 0xad4a, 0xbcc3, 0x8e58, 0x9fd1, 0xeb6e, 0xfae7, 0xc87c, 0xd9f5, - 0x3183, 0x200a, 0x1291, 0x0318, 0x77a7, 0x662e, 0x54b5, 0x453c, - 0xbdcb, 0xac42, 0x9ed9, 0x8f50, 0xfbef, 0xea66, 0xd8fd, 0xc974, - 0x4204, 0x538d, 0x6116, 0x709f, 0x0420, 0x15a9, 0x2732, 0x36bb, - 0xce4c, 0xdfc5, 0xed5e, 0xfcd7, 0x8868, 0x99e1, 0xab7a, 0xbaf3, - 0x5285, 0x430c, 0x7197, 0x601e, 0x14a1, 0x0528, 0x37b3, 0x263a, - 0xdecd, 0xcf44, 0xfddf, 0xec56, 0x98e9, 0x8960, 0xbbfb, 0xaa72, - 0x6306, 0x728f, 0x4014, 0x519d, 0x2522, 0x34ab, 0x0630, 0x17b9, - 0xef4e, 0xfec7, 0xcc5c, 0xddd5, 0xa96a, 0xb8e3, 0x8a78, 0x9bf1, - 0x7387, 0x620e, 0x5095, 0x411c, 0x35a3, 0x242a, 0x16b1, 0x0738, - 0xffcf, 0xee46, 0xdcdd, 0xcd54, 0xb9eb, 0xa862, 0x9af9, 0x8b70, - 0x8408, 0x9581, 0xa71a, 0xb693, 0xc22c, 0xd3a5, 0xe13e, 0xf0b7, - 0x0840, 0x19c9, 0x2b52, 0x3adb, 0x4e64, 0x5fed, 0x6d76, 0x7cff, - 0x9489, 0x8500, 0xb79b, 0xa612, 0xd2ad, 0xc324, 0xf1bf, 0xe036, - 0x18c1, 0x0948, 0x3bd3, 0x2a5a, 0x5ee5, 0x4f6c, 0x7df7, 0x6c7e, - 0xa50a, 0xb483, 0x8618, 0x9791, 0xe32e, 0xf2a7, 0xc03c, 0xd1b5, - 0x2942, 0x38cb, 0x0a50, 0x1bd9, 0x6f66, 0x7eef, 0x4c74, 0x5dfd, - 0xb58b, 0xa402, 0x9699, 0x8710, 0xf3af, 0xe226, 0xd0bd, 0xc134, - 0x39c3, 0x284a, 0x1ad1, 0x0b58, 0x7fe7, 0x6e6e, 0x5cf5, 0x4d7c, - 0xc60c, 0xd785, 0xe51e, 0xf497, 0x8028, 0x91a1, 0xa33a, 0xb2b3, - 0x4a44, 0x5bcd, 0x6956, 0x78df, 0x0c60, 0x1de9, 0x2f72, 0x3efb, - 0xd68d, 0xc704, 0xf59f, 0xe416, 0x90a9, 0x8120, 0xb3bb, 0xa232, - 0x5ac5, 0x4b4c, 0x79d7, 0x685e, 0x1ce1, 0x0d68, 0x3ff3, 0x2e7a, - 0xe70e, 0xf687, 0xc41c, 0xd595, 0xa12a, 0xb0a3, 0x8238, 0x93b1, - 0x6b46, 0x7acf, 0x4854, 0x59dd, 0x2d62, 0x3ceb, 0x0e70, 0x1ff9, - 0xf78f, 0xe606, 0xd49d, 0xc514, 0xb1ab, 0xa022, 0x92b9, 0x8330, - 0x7bc7, 0x6a4e, 0x58d5, 0x495c, 0x3de3, 0x2c6a, 0x1ef1, 0x0f78 -}; - -/* - * loop_chars - process characters received from the loopback. - * Calls loop_frame when a complete frame has been accumulated. - * Return value is 1 if we need to bring up the link, 0 otherwise. - */ -int -loop_chars(p, n) - unsigned char *p; - int n; -{ - int c, rv; - - rv = 0; - -/* check for synchronous connection... */ - - if ( (p[0] == 0xFF) && (p[1] == 0x03) ) { - rv = loop_frame(p,n); - return rv; - } - - for (; n > 0; --n) { - c = *p++; - if (c == PPP_FLAG) { - if (!escape_flag && !flush_flag - && framelen > 2 && fcs == PPP_GOODFCS) { - framelen -= 2; - if (loop_frame((unsigned char *)frame, framelen)) - rv = 1; - } - framelen = 0; - flush_flag = 0; - escape_flag = 0; - fcs = PPP_INITFCS; - continue; - } - if (flush_flag) - continue; - if (escape_flag) { - c ^= PPP_TRANS; - escape_flag = 0; - } else if (c == PPP_ESCAPE) { - escape_flag = 1; - continue; - } - if (framelen >= framemax) { - flush_flag = 1; - continue; - } - frame[framelen++] = c; - fcs = PPP_FCS(fcs, c); - } - return rv; -} - -/* - * loop_frame - given a frame obtained from the loopback, - * decide whether to bring up the link or not, and, if we want - * to transmit this frame later, put it on the pending queue. - * Return value is 1 if we need to bring up the link, 0 otherwise. - * We assume that the kernel driver has already applied the - * pass_filter, so we won't get packets it rejected. - * We apply the active_filter to see if we want this packet to - * bring up the link. - */ -int -loop_frame(frame, len) - unsigned char *frame; - int len; -{ - struct packet *pkt; - - /* dbglog("from loop: %P", frame, len); */ - if (len < PPP_HDRLEN) - return 0; - if ((PPP_PROTOCOL(frame) & 0x8000) != 0) - return 0; /* shouldn't get any of these anyway */ - if (!active_packet(frame, len)) - return 0; - - pkt = (struct packet *) malloc(sizeof(struct packet) + len); - if (pkt != NULL) { - pkt->length = len; - pkt->next = NULL; - memcpy(pkt->data, frame, len); - if (pend_q == NULL) - pend_q = pkt; - else - pend_qtail->next = pkt; - pend_qtail = pkt; - } - return 1; -} - -/* - * demand_rexmit - Resend all those frames which we got via the - * loopback, now that the real serial link is up. - */ -void -demand_rexmit(proto, newip) - int proto; - u32_t newip; -{ - struct packet *pkt, *prev, *nextpkt; - unsigned short checksum; - unsigned short pkt_checksum = 0; - unsigned iphdr; - struct timeval tv; - char cv = 0; - char ipstr[16]; - - prev = NULL; - pkt = pend_q; - pend_q = NULL; - tv.tv_sec = 1; - tv.tv_usec = 0; - select(0,NULL,NULL,NULL,&tv); /* Sleep for 1 Seconds */ - for (; pkt != NULL; pkt = nextpkt) { - nextpkt = pkt->next; - if (PPP_PROTOCOL(pkt->data) == proto) { - if ( (proto == PPP_IP) && newip ) { - /* Get old checksum */ - - iphdr = (pkt->data[4] & 15) << 2; - checksum = *((unsigned short *) (pkt->data+14)); - if (checksum == 0xFFFF) { - checksum = 0; - } - - - if (pkt->data[13] == 17) { - pkt_checksum = *((unsigned short *) (pkt->data+10+iphdr)); - if (pkt_checksum) { - cv = 1; - if (pkt_checksum == 0xFFFF) { - pkt_checksum = 0; - } - } - else { - cv = 0; - } - } - - if (pkt->data[13] == 6) { - pkt_checksum = *((unsigned short *) (pkt->data+20+iphdr)); - cv = 1; - if (pkt_checksum == 0xFFFF) { - pkt_checksum = 0; - } - } - - /* Delete old Source-IP-Address */ - checksum -= *((unsigned short *) (pkt->data+16)) ^ 0xFFFF; - checksum -= *((unsigned short *) (pkt->data+18)) ^ 0xFFFF; - - pkt_checksum -= *((unsigned short *) (pkt->data+16)) ^ 0xFFFF; - pkt_checksum -= *((unsigned short *) (pkt->data+18)) ^ 0xFFFF; - - /* Change Source-IP-Address */ - * ((u32_t *) (pkt->data + 16)) = newip; - - /* Add new Source-IP-Address */ - checksum += *((unsigned short *) (pkt->data+16)) ^ 0xFFFF; - checksum += *((unsigned short *) (pkt->data+18)) ^ 0xFFFF; - - pkt_checksum += *((unsigned short *) (pkt->data+16)) ^ 0xFFFF; - pkt_checksum += *((unsigned short *) (pkt->data+18)) ^ 0xFFFF; - - /* Write new checksum */ - if (!checksum) { - checksum = 0xFFFF; - } - *((unsigned short *) (pkt->data+14)) = checksum; - if (pkt->data[13] == 6) { - *((unsigned short *) (pkt->data+20+iphdr)) = pkt_checksum; - } - if (cv && (pkt->data[13] == 17) ) { - *((unsigned short *) (pkt->data+10+iphdr)) = pkt_checksum; - } - - /* Log Packet */ - strcpy(ipstr,inet_ntoa(*( (struct in_addr *) (pkt->data+16)))); - if (pkt->data[13] == 1) { - syslog(LOG_INFO,"Open ICMP %s -> %s\n", - ipstr, - inet_ntoa(*( (struct in_addr *) (pkt->data+20)))); - } else { - syslog(LOG_INFO,"Open %s %s:%d -> %s:%d\n", - pkt->data[13] == 6 ? "TCP" : "UDP", - ipstr, - ntohs(*( (short *) (pkt->data+iphdr+4))), - inet_ntoa(*( (struct in_addr *) (pkt->data+20))), - ntohs(*( (short *) (pkt->data+iphdr+6)))); - } - } - output(pcb, pkt->data, pkt->length); - free(pkt); - } else { - if (prev == NULL) - pend_q = pkt; - else - prev->next = pkt; - prev = pkt; - } - } - pend_qtail = prev; - if (prev != NULL) - prev->next = NULL; -} - -/* - * Scan a packet to decide whether it is an "active" packet, - * that is, whether it is worth bringing up the link for. - */ -static int -active_packet(p, len) - unsigned char *p; - int len; -{ - int proto, i; - const struct protent *protp; - - if (len < PPP_HDRLEN) - return 0; - proto = PPP_PROTOCOL(p); -#ifdef PPP_FILTER - p[0] = 1; /* outbound packet indicator */ - if ((pass_filter.bf_len != 0 - && bpf_filter(pass_filter.bf_insns, p, len, len) == 0) - || (active_filter.bf_len != 0 - && bpf_filter(active_filter.bf_insns, p, len, len) == 0)) { - p[0] = 0xff; - return 0; - } - p[0] = 0xff; -#endif - for (i = 0; (protp = protocols[i]) != NULL; ++i) { - if (protp->protocol < 0xC000 && (protp->protocol & ~0x8000) == proto) { - if (protp->active_pkt == NULL) - return 1; - return (*protp->active_pkt)(p, len); - } - } - return 0; /* not a supported protocol !!?? */ -} - -#endif /* PPP_SUPPORT && DEMAND_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/ppp/eap.c b/Middlewares/Third_Party/LwIP/src/netif/ppp/eap.c deleted file mode 100644 index 8fb5636..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/ppp/eap.c +++ /dev/null @@ -1,2423 +0,0 @@ -/* - * eap.c - Extensible Authentication Protocol for PPP (RFC 2284) - * - * Copyright (c) 2001 by Sun Microsystems, Inc. - * All rights reserved. - * - * Non-exclusive rights to redistribute, modify, translate, and use - * this software in source and binary forms, in whole or in part, is - * hereby granted, provided that the above copyright notice is - * duplicated in any source form, and that neither the name of the - * copyright holder nor the author is used to endorse or promote - * products derived from this software. - * - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED - * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. - * - * Original version by James Carlson - * - * This implementation of EAP supports MD5-Challenge and SRP-SHA1 - * authentication styles. Note that support of MD5-Challenge is a - * requirement of RFC 2284, and that it's essentially just a - * reimplementation of regular RFC 1994 CHAP using EAP messages. - * - * As an authenticator ("server"), there are multiple phases for each - * style. In the first phase of each style, the unauthenticated peer - * name is queried using the EAP Identity request type. If the - * "remotename" option is used, then this phase is skipped, because - * the peer's name is presumed to be known. - * - * For MD5-Challenge, there are two phases, and the second phase - * consists of sending the challenge itself and handling the - * associated response. - * - * For SRP-SHA1, there are four phases. The second sends 's', 'N', - * and 'g'. The reply contains 'A'. The third sends 'B', and the - * reply contains 'M1'. The forth sends the 'M2' value. - * - * As an authenticatee ("client"), there's just a single phase -- - * responding to the queries generated by the peer. EAP is an - * authenticator-driven protocol. - * - * Based on draft-ietf-pppext-eap-srp-03.txt. - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && EAP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#include "netif/ppp/ppp_impl.h" -#include "netif/ppp/eap.h" -#include "netif/ppp/magic.h" -#include "netif/ppp/pppcrypt.h" - -#ifdef USE_SRP -#include -#include -#include -#endif /* USE_SRP */ - -#ifndef SHA_DIGESTSIZE -#define SHA_DIGESTSIZE 20 -#endif - -#ifdef USE_SRP -static char *pn_secret = NULL; /* Pseudonym generating secret */ -#endif - -#if PPP_OPTIONS -/* - * Command-line options. - */ -static option_t eap_option_list[] = { - { "eap-restart", o_int, &eap_states[0].es_server.ea_timeout, - "Set retransmit timeout for EAP Requests (server)" }, - { "eap-max-sreq", o_int, &eap_states[0].es_server.ea_maxrequests, - "Set max number of EAP Requests sent (server)" }, - { "eap-timeout", o_int, &eap_states[0].es_client.ea_timeout, - "Set time limit for peer EAP authentication" }, - { "eap-max-rreq", o_int, &eap_states[0].es_client.ea_maxrequests, - "Set max number of EAP Requests allows (client)" }, - { "eap-interval", o_int, &eap_states[0].es_rechallenge, - "Set interval for EAP rechallenge" }, -#ifdef USE_SRP - { "srp-interval", o_int, &eap_states[0].es_lwrechallenge, - "Set interval for SRP lightweight rechallenge" }, - { "srp-pn-secret", o_string, &pn_secret, - "Long term pseudonym generation secret" }, - { "srp-use-pseudonym", o_bool, &eap_states[0].es_usepseudo, - "Use pseudonym if offered one by server", 1 }, -#endif - { NULL } -}; -#endif /* PPP_OPTIONS */ - -/* - * Protocol entry points. - */ -static void eap_init(ppp_pcb *pcb); -static void eap_input(ppp_pcb *pcb, u_char *inp, int inlen); -static void eap_protrej(ppp_pcb *pcb); -static void eap_lowerup(ppp_pcb *pcb); -static void eap_lowerdown(ppp_pcb *pcb); -#if PRINTPKT_SUPPORT -static int eap_printpkt(const u_char *inp, int inlen, - void (*)(void *arg, const char *fmt, ...), void *arg); -#endif /* PRINTPKT_SUPPORT */ - -const struct protent eap_protent = { - PPP_EAP, /* protocol number */ - eap_init, /* initialization procedure */ - eap_input, /* process a received packet */ - eap_protrej, /* process a received protocol-reject */ - eap_lowerup, /* lower layer has gone up */ - eap_lowerdown, /* lower layer has gone down */ - NULL, /* open the protocol */ - NULL, /* close the protocol */ -#if PRINTPKT_SUPPORT - eap_printpkt, /* print a packet in readable form */ -#endif /* PRINTPKT_SUPPORT */ -#if PPP_DATAINPUT - NULL, /* process a received data packet */ -#endif /* PPP_DATAINPUT */ -#if PRINTPKT_SUPPORT - "EAP", /* text name of protocol */ - NULL, /* text name of corresponding data protocol */ -#endif /* PRINTPKT_SUPPORT */ -#if PPP_OPTIONS - eap_option_list, /* list of command-line options */ - NULL, /* check requested options; assign defaults */ -#endif /* PPP_OPTIONS */ -#if DEMAND_SUPPORT - NULL, /* configure interface for demand-dial */ - NULL /* say whether to bring up link for this pkt */ -#endif /* DEMAND_SUPPORT */ -}; - -#ifdef USE_SRP -/* - * A well-known 2048 bit modulus. - */ -static const u_char wkmodulus[] = { - 0xAC, 0x6B, 0xDB, 0x41, 0x32, 0x4A, 0x9A, 0x9B, - 0xF1, 0x66, 0xDE, 0x5E, 0x13, 0x89, 0x58, 0x2F, - 0xAF, 0x72, 0xB6, 0x65, 0x19, 0x87, 0xEE, 0x07, - 0xFC, 0x31, 0x92, 0x94, 0x3D, 0xB5, 0x60, 0x50, - 0xA3, 0x73, 0x29, 0xCB, 0xB4, 0xA0, 0x99, 0xED, - 0x81, 0x93, 0xE0, 0x75, 0x77, 0x67, 0xA1, 0x3D, - 0xD5, 0x23, 0x12, 0xAB, 0x4B, 0x03, 0x31, 0x0D, - 0xCD, 0x7F, 0x48, 0xA9, 0xDA, 0x04, 0xFD, 0x50, - 0xE8, 0x08, 0x39, 0x69, 0xED, 0xB7, 0x67, 0xB0, - 0xCF, 0x60, 0x95, 0x17, 0x9A, 0x16, 0x3A, 0xB3, - 0x66, 0x1A, 0x05, 0xFB, 0xD5, 0xFA, 0xAA, 0xE8, - 0x29, 0x18, 0xA9, 0x96, 0x2F, 0x0B, 0x93, 0xB8, - 0x55, 0xF9, 0x79, 0x93, 0xEC, 0x97, 0x5E, 0xEA, - 0xA8, 0x0D, 0x74, 0x0A, 0xDB, 0xF4, 0xFF, 0x74, - 0x73, 0x59, 0xD0, 0x41, 0xD5, 0xC3, 0x3E, 0xA7, - 0x1D, 0x28, 0x1E, 0x44, 0x6B, 0x14, 0x77, 0x3B, - 0xCA, 0x97, 0xB4, 0x3A, 0x23, 0xFB, 0x80, 0x16, - 0x76, 0xBD, 0x20, 0x7A, 0x43, 0x6C, 0x64, 0x81, - 0xF1, 0xD2, 0xB9, 0x07, 0x87, 0x17, 0x46, 0x1A, - 0x5B, 0x9D, 0x32, 0xE6, 0x88, 0xF8, 0x77, 0x48, - 0x54, 0x45, 0x23, 0xB5, 0x24, 0xB0, 0xD5, 0x7D, - 0x5E, 0xA7, 0x7A, 0x27, 0x75, 0xD2, 0xEC, 0xFA, - 0x03, 0x2C, 0xFB, 0xDB, 0xF5, 0x2F, 0xB3, 0x78, - 0x61, 0x60, 0x27, 0x90, 0x04, 0xE5, 0x7A, 0xE6, - 0xAF, 0x87, 0x4E, 0x73, 0x03, 0xCE, 0x53, 0x29, - 0x9C, 0xCC, 0x04, 0x1C, 0x7B, 0xC3, 0x08, 0xD8, - 0x2A, 0x56, 0x98, 0xF3, 0xA8, 0xD0, 0xC3, 0x82, - 0x71, 0xAE, 0x35, 0xF8, 0xE9, 0xDB, 0xFB, 0xB6, - 0x94, 0xB5, 0xC8, 0x03, 0xD8, 0x9F, 0x7A, 0xE4, - 0x35, 0xDE, 0x23, 0x6D, 0x52, 0x5F, 0x54, 0x75, - 0x9B, 0x65, 0xE3, 0x72, 0xFC, 0xD6, 0x8E, 0xF2, - 0x0F, 0xA7, 0x11, 0x1F, 0x9E, 0x4A, 0xFF, 0x73 -}; -#endif - -#if PPP_SERVER -/* Local forward declarations. */ -static void eap_server_timeout(void *arg); -#endif /* PPP_SERVER */ - -/* - * Convert EAP state code to printable string for debug. - */ -static const char * eap_state_name(enum eap_state_code esc) -{ - static const char *state_names[] = { EAP_STATES }; - - return (state_names[(int)esc]); -} - -/* - * eap_init - Initialize state for an EAP user. This is currently - * called once by main() during start-up. - */ -static void eap_init(ppp_pcb *pcb) { - - BZERO(&pcb->eap, sizeof(eap_state)); -#if PPP_SERVER - pcb->eap.es_server.ea_id = magic(); -#endif /* PPP_SERVER */ -} - -/* - * eap_client_timeout - Give up waiting for the peer to send any - * Request messages. - */ -static void eap_client_timeout(void *arg) { - ppp_pcb *pcb = (ppp_pcb*)arg; - - if (!eap_client_active(pcb)) - return; - - ppp_error("EAP: timeout waiting for Request from peer"); - auth_withpeer_fail(pcb, PPP_EAP); - pcb->eap.es_client.ea_state = eapBadAuth; -} - -/* - * eap_authwithpeer - Authenticate to our peer (behave as client). - * - * Start client state and wait for requests. This is called only - * after eap_lowerup. - */ -void eap_authwithpeer(ppp_pcb *pcb, const char *localname) { - - if(NULL == localname) - return; - - /* Save the peer name we're given */ - pcb->eap.es_client.ea_name = localname; - pcb->eap.es_client.ea_namelen = strlen(localname); - - pcb->eap.es_client.ea_state = eapListen; - - /* - * Start a timer so that if the other end just goes - * silent, we don't sit here waiting forever. - */ - if (pcb->settings.eap_req_time > 0) - TIMEOUT(eap_client_timeout, pcb, - pcb->settings.eap_req_time); -} - -#if PPP_SERVER -/* - * Format a standard EAP Failure message and send it to the peer. - * (Server operation) - */ -static void eap_send_failure(ppp_pcb *pcb) { - struct pbuf *p; - u_char *outp; - - p = pbuf_alloc(PBUF_RAW, (u16_t)(PPP_HDRLEN + EAP_HEADERLEN), PPP_CTRL_PBUF_TYPE); - if(NULL == p) - return; - if(p->tot_len != p->len) { - pbuf_free(p); - return; - } - - outp = (u_char*)p->payload; - - MAKEHEADER(outp, PPP_EAP); - - PUTCHAR(EAP_FAILURE, outp); - pcb->eap.es_server.ea_id++; - PUTCHAR(pcb->eap.es_server.ea_id, outp); - PUTSHORT(EAP_HEADERLEN, outp); - - ppp_write(pcb, p); - - pcb->eap.es_server.ea_state = eapBadAuth; - auth_peer_fail(pcb, PPP_EAP); -} - -/* - * Format a standard EAP Success message and send it to the peer. - * (Server operation) - */ -static void eap_send_success(ppp_pcb *pcb) { - struct pbuf *p; - u_char *outp; - - p = pbuf_alloc(PBUF_RAW, (u16_t)(PPP_HDRLEN + EAP_HEADERLEN), PPP_CTRL_PBUF_TYPE); - if(NULL == p) - return; - if(p->tot_len != p->len) { - pbuf_free(p); - return; - } - - outp = (u_char*)p->payload; - - MAKEHEADER(outp, PPP_EAP); - - PUTCHAR(EAP_SUCCESS, outp); - pcb->eap.es_server.ea_id++; - PUTCHAR(pcb->eap.es_server.ea_id, outp); - PUTSHORT(EAP_HEADERLEN, outp); - - ppp_write(pcb, p); - - auth_peer_success(pcb, PPP_EAP, 0, - pcb->eap.es_server.ea_peer, pcb->eap.es_server.ea_peerlen); -} -#endif /* PPP_SERVER */ - -#ifdef USE_SRP -/* - * Set DES key according to pseudonym-generating secret and current - * date. - */ -static bool -pncrypt_setkey(int timeoffs) -{ - struct tm *tp; - char tbuf[9]; - SHA1_CTX ctxt; - u_char dig[SHA_DIGESTSIZE]; - time_t reftime; - - if (pn_secret == NULL) - return (0); - reftime = time(NULL) + timeoffs; - tp = localtime(&reftime); - SHA1Init(&ctxt); - SHA1Update(&ctxt, pn_secret, strlen(pn_secret)); - strftime(tbuf, sizeof (tbuf), "%Y%m%d", tp); - SHA1Update(&ctxt, tbuf, strlen(tbuf)); - SHA1Final(dig, &ctxt); - /* FIXME: if we want to do SRP, we need to find a way to pass the PolarSSL des_context instead of using static memory */ - return (DesSetkey(dig)); -} - -static char base64[] = -"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; - -struct b64state { - u32_t bs_bits; - int bs_offs; -}; - -static int -b64enc(bs, inp, inlen, outp) -struct b64state *bs; -u_char *inp; -int inlen; -u_char *outp; -{ - int outlen = 0; - - while (inlen > 0) { - bs->bs_bits = (bs->bs_bits << 8) | *inp++; - inlen--; - bs->bs_offs += 8; - if (bs->bs_offs >= 24) { - *outp++ = base64[(bs->bs_bits >> 18) & 0x3F]; - *outp++ = base64[(bs->bs_bits >> 12) & 0x3F]; - *outp++ = base64[(bs->bs_bits >> 6) & 0x3F]; - *outp++ = base64[bs->bs_bits & 0x3F]; - outlen += 4; - bs->bs_offs = 0; - bs->bs_bits = 0; - } - } - return (outlen); -} - -static int -b64flush(bs, outp) -struct b64state *bs; -u_char *outp; -{ - int outlen = 0; - - if (bs->bs_offs == 8) { - *outp++ = base64[(bs->bs_bits >> 2) & 0x3F]; - *outp++ = base64[(bs->bs_bits << 4) & 0x3F]; - outlen = 2; - } else if (bs->bs_offs == 16) { - *outp++ = base64[(bs->bs_bits >> 10) & 0x3F]; - *outp++ = base64[(bs->bs_bits >> 4) & 0x3F]; - *outp++ = base64[(bs->bs_bits << 2) & 0x3F]; - outlen = 3; - } - bs->bs_offs = 0; - bs->bs_bits = 0; - return (outlen); -} - -static int -b64dec(bs, inp, inlen, outp) -struct b64state *bs; -u_char *inp; -int inlen; -u_char *outp; -{ - int outlen = 0; - char *cp; - - while (inlen > 0) { - if ((cp = strchr(base64, *inp++)) == NULL) - break; - bs->bs_bits = (bs->bs_bits << 6) | (cp - base64); - inlen--; - bs->bs_offs += 6; - if (bs->bs_offs >= 8) { - *outp++ = bs->bs_bits >> (bs->bs_offs - 8); - outlen++; - bs->bs_offs -= 8; - } - } - return (outlen); -} -#endif /* USE_SRP */ - -#if PPP_SERVER -/* - * Assume that current waiting server state is complete and figure - * next state to use based on available authentication data. 'status' - * indicates if there was an error in handling the last query. It is - * 0 for success and non-zero for failure. - */ -static void eap_figure_next_state(ppp_pcb *pcb, int status) { -#ifdef USE_SRP - unsigned char secbuf[MAXSECRETLEN], clear[8], *sp, *dp; - struct t_pw tpw; - struct t_confent *tce, mytce; - char *cp, *cp2; - struct t_server *ts; - int id, i, plen, toffs; - u_char vals[2]; - struct b64state bs; -#endif /* USE_SRP */ - - pcb->settings.eap_timeout_time = pcb->eap.es_savedtime; - switch (pcb->eap.es_server.ea_state) { - case eapBadAuth: - return; - - case eapIdentify: -#ifdef USE_SRP - /* Discard any previous session. */ - ts = (struct t_server *)pcb->eap.es_server.ea_session; - if (ts != NULL) { - t_serverclose(ts); - pcb->eap.es_server.ea_session = NULL; - pcb->eap.es_server.ea_skey = NULL; - } -#endif /* USE_SRP */ - if (status != 0) { - pcb->eap.es_server.ea_state = eapBadAuth; - break; - } -#ifdef USE_SRP - /* If we've got a pseudonym, try to decode to real name. */ - if (pcb->eap.es_server.ea_peerlen > SRP_PSEUDO_LEN && - strncmp(pcb->eap.es_server.ea_peer, SRP_PSEUDO_ID, - SRP_PSEUDO_LEN) == 0 && - (pcb->eap.es_server.ea_peerlen - SRP_PSEUDO_LEN) * 3 / 4 < - sizeof (secbuf)) { - BZERO(&bs, sizeof (bs)); - plen = b64dec(&bs, - pcb->eap.es_server.ea_peer + SRP_PSEUDO_LEN, - pcb->eap.es_server.ea_peerlen - SRP_PSEUDO_LEN, - secbuf); - toffs = 0; - for (i = 0; i < 5; i++) { - pncrypt_setkey(toffs); - toffs -= 86400; - /* FIXME: if we want to do SRP, we need to find a way to pass the PolarSSL des_context instead of using static memory */ - if (!DesDecrypt(secbuf, clear)) { - ppp_dbglog("no DES here; cannot decode " - "pseudonym"); - return; - } - id = *(unsigned char *)clear; - if (id + 1 <= plen && id + 9 > plen) - break; - } - if (plen % 8 == 0 && i < 5) { - /* - * Note that this is always shorter than the - * original stored string, so there's no need - * to realloc. - */ - if ((i = plen = *(unsigned char *)clear) > 7) - i = 7; - pcb->eap.es_server.ea_peerlen = plen; - dp = (unsigned char *)pcb->eap.es_server.ea_peer; - MEMCPY(dp, clear + 1, i); - plen -= i; - dp += i; - sp = secbuf + 8; - while (plen > 0) { - /* FIXME: if we want to do SRP, we need to find a way to pass the PolarSSL des_context instead of using static memory */ - (void) DesDecrypt(sp, dp); - sp += 8; - dp += 8; - plen -= 8; - } - pcb->eap.es_server.ea_peer[ - pcb->eap.es_server.ea_peerlen] = '\0'; - ppp_dbglog("decoded pseudonym to \"%.*q\"", - pcb->eap.es_server.ea_peerlen, - pcb->eap.es_server.ea_peer); - } else { - ppp_dbglog("failed to decode real name"); - /* Stay in eapIdentfy state; requery */ - break; - } - } - /* Look up user in secrets database. */ - if (get_srp_secret(pcb->eap.es_unit, pcb->eap.es_server.ea_peer, - pcb->eap.es_server.ea_name, (char *)secbuf, 1) != 0) { - /* Set up default in case SRP entry is bad */ - pcb->eap.es_server.ea_state = eapMD5Chall; - /* Get t_confent based on index in srp-secrets */ - id = strtol((char *)secbuf, &cp, 10); - if (*cp++ != ':' || id < 0) - break; - if (id == 0) { - mytce.index = 0; - mytce.modulus.data = (u_char *)wkmodulus; - mytce.modulus.len = sizeof (wkmodulus); - mytce.generator.data = (u_char *)"\002"; - mytce.generator.len = 1; - tce = &mytce; - } else if ((tce = gettcid(id)) != NULL) { - /* - * Client will have to verify this modulus/ - * generator combination, and that will take - * a while. Lengthen the timeout here. - */ - if (pcb->settings.eap_timeout_time > 0 && - pcb->settings.eap_timeout_time < 30) - pcb->settings.eap_timeout_time = 30; - } else { - break; - } - if ((cp2 = strchr(cp, ':')) == NULL) - break; - *cp2++ = '\0'; - tpw.pebuf.name = pcb->eap.es_server.ea_peer; - tpw.pebuf.password.len = t_fromb64((char *)tpw.pwbuf, - cp); - tpw.pebuf.password.data = tpw.pwbuf; - tpw.pebuf.salt.len = t_fromb64((char *)tpw.saltbuf, - cp2); - tpw.pebuf.salt.data = tpw.saltbuf; - if ((ts = t_serveropenraw(&tpw.pebuf, tce)) == NULL) - break; - pcb->eap.es_server.ea_session = (void *)ts; - pcb->eap.es_server.ea_state = eapSRP1; - vals[0] = pcb->eap.es_server.ea_id + 1; - vals[1] = EAPT_SRP; - t_serveraddexdata(ts, vals, 2); - /* Generate B; must call before t_servergetkey() */ - t_servergenexp(ts); - break; - } -#endif /* USE_SRP */ - pcb->eap.es_server.ea_state = eapMD5Chall; - break; - - case eapSRP1: -#ifdef USE_SRP - ts = (struct t_server *)pcb->eap.es_server.ea_session; - if (ts != NULL && status != 0) { - t_serverclose(ts); - pcb->eap.es_server.ea_session = NULL; - pcb->eap.es_server.ea_skey = NULL; - } -#endif /* USE_SRP */ - if (status == 1) { - pcb->eap.es_server.ea_state = eapMD5Chall; - } else if (status != 0 || pcb->eap.es_server.ea_session == NULL) { - pcb->eap.es_server.ea_state = eapBadAuth; - } else { - pcb->eap.es_server.ea_state = eapSRP2; - } - break; - - case eapSRP2: -#ifdef USE_SRP - ts = (struct t_server *)pcb->eap.es_server.ea_session; - if (ts != NULL && status != 0) { - t_serverclose(ts); - pcb->eap.es_server.ea_session = NULL; - pcb->eap.es_server.ea_skey = NULL; - } -#endif /* USE_SRP */ - if (status != 0 || pcb->eap.es_server.ea_session == NULL) { - pcb->eap.es_server.ea_state = eapBadAuth; - } else { - pcb->eap.es_server.ea_state = eapSRP3; - } - break; - - case eapSRP3: - case eapSRP4: -#ifdef USE_SRP - ts = (struct t_server *)pcb->eap.es_server.ea_session; - if (ts != NULL && status != 0) { - t_serverclose(ts); - pcb->eap.es_server.ea_session = NULL; - pcb->eap.es_server.ea_skey = NULL; - } -#endif /* USE_SRP */ - if (status != 0 || pcb->eap.es_server.ea_session == NULL) { - pcb->eap.es_server.ea_state = eapBadAuth; - } else { - pcb->eap.es_server.ea_state = eapOpen; - } - break; - - case eapMD5Chall: - if (status != 0) { - pcb->eap.es_server.ea_state = eapBadAuth; - } else { - pcb->eap.es_server.ea_state = eapOpen; - } - break; - - default: - pcb->eap.es_server.ea_state = eapBadAuth; - break; - } - if (pcb->eap.es_server.ea_state == eapBadAuth) - eap_send_failure(pcb); -} - -/* - * Format an EAP Request message and send it to the peer. Message - * type depends on current state. (Server operation) - */ -static void eap_send_request(ppp_pcb *pcb) { - struct pbuf *p; - u_char *outp; - u_char *lenloc; - int outlen; - int len; - const char *str; -#ifdef USE_SRP - struct t_server *ts; - u_char clear[8], cipher[8], dig[SHA_DIGESTSIZE], *optr, *cp; - int i, j; - struct b64state b64; - SHA1_CTX ctxt; -#endif /* USE_SRP */ - - /* Handle both initial auth and restart */ - if (pcb->eap.es_server.ea_state < eapIdentify && - pcb->eap.es_server.ea_state != eapInitial) { - pcb->eap.es_server.ea_state = eapIdentify; -#if PPP_REMOTENAME - if (pcb->settings.explicit_remote && pcb->remote_name) { - /* - * If we already know the peer's - * unauthenticated name, then there's no - * reason to ask. Go to next state instead. - */ - int len = (int)strlen(pcb->remote_name); - if (len > MAXNAMELEN) { - len = MAXNAMELEN; - } - MEMCPY(pcb->eap.es_server.ea_peer, pcb->remote_name, len); - pcb->eap.es_server.ea_peer[len] = '\0'; - pcb->eap.es_server.ea_peerlen = len; - eap_figure_next_state(pcb, 0); - } -#endif /* PPP_REMOTENAME */ - } - - if (pcb->settings.eap_max_transmits > 0 && - pcb->eap.es_server.ea_requests >= pcb->settings.eap_max_transmits) { - if (pcb->eap.es_server.ea_responses > 0) - ppp_error("EAP: too many Requests sent"); - else - ppp_error("EAP: no response to Requests"); - eap_send_failure(pcb); - return; - } - - p = pbuf_alloc(PBUF_RAW, (u16_t)(PPP_CTRL_PBUF_MAX_SIZE), PPP_CTRL_PBUF_TYPE); - if(NULL == p) - return; - if(p->tot_len != p->len) { - pbuf_free(p); - return; - } - - outp = (u_char*)p->payload; - - MAKEHEADER(outp, PPP_EAP); - - PUTCHAR(EAP_REQUEST, outp); - PUTCHAR(pcb->eap.es_server.ea_id, outp); - lenloc = outp; - INCPTR(2, outp); - - switch (pcb->eap.es_server.ea_state) { - case eapIdentify: - PUTCHAR(EAPT_IDENTITY, outp); - str = "Name"; - len = strlen(str); - MEMCPY(outp, str, len); - INCPTR(len, outp); - break; - - case eapMD5Chall: - PUTCHAR(EAPT_MD5CHAP, outp); - /* - * pick a random challenge length between - * EAP_MIN_CHALLENGE_LENGTH and EAP_MAX_CHALLENGE_LENGTH - */ - pcb->eap.es_challen = EAP_MIN_CHALLENGE_LENGTH + - magic_pow(EAP_MIN_MAX_POWER_OF_TWO_CHALLENGE_LENGTH); - PUTCHAR(pcb->eap.es_challen, outp); - magic_random_bytes(pcb->eap.es_challenge, pcb->eap.es_challen); - MEMCPY(outp, pcb->eap.es_challenge, pcb->eap.es_challen); - INCPTR(pcb->eap.es_challen, outp); - MEMCPY(outp, pcb->eap.es_server.ea_name, pcb->eap.es_server.ea_namelen); - INCPTR(pcb->eap.es_server.ea_namelen, outp); - break; - -#ifdef USE_SRP - case eapSRP1: - PUTCHAR(EAPT_SRP, outp); - PUTCHAR(EAPSRP_CHALLENGE, outp); - - PUTCHAR(pcb->eap.es_server.ea_namelen, outp); - MEMCPY(outp, pcb->eap.es_server.ea_name, pcb->eap.es_server.ea_namelen); - INCPTR(pcb->eap.es_server.ea_namelen, outp); - - ts = (struct t_server *)pcb->eap.es_server.ea_session; - assert(ts != NULL); - PUTCHAR(ts->s.len, outp); - MEMCPY(outp, ts->s.data, ts->s.len); - INCPTR(ts->s.len, outp); - - if (ts->g.len == 1 && ts->g.data[0] == 2) { - PUTCHAR(0, outp); - } else { - PUTCHAR(ts->g.len, outp); - MEMCPY(outp, ts->g.data, ts->g.len); - INCPTR(ts->g.len, outp); - } - - if (ts->n.len != sizeof (wkmodulus) || - BCMP(ts->n.data, wkmodulus, sizeof (wkmodulus)) != 0) { - MEMCPY(outp, ts->n.data, ts->n.len); - INCPTR(ts->n.len, outp); - } - break; - - case eapSRP2: - PUTCHAR(EAPT_SRP, outp); - PUTCHAR(EAPSRP_SKEY, outp); - - ts = (struct t_server *)pcb->eap.es_server.ea_session; - assert(ts != NULL); - MEMCPY(outp, ts->B.data, ts->B.len); - INCPTR(ts->B.len, outp); - break; - - case eapSRP3: - PUTCHAR(EAPT_SRP, outp); - PUTCHAR(EAPSRP_SVALIDATOR, outp); - PUTLONG(SRPVAL_EBIT, outp); - ts = (struct t_server *)pcb->eap.es_server.ea_session; - assert(ts != NULL); - MEMCPY(outp, t_serverresponse(ts), SHA_DIGESTSIZE); - INCPTR(SHA_DIGESTSIZE, outp); - - if (pncrypt_setkey(0)) { - /* Generate pseudonym */ - optr = outp; - cp = (unsigned char *)pcb->eap.es_server.ea_peer; - if ((j = i = pcb->eap.es_server.ea_peerlen) > 7) - j = 7; - clear[0] = i; - MEMCPY(clear + 1, cp, j); - i -= j; - cp += j; - /* FIXME: if we want to do SRP, we need to find a way to pass the PolarSSL des_context instead of using static memory */ - if (!DesEncrypt(clear, cipher)) { - ppp_dbglog("no DES here; not generating pseudonym"); - break; - } - BZERO(&b64, sizeof (b64)); - outp++; /* space for pseudonym length */ - outp += b64enc(&b64, cipher, 8, outp); - while (i >= 8) { - /* FIXME: if we want to do SRP, we need to find a way to pass the PolarSSL des_context instead of using static memory */ - (void) DesEncrypt(cp, cipher); - outp += b64enc(&b64, cipher, 8, outp); - cp += 8; - i -= 8; - } - if (i > 0) { - MEMCPY(clear, cp, i); - cp += i; - magic_random_bytes(cp, 8-i); - /* FIXME: if we want to do SRP, we need to find a way to pass the PolarSSL des_context instead of using static memory */ - (void) DesEncrypt(clear, cipher); - outp += b64enc(&b64, cipher, 8, outp); - } - outp += b64flush(&b64, outp); - - /* Set length and pad out to next 20 octet boundary */ - i = outp - optr - 1; - *optr = i; - i %= SHA_DIGESTSIZE; - if (i != 0) { - magic_random_bytes(outp, SHA_DIGESTSIZE-i); - INCPTR(SHA_DIGESTSIZE-i, outp); - } - - /* Obscure the pseudonym with SHA1 hash */ - SHA1Init(&ctxt); - SHA1Update(&ctxt, &pcb->eap.es_server.ea_id, 1); - SHA1Update(&ctxt, pcb->eap.es_server.ea_skey, - SESSION_KEY_LEN); - SHA1Update(&ctxt, pcb->eap.es_server.ea_peer, - pcb->eap.es_server.ea_peerlen); - while (optr < outp) { - SHA1Final(dig, &ctxt); - cp = dig; - while (cp < dig + SHA_DIGESTSIZE) - *optr++ ^= *cp++; - SHA1Init(&ctxt); - SHA1Update(&ctxt, &pcb->eap.es_server.ea_id, 1); - SHA1Update(&ctxt, pcb->eap.es_server.ea_skey, - SESSION_KEY_LEN); - SHA1Update(&ctxt, optr - SHA_DIGESTSIZE, - SHA_DIGESTSIZE); - } - } - break; - - case eapSRP4: - PUTCHAR(EAPT_SRP, outp); - PUTCHAR(EAPSRP_LWRECHALLENGE, outp); - pcb->eap.es_challen = EAP_MIN_CHALLENGE_LENGTH + - magic_pow(EAP_MIN_MAX_POWER_OF_TWO_CHALLENGE_LENGTH); - magic_random_bytes(pcb->eap.es_challenge, pcb->eap.es_challen); - MEMCPY(outp, pcb->eap.es_challenge, pcb->eap.es_challen); - INCPTR(pcb->eap.es_challen, outp); - break; -#endif /* USE_SRP */ - - default: - return; - } - - outlen = (outp - (unsigned char*)p->payload) - PPP_HDRLEN; - PUTSHORT(outlen, lenloc); - - pbuf_realloc(p, outlen + PPP_HDRLEN); - ppp_write(pcb, p); - - pcb->eap.es_server.ea_requests++; - - if (pcb->settings.eap_timeout_time > 0) - TIMEOUT(eap_server_timeout, pcb, pcb->settings.eap_timeout_time); -} - -/* - * eap_authpeer - Authenticate our peer (behave as server). - * - * Start server state and send first request. This is called only - * after eap_lowerup. - */ -void eap_authpeer(ppp_pcb *pcb, const char *localname) { - - /* Save the name we're given. */ - pcb->eap.es_server.ea_name = localname; - pcb->eap.es_server.ea_namelen = strlen(localname); - - pcb->eap.es_savedtime = pcb->settings.eap_timeout_time; - - /* Lower layer up yet? */ - if (pcb->eap.es_server.ea_state == eapInitial || - pcb->eap.es_server.ea_state == eapPending) { - pcb->eap.es_server.ea_state = eapPending; - return; - } - - pcb->eap.es_server.ea_state = eapPending; - - /* ID number not updated here intentionally; hashed into M1 */ - eap_send_request(pcb); -} - -/* - * eap_server_timeout - Retransmission timer for sending Requests - * expired. - */ -static void eap_server_timeout(void *arg) { - ppp_pcb *pcb = (ppp_pcb*)arg; - - if (!eap_server_active(pcb)) - return; - - /* EAP ID number must not change on timeout. */ - eap_send_request(pcb); -} - -/* - * When it's time to send rechallenge the peer, this timeout is - * called. Once the rechallenge is successful, the response handler - * will restart the timer. If it fails, then the link is dropped. - */ -static void eap_rechallenge(void *arg) { - ppp_pcb *pcb = (ppp_pcb*)arg; - - if (pcb->eap.es_server.ea_state != eapOpen && - pcb->eap.es_server.ea_state != eapSRP4) - return; - - pcb->eap.es_server.ea_requests = 0; - pcb->eap.es_server.ea_state = eapIdentify; - eap_figure_next_state(pcb, 0); - pcb->eap.es_server.ea_id++; - eap_send_request(pcb); -} - -static void srp_lwrechallenge(void *arg) { - ppp_pcb *pcb = (ppp_pcb*)arg; - - if (pcb->eap.es_server.ea_state != eapOpen || - pcb->eap.es_server.ea_type != EAPT_SRP) - return; - - pcb->eap.es_server.ea_requests = 0; - pcb->eap.es_server.ea_state = eapSRP4; - pcb->eap.es_server.ea_id++; - eap_send_request(pcb); -} -#endif /* PPP_SERVER */ - -/* - * eap_lowerup - The lower layer is now up. - * - * This is called before either eap_authpeer or eap_authwithpeer. See - * link_established() in auth.c. All that's necessary here is to - * return to closed state so that those two routines will do the right - * thing. - */ -static void eap_lowerup(ppp_pcb *pcb) { - pcb->eap.es_client.ea_state = eapClosed; -#if PPP_SERVER - pcb->eap.es_server.ea_state = eapClosed; -#endif /* PPP_SERVER */ -} - -/* - * eap_lowerdown - The lower layer is now down. - * - * Cancel all timeouts and return to initial state. - */ -static void eap_lowerdown(ppp_pcb *pcb) { - - if (eap_client_active(pcb) && pcb->settings.eap_req_time > 0) { - UNTIMEOUT(eap_client_timeout, pcb); - } -#if PPP_SERVER - if (eap_server_active(pcb)) { - if (pcb->settings.eap_timeout_time > 0) { - UNTIMEOUT(eap_server_timeout, pcb); - } - } else { - if ((pcb->eap.es_server.ea_state == eapOpen || - pcb->eap.es_server.ea_state == eapSRP4) && - pcb->eap.es_rechallenge > 0) { - UNTIMEOUT(eap_rechallenge, (void *)pcb); - } - if (pcb->eap.es_server.ea_state == eapOpen && - pcb->eap.es_lwrechallenge > 0) { - UNTIMEOUT(srp_lwrechallenge, (void *)pcb); - } - } - - pcb->eap.es_client.ea_state = pcb->eap.es_server.ea_state = eapInitial; - pcb->eap.es_client.ea_requests = pcb->eap.es_server.ea_requests = 0; -#endif /* PPP_SERVER */ -} - -/* - * eap_protrej - Peer doesn't speak this protocol. - * - * This shouldn't happen. If it does, it represents authentication - * failure. - */ -static void eap_protrej(ppp_pcb *pcb) { - - if (eap_client_active(pcb)) { - ppp_error("EAP authentication failed due to Protocol-Reject"); - auth_withpeer_fail(pcb, PPP_EAP); - } -#if PPP_SERVER - if (eap_server_active(pcb)) { - ppp_error("EAP authentication of peer failed on Protocol-Reject"); - auth_peer_fail(pcb, PPP_EAP); - } -#endif /* PPP_SERVER */ - eap_lowerdown(pcb); -} - -/* - * Format and send a regular EAP Response message. - */ -static void eap_send_response(ppp_pcb *pcb, u_char id, u_char typenum, const u_char *str, int lenstr) { - struct pbuf *p; - u_char *outp; - int msglen; - - msglen = EAP_HEADERLEN + sizeof (u_char) + lenstr; - p = pbuf_alloc(PBUF_RAW, (u16_t)(PPP_HDRLEN + msglen), PPP_CTRL_PBUF_TYPE); - if(NULL == p) - return; - if(p->tot_len != p->len) { - pbuf_free(p); - return; - } - - outp = (u_char*)p->payload; - - MAKEHEADER(outp, PPP_EAP); - - PUTCHAR(EAP_RESPONSE, outp); - PUTCHAR(id, outp); - pcb->eap.es_client.ea_id = id; - PUTSHORT(msglen, outp); - PUTCHAR(typenum, outp); - if (lenstr > 0) { - MEMCPY(outp, str, lenstr); - } - - ppp_write(pcb, p); -} - -/* - * Format and send an MD5-Challenge EAP Response message. - */ -static void eap_chap_response(ppp_pcb *pcb, u_char id, u_char *hash, const char *name, int namelen) { - struct pbuf *p; - u_char *outp; - int msglen; - - msglen = EAP_HEADERLEN + 2 * sizeof (u_char) + MD5_SIGNATURE_SIZE + - namelen; - p = pbuf_alloc(PBUF_RAW, (u16_t)(PPP_HDRLEN + msglen), PPP_CTRL_PBUF_TYPE); - if(NULL == p) - return; - if(p->tot_len != p->len) { - pbuf_free(p); - return; - } - - outp = (u_char*)p->payload; - - MAKEHEADER(outp, PPP_EAP); - - PUTCHAR(EAP_RESPONSE, outp); - PUTCHAR(id, outp); - pcb->eap.es_client.ea_id = id; - PUTSHORT(msglen, outp); - PUTCHAR(EAPT_MD5CHAP, outp); - PUTCHAR(MD5_SIGNATURE_SIZE, outp); - MEMCPY(outp, hash, MD5_SIGNATURE_SIZE); - INCPTR(MD5_SIGNATURE_SIZE, outp); - if (namelen > 0) { - MEMCPY(outp, name, namelen); - } - - ppp_write(pcb, p); -} - -#ifdef USE_SRP -/* - * Format and send a SRP EAP Response message. - */ -static void -eap_srp_response(esp, id, subtypenum, str, lenstr) -eap_state *esp; -u_char id; -u_char subtypenum; -u_char *str; -int lenstr; -{ - ppp_pcb *pcb = &ppp_pcb_list[pcb->eap.es_unit]; - struct pbuf *p; - u_char *outp; - int msglen; - - msglen = EAP_HEADERLEN + 2 * sizeof (u_char) + lenstr; - p = pbuf_alloc(PBUF_RAW, (u16_t)(PPP_HDRLEN + msglen), PPP_CTRL_PBUF_TYPE); - if(NULL == p) - return; - if(p->tot_len != p->len) { - pbuf_free(p); - return; - } - - outp = p->payload; - - MAKEHEADER(outp, PPP_EAP); - - PUTCHAR(EAP_RESPONSE, outp); - PUTCHAR(id, outp); - pcb->eap.es_client.ea_id = id; - PUTSHORT(msglen, outp); - PUTCHAR(EAPT_SRP, outp); - PUTCHAR(subtypenum, outp); - if (lenstr > 0) { - MEMCPY(outp, str, lenstr); - } - - ppp_write(pcb, p); -} - -/* - * Format and send a SRP EAP Client Validator Response message. - */ -static void -eap_srpval_response(esp, id, flags, str) -eap_state *esp; -u_char id; -u32_t flags; -u_char *str; -{ - ppp_pcb *pcb = &ppp_pcb_list[pcb->eap.es_unit]; - struct pbuf *p; - u_char *outp; - int msglen; - - msglen = EAP_HEADERLEN + 2 * sizeof (u_char) + sizeof (u32_t) + - SHA_DIGESTSIZE; - p = pbuf_alloc(PBUF_RAW, (u16_t)(PPP_HDRLEN + msglen), PPP_CTRL_PBUF_TYPE); - if(NULL == p) - return; - if(p->tot_len != p->len) { - pbuf_free(p); - return; - } - - outp = p->payload; - - MAKEHEADER(outp, PPP_EAP); - - PUTCHAR(EAP_RESPONSE, outp); - PUTCHAR(id, outp); - pcb->eap.es_client.ea_id = id; - PUTSHORT(msglen, outp); - PUTCHAR(EAPT_SRP, outp); - PUTCHAR(EAPSRP_CVALIDATOR, outp); - PUTLONG(flags, outp); - MEMCPY(outp, str, SHA_DIGESTSIZE); - - ppp_write(pcb, p); -} -#endif /* USE_SRP */ - -static void eap_send_nak(ppp_pcb *pcb, u_char id, u_char type) { - struct pbuf *p; - u_char *outp; - int msglen; - - msglen = EAP_HEADERLEN + 2 * sizeof (u_char); - p = pbuf_alloc(PBUF_RAW, (u16_t)(PPP_HDRLEN + msglen), PPP_CTRL_PBUF_TYPE); - if(NULL == p) - return; - if(p->tot_len != p->len) { - pbuf_free(p); - return; - } - - outp = (u_char*)p->payload; - - MAKEHEADER(outp, PPP_EAP); - - PUTCHAR(EAP_RESPONSE, outp); - PUTCHAR(id, outp); - pcb->eap.es_client.ea_id = id; - PUTSHORT(msglen, outp); - PUTCHAR(EAPT_NAK, outp); - PUTCHAR(type, outp); - - ppp_write(pcb, p); -} - -#ifdef USE_SRP -static char * -name_of_pn_file() -{ - char *user, *path, *file; - struct passwd *pw; - size_t pl; - static bool pnlogged = 0; - - pw = getpwuid(getuid()); - if (pw == NULL || (user = pw->pw_dir) == NULL || user[0] == 0) { - errno = EINVAL; - return (NULL); - } - file = _PATH_PSEUDONYM; - pl = strlen(user) + strlen(file) + 2; - path = malloc(pl); - if (path == NULL) - return (NULL); - (void) slprintf(path, pl, "%s/%s", user, file); - if (!pnlogged) { - ppp_dbglog("pseudonym file: %s", path); - pnlogged = 1; - } - return (path); -} - -static int -open_pn_file(modebits) -mode_t modebits; -{ - char *path; - int fd, err; - - if ((path = name_of_pn_file()) == NULL) - return (-1); - fd = open(path, modebits, S_IRUSR | S_IWUSR); - err = errno; - free(path); - errno = err; - return (fd); -} - -static void -remove_pn_file() -{ - char *path; - - if ((path = name_of_pn_file()) != NULL) { - (void) unlink(path); - (void) free(path); - } -} - -static void -write_pseudonym(esp, inp, len, id) -eap_state *esp; -u_char *inp; -int len, id; -{ - u_char val; - u_char *datp, *digp; - SHA1_CTX ctxt; - u_char dig[SHA_DIGESTSIZE]; - int dsize, fd, olen = len; - - /* - * Do the decoding by working backwards. This eliminates the need - * to save the decoded output in a separate buffer. - */ - val = id; - while (len > 0) { - if ((dsize = len % SHA_DIGESTSIZE) == 0) - dsize = SHA_DIGESTSIZE; - len -= dsize; - datp = inp + len; - SHA1Init(&ctxt); - SHA1Update(&ctxt, &val, 1); - SHA1Update(&ctxt, pcb->eap.es_client.ea_skey, SESSION_KEY_LEN); - if (len > 0) { - SHA1Update(&ctxt, datp, SHA_DIGESTSIZE); - } else { - SHA1Update(&ctxt, pcb->eap.es_client.ea_name, - pcb->eap.es_client.ea_namelen); - } - SHA1Final(dig, &ctxt); - for (digp = dig; digp < dig + SHA_DIGESTSIZE; digp++) - *datp++ ^= *digp; - } - - /* Now check that the result is sane */ - if (olen <= 0 || *inp + 1 > olen) { - ppp_dbglog("EAP: decoded pseudonym is unusable <%.*B>", olen, inp); - return; - } - - /* Save it away */ - fd = open_pn_file(O_WRONLY | O_CREAT | O_TRUNC); - if (fd < 0) { - ppp_dbglog("EAP: error saving pseudonym: %m"); - return; - } - len = write(fd, inp + 1, *inp); - if (close(fd) != -1 && len == *inp) { - ppp_dbglog("EAP: saved pseudonym"); - pcb->eap.es_usedpseudo = 0; - } else { - ppp_dbglog("EAP: failed to save pseudonym"); - remove_pn_file(); - } -} -#endif /* USE_SRP */ - -/* - * eap_request - Receive EAP Request message (client mode). - */ -static void eap_request(ppp_pcb *pcb, u_char *inp, int id, int len) { - u_char typenum; - u_char vallen; - int secret_len; - char secret[MAXSECRETLEN]; - char rhostname[MAXNAMELEN]; - lwip_md5_context mdContext; - u_char hash[MD5_SIGNATURE_SIZE]; -#ifdef USE_SRP - struct t_client *tc; - struct t_num sval, gval, Nval, *Ap, Bval; - u_char vals[2]; - SHA1_CTX ctxt; - u_char dig[SHA_DIGESTSIZE]; - int fd; -#endif /* USE_SRP */ - - /* - * Note: we update es_client.ea_id *only if* a Response - * message is being generated. Otherwise, we leave it the - * same for duplicate detection purposes. - */ - - pcb->eap.es_client.ea_requests++; - if (pcb->settings.eap_allow_req != 0 && - pcb->eap.es_client.ea_requests > pcb->settings.eap_allow_req) { - ppp_info("EAP: received too many Request messages"); - if (pcb->settings.eap_req_time > 0) { - UNTIMEOUT(eap_client_timeout, pcb); - } - auth_withpeer_fail(pcb, PPP_EAP); - return; - } - - if (len <= 0) { - ppp_error("EAP: empty Request message discarded"); - return; - } - - GETCHAR(typenum, inp); - len--; - - switch (typenum) { - case EAPT_IDENTITY: - if (len > 0) - ppp_info("EAP: Identity prompt \"%.*q\"", len, inp); -#ifdef USE_SRP - if (pcb->eap.es_usepseudo && - (pcb->eap.es_usedpseudo == 0 || - (pcb->eap.es_usedpseudo == 1 && - id == pcb->eap.es_client.ea_id))) { - pcb->eap.es_usedpseudo = 1; - /* Try to get a pseudonym */ - if ((fd = open_pn_file(O_RDONLY)) >= 0) { - strcpy(rhostname, SRP_PSEUDO_ID); - len = read(fd, rhostname + SRP_PSEUDO_LEN, - sizeof (rhostname) - SRP_PSEUDO_LEN); - /* XXX NAI unsupported */ - if (len > 0) { - eap_send_response(pcb, id, typenum, - rhostname, len + SRP_PSEUDO_LEN); - } - (void) close(fd); - if (len > 0) - break; - } - } - /* Stop using pseudonym now. */ - if (pcb->eap.es_usepseudo && pcb->eap.es_usedpseudo != 2) { - remove_pn_file(); - pcb->eap.es_usedpseudo = 2; - } -#endif /* USE_SRP */ - eap_send_response(pcb, id, typenum, (const u_char*)pcb->eap.es_client.ea_name, - pcb->eap.es_client.ea_namelen); - break; - - case EAPT_NOTIFICATION: - if (len > 0) - ppp_info("EAP: Notification \"%.*q\"", len, inp); - eap_send_response(pcb, id, typenum, NULL, 0); - break; - - case EAPT_NAK: - /* - * Avoid the temptation to send Response Nak in reply - * to Request Nak here. It can only lead to trouble. - */ - ppp_warn("EAP: unexpected Nak in Request; ignored"); - /* Return because we're waiting for something real. */ - return; - - case EAPT_MD5CHAP: - if (len < 1) { - ppp_error("EAP: received MD5-Challenge with no data"); - /* Bogus request; wait for something real. */ - return; - } - GETCHAR(vallen, inp); - len--; - if (vallen < 8 || vallen > len) { - ppp_error("EAP: MD5-Challenge with bad length %d (8..%d)", - vallen, len); - /* Try something better. */ - eap_send_nak(pcb, id, EAPT_SRP); - break; - } - - /* Not so likely to happen. */ - if (vallen >= len + sizeof (rhostname)) { - ppp_dbglog("EAP: trimming really long peer name down"); - MEMCPY(rhostname, inp + vallen, sizeof (rhostname) - 1); - rhostname[sizeof (rhostname) - 1] = '\0'; - } else { - MEMCPY(rhostname, inp + vallen, len - vallen); - rhostname[len - vallen] = '\0'; - } - -#if PPP_REMOTENAME - /* In case the remote doesn't give us his name. */ - if (pcb->settings.explicit_remote || - (pcb->settings.remote_name[0] != '\0' && vallen == len)) - strlcpy(rhostname, pcb->settings.remote_name, sizeof (rhostname)); -#endif /* PPP_REMOTENAME */ - - /* - * Get the secret for authenticating ourselves with - * the specified host. - */ - if (!get_secret(pcb, pcb->eap.es_client.ea_name, - rhostname, secret, &secret_len, 0)) { - ppp_dbglog("EAP: no MD5 secret for auth to %q", rhostname); - eap_send_nak(pcb, id, EAPT_SRP); - break; - } - lwip_md5_init(&mdContext); - lwip_md5_starts(&mdContext); - typenum = id; - lwip_md5_update(&mdContext, &typenum, 1); - lwip_md5_update(&mdContext, (u_char *)secret, secret_len); - BZERO(secret, sizeof (secret)); - lwip_md5_update(&mdContext, inp, vallen); - lwip_md5_finish(&mdContext, hash); - lwip_md5_free(&mdContext); - eap_chap_response(pcb, id, hash, pcb->eap.es_client.ea_name, - pcb->eap.es_client.ea_namelen); - break; - -#ifdef USE_SRP - case EAPT_SRP: - if (len < 1) { - ppp_error("EAP: received empty SRP Request"); - /* Bogus request; wait for something real. */ - return; - } - - /* Get subtype */ - GETCHAR(vallen, inp); - len--; - switch (vallen) { - case EAPSRP_CHALLENGE: - tc = NULL; - if (pcb->eap.es_client.ea_session != NULL) { - tc = (struct t_client *)pcb->eap.es_client. - ea_session; - /* - * If this is a new challenge, then start - * over with a new client session context. - * Otherwise, just resend last response. - */ - if (id != pcb->eap.es_client.ea_id) { - t_clientclose(tc); - pcb->eap.es_client.ea_session = NULL; - tc = NULL; - } - } - /* No session key just yet */ - pcb->eap.es_client.ea_skey = NULL; - if (tc == NULL) { - int rhostnamelen; - - GETCHAR(vallen, inp); - len--; - if (vallen >= len) { - ppp_error("EAP: badly-formed SRP Challenge" - " (name)"); - /* Ignore badly-formed messages */ - return; - } - MEMCPY(rhostname, inp, vallen); - rhostname[vallen] = '\0'; - INCPTR(vallen, inp); - len -= vallen; - - /* - * In case the remote doesn't give us his name, - * use configured name. - */ - if (explicit_remote || - (remote_name[0] != '\0' && vallen == 0)) { - strlcpy(rhostname, remote_name, - sizeof (rhostname)); - } - - rhostnamelen = (int)strlen(rhostname); - if (rhostnamelen > MAXNAMELEN) { - rhostnamelen = MAXNAMELEN; - } - MEMCPY(pcb->eap.es_client.ea_peer, rhostname, rhostnamelen); - pcb->eap.es_client.ea_peer[rhostnamelen] = '\0'; - pcb->eap.es_client.ea_peerlen = rhostnamelen; - - GETCHAR(vallen, inp); - len--; - if (vallen >= len) { - ppp_error("EAP: badly-formed SRP Challenge" - " (s)"); - /* Ignore badly-formed messages */ - return; - } - sval.data = inp; - sval.len = vallen; - INCPTR(vallen, inp); - len -= vallen; - - GETCHAR(vallen, inp); - len--; - if (vallen > len) { - ppp_error("EAP: badly-formed SRP Challenge" - " (g)"); - /* Ignore badly-formed messages */ - return; - } - /* If no generator present, then use value 2 */ - if (vallen == 0) { - gval.data = (u_char *)"\002"; - gval.len = 1; - } else { - gval.data = inp; - gval.len = vallen; - } - INCPTR(vallen, inp); - len -= vallen; - - /* - * If no modulus present, then use well-known - * value. - */ - if (len == 0) { - Nval.data = (u_char *)wkmodulus; - Nval.len = sizeof (wkmodulus); - } else { - Nval.data = inp; - Nval.len = len; - } - tc = t_clientopen(pcb->eap.es_client.ea_name, - &Nval, &gval, &sval); - if (tc == NULL) { - eap_send_nak(pcb, id, EAPT_MD5CHAP); - break; - } - pcb->eap.es_client.ea_session = (void *)tc; - - /* Add Challenge ID & type to verifier */ - vals[0] = id; - vals[1] = EAPT_SRP; - t_clientaddexdata(tc, vals, 2); - } - Ap = t_clientgenexp(tc); - eap_srp_response(esp, id, EAPSRP_CKEY, Ap->data, - Ap->len); - break; - - case EAPSRP_SKEY: - tc = (struct t_client *)pcb->eap.es_client.ea_session; - if (tc == NULL) { - ppp_warn("EAP: peer sent Subtype 2 without 1"); - eap_send_nak(pcb, id, EAPT_MD5CHAP); - break; - } - if (pcb->eap.es_client.ea_skey != NULL) { - /* - * ID number should not change here. Warn - * if it does (but otherwise ignore). - */ - if (id != pcb->eap.es_client.ea_id) { - ppp_warn("EAP: ID changed from %d to %d " - "in SRP Subtype 2 rexmit", - pcb->eap.es_client.ea_id, id); - } - } else { - if (get_srp_secret(pcb->eap.es_unit, - pcb->eap.es_client.ea_name, - pcb->eap.es_client.ea_peer, secret, 0) == 0) { - /* - * Can't work with this peer because - * the secret is missing. Just give - * up. - */ - eap_send_nak(pcb, id, EAPT_MD5CHAP); - break; - } - Bval.data = inp; - Bval.len = len; - t_clientpasswd(tc, secret); - BZERO(secret, sizeof (secret)); - pcb->eap.es_client.ea_skey = - t_clientgetkey(tc, &Bval); - if (pcb->eap.es_client.ea_skey == NULL) { - /* Server is rogue; stop now */ - ppp_error("EAP: SRP server is rogue"); - goto client_failure; - } - } - eap_srpval_response(esp, id, SRPVAL_EBIT, - t_clientresponse(tc)); - break; - - case EAPSRP_SVALIDATOR: - tc = (struct t_client *)pcb->eap.es_client.ea_session; - if (tc == NULL || pcb->eap.es_client.ea_skey == NULL) { - ppp_warn("EAP: peer sent Subtype 3 without 1/2"); - eap_send_nak(pcb, id, EAPT_MD5CHAP); - break; - } - /* - * If we're already open, then this ought to be a - * duplicate. Otherwise, check that the server is - * who we think it is. - */ - if (pcb->eap.es_client.ea_state == eapOpen) { - if (id != pcb->eap.es_client.ea_id) { - ppp_warn("EAP: ID changed from %d to %d " - "in SRP Subtype 3 rexmit", - pcb->eap.es_client.ea_id, id); - } - } else { - len -= sizeof (u32_t) + SHA_DIGESTSIZE; - if (len < 0 || t_clientverify(tc, inp + - sizeof (u32_t)) != 0) { - ppp_error("EAP: SRP server verification " - "failed"); - goto client_failure; - } - GETLONG(pcb->eap.es_client.ea_keyflags, inp); - /* Save pseudonym if user wants it. */ - if (len > 0 && pcb->eap.es_usepseudo) { - INCPTR(SHA_DIGESTSIZE, inp); - write_pseudonym(esp, inp, len, id); - } - } - /* - * We've verified our peer. We're now mostly done, - * except for waiting on the regular EAP Success - * message. - */ - eap_srp_response(esp, id, EAPSRP_ACK, NULL, 0); - break; - - case EAPSRP_LWRECHALLENGE: - if (len < 4) { - ppp_warn("EAP: malformed Lightweight rechallenge"); - return; - } - SHA1Init(&ctxt); - vals[0] = id; - SHA1Update(&ctxt, vals, 1); - SHA1Update(&ctxt, pcb->eap.es_client.ea_skey, - SESSION_KEY_LEN); - SHA1Update(&ctxt, inp, len); - SHA1Update(&ctxt, pcb->eap.es_client.ea_name, - pcb->eap.es_client.ea_namelen); - SHA1Final(dig, &ctxt); - eap_srp_response(esp, id, EAPSRP_LWRECHALLENGE, dig, - SHA_DIGESTSIZE); - break; - - default: - ppp_error("EAP: unknown SRP Subtype %d", vallen); - eap_send_nak(pcb, id, EAPT_MD5CHAP); - break; - } - break; -#endif /* USE_SRP */ - - default: - ppp_info("EAP: unknown authentication type %d; Naking", typenum); - eap_send_nak(pcb, id, EAPT_SRP); - break; - } - - if (pcb->settings.eap_req_time > 0) { - UNTIMEOUT(eap_client_timeout, pcb); - TIMEOUT(eap_client_timeout, pcb, - pcb->settings.eap_req_time); - } - return; - -#ifdef USE_SRP -client_failure: - pcb->eap.es_client.ea_state = eapBadAuth; - if (pcb->settings.eap_req_time > 0) { - UNTIMEOUT(eap_client_timeout, (void *)esp); - } - pcb->eap.es_client.ea_session = NULL; - t_clientclose(tc); - auth_withpeer_fail(pcb, PPP_EAP); -#endif /* USE_SRP */ -} - -#if PPP_SERVER -/* - * eap_response - Receive EAP Response message (server mode). - */ -static void eap_response(ppp_pcb *pcb, u_char *inp, int id, int len) { - u_char typenum; - u_char vallen; - int secret_len; - char secret[MAXSECRETLEN]; - char rhostname[MAXNAMELEN]; - lwip_md5_context mdContext; - u_char hash[MD5_SIGNATURE_SIZE]; -#ifdef USE_SRP - struct t_server *ts; - struct t_num A; - SHA1_CTX ctxt; - u_char dig[SHA_DIGESTSIZE]; -#endif /* USE_SRP */ - - if (pcb->eap.es_server.ea_id != id) { - ppp_dbglog("EAP: discarding Response %d; expected ID %d", id, - pcb->eap.es_server.ea_id); - return; - } - - pcb->eap.es_server.ea_responses++; - - if (len <= 0) { - ppp_error("EAP: empty Response message discarded"); - return; - } - - GETCHAR(typenum, inp); - len--; - - switch (typenum) { - case EAPT_IDENTITY: - if (pcb->eap.es_server.ea_state != eapIdentify) { - ppp_dbglog("EAP discarding unwanted Identify \"%.q\"", len, - inp); - break; - } - ppp_info("EAP: unauthenticated peer name \"%.*q\"", len, inp); - if (len > MAXNAMELEN) { - len = MAXNAMELEN; - } - MEMCPY(pcb->eap.es_server.ea_peer, inp, len); - pcb->eap.es_server.ea_peer[len] = '\0'; - pcb->eap.es_server.ea_peerlen = len; - eap_figure_next_state(pcb, 0); - break; - - case EAPT_NOTIFICATION: - ppp_dbglog("EAP unexpected Notification; response discarded"); - break; - - case EAPT_NAK: - if (len < 1) { - ppp_info("EAP: Nak Response with no suggested protocol"); - eap_figure_next_state(pcb, 1); - break; - } - - GETCHAR(vallen, inp); - len--; - - if ( -#if PPP_REMOTENAME - !pcb->explicit_remote && -#endif /* PPP_REMOTENAME */ - pcb->eap.es_server.ea_state == eapIdentify){ - /* Peer cannot Nak Identify Request */ - eap_figure_next_state(pcb, 1); - break; - } - - switch (vallen) { - case EAPT_SRP: - /* Run through SRP validator selection again. */ - pcb->eap.es_server.ea_state = eapIdentify; - eap_figure_next_state(pcb, 0); - break; - - case EAPT_MD5CHAP: - pcb->eap.es_server.ea_state = eapMD5Chall; - break; - - default: - ppp_dbglog("EAP: peer requesting unknown Type %d", vallen); - switch (pcb->eap.es_server.ea_state) { - case eapSRP1: - case eapSRP2: - case eapSRP3: - pcb->eap.es_server.ea_state = eapMD5Chall; - break; - case eapMD5Chall: - case eapSRP4: - pcb->eap.es_server.ea_state = eapIdentify; - eap_figure_next_state(pcb, 0); - break; - default: - break; - } - break; - } - break; - - case EAPT_MD5CHAP: - if (pcb->eap.es_server.ea_state != eapMD5Chall) { - ppp_error("EAP: unexpected MD5-Response"); - eap_figure_next_state(pcb, 1); - break; - } - if (len < 1) { - ppp_error("EAP: received MD5-Response with no data"); - eap_figure_next_state(pcb, 1); - break; - } - GETCHAR(vallen, inp); - len--; - if (vallen != 16 || vallen > len) { - ppp_error("EAP: MD5-Response with bad length %d", vallen); - eap_figure_next_state(pcb, 1); - break; - } - - /* Not so likely to happen. */ - if (vallen >= len + sizeof (rhostname)) { - ppp_dbglog("EAP: trimming really long peer name down"); - MEMCPY(rhostname, inp + vallen, sizeof (rhostname) - 1); - rhostname[sizeof (rhostname) - 1] = '\0'; - } else { - MEMCPY(rhostname, inp + vallen, len - vallen); - rhostname[len - vallen] = '\0'; - } - -#if PPP_REMOTENAME - /* In case the remote doesn't give us his name. */ - if (explicit_remote || - (remote_name[0] != '\0' && vallen == len)) - strlcpy(rhostname, remote_name, sizeof (rhostname)); -#endif /* PPP_REMOTENAME */ - - /* - * Get the secret for authenticating the specified - * host. - */ - if (!get_secret(pcb, rhostname, - pcb->eap.es_server.ea_name, secret, &secret_len, 1)) { - ppp_dbglog("EAP: no MD5 secret for auth of %q", rhostname); - eap_send_failure(pcb); - break; - } - lwip_md5_init(&mdContext); - lwip_md5_starts(&mdContext); - lwip_md5_update(&mdContext, &pcb->eap.es_server.ea_id, 1); - lwip_md5_update(&mdContext, (u_char *)secret, secret_len); - BZERO(secret, sizeof (secret)); - lwip_md5_update(&mdContext, pcb->eap.es_challenge, pcb->eap.es_challen); - lwip_md5_finish(&mdContext, hash); - lwip_md5_free(&mdContext); - if (BCMP(hash, inp, MD5_SIGNATURE_SIZE) != 0) { - eap_send_failure(pcb); - break; - } - pcb->eap.es_server.ea_type = EAPT_MD5CHAP; - eap_send_success(pcb); - eap_figure_next_state(pcb, 0); - if (pcb->eap.es_rechallenge != 0) - TIMEOUT(eap_rechallenge, pcb, pcb->eap.es_rechallenge); - break; - -#ifdef USE_SRP - case EAPT_SRP: - if (len < 1) { - ppp_error("EAP: empty SRP Response"); - eap_figure_next_state(pcb, 1); - break; - } - GETCHAR(typenum, inp); - len--; - switch (typenum) { - case EAPSRP_CKEY: - if (pcb->eap.es_server.ea_state != eapSRP1) { - ppp_error("EAP: unexpected SRP Subtype 1 Response"); - eap_figure_next_state(pcb, 1); - break; - } - A.data = inp; - A.len = len; - ts = (struct t_server *)pcb->eap.es_server.ea_session; - assert(ts != NULL); - pcb->eap.es_server.ea_skey = t_servergetkey(ts, &A); - if (pcb->eap.es_server.ea_skey == NULL) { - /* Client's A value is bogus; terminate now */ - ppp_error("EAP: bogus A value from client"); - eap_send_failure(pcb); - } else { - eap_figure_next_state(pcb, 0); - } - break; - - case EAPSRP_CVALIDATOR: - if (pcb->eap.es_server.ea_state != eapSRP2) { - ppp_error("EAP: unexpected SRP Subtype 2 Response"); - eap_figure_next_state(pcb, 1); - break; - } - if (len < sizeof (u32_t) + SHA_DIGESTSIZE) { - ppp_error("EAP: M1 length %d < %d", len, - sizeof (u32_t) + SHA_DIGESTSIZE); - eap_figure_next_state(pcb, 1); - break; - } - GETLONG(pcb->eap.es_server.ea_keyflags, inp); - ts = (struct t_server *)pcb->eap.es_server.ea_session; - assert(ts != NULL); - if (t_serververify(ts, inp)) { - ppp_info("EAP: unable to validate client identity"); - eap_send_failure(pcb); - break; - } - eap_figure_next_state(pcb, 0); - break; - - case EAPSRP_ACK: - if (pcb->eap.es_server.ea_state != eapSRP3) { - ppp_error("EAP: unexpected SRP Subtype 3 Response"); - eap_send_failure(esp); - break; - } - pcb->eap.es_server.ea_type = EAPT_SRP; - eap_send_success(pcb, esp); - eap_figure_next_state(pcb, 0); - if (pcb->eap.es_rechallenge != 0) - TIMEOUT(eap_rechallenge, pcb, - pcb->eap.es_rechallenge); - if (pcb->eap.es_lwrechallenge != 0) - TIMEOUT(srp_lwrechallenge, pcb, - pcb->eap.es_lwrechallenge); - break; - - case EAPSRP_LWRECHALLENGE: - if (pcb->eap.es_server.ea_state != eapSRP4) { - ppp_info("EAP: unexpected SRP Subtype 4 Response"); - return; - } - if (len != SHA_DIGESTSIZE) { - ppp_error("EAP: bad Lightweight rechallenge " - "response"); - return; - } - SHA1Init(&ctxt); - vallen = id; - SHA1Update(&ctxt, &vallen, 1); - SHA1Update(&ctxt, pcb->eap.es_server.ea_skey, - SESSION_KEY_LEN); - SHA1Update(&ctxt, pcb->eap.es_challenge, pcb->eap.es_challen); - SHA1Update(&ctxt, pcb->eap.es_server.ea_peer, - pcb->eap.es_server.ea_peerlen); - SHA1Final(dig, &ctxt); - if (BCMP(dig, inp, SHA_DIGESTSIZE) != 0) { - ppp_error("EAP: failed Lightweight rechallenge"); - eap_send_failure(pcb); - break; - } - pcb->eap.es_server.ea_state = eapOpen; - if (pcb->eap.es_lwrechallenge != 0) - TIMEOUT(srp_lwrechallenge, esp, - pcb->eap.es_lwrechallenge); - break; - } - break; -#endif /* USE_SRP */ - - default: - /* This can't happen. */ - ppp_error("EAP: unknown Response type %d; ignored", typenum); - return; - } - - if (pcb->settings.eap_timeout_time > 0) { - UNTIMEOUT(eap_server_timeout, pcb); - } - - if (pcb->eap.es_server.ea_state != eapBadAuth && - pcb->eap.es_server.ea_state != eapOpen) { - pcb->eap.es_server.ea_id++; - eap_send_request(pcb); - } -} -#endif /* PPP_SERVER */ - -/* - * eap_success - Receive EAP Success message (client mode). - */ -static void eap_success(ppp_pcb *pcb, u_char *inp, int id, int len) { - LWIP_UNUSED_ARG(id); - - if (pcb->eap.es_client.ea_state != eapOpen && !eap_client_active(pcb)) { - ppp_dbglog("EAP unexpected success message in state %s (%d)", - eap_state_name(pcb->eap.es_client.ea_state), - pcb->eap.es_client.ea_state); - return; - } - - if (pcb->settings.eap_req_time > 0) { - UNTIMEOUT(eap_client_timeout, pcb); - } - - if (len > 0) { - /* This is odd. The spec doesn't allow for this. */ - PRINTMSG(inp, len); - } - - pcb->eap.es_client.ea_state = eapOpen; - auth_withpeer_success(pcb, PPP_EAP, 0); -} - -/* - * eap_failure - Receive EAP Failure message (client mode). - */ -static void eap_failure(ppp_pcb *pcb, u_char *inp, int id, int len) { - LWIP_UNUSED_ARG(id); - - if (!eap_client_active(pcb)) { - ppp_dbglog("EAP unexpected failure message in state %s (%d)", - eap_state_name(pcb->eap.es_client.ea_state), - pcb->eap.es_client.ea_state); - } - - if (pcb->settings.eap_req_time > 0) { - UNTIMEOUT(eap_client_timeout, pcb); - } - - if (len > 0) { - /* This is odd. The spec doesn't allow for this. */ - PRINTMSG(inp, len); - } - - pcb->eap.es_client.ea_state = eapBadAuth; - - ppp_error("EAP: peer reports authentication failure"); - auth_withpeer_fail(pcb, PPP_EAP); -} - -/* - * eap_input - Handle received EAP message. - */ -static void eap_input(ppp_pcb *pcb, u_char *inp, int inlen) { - u_char code, id; - int len; - - /* - * Parse header (code, id and length). If packet too short, - * drop it. - */ - if (inlen < EAP_HEADERLEN) { - ppp_error("EAP: packet too short: %d < %d", inlen, EAP_HEADERLEN); - return; - } - GETCHAR(code, inp); - GETCHAR(id, inp); - GETSHORT(len, inp); - if (len < EAP_HEADERLEN || len > inlen) { - ppp_error("EAP: packet has illegal length field %d (%d..%d)", len, - EAP_HEADERLEN, inlen); - return; - } - len -= EAP_HEADERLEN; - - /* Dispatch based on message code */ - switch (code) { - case EAP_REQUEST: - eap_request(pcb, inp, id, len); - break; - -#if PPP_SERVER - case EAP_RESPONSE: - eap_response(pcb, inp, id, len); - break; -#endif /* PPP_SERVER */ - - case EAP_SUCCESS: - eap_success(pcb, inp, id, len); - break; - - case EAP_FAILURE: - eap_failure(pcb, inp, id, len); - break; - - default: /* XXX Need code reject */ - /* Note: it's not legal to send EAP Nak here. */ - ppp_warn("EAP: unknown code %d received", code); - break; - } -} - -#if PRINTPKT_SUPPORT -/* - * eap_printpkt - print the contents of an EAP packet. - */ -static const char* const eap_codenames[] = { - "Request", "Response", "Success", "Failure" -}; - -static const char* const eap_typenames[] = { - "Identity", "Notification", "Nak", "MD5-Challenge", - "OTP", "Generic-Token", NULL, NULL, - "RSA", "DSS", "KEA", "KEA-Validate", - "TLS", "Defender", "Windows 2000", "Arcot", - "Cisco", "Nokia", "SRP" -}; - -static int eap_printpkt(const u_char *inp, int inlen, void (*printer) (void *, const char *, ...), void *arg) { - int code, id, len, rtype, vallen; - const u_char *pstart; - u32_t uval; - - if (inlen < EAP_HEADERLEN) - return (0); - pstart = inp; - GETCHAR(code, inp); - GETCHAR(id, inp); - GETSHORT(len, inp); - if (len < EAP_HEADERLEN || len > inlen) - return (0); - - if (code >= 1 && code <= (int)LWIP_ARRAYSIZE(eap_codenames)) - printer(arg, " %s", eap_codenames[code-1]); - else - printer(arg, " code=0x%x", code); - printer(arg, " id=0x%x", id); - len -= EAP_HEADERLEN; - switch (code) { - case EAP_REQUEST: - if (len < 1) { - printer(arg, " "); - break; - } - GETCHAR(rtype, inp); - len--; - if (rtype >= 1 && rtype <= (int)LWIP_ARRAYSIZE(eap_typenames)) - printer(arg, " %s", eap_typenames[rtype-1]); - else - printer(arg, " type=0x%x", rtype); - switch (rtype) { - case EAPT_IDENTITY: - case EAPT_NOTIFICATION: - if (len > 0) { - printer(arg, " "); - INCPTR(len, inp); - len = 0; - } else { - printer(arg, " "); - } - break; - - case EAPT_MD5CHAP: - if (len <= 0) - break; - GETCHAR(vallen, inp); - len--; - if (vallen > len) - goto truncated; - printer(arg, " ", vallen, inp); - INCPTR(vallen, inp); - len -= vallen; - if (len > 0) { - printer(arg, " "); - INCPTR(len, inp); - len = 0; - } else { - printer(arg, " "); - } - break; - - case EAPT_SRP: - if (len < 3) - goto truncated; - GETCHAR(vallen, inp); - len--; - printer(arg, "-%d", vallen); - switch (vallen) { - case EAPSRP_CHALLENGE: - GETCHAR(vallen, inp); - len--; - if (vallen >= len) - goto truncated; - if (vallen > 0) { - printer(arg, " "); - } else { - printer(arg, " "); - } - INCPTR(vallen, inp); - len -= vallen; - GETCHAR(vallen, inp); - len--; - if (vallen >= len) - goto truncated; - printer(arg, " ", vallen, inp); - INCPTR(vallen, inp); - len -= vallen; - GETCHAR(vallen, inp); - len--; - if (vallen > len) - goto truncated; - if (vallen == 0) { - printer(arg, " "); - } else { - printer(arg, " ", vallen, inp); - } - INCPTR(vallen, inp); - len -= vallen; - if (len == 0) { - printer(arg, " "); - } else { - printer(arg, " ", len, inp); - INCPTR(len, inp); - len = 0; - } - break; - - case EAPSRP_SKEY: - printer(arg, " ", len, inp); - INCPTR(len, inp); - len = 0; - break; - - case EAPSRP_SVALIDATOR: - if (len < (int)sizeof (u32_t)) - break; - GETLONG(uval, inp); - len -= sizeof (u32_t); - if (uval & SRPVAL_EBIT) { - printer(arg, " E"); - uval &= ~SRPVAL_EBIT; - } - if (uval != 0) { - printer(arg, " f<%X>", uval); - } - if ((vallen = len) > SHA_DIGESTSIZE) - vallen = SHA_DIGESTSIZE; - printer(arg, " ", len, inp, - len < SHA_DIGESTSIZE ? "?" : ""); - INCPTR(vallen, inp); - len -= vallen; - if (len > 0) { - printer(arg, " ", len, inp); - INCPTR(len, inp); - len = 0; - } - break; - - case EAPSRP_LWRECHALLENGE: - printer(arg, " ", len, inp); - INCPTR(len, inp); - len = 0; - break; - default: - break; - } - break; - default: - break; - } - break; - - case EAP_RESPONSE: - if (len < 1) - break; - GETCHAR(rtype, inp); - len--; - if (rtype >= 1 && rtype <= (int)LWIP_ARRAYSIZE(eap_typenames)) - printer(arg, " %s", eap_typenames[rtype-1]); - else - printer(arg, " type=0x%x", rtype); - switch (rtype) { - case EAPT_IDENTITY: - if (len > 0) { - printer(arg, " "); - INCPTR(len, inp); - len = 0; - } - break; - - case EAPT_NAK: - if (len <= 0) { - printer(arg, " "); - break; - } - GETCHAR(rtype, inp); - len--; - printer(arg, " = 1 && rtype < (int)LWIP_ARRAYSIZE(eap_typenames)) - printer(arg, " (%s)", eap_typenames[rtype-1]); - printer(arg, ">"); - break; - - case EAPT_MD5CHAP: - if (len <= 0) { - printer(arg, " "); - break; - } - GETCHAR(vallen, inp); - len--; - if (vallen > len) - goto truncated; - printer(arg, " ", vallen, inp); - INCPTR(vallen, inp); - len -= vallen; - if (len > 0) { - printer(arg, " "); - INCPTR(len, inp); - len = 0; - } else { - printer(arg, " "); - } - break; - - case EAPT_SRP: - if (len < 1) - goto truncated; - GETCHAR(vallen, inp); - len--; - printer(arg, "-%d", vallen); - switch (vallen) { - case EAPSRP_CKEY: - printer(arg, " ", len, inp); - INCPTR(len, inp); - len = 0; - break; - - case EAPSRP_CVALIDATOR: - if (len < (int)sizeof (u32_t)) - break; - GETLONG(uval, inp); - len -= sizeof (u32_t); - if (uval & SRPVAL_EBIT) { - printer(arg, " E"); - uval &= ~SRPVAL_EBIT; - } - if (uval != 0) { - printer(arg, " f<%X>", uval); - } - printer(arg, " ", len, inp, - len == SHA_DIGESTSIZE ? "" : "?"); - INCPTR(len, inp); - len = 0; - break; - - case EAPSRP_ACK: - break; - - case EAPSRP_LWRECHALLENGE: - printer(arg, " ", len, inp, - len == SHA_DIGESTSIZE ? "" : "?"); - if ((vallen = len) > SHA_DIGESTSIZE) - vallen = SHA_DIGESTSIZE; - INCPTR(vallen, inp); - len -= vallen; - break; - default: - break; - } - break; - default: - break; - } - break; - - case EAP_SUCCESS: /* No payload expected for these! */ - case EAP_FAILURE: - default: - break; - - truncated: - printer(arg, " "); - break; - } - - if (len > 8) - printer(arg, "%8B...", inp); - else if (len > 0) - printer(arg, "%.*B", len, inp); - INCPTR(len, inp); - - return (inp - pstart); -} -#endif /* PRINTPKT_SUPPORT */ - -#endif /* PPP_SUPPORT && EAP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.c b/Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.c deleted file mode 100644 index 4d84f60..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/ppp/ecp.c +++ /dev/null @@ -1,191 +0,0 @@ -/* - * ecp.c - PPP Encryption Control Protocol. - * - * Copyright (c) 2002 Google, Inc. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The name(s) of the authors of this software must not be used to - * endorse or promote products derived from this software without - * prior written permission. - * - * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY - * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * Derived from ccp.c, which is: - * - * Copyright (c) 1994-2002 Paul Mackerras. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. The name(s) of the authors of this software must not be used to - * endorse or promote products derived from this software without - * prior written permission. - * - * 3. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Paul Mackerras - * ". - * - * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY - * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && ECP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#include - -#include "netif/ppp/ppp_impl.h" - -#include "netif/ppp/fsm.h" -#include "netif/ppp/ecp.h" - -#if PPP_OPTIONS -static option_t ecp_option_list[] = { - { "noecp", o_bool, &ecp_protent.enabled_flag, - "Disable ECP negotiation" }, - { "-ecp", o_bool, &ecp_protent.enabled_flag, - "Disable ECP negotiation", OPT_ALIAS }, - - { NULL } -}; -#endif /* PPP_OPTIONS */ - -/* - * Protocol entry points from main code. - */ -static void ecp_init (int unit); -/* -static void ecp_open (int unit); -static void ecp_close (int unit, char *); -static void ecp_lowerup (int unit); -static void ecp_lowerdown (int); -static void ecp_input (int unit, u_char *pkt, int len); -static void ecp_protrej (int unit); -*/ -#if PRINTPKT_SUPPORT -static int ecp_printpkt (const u_char *pkt, int len, - void (*printer) (void *, char *, ...), - void *arg); -#endif /* PRINTPKT_SUPPORT */ -/* -static void ecp_datainput (int unit, u_char *pkt, int len); -*/ - -const struct protent ecp_protent = { - PPP_ECP, - ecp_init, - NULL, /* ecp_input, */ - NULL, /* ecp_protrej, */ - NULL, /* ecp_lowerup, */ - NULL, /* ecp_lowerdown, */ - NULL, /* ecp_open, */ - NULL, /* ecp_close, */ -#if PRINTPKT_SUPPORT - ecp_printpkt, -#endif /* PRINTPKT_SUPPORT */ -#if PPP_DATAINPUT - NULL, /* ecp_datainput, */ -#endif /* PPP_DATAINPUT */ -#if PRINTPKT_SUPPORT - "ECP", - "Encrypted", -#endif /* PRINTPKT_SUPPORT */ -#if PPP_OPTIONS - ecp_option_list, - NULL, -#endif /* PPP_OPTIONS */ -#if DEMAND_SUPPORT - NULL, - NULL -#endif /* DEMAND_SUPPORT */ -}; - -fsm ecp_fsm[NUM_PPP]; -ecp_options ecp_wantoptions[NUM_PPP]; /* what to request the peer to use */ -ecp_options ecp_gotoptions[NUM_PPP]; /* what the peer agreed to do */ -ecp_options ecp_allowoptions[NUM_PPP]; /* what we'll agree to do */ -ecp_options ecp_hisoptions[NUM_PPP]; /* what we agreed to do */ - -static const fsm_callbacks ecp_callbacks = { - NULL, /* ecp_resetci, */ - NULL, /* ecp_cilen, */ - NULL, /* ecp_addci, */ - NULL, /* ecp_ackci, */ - NULL, /* ecp_nakci, */ - NULL, /* ecp_rejci, */ - NULL, /* ecp_reqci, */ - NULL, /* ecp_up, */ - NULL, /* ecp_down, */ - NULL, - NULL, - NULL, - NULL, - NULL, /* ecp_extcode, */ - "ECP" -}; - -/* - * ecp_init - initialize ECP. - */ -static void -ecp_init(unit) - int unit; -{ - fsm *f = &ecp_fsm[unit]; - - f->unit = unit; - f->protocol = PPP_ECP; - f->callbacks = &ecp_callbacks; - fsm_init(f); - -#if 0 /* Not necessary, everything is cleared in ppp_new() */ - memset(&ecp_wantoptions[unit], 0, sizeof(ecp_options)); - memset(&ecp_gotoptions[unit], 0, sizeof(ecp_options)); - memset(&ecp_allowoptions[unit], 0, sizeof(ecp_options)); - memset(&ecp_hisoptions[unit], 0, sizeof(ecp_options)); -#endif /* 0 */ - -} - - -#if PRINTPKT_SUPPORT -static int -ecp_printpkt(p, plen, printer, arg) - const u_char *p; - int plen; - void (*printer) (void *, char *, ...); - void *arg; -{ - return 0; -} -#endif /* PRINTPKT_SUPPORT */ - -#endif /* PPP_SUPPORT && ECP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.c b/Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.c deleted file mode 100644 index 01493bc..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/ppp/eui64.c +++ /dev/null @@ -1,56 +0,0 @@ -/* - * eui64.c - EUI64 routines for IPv6CP. - * - * Copyright (c) 1999 Tommi Komulainen. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The name(s) of the authors of this software must not be used to - * endorse or promote products derived from this software without - * prior written permission. - * - * 4. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Tommi Komulainen - * ". - * - * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY - * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * $Id: eui64.c,v 1.6 2002/12/04 23:03:32 paulus Exp $ - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && PPP_IPV6_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#include "netif/ppp/ppp_impl.h" -#include "netif/ppp/eui64.h" - -/* - * eui64_ntoa - Make an ascii representation of an interface identifier - */ -char *eui64_ntoa(eui64_t e) { - static char buf[20]; - - sprintf(buf, "%02x%02x:%02x%02x:%02x%02x:%02x%02x", - e.e8[0], e.e8[1], e.e8[2], e.e8[3], - e.e8[4], e.e8[5], e.e8[6], e.e8[7]); - return buf; -} - -#endif /* PPP_SUPPORT && PPP_IPV6_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.c b/Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.c deleted file mode 100644 index b1f08af..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/ppp/fsm.c +++ /dev/null @@ -1,799 +0,0 @@ -/* - * fsm.c - {Link, IP} Control Protocol Finite State Machine. - * - * Copyright (c) 1984-2000 Carnegie Mellon University. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The name "Carnegie Mellon University" must not be used to - * endorse or promote products derived from this software without - * prior written permission. For permission or any legal - * details, please contact - * Office of Technology Transfer - * Carnegie Mellon University - * 5000 Forbes Avenue - * Pittsburgh, PA 15213-3890 - * (412) 268-4387, fax: (412) 268-7395 - * tech-transfer@andrew.cmu.edu - * - * 4. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Computing Services - * at Carnegie Mellon University (http://www.cmu.edu/computing/)." - * - * CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE - * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -/* - * @todo: - * Randomize fsm id on link/init. - * Deal with variable outgoing MTU. - */ - -#if 0 /* UNUSED */ -#include -#include -#include -#endif /* UNUSED */ - -#include "netif/ppp/ppp_impl.h" - -#include "netif/ppp/fsm.h" - -static void fsm_timeout (void *); -static void fsm_rconfreq(fsm *f, u_char id, u_char *inp, int len); -static void fsm_rconfack(fsm *f, int id, u_char *inp, int len); -static void fsm_rconfnakrej(fsm *f, int code, int id, u_char *inp, int len); -static void fsm_rtermreq(fsm *f, int id, u_char *p, int len); -static void fsm_rtermack(fsm *f); -static void fsm_rcoderej(fsm *f, u_char *inp, int len); -static void fsm_sconfreq(fsm *f, int retransmit); - -#define PROTO_NAME(f) ((f)->callbacks->proto_name) - -/* - * fsm_init - Initialize fsm. - * - * Initialize fsm state. - */ -void fsm_init(fsm *f) { - ppp_pcb *pcb = f->pcb; - f->state = PPP_FSM_INITIAL; - f->flags = 0; - f->id = 0; /* XXX Start with random id? */ - f->maxnakloops = pcb->settings.fsm_max_nak_loops; - f->term_reason_len = 0; -} - - -/* - * fsm_lowerup - The lower layer is up. - */ -void fsm_lowerup(fsm *f) { - switch( f->state ){ - case PPP_FSM_INITIAL: - f->state = PPP_FSM_CLOSED; - break; - - case PPP_FSM_STARTING: - if( f->flags & OPT_SILENT ) - f->state = PPP_FSM_STOPPED; - else { - /* Send an initial configure-request */ - fsm_sconfreq(f, 0); - f->state = PPP_FSM_REQSENT; - } - break; - - default: - FSMDEBUG(("%s: Up event in state %d!", PROTO_NAME(f), f->state)); - /* no break */ - } -} - - -/* - * fsm_lowerdown - The lower layer is down. - * - * Cancel all timeouts and inform upper layers. - */ -void fsm_lowerdown(fsm *f) { - switch( f->state ){ - case PPP_FSM_CLOSED: - f->state = PPP_FSM_INITIAL; - break; - - case PPP_FSM_STOPPED: - f->state = PPP_FSM_STARTING; - if( f->callbacks->starting ) - (*f->callbacks->starting)(f); - break; - - case PPP_FSM_CLOSING: - f->state = PPP_FSM_INITIAL; - UNTIMEOUT(fsm_timeout, f); /* Cancel timeout */ - break; - - case PPP_FSM_STOPPING: - case PPP_FSM_REQSENT: - case PPP_FSM_ACKRCVD: - case PPP_FSM_ACKSENT: - f->state = PPP_FSM_STARTING; - UNTIMEOUT(fsm_timeout, f); /* Cancel timeout */ - break; - - case PPP_FSM_OPENED: - if( f->callbacks->down ) - (*f->callbacks->down)(f); - f->state = PPP_FSM_STARTING; - break; - - default: - FSMDEBUG(("%s: Down event in state %d!", PROTO_NAME(f), f->state)); - /* no break */ - } -} - - -/* - * fsm_open - Link is allowed to come up. - */ -void fsm_open(fsm *f) { - switch( f->state ){ - case PPP_FSM_INITIAL: - f->state = PPP_FSM_STARTING; - if( f->callbacks->starting ) - (*f->callbacks->starting)(f); - break; - - case PPP_FSM_CLOSED: - if( f->flags & OPT_SILENT ) - f->state = PPP_FSM_STOPPED; - else { - /* Send an initial configure-request */ - fsm_sconfreq(f, 0); - f->state = PPP_FSM_REQSENT; - } - break; - - case PPP_FSM_CLOSING: - f->state = PPP_FSM_STOPPING; - /* fall through */ - /* no break */ - case PPP_FSM_STOPPED: - case PPP_FSM_OPENED: - if( f->flags & OPT_RESTART ){ - fsm_lowerdown(f); - fsm_lowerup(f); - } - break; - default: - break; - } -} - -/* - * terminate_layer - Start process of shutting down the FSM - * - * Cancel any timeout running, notify upper layers we're done, and - * send a terminate-request message as configured. - */ -static void terminate_layer(fsm *f, int nextstate) { - ppp_pcb *pcb = f->pcb; - - if( f->state != PPP_FSM_OPENED ) - UNTIMEOUT(fsm_timeout, f); /* Cancel timeout */ - else if( f->callbacks->down ) - (*f->callbacks->down)(f); /* Inform upper layers we're down */ - - /* Init restart counter and send Terminate-Request */ - f->retransmits = pcb->settings.fsm_max_term_transmits; - fsm_sdata(f, TERMREQ, f->reqid = ++f->id, - (const u_char *) f->term_reason, f->term_reason_len); - - if (f->retransmits == 0) { - /* - * User asked for no terminate requests at all; just close it. - * We've already fired off one Terminate-Request just to be nice - * to the peer, but we're not going to wait for a reply. - */ - f->state = nextstate == PPP_FSM_CLOSING ? PPP_FSM_CLOSED : PPP_FSM_STOPPED; - if( f->callbacks->finished ) - (*f->callbacks->finished)(f); - return; - } - - TIMEOUT(fsm_timeout, f, pcb->settings.fsm_timeout_time); - --f->retransmits; - - f->state = nextstate; -} - -/* - * fsm_close - Start closing connection. - * - * Cancel timeouts and either initiate close or possibly go directly to - * the PPP_FSM_CLOSED state. - */ -void fsm_close(fsm *f, const char *reason) { - f->term_reason = reason; - f->term_reason_len = (reason == NULL? 0: (u8_t)LWIP_MIN(strlen(reason), 0xFF) ); - switch( f->state ){ - case PPP_FSM_STARTING: - f->state = PPP_FSM_INITIAL; - break; - case PPP_FSM_STOPPED: - f->state = PPP_FSM_CLOSED; - break; - case PPP_FSM_STOPPING: - f->state = PPP_FSM_CLOSING; - break; - - case PPP_FSM_REQSENT: - case PPP_FSM_ACKRCVD: - case PPP_FSM_ACKSENT: - case PPP_FSM_OPENED: - terminate_layer(f, PPP_FSM_CLOSING); - break; - default: - break; - } -} - - -/* - * fsm_timeout - Timeout expired. - */ -static void fsm_timeout(void *arg) { - fsm *f = (fsm *) arg; - ppp_pcb *pcb = f->pcb; - - switch (f->state) { - case PPP_FSM_CLOSING: - case PPP_FSM_STOPPING: - if( f->retransmits <= 0 ){ - /* - * We've waited for an ack long enough. Peer probably heard us. - */ - f->state = (f->state == PPP_FSM_CLOSING)? PPP_FSM_CLOSED: PPP_FSM_STOPPED; - if( f->callbacks->finished ) - (*f->callbacks->finished)(f); - } else { - /* Send Terminate-Request */ - fsm_sdata(f, TERMREQ, f->reqid = ++f->id, - (const u_char *) f->term_reason, f->term_reason_len); - TIMEOUT(fsm_timeout, f, pcb->settings.fsm_timeout_time); - --f->retransmits; - } - break; - - case PPP_FSM_REQSENT: - case PPP_FSM_ACKRCVD: - case PPP_FSM_ACKSENT: - if (f->retransmits <= 0) { - ppp_warn("%s: timeout sending Config-Requests", PROTO_NAME(f)); - f->state = PPP_FSM_STOPPED; - if( (f->flags & OPT_PASSIVE) == 0 && f->callbacks->finished ) - (*f->callbacks->finished)(f); - - } else { - /* Retransmit the configure-request */ - if (f->callbacks->retransmit) - (*f->callbacks->retransmit)(f); - fsm_sconfreq(f, 1); /* Re-send Configure-Request */ - if( f->state == PPP_FSM_ACKRCVD ) - f->state = PPP_FSM_REQSENT; - } - break; - - default: - FSMDEBUG(("%s: Timeout event in state %d!", PROTO_NAME(f), f->state)); - /* no break */ - } -} - - -/* - * fsm_input - Input packet. - */ -void fsm_input(fsm *f, u_char *inpacket, int l) { - u_char *inp; - u_char code, id; - int len; - - /* - * Parse header (code, id and length). - * If packet too short, drop it. - */ - inp = inpacket; - if (l < HEADERLEN) { - FSMDEBUG(("fsm_input(%x): Rcvd short header.", f->protocol)); - return; - } - GETCHAR(code, inp); - GETCHAR(id, inp); - GETSHORT(len, inp); - if (len < HEADERLEN) { - FSMDEBUG(("fsm_input(%x): Rcvd illegal length.", f->protocol)); - return; - } - if (len > l) { - FSMDEBUG(("fsm_input(%x): Rcvd short packet.", f->protocol)); - return; - } - len -= HEADERLEN; /* subtract header length */ - - if( f->state == PPP_FSM_INITIAL || f->state == PPP_FSM_STARTING ){ - FSMDEBUG(("fsm_input(%x): Rcvd packet in state %d.", - f->protocol, f->state)); - return; - } - - /* - * Action depends on code. - */ - switch (code) { - case CONFREQ: - fsm_rconfreq(f, id, inp, len); - break; - - case CONFACK: - fsm_rconfack(f, id, inp, len); - break; - - case CONFNAK: - case CONFREJ: - fsm_rconfnakrej(f, code, id, inp, len); - break; - - case TERMREQ: - fsm_rtermreq(f, id, inp, len); - break; - - case TERMACK: - fsm_rtermack(f); - break; - - case CODEREJ: - fsm_rcoderej(f, inp, len); - break; - - default: - if( !f->callbacks->extcode - || !(*f->callbacks->extcode)(f, code, id, inp, len) ) - fsm_sdata(f, CODEREJ, ++f->id, inpacket, len + HEADERLEN); - break; - } -} - - -/* - * fsm_rconfreq - Receive Configure-Request. - */ -static void fsm_rconfreq(fsm *f, u_char id, u_char *inp, int len) { - int code, reject_if_disagree; - - switch( f->state ){ - case PPP_FSM_CLOSED: - /* Go away, we're closed */ - fsm_sdata(f, TERMACK, id, NULL, 0); - return; - case PPP_FSM_CLOSING: - case PPP_FSM_STOPPING: - return; - - case PPP_FSM_OPENED: - /* Go down and restart negotiation */ - if( f->callbacks->down ) - (*f->callbacks->down)(f); /* Inform upper layers */ - fsm_sconfreq(f, 0); /* Send initial Configure-Request */ - f->state = PPP_FSM_REQSENT; - break; - - case PPP_FSM_STOPPED: - /* Negotiation started by our peer */ - fsm_sconfreq(f, 0); /* Send initial Configure-Request */ - f->state = PPP_FSM_REQSENT; - break; - default: - break; - } - - /* - * Pass the requested configuration options - * to protocol-specific code for checking. - */ - if (f->callbacks->reqci){ /* Check CI */ - reject_if_disagree = (f->nakloops >= f->maxnakloops); - code = (*f->callbacks->reqci)(f, inp, &len, reject_if_disagree); - } else if (len) - code = CONFREJ; /* Reject all CI */ - else - code = CONFACK; - - /* send the Ack, Nak or Rej to the peer */ - fsm_sdata(f, code, id, inp, len); - - if (code == CONFACK) { - if (f->state == PPP_FSM_ACKRCVD) { - UNTIMEOUT(fsm_timeout, f); /* Cancel timeout */ - f->state = PPP_FSM_OPENED; - if (f->callbacks->up) - (*f->callbacks->up)(f); /* Inform upper layers */ - } else - f->state = PPP_FSM_ACKSENT; - f->nakloops = 0; - - } else { - /* we sent CONFACK or CONFREJ */ - if (f->state != PPP_FSM_ACKRCVD) - f->state = PPP_FSM_REQSENT; - if( code == CONFNAK ) - ++f->nakloops; - } -} - - -/* - * fsm_rconfack - Receive Configure-Ack. - */ -static void fsm_rconfack(fsm *f, int id, u_char *inp, int len) { - ppp_pcb *pcb = f->pcb; - - if (id != f->reqid || f->seen_ack) /* Expected id? */ - return; /* Nope, toss... */ - if( !(f->callbacks->ackci? (*f->callbacks->ackci)(f, inp, len): - (len == 0)) ){ - /* Ack is bad - ignore it */ - ppp_error("Received bad configure-ack: %P", inp, len); - return; - } - f->seen_ack = 1; - f->rnakloops = 0; - - switch (f->state) { - case PPP_FSM_CLOSED: - case PPP_FSM_STOPPED: - fsm_sdata(f, TERMACK, id, NULL, 0); - break; - - case PPP_FSM_REQSENT: - f->state = PPP_FSM_ACKRCVD; - f->retransmits = pcb->settings.fsm_max_conf_req_transmits; - break; - - case PPP_FSM_ACKRCVD: - /* Huh? an extra valid Ack? oh well... */ - UNTIMEOUT(fsm_timeout, f); /* Cancel timeout */ - fsm_sconfreq(f, 0); - f->state = PPP_FSM_REQSENT; - break; - - case PPP_FSM_ACKSENT: - UNTIMEOUT(fsm_timeout, f); /* Cancel timeout */ - f->state = PPP_FSM_OPENED; - f->retransmits = pcb->settings.fsm_max_conf_req_transmits; - if (f->callbacks->up) - (*f->callbacks->up)(f); /* Inform upper layers */ - break; - - case PPP_FSM_OPENED: - /* Go down and restart negotiation */ - if (f->callbacks->down) - (*f->callbacks->down)(f); /* Inform upper layers */ - fsm_sconfreq(f, 0); /* Send initial Configure-Request */ - f->state = PPP_FSM_REQSENT; - break; - default: - break; - } -} - - -/* - * fsm_rconfnakrej - Receive Configure-Nak or Configure-Reject. - */ -static void fsm_rconfnakrej(fsm *f, int code, int id, u_char *inp, int len) { - int ret; - int treat_as_reject; - - if (id != f->reqid || f->seen_ack) /* Expected id? */ - return; /* Nope, toss... */ - - if (code == CONFNAK) { - ++f->rnakloops; - treat_as_reject = (f->rnakloops >= f->maxnakloops); - if (f->callbacks->nakci == NULL - || !(ret = f->callbacks->nakci(f, inp, len, treat_as_reject))) { - ppp_error("Received bad configure-nak: %P", inp, len); - return; - } - } else { - f->rnakloops = 0; - if (f->callbacks->rejci == NULL - || !(ret = f->callbacks->rejci(f, inp, len))) { - ppp_error("Received bad configure-rej: %P", inp, len); - return; - } - } - - f->seen_ack = 1; - - switch (f->state) { - case PPP_FSM_CLOSED: - case PPP_FSM_STOPPED: - fsm_sdata(f, TERMACK, id, NULL, 0); - break; - - case PPP_FSM_REQSENT: - case PPP_FSM_ACKSENT: - /* They didn't agree to what we wanted - try another request */ - UNTIMEOUT(fsm_timeout, f); /* Cancel timeout */ - if (ret < 0) - f->state = PPP_FSM_STOPPED; /* kludge for stopping CCP */ - else - fsm_sconfreq(f, 0); /* Send Configure-Request */ - break; - - case PPP_FSM_ACKRCVD: - /* Got a Nak/reject when we had already had an Ack?? oh well... */ - UNTIMEOUT(fsm_timeout, f); /* Cancel timeout */ - fsm_sconfreq(f, 0); - f->state = PPP_FSM_REQSENT; - break; - - case PPP_FSM_OPENED: - /* Go down and restart negotiation */ - if (f->callbacks->down) - (*f->callbacks->down)(f); /* Inform upper layers */ - fsm_sconfreq(f, 0); /* Send initial Configure-Request */ - f->state = PPP_FSM_REQSENT; - break; - default: - break; - } -} - - -/* - * fsm_rtermreq - Receive Terminate-Req. - */ -static void fsm_rtermreq(fsm *f, int id, u_char *p, int len) { - ppp_pcb *pcb = f->pcb; - - switch (f->state) { - case PPP_FSM_ACKRCVD: - case PPP_FSM_ACKSENT: - f->state = PPP_FSM_REQSENT; /* Start over but keep trying */ - break; - - case PPP_FSM_OPENED: - if (len > 0) { - ppp_info("%s terminated by peer (%0.*v)", PROTO_NAME(f), len, p); - } else - ppp_info("%s terminated by peer", PROTO_NAME(f)); - f->retransmits = 0; - f->state = PPP_FSM_STOPPING; - if (f->callbacks->down) - (*f->callbacks->down)(f); /* Inform upper layers */ - TIMEOUT(fsm_timeout, f, pcb->settings.fsm_timeout_time); - break; - default: - break; - } - - fsm_sdata(f, TERMACK, id, NULL, 0); -} - - -/* - * fsm_rtermack - Receive Terminate-Ack. - */ -static void fsm_rtermack(fsm *f) { - switch (f->state) { - case PPP_FSM_CLOSING: - UNTIMEOUT(fsm_timeout, f); - f->state = PPP_FSM_CLOSED; - if( f->callbacks->finished ) - (*f->callbacks->finished)(f); - break; - case PPP_FSM_STOPPING: - UNTIMEOUT(fsm_timeout, f); - f->state = PPP_FSM_STOPPED; - if( f->callbacks->finished ) - (*f->callbacks->finished)(f); - break; - - case PPP_FSM_ACKRCVD: - f->state = PPP_FSM_REQSENT; - break; - - case PPP_FSM_OPENED: - if (f->callbacks->down) - (*f->callbacks->down)(f); /* Inform upper layers */ - fsm_sconfreq(f, 0); - f->state = PPP_FSM_REQSENT; - break; - default: - break; - } -} - - -/* - * fsm_rcoderej - Receive an Code-Reject. - */ -static void fsm_rcoderej(fsm *f, u_char *inp, int len) { - u_char code, id; - - if (len < HEADERLEN) { - FSMDEBUG(("fsm_rcoderej: Rcvd short Code-Reject packet!")); - return; - } - GETCHAR(code, inp); - GETCHAR(id, inp); - ppp_warn("%s: Rcvd Code-Reject for code %d, id %d", PROTO_NAME(f), code, id); - - if( f->state == PPP_FSM_ACKRCVD ) - f->state = PPP_FSM_REQSENT; -} - - -/* - * fsm_protreject - Peer doesn't speak this protocol. - * - * Treat this as a catastrophic error (RXJ-). - */ -void fsm_protreject(fsm *f) { - switch( f->state ){ - case PPP_FSM_CLOSING: - UNTIMEOUT(fsm_timeout, f); /* Cancel timeout */ - /* fall through */ - /* no break */ - case PPP_FSM_CLOSED: - f->state = PPP_FSM_CLOSED; - if( f->callbacks->finished ) - (*f->callbacks->finished)(f); - break; - - case PPP_FSM_STOPPING: - case PPP_FSM_REQSENT: - case PPP_FSM_ACKRCVD: - case PPP_FSM_ACKSENT: - UNTIMEOUT(fsm_timeout, f); /* Cancel timeout */ - /* fall through */ - /* no break */ - case PPP_FSM_STOPPED: - f->state = PPP_FSM_STOPPED; - if( f->callbacks->finished ) - (*f->callbacks->finished)(f); - break; - - case PPP_FSM_OPENED: - terminate_layer(f, PPP_FSM_STOPPING); - break; - - default: - FSMDEBUG(("%s: Protocol-reject event in state %d!", - PROTO_NAME(f), f->state)); - /* no break */ - } -} - - -/* - * fsm_sconfreq - Send a Configure-Request. - */ -static void fsm_sconfreq(fsm *f, int retransmit) { - ppp_pcb *pcb = f->pcb; - struct pbuf *p; - u_char *outp; - int cilen; - - if( f->state != PPP_FSM_REQSENT && f->state != PPP_FSM_ACKRCVD && f->state != PPP_FSM_ACKSENT ){ - /* Not currently negotiating - reset options */ - if( f->callbacks->resetci ) - (*f->callbacks->resetci)(f); - f->nakloops = 0; - f->rnakloops = 0; - } - - if( !retransmit ){ - /* New request - reset retransmission counter, use new ID */ - f->retransmits = pcb->settings.fsm_max_conf_req_transmits; - f->reqid = ++f->id; - } - - f->seen_ack = 0; - - /* - * Make up the request packet - */ - if( f->callbacks->cilen && f->callbacks->addci ){ - cilen = (*f->callbacks->cilen)(f); - if( cilen > pcb->peer_mru - HEADERLEN ) - cilen = pcb->peer_mru - HEADERLEN; - } else - cilen = 0; - - p = pbuf_alloc(PBUF_RAW, (u16_t)(cilen + HEADERLEN + PPP_HDRLEN), PPP_CTRL_PBUF_TYPE); - if(NULL == p) - return; - if(p->tot_len != p->len) { - pbuf_free(p); - return; - } - - /* send the request to our peer */ - outp = (u_char*)p->payload; - MAKEHEADER(outp, f->protocol); - PUTCHAR(CONFREQ, outp); - PUTCHAR(f->reqid, outp); - PUTSHORT(cilen + HEADERLEN, outp); - if (cilen != 0) { - (*f->callbacks->addci)(f, outp, &cilen); - LWIP_ASSERT("cilen == p->len - HEADERLEN - PPP_HDRLEN", cilen == p->len - HEADERLEN - PPP_HDRLEN); - } - - ppp_write(pcb, p); - - /* start the retransmit timer */ - --f->retransmits; - TIMEOUT(fsm_timeout, f, pcb->settings.fsm_timeout_time); -} - - -/* - * fsm_sdata - Send some data. - * - * Used for all packets sent to our peer by this module. - */ -void fsm_sdata(fsm *f, u_char code, u_char id, const u_char *data, int datalen) { - ppp_pcb *pcb = f->pcb; - struct pbuf *p; - u_char *outp; - int outlen; - - /* Adjust length to be smaller than MTU */ - if (datalen > pcb->peer_mru - HEADERLEN) - datalen = pcb->peer_mru - HEADERLEN; - outlen = datalen + HEADERLEN; - - p = pbuf_alloc(PBUF_RAW, (u16_t)(outlen + PPP_HDRLEN), PPP_CTRL_PBUF_TYPE); - if(NULL == p) - return; - if(p->tot_len != p->len) { - pbuf_free(p); - return; - } - - outp = (u_char*)p->payload; - if (datalen) /* && data != outp + PPP_HDRLEN + HEADERLEN) -- was only for fsm_sconfreq() */ - MEMCPY(outp + PPP_HDRLEN + HEADERLEN, data, datalen); - MAKEHEADER(outp, f->protocol); - PUTCHAR(code, outp); - PUTCHAR(id, outp); - PUTSHORT(outlen, outp); - ppp_write(pcb, p); -} - -#endif /* PPP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.c b/Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.c deleted file mode 100644 index b7c766e..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/ppp/ipcp.c +++ /dev/null @@ -1,2418 +0,0 @@ -/* - * ipcp.c - PPP IP Control Protocol. - * - * Copyright (c) 1984-2000 Carnegie Mellon University. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The name "Carnegie Mellon University" must not be used to - * endorse or promote products derived from this software without - * prior written permission. For permission or any legal - * details, please contact - * Office of Technology Transfer - * Carnegie Mellon University - * 5000 Forbes Avenue - * Pittsburgh, PA 15213-3890 - * (412) 268-4387, fax: (412) 268-7395 - * tech-transfer@andrew.cmu.edu - * - * 4. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Computing Services - * at Carnegie Mellon University (http://www.cmu.edu/computing/)." - * - * CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE - * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && PPP_IPV4_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -/* - * @todo: - */ - -#if 0 /* UNUSED */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#endif /* UNUSED */ - -#include "netif/ppp/ppp_impl.h" - -#include "netif/ppp/fsm.h" -#include "netif/ppp/ipcp.h" - -#if 0 /* UNUSED */ -/* global vars */ -u32_t netmask = 0; /* IP netmask to set on interface */ -#endif /* UNUSED */ - -#if 0 /* UNUSED */ -bool disable_defaultip = 0; /* Don't use hostname for default IP adrs */ -#endif /* UNUSED */ - -#if 0 /* moved to ppp_settings */ -bool noremoteip = 0; /* Let him have no IP address */ -#endif /* moved to ppp_setting */ - -#if 0 /* UNUSED */ -/* Hook for a plugin to know when IP protocol has come up */ -void (*ip_up_hook) (void) = NULL; - -/* Hook for a plugin to know when IP protocol has come down */ -void (*ip_down_hook) (void) = NULL; - -/* Hook for a plugin to choose the remote IP address */ -void (*ip_choose_hook) (u32_t *) = NULL; -#endif /* UNUSED */ - -#if PPP_NOTIFY -/* Notifiers for when IPCP goes up and down */ -struct notifier *ip_up_notifier = NULL; -struct notifier *ip_down_notifier = NULL; -#endif /* PPP_NOTIFY */ - -/* local vars */ -#if 0 /* moved to ppp_pcb */ -static int default_route_set[NUM_PPP]; /* Have set up a default route */ -static int proxy_arp_set[NUM_PPP]; /* Have created proxy arp entry */ -static int ipcp_is_up; /* have called np_up() */ -static int ipcp_is_open; /* haven't called np_finished() */ -static bool ask_for_local; /* request our address from peer */ -#endif /* moved to ppp_pcb */ -#if 0 /* UNUSED */ -static char vj_value[8]; /* string form of vj option value */ -static char netmask_str[20]; /* string form of netmask value */ -#endif /* UNUSED */ - -/* - * Callbacks for fsm code. (CI = Configuration Information) - */ -static void ipcp_resetci(fsm *f); /* Reset our CI */ -static int ipcp_cilen(fsm *f); /* Return length of our CI */ -static void ipcp_addci(fsm *f, u_char *ucp, int *lenp); /* Add our CI */ -static int ipcp_ackci(fsm *f, u_char *p, int len); /* Peer ack'd our CI */ -static int ipcp_nakci(fsm *f, u_char *p, int len, int treat_as_reject);/* Peer nak'd our CI */ -static int ipcp_rejci(fsm *f, u_char *p, int len); /* Peer rej'd our CI */ -static int ipcp_reqci(fsm *f, u_char *inp, int *len, int reject_if_disagree); /* Rcv CI */ -static void ipcp_up(fsm *f); /* We're UP */ -static void ipcp_down(fsm *f); /* We're DOWN */ -static void ipcp_finished(fsm *f); /* Don't need lower layer */ - -static const fsm_callbacks ipcp_callbacks = { /* IPCP callback routines */ - ipcp_resetci, /* Reset our Configuration Information */ - ipcp_cilen, /* Length of our Configuration Information */ - ipcp_addci, /* Add our Configuration Information */ - ipcp_ackci, /* ACK our Configuration Information */ - ipcp_nakci, /* NAK our Configuration Information */ - ipcp_rejci, /* Reject our Configuration Information */ - ipcp_reqci, /* Request peer's Configuration Information */ - ipcp_up, /* Called when fsm reaches OPENED state */ - ipcp_down, /* Called when fsm leaves OPENED state */ - NULL, /* Called when we want the lower layer up */ - ipcp_finished, /* Called when we want the lower layer down */ - NULL, /* Called when Protocol-Reject received */ - NULL, /* Retransmission is necessary */ - NULL, /* Called to handle protocol-specific codes */ - "IPCP" /* String name of protocol */ -}; - -/* - * Command-line options. - */ -#if PPP_OPTIONS -static int setvjslots (char **); -static int setdnsaddr (char **); -static int setwinsaddr (char **); -static int setnetmask (char **); -int setipaddr (char *, char **, int); - -static void printipaddr (option_t *, void (*)(void *, char *,...),void *); - -static option_t ipcp_option_list[] = { - { "noip", o_bool, &ipcp_protent.enabled_flag, - "Disable IP and IPCP" }, - { "-ip", o_bool, &ipcp_protent.enabled_flag, - "Disable IP and IPCP", OPT_ALIAS }, - - { "novj", o_bool, &ipcp_wantoptions[0].neg_vj, - "Disable VJ compression", OPT_A2CLR, &ipcp_allowoptions[0].neg_vj }, - { "-vj", o_bool, &ipcp_wantoptions[0].neg_vj, - "Disable VJ compression", OPT_ALIAS | OPT_A2CLR, - &ipcp_allowoptions[0].neg_vj }, - - { "novjccomp", o_bool, &ipcp_wantoptions[0].cflag, - "Disable VJ connection-ID compression", OPT_A2CLR, - &ipcp_allowoptions[0].cflag }, - { "-vjccomp", o_bool, &ipcp_wantoptions[0].cflag, - "Disable VJ connection-ID compression", OPT_ALIAS | OPT_A2CLR, - &ipcp_allowoptions[0].cflag }, - - { "vj-max-slots", o_special, (void *)setvjslots, - "Set maximum VJ header slots", - OPT_PRIO | OPT_A2STRVAL | OPT_STATIC, vj_value }, - - { "ipcp-accept-local", o_bool, &ipcp_wantoptions[0].accept_local, - "Accept peer's address for us", 1 }, - { "ipcp-accept-remote", o_bool, &ipcp_wantoptions[0].accept_remote, - "Accept peer's address for it", 1 }, - - { "ipparam", o_string, &ipparam, - "Set ip script parameter", OPT_PRIO }, - - { "noipdefault", o_bool, &disable_defaultip, - "Don't use name for default IP adrs", 1 }, - - { "ms-dns", 1, (void *)setdnsaddr, - "DNS address for the peer's use" }, - { "ms-wins", 1, (void *)setwinsaddr, - "Nameserver for SMB over TCP/IP for peer" }, - - { "ipcp-restart", o_int, &ipcp_fsm[0].timeouttime, - "Set timeout for IPCP", OPT_PRIO }, - { "ipcp-max-terminate", o_int, &ipcp_fsm[0].maxtermtransmits, - "Set max #xmits for term-reqs", OPT_PRIO }, - { "ipcp-max-configure", o_int, &ipcp_fsm[0].maxconfreqtransmits, - "Set max #xmits for conf-reqs", OPT_PRIO }, - { "ipcp-max-failure", o_int, &ipcp_fsm[0].maxnakloops, - "Set max #conf-naks for IPCP", OPT_PRIO }, - - { "defaultroute", o_bool, &ipcp_wantoptions[0].default_route, - "Add default route", OPT_ENABLE|1, &ipcp_allowoptions[0].default_route }, - { "nodefaultroute", o_bool, &ipcp_allowoptions[0].default_route, - "disable defaultroute option", OPT_A2CLR, - &ipcp_wantoptions[0].default_route }, - { "-defaultroute", o_bool, &ipcp_allowoptions[0].default_route, - "disable defaultroute option", OPT_ALIAS | OPT_A2CLR, - &ipcp_wantoptions[0].default_route }, - - { "replacedefaultroute", o_bool, - &ipcp_wantoptions[0].replace_default_route, - "Replace default route", 1 - }, - { "noreplacedefaultroute", o_bool, - &ipcp_allowoptions[0].replace_default_route, - "Never replace default route", OPT_A2COPY, - &ipcp_wantoptions[0].replace_default_route }, - { "proxyarp", o_bool, &ipcp_wantoptions[0].proxy_arp, - "Add proxy ARP entry", OPT_ENABLE|1, &ipcp_allowoptions[0].proxy_arp }, - { "noproxyarp", o_bool, &ipcp_allowoptions[0].proxy_arp, - "disable proxyarp option", OPT_A2CLR, - &ipcp_wantoptions[0].proxy_arp }, - { "-proxyarp", o_bool, &ipcp_allowoptions[0].proxy_arp, - "disable proxyarp option", OPT_ALIAS | OPT_A2CLR, - &ipcp_wantoptions[0].proxy_arp }, - - { "usepeerdns", o_bool, &usepeerdns, - "Ask peer for DNS address(es)", 1 }, - - { "netmask", o_special, (void *)setnetmask, - "set netmask", OPT_PRIO | OPT_A2STRVAL | OPT_STATIC, netmask_str }, - - { "ipcp-no-addresses", o_bool, &ipcp_wantoptions[0].old_addrs, - "Disable old-style IP-Addresses usage", OPT_A2CLR, - &ipcp_allowoptions[0].old_addrs }, - { "ipcp-no-address", o_bool, &ipcp_wantoptions[0].neg_addr, - "Disable IP-Address usage", OPT_A2CLR, - &ipcp_allowoptions[0].neg_addr }, - - { "noremoteip", o_bool, &noremoteip, - "Allow peer to have no IP address", 1 }, - - { "nosendip", o_bool, &ipcp_wantoptions[0].neg_addr, - "Don't send our IP address to peer", OPT_A2CLR, - &ipcp_wantoptions[0].old_addrs}, - - { "IP addresses", o_wild, (void *) &setipaddr, - "set local and remote IP addresses", - OPT_NOARG | OPT_A2PRINTER, (void *) &printipaddr }, - - { NULL } -}; -#endif /* PPP_OPTIONS */ - -/* - * Protocol entry points from main code. - */ -static void ipcp_init(ppp_pcb *pcb); -static void ipcp_open(ppp_pcb *pcb); -static void ipcp_close(ppp_pcb *pcb, const char *reason); -static void ipcp_lowerup(ppp_pcb *pcb); -static void ipcp_lowerdown(ppp_pcb *pcb); -static void ipcp_input(ppp_pcb *pcb, u_char *p, int len); -static void ipcp_protrej(ppp_pcb *pcb); -#if PRINTPKT_SUPPORT -static int ipcp_printpkt(const u_char *p, int plen, - void (*printer) (void *, const char *, ...), void *arg); -#endif /* PRINTPKT_SUPPORT */ -#if PPP_OPTIONS -static void ip_check_options (void); -#endif /* PPP_OPTIONS */ -#if DEMAND_SUPPORT -static int ip_demand_conf (int); -static int ip_active_pkt (u_char *, int); -#endif /* DEMAND_SUPPORT */ -#if 0 /* UNUSED */ -static void create_resolv (u32_t, u32_t); -#endif /* UNUSED */ - -const struct protent ipcp_protent = { - PPP_IPCP, - ipcp_init, - ipcp_input, - ipcp_protrej, - ipcp_lowerup, - ipcp_lowerdown, - ipcp_open, - ipcp_close, -#if PRINTPKT_SUPPORT - ipcp_printpkt, -#endif /* PRINTPKT_SUPPORT */ -#if PPP_DATAINPUT - NULL, -#endif /* PPP_DATAINPUT */ -#if PRINTPKT_SUPPORT - "IPCP", - "IP", -#endif /* PRINTPKT_SUPPORT */ -#if PPP_OPTIONS - ipcp_option_list, - ip_check_options, -#endif /* PPP_OPTIONS */ -#if DEMAND_SUPPORT - ip_demand_conf, - ip_active_pkt -#endif /* DEMAND_SUPPORT */ -}; - -static void ipcp_clear_addrs(ppp_pcb *pcb, u32_t ouraddr, u32_t hisaddr, u8_t replacedefaultroute); - -/* - * Lengths of configuration options. - */ -#define CILEN_VOID 2 -#define CILEN_COMPRESS 4 /* min length for compression protocol opt. */ -#define CILEN_VJ 6 /* length for RFC1332 Van-Jacobson opt. */ -#define CILEN_ADDR 6 /* new-style single address option */ -#define CILEN_ADDRS 10 /* old-style dual address option */ - - -#define CODENAME(x) ((x) == CONFACK ? "ACK" : \ - (x) == CONFNAK ? "NAK" : "REJ") - -#if 0 /* UNUSED, already defined by lwIP */ -/* - * Make a string representation of a network IP address. - */ -char * -ip_ntoa(ipaddr) -u32_t ipaddr; -{ - static char b[64]; - - slprintf(b, sizeof(b), "%I", ipaddr); - return b; -} -#endif /* UNUSED, already defined by lwIP */ - -/* - * Option parsing. - */ -#if PPP_OPTIONS -/* - * setvjslots - set maximum number of connection slots for VJ compression - */ -static int -setvjslots(argv) - char **argv; -{ - int value; - - if (!int_option(*argv, &value)) - return 0; - - if (value < 2 || value > 16) { - option_error("vj-max-slots value must be between 2 and 16"); - return 0; - } - ipcp_wantoptions [0].maxslotindex = - ipcp_allowoptions[0].maxslotindex = value - 1; - slprintf(vj_value, sizeof(vj_value), "%d", value); - return 1; -} - -/* - * setdnsaddr - set the dns address(es) - */ -static int -setdnsaddr(argv) - char **argv; -{ - u32_t dns; - struct hostent *hp; - - dns = inet_addr(*argv); - if (dns == (u32_t) -1) { - if ((hp = gethostbyname(*argv)) == NULL) { - option_error("invalid address parameter '%s' for ms-dns option", - *argv); - return 0; - } - dns = *(u32_t *)hp->h_addr; - } - - /* We take the last 2 values given, the 2nd-last as the primary - and the last as the secondary. If only one is given it - becomes both primary and secondary. */ - if (ipcp_allowoptions[0].dnsaddr[1] == 0) - ipcp_allowoptions[0].dnsaddr[0] = dns; - else - ipcp_allowoptions[0].dnsaddr[0] = ipcp_allowoptions[0].dnsaddr[1]; - - /* always set the secondary address value. */ - ipcp_allowoptions[0].dnsaddr[1] = dns; - - return (1); -} - -/* - * setwinsaddr - set the wins address(es) - * This is primrarly used with the Samba package under UNIX or for pointing - * the caller to the existing WINS server on a Windows NT platform. - */ -static int -setwinsaddr(argv) - char **argv; -{ - u32_t wins; - struct hostent *hp; - - wins = inet_addr(*argv); - if (wins == (u32_t) -1) { - if ((hp = gethostbyname(*argv)) == NULL) { - option_error("invalid address parameter '%s' for ms-wins option", - *argv); - return 0; - } - wins = *(u32_t *)hp->h_addr; - } - - /* We take the last 2 values given, the 2nd-last as the primary - and the last as the secondary. If only one is given it - becomes both primary and secondary. */ - if (ipcp_allowoptions[0].winsaddr[1] == 0) - ipcp_allowoptions[0].winsaddr[0] = wins; - else - ipcp_allowoptions[0].winsaddr[0] = ipcp_allowoptions[0].winsaddr[1]; - - /* always set the secondary address value. */ - ipcp_allowoptions[0].winsaddr[1] = wins; - - return (1); -} - -/* - * setipaddr - Set the IP address - * If doit is 0, the call is to check whether this option is - * potentially an IP address specification. - * Not static so that plugins can call it to set the addresses - */ -int -setipaddr(arg, argv, doit) - char *arg; - char **argv; - int doit; -{ - struct hostent *hp; - char *colon; - u32_t local, remote; - ipcp_options *wo = &ipcp_wantoptions[0]; - static int prio_local = 0, prio_remote = 0; - - /* - * IP address pair separated by ":". - */ - if ((colon = strchr(arg, ':')) == NULL) - return 0; - if (!doit) - return 1; - - /* - * If colon first character, then no local addr. - */ - if (colon != arg && option_priority >= prio_local) { - *colon = '\0'; - if ((local = inet_addr(arg)) == (u32_t) -1) { - if ((hp = gethostbyname(arg)) == NULL) { - option_error("unknown host: %s", arg); - return 0; - } - local = *(u32_t *)hp->h_addr; - } - if (bad_ip_adrs(local)) { - option_error("bad local IP address %s", ip_ntoa(local)); - return 0; - } - if (local != 0) - wo->ouraddr = local; - *colon = ':'; - prio_local = option_priority; - } - - /* - * If colon last character, then no remote addr. - */ - if (*++colon != '\0' && option_priority >= prio_remote) { - if ((remote = inet_addr(colon)) == (u32_t) -1) { - if ((hp = gethostbyname(colon)) == NULL) { - option_error("unknown host: %s", colon); - return 0; - } - remote = *(u32_t *)hp->h_addr; - if (remote_name[0] == 0) - strlcpy(remote_name, colon, sizeof(remote_name)); - } - if (bad_ip_adrs(remote)) { - option_error("bad remote IP address %s", ip_ntoa(remote)); - return 0; - } - if (remote != 0) - wo->hisaddr = remote; - prio_remote = option_priority; - } - - return 1; -} - -static void -printipaddr(opt, printer, arg) - option_t *opt; - void (*printer) (void *, char *, ...); - void *arg; -{ - ipcp_options *wo = &ipcp_wantoptions[0]; - - if (wo->ouraddr != 0) - printer(arg, "%I", wo->ouraddr); - printer(arg, ":"); - if (wo->hisaddr != 0) - printer(arg, "%I", wo->hisaddr); -} - -/* - * setnetmask - set the netmask to be used on the interface. - */ -static int -setnetmask(argv) - char **argv; -{ - u32_t mask; - int n; - char *p; - - /* - * Unfortunately, if we use inet_addr, we can't tell whether - * a result of all 1s is an error or a valid 255.255.255.255. - */ - p = *argv; - n = parse_dotted_ip(p, &mask); - - mask = lwip_htonl(mask); - - if (n == 0 || p[n] != 0 || (netmask & ~mask) != 0) { - option_error("invalid netmask value '%s'", *argv); - return 0; - } - - netmask = mask; - slprintf(netmask_str, sizeof(netmask_str), "%I", mask); - - return (1); -} - -int -parse_dotted_ip(p, vp) - char *p; - u32_t *vp; -{ - int n; - u32_t v, b; - char *endp, *p0 = p; - - v = 0; - for (n = 3;; --n) { - b = strtoul(p, &endp, 0); - if (endp == p) - return 0; - if (b > 255) { - if (n < 3) - return 0; - /* accept e.g. 0xffffff00 */ - *vp = b; - return endp - p0; - } - v |= b << (n * 8); - p = endp; - if (n == 0) - break; - if (*p != '.') - return 0; - ++p; - } - *vp = v; - return p - p0; -} -#endif /* PPP_OPTIONS */ - -/* - * ipcp_init - Initialize IPCP. - */ -static void ipcp_init(ppp_pcb *pcb) { - fsm *f = &pcb->ipcp_fsm; - - ipcp_options *wo = &pcb->ipcp_wantoptions; - ipcp_options *ao = &pcb->ipcp_allowoptions; - - f->pcb = pcb; - f->protocol = PPP_IPCP; - f->callbacks = &ipcp_callbacks; - fsm_init(f); - - /* - * Some 3G modems use repeated IPCP NAKs as a way of stalling - * until they can contact a server on the network, so we increase - * the default number of NAKs we accept before we start treating - * them as rejects. - */ - f->maxnakloops = 100; - -#if 0 /* Not necessary, everything is cleared in ppp_new() */ - memset(wo, 0, sizeof(*wo)); - memset(ao, 0, sizeof(*ao)); -#endif /* 0 */ - - wo->neg_addr = wo->old_addrs = 1; -#if VJ_SUPPORT - wo->neg_vj = 1; - wo->vj_protocol = IPCP_VJ_COMP; - wo->maxslotindex = MAX_STATES - 1; /* really max index */ - wo->cflag = 1; -#endif /* VJ_SUPPORT */ - -#if 0 /* UNUSED */ - /* wanting default route by default */ - wo->default_route = 1; -#endif /* UNUSED */ - - ao->neg_addr = ao->old_addrs = 1; -#if VJ_SUPPORT - /* max slots and slot-id compression are currently hardwired in */ - /* ppp_if.c to 16 and 1, this needs to be changed (among other */ - /* things) gmc */ - - ao->neg_vj = 1; - ao->maxslotindex = MAX_STATES - 1; - ao->cflag = 1; -#endif /* #if VJ_SUPPORT */ - -#if 0 /* UNUSED */ - /* - * XXX These control whether the user may use the proxyarp - * and defaultroute options. - */ - ao->proxy_arp = 1; - ao->default_route = 1; -#endif /* UNUSED */ -} - - -/* - * ipcp_open - IPCP is allowed to come up. - */ -static void ipcp_open(ppp_pcb *pcb) { - fsm *f = &pcb->ipcp_fsm; - fsm_open(f); - pcb->ipcp_is_open = 1; -} - - -/* - * ipcp_close - Take IPCP down. - */ -static void ipcp_close(ppp_pcb *pcb, const char *reason) { - fsm *f = &pcb->ipcp_fsm; - fsm_close(f, reason); -} - - -/* - * ipcp_lowerup - The lower layer is up. - */ -static void ipcp_lowerup(ppp_pcb *pcb) { - fsm *f = &pcb->ipcp_fsm; - fsm_lowerup(f); -} - - -/* - * ipcp_lowerdown - The lower layer is down. - */ -static void ipcp_lowerdown(ppp_pcb *pcb) { - fsm *f = &pcb->ipcp_fsm; - fsm_lowerdown(f); -} - - -/* - * ipcp_input - Input IPCP packet. - */ -static void ipcp_input(ppp_pcb *pcb, u_char *p, int len) { - fsm *f = &pcb->ipcp_fsm; - fsm_input(f, p, len); -} - - -/* - * ipcp_protrej - A Protocol-Reject was received for IPCP. - * - * Pretend the lower layer went down, so we shut up. - */ -static void ipcp_protrej(ppp_pcb *pcb) { - fsm *f = &pcb->ipcp_fsm; - fsm_lowerdown(f); -} - - -/* - * ipcp_resetci - Reset our CI. - * Called by fsm_sconfreq, Send Configure Request. - */ -static void ipcp_resetci(fsm *f) { - ppp_pcb *pcb = f->pcb; - ipcp_options *wo = &pcb->ipcp_wantoptions; - ipcp_options *go = &pcb->ipcp_gotoptions; - ipcp_options *ao = &pcb->ipcp_allowoptions; - - wo->req_addr = (wo->neg_addr || wo->old_addrs) && - (ao->neg_addr || ao->old_addrs); - if (wo->ouraddr == 0) - wo->accept_local = 1; - if (wo->hisaddr == 0) - wo->accept_remote = 1; -#if LWIP_DNS - wo->req_dns1 = wo->req_dns2 = pcb->settings.usepeerdns; /* Request DNS addresses from the peer */ -#endif /* LWIP_DNS */ - *go = *wo; - if (!pcb->ask_for_local) - go->ouraddr = 0; -#if 0 /* UNUSED */ - if (ip_choose_hook) { - ip_choose_hook(&wo->hisaddr); - if (wo->hisaddr) { - wo->accept_remote = 0; - } - } -#endif /* UNUSED */ - BZERO(&pcb->ipcp_hisoptions, sizeof(ipcp_options)); -} - - -/* - * ipcp_cilen - Return length of our CI. - * Called by fsm_sconfreq, Send Configure Request. - */ -static int ipcp_cilen(fsm *f) { - ppp_pcb *pcb = f->pcb; - ipcp_options *go = &pcb->ipcp_gotoptions; -#if VJ_SUPPORT - ipcp_options *wo = &pcb->ipcp_wantoptions; -#endif /* VJ_SUPPORT */ - ipcp_options *ho = &pcb->ipcp_hisoptions; - -#define LENCIADDRS(neg) (neg ? CILEN_ADDRS : 0) -#if VJ_SUPPORT -#define LENCIVJ(neg, old) (neg ? (old? CILEN_COMPRESS : CILEN_VJ) : 0) -#endif /* VJ_SUPPORT */ -#define LENCIADDR(neg) (neg ? CILEN_ADDR : 0) -#if LWIP_DNS -#define LENCIDNS(neg) LENCIADDR(neg) -#endif /* LWIP_DNS */ -#if 0 /* UNUSED - WINS */ -#define LENCIWINS(neg) LENCIADDR(neg) -#endif /* UNUSED - WINS */ - - /* - * First see if we want to change our options to the old - * forms because we have received old forms from the peer. - */ - if (go->neg_addr && go->old_addrs && !ho->neg_addr && ho->old_addrs) - go->neg_addr = 0; - -#if VJ_SUPPORT - if (wo->neg_vj && !go->neg_vj && !go->old_vj) { - /* try an older style of VJ negotiation */ - /* use the old style only if the peer did */ - if (ho->neg_vj && ho->old_vj) { - go->neg_vj = 1; - go->old_vj = 1; - go->vj_protocol = ho->vj_protocol; - } - } -#endif /* VJ_SUPPORT */ - - return (LENCIADDRS(!go->neg_addr && go->old_addrs) + -#if VJ_SUPPORT - LENCIVJ(go->neg_vj, go->old_vj) + -#endif /* VJ_SUPPORT */ - LENCIADDR(go->neg_addr) + -#if LWIP_DNS - LENCIDNS(go->req_dns1) + - LENCIDNS(go->req_dns2) + -#endif /* LWIP_DNS */ -#if 0 /* UNUSED - WINS */ - LENCIWINS(go->winsaddr[0]) + - LENCIWINS(go->winsaddr[1]) + -#endif /* UNUSED - WINS */ - 0); -} - - -/* - * ipcp_addci - Add our desired CIs to a packet. - * Called by fsm_sconfreq, Send Configure Request. - */ -static void ipcp_addci(fsm *f, u_char *ucp, int *lenp) { - ppp_pcb *pcb = f->pcb; - ipcp_options *go = &pcb->ipcp_gotoptions; - int len = *lenp; - -#define ADDCIADDRS(opt, neg, val1, val2) \ - if (neg) { \ - if (len >= CILEN_ADDRS) { \ - u32_t l; \ - PUTCHAR(opt, ucp); \ - PUTCHAR(CILEN_ADDRS, ucp); \ - l = lwip_ntohl(val1); \ - PUTLONG(l, ucp); \ - l = lwip_ntohl(val2); \ - PUTLONG(l, ucp); \ - len -= CILEN_ADDRS; \ - } else \ - go->old_addrs = 0; \ - } - -#if VJ_SUPPORT -#define ADDCIVJ(opt, neg, val, old, maxslotindex, cflag) \ - if (neg) { \ - int vjlen = old? CILEN_COMPRESS : CILEN_VJ; \ - if (len >= vjlen) { \ - PUTCHAR(opt, ucp); \ - PUTCHAR(vjlen, ucp); \ - PUTSHORT(val, ucp); \ - if (!old) { \ - PUTCHAR(maxslotindex, ucp); \ - PUTCHAR(cflag, ucp); \ - } \ - len -= vjlen; \ - } else \ - neg = 0; \ - } -#endif /* VJ_SUPPORT */ - -#define ADDCIADDR(opt, neg, val) \ - if (neg) { \ - if (len >= CILEN_ADDR) { \ - u32_t l; \ - PUTCHAR(opt, ucp); \ - PUTCHAR(CILEN_ADDR, ucp); \ - l = lwip_ntohl(val); \ - PUTLONG(l, ucp); \ - len -= CILEN_ADDR; \ - } else \ - neg = 0; \ - } - -#if LWIP_DNS -#define ADDCIDNS(opt, neg, addr) \ - if (neg) { \ - if (len >= CILEN_ADDR) { \ - u32_t l; \ - PUTCHAR(opt, ucp); \ - PUTCHAR(CILEN_ADDR, ucp); \ - l = lwip_ntohl(addr); \ - PUTLONG(l, ucp); \ - len -= CILEN_ADDR; \ - } else \ - neg = 0; \ - } -#endif /* LWIP_DNS */ - -#if 0 /* UNUSED - WINS */ -#define ADDCIWINS(opt, addr) \ - if (addr) { \ - if (len >= CILEN_ADDR) { \ - u32_t l; \ - PUTCHAR(opt, ucp); \ - PUTCHAR(CILEN_ADDR, ucp); \ - l = lwip_ntohl(addr); \ - PUTLONG(l, ucp); \ - len -= CILEN_ADDR; \ - } else \ - addr = 0; \ - } -#endif /* UNUSED - WINS */ - - ADDCIADDRS(CI_ADDRS, !go->neg_addr && go->old_addrs, go->ouraddr, - go->hisaddr); - -#if VJ_SUPPORT - ADDCIVJ(CI_COMPRESSTYPE, go->neg_vj, go->vj_protocol, go->old_vj, - go->maxslotindex, go->cflag); -#endif /* VJ_SUPPORT */ - - ADDCIADDR(CI_ADDR, go->neg_addr, go->ouraddr); - -#if LWIP_DNS - ADDCIDNS(CI_MS_DNS1, go->req_dns1, go->dnsaddr[0]); - - ADDCIDNS(CI_MS_DNS2, go->req_dns2, go->dnsaddr[1]); -#endif /* LWIP_DNS */ - -#if 0 /* UNUSED - WINS */ - ADDCIWINS(CI_MS_WINS1, go->winsaddr[0]); - - ADDCIWINS(CI_MS_WINS2, go->winsaddr[1]); -#endif /* UNUSED - WINS */ - - *lenp -= len; -} - - -/* - * ipcp_ackci - Ack our CIs. - * Called by fsm_rconfack, Receive Configure ACK. - * - * Returns: - * 0 - Ack was bad. - * 1 - Ack was good. - */ -static int ipcp_ackci(fsm *f, u_char *p, int len) { - ppp_pcb *pcb = f->pcb; - ipcp_options *go = &pcb->ipcp_gotoptions; - u_short cilen, citype; - u32_t cilong; -#if VJ_SUPPORT - u_short cishort; - u_char cimaxslotindex, cicflag; -#endif /* VJ_SUPPORT */ - - /* - * CIs must be in exactly the same order that we sent... - * Check packet length and CI length at each step. - * If we find any deviations, then this packet is bad. - */ - -#define ACKCIADDRS(opt, neg, val1, val2) \ - if (neg) { \ - u32_t l; \ - if ((len -= CILEN_ADDRS) < 0) \ - goto bad; \ - GETCHAR(citype, p); \ - GETCHAR(cilen, p); \ - if (cilen != CILEN_ADDRS || \ - citype != opt) \ - goto bad; \ - GETLONG(l, p); \ - cilong = lwip_htonl(l); \ - if (val1 != cilong) \ - goto bad; \ - GETLONG(l, p); \ - cilong = lwip_htonl(l); \ - if (val2 != cilong) \ - goto bad; \ - } - -#if VJ_SUPPORT -#define ACKCIVJ(opt, neg, val, old, maxslotindex, cflag) \ - if (neg) { \ - int vjlen = old? CILEN_COMPRESS : CILEN_VJ; \ - if ((len -= vjlen) < 0) \ - goto bad; \ - GETCHAR(citype, p); \ - GETCHAR(cilen, p); \ - if (cilen != vjlen || \ - citype != opt) \ - goto bad; \ - GETSHORT(cishort, p); \ - if (cishort != val) \ - goto bad; \ - if (!old) { \ - GETCHAR(cimaxslotindex, p); \ - if (cimaxslotindex != maxslotindex) \ - goto bad; \ - GETCHAR(cicflag, p); \ - if (cicflag != cflag) \ - goto bad; \ - } \ - } -#endif /* VJ_SUPPORT */ - -#define ACKCIADDR(opt, neg, val) \ - if (neg) { \ - u32_t l; \ - if ((len -= CILEN_ADDR) < 0) \ - goto bad; \ - GETCHAR(citype, p); \ - GETCHAR(cilen, p); \ - if (cilen != CILEN_ADDR || \ - citype != opt) \ - goto bad; \ - GETLONG(l, p); \ - cilong = lwip_htonl(l); \ - if (val != cilong) \ - goto bad; \ - } - -#if LWIP_DNS -#define ACKCIDNS(opt, neg, addr) \ - if (neg) { \ - u32_t l; \ - if ((len -= CILEN_ADDR) < 0) \ - goto bad; \ - GETCHAR(citype, p); \ - GETCHAR(cilen, p); \ - if (cilen != CILEN_ADDR || citype != opt) \ - goto bad; \ - GETLONG(l, p); \ - cilong = lwip_htonl(l); \ - if (addr != cilong) \ - goto bad; \ - } -#endif /* LWIP_DNS */ - -#if 0 /* UNUSED - WINS */ -#define ACKCIWINS(opt, addr) \ - if (addr) { \ - u32_t l; \ - if ((len -= CILEN_ADDR) < 0) \ - goto bad; \ - GETCHAR(citype, p); \ - GETCHAR(cilen, p); \ - if (cilen != CILEN_ADDR || citype != opt) \ - goto bad; \ - GETLONG(l, p); \ - cilong = lwip_htonl(l); \ - if (addr != cilong) \ - goto bad; \ - } -#endif /* UNUSED - WINS */ - - ACKCIADDRS(CI_ADDRS, !go->neg_addr && go->old_addrs, go->ouraddr, - go->hisaddr); - -#if VJ_SUPPORT - ACKCIVJ(CI_COMPRESSTYPE, go->neg_vj, go->vj_protocol, go->old_vj, - go->maxslotindex, go->cflag); -#endif /* VJ_SUPPORT */ - - ACKCIADDR(CI_ADDR, go->neg_addr, go->ouraddr); - -#if LWIP_DNS - ACKCIDNS(CI_MS_DNS1, go->req_dns1, go->dnsaddr[0]); - - ACKCIDNS(CI_MS_DNS2, go->req_dns2, go->dnsaddr[1]); -#endif /* LWIP_DNS */ - -#if 0 /* UNUSED - WINS */ - ACKCIWINS(CI_MS_WINS1, go->winsaddr[0]); - - ACKCIWINS(CI_MS_WINS2, go->winsaddr[1]); -#endif /* UNUSED - WINS */ - - /* - * If there are any remaining CIs, then this packet is bad. - */ - if (len != 0) - goto bad; - return (1); - -bad: - IPCPDEBUG(("ipcp_ackci: received bad Ack!")); - return (0); -} - -/* - * ipcp_nakci - Peer has sent a NAK for some of our CIs. - * This should not modify any state if the Nak is bad - * or if IPCP is in the OPENED state. - * Calback from fsm_rconfnakrej - Receive Configure-Nak or Configure-Reject. - * - * Returns: - * 0 - Nak was bad. - * 1 - Nak was good. - */ -static int ipcp_nakci(fsm *f, u_char *p, int len, int treat_as_reject) { - ppp_pcb *pcb = f->pcb; - ipcp_options *go = &pcb->ipcp_gotoptions; - u_char citype, cilen, *next; -#if VJ_SUPPORT - u_char cimaxslotindex, cicflag; - u_short cishort; -#endif /* VJ_SUPPORT */ - u32_t ciaddr1, ciaddr2, l; -#if LWIP_DNS - u32_t cidnsaddr; -#endif /* LWIP_DNS */ - ipcp_options no; /* options we've seen Naks for */ - ipcp_options try_; /* options to request next time */ - - BZERO(&no, sizeof(no)); - try_ = *go; - - /* - * Any Nak'd CIs must be in exactly the same order that we sent. - * Check packet length and CI length at each step. - * If we find any deviations, then this packet is bad. - */ -#define NAKCIADDRS(opt, neg, code) \ - if ((neg) && \ - (cilen = p[1]) == CILEN_ADDRS && \ - len >= cilen && \ - p[0] == opt) { \ - len -= cilen; \ - INCPTR(2, p); \ - GETLONG(l, p); \ - ciaddr1 = lwip_htonl(l); \ - GETLONG(l, p); \ - ciaddr2 = lwip_htonl(l); \ - no.old_addrs = 1; \ - code \ - } - -#if VJ_SUPPORT -#define NAKCIVJ(opt, neg, code) \ - if (go->neg && \ - ((cilen = p[1]) == CILEN_COMPRESS || cilen == CILEN_VJ) && \ - len >= cilen && \ - p[0] == opt) { \ - len -= cilen; \ - INCPTR(2, p); \ - GETSHORT(cishort, p); \ - no.neg = 1; \ - code \ - } -#endif /* VJ_SUPPORT */ - -#define NAKCIADDR(opt, neg, code) \ - if (go->neg && \ - (cilen = p[1]) == CILEN_ADDR && \ - len >= cilen && \ - p[0] == opt) { \ - len -= cilen; \ - INCPTR(2, p); \ - GETLONG(l, p); \ - ciaddr1 = lwip_htonl(l); \ - no.neg = 1; \ - code \ - } - -#if LWIP_DNS -#define NAKCIDNS(opt, neg, code) \ - if (go->neg && \ - ((cilen = p[1]) == CILEN_ADDR) && \ - len >= cilen && \ - p[0] == opt) { \ - len -= cilen; \ - INCPTR(2, p); \ - GETLONG(l, p); \ - cidnsaddr = lwip_htonl(l); \ - no.neg = 1; \ - code \ - } -#endif /* LWIP_DNS */ - - /* - * Accept the peer's idea of {our,his} address, if different - * from our idea, only if the accept_{local,remote} flag is set. - */ - NAKCIADDRS(CI_ADDRS, !go->neg_addr && go->old_addrs, - if (treat_as_reject) { - try_.old_addrs = 0; - } else { - if (go->accept_local && ciaddr1) { - /* take his idea of our address */ - try_.ouraddr = ciaddr1; - } - if (go->accept_remote && ciaddr2) { - /* take his idea of his address */ - try_.hisaddr = ciaddr2; - } - } - ); - -#if VJ_SUPPORT - /* - * Accept the peer's value of maxslotindex provided that it - * is less than what we asked for. Turn off slot-ID compression - * if the peer wants. Send old-style compress-type option if - * the peer wants. - */ - NAKCIVJ(CI_COMPRESSTYPE, neg_vj, - if (treat_as_reject) { - try_.neg_vj = 0; - } else if (cilen == CILEN_VJ) { - GETCHAR(cimaxslotindex, p); - GETCHAR(cicflag, p); - if (cishort == IPCP_VJ_COMP) { - try_.old_vj = 0; - if (cimaxslotindex < go->maxslotindex) - try_.maxslotindex = cimaxslotindex; - if (!cicflag) - try_.cflag = 0; - } else { - try_.neg_vj = 0; - } - } else { - if (cishort == IPCP_VJ_COMP || cishort == IPCP_VJ_COMP_OLD) { - try_.old_vj = 1; - try_.vj_protocol = cishort; - } else { - try_.neg_vj = 0; - } - } - ); -#endif /* VJ_SUPPORT */ - - NAKCIADDR(CI_ADDR, neg_addr, - if (treat_as_reject) { - try_.neg_addr = 0; - try_.old_addrs = 0; - } else if (go->accept_local && ciaddr1) { - /* take his idea of our address */ - try_.ouraddr = ciaddr1; - } - ); - -#if LWIP_DNS - NAKCIDNS(CI_MS_DNS1, req_dns1, - if (treat_as_reject) { - try_.req_dns1 = 0; - } else { - try_.dnsaddr[0] = cidnsaddr; - } - ); - - NAKCIDNS(CI_MS_DNS2, req_dns2, - if (treat_as_reject) { - try_.req_dns2 = 0; - } else { - try_.dnsaddr[1] = cidnsaddr; - } - ); -#endif /* #if LWIP_DNS */ - - /* - * There may be remaining CIs, if the peer is requesting negotiation - * on an option that we didn't include in our request packet. - * If they want to negotiate about IP addresses, we comply. - * If they want us to ask for compression, we refuse. - * If they want us to ask for ms-dns, we do that, since some - * peers get huffy if we don't. - */ - while (len >= CILEN_VOID) { - GETCHAR(citype, p); - GETCHAR(cilen, p); - if ( cilen < CILEN_VOID || (len -= cilen) < 0 ) - goto bad; - next = p + cilen - 2; - - switch (citype) { -#if VJ_SUPPORT - case CI_COMPRESSTYPE: - if (go->neg_vj || no.neg_vj || - (cilen != CILEN_VJ && cilen != CILEN_COMPRESS)) - goto bad; - no.neg_vj = 1; - break; -#endif /* VJ_SUPPORT */ - case CI_ADDRS: - if ((!go->neg_addr && go->old_addrs) || no.old_addrs - || cilen != CILEN_ADDRS) - goto bad; - try_.neg_addr = 0; - GETLONG(l, p); - ciaddr1 = lwip_htonl(l); - if (ciaddr1 && go->accept_local) - try_.ouraddr = ciaddr1; - GETLONG(l, p); - ciaddr2 = lwip_htonl(l); - if (ciaddr2 && go->accept_remote) - try_.hisaddr = ciaddr2; - no.old_addrs = 1; - break; - case CI_ADDR: - if (go->neg_addr || no.neg_addr || cilen != CILEN_ADDR) - goto bad; - try_.old_addrs = 0; - GETLONG(l, p); - ciaddr1 = lwip_htonl(l); - if (ciaddr1 && go->accept_local) - try_.ouraddr = ciaddr1; - if (try_.ouraddr != 0) - try_.neg_addr = 1; - no.neg_addr = 1; - break; -#if LWIP_DNS - case CI_MS_DNS1: - if (go->req_dns1 || no.req_dns1 || cilen != CILEN_ADDR) - goto bad; - GETLONG(l, p); - try_.dnsaddr[0] = lwip_htonl(l); - try_.req_dns1 = 1; - no.req_dns1 = 1; - break; - case CI_MS_DNS2: - if (go->req_dns2 || no.req_dns2 || cilen != CILEN_ADDR) - goto bad; - GETLONG(l, p); - try_.dnsaddr[1] = lwip_htonl(l); - try_.req_dns2 = 1; - no.req_dns2 = 1; - break; -#endif /* LWIP_DNS */ -#if 0 /* UNUSED - WINS */ - case CI_MS_WINS1: - case CI_MS_WINS2: - if (cilen != CILEN_ADDR) - goto bad; - GETLONG(l, p); - ciaddr1 = lwip_htonl(l); - if (ciaddr1) - try_.winsaddr[citype == CI_MS_WINS2] = ciaddr1; - break; -#endif /* UNUSED - WINS */ - default: - break; - } - p = next; - } - - /* - * OK, the Nak is good. Now we can update state. - * If there are any remaining options, we ignore them. - */ - if (f->state != PPP_FSM_OPENED) - *go = try_; - - return 1; - -bad: - IPCPDEBUG(("ipcp_nakci: received bad Nak!")); - return 0; -} - - -/* - * ipcp_rejci - Reject some of our CIs. - * Callback from fsm_rconfnakrej. - */ -static int ipcp_rejci(fsm *f, u_char *p, int len) { - ppp_pcb *pcb = f->pcb; - ipcp_options *go = &pcb->ipcp_gotoptions; - u_char cilen; -#if VJ_SUPPORT - u_char cimaxslotindex, ciflag; - u_short cishort; -#endif /* VJ_SUPPORT */ - u32_t cilong; - ipcp_options try_; /* options to request next time */ - - try_ = *go; - /* - * Any Rejected CIs must be in exactly the same order that we sent. - * Check packet length and CI length at each step. - * If we find any deviations, then this packet is bad. - */ -#define REJCIADDRS(opt, neg, val1, val2) \ - if ((neg) && \ - (cilen = p[1]) == CILEN_ADDRS && \ - len >= cilen && \ - p[0] == opt) { \ - u32_t l; \ - len -= cilen; \ - INCPTR(2, p); \ - GETLONG(l, p); \ - cilong = lwip_htonl(l); \ - /* Check rejected value. */ \ - if (cilong != val1) \ - goto bad; \ - GETLONG(l, p); \ - cilong = lwip_htonl(l); \ - /* Check rejected value. */ \ - if (cilong != val2) \ - goto bad; \ - try_.old_addrs = 0; \ - } - -#if VJ_SUPPORT -#define REJCIVJ(opt, neg, val, old, maxslot, cflag) \ - if (go->neg && \ - p[1] == (old? CILEN_COMPRESS : CILEN_VJ) && \ - len >= p[1] && \ - p[0] == opt) { \ - len -= p[1]; \ - INCPTR(2, p); \ - GETSHORT(cishort, p); \ - /* Check rejected value. */ \ - if (cishort != val) \ - goto bad; \ - if (!old) { \ - GETCHAR(cimaxslotindex, p); \ - if (cimaxslotindex != maxslot) \ - goto bad; \ - GETCHAR(ciflag, p); \ - if (ciflag != cflag) \ - goto bad; \ - } \ - try_.neg = 0; \ - } -#endif /* VJ_SUPPORT */ - -#define REJCIADDR(opt, neg, val) \ - if (go->neg && \ - (cilen = p[1]) == CILEN_ADDR && \ - len >= cilen && \ - p[0] == opt) { \ - u32_t l; \ - len -= cilen; \ - INCPTR(2, p); \ - GETLONG(l, p); \ - cilong = lwip_htonl(l); \ - /* Check rejected value. */ \ - if (cilong != val) \ - goto bad; \ - try_.neg = 0; \ - } - -#if LWIP_DNS -#define REJCIDNS(opt, neg, dnsaddr) \ - if (go->neg && \ - ((cilen = p[1]) == CILEN_ADDR) && \ - len >= cilen && \ - p[0] == opt) { \ - u32_t l; \ - len -= cilen; \ - INCPTR(2, p); \ - GETLONG(l, p); \ - cilong = lwip_htonl(l); \ - /* Check rejected value. */ \ - if (cilong != dnsaddr) \ - goto bad; \ - try_.neg = 0; \ - } -#endif /* LWIP_DNS */ - -#if 0 /* UNUSED - WINS */ -#define REJCIWINS(opt, addr) \ - if (addr && \ - ((cilen = p[1]) == CILEN_ADDR) && \ - len >= cilen && \ - p[0] == opt) { \ - u32_t l; \ - len -= cilen; \ - INCPTR(2, p); \ - GETLONG(l, p); \ - cilong = lwip_htonl(l); \ - /* Check rejected value. */ \ - if (cilong != addr) \ - goto bad; \ - try_.winsaddr[opt == CI_MS_WINS2] = 0; \ - } -#endif /* UNUSED - WINS */ - - REJCIADDRS(CI_ADDRS, !go->neg_addr && go->old_addrs, - go->ouraddr, go->hisaddr); - -#if VJ_SUPPORT - REJCIVJ(CI_COMPRESSTYPE, neg_vj, go->vj_protocol, go->old_vj, - go->maxslotindex, go->cflag); -#endif /* VJ_SUPPORT */ - - REJCIADDR(CI_ADDR, neg_addr, go->ouraddr); - -#if LWIP_DNS - REJCIDNS(CI_MS_DNS1, req_dns1, go->dnsaddr[0]); - - REJCIDNS(CI_MS_DNS2, req_dns2, go->dnsaddr[1]); -#endif /* LWIP_DNS */ - -#if 0 /* UNUSED - WINS */ - REJCIWINS(CI_MS_WINS1, go->winsaddr[0]); - - REJCIWINS(CI_MS_WINS2, go->winsaddr[1]); -#endif /* UNUSED - WINS */ - - /* - * If there are any remaining CIs, then this packet is bad. - */ - if (len != 0) - goto bad; - /* - * Now we can update state. - */ - if (f->state != PPP_FSM_OPENED) - *go = try_; - return 1; - -bad: - IPCPDEBUG(("ipcp_rejci: received bad Reject!")); - return 0; -} - - -/* - * ipcp_reqci - Check the peer's requested CIs and send appropriate response. - * Callback from fsm_rconfreq, Receive Configure Request - * - * Returns: CONFACK, CONFNAK or CONFREJ and input packet modified - * appropriately. If reject_if_disagree is non-zero, doesn't return - * CONFNAK; returns CONFREJ if it can't return CONFACK. - * - * inp = Requested CIs - * len = Length of requested CIs - */ -static int ipcp_reqci(fsm *f, u_char *inp, int *len, int reject_if_disagree) { - ppp_pcb *pcb = f->pcb; - ipcp_options *wo = &pcb->ipcp_wantoptions; - ipcp_options *ho = &pcb->ipcp_hisoptions; - ipcp_options *ao = &pcb->ipcp_allowoptions; - u_char *cip, *next; /* Pointer to current and next CIs */ - u_short cilen, citype; /* Parsed len, type */ -#if VJ_SUPPORT - u_short cishort; /* Parsed short value */ -#endif /* VJ_SUPPORT */ - u32_t tl, ciaddr1, ciaddr2;/* Parsed address values */ - int rc = CONFACK; /* Final packet return code */ - int orc; /* Individual option return code */ - u_char *p; /* Pointer to next char to parse */ - u_char *ucp = inp; /* Pointer to current output char */ - int l = *len; /* Length left */ -#if VJ_SUPPORT - u_char maxslotindex, cflag; -#endif /* VJ_SUPPORT */ -#if LWIP_DNS - int d; -#endif /* LWIP_DNS */ - - /* - * Reset all his options. - */ - BZERO(ho, sizeof(*ho)); - - /* - * Process all his options. - */ - next = inp; - while (l) { - orc = CONFACK; /* Assume success */ - cip = p = next; /* Remember begining of CI */ - if (l < 2 || /* Not enough data for CI header or */ - p[1] < 2 || /* CI length too small or */ - p[1] > l) { /* CI length too big? */ - IPCPDEBUG(("ipcp_reqci: bad CI length!")); - orc = CONFREJ; /* Reject bad CI */ - cilen = l; /* Reject till end of packet */ - l = 0; /* Don't loop again */ - goto endswitch; - } - GETCHAR(citype, p); /* Parse CI type */ - GETCHAR(cilen, p); /* Parse CI length */ - l -= cilen; /* Adjust remaining length */ - next += cilen; /* Step to next CI */ - - switch (citype) { /* Check CI type */ - case CI_ADDRS: - if (!ao->old_addrs || ho->neg_addr || - cilen != CILEN_ADDRS) { /* Check CI length */ - orc = CONFREJ; /* Reject CI */ - break; - } - - /* - * If he has no address, or if we both have his address but - * disagree about it, then NAK it with our idea. - * In particular, if we don't know his address, but he does, - * then accept it. - */ - GETLONG(tl, p); /* Parse source address (his) */ - ciaddr1 = lwip_htonl(tl); - if (ciaddr1 != wo->hisaddr - && (ciaddr1 == 0 || !wo->accept_remote)) { - orc = CONFNAK; - if (!reject_if_disagree) { - DECPTR(sizeof(u32_t), p); - tl = lwip_ntohl(wo->hisaddr); - PUTLONG(tl, p); - } - } else if (ciaddr1 == 0 && wo->hisaddr == 0) { - /* - * If neither we nor he knows his address, reject the option. - */ - orc = CONFREJ; - wo->req_addr = 0; /* don't NAK with 0.0.0.0 later */ - break; - } - - /* - * If he doesn't know our address, or if we both have our address - * but disagree about it, then NAK it with our idea. - */ - GETLONG(tl, p); /* Parse desination address (ours) */ - ciaddr2 = lwip_htonl(tl); - if (ciaddr2 != wo->ouraddr) { - if (ciaddr2 == 0 || !wo->accept_local) { - orc = CONFNAK; - if (!reject_if_disagree) { - DECPTR(sizeof(u32_t), p); - tl = lwip_ntohl(wo->ouraddr); - PUTLONG(tl, p); - } - } else { - wo->ouraddr = ciaddr2; /* accept peer's idea */ - } - } - - ho->old_addrs = 1; - ho->hisaddr = ciaddr1; - ho->ouraddr = ciaddr2; - break; - - case CI_ADDR: - if (!ao->neg_addr || ho->old_addrs || - cilen != CILEN_ADDR) { /* Check CI length */ - orc = CONFREJ; /* Reject CI */ - break; - } - - /* - * If he has no address, or if we both have his address but - * disagree about it, then NAK it with our idea. - * In particular, if we don't know his address, but he does, - * then accept it. - */ - GETLONG(tl, p); /* Parse source address (his) */ - ciaddr1 = lwip_htonl(tl); - if (ciaddr1 != wo->hisaddr - && (ciaddr1 == 0 || !wo->accept_remote)) { - orc = CONFNAK; - if (!reject_if_disagree) { - DECPTR(sizeof(u32_t), p); - tl = lwip_ntohl(wo->hisaddr); - PUTLONG(tl, p); - } - } else if (ciaddr1 == 0 && wo->hisaddr == 0) { - /* - * Don't ACK an address of 0.0.0.0 - reject it instead. - */ - orc = CONFREJ; - wo->req_addr = 0; /* don't NAK with 0.0.0.0 later */ - break; - } - - ho->neg_addr = 1; - ho->hisaddr = ciaddr1; - break; - -#if LWIP_DNS - case CI_MS_DNS1: - case CI_MS_DNS2: - /* Microsoft primary or secondary DNS request */ - d = citype == CI_MS_DNS2; - - /* If we do not have a DNS address then we cannot send it */ - if (ao->dnsaddr[d] == 0 || - cilen != CILEN_ADDR) { /* Check CI length */ - orc = CONFREJ; /* Reject CI */ - break; - } - GETLONG(tl, p); - if (lwip_htonl(tl) != ao->dnsaddr[d]) { - DECPTR(sizeof(u32_t), p); - tl = lwip_ntohl(ao->dnsaddr[d]); - PUTLONG(tl, p); - orc = CONFNAK; - } - break; -#endif /* LWIP_DNS */ - -#if 0 /* UNUSED - WINS */ - case CI_MS_WINS1: - case CI_MS_WINS2: - /* Microsoft primary or secondary WINS request */ - d = citype == CI_MS_WINS2; - - /* If we do not have a DNS address then we cannot send it */ - if (ao->winsaddr[d] == 0 || - cilen != CILEN_ADDR) { /* Check CI length */ - orc = CONFREJ; /* Reject CI */ - break; - } - GETLONG(tl, p); - if (lwip_htonl(tl) != ao->winsaddr[d]) { - DECPTR(sizeof(u32_t), p); - tl = lwip_ntohl(ao->winsaddr[d]); - PUTLONG(tl, p); - orc = CONFNAK; - } - break; -#endif /* UNUSED - WINS */ - -#if VJ_SUPPORT - case CI_COMPRESSTYPE: - if (!ao->neg_vj || - (cilen != CILEN_VJ && cilen != CILEN_COMPRESS)) { - orc = CONFREJ; - break; - } - GETSHORT(cishort, p); - - if (!(cishort == IPCP_VJ_COMP || - (cishort == IPCP_VJ_COMP_OLD && cilen == CILEN_COMPRESS))) { - orc = CONFREJ; - break; - } - - ho->neg_vj = 1; - ho->vj_protocol = cishort; - if (cilen == CILEN_VJ) { - GETCHAR(maxslotindex, p); - if (maxslotindex > ao->maxslotindex) { - orc = CONFNAK; - if (!reject_if_disagree){ - DECPTR(1, p); - PUTCHAR(ao->maxslotindex, p); - } - } - GETCHAR(cflag, p); - if (cflag && !ao->cflag) { - orc = CONFNAK; - if (!reject_if_disagree){ - DECPTR(1, p); - PUTCHAR(wo->cflag, p); - } - } - ho->maxslotindex = maxslotindex; - ho->cflag = cflag; - } else { - ho->old_vj = 1; - ho->maxslotindex = MAX_STATES - 1; - ho->cflag = 1; - } - break; -#endif /* VJ_SUPPORT */ - - default: - orc = CONFREJ; - break; - } -endswitch: - if (orc == CONFACK && /* Good CI */ - rc != CONFACK) /* but prior CI wasnt? */ - continue; /* Don't send this one */ - - if (orc == CONFNAK) { /* Nak this CI? */ - if (reject_if_disagree) /* Getting fed up with sending NAKs? */ - orc = CONFREJ; /* Get tough if so */ - else { - if (rc == CONFREJ) /* Rejecting prior CI? */ - continue; /* Don't send this one */ - if (rc == CONFACK) { /* Ack'd all prior CIs? */ - rc = CONFNAK; /* Not anymore... */ - ucp = inp; /* Backup */ - } - } - } - - if (orc == CONFREJ && /* Reject this CI */ - rc != CONFREJ) { /* but no prior ones? */ - rc = CONFREJ; - ucp = inp; /* Backup */ - } - - /* Need to move CI? */ - if (ucp != cip) - MEMCPY(ucp, cip, cilen); /* Move it */ - - /* Update output pointer */ - INCPTR(cilen, ucp); - } - - /* - * If we aren't rejecting this packet, and we want to negotiate - * their address, and they didn't send their address, then we - * send a NAK with a CI_ADDR option appended. We assume the - * input buffer is long enough that we can append the extra - * option safely. - */ - if (rc != CONFREJ && !ho->neg_addr && !ho->old_addrs && - wo->req_addr && !reject_if_disagree && !pcb->settings.noremoteip) { - if (rc == CONFACK) { - rc = CONFNAK; - ucp = inp; /* reset pointer */ - wo->req_addr = 0; /* don't ask again */ - } - PUTCHAR(CI_ADDR, ucp); - PUTCHAR(CILEN_ADDR, ucp); - tl = lwip_ntohl(wo->hisaddr); - PUTLONG(tl, ucp); - } - - *len = ucp - inp; /* Compute output length */ - IPCPDEBUG(("ipcp: returning Configure-%s", CODENAME(rc))); - return (rc); /* Return final code */ -} - - -#if 0 /* UNUSED */ -/* - * ip_check_options - check that any IP-related options are OK, - * and assign appropriate defaults. - */ -static void -ip_check_options() -{ - struct hostent *hp; - u32_t local; - ipcp_options *wo = &ipcp_wantoptions[0]; - - /* - * Default our local IP address based on our hostname. - * If local IP address already given, don't bother. - */ - if (wo->ouraddr == 0 && !disable_defaultip) { - /* - * Look up our hostname (possibly with domain name appended) - * and take the first IP address as our local IP address. - * If there isn't an IP address for our hostname, too bad. - */ - wo->accept_local = 1; /* don't insist on this default value */ - if ((hp = gethostbyname(hostname)) != NULL) { - local = *(u32_t *)hp->h_addr; - if (local != 0 && !bad_ip_adrs(local)) - wo->ouraddr = local; - } - } - ask_for_local = wo->ouraddr != 0 || !disable_defaultip; -} -#endif /* UNUSED */ - -#if DEMAND_SUPPORT -/* - * ip_demand_conf - configure the interface as though - * IPCP were up, for use with dial-on-demand. - */ -static int -ip_demand_conf(u) - int u; -{ - ppp_pcb *pcb = &ppp_pcb_list[u]; - ipcp_options *wo = &ipcp_wantoptions[u]; - - if (wo->hisaddr == 0 && !pcb->settings.noremoteip) { - /* make up an arbitrary address for the peer */ - wo->hisaddr = lwip_htonl(0x0a707070 + ifunit); - wo->accept_remote = 1; - } - if (wo->ouraddr == 0) { - /* make up an arbitrary address for us */ - wo->ouraddr = lwip_htonl(0x0a404040 + ifunit); - wo->accept_local = 1; - ask_for_local = 0; /* don't tell the peer this address */ - } - if (!sifaddr(pcb, wo->ouraddr, wo->hisaddr, get_mask(wo->ouraddr))) - return 0; - if (!sifup(pcb)) - return 0; - if (!sifnpmode(pcb, PPP_IP, NPMODE_QUEUE)) - return 0; -#if 0 /* UNUSED */ - if (wo->default_route) - if (sifdefaultroute(pcb, wo->ouraddr, wo->hisaddr, - wo->replace_default_route)) - default_route_set[u] = 1; -#endif /* UNUSED */ -#if 0 /* UNUSED - PROXY ARP */ - if (wo->proxy_arp) - if (sifproxyarp(pcb, wo->hisaddr)) - proxy_arp_set[u] = 1; -#endif /* UNUSED - PROXY ARP */ - - ppp_notice("local IP address %I", wo->ouraddr); - if (wo->hisaddr) - ppp_notice("remote IP address %I", wo->hisaddr); - - return 1; -} -#endif /* DEMAND_SUPPORT */ - -/* - * ipcp_up - IPCP has come UP. - * - * Configure the IP network interface appropriately and bring it up. - */ -static void ipcp_up(fsm *f) { - ppp_pcb *pcb = f->pcb; - u32_t mask; - ipcp_options *ho = &pcb->ipcp_hisoptions; - ipcp_options *go = &pcb->ipcp_gotoptions; - ipcp_options *wo = &pcb->ipcp_wantoptions; - - IPCPDEBUG(("ipcp: up")); - - /* - * We must have a non-zero IP address for both ends of the link. - */ - if (!ho->neg_addr && !ho->old_addrs) - ho->hisaddr = wo->hisaddr; - - if (!(go->neg_addr || go->old_addrs) && (wo->neg_addr || wo->old_addrs) - && wo->ouraddr != 0) { - ppp_error("Peer refused to agree to our IP address"); - ipcp_close(f->pcb, "Refused our IP address"); - return; - } - if (go->ouraddr == 0) { - ppp_error("Could not determine local IP address"); - ipcp_close(f->pcb, "Could not determine local IP address"); - return; - } - if (ho->hisaddr == 0 && !pcb->settings.noremoteip) { - ho->hisaddr = lwip_htonl(0x0a404040); - ppp_warn("Could not determine remote IP address: defaulting to %I", - ho->hisaddr); - } -#if 0 /* UNUSED */ - script_setenv("IPLOCAL", ip_ntoa(go->ouraddr), 0); - if (ho->hisaddr != 0) - script_setenv("IPREMOTE", ip_ntoa(ho->hisaddr), 1); -#endif /* UNUSED */ - -#if LWIP_DNS - if (!go->req_dns1) - go->dnsaddr[0] = 0; - if (!go->req_dns2) - go->dnsaddr[1] = 0; -#if 0 /* UNUSED */ - if (go->dnsaddr[0]) - script_setenv("DNS1", ip_ntoa(go->dnsaddr[0]), 0); - if (go->dnsaddr[1]) - script_setenv("DNS2", ip_ntoa(go->dnsaddr[1]), 0); -#endif /* UNUSED */ - if (pcb->settings.usepeerdns && (go->dnsaddr[0] || go->dnsaddr[1])) { - sdns(pcb, go->dnsaddr[0], go->dnsaddr[1]); -#if 0 /* UNUSED */ - script_setenv("USEPEERDNS", "1", 0); - create_resolv(go->dnsaddr[0], go->dnsaddr[1]); -#endif /* UNUSED */ - } -#endif /* LWIP_DNS */ - - /* - * Check that the peer is allowed to use the IP address it wants. - */ - if (ho->hisaddr != 0) { - u32_t addr = lwip_ntohl(ho->hisaddr); - if ((addr >> IP_CLASSA_NSHIFT) == IP_LOOPBACKNET - || IP_MULTICAST(addr) || IP_BADCLASS(addr) - /* - * For now, consider that PPP in server mode with peer required - * to authenticate must provide the peer IP address, reject any - * IP address wanted by peer different than the one we wanted. - */ -#if PPP_SERVER && PPP_AUTH_SUPPORT - || (pcb->settings.auth_required && wo->hisaddr != ho->hisaddr) -#endif /* PPP_SERVER && PPP_AUTH_SUPPORT */ - ) { - ppp_error("Peer is not authorized to use remote address %I", ho->hisaddr); - ipcp_close(pcb, "Unauthorized remote IP address"); - return; - } - } -#if 0 /* Unused */ - /* Upstream checking code */ - if (ho->hisaddr != 0 && !auth_ip_addr(f->unit, ho->hisaddr)) { - ppp_error("Peer is not authorized to use remote address %I", ho->hisaddr); - ipcp_close(f->unit, "Unauthorized remote IP address"); - return; - } -#endif /* Unused */ - -#if VJ_SUPPORT - /* set tcp compression */ - sifvjcomp(pcb, ho->neg_vj, ho->cflag, ho->maxslotindex); -#endif /* VJ_SUPPORT */ - -#if DEMAND_SUPPORT - /* - * If we are doing dial-on-demand, the interface is already - * configured, so we put out any saved-up packets, then set the - * interface to pass IP packets. - */ - if (demand) { - if (go->ouraddr != wo->ouraddr || ho->hisaddr != wo->hisaddr) { - ipcp_clear_addrs(f->unit, wo->ouraddr, wo->hisaddr, - wo->replace_default_route); - if (go->ouraddr != wo->ouraddr) { - ppp_warn("Local IP address changed to %I", go->ouraddr); - script_setenv("OLDIPLOCAL", ip_ntoa(wo->ouraddr), 0); - wo->ouraddr = go->ouraddr; - } else - script_unsetenv("OLDIPLOCAL"); - if (ho->hisaddr != wo->hisaddr && wo->hisaddr != 0) { - ppp_warn("Remote IP address changed to %I", ho->hisaddr); - script_setenv("OLDIPREMOTE", ip_ntoa(wo->hisaddr), 0); - wo->hisaddr = ho->hisaddr; - } else - script_unsetenv("OLDIPREMOTE"); - - /* Set the interface to the new addresses */ - mask = get_mask(go->ouraddr); - if (!sifaddr(pcb, go->ouraddr, ho->hisaddr, mask)) { -#if PPP_DEBUG - ppp_warn("Interface configuration failed"); -#endif /* PPP_DEBUG */ - ipcp_close(f->unit, "Interface configuration failed"); - return; - } - - /* assign a default route through the interface if required */ - if (ipcp_wantoptions[f->unit].default_route) - if (sifdefaultroute(pcb, go->ouraddr, ho->hisaddr, - wo->replace_default_route)) - default_route_set[f->unit] = 1; - -#if 0 /* UNUSED - PROXY ARP */ - /* Make a proxy ARP entry if requested. */ - if (ho->hisaddr != 0 && ipcp_wantoptions[f->unit].proxy_arp) - if (sifproxyarp(pcb, ho->hisaddr)) - proxy_arp_set[f->unit] = 1; -#endif /* UNUSED - PROXY ARP */ - - } - demand_rexmit(PPP_IP,go->ouraddr); - sifnpmode(pcb, PPP_IP, NPMODE_PASS); - - } else -#endif /* DEMAND_SUPPORT */ - { - /* - * Set IP addresses and (if specified) netmask. - */ - mask = get_mask(go->ouraddr); - -#if !(defined(SVR4) && (defined(SNI) || defined(__USLC__))) - if (!sifaddr(pcb, go->ouraddr, ho->hisaddr, mask)) { -#if PPP_DEBUG - ppp_warn("Interface configuration failed"); -#endif /* PPP_DEBUG */ - ipcp_close(f->pcb, "Interface configuration failed"); - return; - } -#endif - - /* bring the interface up for IP */ - if (!sifup(pcb)) { -#if PPP_DEBUG - ppp_warn("Interface failed to come up"); -#endif /* PPP_DEBUG */ - ipcp_close(f->pcb, "Interface configuration failed"); - return; - } - -#if (defined(SVR4) && (defined(SNI) || defined(__USLC__))) - if (!sifaddr(pcb, go->ouraddr, ho->hisaddr, mask)) { -#if PPP_DEBUG - ppp_warn("Interface configuration failed"); -#endif /* PPP_DEBUG */ - ipcp_close(f->unit, "Interface configuration failed"); - return; - } -#endif -#if DEMAND_SUPPORT - sifnpmode(pcb, PPP_IP, NPMODE_PASS); -#endif /* DEMAND_SUPPORT */ - -#if 0 /* UNUSED */ - /* assign a default route through the interface if required */ - if (wo->default_route) - if (sifdefaultroute(pcb, go->ouraddr, ho->hisaddr, - wo->replace_default_route)) - pcb->default_route_set = 1; -#endif /* UNUSED */ - -#if 0 /* UNUSED - PROXY ARP */ - /* Make a proxy ARP entry if requested. */ - if (ho->hisaddr != 0 && wo->proxy_arp) - if (sifproxyarp(pcb, ho->hisaddr)) - pcb->proxy_arp_set = 1; -#endif /* UNUSED - PROXY ARP */ - - wo->ouraddr = go->ouraddr; - - ppp_notice("local IP address %I", go->ouraddr); - if (ho->hisaddr != 0) - ppp_notice("remote IP address %I", ho->hisaddr); -#if LWIP_DNS - if (go->dnsaddr[0]) - ppp_notice("primary DNS address %I", go->dnsaddr[0]); - if (go->dnsaddr[1]) - ppp_notice("secondary DNS address %I", go->dnsaddr[1]); -#endif /* LWIP_DNS */ - } - -#if PPP_STATS_SUPPORT - reset_link_stats(f->unit); -#endif /* PPP_STATS_SUPPORT */ - - np_up(pcb, PPP_IP); - pcb->ipcp_is_up = 1; - -#if PPP_NOTIFY - notify(ip_up_notifier, 0); -#endif /* PPP_NOTIFY */ -#if 0 /* UNUSED */ - if (ip_up_hook) - ip_up_hook(); -#endif /* UNUSED */ -} - - -/* - * ipcp_down - IPCP has gone DOWN. - * - * Take the IP network interface down, clear its addresses - * and delete routes through it. - */ -static void ipcp_down(fsm *f) { - ppp_pcb *pcb = f->pcb; - ipcp_options *ho = &pcb->ipcp_hisoptions; - ipcp_options *go = &pcb->ipcp_gotoptions; - - IPCPDEBUG(("ipcp: down")); -#if PPP_STATS_SUPPORT - /* XXX a bit IPv4-centric here, we only need to get the stats - * before the interface is marked down. */ - /* XXX more correct: we must get the stats before running the notifiers, - * at least for the radius plugin */ - update_link_stats(f->unit); -#endif /* PPP_STATS_SUPPORT */ -#if PPP_NOTIFY - notify(ip_down_notifier, 0); -#endif /* PPP_NOTIFY */ -#if 0 /* UNUSED */ - if (ip_down_hook) - ip_down_hook(); -#endif /* UNUSED */ - if (pcb->ipcp_is_up) { - pcb->ipcp_is_up = 0; - np_down(pcb, PPP_IP); - } -#if VJ_SUPPORT - sifvjcomp(pcb, 0, 0, 0); -#endif /* VJ_SUPPORT */ - -#if PPP_STATS_SUPPORT - print_link_stats(); /* _after_ running the notifiers and ip_down_hook(), - * because print_link_stats() sets link_stats_valid - * to 0 (zero) */ -#endif /* PPP_STATS_SUPPORT */ - -#if DEMAND_SUPPORT - /* - * If we are doing dial-on-demand, set the interface - * to queue up outgoing packets (for now). - */ - if (demand) { - sifnpmode(pcb, PPP_IP, NPMODE_QUEUE); - } else -#endif /* DEMAND_SUPPORT */ - { -#if DEMAND_SUPPORT - sifnpmode(pcb, PPP_IP, NPMODE_DROP); -#endif /* DEMAND_SUPPORT */ - sifdown(pcb); - ipcp_clear_addrs(pcb, go->ouraddr, - ho->hisaddr, 0); -#if LWIP_DNS - cdns(pcb, go->dnsaddr[0], go->dnsaddr[1]); -#endif /* LWIP_DNS */ - } -} - - -/* - * ipcp_clear_addrs() - clear the interface addresses, routes, - * proxy arp entries, etc. - */ -static void ipcp_clear_addrs(ppp_pcb *pcb, u32_t ouraddr, u32_t hisaddr, u8_t replacedefaultroute) { - LWIP_UNUSED_ARG(replacedefaultroute); - -#if 0 /* UNUSED - PROXY ARP */ - if (pcb->proxy_arp_set) { - cifproxyarp(pcb, hisaddr); - pcb->proxy_arp_set = 0; - } -#endif /* UNUSED - PROXY ARP */ -#if 0 /* UNUSED */ - /* If replacedefaultroute, sifdefaultroute will be called soon - * with replacedefaultroute set and that will overwrite the current - * default route. This is the case only when doing demand, otherwise - * during demand, this cifdefaultroute would restore the old default - * route which is not what we want in this case. In the non-demand - * case, we'll delete the default route and restore the old if there - * is one saved by an sifdefaultroute with replacedefaultroute. - */ - if (!replacedefaultroute && pcb->default_route_set) { - cifdefaultroute(pcb, ouraddr, hisaddr); - pcb->default_route_set = 0; - } -#endif /* UNUSED */ - cifaddr(pcb, ouraddr, hisaddr); -} - - -/* - * ipcp_finished - possibly shut down the lower layers. - */ -static void ipcp_finished(fsm *f) { - ppp_pcb *pcb = f->pcb; - if (pcb->ipcp_is_open) { - pcb->ipcp_is_open = 0; - np_finished(pcb, PPP_IP); - } -} - - -#if 0 /* UNUSED */ -/* - * create_resolv - create the replacement resolv.conf file - */ -static void -create_resolv(peerdns1, peerdns2) - u32_t peerdns1, peerdns2; -{ - -} -#endif /* UNUSED */ - -#if PRINTPKT_SUPPORT -/* - * ipcp_printpkt - print the contents of an IPCP packet. - */ -static const char* const ipcp_codenames[] = { - "ConfReq", "ConfAck", "ConfNak", "ConfRej", - "TermReq", "TermAck", "CodeRej" -}; - -static int ipcp_printpkt(const u_char *p, int plen, - void (*printer) (void *, const char *, ...), void *arg) { - int code, id, len, olen; - const u_char *pstart, *optend; -#if VJ_SUPPORT - u_short cishort; -#endif /* VJ_SUPPORT */ - u32_t cilong; - - if (plen < HEADERLEN) - return 0; - pstart = p; - GETCHAR(code, p); - GETCHAR(id, p); - GETSHORT(len, p); - if (len < HEADERLEN || len > plen) - return 0; - - if (code >= 1 && code <= (int)LWIP_ARRAYSIZE(ipcp_codenames)) - printer(arg, " %s", ipcp_codenames[code-1]); - else - printer(arg, " code=0x%x", code); - printer(arg, " id=0x%x", id); - len -= HEADERLEN; - switch (code) { - case CONFREQ: - case CONFACK: - case CONFNAK: - case CONFREJ: - /* print option list */ - while (len >= 2) { - GETCHAR(code, p); - GETCHAR(olen, p); - p -= 2; - if (olen < 2 || olen > len) { - break; - } - printer(arg, " <"); - len -= olen; - optend = p + olen; - switch (code) { - case CI_ADDRS: - if (olen == CILEN_ADDRS) { - p += 2; - GETLONG(cilong, p); - printer(arg, "addrs %I", lwip_htonl(cilong)); - GETLONG(cilong, p); - printer(arg, " %I", lwip_htonl(cilong)); - } - break; -#if VJ_SUPPORT - case CI_COMPRESSTYPE: - if (olen >= CILEN_COMPRESS) { - p += 2; - GETSHORT(cishort, p); - printer(arg, "compress "); - switch (cishort) { - case IPCP_VJ_COMP: - printer(arg, "VJ"); - break; - case IPCP_VJ_COMP_OLD: - printer(arg, "old-VJ"); - break; - default: - printer(arg, "0x%x", cishort); - } - } - break; -#endif /* VJ_SUPPORT */ - case CI_ADDR: - if (olen == CILEN_ADDR) { - p += 2; - GETLONG(cilong, p); - printer(arg, "addr %I", lwip_htonl(cilong)); - } - break; -#if LWIP_DNS - case CI_MS_DNS1: - case CI_MS_DNS2: - p += 2; - GETLONG(cilong, p); - printer(arg, "ms-dns%d %I", (code == CI_MS_DNS1? 1: 2), - htonl(cilong)); - break; -#endif /* LWIP_DNS */ -#if 0 /* UNUSED - WINS */ - case CI_MS_WINS1: - case CI_MS_WINS2: - p += 2; - GETLONG(cilong, p); - printer(arg, "ms-wins %I", lwip_htonl(cilong)); - break; -#endif /* UNUSED - WINS */ - default: - break; - } - while (p < optend) { - GETCHAR(code, p); - printer(arg, " %.2x", code); - } - printer(arg, ">"); - } - break; - - case TERMACK: - case TERMREQ: - if (len > 0 && *p >= ' ' && *p < 0x7f) { - printer(arg, " "); - ppp_print_string(p, len, printer, arg); - p += len; - len = 0; - } - break; - default: - break; - } - - /* print the rest of the bytes in the packet */ - for (; len > 0; --len) { - GETCHAR(code, p); - printer(arg, " %.2x", code); - } - - return p - pstart; -} -#endif /* PRINTPKT_SUPPORT */ - -#if DEMAND_SUPPORT -/* - * ip_active_pkt - see if this IP packet is worth bringing the link up for. - * We don't bring the link up for IP fragments or for TCP FIN packets - * with no data. - */ -#define IP_HDRLEN 20 /* bytes */ -#define IP_OFFMASK 0x1fff -#ifndef IPPROTO_TCP -#define IPPROTO_TCP 6 -#endif -#define TCP_HDRLEN 20 -#define TH_FIN 0x01 - -/* - * We use these macros because the IP header may be at an odd address, - * and some compilers might use word loads to get th_off or ip_hl. - */ - -#define net_short(x) (((x)[0] << 8) + (x)[1]) -#define get_iphl(x) (((unsigned char *)(x))[0] & 0xF) -#define get_ipoff(x) net_short((unsigned char *)(x) + 6) -#define get_ipproto(x) (((unsigned char *)(x))[9]) -#define get_tcpoff(x) (((unsigned char *)(x))[12] >> 4) -#define get_tcpflags(x) (((unsigned char *)(x))[13]) - -static int -ip_active_pkt(pkt, len) - u_char *pkt; - int len; -{ - u_char *tcp; - int hlen; - - len -= PPP_HDRLEN; - pkt += PPP_HDRLEN; - if (len < IP_HDRLEN) - return 0; - if ((get_ipoff(pkt) & IP_OFFMASK) != 0) - return 0; - if (get_ipproto(pkt) != IPPROTO_TCP) - return 1; - hlen = get_iphl(pkt) * 4; - if (len < hlen + TCP_HDRLEN) - return 0; - tcp = pkt + hlen; - if ((get_tcpflags(tcp) & TH_FIN) != 0 && len == hlen + get_tcpoff(tcp) * 4) - return 0; - return 1; -} -#endif /* DEMAND_SUPPORT */ - -#endif /* PPP_SUPPORT && PPP_IPV4_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.c b/Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.c deleted file mode 100644 index 11c18df..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/ppp/ipv6cp.c +++ /dev/null @@ -1,1533 +0,0 @@ -/* - * ipv6cp.c - PPP IPV6 Control Protocol. - * - * Copyright (c) 1999 Tommi Komulainen. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The name(s) of the authors of this software must not be used to - * endorse or promote products derived from this software without - * prior written permission. - * - * 4. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Tommi Komulainen - * ". - * - * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY - * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - */ - -/* Original version, based on RFC2023 : - - Copyright (c) 1995, 1996, 1997 Francis.Dupont@inria.fr, INRIA Rocquencourt, - Alain.Durand@imag.fr, IMAG, - Jean-Luc.Richier@imag.fr, IMAG-LSR. - - Copyright (c) 1998, 1999 Francis.Dupont@inria.fr, GIE DYADE, - Alain.Durand@imag.fr, IMAG, - Jean-Luc.Richier@imag.fr, IMAG-LSR. - - Ce travail a été fait au sein du GIE DYADE (Groupement d'Intérêt - Économique ayant pour membres BULL S.A. et l'INRIA). - - Ce logiciel informatique est disponible aux conditions - usuelles dans la recherche, c'est-à-dire qu'il peut - être utilisé, copié, modifié, distribué à l'unique - condition que ce texte soit conservé afin que - l'origine de ce logiciel soit reconnue. - - Le nom de l'Institut National de Recherche en Informatique - et en Automatique (INRIA), de l'IMAG, ou d'une personne morale - ou physique ayant participé à l'élaboration de ce logiciel ne peut - être utilisé sans son accord préalable explicite. - - Ce logiciel est fourni tel quel sans aucune garantie, - support ou responsabilité d'aucune sorte. - Ce logiciel est dérivé de sources d'origine - "University of California at Berkeley" et - "Digital Equipment Corporation" couvertes par des copyrights. - - L'Institut d'Informatique et de Mathématiques Appliquées de Grenoble (IMAG) - est une fédération d'unités mixtes de recherche du CNRS, de l'Institut National - Polytechnique de Grenoble et de l'Université Joseph Fourier regroupant - sept laboratoires dont le laboratoire Logiciels, Systèmes, Réseaux (LSR). - - This work has been done in the context of GIE DYADE (joint R & D venture - between BULL S.A. and INRIA). - - This software is available with usual "research" terms - with the aim of retain credits of the software. - Permission to use, copy, modify and distribute this software for any - purpose and without fee is hereby granted, provided that the above - copyright notice and this permission notice appear in all copies, - and the name of INRIA, IMAG, or any contributor not be used in advertising - or publicity pertaining to this material without the prior explicit - permission. The software is provided "as is" without any - warranties, support or liabilities of any kind. - This software is derived from source code from - "University of California at Berkeley" and - "Digital Equipment Corporation" protected by copyrights. - - Grenoble's Institute of Computer Science and Applied Mathematics (IMAG) - is a federation of seven research units funded by the CNRS, National - Polytechnic Institute of Grenoble and University Joseph Fourier. - The research unit in Software, Systems, Networks (LSR) is member of IMAG. -*/ - -/* - * Derived from : - * - * - * ipcp.c - PPP IP Control Protocol. - * - * Copyright (c) 1984-2000 Carnegie Mellon University. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The name "Carnegie Mellon University" must not be used to - * endorse or promote products derived from this software without - * prior written permission. For permission or any legal - * details, please contact - * Office of Technology Transfer - * Carnegie Mellon University - * 5000 Forbes Avenue - * Pittsburgh, PA 15213-3890 - * (412) 268-4387, fax: (412) 268-7395 - * tech-transfer@andrew.cmu.edu - * - * 4. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Computing Services - * at Carnegie Mellon University (http://www.cmu.edu/computing/)." - * - * CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE - * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * $Id: ipv6cp.c,v 1.21 2005/08/25 23:59:34 paulus Exp $ - */ - -/* - * @todo: - * - * Proxy Neighbour Discovery. - * - * Better defines for selecting the ordering of - * interface up / set address. - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && PPP_IPV6_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#if 0 /* UNUSED */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#endif /* UNUSED */ - -#include "netif/ppp/ppp_impl.h" -#include "netif/ppp/fsm.h" -#include "netif/ppp/ipcp.h" -#include "netif/ppp/ipv6cp.h" -#include "netif/ppp/magic.h" - -/* global vars */ -#if 0 /* UNUSED */ -int no_ifaceid_neg = 0; -#endif /* UNUSED */ - -/* - * Callbacks for fsm code. (CI = Configuration Information) - */ -static void ipv6cp_resetci(fsm *f); /* Reset our CI */ -static int ipv6cp_cilen(fsm *f); /* Return length of our CI */ -static void ipv6cp_addci(fsm *f, u_char *ucp, int *lenp); /* Add our CI */ -static int ipv6cp_ackci(fsm *f, u_char *p, int len); /* Peer ack'd our CI */ -static int ipv6cp_nakci(fsm *f, u_char *p, int len, int treat_as_reject); /* Peer nak'd our CI */ -static int ipv6cp_rejci(fsm *f, u_char *p, int len); /* Peer rej'd our CI */ -static int ipv6cp_reqci(fsm *f, u_char *inp, int *len, int reject_if_disagree); /* Rcv CI */ -static void ipv6cp_up(fsm *f); /* We're UP */ -static void ipv6cp_down(fsm *f); /* We're DOWN */ -static void ipv6cp_finished(fsm *f); /* Don't need lower layer */ - -static const fsm_callbacks ipv6cp_callbacks = { /* IPV6CP callback routines */ - ipv6cp_resetci, /* Reset our Configuration Information */ - ipv6cp_cilen, /* Length of our Configuration Information */ - ipv6cp_addci, /* Add our Configuration Information */ - ipv6cp_ackci, /* ACK our Configuration Information */ - ipv6cp_nakci, /* NAK our Configuration Information */ - ipv6cp_rejci, /* Reject our Configuration Information */ - ipv6cp_reqci, /* Request peer's Configuration Information */ - ipv6cp_up, /* Called when fsm reaches OPENED state */ - ipv6cp_down, /* Called when fsm leaves OPENED state */ - NULL, /* Called when we want the lower layer up */ - ipv6cp_finished, /* Called when we want the lower layer down */ - NULL, /* Called when Protocol-Reject received */ - NULL, /* Retransmission is necessary */ - NULL, /* Called to handle protocol-specific codes */ - "IPV6CP" /* String name of protocol */ -}; - -#if PPP_OPTIONS -/* - * Command-line options. - */ -static int setifaceid(char **arg)); -static void printifaceid(option_t *, - void (*)(void *, char *, ...), void *)); - -static option_t ipv6cp_option_list[] = { - { "ipv6", o_special, (void *)setifaceid, - "Set interface identifiers for IPV6", - OPT_A2PRINTER, (void *)printifaceid }, - - { "+ipv6", o_bool, &ipv6cp_protent.enabled_flag, - "Enable IPv6 and IPv6CP", OPT_PRIO | 1 }, - { "noipv6", o_bool, &ipv6cp_protent.enabled_flag, - "Disable IPv6 and IPv6CP", OPT_PRIOSUB }, - { "-ipv6", o_bool, &ipv6cp_protent.enabled_flag, - "Disable IPv6 and IPv6CP", OPT_PRIOSUB | OPT_ALIAS }, - - { "ipv6cp-accept-local", o_bool, &ipv6cp_allowoptions[0].accept_local, - "Accept peer's interface identifier for us", 1 }, - - { "ipv6cp-use-ipaddr", o_bool, &ipv6cp_allowoptions[0].use_ip, - "Use (default) IPv4 address as interface identifier", 1 }, - - { "ipv6cp-use-persistent", o_bool, &ipv6cp_wantoptions[0].use_persistent, - "Use uniquely-available persistent value for link local address", 1 }, - - { "ipv6cp-restart", o_int, &ipv6cp_fsm[0].timeouttime, - "Set timeout for IPv6CP", OPT_PRIO }, - { "ipv6cp-max-terminate", o_int, &ipv6cp_fsm[0].maxtermtransmits, - "Set max #xmits for term-reqs", OPT_PRIO }, - { "ipv6cp-max-configure", o_int, &ipv6cp_fsm[0].maxconfreqtransmits, - "Set max #xmits for conf-reqs", OPT_PRIO }, - { "ipv6cp-max-failure", o_int, &ipv6cp_fsm[0].maxnakloops, - "Set max #conf-naks for IPv6CP", OPT_PRIO }, - - { NULL } -}; -#endif /* PPP_OPTIONS */ - -/* - * Protocol entry points from main code. - */ -static void ipv6cp_init(ppp_pcb *pcb); -static void ipv6cp_open(ppp_pcb *pcb); -static void ipv6cp_close(ppp_pcb *pcb, const char *reason); -static void ipv6cp_lowerup(ppp_pcb *pcb); -static void ipv6cp_lowerdown(ppp_pcb *pcb); -static void ipv6cp_input(ppp_pcb *pcb, u_char *p, int len); -static void ipv6cp_protrej(ppp_pcb *pcb); -#if PPP_OPTIONS -static void ipv6_check_options(void); -#endif /* PPP_OPTIONS */ -#if DEMAND_SUPPORT -static int ipv6_demand_conf(int u); -#endif /* DEMAND_SUPPORT */ -#if PRINTPKT_SUPPORT -static int ipv6cp_printpkt(const u_char *p, int plen, - void (*printer)(void *, const char *, ...), void *arg); -#endif /* PRINTPKT_SUPPORT */ -#if DEMAND_SUPPORT -static int ipv6_active_pkt(u_char *pkt, int len); -#endif /* DEMAND_SUPPORT */ - -const struct protent ipv6cp_protent = { - PPP_IPV6CP, - ipv6cp_init, - ipv6cp_input, - ipv6cp_protrej, - ipv6cp_lowerup, - ipv6cp_lowerdown, - ipv6cp_open, - ipv6cp_close, -#if PRINTPKT_SUPPORT - ipv6cp_printpkt, -#endif /* PRINTPKT_SUPPORT */ -#if PPP_DATAINPUT - NULL, -#endif /* PPP_DATAINPUT */ -#if PRINTPKT_SUPPORT - "IPV6CP", - "IPV6", -#endif /* PRINTPKT_SUPPORT */ -#if PPP_OPTIONS - ipv6cp_option_list, - ipv6_check_options, -#endif /* PPP_OPTIONS */ -#if DEMAND_SUPPORT - ipv6_demand_conf, - ipv6_active_pkt -#endif /* DEMAND_SUPPORT */ -}; - -static void ipv6cp_clear_addrs(ppp_pcb *pcb, eui64_t ourid, eui64_t hisid); -#if 0 /* UNUSED */ -static void ipv6cp_script(char *)); -static void ipv6cp_script_done(void *)); -#endif /* UNUSED */ - -/* - * Lengths of configuration options. - */ -#define CILEN_VOID 2 -#define CILEN_COMPRESS 4 /* length for RFC2023 compress opt. */ -#define CILEN_IFACEID 10 /* RFC2472, interface identifier */ - -#define CODENAME(x) ((x) == CONFACK ? "ACK" : \ - (x) == CONFNAK ? "NAK" : "REJ") - -#if 0 /* UNUSED */ -/* - * This state variable is used to ensure that we don't - * run an ipcp-up/down script while one is already running. - */ -static enum script_state { - s_down, - s_up, -} ipv6cp_script_state; -static pid_t ipv6cp_script_pid; -#endif /* UNUSED */ - -static char *llv6_ntoa(eui64_t ifaceid); - -#if PPP_OPTIONS -/* - * setifaceid - set the interface identifiers manually - */ -static int -setifaceid(argv) - char **argv; -{ - char *comma, *arg, c; - ipv6cp_options *wo = &ipv6cp_wantoptions[0]; - struct in6_addr addr; - static int prio_local, prio_remote; - -#define VALIDID(a) ( (((a).s6_addr32[0] == 0) && ((a).s6_addr32[1] == 0)) && \ - (((a).s6_addr32[2] != 0) || ((a).s6_addr32[3] != 0)) ) - - arg = *argv; - if ((comma = strchr(arg, ',')) == NULL) - comma = arg + strlen(arg); - - /* - * If comma first character, then no local identifier - */ - if (comma != arg) { - c = *comma; - *comma = '\0'; - - if (inet_pton(AF_INET6, arg, &addr) == 0 || !VALIDID(addr)) { - option_error("Illegal interface identifier (local): %s", arg); - return 0; - } - - if (option_priority >= prio_local) { - eui64_copy(addr.s6_addr32[2], wo->ourid); - wo->opt_local = 1; - prio_local = option_priority; - } - *comma = c; - } - - /* - * If comma last character, the no remote identifier - */ - if (*comma != 0 && *++comma != '\0') { - if (inet_pton(AF_INET6, comma, &addr) == 0 || !VALIDID(addr)) { - option_error("Illegal interface identifier (remote): %s", comma); - return 0; - } - if (option_priority >= prio_remote) { - eui64_copy(addr.s6_addr32[2], wo->hisid); - wo->opt_remote = 1; - prio_remote = option_priority; - } - } - - if (override_value("+ipv6", option_priority, option_source)) - ipv6cp_protent.enabled_flag = 1; - return 1; -} - -static void -printifaceid(opt, printer, arg) - option_t *opt; - void (*printer)(void *, char *, ...)); - void *arg; -{ - ipv6cp_options *wo = &ipv6cp_wantoptions[0]; - - if (wo->opt_local) - printer(arg, "%s", llv6_ntoa(wo->ourid)); - printer(arg, ","); - if (wo->opt_remote) - printer(arg, "%s", llv6_ntoa(wo->hisid)); -} -#endif /* PPP_OPTIONS */ - -/* - * Make a string representation of a network address. - */ -static char * -llv6_ntoa(eui64_t ifaceid) -{ - static char b[26]; - - sprintf(b, "fe80::%02x%02x:%02x%02x:%02x%02x:%02x%02x", - ifaceid.e8[0], ifaceid.e8[1], ifaceid.e8[2], ifaceid.e8[3], - ifaceid.e8[4], ifaceid.e8[5], ifaceid.e8[6], ifaceid.e8[7]); - - return b; -} - - -/* - * ipv6cp_init - Initialize IPV6CP. - */ -static void ipv6cp_init(ppp_pcb *pcb) { - fsm *f = &pcb->ipv6cp_fsm; - ipv6cp_options *wo = &pcb->ipv6cp_wantoptions; - ipv6cp_options *ao = &pcb->ipv6cp_allowoptions; - - f->pcb = pcb; - f->protocol = PPP_IPV6CP; - f->callbacks = &ipv6cp_callbacks; - fsm_init(f); - -#if 0 /* Not necessary, everything is cleared in ppp_new() */ - memset(wo, 0, sizeof(*wo)); - memset(ao, 0, sizeof(*ao)); -#endif /* 0 */ - - wo->accept_local = 1; - wo->neg_ifaceid = 1; - ao->neg_ifaceid = 1; - -#ifdef IPV6CP_COMP - wo->neg_vj = 1; - ao->neg_vj = 1; - wo->vj_protocol = IPV6CP_COMP; -#endif - -} - - -/* - * ipv6cp_open - IPV6CP is allowed to come up. - */ -static void ipv6cp_open(ppp_pcb *pcb) { - fsm_open(&pcb->ipv6cp_fsm); -} - - -/* - * ipv6cp_close - Take IPV6CP down. - */ -static void ipv6cp_close(ppp_pcb *pcb, const char *reason) { - fsm_close(&pcb->ipv6cp_fsm, reason); -} - - -/* - * ipv6cp_lowerup - The lower layer is up. - */ -static void ipv6cp_lowerup(ppp_pcb *pcb) { - fsm_lowerup(&pcb->ipv6cp_fsm); -} - - -/* - * ipv6cp_lowerdown - The lower layer is down. - */ -static void ipv6cp_lowerdown(ppp_pcb *pcb) { - fsm_lowerdown(&pcb->ipv6cp_fsm); -} - - -/* - * ipv6cp_input - Input IPV6CP packet. - */ -static void ipv6cp_input(ppp_pcb *pcb, u_char *p, int len) { - fsm_input(&pcb->ipv6cp_fsm, p, len); -} - - -/* - * ipv6cp_protrej - A Protocol-Reject was received for IPV6CP. - * - * Pretend the lower layer went down, so we shut up. - */ -static void ipv6cp_protrej(ppp_pcb *pcb) { - fsm_lowerdown(&pcb->ipv6cp_fsm); -} - - -/* - * ipv6cp_resetci - Reset our CI. - */ -static void ipv6cp_resetci(fsm *f) { - ppp_pcb *pcb = f->pcb; - ipv6cp_options *wo = &pcb->ipv6cp_wantoptions; - ipv6cp_options *go = &pcb->ipv6cp_gotoptions; - ipv6cp_options *ao = &pcb->ipv6cp_allowoptions; - - wo->req_ifaceid = wo->neg_ifaceid && ao->neg_ifaceid; - - if (!wo->opt_local) { - eui64_magic_nz(wo->ourid); - } - - *go = *wo; - eui64_zero(go->hisid); /* last proposed interface identifier */ -} - - -/* - * ipv6cp_cilen - Return length of our CI. - */ -static int ipv6cp_cilen(fsm *f) { - ppp_pcb *pcb = f->pcb; - ipv6cp_options *go = &pcb->ipv6cp_gotoptions; - -#ifdef IPV6CP_COMP -#define LENCIVJ(neg) (neg ? CILEN_COMPRESS : 0) -#endif /* IPV6CP_COMP */ -#define LENCIIFACEID(neg) (neg ? CILEN_IFACEID : 0) - - return (LENCIIFACEID(go->neg_ifaceid) + -#ifdef IPV6CP_COMP - LENCIVJ(go->neg_vj) + -#endif /* IPV6CP_COMP */ - 0); -} - - -/* - * ipv6cp_addci - Add our desired CIs to a packet. - */ -static void ipv6cp_addci(fsm *f, u_char *ucp, int *lenp) { - ppp_pcb *pcb = f->pcb; - ipv6cp_options *go = &pcb->ipv6cp_gotoptions; - int len = *lenp; - -#ifdef IPV6CP_COMP -#define ADDCIVJ(opt, neg, val) \ - if (neg) { \ - int vjlen = CILEN_COMPRESS; \ - if (len >= vjlen) { \ - PUTCHAR(opt, ucp); \ - PUTCHAR(vjlen, ucp); \ - PUTSHORT(val, ucp); \ - len -= vjlen; \ - } else \ - neg = 0; \ - } -#endif /* IPV6CP_COMP */ - -#define ADDCIIFACEID(opt, neg, val1) \ - if (neg) { \ - int idlen = CILEN_IFACEID; \ - if (len >= idlen) { \ - PUTCHAR(opt, ucp); \ - PUTCHAR(idlen, ucp); \ - eui64_put(val1, ucp); \ - len -= idlen; \ - } else \ - neg = 0; \ - } - - ADDCIIFACEID(CI_IFACEID, go->neg_ifaceid, go->ourid); - -#ifdef IPV6CP_COMP - ADDCIVJ(CI_COMPRESSTYPE, go->neg_vj, go->vj_protocol); -#endif /* IPV6CP_COMP */ - - *lenp -= len; -} - - -/* - * ipv6cp_ackci - Ack our CIs. - * - * Returns: - * 0 - Ack was bad. - * 1 - Ack was good. - */ -static int ipv6cp_ackci(fsm *f, u_char *p, int len) { - ppp_pcb *pcb = f->pcb; - ipv6cp_options *go = &pcb->ipv6cp_gotoptions; - u_short cilen, citype; -#ifdef IPV6CP_COMP - u_short cishort; -#endif /* IPV6CP_COMP */ - eui64_t ifaceid; - - /* - * CIs must be in exactly the same order that we sent... - * Check packet length and CI length at each step. - * If we find any deviations, then this packet is bad. - */ - -#ifdef IPV6CP_COMP -#define ACKCIVJ(opt, neg, val) \ - if (neg) { \ - int vjlen = CILEN_COMPRESS; \ - if ((len -= vjlen) < 0) \ - goto bad; \ - GETCHAR(citype, p); \ - GETCHAR(cilen, p); \ - if (cilen != vjlen || \ - citype != opt) \ - goto bad; \ - GETSHORT(cishort, p); \ - if (cishort != val) \ - goto bad; \ - } -#endif /* IPV6CP_COMP */ - -#define ACKCIIFACEID(opt, neg, val1) \ - if (neg) { \ - int idlen = CILEN_IFACEID; \ - if ((len -= idlen) < 0) \ - goto bad; \ - GETCHAR(citype, p); \ - GETCHAR(cilen, p); \ - if (cilen != idlen || \ - citype != opt) \ - goto bad; \ - eui64_get(ifaceid, p); \ - if (! eui64_equals(val1, ifaceid)) \ - goto bad; \ - } - - ACKCIIFACEID(CI_IFACEID, go->neg_ifaceid, go->ourid); - -#ifdef IPV6CP_COMP - ACKCIVJ(CI_COMPRESSTYPE, go->neg_vj, go->vj_protocol); -#endif /* IPV6CP_COMP */ - - /* - * If there are any remaining CIs, then this packet is bad. - */ - if (len != 0) - goto bad; - return (1); - -bad: - IPV6CPDEBUG(("ipv6cp_ackci: received bad Ack!")); - return (0); -} - -/* - * ipv6cp_nakci - Peer has sent a NAK for some of our CIs. - * This should not modify any state if the Nak is bad - * or if IPV6CP is in the OPENED state. - * - * Returns: - * 0 - Nak was bad. - * 1 - Nak was good. - */ -static int ipv6cp_nakci(fsm *f, u_char *p, int len, int treat_as_reject) { - ppp_pcb *pcb = f->pcb; - ipv6cp_options *go = &pcb->ipv6cp_gotoptions; - u_char citype, cilen, *next; -#ifdef IPV6CP_COMP - u_short cishort; -#endif /* IPV6CP_COMP */ - eui64_t ifaceid; - ipv6cp_options no; /* options we've seen Naks for */ - ipv6cp_options try_; /* options to request next time */ - - BZERO(&no, sizeof(no)); - try_ = *go; - - /* - * Any Nak'd CIs must be in exactly the same order that we sent. - * Check packet length and CI length at each step. - * If we find any deviations, then this packet is bad. - */ -#define NAKCIIFACEID(opt, neg, code) \ - if (go->neg && \ - len >= (cilen = CILEN_IFACEID) && \ - p[1] == cilen && \ - p[0] == opt) { \ - len -= cilen; \ - INCPTR(2, p); \ - eui64_get(ifaceid, p); \ - no.neg = 1; \ - code \ - } - -#ifdef IPV6CP_COMP -#define NAKCIVJ(opt, neg, code) \ - if (go->neg && \ - ((cilen = p[1]) == CILEN_COMPRESS) && \ - len >= cilen && \ - p[0] == opt) { \ - len -= cilen; \ - INCPTR(2, p); \ - GETSHORT(cishort, p); \ - no.neg = 1; \ - code \ - } -#endif /* IPV6CP_COMP */ - - /* - * Accept the peer's idea of {our,his} interface identifier, if different - * from our idea, only if the accept_{local,remote} flag is set. - */ - NAKCIIFACEID(CI_IFACEID, neg_ifaceid, - if (treat_as_reject) { - try_.neg_ifaceid = 0; - } else if (go->accept_local) { - while (eui64_iszero(ifaceid) || - eui64_equals(ifaceid, go->hisid)) /* bad luck */ - eui64_magic(ifaceid); - try_.ourid = ifaceid; - IPV6CPDEBUG(("local LL address %s", llv6_ntoa(ifaceid))); - } - ); - -#ifdef IPV6CP_COMP - NAKCIVJ(CI_COMPRESSTYPE, neg_vj, - { - if (cishort == IPV6CP_COMP && !treat_as_reject) { - try_.vj_protocol = cishort; - } else { - try_.neg_vj = 0; - } - } - ); -#endif /* IPV6CP_COMP */ - - /* - * There may be remaining CIs, if the peer is requesting negotiation - * on an option that we didn't include in our request packet. - * If they want to negotiate about interface identifier, we comply. - * If they want us to ask for compression, we refuse. - */ - while (len >= CILEN_VOID) { - GETCHAR(citype, p); - GETCHAR(cilen, p); - if ( cilen < CILEN_VOID || (len -= cilen) < 0 ) - goto bad; - next = p + cilen - 2; - - switch (citype) { -#ifdef IPV6CP_COMP - case CI_COMPRESSTYPE: - if (go->neg_vj || no.neg_vj || - (cilen != CILEN_COMPRESS)) - goto bad; - no.neg_vj = 1; - break; -#endif /* IPV6CP_COMP */ - case CI_IFACEID: - if (go->neg_ifaceid || no.neg_ifaceid || cilen != CILEN_IFACEID) - goto bad; - try_.neg_ifaceid = 1; - eui64_get(ifaceid, p); - if (go->accept_local) { - while (eui64_iszero(ifaceid) || - eui64_equals(ifaceid, go->hisid)) /* bad luck */ - eui64_magic(ifaceid); - try_.ourid = ifaceid; - } - no.neg_ifaceid = 1; - break; - default: - break; - } - p = next; - } - - /* If there is still anything left, this packet is bad. */ - if (len != 0) - goto bad; - - /* - * OK, the Nak is good. Now we can update state. - */ - if (f->state != PPP_FSM_OPENED) - *go = try_; - - return 1; - -bad: - IPV6CPDEBUG(("ipv6cp_nakci: received bad Nak!")); - return 0; -} - - -/* - * ipv6cp_rejci - Reject some of our CIs. - */ -static int ipv6cp_rejci(fsm *f, u_char *p, int len) { - ppp_pcb *pcb = f->pcb; - ipv6cp_options *go = &pcb->ipv6cp_gotoptions; - u_char cilen; -#ifdef IPV6CP_COMP - u_short cishort; -#endif /* IPV6CP_COMP */ - eui64_t ifaceid; - ipv6cp_options try_; /* options to request next time */ - - try_ = *go; - /* - * Any Rejected CIs must be in exactly the same order that we sent. - * Check packet length and CI length at each step. - * If we find any deviations, then this packet is bad. - */ -#define REJCIIFACEID(opt, neg, val1) \ - if (go->neg && \ - len >= (cilen = CILEN_IFACEID) && \ - p[1] == cilen && \ - p[0] == opt) { \ - len -= cilen; \ - INCPTR(2, p); \ - eui64_get(ifaceid, p); \ - /* Check rejected value. */ \ - if (! eui64_equals(ifaceid, val1)) \ - goto bad; \ - try_.neg = 0; \ - } - -#ifdef IPV6CP_COMP -#define REJCIVJ(opt, neg, val) \ - if (go->neg && \ - p[1] == CILEN_COMPRESS && \ - len >= p[1] && \ - p[0] == opt) { \ - len -= p[1]; \ - INCPTR(2, p); \ - GETSHORT(cishort, p); \ - /* Check rejected value. */ \ - if (cishort != val) \ - goto bad; \ - try_.neg = 0; \ - } -#endif /* IPV6CP_COMP */ - - REJCIIFACEID(CI_IFACEID, neg_ifaceid, go->ourid); - -#ifdef IPV6CP_COMP - REJCIVJ(CI_COMPRESSTYPE, neg_vj, go->vj_protocol); -#endif /* IPV6CP_COMP */ - - /* - * If there are any remaining CIs, then this packet is bad. - */ - if (len != 0) - goto bad; - /* - * Now we can update state. - */ - if (f->state != PPP_FSM_OPENED) - *go = try_; - return 1; - -bad: - IPV6CPDEBUG(("ipv6cp_rejci: received bad Reject!")); - return 0; -} - - -/* - * ipv6cp_reqci - Check the peer's requested CIs and send appropriate response. - * - * Returns: CONFACK, CONFNAK or CONFREJ and input packet modified - * appropriately. If reject_if_disagree is non-zero, doesn't return - * CONFNAK; returns CONFREJ if it can't return CONFACK. - * - * inp = Requested CIs - * len = Length of requested CIs - * - */ -static int ipv6cp_reqci(fsm *f, u_char *inp, int *len, int reject_if_disagree) { - ppp_pcb *pcb = f->pcb; - ipv6cp_options *wo = &pcb->ipv6cp_wantoptions; - ipv6cp_options *ho = &pcb->ipv6cp_hisoptions; - ipv6cp_options *ao = &pcb->ipv6cp_allowoptions; - ipv6cp_options *go = &pcb->ipv6cp_gotoptions; - u_char *cip, *next; /* Pointer to current and next CIs */ - u_short cilen, citype; /* Parsed len, type */ -#ifdef IPV6CP_COMP - u_short cishort; /* Parsed short value */ -#endif /* IPV6CP_COMP */ - eui64_t ifaceid; /* Parsed interface identifier */ - int rc = CONFACK; /* Final packet return code */ - int orc; /* Individual option return code */ - u_char *p; /* Pointer to next char to parse */ - u_char *ucp = inp; /* Pointer to current output char */ - int l = *len; /* Length left */ - - /* - * Reset all his options. - */ - BZERO(ho, sizeof(*ho)); - - /* - * Process all his options. - */ - next = inp; - while (l) { - orc = CONFACK; /* Assume success */ - cip = p = next; /* Remember begining of CI */ - if (l < 2 || /* Not enough data for CI header or */ - p[1] < 2 || /* CI length too small or */ - p[1] > l) { /* CI length too big? */ - IPV6CPDEBUG(("ipv6cp_reqci: bad CI length!")); - orc = CONFREJ; /* Reject bad CI */ - cilen = l; /* Reject till end of packet */ - l = 0; /* Don't loop again */ - goto endswitch; - } - GETCHAR(citype, p); /* Parse CI type */ - GETCHAR(cilen, p); /* Parse CI length */ - l -= cilen; /* Adjust remaining length */ - next += cilen; /* Step to next CI */ - - switch (citype) { /* Check CI type */ - case CI_IFACEID: - IPV6CPDEBUG(("ipv6cp: received interface identifier ")); - - if (!ao->neg_ifaceid || - cilen != CILEN_IFACEID) { /* Check CI length */ - orc = CONFREJ; /* Reject CI */ - break; - } - - /* - * If he has no interface identifier, or if we both have same - * identifier then NAK it with new idea. - * In particular, if we don't know his identifier, but he does, - * then accept it. - */ - eui64_get(ifaceid, p); - IPV6CPDEBUG(("(%s)", llv6_ntoa(ifaceid))); - if (eui64_iszero(ifaceid) && eui64_iszero(go->ourid)) { - orc = CONFREJ; /* Reject CI */ - break; - } - if (!eui64_iszero(wo->hisid) && - !eui64_equals(ifaceid, wo->hisid) && - eui64_iszero(go->hisid)) { - - orc = CONFNAK; - ifaceid = wo->hisid; - go->hisid = ifaceid; - DECPTR(sizeof(ifaceid), p); - eui64_put(ifaceid, p); - } else - if (eui64_iszero(ifaceid) || eui64_equals(ifaceid, go->ourid)) { - orc = CONFNAK; - if (eui64_iszero(go->hisid)) /* first time, try option */ - ifaceid = wo->hisid; - while (eui64_iszero(ifaceid) || - eui64_equals(ifaceid, go->ourid)) /* bad luck */ - eui64_magic(ifaceid); - go->hisid = ifaceid; - DECPTR(sizeof(ifaceid), p); - eui64_put(ifaceid, p); - } - - ho->neg_ifaceid = 1; - ho->hisid = ifaceid; - break; - -#ifdef IPV6CP_COMP - case CI_COMPRESSTYPE: - IPV6CPDEBUG(("ipv6cp: received COMPRESSTYPE ")); - if (!ao->neg_vj || - (cilen != CILEN_COMPRESS)) { - orc = CONFREJ; - break; - } - GETSHORT(cishort, p); - IPV6CPDEBUG(("(%d)", cishort)); - - if (!(cishort == IPV6CP_COMP)) { - orc = CONFREJ; - break; - } - - ho->neg_vj = 1; - ho->vj_protocol = cishort; - break; -#endif /* IPV6CP_COMP */ - - default: - orc = CONFREJ; - break; - } - -endswitch: - IPV6CPDEBUG((" (%s)\n", CODENAME(orc))); - - if (orc == CONFACK && /* Good CI */ - rc != CONFACK) /* but prior CI wasnt? */ - continue; /* Don't send this one */ - - if (orc == CONFNAK) { /* Nak this CI? */ - if (reject_if_disagree) /* Getting fed up with sending NAKs? */ - orc = CONFREJ; /* Get tough if so */ - else { - if (rc == CONFREJ) /* Rejecting prior CI? */ - continue; /* Don't send this one */ - if (rc == CONFACK) { /* Ack'd all prior CIs? */ - rc = CONFNAK; /* Not anymore... */ - ucp = inp; /* Backup */ - } - } - } - - if (orc == CONFREJ && /* Reject this CI */ - rc != CONFREJ) { /* but no prior ones? */ - rc = CONFREJ; - ucp = inp; /* Backup */ - } - - /* Need to move CI? */ - if (ucp != cip) - MEMCPY(ucp, cip, cilen); /* Move it */ - - /* Update output pointer */ - INCPTR(cilen, ucp); - } - - /* - * If we aren't rejecting this packet, and we want to negotiate - * their identifier and they didn't send their identifier, then we - * send a NAK with a CI_IFACEID option appended. We assume the - * input buffer is long enough that we can append the extra - * option safely. - */ - if (rc != CONFREJ && !ho->neg_ifaceid && - wo->req_ifaceid && !reject_if_disagree) { - if (rc == CONFACK) { - rc = CONFNAK; - ucp = inp; /* reset pointer */ - wo->req_ifaceid = 0; /* don't ask again */ - } - PUTCHAR(CI_IFACEID, ucp); - PUTCHAR(CILEN_IFACEID, ucp); - eui64_put(wo->hisid, ucp); - } - - *len = ucp - inp; /* Compute output length */ - IPV6CPDEBUG(("ipv6cp: returning Configure-%s", CODENAME(rc))); - return (rc); /* Return final code */ -} - -#if PPP_OPTIONS -/* - * ipv6_check_options - check that any IP-related options are OK, - * and assign appropriate defaults. - */ -static void ipv6_check_options() { - ipv6cp_options *wo = &ipv6cp_wantoptions[0]; - - if (!ipv6cp_protent.enabled_flag) - return; - - /* - * Persistent link-local id is only used when user has not explicitly - * configure/hard-code the id - */ - if ((wo->use_persistent) && (!wo->opt_local) && (!wo->opt_remote)) { - - /* - * On systems where there are no Ethernet interfaces used, there - * may be other ways to obtain a persistent id. Right now, it - * will fall back to using magic [see eui64_magic] below when - * an EUI-48 from MAC address can't be obtained. Other possibilities - * include obtaining EEPROM serial numbers, or some other unique - * yet persistent number. On Sparc platforms, this is possible, - * but too bad there's no standards yet for x86 machines. - */ - if (ether_to_eui64(&wo->ourid)) { - wo->opt_local = 1; - } - } - - if (!wo->opt_local) { /* init interface identifier */ - if (wo->use_ip && eui64_iszero(wo->ourid)) { - eui64_setlo32(wo->ourid, lwip_ntohl(ipcp_wantoptions[0].ouraddr)); - if (!eui64_iszero(wo->ourid)) - wo->opt_local = 1; - } - - while (eui64_iszero(wo->ourid)) - eui64_magic(wo->ourid); - } - - if (!wo->opt_remote) { - if (wo->use_ip && eui64_iszero(wo->hisid)) { - eui64_setlo32(wo->hisid, lwip_ntohl(ipcp_wantoptions[0].hisaddr)); - if (!eui64_iszero(wo->hisid)) - wo->opt_remote = 1; - } - } - - if (demand && (eui64_iszero(wo->ourid) || eui64_iszero(wo->hisid))) { - option_error("local/remote LL address required for demand-dialling\n"); - exit(1); - } -} -#endif /* PPP_OPTIONS */ - -#if DEMAND_SUPPORT -/* - * ipv6_demand_conf - configure the interface as though - * IPV6CP were up, for use with dial-on-demand. - */ -static int ipv6_demand_conf(int u) { - ipv6cp_options *wo = &ipv6cp_wantoptions[u]; - - if (!sif6up(u)) - return 0; - - if (!sif6addr(u, wo->ourid, wo->hisid)) - return 0; - - if (!sifnpmode(u, PPP_IPV6, NPMODE_QUEUE)) - return 0; - - ppp_notice("ipv6_demand_conf"); - ppp_notice("local LL address %s", llv6_ntoa(wo->ourid)); - ppp_notice("remote LL address %s", llv6_ntoa(wo->hisid)); - - return 1; -} -#endif /* DEMAND_SUPPORT */ - - -/* - * ipv6cp_up - IPV6CP has come UP. - * - * Configure the IPv6 network interface appropriately and bring it up. - */ -static void ipv6cp_up(fsm *f) { - ppp_pcb *pcb = f->pcb; - ipv6cp_options *wo = &pcb->ipv6cp_wantoptions; - ipv6cp_options *ho = &pcb->ipv6cp_hisoptions; - ipv6cp_options *go = &pcb->ipv6cp_gotoptions; - - IPV6CPDEBUG(("ipv6cp: up")); - - /* - * We must have a non-zero LL address for both ends of the link. - */ - if (!ho->neg_ifaceid) - ho->hisid = wo->hisid; - -#if 0 /* UNUSED */ - if(!no_ifaceid_neg) { -#endif /* UNUSED */ - if (eui64_iszero(ho->hisid)) { - ppp_error("Could not determine remote LL address"); - ipv6cp_close(f->pcb, "Could not determine remote LL address"); - return; - } - if (eui64_iszero(go->ourid)) { - ppp_error("Could not determine local LL address"); - ipv6cp_close(f->pcb, "Could not determine local LL address"); - return; - } - if (eui64_equals(go->ourid, ho->hisid)) { - ppp_error("local and remote LL addresses are equal"); - ipv6cp_close(f->pcb, "local and remote LL addresses are equal"); - return; - } -#if 0 /* UNUSED */ - } -#endif /* UNUSED */ -#if 0 /* UNUSED */ - script_setenv("LLLOCAL", llv6_ntoa(go->ourid), 0); - script_setenv("LLREMOTE", llv6_ntoa(ho->hisid), 0); -#endif /* UNUSED */ - -#ifdef IPV6CP_COMP - /* set tcp compression */ - sif6comp(f->unit, ho->neg_vj); -#endif - -#if DEMAND_SUPPORT - /* - * If we are doing dial-on-demand, the interface is already - * configured, so we put out any saved-up packets, then set the - * interface to pass IPv6 packets. - */ - if (demand) { - if (! eui64_equals(go->ourid, wo->ourid) || - ! eui64_equals(ho->hisid, wo->hisid)) { - if (! eui64_equals(go->ourid, wo->ourid)) - warn("Local LL address changed to %s", - llv6_ntoa(go->ourid)); - if (! eui64_equals(ho->hisid, wo->hisid)) - warn("Remote LL address changed to %s", - llv6_ntoa(ho->hisid)); - ipv6cp_clear_addrs(f->pcb, go->ourid, ho->hisid); - - /* Set the interface to the new addresses */ - if (!sif6addr(f->pcb, go->ourid, ho->hisid)) { - if (debug) - warn("sif6addr failed"); - ipv6cp_close(f->unit, "Interface configuration failed"); - return; - } - - } - demand_rexmit(PPP_IPV6); - sifnpmode(f->unit, PPP_IPV6, NPMODE_PASS); - - } else -#endif /* DEMAND_SUPPORT */ - { - /* - * Set LL addresses - */ - if (!sif6addr(f->pcb, go->ourid, ho->hisid)) { - PPPDEBUG(LOG_DEBUG, ("sif6addr failed")); - ipv6cp_close(f->pcb, "Interface configuration failed"); - return; - } - - /* bring the interface up for IPv6 */ - if (!sif6up(f->pcb)) { - PPPDEBUG(LOG_DEBUG, ("sif6up failed (IPV6)")); - ipv6cp_close(f->pcb, "Interface configuration failed"); - return; - } -#if DEMAND_SUPPORT - sifnpmode(f->pcb, PPP_IPV6, NPMODE_PASS); -#endif /* DEMAND_SUPPORT */ - - ppp_notice("local LL address %s", llv6_ntoa(go->ourid)); - ppp_notice("remote LL address %s", llv6_ntoa(ho->hisid)); - } - - np_up(f->pcb, PPP_IPV6); - pcb->ipv6cp_is_up = 1; - -#if 0 /* UNUSED */ - /* - * Execute the ipv6-up script, like this: - * /etc/ppp/ipv6-up interface tty speed local-LL remote-LL - */ - if (ipv6cp_script_state == s_down && ipv6cp_script_pid == 0) { - ipv6cp_script_state = s_up; - ipv6cp_script(_PATH_IPV6UP); - } -#endif /* UNUSED */ -} - - -/* - * ipv6cp_down - IPV6CP has gone DOWN. - * - * Take the IPv6 network interface down, clear its addresses - * and delete routes through it. - */ -static void ipv6cp_down(fsm *f) { - ppp_pcb *pcb = f->pcb; - ipv6cp_options *go = &pcb->ipv6cp_gotoptions; - ipv6cp_options *ho = &pcb->ipv6cp_hisoptions; - - IPV6CPDEBUG(("ipv6cp: down")); -#if PPP_STATS_SUPPORT - update_link_stats(f->unit); -#endif /* PPP_STATS_SUPPORT */ - if (pcb->ipv6cp_is_up) { - pcb->ipv6cp_is_up = 0; - np_down(f->pcb, PPP_IPV6); - } -#ifdef IPV6CP_COMP - sif6comp(f->unit, 0); -#endif - -#if DEMAND_SUPPORT - /* - * If we are doing dial-on-demand, set the interface - * to queue up outgoing packets (for now). - */ - if (demand) { - sifnpmode(f->pcb, PPP_IPV6, NPMODE_QUEUE); - } else -#endif /* DEMAND_SUPPORT */ - { -#if DEMAND_SUPPORT - sifnpmode(f->pcb, PPP_IPV6, NPMODE_DROP); -#endif /* DEMAND_SUPPORT */ - ipv6cp_clear_addrs(f->pcb, - go->ourid, - ho->hisid); - sif6down(f->pcb); - } - -#if 0 /* UNUSED */ - /* Execute the ipv6-down script */ - if (ipv6cp_script_state == s_up && ipv6cp_script_pid == 0) { - ipv6cp_script_state = s_down; - ipv6cp_script(_PATH_IPV6DOWN); - } -#endif /* UNUSED */ -} - - -/* - * ipv6cp_clear_addrs() - clear the interface addresses, routes, - * proxy neighbour discovery entries, etc. - */ -static void ipv6cp_clear_addrs(ppp_pcb *pcb, eui64_t ourid, eui64_t hisid) { - cif6addr(pcb, ourid, hisid); -} - - -/* - * ipv6cp_finished - possibly shut down the lower layers. - */ -static void ipv6cp_finished(fsm *f) { - np_finished(f->pcb, PPP_IPV6); -} - - -#if 0 /* UNUSED */ -/* - * ipv6cp_script_done - called when the ipv6-up or ipv6-down script - * has finished. - */ -static void -ipv6cp_script_done(arg) - void *arg; -{ - ipv6cp_script_pid = 0; - switch (ipv6cp_script_state) { - case s_up: - if (ipv6cp_fsm[0].state != PPP_FSM_OPENED) { - ipv6cp_script_state = s_down; - ipv6cp_script(_PATH_IPV6DOWN); - } - break; - case s_down: - if (ipv6cp_fsm[0].state == PPP_FSM_OPENED) { - ipv6cp_script_state = s_up; - ipv6cp_script(_PATH_IPV6UP); - } - break; - } -} - - -/* - * ipv6cp_script - Execute a script with arguments - * interface-name tty-name speed local-LL remote-LL. - */ -static void -ipv6cp_script(script) - char *script; -{ - char strspeed[32], strlocal[32], strremote[32]; - char *argv[8]; - - sprintf(strspeed, "%d", baud_rate); - strcpy(strlocal, llv6_ntoa(ipv6cp_gotoptions[0].ourid)); - strcpy(strremote, llv6_ntoa(ipv6cp_hisoptions[0].hisid)); - - argv[0] = script; - argv[1] = ifname; - argv[2] = devnam; - argv[3] = strspeed; - argv[4] = strlocal; - argv[5] = strremote; - argv[6] = ipparam; - argv[7] = NULL; - - ipv6cp_script_pid = run_program(script, argv, 0, ipv6cp_script_done, - NULL, 0); -} -#endif /* UNUSED */ - -#if PRINTPKT_SUPPORT -/* - * ipv6cp_printpkt - print the contents of an IPV6CP packet. - */ -static const char* const ipv6cp_codenames[] = { - "ConfReq", "ConfAck", "ConfNak", "ConfRej", - "TermReq", "TermAck", "CodeRej" -}; - -static int ipv6cp_printpkt(const u_char *p, int plen, - void (*printer)(void *, const char *, ...), void *arg) { - int code, id, len, olen; - const u_char *pstart, *optend; -#ifdef IPV6CP_COMP - u_short cishort; -#endif /* IPV6CP_COMP */ - eui64_t ifaceid; - - if (plen < HEADERLEN) - return 0; - pstart = p; - GETCHAR(code, p); - GETCHAR(id, p); - GETSHORT(len, p); - if (len < HEADERLEN || len > plen) - return 0; - - if (code >= 1 && code <= (int)LWIP_ARRAYSIZE(ipv6cp_codenames)) - printer(arg, " %s", ipv6cp_codenames[code-1]); - else - printer(arg, " code=0x%x", code); - printer(arg, " id=0x%x", id); - len -= HEADERLEN; - switch (code) { - case CONFREQ: - case CONFACK: - case CONFNAK: - case CONFREJ: - /* print option list */ - while (len >= 2) { - GETCHAR(code, p); - GETCHAR(olen, p); - p -= 2; - if (olen < 2 || olen > len) { - break; - } - printer(arg, " <"); - len -= olen; - optend = p + olen; - switch (code) { -#ifdef IPV6CP_COMP - case CI_COMPRESSTYPE: - if (olen >= CILEN_COMPRESS) { - p += 2; - GETSHORT(cishort, p); - printer(arg, "compress "); - printer(arg, "0x%x", cishort); - } - break; -#endif /* IPV6CP_COMP */ - case CI_IFACEID: - if (olen == CILEN_IFACEID) { - p += 2; - eui64_get(ifaceid, p); - printer(arg, "addr %s", llv6_ntoa(ifaceid)); - } - break; - default: - break; - } - while (p < optend) { - GETCHAR(code, p); - printer(arg, " %.2x", code); - } - printer(arg, ">"); - } - break; - - case TERMACK: - case TERMREQ: - if (len > 0 && *p >= ' ' && *p < 0x7f) { - printer(arg, " "); - ppp_print_string(p, len, printer, arg); - p += len; - len = 0; - } - break; - default: - break; - } - - /* print the rest of the bytes in the packet */ - for (; len > 0; --len) { - GETCHAR(code, p); - printer(arg, " %.2x", code); - } - - return p - pstart; -} -#endif /* PRINTPKT_SUPPORT */ - -#if DEMAND_SUPPORT -/* - * ipv6_active_pkt - see if this IP packet is worth bringing the link up for. - * We don't bring the link up for IP fragments or for TCP FIN packets - * with no data. - */ -#define IP6_HDRLEN 40 /* bytes */ -#define IP6_NHDR_FRAG 44 /* fragment IPv6 header */ -#define TCP_HDRLEN 20 -#define TH_FIN 0x01 - -/* - * We use these macros because the IP header may be at an odd address, - * and some compilers might use word loads to get th_off or ip_hl. - */ - -#define get_ip6nh(x) (((unsigned char *)(x))[6]) -#define get_tcpoff(x) (((unsigned char *)(x))[12] >> 4) -#define get_tcpflags(x) (((unsigned char *)(x))[13]) - -static int ipv6_active_pkt(u_char *pkt, int len) { - u_char *tcp; - - len -= PPP_HDRLEN; - pkt += PPP_HDRLEN; - if (len < IP6_HDRLEN) - return 0; - if (get_ip6nh(pkt) == IP6_NHDR_FRAG) - return 0; - if (get_ip6nh(pkt) != IPPROTO_TCP) - return 1; - if (len < IP6_HDRLEN + TCP_HDRLEN) - return 0; - tcp = pkt + IP6_HDRLEN; - if ((get_tcpflags(tcp) & TH_FIN) != 0 && len == IP6_HDRLEN + get_tcpoff(tcp) * 4) - return 0; - return 1; -} -#endif /* DEMAND_SUPPORT */ - -#endif /* PPP_SUPPORT && PPP_IPV6_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.c b/Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.c deleted file mode 100644 index 90ed183..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/ppp/lcp.c +++ /dev/null @@ -1,2790 +0,0 @@ -/* - * lcp.c - PPP Link Control Protocol. - * - * Copyright (c) 1984-2000 Carnegie Mellon University. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The name "Carnegie Mellon University" must not be used to - * endorse or promote products derived from this software without - * prior written permission. For permission or any legal - * details, please contact - * Office of Technology Transfer - * Carnegie Mellon University - * 5000 Forbes Avenue - * Pittsburgh, PA 15213-3890 - * (412) 268-4387, fax: (412) 268-7395 - * tech-transfer@andrew.cmu.edu - * - * 4. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Computing Services - * at Carnegie Mellon University (http://www.cmu.edu/computing/)." - * - * CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE - * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -/* - * @todo: - */ - -#if 0 /* UNUSED */ -#include -#include -#include -#endif /* UNUSED */ - -#include "netif/ppp/ppp_impl.h" - -#include "netif/ppp/fsm.h" -#include "netif/ppp/lcp.h" -#if CHAP_SUPPORT -#include "netif/ppp/chap-new.h" -#endif /* CHAP_SUPPORT */ -#include "netif/ppp/magic.h" - -/* - * When the link comes up we want to be able to wait for a short while, - * or until seeing some input from the peer, before starting to send - * configure-requests. We do this by delaying the fsm_lowerup call. - */ -/* steal a bit in fsm flags word */ -#define DELAYED_UP 0x80 - -static void lcp_delayed_up(void *arg); - -/* - * LCP-related command-line options. - */ -#if 0 /* UNUSED */ -int lcp_echo_interval = 0; /* Interval between LCP echo-requests */ -int lcp_echo_fails = 0; /* Tolerance to unanswered echo-requests */ -#endif /* UNUSED */ - -#if 0 /* UNUSED */ -/* options */ -static u_int lcp_echo_interval = LCP_ECHOINTERVAL; /* Interval between LCP echo-requests */ -static u_int lcp_echo_fails = LCP_MAXECHOFAILS; /* Tolerance to unanswered echo-requests */ -#endif /* UNUSED */ - -#if 0 /* UNUSED */ -#if PPP_LCP_ADAPTIVE -bool lcp_echo_adaptive = 0; /* request echo only if the link was idle */ -#endif -bool lax_recv = 0; /* accept control chars in asyncmap */ -bool noendpoint = 0; /* don't send/accept endpoint discriminator */ -#endif /* UNUSED */ - -#if PPP_OPTIONS -static int noopt (char **); -#endif /* PPP_OPTIONS */ - -#ifdef HAVE_MULTILINK -static int setendpoint (char **); -static void printendpoint (option_t *, void (*)(void *, char *, ...), - void *); -#endif /* HAVE_MULTILINK */ - -#if PPP_OPTIONS -static option_t lcp_option_list[] = { - /* LCP options */ - { "-all", o_special_noarg, (void *)noopt, - "Don't request/allow any LCP options" }, - - { "noaccomp", o_bool, &lcp_wantoptions[0].neg_accompression, - "Disable address/control compression", - OPT_A2CLR, &lcp_allowoptions[0].neg_accompression }, - { "-ac", o_bool, &lcp_wantoptions[0].neg_accompression, - "Disable address/control compression", - OPT_ALIAS | OPT_A2CLR, &lcp_allowoptions[0].neg_accompression }, - - { "asyncmap", o_uint32, &lcp_wantoptions[0].asyncmap, - "Set asyncmap (for received packets)", - OPT_OR, &lcp_wantoptions[0].neg_asyncmap }, - { "-as", o_uint32, &lcp_wantoptions[0].asyncmap, - "Set asyncmap (for received packets)", - OPT_ALIAS | OPT_OR, &lcp_wantoptions[0].neg_asyncmap }, - { "default-asyncmap", o_uint32, &lcp_wantoptions[0].asyncmap, - "Disable asyncmap negotiation", - OPT_OR | OPT_NOARG | OPT_VAL(~0U) | OPT_A2CLR, - &lcp_allowoptions[0].neg_asyncmap }, - { "-am", o_uint32, &lcp_wantoptions[0].asyncmap, - "Disable asyncmap negotiation", - OPT_ALIAS | OPT_OR | OPT_NOARG | OPT_VAL(~0U) | OPT_A2CLR, - &lcp_allowoptions[0].neg_asyncmap }, - - { "nomagic", o_bool, &lcp_wantoptions[0].neg_magicnumber, - "Disable magic number negotiation (looped-back line detection)", - OPT_A2CLR, &lcp_allowoptions[0].neg_magicnumber }, - { "-mn", o_bool, &lcp_wantoptions[0].neg_magicnumber, - "Disable magic number negotiation (looped-back line detection)", - OPT_ALIAS | OPT_A2CLR, &lcp_allowoptions[0].neg_magicnumber }, - - { "mru", o_int, &lcp_wantoptions[0].mru, - "Set MRU (maximum received packet size) for negotiation", - OPT_PRIO, &lcp_wantoptions[0].neg_mru }, - { "default-mru", o_bool, &lcp_wantoptions[0].neg_mru, - "Disable MRU negotiation (use default 1500)", - OPT_PRIOSUB | OPT_A2CLR, &lcp_allowoptions[0].neg_mru }, - { "-mru", o_bool, &lcp_wantoptions[0].neg_mru, - "Disable MRU negotiation (use default 1500)", - OPT_ALIAS | OPT_PRIOSUB | OPT_A2CLR, &lcp_allowoptions[0].neg_mru }, - - { "mtu", o_int, &lcp_allowoptions[0].mru, - "Set our MTU", OPT_LIMITS, NULL, MAXMRU, MINMRU }, - - { "nopcomp", o_bool, &lcp_wantoptions[0].neg_pcompression, - "Disable protocol field compression", - OPT_A2CLR, &lcp_allowoptions[0].neg_pcompression }, - { "-pc", o_bool, &lcp_wantoptions[0].neg_pcompression, - "Disable protocol field compression", - OPT_ALIAS | OPT_A2CLR, &lcp_allowoptions[0].neg_pcompression }, - - { "passive", o_bool, &lcp_wantoptions[0].passive, - "Set passive mode", 1 }, - { "-p", o_bool, &lcp_wantoptions[0].passive, - "Set passive mode", OPT_ALIAS | 1 }, - - { "silent", o_bool, &lcp_wantoptions[0].silent, - "Set silent mode", 1 }, - - { "lcp-echo-failure", o_int, &lcp_echo_fails, - "Set number of consecutive echo failures to indicate link failure", - OPT_PRIO }, - { "lcp-echo-interval", o_int, &lcp_echo_interval, - "Set time in seconds between LCP echo requests", OPT_PRIO }, -#if PPP_LCP_ADAPTIVE - { "lcp-echo-adaptive", o_bool, &lcp_echo_adaptive, - "Suppress LCP echo requests if traffic was received", 1 }, -#endif - { "lcp-restart", o_int, &lcp_fsm[0].timeouttime, - "Set time in seconds between LCP retransmissions", OPT_PRIO }, - { "lcp-max-terminate", o_int, &lcp_fsm[0].maxtermtransmits, - "Set maximum number of LCP terminate-request transmissions", OPT_PRIO }, - { "lcp-max-configure", o_int, &lcp_fsm[0].maxconfreqtransmits, - "Set maximum number of LCP configure-request transmissions", OPT_PRIO }, - { "lcp-max-failure", o_int, &lcp_fsm[0].maxnakloops, - "Set limit on number of LCP configure-naks", OPT_PRIO }, - - { "receive-all", o_bool, &lax_recv, - "Accept all received control characters", 1 }, - -#ifdef HAVE_MULTILINK - { "mrru", o_int, &lcp_wantoptions[0].mrru, - "Maximum received packet size for multilink bundle", - OPT_PRIO, &lcp_wantoptions[0].neg_mrru }, - - { "mpshortseq", o_bool, &lcp_wantoptions[0].neg_ssnhf, - "Use short sequence numbers in multilink headers", - OPT_PRIO | 1, &lcp_allowoptions[0].neg_ssnhf }, - { "nompshortseq", o_bool, &lcp_wantoptions[0].neg_ssnhf, - "Don't use short sequence numbers in multilink headers", - OPT_PRIOSUB | OPT_A2CLR, &lcp_allowoptions[0].neg_ssnhf }, - - { "endpoint", o_special, (void *) setendpoint, - "Endpoint discriminator for multilink", - OPT_PRIO | OPT_A2PRINTER, (void *) printendpoint }, -#endif /* HAVE_MULTILINK */ - - { "noendpoint", o_bool, &noendpoint, - "Don't send or accept multilink endpoint discriminator", 1 }, - - {NULL} -}; -#endif /* PPP_OPTIONS */ - -/* - * Callbacks for fsm code. (CI = Configuration Information) - */ -static void lcp_resetci(fsm *f); /* Reset our CI */ -static int lcp_cilen(fsm *f); /* Return length of our CI */ -static void lcp_addci(fsm *f, u_char *ucp, int *lenp); /* Add our CI to pkt */ -static int lcp_ackci(fsm *f, u_char *p, int len); /* Peer ack'd our CI */ -static int lcp_nakci(fsm *f, u_char *p, int len, int treat_as_reject); /* Peer nak'd our CI */ -static int lcp_rejci(fsm *f, u_char *p, int len); /* Peer rej'd our CI */ -static int lcp_reqci(fsm *f, u_char *inp, int *lenp, int reject_if_disagree); /* Rcv peer CI */ -static void lcp_up(fsm *f); /* We're UP */ -static void lcp_down(fsm *f); /* We're DOWN */ -static void lcp_starting (fsm *); /* We need lower layer up */ -static void lcp_finished (fsm *); /* We need lower layer down */ -static int lcp_extcode(fsm *f, int code, int id, u_char *inp, int len); -static void lcp_rprotrej(fsm *f, u_char *inp, int len); - -/* - * routines to send LCP echos to peer - */ - -static void lcp_echo_lowerup(ppp_pcb *pcb); -static void lcp_echo_lowerdown(ppp_pcb *pcb); -static void LcpEchoTimeout(void *arg); -static void lcp_received_echo_reply(fsm *f, int id, u_char *inp, int len); -static void LcpSendEchoRequest(fsm *f); -static void LcpLinkFailure(fsm *f); -static void LcpEchoCheck(fsm *f); - -static const fsm_callbacks lcp_callbacks = { /* LCP callback routines */ - lcp_resetci, /* Reset our Configuration Information */ - lcp_cilen, /* Length of our Configuration Information */ - lcp_addci, /* Add our Configuration Information */ - lcp_ackci, /* ACK our Configuration Information */ - lcp_nakci, /* NAK our Configuration Information */ - lcp_rejci, /* Reject our Configuration Information */ - lcp_reqci, /* Request peer's Configuration Information */ - lcp_up, /* Called when fsm reaches OPENED state */ - lcp_down, /* Called when fsm leaves OPENED state */ - lcp_starting, /* Called when we want the lower layer up */ - lcp_finished, /* Called when we want the lower layer down */ - NULL, /* Called when Protocol-Reject received */ - NULL, /* Retransmission is necessary */ - lcp_extcode, /* Called to handle LCP-specific codes */ - "LCP" /* String name of protocol */ -}; - -/* - * Protocol entry points. - * Some of these are called directly. - */ - -static void lcp_init(ppp_pcb *pcb); -static void lcp_input(ppp_pcb *pcb, u_char *p, int len); -static void lcp_protrej(ppp_pcb *pcb); -#if PRINTPKT_SUPPORT -static int lcp_printpkt(const u_char *p, int plen, - void (*printer) (void *, const char *, ...), void *arg); -#endif /* PRINTPKT_SUPPORT */ - -const struct protent lcp_protent = { - PPP_LCP, - lcp_init, - lcp_input, - lcp_protrej, - lcp_lowerup, - lcp_lowerdown, - lcp_open, - lcp_close, -#if PRINTPKT_SUPPORT - lcp_printpkt, -#endif /* PRINTPKT_SUPPORT */ -#if PPP_DATAINPUT - NULL, -#endif /* PPP_DATAINPUT */ -#if PRINTPKT_SUPPORT - "LCP", - NULL, -#endif /* PRINTPKT_SUPPORT */ -#if PPP_OPTIONS - lcp_option_list, - NULL, -#endif /* PPP_OPTIONS */ -#if DEMAND_SUPPORT - NULL, - NULL -#endif /* DEMAND_SUPPORT */ -}; - -/* - * Length of each type of configuration option (in octets) - */ -#define CILEN_VOID 2 -#define CILEN_CHAR 3 -#define CILEN_SHORT 4 /* CILEN_VOID + 2 */ -#if CHAP_SUPPORT -#define CILEN_CHAP 5 /* CILEN_VOID + 2 + 1 */ -#endif /* CHAP_SUPPORT */ -#define CILEN_LONG 6 /* CILEN_VOID + 4 */ -#if LQR_SUPPORT -#define CILEN_LQR 8 /* CILEN_VOID + 2 + 4 */ -#endif /* LQR_SUPPORT */ -#define CILEN_CBCP 3 - -#define CODENAME(x) ((x) == CONFACK ? "ACK" : \ - (x) == CONFNAK ? "NAK" : "REJ") - -#if PPP_OPTIONS -/* - * noopt - Disable all options (why?). - */ -static int -noopt(argv) - char **argv; -{ - BZERO((char *) &lcp_wantoptions[0], sizeof (struct lcp_options)); - BZERO((char *) &lcp_allowoptions[0], sizeof (struct lcp_options)); - - return (1); -} -#endif /* PPP_OPTIONS */ - -#ifdef HAVE_MULTILINK -static int -setendpoint(argv) - char **argv; -{ - if (str_to_epdisc(&lcp_wantoptions[0].endpoint, *argv)) { - lcp_wantoptions[0].neg_endpoint = 1; - return 1; - } - option_error("Can't parse '%s' as an endpoint discriminator", *argv); - return 0; -} - -static void -printendpoint(opt, printer, arg) - option_t *opt; - void (*printer) (void *, char *, ...); - void *arg; -{ - printer(arg, "%s", epdisc_to_str(&lcp_wantoptions[0].endpoint)); -} -#endif /* HAVE_MULTILINK */ - -/* - * lcp_init - Initialize LCP. - */ -static void lcp_init(ppp_pcb *pcb) { - fsm *f = &pcb->lcp_fsm; - lcp_options *wo = &pcb->lcp_wantoptions; - lcp_options *ao = &pcb->lcp_allowoptions; - - f->pcb = pcb; - f->protocol = PPP_LCP; - f->callbacks = &lcp_callbacks; - - fsm_init(f); - - BZERO(wo, sizeof(*wo)); - wo->neg_mru = 1; - wo->mru = PPP_DEFMRU; - wo->neg_asyncmap = 1; - wo->neg_magicnumber = 1; - wo->neg_pcompression = 1; - wo->neg_accompression = 1; - - BZERO(ao, sizeof(*ao)); - ao->neg_mru = 1; - ao->mru = PPP_MAXMRU; - ao->neg_asyncmap = 1; -#if CHAP_SUPPORT - ao->neg_chap = 1; - ao->chap_mdtype = CHAP_MDTYPE_SUPPORTED; -#endif /* CHAP_SUPPORT */ -#if PAP_SUPPORT - ao->neg_upap = 1; -#endif /* PAP_SUPPORT */ -#if EAP_SUPPORT - ao->neg_eap = 1; -#endif /* EAP_SUPPORT */ - ao->neg_magicnumber = 1; - ao->neg_pcompression = 1; - ao->neg_accompression = 1; - ao->neg_endpoint = 1; -} - - -/* - * lcp_open - LCP is allowed to come up. - */ -void lcp_open(ppp_pcb *pcb) { - fsm *f = &pcb->lcp_fsm; - lcp_options *wo = &pcb->lcp_wantoptions; - - f->flags &= ~(OPT_PASSIVE | OPT_SILENT); - if (wo->passive) - f->flags |= OPT_PASSIVE; - if (wo->silent) - f->flags |= OPT_SILENT; - fsm_open(f); -} - - -/* - * lcp_close - Take LCP down. - */ -void lcp_close(ppp_pcb *pcb, const char *reason) { - fsm *f = &pcb->lcp_fsm; - int oldstate; - - if (pcb->phase != PPP_PHASE_DEAD -#ifdef HAVE_MULTILINK - && pcb->phase != PPP_PHASE_MASTER -#endif /* HAVE_MULTILINK */ - ) - new_phase(pcb, PPP_PHASE_TERMINATE); - - if (f->flags & DELAYED_UP) { - UNTIMEOUT(lcp_delayed_up, f); - f->state = PPP_FSM_STOPPED; - } - oldstate = f->state; - - fsm_close(f, reason); - if (oldstate == PPP_FSM_STOPPED && (f->flags & (OPT_PASSIVE|OPT_SILENT|DELAYED_UP))) { - /* - * This action is not strictly according to the FSM in RFC1548, - * but it does mean that the program terminates if you do a - * lcp_close() when a connection hasn't been established - * because we are in passive/silent mode or because we have - * delayed the fsm_lowerup() call and it hasn't happened yet. - */ - f->flags &= ~DELAYED_UP; - lcp_finished(f); - } -} - - -/* - * lcp_lowerup - The lower layer is up. - */ -void lcp_lowerup(ppp_pcb *pcb) { - lcp_options *wo = &pcb->lcp_wantoptions; - fsm *f = &pcb->lcp_fsm; - /* - * Don't use A/C or protocol compression on transmission, - * but accept A/C and protocol compressed packets - * if we are going to ask for A/C and protocol compression. - */ - if (ppp_send_config(pcb, PPP_MRU, 0xffffffff, 0, 0) < 0 - || ppp_recv_config(pcb, PPP_MRU, (pcb->settings.lax_recv? 0: 0xffffffff), - wo->neg_pcompression, wo->neg_accompression) < 0) - return; - pcb->peer_mru = PPP_MRU; - - if (pcb->settings.listen_time != 0) { - f->flags |= DELAYED_UP; - TIMEOUTMS(lcp_delayed_up, f, pcb->settings.listen_time); - } else - fsm_lowerup(f); -} - - -/* - * lcp_lowerdown - The lower layer is down. - */ -void lcp_lowerdown(ppp_pcb *pcb) { - fsm *f = &pcb->lcp_fsm; - - if (f->flags & DELAYED_UP) { - f->flags &= ~DELAYED_UP; - UNTIMEOUT(lcp_delayed_up, f); - } else - fsm_lowerdown(f); -} - - -/* - * lcp_delayed_up - Bring the lower layer up now. - */ -static void lcp_delayed_up(void *arg) { - fsm *f = (fsm*)arg; - - if (f->flags & DELAYED_UP) { - f->flags &= ~DELAYED_UP; - fsm_lowerup(f); - } -} - - -/* - * lcp_input - Input LCP packet. - */ -static void lcp_input(ppp_pcb *pcb, u_char *p, int len) { - fsm *f = &pcb->lcp_fsm; - - if (f->flags & DELAYED_UP) { - f->flags &= ~DELAYED_UP; - UNTIMEOUT(lcp_delayed_up, f); - fsm_lowerup(f); - } - fsm_input(f, p, len); -} - -/* - * lcp_extcode - Handle a LCP-specific code. - */ -static int lcp_extcode(fsm *f, int code, int id, u_char *inp, int len) { - ppp_pcb *pcb = f->pcb; - lcp_options *go = &pcb->lcp_gotoptions; - u_char *magp; - - switch( code ){ - case PROTREJ: - lcp_rprotrej(f, inp, len); - break; - - case ECHOREQ: - if (f->state != PPP_FSM_OPENED) - break; - magp = inp; - PUTLONG(go->magicnumber, magp); - fsm_sdata(f, ECHOREP, id, inp, len); - break; - - case ECHOREP: - lcp_received_echo_reply(f, id, inp, len); - break; - - case DISCREQ: - case IDENTIF: - case TIMEREM: - break; - - default: - return 0; - } - return 1; -} - - -/* - * lcp_rprotrej - Receive an Protocol-Reject. - * - * Figure out which protocol is rejected and inform it. - */ -static void lcp_rprotrej(fsm *f, u_char *inp, int len) { - int i; - const struct protent *protp; - u_short prot; -#if PPP_PROTOCOLNAME - const char *pname; -#endif /* PPP_PROTOCOLNAME */ - - if (len < 2) { - LCPDEBUG(("lcp_rprotrej: Rcvd short Protocol-Reject packet!")); - return; - } - - GETSHORT(prot, inp); - - /* - * Protocol-Reject packets received in any state other than the LCP - * OPENED state SHOULD be silently discarded. - */ - if( f->state != PPP_FSM_OPENED ){ - LCPDEBUG(("Protocol-Reject discarded: LCP in state %d", f->state)); - return; - } - -#if PPP_PROTOCOLNAME - pname = protocol_name(prot); -#endif /* PPP_PROTOCOLNAME */ - - /* - * Upcall the proper Protocol-Reject routine. - */ - for (i = 0; (protp = protocols[i]) != NULL; ++i) - if (protp->protocol == prot) { -#if PPP_PROTOCOLNAME - if (pname != NULL) - ppp_dbglog("Protocol-Reject for '%s' (0x%x) received", pname, - prot); - else -#endif /* PPP_PROTOCOLNAME */ - ppp_dbglog("Protocol-Reject for 0x%x received", prot); - (*protp->protrej)(f->pcb); - return; - } - -#if PPP_PROTOCOLNAME - if (pname != NULL) - ppp_warn("Protocol-Reject for unsupported protocol '%s' (0x%x)", pname, - prot); - else -#endif /* #if PPP_PROTOCOLNAME */ - ppp_warn("Protocol-Reject for unsupported protocol 0x%x", prot); -} - - -/* - * lcp_protrej - A Protocol-Reject was received. - */ -/*ARGSUSED*/ -static void lcp_protrej(ppp_pcb *pcb) { - /* - * Can't reject LCP! - */ - ppp_error("Received Protocol-Reject for LCP!"); - fsm_protreject(&pcb->lcp_fsm); -} - - -/* - * lcp_sprotrej - Send a Protocol-Reject for some protocol. - */ -void lcp_sprotrej(ppp_pcb *pcb, u_char *p, int len) { - fsm *f = &pcb->lcp_fsm; - /* - * Send back the protocol and the information field of the - * rejected packet. We only get here if LCP is in the OPENED state. - */ -#if 0 - p += 2; - len -= 2; -#endif - - fsm_sdata(f, PROTREJ, ++f->id, - p, len); -} - - -/* - * lcp_resetci - Reset our CI. - */ -static void lcp_resetci(fsm *f) { - ppp_pcb *pcb = f->pcb; - lcp_options *wo = &pcb->lcp_wantoptions; - lcp_options *go = &pcb->lcp_gotoptions; - lcp_options *ao = &pcb->lcp_allowoptions; - -#if PPP_AUTH_SUPPORT - - /* note: default value is true for allow options */ - if (pcb->settings.user && pcb->settings.passwd) { -#if PAP_SUPPORT - if (pcb->settings.refuse_pap) { - ao->neg_upap = 0; - } -#endif /* PAP_SUPPORT */ -#if CHAP_SUPPORT - if (pcb->settings.refuse_chap) { - ao->chap_mdtype &= ~MDTYPE_MD5; - } -#if MSCHAP_SUPPORT - if (pcb->settings.refuse_mschap) { - ao->chap_mdtype &= ~MDTYPE_MICROSOFT; - } - if (pcb->settings.refuse_mschap_v2) { - ao->chap_mdtype &= ~MDTYPE_MICROSOFT_V2; - } -#endif /* MSCHAP_SUPPORT */ - ao->neg_chap = (ao->chap_mdtype != MDTYPE_NONE); -#endif /* CHAP_SUPPORT */ -#if EAP_SUPPORT - if (pcb->settings.refuse_eap) { - ao->neg_eap = 0; - } -#endif /* EAP_SUPPORT */ - -#if PPP_SERVER - /* note: default value is false for wanted options */ - if (pcb->settings.auth_required) { -#if PAP_SUPPORT - if (!pcb->settings.refuse_pap) { - wo->neg_upap = 1; - } -#endif /* PAP_SUPPORT */ -#if CHAP_SUPPORT - if (!pcb->settings.refuse_chap) { - wo->chap_mdtype |= MDTYPE_MD5; - } -#if MSCHAP_SUPPORT - if (!pcb->settings.refuse_mschap) { - wo->chap_mdtype |= MDTYPE_MICROSOFT; - } - if (!pcb->settings.refuse_mschap_v2) { - wo->chap_mdtype |= MDTYPE_MICROSOFT_V2; - } -#endif /* MSCHAP_SUPPORT */ - wo->neg_chap = (wo->chap_mdtype != MDTYPE_NONE); -#endif /* CHAP_SUPPORT */ -#if EAP_SUPPORT - if (!pcb->settings.refuse_eap) { - wo->neg_eap = 1; - } -#endif /* EAP_SUPPORT */ - } -#endif /* PPP_SERVER */ - - } else { -#if PAP_SUPPORT - ao->neg_upap = 0; -#endif /* PAP_SUPPORT */ -#if CHAP_SUPPORT - ao->neg_chap = 0; - ao->chap_mdtype = MDTYPE_NONE; -#endif /* CHAP_SUPPORT */ -#if EAP_SUPPORT - ao->neg_eap = 0; -#endif /* EAP_SUPPORT */ - } - - PPPDEBUG(LOG_DEBUG, ("ppp: auth protocols:")); -#if PAP_SUPPORT - PPPDEBUG(LOG_DEBUG, (" PAP=%d", ao->neg_upap)); -#endif /* PAP_SUPPORT */ -#if CHAP_SUPPORT - PPPDEBUG(LOG_DEBUG, (" CHAP=%d CHAP_MD5=%d", ao->neg_chap, !!(ao->chap_mdtype&MDTYPE_MD5))); -#if MSCHAP_SUPPORT - PPPDEBUG(LOG_DEBUG, (" CHAP_MS=%d CHAP_MS2=%d", !!(ao->chap_mdtype&MDTYPE_MICROSOFT), !!(ao->chap_mdtype&MDTYPE_MICROSOFT_V2))); -#endif /* MSCHAP_SUPPORT */ -#endif /* CHAP_SUPPORT */ -#if EAP_SUPPORT - PPPDEBUG(LOG_DEBUG, (" EAP=%d", ao->neg_eap)); -#endif /* EAP_SUPPORT */ - PPPDEBUG(LOG_DEBUG, ("\n")); - -#endif /* PPP_AUTH_SUPPORT */ - - wo->magicnumber = magic(); - wo->numloops = 0; - *go = *wo; -#ifdef HAVE_MULTILINK - if (!multilink) { - go->neg_mrru = 0; -#endif /* HAVE_MULTILINK */ - go->neg_ssnhf = 0; - go->neg_endpoint = 0; -#ifdef HAVE_MULTILINK - } -#endif /* HAVE_MULTILINK */ - if (pcb->settings.noendpoint) - ao->neg_endpoint = 0; - pcb->peer_mru = PPP_MRU; -#if 0 /* UNUSED */ - auth_reset(pcb); -#endif /* UNUSED */ -} - - -/* - * lcp_cilen - Return length of our CI. - */ -static int lcp_cilen(fsm *f) { - ppp_pcb *pcb = f->pcb; - lcp_options *go = &pcb->lcp_gotoptions; - -#define LENCIVOID(neg) ((neg) ? CILEN_VOID : 0) -#if CHAP_SUPPORT -#define LENCICHAP(neg) ((neg) ? CILEN_CHAP : 0) -#endif /* CHAP_SUPPORT */ -#define LENCISHORT(neg) ((neg) ? CILEN_SHORT : 0) -#define LENCILONG(neg) ((neg) ? CILEN_LONG : 0) -#if LQR_SUPPORT -#define LENCILQR(neg) ((neg) ? CILEN_LQR: 0) -#endif /* LQR_SUPPORT */ -#define LENCICBCP(neg) ((neg) ? CILEN_CBCP: 0) - /* - * NB: we only ask for one of CHAP, UPAP, or EAP, even if we will - * accept more than one. We prefer EAP first, then CHAP, then - * PAP. - */ - return (LENCISHORT(go->neg_mru && go->mru != PPP_DEFMRU) + - LENCILONG(go->neg_asyncmap && go->asyncmap != 0xFFFFFFFF) + -#if EAP_SUPPORT - LENCISHORT(go->neg_eap) + -#endif /* EAP_SUPPORT */ -#if CHAP_SUPPORT /* cannot be improved, embedding a directive within macro arguments is not portable */ -#if EAP_SUPPORT - LENCICHAP(!go->neg_eap && go->neg_chap) + -#endif /* EAP_SUPPORT */ -#if !EAP_SUPPORT - LENCICHAP(go->neg_chap) + -#endif /* !EAP_SUPPORT */ -#endif /* CHAP_SUPPORT */ -#if PAP_SUPPORT /* cannot be improved, embedding a directive within macro arguments is not portable */ -#if EAP_SUPPORT && CHAP_SUPPORT - LENCISHORT(!go->neg_eap && !go->neg_chap && go->neg_upap) + -#endif /* EAP_SUPPORT && CHAP_SUPPORT */ -#if EAP_SUPPORT && !CHAP_SUPPORT - LENCISHORT(!go->neg_eap && go->neg_upap) + -#endif /* EAP_SUPPORT && !CHAP_SUPPORT */ -#if !EAP_SUPPORT && CHAP_SUPPORT - LENCISHORT(!go->neg_chap && go->neg_upap) + -#endif /* !EAP_SUPPORT && CHAP_SUPPORT */ -#if !EAP_SUPPORT && !CHAP_SUPPORT - LENCISHORT(go->neg_upap) + -#endif /* !EAP_SUPPORT && !CHAP_SUPPORT */ -#endif /* PAP_SUPPORT */ -#if LQR_SUPPORT - LENCILQR(go->neg_lqr) + -#endif /* LQR_SUPPORT */ - LENCICBCP(go->neg_cbcp) + - LENCILONG(go->neg_magicnumber) + - LENCIVOID(go->neg_pcompression) + - LENCIVOID(go->neg_accompression) + -#ifdef HAVE_MULTILINK - LENCISHORT(go->neg_mrru) + -#endif /* HAVE_MULTILINK */ - LENCIVOID(go->neg_ssnhf) + - (go->neg_endpoint? CILEN_CHAR + go->endpoint.length: 0)); -} - - -/* - * lcp_addci - Add our desired CIs to a packet. - */ -static void lcp_addci(fsm *f, u_char *ucp, int *lenp) { - ppp_pcb *pcb = f->pcb; - lcp_options *go = &pcb->lcp_gotoptions; - u_char *start_ucp = ucp; - -#define ADDCIVOID(opt, neg) \ - if (neg) { \ - PUTCHAR(opt, ucp); \ - PUTCHAR(CILEN_VOID, ucp); \ - } -#define ADDCISHORT(opt, neg, val) \ - if (neg) { \ - PUTCHAR(opt, ucp); \ - PUTCHAR(CILEN_SHORT, ucp); \ - PUTSHORT(val, ucp); \ - } -#if CHAP_SUPPORT -#define ADDCICHAP(opt, neg, val) \ - if (neg) { \ - PUTCHAR((opt), ucp); \ - PUTCHAR(CILEN_CHAP, ucp); \ - PUTSHORT(PPP_CHAP, ucp); \ - PUTCHAR((CHAP_DIGEST(val)), ucp); \ - } -#endif /* CHAP_SUPPORT */ -#define ADDCILONG(opt, neg, val) \ - if (neg) { \ - PUTCHAR(opt, ucp); \ - PUTCHAR(CILEN_LONG, ucp); \ - PUTLONG(val, ucp); \ - } -#if LQR_SUPPORT -#define ADDCILQR(opt, neg, val) \ - if (neg) { \ - PUTCHAR(opt, ucp); \ - PUTCHAR(CILEN_LQR, ucp); \ - PUTSHORT(PPP_LQR, ucp); \ - PUTLONG(val, ucp); \ - } -#endif /* LQR_SUPPORT */ -#define ADDCICHAR(opt, neg, val) \ - if (neg) { \ - PUTCHAR(opt, ucp); \ - PUTCHAR(CILEN_CHAR, ucp); \ - PUTCHAR(val, ucp); \ - } -#define ADDCIENDP(opt, neg, class, val, len) \ - if (neg) { \ - int i; \ - PUTCHAR(opt, ucp); \ - PUTCHAR(CILEN_CHAR + len, ucp); \ - PUTCHAR(class, ucp); \ - for (i = 0; i < len; ++i) \ - PUTCHAR(val[i], ucp); \ - } - - ADDCISHORT(CI_MRU, go->neg_mru && go->mru != PPP_DEFMRU, go->mru); - ADDCILONG(CI_ASYNCMAP, go->neg_asyncmap && go->asyncmap != 0xFFFFFFFF, - go->asyncmap); -#if EAP_SUPPORT - ADDCISHORT(CI_AUTHTYPE, go->neg_eap, PPP_EAP); -#endif /* EAP_SUPPORT */ -#if CHAP_SUPPORT /* cannot be improved, embedding a directive within macro arguments is not portable */ -#if EAP_SUPPORT - ADDCICHAP(CI_AUTHTYPE, !go->neg_eap && go->neg_chap, go->chap_mdtype); -#endif /* EAP_SUPPORT */ -#if !EAP_SUPPORT - ADDCICHAP(CI_AUTHTYPE, go->neg_chap, go->chap_mdtype); -#endif /* !EAP_SUPPORT */ -#endif /* CHAP_SUPPORT */ -#if PAP_SUPPORT /* cannot be improved, embedding a directive within macro arguments is not portable */ -#if EAP_SUPPORT && CHAP_SUPPORT - ADDCISHORT(CI_AUTHTYPE, !go->neg_eap && !go->neg_chap && go->neg_upap, PPP_PAP); -#endif /* EAP_SUPPORT && CHAP_SUPPORT */ -#if EAP_SUPPORT && !CHAP_SUPPORT - ADDCISHORT(CI_AUTHTYPE, !go->neg_eap && go->neg_upap, PPP_PAP); -#endif /* EAP_SUPPORT && !CHAP_SUPPORT */ -#if !EAP_SUPPORT && CHAP_SUPPORT - ADDCISHORT(CI_AUTHTYPE, !go->neg_chap && go->neg_upap, PPP_PAP); -#endif /* !EAP_SUPPORT && CHAP_SUPPORT */ -#if !EAP_SUPPORT && !CHAP_SUPPORT - ADDCISHORT(CI_AUTHTYPE, go->neg_upap, PPP_PAP); -#endif /* !EAP_SUPPORT && !CHAP_SUPPORT */ -#endif /* PAP_SUPPORT */ -#if LQR_SUPPORT - ADDCILQR(CI_QUALITY, go->neg_lqr, go->lqr_period); -#endif /* LQR_SUPPORT */ - ADDCICHAR(CI_CALLBACK, go->neg_cbcp, CBCP_OPT); - ADDCILONG(CI_MAGICNUMBER, go->neg_magicnumber, go->magicnumber); - ADDCIVOID(CI_PCOMPRESSION, go->neg_pcompression); - ADDCIVOID(CI_ACCOMPRESSION, go->neg_accompression); -#ifdef HAVE_MULTILINK - ADDCISHORT(CI_MRRU, go->neg_mrru, go->mrru); -#endif - ADDCIVOID(CI_SSNHF, go->neg_ssnhf); - ADDCIENDP(CI_EPDISC, go->neg_endpoint, go->endpoint.class_, - go->endpoint.value, go->endpoint.length); - - if (ucp - start_ucp != *lenp) { - /* this should never happen, because peer_mtu should be 1500 */ - ppp_error("Bug in lcp_addci: wrong length"); - } -} - - -/* - * lcp_ackci - Ack our CIs. - * This should not modify any state if the Ack is bad. - * - * Returns: - * 0 - Ack was bad. - * 1 - Ack was good. - */ -static int lcp_ackci(fsm *f, u_char *p, int len) { - ppp_pcb *pcb = f->pcb; - lcp_options *go = &pcb->lcp_gotoptions; - u_char cilen, citype, cichar; - u_short cishort; - u32_t cilong; - - /* - * CIs must be in exactly the same order that we sent. - * Check packet length and CI length at each step. - * If we find any deviations, then this packet is bad. - */ -#define ACKCIVOID(opt, neg) \ - if (neg) { \ - if ((len -= CILEN_VOID) < 0) \ - goto bad; \ - GETCHAR(citype, p); \ - GETCHAR(cilen, p); \ - if (cilen != CILEN_VOID || \ - citype != opt) \ - goto bad; \ - } -#define ACKCISHORT(opt, neg, val) \ - if (neg) { \ - if ((len -= CILEN_SHORT) < 0) \ - goto bad; \ - GETCHAR(citype, p); \ - GETCHAR(cilen, p); \ - if (cilen != CILEN_SHORT || \ - citype != opt) \ - goto bad; \ - GETSHORT(cishort, p); \ - if (cishort != val) \ - goto bad; \ - } -#define ACKCICHAR(opt, neg, val) \ - if (neg) { \ - if ((len -= CILEN_CHAR) < 0) \ - goto bad; \ - GETCHAR(citype, p); \ - GETCHAR(cilen, p); \ - if (cilen != CILEN_CHAR || \ - citype != opt) \ - goto bad; \ - GETCHAR(cichar, p); \ - if (cichar != val) \ - goto bad; \ - } -#if CHAP_SUPPORT -#define ACKCICHAP(opt, neg, val) \ - if (neg) { \ - if ((len -= CILEN_CHAP) < 0) \ - goto bad; \ - GETCHAR(citype, p); \ - GETCHAR(cilen, p); \ - if (cilen != CILEN_CHAP || \ - citype != (opt)) \ - goto bad; \ - GETSHORT(cishort, p); \ - if (cishort != PPP_CHAP) \ - goto bad; \ - GETCHAR(cichar, p); \ - if (cichar != (CHAP_DIGEST(val))) \ - goto bad; \ - } -#endif /* CHAP_SUPPORT */ -#define ACKCILONG(opt, neg, val) \ - if (neg) { \ - if ((len -= CILEN_LONG) < 0) \ - goto bad; \ - GETCHAR(citype, p); \ - GETCHAR(cilen, p); \ - if (cilen != CILEN_LONG || \ - citype != opt) \ - goto bad; \ - GETLONG(cilong, p); \ - if (cilong != val) \ - goto bad; \ - } -#if LQR_SUPPORT -#define ACKCILQR(opt, neg, val) \ - if (neg) { \ - if ((len -= CILEN_LQR) < 0) \ - goto bad; \ - GETCHAR(citype, p); \ - GETCHAR(cilen, p); \ - if (cilen != CILEN_LQR || \ - citype != opt) \ - goto bad; \ - GETSHORT(cishort, p); \ - if (cishort != PPP_LQR) \ - goto bad; \ - GETLONG(cilong, p); \ - if (cilong != val) \ - goto bad; \ - } -#endif /* LQR_SUPPORT */ -#define ACKCIENDP(opt, neg, class, val, vlen) \ - if (neg) { \ - int i; \ - if ((len -= CILEN_CHAR + vlen) < 0) \ - goto bad; \ - GETCHAR(citype, p); \ - GETCHAR(cilen, p); \ - if (cilen != CILEN_CHAR + vlen || \ - citype != opt) \ - goto bad; \ - GETCHAR(cichar, p); \ - if (cichar != class) \ - goto bad; \ - for (i = 0; i < vlen; ++i) { \ - GETCHAR(cichar, p); \ - if (cichar != val[i]) \ - goto bad; \ - } \ - } - - ACKCISHORT(CI_MRU, go->neg_mru && go->mru != PPP_DEFMRU, go->mru); - ACKCILONG(CI_ASYNCMAP, go->neg_asyncmap && go->asyncmap != 0xFFFFFFFF, - go->asyncmap); -#if EAP_SUPPORT - ACKCISHORT(CI_AUTHTYPE, go->neg_eap, PPP_EAP); -#endif /* EAP_SUPPORT */ -#if CHAP_SUPPORT /* cannot be improved, embedding a directive within macro arguments is not portable */ -#if EAP_SUPPORT - ACKCICHAP(CI_AUTHTYPE, !go->neg_eap && go->neg_chap, go->chap_mdtype); -#endif /* EAP_SUPPORT */ -#if !EAP_SUPPORT - ACKCICHAP(CI_AUTHTYPE, go->neg_chap, go->chap_mdtype); -#endif /* !EAP_SUPPORT */ -#endif /* CHAP_SUPPORT */ -#if PAP_SUPPORT /* cannot be improved, embedding a directive within macro arguments is not portable */ -#if EAP_SUPPORT && CHAP_SUPPORT - ACKCISHORT(CI_AUTHTYPE, !go->neg_eap && !go->neg_chap && go->neg_upap, PPP_PAP); -#endif /* EAP_SUPPORT && CHAP_SUPPORT */ -#if EAP_SUPPORT && !CHAP_SUPPORT - ACKCISHORT(CI_AUTHTYPE, !go->neg_eap && go->neg_upap, PPP_PAP); -#endif /* EAP_SUPPORT && !CHAP_SUPPORT */ -#if !EAP_SUPPORT && CHAP_SUPPORT - ACKCISHORT(CI_AUTHTYPE, !go->neg_chap && go->neg_upap, PPP_PAP); -#endif /* !EAP_SUPPORT && CHAP_SUPPORT */ -#if !EAP_SUPPORT && !CHAP_SUPPORT - ACKCISHORT(CI_AUTHTYPE, go->neg_upap, PPP_PAP); -#endif /* !EAP_SUPPORT && !CHAP_SUPPORT */ -#endif /* PAP_SUPPORT */ -#if LQR_SUPPORT - ACKCILQR(CI_QUALITY, go->neg_lqr, go->lqr_period); -#endif /* LQR_SUPPORT */ - ACKCICHAR(CI_CALLBACK, go->neg_cbcp, CBCP_OPT); - ACKCILONG(CI_MAGICNUMBER, go->neg_magicnumber, go->magicnumber); - ACKCIVOID(CI_PCOMPRESSION, go->neg_pcompression); - ACKCIVOID(CI_ACCOMPRESSION, go->neg_accompression); -#ifdef HAVE_MULTILINK - ACKCISHORT(CI_MRRU, go->neg_mrru, go->mrru); -#endif /* HAVE_MULTILINK */ - ACKCIVOID(CI_SSNHF, go->neg_ssnhf); - ACKCIENDP(CI_EPDISC, go->neg_endpoint, go->endpoint.class_, - go->endpoint.value, go->endpoint.length); - - /* - * If there are any remaining CIs, then this packet is bad. - */ - if (len != 0) - goto bad; - return (1); -bad: - LCPDEBUG(("lcp_acki: received bad Ack!")); - return (0); -} - - -/* - * lcp_nakci - Peer has sent a NAK for some of our CIs. - * This should not modify any state if the Nak is bad - * or if LCP is in the OPENED state. - * - * Returns: - * 0 - Nak was bad. - * 1 - Nak was good. - */ -static int lcp_nakci(fsm *f, u_char *p, int len, int treat_as_reject) { - ppp_pcb *pcb = f->pcb; - lcp_options *go = &pcb->lcp_gotoptions; - lcp_options *wo = &pcb->lcp_wantoptions; - u_char citype, cichar, *next; - u_short cishort; - u32_t cilong; - lcp_options no; /* options we've seen Naks for */ - lcp_options try_; /* options to request next time */ - int looped_back = 0; - int cilen; - - BZERO(&no, sizeof(no)); - try_ = *go; - - /* - * Any Nak'd CIs must be in exactly the same order that we sent. - * Check packet length and CI length at each step. - * If we find any deviations, then this packet is bad. - */ -#define NAKCIVOID(opt, neg) \ - if (go->neg && \ - len >= CILEN_VOID && \ - p[1] == CILEN_VOID && \ - p[0] == opt) { \ - len -= CILEN_VOID; \ - INCPTR(CILEN_VOID, p); \ - no.neg = 1; \ - try_.neg = 0; \ - } -#if CHAP_SUPPORT -#define NAKCICHAP(opt, neg, code) \ - if (go->neg && \ - len >= CILEN_CHAP && \ - p[1] == CILEN_CHAP && \ - p[0] == opt) { \ - len -= CILEN_CHAP; \ - INCPTR(2, p); \ - GETSHORT(cishort, p); \ - GETCHAR(cichar, p); \ - no.neg = 1; \ - code \ - } -#endif /* CHAP_SUPPORT */ -#define NAKCICHAR(opt, neg, code) \ - if (go->neg && \ - len >= CILEN_CHAR && \ - p[1] == CILEN_CHAR && \ - p[0] == opt) { \ - len -= CILEN_CHAR; \ - INCPTR(2, p); \ - GETCHAR(cichar, p); \ - no.neg = 1; \ - code \ - } -#define NAKCISHORT(opt, neg, code) \ - if (go->neg && \ - len >= CILEN_SHORT && \ - p[1] == CILEN_SHORT && \ - p[0] == opt) { \ - len -= CILEN_SHORT; \ - INCPTR(2, p); \ - GETSHORT(cishort, p); \ - no.neg = 1; \ - code \ - } -#define NAKCILONG(opt, neg, code) \ - if (go->neg && \ - len >= CILEN_LONG && \ - p[1] == CILEN_LONG && \ - p[0] == opt) { \ - len -= CILEN_LONG; \ - INCPTR(2, p); \ - GETLONG(cilong, p); \ - no.neg = 1; \ - code \ - } -#if LQR_SUPPORT -#define NAKCILQR(opt, neg, code) \ - if (go->neg && \ - len >= CILEN_LQR && \ - p[1] == CILEN_LQR && \ - p[0] == opt) { \ - len -= CILEN_LQR; \ - INCPTR(2, p); \ - GETSHORT(cishort, p); \ - GETLONG(cilong, p); \ - no.neg = 1; \ - code \ - } -#endif /* LQR_SUPPORT */ -#define NAKCIENDP(opt, neg) \ - if (go->neg && \ - len >= CILEN_CHAR && \ - p[0] == opt && \ - p[1] >= CILEN_CHAR && \ - p[1] <= len) { \ - len -= p[1]; \ - INCPTR(p[1], p); \ - no.neg = 1; \ - try_.neg = 0; \ - } - - /* - * NOTE! There must be no assignments to individual fields of *go in - * the code below. Any such assignment is a BUG! - */ - /* - * We don't care if they want to send us smaller packets than - * we want. Therefore, accept any MRU less than what we asked for, - * but then ignore the new value when setting the MRU in the kernel. - * If they send us a bigger MRU than what we asked, accept it, up to - * the limit of the default MRU we'd get if we didn't negotiate. - */ - if (go->neg_mru && go->mru != PPP_DEFMRU) { - NAKCISHORT(CI_MRU, neg_mru, - if (cishort <= wo->mru || cishort <= PPP_DEFMRU) - try_.mru = cishort; - ); - } - - /* - * Add any characters they want to our (receive-side) asyncmap. - */ - if (go->neg_asyncmap && go->asyncmap != 0xFFFFFFFF) { - NAKCILONG(CI_ASYNCMAP, neg_asyncmap, - try_.asyncmap = go->asyncmap | cilong; - ); - } - - /* - * If they've nak'd our authentication-protocol, check whether - * they are proposing a different protocol, or a different - * hash algorithm for CHAP. - */ - if ((0 -#if CHAP_SUPPORT - || go->neg_chap -#endif /* CHAP_SUPPORT */ -#if PAP_SUPPORT - || go->neg_upap -#endif /* PAP_SUPPORT */ -#if EAP_SUPPORT - || go->neg_eap -#endif /* EAP_SUPPORT */ - ) - && len >= CILEN_SHORT - && p[0] == CI_AUTHTYPE && p[1] >= CILEN_SHORT && p[1] <= len) { - cilen = p[1]; - len -= cilen; -#if CHAP_SUPPORT - no.neg_chap = go->neg_chap; -#endif /* CHAP_SUPPORT */ -#if PAP_SUPPORT - no.neg_upap = go->neg_upap; -#endif /* PAP_SUPPORT */ -#if EAP_SUPPORT - no.neg_eap = go->neg_eap; -#endif /* EAP_SUPPORT */ - INCPTR(2, p); - GETSHORT(cishort, p); - -#if PAP_SUPPORT - if (cishort == PPP_PAP && cilen == CILEN_SHORT) { -#if EAP_SUPPORT - /* If we were asking for EAP, then we need to stop that. */ - if (go->neg_eap) - try_.neg_eap = 0; - else -#endif /* EAP_SUPPORT */ - -#if CHAP_SUPPORT - /* If we were asking for CHAP, then we need to stop that. */ - if (go->neg_chap) - try_.neg_chap = 0; - else -#endif /* CHAP_SUPPORT */ - - /* - * If we weren't asking for CHAP or EAP, then we were asking for - * PAP, in which case this Nak is bad. - */ - goto bad; - } else -#endif /* PAP_SUPPORT */ - -#if CHAP_SUPPORT - if (cishort == PPP_CHAP && cilen == CILEN_CHAP) { - GETCHAR(cichar, p); -#if EAP_SUPPORT - /* Stop asking for EAP, if we were. */ - if (go->neg_eap) { - try_.neg_eap = 0; - /* Try to set up to use their suggestion, if possible */ - if (CHAP_CANDIGEST(go->chap_mdtype, cichar)) - try_.chap_mdtype = CHAP_MDTYPE_D(cichar); - } else -#endif /* EAP_SUPPORT */ - if (go->neg_chap) { - /* - * We were asking for our preferred algorithm, they must - * want something different. - */ - if (cichar != CHAP_DIGEST(go->chap_mdtype)) { - if (CHAP_CANDIGEST(go->chap_mdtype, cichar)) { - /* Use their suggestion if we support it ... */ - try_.chap_mdtype = CHAP_MDTYPE_D(cichar); - } else { - /* ... otherwise, try our next-preferred algorithm. */ - try_.chap_mdtype &= ~(CHAP_MDTYPE(try_.chap_mdtype)); - if (try_.chap_mdtype == MDTYPE_NONE) /* out of algos */ - try_.neg_chap = 0; - } - } else { - /* - * Whoops, they Nak'd our algorithm of choice - * but then suggested it back to us. - */ - goto bad; - } - } else { - /* - * Stop asking for PAP if we were asking for it. - */ -#if PAP_SUPPORT - try_.neg_upap = 0; -#endif /* PAP_SUPPORT */ - } - - } else -#endif /* CHAP_SUPPORT */ - { - -#if EAP_SUPPORT - /* - * If we were asking for EAP, and they're Conf-Naking EAP, - * well, that's just strange. Nobody should do that. - */ - if (cishort == PPP_EAP && cilen == CILEN_SHORT && go->neg_eap) - ppp_dbglog("Unexpected Conf-Nak for EAP"); - - /* - * We don't recognize what they're suggesting. - * Stop asking for what we were asking for. - */ - if (go->neg_eap) - try_.neg_eap = 0; - else -#endif /* EAP_SUPPORT */ - -#if CHAP_SUPPORT - if (go->neg_chap) - try_.neg_chap = 0; - else -#endif /* CHAP_SUPPORT */ - -#if PAP_SUPPORT - if(1) - try_.neg_upap = 0; - else -#endif /* PAP_SUPPORT */ - {} - - p += cilen - CILEN_SHORT; - } - } - -#if LQR_SUPPORT - /* - * If they can't cope with our link quality protocol, we'll have - * to stop asking for LQR. We haven't got any other protocol. - * If they Nak the reporting period, take their value XXX ? - */ - NAKCILQR(CI_QUALITY, neg_lqr, - if (cishort != PPP_LQR) - try_.neg_lqr = 0; - else - try_.lqr_period = cilong; - ); -#endif /* LQR_SUPPORT */ - - /* - * Only implementing CBCP...not the rest of the callback options - */ - NAKCICHAR(CI_CALLBACK, neg_cbcp, - try_.neg_cbcp = 0; - (void)cichar; /* if CHAP support is not compiled, cichar is set but not used, which makes some compilers complaining */ - ); - - /* - * Check for a looped-back line. - */ - NAKCILONG(CI_MAGICNUMBER, neg_magicnumber, - try_.magicnumber = magic(); - looped_back = 1; - ); - - /* - * Peer shouldn't send Nak for protocol compression or - * address/control compression requests; they should send - * a Reject instead. If they send a Nak, treat it as a Reject. - */ - NAKCIVOID(CI_PCOMPRESSION, neg_pcompression); - NAKCIVOID(CI_ACCOMPRESSION, neg_accompression); - -#ifdef HAVE_MULTILINK - /* - * Nak for MRRU option - accept their value if it is smaller - * than the one we want. - */ - if (go->neg_mrru) { - NAKCISHORT(CI_MRRU, neg_mrru, - if (treat_as_reject) - try_.neg_mrru = 0; - else if (cishort <= wo->mrru) - try_.mrru = cishort; - ); - } -#else /* HAVE_MULTILINK */ - LWIP_UNUSED_ARG(treat_as_reject); -#endif /* HAVE_MULTILINK */ - - /* - * Nak for short sequence numbers shouldn't be sent, treat it - * like a reject. - */ - NAKCIVOID(CI_SSNHF, neg_ssnhf); - - /* - * Nak of the endpoint discriminator option is not permitted, - * treat it like a reject. - */ - NAKCIENDP(CI_EPDISC, neg_endpoint); - - /* - * There may be remaining CIs, if the peer is requesting negotiation - * on an option that we didn't include in our request packet. - * If we see an option that we requested, or one we've already seen - * in this packet, then this packet is bad. - * If we wanted to respond by starting to negotiate on the requested - * option(s), we could, but we don't, because except for the - * authentication type and quality protocol, if we are not negotiating - * an option, it is because we were told not to. - * For the authentication type, the Nak from the peer means - * `let me authenticate myself with you' which is a bit pointless. - * For the quality protocol, the Nak means `ask me to send you quality - * reports', but if we didn't ask for them, we don't want them. - * An option we don't recognize represents the peer asking to - * negotiate some option we don't support, so ignore it. - */ - while (len >= CILEN_VOID) { - GETCHAR(citype, p); - GETCHAR(cilen, p); - if (cilen < CILEN_VOID || (len -= cilen) < 0) - goto bad; - next = p + cilen - 2; - - switch (citype) { - case CI_MRU: - if ((go->neg_mru && go->mru != PPP_DEFMRU) - || no.neg_mru || cilen != CILEN_SHORT) - goto bad; - GETSHORT(cishort, p); - if (cishort < PPP_DEFMRU) { - try_.neg_mru = 1; - try_.mru = cishort; - } - break; - case CI_ASYNCMAP: - if ((go->neg_asyncmap && go->asyncmap != 0xFFFFFFFF) - || no.neg_asyncmap || cilen != CILEN_LONG) - goto bad; - break; - case CI_AUTHTYPE: - if (0 -#if CHAP_SUPPORT - || go->neg_chap || no.neg_chap -#endif /* CHAP_SUPPORT */ -#if PAP_SUPPORT - || go->neg_upap || no.neg_upap -#endif /* PAP_SUPPORT */ -#if EAP_SUPPORT - || go->neg_eap || no.neg_eap -#endif /* EAP_SUPPORT */ - ) - goto bad; - break; - case CI_MAGICNUMBER: - if (go->neg_magicnumber || no.neg_magicnumber || - cilen != CILEN_LONG) - goto bad; - break; - case CI_PCOMPRESSION: - if (go->neg_pcompression || no.neg_pcompression - || cilen != CILEN_VOID) - goto bad; - break; - case CI_ACCOMPRESSION: - if (go->neg_accompression || no.neg_accompression - || cilen != CILEN_VOID) - goto bad; - break; -#if LQR_SUPPORT - case CI_QUALITY: - if (go->neg_lqr || no.neg_lqr || cilen != CILEN_LQR) - goto bad; - break; -#endif /* LQR_SUPPORT */ -#ifdef HAVE_MULTILINK - case CI_MRRU: - if (go->neg_mrru || no.neg_mrru || cilen != CILEN_SHORT) - goto bad; - break; -#endif /* HAVE_MULTILINK */ - case CI_SSNHF: - if (go->neg_ssnhf || no.neg_ssnhf || cilen != CILEN_VOID) - goto bad; - try_.neg_ssnhf = 1; - break; - case CI_EPDISC: - if (go->neg_endpoint || no.neg_endpoint || cilen < CILEN_CHAR) - goto bad; - break; - default: - break; - } - p = next; - } - - /* - * OK, the Nak is good. Now we can update state. - * If there are any options left we ignore them. - */ - if (f->state != PPP_FSM_OPENED) { - if (looped_back) { - if (++try_.numloops >= pcb->settings.lcp_loopbackfail) { - ppp_notice("Serial line is looped back."); - pcb->err_code = PPPERR_LOOPBACK; - lcp_close(f->pcb, "Loopback detected"); - } - } else - try_.numloops = 0; - *go = try_; - } - - return 1; - -bad: - LCPDEBUG(("lcp_nakci: received bad Nak!")); - return 0; -} - - -/* - * lcp_rejci - Peer has Rejected some of our CIs. - * This should not modify any state if the Reject is bad - * or if LCP is in the OPENED state. - * - * Returns: - * 0 - Reject was bad. - * 1 - Reject was good. - */ -static int lcp_rejci(fsm *f, u_char *p, int len) { - ppp_pcb *pcb = f->pcb; - lcp_options *go = &pcb->lcp_gotoptions; - u_char cichar; - u_short cishort; - u32_t cilong; - lcp_options try_; /* options to request next time */ - - try_ = *go; - - /* - * Any Rejected CIs must be in exactly the same order that we sent. - * Check packet length and CI length at each step. - * If we find any deviations, then this packet is bad. - */ -#define REJCIVOID(opt, neg) \ - if (go->neg && \ - len >= CILEN_VOID && \ - p[1] == CILEN_VOID && \ - p[0] == opt) { \ - len -= CILEN_VOID; \ - INCPTR(CILEN_VOID, p); \ - try_.neg = 0; \ - } -#define REJCISHORT(opt, neg, val) \ - if (go->neg && \ - len >= CILEN_SHORT && \ - p[1] == CILEN_SHORT && \ - p[0] == opt) { \ - len -= CILEN_SHORT; \ - INCPTR(2, p); \ - GETSHORT(cishort, p); \ - /* Check rejected value. */ \ - if (cishort != val) \ - goto bad; \ - try_.neg = 0; \ - } - -#if CHAP_SUPPORT && EAP_SUPPORT && PAP_SUPPORT -#define REJCICHAP(opt, neg, val) \ - if (go->neg && \ - len >= CILEN_CHAP && \ - p[1] == CILEN_CHAP && \ - p[0] == opt) { \ - len -= CILEN_CHAP; \ - INCPTR(2, p); \ - GETSHORT(cishort, p); \ - GETCHAR(cichar, p); \ - /* Check rejected value. */ \ - if ((cishort != PPP_CHAP) || (cichar != (CHAP_DIGEST(val)))) \ - goto bad; \ - try_.neg = 0; \ - try_.neg_eap = try_.neg_upap = 0; \ - } -#endif /* CHAP_SUPPORT && EAP_SUPPORT && PAP_SUPPORT */ - -#if CHAP_SUPPORT && !EAP_SUPPORT && PAP_SUPPORT -#define REJCICHAP(opt, neg, val) \ - if (go->neg && \ - len >= CILEN_CHAP && \ - p[1] == CILEN_CHAP && \ - p[0] == opt) { \ - len -= CILEN_CHAP; \ - INCPTR(2, p); \ - GETSHORT(cishort, p); \ - GETCHAR(cichar, p); \ - /* Check rejected value. */ \ - if ((cishort != PPP_CHAP) || (cichar != (CHAP_DIGEST(val)))) \ - goto bad; \ - try_.neg = 0; \ - try_.neg_upap = 0; \ - } -#endif /* CHAP_SUPPORT && !EAP_SUPPORT && PAP_SUPPORT */ - -#if CHAP_SUPPORT && EAP_SUPPORT && !PAP_SUPPORT -#define REJCICHAP(opt, neg, val) \ - if (go->neg && \ - len >= CILEN_CHAP && \ - p[1] == CILEN_CHAP && \ - p[0] == opt) { \ - len -= CILEN_CHAP; \ - INCPTR(2, p); \ - GETSHORT(cishort, p); \ - GETCHAR(cichar, p); \ - /* Check rejected value. */ \ - if ((cishort != PPP_CHAP) || (cichar != (CHAP_DIGEST(val)))) \ - goto bad; \ - try_.neg = 0; \ - try_.neg_eap = 0; \ - } -#endif /* CHAP_SUPPORT && EAP_SUPPORT && !PAP_SUPPORT */ - -#if CHAP_SUPPORT && !EAP_SUPPORT && !PAP_SUPPORT -#define REJCICHAP(opt, neg, val) \ - if (go->neg && \ - len >= CILEN_CHAP && \ - p[1] == CILEN_CHAP && \ - p[0] == opt) { \ - len -= CILEN_CHAP; \ - INCPTR(2, p); \ - GETSHORT(cishort, p); \ - GETCHAR(cichar, p); \ - /* Check rejected value. */ \ - if ((cishort != PPP_CHAP) || (cichar != (CHAP_DIGEST(val)))) \ - goto bad; \ - try_.neg = 0; \ - } -#endif /* CHAP_SUPPORT && !EAP_SUPPORT && !PAP_SUPPORT */ - -#define REJCILONG(opt, neg, val) \ - if (go->neg && \ - len >= CILEN_LONG && \ - p[1] == CILEN_LONG && \ - p[0] == opt) { \ - len -= CILEN_LONG; \ - INCPTR(2, p); \ - GETLONG(cilong, p); \ - /* Check rejected value. */ \ - if (cilong != val) \ - goto bad; \ - try_.neg = 0; \ - } -#if LQR_SUPPORT -#define REJCILQR(opt, neg, val) \ - if (go->neg && \ - len >= CILEN_LQR && \ - p[1] == CILEN_LQR && \ - p[0] == opt) { \ - len -= CILEN_LQR; \ - INCPTR(2, p); \ - GETSHORT(cishort, p); \ - GETLONG(cilong, p); \ - /* Check rejected value. */ \ - if (cishort != PPP_LQR || cilong != val) \ - goto bad; \ - try_.neg = 0; \ - } -#endif /* LQR_SUPPORT */ -#define REJCICBCP(opt, neg, val) \ - if (go->neg && \ - len >= CILEN_CBCP && \ - p[1] == CILEN_CBCP && \ - p[0] == opt) { \ - len -= CILEN_CBCP; \ - INCPTR(2, p); \ - GETCHAR(cichar, p); \ - /* Check rejected value. */ \ - if (cichar != val) \ - goto bad; \ - try_.neg = 0; \ - } -#define REJCIENDP(opt, neg, class, val, vlen) \ - if (go->neg && \ - len >= CILEN_CHAR + vlen && \ - p[0] == opt && \ - p[1] == CILEN_CHAR + vlen) { \ - int i; \ - len -= CILEN_CHAR + vlen; \ - INCPTR(2, p); \ - GETCHAR(cichar, p); \ - if (cichar != class) \ - goto bad; \ - for (i = 0; i < vlen; ++i) { \ - GETCHAR(cichar, p); \ - if (cichar != val[i]) \ - goto bad; \ - } \ - try_.neg = 0; \ - } - - REJCISHORT(CI_MRU, neg_mru, go->mru); - REJCILONG(CI_ASYNCMAP, neg_asyncmap, go->asyncmap); -#if EAP_SUPPORT - REJCISHORT(CI_AUTHTYPE, neg_eap, PPP_EAP); - if (!go->neg_eap) { -#endif /* EAP_SUPPORT */ -#if CHAP_SUPPORT - REJCICHAP(CI_AUTHTYPE, neg_chap, go->chap_mdtype); - if (!go->neg_chap) { -#endif /* CHAP_SUPPORT */ -#if PAP_SUPPORT - REJCISHORT(CI_AUTHTYPE, neg_upap, PPP_PAP); -#endif /* PAP_SUPPORT */ -#if CHAP_SUPPORT - } -#endif /* CHAP_SUPPORT */ -#if EAP_SUPPORT - } -#endif /* EAP_SUPPORT */ -#if LQR_SUPPORT - REJCILQR(CI_QUALITY, neg_lqr, go->lqr_period); -#endif /* LQR_SUPPORT */ - REJCICBCP(CI_CALLBACK, neg_cbcp, CBCP_OPT); - REJCILONG(CI_MAGICNUMBER, neg_magicnumber, go->magicnumber); - REJCIVOID(CI_PCOMPRESSION, neg_pcompression); - REJCIVOID(CI_ACCOMPRESSION, neg_accompression); -#ifdef HAVE_MULTILINK - REJCISHORT(CI_MRRU, neg_mrru, go->mrru); -#endif /* HAVE_MULTILINK */ - REJCIVOID(CI_SSNHF, neg_ssnhf); - REJCIENDP(CI_EPDISC, neg_endpoint, go->endpoint.class_, - go->endpoint.value, go->endpoint.length); - - /* - * If there are any remaining CIs, then this packet is bad. - */ - if (len != 0) - goto bad; - /* - * Now we can update state. - */ - if (f->state != PPP_FSM_OPENED) - *go = try_; - return 1; - -bad: - LCPDEBUG(("lcp_rejci: received bad Reject!")); - return 0; -} - - -/* - * lcp_reqci - Check the peer's requested CIs and send appropriate response. - * - * Returns: CONFACK, CONFNAK or CONFREJ and input packet modified - * appropriately. If reject_if_disagree is non-zero, doesn't return - * CONFNAK; returns CONFREJ if it can't return CONFACK. - * - * inp = Requested CIs - * lenp = Length of requested CIs - */ -static int lcp_reqci(fsm *f, u_char *inp, int *lenp, int reject_if_disagree) { - ppp_pcb *pcb = f->pcb; - lcp_options *go = &pcb->lcp_gotoptions; - lcp_options *ho = &pcb->lcp_hisoptions; - lcp_options *ao = &pcb->lcp_allowoptions; - u_char *cip, *next; /* Pointer to current and next CIs */ - int cilen, citype, cichar; /* Parsed len, type, char value */ - u_short cishort; /* Parsed short value */ - u32_t cilong; /* Parse long value */ - int rc = CONFACK; /* Final packet return code */ - int orc; /* Individual option return code */ - u_char *p; /* Pointer to next char to parse */ - u_char *rejp; /* Pointer to next char in reject frame */ - struct pbuf *nakp; /* Nak buffer */ - u_char *nakoutp; /* Pointer to next char in Nak frame */ - int l = *lenp; /* Length left */ - - /* - * Reset all his options. - */ - BZERO(ho, sizeof(*ho)); - - /* - * Process all his options. - */ - next = inp; - nakp = pbuf_alloc(PBUF_RAW, (u16_t)(PPP_CTRL_PBUF_MAX_SIZE), PPP_CTRL_PBUF_TYPE); - if(NULL == nakp) - return 0; - if(nakp->tot_len != nakp->len) { - pbuf_free(nakp); - return 0; - } - - nakoutp = (u_char*)nakp->payload; - rejp = inp; - while (l) { - orc = CONFACK; /* Assume success */ - cip = p = next; /* Remember begining of CI */ - if (l < 2 || /* Not enough data for CI header or */ - p[1] < 2 || /* CI length too small or */ - p[1] > l) { /* CI length too big? */ - LCPDEBUG(("lcp_reqci: bad CI length!")); - orc = CONFREJ; /* Reject bad CI */ - cilen = l; /* Reject till end of packet */ - l = 0; /* Don't loop again */ - citype = 0; - goto endswitch; - } - GETCHAR(citype, p); /* Parse CI type */ - GETCHAR(cilen, p); /* Parse CI length */ - l -= cilen; /* Adjust remaining length */ - next += cilen; /* Step to next CI */ - - switch (citype) { /* Check CI type */ - case CI_MRU: - if (!ao->neg_mru || /* Allow option? */ - cilen != CILEN_SHORT) { /* Check CI length */ - orc = CONFREJ; /* Reject CI */ - break; - } - GETSHORT(cishort, p); /* Parse MRU */ - - /* - * He must be able to receive at least our minimum. - * No need to check a maximum. If he sends a large number, - * we'll just ignore it. - */ - if (cishort < PPP_MINMRU) { - orc = CONFNAK; /* Nak CI */ - PUTCHAR(CI_MRU, nakoutp); - PUTCHAR(CILEN_SHORT, nakoutp); - PUTSHORT(PPP_MINMRU, nakoutp); /* Give him a hint */ - break; - } - ho->neg_mru = 1; /* Remember he sent MRU */ - ho->mru = cishort; /* And remember value */ - break; - - case CI_ASYNCMAP: - if (!ao->neg_asyncmap || - cilen != CILEN_LONG) { - orc = CONFREJ; - break; - } - GETLONG(cilong, p); - - /* - * Asyncmap must have set at least the bits - * which are set in lcp_allowoptions[unit].asyncmap. - */ - if ((ao->asyncmap & ~cilong) != 0) { - orc = CONFNAK; - PUTCHAR(CI_ASYNCMAP, nakoutp); - PUTCHAR(CILEN_LONG, nakoutp); - PUTLONG(ao->asyncmap | cilong, nakoutp); - break; - } - ho->neg_asyncmap = 1; - ho->asyncmap = cilong; - break; - - case CI_AUTHTYPE: - if (cilen < CILEN_SHORT || - !(0 -#if PAP_SUPPORT - || ao->neg_upap -#endif /* PAP_SUPPORT */ -#if CHAP_SUPPORT - || ao->neg_chap -#endif /* CHAP_SUPPORT */ -#if EAP_SUPPORT - || ao->neg_eap -#endif /* EAP_SUPPORT */ - )) { - /* - * Reject the option if we're not willing to authenticate. - */ - ppp_dbglog("No auth is possible"); - orc = CONFREJ; - break; - } - GETSHORT(cishort, p); - - /* - * Authtype must be PAP, CHAP, or EAP. - * - * Note: if more than one of ao->neg_upap, ao->neg_chap, and - * ao->neg_eap are set, and the peer sends a Configure-Request - * with two or more authenticate-protocol requests, then we will - * reject the second request. - * Whether we end up doing CHAP, UPAP, or EAP depends then on - * the ordering of the CIs in the peer's Configure-Request. - */ - -#if PAP_SUPPORT - if (cishort == PPP_PAP) { - /* we've already accepted CHAP or EAP */ - if (0 -#if CHAP_SUPPORT - || ho->neg_chap -#endif /* CHAP_SUPPORT */ -#if EAP_SUPPORT - || ho->neg_eap -#endif /* EAP_SUPPORT */ - || cilen != CILEN_SHORT) { - LCPDEBUG(("lcp_reqci: rcvd AUTHTYPE PAP, rejecting...")); - orc = CONFREJ; - break; - } - if (!ao->neg_upap) { /* we don't want to do PAP */ - orc = CONFNAK; /* NAK it and suggest CHAP or EAP */ - PUTCHAR(CI_AUTHTYPE, nakoutp); -#if EAP_SUPPORT - if (ao->neg_eap) { - PUTCHAR(CILEN_SHORT, nakoutp); - PUTSHORT(PPP_EAP, nakoutp); - } else { -#endif /* EAP_SUPPORT */ -#if CHAP_SUPPORT - PUTCHAR(CILEN_CHAP, nakoutp); - PUTSHORT(PPP_CHAP, nakoutp); - PUTCHAR(CHAP_DIGEST(ao->chap_mdtype), nakoutp); -#endif /* CHAP_SUPPORT */ -#if EAP_SUPPORT - } -#endif /* EAP_SUPPORT */ - break; - } - ho->neg_upap = 1; - break; - } -#endif /* PAP_SUPPORT */ -#if CHAP_SUPPORT - if (cishort == PPP_CHAP) { - /* we've already accepted PAP or EAP */ - if ( -#if PAP_SUPPORT - ho->neg_upap || -#endif /* PAP_SUPPORT */ -#if EAP_SUPPORT - ho->neg_eap || -#endif /* EAP_SUPPORT */ - cilen != CILEN_CHAP) { - LCPDEBUG(("lcp_reqci: rcvd AUTHTYPE CHAP, rejecting...")); - orc = CONFREJ; - break; - } - if (!ao->neg_chap) { /* we don't want to do CHAP */ - orc = CONFNAK; /* NAK it and suggest EAP or PAP */ - PUTCHAR(CI_AUTHTYPE, nakoutp); - PUTCHAR(CILEN_SHORT, nakoutp); -#if EAP_SUPPORT - if (ao->neg_eap) { - PUTSHORT(PPP_EAP, nakoutp); - } else -#endif /* EAP_SUPPORT */ -#if PAP_SUPPORT - if(1) { - PUTSHORT(PPP_PAP, nakoutp); - } - else -#endif /* PAP_SUPPORT */ - {} - break; - } - GETCHAR(cichar, p); /* get digest type */ - if (!(CHAP_CANDIGEST(ao->chap_mdtype, cichar))) { - /* - * We can't/won't do the requested type, - * suggest something else. - */ - orc = CONFNAK; - PUTCHAR(CI_AUTHTYPE, nakoutp); - PUTCHAR(CILEN_CHAP, nakoutp); - PUTSHORT(PPP_CHAP, nakoutp); - PUTCHAR(CHAP_DIGEST(ao->chap_mdtype), nakoutp); - break; - } - ho->chap_mdtype = CHAP_MDTYPE_D(cichar); /* save md type */ - ho->neg_chap = 1; - break; - } -#endif /* CHAP_SUPPORT */ -#if EAP_SUPPORT - if (cishort == PPP_EAP) { - /* we've already accepted CHAP or PAP */ - if ( -#if CHAP_SUPPORT - ho->neg_chap || -#endif /* CHAP_SUPPORT */ -#if PAP_SUPPORT - ho->neg_upap || -#endif /* PAP_SUPPORT */ - cilen != CILEN_SHORT) { - LCPDEBUG(("lcp_reqci: rcvd AUTHTYPE EAP, rejecting...")); - orc = CONFREJ; - break; - } - if (!ao->neg_eap) { /* we don't want to do EAP */ - orc = CONFNAK; /* NAK it and suggest CHAP or PAP */ - PUTCHAR(CI_AUTHTYPE, nakoutp); -#if CHAP_SUPPORT - if (ao->neg_chap) { - PUTCHAR(CILEN_CHAP, nakoutp); - PUTSHORT(PPP_CHAP, nakoutp); - PUTCHAR(CHAP_DIGEST(ao->chap_mdtype), nakoutp); - } else -#endif /* CHAP_SUPPORT */ -#if PAP_SUPPORT - if(1) { - PUTCHAR(CILEN_SHORT, nakoutp); - PUTSHORT(PPP_PAP, nakoutp); - } else -#endif /* PAP_SUPPORT */ - {} - break; - } - ho->neg_eap = 1; - break; - } -#endif /* EAP_SUPPORT */ - - /* - * We don't recognize the protocol they're asking for. - * Nak it with something we're willing to do. - * (At this point we know ao->neg_upap || ao->neg_chap || - * ao->neg_eap.) - */ - orc = CONFNAK; - PUTCHAR(CI_AUTHTYPE, nakoutp); - -#if EAP_SUPPORT - if (ao->neg_eap) { - PUTCHAR(CILEN_SHORT, nakoutp); - PUTSHORT(PPP_EAP, nakoutp); - } else -#endif /* EAP_SUPPORT */ -#if CHAP_SUPPORT - if (ao->neg_chap) { - PUTCHAR(CILEN_CHAP, nakoutp); - PUTSHORT(PPP_CHAP, nakoutp); - PUTCHAR(CHAP_DIGEST(ao->chap_mdtype), nakoutp); - } else -#endif /* CHAP_SUPPORT */ -#if PAP_SUPPORT - if(1) { - PUTCHAR(CILEN_SHORT, nakoutp); - PUTSHORT(PPP_PAP, nakoutp); - } else -#endif /* PAP_SUPPORT */ - {} - break; - -#if LQR_SUPPORT - case CI_QUALITY: - if (!ao->neg_lqr || - cilen != CILEN_LQR) { - orc = CONFREJ; - break; - } - - GETSHORT(cishort, p); - GETLONG(cilong, p); - - /* - * Check the protocol and the reporting period. - * XXX When should we Nak this, and what with? - */ - if (cishort != PPP_LQR) { - orc = CONFNAK; - PUTCHAR(CI_QUALITY, nakoutp); - PUTCHAR(CILEN_LQR, nakoutp); - PUTSHORT(PPP_LQR, nakoutp); - PUTLONG(ao->lqr_period, nakoutp); - break; - } - break; -#endif /* LQR_SUPPORT */ - - case CI_MAGICNUMBER: - if (!(ao->neg_magicnumber || go->neg_magicnumber) || - cilen != CILEN_LONG) { - orc = CONFREJ; - break; - } - GETLONG(cilong, p); - - /* - * He must have a different magic number. - */ - if (go->neg_magicnumber && - cilong == go->magicnumber) { - cilong = magic(); /* Don't put magic() inside macro! */ - orc = CONFNAK; - PUTCHAR(CI_MAGICNUMBER, nakoutp); - PUTCHAR(CILEN_LONG, nakoutp); - PUTLONG(cilong, nakoutp); - break; - } - ho->neg_magicnumber = 1; - ho->magicnumber = cilong; - break; - - - case CI_PCOMPRESSION: - if (!ao->neg_pcompression || - cilen != CILEN_VOID) { - orc = CONFREJ; - break; - } - ho->neg_pcompression = 1; - break; - - case CI_ACCOMPRESSION: - if (!ao->neg_accompression || - cilen != CILEN_VOID) { - orc = CONFREJ; - break; - } - ho->neg_accompression = 1; - break; - -#ifdef HAVE_MULTILINK - case CI_MRRU: - if (!ao->neg_mrru - || !multilink - || cilen != CILEN_SHORT) { - orc = CONFREJ; - break; - } - - GETSHORT(cishort, p); - /* possibly should insist on a minimum/maximum MRRU here */ - ho->neg_mrru = 1; - ho->mrru = cishort; - break; -#endif /* HAVE_MULTILINK */ - - case CI_SSNHF: - if (!ao->neg_ssnhf -#ifdef HAVE_MULTILINK - || !multilink -#endif /* HAVE_MULTILINK */ - || cilen != CILEN_VOID) { - orc = CONFREJ; - break; - } - ho->neg_ssnhf = 1; - break; - - case CI_EPDISC: - if (!ao->neg_endpoint || - cilen < CILEN_CHAR || - cilen > CILEN_CHAR + MAX_ENDP_LEN) { - orc = CONFREJ; - break; - } - GETCHAR(cichar, p); - cilen -= CILEN_CHAR; - ho->neg_endpoint = 1; - ho->endpoint.class_ = cichar; - ho->endpoint.length = cilen; - MEMCPY(ho->endpoint.value, p, cilen); - INCPTR(cilen, p); - break; - - default: - LCPDEBUG(("lcp_reqci: rcvd unknown option %d", citype)); - orc = CONFREJ; - break; - } - -endswitch: - if (orc == CONFACK && /* Good CI */ - rc != CONFACK) /* but prior CI wasnt? */ - continue; /* Don't send this one */ - - if (orc == CONFNAK) { /* Nak this CI? */ - if (reject_if_disagree /* Getting fed up with sending NAKs? */ - && citype != CI_MAGICNUMBER) { - orc = CONFREJ; /* Get tough if so */ - } else { - if (rc == CONFREJ) /* Rejecting prior CI? */ - continue; /* Don't send this one */ - rc = CONFNAK; - } - } - if (orc == CONFREJ) { /* Reject this CI */ - rc = CONFREJ; - if (cip != rejp) /* Need to move rejected CI? */ - MEMCPY(rejp, cip, cilen); /* Move it */ - INCPTR(cilen, rejp); /* Update output pointer */ - } - } - - /* - * If we wanted to send additional NAKs (for unsent CIs), the - * code would go here. The extra NAKs would go at *nakoutp. - * At present there are no cases where we want to ask the - * peer to negotiate an option. - */ - - switch (rc) { - case CONFACK: - *lenp = next - inp; - break; - case CONFNAK: - /* - * Copy the Nak'd options from the nak buffer to the caller's buffer. - */ - *lenp = nakoutp - (u_char*)nakp->payload; - MEMCPY(inp, nakp->payload, *lenp); - break; - case CONFREJ: - *lenp = rejp - inp; - break; - default: - break; - } - - pbuf_free(nakp); - LCPDEBUG(("lcp_reqci: returning CONF%s.", CODENAME(rc))); - return (rc); /* Return final code */ -} - - -/* - * lcp_up - LCP has come UP. - */ -static void lcp_up(fsm *f) { - ppp_pcb *pcb = f->pcb; - lcp_options *wo = &pcb->lcp_wantoptions; - lcp_options *ho = &pcb->lcp_hisoptions; - lcp_options *go = &pcb->lcp_gotoptions; - lcp_options *ao = &pcb->lcp_allowoptions; - int mtu, mru; - - if (!go->neg_magicnumber) - go->magicnumber = 0; - if (!ho->neg_magicnumber) - ho->magicnumber = 0; - - /* - * Set our MTU to the smaller of the MTU we wanted and - * the MRU our peer wanted. If we negotiated an MRU, - * set our MRU to the larger of value we wanted and - * the value we got in the negotiation. - * Note on the MTU: the link MTU can be the MRU the peer wanted, - * the interface MTU is set to the lowest of that, the - * MTU we want to use, and our link MRU. - */ - mtu = ho->neg_mru? ho->mru: PPP_MRU; - mru = go->neg_mru? LWIP_MAX(wo->mru, go->mru): PPP_MRU; -#ifdef HAVE_MULTILINK - if (!(multilink && go->neg_mrru && ho->neg_mrru)) -#endif /* HAVE_MULTILINK */ - netif_set_mtu(pcb, LWIP_MIN(LWIP_MIN(mtu, mru), ao->mru)); - ppp_send_config(pcb, mtu, - (ho->neg_asyncmap? ho->asyncmap: 0xffffffff), - ho->neg_pcompression, ho->neg_accompression); - ppp_recv_config(pcb, mru, - (pcb->settings.lax_recv? 0: go->neg_asyncmap? go->asyncmap: 0xffffffff), - go->neg_pcompression, go->neg_accompression); - - if (ho->neg_mru) - pcb->peer_mru = ho->mru; - - lcp_echo_lowerup(f->pcb); /* Enable echo messages */ - - link_established(pcb); -} - - -/* - * lcp_down - LCP has gone DOWN. - * - * Alert other protocols. - */ -static void lcp_down(fsm *f) { - ppp_pcb *pcb = f->pcb; - lcp_options *go = &pcb->lcp_gotoptions; - - lcp_echo_lowerdown(f->pcb); - - link_down(pcb); - - ppp_send_config(pcb, PPP_MRU, 0xffffffff, 0, 0); - ppp_recv_config(pcb, PPP_MRU, - (go->neg_asyncmap? go->asyncmap: 0xffffffff), - go->neg_pcompression, go->neg_accompression); - pcb->peer_mru = PPP_MRU; -} - - -/* - * lcp_starting - LCP needs the lower layer up. - */ -static void lcp_starting(fsm *f) { - ppp_pcb *pcb = f->pcb; - link_required(pcb); -} - - -/* - * lcp_finished - LCP has finished with the lower layer. - */ -static void lcp_finished(fsm *f) { - ppp_pcb *pcb = f->pcb; - link_terminated(pcb); -} - - -#if PRINTPKT_SUPPORT -/* - * lcp_printpkt - print the contents of an LCP packet. - */ -static const char* const lcp_codenames[] = { - "ConfReq", "ConfAck", "ConfNak", "ConfRej", - "TermReq", "TermAck", "CodeRej", "ProtRej", - "EchoReq", "EchoRep", "DiscReq", "Ident", - "TimeRem" -}; - -static int lcp_printpkt(const u_char *p, int plen, - void (*printer) (void *, const char *, ...), void *arg) { - int code, id, len, olen, i; - const u_char *pstart, *optend; - u_short cishort; - u32_t cilong; - - if (plen < HEADERLEN) - return 0; - pstart = p; - GETCHAR(code, p); - GETCHAR(id, p); - GETSHORT(len, p); - if (len < HEADERLEN || len > plen) - return 0; - - if (code >= 1 && code <= (int)LWIP_ARRAYSIZE(lcp_codenames)) - printer(arg, " %s", lcp_codenames[code-1]); - else - printer(arg, " code=0x%x", code); - printer(arg, " id=0x%x", id); - len -= HEADERLEN; - switch (code) { - case CONFREQ: - case CONFACK: - case CONFNAK: - case CONFREJ: - /* print option list */ - while (len >= 2) { - GETCHAR(code, p); - GETCHAR(olen, p); - p -= 2; - if (olen < 2 || olen > len) { - break; - } - printer(arg, " <"); - len -= olen; - optend = p + olen; - switch (code) { - case CI_MRU: - if (olen == CILEN_SHORT) { - p += 2; - GETSHORT(cishort, p); - printer(arg, "mru %d", cishort); - } - break; - case CI_ASYNCMAP: - if (olen == CILEN_LONG) { - p += 2; - GETLONG(cilong, p); - printer(arg, "asyncmap 0x%x", cilong); - } - break; - case CI_AUTHTYPE: - if (olen >= CILEN_SHORT) { - p += 2; - printer(arg, "auth "); - GETSHORT(cishort, p); - switch (cishort) { -#if PAP_SUPPORT - case PPP_PAP: - printer(arg, "pap"); - break; -#endif /* PAP_SUPPORT */ -#if CHAP_SUPPORT - case PPP_CHAP: - printer(arg, "chap"); - if (p < optend) { - switch (*p) { - case CHAP_MD5: - printer(arg, " MD5"); - ++p; - break; -#if MSCHAP_SUPPORT - case CHAP_MICROSOFT: - printer(arg, " MS"); - ++p; - break; - - case CHAP_MICROSOFT_V2: - printer(arg, " MS-v2"); - ++p; - break; -#endif /* MSCHAP_SUPPORT */ - default: - break; - } - } - break; -#endif /* CHAP_SUPPORT */ -#if EAP_SUPPORT - case PPP_EAP: - printer(arg, "eap"); - break; -#endif /* EAP_SUPPORT */ - default: - printer(arg, "0x%x", cishort); - } - } - break; -#if LQR_SUPPORT - case CI_QUALITY: - if (olen >= CILEN_SHORT) { - p += 2; - printer(arg, "quality "); - GETSHORT(cishort, p); - switch (cishort) { - case PPP_LQR: - printer(arg, "lqr"); - break; - default: - printer(arg, "0x%x", cishort); - } - } - break; -#endif /* LQR_SUPPORT */ - case CI_CALLBACK: - if (olen >= CILEN_CHAR) { - p += 2; - printer(arg, "callback "); - GETCHAR(cishort, p); - switch (cishort) { - case CBCP_OPT: - printer(arg, "CBCP"); - break; - default: - printer(arg, "0x%x", cishort); - } - } - break; - case CI_MAGICNUMBER: - if (olen == CILEN_LONG) { - p += 2; - GETLONG(cilong, p); - printer(arg, "magic 0x%x", cilong); - } - break; - case CI_PCOMPRESSION: - if (olen == CILEN_VOID) { - p += 2; - printer(arg, "pcomp"); - } - break; - case CI_ACCOMPRESSION: - if (olen == CILEN_VOID) { - p += 2; - printer(arg, "accomp"); - } - break; - case CI_MRRU: - if (olen == CILEN_SHORT) { - p += 2; - GETSHORT(cishort, p); - printer(arg, "mrru %d", cishort); - } - break; - case CI_SSNHF: - if (olen == CILEN_VOID) { - p += 2; - printer(arg, "ssnhf"); - } - break; - case CI_EPDISC: -#ifdef HAVE_MULTILINK - if (olen >= CILEN_CHAR) { - struct epdisc epd; - p += 2; - GETCHAR(epd.class, p); - epd.length = olen - CILEN_CHAR; - if (epd.length > MAX_ENDP_LEN) - epd.length = MAX_ENDP_LEN; - if (epd.length > 0) { - MEMCPY(epd.value, p, epd.length); - p += epd.length; - } - printer(arg, "endpoint [%s]", epdisc_to_str(&epd)); - } -#else - printer(arg, "endpoint"); -#endif - break; - default: - break; - } - while (p < optend) { - GETCHAR(code, p); - printer(arg, " %.2x", code); - } - printer(arg, ">"); - } - break; - - case TERMACK: - case TERMREQ: - if (len > 0 && *p >= ' ' && *p < 0x7f) { - printer(arg, " "); - ppp_print_string(p, len, printer, arg); - p += len; - len = 0; - } - break; - - case ECHOREQ: - case ECHOREP: - case DISCREQ: - if (len >= 4) { - GETLONG(cilong, p); - printer(arg, " magic=0x%x", cilong); - len -= 4; - } - break; - - case IDENTIF: - case TIMEREM: - if (len >= 4) { - GETLONG(cilong, p); - printer(arg, " magic=0x%x", cilong); - len -= 4; - } - if (code == TIMEREM) { - if (len < 4) - break; - GETLONG(cilong, p); - printer(arg, " seconds=%u", cilong); - len -= 4; - } - if (len > 0) { - printer(arg, " "); - ppp_print_string(p, len, printer, arg); - p += len; - len = 0; - } - break; - default: - break; - } - - /* print the rest of the bytes in the packet */ - for (i = 0; i < len && i < 32; ++i) { - GETCHAR(code, p); - printer(arg, " %.2x", code); - } - if (i < len) { - printer(arg, " ..."); - p += len - i; - } - - return p - pstart; -} -#endif /* PRINTPKT_SUPPORT */ - -/* - * Time to shut down the link because there is nothing out there. - */ - -static void LcpLinkFailure(fsm *f) { - ppp_pcb *pcb = f->pcb; - if (f->state == PPP_FSM_OPENED) { - ppp_info("No response to %d echo-requests", pcb->lcp_echos_pending); - ppp_notice("Serial link appears to be disconnected."); - pcb->err_code = PPPERR_PEERDEAD; - lcp_close(pcb, "Peer not responding"); - } -} - -/* - * Timer expired for the LCP echo requests from this process. - */ - -static void LcpEchoCheck(fsm *f) { - ppp_pcb *pcb = f->pcb; - - LcpSendEchoRequest (f); - if (f->state != PPP_FSM_OPENED) - return; - - /* - * Start the timer for the next interval. - */ - if (pcb->lcp_echo_timer_running) - ppp_warn("assertion lcp_echo_timer_running==0 failed"); - TIMEOUT (LcpEchoTimeout, f, pcb->settings.lcp_echo_interval); - pcb->lcp_echo_timer_running = 1; -} - -/* - * LcpEchoTimeout - Timer expired on the LCP echo - */ - -static void LcpEchoTimeout(void *arg) { - fsm *f = (fsm*)arg; - ppp_pcb *pcb = f->pcb; - if (pcb->lcp_echo_timer_running != 0) { - pcb->lcp_echo_timer_running = 0; - LcpEchoCheck ((fsm *) arg); - } -} - -/* - * LcpEchoReply - LCP has received a reply to the echo - */ - -static void lcp_received_echo_reply(fsm *f, int id, u_char *inp, int len) { - ppp_pcb *pcb = f->pcb; - lcp_options *go = &pcb->lcp_gotoptions; - u32_t magic_val; - LWIP_UNUSED_ARG(id); - - /* Check the magic number - don't count replies from ourselves. */ - if (len < 4) { - ppp_dbglog("lcp: received short Echo-Reply, length %d", len); - return; - } - GETLONG(magic_val, inp); - if (go->neg_magicnumber - && magic_val == go->magicnumber) { - ppp_warn("appear to have received our own echo-reply!"); - return; - } - - /* Reset the number of outstanding echo frames */ - pcb->lcp_echos_pending = 0; -} - -/* - * LcpSendEchoRequest - Send an echo request frame to the peer - */ - -static void LcpSendEchoRequest(fsm *f) { - ppp_pcb *pcb = f->pcb; - lcp_options *go = &pcb->lcp_gotoptions; - u32_t lcp_magic; - u_char pkt[4], *pktp; - - /* - * Detect the failure of the peer at this point. - */ - if (pcb->settings.lcp_echo_fails != 0) { - if (pcb->lcp_echos_pending >= pcb->settings.lcp_echo_fails) { - LcpLinkFailure(f); - pcb->lcp_echos_pending = 0; - } - } - -#if PPP_LCP_ADAPTIVE - /* - * If adaptive echos have been enabled, only send the echo request if - * no traffic was received since the last one. - */ - if (pcb->settings.lcp_echo_adaptive) { - static unsigned int last_pkts_in = 0; - -#if PPP_STATS_SUPPORT - update_link_stats(f->unit); - link_stats_valid = 0; -#endif /* PPP_STATS_SUPPORT */ - - if (link_stats.pkts_in != last_pkts_in) { - last_pkts_in = link_stats.pkts_in; - return; - } - } -#endif - - /* - * Make and send the echo request frame. - */ - if (f->state == PPP_FSM_OPENED) { - lcp_magic = go->magicnumber; - pktp = pkt; - PUTLONG(lcp_magic, pktp); - fsm_sdata(f, ECHOREQ, pcb->lcp_echo_number++, pkt, pktp - pkt); - ++pcb->lcp_echos_pending; - } -} - -/* - * lcp_echo_lowerup - Start the timer for the LCP frame - */ - -static void lcp_echo_lowerup(ppp_pcb *pcb) { - fsm *f = &pcb->lcp_fsm; - - /* Clear the parameters for generating echo frames */ - pcb->lcp_echos_pending = 0; - pcb->lcp_echo_number = 0; - pcb->lcp_echo_timer_running = 0; - - /* If a timeout interval is specified then start the timer */ - if (pcb->settings.lcp_echo_interval != 0) - LcpEchoCheck (f); -} - -/* - * lcp_echo_lowerdown - Stop the timer for the LCP frame - */ - -static void lcp_echo_lowerdown(ppp_pcb *pcb) { - fsm *f = &pcb->lcp_fsm; - - if (pcb->lcp_echo_timer_running != 0) { - UNTIMEOUT (LcpEchoTimeout, f); - pcb->lcp_echo_timer_running = 0; - } -} - -#endif /* PPP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/ppp/magic.c b/Middlewares/Third_Party/LwIP/src/netif/ppp/magic.c deleted file mode 100644 index d0d87c5..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/ppp/magic.c +++ /dev/null @@ -1,294 +0,0 @@ -/* - * magic.c - PPP Magic Number routines. - * - * Copyright (c) 1984-2000 Carnegie Mellon University. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The name "Carnegie Mellon University" must not be used to - * endorse or promote products derived from this software without - * prior written permission. For permission or any legal - * details, please contact - * Office of Technology Transfer - * Carnegie Mellon University - * 5000 Forbes Avenue - * Pittsburgh, PA 15213-3890 - * (412) 268-4387, fax: (412) 268-7395 - * tech-transfer@andrew.cmu.edu - * - * 4. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Computing Services - * at Carnegie Mellon University (http://www.cmu.edu/computing/)." - * - * CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE - * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ -/***************************************************************************** -* randm.c - Random number generator program file. -* -* Copyright (c) 2003 by Marc Boucher, Services Informatiques (MBSI) inc. -* Copyright (c) 1998 by Global Election Systems Inc. -* -* The authors hereby grant permission to use, copy, modify, distribute, -* and license this software and its documentation for any purpose, provided -* that existing copyright notices are retained in all copies and that this -* notice and the following disclaimer are included verbatim in any -* distributions. No written agreement, license, or royalty fee is required -* for any of the authorized uses. -* -* THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS *AS IS* AND ANY EXPRESS OR -* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -* IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT -* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -* -****************************************************************************** -* REVISION HISTORY -* -* 03-01-01 Marc Boucher -* Ported to lwIP. -* 98-06-03 Guy Lancaster , Global Election Systems Inc. -* Extracted from avos. -*****************************************************************************/ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#include "netif/ppp/ppp_impl.h" -#include "netif/ppp/magic.h" - -#if PPP_MD5_RANDM /* Using MD5 for better randomness if enabled */ - -#include "netif/ppp/pppcrypt.h" - -#define MD5_HASH_SIZE 16 -static char magic_randpool[MD5_HASH_SIZE]; /* Pool of randomness. */ -static long magic_randcount; /* Pseudo-random incrementer */ -static u32_t magic_randomseed; /* Seed used for random number generation. */ - -/* - * Churn the randomness pool on a random event. Call this early and often - * on random and semi-random system events to build randomness in time for - * usage. For randomly timed events, pass a null pointer and a zero length - * and this will use the system timer and other sources to add randomness. - * If new random data is available, pass a pointer to that and it will be - * included. - * - * Ref: Applied Cryptography 2nd Ed. by Bruce Schneier p. 427 - */ -static void magic_churnrand(char *rand_data, u32_t rand_len) { - lwip_md5_context md5_ctx; - - /* LWIP_DEBUGF(LOG_INFO, ("magic_churnrand: %u@%P\n", rand_len, rand_data)); */ - lwip_md5_init(&md5_ctx); - lwip_md5_starts(&md5_ctx); - lwip_md5_update(&md5_ctx, (u_char *)magic_randpool, sizeof(magic_randpool)); - if (rand_data) { - lwip_md5_update(&md5_ctx, (u_char *)rand_data, rand_len); - } else { - struct { - /* INCLUDE fields for any system sources of randomness */ - u32_t jiffies; -#ifdef LWIP_RAND - u32_t rand; -#endif /* LWIP_RAND */ - } sys_data; - magic_randomseed += sys_jiffies(); - sys_data.jiffies = magic_randomseed; -#ifdef LWIP_RAND - sys_data.rand = LWIP_RAND(); -#endif /* LWIP_RAND */ - /* Load sys_data fields here. */ - lwip_md5_update(&md5_ctx, (u_char *)&sys_data, sizeof(sys_data)); - } - lwip_md5_finish(&md5_ctx, (u_char *)magic_randpool); - lwip_md5_free(&md5_ctx); -/* LWIP_DEBUGF(LOG_INFO, ("magic_churnrand: -> 0\n")); */ -} - -/* - * Initialize the random number generator. - */ -void magic_init(void) { - magic_churnrand(NULL, 0); -} - -/* - * Randomize our random seed value. - */ -void magic_randomize(void) { - magic_churnrand(NULL, 0); -} - -/* - * magic_random_bytes - Fill a buffer with random bytes. - * - * Use the random pool to generate random data. This degrades to pseudo - * random when used faster than randomness is supplied using magic_churnrand(). - * Note: It's important that there be sufficient randomness in magic_randpool - * before this is called for otherwise the range of the result may be - * narrow enough to make a search feasible. - * - * Ref: Applied Cryptography 2nd Ed. by Bruce Schneier p. 427 - * - * XXX Why does he not just call magic_churnrand() for each block? Probably - * so that you don't ever publish the seed which could possibly help - * predict future values. - * XXX Why don't we preserve md5 between blocks and just update it with - * magic_randcount each time? Probably there is a weakness but I wish that - * it was documented. - */ -void magic_random_bytes(unsigned char *buf, u32_t buf_len) { - lwip_md5_context md5_ctx; - u_char tmp[MD5_HASH_SIZE]; - u32_t n; - - while (buf_len > 0) { - lwip_md5_init(&md5_ctx); - lwip_md5_starts(&md5_ctx); - lwip_md5_update(&md5_ctx, (u_char *)magic_randpool, sizeof(magic_randpool)); - lwip_md5_update(&md5_ctx, (u_char *)&magic_randcount, sizeof(magic_randcount)); - lwip_md5_finish(&md5_ctx, tmp); - lwip_md5_free(&md5_ctx); - magic_randcount++; - n = LWIP_MIN(buf_len, MD5_HASH_SIZE); - MEMCPY(buf, tmp, n); - buf += n; - buf_len -= n; - } -} - -/* - * Return a new random number. - */ -u32_t magic(void) { - u32_t new_rand; - - magic_random_bytes((unsigned char *)&new_rand, sizeof(new_rand)); - - return new_rand; -} - -#else /* PPP_MD5_RANDM */ - -/*****************************/ -/*** LOCAL DATA STRUCTURES ***/ -/*****************************/ -#ifndef LWIP_RAND -static int magic_randomized; /* Set when truely randomized. */ -#endif /* LWIP_RAND */ -static u32_t magic_randomseed; /* Seed used for random number generation. */ - - -/***********************************/ -/*** PUBLIC FUNCTION DEFINITIONS ***/ -/***********************************/ - -/* - * Initialize the random number generator. - * - * Here we attempt to compute a random number seed but even if - * it isn't random, we'll randomize it later. - * - * The current method uses the fields from the real time clock, - * the idle process counter, the millisecond counter, and the - * hardware timer tick counter. When this is invoked - * in startup(), then the idle counter and timer values may - * repeat after each boot and the real time clock may not be - * operational. Thus we call it again on the first random - * event. - */ -void magic_init(void) { - magic_randomseed += sys_jiffies(); -#ifndef LWIP_RAND - /* Initialize the Borland random number generator. */ - srand((unsigned)magic_randomseed); -#endif /* LWIP_RAND */ -} - -/* - * magic_init - Initialize the magic number generator. - * - * Randomize our random seed value. Here we use the fact that - * this function is called at *truely random* times by the polling - * and network functions. Here we only get 16 bits of new random - * value but we use the previous value to randomize the other 16 - * bits. - */ -void magic_randomize(void) { -#ifndef LWIP_RAND - if (!magic_randomized) { - magic_randomized = !0; - magic_init(); - /* The initialization function also updates the seed. */ - } else { -#endif /* LWIP_RAND */ - magic_randomseed += sys_jiffies(); -#ifndef LWIP_RAND - } -#endif /* LWIP_RAND */ -} - -/* - * Return a new random number. - * - * Here we use the Borland rand() function to supply a pseudo random - * number which we make truely random by combining it with our own - * seed which is randomized by truely random events. - * Thus the numbers will be truely random unless there have been no - * operator or network events in which case it will be pseudo random - * seeded by the real time clock. - */ -u32_t magic(void) { -#ifdef LWIP_RAND - return LWIP_RAND() + magic_randomseed; -#else /* LWIP_RAND */ - return ((u32_t)rand() << 16) + (u32_t)rand() + magic_randomseed; -#endif /* LWIP_RAND */ -} - -/* - * magic_random_bytes - Fill a buffer with random bytes. - */ -void magic_random_bytes(unsigned char *buf, u32_t buf_len) { - u32_t new_rand, n; - - while (buf_len > 0) { - new_rand = magic(); - n = LWIP_MIN(buf_len, sizeof(new_rand)); - MEMCPY(buf, &new_rand, n); - buf += n; - buf_len -= n; - } -} -#endif /* PPP_MD5_RANDM */ - -/* - * Return a new random number between 0 and (2^pow)-1 included. - */ -u32_t magic_pow(u8_t pow) { - return magic() & ~(~0UL<. - * Copyright (c) 2002,2003,2004 Google, Inc. - * All rights reserved. - * - * License: - * Permission to use, copy, modify, and distribute this software and its - * documentation is hereby granted, provided that the above copyright - * notice appears in all copies. This software is provided without any - * warranty, express or implied. - * - * Changelog: - * 08/12/05 - Matt Domsch - * Only need extra skb padding on transmit, not receive. - * 06/18/04 - Matt Domsch , Oleg Makarenko - * Use Linux kernel 2.6 arc4 and sha1 routines rather than - * providing our own. - * 2/15/04 - TS: added #include and testing for Kernel - * version before using - * MOD_DEC_USAGE_COUNT/MOD_INC_USAGE_COUNT which are - * deprecated in 2.6 - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && MPPE_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#include - -#include "lwip/err.h" - -#include "netif/ppp/ppp_impl.h" -#include "netif/ppp/ccp.h" -#include "netif/ppp/mppe.h" -#include "netif/ppp/pppdebug.h" -#include "netif/ppp/pppcrypt.h" - -#define SHA1_SIGNATURE_SIZE 20 - -/* ppp_mppe_state.bits definitions */ -#define MPPE_BIT_A 0x80 /* Encryption table were (re)inititalized */ -#define MPPE_BIT_B 0x40 /* MPPC only (not implemented) */ -#define MPPE_BIT_C 0x20 /* MPPC only (not implemented) */ -#define MPPE_BIT_D 0x10 /* This is an encrypted frame */ - -#define MPPE_BIT_FLUSHED MPPE_BIT_A -#define MPPE_BIT_ENCRYPTED MPPE_BIT_D - -#define MPPE_BITS(p) ((p)[0] & 0xf0) -#define MPPE_CCOUNT(p) ((((p)[0] & 0x0f) << 8) + (p)[1]) -#define MPPE_CCOUNT_SPACE 0x1000 /* The size of the ccount space */ - -#define MPPE_OVHD 2 /* MPPE overhead/packet */ -#define SANITY_MAX 1600 /* Max bogon factor we will tolerate */ - -/* - * Perform the MPPE rekey algorithm, from RFC 3078, sec. 7.3. - * Well, not what's written there, but rather what they meant. - */ -static void mppe_rekey(ppp_mppe_state * state, int initial_key) -{ - lwip_sha1_context sha1_ctx; - u8_t sha1_digest[SHA1_SIGNATURE_SIZE]; - - /* - * Key Derivation, from RFC 3078, RFC 3079. - * Equivalent to Get_Key() for MS-CHAP as described in RFC 3079. - */ - lwip_sha1_init(&sha1_ctx); - lwip_sha1_starts(&sha1_ctx); - lwip_sha1_update(&sha1_ctx, state->master_key, state->keylen); - lwip_sha1_update(&sha1_ctx, mppe_sha1_pad1, SHA1_PAD_SIZE); - lwip_sha1_update(&sha1_ctx, state->session_key, state->keylen); - lwip_sha1_update(&sha1_ctx, mppe_sha1_pad2, SHA1_PAD_SIZE); - lwip_sha1_finish(&sha1_ctx, sha1_digest); - lwip_sha1_free(&sha1_ctx); - MEMCPY(state->session_key, sha1_digest, state->keylen); - - if (!initial_key) { - lwip_arc4_init(&state->arc4); - lwip_arc4_setup(&state->arc4, sha1_digest, state->keylen); - lwip_arc4_crypt(&state->arc4, state->session_key, state->keylen); - lwip_arc4_free(&state->arc4); - } - if (state->keylen == 8) { - /* See RFC 3078 */ - state->session_key[0] = 0xd1; - state->session_key[1] = 0x26; - state->session_key[2] = 0x9e; - } - lwip_arc4_init(&state->arc4); - lwip_arc4_setup(&state->arc4, state->session_key, state->keylen); -} - -/* - * Set key, used by MSCHAP before mppe_init() is actually called by CCP so we - * don't have to keep multiple copies of keys. - */ -void mppe_set_key(ppp_pcb *pcb, ppp_mppe_state *state, u8_t *key) { - LWIP_UNUSED_ARG(pcb); - MEMCPY(state->master_key, key, MPPE_MAX_KEY_LEN); -} - -/* - * Initialize (de)compressor state. - */ -void -mppe_init(ppp_pcb *pcb, ppp_mppe_state *state, u8_t options) -{ -#if PPP_DEBUG - const u8_t *debugstr = (const u8_t*)"mppe_comp_init"; - if (&pcb->mppe_decomp == state) { - debugstr = (const u8_t*)"mppe_decomp_init"; - } -#endif /* PPP_DEBUG */ - - /* Save keys. */ - MEMCPY(state->session_key, state->master_key, sizeof(state->master_key)); - - if (options & MPPE_OPT_128) - state->keylen = 16; - else if (options & MPPE_OPT_40) - state->keylen = 8; - else { - PPPDEBUG(LOG_DEBUG, ("%s[%d]: unknown key length\n", debugstr, - pcb->netif->num)); - lcp_close(pcb, "MPPE required but peer negotiation failed"); - return; - } - if (options & MPPE_OPT_STATEFUL) - state->stateful = 1; - - /* Generate the initial session key. */ - mppe_rekey(state, 1); - -#if PPP_DEBUG - { - int i; - char mkey[sizeof(state->master_key) * 2 + 1]; - char skey[sizeof(state->session_key) * 2 + 1]; - - PPPDEBUG(LOG_DEBUG, ("%s[%d]: initialized with %d-bit %s mode\n", - debugstr, pcb->netif->num, (state->keylen == 16) ? 128 : 40, - (state->stateful) ? "stateful" : "stateless")); - - for (i = 0; i < (int)sizeof(state->master_key); i++) - sprintf(mkey + i * 2, "%02x", state->master_key[i]); - for (i = 0; i < (int)sizeof(state->session_key); i++) - sprintf(skey + i * 2, "%02x", state->session_key[i]); - PPPDEBUG(LOG_DEBUG, - ("%s[%d]: keys: master: %s initial session: %s\n", - debugstr, pcb->netif->num, mkey, skey)); - } -#endif /* PPP_DEBUG */ - - /* - * Initialize the coherency count. The initial value is not specified - * in RFC 3078, but we can make a reasonable assumption that it will - * start at 0. Setting it to the max here makes the comp/decomp code - * do the right thing (determined through experiment). - */ - state->ccount = MPPE_CCOUNT_SPACE - 1; - - /* - * Note that even though we have initialized the key table, we don't - * set the FLUSHED bit. This is contrary to RFC 3078, sec. 3.1. - */ - state->bits = MPPE_BIT_ENCRYPTED; -} - -/* - * We received a CCP Reset-Request (actually, we are sending a Reset-Ack), - * tell the compressor to rekey. Note that we MUST NOT rekey for - * every CCP Reset-Request; we only rekey on the next xmit packet. - * We might get multiple CCP Reset-Requests if our CCP Reset-Ack is lost. - * So, rekeying for every CCP Reset-Request is broken as the peer will not - * know how many times we've rekeyed. (If we rekey and THEN get another - * CCP Reset-Request, we must rekey again.) - */ -void mppe_comp_reset(ppp_pcb *pcb, ppp_mppe_state *state) -{ - LWIP_UNUSED_ARG(pcb); - state->bits |= MPPE_BIT_FLUSHED; -} - -/* - * Compress (encrypt) a packet. - * It's strange to call this a compressor, since the output is always - * MPPE_OVHD + 2 bytes larger than the input. - */ -err_t -mppe_compress(ppp_pcb *pcb, ppp_mppe_state *state, struct pbuf **pb, u16_t protocol) -{ - struct pbuf *n, *np; - u8_t *pl; - err_t err; - - LWIP_UNUSED_ARG(pcb); - - /* TCP stack requires that we don't change the packet payload, therefore we copy - * the whole packet before encryption. - */ - np = pbuf_alloc(PBUF_RAW, MPPE_OVHD + sizeof(protocol) + (*pb)->tot_len, PBUF_RAM); - if (!np) { - return ERR_MEM; - } - - /* Hide MPPE header + protocol */ - pbuf_remove_header(np, MPPE_OVHD + sizeof(protocol)); - - if ((err = pbuf_copy(np, *pb)) != ERR_OK) { - pbuf_free(np); - return err; - } - - /* Reveal MPPE header + protocol */ - pbuf_add_header(np, MPPE_OVHD + sizeof(protocol)); - - *pb = np; - pl = (u8_t*)np->payload; - - state->ccount = (state->ccount + 1) % MPPE_CCOUNT_SPACE; - PPPDEBUG(LOG_DEBUG, ("mppe_compress[%d]: ccount %d\n", pcb->netif->num, state->ccount)); - /* FIXME: use PUT* macros */ - pl[0] = state->ccount>>8; - pl[1] = state->ccount; - - if (!state->stateful || /* stateless mode */ - ((state->ccount & 0xff) == 0xff) || /* "flag" packet */ - (state->bits & MPPE_BIT_FLUSHED)) { /* CCP Reset-Request */ - /* We must rekey */ - if (state->stateful) { - PPPDEBUG(LOG_DEBUG, ("mppe_compress[%d]: rekeying\n", pcb->netif->num)); - } - mppe_rekey(state, 0); - state->bits |= MPPE_BIT_FLUSHED; - } - pl[0] |= state->bits; - state->bits &= ~MPPE_BIT_FLUSHED; /* reset for next xmit */ - pl += MPPE_OVHD; - - /* Add protocol */ - /* FIXME: add PFC support */ - pl[0] = protocol >> 8; - pl[1] = protocol; - - /* Hide MPPE header */ - pbuf_remove_header(np, MPPE_OVHD); - - /* Encrypt packet */ - for (n = np; n != NULL; n = n->next) { - lwip_arc4_crypt(&state->arc4, (u8_t*)n->payload, n->len); - if (n->tot_len == n->len) { - break; - } - } - - /* Reveal MPPE header */ - pbuf_add_header(np, MPPE_OVHD); - - return ERR_OK; -} - -/* - * We received a CCP Reset-Ack. Just ignore it. - */ -void mppe_decomp_reset(ppp_pcb *pcb, ppp_mppe_state *state) -{ - LWIP_UNUSED_ARG(pcb); - LWIP_UNUSED_ARG(state); - return; -} - -/* - * Decompress (decrypt) an MPPE packet. - */ -err_t -mppe_decompress(ppp_pcb *pcb, ppp_mppe_state *state, struct pbuf **pb) -{ - struct pbuf *n0 = *pb, *n; - u8_t *pl; - u16_t ccount; - u8_t flushed; - - /* MPPE Header */ - if (n0->len < MPPE_OVHD) { - PPPDEBUG(LOG_DEBUG, - ("mppe_decompress[%d]: short pkt (%d)\n", - pcb->netif->num, n0->len)); - state->sanity_errors += 100; - goto sanity_error; - } - - pl = (u8_t*)n0->payload; - flushed = MPPE_BITS(pl) & MPPE_BIT_FLUSHED; - ccount = MPPE_CCOUNT(pl); - PPPDEBUG(LOG_DEBUG, ("mppe_decompress[%d]: ccount %d\n", - pcb->netif->num, ccount)); - - /* sanity checks -- terminate with extreme prejudice */ - if (!(MPPE_BITS(pl) & MPPE_BIT_ENCRYPTED)) { - PPPDEBUG(LOG_DEBUG, - ("mppe_decompress[%d]: ENCRYPTED bit not set!\n", - pcb->netif->num)); - state->sanity_errors += 100; - goto sanity_error; - } - if (!state->stateful && !flushed) { - PPPDEBUG(LOG_DEBUG, ("mppe_decompress[%d]: FLUSHED bit not set in " - "stateless mode!\n", pcb->netif->num)); - state->sanity_errors += 100; - goto sanity_error; - } - if (state->stateful && ((ccount & 0xff) == 0xff) && !flushed) { - PPPDEBUG(LOG_DEBUG, ("mppe_decompress[%d]: FLUSHED bit not set on " - "flag packet!\n", pcb->netif->num)); - state->sanity_errors += 100; - goto sanity_error; - } - - /* - * Check the coherency count. - */ - - if (!state->stateful) { - /* Discard late packet */ - if ((ccount - state->ccount) % MPPE_CCOUNT_SPACE > MPPE_CCOUNT_SPACE / 2) { - state->sanity_errors++; - goto sanity_error; - } - - /* RFC 3078, sec 8.1. Rekey for every packet. */ - while (state->ccount != ccount) { - mppe_rekey(state, 0); - state->ccount = (state->ccount + 1) % MPPE_CCOUNT_SPACE; - } - } else { - /* RFC 3078, sec 8.2. */ - if (!state->discard) { - /* normal state */ - state->ccount = (state->ccount + 1) % MPPE_CCOUNT_SPACE; - if (ccount != state->ccount) { - /* - * (ccount > state->ccount) - * Packet loss detected, enter the discard state. - * Signal the peer to rekey (by sending a CCP Reset-Request). - */ - state->discard = 1; - ccp_resetrequest(pcb); - return ERR_BUF; - } - } else { - /* discard state */ - if (!flushed) { - /* ccp.c will be silent (no additional CCP Reset-Requests). */ - return ERR_BUF; - } else { - /* Rekey for every missed "flag" packet. */ - while ((ccount & ~0xff) != - (state->ccount & ~0xff)) { - mppe_rekey(state, 0); - state->ccount = - (state->ccount + - 256) % MPPE_CCOUNT_SPACE; - } - - /* reset */ - state->discard = 0; - state->ccount = ccount; - /* - * Another problem with RFC 3078 here. It implies that the - * peer need not send a Reset-Ack packet. But RFC 1962 - * requires it. Hopefully, M$ does send a Reset-Ack; even - * though it isn't required for MPPE synchronization, it is - * required to reset CCP state. - */ - } - } - if (flushed) - mppe_rekey(state, 0); - } - - /* Hide MPPE header */ - pbuf_remove_header(n0, MPPE_OVHD); - - /* Decrypt the packet. */ - for (n = n0; n != NULL; n = n->next) { - lwip_arc4_crypt(&state->arc4, (u8_t*)n->payload, n->len); - if (n->tot_len == n->len) { - break; - } - } - - /* good packet credit */ - state->sanity_errors >>= 1; - - return ERR_OK; - -sanity_error: - if (state->sanity_errors >= SANITY_MAX) { - /* - * Take LCP down if the peer is sending too many bogons. - * We don't want to do this for a single or just a few - * instances since it could just be due to packet corruption. - */ - lcp_close(pcb, "Too many MPPE errors"); - } - return ERR_BUF; -} - -#endif /* PPP_SUPPORT && MPPE_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.c b/Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.c deleted file mode 100644 index 62014e8..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/ppp/multilink.c +++ /dev/null @@ -1,609 +0,0 @@ -/* - * multilink.c - support routines for multilink. - * - * Copyright (c) 2000-2002 Paul Mackerras. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. The name(s) of the authors of this software must not be used to - * endorse or promote products derived from this software without - * prior written permission. - * - * 3. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Paul Mackerras - * ". - * - * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY - * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && defined(HAVE_MULTILINK) /* don't build if not configured for use in lwipopts.h */ - -/* Multilink support - * - * Multilink uses Samba TDB (Trivial Database Library), which - * we cannot port, because it needs a filesystem. - * - * We have to choose between doing a memory-shared TDB-clone, - * or dropping multilink support at all. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "netif/ppp/ppp_impl.h" - -#include "netif/ppp/fsm.h" -#include "netif/ppp/lcp.h" -#include "netif/ppp/tdb.h" - -bool endpoint_specified; /* user gave explicit endpoint discriminator */ -char *bundle_id; /* identifier for our bundle */ -char *blinks_id; /* key for the list of links */ -bool doing_multilink; /* multilink was enabled and agreed to */ -bool multilink_master; /* we own the multilink bundle */ - -extern TDB_CONTEXT *pppdb; -extern char db_key[]; - -static void make_bundle_links (int append); -static void remove_bundle_link (void); -static void iterate_bundle_links (void (*func) (char *)); - -static int get_default_epdisc (struct epdisc *); -static int parse_num (char *str, const char *key, int *valp); -static int owns_unit (TDB_DATA pid, int unit); - -#define set_ip_epdisc(ep, addr) do { \ - ep->length = 4; \ - ep->value[0] = addr >> 24; \ - ep->value[1] = addr >> 16; \ - ep->value[2] = addr >> 8; \ - ep->value[3] = addr; \ -} while (0) - -#define LOCAL_IP_ADDR(addr) \ - (((addr) & 0xff000000) == 0x0a000000 /* 10.x.x.x */ \ - || ((addr) & 0xfff00000) == 0xac100000 /* 172.16.x.x */ \ - || ((addr) & 0xffff0000) == 0xc0a80000) /* 192.168.x.x */ - -#define process_exists(n) (kill((n), 0) == 0 || errno != ESRCH) - -void -mp_check_options() -{ - lcp_options *wo = &lcp_wantoptions[0]; - lcp_options *ao = &lcp_allowoptions[0]; - - doing_multilink = 0; - if (!multilink) - return; - /* if we're doing multilink, we have to negotiate MRRU */ - if (!wo->neg_mrru) { - /* mrru not specified, default to mru */ - wo->mrru = wo->mru; - wo->neg_mrru = 1; - } - ao->mrru = ao->mru; - ao->neg_mrru = 1; - - if (!wo->neg_endpoint && !noendpoint) { - /* get a default endpoint value */ - wo->neg_endpoint = get_default_epdisc(&wo->endpoint); - } -} - -/* - * Make a new bundle or join us to an existing bundle - * if we are doing multilink. - */ -int -mp_join_bundle() -{ - lcp_options *go = &lcp_gotoptions[0]; - lcp_options *ho = &lcp_hisoptions[0]; - lcp_options *ao = &lcp_allowoptions[0]; - int unit, pppd_pid; - int l, mtu; - char *p; - TDB_DATA key, pid, rec; - - if (doing_multilink) { - /* have previously joined a bundle */ - if (!go->neg_mrru || !ho->neg_mrru) { - notice("oops, didn't get multilink on renegotiation"); - lcp_close(pcb, "multilink required"); - return 0; - } - /* XXX should check the peer_authname and ho->endpoint - are the same as previously */ - return 0; - } - - if (!go->neg_mrru || !ho->neg_mrru) { - /* not doing multilink */ - if (go->neg_mrru) - notice("oops, multilink negotiated only for receive"); - mtu = ho->neg_mru? ho->mru: PPP_MRU; - if (mtu > ao->mru) - mtu = ao->mru; - if (demand) { - /* already have a bundle */ - cfg_bundle(0, 0, 0, 0); - netif_set_mtu(pcb, mtu); - return 0; - } - make_new_bundle(0, 0, 0, 0); - set_ifunit(1); - netif_set_mtu(pcb, mtu); - return 0; - } - - doing_multilink = 1; - - /* - * Find the appropriate bundle or join a new one. - * First we make up a name for the bundle. - * The length estimate is worst-case assuming every - * character has to be quoted. - */ - l = 4 * strlen(peer_authname) + 10; - if (ho->neg_endpoint) - l += 3 * ho->endpoint.length + 8; - if (bundle_name) - l += 3 * strlen(bundle_name) + 2; - bundle_id = malloc(l); - if (bundle_id == 0) - novm("bundle identifier"); - - p = bundle_id; - p += slprintf(p, l-1, "BUNDLE=\"%q\"", peer_authname); - if (ho->neg_endpoint || bundle_name) - *p++ = '/'; - if (ho->neg_endpoint) - p += slprintf(p, bundle_id+l-p, "%s", - epdisc_to_str(&ho->endpoint)); - if (bundle_name) - p += slprintf(p, bundle_id+l-p, "/%v", bundle_name); - - /* Make the key for the list of links belonging to the bundle */ - l = p - bundle_id; - blinks_id = malloc(l + 7); - if (blinks_id == NULL) - novm("bundle links key"); - slprintf(blinks_id, l + 7, "BUNDLE_LINKS=%s", bundle_id + 7); - - /* - * For demand mode, we only need to configure the bundle - * and attach the link. - */ - mtu = LWIP_MIN(ho->mrru, ao->mru); - if (demand) { - cfg_bundle(go->mrru, ho->mrru, go->neg_ssnhf, ho->neg_ssnhf); - netif_set_mtu(pcb, mtu); - script_setenv("BUNDLE", bundle_id + 7, 1); - return 0; - } - - /* - * Check if the bundle ID is already in the database. - */ - unit = -1; - lock_db(); - key.dptr = bundle_id; - key.dsize = p - bundle_id; - pid = tdb_fetch(pppdb, key); - if (pid.dptr != NULL) { - /* bundle ID exists, see if the pppd record exists */ - rec = tdb_fetch(pppdb, pid); - if (rec.dptr != NULL && rec.dsize > 0) { - /* make sure the string is null-terminated */ - rec.dptr[rec.dsize-1] = 0; - /* parse the interface number */ - parse_num(rec.dptr, "IFNAME=ppp", &unit); - /* check the pid value */ - if (!parse_num(rec.dptr, "PPPD_PID=", &pppd_pid) - || !process_exists(pppd_pid) - || !owns_unit(pid, unit)) - unit = -1; - free(rec.dptr); - } - free(pid.dptr); - } - - if (unit >= 0) { - /* attach to existing unit */ - if (bundle_attach(unit)) { - set_ifunit(0); - script_setenv("BUNDLE", bundle_id + 7, 0); - make_bundle_links(1); - unlock_db(); - info("Link attached to %s", ifname); - return 1; - } - /* attach failed because bundle doesn't exist */ - } - - /* we have to make a new bundle */ - make_new_bundle(go->mrru, ho->mrru, go->neg_ssnhf, ho->neg_ssnhf); - set_ifunit(1); - netif_set_mtu(pcb, mtu); - script_setenv("BUNDLE", bundle_id + 7, 1); - make_bundle_links(pcb); - unlock_db(); - info("New bundle %s created", ifname); - multilink_master = 1; - return 0; -} - -void mp_exit_bundle() -{ - lock_db(); - remove_bundle_link(); - unlock_db(); -} - -static void sendhup(char *str) -{ - int pid; - - if (parse_num(str, "PPPD_PID=", &pid) && pid != getpid()) { - if (debug) - dbglog("sending SIGHUP to process %d", pid); - kill(pid, SIGHUP); - } -} - -void mp_bundle_terminated() -{ - TDB_DATA key; - - bundle_terminating = 1; - upper_layers_down(pcb); - notice("Connection terminated."); -#if PPP_STATS_SUPPORT - print_link_stats(); -#endif /* PPP_STATS_SUPPORT */ - if (!demand) { - remove_pidfiles(); - script_unsetenv("IFNAME"); - } - - lock_db(); - destroy_bundle(); - iterate_bundle_links(sendhup); - key.dptr = blinks_id; - key.dsize = strlen(blinks_id); - tdb_delete(pppdb, key); - unlock_db(); - - new_phase(PPP_PHASE_DEAD); - - doing_multilink = 0; - multilink_master = 0; -} - -static void make_bundle_links(int append) -{ - TDB_DATA key, rec; - char *p; - char entry[32]; - int l; - - key.dptr = blinks_id; - key.dsize = strlen(blinks_id); - slprintf(entry, sizeof(entry), "%s;", db_key); - p = entry; - if (append) { - rec = tdb_fetch(pppdb, key); - if (rec.dptr != NULL && rec.dsize > 0) { - rec.dptr[rec.dsize-1] = 0; - if (strstr(rec.dptr, db_key) != NULL) { - /* already in there? strange */ - warn("link entry already exists in tdb"); - return; - } - l = rec.dsize + strlen(entry); - p = malloc(l); - if (p == NULL) - novm("bundle link list"); - slprintf(p, l, "%s%s", rec.dptr, entry); - } else { - warn("bundle link list not found"); - } - if (rec.dptr != NULL) - free(rec.dptr); - } - rec.dptr = p; - rec.dsize = strlen(p) + 1; - if (tdb_store(pppdb, key, rec, TDB_REPLACE)) - error("couldn't %s bundle link list", - append? "update": "create"); - if (p != entry) - free(p); -} - -static void remove_bundle_link() -{ - TDB_DATA key, rec; - char entry[32]; - char *p, *q; - int l; - - key.dptr = blinks_id; - key.dsize = strlen(blinks_id); - slprintf(entry, sizeof(entry), "%s;", db_key); - - rec = tdb_fetch(pppdb, key); - if (rec.dptr == NULL || rec.dsize <= 0) { - if (rec.dptr != NULL) - free(rec.dptr); - return; - } - rec.dptr[rec.dsize-1] = 0; - p = strstr(rec.dptr, entry); - if (p != NULL) { - q = p + strlen(entry); - l = strlen(q) + 1; - memmove(p, q, l); - rec.dsize = p - rec.dptr + l; - if (tdb_store(pppdb, key, rec, TDB_REPLACE)) - error("couldn't update bundle link list (removal)"); - } - free(rec.dptr); -} - -static void iterate_bundle_links(void (*func)(char *)) -{ - TDB_DATA key, rec, pp; - char *p, *q; - - key.dptr = blinks_id; - key.dsize = strlen(blinks_id); - rec = tdb_fetch(pppdb, key); - if (rec.dptr == NULL || rec.dsize <= 0) { - error("bundle link list not found (iterating list)"); - if (rec.dptr != NULL) - free(rec.dptr); - return; - } - p = rec.dptr; - p[rec.dsize-1] = 0; - while ((q = strchr(p, ';')) != NULL) { - *q = 0; - key.dptr = p; - key.dsize = q - p; - pp = tdb_fetch(pppdb, key); - if (pp.dptr != NULL && pp.dsize > 0) { - pp.dptr[pp.dsize-1] = 0; - func(pp.dptr); - } - if (pp.dptr != NULL) - free(pp.dptr); - p = q + 1; - } - free(rec.dptr); -} - -static int -parse_num(str, key, valp) - char *str; - const char *key; - int *valp; -{ - char *p, *endp; - int i; - - p = strstr(str, key); - if (p != 0) { - p += strlen(key); - i = strtol(p, &endp, 10); - if (endp != p && (*endp == 0 || *endp == ';')) { - *valp = i; - return 1; - } - } - return 0; -} - -/* - * Check whether the pppd identified by `key' still owns ppp unit `unit'. - */ -static int -owns_unit(key, unit) - TDB_DATA key; - int unit; -{ - char ifkey[32]; - TDB_DATA kd, vd; - int ret = 0; - - slprintf(ifkey, sizeof(ifkey), "IFNAME=ppp%d", unit); - kd.dptr = ifkey; - kd.dsize = strlen(ifkey); - vd = tdb_fetch(pppdb, kd); - if (vd.dptr != NULL) { - ret = vd.dsize == key.dsize - && memcmp(vd.dptr, key.dptr, vd.dsize) == 0; - free(vd.dptr); - } - return ret; -} - -static int -get_default_epdisc(ep) - struct epdisc *ep; -{ - char *p; - struct hostent *hp; - u32_t addr; - - /* First try for an ethernet MAC address */ - p = get_first_ethernet(); - if (p != 0 && get_if_hwaddr(ep->value, p) >= 0) { - ep->class = EPD_MAC; - ep->length = 6; - return 1; - } - - /* see if our hostname corresponds to a reasonable IP address */ - hp = gethostbyname(hostname); - if (hp != NULL) { - addr = *(u32_t *)hp->h_addr; - if (!bad_ip_adrs(addr)) { - addr = lwip_ntohl(addr); - if (!LOCAL_IP_ADDR(addr)) { - ep->class = EPD_IP; - set_ip_epdisc(ep, addr); - return 1; - } - } - } - - return 0; -} - -/* - * epdisc_to_str - make a printable string from an endpoint discriminator. - */ - -static char *endp_class_names[] = { - "null", "local", "IP", "MAC", "magic", "phone" -}; - -char * -epdisc_to_str(ep) - struct epdisc *ep; -{ - static char str[MAX_ENDP_LEN*3+8]; - u_char *p = ep->value; - int i, mask = 0; - char *q, c, c2; - - if (ep->class == EPD_NULL && ep->length == 0) - return "null"; - if (ep->class == EPD_IP && ep->length == 4) { - u32_t addr; - - GETLONG(addr, p); - slprintf(str, sizeof(str), "IP:%I", lwip_htonl(addr)); - return str; - } - - c = ':'; - c2 = '.'; - if (ep->class == EPD_MAC && ep->length == 6) - c2 = ':'; - else if (ep->class == EPD_MAGIC && (ep->length % 4) == 0) - mask = 3; - q = str; - if (ep->class <= EPD_PHONENUM) - q += slprintf(q, sizeof(str)-1, "%s", - endp_class_names[ep->class]); - else - q += slprintf(q, sizeof(str)-1, "%d", ep->class); - c = ':'; - for (i = 0; i < ep->length && i < MAX_ENDP_LEN; ++i) { - if ((i & mask) == 0) { - *q++ = c; - c = c2; - } - q += slprintf(q, str + sizeof(str) - q, "%.2x", ep->value[i]); - } - return str; -} - -static int hexc_val(int c) -{ - if (c >= 'a') - return c - 'a' + 10; - if (c >= 'A') - return c - 'A' + 10; - return c - '0'; -} - -int -str_to_epdisc(ep, str) - struct epdisc *ep; - char *str; -{ - int i, l; - char *p, *endp; - - for (i = EPD_NULL; i <= EPD_PHONENUM; ++i) { - int sl = strlen(endp_class_names[i]); - if (strncasecmp(str, endp_class_names[i], sl) == 0) { - str += sl; - break; - } - } - if (i > EPD_PHONENUM) { - /* not a class name, try a decimal class number */ - i = strtol(str, &endp, 10); - if (endp == str) - return 0; /* can't parse class number */ - str = endp; - } - ep->class = i; - if (*str == 0) { - ep->length = 0; - return 1; - } - if (*str != ':' && *str != '.') - return 0; - ++str; - - if (i == EPD_IP) { - u32_t addr; - i = parse_dotted_ip(str, &addr); - if (i == 0 || str[i] != 0) - return 0; - set_ip_epdisc(ep, addr); - return 1; - } - if (i == EPD_MAC && get_if_hwaddr(ep->value, str) >= 0) { - ep->length = 6; - return 1; - } - - p = str; - for (l = 0; l < MAX_ENDP_LEN; ++l) { - if (*str == 0) - break; - if (p <= str) - for (p = str; isxdigit(*p); ++p) - ; - i = p - str; - if (i == 0) - return 0; - ep->value[l] = hexc_val(*str++); - if ((i & 1) == 0) - ep->value[l] = (ep->value[l] << 4) + hexc_val(*str++); - if (*str == ':' || *str == '.') - ++str; - } - if (*str != 0 || (ep->class == EPD_MAC && l != 6)) - return 0; - ep->length = l; - return 1; -} - -#endif /* PPP_SUPPORT && HAVE_MULTILINK */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.c b/Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.c deleted file mode 100644 index a9c18e3..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/ppp/ppp.c +++ /dev/null @@ -1,1628 +0,0 @@ -/***************************************************************************** -* ppp.c - Network Point to Point Protocol program file. -* -* Copyright (c) 2003 by Marc Boucher, Services Informatiques (MBSI) inc. -* portions Copyright (c) 1997 by Global Election Systems Inc. -* -* The authors hereby grant permission to use, copy, modify, distribute, -* and license this software and its documentation for any purpose, provided -* that existing copyright notices are retained in all copies and that this -* notice and the following disclaimer are included verbatim in any -* distributions. No written agreement, license, or royalty fee is required -* for any of the authorized uses. -* -* THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS *AS IS* AND ANY EXPRESS OR -* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -* IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT -* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -* -****************************************************************************** -* REVISION HISTORY -* -* 03-01-01 Marc Boucher -* Ported to lwIP. -* 97-11-05 Guy Lancaster , Global Election Systems Inc. -* Original. -*****************************************************************************/ - -/* - * ppp_defs.h - PPP definitions. - * - * if_pppvar.h - private structures and declarations for PPP. - * - * Copyright (c) 1994 The Australian National University. - * All rights reserved. - * - * Permission to use, copy, modify, and distribute this software and its - * documentation is hereby granted, provided that the above copyright - * notice appears in all copies. This software is provided without any - * warranty, express or implied. The Australian National University - * makes no representations about the suitability of this software for - * any purpose. - * - * IN NO EVENT SHALL THE AUSTRALIAN NATIONAL UNIVERSITY BE LIABLE TO ANY - * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES - * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF - * THE AUSTRALIAN NATIONAL UNIVERSITY HAVE BEEN ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * THE AUSTRALIAN NATIONAL UNIVERSITY SPECIFICALLY DISCLAIMS ANY WARRANTIES, - * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS - * ON AN "AS IS" BASIS, AND THE AUSTRALIAN NATIONAL UNIVERSITY HAS NO - * OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, - * OR MODIFICATIONS. - */ - -/* - * if_ppp.h - Point-to-Point Protocol definitions. - * - * Copyright (c) 1989 Carnegie Mellon University. - * All rights reserved. - * - * Redistribution and use in source and binary forms are permitted - * provided that the above copyright notice and this paragraph are - * duplicated in all such forms and that any documentation, - * advertising materials, and other materials related to such - * distribution and use acknowledge that the software was developed - * by Carnegie Mellon University. The name of the - * University may not be used to endorse or promote products derived - * from this software without specific prior written permission. - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. - */ - -/** - * @defgroup ppp PPP - * @ingroup netifs - * @verbinclude "ppp.txt" - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/pbuf.h" -#include "lwip/stats.h" -#include "lwip/sys.h" -#include "lwip/tcpip.h" -#include "lwip/api.h" -#include "lwip/snmp.h" -#include "lwip/ip4.h" /* for ip4_input() */ -#if PPP_IPV6_SUPPORT -#include "lwip/ip6.h" /* for ip6_input() */ -#endif /* PPP_IPV6_SUPPORT */ -#include "lwip/dns.h" - -#include "netif/ppp/ppp_impl.h" -#include "netif/ppp/pppos.h" - -#include "netif/ppp/fsm.h" -#include "netif/ppp/lcp.h" -#include "netif/ppp/magic.h" - -#if PAP_SUPPORT -#include "netif/ppp/upap.h" -#endif /* PAP_SUPPORT */ -#if CHAP_SUPPORT -#include "netif/ppp/chap-new.h" -#endif /* CHAP_SUPPORT */ -#if EAP_SUPPORT -#include "netif/ppp/eap.h" -#endif /* EAP_SUPPORT */ -#if CCP_SUPPORT -#include "netif/ppp/ccp.h" -#endif /* CCP_SUPPORT */ -#if MPPE_SUPPORT -#include "netif/ppp/mppe.h" -#endif /* MPPE_SUPPORT */ -#if ECP_SUPPORT -#include "netif/ppp/ecp.h" -#endif /* EAP_SUPPORT */ -#if VJ_SUPPORT -#include "netif/ppp/vj.h" -#endif /* VJ_SUPPORT */ -#if PPP_IPV4_SUPPORT -#include "netif/ppp/ipcp.h" -#endif /* PPP_IPV4_SUPPORT */ -#if PPP_IPV6_SUPPORT -#include "netif/ppp/ipv6cp.h" -#endif /* PPP_IPV6_SUPPORT */ - -/*************************/ -/*** LOCAL DEFINITIONS ***/ -/*************************/ - -/* Memory pools */ -#if PPPOS_SUPPORT -LWIP_MEMPOOL_PROTOTYPE(PPPOS_PCB); -#endif -#if PPPOE_SUPPORT -LWIP_MEMPOOL_PROTOTYPE(PPPOE_IF); -#endif -#if PPPOL2TP_SUPPORT -LWIP_MEMPOOL_PROTOTYPE(PPPOL2TP_PCB); -#endif -#if LWIP_PPP_API && LWIP_MPU_COMPATIBLE -LWIP_MEMPOOL_PROTOTYPE(PPPAPI_MSG); -#endif -LWIP_MEMPOOL_DECLARE(PPP_PCB, MEMP_NUM_PPP_PCB, sizeof(ppp_pcb), "PPP_PCB") - -/* FIXME: add stats per PPP session */ -#if PPP_STATS_SUPPORT -static struct timeval start_time; /* Time when link was started. */ -static struct pppd_stats old_link_stats; -struct pppd_stats link_stats; -unsigned link_connect_time; -int link_stats_valid; -#endif /* PPP_STATS_SUPPORT */ - -/* - * PPP Data Link Layer "protocol" table. - * One entry per supported protocol. - * The last entry must be NULL. - */ -const struct protent* const protocols[] = { - &lcp_protent, -#if PAP_SUPPORT - &pap_protent, -#endif /* PAP_SUPPORT */ -#if CHAP_SUPPORT - &chap_protent, -#endif /* CHAP_SUPPORT */ -#if CBCP_SUPPORT - &cbcp_protent, -#endif /* CBCP_SUPPORT */ -#if PPP_IPV4_SUPPORT - &ipcp_protent, -#endif /* PPP_IPV4_SUPPORT */ -#if PPP_IPV6_SUPPORT - &ipv6cp_protent, -#endif /* PPP_IPV6_SUPPORT */ -#if CCP_SUPPORT - &ccp_protent, -#endif /* CCP_SUPPORT */ -#if ECP_SUPPORT - &ecp_protent, -#endif /* ECP_SUPPORT */ -#ifdef AT_CHANGE - &atcp_protent, -#endif /* AT_CHANGE */ -#if EAP_SUPPORT - &eap_protent, -#endif /* EAP_SUPPORT */ - NULL -}; - -/* Prototypes for procedures local to this file. */ -static void ppp_do_connect(void *arg); -static err_t ppp_netif_init_cb(struct netif *netif); -#if PPP_IPV4_SUPPORT -static err_t ppp_netif_output_ip4(struct netif *netif, struct pbuf *pb, const ip4_addr_t *ipaddr); -#endif /* PPP_IPV4_SUPPORT */ -#if PPP_IPV6_SUPPORT -static err_t ppp_netif_output_ip6(struct netif *netif, struct pbuf *pb, const ip6_addr_t *ipaddr); -#endif /* PPP_IPV6_SUPPORT */ -static err_t ppp_netif_output(struct netif *netif, struct pbuf *pb, u16_t protocol); - -/***********************************/ -/*** PUBLIC FUNCTION DEFINITIONS ***/ -/***********************************/ -#if PPP_AUTH_SUPPORT -void ppp_set_auth(ppp_pcb *pcb, u8_t authtype, const char *user, const char *passwd) { - LWIP_ASSERT_CORE_LOCKED(); -#if PAP_SUPPORT - pcb->settings.refuse_pap = !(authtype & PPPAUTHTYPE_PAP); -#endif /* PAP_SUPPORT */ -#if CHAP_SUPPORT - pcb->settings.refuse_chap = !(authtype & PPPAUTHTYPE_CHAP); -#if MSCHAP_SUPPORT - pcb->settings.refuse_mschap = !(authtype & PPPAUTHTYPE_MSCHAP); - pcb->settings.refuse_mschap_v2 = !(authtype & PPPAUTHTYPE_MSCHAP_V2); -#endif /* MSCHAP_SUPPORT */ -#endif /* CHAP_SUPPORT */ -#if EAP_SUPPORT - pcb->settings.refuse_eap = !(authtype & PPPAUTHTYPE_EAP); -#endif /* EAP_SUPPORT */ - pcb->settings.user = user; - pcb->settings.passwd = passwd; -} -#endif /* PPP_AUTH_SUPPORT */ - -#if MPPE_SUPPORT -/* Set MPPE configuration */ -void ppp_set_mppe(ppp_pcb *pcb, u8_t flags) { - if (flags == PPP_MPPE_DISABLE) { - pcb->settings.require_mppe = 0; - return; - } - - pcb->settings.require_mppe = 1; - pcb->settings.refuse_mppe_stateful = !(flags & PPP_MPPE_ALLOW_STATEFUL); - pcb->settings.refuse_mppe_40 = !!(flags & PPP_MPPE_REFUSE_40); - pcb->settings.refuse_mppe_128 = !!(flags & PPP_MPPE_REFUSE_128); -} -#endif /* MPPE_SUPPORT */ - -#if PPP_NOTIFY_PHASE -void ppp_set_notify_phase_callback(ppp_pcb *pcb, ppp_notify_phase_cb_fn notify_phase_cb) { - pcb->notify_phase_cb = notify_phase_cb; - notify_phase_cb(pcb, pcb->phase, pcb->ctx_cb); -} -#endif /* PPP_NOTIFY_PHASE */ - -/* - * Initiate a PPP connection. - * - * This can only be called if PPP is in the dead phase. - * - * Holdoff is the time to wait (in seconds) before initiating - * the connection. - * - * If this port connects to a modem, the modem connection must be - * established before calling this. - */ -err_t ppp_connect(ppp_pcb *pcb, u16_t holdoff) { - LWIP_ASSERT_CORE_LOCKED(); - if (pcb->phase != PPP_PHASE_DEAD) { - return ERR_ALREADY; - } - - PPPDEBUG(LOG_DEBUG, ("ppp_connect[%d]: holdoff=%d\n", pcb->netif->num, holdoff)); - - magic_randomize(); - - if (holdoff == 0) { - ppp_do_connect(pcb); - return ERR_OK; - } - - new_phase(pcb, PPP_PHASE_HOLDOFF); - sys_timeout((u32_t)(holdoff*1000), ppp_do_connect, pcb); - return ERR_OK; -} - -#if PPP_SERVER -/* - * Listen for an incoming PPP connection. - * - * This can only be called if PPP is in the dead phase. - * - * If this port connects to a modem, the modem connection must be - * established before calling this. - */ -err_t ppp_listen(ppp_pcb *pcb) { - LWIP_ASSERT_CORE_LOCKED(); - if (pcb->phase != PPP_PHASE_DEAD) { - return ERR_ALREADY; - } - - PPPDEBUG(LOG_DEBUG, ("ppp_listen[%d]\n", pcb->netif->num)); - - magic_randomize(); - - if (pcb->link_cb->listen) { - new_phase(pcb, PPP_PHASE_INITIALIZE); - pcb->link_cb->listen(pcb, pcb->link_ctx_cb); - return ERR_OK; - } - return ERR_IF; -} -#endif /* PPP_SERVER */ - -/* - * Initiate the end of a PPP connection. - * Any outstanding packets in the queues are dropped. - * - * Setting nocarrier to 1 close the PPP connection without initiating the - * shutdown procedure. Always using nocarrier = 0 is still recommended, - * this is going to take a little longer time if your link is down, but - * is a safer choice for the PPP state machine. - * - * Return 0 on success, an error code on failure. - */ -err_t -ppp_close(ppp_pcb *pcb, u8_t nocarrier) -{ - LWIP_ASSERT_CORE_LOCKED(); - - pcb->err_code = PPPERR_USER; - - /* holdoff phase, cancel the reconnection */ - if (pcb->phase == PPP_PHASE_HOLDOFF) { - sys_untimeout(ppp_do_connect, pcb); - new_phase(pcb, PPP_PHASE_DEAD); - } - - /* dead phase, nothing to do, call the status callback to be consistent */ - if (pcb->phase == PPP_PHASE_DEAD) { - pcb->link_status_cb(pcb, pcb->err_code, pcb->ctx_cb); - return ERR_OK; - } - - /* Already terminating, nothing to do */ - if (pcb->phase >= PPP_PHASE_TERMINATE) { - return ERR_INPROGRESS; - } - - /* LCP not open, close link protocol */ - if (pcb->phase < PPP_PHASE_ESTABLISH) { - new_phase(pcb, PPP_PHASE_DISCONNECT); - ppp_link_terminated(pcb); - return ERR_OK; - } - - /* - * Only accept carrier lost signal on the stable running phase in order - * to prevent changing the PPP phase FSM in transition phases. - * - * Always using nocarrier = 0 is still recommended, this is going to - * take a little longer time, but is a safer choice from FSM point of view. - */ - if (nocarrier && pcb->phase == PPP_PHASE_RUNNING) { - PPPDEBUG(LOG_DEBUG, ("ppp_close[%d]: carrier lost -> lcp_lowerdown\n", pcb->netif->num)); - lcp_lowerdown(pcb); - /* forced link termination, this will force link protocol to disconnect. */ - link_terminated(pcb); - return ERR_OK; - } - - /* Disconnect */ - PPPDEBUG(LOG_DEBUG, ("ppp_close[%d]: kill_link -> lcp_close\n", pcb->netif->num)); - /* LCP soft close request. */ - lcp_close(pcb, "User request"); - return ERR_OK; -} - -/* - * Release the control block. - * - * This can only be called if PPP is in the dead phase. - * - * You must use ppp_close() before if you wish to terminate - * an established PPP session. - * - * Return 0 on success, an error code on failure. - */ -err_t ppp_free(ppp_pcb *pcb) { - err_t err; - LWIP_ASSERT_CORE_LOCKED(); - if (pcb->phase != PPP_PHASE_DEAD) { - return ERR_CONN; - } - - PPPDEBUG(LOG_DEBUG, ("ppp_free[%d]\n", pcb->netif->num)); - - netif_remove(pcb->netif); - - err = pcb->link_cb->free(pcb, pcb->link_ctx_cb); - - LWIP_MEMPOOL_FREE(PPP_PCB, pcb); - return err; -} - -/* Get and set parameters for the given connection. - * Return 0 on success, an error code on failure. */ -err_t -ppp_ioctl(ppp_pcb *pcb, u8_t cmd, void *arg) -{ - LWIP_ASSERT_CORE_LOCKED(); - if (pcb == NULL) { - return ERR_VAL; - } - - switch(cmd) { - case PPPCTLG_UPSTATUS: /* Get the PPP up status. */ - if (!arg) { - goto fail; - } - *(int *)arg = (int)(0 -#if PPP_IPV4_SUPPORT - || pcb->if4_up -#endif /* PPP_IPV4_SUPPORT */ -#if PPP_IPV6_SUPPORT - || pcb->if6_up -#endif /* PPP_IPV6_SUPPORT */ - ); - return ERR_OK; - - case PPPCTLG_ERRCODE: /* Get the PPP error code. */ - if (!arg) { - goto fail; - } - *(int *)arg = (int)(pcb->err_code); - return ERR_OK; - - default: - goto fail; - } - -fail: - return ERR_VAL; -} - - -/**********************************/ -/*** LOCAL FUNCTION DEFINITIONS ***/ -/**********************************/ - -static void ppp_do_connect(void *arg) { - ppp_pcb *pcb = (ppp_pcb*)arg; - - LWIP_ASSERT("pcb->phase == PPP_PHASE_DEAD || pcb->phase == PPP_PHASE_HOLDOFF", pcb->phase == PPP_PHASE_DEAD || pcb->phase == PPP_PHASE_HOLDOFF); - - new_phase(pcb, PPP_PHASE_INITIALIZE); - pcb->link_cb->connect(pcb, pcb->link_ctx_cb); -} - -/* - * ppp_netif_init_cb - netif init callback - */ -static err_t ppp_netif_init_cb(struct netif *netif) { - netif->name[0] = 'p'; - netif->name[1] = 'p'; -#if PPP_IPV4_SUPPORT - netif->output = ppp_netif_output_ip4; -#endif /* PPP_IPV4_SUPPORT */ -#if PPP_IPV6_SUPPORT - netif->output_ip6 = ppp_netif_output_ip6; -#endif /* PPP_IPV6_SUPPORT */ - netif->flags = NETIF_FLAG_UP; -#if LWIP_NETIF_HOSTNAME - /* @todo: Initialize interface hostname */ - /* netif_set_hostname(netif, "lwip"); */ -#endif /* LWIP_NETIF_HOSTNAME */ - return ERR_OK; -} - -#if PPP_IPV4_SUPPORT -/* - * Send an IPv4 packet on the given connection. - */ -static err_t ppp_netif_output_ip4(struct netif *netif, struct pbuf *pb, const ip4_addr_t *ipaddr) { - LWIP_UNUSED_ARG(ipaddr); - return ppp_netif_output(netif, pb, PPP_IP); -} -#endif /* PPP_IPV4_SUPPORT */ - -#if PPP_IPV6_SUPPORT -/* - * Send an IPv6 packet on the given connection. - */ -static err_t ppp_netif_output_ip6(struct netif *netif, struct pbuf *pb, const ip6_addr_t *ipaddr) { - LWIP_UNUSED_ARG(ipaddr); - return ppp_netif_output(netif, pb, PPP_IPV6); -} -#endif /* PPP_IPV6_SUPPORT */ - -static err_t ppp_netif_output(struct netif *netif, struct pbuf *pb, u16_t protocol) { - ppp_pcb *pcb = (ppp_pcb*)netif->state; - err_t err; - struct pbuf *fpb = NULL; - - /* Check that the link is up. */ - if (0 -#if PPP_IPV4_SUPPORT - || (protocol == PPP_IP && !pcb->if4_up) -#endif /* PPP_IPV4_SUPPORT */ -#if PPP_IPV6_SUPPORT - || (protocol == PPP_IPV6 && !pcb->if6_up) -#endif /* PPP_IPV6_SUPPORT */ - ) { - PPPDEBUG(LOG_ERR, ("ppp_netif_output[%d]: link not up\n", pcb->netif->num)); - goto err_rte_drop; - } - -#if MPPE_SUPPORT - /* If MPPE is required, refuse any IP packet until we are able to crypt them. */ - if (pcb->settings.require_mppe && pcb->ccp_transmit_method != CI_MPPE) { - PPPDEBUG(LOG_ERR, ("ppp_netif_output[%d]: MPPE required, not up\n", pcb->netif->num)); - goto err_rte_drop; - } -#endif /* MPPE_SUPPORT */ - -#if VJ_SUPPORT - /* - * Attempt Van Jacobson header compression if VJ is configured and - * this is an IP packet. - */ - if (protocol == PPP_IP && pcb->vj_enabled) { - switch (vj_compress_tcp(&pcb->vj_comp, &pb)) { - case TYPE_IP: - /* No change... - protocol = PPP_IP; */ - break; - case TYPE_COMPRESSED_TCP: - /* vj_compress_tcp() returns a new allocated pbuf, indicate we should free - * our duplicated pbuf later */ - fpb = pb; - protocol = PPP_VJC_COMP; - break; - case TYPE_UNCOMPRESSED_TCP: - /* vj_compress_tcp() returns a new allocated pbuf, indicate we should free - * our duplicated pbuf later */ - fpb = pb; - protocol = PPP_VJC_UNCOMP; - break; - default: - PPPDEBUG(LOG_WARNING, ("ppp_netif_output[%d]: bad IP packet\n", pcb->netif->num)); - LINK_STATS_INC(link.proterr); - LINK_STATS_INC(link.drop); - MIB2_STATS_NETIF_INC(pcb->netif, ifoutdiscards); - return ERR_VAL; - } - } -#endif /* VJ_SUPPORT */ - -#if CCP_SUPPORT - switch (pcb->ccp_transmit_method) { - case 0: - break; /* Don't compress */ -#if MPPE_SUPPORT - case CI_MPPE: - if ((err = mppe_compress(pcb, &pcb->mppe_comp, &pb, protocol)) != ERR_OK) { - LINK_STATS_INC(link.memerr); - LINK_STATS_INC(link.drop); - MIB2_STATS_NETIF_INC(netif, ifoutdiscards); - goto err; - } - /* if VJ compressor returned a new allocated pbuf, free it */ - if (fpb) { - pbuf_free(fpb); - } - /* mppe_compress() returns a new allocated pbuf, indicate we should free - * our duplicated pbuf later */ - fpb = pb; - protocol = PPP_COMP; - break; -#endif /* MPPE_SUPPORT */ - default: - PPPDEBUG(LOG_ERR, ("ppp_netif_output[%d]: bad CCP transmit method\n", pcb->netif->num)); - goto err_rte_drop; /* Cannot really happen, we only negotiate what we are able to do */ - } -#endif /* CCP_SUPPORT */ - - err = pcb->link_cb->netif_output(pcb, pcb->link_ctx_cb, pb, protocol); - goto err; - -err_rte_drop: - err = ERR_RTE; - LINK_STATS_INC(link.rterr); - LINK_STATS_INC(link.drop); - MIB2_STATS_NETIF_INC(netif, ifoutdiscards); -err: - if (fpb) { - pbuf_free(fpb); - } - return err; -} - -/************************************/ -/*** PRIVATE FUNCTION DEFINITIONS ***/ -/************************************/ - -/* Initialize the PPP subsystem. */ -int ppp_init(void) -{ -#if PPPOS_SUPPORT - LWIP_MEMPOOL_INIT(PPPOS_PCB); -#endif -#if PPPOE_SUPPORT - LWIP_MEMPOOL_INIT(PPPOE_IF); -#endif -#if PPPOL2TP_SUPPORT - LWIP_MEMPOOL_INIT(PPPOL2TP_PCB); -#endif -#if LWIP_PPP_API && LWIP_MPU_COMPATIBLE - LWIP_MEMPOOL_INIT(PPPAPI_MSG); -#endif - - LWIP_MEMPOOL_INIT(PPP_PCB); - - /* - * Initialize magic number generator now so that protocols may - * use magic numbers in initialization. - */ - magic_init(); - - return 0; -} - -/* - * Create a new PPP control block. - * - * This initializes the PPP control block but does not - * attempt to negotiate the LCP session. - * - * Return a new PPP connection control block pointer - * on success or a null pointer on failure. - */ -ppp_pcb *ppp_new(struct netif *pppif, const struct link_callbacks *callbacks, void *link_ctx_cb, ppp_link_status_cb_fn link_status_cb, void *ctx_cb) { - ppp_pcb *pcb; - const struct protent *protp; - int i; - - /* PPP is single-threaded: without a callback, - * there is no way to know when the link is up. */ - if (link_status_cb == NULL) { - return NULL; - } - - pcb = (ppp_pcb*)LWIP_MEMPOOL_ALLOC(PPP_PCB); - if (pcb == NULL) { - return NULL; - } - - memset(pcb, 0, sizeof(ppp_pcb)); - - /* default configuration */ -#if PAP_SUPPORT - pcb->settings.pap_timeout_time = UPAP_DEFTIMEOUT; - pcb->settings.pap_max_transmits = UPAP_DEFTRANSMITS; -#if PPP_SERVER - pcb->settings.pap_req_timeout = UPAP_DEFREQTIME; -#endif /* PPP_SERVER */ -#endif /* PAP_SUPPORT */ - -#if CHAP_SUPPORT - pcb->settings.chap_timeout_time = CHAP_DEFTIMEOUT; - pcb->settings.chap_max_transmits = CHAP_DEFTRANSMITS; -#if PPP_SERVER - pcb->settings.chap_rechallenge_time = CHAP_DEFRECHALLENGETIME; -#endif /* PPP_SERVER */ -#endif /* CHAP_SUPPPORT */ - -#if EAP_SUPPORT - pcb->settings.eap_req_time = EAP_DEFREQTIME; - pcb->settings.eap_allow_req = EAP_DEFALLOWREQ; -#if PPP_SERVER - pcb->settings.eap_timeout_time = EAP_DEFTIMEOUT; - pcb->settings.eap_max_transmits = EAP_DEFTRANSMITS; -#endif /* PPP_SERVER */ -#endif /* EAP_SUPPORT */ - - pcb->settings.lcp_loopbackfail = LCP_DEFLOOPBACKFAIL; - pcb->settings.lcp_echo_interval = LCP_ECHOINTERVAL; - pcb->settings.lcp_echo_fails = LCP_MAXECHOFAILS; - - pcb->settings.fsm_timeout_time = FSM_DEFTIMEOUT; - pcb->settings.fsm_max_conf_req_transmits = FSM_DEFMAXCONFREQS; - pcb->settings.fsm_max_term_transmits = FSM_DEFMAXTERMREQS; - pcb->settings.fsm_max_nak_loops = FSM_DEFMAXNAKLOOPS; - - pcb->netif = pppif; - MIB2_INIT_NETIF(pppif, snmp_ifType_ppp, 0); - if (!netif_add(pcb->netif, -#if LWIP_IPV4 - IP4_ADDR_ANY4, IP4_ADDR_BROADCAST, IP4_ADDR_ANY4, -#endif /* LWIP_IPV4 */ - (void *)pcb, ppp_netif_init_cb, NULL)) { - LWIP_MEMPOOL_FREE(PPP_PCB, pcb); - PPPDEBUG(LOG_ERR, ("ppp_new: netif_add failed\n")); - return NULL; - } - - pcb->link_cb = callbacks; - pcb->link_ctx_cb = link_ctx_cb; - pcb->link_status_cb = link_status_cb; - pcb->ctx_cb = ctx_cb; - - /* - * Initialize each protocol. - */ - for (i = 0; (protp = protocols[i]) != NULL; ++i) { - (*protp->init)(pcb); - } - - new_phase(pcb, PPP_PHASE_DEAD); - return pcb; -} - -/** Initiate LCP open request */ -void ppp_start(ppp_pcb *pcb) { - PPPDEBUG(LOG_DEBUG, ("ppp_start[%d]\n", pcb->netif->num)); - - /* Clean data not taken care by anything else, mostly shared data. */ -#if PPP_STATS_SUPPORT - link_stats_valid = 0; -#endif /* PPP_STATS_SUPPORT */ -#if MPPE_SUPPORT - pcb->mppe_keys_set = 0; - memset(&pcb->mppe_comp, 0, sizeof(pcb->mppe_comp)); - memset(&pcb->mppe_decomp, 0, sizeof(pcb->mppe_decomp)); -#endif /* MPPE_SUPPORT */ -#if VJ_SUPPORT - vj_compress_init(&pcb->vj_comp); -#endif /* VJ_SUPPORT */ - - /* Start protocol */ - new_phase(pcb, PPP_PHASE_ESTABLISH); - lcp_open(pcb); - lcp_lowerup(pcb); - PPPDEBUG(LOG_DEBUG, ("ppp_start[%d]: finished\n", pcb->netif->num)); -} - -/** Called when link failed to setup */ -void ppp_link_failed(ppp_pcb *pcb) { - PPPDEBUG(LOG_DEBUG, ("ppp_link_failed[%d]\n", pcb->netif->num)); - new_phase(pcb, PPP_PHASE_DEAD); - pcb->err_code = PPPERR_OPEN; - pcb->link_status_cb(pcb, pcb->err_code, pcb->ctx_cb); -} - -/** Called when link is normally down (i.e. it was asked to end) */ -void ppp_link_end(ppp_pcb *pcb) { - PPPDEBUG(LOG_DEBUG, ("ppp_link_end[%d]\n", pcb->netif->num)); - new_phase(pcb, PPP_PHASE_DEAD); - if (pcb->err_code == PPPERR_NONE) { - pcb->err_code = PPPERR_CONNECT; - } - pcb->link_status_cb(pcb, pcb->err_code, pcb->ctx_cb); -} - -/* - * Pass the processed input packet to the appropriate handler. - * This function and all handlers run in the context of the tcpip_thread - */ -void ppp_input(ppp_pcb *pcb, struct pbuf *pb) { - u16_t protocol; -#if PPP_DEBUG && PPP_PROTOCOLNAME - const char *pname; -#endif /* PPP_DEBUG && PPP_PROTOCOLNAME */ - - magic_randomize(); - - if (pb->len < 2) { - PPPDEBUG(LOG_ERR, ("ppp_input[%d]: packet too short\n", pcb->netif->num)); - goto drop; - } - protocol = (((u8_t *)pb->payload)[0] << 8) | ((u8_t*)pb->payload)[1]; - -#if PRINTPKT_SUPPORT - ppp_dump_packet(pcb, "rcvd", (unsigned char *)pb->payload, pb->len); -#endif /* PRINTPKT_SUPPORT */ - - pbuf_remove_header(pb, sizeof(protocol)); - - LINK_STATS_INC(link.recv); - MIB2_STATS_NETIF_INC(pcb->netif, ifinucastpkts); - MIB2_STATS_NETIF_ADD(pcb->netif, ifinoctets, pb->tot_len); - - /* - * Toss all non-LCP packets unless LCP is OPEN. - */ - if (protocol != PPP_LCP && pcb->lcp_fsm.state != PPP_FSM_OPENED) { - ppp_dbglog("Discarded non-LCP packet when LCP not open"); - goto drop; - } - - /* - * Until we get past the authentication phase, toss all packets - * except LCP, LQR and authentication packets. - */ - if (pcb->phase <= PPP_PHASE_AUTHENTICATE - && !(protocol == PPP_LCP -#if LQR_SUPPORT - || protocol == PPP_LQR -#endif /* LQR_SUPPORT */ -#if PAP_SUPPORT - || protocol == PPP_PAP -#endif /* PAP_SUPPORT */ -#if CHAP_SUPPORT - || protocol == PPP_CHAP -#endif /* CHAP_SUPPORT */ -#if EAP_SUPPORT - || protocol == PPP_EAP -#endif /* EAP_SUPPORT */ - )) { - ppp_dbglog("discarding proto 0x%x in phase %d", protocol, pcb->phase); - goto drop; - } - -#if CCP_SUPPORT -#if MPPE_SUPPORT - /* - * MPPE is required and unencrypted data has arrived (this - * should never happen!). We should probably drop the link if - * the protocol is in the range of what should be encrypted. - * At the least, we drop this packet. - */ - if (pcb->settings.require_mppe && protocol != PPP_COMP && protocol < 0x8000) { - PPPDEBUG(LOG_ERR, ("ppp_input[%d]: MPPE required, received unencrypted data!\n", pcb->netif->num)); - goto drop; - } -#endif /* MPPE_SUPPORT */ - - if (protocol == PPP_COMP) { - u8_t *pl; - - switch (pcb->ccp_receive_method) { -#if MPPE_SUPPORT - case CI_MPPE: - if (mppe_decompress(pcb, &pcb->mppe_decomp, &pb) != ERR_OK) { - goto drop; - } - break; -#endif /* MPPE_SUPPORT */ - default: - PPPDEBUG(LOG_ERR, ("ppp_input[%d]: bad CCP receive method\n", pcb->netif->num)); - goto drop; /* Cannot really happen, we only negotiate what we are able to do */ - } - - /* Assume no PFC */ - if (pb->len < 2) { - goto drop; - } - - /* Extract and hide protocol (do PFC decompression if necessary) */ - pl = (u8_t*)pb->payload; - if (pl[0] & 0x01) { - protocol = pl[0]; - pbuf_remove_header(pb, 1); - } else { - protocol = (pl[0] << 8) | pl[1]; - pbuf_remove_header(pb, 2); - } - } -#endif /* CCP_SUPPORT */ - - switch(protocol) { - -#if PPP_IPV4_SUPPORT - case PPP_IP: /* Internet Protocol */ - PPPDEBUG(LOG_INFO, ("ppp_input[%d]: ip in pbuf len=%d\n", pcb->netif->num, pb->tot_len)); - ip4_input(pb, pcb->netif); - return; -#endif /* PPP_IPV4_SUPPORT */ - -#if PPP_IPV6_SUPPORT - case PPP_IPV6: /* Internet Protocol Version 6 */ - PPPDEBUG(LOG_INFO, ("ppp_input[%d]: ip6 in pbuf len=%d\n", pcb->netif->num, pb->tot_len)); - ip6_input(pb, pcb->netif); - return; -#endif /* PPP_IPV6_SUPPORT */ - -#if VJ_SUPPORT - case PPP_VJC_COMP: /* VJ compressed TCP */ - /* - * Clip off the VJ header and prepend the rebuilt TCP/IP header and - * pass the result to IP. - */ - PPPDEBUG(LOG_INFO, ("ppp_input[%d]: vj_comp in pbuf len=%d\n", pcb->netif->num, pb->tot_len)); - if (pcb->vj_enabled && vj_uncompress_tcp(&pb, &pcb->vj_comp) >= 0) { - ip4_input(pb, pcb->netif); - return; - } - /* Something's wrong so drop it. */ - PPPDEBUG(LOG_WARNING, ("ppp_input[%d]: Dropping VJ compressed\n", pcb->netif->num)); - break; - - case PPP_VJC_UNCOMP: /* VJ uncompressed TCP */ - /* - * Process the TCP/IP header for VJ header compression and then pass - * the packet to IP. - */ - PPPDEBUG(LOG_INFO, ("ppp_input[%d]: vj_un in pbuf len=%d\n", pcb->netif->num, pb->tot_len)); - if (pcb->vj_enabled && vj_uncompress_uncomp(pb, &pcb->vj_comp) >= 0) { - ip4_input(pb, pcb->netif); - return; - } - /* Something's wrong so drop it. */ - PPPDEBUG(LOG_WARNING, ("ppp_input[%d]: Dropping VJ uncompressed\n", pcb->netif->num)); - break; -#endif /* VJ_SUPPORT */ - - default: { - int i; - const struct protent *protp; - - /* - * Upcall the proper protocol input routine. - */ - for (i = 0; (protp = protocols[i]) != NULL; ++i) { - if (protp->protocol == protocol) { - pb = pbuf_coalesce(pb, PBUF_RAW); - (*protp->input)(pcb, (u8_t*)pb->payload, pb->len); - goto out; - } -#if 0 /* UNUSED - * - * This is actually a (hacked?) way for the Linux kernel to pass a data - * packet to pppd. pppd in normal condition only do signaling - * (LCP, PAP, CHAP, IPCP, ...) and does not handle any data packet at all. - * - * We don't even need this interface, which is only there because of PPP - * interface limitation between Linux kernel and pppd. For MPPE, which uses - * CCP to negotiate although it is not really a (de)compressor, we added - * ccp_resetrequest() in CCP and MPPE input data flow is calling either - * ccp_resetrequest() or lcp_close() if the issue is, respectively, non-fatal - * or fatal, this is what ccp_datainput() really do. - */ - if (protocol == (protp->protocol & ~0x8000) - && protp->datainput != NULL) { - (*protp->datainput)(pcb, pb->payload, pb->len); - goto out; - } -#endif /* UNUSED */ - } - -#if PPP_DEBUG -#if PPP_PROTOCOLNAME - pname = protocol_name(protocol); - if (pname != NULL) { - ppp_warn("Unsupported protocol '%s' (0x%x) received", pname, protocol); - } else -#endif /* PPP_PROTOCOLNAME */ - ppp_warn("Unsupported protocol 0x%x received", protocol); -#endif /* PPP_DEBUG */ - if (pbuf_add_header(pb, sizeof(protocol))) { - PPPDEBUG(LOG_WARNING, ("ppp_input[%d]: Dropping (pbuf_add_header failed)\n", pcb->netif->num)); - goto drop; - } - lcp_sprotrej(pcb, (u8_t*)pb->payload, pb->len); - } - break; - } - -drop: - LINK_STATS_INC(link.drop); - MIB2_STATS_NETIF_INC(pcb->netif, ifindiscards); - -out: - pbuf_free(pb); -} - -/* - * Write a pbuf to a ppp link, only used from PPP functions - * to send PPP packets. - * - * IPv4 and IPv6 packets from lwIP are sent, respectively, - * with ppp_netif_output_ip4() and ppp_netif_output_ip6() - * functions (which are callbacks of the netif PPP interface). - */ -err_t ppp_write(ppp_pcb *pcb, struct pbuf *p) { -#if PRINTPKT_SUPPORT - ppp_dump_packet(pcb, "sent", (unsigned char *)p->payload+2, p->len-2); -#endif /* PRINTPKT_SUPPORT */ - return pcb->link_cb->write(pcb, pcb->link_ctx_cb, p); -} - -void ppp_link_terminated(ppp_pcb *pcb) { - PPPDEBUG(LOG_DEBUG, ("ppp_link_terminated[%d]\n", pcb->netif->num)); - pcb->link_cb->disconnect(pcb, pcb->link_ctx_cb); - PPPDEBUG(LOG_DEBUG, ("ppp_link_terminated[%d]: finished.\n", pcb->netif->num)); -} - - -/************************************************************************ - * Functions called by various PPP subsystems to configure - * the PPP interface or change the PPP phase. - */ - -/* - * new_phase - signal the start of a new phase of pppd's operation. - */ -void new_phase(ppp_pcb *pcb, int p) { - pcb->phase = p; - PPPDEBUG(LOG_DEBUG, ("ppp phase changed[%d]: phase=%d\n", pcb->netif->num, pcb->phase)); -#if PPP_NOTIFY_PHASE - if (pcb->notify_phase_cb != NULL) { - pcb->notify_phase_cb(pcb, p, pcb->ctx_cb); - } -#endif /* PPP_NOTIFY_PHASE */ -} - -/* - * ppp_send_config - configure the transmit-side characteristics of - * the ppp interface. - */ -int ppp_send_config(ppp_pcb *pcb, int mtu, u32_t accm, int pcomp, int accomp) { - LWIP_UNUSED_ARG(mtu); - /* pcb->mtu = mtu; -- set correctly with netif_set_mtu */ - - if (pcb->link_cb->send_config) { - pcb->link_cb->send_config(pcb, pcb->link_ctx_cb, accm, pcomp, accomp); - } - - PPPDEBUG(LOG_INFO, ("ppp_send_config[%d]\n", pcb->netif->num) ); - return 0; -} - -/* - * ppp_recv_config - configure the receive-side characteristics of - * the ppp interface. - */ -int ppp_recv_config(ppp_pcb *pcb, int mru, u32_t accm, int pcomp, int accomp) { - LWIP_UNUSED_ARG(mru); - - if (pcb->link_cb->recv_config) { - pcb->link_cb->recv_config(pcb, pcb->link_ctx_cb, accm, pcomp, accomp); - } - - PPPDEBUG(LOG_INFO, ("ppp_recv_config[%d]\n", pcb->netif->num)); - return 0; -} - -#if PPP_IPV4_SUPPORT -/* - * sifaddr - Config the interface IP addresses and netmask. - */ -int sifaddr(ppp_pcb *pcb, u32_t our_adr, u32_t his_adr, u32_t netmask) { - ip4_addr_t ip, nm, gw; - - ip4_addr_set_u32(&ip, our_adr); - ip4_addr_set_u32(&nm, netmask); - ip4_addr_set_u32(&gw, his_adr); - netif_set_addr(pcb->netif, &ip, &nm, &gw); - return 1; -} - -/******************************************************************** - * - * cifaddr - Clear the interface IP addresses, and delete routes - * through the interface if possible. - */ -int cifaddr(ppp_pcb *pcb, u32_t our_adr, u32_t his_adr) { - LWIP_UNUSED_ARG(our_adr); - LWIP_UNUSED_ARG(his_adr); - - netif_set_addr(pcb->netif, IP4_ADDR_ANY4, IP4_ADDR_BROADCAST, IP4_ADDR_ANY4); - return 1; -} - -#if 0 /* UNUSED - PROXY ARP */ -/******************************************************************** - * - * sifproxyarp - Make a proxy ARP entry for the peer. - */ - -int sifproxyarp(ppp_pcb *pcb, u32_t his_adr) { - LWIP_UNUSED_ARG(pcb); - LWIP_UNUSED_ARG(his_adr); - return 0; -} - -/******************************************************************** - * - * cifproxyarp - Delete the proxy ARP entry for the peer. - */ - -int cifproxyarp(ppp_pcb *pcb, u32_t his_adr) { - LWIP_UNUSED_ARG(pcb); - LWIP_UNUSED_ARG(his_adr); - return 0; -} -#endif /* UNUSED - PROXY ARP */ - -#if LWIP_DNS -/* - * sdns - Config the DNS servers - */ -int sdns(ppp_pcb *pcb, u32_t ns1, u32_t ns2) { - ip_addr_t ns; - LWIP_UNUSED_ARG(pcb); - - ip_addr_set_ip4_u32_val(ns, ns1); - dns_setserver(0, &ns); - ip_addr_set_ip4_u32_val(ns, ns2); - dns_setserver(1, &ns); - return 1; -} - -/******************************************************************** - * - * cdns - Clear the DNS servers - */ -int cdns(ppp_pcb *pcb, u32_t ns1, u32_t ns2) { - const ip_addr_t *nsa; - ip_addr_t nsb; - LWIP_UNUSED_ARG(pcb); - - nsa = dns_getserver(0); - ip_addr_set_ip4_u32_val(nsb, ns1); - if (ip_addr_cmp(nsa, &nsb)) { - dns_setserver(0, IP_ADDR_ANY); - } - nsa = dns_getserver(1); - ip_addr_set_ip4_u32_val(nsb, ns2); - if (ip_addr_cmp(nsa, &nsb)) { - dns_setserver(1, IP_ADDR_ANY); - } - return 1; -} -#endif /* LWIP_DNS */ - -#if VJ_SUPPORT -/******************************************************************** - * - * sifvjcomp - config tcp header compression - */ -int sifvjcomp(ppp_pcb *pcb, int vjcomp, int cidcomp, int maxcid) { - pcb->vj_enabled = vjcomp; - pcb->vj_comp.compressSlot = cidcomp; - pcb->vj_comp.maxSlotIndex = maxcid; - PPPDEBUG(LOG_INFO, ("sifvjcomp[%d]: VJ compress enable=%d slot=%d max slot=%d\n", - pcb->netif->num, vjcomp, cidcomp, maxcid)); - return 0; -} -#endif /* VJ_SUPPORT */ - -/* - * sifup - Config the interface up and enable IP packets to pass. - */ -int sifup(ppp_pcb *pcb) { - pcb->if4_up = 1; - pcb->err_code = PPPERR_NONE; - netif_set_link_up(pcb->netif); - - PPPDEBUG(LOG_DEBUG, ("sifup[%d]: err_code=%d\n", pcb->netif->num, pcb->err_code)); - pcb->link_status_cb(pcb, pcb->err_code, pcb->ctx_cb); - return 1; -} - -/******************************************************************** - * - * sifdown - Disable the indicated protocol and config the interface - * down if there are no remaining protocols. - */ -int sifdown(ppp_pcb *pcb) { - - pcb->if4_up = 0; - - if (1 -#if PPP_IPV6_SUPPORT - /* set the interface down if IPv6 is down as well */ - && !pcb->if6_up -#endif /* PPP_IPV6_SUPPORT */ - ) { - /* make sure the netif link callback is called */ - netif_set_link_down(pcb->netif); - } - PPPDEBUG(LOG_DEBUG, ("sifdown[%d]: err_code=%d\n", pcb->netif->num, pcb->err_code)); - return 1; -} - -/******************************************************************** - * - * Return user specified netmask, modified by any mask we might determine - * for address `addr' (in network byte order). - * Here we scan through the system's list of interfaces, looking for - * any non-point-to-point interfaces which might appear to be on the same - * network as `addr'. If we find any, we OR in their netmask to the - * user-specified netmask. - */ -u32_t get_mask(u32_t addr) { -#if 0 - u32_t mask, nmask; - - addr = lwip_htonl(addr); - if (IP_CLASSA(addr)) { /* determine network mask for address class */ - nmask = IP_CLASSA_NET; - } else if (IP_CLASSB(addr)) { - nmask = IP_CLASSB_NET; - } else { - nmask = IP_CLASSC_NET; - } - - /* class D nets are disallowed by bad_ip_adrs */ - mask = PP_HTONL(0xffffff00UL) | lwip_htonl(nmask); - - /* XXX - * Scan through the system's network interfaces. - * Get each netmask and OR them into our mask. - */ - /* return mask; */ - return mask; -#endif /* 0 */ - LWIP_UNUSED_ARG(addr); - return IPADDR_BROADCAST; -} -#endif /* PPP_IPV4_SUPPORT */ - -#if PPP_IPV6_SUPPORT -#define IN6_LLADDR_FROM_EUI64(ip6, eui64) do { \ - ip6.addr[0] = PP_HTONL(0xfe800000); \ - ip6.addr[1] = 0; \ - eui64_copy(eui64, ip6.addr[2]); \ - } while (0) - -/******************************************************************** - * - * sif6addr - Config the interface with an IPv6 link-local address - */ -int sif6addr(ppp_pcb *pcb, eui64_t our_eui64, eui64_t his_eui64) { - ip6_addr_t ip6; - LWIP_UNUSED_ARG(his_eui64); - - IN6_LLADDR_FROM_EUI64(ip6, our_eui64); - netif_ip6_addr_set(pcb->netif, 0, &ip6); - netif_ip6_addr_set_state(pcb->netif, 0, IP6_ADDR_PREFERRED); - /* FIXME: should we add an IPv6 static neighbor using his_eui64 ? */ - return 1; -} - -/******************************************************************** - * - * cif6addr - Remove IPv6 address from interface - */ -int cif6addr(ppp_pcb *pcb, eui64_t our_eui64, eui64_t his_eui64) { - LWIP_UNUSED_ARG(our_eui64); - LWIP_UNUSED_ARG(his_eui64); - - netif_ip6_addr_set_state(pcb->netif, 0, IP6_ADDR_INVALID); - netif_ip6_addr_set(pcb->netif, 0, IP6_ADDR_ANY6); - return 1; -} - -/* - * sif6up - Config the interface up and enable IPv6 packets to pass. - */ -int sif6up(ppp_pcb *pcb) { - - pcb->if6_up = 1; - pcb->err_code = PPPERR_NONE; - netif_set_link_up(pcb->netif); - - PPPDEBUG(LOG_DEBUG, ("sif6up[%d]: err_code=%d\n", pcb->netif->num, pcb->err_code)); - pcb->link_status_cb(pcb, pcb->err_code, pcb->ctx_cb); - return 1; -} - -/******************************************************************** - * - * sif6down - Disable the indicated protocol and config the interface - * down if there are no remaining protocols. - */ -int sif6down(ppp_pcb *pcb) { - - pcb->if6_up = 0; - - if (1 -#if PPP_IPV4_SUPPORT - /* set the interface down if IPv4 is down as well */ - && !pcb->if4_up -#endif /* PPP_IPV4_SUPPORT */ - ) { - /* make sure the netif link callback is called */ - netif_set_link_down(pcb->netif); - } - PPPDEBUG(LOG_DEBUG, ("sif6down[%d]: err_code=%d\n", pcb->netif->num, pcb->err_code)); - return 1; -} -#endif /* PPP_IPV6_SUPPORT */ - -#if DEMAND_SUPPORT -/* - * sifnpmode - Set the mode for handling packets for a given NP. - */ -int sifnpmode(ppp_pcb *pcb, int proto, enum NPmode mode) { - LWIP_UNUSED_ARG(pcb); - LWIP_UNUSED_ARG(proto); - LWIP_UNUSED_ARG(mode); - return 0; -} -#endif /* DEMAND_SUPPORT */ - -/* - * netif_set_mtu - set the MTU on the PPP network interface. - */ -void netif_set_mtu(ppp_pcb *pcb, int mtu) { - - pcb->netif->mtu = mtu; - PPPDEBUG(LOG_INFO, ("netif_set_mtu[%d]: mtu=%d\n", pcb->netif->num, mtu)); -} - -/* - * netif_get_mtu - get PPP interface MTU - */ -int netif_get_mtu(ppp_pcb *pcb) { - - return pcb->netif->mtu; -} - -#if CCP_SUPPORT -#if 0 /* unused */ -/* - * ccp_test - whether a given compression method is acceptable for use. - */ -int -ccp_test(ppp_pcb *pcb, u_char *opt_ptr, int opt_len, int for_transmit) -{ - LWIP_UNUSED_ARG(pcb); - LWIP_UNUSED_ARG(opt_ptr); - LWIP_UNUSED_ARG(opt_len); - LWIP_UNUSED_ARG(for_transmit); - return -1; -} -#endif /* unused */ - -/* - * ccp_set - inform about the current state of CCP. - */ -void -ccp_set(ppp_pcb *pcb, u8_t isopen, u8_t isup, u8_t receive_method, u8_t transmit_method) -{ - LWIP_UNUSED_ARG(isopen); - LWIP_UNUSED_ARG(isup); - pcb->ccp_receive_method = receive_method; - pcb->ccp_transmit_method = transmit_method; - PPPDEBUG(LOG_DEBUG, ("ccp_set[%d]: is_open=%d, is_up=%d, receive_method=%u, transmit_method=%u\n", - pcb->netif->num, isopen, isup, receive_method, transmit_method)); -} - -void -ccp_reset_comp(ppp_pcb *pcb) -{ - switch (pcb->ccp_transmit_method) { -#if MPPE_SUPPORT - case CI_MPPE: - mppe_comp_reset(pcb, &pcb->mppe_comp); - break; -#endif /* MPPE_SUPPORT */ - default: - break; - } -} - -void -ccp_reset_decomp(ppp_pcb *pcb) -{ - switch (pcb->ccp_receive_method) { -#if MPPE_SUPPORT - case CI_MPPE: - mppe_decomp_reset(pcb, &pcb->mppe_decomp); - break; -#endif /* MPPE_SUPPORT */ - default: - break; - } -} - -#if 0 /* unused */ -/* - * ccp_fatal_error - returns 1 if decompression was disabled as a - * result of an error detected after decompression of a packet, - * 0 otherwise. This is necessary because of patent nonsense. - */ -int -ccp_fatal_error(ppp_pcb *pcb) -{ - LWIP_UNUSED_ARG(pcb); - return 1; -} -#endif /* unused */ -#endif /* CCP_SUPPORT */ - -#if PPP_IDLETIMELIMIT -/******************************************************************** - * - * get_idle_time - return how long the link has been idle. - */ -int get_idle_time(ppp_pcb *pcb, struct ppp_idle *ip) { - /* FIXME: add idle time support and make it optional */ - LWIP_UNUSED_ARG(pcb); - LWIP_UNUSED_ARG(ip); - return 1; -} -#endif /* PPP_IDLETIMELIMIT */ - -#if DEMAND_SUPPORT -/******************************************************************** - * - * get_loop_output - get outgoing packets from the ppp device, - * and detect when we want to bring the real link up. - * Return value is 1 if we need to bring up the link, 0 otherwise. - */ -int get_loop_output(void) { - return 0; -} -#endif /* DEMAND_SUPPORT */ - -#if PPP_PROTOCOLNAME -/* List of protocol names, to make our messages a little more informative. */ -struct protocol_list { - u_short proto; - const char *name; -} const protocol_list[] = { - { 0x21, "IP" }, - { 0x23, "OSI Network Layer" }, - { 0x25, "Xerox NS IDP" }, - { 0x27, "DECnet Phase IV" }, - { 0x29, "Appletalk" }, - { 0x2b, "Novell IPX" }, - { 0x2d, "VJ compressed TCP/IP" }, - { 0x2f, "VJ uncompressed TCP/IP" }, - { 0x31, "Bridging PDU" }, - { 0x33, "Stream Protocol ST-II" }, - { 0x35, "Banyan Vines" }, - { 0x39, "AppleTalk EDDP" }, - { 0x3b, "AppleTalk SmartBuffered" }, - { 0x3d, "Multi-Link" }, - { 0x3f, "NETBIOS Framing" }, - { 0x41, "Cisco Systems" }, - { 0x43, "Ascom Timeplex" }, - { 0x45, "Fujitsu Link Backup and Load Balancing (LBLB)" }, - { 0x47, "DCA Remote Lan" }, - { 0x49, "Serial Data Transport Protocol (PPP-SDTP)" }, - { 0x4b, "SNA over 802.2" }, - { 0x4d, "SNA" }, - { 0x4f, "IP6 Header Compression" }, - { 0x51, "KNX Bridging Data" }, - { 0x53, "Encryption" }, - { 0x55, "Individual Link Encryption" }, - { 0x57, "IPv6" }, - { 0x59, "PPP Muxing" }, - { 0x5b, "Vendor-Specific Network Protocol" }, - { 0x61, "RTP IPHC Full Header" }, - { 0x63, "RTP IPHC Compressed TCP" }, - { 0x65, "RTP IPHC Compressed non-TCP" }, - { 0x67, "RTP IPHC Compressed UDP 8" }, - { 0x69, "RTP IPHC Compressed RTP 8" }, - { 0x6f, "Stampede Bridging" }, - { 0x73, "MP+" }, - { 0xc1, "NTCITS IPI" }, - { 0xfb, "single-link compression" }, - { 0xfd, "Compressed Datagram" }, - { 0x0201, "802.1d Hello Packets" }, - { 0x0203, "IBM Source Routing BPDU" }, - { 0x0205, "DEC LANBridge100 Spanning Tree" }, - { 0x0207, "Cisco Discovery Protocol" }, - { 0x0209, "Netcs Twin Routing" }, - { 0x020b, "STP - Scheduled Transfer Protocol" }, - { 0x020d, "EDP - Extreme Discovery Protocol" }, - { 0x0211, "Optical Supervisory Channel Protocol" }, - { 0x0213, "Optical Supervisory Channel Protocol" }, - { 0x0231, "Luxcom" }, - { 0x0233, "Sigma Network Systems" }, - { 0x0235, "Apple Client Server Protocol" }, - { 0x0281, "MPLS Unicast" }, - { 0x0283, "MPLS Multicast" }, - { 0x0285, "IEEE p1284.4 standard - data packets" }, - { 0x0287, "ETSI TETRA Network Protocol Type 1" }, - { 0x0289, "Multichannel Flow Treatment Protocol" }, - { 0x2063, "RTP IPHC Compressed TCP No Delta" }, - { 0x2065, "RTP IPHC Context State" }, - { 0x2067, "RTP IPHC Compressed UDP 16" }, - { 0x2069, "RTP IPHC Compressed RTP 16" }, - { 0x4001, "Cray Communications Control Protocol" }, - { 0x4003, "CDPD Mobile Network Registration Protocol" }, - { 0x4005, "Expand accelerator protocol" }, - { 0x4007, "ODSICP NCP" }, - { 0x4009, "DOCSIS DLL" }, - { 0x400B, "Cetacean Network Detection Protocol" }, - { 0x4021, "Stacker LZS" }, - { 0x4023, "RefTek Protocol" }, - { 0x4025, "Fibre Channel" }, - { 0x4027, "EMIT Protocols" }, - { 0x405b, "Vendor-Specific Protocol (VSP)" }, - { 0x8021, "Internet Protocol Control Protocol" }, - { 0x8023, "OSI Network Layer Control Protocol" }, - { 0x8025, "Xerox NS IDP Control Protocol" }, - { 0x8027, "DECnet Phase IV Control Protocol" }, - { 0x8029, "Appletalk Control Protocol" }, - { 0x802b, "Novell IPX Control Protocol" }, - { 0x8031, "Bridging NCP" }, - { 0x8033, "Stream Protocol Control Protocol" }, - { 0x8035, "Banyan Vines Control Protocol" }, - { 0x803d, "Multi-Link Control Protocol" }, - { 0x803f, "NETBIOS Framing Control Protocol" }, - { 0x8041, "Cisco Systems Control Protocol" }, - { 0x8043, "Ascom Timeplex" }, - { 0x8045, "Fujitsu LBLB Control Protocol" }, - { 0x8047, "DCA Remote Lan Network Control Protocol (RLNCP)" }, - { 0x8049, "Serial Data Control Protocol (PPP-SDCP)" }, - { 0x804b, "SNA over 802.2 Control Protocol" }, - { 0x804d, "SNA Control Protocol" }, - { 0x804f, "IP6 Header Compression Control Protocol" }, - { 0x8051, "KNX Bridging Control Protocol" }, - { 0x8053, "Encryption Control Protocol" }, - { 0x8055, "Individual Link Encryption Control Protocol" }, - { 0x8057, "IPv6 Control Protocol" }, - { 0x8059, "PPP Muxing Control Protocol" }, - { 0x805b, "Vendor-Specific Network Control Protocol (VSNCP)" }, - { 0x806f, "Stampede Bridging Control Protocol" }, - { 0x8073, "MP+ Control Protocol" }, - { 0x80c1, "NTCITS IPI Control Protocol" }, - { 0x80fb, "Single Link Compression Control Protocol" }, - { 0x80fd, "Compression Control Protocol" }, - { 0x8207, "Cisco Discovery Protocol Control" }, - { 0x8209, "Netcs Twin Routing" }, - { 0x820b, "STP - Control Protocol" }, - { 0x820d, "EDPCP - Extreme Discovery Protocol Ctrl Prtcl" }, - { 0x8235, "Apple Client Server Protocol Control" }, - { 0x8281, "MPLSCP" }, - { 0x8285, "IEEE p1284.4 standard - Protocol Control" }, - { 0x8287, "ETSI TETRA TNP1 Control Protocol" }, - { 0x8289, "Multichannel Flow Treatment Protocol" }, - { 0xc021, "Link Control Protocol" }, - { 0xc023, "Password Authentication Protocol" }, - { 0xc025, "Link Quality Report" }, - { 0xc027, "Shiva Password Authentication Protocol" }, - { 0xc029, "CallBack Control Protocol (CBCP)" }, - { 0xc02b, "BACP Bandwidth Allocation Control Protocol" }, - { 0xc02d, "BAP" }, - { 0xc05b, "Vendor-Specific Authentication Protocol (VSAP)" }, - { 0xc081, "Container Control Protocol" }, - { 0xc223, "Challenge Handshake Authentication Protocol" }, - { 0xc225, "RSA Authentication Protocol" }, - { 0xc227, "Extensible Authentication Protocol" }, - { 0xc229, "Mitsubishi Security Info Exch Ptcl (SIEP)" }, - { 0xc26f, "Stampede Bridging Authorization Protocol" }, - { 0xc281, "Proprietary Authentication Protocol" }, - { 0xc283, "Proprietary Authentication Protocol" }, - { 0xc481, "Proprietary Node ID Authentication Protocol" }, - { 0, NULL }, -}; - -/* - * protocol_name - find a name for a PPP protocol. - */ -const char * protocol_name(int proto) { - const struct protocol_list *lp; - - for (lp = protocol_list; lp->proto != 0; ++lp) { - if (proto == lp->proto) { - return lp->name; - } - } - return NULL; -} -#endif /* PPP_PROTOCOLNAME */ - -#if PPP_STATS_SUPPORT - -/* ---- Note on PPP Stats support ---- - * - * The one willing link stats support should add the get_ppp_stats() - * to fetch statistics from lwIP. - */ - -/* - * reset_link_stats - "reset" stats when link goes up. - */ -void reset_link_stats(int u) { - if (!get_ppp_stats(u, &old_link_stats)) { - return; - } - gettimeofday(&start_time, NULL); -} - -/* - * update_link_stats - get stats at link termination. - */ -void update_link_stats(int u) { - struct timeval now; - char numbuf[32]; - - if (!get_ppp_stats(u, &link_stats) || gettimeofday(&now, NULL) < 0) { - return; - } - link_connect_time = now.tv_sec - start_time.tv_sec; - link_stats_valid = 1; - - link_stats.bytes_in -= old_link_stats.bytes_in; - link_stats.bytes_out -= old_link_stats.bytes_out; - link_stats.pkts_in -= old_link_stats.pkts_in; - link_stats.pkts_out -= old_link_stats.pkts_out; -} - -void print_link_stats() { - /* - * Print connect time and statistics. - */ - if (link_stats_valid) { - int t = (link_connect_time + 5) / 6; /* 1/10ths of minutes */ - info("Connect time %d.%d minutes.", t/10, t%10); - info("Sent %u bytes, received %u bytes.", link_stats.bytes_out, link_stats.bytes_in); - link_stats_valid = 0; - } -} -#endif /* PPP_STATS_SUPPORT */ - -#endif /* PPP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.c b/Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.c deleted file mode 100644 index 947f7ba..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/ppp/pppapi.c +++ /dev/null @@ -1,427 +0,0 @@ -/** - * @file - * Point To Point Protocol Sequential API module - * - */ - -/* - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - */ - -#include "netif/ppp/ppp_opts.h" - -#if LWIP_PPP_API /* don't build if not configured for use in lwipopts.h */ - -#include "netif/ppp/pppapi.h" -#include "lwip/priv/tcpip_priv.h" -#include "netif/ppp/pppoe.h" -#include "netif/ppp/pppol2tp.h" -#include "netif/ppp/pppos.h" - -#if LWIP_MPU_COMPATIBLE -LWIP_MEMPOOL_DECLARE(PPPAPI_MSG, MEMP_NUM_PPP_API_MSG, sizeof(struct pppapi_msg), "PPPAPI_MSG") -#endif - -#define PPPAPI_VAR_REF(name) API_VAR_REF(name) -#define PPPAPI_VAR_DECLARE(name) API_VAR_DECLARE(struct pppapi_msg, name) -#define PPPAPI_VAR_ALLOC(name) API_VAR_ALLOC_POOL(struct pppapi_msg, PPPAPI_MSG, name, ERR_MEM) -#define PPPAPI_VAR_ALLOC_RETURN_NULL(name) API_VAR_ALLOC_POOL(struct pppapi_msg, PPPAPI_MSG, name, NULL) -#define PPPAPI_VAR_FREE(name) API_VAR_FREE_POOL(PPPAPI_MSG, name) - -/** - * Call ppp_set_default() inside the tcpip_thread context. - */ -static err_t -pppapi_do_ppp_set_default(struct tcpip_api_call_data *m) -{ - /* cast through void* to silence alignment warnings. - * We know it works because the structs have been instantiated as struct pppapi_msg */ - struct pppapi_msg *msg = (struct pppapi_msg *)(void*)m; - - ppp_set_default(msg->msg.ppp); - return ERR_OK; -} - -/** - * Call ppp_set_default() in a thread-safe way by running that function inside the - * tcpip_thread context. - */ -err_t -pppapi_set_default(ppp_pcb *pcb) -{ - err_t err; - PPPAPI_VAR_DECLARE(msg); - PPPAPI_VAR_ALLOC(msg); - - PPPAPI_VAR_REF(msg).msg.ppp = pcb; - err = tcpip_api_call(pppapi_do_ppp_set_default, &PPPAPI_VAR_REF(msg).call); - PPPAPI_VAR_FREE(msg); - return err; -} - - -#if PPP_NOTIFY_PHASE -/** - * Call ppp_set_notify_phase_callback() inside the tcpip_thread context. - */ -static err_t -pppapi_do_ppp_set_notify_phase_callback(struct tcpip_api_call_data *m) -{ - /* cast through void* to silence alignment warnings. - * We know it works because the structs have been instantiated as struct pppapi_msg */ - struct pppapi_msg *msg = (struct pppapi_msg *)(void*)m; - - ppp_set_notify_phase_callback(msg->msg.ppp, msg->msg.msg.setnotifyphasecb.notify_phase_cb); - return ERR_OK; -} - -/** - * Call ppp_set_notify_phase_callback() in a thread-safe way by running that function inside the - * tcpip_thread context. - */ -err_t -pppapi_set_notify_phase_callback(ppp_pcb *pcb, ppp_notify_phase_cb_fn notify_phase_cb) -{ - err_t err; - PPPAPI_VAR_DECLARE(msg); - PPPAPI_VAR_ALLOC(msg); - - PPPAPI_VAR_REF(msg).msg.ppp = pcb; - PPPAPI_VAR_REF(msg).msg.msg.setnotifyphasecb.notify_phase_cb = notify_phase_cb; - err = tcpip_api_call(pppapi_do_ppp_set_notify_phase_callback, &PPPAPI_VAR_REF(msg).call); - PPPAPI_VAR_FREE(msg); - return err; -} -#endif /* PPP_NOTIFY_PHASE */ - - -#if PPPOS_SUPPORT -/** - * Call pppos_create() inside the tcpip_thread context. - */ -static err_t -pppapi_do_pppos_create(struct tcpip_api_call_data *m) -{ - /* cast through void* to silence alignment warnings. - * We know it works because the structs have been instantiated as struct pppapi_msg */ - struct pppapi_msg *msg = (struct pppapi_msg *)(void*)m; - - msg->msg.ppp = pppos_create(msg->msg.msg.serialcreate.pppif, msg->msg.msg.serialcreate.output_cb, - msg->msg.msg.serialcreate.link_status_cb, msg->msg.msg.serialcreate.ctx_cb); - return ERR_OK; -} - -/** - * Call pppos_create() in a thread-safe way by running that function inside the - * tcpip_thread context. - */ -ppp_pcb* -pppapi_pppos_create(struct netif *pppif, pppos_output_cb_fn output_cb, - ppp_link_status_cb_fn link_status_cb, void *ctx_cb) -{ - ppp_pcb* result; - PPPAPI_VAR_DECLARE(msg); - PPPAPI_VAR_ALLOC_RETURN_NULL(msg); - - PPPAPI_VAR_REF(msg).msg.ppp = NULL; - PPPAPI_VAR_REF(msg).msg.msg.serialcreate.pppif = pppif; - PPPAPI_VAR_REF(msg).msg.msg.serialcreate.output_cb = output_cb; - PPPAPI_VAR_REF(msg).msg.msg.serialcreate.link_status_cb = link_status_cb; - PPPAPI_VAR_REF(msg).msg.msg.serialcreate.ctx_cb = ctx_cb; - tcpip_api_call(pppapi_do_pppos_create, &PPPAPI_VAR_REF(msg).call); - result = PPPAPI_VAR_REF(msg).msg.ppp; - PPPAPI_VAR_FREE(msg); - return result; -} -#endif /* PPPOS_SUPPORT */ - - -#if PPPOE_SUPPORT -/** - * Call pppoe_create() inside the tcpip_thread context. - */ -static err_t -pppapi_do_pppoe_create(struct tcpip_api_call_data *m) -{ - /* cast through void* to silence alignment warnings. - * We know it works because the structs have been instantiated as struct pppapi_msg */ - struct pppapi_msg *msg = (struct pppapi_msg *)(void*)m; - - msg->msg.ppp = pppoe_create(msg->msg.msg.ethernetcreate.pppif, msg->msg.msg.ethernetcreate.ethif, - msg->msg.msg.ethernetcreate.service_name, msg->msg.msg.ethernetcreate.concentrator_name, - msg->msg.msg.ethernetcreate.link_status_cb, msg->msg.msg.ethernetcreate.ctx_cb); - return ERR_OK; -} - -/** - * Call pppoe_create() in a thread-safe way by running that function inside the - * tcpip_thread context. - */ -ppp_pcb* -pppapi_pppoe_create(struct netif *pppif, struct netif *ethif, const char *service_name, - const char *concentrator_name, ppp_link_status_cb_fn link_status_cb, - void *ctx_cb) -{ - ppp_pcb* result; - PPPAPI_VAR_DECLARE(msg); - PPPAPI_VAR_ALLOC_RETURN_NULL(msg); - - PPPAPI_VAR_REF(msg).msg.ppp = NULL; - PPPAPI_VAR_REF(msg).msg.msg.ethernetcreate.pppif = pppif; - PPPAPI_VAR_REF(msg).msg.msg.ethernetcreate.ethif = ethif; - PPPAPI_VAR_REF(msg).msg.msg.ethernetcreate.service_name = service_name; - PPPAPI_VAR_REF(msg).msg.msg.ethernetcreate.concentrator_name = concentrator_name; - PPPAPI_VAR_REF(msg).msg.msg.ethernetcreate.link_status_cb = link_status_cb; - PPPAPI_VAR_REF(msg).msg.msg.ethernetcreate.ctx_cb = ctx_cb; - tcpip_api_call(pppapi_do_pppoe_create, &PPPAPI_VAR_REF(msg).call); - result = PPPAPI_VAR_REF(msg).msg.ppp; - PPPAPI_VAR_FREE(msg); - return result; -} -#endif /* PPPOE_SUPPORT */ - - -#if PPPOL2TP_SUPPORT -/** - * Call pppol2tp_create() inside the tcpip_thread context. - */ -static err_t -pppapi_do_pppol2tp_create(struct tcpip_api_call_data *m) -{ - /* cast through void* to silence alignment warnings. - * We know it works because the structs have been instantiated as struct pppapi_msg */ - struct pppapi_msg *msg = (struct pppapi_msg *)(void*)m; - - msg->msg.ppp = pppol2tp_create(msg->msg.msg.l2tpcreate.pppif, - msg->msg.msg.l2tpcreate.netif, API_EXPR_REF(msg->msg.msg.l2tpcreate.ipaddr), msg->msg.msg.l2tpcreate.port, -#if PPPOL2TP_AUTH_SUPPORT - msg->msg.msg.l2tpcreate.secret, - msg->msg.msg.l2tpcreate.secret_len, -#else /* PPPOL2TP_AUTH_SUPPORT */ - NULL, - 0, -#endif /* PPPOL2TP_AUTH_SUPPORT */ - msg->msg.msg.l2tpcreate.link_status_cb, msg->msg.msg.l2tpcreate.ctx_cb); - return ERR_OK; -} - -/** - * Call pppol2tp_create() in a thread-safe way by running that function inside the - * tcpip_thread context. - */ -ppp_pcb* -pppapi_pppol2tp_create(struct netif *pppif, struct netif *netif, ip_addr_t *ipaddr, u16_t port, - const u8_t *secret, u8_t secret_len, - ppp_link_status_cb_fn link_status_cb, void *ctx_cb) -{ - ppp_pcb* result; - PPPAPI_VAR_DECLARE(msg); - PPPAPI_VAR_ALLOC_RETURN_NULL(msg); -#if !PPPOL2TP_AUTH_SUPPORT - LWIP_UNUSED_ARG(secret); - LWIP_UNUSED_ARG(secret_len); -#endif /* !PPPOL2TP_AUTH_SUPPORT */ - - PPPAPI_VAR_REF(msg).msg.ppp = NULL; - PPPAPI_VAR_REF(msg).msg.msg.l2tpcreate.pppif = pppif; - PPPAPI_VAR_REF(msg).msg.msg.l2tpcreate.netif = netif; - PPPAPI_VAR_REF(msg).msg.msg.l2tpcreate.ipaddr = PPPAPI_VAR_REF(ipaddr); - PPPAPI_VAR_REF(msg).msg.msg.l2tpcreate.port = port; -#if PPPOL2TP_AUTH_SUPPORT - PPPAPI_VAR_REF(msg).msg.msg.l2tpcreate.secret = secret; - PPPAPI_VAR_REF(msg).msg.msg.l2tpcreate.secret_len = secret_len; -#endif /* PPPOL2TP_AUTH_SUPPORT */ - PPPAPI_VAR_REF(msg).msg.msg.l2tpcreate.link_status_cb = link_status_cb; - PPPAPI_VAR_REF(msg).msg.msg.l2tpcreate.ctx_cb = ctx_cb; - tcpip_api_call(pppapi_do_pppol2tp_create, &PPPAPI_VAR_REF(msg).call); - result = PPPAPI_VAR_REF(msg).msg.ppp; - PPPAPI_VAR_FREE(msg); - return result; -} -#endif /* PPPOL2TP_SUPPORT */ - - -/** - * Call ppp_connect() inside the tcpip_thread context. - */ -static err_t -pppapi_do_ppp_connect(struct tcpip_api_call_data *m) -{ - /* cast through void* to silence alignment warnings. - * We know it works because the structs have been instantiated as struct pppapi_msg */ - struct pppapi_msg *msg = (struct pppapi_msg *)(void*)m; - - return ppp_connect(msg->msg.ppp, msg->msg.msg.connect.holdoff); -} - -/** - * Call ppp_connect() in a thread-safe way by running that function inside the - * tcpip_thread context. - */ -err_t -pppapi_connect(ppp_pcb *pcb, u16_t holdoff) -{ - err_t err; - PPPAPI_VAR_DECLARE(msg); - PPPAPI_VAR_ALLOC(msg); - - PPPAPI_VAR_REF(msg).msg.ppp = pcb; - PPPAPI_VAR_REF(msg).msg.msg.connect.holdoff = holdoff; - err = tcpip_api_call(pppapi_do_ppp_connect, &PPPAPI_VAR_REF(msg).call); - PPPAPI_VAR_FREE(msg); - return err; -} - - -#if PPP_SERVER -/** - * Call ppp_listen() inside the tcpip_thread context. - */ -static err_t -pppapi_do_ppp_listen(struct tcpip_api_call_data *m) -{ - /* cast through void* to silence alignment warnings. - * We know it works because the structs have been instantiated as struct pppapi_msg */ - struct pppapi_msg *msg = (struct pppapi_msg *)(void*)m; - - return ppp_listen(msg->msg.ppp); -} - -/** - * Call ppp_listen() in a thread-safe way by running that function inside the - * tcpip_thread context. - */ -err_t -pppapi_listen(ppp_pcb *pcb) -{ - err_t err; - PPPAPI_VAR_DECLARE(msg); - PPPAPI_VAR_ALLOC(msg); - - PPPAPI_VAR_REF(msg).msg.ppp = pcb; - err = tcpip_api_call(pppapi_do_ppp_listen, &PPPAPI_VAR_REF(msg).call); - PPPAPI_VAR_FREE(msg); - return err; -} -#endif /* PPP_SERVER */ - - -/** - * Call ppp_close() inside the tcpip_thread context. - */ -static err_t -pppapi_do_ppp_close(struct tcpip_api_call_data *m) -{ - /* cast through void* to silence alignment warnings. - * We know it works because the structs have been instantiated as struct pppapi_msg */ - struct pppapi_msg *msg = (struct pppapi_msg *)(void*)m; - - return ppp_close(msg->msg.ppp, msg->msg.msg.close.nocarrier); -} - -/** - * Call ppp_close() in a thread-safe way by running that function inside the - * tcpip_thread context. - */ -err_t -pppapi_close(ppp_pcb *pcb, u8_t nocarrier) -{ - err_t err; - PPPAPI_VAR_DECLARE(msg); - PPPAPI_VAR_ALLOC(msg); - - PPPAPI_VAR_REF(msg).msg.ppp = pcb; - PPPAPI_VAR_REF(msg).msg.msg.close.nocarrier = nocarrier; - err = tcpip_api_call(pppapi_do_ppp_close, &PPPAPI_VAR_REF(msg).call); - PPPAPI_VAR_FREE(msg); - return err; -} - - -/** - * Call ppp_free() inside the tcpip_thread context. - */ -static err_t -pppapi_do_ppp_free(struct tcpip_api_call_data *m) -{ - /* cast through void* to silence alignment warnings. - * We know it works because the structs have been instantiated as struct pppapi_msg */ - struct pppapi_msg *msg = (struct pppapi_msg *)(void*)m; - - return ppp_free(msg->msg.ppp); -} - -/** - * Call ppp_free() in a thread-safe way by running that function inside the - * tcpip_thread context. - */ -err_t -pppapi_free(ppp_pcb *pcb) -{ - err_t err; - PPPAPI_VAR_DECLARE(msg); - PPPAPI_VAR_ALLOC(msg); - - PPPAPI_VAR_REF(msg).msg.ppp = pcb; - err = tcpip_api_call(pppapi_do_ppp_free, &PPPAPI_VAR_REF(msg).call); - PPPAPI_VAR_FREE(msg); - return err; -} - - -/** - * Call ppp_ioctl() inside the tcpip_thread context. - */ -static err_t -pppapi_do_ppp_ioctl(struct tcpip_api_call_data *m) -{ - /* cast through void* to silence alignment warnings. - * We know it works because the structs have been instantiated as struct pppapi_msg */ - struct pppapi_msg *msg = (struct pppapi_msg *)(void*)m; - - return ppp_ioctl(msg->msg.ppp, msg->msg.msg.ioctl.cmd, msg->msg.msg.ioctl.arg); -} - -/** - * Call ppp_ioctl() in a thread-safe way by running that function inside the - * tcpip_thread context. - */ -err_t -pppapi_ioctl(ppp_pcb *pcb, u8_t cmd, void *arg) -{ - err_t err; - PPPAPI_VAR_DECLARE(msg); - PPPAPI_VAR_ALLOC(msg); - - PPPAPI_VAR_REF(msg).msg.ppp = pcb; - PPPAPI_VAR_REF(msg).msg.msg.ioctl.cmd = cmd; - PPPAPI_VAR_REF(msg).msg.msg.ioctl.arg = arg; - err = tcpip_api_call(pppapi_do_ppp_ioctl, &PPPAPI_VAR_REF(msg).call); - PPPAPI_VAR_FREE(msg); - return err; -} - -#endif /* LWIP_PPP_API */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.c b/Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.c deleted file mode 100644 index 82d78c1..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/ppp/pppcrypt.c +++ /dev/null @@ -1,66 +0,0 @@ -/* - * pppcrypt.c - PPP/DES linkage for MS-CHAP and EAP SRP-SHA1 - * - * Extracted from chap_ms.c by James Carlson. - * - * Copyright (c) 1995 Eric Rosenquist. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The name(s) of the authors of this software must not be used to - * endorse or promote products derived from this software without - * prior written permission. - * - * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY - * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && MSCHAP_SUPPORT /* don't build if not necessary */ - -#include "netif/ppp/ppp_impl.h" - -#include "netif/ppp/pppcrypt.h" - - -static u_char pppcrypt_get_7bits(u_char *input, int startBit) { - unsigned int word; - - word = (unsigned)input[startBit / 8] << 8; - word |= (unsigned)input[startBit / 8 + 1]; - - word >>= 15 - (startBit % 8 + 7); - - return word & 0xFE; -} - -/* IN 56 bit DES key missing parity bits - * OUT 64 bit DES key with parity bits added - */ -void pppcrypt_56_to_64_bit_key(u_char *key, u_char * des_key) { - des_key[0] = pppcrypt_get_7bits(key, 0); - des_key[1] = pppcrypt_get_7bits(key, 7); - des_key[2] = pppcrypt_get_7bits(key, 14); - des_key[3] = pppcrypt_get_7bits(key, 21); - des_key[4] = pppcrypt_get_7bits(key, 28); - des_key[5] = pppcrypt_get_7bits(key, 35); - des_key[6] = pppcrypt_get_7bits(key, 42); - des_key[7] = pppcrypt_get_7bits(key, 49); -} - -#endif /* PPP_SUPPORT && MSCHAP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.c b/Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.c deleted file mode 100644 index 8ed2d63..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/ppp/pppoe.c +++ /dev/null @@ -1,1201 +0,0 @@ -/***************************************************************************** -* pppoe.c - PPP Over Ethernet implementation for lwIP. -* -* Copyright (c) 2006 by Marc Boucher, Services Informatiques (MBSI) inc. -* -* The authors hereby grant permission to use, copy, modify, distribute, -* and license this software and its documentation for any purpose, provided -* that existing copyright notices are retained in all copies and that this -* notice and the following disclaimer are included verbatim in any -* distributions. No written agreement, license, or royalty fee is required -* for any of the authorized uses. -* -* THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS *AS IS* AND ANY EXPRESS OR -* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -* IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT -* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -* -****************************************************************************** -* REVISION HISTORY -* -* 06-01-01 Marc Boucher -* Ported to lwIP. -*****************************************************************************/ - - - -/* based on NetBSD: if_pppoe.c,v 1.64 2006/01/31 23:50:15 martin Exp */ - -/*- - * Copyright (c) 2002 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Martin Husemann . - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the NetBSD - * Foundation, Inc. and its contributors. - * 4. Neither the name of The NetBSD Foundation nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS - * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && PPPOE_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#if 0 /* UNUSED */ -#include -#include -#endif /* UNUSED */ - -#include "lwip/timeouts.h" -#include "lwip/memp.h" -#include "lwip/stats.h" -#include "lwip/snmp.h" - -#include "netif/ethernet.h" -#include "netif/ppp/ppp_impl.h" -#include "netif/ppp/lcp.h" -#include "netif/ppp/ipcp.h" -#include "netif/ppp/pppoe.h" - -/* Memory pool */ -LWIP_MEMPOOL_DECLARE(PPPOE_IF, MEMP_NUM_PPPOE_INTERFACES, sizeof(struct pppoe_softc), "PPPOE_IF") - -/* Add a 16 bit unsigned value to a buffer pointed to by PTR */ -#define PPPOE_ADD_16(PTR, VAL) \ - *(PTR)++ = (u8_t)((VAL) / 256); \ - *(PTR)++ = (u8_t)((VAL) % 256) - -/* Add a complete PPPoE header to the buffer pointed to by PTR */ -#define PPPOE_ADD_HEADER(PTR, CODE, SESS, LEN) \ - *(PTR)++ = PPPOE_VERTYPE; \ - *(PTR)++ = (CODE); \ - PPPOE_ADD_16(PTR, SESS); \ - PPPOE_ADD_16(PTR, LEN) - -#define PPPOE_DISC_TIMEOUT (5*1000) /* base for quick timeout calculation */ -#define PPPOE_SLOW_RETRY (60*1000) /* persistent retry interval */ -#define PPPOE_DISC_MAXPADI 4 /* retry PADI four times (quickly) */ -#define PPPOE_DISC_MAXPADR 2 /* retry PADR twice */ - -#ifdef PPPOE_SERVER -#error "PPPOE_SERVER is not yet supported under lwIP!" -/* from if_spppsubr.c */ -#define IFF_PASSIVE IFF_LINK0 /* wait passively for connection */ -#endif - -#define PPPOE_ERRORSTRING_LEN 64 - - -/* callbacks called from PPP core */ -static err_t pppoe_write(ppp_pcb *ppp, void *ctx, struct pbuf *p); -static err_t pppoe_netif_output(ppp_pcb *ppp, void *ctx, struct pbuf *p, u_short protocol); -static void pppoe_connect(ppp_pcb *ppp, void *ctx); -static void pppoe_disconnect(ppp_pcb *ppp, void *ctx); -static err_t pppoe_destroy(ppp_pcb *ppp, void *ctx); - -/* management routines */ -static void pppoe_abort_connect(struct pppoe_softc *); -#if 0 /* UNUSED */ -static void pppoe_clear_softc(struct pppoe_softc *, const char *); -#endif /* UNUSED */ - -/* internal timeout handling */ -static void pppoe_timeout(void *); - -/* sending actual protocol controll packets */ -static err_t pppoe_send_padi(struct pppoe_softc *); -static err_t pppoe_send_padr(struct pppoe_softc *); -#ifdef PPPOE_SERVER -static err_t pppoe_send_pado(struct pppoe_softc *); -static err_t pppoe_send_pads(struct pppoe_softc *); -#endif -static err_t pppoe_send_padt(struct netif *, u_int, const u8_t *); - -/* internal helper functions */ -static err_t pppoe_xmit(struct pppoe_softc *sc, struct pbuf *pb); -static struct pppoe_softc* pppoe_find_softc_by_session(u_int session, struct netif *rcvif); -static struct pppoe_softc* pppoe_find_softc_by_hunique(u8_t *token, size_t len, struct netif *rcvif); - -/** linked list of created pppoe interfaces */ -static struct pppoe_softc *pppoe_softc_list; - -/* Callbacks structure for PPP core */ -static const struct link_callbacks pppoe_callbacks = { - pppoe_connect, -#if PPP_SERVER - NULL, -#endif /* PPP_SERVER */ - pppoe_disconnect, - pppoe_destroy, - pppoe_write, - pppoe_netif_output, - NULL, - NULL -}; - -/* - * Create a new PPP Over Ethernet (PPPoE) connection. - * - * Return 0 on success, an error code on failure. - */ -ppp_pcb *pppoe_create(struct netif *pppif, - struct netif *ethif, - const char *service_name, const char *concentrator_name, - ppp_link_status_cb_fn link_status_cb, void *ctx_cb) -{ - ppp_pcb *ppp; - struct pppoe_softc *sc; - LWIP_UNUSED_ARG(service_name); - LWIP_UNUSED_ARG(concentrator_name); - LWIP_ASSERT_CORE_LOCKED(); - - sc = (struct pppoe_softc *)LWIP_MEMPOOL_ALLOC(PPPOE_IF); - if (sc == NULL) { - return NULL; - } - - ppp = ppp_new(pppif, &pppoe_callbacks, sc, link_status_cb, ctx_cb); - if (ppp == NULL) { - LWIP_MEMPOOL_FREE(PPPOE_IF, sc); - return NULL; - } - - memset(sc, 0, sizeof(struct pppoe_softc)); - sc->pcb = ppp; - sc->sc_ethif = ethif; - /* put the new interface at the head of the list */ - sc->next = pppoe_softc_list; - pppoe_softc_list = sc; - return ppp; -} - -/* Called by PPP core */ -static err_t pppoe_write(ppp_pcb *ppp, void *ctx, struct pbuf *p) { - struct pppoe_softc *sc = (struct pppoe_softc *)ctx; - struct pbuf *ph; /* Ethernet + PPPoE header */ - err_t ret; -#if MIB2_STATS - u16_t tot_len; -#else /* MIB2_STATS */ - LWIP_UNUSED_ARG(ppp); -#endif /* MIB2_STATS */ - - /* skip address & flags */ - pbuf_remove_header(p, 2); - - ph = pbuf_alloc(PBUF_LINK, (u16_t)(PPPOE_HEADERLEN), PBUF_RAM); - if(!ph) { - LINK_STATS_INC(link.memerr); - LINK_STATS_INC(link.proterr); - MIB2_STATS_NETIF_INC(ppp->netif, ifoutdiscards); - pbuf_free(p); - return ERR_MEM; - } - - pbuf_remove_header(ph, PPPOE_HEADERLEN); /* hide PPPoE header */ - pbuf_cat(ph, p); -#if MIB2_STATS - tot_len = ph->tot_len; -#endif /* MIB2_STATS */ - - ret = pppoe_xmit(sc, ph); - if (ret != ERR_OK) { - LINK_STATS_INC(link.err); - MIB2_STATS_NETIF_INC(ppp->netif, ifoutdiscards); - return ret; - } - - MIB2_STATS_NETIF_ADD(ppp->netif, ifoutoctets, (u16_t)tot_len); - MIB2_STATS_NETIF_INC(ppp->netif, ifoutucastpkts); - LINK_STATS_INC(link.xmit); - return ERR_OK; -} - -/* Called by PPP core */ -static err_t pppoe_netif_output(ppp_pcb *ppp, void *ctx, struct pbuf *p, u_short protocol) { - struct pppoe_softc *sc = (struct pppoe_softc *)ctx; - struct pbuf *pb; - u8_t *pl; - err_t err; -#if MIB2_STATS - u16_t tot_len; -#else /* MIB2_STATS */ - LWIP_UNUSED_ARG(ppp); -#endif /* MIB2_STATS */ - - /* @todo: try to use pbuf_header() here! */ - pb = pbuf_alloc(PBUF_LINK, PPPOE_HEADERLEN + sizeof(protocol), PBUF_RAM); - if(!pb) { - LINK_STATS_INC(link.memerr); - LINK_STATS_INC(link.proterr); - MIB2_STATS_NETIF_INC(ppp->netif, ifoutdiscards); - return ERR_MEM; - } - - pbuf_remove_header(pb, PPPOE_HEADERLEN); - - pl = (u8_t*)pb->payload; - PUTSHORT(protocol, pl); - - pbuf_chain(pb, p); -#if MIB2_STATS - tot_len = pb->tot_len; -#endif /* MIB2_STATS */ - - if( (err = pppoe_xmit(sc, pb)) != ERR_OK) { - LINK_STATS_INC(link.err); - MIB2_STATS_NETIF_INC(ppp->netif, ifoutdiscards); - return err; - } - - MIB2_STATS_NETIF_ADD(ppp->netif, ifoutoctets, tot_len); - MIB2_STATS_NETIF_INC(ppp->netif, ifoutucastpkts); - LINK_STATS_INC(link.xmit); - return ERR_OK; -} - -static err_t -pppoe_destroy(ppp_pcb *ppp, void *ctx) -{ - struct pppoe_softc *sc = (struct pppoe_softc *)ctx; - struct pppoe_softc **copp, *freep; - LWIP_UNUSED_ARG(ppp); - - sys_untimeout(pppoe_timeout, sc); - - /* remove interface from list */ - for (copp = &pppoe_softc_list; (freep = *copp); copp = &freep->next) { - if (freep == sc) { - *copp = freep->next; - break; - } - } - -#ifdef PPPOE_TODO - if (sc->sc_concentrator_name) { - mem_free(sc->sc_concentrator_name); - } - if (sc->sc_service_name) { - mem_free(sc->sc_service_name); - } -#endif /* PPPOE_TODO */ - LWIP_MEMPOOL_FREE(PPPOE_IF, sc); - - return ERR_OK; -} - -/* - * Find the interface handling the specified session. - * Note: O(number of sessions open), this is a client-side only, mean - * and lean implementation, so number of open sessions typically should - * be 1. - */ -static struct pppoe_softc* pppoe_find_softc_by_session(u_int session, struct netif *rcvif) { - struct pppoe_softc *sc; - - for (sc = pppoe_softc_list; sc != NULL; sc = sc->next) { - if (sc->sc_state == PPPOE_STATE_SESSION - && sc->sc_session == session - && sc->sc_ethif == rcvif) { - return sc; - } - } - return NULL; -} - -/* Check host unique token passed and return appropriate softc pointer, - * or NULL if token is bogus. */ -static struct pppoe_softc* pppoe_find_softc_by_hunique(u8_t *token, size_t len, struct netif *rcvif) { - struct pppoe_softc *sc, *t; - - if (len != sizeof sc) { - return NULL; - } - MEMCPY(&t, token, len); - - for (sc = pppoe_softc_list; sc != NULL; sc = sc->next) { - if (sc == t) { - break; - } - } - - if (sc == NULL) { - PPPDEBUG(LOG_DEBUG, ("pppoe: alien host unique tag, no session found\n")); - return NULL; - } - - /* should be safe to access *sc now */ - if (sc->sc_state < PPPOE_STATE_PADI_SENT || sc->sc_state >= PPPOE_STATE_SESSION) { - PPPDEBUG(LOG_DEBUG, ("%c%c%"U16_F": host unique tag found, but it belongs to a connection in state %d\n", - sc->sc_ethif->name[0], sc->sc_ethif->name[1], sc->sc_ethif->num, sc->sc_state)); - return NULL; - } - if (sc->sc_ethif != rcvif) { - PPPDEBUG(LOG_DEBUG, ("%c%c%"U16_F": wrong interface, not accepting host unique\n", - sc->sc_ethif->name[0], sc->sc_ethif->name[1], sc->sc_ethif->num)); - return NULL; - } - return sc; -} - -/* analyze and handle a single received packet while not in session state */ -void -pppoe_disc_input(struct netif *netif, struct pbuf *pb) -{ - u16_t tag, len, off; - u16_t session, plen; - struct pppoe_softc *sc; -#if PPP_DEBUG - const char *err_msg = NULL; -#endif /* PPP_DEBUG */ - u8_t *ac_cookie; - u16_t ac_cookie_len; -#ifdef PPPOE_SERVER - u8_t *hunique; - size_t hunique_len; -#endif - struct pppoehdr *ph; - struct pppoetag pt; - int err; - struct eth_hdr *ethhdr; - - /* don't do anything if there is not a single PPPoE instance */ - if (pppoe_softc_list == NULL) { - pbuf_free(pb); - return; - } - - pb = pbuf_coalesce(pb, PBUF_RAW); - - ethhdr = (struct eth_hdr *)pb->payload; - - ac_cookie = NULL; - ac_cookie_len = 0; -#ifdef PPPOE_SERVER - hunique = NULL; - hunique_len = 0; -#endif - session = 0; - off = sizeof(struct eth_hdr) + sizeof(struct pppoehdr); - if (pb->len < off) { - PPPDEBUG(LOG_DEBUG, ("pppoe: packet too short: %d\n", pb->len)); - goto done; - } - - ph = (struct pppoehdr *) (ethhdr + 1); - if (ph->vertype != PPPOE_VERTYPE) { - PPPDEBUG(LOG_DEBUG, ("pppoe: unknown version/type packet: 0x%x\n", ph->vertype)); - goto done; - } - session = lwip_ntohs(ph->session); - plen = lwip_ntohs(ph->plen); - - if (plen > (pb->len - off)) { - PPPDEBUG(LOG_DEBUG, ("pppoe: packet content does not fit: data available = %d, packet size = %u\n", - pb->len - off, plen)); - goto done; - } - if(pb->tot_len == pb->len) { - u16_t framelen = off + plen; - if (framelen < pb->len) { - /* ignore trailing garbage */ - pb->tot_len = pb->len = framelen; - } - } - tag = 0; - len = 0; - sc = NULL; - while (off + sizeof(pt) <= pb->len) { - MEMCPY(&pt, (u8_t*)pb->payload + off, sizeof(pt)); - tag = lwip_ntohs(pt.tag); - len = lwip_ntohs(pt.len); - if (off + sizeof(pt) + len > pb->len) { - PPPDEBUG(LOG_DEBUG, ("pppoe: tag 0x%x len 0x%x is too long\n", tag, len)); - goto done; - } - switch (tag) { - case PPPOE_TAG_EOL: - goto breakbreak; - case PPPOE_TAG_SNAME: - break; /* ignored */ - case PPPOE_TAG_ACNAME: - break; /* ignored */ - case PPPOE_TAG_HUNIQUE: - if (sc != NULL) { - break; - } -#ifdef PPPOE_SERVER - hunique = (u8_t*)pb->payload + off + sizeof(pt); - hunique_len = len; -#endif - sc = pppoe_find_softc_by_hunique((u8_t*)pb->payload + off + sizeof(pt), len, netif); - break; - case PPPOE_TAG_ACCOOKIE: - if (ac_cookie == NULL) { - if (len > PPPOE_MAX_AC_COOKIE_LEN) { - PPPDEBUG(LOG_DEBUG, ("pppoe: AC cookie is too long: len = %d, max = %d\n", len, PPPOE_MAX_AC_COOKIE_LEN)); - goto done; - } - ac_cookie = (u8_t*)pb->payload + off + sizeof(pt); - ac_cookie_len = len; - } - break; -#if PPP_DEBUG - case PPPOE_TAG_SNAME_ERR: - err_msg = "SERVICE NAME ERROR"; - break; - case PPPOE_TAG_ACSYS_ERR: - err_msg = "AC SYSTEM ERROR"; - break; - case PPPOE_TAG_GENERIC_ERR: - err_msg = "GENERIC ERROR"; - break; -#endif /* PPP_DEBUG */ - default: - break; - } -#if PPP_DEBUG - if (err_msg != NULL) { - char error_tmp[PPPOE_ERRORSTRING_LEN]; - u16_t error_len = LWIP_MIN(len, sizeof(error_tmp)-1); - strncpy(error_tmp, (char*)pb->payload + off + sizeof(pt), error_len); - error_tmp[error_len] = '\0'; - if (sc) { - PPPDEBUG(LOG_DEBUG, ("pppoe: %c%c%"U16_F": %s: %s\n", sc->sc_ethif->name[0], sc->sc_ethif->name[1], sc->sc_ethif->num, err_msg, error_tmp)); - } else { - PPPDEBUG(LOG_DEBUG, ("pppoe: %s: %s\n", err_msg, error_tmp)); - } - } -#endif /* PPP_DEBUG */ - off += sizeof(pt) + len; - } - -breakbreak:; - switch (ph->code) { - case PPPOE_CODE_PADI: -#ifdef PPPOE_SERVER - /* - * got service name, concentrator name, and/or host unique. - * ignore if we have no interfaces with IFF_PASSIVE|IFF_UP. - */ - if (LIST_EMPTY(&pppoe_softc_list)) { - goto done; - } - LIST_FOREACH(sc, &pppoe_softc_list, sc_list) { - if (!(sc->sc_sppp.pp_if.if_flags & IFF_UP)) { - continue; - } - if (!(sc->sc_sppp.pp_if.if_flags & IFF_PASSIVE)) { - continue; - } - if (sc->sc_state == PPPOE_STATE_INITIAL) { - break; - } - } - if (sc == NULL) { - /* PPPDEBUG(LOG_DEBUG, ("pppoe: free passive interface is not found\n")); */ - goto done; - } - if (hunique) { - if (sc->sc_hunique) { - mem_free(sc->sc_hunique); - } - sc->sc_hunique = mem_malloc(hunique_len); - if (sc->sc_hunique == NULL) { - goto done; - } - sc->sc_hunique_len = hunique_len; - MEMCPY(sc->sc_hunique, hunique, hunique_len); - } - MEMCPY(&sc->sc_dest, eh->ether_shost, sizeof sc->sc_dest); - sc->sc_state = PPPOE_STATE_PADO_SENT; - pppoe_send_pado(sc); - break; -#endif /* PPPOE_SERVER */ - case PPPOE_CODE_PADR: -#ifdef PPPOE_SERVER - /* - * get sc from ac_cookie if IFF_PASSIVE - */ - if (ac_cookie == NULL) { - /* be quiet if there is not a single pppoe instance */ - PPPDEBUG(LOG_DEBUG, ("pppoe: received PADR but not includes ac_cookie\n")); - goto done; - } - sc = pppoe_find_softc_by_hunique(ac_cookie, ac_cookie_len, netif); - if (sc == NULL) { - /* be quiet if there is not a single pppoe instance */ - if (!LIST_EMPTY(&pppoe_softc_list)) { - PPPDEBUG(LOG_DEBUG, ("pppoe: received PADR but could not find request for it\n")); - } - goto done; - } - if (sc->sc_state != PPPOE_STATE_PADO_SENT) { - PPPDEBUG(LOG_DEBUG, ("%c%c%"U16_F": received unexpected PADR\n", sc->sc_ethif->name[0], sc->sc_ethif->name[1], sc->sc_ethif->num)); - goto done; - } - if (hunique) { - if (sc->sc_hunique) { - mem_free(sc->sc_hunique); - } - sc->sc_hunique = mem_malloc(hunique_len); - if (sc->sc_hunique == NULL) { - goto done; - } - sc->sc_hunique_len = hunique_len; - MEMCPY(sc->sc_hunique, hunique, hunique_len); - } - pppoe_send_pads(sc); - sc->sc_state = PPPOE_STATE_SESSION; - ppp_start(sc->pcb); /* notify upper layers */ - break; -#else - /* ignore, we are no access concentrator */ - goto done; -#endif /* PPPOE_SERVER */ - case PPPOE_CODE_PADO: - if (sc == NULL) { - /* be quiet if there is not a single pppoe instance */ - if (pppoe_softc_list != NULL) { - PPPDEBUG(LOG_DEBUG, ("pppoe: received PADO but could not find request for it\n")); - } - goto done; - } - if (sc->sc_state != PPPOE_STATE_PADI_SENT) { - PPPDEBUG(LOG_DEBUG, ("%c%c%"U16_F": received unexpected PADO\n", sc->sc_ethif->name[0], sc->sc_ethif->name[1], sc->sc_ethif->num)); - goto done; - } - if (ac_cookie) { - sc->sc_ac_cookie_len = ac_cookie_len; - MEMCPY(sc->sc_ac_cookie, ac_cookie, ac_cookie_len); - } - MEMCPY(&sc->sc_dest, ethhdr->src.addr, sizeof(sc->sc_dest.addr)); - sys_untimeout(pppoe_timeout, sc); - sc->sc_padr_retried = 0; - sc->sc_state = PPPOE_STATE_PADR_SENT; - if ((err = pppoe_send_padr(sc)) != 0) { - PPPDEBUG(LOG_DEBUG, ("pppoe: %c%c%"U16_F": failed to send PADR, error=%d\n", sc->sc_ethif->name[0], sc->sc_ethif->name[1], sc->sc_ethif->num, err)); - LWIP_UNUSED_ARG(err); /* if PPPDEBUG is disabled */ - } - sys_timeout(PPPOE_DISC_TIMEOUT * (1 + sc->sc_padr_retried), pppoe_timeout, sc); - break; - case PPPOE_CODE_PADS: - if (sc == NULL) { - goto done; - } - sc->sc_session = session; - sys_untimeout(pppoe_timeout, sc); - PPPDEBUG(LOG_DEBUG, ("pppoe: %c%c%"U16_F": session 0x%x connected\n", sc->sc_ethif->name[0], sc->sc_ethif->name[1], sc->sc_ethif->num, session)); - sc->sc_state = PPPOE_STATE_SESSION; - ppp_start(sc->pcb); /* notify upper layers */ - break; - case PPPOE_CODE_PADT: - /* Don't disconnect here, we let the LCP Echo/Reply find the fact - * that PPP session is down. Asking the PPP stack to end the session - * require strict checking about the PPP phase to prevent endless - * disconnection loops. - */ -#if 0 /* UNUSED */ - if (sc == NULL) { /* PADT frames are rarely sent with a hunique tag, this is actually almost always true */ - goto done; - } - pppoe_clear_softc(sc, "received PADT"); -#endif /* UNUSED */ - break; - default: - if(sc) { - PPPDEBUG(LOG_DEBUG, ("%c%c%"U16_F": unknown code (0x%"X16_F") session = 0x%"X16_F"\n", - sc->sc_ethif->name[0], sc->sc_ethif->name[1], sc->sc_ethif->num, - (u16_t)ph->code, session)); - } else { - PPPDEBUG(LOG_DEBUG, ("pppoe: unknown code (0x%"X16_F") session = 0x%"X16_F"\n", (u16_t)ph->code, session)); - } - break; - } - -done: - pbuf_free(pb); - return; -} - -void -pppoe_data_input(struct netif *netif, struct pbuf *pb) -{ - u16_t session, plen; - struct pppoe_softc *sc; - struct pppoehdr *ph; -#ifdef PPPOE_TERM_UNKNOWN_SESSIONS - u8_t shost[ETHER_ADDR_LEN]; -#endif - -#ifdef PPPOE_TERM_UNKNOWN_SESSIONS - MEMCPY(shost, ((struct eth_hdr *)pb->payload)->src.addr, sizeof(shost)); -#endif - if (pbuf_remove_header(pb, sizeof(struct eth_hdr)) != 0) { - /* bail out */ - PPPDEBUG(LOG_ERR, ("pppoe_data_input: pbuf_remove_header failed\n")); - LINK_STATS_INC(link.lenerr); - goto drop; - } - - if (pb->len < sizeof(*ph)) { - PPPDEBUG(LOG_DEBUG, ("pppoe_data_input: could not get PPPoE header\n")); - goto drop; - } - ph = (struct pppoehdr *)pb->payload; - - if (ph->vertype != PPPOE_VERTYPE) { - PPPDEBUG(LOG_DEBUG, ("pppoe (data): unknown version/type packet: 0x%x\n", ph->vertype)); - goto drop; - } - if (ph->code != 0) { - goto drop; - } - - session = lwip_ntohs(ph->session); - sc = pppoe_find_softc_by_session(session, netif); - if (sc == NULL) { -#ifdef PPPOE_TERM_UNKNOWN_SESSIONS - PPPDEBUG(LOG_DEBUG, ("pppoe: input for unknown session 0x%x, sending PADT\n", session)); - pppoe_send_padt(netif, session, shost); -#endif - goto drop; - } - - plen = lwip_ntohs(ph->plen); - - if (pbuf_remove_header(pb, PPPOE_HEADERLEN) != 0) { - /* bail out */ - PPPDEBUG(LOG_ERR, ("pppoe_data_input: pbuf_remove_header PPPOE_HEADERLEN failed\n")); - LINK_STATS_INC(link.lenerr); - goto drop; - } - - PPPDEBUG(LOG_DEBUG, ("pppoe_data_input: %c%c%"U16_F": pkthdr.len=%d, pppoe.len=%d\n", - sc->sc_ethif->name[0], sc->sc_ethif->name[1], sc->sc_ethif->num, - pb->len, plen)); - - if (pb->tot_len < plen) { - goto drop; - } - - /* Dispatch the packet thereby consuming it. */ - ppp_input(sc->pcb, pb); - return; - -drop: - pbuf_free(pb); -} - -static err_t -pppoe_output(struct pppoe_softc *sc, struct pbuf *pb) -{ - struct eth_hdr *ethhdr; - u16_t etype; - err_t res; - - /* make room for Ethernet header - should not fail */ - if (pbuf_add_header(pb, sizeof(struct eth_hdr)) != 0) { - /* bail out */ - PPPDEBUG(LOG_ERR, ("pppoe: %c%c%"U16_F": pppoe_output: could not allocate room for Ethernet header\n", sc->sc_ethif->name[0], sc->sc_ethif->name[1], sc->sc_ethif->num)); - LINK_STATS_INC(link.lenerr); - pbuf_free(pb); - return ERR_BUF; - } - ethhdr = (struct eth_hdr *)pb->payload; - etype = sc->sc_state == PPPOE_STATE_SESSION ? ETHTYPE_PPPOE : ETHTYPE_PPPOEDISC; - ethhdr->type = lwip_htons(etype); - MEMCPY(ðhdr->dest.addr, &sc->sc_dest.addr, sizeof(ethhdr->dest.addr)); - MEMCPY(ðhdr->src.addr, &sc->sc_ethif->hwaddr, sizeof(ethhdr->src.addr)); - - PPPDEBUG(LOG_DEBUG, ("pppoe: %c%c%"U16_F" (%x) state=%d, session=0x%x output -> %02"X16_F":%02"X16_F":%02"X16_F":%02"X16_F":%02"X16_F":%02"X16_F", len=%d\n", - sc->sc_ethif->name[0], sc->sc_ethif->name[1], sc->sc_ethif->num, etype, - sc->sc_state, sc->sc_session, - sc->sc_dest.addr[0], sc->sc_dest.addr[1], sc->sc_dest.addr[2], sc->sc_dest.addr[3], sc->sc_dest.addr[4], sc->sc_dest.addr[5], - pb->tot_len)); - - res = sc->sc_ethif->linkoutput(sc->sc_ethif, pb); - - pbuf_free(pb); - - return res; -} - -static err_t -pppoe_send_padi(struct pppoe_softc *sc) -{ - struct pbuf *pb; - u8_t *p; - int len; -#ifdef PPPOE_TODO - int l1 = 0, l2 = 0; /* XXX: gcc */ -#endif /* PPPOE_TODO */ - - /* calculate length of frame (excluding ethernet header + pppoe header) */ - len = 2 + 2 + 2 + 2 + sizeof sc; /* service name tag is required, host unique is send too */ -#ifdef PPPOE_TODO - if (sc->sc_service_name != NULL) { - l1 = (int)strlen(sc->sc_service_name); - len += l1; - } - if (sc->sc_concentrator_name != NULL) { - l2 = (int)strlen(sc->sc_concentrator_name); - len += 2 + 2 + l2; - } -#endif /* PPPOE_TODO */ - LWIP_ASSERT("sizeof(struct eth_hdr) + PPPOE_HEADERLEN + len <= 0xffff", - sizeof(struct eth_hdr) + PPPOE_HEADERLEN + len <= 0xffff); - - /* allocate a buffer */ - pb = pbuf_alloc(PBUF_LINK, (u16_t)(PPPOE_HEADERLEN + len), PBUF_RAM); - if (!pb) { - return ERR_MEM; - } - LWIP_ASSERT("pb->tot_len == pb->len", pb->tot_len == pb->len); - - p = (u8_t*)pb->payload; - /* fill in pkt */ - PPPOE_ADD_HEADER(p, PPPOE_CODE_PADI, 0, (u16_t)len); - PPPOE_ADD_16(p, PPPOE_TAG_SNAME); -#ifdef PPPOE_TODO - if (sc->sc_service_name != NULL) { - PPPOE_ADD_16(p, l1); - MEMCPY(p, sc->sc_service_name, l1); - p += l1; - } else -#endif /* PPPOE_TODO */ - { - PPPOE_ADD_16(p, 0); - } -#ifdef PPPOE_TODO - if (sc->sc_concentrator_name != NULL) { - PPPOE_ADD_16(p, PPPOE_TAG_ACNAME); - PPPOE_ADD_16(p, l2); - MEMCPY(p, sc->sc_concentrator_name, l2); - p += l2; - } -#endif /* PPPOE_TODO */ - PPPOE_ADD_16(p, PPPOE_TAG_HUNIQUE); - PPPOE_ADD_16(p, sizeof(sc)); - MEMCPY(p, &sc, sizeof sc); - - /* send pkt */ - return pppoe_output(sc, pb); -} - -static void -pppoe_timeout(void *arg) -{ - u32_t retry_wait; - int err; - struct pppoe_softc *sc = (struct pppoe_softc*)arg; - - PPPDEBUG(LOG_DEBUG, ("pppoe: %c%c%"U16_F": timeout\n", sc->sc_ethif->name[0], sc->sc_ethif->name[1], sc->sc_ethif->num)); - - switch (sc->sc_state) { - case PPPOE_STATE_PADI_SENT: - /* - * We have two basic ways of retrying: - * - Quick retry mode: try a few times in short sequence - * - Slow retry mode: we already had a connection successfully - * established and will try infinitely (without user - * intervention) - * We only enter slow retry mode if IFF_LINK1 (aka autodial) - * is not set. - */ - if (sc->sc_padi_retried < 0xff) { - sc->sc_padi_retried++; - } - if (!sc->pcb->settings.persist && sc->sc_padi_retried >= PPPOE_DISC_MAXPADI) { -#if 0 - if ((sc->sc_sppp.pp_if.if_flags & IFF_LINK1) == 0) { - /* slow retry mode */ - retry_wait = PPPOE_SLOW_RETRY; - } else -#endif - { - pppoe_abort_connect(sc); - return; - } - } - /* initialize for quick retry mode */ - retry_wait = LWIP_MIN(PPPOE_DISC_TIMEOUT * sc->sc_padi_retried, PPPOE_SLOW_RETRY); - if ((err = pppoe_send_padi(sc)) != 0) { - sc->sc_padi_retried--; - PPPDEBUG(LOG_DEBUG, ("pppoe: %c%c%"U16_F": failed to transmit PADI, error=%d\n", sc->sc_ethif->name[0], sc->sc_ethif->name[1], sc->sc_ethif->num, err)); - LWIP_UNUSED_ARG(err); /* if PPPDEBUG is disabled */ - } - sys_timeout(retry_wait, pppoe_timeout, sc); - break; - - case PPPOE_STATE_PADR_SENT: - sc->sc_padr_retried++; - if (sc->sc_padr_retried >= PPPOE_DISC_MAXPADR) { - MEMCPY(&sc->sc_dest, ethbroadcast.addr, sizeof(sc->sc_dest)); - sc->sc_state = PPPOE_STATE_PADI_SENT; - sc->sc_padr_retried = 0; - if ((err = pppoe_send_padi(sc)) != 0) { - PPPDEBUG(LOG_DEBUG, ("pppoe: %c%c%"U16_F": failed to send PADI, error=%d\n", sc->sc_ethif->name[0], sc->sc_ethif->name[1], sc->sc_ethif->num, err)); - LWIP_UNUSED_ARG(err); /* if PPPDEBUG is disabled */ - } - sys_timeout(PPPOE_DISC_TIMEOUT * (1 + sc->sc_padi_retried), pppoe_timeout, sc); - return; - } - if ((err = pppoe_send_padr(sc)) != 0) { - sc->sc_padr_retried--; - PPPDEBUG(LOG_DEBUG, ("pppoe: %c%c%"U16_F": failed to send PADR, error=%d\n", sc->sc_ethif->name[0], sc->sc_ethif->name[1], sc->sc_ethif->num, err)); - LWIP_UNUSED_ARG(err); /* if PPPDEBUG is disabled */ - } - sys_timeout(PPPOE_DISC_TIMEOUT * (1 + sc->sc_padr_retried), pppoe_timeout, sc); - break; - default: - return; /* all done, work in peace */ - } -} - -/* Start a connection (i.e. initiate discovery phase) */ -static void -pppoe_connect(ppp_pcb *ppp, void *ctx) -{ - err_t err; - struct pppoe_softc *sc = (struct pppoe_softc *)ctx; - lcp_options *lcp_wo; - lcp_options *lcp_ao; -#if PPP_IPV4_SUPPORT && VJ_SUPPORT - ipcp_options *ipcp_wo; - ipcp_options *ipcp_ao; -#endif /* PPP_IPV4_SUPPORT && VJ_SUPPORT */ - - sc->sc_session = 0; - sc->sc_ac_cookie_len = 0; - sc->sc_padi_retried = 0; - sc->sc_padr_retried = 0; - /* changed to real address later */ - MEMCPY(&sc->sc_dest, ethbroadcast.addr, sizeof(sc->sc_dest)); -#ifdef PPPOE_SERVER - /* wait PADI if IFF_PASSIVE */ - if ((sc->sc_sppp.pp_if.if_flags & IFF_PASSIVE)) { - return 0; - } -#endif - - lcp_wo = &ppp->lcp_wantoptions; - lcp_wo->mru = sc->sc_ethif->mtu-PPPOE_HEADERLEN-2; /* two byte PPP protocol discriminator, then IP data */ - lcp_wo->neg_asyncmap = 0; - lcp_wo->neg_pcompression = 0; - lcp_wo->neg_accompression = 0; - lcp_wo->passive = 0; - lcp_wo->silent = 0; - - lcp_ao = &ppp->lcp_allowoptions; - lcp_ao->mru = sc->sc_ethif->mtu-PPPOE_HEADERLEN-2; /* two byte PPP protocol discriminator, then IP data */ - lcp_ao->neg_asyncmap = 0; - lcp_ao->neg_pcompression = 0; - lcp_ao->neg_accompression = 0; - -#if PPP_IPV4_SUPPORT && VJ_SUPPORT - ipcp_wo = &ppp->ipcp_wantoptions; - ipcp_wo->neg_vj = 0; - ipcp_wo->old_vj = 0; - - ipcp_ao = &ppp->ipcp_allowoptions; - ipcp_ao->neg_vj = 0; - ipcp_ao->old_vj = 0; -#endif /* PPP_IPV4_SUPPORT && VJ_SUPPORT */ - - /* save state, in case we fail to send PADI */ - sc->sc_state = PPPOE_STATE_PADI_SENT; - if ((err = pppoe_send_padi(sc)) != 0) { - PPPDEBUG(LOG_DEBUG, ("pppoe: %c%c%"U16_F": failed to send PADI, error=%d\n", sc->sc_ethif->name[0], sc->sc_ethif->name[1], sc->sc_ethif->num, err)); - } - sys_timeout(PPPOE_DISC_TIMEOUT, pppoe_timeout, sc); -} - -/* disconnect */ -static void -pppoe_disconnect(ppp_pcb *ppp, void *ctx) -{ - struct pppoe_softc *sc = (struct pppoe_softc *)ctx; - - PPPDEBUG(LOG_DEBUG, ("pppoe: %c%c%"U16_F": disconnecting\n", sc->sc_ethif->name[0], sc->sc_ethif->name[1], sc->sc_ethif->num)); - if (sc->sc_state == PPPOE_STATE_SESSION) { - pppoe_send_padt(sc->sc_ethif, sc->sc_session, (const u8_t *)&sc->sc_dest); - } - - /* stop any timer, disconnect can be called while initiating is in progress */ - sys_untimeout(pppoe_timeout, sc); - sc->sc_state = PPPOE_STATE_INITIAL; -#ifdef PPPOE_SERVER - if (sc->sc_hunique) { - mem_free(sc->sc_hunique); - sc->sc_hunique = NULL; /* probably not necessary, if state is initial we shouldn't have to access hunique anyway */ - } - sc->sc_hunique_len = 0; /* probably not necessary, if state is initial we shouldn't have to access hunique anyway */ -#endif - ppp_link_end(ppp); /* notify upper layers */ - return; -} - -/* Connection attempt aborted */ -static void -pppoe_abort_connect(struct pppoe_softc *sc) -{ - PPPDEBUG(LOG_DEBUG, ("%c%c%"U16_F": could not establish connection\n", sc->sc_ethif->name[0], sc->sc_ethif->name[1], sc->sc_ethif->num)); - sc->sc_state = PPPOE_STATE_INITIAL; - ppp_link_failed(sc->pcb); /* notify upper layers */ -} - -/* Send a PADR packet */ -static err_t -pppoe_send_padr(struct pppoe_softc *sc) -{ - struct pbuf *pb; - u8_t *p; - size_t len; -#ifdef PPPOE_TODO - size_t l1 = 0; /* XXX: gcc */ -#endif /* PPPOE_TODO */ - - len = 2 + 2 + 2 + 2 + sizeof(sc); /* service name, host unique */ -#ifdef PPPOE_TODO - if (sc->sc_service_name != NULL) { /* service name tag maybe empty */ - l1 = strlen(sc->sc_service_name); - len += l1; - } -#endif /* PPPOE_TODO */ - if (sc->sc_ac_cookie_len > 0) { - len += 2 + 2 + sc->sc_ac_cookie_len; /* AC cookie */ - } - LWIP_ASSERT("sizeof(struct eth_hdr) + PPPOE_HEADERLEN + len <= 0xffff", - sizeof(struct eth_hdr) + PPPOE_HEADERLEN + len <= 0xffff); - pb = pbuf_alloc(PBUF_LINK, (u16_t)(PPPOE_HEADERLEN + len), PBUF_RAM); - if (!pb) { - return ERR_MEM; - } - LWIP_ASSERT("pb->tot_len == pb->len", pb->tot_len == pb->len); - p = (u8_t*)pb->payload; - PPPOE_ADD_HEADER(p, PPPOE_CODE_PADR, 0, len); - PPPOE_ADD_16(p, PPPOE_TAG_SNAME); -#ifdef PPPOE_TODO - if (sc->sc_service_name != NULL) { - PPPOE_ADD_16(p, l1); - MEMCPY(p, sc->sc_service_name, l1); - p += l1; - } else -#endif /* PPPOE_TODO */ - { - PPPOE_ADD_16(p, 0); - } - if (sc->sc_ac_cookie_len > 0) { - PPPOE_ADD_16(p, PPPOE_TAG_ACCOOKIE); - PPPOE_ADD_16(p, sc->sc_ac_cookie_len); - MEMCPY(p, sc->sc_ac_cookie, sc->sc_ac_cookie_len); - p += sc->sc_ac_cookie_len; - } - PPPOE_ADD_16(p, PPPOE_TAG_HUNIQUE); - PPPOE_ADD_16(p, sizeof(sc)); - MEMCPY(p, &sc, sizeof sc); - - return pppoe_output(sc, pb); -} - -/* send a PADT packet */ -static err_t -pppoe_send_padt(struct netif *outgoing_if, u_int session, const u8_t *dest) -{ - struct pbuf *pb; - struct eth_hdr *ethhdr; - err_t res; - u8_t *p; - - pb = pbuf_alloc(PBUF_LINK, (u16_t)(PPPOE_HEADERLEN), PBUF_RAM); - if (!pb) { - return ERR_MEM; - } - LWIP_ASSERT("pb->tot_len == pb->len", pb->tot_len == pb->len); - - if (pbuf_add_header(pb, sizeof(struct eth_hdr))) { - PPPDEBUG(LOG_ERR, ("pppoe: pppoe_send_padt: could not allocate room for PPPoE header\n")); - LINK_STATS_INC(link.lenerr); - pbuf_free(pb); - return ERR_BUF; - } - ethhdr = (struct eth_hdr *)pb->payload; - ethhdr->type = PP_HTONS(ETHTYPE_PPPOEDISC); - MEMCPY(ðhdr->dest.addr, dest, sizeof(ethhdr->dest.addr)); - MEMCPY(ðhdr->src.addr, &outgoing_if->hwaddr, sizeof(ethhdr->src.addr)); - - p = (u8_t*)(ethhdr + 1); - PPPOE_ADD_HEADER(p, PPPOE_CODE_PADT, session, 0); - - res = outgoing_if->linkoutput(outgoing_if, pb); - - pbuf_free(pb); - - return res; -} - -#ifdef PPPOE_SERVER -static err_t -pppoe_send_pado(struct pppoe_softc *sc) -{ - struct pbuf *pb; - u8_t *p; - size_t len; - - /* calc length */ - len = 0; - /* include ac_cookie */ - len += 2 + 2 + sizeof(sc); - /* include hunique */ - len += 2 + 2 + sc->sc_hunique_len; - pb = pbuf_alloc(PBUF_LINK, (u16_t)(PPPOE_HEADERLEN + len), PBUF_RAM); - if (!pb) { - return ERR_MEM; - } - LWIP_ASSERT("pb->tot_len == pb->len", pb->tot_len == pb->len); - p = (u8_t*)pb->payload; - PPPOE_ADD_HEADER(p, PPPOE_CODE_PADO, 0, len); - PPPOE_ADD_16(p, PPPOE_TAG_ACCOOKIE); - PPPOE_ADD_16(p, sizeof(sc)); - MEMCPY(p, &sc, sizeof(sc)); - p += sizeof(sc); - PPPOE_ADD_16(p, PPPOE_TAG_HUNIQUE); - PPPOE_ADD_16(p, sc->sc_hunique_len); - MEMCPY(p, sc->sc_hunique, sc->sc_hunique_len); - return pppoe_output(sc, pb); -} - -static err_t -pppoe_send_pads(struct pppoe_softc *sc) -{ - struct pbuf *pb; - u8_t *p; - size_t len, l1 = 0; /* XXX: gcc */ - - sc->sc_session = mono_time.tv_sec % 0xff + 1; - /* calc length */ - len = 0; - /* include hunique */ - len += 2 + 2 + 2 + 2 + sc->sc_hunique_len; /* service name, host unique*/ - if (sc->sc_service_name != NULL) { /* service name tag maybe empty */ - l1 = strlen(sc->sc_service_name); - len += l1; - } - pb = pbuf_alloc(PBUF_LINK, (u16_t)(PPPOE_HEADERLEN + len), PBUF_RAM); - if (!pb) { - return ERR_MEM; - } - LWIP_ASSERT("pb->tot_len == pb->len", pb->tot_len == pb->len); - p = (u8_t*)pb->payload; - PPPOE_ADD_HEADER(p, PPPOE_CODE_PADS, sc->sc_session, len); - PPPOE_ADD_16(p, PPPOE_TAG_SNAME); - if (sc->sc_service_name != NULL) { - PPPOE_ADD_16(p, l1); - MEMCPY(p, sc->sc_service_name, l1); - p += l1; - } else { - PPPOE_ADD_16(p, 0); - } - PPPOE_ADD_16(p, PPPOE_TAG_HUNIQUE); - PPPOE_ADD_16(p, sc->sc_hunique_len); - MEMCPY(p, sc->sc_hunique, sc->sc_hunique_len); - return pppoe_output(sc, pb); -} -#endif - -static err_t -pppoe_xmit(struct pppoe_softc *sc, struct pbuf *pb) -{ - u8_t *p; - size_t len; - - len = pb->tot_len; - - /* make room for PPPoE header - should not fail */ - if (pbuf_add_header(pb, PPPOE_HEADERLEN) != 0) { - /* bail out */ - PPPDEBUG(LOG_ERR, ("pppoe: %c%c%"U16_F": pppoe_xmit: could not allocate room for PPPoE header\n", sc->sc_ethif->name[0], sc->sc_ethif->name[1], sc->sc_ethif->num)); - LINK_STATS_INC(link.lenerr); - pbuf_free(pb); - return ERR_BUF; - } - - p = (u8_t*)pb->payload; - PPPOE_ADD_HEADER(p, 0, sc->sc_session, len); - - return pppoe_output(sc, pb); -} - -#if 0 /*def PFIL_HOOKS*/ -static int -pppoe_ifattach_hook(void *arg, struct pbuf **mp, struct netif *ifp, int dir) -{ - struct pppoe_softc *sc; - int s; - - if (mp != (struct pbuf **)PFIL_IFNET_DETACH) { - return 0; - } - - LIST_FOREACH(sc, &pppoe_softc_list, sc_list) { - if (sc->sc_ethif != ifp) { - continue; - } - if (sc->sc_sppp.pp_if.if_flags & IFF_UP) { - sc->sc_sppp.pp_if.if_flags &= ~(IFF_UP|IFF_RUNNING); - PPPDEBUG(LOG_DEBUG, ("%c%c%"U16_F": ethernet interface detached, going down\n", - sc->sc_ethif->name[0], sc->sc_ethif->name[1], sc->sc_ethif->num)); - } - sc->sc_ethif = NULL; - pppoe_clear_softc(sc, "ethernet interface detached"); - } - - return 0; -} -#endif - -#if 0 /* UNUSED */ -static void -pppoe_clear_softc(struct pppoe_softc *sc, const char *message) -{ - LWIP_UNUSED_ARG(message); - - /* stop timer */ - sys_untimeout(pppoe_timeout, sc); - PPPDEBUG(LOG_DEBUG, ("pppoe: %c%c%"U16_F": session 0x%x terminated, %s\n", sc->sc_ethif->name[0], sc->sc_ethif->name[1], sc->sc_ethif->num, sc->sc_session, message)); - sc->sc_state = PPPOE_STATE_INITIAL; - ppp_link_end(sc->pcb); /* notify upper layers - /!\ dangerous /!\ - see pppoe_disc_input() */ -} -#endif /* UNUSED */ -#endif /* PPP_SUPPORT && PPPOE_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.c b/Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.c deleted file mode 100644 index 4c4557f..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/ppp/pppol2tp.c +++ /dev/null @@ -1,1159 +0,0 @@ -/** - * @file - * Network Point to Point Protocol over Layer 2 Tunneling Protocol program file. - * - */ - -/* - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - */ - -/* - * L2TP Support status: - * - * Supported: - * - L2TPv2 (PPP over L2TP, a.k.a. UDP tunnels) - * - LAC - * - * Not supported: - * - LNS (require PPP server support) - * - L2TPv3 ethernet pseudowires - * - L2TPv3 VLAN pseudowire - * - L2TPv3 PPP pseudowires - * - L2TPv3 IP encapsulation - * - L2TPv3 IP pseudowire - * - L2TP tunnel switching - http://tools.ietf.org/html/draft-ietf-l2tpext-tunnel-switching-08 - * - Multiple tunnels per UDP socket, as well as multiple sessions per tunnel - * - Hidden AVPs - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && PPPOL2TP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#include "lwip/err.h" -#include "lwip/memp.h" -#include "lwip/netif.h" -#include "lwip/udp.h" -#include "lwip/snmp.h" - -#include "netif/ppp/ppp_impl.h" -#include "netif/ppp/lcp.h" -#include "netif/ppp/ipcp.h" -#include "netif/ppp/pppol2tp.h" -#include "netif/ppp/pppcrypt.h" -#include "netif/ppp/magic.h" - -/* Memory pool */ -LWIP_MEMPOOL_DECLARE(PPPOL2TP_PCB, MEMP_NUM_PPPOL2TP_INTERFACES, sizeof(pppol2tp_pcb), "PPPOL2TP_PCB") - -/* callbacks called from PPP core */ -static err_t pppol2tp_write(ppp_pcb *ppp, void *ctx, struct pbuf *p); -static err_t pppol2tp_netif_output(ppp_pcb *ppp, void *ctx, struct pbuf *p, u_short protocol); -static err_t pppol2tp_destroy(ppp_pcb *ppp, void *ctx); /* Destroy a L2TP control block */ -static void pppol2tp_connect(ppp_pcb *ppp, void *ctx); /* Be a LAC, connect to a LNS. */ -static void pppol2tp_disconnect(ppp_pcb *ppp, void *ctx); /* Disconnect */ - - /* Prototypes for procedures local to this file. */ -static void pppol2tp_input(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port); -static void pppol2tp_dispatch_control_packet(pppol2tp_pcb *l2tp, u16_t port, struct pbuf *p, u16_t ns, u16_t nr); -static void pppol2tp_timeout(void *arg); -static void pppol2tp_abort_connect(pppol2tp_pcb *l2tp); -static err_t pppol2tp_send_sccrq(pppol2tp_pcb *l2tp); -static err_t pppol2tp_send_scccn(pppol2tp_pcb *l2tp, u16_t ns); -static err_t pppol2tp_send_icrq(pppol2tp_pcb *l2tp, u16_t ns); -static err_t pppol2tp_send_iccn(pppol2tp_pcb *l2tp, u16_t ns); -static err_t pppol2tp_send_zlb(pppol2tp_pcb *l2tp, u16_t ns, u16_t nr); -static err_t pppol2tp_send_stopccn(pppol2tp_pcb *l2tp, u16_t ns); -static err_t pppol2tp_xmit(pppol2tp_pcb *l2tp, struct pbuf *pb); -static err_t pppol2tp_udp_send(pppol2tp_pcb *l2tp, struct pbuf *pb); - -/* Callbacks structure for PPP core */ -static const struct link_callbacks pppol2tp_callbacks = { - pppol2tp_connect, -#if PPP_SERVER - NULL, -#endif /* PPP_SERVER */ - pppol2tp_disconnect, - pppol2tp_destroy, - pppol2tp_write, - pppol2tp_netif_output, - NULL, - NULL -}; - - -/* Create a new L2TP session. */ -ppp_pcb *pppol2tp_create(struct netif *pppif, - struct netif *netif, const ip_addr_t *ipaddr, u16_t port, - const u8_t *secret, u8_t secret_len, - ppp_link_status_cb_fn link_status_cb, void *ctx_cb) { - ppp_pcb *ppp; - pppol2tp_pcb *l2tp; - struct udp_pcb *udp; -#if !PPPOL2TP_AUTH_SUPPORT - LWIP_UNUSED_ARG(secret); - LWIP_UNUSED_ARG(secret_len); -#endif /* !PPPOL2TP_AUTH_SUPPORT */ - - if (ipaddr == NULL) { - goto ipaddr_check_failed; - } - - l2tp = (pppol2tp_pcb *)LWIP_MEMPOOL_ALLOC(PPPOL2TP_PCB); - if (l2tp == NULL) { - goto memp_malloc_l2tp_failed; - } - - udp = udp_new_ip_type(IP_GET_TYPE(ipaddr)); - if (udp == NULL) { - goto udp_new_failed; - } - udp_recv(udp, pppol2tp_input, l2tp); - - ppp = ppp_new(pppif, &pppol2tp_callbacks, l2tp, link_status_cb, ctx_cb); - if (ppp == NULL) { - goto ppp_new_failed; - } - - memset(l2tp, 0, sizeof(pppol2tp_pcb)); - l2tp->phase = PPPOL2TP_STATE_INITIAL; - l2tp->ppp = ppp; - l2tp->udp = udp; - l2tp->netif = netif; - ip_addr_copy(l2tp->remote_ip, *ipaddr); - l2tp->remote_port = port; -#if PPPOL2TP_AUTH_SUPPORT - l2tp->secret = secret; - l2tp->secret_len = secret_len; -#endif /* PPPOL2TP_AUTH_SUPPORT */ - - return ppp; - -ppp_new_failed: - udp_remove(udp); -udp_new_failed: - LWIP_MEMPOOL_FREE(PPPOL2TP_PCB, l2tp); -memp_malloc_l2tp_failed: -ipaddr_check_failed: - return NULL; -} - -/* Called by PPP core */ -static err_t pppol2tp_write(ppp_pcb *ppp, void *ctx, struct pbuf *p) { - pppol2tp_pcb *l2tp = (pppol2tp_pcb *)ctx; - struct pbuf *ph; /* UDP + L2TP header */ - err_t ret; -#if MIB2_STATS - u16_t tot_len; -#else /* MIB2_STATS */ - LWIP_UNUSED_ARG(ppp); -#endif /* MIB2_STATS */ - - ph = pbuf_alloc(PBUF_TRANSPORT, (u16_t)(PPPOL2TP_OUTPUT_DATA_HEADER_LEN), PBUF_RAM); - if(!ph) { - LINK_STATS_INC(link.memerr); - LINK_STATS_INC(link.proterr); - MIB2_STATS_NETIF_INC(ppp->netif, ifoutdiscards); - pbuf_free(p); - return ERR_MEM; - } - - pbuf_remove_header(ph, PPPOL2TP_OUTPUT_DATA_HEADER_LEN); /* hide L2TP header */ - pbuf_cat(ph, p); -#if MIB2_STATS - tot_len = ph->tot_len; -#endif /* MIB2_STATS */ - - ret = pppol2tp_xmit(l2tp, ph); - if (ret != ERR_OK) { - LINK_STATS_INC(link.err); - MIB2_STATS_NETIF_INC(ppp->netif, ifoutdiscards); - return ret; - } - - MIB2_STATS_NETIF_ADD(ppp->netif, ifoutoctets, (u16_t)tot_len); - MIB2_STATS_NETIF_INC(ppp->netif, ifoutucastpkts); - LINK_STATS_INC(link.xmit); - return ERR_OK; -} - -/* Called by PPP core */ -static err_t pppol2tp_netif_output(ppp_pcb *ppp, void *ctx, struct pbuf *p, u_short protocol) { - pppol2tp_pcb *l2tp = (pppol2tp_pcb *)ctx; - struct pbuf *pb; - u8_t *pl; - err_t err; -#if MIB2_STATS - u16_t tot_len; -#else /* MIB2_STATS */ - LWIP_UNUSED_ARG(ppp); -#endif /* MIB2_STATS */ - - /* @todo: try to use pbuf_header() here! */ - pb = pbuf_alloc(PBUF_TRANSPORT, PPPOL2TP_OUTPUT_DATA_HEADER_LEN + sizeof(protocol), PBUF_RAM); - if(!pb) { - LINK_STATS_INC(link.memerr); - LINK_STATS_INC(link.proterr); - MIB2_STATS_NETIF_INC(ppp->netif, ifoutdiscards); - return ERR_MEM; - } - - pbuf_remove_header(pb, PPPOL2TP_OUTPUT_DATA_HEADER_LEN); - - pl = (u8_t*)pb->payload; - PUTSHORT(protocol, pl); - - pbuf_chain(pb, p); -#if MIB2_STATS - tot_len = pb->tot_len; -#endif /* MIB2_STATS */ - - if( (err = pppol2tp_xmit(l2tp, pb)) != ERR_OK) { - LINK_STATS_INC(link.err); - MIB2_STATS_NETIF_INC(ppp->netif, ifoutdiscards); - return err; - } - - MIB2_STATS_NETIF_ADD(ppp->netif, ifoutoctets, tot_len); - MIB2_STATS_NETIF_INC(ppp->netif, ifoutucastpkts); - LINK_STATS_INC(link.xmit); - return ERR_OK; -} - -/* Destroy a L2TP control block */ -static err_t pppol2tp_destroy(ppp_pcb *ppp, void *ctx) { - pppol2tp_pcb *l2tp = (pppol2tp_pcb *)ctx; - LWIP_UNUSED_ARG(ppp); - - sys_untimeout(pppol2tp_timeout, l2tp); - udp_remove(l2tp->udp); - LWIP_MEMPOOL_FREE(PPPOL2TP_PCB, l2tp); - return ERR_OK; -} - -/* Be a LAC, connect to a LNS. */ -static void pppol2tp_connect(ppp_pcb *ppp, void *ctx) { - err_t err; - pppol2tp_pcb *l2tp = (pppol2tp_pcb *)ctx; - lcp_options *lcp_wo; - lcp_options *lcp_ao; -#if PPP_IPV4_SUPPORT && VJ_SUPPORT - ipcp_options *ipcp_wo; - ipcp_options *ipcp_ao; -#endif /* PPP_IPV4_SUPPORT && VJ_SUPPORT */ - - l2tp->tunnel_port = l2tp->remote_port; - l2tp->our_ns = 0; - l2tp->peer_nr = 0; - l2tp->peer_ns = 0; - l2tp->source_tunnel_id = 0; - l2tp->remote_tunnel_id = 0; - l2tp->source_session_id = 0; - l2tp->remote_session_id = 0; - /* l2tp->*_retried are cleared when used */ - - lcp_wo = &ppp->lcp_wantoptions; - lcp_wo->mru = PPPOL2TP_DEFMRU; - lcp_wo->neg_asyncmap = 0; - lcp_wo->neg_pcompression = 0; - lcp_wo->neg_accompression = 0; - lcp_wo->passive = 0; - lcp_wo->silent = 0; - - lcp_ao = &ppp->lcp_allowoptions; - lcp_ao->mru = PPPOL2TP_DEFMRU; - lcp_ao->neg_asyncmap = 0; - lcp_ao->neg_pcompression = 0; - lcp_ao->neg_accompression = 0; - -#if PPP_IPV4_SUPPORT && VJ_SUPPORT - ipcp_wo = &ppp->ipcp_wantoptions; - ipcp_wo->neg_vj = 0; - ipcp_wo->old_vj = 0; - - ipcp_ao = &ppp->ipcp_allowoptions; - ipcp_ao->neg_vj = 0; - ipcp_ao->old_vj = 0; -#endif /* PPP_IPV4_SUPPORT && VJ_SUPPORT */ - - /* Listen to a random source port, we need to do that instead of using udp_connect() - * because the L2TP LNS might answer with its own random source port (!= 1701) - */ -#if LWIP_IPV6 - if (IP_IS_V6_VAL(l2tp->udp->local_ip)) { - udp_bind(l2tp->udp, IP6_ADDR_ANY, 0); - } else -#endif /* LWIP_IPV6 */ - udp_bind(l2tp->udp, IP_ADDR_ANY, 0); - -#if PPPOL2TP_AUTH_SUPPORT - /* Generate random vector */ - if (l2tp->secret != NULL) { - magic_random_bytes(l2tp->secret_rv, sizeof(l2tp->secret_rv)); - } -#endif /* PPPOL2TP_AUTH_SUPPORT */ - - do { - l2tp->remote_tunnel_id = magic(); - } while(l2tp->remote_tunnel_id == 0); - /* save state, in case we fail to send SCCRQ */ - l2tp->sccrq_retried = 0; - l2tp->phase = PPPOL2TP_STATE_SCCRQ_SENT; - if ((err = pppol2tp_send_sccrq(l2tp)) != 0) { - PPPDEBUG(LOG_DEBUG, ("pppol2tp: failed to send SCCRQ, error=%d\n", err)); - } - sys_timeout(PPPOL2TP_CONTROL_TIMEOUT, pppol2tp_timeout, l2tp); -} - -/* Disconnect */ -static void pppol2tp_disconnect(ppp_pcb *ppp, void *ctx) { - pppol2tp_pcb *l2tp = (pppol2tp_pcb *)ctx; - - l2tp->our_ns++; - pppol2tp_send_stopccn(l2tp, l2tp->our_ns); - - /* stop any timer, disconnect can be called while initiating is in progress */ - sys_untimeout(pppol2tp_timeout, l2tp); - l2tp->phase = PPPOL2TP_STATE_INITIAL; - ppp_link_end(ppp); /* notify upper layers */ -} - -/* UDP Callback for incoming IPv4 L2TP frames */ -static void pppol2tp_input(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port) { - pppol2tp_pcb *l2tp = (pppol2tp_pcb*)arg; - u16_t hflags, hlen, len=0, tunnel_id=0, session_id=0, ns=0, nr=0, offset=0; - u8_t *inp; - LWIP_UNUSED_ARG(pcb); - - /* we can't unbound a UDP pcb, thus we can still receive UDP frames after the link is closed */ - if (l2tp->phase < PPPOL2TP_STATE_SCCRQ_SENT) { - goto free_and_return; - } - - if (!ip_addr_cmp(&l2tp->remote_ip, addr)) { - goto free_and_return; - } - - /* discard packet if port mismatch, but only if we received a SCCRP */ - if (l2tp->phase > PPPOL2TP_STATE_SCCRQ_SENT && l2tp->tunnel_port != port) { - goto free_and_return; - } - - /* printf("-----------\nL2TP INPUT, %d\n", p->len); */ - - /* L2TP header */ - if (p->len < sizeof(hflags) + sizeof(tunnel_id) + sizeof(session_id) ) { - goto packet_too_short; - } - - inp = (u8_t*)p->payload; - GETSHORT(hflags, inp); - - if (hflags & PPPOL2TP_HEADERFLAG_CONTROL) { - /* check mandatory flags for a control packet */ - if ( (hflags & PPPOL2TP_HEADERFLAG_CONTROL_MANDATORY) != PPPOL2TP_HEADERFLAG_CONTROL_MANDATORY ) { - PPPDEBUG(LOG_DEBUG, ("pppol2tp: mandatory header flags for control packet not set\n")); - goto free_and_return; - } - /* check forbidden flags for a control packet */ - if (hflags & PPPOL2TP_HEADERFLAG_CONTROL_FORBIDDEN) { - PPPDEBUG(LOG_DEBUG, ("pppol2tp: forbidden header flags for control packet found\n")); - goto free_and_return; - } - } else { - /* check mandatory flags for a data packet */ - if ( (hflags & PPPOL2TP_HEADERFLAG_DATA_MANDATORY) != PPPOL2TP_HEADERFLAG_DATA_MANDATORY) { - PPPDEBUG(LOG_DEBUG, ("pppol2tp: mandatory header flags for data packet not set\n")); - goto free_and_return; - } - } - - /* Expected header size */ - hlen = sizeof(hflags) + sizeof(tunnel_id) + sizeof(session_id); - if (hflags & PPPOL2TP_HEADERFLAG_LENGTH) { - hlen += sizeof(len); - } - if (hflags & PPPOL2TP_HEADERFLAG_SEQUENCE) { - hlen += sizeof(ns) + sizeof(nr); - } - if (hflags & PPPOL2TP_HEADERFLAG_OFFSET) { - hlen += sizeof(offset); - } - if (p->len < hlen) { - goto packet_too_short; - } - - if (hflags & PPPOL2TP_HEADERFLAG_LENGTH) { - GETSHORT(len, inp); - if (p->len < len || len < hlen) { - goto packet_too_short; - } - } - GETSHORT(tunnel_id, inp); - GETSHORT(session_id, inp); - if (hflags & PPPOL2TP_HEADERFLAG_SEQUENCE) { - GETSHORT(ns, inp); - GETSHORT(nr, inp); - } - if (hflags & PPPOL2TP_HEADERFLAG_OFFSET) { - GETSHORT(offset, inp) - if (offset > 4096) { /* don't be fooled with large offset which might overflow hlen */ - PPPDEBUG(LOG_DEBUG, ("pppol2tp: strange packet received, offset=%d\n", offset)); - goto free_and_return; - } - hlen += offset; - if (p->len < hlen) { - goto packet_too_short; - } - INCPTR(offset, inp); - } - - /* printf("HLEN = %d\n", hlen); */ - - /* skip L2TP header */ - if (pbuf_remove_header(p, hlen) != 0) { - goto free_and_return; - } - - /* printf("LEN=%d, TUNNEL_ID=%d, SESSION_ID=%d, NS=%d, NR=%d, OFFSET=%d\n", len, tunnel_id, session_id, ns, nr, offset); */ - PPPDEBUG(LOG_DEBUG, ("pppol2tp: input packet, len=%"U16_F", tunnel=%"U16_F", session=%"U16_F", ns=%"U16_F", nr=%"U16_F"\n", - len, tunnel_id, session_id, ns, nr)); - - /* Control packet */ - if (hflags & PPPOL2TP_HEADERFLAG_CONTROL) { - pppol2tp_dispatch_control_packet(l2tp, port, p, ns, nr); - goto free_and_return; - } - - /* Data packet */ - if(l2tp->phase != PPPOL2TP_STATE_DATA) { - goto free_and_return; - } - if(tunnel_id != l2tp->remote_tunnel_id) { - PPPDEBUG(LOG_DEBUG, ("pppol2tp: tunnel ID mismatch, assigned=%d, received=%d\n", l2tp->remote_tunnel_id, tunnel_id)); - goto free_and_return; - } - if(session_id != l2tp->remote_session_id) { - PPPDEBUG(LOG_DEBUG, ("pppol2tp: session ID mismatch, assigned=%d, received=%d\n", l2tp->remote_session_id, session_id)); - goto free_and_return; - } - /* - * skip address & flags if necessary - * - * RFC 2661 does not specify whether the PPP frame in the L2TP payload should - * have a HDLC header or not. We handle both cases for compatibility. - */ - if (p->len >= 2) { - GETSHORT(hflags, inp); - if (hflags == 0xff03) { - pbuf_remove_header(p, 2); - } - } - /* Dispatch the packet thereby consuming it. */ - ppp_input(l2tp->ppp, p); - return; - -packet_too_short: - PPPDEBUG(LOG_DEBUG, ("pppol2tp: packet too short: %d\n", p->len)); -free_and_return: - pbuf_free(p); -} - -/* L2TP Control packet entry point */ -static void pppol2tp_dispatch_control_packet(pppol2tp_pcb *l2tp, u16_t port, struct pbuf *p, u16_t ns, u16_t nr) { - u8_t *inp; - u16_t avplen, avpflags, vendorid, attributetype, messagetype=0; - err_t err; -#if PPPOL2TP_AUTH_SUPPORT - lwip_md5_context md5_ctx; - u8_t md5_hash[16]; - u8_t challenge_id = 0; -#endif /* PPPOL2TP_AUTH_SUPPORT */ - - /* printf("L2TP CTRL INPUT, ns=%d, nr=%d, len=%d\n", ns, nr, p->len); */ - - /* Drop unexpected packet */ - if (ns != l2tp->peer_ns) { - PPPDEBUG(LOG_DEBUG, ("pppol2tp: drop unexpected packet: received NS=%d, expected NS=%d\n", ns, l2tp->peer_ns)); - /* - * In order to ensure that all messages are acknowledged properly - * (particularly in the case of a lost ZLB ACK message), receipt - * of duplicate messages MUST be acknowledged. - * - * In this very special case we Ack a packet we previously received. - * Therefore our NS is the NR we just received. And our NR is the - * NS we just received plus one. - */ - if ((s16_t)(ns - l2tp->peer_ns) < 0) { - pppol2tp_send_zlb(l2tp, nr, ns+1); - } - return; - } - - l2tp->peer_nr = nr; - - /* Handle the special case of the ICCN acknowledge */ - if (l2tp->phase == PPPOL2TP_STATE_ICCN_SENT && (s16_t)(l2tp->peer_nr - l2tp->our_ns) > 0) { - l2tp->phase = PPPOL2TP_STATE_DATA; - sys_untimeout(pppol2tp_timeout, l2tp); - ppp_start(l2tp->ppp); /* notify upper layers */ - } - - /* ZLB packets */ - if (p->tot_len == 0) { - return; - } - /* A ZLB packet does not consume a NS slot thus we don't record the NS value for ZLB packets */ - l2tp->peer_ns = ns+1; - - p = pbuf_coalesce(p, PBUF_RAW); - inp = (u8_t*)p->payload; - /* Decode AVPs */ - while (p->len > 0) { - if (p->len < sizeof(avpflags) + sizeof(vendorid) + sizeof(attributetype) ) { - goto packet_too_short; - } - GETSHORT(avpflags, inp); - avplen = avpflags & PPPOL2TP_AVPHEADERFLAG_LENGTHMASK; - /* printf("AVPLEN = %d\n", avplen); */ - if (p->len < avplen || avplen < sizeof(avpflags) + sizeof(vendorid) + sizeof(attributetype)) { - goto packet_too_short; - } - GETSHORT(vendorid, inp); - GETSHORT(attributetype, inp); - avplen -= sizeof(avpflags) + sizeof(vendorid) + sizeof(attributetype); - - /* Message type must be the first AVP */ - if (messagetype == 0) { - if (attributetype != 0 || vendorid != 0 || avplen != sizeof(messagetype) ) { - PPPDEBUG(LOG_DEBUG, ("pppol2tp: message type must be the first AVP\n")); - return; - } - GETSHORT(messagetype, inp); - /* printf("Message type = %d\n", messagetype); */ - switch(messagetype) { - /* Start Control Connection Reply */ - case PPPOL2TP_MESSAGETYPE_SCCRP: - /* Only accept SCCRP packet if we sent a SCCRQ */ - if (l2tp->phase != PPPOL2TP_STATE_SCCRQ_SENT) { - goto send_zlb; - } - break; - /* Incoming Call Reply */ - case PPPOL2TP_MESSAGETYPE_ICRP: - /* Only accept ICRP packet if we sent a IRCQ */ - if (l2tp->phase != PPPOL2TP_STATE_ICRQ_SENT) { - goto send_zlb; - } - break; - /* Stop Control Connection Notification */ - case PPPOL2TP_MESSAGETYPE_STOPCCN: - pppol2tp_send_zlb(l2tp, l2tp->our_ns+1, l2tp->peer_ns); /* Ack the StopCCN before we switch to down state */ - if (l2tp->phase < PPPOL2TP_STATE_DATA) { - pppol2tp_abort_connect(l2tp); - } else if (l2tp->phase == PPPOL2TP_STATE_DATA) { - /* Don't disconnect here, we let the LCP Echo/Reply find the fact - * that PPP session is down. Asking the PPP stack to end the session - * require strict checking about the PPP phase to prevent endless - * disconnection loops. - */ - } - return; - default: - break; - } - goto nextavp; - } - - /* Skip proprietary L2TP extensions */ - if (vendorid != 0) { - goto skipavp; - } - - switch (messagetype) { - /* Start Control Connection Reply */ - case PPPOL2TP_MESSAGETYPE_SCCRP: - switch (attributetype) { - case PPPOL2TP_AVPTYPE_TUNNELID: - if (avplen != sizeof(l2tp->source_tunnel_id) ) { - PPPDEBUG(LOG_DEBUG, ("pppol2tp: AVP Assign tunnel ID length check failed\n")); - return; - } - GETSHORT(l2tp->source_tunnel_id, inp); - PPPDEBUG(LOG_DEBUG, ("pppol2tp: Assigned tunnel ID %"U16_F"\n", l2tp->source_tunnel_id)); - goto nextavp; -#if PPPOL2TP_AUTH_SUPPORT - case PPPOL2TP_AVPTYPE_CHALLENGE: - if (avplen == 0) { - PPPDEBUG(LOG_DEBUG, ("pppol2tp: Challenge length check failed\n")); - return; - } - if (l2tp->secret == NULL) { - PPPDEBUG(LOG_DEBUG, ("pppol2tp: Received challenge from peer and no secret key available\n")); - pppol2tp_abort_connect(l2tp); - return; - } - /* Generate hash of ID, secret, challenge */ - lwip_md5_init(&md5_ctx); - lwip_md5_starts(&md5_ctx); - challenge_id = PPPOL2TP_MESSAGETYPE_SCCCN; - lwip_md5_update(&md5_ctx, &challenge_id, 1); - lwip_md5_update(&md5_ctx, l2tp->secret, l2tp->secret_len); - lwip_md5_update(&md5_ctx, inp, avplen); - lwip_md5_finish(&md5_ctx, l2tp->challenge_hash); - lwip_md5_free(&md5_ctx); - l2tp->send_challenge = 1; - goto skipavp; - case PPPOL2TP_AVPTYPE_CHALLENGERESPONSE: - if (avplen != PPPOL2TP_AVPTYPE_CHALLENGERESPONSE_SIZE) { - PPPDEBUG(LOG_DEBUG, ("pppol2tp: AVP Challenge Response length check failed\n")); - return; - } - /* Generate hash of ID, secret, challenge */ - lwip_md5_init(&md5_ctx); - lwip_md5_starts(&md5_ctx); - challenge_id = PPPOL2TP_MESSAGETYPE_SCCRP; - lwip_md5_update(&md5_ctx, &challenge_id, 1); - lwip_md5_update(&md5_ctx, l2tp->secret, l2tp->secret_len); - lwip_md5_update(&md5_ctx, l2tp->secret_rv, sizeof(l2tp->secret_rv)); - lwip_md5_finish(&md5_ctx, md5_hash); - lwip_md5_free(&md5_ctx); - if ( memcmp(inp, md5_hash, sizeof(md5_hash)) ) { - PPPDEBUG(LOG_DEBUG, ("pppol2tp: Received challenge response from peer and secret key do not match\n")); - pppol2tp_abort_connect(l2tp); - return; - } - goto skipavp; -#endif /* PPPOL2TP_AUTH_SUPPORT */ - default: - break; - } - break; - /* Incoming Call Reply */ - case PPPOL2TP_MESSAGETYPE_ICRP: - switch (attributetype) { - case PPPOL2TP_AVPTYPE_SESSIONID: - if (avplen != sizeof(l2tp->source_session_id) ) { - PPPDEBUG(LOG_DEBUG, ("pppol2tp: AVP Assign session ID length check failed\n")); - return; - } - GETSHORT(l2tp->source_session_id, inp); - PPPDEBUG(LOG_DEBUG, ("pppol2tp: Assigned session ID %"U16_F"\n", l2tp->source_session_id)); - goto nextavp; - default: - break; - } - break; - default: - break; - } - -skipavp: - INCPTR(avplen, inp); -nextavp: - /* printf("AVP Found, vendor=%d, attribute=%d, len=%d\n", vendorid, attributetype, avplen); */ - /* next AVP */ - if (pbuf_remove_header(p, avplen + sizeof(avpflags) + sizeof(vendorid) + sizeof(attributetype)) != 0) { - return; - } - } - - switch(messagetype) { - /* Start Control Connection Reply */ - case PPPOL2TP_MESSAGETYPE_SCCRP: - do { - l2tp->remote_session_id = magic(); - } while(l2tp->remote_session_id == 0); - l2tp->tunnel_port = port; /* LNS server might have chosen its own local port */ - l2tp->icrq_retried = 0; - l2tp->phase = PPPOL2TP_STATE_ICRQ_SENT; - l2tp->our_ns++; - if ((err = pppol2tp_send_scccn(l2tp, l2tp->our_ns)) != 0) { - PPPDEBUG(LOG_DEBUG, ("pppol2tp: failed to send SCCCN, error=%d\n", err)); - LWIP_UNUSED_ARG(err); /* if PPPDEBUG is disabled */ - } - l2tp->our_ns++; - if ((err = pppol2tp_send_icrq(l2tp, l2tp->our_ns)) != 0) { - PPPDEBUG(LOG_DEBUG, ("pppol2tp: failed to send ICRQ, error=%d\n", err)); - LWIP_UNUSED_ARG(err); /* if PPPDEBUG is disabled */ - } - sys_untimeout(pppol2tp_timeout, l2tp); - sys_timeout(PPPOL2TP_CONTROL_TIMEOUT, pppol2tp_timeout, l2tp); - break; - /* Incoming Call Reply */ - case PPPOL2TP_MESSAGETYPE_ICRP: - l2tp->iccn_retried = 0; - l2tp->phase = PPPOL2TP_STATE_ICCN_SENT; - l2tp->our_ns++; - if ((err = pppol2tp_send_iccn(l2tp, l2tp->our_ns)) != 0) { - PPPDEBUG(LOG_DEBUG, ("pppol2tp: failed to send ICCN, error=%d\n", err)); - LWIP_UNUSED_ARG(err); /* if PPPDEBUG is disabled */ - } - sys_untimeout(pppol2tp_timeout, l2tp); - sys_timeout(PPPOL2TP_CONTROL_TIMEOUT, pppol2tp_timeout, l2tp); - break; - /* Unhandled packet, send ZLB ACK */ - default: - goto send_zlb; - } - return; - -send_zlb: - pppol2tp_send_zlb(l2tp, l2tp->our_ns+1, l2tp->peer_ns); - return; -packet_too_short: - PPPDEBUG(LOG_DEBUG, ("pppol2tp: packet too short: %d\n", p->len)); -} - -/* L2TP Timeout handler */ -static void pppol2tp_timeout(void *arg) { - pppol2tp_pcb *l2tp = (pppol2tp_pcb*)arg; - err_t err; - u32_t retry_wait; - - PPPDEBUG(LOG_DEBUG, ("pppol2tp: timeout\n")); - - switch (l2tp->phase) { - case PPPOL2TP_STATE_SCCRQ_SENT: - /* backoff wait */ - if (l2tp->sccrq_retried < 0xff) { - l2tp->sccrq_retried++; - } - if (!l2tp->ppp->settings.persist && l2tp->sccrq_retried >= PPPOL2TP_MAXSCCRQ) { - pppol2tp_abort_connect(l2tp); - return; - } - retry_wait = LWIP_MIN(PPPOL2TP_CONTROL_TIMEOUT * l2tp->sccrq_retried, PPPOL2TP_SLOW_RETRY); - PPPDEBUG(LOG_DEBUG, ("pppol2tp: sccrq_retried=%d\n", l2tp->sccrq_retried)); - if ((err = pppol2tp_send_sccrq(l2tp)) != 0) { - l2tp->sccrq_retried--; - PPPDEBUG(LOG_DEBUG, ("pppol2tp: failed to send SCCRQ, error=%d\n", err)); - LWIP_UNUSED_ARG(err); /* if PPPDEBUG is disabled */ - } - sys_timeout(retry_wait, pppol2tp_timeout, l2tp); - break; - - case PPPOL2TP_STATE_ICRQ_SENT: - l2tp->icrq_retried++; - if (l2tp->icrq_retried >= PPPOL2TP_MAXICRQ) { - pppol2tp_abort_connect(l2tp); - return; - } - PPPDEBUG(LOG_DEBUG, ("pppol2tp: icrq_retried=%d\n", l2tp->icrq_retried)); - if ((s16_t)(l2tp->peer_nr - l2tp->our_ns) < 0) { /* the SCCCN was not acknowledged */ - if ((err = pppol2tp_send_scccn(l2tp, l2tp->our_ns -1)) != 0) { - l2tp->icrq_retried--; - PPPDEBUG(LOG_DEBUG, ("pppol2tp: failed to send SCCCN, error=%d\n", err)); - LWIP_UNUSED_ARG(err); /* if PPPDEBUG is disabled */ - sys_timeout(PPPOL2TP_CONTROL_TIMEOUT, pppol2tp_timeout, l2tp); - break; - } - } - if ((err = pppol2tp_send_icrq(l2tp, l2tp->our_ns)) != 0) { - l2tp->icrq_retried--; - PPPDEBUG(LOG_DEBUG, ("pppol2tp: failed to send ICRQ, error=%d\n", err)); - LWIP_UNUSED_ARG(err); /* if PPPDEBUG is disabled */ - } - sys_timeout(PPPOL2TP_CONTROL_TIMEOUT, pppol2tp_timeout, l2tp); - break; - - case PPPOL2TP_STATE_ICCN_SENT: - l2tp->iccn_retried++; - if (l2tp->iccn_retried >= PPPOL2TP_MAXICCN) { - pppol2tp_abort_connect(l2tp); - return; - } - PPPDEBUG(LOG_DEBUG, ("pppol2tp: iccn_retried=%d\n", l2tp->iccn_retried)); - if ((err = pppol2tp_send_iccn(l2tp, l2tp->our_ns)) != 0) { - l2tp->iccn_retried--; - PPPDEBUG(LOG_DEBUG, ("pppol2tp: failed to send ICCN, error=%d\n", err)); - LWIP_UNUSED_ARG(err); /* if PPPDEBUG is disabled */ - } - sys_timeout(PPPOL2TP_CONTROL_TIMEOUT, pppol2tp_timeout, l2tp); - break; - - default: - return; /* all done, work in peace */ - } -} - -/* Connection attempt aborted */ -static void pppol2tp_abort_connect(pppol2tp_pcb *l2tp) { - PPPDEBUG(LOG_DEBUG, ("pppol2tp: could not establish connection\n")); - l2tp->phase = PPPOL2TP_STATE_INITIAL; - ppp_link_failed(l2tp->ppp); /* notify upper layers */ -} - -/* Initiate a new tunnel */ -static err_t pppol2tp_send_sccrq(pppol2tp_pcb *l2tp) { - struct pbuf *pb; - u8_t *p; - u16_t len; - - /* calculate UDP packet length */ - len = 12 +8 +8 +10 +10 +6+sizeof(PPPOL2TP_HOSTNAME)-1 +6+sizeof(PPPOL2TP_VENDORNAME)-1 +8 +8; -#if PPPOL2TP_AUTH_SUPPORT - if (l2tp->secret != NULL) { - len += 6 + sizeof(l2tp->secret_rv); - } -#endif /* PPPOL2TP_AUTH_SUPPORT */ - - /* allocate a buffer */ - pb = pbuf_alloc(PBUF_TRANSPORT, len, PBUF_RAM); - if (pb == NULL) { - return ERR_MEM; - } - LWIP_ASSERT("pb->tot_len == pb->len", pb->tot_len == pb->len); - - p = (u8_t*)pb->payload; - /* fill in pkt */ - /* L2TP control header */ - PUTSHORT(PPPOL2TP_HEADERFLAG_CONTROL_MANDATORY, p); - PUTSHORT(len, p); /* Length */ - PUTSHORT(0, p); /* Tunnel Id */ - PUTSHORT(0, p); /* Session Id */ - PUTSHORT(0, p); /* NS Sequence number - to peer */ - PUTSHORT(0, p); /* NR Sequence number - expected for peer */ - - /* AVP - Message type */ - PUTSHORT(PPPOL2TP_AVPHEADERFLAG_MANDATORY + 8, p); /* Mandatory flag + len field */ - PUTSHORT(0, p); /* Vendor ID */ - PUTSHORT(PPPOL2TP_AVPTYPE_MESSAGE, p); /* Attribute type: Message Type */ - PUTSHORT(PPPOL2TP_MESSAGETYPE_SCCRQ, p); /* Attribute value: Message type: SCCRQ */ - - /* AVP - L2TP Version */ - PUTSHORT(PPPOL2TP_AVPHEADERFLAG_MANDATORY + 8, p); /* Mandatory flag + len field */ - PUTSHORT(0, p); /* Vendor ID */ - PUTSHORT(PPPOL2TP_AVPTYPE_VERSION, p); /* Attribute type: Version */ - PUTSHORT(PPPOL2TP_VERSION, p); /* Attribute value: L2TP Version */ - - /* AVP - Framing capabilities */ - PUTSHORT(PPPOL2TP_AVPHEADERFLAG_MANDATORY + 10, p); /* Mandatory flag + len field */ - PUTSHORT(0, p); /* Vendor ID */ - PUTSHORT(PPPOL2TP_AVPTYPE_FRAMINGCAPABILITIES, p); /* Attribute type: Framing capabilities */ - PUTLONG(PPPOL2TP_FRAMINGCAPABILITIES, p); /* Attribute value: Framing capabilities */ - - /* AVP - Bearer capabilities */ - PUTSHORT(PPPOL2TP_AVPHEADERFLAG_MANDATORY + 10, p); /* Mandatory flag + len field */ - PUTSHORT(0, p); /* Vendor ID */ - PUTSHORT(PPPOL2TP_AVPTYPE_BEARERCAPABILITIES, p); /* Attribute type: Bearer capabilities */ - PUTLONG(PPPOL2TP_BEARERCAPABILITIES, p); /* Attribute value: Bearer capabilities */ - - /* AVP - Host name */ - PUTSHORT(PPPOL2TP_AVPHEADERFLAG_MANDATORY + 6+sizeof(PPPOL2TP_HOSTNAME)-1, p); /* Mandatory flag + len field */ - PUTSHORT(0, p); /* Vendor ID */ - PUTSHORT(PPPOL2TP_AVPTYPE_HOSTNAME, p); /* Attribute type: Hostname */ - MEMCPY(p, PPPOL2TP_HOSTNAME, sizeof(PPPOL2TP_HOSTNAME)-1); /* Attribute value: Hostname */ - INCPTR(sizeof(PPPOL2TP_HOSTNAME)-1, p); - - /* AVP - Vendor name */ - PUTSHORT(6+sizeof(PPPOL2TP_VENDORNAME)-1, p); /* len field */ - PUTSHORT(0, p); /* Vendor ID */ - PUTSHORT(PPPOL2TP_AVPTYPE_VENDORNAME, p); /* Attribute type: Vendor name */ - MEMCPY(p, PPPOL2TP_VENDORNAME, sizeof(PPPOL2TP_VENDORNAME)-1); /* Attribute value: Vendor name */ - INCPTR(sizeof(PPPOL2TP_VENDORNAME)-1, p); - - /* AVP - Assign tunnel ID */ - PUTSHORT(PPPOL2TP_AVPHEADERFLAG_MANDATORY + 8, p); /* Mandatory flag + len field */ - PUTSHORT(0, p); /* Vendor ID */ - PUTSHORT(PPPOL2TP_AVPTYPE_TUNNELID, p); /* Attribute type: Tunnel ID */ - PUTSHORT(l2tp->remote_tunnel_id, p); /* Attribute value: Tunnel ID */ - - /* AVP - Receive window size */ - PUTSHORT(PPPOL2TP_AVPHEADERFLAG_MANDATORY + 8, p); /* Mandatory flag + len field */ - PUTSHORT(0, p); /* Vendor ID */ - PUTSHORT(PPPOL2TP_AVPTYPE_RECEIVEWINDOWSIZE, p); /* Attribute type: Receive window size */ - PUTSHORT(PPPOL2TP_RECEIVEWINDOWSIZE, p); /* Attribute value: Receive window size */ - -#if PPPOL2TP_AUTH_SUPPORT - /* AVP - Challenge */ - if (l2tp->secret != NULL) { - PUTSHORT(PPPOL2TP_AVPHEADERFLAG_MANDATORY + 6 + sizeof(l2tp->secret_rv), p); /* Mandatory flag + len field */ - PUTSHORT(0, p); /* Vendor ID */ - PUTSHORT(PPPOL2TP_AVPTYPE_CHALLENGE, p); /* Attribute type: Challenge */ - MEMCPY(p, l2tp->secret_rv, sizeof(l2tp->secret_rv)); /* Attribute value: Random vector */ - INCPTR(sizeof(l2tp->secret_rv), p); - } -#endif /* PPPOL2TP_AUTH_SUPPORT */ - - return pppol2tp_udp_send(l2tp, pb); -} - -/* Complete tunnel establishment */ -static err_t pppol2tp_send_scccn(pppol2tp_pcb *l2tp, u16_t ns) { - struct pbuf *pb; - u8_t *p; - u16_t len; - - /* calculate UDP packet length */ - len = 12 +8; -#if PPPOL2TP_AUTH_SUPPORT - if (l2tp->send_challenge) { - len += 6 + sizeof(l2tp->challenge_hash); - } -#endif /* PPPOL2TP_AUTH_SUPPORT */ - - /* allocate a buffer */ - pb = pbuf_alloc(PBUF_TRANSPORT, len, PBUF_RAM); - if (pb == NULL) { - return ERR_MEM; - } - LWIP_ASSERT("pb->tot_len == pb->len", pb->tot_len == pb->len); - - p = (u8_t*)pb->payload; - /* fill in pkt */ - /* L2TP control header */ - PUTSHORT(PPPOL2TP_HEADERFLAG_CONTROL_MANDATORY, p); - PUTSHORT(len, p); /* Length */ - PUTSHORT(l2tp->source_tunnel_id, p); /* Tunnel Id */ - PUTSHORT(0, p); /* Session Id */ - PUTSHORT(ns, p); /* NS Sequence number - to peer */ - PUTSHORT(l2tp->peer_ns, p); /* NR Sequence number - expected for peer */ - - /* AVP - Message type */ - PUTSHORT(PPPOL2TP_AVPHEADERFLAG_MANDATORY + 8, p); /* Mandatory flag + len field */ - PUTSHORT(0, p); /* Vendor ID */ - PUTSHORT(PPPOL2TP_AVPTYPE_MESSAGE, p); /* Attribute type: Message Type */ - PUTSHORT(PPPOL2TP_MESSAGETYPE_SCCCN, p); /* Attribute value: Message type: SCCCN */ - -#if PPPOL2TP_AUTH_SUPPORT - /* AVP - Challenge response */ - if (l2tp->send_challenge) { - PUTSHORT(PPPOL2TP_AVPHEADERFLAG_MANDATORY + 6 + sizeof(l2tp->challenge_hash), p); /* Mandatory flag + len field */ - PUTSHORT(0, p); /* Vendor ID */ - PUTSHORT(PPPOL2TP_AVPTYPE_CHALLENGERESPONSE, p); /* Attribute type: Challenge response */ - MEMCPY(p, l2tp->challenge_hash, sizeof(l2tp->challenge_hash)); /* Attribute value: Computed challenge */ - INCPTR(sizeof(l2tp->challenge_hash), p); - } -#endif /* PPPOL2TP_AUTH_SUPPORT */ - - return pppol2tp_udp_send(l2tp, pb); -} - -/* Initiate a new session */ -static err_t pppol2tp_send_icrq(pppol2tp_pcb *l2tp, u16_t ns) { - struct pbuf *pb; - u8_t *p; - u16_t len; - u32_t serialnumber; - - /* calculate UDP packet length */ - len = 12 +8 +8 +10; - - /* allocate a buffer */ - pb = pbuf_alloc(PBUF_TRANSPORT, len, PBUF_RAM); - if (pb == NULL) { - return ERR_MEM; - } - LWIP_ASSERT("pb->tot_len == pb->len", pb->tot_len == pb->len); - - p = (u8_t*)pb->payload; - /* fill in pkt */ - /* L2TP control header */ - PUTSHORT(PPPOL2TP_HEADERFLAG_CONTROL_MANDATORY, p); - PUTSHORT(len, p); /* Length */ - PUTSHORT(l2tp->source_tunnel_id, p); /* Tunnel Id */ - PUTSHORT(0, p); /* Session Id */ - PUTSHORT(ns, p); /* NS Sequence number - to peer */ - PUTSHORT(l2tp->peer_ns, p); /* NR Sequence number - expected for peer */ - - /* AVP - Message type */ - PUTSHORT(PPPOL2TP_AVPHEADERFLAG_MANDATORY + 8, p); /* Mandatory flag + len field */ - PUTSHORT(0, p); /* Vendor ID */ - PUTSHORT(PPPOL2TP_AVPTYPE_MESSAGE, p); /* Attribute type: Message Type */ - PUTSHORT(PPPOL2TP_MESSAGETYPE_ICRQ, p); /* Attribute value: Message type: ICRQ */ - - /* AVP - Assign session ID */ - PUTSHORT(PPPOL2TP_AVPHEADERFLAG_MANDATORY + 8, p); /* Mandatory flag + len field */ - PUTSHORT(0, p); /* Vendor ID */ - PUTSHORT(PPPOL2TP_AVPTYPE_SESSIONID, p); /* Attribute type: Session ID */ - PUTSHORT(l2tp->remote_session_id, p); /* Attribute value: Session ID */ - - /* AVP - Call Serial Number */ - PUTSHORT(PPPOL2TP_AVPHEADERFLAG_MANDATORY + 10, p); /* Mandatory flag + len field */ - PUTSHORT(0, p); /* Vendor ID */ - PUTSHORT(PPPOL2TP_AVPTYPE_CALLSERIALNUMBER, p); /* Attribute type: Serial number */ - serialnumber = magic(); - PUTLONG(serialnumber, p); /* Attribute value: Serial number */ - - return pppol2tp_udp_send(l2tp, pb); -} - -/* Complete tunnel establishment */ -static err_t pppol2tp_send_iccn(pppol2tp_pcb *l2tp, u16_t ns) { - struct pbuf *pb; - u8_t *p; - u16_t len; - - /* calculate UDP packet length */ - len = 12 +8 +10 +10; - - /* allocate a buffer */ - pb = pbuf_alloc(PBUF_TRANSPORT, len, PBUF_RAM); - if (pb == NULL) { - return ERR_MEM; - } - LWIP_ASSERT("pb->tot_len == pb->len", pb->tot_len == pb->len); - - p = (u8_t*)pb->payload; - /* fill in pkt */ - /* L2TP control header */ - PUTSHORT(PPPOL2TP_HEADERFLAG_CONTROL_MANDATORY, p); - PUTSHORT(len, p); /* Length */ - PUTSHORT(l2tp->source_tunnel_id, p); /* Tunnel Id */ - PUTSHORT(l2tp->source_session_id, p); /* Session Id */ - PUTSHORT(ns, p); /* NS Sequence number - to peer */ - PUTSHORT(l2tp->peer_ns, p); /* NR Sequence number - expected for peer */ - - /* AVP - Message type */ - PUTSHORT(PPPOL2TP_AVPHEADERFLAG_MANDATORY + 8, p); /* Mandatory flag + len field */ - PUTSHORT(0, p); /* Vendor ID */ - PUTSHORT(PPPOL2TP_AVPTYPE_MESSAGE, p); /* Attribute type: Message Type */ - PUTSHORT(PPPOL2TP_MESSAGETYPE_ICCN, p); /* Attribute value: Message type: ICCN */ - - /* AVP - Framing type */ - PUTSHORT(PPPOL2TP_AVPHEADERFLAG_MANDATORY + 10, p); /* Mandatory flag + len field */ - PUTSHORT(0, p); /* Vendor ID */ - PUTSHORT(PPPOL2TP_AVPTYPE_FRAMINGTYPE, p); /* Attribute type: Framing type */ - PUTLONG(PPPOL2TP_FRAMINGTYPE, p); /* Attribute value: Framing type */ - - /* AVP - TX Connect speed */ - PUTSHORT(PPPOL2TP_AVPHEADERFLAG_MANDATORY + 10, p); /* Mandatory flag + len field */ - PUTSHORT(0, p); /* Vendor ID */ - PUTSHORT(PPPOL2TP_AVPTYPE_TXCONNECTSPEED, p); /* Attribute type: TX Connect speed */ - PUTLONG(PPPOL2TP_TXCONNECTSPEED, p); /* Attribute value: TX Connect speed */ - - return pppol2tp_udp_send(l2tp, pb); -} - -/* Send a ZLB ACK packet */ -static err_t pppol2tp_send_zlb(pppol2tp_pcb *l2tp, u16_t ns, u16_t nr) { - struct pbuf *pb; - u8_t *p; - u16_t len; - - /* calculate UDP packet length */ - len = 12; - - /* allocate a buffer */ - pb = pbuf_alloc(PBUF_TRANSPORT, len, PBUF_RAM); - if (pb == NULL) { - return ERR_MEM; - } - LWIP_ASSERT("pb->tot_len == pb->len", pb->tot_len == pb->len); - - p = (u8_t*)pb->payload; - /* fill in pkt */ - /* L2TP control header */ - PUTSHORT(PPPOL2TP_HEADERFLAG_CONTROL_MANDATORY, p); - PUTSHORT(len, p); /* Length */ - PUTSHORT(l2tp->source_tunnel_id, p); /* Tunnel Id */ - PUTSHORT(0, p); /* Session Id */ - PUTSHORT(ns, p); /* NS Sequence number - to peer */ - PUTSHORT(nr, p); /* NR Sequence number - expected for peer */ - - return pppol2tp_udp_send(l2tp, pb); -} - -/* Send a StopCCN packet */ -static err_t pppol2tp_send_stopccn(pppol2tp_pcb *l2tp, u16_t ns) { - struct pbuf *pb; - u8_t *p; - u16_t len; - - /* calculate UDP packet length */ - len = 12 +8 +8 +8; - - /* allocate a buffer */ - pb = pbuf_alloc(PBUF_TRANSPORT, len, PBUF_RAM); - if (pb == NULL) { - return ERR_MEM; - } - LWIP_ASSERT("pb->tot_len == pb->len", pb->tot_len == pb->len); - - p = (u8_t*)pb->payload; - /* fill in pkt */ - /* L2TP control header */ - PUTSHORT(PPPOL2TP_HEADERFLAG_CONTROL_MANDATORY, p); - PUTSHORT(len, p); /* Length */ - PUTSHORT(l2tp->source_tunnel_id, p); /* Tunnel Id */ - PUTSHORT(0, p); /* Session Id */ - PUTSHORT(ns, p); /* NS Sequence number - to peer */ - PUTSHORT(l2tp->peer_ns, p); /* NR Sequence number - expected for peer */ - - /* AVP - Message type */ - PUTSHORT(PPPOL2TP_AVPHEADERFLAG_MANDATORY + 8, p); /* Mandatory flag + len field */ - PUTSHORT(0, p); /* Vendor ID */ - PUTSHORT(PPPOL2TP_AVPTYPE_MESSAGE, p); /* Attribute type: Message Type */ - PUTSHORT(PPPOL2TP_MESSAGETYPE_STOPCCN, p); /* Attribute value: Message type: StopCCN */ - - /* AVP - Assign tunnel ID */ - PUTSHORT(PPPOL2TP_AVPHEADERFLAG_MANDATORY + 8, p); /* Mandatory flag + len field */ - PUTSHORT(0, p); /* Vendor ID */ - PUTSHORT(PPPOL2TP_AVPTYPE_TUNNELID, p); /* Attribute type: Tunnel ID */ - PUTSHORT(l2tp->remote_tunnel_id, p); /* Attribute value: Tunnel ID */ - - /* AVP - Result code */ - PUTSHORT(PPPOL2TP_AVPHEADERFLAG_MANDATORY + 8, p); /* Mandatory flag + len field */ - PUTSHORT(0, p); /* Vendor ID */ - PUTSHORT(PPPOL2TP_AVPTYPE_RESULTCODE, p); /* Attribute type: Result code */ - PUTSHORT(PPPOL2TP_RESULTCODE, p); /* Attribute value: Result code */ - - return pppol2tp_udp_send(l2tp, pb); -} - -static err_t pppol2tp_xmit(pppol2tp_pcb *l2tp, struct pbuf *pb) { - u8_t *p; - - /* make room for L2TP header - should not fail */ - if (pbuf_add_header(pb, PPPOL2TP_OUTPUT_DATA_HEADER_LEN) != 0) { - /* bail out */ - PPPDEBUG(LOG_ERR, ("pppol2tp: pppol2tp_pcb: could not allocate room for L2TP header\n")); - LINK_STATS_INC(link.lenerr); - pbuf_free(pb); - return ERR_BUF; - } - - p = (u8_t*)pb->payload; - PUTSHORT(PPPOL2TP_HEADERFLAG_DATA_MANDATORY, p); - PUTSHORT(l2tp->source_tunnel_id, p); /* Tunnel Id */ - PUTSHORT(l2tp->source_session_id, p); /* Session Id */ - - return pppol2tp_udp_send(l2tp, pb); -} - -static err_t pppol2tp_udp_send(pppol2tp_pcb *l2tp, struct pbuf *pb) { - err_t err; - if (l2tp->netif) { - err = udp_sendto_if(l2tp->udp, pb, &l2tp->remote_ip, l2tp->tunnel_port, l2tp->netif); - } else { - err = udp_sendto(l2tp->udp, pb, &l2tp->remote_ip, l2tp->tunnel_port); - } - pbuf_free(pb); - return err; -} - -#endif /* PPP_SUPPORT && PPPOL2TP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.c b/Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.c deleted file mode 100644 index dff0255..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/ppp/pppos.c +++ /dev/null @@ -1,895 +0,0 @@ -/** - * @file - * Network Point to Point Protocol over Serial file. - * - */ - -/* - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && PPPOS_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#include - -#include "lwip/arch.h" -#include "lwip/err.h" -#include "lwip/pbuf.h" -#include "lwip/sys.h" -#include "lwip/memp.h" -#include "lwip/netif.h" -#include "lwip/snmp.h" -#include "lwip/priv/tcpip_priv.h" -#include "lwip/api.h" -#include "lwip/ip4.h" /* for ip4_input() */ - -#include "netif/ppp/ppp_impl.h" -#include "netif/ppp/pppos.h" -#include "netif/ppp/vj.h" - -/* Memory pool */ -LWIP_MEMPOOL_DECLARE(PPPOS_PCB, MEMP_NUM_PPPOS_INTERFACES, sizeof(pppos_pcb), "PPPOS_PCB") - -/* callbacks called from PPP core */ -static err_t pppos_write(ppp_pcb *ppp, void *ctx, struct pbuf *p); -static err_t pppos_netif_output(ppp_pcb *ppp, void *ctx, struct pbuf *pb, u16_t protocol); -static void pppos_connect(ppp_pcb *ppp, void *ctx); -#if PPP_SERVER -static void pppos_listen(ppp_pcb *ppp, void *ctx); -#endif /* PPP_SERVER */ -static void pppos_disconnect(ppp_pcb *ppp, void *ctx); -static err_t pppos_destroy(ppp_pcb *ppp, void *ctx); -static void pppos_send_config(ppp_pcb *ppp, void *ctx, u32_t accm, int pcomp, int accomp); -static void pppos_recv_config(ppp_pcb *ppp, void *ctx, u32_t accm, int pcomp, int accomp); - -/* Prototypes for procedures local to this file. */ -#if PPP_INPROC_IRQ_SAFE -static void pppos_input_callback(void *arg); -#endif /* PPP_INPROC_IRQ_SAFE */ -static void pppos_input_free_current_packet(pppos_pcb *pppos); -static void pppos_input_drop(pppos_pcb *pppos); -static err_t pppos_output_append(pppos_pcb *pppos, err_t err, struct pbuf *nb, u8_t c, u8_t accm, u16_t *fcs); -static err_t pppos_output_last(pppos_pcb *pppos, err_t err, struct pbuf *nb, u16_t *fcs); - -/* Callbacks structure for PPP core */ -static const struct link_callbacks pppos_callbacks = { - pppos_connect, -#if PPP_SERVER - pppos_listen, -#endif /* PPP_SERVER */ - pppos_disconnect, - pppos_destroy, - pppos_write, - pppos_netif_output, - pppos_send_config, - pppos_recv_config -}; - -/* PPP's Asynchronous-Control-Character-Map. The mask array is used - * to select the specific bit for a character. */ -#define ESCAPE_P(accm, c) ((accm)[(c) >> 3] & 1 << (c & 0x07)) - -#if PPP_FCS_TABLE -/* - * FCS lookup table as calculated by genfcstab. - */ -static const u16_t fcstab[256] = { - 0x0000, 0x1189, 0x2312, 0x329b, 0x4624, 0x57ad, 0x6536, 0x74bf, - 0x8c48, 0x9dc1, 0xaf5a, 0xbed3, 0xca6c, 0xdbe5, 0xe97e, 0xf8f7, - 0x1081, 0x0108, 0x3393, 0x221a, 0x56a5, 0x472c, 0x75b7, 0x643e, - 0x9cc9, 0x8d40, 0xbfdb, 0xae52, 0xdaed, 0xcb64, 0xf9ff, 0xe876, - 0x2102, 0x308b, 0x0210, 0x1399, 0x6726, 0x76af, 0x4434, 0x55bd, - 0xad4a, 0xbcc3, 0x8e58, 0x9fd1, 0xeb6e, 0xfae7, 0xc87c, 0xd9f5, - 0x3183, 0x200a, 0x1291, 0x0318, 0x77a7, 0x662e, 0x54b5, 0x453c, - 0xbdcb, 0xac42, 0x9ed9, 0x8f50, 0xfbef, 0xea66, 0xd8fd, 0xc974, - 0x4204, 0x538d, 0x6116, 0x709f, 0x0420, 0x15a9, 0x2732, 0x36bb, - 0xce4c, 0xdfc5, 0xed5e, 0xfcd7, 0x8868, 0x99e1, 0xab7a, 0xbaf3, - 0x5285, 0x430c, 0x7197, 0x601e, 0x14a1, 0x0528, 0x37b3, 0x263a, - 0xdecd, 0xcf44, 0xfddf, 0xec56, 0x98e9, 0x8960, 0xbbfb, 0xaa72, - 0x6306, 0x728f, 0x4014, 0x519d, 0x2522, 0x34ab, 0x0630, 0x17b9, - 0xef4e, 0xfec7, 0xcc5c, 0xddd5, 0xa96a, 0xb8e3, 0x8a78, 0x9bf1, - 0x7387, 0x620e, 0x5095, 0x411c, 0x35a3, 0x242a, 0x16b1, 0x0738, - 0xffcf, 0xee46, 0xdcdd, 0xcd54, 0xb9eb, 0xa862, 0x9af9, 0x8b70, - 0x8408, 0x9581, 0xa71a, 0xb693, 0xc22c, 0xd3a5, 0xe13e, 0xf0b7, - 0x0840, 0x19c9, 0x2b52, 0x3adb, 0x4e64, 0x5fed, 0x6d76, 0x7cff, - 0x9489, 0x8500, 0xb79b, 0xa612, 0xd2ad, 0xc324, 0xf1bf, 0xe036, - 0x18c1, 0x0948, 0x3bd3, 0x2a5a, 0x5ee5, 0x4f6c, 0x7df7, 0x6c7e, - 0xa50a, 0xb483, 0x8618, 0x9791, 0xe32e, 0xf2a7, 0xc03c, 0xd1b5, - 0x2942, 0x38cb, 0x0a50, 0x1bd9, 0x6f66, 0x7eef, 0x4c74, 0x5dfd, - 0xb58b, 0xa402, 0x9699, 0x8710, 0xf3af, 0xe226, 0xd0bd, 0xc134, - 0x39c3, 0x284a, 0x1ad1, 0x0b58, 0x7fe7, 0x6e6e, 0x5cf5, 0x4d7c, - 0xc60c, 0xd785, 0xe51e, 0xf497, 0x8028, 0x91a1, 0xa33a, 0xb2b3, - 0x4a44, 0x5bcd, 0x6956, 0x78df, 0x0c60, 0x1de9, 0x2f72, 0x3efb, - 0xd68d, 0xc704, 0xf59f, 0xe416, 0x90a9, 0x8120, 0xb3bb, 0xa232, - 0x5ac5, 0x4b4c, 0x79d7, 0x685e, 0x1ce1, 0x0d68, 0x3ff3, 0x2e7a, - 0xe70e, 0xf687, 0xc41c, 0xd595, 0xa12a, 0xb0a3, 0x8238, 0x93b1, - 0x6b46, 0x7acf, 0x4854, 0x59dd, 0x2d62, 0x3ceb, 0x0e70, 0x1ff9, - 0xf78f, 0xe606, 0xd49d, 0xc514, 0xb1ab, 0xa022, 0x92b9, 0x8330, - 0x7bc7, 0x6a4e, 0x58d5, 0x495c, 0x3de3, 0x2c6a, 0x1ef1, 0x0f78 -}; -#define PPP_FCS(fcs, c) (((fcs) >> 8) ^ fcstab[((fcs) ^ (c)) & 0xff]) -#else /* PPP_FCS_TABLE */ -/* The HDLC polynomial: X**0 + X**5 + X**12 + X**16 (0x8408) */ -#define PPP_FCS_POLYNOMIAL 0x8408 -static u16_t -ppp_get_fcs(u8_t byte) -{ - unsigned int octet; - int bit; - octet = byte; - for (bit = 8; bit-- > 0; ) { - octet = (octet & 0x01) ? ((octet >> 1) ^ PPP_FCS_POLYNOMIAL) : (octet >> 1); - } - return octet & 0xffff; -} -#define PPP_FCS(fcs, c) (((fcs) >> 8) ^ ppp_get_fcs(((fcs) ^ (c)) & 0xff)) -#endif /* PPP_FCS_TABLE */ - -/* - * Values for FCS calculations. - */ -#define PPP_INITFCS 0xffff /* Initial FCS value */ -#define PPP_GOODFCS 0xf0b8 /* Good final FCS value */ - -#if PPP_INPROC_IRQ_SAFE -#define PPPOS_DECL_PROTECT(lev) SYS_ARCH_DECL_PROTECT(lev) -#define PPPOS_PROTECT(lev) SYS_ARCH_PROTECT(lev) -#define PPPOS_UNPROTECT(lev) SYS_ARCH_UNPROTECT(lev) -#else -#define PPPOS_DECL_PROTECT(lev) -#define PPPOS_PROTECT(lev) -#define PPPOS_UNPROTECT(lev) -#endif /* PPP_INPROC_IRQ_SAFE */ - - -/* - * Create a new PPP connection using the given serial I/O device. - * - * Return 0 on success, an error code on failure. - */ -ppp_pcb *pppos_create(struct netif *pppif, pppos_output_cb_fn output_cb, - ppp_link_status_cb_fn link_status_cb, void *ctx_cb) -{ - pppos_pcb *pppos; - ppp_pcb *ppp; - LWIP_ASSERT_CORE_LOCKED(); - - pppos = (pppos_pcb *)LWIP_MEMPOOL_ALLOC(PPPOS_PCB); - if (pppos == NULL) { - return NULL; - } - - ppp = ppp_new(pppif, &pppos_callbacks, pppos, link_status_cb, ctx_cb); - if (ppp == NULL) { - LWIP_MEMPOOL_FREE(PPPOS_PCB, pppos); - return NULL; - } - - memset(pppos, 0, sizeof(pppos_pcb)); - pppos->ppp = ppp; - pppos->output_cb = output_cb; - return ppp; -} - -/* Called by PPP core */ -static err_t -pppos_write(ppp_pcb *ppp, void *ctx, struct pbuf *p) -{ - pppos_pcb *pppos = (pppos_pcb *)ctx; - u8_t *s; - struct pbuf *nb; - u16_t n; - u16_t fcs_out; - err_t err; - LWIP_UNUSED_ARG(ppp); - - /* Grab an output buffer. Using PBUF_POOL here for tx is ok since the pbuf - gets freed by 'pppos_output_last' before this function returns and thus - cannot starve rx. */ - nb = pbuf_alloc(PBUF_RAW, 0, PBUF_POOL); - if (nb == NULL) { - PPPDEBUG(LOG_WARNING, ("pppos_write[%d]: alloc fail\n", ppp->netif->num)); - LINK_STATS_INC(link.memerr); - LINK_STATS_INC(link.drop); - MIB2_STATS_NETIF_INC(ppp->netif, ifoutdiscards); - pbuf_free(p); - return ERR_MEM; - } - - /* Set nb->tot_len to actual payload length */ - nb->tot_len = p->len; - - /* If the link has been idle, we'll send a fresh flag character to - * flush any noise. */ - err = ERR_OK; - if ((sys_now() - pppos->last_xmit) >= PPP_MAXIDLEFLAG) { - err = pppos_output_append(pppos, err, nb, PPP_FLAG, 0, NULL); - } - - /* Load output buffer. */ - fcs_out = PPP_INITFCS; - s = (u8_t*)p->payload; - n = p->len; - while (n-- > 0) { - err = pppos_output_append(pppos, err, nb, *s++, 1, &fcs_out); - } - - err = pppos_output_last(pppos, err, nb, &fcs_out); - if (err == ERR_OK) { - PPPDEBUG(LOG_INFO, ("pppos_write[%d]: len=%d\n", ppp->netif->num, p->len)); - } else { - PPPDEBUG(LOG_WARNING, ("pppos_write[%d]: output failed len=%d\n", ppp->netif->num, p->len)); - } - pbuf_free(p); - return err; -} - -/* Called by PPP core */ -static err_t -pppos_netif_output(ppp_pcb *ppp, void *ctx, struct pbuf *pb, u16_t protocol) -{ - pppos_pcb *pppos = (pppos_pcb *)ctx; - struct pbuf *nb, *p; - u16_t fcs_out; - err_t err; - LWIP_UNUSED_ARG(ppp); - - /* Grab an output buffer. Using PBUF_POOL here for tx is ok since the pbuf - gets freed by 'pppos_output_last' before this function returns and thus - cannot starve rx. */ - nb = pbuf_alloc(PBUF_RAW, 0, PBUF_POOL); - if (nb == NULL) { - PPPDEBUG(LOG_WARNING, ("pppos_netif_output[%d]: alloc fail\n", ppp->netif->num)); - LINK_STATS_INC(link.memerr); - LINK_STATS_INC(link.drop); - MIB2_STATS_NETIF_INC(ppp->netif, ifoutdiscards); - return ERR_MEM; - } - - /* Set nb->tot_len to actual payload length */ - nb->tot_len = pb->tot_len; - - /* If the link has been idle, we'll send a fresh flag character to - * flush any noise. */ - err = ERR_OK; - if ((sys_now() - pppos->last_xmit) >= PPP_MAXIDLEFLAG) { - err = pppos_output_append(pppos, err, nb, PPP_FLAG, 0, NULL); - } - - fcs_out = PPP_INITFCS; - if (!pppos->accomp) { - err = pppos_output_append(pppos, err, nb, PPP_ALLSTATIONS, 1, &fcs_out); - err = pppos_output_append(pppos, err, nb, PPP_UI, 1, &fcs_out); - } - if (!pppos->pcomp || protocol > 0xFF) { - err = pppos_output_append(pppos, err, nb, (protocol >> 8) & 0xFF, 1, &fcs_out); - } - err = pppos_output_append(pppos, err, nb, protocol & 0xFF, 1, &fcs_out); - - /* Load packet. */ - for(p = pb; p; p = p->next) { - u16_t n = p->len; - u8_t *s = (u8_t*)p->payload; - - while (n-- > 0) { - err = pppos_output_append(pppos, err, nb, *s++, 1, &fcs_out); - } - } - - err = pppos_output_last(pppos, err, nb, &fcs_out); - if (err == ERR_OK) { - PPPDEBUG(LOG_INFO, ("pppos_netif_output[%d]: proto=0x%"X16_F", len = %d\n", ppp->netif->num, protocol, pb->tot_len)); - } else { - PPPDEBUG(LOG_WARNING, ("pppos_netif_output[%d]: output failed proto=0x%"X16_F", len = %d\n", ppp->netif->num, protocol, pb->tot_len)); - } - return err; -} - -static void -pppos_connect(ppp_pcb *ppp, void *ctx) -{ - pppos_pcb *pppos = (pppos_pcb *)ctx; - PPPOS_DECL_PROTECT(lev); - -#if PPP_INPROC_IRQ_SAFE - /* input pbuf left over from last session? */ - pppos_input_free_current_packet(pppos); -#endif /* PPP_INPROC_IRQ_SAFE */ - - /* reset PPPoS control block to its initial state */ - memset(&pppos->last_xmit, 0, sizeof(pppos_pcb) - offsetof(pppos_pcb, last_xmit)); - - /* - * Default the in and out accm so that escape and flag characters - * are always escaped. - */ - pppos->in_accm[15] = 0x60; /* no need to protect since RX is not running */ - pppos->out_accm[15] = 0x60; - PPPOS_PROTECT(lev); - pppos->open = 1; - PPPOS_UNPROTECT(lev); - - /* - * Start the connection and handle incoming events (packet or timeout). - */ - PPPDEBUG(LOG_INFO, ("pppos_connect: unit %d: connecting\n", ppp->netif->num)); - ppp_start(ppp); /* notify upper layers */ -} - -#if PPP_SERVER -static void -pppos_listen(ppp_pcb *ppp, void *ctx) -{ - pppos_pcb *pppos = (pppos_pcb *)ctx; - PPPOS_DECL_PROTECT(lev); - -#if PPP_INPROC_IRQ_SAFE - /* input pbuf left over from last session? */ - pppos_input_free_current_packet(pppos); -#endif /* PPP_INPROC_IRQ_SAFE */ - - /* reset PPPoS control block to its initial state */ - memset(&pppos->last_xmit, 0, sizeof(pppos_pcb) - offsetof(pppos_pcb, last_xmit)); - - /* - * Default the in and out accm so that escape and flag characters - * are always escaped. - */ - pppos->in_accm[15] = 0x60; /* no need to protect since RX is not running */ - pppos->out_accm[15] = 0x60; - PPPOS_PROTECT(lev); - pppos->open = 1; - PPPOS_UNPROTECT(lev); - - /* - * Wait for something to happen. - */ - PPPDEBUG(LOG_INFO, ("pppos_listen: unit %d: listening\n", ppp->netif->num)); - ppp_start(ppp); /* notify upper layers */ -} -#endif /* PPP_SERVER */ - -static void -pppos_disconnect(ppp_pcb *ppp, void *ctx) -{ - pppos_pcb *pppos = (pppos_pcb *)ctx; - PPPOS_DECL_PROTECT(lev); - - PPPOS_PROTECT(lev); - pppos->open = 0; - PPPOS_UNPROTECT(lev); - - /* If PPP_INPROC_IRQ_SAFE is used we cannot call - * pppos_input_free_current_packet() here because - * rx IRQ might still call pppos_input(). - */ -#if !PPP_INPROC_IRQ_SAFE - /* input pbuf left ? */ - pppos_input_free_current_packet(pppos); -#endif /* !PPP_INPROC_IRQ_SAFE */ - - ppp_link_end(ppp); /* notify upper layers */ -} - -static err_t -pppos_destroy(ppp_pcb *ppp, void *ctx) -{ - pppos_pcb *pppos = (pppos_pcb *)ctx; - LWIP_UNUSED_ARG(ppp); - -#if PPP_INPROC_IRQ_SAFE - /* input pbuf left ? */ - pppos_input_free_current_packet(pppos); -#endif /* PPP_INPROC_IRQ_SAFE */ - - LWIP_MEMPOOL_FREE(PPPOS_PCB, pppos); - return ERR_OK; -} - -#if !NO_SYS && !PPP_INPROC_IRQ_SAFE -/** Pass received raw characters to PPPoS to be decoded through lwIP TCPIP thread. - * - * This is one of the only functions that may be called outside of the TCPIP thread! - * - * @param ppp PPP descriptor index, returned by pppos_create() - * @param s received data - * @param l length of received data - */ -err_t -pppos_input_tcpip(ppp_pcb *ppp, u8_t *s, int l) -{ - struct pbuf *p; - err_t err; - - p = pbuf_alloc(PBUF_RAW, l, PBUF_POOL); - if (!p) { - return ERR_MEM; - } - pbuf_take(p, s, l); - - err = tcpip_inpkt(p, ppp_netif(ppp), pppos_input_sys); - if (err != ERR_OK) { - pbuf_free(p); - } - return err; -} - -/* called from TCPIP thread */ -err_t pppos_input_sys(struct pbuf *p, struct netif *inp) { - ppp_pcb *ppp = (ppp_pcb*)inp->state; - struct pbuf *n; - LWIP_ASSERT_CORE_LOCKED(); - - for (n = p; n; n = n->next) { - pppos_input(ppp, (u8_t*)n->payload, n->len); - } - pbuf_free(p); - return ERR_OK; -} -#endif /* !NO_SYS && !PPP_INPROC_IRQ_SAFE */ - -/** PPPoS input helper struct, must be packed since it is stored - * to pbuf->payload, which might be unaligned. */ -#if PPP_INPROC_IRQ_SAFE -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct pppos_input_header { - PACK_STRUCT_FIELD(ppp_pcb *ppp); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif -#endif /* PPP_INPROC_IRQ_SAFE */ - -/** Pass received raw characters to PPPoS to be decoded. - * - * @param ppp PPP descriptor index, returned by pppos_create() - * @param s received data - * @param l length of received data - */ -void -pppos_input(ppp_pcb *ppp, u8_t *s, int l) -{ - pppos_pcb *pppos = (pppos_pcb *)ppp->link_ctx_cb; - struct pbuf *next_pbuf; - u8_t cur_char; - u8_t escaped; - PPPOS_DECL_PROTECT(lev); -#if !PPP_INPROC_IRQ_SAFE - LWIP_ASSERT_CORE_LOCKED(); -#endif - - PPPDEBUG(LOG_DEBUG, ("pppos_input[%d]: got %d bytes\n", ppp->netif->num, l)); - while (l-- > 0) { - cur_char = *s++; - - PPPOS_PROTECT(lev); - /* ppp_input can disconnect the interface, we need to abort to prevent a memory - * leak if there are remaining bytes because pppos_connect and pppos_listen - * functions expect input buffer to be free. Furthermore there are no real - * reason to continue reading bytes if we are disconnected. - */ - if (!pppos->open) { - PPPOS_UNPROTECT(lev); - return; - } - escaped = ESCAPE_P(pppos->in_accm, cur_char); - PPPOS_UNPROTECT(lev); - /* Handle special characters. */ - if (escaped) { - /* Check for escape sequences. */ - /* XXX Note that this does not handle an escaped 0x5d character which - * would appear as an escape character. Since this is an ASCII ']' - * and there is no reason that I know of to escape it, I won't complicate - * the code to handle this case. GLL */ - if (cur_char == PPP_ESCAPE) { - pppos->in_escaped = 1; - /* Check for the flag character. */ - } else if (cur_char == PPP_FLAG) { - /* If this is just an extra flag character, ignore it. */ - if (pppos->in_state <= PDADDRESS) { - /* ignore it */; - /* If we haven't received the packet header, drop what has come in. */ - } else if (pppos->in_state < PDDATA) { - PPPDEBUG(LOG_WARNING, - ("pppos_input[%d]: Dropping incomplete packet %d\n", - ppp->netif->num, pppos->in_state)); - LINK_STATS_INC(link.lenerr); - pppos_input_drop(pppos); - /* If the fcs is invalid, drop the packet. */ - } else if (pppos->in_fcs != PPP_GOODFCS) { - PPPDEBUG(LOG_INFO, - ("pppos_input[%d]: Dropping bad fcs 0x%"X16_F" proto=0x%"X16_F"\n", - ppp->netif->num, pppos->in_fcs, pppos->in_protocol)); - /* Note: If you get lots of these, check for UART frame errors or try different baud rate */ - LINK_STATS_INC(link.chkerr); - pppos_input_drop(pppos); - /* Otherwise it's a good packet so pass it on. */ - } else { - struct pbuf *inp; - /* Trim off the checksum. */ - if(pppos->in_tail->len > 2) { - pppos->in_tail->len -= 2; - - pppos->in_tail->tot_len = pppos->in_tail->len; - if (pppos->in_tail != pppos->in_head) { - pbuf_cat(pppos->in_head, pppos->in_tail); - } - } else { - pppos->in_tail->tot_len = pppos->in_tail->len; - if (pppos->in_tail != pppos->in_head) { - pbuf_cat(pppos->in_head, pppos->in_tail); - } - - pbuf_realloc(pppos->in_head, pppos->in_head->tot_len - 2); - } - - /* Dispatch the packet thereby consuming it. */ - inp = pppos->in_head; - /* Packet consumed, release our references. */ - pppos->in_head = NULL; - pppos->in_tail = NULL; -#if IP_FORWARD || LWIP_IPV6_FORWARD - /* hide the room for Ethernet forwarding header */ - pbuf_remove_header(inp, PBUF_LINK_ENCAPSULATION_HLEN + PBUF_LINK_HLEN); -#endif /* IP_FORWARD || LWIP_IPV6_FORWARD */ -#if PPP_INPROC_IRQ_SAFE - if(tcpip_try_callback(pppos_input_callback, inp) != ERR_OK) { - PPPDEBUG(LOG_ERR, ("pppos_input[%d]: tcpip_callback() failed, dropping packet\n", ppp->netif->num)); - pbuf_free(inp); - LINK_STATS_INC(link.drop); - MIB2_STATS_NETIF_INC(ppp->netif, ifindiscards); - } -#else /* PPP_INPROC_IRQ_SAFE */ - ppp_input(ppp, inp); -#endif /* PPP_INPROC_IRQ_SAFE */ - } - - /* Prepare for a new packet. */ - pppos->in_fcs = PPP_INITFCS; - pppos->in_state = PDADDRESS; - pppos->in_escaped = 0; - /* Other characters are usually control characters that may have - * been inserted by the physical layer so here we just drop them. */ - } else { - PPPDEBUG(LOG_WARNING, - ("pppos_input[%d]: Dropping ACCM char <%d>\n", ppp->netif->num, cur_char)); - } - /* Process other characters. */ - } else { - /* Unencode escaped characters. */ - if (pppos->in_escaped) { - pppos->in_escaped = 0; - cur_char ^= PPP_TRANS; - } - - /* Process character relative to current state. */ - switch(pppos->in_state) { - case PDIDLE: /* Idle state - waiting. */ - /* Drop the character if it's not 0xff - * we would have processed a flag character above. */ - if (cur_char != PPP_ALLSTATIONS) { - break; - } - /* no break */ - /* Fall through */ - - case PDSTART: /* Process start flag. */ - /* Prepare for a new packet. */ - pppos->in_fcs = PPP_INITFCS; - /* no break */ - /* Fall through */ - - case PDADDRESS: /* Process address field. */ - if (cur_char == PPP_ALLSTATIONS) { - pppos->in_state = PDCONTROL; - break; - } - /* no break */ - - /* Else assume compressed address and control fields so - * fall through to get the protocol... */ - /* Fall through */ - case PDCONTROL: /* Process control field. */ - /* If we don't get a valid control code, restart. */ - if (cur_char == PPP_UI) { - pppos->in_state = PDPROTOCOL1; - break; - } - /* no break */ - -#if 0 - else { - PPPDEBUG(LOG_WARNING, - ("pppos_input[%d]: Invalid control <%d>\n", ppp->netif->num, cur_char)); - pppos->in_state = PDSTART; - } -#endif - /* Fall through */ - - case PDPROTOCOL1: /* Process protocol field 1. */ - /* If the lower bit is set, this is the end of the protocol - * field. */ - if (cur_char & 1) { - pppos->in_protocol = cur_char; - pppos->in_state = PDDATA; - } else { - pppos->in_protocol = (u16_t)cur_char << 8; - pppos->in_state = PDPROTOCOL2; - } - break; - case PDPROTOCOL2: /* Process protocol field 2. */ - pppos->in_protocol |= cur_char; - pppos->in_state = PDDATA; - break; - case PDDATA: /* Process data byte. */ - /* Make space to receive processed data. */ - if (pppos->in_tail == NULL || pppos->in_tail->len == PBUF_POOL_BUFSIZE) { - u16_t pbuf_alloc_len; - if (pppos->in_tail != NULL) { - pppos->in_tail->tot_len = pppos->in_tail->len; - if (pppos->in_tail != pppos->in_head) { - pbuf_cat(pppos->in_head, pppos->in_tail); - /* give up the in_tail reference now */ - pppos->in_tail = NULL; - } - } - /* If we haven't started a packet, we need a packet header. */ - pbuf_alloc_len = 0; -#if IP_FORWARD || LWIP_IPV6_FORWARD - /* If IP forwarding is enabled we are reserving PBUF_LINK_ENCAPSULATION_HLEN - * + PBUF_LINK_HLEN bytes so the packet is being allocated with enough header - * space to be forwarded (to Ethernet for example). - */ - if (pppos->in_head == NULL) { - pbuf_alloc_len = PBUF_LINK_ENCAPSULATION_HLEN + PBUF_LINK_HLEN; - } -#endif /* IP_FORWARD || LWIP_IPV6_FORWARD */ - next_pbuf = pbuf_alloc(PBUF_RAW, pbuf_alloc_len, PBUF_POOL); - if (next_pbuf == NULL) { - /* No free buffers. Drop the input packet and let the - * higher layers deal with it. Continue processing - * the received pbuf chain in case a new packet starts. */ - PPPDEBUG(LOG_ERR, ("pppos_input[%d]: NO FREE PBUFS!\n", ppp->netif->num)); - LINK_STATS_INC(link.memerr); - pppos_input_drop(pppos); - pppos->in_state = PDSTART; /* Wait for flag sequence. */ - break; - } - if (pppos->in_head == NULL) { - u8_t *payload = ((u8_t*)next_pbuf->payload) + pbuf_alloc_len; -#if PPP_INPROC_IRQ_SAFE - ((struct pppos_input_header*)payload)->ppp = ppp; - payload += sizeof(struct pppos_input_header); - next_pbuf->len += sizeof(struct pppos_input_header); -#endif /* PPP_INPROC_IRQ_SAFE */ - next_pbuf->len += sizeof(pppos->in_protocol); - *(payload++) = pppos->in_protocol >> 8; - *(payload) = pppos->in_protocol & 0xFF; - pppos->in_head = next_pbuf; - } - pppos->in_tail = next_pbuf; - } - /* Load character into buffer. */ - ((u8_t*)pppos->in_tail->payload)[pppos->in_tail->len++] = cur_char; - break; - default: - break; - } - - /* update the frame check sequence number. */ - pppos->in_fcs = PPP_FCS(pppos->in_fcs, cur_char); - } - } /* while (l-- > 0), all bytes processed */ -} - -#if PPP_INPROC_IRQ_SAFE -/* PPPoS input callback using one input pointer - */ -static void pppos_input_callback(void *arg) { - struct pbuf *pb = (struct pbuf*)arg; - ppp_pcb *ppp; - - ppp = ((struct pppos_input_header*)pb->payload)->ppp; - if(pbuf_remove_header(pb, sizeof(struct pppos_input_header))) { - LWIP_ASSERT("pbuf_remove_header failed\n", 0); - goto drop; - } - - /* Dispatch the packet thereby consuming it. */ - ppp_input(ppp, pb); - return; - -drop: - LINK_STATS_INC(link.drop); - MIB2_STATS_NETIF_INC(ppp->netif, ifindiscards); - pbuf_free(pb); -} -#endif /* PPP_INPROC_IRQ_SAFE */ - -static void -pppos_send_config(ppp_pcb *ppp, void *ctx, u32_t accm, int pcomp, int accomp) -{ - int i; - pppos_pcb *pppos = (pppos_pcb *)ctx; - LWIP_UNUSED_ARG(ppp); - - pppos->pcomp = pcomp; - pppos->accomp = accomp; - - /* Load the ACCM bits for the 32 control codes. */ - for (i = 0; i < 32/8; i++) { - pppos->out_accm[i] = (u8_t)((accm >> (8 * i)) & 0xFF); - } - - PPPDEBUG(LOG_INFO, ("pppos_send_config[%d]: out_accm=%X %X %X %X\n", - pppos->ppp->netif->num, - pppos->out_accm[0], pppos->out_accm[1], pppos->out_accm[2], pppos->out_accm[3])); -} - -static void -pppos_recv_config(ppp_pcb *ppp, void *ctx, u32_t accm, int pcomp, int accomp) -{ - int i; - pppos_pcb *pppos = (pppos_pcb *)ctx; - PPPOS_DECL_PROTECT(lev); - LWIP_UNUSED_ARG(ppp); - LWIP_UNUSED_ARG(pcomp); - LWIP_UNUSED_ARG(accomp); - - /* Load the ACCM bits for the 32 control codes. */ - PPPOS_PROTECT(lev); - for (i = 0; i < 32 / 8; i++) { - pppos->in_accm[i] = (u8_t)(accm >> (i * 8)); - } - PPPOS_UNPROTECT(lev); - - PPPDEBUG(LOG_INFO, ("pppos_recv_config[%d]: in_accm=%X %X %X %X\n", - pppos->ppp->netif->num, - pppos->in_accm[0], pppos->in_accm[1], pppos->in_accm[2], pppos->in_accm[3])); -} - -/* - * Drop the input packet. - */ -static void -pppos_input_free_current_packet(pppos_pcb *pppos) -{ - if (pppos->in_head != NULL) { - if (pppos->in_tail && (pppos->in_tail != pppos->in_head)) { - pbuf_free(pppos->in_tail); - } - pbuf_free(pppos->in_head); - pppos->in_head = NULL; - } - pppos->in_tail = NULL; -} - -/* - * Drop the input packet and increase error counters. - */ -static void -pppos_input_drop(pppos_pcb *pppos) -{ - if (pppos->in_head != NULL) { -#if 0 - PPPDEBUG(LOG_INFO, ("pppos_input_drop: %d:%.*H\n", pppos->in_head->len, min(60, pppos->in_head->len * 2), pppos->in_head->payload)); -#endif - PPPDEBUG(LOG_INFO, ("pppos_input_drop: pbuf len=%d, addr %p\n", pppos->in_head->len, (void*)pppos->in_head)); - } - pppos_input_free_current_packet(pppos); -#if VJ_SUPPORT - vj_uncompress_err(&pppos->ppp->vj_comp); -#endif /* VJ_SUPPORT */ - - LINK_STATS_INC(link.drop); - MIB2_STATS_NETIF_INC(pppos->ppp->netif, ifindiscards); -} - -/* - * pppos_output_append - append given character to end of given pbuf. - * If out_accm is not 0 and the character needs to be escaped, do so. - * If pbuf is full, send the pbuf and reuse it. - * Return the current pbuf. - */ -static err_t -pppos_output_append(pppos_pcb *pppos, err_t err, struct pbuf *nb, u8_t c, u8_t accm, u16_t *fcs) -{ - if (err != ERR_OK) { - return err; - } - - /* Make sure there is room for the character and an escape code. - * Sure we don't quite fill the buffer if the character doesn't - * get escaped but is one character worth complicating this? */ - if ((PBUF_POOL_BUFSIZE - nb->len) < 2) { - u32_t l = pppos->output_cb(pppos->ppp, (u8_t*)nb->payload, nb->len, pppos->ppp->ctx_cb); - if (l != nb->len) { - return ERR_IF; - } - nb->len = 0; - } - - /* Update FCS before checking for special characters. */ - if (fcs) { - *fcs = PPP_FCS(*fcs, c); - } - - /* Copy to output buffer escaping special characters. */ - if (accm && ESCAPE_P(pppos->out_accm, c)) { - *((u8_t*)nb->payload + nb->len++) = PPP_ESCAPE; - *((u8_t*)nb->payload + nb->len++) = c ^ PPP_TRANS; - } else { - *((u8_t*)nb->payload + nb->len++) = c; - } - - return ERR_OK; -} - -static err_t -pppos_output_last(pppos_pcb *pppos, err_t err, struct pbuf *nb, u16_t *fcs) -{ - ppp_pcb *ppp = pppos->ppp; - - /* Add FCS and trailing flag. */ - err = pppos_output_append(pppos, err, nb, ~(*fcs) & 0xFF, 1, NULL); - err = pppos_output_append(pppos, err, nb, (~(*fcs) >> 8) & 0xFF, 1, NULL); - err = pppos_output_append(pppos, err, nb, PPP_FLAG, 0, NULL); - - if (err != ERR_OK) { - goto failed; - } - - /* Send remaining buffer if not empty */ - if (nb->len > 0) { - u32_t l = pppos->output_cb(ppp, (u8_t*)nb->payload, nb->len, ppp->ctx_cb); - if (l != nb->len) { - err = ERR_IF; - goto failed; - } - } - - pppos->last_xmit = sys_now(); - MIB2_STATS_NETIF_ADD(ppp->netif, ifoutoctets, nb->tot_len); - MIB2_STATS_NETIF_INC(ppp->netif, ifoutucastpkts); - LINK_STATS_INC(link.xmit); - pbuf_free(nb); - return ERR_OK; - -failed: - pppos->last_xmit = 0; /* prepend PPP_FLAG to next packet */ - LINK_STATS_INC(link.err); - LINK_STATS_INC(link.drop); - MIB2_STATS_NETIF_INC(ppp->netif, ifoutdiscards); - pbuf_free(nb); - return err; -} - -#endif /* PPP_SUPPORT && PPPOS_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/ppp/upap.c b/Middlewares/Third_Party/LwIP/src/netif/ppp/upap.c deleted file mode 100644 index 3b2399d..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/ppp/upap.c +++ /dev/null @@ -1,677 +0,0 @@ -/* - * upap.c - User/Password Authentication Protocol. - * - * Copyright (c) 1984-2000 Carnegie Mellon University. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * 3. The name "Carnegie Mellon University" must not be used to - * endorse or promote products derived from this software without - * prior written permission. For permission or any legal - * details, please contact - * Office of Technology Transfer - * Carnegie Mellon University - * 5000 Forbes Avenue - * Pittsburgh, PA 15213-3890 - * (412) 268-4387, fax: (412) 268-7395 - * tech-transfer@andrew.cmu.edu - * - * 4. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Computing Services - * at Carnegie Mellon University (http://www.cmu.edu/computing/)." - * - * CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE - * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && PAP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -/* - * @todo: - */ - -#if 0 /* UNUSED */ -#include -#include -#endif /* UNUSED */ - -#include "netif/ppp/ppp_impl.h" - -#include "netif/ppp/upap.h" - -#if PPP_OPTIONS -/* - * Command-line options. - */ -static option_t pap_option_list[] = { - { "hide-password", o_bool, &hide_password, - "Don't output passwords to log", OPT_PRIO | 1 }, - { "show-password", o_bool, &hide_password, - "Show password string in debug log messages", OPT_PRIOSUB | 0 }, - - { "pap-restart", o_int, &upap[0].us_timeouttime, - "Set retransmit timeout for PAP", OPT_PRIO }, - { "pap-max-authreq", o_int, &upap[0].us_maxtransmits, - "Set max number of transmissions for auth-reqs", OPT_PRIO }, - { "pap-timeout", o_int, &upap[0].us_reqtimeout, - "Set time limit for peer PAP authentication", OPT_PRIO }, - - { NULL } -}; -#endif /* PPP_OPTIONS */ - -/* - * Protocol entry points. - */ -static void upap_init(ppp_pcb *pcb); -static void upap_lowerup(ppp_pcb *pcb); -static void upap_lowerdown(ppp_pcb *pcb); -static void upap_input(ppp_pcb *pcb, u_char *inpacket, int l); -static void upap_protrej(ppp_pcb *pcb); -#if PRINTPKT_SUPPORT -static int upap_printpkt(const u_char *p, int plen, void (*printer) (void *, const char *, ...), void *arg); -#endif /* PRINTPKT_SUPPORT */ - -const struct protent pap_protent = { - PPP_PAP, - upap_init, - upap_input, - upap_protrej, - upap_lowerup, - upap_lowerdown, - NULL, - NULL, -#if PRINTPKT_SUPPORT - upap_printpkt, -#endif /* PRINTPKT_SUPPORT */ -#if PPP_DATAINPUT - NULL, -#endif /* PPP_DATAINPUT */ -#if PRINTPKT_SUPPORT - "PAP", - NULL, -#endif /* PRINTPKT_SUPPORT */ -#if PPP_OPTIONS - pap_option_list, - NULL, -#endif /* PPP_OPTIONS */ -#if DEMAND_SUPPORT - NULL, - NULL -#endif /* DEMAND_SUPPORT */ -}; - -static void upap_timeout(void *arg); -#if PPP_SERVER -static void upap_reqtimeout(void *arg); -static void upap_rauthreq(ppp_pcb *pcb, u_char *inp, int id, int len); -#endif /* PPP_SERVER */ -static void upap_rauthack(ppp_pcb *pcb, u_char *inp, int id, int len); -static void upap_rauthnak(ppp_pcb *pcb, u_char *inp, int id, int len); -static void upap_sauthreq(ppp_pcb *pcb); -#if PPP_SERVER -static void upap_sresp(ppp_pcb *pcb, u_char code, u_char id, const char *msg, int msglen); -#endif /* PPP_SERVER */ - - -/* - * upap_init - Initialize a UPAP unit. - */ -static void upap_init(ppp_pcb *pcb) { - pcb->upap.us_user = NULL; - pcb->upap.us_userlen = 0; - pcb->upap.us_passwd = NULL; - pcb->upap.us_passwdlen = 0; - pcb->upap.us_clientstate = UPAPCS_INITIAL; -#if PPP_SERVER - pcb->upap.us_serverstate = UPAPSS_INITIAL; -#endif /* PPP_SERVER */ - pcb->upap.us_id = 0; -} - - -/* - * upap_authwithpeer - Authenticate us with our peer (start client). - * - * Set new state and send authenticate's. - */ -void upap_authwithpeer(ppp_pcb *pcb, const char *user, const char *password) { - - if(!user || !password) - return; - - /* Save the username and password we're given */ - pcb->upap.us_user = user; - pcb->upap.us_userlen = (u8_t)LWIP_MIN(strlen(user), 0xff); - pcb->upap.us_passwd = password; - pcb->upap.us_passwdlen = (u8_t)LWIP_MIN(strlen(password), 0xff); - pcb->upap.us_transmits = 0; - - /* Lower layer up yet? */ - if (pcb->upap.us_clientstate == UPAPCS_INITIAL || - pcb->upap.us_clientstate == UPAPCS_PENDING) { - pcb->upap.us_clientstate = UPAPCS_PENDING; - return; - } - - upap_sauthreq(pcb); /* Start protocol */ -} - -#if PPP_SERVER -/* - * upap_authpeer - Authenticate our peer (start server). - * - * Set new state. - */ -void upap_authpeer(ppp_pcb *pcb) { - - /* Lower layer up yet? */ - if (pcb->upap.us_serverstate == UPAPSS_INITIAL || - pcb->upap.us_serverstate == UPAPSS_PENDING) { - pcb->upap.us_serverstate = UPAPSS_PENDING; - return; - } - - pcb->upap.us_serverstate = UPAPSS_LISTEN; - if (pcb->settings.pap_req_timeout > 0) - TIMEOUT(upap_reqtimeout, pcb, pcb->settings.pap_req_timeout); -} -#endif /* PPP_SERVER */ - -/* - * upap_timeout - Retransmission timer for sending auth-reqs expired. - */ -static void upap_timeout(void *arg) { - ppp_pcb *pcb = (ppp_pcb*)arg; - - if (pcb->upap.us_clientstate != UPAPCS_AUTHREQ) - return; - - if (pcb->upap.us_transmits >= pcb->settings.pap_max_transmits) { - /* give up in disgust */ - ppp_error("No response to PAP authenticate-requests"); - pcb->upap.us_clientstate = UPAPCS_BADAUTH; - auth_withpeer_fail(pcb, PPP_PAP); - return; - } - - upap_sauthreq(pcb); /* Send Authenticate-Request */ -} - - -#if PPP_SERVER -/* - * upap_reqtimeout - Give up waiting for the peer to send an auth-req. - */ -static void upap_reqtimeout(void *arg) { - ppp_pcb *pcb = (ppp_pcb*)arg; - - if (pcb->upap.us_serverstate != UPAPSS_LISTEN) - return; /* huh?? */ - - auth_peer_fail(pcb, PPP_PAP); - pcb->upap.us_serverstate = UPAPSS_BADAUTH; -} -#endif /* PPP_SERVER */ - - -/* - * upap_lowerup - The lower layer is up. - * - * Start authenticating if pending. - */ -static void upap_lowerup(ppp_pcb *pcb) { - - if (pcb->upap.us_clientstate == UPAPCS_INITIAL) - pcb->upap.us_clientstate = UPAPCS_CLOSED; - else if (pcb->upap.us_clientstate == UPAPCS_PENDING) { - upap_sauthreq(pcb); /* send an auth-request */ - } - -#if PPP_SERVER - if (pcb->upap.us_serverstate == UPAPSS_INITIAL) - pcb->upap.us_serverstate = UPAPSS_CLOSED; - else if (pcb->upap.us_serverstate == UPAPSS_PENDING) { - pcb->upap.us_serverstate = UPAPSS_LISTEN; - if (pcb->settings.pap_req_timeout > 0) - TIMEOUT(upap_reqtimeout, pcb, pcb->settings.pap_req_timeout); - } -#endif /* PPP_SERVER */ -} - - -/* - * upap_lowerdown - The lower layer is down. - * - * Cancel all timeouts. - */ -static void upap_lowerdown(ppp_pcb *pcb) { - - if (pcb->upap.us_clientstate == UPAPCS_AUTHREQ) /* Timeout pending? */ - UNTIMEOUT(upap_timeout, pcb); /* Cancel timeout */ -#if PPP_SERVER - if (pcb->upap.us_serverstate == UPAPSS_LISTEN && pcb->settings.pap_req_timeout > 0) - UNTIMEOUT(upap_reqtimeout, pcb); -#endif /* PPP_SERVER */ - - pcb->upap.us_clientstate = UPAPCS_INITIAL; -#if PPP_SERVER - pcb->upap.us_serverstate = UPAPSS_INITIAL; -#endif /* PPP_SERVER */ -} - - -/* - * upap_protrej - Peer doesn't speak this protocol. - * - * This shouldn't happen. In any case, pretend lower layer went down. - */ -static void upap_protrej(ppp_pcb *pcb) { - - if (pcb->upap.us_clientstate == UPAPCS_AUTHREQ) { - ppp_error("PAP authentication failed due to protocol-reject"); - auth_withpeer_fail(pcb, PPP_PAP); - } -#if PPP_SERVER - if (pcb->upap.us_serverstate == UPAPSS_LISTEN) { - ppp_error("PAP authentication of peer failed (protocol-reject)"); - auth_peer_fail(pcb, PPP_PAP); - } -#endif /* PPP_SERVER */ - upap_lowerdown(pcb); -} - - -/* - * upap_input - Input UPAP packet. - */ -static void upap_input(ppp_pcb *pcb, u_char *inpacket, int l) { - u_char *inp; - u_char code, id; - int len; - - /* - * Parse header (code, id and length). - * If packet too short, drop it. - */ - inp = inpacket; - if (l < UPAP_HEADERLEN) { - UPAPDEBUG(("pap_input: rcvd short header.")); - return; - } - GETCHAR(code, inp); - GETCHAR(id, inp); - GETSHORT(len, inp); - if (len < UPAP_HEADERLEN) { - UPAPDEBUG(("pap_input: rcvd illegal length.")); - return; - } - if (len > l) { - UPAPDEBUG(("pap_input: rcvd short packet.")); - return; - } - len -= UPAP_HEADERLEN; - - /* - * Action depends on code. - */ - switch (code) { - case UPAP_AUTHREQ: -#if PPP_SERVER - upap_rauthreq(pcb, inp, id, len); -#endif /* PPP_SERVER */ - break; - - case UPAP_AUTHACK: - upap_rauthack(pcb, inp, id, len); - break; - - case UPAP_AUTHNAK: - upap_rauthnak(pcb, inp, id, len); - break; - - default: /* XXX Need code reject */ - break; - } -} - -#if PPP_SERVER -/* - * upap_rauth - Receive Authenticate. - */ -static void upap_rauthreq(ppp_pcb *pcb, u_char *inp, int id, int len) { - u_char ruserlen, rpasswdlen; - char *ruser; - char *rpasswd; - char rhostname[256]; - int retcode; - const char *msg; - int msglen; - - if (pcb->upap.us_serverstate < UPAPSS_LISTEN) - return; - - /* - * If we receive a duplicate authenticate-request, we are - * supposed to return the same status as for the first request. - */ - if (pcb->upap.us_serverstate == UPAPSS_OPEN) { - upap_sresp(pcb, UPAP_AUTHACK, id, "", 0); /* return auth-ack */ - return; - } - if (pcb->upap.us_serverstate == UPAPSS_BADAUTH) { - upap_sresp(pcb, UPAP_AUTHNAK, id, "", 0); /* return auth-nak */ - return; - } - - /* - * Parse user/passwd. - */ - if (len < 1) { - UPAPDEBUG(("pap_rauth: rcvd short packet.")); - return; - } - GETCHAR(ruserlen, inp); - len -= sizeof (u_char) + ruserlen + sizeof (u_char); - if (len < 0) { - UPAPDEBUG(("pap_rauth: rcvd short packet.")); - return; - } - ruser = (char *) inp; - INCPTR(ruserlen, inp); - GETCHAR(rpasswdlen, inp); - if (len < rpasswdlen) { - UPAPDEBUG(("pap_rauth: rcvd short packet.")); - return; - } - - rpasswd = (char *) inp; - - /* - * Check the username and password given. - */ - retcode = UPAP_AUTHNAK; - if (auth_check_passwd(pcb, ruser, ruserlen, rpasswd, rpasswdlen, &msg, &msglen)) { - retcode = UPAP_AUTHACK; - } - BZERO(rpasswd, rpasswdlen); - -#if 0 /* UNUSED */ - /* - * Check remote number authorization. A plugin may have filled in - * the remote number or added an allowed number, and rather than - * return an authenticate failure, is leaving it for us to verify. - */ - if (retcode == UPAP_AUTHACK) { - if (!auth_number()) { - /* We do not want to leak info about the pap result. */ - retcode = UPAP_AUTHNAK; /* XXX exit value will be "wrong" */ - warn("calling number %q is not authorized", remote_number); - } - } - - msglen = strlen(msg); - if (msglen > 255) - msglen = 255; -#endif /* UNUSED */ - - upap_sresp(pcb, retcode, id, msg, msglen); - - /* Null terminate and clean remote name. */ - ppp_slprintf(rhostname, sizeof(rhostname), "%.*v", ruserlen, ruser); - - if (retcode == UPAP_AUTHACK) { - pcb->upap.us_serverstate = UPAPSS_OPEN; - ppp_notice("PAP peer authentication succeeded for %q", rhostname); - auth_peer_success(pcb, PPP_PAP, 0, ruser, ruserlen); - } else { - pcb->upap.us_serverstate = UPAPSS_BADAUTH; - ppp_warn("PAP peer authentication failed for %q", rhostname); - auth_peer_fail(pcb, PPP_PAP); - } - - if (pcb->settings.pap_req_timeout > 0) - UNTIMEOUT(upap_reqtimeout, pcb); -} -#endif /* PPP_SERVER */ - -/* - * upap_rauthack - Receive Authenticate-Ack. - */ -static void upap_rauthack(ppp_pcb *pcb, u_char *inp, int id, int len) { - u_char msglen; - char *msg; - LWIP_UNUSED_ARG(id); - - if (pcb->upap.us_clientstate != UPAPCS_AUTHREQ) /* XXX */ - return; - - /* - * Parse message. - */ - if (len < 1) { - UPAPDEBUG(("pap_rauthack: ignoring missing msg-length.")); - } else { - GETCHAR(msglen, inp); - if (msglen > 0) { - len -= sizeof (u_char); - if (len < msglen) { - UPAPDEBUG(("pap_rauthack: rcvd short packet.")); - return; - } - msg = (char *) inp; - PRINTMSG(msg, msglen); - } - } - - pcb->upap.us_clientstate = UPAPCS_OPEN; - - auth_withpeer_success(pcb, PPP_PAP, 0); -} - - -/* - * upap_rauthnak - Receive Authenticate-Nak. - */ -static void upap_rauthnak(ppp_pcb *pcb, u_char *inp, int id, int len) { - u_char msglen; - char *msg; - LWIP_UNUSED_ARG(id); - - if (pcb->upap.us_clientstate != UPAPCS_AUTHREQ) /* XXX */ - return; - - /* - * Parse message. - */ - if (len < 1) { - UPAPDEBUG(("pap_rauthnak: ignoring missing msg-length.")); - } else { - GETCHAR(msglen, inp); - if (msglen > 0) { - len -= sizeof (u_char); - if (len < msglen) { - UPAPDEBUG(("pap_rauthnak: rcvd short packet.")); - return; - } - msg = (char *) inp; - PRINTMSG(msg, msglen); - } - } - - pcb->upap.us_clientstate = UPAPCS_BADAUTH; - - ppp_error("PAP authentication failed"); - auth_withpeer_fail(pcb, PPP_PAP); -} - - -/* - * upap_sauthreq - Send an Authenticate-Request. - */ -static void upap_sauthreq(ppp_pcb *pcb) { - struct pbuf *p; - u_char *outp; - int outlen; - - outlen = UPAP_HEADERLEN + 2 * sizeof (u_char) + - pcb->upap.us_userlen + pcb->upap.us_passwdlen; - p = pbuf_alloc(PBUF_RAW, (u16_t)(PPP_HDRLEN +outlen), PPP_CTRL_PBUF_TYPE); - if(NULL == p) - return; - if(p->tot_len != p->len) { - pbuf_free(p); - return; - } - - outp = (u_char*)p->payload; - MAKEHEADER(outp, PPP_PAP); - - PUTCHAR(UPAP_AUTHREQ, outp); - PUTCHAR(++pcb->upap.us_id, outp); - PUTSHORT(outlen, outp); - PUTCHAR(pcb->upap.us_userlen, outp); - MEMCPY(outp, pcb->upap.us_user, pcb->upap.us_userlen); - INCPTR(pcb->upap.us_userlen, outp); - PUTCHAR(pcb->upap.us_passwdlen, outp); - MEMCPY(outp, pcb->upap.us_passwd, pcb->upap.us_passwdlen); - - ppp_write(pcb, p); - - TIMEOUT(upap_timeout, pcb, pcb->settings.pap_timeout_time); - ++pcb->upap.us_transmits; - pcb->upap.us_clientstate = UPAPCS_AUTHREQ; -} - -#if PPP_SERVER -/* - * upap_sresp - Send a response (ack or nak). - */ -static void upap_sresp(ppp_pcb *pcb, u_char code, u_char id, const char *msg, int msglen) { - struct pbuf *p; - u_char *outp; - int outlen; - - outlen = UPAP_HEADERLEN + sizeof (u_char) + msglen; - p = pbuf_alloc(PBUF_RAW, (u16_t)(PPP_HDRLEN +outlen), PPP_CTRL_PBUF_TYPE); - if(NULL == p) - return; - if(p->tot_len != p->len) { - pbuf_free(p); - return; - } - - outp = (u_char*)p->payload; - MAKEHEADER(outp, PPP_PAP); - - PUTCHAR(code, outp); - PUTCHAR(id, outp); - PUTSHORT(outlen, outp); - PUTCHAR(msglen, outp); - MEMCPY(outp, msg, msglen); - - ppp_write(pcb, p); -} -#endif /* PPP_SERVER */ - -#if PRINTPKT_SUPPORT -/* - * upap_printpkt - print the contents of a PAP packet. - */ -static const char* const upap_codenames[] = { - "AuthReq", "AuthAck", "AuthNak" -}; - -static int upap_printpkt(const u_char *p, int plen, void (*printer) (void *, const char *, ...), void *arg) { - int code, id, len; - int mlen, ulen, wlen; - const u_char *user, *pwd, *msg; - const u_char *pstart; - - if (plen < UPAP_HEADERLEN) - return 0; - pstart = p; - GETCHAR(code, p); - GETCHAR(id, p); - GETSHORT(len, p); - if (len < UPAP_HEADERLEN || len > plen) - return 0; - - if (code >= 1 && code <= (int)LWIP_ARRAYSIZE(upap_codenames)) - printer(arg, " %s", upap_codenames[code-1]); - else - printer(arg, " code=0x%x", code); - printer(arg, " id=0x%x", id); - len -= UPAP_HEADERLEN; - switch (code) { - case UPAP_AUTHREQ: - if (len < 1) - break; - ulen = p[0]; - if (len < ulen + 2) - break; - wlen = p[ulen + 1]; - if (len < ulen + wlen + 2) - break; - user = (const u_char *) (p + 1); - pwd = (const u_char *) (p + ulen + 2); - p += ulen + wlen + 2; - len -= ulen + wlen + 2; - printer(arg, " user="); - ppp_print_string(user, ulen, printer, arg); - printer(arg, " password="); -/* FIXME: require ppp_pcb struct as printpkt() argument */ -#if 0 - if (!pcb->settings.hide_password) -#endif - ppp_print_string(pwd, wlen, printer, arg); -#if 0 - else - printer(arg, ""); -#endif - break; - case UPAP_AUTHACK: - case UPAP_AUTHNAK: - if (len < 1) - break; - mlen = p[0]; - if (len < mlen + 1) - break; - msg = (const u_char *) (p + 1); - p += mlen + 1; - len -= mlen + 1; - printer(arg, " "); - ppp_print_string(msg, mlen, printer, arg); - break; - default: - break; - } - - /* print the rest of the bytes in the packet */ - for (; len > 0; --len) { - GETCHAR(code, p); - printer(arg, " %.2x", code); - } - - return p - pstart; -} -#endif /* PRINTPKT_SUPPORT */ - -#endif /* PPP_SUPPORT && PAP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/ppp/utils.c b/Middlewares/Third_Party/LwIP/src/netif/ppp/utils.c deleted file mode 100644 index f1366da..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/ppp/utils.c +++ /dev/null @@ -1,957 +0,0 @@ -/* - * utils.c - various utility functions used in pppd. - * - * Copyright (c) 1999-2002 Paul Mackerras. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. The name(s) of the authors of this software must not be used to - * endorse or promote products derived from this software without - * prior written permission. - * - * 3. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Paul Mackerras - * ". - * - * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO - * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY - * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN - * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#if 0 /* UNUSED */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#ifdef SVR4 -#include -#endif -#endif /* UNUSED */ - -#include "netif/ppp/ppp_impl.h" - -#include "netif/ppp/fsm.h" -#include "netif/ppp/lcp.h" - -#if defined(SUNOS4) -extern char *strerror(); -#endif - -static void ppp_logit(int level, const char *fmt, va_list args); -static void ppp_log_write(int level, char *buf); -#if PRINTPKT_SUPPORT -static void ppp_vslp_printer(void *arg, const char *fmt, ...); -static void ppp_format_packet(const u_char *p, int len, - void (*printer) (void *, const char *, ...), void *arg); - -struct buffer_info { - char *ptr; - int len; -}; -#endif /* PRINTPKT_SUPPORT */ - -/* - * ppp_strlcpy - like strcpy/strncpy, doesn't overflow destination buffer, - * always leaves destination null-terminated (for len > 0). - */ -size_t ppp_strlcpy(char *dest, const char *src, size_t len) { - size_t ret = strlen(src); - - if (len != 0) { - if (ret < len) - strcpy(dest, src); - else { - strncpy(dest, src, len - 1); - dest[len-1] = 0; - } - } - return ret; -} - -/* - * ppp_strlcat - like strcat/strncat, doesn't overflow destination buffer, - * always leaves destination null-terminated (for len > 0). - */ -size_t ppp_strlcat(char *dest, const char *src, size_t len) { - size_t dlen = strlen(dest); - - return dlen + ppp_strlcpy(dest + dlen, src, (len > dlen? len - dlen: 0)); -} - - -/* - * ppp_slprintf - format a message into a buffer. Like sprintf except we - * also specify the length of the output buffer, and we handle - * %m (error message), %v (visible string), - * %q (quoted string), %t (current time) and %I (IP address) formats. - * Doesn't do floating-point formats. - * Returns the number of chars put into buf. - */ -int ppp_slprintf(char *buf, int buflen, const char *fmt, ...) { - va_list args; - int n; - - va_start(args, fmt); - n = ppp_vslprintf(buf, buflen, fmt, args); - va_end(args); - return n; -} - -/* - * ppp_vslprintf - like ppp_slprintf, takes a va_list instead of a list of args. - */ -#define OUTCHAR(c) (buflen > 0? (--buflen, *buf++ = (c)): 0) - -int ppp_vslprintf(char *buf, int buflen, const char *fmt, va_list args) { - int c, i, n; - int width, prec, fillch; - int base, len, neg, quoted; - unsigned long val = 0; - const char *f; - char *str, *buf0; - const unsigned char *p; - char num[32]; -#if 0 /* need port */ - time_t t; -#endif /* need port */ - u32_t ip; - static char hexchars[] = "0123456789abcdef"; -#if PRINTPKT_SUPPORT - struct buffer_info bufinfo; -#endif /* PRINTPKT_SUPPORT */ - - buf0 = buf; - --buflen; - while (buflen > 0) { - for (f = fmt; *f != '%' && *f != 0; ++f) - ; - if (f > fmt) { - len = f - fmt; - if (len > buflen) - len = buflen; - memcpy(buf, fmt, len); - buf += len; - buflen -= len; - fmt = f; - } - if (*fmt == 0) - break; - c = *++fmt; - width = 0; - prec = -1; - fillch = ' '; - if (c == '0') { - fillch = '0'; - c = *++fmt; - } - if (c == '*') { - width = va_arg(args, int); - c = *++fmt; - } else { - while (lwip_isdigit(c)) { - width = width * 10 + c - '0'; - c = *++fmt; - } - } - if (c == '.') { - c = *++fmt; - if (c == '*') { - prec = va_arg(args, int); - c = *++fmt; - } else { - prec = 0; - while (lwip_isdigit(c)) { - prec = prec * 10 + c - '0'; - c = *++fmt; - } - } - } - str = 0; - base = 0; - neg = 0; - ++fmt; - switch (c) { - case 'l': - c = *fmt++; - switch (c) { - case 'd': - val = va_arg(args, long); - if ((long)val < 0) { - neg = 1; - val = (unsigned long)-(long)val; - } - base = 10; - break; - case 'u': - val = va_arg(args, unsigned long); - base = 10; - break; - default: - OUTCHAR('%'); - OUTCHAR('l'); - --fmt; /* so %lz outputs %lz etc. */ - continue; - } - break; - case 'd': - i = va_arg(args, int); - if (i < 0) { - neg = 1; - val = -i; - } else - val = i; - base = 10; - break; - case 'u': - val = va_arg(args, unsigned int); - base = 10; - break; - case 'o': - val = va_arg(args, unsigned int); - base = 8; - break; - case 'x': - case 'X': - val = va_arg(args, unsigned int); - base = 16; - break; -#if 0 /* unused (and wrong on LLP64 systems) */ - case 'p': - val = (unsigned long) va_arg(args, void *); - base = 16; - neg = 2; - break; -#endif /* unused (and wrong on LLP64 systems) */ - case 's': - str = va_arg(args, char *); - break; - case 'c': - num[0] = va_arg(args, int); - num[1] = 0; - str = num; - break; -#if 0 /* do we always have strerror() in embedded ? */ - case 'm': - str = strerror(errno); - break; -#endif /* do we always have strerror() in embedded ? */ - case 'I': - ip = va_arg(args, u32_t); - ip = lwip_ntohl(ip); - ppp_slprintf(num, sizeof(num), "%d.%d.%d.%d", (ip >> 24) & 0xff, - (ip >> 16) & 0xff, (ip >> 8) & 0xff, ip & 0xff); - str = num; - break; -#if 0 /* need port */ - case 't': - time(&t); - str = ctime(&t); - str += 4; /* chop off the day name */ - str[15] = 0; /* chop off year and newline */ - break; -#endif /* need port */ - case 'v': /* "visible" string */ - case 'q': /* quoted string */ - quoted = c == 'q'; - p = va_arg(args, unsigned char *); - if (p == NULL) - p = (const unsigned char *)""; - if (fillch == '0' && prec >= 0) { - n = prec; - } else { - n = strlen((const char *)p); - if (prec >= 0 && n > prec) - n = prec; - } - while (n > 0 && buflen > 0) { - c = *p++; - --n; - if (!quoted && c >= 0x80) { - OUTCHAR('M'); - OUTCHAR('-'); - c -= 0x80; - } - if (quoted && (c == '"' || c == '\\')) - OUTCHAR('\\'); - if (c < 0x20 || (0x7f <= c && c < 0xa0)) { - if (quoted) { - OUTCHAR('\\'); - switch (c) { - case '\t': OUTCHAR('t'); break; - case '\n': OUTCHAR('n'); break; - case '\b': OUTCHAR('b'); break; - case '\f': OUTCHAR('f'); break; - default: - OUTCHAR('x'); - OUTCHAR(hexchars[c >> 4]); - OUTCHAR(hexchars[c & 0xf]); - } - } else { - if (c == '\t') - OUTCHAR(c); - else { - OUTCHAR('^'); - OUTCHAR(c ^ 0x40); - } - } - } else - OUTCHAR(c); - } - continue; -#if PRINTPKT_SUPPORT - case 'P': /* print PPP packet */ - bufinfo.ptr = buf; - bufinfo.len = buflen + 1; - p = va_arg(args, unsigned char *); - n = va_arg(args, int); - ppp_format_packet(p, n, ppp_vslp_printer, &bufinfo); - buf = bufinfo.ptr; - buflen = bufinfo.len - 1; - continue; -#endif /* PRINTPKT_SUPPORT */ - case 'B': - p = va_arg(args, unsigned char *); - for (n = prec; n > 0; --n) { - c = *p++; - if (fillch == ' ') - OUTCHAR(' '); - OUTCHAR(hexchars[(c >> 4) & 0xf]); - OUTCHAR(hexchars[c & 0xf]); - } - continue; - default: - *buf++ = '%'; - if (c != '%') - --fmt; /* so %z outputs %z etc. */ - --buflen; - continue; - } - if (base != 0) { - str = num + sizeof(num); - *--str = 0; - while (str > num + neg) { - *--str = hexchars[val % base]; - val = val / base; - if (--prec <= 0 && val == 0) - break; - } - switch (neg) { - case 1: - *--str = '-'; - break; - case 2: - *--str = 'x'; - *--str = '0'; - break; - default: - break; - } - len = num + sizeof(num) - 1 - str; - } else { - len = strlen(str); - if (prec >= 0 && len > prec) - len = prec; - } - if (width > 0) { - if (width > buflen) - width = buflen; - if ((n = width - len) > 0) { - buflen -= n; - for (; n > 0; --n) - *buf++ = fillch; - } - } - if (len > buflen) - len = buflen; - memcpy(buf, str, len); - buf += len; - buflen -= len; - } - *buf = 0; - return buf - buf0; -} - -#if PRINTPKT_SUPPORT -/* - * vslp_printer - used in processing a %P format - */ -static void ppp_vslp_printer(void *arg, const char *fmt, ...) { - int n; - va_list pvar; - struct buffer_info *bi; - - va_start(pvar, fmt); - bi = (struct buffer_info *) arg; - n = ppp_vslprintf(bi->ptr, bi->len, fmt, pvar); - va_end(pvar); - - bi->ptr += n; - bi->len -= n; -} -#endif /* PRINTPKT_SUPPORT */ - -#if 0 /* UNUSED */ -/* - * log_packet - format a packet and log it. - */ - -void -log_packet(p, len, prefix, level) - u_char *p; - int len; - char *prefix; - int level; -{ - init_pr_log(prefix, level); - ppp_format_packet(p, len, pr_log, &level); - end_pr_log(); -} -#endif /* UNUSED */ - -#if PRINTPKT_SUPPORT -/* - * ppp_format_packet - make a readable representation of a packet, - * calling `printer(arg, format, ...)' to output it. - */ -static void ppp_format_packet(const u_char *p, int len, - void (*printer) (void *, const char *, ...), void *arg) { - int i, n; - u_short proto; - const struct protent *protp; - - if (len >= 2) { - GETSHORT(proto, p); - len -= 2; - for (i = 0; (protp = protocols[i]) != NULL; ++i) - if (proto == protp->protocol) - break; - if (protp != NULL) { - printer(arg, "[%s", protp->name); - n = (*protp->printpkt)(p, len, printer, arg); - printer(arg, "]"); - p += n; - len -= n; - } else { - for (i = 0; (protp = protocols[i]) != NULL; ++i) - if (proto == (protp->protocol & ~0x8000)) - break; - if (protp != 0 && protp->data_name != 0) { - printer(arg, "[%s data]", protp->data_name); - if (len > 8) - printer(arg, "%.8B ...", p); - else - printer(arg, "%.*B", len, p); - len = 0; - } else - printer(arg, "[proto=0x%x]", proto); - } - } - - if (len > 32) - printer(arg, "%.32B ...", p); - else - printer(arg, "%.*B", len, p); -} -#endif /* PRINTPKT_SUPPORT */ - -#if 0 /* UNUSED */ -/* - * init_pr_log, end_pr_log - initialize and finish use of pr_log. - */ - -static char line[256]; /* line to be logged accumulated here */ -static char *linep; /* current pointer within line */ -static int llevel; /* level for logging */ - -void -init_pr_log(prefix, level) - const char *prefix; - int level; -{ - linep = line; - if (prefix != NULL) { - ppp_strlcpy(line, prefix, sizeof(line)); - linep = line + strlen(line); - } - llevel = level; -} - -void -end_pr_log() -{ - if (linep != line) { - *linep = 0; - ppp_log_write(llevel, line); - } -} - -/* - * pr_log - printer routine for outputting to log - */ -void -pr_log (void *arg, const char *fmt, ...) -{ - int l, n; - va_list pvar; - char *p, *eol; - char buf[256]; - - va_start(pvar, fmt); - n = ppp_vslprintf(buf, sizeof(buf), fmt, pvar); - va_end(pvar); - - p = buf; - eol = strchr(buf, '\n'); - if (linep != line) { - l = (eol == NULL)? n: eol - buf; - if (linep + l < line + sizeof(line)) { - if (l > 0) { - memcpy(linep, buf, l); - linep += l; - } - if (eol == NULL) - return; - p = eol + 1; - eol = strchr(p, '\n'); - } - *linep = 0; - ppp_log_write(llevel, line); - linep = line; - } - - while (eol != NULL) { - *eol = 0; - ppp_log_write(llevel, p); - p = eol + 1; - eol = strchr(p, '\n'); - } - - /* assumes sizeof(buf) <= sizeof(line) */ - l = buf + n - p; - if (l > 0) { - memcpy(line, p, n); - linep = line + l; - } -} -#endif /* UNUSED */ - -/* - * ppp_print_string - print a readable representation of a string using - * printer. - */ -void ppp_print_string(const u_char *p, int len, void (*printer) (void *, const char *, ...), void *arg) { - int c; - - printer(arg, "\""); - for (; len > 0; --len) { - c = *p++; - if (' ' <= c && c <= '~') { - if (c == '\\' || c == '"') - printer(arg, "\\"); - printer(arg, "%c", c); - } else { - switch (c) { - case '\n': - printer(arg, "\\n"); - break; - case '\r': - printer(arg, "\\r"); - break; - case '\t': - printer(arg, "\\t"); - break; - default: - printer(arg, "\\%.3o", (u8_t)c); - /* no break */ - } - } - } - printer(arg, "\""); -} - -/* - * ppp_logit - does the hard work for fatal et al. - */ -static void ppp_logit(int level, const char *fmt, va_list args) { - char buf[1024]; - - ppp_vslprintf(buf, sizeof(buf), fmt, args); - ppp_log_write(level, buf); -} - -static void ppp_log_write(int level, char *buf) { - LWIP_UNUSED_ARG(level); /* necessary if PPPDEBUG is defined to an empty function */ - LWIP_UNUSED_ARG(buf); - PPPDEBUG(level, ("%s\n", buf) ); -#if 0 - if (log_to_fd >= 0 && (level != LOG_DEBUG || debug)) { - int n = strlen(buf); - - if (n > 0 && buf[n-1] == '\n') - --n; - if (write(log_to_fd, buf, n) != n - || write(log_to_fd, "\n", 1) != 1) - log_to_fd = -1; - } -#endif -} - -/* - * ppp_fatal - log an error message and die horribly. - */ -void ppp_fatal(const char *fmt, ...) { - va_list pvar; - - va_start(pvar, fmt); - ppp_logit(LOG_ERR, fmt, pvar); - va_end(pvar); - - LWIP_ASSERT("ppp_fatal", 0); /* as promised */ -} - -/* - * ppp_error - log an error message. - */ -void ppp_error(const char *fmt, ...) { - va_list pvar; - - va_start(pvar, fmt); - ppp_logit(LOG_ERR, fmt, pvar); - va_end(pvar); -#if 0 /* UNUSED */ - ++error_count; -#endif /* UNUSED */ -} - -/* - * ppp_warn - log a warning message. - */ -void ppp_warn(const char *fmt, ...) { - va_list pvar; - - va_start(pvar, fmt); - ppp_logit(LOG_WARNING, fmt, pvar); - va_end(pvar); -} - -/* - * ppp_notice - log a notice-level message. - */ -void ppp_notice(const char *fmt, ...) { - va_list pvar; - - va_start(pvar, fmt); - ppp_logit(LOG_NOTICE, fmt, pvar); - va_end(pvar); -} - -/* - * ppp_info - log an informational message. - */ -void ppp_info(const char *fmt, ...) { - va_list pvar; - - va_start(pvar, fmt); - ppp_logit(LOG_INFO, fmt, pvar); - va_end(pvar); -} - -/* - * ppp_dbglog - log a debug message. - */ -void ppp_dbglog(const char *fmt, ...) { - va_list pvar; - - va_start(pvar, fmt); - ppp_logit(LOG_DEBUG, fmt, pvar); - va_end(pvar); -} - -#if PRINTPKT_SUPPORT -/* - * ppp_dump_packet - print out a packet in readable form if it is interesting. - * Assumes len >= PPP_HDRLEN. - */ -void ppp_dump_packet(ppp_pcb *pcb, const char *tag, unsigned char *p, int len) { - int proto; - - /* - * don't print data packets, i.e. IPv4, IPv6, VJ, and compressed packets. - */ - proto = (p[0] << 8) + p[1]; - if (proto < 0xC000 && (proto & ~0x8000) == proto) - return; - - /* - * don't print valid LCP echo request/reply packets if the link is up. - */ - if (proto == PPP_LCP && pcb->phase == PPP_PHASE_RUNNING && len >= 2 + HEADERLEN) { - unsigned char *lcp = p + 2; - int l = (lcp[2] << 8) + lcp[3]; - - if ((lcp[0] == ECHOREQ || lcp[0] == ECHOREP) - && l >= HEADERLEN && l <= len - 2) - return; - } - - ppp_dbglog("%s %P", tag, p, len); -} -#endif /* PRINTPKT_SUPPORT */ - -#if 0 /* Unused */ - -/* - * complete_read - read a full `count' bytes from fd, - * unless end-of-file or an error other than EINTR is encountered. - */ -ssize_t -complete_read(int fd, void *buf, size_t count) -{ - size_t done; - ssize_t nb; - char *ptr = buf; - - for (done = 0; done < count; ) { - nb = read(fd, ptr, count - done); - if (nb < 0) { - if (errno == EINTR) - continue; - return -1; - } - if (nb == 0) - break; - done += nb; - ptr += nb; - } - return done; -} - -/* Procedures for locking the serial device using a lock file. */ -#ifndef LOCK_DIR -#ifdef __linux__ -#define LOCK_DIR "/var/lock" -#else -#ifdef SVR4 -#define LOCK_DIR "/var/spool/locks" -#else -#define LOCK_DIR "/var/spool/lock" -#endif -#endif -#endif /* LOCK_DIR */ - -static char lock_file[MAXPATHLEN]; - -/* - * lock - create a lock file for the named device - */ -int -lock(dev) - char *dev; -{ -#ifdef LOCKLIB - int result; - - result = mklock (dev, (void *) 0); - if (result == 0) { - ppp_strlcpy(lock_file, dev, sizeof(lock_file)); - return 0; - } - - if (result > 0) - ppp_notice("Device %s is locked by pid %d", dev, result); - else - ppp_error("Can't create lock file %s", lock_file); - return -1; - -#else /* LOCKLIB */ - - char lock_buffer[12]; - int fd, pid, n; - -#ifdef SVR4 - struct stat sbuf; - - if (stat(dev, &sbuf) < 0) { - ppp_error("Can't get device number for %s: %m", dev); - return -1; - } - if ((sbuf.st_mode & S_IFMT) != S_IFCHR) { - ppp_error("Can't lock %s: not a character device", dev); - return -1; - } - ppp_slprintf(lock_file, sizeof(lock_file), "%s/LK.%03d.%03d.%03d", - LOCK_DIR, major(sbuf.st_dev), - major(sbuf.st_rdev), minor(sbuf.st_rdev)); -#else - char *p; - char lockdev[MAXPATHLEN]; - - if ((p = strstr(dev, "dev/")) != NULL) { - dev = p + 4; - strncpy(lockdev, dev, MAXPATHLEN-1); - lockdev[MAXPATHLEN-1] = 0; - while ((p = strrchr(lockdev, '/')) != NULL) { - *p = '_'; - } - dev = lockdev; - } else - if ((p = strrchr(dev, '/')) != NULL) - dev = p + 1; - - ppp_slprintf(lock_file, sizeof(lock_file), "%s/LCK..%s", LOCK_DIR, dev); -#endif - - while ((fd = open(lock_file, O_EXCL | O_CREAT | O_RDWR, 0644)) < 0) { - if (errno != EEXIST) { - ppp_error("Can't create lock file %s: %m", lock_file); - break; - } - - /* Read the lock file to find out who has the device locked. */ - fd = open(lock_file, O_RDONLY, 0); - if (fd < 0) { - if (errno == ENOENT) /* This is just a timing problem. */ - continue; - ppp_error("Can't open existing lock file %s: %m", lock_file); - break; - } -#ifndef LOCK_BINARY - n = read(fd, lock_buffer, 11); -#else - n = read(fd, &pid, sizeof(pid)); -#endif /* LOCK_BINARY */ - close(fd); - fd = -1; - if (n <= 0) { - ppp_error("Can't read pid from lock file %s", lock_file); - break; - } - - /* See if the process still exists. */ -#ifndef LOCK_BINARY - lock_buffer[n] = 0; - pid = atoi(lock_buffer); -#endif /* LOCK_BINARY */ - if (pid == getpid()) - return 1; /* somebody else locked it for us */ - if (pid == 0 - || (kill(pid, 0) == -1 && errno == ESRCH)) { - if (unlink (lock_file) == 0) { - ppp_notice("Removed stale lock on %s (pid %d)", dev, pid); - continue; - } - ppp_warn("Couldn't remove stale lock on %s", dev); - } else - ppp_notice("Device %s is locked by pid %d", dev, pid); - break; - } - - if (fd < 0) { - lock_file[0] = 0; - return -1; - } - - pid = getpid(); -#ifndef LOCK_BINARY - ppp_slprintf(lock_buffer, sizeof(lock_buffer), "%10d\n", pid); - write (fd, lock_buffer, 11); -#else - write(fd, &pid, sizeof (pid)); -#endif - close(fd); - return 0; - -#endif -} - -/* - * relock - called to update our lockfile when we are about to detach, - * thus changing our pid (we fork, the child carries on, and the parent dies). - * Note that this is called by the parent, with pid equal to the pid - * of the child. This avoids a potential race which would exist if - * we had the child rewrite the lockfile (the parent might die first, - * and another process could think the lock was stale if it checked - * between when the parent died and the child rewrote the lockfile). - */ -int -relock(pid) - int pid; -{ -#ifdef LOCKLIB - /* XXX is there a way to do this? */ - return -1; -#else /* LOCKLIB */ - - int fd; - char lock_buffer[12]; - - if (lock_file[0] == 0) - return -1; - fd = open(lock_file, O_WRONLY, 0); - if (fd < 0) { - ppp_error("Couldn't reopen lock file %s: %m", lock_file); - lock_file[0] = 0; - return -1; - } - -#ifndef LOCK_BINARY - ppp_slprintf(lock_buffer, sizeof(lock_buffer), "%10d\n", pid); - write (fd, lock_buffer, 11); -#else - write(fd, &pid, sizeof(pid)); -#endif /* LOCK_BINARY */ - close(fd); - return 0; - -#endif /* LOCKLIB */ -} - -/* - * unlock - remove our lockfile - */ -void -unlock() -{ - if (lock_file[0]) { -#ifdef LOCKLIB - (void) rmlock(lock_file, (void *) 0); -#else - unlink(lock_file); -#endif - lock_file[0] = 0; - } -} - -#endif /* Unused */ - -#endif /* PPP_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/ppp/vj.c b/Middlewares/Third_Party/LwIP/src/netif/ppp/vj.c deleted file mode 100644 index 3fecba6..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/ppp/vj.c +++ /dev/null @@ -1,685 +0,0 @@ -/* - * Routines to compress and uncompess tcp packets (for transmission - * over low speed serial lines. - * - * Copyright (c) 1989 Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms are permitted - * provided that the above copyright notice and this paragraph are - * duplicated in all such forms and that any documentation, - * advertising materials, and other materials related to such - * distribution and use acknowledge that the software was developed - * by the University of California, Berkeley. The name of the - * University may not be used to endorse or promote products derived - * from this software without specific prior written permission. - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED - * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. - * - * Van Jacobson (van@helios.ee.lbl.gov), Dec 31, 1989: - * Initial distribution. - * - * Modified June 1993 by Paul Mackerras, paulus@cs.anu.edu.au, - * so that the entire packet being decompressed doesn't have - * to be in contiguous memory (just the compressed header). - * - * Modified March 1998 by Guy Lancaster, glanca@gesn.com, - * for a 16 bit processor. - */ - -#include "netif/ppp/ppp_opts.h" -#if PPP_SUPPORT && VJ_SUPPORT /* don't build if not configured for use in lwipopts.h */ - -#include "netif/ppp/ppp_impl.h" -#include "netif/ppp/pppdebug.h" - -#include "netif/ppp/vj.h" - -#include - -#if LINK_STATS -#define INCR(counter) ++comp->stats.counter -#else -#define INCR(counter) -#endif - -void -vj_compress_init(struct vjcompress *comp) -{ - u8_t i; - struct cstate *tstate = comp->tstate; - -#if MAX_SLOTS == 0 - memset((char *)comp, 0, sizeof(*comp)); -#endif - comp->maxSlotIndex = MAX_SLOTS - 1; - comp->compressSlot = 0; /* Disable slot ID compression by default. */ - for (i = MAX_SLOTS - 1; i > 0; --i) { - tstate[i].cs_id = i; - tstate[i].cs_next = &tstate[i - 1]; - } - tstate[0].cs_next = &tstate[MAX_SLOTS - 1]; - tstate[0].cs_id = 0; - comp->last_cs = &tstate[0]; - comp->last_recv = 255; - comp->last_xmit = 255; - comp->flags = VJF_TOSS; -} - - -/* ENCODE encodes a number that is known to be non-zero. ENCODEZ - * checks for zero (since zero has to be encoded in the long, 3 byte - * form). - */ -#define ENCODE(n) { \ - if ((u16_t)(n) >= 256) { \ - *cp++ = 0; \ - cp[1] = (u8_t)(n); \ - cp[0] = (u8_t)((n) >> 8); \ - cp += 2; \ - } else { \ - *cp++ = (u8_t)(n); \ - } \ -} -#define ENCODEZ(n) { \ - if ((u16_t)(n) >= 256 || (u16_t)(n) == 0) { \ - *cp++ = 0; \ - cp[1] = (u8_t)(n); \ - cp[0] = (u8_t)((n) >> 8); \ - cp += 2; \ - } else { \ - *cp++ = (u8_t)(n); \ - } \ -} - -#define DECODEL(f) { \ - if (*cp == 0) {\ - u32_t tmp_ = lwip_ntohl(f) + ((cp[1] << 8) | cp[2]); \ - (f) = lwip_htonl(tmp_); \ - cp += 3; \ - } else { \ - u32_t tmp_ = lwip_ntohl(f) + (u32_t)*cp++; \ - (f) = lwip_htonl(tmp_); \ - } \ -} - -#define DECODES(f) { \ - if (*cp == 0) {\ - u16_t tmp_ = lwip_ntohs(f) + (((u16_t)cp[1] << 8) | cp[2]); \ - (f) = lwip_htons(tmp_); \ - cp += 3; \ - } else { \ - u16_t tmp_ = lwip_ntohs(f) + (u16_t)*cp++; \ - (f) = lwip_htons(tmp_); \ - } \ -} - -#define DECODEU(f) { \ - if (*cp == 0) {\ - (f) = lwip_htons(((u16_t)cp[1] << 8) | cp[2]); \ - cp += 3; \ - } else { \ - (f) = lwip_htons((u16_t)*cp++); \ - } \ -} - -/* Helper structures for unaligned *u32_t and *u16_t accesses */ -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct vj_u32_t { - PACK_STRUCT_FIELD(u32_t v); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct vj_u16_t { - PACK_STRUCT_FIELD(u16_t v); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -/* - * vj_compress_tcp - Attempt to do Van Jacobson header compression on a - * packet. This assumes that nb and comp are not null and that the first - * buffer of the chain contains a valid IP header. - * Return the VJ type code indicating whether or not the packet was - * compressed. - */ -u8_t -vj_compress_tcp(struct vjcompress *comp, struct pbuf **pb) -{ - struct pbuf *np = *pb; - struct ip_hdr *ip = (struct ip_hdr *)np->payload; - struct cstate *cs = comp->last_cs->cs_next; - u16_t ilen = IPH_HL(ip); - u16_t hlen; - struct tcp_hdr *oth; - struct tcp_hdr *th; - u16_t deltaS, deltaA = 0; - u32_t deltaL; - u32_t changes = 0; - u8_t new_seq[16]; - u8_t *cp = new_seq; - - /* - * Check that the packet is IP proto TCP. - */ - if (IPH_PROTO(ip) != IP_PROTO_TCP) { - return (TYPE_IP); - } - - /* - * Bail if this is an IP fragment or if the TCP packet isn't - * `compressible' (i.e., ACK isn't set or some other control bit is - * set). - */ - if ((IPH_OFFSET(ip) & PP_HTONS(0x3fff)) || np->tot_len < 40) { - return (TYPE_IP); - } - th = (struct tcp_hdr *)&((struct vj_u32_t*)ip)[ilen]; - if ((TCPH_FLAGS(th) & (TCP_SYN|TCP_FIN|TCP_RST|TCP_ACK)) != TCP_ACK) { - return (TYPE_IP); - } - - /* Check that the TCP/IP headers are contained in the first buffer. */ - hlen = ilen + TCPH_HDRLEN(th); - hlen <<= 2; - if (np->len < hlen) { - PPPDEBUG(LOG_INFO, ("vj_compress_tcp: header len %d spans buffers\n", hlen)); - return (TYPE_IP); - } - - /* TCP stack requires that we don't change the packet payload, therefore we copy - * the whole packet before compression. */ - np = pbuf_clone(PBUF_RAW, PBUF_RAM, *pb); - if (!np) { - return (TYPE_IP); - } - - *pb = np; - ip = (struct ip_hdr *)np->payload; - - /* - * Packet is compressible -- we're going to send either a - * COMPRESSED_TCP or UNCOMPRESSED_TCP packet. Either way we need - * to locate (or create) the connection state. Special case the - * most recently used connection since it's most likely to be used - * again & we don't have to do any reordering if it's used. - */ - INCR(vjs_packets); - if (!ip4_addr_cmp(&ip->src, &cs->cs_ip.src) - || !ip4_addr_cmp(&ip->dest, &cs->cs_ip.dest) - || (*(struct vj_u32_t*)th).v != (((struct vj_u32_t*)&cs->cs_ip)[IPH_HL(&cs->cs_ip)]).v) { - /* - * Wasn't the first -- search for it. - * - * States are kept in a circularly linked list with - * last_cs pointing to the end of the list. The - * list is kept in lru order by moving a state to the - * head of the list whenever it is referenced. Since - * the list is short and, empirically, the connection - * we want is almost always near the front, we locate - * states via linear search. If we don't find a state - * for the datagram, the oldest state is (re-)used. - */ - struct cstate *lcs; - struct cstate *lastcs = comp->last_cs; - - do { - lcs = cs; cs = cs->cs_next; - INCR(vjs_searches); - if (ip4_addr_cmp(&ip->src, &cs->cs_ip.src) - && ip4_addr_cmp(&ip->dest, &cs->cs_ip.dest) - && (*(struct vj_u32_t*)th).v == (((struct vj_u32_t*)&cs->cs_ip)[IPH_HL(&cs->cs_ip)]).v) { - goto found; - } - } while (cs != lastcs); - - /* - * Didn't find it -- re-use oldest cstate. Send an - * uncompressed packet that tells the other side what - * connection number we're using for this conversation. - * Note that since the state list is circular, the oldest - * state points to the newest and we only need to set - * last_cs to update the lru linkage. - */ - INCR(vjs_misses); - comp->last_cs = lcs; - goto uncompressed; - - found: - /* - * Found it -- move to the front on the connection list. - */ - if (cs == lastcs) { - comp->last_cs = lcs; - } else { - lcs->cs_next = cs->cs_next; - cs->cs_next = lastcs->cs_next; - lastcs->cs_next = cs; - } - } - - oth = (struct tcp_hdr *)&((struct vj_u32_t*)&cs->cs_ip)[ilen]; - deltaS = ilen; - - /* - * Make sure that only what we expect to change changed. The first - * line of the `if' checks the IP protocol version, header length & - * type of service. The 2nd line checks the "Don't fragment" bit. - * The 3rd line checks the time-to-live and protocol (the protocol - * check is unnecessary but costless). The 4th line checks the TCP - * header length. The 5th line checks IP options, if any. The 6th - * line checks TCP options, if any. If any of these things are - * different between the previous & current datagram, we send the - * current datagram `uncompressed'. - */ - if ((((struct vj_u16_t*)ip)[0]).v != (((struct vj_u16_t*)&cs->cs_ip)[0]).v - || (((struct vj_u16_t*)ip)[3]).v != (((struct vj_u16_t*)&cs->cs_ip)[3]).v - || (((struct vj_u16_t*)ip)[4]).v != (((struct vj_u16_t*)&cs->cs_ip)[4]).v - || TCPH_HDRLEN(th) != TCPH_HDRLEN(oth) - || (deltaS > 5 && BCMP(ip + 1, &cs->cs_ip + 1, (deltaS - 5) << 2)) - || (TCPH_HDRLEN(th) > 5 && BCMP(th + 1, oth + 1, (TCPH_HDRLEN(th) - 5) << 2))) { - goto uncompressed; - } - - /* - * Figure out which of the changing fields changed. The - * receiver expects changes in the order: urgent, window, - * ack, seq (the order minimizes the number of temporaries - * needed in this section of code). - */ - if (TCPH_FLAGS(th) & TCP_URG) { - deltaS = lwip_ntohs(th->urgp); - ENCODEZ(deltaS); - changes |= NEW_U; - } else if (th->urgp != oth->urgp) { - /* argh! URG not set but urp changed -- a sensible - * implementation should never do this but RFC793 - * doesn't prohibit the change so we have to deal - * with it. */ - goto uncompressed; - } - - if ((deltaS = (u16_t)(lwip_ntohs(th->wnd) - lwip_ntohs(oth->wnd))) != 0) { - ENCODE(deltaS); - changes |= NEW_W; - } - - if ((deltaL = lwip_ntohl(th->ackno) - lwip_ntohl(oth->ackno)) != 0) { - if (deltaL > 0xffff) { - goto uncompressed; - } - deltaA = (u16_t)deltaL; - ENCODE(deltaA); - changes |= NEW_A; - } - - if ((deltaL = lwip_ntohl(th->seqno) - lwip_ntohl(oth->seqno)) != 0) { - if (deltaL > 0xffff) { - goto uncompressed; - } - deltaS = (u16_t)deltaL; - ENCODE(deltaS); - changes |= NEW_S; - } - - switch(changes) { - case 0: - /* - * Nothing changed. If this packet contains data and the - * last one didn't, this is probably a data packet following - * an ack (normal on an interactive connection) and we send - * it compressed. Otherwise it's probably a retransmit, - * retransmitted ack or window probe. Send it uncompressed - * in case the other side missed the compressed version. - */ - if (IPH_LEN(ip) != IPH_LEN(&cs->cs_ip) && - lwip_ntohs(IPH_LEN(&cs->cs_ip)) == hlen) { - break; - } - /* no break */ - /* fall through */ - - case SPECIAL_I: - case SPECIAL_D: - /* - * actual changes match one of our special case encodings -- - * send packet uncompressed. - */ - goto uncompressed; - - case NEW_S|NEW_A: - if (deltaS == deltaA && deltaS == lwip_ntohs(IPH_LEN(&cs->cs_ip)) - hlen) { - /* special case for echoed terminal traffic */ - changes = SPECIAL_I; - cp = new_seq; - } - break; - - case NEW_S: - if (deltaS == lwip_ntohs(IPH_LEN(&cs->cs_ip)) - hlen) { - /* special case for data xfer */ - changes = SPECIAL_D; - cp = new_seq; - } - break; - default: - break; - } - - deltaS = (u16_t)(lwip_ntohs(IPH_ID(ip)) - lwip_ntohs(IPH_ID(&cs->cs_ip))); - if (deltaS != 1) { - ENCODEZ(deltaS); - changes |= NEW_I; - } - if (TCPH_FLAGS(th) & TCP_PSH) { - changes |= TCP_PUSH_BIT; - } - /* - * Grab the cksum before we overwrite it below. Then update our - * state with this packet's header. - */ - deltaA = lwip_ntohs(th->chksum); - MEMCPY(&cs->cs_ip, ip, hlen); - - /* - * We want to use the original packet as our compressed packet. - * (cp - new_seq) is the number of bytes we need for compressed - * sequence numbers. In addition we need one byte for the change - * mask, one for the connection id and two for the tcp checksum. - * So, (cp - new_seq) + 4 bytes of header are needed. hlen is how - * many bytes of the original packet to toss so subtract the two to - * get the new packet size. - */ - deltaS = (u16_t)(cp - new_seq); - if (!comp->compressSlot || comp->last_xmit != cs->cs_id) { - comp->last_xmit = cs->cs_id; - hlen -= deltaS + 4; - if (pbuf_remove_header(np, hlen)){ - /* Can we cope with this failing? Just assert for now */ - LWIP_ASSERT("pbuf_remove_header failed\n", 0); - } - cp = (u8_t*)np->payload; - *cp++ = (u8_t)(changes | NEW_C); - *cp++ = cs->cs_id; - } else { - hlen -= deltaS + 3; - if (pbuf_remove_header(np, hlen)) { - /* Can we cope with this failing? Just assert for now */ - LWIP_ASSERT("pbuf_remove_header failed\n", 0); - } - cp = (u8_t*)np->payload; - *cp++ = (u8_t)changes; - } - *cp++ = (u8_t)(deltaA >> 8); - *cp++ = (u8_t)deltaA; - MEMCPY(cp, new_seq, deltaS); - INCR(vjs_compressed); - return (TYPE_COMPRESSED_TCP); - - /* - * Update connection state cs & send uncompressed packet (that is, - * a regular ip/tcp packet but with the 'conversation id' we hope - * to use on future compressed packets in the protocol field). - */ -uncompressed: - MEMCPY(&cs->cs_ip, ip, hlen); - IPH_PROTO_SET(ip, cs->cs_id); - comp->last_xmit = cs->cs_id; - return (TYPE_UNCOMPRESSED_TCP); -} - -/* - * Called when we may have missed a packet. - */ -void -vj_uncompress_err(struct vjcompress *comp) -{ - comp->flags |= VJF_TOSS; - INCR(vjs_errorin); -} - -/* - * "Uncompress" a packet of type TYPE_UNCOMPRESSED_TCP. - * Return 0 on success, -1 on failure. - */ -int -vj_uncompress_uncomp(struct pbuf *nb, struct vjcompress *comp) -{ - u32_t hlen; - struct cstate *cs; - struct ip_hdr *ip; - - ip = (struct ip_hdr *)nb->payload; - hlen = IPH_HL(ip) << 2; - if (IPH_PROTO(ip) >= MAX_SLOTS - || hlen + sizeof(struct tcp_hdr) > nb->len - || (hlen += TCPH_HDRLEN_BYTES((struct tcp_hdr *)&((char *)ip)[hlen])) - > nb->len - || hlen > MAX_HDR) { - PPPDEBUG(LOG_INFO, ("vj_uncompress_uncomp: bad cid=%d, hlen=%d buflen=%d\n", - IPH_PROTO(ip), hlen, nb->len)); - vj_uncompress_err(comp); - return -1; - } - cs = &comp->rstate[comp->last_recv = IPH_PROTO(ip)]; - comp->flags &=~ VJF_TOSS; - IPH_PROTO_SET(ip, IP_PROTO_TCP); - /* copy from/to bigger buffers checked above instead of cs->cs_ip and ip - just to help static code analysis to see this is correct ;-) */ - MEMCPY(&cs->cs_hdr, nb->payload, hlen); - cs->cs_hlen = (u16_t)hlen; - INCR(vjs_uncompressedin); - return 0; -} - -/* - * Uncompress a packet of type TYPE_COMPRESSED_TCP. - * The packet is composed of a buffer chain and the first buffer - * must contain an accurate chain length. - * The first buffer must include the entire compressed TCP/IP header. - * This procedure replaces the compressed header with the uncompressed - * header and returns the length of the VJ header. - */ -int -vj_uncompress_tcp(struct pbuf **nb, struct vjcompress *comp) -{ - u8_t *cp; - struct tcp_hdr *th; - struct cstate *cs; - struct vj_u16_t *bp; - struct pbuf *n0 = *nb; - u32_t tmp; - u32_t vjlen, hlen, changes; - - INCR(vjs_compressedin); - cp = (u8_t*)n0->payload; - changes = *cp++; - if (changes & NEW_C) { - /* - * Make sure the state index is in range, then grab the state. - * If we have a good state index, clear the 'discard' flag. - */ - if (*cp >= MAX_SLOTS) { - PPPDEBUG(LOG_INFO, ("vj_uncompress_tcp: bad cid=%d\n", *cp)); - goto bad; - } - - comp->flags &=~ VJF_TOSS; - comp->last_recv = *cp++; - } else { - /* - * this packet has an implicit state index. If we've - * had a line error since the last time we got an - * explicit state index, we have to toss the packet. - */ - if (comp->flags & VJF_TOSS) { - PPPDEBUG(LOG_INFO, ("vj_uncompress_tcp: tossing\n")); - INCR(vjs_tossed); - return (-1); - } - } - cs = &comp->rstate[comp->last_recv]; - hlen = IPH_HL(&cs->cs_ip) << 2; - th = (struct tcp_hdr *)&((u8_t*)&cs->cs_ip)[hlen]; - th->chksum = lwip_htons((*cp << 8) | cp[1]); - cp += 2; - if (changes & TCP_PUSH_BIT) { - TCPH_SET_FLAG(th, TCP_PSH); - } else { - TCPH_UNSET_FLAG(th, TCP_PSH); - } - - switch (changes & SPECIALS_MASK) { - case SPECIAL_I: - { - u32_t i = lwip_ntohs(IPH_LEN(&cs->cs_ip)) - cs->cs_hlen; - /* some compilers can't nest inline assembler.. */ - tmp = lwip_ntohl(th->ackno) + i; - th->ackno = lwip_htonl(tmp); - tmp = lwip_ntohl(th->seqno) + i; - th->seqno = lwip_htonl(tmp); - } - break; - - case SPECIAL_D: - /* some compilers can't nest inline assembler.. */ - tmp = lwip_ntohl(th->seqno) + lwip_ntohs(IPH_LEN(&cs->cs_ip)) - cs->cs_hlen; - th->seqno = lwip_htonl(tmp); - break; - - default: - if (changes & NEW_U) { - TCPH_SET_FLAG(th, TCP_URG); - DECODEU(th->urgp); - } else { - TCPH_UNSET_FLAG(th, TCP_URG); - } - if (changes & NEW_W) { - DECODES(th->wnd); - } - if (changes & NEW_A) { - DECODEL(th->ackno); - } - if (changes & NEW_S) { - DECODEL(th->seqno); - } - break; - } - if (changes & NEW_I) { - DECODES(cs->cs_ip._id); - } else { - IPH_ID_SET(&cs->cs_ip, lwip_ntohs(IPH_ID(&cs->cs_ip)) + 1); - IPH_ID_SET(&cs->cs_ip, lwip_htons(IPH_ID(&cs->cs_ip))); - } - - /* - * At this point, cp points to the first byte of data in the - * packet. Fill in the IP total length and update the IP - * header checksum. - */ - vjlen = (u16_t)(cp - (u8_t*)n0->payload); - if (n0->len < vjlen) { - /* - * We must have dropped some characters (crc should detect - * this but the old slip framing won't) - */ - PPPDEBUG(LOG_INFO, ("vj_uncompress_tcp: head buffer %d too short %d\n", - n0->len, vjlen)); - goto bad; - } - -#if BYTE_ORDER == LITTLE_ENDIAN - tmp = n0->tot_len - vjlen + cs->cs_hlen; - IPH_LEN_SET(&cs->cs_ip, lwip_htons((u16_t)tmp)); -#else - IPH_LEN_SET(&cs->cs_ip, lwip_htons(n0->tot_len - vjlen + cs->cs_hlen)); -#endif - - /* recompute the ip header checksum */ - bp = (struct vj_u16_t*) &cs->cs_ip; - IPH_CHKSUM_SET(&cs->cs_ip, 0); - for (tmp = 0; hlen > 0; hlen -= 2) { - tmp += (*bp++).v; - } - tmp = (tmp & 0xffff) + (tmp >> 16); - tmp = (tmp & 0xffff) + (tmp >> 16); - IPH_CHKSUM_SET(&cs->cs_ip, (u16_t)(~tmp)); - - /* Remove the compressed header and prepend the uncompressed header. */ - if (pbuf_remove_header(n0, vjlen)) { - /* Can we cope with this failing? Just assert for now */ - LWIP_ASSERT("pbuf_remove_header failed\n", 0); - goto bad; - } - - if(LWIP_MEM_ALIGN(n0->payload) != n0->payload) { - struct pbuf *np; - -#if IP_FORWARD - /* If IP forwarding is enabled we are using a PBUF_LINK packet type so - * the packet is being allocated with enough header space to be - * forwarded (to Ethernet for example). - */ - np = pbuf_alloc(PBUF_LINK, n0->len + cs->cs_hlen, PBUF_POOL); -#else /* IP_FORWARD */ - np = pbuf_alloc(PBUF_RAW, n0->len + cs->cs_hlen, PBUF_POOL); -#endif /* IP_FORWARD */ - if(!np) { - PPPDEBUG(LOG_WARNING, ("vj_uncompress_tcp: realign failed\n")); - goto bad; - } - - if (pbuf_remove_header(np, cs->cs_hlen)) { - /* Can we cope with this failing? Just assert for now */ - LWIP_ASSERT("pbuf_remove_header failed\n", 0); - goto bad; - } - - pbuf_take(np, n0->payload, n0->len); - - if(n0->next) { - pbuf_chain(np, n0->next); - pbuf_dechain(n0); - } - pbuf_free(n0); - n0 = np; - } - - if (pbuf_add_header(n0, cs->cs_hlen)) { - struct pbuf *np; - - LWIP_ASSERT("vj_uncompress_tcp: cs->cs_hlen <= PBUF_POOL_BUFSIZE", cs->cs_hlen <= PBUF_POOL_BUFSIZE); - np = pbuf_alloc(PBUF_RAW, cs->cs_hlen, PBUF_POOL); - if(!np) { - PPPDEBUG(LOG_WARNING, ("vj_uncompress_tcp: prepend failed\n")); - goto bad; - } - pbuf_cat(np, n0); - n0 = np; - } - LWIP_ASSERT("n0->len >= cs->cs_hlen", n0->len >= cs->cs_hlen); - MEMCPY(n0->payload, &cs->cs_ip, cs->cs_hlen); - - *nb = n0; - - return vjlen; - -bad: - vj_uncompress_err(comp); - return (-1); -} - -#endif /* PPP_SUPPORT && VJ_SUPPORT */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/slipif.c b/Middlewares/Third_Party/LwIP/src/netif/slipif.c deleted file mode 100644 index 9b175dc..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/slipif.c +++ /dev/null @@ -1,558 +0,0 @@ -/** - * @file - * SLIP Interface - * - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the Institute nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * This file is built upon the file: src/arch/rtxc/netif/sioslip.c - * - * Author: Magnus Ivarsson - * Simon Goldschmidt - */ - - -/** - * @defgroup slipif SLIP - * @ingroup netifs - * - * This is an arch independent SLIP netif. The specific serial hooks must be - * provided by another file. They are sio_open, sio_read/sio_tryread and sio_send - * - * Usage: This netif can be used in three ways:\n - * 1) For NO_SYS==0, an RX thread can be used which blocks on sio_read() - * until data is received.\n - * 2) In your main loop, call slipif_poll() to check for new RX bytes, - * completed packets are fed into netif->input().\n - * 3) Call slipif_received_byte[s]() from your serial RX ISR and - * slipif_process_rxqueue() from your main loop. ISR level decodes - * packets and puts completed packets on a queue which is fed into - * the stack from the main loop (needs SYS_LIGHTWEIGHT_PROT for - * pbuf_alloc to work on ISR level!). - * - */ - -#include "netif/slipif.h" -#include "lwip/opt.h" - -#include "lwip/def.h" -#include "lwip/pbuf.h" -#include "lwip/stats.h" -#include "lwip/snmp.h" -#include "lwip/sys.h" -#include "lwip/sio.h" - -#define SLIP_END 0xC0 /* 0300: start and end of every packet */ -#define SLIP_ESC 0xDB /* 0333: escape start (one byte escaped data follows) */ -#define SLIP_ESC_END 0xDC /* 0334: following escape: original byte is 0xC0 (END) */ -#define SLIP_ESC_ESC 0xDD /* 0335: following escape: original byte is 0xDB (ESC) */ - -/** Maximum packet size that is received by this netif */ -#ifndef SLIP_MAX_SIZE -#define SLIP_MAX_SIZE 1500 -#endif - -/** Define this to the interface speed for SNMP - * (sio_fd is the sio_fd_t returned by sio_open). - * The default value of zero means 'unknown'. - */ -#ifndef SLIP_SIO_SPEED -#define SLIP_SIO_SPEED(sio_fd) 0 -#endif - -enum slipif_recv_state { - SLIP_RECV_NORMAL, - SLIP_RECV_ESCAPE -}; - -struct slipif_priv { - sio_fd_t sd; - /* q is the whole pbuf chain for a packet, p is the current pbuf in the chain */ - struct pbuf *p, *q; - u8_t state; - u16_t i, recved; -#if SLIP_RX_FROM_ISR - struct pbuf *rxpackets; -#endif -}; - -/** - * Send a pbuf doing the necessary SLIP encapsulation - * - * Uses the serial layer's sio_send() - * - * @param netif the lwip network interface structure for this slipif - * @param p the pbuf chain packet to send - * @return always returns ERR_OK since the serial layer does not provide return values - */ -static err_t -slipif_output(struct netif *netif, struct pbuf *p) -{ - struct slipif_priv *priv; - struct pbuf *q; - u16_t i; - u8_t c; - - LWIP_ASSERT("netif != NULL", (netif != NULL)); - LWIP_ASSERT("netif->state != NULL", (netif->state != NULL)); - LWIP_ASSERT("p != NULL", (p != NULL)); - - LWIP_DEBUGF(SLIP_DEBUG, ("slipif_output: sending %"U16_F" bytes\n", p->tot_len)); - priv = (struct slipif_priv *)netif->state; - - /* Send pbuf out on the serial I/O device. */ - /* Start with packet delimiter. */ - sio_send(SLIP_END, priv->sd); - - for (q = p; q != NULL; q = q->next) { - for (i = 0; i < q->len; i++) { - c = ((u8_t *)q->payload)[i]; - switch (c) { - case SLIP_END: - /* need to escape this byte (0xC0 -> 0xDB, 0xDC) */ - sio_send(SLIP_ESC, priv->sd); - sio_send(SLIP_ESC_END, priv->sd); - break; - case SLIP_ESC: - /* need to escape this byte (0xDB -> 0xDB, 0xDD) */ - sio_send(SLIP_ESC, priv->sd); - sio_send(SLIP_ESC_ESC, priv->sd); - break; - default: - /* normal byte - no need for escaping */ - sio_send(c, priv->sd); - break; - } - } - } - /* End with packet delimiter. */ - sio_send(SLIP_END, priv->sd); - return ERR_OK; -} - -#if LWIP_IPV4 -/** - * Send a pbuf doing the necessary SLIP encapsulation - * - * Uses the serial layer's sio_send() - * - * @param netif the lwip network interface structure for this slipif - * @param p the pbuf chain packet to send - * @param ipaddr the ip address to send the packet to (not used for slipif) - * @return always returns ERR_OK since the serial layer does not provide return values - */ -static err_t -slipif_output_v4(struct netif *netif, struct pbuf *p, const ip4_addr_t *ipaddr) -{ - LWIP_UNUSED_ARG(ipaddr); - return slipif_output(netif, p); -} -#endif /* LWIP_IPV4 */ - -#if LWIP_IPV6 -/** - * Send a pbuf doing the necessary SLIP encapsulation - * - * Uses the serial layer's sio_send() - * - * @param netif the lwip network interface structure for this slipif - * @param p the pbuf chain packet to send - * @param ipaddr the ip address to send the packet to (not used for slipif) - * @return always returns ERR_OK since the serial layer does not provide return values - */ -static err_t -slipif_output_v6(struct netif *netif, struct pbuf *p, const ip6_addr_t *ipaddr) -{ - LWIP_UNUSED_ARG(ipaddr); - return slipif_output(netif, p); -} -#endif /* LWIP_IPV6 */ - -/** - * Handle the incoming SLIP stream character by character - * - * @param netif the lwip network interface structure for this slipif - * @param c received character (multiple calls to this function will - * return a complete packet, NULL is returned before - used for polling) - * @return The IP packet when SLIP_END is received - */ -static struct pbuf * -slipif_rxbyte(struct netif *netif, u8_t c) -{ - struct slipif_priv *priv; - struct pbuf *t; - - LWIP_ASSERT("netif != NULL", (netif != NULL)); - LWIP_ASSERT("netif->state != NULL", (netif->state != NULL)); - - priv = (struct slipif_priv *)netif->state; - - switch (priv->state) { - case SLIP_RECV_NORMAL: - switch (c) { - case SLIP_END: - if (priv->recved > 0) { - /* Received whole packet. */ - /* Trim the pbuf to the size of the received packet. */ - pbuf_realloc(priv->q, priv->recved); - - LINK_STATS_INC(link.recv); - - LWIP_DEBUGF(SLIP_DEBUG, ("slipif: Got packet (%"U16_F" bytes)\n", priv->recved)); - t = priv->q; - priv->p = priv->q = NULL; - priv->i = priv->recved = 0; - return t; - } - return NULL; - case SLIP_ESC: - priv->state = SLIP_RECV_ESCAPE; - return NULL; - default: - break; - } /* end switch (c) */ - break; - case SLIP_RECV_ESCAPE: - /* un-escape END or ESC bytes, leave other bytes - (although that would be a protocol error) */ - switch (c) { - case SLIP_ESC_END: - c = SLIP_END; - break; - case SLIP_ESC_ESC: - c = SLIP_ESC; - break; - default: - break; - } - priv->state = SLIP_RECV_NORMAL; - break; - default: - break; - } /* end switch (priv->state) */ - - /* byte received, packet not yet completely received */ - if (priv->p == NULL) { - /* allocate a new pbuf */ - LWIP_DEBUGF(SLIP_DEBUG, ("slipif_input: alloc\n")); - priv->p = pbuf_alloc(PBUF_LINK, (PBUF_POOL_BUFSIZE - PBUF_LINK_HLEN - PBUF_LINK_ENCAPSULATION_HLEN), PBUF_POOL); - - if (priv->p == NULL) { - LINK_STATS_INC(link.drop); - LWIP_DEBUGF(SLIP_DEBUG, ("slipif_input: no new pbuf! (DROP)\n")); - /* don't process any further since we got no pbuf to receive to */ - return NULL; - } - - if (priv->q != NULL) { - /* 'chain' the pbuf to the existing chain */ - pbuf_cat(priv->q, priv->p); - } else { - /* p is the first pbuf in the chain */ - priv->q = priv->p; - } - } - - /* this automatically drops bytes if > SLIP_MAX_SIZE */ - if ((priv->p != NULL) && (priv->recved <= SLIP_MAX_SIZE)) { - ((u8_t *)priv->p->payload)[priv->i] = c; - priv->recved++; - priv->i++; - if (priv->i >= priv->p->len) { - /* on to the next pbuf */ - priv->i = 0; - if (priv->p->next != NULL && priv->p->next->len > 0) { - /* p is a chain, on to the next in the chain */ - priv->p = priv->p->next; - } else { - /* p is a single pbuf, set it to NULL so next time a new - * pbuf is allocated */ - priv->p = NULL; - } - } - } - return NULL; -} - -/** Like slipif_rxbyte, but passes completed packets to netif->input - * - * @param netif The lwip network interface structure for this slipif - * @param c received character - */ -static void -slipif_rxbyte_input(struct netif *netif, u8_t c) -{ - struct pbuf *p; - p = slipif_rxbyte(netif, c); - if (p != NULL) { - if (netif->input(p, netif) != ERR_OK) { - pbuf_free(p); - } - } -} - -#if SLIP_USE_RX_THREAD -/** - * The SLIP input thread. - * - * Feed the IP layer with incoming packets - * - * @param nf the lwip network interface structure for this slipif - */ -static void -slipif_loop_thread(void *nf) -{ - u8_t c; - struct netif *netif = (struct netif *)nf; - struct slipif_priv *priv = (struct slipif_priv *)netif->state; - - while (1) { - if (sio_read(priv->sd, &c, 1) > 0) { - slipif_rxbyte_input(netif, c); - } - } -} -#endif /* SLIP_USE_RX_THREAD */ - -/** - * @ingroup slipif - * SLIP netif initialization - * - * Call the arch specific sio_open and remember - * the opened device in the state field of the netif. - * - * @param netif the lwip network interface structure for this slipif - * @return ERR_OK if serial line could be opened, - * ERR_MEM if no memory could be allocated, - * ERR_IF is serial line couldn't be opened - * - * @note If netif->state is interpreted as an u8_t serial port number. - * - */ -err_t -slipif_init(struct netif *netif) -{ - struct slipif_priv *priv; - u8_t sio_num; - - LWIP_ASSERT("slipif needs an input callback", netif->input != NULL); - - /* netif->state contains serial port number */ - sio_num = LWIP_PTR_NUMERIC_CAST(u8_t, netif->state); - - LWIP_DEBUGF(SLIP_DEBUG, ("slipif_init: netif->num=%"U16_F"\n", (u16_t)sio_num)); - - /* Allocate private data */ - priv = (struct slipif_priv *)mem_malloc(sizeof(struct slipif_priv)); - if (!priv) { - return ERR_MEM; - } - - netif->name[0] = 's'; - netif->name[1] = 'l'; -#if LWIP_IPV4 - netif->output = slipif_output_v4; -#endif /* LWIP_IPV4 */ -#if LWIP_IPV6 - netif->output_ip6 = slipif_output_v6; -#endif /* LWIP_IPV6 */ - netif->mtu = SLIP_MAX_SIZE; - - /* Try to open the serial port. */ - priv->sd = sio_open(sio_num); - if (!priv->sd) { - /* Opening the serial port failed. */ - mem_free(priv); - return ERR_IF; - } - - /* Initialize private data */ - priv->p = NULL; - priv->q = NULL; - priv->state = SLIP_RECV_NORMAL; - priv->i = 0; - priv->recved = 0; -#if SLIP_RX_FROM_ISR - priv->rxpackets = NULL; -#endif - - netif->state = priv; - - /* initialize the snmp variables and counters inside the struct netif */ - MIB2_INIT_NETIF(netif, snmp_ifType_slip, SLIP_SIO_SPEED(priv->sd)); - -#if SLIP_USE_RX_THREAD - /* Create a thread to poll the serial line. */ - sys_thread_new(SLIPIF_THREAD_NAME, slipif_loop_thread, netif, - SLIPIF_THREAD_STACKSIZE, SLIPIF_THREAD_PRIO); -#endif /* SLIP_USE_RX_THREAD */ - return ERR_OK; -} - -/** - * @ingroup slipif - * Polls the serial device and feeds the IP layer with incoming packets. - * - * @param netif The lwip network interface structure for this slipif - */ -void -slipif_poll(struct netif *netif) -{ - u8_t c; - struct slipif_priv *priv; - - LWIP_ASSERT("netif != NULL", (netif != NULL)); - LWIP_ASSERT("netif->state != NULL", (netif->state != NULL)); - - priv = (struct slipif_priv *)netif->state; - - while (sio_tryread(priv->sd, &c, 1) > 0) { - slipif_rxbyte_input(netif, c); - } -} - -#if SLIP_RX_FROM_ISR -/** - * @ingroup slipif - * Feeds the IP layer with incoming packets that were receive - * - * @param netif The lwip network interface structure for this slipif - */ -void -slipif_process_rxqueue(struct netif *netif) -{ - struct slipif_priv *priv; - SYS_ARCH_DECL_PROTECT(old_level); - - LWIP_ASSERT("netif != NULL", (netif != NULL)); - LWIP_ASSERT("netif->state != NULL", (netif->state != NULL)); - - priv = (struct slipif_priv *)netif->state; - - SYS_ARCH_PROTECT(old_level); - while (priv->rxpackets != NULL) { - struct pbuf *p = priv->rxpackets; -#if SLIP_RX_QUEUE - /* dequeue packet */ - struct pbuf *q = p; - while ((q->len != q->tot_len) && (q->next != NULL)) { - q = q->next; - } - priv->rxpackets = q->next; - q->next = NULL; -#else /* SLIP_RX_QUEUE */ - priv->rxpackets = NULL; -#endif /* SLIP_RX_QUEUE */ - SYS_ARCH_UNPROTECT(old_level); - if (netif->input(p, netif) != ERR_OK) { - pbuf_free(p); - } - SYS_ARCH_PROTECT(old_level); - } - SYS_ARCH_UNPROTECT(old_level); -} - -/** Like slipif_rxbyte, but queues completed packets. - * - * @param netif The lwip network interface structure for this slipif - * @param data Received serial byte - */ -static void -slipif_rxbyte_enqueue(struct netif *netif, u8_t data) -{ - struct pbuf *p; - struct slipif_priv *priv = (struct slipif_priv *)netif->state; - SYS_ARCH_DECL_PROTECT(old_level); - - p = slipif_rxbyte(netif, data); - if (p != NULL) { - SYS_ARCH_PROTECT(old_level); - if (priv->rxpackets != NULL) { -#if SLIP_RX_QUEUE - /* queue multiple pbufs */ - struct pbuf *q = p; - while (q->next != NULL) { - q = q->next; - } - q->next = p; - } else { -#else /* SLIP_RX_QUEUE */ - pbuf_free(priv->rxpackets); - } - { -#endif /* SLIP_RX_QUEUE */ - priv->rxpackets = p; - } - SYS_ARCH_UNPROTECT(old_level); - } -} - -/** - * @ingroup slipif - * Process a received byte, completed packets are put on a queue that is - * fed into IP through slipif_process_rxqueue(). - * - * This function can be called from ISR if SYS_LIGHTWEIGHT_PROT is enabled. - * - * @param netif The lwip network interface structure for this slipif - * @param data received character - */ -void -slipif_received_byte(struct netif *netif, u8_t data) -{ - LWIP_ASSERT("netif != NULL", (netif != NULL)); - LWIP_ASSERT("netif->state != NULL", (netif->state != NULL)); - slipif_rxbyte_enqueue(netif, data); -} - -/** - * @ingroup slipif - * Process multiple received byte, completed packets are put on a queue that is - * fed into IP through slipif_process_rxqueue(). - * - * This function can be called from ISR if SYS_LIGHTWEIGHT_PROT is enabled. - * - * @param netif The lwip network interface structure for this slipif - * @param data received character - * @param len Number of received characters - */ -void -slipif_received_bytes(struct netif *netif, u8_t *data, u8_t len) -{ - u8_t i; - u8_t *rxdata = data; - LWIP_ASSERT("netif != NULL", (netif != NULL)); - LWIP_ASSERT("netif->state != NULL", (netif->state != NULL)); - - for (i = 0; i < len; i++, rxdata++) { - slipif_rxbyte_enqueue(netif, *rxdata); - } -} -#endif /* SLIP_RX_FROM_ISR */ diff --git a/Middlewares/Third_Party/LwIP/src/netif/zepif.c b/Middlewares/Third_Party/LwIP/src/netif/zepif.c deleted file mode 100644 index b403303..0000000 --- a/Middlewares/Third_Party/LwIP/src/netif/zepif.c +++ /dev/null @@ -1,300 +0,0 @@ -/** - * @file - * - * @defgroup zepif ZEP - ZigBee Encapsulation Protocol - * @ingroup netifs - * A netif implementing the ZigBee Encapsulation Protocol (ZEP). - * This is used to tunnel 6LowPAN over UDP. - * - * Usage (there must be a default netif before!): - * @code{.c} - * netif_add(&zep_netif, NULL, NULL, NULL, NULL, zepif_init, tcpip_6lowpan_input); - * netif_create_ip6_linklocal_address(&zep_netif, 1); - * netif_set_up(&zep_netif); - * netif_set_link_up(&zep_netif); - * @endcode - */ - -/* - * Copyright (c) 2018 Simon Goldschmidt - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Simon Goldschmidt - * - */ - -#include "netif/zepif.h" - -#if LWIP_IPV6 && LWIP_UDP - -#include "netif/lowpan6.h" -#include "lwip/udp.h" -#include "lwip/timeouts.h" -#include - -/** Define this to 1 to loop back TX packets for testing */ -#ifndef ZEPIF_LOOPBACK -#define ZEPIF_LOOPBACK 0 -#endif - -#define ZEP_MAX_DATA_LEN 127 - -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/bpstruct.h" -#endif -PACK_STRUCT_BEGIN -struct zep_hdr { - PACK_STRUCT_FLD_8(u8_t prot_id[2]); - PACK_STRUCT_FLD_8(u8_t prot_version); - PACK_STRUCT_FLD_8(u8_t type); - PACK_STRUCT_FLD_8(u8_t channel_id); - PACK_STRUCT_FIELD(u16_t device_id); - PACK_STRUCT_FLD_8(u8_t crc_mode); - PACK_STRUCT_FLD_8(u8_t unknown_1); - PACK_STRUCT_FIELD(u32_t timestamp[2]); - PACK_STRUCT_FIELD(u32_t seq_num); - PACK_STRUCT_FLD_8(u8_t unknown_2[10]); - PACK_STRUCT_FLD_8(u8_t len); -} PACK_STRUCT_STRUCT; -PACK_STRUCT_END -#ifdef PACK_STRUCT_USE_INCLUDES -# include "arch/epstruct.h" -#endif - -struct zepif_state { - struct zepif_init init; - struct udp_pcb *pcb; - u32_t seqno; -}; - -static u8_t zep_lowpan_timer_running; - -/* Helper function that calls the 6LoWPAN timer and reschedules itself */ -static void -zep_lowpan_timer(void *arg) -{ - lowpan6_tmr(); - if (zep_lowpan_timer_running) { - sys_timeout(LOWPAN6_TMR_INTERVAL, zep_lowpan_timer, arg); - } -} - -/* Pass received pbufs into 6LowPAN netif */ -static void -zepif_udp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, - const ip_addr_t *addr, u16_t port) -{ - err_t err; - struct netif *netif_lowpan6 = (struct netif *)arg; - struct zep_hdr *zep; - - LWIP_ASSERT("arg != NULL", arg != NULL); - LWIP_ASSERT("pcb != NULL", pcb != NULL); - LWIP_UNUSED_ARG(pcb); /* for LWIP_NOASSERT */ - LWIP_UNUSED_ARG(addr); - LWIP_UNUSED_ARG(port); - if (p == NULL) { - return; - } - - /* Parse and hide the ZEP header */ - if (p->len < sizeof(struct zep_hdr)) { - /* need the zep_hdr in one piece */ - goto err_return; - } - zep = (struct zep_hdr *)p->payload; - if (zep->prot_id[0] != 'E') { - goto err_return; - } - if (zep->prot_id[1] != 'X') { - goto err_return; - } - if (zep->prot_version != 2) { - /* we only support this version for now */ - goto err_return; - } - if (zep->type != 1) { - goto err_return; - } - if (zep->crc_mode != 1) { - goto err_return; - } - if (zep->len != p->tot_len - sizeof(struct zep_hdr)) { - goto err_return; - } - /* everything seems to be OK, hide the ZEP header */ - if (pbuf_remove_header(p, sizeof(struct zep_hdr))) { - goto err_return; - } - /* TODO Check CRC? */ - /* remove CRC trailer */ - pbuf_realloc(p, p->tot_len - 2); - - /* Call into 6LoWPAN code. */ - err = netif_lowpan6->input(p, netif_lowpan6); - if (err == ERR_OK) { - return; - } -err_return: - pbuf_free(p); -} - -/* Send 6LoWPAN TX packets as UDP broadcast */ -static err_t -zepif_linkoutput(struct netif *netif, struct pbuf *p) -{ - err_t err; - struct pbuf *q; - struct zep_hdr *zep; - struct zepif_state *state; - - LWIP_ASSERT("invalid netif", netif != NULL); - LWIP_ASSERT("invalid pbuf", p != NULL); - - if (p->tot_len > ZEP_MAX_DATA_LEN) { - return ERR_VAL; - } - LWIP_ASSERT("TODO: support chained pbufs", p->next == NULL); - - state = (struct zepif_state *)netif->state; - LWIP_ASSERT("state->pcb != NULL", state->pcb != NULL); - - q = pbuf_alloc(PBUF_TRANSPORT, sizeof(struct zep_hdr) + p->tot_len, PBUF_RAM); - if (q == NULL) { - return ERR_MEM; - } - zep = (struct zep_hdr *)q->payload; - memset(zep, 0, sizeof(struct zep_hdr)); - zep->prot_id[0] = 'E'; - zep->prot_id[1] = 'X'; - zep->prot_version = 2; - zep->type = 1; /* Data */ - zep->channel_id = 0; /* whatever */ - zep->device_id = lwip_htons(1); /* whatever */ - zep->crc_mode = 1; - zep->unknown_1 = 0xff; - zep->seq_num = lwip_htonl(state->seqno); - state->seqno++; - zep->len = (u8_t)p->tot_len; - - err = pbuf_take_at(q, p->payload, p->tot_len, sizeof(struct zep_hdr)); - if (err == ERR_OK) { -#if ZEPIF_LOOPBACK - zepif_udp_recv(netif, state->pcb, pbuf_clone(PBUF_RAW, PBUF_RAM, q), NULL, 0); -#endif - err = udp_sendto(state->pcb, q, state->init.zep_dst_ip_addr, state->init.zep_dst_udp_port); - } - pbuf_free(q); - - return err; -} - -/** - * @ingroup zepif - * Set up a raw 6LowPAN netif and surround it with input- and output - * functions for ZEP - */ -err_t -zepif_init(struct netif *netif) -{ - err_t err; - struct zepif_init *init_state = (struct zepif_init *)netif->state; - struct zepif_state *state = (struct zepif_state *)mem_malloc(sizeof(struct zepif_state)); - - LWIP_ASSERT("zepif needs an input callback", netif->input != NULL); - - if (state == NULL) { - return ERR_MEM; - } - memset(state, 0, sizeof(struct zepif_state)); - if (init_state != NULL) { - memcpy(&state->init, init_state, sizeof(struct zepif_init)); - } - if (state->init.zep_src_udp_port == 0) { - state->init.zep_src_udp_port = ZEPIF_DEFAULT_UDP_PORT; - } - if (state->init.zep_dst_udp_port == 0) { - state->init.zep_dst_udp_port = ZEPIF_DEFAULT_UDP_PORT; - } -#if LWIP_IPV4 - if (state->init.zep_dst_ip_addr == NULL) { - /* With IPv4 enabled, default to broadcasting packets if no address is set */ - state->init.zep_dst_ip_addr = IP_ADDR_BROADCAST; - } -#endif /* LWIP_IPV4 */ - - netif->state = NULL; - - state->pcb = udp_new_ip_type(IPADDR_TYPE_ANY); - if (state->pcb == NULL) { - err = ERR_MEM; - goto err_ret; - } - err = udp_bind(state->pcb, state->init.zep_src_ip_addr, state->init.zep_src_udp_port); - if (err != ERR_OK) { - goto err_ret; - } - if (state->init.zep_netif != NULL) { - udp_bind_netif(state->pcb, state->init.zep_netif); - } - LWIP_ASSERT("udp_bind(lowpan6_broadcast_pcb) failed", err == ERR_OK); - ip_set_option(state->pcb, SOF_BROADCAST); - udp_recv(state->pcb, zepif_udp_recv, netif); - - err = lowpan6_if_init(netif); - LWIP_ASSERT("lowpan6_if_init set a state", netif->state == NULL); - if (err == ERR_OK) { - netif->state = state; - netif->hwaddr_len = 6; - if (init_state != NULL) { - memcpy(netif->hwaddr, init_state->addr, 6); - } else { - u8_t i; - for (i = 0; i < 6; i++) { - netif->hwaddr[i] = i; - } - netif->hwaddr[0] &= 0xfc; - } - netif->linkoutput = zepif_linkoutput; - - if (!zep_lowpan_timer_running) { - sys_timeout(LOWPAN6_TMR_INTERVAL, zep_lowpan_timer, NULL); - zep_lowpan_timer_running = 1; - } - - return ERR_OK; - } - -err_ret: - if (state->pcb != NULL) { - udp_remove(state->pcb); - } - mem_free(state); - return err; -} - -#endif /* LWIP_IPV6 && LWIP_UDP */ diff --git a/Middlewares/Third_Party/LwIP/system/OS/sys_arch.c b/Middlewares/Third_Party/LwIP/system/OS/sys_arch.c deleted file mode 100644 index 65d9bf9..0000000 --- a/Middlewares/Third_Party/LwIP/system/OS/sys_arch.c +++ /dev/null @@ -1,512 +0,0 @@ -/* - * Copyright (c) 2001-2003 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -/* lwIP includes. */ -#include "lwip/debug.h" -#include "lwip/def.h" -#include "lwip/sys.h" -#include "lwip/mem.h" -#include "lwip/stats.h" - -#if !NO_SYS - -#include "cmsis_os.h" - -#if defined(LWIP_PROVIDE_ERRNO) -int errno; -#endif - -/*-----------------------------------------------------------------------------------*/ -// Creates an empty mailbox. -err_t sys_mbox_new(sys_mbox_t *mbox, int size) -{ -#if (osCMSIS < 0x20000U) - osMessageQDef(QUEUE, size, void *); - *mbox = osMessageCreate(osMessageQ(QUEUE), NULL); -#else - *mbox = osMessageQueueNew(size, sizeof(void *), NULL); -#endif -#if SYS_STATS - ++lwip_stats.sys.mbox.used; - 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) - return ERR_MEM; - - return ERR_OK; -} - -/*-----------------------------------------------------------------------------------*/ -/* - Deallocates a mailbox. If there are messages still present in the - mailbox when the mailbox is deallocated, it is an indication of a - programming error in lwIP and the developer should be notified. -*/ -void sys_mbox_free(sys_mbox_t *mbox) -{ -#if (osCMSIS < 0x20000U) - if(osMessageWaiting(*mbox)) -#else - if(osMessageQueueGetCount(*mbox)) -#endif - { - /* Line for breakpoint. Should never break here! */ - portNOP(); -#if SYS_STATS - lwip_stats.sys.mbox.err++; -#endif /* SYS_STATS */ - - } -#if (osCMSIS < 0x20000U) - osMessageDelete(*mbox); -#else - osMessageQueueDelete(*mbox); -#endif -#if SYS_STATS - --lwip_stats.sys.mbox.used; -#endif /* SYS_STATS */ -} - -/*-----------------------------------------------------------------------------------*/ -// Posts the "msg" to the mailbox. -void sys_mbox_post(sys_mbox_t *mbox, void *data) -{ -#if (osCMSIS < 0x20000U) - while(osMessagePut(*mbox, (uint32_t)data, osWaitForever) != osOK); -#else - while(osMessageQueuePut(*mbox, &data, 0, osWaitForever) != osOK); -#endif -} - - -/*-----------------------------------------------------------------------------------*/ -// Try to post the "msg" to the mailbox. -err_t sys_mbox_trypost(sys_mbox_t *mbox, void *msg) -{ - err_t result; -#if (osCMSIS < 0x20000U) - if(osMessagePut(*mbox, (uint32_t)msg, 0) == osOK) -#else - if(osMessageQueuePut(*mbox, &msg, 0, 0) == osOK) -#endif - { - result = ERR_OK; - } - else - { - // could not post, queue must be full - result = ERR_MEM; - -#if SYS_STATS - lwip_stats.sys.mbox.err++; -#endif /* SYS_STATS */ - } - - return result; -} - - -/*-----------------------------------------------------------------------------------*/ -// Try to post the "msg" to the mailbox. -err_t sys_mbox_trypost_fromisr(sys_mbox_t *mbox, void *msg) -{ - return sys_mbox_trypost(mbox, msg); -} - -/*-----------------------------------------------------------------------------------*/ -/* - Blocks the thread until a message arrives in the mailbox, but does - not block the thread longer than "timeout" milliseconds (similar to - the sys_arch_sem_wait() function). The "msg" argument is a result - parameter that is set by the function (i.e., by doing "*msg = - ptr"). The "msg" parameter maybe NULL to indicate that the message - should be dropped. - - The return values are the same as for the sys_arch_sem_wait() function: - Number of milliseconds spent waiting or SYS_ARCH_TIMEOUT if there was a - timeout. - - 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) -{ -#if (osCMSIS < 0x20000U) - osEvent event; - uint32_t starttime = osKernelSysTick(); -#else - osStatus_t status; - uint32_t starttime = osKernelGetTickCount(); -#endif - if(timeout != 0) - { -#if (osCMSIS < 0x20000U) - event = osMessageGet (*mbox, timeout); - - if(event.status == osEventMessage) - { - *msg = (void *)event.value.v; - return (osKernelSysTick() - starttime); - } -#else - status = osMessageQueueGet(*mbox, msg, 0, timeout); - if (status == osOK) - { - return (osKernelGetTickCount() - starttime); - } -#endif - else - { - return SYS_ARCH_TIMEOUT; - } - } - else - { -#if (osCMSIS < 0x20000U) - event = osMessageGet (*mbox, osWaitForever); - *msg = (void *)event.value.v; - return (osKernelSysTick() - starttime); -#else - osMessageQueueGet(*mbox, msg, 0, osWaitForever ); - return (osKernelGetTickCount() - starttime); -#endif - } -} - -/*-----------------------------------------------------------------------------------*/ -/* - Similar to sys_arch_mbox_fetch, but if message is not ready immediately, we'll - return with SYS_MBOX_EMPTY. On success, 0 is returned. -*/ -u32_t sys_arch_mbox_tryfetch(sys_mbox_t *mbox, void **msg) -{ -#if (osCMSIS < 0x20000U) - osEvent event; - - event = osMessageGet (*mbox, 0); - - if(event.status == osEventMessage) - { - *msg = (void *)event.value.v; -#else - if (osMessageQueueGet(*mbox, msg, 0, 0) == osOK) - { -#endif - return ERR_OK; - } - else - { - return SYS_MBOX_EMPTY; - } -} -/*----------------------------------------------------------------------------------*/ -int sys_mbox_valid(sys_mbox_t *mbox) -{ - if (*mbox == SYS_MBOX_NULL) - return 0; - else - return 1; -} -/*-----------------------------------------------------------------------------------*/ -void sys_mbox_set_invalid(sys_mbox_t *mbox) -{ - *mbox = SYS_MBOX_NULL; -} - -/*-----------------------------------------------------------------------------------*/ -// Creates a new semaphore. The "count" argument specifies -// the initial state of the semaphore. -err_t sys_sem_new(sys_sem_t *sem, u8_t count) -{ -#if (osCMSIS < 0x20000U) - osSemaphoreDef(SEM); - *sem = osSemaphoreCreate (osSemaphore(SEM), 1); -#else - *sem = osSemaphoreNew(UINT16_MAX, count, NULL); -#endif - - if(*sem == NULL) - { -#if SYS_STATS - ++lwip_stats.sys.sem.err; -#endif /* SYS_STATS */ - return ERR_MEM; - } - - if(count == 0) // Means it can't be taken - { -#if (osCMSIS < 0x20000U) - osSemaphoreWait(*sem, 0); -#else - osSemaphoreAcquire(*sem, 0); -#endif - } - -#if SYS_STATS - ++lwip_stats.sys.sem.used; - if (lwip_stats.sys.sem.max < lwip_stats.sys.sem.used) { - lwip_stats.sys.sem.max = lwip_stats.sys.sem.used; - } -#endif /* SYS_STATS */ - - return ERR_OK; -} - -/*-----------------------------------------------------------------------------------*/ -/* - Blocks the thread while waiting for the semaphore to be - signaled. If the "timeout" argument is non-zero, the thread should - only be blocked for the specified time (measured in - milliseconds). - - If the timeout argument is non-zero, the return value is the number of - milliseconds spent waiting for the semaphore to be signaled. If the - semaphore wasn't signaled within the specified time, the return value is - SYS_ARCH_TIMEOUT. If the thread didn't have to wait for the semaphore - (i.e., it was already signaled), the function may return zero. - - Notice that lwIP implements a function with a similar name, - sys_sem_wait(), that uses the sys_arch_sem_wait() function. -*/ -u32_t sys_arch_sem_wait(sys_sem_t *sem, u32_t timeout) -{ -#if (osCMSIS < 0x20000U) - uint32_t starttime = osKernelSysTick(); -#else - uint32_t starttime = osKernelGetTickCount(); -#endif - if(timeout != 0) - { -#if (osCMSIS < 0x20000U) - if(osSemaphoreWait (*sem, timeout) == osOK) - { - return (osKernelSysTick() - starttime); -#else - if(osSemaphoreAcquire(*sem, timeout) == osOK) - { - return (osKernelGetTickCount() - starttime); -#endif - } - else - { - return SYS_ARCH_TIMEOUT; - } - } - else - { -#if (osCMSIS < 0x20000U) - while(osSemaphoreWait (*sem, osWaitForever) != osOK); - return (osKernelSysTick() - starttime); -#else - while(osSemaphoreAcquire(*sem, osWaitForever) != osOK); - return (osKernelGetTickCount() - starttime); -#endif - } -} - -/*-----------------------------------------------------------------------------------*/ -// Signals a semaphore -void sys_sem_signal(sys_sem_t *sem) -{ - osSemaphoreRelease(*sem); -} - -/*-----------------------------------------------------------------------------------*/ -// Deallocates a semaphore -void sys_sem_free(sys_sem_t *sem) -{ -#if SYS_STATS - --lwip_stats.sys.sem.used; -#endif /* SYS_STATS */ - - osSemaphoreDelete(*sem); -} -/*-----------------------------------------------------------------------------------*/ -int sys_sem_valid(sys_sem_t *sem) -{ - if (*sem == SYS_SEM_NULL) - return 0; - else - return 1; -} - -/*-----------------------------------------------------------------------------------*/ -void sys_sem_set_invalid(sys_sem_t *sem) -{ - *sem = SYS_SEM_NULL; -} - -/*-----------------------------------------------------------------------------------*/ -#if (osCMSIS < 0x20000U) -osMutexId lwip_sys_mutex; -osMutexDef(lwip_sys_mutex); -#else -osMutexId_t lwip_sys_mutex; -#endif -// Initialize sys arch -void sys_init(void) -{ -#if (osCMSIS < 0x20000U) - lwip_sys_mutex = osMutexCreate(osMutex(lwip_sys_mutex)); -#else - lwip_sys_mutex = osMutexNew(NULL); -#endif -} -/*-----------------------------------------------------------------------------------*/ - /* Mutexes*/ -/*-----------------------------------------------------------------------------------*/ -/*-----------------------------------------------------------------------------------*/ -#if LWIP_COMPAT_MUTEX == 0 -/* Create a new mutex*/ -err_t sys_mutex_new(sys_mutex_t *mutex) { - -#if (osCMSIS < 0x20000U) - osMutexDef(MUTEX); - *mutex = osMutexCreate(osMutex(MUTEX)); -#else - *mutex = osMutexNew(NULL); -#endif - - if(*mutex == NULL) - { -#if SYS_STATS - ++lwip_stats.sys.mutex.err; -#endif /* SYS_STATS */ - return ERR_MEM; - } - -#if SYS_STATS - ++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; -} -/*-----------------------------------------------------------------------------------*/ -/* Deallocate a mutex*/ -void sys_mutex_free(sys_mutex_t *mutex) -{ -#if SYS_STATS - --lwip_stats.sys.mutex.used; -#endif /* SYS_STATS */ - - osMutexDelete(*mutex); -} -/*-----------------------------------------------------------------------------------*/ -/* Lock a mutex*/ -void sys_mutex_lock(sys_mutex_t *mutex) -{ -#if (osCMSIS < 0x20000U) - osMutexWait(*mutex, osWaitForever); -#else - osMutexAcquire(*mutex, osWaitForever); -#endif -} - -/*-----------------------------------------------------------------------------------*/ -/* Unlock a mutex*/ -void sys_mutex_unlock(sys_mutex_t *mutex) -{ - osMutexRelease(*mutex); -} -#endif /*LWIP_COMPAT_MUTEX*/ -/*-----------------------------------------------------------------------------------*/ -// TODO -/*-----------------------------------------------------------------------------------*/ -/* - Starts a new thread with priority "prio" that will begin its execution in the - 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) -{ -#if (osCMSIS < 0x20000U) - const osThreadDef_t os_thread_def = { (char *)name, (os_pthread)thread, (osPriority)prio, 0, stacksize}; - return osThreadCreate(&os_thread_def, arg); -#else - const osThreadAttr_t attributes = { - .name = name, - .stack_size = stacksize, - .priority = (osPriority_t)prio, - }; - return osThreadNew(thread, arg, &attributes); -#endif -} - -/* - This optional function does a "fast" critical region protection and returns - the previous protection level. This function is only called during very short - critical regions. An embedded system which supports ISR-based drivers might - want to implement this function by disabling interrupts. Task-based systems - might want to implement this by using a mutex or disabling tasking. This - function should support recursive calls from the same task or interrupt. In - other words, sys_arch_protect() could be called while already protected. In - that case the return value indicates that it is already protected. - - sys_arch_protect() is only required if your port is supporting an operating - system. - - Note: This function is based on FreeRTOS API, because no equivalent CMSIS-RTOS - API is available -*/ -sys_prot_t sys_arch_protect(void) -{ -#if (osCMSIS < 0x20000U) - osMutexWait(lwip_sys_mutex, osWaitForever); -#else - osMutexAcquire(lwip_sys_mutex, osWaitForever); -#endif - return (sys_prot_t)1; -} - - -/* - This optional function does a "fast" set of critical region protection to the - value specified by pval. See the documentation for sys_arch_protect() for - more information. This function is only required if your port is supporting - an operating system. - - Note: This function is based on FreeRTOS API, because no equivalent CMSIS-RTOS - API is available -*/ -void sys_arch_unprotect(sys_prot_t pval) -{ - ( void ) pval; - osMutexRelease(lwip_sys_mutex); -} - -#endif /* !NO_SYS */ diff --git a/Middlewares/Third_Party/LwIP/system/arch/bpstruct.h b/Middlewares/Third_Party/LwIP/system/arch/bpstruct.h deleted file mode 100644 index 177758c..0000000 --- a/Middlewares/Third_Party/LwIP/system/arch/bpstruct.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) 2001-2003 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -#if defined(__IAR_SYSTEMS_ICC__) -#pragma pack(1) -#endif - diff --git a/Middlewares/Third_Party/LwIP/system/arch/cc.h b/Middlewares/Third_Party/LwIP/system/arch/cc.h deleted file mode 100644 index 3065318..0000000 --- a/Middlewares/Third_Party/LwIP/system/arch/cc.h +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright (c) 2001-2003 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef __CC_H__ -#define __CC_H__ - -#include "cpu.h" -#include -#include - -typedef int sys_prot_t; - -#define LWIP_PROVIDE_ERRNO - -#if defined (__GNUC__) & !defined (__CC_ARM) - -#define LWIP_TIMEVAL_PRIVATE 0 -#include - -#endif - -/* define compiler specific symbols */ -#if defined (__ICCARM__) - -#define PACK_STRUCT_BEGIN -#define PACK_STRUCT_STRUCT -#define PACK_STRUCT_END -#define PACK_STRUCT_FIELD(x) x -#define PACK_STRUCT_USE_INCLUDES - -#elif defined (__GNUC__) - -#define PACK_STRUCT_BEGIN -#define PACK_STRUCT_STRUCT __attribute__ ((__packed__)) -#define PACK_STRUCT_END -#define PACK_STRUCT_FIELD(x) x - -#elif defined (__CC_ARM) - -#define PACK_STRUCT_BEGIN __packed -#define PACK_STRUCT_STRUCT -#define PACK_STRUCT_END -#define PACK_STRUCT_FIELD(x) x - -#elif defined (__TASKING__) - -#define PACK_STRUCT_BEGIN -#define PACK_STRUCT_STRUCT -#define PACK_STRUCT_END -#define PACK_STRUCT_FIELD(x) x - -#endif - -#define LWIP_PLATFORM_ASSERT(x) do {printf("Assertion \"%s\" failed at line %d in %s\n", \ - x, __LINE__, __FILE__); } while(0) - -/* Define random number generator function */ -#define LWIP_RAND() ((u32_t)rand()) - -#endif /* __CC_H__ */ diff --git a/Middlewares/Third_Party/LwIP/system/arch/cpu.h b/Middlewares/Third_Party/LwIP/system/arch/cpu.h deleted file mode 100644 index bfdf881..0000000 --- a/Middlewares/Third_Party/LwIP/system/arch/cpu.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2001-2003 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef __CPU_H__ -#define __CPU_H__ - -#ifndef BYTE_ORDER -#define BYTE_ORDER LITTLE_ENDIAN -#endif - -#endif /* __CPU_H__ */ diff --git a/Middlewares/Third_Party/LwIP/system/arch/epstruct.h b/Middlewares/Third_Party/LwIP/system/arch/epstruct.h deleted file mode 100644 index 1e1a049..0000000 --- a/Middlewares/Third_Party/LwIP/system/arch/epstruct.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) 2001-2003 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -#if defined(__IAR_SYSTEMS_ICC__) -#pragma pack() -#endif - diff --git a/Middlewares/Third_Party/LwIP/system/arch/init.h b/Middlewares/Third_Party/LwIP/system/arch/init.h deleted file mode 100644 index e622c73..0000000 --- a/Middlewares/Third_Party/LwIP/system/arch/init.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2001-2003 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef __ARCH_INIT_H__ -#define __ARCH_INIT_H__ - -#define TCPIP_INIT_DONE(arg) tcpip_init_done(arg) - -void tcpip_init_done(void *); -int wait_for_tcpip_init(void); - -#endif /* __ARCH_INIT_H__ */ - - - - diff --git a/Middlewares/Third_Party/LwIP/system/arch/lib.h b/Middlewares/Third_Party/LwIP/system/arch/lib.h deleted file mode 100644 index 378f25b..0000000 --- a/Middlewares/Third_Party/LwIP/system/arch/lib.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2001-2003 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef __LIB_H__ -#define __LIB_H__ - -#include - - -#endif /* __LIB_H__ */ diff --git a/Middlewares/Third_Party/LwIP/system/arch/perf.h b/Middlewares/Third_Party/LwIP/system/arch/perf.h deleted file mode 100644 index 334d42a..0000000 --- a/Middlewares/Third_Party/LwIP/system/arch/perf.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2001-2003 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef __PERF_H__ -#define __PERF_H__ - -#define PERF_START /* null definition */ -#define PERF_STOP(x) /* null definition */ - -#endif /* __PERF_H__ */ diff --git a/Middlewares/Third_Party/LwIP/system/arch/sys_arch.h b/Middlewares/Third_Party/LwIP/system/arch/sys_arch.h deleted file mode 100644 index 49bfd4e..0000000 --- a/Middlewares/Third_Party/LwIP/system/arch/sys_arch.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (c) 2001-2003 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ -#ifndef __SYS_ARCH_H__ -#define __SYS_ARCH_H__ - -#include "lwip/opt.h" - -#if (NO_SYS != 0) -#error "NO_SYS need to be set to 0 to use threaded API" -#endif - -#include "cmsis_os.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#if (osCMSIS < 0x20000U) - -#define SYS_MBOX_NULL (osMessageQId)0 -#define SYS_SEM_NULL (osSemaphoreId)0 - -typedef osSemaphoreId sys_sem_t; -typedef osSemaphoreId sys_mutex_t; -typedef osMessageQId sys_mbox_t; -typedef osThreadId sys_thread_t; -#else - -#define SYS_MBOX_NULL (osMessageQueueId_t)0 -#define SYS_SEM_NULL (osSemaphoreId_t)0 - -typedef osSemaphoreId_t sys_sem_t; -typedef osSemaphoreId_t sys_mutex_t; -typedef osMessageQueueId_t sys_mbox_t; -typedef osThreadId_t sys_thread_t; -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* __SYS_ARCH_H__ */ - diff --git a/STM32H723VGHX_FLASH.ld b/STM32H723VGHX_FLASH.ld deleted file mode 100644 index 73e2a3c..0000000 --- a/STM32H723VGHX_FLASH.ld +++ /dev/null @@ -1,185 +0,0 @@ -/* -****************************************************************************** -** -** File : LinkerScript.ld -** -** Author : STM32CubeIDE -** -** Abstract : Linker script for STM32H7 series -** 1024Kbytes FLASH and 560Kbytes RAM -** -** Set heap size, stack size and stack location according -** to application requirements. -** -** Set memory bank area and size if external memory is used. -** -** Target : STMicroelectronics STM32 -** -** Distribution: The file is distributed as is, without any warranty -** of any kind. -** -***************************************************************************** -** @attention -** -** Copyright (c) 2023 STMicroelectronics. -** All rights reserved. -** -** This software is licensed under terms that can be found in the LICENSE file -** in the root directory of this software component. -** If no LICENSE file comes with this software, it is provided AS-IS. -** -**************************************************************************** -*/ - -/* Entry Point */ -ENTRY(Reset_Handler) - -/* Highest address of the user mode stack */ -_estack = ORIGIN(RAM_D1) + LENGTH(RAM_D1); /* end of RAM */ -/* Generate a link error if heap and stack don't fit into RAM */ -_Min_Heap_Size = 0x2000; /* required amount of heap */ -_Min_Stack_Size = 0x4000; /* required amount of stack */ - -/* Specify the memory areas */ -MEMORY -{ - ITCMRAM (xrw) : ORIGIN = 0x00000000, LENGTH = 64K - DTCMRAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K - FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K - RAM_D1 (xrw) : ORIGIN = 0x24000000, LENGTH = 320K - RAM_D2 (xrw) : ORIGIN = 0x30000000, LENGTH = 32K - RAM_D3 (xrw) : ORIGIN = 0x38000000, LENGTH = 16K -} - -/* Define output sections */ -SECTIONS -{ - /* The startup code goes first into FLASH */ - .isr_vector : - { - . = ALIGN(4); - KEEP(*(.isr_vector)) /* Startup code */ - . = ALIGN(4); - } >FLASH - - /* The program code and other data goes into FLASH */ - .text : - { - . = ALIGN(4); - *(.text) /* .text sections (code) */ - *(.text*) /* .text* sections (code) */ - *(.glue_7) /* glue arm to thumb code */ - *(.glue_7t) /* glue thumb to arm code */ - *(.eh_frame) - - KEEP (*(.init)) - KEEP (*(.fini)) - - . = ALIGN(4); - _etext = .; /* define a global symbols at end of code */ - } >FLASH - - /* Constant data goes into FLASH */ - .rodata : - { - . = ALIGN(4); - *(.rodata) /* .rodata sections (constants, strings, etc.) */ - *(.rodata*) /* .rodata* sections (constants, strings, etc.) */ - . = ALIGN(4); - } >FLASH - - .ARM.extab : { *(.ARM.extab* .gnu.linkonce.armextab.*) } >FLASH - .ARM : { - __exidx_start = .; - *(.ARM.exidx*) - __exidx_end = .; - } >FLASH - - .preinit_array : - { - PROVIDE_HIDDEN (__preinit_array_start = .); - KEEP (*(.preinit_array*)) - PROVIDE_HIDDEN (__preinit_array_end = .); - } >FLASH - - .init_array : - { - PROVIDE_HIDDEN (__init_array_start = .); - KEEP (*(SORT(.init_array.*))) - KEEP (*(.init_array*)) - PROVIDE_HIDDEN (__init_array_end = .); - } >FLASH - - .fini_array : - { - PROVIDE_HIDDEN (__fini_array_start = .); - KEEP (*(SORT(.fini_array.*))) - KEEP (*(.fini_array*)) - PROVIDE_HIDDEN (__fini_array_end = .); - } >FLASH - - /* used by the startup to initialize data */ - _sidata = LOADADDR(.data); - - /* Initialized data sections goes into RAM, load LMA copy after code */ - .data : - { - . = ALIGN(4); - _sdata = .; /* create a global symbol at data start */ - *(.data) /* .data sections */ - *(.data*) /* .data* sections */ - *(.RamFunc) /* .RamFunc sections */ - *(.RamFunc*) /* .RamFunc* sections */ - - . = ALIGN(4); - _edata = .; /* define a global symbol at data end */ - } >RAM_D1 AT> FLASH - - /* Uninitialized data section */ - . = ALIGN(4); - .bss : - { - /* This is used by the startup in order to initialize the .bss section */ - _sbss = .; /* define a global symbol at bss start */ - __bss_start__ = _sbss; - *(.bss) - *(.bss*) - *(COMMON) - - . = ALIGN(4); - _ebss = .; /* define a global symbol at bss end */ - __bss_end__ = _ebss; - } >RAM_D1 - - /* User_heap_stack section, used to check that there is enough RAM left */ - ._user_heap_stack : - { - . = ALIGN(8); - PROVIDE ( end = . ); - PROVIDE ( _end = . ); - . = . + _Min_Heap_Size; - . = . + _Min_Stack_Size; - . = ALIGN(8); - } >RAM_D1 - - /* Modification start */ - .lwip_sec (NOLOAD) : - { - . = ABSOLUTE(0x30000000); - *(.RxDecripSection) - - . = ABSOLUTE(0x30000100); - *(.TxDecripSection) - } >RAM_D2 - /* Modification end */ - - /* Remove information from the standard libraries */ - /DISCARD/ : - { - libc.a ( * ) - libm.a ( * ) - libgcc.a ( * ) - } - - .ARM.attributes 0 : { *(.ARM.attributes) } -} diff --git a/STM32H723VGHX_RAM.ld b/STM32H723VGHX_RAM.ld deleted file mode 100644 index dc79280..0000000 --- a/STM32H723VGHX_RAM.ld +++ /dev/null @@ -1,173 +0,0 @@ -/* -****************************************************************************** -** -** File : LinkerScript.ld (debug in RAM dedicated) -** -** Author : STM32CubeIDE -** -** Abstract : Linker script for STM32H7 series -** 320Kbytes RAM_EXEC and 240Kbytes RAM -** -** Set heap size, stack size and stack location according -** to application requirements. -** -** Set memory bank area and size if external memory is used. -** -** Target : STMicroelectronics STM32 -** -** Distribution: The file is distributed as is, without any warranty -** of any kind. -** -***************************************************************************** -** @attention -** -** Copyright (c) 2023 STMicroelectronics. -** All rights reserved. -** -** This software is licensed under terms that can be found in the LICENSE file -** in the root directory of this software component. -** If no LICENSE file comes with this software, it is provided AS-IS. -** -**************************************************************************** -*/ - -/* Entry Point */ -ENTRY(Reset_Handler) - -/* Highest address of the user mode stack */ -_estack = ORIGIN(DTCMRAM) + LENGTH(DTCMRAM); /* end of RAM */ -/* Generate a link error if heap and stack don't fit into RAM */ -_Min_Heap_Size = 0x2000; /* required amount of heap */ -_Min_Stack_Size = 0x4000; /* required amount of stack */ - -/* Specify the memory areas */ -MEMORY -{ - RAM_EXEC (xrw) : ORIGIN = 0x24000000, LENGTH = 320K - DTCMRAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K - ITCMRAM (xrw) : ORIGIN = 0x00000000, LENGTH = 64K - RAM_D2 (xrw) : ORIGIN = 0x30000000, LENGTH = 32K - RAM_D3 (xrw) : ORIGIN = 0x38000000, LENGTH = 16K -} - -/* Define output sections */ -SECTIONS -{ - /* The startup code goes first into RAM_EXEC */ - .isr_vector : - { - . = ALIGN(4); - KEEP(*(.isr_vector)) /* Startup code */ - . = ALIGN(4); - } >RAM_EXEC - - /* The program code and other data goes into RAM_EXEC */ - .text : - { - . = ALIGN(4); - *(.text) /* .text sections (code) */ - *(.text*) /* .text* sections (code) */ - *(.glue_7) /* glue arm to thumb code */ - *(.glue_7t) /* glue thumb to arm code */ - *(.eh_frame) - *(.RamFunc) /* .RamFunc sections */ - *(.RamFunc*) /* .RamFunc* sections */ - - KEEP (*(.init)) - KEEP (*(.fini)) - - . = ALIGN(4); - _etext = .; /* define a global symbols at end of code */ - } >RAM_EXEC - - /* Constant data goes into RAM_EXEC */ - .rodata : - { - . = ALIGN(4); - *(.rodata) /* .rodata sections (constants, strings, etc.) */ - *(.rodata*) /* .rodata* sections (constants, strings, etc.) */ - . = ALIGN(4); - } >RAM_EXEC - - .ARM.extab : { *(.ARM.extab* .gnu.linkonce.armextab.*) } >RAM_EXEC - .ARM : { - __exidx_start = .; - *(.ARM.exidx*) - __exidx_end = .; - } >RAM_EXEC - - .preinit_array : - { - PROVIDE_HIDDEN (__preinit_array_start = .); - KEEP (*(.preinit_array*)) - PROVIDE_HIDDEN (__preinit_array_end = .); - } >RAM_EXEC - - .init_array : - { - PROVIDE_HIDDEN (__init_array_start = .); - KEEP (*(SORT(.init_array.*))) - KEEP (*(.init_array*)) - PROVIDE_HIDDEN (__init_array_end = .); - } >RAM_EXEC - - .fini_array : - { - PROVIDE_HIDDEN (__fini_array_start = .); - KEEP (*(SORT(.fini_array.*))) - KEEP (*(.fini_array*)) - PROVIDE_HIDDEN (__fini_array_end = .); - } >RAM_EXEC - - /* used by the startup to initialize data */ - _sidata = LOADADDR(.data); - - /* Initialized data sections goes into RAM, load LMA copy after code */ - .data : - { - . = ALIGN(4); - _sdata = .; /* create a global symbol at data start */ - *(.data) /* .data sections */ - *(.data*) /* .data* sections */ - - . = ALIGN(4); - _edata = .; /* define a global symbol at data end */ - } >DTCMRAM AT> RAM_EXEC - - /* Uninitialized data section */ - . = ALIGN(4); - .bss : - { - /* This is used by the startup in order to initialize the .bss section */ - _sbss = .; /* define a global symbol at bss start */ - __bss_start__ = _sbss; - *(.bss) - *(.bss*) - *(COMMON) - - . = ALIGN(4); - _ebss = .; /* define a global symbol at bss end */ - __bss_end__ = _ebss; - } >DTCMRAM - - /* User_heap_stack section, used to check that there is enough RAM left */ - ._user_heap_stack : - { - . = ALIGN(8); - PROVIDE ( end = . ); - PROVIDE ( _end = . ); - . = . + _Min_Heap_Size; - . = . + _Min_Stack_Size; - . = ALIGN(8); - } >DTCMRAM - - /* Remove information from the standard libraries */ - /DISCARD/ : - { - libc.a ( * ) - libm.a ( * ) - libgcc.a ( * ) - } - - .ARM.attributes 0 : { *(.ARM.attributes) } -} diff --git a/TBD_TaxiBoard Debug.launch b/TBD_TaxiBoard Debug.launch deleted file mode 100644 index b1cf034..0000000 --- a/TBD_TaxiBoard Debug.launch +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/TBD_TaxiBoard.ioc b/TBD_TaxiBoard.ioc deleted file mode 100644 index 5152be2..0000000 --- a/TBD_TaxiBoard.ioc +++ /dev/null @@ -1,534 +0,0 @@ -#MicroXplorer Configuration settings - do not modify -CAD.formats=[] -CAD.pinconfig=Project naming -CAD.provider= -CORTEX_M7.AccessPermission_S-Cortex_Memory_Protection_Unit_Region1_Settings_S=MPU_REGION_FULL_ACCESS -CORTEX_M7.AccessPermission_S-Cortex_Memory_Protection_Unit_Region2_Settings_S=MPU_REGION_FULL_ACCESS -CORTEX_M7.AccessPermission_S-Cortex_Memory_Protection_Unit_Region3_Settings_S=MPU_REGION_FULL_ACCESS -CORTEX_M7.BaseAddress_S-Cortex_Memory_Protection_Unit_Region1_Settings_S=0x30000000 -CORTEX_M7.BaseAddress_S-Cortex_Memory_Protection_Unit_Region2_Settings_S=0x30000000 -CORTEX_M7.BaseAddress_S-Cortex_Memory_Protection_Unit_Region3_Settings_S=0x24000000 -CORTEX_M7.CPU_DCache=Enabled -CORTEX_M7.CPU_ICache=Enabled -CORTEX_M7.DisableExec_S-Cortex_Memory_Protection_Unit_Region1_Settings_S=MPU_INSTRUCTION_ACCESS_DISABLE -CORTEX_M7.DisableExec_S-Cortex_Memory_Protection_Unit_Region2_Settings_S=MPU_INSTRUCTION_ACCESS_DISABLE -CORTEX_M7.Enable_S-Cortex_Memory_Protection_Unit_Region1_Settings_S=MPU_REGION_ENABLE -CORTEX_M7.Enable_S-Cortex_Memory_Protection_Unit_Region2_Settings_S=MPU_REGION_ENABLE -CORTEX_M7.Enable_S-Cortex_Memory_Protection_Unit_Region3_Settings_S=MPU_REGION_ENABLE -CORTEX_M7.IPParameters=default_mode_Activation,CPU_ICache,CPU_DCache,Enable_S-Cortex_Memory_Protection_Unit_Region1_Settings_S,BaseAddress_S-Cortex_Memory_Protection_Unit_Region1_Settings_S,TypeExtField_S-Cortex_Memory_Protection_Unit_Region1_Settings_S,AccessPermission_S-Cortex_Memory_Protection_Unit_Region1_Settings_S,DisableExec_S-Cortex_Memory_Protection_Unit_Region1_Settings_S,Enable_S-Cortex_Memory_Protection_Unit_Region2_Settings_S,BaseAddress_S-Cortex_Memory_Protection_Unit_Region2_Settings_S,Size_S-Cortex_Memory_Protection_Unit_Region2_Settings_S,AccessPermission_S-Cortex_Memory_Protection_Unit_Region2_Settings_S,DisableExec_S-Cortex_Memory_Protection_Unit_Region2_Settings_S,IsShareable_S-Cortex_Memory_Protection_Unit_Region2_Settings_S,IsBufferable_S-Cortex_Memory_Protection_Unit_Region2_Settings_S,Size_S-Cortex_Memory_Protection_Unit_Region1_Settings_S,Enable_S-Cortex_Memory_Protection_Unit_Region3_Settings_S,BaseAddress_S-Cortex_Memory_Protection_Unit_Region3_Settings_S,Size_S-Cortex_Memory_Protection_Unit_Region3_Settings_S,TypeExtField_S-Cortex_Memory_Protection_Unit_Region3_Settings_S,AccessPermission_S-Cortex_Memory_Protection_Unit_Region3_Settings_S,IsShareable_S-Cortex_Memory_Protection_Unit_Region3_Settings_S -CORTEX_M7.IsBufferable_S-Cortex_Memory_Protection_Unit_Region2_Settings_S=MPU_ACCESS_BUFFERABLE -CORTEX_M7.IsShareable_S-Cortex_Memory_Protection_Unit_Region2_Settings_S=MPU_ACCESS_SHAREABLE -CORTEX_M7.IsShareable_S-Cortex_Memory_Protection_Unit_Region3_Settings_S=MPU_ACCESS_SHAREABLE -CORTEX_M7.Size_S-Cortex_Memory_Protection_Unit_Region1_Settings_S=MPU_REGION_SIZE_32KB -CORTEX_M7.Size_S-Cortex_Memory_Protection_Unit_Region2_Settings_S=MPU_REGION_SIZE_512B -CORTEX_M7.Size_S-Cortex_Memory_Protection_Unit_Region3_Settings_S=MPU_REGION_SIZE_128KB -CORTEX_M7.TypeExtField_S-Cortex_Memory_Protection_Unit_Region1_Settings_S=MPU_TEX_LEVEL1 -CORTEX_M7.TypeExtField_S-Cortex_Memory_Protection_Unit_Region3_Settings_S=MPU_TEX_LEVEL1 -CORTEX_M7.default_mode_Activation=1 -Dma.Request0=UART8_RX -Dma.RequestsNb=1 -Dma.UART8_RX.0.Direction=DMA_PERIPH_TO_MEMORY -Dma.UART8_RX.0.EventEnable=DISABLE -Dma.UART8_RX.0.FIFOMode=DMA_FIFOMODE_DISABLE -Dma.UART8_RX.0.Instance=DMA1_Stream0 -Dma.UART8_RX.0.MemDataAlignment=DMA_MDATAALIGN_BYTE -Dma.UART8_RX.0.MemInc=DMA_MINC_ENABLE -Dma.UART8_RX.0.Mode=DMA_CIRCULAR -Dma.UART8_RX.0.PeriphDataAlignment=DMA_PDATAALIGN_BYTE -Dma.UART8_RX.0.PeriphInc=DMA_PINC_DISABLE -Dma.UART8_RX.0.Polarity=HAL_DMAMUX_REQ_GEN_RISING -Dma.UART8_RX.0.Priority=DMA_PRIORITY_LOW -Dma.UART8_RX.0.RequestNumber=1 -Dma.UART8_RX.0.RequestParameters=Instance,Direction,PeriphInc,MemInc,PeriphDataAlignment,MemDataAlignment,Mode,Priority,FIFOMode,SignalID,Polarity,RequestNumber,SyncSignalID,SyncPolarity,SyncEnable,EventEnable,SyncRequestNumber -Dma.UART8_RX.0.SignalID=NONE -Dma.UART8_RX.0.SyncEnable=DISABLE -Dma.UART8_RX.0.SyncPolarity=HAL_DMAMUX_SYNC_NO_EVENT -Dma.UART8_RX.0.SyncRequestNumber=1 -Dma.UART8_RX.0.SyncSignalID=NONE -ETH.IPParameters=MediaInterface,TxDescAddress -ETH.MediaInterface=HAL_ETH_RMII_MODE -ETH.TxDescAddress=0x30000100 -FATFS.BSP.number=1 -FATFS.IPParameters=_USE_LFN,_MAX_SS,_FS_EXFAT -FATFS._FS_EXFAT=1 -FATFS._MAX_SS=4096 -FATFS._USE_LFN=2 -FATFS0.BSP.STBoard=false -FATFS0.BSP.api=Unknown -FATFS0.BSP.component= -FATFS0.BSP.condition= -FATFS0.BSP.instance=PB15 -FATFS0.BSP.ip=GPIO -FATFS0.BSP.mode=Input -FATFS0.BSP.name=Detect_SDIO -FATFS0.BSP.semaphore= -FATFS0.BSP.solution=PB15 -FDCAN1.CalculateBaudRateNominal=500000 -FDCAN1.CalculateTimeBitNominal=2000 -FDCAN1.CalculateTimeQuantumNominal=50.0 -FDCAN1.DataPrescaler=4 -FDCAN1.DataSyncJumpWidth=4 -FDCAN1.DataTimeSeg1=11 -FDCAN1.DataTimeSeg2=3 -FDCAN1.FrameFormat=FDCAN_FRAME_FD_BRS -FDCAN1.IPParameters=CalculateTimeQuantumNominal,CalculateTimeBitNominal,CalculateBaudRateNominal,FrameFormat,NominalSyncJumpWidth,DataPrescaler,DataSyncJumpWidth,DataTimeSeg1,DataTimeSeg2,RxFifo0ElmtsNbr,RxFifo0ElmtSize,RxFifo1ElmtSize,RxBufferSize,TxEventsNbr,TxFifoQueueElmtsNbr,TxElmtSize,NominalPrescaler,NominalTimeSeg1,NominalTimeSeg2 -FDCAN1.NominalPrescaler=6 -FDCAN1.NominalSyncJumpWidth=4 -FDCAN1.NominalTimeSeg1=29 -FDCAN1.NominalTimeSeg2=10 -FDCAN1.RxBufferSize=FDCAN_DATA_BYTES_64 -FDCAN1.RxFifo0ElmtSize=FDCAN_DATA_BYTES_64 -FDCAN1.RxFifo0ElmtsNbr=8 -FDCAN1.RxFifo1ElmtSize=FDCAN_DATA_BYTES_64 -FDCAN1.TxElmtSize=FDCAN_DATA_BYTES_64 -FDCAN1.TxEventsNbr=8 -FDCAN1.TxFifoQueueElmtsNbr=8 -FDCAN2.CalculateBaudRateNominal=500000 -FDCAN2.CalculateTimeBitNominal=2000 -FDCAN2.CalculateTimeQuantumNominal=50.0 -FDCAN2.DataPrescaler=4 -FDCAN2.DataSyncJumpWidth=4 -FDCAN2.DataTimeSeg1=11 -FDCAN2.DataTimeSeg2=3 -FDCAN2.FrameFormat=FDCAN_FRAME_FD_BRS -FDCAN2.IPParameters=CalculateTimeQuantumNominal,CalculateTimeBitNominal,CalculateBaudRateNominal,FrameFormat,NominalSyncJumpWidth,DataPrescaler,DataSyncJumpWidth,DataTimeSeg1,DataTimeSeg2,RxFifo0ElmtsNbr,RxFifo0ElmtSize,RxFifo1ElmtSize,RxBufferSize,TxEventsNbr,TxFifoQueueElmtsNbr,TxElmtSize,NominalPrescaler,NominalTimeSeg1,NominalTimeSeg2,MessageRAMOffset -FDCAN2.MessageRAMOffset=512 -FDCAN2.NominalPrescaler=6 -FDCAN2.NominalSyncJumpWidth=4 -FDCAN2.NominalTimeSeg1=29 -FDCAN2.NominalTimeSeg2=10 -FDCAN2.RxBufferSize=FDCAN_DATA_BYTES_64 -FDCAN2.RxFifo0ElmtSize=FDCAN_DATA_BYTES_64 -FDCAN2.RxFifo0ElmtsNbr=8 -FDCAN2.RxFifo1ElmtSize=FDCAN_DATA_BYTES_64 -FDCAN2.TxElmtSize=FDCAN_DATA_BYTES_64 -FDCAN2.TxEventsNbr=8 -FDCAN2.TxFifoQueueElmtsNbr=8 -FDCAN3.CalculateBaudRateNominal=500000 -FDCAN3.CalculateTimeBitNominal=2000 -FDCAN3.CalculateTimeQuantumNominal=50.0 -FDCAN3.DataPrescaler=4 -FDCAN3.DataSyncJumpWidth=4 -FDCAN3.DataTimeSeg1=11 -FDCAN3.DataTimeSeg2=3 -FDCAN3.FrameFormat=FDCAN_FRAME_FD_BRS -FDCAN3.IPParameters=CalculateTimeQuantumNominal,CalculateTimeBitNominal,CalculateBaudRateNominal,FrameFormat,NominalSyncJumpWidth,DataPrescaler,DataSyncJumpWidth,DataTimeSeg1,DataTimeSeg2,RxFifo0ElmtsNbr,RxFifo0ElmtSize,RxFifo1ElmtSize,RxBufferSize,TxEventsNbr,TxFifoQueueElmtsNbr,TxElmtSize,NominalPrescaler,NominalTimeSeg1,NominalTimeSeg2,MessageRAMOffset -FDCAN3.MessageRAMOffset=1024 -FDCAN3.NominalPrescaler=6 -FDCAN3.NominalSyncJumpWidth=4 -FDCAN3.NominalTimeSeg1=29 -FDCAN3.NominalTimeSeg2=10 -FDCAN3.RxBufferSize=FDCAN_DATA_BYTES_64 -FDCAN3.RxFifo0ElmtSize=FDCAN_DATA_BYTES_64 -FDCAN3.RxFifo0ElmtsNbr=8 -FDCAN3.RxFifo1ElmtSize=FDCAN_DATA_BYTES_64 -FDCAN3.TxElmtSize=FDCAN_DATA_BYTES_64 -FDCAN3.TxEventsNbr=8 -FDCAN3.TxFifoQueueElmtsNbr=8 -FREERTOS.FootprintOK=true -FREERTOS.INCLUDE_vTaskDelayUntil=1 -FREERTOS.IPParameters=Tasks01,configMINIMAL_STACK_SIZE,configTOTAL_HEAP_SIZE,FootprintOK,configCHECK_FOR_STACK_OVERFLOW,configUSE_TIMERS,INCLUDE_vTaskDelayUntil -FREERTOS.Tasks01=defaultTask,0,4096,StartDefaultTask,Default,NULL,Static,defaultTaskBuffer,defaultTaskControlBlock;debugTask,0,2048,StartDebugTask,Default,NULL,Static,debugTaskBuffer,debugTaskControlBlock -FREERTOS.configCHECK_FOR_STACK_OVERFLOW=1 -FREERTOS.configMINIMAL_STACK_SIZE=256 -FREERTOS.configTOTAL_HEAP_SIZE=30720 -FREERTOS.configUSE_TIMERS=1 -File.Version=6 -GPIO.groupedBy=Group By Peripherals -KeepUserPlacement=false -LWIP.BSP.number=1 -LWIP.DEFAULT_THREAD_STACKSIZE=2048 -LWIP.IPParameters=LWIP_DHCP,IP_ADDRESS,NETMASK_ADDRESS,MEM_SIZE,LWIP_RAM_HEAP_POINTER,TCP_WND,TCP_MSS,TCP_SND_BUF,TCP_SND_QUEUELEN,DEFAULT_THREAD_STACKSIZE -LWIP.IP_ADDRESS=192.168.000.120 -LWIP.LWIP_DHCP=0 -LWIP.LWIP_RAM_HEAP_POINTER=0x30000200 -LWIP.MEM_SIZE=32232 -LWIP.NETMASK_ADDRESS=255.255.255.000 -LWIP.TCP_MSS=1460 -LWIP.TCP_SND_BUF=5840 -LWIP.TCP_SND_QUEUELEN=16 -LWIP.TCP_WND=5840 -LWIP.Version=v2.1.2_Cube -LWIP0.BSP.STBoard=false -LWIP0.BSP.api=BSP_COMPONENT_DRIVER -LWIP0.BSP.component=LAN8742 -LWIP0.BSP.condition= -LWIP0.BSP.instance=LAN8742 -LWIP0.BSP.ip= -LWIP0.BSP.mode= -LWIP0.BSP.name=Driver_PHY -LWIP0.BSP.semaphore=S_LAN8742 -LWIP0.BSP.solution=LAN8742 -Mcu.CPN=STM32H723VGH6 -Mcu.Family=STM32H7 -Mcu.IP0=CORTEX_M7 -Mcu.IP1=DEBUG -Mcu.IP10=MDMA -Mcu.IP11=NVIC -Mcu.IP12=RCC -Mcu.IP13=SDMMC1 -Mcu.IP14=SYS -Mcu.IP15=TIM3 -Mcu.IP16=UART4 -Mcu.IP17=UART7 -Mcu.IP18=UART8 -Mcu.IP2=DMA -Mcu.IP3=ETH -Mcu.IP4=FATFS -Mcu.IP5=FDCAN1 -Mcu.IP6=FDCAN2 -Mcu.IP7=FDCAN3 -Mcu.IP8=FREERTOS -Mcu.IP9=LWIP -Mcu.IPNb=19 -Mcu.Name=STM32H723VGHx -Mcu.Package=TFBGA100 -Mcu.Pin0=PB9 -Mcu.Pin1=PB3(JTDO/TRACESWO) -Mcu.Pin10=PH0-OSC_IN -Mcu.Pin11=PE1 -Mcu.Pin12=PB5 -Mcu.Pin13=PC12 -Mcu.Pin14=PH1-OSC_OUT -Mcu.Pin15=PE0 -Mcu.Pin16=PD0 -Mcu.Pin17=PD1 -Mcu.Pin18=PC9 -Mcu.Pin19=PC1 -Mcu.Pin2=PA15(JTDI) -Mcu.Pin20=PC8 -Mcu.Pin21=PC4 -Mcu.Pin22=PE10 -Mcu.Pin23=PB15 -Mcu.Pin24=PA1 -Mcu.Pin25=PC5 -Mcu.Pin26=PE7 -Mcu.Pin27=PE11 -Mcu.Pin28=PA2 -Mcu.Pin29=PE8 -Mcu.Pin3=PA14(JTCK/SWCLK) -Mcu.Pin30=PE12 -Mcu.Pin31=PB13 -Mcu.Pin32=PD13 -Mcu.Pin33=PA7 -Mcu.Pin34=PE9 -Mcu.Pin35=PE13 -Mcu.Pin36=PB11 -Mcu.Pin37=PB12 -Mcu.Pin38=PD12 -Mcu.Pin39=VP_FATFS_VS_SDIO -Mcu.Pin4=PA13(JTMS/SWDIO) -Mcu.Pin40=VP_FREERTOS_VS_CMSIS_V1 -Mcu.Pin41=VP_LWIP_VS_Enabled -Mcu.Pin42=VP_SYS_VS_tim6 -Mcu.Pin43=VP_TIM3_VS_ClockSourceINT -Mcu.Pin5=PB8 -Mcu.Pin6=PB6 -Mcu.Pin7=PD2 -Mcu.Pin8=PC11 -Mcu.Pin9=PC10 -Mcu.PinsNb=44 -Mcu.ThirdPartyNb=0 -Mcu.UserConstants= -Mcu.UserName=STM32H723VGHx -Mdma.MDMA_Channel0.Request0=SDMMC1_END_DATA -Mdma.MDMA_Channel0.RequestsNb=1 -Mdma.MDMA_Channel0.SDMMC1_END_DATA.0.BlockCount=0 -Mdma.MDMA_Channel0.SDMMC1_END_DATA.0.BlockDataLength=0 -Mdma.MDMA_Channel0.SDMMC1_END_DATA.0.BufferTransferLength=1 -Mdma.MDMA_Channel0.SDMMC1_END_DATA.0.CircularMode=MDMA_LINEAR_LIST -Mdma.MDMA_Channel0.SDMMC1_END_DATA.0.DataAlignment=MDMA_DATAALIGN_PACKENABLE -Mdma.MDMA_Channel0.SDMMC1_END_DATA.0.DestBlockAddressOffset=0 -Mdma.MDMA_Channel0.SDMMC1_END_DATA.0.DestBurst=MDMA_DEST_BURST_SINGLE -Mdma.MDMA_Channel0.SDMMC1_END_DATA.0.DestDataSize=MDMA_DEST_DATASIZE_BYTE -Mdma.MDMA_Channel0.SDMMC1_END_DATA.0.DestinationInc=MDMA_DEST_INC_BYTE -Mdma.MDMA_Channel0.SDMMC1_END_DATA.0.DstAddress=0 -Mdma.MDMA_Channel0.SDMMC1_END_DATA.0.Endianness=MDMA_LITTLE_ENDIANNESS_PRESERVE -Mdma.MDMA_Channel0.SDMMC1_END_DATA.0.Instance=MDMA_Channel0 -Mdma.MDMA_Channel0.SDMMC1_END_DATA.0.MaskAddress=0 -Mdma.MDMA_Channel0.SDMMC1_END_DATA.0.MaskData=0 -Mdma.MDMA_Channel0.SDMMC1_END_DATA.0.Priority=MDMA_PRIORITY_LOW -Mdma.MDMA_Channel0.SDMMC1_END_DATA.0.Rank=First -Mdma.MDMA_Channel0.SDMMC1_END_DATA.0.RequestParameters=Instance,CircularMode,TransferTriggerMode,Priority,Endianness,SourceInc,DestinationInc,SourceDataSize,DestDataSize,DataAlignment,BufferTransferLength,SourceBurst,DestBurst,SourceBlockAddressOffset,DestBlockAddressOffset,MaskAddress,MaskData,SrcAddress,DstAddress,BlockDataLength,BlockCount,Rank -Mdma.MDMA_Channel0.SDMMC1_END_DATA.0.SourceBlockAddressOffset=0 -Mdma.MDMA_Channel0.SDMMC1_END_DATA.0.SourceBurst=MDMA_SOURCE_BURST_SINGLE -Mdma.MDMA_Channel0.SDMMC1_END_DATA.0.SourceDataSize=MDMA_SRC_DATASIZE_BYTE -Mdma.MDMA_Channel0.SDMMC1_END_DATA.0.SourceInc=MDMA_SRC_INC_BYTE -Mdma.MDMA_Channel0.SDMMC1_END_DATA.0.SrcAddress=0 -Mdma.MDMA_Channel0.SDMMC1_END_DATA.0.TransferTriggerMode=MDMA_BUFFER_TRANSFER -Mdma.RequestSet0=MDMA_Channel0 -Mdma.RequestSetsNb=1 -MxCube.Version=6.10.0 -MxDb.Version=DB.6.0.100 -NVIC.BusFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false\:false -NVIC.DMA1_Stream0_IRQn=true\:5\:0\:false\:false\:true\:true\:false\:true\:true -NVIC.DebugMonitor_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false\:false -NVIC.ETH_IRQn=true\:5\:0\:false\:false\:true\:true\:true\:true\:true -NVIC.FDCAN1_IT0_IRQn=true\:5\:0\:false\:false\:true\:true\:true\:true\:true -NVIC.FDCAN2_IT0_IRQn=true\:5\:0\:false\:false\:true\:true\:true\:true\:true -NVIC.FDCAN3_IT0_IRQn=true\:5\:0\:false\:false\:true\:true\:true\:true\:true -NVIC.ForceEnableDMAVector=true -NVIC.HardFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false\:false -NVIC.MDMA_IRQn=true\:5\:0\:false\:false\:true\:false\:false\:true\:true -NVIC.MemoryManagement_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false\:false -NVIC.NonMaskableInt_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false\:false -NVIC.PendSV_IRQn=true\:15\:0\:false\:false\:false\:true\:false\:false\:false -NVIC.PriorityGroup=NVIC_PRIORITYGROUP_4 -NVIC.SDMMC1_IRQn=true\:5\:0\:false\:false\:true\:true\:true\:true\:true -NVIC.SVCall_IRQn=true\:0\:0\:false\:false\:false\:false\:false\:false\:false -NVIC.SavedPendsvIrqHandlerGenerated=true -NVIC.SavedSvcallIrqHandlerGenerated=true -NVIC.SavedSystickIrqHandlerGenerated=true -NVIC.SysTick_IRQn=true\:15\:0\:false\:false\:false\:true\:false\:true\:false -NVIC.TIM6_DAC_IRQn=true\:15\:0\:false\:false\:true\:false\:false\:true\:true -NVIC.TimeBase=TIM6_DAC_IRQn -NVIC.TimeBaseIP=TIM6 -NVIC.UsageFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false\:false -PA1.GPIOParameters=GPIO_Speed -PA1.GPIO_Speed=GPIO_SPEED_FREQ_VERY_HIGH -PA1.Mode=RMII -PA1.Signal=ETH_REF_CLK -PA13(JTMS/SWDIO).Mode=Trace_Asynchronous_SW -PA13(JTMS/SWDIO).Signal=DEBUG_JTMS-SWDIO -PA14(JTCK/SWCLK).Mode=Trace_Asynchronous_SW -PA14(JTCK/SWCLK).Signal=DEBUG_JTCK-SWCLK -PA15(JTDI).GPIOParameters=GPIO_Label -PA15(JTDI).GPIO_Label=mLED -PA15(JTDI).Locked=true -PA15(JTDI).Signal=GPIO_Output -PA2.GPIOParameters=GPIO_Speed -PA2.GPIO_Speed=GPIO_SPEED_FREQ_VERY_HIGH -PA2.Mode=RMII -PA2.Signal=ETH_MDIO -PA7.GPIOParameters=GPIO_Speed -PA7.GPIO_Speed=GPIO_SPEED_FREQ_VERY_HIGH -PA7.Mode=RMII -PA7.Signal=ETH_CRS_DV -PB11.GPIOParameters=GPIO_Speed -PB11.GPIO_Speed=GPIO_SPEED_FREQ_VERY_HIGH -PB11.Mode=RMII -PB11.Signal=ETH_TX_EN -PB12.GPIOParameters=GPIO_Speed -PB12.GPIO_Speed=GPIO_SPEED_FREQ_VERY_HIGH -PB12.Mode=RMII -PB12.Signal=ETH_TXD0 -PB13.GPIOParameters=GPIO_Speed -PB13.GPIO_Speed=GPIO_SPEED_FREQ_VERY_HIGH -PB13.Mode=RMII -PB13.Signal=ETH_TXD1 -PB15.GPIOParameters=GPIO_Label -PB15.GPIO_Label=sdDetect -PB15.Locked=true -PB15.Signal=GPIO_Input -PB3(JTDO/TRACESWO).Mode=Trace_Asynchronous_SW -PB3(JTDO/TRACESWO).Signal=DEBUG_JTDO-SWO -PB5.Mode=FDCAN_Activate -PB5.Signal=FDCAN2_RX -PB6.Mode=FDCAN_Activate -PB6.Signal=FDCAN2_TX -PB8.Mode=FDCAN_Activate -PB8.Signal=FDCAN1_RX -PB9.Mode=FDCAN_Activate -PB9.Signal=FDCAN1_TX -PC1.GPIOParameters=GPIO_Speed -PC1.GPIO_Speed=GPIO_SPEED_FREQ_VERY_HIGH -PC1.Mode=RMII -PC1.Signal=ETH_MDC -PC10.Mode=SD_4_bits_Wide_bus -PC10.Signal=SDMMC1_D2 -PC11.Mode=SD_4_bits_Wide_bus -PC11.Signal=SDMMC1_D3 -PC12.Mode=SD_4_bits_Wide_bus -PC12.Signal=SDMMC1_CK -PC4.GPIOParameters=GPIO_Speed -PC4.GPIO_Speed=GPIO_SPEED_FREQ_VERY_HIGH -PC4.Mode=RMII -PC4.Signal=ETH_RXD0 -PC5.GPIOParameters=GPIO_Speed -PC5.GPIO_Speed=GPIO_SPEED_FREQ_VERY_HIGH -PC5.Mode=RMII -PC5.Signal=ETH_RXD1 -PC8.Mode=SD_4_bits_Wide_bus -PC8.Signal=SDMMC1_D0 -PC9.Mode=SD_4_bits_Wide_bus -PC9.Signal=SDMMC1_D1 -PD0.Locked=true -PD0.Mode=Asynchronous -PD0.Signal=UART4_RX -PD1.Locked=true -PD1.Mode=Asynchronous -PD1.Signal=UART4_TX -PD12.Mode=FDCAN_Activate -PD12.Signal=FDCAN3_RX -PD13.Mode=FDCAN_Activate -PD13.Signal=FDCAN3_TX -PD2.Mode=SD_4_bits_Wide_bus -PD2.Signal=SDMMC1_CMD -PE0.Mode=Asynchronous -PE0.Signal=UART8_RX -PE1.Mode=Asynchronous -PE1.Signal=UART8_TX -PE10.GPIOParameters=GPIO_Label -PE10.GPIO_Label=SD_LED -PE10.Locked=true -PE10.Signal=GPIO_Output -PE11.GPIOParameters=GPIO_Label -PE11.GPIO_Label=VIN_IG -PE11.Locked=true -PE11.Signal=GPIO_Input -PE12.GPIOParameters=GPIO_Label -PE12.GPIO_Label=VIN_ON -PE12.Locked=true -PE12.Signal=GPIO_Output -PE13.GPIOParameters=GPIO_Label -PE13.GPIO_Label=VIN_1_4 -PE13.Locked=true -PE13.Signal=GPIO_Input -PE7.Locked=true -PE7.Mode=Asynchronous -PE7.Signal=UART7_RX -PE8.Locked=true -PE8.Mode=Asynchronous -PE8.Signal=UART7_TX -PE9.GPIOParameters=GPIO_Label -PE9.GPIO_Label=PICO_EN -PE9.Locked=true -PE9.Signal=GPIO_Output -PH0-OSC_IN.Mode=HSE-External-Oscillator -PH0-OSC_IN.Signal=RCC_OSC_IN -PH1-OSC_OUT.Mode=HSE-External-Oscillator -PH1-OSC_OUT.Signal=RCC_OSC_OUT -PinOutPanel.CurrentBGAView=Top -PinOutPanel.RotationAngle=0 -ProjectManager.AskForMigrate=true -ProjectManager.BackupPrevious=false -ProjectManager.CompilerOptimize=6 -ProjectManager.ComputerToolchain=false -ProjectManager.CoupleFile=false -ProjectManager.CustomerFirmwarePackage= -ProjectManager.DefaultFWLocation=true -ProjectManager.DeletePrevious=true -ProjectManager.DeviceId=STM32H723VGHx -ProjectManager.FirmwarePackage=STM32Cube FW_H7 V1.11.1 -ProjectManager.FreePins=false -ProjectManager.HalAssertFull=false -ProjectManager.HeapSize=0x2000 -ProjectManager.KeepUserCode=true -ProjectManager.LastFirmware=true -ProjectManager.LibraryCopy=1 -ProjectManager.MainLocation=Core/Src -ProjectManager.NoMain=false -ProjectManager.PreviousToolchain=STM32CubeIDE -ProjectManager.ProjectBuild=false -ProjectManager.ProjectFileName=TBD_TaxiBoard.ioc -ProjectManager.ProjectName=TBD_TaxiBoard -ProjectManager.ProjectStructure= -ProjectManager.RegisterCallBack= -ProjectManager.StackSize=0x4000 -ProjectManager.TargetToolchain=STM32CubeIDE -ProjectManager.ToolChainLocation= -ProjectManager.UAScriptAfterPath= -ProjectManager.UAScriptBeforePath= -ProjectManager.UnderRoot=true -ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true,3-MX_DMA_Init-DMA-false-HAL-true,4-MX_MDMA_Init-MDMA-false-HAL-true,5-MX_FDCAN3_Init-FDCAN3-false-HAL-true,6-MX_SDMMC1_SD_Init-SDMMC1-false-HAL-true,7-MX_TIM3_Init-TIM3-false-HAL-true,8-MX_UART4_Init-UART4-false-HAL-true,9-MX_UART7_Init-UART7-false-HAL-true,10-MX_FDCAN1_Init-FDCAN1-false-HAL-true,11-MX_FDCAN2_Init-FDCAN2-false-HAL-true,12-MX_FATFS_Init-FATFS-false-HAL-false,13-MX_LWIP_Init-LWIP-false-HAL-false,14-MX_UART8_Init-UART8-false-HAL-true,0-MX_CORTEX_M7_Init-CORTEX_M7-false-HAL-true -RCC.ADCFreq_Value=100000000 -RCC.AHB12Freq_Value=240000000 -RCC.AHB4Freq_Value=240000000 -RCC.APB1Freq_Value=120000000 -RCC.APB2Freq_Value=120000000 -RCC.APB3Freq_Value=120000000 -RCC.APB4Freq_Value=120000000 -RCC.AXIClockFreq_Value=240000000 -RCC.CECFreq_Value=32000 -RCC.CKPERFreq_Value=64000000 -RCC.CortexFreq_Value=480000000 -RCC.CpuClockFreq_Value=480000000 -RCC.D1CPREFreq_Value=480000000 -RCC.D1PPRE=RCC_APB3_DIV2 -RCC.D2PPRE1=RCC_APB1_DIV2 -RCC.D2PPRE2=RCC_APB2_DIV2 -RCC.D3PPRE=RCC_APB4_DIV2 -RCC.DFSDMACLkFreq_Value=120000000 -RCC.DFSDMFreq_Value=120000000 -RCC.DIVM1=5 -RCC.DIVM2=16 -RCC.DIVM3=16 -RCC.DIVN1=96 -RCC.DIVN2=128 -RCC.DIVN3=128 -RCC.DIVP1=1 -RCC.DIVP1Freq_Value=480000000 -RCC.DIVP2Freq_Value=100000000 -RCC.DIVP3Freq_Value=100000000 -RCC.DIVQ1=4 -RCC.DIVQ1Freq_Value=120000000 -RCC.DIVQ2Freq_Value=100000000 -RCC.DIVQ3Freq_Value=100000000 -RCC.DIVR1Freq_Value=240000000 -RCC.DIVR2Freq_Value=100000000 -RCC.DIVR3Freq_Value=100000000 -RCC.FDCANFreq_Value=120000000 -RCC.FMCFreq_Value=240000000 -RCC.FamilyName=M -RCC.HCLK3ClockFreq_Value=240000000 -RCC.HCLKFreq_Value=240000000 -RCC.HPRE=RCC_HCLK_DIV2 -RCC.I2C123Freq_Value=120000000 -RCC.I2C4Freq_Value=120000000 -RCC.IPParameters=ADCFreq_Value,AHB12Freq_Value,AHB4Freq_Value,APB1Freq_Value,APB2Freq_Value,APB3Freq_Value,APB4Freq_Value,AXIClockFreq_Value,CECFreq_Value,CKPERFreq_Value,CortexFreq_Value,CpuClockFreq_Value,D1CPREFreq_Value,D1PPRE,D2PPRE1,D2PPRE2,D3PPRE,DFSDMACLkFreq_Value,DFSDMFreq_Value,DIVM1,DIVM2,DIVM3,DIVN1,DIVN2,DIVN3,DIVP1,DIVP1Freq_Value,DIVP2Freq_Value,DIVP3Freq_Value,DIVQ1,DIVQ1Freq_Value,DIVQ2Freq_Value,DIVQ3Freq_Value,DIVR1Freq_Value,DIVR2Freq_Value,DIVR3Freq_Value,FDCANFreq_Value,FMCFreq_Value,FamilyName,HCLK3ClockFreq_Value,HCLKFreq_Value,HPRE,I2C123Freq_Value,I2C4Freq_Value,LPTIM1Freq_Value,LPTIM2Freq_Value,LPTIM345Freq_Value,LPUART1Freq_Value,LTDCFreq_Value,MCO1PinFreq_Value,MCO2PinFreq_Value,PLLFRACN,PLLSourceVirtual,QSPIFreq_Value,RNGFreq_Value,RTCFreq_Value,SAI1Freq_Value,SAI4AFreq_Value,SAI4BFreq_Value,SDMMCFreq_Value,SPDIFRXFreq_Value,SPI123Freq_Value,SPI45Freq_Value,SPI6Freq_Value,SWPMI1Freq_Value,SYSCLKFreq_VALUE,SYSCLKSource,Tim1OutputFreq_Value,Tim2OutputFreq_Value,TraceFreq_Value,USART16Freq_Value,USART234578Freq_Value,USBFreq_Value,VCO1OutputFreq_Value,VCO2OutputFreq_Value,VCO3OutputFreq_Value,VCOInput1Freq_Value,VCOInput2Freq_Value,VCOInput3Freq_Value -RCC.LPTIM1Freq_Value=120000000 -RCC.LPTIM2Freq_Value=120000000 -RCC.LPTIM345Freq_Value=120000000 -RCC.LPUART1Freq_Value=120000000 -RCC.LTDCFreq_Value=100000000 -RCC.MCO1PinFreq_Value=64000000 -RCC.MCO2PinFreq_Value=480000000 -RCC.PLLFRACN=0 -RCC.PLLSourceVirtual=RCC_PLLSOURCE_HSE -RCC.QSPIFreq_Value=240000000 -RCC.RNGFreq_Value=48000000 -RCC.RTCFreq_Value=32000 -RCC.SAI1Freq_Value=120000000 -RCC.SAI4AFreq_Value=120000000 -RCC.SAI4BFreq_Value=120000000 -RCC.SDMMCFreq_Value=120000000 -RCC.SPDIFRXFreq_Value=120000000 -RCC.SPI123Freq_Value=120000000 -RCC.SPI45Freq_Value=120000000 -RCC.SPI6Freq_Value=120000000 -RCC.SWPMI1Freq_Value=120000000 -RCC.SYSCLKFreq_VALUE=480000000 -RCC.SYSCLKSource=RCC_SYSCLKSOURCE_PLLCLK -RCC.Tim1OutputFreq_Value=240000000 -RCC.Tim2OutputFreq_Value=240000000 -RCC.TraceFreq_Value=240000000 -RCC.USART16Freq_Value=120000000 -RCC.USART234578Freq_Value=120000000 -RCC.USBFreq_Value=120000000 -RCC.VCO1OutputFreq_Value=480000000 -RCC.VCO2OutputFreq_Value=200000000 -RCC.VCO3OutputFreq_Value=200000000 -RCC.VCOInput1Freq_Value=5000000 -RCC.VCOInput2Freq_Value=1562500 -RCC.VCOInput3Freq_Value=1562500 -SDMMC1.ClockDiv=1 -SDMMC1.HardwareFlowControl=SDMMC_HARDWARE_FLOW_CONTROL_ENABLE -SDMMC1.IPParameters=HardwareFlowControl,ClockDiv -TIM3.IPParameters=Prescaler -TIM3.Prescaler=119 -UART4.BaudRate=9600 -UART4.IPParameters=BaudRate -VP_FATFS_VS_SDIO.Mode=SDIO -VP_FATFS_VS_SDIO.Signal=FATFS_VS_SDIO -VP_FREERTOS_VS_CMSIS_V1.Mode=CMSIS_V1 -VP_FREERTOS_VS_CMSIS_V1.Signal=FREERTOS_VS_CMSIS_V1 -VP_LWIP_VS_Enabled.Mode=Enabled -VP_LWIP_VS_Enabled.Signal=LWIP_VS_Enabled -VP_SYS_VS_tim6.Mode=TIM6 -VP_SYS_VS_tim6.Signal=SYS_VS_tim6 -VP_TIM3_VS_ClockSourceINT.Mode=Internal -VP_TIM3_VS_ClockSourceINT.Signal=TIM3_VS_ClockSourceINT -board=custom -rtos.0.ip=FREERTOS -rtos.0.tasks.0=allocationType,Dynamic;bufferName,NULL;codeGen,Default;controlBlockName,NULL;entry,StartDefaultTask;name,defaultTask;parameter,NULL;priority,osPriorityNormal;stackSize,128 -isbadioc=false diff --git a/lwftpc.c b/lwftpc.c new file mode 100644 index 0000000..ddb3667 --- /dev/null +++ b/lwftpc.c @@ -0,0 +1,658 @@ +/* + * lwftpc.c + * + * Created on: Feb 20, 2024 + * Author: "SeungJu Lim" + */ + +#include "lwftpc.h" + +/** + *============================================= + * Debugging + *============================================= + */ + +/* + * @brief Debug print for LwFTP + */ +void debugPrint(const char *format, ...) { +#ifdef LWFTP_DEBUG + va_list args; + va_start(args, format); + vprintf(format, args); + va_end(args); +#endif +} + + +/** + *============================================= + * Debugging + *============================================= + */ + +/** + * @brief Send command to connected FTP connection + * + * @param conn Target netconn structure + * @param data + */ +err_t lwftp_send(struct netconn *conn, char *data) { + err_t err = 0; + if (strcmp(data, "\r\n") == 0) + debugPrint(">> lwftp: ----> send \r\n"); + else + debugPrint(">> lwftp: ----> send %s", data); + err = netconn_write(conn, data, strlen(data), NETCONN_COPY); + return err; +} + +/* + * @brief Send PASV command to server + */ +err_t lwftp_send_pasv(lwftp_session_t *s){ + s->ctrl_state = LWFTP_PASV_SENT; + return lwftp_send(s->conn, "PASV\r\n"); +} + +/* + * @brief Attempt login to the server + */ +err_t lwftp_login(lwftp_session_t *s) { + char cmd[256]; + if (s->ctrl_state == LWFTP_CLOSED) { + return ERR_CONN; + } else if (s->ctrl_state == LWFTP_CONNECTED + || s->ctrl_state == LWFTP_LOGGED) { + s->ctrl_state = LWFTP_USER_SENT; + snprintf(cmd, sizeof(cmd), "USER %s\r\n", s->user); + return lwftp_send(s->conn, cmd); + } + return ERR_USE; +} + +/* + * @brief + */ +err_t lwftp_data_open(lwftp_session_t *s, char *response) { + err_t err = ERR_VAL; + char *ptr; + ip_addr_t addr_d; + + ptr = strchr(response, '('); + if (!ptr) return ERR_BUF; + do { + unsigned int a = strtoul(ptr + 1, &ptr, 10); + unsigned int b = strtoul(ptr + 1, &ptr, 10); + unsigned int c = strtoul(ptr + 1, &ptr, 10); + unsigned int d = strtoul(ptr + 1, &ptr, 10); + IP4_ADDR(&addr_d, a, b, c, d); + } while (0); + s->data_port = strtoul(ptr + 1, &ptr, 10) << 8; + s->data_port |= strtoul(ptr + 1, &ptr, 10) & 255; + if (*ptr != ')') return ERR_BUF; + + debugPrint(">> lwftp: new data port: '%d'\r\n", s->data_port); + + // if data connection already exist: + if (s->data_conn != NULL) { + debugPrint(">> lwftp: existing data connection found, closing\r\n"); + netconn_close(s->data_conn); + netconn_delete(s->data_conn); + s->data_state = LWFTP_CLOSED; + s->ctrl_state = LWFTP_LOGGED; + } + + // create new data connection + s->data_conn = netconn_new(NETCONN_TCP); + if (s->data_conn == NULL) { + debugPrint(">> lwftp: Failed to create new netconn for data connection\r\n"); + return ERR_MEM; + } + + // do connect + err = netconn_connect(s->data_conn, &addr_d, s->data_port); + return err; +} + +/** + *============================================= + * FTP Commands + *============================================= + */ + +/* + * @brief Close FTP connection + */ +err_t lwftp_close(lwftp_session_t *s) { + err_t err; + if (s->data_conn != NULL && s->data_state != LWFTP_DATA_CLOSED) { + netconn_close(s->data_conn); + err = netconn_delete(s->data_conn); + if (err != ERR_OK) { + debugPrint(">> lwftp: cannot close data connection with code %d\r\n", err); + return err; + } + debugPrint(">> lwftp: data connection closed successfully\r\n"); + s->data_state = LWFTP_CLOSED; + } + if (s->conn != NULL && s->ctrl_state != LWFTP_CLOSED) { + netconn_close(s->conn); + err = netconn_delete(s->conn); + if (err != ERR_OK) { + debugPrint(">> lwftp: cannot close control connection with code %d\r\n", err); + return err; + } + debugPrint(">> lwftp: control connection closed successfully\r\n"); + s->ctrl_state = LWFTP_CLOSED; + } + return err; +} + + +/* + * @brief Store data to FTP server + * caller func + */ +err_t lwftp_store(lwftp_session_t *s, char *filename, char *data) { + err_t err; + + // init error state + s->result = ERR_INPROGRESS; + // set semaphore + s->xfer_semaphore = xSemaphoreCreateBinary(); + + // get data port and open it + if (s->ctrl_state == LWFTP_LOGGED && s->data_state == LWFTP_DATA_CLOSED) { + // set callback + s->data_callback = lwftp_store_callback; + s->filename = filename; + s->data = data; + lwftp_send_pasv(s); + + // send data immediately if data port is already opened + } else if (s->ctrl_state == LWFTP_PASV_MODE && s->data_state == LWFTP_DATA_XFER_READY) { + lwftp_store_callback(s, filename, data); + + // unexpected state - busy data port or something + // need to code more exceptions + } else { + debugPrint(">> lwftp_ERROR: unexpected state\r\n"); + xSemaphoreGive(s->xfer_semaphore); + } + + // wait semaphore - get result from callback + if (xSemaphoreTake(s->xfer_semaphore, FTP_TIMEOUT) == pdTRUE) { + err = s->result; + s->result = ERR_OK; // reset state + vSemaphoreDelete(s->xfer_semaphore); // reset semaphore + return err; + } + return ERR_TIMEOUT; +} + +/* + * @brief Store command callback + * callback func + */ +void lwftp_store_callback(lwftp_session_t *s, char *filename, char *data) { + err_t err; + char cmd[256]; + size_t data_len = strlen(data); + + // send STOR command + snprintf(cmd, sizeof(cmd), "STOR %s\r\n", filename); + err = lwftp_send(s->conn, cmd); + + if (err == ERR_OK) { + err = netconn_write(s->data_conn, data, data_len, NETCONN_COPY); + if (err == ERR_OK) { + debugPrint(">> lwftp: data sent successfully\r\n"); + netconn_close(s->data_conn); + } else { + debugPrint(">> lwftp_ERROR: send data failed with code %d\r\n", err); + } + } else { + debugPrint(">> lwftp_ERROR: send command failed with code %d\r\n", err); + } + + // Reset callback data from FTP server + s->data_callback = NULL; + s->filename = NULL; + s->data = NULL; + // return result to caller using FTP session structure + s->result = err; +} + +/* + * @brief Retrieve data from + * caller func + */ +err_t lwftp_retrieve(lwftp_session_t *s, char *filename) { + char cmd[256]; + err_t err; + + // Init data portz + if (s->ctrl_state == LWFTP_LOGGED) { + s->data_callback = lwftp_retrieve_callback; + s->filename = strdup(filename); + lwftp_send(s->conn, "PASV\r\n"); + + // Send data + } else if (s->ctrl_state == LWFTP_PASV_SENT && s->data_state == LWFTP_DATA_XFER_READY) { + snprintf(cmd, sizeof(cmd), "RETR %s\r\n", filename); + err = lwftp_send(s->conn, cmd); + if (err == ERR_OK) { + debugPrint(">> lwftp: command sent successfully\r\n"); + } else { + debugPrint(">> lwftp: send command failed with code %d\r\n", err); + } + + // Init callback data + s->data_callback = NULL; + s->filename = NULL; + s->data = NULL; + } + return err; +} + +/* + * @brief Retrieve command callback + * callback func + */ +void lwftp_retrieve_callback(lwftp_session_t *s, char *filename, char *data) { + lwftp_retrieve(s, filename); +} + + +/* + * @brief Get a list of files in the root directory of the server. + * caller func + * @param s Session structure + * @param outStr output parameter to return result of LIST command + */ +err_t lwftp_list(lwftp_session_t *s, char **outStr) { + err_t err; + + // init + s->result = ERR_INPROGRESS; + *outStr = NULL; + s->outStr = outStr; + s->xfer_semaphore = xSemaphoreCreateBinary(); + + // open data port + if (s->ctrl_state == LWFTP_LOGGED && s->data_state == LWFTP_DATA_CLOSED) { + s->data_callback = lwftp_list_callback; + lwftp_send_pasv(s); + + // send data if data port already opened + } else if (s->ctrl_state == LWFTP_PASV_SENT + && s->data_state == LWFTP_DATA_XFER_READY) { + lwftp_list_callback(s, NULL, NULL); + + // unexpected state - busy data port or something + // need to code more exceptions + } else { + debugPrint(">> lwftp_ERROR: data port is busy\r\n"); + xSemaphoreGive(s->xfer_semaphore); + } + + // wait semaphore - get result from callback + if (xSemaphoreTake(s->xfer_semaphore, FTP_TIMEOUT) == pdTRUE) { + err = s->result; + + if (err == ERR_OK) { + size_t length = strlen(*outStr); + if (length == 0) { + debugPrint(">> lwftp: server directory is empty.\r\n"); + } + } else { + debugPrint(">> lwftp_ERROR: failed to get file list.\r\n"); + } + // reset session & semaphore + resetSession(s); + vSemaphoreDelete(s->xfer_semaphore); + return err; + } + return ERR_TIMEOUT; +} + +/* + * @brief List command callback + * callback func + */ +void lwftp_list_callback(lwftp_session_t *s, char *filename, char *data) { + err_t err; + + // set state & send command + s->ctrl_state = LWFTP_LIST_SENT; + s->data_state = LWFTP_DATA_XFER_READY; + err = lwftp_send(s->conn, "LIST\r\n"); + + if (err == ERR_OK) { + debugPrint(">> lwftp: command sent successfully\r\n"); + // the rest of the process will be done in the data thread. + + // failed to send command to the server. + // event listener also will not catch anything. + } else { + debugPrint(">> lwftp_ERROR: send command failed with code %d\r\n", err); + s->result = err; + xSemaphoreGive(s->xfer_semaphore); + } +} + + +/** + *============================================= + * Data reception & processing + *============================================= + */ + +/** + * @brief Called when data is finished receiving. + * @param s Session structure + * @param data Received data + * @param size Size of received data (length) + */ +void onDataReceived(lwftp_session_t *s, void *data, size_t size) { +// debugPrint(">> lwftp: Received data:\r\n%.*s\r\n", (int) size, (char*) data); + printf(">> %d\r\n", s->data_state); + if (s->data_state == LWFTP_DATA_XFERING) { + if (s->ctrl_state == LWFTP_LIST_SENT || s->ctrl_state == LWFTP_RETR_SENT) { + char *newData = (char*) malloc(size + 1); + if (newData == NULL) { + debugPrint(">> lwftp_ERROR: memory allocation failed\r\n"); + s->result = ERR_MEM; + } else { + memcpy(newData, data, size); + newData[size] = '\0'; + + if (*(s->outStr) != NULL) { + free(*(s->outStr)); + *(s->outStr) = NULL; + } + *(s->outStr) = newData; + s->result = ERR_OK; + } + s->ctrl_state = LWFTP_LOGGED; + s->data_state = LWFTP_DATA_CLOSED; + xSemaphoreGive(s->xfer_semaphore); + } + } +} + + +/** + *============================================= + * Threads (Event listener) + *============================================= + */ + +/** + * @brief Data connection event listener + * @param arg Session structure + */ +void lwftp_data_thread(void *arg) { + lwftp_session_t *s = (lwftp_session_t*) arg; + static struct netbuf *d_buf; + static char *total_data = NULL; + static size_t total_len = 0; + + while (1) { + if (s->data_conn != NULL) { + while (netconn_recv(s->data_conn, &d_buf) == ERR_OK) { + void *data; + u16_t len; + do { + netbuf_data(d_buf, &data, &len); + char *new_data = (char*) realloc(total_data, total_len + len); + if (!new_data) { + debugPrint("lwftp: memory reallocation failed\r\n"); + break; + } else { + total_data = new_data; + memcpy(total_data + total_len, data, len); + total_len += len; + } + } while (netbuf_next(d_buf) >= 0); + netbuf_delete(d_buf); + } + if (total_data != NULL && total_len > 0) { + onDataReceived(s, total_data, total_len); + free(total_data); + total_data = NULL; + total_len = 0; + } + } + } +} + +/** + * @brief Control connection event listener + * @param arg Session structure + */ +void lwftp_ctrl_thread(void *arg) { + lwftp_session_t *s = (lwftp_session_t*) arg; + static struct netbuf *buf; + uint response = 0; + char cmd[256]; + err_t err; + + // check that the session data is valid. + if ((s->ctrl_state != LWFTP_CLOSED) || s->data_state != LWFTP_DATA_CLOSED + || s->conn || s->data_conn || !s->user || !s->pass) { + debugPrint(">> lwftp: invalid session data\r\n"); + return; + } + + // create new TCP connection + s->conn = netconn_new(NETCONN_TCP); + err = netconn_bind(s->conn, &s->cli_ip, 0); + + if (err != ERR_OK) { + debugPrint(">> lwftp: client IP binding failed with code %d\r\n", err); + s->conn = NULL; + } else { + debugPrint(">> lwftp: client IP bind OK\r\n"); + err = netconn_connect(s->conn, &s->svr_ip, s->svr_port); + + // If the connection to the server is established, the following will continue, else delete the connection + if (err != ERR_OK) { + debugPrint(">> lwftp: server connection failed with code %d\r\n", err); + s->conn = NULL; + } else { + + while (1) { + /* wait until the data is sent by the server*/ + if (netconn_recv(s->conn, &buf) == ERR_OK) { + if (buf) { + response = strtoul(buf->p->payload, NULL, 10); + debugPrint("\n>> lwftp: <==== resp '%d'\r\n", response); + + /** ============================================ */ + /** ========= Response code processing ========= */ + + /** [Response 220] Service ready for new user.*/ + if (response == 220) { + if (s->ctrl_state == LWFTP_CLOSED) { + debugPrint(">> lwftp: server connect OK\r\n"); + s->ctrl_state = LWFTP_CONNECTED; + lwftp_login(s); + } + } + + /** [Response 331] User name okay, need password.*/ + else if (response == 331) { + if (s->ctrl_state == LWFTP_USER_SENT) { + s->ctrl_state = LWFTP_PASS_SENT; + snprintf(cmd, sizeof(cmd), "PASS %s\r\n", s->pass); + lwftp_send(s->conn, cmd); + } + } + + /** [Response 230] User logged in, proceed.*/ + else if (response == 230) { + if (s->ctrl_state == LWFTP_PASS_SENT) { + s->ctrl_state = LWFTP_LOGGED; + debugPrint(">> lwftp: now logged in\r\n"); + } + } + + /** [Response 227] Entering Passive Mode (h1,h2,h3,h4,p1,p2).*/ + else if (response == 227) { + if (s->ctrl_state == LWFTP_PASV_SENT) { + debugPrint(">> lwftp: entering passive Mode\r\n"); + err = lwftp_data_open(s, buf->p->payload); + + if (err == ERR_OK) { + debugPrint(">> lwftp: data port connect OK\r\n"); + s->data_state = LWFTP_DATA_XFER_READY; + // if callback exists, execute. + if (s->data_callback != NULL) { + s->data_callback(s, s->filename, s->data); + } + } else { + debugPrint(">> lwftp_ERROR: failed to connect to server data port with code %d\r\n", err); + netconn_delete(s->data_conn); + s->data_conn = NULL; + s->ctrl_state = LWFTP_LOGGED; + s->data_state = LWFTP_DATA_CLOSED; + // if callback exists, don't execute and release semaphore. + if (s->data_callback != NULL) { + xSemaphoreGive(s->xfer_semaphore); + } + } + } + } + + /** [Response 125] Data connection already open; transfer starting.*/ + else if (response == 125) { + printf(">>c: %d / d: %d\r\n", s->ctrl_state,s->data_state); + if (s->data_state == LWFTP_DATA_XFER_READY) { + s->data_state = LWFTP_DATA_XFERING; + debugPrint(">> lwftp: data transfer starting.\r\n"); + } + } + + /** [Response 226] Closing data connection. Requested file action successful*/ + else if (response == 226) { +// if (s->data_state == LWFTP_DATA_XFERING) {} + debugPrint(">> lwftp: transfer complete, closing connection\r\n"); + } + + /** [Response 332] Need account for login.*/ + else if (response == 332) { + debugPrint("\n>> lwftp: need account for login.\r\n"); + s->ctrl_state = LWFTP_CONNECTED; + } + + /** [Response 421] Service not available, closing.*/ + else if (response == 421) { + debugPrint("\n>> lwftp: service not available, closing.\r\n"); + break; + } + + /** [Response 500] Syntax error, command unrecognized.*/ + else if (response == 500 || response == 503) { + debugPrint("\n>> lwftp: syntax error or bad sequence of commands\r\n"); + if (s->ctrl_state == LWFTP_USER_SENT || s->ctrl_state == LWFTP_PASS_SENT) { + s->ctrl_state = LWFTP_CONNECTED; + } else { + s->ctrl_state = LWFTP_LOGGED; + } + } + + /** [Response 530] Not logged in.*/ + else if (response == 530) { + if (s->ctrl_state == LWFTP_PASS_SENT) { + s->ctrl_state = LWFTP_CONNECTED; + debugPrint(">> lwftp: invalid user data or not logged in yet\r\n"); + } + } + /** ============================================ */ + } + } + memset(cmd, 0, sizeof(cmd)); + if (buf != NULL) { + netbuf_delete(buf); + buf = NULL; + } + } + } + } + lwftp_close(s); + return; +} + + +/** + *============================================= + * Utils + *============================================= + */ + +void resetSession(lwftp_session_t *s) { + s->data_callback = NULL; + s->filename = NULL; + s->data = NULL; + s->outStr = NULL; + s->result = ERR_OK; +} + +/** Extract file names from result of FTP LIST command */ +char** extractFileNames(const char *input, int *fileCount) { + int count = 0; + char **fileNames = NULL; + char *inputCopy = strdup(input); + char *line = strtok(inputCopy, "\n"); + + while (line != NULL) { + char *fileName = strrchr(line, ' '); + if (fileName && *(fileName + 1)) { + fileName++; + fileNames = realloc(fileNames, sizeof(char*) * (count + 1)); + fileNames[count++] = strdup(fileName); + } + line = strtok(NULL, "\n"); + } + free(inputCopy); +// *fileCount = count; + return fileNames; +} + +/** Generate unique file name if duplicate filenames exist */ +char* genUniqFilName(char **fileNames, int fileCount, const char *targetFileName) { + int suffix = 1; + char baseFileName[256] = { 0 }; + char extension[256] = { 0 }; + char *newFileName = NULL; + int nameExists; + + const char *dot = strrchr(targetFileName, '.'); + if (dot) { + memcpy(baseFileName, targetFileName, dot - targetFileName); + strcpy(extension, dot); + } else { + strcpy(baseFileName, targetFileName); + } + do { + nameExists = 0; + free(newFileName); + newFileName = (char*) malloc(strlen(baseFileName) + strlen(extension) + 15); + if (!newFileName) { + debugPrint(">> lwftp: memory allocation failed\r\n"); + return NULL; + } + sprintf(newFileName, "%s(%d)%s", baseFileName, suffix, extension); + for (int i = 0; i < fileCount; i++) { + if (strcmp(fileNames[i], newFileName) == 0) { + nameExists = 1; + break; + } + } + suffix++; + } while (nameExists); + return newFileName; +} diff --git a/lwftpc.h b/lwftpc.h new file mode 100644 index 0000000..aa35053 --- /dev/null +++ b/lwftpc.h @@ -0,0 +1,131 @@ +/* + * lwftpc.h + * + * Created on: Feb 20, 2024 + * Author: "SeungJu Lim" + */ + +#include +#include "lwip/api.h" + +#ifdef __cplusplus +#include +#include +#include +#include +#else +#include +#include +#include +#endif + + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef LWFTPC_H_ +#define LWFTPC_H_ + +typedef struct lwftp_session lwftp_session_t; + +/** Timeout */ +#define FTP_TIMEOUT 10000 + +/** Setting for LwFTP debug print */ +#define LWFTP_DEBUG 1 + +/** Callback functions */ +typedef void (*lwftp_data_callback_t)(lwftp_session_t *s, char *filename, + char *data); +void lwftp_store_callback(lwftp_session_t *s, char *filename, char *data); +void lwftp_retrieve_callback(lwftp_session_t *s, char *filename, char *data); +void lwftp_list_callback(lwftp_session_t *s, char *filename, char *outStr); + + + + +/** Connection state enums */ +typedef enum { + LWFTP_CLOSED = 0, + LWFTP_CONNECTED, + LWFTP_USER_SENT, + LWFTP_PASS_SENT, + LWFTP_LOGGED, + LWFTP_PASV_SENT, + LWFTP_PASV_MODE, + LWFTP_LIST_SENT, + LWFTP_RETR_SENT, + LWFTP_STOR_SENT, +} control_state_t; + +typedef enum { + LWFTP_DATA_CLOSED = 0, + LWFTP_DATA_XFER_READY, + LWFTP_DATA_XFERING, + LWFTP_DATA_XFER_COMPLETE, +} data_state_t; + +/** Session structure */ +typedef struct lwftp_session { + // user data + char *user; + char *pass; + ip_addr_t cli_ip; + ip_addr_t svr_ip; + u16_t svr_port; + u16_t data_port; + // connection data + struct netconn *conn; + struct netconn *data_conn; + control_state_t ctrl_state; + data_state_t data_state; + // callback things + lwftp_data_callback_t data_callback; + char *filename; + char *data; + char **outStr; + // semaphore things + SemaphoreHandle_t xfer_semaphore; + err_t result; +} lwftp_session_t; + + + + +/** Control & Data threads */ +void lwftp_ctrl_thread(void *arg); +void lwftp_data_thread(void *arg); + +/** FTP Commands */ +err_t lwftp_store(lwftp_session_t *s, char *filename, char *data); +err_t lwftp_retrieve(lwftp_session_t *s, char *filename); +err_t lwftp_list(lwftp_session_t *s, char **outStr); +err_t lwftp_close(lwftp_session_t *s); + +/** Transfer cmd & Open data port */ +err_t lwftp_send(struct netconn *conn, char *data); +err_t lwftp_send_pasv(lwftp_session_t *s); +err_t lwftp_login(lwftp_session_t *s); +err_t lwftp_data_open(lwftp_session_t *s, char *response); + +/** Data reception */ +void onDataReceived(lwftp_session_t *s, void *data, size_t size); + +/** Utilities */ +void resetSession(lwftp_session_t *s); +char** extractFileNames(const char *input, int *fileCount); +char* genUniqFilName(char **fileNames, int fileCount, + const char *targetFileName); + +/** Debugging print */ +void debugPrint(const char *format, ...); + + + + +#ifdef __cplusplus +} +#endif + +#endif /* LWFTPC_H_ */